@cyclone-ui/nextjs 0.0.6 → 0.0.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -2,6 +2,18 @@
2
2
 
3
3
  # Changelog for Cyclone UI - Nextjs
4
4
 
5
+ ## [0.0.6](https://github.com/storm-software/cyclone-ui/releases/tag/nextjs%400.0.6) (10/29/2026)
6
+
7
+ ### Bug Fixes
8
+
9
+ - **nextjs:** Resolve issue with nextjs provider theme ([389671bcc](https://github.com/storm-software/cyclone-ui/commit/389671bcc))
10
+
11
+ ### Updated Dependencies
12
+
13
+ - Updated **state** to **v0.0.36**
14
+ - Updated **theme-builder** to **v0.0.25**
15
+ - Updated **tokens** to **v0.3.24**
16
+
5
17
  ## [0.0.5](https://github.com/storm-software/cyclone-ui/releases/tag/nextjs%400.0.5) (10/29/2026)
6
18
 
7
19
  ### Updated Dependencies
package/dist/provider.cjs CHANGED
@@ -1 +1 @@
1
- "use client";Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});let e=require("@cyclone-ui/state/theme"),t=require("@cyclone-ui/tokens/tamagui"),n=require("@tamagui/core"),r=require("@tamagui/next-theme"),i=require("next/navigation.js"),a=require("react"),o=require("react-native"),s=require("react/jsx-runtime");const c=[`light`,`dark`],l=({mode:t})=>{let{changeMode:n}=(0,e.useThemeActions)();return(0,a.useEffect)(()=>{n(t)},[n,t]),null};function u({children:a,config:u=t.config,disableInjectCSS:d=!1,skipNextHead:f=!0,onChangeTheme:p,...m}){let[h,g]=(0,r.useRootTheme)();return(0,i.useServerInsertedHTML)(()=>{let e=o.StyleSheet.getSheet();return/* @__PURE__ */ (0,s.jsx)(`style`,{id:e.id,dangerouslySetInnerHTML:{__html:e.textContent}})}),/* @__PURE__ */ (0,s.jsx)(r.NextThemeProvider,{...m,skipNextHead:f,onChangeTheme:e=>{g(e),p?.(e)},children:/* @__PURE__ */ (0,s.jsxs)(e.ThemeApi.Provider,{scope:`theme`,initialState:{mode:h,items:c},children:[/* @__PURE__ */ (0,s.jsx)(l,{mode:h}),/* @__PURE__ */ (0,s.jsx)(n.TamaguiProvider,{config:u,defaultTheme:h,disableInjectCSS:d,children:/* @__PURE__ */ (0,s.jsx)(n.Theme,{name:`base`,children:a})})]})})}exports.CycloneUIProvider=u,Object.defineProperty(exports,"useRootTheme",{enumerable:!0,get:function(){return r.useRootTheme}}),Object.defineProperty(exports,"useThemeSetting",{enumerable:!0,get:function(){return r.useThemeSetting}});
1
+ "use client";Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});let e=require("@cyclone-ui/state/theme"),t=require("@cyclone-ui/tokens/tamagui"),n=require("@tamagui/core"),r=require("@tamagui/next-theme"),i=require("next/navigation.js"),a=require("react"),o=require("react-native"),s=require("react/jsx-runtime");const c=[`light`,`dark`],l=({mode:t})=>{let{changeMode:n}=(0,e.useThemeActions)();return(0,a.useEffect)(()=>{n(t)},[n,t]),null};function u({children:u,config:d=t.config,disableInjectCSS:f=!1,skipNextHead:p=!0,onChangeTheme:m,...h}){let[g,_]=(0,a.useState)(`light`);return(0,a.useLayoutEffect)(()=>{document.documentElement.classList.contains(`t_dark`)&&_(`dark`)},[]),(0,i.useServerInsertedHTML)(()=>{let e=o.StyleSheet.getSheet();return/* @__PURE__ */ (0,s.jsx)(`style`,{id:e.id,dangerouslySetInnerHTML:{__html:e.textContent}})}),/* @__PURE__ */ (0,s.jsx)(r.NextThemeProvider,{...h,skipNextHead:p,onChangeTheme:e=>{_(e),m?.(e)},children:/* @__PURE__ */ (0,s.jsxs)(e.ThemeApi.Provider,{scope:`theme`,initialState:{mode:g,items:c},children:[/* @__PURE__ */ (0,s.jsx)(l,{mode:g}),/* @__PURE__ */ (0,s.jsx)(n.TamaguiProvider,{config:d,defaultTheme:g,disableInjectCSS:f,children:/* @__PURE__ */ (0,s.jsx)(n.Theme,{name:`base`,children:u})})]})})}exports.CycloneUIProvider=u,Object.defineProperty(exports,"useRootTheme",{enumerable:!0,get:function(){return r.useRootTheme}}),Object.defineProperty(exports,"useThemeSetting",{enumerable:!0,get:function(){return r.useThemeSetting}});
package/dist/provider.mjs CHANGED
@@ -1,2 +1,2 @@
1
- "use client";import{ThemeApi as e,useThemeActions as t}from"@cyclone-ui/state/theme";import{config as n}from"@cyclone-ui/tokens/tamagui";import{TamaguiProvider as r,Theme as i}from"@tamagui/core";import{NextThemeProvider as a,useRootTheme as o,useRootTheme as s,useThemeSetting as c}from"@tamagui/next-theme";import{useServerInsertedHTML as l}from"next/navigation.js";import{useEffect as u}from"react";import{StyleSheet as d}from"react-native";import{jsx as f,jsxs as p}from"react/jsx-runtime";const m=[`light`,`dark`],h=({mode:e})=>{let{changeMode:n}=t();return u(()=>{n(e)},[n,e]),null};function g({children:t,config:o=n,disableInjectCSS:c=!1,skipNextHead:u=!0,onChangeTheme:g,..._}){let[v,y]=s();return l(()=>{let e=d.getSheet();return/* @__PURE__ */ f(`style`,{id:e.id,dangerouslySetInnerHTML:{__html:e.textContent}})}),/* @__PURE__ */ f(a,{..._,skipNextHead:u,onChangeTheme:e=>{y(e),g?.(e)},children:/* @__PURE__ */ p(e.Provider,{scope:`theme`,initialState:{mode:v,items:m},children:[/* @__PURE__ */ f(h,{mode:v}),/* @__PURE__ */ f(r,{config:o,defaultTheme:v,disableInjectCSS:c,children:/* @__PURE__ */ f(i,{name:`base`,children:t})})]})})}export{g as CycloneUIProvider,o as useRootTheme,c as useThemeSetting};
1
+ "use client";import{ThemeApi as e,useThemeActions as t}from"@cyclone-ui/state/theme";import{config as n}from"@cyclone-ui/tokens/tamagui";import{TamaguiProvider as r,Theme as i}from"@tamagui/core";import{NextThemeProvider as a,useRootTheme as o,useThemeSetting as s}from"@tamagui/next-theme";import{useServerInsertedHTML as c}from"next/navigation.js";import{useEffect as l,useLayoutEffect as u,useState as d}from"react";import{StyleSheet as f}from"react-native";import{jsx as p,jsxs as m}from"react/jsx-runtime";const h=[`light`,`dark`],g=({mode:e})=>{let{changeMode:n}=t();return l(()=>{n(e)},[n,e]),null};function _({children:t,config:o=n,disableInjectCSS:s=!1,skipNextHead:l=!0,onChangeTheme:_,...v}){let[y,b]=d(`light`);return u(()=>{document.documentElement.classList.contains(`t_dark`)&&b(`dark`)},[]),c(()=>{let e=f.getSheet();return/* @__PURE__ */ p(`style`,{id:e.id,dangerouslySetInnerHTML:{__html:e.textContent}})}),/* @__PURE__ */ p(a,{...v,skipNextHead:l,onChangeTheme:e=>{b(e),_?.(e)},children:/* @__PURE__ */ m(e.Provider,{scope:`theme`,initialState:{mode:y,items:h},children:[/* @__PURE__ */ p(g,{mode:y}),/* @__PURE__ */ p(r,{config:o,defaultTheme:y,disableInjectCSS:s,children:/* @__PURE__ */ p(i,{name:`base`,children:t})})]})})}export{_ as CycloneUIProvider,o as useRootTheme,s as useThemeSetting};
2
2
  //# sourceMappingURL=provider.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"provider.mjs","names":["cycloneConfig","useRootTheme","config","useRootTheme$1","ITEMS","SyncColorMode","useThemeActions","useEffect","changeMode","mode","CycloneUIProvider","config$1","config","props","setMode","useServerInsertedHTML","sheet","StyleSheet","NextThemeProvider","name","onChangeTheme","ThemeApi","TamaguiProvider","Theme","useRootTheme","useThemeSetting"],"sources":[],"mappings":""}
