@flipova/foundation 2.4.4 → 3.0.0-beta.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
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../components/contract/types.ts","../components/theme/design-theme.ts","../components/contract/theme.ts","../components/contract/recipes/util.ts","../components/contract/recipes/button.ts","../components/contract/recipes/text.ts","../components/contract/recipes/heading.ts","../components/contract/recipes/input.ts","../components/contract/recipes/textarea.ts","../components/contract/recipes/select.ts","../components/contract/recipes/checkbox.ts","../components/contract/recipes/radio.ts","../components/contract/recipes/switch.ts","../components/contract/recipes/card.ts","../components/contract/recipes/badge.ts","../components/contract/recipes/avatar.ts","../components/contract/recipes/divider.ts","../components/contract/recipes/modal.ts","../components/contract/recipes/tabs.ts","../components/contract/recipes/feedback.ts","../components/contract/recipes/progress.ts","../components/contract/recipes/skeleton.ts","../components/contract/recipes/spinner.ts","../components/contract/recipes/layout.ts","../components/contract/recipes/icon.ts","../components/contract/recipes/link.ts","../components/contract/recipes/accordion.ts","../components/contract/recipes/overlay.ts","../components/contract/recipes/slider.ts","../components/contract/recipes/formcontrol.ts","../components/contract/recipes/fab.ts","../components/contract/recipes/table.ts","../components/contract/recipes/calendar.ts"],"names":[],"mappings":";;;AAqkBO,IAAM,QAAA,GAAW;AAAA,EACtB,WAAA;AAAA,EAAa,aAAA;AAAA,EAAe,OAAA;AAAA,EAAS,aAAA;AAAA,EAAe,QAAA;AAAA,EAAU,OAAA;AAAA,EAAS,aAAA;AAAA,EAAe,KAAA;AAAA,EAAO,QAAA;AAAA,EAAU,UAAA;AAAA,EACvG,MAAA;AAAA,EAAQ,QAAA;AAAA,E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AAA,EAAiB,QAAA,GAAW,CAAA,CAAE,OAAA,GAAU,aAAA;AAAA,MACxC,OAAA,EAAS,WAAW,GAAA,GAAM;AAAA,KAC5B,CAAA;AAAA,IACA,QAAA,EAAU,CAAC,QAAA,MAAc;AAAA,MACvB,KAAA,EAAO,QAAA,GAAW,CAAA,CAAE,iBAAA,GAAoB,CAAA,CAAE,cAAA;AAAA,MAC1C,QAAA,EAAU,EAAA,CAAG,CAAA,EAAG,WAAA,EAAa,IAAI;AAAA,KACnC;AAAA,GACF;AACF","file":"chunk-2T2TCUYF.js","sourcesContent":["import type { ReactNode } from 'react';\n\n/**\n * The contract: what every provider implements for the same component. Props are the intersection of what the\n * providers can honour identically; anything provider-specific stays on the provider's own component.\n */\nexport type ButtonVariant = 'default' | 'destructive' | 'outline' | 'secondary' | 'ghost' | 'link';\nexport type ButtonSize = 'default' | 'sm' | 'lg' | 'icon';\n\nexport interface ButtonProps {\n variant?: ButtonVariant;\n size?: ButtonSize;\n disabled?: boolean;\n loading?: boolean;\n onPress?: () => void;\n accessibilityLabel?: string;\n testID?: string;\n children?: ReactNode;\n}\n\nexport type TextSize = '2xs' | 'xs' | 'sm' | 'md' | 'lg' | 'xl' | '2xl' | '3xl' | '4xl' | '5xl' | '6xl';\n\nexport interface TextProps {\n size?: TextSize;\n bold?: boolean;\n underline?: boolean;\n strikeThrough?: boolean;\n isTruncated?: boolean;\n testID?: string;\n children?: ReactNode;\n}\n\nexport interface InputProps {\n value?: string;\n defaultValue?: string;\n placeholder?: string;\n onChangeText?: (text: string) => void;\n disabled?: boolean;\n invalid?: boolean;\n secureTextEntry?: boolean;\n accessibilityLabel?: string;\n testID?: string;\n}\n\nexport type CardSize = 'default' | 'sm';\n\nexport interface CardProps {\n size?: CardSize;\n testID?: string;\n children?: ReactNode;\n}\n\nexport type BadgeVariant = 'default' | 'secondary' | 'destructive' | 'outline';\n\nexport interface BadgeProps {\n variant?: BadgeVariant;\n testID?: string;\n children?: ReactNode;\n}\n\nexport type SwitchSize = 'sm' | 'md' | 'lg';\n\nexport interface SwitchProps {\n value?: boolean;\n onValueChange?: (value: boolean) => void;\n disabled?: boolean;\n size?: SwitchSize;\n accessibilityLabel?: string;\n testID?: string;\n}\n\nexport type HeadingLevel = 1 | 2 | 3 | 4 | 5 | 6;\n\nexport interface HeadingProps {\n /** 1 (largest) to 6; default 2 */\n level?: HeadingLevel;\n isTruncated?: boolean;\n testID?: string;\n children?: ReactNode;\n}\n\nexport interface TextareaProps {\n value?: string;\n defaultValue?: string;\n placeholder?: string;\n onChangeText?: (text: string) => void;\n /** visible lines, default 4 */\n rows?: number;\n disabled?: boolean;\n invalid?: boolean;\n accessibilityLabel?: string;\n testID?: string;\n}\n\nexport interface Option {\n value: string;\n label: string;\n disabled?: boolean;\n}\n\nexport interface SelectProps {\n options: Option[];\n value?: string;\n onValueChange?: (value: string) => void;\n placeholder?: string;\n disabled?: boolean;\n invalid?: boolean;\n accessibilityLabel?: string;\n testID?: string;\n}\n\nexport interface CheckboxProps {\n checked?: boolean;\n onCheckedChange?: (checked: boolean) => void;\n label?: string;\n disabled?: boolean;\n invalid?: boolean;\n accessibilityLabel?: string;\n testID?: string;\n}\n\nexport interface RadioGroupProps {\n options: Option[];\n value?: string;\n onValueChange?: (value: string) => void;\n orientation?: 'vertical' | 'horizontal';\n disabled?: boolean;\n accessibilityLabel?: string;\n testID?: string;\n}\n\nexport type AvatarSize = 'sm' | 'md' | 'lg' | 'xl';\n\nexport interface AvatarProps {\n /** image URL; the initials of `name` are shown when it is missing or fails to load */\n source?: string;\n name?: string;\n size?: AvatarSize;\n accessibilityLabel?: string;\n testID?: string;\n}\n\nexport interface DividerProps {\n orientation?: 'horizontal' | 'vertical';\n testID?: string;\n}\n\nexport interface ModalProps {\n visible: boolean;\n onClose?: () => void;\n title?: string;\n testID?: string;\n children?: ReactNode;\n}\n\nexport interface TabItem {\n key: string;\n label: string;\n content?: ReactNode;\n disabled?: boolean;\n}\n\nexport interface TabsProps {\n tabs: TabItem[];\n value?: string;\n onValueChange?: (key: string) => void;\n testID?: string;\n}\n\nexport type FeedbackVariant = 'info' | 'success' | 'warning' | 'error';\n\nexport interface AlertProps {\n variant?: FeedbackVariant;\n title?: string;\n testID?: string;\n children?: ReactNode;\n}\n\nexport interface ToastProps {\n variant?: FeedbackVariant | 'default';\n title?: string;\n description?: string;\n onClose?: () => void;\n testID?: string;\n}\n\nexport type ProgressSize = 'sm' | 'md' | 'lg';\n\nexport interface ProgressProps {\n /** 0 to 100 (clamped) */\n value: number;\n size?: ProgressSize;\n accessibilityLabel?: string;\n testID?: string;\n}\n\nexport interface SkeletonProps {\n width?: number | string;\n height?: number;\n circle?: boolean;\n testID?: string;\n}\n\nexport type SpinnerSize = 'sm' | 'md' | 'lg';\n\nexport interface SpinnerProps {\n size?: SpinnerSize;\n accessibilityLabel?: string;\n testID?: string;\n}\n\n// ---- layout and primitives ---------------------------------------------------------------------------------------\n\n/** a step of the registry's spacing scale: '0', '0.5', '1', ... '12' */\nexport type Space = string;\n\nexport interface BoxProps {\n testID?: string;\n children?: ReactNode;\n}\nexport type CenterProps = BoxProps;\nexport type ViewProps = BoxProps;\nexport type SafeAreaViewProps = BoxProps;\n\nexport interface StackProps extends BoxProps {\n /** gap between children, a spacing step (default '2') */\n space?: Space;\n}\nexport type HStackProps = StackProps;\nexport type VStackProps = StackProps;\n\nexport interface GridProps extends BoxProps {\n /** number of columns (default 2) */\n columns?: number;\n space?: Space;\n}\n\nexport interface PressableProps {\n onPress?: () => void;\n disabled?: boolean;\n accessibilityLabel?: string;\n testID?: string;\n children?: ReactNode;\n}\n\nexport interface ScrollViewProps extends BoxProps {\n horizontal?: boolean;\n}\n\nexport type KeyboardAvoidingViewProps = BoxProps;\n\nexport interface ListProps {\n data: unknown[];\n renderItem: (item: unknown, index: number) => ReactNode;\n keyExtractor?: (item: unknown, index: number) => string;\n horizontal?: boolean;\n /** shown when `data` is empty */\n empty?: ReactNode;\n testID?: string;\n}\nexport type FlatListProps = ListProps;\nexport type VirtualizedListProps = ListProps;\n\nexport interface SectionListProps {\n sections: Array<{ title: string; data: unknown[] }>;\n renderItem: (item: unknown, index: number) => ReactNode;\n keyExtractor?: (item: unknown, index: number) => string;\n testID?: string;\n}\n\nexport interface RefreshControlProps {\n refreshing: boolean;\n onRefresh?: () => void;\n}\n\nexport interface StatusBarProps {\n /** 'auto' follows the theme mode (default) */\n style?: 'light' | 'dark' | 'auto';\n}\n\nexport interface ImageProps {\n source: string;\n alt?: string;\n width?: number;\n height?: number;\n /** a radius step ('md', 'full', ...) */\n radius?: string;\n resizeMode?: 'cover' | 'contain' | 'stretch' | 'center';\n testID?: string;\n}\n\nexport interface ImageBackgroundProps {\n source: string;\n testID?: string;\n children?: ReactNode;\n}\n\n/** the glyphs of the built-in set (plain text, so no icon font and no SVG library is needed) */\nexport type IconName =\n | 'check'\n | 'close'\n | 'chevron-up'\n | 'chevron-down'\n | 'chevron-left'\n | 'chevron-right'\n | 'plus'\n | 'minus'\n | 'search'\n | 'info'\n | 'warning'\n | 'star'\n | 'menu'\n | 'dot';\nexport type IconColor = 'foreground' | 'muted' | 'primary' | 'destructive' | 'success' | 'warning' | 'info';\n\nexport interface IconProps {\n name: IconName;\n /** a font-size step ('sm', 'md', 'xl', ...), default 'md' */\n size?: string;\n color?: IconColor;\n accessibilityLabel?: string;\n testID?: string;\n}\n\nexport interface LinkProps {\n href?: string;\n onPress?: () => void;\n testID?: string;\n children?: ReactNode;\n}\n\nexport interface PortalProps {\n children?: ReactNode;\n}\n\n// ---- overlays and disclosure ---------------------------------------------------------------------------------------\n\nexport interface AccordionItem {\n key: string;\n title: string;\n content?: ReactNode;\n disabled?: boolean;\n}\n\nexport interface AccordionProps {\n items: AccordionItem[];\n /** 'single' opens one item at a time (default) */\n type?: 'single' | 'multiple';\n /** the open items' keys; uncontrolled when omitted */\n value?: string[];\n defaultValue?: string[];\n onValueChange?: (keys: string[]) => void;\n testID?: string;\n}\n\nexport interface PopoverProps {\n /** the element the popover opens from */\n trigger: ReactNode;\n open?: boolean;\n onOpenChange?: (open: boolean) => void;\n testID?: string;\n children?: ReactNode;\n}\n\nexport interface TooltipProps {\n content: string;\n testID?: string;\n children?: ReactNode;\n}\n\nexport interface MenuItem {\n key: string;\n label: string;\n onSelect?: () => void;\n disabled?: boolean;\n destructive?: boolean;\n}\n\nexport interface MenuProps {\n /** the label of the default trigger button */\n label: string;\n items: MenuItem[];\n testID?: string;\n}\n\nexport interface ActionSheetAction {\n key: string;\n label: string;\n onPress?: () => void;\n destructive?: boolean;\n}\n\nexport interface ActionSheetProps {\n visible: boolean;\n onClose?: () => void;\n title?: string;\n actions: ActionSheetAction[];\n cancelLabel?: string;\n testID?: string;\n}\n\nexport interface AlertDialogProps {\n visible: boolean;\n title: string;\n description?: string;\n confirmLabel?: string;\n cancelLabel?: string;\n /** styles the confirm button as destructive */\n destructive?: boolean;\n onConfirm?: () => void;\n onCancel?: () => void;\n testID?: string;\n}\n\nexport interface BottomSheetProps {\n visible: boolean;\n onClose?: () => void;\n title?: string;\n testID?: string;\n children?: ReactNode;\n}\n\nexport interface DrawerProps {\n visible: boolean;\n onClose?: () => void;\n side?: 'left' | 'right';\n testID?: string;\n children?: ReactNode;\n}\n\nexport interface ImageViewerProps {\n visible: boolean;\n source: string;\n alt?: string;\n onClose?: () => void;\n testID?: string;\n}\n\nexport interface LiquidGlassProps {\n testID?: string;\n children?: ReactNode;\n}\n\n// ---- inputs and data -------------------------------------------------------------------------------------------------\n\nexport interface SliderProps {\n value: number;\n onValueChange?: (value: number) => void;\n min?: number;\n max?: number;\n step?: number;\n disabled?: boolean;\n accessibilityLabel?: string;\n testID?: string;\n}\n\nexport interface FormControlProps {\n label?: string;\n helper?: string;\n /** the message shown (and the field flagged) when set */\n error?: string;\n required?: boolean;\n disabled?: boolean;\n testID?: string;\n children?: ReactNode;\n}\n\nexport interface InputAccessoryViewProps {\n nativeID: string;\n children?: ReactNode;\n}\n\n/** dates are 'YYYY-MM-DD' strings: no time zone to get wrong */\nexport interface CalendarProps {\n value?: string;\n onChange?: (date: string) => void;\n min?: string;\n max?: string;\n /** the month shown first, 'YYYY-MM' (the value's month, else the current one) */\n month?: string;\n /** 0 = Sunday (default), 1 = Monday */\n weekStartsOn?: 0 | 1;\n testID?: string;\n}\n\nexport interface DateTimePickerProps {\n value?: string;\n onChange?: (date: string) => void;\n placeholder?: string;\n min?: string;\n max?: string;\n disabled?: boolean;\n accessibilityLabel?: string;\n testID?: string;\n}\n\nexport interface FabProps {\n onPress?: () => void;\n label?: string;\n icon?: IconName;\n accessibilityLabel?: string;\n testID?: string;\n}\n\nexport interface TableColumn {\n key: string;\n label: string;\n align?: 'left' | 'center' | 'right';\n}\n\nexport interface TableProps {\n columns: TableColumn[];\n rows: Array<Record<string, ReactNode>>;\n caption?: string;\n testID?: string;\n}\n\n/** Every component of the contract, with its props. A provider implements as many as it natively has. */\nexport interface UiProps {\n Accordion: AccordionProps;\n ActionSheet: ActionSheetProps;\n Alert: AlertProps;\n AlertDialog: AlertDialogProps;\n Avatar: AvatarProps;\n Badge: BadgeProps;\n BottomSheet: BottomSheetProps;\n Box: BoxProps;\n Button: ButtonProps;\n Calendar: CalendarProps;\n Card: CardProps;\n Center: CenterProps;\n Checkbox: CheckboxProps;\n DateTimePicker: DateTimePickerProps;\n Divider: DividerProps;\n Drawer: DrawerProps;\n Fab: FabProps;\n FlatList: FlatListProps;\n FormControl: FormControlProps;\n Grid: GridProps;\n Heading: HeadingProps;\n HStack: HStackProps;\n Icon: IconProps;\n Image: ImageProps;\n ImageBackground: ImageBackgroundProps;\n ImageViewer: ImageViewerProps;\n Input: InputProps;\n InputAccessoryView: InputAccessoryViewProps;\n KeyboardAvoidingView: KeyboardAvoidingViewProps;\n LiquidGlass: LiquidGlassProps;\n Link: LinkProps;\n Menu: MenuProps;\n Modal: ModalProps;\n Popover: PopoverProps;\n Portal: PortalProps;\n Pressable: PressableProps;\n Progress: ProgressProps;\n RadioGroup: RadioGroupProps;\n RefreshControl: RefreshControlProps;\n SafeAreaView: SafeAreaViewProps;\n ScrollView: ScrollViewProps;\n SectionList: SectionListProps;\n Select: SelectProps;\n Skeleton: SkeletonProps;\n Slider: SliderProps;\n Spinner: SpinnerProps;\n StatusBar: StatusBarProps;\n Switch: SwitchProps;\n Table: TableProps;\n Tabs: TabsProps;\n Text: TextProps;\n Textarea: TextareaProps;\n Toast: ToastProps;\n Tooltip: TooltipProps;\n View: ViewProps;\n VirtualizedList: VirtualizedListProps;\n VStack: VStackProps;\n}\n\nexport type UiName = keyof UiProps;\n\n/** The component names, alphabetical (the docs and the coverage table list them in this order). */\nexport const UI_NAMES = [\n 'Accordion', 'ActionSheet', 'Alert', 'AlertDialog', 'Avatar', 'Badge', 'BottomSheet', 'Box', 'Button', 'Calendar',\n 'Card', 'Center', 'Checkbox', 'DateTimePicker', 'Divider', 'Drawer', 'Fab', 'FlatList', 'FormControl', 'Grid',\n 'Heading', 'HStack', 'Icon', 'Image', 'ImageBackground', 'ImageViewer', 'Input', 'InputAccessoryView',\n 'KeyboardAvoidingView', 'LiquidGlass', 'Link', 'Menu', 'Modal', 'Popover', 'Portal', 'Pressable', 'Progress',\n 'RadioGroup', 'RefreshControl', 'SafeAreaView', 'ScrollView', 'SectionList', 'Select', 'Skeleton', 'Slider',\n 'Spinner', 'StatusBar', 'Switch', 'Table', 'Tabs', 'Text', 'Textarea', 'Toast', 'Tooltip', 'View',\n 'VirtualizedList', 'VStack',\n] as const satisfies readonly UiName[]; // prettier-ignore\n\nexport type UiComponents = { [K in UiName]: (props: UiProps[K]) => ReactNode };\n\n/** What an adapter provides: the components its library really has. The rest fall back to the flipova provider. */\nexport type ProviderComponents = Partial<UiComponents>;\n\nexport type ProviderName = 'flipova' | 'gluestack' | 'reusables' | 'paper' | 'tamagui';\nexport const PROVIDERS: readonly ProviderName[] = ['flipova', 'gluestack', 'reusables', 'paper', 'tamagui'];\n","// Generated by flipova-design gen -- do not edit by hand.\n// Source of truth: design/tokens.xml + design/themes.xml\n// Provider-neutral theme: every provider adapter reads this one object.\n// Regenerate with: npm run design:gen\n\nexport const designTheme = {\n themes: {\n \"light\": {\n mode: \"light\",\n variant: \"default\",\n colors: {\n \"background\": \"#fafafa\",\n \"foreground\": \"#18181b\",\n \"card\": \"#ffffff\",\n \"cardForeground\": \"#18181b\",\n \"popover\": \"#ffffff\",\n \"popoverForeground\": \"#18181b\",\n \"primary\": \"#2563eb\",\n \"primaryForeground\": \"#ffffff\",\n \"secondary\": \"#475569\",\n \"secondaryForeground\": \"#ffffff\",\n \"muted\": \"#f4f4f5\",\n \"mutedForeground\": \"#52525b\",\n \"accent\": \"#eff6ff\",\n \"accentForeground\": \"#1e3a8a\",\n \"destructive\": \"#dc2626\",\n \"destructiveForeground\": \"#ffffff\",\n \"border\": \"#e4e4e7\",\n \"input\": \"#e4e4e7\",\n \"ring\": \"#3b82f6\",\n \"success\": \"#16a34a\",\n \"successForeground\": \"#ffffff\",\n \"warning\": \"#d97706\",\n \"warningForeground\": \"#ffffff\",\n \"error\": \"#dc2626\",\n \"errorForeground\": \"#ffffff\",\n \"info\": \"#0284c7\",\n \"infoForeground\": \"#ffffff\",\n },\n },\n \"dark\": {\n mode: \"dark\",\n variant: \"default\",\n colors: {\n \"background\": \"#18181b\",\n \"foreground\": \"#f4f4f5\",\n \"card\": \"#27272a\",\n \"cardForeground\": \"#f4f4f5\",\n \"popover\": \"#27272a\",\n \"popoverForeground\": \"#f4f4f5\",\n \"primary\": \"#3b82f6\",\n \"primaryForeground\": \"#ffffff\",\n \"secondary\": \"#64748b\",\n \"secondaryForeground\": \"#ffffff\",\n \"muted\": \"#27272a\",\n \"mutedForeground\": \"#a1a1aa\",\n \"accent\": \"#1e3a8a\",\n \"accentForeground\": \"#dbeafe\",\n \"destructive\": \"#ef4444\",\n \"destructiveForeground\": \"#ffffff\",\n \"border\": \"#3f3f46\",\n \"input\": \"#3f3f46\",\n \"ring\": \"#60a5fa\",\n \"success\": \"#22c55e\",\n \"successForeground\": \"#18181b\",\n \"warning\": \"#f59e0b\",\n \"warningForeground\": \"#18181b\",\n \"error\": \"#ef4444\",\n \"errorForeground\": \"#ffffff\",\n \"info\": \"#0ea5e9\",\n \"infoForeground\": \"#ffffff\",\n },\n },\n },\n variants: {\n \"default\": { \"dark\": \"dark\", \"light\": \"light\" },\n },\n scale: {\n spacing: {\n \"0\": 0,\n \"0.5\": 2,\n \"1\": 4,\n \"1.5\": 6,\n \"2\": 8,\n \"2.5\": 10,\n \"3\": 12,\n \"3.5\": 14,\n \"4\": 16,\n \"5\": 20,\n \"6\": 24,\n \"7\": 28,\n \"8\": 32,\n \"9\": 36,\n \"10\": 40,\n \"11\": 44,\n \"12\": 48,\n \"14\": 56,\n \"16\": 64,\n \"20\": 80,\n \"24\": 96,\n \"32\": 128,\n \"40\": 160,\n \"48\": 192,\n },\n radii: {\n \"none\": 0,\n \"xs\": 2,\n \"sm\": 4,\n \"md\": 8,\n \"lg\": 12,\n \"xl\": 16,\n \"2xl\": 24,\n \"3xl\": 32,\n \"full\": 9999,\n },\n fontSizes: {\n \"2xs\": 10,\n \"xs\": 12,\n \"sm\": 14,\n \"md\": 16,\n \"lg\": 18,\n \"xl\": 20,\n \"2xl\": 24,\n \"3xl\": 30,\n \"4xl\": 36,\n \"5xl\": 48,\n \"6xl\": 60,\n \"7xl\": 72,\n \"8xl\": 96,\n \"9xl\": 128,\n },\n fontWeights: {\n \"thin\": 100,\n \"extralight\": 200,\n \"light\": 300,\n \"normal\": 400,\n \"medium\": 500,\n \"semibold\": 600,\n \"bold\": 700,\n \"extrabold\": 800,\n \"black\": 900,\n },\n lineHeights: {\n \"xs\": 16,\n \"sm\": 20,\n \"md\": 24,\n \"lg\": 28,\n \"xl\": 28,\n \"2xl\": 32,\n \"3xl\": 36,\n \"4xl\": 40,\n \"5xl\": 1,\n \"6xl\": 1,\n \"7xl\": 1,\n \"8xl\": 1,\n \"9xl\": 1,\n },\n letterSpacings: {\n \"tighter\": -0.05,\n \"tight\": -0.025,\n \"normal\": 0,\n \"wide\": 0.025,\n \"wider\": 0.05,\n \"widest\": 0.1,\n },\n opacity: {\n \"faint\": 0.08,\n \"muted\": 0.4,\n \"dim\": 0.6,\n \"solid\": 1,\n },\n duration: {\n \"instant\": 0,\n \"fastest\": 80,\n \"fast\": 120,\n \"normal\": 200,\n \"slow\": 350,\n \"slower\": 500,\n \"slowest\": 700,\n },\n zIndex: {\n \"base\": 0,\n \"sticky\": 100,\n \"dropdown\": 1000,\n \"popover\": 1500,\n \"overlay\": 1300,\n \"drawer\": 1400,\n \"modal\": 2000,\n \"toast\": 3000,\n \"tooltip\": 3100,\n },\n breakpoints: {\n \"base\": 0,\n \"xs\": 480,\n \"sm\": 640,\n \"md\": 768,\n \"lg\": 1024,\n \"xl\": 1280,\n \"2xl\": 1536,\n },\n fontFamilies: {\n \"system\": { native: \"system\", web: \"system-ui, -apple-system, Segoe UI, Roboto, sans-serif\" },\n \"mono\": { native: \"monospace\", web: \"ui-monospace, SFMono-Regular, Menlo, monospace\" },\n \"serif\": { native: \"serif\", web: \"Georgia, Cambria, Times New Roman, serif\" },\n \"sans\": { native: \"System\", web: \"var(--font-sans)\" },\n \"body\": { native: \"System\", web: \"var(--font-sans)\" },\n \"heading\": { native: \"System\", web: \"var(--font-heading)\" },\n \"roboto\": { native: \"Roboto\", web: \"Roboto, sans-serif\" },\n },\n shadows: {\n \"sm\": { color: \"#000000\", offsetX: 0, offsetY: 1, radius: 2, opacity: 0.05, elevation: 1 },\n \"md\": { color: \"#000000\", offsetX: 0, offsetY: 3, radius: 4, opacity: 0.1, elevation: 3 },\n \"lg\": { color: \"#000000\", offsetX: 0, offsetY: 6, radius: 12, opacity: 0.1, elevation: 6 },\n \"xl\": { color: \"#000000\", offsetX: 0, offsetY: 12, radius: 24, opacity: 0.14, elevation: 10 },\n \"hard-1\": { color: \"#262626\", offsetX: -2, offsetY: 2, radius: 8, opacity: 0.2, elevation: 1 },\n \"hard-2\": { color: \"#262626\", offsetX: 0, offsetY: 3, radius: 10, opacity: 0.2, elevation: 1 },\n \"hard-3\": { color: \"#262626\", offsetX: 2, offsetY: 2, radius: 8, opacity: 0.2, elevation: 1 },\n \"hard-4\": { color: \"#262626\", offsetX: 0, offsetY: -3, radius: 10, opacity: 0.2, elevation: 1 },\n \"hard-5\": { color: \"#262626\", offsetX: 0, offsetY: 2, radius: 10, opacity: 0.1, elevation: 1 },\n \"soft-1\": { color: \"#262626\", offsetX: 0, offsetY: 0, radius: 10, opacity: 0.1, elevation: 1 },\n \"soft-2\": { color: \"#262626\", offsetX: 0, offsetY: 0, radius: 20, opacity: 0.2, elevation: 1 },\n \"soft-3\": { color: \"#262626\", offsetX: 0, offsetY: 0, radius: 30, opacity: 0.1, elevation: 1 },\n \"soft-4\": { color: \"#262626\", offsetX: 0, offsetY: 0, radius: 40, opacity: 0.1, elevation: 1 },\n },\n },\n} as const;\n\nexport type DesignTheme = typeof designTheme;\nexport type ThemeId = keyof typeof designTheme.themes;\nexport type ColorRole = keyof (typeof designTheme.themes)[ThemeId]['colors'];\n","import { designTheme } from '../theme/design-theme';\n\nexport type Mode = 'light' | 'dark';\n\n/**\n * The colour roles the components read. A theme is free to define more (they are available as `colors.<role>`), but\n * these must exist: `resolveTheme` refuses a theme that lacks one and names it, so a missing role is found at start-up,\n * not as an undefined colour on screen. `flipova-design` and its GUI check the same list.\n */\nexport const REQUIRED_ROLES = [\n 'background',\n 'foreground',\n 'card',\n 'cardForeground',\n 'popover',\n 'popoverForeground',\n 'primary',\n 'primaryForeground',\n 'secondary',\n 'secondaryForeground',\n 'muted',\n 'mutedForeground',\n 'accent',\n 'accentForeground',\n 'destructive',\n 'destructiveForeground',\n 'border',\n 'input',\n 'ring',\n 'success',\n 'successForeground',\n 'warning',\n 'warningForeground',\n 'error',\n 'errorForeground',\n 'info',\n 'infoForeground',\n] as const;\nexport type ColorRole = (typeof REQUIRED_ROLES)[number];\n\nexport interface ShadowToken {\n color: string;\n offsetX: number;\n offsetY: number;\n radius: number;\n opacity: number;\n elevation: number;\n}\n\n/** The numeric scales every theme registry provides (see design/tokens.xml). */\nexport interface Scale {\n spacing: Record<string, number>;\n radii: Record<string, number>;\n fontSizes: Record<string, number>;\n fontWeights: Record<string, number>;\n lineHeights: Record<string, number>;\n letterSpacings: Record<string, number>;\n opacity: Record<string, number>;\n duration: Record<string, number>;\n zIndex: Record<string, number>;\n breakpoints: Record<string, number>;\n fontFamilies: Record<string, { native: string; web?: string }>;\n shadows: Record<string, ShadowToken>;\n}\n\n/**\n * What `flipova-design gen` writes (design-theme.ts) and what <FlipovaProvider theme={...}> takes. The shape is fixed;\n * the contents (theme names, palettes, scales) are the app's: nothing in this package assumes a theme id.\n */\nexport interface ThemeRegistry {\n themes: Record<string, { mode: string; variant: string; colors: Record<string, string> }>;\n /** variant -> mode -> theme id */\n variants: Record<string, Record<string, string>>;\n scale: Scale;\n}\n\n/** The registry bundled with the package (a neutral light/dark starter), used when the app gives none. */\nexport const defaultRegistry: ThemeRegistry = designTheme as unknown as ThemeRegistry;\n\n/** One theme of a registry, ready to read: colours as '#rrggbb', every scale as numbers. */\nexport interface ResolvedTheme {\n id: string;\n mode: string;\n variant: string;\n colors: Record<ColorRole, string> & Record<string, string>;\n scale: Scale;\n}\n\n/** variant + mode -> theme id, the way the registry declares its light/dark pairs (`default`, then any pair, when unknown). */\nexport function themeIdFor(variant: string | undefined, mode: Mode, theme: ThemeRegistry = defaultRegistry): string {\n const variants = theme.variants;\n const pair = (variant && variants[variant]) || variants.default || Object.values(variants)[0];\n const byMode = pair?.[mode];\n if (byMode && theme.themes[byMode]) return byMode;\n const any = Object.entries(theme.themes).find(([, t]) => t.mode === mode) ?? Object.entries(theme.themes)[0];\n if (!any) throw new Error('the theme registry declares no theme');\n return any[0];\n}\n\nexport function resolveTheme(id: string, theme: ThemeRegistry = defaultRegistry): ResolvedTheme {\n const t = theme.themes[id];\n if (!t) throw new Error(`unknown theme \"${id}\" (known: ${Object.keys(theme.themes).join(', ')})`);\n const missing = REQUIRED_ROLES.filter((r) => !(r in t.colors));\n if (missing.length)\n throw new Error(`theme \"${id}\" lacks the colour role(s) the components read: ${missing.join(', ')}`);\n return { id, mode: t.mode, variant: t.variant, colors: t.colors as ResolvedTheme['colors'], scale: theme.scale };\n}\n\n/** '#rrggbb' + opacity -> 'rgba(r, g, b, a)' (what Tailwind's `/40` means, spelled for style objects). */\nexport function withAlpha(hex: string, alpha: number): string {\n let d = hex.replace('#', '');\n if (d.length === 3) d = [...d].map((c) => c + c).join('');\n const n = parseInt(d.slice(0, 6), 16);\n const a = Math.round(alpha * 1000) / 1000;\n return `rgba(${(n >> 16) & 255}, ${(n >> 8) & 255}, ${n & 255}, ${a})`;\n}\n","import type { ResolvedTheme } from '../theme';\n\n/** Plain numbers / '#rrggbb' / 'rgba()' strings, valid as React Native and web style props. */\nexport type Style = Record<string, string | number | { width: number; height: number }>;\n\ntype NumericScale = 'spacing' | 'radii' | 'fontSizes' | 'fontWeights' | 'opacity' | 'duration';\n\n/** A value of a scale, or an error naming the token the registry lacks (never a silent `undefined` style). */\nexport const px = (theme: ResolvedTheme, scale: NumericScale, key: string): number => {\n const v = theme.scale[scale][key];\n if (v === undefined) throw new Error(`design token ${scale}.${key} is missing from the registry`);\n return v;\n};\n\nexport const weight = (theme: ResolvedTheme, key: string): string => String(px(theme, 'fontWeights', key));\n","import { type ResolvedTheme } from '../theme';\nimport type { ButtonProps } from '../types';\nimport { px, weight, type Style } from './util';\n\nexport interface ButtonRecipe {\n container: Style;\n label: Style;\n spinner: { size: number; color: string };\n}\n\nexport function buttonRecipe(\n { variant = 'default', size = 'default', disabled = false }: ButtonProps,\n t: ResolvedTheme,\n): ButtonRecipe {\n const c = t.colors;\n const bg: Record<string, string> = {\n default: c.primary,\n destructive: c.destructive,\n outline: c.background,\n secondary: c.secondary,\n ghost: 'transparent',\n link: 'transparent',\n };\n const fg: Record<string, string> = {\n default: c.primaryForeground,\n destructive: '#ffffff',\n outline: c.foreground,\n secondary: c.secondaryForeground,\n ghost: c.foreground,\n link: c.primary,\n };\n const dims: Record<string, Style> = {\n default: { paddingHorizontal: px(t, 'spacing', '4'), paddingVertical: px(t, 'spacing', '2') },\n sm: { minHeight: px(t, 'spacing', '8'), paddingHorizontal: px(t, 'spacing', '3') },\n lg: { minHeight: px(t, 'spacing', '10'), paddingHorizontal: px(t, 'spacing', '8') },\n icon: { minHeight: px(t, 'spacing', '9'), minWidth: px(t, 'spacing', '9') },\n };\n const container: Style = {\n flexDirection: 'row',\n alignItems: 'center',\n justifyContent: 'center',\n borderRadius: px(t, 'radii', 'md'),\n gap: px(t, 'spacing', '2'),\n backgroundColor: bg[variant],\n ...dims[size],\n opacity: disabled ? 0.4 : 1,\n };\n if (variant === 'outline') {\n container.borderWidth = 1;\n container.borderColor = c.border;\n }\n const label: Style = {\n color: fg[variant],\n fontSize: px(t, 'fontSizes', size === 'sm' ? 'xs' : 'sm'),\n fontWeight: weight(t, 'medium'),\n };\n return { container, label, spinner: { size: px(t, 'spacing', '4'), color: fg[variant] } };\n}\n","import { type ResolvedTheme } from '../theme';\nimport type { TextProps } from '../types';\nimport { px, weight, type Style } from './util';\n\nexport function textRecipe({ size = 'md', bold, underline, strikeThrough }: TextProps, t: ResolvedTheme): Style {\n const style: Style = { color: t.colors.foreground, fontSize: px(t, 'fontSizes', size) };\n if (bold) style.fontWeight = weight(t, 'bold');\n if (underline || strikeThrough)\n style.textDecorationLine =\n underline && strikeThrough ? 'underline line-through' : underline ? 'underline' : 'line-through';\n return style;\n}\n","import type { ResolvedTheme } from '../theme';\nimport type { HeadingProps } from '../types';\nimport { px, weight, type Style } from './util';\n\nconst SIZE = { 1: '4xl', 2: '3xl', 3: '2xl', 4: 'xl', 5: 'lg', 6: 'md' } as const;\n\nexport function headingRecipe({ level = 2 }: HeadingProps, t: ResolvedTheme): Style {\n const fontSize = px(t, 'fontSizes', SIZE[level]);\n return {\n color: t.colors.foreground,\n fontSize,\n fontWeight: weight(t, level <= 4 ? 'bold' : 'semibold'),\n // tighter tracking on the large levels, expressed (as the registry does) as a fraction of the size\n letterSpacing: level <= 2 ? Math.round(fontSize * t.scale.letterSpacings.tight * 100) / 100 : 0,\n };\n}\n","import { withAlpha, type ResolvedTheme } from '../theme';\nimport type { InputProps } from '../types';\nimport { px, type Style } from './util';\n\nexport interface InputRecipe {\n container: Style;\n field: Style;\n placeholderTextColor: string;\n /** border colour when focused, for providers that render focus themselves */\n focusBorderColor: string;\n}\n\nexport function inputRecipe({ disabled = false, invalid = false }: InputProps, t: ResolvedTheme): InputRecipe {\n const c = t.colors;\n return {\n container: {\n height: px(t, 'spacing', '9'),\n width: '100%',\n flexDirection: 'row',\n alignItems: 'center',\n gap: px(t, 'spacing', '2'),\n paddingHorizontal: px(t, 'spacing', '3'),\n borderRadius: px(t, 'radii', 'md'),\n borderWidth: 1,\n borderColor: invalid ? withAlpha(c.destructive, 0.4) : c.border,\n backgroundColor: 'transparent',\n opacity: disabled ? 0.5 : 1,\n },\n field: {\n flex: 1,\n height: '100%',\n color: c.foreground,\n fontSize: px(t, 'fontSizes', 'sm'),\n paddingVertical: px(t, 'spacing', '1'),\n },\n placeholderTextColor: c.mutedForeground,\n focusBorderColor: c.ring,\n };\n}\n","import { withAlpha, type ResolvedTheme } from '../theme';\nimport type { TextareaProps } from '../types';\nimport { px, type Style } from './util';\n\nexport interface TextareaRecipe {\n field: Style;\n placeholderTextColor: string;\n focusBorderColor: string;\n}\n\nexport function textareaRecipe(\n { rows = 4, disabled = false, invalid = false }: TextareaProps,\n t: ResolvedTheme,\n): TextareaRecipe {\n const c = t.colors;\n const line = t.scale.lineHeights.sm;\n const pad = px(t, 'spacing', '2');\n return {\n field: {\n width: '100%',\n minHeight: rows * line + 2 * pad + 2,\n paddingHorizontal: px(t, 'spacing', '3'),\n paddingVertical: pad,\n borderRadius: px(t, 'radii', 'md'),\n borderWidth: 1,\n borderColor: invalid ? withAlpha(c.destructive, 0.4) : c.border,\n backgroundColor: 'transparent',\n color: c.foreground,\n fontSize: px(t, 'fontSizes', 'sm'),\n lineHeight: line,\n textAlignVertical: 'top',\n opacity: disabled ? 0.5 : 1,\n },\n placeholderTextColor: c.mutedForeground,\n focusBorderColor: c.ring,\n };\n}\n","import { withAlpha, type ResolvedTheme } from '../theme';\nimport type { SelectProps } from '../types';\nimport { px, weight, type Style } from './util';\n\nexport interface SelectRecipe {\n trigger: Style;\n triggerLabel: Style;\n placeholderColor: string;\n menu: Style;\n option: Style;\n optionSelected: Style;\n optionLabel: Style;\n optionLabelSelected: Style;\n disabledOptionOpacity: number;\n focusBorderColor: string;\n}\n\nexport function selectRecipe({ disabled = false, invalid = false }: SelectProps, t: ResolvedTheme): SelectRecipe {\n const c = t.colors;\n const sh = t.scale.shadows.md;\n return {\n trigger: {\n height: px(t, 'spacing', '9'),\n width: '100%',\n flexDirection: 'row',\n alignItems: 'center',\n justifyContent: 'space-between',\n gap: px(t, 'spacing', '2'),\n paddingHorizontal: px(t, 'spacing', '3'),\n borderRadius: px(t, 'radii', 'md'),\n borderWidth: 1,\n borderColor: invalid ? withAlpha(c.destructive, 0.4) : c.border,\n backgroundColor: 'transparent',\n opacity: disabled ? 0.5 : 1,\n },\n triggerLabel: { flex: 1, color: c.foreground, fontSize: px(t, 'fontSizes', 'sm') },\n placeholderColor: c.mutedForeground,\n menu: {\n marginTop: px(t, 'spacing', '1'),\n padding: px(t, 'spacing', '1'),\n maxHeight: px(t, 'spacing', '48') + px(t, 'spacing', '12'),\n backgroundColor: c.popover,\n borderRadius: px(t, 'radii', 'md'),\n borderWidth: 1,\n borderColor: c.border,\n shadowColor: sh.color,\n shadowOffset: { width: sh.offsetX, height: sh.offsetY },\n shadowOpacity: sh.opacity,\n shadowRadius: sh.radius,\n elevation: sh.elevation,\n },\n option: {\n paddingHorizontal: px(t, 'spacing', '2'),\n paddingVertical: px(t, 'spacing', '1.5'),\n borderRadius: px(t, 'radii', 'sm'),\n },\n optionSelected: { backgroundColor: c.accent },\n optionLabel: { color: c.popoverForeground, fontSize: px(t, 'fontSizes', 'sm') },\n optionLabelSelected: { color: c.accentForeground, fontWeight: weight(t, 'medium') },\n disabledOptionOpacity: 0.4,\n focusBorderColor: c.ring,\n };\n}\n","import { withAlpha, type ResolvedTheme } from '../theme';\nimport type { CheckboxProps } from '../types';\nimport { px, type Style } from './util';\n\nexport interface CheckboxRecipe {\n row: Style;\n box: Style;\n mark: { color: string; fontSize: number };\n label: Style;\n}\n\nexport function checkboxRecipe(\n { checked = false, disabled = false, invalid = false }: CheckboxProps,\n t: ResolvedTheme,\n): CheckboxRecipe {\n const c = t.colors;\n const size = px(t, 'spacing', '5');\n return {\n row: { flexDirection: 'row', alignItems: 'center', gap: px(t, 'spacing', '2'), opacity: disabled ? 0.4 : 1 },\n box: {\n width: size,\n height: size,\n alignItems: 'center',\n justifyContent: 'center',\n borderRadius: px(t, 'radii', 'sm'),\n borderWidth: 1,\n borderColor: invalid ? withAlpha(c.destructive, 0.6) : checked ? c.primary : c.input,\n backgroundColor: checked ? c.primary : 'transparent',\n },\n mark: { color: c.primaryForeground, fontSize: px(t, 'fontSizes', 'xs') },\n label: { color: c.foreground, fontSize: px(t, 'fontSizes', 'sm') },\n };\n}\n","import type { ResolvedTheme } from '../theme';\nimport type { RadioGroupProps } from '../types';\nimport { px, type Style } from './util';\n\nexport interface RadioRecipe {\n group: Style;\n row: Style;\n circle: (selected: boolean) => Style;\n dot: Style;\n label: Style;\n}\n\nexport function radioRecipe(\n { orientation = 'vertical', disabled = false }: RadioGroupProps,\n t: ResolvedTheme,\n): RadioRecipe {\n const c = t.colors;\n const size = px(t, 'spacing', '5');\n const dot = px(t, 'spacing', '2.5');\n return {\n group: {\n flexDirection: orientation === 'horizontal' ? 'row' : 'column',\n gap: px(t, 'spacing', orientation === 'horizontal' ? '4' : '2'),\n opacity: disabled ? 0.4 : 1,\n },\n row: { flexDirection: 'row', alignItems: 'center', gap: px(t, 'spacing', '2') },\n circle: (selected) => ({\n width: size,\n height: size,\n alignItems: 'center',\n justifyContent: 'center',\n borderRadius: px(t, 'radii', 'full'),\n borderWidth: 1,\n borderColor: selected ? c.primary : c.input,\n }),\n dot: { width: dot, height: dot, borderRadius: px(t, 'radii', 'full'), backgroundColor: c.primary },\n label: { color: c.foreground, fontSize: px(t, 'fontSizes', 'sm') },\n };\n}\n","import { type ResolvedTheme } from '../theme';\nimport type { SwitchProps } from '../types';\nimport { px } from './util';\n\nexport interface SwitchRecipe {\n trackOn: string;\n trackOff: string;\n thumb: string;\n /** scale applied to the whole control (sm 0.75, md 1, lg 1.25) */\n scale: number;\n opacity: number;\n width: number;\n height: number;\n}\n\nexport function switchRecipe({ size = 'md', disabled = false }: SwitchProps, t: ResolvedTheme): SwitchRecipe {\n return {\n trackOn: t.colors.primary,\n trackOff: t.colors.input,\n thumb: t.colors.background,\n scale: { sm: 0.75, md: 1, lg: 1.25 }[size],\n opacity: disabled ? 0.4 : 1,\n width: px(t, 'spacing', '11'),\n height: px(t, 'spacing', '6'),\n };\n}\n","import { type ResolvedTheme } from '../theme';\nimport type { CardProps } from '../types';\nimport { px, type Style } from './util';\n\nexport function cardRecipe({ size = 'default' }: CardProps, t: ResolvedTheme): Style {\n const sh = t.scale.shadows.sm;\n return {\n flexDirection: 'column',\n backgroundColor: t.colors.card,\n borderWidth: 1,\n borderColor: t.colors.border,\n borderRadius: px(t, 'radii', 'xl'),\n padding: px(t, 'spacing', size === 'sm' ? '3' : '4'),\n gap: px(t, 'spacing', size === 'sm' ? '3' : '6'),\n shadowColor: sh.color,\n shadowOffset: { width: sh.offsetX, height: sh.offsetY },\n shadowOpacity: sh.opacity,\n shadowRadius: sh.radius,\n elevation: sh.elevation,\n };\n}\n","import { type ResolvedTheme } from '../theme';\nimport type { BadgeProps } from '../types';\nimport { px, weight, type Style } from './util';\n\nexport interface BadgeRecipe {\n container: Style;\n label: Style;\n}\n\nexport function badgeRecipe({ variant = 'default' }: BadgeProps, t: ResolvedTheme): BadgeRecipe {\n const c = t.colors;\n const bg: Record<string, string> = {\n default: c.primary,\n secondary: c.secondary,\n destructive: c.destructive,\n outline: 'transparent',\n };\n const fg: Record<string, string> = {\n default: c.primaryForeground,\n secondary: c.secondaryForeground,\n destructive: '#ffffff',\n outline: c.foreground,\n };\n const container: Style = {\n flexDirection: 'row',\n alignItems: 'center',\n justifyContent: 'center',\n borderRadius: px(t, 'radii', 'sm'),\n paddingHorizontal: px(t, 'spacing', '2'),\n paddingVertical: px(t, 'spacing', '0.5'),\n backgroundColor: bg[variant],\n };\n if (variant === 'outline') {\n container.borderWidth = 1;\n container.borderColor = c.border;\n }\n return {\n container,\n label: {\n color: fg[variant],\n fontSize: px(t, 'fontSizes', 'xs'),\n fontWeight: weight(t, 'medium'),\n textTransform: 'uppercase',\n },\n };\n}\n","import type { ResolvedTheme } from '../theme';\nimport type { AvatarProps } from '../types';\nimport { px, weight, type Style } from './util';\n\nconst BOX = { sm: '8', md: '10', lg: '14', xl: '20' } as const;\nconst TEXT = { sm: 'xs', md: 'sm', lg: 'xl', xl: '3xl' } as const;\n\nexport interface AvatarRecipe {\n container: Style;\n image: Style;\n initials: Style;\n}\n\nexport function avatarRecipe({ size = 'md' }: AvatarProps, t: ResolvedTheme): AvatarRecipe {\n const box = px(t, 'spacing', BOX[size]);\n return {\n container: {\n width: box,\n height: box,\n borderRadius: px(t, 'radii', 'full'),\n overflow: 'hidden',\n alignItems: 'center',\n justifyContent: 'center',\n backgroundColor: t.colors.muted,\n },\n image: { width: box, height: box },\n initials: {\n color: t.colors.mutedForeground,\n fontSize: px(t, 'fontSizes', TEXT[size]),\n fontWeight: weight(t, 'medium'),\n },\n };\n}\n\n/** \"Ada Lovelace\" -> \"AL\"; one word -> its first letter; nothing -> \"?\" */\nexport function initialsOf(name?: string): string {\n const words = (name ?? '').trim().split(/\\s+/).filter(Boolean);\n if (!words.length) return '?';\n const letters = words.length === 1 ? [words[0]] : [words[0], words[words.length - 1]];\n return letters.map((w) => Array.from(w)[0].toUpperCase()).join('');\n}\n","import type { ResolvedTheme } from '../theme';\nimport type { DividerProps } from '../types';\nimport type { Style } from './util';\n\nexport function dividerRecipe({ orientation = 'horizontal' }: DividerProps, t: ResolvedTheme): Style {\n return orientation === 'vertical'\n ? { width: 1, alignSelf: 'stretch', backgroundColor: t.colors.border }\n : { height: 1, width: '100%', backgroundColor: t.colors.border };\n}\n","import { withAlpha, type ResolvedTheme } from '../theme';\nimport type { ModalProps } from '../types';\nimport { px, weight, type Style } from './util';\n\nexport interface ModalRecipe {\n backdrop: Style;\n panel: Style;\n title: Style;\n}\n\nexport function modalRecipe(_p: ModalProps, t: ResolvedTheme): ModalRecipe {\n const c = t.colors;\n const sh = t.scale.shadows.lg;\n return {\n // the scrim is the shadow colour of the registry (black in the starter), not a literal\n backdrop: {\n flex: 1,\n alignItems: 'center',\n justifyContent: 'center',\n padding: px(t, 'spacing', '4'),\n backgroundColor: withAlpha(sh.color, 0.5),\n },\n panel: {\n width: '100%',\n maxWidth: px(t, 'spacing', '48') * 2.5,\n gap: px(t, 'spacing', '4'),\n padding: px(t, 'spacing', '6'),\n backgroundColor: c.popover,\n borderRadius: px(t, 'radii', 'xl'),\n borderWidth: 1,\n borderColor: c.border,\n shadowColor: sh.color,\n shadowOffset: { width: sh.offsetX, height: sh.offsetY },\n shadowOpacity: sh.opacity,\n shadowRadius: sh.radius,\n elevation: sh.elevation,\n },\n title: { color: c.popoverForeground, fontSize: px(t, 'fontSizes', 'lg'), fontWeight: weight(t, 'semibold') },\n };\n}\n","import type { ResolvedTheme } from '../theme';\nimport type { TabsProps } from '../types';\nimport { px, weight, type Style } from './util';\n\nexport interface TabsRecipe {\n list: Style;\n tab: (active: boolean, disabled: boolean) => Style;\n label: (active: boolean) => Style;\n panel: Style;\n}\n\nexport function tabsRecipe(_p: TabsProps, t: ResolvedTheme): TabsRecipe {\n const c = t.colors;\n return {\n list: { flexDirection: 'row', borderBottomWidth: 1, borderBottomColor: c.border },\n tab: (active, disabled) => ({\n paddingHorizontal: px(t, 'spacing', '4'),\n paddingVertical: px(t, 'spacing', '2'),\n borderBottomWidth: 2,\n marginBottom: -1,\n borderBottomColor: active ? c.primary : 'transparent',\n opacity: disabled ? 0.4 : 1,\n }),\n label: (active) => ({\n color: active ? c.foreground : c.mutedForeground,\n fontSize: px(t, 'fontSizes', 'sm'),\n fontWeight: weight(t, 'medium'),\n }),\n panel: { paddingTop: px(t, 'spacing', '4') },\n };\n}\n","import { withAlpha, type ResolvedTheme } from '../theme';\nimport type { AlertProps, FeedbackVariant, ToastProps } from '../types';\nimport { px, weight, type Style } from './util';\n\n/** The registry colour a feedback variant stands for. */\nexport function feedbackColor(variant: FeedbackVariant | 'default', t: ResolvedTheme): string {\n const c = t.colors;\n return { info: c.info, success: c.success, warning: c.warning, error: c.error, default: c.border }[variant];\n}\n\nexport interface FeedbackRecipe {\n container: Style;\n title: Style;\n body: Style;\n /** the colour of the leading bar */\n accent: string;\n}\n\nexport function alertRecipe({ variant = 'info' }: AlertProps, t: ResolvedTheme): FeedbackRecipe {\n const accent = feedbackColor(variant, t);\n return {\n accent,\n container: {\n width: '100%',\n gap: px(t, 'spacing', '1'),\n padding: px(t, 'spacing', '4'),\n borderRadius: px(t, 'radii', 'lg'),\n borderWidth: 1,\n borderColor: withAlpha(accent, 0.4),\n borderLeftWidth: 4,\n borderLeftColor: accent,\n backgroundColor: withAlpha(accent, 0.1),\n },\n title: { color: t.colors.foreground, fontSize: px(t, 'fontSizes', 'sm'), fontWeight: weight(t, 'semibold') },\n body: { color: t.colors.foreground, fontSize: px(t, 'fontSizes', 'sm') },\n };\n}\n\nexport function toastRecipe({ variant = 'default' }: ToastProps, t: ResolvedTheme): FeedbackRecipe {\n const c = t.colors;\n const accent = feedbackColor(variant, t);\n const sh = t.scale.shadows.lg;\n return {\n accent,\n container: {\n minWidth: px(t, 'spacing', '40') + px(t, 'spacing', '24'),\n flexDirection: 'row',\n alignItems: 'flex-start',\n gap: px(t, 'spacing', '3'),\n padding: px(t, 'spacing', '4'),\n borderRadius: px(t, 'radii', 'lg'),\n borderWidth: 1,\n borderColor: c.border,\n borderLeftWidth: 4,\n borderLeftColor: accent,\n backgroundColor: c.popover,\n shadowColor: sh.color,\n shadowOffset: { width: sh.offsetX, height: sh.offsetY },\n shadowOpacity: sh.opacity,\n shadowRadius: sh.radius,\n elevation: sh.elevation,\n },\n title: { color: c.popoverForeground, fontSize: px(t, 'fontSizes', 'sm'), fontWeight: weight(t, 'semibold') },\n body: { color: c.mutedForeground, fontSize: px(t, 'fontSizes', 'sm') },\n };\n}\n","import type { ResolvedTheme } from '../theme';\nimport type { ProgressProps } from '../types';\nimport { px, type Style } from './util';\n\nconst HEIGHT = { sm: '1', md: '2', lg: '3' } as const;\n\nexport interface ProgressRecipe {\n track: Style;\n bar: Style;\n /** the value, clamped to 0..100 */\n value: number;\n}\n\nexport function progressRecipe({ value, size = 'md' }: ProgressProps, t: ResolvedTheme): ProgressRecipe {\n const pct = Math.min(100, Math.max(0, Number.isFinite(value) ? value : 0));\n return {\n value: pct,\n track: {\n width: '100%',\n height: px(t, 'spacing', HEIGHT[size]),\n borderRadius: px(t, 'radii', 'full'),\n overflow: 'hidden',\n backgroundColor: t.colors.muted,\n },\n bar: { width: `${pct}%`, height: '100%', borderRadius: px(t, 'radii', 'full'), backgroundColor: t.colors.primary },\n };\n}\n","import type { ResolvedTheme } from '../theme';\nimport type { SkeletonProps } from '../types';\nimport { px, type Style } from './util';\n\nexport interface SkeletonRecipe {\n block: Style;\n /** the pulse: opacity goes from 1 to `minOpacity` and back, one way in `durationMs` */\n pulse: { minOpacity: number; durationMs: number };\n}\n\nexport function skeletonRecipe(\n { width = '100%', height, circle = false }: SkeletonProps,\n t: ResolvedTheme,\n): SkeletonRecipe {\n const h = height ?? px(t, 'spacing', '4');\n return {\n block: {\n width: circle ? h : width,\n height: h,\n borderRadius: px(t, 'radii', circle ? 'full' : 'md'),\n backgroundColor: t.colors.muted,\n },\n pulse: { minOpacity: px(t, 'opacity', 'dim'), durationMs: px(t, 'duration', 'slower') * 2 },\n };\n}\n","import type { ResolvedTheme } from '../theme';\nimport type { SpinnerProps } from '../types';\n\nexport interface SpinnerRecipe {\n size: 'small' | 'large';\n color: string;\n scale: number;\n}\n\nexport function spinnerRecipe({ size = 'md' }: SpinnerProps, t: ResolvedTheme): SpinnerRecipe {\n return { size: size === 'sm' ? 'small' : 'large', scale: { sm: 1, md: 1, lg: 1.5 }[size], color: t.colors.primary };\n}\n","import type { ResolvedTheme } from '../theme';\nimport type { GridProps, ImageProps, StackProps } from '../types';\nimport { px, type Style } from './util';\n\nexport const DEFAULT_SPACE = '2';\n\n/** gap of a stack / grid, from a spacing step */\nexport function stackRecipe(\n direction: 'row' | 'column',\n { space = DEFAULT_SPACE }: StackProps,\n t: ResolvedTheme,\n): Style {\n return { flexDirection: direction, gap: px(t, 'spacing', space) };\n}\n\nexport function centerRecipe(): Style {\n return { alignItems: 'center', justifyContent: 'center' };\n}\n\nexport function gridRecipe(\n { columns = 2, space = DEFAULT_SPACE }: GridProps,\n t: ResolvedTheme,\n): { container: Style; cell: Style } {\n const gap = px(t, 'spacing', space);\n const n = Math.max(1, Math.floor(columns));\n // each cell takes an equal share of the row, minus its share of the gaps\n return {\n container: { flexDirection: 'row', flexWrap: 'wrap', gap },\n cell: {\n flexGrow: 0,\n flexShrink: 0,\n flexBasis: `${(100 / n).toFixed(4)}%`,\n maxWidth: `calc(${(100 / n).toFixed(4)}% - ${(gap * (n - 1)) / n}px)`,\n },\n };\n}\n\nexport function imageRecipe({ width, height, radius }: ImageProps, t: ResolvedTheme): Style {\n const s: Style = {};\n if (width !== undefined) s.width = width;\n if (height !== undefined) s.height = height;\n if (radius) s.borderRadius = px(t, 'radii', radius);\n return s;\n}\n","import type { ResolvedTheme } from '../theme';\nimport type { IconColor, IconName, IconProps } from '../types';\nimport { px, type Style } from './util';\n\nexport const GLYPHS: Record<IconName, string> = {\n check: '✓',\n close: '✕',\n 'chevron-up': '▴',\n 'chevron-down': '▾',\n 'chevron-left': '◂',\n 'chevron-right': '▸',\n plus: '+',\n minus: '−',\n search: '⌕',\n info: 'ⓘ',\n warning: '⚠',\n star: '★',\n menu: '☰',\n dot: '●',\n};\n\nexport function iconColor(color: IconColor, t: ResolvedTheme): string {\n const c = t.colors;\n return {\n foreground: c.foreground,\n muted: c.mutedForeground,\n primary: c.primary,\n destructive: c.destructive,\n success: c.success,\n warning: c.warning,\n info: c.info,\n }[color];\n}\n\nexport function iconRecipe(\n { name, size = 'md', color = 'foreground' }: IconProps,\n t: ResolvedTheme,\n): { glyph: string; style: Style } {\n return { glyph: GLYPHS[name], style: { color: iconColor(color, t), fontSize: px(t, 'fontSizes', size) } };\n}\n","import type { ResolvedTheme } from '../theme';\nimport { px, type Style } from './util';\n\nexport function linkRecipe(t: ResolvedTheme): Style {\n return { color: t.colors.primary, fontSize: px(t, 'fontSizes', 'md'), textDecorationLine: 'underline' };\n}\n","import type { ResolvedTheme } from '../theme';\nimport { px, weight, type Style } from './util';\n\nexport interface AccordionRecipe {\n container: Style;\n item: Style;\n header: (open: boolean, disabled: boolean) => Style;\n title: Style;\n chevron: Style;\n content: Style;\n}\n\nexport function accordionRecipe(t: ResolvedTheme): AccordionRecipe {\n const c = t.colors;\n return {\n container: {\n width: '100%',\n borderWidth: 1,\n borderColor: c.border,\n borderRadius: px(t, 'radii', 'lg'),\n backgroundColor: c.card,\n overflow: 'hidden',\n },\n item: { borderBottomWidth: 1, borderBottomColor: c.border },\n header: (_open, disabled) => ({\n flexDirection: 'row',\n alignItems: 'center',\n justifyContent: 'space-between',\n gap: px(t, 'spacing', '2'),\n paddingHorizontal: px(t, 'spacing', '4'),\n paddingVertical: px(t, 'spacing', '3'),\n opacity: disabled ? 0.4 : 1,\n }),\n title: { flex: 1, color: c.cardForeground, fontSize: px(t, 'fontSizes', 'sm'), fontWeight: weight(t, 'medium') },\n chevron: { color: c.mutedForeground, fontSize: px(t, 'fontSizes', 'sm') },\n content: {\n paddingHorizontal: px(t, 'spacing', '4'),\n paddingBottom: px(t, 'spacing', '4'),\n gap: px(t, 'spacing', '2'),\n },\n };\n}\n","import { withAlpha, type ResolvedTheme } from '../theme';\nimport { px, weight, type Style } from './util';\n\nconst shadow = (t: ResolvedTheme, key: 'md' | 'lg' | 'xl'): Style => {\n const sh = t.scale.shadows[key];\n return {\n shadowColor: sh.color,\n shadowOffset: { width: sh.offsetX, height: sh.offsetY },\n shadowOpacity: sh.opacity,\n shadowRadius: sh.radius,\n elevation: sh.elevation,\n };\n};\n\n/** the surface every floating panel shares: popover colour, border, radius, shadow */\nfunction surface(t: ResolvedTheme, radius: string, sh: 'md' | 'lg' | 'xl'): Style {\n return {\n backgroundColor: t.colors.popover,\n borderWidth: 1,\n borderColor: t.colors.border,\n borderRadius: px(t, 'radii', radius),\n ...shadow(t, sh),\n };\n}\n\n/** the dim layer behind a modal surface: the registry's shadow colour, not a literal */\nexport const scrim = (t: ResolvedTheme): string => withAlpha(t.scale.shadows.lg.color, 0.5);\n\nexport function popoverRecipe(t: ResolvedTheme): { panel: Style } {\n return {\n panel: {\n ...surface(t, 'md', 'md'),\n position: 'absolute',\n top: '100%',\n left: 0,\n marginTop: px(t, 'spacing', '1'),\n minWidth: px(t, 'spacing', '48'),\n padding: px(t, 'spacing', '3'),\n gap: px(t, 'spacing', '2'),\n zIndex: t.scale.zIndex.popover,\n },\n };\n}\n\nexport function tooltipRecipe(t: ResolvedTheme): { bubble: Style; label: Style } {\n return {\n bubble: {\n position: 'absolute',\n bottom: '100%',\n alignSelf: 'center',\n marginBottom: px(t, 'spacing', '1'),\n paddingHorizontal: px(t, 'spacing', '2'),\n paddingVertical: px(t, 'spacing', '1'),\n borderRadius: px(t, 'radii', 'sm'),\n backgroundColor: t.colors.foreground,\n zIndex: t.scale.zIndex.tooltip,\n },\n label: { color: t.colors.background, fontSize: px(t, 'fontSizes', 'xs') },\n };\n}\n\nexport interface MenuRecipe {\n panel: Style;\n item: (disabled: boolean) => Style;\n label: (destructive: boolean) => Style;\n}\n\nexport function menuRecipe(t: ResolvedTheme): MenuRecipe {\n const c = t.colors;\n return {\n panel: {\n ...surface(t, 'md', 'md'),\n position: 'absolute',\n top: '100%',\n left: 0,\n marginTop: px(t, 'spacing', '1'),\n minWidth: px(t, 'spacing', '40'),\n padding: px(t, 'spacing', '1'),\n zIndex: t.scale.zIndex.dropdown,\n },\n item: (disabled) => ({\n paddingHorizontal: px(t, 'spacing', '2'),\n paddingVertical: px(t, 'spacing', '1.5'),\n borderRadius: px(t, 'radii', 'sm'),\n opacity: disabled ? 0.4 : 1,\n }),\n label: (destructive) => ({\n color: destructive ? c.destructive : c.popoverForeground,\n fontSize: px(t, 'fontSizes', 'sm'),\n }),\n };\n}\n\nexport interface SheetRecipe {\n backdrop: Style;\n panel: Style;\n title: Style;\n handle: Style;\n action: Style;\n actionLabel: (destructive: boolean) => Style;\n cancel: Style;\n cancelLabel: Style;\n}\n\n/** action sheet and bottom sheet: a panel that sticks to the bottom edge */\nexport function sheetRecipe(t: ResolvedTheme): SheetRecipe {\n const c = t.colors;\n return {\n backdrop: { flex: 1, justifyContent: 'flex-end', backgroundColor: scrim(t) },\n panel: {\n ...surface(t, 'xl', 'xl'),\n borderBottomLeftRadius: 0,\n borderBottomRightRadius: 0,\n width: '100%',\n padding: px(t, 'spacing', '4'),\n gap: px(t, 'spacing', '2'),\n },\n title: {\n color: c.mutedForeground,\n fontSize: px(t, 'fontSizes', 'sm'),\n textAlign: 'center',\n paddingVertical: px(t, 'spacing', '1'),\n },\n handle: {\n alignSelf: 'center',\n width: px(t, 'spacing', '10'),\n height: px(t, 'spacing', '1'),\n borderRadius: px(t, 'radii', 'full'),\n backgroundColor: c.border,\n marginBottom: px(t, 'spacing', '2'),\n },\n action: {\n paddingVertical: px(t, 'spacing', '3'),\n alignItems: 'center',\n borderRadius: px(t, 'radii', 'md'),\n backgroundColor: c.muted,\n },\n actionLabel: (destructive) => ({\n color: destructive ? c.destructive : c.foreground,\n fontSize: px(t, 'fontSizes', 'md'),\n fontWeight: weight(t, 'medium'),\n }),\n cancel: {\n paddingVertical: px(t, 'spacing', '3'),\n alignItems: 'center',\n borderRadius: px(t, 'radii', 'md'),\n borderWidth: 1,\n borderColor: c.border,\n },\n cancelLabel: { color: c.foreground, fontSize: px(t, 'fontSizes', 'md') },\n };\n}\n\nexport interface AlertDialogRecipe {\n backdrop: Style;\n panel: Style;\n title: Style;\n description: Style;\n actions: Style;\n}\n\nexport function alertDialogRecipe(t: ResolvedTheme): AlertDialogRecipe {\n const c = t.colors;\n return {\n backdrop: {\n flex: 1,\n alignItems: 'center',\n justifyContent: 'center',\n padding: px(t, 'spacing', '4'),\n backgroundColor: scrim(t),\n },\n panel: {\n ...surface(t, 'xl', 'lg'),\n width: '100%',\n maxWidth: px(t, 'spacing', '48') * 2,\n padding: px(t, 'spacing', '6'),\n gap: px(t, 'spacing', '2'),\n },\n title: { color: c.popoverForeground, fontSize: px(t, 'fontSizes', 'lg'), fontWeight: weight(t, 'semibold') },\n description: { color: c.mutedForeground, fontSize: px(t, 'fontSizes', 'sm') },\n actions: {\n flexDirection: 'row',\n justifyContent: 'flex-end',\n gap: px(t, 'spacing', '2'),\n marginTop: px(t, 'spacing', '4'),\n },\n };\n}\n\nexport function drawerRecipe(side: 'left' | 'right', t: ResolvedTheme): { backdrop: Style; panel: Style } {\n return {\n backdrop: {\n flex: 1,\n flexDirection: 'row',\n justifyContent: side === 'left' ? 'flex-start' : 'flex-end',\n backgroundColor: scrim(t),\n },\n panel: {\n ...surface(t, 'none', 'xl'),\n height: '100%',\n width: px(t, 'spacing', '48') * 1.5,\n maxWidth: '85%',\n padding: px(t, 'spacing', '4'),\n gap: px(t, 'spacing', '2'),\n borderWidth: 0,\n [side === 'left' ? 'borderRightWidth' : 'borderLeftWidth']: 1,\n },\n };\n}\n\nexport function imageViewerRecipe(t: ResolvedTheme): {\n backdrop: Style;\n image: Style;\n close: Style;\n closeLabel: Style;\n} {\n return {\n backdrop: {\n flex: 1,\n alignItems: 'center',\n justifyContent: 'center',\n backgroundColor: withAlpha(t.scale.shadows.lg.color, 0.92),\n },\n image: { width: '100%', height: '80%' },\n close: {\n position: 'absolute',\n top: px(t, 'spacing', '10'),\n right: px(t, 'spacing', '4'),\n width: px(t, 'spacing', '10'),\n height: px(t, 'spacing', '10'),\n alignItems: 'center',\n justifyContent: 'center',\n borderRadius: px(t, 'radii', 'full'),\n backgroundColor: withAlpha(t.colors.background, 0.2),\n },\n closeLabel: { color: t.colors.background, fontSize: px(t, 'fontSizes', 'lg') },\n };\n}\n\n/** A translucent surface: the card colour at partial opacity over whatever is behind it. */\nexport function liquidGlassRecipe(t: ResolvedTheme): Style {\n return {\n backgroundColor: withAlpha(t.colors.card, 0.6),\n borderWidth: 1,\n borderColor: withAlpha(t.colors.border, 0.6),\n borderRadius: px(t, 'radii', 'xl'),\n padding: px(t, 'spacing', '4'),\n ...shadow(t, 'md'),\n };\n}\n","import type { ResolvedTheme } from '../theme';\nimport type { SliderProps } from '../types';\nimport { px, type Style } from './util';\n\nexport interface SliderRecipe {\n root: Style;\n track: Style;\n filled: Style;\n thumb: Style;\n thumbSize: number;\n}\n\nexport function sliderRecipe({ disabled = false }: SliderProps, t: ResolvedTheme): SliderRecipe {\n const c = t.colors;\n const thumb = px(t, 'spacing', '5');\n return {\n thumbSize: thumb,\n root: { width: '100%', height: thumb, justifyContent: 'center', opacity: disabled ? 0.4 : 1 },\n track: {\n height: px(t, 'spacing', '1.5'),\n borderRadius: px(t, 'radii', 'full'),\n backgroundColor: c.muted,\n overflow: 'hidden',\n },\n filled: { height: '100%', backgroundColor: c.primary },\n thumb: {\n position: 'absolute',\n width: thumb,\n height: thumb,\n borderRadius: px(t, 'radii', 'full'),\n backgroundColor: c.background,\n borderWidth: 2,\n borderColor: c.primary,\n },\n };\n}\n\n/** value -> 0..1 position, clamped */\nexport function sliderFraction(value: number, min: number, max: number): number {\n if (!(max > min)) return 0;\n return Math.min(1, Math.max(0, (value - min) / (max - min)));\n}\n\n/** 0..1 position -> value, snapped to `step` and clamped to [min, max] */\nexport function sliderValue(fraction: number, min: number, max: number, step: number): number {\n const raw = min + Math.min(1, Math.max(0, fraction)) * (max - min);\n const snapped = step > 0 ? Math.round((raw - min) / step) * step + min : raw;\n const decimals = (String(step).split('.')[1] ?? '').length;\n return Math.min(max, Math.max(min, Number(snapped.toFixed(decimals))));\n}\n","import type { ResolvedTheme } from '../theme';\nimport { px, weight, type Style } from './util';\n\nexport function formControlRecipe(\n disabled: boolean,\n t: ResolvedTheme,\n): { root: Style; label: Style; required: Style; helper: Style; error: Style } {\n const c = t.colors;\n return {\n root: { gap: px(t, 'spacing', '1.5'), opacity: disabled ? 0.5 : 1 },\n label: { color: c.foreground, fontSize: px(t, 'fontSizes', 'sm'), fontWeight: weight(t, 'medium') },\n required: { color: c.destructive },\n helper: { color: c.mutedForeground, fontSize: px(t, 'fontSizes', 'xs') },\n error: { color: c.destructive, fontSize: px(t, 'fontSizes', 'xs') },\n };\n}\n","import type { ResolvedTheme } from '../theme';\nimport type { FabProps } from '../types';\nimport { px, weight, type Style } from './util';\n\nexport function fabRecipe({ label }: FabProps, t: ResolvedTheme): { container: Style; label: Style; icon: Style } {\n const c = t.colors;\n const sh = t.scale.shadows.lg;\n const size = px(t, 'spacing', '14');\n return {\n container: {\n position: 'absolute',\n right: px(t, 'spacing', '4'),\n bottom: px(t, 'spacing', '4'),\n flexDirection: 'row',\n alignItems: 'center',\n justifyContent: 'center',\n gap: px(t, 'spacing', '2'),\n height: size,\n ...(label ? { paddingHorizontal: px(t, 'spacing', '5') } : { width: size }),\n borderRadius: px(t, 'radii', 'full'),\n backgroundColor: c.primary,\n shadowColor: sh.color,\n shadowOffset: { width: sh.offsetX, height: sh.offsetY },\n shadowOpacity: sh.opacity,\n shadowRadius: sh.radius,\n elevation: sh.elevation,\n },\n label: { color: c.primaryForeground, fontSize: px(t, 'fontSizes', 'sm'), fontWeight: weight(t, 'medium') },\n icon: { color: c.primaryForeground, fontSize: px(t, 'fontSizes', 'xl') },\n };\n}\n","import type { ResolvedTheme } from '../theme';\nimport type { TableColumn } from '../types';\nimport { px, weight, type Style } from './util';\n\nexport interface TableRecipe {\n container: Style;\n caption: Style;\n headRow: Style;\n row: (last: boolean) => Style;\n head: (align: TableColumn['align']) => Style;\n cell: (align: TableColumn['align']) => Style;\n headLabel: Style;\n cellLabel: Style;\n}\n\nexport function tableRecipe(t: ResolvedTheme): TableRecipe {\n const c = t.colors;\n const align = (a: TableColumn['align'] = 'left') => ({ left: 'flex-start', center: 'center', right: 'flex-end' })[a];\n const pad = { paddingHorizontal: px(t, 'spacing', '3'), paddingVertical: px(t, 'spacing', '2') };\n return {\n container: {\n width: '100%',\n borderWidth: 1,\n borderColor: c.border,\n borderRadius: px(t, 'radii', 'lg'),\n overflow: 'hidden',\n backgroundColor: c.card,\n },\n caption: { color: c.mutedForeground, fontSize: px(t, 'fontSizes', 'xs'), padding: px(t, 'spacing', '2') },\n headRow: { flexDirection: 'row', backgroundColor: c.muted, borderBottomWidth: 1, borderBottomColor: c.border },\n row: (last) => ({ flexDirection: 'row', borderBottomWidth: last ? 0 : 1, borderBottomColor: c.border }),\n head: (a) => ({ flex: 1, ...pad, alignItems: align(a) }),\n cell: (a) => ({ flex: 1, ...pad, alignItems: align(a) }),\n headLabel: { color: c.mutedForeground, fontSize: px(t, 'fontSizes', 'xs'), fontWeight: weight(t, 'semibold') },\n cellLabel: { color: c.cardForeground, fontSize: px(t, 'fontSizes', 'sm') },\n };\n}\n","import type { ResolvedTheme } from '../theme';\nimport type { CalendarProps } from '../types';\nimport { px, weight, type Style } from './util';\n\nconst pad2 = (n: number) => String(n).padStart(2, '0');\n\n/** 'YYYY-MM-DD' -> [y, m(1-12), d]; null when it is not a real date */\nexport function parseDate(s: string | undefined): [number, number, number] | null {\n const m = /^(\\d{4})-(\\d{2})-(\\d{2})$/.exec(s ?? '');\n if (!m) return null;\n const [y, mo, d] = [Number(m[1]), Number(m[2]), Number(m[3])];\n const dt = new Date(Date.UTC(y, mo - 1, d));\n return dt.getUTCFullYear() === y && dt.getUTCMonth() === mo - 1 && dt.getUTCDate() === d ? [y, mo, d] : null;\n}\n\nexport const formatDate = (y: number, m: number, d: number) => `${String(y).padStart(4, '0')}-${pad2(m)}-${pad2(d)}`;\nexport const daysIn = (y: number, m: number) => new Date(Date.UTC(y, m, 0)).getUTCDate();\n\n/** 'YYYY-MM' of a month shifted by `by` months */\nexport function shiftMonth(y: number, m: number, by: number): [number, number] {\n const idx = y * 12 + (m - 1) + by;\n return [Math.floor(idx / 12), (idx % 12) + 1];\n}\n\nexport interface Cell {\n /** 'YYYY-MM-DD', or null for the blanks before the 1st and after the last day */\n date: string | null;\n day: number | null;\n disabled: boolean;\n}\n\n/** The month as rows of 7 cells, the first column being Sunday (weekStartsOn 0) or Monday (1). */\nexport function monthGrid(\n y: number,\n m: number,\n { weekStartsOn = 0, min, max }: Pick<CalendarProps, 'weekStartsOn' | 'min' | 'max'>,\n): Cell[][] {\n const first = new Date(Date.UTC(y, m - 1, 1)).getUTCDay();\n const lead = (first - weekStartsOn + 7) % 7;\n const cells: Cell[] = Array.from({ length: lead }, () => ({ date: null, day: null, disabled: true }));\n for (let d = 1; d <= daysIn(y, m); d++) {\n const date = formatDate(y, m, d);\n cells.push({ date, day: d, disabled: (!!min && date < min) || (!!max && date > max) });\n }\n while (cells.length % 7) cells.push({ date: null, day: null, disabled: true });\n return Array.from({ length: cells.length / 7 }, (_, i) => cells.slice(i * 7, i * 7 + 7));\n}\n\nexport const WEEKDAYS = ['Su', 'Mo', 'Tu', 'We', 'Th', 'Fr', 'Sa'];\nexport const MONTHS = [\n 'January',\n 'February',\n 'March',\n 'April',\n 'May',\n 'June',\n 'July',\n 'August',\n 'September',\n 'October',\n 'November',\n 'December',\n];\n\nexport interface CalendarRecipe {\n container: Style;\n header: Style;\n title: Style;\n nav: Style;\n navLabel: Style;\n weekRow: Style;\n weekday: Style;\n row: Style;\n day: (selected: boolean, disabled: boolean) => Style;\n dayLabel: (selected: boolean, disabled: boolean) => Style;\n}\n\nexport function calendarRecipe(t: ResolvedTheme): CalendarRecipe {\n const c = t.colors;\n const cell = px(t, 'spacing', '10');\n return {\n container: {\n padding: px(t, 'spacing', '3'),\n gap: px(t, 'spacing', '2'),\n backgroundColor: c.card,\n borderWidth: 1,\n borderColor: c.border,\n borderRadius: px(t, 'radii', 'lg'),\n alignSelf: 'flex-start',\n },\n header: { flexDirection: 'row', alignItems: 'center', justifyContent: 'space-between' },\n title: { color: c.cardForeground, fontSize: px(t, 'fontSizes', 'sm'), fontWeight: weight(t, 'semibold') },\n nav: {\n width: px(t, 'spacing', '8'),\n height: px(t, 'spacing', '8'),\n alignItems: 'center',\n justifyContent: 'center',\n borderRadius: px(t, 'radii', 'md'),\n },\n navLabel: { color: c.mutedForeground, fontSize: px(t, 'fontSizes', 'md') },\n weekRow: { flexDirection: 'row' },\n weekday: { width: cell, textAlign: 'center', color: c.mutedForeground, fontSize: px(t, 'fontSizes', 'xs') },\n row: { flexDirection: 'row' },\n day: (selected, disabled) => ({\n width: cell,\n height: cell,\n alignItems: 'center',\n justifyContent: 'center',\n borderRadius: px(t, 'radii', 'md'),\n backgroundColor: selected ? c.primary : 'transparent',\n opacity: disabled ? 0.3 : 1,\n }),\n dayLabel: (selected) => ({\n color: selected ? c.primaryForeground : c.cardForeground,\n fontSize: px(t, 'fontSizes', 'sm'),\n }),\n };\n}\n"]}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var chunk2T2TCUYF_js = require('./chunk-2T2TCUYF.js');
|
|
4
|
+
var react = require('react');
|
|
5
|
+
var reactNative = require('react-native');
|
|
6
|
+
var jsxRuntime = require('react/jsx-runtime');
|
|
7
|
+
|
|
8
|
+
var FlipovaContext = react.createContext(null);
|
|
9
|
+
function FlipovaProvider({
|
|
10
|
+
adapter,
|
|
11
|
+
mode = "light",
|
|
12
|
+
variant,
|
|
13
|
+
theme: registry = chunk2T2TCUYF_js.defaultRegistry,
|
|
14
|
+
children
|
|
15
|
+
}) {
|
|
16
|
+
const system = reactNative.useColorScheme();
|
|
17
|
+
const resolvedMode = mode === "system" ? system === "dark" ? "dark" : "light" : mode;
|
|
18
|
+
const theme = react.useMemo(
|
|
19
|
+
() => chunk2T2TCUYF_js.resolveTheme(chunk2T2TCUYF_js.themeIdFor(variant, resolvedMode, registry), registry),
|
|
20
|
+
[variant, resolvedMode, registry]
|
|
21
|
+
);
|
|
22
|
+
const value = react.useMemo(() => ({ adapter, theme }), [adapter, theme]);
|
|
23
|
+
return /* @__PURE__ */ jsxRuntime.jsx(FlipovaContext.Provider, { value, children: /* @__PURE__ */ jsxRuntime.jsx(adapter.Provider, { theme, registry, children }) });
|
|
24
|
+
}
|
|
25
|
+
var fallbackTheme;
|
|
26
|
+
function useResolvedTheme() {
|
|
27
|
+
const ctx = react.useContext(FlipovaContext);
|
|
28
|
+
if (ctx) return ctx.theme;
|
|
29
|
+
return fallbackTheme ?? (fallbackTheme = chunk2T2TCUYF_js.resolveTheme(chunk2T2TCUYF_js.themeIdFor(void 0, "light")));
|
|
30
|
+
}
|
|
31
|
+
var useAdapter = () => react.useContext(FlipovaContext)?.adapter ?? null;
|
|
32
|
+
var useProviderName = () => useAdapter()?.name ?? "flipova";
|
|
33
|
+
|
|
34
|
+
// components/providers/types.ts
|
|
35
|
+
var defineAdapter = (adapter) => adapter;
|
|
36
|
+
|
|
37
|
+
exports.FlipovaProvider = FlipovaProvider;
|
|
38
|
+
exports.defineAdapter = defineAdapter;
|
|
39
|
+
exports.useAdapter = useAdapter;
|
|
40
|
+
exports.useProviderName = useProviderName;
|
|
41
|
+
exports.useResolvedTheme = useResolvedTheme;
|
|
42
|
+
//# sourceMappingURL=chunk-6UKTC4KF.js.map
|
|
43
|
+
//# sourceMappingURL=chunk-6UKTC4KF.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../components/providers/provider.tsx","../components/providers/types.ts"],"names":["createContext","defaultRegistry","useColorScheme","useMemo","resolveTheme","themeI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B,MAAM,UAAA,EAAW,EAAG,IAAA,IAAQ;;;AC/DpD,IAAM,aAAA,GAAgB,CAAC,OAAA,KAA8C","file":"chunk-6UKTC4KF.js","sourcesContent":["import React, { createContext, useContext, useMemo } from 'react';\nimport { useColorScheme } from 'react-native';\nimport {\n defaultRegistry,\n resolveTheme,\n themeIdFor,\n type Mode,\n type ResolvedTheme,\n type ThemeRegistry,\n} from '../contract';\nimport type { ProviderAdapter } from './types';\n\ninterface Ctx {\n adapter: ProviderAdapter;\n theme: ResolvedTheme;\n}\n\nconst FlipovaContext = createContext<Ctx | null>(null);\n\nexport interface FlipovaProviderProps {\n /**\n * The component library to render with (`flipova`, `gluestack`, `reusables`, `paper` or `tamagui` adapter, each from\n * its own sub-path). Components the library lacks are served by the flipova provider.\n */\n adapter: ProviderAdapter;\n mode?: Mode | 'system';\n /** Light/dark pair declared in the registry's themes (the `default` pair when omitted). */\n variant?: string;\n /**\n * The app's own themes: the `design-theme.ts` that `npx flipova-design gen` writes in the project. When omitted the\n * neutral light/dark starter bundled with the package is used.\n */\n theme?: ThemeRegistry;\n children?: React.ReactNode;\n}\n\n/**\n * Mounts one adapter with one theme. Colours, radii, spacings and type sizes come from the registry whatever the\n * adapter, which is what keeps the design identical across libraries.\n */\nexport function FlipovaProvider({\n adapter,\n mode = 'light',\n variant,\n theme: registry = defaultRegistry,\n children,\n}: FlipovaProviderProps) {\n const system = useColorScheme();\n const resolvedMode: Mode = mode === 'system' ? (system === 'dark' ? 'dark' : 'light') : mode;\n const theme = useMemo(\n () => resolveTheme(themeIdFor(variant, resolvedMode, registry), registry),\n [variant, resolvedMode, registry],\n );\n const value = useMemo(() => ({ adapter, theme }), [adapter, theme]);\n return (\n <FlipovaContext.Provider value={value}>\n <adapter.Provider theme={theme} registry={registry}>\n {children}\n </adapter.Provider>\n </FlipovaContext.Provider>\n );\n}\n\nlet fallbackTheme: ResolvedTheme | undefined;\n\n/**\n * The resolved theme in use (hex colours, numeric scales). Outside a <FlipovaProvider> it is the light theme of the\n * bundled registry, so a component never renders without a design.\n */\nexport function useResolvedTheme(): ResolvedTheme {\n const ctx = useContext(FlipovaContext);\n if (ctx) return ctx.theme;\n return (fallbackTheme ??= resolveTheme(themeIdFor(undefined, 'light')));\n}\n\n/** The mounted adapter, or null when no <FlipovaProvider> is above. */\nexport const useAdapter = (): ProviderAdapter | null => useContext(FlipovaContext)?.adapter ?? null;\n\n/** Which provider is mounted (`flipova` when none is). */\nexport const useProviderName = () => useAdapter()?.name ?? 'flipova';\n","import type { ComponentType, ReactNode } from 'react';\nimport type { ProviderComponents, ProviderName, ResolvedTheme, ThemeRegistry } from '../contract';\n\n/**\n * A provider adapter: the component library a theme is rendered with. The app picks one and the rest of its code\n * only ever talks to the contract (`import { Button } from '@flipova/foundation/ui'`), so switching library is a\n * one-line change.\n */\nexport interface ProviderAdapter {\n name: ProviderName;\n /** Mounts the library's own provider (Paper's PaperProvider, Tamagui's TamaguiProvider, ...) for this theme. */\n Provider: ComponentType<{ theme: ResolvedTheme; registry: ThemeRegistry; children?: ReactNode }>;\n /** The components the library really has. Any missing one is served by the flipova provider (see ui/). */\n components: ProviderComponents;\n}\n\nexport const defineAdapter = (adapter: ProviderAdapter): ProviderAdapter => adapter;\n"]}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { resolveTheme, themeIdFor, defaultRegistry } from './chunk-2QM2ZUDS.mjs';
|
|
2
|
+
import { createContext, useMemo, useContext } from 'react';
|
|
3
|
+
import { useColorScheme } from 'react-native';
|
|
4
|
+
import { jsx } from 'react/jsx-runtime';
|
|
5
|
+
|
|
6
|
+
var FlipovaContext = createContext(null);
|
|
7
|
+
function FlipovaProvider({
|
|
8
|
+
adapter,
|
|
9
|
+
mode = "light",
|
|
10
|
+
variant,
|
|
11
|
+
theme: registry = defaultRegistry,
|
|
12
|
+
children
|
|
13
|
+
}) {
|
|
14
|
+
const system = useColorScheme();
|
|
15
|
+
const resolvedMode = mode === "system" ? system === "dark" ? "dark" : "light" : mode;
|
|
16
|
+
const theme = useMemo(
|
|
17
|
+
() => resolveTheme(themeIdFor(variant, resolvedMode, registry), registry),
|
|
18
|
+
[variant, resolvedMode, registry]
|
|
19
|
+
);
|
|
20
|
+
const value = useMemo(() => ({ adapter, theme }), [adapter, theme]);
|
|
21
|
+
return /* @__PURE__ */ jsx(FlipovaContext.Provider, { value, children: /* @__PURE__ */ jsx(adapter.Provider, { theme, registry, children }) });
|
|
22
|
+
}
|
|
23
|
+
var fallbackTheme;
|
|
24
|
+
function useResolvedTheme() {
|
|
25
|
+
const ctx = useContext(FlipovaContext);
|
|
26
|
+
if (ctx) return ctx.theme;
|
|
27
|
+
return fallbackTheme ?? (fallbackTheme = resolveTheme(themeIdFor(void 0, "light")));
|
|
28
|
+
}
|
|
29
|
+
var useAdapter = () => useContext(FlipovaContext)?.adapter ?? null;
|
|
30
|
+
var useProviderName = () => useAdapter()?.name ?? "flipova";
|
|
31
|
+
|
|
32
|
+
// components/providers/types.ts
|
|
33
|
+
var defineAdapter = (adapter) => adapter;
|
|
34
|
+
|
|
35
|
+
export { FlipovaProvider, defineAdapter, useAdapter, useProviderName, useResolvedTheme };
|
|
36
|
+
//# sourceMappingURL=chunk-6Z4WRTI4.mjs.map
|
|
37
|
+
//# sourceMappingURL=chunk-6Z4WRTI4.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../components/providers/provider.tsx","../components/providers/types.ts"],"names":[],"mappings":";;;;;AAiBA,IAAM,cAAA,GAAiB,cAA0B,IAAI,CAAA;AAuB9C,SAAS,eAAA,CAAgB;AAAA,EAC9B,OAAA;AAAA,EACA,IAAA,GAAO,OAAA;AAAA,EACP,OAAA;AAAA,EACA,OAAO,QAAA,GAAW,eAAA;AAAA,EAClB;AACF,CAAA,EAAyB;AACvB,EAAA,MAAM,SAAS,cAAA,EAAe;AAC9B,EAAA,MAAM,eAAqB,IAAA,KAAS,QAAA,GAAY,MAAA,KAAW,MAAA,GAAS,SAAS,OAAA,GAAW,IAAA;AACxF,EAAA,MAAM,KAAA,GAAQ,OAAA;AAAA,IACZ,MAAM,YAAA,CAAa,UAAA,CAAW,SAAS,YAAA,EAAc,QAAQ,GAAG,QAAQ,CAAA;AAAA,IACxE,CAAC,OAAA,EAAS,YAAA,EAAc,QAAQ;AAAA,GAClC;AACA,EAAA,MAAM,KAAA,GAAQ,OAAA,CAAQ,OAAO,EAAE,OAAA,EAAS,OAAM,CAAA,EAAI,CAAC,OAAA,EAAS,KAAK,CAAC,CAAA;AAClE,EAAA,uBACE,GAAA,CAAC,cAAA,CAAe,QAAA,EAAf,EAAwB,KAAA,EACvB,QAAA,kBAAA,GAAA,CAAC,OAAA,CAAQ,QAAA,EAAR,EAAiB,KAAA,EAAc,QAAA,EAC7B,QAAA,EACH,CAAA,EACF,CAAA;AAEJ;AAEA,IAAI,aAAA;AAMG,SAAS,gBAAA,GAAkC;AAChD,EAAA,MAAM,GAAA,GAAM,WAAW,cAAc,CAAA;AACrC,EAAA,IAAI,GAAA,SAAY,GAAA,CAAI,KAAA;AACpB,EAAA,OAAQ,aAAA,KAAA,aAAA,GAAkB,YAAA,CAAa,UAAA,CAAW,MAAA,EAAW,OAAO,CAAC,CAAA,CAAA;AACvE;AAGO,IAAM,UAAA,GAAa,MAA8B,UAAA,CAAW,cAAc,GAAG,OAAA,IAAW;AAGxF,IAAM,eAAA,GAAkB,MAAM,UAAA,EAAW,EAAG,IAAA,IAAQ;;;AC/DpD,IAAM,aAAA,GAAgB,CAAC,OAAA,KAA8C","file":"chunk-6Z4WRTI4.mjs","sourcesContent":["import React, { createContext, useContext, useMemo } from 'react';\nimport { useColorScheme } from 'react-native';\nimport {\n defaultRegistry,\n resolveTheme,\n themeIdFor,\n type Mode,\n type ResolvedTheme,\n type ThemeRegistry,\n} from '../contract';\nimport type { ProviderAdapter } from './types';\n\ninterface Ctx {\n adapter: ProviderAdapter;\n theme: ResolvedTheme;\n}\n\nconst FlipovaContext = createContext<Ctx | null>(null);\n\nexport interface FlipovaProviderProps {\n /**\n * The component library to render with (`flipova`, `gluestack`, `reusables`, `paper` or `tamagui` adapter, each from\n * its own sub-path). Components the library lacks are served by the flipova provider.\n */\n adapter: ProviderAdapter;\n mode?: Mode | 'system';\n /** Light/dark pair declared in the registry's themes (the `default` pair when omitted). */\n variant?: string;\n /**\n * The app's own themes: the `design-theme.ts` that `npx flipova-design gen` writes in the project. When omitted the\n * neutral light/dark starter bundled with the package is used.\n */\n theme?: ThemeRegistry;\n children?: React.ReactNode;\n}\n\n/**\n * Mounts one adapter with one theme. Colours, radii, spacings and type sizes come from the registry whatever the\n * adapter, which is what keeps the design identical across libraries.\n */\nexport function FlipovaProvider({\n adapter,\n mode = 'light',\n variant,\n theme: registry = defaultRegistry,\n children,\n}: FlipovaProviderProps) {\n const system = useColorScheme();\n const resolvedMode: Mode = mode === 'system' ? (system === 'dark' ? 'dark' : 'light') : mode;\n const theme = useMemo(\n () => resolveTheme(themeIdFor(variant, resolvedMode, registry), registry),\n [variant, resolvedMode, registry],\n );\n const value = useMemo(() => ({ adapter, theme }), [adapter, theme]);\n return (\n <FlipovaContext.Provider value={value}>\n <adapter.Provider theme={theme} registry={registry}>\n {children}\n </adapter.Provider>\n </FlipovaContext.Provider>\n );\n}\n\nlet fallbackTheme: ResolvedTheme | undefined;\n\n/**\n * The resolved theme in use (hex colours, numeric scales). Outside a <FlipovaProvider> it is the light theme of the\n * bundled registry, so a component never renders without a design.\n */\nexport function useResolvedTheme(): ResolvedTheme {\n const ctx = useContext(FlipovaContext);\n if (ctx) return ctx.theme;\n return (fallbackTheme ??= resolveTheme(themeIdFor(undefined, 'light')));\n}\n\n/** The mounted adapter, or null when no <FlipovaProvider> is above. */\nexport const useAdapter = (): ProviderAdapter | null => useContext(FlipovaContext)?.adapter ?? null;\n\n/** Which provider is mounted (`flipova` when none is). */\nexport const useProviderName = () => useAdapter()?.name ?? 'flipova';\n","import type { ComponentType, ReactNode } from 'react';\nimport type { ProviderComponents, ProviderName, ResolvedTheme, ThemeRegistry } from '../contract';\n\n/**\n * A provider adapter: the component library a theme is rendered with. The app picks one and the rest of its code\n * only ever talks to the contract (`import { Button } from '@flipova/foundation/ui'`), so switching library is a\n * one-line change.\n */\nexport interface ProviderAdapter {\n name: ProviderName;\n /** Mounts the library's own provider (Paper's PaperProvider, Tamagui's TamaguiProvider, ...) for this theme. */\n Provider: ComponentType<{ theme: ResolvedTheme; registry: ThemeRegistry; children?: ReactNode }>;\n /** The components the library really has. Any missing one is served by the flipova provider (see ui/). */\n components: ProviderComponents;\n}\n\nexport const defineAdapter = (adapter: ProviderAdapter): ProviderAdapter => adapter;\n"]}
|
|
@@ -0,0 +1,157 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var chunkV4ULAISZ_js = require('./chunk-V4ULAISZ.js');
|
|
4
|
+
var chunk6UKTC4KF_js = require('./chunk-6UKTC4KF.js');
|
|
5
|
+
var chunk2T2TCUYF_js = require('./chunk-2T2TCUYF.js');
|
|
6
|
+
var jsxRuntime = require('react/jsx-runtime');
|
|
7
|
+
|
|
8
|
+
// components/ui/resolve.ts
|
|
9
|
+
var merged = /* @__PURE__ */ new WeakMap();
|
|
10
|
+
function componentsOf(adapter) {
|
|
11
|
+
if (!adapter || adapter.name === "flipova") return chunkV4ULAISZ_js.flipovaComponents;
|
|
12
|
+
let all = merged.get(adapter);
|
|
13
|
+
if (!all) {
|
|
14
|
+
all = { ...chunkV4ULAISZ_js.flipovaComponents };
|
|
15
|
+
for (const name of chunk2T2TCUYF_js.UI_NAMES) {
|
|
16
|
+
const own = adapter.components[name];
|
|
17
|
+
if (own) all[name] = own;
|
|
18
|
+
}
|
|
19
|
+
merged.set(adapter, all);
|
|
20
|
+
}
|
|
21
|
+
return all;
|
|
22
|
+
}
|
|
23
|
+
function coverageOf(adapter) {
|
|
24
|
+
const native = chunk2T2TCUYF_js.UI_NAMES.filter((n) => adapter.name === "flipova" || !!adapter.components[n]);
|
|
25
|
+
return { provider: adapter.name, native, fallback: chunk2T2TCUYF_js.UI_NAMES.filter((n) => !native.includes(n)) };
|
|
26
|
+
}
|
|
27
|
+
var useComponents = () => componentsOf(chunk6UKTC4KF_js.useAdapter());
|
|
28
|
+
function createUi(name) {
|
|
29
|
+
const Resolved = (props) => {
|
|
30
|
+
const Component = componentsOf(chunk6UKTC4KF_js.useAdapter())[name];
|
|
31
|
+
return /* @__PURE__ */ jsxRuntime.jsx(Component, { ...props });
|
|
32
|
+
};
|
|
33
|
+
Resolved.displayName = `Ui.${name}`;
|
|
34
|
+
return Resolved;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
// components/ui/index.ts
|
|
38
|
+
var Button = createUi("Button");
|
|
39
|
+
var Text = createUi("Text");
|
|
40
|
+
var Heading = createUi("Heading");
|
|
41
|
+
var Input = createUi("Input");
|
|
42
|
+
var Textarea = createUi("Textarea");
|
|
43
|
+
var Select = createUi("Select");
|
|
44
|
+
var Checkbox = createUi("Checkbox");
|
|
45
|
+
var RadioGroup = createUi("RadioGroup");
|
|
46
|
+
var Switch = createUi("Switch");
|
|
47
|
+
var Card = createUi("Card");
|
|
48
|
+
var Badge = createUi("Badge");
|
|
49
|
+
var Avatar = createUi("Avatar");
|
|
50
|
+
var Divider = createUi("Divider");
|
|
51
|
+
var Modal = createUi("Modal");
|
|
52
|
+
var Tabs = createUi("Tabs");
|
|
53
|
+
var Alert = createUi("Alert");
|
|
54
|
+
var Toast = createUi("Toast");
|
|
55
|
+
var Progress = createUi("Progress");
|
|
56
|
+
var Skeleton = createUi("Skeleton");
|
|
57
|
+
var Spinner = createUi("Spinner");
|
|
58
|
+
var Accordion = createUi("Accordion");
|
|
59
|
+
var ActionSheet = createUi("ActionSheet");
|
|
60
|
+
var AlertDialog = createUi("AlertDialog");
|
|
61
|
+
var BottomSheet = createUi("BottomSheet");
|
|
62
|
+
var Box = createUi("Box");
|
|
63
|
+
var Calendar = createUi("Calendar");
|
|
64
|
+
var Center = createUi("Center");
|
|
65
|
+
var DateTimePicker = createUi("DateTimePicker");
|
|
66
|
+
var Drawer = createUi("Drawer");
|
|
67
|
+
var Fab = createUi("Fab");
|
|
68
|
+
var FlatList = createUi("FlatList");
|
|
69
|
+
var FormControl = createUi("FormControl");
|
|
70
|
+
var Grid = createUi("Grid");
|
|
71
|
+
var HStack = createUi("HStack");
|
|
72
|
+
var Icon = createUi("Icon");
|
|
73
|
+
var Image = createUi("Image");
|
|
74
|
+
var ImageBackground = createUi("ImageBackground");
|
|
75
|
+
var ImageViewer = createUi("ImageViewer");
|
|
76
|
+
var InputAccessoryView = createUi("InputAccessoryView");
|
|
77
|
+
var KeyboardAvoidingView = createUi("KeyboardAvoidingView");
|
|
78
|
+
var LiquidGlass = createUi("LiquidGlass");
|
|
79
|
+
var Link = createUi("Link");
|
|
80
|
+
var Menu = createUi("Menu");
|
|
81
|
+
var Popover = createUi("Popover");
|
|
82
|
+
var Portal = createUi("Portal");
|
|
83
|
+
var Pressable = createUi("Pressable");
|
|
84
|
+
var RefreshControl = createUi("RefreshControl");
|
|
85
|
+
var SafeAreaView = createUi("SafeAreaView");
|
|
86
|
+
var ScrollView = createUi("ScrollView");
|
|
87
|
+
var SectionList = createUi("SectionList");
|
|
88
|
+
var Slider = createUi("Slider");
|
|
89
|
+
var StatusBar = createUi("StatusBar");
|
|
90
|
+
var Table = createUi("Table");
|
|
91
|
+
var Tooltip = createUi("Tooltip");
|
|
92
|
+
var View = createUi("View");
|
|
93
|
+
var VirtualizedList = createUi("VirtualizedList");
|
|
94
|
+
var VStack = createUi("VStack");
|
|
95
|
+
|
|
96
|
+
exports.Accordion = Accordion;
|
|
97
|
+
exports.ActionSheet = ActionSheet;
|
|
98
|
+
exports.Alert = Alert;
|
|
99
|
+
exports.AlertDialog = AlertDialog;
|
|
100
|
+
exports.Avatar = Avatar;
|
|
101
|
+
exports.Badge = Badge;
|
|
102
|
+
exports.BottomSheet = BottomSheet;
|
|
103
|
+
exports.Box = Box;
|
|
104
|
+
exports.Button = Button;
|
|
105
|
+
exports.Calendar = Calendar;
|
|
106
|
+
exports.Card = Card;
|
|
107
|
+
exports.Center = Center;
|
|
108
|
+
exports.Checkbox = Checkbox;
|
|
109
|
+
exports.DateTimePicker = DateTimePicker;
|
|
110
|
+
exports.Divider = Divider;
|
|
111
|
+
exports.Drawer = Drawer;
|
|
112
|
+
exports.Fab = Fab;
|
|
113
|
+
exports.FlatList = FlatList;
|
|
114
|
+
exports.FormControl = FormControl;
|
|
115
|
+
exports.Grid = Grid;
|
|
116
|
+
exports.HStack = HStack;
|
|
117
|
+
exports.Heading = Heading;
|
|
118
|
+
exports.Icon = Icon;
|
|
119
|
+
exports.Image = Image;
|
|
120
|
+
exports.ImageBackground = ImageBackground;
|
|
121
|
+
exports.ImageViewer = ImageViewer;
|
|
122
|
+
exports.Input = Input;
|
|
123
|
+
exports.InputAccessoryView = InputAccessoryView;
|
|
124
|
+
exports.KeyboardAvoidingView = KeyboardAvoidingView;
|
|
125
|
+
exports.Link = Link;
|
|
126
|
+
exports.LiquidGlass = LiquidGlass;
|
|
127
|
+
exports.Menu = Menu;
|
|
128
|
+
exports.Modal = Modal;
|
|
129
|
+
exports.Popover = Popover;
|
|
130
|
+
exports.Portal = Portal;
|
|
131
|
+
exports.Pressable = Pressable;
|
|
132
|
+
exports.Progress = Progress;
|
|
133
|
+
exports.RadioGroup = RadioGroup;
|
|
134
|
+
exports.RefreshControl = RefreshControl;
|
|
135
|
+
exports.SafeAreaView = SafeAreaView;
|
|
136
|
+
exports.ScrollView = ScrollView;
|
|
137
|
+
exports.SectionList = SectionList;
|
|
138
|
+
exports.Select = Select;
|
|
139
|
+
exports.Skeleton = Skeleton;
|
|
140
|
+
exports.Slider = Slider;
|
|
141
|
+
exports.Spinner = Spinner;
|
|
142
|
+
exports.StatusBar = StatusBar;
|
|
143
|
+
exports.Switch = Switch;
|
|
144
|
+
exports.Table = Table;
|
|
145
|
+
exports.Tabs = Tabs;
|
|
146
|
+
exports.Text = Text;
|
|
147
|
+
exports.Textarea = Textarea;
|
|
148
|
+
exports.Toast = Toast;
|
|
149
|
+
exports.Tooltip = Tooltip;
|
|
150
|
+
exports.VStack = VStack;
|
|
151
|
+
exports.View = View;
|
|
152
|
+
exports.VirtualizedList = VirtualizedList;
|
|
153
|
+
exports.componentsOf = componentsOf;
|
|
154
|
+
exports.coverageOf = coverageOf;
|
|
155
|
+
exports.useComponents = useComponents;
|
|
156
|
+
//# sourceMappingURL=chunk-G3K6J5KY.js.map
|
|
157
|
+
//# sourceMappingURL=chunk-G3K6J5KY.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../components/ui/resolve.ts","../components/ui/create.tsx","../components/ui/index.ts"],"names":["flipovaComponents","UI_NAMES","useAdapter","jsx"],"mappings":";;;;;;;;AAKA,IAAM,MAAA,uBAAa,OAAA,EAAuC;AAMnD,SAAS,aAAa,OAAA,EAA+C;AAC1E,EAAA,IAAI,CAAC,OAAA,IAAW,OAAA,CAAQ,IAAA,KAAS,WAAW,OAAOA,kCAAA;AACnD,EAAA,IAAI,GAAA,GAAM,MAAA,CAAO,GAAA,CAAI,OAAO,CAAA;AAC5B,EAAA,IAAI,CAAC,GAAA,EAAK;AACR,IAAA,GAAA,GAAM,EAAE,GAAGA,kCAAA,EAAkB;AAC7B,IAAA,KAAA,MAAW,QAAQC,yBAAA,EAAU;AAC3B,MAAA,MAAM,GAAA,GAAM,OAAA,CAAQ,UAAA,CAAW,IAAI,CAAA;AACnC,MAAA,IAAI,GAAA,EAAM,GAAA,CAAgC,IAAI,CAAA,GAAI,GAAA;AAAA,IACpD;AACA,IAAA,MAAA,CAAO,GAAA,CAAI,SAAS,GAAG,CAAA;AAAA,EACzB;AACA,EAAA,OAAO,GAAA;AACT;AAUO,SAAS,WAAW,OAAA,EAAoC;AAC7D,EAAA,MAAM,MAAA,GAASA,yBAAA,CAAS,MAAA,CAAO,CAAC,CAAA,KAAM,OAAA,CAAQ,IAAA,KAAS,SAAA,IAAa,CAAC,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AACxC,IAAM,WAAA,GAAc,SAAS,aAAa;AAC1C,IAAM,MAAA,GAAS,SAAS,QAAQ;AAChC,IAAM,SAAA,GAAY,SAAS,WAAW;AACtC,IAAM,KAAA,GAAQ,SAAS,OAAO;AAC9B,IAAM,OAAA,GAAU,SAAS,SAAS;AAClC,IAAM,IAAA,GAAO,SAAS,MAAM;AAC5B,IAAM,eAAA,GAAkB,SAAS,iBAAiB;AAClD,IAAM,MAAA,GAAS,SAAS,QAAQ","file":"chunk-G3K6J5KY.js","sourcesContent":["import { UI_NAMES, type ProviderName, type UiComponents, type UiName } from '../contract';\nimport { flipovaComponents } from '../providers/flipova';\nimport { useAdapter } from '../providers/provider';\nimport type { ProviderAdapter } from '../providers/types';\n\nconst merged = new WeakMap<ProviderAdapter, UiComponents>();\n\n/**\n * Every component of the contract for one adapter: its own where it has one, flipova's otherwise. This is the\n * fallback: a library that lacks a component (or a missing provider altogether) never leaves a hole.\n */\nexport function componentsOf(adapter: ProviderAdapter | null): UiComponents {\n if (!adapter || adapter.name === 'flipova') return flipovaComponents;\n let all = merged.get(adapter);\n if (!all) {\n all = { ...flipovaComponents };\n for (const name of UI_NAMES) {\n const own = adapter.components[name];\n if (own) (all as Record<UiName, unknown>)[name] = own;\n }\n merged.set(adapter, all);\n }\n return all;\n}\n\nexport interface Coverage {\n provider: ProviderName;\n /** implemented by the library itself */\n native: UiName[];\n /** served by the flipova provider */\n fallback: UiName[];\n}\n\nexport function coverageOf(adapter: ProviderAdapter): Coverage {\n const native = UI_NAMES.filter((n) => adapter.name === 'flipova' || !!adapter.components[n]);\n return { provider: adapter.name, native, fallback: UI_NAMES.filter((n) => !native.includes(n)) };\n}\n\n/** All the components of the mounted provider, with fallback: `const { Button } = useComponents()`. */\nexport const useComponents = (): UiComponents => componentsOf(useAdapter());\n","import React from 'react';\nimport type { UiName, UiProps } from '../contract';\nimport { useAdapter } from '../providers/provider';\nimport { componentsOf } from './resolve';\n\n/** A component that renders, at each render, the one the mounted provider offers (flipova's when it has none). */\nexport function createUi<K extends UiName>(name: K) {\n const Resolved = (props: UiProps[K]) => {\n const Component = componentsOf(useAdapter())[name] as unknown as React.ComponentType<UiProps[K]>;\n return <Component {...props} />;\n };\n Resolved.displayName = `Ui.${name}`;\n return Resolved;\n}\n","/**\n * The unified components: `import { Button, Card } from '@flipova/foundation/ui'`. Each one renders the component of\n * the library chosen in <FlipovaProvider adapter={...}> with the design applied, and falls back to the flipova\n * provider when that library does not have it (or when no provider is mounted).\n */\nimport { createUi } from './create';\n\nexport const Button = createUi('Button');\nexport const Text = createUi('Text');\nexport const Heading = createUi('Heading');\nexport const Input = createUi('Input');\nexport const Textarea = createUi('Textarea');\nexport const Select = createUi('Select');\nexport const Checkbox = createUi('Checkbox');\nexport const RadioGroup = createUi('RadioGroup');\nexport const Switch = createUi('Switch');\nexport const Card = createUi('Card');\nexport const Badge = createUi('Badge');\nexport const Avatar = createUi('Avatar');\nexport const Divider = createUi('Divider');\nexport const Modal = createUi('Modal');\nexport const Tabs = createUi('Tabs');\nexport const Alert = createUi('Alert');\nexport const Toast = createUi('Toast');\nexport const Progress = createUi('Progress');\nexport const Skeleton = createUi('Skeleton');\nexport const Spinner = createUi('Spinner');\nexport const Accordion = createUi('Accordion');\nexport const ActionSheet = createUi('ActionSheet');\nexport const AlertDialog = createUi('AlertDialog');\nexport const BottomSheet = createUi('BottomSheet');\nexport const Box = createUi('Box');\nexport const Calendar = createUi('Calendar');\nexport const Center = createUi('Center');\nexport const DateTimePicker = createUi('DateTimePicker');\nexport const Drawer = createUi('Drawer');\nexport const Fab = createUi('Fab');\nexport const FlatList = createUi('FlatList');\nexport const FormControl = createUi('FormControl');\nexport const Grid = createUi('Grid');\nexport const HStack = createUi('HStack');\nexport const Icon = createUi('Icon');\nexport const Image = createUi('Image');\nexport const ImageBackground = createUi('ImageBackground');\nexport const ImageViewer = createUi('ImageViewer');\nexport const InputAccessoryView = createUi('InputAccessoryView');\nexport const KeyboardAvoidingView = createUi('KeyboardAvoidingView');\nexport const LiquidGlass = createUi('LiquidGlass');\nexport const Link = createUi('Link');\nexport const Menu = createUi('Menu');\nexport const Popover = createUi('Popover');\nexport const Portal = createUi('Portal');\nexport const Pressable = createUi('Pressable');\nexport const RefreshControl = createUi('RefreshControl');\nexport const SafeAreaView = createUi('SafeAreaView');\nexport const ScrollView = createUi('ScrollView');\nexport const SectionList = createUi('SectionList');\nexport const Slider = createUi('Slider');\nexport const StatusBar = createUi('StatusBar');\nexport const Table = createUi('Table');\nexport const Tooltip = createUi('Tooltip');\nexport const View = createUi('View');\nexport const VirtualizedList = createUi('VirtualizedList');\nexport const VStack = createUi('VStack');\n\nexport { componentsOf, coverageOf, useComponents, type Coverage } from './resolve';\nexport { FlipovaProvider, useProviderName, useResolvedTheme, type FlipovaProviderProps } from '../providers';\nexport type * from '../contract/types';\n"]}
|