@cyclone-ui/nextjs 0.0.4 → 0.0.6
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 +16 -0
- package/dist/provider.cjs +1 -1
- package/dist/provider.d.cts +1 -1
- package/dist/provider.d.mts +1 -1
- package/dist/provider.mjs +1 -1
- package/package.json +7 -7
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,22 @@
|
|
|
2
2
|
|
|
3
3
|
# Changelog for Cyclone UI - Nextjs
|
|
4
4
|
|
|
5
|
+
## [0.0.5](https://github.com/storm-software/cyclone-ui/releases/tag/nextjs%400.0.5) (10/29/2026)
|
|
6
|
+
|
|
7
|
+
### Updated Dependencies
|
|
8
|
+
|
|
9
|
+
- Updated **state** to **v0.0.35**
|
|
10
|
+
- Updated **theme-builder** to **v0.0.24**
|
|
11
|
+
- Updated **tokens** to **v0.3.23**
|
|
12
|
+
|
|
13
|
+
## [0.0.4](https://github.com/storm-software/cyclone-ui/releases/tag/nextjs%400.0.4) (10/29/2026)
|
|
14
|
+
|
|
15
|
+
### Updated Dependencies
|
|
16
|
+
|
|
17
|
+
- Updated **state** to **v0.0.34**
|
|
18
|
+
- Updated **theme-builder** to **v0.0.23**
|
|
19
|
+
- Updated **tokens** to **v0.3.22**
|
|
20
|
+
|
|
5
21
|
## [0.0.3](https://github.com/storm-software/cyclone-ui/releases/tag/nextjs%400.0.3) (10/25/2026)
|
|
6
22
|
|
|
7
23
|
### Bug Fixes
|
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
|
|
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}});
|
package/dist/provider.d.cts
CHANGED
|
@@ -22,7 +22,7 @@ type CycloneUIProviderProps = PropsWithChildren<Omit<ThemeProviderProps$1, "chil
|
|
|
22
22
|
* @remarks
|
|
23
23
|
* Renders `NextThemeProvider` from `@tamagui/next-theme`, which stores the
|
|
24
24
|
* light/dark/system setting and applies it before hydration, around a
|
|
25
|
-
* `TamaguiProvider` and the
|
|
25
|
+
* `TamaguiProvider` and the `base` sub-theme of the active mode. It also collects
|
|
26
26
|
* react-native-web styles during server rendering. Read or change the theme
|
|
27
27
|
* with `useThemeSetting`.
|
|
28
28
|
*
|
package/dist/provider.d.mts
CHANGED
|
@@ -22,7 +22,7 @@ type CycloneUIProviderProps = PropsWithChildren<Omit<ThemeProviderProps$1, "chil
|
|
|
22
22
|
* @remarks
|
|
23
23
|
* Renders `NextThemeProvider` from `@tamagui/next-theme`, which stores the
|
|
24
24
|
* light/dark/system setting and applies it before hydration, around a
|
|
25
|
-
* `TamaguiProvider` and the
|
|
25
|
+
* `TamaguiProvider` and the `base` sub-theme of the active mode. It also collects
|
|
26
26
|
* react-native-web styles during server rendering. Read or change the theme
|
|
27
27
|
* with `useThemeSetting`.
|
|
28
28
|
*
|
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
|
|
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};
|
|
2
2
|
//# sourceMappingURL=provider.mjs.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cyclone-ui/nextjs",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.6",
|
|
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.
|
|
48
|
+
"@cyclone-ui/theme-builder": "0.0.25",
|
|
49
49
|
"@tamagui/next-theme": "3.0.13"
|
|
50
50
|
},
|
|
51
51
|
"peerDependencies": {
|
|
52
|
-
"@cyclone-ui/state": "0.0.
|
|
53
|
-
"@cyclone-ui/tokens": "0.3.
|
|
52
|
+
"@cyclone-ui/state": "0.0.36",
|
|
53
|
+
"@cyclone-ui/tokens": "0.3.24",
|
|
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.
|
|
69
|
-
"@cyclone-ui/tokens": "0.3.
|
|
68
|
+
"@cyclone-ui/state": "0.0.36",
|
|
69
|
+
"@cyclone-ui/tokens": "0.3.24",
|
|
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": "
|
|
80
|
+
"gitHead": "07dd3e9b195c27dbf0117670c167b3edd4f439b5"
|
|
81
81
|
}
|