1
+ {"version":3,"file":"provider.mjs","names":["cycloneConfig","config","ITEMS","SyncColorMode","useThemeActions","useEffect","changeMode","mode","CycloneUIProvider","config$1","config","props","setMode","useState","useLayoutEffect","useServerInsertedHTML","sheet","StyleSheet","NextThemeProvider","name","onChangeTheme","ThemeApi","TamaguiProvider","Theme","useRootTheme","useThemeSetting"],"sources":[],"mappings":""}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cyclone-ui/nextjs",
3
- "version": "0.0.6",
3
+ "version": "0.0.7",
4
4
  "type": "module",
5
5
  "description": "A Next.js config wrapper and root provider that set up Tamagui and Cyclone UI components in Next.js applications.",
6
6
  "repository": {
@@ -45,12 +45,12 @@
45
45
  "module": "./dist/index.mjs",
46
46
  "types": "./dist/index.d.cts",
47
47
  "dependencies": {
48
- "@cyclone-ui/theme-builder": "0.0.25",
48
+ "@cyclone-ui/theme-builder": "0.0.26",
49
49
  "@tamagui/next-theme": "3.0.13"
50
50
  },
51
51
  "peerDependencies": {
52
- "@cyclone-ui/state": "0.0.36",
53
- "@cyclone-ui/tokens": "0.3.24",
52
+ "@cyclone-ui/state": "0.0.37",
53
+ "@cyclone-ui/tokens": "0.3.25",
54
54
  "@tamagui/core": "3.0.13",
55
55
  "@tamagui/next-plugin": "3.0.13",
56
56
  "@tamagui/react-native-svg": "3.0.13",
@@ -65,8 +65,8 @@
65
65
  "react-native": { "optional": true }
66
66
  },
67
67
  "devDependencies": {
68
- "@cyclone-ui/state": "0.0.36",
69
- "@cyclone-ui/tokens": "0.3.24",
68
+ "@cyclone-ui/state": "0.0.37",
69
+ "@cyclone-ui/tokens": "0.3.25",
70
70
  "@powerlines/plugin-tsdown": "^0.1.618",
71
71
  "@tamagui/core": "3.0.13",
72
72
  "@tamagui/next-plugin": "3.0.13",
@@ -77,5 +77,5 @@
77
77
  "react-native-web": "0.19.12"
78
78
  },
79
79
  "publishConfig": { "access": "public" },
80
- "gitHead": "07dd3e9b195c27dbf0117670c167b3edd4f439b5"
80
+ "gitHead": "5344c55bf0b398446eecfe3920d909956a0b8b9b"
81
81
  }