@flipova/foundation 1.14.0 → 2.0.5
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 -10
- package/dist/index.d.ts +40 -10
- 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 -149
- 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/createTheme-DQeX3s0I.d.mts +0 -78
- package/dist/createTheme-Y4jfz4-u.d.ts +0 -78
- 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 -35
- package/dist/theme/index.d.ts +0 -35
- 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/web/index.d.mts +0 -316
- package/dist/web/index.d.ts +0 -316
- package/dist/web/index.js +0 -1500
- package/dist/web/index.js.map +0 -1
- package/dist/web/index.mjs +0 -1396
- package/dist/web/index.mjs.map +0 -1
package/dist/tokens/index.d.ts
DELETED
|
@@ -1,423 +0,0 @@
|
|
|
1
|
-
declare const colors: {
|
|
2
|
-
readonly white: "#FFFFFF";
|
|
3
|
-
readonly black: "#000000";
|
|
4
|
-
readonly gray: {
|
|
5
|
-
readonly "50": "#F9FAFB";
|
|
6
|
-
readonly "100": "#F3F4F6";
|
|
7
|
-
readonly "200": "#E5E7EB";
|
|
8
|
-
readonly "300": "#D1D5DB";
|
|
9
|
-
readonly "400": "#9CA3AF";
|
|
10
|
-
readonly "500": "#6B7280";
|
|
11
|
-
readonly "600": "#4B5563";
|
|
12
|
-
readonly "700": "#374151";
|
|
13
|
-
readonly "800": "#1F2937";
|
|
14
|
-
readonly "900": "#111827";
|
|
15
|
-
};
|
|
16
|
-
readonly primary: {
|
|
17
|
-
readonly "50": "#E5E5F4";
|
|
18
|
-
readonly "100": "#CCCCE9";
|
|
19
|
-
readonly "200": "#9999D3";
|
|
20
|
-
readonly "300": "#6666BD";
|
|
21
|
-
readonly "400": "#3333A7";
|
|
22
|
-
readonly "500": "#000091";
|
|
23
|
-
readonly "600": "#000082";
|
|
24
|
-
readonly "700": "#00006D";
|
|
25
|
-
readonly "800": "#000055";
|
|
26
|
-
readonly "900": "#00003D";
|
|
27
|
-
};
|
|
28
|
-
readonly primaryForeground: "#FFFFFF";
|
|
29
|
-
readonly secondary: {
|
|
30
|
-
readonly "50": "#E7E7FF";
|
|
31
|
-
readonly "100": "#CFCFFF";
|
|
32
|
-
readonly "200": "#9F9FFF";
|
|
33
|
-
readonly "300": "#6F6FFF";
|
|
34
|
-
readonly "400": "#3F3FFF";
|
|
35
|
-
readonly "500": "#0D0EFF";
|
|
36
|
-
readonly "600": "#0B0CD6";
|
|
37
|
-
readonly "700": "#0809AD";
|
|
38
|
-
readonly "800": "#060685";
|
|
39
|
-
readonly "900": "#03035C";
|
|
40
|
-
};
|
|
41
|
-
readonly secondaryForeground: "#FFFFFF";
|
|
42
|
-
readonly success: {
|
|
43
|
-
readonly "50": "#F0FDF4";
|
|
44
|
-
readonly "100": "#DCFCE7";
|
|
45
|
-
readonly "500": "#22C55E";
|
|
46
|
-
readonly "600": "#16A34A";
|
|
47
|
-
readonly "700": "#15803D";
|
|
48
|
-
};
|
|
49
|
-
readonly warning: {
|
|
50
|
-
readonly "50": "#FFFBEB";
|
|
51
|
-
readonly "100": "#FEF3C7";
|
|
52
|
-
readonly "500": "#F59E0B";
|
|
53
|
-
readonly "600": "#D97706";
|
|
54
|
-
readonly "700": "#B45309";
|
|
55
|
-
};
|
|
56
|
-
readonly error: {
|
|
57
|
-
readonly "50": "#FEF2F2";
|
|
58
|
-
readonly "100": "#FEE2E2";
|
|
59
|
-
readonly "500": "#EF4444";
|
|
60
|
-
readonly "600": "#DC2626";
|
|
61
|
-
readonly "700": "#B91C1C";
|
|
62
|
-
};
|
|
63
|
-
readonly info: {
|
|
64
|
-
readonly "50": "#EFF6FF";
|
|
65
|
-
readonly "100": "#DBEAFE";
|
|
66
|
-
readonly "500": "#3B82F6";
|
|
67
|
-
readonly "600": "#2563EB";
|
|
68
|
-
readonly "700": "#1D4ED8";
|
|
69
|
-
};
|
|
70
|
-
readonly neon: {
|
|
71
|
-
readonly background: "#1A0033";
|
|
72
|
-
readonly surface: "#2D0047";
|
|
73
|
-
readonly primary: "#9200db";
|
|
74
|
-
readonly primaryLight: "#4200589f";
|
|
75
|
-
readonly primaryDark: "#2c0150ff";
|
|
76
|
-
readonly secondary: "#00E5FF";
|
|
77
|
-
readonly secondaryLight: "#66FFFF";
|
|
78
|
-
readonly secondaryDark: "#00ACC1";
|
|
79
|
-
readonly accent: "#FF006E";
|
|
80
|
-
readonly accentLight: "#FF4081";
|
|
81
|
-
readonly accentDark: "#C2185B";
|
|
82
|
-
readonly success: "#00FF88";
|
|
83
|
-
readonly successLight: "#66FFAA";
|
|
84
|
-
readonly muted: "#3D0066";
|
|
85
|
-
readonly border: "#520080";
|
|
86
|
-
readonly text: "#FFFFFF";
|
|
87
|
-
readonly textSecondary: "#B3B3CC";
|
|
88
|
-
};
|
|
89
|
-
readonly spring: {
|
|
90
|
-
readonly background: "#F0F4F8";
|
|
91
|
-
readonly surface: "#FFFFFF";
|
|
92
|
-
readonly primary: "#5a0832de";
|
|
93
|
-
readonly primaryLight: "#FBCFE8";
|
|
94
|
-
readonly primaryDark: "#DB2777";
|
|
95
|
-
readonly secondary: "#4ADE80";
|
|
96
|
-
readonly secondaryLight: "#BBF7D0";
|
|
97
|
-
readonly secondaryDark: "#166534";
|
|
98
|
-
readonly accent: "#8B5CF6";
|
|
99
|
-
readonly accentLight: "#C4B5FD";
|
|
100
|
-
readonly accentDark: "#6D28D9";
|
|
101
|
-
readonly success: "#10B981";
|
|
102
|
-
readonly successLight: "#D1FAE5";
|
|
103
|
-
readonly muted: "#E2E8F0";
|
|
104
|
-
readonly border: "#CBD5E1CC";
|
|
105
|
-
readonly text: "#334155";
|
|
106
|
-
readonly textSecondary: "#64748B";
|
|
107
|
-
};
|
|
108
|
-
readonly summer: {
|
|
109
|
-
readonly background: "#FEF3C7";
|
|
110
|
-
readonly surface: "#FFFFFF";
|
|
111
|
-
readonly primary: "#301f01ff";
|
|
112
|
-
readonly primaryLight: "#FCD34D";
|
|
113
|
-
readonly primaryDark: "#D97706";
|
|
114
|
-
readonly secondary: "#EF4444";
|
|
115
|
-
readonly secondaryLight: "#F87171";
|
|
116
|
-
readonly secondaryDark: "#DC2626";
|
|
117
|
-
readonly accent: "#3B82F6";
|
|
118
|
-
readonly accentLight: "#60A5FA";
|
|
119
|
-
readonly accentDark: "#2563EB";
|
|
120
|
-
readonly success: "#10B981";
|
|
121
|
-
readonly successLight: "#34D399";
|
|
122
|
-
readonly muted: "#FEF9C3";
|
|
123
|
-
readonly border: "#FDE68A";
|
|
124
|
-
readonly text: "#78350F";
|
|
125
|
-
readonly textSecondary: "#92400E";
|
|
126
|
-
};
|
|
127
|
-
readonly autumn: {
|
|
128
|
-
readonly background: "#2D1B14";
|
|
129
|
-
readonly surface: "#4A2C2A";
|
|
130
|
-
readonly primary: "#000000ff";
|
|
131
|
-
readonly primaryLight: "#FB923C";
|
|
132
|
-
readonly primaryDark: "#C2410C";
|
|
133
|
-
readonly secondary: "#A16207";
|
|
134
|
-
readonly secondaryLight: "#CA8A04";
|
|
135
|
-
readonly secondaryDark: "#854D0E";
|
|
136
|
-
readonly accent: "#DC2626";
|
|
137
|
-
readonly accentLight: "#EF4444";
|
|
138
|
-
readonly accentDark: "#B91C1C";
|
|
139
|
-
readonly success: "#16A34A";
|
|
140
|
-
readonly successLight: "#22C55E";
|
|
141
|
-
readonly muted: "#451A03";
|
|
142
|
-
readonly border: "#7C2D12";
|
|
143
|
-
readonly text: "#FEF3C7";
|
|
144
|
-
readonly textSecondary: "#FDE68A";
|
|
145
|
-
};
|
|
146
|
-
readonly winter: {
|
|
147
|
-
readonly background: "#0F172A";
|
|
148
|
-
readonly surface: "#1E293B";
|
|
149
|
-
readonly primary: "#253a5aff";
|
|
150
|
-
readonly primaryLight: "#38BDF8";
|
|
151
|
-
readonly primaryDark: "#0284C7";
|
|
152
|
-
readonly secondary: "#E2E8F0";
|
|
153
|
-
readonly secondaryLight: "#F1F5F9";
|
|
154
|
-
readonly secondaryDark: "#CBD5E1";
|
|
155
|
-
readonly accent: "#8B5CF6";
|
|
156
|
-
readonly accentLight: "#A78BFA";
|
|
157
|
-
readonly accentDark: "#7C3AED";
|
|
158
|
-
readonly success: "#10B981";
|
|
159
|
-
readonly successLight: "#34D399";
|
|
160
|
-
readonly muted: "#1E293B";
|
|
161
|
-
readonly border: "#334155";
|
|
162
|
-
readonly text: "#F8FAFC";
|
|
163
|
-
readonly textSecondary: "#CBD5E1";
|
|
164
|
-
};
|
|
165
|
-
readonly halloween: {
|
|
166
|
-
readonly background: "#080510";
|
|
167
|
-
readonly surface: "#120E1F";
|
|
168
|
-
readonly primary: "#7C3AEDCC";
|
|
169
|
-
readonly primaryLight: "#A78BFA";
|
|
170
|
-
readonly primaryDark: "#4C1D95";
|
|
171
|
-
readonly secondary: "#10B981";
|
|
172
|
-
readonly secondaryLight: "#34D399";
|
|
173
|
-
readonly secondaryDark: "#065F46";
|
|
174
|
-
readonly accent: "#94A3B8";
|
|
175
|
-
readonly accentLight: "#E2E8F0";
|
|
176
|
-
readonly accentDark: "#475569";
|
|
177
|
-
readonly success: "#059669";
|
|
178
|
-
readonly successLight: "#A7F3D0";
|
|
179
|
-
readonly muted: "#1F1B2E";
|
|
180
|
-
readonly border: "#2E2845";
|
|
181
|
-
readonly text: "#F8FAFC";
|
|
182
|
-
readonly textSecondary: "#9D84B7";
|
|
183
|
-
};
|
|
184
|
-
readonly christmas: {
|
|
185
|
-
readonly background: "#0A2417";
|
|
186
|
-
readonly surface: "#123D29";
|
|
187
|
-
readonly primary: "#3f991bcc";
|
|
188
|
-
readonly primaryLight: "#C24141";
|
|
189
|
-
readonly primaryDark: "#7F1D1D";
|
|
190
|
-
readonly secondary: "#C5A059";
|
|
191
|
-
readonly secondaryLight: "#E3C58B";
|
|
192
|
-
readonly secondaryDark: "#926D27";
|
|
193
|
-
readonly accent: "#F8FAFC";
|
|
194
|
-
readonly accentLight: "#FFFFFF";
|
|
195
|
-
readonly accentDark: "#CBD5E1";
|
|
196
|
-
readonly success: "#15803D";
|
|
197
|
-
readonly successLight: "#22C55E";
|
|
198
|
-
readonly muted: "#1E3A2B";
|
|
199
|
-
readonly border: "#2D5A43";
|
|
200
|
-
readonly text: "#F1F5F9";
|
|
201
|
-
readonly textSecondary: "#D4AF37";
|
|
202
|
-
};
|
|
203
|
-
readonly transparent: "transparent";
|
|
204
|
-
};
|
|
205
|
-
declare const spacing: {
|
|
206
|
-
readonly "0": 0;
|
|
207
|
-
readonly "1": 4;
|
|
208
|
-
readonly "2": 8;
|
|
209
|
-
readonly "3": 12;
|
|
210
|
-
readonly "4": 16;
|
|
211
|
-
readonly "5": 20;
|
|
212
|
-
readonly "6": 24;
|
|
213
|
-
readonly "7": 28;
|
|
214
|
-
readonly "8": 32;
|
|
215
|
-
readonly "10": 40;
|
|
216
|
-
readonly "12": 48;
|
|
217
|
-
readonly "14": 56;
|
|
218
|
-
readonly "16": 64;
|
|
219
|
-
readonly "20": 80;
|
|
220
|
-
readonly "24": 96;
|
|
221
|
-
readonly "28": 112;
|
|
222
|
-
readonly "32": 128;
|
|
223
|
-
readonly "36": 144;
|
|
224
|
-
readonly "40": 160;
|
|
225
|
-
readonly "44": 176;
|
|
226
|
-
readonly "48": 192;
|
|
227
|
-
readonly "52": 208;
|
|
228
|
-
readonly "56": 224;
|
|
229
|
-
readonly "60": 240;
|
|
230
|
-
readonly "64": 256;
|
|
231
|
-
};
|
|
232
|
-
declare const typography: {
|
|
233
|
-
readonly fontSizes: {
|
|
234
|
-
readonly xs: 12;
|
|
235
|
-
readonly sm: 14;
|
|
236
|
-
readonly base: 16;
|
|
237
|
-
readonly lg: 18;
|
|
238
|
-
readonly xl: 20;
|
|
239
|
-
readonly "2xl": 24;
|
|
240
|
-
readonly "3xl": 30;
|
|
241
|
-
readonly "4xl": 36;
|
|
242
|
-
readonly "5xl": 48;
|
|
243
|
-
readonly "6xl": 60;
|
|
244
|
-
readonly "7xl": 72;
|
|
245
|
-
};
|
|
246
|
-
readonly fontWeights: {
|
|
247
|
-
readonly thin: "100";
|
|
248
|
-
readonly extralight: "200";
|
|
249
|
-
readonly light: "300";
|
|
250
|
-
readonly normal: "400";
|
|
251
|
-
readonly medium: "500";
|
|
252
|
-
readonly semibold: "600";
|
|
253
|
-
readonly bold: "700";
|
|
254
|
-
readonly extrabold: "800";
|
|
255
|
-
readonly black: "900";
|
|
256
|
-
};
|
|
257
|
-
readonly lineHeights: {
|
|
258
|
-
readonly none: 1;
|
|
259
|
-
readonly tight: 1.25;
|
|
260
|
-
readonly snug: 1.375;
|
|
261
|
-
readonly normal: 1.5;
|
|
262
|
-
readonly relaxed: 1.625;
|
|
263
|
-
readonly loose: 2;
|
|
264
|
-
};
|
|
265
|
-
readonly letterSpacings: {
|
|
266
|
-
readonly tighter: -0.8;
|
|
267
|
-
readonly tight: -0.4;
|
|
268
|
-
readonly normal: 0;
|
|
269
|
-
readonly wide: 0.4;
|
|
270
|
-
readonly wider: 0.8;
|
|
271
|
-
readonly widest: 1.6;
|
|
272
|
-
};
|
|
273
|
-
};
|
|
274
|
-
declare const breakpoints: {
|
|
275
|
-
readonly xs: 0;
|
|
276
|
-
readonly sm: 576;
|
|
277
|
-
readonly md: 768;
|
|
278
|
-
readonly lg: 992;
|
|
279
|
-
readonly xl: 1200;
|
|
280
|
-
readonly "2xl": 1440;
|
|
281
|
-
};
|
|
282
|
-
declare const opacity: {
|
|
283
|
-
readonly "0": 0;
|
|
284
|
-
readonly "5": 0.05;
|
|
285
|
-
readonly "10": 0.1;
|
|
286
|
-
readonly "20": 0.2;
|
|
287
|
-
readonly "25": 0.25;
|
|
288
|
-
readonly "30": 0.3;
|
|
289
|
-
readonly "40": 0.4;
|
|
290
|
-
readonly "50": 0.5;
|
|
291
|
-
readonly "60": 0.6;
|
|
292
|
-
readonly "70": 0.7;
|
|
293
|
-
readonly "75": 0.75;
|
|
294
|
-
readonly "80": 0.8;
|
|
295
|
-
readonly "90": 0.9;
|
|
296
|
-
readonly "95": 0.95;
|
|
297
|
-
readonly "100": 1;
|
|
298
|
-
};
|
|
299
|
-
declare const motion: {
|
|
300
|
-
readonly durations: {
|
|
301
|
-
readonly instant: 0;
|
|
302
|
-
readonly fast: 150;
|
|
303
|
-
readonly base: 250;
|
|
304
|
-
readonly slow: 350;
|
|
305
|
-
readonly slower: 500;
|
|
306
|
-
};
|
|
307
|
-
readonly easings: {
|
|
308
|
-
readonly linear: "linear";
|
|
309
|
-
readonly easeIn: "ease-in";
|
|
310
|
-
readonly easeOut: "ease-out";
|
|
311
|
-
readonly easeInOut: "ease-in-out";
|
|
312
|
-
};
|
|
313
|
-
};
|
|
314
|
-
declare const radii: {
|
|
315
|
-
readonly none: 0;
|
|
316
|
-
readonly xs: 2;
|
|
317
|
-
readonly sm: 4;
|
|
318
|
-
readonly base: 6;
|
|
319
|
-
readonly md: 8;
|
|
320
|
-
readonly lg: 12;
|
|
321
|
-
readonly xl: 16;
|
|
322
|
-
readonly "2xl": 20;
|
|
323
|
-
readonly "3xl": 24;
|
|
324
|
-
readonly full: 9999;
|
|
325
|
-
};
|
|
326
|
-
declare const shadows: {
|
|
327
|
-
readonly none: {
|
|
328
|
-
readonly shadowColor: "#000";
|
|
329
|
-
readonly shadowOffset: {
|
|
330
|
-
readonly width: 0;
|
|
331
|
-
readonly height: 0;
|
|
332
|
-
};
|
|
333
|
-
readonly shadowOpacity: 0;
|
|
334
|
-
readonly shadowRadius: 0;
|
|
335
|
-
readonly elevation: 0;
|
|
336
|
-
};
|
|
337
|
-
readonly sm: {
|
|
338
|
-
readonly shadowColor: "#000";
|
|
339
|
-
readonly shadowOffset: {
|
|
340
|
-
readonly width: 0;
|
|
341
|
-
readonly height: 1;
|
|
342
|
-
};
|
|
343
|
-
readonly shadowOpacity: 0.05;
|
|
344
|
-
readonly shadowRadius: 2;
|
|
345
|
-
readonly elevation: 2;
|
|
346
|
-
};
|
|
347
|
-
readonly base: {
|
|
348
|
-
readonly shadowColor: "#000";
|
|
349
|
-
readonly shadowOffset: {
|
|
350
|
-
readonly width: 0;
|
|
351
|
-
readonly height: 2;
|
|
352
|
-
};
|
|
353
|
-
readonly shadowOpacity: 0.1;
|
|
354
|
-
readonly shadowRadius: 4;
|
|
355
|
-
readonly elevation: 3;
|
|
356
|
-
};
|
|
357
|
-
readonly md: {
|
|
358
|
-
readonly shadowColor: "#000";
|
|
359
|
-
readonly shadowOffset: {
|
|
360
|
-
readonly width: 0;
|
|
361
|
-
readonly height: 4;
|
|
362
|
-
};
|
|
363
|
-
readonly shadowOpacity: 0.15;
|
|
364
|
-
readonly shadowRadius: 8;
|
|
365
|
-
readonly elevation: 5;
|
|
366
|
-
};
|
|
367
|
-
readonly lg: {
|
|
368
|
-
readonly shadowColor: "#000";
|
|
369
|
-
readonly shadowOffset: {
|
|
370
|
-
readonly width: 0;
|
|
371
|
-
readonly height: 8;
|
|
372
|
-
};
|
|
373
|
-
readonly shadowOpacity: 0.2;
|
|
374
|
-
readonly shadowRadius: 16;
|
|
375
|
-
readonly elevation: 8;
|
|
376
|
-
};
|
|
377
|
-
readonly xl: {
|
|
378
|
-
readonly shadowColor: "#000";
|
|
379
|
-
readonly shadowOffset: {
|
|
380
|
-
readonly width: 0;
|
|
381
|
-
readonly height: 12;
|
|
382
|
-
};
|
|
383
|
-
readonly shadowOpacity: 0.25;
|
|
384
|
-
readonly shadowRadius: 24;
|
|
385
|
-
readonly elevation: 12;
|
|
386
|
-
};
|
|
387
|
-
readonly "2xl": {
|
|
388
|
-
readonly shadowColor: "#000";
|
|
389
|
-
readonly shadowOffset: {
|
|
390
|
-
readonly width: 0;
|
|
391
|
-
readonly height: 16;
|
|
392
|
-
};
|
|
393
|
-
readonly shadowOpacity: 0.3;
|
|
394
|
-
readonly shadowRadius: 32;
|
|
395
|
-
readonly elevation: 16;
|
|
396
|
-
};
|
|
397
|
-
};
|
|
398
|
-
declare const zIndex: {
|
|
399
|
-
readonly base: 0;
|
|
400
|
-
readonly dropdown: 1000;
|
|
401
|
-
readonly sticky: 1100;
|
|
402
|
-
readonly fixed: 1200;
|
|
403
|
-
readonly backdrop: 1300;
|
|
404
|
-
readonly modal: 1400;
|
|
405
|
-
readonly popover: 1500;
|
|
406
|
-
readonly toast: 1600;
|
|
407
|
-
readonly tooltip: 1700;
|
|
408
|
-
};
|
|
409
|
-
type ColorToken = keyof typeof colors;
|
|
410
|
-
type SpacingToken = keyof typeof spacing;
|
|
411
|
-
type RadiusToken = keyof typeof radii;
|
|
412
|
-
type ShadowToken = keyof typeof shadows;
|
|
413
|
-
type Breakpoint = keyof typeof breakpoints;
|
|
414
|
-
type OpacityToken = keyof typeof opacity;
|
|
415
|
-
type ZIndexToken = keyof typeof zIndex;
|
|
416
|
-
type FontSizeToken = keyof typeof typography.fontSizes;
|
|
417
|
-
type FontWeightToken = keyof typeof typography.fontWeights;
|
|
418
|
-
type LineHeightToken = keyof typeof typography.lineHeights;
|
|
419
|
-
type LetterSpacingToken = keyof typeof typography.letterSpacings;
|
|
420
|
-
type DurationToken = keyof typeof motion.durations;
|
|
421
|
-
type EasingToken = keyof typeof motion.easings;
|
|
422
|
-
|
|
423
|
-
export { type Breakpoint, type ColorToken, type DurationToken, type EasingToken, type FontSizeToken, type FontWeightToken, type LetterSpacingToken, type LineHeightToken, type OpacityToken, type RadiusToken, type ShadowToken, type SpacingToken, type ZIndexToken, breakpoints, colors, motion, opacity, radii, shadows, spacing, typography, zIndex };
|
package/dist/tokens/index.js
DELETED
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var chunkASZEP37D_js = require('../chunk-ASZEP37D.js');
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
Object.defineProperty(exports, "breakpoints", {
|
|
8
|
-
enumerable: true,
|
|
9
|
-
get: function () { return chunkASZEP37D_js.breakpoints; }
|
|
10
|
-
});
|
|
11
|
-
Object.defineProperty(exports, "colors", {
|
|
12
|
-
enumerable: true,
|
|
13
|
-
get: function () { return chunkASZEP37D_js.colors; }
|
|
14
|
-
});
|
|
15
|
-
Object.defineProperty(exports, "motion", {
|
|
16
|
-
enumerable: true,
|
|
17
|
-
get: function () { return chunkASZEP37D_js.motion; }
|
|
18
|
-
});
|
|
19
|
-
Object.defineProperty(exports, "opacity", {
|
|
20
|
-
enumerable: true,
|
|
21
|
-
get: function () { return chunkASZEP37D_js.opacity; }
|
|
22
|
-
});
|
|
23
|
-
Object.defineProperty(exports, "radii", {
|
|
24
|
-
enumerable: true,
|
|
25
|
-
get: function () { return chunkASZEP37D_js.radii; }
|
|
26
|
-
});
|
|
27
|
-
Object.defineProperty(exports, "shadows", {
|
|
28
|
-
enumerable: true,
|
|
29
|
-
get: function () { return chunkASZEP37D_js.shadows; }
|
|
30
|
-
});
|
|
31
|
-
Object.defineProperty(exports, "spacing", {
|
|
32
|
-
enumerable: true,
|
|
33
|
-
get: function () { return chunkASZEP37D_js.spacing; }
|
|
34
|
-
});
|
|
35
|
-
Object.defineProperty(exports, "typography", {
|
|
36
|
-
enumerable: true,
|
|
37
|
-
get: function () { return chunkASZEP37D_js.typography; }
|
|
38
|
-
});
|
|
39
|
-
Object.defineProperty(exports, "zIndex", {
|
|
40
|
-
enumerable: true,
|
|
41
|
-
get: function () { return chunkASZEP37D_js.zIndex; }
|
|
42
|
-
});
|
|
43
|
-
//# sourceMappingURL=index.js.map
|
|
44
|
-
//# sourceMappingURL=index.js.map
|
package/dist/tokens/index.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":[],"names":[],"mappings":"","file":"index.js"}
|
package/dist/tokens/index.mjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":[],"names":[],"mappings":"","file":"index.mjs"}
|
package/dist/types/index.d.mts
DELETED
|
@@ -1,202 +0,0 @@
|
|
|
1
|
-
import { C as ColorScheme } from '../index-CuaJA3gM.mjs';
|
|
2
|
-
import { SpacingToken } from '../tokens/index.mjs';
|
|
3
|
-
|
|
4
|
-
/**
|
|
5
|
-
* Defines padding spacing around a layout element.
|
|
6
|
-
*/
|
|
7
|
-
interface LayoutPadding {
|
|
8
|
-
top?: SpacingToken;
|
|
9
|
-
bottom?: SpacingToken;
|
|
10
|
-
left?: SpacingToken;
|
|
11
|
-
right?: SpacingToken;
|
|
12
|
-
horizontal?: SpacingToken;
|
|
13
|
-
vertical?: SpacingToken;
|
|
14
|
-
}
|
|
15
|
-
/**
|
|
16
|
-
* Background property type for layouts (solid color hex or gradient array).
|
|
17
|
-
*/
|
|
18
|
-
type LayoutBackground = string | [string, string, ...string[]];
|
|
19
|
-
/**
|
|
20
|
-
* Color roles extracted from the active theme ColorScheme.
|
|
21
|
-
*/
|
|
22
|
-
type ThemeColorRole = Exclude<{
|
|
23
|
-
[K in keyof ColorScheme]: ColorScheme[K] extends string ? K : never;
|
|
24
|
-
}[keyof ColorScheme], undefined>;
|
|
25
|
-
/**
|
|
26
|
-
* Descriptor for a layout or component slot that accepts child elements.
|
|
27
|
-
*/
|
|
28
|
-
interface SlotDescriptor {
|
|
29
|
-
readonly name: string;
|
|
30
|
-
readonly label: string;
|
|
31
|
-
readonly required: boolean;
|
|
32
|
-
readonly kind?: "children" | "items" | "named" | "named-array";
|
|
33
|
-
readonly array?: boolean;
|
|
34
|
-
}
|
|
35
|
-
/**
|
|
36
|
-
* Property types supported by the design system metadata.
|
|
37
|
-
*/
|
|
38
|
-
type PropType = "string" | "number" | "integer" | "url" | "icon" | "boolean" | "spacing" | "radius" | "shadow" | "color" | "background" | "padding" | "enum" | "ratio" | "json";
|
|
39
|
-
/**
|
|
40
|
-
* Property descriptor for a component, layout, or block.
|
|
41
|
-
*/
|
|
42
|
-
interface PropDescriptor<T = unknown> {
|
|
43
|
-
readonly name: string;
|
|
44
|
-
readonly label: string;
|
|
45
|
-
readonly type: PropType;
|
|
46
|
-
readonly default?: T;
|
|
47
|
-
readonly themeDefault?: ThemeColorRole;
|
|
48
|
-
readonly description?: string;
|
|
49
|
-
readonly required?: boolean;
|
|
50
|
-
readonly options?: readonly string[];
|
|
51
|
-
readonly min?: number;
|
|
52
|
-
readonly max?: number;
|
|
53
|
-
readonly step?: number;
|
|
54
|
-
readonly platform?: "native" | "web" | "both";
|
|
55
|
-
readonly group?: "style" | "layout" | "behavior" | "content";
|
|
56
|
-
}
|
|
57
|
-
/**
|
|
58
|
-
* Layout categories.
|
|
59
|
-
*/
|
|
60
|
-
type LayoutCategory = "page" | "content" | "navigation" | "card" | "scroll" | "special";
|
|
61
|
-
/**
|
|
62
|
-
* Component categories.
|
|
63
|
-
*/
|
|
64
|
-
type ComponentCategory = "input" | "action" | "display" | "feedback" | "overlay" | "media" | "navigation";
|
|
65
|
-
/**
|
|
66
|
-
* Block categories.
|
|
67
|
-
*/
|
|
68
|
-
type BlockCategory = "auth" | "profile" | "navigation" | "content" | "data" | "feedback" | "form" | "overlay" | "social" | "ecommerce" | "finance" | "onboarding" | "messaging" | "calendar" | "files" | "location" | "media";
|
|
69
|
-
/**
|
|
70
|
-
* Configuration for spring animations.
|
|
71
|
-
*/
|
|
72
|
-
interface SpringConfig {
|
|
73
|
-
readonly damping: number;
|
|
74
|
-
readonly stiffness: number;
|
|
75
|
-
readonly mass?: number;
|
|
76
|
-
readonly overshootClamping?: boolean;
|
|
77
|
-
}
|
|
78
|
-
/**
|
|
79
|
-
* Constants specific to a layout animation or gesture threshold.
|
|
80
|
-
*/
|
|
81
|
-
interface LayoutConstants {
|
|
82
|
-
readonly springConfig?: SpringConfig;
|
|
83
|
-
readonly springSnap?: SpringConfig;
|
|
84
|
-
readonly springNoBounce?: SpringConfig;
|
|
85
|
-
readonly swipeThreshold?: number;
|
|
86
|
-
readonly flipThreshold?: number;
|
|
87
|
-
readonly exitDistance?: number;
|
|
88
|
-
readonly scaleFactor?: number;
|
|
89
|
-
readonly flipScaleFactor?: number;
|
|
90
|
-
readonly dezoomDuration?: number;
|
|
91
|
-
readonly flipDuration?: number;
|
|
92
|
-
readonly slideOutDuration?: number;
|
|
93
|
-
readonly exitLeft?: number;
|
|
94
|
-
readonly exitRight?: number;
|
|
95
|
-
}
|
|
96
|
-
/**
|
|
97
|
-
* Standardized size configuration for components.
|
|
98
|
-
*/
|
|
99
|
-
interface ComponentSizeConfig {
|
|
100
|
-
readonly height?: number;
|
|
101
|
-
readonly width?: number;
|
|
102
|
-
readonly px?: number;
|
|
103
|
-
readonly py?: number;
|
|
104
|
-
readonly fontSize?: number;
|
|
105
|
-
readonly iconSize?: number;
|
|
106
|
-
readonly borderRadius?: string | number;
|
|
107
|
-
readonly [key: string]: unknown;
|
|
108
|
-
}
|
|
109
|
-
/**
|
|
110
|
-
* Standardized color configuration for components.
|
|
111
|
-
*/
|
|
112
|
-
interface ComponentColorConfig {
|
|
113
|
-
readonly bg?: ThemeColorRole | "transparent" | string;
|
|
114
|
-
readonly text?: ThemeColorRole | string;
|
|
115
|
-
readonly border?: ThemeColorRole | "transparent" | string;
|
|
116
|
-
readonly subtle?: ThemeColorRole | string | readonly [string, string];
|
|
117
|
-
readonly active?: ThemeColorRole | string;
|
|
118
|
-
readonly solid?: readonly [string, string];
|
|
119
|
-
readonly [key: string]: unknown;
|
|
120
|
-
}
|
|
121
|
-
/**
|
|
122
|
-
* Descriptor for a component variant with override properties.
|
|
123
|
-
*/
|
|
124
|
-
interface VariantDescriptor<Props = Record<string, unknown>> {
|
|
125
|
-
readonly name: string;
|
|
126
|
-
readonly label: string;
|
|
127
|
-
readonly description?: string;
|
|
128
|
-
readonly overrides: Partial<Props>;
|
|
129
|
-
}
|
|
130
|
-
interface BaseMeta {
|
|
131
|
-
readonly id: string;
|
|
132
|
-
readonly label: string;
|
|
133
|
-
readonly description: string;
|
|
134
|
-
readonly props: readonly PropDescriptor<any>[];
|
|
135
|
-
readonly themeMapping?: Record<string, ThemeColorRole>;
|
|
136
|
-
readonly tags: readonly string[];
|
|
137
|
-
readonly customConfig?: Record<string, any>;
|
|
138
|
-
readonly enumMap?: Record<string, readonly string[]>;
|
|
139
|
-
readonly example?: string;
|
|
140
|
-
readonly examples?: readonly string[];
|
|
141
|
-
}
|
|
142
|
-
/**
|
|
143
|
-
* Layout-specific metadata interface.
|
|
144
|
-
*/
|
|
145
|
-
interface LayoutMeta extends BaseMeta {
|
|
146
|
-
readonly category: LayoutCategory;
|
|
147
|
-
readonly slots: readonly SlotDescriptor[];
|
|
148
|
-
readonly constants?: LayoutConstants;
|
|
149
|
-
readonly responsive: boolean;
|
|
150
|
-
readonly animated: boolean;
|
|
151
|
-
readonly platforms?: readonly ("native" | "web")[];
|
|
152
|
-
readonly previewItemCount?: number;
|
|
153
|
-
readonly architecture?: {
|
|
154
|
-
readonly dependencies?: readonly string[];
|
|
155
|
-
};
|
|
156
|
-
/** @deprecated Use `architecture.dependencies` instead */
|
|
157
|
-
readonly dependencies?: readonly string[];
|
|
158
|
-
}
|
|
159
|
-
/**
|
|
160
|
-
* Component-specific metadata interface.
|
|
161
|
-
*/
|
|
162
|
-
interface ComponentMeta<Props = any> extends BaseMeta {
|
|
163
|
-
readonly category: ComponentCategory;
|
|
164
|
-
readonly variants: readonly VariantDescriptor<Props>[];
|
|
165
|
-
readonly sizes?: readonly string[];
|
|
166
|
-
readonly sizeMap?: Record<string, ComponentSizeConfig>;
|
|
167
|
-
readonly colorMap?: Record<string, ComponentColorConfig>;
|
|
168
|
-
readonly platforms?: readonly ("native" | "web")[];
|
|
169
|
-
readonly capabilities?: {
|
|
170
|
-
readonly platforms?: readonly ("native" | "web")[];
|
|
171
|
-
};
|
|
172
|
-
readonly architecture?: {
|
|
173
|
-
readonly dependencies?: readonly string[];
|
|
174
|
-
};
|
|
175
|
-
}
|
|
176
|
-
/**
|
|
177
|
-
* Block-specific metadata interface.
|
|
178
|
-
*/
|
|
179
|
-
interface BlockMeta extends BaseMeta {
|
|
180
|
-
readonly category: BlockCategory;
|
|
181
|
-
readonly slots: readonly SlotDescriptor[];
|
|
182
|
-
readonly components: readonly string[];
|
|
183
|
-
}
|
|
184
|
-
/**
|
|
185
|
-
* Primitive-specific metadata interface.
|
|
186
|
-
*/
|
|
187
|
-
interface PrimitiveMeta extends BaseMeta {
|
|
188
|
-
readonly category: string;
|
|
189
|
-
readonly slots?: readonly SlotDescriptor[];
|
|
190
|
-
}
|
|
191
|
-
/**
|
|
192
|
-
* Union type representing any metadata item (layout, component, block, or primitive).
|
|
193
|
-
*/
|
|
194
|
-
type AnyMeta = LayoutMeta | ComponentMeta | BlockMeta | PrimitiveMeta;
|
|
195
|
-
/**
|
|
196
|
-
* Utility type to make all properties optional for default objects.
|
|
197
|
-
*/
|
|
198
|
-
type DefaultsOf<T extends Record<string, unknown>> = {
|
|
199
|
-
[K in keyof T]?: T[K];
|
|
200
|
-
};
|
|
201
|
-
|
|
202
|
-
export type { AnyMeta, BlockCategory, BlockMeta, ComponentCategory, ComponentColorConfig, ComponentMeta, ComponentSizeConfig, DefaultsOf, LayoutBackground, LayoutCategory, LayoutConstants, LayoutMeta, LayoutPadding, PrimitiveMeta, PropDescriptor, PropType, SlotDescriptor, SpringConfig, ThemeColorRole, VariantDescriptor };
|