@flipova/foundation 2.4.4 → 3.0.0-alpha.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGES.md +66 -0
- package/COMPONENTS.md +102 -0
- package/DOCS.md +261 -0
- package/LICENSE +1 -1
- package/README.md +169 -118
- package/components/contract/index.ts +3 -0
- package/components/contract/recipes/accordion.ts +42 -0
- package/components/contract/recipes/avatar.ts +41 -0
- package/components/contract/recipes/badge.ts +46 -0
- package/components/contract/recipes/button.ts +58 -0
- package/components/contract/recipes/calendar.ts +118 -0
- package/components/contract/recipes/card.ts +21 -0
- package/components/contract/recipes/checkbox.ts +33 -0
- package/components/contract/recipes/divider.ts +9 -0
- package/components/contract/recipes/fab.ts +31 -0
- package/components/contract/recipes/feedback.ts +66 -0
- package/components/contract/recipes/formcontrol.ts +16 -0
- package/components/contract/recipes/heading.ts +16 -0
- package/components/contract/recipes/icon.ts +40 -0
- package/components/contract/recipes/index.ts +30 -0
- package/components/contract/recipes/input.ts +39 -0
- package/components/contract/recipes/layout.ts +44 -0
- package/components/contract/recipes/link.ts +6 -0
- package/components/contract/recipes/modal.ts +40 -0
- package/components/contract/recipes/overlay.ts +250 -0
- package/components/contract/recipes/progress.ts +27 -0
- package/components/contract/recipes/radio.ts +39 -0
- package/components/contract/recipes/select.ts +63 -0
- package/components/contract/recipes/skeleton.ts +25 -0
- package/components/contract/recipes/slider.ts +50 -0
- package/components/contract/recipes/spinner.ts +12 -0
- package/components/contract/recipes/switch.ts +26 -0
- package/components/contract/recipes/table.ts +37 -0
- package/components/contract/recipes/tabs.ts +31 -0
- package/components/contract/recipes/text.ts +12 -0
- package/components/contract/recipes/textarea.ts +37 -0
- package/components/contract/recipes/util.ts +15 -0
- package/components/contract/theme.ts +116 -0
- package/components/contract/types.ts +598 -0
- package/components/providers/css-vars.ts +43 -0
- package/components/providers/flipova/components/Accordion.tsx +41 -0
- package/components/providers/flipova/components/ActionSheet.tsx +34 -0
- package/components/providers/flipova/components/Alert.tsx +15 -0
- package/components/providers/flipova/components/AlertDialog.tsx +31 -0
- package/components/providers/flipova/components/Avatar.tsx +30 -0
- package/components/providers/flipova/components/Badge.tsx +14 -0
- package/components/providers/flipova/components/BottomSheet.tsx +24 -0
- package/components/providers/flipova/components/Box.tsx +1 -0
- package/components/providers/flipova/components/Button.tsx +31 -0
- package/components/providers/flipova/components/Calendar.tsx +85 -0
- package/components/providers/flipova/components/Card.tsx +13 -0
- package/components/providers/flipova/components/Center.tsx +11 -0
- package/components/providers/flipova/components/Checkbox.tsx +24 -0
- package/components/providers/flipova/components/DateTimePicker.tsx +45 -0
- package/components/providers/flipova/components/Divider.tsx +9 -0
- package/components/providers/flipova/components/Drawer.tsx +18 -0
- package/components/providers/flipova/components/Fab.tsx +22 -0
- package/components/providers/flipova/components/FlatList.tsx +1 -0
- package/components/providers/flipova/components/FormControl.tsx +27 -0
- package/components/providers/flipova/components/Grid.tsx +18 -0
- package/components/providers/flipova/components/HStack.tsx +13 -0
- package/components/providers/flipova/components/Heading.tsx +19 -0
- package/components/providers/flipova/components/Icon.tsx +20 -0
- package/components/providers/flipova/components/Image.tsx +1 -0
- package/components/providers/flipova/components/ImageBackground.tsx +1 -0
- package/components/providers/flipova/components/ImageViewer.tsx +25 -0
- package/components/providers/flipova/components/Input.tsx +29 -0
- package/components/providers/flipova/components/InputAccessoryView.tsx +1 -0
- package/components/providers/flipova/components/KeyboardAvoidingView.tsx +1 -0
- package/components/providers/flipova/components/Link.tsx +21 -0
- package/components/providers/flipova/components/LiquidGlass.tsx +13 -0
- package/components/providers/flipova/components/Menu.tsx +43 -0
- package/components/providers/flipova/components/Modal.tsx +24 -0
- package/components/providers/flipova/components/Popover.tsx +23 -0
- package/components/providers/flipova/components/Portal.tsx +42 -0
- package/components/providers/flipova/components/Pressable.tsx +1 -0
- package/components/providers/flipova/components/Progress.tsx +22 -0
- package/components/providers/flipova/components/RadioGroup.tsx +36 -0
- package/components/providers/flipova/components/RefreshControl.tsx +1 -0
- package/components/providers/flipova/components/SafeAreaView.tsx +1 -0
- package/components/providers/flipova/components/ScrollView.tsx +1 -0
- package/components/providers/flipova/components/SectionList.tsx +1 -0
- package/components/providers/flipova/components/Select.tsx +61 -0
- package/components/providers/flipova/components/Skeleton.tsx +25 -0
- package/components/providers/flipova/components/Slider.tsx +52 -0
- package/components/providers/flipova/components/Spinner.tsx +19 -0
- package/components/providers/flipova/components/StatusBar.tsx +1 -0
- package/components/providers/flipova/components/Switch.tsx +21 -0
- package/components/providers/flipova/components/Table.tsx +33 -0
- package/components/providers/flipova/components/Tabs.tsx +39 -0
- package/components/providers/flipova/components/Text.tsx +13 -0
- package/components/providers/flipova/components/Textarea.tsx +28 -0
- package/components/providers/flipova/components/Toast.tsx +28 -0
- package/components/providers/flipova/components/Tooltip.tsx +34 -0
- package/components/providers/flipova/components/VStack.tsx +13 -0
- package/components/providers/flipova/components/View.tsx +1 -0
- package/components/providers/flipova/components/VirtualizedList.tsx +1 -0
- package/components/providers/flipova/index.tsx +189 -0
- package/components/providers/gluestack/index.tsx +226 -0
- package/components/providers/gluestack/more.tsx +151 -0
- package/components/{ui → providers/gluestack/ui}/accordion/index.tsx +2 -2
- package/components/{ui → providers/gluestack/ui}/actionsheet/index.tsx +15 -15
- package/components/{ui → providers/gluestack/ui}/alert/index.tsx +1 -1
- package/components/{ui → providers/gluestack/ui}/alert-dialog/index.tsx +3 -3
- package/components/{ui → providers/gluestack/ui}/badge/index.tsx +2 -2
- package/components/{ui → providers/gluestack/ui}/bottomsheet/index.tsx +11 -10
- package/components/{ui → providers/gluestack/ui}/box/index.tsx +4 -1
- package/components/{ui → providers/gluestack/ui}/button/index.tsx +1 -1
- package/components/{ui → providers/gluestack/ui}/calendar/index.tsx +4 -4
- package/components/{ui → providers/gluestack/ui}/card/index.tsx +1 -1
- package/components/{ui → providers/gluestack/ui}/center/index.tsx +1 -1
- package/components/{ui → providers/gluestack/ui}/checkbox/index.tsx +9 -8
- package/components/{ui → providers/gluestack/ui}/date-time-picker/index.tsx +4 -4
- package/components/providers/gluestack/ui/date-time-picker/index.web.tsx +197 -0
- package/components/{ui → providers/gluestack/ui}/divider/index.tsx +1 -1
- package/components/{ui → providers/gluestack/ui}/drawer/index.tsx +2 -2
- package/components/{ui → providers/gluestack/ui}/fab/index.tsx +1 -1
- package/components/{ui → providers/gluestack/ui}/form-control/index.tsx +3 -3
- package/components/{ui → providers/gluestack/ui}/gluestack-ui-provider/config.ts +1 -62
- package/components/{ui → providers/gluestack/ui}/gluestack-ui-provider/tokens.js +1 -1
- package/components/{ui → providers/gluestack/ui}/grid/index.tsx +3 -3
- package/components/{ui → providers/gluestack/ui}/heading/index.tsx +7 -7
- package/components/{ui → providers/gluestack/ui}/hstack/index.tsx +1 -1
- package/components/{ui → providers/gluestack/ui}/icon/index.tsx +1 -1
- package/components/{ui → providers/gluestack/ui}/image/index.tsx +0 -1
- package/components/{ui → providers/gluestack/ui}/image-viewer/index.tsx +96 -99
- package/components/providers/gluestack/ui/index.ts +58 -0
- package/components/{ui → providers/gluestack/ui}/input/index.tsx +1 -1
- package/components/{ui → providers/gluestack/ui}/link/index.tsx +2 -2
- package/components/{ui → providers/gluestack/ui}/liquid-glass/index.tsx +2 -2
- package/components/{ui → providers/gluestack/ui}/menu/index.tsx +5 -4
- package/components/{ui → providers/gluestack/ui}/modal/index.tsx +19 -17
- package/components/{ui → providers/gluestack/ui}/popover/index.tsx +4 -4
- package/components/{ui → providers/gluestack/ui}/portal/index.tsx +1 -1
- package/components/{ui → providers/gluestack/ui}/progress/index.tsx +2 -2
- package/components/{ui → providers/gluestack/ui}/radio/index.tsx +1 -1
- package/components/{ui → providers/gluestack/ui}/select/index.tsx +8 -12
- package/components/{ui → providers/gluestack/ui}/select/select-actionsheet.tsx +13 -13
- package/components/{ui → providers/gluestack/ui}/skeleton/index.tsx +2 -2
- package/components/{ui → providers/gluestack/ui}/slider/index.tsx +1 -1
- package/components/{ui → providers/gluestack/ui}/spinner/index.tsx +2 -2
- package/components/{ui → providers/gluestack/ui}/table/index.tsx +33 -33
- package/components/{ui → providers/gluestack/ui}/tabs/TabsAnimatedIndicator.tsx +1 -1
- package/components/{ui → providers/gluestack/ui}/tabs/index.tsx +2 -2
- package/components/{ui → providers/gluestack/ui}/text/index.tsx +1 -1
- package/components/{ui → providers/gluestack/ui}/toast/index.tsx +4 -4
- package/components/{ui → providers/gluestack/ui}/tooltip/index.tsx +1 -1
- package/components/{ui → providers/gluestack/ui}/vstack/index.tsx +1 -1
- package/components/providers/index.ts +2 -0
- package/components/providers/paper/index.tsx +449 -0
- package/components/providers/provider.tsx +80 -0
- package/components/providers/reusables/classes.ts +163 -0
- package/components/providers/reusables/index.tsx +289 -0
- package/components/providers/rn-base/Box.tsx +7 -0
- package/components/providers/rn-base/FlatList.tsx +16 -0
- package/components/providers/rn-base/Image.tsx +18 -0
- package/components/providers/rn-base/ImageBackground.tsx +11 -0
- package/components/providers/rn-base/InputAccessoryView.tsx +9 -0
- package/components/providers/rn-base/KeyboardAvoidingView.tsx +15 -0
- package/components/providers/rn-base/Pressable.tsx +19 -0
- package/components/providers/rn-base/RefreshControl.tsx +16 -0
- package/components/providers/rn-base/SafeAreaView.tsx +11 -0
- package/components/providers/rn-base/ScrollView.tsx +11 -0
- package/components/providers/rn-base/SectionList.tsx +22 -0
- package/components/providers/rn-base/StatusBar.tsx +17 -0
- package/components/providers/rn-base/View.tsx +7 -0
- package/components/providers/rn-base/VirtualizedList.tsx +18 -0
- package/components/providers/rn-base/index.tsx +64 -0
- package/components/providers/tamagui/index.tsx +375 -0
- package/components/providers/types.ts +17 -0
- package/components/theme/design-theme.ts +230 -0
- package/components/ui/create.tsx +14 -0
- package/components/ui/index.ts +68 -58
- package/components/ui/resolve.ts +40 -0
- package/design/canonical.index.txt +2 -16
- package/design/manifest.xml +4 -3
- package/design/schema.xsd +44 -434
- package/design/themes.xml +7 -177
- package/design/tools/{npm.js → cli.js} +173 -73
- package/design/tools/gui/index.html +998 -0
- package/design/tools/lib/check.js +533 -0
- package/design/tools/lib/contract.js +23 -0
- package/design/tools/lib/edit.js +166 -0
- package/design/tools/lib/generate.js +465 -0
- package/design/tools/lib/gui.js +614 -0
- package/design/tools/lib/lint.js +139 -0
- package/design/tools/lib/registry.js +135 -0
- package/design/tools/lib/util.js +53 -0
- package/design/tools/lib/xml.js +257 -0
- package/design/tools/lib/xsd.js +408 -0
- package/dist/chunk-2QM2ZUDS.mjs +1308 -0
- package/dist/chunk-2QM2ZUDS.mjs.map +1 -0
- package/dist/chunk-2T2TCUYF.js +1371 -0
- package/dist/chunk-2T2TCUYF.js.map +1 -0
- package/dist/chunk-6UKTC4KF.js +43 -0
- package/dist/chunk-6UKTC4KF.js.map +1 -0
- package/dist/chunk-6Z4WRTI4.mjs +37 -0
- package/dist/chunk-6Z4WRTI4.mjs.map +1 -0
- package/dist/chunk-G3K6J5KY.js +157 -0
- package/dist/chunk-G3K6J5KY.js.map +1 -0
- package/dist/chunk-GM45RCSI.mjs +96 -0
- package/dist/chunk-GM45RCSI.mjs.map +1 -0
- package/dist/chunk-GQJLHH2P.mjs +3 -0
- package/dist/chunk-GQJLHH2P.mjs.map +1 -0
- package/dist/chunk-ICNR56VP.js +1653 -0
- package/dist/chunk-ICNR56VP.js.map +1 -0
- package/dist/chunk-J5LGTIGS.mjs +9 -0
- package/dist/chunk-J5LGTIGS.mjs.map +1 -0
- package/dist/chunk-LRPZLF2K.mjs +30 -0
- package/dist/chunk-LRPZLF2K.mjs.map +1 -0
- package/dist/chunk-OC4MXNXU.js +32 -0
- package/dist/chunk-OC4MXNXU.js.map +1 -0
- package/dist/chunk-PZ5AY32C.js +11 -0
- package/dist/chunk-PZ5AY32C.js.map +1 -0
- package/dist/chunk-RWVTZUEG.js +161 -0
- package/dist/chunk-RWVTZUEG.js.map +1 -0
- package/dist/chunk-V473I5XQ.js +4 -0
- package/dist/chunk-V473I5XQ.js.map +1 -0
- package/dist/chunk-V4ULAISZ.js +915 -0
- package/dist/chunk-V4ULAISZ.js.map +1 -0
- package/dist/chunk-WRJERTJS.mjs +145 -0
- package/dist/chunk-WRJERTJS.mjs.map +1 -0
- package/dist/chunk-YIBPE3KQ.mjs +864 -0
- package/dist/chunk-YIBPE3KQ.mjs.map +1 -0
- package/dist/chunk-YUAQIZPN.mjs +1556 -0
- package/dist/chunk-YUAQIZPN.mjs.map +1 -0
- package/dist/contract/index.d.mts +304 -0
- package/dist/contract/index.d.ts +304 -0
- package/dist/contract/index.js +256 -0
- package/dist/contract/index.js.map +1 -0
- package/dist/contract/index.mjs +3 -0
- package/dist/contract/index.mjs.map +1 -0
- package/dist/index.d.mts +4 -40
- package/dist/index.d.ts +4 -40
- package/dist/index.js +73 -992
- package/dist/index.mjs +2 -1
- package/dist/providers/flipova/index.d.mts +133 -0
- package/dist/providers/flipova/index.d.ts +133 -0
- package/dist/providers/flipova/index.js +249 -0
- package/dist/providers/flipova/index.js.map +1 -0
- package/dist/providers/flipova/index.mjs +4 -0
- package/dist/providers/flipova/index.mjs.map +1 -0
- package/dist/providers/gluestack/index.d.mts +7 -0
- package/dist/providers/gluestack/index.d.ts +7 -0
- package/dist/providers/gluestack/index.js +240 -0
- package/dist/providers/gluestack/index.js.map +1 -0
- package/dist/providers/gluestack/index.mjs +238 -0
- package/dist/providers/gluestack/index.mjs.map +1 -0
- package/dist/providers/gluestack/ui/index.d.mts +3472 -0
- package/dist/providers/gluestack/ui/index.d.ts +3472 -0
- package/dist/{chunk-LCTFQJZM.js → providers/gluestack/ui/index.js} +860 -2297
- package/dist/providers/gluestack/ui/index.js.map +1 -0
- package/dist/{chunk-2R66P5X5.mjs → providers/gluestack/ui/index.mjs} +468 -2062
- package/dist/providers/gluestack/ui/index.mjs.map +1 -0
- package/dist/providers/index.d.mts +37 -0
- package/dist/providers/index.d.ts +37 -0
- package/dist/providers/index.js +28 -0
- package/dist/providers/index.js.map +1 -0
- package/dist/providers/index.mjs +3 -0
- package/dist/providers/index.mjs.map +1 -0
- package/dist/providers/paper/index.d.mts +30 -0
- package/dist/providers/paper/index.d.ts +30 -0
- package/dist/providers/paper/index.js +362 -0
- package/dist/providers/paper/index.js.map +1 -0
- package/dist/providers/paper/index.mjs +353 -0
- package/dist/providers/paper/index.mjs.map +1 -0
- package/dist/providers/reusables/index.d.mts +60 -0
- package/dist/providers/reusables/index.d.ts +60 -0
- package/dist/providers/reusables/index.js +348 -0
- package/dist/providers/reusables/index.js.map +1 -0
- package/dist/providers/reusables/index.mjs +311 -0
- package/dist/providers/reusables/index.mjs.map +1 -0
- package/dist/providers/tamagui/index.d.mts +15 -0
- package/dist/providers/tamagui/index.d.ts +15 -0
- package/dist/providers/tamagui/index.js +275 -0
- package/dist/providers/tamagui/index.js.map +1 -0
- package/dist/providers/tamagui/index.mjs +270 -0
- package/dist/providers/tamagui/index.mjs.map +1 -0
- package/dist/theme-BznFrVT1.d.mts +566 -0
- package/dist/theme-BznFrVT1.d.ts +566 -0
- package/dist/types-C7P80VKR.d.ts +22 -0
- package/dist/types-Tspvmask.d.mts +22 -0
- package/dist/ui/index.d.mts +190 -7017
- package/dist/ui/index.d.ts +190 -7017
- package/dist/ui/index.js +73 -992
- package/dist/ui/index.mjs +2 -1
- package/package.json +136 -35
- package/components/ui/date-time-picker/index.web.tsx +0 -195
- package/design/documentation.xml +0 -607
- package/design/tools/design.js +0 -188
- package/design/tools/requirements.txt +0 -35
- package/design/tools/sources/.checker/__init__.py +0 -81
- package/design/tools/sources/.checker/checks.py +0 -198
- package/design/tools/sources/.checker/cli.py +0 -154
- package/design/tools/sources/.checker/io.py +0 -242
- package/design/tools/sources/.checker/model.py +0 -144
- package/design/tools/sources/.checker/registry.py +0 -115
- package/design/tools/sources/.checker/report.py +0 -21
- package/design/tools/sources/.docgen/__init__.py +0 -45
- package/design/tools/sources/.docgen/cli.py +0 -101
- package/design/tools/sources/.docgen/model.py +0 -147
- package/design/tools/sources/.docgen/reference.py +0 -97
- package/design/tools/sources/.docgen/site.py +0 -145
- package/design/tools/sources/.docgen/xsddoc.py +0 -329
- package/design/tools/sources/.generate/__init__.py +0 -35
- package/design/tools/sources/.generate/cli.py +0 -76
- package/design/tools/sources/.generate/common.py +0 -33
- package/design/tools/sources/.generate/config.py +0 -177
- package/design/tools/sources/.generate/model.py +0 -51
- package/design/tools/sources/.generate/tokens.py +0 -141
- package/design/tools/sources/.linter/__init__.py +0 -9
- package/design/tools/sources/.linter/cli.py +0 -44
- package/design/tools/sources/.linter/discovery.py +0 -30
- package/design/tools/sources/.linter/errors.py +0 -45
- package/design/tools/sources/.linter/linter.py +0 -68
- package/design/tools/sources/.xmleditor/__init__.py +0 -74
- package/design/tools/sources/.xmleditor/blocks.py +0 -185
- package/design/tools/sources/.xmleditor/cli.py +0 -141
- package/design/tools/sources/.xmleditor/editor.py +0 -906
- package/design/tools/sources/.xmleditor/model.py +0 -708
- package/design/tools/sources/.xmleditor/widgets.py +0 -1832
- package/design/tools/sources/.xmleditor/xsdmodel.py +0 -753
- package/design/tools/sources/checker.py +0 -55
- package/design/tools/sources/docgen.py +0 -66
- package/design/tools/sources/generate.py +0 -48
- package/design/tools/sources/linter.py +0 -54
- package/design/tools/sources/ruff.toml +0 -12
- package/design/tools/sources/xmleditor.py +0 -62
- package/design/tools/unix/_venv_python.sh +0 -16
- package/design/tools/unix/check.sh +0 -13
- package/design/tools/unix/doc.sh +0 -14
- package/design/tools/unix/gen.sh +0 -14
- package/design/tools/unix/lint.sh +0 -10
- package/design/tools/unix/run.sh +0 -20
- package/design/tools/unix/verify.sh +0 -12
- package/design/tools/unix/xmledit.sh +0 -12
- package/design/tools/windows/check.cmd +0 -12
- package/design/tools/windows/doc.cmd +0 -12
- package/design/tools/windows/gen.cmd +0 -11
- package/design/tools/windows/lint.cmd +0 -9
- package/design/tools/windows/run.cmd +0 -26
- package/design/tools/windows/verify.cmd +0 -10
- package/design/tools/windows/xmledit.cmd +0 -10
- package/dist/chunk-2R66P5X5.mjs.map +0 -1
- package/dist/chunk-LCTFQJZM.js.map +0 -1
- /package/components/{ui → providers/gluestack/ui}/accordion/ANIMATION_CUSTOMIZATION.md +0 -0
- /package/components/{ui → providers/gluestack/ui}/accordion/AccordionAnimatedHeight.tsx +0 -0
- /package/components/{ui → providers/gluestack/ui}/accordion/AccordionAnimatedIcon.tsx +0 -0
- /package/components/{ui → providers/gluestack/ui}/accordion/AnimatedHeight.tsx +0 -0
- /package/components/{ui → providers/gluestack/ui}/accordion/AnimatedIcon.tsx +0 -0
- /package/components/{ui → providers/gluestack/ui}/accordion/MIGRATION_SUMMARY.md +0 -0
- /package/components/{ui → providers/gluestack/ui}/accordion/USAGE_EXAMPLE.tsx +0 -0
- /package/components/{ui → providers/gluestack/ui}/accordion/animation-config.ts +0 -0
- /package/components/{ui → providers/gluestack/ui}/avatar/index.tsx +0 -0
- /package/components/{ui → providers/gluestack/ui}/box/index.web.tsx +0 -0
- /package/components/{ui → providers/gluestack/ui}/box/styles.tsx +0 -0
- /package/components/{ui → providers/gluestack/ui}/calendar/creator.tsx +0 -0
- /package/components/{ui → providers/gluestack/ui}/calendar/styles.tsx +0 -0
- /package/components/{ui → providers/gluestack/ui}/card/index.web.tsx +0 -0
- /package/components/{ui → providers/gluestack/ui}/card/styles.tsx +0 -0
- /package/components/{ui → providers/gluestack/ui}/center/index.web.tsx +0 -0
- /package/components/{ui → providers/gluestack/ui}/center/styles.tsx +0 -0
- /package/components/{ui → providers/gluestack/ui}/date-time-picker/creator.tsx +0 -0
- /package/components/{ui → providers/gluestack/ui}/date-time-picker/styles.tsx +0 -0
- /package/components/{ui → providers/gluestack/ui}/flat-list/index.tsx +0 -0
- /package/components/{ui → providers/gluestack/ui}/gluestack-ui-provider/index.tsx +0 -0
- /package/components/{ui → providers/gluestack/ui}/gluestack-ui-provider/index.web.tsx +0 -0
- /package/components/{ui → providers/gluestack/ui}/gluestack-ui-provider/script.ts +0 -0
- /package/components/{ui → providers/gluestack/ui}/gluestack-ui-provider/theme-context.ts +0 -0
- /package/components/{ui → providers/gluestack/ui}/gluestack-ui-provider/tokens.d.ts +0 -0
- /package/components/{ui → providers/gluestack/ui}/gluestack-ui-provider/useGluestackColors.ts +0 -0
- /package/components/{ui → providers/gluestack/ui}/grid/index.web.tsx +0 -0
- /package/components/{ui → providers/gluestack/ui}/grid/styles.tsx +0 -0
- /package/components/{ui → providers/gluestack/ui}/heading/index.web.tsx +0 -0
- /package/components/{ui → providers/gluestack/ui}/heading/styles.tsx +0 -0
- /package/components/{ui → providers/gluestack/ui}/hstack/index.web.tsx +0 -0
- /package/components/{ui → providers/gluestack/ui}/hstack/styles.tsx +0 -0
- /package/components/{ui → providers/gluestack/ui}/icon/index.web.tsx +0 -0
- /package/components/{ui → providers/gluestack/ui}/image-background/index.tsx +0 -0
- /package/components/{ui → providers/gluestack/ui}/image-viewer/index.web.tsx +0 -0
- /package/components/{ui → providers/gluestack/ui}/input-accessory-view/index.tsx +0 -0
- /package/components/{ui → providers/gluestack/ui}/keyboard-avoiding-view/index.tsx +0 -0
- /package/components/{ui → providers/gluestack/ui}/pressable/index.tsx +0 -0
- /package/components/{ui → providers/gluestack/ui}/refresh-control/index.tsx +0 -0
- /package/components/{ui → providers/gluestack/ui}/safe-area-view/index.tsx +0 -0
- /package/components/{ui → providers/gluestack/ui}/scroll-view/index.tsx +0 -0
- /package/components/{ui → providers/gluestack/ui}/section-list/index.tsx +0 -0
- /package/components/{ui → providers/gluestack/ui}/skeleton/index.web.tsx +0 -0
- /package/components/{ui → providers/gluestack/ui}/skeleton/styles.tsx +0 -0
- /package/components/{ui → providers/gluestack/ui}/status-bar/index.tsx +0 -0
- /package/components/{ui → providers/gluestack/ui}/switch/index.tsx +0 -0
- /package/components/{ui → providers/gluestack/ui}/table/index.web.tsx +0 -0
- /package/components/{ui → providers/gluestack/ui}/table/styles.tsx +0 -0
- /package/components/{ui → providers/gluestack/ui}/tabs/animation-config.ts +0 -0
- /package/components/{ui → providers/gluestack/ui}/tabs/creator.tsx +0 -0
- /package/components/{ui → providers/gluestack/ui}/text/index.web.tsx +0 -0
- /package/components/{ui → providers/gluestack/ui}/text/styles.tsx +0 -0
- /package/components/{ui → providers/gluestack/ui}/textarea/index.tsx +0 -0
- /package/components/{ui → providers/gluestack/ui}/view/index.tsx +0 -0
- /package/components/{ui → providers/gluestack/ui}/virtualized-list/index.tsx +0 -0
- /package/components/{ui → providers/gluestack/ui}/vstack/index.web.tsx +0 -0
- /package/components/{ui → providers/gluestack/ui}/vstack/styles.tsx +0 -0
package/design/schema.xsd
CHANGED
|
@@ -8,90 +8,14 @@
|
|
|
8
8
|
Scope: the design pipeline has exactly ONE job: turn design/tokens.xml +
|
|
9
9
|
design/themes.xml into the gluestack-ui/nativewind theme config
|
|
10
10
|
(components/ui/gluestack-ui-provider/config.ts). This schema therefore only
|
|
11
|
-
declares the manifest (foundationRegistry)
|
|
12
|
-
(
|
|
11
|
+
declares the manifest (foundationRegistry) and the two registries
|
|
12
|
+
(tokens, themes).
|
|
13
13
|
-->
|
|
14
14
|
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" targetNamespace="urn:flipova:foundation:registry"
|
|
15
|
-
xmlns="urn:flipova:foundation:registry"
|
|
16
|
-
|
|
17
|
-
<xs:complexType name="DocArticleType">
|
|
18
|
-
<xs:annotation>
|
|
19
|
-
<xs:documentation>
|
|
20
|
-
One documentation page. `content` is the page body in Markdown: it is
|
|
21
|
-
the single source of truth for that topic -- docgen.py renders it as-is
|
|
22
|
-
(or combined with schema/registry-derived content for the
|
|
23
|
-
schema-reference/api-reference pages) and no copy of that text should
|
|
24
|
-
live anywhere else in the repository (no stray READMEs): everything is
|
|
25
|
-
centralized in documentation.xml.
|
|
26
|
-
</xs:documentation>
|
|
27
|
-
</xs:annotation>
|
|
28
|
-
<xs:sequence>
|
|
29
|
-
<xs:element name="content" type="xs:string" minOccurs="0">
|
|
30
|
-
<xs:annotation>
|
|
31
|
-
<xs:documentation>Markdown body of the article. Absent for pages generated dynamically (e.g. schema-reference) from another source of truth (schema.xsd, tokens.xml, themes.xml).</xs:documentation>
|
|
32
|
-
</xs:annotation>
|
|
33
|
-
</xs:element>
|
|
34
|
-
</xs:sequence>
|
|
35
|
-
<xs:attribute name="id" type="xs:string" use="required">
|
|
36
|
-
<xs:annotation>
|
|
37
|
-
<xs:documentation>Unique article id within documentation.xml.</xs:documentation>
|
|
38
|
-
</xs:annotation>
|
|
39
|
-
</xs:attribute>
|
|
40
|
-
<xs:attribute name="title" type="xs:string" use="required">
|
|
41
|
-
<xs:annotation>
|
|
42
|
-
<xs:documentation>Display title (page and navigation).</xs:documentation>
|
|
43
|
-
</xs:annotation>
|
|
44
|
-
</xs:attribute>
|
|
45
|
-
<xs:attribute name="slug" type="xs:string" use="required">
|
|
46
|
-
<xs:annotation>
|
|
47
|
-
<xs:documentation>Relative output path (no extension), e.g. "theming/tokens" -> docs/generated/theming/tokens.md.</xs:documentation>
|
|
48
|
-
</xs:annotation>
|
|
49
|
-
</xs:attribute>
|
|
50
|
-
</xs:complexType>
|
|
51
|
-
|
|
52
|
-
<xs:complexType name="DocSectionType">
|
|
53
|
-
<xs:annotation>
|
|
54
|
-
<xs:documentation>
|
|
55
|
-
A chapter of the generated documentation, grouping articles and
|
|
56
|
-
ordered by `order` in the navigation.
|
|
57
|
-
</xs:documentation>
|
|
58
|
-
</xs:annotation>
|
|
59
|
-
<xs:sequence>
|
|
60
|
-
<xs:element name="article" type="DocArticleType" maxOccurs="unbounded"/>
|
|
61
|
-
</xs:sequence>
|
|
62
|
-
<xs:attribute name="id" type="xs:string" use="required"/>
|
|
63
|
-
<xs:attribute name="title" type="xs:string" use="required"/>
|
|
64
|
-
<xs:attribute name="order" type="xs:integer" use="required">
|
|
65
|
-
<xs:annotation>
|
|
66
|
-
<xs:documentation>Position of the chapter in the generated navigation (ascending order).</xs:documentation>
|
|
67
|
-
</xs:annotation>
|
|
68
|
-
</xs:attribute>
|
|
69
|
-
</xs:complexType>
|
|
70
|
-
|
|
71
|
-
<xs:complexType name="DocumentationType">
|
|
72
|
-
<xs:annotation>
|
|
73
|
-
<xs:documentation>
|
|
74
|
-
Table of contents AND full content of the Flipova Foundation
|
|
75
|
-
documentation site, carried by design/documentation.xml (separated from
|
|
76
|
-
the manifest). docgen.py consumes it (plus schema.xsd for the schema
|
|
77
|
-
reference and tokens.xml/themes.xml for the registry reference) and
|
|
78
|
-
regenerates the whole site under docs/. Any documentation found
|
|
79
|
-
elsewhere in the repository (extra READMEs, introductory comments in
|
|
80
|
-
the scripts, etc.) is a duplicate to remove.
|
|
81
|
-
</xs:documentation>
|
|
82
|
-
</xs:annotation>
|
|
83
|
-
<xs:sequence>
|
|
84
|
-
<xs:element name="section" type="DocSectionType" maxOccurs="unbounded"/>
|
|
85
|
-
</xs:sequence>
|
|
86
|
-
</xs:complexType>
|
|
15
|
+
xmlns="urn:flipova:foundation:registry"
|
|
16
|
+
xmlns:r="urn:flipova:foundation:registry" elementFormDefault="qualified">
|
|
87
17
|
|
|
88
18
|
<xs:element name="foundationRegistry">
|
|
89
|
-
<xs:annotation>
|
|
90
|
-
<xs:documentation>
|
|
91
|
-
Root of the manifest. Declares the project meta, the determinism rules
|
|
92
|
-
and the registries (tokens, themes) that the pipeline compiles.
|
|
93
|
-
</xs:documentation>
|
|
94
|
-
</xs:annotation>
|
|
95
19
|
<xs:complexType>
|
|
96
20
|
<xs:sequence>
|
|
97
21
|
<xs:element name="meta" type="MetaType"/>
|
|
@@ -101,38 +25,12 @@
|
|
|
101
25
|
<xs:attribute name="schema" type="xs:string" fixed="flipova.foundation/registry/1"/>
|
|
102
26
|
</xs:complexType>
|
|
103
27
|
<xs:unique name="DeterminismRuleIdUnique">
|
|
104
|
-
<xs:selector xpath="./meta/determinism/rule"/>
|
|
28
|
+
<xs:selector xpath="./r:meta/r:determinism/r:rule"/>
|
|
105
29
|
<xs:field xpath="@id"/>
|
|
106
30
|
</xs:unique>
|
|
107
31
|
</xs:element>
|
|
108
32
|
|
|
109
|
-
<xs:element name="documentation" type="DocumentationType">
|
|
110
|
-
<xs:annotation>
|
|
111
|
-
<xs:documentation>
|
|
112
|
-
Root of design/documentation.xml, separated from the manifest: this
|
|
113
|
-
file is the SINGLE source of documentary truth of the repository.
|
|
114
|
-
</xs:documentation>
|
|
115
|
-
</xs:annotation>
|
|
116
|
-
<xs:unique name="DocSectionIdUnique">
|
|
117
|
-
<xs:selector xpath="./section"/>
|
|
118
|
-
<xs:field xpath="@id"/>
|
|
119
|
-
</xs:unique>
|
|
120
|
-
<xs:unique name="DocArticleIdUnique">
|
|
121
|
-
<xs:selector xpath="./section/article"/>
|
|
122
|
-
<xs:field xpath="@id"/>
|
|
123
|
-
</xs:unique>
|
|
124
|
-
<xs:unique name="DocArticleSlugUnique">
|
|
125
|
-
<xs:selector xpath="./section/article"/>
|
|
126
|
-
<xs:field xpath="@slug"/>
|
|
127
|
-
</xs:unique>
|
|
128
|
-
</xs:element>
|
|
129
33
|
<xs:element name="tokens">
|
|
130
|
-
<xs:annotation>
|
|
131
|
-
<xs:documentation>
|
|
132
|
-
Root of the tokens registry. Tokens are the atomic values of the
|
|
133
|
-
design system: spacing, colors, typography, shadows, animations, etc.
|
|
134
|
-
</xs:documentation>
|
|
135
|
-
</xs:annotation>
|
|
136
34
|
<xs:complexType>
|
|
137
35
|
<xs:sequence>
|
|
138
36
|
<xs:element name="items" type="TokensItemsType"/>
|
|
@@ -141,34 +39,22 @@
|
|
|
141
39
|
<xs:attribute name="register" type="xs:string" fixed="tokens"/>
|
|
142
40
|
</xs:complexType>
|
|
143
41
|
<xs:unique name="TokenIdUnique">
|
|
144
|
-
<xs:selector xpath="./items/token"/>
|
|
42
|
+
<xs:selector xpath="./r:items/r:token"/>
|
|
145
43
|
<xs:field xpath="@id"/>
|
|
146
44
|
</xs:unique>
|
|
147
45
|
</xs:element>
|
|
148
46
|
|
|
149
47
|
<xs:element name="themes">
|
|
150
|
-
<xs:annotation>
|
|
151
|
-
<xs:documentation>
|
|
152
|
-
Root of the themes registry. A theme maps semantic roles (the
|
|
153
|
-
gluestack/nativewind CSS variable names, e.g. "background",
|
|
154
|
-
"primary-foreground") to color token references, for the light/dark
|
|
155
|
-
modes and beyond.
|
|
156
|
-
</xs:documentation>
|
|
157
|
-
</xs:annotation>
|
|
158
48
|
<xs:complexType>
|
|
159
49
|
<xs:sequence>
|
|
160
50
|
<xs:element name="items" type="ThemesItemsType"/>
|
|
161
51
|
</xs:sequence>
|
|
162
52
|
<xs:attribute name="schema" type="xs:string" fixed="flipova.foundation/registry/1"/>
|
|
163
53
|
<xs:attribute name="register" type="xs:string" fixed="themes"/>
|
|
164
|
-
<xs:attribute name="default" type="xs:string" use="required"
|
|
165
|
-
<xs:annotation>
|
|
166
|
-
<xs:documentation>Id of the default theme (e.g. "light").</xs:documentation>
|
|
167
|
-
</xs:annotation>
|
|
168
|
-
</xs:attribute>
|
|
54
|
+
<xs:attribute name="default" type="xs:string" use="required"/>
|
|
169
55
|
</xs:complexType>
|
|
170
56
|
<xs:unique name="ThemeIdUnique">
|
|
171
|
-
<xs:selector xpath="./items/theme"/>
|
|
57
|
+
<xs:selector xpath="./r:items/r:theme"/>
|
|
172
58
|
<xs:field xpath="@id"/>
|
|
173
59
|
</xs:unique>
|
|
174
60
|
</xs:element>
|
|
@@ -179,87 +65,34 @@
|
|
|
179
65
|
version that is actually published). The registry never stores a copy:
|
|
180
66
|
a second copy could silently drift from the published version, which is
|
|
181
67
|
exactly what happens when `changeset version` bumps package.json only.
|
|
182
|
-
docgen.py reads package.json to stamp the documentation.
|
|
183
68
|
-->
|
|
184
69
|
<xs:complexType name="MetaType">
|
|
185
|
-
<xs:annotation>
|
|
186
|
-
<xs:documentation>
|
|
187
|
-
Registry metadata: project identity and the determinism rules of the
|
|
188
|
-
generation pipeline. The project version is NOT stored here - it is
|
|
189
|
-
owned by the root package.json.
|
|
190
|
-
</xs:documentation>
|
|
191
|
-
</xs:annotation>
|
|
192
70
|
<xs:sequence>
|
|
193
|
-
<xs:element name="project" type="xs:string"
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
</xs:element>
|
|
198
|
-
<xs:element name="license" type="xs:string">
|
|
199
|
-
<xs:annotation>
|
|
200
|
-
<xs:documentation>License (e.g. "MIT").</xs:documentation>
|
|
201
|
-
</xs:annotation>
|
|
202
|
-
</xs:element>
|
|
203
|
-
<xs:element name="language" type="xs:string">
|
|
204
|
-
<xs:annotation>
|
|
205
|
-
<xs:documentation>Default language code (e.g. "en").</xs:documentation>
|
|
206
|
-
</xs:annotation>
|
|
207
|
-
</xs:element>
|
|
208
|
-
<xs:element name="registryRoot" type="xs:string">
|
|
209
|
-
<xs:annotation>
|
|
210
|
-
<xs:documentation>Root directory of the registry files (e.g. "design").</xs:documentation>
|
|
211
|
-
</xs:annotation>
|
|
212
|
-
</xs:element>
|
|
71
|
+
<xs:element name="project" type="xs:string"/>
|
|
72
|
+
<xs:element name="license" type="xs:string"/>
|
|
73
|
+
<xs:element name="language" type="xs:string"/>
|
|
74
|
+
<xs:element name="registryRoot" type="xs:string"/>
|
|
213
75
|
<xs:element name="pipeline" type="PipelineType"/>
|
|
214
76
|
<xs:element name="determinism" type="DeterminismType"/>
|
|
215
77
|
</xs:sequence>
|
|
216
78
|
</xs:complexType>
|
|
217
79
|
|
|
218
80
|
<xs:complexType name="PipelineType">
|
|
219
|
-
<xs:annotation>
|
|
220
|
-
<xs:documentation>
|
|
221
|
-
Generation pipeline configuration: the source registry files (tokens,
|
|
222
|
-
themes) and the path of the produced gluestack-ui config file.
|
|
223
|
-
</xs:documentation>
|
|
224
|
-
</xs:annotation>
|
|
225
81
|
<xs:sequence>
|
|
226
|
-
<xs:element name="source" type="xs:string"
|
|
227
|
-
<xs:annotation>
|
|
228
|
-
<xs:documentation>Source files pattern (e.g. "design/tokens.xml, design/themes.xml").</xs:documentation>
|
|
229
|
-
</xs:annotation>
|
|
230
|
-
</xs:element>
|
|
82
|
+
<xs:element name="source" type="xs:string"/>
|
|
231
83
|
<xs:element name="outputs" type="OutputsType"/>
|
|
232
84
|
</xs:sequence>
|
|
233
85
|
</xs:complexType>
|
|
234
86
|
|
|
235
87
|
<xs:complexType name="OutputsType">
|
|
236
|
-
<xs:annotation>
|
|
237
|
-
<xs:documentation>
|
|
238
|
-
Files generated from the registries: the colour vars (themes.xml) and
|
|
239
|
-
the design-token theme fragment (tokens.xml).
|
|
240
|
-
</xs:documentation>
|
|
241
|
-
</xs:annotation>
|
|
242
88
|
<xs:sequence>
|
|
243
|
-
<xs:element name="gluestackConfig" type="xs:string" minOccurs="0"
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
</xs:annotation>
|
|
247
|
-
</xs:element>
|
|
248
|
-
<xs:element name="gluestackTokens" type="xs:string" minOccurs="0">
|
|
249
|
-
<xs:annotation>
|
|
250
|
-
<xs:documentation>Path of the Tailwind/nativewind theme fragment (CommonJS) consumed by tailwind.config.js.</xs:documentation>
|
|
251
|
-
</xs:annotation>
|
|
252
|
-
</xs:element>
|
|
89
|
+
<xs:element name="gluestackConfig" type="xs:string" minOccurs="0"/>
|
|
90
|
+
<xs:element name="gluestackTokens" type="xs:string" minOccurs="0"/>
|
|
91
|
+
<xs:element name="designTheme" type="xs:string" minOccurs="0"/>
|
|
253
92
|
</xs:sequence>
|
|
254
93
|
</xs:complexType>
|
|
255
94
|
|
|
256
95
|
<xs:simpleType name="SeverityType">
|
|
257
|
-
<xs:annotation>
|
|
258
|
-
<xs:documentation>
|
|
259
|
-
Severity of a determinism rule. "error" makes the checker fail;
|
|
260
|
-
"warning" reports without blocking.
|
|
261
|
-
</xs:documentation>
|
|
262
|
-
</xs:annotation>
|
|
263
96
|
<xs:restriction base="xs:string">
|
|
264
97
|
<xs:enumeration value="error"/>
|
|
265
98
|
<xs:enumeration value="warning"/>
|
|
@@ -267,13 +100,6 @@
|
|
|
267
100
|
</xs:simpleType>
|
|
268
101
|
|
|
269
102
|
<xs:complexType name="RuleParamType">
|
|
270
|
-
<xs:annotation>
|
|
271
|
-
<xs:documentation>
|
|
272
|
-
Free parameter of a rule (name + value), interpreted by the `kind`
|
|
273
|
-
handler in checker.py. E.g. pattern, selectors, mode. Parameters let
|
|
274
|
-
new rules be declared without touching the schema.
|
|
275
|
-
</xs:documentation>
|
|
276
|
-
</xs:annotation>
|
|
277
103
|
<xs:simpleContent>
|
|
278
104
|
<xs:extension base="xs:string">
|
|
279
105
|
<xs:attribute name="name" type="xs:string" use="required"/>
|
|
@@ -282,33 +108,10 @@
|
|
|
282
108
|
</xs:complexType>
|
|
283
109
|
|
|
284
110
|
<xs:complexType name="DeterminismRuleType">
|
|
285
|
-
<xs:annotation>
|
|
286
|
-
<xs:documentation>
|
|
287
|
-
A declarative determinism rule. The checker (checker.py) applies each
|
|
288
|
-
rule through the handler selected by `kind`. New rules can be declared
|
|
289
|
-
in the manifest without touching the schema; the matching handler is
|
|
290
|
-
resolved at runtime (a warning is emitted while no handler is
|
|
291
|
-
registered for that `kind`).
|
|
292
|
-
</xs:documentation>
|
|
293
|
-
</xs:annotation>
|
|
294
111
|
<xs:sequence>
|
|
295
|
-
<xs:element name="description" type="xs:string"
|
|
296
|
-
|
|
297
|
-
<xs:documentation>Plain-language explanation of the rule.</xs:documentation>
|
|
298
|
-
</xs:annotation>
|
|
299
|
-
</xs:element>
|
|
300
|
-
<xs:element name="applyTo" type="xs:string" minOccurs="0">
|
|
301
|
-
<xs:annotation>
|
|
302
|
-
<xs:documentation>
|
|
303
|
-
Glob (fnmatch, e.g. "*.xml") of the files the rule applies to,
|
|
304
|
-
relative to the root passed to the checker. Default: "*.xml".
|
|
305
|
-
</xs:documentation>
|
|
306
|
-
</xs:annotation>
|
|
307
|
-
</xs:element>
|
|
112
|
+
<xs:element name="description" type="xs:string"/>
|
|
113
|
+
<xs:element name="applyTo" type="xs:string" minOccurs="0"/>
|
|
308
114
|
<xs:element name="params" minOccurs="0">
|
|
309
|
-
<xs:annotation>
|
|
310
|
-
<xs:documentation>Key/value parameters of the handler.</xs:documentation>
|
|
311
|
-
</xs:annotation>
|
|
312
115
|
<xs:complexType>
|
|
313
116
|
<xs:sequence>
|
|
314
117
|
<xs:element name="param" type="RuleParamType" maxOccurs="unbounded"/>
|
|
@@ -316,149 +119,62 @@
|
|
|
316
119
|
</xs:complexType>
|
|
317
120
|
</xs:element>
|
|
318
121
|
</xs:sequence>
|
|
319
|
-
<xs:attribute name="id" type="xs:string" use="required"
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
</xs:annotation>
|
|
323
|
-
</xs:attribute>
|
|
324
|
-
<xs:attribute name="kind" type="xs:string" use="required">
|
|
325
|
-
<xs:annotation>
|
|
326
|
-
<xs:documentation>Rule nature; selects the handler in checker.py.</xs:documentation>
|
|
327
|
-
</xs:annotation>
|
|
328
|
-
</xs:attribute>
|
|
329
|
-
<xs:attribute name="severity" type="SeverityType" default="error">
|
|
330
|
-
<xs:annotation>
|
|
331
|
-
<xs:documentation>Severity: "error" (default) or "warning".</xs:documentation>
|
|
332
|
-
</xs:annotation>
|
|
333
|
-
</xs:attribute>
|
|
122
|
+
<xs:attribute name="id" type="xs:string" use="required"/>
|
|
123
|
+
<xs:attribute name="kind" type="xs:string" use="required"/>
|
|
124
|
+
<xs:attribute name="severity" type="SeverityType" default="error"/>
|
|
334
125
|
</xs:complexType>
|
|
335
126
|
|
|
336
127
|
<xs:complexType name="DeterminismType">
|
|
337
|
-
<xs:annotation>
|
|
338
|
-
<xs:documentation>
|
|
339
|
-
Rules guaranteeing a reproducible, deterministic generation. A
|
|
340
|
-
declarative, extensible list: each rule is described by a unique id, a
|
|
341
|
-
nature (kind), a severity, the targeted files (applyTo) and free
|
|
342
|
-
parameters consumed by checker.py. The order of the rules does not
|
|
343
|
-
matter: the rule's `kind` alone selects the handler.
|
|
344
|
-
</xs:documentation>
|
|
345
|
-
</xs:annotation>
|
|
346
128
|
<xs:sequence>
|
|
347
129
|
<xs:element name="rule" type="DeterminismRuleType" maxOccurs="unbounded"/>
|
|
348
130
|
</xs:sequence>
|
|
349
131
|
</xs:complexType>
|
|
350
132
|
|
|
351
133
|
<xs:complexType name="CatalogsType">
|
|
352
|
-
<xs:annotation>
|
|
353
|
-
<xs:documentation>
|
|
354
|
-
Collection of catalogs; each points to the source file of a registry
|
|
355
|
-
(tokens, themes).
|
|
356
|
-
</xs:documentation>
|
|
357
|
-
</xs:annotation>
|
|
358
134
|
<xs:sequence>
|
|
359
135
|
<xs:element name="catalog" maxOccurs="unbounded">
|
|
360
136
|
<xs:complexType>
|
|
361
137
|
<xs:sequence>
|
|
362
|
-
<xs:element name="file" type="xs:string"
|
|
363
|
-
<xs:annotation>
|
|
364
|
-
<xs:documentation>Single file holding every entry of this catalog.</xs:documentation>
|
|
365
|
-
</xs:annotation>
|
|
366
|
-
</xs:element>
|
|
138
|
+
<xs:element name="file" type="xs:string"/>
|
|
367
139
|
</xs:sequence>
|
|
368
|
-
<xs:attribute name="register" type="xs:string" use="required"
|
|
369
|
-
<xs:annotation>
|
|
370
|
-
<xs:documentation>Name of the targeted registry (must match an index/register name).</xs:documentation>
|
|
371
|
-
</xs:annotation>
|
|
372
|
-
</xs:attribute>
|
|
140
|
+
<xs:attribute name="register" type="xs:string" use="required"/>
|
|
373
141
|
</xs:complexType>
|
|
374
142
|
</xs:element>
|
|
375
143
|
</xs:sequence>
|
|
376
144
|
</xs:complexType>
|
|
377
145
|
|
|
378
146
|
<xs:complexType name="IndexType">
|
|
379
|
-
<xs:annotation>
|
|
380
|
-
<xs:documentation>
|
|
381
|
-
Index of every registry entry, for a fast lookup without walking the
|
|
382
|
-
source files.
|
|
383
|
-
</xs:documentation>
|
|
384
|
-
</xs:annotation>
|
|
385
147
|
<xs:sequence>
|
|
386
148
|
<xs:element name="register" maxOccurs="unbounded">
|
|
387
149
|
<xs:complexType>
|
|
388
150
|
<xs:sequence>
|
|
389
|
-
<xs:element name="item" type="xs:string" maxOccurs="unbounded"
|
|
390
|
-
<xs:annotation>
|
|
391
|
-
<xs:documentation>Entry id within the registry (token id or theme id).</xs:documentation>
|
|
392
|
-
</xs:annotation>
|
|
393
|
-
</xs:element>
|
|
151
|
+
<xs:element name="item" type="xs:string" maxOccurs="unbounded"/>
|
|
394
152
|
</xs:sequence>
|
|
395
|
-
<xs:attribute name="name" type="xs:string" use="required"
|
|
396
|
-
<xs:annotation>
|
|
397
|
-
<xs:documentation>Name of the indexed registry (tokens, themes).</xs:documentation>
|
|
398
|
-
</xs:annotation>
|
|
399
|
-
</xs:attribute>
|
|
153
|
+
<xs:attribute name="name" type="xs:string" use="required"/>
|
|
400
154
|
</xs:complexType>
|
|
401
155
|
</xs:element>
|
|
402
156
|
</xs:sequence>
|
|
403
157
|
</xs:complexType>
|
|
404
158
|
|
|
405
159
|
<xs:complexType name="TokensItemsType">
|
|
406
|
-
<xs:annotation>
|
|
407
|
-
<xs:documentation>Collection of token definitions.</xs:documentation>
|
|
408
|
-
</xs:annotation>
|
|
409
160
|
<xs:sequence>
|
|
410
161
|
<xs:element name="token" type="TokenType" maxOccurs="unbounded"/>
|
|
411
162
|
</xs:sequence>
|
|
412
163
|
</xs:complexType>
|
|
413
164
|
|
|
414
165
|
<xs:complexType name="TokenType">
|
|
415
|
-
<xs:annotation>
|
|
416
|
-
<xs:documentation>
|
|
417
|
-
A design token: an atomic value of the visual language.
|
|
418
|
-
Kinds: scale (numeric scale), map (named values without a scale),
|
|
419
|
-
font (families with platform variants), color (palette with shades),
|
|
420
|
-
shadow (drop shadow), animation (duration and easing).
|
|
421
|
-
</xs:documentation>
|
|
422
|
-
</xs:annotation>
|
|
423
166
|
<xs:sequence>
|
|
424
167
|
<xs:element name="values" type="TokenValuesType"/>
|
|
425
168
|
</xs:sequence>
|
|
426
|
-
<xs:attribute name="id" type="xs:string" use="required"
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
<xs:attribute name="
|
|
432
|
-
<xs:annotation>
|
|
433
|
-
<xs:documentation>Token classification.</xs:documentation>
|
|
434
|
-
</xs:annotation>
|
|
435
|
-
</xs:attribute>
|
|
436
|
-
<xs:attribute name="unit" type="xs:string" use="optional">
|
|
437
|
-
<xs:annotation>
|
|
438
|
-
<xs:documentation>Unit of measure (e.g. "px", "ms").</xs:documentation>
|
|
439
|
-
</xs:annotation>
|
|
440
|
-
</xs:attribute>
|
|
441
|
-
<xs:attribute name="base" type="xs:string" use="optional">
|
|
442
|
-
<xs:annotation>
|
|
443
|
-
<xs:documentation>Base value for computed scales.</xs:documentation>
|
|
444
|
-
</xs:annotation>
|
|
445
|
-
</xs:attribute>
|
|
446
|
-
<xs:attribute name="formula" type="xs:string" use="optional">
|
|
447
|
-
<xs:annotation>
|
|
448
|
-
<xs:documentation>Formula used to compute the scale values.</xs:documentation>
|
|
449
|
-
</xs:annotation>
|
|
450
|
-
</xs:attribute>
|
|
451
|
-
<xs:attribute name="mode" type="xs:string" use="optional">
|
|
452
|
-
<xs:annotation>
|
|
453
|
-
<xs:documentation>Mode for breakpoints (e.g. "min-width").</xs:documentation>
|
|
454
|
-
</xs:annotation>
|
|
455
|
-
</xs:attribute>
|
|
169
|
+
<xs:attribute name="id" type="xs:string" use="required"/>
|
|
170
|
+
<xs:attribute name="kind" type="TokenKindType" use="required"/>
|
|
171
|
+
<xs:attribute name="unit" type="xs:string" use="optional"/>
|
|
172
|
+
<xs:attribute name="base" type="xs:string" use="optional"/>
|
|
173
|
+
<xs:attribute name="formula" type="xs:string" use="optional"/>
|
|
174
|
+
<xs:attribute name="mode" type="xs:string" use="optional"/>
|
|
456
175
|
</xs:complexType>
|
|
457
176
|
|
|
458
177
|
<xs:simpleType name="TokenKindType">
|
|
459
|
-
<xs:annotation>
|
|
460
|
-
<xs:documentation>The six token natures recognized by the pipeline.</xs:documentation>
|
|
461
|
-
</xs:annotation>
|
|
462
178
|
<xs:restriction base="xs:string">
|
|
463
179
|
<xs:enumeration value="scale"/>
|
|
464
180
|
<xs:enumeration value="map"/>
|
|
@@ -476,70 +192,22 @@
|
|
|
476
192
|
</xs:complexType>
|
|
477
193
|
|
|
478
194
|
<xs:complexType name="TokenValueType" mixed="true">
|
|
479
|
-
<xs:annotation>
|
|
480
|
-
<xs:documentation>
|
|
481
|
-
A token value. Shapes observed in the registries (the XSD accepts them
|
|
482
|
-
all through mixed content; mutual exclusivity is enforced by the
|
|
483
|
-
generator):
|
|
484
|
-
- scalar: plain text content (e.g. "0") or a lone `value` attribute
|
|
485
|
-
(e.g. spacing, opacity, color);
|
|
486
|
-
- cross-platform: `native`/`web` children (e.g. font);
|
|
487
|
-
- structured variant: `native` holding `v`, damping/stiffness/mass
|
|
488
|
-
(e.g. easing);
|
|
489
|
-
- shadow: `color`/`offset`/`opacity`/`radius`/`elevation` children.
|
|
490
|
-
</xs:documentation>
|
|
491
|
-
</xs:annotation>
|
|
492
195
|
<xs:choice minOccurs="0" maxOccurs="unbounded">
|
|
493
|
-
<xs:element name="native" type="NativeVariantType"
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
</xs:element>
|
|
498
|
-
<xs:element name="web" type="xs:string">
|
|
499
|
-
<xs:annotation>
|
|
500
|
-
<xs:documentation>Web variant.</xs:documentation>
|
|
501
|
-
</xs:annotation>
|
|
502
|
-
</xs:element>
|
|
503
|
-
<xs:element name="color" type="ColorRefType">
|
|
504
|
-
<xs:annotation>
|
|
505
|
-
<xs:documentation>Colour of a shadow, by reference.</xs:documentation>
|
|
506
|
-
</xs:annotation>
|
|
507
|
-
</xs:element>
|
|
508
|
-
<xs:element name="offset" type="OffsetType">
|
|
509
|
-
<xs:annotation>
|
|
510
|
-
<xs:documentation>Offset of a shadow.</xs:documentation>
|
|
511
|
-
</xs:annotation>
|
|
512
|
-
</xs:element>
|
|
196
|
+
<xs:element name="native" type="NativeVariantType"/>
|
|
197
|
+
<xs:element name="web" type="xs:string"/>
|
|
198
|
+
<xs:element name="color" type="ColorRefType"/>
|
|
199
|
+
<xs:element name="offset" type="OffsetType"/>
|
|
513
200
|
<xs:element name="opacity" type="xs:string"/>
|
|
514
201
|
<xs:element name="radius" type="xs:string"/>
|
|
515
202
|
<xs:element name="elevation" type="xs:string"/>
|
|
516
203
|
</xs:choice>
|
|
517
|
-
<xs:attribute name="id" type="xs:string" use="required"
|
|
518
|
-
|
|
519
|
-
<xs:documentation>Value id within the token.</xs:documentation>
|
|
520
|
-
</xs:annotation>
|
|
521
|
-
</xs:attribute>
|
|
522
|
-
<xs:attribute name="value" type="xs:string" use="optional">
|
|
523
|
-
<xs:annotation>
|
|
524
|
-
<xs:documentation>Direct scalar value (attribute form, alternative to text content).</xs:documentation>
|
|
525
|
-
</xs:annotation>
|
|
526
|
-
</xs:attribute>
|
|
204
|
+
<xs:attribute name="id" type="xs:string" use="required"/>
|
|
205
|
+
<xs:attribute name="value" type="xs:string" use="optional"/>
|
|
527
206
|
</xs:complexType>
|
|
528
207
|
|
|
529
208
|
<xs:complexType name="NativeVariantType" mixed="true">
|
|
530
|
-
<xs:annotation>
|
|
531
|
-
<xs:documentation>
|
|
532
|
-
React Native platform variant. Either a plain string (e.g. "system",
|
|
533
|
-
"monospace") or a list of named values (e.g. '<v>' for a cubic
|
|
534
|
-
easing, or damping/stiffness/mass for a spring).
|
|
535
|
-
</xs:documentation>
|
|
536
|
-
</xs:annotation>
|
|
537
209
|
<xs:choice minOccurs="0" maxOccurs="unbounded">
|
|
538
|
-
<xs:element name="v" type="xs:string"
|
|
539
|
-
<xs:annotation>
|
|
540
|
-
<xs:documentation>Numeric component of a variant (e.g. easing).</xs:documentation>
|
|
541
|
-
</xs:annotation>
|
|
542
|
-
</xs:element>
|
|
210
|
+
<xs:element name="v" type="xs:string"/>
|
|
543
211
|
<xs:element name="damping" type="xs:string"/>
|
|
544
212
|
<xs:element name="stiffness" type="xs:string"/>
|
|
545
213
|
<xs:element name="mass" type="xs:string"/>
|
|
@@ -547,18 +215,12 @@
|
|
|
547
215
|
</xs:complexType>
|
|
548
216
|
|
|
549
217
|
<xs:complexType name="ColorRefType">
|
|
550
|
-
<xs:annotation>
|
|
551
|
-
<xs:documentation>Reference to a colour token value (format "$ref.<register>.<id>.<path>").</xs:documentation>
|
|
552
|
-
</xs:annotation>
|
|
553
218
|
<xs:sequence>
|
|
554
219
|
<xs:element name="ref" type="xs:string"/>
|
|
555
220
|
</xs:sequence>
|
|
556
221
|
</xs:complexType>
|
|
557
222
|
|
|
558
223
|
<xs:complexType name="OffsetType">
|
|
559
|
-
<xs:annotation>
|
|
560
|
-
<xs:documentation>Shadow offset (x, y).</xs:documentation>
|
|
561
|
-
</xs:annotation>
|
|
562
224
|
<xs:sequence>
|
|
563
225
|
<xs:element name="x" type="xs:string"/>
|
|
564
226
|
<xs:element name="y" type="xs:string"/>
|
|
@@ -566,77 +228,29 @@
|
|
|
566
228
|
</xs:complexType>
|
|
567
229
|
|
|
568
230
|
<xs:complexType name="ThemesItemsType">
|
|
569
|
-
<xs:annotation>
|
|
570
|
-
<xs:documentation>Collection of theme definitions.</xs:documentation>
|
|
571
|
-
</xs:annotation>
|
|
572
231
|
<xs:sequence>
|
|
573
232
|
<xs:element name="theme" type="ThemeType" maxOccurs="unbounded"/>
|
|
574
233
|
</xs:sequence>
|
|
575
234
|
</xs:complexType>
|
|
576
235
|
|
|
577
236
|
<xs:complexType name="ThemeType">
|
|
578
|
-
<xs:annotation>
|
|
579
|
-
<xs:documentation>
|
|
580
|
-
A theme: maps semantic roles to colour token references, for a coherent
|
|
581
|
-
application across modes.
|
|
582
|
-
</xs:documentation>
|
|
583
|
-
</xs:annotation>
|
|
584
237
|
<xs:sequence>
|
|
585
238
|
<xs:element name="roleMap" type="RoleMapType"/>
|
|
586
239
|
</xs:sequence>
|
|
587
|
-
<xs:attribute name="id" type="xs:string" use="required"
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
</xs:annotation>
|
|
591
|
-
</xs:attribute>
|
|
592
|
-
<xs:attribute name="mode" type="xs:string" use="required">
|
|
593
|
-
<xs:annotation>
|
|
594
|
-
<xs:documentation>Theme mode (e.g. "light", "dark").</xs:documentation>
|
|
595
|
-
</xs:annotation>
|
|
596
|
-
</xs:attribute>
|
|
597
|
-
<xs:attribute name="variant" type="xs:string" use="optional">
|
|
598
|
-
<xs:annotation>
|
|
599
|
-
<xs:documentation>
|
|
600
|
-
Variant this theme belongs to (e.g. "default", "spring"). A variant is a
|
|
601
|
-
coherent light/dark PAIR, so a themed product can offer several palettes
|
|
602
|
-
("spring-light"/"spring-dark", "autumn-light"/"autumn-dark") that all
|
|
603
|
-
respond to the same light/dark mode. Defaults to "default" when absent,
|
|
604
|
-
which keeps the bare "light"/"dark" ids working unchanged.
|
|
605
|
-
</xs:documentation>
|
|
606
|
-
</xs:annotation>
|
|
607
|
-
</xs:attribute>
|
|
240
|
+
<xs:attribute name="id" type="xs:string" use="required"/>
|
|
241
|
+
<xs:attribute name="mode" type="xs:string" use="required"/>
|
|
242
|
+
<xs:attribute name="variant" type="xs:string" use="optional"/>
|
|
608
243
|
</xs:complexType>
|
|
609
244
|
|
|
610
245
|
<xs:complexType name="RoleMapType">
|
|
611
|
-
<xs:annotation>
|
|
612
|
-
<xs:documentation>Maps semantic roles (the gluestack/nativewind CSS variable names) to a literal colour value or a token reference.</xs:documentation>
|
|
613
|
-
</xs:annotation>
|
|
614
246
|
<xs:sequence>
|
|
615
247
|
<xs:element name="role" maxOccurs="unbounded">
|
|
616
248
|
<xs:complexType>
|
|
617
249
|
<xs:choice>
|
|
618
|
-
<xs:element name="value" type="xs:string"
|
|
619
|
-
|
|
620
|
-
<xs:documentation>
|
|
621
|
-
Literal value in the format expected by gluestack-ui/nativewind
|
|
622
|
-
(RGB triplet without the "rgb()" function, e.g. "23 23 23").
|
|
623
|
-
</xs:documentation>
|
|
624
|
-
</xs:annotation>
|
|
625
|
-
</xs:element>
|
|
626
|
-
<xs:element name="ref" type="xs:string">
|
|
627
|
-
<xs:annotation>
|
|
628
|
-
<xs:documentation>
|
|
629
|
-
Reference to a token value (format
|
|
630
|
-
"$ref.<register>.<id>.<path>").
|
|
631
|
-
</xs:documentation>
|
|
632
|
-
</xs:annotation>
|
|
633
|
-
</xs:element>
|
|
250
|
+
<xs:element name="value" type="xs:string"/>
|
|
251
|
+
<xs:element name="ref" type="xs:string"/>
|
|
634
252
|
</xs:choice>
|
|
635
|
-
<xs:attribute name="id" type="xs:string" use="required"
|
|
636
|
-
<xs:annotation>
|
|
637
|
-
<xs:documentation>Semantic role id = gluestack CSS variable name without the leading "--" (e.g. "background", "primary-foreground").</xs:documentation>
|
|
638
|
-
</xs:annotation>
|
|
639
|
-
</xs:attribute>
|
|
253
|
+
<xs:attribute name="id" type="xs:string" use="required"/>
|
|
640
254
|
</xs:complexType>
|
|
641
255
|
</xs:element>
|
|
642
256
|
</xs:sequence>
|
|
@@ -644,7 +258,3 @@
|
|
|
644
258
|
|
|
645
259
|
</xs:schema>
|
|
646
260
|
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|