@pikas-ui/styles
Advanced tools
Comparing version 2.3.7 to 2.3.8
@@ -13,2 +13,2 @@ export { useTheme } from './useTheme.js'; | ||
import '@stitches/react'; | ||
import 'usehooks-ts'; | ||
import 'usehooks-ts/dist/esm/index.js'; |
@@ -12,3 +12,3 @@ import { PikasUIContextType } from '../PikasUIProvider/PikasUIProvider.js'; | ||
import '@stitches/react'; | ||
import 'usehooks-ts'; | ||
import 'usehooks-ts/dist/esm/index.js'; | ||
@@ -15,0 +15,0 @@ declare const useTheme: () => PikasUIContextType; |
@@ -11,3 +11,3 @@ export { CSS, config, createTheme, css, getCssText, globalCss, keyframes, prefix, reset, stitchesConfig, styled, theme } from './css.js'; | ||
export { useTheme } from './hooks/useTheme.js'; | ||
export { useTernaryDarkMode } from 'usehooks-ts'; | ||
export { useTernaryDarkMode } from 'usehooks-ts/dist/esm/index.js'; | ||
import '@stitches/react/types/theme.js'; | ||
@@ -14,0 +14,0 @@ import '@stitches/react/types/css.js'; |
export { PikasUIContext, PikasUIContextType, PikasUIProvider, PikasUIProviderProps } from './PikasUIProvider.js'; | ||
export { useTernaryDarkMode } from 'usehooks-ts'; | ||
export { useTernaryDarkMode } from 'usehooks-ts/dist/esm/index.js'; | ||
import 'react'; | ||
@@ -4,0 +4,0 @@ import '../css.js'; |
import react__default from 'react'; | ||
import { createTheme, theme } from '../css.js'; | ||
export { useTernaryDarkMode } from 'usehooks-ts'; | ||
export { useTernaryDarkMode } from 'usehooks-ts/dist/esm/index.js'; | ||
import '@stitches/react/types/theme.js'; | ||
@@ -5,0 +5,0 @@ import '@stitches/react/types/css.js'; |
@@ -1,2 +0,2 @@ | ||
import{jsx as r}from"react/jsx-runtime";import{createContext as p,useContext as d,useEffect as m,useState as f}from"react";import{styled as P,theme as u}from"../css.js";import C from"lodash.merge";import y from"lodash.clonedeep";import{useSsr as h,useTernaryDarkMode as i}from"usehooks-ts";const a=p(void 0),D=({lightTheme:e,darkTheme:t,children:o})=>{const[s,c]=f(void 0),{isDarkMode:n}=i();return m(()=>{c(C(y(u),n?t:e))},[n,e,t]),r(a.Provider,{value:s,children:r(k,{children:o})})},x=P("div",{width:"auto",height:"fit-content"}),k=({children:e})=>{const t=d(a),{isBrowser:o}=h();return r(x,{className:o?t:void 0,children:e})};export{a as PikasUIContext,D as PikasUIProvider,i as useTernaryDarkMode}; | ||
import{jsx as r}from"react/jsx-runtime";import{createContext as p,useContext as d,useEffect as m,useState as f}from"react";import{styled as P,theme as u}from"../css.js";import C from"lodash.merge";import y from"lodash.clonedeep";import{useSsr as h,useTernaryDarkMode as i}from"usehooks-ts/dist/esm/index.js";const a=p(void 0),D=({lightTheme:e,darkTheme:t,children:o})=>{const[s,c]=f(void 0),{isDarkMode:n}=i();return m(()=>{c(C(y(u),n?t:e))},[n,e,t]),r(a.Provider,{value:s,children:r(k,{children:o})})},x=P("div",{width:"auto",height:"fit-content"}),k=({children:e})=>{const t=d(a),{isBrowser:o}=h();return r(x,{className:o?t:void 0,children:e})};export{a as PikasUIContext,D as PikasUIProvider,i as useTernaryDarkMode}; | ||
//# sourceMappingURL=PikasUIProvider.js.map |
{ | ||
"name": "@pikas-ui/styles", | ||
"version": "2.3.7", | ||
"version": "2.3.8", | ||
"private": false, | ||
@@ -5,0 +5,0 @@ "description": "", |
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
207656