@flipova/foundation 1.13.0 → 2.0.4
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 +181 -0
- package/README.md +53 -178
- package/components/ui/accordion/ANIMATION_CUSTOMIZATION.md +162 -0
- package/components/ui/accordion/AccordionAnimatedHeight.tsx +56 -0
- package/components/ui/accordion/AccordionAnimatedIcon.tsx +41 -0
- package/components/ui/accordion/AnimatedHeight.tsx +56 -0
- package/components/ui/accordion/AnimatedIcon.tsx +41 -0
- package/components/ui/accordion/MIGRATION_SUMMARY.md +250 -0
- package/components/ui/accordion/USAGE_EXAMPLE.tsx +179 -0
- package/components/ui/accordion/animation-config.ts +32 -0
- package/components/ui/accordion/index.tsx +253 -0
- package/components/ui/actionsheet/index.tsx +511 -0
- package/components/ui/alert/index.tsx +158 -0
- package/components/ui/alert-dialog/index.tsx +254 -0
- package/components/ui/avatar/index.tsx +139 -0
- package/components/ui/badge/index.tsx +163 -0
- package/components/ui/bottomsheet/index.tsx +477 -0
- package/components/ui/box/index.tsx +19 -0
- package/components/ui/box/index.web.tsx +19 -0
- package/components/ui/box/styles.tsx +10 -0
- package/components/ui/button/index.tsx +264 -0
- package/components/ui/calendar/creator.tsx +366 -0
- package/components/ui/calendar/index.tsx +462 -0
- package/components/ui/calendar/styles.tsx +140 -0
- package/components/ui/card/index.tsx +23 -0
- package/components/ui/card/index.web.tsx +26 -0
- package/components/ui/card/styles.tsx +16 -0
- package/components/ui/center/index.tsx +22 -0
- package/components/ui/center/index.web.tsx +20 -0
- package/components/ui/center/styles.tsx +8 -0
- package/components/ui/checkbox/index.tsx +184 -0
- package/components/ui/date-time-picker/creator.tsx +109 -0
- package/components/ui/date-time-picker/index.tsx +585 -0
- package/components/ui/date-time-picker/index.web.tsx +217 -0
- package/components/ui/date-time-picker/styles.tsx +56 -0
- package/components/ui/divider/index.tsx +40 -0
- package/components/ui/drawer/index.tsx +362 -0
- package/components/ui/fab/index.tsx +215 -0
- package/components/ui/flat-list/index.tsx +21 -0
- package/components/ui/form-control/index.tsx +352 -0
- package/components/ui/gluestack-ui-provider/config.ts +72 -0
- package/components/ui/gluestack-ui-provider/index.tsx +47 -0
- package/components/ui/gluestack-ui-provider/index.web.tsx +96 -0
- package/components/ui/gluestack-ui-provider/script.ts +19 -0
- package/components/ui/gluestack-ui-provider/tokens.d.ts +17 -0
- package/components/ui/gluestack-ui-provider/tokens.js +188 -0
- package/components/ui/gluestack-ui-provider/useGluestackColors.ts +82 -0
- package/components/ui/grid/index.tsx +283 -0
- package/components/ui/grid/index.web.tsx +66 -0
- package/components/ui/grid/styles.tsx +15 -0
- package/components/ui/heading/index.tsx +220 -0
- package/components/ui/heading/index.web.tsx +202 -0
- package/components/ui/heading/styles.tsx +43 -0
- package/components/ui/hstack/index.tsx +27 -0
- package/components/ui/hstack/index.web.tsx +26 -0
- package/components/ui/hstack/styles.tsx +25 -0
- package/components/ui/icon/index.tsx +1588 -0
- package/components/ui/icon/index.web.tsx +1573 -0
- package/components/ui/image/index.tsx +48 -0
- package/components/ui/image-background/index.tsx +25 -0
- package/components/ui/image-viewer/index.tsx +743 -0
- package/components/ui/image-viewer/index.web.tsx +302 -0
- package/components/ui/index.ts +58 -0
- package/components/ui/input/index.tsx +125 -0
- package/components/ui/input-accessory-view/index.tsx +2 -0
- package/components/ui/keyboard-avoiding-view/index.tsx +2 -0
- package/components/ui/link/index.tsx +102 -0
- package/components/ui/liquid-glass/index.tsx +74 -0
- package/components/ui/menu/index.tsx +186 -0
- package/components/ui/modal/index.tsx +237 -0
- package/components/ui/popover/index.tsx +272 -0
- package/components/ui/portal/index.tsx +17 -0
- package/components/ui/pressable/index.tsx +39 -0
- package/components/ui/progress/index.tsx +83 -0
- package/components/ui/radio/index.tsx +217 -0
- package/components/ui/refresh-control/index.tsx +2 -0
- package/components/ui/safe-area-view/index.tsx +2 -0
- package/components/ui/scroll-view/index.tsx +2 -0
- package/components/ui/section-list/index.tsx +2 -0
- package/components/ui/select/index.tsx +277 -0
- package/components/ui/select/select-actionsheet.tsx +562 -0
- package/components/ui/skeleton/index.tsx +105 -0
- package/components/ui/skeleton/index.web.tsx +103 -0
- package/components/ui/skeleton/styles.tsx +35 -0
- package/components/ui/slider/index.tsx +181 -0
- package/components/ui/spinner/index.tsx +40 -0
- package/components/ui/status-bar/index.tsx +2 -0
- package/components/ui/switch/index.tsx +41 -0
- package/components/ui/table/index.tsx +210 -0
- package/components/ui/table/index.web.tsx +157 -0
- package/components/ui/table/styles.tsx +44 -0
- package/components/ui/tabs/TabsAnimatedIndicator.tsx +160 -0
- package/components/ui/tabs/animation-config.ts +3 -0
- package/components/ui/tabs/creator.tsx +206 -0
- package/components/ui/tabs/index.tsx +484 -0
- package/components/ui/text/index.tsx +48 -0
- package/components/ui/text/index.web.tsx +45 -0
- package/components/ui/text/styles.tsx +47 -0
- package/components/ui/textarea/index.tsx +94 -0
- package/components/ui/toast/index.tsx +252 -0
- package/components/ui/tooltip/index.tsx +131 -0
- package/components/ui/view/index.tsx +2 -0
- package/components/ui/virtualized-list/index.tsx +2 -0
- package/components/ui/vstack/index.tsx +28 -0
- package/components/ui/vstack/index.web.tsx +27 -0
- package/components/ui/vstack/styles.tsx +25 -0
- package/design/canonical.index.txt +53 -0
- package/design/documentation.xml +519 -0
- package/design/manifest.xml +90 -0
- package/design/schema.xsd +639 -0
- package/design/themes.xml +204 -0
- package/design/tokens.xml +510 -0
- package/design/tools/design.js +165 -0
- package/design/tools/npm.js +65 -0
- package/design/tools/requirements.txt +35 -0
- package/design/tools/sources/.checker/__init__.py +81 -0
- package/design/tools/sources/.checker/checks.py +198 -0
- package/design/tools/sources/.checker/cli.py +154 -0
- package/design/tools/sources/.checker/io.py +242 -0
- package/design/tools/sources/.checker/model.py +144 -0
- package/design/tools/sources/.checker/registry.py +115 -0
- package/design/tools/sources/.checker/report.py +21 -0
- package/design/tools/sources/.docgen/__init__.py +45 -0
- package/design/tools/sources/.docgen/cli.py +101 -0
- package/design/tools/sources/.docgen/model.py +147 -0
- package/design/tools/sources/.docgen/reference.py +97 -0
- package/design/tools/sources/.docgen/site.py +145 -0
- package/design/tools/sources/.docgen/xsddoc.py +329 -0
- package/design/tools/sources/.generate/__init__.py +35 -0
- package/design/tools/sources/.generate/cli.py +76 -0
- package/design/tools/sources/.generate/common.py +33 -0
- package/design/tools/sources/.generate/config.py +119 -0
- package/design/tools/sources/.generate/model.py +51 -0
- package/design/tools/sources/.generate/tokens.py +141 -0
- package/design/tools/sources/.linter/__init__.py +9 -0
- package/design/tools/sources/.linter/cli.py +44 -0
- package/design/tools/sources/.linter/discovery.py +30 -0
- package/design/tools/sources/.linter/errors.py +45 -0
- package/design/tools/sources/.linter/linter.py +68 -0
- package/design/tools/sources/.xmleditor/__init__.py +74 -0
- package/design/tools/sources/.xmleditor/blocks.py +185 -0
- package/design/tools/sources/.xmleditor/cli.py +141 -0
- package/design/tools/sources/.xmleditor/editor.py +906 -0
- package/design/tools/sources/.xmleditor/model.py +708 -0
- package/design/tools/sources/.xmleditor/widgets.py +1832 -0
- package/design/tools/sources/.xmleditor/xsdmodel.py +753 -0
- package/design/tools/sources/checker.py +55 -0
- package/design/tools/sources/docgen.py +66 -0
- package/design/tools/sources/generate.py +48 -0
- package/design/tools/sources/linter.py +54 -0
- package/design/tools/sources/ruff.toml +12 -0
- package/design/tools/sources/xmleditor.py +62 -0
- package/design/tools/unix/_venv_python.sh +16 -0
- package/design/tools/unix/check.sh +13 -0
- package/design/tools/unix/doc.sh +14 -0
- package/design/tools/unix/gen.sh +14 -0
- package/design/tools/unix/lint.sh +10 -0
- package/design/tools/unix/run.sh +20 -0
- package/design/tools/unix/verify.sh +12 -0
- package/design/tools/unix/xmledit.sh +12 -0
- package/design/tools/windows/check.cmd +12 -0
- package/design/tools/windows/doc.cmd +12 -0
- package/design/tools/windows/gen.cmd +11 -0
- package/design/tools/windows/lint.cmd +9 -0
- package/design/tools/windows/run.cmd +26 -0
- package/design/tools/windows/verify.cmd +10 -0
- package/design/tools/windows/xmledit.cmd +10 -0
- package/dist/chunk-LV4UIEQN.js +9730 -0
- package/dist/chunk-LV4UIEQN.js.map +1 -0
- package/dist/chunk-WNVU3BM2.mjs +9401 -0
- package/dist/chunk-WNVU3BM2.mjs.map +1 -0
- package/dist/index.d.mts +40 -9
- package/dist/index.d.ts +40 -9
- package/dist/index.js +726 -414
- package/dist/index.mjs +1 -5
- package/dist/ui/index.d.mts +6931 -3070
- package/dist/ui/index.d.ts +6931 -3070
- package/dist/ui/index.js +779 -352
- package/dist/ui/index.mjs +1 -2
- package/package.json +66 -142
- package/dist/chunk-2XORADW6.js +0 -24552
- package/dist/chunk-2XORADW6.js.map +0 -1
- package/dist/chunk-52BHHF5M.js +0 -46
- package/dist/chunk-52BHHF5M.js.map +0 -1
- package/dist/chunk-5647JY7Z.mjs +0 -100
- package/dist/chunk-5647JY7Z.mjs.map +0 -1
- package/dist/chunk-5N5HC4ZA.mjs +0 -3
- package/dist/chunk-5N5HC4ZA.mjs.map +0 -1
- package/dist/chunk-7QFZMGL6.js +0 -8583
- package/dist/chunk-7QFZMGL6.js.map +0 -1
- package/dist/chunk-ASZEP37D.js +0 -423
- package/dist/chunk-ASZEP37D.js.map +0 -1
- package/dist/chunk-BH5SU2JQ.mjs +0 -8282
- package/dist/chunk-BH5SU2JQ.mjs.map +0 -1
- package/dist/chunk-BO65GO53.mjs +0 -422
- package/dist/chunk-BO65GO53.mjs.map +0 -1
- package/dist/chunk-BSVXX52E.mjs +0 -413
- package/dist/chunk-BSVXX52E.mjs.map +0 -1
- package/dist/chunk-DNV5UBNF.mjs +0 -3
- package/dist/chunk-DNV5UBNF.mjs.map +0 -1
- package/dist/chunk-EDTAMUO2.js +0 -8310
- package/dist/chunk-EDTAMUO2.js.map +0 -1
- package/dist/chunk-IJTI6EX4.js +0 -4
- package/dist/chunk-IJTI6EX4.js.map +0 -1
- package/dist/chunk-M3YLASM2.js +0 -428
- package/dist/chunk-M3YLASM2.js.map +0 -1
- package/dist/chunk-OXKOGLXE.js +0 -4
- package/dist/chunk-OXKOGLXE.js.map +0 -1
- package/dist/chunk-RQXQK3ZO.mjs +0 -8486
- package/dist/chunk-RQXQK3ZO.mjs.map +0 -1
- package/dist/chunk-SR25V4EA.mjs +0 -40
- package/dist/chunk-SR25V4EA.mjs.map +0 -1
- package/dist/chunk-UB34WFEQ.js +0 -106
- package/dist/chunk-UB34WFEQ.js.map +0 -1
- package/dist/chunk-ZBRWXKDF.mjs +0 -24431
- package/dist/chunk-ZBRWXKDF.mjs.map +0 -1
- package/dist/cli/ds.d.mts +0 -1
- package/dist/cli/ds.d.ts +0 -1
- package/dist/cli/ds.js +0 -602
- package/dist/cli/ds.js.map +0 -1
- package/dist/cli/ds.mjs +0 -579
- package/dist/cli/ds.mjs.map +0 -1
- package/dist/cli/flipova.d.mts +0 -1
- package/dist/cli/flipova.d.ts +0 -1
- package/dist/cli/flipova.js +0 -161
- package/dist/cli/flipova.js.map +0 -1
- package/dist/cli/flipova.mjs +0 -154
- package/dist/cli/flipova.mjs.map +0 -1
- package/dist/config/index.d.mts +0 -123
- package/dist/config/index.d.ts +0 -123
- package/dist/config/index.js +0 -28
- package/dist/config/index.js.map +0 -1
- package/dist/config/index.mjs +0 -3
- package/dist/config/index.mjs.map +0 -1
- package/dist/index-CuaJA3gM.d.mts +0 -78
- package/dist/index-CuaJA3gM.d.ts +0 -78
- package/dist/registry/index.d.mts +0 -10160
- package/dist/registry/index.d.ts +0 -10160
- package/dist/registry/index.js +0 -392
- package/dist/registry/index.js.map +0 -1
- package/dist/registry/index.mjs +0 -3
- package/dist/registry/index.mjs.map +0 -1
- package/dist/theme/index.d.mts +0 -109
- package/dist/theme/index.d.ts +0 -109
- package/dist/theme/index.js +0 -28
- package/dist/theme/index.js.map +0 -1
- package/dist/theme/index.mjs +0 -3
- package/dist/theme/index.mjs.map +0 -1
- package/dist/tokens/index.d.mts +0 -423
- package/dist/tokens/index.d.ts +0 -423
- package/dist/tokens/index.js +0 -44
- package/dist/tokens/index.js.map +0 -1
- package/dist/tokens/index.mjs +0 -3
- package/dist/tokens/index.mjs.map +0 -1
- package/dist/types/index.d.mts +0 -202
- package/dist/types/index.d.ts +0 -202
- package/dist/types/index.js +0 -4
- package/dist/types/index.js.map +0 -1
- package/dist/types/index.mjs +0 -3
- package/dist/types/index.mjs.map +0 -1
package/dist/config/index.d.ts
DELETED
|
@@ -1,123 +0,0 @@
|
|
|
1
|
-
import { C as ColorScheme, T as ThemeGradients } from '../index-CuaJA3gM.js';
|
|
2
|
-
import React from 'react';
|
|
3
|
-
|
|
4
|
-
/**
|
|
5
|
-
* FoundationProvider
|
|
6
|
-
*
|
|
7
|
-
* Wraps the app with resolved config (tokens + themes).
|
|
8
|
-
* Replaces the standalone ThemeProvider — this is the single entry point.
|
|
9
|
-
*
|
|
10
|
-
* Usage:
|
|
11
|
-
* ```tsx
|
|
12
|
-
* import { FoundationProvider } from "@flipova/foundation/config";
|
|
13
|
-
* import config from "./flipova.config";
|
|
14
|
-
*
|
|
15
|
-
* export default function App() {
|
|
16
|
-
* return (
|
|
17
|
-
* <FoundationProvider config={config}>
|
|
18
|
-
* <MyApp />
|
|
19
|
-
* </FoundationProvider>
|
|
20
|
-
* );
|
|
21
|
-
* }
|
|
22
|
-
* ```
|
|
23
|
-
*/
|
|
24
|
-
|
|
25
|
-
/**
|
|
26
|
-
* Hook to retrieve the resolved Foundation configuration.
|
|
27
|
-
*
|
|
28
|
-
* @returns The resolved configuration.
|
|
29
|
-
* @throws Error if used outside a FoundationProvider.
|
|
30
|
-
*/
|
|
31
|
-
declare function useFoundationConfig(): ResolvedConfig;
|
|
32
|
-
/**
|
|
33
|
-
* Hook to retrieve resolved design tokens.
|
|
34
|
-
*
|
|
35
|
-
* @returns Resolved tokens object.
|
|
36
|
-
*/
|
|
37
|
-
declare function useTokens(): ResolvedConfig["tokens"];
|
|
38
|
-
/**
|
|
39
|
-
* FoundationProvider props interface.
|
|
40
|
-
*/
|
|
41
|
-
interface FoundationProviderProps {
|
|
42
|
-
children?: React.ReactNode;
|
|
43
|
-
config?: FoundationConfig;
|
|
44
|
-
}
|
|
45
|
-
/**
|
|
46
|
-
* Main Foundation Provider component.
|
|
47
|
-
*
|
|
48
|
-
* Wraps the application with resolved configuration (tokens and themes).
|
|
49
|
-
* Serves as the primary single entry point.
|
|
50
|
-
*
|
|
51
|
-
* @param props - Configuration provider properties.
|
|
52
|
-
* @returns Provider component wrapping children with context.
|
|
53
|
-
*
|
|
54
|
-
* @example
|
|
55
|
-
* ```tsx
|
|
56
|
-
* import { FoundationProvider } from "@flipova/foundation/config";
|
|
57
|
-
* import config from "./flipova.config";
|
|
58
|
-
*
|
|
59
|
-
* export default function App() {
|
|
60
|
-
* return (
|
|
61
|
-
* <FoundationProvider config={config}>
|
|
62
|
-
* <MyApp />
|
|
63
|
-
* </FoundationProvider>
|
|
64
|
-
* );
|
|
65
|
-
* }
|
|
66
|
-
* ```
|
|
67
|
-
*/
|
|
68
|
-
declare const FoundationProvider: React.FC<FoundationProviderProps>;
|
|
69
|
-
|
|
70
|
-
interface TokenOverrides {
|
|
71
|
-
spacing?: Record<number, number>;
|
|
72
|
-
breakpoints?: Record<string, number>;
|
|
73
|
-
radii?: Record<string, number>;
|
|
74
|
-
fontSizes?: Record<string, number>;
|
|
75
|
-
fontWeights?: Record<string, string>;
|
|
76
|
-
lineHeights?: Record<string, number>;
|
|
77
|
-
colors?: Record<string, string | Record<string, string>>;
|
|
78
|
-
shadows?: Record<string, {
|
|
79
|
-
shadowColor: string;
|
|
80
|
-
shadowOffset: {
|
|
81
|
-
width: number;
|
|
82
|
-
height: number;
|
|
83
|
-
};
|
|
84
|
-
shadowOpacity: number;
|
|
85
|
-
shadowRadius: number;
|
|
86
|
-
elevation: number;
|
|
87
|
-
}>;
|
|
88
|
-
durations?: Record<string, number>;
|
|
89
|
-
opacity?: Record<number, number>;
|
|
90
|
-
zIndices?: Record<string, number>;
|
|
91
|
-
}
|
|
92
|
-
interface ThemeDefinition {
|
|
93
|
-
colors: Partial<Omit<ColorScheme, "gradients">>;
|
|
94
|
-
gradients?: Partial<ThemeGradients>;
|
|
95
|
-
}
|
|
96
|
-
interface FoundationConfig {
|
|
97
|
-
tokens?: TokenOverrides;
|
|
98
|
-
themes?: Record<string, ThemeDefinition>;
|
|
99
|
-
defaultTheme?: string;
|
|
100
|
-
typescript?: boolean;
|
|
101
|
-
}
|
|
102
|
-
interface ResolvedTokens {
|
|
103
|
-
spacing: Record<number, number>;
|
|
104
|
-
breakpoints: Record<string, number>;
|
|
105
|
-
radii: Record<string, number>;
|
|
106
|
-
shadows: Record<string, unknown>;
|
|
107
|
-
colors: Record<string, unknown>;
|
|
108
|
-
fontSizes: Record<string, number>;
|
|
109
|
-
fontWeights: Record<string, string>;
|
|
110
|
-
lineHeights: Record<string, number>;
|
|
111
|
-
durations: Record<string, number>;
|
|
112
|
-
opacity: Record<number, number>;
|
|
113
|
-
zIndices: Record<string, number>;
|
|
114
|
-
}
|
|
115
|
-
interface ResolvedConfig {
|
|
116
|
-
tokens: ResolvedTokens;
|
|
117
|
-
themes: Record<string, ColorScheme>;
|
|
118
|
-
defaultTheme: string;
|
|
119
|
-
}
|
|
120
|
-
declare function defineConfig(config: FoundationConfig): FoundationConfig;
|
|
121
|
-
declare function resolveConfig(userConfig?: FoundationConfig): ResolvedConfig;
|
|
122
|
-
|
|
123
|
-
export { type FoundationConfig, FoundationProvider, type ResolvedConfig, type ResolvedTokens, type ThemeDefinition, type TokenOverrides, defineConfig, resolveConfig, useFoundationConfig, useTokens };
|
package/dist/config/index.js
DELETED
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var chunkUB34WFEQ_js = require('../chunk-UB34WFEQ.js');
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
Object.defineProperty(exports, "FoundationProvider", {
|
|
8
|
-
enumerable: true,
|
|
9
|
-
get: function () { return chunkUB34WFEQ_js.FoundationProvider; }
|
|
10
|
-
});
|
|
11
|
-
Object.defineProperty(exports, "defineConfig", {
|
|
12
|
-
enumerable: true,
|
|
13
|
-
get: function () { return chunkUB34WFEQ_js.defineConfig; }
|
|
14
|
-
});
|
|
15
|
-
Object.defineProperty(exports, "resolveConfig", {
|
|
16
|
-
enumerable: true,
|
|
17
|
-
get: function () { return chunkUB34WFEQ_js.resolveConfig; }
|
|
18
|
-
});
|
|
19
|
-
Object.defineProperty(exports, "useFoundationConfig", {
|
|
20
|
-
enumerable: true,
|
|
21
|
-
get: function () { return chunkUB34WFEQ_js.useFoundationConfig; }
|
|
22
|
-
});
|
|
23
|
-
Object.defineProperty(exports, "useTokens", {
|
|
24
|
-
enumerable: true,
|
|
25
|
-
get: function () { return chunkUB34WFEQ_js.useTokens; }
|
|
26
|
-
});
|
|
27
|
-
//# sourceMappingURL=index.js.map
|
|
28
|
-
//# sourceMappingURL=index.js.map
|
package/dist/config/index.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":[],"names":[],"mappings":"","file":"index.js"}
|
package/dist/config/index.mjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":[],"names":[],"mappings":"","file":"index.mjs"}
|
|
@@ -1,78 +0,0 @@
|
|
|
1
|
-
declare const themes: {
|
|
2
|
-
readonly autumn: ColorScheme;
|
|
3
|
-
readonly christmas: ColorScheme;
|
|
4
|
-
readonly dark: ColorScheme;
|
|
5
|
-
readonly halloween: ColorScheme;
|
|
6
|
-
readonly light: ColorScheme;
|
|
7
|
-
readonly neon: ColorScheme;
|
|
8
|
-
readonly spring: ColorScheme;
|
|
9
|
-
readonly summer: ColorScheme;
|
|
10
|
-
readonly winter: ColorScheme;
|
|
11
|
-
};
|
|
12
|
-
type ThemeName = keyof typeof themes;
|
|
13
|
-
|
|
14
|
-
/**
|
|
15
|
-
* Type representing built-in and generated theme modes.
|
|
16
|
-
*/
|
|
17
|
-
type ThemeMode = ThemeName | 'light' | 'dark';
|
|
18
|
-
/**
|
|
19
|
-
* Type representing a custom theme mode as a string.
|
|
20
|
-
*/
|
|
21
|
-
type CustomThemeMode = string;
|
|
22
|
-
/**
|
|
23
|
-
* Theme gradient color definitions.
|
|
24
|
-
* Each gradient is an array of 2+ color strings.
|
|
25
|
-
*/
|
|
26
|
-
type ThemeGradients = {
|
|
27
|
-
primary: string[];
|
|
28
|
-
secondary: string[];
|
|
29
|
-
success: string[];
|
|
30
|
-
warning: string[];
|
|
31
|
-
error: string[];
|
|
32
|
-
info: string[];
|
|
33
|
-
subtle: string[];
|
|
34
|
-
vibrant: string[];
|
|
35
|
-
};
|
|
36
|
-
/**
|
|
37
|
-
* Theme color scheme specification.
|
|
38
|
-
*
|
|
39
|
-
* Contains color and gradient tokens — static tokens
|
|
40
|
-
* (spacing, radii, shadows, typography) are imported directly
|
|
41
|
-
* from `foundation/tokens` as they remain constant across themes.
|
|
42
|
-
*/
|
|
43
|
-
type ColorScheme = {
|
|
44
|
-
background: string;
|
|
45
|
-
foreground: string;
|
|
46
|
-
card: string;
|
|
47
|
-
cardForeground: string;
|
|
48
|
-
primary: string;
|
|
49
|
-
primaryForeground: string;
|
|
50
|
-
secondary: string;
|
|
51
|
-
secondaryForeground: string;
|
|
52
|
-
muted: string;
|
|
53
|
-
mutedForeground: string;
|
|
54
|
-
accent: string;
|
|
55
|
-
accentForeground: string;
|
|
56
|
-
destructive: string;
|
|
57
|
-
destructiveForeground: string;
|
|
58
|
-
border: string;
|
|
59
|
-
input: string;
|
|
60
|
-
ring: string;
|
|
61
|
-
success: string;
|
|
62
|
-
warning: string;
|
|
63
|
-
error: string;
|
|
64
|
-
info: string;
|
|
65
|
-
transparent: string;
|
|
66
|
-
gradients: ThemeGradients;
|
|
67
|
-
};
|
|
68
|
-
/**
|
|
69
|
-
* Registry of available application themes.
|
|
70
|
-
* Contains light and dark themes, plus any registered custom themes.
|
|
71
|
-
*/
|
|
72
|
-
type ThemeRegistry = {
|
|
73
|
-
light: ColorScheme;
|
|
74
|
-
dark: ColorScheme;
|
|
75
|
-
[key: string]: ColorScheme;
|
|
76
|
-
};
|
|
77
|
-
|
|
78
|
-
export { type ColorScheme as C, type ThemeGradients as T, type CustomThemeMode as a, type ThemeMode as b, type ThemeName as c, type ThemeRegistry as d, themes as t };
|
package/dist/index-CuaJA3gM.d.ts
DELETED
|
@@ -1,78 +0,0 @@
|
|
|
1
|
-
declare const themes: {
|
|
2
|
-
readonly autumn: ColorScheme;
|
|
3
|
-
readonly christmas: ColorScheme;
|
|
4
|
-
readonly dark: ColorScheme;
|
|
5
|
-
readonly halloween: ColorScheme;
|
|
6
|
-
readonly light: ColorScheme;
|
|
7
|
-
readonly neon: ColorScheme;
|
|
8
|
-
readonly spring: ColorScheme;
|
|
9
|
-
readonly summer: ColorScheme;
|
|
10
|
-
readonly winter: ColorScheme;
|
|
11
|
-
};
|
|
12
|
-
type ThemeName = keyof typeof themes;
|
|
13
|
-
|
|
14
|
-
/**
|
|
15
|
-
* Type representing built-in and generated theme modes.
|
|
16
|
-
*/
|
|
17
|
-
type ThemeMode = ThemeName | 'light' | 'dark';
|
|
18
|
-
/**
|
|
19
|
-
* Type representing a custom theme mode as a string.
|
|
20
|
-
*/
|
|
21
|
-
type CustomThemeMode = string;
|
|
22
|
-
/**
|
|
23
|
-
* Theme gradient color definitions.
|
|
24
|
-
* Each gradient is an array of 2+ color strings.
|
|
25
|
-
*/
|
|
26
|
-
type ThemeGradients = {
|
|
27
|
-
primary: string[];
|
|
28
|
-
secondary: string[];
|
|
29
|
-
success: string[];
|
|
30
|
-
warning: string[];
|
|
31
|
-
error: string[];
|
|
32
|
-
info: string[];
|
|
33
|
-
subtle: string[];
|
|
34
|
-
vibrant: string[];
|
|
35
|
-
};
|
|
36
|
-
/**
|
|
37
|
-
* Theme color scheme specification.
|
|
38
|
-
*
|
|
39
|
-
* Contains color and gradient tokens — static tokens
|
|
40
|
-
* (spacing, radii, shadows, typography) are imported directly
|
|
41
|
-
* from `foundation/tokens` as they remain constant across themes.
|
|
42
|
-
*/
|
|
43
|
-
type ColorScheme = {
|
|
44
|
-
background: string;
|
|
45
|
-
foreground: string;
|
|
46
|
-
card: string;
|
|
47
|
-
cardForeground: string;
|
|
48
|
-
primary: string;
|
|
49
|
-
primaryForeground: string;
|
|
50
|
-
secondary: string;
|
|
51
|
-
secondaryForeground: string;
|
|
52
|
-
muted: string;
|
|
53
|
-
mutedForeground: string;
|
|
54
|
-
accent: string;
|
|
55
|
-
accentForeground: string;
|
|
56
|
-
destructive: string;
|
|
57
|
-
destructiveForeground: string;
|
|
58
|
-
border: string;
|
|
59
|
-
input: string;
|
|
60
|
-
ring: string;
|
|
61
|
-
success: string;
|
|
62
|
-
warning: string;
|
|
63
|
-
error: string;
|
|
64
|
-
info: string;
|
|
65
|
-
transparent: string;
|
|
66
|
-
gradients: ThemeGradients;
|
|
67
|
-
};
|
|
68
|
-
/**
|
|
69
|
-
* Registry of available application themes.
|
|
70
|
-
* Contains light and dark themes, plus any registered custom themes.
|
|
71
|
-
*/
|
|
72
|
-
type ThemeRegistry = {
|
|
73
|
-
light: ColorScheme;
|
|
74
|
-
dark: ColorScheme;
|
|
75
|
-
[key: string]: ColorScheme;
|
|
76
|
-
};
|
|
77
|
-
|
|
78
|
-
export { type ColorScheme as C, type ThemeGradients as T, type CustomThemeMode as a, type ThemeMode as b, type ThemeName as c, type ThemeRegistry as d, themes as t };
|