@pikas-ui/styles
Advanced tools
Comparing version 3.0.2 to 3.0.3
@@ -1,2 +0,2 @@ | ||
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { newObj[key] = obj[key]; } } } newObj.default = obj; return newObj; } } function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }var _jsxruntime = require('react/jsx-runtime');var _react = require('react');var _cssjs = require('../css.js');var _lodashmerge = require('lodash.merge'); var _lodashmerge2 = _interopRequireDefault(_lodashmerge);var _lodashclonedeep = require('lodash.clonedeep'); var _lodashclonedeep2 = _interopRequireDefault(_lodashclonedeep);var _usehooksts = require('usehooks-ts'); var y = _interopRequireWildcard(_usehooksts);const{useTernaryDarkMode:s,useSsr:k}=y,a= exports.PikasUIContext =_react.createContext.call(void 0, void 0),D= exports.PikasUIProvider =({lightTheme:e,darkTheme:t,children:o})=>{const[i,c]=_react.useState.call(void 0, void 0),{isDarkMode:n}=s();return _react.useEffect.call(void 0, ()=>{c(_lodashmerge2.default.call(void 0, _lodashclonedeep2.default.call(void 0, _cssjs.theme),n?t:e))},[n,e,t]),_jsxruntime.jsx.call(void 0, a.Provider,{value:i,children:_jsxruntime.jsx.call(void 0, l,{children:o})})},x=_cssjs.styled.call(void 0, "div",{width:"auto",height:"fit-content"}),l=({children:e})=>{const t=_react.useContext.call(void 0, a),{isBrowser:o}=k();return _jsxruntime.jsx.call(void 0, x,{className:o?t:void 0,children:e})};exports.PikasUIContext = a; exports.PikasUIProvider = D; exports.useTernaryDarkMode = s; | ||
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { newObj[key] = obj[key]; } } } newObj.default = obj; return newObj; } } function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }var _jsxruntime = require('react/jsx-runtime');var _react = require('react');var _cssjs = require('../css.js');var _lodashmerge = require('lodash.merge'); var _lodashmerge2 = _interopRequireDefault(_lodashmerge);var _lodashclonedeep = require('lodash.clonedeep'); var _lodashclonedeep2 = _interopRequireDefault(_lodashclonedeep);var _usehooksts = require('usehooks-ts'); var y = _interopRequireWildcard(_usehooksts);const{useTernaryDarkMode:n}=y,a= exports.PikasUIContext =_react.createContext.call(void 0, void 0),v= exports.PikasUIProvider =({lightTheme:e,darkTheme:t,children:i})=>{const[s,c]=_react.useState.call(void 0, void 0),{isDarkMode:r}=n();return _react.useEffect.call(void 0, ()=>{c(_lodashmerge2.default.call(void 0, _lodashclonedeep2.default.call(void 0, _cssjs.theme),r?t:e))},[r,e,t]),_jsxruntime.jsx.call(void 0, a.Provider,{value:s,children:_jsxruntime.jsx.call(void 0, x,{children:i})})},k=_cssjs.styled.call(void 0, "div",{width:"auto",height:"fit-content"}),x=({children:e})=>{const t=_react.useContext.call(void 0, a);return _jsxruntime.jsx.call(void 0, k,{className:t,children:e})};exports.PikasUIContext = a; exports.PikasUIProvider = v; exports.useTernaryDarkMode = n; | ||
//# sourceMappingURL=PikasUIProvider.js.map |
{ | ||
"name": "@pikas-ui/styles", | ||
"version": "3.0.2", | ||
"version": "3.0.3", | ||
"private": false, | ||
@@ -5,0 +5,0 @@ "description": "Styles for Pikas UI", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
208182
3153