@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
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
|
|
1
|
+
export { Badge, BadgeIcon, BadgeText, Box, Button, ButtonGroup, ButtonIcon, ButtonSpinner, ButtonText, Card, Center, Divider, Fab, FabIcon, FabLabel, FlatList, GluestackUIProvider, HStack, Heading, Image, ImageBackground, Input, InputAccessoryView, InputField, InputIcon, InputSlot, KeyboardAvoidingView, Link, LinkText, Modal, ModalBackdrop, ModalBody, ModalCloseButton, ModalContent, ModalFooter, ModalHeader, MountedThemeContext, Pressable, FlatList2 as RNFlatList, RefreshControl, SafeAreaView, ScrollView, SectionList, Skeleton, SkeletonText, Spinner, StatusBar, Switch, Text, Textarea, TextareaInput, ThemeContext, UILink, VStack, View, VirtualizedList, createGluestackUIProvider, resolveThemeId, useCalendarTheme, useGluestackColors, useMountedColors, useMountedTheme } from '../../../chunk-YUAQIZPN.mjs';
|
|
2
|
+
import { H3, H4, Table as Table$1, THead, TBody, TFoot, TR, Caption } from '@expo/html-elements';
|
|
2
3
|
import { createAccordion, AccordionItemContext } from '@gluestack-ui/core/accordion/creator';
|
|
3
4
|
import { UIIcon, PrimitiveIcon, createIcon, Svg } from '@gluestack-ui/core/icon/creator';
|
|
4
5
|
import { tva, withStyleContext, useStyleContext, isWeb } from '@gluestack-ui/utils/nativewind-utils';
|
|
5
|
-
import { cssInterop
|
|
6
|
-
import
|
|
7
|
-
import { Platform, View, Text, Pressable, SectionList, FlatList, VirtualizedList, ScrollView, Image, Keyboard,
|
|
8
|
-
|
|
9
|
-
import Animated9, { FadeOut, ZoomIn, Easing, FadeIn, SlideInLeft, SlideInRight, SlideInUp, SlideInDown, SlideOutLeft, SlideOutRight, SlideOutUp, SlideOutDown, useSharedValue, withSpring, runOnJS, interpolate, Extrapolate, withTiming, useAnimatedStyle, withDelay, useAnimatedScrollHandler } from 'react-native-reanimated';
|
|
6
|
+
import { cssInterop } from 'nativewind';
|
|
7
|
+
import React29, { createContext, forwardRef, useRef, useState, useCallback, useImperativeHandle, useMemo, useContext, useEffect } from 'react';
|
|
8
|
+
import { Platform, View, Text, Pressable, SectionList, FlatList, VirtualizedList, ScrollView, Image, Keyboard, Modal, Dimensions, TouchableOpacity, TextInput, AccessibilityInfo } from 'react-native';
|
|
9
|
+
import Animated8, { FadeOut, ZoomIn, Easing, FadeIn, SlideInLeft, SlideInRight, SlideInUp, SlideInDown, SlideOutLeft, SlideOutRight, SlideOutUp, SlideOutDown, useSharedValue, withSpring, runOnJS, interpolate, Extrapolate, withTiming, useAnimatedStyle, withDelay, useAnimatedScrollHandler } from 'react-native-reanimated';
|
|
10
10
|
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
11
11
|
import { createActionsheet } from '@gluestack-ui/core/actionsheet/creator';
|
|
12
12
|
import { Motion, createMotionAnimatedComponent, AnimatePresence } from '@legendapp/motion';
|
|
@@ -15,35 +15,25 @@ import { createAlertDialog } from '@gluestack-ui/core/alert-dialog/creator';
|
|
|
15
15
|
import { createAvatar } from '@gluestack-ui/core/avatar/creator';
|
|
16
16
|
import { FocusScope } from '@gluestack-ui/utils/aria';
|
|
17
17
|
import GorhomBottomSheet, { BottomSheetBackdrop as BottomSheetBackdrop$1, BottomSheetHandle, BottomSheetView, BottomSheetFooter as BottomSheetFooter$1, BottomSheetScrollView as BottomSheetScrollView$1, BottomSheetFlatList as BottomSheetFlatList$1, BottomSheetSectionList as BottomSheetSectionList$1, BottomSheetTextInput as BottomSheetTextInput$1 } from '@gorhom/bottom-sheet';
|
|
18
|
-
import { createButton } from '@gluestack-ui/core/button/creator';
|
|
19
18
|
import { createMenu } from '@gluestack-ui/core/menu/creator';
|
|
20
19
|
import { createCheckbox } from '@gluestack-ui/core/checkbox/creator';
|
|
21
20
|
import DateTimePickerNative from '@react-native-community/datetimepicker';
|
|
22
21
|
import { createModal } from '@gluestack-ui/core/modal/creator';
|
|
23
|
-
import { createFab } from '@gluestack-ui/core/fab/creator';
|
|
24
22
|
import { createFormControl } from '@gluestack-ui/core/form-control/creator';
|
|
25
|
-
import { Overlay, OverlayProvider } from '@gluestack-ui/core/overlay/creator';
|
|
26
|
-
import { createToastHook, ToastProvider } from '@gluestack-ui/core/toast/creator';
|
|
27
23
|
import { useBreakpointValue, getBreakPointValue } from '@gluestack-ui/utils/hooks';
|
|
28
24
|
import { Path } from 'react-native-svg';
|
|
29
|
-
import { createImage } from '@gluestack-ui/core/image/creator';
|
|
30
25
|
import { Gesture, GestureDetector, GestureHandlerRootView } from 'react-native-gesture-handler';
|
|
31
|
-
import {
|
|
32
|
-
import { createLink } from '@gluestack-ui/core/link/creator';
|
|
26
|
+
import { Overlay } from '@gluestack-ui/core/overlay/creator';
|
|
33
27
|
import { GlassView as GlassView$1, GlassContainer as GlassContainer$1 } from 'expo-glass-effect';
|
|
34
28
|
export { isGlassEffectAPIAvailable, isLiquidGlassAvailable } from 'expo-glass-effect';
|
|
35
29
|
import { createPopover } from '@gluestack-ui/core/popover/creator';
|
|
36
|
-
import { createPressable } from '@gluestack-ui/core/pressable/creator';
|
|
37
30
|
import { createProgress } from '@gluestack-ui/core/progress/creator';
|
|
38
31
|
import { createRadio } from '@gluestack-ui/core/radio/creator';
|
|
39
|
-
export { SafeAreaView } from 'react-native-safe-area-context';
|
|
40
32
|
import { createSelect } from '@gluestack-ui/core/select/creator';
|
|
41
33
|
import { createSlider } from '@gluestack-ui/core/slider/creator';
|
|
42
|
-
import {
|
|
43
|
-
import { createTextarea } from '@gluestack-ui/core/textarea/creator';
|
|
34
|
+
import { createToastHook } from '@gluestack-ui/core/toast/creator';
|
|
44
35
|
import { createTooltip } from '@gluestack-ui/core/tooltip/creator';
|
|
45
36
|
|
|
46
|
-
// components/ui/accordion/index.tsx
|
|
47
37
|
var AnimatedHeight = ({ isExpanded, children, duration = 300, style }) => {
|
|
48
38
|
const measuredHeight = useSharedValue(0);
|
|
49
39
|
const progress = useSharedValue(isExpanded ? 1 : 0);
|
|
@@ -53,7 +43,7 @@ var AnimatedHeight = ({ isExpanded, children, duration = 300, style }) => {
|
|
|
53
43
|
measuredHeight.value = height;
|
|
54
44
|
}
|
|
55
45
|
};
|
|
56
|
-
|
|
46
|
+
React29.useEffect(() => {
|
|
57
47
|
progress.value = withTiming(isExpanded ? 1 : 0, { duration });
|
|
58
48
|
}, [isExpanded, duration]);
|
|
59
49
|
const animatedStyle = useAnimatedStyle(() => {
|
|
@@ -64,7 +54,7 @@ var AnimatedHeight = ({ isExpanded, children, duration = 300, style }) => {
|
|
|
64
54
|
overflow: "hidden"
|
|
65
55
|
};
|
|
66
56
|
}, [progress, measuredHeight]);
|
|
67
|
-
return /* @__PURE__ */ jsx(
|
|
57
|
+
return /* @__PURE__ */ jsx(Animated8.View, { style: [animatedStyle, style], children: /* @__PURE__ */ jsx(Animated8.View, { onLayout, style: { position: "absolute", width: "100%" }, children }) });
|
|
68
58
|
};
|
|
69
59
|
var AnimatedIcon = ({
|
|
70
60
|
isExpanded,
|
|
@@ -83,10 +73,10 @@ var AnimatedIcon = ({
|
|
|
83
73
|
transform: [{ rotate: `${rotate}deg` }]
|
|
84
74
|
};
|
|
85
75
|
}, [rotation, animatedValue]);
|
|
86
|
-
return /* @__PURE__ */ jsx(
|
|
76
|
+
return /* @__PURE__ */ jsx(Animated8.View, { style: [animatedStyle, style], children });
|
|
87
77
|
};
|
|
88
78
|
|
|
89
|
-
// components/ui/accordion/animation-config.ts
|
|
79
|
+
// components/providers/gluestack/ui/accordion/animation-config.ts
|
|
90
80
|
var accordionAnimationConfig = {
|
|
91
81
|
/**
|
|
92
82
|
* Duration for content expand/collapse animation
|
|
@@ -156,28 +146,28 @@ cssInterop(H3, {
|
|
|
156
146
|
target: "style"
|
|
157
147
|
}
|
|
158
148
|
});
|
|
159
|
-
var Accordion =
|
|
149
|
+
var Accordion = React29.forwardRef(
|
|
160
150
|
({ className, ...props }, ref) => {
|
|
161
151
|
return /* @__PURE__ */ jsx(UIAccordion, { ref, ...props, className: accordionStyle({ class: className }) });
|
|
162
152
|
}
|
|
163
153
|
);
|
|
164
|
-
var AccordionItem =
|
|
154
|
+
var AccordionItem = React29.forwardRef(
|
|
165
155
|
({ className, ...props }, ref) => {
|
|
166
156
|
return /* @__PURE__ */ jsx(UIAccordion.Item, { ref, ...props, className: accordionItemStyle({ class: className }) });
|
|
167
157
|
}
|
|
168
158
|
);
|
|
169
|
-
var AccordionContent =
|
|
159
|
+
var AccordionContent = React29.forwardRef(
|
|
170
160
|
function AccordionContent2({ className, ...props }, ref) {
|
|
171
|
-
const { isExpanded } =
|
|
161
|
+
const { isExpanded } = React29.useContext(AccordionItemContext);
|
|
172
162
|
return /* @__PURE__ */ jsx(AnimatedHeight, { isExpanded, duration: accordionAnimationConfig.contentDuration, children: /* @__PURE__ */ jsx(UIAccordion.Content, { ref, ...props, className: accordionContentStyle({ class: className }) }) });
|
|
173
163
|
}
|
|
174
164
|
);
|
|
175
|
-
var AccordionContentText =
|
|
165
|
+
var AccordionContentText = React29.forwardRef(function AccordionContentText2({ className, ...props }, ref) {
|
|
176
166
|
return /* @__PURE__ */ jsx(UIAccordion.ContentText, { ref, ...props, className: accordionContentTextStyle({ class: className }) });
|
|
177
167
|
});
|
|
178
|
-
var AccordionIcon =
|
|
168
|
+
var AccordionIcon = React29.forwardRef(
|
|
179
169
|
function AccordionIcon2({ className, ...props }, ref) {
|
|
180
|
-
const { isExpanded } =
|
|
170
|
+
const { isExpanded } = React29.useContext(AccordionItemContext);
|
|
181
171
|
return /* @__PURE__ */ jsx(
|
|
182
172
|
AnimatedIcon,
|
|
183
173
|
{
|
|
@@ -189,17 +179,17 @@ var AccordionIcon = React48.forwardRef(
|
|
|
189
179
|
);
|
|
190
180
|
}
|
|
191
181
|
);
|
|
192
|
-
var AccordionHeader =
|
|
182
|
+
var AccordionHeader = React29.forwardRef(
|
|
193
183
|
function AccordionHeader2({ className, ...props }, ref) {
|
|
194
184
|
return /* @__PURE__ */ jsx(UIAccordion.Header, { ref, ...props, className: accordionHeaderStyle({ class: className }) });
|
|
195
185
|
}
|
|
196
186
|
);
|
|
197
|
-
var AccordionTrigger =
|
|
187
|
+
var AccordionTrigger = React29.forwardRef(
|
|
198
188
|
function AccordionTrigger2({ className, ...props }, ref) {
|
|
199
189
|
return /* @__PURE__ */ jsx(UIAccordion.Trigger, { ref, ...props, className: accordionTriggerStyle({ class: className }) });
|
|
200
190
|
}
|
|
201
191
|
);
|
|
202
|
-
var AccordionTitleText =
|
|
192
|
+
var AccordionTitleText = React29.forwardRef(
|
|
203
193
|
function AccordionTitleText2({ className, ...props }, ref) {
|
|
204
194
|
return /* @__PURE__ */ jsx(UIAccordion.TitleText, { ref, ...props, className: accordionTitleTextStyle({ class: className }) });
|
|
205
195
|
}
|
|
@@ -212,7 +202,7 @@ AccordionTitleText.displayName = "AccordionTitleText";
|
|
|
212
202
|
AccordionContentText.displayName = "AccordionContentText";
|
|
213
203
|
AccordionIcon.displayName = "AccordionIcon";
|
|
214
204
|
AccordionContent.displayName = "AccordionContent";
|
|
215
|
-
var ItemWrapper =
|
|
205
|
+
var ItemWrapper = React29.forwardRef(function ItemWrapper2({ ...props }, ref) {
|
|
216
206
|
return /* @__PURE__ */ jsx(Pressable, { ...props, ref });
|
|
217
207
|
});
|
|
218
208
|
var MotionView = Motion.View;
|
|
@@ -225,10 +215,10 @@ var UIActionsheet = createActionsheet({
|
|
|
225
215
|
DragIndicator: View,
|
|
226
216
|
IndicatorWrapper: View,
|
|
227
217
|
Backdrop: AnimatedPressable,
|
|
228
|
-
ScrollView,
|
|
229
|
-
VirtualizedList,
|
|
230
|
-
FlatList,
|
|
231
|
-
SectionList,
|
|
218
|
+
ScrollView: ScrollView,
|
|
219
|
+
VirtualizedList: VirtualizedList,
|
|
220
|
+
FlatList: FlatList,
|
|
221
|
+
SectionList: SectionList,
|
|
232
222
|
SectionHeaderText: H4,
|
|
233
223
|
Icon: UIIcon,
|
|
234
224
|
AnimatePresence
|
|
@@ -348,7 +338,7 @@ var actionsheetSectionHeaderTextStyle = tva({
|
|
|
348
338
|
var actionsheetIconStyle = tva({
|
|
349
339
|
base: "text-foreground fill-none h-4 w-4"
|
|
350
340
|
});
|
|
351
|
-
var Actionsheet =
|
|
341
|
+
var Actionsheet = React29.forwardRef(function Actionsheet2({ className, ...props }, ref) {
|
|
352
342
|
return /* @__PURE__ */ jsx(
|
|
353
343
|
UIActionsheet,
|
|
354
344
|
{
|
|
@@ -360,7 +350,7 @@ var Actionsheet = React48.forwardRef(function Actionsheet2({ className, ...props
|
|
|
360
350
|
}
|
|
361
351
|
);
|
|
362
352
|
});
|
|
363
|
-
var ActionsheetContent =
|
|
353
|
+
var ActionsheetContent = React29.forwardRef(
|
|
364
354
|
function ActionsheetContent2({ className, ...props }, ref) {
|
|
365
355
|
return /* @__PURE__ */ jsx(
|
|
366
356
|
UIActionsheet.Content,
|
|
@@ -374,7 +364,7 @@ var ActionsheetContent = React48.forwardRef(
|
|
|
374
364
|
);
|
|
375
365
|
}
|
|
376
366
|
);
|
|
377
|
-
var ActionsheetItem =
|
|
367
|
+
var ActionsheetItem = React29.forwardRef(
|
|
378
368
|
function ActionsheetItem2({ className, ...props }, ref) {
|
|
379
369
|
return /* @__PURE__ */ jsx(
|
|
380
370
|
UIActionsheet.Item,
|
|
@@ -388,7 +378,7 @@ var ActionsheetItem = React48.forwardRef(
|
|
|
388
378
|
);
|
|
389
379
|
}
|
|
390
380
|
);
|
|
391
|
-
var ActionsheetItemText =
|
|
381
|
+
var ActionsheetItemText = React29.forwardRef(function ActionsheetItemText2({ isTruncated, bold, underline, strikeThrough, className, ...props }, ref) {
|
|
392
382
|
return /* @__PURE__ */ jsx(
|
|
393
383
|
UIActionsheet.ItemText,
|
|
394
384
|
{
|
|
@@ -404,7 +394,7 @@ var ActionsheetItemText = React48.forwardRef(function ActionsheetItemText2({ isT
|
|
|
404
394
|
}
|
|
405
395
|
);
|
|
406
396
|
});
|
|
407
|
-
var ActionsheetDragIndicator =
|
|
397
|
+
var ActionsheetDragIndicator = React29.forwardRef(function ActionsheetDragIndicator2({ className, ...props }, ref) {
|
|
408
398
|
return /* @__PURE__ */ jsx(
|
|
409
399
|
UIActionsheet.DragIndicator,
|
|
410
400
|
{
|
|
@@ -416,7 +406,7 @@ var ActionsheetDragIndicator = React48.forwardRef(function ActionsheetDragIndica
|
|
|
416
406
|
}
|
|
417
407
|
);
|
|
418
408
|
});
|
|
419
|
-
var ActionsheetDragIndicatorWrapper =
|
|
409
|
+
var ActionsheetDragIndicatorWrapper = React29.forwardRef(function ActionsheetDragIndicatorWrapper2({ className, ...props }, ref) {
|
|
420
410
|
return /* @__PURE__ */ jsx(
|
|
421
411
|
UIActionsheet.DragIndicatorWrapper,
|
|
422
412
|
{
|
|
@@ -428,7 +418,7 @@ var ActionsheetDragIndicatorWrapper = React48.forwardRef(function ActionsheetDra
|
|
|
428
418
|
}
|
|
429
419
|
);
|
|
430
420
|
});
|
|
431
|
-
var ActionsheetBackdrop =
|
|
421
|
+
var ActionsheetBackdrop = React29.forwardRef(function ActionsheetBackdrop2({ className, ...props }, ref) {
|
|
432
422
|
return /* @__PURE__ */ jsx(
|
|
433
423
|
UIActionsheet.Backdrop,
|
|
434
424
|
{
|
|
@@ -453,7 +443,7 @@ var ActionsheetBackdrop = React48.forwardRef(function ActionsheetBackdrop2({ cla
|
|
|
453
443
|
}
|
|
454
444
|
);
|
|
455
445
|
});
|
|
456
|
-
var ActionsheetScrollView =
|
|
446
|
+
var ActionsheetScrollView = React29.forwardRef(function ActionsheetScrollView2({ className, ...props }, ref) {
|
|
457
447
|
return /* @__PURE__ */ jsx(
|
|
458
448
|
UIActionsheet.ScrollView,
|
|
459
449
|
{
|
|
@@ -465,7 +455,7 @@ var ActionsheetScrollView = React48.forwardRef(function ActionsheetScrollView2({
|
|
|
465
455
|
}
|
|
466
456
|
);
|
|
467
457
|
});
|
|
468
|
-
var ActionsheetVirtualizedList =
|
|
458
|
+
var ActionsheetVirtualizedList = React29.forwardRef(function ActionsheetVirtualizedList2({ className, ...props }, ref) {
|
|
469
459
|
return /* @__PURE__ */ jsx(
|
|
470
460
|
UIActionsheet.VirtualizedList,
|
|
471
461
|
{
|
|
@@ -477,7 +467,7 @@ var ActionsheetVirtualizedList = React48.forwardRef(function ActionsheetVirtuali
|
|
|
477
467
|
}
|
|
478
468
|
);
|
|
479
469
|
});
|
|
480
|
-
var ActionsheetFlatList =
|
|
470
|
+
var ActionsheetFlatList = React29.forwardRef(function ActionsheetFlatList2({ className, ...props }, ref) {
|
|
481
471
|
return /* @__PURE__ */ jsx(
|
|
482
472
|
UIActionsheet.FlatList,
|
|
483
473
|
{
|
|
@@ -489,7 +479,7 @@ var ActionsheetFlatList = React48.forwardRef(function ActionsheetFlatList2({ cla
|
|
|
489
479
|
}
|
|
490
480
|
);
|
|
491
481
|
});
|
|
492
|
-
var ActionsheetSectionList =
|
|
482
|
+
var ActionsheetSectionList = React29.forwardRef(function ActionsheetSectionList2({ className, ...props }, ref) {
|
|
493
483
|
return /* @__PURE__ */ jsx(
|
|
494
484
|
UIActionsheet.SectionList,
|
|
495
485
|
{
|
|
@@ -501,7 +491,7 @@ var ActionsheetSectionList = React48.forwardRef(function ActionsheetSectionList2
|
|
|
501
491
|
}
|
|
502
492
|
);
|
|
503
493
|
});
|
|
504
|
-
var ActionsheetSectionHeaderText =
|
|
494
|
+
var ActionsheetSectionHeaderText = React29.forwardRef(function ActionsheetSectionHeaderText2({ className, isTruncated, bold, underline, strikeThrough, sub, italic, highlight, ...props }, ref) {
|
|
505
495
|
return /* @__PURE__ */ jsx(
|
|
506
496
|
UIActionsheet.SectionHeaderText,
|
|
507
497
|
{
|
|
@@ -520,7 +510,7 @@ var ActionsheetSectionHeaderText = React48.forwardRef(function ActionsheetSectio
|
|
|
520
510
|
}
|
|
521
511
|
);
|
|
522
512
|
});
|
|
523
|
-
var ActionsheetIcon =
|
|
513
|
+
var ActionsheetIcon = React29.forwardRef(
|
|
524
514
|
function ActionsheetIcon2({ className, height, width, ...props }, ref) {
|
|
525
515
|
if (typeof height === "number" || typeof width === "number") {
|
|
526
516
|
return /* @__PURE__ */ jsx(
|
|
@@ -582,10 +572,10 @@ cssInterop(UIIcon, {
|
|
|
582
572
|
}
|
|
583
573
|
}
|
|
584
574
|
});
|
|
585
|
-
var Alert =
|
|
575
|
+
var Alert = React29.forwardRef(function Alert2({ className, variant = "default", ...props }, ref) {
|
|
586
576
|
return /* @__PURE__ */ jsx(UIAlert, { className: alertStyle({ variant, class: className }), context: { variant }, ref, ...props });
|
|
587
577
|
});
|
|
588
|
-
var AlertText =
|
|
578
|
+
var AlertText = React29.forwardRef(function AlertText2({ className, ...props }, ref) {
|
|
589
579
|
const { variant: parentVariant } = useStyleContext(SCOPE);
|
|
590
580
|
return /* @__PURE__ */ jsx(
|
|
591
581
|
UIAlert.Text,
|
|
@@ -601,7 +591,7 @@ var AlertText = React48.forwardRef(function AlertText2({ className, ...props },
|
|
|
601
591
|
}
|
|
602
592
|
);
|
|
603
593
|
});
|
|
604
|
-
var AlertIcon =
|
|
594
|
+
var AlertIcon = React29.forwardRef(function AlertIcon2({ className, size = "sm", ...props }, ref) {
|
|
605
595
|
const { variant: parentVariant } = useStyleContext(SCOPE);
|
|
606
596
|
if (typeof size === "number") {
|
|
607
597
|
return /* @__PURE__ */ jsx(UIAlert.Icon, { ref, ...props, className: alertIconStyle({ class: className }), size });
|
|
@@ -627,8 +617,8 @@ AlertText.displayName = "AlertText";
|
|
|
627
617
|
AlertIcon.displayName = "AlertIcon";
|
|
628
618
|
var SCOPE2 = "ALERT_DIALOG";
|
|
629
619
|
var RootComponent = withStyleContext(View, SCOPE2);
|
|
630
|
-
var AnimatedPressable2 =
|
|
631
|
-
var AnimatedView =
|
|
620
|
+
var AnimatedPressable2 = Animated8.createAnimatedComponent(Pressable);
|
|
621
|
+
var AnimatedView = Animated8.createAnimatedComponent(View);
|
|
632
622
|
var UIAccessibleAlertDialog = createAlertDialog({
|
|
633
623
|
Root: RootComponent,
|
|
634
624
|
Body: ScrollView,
|
|
@@ -677,7 +667,7 @@ var alertDialogBodyStyle = tva({ base: "" });
|
|
|
677
667
|
var alertDialogBackdropStyle = tva({
|
|
678
668
|
base: "absolute left-0 top-0 right-0 bottom-0 bg-black/50 web:cursor-default"
|
|
679
669
|
});
|
|
680
|
-
var AlertDialog =
|
|
670
|
+
var AlertDialog = React29.forwardRef(
|
|
681
671
|
function AlertDialog2({ className, size = "md", ...props }, ref) {
|
|
682
672
|
return /* @__PURE__ */ jsx(
|
|
683
673
|
UIAccessibleAlertDialog,
|
|
@@ -691,7 +681,7 @@ var AlertDialog = React48.forwardRef(
|
|
|
691
681
|
);
|
|
692
682
|
}
|
|
693
683
|
);
|
|
694
|
-
var AlertDialogContent =
|
|
684
|
+
var AlertDialogContent = React29.forwardRef(function AlertDialogContent2({ className, size, ...props }, ref) {
|
|
695
685
|
const { size: parentSize } = useStyleContext(SCOPE2);
|
|
696
686
|
return /* @__PURE__ */ jsx(
|
|
697
687
|
UIAccessibleAlertDialog.Content,
|
|
@@ -714,7 +704,7 @@ var AlertDialogContent = React48.forwardRef(function AlertDialogContent2({ class
|
|
|
714
704
|
}
|
|
715
705
|
);
|
|
716
706
|
});
|
|
717
|
-
var AlertDialogCloseButton =
|
|
707
|
+
var AlertDialogCloseButton = React29.forwardRef(function AlertDialogCloseButton2({ className, ...props }, ref) {
|
|
718
708
|
return /* @__PURE__ */ jsx(
|
|
719
709
|
UIAccessibleAlertDialog.CloseButton,
|
|
720
710
|
{
|
|
@@ -726,7 +716,7 @@ var AlertDialogCloseButton = React48.forwardRef(function AlertDialogCloseButton2
|
|
|
726
716
|
}
|
|
727
717
|
);
|
|
728
718
|
});
|
|
729
|
-
var AlertDialogHeader =
|
|
719
|
+
var AlertDialogHeader = React29.forwardRef(function AlertDialogHeader2({ className, ...props }, ref) {
|
|
730
720
|
return /* @__PURE__ */ jsx(
|
|
731
721
|
UIAccessibleAlertDialog.Header,
|
|
732
722
|
{
|
|
@@ -738,7 +728,7 @@ var AlertDialogHeader = React48.forwardRef(function AlertDialogHeader2({ classNa
|
|
|
738
728
|
}
|
|
739
729
|
);
|
|
740
730
|
});
|
|
741
|
-
var AlertDialogFooter =
|
|
731
|
+
var AlertDialogFooter = React29.forwardRef(function AlertDialogFooter2({ className, ...props }, ref) {
|
|
742
732
|
return /* @__PURE__ */ jsx(
|
|
743
733
|
UIAccessibleAlertDialog.Footer,
|
|
744
734
|
{
|
|
@@ -750,7 +740,7 @@ var AlertDialogFooter = React48.forwardRef(function AlertDialogFooter2({ classNa
|
|
|
750
740
|
}
|
|
751
741
|
);
|
|
752
742
|
});
|
|
753
|
-
var AlertDialogBody =
|
|
743
|
+
var AlertDialogBody = React29.forwardRef(function AlertDialogBody2({ className, ...props }, ref) {
|
|
754
744
|
return /* @__PURE__ */ jsx(
|
|
755
745
|
UIAccessibleAlertDialog.Body,
|
|
756
746
|
{
|
|
@@ -762,7 +752,7 @@ var AlertDialogBody = React48.forwardRef(function AlertDialogBody2({ className,
|
|
|
762
752
|
}
|
|
763
753
|
);
|
|
764
754
|
});
|
|
765
|
-
var AlertDialogBackdrop =
|
|
755
|
+
var AlertDialogBackdrop = React29.forwardRef(function AlertDialogBackdrop2({ className, ...props }, ref) {
|
|
766
756
|
return /* @__PURE__ */ jsx(
|
|
767
757
|
UIAccessibleAlertDialog.Backdrop,
|
|
768
758
|
{
|
|
@@ -788,7 +778,7 @@ var UIAvatar = createAvatar({
|
|
|
788
778
|
Root: withStyleContext(View, SCOPE3),
|
|
789
779
|
Badge: View,
|
|
790
780
|
Group: View,
|
|
791
|
-
Image,
|
|
781
|
+
Image: Image,
|
|
792
782
|
FallbackText: Text
|
|
793
783
|
});
|
|
794
784
|
var avatarStyle = tva({
|
|
@@ -806,18 +796,18 @@ var avatarBadgeStyle = tva({
|
|
|
806
796
|
var avatarImageStyle = tva({
|
|
807
797
|
base: "h-full w-full rounded-full absolute"
|
|
808
798
|
});
|
|
809
|
-
var Avatar =
|
|
799
|
+
var Avatar = React29.forwardRef(function Avatar2({ className, ...props }, ref) {
|
|
810
800
|
return /* @__PURE__ */ jsx(UIAvatar, { ref, ...props, className: avatarStyle({ class: className }), context: {} });
|
|
811
801
|
});
|
|
812
|
-
var AvatarBadge =
|
|
802
|
+
var AvatarBadge = React29.forwardRef(function AvatarBadge2({ className, ...props }, ref) {
|
|
813
803
|
return /* @__PURE__ */ jsx(UIAvatar.Badge, { ref, ...props, className: avatarBadgeStyle({ class: className }) });
|
|
814
804
|
});
|
|
815
|
-
var AvatarFallbackText =
|
|
805
|
+
var AvatarFallbackText = React29.forwardRef(
|
|
816
806
|
function AvatarFallbackText2({ className, ...props }, ref) {
|
|
817
807
|
return /* @__PURE__ */ jsx(UIAvatar.FallbackText, { ref, ...props, className: avatarFallbackTextStyle({ class: className }) });
|
|
818
808
|
}
|
|
819
809
|
);
|
|
820
|
-
var AvatarImage =
|
|
810
|
+
var AvatarImage = React29.forwardRef(function AvatarImage2({ className, ...props }, ref) {
|
|
821
811
|
return /* @__PURE__ */ jsx(
|
|
822
812
|
UIAvatar.Image,
|
|
823
813
|
{
|
|
@@ -830,7 +820,7 @@ var AvatarImage = React48.forwardRef(function AvatarImage2({ className, ...props
|
|
|
830
820
|
}
|
|
831
821
|
);
|
|
832
822
|
});
|
|
833
|
-
var AvatarGroup =
|
|
823
|
+
var AvatarGroup = React29.forwardRef(function AvatarGroup2({ className, ...props }, ref) {
|
|
834
824
|
return /* @__PURE__ */ jsx(
|
|
835
825
|
UIAvatar.Group,
|
|
836
826
|
{
|
|
@@ -843,97 +833,6 @@ var AvatarGroup = React48.forwardRef(function AvatarGroup2({ className, ...props
|
|
|
843
833
|
);
|
|
844
834
|
});
|
|
845
835
|
var AvatarFallback = AvatarFallbackText;
|
|
846
|
-
var SCOPE4 = "BADGE";
|
|
847
|
-
var badgeStyle = tva({
|
|
848
|
-
base: "flex-row items-center justify-center rounded-sm px-2 py-0.5",
|
|
849
|
-
variants: {
|
|
850
|
-
variant: {
|
|
851
|
-
default: "bg-primary",
|
|
852
|
-
secondary: "bg-secondary",
|
|
853
|
-
destructive: "bg-destructive dark:bg-destructive/60",
|
|
854
|
-
outline: "border border-border dark:border-border/90 bg-transparent"
|
|
855
|
-
}
|
|
856
|
-
}
|
|
857
|
-
});
|
|
858
|
-
var badgeTextStyle = tva({
|
|
859
|
-
base: "text-xs font-medium tracking-normal uppercase",
|
|
860
|
-
parentVariants: {
|
|
861
|
-
variant: {
|
|
862
|
-
default: "text-primary-foreground",
|
|
863
|
-
secondary: "text-secondary-foreground",
|
|
864
|
-
destructive: "text-white",
|
|
865
|
-
outline: "text-foreground"
|
|
866
|
-
}
|
|
867
|
-
}
|
|
868
|
-
});
|
|
869
|
-
var badgeIconStyle = tva({
|
|
870
|
-
base: "fill-none h-3 w-3 pointer-events-none",
|
|
871
|
-
parentVariants: {
|
|
872
|
-
variant: {
|
|
873
|
-
default: "text-primary-foreground",
|
|
874
|
-
secondary: "text-secondary-foreground",
|
|
875
|
-
destructive: "text-white",
|
|
876
|
-
outline: "text-foreground"
|
|
877
|
-
}
|
|
878
|
-
}
|
|
879
|
-
});
|
|
880
|
-
var ContextView = withStyleContext(View, SCOPE4);
|
|
881
|
-
cssInterop(UIIcon, {
|
|
882
|
-
className: {
|
|
883
|
-
target: "style",
|
|
884
|
-
nativeStyleToProp: {
|
|
885
|
-
height: true,
|
|
886
|
-
width: true,
|
|
887
|
-
fill: true,
|
|
888
|
-
color: "classNameColor",
|
|
889
|
-
stroke: true
|
|
890
|
-
}
|
|
891
|
-
}
|
|
892
|
-
});
|
|
893
|
-
function Badge({ children, variant = "default", className, ...props }) {
|
|
894
|
-
return /* @__PURE__ */ jsx(ContextView, { className: badgeStyle({ variant, class: className }), ...props, context: { variant }, children });
|
|
895
|
-
}
|
|
896
|
-
var BadgeText = React48.forwardRef(function BadgeText2({ children, className, ...props }, ref) {
|
|
897
|
-
const { variant: parentVariant } = useStyleContext(SCOPE4);
|
|
898
|
-
return /* @__PURE__ */ jsx(
|
|
899
|
-
Text,
|
|
900
|
-
{
|
|
901
|
-
ref,
|
|
902
|
-
className: badgeTextStyle({
|
|
903
|
-
parentVariants: {
|
|
904
|
-
variant: parentVariant
|
|
905
|
-
},
|
|
906
|
-
class: className
|
|
907
|
-
}),
|
|
908
|
-
...props,
|
|
909
|
-
children
|
|
910
|
-
}
|
|
911
|
-
);
|
|
912
|
-
});
|
|
913
|
-
var BadgeIcon = React48.forwardRef(function BadgeIcon2({ className, size, ...props }, ref) {
|
|
914
|
-
const { variant: parentVariant } = useStyleContext(SCOPE4);
|
|
915
|
-
if (typeof size === "number") {
|
|
916
|
-
return /* @__PURE__ */ jsx(UIIcon, { ref, ...props, className: badgeIconStyle({ class: className }), size });
|
|
917
|
-
} else if ((props?.height !== void 0 || props?.width !== void 0) && size === void 0) {
|
|
918
|
-
return /* @__PURE__ */ jsx(UIIcon, { ref, ...props, className: badgeIconStyle({ class: className }) });
|
|
919
|
-
}
|
|
920
|
-
return /* @__PURE__ */ jsx(
|
|
921
|
-
UIIcon,
|
|
922
|
-
{
|
|
923
|
-
className: badgeIconStyle({
|
|
924
|
-
parentVariants: {
|
|
925
|
-
variant: parentVariant
|
|
926
|
-
},
|
|
927
|
-
class: className
|
|
928
|
-
}),
|
|
929
|
-
...props,
|
|
930
|
-
ref
|
|
931
|
-
}
|
|
932
|
-
);
|
|
933
|
-
});
|
|
934
|
-
Badge.displayName = "Badge";
|
|
935
|
-
BadgeText.displayName = "BadgeText";
|
|
936
|
-
BadgeIcon.displayName = "BadgeIcon";
|
|
937
836
|
var bottomSheetBackdropStyle = tva({
|
|
938
837
|
base: "absolute inset-0 bg-black/50"
|
|
939
838
|
});
|
|
@@ -1226,218 +1125,6 @@ cssInterop(BottomSheetSectionList$1, {
|
|
|
1226
1125
|
cssInterop(BottomSheetTextInput$1, {
|
|
1227
1126
|
className: "style"
|
|
1228
1127
|
});
|
|
1229
|
-
var baseStyle = isWeb ? "flex flex-col relative z-0 box-border border-0 list-none min-w-0 min-h-0 bg-transparent items-stretch m-0 p-0 text-decoration-none" : "";
|
|
1230
|
-
var boxStyle = tva({
|
|
1231
|
-
base: baseStyle
|
|
1232
|
-
});
|
|
1233
|
-
var Box = React48.forwardRef(function Box2({ className, ...props }, ref) {
|
|
1234
|
-
return /* @__PURE__ */ jsx(View, { ref, ...props, className: boxStyle({ class: className }) });
|
|
1235
|
-
});
|
|
1236
|
-
Box.displayName = "Box";
|
|
1237
|
-
var SCOPE5 = "BUTTON";
|
|
1238
|
-
var Root = withStyleContext(Pressable, SCOPE5);
|
|
1239
|
-
var UIButton = createButton({
|
|
1240
|
-
Root,
|
|
1241
|
-
Text: Text,
|
|
1242
|
-
Group: View,
|
|
1243
|
-
Spinner: ActivityIndicator,
|
|
1244
|
-
Icon: UIIcon
|
|
1245
|
-
});
|
|
1246
|
-
cssInterop(UIIcon, {
|
|
1247
|
-
className: {
|
|
1248
|
-
target: "style",
|
|
1249
|
-
nativeStyleToProp: {
|
|
1250
|
-
height: true,
|
|
1251
|
-
width: true,
|
|
1252
|
-
fill: true,
|
|
1253
|
-
color: "classNameColor",
|
|
1254
|
-
stroke: true
|
|
1255
|
-
}
|
|
1256
|
-
}
|
|
1257
|
-
});
|
|
1258
|
-
var buttonStyle = tva({
|
|
1259
|
-
base: "rounded-md flex-row items-center justify-center data-[focus-visible=true]:web:outline-none data-[focus-visible=true]:web:ring-2 data-[disabled=true]:opacity-40 gap-2 h-fit",
|
|
1260
|
-
variants: {
|
|
1261
|
-
variant: {
|
|
1262
|
-
default: "bg-primary data-[hover=true]:bg-primary/90 data-[active=true]:bg-primary/90",
|
|
1263
|
-
destructive: "bg-destructive data-[hover=true]:bg-destructive/90 data-[active=true]:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",
|
|
1264
|
-
outline: "border border-border bg-background shadow-xs data-[hover=true]:bg-accent data-[active=true]:bg-accent dark:bg-input/[0.045] dark:border-border/90 dark:data-[hover=true]:bg-input/[0.075] dark:data-[active=true]:bg-input/[0.075]",
|
|
1265
|
-
secondary: "bg-secondary text-secondary-foreground data-[hover=true]:bg-secondary/80 data-[active=true]:bg-secondary/80",
|
|
1266
|
-
ghost: "data-[hover=true]:bg-accent data-[active=true]:bg-accent dark:data-[hover=true]:bg-accent/50 dark:data-[active=true]:bg-accent/50",
|
|
1267
|
-
link: "text-primary underline-offset-4 data-[hover=true]:underline data-[active=true]:underline"
|
|
1268
|
-
},
|
|
1269
|
-
size: {
|
|
1270
|
-
default: "px-4 py-2",
|
|
1271
|
-
sm: "min-h-8 rounded-md px-3 text-xs",
|
|
1272
|
-
lg: "min-h-10 rounded-md px-8",
|
|
1273
|
-
icon: "min-h-9 min-w-9"
|
|
1274
|
-
}
|
|
1275
|
-
}
|
|
1276
|
-
});
|
|
1277
|
-
var buttonTextStyle = tva({
|
|
1278
|
-
base: "web:select-none font-sans",
|
|
1279
|
-
parentVariants: {
|
|
1280
|
-
variant: {
|
|
1281
|
-
default: "text-primary-foreground",
|
|
1282
|
-
destructive: "text-white",
|
|
1283
|
-
outline: "text-foreground data-[hover=true]:text-accent-foreground data-[active=true]:text-accent-foreground",
|
|
1284
|
-
secondary: "text-secondary-foreground",
|
|
1285
|
-
ghost: "text-foreground ",
|
|
1286
|
-
link: "text-primary data-[hover=true]:underline data-[active=true]:underline"
|
|
1287
|
-
},
|
|
1288
|
-
size: {
|
|
1289
|
-
default: "text-sm",
|
|
1290
|
-
sm: "text-xs",
|
|
1291
|
-
lg: "text-sm",
|
|
1292
|
-
icon: "text-sm"
|
|
1293
|
-
}
|
|
1294
|
-
}
|
|
1295
|
-
});
|
|
1296
|
-
var buttonSpinnerStyle = tva({
|
|
1297
|
-
base: "",
|
|
1298
|
-
parentVariants: {
|
|
1299
|
-
size: {
|
|
1300
|
-
default: "h-4 w-4",
|
|
1301
|
-
sm: "h-4 w-4",
|
|
1302
|
-
lg: "h-4 w-4",
|
|
1303
|
-
icon: "h-4 w-4"
|
|
1304
|
-
}
|
|
1305
|
-
}
|
|
1306
|
-
});
|
|
1307
|
-
var buttonIconStyle = tva({
|
|
1308
|
-
base: "fill-none pointer-events-none shrink-0",
|
|
1309
|
-
parentVariants: {
|
|
1310
|
-
variant: {
|
|
1311
|
-
default: "text-primary-foreground",
|
|
1312
|
-
destructive: "text-white",
|
|
1313
|
-
outline: "text-foreground data-[hover=true]:text-accent-foreground data-[active=true]:text-accent-foreground",
|
|
1314
|
-
secondary: "text-secondary-foreground",
|
|
1315
|
-
ghost: "text-foreground data-[hover=true]:text-accent-foreground data-[active=true]:text-accent-foreground",
|
|
1316
|
-
link: "text-primary"
|
|
1317
|
-
},
|
|
1318
|
-
size: {
|
|
1319
|
-
default: "h-4 w-4",
|
|
1320
|
-
sm: "h-4 w-4",
|
|
1321
|
-
lg: "h-4 w-4",
|
|
1322
|
-
icon: "h-4 w-4"
|
|
1323
|
-
}
|
|
1324
|
-
}
|
|
1325
|
-
});
|
|
1326
|
-
var buttonGroupStyle = tva({
|
|
1327
|
-
base: "",
|
|
1328
|
-
variants: {
|
|
1329
|
-
space: {
|
|
1330
|
-
xs: "gap-1",
|
|
1331
|
-
sm: "gap-2",
|
|
1332
|
-
md: "gap-3",
|
|
1333
|
-
lg: "gap-4",
|
|
1334
|
-
xl: "gap-5",
|
|
1335
|
-
"2xl": "gap-6",
|
|
1336
|
-
"3xl": "gap-7",
|
|
1337
|
-
"4xl": "gap-8"
|
|
1338
|
-
},
|
|
1339
|
-
isAttached: {
|
|
1340
|
-
true: "gap-0"
|
|
1341
|
-
},
|
|
1342
|
-
flexDirection: {
|
|
1343
|
-
row: "flex-row",
|
|
1344
|
-
column: "flex-col",
|
|
1345
|
-
"row-reverse": "flex-row-reverse",
|
|
1346
|
-
"column-reverse": "flex-col-reverse"
|
|
1347
|
-
}
|
|
1348
|
-
}
|
|
1349
|
-
});
|
|
1350
|
-
var Button = React48.forwardRef(
|
|
1351
|
-
({ className, variant = "default", size = "default", ...props }, ref) => {
|
|
1352
|
-
return /* @__PURE__ */ jsx(
|
|
1353
|
-
UIButton,
|
|
1354
|
-
{
|
|
1355
|
-
ref,
|
|
1356
|
-
...props,
|
|
1357
|
-
className: buttonStyle({ variant, size, class: className }),
|
|
1358
|
-
context: { variant, size }
|
|
1359
|
-
}
|
|
1360
|
-
);
|
|
1361
|
-
}
|
|
1362
|
-
);
|
|
1363
|
-
var ButtonText = React48.forwardRef(
|
|
1364
|
-
({ className, size, ...props }, ref) => {
|
|
1365
|
-
const { size: parentSize, variant: parentVariant } = useStyleContext(SCOPE5);
|
|
1366
|
-
return /* @__PURE__ */ jsx(
|
|
1367
|
-
UIButton.Text,
|
|
1368
|
-
{
|
|
1369
|
-
ref,
|
|
1370
|
-
...props,
|
|
1371
|
-
className: buttonTextStyle({
|
|
1372
|
-
parentVariants: {
|
|
1373
|
-
size: parentSize,
|
|
1374
|
-
variant: parentVariant
|
|
1375
|
-
},
|
|
1376
|
-
size,
|
|
1377
|
-
class: className
|
|
1378
|
-
})
|
|
1379
|
-
}
|
|
1380
|
-
);
|
|
1381
|
-
}
|
|
1382
|
-
);
|
|
1383
|
-
var ButtonSpinner = React48.forwardRef(({ className, size, ...props }, ref) => {
|
|
1384
|
-
const { size: parentSize } = useStyleContext(SCOPE5);
|
|
1385
|
-
return /* @__PURE__ */ jsx(
|
|
1386
|
-
UIButton.Spinner,
|
|
1387
|
-
{
|
|
1388
|
-
ref,
|
|
1389
|
-
...props,
|
|
1390
|
-
className: buttonSpinnerStyle({ parentVariants: { size: parentSize }, class: className, size })
|
|
1391
|
-
}
|
|
1392
|
-
);
|
|
1393
|
-
});
|
|
1394
|
-
var ButtonIcon = React48.forwardRef(
|
|
1395
|
-
({ className, size, ...props }, ref) => {
|
|
1396
|
-
const { size: parentSize, variant: parentVariant } = useStyleContext(SCOPE5);
|
|
1397
|
-
if (typeof size === "number") {
|
|
1398
|
-
return /* @__PURE__ */ jsx(UIButton.Icon, { ref, ...props, className: buttonIconStyle({ class: className }), size });
|
|
1399
|
-
} else if ((props.height !== void 0 || props.width !== void 0) && size === void 0) {
|
|
1400
|
-
return /* @__PURE__ */ jsx(UIButton.Icon, { ref, ...props, className: buttonIconStyle({ class: className }) });
|
|
1401
|
-
}
|
|
1402
|
-
return /* @__PURE__ */ jsx(
|
|
1403
|
-
UIButton.Icon,
|
|
1404
|
-
{
|
|
1405
|
-
...props,
|
|
1406
|
-
className: buttonIconStyle({
|
|
1407
|
-
parentVariants: {
|
|
1408
|
-
size: parentSize,
|
|
1409
|
-
variant: parentVariant
|
|
1410
|
-
},
|
|
1411
|
-
size,
|
|
1412
|
-
class: className
|
|
1413
|
-
}),
|
|
1414
|
-
ref
|
|
1415
|
-
}
|
|
1416
|
-
);
|
|
1417
|
-
}
|
|
1418
|
-
);
|
|
1419
|
-
var ButtonGroup = React48.forwardRef(
|
|
1420
|
-
({ className, space = "md", isAttached = false, flexDirection = "column", ...props }, ref) => {
|
|
1421
|
-
return /* @__PURE__ */ jsx(
|
|
1422
|
-
UIButton.Group,
|
|
1423
|
-
{
|
|
1424
|
-
className: buttonGroupStyle({
|
|
1425
|
-
class: className,
|
|
1426
|
-
space,
|
|
1427
|
-
isAttached,
|
|
1428
|
-
flexDirection
|
|
1429
|
-
}),
|
|
1430
|
-
...props,
|
|
1431
|
-
ref
|
|
1432
|
-
}
|
|
1433
|
-
);
|
|
1434
|
-
}
|
|
1435
|
-
);
|
|
1436
|
-
Button.displayName = "Button";
|
|
1437
|
-
ButtonText.displayName = "ButtonText";
|
|
1438
|
-
ButtonSpinner.displayName = "ButtonSpinner";
|
|
1439
|
-
ButtonIcon.displayName = "ButtonIcon";
|
|
1440
|
-
ButtonGroup.displayName = "ButtonGroup";
|
|
1441
1128
|
var DAY_MS = 864e5;
|
|
1442
1129
|
var WEEKDAY_LABELS = ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"];
|
|
1443
1130
|
var MONTH_LABELS = [
|
|
@@ -1510,7 +1197,7 @@ function isDateDisabled(date, props) {
|
|
|
1510
1197
|
}
|
|
1511
1198
|
function createCalendar(slots) {
|
|
1512
1199
|
const {
|
|
1513
|
-
Root:
|
|
1200
|
+
Root: Root4,
|
|
1514
1201
|
Header: Header2,
|
|
1515
1202
|
HeaderPrevButton,
|
|
1516
1203
|
HeaderNextButton,
|
|
@@ -1527,7 +1214,7 @@ function createCalendar(slots) {
|
|
|
1527
1214
|
WeekNumber,
|
|
1528
1215
|
Footer
|
|
1529
1216
|
} = slots;
|
|
1530
|
-
const Calendar2 =
|
|
1217
|
+
const Calendar2 = React29.forwardRef(function Calendar3(props, ref) {
|
|
1531
1218
|
const {
|
|
1532
1219
|
mode = "single",
|
|
1533
1220
|
value,
|
|
@@ -1547,9 +1234,9 @@ function createCalendar(slots) {
|
|
|
1547
1234
|
className,
|
|
1548
1235
|
...rest
|
|
1549
1236
|
} = props;
|
|
1550
|
-
const [uncontrolledValue, setUncontrolledValue] =
|
|
1237
|
+
const [uncontrolledValue, setUncontrolledValue] = React29.useState(defaultValue);
|
|
1551
1238
|
const currentValue = value !== void 0 ? value : uncontrolledValue;
|
|
1552
|
-
const [uncontrolledMonth, setUncontrolledMonth] =
|
|
1239
|
+
const [uncontrolledMonth, setUncontrolledMonth] = React29.useState(() => {
|
|
1553
1240
|
if (controlledMonth) return startOfMonthDate(controlledMonth);
|
|
1554
1241
|
if (defaultMonth) return startOfMonthDate(defaultMonth);
|
|
1555
1242
|
if (mode === "single" && currentValue instanceof Date) return startOfMonthDate(currentValue);
|
|
@@ -1559,21 +1246,21 @@ function createCalendar(slots) {
|
|
|
1559
1246
|
return startOfMonthDate(/* @__PURE__ */ new Date());
|
|
1560
1247
|
});
|
|
1561
1248
|
const displayedMonth = controlledMonth ? startOfMonthDate(controlledMonth) : uncontrolledMonth;
|
|
1562
|
-
const setDisplayedMonth =
|
|
1249
|
+
const setDisplayedMonth = React29.useCallback(
|
|
1563
1250
|
(next) => {
|
|
1564
1251
|
if (!controlledMonth) setUncontrolledMonth(next);
|
|
1565
1252
|
onMonthChange?.(next);
|
|
1566
1253
|
},
|
|
1567
1254
|
[controlledMonth, onMonthChange]
|
|
1568
1255
|
);
|
|
1569
|
-
const setValue =
|
|
1256
|
+
const setValue = React29.useCallback(
|
|
1570
1257
|
(next) => {
|
|
1571
1258
|
if (value === void 0) setUncontrolledValue(next);
|
|
1572
1259
|
onValueChange?.(next);
|
|
1573
1260
|
},
|
|
1574
1261
|
[value, onValueChange]
|
|
1575
1262
|
);
|
|
1576
|
-
const handleDayPress =
|
|
1263
|
+
const handleDayPress = React29.useCallback(
|
|
1577
1264
|
(date) => {
|
|
1578
1265
|
if (isDateDisabled(date, { minimumDate, maximumDate, disabledDates, disabled })) return;
|
|
1579
1266
|
if (mode === "multiple") {
|
|
@@ -1595,23 +1282,23 @@ function createCalendar(slots) {
|
|
|
1595
1282
|
},
|
|
1596
1283
|
[mode, currentValue, setValue, minimumDate, maximumDate, disabledDates, disabled]
|
|
1597
1284
|
);
|
|
1598
|
-
const weeks =
|
|
1599
|
-
const weekDayLabels =
|
|
1285
|
+
const weeks = React29.useMemo(() => buildMonthGrid(displayedMonth, weekStartsOn), [displayedMonth, weekStartsOn]);
|
|
1286
|
+
const weekDayLabels = React29.useMemo(
|
|
1600
1287
|
() => Array.from({ length: 7 }, (_, i) => WEEKDAY_LABELS[(weekStartsOn + i) % 7]),
|
|
1601
1288
|
[weekStartsOn]
|
|
1602
1289
|
);
|
|
1603
|
-
const today =
|
|
1290
|
+
const today = React29.useMemo(() => /* @__PURE__ */ new Date(), []);
|
|
1604
1291
|
const prevDisabled = !!minimumDate && monthIndex(displayedMonth) <= monthIndex(minimumDate);
|
|
1605
1292
|
const nextDisabled = !!maximumDate && monthIndex(displayedMonth) >= monthIndex(maximumDate);
|
|
1606
|
-
const monthItems =
|
|
1607
|
-
const yearItems =
|
|
1293
|
+
const monthItems = React29.useMemo(() => MONTH_LABELS.map((label, idx) => ({ label, value: idx })), []);
|
|
1294
|
+
const yearItems = React29.useMemo(() => {
|
|
1608
1295
|
const minYear = minimumDate ? minimumDate.getFullYear() : displayedMonth.getFullYear() - 100;
|
|
1609
1296
|
const maxYear = maximumDate ? maximumDate.getFullYear() : displayedMonth.getFullYear() + 10;
|
|
1610
1297
|
const items = [];
|
|
1611
1298
|
for (let y = maxYear; y >= minYear; y--) items.push({ label: String(y), value: y });
|
|
1612
1299
|
return items;
|
|
1613
1300
|
}, [minimumDate, maximumDate, displayedMonth]);
|
|
1614
|
-
const resolveDayState =
|
|
1301
|
+
const resolveDayState = React29.useCallback(
|
|
1615
1302
|
(date) => {
|
|
1616
1303
|
const isOutsideMonth = date.getMonth() !== displayedMonth.getMonth();
|
|
1617
1304
|
const isToday = isSameDay(date, today);
|
|
@@ -1639,7 +1326,7 @@ function createCalendar(slots) {
|
|
|
1639
1326
|
},
|
|
1640
1327
|
[mode, currentValue, displayedMonth, today, minimumDate, maximumDate, disabledDates, disabled]
|
|
1641
1328
|
);
|
|
1642
|
-
return /* @__PURE__ */ jsxs(
|
|
1329
|
+
return /* @__PURE__ */ jsxs(Root4, { ref, className, ...rest, children: [
|
|
1643
1330
|
/* @__PURE__ */ jsxs(Header2, { children: [
|
|
1644
1331
|
/* @__PURE__ */ jsx(
|
|
1645
1332
|
HeaderPrevButton,
|
|
@@ -1835,7 +1522,7 @@ var calendarHeaderSelectStyle = tva({
|
|
|
1835
1522
|
base: "bg-transparent border border-border rounded-md px-2 py-1 text-sm text-foreground",
|
|
1836
1523
|
variants: {}
|
|
1837
1524
|
});
|
|
1838
|
-
var AnimatedView2 =
|
|
1525
|
+
var AnimatedView2 = Animated8.createAnimatedComponent(ScrollView);
|
|
1839
1526
|
var menuStyle = tva({
|
|
1840
1527
|
base: "rounded-md bg-popover text-popover-foreground border border-border p-1 shadow-hard-5 max-h-[300px] overflow-y-auto"
|
|
1841
1528
|
});
|
|
@@ -1874,7 +1561,7 @@ var menuItemLabelStyle = tva({
|
|
|
1874
1561
|
}
|
|
1875
1562
|
}
|
|
1876
1563
|
});
|
|
1877
|
-
var BackdropPressable =
|
|
1564
|
+
var BackdropPressable = React29.forwardRef(function BackdropPressable2({ className, ...props }, ref) {
|
|
1878
1565
|
return /* @__PURE__ */ jsx(
|
|
1879
1566
|
Pressable,
|
|
1880
1567
|
{
|
|
@@ -1886,7 +1573,7 @@ var BackdropPressable = React48.forwardRef(function BackdropPressable2({ classNa
|
|
|
1886
1573
|
}
|
|
1887
1574
|
);
|
|
1888
1575
|
});
|
|
1889
|
-
var Item =
|
|
1576
|
+
var Item = React29.forwardRef(function Item2({ className, ...props }, ref) {
|
|
1890
1577
|
return /* @__PURE__ */ jsx(
|
|
1891
1578
|
Pressable,
|
|
1892
1579
|
{
|
|
@@ -1898,7 +1585,7 @@ var Item = React48.forwardRef(function Item2({ className, ...props }, ref) {
|
|
|
1898
1585
|
}
|
|
1899
1586
|
);
|
|
1900
1587
|
});
|
|
1901
|
-
var Separator =
|
|
1588
|
+
var Separator = React29.forwardRef(function Separator2({ className, ...props }, ref) {
|
|
1902
1589
|
return /* @__PURE__ */ jsx(View, { ref, className: menuSeparatorStyle({ class: className }), ...props });
|
|
1903
1590
|
});
|
|
1904
1591
|
cssInterop(AnimatedView2, { className: "style" });
|
|
@@ -1909,7 +1596,7 @@ var UIMenu = createMenu({
|
|
|
1909
1596
|
Backdrop: BackdropPressable,
|
|
1910
1597
|
Separator
|
|
1911
1598
|
});
|
|
1912
|
-
var Menu =
|
|
1599
|
+
var Menu = React29.forwardRef(function Menu2({ className, ...props }, ref) {
|
|
1913
1600
|
return /* @__PURE__ */ jsx(
|
|
1914
1601
|
UIMenu,
|
|
1915
1602
|
{
|
|
@@ -1927,7 +1614,7 @@ var Menu = React48.forwardRef(function Menu2({ className, ...props }, ref) {
|
|
|
1927
1614
|
);
|
|
1928
1615
|
});
|
|
1929
1616
|
var MenuItem = UIMenu.Item;
|
|
1930
|
-
var MenuItemLabel =
|
|
1617
|
+
var MenuItemLabel = React29.forwardRef(
|
|
1931
1618
|
function MenuItemLabel2({ className, isTruncated, bold, underline, strikeThrough, sub, italic, highlight, ...props }, ref) {
|
|
1932
1619
|
return /* @__PURE__ */ jsx(
|
|
1933
1620
|
UIMenu.ItemLabel,
|
|
@@ -1956,13 +1643,13 @@ MenuSeparator.displayName = "MenuSeparator";
|
|
|
1956
1643
|
cssInterop(View, { className: "style" });
|
|
1957
1644
|
cssInterop(Text, { className: "style" });
|
|
1958
1645
|
cssInterop(Pressable, { className: "style" });
|
|
1959
|
-
var CalendarRoot =
|
|
1646
|
+
var CalendarRoot = React29.forwardRef(({ className, ...props }, ref) => {
|
|
1960
1647
|
return /* @__PURE__ */ jsx(View, { ref, className: calendarStyle({ class: className }), ...props });
|
|
1961
1648
|
});
|
|
1962
|
-
var CalendarHeaderRoot =
|
|
1649
|
+
var CalendarHeaderRoot = React29.forwardRef(({ className, ...props }, ref) => {
|
|
1963
1650
|
return /* @__PURE__ */ jsx(View, { ref, className: calendarHeaderStyle({ class: className }), ...props });
|
|
1964
1651
|
});
|
|
1965
|
-
var CalendarHeaderPrevButtonRoot =
|
|
1652
|
+
var CalendarHeaderPrevButtonRoot = React29.forwardRef(({ className, disabled, ...props }, ref) => {
|
|
1966
1653
|
return /* @__PURE__ */ jsx(
|
|
1967
1654
|
Pressable,
|
|
1968
1655
|
{
|
|
@@ -1973,7 +1660,7 @@ var CalendarHeaderPrevButtonRoot = React48.forwardRef(({ className, disabled, ..
|
|
|
1973
1660
|
}
|
|
1974
1661
|
);
|
|
1975
1662
|
});
|
|
1976
|
-
var CalendarHeaderNextButtonRoot =
|
|
1663
|
+
var CalendarHeaderNextButtonRoot = React29.forwardRef(({ className, disabled, ...props }, ref) => {
|
|
1977
1664
|
return /* @__PURE__ */ jsx(
|
|
1978
1665
|
Pressable,
|
|
1979
1666
|
{
|
|
@@ -1984,7 +1671,7 @@ var CalendarHeaderNextButtonRoot = React48.forwardRef(({ className, disabled, ..
|
|
|
1984
1671
|
}
|
|
1985
1672
|
);
|
|
1986
1673
|
});
|
|
1987
|
-
var CalendarHeaderTitleRoot =
|
|
1674
|
+
var CalendarHeaderTitleRoot = React29.forwardRef(({ className, ...props }, ref) => {
|
|
1988
1675
|
return /* @__PURE__ */ jsx(Text, { ref, className: calendarHeaderTitleStyle({ class: className }), ...props });
|
|
1989
1676
|
});
|
|
1990
1677
|
var MONTH_NAMES = [
|
|
@@ -2001,7 +1688,7 @@ var MONTH_NAMES = [
|
|
|
2001
1688
|
"November",
|
|
2002
1689
|
"December"
|
|
2003
1690
|
];
|
|
2004
|
-
var CalendarHeaderMonthSelectRoot =
|
|
1691
|
+
var CalendarHeaderMonthSelectRoot = React29.forwardRef(
|
|
2005
1692
|
({ className, items = [], selectedValue, onValueChange, ...props }, ref) => {
|
|
2006
1693
|
const label = selectedValue !== void 0 ? MONTH_NAMES[selectedValue] : "Month";
|
|
2007
1694
|
return /* @__PURE__ */ jsx(View, { ref, className: calendarHeaderSelectStyle({ class: className }), ...props, children: /* @__PURE__ */ jsx(
|
|
@@ -2015,7 +1702,7 @@ var CalendarHeaderMonthSelectRoot = React48.forwardRef(
|
|
|
2015
1702
|
) });
|
|
2016
1703
|
}
|
|
2017
1704
|
);
|
|
2018
|
-
var CalendarHeaderYearSelectRoot =
|
|
1705
|
+
var CalendarHeaderYearSelectRoot = React29.forwardRef(
|
|
2019
1706
|
({ className, items = [], selectedValue, onValueChange, ...props }, ref) => {
|
|
2020
1707
|
const label = selectedValue !== void 0 ? String(selectedValue) : "Year";
|
|
2021
1708
|
return /* @__PURE__ */ jsx(View, { ref, className: calendarHeaderSelectStyle({ class: className }), ...props, children: /* @__PURE__ */ jsx(
|
|
@@ -2029,22 +1716,22 @@ var CalendarHeaderYearSelectRoot = React48.forwardRef(
|
|
|
2029
1716
|
) });
|
|
2030
1717
|
}
|
|
2031
1718
|
);
|
|
2032
|
-
var CalendarWeekDaysHeaderRoot =
|
|
1719
|
+
var CalendarWeekDaysHeaderRoot = React29.forwardRef(({ className, ...props }, ref) => {
|
|
2033
1720
|
return /* @__PURE__ */ jsx(View, { ref, className: calendarWeekDaysHeaderStyle({ class: className }), ...props });
|
|
2034
1721
|
});
|
|
2035
|
-
var CalendarWeekDayRoot =
|
|
1722
|
+
var CalendarWeekDayRoot = React29.forwardRef(({ className, children, ...props }, ref) => {
|
|
2036
1723
|
return /* @__PURE__ */ jsx(View, { ref, className: calendarWeekDayStyle({ class: className }), ...props, children: typeof children === "string" ? /* @__PURE__ */ jsx(Text, { className: calendarWeekDayTextStyle({ class: "" }), children }) : children });
|
|
2037
1724
|
});
|
|
2038
|
-
var CalendarBodyRoot =
|
|
1725
|
+
var CalendarBodyRoot = React29.forwardRef(({ className, ...props }, ref) => {
|
|
2039
1726
|
return /* @__PURE__ */ jsx(View, { ref, className: calendarBodyStyle({ class: className }), ...props });
|
|
2040
1727
|
});
|
|
2041
|
-
var CalendarGridRoot =
|
|
1728
|
+
var CalendarGridRoot = React29.forwardRef(({ className, ...props }, ref) => {
|
|
2042
1729
|
return /* @__PURE__ */ jsx(View, { ref, className: calendarGridStyle({ class: className }), ...props });
|
|
2043
1730
|
});
|
|
2044
|
-
var CalendarWeekRoot =
|
|
1731
|
+
var CalendarWeekRoot = React29.forwardRef(({ className, ...props }, ref) => {
|
|
2045
1732
|
return /* @__PURE__ */ jsx(View, { ref, className: calendarWeekStyle({ class: className }), ...props });
|
|
2046
1733
|
});
|
|
2047
|
-
var CalendarDayRoot =
|
|
1734
|
+
var CalendarDayRoot = React29.forwardRef(({ className, "data-state": dataState, ...props }, ref) => {
|
|
2048
1735
|
return /* @__PURE__ */ jsx(
|
|
2049
1736
|
Pressable,
|
|
2050
1737
|
{
|
|
@@ -2057,7 +1744,7 @@ var CalendarDayRoot = React48.forwardRef(({ className, "data-state": dataState,
|
|
|
2057
1744
|
}
|
|
2058
1745
|
);
|
|
2059
1746
|
});
|
|
2060
|
-
var CalendarDayTextRoot =
|
|
1747
|
+
var CalendarDayTextRoot = React29.forwardRef(({ className, state, ...props }, ref) => {
|
|
2061
1748
|
return /* @__PURE__ */ jsx(
|
|
2062
1749
|
Text,
|
|
2063
1750
|
{
|
|
@@ -2070,7 +1757,7 @@ var CalendarDayTextRoot = React48.forwardRef(({ className, state, ...props }, re
|
|
|
2070
1757
|
}
|
|
2071
1758
|
);
|
|
2072
1759
|
});
|
|
2073
|
-
var CalendarDayIndicatorRoot =
|
|
1760
|
+
var CalendarDayIndicatorRoot = React29.forwardRef(({ className, "data-type": dataType, ...props }, ref) => {
|
|
2074
1761
|
return /* @__PURE__ */ jsx(
|
|
2075
1762
|
View,
|
|
2076
1763
|
{
|
|
@@ -2083,10 +1770,10 @@ var CalendarDayIndicatorRoot = React48.forwardRef(({ className, "data-type": dat
|
|
|
2083
1770
|
}
|
|
2084
1771
|
);
|
|
2085
1772
|
});
|
|
2086
|
-
var CalendarWeekNumberRoot =
|
|
1773
|
+
var CalendarWeekNumberRoot = React29.forwardRef(({ className, children, ...props }, ref) => {
|
|
2087
1774
|
return /* @__PURE__ */ jsx(View, { ref, className: calendarWeekNumberStyle({ class: className }), ...props, children: typeof children === "string" || typeof children === "number" ? /* @__PURE__ */ jsx(Text, { className: calendarWeekNumberTextStyle({ class: "" }), children }) : children });
|
|
2088
1775
|
});
|
|
2089
|
-
var CalendarFooterRoot =
|
|
1776
|
+
var CalendarFooterRoot = React29.forwardRef(({ className, ...props }, ref) => {
|
|
2090
1777
|
return /* @__PURE__ */ jsx(View, { ref, className: calendarFooterStyle({ class: className }), ...props });
|
|
2091
1778
|
});
|
|
2092
1779
|
var UICalendar = createCalendar({
|
|
@@ -2108,7 +1795,7 @@ var UICalendar = createCalendar({
|
|
|
2108
1795
|
WeekNumber: CalendarWeekNumberRoot,
|
|
2109
1796
|
Footer: CalendarFooterRoot
|
|
2110
1797
|
});
|
|
2111
|
-
var CalendarComponent =
|
|
1798
|
+
var CalendarComponent = React29.forwardRef((props, ref) => {
|
|
2112
1799
|
return /* @__PURE__ */ jsx(UICalendar, { ref, ...props });
|
|
2113
1800
|
});
|
|
2114
1801
|
CalendarComponent.displayName = "Calendar";
|
|
@@ -2129,46 +1816,21 @@ var CalendarDayText = UICalendar.DayText;
|
|
|
2129
1816
|
var CalendarDayIndicator = UICalendar.DayIndicator;
|
|
2130
1817
|
var CalendarWeekNumber = UICalendar.WeekNumber;
|
|
2131
1818
|
var CalendarFooter = UICalendar.Footer;
|
|
2132
|
-
var
|
|
2133
|
-
var cardStyle = tva({
|
|
2134
|
-
base: `${baseStyle2} flex-col bg-card border border-border rounded-xl shadow-sm`,
|
|
2135
|
-
variants: {
|
|
2136
|
-
size: {
|
|
2137
|
-
default: "p-4 gap-6",
|
|
2138
|
-
sm: "p-3 gap-3"
|
|
2139
|
-
}
|
|
2140
|
-
},
|
|
2141
|
-
defaultVariants: {
|
|
2142
|
-
size: "default"
|
|
2143
|
-
}
|
|
2144
|
-
});
|
|
2145
|
-
var Card = React48.forwardRef(function Card2({ className, size = "default", ...props }, ref) {
|
|
2146
|
-
return /* @__PURE__ */ jsx(View, { className: cardStyle({ size, class: className }), ...props, ref });
|
|
2147
|
-
});
|
|
2148
|
-
Card.displayName = "Card";
|
|
2149
|
-
var baseStyle3 = isWeb ? "flex flex-col relative z-0" : "";
|
|
2150
|
-
var centerStyle = tva({
|
|
2151
|
-
base: `justify-center items-center ${baseStyle3}`
|
|
2152
|
-
});
|
|
2153
|
-
var Center = React48.forwardRef(function Center2({ className, ...props }, ref) {
|
|
2154
|
-
return /* @__PURE__ */ jsx(View, { className: centerStyle({ class: className }), ...props, ref });
|
|
2155
|
-
});
|
|
2156
|
-
Center.displayName = "Center";
|
|
2157
|
-
var IndicatorWrapper = React48.forwardRef(function IndicatorWrapper2({ ...props }, ref) {
|
|
1819
|
+
var IndicatorWrapper = React29.forwardRef(function IndicatorWrapper2({ ...props }, ref) {
|
|
2158
1820
|
return /* @__PURE__ */ jsx(View, { ...props, ref });
|
|
2159
1821
|
});
|
|
2160
|
-
var LabelWrapper =
|
|
1822
|
+
var LabelWrapper = React29.forwardRef(function LabelWrapper2({ ...props }, ref) {
|
|
2161
1823
|
return /* @__PURE__ */ jsx(Text, { ...props, ref });
|
|
2162
1824
|
});
|
|
2163
|
-
var IconWrapper =
|
|
1825
|
+
var IconWrapper = React29.forwardRef(
|
|
2164
1826
|
function IconWrapper2({ ...props }, ref) {
|
|
2165
1827
|
return /* @__PURE__ */ jsx(UIIcon, { ...props, ref });
|
|
2166
1828
|
}
|
|
2167
1829
|
);
|
|
2168
|
-
var
|
|
1830
|
+
var SCOPE4 = "CHECKBOX";
|
|
2169
1831
|
var UICheckbox = createCheckbox({
|
|
2170
1832
|
// @ts-expect-error : internal implementation for r-19/react-native-web
|
|
2171
|
-
Root: Platform.OS === "web" ? withStyleContext(View,
|
|
1833
|
+
Root: Platform.OS === "web" ? withStyleContext(View, SCOPE4) : withStyleContext(Pressable, SCOPE4),
|
|
2172
1834
|
Group: View,
|
|
2173
1835
|
Icon: IconWrapper,
|
|
2174
1836
|
Label: LabelWrapper,
|
|
@@ -2199,20 +1861,18 @@ var checkboxIconStyle = tva({
|
|
|
2199
1861
|
base: "text-primary-foreground fill-none h-3.5 w-3.5"
|
|
2200
1862
|
});
|
|
2201
1863
|
var CheckboxGroup = UICheckbox.Group;
|
|
2202
|
-
var Checkbox =
|
|
1864
|
+
var Checkbox = React29.forwardRef(function Checkbox2({ className, ...props }, ref) {
|
|
2203
1865
|
return /* @__PURE__ */ jsx(UICheckbox, { className: checkboxStyle({ class: className }), ...props, context: {}, ref });
|
|
2204
1866
|
});
|
|
2205
|
-
var CheckboxIndicator =
|
|
2206
|
-
|
|
2207
|
-
|
|
2208
|
-
|
|
2209
|
-
);
|
|
2210
|
-
var CheckboxLabel = React48.forwardRef(
|
|
1867
|
+
var CheckboxIndicator = React29.forwardRef(function CheckboxIndicator2({ className, ...props }, ref) {
|
|
1868
|
+
return /* @__PURE__ */ jsx(UICheckbox.Indicator, { className: checkboxIndicatorStyle({ class: className }), ...props, ref });
|
|
1869
|
+
});
|
|
1870
|
+
var CheckboxLabel = React29.forwardRef(
|
|
2211
1871
|
function CheckboxLabel2({ className, ...props }, ref) {
|
|
2212
1872
|
return /* @__PURE__ */ jsx(UICheckbox.Label, { className: checkboxLabelStyle({ class: className }), ...props, ref });
|
|
2213
1873
|
}
|
|
2214
1874
|
);
|
|
2215
|
-
var CheckboxIcon =
|
|
1875
|
+
var CheckboxIcon = React29.forwardRef(
|
|
2216
1876
|
function CheckboxIcon2({ className, size, ...props }, ref) {
|
|
2217
1877
|
if (typeof size === "number") {
|
|
2218
1878
|
return /* @__PURE__ */ jsx(UICheckbox.Icon, { ref, ...props, className: checkboxIconStyle({ class: className }), size });
|
|
@@ -2226,7 +1886,7 @@ Checkbox.displayName = "Checkbox";
|
|
|
2226
1886
|
CheckboxIndicator.displayName = "CheckboxIndicator";
|
|
2227
1887
|
CheckboxLabel.displayName = "CheckboxLabel";
|
|
2228
1888
|
CheckboxIcon.displayName = "CheckboxIcon";
|
|
2229
|
-
var DateTimePickerContext =
|
|
1889
|
+
var DateTimePickerContext = React29.createContext(null);
|
|
2230
1890
|
function DateTimePickerProvider({
|
|
2231
1891
|
children,
|
|
2232
1892
|
value,
|
|
@@ -2241,8 +1901,8 @@ function DateTimePickerProvider({
|
|
|
2241
1901
|
placeholder,
|
|
2242
1902
|
format
|
|
2243
1903
|
}) {
|
|
2244
|
-
const [isOpen, setIsOpen] =
|
|
2245
|
-
const contextValue =
|
|
1904
|
+
const [isOpen, setIsOpen] = React29.useState(false);
|
|
1905
|
+
const contextValue = React29.useMemo(
|
|
2246
1906
|
() => ({
|
|
2247
1907
|
value,
|
|
2248
1908
|
onChange,
|
|
@@ -2276,19 +1936,19 @@ function DateTimePickerProvider({
|
|
|
2276
1936
|
return /* @__PURE__ */ jsx(DateTimePickerContext.Provider, { value: contextValue, children });
|
|
2277
1937
|
}
|
|
2278
1938
|
function useDateTimePicker() {
|
|
2279
|
-
const context =
|
|
1939
|
+
const context = React29.useContext(DateTimePickerContext);
|
|
2280
1940
|
if (!context) {
|
|
2281
1941
|
throw new Error("useDateTimePicker must be used within a DateTimePickerProvider");
|
|
2282
1942
|
}
|
|
2283
1943
|
return context;
|
|
2284
1944
|
}
|
|
2285
|
-
function createDateTimePicker({ Root:
|
|
2286
|
-
const DateTimePickerRoot =
|
|
2287
|
-
return /* @__PURE__ */ jsx(
|
|
1945
|
+
function createDateTimePicker({ Root: Root4, Trigger, Input: Input2, Icon: Icon3 }) {
|
|
1946
|
+
const DateTimePickerRoot = React29.forwardRef(function DateTimePickerRoot2(props, ref) {
|
|
1947
|
+
return /* @__PURE__ */ jsx(Root4, { ref, ...props });
|
|
2288
1948
|
});
|
|
2289
1949
|
const Compound = DateTimePickerRoot;
|
|
2290
1950
|
Compound.Trigger = Trigger;
|
|
2291
|
-
Compound.Input =
|
|
1951
|
+
Compound.Input = Input2;
|
|
2292
1952
|
Compound.Icon = Icon3;
|
|
2293
1953
|
return Compound;
|
|
2294
1954
|
}
|
|
@@ -2340,13 +2000,13 @@ var dateTimePickerIconStyle = tva({
|
|
|
2340
2000
|
}
|
|
2341
2001
|
}
|
|
2342
2002
|
});
|
|
2343
|
-
var
|
|
2344
|
-
var DateTimePickerTriggerWrapper =
|
|
2003
|
+
var SCOPE5 = "DATE_TIME_PICKER";
|
|
2004
|
+
var DateTimePickerTriggerWrapper = React29.forwardRef(function DateTimePickerTriggerWrapper2({ ...props }, ref) {
|
|
2345
2005
|
return /* @__PURE__ */ jsx(Pressable, { ...props, ref });
|
|
2346
2006
|
});
|
|
2347
2007
|
var UIDateTimePicker = createDateTimePicker({
|
|
2348
|
-
Root: withStyleContext(View,
|
|
2349
|
-
Trigger: withStyleContext(DateTimePickerTriggerWrapper,
|
|
2008
|
+
Root: withStyleContext(View, SCOPE5),
|
|
2009
|
+
Trigger: withStyleContext(DateTimePickerTriggerWrapper, SCOPE5),
|
|
2350
2010
|
Input: TextInput,
|
|
2351
2011
|
Icon: UIIcon
|
|
2352
2012
|
});
|
|
@@ -2367,7 +2027,7 @@ cssInterop(PrimitiveIcon, {
|
|
|
2367
2027
|
}
|
|
2368
2028
|
}
|
|
2369
2029
|
});
|
|
2370
|
-
var DateTimePicker =
|
|
2030
|
+
var DateTimePicker = React29.forwardRef(
|
|
2371
2031
|
function DateTimePicker2({
|
|
2372
2032
|
className,
|
|
2373
2033
|
value,
|
|
@@ -2517,9 +2177,9 @@ function AndroidDateTimePicker({
|
|
|
2517
2177
|
onChange,
|
|
2518
2178
|
setIsOpen
|
|
2519
2179
|
}) {
|
|
2520
|
-
const [step, setStep] =
|
|
2521
|
-
const [tempDate, setTempDate] =
|
|
2522
|
-
|
|
2180
|
+
const [step, setStep] = React29.useState(null);
|
|
2181
|
+
const [tempDate, setTempDate] = React29.useState(value);
|
|
2182
|
+
React29.useEffect(() => {
|
|
2523
2183
|
if (isOpen) {
|
|
2524
2184
|
setStep("date");
|
|
2525
2185
|
setTempDate(value || /* @__PURE__ */ new Date());
|
|
@@ -2527,7 +2187,7 @@ function AndroidDateTimePicker({
|
|
|
2527
2187
|
setStep(null);
|
|
2528
2188
|
}
|
|
2529
2189
|
}, [isOpen, value]);
|
|
2530
|
-
const handleDateChange =
|
|
2190
|
+
const handleDateChange = React29.useCallback(
|
|
2531
2191
|
(event, selectedDate) => {
|
|
2532
2192
|
if (selectedDate) {
|
|
2533
2193
|
setTempDate(selectedDate);
|
|
@@ -2538,7 +2198,7 @@ function AndroidDateTimePicker({
|
|
|
2538
2198
|
},
|
|
2539
2199
|
[setIsOpen]
|
|
2540
2200
|
);
|
|
2541
|
-
const handleTimeChange =
|
|
2201
|
+
const handleTimeChange = React29.useCallback(
|
|
2542
2202
|
(event, selectedTime) => {
|
|
2543
2203
|
setIsOpen(false);
|
|
2544
2204
|
setStep(null);
|
|
@@ -2591,13 +2251,13 @@ function IOSDateTimePicker({
|
|
|
2591
2251
|
onChange
|
|
2592
2252
|
}) {
|
|
2593
2253
|
const { isOpen, setIsOpen } = useDateTimePicker();
|
|
2594
|
-
const [tempValue, setTempValue] =
|
|
2595
|
-
|
|
2254
|
+
const [tempValue, setTempValue] = React29.useState(value || /* @__PURE__ */ new Date());
|
|
2255
|
+
React29.useEffect(() => {
|
|
2596
2256
|
if (isOpen) {
|
|
2597
2257
|
setTempValue(value || /* @__PURE__ */ new Date());
|
|
2598
2258
|
}
|
|
2599
2259
|
}, [isOpen, value]);
|
|
2600
|
-
const handleChange =
|
|
2260
|
+
const handleChange = React29.useCallback(
|
|
2601
2261
|
(event, selectedDate) => {
|
|
2602
2262
|
if (selectedDate) {
|
|
2603
2263
|
setTempValue(selectedDate);
|
|
@@ -2606,10 +2266,10 @@ function IOSDateTimePicker({
|
|
|
2606
2266
|
},
|
|
2607
2267
|
[onChange]
|
|
2608
2268
|
);
|
|
2609
|
-
const handleDone =
|
|
2269
|
+
const handleDone = React29.useCallback(() => {
|
|
2610
2270
|
setIsOpen(false);
|
|
2611
2271
|
}, [setIsOpen]);
|
|
2612
|
-
const handleCancel =
|
|
2272
|
+
const handleCancel = React29.useCallback(() => {
|
|
2613
2273
|
setIsOpen(false);
|
|
2614
2274
|
if (value) {
|
|
2615
2275
|
onChange({ type: "dismissed" }, value);
|
|
@@ -2655,7 +2315,7 @@ function IOSDateTimePicker({
|
|
|
2655
2315
|
] })
|
|
2656
2316
|
] }) });
|
|
2657
2317
|
}
|
|
2658
|
-
var DateTimePickerTrigger =
|
|
2318
|
+
var DateTimePickerTrigger = React29.forwardRef(function DateTimePickerTrigger2({ className, size = "md", variant = "outline", ...props }, ref) {
|
|
2659
2319
|
const { disabled, setIsOpen } = useDateTimePicker();
|
|
2660
2320
|
return /* @__PURE__ */ jsx(
|
|
2661
2321
|
UIDateTimePicker.Trigger,
|
|
@@ -2673,8 +2333,8 @@ var DateTimePickerTrigger = React48.forwardRef(function DateTimePickerTrigger2({
|
|
|
2673
2333
|
}
|
|
2674
2334
|
);
|
|
2675
2335
|
});
|
|
2676
|
-
var DateTimePickerInput =
|
|
2677
|
-
const { size: parentSize, variant: parentVariant } = useStyleContext(
|
|
2336
|
+
var DateTimePickerInput = React29.forwardRef(function DateTimePickerInput2({ className, ...props }, ref) {
|
|
2337
|
+
const { size: parentSize, variant: parentVariant } = useStyleContext(SCOPE5);
|
|
2678
2338
|
const { value, placeholder, format } = useDateTimePicker();
|
|
2679
2339
|
const displayValue = useMemo(() => {
|
|
2680
2340
|
if (!value) return "";
|
|
@@ -2702,9 +2362,9 @@ var DateTimePickerInput = React48.forwardRef(function DateTimePickerInput2({ cla
|
|
|
2702
2362
|
}
|
|
2703
2363
|
);
|
|
2704
2364
|
});
|
|
2705
|
-
var DateTimePickerIcon =
|
|
2365
|
+
var DateTimePickerIcon = React29.forwardRef(
|
|
2706
2366
|
function DateTimePickerIcon2({ className, size, ...props }, ref) {
|
|
2707
|
-
const { size: parentSize } = useStyleContext(
|
|
2367
|
+
const { size: parentSize } = useStyleContext(SCOPE5);
|
|
2708
2368
|
if (typeof size === "number") {
|
|
2709
2369
|
return /* @__PURE__ */ jsx(
|
|
2710
2370
|
UIDateTimePicker.Icon,
|
|
@@ -2736,36 +2396,11 @@ function formatDate(date, format) {
|
|
|
2736
2396
|
const pad = (n) => n.toString().padStart(2, "0");
|
|
2737
2397
|
return format.replace("YYYY", date.getFullYear().toString()).replace("MM", pad(date.getMonth() + 1)).replace("DD", pad(date.getDate())).replace("HH", pad(date.getHours())).replace("mm", pad(date.getMinutes())).replace("ss", pad(date.getSeconds()));
|
|
2738
2398
|
}
|
|
2739
|
-
var
|
|
2740
|
-
|
|
2741
|
-
|
|
2742
|
-
orientation: {
|
|
2743
|
-
vertical: "w-px h-full",
|
|
2744
|
-
horizontal: "h-px w-auto"
|
|
2745
|
-
}
|
|
2746
|
-
}
|
|
2747
|
-
});
|
|
2748
|
-
var Divider = React48.forwardRef(function Divider2({ className, orientation = "horizontal", ...props }, ref) {
|
|
2749
|
-
return /* @__PURE__ */ jsx(
|
|
2750
|
-
View,
|
|
2751
|
-
{
|
|
2752
|
-
ref,
|
|
2753
|
-
...props,
|
|
2754
|
-
"aria-orientation": orientation,
|
|
2755
|
-
role: Platform.OS === "web" ? "separator" : void 0,
|
|
2756
|
-
className: dividerStyle({
|
|
2757
|
-
orientation,
|
|
2758
|
-
class: className
|
|
2759
|
-
})
|
|
2760
|
-
}
|
|
2761
|
-
);
|
|
2762
|
-
});
|
|
2763
|
-
Divider.displayName = "Divider";
|
|
2764
|
-
var SCOPE8 = "MODAL";
|
|
2765
|
-
var AnimatedPressable3 = Animated9.createAnimatedComponent(Pressable);
|
|
2766
|
-
var AnimatedView3 = Animated9.createAnimatedComponent(View);
|
|
2399
|
+
var SCOPE6 = "MODAL";
|
|
2400
|
+
var AnimatedPressable3 = Animated8.createAnimatedComponent(Pressable);
|
|
2401
|
+
var AnimatedView3 = Animated8.createAnimatedComponent(View);
|
|
2767
2402
|
var UIDrawer = createModal({
|
|
2768
|
-
Root: withStyleContext(View,
|
|
2403
|
+
Root: withStyleContext(View, SCOPE6),
|
|
2769
2404
|
Backdrop: AnimatedPressable3,
|
|
2770
2405
|
Content: AnimatedView3,
|
|
2771
2406
|
Body: ScrollView,
|
|
@@ -2906,7 +2541,7 @@ var drawerBodyStyle = tva({
|
|
|
2906
2541
|
var drawerFooterStyle = tva({
|
|
2907
2542
|
base: "flex-col-reverse gap-2 sm:flex-row sm:justify-end pt-4"
|
|
2908
2543
|
});
|
|
2909
|
-
var Drawer =
|
|
2544
|
+
var Drawer = React29.forwardRef(function Drawer2({ className, size = "md", anchor = "left", ...props }, ref) {
|
|
2910
2545
|
return /* @__PURE__ */ jsx(
|
|
2911
2546
|
UIDrawer,
|
|
2912
2547
|
{
|
|
@@ -2918,7 +2553,7 @@ var Drawer = React48.forwardRef(function Drawer2({ className, size = "md", ancho
|
|
|
2918
2553
|
}
|
|
2919
2554
|
);
|
|
2920
2555
|
});
|
|
2921
|
-
var DrawerBackdrop =
|
|
2556
|
+
var DrawerBackdrop = React29.forwardRef(
|
|
2922
2557
|
function DrawerBackdrop2({ className, ...props }, ref) {
|
|
2923
2558
|
return /* @__PURE__ */ jsx(
|
|
2924
2559
|
UIDrawer.Backdrop,
|
|
@@ -2934,9 +2569,9 @@ var DrawerBackdrop = React48.forwardRef(
|
|
|
2934
2569
|
);
|
|
2935
2570
|
}
|
|
2936
2571
|
);
|
|
2937
|
-
var DrawerContent =
|
|
2572
|
+
var DrawerContent = React29.forwardRef(
|
|
2938
2573
|
function DrawerContent2({ className, ...props }, ref) {
|
|
2939
|
-
const { size: parentSize, anchor: parentAnchor } = useStyleContext(
|
|
2574
|
+
const { size: parentSize, anchor: parentAnchor } = useStyleContext(SCOPE6);
|
|
2940
2575
|
const customClass = parentAnchor === "left" || parentAnchor === "right" ? `top-0 ${parentAnchor === "left" ? "left-0" : "right-0"}` : `left-0 ${parentAnchor === "top" ? "top-0" : "bottom-0"}`;
|
|
2941
2576
|
const enteringAnimation = parentAnchor === "left" ? SlideInLeft.duration(200).easing(Easing.in(Easing.cubic)) : parentAnchor === "right" ? SlideInRight.duration(200) : parentAnchor === "top" ? SlideInUp.duration(200) : SlideInDown.duration(200);
|
|
2942
2577
|
const exitingAnimation = parentAnchor === "left" ? SlideOutLeft.duration(200) : parentAnchor === "right" ? SlideOutRight.duration(200) : parentAnchor === "top" ? SlideOutUp.duration(200) : SlideOutDown.duration(200);
|
|
@@ -2959,7 +2594,7 @@ var DrawerContent = React48.forwardRef(
|
|
|
2959
2594
|
);
|
|
2960
2595
|
}
|
|
2961
2596
|
);
|
|
2962
|
-
var DrawerHeader =
|
|
2597
|
+
var DrawerHeader = React29.forwardRef(
|
|
2963
2598
|
function DrawerHeader2({ className, ...props }, ref) {
|
|
2964
2599
|
return /* @__PURE__ */ jsx(
|
|
2965
2600
|
UIDrawer.Header,
|
|
@@ -2973,7 +2608,7 @@ var DrawerHeader = React48.forwardRef(
|
|
|
2973
2608
|
);
|
|
2974
2609
|
}
|
|
2975
2610
|
);
|
|
2976
|
-
var DrawerBody =
|
|
2611
|
+
var DrawerBody = React29.forwardRef(function DrawerBody2({ className, ...props }, ref) {
|
|
2977
2612
|
return /* @__PURE__ */ jsx(
|
|
2978
2613
|
UIDrawer.Body,
|
|
2979
2614
|
{
|
|
@@ -2985,7 +2620,7 @@ var DrawerBody = React48.forwardRef(function DrawerBody2({ className, ...props }
|
|
|
2985
2620
|
}
|
|
2986
2621
|
);
|
|
2987
2622
|
});
|
|
2988
|
-
var DrawerFooter =
|
|
2623
|
+
var DrawerFooter = React29.forwardRef(
|
|
2989
2624
|
function DrawerFooter2({ className, ...props }, ref) {
|
|
2990
2625
|
return /* @__PURE__ */ jsx(
|
|
2991
2626
|
UIDrawer.Footer,
|
|
@@ -2999,7 +2634,7 @@ var DrawerFooter = React48.forwardRef(
|
|
|
2999
2634
|
);
|
|
3000
2635
|
}
|
|
3001
2636
|
);
|
|
3002
|
-
var DrawerCloseButton =
|
|
2637
|
+
var DrawerCloseButton = React29.forwardRef(
|
|
3003
2638
|
function DrawerCloseButton2({ className, ...props }, ref) {
|
|
3004
2639
|
return /* @__PURE__ */ jsx(
|
|
3005
2640
|
UIDrawer.CloseButton,
|
|
@@ -3020,48 +2655,21 @@ DrawerHeader.displayName = "DrawerHeader";
|
|
|
3020
2655
|
DrawerBody.displayName = "DrawerBody";
|
|
3021
2656
|
DrawerFooter.displayName = "DrawerFooter";
|
|
3022
2657
|
DrawerCloseButton.displayName = "DrawerCloseButton";
|
|
3023
|
-
var
|
|
3024
|
-
var
|
|
3025
|
-
|
|
3026
|
-
Root: Root2,
|
|
3027
|
-
Label: Text,
|
|
3028
|
-
Icon: UIIcon
|
|
2658
|
+
var SCOPE7 = "FORM_CONTROL";
|
|
2659
|
+
var formControlStyle = tva({
|
|
2660
|
+
base: "flex flex-col"
|
|
3029
2661
|
});
|
|
3030
|
-
|
|
3031
|
-
|
|
3032
|
-
target: "style",
|
|
3033
|
-
nativeStyleToProp: {
|
|
3034
|
-
height: true,
|
|
3035
|
-
width: true,
|
|
3036
|
-
fill: true,
|
|
3037
|
-
color: "classNameColor",
|
|
3038
|
-
stroke: true
|
|
3039
|
-
}
|
|
3040
|
-
}
|
|
2662
|
+
var formControlErrorIconStyle = tva({
|
|
2663
|
+
base: "text-destructive fill-none h-[18px] w-[18px]"
|
|
3041
2664
|
});
|
|
3042
|
-
var
|
|
3043
|
-
base: "
|
|
3044
|
-
variants: {
|
|
3045
|
-
size: {
|
|
3046
|
-
sm: "px-3.5 py-1.5",
|
|
3047
|
-
md: "px-4 py-2",
|
|
3048
|
-
lg: "px-5 py-3"
|
|
3049
|
-
},
|
|
3050
|
-
placement: {
|
|
3051
|
-
"top right": "top-4 right-4",
|
|
3052
|
-
"top left": "top-4 left-4",
|
|
3053
|
-
"bottom right": "bottom-4 right-4",
|
|
3054
|
-
"bottom left": "bottom-4 left-4",
|
|
3055
|
-
"top center": "top-4 self-center",
|
|
3056
|
-
"bottom center": "bottom-4 self-center"
|
|
3057
|
-
}
|
|
3058
|
-
}
|
|
2665
|
+
var formControlErrorStyle = tva({
|
|
2666
|
+
base: "flex flex-row justify-start items-center mt-1 gap-1"
|
|
3059
2667
|
});
|
|
3060
|
-
var
|
|
3061
|
-
base: "text-
|
|
2668
|
+
var formControlErrorTextStyle = tva({
|
|
2669
|
+
base: "text-destructive text-xs font-body",
|
|
3062
2670
|
variants: {
|
|
3063
2671
|
isTruncated: {
|
|
3064
|
-
true: ""
|
|
2672
|
+
true: "web:truncate"
|
|
3065
2673
|
},
|
|
3066
2674
|
bold: {
|
|
3067
2675
|
true: "font-bold"
|
|
@@ -3072,11 +2680,6 @@ var fabLabelStyle = tva({
|
|
|
3072
2680
|
strikeThrough: {
|
|
3073
2681
|
true: "line-through"
|
|
3074
2682
|
},
|
|
3075
|
-
size: {
|
|
3076
|
-
sm: "text-sm",
|
|
3077
|
-
md: "text-base",
|
|
3078
|
-
lg: "text-lg"
|
|
3079
|
-
},
|
|
3080
2683
|
sub: {
|
|
3081
2684
|
true: "text-xs"
|
|
3082
2685
|
},
|
|
@@ -3086,123 +2689,10 @@ var fabLabelStyle = tva({
|
|
|
3086
2689
|
highlight: {
|
|
3087
2690
|
true: "bg-yellow-500"
|
|
3088
2691
|
}
|
|
3089
|
-
},
|
|
3090
|
-
parentVariants: {
|
|
3091
|
-
size: {
|
|
3092
|
-
sm: "text-sm",
|
|
3093
|
-
md: "text-base",
|
|
3094
|
-
lg: "text-lg"
|
|
3095
|
-
}
|
|
3096
|
-
}
|
|
3097
|
-
});
|
|
3098
|
-
var fabIconStyle = tva({
|
|
3099
|
-
base: "text-primary-foreground/90 fill-none",
|
|
3100
|
-
variants: {
|
|
3101
|
-
size: {
|
|
3102
|
-
sm: "h-3.5 w-3.5",
|
|
3103
|
-
md: "h-4 w-4",
|
|
3104
|
-
lg: "h-5 w-5"
|
|
3105
|
-
}
|
|
3106
2692
|
}
|
|
3107
2693
|
});
|
|
3108
|
-
var
|
|
3109
|
-
|
|
3110
|
-
});
|
|
3111
|
-
var FabLabel = React48.forwardRef(function FabLabel2({ size, isTruncated = false, bold = false, underline = false, strikeThrough = false, className, ...props }, ref) {
|
|
3112
|
-
const { size: parentSize } = useStyleContext(SCOPE9);
|
|
3113
|
-
return /* @__PURE__ */ jsx(
|
|
3114
|
-
UIFab.Label,
|
|
3115
|
-
{
|
|
3116
|
-
ref,
|
|
3117
|
-
...props,
|
|
3118
|
-
className: fabLabelStyle({
|
|
3119
|
-
parentVariants: {
|
|
3120
|
-
size: parentSize
|
|
3121
|
-
},
|
|
3122
|
-
size,
|
|
3123
|
-
isTruncated,
|
|
3124
|
-
bold,
|
|
3125
|
-
underline,
|
|
3126
|
-
strikeThrough,
|
|
3127
|
-
class: className
|
|
3128
|
-
})
|
|
3129
|
-
}
|
|
3130
|
-
);
|
|
3131
|
-
});
|
|
3132
|
-
var FabIcon = React48.forwardRef(function FabIcon2({ size, className, ...props }, ref) {
|
|
3133
|
-
const { size: parentSize } = useStyleContext(SCOPE9);
|
|
3134
|
-
if (typeof size === "number") {
|
|
3135
|
-
return /* @__PURE__ */ jsx(UIFab.Icon, { ref, ...props, className: fabIconStyle({ class: className }), size });
|
|
3136
|
-
} else if ((props.height !== void 0 || props.width !== void 0) && size === void 0) {
|
|
3137
|
-
return /* @__PURE__ */ jsx(UIFab.Icon, { ref, ...props, className: fabIconStyle({ class: className }) });
|
|
3138
|
-
}
|
|
3139
|
-
return /* @__PURE__ */ jsx(
|
|
3140
|
-
UIFab.Icon,
|
|
3141
|
-
{
|
|
3142
|
-
ref,
|
|
3143
|
-
...props,
|
|
3144
|
-
className: fabIconStyle({
|
|
3145
|
-
parentVariants: {
|
|
3146
|
-
size: parentSize
|
|
3147
|
-
},
|
|
3148
|
-
size,
|
|
3149
|
-
class: className
|
|
3150
|
-
})
|
|
3151
|
-
}
|
|
3152
|
-
);
|
|
3153
|
-
});
|
|
3154
|
-
Fab.displayName = "Fab";
|
|
3155
|
-
FabLabel.displayName = "FabLabel";
|
|
3156
|
-
FabIcon.displayName = "FabIcon";
|
|
3157
|
-
function FlatList3(props) {
|
|
3158
|
-
const optimizedProps = Platform.OS === "android" ? {
|
|
3159
|
-
removeClippedSubviews: true,
|
|
3160
|
-
maxToRenderPerBatch: 5,
|
|
3161
|
-
updateCellsBatchingPeriod: 100,
|
|
3162
|
-
initialNumToRender: 5,
|
|
3163
|
-
windowSize: 5,
|
|
3164
|
-
...props
|
|
3165
|
-
} : props;
|
|
3166
|
-
return /* @__PURE__ */ jsx(FlatList, { ...optimizedProps });
|
|
3167
|
-
}
|
|
3168
|
-
var SCOPE10 = "FORM_CONTROL";
|
|
3169
|
-
var formControlStyle = tva({
|
|
3170
|
-
base: "flex flex-col"
|
|
3171
|
-
});
|
|
3172
|
-
var formControlErrorIconStyle = tva({
|
|
3173
|
-
base: "text-destructive fill-none h-[18px] w-[18px]"
|
|
3174
|
-
});
|
|
3175
|
-
var formControlErrorStyle = tva({
|
|
3176
|
-
base: "flex flex-row justify-start items-center mt-1 gap-1"
|
|
3177
|
-
});
|
|
3178
|
-
var formControlErrorTextStyle = tva({
|
|
3179
|
-
base: "text-destructive text-xs font-body",
|
|
3180
|
-
variants: {
|
|
3181
|
-
isTruncated: {
|
|
3182
|
-
true: "web:truncate"
|
|
3183
|
-
},
|
|
3184
|
-
bold: {
|
|
3185
|
-
true: "font-bold"
|
|
3186
|
-
},
|
|
3187
|
-
underline: {
|
|
3188
|
-
true: "underline"
|
|
3189
|
-
},
|
|
3190
|
-
strikeThrough: {
|
|
3191
|
-
true: "line-through"
|
|
3192
|
-
},
|
|
3193
|
-
sub: {
|
|
3194
|
-
true: "text-xs"
|
|
3195
|
-
},
|
|
3196
|
-
italic: {
|
|
3197
|
-
true: "italic"
|
|
3198
|
-
},
|
|
3199
|
-
highlight: {
|
|
3200
|
-
true: "bg-yellow-500"
|
|
3201
|
-
}
|
|
3202
|
-
}
|
|
3203
|
-
});
|
|
3204
|
-
var formControlHelperStyle = tva({
|
|
3205
|
-
base: "flex flex-row justify-start items-center mt-1 font-body"
|
|
2694
|
+
var formControlHelperStyle = tva({
|
|
2695
|
+
base: "flex flex-row justify-start items-center mt-1 font-body"
|
|
3206
2696
|
});
|
|
3207
2697
|
var formControlHelperTextStyle = tva({
|
|
3208
2698
|
base: "text-foreground/70 font-body text-sm",
|
|
@@ -3285,7 +2775,7 @@ var formControlLabelAstrickStyle = tva({
|
|
|
3285
2775
|
}
|
|
3286
2776
|
}
|
|
3287
2777
|
});
|
|
3288
|
-
var FormControlLabelAstrick =
|
|
2778
|
+
var FormControlLabelAstrick = React29.forwardRef(
|
|
3289
2779
|
function FormControlLabelAstrick2({ className, ...props }, ref) {
|
|
3290
2780
|
return /* @__PURE__ */ jsx(
|
|
3291
2781
|
Text,
|
|
@@ -3300,7 +2790,7 @@ var FormControlLabelAstrick = React48.forwardRef(
|
|
|
3300
2790
|
}
|
|
3301
2791
|
);
|
|
3302
2792
|
var UIFormControl = createFormControl({
|
|
3303
|
-
Root: withStyleContext(View,
|
|
2793
|
+
Root: withStyleContext(View, SCOPE7),
|
|
3304
2794
|
Error: View,
|
|
3305
2795
|
ErrorText: Text,
|
|
3306
2796
|
ErrorIcon: UIIcon,
|
|
@@ -3322,15 +2812,15 @@ cssInterop(UIIcon, {
|
|
|
3322
2812
|
}
|
|
3323
2813
|
}
|
|
3324
2814
|
});
|
|
3325
|
-
var FormControl =
|
|
2815
|
+
var FormControl = React29.forwardRef(function FormControl2({ className, ...props }, ref) {
|
|
3326
2816
|
return /* @__PURE__ */ jsx(UIFormControl, { ref, className: formControlStyle({ class: className }), ...props });
|
|
3327
2817
|
});
|
|
3328
|
-
var FormControlError =
|
|
2818
|
+
var FormControlError = React29.forwardRef(
|
|
3329
2819
|
function FormControlError2({ className, ...props }, ref) {
|
|
3330
2820
|
return /* @__PURE__ */ jsx(UIFormControl.Error, { ref, className: formControlErrorStyle({ class: className }), ...props });
|
|
3331
2821
|
}
|
|
3332
2822
|
);
|
|
3333
|
-
var FormControlErrorText =
|
|
2823
|
+
var FormControlErrorText = React29.forwardRef(function FormControlErrorText2({ className, ...props }, ref) {
|
|
3334
2824
|
return /* @__PURE__ */ jsx(
|
|
3335
2825
|
UIFormControl.Error.Text,
|
|
3336
2826
|
{
|
|
@@ -3342,15 +2832,15 @@ var FormControlErrorText = React48.forwardRef(function FormControlErrorText2({ c
|
|
|
3342
2832
|
}
|
|
3343
2833
|
);
|
|
3344
2834
|
});
|
|
3345
|
-
var FormControlErrorIcon =
|
|
2835
|
+
var FormControlErrorIcon = React29.forwardRef(function FormControlErrorIcon2({ className, ...props }, ref) {
|
|
3346
2836
|
return /* @__PURE__ */ jsx(UIFormControl.Error.Icon, { ref, ...props, className: formControlErrorIconStyle({ class: className }) });
|
|
3347
2837
|
});
|
|
3348
|
-
var FormControlLabel =
|
|
2838
|
+
var FormControlLabel = React29.forwardRef(
|
|
3349
2839
|
function FormControlLabel2({ className, ...props }, ref) {
|
|
3350
2840
|
return /* @__PURE__ */ jsx(UIFormControl.Label, { ref, className: formControlLabelStyle({ class: className }), ...props });
|
|
3351
2841
|
}
|
|
3352
2842
|
);
|
|
3353
|
-
var FormControlLabelText =
|
|
2843
|
+
var FormControlLabelText = React29.forwardRef(function FormControlLabelText2({ className, ...props }, ref) {
|
|
3354
2844
|
return /* @__PURE__ */ jsx(
|
|
3355
2845
|
UIFormControl.Label.Text,
|
|
3356
2846
|
{
|
|
@@ -3362,7 +2852,7 @@ var FormControlLabelText = React48.forwardRef(function FormControlLabelText2({ c
|
|
|
3362
2852
|
}
|
|
3363
2853
|
);
|
|
3364
2854
|
});
|
|
3365
|
-
var FormControlHelper =
|
|
2855
|
+
var FormControlHelper = React29.forwardRef(
|
|
3366
2856
|
function FormControlHelper2({ className, ...props }, ref) {
|
|
3367
2857
|
return /* @__PURE__ */ jsx(
|
|
3368
2858
|
UIFormControl.Helper,
|
|
@@ -3376,7 +2866,7 @@ var FormControlHelper = React48.forwardRef(
|
|
|
3376
2866
|
);
|
|
3377
2867
|
}
|
|
3378
2868
|
);
|
|
3379
|
-
var FormControlHelperText =
|
|
2869
|
+
var FormControlHelperText = React29.forwardRef(function FormControlHelperText2({ className, ...props }, ref) {
|
|
3380
2870
|
return /* @__PURE__ */ jsx(
|
|
3381
2871
|
UIFormControl.Helper.Text,
|
|
3382
2872
|
{
|
|
@@ -3397,221 +2887,6 @@ FormControlLabelText.displayName = "FormControlLabelText";
|
|
|
3397
2887
|
FormControlLabelAstrick.displayName = "FormControlLabelAstrick";
|
|
3398
2888
|
FormControlHelper.displayName = "FormControlHelper";
|
|
3399
2889
|
FormControlHelperText.displayName = "FormControlHelperText";
|
|
3400
|
-
var colors = {
|
|
3401
|
-
light: {
|
|
3402
|
-
"--background": "250 250 250",
|
|
3403
|
-
"--foreground": "24 24 27",
|
|
3404
|
-
"--card": "255 255 255",
|
|
3405
|
-
"--card-foreground": "24 24 27",
|
|
3406
|
-
"--popover": "255 255 255",
|
|
3407
|
-
"--popover-foreground": "24 24 27",
|
|
3408
|
-
"--primary": "37 99 235",
|
|
3409
|
-
"--primary-foreground": "255 255 255",
|
|
3410
|
-
"--secondary": "71 85 105",
|
|
3411
|
-
"--secondary-foreground": "255 255 255",
|
|
3412
|
-
"--muted": "244 244 245",
|
|
3413
|
-
"--muted-foreground": "82 82 91",
|
|
3414
|
-
"--accent": "239 246 255",
|
|
3415
|
-
"--accent-foreground": "30 58 138",
|
|
3416
|
-
"--destructive": "220 38 38",
|
|
3417
|
-
"--destructive-foreground": "255 255 255",
|
|
3418
|
-
"--border": "228 228 231",
|
|
3419
|
-
"--input": "228 228 231",
|
|
3420
|
-
"--ring": "59 130 246",
|
|
3421
|
-
"--success": "22 163 74",
|
|
3422
|
-
"--success-foreground": "255 255 255",
|
|
3423
|
-
"--warning": "217 119 6",
|
|
3424
|
-
"--warning-foreground": "255 255 255",
|
|
3425
|
-
"--error": "220 38 38",
|
|
3426
|
-
"--error-foreground": "255 255 255",
|
|
3427
|
-
"--info": "2 132 199",
|
|
3428
|
-
"--info-foreground": "255 255 255"
|
|
3429
|
-
},
|
|
3430
|
-
dark: {
|
|
3431
|
-
"--background": "24 24 27",
|
|
3432
|
-
"--foreground": "244 244 245",
|
|
3433
|
-
"--card": "39 39 42",
|
|
3434
|
-
"--card-foreground": "244 244 245",
|
|
3435
|
-
"--popover": "39 39 42",
|
|
3436
|
-
"--popover-foreground": "244 244 245",
|
|
3437
|
-
"--primary": "59 130 246",
|
|
3438
|
-
"--primary-foreground": "255 255 255",
|
|
3439
|
-
"--secondary": "100 116 139",
|
|
3440
|
-
"--secondary-foreground": "255 255 255",
|
|
3441
|
-
"--muted": "39 39 42",
|
|
3442
|
-
"--muted-foreground": "161 161 170",
|
|
3443
|
-
"--accent": "30 58 138",
|
|
3444
|
-
"--accent-foreground": "219 234 254",
|
|
3445
|
-
"--destructive": "239 68 68",
|
|
3446
|
-
"--destructive-foreground": "255 255 255",
|
|
3447
|
-
"--border": "63 63 70",
|
|
3448
|
-
"--input": "63 63 70",
|
|
3449
|
-
"--ring": "96 165 250",
|
|
3450
|
-
"--success": "34 197 94",
|
|
3451
|
-
"--success-foreground": "24 24 27",
|
|
3452
|
-
"--warning": "245 158 11",
|
|
3453
|
-
"--warning-foreground": "24 24 27",
|
|
3454
|
-
"--error": "239 68 68",
|
|
3455
|
-
"--error-foreground": "255 255 255",
|
|
3456
|
-
"--info": "14 165 233",
|
|
3457
|
-
"--info-foreground": "255 255 255"
|
|
3458
|
-
},
|
|
3459
|
-
"spring-light": {
|
|
3460
|
-
"--background": "240 253 244",
|
|
3461
|
-
"--foreground": "20 83 45",
|
|
3462
|
-
"--card": "255 255 255",
|
|
3463
|
-
"--card-foreground": "20 83 45",
|
|
3464
|
-
"--popover": "255 255 255",
|
|
3465
|
-
"--popover-foreground": "20 83 45",
|
|
3466
|
-
"--primary": "22 163 74",
|
|
3467
|
-
"--primary-foreground": "255 255 255",
|
|
3468
|
-
"--secondary": "34 197 94",
|
|
3469
|
-
"--secondary-foreground": "255 255 255",
|
|
3470
|
-
"--muted": "220 252 231",
|
|
3471
|
-
"--muted-foreground": "21 128 61",
|
|
3472
|
-
"--accent": "187 247 208",
|
|
3473
|
-
"--accent-foreground": "20 83 45",
|
|
3474
|
-
"--destructive": "220 38 38",
|
|
3475
|
-
"--destructive-foreground": "255 255 255",
|
|
3476
|
-
"--border": "187 247 208",
|
|
3477
|
-
"--input": "187 247 208",
|
|
3478
|
-
"--ring": "74 222 128",
|
|
3479
|
-
"--success": "22 163 74",
|
|
3480
|
-
"--success-foreground": "255 255 255",
|
|
3481
|
-
"--warning": "217 119 6",
|
|
3482
|
-
"--warning-foreground": "255 255 255",
|
|
3483
|
-
"--error": "220 38 38",
|
|
3484
|
-
"--error-foreground": "255 255 255",
|
|
3485
|
-
"--info": "2 132 199",
|
|
3486
|
-
"--info-foreground": "255 255 255"
|
|
3487
|
-
},
|
|
3488
|
-
"spring-dark": {
|
|
3489
|
-
"--background": "5 46 22",
|
|
3490
|
-
"--foreground": "240 253 244",
|
|
3491
|
-
"--card": "20 83 45",
|
|
3492
|
-
"--card-foreground": "240 253 244",
|
|
3493
|
-
"--popover": "20 83 45",
|
|
3494
|
-
"--popover-foreground": "240 253 244",
|
|
3495
|
-
"--primary": "74 222 128",
|
|
3496
|
-
"--primary-foreground": "5 46 22",
|
|
3497
|
-
"--secondary": "134 239 172",
|
|
3498
|
-
"--secondary-foreground": "5 46 22",
|
|
3499
|
-
"--muted": "20 83 45",
|
|
3500
|
-
"--muted-foreground": "187 247 208",
|
|
3501
|
-
"--accent": "22 101 52",
|
|
3502
|
-
"--accent-foreground": "240 253 244",
|
|
3503
|
-
"--destructive": "239 68 68",
|
|
3504
|
-
"--destructive-foreground": "255 255 255",
|
|
3505
|
-
"--border": "22 101 52",
|
|
3506
|
-
"--input": "22 101 52",
|
|
3507
|
-
"--ring": "134 239 172",
|
|
3508
|
-
"--success": "74 222 128",
|
|
3509
|
-
"--success-foreground": "5 46 22",
|
|
3510
|
-
"--warning": "251 191 36",
|
|
3511
|
-
"--warning-foreground": "5 46 22",
|
|
3512
|
-
"--error": "248 113 113",
|
|
3513
|
-
"--error-foreground": "5 46 22",
|
|
3514
|
-
"--info": "56 189 248",
|
|
3515
|
-
"--info-foreground": "5 46 22"
|
|
3516
|
-
}
|
|
3517
|
-
};
|
|
3518
|
-
var config = {
|
|
3519
|
-
light: vars(colors["light"]),
|
|
3520
|
-
dark: vars(colors["dark"]),
|
|
3521
|
-
"spring-light": vars(colors["spring-light"]),
|
|
3522
|
-
"spring-dark": vars(colors["spring-dark"])
|
|
3523
|
-
};
|
|
3524
|
-
var variants = {
|
|
3525
|
-
default: { dark: "dark", light: "light" },
|
|
3526
|
-
spring: { dark: "spring-dark", light: "spring-light" }
|
|
3527
|
-
};
|
|
3528
|
-
var ThemeContext = createContext(null);
|
|
3529
|
-
var useMountedColors = () => useContext(ThemeContext);
|
|
3530
|
-
var MountedThemeContext = createContext(null);
|
|
3531
|
-
var useMountedTheme = () => useContext(MountedThemeContext);
|
|
3532
|
-
function resolveThemeId(variants2, variant, mode) {
|
|
3533
|
-
const mapped = variant ? variants2?.[variant]?.[mode] : void 0;
|
|
3534
|
-
return mapped ?? mode;
|
|
3535
|
-
}
|
|
3536
|
-
|
|
3537
|
-
// components/ui/gluestack-ui-provider/useGluestackColors.ts
|
|
3538
|
-
function toCamelCase(str) {
|
|
3539
|
-
return str.replace(/^--/, "").replace(/-([a-z])/g, (_, letter) => letter.toUpperCase());
|
|
3540
|
-
}
|
|
3541
|
-
function rgbToHex(rgbString) {
|
|
3542
|
-
const parts = rgbString.trim().split(/\s+/);
|
|
3543
|
-
if (parts.length !== 3) return "#000000";
|
|
3544
|
-
const [r, g, b] = parts.map((s) => {
|
|
3545
|
-
const num = parseInt(s, 10);
|
|
3546
|
-
return isNaN(num) ? 0 : num;
|
|
3547
|
-
});
|
|
3548
|
-
const toHex = (n) => Math.max(0, Math.min(255, n)).toString(16).padStart(2, "0");
|
|
3549
|
-
return `#${toHex(r)}${toHex(g)}${toHex(b)}`;
|
|
3550
|
-
}
|
|
3551
|
-
function useGluestackColors() {
|
|
3552
|
-
const { colorScheme } = useColorScheme();
|
|
3553
|
-
const theme = useMountedColors() ?? colors;
|
|
3554
|
-
const mounted = useMountedTheme();
|
|
3555
|
-
const palettes = theme;
|
|
3556
|
-
const palette = palettes[mounted?.themeId ?? ""] ?? palettes[colorScheme || "light"] ?? palettes[mounted?.themeIds[0] ?? ""] ?? {};
|
|
3557
|
-
const result = {};
|
|
3558
|
-
Object.entries(palette).forEach(([key, value]) => {
|
|
3559
|
-
const camelKey = toCamelCase(key);
|
|
3560
|
-
result[camelKey] = rgbToHex(value);
|
|
3561
|
-
});
|
|
3562
|
-
return result;
|
|
3563
|
-
}
|
|
3564
|
-
function useCalendarTheme() {
|
|
3565
|
-
const palette = useGluestackColors();
|
|
3566
|
-
return {
|
|
3567
|
-
backgroundColor: palette.background || "#ffffff",
|
|
3568
|
-
calendarBackground: palette.background || "#ffffff",
|
|
3569
|
-
textSectionTitleColor: palette.mutedForeground || "#737373",
|
|
3570
|
-
selectedDayBackgroundColor: palette.primary || "#171717",
|
|
3571
|
-
selectedDayTextColor: palette.primaryForeground || "#fafafa",
|
|
3572
|
-
todayTextColor: palette.primary || "#171717",
|
|
3573
|
-
todayBackgroundColor: palette.accent || "#f7f7f7",
|
|
3574
|
-
dayTextColor: palette.foreground || "#0a0a0a",
|
|
3575
|
-
textDisabledColor: palette.mutedForeground || "#737373",
|
|
3576
|
-
dotColor: palette.primary || "#171717",
|
|
3577
|
-
selectedDotColor: palette.primaryForeground || "#fafafa",
|
|
3578
|
-
arrowColor: palette.foreground || "#0a0a0a",
|
|
3579
|
-
monthTextColor: palette.foreground || "#0a0a0a",
|
|
3580
|
-
indicatorColor: palette.primary || "#171717"
|
|
3581
|
-
};
|
|
3582
|
-
}
|
|
3583
|
-
var useGluestackColors2 = useGluestackColors;
|
|
3584
|
-
var useCalendarTheme2 = useCalendarTheme;
|
|
3585
|
-
function createGluestackUIProvider(theme) {
|
|
3586
|
-
const vars2 = theme.config ?? theme.colors;
|
|
3587
|
-
const variantMap = theme.variants;
|
|
3588
|
-
const themeIds = Object.keys(vars2);
|
|
3589
|
-
return function ThemedProvider({ mode = "light", variant, ...props }) {
|
|
3590
|
-
const { colorScheme, setColorScheme } = useColorScheme();
|
|
3591
|
-
useEffect(() => {
|
|
3592
|
-
setColorScheme(mode);
|
|
3593
|
-
}, [mode]);
|
|
3594
|
-
const resolvedMode = mode === "system" ? colorScheme ?? "light" : mode;
|
|
3595
|
-
const themeId = resolveThemeId(variantMap, variant, resolvedMode);
|
|
3596
|
-
const mountedTheme = React48.useMemo(() => ({ themeId, themeIds }), [themeId, themeIds]);
|
|
3597
|
-
return /* @__PURE__ */ jsx(
|
|
3598
|
-
View,
|
|
3599
|
-
{
|
|
3600
|
-
style: [
|
|
3601
|
-
vars2[themeId],
|
|
3602
|
-
{ flex: 1, height: "100%", width: "100%" },
|
|
3603
|
-
props.style
|
|
3604
|
-
],
|
|
3605
|
-
children: /* @__PURE__ */ jsx(ThemeContext.Provider, { value: theme.colors, children: /* @__PURE__ */ jsx(MountedThemeContext.Provider, { value: mountedTheme, children: /* @__PURE__ */ jsx(OverlayProvider, { children: /* @__PURE__ */ jsx(ToastProvider, { children: props.children }) }) }) })
|
|
3606
|
-
}
|
|
3607
|
-
);
|
|
3608
|
-
};
|
|
3609
|
-
}
|
|
3610
|
-
var GluestackUIProvider = createGluestackUIProvider({
|
|
3611
|
-
colors,
|
|
3612
|
-
config,
|
|
3613
|
-
variants
|
|
3614
|
-
});
|
|
3615
2890
|
var gridBaseStyle = isWeb ? "grid grid-cols-12" : "box-border flex-row flex-wrap justify-start";
|
|
3616
2891
|
var gridItemBaseStyle = isWeb ? "w-auto col-span-1" : "";
|
|
3617
2892
|
var gridStyle = tva({
|
|
@@ -3684,7 +2959,7 @@ var Grid = forwardRef(function Grid2({ className, _extra, children, ...props },
|
|
|
3684
2959
|
const obj = generateResponsiveNumColumns({ gridClass });
|
|
3685
2960
|
const responsiveNumColumns = useBreakpointValue(obj);
|
|
3686
2961
|
const itemsPerRow = useMemo(() => {
|
|
3687
|
-
const colSpanArr =
|
|
2962
|
+
const colSpanArr = React29.Children.map(children, (child) => {
|
|
3688
2963
|
const gridItemClassName = child?.props?._extra?.className;
|
|
3689
2964
|
const colSpan2 = getBreakPointValue(generateResponsiveColSpans({ gridItemClassName }), DEVICE_WIDTH);
|
|
3690
2965
|
const colSpan = colSpan2 ? colSpan2 : 1;
|
|
@@ -3693,7 +2968,7 @@ var Grid = forwardRef(function Grid2({ className, _extra, children, ...props },
|
|
|
3693
2968
|
}
|
|
3694
2969
|
return colSpan;
|
|
3695
2970
|
});
|
|
3696
|
-
const childrenArray =
|
|
2971
|
+
const childrenArray = React29.Children.toArray(children);
|
|
3697
2972
|
const rowItemsCount = arrangeChildrenIntoRows({
|
|
3698
2973
|
childrenArray,
|
|
3699
2974
|
colSpanArr,
|
|
@@ -3701,9 +2976,9 @@ var Grid = forwardRef(function Grid2({ className, _extra, children, ...props },
|
|
|
3701
2976
|
});
|
|
3702
2977
|
return rowItemsCount;
|
|
3703
2978
|
}, [responsiveNumColumns, children]);
|
|
3704
|
-
const childrenWithProps =
|
|
3705
|
-
if (
|
|
3706
|
-
return
|
|
2979
|
+
const childrenWithProps = React29.Children.map(children, (child, index) => {
|
|
2980
|
+
if (React29.isValidElement(child)) {
|
|
2981
|
+
return React29.cloneElement(child, { key: index, index });
|
|
3707
2982
|
}
|
|
3708
2983
|
return child;
|
|
3709
2984
|
});
|
|
@@ -3807,253 +3082,7 @@ var GridItem = forwardRef(function GridItem2({ className, _extra, ...props }, re
|
|
|
3807
3082
|
});
|
|
3808
3083
|
Grid.displayName = "Grid";
|
|
3809
3084
|
GridItem.displayName = "GridItem";
|
|
3810
|
-
var
|
|
3811
|
-
var headingStyle = tva({
|
|
3812
|
-
base: `text-foreground font-bold font-heading tracking-sm my-0 ${baseStyle4}`,
|
|
3813
|
-
variants: {
|
|
3814
|
-
isTruncated: {
|
|
3815
|
-
true: "truncate"
|
|
3816
|
-
},
|
|
3817
|
-
bold: {
|
|
3818
|
-
true: "font-bold"
|
|
3819
|
-
},
|
|
3820
|
-
underline: {
|
|
3821
|
-
true: "underline"
|
|
3822
|
-
},
|
|
3823
|
-
strikeThrough: {
|
|
3824
|
-
true: "line-through"
|
|
3825
|
-
},
|
|
3826
|
-
sub: {
|
|
3827
|
-
true: "text-xs"
|
|
3828
|
-
},
|
|
3829
|
-
italic: {
|
|
3830
|
-
true: "italic"
|
|
3831
|
-
},
|
|
3832
|
-
highlight: {
|
|
3833
|
-
true: "bg-yellow-500"
|
|
3834
|
-
},
|
|
3835
|
-
size: {
|
|
3836
|
-
"5xl": "text-6xl",
|
|
3837
|
-
"4xl": "text-5xl",
|
|
3838
|
-
"3xl": "text-4xl",
|
|
3839
|
-
"2xl": "text-3xl",
|
|
3840
|
-
xl: "text-2xl",
|
|
3841
|
-
lg: "text-xl",
|
|
3842
|
-
md: "text-lg",
|
|
3843
|
-
sm: "text-base",
|
|
3844
|
-
xs: "text-sm"
|
|
3845
|
-
}
|
|
3846
|
-
}
|
|
3847
|
-
});
|
|
3848
|
-
cssInterop(H1, { className: "style" });
|
|
3849
|
-
cssInterop(H2, { className: "style" });
|
|
3850
|
-
cssInterop(H3, { className: "style" });
|
|
3851
|
-
cssInterop(H4, { className: "style" });
|
|
3852
|
-
cssInterop(H5, { className: "style" });
|
|
3853
|
-
cssInterop(H6, { className: "style" });
|
|
3854
|
-
var MappedHeading = memo(
|
|
3855
|
-
forwardRef(function MappedHeading2({ size, className, isTruncated, bold, underline, strikeThrough, sub, italic, highlight, ...props }, ref) {
|
|
3856
|
-
switch (size) {
|
|
3857
|
-
case "5xl":
|
|
3858
|
-
case "4xl":
|
|
3859
|
-
case "3xl":
|
|
3860
|
-
return /* @__PURE__ */ jsx(
|
|
3861
|
-
H1,
|
|
3862
|
-
{
|
|
3863
|
-
className: headingStyle({
|
|
3864
|
-
size,
|
|
3865
|
-
isTruncated,
|
|
3866
|
-
bold,
|
|
3867
|
-
underline,
|
|
3868
|
-
strikeThrough,
|
|
3869
|
-
sub,
|
|
3870
|
-
italic,
|
|
3871
|
-
highlight,
|
|
3872
|
-
class: className
|
|
3873
|
-
}),
|
|
3874
|
-
...props,
|
|
3875
|
-
ref
|
|
3876
|
-
}
|
|
3877
|
-
);
|
|
3878
|
-
case "2xl":
|
|
3879
|
-
return /* @__PURE__ */ jsx(
|
|
3880
|
-
H2,
|
|
3881
|
-
{
|
|
3882
|
-
className: headingStyle({
|
|
3883
|
-
size,
|
|
3884
|
-
isTruncated,
|
|
3885
|
-
bold,
|
|
3886
|
-
underline,
|
|
3887
|
-
strikeThrough,
|
|
3888
|
-
sub,
|
|
3889
|
-
italic,
|
|
3890
|
-
highlight,
|
|
3891
|
-
class: className
|
|
3892
|
-
}),
|
|
3893
|
-
...props,
|
|
3894
|
-
ref
|
|
3895
|
-
}
|
|
3896
|
-
);
|
|
3897
|
-
case "xl":
|
|
3898
|
-
return /* @__PURE__ */ jsx(
|
|
3899
|
-
H3,
|
|
3900
|
-
{
|
|
3901
|
-
className: headingStyle({
|
|
3902
|
-
size,
|
|
3903
|
-
isTruncated,
|
|
3904
|
-
bold,
|
|
3905
|
-
underline,
|
|
3906
|
-
strikeThrough,
|
|
3907
|
-
sub,
|
|
3908
|
-
italic,
|
|
3909
|
-
highlight,
|
|
3910
|
-
class: className
|
|
3911
|
-
}),
|
|
3912
|
-
...props,
|
|
3913
|
-
ref
|
|
3914
|
-
}
|
|
3915
|
-
);
|
|
3916
|
-
case "lg":
|
|
3917
|
-
return /* @__PURE__ */ jsx(
|
|
3918
|
-
H4,
|
|
3919
|
-
{
|
|
3920
|
-
className: headingStyle({
|
|
3921
|
-
size,
|
|
3922
|
-
isTruncated,
|
|
3923
|
-
bold,
|
|
3924
|
-
underline,
|
|
3925
|
-
strikeThrough,
|
|
3926
|
-
sub,
|
|
3927
|
-
italic,
|
|
3928
|
-
highlight,
|
|
3929
|
-
class: className
|
|
3930
|
-
}),
|
|
3931
|
-
...props,
|
|
3932
|
-
ref
|
|
3933
|
-
}
|
|
3934
|
-
);
|
|
3935
|
-
case "md":
|
|
3936
|
-
return /* @__PURE__ */ jsx(
|
|
3937
|
-
H5,
|
|
3938
|
-
{
|
|
3939
|
-
className: headingStyle({
|
|
3940
|
-
size,
|
|
3941
|
-
isTruncated,
|
|
3942
|
-
bold,
|
|
3943
|
-
underline,
|
|
3944
|
-
strikeThrough,
|
|
3945
|
-
sub,
|
|
3946
|
-
italic,
|
|
3947
|
-
highlight,
|
|
3948
|
-
class: className
|
|
3949
|
-
}),
|
|
3950
|
-
...props,
|
|
3951
|
-
ref
|
|
3952
|
-
}
|
|
3953
|
-
);
|
|
3954
|
-
case "sm":
|
|
3955
|
-
case "xs":
|
|
3956
|
-
return /* @__PURE__ */ jsx(
|
|
3957
|
-
H6,
|
|
3958
|
-
{
|
|
3959
|
-
className: headingStyle({
|
|
3960
|
-
size,
|
|
3961
|
-
isTruncated,
|
|
3962
|
-
bold,
|
|
3963
|
-
underline,
|
|
3964
|
-
strikeThrough,
|
|
3965
|
-
sub,
|
|
3966
|
-
italic,
|
|
3967
|
-
highlight,
|
|
3968
|
-
class: className
|
|
3969
|
-
}),
|
|
3970
|
-
...props,
|
|
3971
|
-
ref
|
|
3972
|
-
}
|
|
3973
|
-
);
|
|
3974
|
-
default:
|
|
3975
|
-
return /* @__PURE__ */ jsx(
|
|
3976
|
-
H4,
|
|
3977
|
-
{
|
|
3978
|
-
className: headingStyle({
|
|
3979
|
-
size,
|
|
3980
|
-
isTruncated,
|
|
3981
|
-
bold,
|
|
3982
|
-
underline,
|
|
3983
|
-
strikeThrough,
|
|
3984
|
-
sub,
|
|
3985
|
-
italic,
|
|
3986
|
-
highlight,
|
|
3987
|
-
class: className
|
|
3988
|
-
}),
|
|
3989
|
-
...props,
|
|
3990
|
-
ref
|
|
3991
|
-
}
|
|
3992
|
-
);
|
|
3993
|
-
}
|
|
3994
|
-
})
|
|
3995
|
-
);
|
|
3996
|
-
var Heading = memo(
|
|
3997
|
-
forwardRef(function Heading2({ className, size = "lg", as: AsComp, ...props }, ref) {
|
|
3998
|
-
const { isTruncated, bold, underline, strikeThrough, sub, italic, highlight } = props;
|
|
3999
|
-
if (AsComp) {
|
|
4000
|
-
return /* @__PURE__ */ jsx(
|
|
4001
|
-
AsComp,
|
|
4002
|
-
{
|
|
4003
|
-
className: headingStyle({
|
|
4004
|
-
size,
|
|
4005
|
-
isTruncated,
|
|
4006
|
-
bold,
|
|
4007
|
-
underline,
|
|
4008
|
-
strikeThrough,
|
|
4009
|
-
sub,
|
|
4010
|
-
italic,
|
|
4011
|
-
highlight,
|
|
4012
|
-
class: className
|
|
4013
|
-
}),
|
|
4014
|
-
...props
|
|
4015
|
-
}
|
|
4016
|
-
);
|
|
4017
|
-
}
|
|
4018
|
-
return /* @__PURE__ */ jsx(MappedHeading, { className, size, ref, ...props });
|
|
4019
|
-
})
|
|
4020
|
-
);
|
|
4021
|
-
Heading.displayName = "Heading";
|
|
4022
|
-
var baseStyle5 = isWeb ? "flex relative z-0 box-border border-0 list-none min-w-0 min-h-0 bg-transparent items-stretch m-0 p-0 text-decoration-none" : "";
|
|
4023
|
-
var hstackStyle = tva({
|
|
4024
|
-
base: `flex-row ${baseStyle5}`,
|
|
4025
|
-
variants: {
|
|
4026
|
-
space: {
|
|
4027
|
-
xs: "gap-1",
|
|
4028
|
-
sm: "gap-2",
|
|
4029
|
-
md: "gap-3",
|
|
4030
|
-
lg: "gap-4",
|
|
4031
|
-
xl: "gap-5",
|
|
4032
|
-
"2xl": "gap-6",
|
|
4033
|
-
"3xl": "gap-7",
|
|
4034
|
-
"4xl": "gap-8"
|
|
4035
|
-
},
|
|
4036
|
-
reversed: {
|
|
4037
|
-
true: "flex-row-reverse"
|
|
4038
|
-
}
|
|
4039
|
-
}
|
|
4040
|
-
});
|
|
4041
|
-
var HStack = React48.forwardRef(function HStack2({ className, space, reversed, ...props }, ref) {
|
|
4042
|
-
return /* @__PURE__ */ jsx(
|
|
4043
|
-
View,
|
|
4044
|
-
{
|
|
4045
|
-
className: hstackStyle({
|
|
4046
|
-
space,
|
|
4047
|
-
reversed,
|
|
4048
|
-
class: className
|
|
4049
|
-
}),
|
|
4050
|
-
...props,
|
|
4051
|
-
ref
|
|
4052
|
-
}
|
|
4053
|
-
);
|
|
4054
|
-
});
|
|
4055
|
-
HStack.displayName = "HStack";
|
|
4056
|
-
var UIIcon10 = createIcon({
|
|
3085
|
+
var UIIcon7 = createIcon({
|
|
4057
3086
|
Root: PrimitiveIcon
|
|
4058
3087
|
});
|
|
4059
3088
|
var iconStyle = tva({
|
|
@@ -4069,7 +3098,7 @@ var iconStyle = tva({
|
|
|
4069
3098
|
}
|
|
4070
3099
|
}
|
|
4071
3100
|
});
|
|
4072
|
-
cssInterop(
|
|
3101
|
+
cssInterop(UIIcon7, {
|
|
4073
3102
|
className: {
|
|
4074
3103
|
target: "style",
|
|
4075
3104
|
nativeStyleToProp: {
|
|
@@ -4081,20 +3110,20 @@ cssInterop(UIIcon10, {
|
|
|
4081
3110
|
}
|
|
4082
3111
|
}
|
|
4083
3112
|
});
|
|
4084
|
-
var Icon =
|
|
3113
|
+
var Icon = React29.forwardRef(function Icon2({ size = "md", className, ...props }, ref) {
|
|
4085
3114
|
if (typeof size === "number") {
|
|
4086
|
-
return /* @__PURE__ */ jsx(
|
|
3115
|
+
return /* @__PURE__ */ jsx(UIIcon7, { ref, ...props, className: iconStyle({ class: className }), size });
|
|
4087
3116
|
} else if ((props.height !== void 0 || props.width !== void 0) && size === void 0) {
|
|
4088
|
-
return /* @__PURE__ */ jsx(
|
|
3117
|
+
return /* @__PURE__ */ jsx(UIIcon7, { ref, ...props, className: iconStyle({ class: className }) });
|
|
4089
3118
|
}
|
|
4090
|
-
return /* @__PURE__ */ jsx(
|
|
3119
|
+
return /* @__PURE__ */ jsx(UIIcon7, { ref, ...props, className: iconStyle({ size, class: className }) });
|
|
4091
3120
|
});
|
|
4092
3121
|
var createIconUI = ({ ...props }) => {
|
|
4093
3122
|
const UIIconCreateIcon = createIcon({
|
|
4094
3123
|
Root: Svg,
|
|
4095
3124
|
...props
|
|
4096
3125
|
});
|
|
4097
|
-
return
|
|
3126
|
+
return React29.forwardRef(function UIIcon12({
|
|
4098
3127
|
className,
|
|
4099
3128
|
size,
|
|
4100
3129
|
...inComingProps
|
|
@@ -5107,52 +4136,9 @@ var UnlockIcon = createIcon({
|
|
|
5107
4136
|
] })
|
|
5108
4137
|
});
|
|
5109
4138
|
UnlockIcon.displayName = "UnlockIcon";
|
|
5110
|
-
var imageStyle = tva({
|
|
5111
|
-
base: "max-w-full",
|
|
5112
|
-
variants: {
|
|
5113
|
-
size: {
|
|
5114
|
-
"2xs": "h-6 w-6",
|
|
5115
|
-
xs: "h-10 w-10",
|
|
5116
|
-
sm: "h-16 w-16",
|
|
5117
|
-
md: "h-20 w-20",
|
|
5118
|
-
lg: "h-24 w-24",
|
|
5119
|
-
xl: "h-32 w-32",
|
|
5120
|
-
"2xl": "h-64 w-64",
|
|
5121
|
-
full: "h-full w-full",
|
|
5122
|
-
none: ""
|
|
5123
|
-
}
|
|
5124
|
-
}
|
|
5125
|
-
});
|
|
5126
|
-
var UIImage = createImage({ Root: Image });
|
|
5127
|
-
var Image2 = React48.forwardRef(function Image3({ size = "md", className, ...props }, ref) {
|
|
5128
|
-
return /* @__PURE__ */ jsx(
|
|
5129
|
-
UIImage,
|
|
5130
|
-
{
|
|
5131
|
-
className: imageStyle({ size, class: className }),
|
|
5132
|
-
...props,
|
|
5133
|
-
ref,
|
|
5134
|
-
style: Platform.OS === "web" ? { height: "revert-layer", width: "revert-layer" } : void 0
|
|
5135
|
-
}
|
|
5136
|
-
);
|
|
5137
|
-
});
|
|
5138
|
-
Image2.displayName = "Image";
|
|
5139
|
-
var imageBackgroundStyle = tva({});
|
|
5140
|
-
var ImageBackground = React48.forwardRef(function ImageBackground2({ className, ...props }, ref) {
|
|
5141
|
-
return /* @__PURE__ */ jsx(
|
|
5142
|
-
ImageBackground$1,
|
|
5143
|
-
{
|
|
5144
|
-
className: imageBackgroundStyle({
|
|
5145
|
-
class: className
|
|
5146
|
-
}),
|
|
5147
|
-
...props,
|
|
5148
|
-
ref
|
|
5149
|
-
}
|
|
5150
|
-
);
|
|
5151
|
-
});
|
|
5152
|
-
ImageBackground.displayName = "ImageBackground";
|
|
5153
4139
|
var { width: SCREEN_WIDTH, height: SCREEN_HEIGHT } = Dimensions.get("window");
|
|
5154
|
-
var AnimatedView4 =
|
|
5155
|
-
var AnimatedImage =
|
|
4140
|
+
var AnimatedView4 = Animated8.createAnimatedComponent(View);
|
|
4141
|
+
var AnimatedImage = Animated8.createAnimatedComponent(Image);
|
|
5156
4142
|
var imageViewerStyle = tva({
|
|
5157
4143
|
base: "w-full"
|
|
5158
4144
|
});
|
|
@@ -5177,7 +4163,7 @@ var imageViewerCounterStyle = tva({
|
|
|
5177
4163
|
var imageViewerCounterTextStyle = tva({
|
|
5178
4164
|
base: "text-white text-sm font-medium bg-black/60 px-4 py-2 rounded-full"
|
|
5179
4165
|
});
|
|
5180
|
-
var ImageViewerContext =
|
|
4166
|
+
var ImageViewerContext = React29.createContext({
|
|
5181
4167
|
images: [],
|
|
5182
4168
|
currentIndex: 0,
|
|
5183
4169
|
isOpen: false,
|
|
@@ -5191,11 +4177,11 @@ var ImageViewerContext = React48.createContext({
|
|
|
5191
4177
|
}
|
|
5192
4178
|
});
|
|
5193
4179
|
var useImageViewerContext = () => {
|
|
5194
|
-
const context =
|
|
4180
|
+
const context = React29.useContext(ImageViewerContext);
|
|
5195
4181
|
return context;
|
|
5196
4182
|
};
|
|
5197
|
-
var ZoomableImage =
|
|
5198
|
-
|
|
4183
|
+
var ZoomableImage = React29.memo(
|
|
4184
|
+
React29.forwardRef(function ZoomableImage2({
|
|
5199
4185
|
image,
|
|
5200
4186
|
index,
|
|
5201
4187
|
currentIndex,
|
|
@@ -5218,7 +4204,7 @@ var ZoomableImage = React48.memo(
|
|
|
5218
4204
|
onZoomChange(isZoomed);
|
|
5219
4205
|
}
|
|
5220
4206
|
}, [scale.value, index, currentIndex, onZoomChange]);
|
|
5221
|
-
|
|
4207
|
+
React29.useImperativeHandle(ref, () => ({
|
|
5222
4208
|
resetZoom: () => {
|
|
5223
4209
|
scale.value = 1;
|
|
5224
4210
|
savedScale.value = 1;
|
|
@@ -5350,7 +4336,7 @@ var ZoomableImage = React48.memo(
|
|
|
5350
4336
|
) });
|
|
5351
4337
|
})
|
|
5352
4338
|
);
|
|
5353
|
-
var SlidableImageGallery =
|
|
4339
|
+
var SlidableImageGallery = React29.memo(function SlidableImageGallery2({
|
|
5354
4340
|
images,
|
|
5355
4341
|
currentIndex,
|
|
5356
4342
|
onIndexChange,
|
|
@@ -5459,7 +4445,7 @@ var SlidableImageGallery = React48.memo(function SlidableImageGallery2({
|
|
|
5459
4445
|
}
|
|
5460
4446
|
) });
|
|
5461
4447
|
});
|
|
5462
|
-
var ImageViewer =
|
|
4448
|
+
var ImageViewer = React29.forwardRef(function ImageViewer2({ images, defaultOpen = false, isOpen: controlledIsOpen, onOpenChange, onIndexChange, initialIndex = 0, children }, ref) {
|
|
5463
4449
|
const [uncontrolledIsOpen, setUncontrolledIsOpen] = useState(defaultOpen);
|
|
5464
4450
|
const [currentIndex, setCurrentIndex] = useState(initialIndex);
|
|
5465
4451
|
const isControlled = controlledIsOpen !== void 0;
|
|
@@ -5485,7 +4471,7 @@ var ImageViewer = React48.forwardRef(function ImageViewer2({ images, defaultOpen
|
|
|
5485
4471
|
const goPrevious = useCallback(() => {
|
|
5486
4472
|
setCurrentIndex((prev) => Math.max(prev - 1, 0));
|
|
5487
4473
|
}, []);
|
|
5488
|
-
const contextValue =
|
|
4474
|
+
const contextValue = React29.useMemo(
|
|
5489
4475
|
() => ({
|
|
5490
4476
|
images,
|
|
5491
4477
|
currentIndex,
|
|
@@ -5499,7 +4485,7 @@ var ImageViewer = React48.forwardRef(function ImageViewer2({ images, defaultOpen
|
|
|
5499
4485
|
);
|
|
5500
4486
|
return /* @__PURE__ */ jsx(View, { ref, className: imageViewerStyle({}), children: /* @__PURE__ */ jsx(ImageViewerContext.Provider, { value: contextValue, children }) });
|
|
5501
4487
|
});
|
|
5502
|
-
var ImageViewerTrigger =
|
|
4488
|
+
var ImageViewerTrigger = React29.forwardRef(
|
|
5503
4489
|
function ImageViewerTrigger2({ children, onPress, ...props }, ref) {
|
|
5504
4490
|
const { open } = useImageViewerContext();
|
|
5505
4491
|
const handlePress = useCallback(() => {
|
|
@@ -5509,455 +4495,166 @@ var ImageViewerTrigger = React48.forwardRef(
|
|
|
5509
4495
|
return /* @__PURE__ */ jsx(Pressable, { ref, onPress: handlePress, ...props, children });
|
|
5510
4496
|
}
|
|
5511
4497
|
);
|
|
5512
|
-
var ImageViewerContent =
|
|
5513
|
-
|
|
5514
|
-
|
|
5515
|
-
|
|
5516
|
-
|
|
5517
|
-
|
|
5518
|
-
|
|
5519
|
-
entering: FadeIn.duration(300).easing(Easing.out(Easing.ease)),
|
|
5520
|
-
exiting: FadeOut.duration(200).easing(Easing.in(Easing.ease)),
|
|
5521
|
-
className: imageViewerModalStyle({}),
|
|
5522
|
-
style: {
|
|
5523
|
-
display: "flex",
|
|
5524
|
-
justifyContent: "center",
|
|
5525
|
-
alignItems: "center"
|
|
5526
|
-
},
|
|
5527
|
-
children: /* @__PURE__ */ jsxs(
|
|
5528
|
-
View,
|
|
5529
|
-
{
|
|
5530
|
-
ref,
|
|
5531
|
-
className: imageViewerContentStyle({}),
|
|
5532
|
-
style: {
|
|
5533
|
-
width: "100%",
|
|
5534
|
-
height: "100%",
|
|
5535
|
-
display: "flex",
|
|
5536
|
-
justifyContent: "center",
|
|
5537
|
-
alignItems: "center"
|
|
5538
|
-
},
|
|
5539
|
-
children: [
|
|
5540
|
-
currentImage && /* @__PURE__ */ jsx(
|
|
5541
|
-
SlidableImageGallery,
|
|
5542
|
-
{
|
|
5543
|
-
images,
|
|
5544
|
-
currentIndex,
|
|
5545
|
-
onIndexChange: (newIndex) => {
|
|
5546
|
-
if (newIndex > currentIndex) {
|
|
5547
|
-
goNext();
|
|
5548
|
-
} else if (newIndex < currentIndex) {
|
|
5549
|
-
goPrevious();
|
|
5550
|
-
}
|
|
5551
|
-
},
|
|
5552
|
-
onDismiss: close
|
|
5553
|
-
}
|
|
5554
|
-
),
|
|
5555
|
-
children
|
|
5556
|
-
]
|
|
5557
|
-
}
|
|
5558
|
-
)
|
|
5559
|
-
}
|
|
5560
|
-
) }) }) });
|
|
5561
|
-
});
|
|
5562
|
-
var ImageViewerCloseButton = React48.forwardRef(
|
|
5563
|
-
function ImageViewerCloseButton2({ className, ...props }, ref) {
|
|
5564
|
-
const { close } = useImageViewerContext();
|
|
5565
|
-
return /* @__PURE__ */ jsx(
|
|
5566
|
-
TouchableOpacity,
|
|
5567
|
-
{
|
|
5568
|
-
ref,
|
|
5569
|
-
onPress: close,
|
|
5570
|
-
className: imageViewerCloseButtonStyle({ class: className }),
|
|
5571
|
-
accessibilityLabel: "Close image viewer",
|
|
5572
|
-
accessibilityRole: "button",
|
|
5573
|
-
...props,
|
|
5574
|
-
children: /* @__PURE__ */ jsx(Text, { className: "text-white text-xl font-bold", children: "\u2715" })
|
|
5575
|
-
}
|
|
5576
|
-
);
|
|
5577
|
-
}
|
|
5578
|
-
);
|
|
5579
|
-
var ImageViewerNavigation = React48.forwardRef(function ImageViewerNavigation2({ className }, ref) {
|
|
5580
|
-
const { goPrevious, goNext, currentIndex, images } = useImageViewerContext();
|
|
5581
|
-
const canGoPrevious = currentIndex > 0;
|
|
5582
|
-
const canGoNext = currentIndex < images.length - 1;
|
|
5583
|
-
return /* @__PURE__ */ jsxs(View, { ref, className: imageViewerNavigationStyle({ class: className }), children: [
|
|
5584
|
-
canGoPrevious && /* @__PURE__ */ jsx(
|
|
5585
|
-
TouchableOpacity,
|
|
5586
|
-
{
|
|
5587
|
-
onPress: goPrevious,
|
|
5588
|
-
className: imageViewerNavButtonStyle({}),
|
|
5589
|
-
accessibilityLabel: "Previous image",
|
|
5590
|
-
accessibilityRole: "button",
|
|
5591
|
-
children: /* @__PURE__ */ jsx(Text, { className: "text-white text-2xl font-bold", children: "\u2039" })
|
|
5592
|
-
}
|
|
5593
|
-
),
|
|
5594
|
-
/* @__PURE__ */ jsx(View, { className: "flex-1" }),
|
|
5595
|
-
canGoNext && /* @__PURE__ */ jsx(
|
|
5596
|
-
TouchableOpacity,
|
|
4498
|
+
var ImageViewerContent = React29.forwardRef(
|
|
4499
|
+
function ImageViewerContent2({ children }, ref) {
|
|
4500
|
+
const context = useImageViewerContext();
|
|
4501
|
+
const { images, currentIndex, isOpen, close, goNext, goPrevious } = context;
|
|
4502
|
+
const currentImage = images[currentIndex];
|
|
4503
|
+
return /* @__PURE__ */ jsx(Overlay, { isOpen, onRequestClose: close, isKeyboardDismissable: true, children: /* @__PURE__ */ jsx(ImageViewerContext.Provider, { value: context, children: /* @__PURE__ */ jsx(GestureHandlerRootView, { style: { flex: 1 }, children: /* @__PURE__ */ jsx(
|
|
4504
|
+
AnimatedView4,
|
|
5597
4505
|
{
|
|
5598
|
-
|
|
5599
|
-
|
|
5600
|
-
|
|
5601
|
-
|
|
5602
|
-
|
|
5603
|
-
|
|
5604
|
-
|
|
5605
|
-
|
|
5606
|
-
|
|
5607
|
-
|
|
5608
|
-
|
|
5609
|
-
|
|
5610
|
-
|
|
5611
|
-
|
|
5612
|
-
|
|
5613
|
-
|
|
5614
|
-
|
|
5615
|
-
|
|
5616
|
-
|
|
5617
|
-
|
|
5618
|
-
|
|
5619
|
-
|
|
5620
|
-
|
|
5621
|
-
|
|
5622
|
-
|
|
5623
|
-
|
|
5624
|
-
|
|
5625
|
-
|
|
5626
|
-
|
|
5627
|
-
|
|
5628
|
-
|
|
5629
|
-
|
|
5630
|
-
|
|
5631
|
-
|
|
5632
|
-
|
|
5633
|
-
|
|
5634
|
-
|
|
5635
|
-
|
|
5636
|
-
}
|
|
5637
|
-
|
|
5638
|
-
base: "justify-center items-center text-muted-foreground fill-none h-4 w-4"
|
|
5639
|
-
});
|
|
5640
|
-
var inputSlotStyle = tva({
|
|
5641
|
-
base: "justify-center items-center web:disabled:cursor-not-allowed"
|
|
5642
|
-
});
|
|
5643
|
-
var inputFieldStyle = tva({
|
|
5644
|
-
base: "flex-1 text-foreground text-sm md:text-sm py-1 h-full placeholder:text-muted-foreground web:outline-none ios:leading-[0px] web:cursor-text web:data-[disabled=true]:cursor-not-allowed"
|
|
5645
|
-
});
|
|
5646
|
-
var Input = React48.forwardRef(function Input2({ className, ...props }, ref) {
|
|
5647
|
-
return /* @__PURE__ */ jsx(UIInput, { ref, ...props, className: inputStyle({ class: className }), context: {} });
|
|
5648
|
-
});
|
|
5649
|
-
var InputIcon = React48.forwardRef(function InputIcon2({ className, ...props }, ref) {
|
|
5650
|
-
return /* @__PURE__ */ jsx(UIInput.Icon, { ref, ...props, className: inputIconStyle({ class: className }) });
|
|
5651
|
-
});
|
|
5652
|
-
var InputSlot = React48.forwardRef(function InputSlot2({ className, ...props }, ref) {
|
|
5653
|
-
return /* @__PURE__ */ jsx(
|
|
5654
|
-
UIInput.Slot,
|
|
5655
|
-
{
|
|
5656
|
-
ref,
|
|
5657
|
-
...props,
|
|
5658
|
-
className: inputSlotStyle({
|
|
5659
|
-
class: className
|
|
5660
|
-
})
|
|
5661
|
-
}
|
|
5662
|
-
);
|
|
5663
|
-
});
|
|
5664
|
-
var InputField = React48.forwardRef(function InputField2({ className, ...props }, ref) {
|
|
5665
|
-
return /* @__PURE__ */ jsx(
|
|
5666
|
-
UIInput.Input,
|
|
5667
|
-
{
|
|
5668
|
-
ref,
|
|
5669
|
-
...props,
|
|
5670
|
-
className: inputFieldStyle({
|
|
5671
|
-
class: className
|
|
5672
|
-
})
|
|
5673
|
-
}
|
|
5674
|
-
);
|
|
5675
|
-
});
|
|
5676
|
-
Input.displayName = "Input";
|
|
5677
|
-
InputIcon.displayName = "InputIcon";
|
|
5678
|
-
InputSlot.displayName = "InputSlot";
|
|
5679
|
-
InputField.displayName = "InputField";
|
|
5680
|
-
var UILink = createLink({
|
|
5681
|
-
Root: withStyleContext(Pressable),
|
|
5682
|
-
Text: Text
|
|
5683
|
-
});
|
|
5684
|
-
cssInterop(UILink, { className: "style" });
|
|
5685
|
-
cssInterop(UILink.Text, { className: "style" });
|
|
5686
|
-
var linkStyle = tva({
|
|
5687
|
-
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 "
|
|
5688
|
-
});
|
|
5689
|
-
var linkTextStyle = tva({
|
|
5690
|
-
base: "underline text-primary data-[hover=true]:text-primary/80 data-[hover=true]:no-underline data-[active=true]:text-destructive/80 font-normal font-body web:font-sans web:tracking-sm web:my-0 web:bg-transparent web:border-0 web:box-border web:inline web:list-none web:m-0 web:p-0 web:relative web:text-start web:whitespace-pre-wrap web:break-words",
|
|
5691
|
-
variants: {
|
|
5692
|
-
isTruncated: {
|
|
5693
|
-
true: "web:truncate"
|
|
5694
|
-
},
|
|
5695
|
-
bold: {
|
|
5696
|
-
true: "font-bold"
|
|
5697
|
-
},
|
|
5698
|
-
underline: {
|
|
5699
|
-
true: "underline"
|
|
5700
|
-
},
|
|
5701
|
-
strikeThrough: {
|
|
5702
|
-
true: "line-through"
|
|
5703
|
-
},
|
|
5704
|
-
size: {
|
|
5705
|
-
"2xs": "text-2xs",
|
|
5706
|
-
xs: "text-xs",
|
|
5707
|
-
sm: "text-sm",
|
|
5708
|
-
md: "text-base",
|
|
5709
|
-
lg: "text-lg",
|
|
5710
|
-
xl: "text-xl",
|
|
5711
|
-
"2xl": "text-2xl",
|
|
5712
|
-
"3xl": "text-3xl",
|
|
5713
|
-
"4xl": "text-4xl",
|
|
5714
|
-
"5xl": "text-5xl",
|
|
5715
|
-
"6xl": "text-6xl"
|
|
5716
|
-
},
|
|
5717
|
-
sub: {
|
|
5718
|
-
true: "text-xs"
|
|
5719
|
-
},
|
|
5720
|
-
italic: {
|
|
5721
|
-
true: "italic"
|
|
5722
|
-
},
|
|
5723
|
-
highlight: {
|
|
5724
|
-
true: "bg-yellow-500"
|
|
5725
|
-
}
|
|
5726
|
-
}
|
|
5727
|
-
});
|
|
5728
|
-
var Link = React48.forwardRef(function Link2({ className, ...props }, ref) {
|
|
5729
|
-
return /* @__PURE__ */ jsx(UILink, { ref, ...props, className: linkStyle({ class: className }) });
|
|
5730
|
-
});
|
|
5731
|
-
var LinkText = React48.forwardRef(function LinkText2({ className, size = "md", ...props }, ref) {
|
|
5732
|
-
return /* @__PURE__ */ jsx(
|
|
5733
|
-
UILink.Text,
|
|
5734
|
-
{
|
|
5735
|
-
ref,
|
|
5736
|
-
...props,
|
|
5737
|
-
className: linkTextStyle({
|
|
5738
|
-
class: className,
|
|
5739
|
-
size
|
|
5740
|
-
})
|
|
5741
|
-
}
|
|
5742
|
-
);
|
|
5743
|
-
});
|
|
5744
|
-
Link.displayName = "Link";
|
|
5745
|
-
LinkText.displayName = "LinkText";
|
|
5746
|
-
var glassViewStyle = tva({
|
|
5747
|
-
base: "overflow-hidden"
|
|
5748
|
-
});
|
|
5749
|
-
var glassContainerStyle = tva({
|
|
5750
|
-
base: "overflow-hidden"
|
|
5751
|
-
});
|
|
5752
|
-
var GlassView = React48.forwardRef(function GlassView2({ className, ...props }, ref) {
|
|
5753
|
-
return /* @__PURE__ */ jsx(
|
|
5754
|
-
GlassView$1,
|
|
5755
|
-
{
|
|
5756
|
-
ref,
|
|
5757
|
-
...props,
|
|
5758
|
-
className: glassViewStyle({ className })
|
|
5759
|
-
}
|
|
5760
|
-
);
|
|
5761
|
-
});
|
|
5762
|
-
GlassView.displayName = "GlassView";
|
|
5763
|
-
var GlassContainer = React48.forwardRef(
|
|
5764
|
-
function GlassContainer2({ className, ...props }, ref) {
|
|
5765
|
-
return /* @__PURE__ */ jsx(
|
|
5766
|
-
GlassContainer$1,
|
|
5767
|
-
{
|
|
5768
|
-
ref,
|
|
5769
|
-
...props,
|
|
5770
|
-
className: glassContainerStyle({ className })
|
|
5771
|
-
}
|
|
5772
|
-
);
|
|
5773
|
-
}
|
|
5774
|
-
);
|
|
5775
|
-
GlassContainer.displayName = "GlassContainer";
|
|
5776
|
-
cssInterop(GlassView$1, {
|
|
5777
|
-
className: "style"
|
|
5778
|
-
});
|
|
5779
|
-
cssInterop(GlassContainer$1, {
|
|
5780
|
-
className: "style"
|
|
5781
|
-
});
|
|
5782
|
-
var AnimatedPressable4 = Animated9.createAnimatedComponent(Pressable);
|
|
5783
|
-
var AnimatedView5 = Animated9.createAnimatedComponent(View);
|
|
5784
|
-
var SCOPE12 = "MODAL";
|
|
5785
|
-
var UIModal = createModal({
|
|
5786
|
-
Root: withStyleContext(View, SCOPE12),
|
|
5787
|
-
Backdrop: AnimatedPressable4,
|
|
5788
|
-
Content: AnimatedView5,
|
|
5789
|
-
Body: ScrollView,
|
|
5790
|
-
CloseButton: Pressable,
|
|
5791
|
-
Footer: View,
|
|
5792
|
-
Header: View
|
|
5793
|
-
});
|
|
5794
|
-
cssInterop(AnimatedPressable4, { className: "style" });
|
|
5795
|
-
cssInterop(AnimatedView5, { className: "style" });
|
|
5796
|
-
var modalStyle = tva({
|
|
5797
|
-
base: "group/modal w-full h-full justify-center items-center web:pointer-events-none",
|
|
5798
|
-
variants: {
|
|
5799
|
-
size: {
|
|
5800
|
-
xs: "",
|
|
5801
|
-
sm: "",
|
|
5802
|
-
md: "",
|
|
5803
|
-
lg: "",
|
|
5804
|
-
full: ""
|
|
5805
|
-
}
|
|
5806
|
-
}
|
|
5807
|
-
});
|
|
5808
|
-
var modalBackdropStyle = tva({
|
|
5809
|
-
base: "absolute left-0 top-0 right-0 bottom-0 bg-black/50 web:cursor-default"
|
|
5810
|
-
});
|
|
5811
|
-
var modalContentStyle = tva({
|
|
5812
|
-
base: "bg-background rounded-md overflow-hidden border border-border/80 shadow-hard-2 p-6",
|
|
5813
|
-
parentVariants: {
|
|
5814
|
-
size: {
|
|
5815
|
-
xs: "w-[60%] max-w-[360px]",
|
|
5816
|
-
sm: "w-[70%] max-w-[420px]",
|
|
5817
|
-
md: "w-[80%] max-w-[510px]",
|
|
5818
|
-
lg: "w-[90%] max-w-[640px]",
|
|
5819
|
-
full: "w-full"
|
|
5820
|
-
}
|
|
5821
|
-
}
|
|
5822
|
-
});
|
|
5823
|
-
var modalBodyStyle = tva({
|
|
5824
|
-
base: "mt-2 mb-6"
|
|
5825
|
-
});
|
|
5826
|
-
var modalCloseButtonStyle = tva({
|
|
5827
|
-
base: "group/modal-close-button z-10 rounded data-[focus-visible=true]:web:bg-background/90 web:outline-0 cursor-pointer"
|
|
5828
|
-
});
|
|
5829
|
-
var modalHeaderStyle = tva({
|
|
5830
|
-
base: "justify-between items-center flex-row"
|
|
5831
|
-
});
|
|
5832
|
-
var modalFooterStyle = tva({
|
|
5833
|
-
base: "flex-row justify-end items-center gap-2"
|
|
5834
|
-
});
|
|
5835
|
-
var Modal2 = React48.forwardRef(
|
|
5836
|
-
({ className, size = "md", ...props }, ref) => /* @__PURE__ */ jsx(
|
|
5837
|
-
UIModal,
|
|
5838
|
-
{
|
|
5839
|
-
ref,
|
|
5840
|
-
...props,
|
|
5841
|
-
pointerEvents: "box-none",
|
|
5842
|
-
className: modalStyle({ size, class: className }),
|
|
5843
|
-
context: { size }
|
|
5844
|
-
}
|
|
5845
|
-
)
|
|
5846
|
-
);
|
|
5847
|
-
var ModalBackdrop = React48.forwardRef(
|
|
5848
|
-
function ModalBackdrop2({ className, ...props }, ref) {
|
|
5849
|
-
return /* @__PURE__ */ jsx(
|
|
5850
|
-
UIModal.Backdrop,
|
|
5851
|
-
{
|
|
5852
|
-
ref,
|
|
5853
|
-
entering: FadeIn.duration(200).easing(Easing.linear),
|
|
5854
|
-
exiting: FadeOut.duration(200).easing(Easing.linear),
|
|
5855
|
-
...props,
|
|
5856
|
-
className: modalBackdropStyle({
|
|
5857
|
-
class: className
|
|
5858
|
-
})
|
|
4506
|
+
entering: FadeIn.duration(300).easing(Easing.out(Easing.ease)),
|
|
4507
|
+
exiting: FadeOut.duration(200).easing(Easing.in(Easing.ease)),
|
|
4508
|
+
className: imageViewerModalStyle({}),
|
|
4509
|
+
style: {
|
|
4510
|
+
display: "flex",
|
|
4511
|
+
justifyContent: "center",
|
|
4512
|
+
alignItems: "center"
|
|
4513
|
+
},
|
|
4514
|
+
children: /* @__PURE__ */ jsxs(
|
|
4515
|
+
View,
|
|
4516
|
+
{
|
|
4517
|
+
ref,
|
|
4518
|
+
className: imageViewerContentStyle({}),
|
|
4519
|
+
style: {
|
|
4520
|
+
width: "100%",
|
|
4521
|
+
height: "100%",
|
|
4522
|
+
display: "flex",
|
|
4523
|
+
justifyContent: "center",
|
|
4524
|
+
alignItems: "center"
|
|
4525
|
+
},
|
|
4526
|
+
children: [
|
|
4527
|
+
currentImage && /* @__PURE__ */ jsx(
|
|
4528
|
+
SlidableImageGallery,
|
|
4529
|
+
{
|
|
4530
|
+
images,
|
|
4531
|
+
currentIndex,
|
|
4532
|
+
onIndexChange: (newIndex) => {
|
|
4533
|
+
if (newIndex > currentIndex) {
|
|
4534
|
+
goNext();
|
|
4535
|
+
} else if (newIndex < currentIndex) {
|
|
4536
|
+
goPrevious();
|
|
4537
|
+
}
|
|
4538
|
+
},
|
|
4539
|
+
onDismiss: close
|
|
4540
|
+
}
|
|
4541
|
+
),
|
|
4542
|
+
children
|
|
4543
|
+
]
|
|
4544
|
+
}
|
|
4545
|
+
)
|
|
5859
4546
|
}
|
|
5860
|
-
);
|
|
4547
|
+
) }) }) });
|
|
5861
4548
|
}
|
|
5862
4549
|
);
|
|
5863
|
-
var
|
|
5864
|
-
function
|
|
5865
|
-
const {
|
|
4550
|
+
var ImageViewerCloseButton = React29.forwardRef(
|
|
4551
|
+
function ImageViewerCloseButton2({ className, ...props }, ref) {
|
|
4552
|
+
const { close } = useImageViewerContext();
|
|
5866
4553
|
return /* @__PURE__ */ jsx(
|
|
5867
|
-
|
|
4554
|
+
TouchableOpacity,
|
|
5868
4555
|
{
|
|
5869
4556
|
ref,
|
|
5870
|
-
|
|
5871
|
-
|
|
5872
|
-
|
|
5873
|
-
|
|
5874
|
-
exiting: FadeOut.duration(200),
|
|
4557
|
+
onPress: close,
|
|
4558
|
+
className: imageViewerCloseButtonStyle({ class: className }),
|
|
4559
|
+
accessibilityLabel: "Close image viewer",
|
|
4560
|
+
accessibilityRole: "button",
|
|
5875
4561
|
...props,
|
|
5876
|
-
|
|
5877
|
-
parentVariants: {
|
|
5878
|
-
size: parentSize
|
|
5879
|
-
},
|
|
5880
|
-
size,
|
|
5881
|
-
class: className
|
|
5882
|
-
}),
|
|
5883
|
-
pointerEvents: "auto"
|
|
4562
|
+
children: /* @__PURE__ */ jsx(Text, { className: "text-white text-xl font-bold", children: "\u2715" })
|
|
5884
4563
|
}
|
|
5885
4564
|
);
|
|
5886
4565
|
}
|
|
5887
4566
|
);
|
|
5888
|
-
var
|
|
5889
|
-
|
|
5890
|
-
|
|
5891
|
-
|
|
5892
|
-
|
|
5893
|
-
|
|
5894
|
-
|
|
5895
|
-
|
|
5896
|
-
|
|
5897
|
-
|
|
5898
|
-
|
|
4567
|
+
var ImageViewerNavigation = React29.forwardRef(
|
|
4568
|
+
function ImageViewerNavigation2({ className }, ref) {
|
|
4569
|
+
const { goPrevious, goNext, currentIndex, images } = useImageViewerContext();
|
|
4570
|
+
const canGoPrevious = currentIndex > 0;
|
|
4571
|
+
const canGoNext = currentIndex < images.length - 1;
|
|
4572
|
+
return /* @__PURE__ */ jsxs(View, { ref, className: imageViewerNavigationStyle({ class: className }), children: [
|
|
4573
|
+
canGoPrevious && /* @__PURE__ */ jsx(
|
|
4574
|
+
TouchableOpacity,
|
|
4575
|
+
{
|
|
4576
|
+
onPress: goPrevious,
|
|
4577
|
+
className: imageViewerNavButtonStyle({}),
|
|
4578
|
+
accessibilityLabel: "Previous image",
|
|
4579
|
+
accessibilityRole: "button",
|
|
4580
|
+
children: /* @__PURE__ */ jsx(Text, { className: "text-white text-2xl font-bold", children: "\u2039" })
|
|
4581
|
+
}
|
|
4582
|
+
),
|
|
4583
|
+
/* @__PURE__ */ jsx(View, { className: "flex-1" }),
|
|
4584
|
+
canGoNext && /* @__PURE__ */ jsx(
|
|
4585
|
+
TouchableOpacity,
|
|
4586
|
+
{
|
|
4587
|
+
onPress: goNext,
|
|
4588
|
+
className: imageViewerNavButtonStyle({}),
|
|
4589
|
+
accessibilityLabel: "Next image",
|
|
4590
|
+
accessibilityRole: "button",
|
|
4591
|
+
children: /* @__PURE__ */ jsx(Text, { className: "text-white text-2xl font-bold", children: "\u203A" })
|
|
4592
|
+
}
|
|
4593
|
+
)
|
|
4594
|
+
] });
|
|
4595
|
+
}
|
|
4596
|
+
);
|
|
4597
|
+
var ImageViewerCounter = React29.forwardRef(
|
|
4598
|
+
function ImageViewerCounter2({ className }, ref) {
|
|
4599
|
+
const { currentIndex, images } = useImageViewerContext();
|
|
4600
|
+
return /* @__PURE__ */ jsx(View, { ref, className: imageViewerCounterStyle({ class: className }), children: /* @__PURE__ */ jsxs(Text, { className: imageViewerCounterTextStyle({}), children: [
|
|
4601
|
+
currentIndex + 1,
|
|
4602
|
+
" / ",
|
|
4603
|
+
images.length
|
|
4604
|
+
] }) });
|
|
4605
|
+
}
|
|
4606
|
+
);
|
|
4607
|
+
var glassViewStyle = tva({
|
|
4608
|
+
base: "overflow-hidden"
|
|
5899
4609
|
});
|
|
5900
|
-
var
|
|
5901
|
-
|
|
5902
|
-
UIModal.Body,
|
|
5903
|
-
{
|
|
5904
|
-
scrollEnabled: false,
|
|
5905
|
-
ref,
|
|
5906
|
-
...props,
|
|
5907
|
-
className: modalBodyStyle({
|
|
5908
|
-
class: className
|
|
5909
|
-
})
|
|
5910
|
-
}
|
|
5911
|
-
);
|
|
4610
|
+
var glassContainerStyle = tva({
|
|
4611
|
+
base: "overflow-hidden"
|
|
5912
4612
|
});
|
|
5913
|
-
var
|
|
4613
|
+
var GlassView = React29.forwardRef(function GlassView2({ className, ...props }, ref) {
|
|
5914
4614
|
return /* @__PURE__ */ jsx(
|
|
5915
|
-
|
|
4615
|
+
GlassView$1,
|
|
5916
4616
|
{
|
|
5917
4617
|
ref,
|
|
5918
4618
|
...props,
|
|
5919
|
-
className:
|
|
5920
|
-
class: className
|
|
5921
|
-
})
|
|
4619
|
+
className: glassViewStyle({ className })
|
|
5922
4620
|
}
|
|
5923
4621
|
);
|
|
5924
4622
|
});
|
|
5925
|
-
|
|
5926
|
-
|
|
4623
|
+
GlassView.displayName = "GlassView";
|
|
4624
|
+
var GlassContainer = React29.forwardRef(
|
|
4625
|
+
function GlassContainer2({ className, ...props }, ref) {
|
|
5927
4626
|
return /* @__PURE__ */ jsx(
|
|
5928
|
-
|
|
4627
|
+
GlassContainer$1,
|
|
5929
4628
|
{
|
|
5930
4629
|
ref,
|
|
5931
4630
|
...props,
|
|
5932
|
-
className:
|
|
5933
|
-
class: className
|
|
5934
|
-
})
|
|
4631
|
+
className: glassContainerStyle({ className })
|
|
5935
4632
|
}
|
|
5936
4633
|
);
|
|
5937
4634
|
}
|
|
5938
4635
|
);
|
|
5939
|
-
|
|
5940
|
-
|
|
5941
|
-
|
|
5942
|
-
|
|
5943
|
-
|
|
5944
|
-
|
|
5945
|
-
|
|
5946
|
-
var
|
|
5947
|
-
var
|
|
5948
|
-
var
|
|
4636
|
+
GlassContainer.displayName = "GlassContainer";
|
|
4637
|
+
cssInterop(GlassView$1, {
|
|
4638
|
+
className: "style"
|
|
4639
|
+
});
|
|
4640
|
+
cssInterop(GlassContainer$1, {
|
|
4641
|
+
className: "style"
|
|
4642
|
+
});
|
|
4643
|
+
var AnimatedPressable4 = Animated8.createAnimatedComponent(Pressable);
|
|
4644
|
+
var AnimatedView5 = Animated8.createAnimatedComponent(View);
|
|
4645
|
+
var SCOPE8 = "POPOVER";
|
|
5949
4646
|
var UIPopover = createPopover({
|
|
5950
|
-
Root: withStyleContext(
|
|
4647
|
+
Root: withStyleContext(AnimatedView5, SCOPE8),
|
|
5951
4648
|
Arrow: View,
|
|
5952
|
-
Backdrop:
|
|
4649
|
+
Backdrop: AnimatedPressable4,
|
|
5953
4650
|
Body: ScrollView,
|
|
5954
4651
|
CloseButton: Pressable,
|
|
5955
4652
|
Content: View,
|
|
5956
4653
|
Footer: View,
|
|
5957
4654
|
Header: View
|
|
5958
4655
|
});
|
|
5959
|
-
cssInterop(
|
|
5960
|
-
cssInterop(
|
|
4656
|
+
cssInterop(AnimatedView5, { className: "style" });
|
|
4657
|
+
cssInterop(AnimatedPressable4, { className: "style" });
|
|
5961
4658
|
var popoverStyle = tva({
|
|
5962
4659
|
base: "group/popover w-full h-full justify-center items-center web:pointer-events-none"
|
|
5963
4660
|
});
|
|
@@ -5998,7 +4695,7 @@ var popoverBodyStyle = tva({
|
|
|
5998
4695
|
var popoverFooterStyle = tva({
|
|
5999
4696
|
base: "flex-row justify-between items-center"
|
|
6000
4697
|
});
|
|
6001
|
-
var Popover =
|
|
4698
|
+
var Popover = React29.forwardRef(function Popover2({ className, placement = "bottom", ...props }, ref) {
|
|
6002
4699
|
return /* @__PURE__ */ jsx(
|
|
6003
4700
|
UIPopover,
|
|
6004
4701
|
{
|
|
@@ -6015,7 +4712,7 @@ var Popover = React48.forwardRef(function Popover2({ className, placement = "bot
|
|
|
6015
4712
|
}
|
|
6016
4713
|
);
|
|
6017
4714
|
});
|
|
6018
|
-
var PopoverContent =
|
|
4715
|
+
var PopoverContent = React29.forwardRef(
|
|
6019
4716
|
function PopoverContent2({ className, ...props }, ref) {
|
|
6020
4717
|
return /* @__PURE__ */ jsx(
|
|
6021
4718
|
UIPopover.Content,
|
|
@@ -6030,9 +4727,9 @@ var PopoverContent = React48.forwardRef(
|
|
|
6030
4727
|
);
|
|
6031
4728
|
}
|
|
6032
4729
|
);
|
|
6033
|
-
var PopoverArrow =
|
|
4730
|
+
var PopoverArrow = React29.forwardRef(
|
|
6034
4731
|
function PopoverArrow2({ className, ...props }, ref) {
|
|
6035
|
-
const { placement } = useStyleContext(
|
|
4732
|
+
const { placement } = useStyleContext(SCOPE8);
|
|
6036
4733
|
return /* @__PURE__ */ jsx(
|
|
6037
4734
|
UIPopover.Arrow,
|
|
6038
4735
|
{
|
|
@@ -6046,7 +4743,7 @@ var PopoverArrow = React48.forwardRef(
|
|
|
6046
4743
|
);
|
|
6047
4744
|
}
|
|
6048
4745
|
);
|
|
6049
|
-
var PopoverBackdrop =
|
|
4746
|
+
var PopoverBackdrop = React29.forwardRef(
|
|
6050
4747
|
function PopoverBackdrop2({ className, ...props }, ref) {
|
|
6051
4748
|
return /* @__PURE__ */ jsx(
|
|
6052
4749
|
UIPopover.Backdrop,
|
|
@@ -6062,7 +4759,7 @@ var PopoverBackdrop = React48.forwardRef(
|
|
|
6062
4759
|
);
|
|
6063
4760
|
}
|
|
6064
4761
|
);
|
|
6065
|
-
var PopoverBody =
|
|
4762
|
+
var PopoverBody = React29.forwardRef(function PopoverBody2({ className, ...props }, ref) {
|
|
6066
4763
|
return /* @__PURE__ */ jsx(
|
|
6067
4764
|
UIPopover.Body,
|
|
6068
4765
|
{
|
|
@@ -6074,7 +4771,7 @@ var PopoverBody = React48.forwardRef(function PopoverBody2({ className, ...props
|
|
|
6074
4771
|
}
|
|
6075
4772
|
);
|
|
6076
4773
|
});
|
|
6077
|
-
var PopoverCloseButton =
|
|
4774
|
+
var PopoverCloseButton = React29.forwardRef(
|
|
6078
4775
|
function PopoverCloseButton2({ className, ...props }, ref) {
|
|
6079
4776
|
return /* @__PURE__ */ jsx(
|
|
6080
4777
|
UIPopover.CloseButton,
|
|
@@ -6088,7 +4785,7 @@ var PopoverCloseButton = React48.forwardRef(
|
|
|
6088
4785
|
);
|
|
6089
4786
|
}
|
|
6090
4787
|
);
|
|
6091
|
-
var PopoverFooter =
|
|
4788
|
+
var PopoverFooter = React29.forwardRef(
|
|
6092
4789
|
function PopoverFooter2({ className, ...props }, ref) {
|
|
6093
4790
|
return /* @__PURE__ */ jsx(
|
|
6094
4791
|
UIPopover.Footer,
|
|
@@ -6102,7 +4799,7 @@ var PopoverFooter = React48.forwardRef(
|
|
|
6102
4799
|
);
|
|
6103
4800
|
}
|
|
6104
4801
|
);
|
|
6105
|
-
var PopoverHeader =
|
|
4802
|
+
var PopoverHeader = React29.forwardRef(
|
|
6106
4803
|
function PopoverHeader2({ className, ...props }, ref) {
|
|
6107
4804
|
return /* @__PURE__ */ jsx(
|
|
6108
4805
|
UIPopover.Header,
|
|
@@ -6125,34 +4822,15 @@ PopoverFooter.displayName = "PopoverFooter";
|
|
|
6125
4822
|
PopoverBody.displayName = "PopoverBody";
|
|
6126
4823
|
PopoverCloseButton.displayName = "PopoverCloseButton";
|
|
6127
4824
|
cssInterop(Overlay, { className: "style" });
|
|
6128
|
-
var Portal =
|
|
4825
|
+
var Portal = React29.forwardRef(
|
|
6129
4826
|
function Portal2({ ...props }, ref) {
|
|
6130
4827
|
return /* @__PURE__ */ jsx(Overlay, { ...props, ref });
|
|
6131
4828
|
}
|
|
6132
4829
|
);
|
|
6133
4830
|
Portal.displayName = "Portal";
|
|
6134
|
-
var
|
|
6135
|
-
Root: withStyleContext(Pressable)
|
|
6136
|
-
});
|
|
6137
|
-
var pressableStyle = tva({
|
|
6138
|
-
base: "data-[focus-visible=true]:outline-none data-[focus-visible=true]:ring-indicator-info data-[focus-visible=true]:ring-2 data-[disabled=true]:opacity-40"
|
|
6139
|
-
});
|
|
6140
|
-
var Pressable18 = React48.forwardRef(function Pressable19({ className, ...props }, ref) {
|
|
6141
|
-
return /* @__PURE__ */ jsx(
|
|
6142
|
-
UIPressable,
|
|
6143
|
-
{
|
|
6144
|
-
...props,
|
|
6145
|
-
ref,
|
|
6146
|
-
className: pressableStyle({
|
|
6147
|
-
class: className
|
|
6148
|
-
})
|
|
6149
|
-
}
|
|
6150
|
-
);
|
|
6151
|
-
});
|
|
6152
|
-
Pressable18.displayName = "Pressable";
|
|
6153
|
-
var SCOPE14 = "PROGRESS";
|
|
4831
|
+
var SCOPE9 = "PROGRESS";
|
|
6154
4832
|
var UIProgress = createProgress({
|
|
6155
|
-
Root: withStyleContext(View,
|
|
4833
|
+
Root: withStyleContext(View, SCOPE9),
|
|
6156
4834
|
FilledTrack: View
|
|
6157
4835
|
});
|
|
6158
4836
|
cssInterop(UIProgress, { className: "style" });
|
|
@@ -6175,7 +4853,7 @@ var progressFilledTrackStyle = tva({
|
|
|
6175
4853
|
}
|
|
6176
4854
|
}
|
|
6177
4855
|
});
|
|
6178
|
-
var Progress =
|
|
4856
|
+
var Progress = React29.forwardRef(function Progress2({ className, orientation = "horizontal", ...props }, ref) {
|
|
6179
4857
|
return /* @__PURE__ */ jsx(
|
|
6180
4858
|
UIProgress,
|
|
6181
4859
|
{
|
|
@@ -6187,8 +4865,8 @@ var Progress = React48.forwardRef(function Progress2({ className, orientation =
|
|
|
6187
4865
|
}
|
|
6188
4866
|
);
|
|
6189
4867
|
});
|
|
6190
|
-
var ProgressFilledTrack =
|
|
6191
|
-
const { orientation: parentOrientation } = useStyleContext(
|
|
4868
|
+
var ProgressFilledTrack = React29.forwardRef(function ProgressFilledTrack2({ className, ...props }, ref) {
|
|
4869
|
+
const { orientation: parentOrientation } = useStyleContext(SCOPE9);
|
|
6192
4870
|
return /* @__PURE__ */ jsx(
|
|
6193
4871
|
UIProgress.FilledTrack,
|
|
6194
4872
|
{
|
|
@@ -6201,9 +4879,9 @@ var ProgressFilledTrack = React48.forwardRef(function ProgressFilledTrack2({ cla
|
|
|
6201
4879
|
}
|
|
6202
4880
|
);
|
|
6203
4881
|
});
|
|
6204
|
-
var
|
|
4882
|
+
var SCOPE10 = "Radio";
|
|
6205
4883
|
var UIRadio = createRadio({
|
|
6206
|
-
Root: Platform.OS === "web" ? withStyleContext(View,
|
|
4884
|
+
Root: Platform.OS === "web" ? withStyleContext(View, SCOPE10) : withStyleContext(Pressable, SCOPE10),
|
|
6207
4885
|
Group: View,
|
|
6208
4886
|
Icon: UIIcon,
|
|
6209
4887
|
Indicator: View,
|
|
@@ -6272,15 +4950,15 @@ var radioLabelStyle = tva({
|
|
|
6272
4950
|
}
|
|
6273
4951
|
}
|
|
6274
4952
|
});
|
|
6275
|
-
var Radio =
|
|
4953
|
+
var Radio = React29.forwardRef(function Radio2({ className, size = "md", ...props }, ref) {
|
|
6276
4954
|
return /* @__PURE__ */ jsx(UIRadio, { className: radioStyle({ class: className, size }), ...props, ref, context: { size } });
|
|
6277
4955
|
});
|
|
6278
|
-
var RadioGroup =
|
|
4956
|
+
var RadioGroup = React29.forwardRef(function RadioGroup2({ className, ...props }, ref) {
|
|
6279
4957
|
return /* @__PURE__ */ jsx(UIRadio.Group, { className: radioGroupStyle({ class: className }), ...props, ref });
|
|
6280
4958
|
});
|
|
6281
|
-
var RadioIndicator =
|
|
4959
|
+
var RadioIndicator = React29.forwardRef(
|
|
6282
4960
|
function RadioIndicator2({ className, ...props }, ref) {
|
|
6283
|
-
const { size } = useStyleContext(
|
|
4961
|
+
const { size } = useStyleContext(SCOPE10);
|
|
6284
4962
|
return /* @__PURE__ */ jsx(
|
|
6285
4963
|
UIRadio.Indicator,
|
|
6286
4964
|
{
|
|
@@ -6294,8 +4972,8 @@ var RadioIndicator = React48.forwardRef(
|
|
|
6294
4972
|
);
|
|
6295
4973
|
}
|
|
6296
4974
|
);
|
|
6297
|
-
var RadioLabel =
|
|
6298
|
-
const { size } = useStyleContext(
|
|
4975
|
+
var RadioLabel = React29.forwardRef(function RadioLabel2({ className, ...props }, ref) {
|
|
4976
|
+
const { size } = useStyleContext(SCOPE10);
|
|
6299
4977
|
return /* @__PURE__ */ jsx(
|
|
6300
4978
|
UIRadio.Label,
|
|
6301
4979
|
{
|
|
@@ -6308,8 +4986,8 @@ var RadioLabel = React48.forwardRef(function RadioLabel2({ className, ...props }
|
|
|
6308
4986
|
}
|
|
6309
4987
|
);
|
|
6310
4988
|
});
|
|
6311
|
-
var RadioIcon =
|
|
6312
|
-
const { size: parentSize } = useStyleContext(
|
|
4989
|
+
var RadioIcon = React29.forwardRef(function RadioIcon2({ className, size, ...props }, ref) {
|
|
4990
|
+
const { size: parentSize } = useStyleContext(SCOPE10);
|
|
6313
4991
|
if (typeof size === "number") {
|
|
6314
4992
|
return /* @__PURE__ */ jsx(UIRadio.Icon, { ref, ...props, className: radioIconStyle({ class: className }), size });
|
|
6315
4993
|
} else if ((props.height !== void 0 || props.width !== void 0) && size === void 0) {
|
|
@@ -6335,7 +5013,7 @@ RadioGroup.displayName = "RadioGroup";
|
|
|
6335
5013
|
RadioIndicator.displayName = "RadioIndicator";
|
|
6336
5014
|
RadioLabel.displayName = "RadioLabel";
|
|
6337
5015
|
RadioIcon.displayName = "RadioIcon";
|
|
6338
|
-
var
|
|
5016
|
+
var AnimatedPressable5 = createMotionAnimatedComponent(Pressable);
|
|
6339
5017
|
var MotionView2 = Motion.View;
|
|
6340
5018
|
var UIActionsheet2 = createActionsheet({
|
|
6341
5019
|
Root: View,
|
|
@@ -6344,7 +5022,7 @@ var UIActionsheet2 = createActionsheet({
|
|
|
6344
5022
|
ItemText: Text,
|
|
6345
5023
|
DragIndicator: View,
|
|
6346
5024
|
IndicatorWrapper: View,
|
|
6347
|
-
Backdrop:
|
|
5025
|
+
Backdrop: AnimatedPressable5,
|
|
6348
5026
|
ScrollView: ScrollView,
|
|
6349
5027
|
VirtualizedList: VirtualizedList,
|
|
6350
5028
|
FlatList: FlatList,
|
|
@@ -6508,7 +5186,7 @@ var actionsheetIconStyle2 = tva({
|
|
|
6508
5186
|
}
|
|
6509
5187
|
}
|
|
6510
5188
|
});
|
|
6511
|
-
var Actionsheet3 =
|
|
5189
|
+
var Actionsheet3 = React29.forwardRef(function Actionsheet4({ className, ...props }, ref) {
|
|
6512
5190
|
return /* @__PURE__ */ jsx(
|
|
6513
5191
|
UIActionsheet2,
|
|
6514
5192
|
{
|
|
@@ -6520,7 +5198,7 @@ var Actionsheet3 = React48.forwardRef(function Actionsheet4({ className, ...prop
|
|
|
6520
5198
|
}
|
|
6521
5199
|
);
|
|
6522
5200
|
});
|
|
6523
|
-
var ActionsheetContent3 =
|
|
5201
|
+
var ActionsheetContent3 = React29.forwardRef(function ActionsheetContent4({ className, ...props }, ref) {
|
|
6524
5202
|
return /* @__PURE__ */ jsx(
|
|
6525
5203
|
UIActionsheet2.Content,
|
|
6526
5204
|
{
|
|
@@ -6532,7 +5210,7 @@ var ActionsheetContent3 = React48.forwardRef(function ActionsheetContent4({ clas
|
|
|
6532
5210
|
}
|
|
6533
5211
|
);
|
|
6534
5212
|
});
|
|
6535
|
-
var ActionsheetItem3 =
|
|
5213
|
+
var ActionsheetItem3 = React29.forwardRef(
|
|
6536
5214
|
function ActionsheetItem4({ className, ...props }, ref) {
|
|
6537
5215
|
return /* @__PURE__ */ jsx(
|
|
6538
5216
|
UIActionsheet2.Item,
|
|
@@ -6546,7 +5224,7 @@ var ActionsheetItem3 = React48.forwardRef(
|
|
|
6546
5224
|
);
|
|
6547
5225
|
}
|
|
6548
5226
|
);
|
|
6549
|
-
var ActionsheetItemText3 =
|
|
5227
|
+
var ActionsheetItemText3 = React29.forwardRef(function ActionsheetItemText4({ className, isTruncated, bold, underline, strikeThrough, size, ...props }, ref) {
|
|
6550
5228
|
return /* @__PURE__ */ jsx(
|
|
6551
5229
|
UIActionsheet2.ItemText,
|
|
6552
5230
|
{
|
|
@@ -6563,7 +5241,7 @@ var ActionsheetItemText3 = React48.forwardRef(function ActionsheetItemText4({ cl
|
|
|
6563
5241
|
}
|
|
6564
5242
|
);
|
|
6565
5243
|
});
|
|
6566
|
-
var ActionsheetDragIndicator3 =
|
|
5244
|
+
var ActionsheetDragIndicator3 = React29.forwardRef(function ActionsheetDragIndicator4({ className, ...props }, ref) {
|
|
6567
5245
|
return /* @__PURE__ */ jsx(
|
|
6568
5246
|
UIActionsheet2.DragIndicator,
|
|
6569
5247
|
{
|
|
@@ -6575,7 +5253,7 @@ var ActionsheetDragIndicator3 = React48.forwardRef(function ActionsheetDragIndic
|
|
|
6575
5253
|
}
|
|
6576
5254
|
);
|
|
6577
5255
|
});
|
|
6578
|
-
var ActionsheetDragIndicatorWrapper3 =
|
|
5256
|
+
var ActionsheetDragIndicatorWrapper3 = React29.forwardRef(function ActionsheetDragIndicatorWrapper4({ className, ...props }, ref) {
|
|
6579
5257
|
return /* @__PURE__ */ jsx(
|
|
6580
5258
|
UIActionsheet2.DragIndicatorWrapper,
|
|
6581
5259
|
{
|
|
@@ -6587,7 +5265,7 @@ var ActionsheetDragIndicatorWrapper3 = React48.forwardRef(function ActionsheetDr
|
|
|
6587
5265
|
}
|
|
6588
5266
|
);
|
|
6589
5267
|
});
|
|
6590
|
-
var ActionsheetBackdrop3 =
|
|
5268
|
+
var ActionsheetBackdrop3 = React29.forwardRef(function ActionsheetBackdrop4({ className, ...props }, ref) {
|
|
6591
5269
|
return /* @__PURE__ */ jsx(
|
|
6592
5270
|
UIActionsheet2.Backdrop,
|
|
6593
5271
|
{
|
|
@@ -6608,7 +5286,7 @@ var ActionsheetBackdrop3 = React48.forwardRef(function ActionsheetBackdrop4({ cl
|
|
|
6608
5286
|
}
|
|
6609
5287
|
);
|
|
6610
5288
|
});
|
|
6611
|
-
var ActionsheetScrollView3 =
|
|
5289
|
+
var ActionsheetScrollView3 = React29.forwardRef(function ActionsheetScrollView4({ className, ...props }, ref) {
|
|
6612
5290
|
return /* @__PURE__ */ jsx(
|
|
6613
5291
|
UIActionsheet2.ScrollView,
|
|
6614
5292
|
{
|
|
@@ -6620,7 +5298,7 @@ var ActionsheetScrollView3 = React48.forwardRef(function ActionsheetScrollView4(
|
|
|
6620
5298
|
}
|
|
6621
5299
|
);
|
|
6622
5300
|
});
|
|
6623
|
-
var ActionsheetVirtualizedList3 =
|
|
5301
|
+
var ActionsheetVirtualizedList3 = React29.forwardRef(function ActionsheetVirtualizedList4({ className, ...props }, ref) {
|
|
6624
5302
|
return /* @__PURE__ */ jsx(
|
|
6625
5303
|
UIActionsheet2.VirtualizedList,
|
|
6626
5304
|
{
|
|
@@ -6632,7 +5310,7 @@ var ActionsheetVirtualizedList3 = React48.forwardRef(function ActionsheetVirtual
|
|
|
6632
5310
|
}
|
|
6633
5311
|
);
|
|
6634
5312
|
});
|
|
6635
|
-
var ActionsheetFlatList3 =
|
|
5313
|
+
var ActionsheetFlatList3 = React29.forwardRef(function ActionsheetFlatList4({ className, ...props }, ref) {
|
|
6636
5314
|
return /* @__PURE__ */ jsx(
|
|
6637
5315
|
UIActionsheet2.FlatList,
|
|
6638
5316
|
{
|
|
@@ -6644,7 +5322,7 @@ var ActionsheetFlatList3 = React48.forwardRef(function ActionsheetFlatList4({ cl
|
|
|
6644
5322
|
}
|
|
6645
5323
|
);
|
|
6646
5324
|
});
|
|
6647
|
-
var ActionsheetSectionList3 =
|
|
5325
|
+
var ActionsheetSectionList3 = React29.forwardRef(function ActionsheetSectionList4({ className, ...props }, ref) {
|
|
6648
5326
|
return /* @__PURE__ */ jsx(
|
|
6649
5327
|
UIActionsheet2.SectionList,
|
|
6650
5328
|
{
|
|
@@ -6656,7 +5334,7 @@ var ActionsheetSectionList3 = React48.forwardRef(function ActionsheetSectionList
|
|
|
6656
5334
|
}
|
|
6657
5335
|
);
|
|
6658
5336
|
});
|
|
6659
|
-
var ActionsheetSectionHeaderText3 =
|
|
5337
|
+
var ActionsheetSectionHeaderText3 = React29.forwardRef(function ActionsheetSectionHeaderText4({ className, isTruncated, bold, underline, strikeThrough, size, sub, italic, highlight, ...props }, ref) {
|
|
6660
5338
|
return /* @__PURE__ */ jsx(
|
|
6661
5339
|
UIActionsheet2.SectionHeaderText,
|
|
6662
5340
|
{
|
|
@@ -6676,7 +5354,7 @@ var ActionsheetSectionHeaderText3 = React48.forwardRef(function ActionsheetSecti
|
|
|
6676
5354
|
}
|
|
6677
5355
|
);
|
|
6678
5356
|
});
|
|
6679
|
-
|
|
5357
|
+
React29.forwardRef(
|
|
6680
5358
|
function ActionsheetIcon4({ className, as: AsComp, size = "sm", ...props }, ref) {
|
|
6681
5359
|
if (AsComp) {
|
|
6682
5360
|
return /* @__PURE__ */ jsx(
|
|
@@ -6704,7 +5382,7 @@ React48.forwardRef(
|
|
|
6704
5382
|
);
|
|
6705
5383
|
}
|
|
6706
5384
|
);
|
|
6707
|
-
var SelectTriggerWrapper =
|
|
5385
|
+
var SelectTriggerWrapper = React29.forwardRef(function SelectTriggerWrapper2({ ...props }, ref) {
|
|
6708
5386
|
return /* @__PURE__ */ jsx(Pressable, { ...props, ref });
|
|
6709
5387
|
});
|
|
6710
5388
|
var selectIconStyle = tva({
|
|
@@ -6794,7 +5472,7 @@ cssInterop(UIIcon, {
|
|
|
6794
5472
|
}
|
|
6795
5473
|
}
|
|
6796
5474
|
});
|
|
6797
|
-
var Select =
|
|
5475
|
+
var Select = React29.forwardRef(function Select2({ className, ...props }, ref) {
|
|
6798
5476
|
return /* @__PURE__ */ jsx(
|
|
6799
5477
|
UISelect,
|
|
6800
5478
|
{
|
|
@@ -6806,7 +5484,7 @@ var Select = React48.forwardRef(function Select2({ className, ...props }, ref) {
|
|
|
6806
5484
|
}
|
|
6807
5485
|
);
|
|
6808
5486
|
});
|
|
6809
|
-
var SelectTrigger =
|
|
5487
|
+
var SelectTrigger = React29.forwardRef(
|
|
6810
5488
|
function SelectTrigger2({ className, size = "md", variant = "outline", ...props }, ref) {
|
|
6811
5489
|
return /* @__PURE__ */ jsx(
|
|
6812
5490
|
UISelect.Trigger,
|
|
@@ -6823,7 +5501,7 @@ var SelectTrigger = React48.forwardRef(
|
|
|
6823
5501
|
);
|
|
6824
5502
|
}
|
|
6825
5503
|
);
|
|
6826
|
-
var SelectInput =
|
|
5504
|
+
var SelectInput = React29.forwardRef(function SelectInput2({ className, ...props }, ref) {
|
|
6827
5505
|
const { size: parentSize, variant: parentVariant } = useStyleContext();
|
|
6828
5506
|
return /* @__PURE__ */ jsx(
|
|
6829
5507
|
UISelect.Input,
|
|
@@ -6840,14 +5518,11 @@ var SelectInput = React48.forwardRef(function SelectInput2({ className, ...props
|
|
|
6840
5518
|
}
|
|
6841
5519
|
);
|
|
6842
5520
|
});
|
|
6843
|
-
var SelectIcon =
|
|
5521
|
+
var SelectIcon = React29.forwardRef(function SelectIcon2({ className, size, ...props }, ref) {
|
|
6844
5522
|
const { size: parentSize } = useStyleContext();
|
|
6845
5523
|
if (typeof size === "number") {
|
|
6846
5524
|
return /* @__PURE__ */ jsx(UISelect.Icon, { ref, ...props, className: selectIconStyle({ class: className }), size });
|
|
6847
|
-
} else if (
|
|
6848
|
-
//@ts-expect-error : web only
|
|
6849
|
-
(props?.height !== void 0 || props?.width !== void 0) && size === void 0
|
|
6850
|
-
) {
|
|
5525
|
+
} else if ((props?.height !== void 0 || props?.width !== void 0) && size === void 0) {
|
|
6851
5526
|
return /* @__PURE__ */ jsx(UISelect.Icon, { ref, ...props, className: selectIconStyle({ class: className }) });
|
|
6852
5527
|
}
|
|
6853
5528
|
return /* @__PURE__ */ jsx(
|
|
@@ -6880,101 +5555,10 @@ var SelectVirtualizedList = UISelect.VirtualizedList;
|
|
|
6880
5555
|
var SelectFlatList = UISelect.FlatList;
|
|
6881
5556
|
var SelectSectionList = UISelect.SectionList;
|
|
6882
5557
|
var SelectSectionHeaderText = UISelect.SectionHeaderText;
|
|
6883
|
-
var
|
|
6884
|
-
|
|
6885
|
-
variants: {
|
|
6886
|
-
variant: {
|
|
6887
|
-
sharp: "rounded-none",
|
|
6888
|
-
circular: "rounded-full",
|
|
6889
|
-
rounded: "rounded-md"
|
|
6890
|
-
},
|
|
6891
|
-
speed: {
|
|
6892
|
-
1: "duration-750",
|
|
6893
|
-
2: "duration-100",
|
|
6894
|
-
3: "duration-1500",
|
|
6895
|
-
4: "duration-2000"
|
|
6896
|
-
}
|
|
6897
|
-
}
|
|
6898
|
-
});
|
|
6899
|
-
var skeletonTextStyle = tva({
|
|
6900
|
-
base: "rounded-sm w-full",
|
|
6901
|
-
variants: {
|
|
6902
|
-
speed: {
|
|
6903
|
-
1: "duration-750",
|
|
6904
|
-
2: "duration-1000",
|
|
6905
|
-
3: "duration-1500",
|
|
6906
|
-
4: "duration-2000"
|
|
6907
|
-
},
|
|
6908
|
-
gap: {
|
|
6909
|
-
1: "gap-1",
|
|
6910
|
-
2: "gap-2",
|
|
6911
|
-
3: "gap-3",
|
|
6912
|
-
4: "gap-4"
|
|
6913
|
-
}
|
|
6914
|
-
}
|
|
6915
|
-
});
|
|
6916
|
-
var Skeleton = forwardRef(function Skeleton2({ className, variant, children, startColor = "bg-accent", isLoaded = false, speed = 4, ...props }, ref) {
|
|
6917
|
-
if (!isLoaded) {
|
|
6918
|
-
return /* @__PURE__ */ jsx(
|
|
6919
|
-
View,
|
|
6920
|
-
{
|
|
6921
|
-
className: `animate-pulse ${startColor} ${skeletonStyle({
|
|
6922
|
-
variant,
|
|
6923
|
-
speed,
|
|
6924
|
-
class: className
|
|
6925
|
-
})}`,
|
|
6926
|
-
...props,
|
|
6927
|
-
ref
|
|
6928
|
-
}
|
|
6929
|
-
);
|
|
6930
|
-
} else {
|
|
6931
|
-
return children;
|
|
6932
|
-
}
|
|
6933
|
-
});
|
|
6934
|
-
var SkeletonText = forwardRef(function SkeletonText2({ className, _lines, isLoaded = false, startColor = "bg-accent", gap = 2, children, ...props }, ref) {
|
|
6935
|
-
if (!isLoaded) {
|
|
6936
|
-
if (_lines) {
|
|
6937
|
-
return /* @__PURE__ */ jsx(
|
|
6938
|
-
View,
|
|
6939
|
-
{
|
|
6940
|
-
className: `flex flex-col ${skeletonTextStyle({
|
|
6941
|
-
gap
|
|
6942
|
-
})}`,
|
|
6943
|
-
ref,
|
|
6944
|
-
children: Array.from({ length: _lines }).map((_, index) => /* @__PURE__ */ jsx(
|
|
6945
|
-
Skeleton,
|
|
6946
|
-
{
|
|
6947
|
-
className: `${startColor} ${skeletonTextStyle({
|
|
6948
|
-
class: className
|
|
6949
|
-
})}`,
|
|
6950
|
-
...props
|
|
6951
|
-
},
|
|
6952
|
-
index
|
|
6953
|
-
))
|
|
6954
|
-
}
|
|
6955
|
-
);
|
|
6956
|
-
} else {
|
|
6957
|
-
return /* @__PURE__ */ jsx(
|
|
6958
|
-
Skeleton,
|
|
6959
|
-
{
|
|
6960
|
-
className: `${startColor} ${skeletonTextStyle({
|
|
6961
|
-
class: className
|
|
6962
|
-
})}`,
|
|
6963
|
-
...props,
|
|
6964
|
-
ref
|
|
6965
|
-
}
|
|
6966
|
-
);
|
|
6967
|
-
}
|
|
6968
|
-
} else {
|
|
6969
|
-
return children;
|
|
6970
|
-
}
|
|
6971
|
-
});
|
|
6972
|
-
Skeleton.displayName = "Skeleton";
|
|
6973
|
-
SkeletonText.displayName = "SkeletonText";
|
|
6974
|
-
var SCOPE16 = "SLIDER";
|
|
6975
|
-
var Root3 = withStyleContext(View, SCOPE16);
|
|
5558
|
+
var SCOPE11 = "SLIDER";
|
|
5559
|
+
var Root = withStyleContext(View, SCOPE11);
|
|
6976
5560
|
var UISlider = createSlider({
|
|
6977
|
-
Root
|
|
5561
|
+
Root,
|
|
6978
5562
|
Thumb: View,
|
|
6979
5563
|
Track: Pressable,
|
|
6980
5564
|
FilledTrack: View,
|
|
@@ -7031,7 +5615,7 @@ var sliderFilledTrackStyle = tva({
|
|
|
7031
5615
|
}
|
|
7032
5616
|
}
|
|
7033
5617
|
});
|
|
7034
|
-
var Slider =
|
|
5618
|
+
var Slider = React29.forwardRef(function Slider2({ className, orientation = "horizontal", isReversed = false, ...props }, ref) {
|
|
7035
5619
|
return /* @__PURE__ */ jsx(
|
|
7036
5620
|
UISlider,
|
|
7037
5621
|
{
|
|
@@ -7048,7 +5632,7 @@ var Slider = React48.forwardRef(function Slider2({ className, orientation = "hor
|
|
|
7048
5632
|
}
|
|
7049
5633
|
);
|
|
7050
5634
|
});
|
|
7051
|
-
var SliderThumb =
|
|
5635
|
+
var SliderThumb = React29.forwardRef(function SliderThumb2({ className, ...props }, ref) {
|
|
7052
5636
|
return /* @__PURE__ */ jsx(
|
|
7053
5637
|
UISlider.Thumb,
|
|
7054
5638
|
{
|
|
@@ -7060,8 +5644,8 @@ var SliderThumb = React48.forwardRef(function SliderThumb2({ className, ...props
|
|
|
7060
5644
|
}
|
|
7061
5645
|
);
|
|
7062
5646
|
});
|
|
7063
|
-
var SliderTrack =
|
|
7064
|
-
const { orientation: parentOrientation, isReversed } = useStyleContext(
|
|
5647
|
+
var SliderTrack = React29.forwardRef(function SliderTrack2({ className, ...props }, ref) {
|
|
5648
|
+
const { orientation: parentOrientation, isReversed } = useStyleContext(SCOPE11);
|
|
7065
5649
|
return /* @__PURE__ */ jsx(
|
|
7066
5650
|
UISlider.Track,
|
|
7067
5651
|
{
|
|
@@ -7077,9 +5661,9 @@ var SliderTrack = React48.forwardRef(function SliderTrack2({ className, ...props
|
|
|
7077
5661
|
}
|
|
7078
5662
|
);
|
|
7079
5663
|
});
|
|
7080
|
-
var SliderFilledTrack =
|
|
5664
|
+
var SliderFilledTrack = React29.forwardRef(
|
|
7081
5665
|
function SliderFilledTrack2({ className, ...props }, ref) {
|
|
7082
|
-
const { orientation: parentOrientation } = useStyleContext(
|
|
5666
|
+
const { orientation: parentOrientation } = useStyleContext(SCOPE11);
|
|
7083
5667
|
return /* @__PURE__ */ jsx(
|
|
7084
5668
|
UISlider.FilledTrack,
|
|
7085
5669
|
{
|
|
@@ -7095,41 +5679,6 @@ var SliderFilledTrack = React48.forwardRef(
|
|
|
7095
5679
|
);
|
|
7096
5680
|
}
|
|
7097
5681
|
);
|
|
7098
|
-
cssInterop(ActivityIndicator, {
|
|
7099
|
-
className: { target: "style", nativeStyleToProp: { color: true } }
|
|
7100
|
-
});
|
|
7101
|
-
var spinnerStyle = tva({});
|
|
7102
|
-
var Spinner = React48.forwardRef(function Spinner2({ className, color, focusable = false, "aria-label": ariaLabel = "loading", ...props }, ref) {
|
|
7103
|
-
return /* @__PURE__ */ jsx(
|
|
7104
|
-
ActivityIndicator,
|
|
7105
|
-
{
|
|
7106
|
-
ref,
|
|
7107
|
-
focusable,
|
|
7108
|
-
"aria-label": ariaLabel,
|
|
7109
|
-
...props,
|
|
7110
|
-
color,
|
|
7111
|
-
className: spinnerStyle({ class: className })
|
|
7112
|
-
}
|
|
7113
|
-
);
|
|
7114
|
-
});
|
|
7115
|
-
Spinner.displayName = "Spinner";
|
|
7116
|
-
var UISwitch = createSwitch({
|
|
7117
|
-
Root: withStyleContext(Switch$1)
|
|
7118
|
-
});
|
|
7119
|
-
var switchStyle = tva({
|
|
7120
|
-
base: "data-[focus=true]:outline-0 data-[focus=true]:ring-2 data-[focus=true]:ring-indicator-primary web:cursor-pointer disabled:cursor-not-allowed data-[disabled=true]:opacity-40 data-[invalid=true]:border-destructive data-[invalid=true]:rounded-xl data-[invalid=true]:border-2",
|
|
7121
|
-
variants: {
|
|
7122
|
-
size: {
|
|
7123
|
-
sm: "scale-75",
|
|
7124
|
-
md: "",
|
|
7125
|
-
lg: "scale-125"
|
|
7126
|
-
}
|
|
7127
|
-
}
|
|
7128
|
-
});
|
|
7129
|
-
var Switch = React48.forwardRef(function Switch2({ className, size = "md", ...props }, ref) {
|
|
7130
|
-
return /* @__PURE__ */ jsx(UISwitch, { ref, ...props, className: switchStyle({ size, class: className }) });
|
|
7131
|
-
});
|
|
7132
|
-
Switch.displayName = "Switch";
|
|
7133
5682
|
var captionTableStyle = isWeb ? "caption-bottom" : "";
|
|
7134
5683
|
var tableStyle = tva({
|
|
7135
5684
|
base: `table border-collapse w-[800px]`
|
|
@@ -7169,10 +5718,12 @@ var TableHeaderContext = createContext({
|
|
|
7169
5718
|
var TableFooterContext = createContext({
|
|
7170
5719
|
isFooterRow: false
|
|
7171
5720
|
});
|
|
7172
|
-
var Table =
|
|
7173
|
-
|
|
7174
|
-
});
|
|
7175
|
-
|
|
5721
|
+
var Table = React29.forwardRef(
|
|
5722
|
+
({ className, ...props }, ref) => {
|
|
5723
|
+
return /* @__PURE__ */ jsx(Table$1, { ref, className: tableStyle({ class: className }), ...props });
|
|
5724
|
+
}
|
|
5725
|
+
);
|
|
5726
|
+
var TableHeader = React29.forwardRef(function TableHeader2({ className, ...props }, ref) {
|
|
7176
5727
|
const contextValue = useMemo(() => {
|
|
7177
5728
|
return {
|
|
7178
5729
|
isHeaderRow: true
|
|
@@ -7180,10 +5731,10 @@ var TableHeader = React48.forwardRef(function TableHeader2({ className, ...props
|
|
|
7180
5731
|
}, []);
|
|
7181
5732
|
return /* @__PURE__ */ jsx(TableHeaderContext.Provider, { value: contextValue, children: /* @__PURE__ */ jsx(THead, { ref, className: tableHeaderStyle({ class: className }), ...props }) });
|
|
7182
5733
|
});
|
|
7183
|
-
var TableBody =
|
|
5734
|
+
var TableBody = React29.forwardRef(function TableBody2({ className, ...props }, ref) {
|
|
7184
5735
|
return /* @__PURE__ */ jsx(TBody, { ref, className: tableBodyStyle({ class: className }), ...props });
|
|
7185
5736
|
});
|
|
7186
|
-
var TableFooter =
|
|
5737
|
+
var TableFooter = React29.forwardRef(function TableFooter2({ className, ...props }, ref) {
|
|
7187
5738
|
const contextValue = useMemo(() => {
|
|
7188
5739
|
return {
|
|
7189
5740
|
isFooterRow: true
|
|
@@ -7191,14 +5742,16 @@ var TableFooter = React48.forwardRef(function TableFooter2({ className, ...props
|
|
|
7191
5742
|
}, []);
|
|
7192
5743
|
return /* @__PURE__ */ jsx(TableFooterContext.Provider, { value: contextValue, children: /* @__PURE__ */ jsx(TFoot, { ref, className: tableFooterStyle({ class: className }), ...props }) });
|
|
7193
5744
|
});
|
|
7194
|
-
var TableHead =
|
|
7195
|
-
|
|
7196
|
-
|
|
7197
|
-
|
|
7198
|
-
|
|
5745
|
+
var TableHead = React29.forwardRef(
|
|
5746
|
+
function TableHead2({ useRNView = false, className, ...props }, ref) {
|
|
5747
|
+
if (useRNView) {
|
|
5748
|
+
return /* @__PURE__ */ jsx(View, { ref, className: tableHeadStyle({ class: className }), ...props });
|
|
5749
|
+
} else {
|
|
5750
|
+
return /* @__PURE__ */ jsx(Text, { ref, className: tableHeadStyle({ class: className }), ...props });
|
|
5751
|
+
}
|
|
7199
5752
|
}
|
|
7200
|
-
|
|
7201
|
-
var TableRow =
|
|
5753
|
+
);
|
|
5754
|
+
var TableRow = React29.forwardRef(function TableRow2({ className, ...props }, ref) {
|
|
7202
5755
|
const { isHeaderRow } = useContext(TableHeaderContext);
|
|
7203
5756
|
const { isFooterRow } = useContext(TableFooterContext);
|
|
7204
5757
|
return /* @__PURE__ */ jsx(
|
|
@@ -7214,14 +5767,16 @@ var TableRow = React48.forwardRef(function TableRow2({ className, ...props }, re
|
|
|
7214
5767
|
}
|
|
7215
5768
|
);
|
|
7216
5769
|
});
|
|
7217
|
-
var TableData =
|
|
7218
|
-
|
|
7219
|
-
|
|
7220
|
-
|
|
7221
|
-
|
|
5770
|
+
var TableData = React29.forwardRef(
|
|
5771
|
+
function TableData2({ useRNView = false, className, ...props }, ref) {
|
|
5772
|
+
if (useRNView) {
|
|
5773
|
+
return /* @__PURE__ */ jsx(View, { ref, className: tableDataStyle({ class: className }), ...props });
|
|
5774
|
+
} else {
|
|
5775
|
+
return /* @__PURE__ */ jsx(Text, { ref, className: tableDataStyle({ class: className }), ...props });
|
|
5776
|
+
}
|
|
7222
5777
|
}
|
|
7223
|
-
|
|
7224
|
-
var TableCaption =
|
|
5778
|
+
);
|
|
5779
|
+
var TableCaption = React29.forwardRef(
|
|
7225
5780
|
({ className, ...props }, ref) => {
|
|
7226
5781
|
return /* @__PURE__ */ jsx(Caption, { ref, className: tableCaptionStyle({ class: className }), ...props });
|
|
7227
5782
|
}
|
|
@@ -7234,9 +5789,9 @@ TableHead.displayName = "TableHead";
|
|
|
7234
5789
|
TableRow.displayName = "TableRow";
|
|
7235
5790
|
TableData.displayName = "TableData";
|
|
7236
5791
|
TableCaption.displayName = "TableCaption";
|
|
7237
|
-
var TabsContext =
|
|
5792
|
+
var TabsContext = React29.createContext(null);
|
|
7238
5793
|
function createTabs({
|
|
7239
|
-
Root:
|
|
5794
|
+
Root: Root4,
|
|
7240
5795
|
List,
|
|
7241
5796
|
Trigger,
|
|
7242
5797
|
Content,
|
|
@@ -7245,36 +5800,36 @@ function createTabs({
|
|
|
7245
5800
|
TriggerIcon,
|
|
7246
5801
|
Indicator
|
|
7247
5802
|
}) {
|
|
7248
|
-
const Tabs2 =
|
|
7249
|
-
const [uncontrolledKey, setUncontrolledKey] =
|
|
5803
|
+
const Tabs2 = React29.forwardRef(function Tabs3({ value, defaultValue, onValueChange, orientation = "horizontal", children, ...props }, ref) {
|
|
5804
|
+
const [uncontrolledKey, setUncontrolledKey] = React29.useState(defaultValue);
|
|
7250
5805
|
const selectedKey = value !== void 0 ? value : uncontrolledKey;
|
|
7251
|
-
const [scrollOffset, setScrollOffsetState] =
|
|
7252
|
-
const listRef =
|
|
7253
|
-
const triggerLayouts =
|
|
7254
|
-
const contentLayouts =
|
|
7255
|
-
const [, forceRender] =
|
|
7256
|
-
const setSelectedKey =
|
|
5806
|
+
const [scrollOffset, setScrollOffsetState] = React29.useState(0);
|
|
5807
|
+
const listRef = React29.useRef(null);
|
|
5808
|
+
const triggerLayouts = React29.useRef(/* @__PURE__ */ new Map()).current;
|
|
5809
|
+
const contentLayouts = React29.useRef(/* @__PURE__ */ new Map()).current;
|
|
5810
|
+
const [, forceRender] = React29.useReducer((c) => c + 1, 0);
|
|
5811
|
+
const setSelectedKey = React29.useCallback(
|
|
7257
5812
|
(key) => {
|
|
7258
5813
|
if (value === void 0) setUncontrolledKey(key);
|
|
7259
5814
|
onValueChange?.(key);
|
|
7260
5815
|
},
|
|
7261
5816
|
[value, onValueChange]
|
|
7262
5817
|
);
|
|
7263
|
-
const registerTriggerLayout =
|
|
5818
|
+
const registerTriggerLayout = React29.useCallback(
|
|
7264
5819
|
(key, layout) => {
|
|
7265
5820
|
triggerLayouts.set(key, layout);
|
|
7266
5821
|
forceRender();
|
|
7267
5822
|
},
|
|
7268
5823
|
[triggerLayouts]
|
|
7269
5824
|
);
|
|
7270
|
-
const registerContentLayout =
|
|
5825
|
+
const registerContentLayout = React29.useCallback(
|
|
7271
5826
|
(key, layout) => {
|
|
7272
5827
|
contentLayouts.set(key, layout);
|
|
7273
5828
|
forceRender();
|
|
7274
5829
|
},
|
|
7275
5830
|
[contentLayouts]
|
|
7276
5831
|
);
|
|
7277
|
-
const contextValue =
|
|
5832
|
+
const contextValue = React29.useMemo(
|
|
7278
5833
|
() => ({
|
|
7279
5834
|
orientation,
|
|
7280
5835
|
selectedKey,
|
|
@@ -7298,15 +5853,15 @@ function createTabs({
|
|
|
7298
5853
|
registerContentLayout
|
|
7299
5854
|
]
|
|
7300
5855
|
);
|
|
7301
|
-
return /* @__PURE__ */ jsx(TabsContext.Provider, { value: contextValue, children: /* @__PURE__ */ jsx(
|
|
5856
|
+
return /* @__PURE__ */ jsx(TabsContext.Provider, { value: contextValue, children: /* @__PURE__ */ jsx(Root4, { ref, ...props, children }) });
|
|
7302
5857
|
});
|
|
7303
|
-
const TabsListBase =
|
|
5858
|
+
const TabsListBase = React29.forwardRef(function TabsListBase2({ children, ...props }, ref) {
|
|
7304
5859
|
return /* @__PURE__ */ jsx(List, { ref, ...props, children });
|
|
7305
5860
|
});
|
|
7306
|
-
const TabsTriggerBase =
|
|
7307
|
-
const context =
|
|
5861
|
+
const TabsTriggerBase = React29.forwardRef(function TabsTriggerBase2({ value, disabled, onPress, onLayout, ...props }, ref) {
|
|
5862
|
+
const context = React29.useContext(TabsContext);
|
|
7308
5863
|
const isSelected = context?.selectedKey === value;
|
|
7309
|
-
const handleLayout =
|
|
5864
|
+
const handleLayout = React29.useCallback(
|
|
7310
5865
|
(event) => {
|
|
7311
5866
|
const { x, y, width, height } = event.nativeEvent.layout;
|
|
7312
5867
|
context?.registerTriggerLayout(value, { x, y, width, height });
|
|
@@ -7314,7 +5869,7 @@ function createTabs({
|
|
|
7314
5869
|
},
|
|
7315
5870
|
[context, value, onLayout]
|
|
7316
5871
|
);
|
|
7317
|
-
const handlePress =
|
|
5872
|
+
const handlePress = React29.useCallback(
|
|
7318
5873
|
(event) => {
|
|
7319
5874
|
if (!disabled) context?.setSelectedKey(value);
|
|
7320
5875
|
onPress?.(event);
|
|
@@ -7333,10 +5888,10 @@ function createTabs({
|
|
|
7333
5888
|
}
|
|
7334
5889
|
);
|
|
7335
5890
|
});
|
|
7336
|
-
const TabsContentBase =
|
|
7337
|
-
const context =
|
|
5891
|
+
const TabsContentBase = React29.forwardRef(function TabsContentBase2({ value, style, onLayout, ...props }, ref) {
|
|
5892
|
+
const context = React29.useContext(TabsContext);
|
|
7338
5893
|
const isSelected = context?.selectedKey === value;
|
|
7339
|
-
const handleLayout =
|
|
5894
|
+
const handleLayout = React29.useCallback(
|
|
7340
5895
|
(event) => {
|
|
7341
5896
|
const { x, y, width, height } = event.nativeEvent.layout;
|
|
7342
5897
|
context?.registerContentLayout(value, { x, y, width, height });
|
|
@@ -7346,10 +5901,10 @@ function createTabs({
|
|
|
7346
5901
|
);
|
|
7347
5902
|
return /* @__PURE__ */ jsx(Content, { ref, onLayout: handleLayout, style: [style, !isSelected && { display: "none" }], ...props });
|
|
7348
5903
|
});
|
|
7349
|
-
const TabsContentWrapperBase =
|
|
5904
|
+
const TabsContentWrapperBase = React29.forwardRef(function TabsContentWrapperBase2(props, ref) {
|
|
7350
5905
|
return /* @__PURE__ */ jsx(ContentWrapper, { ref, ...props });
|
|
7351
5906
|
});
|
|
7352
|
-
const TabsIndicatorBase =
|
|
5907
|
+
const TabsIndicatorBase = React29.forwardRef(function TabsIndicatorBase2(props, ref) {
|
|
7353
5908
|
return /* @__PURE__ */ jsx(Indicator, { ref, ...props });
|
|
7354
5909
|
});
|
|
7355
5910
|
const Compound = Tabs2;
|
|
@@ -7363,13 +5918,13 @@ function createTabs({
|
|
|
7363
5918
|
return Compound;
|
|
7364
5919
|
}
|
|
7365
5920
|
|
|
7366
|
-
// components/ui/tabs/animation-config.ts
|
|
5921
|
+
// components/providers/gluestack/ui/tabs/animation-config.ts
|
|
7367
5922
|
var tabsAnimationConfig = {
|
|
7368
5923
|
indicatorDuration: 200
|
|
7369
5924
|
};
|
|
7370
|
-
Platform.OS === "web" ? cssInterop(
|
|
7371
|
-
var
|
|
7372
|
-
var TabsAnimatedIndicator =
|
|
5925
|
+
Platform.OS === "web" ? cssInterop(Animated8.View, { className: { target: "style" } }) : Animated8.View;
|
|
5926
|
+
var isWeb3 = Platform.OS === "web";
|
|
5927
|
+
var TabsAnimatedIndicator = React29.forwardRef(
|
|
7373
5928
|
({ selectedKey, orientation, triggerLayouts, scrollOffset = 0, animatedScrollOffset, className, style }, ref) => {
|
|
7374
5929
|
const animatedX = useSharedValue(0);
|
|
7375
5930
|
const animatedY = useSharedValue(0);
|
|
@@ -7417,7 +5972,7 @@ var TabsAnimatedIndicator = React48.forwardRef(
|
|
|
7417
5972
|
"worklet";
|
|
7418
5973
|
const scrollOffsetValue = animatedScrollOffset ? animatedScrollOffset.value : scrollOffsetShared.value;
|
|
7419
5974
|
const xPos = orientation === "horizontal" ? animatedX.value - scrollOffsetValue : animatedX.value;
|
|
7420
|
-
if (
|
|
5975
|
+
if (isWeb3) {
|
|
7421
5976
|
return {
|
|
7422
5977
|
left: xPos,
|
|
7423
5978
|
top: animatedY.value,
|
|
@@ -7438,7 +5993,7 @@ var TabsAnimatedIndicator = React48.forwardRef(
|
|
|
7438
5993
|
return null;
|
|
7439
5994
|
}
|
|
7440
5995
|
return /* @__PURE__ */ jsx(
|
|
7441
|
-
|
|
5996
|
+
Animated8.View,
|
|
7442
5997
|
{
|
|
7443
5998
|
ref,
|
|
7444
5999
|
className,
|
|
@@ -7455,10 +6010,10 @@ var TabsAnimatedIndicator = React48.forwardRef(
|
|
|
7455
6010
|
}
|
|
7456
6011
|
);
|
|
7457
6012
|
TabsAnimatedIndicator.displayName = "TabsAnimatedIndicator";
|
|
7458
|
-
var
|
|
7459
|
-
var
|
|
7460
|
-
var AnimatedFlatList =
|
|
7461
|
-
Platform.OS === "web" ? cssInterop(
|
|
6013
|
+
var SCOPE12 = "TABS";
|
|
6014
|
+
var AnimatedView6 = Animated8.createAnimatedComponent(View);
|
|
6015
|
+
var AnimatedFlatList = Animated8.createAnimatedComponent(FlatList);
|
|
6016
|
+
Platform.OS === "web" ? cssInterop(AnimatedView6, { className: { target: "style" } }) : AnimatedView6;
|
|
7462
6017
|
var tabsStyle = tva({
|
|
7463
6018
|
base: "w-full gap-1"
|
|
7464
6019
|
});
|
|
@@ -7501,13 +6056,13 @@ var tabsIndicatorStyle = tva({
|
|
|
7501
6056
|
}
|
|
7502
6057
|
}
|
|
7503
6058
|
});
|
|
7504
|
-
var
|
|
6059
|
+
var Root2 = withStyleContext(View, SCOPE12);
|
|
7505
6060
|
var UITabs = createTabs({
|
|
7506
|
-
Root:
|
|
6061
|
+
Root: Root2,
|
|
7507
6062
|
List: View,
|
|
7508
6063
|
Trigger: Pressable,
|
|
7509
6064
|
Content: View,
|
|
7510
|
-
ContentWrapper:
|
|
6065
|
+
ContentWrapper: AnimatedView6,
|
|
7511
6066
|
TriggerText: Text,
|
|
7512
6067
|
TriggerIcon: UIIcon,
|
|
7513
6068
|
Indicator: View
|
|
@@ -7524,7 +6079,7 @@ cssInterop(PrimitiveIcon, {
|
|
|
7524
6079
|
}
|
|
7525
6080
|
}
|
|
7526
6081
|
});
|
|
7527
|
-
var Tabs =
|
|
6082
|
+
var Tabs = React29.forwardRef(
|
|
7528
6083
|
({ className, variant = "filled", ...props }, ref) => {
|
|
7529
6084
|
return /* @__PURE__ */ jsx(
|
|
7530
6085
|
UITabs,
|
|
@@ -7537,9 +6092,9 @@ var Tabs = React48.forwardRef(
|
|
|
7537
6092
|
);
|
|
7538
6093
|
}
|
|
7539
6094
|
);
|
|
7540
|
-
var TabsList =
|
|
6095
|
+
var TabsList = React29.forwardRef(
|
|
7541
6096
|
({ className, children, ...props }, ref) => {
|
|
7542
|
-
const context =
|
|
6097
|
+
const context = React29.useContext(TabsContext);
|
|
7543
6098
|
const flatListRef = useRef(null);
|
|
7544
6099
|
if (!context) return null;
|
|
7545
6100
|
const { orientation, setScrollOffset, selectedKey, listRef } = context;
|
|
@@ -7551,7 +6106,7 @@ var TabsList = React48.forwardRef(
|
|
|
7551
6106
|
}, [context, animatedScrollOffset]);
|
|
7552
6107
|
useEffect(() => {
|
|
7553
6108
|
if (orientation !== "horizontal" || !selectedKey) return;
|
|
7554
|
-
const childArray =
|
|
6109
|
+
const childArray = React29.Children.toArray(children);
|
|
7555
6110
|
const triggers2 = childArray.filter((child) => child?.type?.displayName !== "TabsIndicator");
|
|
7556
6111
|
const selectedIndex = triggers2.findIndex((child) => child?.props?.value === selectedKey);
|
|
7557
6112
|
if (selectedIndex >= 0 && flatListRef.current) {
|
|
@@ -7582,7 +6137,7 @@ var TabsList = React48.forwardRef(
|
|
|
7582
6137
|
setScrollOffset(x);
|
|
7583
6138
|
};
|
|
7584
6139
|
const { triggers, indicator } = useMemo(() => {
|
|
7585
|
-
const childArray =
|
|
6140
|
+
const childArray = React29.Children.toArray(children);
|
|
7586
6141
|
return {
|
|
7587
6142
|
triggers: childArray.filter((child) => child?.type?.displayName !== "TabsIndicator"),
|
|
7588
6143
|
indicator: childArray.find((child) => child?.type?.displayName === "TabsIndicator")
|
|
@@ -7623,9 +6178,9 @@ var TabsList = React48.forwardRef(
|
|
|
7623
6178
|
return /* @__PURE__ */ jsx(UITabs.List, { ref, ...props, className: tabsListStyle({ orientation, class: className }), children });
|
|
7624
6179
|
}
|
|
7625
6180
|
);
|
|
7626
|
-
var TabsTrigger =
|
|
6181
|
+
var TabsTrigger = React29.forwardRef(
|
|
7627
6182
|
({ className, ...props }, ref) => {
|
|
7628
|
-
const { variant } = useStyleContext(
|
|
6183
|
+
const { variant } = useStyleContext(SCOPE12);
|
|
7629
6184
|
return /* @__PURE__ */ jsx(
|
|
7630
6185
|
UITabs.Trigger,
|
|
7631
6186
|
{
|
|
@@ -7639,19 +6194,19 @@ var TabsTrigger = React48.forwardRef(
|
|
|
7639
6194
|
);
|
|
7640
6195
|
}
|
|
7641
6196
|
);
|
|
7642
|
-
var TabsContent =
|
|
6197
|
+
var TabsContent = React29.forwardRef(
|
|
7643
6198
|
({ className, ...props }, ref) => {
|
|
7644
6199
|
return /* @__PURE__ */ jsx(UITabs.Content, { ref, ...props, className: tabsContentStyle({ class: className }) });
|
|
7645
6200
|
}
|
|
7646
6201
|
);
|
|
7647
|
-
var TabsContentWrapper =
|
|
6202
|
+
var TabsContentWrapper = React29.forwardRef(
|
|
7648
6203
|
({ className, targetHeight, ...props }, ref) => {
|
|
7649
|
-
const context =
|
|
6204
|
+
const context = React29.useContext(TabsContext);
|
|
7650
6205
|
const selectedLayout = context?.selectedKey ? context.contentLayouts.get(context.selectedKey) : null;
|
|
7651
6206
|
const height = selectedLayout?.height || 0;
|
|
7652
6207
|
const heightValue = useSharedValue(height);
|
|
7653
|
-
const isFirstRender =
|
|
7654
|
-
|
|
6208
|
+
const isFirstRender = React29.useRef(true);
|
|
6209
|
+
React29.useEffect(() => {
|
|
7655
6210
|
if (height > 0) {
|
|
7656
6211
|
if (isFirstRender.current) {
|
|
7657
6212
|
heightValue.value = height;
|
|
@@ -7677,7 +6232,7 @@ var TabsContentWrapper = React48.forwardRef(
|
|
|
7677
6232
|
);
|
|
7678
6233
|
}
|
|
7679
6234
|
);
|
|
7680
|
-
var TabsTriggerText =
|
|
6235
|
+
var TabsTriggerText = React29.forwardRef(
|
|
7681
6236
|
({ className, ...props }, ref) => {
|
|
7682
6237
|
return /* @__PURE__ */ jsx(
|
|
7683
6238
|
UITabs.TriggerText,
|
|
@@ -7691,9 +6246,9 @@ var TabsTriggerText = React48.forwardRef(
|
|
|
7691
6246
|
);
|
|
7692
6247
|
}
|
|
7693
6248
|
);
|
|
7694
|
-
var TabsTriggerIcon =
|
|
6249
|
+
var TabsTriggerIcon = React29.forwardRef(
|
|
7695
6250
|
({ className, ...props }, ref) => {
|
|
7696
|
-
const { variant } = useStyleContext(
|
|
6251
|
+
const { variant } = useStyleContext(SCOPE12);
|
|
7697
6252
|
const safeProps = Platform.OS === "web" ? (() => {
|
|
7698
6253
|
const { dataSet, ...rest } = props;
|
|
7699
6254
|
return rest;
|
|
@@ -7711,10 +6266,10 @@ var TabsTriggerIcon = React48.forwardRef(
|
|
|
7711
6266
|
);
|
|
7712
6267
|
}
|
|
7713
6268
|
);
|
|
7714
|
-
var TabsIndicator =
|
|
6269
|
+
var TabsIndicator = React29.forwardRef(
|
|
7715
6270
|
({ className, ...props }, ref) => {
|
|
7716
|
-
const context =
|
|
7717
|
-
const { variant } = useStyleContext(
|
|
6271
|
+
const context = React29.useContext(TabsContext);
|
|
6272
|
+
const { variant } = useStyleContext(SCOPE12);
|
|
7718
6273
|
if (!context) {
|
|
7719
6274
|
return null;
|
|
7720
6275
|
}
|
|
@@ -7746,125 +6301,10 @@ TabsContentWrapper.displayName = "TabsContentWrapper";
|
|
|
7746
6301
|
TabsTriggerText.displayName = "TabsTriggerText";
|
|
7747
6302
|
TabsTriggerIcon.displayName = "TabsTriggerIcon";
|
|
7748
6303
|
TabsIndicator.displayName = "TabsIndicator";
|
|
7749
|
-
var baseStyle6 = isWeb ? "font-sans tracking-sm my-0 bg-transparent border-0 box-border display-inline list-none margin-0 padding-0 position-relative text-start no-underline whitespace-pre-wrap word-wrap-break-word" : "";
|
|
7750
|
-
var textStyle = tva({
|
|
7751
|
-
base: `text-foreground font-body ${baseStyle6}`,
|
|
7752
|
-
variants: {
|
|
7753
|
-
isTruncated: {
|
|
7754
|
-
true: "web:truncate"
|
|
7755
|
-
},
|
|
7756
|
-
bold: {
|
|
7757
|
-
true: "font-bold"
|
|
7758
|
-
},
|
|
7759
|
-
underline: {
|
|
7760
|
-
true: "underline"
|
|
7761
|
-
},
|
|
7762
|
-
strikeThrough: {
|
|
7763
|
-
true: "line-through"
|
|
7764
|
-
},
|
|
7765
|
-
size: {
|
|
7766
|
-
"2xs": "text-2xs",
|
|
7767
|
-
xs: "text-xs",
|
|
7768
|
-
sm: "text-sm",
|
|
7769
|
-
md: "text-base",
|
|
7770
|
-
lg: "text-lg",
|
|
7771
|
-
xl: "text-xl",
|
|
7772
|
-
"2xl": "text-2xl",
|
|
7773
|
-
"3xl": "text-3xl",
|
|
7774
|
-
"4xl": "text-4xl",
|
|
7775
|
-
"5xl": "text-5xl",
|
|
7776
|
-
"6xl": "text-6xl"
|
|
7777
|
-
},
|
|
7778
|
-
sub: {
|
|
7779
|
-
true: "text-xs"
|
|
7780
|
-
},
|
|
7781
|
-
italic: {
|
|
7782
|
-
true: "italic"
|
|
7783
|
-
},
|
|
7784
|
-
highlight: {
|
|
7785
|
-
true: "bg-yellow-500"
|
|
7786
|
-
}
|
|
7787
|
-
}
|
|
7788
|
-
});
|
|
7789
|
-
var Text21 = React48.forwardRef(function Text22({ className, isTruncated, bold, underline, strikeThrough, size = "md", sub, italic, highlight, ...props }, ref) {
|
|
7790
|
-
return /* @__PURE__ */ jsx(
|
|
7791
|
-
Text,
|
|
7792
|
-
{
|
|
7793
|
-
className: textStyle({
|
|
7794
|
-
isTruncated,
|
|
7795
|
-
bold,
|
|
7796
|
-
underline,
|
|
7797
|
-
strikeThrough,
|
|
7798
|
-
size,
|
|
7799
|
-
sub,
|
|
7800
|
-
italic,
|
|
7801
|
-
highlight,
|
|
7802
|
-
class: className
|
|
7803
|
-
}),
|
|
7804
|
-
...props,
|
|
7805
|
-
ref
|
|
7806
|
-
}
|
|
7807
|
-
);
|
|
7808
|
-
});
|
|
7809
|
-
Text21.displayName = "Text";
|
|
7810
|
-
var SCOPE18 = "TEXTAREA";
|
|
7811
|
-
var UITextarea = createTextarea({
|
|
7812
|
-
Root: withStyleContext(View, SCOPE18),
|
|
7813
|
-
Input: TextInput
|
|
7814
|
-
});
|
|
7815
|
-
var textareaStyle = tva({
|
|
7816
|
-
base: "w-full h-[100px] border border-border dark:bg-input/30 rounded data-[hover=true]:border-border/80 data-[focus=true]:border-primary/80 data-[focus=true]:data-[hover=true]:border-primary/80 data-[disabled=true]:opacity-40 data-[disabled=true]:bg-background/90 data-[disabled=true]:data-[hover=true]:border-border/80",
|
|
7817
|
-
variants: {
|
|
7818
|
-
variant: {
|
|
7819
|
-
default: "data-[focus=true]:border-primary/80 data-[focus=true]:web:ring-1 data-[focus=true]:web:ring-inset data-[focus=true]:web:ring-indicator-primary data-[invalid=true]:border-destructive data-[invalid=true]:web:ring-1 data-[invalid=true]:web:ring-inset data-[invalid=true]:web:ring-indicator-error data-[invalid=true]:data-[hover=true]:border-destructive data-[invalid=true]:data-[focus=true]:data-[hover=true]:border-primary/80 data-[invalid=true]:data-[focus=true]:data-[hover=true]:web:ring-1 data-[invalid=true]:data-[focus=true]:data-[hover=true]:web:ring-inset data-[invalid=true]:data-[focus=true]:data-[hover=true]:web:ring-indicator-primary data-[invalid=true]:data-[disabled=true]:data-[hover=true]:border-destructive data-[invalid=true]:data-[disabled=true]:data-[hover=true]:web:ring-1 data-[invalid=true]:data-[disabled=true]:data-[hover=true]:web:ring-inset data-[invalid=true]:data-[disabled=true]:data-[hover=true]:web:ring-indicator-error "
|
|
7820
|
-
},
|
|
7821
|
-
size: {
|
|
7822
|
-
sm: "",
|
|
7823
|
-
md: "",
|
|
7824
|
-
lg: "",
|
|
7825
|
-
xl: ""
|
|
7826
|
-
}
|
|
7827
|
-
}
|
|
7828
|
-
});
|
|
7829
|
-
var textareaInputStyle = tva({
|
|
7830
|
-
base: "p-2 web:outline-0 web:outline-none flex-1 text-foreground placeholder:text-foreground/60 web:cursor-text web:data-[disabled=true]:cursor-not-allowed",
|
|
7831
|
-
parentVariants: {
|
|
7832
|
-
size: {
|
|
7833
|
-
sm: "text-sm",
|
|
7834
|
-
md: "text-base",
|
|
7835
|
-
lg: "text-lg",
|
|
7836
|
-
xl: "text-xl"
|
|
7837
|
-
}
|
|
7838
|
-
}
|
|
7839
|
-
});
|
|
7840
|
-
var Textarea = React48.forwardRef(function Textarea2({ className, variant = "default", size = "md", ...props }, ref) {
|
|
7841
|
-
return /* @__PURE__ */ jsx(UITextarea, { ref, ...props, className: textareaStyle({ variant, class: className }), context: { size } });
|
|
7842
|
-
});
|
|
7843
|
-
var TextareaInput = React48.forwardRef(
|
|
7844
|
-
function TextareaInput2({ className, ...props }, ref) {
|
|
7845
|
-
const { size: parentSize } = useStyleContext(SCOPE18);
|
|
7846
|
-
return /* @__PURE__ */ jsx(
|
|
7847
|
-
UITextarea.Input,
|
|
7848
|
-
{
|
|
7849
|
-
ref,
|
|
7850
|
-
...props,
|
|
7851
|
-
textAlignVertical: "top",
|
|
7852
|
-
className: textareaInputStyle({
|
|
7853
|
-
parentVariants: {
|
|
7854
|
-
size: parentSize
|
|
7855
|
-
},
|
|
7856
|
-
class: className
|
|
7857
|
-
})
|
|
7858
|
-
}
|
|
7859
|
-
);
|
|
7860
|
-
}
|
|
7861
|
-
);
|
|
7862
|
-
Textarea.displayName = "Textarea";
|
|
7863
|
-
TextareaInput.displayName = "TextareaInput";
|
|
7864
6304
|
var useToast = createToastHook(View);
|
|
7865
|
-
var
|
|
7866
|
-
var
|
|
7867
|
-
cssInterop(
|
|
6305
|
+
var SCOPE13 = "TOAST";
|
|
6306
|
+
var AnimatedView7 = Animated8.createAnimatedComponent(View);
|
|
6307
|
+
cssInterop(AnimatedView7, { className: "style" });
|
|
7868
6308
|
var toastStyle = tva({
|
|
7869
6309
|
base: "p-4 m-1 rounded-md gap-1 web:pointer-events-auto border-border",
|
|
7870
6310
|
variants: {
|
|
@@ -8012,10 +6452,10 @@ var toastDescriptionStyle = tva({
|
|
|
8012
6452
|
}
|
|
8013
6453
|
}
|
|
8014
6454
|
});
|
|
8015
|
-
var
|
|
8016
|
-
var Toast =
|
|
6455
|
+
var Root3 = withStyleContext(AnimatedView7, SCOPE13);
|
|
6456
|
+
var Toast = React29.forwardRef(function Toast2({ className, variant = "solid", action = "muted", ...props }, ref) {
|
|
8017
6457
|
return /* @__PURE__ */ jsx(
|
|
8018
|
-
|
|
6458
|
+
Root3,
|
|
8019
6459
|
{
|
|
8020
6460
|
ref,
|
|
8021
6461
|
entering: SlideInUp,
|
|
@@ -8025,9 +6465,9 @@ var Toast = React48.forwardRef(function Toast2({ className, variant = "solid", a
|
|
|
8025
6465
|
}
|
|
8026
6466
|
);
|
|
8027
6467
|
});
|
|
8028
|
-
var ToastTitle =
|
|
8029
|
-
const { variant: parentVariant, action: parentAction } = useStyleContext(
|
|
8030
|
-
|
|
6468
|
+
var ToastTitle = React29.forwardRef(function ToastTitle2({ className, size = "md", children, ...props }, ref) {
|
|
6469
|
+
const { variant: parentVariant, action: parentAction } = useStyleContext(SCOPE13);
|
|
6470
|
+
React29.useEffect(() => {
|
|
8031
6471
|
AccessibilityInfo.announceForAccessibility(children);
|
|
8032
6472
|
}, [children]);
|
|
8033
6473
|
return /* @__PURE__ */ jsx(
|
|
@@ -8050,9 +6490,9 @@ var ToastTitle = React48.forwardRef(function ToastTitle2({ className, size = "md
|
|
|
8050
6490
|
}
|
|
8051
6491
|
);
|
|
8052
6492
|
});
|
|
8053
|
-
var ToastDescription =
|
|
6493
|
+
var ToastDescription = React29.forwardRef(
|
|
8054
6494
|
function ToastDescription2({ className, size = "md", ...props }, ref) {
|
|
8055
|
-
const { variant: parentVariant } = useStyleContext(
|
|
6495
|
+
const { variant: parentVariant } = useStyleContext(SCOPE13);
|
|
8056
6496
|
return /* @__PURE__ */ jsx(
|
|
8057
6497
|
Text,
|
|
8058
6498
|
{
|
|
@@ -8125,10 +6565,10 @@ var tooltipTextStyle = tva({
|
|
|
8125
6565
|
}
|
|
8126
6566
|
}
|
|
8127
6567
|
});
|
|
8128
|
-
var Tooltip =
|
|
6568
|
+
var Tooltip = React29.forwardRef(function Tooltip2({ className, ...props }, ref) {
|
|
8129
6569
|
return /* @__PURE__ */ jsx(UITooltip, { ref, className: tooltipStyle({ class: className }), ...props });
|
|
8130
6570
|
});
|
|
8131
|
-
var TooltipContent =
|
|
6571
|
+
var TooltipContent = React29.forwardRef(function TooltipContent2({ className, ...props }, ref) {
|
|
8132
6572
|
return /* @__PURE__ */ jsx(
|
|
8133
6573
|
UITooltip.Content,
|
|
8134
6574
|
{
|
|
@@ -8141,47 +6581,13 @@ var TooltipContent = React48.forwardRef(function TooltipContent2({ className, ..
|
|
|
8141
6581
|
}
|
|
8142
6582
|
);
|
|
8143
6583
|
});
|
|
8144
|
-
var TooltipText =
|
|
6584
|
+
var TooltipText = React29.forwardRef(function TooltipText2({ size, className, ...props }, ref) {
|
|
8145
6585
|
return /* @__PURE__ */ jsx(UITooltip.Text, { ref, className: tooltipTextStyle({ size, class: className }), ...props });
|
|
8146
6586
|
});
|
|
8147
6587
|
Tooltip.displayName = "Tooltip";
|
|
8148
6588
|
TooltipContent.displayName = "TooltipContent";
|
|
8149
6589
|
TooltipText.displayName = "TooltipText";
|
|
8150
|
-
var baseStyle7 = isWeb ? "flex flex-col relative z-0 box-border border-0 list-none min-w-0 min-h-0 bg-transparent items-stretch m-0 p-0 text-decoration-none" : "";
|
|
8151
|
-
var vstackStyle = tva({
|
|
8152
|
-
base: `flex-col ${baseStyle7}`,
|
|
8153
|
-
variants: {
|
|
8154
|
-
space: {
|
|
8155
|
-
xs: "gap-1",
|
|
8156
|
-
sm: "gap-2",
|
|
8157
|
-
md: "gap-3",
|
|
8158
|
-
lg: "gap-4",
|
|
8159
|
-
xl: "gap-5",
|
|
8160
|
-
"2xl": "gap-6",
|
|
8161
|
-
"3xl": "gap-7",
|
|
8162
|
-
"4xl": "gap-8"
|
|
8163
|
-
},
|
|
8164
|
-
reversed: {
|
|
8165
|
-
true: "flex-col-reverse"
|
|
8166
|
-
}
|
|
8167
|
-
}
|
|
8168
|
-
});
|
|
8169
|
-
var VStack = React48.forwardRef(function VStack2({ className, space, reversed, ...props }, ref) {
|
|
8170
|
-
return /* @__PURE__ */ jsx(
|
|
8171
|
-
View,
|
|
8172
|
-
{
|
|
8173
|
-
className: vstackStyle({
|
|
8174
|
-
space,
|
|
8175
|
-
reversed,
|
|
8176
|
-
class: className
|
|
8177
|
-
}),
|
|
8178
|
-
...props,
|
|
8179
|
-
ref
|
|
8180
|
-
}
|
|
8181
|
-
);
|
|
8182
|
-
});
|
|
8183
|
-
VStack.displayName = "VStack";
|
|
8184
6590
|
|
|
8185
|
-
export { Accordion, AccordionContent, AccordionContentText, AccordionHeader, AccordionIcon, AccordionItem, AccordionTitleText, AccordionTrigger, Actionsheet, ActionsheetBackdrop, ActionsheetContent, ActionsheetDragIndicator, ActionsheetDragIndicatorWrapper, ActionsheetFlatList, ActionsheetIcon, ActionsheetItem, ActionsheetItemText, ActionsheetScrollView, ActionsheetSectionHeaderText, ActionsheetSectionList, ActionsheetVirtualizedList, AddIcon, Alert, AlertCircleIcon, AlertDialog, AlertDialogBackdrop, AlertDialogBody, AlertDialogCloseButton, AlertDialogContent, AlertDialogFooter, AlertDialogHeader, AlertIcon, AlertText, ArrowDownIcon, ArrowLeftIcon, ArrowRightIcon, ArrowUpIcon, AtSignIcon, Avatar, AvatarBadge, AvatarFallback, AvatarFallbackText, AvatarGroup, AvatarImage,
|
|
8186
|
-
//# sourceMappingURL=
|
|
8187
|
-
//# sourceMappingURL=
|
|
6591
|
+
export { Accordion, AccordionContent, AccordionContentText, AccordionHeader, AccordionIcon, AccordionItem, AccordionTitleText, AccordionTrigger, Actionsheet, ActionsheetBackdrop, ActionsheetContent, ActionsheetDragIndicator, ActionsheetDragIndicatorWrapper, ActionsheetFlatList, ActionsheetIcon, ActionsheetItem, ActionsheetItemText, ActionsheetScrollView, ActionsheetSectionHeaderText, ActionsheetSectionList, ActionsheetVirtualizedList, AddIcon, Alert, AlertCircleIcon, AlertDialog, AlertDialogBackdrop, AlertDialogBody, AlertDialogCloseButton, AlertDialogContent, AlertDialogFooter, AlertDialogHeader, AlertIcon, AlertText, ArrowDownIcon, ArrowLeftIcon, ArrowRightIcon, ArrowUpIcon, AtSignIcon, Avatar, AvatarBadge, AvatarFallback, AvatarFallbackText, AvatarGroup, AvatarImage, BellIcon, BottomSheet, BottomSheetBackdrop, BottomSheetContent, BottomSheetDragIndicator, BottomSheetFlatList, BottomSheetFooter, BottomSheetItem, BottomSheetItemText, BottomSheetPortal, BottomSheetScrollView, BottomSheetSectionList, BottomSheetTextInput, BottomSheetTrigger, Calendar, CalendarBody, CalendarDay, CalendarDayIndicator, CalendarDayText, CalendarDaysIcon, CalendarFooter, CalendarGrid, CalendarHeader, CalendarHeaderMonthSelect, CalendarHeaderNextButton, CalendarHeaderPrevButton, CalendarHeaderTitle, CalendarHeaderYearSelect, CalendarWeek, CalendarWeekDay, CalendarWeekDaysHeader, CalendarWeekNumber, CheckCircleIcon, CheckIcon, Checkbox, CheckboxGroup, CheckboxIcon, CheckboxIndicator, CheckboxLabel, ChevronDownIcon, ChevronLeftIcon, ChevronRightIcon, ChevronUpIcon, ChevronsLeftIcon, ChevronsRightIcon, ChevronsUpDownIcon, CircleIcon, ClockIcon, CloseCircleIcon, CloseIcon, CopyIcon, DateTimePicker, DateTimePickerIcon, DateTimePickerInput, DateTimePickerTrigger, DownloadIcon, Drawer, DrawerBackdrop, DrawerBody, DrawerCloseButton, DrawerContent, DrawerFooter, DrawerHeader, EditIcon, ExternalLinkIcon, EyeIcon, EyeOffIcon, FavouriteIcon, FormControl, FormControlError, FormControlErrorIcon, FormControlErrorText, FormControlHelper, FormControlHelperText, FormControlLabel, FormControlLabelAstrick, FormControlLabelText, GlassContainer, GlassView, GlobeIcon, Grid, GridItem, GripVerticalIcon, HelpCircleIcon, Icon, ImageViewer, ImageViewerCloseButton, ImageViewerContent, ImageViewerCounter, ImageViewerNavigation, ImageViewerTrigger, InfoIcon, LinkIcon, LoaderIcon, LockIcon, MailIcon, Menu, MenuIcon, MenuItem, MenuItemLabel, MenuSeparator, MessageCircleIcon, MoonIcon, PaperclipIcon, PhoneIcon, PlayIcon, Popover, PopoverArrow, PopoverBackdrop, PopoverBody, PopoverCloseButton, PopoverContent, PopoverFooter, PopoverHeader, Portal, Progress, ProgressFilledTrack, Radio, RadioGroup, RadioIcon, RadioIndicator, RadioLabel, RemoveIcon, Repeat1Icon, RepeatIcon, SearchIcon, Select, SelectBackdrop, SelectContent, SelectDragIndicator, SelectDragIndicatorWrapper, SelectFlatList, SelectIcon, SelectInput, SelectItem, SelectPortal, SelectScrollView, SelectSectionHeaderText, SelectSectionList, SelectTrigger, SelectVirtualizedList, SettingsIcon, ShareIcon, SlashIcon, Slider, SliderFilledTrack, SliderThumb, SliderTrack, StarIcon, SunIcon, Table, TableBody, TableCaption, TableData, TableFooter, TableHead, TableHeader, TableRow, Tabs, TabsContent, TabsContentWrapper, TabsIndicator, TabsList, TabsTrigger, TabsTriggerIcon, TabsTriggerText, ThreeDotsIcon, Toast, ToastDescription, ToastTitle, Tooltip, TooltipContent, TooltipText, TrashIcon, UIActionsheet, UIAlert, UIFormControl, UIIcon7 as UIIcon, UIMenu, UIProgress, UISlider, UITooltip, UnlockIcon, createIconUI as createIcon, useToast };
|
|
6592
|
+
//# sourceMappingURL=index.mjs.map
|
|
6593
|
+
//# sourceMappingURL=index.mjs.map
|