@flipova/foundation 2.4.4 → 3.0.0-alpha.1
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/CHANGES.md +66 -0
- package/COMPONENTS.md +102 -0
- package/DOCS.md +261 -0
- package/LICENSE +1 -1
- package/README.md +169 -118
- package/components/contract/index.ts +3 -0
- package/components/contract/recipes/accordion.ts +42 -0
- package/components/contract/recipes/avatar.ts +41 -0
- package/components/contract/recipes/badge.ts +46 -0
- package/components/contract/recipes/button.ts +58 -0
- package/components/contract/recipes/calendar.ts +118 -0
- package/components/contract/recipes/card.ts +21 -0
- package/components/contract/recipes/checkbox.ts +33 -0
- package/components/contract/recipes/divider.ts +9 -0
- package/components/contract/recipes/fab.ts +31 -0
- package/components/contract/recipes/feedback.ts +66 -0
- package/components/contract/recipes/formcontrol.ts +16 -0
- package/components/contract/recipes/heading.ts +16 -0
- package/components/contract/recipes/icon.ts +40 -0
- package/components/contract/recipes/index.ts +30 -0
- package/components/contract/recipes/input.ts +39 -0
- package/components/contract/recipes/layout.ts +44 -0
- package/components/contract/recipes/link.ts +6 -0
- package/components/contract/recipes/modal.ts +40 -0
- package/components/contract/recipes/overlay.ts +250 -0
- package/components/contract/recipes/progress.ts +27 -0
- package/components/contract/recipes/radio.ts +39 -0
- package/components/contract/recipes/select.ts +63 -0
- package/components/contract/recipes/skeleton.ts +25 -0
- package/components/contract/recipes/slider.ts +50 -0
- package/components/contract/recipes/spinner.ts +12 -0
- package/components/contract/recipes/switch.ts +26 -0
- package/components/contract/recipes/table.ts +37 -0
- package/components/contract/recipes/tabs.ts +31 -0
- package/components/contract/recipes/text.ts +12 -0
- package/components/contract/recipes/textarea.ts +37 -0
- package/components/contract/recipes/util.ts +15 -0
- package/components/contract/theme.ts +116 -0
- package/components/contract/types.ts +598 -0
- package/components/providers/css-vars.ts +43 -0
- package/components/providers/flipova/components/Accordion.tsx +41 -0
- package/components/providers/flipova/components/ActionSheet.tsx +34 -0
- package/components/providers/flipova/components/Alert.tsx +15 -0
- package/components/providers/flipova/components/AlertDialog.tsx +31 -0
- package/components/providers/flipova/components/Avatar.tsx +30 -0
- package/components/providers/flipova/components/Badge.tsx +14 -0
- package/components/providers/flipova/components/BottomSheet.tsx +24 -0
- package/components/providers/flipova/components/Box.tsx +1 -0
- package/components/providers/flipova/components/Button.tsx +31 -0
- package/components/providers/flipova/components/Calendar.tsx +85 -0
- package/components/providers/flipova/components/Card.tsx +13 -0
- package/components/providers/flipova/components/Center.tsx +11 -0
- package/components/providers/flipova/components/Checkbox.tsx +24 -0
- package/components/providers/flipova/components/DateTimePicker.tsx +45 -0
- package/components/providers/flipova/components/Divider.tsx +9 -0
- package/components/providers/flipova/components/Drawer.tsx +18 -0
- package/components/providers/flipova/components/Fab.tsx +22 -0
- package/components/providers/flipova/components/FlatList.tsx +1 -0
- package/components/providers/flipova/components/FormControl.tsx +27 -0
- package/components/providers/flipova/components/Grid.tsx +18 -0
- package/components/providers/flipova/components/HStack.tsx +13 -0
- package/components/providers/flipova/components/Heading.tsx +19 -0
- package/components/providers/flipova/components/Icon.tsx +20 -0
- package/components/providers/flipova/components/Image.tsx +1 -0
- package/components/providers/flipova/components/ImageBackground.tsx +1 -0
- package/components/providers/flipova/components/ImageViewer.tsx +25 -0
- package/components/providers/flipova/components/Input.tsx +29 -0
- package/components/providers/flipova/components/InputAccessoryView.tsx +1 -0
- package/components/providers/flipova/components/KeyboardAvoidingView.tsx +1 -0
- package/components/providers/flipova/components/Link.tsx +21 -0
- package/components/providers/flipova/components/LiquidGlass.tsx +13 -0
- package/components/providers/flipova/components/Menu.tsx +43 -0
- package/components/providers/flipova/components/Modal.tsx +24 -0
- package/components/providers/flipova/components/Popover.tsx +23 -0
- package/components/providers/flipova/components/Portal.tsx +42 -0
- package/components/providers/flipova/components/Pressable.tsx +1 -0
- package/components/providers/flipova/components/Progress.tsx +22 -0
- package/components/providers/flipova/components/RadioGroup.tsx +36 -0
- package/components/providers/flipova/components/RefreshControl.tsx +1 -0
- package/components/providers/flipova/components/SafeAreaView.tsx +1 -0
- package/components/providers/flipova/components/ScrollView.tsx +1 -0
- package/components/providers/flipova/components/SectionList.tsx +1 -0
- package/components/providers/flipova/components/Select.tsx +61 -0
- package/components/providers/flipova/components/Skeleton.tsx +25 -0
- package/components/providers/flipova/components/Slider.tsx +52 -0
- package/components/providers/flipova/components/Spinner.tsx +19 -0
- package/components/providers/flipova/components/StatusBar.tsx +1 -0
- package/components/providers/flipova/components/Switch.tsx +21 -0
- package/components/providers/flipova/components/Table.tsx +33 -0
- package/components/providers/flipova/components/Tabs.tsx +39 -0
- package/components/providers/flipova/components/Text.tsx +13 -0
- package/components/providers/flipova/components/Textarea.tsx +28 -0
- package/components/providers/flipova/components/Toast.tsx +28 -0
- package/components/providers/flipova/components/Tooltip.tsx +34 -0
- package/components/providers/flipova/components/VStack.tsx +13 -0
- package/components/providers/flipova/components/View.tsx +1 -0
- package/components/providers/flipova/components/VirtualizedList.tsx +1 -0
- package/components/providers/flipova/index.tsx +189 -0
- package/components/providers/gluestack/index.tsx +226 -0
- package/components/providers/gluestack/more.tsx +151 -0
- package/components/{ui → providers/gluestack/ui}/accordion/index.tsx +2 -2
- package/components/{ui → providers/gluestack/ui}/actionsheet/index.tsx +15 -15
- package/components/{ui → providers/gluestack/ui}/alert/index.tsx +1 -1
- package/components/{ui → providers/gluestack/ui}/alert-dialog/index.tsx +3 -3
- package/components/{ui → providers/gluestack/ui}/badge/index.tsx +2 -2
- package/components/{ui → providers/gluestack/ui}/bottomsheet/index.tsx +11 -10
- package/components/{ui → providers/gluestack/ui}/box/index.tsx +4 -1
- package/components/{ui → providers/gluestack/ui}/button/index.tsx +1 -1
- package/components/{ui → providers/gluestack/ui}/calendar/index.tsx +4 -4
- package/components/{ui → providers/gluestack/ui}/card/index.tsx +1 -1
- package/components/{ui → providers/gluestack/ui}/center/index.tsx +1 -1
- package/components/{ui → providers/gluestack/ui}/checkbox/index.tsx +9 -8
- package/components/{ui → providers/gluestack/ui}/date-time-picker/index.tsx +4 -4
- package/components/providers/gluestack/ui/date-time-picker/index.web.tsx +197 -0
- package/components/{ui → providers/gluestack/ui}/divider/index.tsx +1 -1
- package/components/{ui → providers/gluestack/ui}/drawer/index.tsx +2 -2
- package/components/{ui → providers/gluestack/ui}/fab/index.tsx +1 -1
- package/components/{ui → providers/gluestack/ui}/form-control/index.tsx +3 -3
- package/components/{ui → providers/gluestack/ui}/gluestack-ui-provider/config.ts +1 -62
- package/components/{ui → providers/gluestack/ui}/gluestack-ui-provider/tokens.js +1 -1
- package/components/{ui → providers/gluestack/ui}/grid/index.tsx +3 -3
- package/components/{ui → providers/gluestack/ui}/heading/index.tsx +7 -7
- package/components/{ui → providers/gluestack/ui}/hstack/index.tsx +1 -1
- package/components/{ui → providers/gluestack/ui}/icon/index.tsx +1 -1
- package/components/{ui → providers/gluestack/ui}/image/index.tsx +0 -1
- package/components/{ui → providers/gluestack/ui}/image-viewer/index.tsx +96 -99
- package/components/providers/gluestack/ui/index.ts +58 -0
- package/components/{ui → providers/gluestack/ui}/input/index.tsx +1 -1
- package/components/{ui → providers/gluestack/ui}/link/index.tsx +2 -2
- package/components/{ui → providers/gluestack/ui}/liquid-glass/index.tsx +2 -2
- package/components/{ui → providers/gluestack/ui}/menu/index.tsx +5 -4
- package/components/{ui → providers/gluestack/ui}/modal/index.tsx +19 -17
- package/components/{ui → providers/gluestack/ui}/popover/index.tsx +4 -4
- package/components/{ui → providers/gluestack/ui}/portal/index.tsx +1 -1
- package/components/{ui → providers/gluestack/ui}/progress/index.tsx +2 -2
- package/components/{ui → providers/gluestack/ui}/radio/index.tsx +1 -1
- package/components/{ui → providers/gluestack/ui}/select/index.tsx +8 -12
- package/components/{ui → providers/gluestack/ui}/select/select-actionsheet.tsx +13 -13
- package/components/{ui → providers/gluestack/ui}/skeleton/index.tsx +2 -2
- package/components/{ui → providers/gluestack/ui}/slider/index.tsx +1 -1
- package/components/{ui → providers/gluestack/ui}/spinner/index.tsx +2 -2
- package/components/{ui → providers/gluestack/ui}/table/index.tsx +33 -33
- package/components/{ui → providers/gluestack/ui}/tabs/TabsAnimatedIndicator.tsx +1 -1
- package/components/{ui → providers/gluestack/ui}/tabs/index.tsx +2 -2
- package/components/{ui → providers/gluestack/ui}/text/index.tsx +1 -1
- package/components/{ui → providers/gluestack/ui}/toast/index.tsx +4 -4
- package/components/{ui → providers/gluestack/ui}/tooltip/index.tsx +1 -1
- package/components/{ui → providers/gluestack/ui}/vstack/index.tsx +1 -1
- package/components/providers/index.ts +2 -0
- package/components/providers/paper/index.tsx +449 -0
- package/components/providers/provider.tsx +80 -0
- package/components/providers/reusables/classes.ts +163 -0
- package/components/providers/reusables/index.tsx +289 -0
- package/components/providers/rn-base/Box.tsx +7 -0
- package/components/providers/rn-base/FlatList.tsx +16 -0
- package/components/providers/rn-base/Image.tsx +18 -0
- package/components/providers/rn-base/ImageBackground.tsx +11 -0
- package/components/providers/rn-base/InputAccessoryView.tsx +9 -0
- package/components/providers/rn-base/KeyboardAvoidingView.tsx +15 -0
- package/components/providers/rn-base/Pressable.tsx +19 -0
- package/components/providers/rn-base/RefreshControl.tsx +16 -0
- package/components/providers/rn-base/SafeAreaView.tsx +11 -0
- package/components/providers/rn-base/ScrollView.tsx +11 -0
- package/components/providers/rn-base/SectionList.tsx +22 -0
- package/components/providers/rn-base/StatusBar.tsx +17 -0
- package/components/providers/rn-base/View.tsx +7 -0
- package/components/providers/rn-base/VirtualizedList.tsx +18 -0
- package/components/providers/rn-base/index.tsx +64 -0
- package/components/providers/tamagui/index.tsx +375 -0
- package/components/providers/types.ts +17 -0
- package/components/theme/design-theme.ts +230 -0
- package/components/ui/create.tsx +14 -0
- package/components/ui/index.ts +68 -58
- package/components/ui/resolve.ts +40 -0
- package/design/canonical.index.txt +2 -16
- package/design/manifest.xml +4 -3
- package/design/schema.xsd +44 -434
- package/design/themes.xml +7 -177
- package/design/tools/{npm.js → cli.js} +173 -73
- package/design/tools/gui/index.html +998 -0
- package/design/tools/lib/check.js +533 -0
- package/design/tools/lib/contract.js +23 -0
- package/design/tools/lib/edit.js +166 -0
- package/design/tools/lib/generate.js +465 -0
- package/design/tools/lib/gui.js +614 -0
- package/design/tools/lib/lint.js +139 -0
- package/design/tools/lib/registry.js +135 -0
- package/design/tools/lib/util.js +53 -0
- package/design/tools/lib/xml.js +257 -0
- package/design/tools/lib/xsd.js +408 -0
- package/dist/chunk-2QM2ZUDS.mjs +1308 -0
- package/dist/chunk-2QM2ZUDS.mjs.map +1 -0
- package/dist/chunk-2T2TCUYF.js +1371 -0
- package/dist/chunk-2T2TCUYF.js.map +1 -0
- package/dist/chunk-6UKTC4KF.js +43 -0
- package/dist/chunk-6UKTC4KF.js.map +1 -0
- package/dist/chunk-6Z4WRTI4.mjs +37 -0
- package/dist/chunk-6Z4WRTI4.mjs.map +1 -0
- package/dist/chunk-G3K6J5KY.js +157 -0
- package/dist/chunk-G3K6J5KY.js.map +1 -0
- package/dist/chunk-GM45RCSI.mjs +96 -0
- package/dist/chunk-GM45RCSI.mjs.map +1 -0
- package/dist/chunk-GQJLHH2P.mjs +3 -0
- package/dist/chunk-GQJLHH2P.mjs.map +1 -0
- package/dist/chunk-ICNR56VP.js +1653 -0
- package/dist/chunk-ICNR56VP.js.map +1 -0
- package/dist/chunk-J5LGTIGS.mjs +9 -0
- package/dist/chunk-J5LGTIGS.mjs.map +1 -0
- package/dist/chunk-LRPZLF2K.mjs +30 -0
- package/dist/chunk-LRPZLF2K.mjs.map +1 -0
- package/dist/chunk-OC4MXNXU.js +32 -0
- package/dist/chunk-OC4MXNXU.js.map +1 -0
- package/dist/chunk-PZ5AY32C.js +11 -0
- package/dist/chunk-PZ5AY32C.js.map +1 -0
- package/dist/chunk-RWVTZUEG.js +161 -0
- package/dist/chunk-RWVTZUEG.js.map +1 -0
- package/dist/chunk-V473I5XQ.js +4 -0
- package/dist/chunk-V473I5XQ.js.map +1 -0
- package/dist/chunk-V4ULAISZ.js +915 -0
- package/dist/chunk-V4ULAISZ.js.map +1 -0
- package/dist/chunk-WRJERTJS.mjs +145 -0
- package/dist/chunk-WRJERTJS.mjs.map +1 -0
- package/dist/chunk-YIBPE3KQ.mjs +864 -0
- package/dist/chunk-YIBPE3KQ.mjs.map +1 -0
- package/dist/chunk-YUAQIZPN.mjs +1556 -0
- package/dist/chunk-YUAQIZPN.mjs.map +1 -0
- package/dist/contract/index.d.mts +304 -0
- package/dist/contract/index.d.ts +304 -0
- package/dist/contract/index.js +256 -0
- package/dist/contract/index.js.map +1 -0
- package/dist/contract/index.mjs +3 -0
- package/dist/contract/index.mjs.map +1 -0
- package/dist/index.d.mts +4 -40
- package/dist/index.d.ts +4 -40
- package/dist/index.js +73 -992
- package/dist/index.mjs +2 -1
- package/dist/providers/flipova/index.d.mts +133 -0
- package/dist/providers/flipova/index.d.ts +133 -0
- package/dist/providers/flipova/index.js +249 -0
- package/dist/providers/flipova/index.js.map +1 -0
- package/dist/providers/flipova/index.mjs +4 -0
- package/dist/providers/flipova/index.mjs.map +1 -0
- package/dist/providers/gluestack/index.d.mts +7 -0
- package/dist/providers/gluestack/index.d.ts +7 -0
- package/dist/providers/gluestack/index.js +240 -0
- package/dist/providers/gluestack/index.js.map +1 -0
- package/dist/providers/gluestack/index.mjs +238 -0
- package/dist/providers/gluestack/index.mjs.map +1 -0
- package/dist/providers/gluestack/ui/index.d.mts +3472 -0
- package/dist/providers/gluestack/ui/index.d.ts +3472 -0
- package/dist/{chunk-LCTFQJZM.js → providers/gluestack/ui/index.js} +860 -2297
- package/dist/providers/gluestack/ui/index.js.map +1 -0
- package/dist/{chunk-2R66P5X5.mjs → providers/gluestack/ui/index.mjs} +468 -2062
- package/dist/providers/gluestack/ui/index.mjs.map +1 -0
- package/dist/providers/index.d.mts +37 -0
- package/dist/providers/index.d.ts +37 -0
- package/dist/providers/index.js +28 -0
- package/dist/providers/index.js.map +1 -0
- package/dist/providers/index.mjs +3 -0
- package/dist/providers/index.mjs.map +1 -0
- package/dist/providers/paper/index.d.mts +30 -0
- package/dist/providers/paper/index.d.ts +30 -0
- package/dist/providers/paper/index.js +362 -0
- package/dist/providers/paper/index.js.map +1 -0
- package/dist/providers/paper/index.mjs +353 -0
- package/dist/providers/paper/index.mjs.map +1 -0
- package/dist/providers/reusables/index.d.mts +60 -0
- package/dist/providers/reusables/index.d.ts +60 -0
- package/dist/providers/reusables/index.js +348 -0
- package/dist/providers/reusables/index.js.map +1 -0
- package/dist/providers/reusables/index.mjs +311 -0
- package/dist/providers/reusables/index.mjs.map +1 -0
- package/dist/providers/tamagui/index.d.mts +15 -0
- package/dist/providers/tamagui/index.d.ts +15 -0
- package/dist/providers/tamagui/index.js +275 -0
- package/dist/providers/tamagui/index.js.map +1 -0
- package/dist/providers/tamagui/index.mjs +270 -0
- package/dist/providers/tamagui/index.mjs.map +1 -0
- package/dist/theme-BznFrVT1.d.mts +566 -0
- package/dist/theme-BznFrVT1.d.ts +566 -0
- package/dist/types-C7P80VKR.d.ts +22 -0
- package/dist/types-Tspvmask.d.mts +22 -0
- package/dist/ui/index.d.mts +190 -7017
- package/dist/ui/index.d.ts +190 -7017
- package/dist/ui/index.js +73 -992
- package/dist/ui/index.mjs +2 -1
- package/package.json +136 -35
- package/components/ui/date-time-picker/index.web.tsx +0 -195
- package/design/documentation.xml +0 -607
- package/design/tools/design.js +0 -188
- package/design/tools/requirements.txt +0 -35
- package/design/tools/sources/.checker/__init__.py +0 -81
- package/design/tools/sources/.checker/checks.py +0 -198
- package/design/tools/sources/.checker/cli.py +0 -154
- package/design/tools/sources/.checker/io.py +0 -242
- package/design/tools/sources/.checker/model.py +0 -144
- package/design/tools/sources/.checker/registry.py +0 -115
- package/design/tools/sources/.checker/report.py +0 -21
- package/design/tools/sources/.docgen/__init__.py +0 -45
- package/design/tools/sources/.docgen/cli.py +0 -101
- package/design/tools/sources/.docgen/model.py +0 -147
- package/design/tools/sources/.docgen/reference.py +0 -97
- package/design/tools/sources/.docgen/site.py +0 -145
- package/design/tools/sources/.docgen/xsddoc.py +0 -329
- package/design/tools/sources/.generate/__init__.py +0 -35
- package/design/tools/sources/.generate/cli.py +0 -76
- package/design/tools/sources/.generate/common.py +0 -33
- package/design/tools/sources/.generate/config.py +0 -177
- package/design/tools/sources/.generate/model.py +0 -51
- package/design/tools/sources/.generate/tokens.py +0 -141
- package/design/tools/sources/.linter/__init__.py +0 -9
- package/design/tools/sources/.linter/cli.py +0 -44
- package/design/tools/sources/.linter/discovery.py +0 -30
- package/design/tools/sources/.linter/errors.py +0 -45
- package/design/tools/sources/.linter/linter.py +0 -68
- package/design/tools/sources/.xmleditor/__init__.py +0 -74
- package/design/tools/sources/.xmleditor/blocks.py +0 -185
- package/design/tools/sources/.xmleditor/cli.py +0 -141
- package/design/tools/sources/.xmleditor/editor.py +0 -906
- package/design/tools/sources/.xmleditor/model.py +0 -708
- package/design/tools/sources/.xmleditor/widgets.py +0 -1832
- package/design/tools/sources/.xmleditor/xsdmodel.py +0 -753
- package/design/tools/sources/checker.py +0 -55
- package/design/tools/sources/docgen.py +0 -66
- package/design/tools/sources/generate.py +0 -48
- package/design/tools/sources/linter.py +0 -54
- package/design/tools/sources/ruff.toml +0 -12
- package/design/tools/sources/xmleditor.py +0 -62
- package/design/tools/unix/_venv_python.sh +0 -16
- package/design/tools/unix/check.sh +0 -13
- package/design/tools/unix/doc.sh +0 -14
- package/design/tools/unix/gen.sh +0 -14
- package/design/tools/unix/lint.sh +0 -10
- package/design/tools/unix/run.sh +0 -20
- package/design/tools/unix/verify.sh +0 -12
- package/design/tools/unix/xmledit.sh +0 -12
- package/design/tools/windows/check.cmd +0 -12
- package/design/tools/windows/doc.cmd +0 -12
- package/design/tools/windows/gen.cmd +0 -11
- package/design/tools/windows/lint.cmd +0 -9
- package/design/tools/windows/run.cmd +0 -26
- package/design/tools/windows/verify.cmd +0 -10
- package/design/tools/windows/xmledit.cmd +0 -10
- package/dist/chunk-2R66P5X5.mjs.map +0 -1
- package/dist/chunk-LCTFQJZM.js.map +0 -1
- /package/components/{ui → providers/gluestack/ui}/accordion/ANIMATION_CUSTOMIZATION.md +0 -0
- /package/components/{ui → providers/gluestack/ui}/accordion/AccordionAnimatedHeight.tsx +0 -0
- /package/components/{ui → providers/gluestack/ui}/accordion/AccordionAnimatedIcon.tsx +0 -0
- /package/components/{ui → providers/gluestack/ui}/accordion/AnimatedHeight.tsx +0 -0
- /package/components/{ui → providers/gluestack/ui}/accordion/AnimatedIcon.tsx +0 -0
- /package/components/{ui → providers/gluestack/ui}/accordion/MIGRATION_SUMMARY.md +0 -0
- /package/components/{ui → providers/gluestack/ui}/accordion/USAGE_EXAMPLE.tsx +0 -0
- /package/components/{ui → providers/gluestack/ui}/accordion/animation-config.ts +0 -0
- /package/components/{ui → providers/gluestack/ui}/avatar/index.tsx +0 -0
- /package/components/{ui → providers/gluestack/ui}/box/index.web.tsx +0 -0
- /package/components/{ui → providers/gluestack/ui}/box/styles.tsx +0 -0
- /package/components/{ui → providers/gluestack/ui}/calendar/creator.tsx +0 -0
- /package/components/{ui → providers/gluestack/ui}/calendar/styles.tsx +0 -0
- /package/components/{ui → providers/gluestack/ui}/card/index.web.tsx +0 -0
- /package/components/{ui → providers/gluestack/ui}/card/styles.tsx +0 -0
- /package/components/{ui → providers/gluestack/ui}/center/index.web.tsx +0 -0
- /package/components/{ui → providers/gluestack/ui}/center/styles.tsx +0 -0
- /package/components/{ui → providers/gluestack/ui}/date-time-picker/creator.tsx +0 -0
- /package/components/{ui → providers/gluestack/ui}/date-time-picker/styles.tsx +0 -0
- /package/components/{ui → providers/gluestack/ui}/flat-list/index.tsx +0 -0
- /package/components/{ui → providers/gluestack/ui}/gluestack-ui-provider/index.tsx +0 -0
- /package/components/{ui → providers/gluestack/ui}/gluestack-ui-provider/index.web.tsx +0 -0
- /package/components/{ui → providers/gluestack/ui}/gluestack-ui-provider/script.ts +0 -0
- /package/components/{ui → providers/gluestack/ui}/gluestack-ui-provider/theme-context.ts +0 -0
- /package/components/{ui → providers/gluestack/ui}/gluestack-ui-provider/tokens.d.ts +0 -0
- /package/components/{ui → providers/gluestack/ui}/gluestack-ui-provider/useGluestackColors.ts +0 -0
- /package/components/{ui → providers/gluestack/ui}/grid/index.web.tsx +0 -0
- /package/components/{ui → providers/gluestack/ui}/grid/styles.tsx +0 -0
- /package/components/{ui → providers/gluestack/ui}/heading/index.web.tsx +0 -0
- /package/components/{ui → providers/gluestack/ui}/heading/styles.tsx +0 -0
- /package/components/{ui → providers/gluestack/ui}/hstack/index.web.tsx +0 -0
- /package/components/{ui → providers/gluestack/ui}/hstack/styles.tsx +0 -0
- /package/components/{ui → providers/gluestack/ui}/icon/index.web.tsx +0 -0
- /package/components/{ui → providers/gluestack/ui}/image-background/index.tsx +0 -0
- /package/components/{ui → providers/gluestack/ui}/image-viewer/index.web.tsx +0 -0
- /package/components/{ui → providers/gluestack/ui}/input-accessory-view/index.tsx +0 -0
- /package/components/{ui → providers/gluestack/ui}/keyboard-avoiding-view/index.tsx +0 -0
- /package/components/{ui → providers/gluestack/ui}/pressable/index.tsx +0 -0
- /package/components/{ui → providers/gluestack/ui}/refresh-control/index.tsx +0 -0
- /package/components/{ui → providers/gluestack/ui}/safe-area-view/index.tsx +0 -0
- /package/components/{ui → providers/gluestack/ui}/scroll-view/index.tsx +0 -0
- /package/components/{ui → providers/gluestack/ui}/section-list/index.tsx +0 -0
- /package/components/{ui → providers/gluestack/ui}/skeleton/index.web.tsx +0 -0
- /package/components/{ui → providers/gluestack/ui}/skeleton/styles.tsx +0 -0
- /package/components/{ui → providers/gluestack/ui}/status-bar/index.tsx +0 -0
- /package/components/{ui → providers/gluestack/ui}/switch/index.tsx +0 -0
- /package/components/{ui → providers/gluestack/ui}/table/index.web.tsx +0 -0
- /package/components/{ui → providers/gluestack/ui}/table/styles.tsx +0 -0
- /package/components/{ui → providers/gluestack/ui}/tabs/animation-config.ts +0 -0
- /package/components/{ui → providers/gluestack/ui}/tabs/creator.tsx +0 -0
- /package/components/{ui → providers/gluestack/ui}/text/index.web.tsx +0 -0
- /package/components/{ui → providers/gluestack/ui}/text/styles.tsx +0 -0
- /package/components/{ui → providers/gluestack/ui}/textarea/index.tsx +0 -0
- /package/components/{ui → providers/gluestack/ui}/view/index.tsx +0 -0
- /package/components/{ui → providers/gluestack/ui}/virtualized-list/index.tsx +0 -0
- /package/components/{ui → providers/gluestack/ui}/vstack/index.web.tsx +0 -0
- /package/components/{ui → providers/gluestack/ui}/vstack/styles.tsx +0 -0
|
@@ -48,7 +48,7 @@ const badgeIconStyle = tva({
|
|
|
48
48
|
|
|
49
49
|
const ContextView = withStyleContext(View, SCOPE);
|
|
50
50
|
|
|
51
|
-
cssInterop(UIIcon, {
|
|
51
|
+
(cssInterop as any)(UIIcon, {
|
|
52
52
|
className: {
|
|
53
53
|
target: 'style',
|
|
54
54
|
nativeStyleToProp: {
|
|
@@ -72,7 +72,7 @@ function Badge({ children, variant = 'default', className, ...props }: { classNa
|
|
|
72
72
|
|
|
73
73
|
type IBadgeTextProps = React.ComponentPropsWithoutRef<typeof Text> & VariantProps<typeof badgeTextStyle>;
|
|
74
74
|
|
|
75
|
-
const BadgeText = React.forwardRef<React.ComponentRef<typeof Text>, IBadgeTextProps>(function BadgeText(
|
|
75
|
+
const BadgeText: any = React.forwardRef<React.ComponentRef<typeof Text>, IBadgeTextProps>(function BadgeText(
|
|
76
76
|
{ children, className, ...props },
|
|
77
77
|
ref,
|
|
78
78
|
) {
|
|
@@ -310,7 +310,7 @@ export const BottomSheetContent = ({ className, focusScope = true, ...props }: I
|
|
|
310
310
|
const keyDownHandlers = useMemo(() => {
|
|
311
311
|
if (Platform.OS !== 'web') return {};
|
|
312
312
|
return {
|
|
313
|
-
onKeyDown: (e:
|
|
313
|
+
onKeyDown: (e: any) => {
|
|
314
314
|
if (e.key === 'Escape') {
|
|
315
315
|
e.preventDefault();
|
|
316
316
|
handleClose();
|
|
@@ -403,43 +403,44 @@ export const BottomSheetFlatList = GorhomBottomSheetFlatList;
|
|
|
403
403
|
export const BottomSheetSectionList = GorhomBottomSheetSectionList;
|
|
404
404
|
|
|
405
405
|
// Configure cssInterop for all Gorhom components to support className
|
|
406
|
-
cssInterop(GorhomBottomSheet, {
|
|
406
|
+
(cssInterop as any)(GorhomBottomSheet, {
|
|
407
407
|
className: 'style',
|
|
408
408
|
backgroundClassName: 'backgroundStyle',
|
|
409
409
|
handleIndicatorClassName: 'handleIndicatorStyle',
|
|
410
410
|
});
|
|
411
411
|
|
|
412
|
-
cssInterop(GorhomBottomSheetBackdrop, {
|
|
412
|
+
(cssInterop as any)(GorhomBottomSheetBackdrop, {
|
|
413
413
|
className: 'style',
|
|
414
414
|
});
|
|
415
415
|
|
|
416
|
-
cssInterop(GorhomBottomSheetHandle, {
|
|
416
|
+
(cssInterop as any)(GorhomBottomSheetHandle, {
|
|
417
417
|
className: 'style',
|
|
418
418
|
});
|
|
419
419
|
|
|
420
|
-
cssInterop(GorhomBottomSheetView, {
|
|
420
|
+
(cssInterop as any)(GorhomBottomSheetView, {
|
|
421
421
|
className: 'style',
|
|
422
422
|
});
|
|
423
423
|
|
|
424
|
-
cssInterop(GorhomBottomSheetFooter, {
|
|
424
|
+
(cssInterop as any)(GorhomBottomSheetFooter, {
|
|
425
425
|
className: 'style',
|
|
426
426
|
});
|
|
427
427
|
|
|
428
|
-
cssInterop(GorhomBottomSheetScrollView, {
|
|
428
|
+
(cssInterop as any)(GorhomBottomSheetScrollView, {
|
|
429
429
|
className: 'style',
|
|
430
430
|
contentContainerClassName: 'contentContainerStyle',
|
|
431
431
|
});
|
|
432
432
|
|
|
433
|
-
|
|
433
|
+
// @ts-ignore
|
|
434
|
+
(cssInterop as any)(GorhomBottomSheetFlatList, {
|
|
434
435
|
className: 'style',
|
|
435
436
|
contentContainerClassName: 'contentContainerStyle',
|
|
436
437
|
});
|
|
437
438
|
|
|
438
|
-
cssInterop(GorhomBottomSheetSectionList, {
|
|
439
|
+
(cssInterop as any)(GorhomBottomSheetSectionList, {
|
|
439
440
|
className: 'style',
|
|
440
441
|
contentContainerClassName: 'contentContainerStyle',
|
|
441
442
|
});
|
|
442
443
|
|
|
443
|
-
cssInterop(GorhomBottomSheetInput, {
|
|
444
|
+
(cssInterop as any)(GorhomBottomSheetInput, {
|
|
444
445
|
className: 'style',
|
|
445
446
|
});
|
|
@@ -6,7 +6,10 @@ import { boxStyle } from './styles';
|
|
|
6
6
|
|
|
7
7
|
type IBoxProps = ViewProps & VariantProps<typeof boxStyle> & { className?: string };
|
|
8
8
|
|
|
9
|
-
const Box = React.forwardRef<React.ComponentRef<typeof View>, IBoxProps>(function Box(
|
|
9
|
+
const Box: any = React.forwardRef<React.ComponentRef<typeof View>, IBoxProps>(function Box(
|
|
10
|
+
{ className, ...props },
|
|
11
|
+
ref,
|
|
12
|
+
) {
|
|
10
13
|
return <View ref={ref} {...props} className={boxStyle({ class: className })} />;
|
|
11
14
|
});
|
|
12
15
|
|
|
@@ -26,9 +26,9 @@ import {
|
|
|
26
26
|
import { Menu, MenuItem, MenuItemLabel } from '../menu';
|
|
27
27
|
|
|
28
28
|
// Apply cssInterop for NativeWind support
|
|
29
|
-
cssInterop(View, { className: 'style' });
|
|
30
|
-
cssInterop(Text, { className: 'style' });
|
|
31
|
-
cssInterop(Pressable, { className: 'style' });
|
|
29
|
+
(cssInterop as any)(View, { className: 'style' });
|
|
30
|
+
(cssInterop as any)(Text, { className: 'style' });
|
|
31
|
+
(cssInterop as any)(Pressable, { className: 'style' });
|
|
32
32
|
|
|
33
33
|
// Styled Root Component
|
|
34
34
|
const CalendarRoot = React.forwardRef<
|
|
@@ -360,7 +360,7 @@ const CalendarComponent = React.forwardRef<React.ElementRef<typeof View>, Calend
|
|
|
360
360
|
CalendarComponent.displayName = 'Calendar';
|
|
361
361
|
|
|
362
362
|
// Export components
|
|
363
|
-
export const Calendar = CalendarComponent;
|
|
363
|
+
export const Calendar: any = CalendarComponent;
|
|
364
364
|
export const CalendarHeader = UICalendar.Header;
|
|
365
365
|
export const CalendarHeaderPrevButton = UICalendar.HeaderPrevButton;
|
|
366
366
|
export const CalendarHeaderNextButton = UICalendar.HeaderNextButton;
|
|
@@ -10,7 +10,7 @@ type ICardProps = React.ComponentPropsWithoutRef<typeof View> &
|
|
|
10
10
|
size?: 'default' | 'sm';
|
|
11
11
|
};
|
|
12
12
|
|
|
13
|
-
const Card = React.forwardRef<React.ComponentRef<typeof View>, ICardProps>(function Card(
|
|
13
|
+
const Card: any = React.forwardRef<React.ComponentRef<typeof View>, ICardProps>(function Card(
|
|
14
14
|
{ className, size = 'default', ...props },
|
|
15
15
|
ref,
|
|
16
16
|
) {
|
|
@@ -5,7 +5,7 @@ import type { VariantProps } from '@gluestack-ui/utils/nativewind-utils';
|
|
|
5
5
|
|
|
6
6
|
type ICenterProps = ViewProps & VariantProps<typeof centerStyle>;
|
|
7
7
|
|
|
8
|
-
const Center = React.forwardRef<React.ComponentRef<typeof View>, ICenterProps>(function Center(
|
|
8
|
+
const Center: any = React.forwardRef<React.ComponentRef<typeof View>, ICenterProps>(function Center(
|
|
9
9
|
{ className, ...props },
|
|
10
10
|
ref,
|
|
11
11
|
) {
|
|
@@ -30,7 +30,7 @@ const IconWrapper = React.forwardRef<React.ComponentRef<typeof UIIcon>, React.Co
|
|
|
30
30
|
);
|
|
31
31
|
|
|
32
32
|
const SCOPE = 'CHECKBOX';
|
|
33
|
-
const UICheckbox = createCheckbox({
|
|
33
|
+
const UICheckbox: any = createCheckbox({
|
|
34
34
|
// @ts-expect-error : internal implementation for r-19/react-native-web
|
|
35
35
|
Root: Platform.OS === 'web' ? withStyleContext(View, SCOPE) : withStyleContext(Pressable, SCOPE),
|
|
36
36
|
Group: View,
|
|
@@ -39,7 +39,7 @@ const UICheckbox = createCheckbox({
|
|
|
39
39
|
Indicator: IndicatorWrapper,
|
|
40
40
|
});
|
|
41
41
|
|
|
42
|
-
cssInterop(UIIcon, {
|
|
42
|
+
(cssInterop as any)(UIIcon, {
|
|
43
43
|
className: {
|
|
44
44
|
target: 'style',
|
|
45
45
|
nativeStyleToProp: {
|
|
@@ -82,15 +82,16 @@ const Checkbox = React.forwardRef<React.ComponentRef<typeof UICheckbox>, ICheckb
|
|
|
82
82
|
type ICheckboxIndicatorProps = React.ComponentPropsWithoutRef<typeof UICheckbox.Indicator> &
|
|
83
83
|
VariantProps<typeof checkboxIndicatorStyle>;
|
|
84
84
|
|
|
85
|
-
const CheckboxIndicator = React.forwardRef<
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
)
|
|
85
|
+
const CheckboxIndicator: any = React.forwardRef<
|
|
86
|
+
React.ComponentRef<typeof UICheckbox.Indicator>,
|
|
87
|
+
ICheckboxIndicatorProps
|
|
88
|
+
>(function CheckboxIndicator({ className, ...props }, ref) {
|
|
89
|
+
return <UICheckbox.Indicator className={checkboxIndicatorStyle({ class: className })} {...props} ref={ref} />;
|
|
90
|
+
});
|
|
90
91
|
|
|
91
92
|
type ICheckboxLabelProps = React.ComponentPropsWithoutRef<typeof UICheckbox.Label> &
|
|
92
93
|
VariantProps<typeof checkboxLabelStyle>;
|
|
93
|
-
const CheckboxLabel = React.forwardRef<React.ComponentRef<typeof UICheckbox.Label>, ICheckboxLabelProps>(
|
|
94
|
+
const CheckboxLabel: any = React.forwardRef<React.ComponentRef<typeof UICheckbox.Label>, ICheckboxLabelProps>(
|
|
94
95
|
function CheckboxLabel({ className, ...props }, ref) {
|
|
95
96
|
return <UICheckbox.Label className={checkboxLabelStyle({ class: className })} {...props} ref={ref} />;
|
|
96
97
|
},
|
|
@@ -50,13 +50,13 @@ const UIDateTimePicker = createDateTimePicker({
|
|
|
50
50
|
Icon: UIIcon,
|
|
51
51
|
});
|
|
52
52
|
|
|
53
|
-
cssInterop(UIDateTimePicker, { className: 'style' });
|
|
54
|
-
cssInterop(UIDateTimePicker.Input, {
|
|
53
|
+
(cssInterop as any)(UIDateTimePicker, { className: 'style' });
|
|
54
|
+
(cssInterop as any)(UIDateTimePicker.Input, {
|
|
55
55
|
className: { target: 'style', nativeStyleToProp: { textAlign: true } },
|
|
56
56
|
});
|
|
57
|
-
cssInterop(DateTimePickerTriggerWrapper, { className: 'style' });
|
|
57
|
+
(cssInterop as any)(DateTimePickerTriggerWrapper, { className: 'style' });
|
|
58
58
|
|
|
59
|
-
cssInterop(PrimitiveIcon, {
|
|
59
|
+
(cssInterop as any)(PrimitiveIcon, {
|
|
60
60
|
className: {
|
|
61
61
|
target: 'style',
|
|
62
62
|
nativeStyleToProp: {
|
|
@@ -0,0 +1,197 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
|
|
3
|
+
import React, { useState, useCallback, useMemo } from 'react';
|
|
4
|
+
import { View, Pressable, TextInput } from 'react-native';
|
|
5
|
+
import { cssInterop } from 'nativewind';
|
|
6
|
+
import { Calendar } from '../calendar';
|
|
7
|
+
import { PrimitiveIcon } from '@gluestack-ui/core/icon/creator';
|
|
8
|
+
|
|
9
|
+
// Apply cssInterop for Tailwind support
|
|
10
|
+
(cssInterop as any)(View, {
|
|
11
|
+
className: {
|
|
12
|
+
target: 'style',
|
|
13
|
+
},
|
|
14
|
+
});
|
|
15
|
+
|
|
16
|
+
type DateTimePickerMode = 'date' | 'time' | 'datetime';
|
|
17
|
+
|
|
18
|
+
interface DateTimePickerProps {
|
|
19
|
+
value?: Date;
|
|
20
|
+
onChange?: (date: Date | undefined) => void;
|
|
21
|
+
mode?: DateTimePickerMode;
|
|
22
|
+
minimumDate?: Date;
|
|
23
|
+
maximumDate?: Date;
|
|
24
|
+
disabled?: boolean;
|
|
25
|
+
placeholder?: string;
|
|
26
|
+
className?: string;
|
|
27
|
+
style?: any;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
const DateTimePicker: any = React.forwardRef<React.ComponentRef<typeof View>, DateTimePickerProps>(
|
|
31
|
+
function DateTimePicker(
|
|
32
|
+
{
|
|
33
|
+
value,
|
|
34
|
+
onChange,
|
|
35
|
+
mode = 'datetime',
|
|
36
|
+
minimumDate,
|
|
37
|
+
maximumDate,
|
|
38
|
+
disabled,
|
|
39
|
+
placeholder = 'Select date/time',
|
|
40
|
+
className,
|
|
41
|
+
style,
|
|
42
|
+
},
|
|
43
|
+
ref,
|
|
44
|
+
) {
|
|
45
|
+
const [isOpen, setIsOpen] = useState(false);
|
|
46
|
+
const [tempDate, setTempDate] = useState<Date | undefined>(value);
|
|
47
|
+
const [tempTime, setTempTime] = useState(value ? formatTimeForInput(value) : '');
|
|
48
|
+
|
|
49
|
+
const handleDateSelect = useCallback(
|
|
50
|
+
(date: Date) => {
|
|
51
|
+
setTempDate(date);
|
|
52
|
+
if (mode === 'date') {
|
|
53
|
+
onChange?.(date);
|
|
54
|
+
setIsOpen(false);
|
|
55
|
+
}
|
|
56
|
+
},
|
|
57
|
+
[mode, onChange],
|
|
58
|
+
);
|
|
59
|
+
|
|
60
|
+
const handleTimeChange = useCallback((e: React.ChangeEvent<HTMLInputElement>) => {
|
|
61
|
+
setTempTime(e.target.value);
|
|
62
|
+
}, []);
|
|
63
|
+
|
|
64
|
+
const handleConfirm = useCallback(() => {
|
|
65
|
+
if (mode === 'time' && tempTime) {
|
|
66
|
+
const [hours, minutes] = tempTime.split(':').map(Number);
|
|
67
|
+
const newDate = new Date();
|
|
68
|
+
newDate.setHours(hours, minutes, 0, 0);
|
|
69
|
+
onChange?.(newDate);
|
|
70
|
+
} else if (tempDate) {
|
|
71
|
+
if (mode === 'datetime' && tempTime) {
|
|
72
|
+
const [hours, minutes] = tempTime.split(':').map(Number);
|
|
73
|
+
const combinedDate = new Date(tempDate);
|
|
74
|
+
combinedDate.setHours(hours, minutes, 0, 0);
|
|
75
|
+
onChange?.(combinedDate);
|
|
76
|
+
} else {
|
|
77
|
+
onChange?.(tempDate);
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
setIsOpen(false);
|
|
81
|
+
}, [mode, tempDate, tempTime, onChange]);
|
|
82
|
+
|
|
83
|
+
const handleCancel = useCallback(() => {
|
|
84
|
+
setTempDate(value);
|
|
85
|
+
setTempTime(value ? formatTimeForInput(value) : '');
|
|
86
|
+
setIsOpen(false);
|
|
87
|
+
}, [value]);
|
|
88
|
+
|
|
89
|
+
const displayValue = useMemo(() => {
|
|
90
|
+
if (!value) return '';
|
|
91
|
+
if (mode === 'time') return formatTimeForInput(value);
|
|
92
|
+
if (mode === 'date') return formatDate(value);
|
|
93
|
+
return `${formatDate(value)} ${formatTimeForInput(value)}`;
|
|
94
|
+
}, [value, mode]);
|
|
95
|
+
|
|
96
|
+
return (
|
|
97
|
+
<View ref={ref} className={`relative ${className || ''}`} style={style}>
|
|
98
|
+
{/* Trigger Input */}
|
|
99
|
+
<Pressable onPress={() => !disabled && setIsOpen(true)} className="w-full">
|
|
100
|
+
<View className="flex-row items-center border border-border rounded-md px-3 py-2 bg-background">
|
|
101
|
+
<TextInput
|
|
102
|
+
value={displayValue || placeholder}
|
|
103
|
+
editable={false}
|
|
104
|
+
className="flex-1 text-foreground text-sm"
|
|
105
|
+
pointerEvents="none"
|
|
106
|
+
/>
|
|
107
|
+
</View>
|
|
108
|
+
</Pressable>
|
|
109
|
+
|
|
110
|
+
{/* Modal/Dropdown */}
|
|
111
|
+
{isOpen && (
|
|
112
|
+
<View className="absolute top-full left-0 right-0 mt-2 bg-background border border-border rounded-lg shadow-lg p-4 z-50">
|
|
113
|
+
{/* Date Picker */}
|
|
114
|
+
{(mode === 'date' || mode === 'datetime') && (
|
|
115
|
+
<View className="mb-4">
|
|
116
|
+
<Calendar
|
|
117
|
+
mode="single"
|
|
118
|
+
value={tempDate}
|
|
119
|
+
onValueChange={handleDateSelect}
|
|
120
|
+
minimumDate={minimumDate}
|
|
121
|
+
maximumDate={maximumDate}
|
|
122
|
+
/>
|
|
123
|
+
</View>
|
|
124
|
+
)}
|
|
125
|
+
|
|
126
|
+
{/* Time Picker */}
|
|
127
|
+
{(mode === 'time' || mode === 'datetime') && (
|
|
128
|
+
<View className="mb-4">
|
|
129
|
+
<input
|
|
130
|
+
type="time"
|
|
131
|
+
value={tempTime}
|
|
132
|
+
onChange={handleTimeChange}
|
|
133
|
+
className="w-full p-2 border border-border rounded bg-background text-foreground text-sm"
|
|
134
|
+
aria-label="Time"
|
|
135
|
+
/>
|
|
136
|
+
</View>
|
|
137
|
+
)}
|
|
138
|
+
|
|
139
|
+
{/* Actions */}
|
|
140
|
+
<View className="flex-row justify-end gap-2">
|
|
141
|
+
<Pressable onPress={handleCancel} className="px-4 py-2 rounded bg-muted">
|
|
142
|
+
<span className="text-muted-foreground text-sm">Cancel</span>
|
|
143
|
+
</Pressable>
|
|
144
|
+
<Pressable onPress={handleConfirm} className="px-4 py-2 rounded bg-primary">
|
|
145
|
+
<span className="text-primary-foreground text-sm">Confirm</span>
|
|
146
|
+
</Pressable>
|
|
147
|
+
</View>
|
|
148
|
+
</View>
|
|
149
|
+
)}
|
|
150
|
+
</View>
|
|
151
|
+
);
|
|
152
|
+
},
|
|
153
|
+
);
|
|
154
|
+
|
|
155
|
+
// Helper functions
|
|
156
|
+
function formatDate(date: Date): string {
|
|
157
|
+
return date.toLocaleDateString('en-US', {
|
|
158
|
+
year: 'numeric',
|
|
159
|
+
month: 'short',
|
|
160
|
+
day: 'numeric',
|
|
161
|
+
});
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
function formatTimeForInput(date: Date): string {
|
|
165
|
+
const hours = date.getHours().toString().padStart(2, '0');
|
|
166
|
+
const minutes = date.getMinutes().toString().padStart(2, '0');
|
|
167
|
+
return `${hours}:${minutes}`;
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
// Export additional components (simplified versions)
|
|
171
|
+
const DateTimePickerTrigger: any = React.forwardRef<
|
|
172
|
+
React.ComponentRef<typeof Pressable>,
|
|
173
|
+
React.ComponentProps<typeof Pressable>
|
|
174
|
+
>(function DateTimePickerTrigger({ children, ...props }, ref) {
|
|
175
|
+
return (
|
|
176
|
+
<Pressable ref={ref} {...props}>
|
|
177
|
+
{children}
|
|
178
|
+
</Pressable>
|
|
179
|
+
);
|
|
180
|
+
});
|
|
181
|
+
|
|
182
|
+
const DateTimePickerInput: any = React.forwardRef<
|
|
183
|
+
React.ComponentRef<typeof TextInput>,
|
|
184
|
+
React.ComponentProps<typeof TextInput>
|
|
185
|
+
>(function DateTimePickerInput(props, ref) {
|
|
186
|
+
return <TextInput ref={ref} {...props} />;
|
|
187
|
+
});
|
|
188
|
+
|
|
189
|
+
const DateTimePickerIcon = React.forwardRef<
|
|
190
|
+
React.ComponentRef<typeof PrimitiveIcon>,
|
|
191
|
+
React.ComponentProps<typeof PrimitiveIcon>
|
|
192
|
+
>(function DateTimePickerIcon(props, ref) {
|
|
193
|
+
return <PrimitiveIcon ref={ref} {...props} />;
|
|
194
|
+
});
|
|
195
|
+
|
|
196
|
+
export { DateTimePicker, DateTimePickerTrigger, DateTimePickerInput, DateTimePickerIcon };
|
|
197
|
+
export type { DateTimePickerProps, DateTimePickerMode };
|
|
@@ -16,7 +16,7 @@ const dividerStyle = tva({
|
|
|
16
16
|
|
|
17
17
|
type IUIDividerProps = React.ComponentPropsWithoutRef<typeof View> & VariantProps<typeof dividerStyle>;
|
|
18
18
|
|
|
19
|
-
const Divider = React.forwardRef<React.ComponentRef<typeof View>, IUIDividerProps>(function Divider(
|
|
19
|
+
const Divider: any = React.forwardRef<React.ComponentRef<typeof View>, IUIDividerProps>(function Divider(
|
|
20
20
|
{ className, orientation = 'horizontal', ...props },
|
|
21
21
|
ref,
|
|
22
22
|
) {
|
|
@@ -35,8 +35,8 @@ const UIDrawer = createDrawer({
|
|
|
35
35
|
Header: View,
|
|
36
36
|
});
|
|
37
37
|
|
|
38
|
-
cssInterop(AnimatedPressable, { className: 'style' });
|
|
39
|
-
cssInterop(AnimatedView, { className: 'style' });
|
|
38
|
+
(cssInterop as any)(AnimatedPressable, { className: 'style' });
|
|
39
|
+
(cssInterop as any)(AnimatedView, { className: 'style' });
|
|
40
40
|
const drawerStyle = tva({
|
|
41
41
|
base: 'w-full h-full web:pointer-events-none relative',
|
|
42
42
|
variants: {
|
|
@@ -141,7 +141,7 @@ const formControlLabelAstrickStyle = tva({
|
|
|
141
141
|
type IFormControlLabelAstrickProps = React.ComponentPropsWithoutRef<typeof Text> &
|
|
142
142
|
VariantProps<typeof formControlLabelAstrickStyle>;
|
|
143
143
|
|
|
144
|
-
const FormControlLabelAstrick = React.forwardRef<React.ComponentRef<typeof Text>, IFormControlLabelAstrickProps>(
|
|
144
|
+
const FormControlLabelAstrick: any = React.forwardRef<React.ComponentRef<typeof Text>, IFormControlLabelAstrickProps>(
|
|
145
145
|
function FormControlLabelAstrick({ className, ...props }, ref) {
|
|
146
146
|
return (
|
|
147
147
|
<Text
|
|
@@ -155,7 +155,7 @@ const FormControlLabelAstrick = React.forwardRef<React.ComponentRef<typeof Text>
|
|
|
155
155
|
},
|
|
156
156
|
);
|
|
157
157
|
|
|
158
|
-
export const UIFormControl = createFormControl({
|
|
158
|
+
export const UIFormControl: any = createFormControl({
|
|
159
159
|
Root: withStyleContext(View, SCOPE),
|
|
160
160
|
Error: View,
|
|
161
161
|
ErrorText: Text,
|
|
@@ -167,7 +167,7 @@ export const UIFormControl = createFormControl({
|
|
|
167
167
|
HelperText: Text,
|
|
168
168
|
});
|
|
169
169
|
|
|
170
|
-
cssInterop(UIIcon, {
|
|
170
|
+
(cssInterop as any)(UIIcon, {
|
|
171
171
|
className: {
|
|
172
172
|
target: 'style',
|
|
173
173
|
nativeStyleToProp: {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Generated by design
|
|
1
|
+
// Generated by flipova-design gen -- do not edit by hand.
|
|
2
2
|
// Source of truth: design/tokens.xml + design/themes.xml
|
|
3
3
|
// Regenerate with: npm run design:gen
|
|
4
4
|
import { vars } from 'nativewind';
|
|
@@ -63,77 +63,16 @@ export const colors = {
|
|
|
63
63
|
'--info': '14 165 233',
|
|
64
64
|
'--info-foreground': '255 255 255',
|
|
65
65
|
},
|
|
66
|
-
'spring-light': {
|
|
67
|
-
'--background': '240 253 244',
|
|
68
|
-
'--foreground': '20 83 45',
|
|
69
|
-
'--card': '255 255 255',
|
|
70
|
-
'--card-foreground': '20 83 45',
|
|
71
|
-
'--popover': '255 255 255',
|
|
72
|
-
'--popover-foreground': '20 83 45',
|
|
73
|
-
'--primary': '22 163 74',
|
|
74
|
-
'--primary-foreground': '255 255 255',
|
|
75
|
-
'--secondary': '34 197 94',
|
|
76
|
-
'--secondary-foreground': '255 255 255',
|
|
77
|
-
'--muted': '220 252 231',
|
|
78
|
-
'--muted-foreground': '21 128 61',
|
|
79
|
-
'--accent': '187 247 208',
|
|
80
|
-
'--accent-foreground': '20 83 45',
|
|
81
|
-
'--destructive': '220 38 38',
|
|
82
|
-
'--destructive-foreground': '255 255 255',
|
|
83
|
-
'--border': '187 247 208',
|
|
84
|
-
'--input': '187 247 208',
|
|
85
|
-
'--ring': '74 222 128',
|
|
86
|
-
'--success': '22 163 74',
|
|
87
|
-
'--success-foreground': '255 255 255',
|
|
88
|
-
'--warning': '217 119 6',
|
|
89
|
-
'--warning-foreground': '255 255 255',
|
|
90
|
-
'--error': '220 38 38',
|
|
91
|
-
'--error-foreground': '255 255 255',
|
|
92
|
-
'--info': '2 132 199',
|
|
93
|
-
'--info-foreground': '255 255 255',
|
|
94
|
-
},
|
|
95
|
-
'spring-dark': {
|
|
96
|
-
'--background': '5 46 22',
|
|
97
|
-
'--foreground': '240 253 244',
|
|
98
|
-
'--card': '20 83 45',
|
|
99
|
-
'--card-foreground': '240 253 244',
|
|
100
|
-
'--popover': '20 83 45',
|
|
101
|
-
'--popover-foreground': '240 253 244',
|
|
102
|
-
'--primary': '74 222 128',
|
|
103
|
-
'--primary-foreground': '5 46 22',
|
|
104
|
-
'--secondary': '134 239 172',
|
|
105
|
-
'--secondary-foreground': '5 46 22',
|
|
106
|
-
'--muted': '20 83 45',
|
|
107
|
-
'--muted-foreground': '187 247 208',
|
|
108
|
-
'--accent': '22 101 52',
|
|
109
|
-
'--accent-foreground': '240 253 244',
|
|
110
|
-
'--destructive': '239 68 68',
|
|
111
|
-
'--destructive-foreground': '255 255 255',
|
|
112
|
-
'--border': '22 101 52',
|
|
113
|
-
'--input': '22 101 52',
|
|
114
|
-
'--ring': '134 239 172',
|
|
115
|
-
'--success': '74 222 128',
|
|
116
|
-
'--success-foreground': '5 46 22',
|
|
117
|
-
'--warning': '251 191 36',
|
|
118
|
-
'--warning-foreground': '5 46 22',
|
|
119
|
-
'--error': '248 113 113',
|
|
120
|
-
'--error-foreground': '5 46 22',
|
|
121
|
-
'--info': '56 189 248',
|
|
122
|
-
'--info-foreground': '5 46 22',
|
|
123
|
-
},
|
|
124
66
|
};
|
|
125
67
|
|
|
126
68
|
// Config for nativewind vars() - used by the provider
|
|
127
69
|
export const config = {
|
|
128
70
|
light: vars(colors['light']),
|
|
129
71
|
dark: vars(colors['dark']),
|
|
130
|
-
'spring-light': vars(colors['spring-light']),
|
|
131
|
-
'spring-dark': vars(colors['spring-dark']),
|
|
132
72
|
};
|
|
133
73
|
|
|
134
74
|
// Theme variants: variant -> mode -> theme id, from the `variant` attribute in
|
|
135
75
|
// design/themes.xml. `default` holds the base light/dark pair.
|
|
136
76
|
export const variants = {
|
|
137
77
|
default: { dark: 'dark', light: 'light' },
|
|
138
|
-
spring: { dark: 'spring-dark', light: 'spring-light' },
|
|
139
78
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Generated by design
|
|
1
|
+
// Generated by flipova-design gen -- do not edit by hand.
|
|
2
2
|
// Source of truth: design/tokens.xml + design/themes.xml
|
|
3
3
|
// Tailwind/nativewind theme, consumed by tailwind.config.js.
|
|
4
4
|
// Regenerate with: npm run design:gen
|
|
@@ -89,7 +89,7 @@ type IGridProps = ViewProps &
|
|
|
89
89
|
className: string;
|
|
90
90
|
};
|
|
91
91
|
};
|
|
92
|
-
const Grid = forwardRef<React.ComponentRef<typeof View>, IGridProps>(function Grid(
|
|
92
|
+
const Grid: any = forwardRef<React.ComponentRef<typeof View>, IGridProps>(function Grid(
|
|
93
93
|
{ className, _extra, children, ...props },
|
|
94
94
|
ref,
|
|
95
95
|
) {
|
|
@@ -162,7 +162,7 @@ const Grid = forwardRef<React.ComponentRef<typeof View>, IGridProps>(function Gr
|
|
|
162
162
|
</GridContext.Provider>
|
|
163
163
|
);
|
|
164
164
|
});
|
|
165
|
-
cssInterop(Grid, {
|
|
165
|
+
(cssInterop as any)(Grid, {
|
|
166
166
|
className: {
|
|
167
167
|
target: 'style',
|
|
168
168
|
nativeStyleToProp: {
|
|
@@ -188,7 +188,7 @@ type IGridItemProps = ViewProps &
|
|
|
188
188
|
className: string;
|
|
189
189
|
};
|
|
190
190
|
};
|
|
191
|
-
const GridItem = forwardRef<React.ComponentRef<typeof View>, IGridItemProps>(function GridItem(
|
|
191
|
+
const GridItem: any = forwardRef<React.ComponentRef<typeof View>, IGridItemProps>(function GridItem(
|
|
192
192
|
{ className, _extra, ...props },
|
|
193
193
|
ref,
|
|
194
194
|
) {
|
|
@@ -9,12 +9,12 @@ type IHeadingProps = VariantProps<typeof headingStyle> &
|
|
|
9
9
|
as?: React.ElementType;
|
|
10
10
|
};
|
|
11
11
|
|
|
12
|
-
cssInterop(H1, { className: 'style' });
|
|
13
|
-
cssInterop(H2, { className: 'style' });
|
|
14
|
-
cssInterop(H3, { className: 'style' });
|
|
15
|
-
cssInterop(H4, { className: 'style' });
|
|
16
|
-
cssInterop(H5, { className: 'style' });
|
|
17
|
-
cssInterop(H6, { className: 'style' });
|
|
12
|
+
(cssInterop as any)(H1, { className: 'style' });
|
|
13
|
+
(cssInterop as any)(H2, { className: 'style' });
|
|
14
|
+
(cssInterop as any)(H3, { className: 'style' });
|
|
15
|
+
(cssInterop as any)(H4, { className: 'style' });
|
|
16
|
+
(cssInterop as any)(H5, { className: 'style' });
|
|
17
|
+
(cssInterop as any)(H6, { className: 'style' });
|
|
18
18
|
|
|
19
19
|
const MappedHeading = memo(
|
|
20
20
|
forwardRef<React.ComponentRef<typeof H1>, IHeadingProps>(function MappedHeading(
|
|
@@ -162,7 +162,7 @@ const MappedHeading = memo(
|
|
|
162
162
|
}),
|
|
163
163
|
);
|
|
164
164
|
|
|
165
|
-
const Heading = memo(
|
|
165
|
+
const Heading: any = memo(
|
|
166
166
|
forwardRef<React.ComponentRef<typeof H1>, IHeadingProps>(function Heading(
|
|
167
167
|
{ className, size = 'lg', as: AsComp, ...props },
|
|
168
168
|
ref,
|
|
@@ -6,7 +6,7 @@ import { hstackStyle } from './styles';
|
|
|
6
6
|
|
|
7
7
|
type IHStackProps = ViewProps & VariantProps<typeof hstackStyle>;
|
|
8
8
|
|
|
9
|
-
const HStack = React.forwardRef<React.ComponentRef<typeof View>, IHStackProps>(function HStack(
|
|
9
|
+
const HStack: any = React.forwardRef<React.ComponentRef<typeof View>, IHStackProps>(function HStack(
|
|
10
10
|
{ className, space, reversed, ...props },
|
|
11
11
|
ref,
|
|
12
12
|
) {
|
|
@@ -33,7 +33,6 @@ const Image = React.forwardRef<React.ComponentRef<typeof UIImage>, ImageProps &
|
|
|
33
33
|
className={imageStyle({ size, class: className })}
|
|
34
34
|
{...props}
|
|
35
35
|
ref={ref}
|
|
36
|
-
// @ts-expect-error : web only
|
|
37
36
|
style={Platform.OS === 'web' ? { height: 'revert-layer', width: 'revert-layer' } : undefined}
|
|
38
37
|
/>
|
|
39
38
|
);
|