@flipova/foundation 2.4.3 → 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 +142 -38
- 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
|
@@ -20,7 +20,7 @@ import { Overlay } from '@gluestack-ui/core/overlay/creator';
|
|
|
20
20
|
const { width: SCREEN_WIDTH, height: SCREEN_HEIGHT } = Dimensions.get('window');
|
|
21
21
|
|
|
22
22
|
const AnimatedView = Animated.createAnimatedComponent(View);
|
|
23
|
-
const AnimatedImage = Animated.createAnimatedComponent(RNImage);
|
|
23
|
+
const AnimatedImage = Animated.createAnimatedComponent(RNImage) as any;
|
|
24
24
|
|
|
25
25
|
const imageViewerStyle = tva({
|
|
26
26
|
base: 'w-full',
|
|
@@ -306,7 +306,7 @@ const ZoomableImage = React.memo(
|
|
|
306
306
|
source={{ uri: image.url }}
|
|
307
307
|
alt={image.alt}
|
|
308
308
|
resizeMode="contain"
|
|
309
|
-
style={[{ width: SCREEN_WIDTH, height: SCREEN_HEIGHT * 0.8 }, animatedStyle]}
|
|
309
|
+
style={[{ width: SCREEN_WIDTH, height: SCREEN_HEIGHT * 0.8 }, animatedStyle] as any}
|
|
310
310
|
/>
|
|
311
311
|
</GestureDetector>
|
|
312
312
|
);
|
|
@@ -454,7 +454,7 @@ const SlidableImageGallery = React.memo(function SlidableImageGallery({
|
|
|
454
454
|
});
|
|
455
455
|
|
|
456
456
|
// Main ImageViewer Component
|
|
457
|
-
const ImageViewer = React.forwardRef<View
|
|
457
|
+
const ImageViewer: any = React.forwardRef<React.ElementRef<typeof View>, ImageViewerProps>(function ImageViewer(
|
|
458
458
|
{ images, defaultOpen = false, isOpen: controlledIsOpen, onOpenChange, onIndexChange, initialIndex = 0, children },
|
|
459
459
|
ref,
|
|
460
460
|
) {
|
|
@@ -511,7 +511,7 @@ const ImageViewer = React.forwardRef<View, ImageViewerProps>(function ImageViewe
|
|
|
511
511
|
});
|
|
512
512
|
|
|
513
513
|
// Trigger Component
|
|
514
|
-
const ImageViewerTrigger = React.forwardRef<React.ElementRef<typeof Pressable>, ImageViewerTriggerProps>(
|
|
514
|
+
const ImageViewerTrigger: any = React.forwardRef<React.ElementRef<typeof Pressable>, ImageViewerTriggerProps>(
|
|
515
515
|
function ImageViewerTrigger({ children, onPress, ...props }, ref) {
|
|
516
516
|
const { open } = useImageViewerContext();
|
|
517
517
|
|
|
@@ -530,64 +530,63 @@ const ImageViewerTrigger = React.forwardRef<React.ElementRef<typeof Pressable>,
|
|
|
530
530
|
|
|
531
531
|
// Content Component (Uses gluestack Overlay for proper portal rendering)
|
|
532
532
|
// Context provider is placed INSIDE the Overlay so portaled content has access
|
|
533
|
-
const ImageViewerContent = React.forwardRef<View
|
|
534
|
-
{ children },
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
const { images, currentIndex, isOpen, close, goNext, goPrevious } = context;
|
|
539
|
-
const currentImage = images[currentIndex];
|
|
533
|
+
const ImageViewerContent: any = React.forwardRef<React.ElementRef<typeof View>, { children?: React.ReactNode }>(
|
|
534
|
+
function ImageViewerContent({ children }, ref) {
|
|
535
|
+
const context = useImageViewerContext();
|
|
536
|
+
const { images, currentIndex, isOpen, close, goNext, goPrevious } = context;
|
|
537
|
+
const currentImage = images[currentIndex];
|
|
540
538
|
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
style={{
|
|
550
|
-
display: 'flex',
|
|
551
|
-
justifyContent: 'center',
|
|
552
|
-
alignItems: 'center',
|
|
553
|
-
}}
|
|
554
|
-
>
|
|
555
|
-
<View
|
|
556
|
-
ref={ref}
|
|
557
|
-
className={imageViewerContentStyle({})}
|
|
539
|
+
return (
|
|
540
|
+
<Overlay isOpen={isOpen} onRequestClose={close} isKeyboardDismissable={true}>
|
|
541
|
+
<ImageViewerContext.Provider value={context}>
|
|
542
|
+
<GestureHandlerRootView style={{ flex: 1 }}>
|
|
543
|
+
<AnimatedView
|
|
544
|
+
entering={FadeIn.duration(300).easing(Easing.out(Easing.ease))}
|
|
545
|
+
exiting={FadeOut.duration(200).easing(Easing.in(Easing.ease))}
|
|
546
|
+
className={imageViewerModalStyle({})}
|
|
558
547
|
style={{
|
|
559
|
-
width: '100%',
|
|
560
|
-
height: '100%',
|
|
561
548
|
display: 'flex',
|
|
562
549
|
justifyContent: 'center',
|
|
563
550
|
alignItems: 'center',
|
|
564
551
|
}}
|
|
565
552
|
>
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
}
|
|
553
|
+
<View
|
|
554
|
+
ref={ref}
|
|
555
|
+
className={imageViewerContentStyle({})}
|
|
556
|
+
style={{
|
|
557
|
+
width: '100%',
|
|
558
|
+
height: '100%',
|
|
559
|
+
display: 'flex',
|
|
560
|
+
justifyContent: 'center',
|
|
561
|
+
alignItems: 'center',
|
|
562
|
+
}}
|
|
563
|
+
>
|
|
564
|
+
{currentImage && (
|
|
565
|
+
<SlidableImageGallery
|
|
566
|
+
images={images}
|
|
567
|
+
currentIndex={currentIndex}
|
|
568
|
+
onIndexChange={(newIndex) => {
|
|
569
|
+
if (newIndex > currentIndex) {
|
|
570
|
+
goNext();
|
|
571
|
+
} else if (newIndex < currentIndex) {
|
|
572
|
+
goPrevious();
|
|
573
|
+
}
|
|
574
|
+
}}
|
|
575
|
+
onDismiss={close}
|
|
576
|
+
/>
|
|
577
|
+
)}
|
|
578
|
+
{children}
|
|
579
|
+
</View>
|
|
580
|
+
</AnimatedView>
|
|
581
|
+
</GestureHandlerRootView>
|
|
582
|
+
</ImageViewerContext.Provider>
|
|
583
|
+
</Overlay>
|
|
584
|
+
);
|
|
585
|
+
},
|
|
586
|
+
);
|
|
588
587
|
|
|
589
588
|
// Close Button Component
|
|
590
|
-
const ImageViewerCloseButton = React.forwardRef<React.ElementRef<typeof Pressable>, { className?: string }>(
|
|
589
|
+
const ImageViewerCloseButton: any = React.forwardRef<React.ElementRef<typeof Pressable>, { className?: string }>(
|
|
591
590
|
function ImageViewerCloseButton({ className, ...props }, ref) {
|
|
592
591
|
const { close } = useImageViewerContext();
|
|
593
592
|
|
|
@@ -607,57 +606,55 @@ const ImageViewerCloseButton = React.forwardRef<React.ElementRef<typeof Pressabl
|
|
|
607
606
|
);
|
|
608
607
|
|
|
609
608
|
// Navigation Component
|
|
610
|
-
const ImageViewerNavigation = React.forwardRef<View
|
|
611
|
-
{ className },
|
|
612
|
-
|
|
613
|
-
) {
|
|
614
|
-
const { goPrevious, goNext, currentIndex, images } = useImageViewerContext();
|
|
609
|
+
const ImageViewerNavigation: any = React.forwardRef<React.ElementRef<typeof View>, { className?: string }>(
|
|
610
|
+
function ImageViewerNavigation({ className }, ref) {
|
|
611
|
+
const { goPrevious, goNext, currentIndex, images } = useImageViewerContext();
|
|
615
612
|
|
|
616
|
-
|
|
617
|
-
|
|
613
|
+
const canGoPrevious = currentIndex > 0;
|
|
614
|
+
const canGoNext = currentIndex < images.length - 1;
|
|
618
615
|
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
}
|
|
616
|
+
return (
|
|
617
|
+
<View ref={ref} className={imageViewerNavigationStyle({ class: className })}>
|
|
618
|
+
{canGoPrevious && (
|
|
619
|
+
<TouchableOpacity
|
|
620
|
+
onPress={goPrevious}
|
|
621
|
+
className={imageViewerNavButtonStyle({})}
|
|
622
|
+
accessibilityLabel="Previous image"
|
|
623
|
+
accessibilityRole="button"
|
|
624
|
+
>
|
|
625
|
+
<Text className="text-white text-2xl font-bold">‹</Text>
|
|
626
|
+
</TouchableOpacity>
|
|
627
|
+
)}
|
|
628
|
+
<View className="flex-1" />
|
|
629
|
+
{canGoNext && (
|
|
630
|
+
<TouchableOpacity
|
|
631
|
+
onPress={goNext}
|
|
632
|
+
className={imageViewerNavButtonStyle({})}
|
|
633
|
+
accessibilityLabel="Next image"
|
|
634
|
+
accessibilityRole="button"
|
|
635
|
+
>
|
|
636
|
+
<Text className="text-white text-2xl font-bold">›</Text>
|
|
637
|
+
</TouchableOpacity>
|
|
638
|
+
)}
|
|
639
|
+
</View>
|
|
640
|
+
);
|
|
641
|
+
},
|
|
642
|
+
);
|
|
645
643
|
|
|
646
644
|
// Counter Component
|
|
647
|
-
const ImageViewerCounter = React.forwardRef<View
|
|
648
|
-
{ className },
|
|
649
|
-
|
|
650
|
-
) {
|
|
651
|
-
const { currentIndex, images } = useImageViewerContext();
|
|
645
|
+
const ImageViewerCounter: any = React.forwardRef<React.ElementRef<typeof View>, { className?: string }>(
|
|
646
|
+
function ImageViewerCounter({ className }, ref) {
|
|
647
|
+
const { currentIndex, images } = useImageViewerContext();
|
|
652
648
|
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
}
|
|
649
|
+
return (
|
|
650
|
+
<View ref={ref} className={imageViewerCounterStyle({ class: className })}>
|
|
651
|
+
<Text className={imageViewerCounterTextStyle({})}>
|
|
652
|
+
{currentIndex + 1} / {images.length}
|
|
653
|
+
</Text>
|
|
654
|
+
</View>
|
|
655
|
+
);
|
|
656
|
+
},
|
|
657
|
+
);
|
|
661
658
|
|
|
662
659
|
export {
|
|
663
660
|
ImageViewer,
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
export * from './accordion';
|
|
2
|
+
export * from './actionsheet';
|
|
3
|
+
export * from './alert';
|
|
4
|
+
export * from './alert-dialog';
|
|
5
|
+
export * from './avatar';
|
|
6
|
+
export * from './badge';
|
|
7
|
+
export * from './bottomsheet';
|
|
8
|
+
export * from './box';
|
|
9
|
+
export * from './button';
|
|
10
|
+
export * from './calendar';
|
|
11
|
+
export * from './card';
|
|
12
|
+
export * from './center';
|
|
13
|
+
export * from './checkbox';
|
|
14
|
+
export * from './date-time-picker';
|
|
15
|
+
export * from './divider';
|
|
16
|
+
export * from './drawer';
|
|
17
|
+
export * from './fab';
|
|
18
|
+
export * from './flat-list';
|
|
19
|
+
export * from './form-control';
|
|
20
|
+
export * from './gluestack-ui-provider';
|
|
21
|
+
export * from './grid';
|
|
22
|
+
export * from './heading';
|
|
23
|
+
export * from './hstack';
|
|
24
|
+
export * from './icon';
|
|
25
|
+
export * from './image';
|
|
26
|
+
export * from './image-background';
|
|
27
|
+
export * from './image-viewer';
|
|
28
|
+
export * from './input';
|
|
29
|
+
export * from './input-accessory-view';
|
|
30
|
+
export * from './keyboard-avoiding-view';
|
|
31
|
+
export * from './link';
|
|
32
|
+
export * from './liquid-glass';
|
|
33
|
+
export * from './menu';
|
|
34
|
+
export * from './modal';
|
|
35
|
+
export * from './popover';
|
|
36
|
+
export * from './portal';
|
|
37
|
+
export * from './pressable';
|
|
38
|
+
export * from './progress';
|
|
39
|
+
export * from './radio';
|
|
40
|
+
export * from './refresh-control';
|
|
41
|
+
export * from './safe-area-view';
|
|
42
|
+
export * from './scroll-view';
|
|
43
|
+
export * from './section-list';
|
|
44
|
+
export * from './select';
|
|
45
|
+
export * from './skeleton';
|
|
46
|
+
export * from './slider';
|
|
47
|
+
export * from './spinner';
|
|
48
|
+
export * from './status-bar';
|
|
49
|
+
export * from './switch';
|
|
50
|
+
export * from './table';
|
|
51
|
+
export * from './tabs';
|
|
52
|
+
export * from './text';
|
|
53
|
+
export * from './textarea';
|
|
54
|
+
export * from './toast';
|
|
55
|
+
export * from './tooltip';
|
|
56
|
+
export * from './view';
|
|
57
|
+
export * from './virtualized-list';
|
|
58
|
+
export * from './vstack';
|
|
@@ -14,8 +14,8 @@ export const UILink = createLink({
|
|
|
14
14
|
Text: Text,
|
|
15
15
|
});
|
|
16
16
|
|
|
17
|
-
cssInterop(UILink, { className: 'style' });
|
|
18
|
-
cssInterop(UILink.Text, { className: 'style' });
|
|
17
|
+
(cssInterop as any)(UILink, { className: 'style' });
|
|
18
|
+
(cssInterop as any)(UILink.Text, { className: 'style' });
|
|
19
19
|
|
|
20
20
|
const linkStyle = tva({
|
|
21
21
|
base: 'group/link web:outline-0 data-[disabled=true]:web:cursor-not-allowed data-[focus-visible=true]:web:ring-2 data-[focus-visible=true]:web:ring-indicator-primary data-[focus-visible=true]:web:outline-0 data-[disabled=true]:opacity-4 ',
|
|
@@ -59,10 +59,10 @@ GlassContainer.displayName = 'GlassContainer';
|
|
|
59
59
|
export { isGlassEffectAPIAvailable, isLiquidGlassAvailable } from 'expo-glass-effect';
|
|
60
60
|
export type { GlassColorScheme, GlassContainerProps, GlassStyle, GlassViewProps } from 'expo-glass-effect';
|
|
61
61
|
|
|
62
|
-
cssInterop(ExpoGlassView, {
|
|
62
|
+
(cssInterop as any)(ExpoGlassView, {
|
|
63
63
|
className: 'style',
|
|
64
64
|
});
|
|
65
65
|
|
|
66
|
-
cssInterop(ExpoGlassContainer, {
|
|
66
|
+
(cssInterop as any)(ExpoGlassContainer, {
|
|
67
67
|
className: 'style',
|
|
68
68
|
});
|
|
@@ -95,9 +95,10 @@ const Separator = React.forwardRef<
|
|
|
95
95
|
return <View ref={ref} className={menuSeparatorStyle({ class: className })} {...props} />;
|
|
96
96
|
});
|
|
97
97
|
|
|
98
|
-
|
|
98
|
+
// @ts-ignore
|
|
99
|
+
(cssInterop as any)(AnimatedView, { className: 'style' });
|
|
99
100
|
|
|
100
|
-
export const UIMenu = createMenu({
|
|
101
|
+
export const UIMenu: any = createMenu({
|
|
101
102
|
Root: AnimatedView,
|
|
102
103
|
Item: Item,
|
|
103
104
|
Label: Text,
|
|
@@ -129,7 +130,7 @@ const Menu = React.forwardRef<React.ComponentRef<typeof UIMenu>, IMenuProps>(fun
|
|
|
129
130
|
);
|
|
130
131
|
});
|
|
131
132
|
|
|
132
|
-
const MenuItem = UIMenu.Item;
|
|
133
|
+
const MenuItem: any = UIMenu.Item;
|
|
133
134
|
|
|
134
135
|
const MenuItemLabel = React.forwardRef<React.ComponentRef<typeof UIMenu.ItemLabel>, IMenuItemLabelProps>(
|
|
135
136
|
function MenuItemLabel(
|
|
@@ -155,7 +156,7 @@ const MenuItemLabel = React.forwardRef<React.ComponentRef<typeof UIMenu.ItemLabe
|
|
|
155
156
|
},
|
|
156
157
|
);
|
|
157
158
|
|
|
158
|
-
const MenuSeparator = UIMenu.Separator;
|
|
159
|
+
const MenuSeparator: any = UIMenu.Separator;
|
|
159
160
|
|
|
160
161
|
Menu.displayName = 'Menu';
|
|
161
162
|
MenuItem.displayName = 'MenuItem';
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
// @ts-nocheck
|
|
1
2
|
'use client';
|
|
2
3
|
import React from 'react';
|
|
3
4
|
import { createModal } from '@gluestack-ui/core/modal/creator';
|
|
@@ -22,8 +23,9 @@ const UIModal = createModal({
|
|
|
22
23
|
Header: View,
|
|
23
24
|
});
|
|
24
25
|
|
|
25
|
-
|
|
26
|
-
cssInterop(
|
|
26
|
+
// @ts-ignore
|
|
27
|
+
(cssInterop as any)(AnimatedPressable, { className: 'style' });
|
|
28
|
+
(cssInterop as any)(AnimatedView, { className: 'style' });
|
|
27
29
|
|
|
28
30
|
const modalStyle = tva({
|
|
29
31
|
base: 'group/modal w-full h-full justify-center items-center web:pointer-events-none',
|
|
@@ -103,21 +105,21 @@ const Modal = React.forwardRef<React.ComponentRef<typeof UIModal>, IModalProps>(
|
|
|
103
105
|
),
|
|
104
106
|
);
|
|
105
107
|
|
|
106
|
-
const ModalBackdrop = React.forwardRef<
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
);
|
|
108
|
+
const ModalBackdrop = React.forwardRef<any, IModalBackdropProps>(function ModalBackdrop({ className, ...props }, ref) {
|
|
109
|
+
// @ts-ignore
|
|
110
|
+
return (
|
|
111
|
+
// @ts-ignore
|
|
112
|
+
<UIModal.Backdrop
|
|
113
|
+
ref={ref}
|
|
114
|
+
entering={FadeIn.duration(200).easing(Easing.linear)}
|
|
115
|
+
exiting={FadeOut.duration(200).easing(Easing.linear)}
|
|
116
|
+
{...props}
|
|
117
|
+
className={modalBackdropStyle({
|
|
118
|
+
class: className,
|
|
119
|
+
})}
|
|
120
|
+
/>
|
|
121
|
+
);
|
|
122
|
+
});
|
|
121
123
|
|
|
122
124
|
const ModalContent = React.forwardRef<React.ComponentRef<typeof UIModal.Content>, IModalContentProps>(
|
|
123
125
|
function ModalContent({ className, size, ...props }, ref) {
|
|
@@ -12,7 +12,7 @@ const AnimatedView = Animated.createAnimatedComponent(View);
|
|
|
12
12
|
|
|
13
13
|
const SCOPE = 'POPOVER';
|
|
14
14
|
|
|
15
|
-
const UIPopover = createPopover({
|
|
15
|
+
const UIPopover: any = createPopover({
|
|
16
16
|
Root: withStyleContext(AnimatedView, SCOPE),
|
|
17
17
|
Arrow: View,
|
|
18
18
|
Backdrop: AnimatedPressable,
|
|
@@ -23,8 +23,8 @@ const UIPopover = createPopover({
|
|
|
23
23
|
Header: View,
|
|
24
24
|
});
|
|
25
25
|
|
|
26
|
-
cssInterop(AnimatedView, { className: 'style' });
|
|
27
|
-
cssInterop(AnimatedPressable, { className: 'style' });
|
|
26
|
+
(cssInterop as any)(AnimatedView, { className: 'style' });
|
|
27
|
+
(cssInterop as any)(AnimatedPressable, { className: 'style' });
|
|
28
28
|
|
|
29
29
|
const popoverStyle = tva({
|
|
30
30
|
base: 'group/popover w-full h-full justify-center items-center web:pointer-events-none',
|
|
@@ -108,7 +108,7 @@ type IPopoverBackdropProps = React.ComponentProps<typeof UIPopover.Backdrop> &
|
|
|
108
108
|
type IPopoverCloseButtonProps = React.ComponentProps<typeof UIPopover.CloseButton> &
|
|
109
109
|
VariantProps<typeof popoverCloseButtonStyle> & { className?: string };
|
|
110
110
|
|
|
111
|
-
const Popover = React.forwardRef<React.ComponentRef<typeof UIPopover>, IPopoverProps>(function Popover(
|
|
111
|
+
const Popover: any = React.forwardRef<React.ComponentRef<typeof UIPopover>, IPopoverProps>(function Popover(
|
|
112
112
|
{ className, placement = 'bottom', ...props },
|
|
113
113
|
ref,
|
|
114
114
|
) {
|
|
@@ -3,7 +3,7 @@ import React from 'react';
|
|
|
3
3
|
import { Overlay } from '@gluestack-ui/core/overlay/creator';
|
|
4
4
|
import { cssInterop } from 'nativewind';
|
|
5
5
|
|
|
6
|
-
cssInterop(Overlay, { className: 'style' });
|
|
6
|
+
(cssInterop as any)(Overlay, { className: 'style' });
|
|
7
7
|
|
|
8
8
|
const Portal = React.forwardRef<React.ComponentRef<typeof Overlay>, React.ComponentProps<typeof Overlay>>(
|
|
9
9
|
function Portal({ ...props }, ref) {
|
|
@@ -13,8 +13,8 @@ export const UIProgress = createProgress({
|
|
|
13
13
|
FilledTrack: View,
|
|
14
14
|
});
|
|
15
15
|
|
|
16
|
-
cssInterop(UIProgress, { className: 'style' });
|
|
17
|
-
cssInterop(UIProgress.FilledTrack, { className: 'style' });
|
|
16
|
+
(cssInterop as any)(UIProgress, { className: 'style' });
|
|
17
|
+
(cssInterop as any)(UIProgress.FilledTrack, { className: 'style' });
|
|
18
18
|
|
|
19
19
|
const progressStyle = tva({
|
|
20
20
|
base: 'bg-primary/20 relative h-2 w-full overflow-hidden rounded-full',
|
|
@@ -85,7 +85,7 @@ const selectInputStyle = tva({
|
|
|
85
85
|
},
|
|
86
86
|
});
|
|
87
87
|
|
|
88
|
-
const UISelect = createSelect(
|
|
88
|
+
const UISelect: any = createSelect(
|
|
89
89
|
{
|
|
90
90
|
Root: View,
|
|
91
91
|
Trigger: withStyleContext(SelectTriggerWrapper),
|
|
@@ -108,13 +108,13 @@ const UISelect = createSelect(
|
|
|
108
108
|
},
|
|
109
109
|
);
|
|
110
110
|
|
|
111
|
-
cssInterop(UISelect, { className: 'style' });
|
|
112
|
-
cssInterop(UISelect.Input, {
|
|
111
|
+
(cssInterop as any)(UISelect, { className: 'style' });
|
|
112
|
+
(cssInterop as any)(UISelect.Input, {
|
|
113
113
|
className: { target: 'style', nativeStyleToProp: { textAlign: true } },
|
|
114
114
|
});
|
|
115
|
-
cssInterop(SelectTriggerWrapper, { className: 'style' });
|
|
115
|
+
(cssInterop as any)(SelectTriggerWrapper, { className: 'style' });
|
|
116
116
|
|
|
117
|
-
cssInterop(UIIcon, {
|
|
117
|
+
(cssInterop as any)(UIIcon, {
|
|
118
118
|
className: {
|
|
119
119
|
target: 'style',
|
|
120
120
|
nativeStyleToProp: {
|
|
@@ -147,7 +147,7 @@ const Select = React.forwardRef<React.ComponentRef<typeof UISelect>, ISelectProp
|
|
|
147
147
|
type ISelectTriggerProps = VariantProps<typeof selectTriggerStyle> &
|
|
148
148
|
React.ComponentProps<typeof UISelect.Trigger> & { className?: string };
|
|
149
149
|
|
|
150
|
-
const SelectTrigger = React.forwardRef<React.ComponentRef<typeof UISelect.Trigger>, ISelectTriggerProps>(
|
|
150
|
+
const SelectTrigger: any = React.forwardRef<React.ComponentRef<typeof UISelect.Trigger>, ISelectTriggerProps>(
|
|
151
151
|
function SelectTrigger({ className, size = 'md', variant = 'outline', ...props }, ref) {
|
|
152
152
|
return (
|
|
153
153
|
<UISelect.Trigger
|
|
@@ -197,11 +197,7 @@ const SelectIcon = React.forwardRef<React.ComponentRef<typeof UISelect.Icon>, IS
|
|
|
197
197
|
const { size: parentSize } = useStyleContext();
|
|
198
198
|
if (typeof size === 'number') {
|
|
199
199
|
return <UISelect.Icon ref={ref} {...props} className={selectIconStyle({ class: className })} size={size} />;
|
|
200
|
-
} else if (
|
|
201
|
-
//@ts-expect-error : web only
|
|
202
|
-
(props?.height !== undefined || props?.width !== undefined) &&
|
|
203
|
-
size === undefined
|
|
204
|
-
) {
|
|
200
|
+
} else if ((props?.height !== undefined || props?.width !== undefined) && size === undefined) {
|
|
205
201
|
return <UISelect.Icon ref={ref} {...props} className={selectIconStyle({ class: className })} />;
|
|
206
202
|
}
|
|
207
203
|
return (
|
|
@@ -230,7 +226,7 @@ const SelectBackdrop = UISelect.Backdrop;
|
|
|
230
226
|
const SelectContent = UISelect.Content;
|
|
231
227
|
const SelectDragIndicator = UISelect.DragIndicator;
|
|
232
228
|
const SelectDragIndicatorWrapper = UISelect.DragIndicatorWrapper;
|
|
233
|
-
const SelectItem = UISelect.Item;
|
|
229
|
+
const SelectItem: any = UISelect.Item;
|
|
234
230
|
const SelectScrollView = UISelect.ScrollView;
|
|
235
231
|
const SelectVirtualizedList = UISelect.VirtualizedList;
|
|
236
232
|
const SelectFlatList = UISelect.FlatList;
|
|
@@ -39,26 +39,26 @@ export const UIActionsheet = createActionsheet({
|
|
|
39
39
|
AnimatePresence: AnimatePresence,
|
|
40
40
|
});
|
|
41
41
|
|
|
42
|
-
cssInterop(UIActionsheet, { className: 'style' });
|
|
43
|
-
cssInterop(UIActionsheet.Content, { className: 'style' });
|
|
44
|
-
cssInterop(UIActionsheet.Item, { className: 'style' });
|
|
45
|
-
cssInterop(UIActionsheet.ItemText, { className: 'style' });
|
|
46
|
-
cssInterop(UIActionsheet.DragIndicator, { className: 'style' });
|
|
47
|
-
cssInterop(UIActionsheet.DragIndicatorWrapper, { className: 'style' });
|
|
48
|
-
cssInterop(UIActionsheet.Backdrop, { className: 'style' });
|
|
49
|
-
cssInterop(UIActionsheet.ScrollView, {
|
|
42
|
+
(cssInterop as any)(UIActionsheet, { className: 'style' });
|
|
43
|
+
(cssInterop as any)(UIActionsheet.Content, { className: 'style' });
|
|
44
|
+
(cssInterop as any)(UIActionsheet.Item, { className: 'style' });
|
|
45
|
+
(cssInterop as any)(UIActionsheet.ItemText, { className: 'style' });
|
|
46
|
+
(cssInterop as any)(UIActionsheet.DragIndicator, { className: 'style' });
|
|
47
|
+
(cssInterop as any)(UIActionsheet.DragIndicatorWrapper, { className: 'style' });
|
|
48
|
+
(cssInterop as any)(UIActionsheet.Backdrop, { className: 'style' });
|
|
49
|
+
(cssInterop as any)(UIActionsheet.ScrollView, {
|
|
50
50
|
className: 'style',
|
|
51
51
|
contentContainerClassName: 'contentContainerStyle',
|
|
52
52
|
indicatorClassName: 'indicatorStyle',
|
|
53
53
|
});
|
|
54
|
-
cssInterop(UIActionsheet.VirtualizedList, {
|
|
54
|
+
(cssInterop as any)(UIActionsheet.VirtualizedList, {
|
|
55
55
|
className: 'style',
|
|
56
56
|
ListFooterComponentClassName: 'ListFooterComponentStyle',
|
|
57
57
|
ListHeaderComponentClassName: 'ListHeaderComponentStyle',
|
|
58
58
|
contentContainerClassName: 'contentContainerStyle',
|
|
59
59
|
indicatorClassName: 'indicatorStyle',
|
|
60
60
|
});
|
|
61
|
-
cssInterop(UIActionsheet.FlatList, {
|
|
61
|
+
(cssInterop as any)(UIActionsheet.FlatList, {
|
|
62
62
|
className: 'style',
|
|
63
63
|
ListFooterComponentClassName: 'ListFooterComponentStyle',
|
|
64
64
|
ListHeaderComponentClassName: 'ListHeaderComponentStyle',
|
|
@@ -66,9 +66,9 @@ cssInterop(UIActionsheet.FlatList, {
|
|
|
66
66
|
contentContainerClassName: 'contentContainerStyle',
|
|
67
67
|
indicatorClassName: 'indicatorStyle',
|
|
68
68
|
});
|
|
69
|
-
cssInterop(UIActionsheet.SectionList, { className: 'style' });
|
|
70
|
-
cssInterop(UIActionsheet.SectionHeaderText, { className: 'style' });
|
|
71
|
-
cssInterop(UIIcon, {
|
|
69
|
+
(cssInterop as any)(UIActionsheet.SectionList, { className: 'style' });
|
|
70
|
+
(cssInterop as any)(UIActionsheet.SectionHeaderText, { className: 'style' });
|
|
71
|
+
(cssInterop as any)(UIIcon, {
|
|
72
72
|
className: {
|
|
73
73
|
target: 'style',
|
|
74
74
|
nativeStyleToProp: {
|
|
@@ -17,7 +17,7 @@ type ISkeletonTextProps = React.ComponentProps<typeof View> &
|
|
|
17
17
|
startColor?: string;
|
|
18
18
|
};
|
|
19
19
|
|
|
20
|
-
const Skeleton = forwardRef<React.ComponentRef<typeof View>, ISkeletonProps>(function Skeleton(
|
|
20
|
+
const Skeleton: any = forwardRef<React.ComponentRef<typeof View>, ISkeletonProps>(function Skeleton(
|
|
21
21
|
{ className, variant, children, startColor = 'bg-accent', isLoaded = false, speed = 4, ...props },
|
|
22
22
|
ref,
|
|
23
23
|
) {
|
|
@@ -38,7 +38,7 @@ const Skeleton = forwardRef<React.ComponentRef<typeof View>, ISkeletonProps>(fun
|
|
|
38
38
|
}
|
|
39
39
|
});
|
|
40
40
|
|
|
41
|
-
const SkeletonText = forwardRef<React.ComponentRef<typeof View>, ISkeletonTextProps>(function SkeletonText(
|
|
41
|
+
const SkeletonText: any = forwardRef<React.ComponentRef<typeof View>, ISkeletonTextProps>(function SkeletonText(
|
|
42
42
|
{ className, _lines, isLoaded = false, startColor = 'bg-accent', gap = 2, children, ...props },
|
|
43
43
|
ref,
|
|
44
44
|
) {
|
|
@@ -18,7 +18,7 @@ export const UISlider = createSlider({
|
|
|
18
18
|
ThumbInteraction: View,
|
|
19
19
|
});
|
|
20
20
|
|
|
21
|
-
cssInterop(UISlider.Track, { className: 'style' });
|
|
21
|
+
(cssInterop as any)(UISlider.Track, { className: 'style' });
|
|
22
22
|
|
|
23
23
|
const sliderStyle = tva({
|
|
24
24
|
base: 'justify-center items-center data-[disabled=true]:opacity-40 data-[disabled=true]:web:pointer-events-none',
|
|
@@ -4,13 +4,13 @@ import React from 'react';
|
|
|
4
4
|
import { tva } from '@gluestack-ui/utils/nativewind-utils';
|
|
5
5
|
import { cssInterop } from 'nativewind';
|
|
6
6
|
|
|
7
|
-
cssInterop(ActivityIndicator, {
|
|
7
|
+
(cssInterop as any)(ActivityIndicator, {
|
|
8
8
|
className: { target: 'style', nativeStyleToProp: { color: true } },
|
|
9
9
|
});
|
|
10
10
|
|
|
11
11
|
const spinnerStyle = tva({});
|
|
12
12
|
|
|
13
|
-
const Spinner = React.forwardRef<
|
|
13
|
+
const Spinner: any = React.forwardRef<
|
|
14
14
|
React.ComponentRef<typeof ActivityIndicator>,
|
|
15
15
|
React.ComponentProps<typeof ActivityIndicator>
|
|
16
16
|
>(function Spinner({ className, color, focusable = false, 'aria-label': ariaLabel = 'loading', ...props }, ref) {
|