@cyclone-ui/state 0.0.12 → 0.0.14
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 +26 -0
- package/README.md +1 -1
- package/dist/base/atoms/atom-with-broadcast.cjs +45 -1
- package/dist/base/atoms/atom-with-broadcast.mjs +45 -1
- package/dist/base/atoms/atom-with-broadcast.mjs.map +1 -1
- package/dist/base/atoms/atom-with-compare.cjs +12 -1
- package/dist/base/atoms/atom-with-compare.mjs +12 -1
- package/dist/base/atoms/atom-with-compare.mjs.map +1 -1
- package/dist/base/atoms/atom-with-debounce.cjs +52 -1
- package/dist/base/atoms/atom-with-debounce.mjs +52 -1
- package/dist/base/atoms/atom-with-debounce.mjs.map +1 -1
- package/dist/base/atoms/atom-with-effect.cjs +123 -1
- package/dist/base/atoms/atom-with-effect.mjs +120 -1
- package/dist/base/atoms/atom-with-effect.mjs.map +1 -1
- package/dist/base/atoms/atom-with-listeners.cjs +36 -1
- package/dist/base/atoms/atom-with-listeners.mjs +36 -1
- package/dist/base/atoms/atom-with-listeners.mjs.map +1 -1
- package/dist/base/atoms/atom-with-pending.cjs +14 -1
- package/dist/base/atoms/atom-with-pending.mjs +14 -1
- package/dist/base/atoms/atom-with-pending.mjs.map +1 -1
- package/dist/base/atoms/atom-with-refresh-and-default.cjs +19 -1
- package/dist/base/atoms/atom-with-refresh-and-default.mjs +19 -1
- package/dist/base/atoms/atom-with-refresh-and-default.mjs.map +1 -1
- package/dist/base/atoms/atom-with-refresh.cjs +13 -1
- package/dist/base/atoms/atom-with-refresh.mjs +13 -1
- package/dist/base/atoms/atom-with-refresh.mjs.map +1 -1
- package/dist/base/atoms/atom-with-toggle.cjs +13 -1
- package/dist/base/atoms/atom-with-toggle.mjs +13 -1
- package/dist/base/atoms/atom-with-toggle.mjs.map +1 -1
- package/dist/base/atoms/atom-with-web-storage.cjs +48 -1
- package/dist/base/atoms/atom-with-web-storage.mjs +47 -1
- package/dist/base/atoms/atom-with-web-storage.mjs.map +1 -1
- package/dist/base/atoms/atom-with-wrapper.cjs +25 -1
- package/dist/base/atoms/atom-with-wrapper.mjs +25 -1
- package/dist/base/atoms/atom-with-wrapper.mjs.map +1 -1
- package/dist/base/atoms/base-atom.cjs +25 -1
- package/dist/base/atoms/base-atom.mjs +25 -1
- package/dist/base/atoms/base-atom.mjs.map +1 -1
- package/dist/base/atoms/index.cjs +24 -1
- package/dist/base/atoms/index.mjs +13 -1
- package/dist/base/hooks/index.cjs +9 -1
- package/dist/base/hooks/index.mjs +6 -1
- package/dist/base/hooks/use-atom-effect.cjs +17 -1
- package/dist/base/hooks/use-atom-effect.mjs +17 -1
- package/dist/base/hooks/use-atom-effect.mjs.map +1 -1
- package/dist/base/hooks/use-hydrate-molecule.cjs +17 -1
- package/dist/base/hooks/use-hydrate-molecule.mjs +17 -1
- package/dist/base/hooks/use-hydrate-molecule.mjs.map +1 -1
- package/dist/base/hooks/use-prepare-atoms.cjs +20 -1
- package/dist/base/hooks/use-prepare-atoms.mjs +20 -1
- package/dist/base/hooks/use-prepare-atoms.mjs.map +1 -1
- package/dist/base/hooks/use-sync-molecule.cjs +37 -1
- package/dist/base/hooks/use-sync-molecule.mjs +37 -1
- package/dist/base/hooks/use-sync-molecule.mjs.map +1 -1
- package/dist/base/index.cjs +47 -1
- package/dist/base/index.mjs +24 -1
- package/dist/base/utilities/create-molecule.cjs +105 -4
- package/dist/base/utilities/create-molecule.d.cts.map +1 -1
- package/dist/base/utilities/create-molecule.mjs +102 -4
- package/dist/base/utilities/create-molecule.mjs.map +1 -1
- package/dist/base/utilities/create-web-storage.cjs +55 -1
- package/dist/base/utilities/create-web-storage.mjs +55 -1
- package/dist/base/utilities/create-web-storage.mjs.map +1 -1
- package/dist/base/utilities/debounce.cjs +52 -1
- package/dist/base/utilities/debounce.mjs +52 -1
- package/dist/base/utilities/debounce.mjs.map +1 -1
- package/dist/base/utilities/index.cjs +13 -1
- package/dist/base/utilities/index.mjs +6 -1
- package/dist/base/utilities/is-atom.cjs +48 -1
- package/dist/base/utilities/is-atom.mjs +46 -1
- package/dist/base/utilities/is-atom.mjs.map +1 -1
- package/dist/base/utilities/set-atom-debug.cjs +24 -1
- package/dist/base/utilities/set-atom-debug.mjs +23 -1
- package/dist/base/utilities/set-atom-debug.mjs.map +1 -1
- package/dist/client/index.cjs +16 -1
- package/dist/client/index.mjs +8 -1
- package/dist/form/atoms/atom-with-field.cjs +23 -1
- package/dist/form/atoms/atom-with-field.mjs +23 -1
- package/dist/form/atoms/atom-with-field.mjs.map +1 -1
- package/dist/form/atoms/atom-with-messages.cjs +85 -1
- package/dist/form/atoms/atom-with-messages.mjs +78 -1
- package/dist/form/atoms/atom-with-messages.mjs.map +1 -1
- package/dist/form/hooks/index.cjs +7 -1
- package/dist/form/hooks/index.mjs +5 -1
- package/dist/form/hooks/use-field-actions.cjs +92 -1
- package/dist/form/hooks/use-field-actions.mjs +92 -1
- package/dist/form/hooks/use-field-actions.mjs.map +1 -1
- package/dist/form/hooks/use-field-ref.cjs +16 -1
- package/dist/form/hooks/use-field-ref.mjs +16 -1
- package/dist/form/hooks/use-field-ref.mjs.map +1 -1
- package/dist/form/hooks/use-form-actions.cjs +69 -1
- package/dist/form/hooks/use-form-actions.mjs +69 -1
- package/dist/form/hooks/use-form-actions.mjs.map +1 -1
- package/dist/form/index.cjs +30 -1
- package/dist/form/index.mjs +17 -1
- package/dist/form/molecules/field-molecule.cjs +154 -1
- package/dist/form/molecules/field-molecule.mjs +153 -1
- package/dist/form/molecules/field-molecule.mjs.map +1 -1
- package/dist/form/molecules/form-molecule.cjs +180 -1
- package/dist/form/molecules/form-molecule.mjs +179 -1
- package/dist/form/molecules/form-molecule.mjs.map +1 -1
- package/dist/form/molecules/index.cjs +7 -1
- package/dist/form/molecules/index.mjs +4 -1
- package/dist/form/providers/FieldProvider.cjs +103 -4
- package/dist/form/providers/FieldProvider.mjs +103 -4
- package/dist/form/providers/FieldProvider.mjs.map +1 -1
- package/dist/form/providers/FormProvider.cjs +66 -4
- package/dist/form/providers/FormProvider.d.cts.map +1 -1
- package/dist/form/providers/FormProvider.mjs +66 -4
- package/dist/form/providers/FormProvider.mjs.map +1 -1
- package/dist/form/providers/index.cjs +5 -1
- package/dist/form/providers/index.mjs +4 -1
- package/dist/form/types.cjs +13 -1
- package/dist/form/types.mjs +13 -1
- package/dist/form/types.mjs.map +1 -1
- package/dist/form/utilities/abort-error.cjs +15 -1
- package/dist/form/utilities/abort-error.mjs +15 -1
- package/dist/form/utilities/abort-error.mjs.map +1 -1
- package/dist/form/utilities/index.cjs +7 -1
- package/dist/form/utilities/index.mjs +5 -1
- package/dist/form/utilities/is-validation-results.cjs +9 -1
- package/dist/form/utilities/is-validation-results.mjs +9 -1
- package/dist/form/utilities/is-validation-results.mjs.map +1 -1
- package/dist/form/utilities/validators.cjs +8 -1
- package/dist/form/utilities/validators.mjs +8 -1
- package/dist/form/utilities/validators.mjs.map +1 -1
- package/dist/index.cjs +71 -1
- package/dist/index.mjs +34 -1
- package/dist/message/components/MessageViewport.cjs +21 -6
- package/dist/message/components/MessageViewport.mjs +21 -6
- package/dist/message/components/MessageViewport.mjs.map +1 -1
- package/dist/message/components/index.cjs +3 -1
- package/dist/message/components/index.mjs +3 -1
- package/dist/message/hooks/index.cjs +3 -1
- package/dist/message/hooks/index.mjs +3 -1
- package/dist/message/hooks/use-message-actions.cjs +63 -1
- package/dist/message/hooks/use-message-actions.mjs +63 -1
- package/dist/message/hooks/use-message-actions.mjs.map +1 -1
- package/dist/message/index.cjs +23 -1
- package/dist/message/index.mjs +8 -1
- package/dist/message/providers/MessageProvider.cjs +16 -1
- package/dist/message/providers/MessageProvider.mjs +16 -1
- package/dist/message/providers/MessageProvider.mjs.map +1 -1
- package/dist/theme/hooks/index.cjs +7 -1
- package/dist/theme/hooks/index.mjs +4 -1
- package/dist/theme/hooks/use-theme-actions.cjs +21 -1
- package/dist/theme/hooks/use-theme-actions.mjs +21 -1
- package/dist/theme/hooks/use-theme-actions.mjs.map +1 -1
- package/dist/theme/hooks/use-theme-store.cjs +61 -1
- package/dist/theme/hooks/use-theme-store.d.cts +2 -2
- package/dist/theme/hooks/use-theme-store.d.mts +2 -2
- package/dist/theme/hooks/use-theme-store.mjs +59 -1
- package/dist/theme/hooks/use-theme-store.mjs.map +1 -1
- package/dist/theme/index.cjs +17 -1
- package/dist/theme/index.mjs +9 -1
- package/dist/theme/molecules/index.cjs +3 -1
- package/dist/theme/molecules/index.mjs +3 -1
- package/dist/theme/molecules/theme-molecule.cjs +14 -1
- package/dist/theme/molecules/theme-molecule.mjs +14 -1
- package/dist/theme/molecules/theme-molecule.mjs.map +1 -1
- package/dist/theme/providers/ThemeProvider.cjs +30 -5
- package/dist/theme/providers/ThemeProvider.mjs +30 -5
- package/dist/theme/providers/ThemeProvider.mjs.map +1 -1
- package/dist/theme/utilities/theme-helpers.cjs +71 -1
- package/dist/theme/utilities/theme-helpers.mjs +70 -1
- package/dist/theme/utilities/theme-helpers.mjs.map +1 -1
- package/package.json +6 -6
|
@@ -1 +1,14 @@
|
|
|
1
|
-
const
|
|
1
|
+
const require_create_molecule = require("../../base/utilities/create-molecule.cjs");
|
|
2
|
+
let jotai_utils = require("jotai/utils");
|
|
3
|
+
let jotai = require("jotai");
|
|
4
|
+
|
|
5
|
+
//#region src/theme/molecules/theme-molecule.ts
|
|
6
|
+
const ThemeApi = require_create_molecule.createMoleculeApi(() => {
|
|
7
|
+
return {
|
|
8
|
+
items: (0, jotai.atom)(["light", "dark"]),
|
|
9
|
+
mode: (0, jotai_utils.atomWithReset)("dark")
|
|
10
|
+
};
|
|
11
|
+
}, { type: "theme" });
|
|
12
|
+
|
|
13
|
+
//#endregion
|
|
14
|
+
exports.ThemeApi = ThemeApi;
|
|
@@ -1,2 +1,15 @@
|
|
|
1
|
-
import{createMoleculeApi
|
|
1
|
+
import { createMoleculeApi } from "../../base/utilities/create-molecule.mjs";
|
|
2
|
+
import { atomWithReset } from "jotai/utils";
|
|
3
|
+
import { atom } from "jotai";
|
|
4
|
+
|
|
5
|
+
//#region src/theme/molecules/theme-molecule.ts
|
|
6
|
+
const ThemeApi = createMoleculeApi(() => {
|
|
7
|
+
return {
|
|
8
|
+
items: atom(["light", "dark"]),
|
|
9
|
+
mode: atomWithReset("dark")
|
|
10
|
+
};
|
|
11
|
+
}, { type: "theme" });
|
|
12
|
+
|
|
13
|
+
//#endregion
|
|
14
|
+
export { ThemeApi };
|
|
2
15
|
//# sourceMappingURL=theme-molecule.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"theme-molecule.mjs","names":[
|
|
1
|
+
{"version":3,"file":"theme-molecule.mjs","names":[],"sources":[],"mappings":""}
|
|
@@ -1,5 +1,30 @@
|
|
|
1
|
-
const
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
const require_theme_molecule = require("../molecules/theme-molecule.cjs");
|
|
2
|
+
let react = require("react");
|
|
3
|
+
let _tamagui_core = require("@tamagui/core");
|
|
4
|
+
|
|
5
|
+
//#region src/theme/providers/ThemeProvider.tsx
|
|
6
|
+
const ThemeStateManager = ({ children, disableInjectCSS = true, ...props }) => {
|
|
7
|
+
const mode = require_theme_molecule.ThemeApi.use().mode.get();
|
|
8
|
+
return <_tamagui_core.TamaguiProvider {...props} defaultTheme={mode} disableInjectCSS={disableInjectCSS}>
|
|
9
|
+
{children}
|
|
10
|
+
</_tamagui_core.TamaguiProvider>;
|
|
11
|
+
};
|
|
12
|
+
const DEFAULT_ITEMS = ["light", "dark"];
|
|
13
|
+
const ThemeProvider = ({ children, defaultMode = "dark", items = DEFAULT_ITEMS, ...props }) => {
|
|
14
|
+
const mode = (0, react.useMemo)(() => {
|
|
15
|
+
if (typeof window !== "undefined" && window.matchMedia) {
|
|
16
|
+
if (window.matchMedia("(prefers-color-scheme: light)").matches) return "light";
|
|
17
|
+
if (window.matchMedia("(prefers-color-scheme: dark)").matches) return "dark";
|
|
18
|
+
}
|
|
19
|
+
return defaultMode;
|
|
20
|
+
}, [defaultMode]);
|
|
21
|
+
return <require_theme_molecule.ThemeApi.Provider scope="theme" initialState={{
|
|
22
|
+
mode,
|
|
23
|
+
items
|
|
24
|
+
}}>
|
|
25
|
+
<ThemeStateManager {...props}>{children}</ThemeStateManager>
|
|
26
|
+
</require_theme_molecule.ThemeApi.Provider>;
|
|
27
|
+
};
|
|
28
|
+
|
|
29
|
+
//#endregion
|
|
30
|
+
exports.ThemeProvider = ThemeProvider;
|
|
@@ -1,6 +1,31 @@
|
|
|
1
|
-
import{ThemeApi
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
import { ThemeApi } from "../molecules/theme-molecule.mjs";
|
|
2
|
+
import { useMemo } from "react";
|
|
3
|
+
import { TamaguiProvider } from "@tamagui/core";
|
|
4
|
+
|
|
5
|
+
//#region src/theme/providers/ThemeProvider.tsx
|
|
6
|
+
const ThemeStateManager = ({ children, disableInjectCSS = true, ...props }) => {
|
|
7
|
+
const mode = ThemeApi.use().mode.get();
|
|
8
|
+
return <TamaguiProvider {...props} defaultTheme={mode} disableInjectCSS={disableInjectCSS}>
|
|
9
|
+
{children}
|
|
10
|
+
</TamaguiProvider>;
|
|
11
|
+
};
|
|
12
|
+
const DEFAULT_ITEMS = ["light", "dark"];
|
|
13
|
+
const ThemeProvider = ({ children, defaultMode = "dark", items = DEFAULT_ITEMS, ...props }) => {
|
|
14
|
+
const mode = useMemo(() => {
|
|
15
|
+
if (typeof window !== "undefined" && window.matchMedia) {
|
|
16
|
+
if (window.matchMedia("(prefers-color-scheme: light)").matches) return "light";
|
|
17
|
+
if (window.matchMedia("(prefers-color-scheme: dark)").matches) return "dark";
|
|
18
|
+
}
|
|
19
|
+
return defaultMode;
|
|
20
|
+
}, [defaultMode]);
|
|
21
|
+
return <ThemeApi.Provider scope="theme" initialState={{
|
|
22
|
+
mode,
|
|
23
|
+
items
|
|
24
|
+
}}>
|
|
25
|
+
<ThemeStateManager {...props}>{children}</ThemeStateManager>
|
|
26
|
+
</ThemeApi.Provider>;
|
|
27
|
+
};
|
|
28
|
+
|
|
29
|
+
//#endregion
|
|
30
|
+
export { ThemeProvider };
|
|
6
31
|
//# sourceMappingURL=ThemeProvider.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ThemeProvider.mjs","names":[
|
|
1
|
+
{"version":3,"file":"ThemeProvider.mjs","names":[],"sources":[],"mappings":""}
|
|
@@ -1 +1,71 @@
|
|
|
1
|
-
|
|
1
|
+
//#region src/theme/utilities/theme-helpers.ts
|
|
2
|
+
/**
|
|
3
|
+
* Get the color role scheme for the current theme name
|
|
4
|
+
*
|
|
5
|
+
* @example
|
|
6
|
+
* getThemeColorThemeName('dark') // undefined
|
|
7
|
+
* getThemeColorThemeName('dark_Input') // undefined
|
|
8
|
+
* getThemeColorThemeName('dark_base_Input') // "base"
|
|
9
|
+
* getThemeColorThemeName('dark_brand_Input') // "brand"
|
|
10
|
+
*
|
|
11
|
+
* @remarks
|
|
12
|
+
* The following color roles are checked:
|
|
13
|
+
* - base
|
|
14
|
+
* - secondary
|
|
15
|
+
* - brand
|
|
16
|
+
* - discovery
|
|
17
|
+
* - info
|
|
18
|
+
* - warning
|
|
19
|
+
* - danger
|
|
20
|
+
* - success
|
|
21
|
+
* - positive
|
|
22
|
+
* - negative
|
|
23
|
+
*
|
|
24
|
+
* @param theme - The theme name
|
|
25
|
+
* @returns The color role scheme for the theme name or undefined
|
|
26
|
+
*/
|
|
27
|
+
const getThemeColorThemeName = (theme) => {
|
|
28
|
+
if (theme) {
|
|
29
|
+
if (theme.includes("base")) return "base";
|
|
30
|
+
else if (theme.includes("brand")) return "brand";
|
|
31
|
+
else if (theme.includes("discovery")) return "discovery";
|
|
32
|
+
else if (theme.includes("info")) return "info";
|
|
33
|
+
else if (theme.includes("warning")) return "warning";
|
|
34
|
+
else if (theme.includes("danger")) return "danger";
|
|
35
|
+
else if (theme.includes("success")) return "success";
|
|
36
|
+
else if (theme.includes("positive")) return "positive";
|
|
37
|
+
else if (theme.includes("negative")) return "negative";
|
|
38
|
+
}
|
|
39
|
+
};
|
|
40
|
+
/**
|
|
41
|
+
* Check if a color role scheme is set for the current theme name
|
|
42
|
+
*
|
|
43
|
+
* @example
|
|
44
|
+
* themeColorThemeNameExists('dark') // false
|
|
45
|
+
* themeColorThemeNameExists('dark_Input') // false
|
|
46
|
+
* themeColorThemeNameExists('dark_base_Input') // true
|
|
47
|
+
* themeColorThemeNameExists('dark_brand_Input') // true
|
|
48
|
+
*
|
|
49
|
+
* @remarks
|
|
50
|
+
* The following color roles are checked:
|
|
51
|
+
* - base
|
|
52
|
+
* - secondary
|
|
53
|
+
* - brand
|
|
54
|
+
* - discovery
|
|
55
|
+
* - info
|
|
56
|
+
* - warning
|
|
57
|
+
* - danger
|
|
58
|
+
* - success
|
|
59
|
+
* - positive
|
|
60
|
+
* - negative
|
|
61
|
+
*
|
|
62
|
+
* @param theme - The theme name
|
|
63
|
+
* @returns An indication if a theme color scheme is set
|
|
64
|
+
*/
|
|
65
|
+
const themeColorThemeNameExists = (theme) => {
|
|
66
|
+
return Boolean(getThemeColorThemeName(theme));
|
|
67
|
+
};
|
|
68
|
+
|
|
69
|
+
//#endregion
|
|
70
|
+
exports.getThemeColorThemeName = getThemeColorThemeName;
|
|
71
|
+
exports.themeColorThemeNameExists = themeColorThemeNameExists;
|
|
@@ -1,2 +1,71 @@
|
|
|
1
|
-
|
|
1
|
+
//#region src/theme/utilities/theme-helpers.ts
|
|
2
|
+
/**
|
|
3
|
+
* Get the color role scheme for the current theme name
|
|
4
|
+
*
|
|
5
|
+
* @example
|
|
6
|
+
* getThemeColorThemeName('dark') // undefined
|
|
7
|
+
* getThemeColorThemeName('dark_Input') // undefined
|
|
8
|
+
* getThemeColorThemeName('dark_base_Input') // "base"
|
|
9
|
+
* getThemeColorThemeName('dark_brand_Input') // "brand"
|
|
10
|
+
*
|
|
11
|
+
* @remarks
|
|
12
|
+
* The following color roles are checked:
|
|
13
|
+
* - base
|
|
14
|
+
* - secondary
|
|
15
|
+
* - brand
|
|
16
|
+
* - discovery
|
|
17
|
+
* - info
|
|
18
|
+
* - warning
|
|
19
|
+
* - danger
|
|
20
|
+
* - success
|
|
21
|
+
* - positive
|
|
22
|
+
* - negative
|
|
23
|
+
*
|
|
24
|
+
* @param theme - The theme name
|
|
25
|
+
* @returns The color role scheme for the theme name or undefined
|
|
26
|
+
*/
|
|
27
|
+
const getThemeColorThemeName = (theme) => {
|
|
28
|
+
if (theme) {
|
|
29
|
+
if (theme.includes("base")) return "base";
|
|
30
|
+
else if (theme.includes("brand")) return "brand";
|
|
31
|
+
else if (theme.includes("discovery")) return "discovery";
|
|
32
|
+
else if (theme.includes("info")) return "info";
|
|
33
|
+
else if (theme.includes("warning")) return "warning";
|
|
34
|
+
else if (theme.includes("danger")) return "danger";
|
|
35
|
+
else if (theme.includes("success")) return "success";
|
|
36
|
+
else if (theme.includes("positive")) return "positive";
|
|
37
|
+
else if (theme.includes("negative")) return "negative";
|
|
38
|
+
}
|
|
39
|
+
};
|
|
40
|
+
/**
|
|
41
|
+
* Check if a color role scheme is set for the current theme name
|
|
42
|
+
*
|
|
43
|
+
* @example
|
|
44
|
+
* themeColorThemeNameExists('dark') // false
|
|
45
|
+
* themeColorThemeNameExists('dark_Input') // false
|
|
46
|
+
* themeColorThemeNameExists('dark_base_Input') // true
|
|
47
|
+
* themeColorThemeNameExists('dark_brand_Input') // true
|
|
48
|
+
*
|
|
49
|
+
* @remarks
|
|
50
|
+
* The following color roles are checked:
|
|
51
|
+
* - base
|
|
52
|
+
* - secondary
|
|
53
|
+
* - brand
|
|
54
|
+
* - discovery
|
|
55
|
+
* - info
|
|
56
|
+
* - warning
|
|
57
|
+
* - danger
|
|
58
|
+
* - success
|
|
59
|
+
* - positive
|
|
60
|
+
* - negative
|
|
61
|
+
*
|
|
62
|
+
* @param theme - The theme name
|
|
63
|
+
* @returns An indication if a theme color scheme is set
|
|
64
|
+
*/
|
|
65
|
+
const themeColorThemeNameExists = (theme) => {
|
|
66
|
+
return Boolean(getThemeColorThemeName(theme));
|
|
67
|
+
};
|
|
68
|
+
|
|
69
|
+
//#endregion
|
|
70
|
+
export { getThemeColorThemeName, themeColorThemeNameExists };
|
|
2
71
|
//# sourceMappingURL=theme-helpers.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"theme-helpers.mjs","names":[
|
|
1
|
+
{"version":3,"file":"theme-helpers.mjs","names":[],"sources":[],"mappings":""}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cyclone-ui/state",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.14",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "A state management package used to handle state in Storm Software applications.",
|
|
6
6
|
"repository": {
|
|
@@ -123,16 +123,16 @@
|
|
|
123
123
|
"@stryke/type-checks": "^0.6.49",
|
|
124
124
|
"@stryke/types": "^0.12.44",
|
|
125
125
|
"@stryke/unique-id": "^0.3.129",
|
|
126
|
-
"@tamagui/core": "3.0.
|
|
127
|
-
"@tamagui/portal": "3.0.
|
|
128
|
-
"@tamagui/toast": "3.0.
|
|
126
|
+
"@tamagui/core": "3.0.2",
|
|
127
|
+
"@tamagui/portal": "3.0.2",
|
|
128
|
+
"@tamagui/toast": "3.0.2",
|
|
129
129
|
"bunshi": "^2.2.0",
|
|
130
130
|
"jotai-optics": "^0.4.0",
|
|
131
131
|
"maska": "^3.2.2",
|
|
132
132
|
"optics-ts": "^2.4.1",
|
|
133
133
|
"react-native-safe-area-context": "^4.14.1",
|
|
134
134
|
"valibot": "^0.42.1",
|
|
135
|
-
"@cyclone-ui/helpers": "0.3.
|
|
135
|
+
"@cyclone-ui/helpers": "0.3.13"
|
|
136
136
|
},
|
|
137
137
|
"devDependencies": {
|
|
138
138
|
"@powerlines/plugin-tsdown": "^0.1.615",
|
|
@@ -143,5 +143,5 @@
|
|
|
143
143
|
},
|
|
144
144
|
"publishConfig": { "access": "public" },
|
|
145
145
|
"module": "./dist/index.mjs",
|
|
146
|
-
"gitHead": "
|
|
146
|
+
"gitHead": "0ca271e05c31b584a9c66598769cd2a0c432edf8"
|
|
147
147
|
}
|