-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
0768fd0
commit fdb453b
Showing
4 changed files
with
34 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,5 +10,4 @@ node_modules/ | |
.eslintcache | ||
.node_repl_history | ||
.yarn-integrity | ||
declarations | ||
dist | ||
declarations |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
'use strict'; | ||
|
||
Object.defineProperty(exports, '__esModule', { value: true }); | ||
|
||
var React = require('react'); | ||
var core = require('@mantine/core'); | ||
|
||
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; } | ||
|
||
var React__default = /*#__PURE__*/_interopDefaultLegacy(React); | ||
|
||
function TestComponent({ color, children }) { | ||
const theme = core.useMantineTheme(); | ||
return (React__default["default"].createElement("div", { style: { | ||
backgroundColor: theme.colorScheme === 'dark' ? theme.white : theme.black, | ||
color: theme.colors[color][6], | ||
} }, children)); | ||
} | ||
|
||
exports.TestComponent = TestComponent; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
import React from 'react'; | ||
import { useMantineTheme } from '@mantine/core'; | ||
|
||
function TestComponent({ color, children }) { | ||
const theme = useMantineTheme(); | ||
return (React.createElement("div", { style: { | ||
backgroundColor: theme.colorScheme === 'dark' ? theme.white : theme.black, | ||
color: theme.colors[color][6], | ||
} }, children)); | ||
} | ||
|
||
export { TestComponent }; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -111,6 +111,6 @@ | |
"registry": "https://npm.pkg.github.com/@cohstats" | ||
}, | ||
"pre-commit": [ | ||
"build" | ||
"build" | ||
] | ||
} |