@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/registry/index.js
DELETED
|
@@ -1,392 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var chunk7QFZMGL6_js = require('../chunk-7QFZMGL6.js');
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
Object.defineProperty(exports, "AccordionMeta", {
|
|
8
|
-
enumerable: true,
|
|
9
|
-
get: function () { return chunk7QFZMGL6_js.AccordionMeta; }
|
|
10
|
-
});
|
|
11
|
-
Object.defineProperty(exports, "AudioMeta", {
|
|
12
|
-
enumerable: true,
|
|
13
|
-
get: function () { return chunk7QFZMGL6_js.AudioMeta; }
|
|
14
|
-
});
|
|
15
|
-
Object.defineProperty(exports, "AuthLayoutMeta", {
|
|
16
|
-
enumerable: true,
|
|
17
|
-
get: function () { return chunk7QFZMGL6_js.AuthLayoutMeta; }
|
|
18
|
-
});
|
|
19
|
-
Object.defineProperty(exports, "AvatarMeta", {
|
|
20
|
-
enumerable: true,
|
|
21
|
-
get: function () { return chunk7QFZMGL6_js.AvatarMeta; }
|
|
22
|
-
});
|
|
23
|
-
Object.defineProperty(exports, "AvatarPickerMeta", {
|
|
24
|
-
enumerable: true,
|
|
25
|
-
get: function () { return chunk7QFZMGL6_js.AvatarPickerMeta; }
|
|
26
|
-
});
|
|
27
|
-
Object.defineProperty(exports, "BadgeMeta", {
|
|
28
|
-
enumerable: true,
|
|
29
|
-
get: function () { return chunk7QFZMGL6_js.BadgeMeta; }
|
|
30
|
-
});
|
|
31
|
-
Object.defineProperty(exports, "BadgeWrapperMeta", {
|
|
32
|
-
enumerable: true,
|
|
33
|
-
get: function () { return chunk7QFZMGL6_js.BadgeWrapperMeta; }
|
|
34
|
-
});
|
|
35
|
-
Object.defineProperty(exports, "BentoLayoutMeta", {
|
|
36
|
-
enumerable: true,
|
|
37
|
-
get: function () { return chunk7QFZMGL6_js.BentoLayoutMeta; }
|
|
38
|
-
});
|
|
39
|
-
Object.defineProperty(exports, "BlurViewMeta", {
|
|
40
|
-
enumerable: true,
|
|
41
|
-
get: function () { return chunk7QFZMGL6_js.BlurViewMeta; }
|
|
42
|
-
});
|
|
43
|
-
Object.defineProperty(exports, "BlurWrapperMeta", {
|
|
44
|
-
enumerable: true,
|
|
45
|
-
get: function () { return chunk7QFZMGL6_js.BlurWrapperMeta; }
|
|
46
|
-
});
|
|
47
|
-
Object.defineProperty(exports, "BottomDrawerLayoutMeta", {
|
|
48
|
-
enumerable: true,
|
|
49
|
-
get: function () { return chunk7QFZMGL6_js.BottomDrawerLayoutMeta; }
|
|
50
|
-
});
|
|
51
|
-
Object.defineProperty(exports, "BoxMeta", {
|
|
52
|
-
enumerable: true,
|
|
53
|
-
get: function () { return chunk7QFZMGL6_js.BoxMeta; }
|
|
54
|
-
});
|
|
55
|
-
Object.defineProperty(exports, "ButtonMeta", {
|
|
56
|
-
enumerable: true,
|
|
57
|
-
get: function () { return chunk7QFZMGL6_js.ButtonMeta; }
|
|
58
|
-
});
|
|
59
|
-
Object.defineProperty(exports, "CameraMeta", {
|
|
60
|
-
enumerable: true,
|
|
61
|
-
get: function () { return chunk7QFZMGL6_js.CameraMeta; }
|
|
62
|
-
});
|
|
63
|
-
Object.defineProperty(exports, "CardMeta", {
|
|
64
|
-
enumerable: true,
|
|
65
|
-
get: function () { return chunk7QFZMGL6_js.CardMeta; }
|
|
66
|
-
});
|
|
67
|
-
Object.defineProperty(exports, "CenterMeta", {
|
|
68
|
-
enumerable: true,
|
|
69
|
-
get: function () { return chunk7QFZMGL6_js.CenterMeta; }
|
|
70
|
-
});
|
|
71
|
-
Object.defineProperty(exports, "CenteredLayoutMeta", {
|
|
72
|
-
enumerable: true,
|
|
73
|
-
get: function () { return chunk7QFZMGL6_js.CenteredLayoutMeta; }
|
|
74
|
-
});
|
|
75
|
-
Object.defineProperty(exports, "CheckboxMeta", {
|
|
76
|
-
enumerable: true,
|
|
77
|
-
get: function () { return chunk7QFZMGL6_js.CheckboxMeta; }
|
|
78
|
-
});
|
|
79
|
-
Object.defineProperty(exports, "ChipMeta", {
|
|
80
|
-
enumerable: true,
|
|
81
|
-
get: function () { return chunk7QFZMGL6_js.ChipMeta; }
|
|
82
|
-
});
|
|
83
|
-
Object.defineProperty(exports, "CollapsibleWrapperMeta", {
|
|
84
|
-
enumerable: true,
|
|
85
|
-
get: function () { return chunk7QFZMGL6_js.CollapsibleWrapperMeta; }
|
|
86
|
-
});
|
|
87
|
-
Object.defineProperty(exports, "ColorPickerMeta", {
|
|
88
|
-
enumerable: true,
|
|
89
|
-
get: function () { return chunk7QFZMGL6_js.ColorPickerMeta; }
|
|
90
|
-
});
|
|
91
|
-
Object.defineProperty(exports, "DashboardLayoutMeta", {
|
|
92
|
-
enumerable: true,
|
|
93
|
-
get: function () { return chunk7QFZMGL6_js.DashboardLayoutMeta; }
|
|
94
|
-
});
|
|
95
|
-
Object.defineProperty(exports, "DatePickerMeta", {
|
|
96
|
-
enumerable: true,
|
|
97
|
-
get: function () { return chunk7QFZMGL6_js.DatePickerMeta; }
|
|
98
|
-
});
|
|
99
|
-
Object.defineProperty(exports, "DeckLayoutMeta", {
|
|
100
|
-
enumerable: true,
|
|
101
|
-
get: function () { return chunk7QFZMGL6_js.DeckLayoutMeta; }
|
|
102
|
-
});
|
|
103
|
-
Object.defineProperty(exports, "DividerMeta", {
|
|
104
|
-
enumerable: true,
|
|
105
|
-
get: function () { return chunk7QFZMGL6_js.DividerMeta; }
|
|
106
|
-
});
|
|
107
|
-
Object.defineProperty(exports, "EmojiPickerMeta", {
|
|
108
|
-
enumerable: true,
|
|
109
|
-
get: function () { return chunk7QFZMGL6_js.EmojiPickerMeta; }
|
|
110
|
-
});
|
|
111
|
-
Object.defineProperty(exports, "FadeInWrapperMeta", {
|
|
112
|
-
enumerable: true,
|
|
113
|
-
get: function () { return chunk7QFZMGL6_js.FadeInWrapperMeta; }
|
|
114
|
-
});
|
|
115
|
-
Object.defineProperty(exports, "FilePickerMeta", {
|
|
116
|
-
enumerable: true,
|
|
117
|
-
get: function () { return chunk7QFZMGL6_js.FilePickerMeta; }
|
|
118
|
-
});
|
|
119
|
-
Object.defineProperty(exports, "FlatListMeta", {
|
|
120
|
-
enumerable: true,
|
|
121
|
-
get: function () { return chunk7QFZMGL6_js.FlatListMeta; }
|
|
122
|
-
});
|
|
123
|
-
Object.defineProperty(exports, "FlexLayoutMeta", {
|
|
124
|
-
enumerable: true,
|
|
125
|
-
get: function () { return chunk7QFZMGL6_js.FlexLayoutMeta; }
|
|
126
|
-
});
|
|
127
|
-
Object.defineProperty(exports, "FlipLayoutMeta", {
|
|
128
|
-
enumerable: true,
|
|
129
|
-
get: function () { return chunk7QFZMGL6_js.FlipLayoutMeta; }
|
|
130
|
-
});
|
|
131
|
-
Object.defineProperty(exports, "FooterLayoutMeta", {
|
|
132
|
-
enumerable: true,
|
|
133
|
-
get: function () { return chunk7QFZMGL6_js.FooterLayoutMeta; }
|
|
134
|
-
});
|
|
135
|
-
Object.defineProperty(exports, "GifPickerMeta", {
|
|
136
|
-
enumerable: true,
|
|
137
|
-
get: function () { return chunk7QFZMGL6_js.GifPickerMeta; }
|
|
138
|
-
});
|
|
139
|
-
Object.defineProperty(exports, "GradientMeta", {
|
|
140
|
-
enumerable: true,
|
|
141
|
-
get: function () { return chunk7QFZMGL6_js.GradientMeta; }
|
|
142
|
-
});
|
|
143
|
-
Object.defineProperty(exports, "GridLayoutMeta", {
|
|
144
|
-
enumerable: true,
|
|
145
|
-
get: function () { return chunk7QFZMGL6_js.GridLayoutMeta; }
|
|
146
|
-
});
|
|
147
|
-
Object.defineProperty(exports, "HeaderContentLayoutMeta", {
|
|
148
|
-
enumerable: true,
|
|
149
|
-
get: function () { return chunk7QFZMGL6_js.HeaderContentLayoutMeta; }
|
|
150
|
-
});
|
|
151
|
-
Object.defineProperty(exports, "IconButtonMeta", {
|
|
152
|
-
enumerable: true,
|
|
153
|
-
get: function () { return chunk7QFZMGL6_js.IconButtonMeta; }
|
|
154
|
-
});
|
|
155
|
-
Object.defineProperty(exports, "IconMeta", {
|
|
156
|
-
enumerable: true,
|
|
157
|
-
get: function () { return chunk7QFZMGL6_js.IconMeta; }
|
|
158
|
-
});
|
|
159
|
-
Object.defineProperty(exports, "IconPickerMeta", {
|
|
160
|
-
enumerable: true,
|
|
161
|
-
get: function () { return chunk7QFZMGL6_js.IconPickerMeta; }
|
|
162
|
-
});
|
|
163
|
-
Object.defineProperty(exports, "ImageMeta", {
|
|
164
|
-
enumerable: true,
|
|
165
|
-
get: function () { return chunk7QFZMGL6_js.ImageMeta; }
|
|
166
|
-
});
|
|
167
|
-
Object.defineProperty(exports, "InlineMeta", {
|
|
168
|
-
enumerable: true,
|
|
169
|
-
get: function () { return chunk7QFZMGL6_js.InlineMeta; }
|
|
170
|
-
});
|
|
171
|
-
Object.defineProperty(exports, "KeyboardAvoidWrapperMeta", {
|
|
172
|
-
enumerable: true,
|
|
173
|
-
get: function () { return chunk7QFZMGL6_js.KeyboardAvoidWrapperMeta; }
|
|
174
|
-
});
|
|
175
|
-
Object.defineProperty(exports, "LeftDrawerLayoutMeta", {
|
|
176
|
-
enumerable: true,
|
|
177
|
-
get: function () { return chunk7QFZMGL6_js.LeftDrawerLayoutMeta; }
|
|
178
|
-
});
|
|
179
|
-
Object.defineProperty(exports, "LottieAnimationMeta", {
|
|
180
|
-
enumerable: true,
|
|
181
|
-
get: function () { return chunk7QFZMGL6_js.LottieAnimationMeta; }
|
|
182
|
-
});
|
|
183
|
-
Object.defineProperty(exports, "MapViewMeta", {
|
|
184
|
-
enumerable: true,
|
|
185
|
-
get: function () { return chunk7QFZMGL6_js.MapViewMeta; }
|
|
186
|
-
});
|
|
187
|
-
Object.defineProperty(exports, "MasonryLayoutMeta", {
|
|
188
|
-
enumerable: true,
|
|
189
|
-
get: function () { return chunk7QFZMGL6_js.MasonryLayoutMeta; }
|
|
190
|
-
});
|
|
191
|
-
Object.defineProperty(exports, "NumberInputMeta", {
|
|
192
|
-
enumerable: true,
|
|
193
|
-
get: function () { return chunk7QFZMGL6_js.NumberInputMeta; }
|
|
194
|
-
});
|
|
195
|
-
Object.defineProperty(exports, "OTPInputMeta", {
|
|
196
|
-
enumerable: true,
|
|
197
|
-
get: function () { return chunk7QFZMGL6_js.OTPInputMeta; }
|
|
198
|
-
});
|
|
199
|
-
Object.defineProperty(exports, "ParallaxLayoutMeta", {
|
|
200
|
-
enumerable: true,
|
|
201
|
-
get: function () { return chunk7QFZMGL6_js.ParallaxLayoutMeta; }
|
|
202
|
-
});
|
|
203
|
-
Object.defineProperty(exports, "PasswordInputMeta", {
|
|
204
|
-
enumerable: true,
|
|
205
|
-
get: function () { return chunk7QFZMGL6_js.PasswordInputMeta; }
|
|
206
|
-
});
|
|
207
|
-
Object.defineProperty(exports, "PressableMeta", {
|
|
208
|
-
enumerable: true,
|
|
209
|
-
get: function () { return chunk7QFZMGL6_js.PressableMeta; }
|
|
210
|
-
});
|
|
211
|
-
Object.defineProperty(exports, "ProgressBarMeta", {
|
|
212
|
-
enumerable: true,
|
|
213
|
-
get: function () { return chunk7QFZMGL6_js.ProgressBarMeta; }
|
|
214
|
-
});
|
|
215
|
-
Object.defineProperty(exports, "RadioGroupMeta", {
|
|
216
|
-
enumerable: true,
|
|
217
|
-
get: function () { return chunk7QFZMGL6_js.RadioGroupMeta; }
|
|
218
|
-
});
|
|
219
|
-
Object.defineProperty(exports, "ResponsiveLayoutMeta", {
|
|
220
|
-
enumerable: true,
|
|
221
|
-
get: function () { return chunk7QFZMGL6_js.ResponsiveLayoutMeta; }
|
|
222
|
-
});
|
|
223
|
-
Object.defineProperty(exports, "RootLayoutMeta", {
|
|
224
|
-
enumerable: true,
|
|
225
|
-
get: function () { return chunk7QFZMGL6_js.RootLayoutMeta; }
|
|
226
|
-
});
|
|
227
|
-
Object.defineProperty(exports, "SafeAreaWrapperMeta", {
|
|
228
|
-
enumerable: true,
|
|
229
|
-
get: function () { return chunk7QFZMGL6_js.SafeAreaWrapperMeta; }
|
|
230
|
-
});
|
|
231
|
-
Object.defineProperty(exports, "ScalePressWrapperMeta", {
|
|
232
|
-
enumerable: true,
|
|
233
|
-
get: function () { return chunk7QFZMGL6_js.ScalePressWrapperMeta; }
|
|
234
|
-
});
|
|
235
|
-
Object.defineProperty(exports, "ScrollLayoutMeta", {
|
|
236
|
-
enumerable: true,
|
|
237
|
-
get: function () { return chunk7QFZMGL6_js.ScrollLayoutMeta; }
|
|
238
|
-
});
|
|
239
|
-
Object.defineProperty(exports, "ScrollMeta", {
|
|
240
|
-
enumerable: true,
|
|
241
|
-
get: function () { return chunk7QFZMGL6_js.ScrollMeta; }
|
|
242
|
-
});
|
|
243
|
-
Object.defineProperty(exports, "SearchInputMeta", {
|
|
244
|
-
enumerable: true,
|
|
245
|
-
get: function () { return chunk7QFZMGL6_js.SearchInputMeta; }
|
|
246
|
-
});
|
|
247
|
-
Object.defineProperty(exports, "SelectMeta", {
|
|
248
|
-
enumerable: true,
|
|
249
|
-
get: function () { return chunk7QFZMGL6_js.SelectMeta; }
|
|
250
|
-
});
|
|
251
|
-
Object.defineProperty(exports, "SeparatorMeta", {
|
|
252
|
-
enumerable: true,
|
|
253
|
-
get: function () { return chunk7QFZMGL6_js.SeparatorMeta; }
|
|
254
|
-
});
|
|
255
|
-
Object.defineProperty(exports, "ShimmerWrapperMeta", {
|
|
256
|
-
enumerable: true,
|
|
257
|
-
get: function () { return chunk7QFZMGL6_js.ShimmerWrapperMeta; }
|
|
258
|
-
});
|
|
259
|
-
Object.defineProperty(exports, "SidebarLayoutMeta", {
|
|
260
|
-
enumerable: true,
|
|
261
|
-
get: function () { return chunk7QFZMGL6_js.SidebarLayoutMeta; }
|
|
262
|
-
});
|
|
263
|
-
Object.defineProperty(exports, "SkeletonWrapperMeta", {
|
|
264
|
-
enumerable: true,
|
|
265
|
-
get: function () { return chunk7QFZMGL6_js.SkeletonWrapperMeta; }
|
|
266
|
-
});
|
|
267
|
-
Object.defineProperty(exports, "SketchLayoutMeta", {
|
|
268
|
-
enumerable: true,
|
|
269
|
-
get: function () { return chunk7QFZMGL6_js.SketchLayoutMeta; }
|
|
270
|
-
});
|
|
271
|
-
Object.defineProperty(exports, "SlideUpWrapperMeta", {
|
|
272
|
-
enumerable: true,
|
|
273
|
-
get: function () { return chunk7QFZMGL6_js.SlideUpWrapperMeta; }
|
|
274
|
-
});
|
|
275
|
-
Object.defineProperty(exports, "SliderMeta", {
|
|
276
|
-
enumerable: true,
|
|
277
|
-
get: function () { return chunk7QFZMGL6_js.SliderMeta; }
|
|
278
|
-
});
|
|
279
|
-
Object.defineProperty(exports, "SortableGridLayoutMeta", {
|
|
280
|
-
enumerable: true,
|
|
281
|
-
get: function () { return chunk7QFZMGL6_js.SortableGridLayoutMeta; }
|
|
282
|
-
});
|
|
283
|
-
Object.defineProperty(exports, "SpinnerMeta", {
|
|
284
|
-
enumerable: true,
|
|
285
|
-
get: function () { return chunk7QFZMGL6_js.SpinnerMeta; }
|
|
286
|
-
});
|
|
287
|
-
Object.defineProperty(exports, "SplitLayoutMeta", {
|
|
288
|
-
enumerable: true,
|
|
289
|
-
get: function () { return chunk7QFZMGL6_js.SplitLayoutMeta; }
|
|
290
|
-
});
|
|
291
|
-
Object.defineProperty(exports, "StackMeta", {
|
|
292
|
-
enumerable: true,
|
|
293
|
-
get: function () { return chunk7QFZMGL6_js.StackMeta; }
|
|
294
|
-
});
|
|
295
|
-
Object.defineProperty(exports, "Swipe2ScreenLayoutMeta", {
|
|
296
|
-
enumerable: true,
|
|
297
|
-
get: function () { return chunk7QFZMGL6_js.Swipe2ScreenLayoutMeta; }
|
|
298
|
-
});
|
|
299
|
-
Object.defineProperty(exports, "SwiperLayoutMeta", {
|
|
300
|
-
enumerable: true,
|
|
301
|
-
get: function () { return chunk7QFZMGL6_js.SwiperLayoutMeta; }
|
|
302
|
-
});
|
|
303
|
-
Object.defineProperty(exports, "SwitchMeta", {
|
|
304
|
-
enumerable: true,
|
|
305
|
-
get: function () { return chunk7QFZMGL6_js.SwitchMeta; }
|
|
306
|
-
});
|
|
307
|
-
Object.defineProperty(exports, "SystemLayoutMeta", {
|
|
308
|
-
enumerable: true,
|
|
309
|
-
get: function () { return chunk7QFZMGL6_js.SystemLayoutMeta; }
|
|
310
|
-
});
|
|
311
|
-
Object.defineProperty(exports, "TabsMeta", {
|
|
312
|
-
enumerable: true,
|
|
313
|
-
get: function () { return chunk7QFZMGL6_js.TabsMeta; }
|
|
314
|
-
});
|
|
315
|
-
Object.defineProperty(exports, "TextAreaMeta", {
|
|
316
|
-
enumerable: true,
|
|
317
|
-
get: function () { return chunk7QFZMGL6_js.TextAreaMeta; }
|
|
318
|
-
});
|
|
319
|
-
Object.defineProperty(exports, "TextInputMeta", {
|
|
320
|
-
enumerable: true,
|
|
321
|
-
get: function () { return chunk7QFZMGL6_js.TextInputMeta; }
|
|
322
|
-
});
|
|
323
|
-
Object.defineProperty(exports, "TextMeta", {
|
|
324
|
-
enumerable: true,
|
|
325
|
-
get: function () { return chunk7QFZMGL6_js.TextMeta; }
|
|
326
|
-
});
|
|
327
|
-
Object.defineProperty(exports, "TooltipWrapperMeta", {
|
|
328
|
-
enumerable: true,
|
|
329
|
-
get: function () { return chunk7QFZMGL6_js.TooltipWrapperMeta; }
|
|
330
|
-
});
|
|
331
|
-
Object.defineProperty(exports, "TopDrawerLayoutMeta", {
|
|
332
|
-
enumerable: true,
|
|
333
|
-
get: function () { return chunk7QFZMGL6_js.TopDrawerLayoutMeta; }
|
|
334
|
-
});
|
|
335
|
-
Object.defineProperty(exports, "TutoLayoutMeta", {
|
|
336
|
-
enumerable: true,
|
|
337
|
-
get: function () { return chunk7QFZMGL6_js.TutoLayoutMeta; }
|
|
338
|
-
});
|
|
339
|
-
Object.defineProperty(exports, "VideoMeta", {
|
|
340
|
-
enumerable: true,
|
|
341
|
-
get: function () { return chunk7QFZMGL6_js.VideoMeta; }
|
|
342
|
-
});
|
|
343
|
-
Object.defineProperty(exports, "VoidLayoutMeta", {
|
|
344
|
-
enumerable: true,
|
|
345
|
-
get: function () { return chunk7QFZMGL6_js.VoidLayoutMeta; }
|
|
346
|
-
});
|
|
347
|
-
Object.defineProperty(exports, "WebViewMeta", {
|
|
348
|
-
enumerable: true,
|
|
349
|
-
get: function () { return chunk7QFZMGL6_js.WebViewMeta; }
|
|
350
|
-
});
|
|
351
|
-
Object.defineProperty(exports, "WheelPickerMeta", {
|
|
352
|
-
enumerable: true,
|
|
353
|
-
get: function () { return chunk7QFZMGL6_js.WheelPickerMeta; }
|
|
354
|
-
});
|
|
355
|
-
Object.defineProperty(exports, "blockRegistry", {
|
|
356
|
-
enumerable: true,
|
|
357
|
-
get: function () { return chunk7QFZMGL6_js.blockRegistry; }
|
|
358
|
-
});
|
|
359
|
-
Object.defineProperty(exports, "componentRegistry", {
|
|
360
|
-
enumerable: true,
|
|
361
|
-
get: function () { return chunk7QFZMGL6_js.componentRegistry; }
|
|
362
|
-
});
|
|
363
|
-
Object.defineProperty(exports, "getBlockMeta", {
|
|
364
|
-
enumerable: true,
|
|
365
|
-
get: function () { return chunk7QFZMGL6_js.getBlockMeta; }
|
|
366
|
-
});
|
|
367
|
-
Object.defineProperty(exports, "getComponentMeta", {
|
|
368
|
-
enumerable: true,
|
|
369
|
-
get: function () { return chunk7QFZMGL6_js.getComponentMeta; }
|
|
370
|
-
});
|
|
371
|
-
Object.defineProperty(exports, "getLayoutMeta", {
|
|
372
|
-
enumerable: true,
|
|
373
|
-
get: function () { return chunk7QFZMGL6_js.getLayoutMeta; }
|
|
374
|
-
});
|
|
375
|
-
Object.defineProperty(exports, "getMeta", {
|
|
376
|
-
enumerable: true,
|
|
377
|
-
get: function () { return chunk7QFZMGL6_js.getMeta; }
|
|
378
|
-
});
|
|
379
|
-
Object.defineProperty(exports, "getPrimitiveMeta", {
|
|
380
|
-
enumerable: true,
|
|
381
|
-
get: function () { return chunk7QFZMGL6_js.getPrimitiveMeta; }
|
|
382
|
-
});
|
|
383
|
-
Object.defineProperty(exports, "layoutRegistry", {
|
|
384
|
-
enumerable: true,
|
|
385
|
-
get: function () { return chunk7QFZMGL6_js.layoutRegistry; }
|
|
386
|
-
});
|
|
387
|
-
Object.defineProperty(exports, "primitiveRegistry", {
|
|
388
|
-
enumerable: true,
|
|
389
|
-
get: function () { return chunk7QFZMGL6_js.primitiveRegistry; }
|
|
390
|
-
});
|
|
391
|
-
//# sourceMappingURL=index.js.map
|
|
392
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":[],"names":[],"mappings":"","file":"index.js"}
|
package/dist/registry/index.mjs
DELETED
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
export { AccordionMeta, AudioMeta, AuthLayoutMeta, AvatarMeta, AvatarPickerMeta, BadgeMeta, BadgeWrapperMeta, BentoLayoutMeta, BlurViewMeta, BlurWrapperMeta, BottomDrawerLayoutMeta, BoxMeta, ButtonMeta, CameraMeta, CardMeta, CenterMeta, CenteredLayoutMeta, CheckboxMeta, ChipMeta, CollapsibleWrapperMeta, ColorPickerMeta, DashboardLayoutMeta, DatePickerMeta, DeckLayoutMeta, DividerMeta, EmojiPickerMeta, FadeInWrapperMeta, FilePickerMeta, FlatListMeta, FlexLayoutMeta, FlipLayoutMeta, FooterLayoutMeta, GifPickerMeta, GradientMeta, GridLayoutMeta, HeaderContentLayoutMeta, IconButtonMeta, IconMeta, IconPickerMeta, ImageMeta, InlineMeta, KeyboardAvoidWrapperMeta, LeftDrawerLayoutMeta, LottieAnimationMeta, MapViewMeta, MasonryLayoutMeta, NumberInputMeta, OTPInputMeta, ParallaxLayoutMeta, PasswordInputMeta, PressableMeta, ProgressBarMeta, RadioGroupMeta, ResponsiveLayoutMeta, RootLayoutMeta, SafeAreaWrapperMeta, ScalePressWrapperMeta, ScrollLayoutMeta, ScrollMeta, SearchInputMeta, SelectMeta, SeparatorMeta, ShimmerWrapperMeta, SidebarLayoutMeta, SkeletonWrapperMeta, SketchLayoutMeta, SlideUpWrapperMeta, SliderMeta, SortableGridLayoutMeta, SpinnerMeta, SplitLayoutMeta, StackMeta, Swipe2ScreenLayoutMeta, SwiperLayoutMeta, SwitchMeta, SystemLayoutMeta, TabsMeta, TextAreaMeta, TextInputMeta, TextMeta, TooltipWrapperMeta, TopDrawerLayoutMeta, TutoLayoutMeta, VideoMeta, VoidLayoutMeta, WebViewMeta, WheelPickerMeta, blockRegistry, componentRegistry, getBlockMeta, getComponentMeta, getLayoutMeta, getMeta, getPrimitiveMeta, layoutRegistry, primitiveRegistry } from '../chunk-RQXQK3ZO.mjs';
|
|
2
|
-
//# sourceMappingURL=index.mjs.map
|
|
3
|
-
//# sourceMappingURL=index.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":[],"names":[],"mappings":"","file":"index.mjs"}
|
package/dist/theme/index.d.mts
DELETED
|
@@ -1,109 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { b as ThemeMode, a as CustomThemeMode, d as ThemeRegistry, C as ColorScheme } from '../index-CuaJA3gM.mjs';
|
|
3
|
-
export { T as ThemeGradients, c as ThemeName, t as themes } from '../index-CuaJA3gM.mjs';
|
|
4
|
-
|
|
5
|
-
/**
|
|
6
|
-
* Defines the shape of the theme context value.
|
|
7
|
-
* Provides access to the current theme, mode, theme setter, and available themes.
|
|
8
|
-
*/
|
|
9
|
-
interface ThemeContextType {
|
|
10
|
-
/** The current active color scheme object */
|
|
11
|
-
theme: ColorScheme;
|
|
12
|
-
/** The current theme mode (built-in or custom) */
|
|
13
|
-
mode: ThemeMode | CustomThemeMode;
|
|
14
|
-
/** Function to change the current theme */
|
|
15
|
-
setTheme: (theme: ThemeMode | CustomThemeMode) => void;
|
|
16
|
-
/** Registry of all available themes */
|
|
17
|
-
availableThemes: ThemeRegistry;
|
|
18
|
-
}
|
|
19
|
-
/**
|
|
20
|
-
* Hook to access the theme context.
|
|
21
|
-
*
|
|
22
|
-
* @param customTheme - (Optional) Custom theme mode to use instead of current context theme.
|
|
23
|
-
* @returns Theme context object with current theme, mode, theme setter, and available themes.
|
|
24
|
-
* @throws Error if used outside a ThemeProvider.
|
|
25
|
-
*
|
|
26
|
-
* @example
|
|
27
|
-
* ```tsx
|
|
28
|
-
* // Basic usage
|
|
29
|
-
* const { theme, mode, setTheme } = useTheme();
|
|
30
|
-
*
|
|
31
|
-
* // With a specific custom theme
|
|
32
|
-
* const { theme } = useTheme('neon');
|
|
33
|
-
* ```
|
|
34
|
-
*/
|
|
35
|
-
declare const useTheme: (customTheme?: ThemeMode | CustomThemeMode) => ThemeContextType;
|
|
36
|
-
/**
|
|
37
|
-
* Props for the ThemeProvider component.
|
|
38
|
-
*/
|
|
39
|
-
interface ThemeProviderProps {
|
|
40
|
-
/** Child components that will have access to theme context */
|
|
41
|
-
children: React.ReactNode;
|
|
42
|
-
/** Default theme to use when no theme is stored in state */
|
|
43
|
-
defaultTheme?: ThemeMode | CustomThemeMode;
|
|
44
|
-
/** Additional custom themes to merge with built-in themes */
|
|
45
|
-
customThemes?: Partial<ThemeRegistry>;
|
|
46
|
-
}
|
|
47
|
-
/**
|
|
48
|
-
* Provides the theme context to child components.
|
|
49
|
-
*
|
|
50
|
-
* Manages the current theme state and provides access to theme changing functionality.
|
|
51
|
-
* Supports built-in themes (light, dark, neon) and custom themes.
|
|
52
|
-
*
|
|
53
|
-
* @param props - The theme provider properties.
|
|
54
|
-
* @returns A context provider component.
|
|
55
|
-
*
|
|
56
|
-
* @example
|
|
57
|
-
* ```tsx
|
|
58
|
-
* // Basic usage
|
|
59
|
-
* <ThemeProvider>
|
|
60
|
-
* <App />
|
|
61
|
-
* </ThemeProvider>
|
|
62
|
-
*
|
|
63
|
-
* // With default theme and custom themes
|
|
64
|
-
* <ThemeProvider defaultTheme="dark" customThemes={{ myTheme: customThemeConfig }}>
|
|
65
|
-
* <App />
|
|
66
|
-
* </ThemeProvider>
|
|
67
|
-
* ```
|
|
68
|
-
*/
|
|
69
|
-
declare const ThemeProvider: React.FC<ThemeProviderProps>;
|
|
70
|
-
|
|
71
|
-
/**
|
|
72
|
-
* Hook to manage the theme color scheme in the application.
|
|
73
|
-
*
|
|
74
|
-
* This hook provides a unified way to manage theme selection:
|
|
75
|
-
* - Uses the explicitly provided theme mode if specified.
|
|
76
|
-
* - Uses the device's native color scheme (light/dark) by default.
|
|
77
|
-
* - Defaults to light theme if the native scheme is unavailable.
|
|
78
|
-
*
|
|
79
|
-
* @param theme - (Optional) Explicit theme mode to use instead of the device preference.
|
|
80
|
-
* @returns The resolved theme mode ('light' or 'dark').
|
|
81
|
-
*
|
|
82
|
-
* @example
|
|
83
|
-
* ```typescript
|
|
84
|
-
* // Use the device's native color scheme
|
|
85
|
-
* const theme = useColorScheme();
|
|
86
|
-
*
|
|
87
|
-
* // Force light theme regardless of device preference
|
|
88
|
-
* const lightTheme = useColorScheme('light');
|
|
89
|
-
*
|
|
90
|
-
* // Force dark theme regardless of device preference
|
|
91
|
-
* const darkTheme = useColorScheme('dark');
|
|
92
|
-
* ```
|
|
93
|
-
*
|
|
94
|
-
* @remarks
|
|
95
|
-
* - The hook leverages the built-in `useColorScheme` hook from React Native.
|
|
96
|
-
* - On platforms where color scheme detection is not available, it defaults to 'light'.
|
|
97
|
-
* - This is typically used with the ThemeProvider to ensure consistent theming throughout the application.
|
|
98
|
-
*/
|
|
99
|
-
declare function useColorScheme(theme?: 'light' | 'dark'): 'light' | 'dark';
|
|
100
|
-
|
|
101
|
-
/**
|
|
102
|
-
* Creates a theme color scheme by merging default colors with optional overrides.
|
|
103
|
-
*
|
|
104
|
-
* @param overrides - (Optional) Object containing color values to override.
|
|
105
|
-
* @returns The complete generated theme color scheme.
|
|
106
|
-
*/
|
|
107
|
-
declare const createTheme: (overrides?: Partial<ColorScheme>) => ColorScheme;
|
|
108
|
-
|
|
109
|
-
export { ColorScheme, CustomThemeMode, ThemeMode, ThemeProvider, ThemeRegistry, createTheme, useColorScheme, useTheme };
|
package/dist/theme/index.d.ts
DELETED
|
@@ -1,109 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { b as ThemeMode, a as CustomThemeMode, d as ThemeRegistry, C as ColorScheme } from '../index-CuaJA3gM.js';
|
|
3
|
-
export { T as ThemeGradients, c as ThemeName, t as themes } from '../index-CuaJA3gM.js';
|
|
4
|
-
|
|
5
|
-
/**
|
|
6
|
-
* Defines the shape of the theme context value.
|
|
7
|
-
* Provides access to the current theme, mode, theme setter, and available themes.
|
|
8
|
-
*/
|
|
9
|
-
interface ThemeContextType {
|
|
10
|
-
/** The current active color scheme object */
|
|
11
|
-
theme: ColorScheme;
|
|
12
|
-
/** The current theme mode (built-in or custom) */
|
|
13
|
-
mode: ThemeMode | CustomThemeMode;
|
|
14
|
-
/** Function to change the current theme */
|
|
15
|
-
setTheme: (theme: ThemeMode | CustomThemeMode) => void;
|
|
16
|
-
/** Registry of all available themes */
|
|
17
|
-
availableThemes: ThemeRegistry;
|
|
18
|
-
}
|
|
19
|
-
/**
|
|
20
|
-
* Hook to access the theme context.
|
|
21
|
-
*
|
|
22
|
-
* @param customTheme - (Optional) Custom theme mode to use instead of current context theme.
|
|
23
|
-
* @returns Theme context object with current theme, mode, theme setter, and available themes.
|
|
24
|
-
* @throws Error if used outside a ThemeProvider.
|
|
25
|
-
*
|
|
26
|
-
* @example
|
|
27
|
-
* ```tsx
|
|
28
|
-
* // Basic usage
|
|
29
|
-
* const { theme, mode, setTheme } = useTheme();
|
|
30
|
-
*
|
|
31
|
-
* // With a specific custom theme
|
|
32
|
-
* const { theme } = useTheme('neon');
|
|
33
|
-
* ```
|
|
34
|
-
*/
|
|
35
|
-
declare const useTheme: (customTheme?: ThemeMode | CustomThemeMode) => ThemeContextType;
|
|
36
|
-
/**
|
|
37
|
-
* Props for the ThemeProvider component.
|
|
38
|
-
*/
|
|
39
|
-
interface ThemeProviderProps {
|
|
40
|
-
/** Child components that will have access to theme context */
|
|
41
|
-
children: React.ReactNode;
|
|
42
|
-
/** Default theme to use when no theme is stored in state */
|
|
43
|
-
defaultTheme?: ThemeMode | CustomThemeMode;
|
|
44
|
-
/** Additional custom themes to merge with built-in themes */
|
|
45
|
-
customThemes?: Partial<ThemeRegistry>;
|
|
46
|
-
}
|
|
47
|
-
/**
|
|
48
|
-
* Provides the theme context to child components.
|
|
49
|
-
*
|
|
50
|
-
* Manages the current theme state and provides access to theme changing functionality.
|
|
51
|
-
* Supports built-in themes (light, dark, neon) and custom themes.
|
|
52
|
-
*
|
|
53
|
-
* @param props - The theme provider properties.
|
|
54
|
-
* @returns A context provider component.
|
|
55
|
-
*
|
|
56
|
-
* @example
|
|
57
|
-
* ```tsx
|
|
58
|
-
* // Basic usage
|
|
59
|
-
* <ThemeProvider>
|
|
60
|
-
* <App />
|
|
61
|
-
* </ThemeProvider>
|
|
62
|
-
*
|
|
63
|
-
* // With default theme and custom themes
|
|
64
|
-
* <ThemeProvider defaultTheme="dark" customThemes={{ myTheme: customThemeConfig }}>
|
|
65
|
-
* <App />
|
|
66
|
-
* </ThemeProvider>
|
|
67
|
-
* ```
|
|
68
|
-
*/
|
|
69
|
-
declare const ThemeProvider: React.FC<ThemeProviderProps>;
|
|
70
|
-
|
|
71
|
-
/**
|
|
72
|
-
* Hook to manage the theme color scheme in the application.
|
|
73
|
-
*
|
|
74
|
-
* This hook provides a unified way to manage theme selection:
|
|
75
|
-
* - Uses the explicitly provided theme mode if specified.
|
|
76
|
-
* - Uses the device's native color scheme (light/dark) by default.
|
|
77
|
-
* - Defaults to light theme if the native scheme is unavailable.
|
|
78
|
-
*
|
|
79
|
-
* @param theme - (Optional) Explicit theme mode to use instead of the device preference.
|
|
80
|
-
* @returns The resolved theme mode ('light' or 'dark').
|
|
81
|
-
*
|
|
82
|
-
* @example
|
|
83
|
-
* ```typescript
|
|
84
|
-
* // Use the device's native color scheme
|
|
85
|
-
* const theme = useColorScheme();
|
|
86
|
-
*
|
|
87
|
-
* // Force light theme regardless of device preference
|
|
88
|
-
* const lightTheme = useColorScheme('light');
|
|
89
|
-
*
|
|
90
|
-
* // Force dark theme regardless of device preference
|
|
91
|
-
* const darkTheme = useColorScheme('dark');
|
|
92
|
-
* ```
|
|
93
|
-
*
|
|
94
|
-
* @remarks
|
|
95
|
-
* - The hook leverages the built-in `useColorScheme` hook from React Native.
|
|
96
|
-
* - On platforms where color scheme detection is not available, it defaults to 'light'.
|
|
97
|
-
* - This is typically used with the ThemeProvider to ensure consistent theming throughout the application.
|
|
98
|
-
*/
|
|
99
|
-
declare function useColorScheme(theme?: 'light' | 'dark'): 'light' | 'dark';
|
|
100
|
-
|
|
101
|
-
/**
|
|
102
|
-
* Creates a theme color scheme by merging default colors with optional overrides.
|
|
103
|
-
*
|
|
104
|
-
* @param overrides - (Optional) Object containing color values to override.
|
|
105
|
-
* @returns The complete generated theme color scheme.
|
|
106
|
-
*/
|
|
107
|
-
declare const createTheme: (overrides?: Partial<ColorScheme>) => ColorScheme;
|
|
108
|
-
|
|
109
|
-
export { ColorScheme, CustomThemeMode, ThemeMode, ThemeProvider, ThemeRegistry, createTheme, useColorScheme, useTheme };
|
package/dist/theme/index.js
DELETED
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var chunkM3YLASM2_js = require('../chunk-M3YLASM2.js');
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
Object.defineProperty(exports, "ThemeProvider", {
|
|
8
|
-
enumerable: true,
|
|
9
|
-
get: function () { return chunkM3YLASM2_js.ThemeProvider; }
|
|
10
|
-
});
|
|
11
|
-
Object.defineProperty(exports, "createTheme", {
|
|
12
|
-
enumerable: true,
|
|
13
|
-
get: function () { return chunkM3YLASM2_js.createTheme; }
|
|
14
|
-
});
|
|
15
|
-
Object.defineProperty(exports, "themes", {
|
|
16
|
-
enumerable: true,
|
|
17
|
-
get: function () { return chunkM3YLASM2_js.themes; }
|
|
18
|
-
});
|
|
19
|
-
Object.defineProperty(exports, "useColorScheme", {
|
|
20
|
-
enumerable: true,
|
|
21
|
-
get: function () { return chunkM3YLASM2_js.useColorScheme; }
|
|
22
|
-
});
|
|
23
|
-
Object.defineProperty(exports, "useTheme", {
|
|
24
|
-
enumerable: true,
|
|
25
|
-
get: function () { return chunkM3YLASM2_js.useTheme; }
|
|
26
|
-
});
|
|
27
|
-
//# sourceMappingURL=index.js.map
|
|
28
|
-
//# sourceMappingURL=index.js.map
|
package/dist/theme/index.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":[],"names":[],"mappings":"","file":"index.js"}
|
package/dist/theme/index.mjs
DELETED
package/dist/theme/index.mjs.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":[],"names":[],"mappings":"","file":"index.mjs"}
|