Skip to content

Commit

Permalink
Include build files
Browse files Browse the repository at this point in the history
  • Loading branch information
JohannesMerkt committed Dec 19, 2022
1 parent 0768fd0 commit fdb453b
Show file tree
Hide file tree
Showing 4 changed files with 34 additions and 3 deletions.
3 changes: 1 addition & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,4 @@ node_modules/
.eslintcache
.node_repl_history
.yarn-integrity
declarations
dist
declarations
20 changes: 20 additions & 0 deletions dist/cjs/index.js
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;
12 changes: 12 additions & 0 deletions dist/esm/index.js
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 };
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,6 @@
"registry": "https://npm.pkg.github.com/@cohstats"
},
"pre-commit": [
"build"
"build"
]
}

0 comments on commit fdb453b

Please sign in to comment.