@flipova/foundation 1.14.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 +175 -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/types/index.d.ts
DELETED
|
@@ -1,202 +0,0 @@
|
|
|
1
|
-
import { C as ColorScheme } from '../index-CuaJA3gM.js';
|
|
2
|
-
import { SpacingToken } from '../tokens/index.js';
|
|
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 };
|
package/dist/types/index.js
DELETED
package/dist/types/index.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":[],"names":[],"mappings":"","file":"index.js"}
|
package/dist/types/index.mjs
DELETED
package/dist/types/index.mjs.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":[],"names":[],"mappings":"","file":"index.mjs"}
|
package/dist/web/index.d.mts
DELETED
|
@@ -1,316 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { SpacingToken, RadiusToken } from '../tokens/index.mjs';
|
|
3
|
-
export { Breakpoint, ColorToken, DurationToken, EasingToken, FontSizeToken, FontWeightToken, LetterSpacingToken, LineHeightToken, OpacityToken, ShadowToken, ZIndexToken, breakpoints, colors, motion, opacity, radii, shadows, spacing, typography, zIndex } from '../tokens/index.mjs';
|
|
4
|
-
export { T as ThemeProvider, c as createTheme, u as useTheme } from '../createTheme-DQeX3s0I.mjs';
|
|
5
|
-
export { C as ColorScheme, a as CustomThemeMode, T as ThemeGradients, b as ThemeMode, d as ThemeRegistry } from '../index-CuaJA3gM.mjs';
|
|
6
|
-
|
|
7
|
-
interface WebBoxProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
8
|
-
padding?: SpacingToken | number | string;
|
|
9
|
-
p?: SpacingToken | number | string;
|
|
10
|
-
paddingTop?: SpacingToken | number | string;
|
|
11
|
-
pt?: SpacingToken | number | string;
|
|
12
|
-
paddingBottom?: SpacingToken | number | string;
|
|
13
|
-
pb?: SpacingToken | number | string;
|
|
14
|
-
paddingLeft?: SpacingToken | number | string;
|
|
15
|
-
pl?: SpacingToken | number | string;
|
|
16
|
-
paddingRight?: SpacingToken | number | string;
|
|
17
|
-
pr?: SpacingToken | number | string;
|
|
18
|
-
paddingHorizontal?: SpacingToken | number | string;
|
|
19
|
-
px?: SpacingToken | number | string;
|
|
20
|
-
paddingVertical?: SpacingToken | number | string;
|
|
21
|
-
py?: SpacingToken | number | string;
|
|
22
|
-
margin?: SpacingToken | number | string;
|
|
23
|
-
m?: SpacingToken | number | string;
|
|
24
|
-
marginTop?: SpacingToken | number | string;
|
|
25
|
-
mt?: SpacingToken | number | string;
|
|
26
|
-
marginBottom?: SpacingToken | number | string;
|
|
27
|
-
mb?: SpacingToken | number | string;
|
|
28
|
-
borderRadius?: RadiusToken | number | string;
|
|
29
|
-
bg?: string;
|
|
30
|
-
backgroundColor?: string;
|
|
31
|
-
borderWidth?: number | string;
|
|
32
|
-
borderColor?: string;
|
|
33
|
-
flex?: number | string;
|
|
34
|
-
width?: number | string;
|
|
35
|
-
height?: number | string;
|
|
36
|
-
maxWidth?: number | string;
|
|
37
|
-
maxHeight?: number | string;
|
|
38
|
-
display?: string;
|
|
39
|
-
position?: 'relative' | 'absolute' | 'fixed' | 'sticky';
|
|
40
|
-
style?: React.CSSProperties;
|
|
41
|
-
children?: React.ReactNode;
|
|
42
|
-
}
|
|
43
|
-
declare const Box: React.ForwardRefExoticComponent<WebBoxProps & React.RefAttributes<HTMLDivElement>>;
|
|
44
|
-
|
|
45
|
-
interface WebStackProps extends WebBoxProps {
|
|
46
|
-
gap?: SpacingToken | number | string;
|
|
47
|
-
align?: 'flex-start' | 'flex-end' | 'center' | 'baseline' | 'stretch';
|
|
48
|
-
justify?: 'flex-start' | 'flex-end' | 'center' | 'space-between' | 'space-around' | 'space-evenly';
|
|
49
|
-
}
|
|
50
|
-
declare const Stack: React.FC<WebStackProps>;
|
|
51
|
-
|
|
52
|
-
interface WebInlineProps extends WebBoxProps {
|
|
53
|
-
gap?: SpacingToken | number | string;
|
|
54
|
-
align?: 'flex-start' | 'flex-end' | 'center' | 'baseline' | 'stretch';
|
|
55
|
-
justify?: 'flex-start' | 'flex-end' | 'center' | 'space-between' | 'space-around' | 'space-evenly';
|
|
56
|
-
wrap?: boolean;
|
|
57
|
-
}
|
|
58
|
-
declare const Inline: React.FC<WebInlineProps>;
|
|
59
|
-
|
|
60
|
-
declare const Center: React.FC<WebBoxProps>;
|
|
61
|
-
|
|
62
|
-
interface WebScrollProps extends WebBoxProps {
|
|
63
|
-
direction?: 'vertical' | 'horizontal' | 'both';
|
|
64
|
-
hideScrollbar?: boolean;
|
|
65
|
-
}
|
|
66
|
-
declare const Scroll: React.FC<WebScrollProps>;
|
|
67
|
-
|
|
68
|
-
interface WebDividerProps {
|
|
69
|
-
orientation?: 'horizontal' | 'vertical';
|
|
70
|
-
color?: string;
|
|
71
|
-
size?: number | string;
|
|
72
|
-
style?: React.CSSProperties;
|
|
73
|
-
}
|
|
74
|
-
declare const Divider: React.FC<WebDividerProps>;
|
|
75
|
-
|
|
76
|
-
interface WebButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
|
|
77
|
-
label?: string;
|
|
78
|
-
variant?: 'primary' | 'secondary' | 'outline' | 'ghost' | 'destructive';
|
|
79
|
-
size?: 'sm' | 'md' | 'lg';
|
|
80
|
-
loading?: boolean;
|
|
81
|
-
disabled?: boolean;
|
|
82
|
-
fullWidth?: boolean;
|
|
83
|
-
leftIcon?: React.ReactNode;
|
|
84
|
-
rightIcon?: React.ReactNode;
|
|
85
|
-
children?: React.ReactNode;
|
|
86
|
-
}
|
|
87
|
-
declare const Button: React.FC<WebButtonProps>;
|
|
88
|
-
|
|
89
|
-
interface WebTextProps extends React.HTMLAttributes<HTMLElement> {
|
|
90
|
-
variant?: 'heading' | 'subheading' | 'body' | 'caption' | 'code' | 'label';
|
|
91
|
-
size?: 'xs' | 'sm' | 'md' | 'lg' | 'xl' | 'xxl';
|
|
92
|
-
weight?: 'light' | 'regular' | 'medium' | 'semibold' | 'bold';
|
|
93
|
-
color?: 'primary' | 'secondary' | 'muted' | 'error' | 'success' | string;
|
|
94
|
-
align?: 'left' | 'center' | 'right' | 'justify';
|
|
95
|
-
as?: React.ElementType;
|
|
96
|
-
children?: React.ReactNode;
|
|
97
|
-
}
|
|
98
|
-
declare const Text: React.FC<WebTextProps>;
|
|
99
|
-
|
|
100
|
-
interface WebCardProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
101
|
-
padding?: SpacingToken | number | string;
|
|
102
|
-
borderRadius?: RadiusToken | number | string;
|
|
103
|
-
bordered?: boolean;
|
|
104
|
-
elevation?: 'none' | 'sm' | 'md' | 'lg';
|
|
105
|
-
children?: React.ReactNode;
|
|
106
|
-
}
|
|
107
|
-
declare const Card: React.FC<WebCardProps>;
|
|
108
|
-
|
|
109
|
-
interface WebBadgeProps extends React.HTMLAttributes<HTMLSpanElement> {
|
|
110
|
-
label?: string;
|
|
111
|
-
variant?: 'primary' | 'secondary' | 'success' | 'warning' | 'error' | 'outline';
|
|
112
|
-
size?: 'sm' | 'md';
|
|
113
|
-
children?: React.ReactNode;
|
|
114
|
-
}
|
|
115
|
-
declare const Badge: React.FC<WebBadgeProps>;
|
|
116
|
-
|
|
117
|
-
interface WebAvatarProps {
|
|
118
|
-
src?: string;
|
|
119
|
-
name?: string;
|
|
120
|
-
size?: 'sm' | 'md' | 'lg' | 'xl' | number;
|
|
121
|
-
shape?: 'circle' | 'square';
|
|
122
|
-
style?: React.CSSProperties;
|
|
123
|
-
}
|
|
124
|
-
declare const Avatar: React.FC<WebAvatarProps>;
|
|
125
|
-
|
|
126
|
-
interface WebTextInputProps extends React.InputHTMLAttributes<HTMLInputElement> {
|
|
127
|
-
label?: string;
|
|
128
|
-
error?: string;
|
|
129
|
-
helperText?: string;
|
|
130
|
-
leftIcon?: React.ReactNode;
|
|
131
|
-
rightIcon?: React.ReactNode;
|
|
132
|
-
containerStyle?: React.CSSProperties;
|
|
133
|
-
}
|
|
134
|
-
declare const TextInput: React.FC<WebTextInputProps>;
|
|
135
|
-
|
|
136
|
-
interface WebTextAreaProps extends React.TextareaHTMLAttributes<HTMLTextAreaElement> {
|
|
137
|
-
label?: string;
|
|
138
|
-
error?: string;
|
|
139
|
-
helperText?: string;
|
|
140
|
-
containerStyle?: React.CSSProperties;
|
|
141
|
-
}
|
|
142
|
-
declare const TextArea: React.FC<WebTextAreaProps>;
|
|
143
|
-
|
|
144
|
-
interface SelectOption {
|
|
145
|
-
label: string;
|
|
146
|
-
value: string;
|
|
147
|
-
}
|
|
148
|
-
interface WebSelectProps extends React.SelectHTMLAttributes<HTMLSelectElement> {
|
|
149
|
-
label?: string;
|
|
150
|
-
options?: SelectOption[];
|
|
151
|
-
error?: string;
|
|
152
|
-
containerStyle?: React.CSSProperties;
|
|
153
|
-
}
|
|
154
|
-
declare const Select: React.FC<WebSelectProps>;
|
|
155
|
-
|
|
156
|
-
interface WebCheckboxProps extends Omit<React.InputHTMLAttributes<HTMLInputElement>, 'size'> {
|
|
157
|
-
label?: string;
|
|
158
|
-
checked?: boolean;
|
|
159
|
-
onCheckedChange?: (checked: boolean) => void;
|
|
160
|
-
}
|
|
161
|
-
declare const Checkbox: React.FC<WebCheckboxProps>;
|
|
162
|
-
|
|
163
|
-
interface WebSwitchProps {
|
|
164
|
-
checked?: boolean;
|
|
165
|
-
onCheckedChange?: (checked: boolean) => void;
|
|
166
|
-
disabled?: boolean;
|
|
167
|
-
label?: string;
|
|
168
|
-
style?: React.CSSProperties;
|
|
169
|
-
}
|
|
170
|
-
declare const Switch: React.FC<WebSwitchProps>;
|
|
171
|
-
|
|
172
|
-
interface WebSpinnerProps {
|
|
173
|
-
size?: 'sm' | 'md' | 'lg' | number;
|
|
174
|
-
color?: string;
|
|
175
|
-
style?: React.CSSProperties;
|
|
176
|
-
}
|
|
177
|
-
declare const Spinner: React.FC<WebSpinnerProps>;
|
|
178
|
-
|
|
179
|
-
interface WebIconProps {
|
|
180
|
-
name: string;
|
|
181
|
-
size?: number | string;
|
|
182
|
-
color?: string;
|
|
183
|
-
className?: string;
|
|
184
|
-
style?: React.CSSProperties;
|
|
185
|
-
}
|
|
186
|
-
declare const Icon: React.FC<WebIconProps>;
|
|
187
|
-
|
|
188
|
-
interface WebIconButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
|
|
189
|
-
name: string;
|
|
190
|
-
size?: 'sm' | 'md' | 'lg';
|
|
191
|
-
variant?: 'primary' | 'secondary' | 'ghost' | 'outline';
|
|
192
|
-
disabled?: boolean;
|
|
193
|
-
}
|
|
194
|
-
declare const IconButton: React.FC<WebIconButtonProps>;
|
|
195
|
-
|
|
196
|
-
interface TabItem {
|
|
197
|
-
id: string;
|
|
198
|
-
label: string;
|
|
199
|
-
icon?: React.ReactNode;
|
|
200
|
-
}
|
|
201
|
-
interface WebTabsProps {
|
|
202
|
-
items: TabItem[];
|
|
203
|
-
activeId: string;
|
|
204
|
-
onChange: (id: string) => void;
|
|
205
|
-
style?: React.CSSProperties;
|
|
206
|
-
}
|
|
207
|
-
declare const Tabs: React.FC<WebTabsProps>;
|
|
208
|
-
|
|
209
|
-
interface WebProgressBarProps {
|
|
210
|
-
progress: number;
|
|
211
|
-
color?: string;
|
|
212
|
-
height?: number;
|
|
213
|
-
style?: React.CSSProperties;
|
|
214
|
-
}
|
|
215
|
-
declare const ProgressBar: React.FC<WebProgressBarProps>;
|
|
216
|
-
|
|
217
|
-
interface WebAccordionProps {
|
|
218
|
-
title: string;
|
|
219
|
-
defaultOpen?: boolean;
|
|
220
|
-
children: React.ReactNode;
|
|
221
|
-
style?: React.CSSProperties;
|
|
222
|
-
}
|
|
223
|
-
declare const Accordion: React.FC<WebAccordionProps>;
|
|
224
|
-
|
|
225
|
-
interface WebChipProps {
|
|
226
|
-
label: string;
|
|
227
|
-
onDismiss?: () => void;
|
|
228
|
-
onClick?: () => void;
|
|
229
|
-
style?: React.CSSProperties;
|
|
230
|
-
}
|
|
231
|
-
declare const Chip: React.FC<WebChipProps>;
|
|
232
|
-
|
|
233
|
-
declare const Separator: React.FC<WebDividerProps>;
|
|
234
|
-
|
|
235
|
-
interface WebImageProps extends React.ImgHTMLAttributes<HTMLImageElement> {
|
|
236
|
-
aspectRatio?: number;
|
|
237
|
-
borderRadius?: number | string;
|
|
238
|
-
}
|
|
239
|
-
declare const Image: React.FC<WebImageProps>;
|
|
240
|
-
|
|
241
|
-
interface WebVideoProps extends React.VideoHTMLAttributes<HTMLVideoElement> {
|
|
242
|
-
src: string;
|
|
243
|
-
poster?: string;
|
|
244
|
-
borderRadius?: number | string;
|
|
245
|
-
}
|
|
246
|
-
declare const Video: React.FC<WebVideoProps>;
|
|
247
|
-
|
|
248
|
-
interface WebRootLayoutProps {
|
|
249
|
-
children?: React.ReactNode;
|
|
250
|
-
style?: React.CSSProperties;
|
|
251
|
-
}
|
|
252
|
-
declare const RootLayout: React.FC<WebRootLayoutProps>;
|
|
253
|
-
|
|
254
|
-
interface WebAuthLayoutProps {
|
|
255
|
-
title?: string;
|
|
256
|
-
subtitle?: string;
|
|
257
|
-
logo?: React.ReactNode;
|
|
258
|
-
children?: React.ReactNode;
|
|
259
|
-
style?: React.CSSProperties;
|
|
260
|
-
}
|
|
261
|
-
declare const AuthLayout: React.FC<WebAuthLayoutProps>;
|
|
262
|
-
|
|
263
|
-
interface WebDashboardLayoutProps {
|
|
264
|
-
sidebar?: React.ReactNode;
|
|
265
|
-
header?: React.ReactNode;
|
|
266
|
-
children?: React.ReactNode;
|
|
267
|
-
sidebarWidth?: number | string;
|
|
268
|
-
headerHeight?: number | string;
|
|
269
|
-
style?: React.CSSProperties;
|
|
270
|
-
}
|
|
271
|
-
declare const DashboardLayout: React.FC<WebDashboardLayoutProps>;
|
|
272
|
-
|
|
273
|
-
interface WebSidebarLayoutProps {
|
|
274
|
-
sidebar: React.ReactNode;
|
|
275
|
-
sidebarPosition?: 'left' | 'right';
|
|
276
|
-
width?: number | string;
|
|
277
|
-
children: React.ReactNode;
|
|
278
|
-
style?: React.CSSProperties;
|
|
279
|
-
}
|
|
280
|
-
declare const SidebarLayout: React.FC<WebSidebarLayoutProps>;
|
|
281
|
-
|
|
282
|
-
interface WebHeaderContentLayoutProps {
|
|
283
|
-
header: React.ReactNode;
|
|
284
|
-
children: React.ReactNode;
|
|
285
|
-
headerHeight?: number | string;
|
|
286
|
-
style?: React.CSSProperties;
|
|
287
|
-
}
|
|
288
|
-
declare const HeaderContentLayout: React.FC<WebHeaderContentLayoutProps>;
|
|
289
|
-
|
|
290
|
-
interface WebCenteredLayoutProps {
|
|
291
|
-
maxWidth?: number | string;
|
|
292
|
-
children: React.ReactNode;
|
|
293
|
-
style?: React.CSSProperties;
|
|
294
|
-
}
|
|
295
|
-
declare const CenteredLayout: React.FC<WebCenteredLayoutProps>;
|
|
296
|
-
|
|
297
|
-
interface WebGridLayoutProps {
|
|
298
|
-
columns?: number | string;
|
|
299
|
-
gap?: number | string;
|
|
300
|
-
children: React.ReactNode;
|
|
301
|
-
style?: React.CSSProperties;
|
|
302
|
-
}
|
|
303
|
-
declare const GridLayout: React.FC<WebGridLayoutProps>;
|
|
304
|
-
|
|
305
|
-
interface WebFlexLayoutProps {
|
|
306
|
-
direction?: 'row' | 'column' | 'row-reverse' | 'column-reverse';
|
|
307
|
-
align?: 'flex-start' | 'flex-end' | 'center' | 'baseline' | 'stretch';
|
|
308
|
-
justify?: 'flex-start' | 'flex-end' | 'center' | 'space-between' | 'space-around' | 'space-evenly';
|
|
309
|
-
gap?: number | string;
|
|
310
|
-
wrap?: boolean;
|
|
311
|
-
children: React.ReactNode;
|
|
312
|
-
style?: React.CSSProperties;
|
|
313
|
-
}
|
|
314
|
-
declare const FlexLayout: React.FC<WebFlexLayoutProps>;
|
|
315
|
-
|
|
316
|
-
export { Accordion, AuthLayout, Avatar, Badge, Box, Button, Card, Center, CenteredLayout, Checkbox, Chip, DashboardLayout, Divider, FlexLayout, GridLayout, HeaderContentLayout, Icon, IconButton, Image, Inline, ProgressBar, RadiusToken, RootLayout, Scroll, Select, type SelectOption, Separator, SidebarLayout, SpacingToken, Spinner, Stack, Switch, type TabItem, Tabs, Text, TextArea, TextInput, Video, type WebAccordionProps, type WebAuthLayoutProps, type WebAvatarProps, type WebBadgeProps, type WebBoxProps, type WebButtonProps, type WebCardProps, type WebCenteredLayoutProps, type WebCheckboxProps, type WebChipProps, type WebDashboardLayoutProps, type WebDividerProps, type WebFlexLayoutProps, type WebGridLayoutProps, type WebHeaderContentLayoutProps, type WebIconButtonProps, type WebIconProps, type WebImageProps, type WebInlineProps, type WebProgressBarProps, type WebRootLayoutProps, type WebScrollProps, type WebSelectProps, type WebSidebarLayoutProps, type WebSpinnerProps, type WebStackProps, type WebSwitchProps, type WebTabsProps, type WebTextAreaProps, type WebTextInputProps, type WebTextProps, type WebVideoProps };
|