@filbert-js/theming
Advanced tools
+0
-1
| import e from"react";var r=e.createContext(),t=function(t){return e.createElement(r.Provider,{value:t.theme},t.children)};export{r as ThemeContext,t as ThemeProvider}; | ||
| //# sourceMappingURL=index.es.js.map |
+0
-1
| var e,t=(e=require("react"))&&"object"==typeof e&&"default"in e?e.default:e,r=t.createContext();exports.ThemeContext=r,exports.ThemeProvider=function(e){return t.createElement(r.Provider,{value:e.theme},e.children)}; | ||
| //# sourceMappingURL=index.js.map |
| !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("react")):"function"==typeof define&&define.amd?define(["exports","react"],t):t(e.theming={},e.react)}(this,function(e,t){var n=(t=t&&t.hasOwnProperty("default")?t.default:t).createContext();e.ThemeContext=n,e.ThemeProvider=function(e){return t.createElement(n.Provider,{value:e.theme},e.children)}}); | ||
| //# sourceMappingURL=index.umd.js.map |
+3
-3
| { | ||
| "name": "@filbert-js/theming", | ||
| "version": "0.0.2", | ||
| "version": "0.0.3", | ||
| "repository": "https://github.com/kuldeepkeshwar/filbert-js", | ||
@@ -14,3 +14,3 @@ "description": "", | ||
| "develop": "microbundle watch --jsx React.createElement", | ||
| "build": "microbundle --jsx React.createElement", | ||
| "build": "microbundle --no-sourcemap --jsx React.createElement", | ||
| "test": "echo \"Error: no test specified\" && exit 1" | ||
@@ -46,3 +46,3 @@ }, | ||
| "license": "MIT", | ||
| "gitHead": "a64f30ae57553710bcd454443b00272111417cec" | ||
| "gitHead": "76110724bdd2fa81e43913b5666987ad126d9c23" | ||
| } |
+1
-1
@@ -19,3 +19,3 @@ # @filbert-js/theming | ||
| import { ThemeProvider } from '@filbert-js/theming'; | ||
| const Button = styled.button` | ||
| const Button = styled('button')` | ||
| background: ${({ theme }) => theme.colors.brand}; | ||
@@ -22,0 +22,0 @@ border: solid 1px grey; |
Minified code
QualityThis package contains minified code. This may be harmless in some cases where minified code is included in packaged libraries, however packages on npm should not minify code.
Minified code
QualityThis package contains minified code. This may be harmless in some cases where minified code is included in packaged libraries, however packages on npm should not minify code.
4051
-2.2%11
-21.43%