pixelize-native-library 1.0.6
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/README.md +34 -0
- package/lib/module/core/MODULE.md +94 -0
- package/lib/module/core/a11y/MODULE.md +22 -0
- package/lib/module/core/a11y/index.js +26 -0
- package/lib/module/core/a11y/index.js.map +1 -0
- package/lib/module/core/icon/MODULE.md +35 -0
- package/lib/module/core/icon/index.js +92 -0
- package/lib/module/core/icon/index.js.map +1 -0
- package/lib/module/core/style/index.js +4 -0
- package/lib/module/core/style/index.js.map +1 -0
- package/lib/module/core/style/layoutStyle.js +4 -0
- package/lib/module/core/style/layoutStyle.js.map +1 -0
- package/lib/module/core/style/variants.js +115 -0
- package/lib/module/core/style/variants.js.map +1 -0
- package/lib/module/index.js +13 -0
- package/lib/module/index.js.map +1 -0
- package/lib/module/modules/accordion/Accordion.js +194 -0
- package/lib/module/modules/accordion/Accordion.js.map +1 -0
- package/lib/module/modules/accordion/Accordion.variants.js +143 -0
- package/lib/module/modules/accordion/Accordion.variants.js.map +1 -0
- package/lib/module/modules/accordion/MODULE.md +97 -0
- package/lib/module/modules/accordion/index.js +10 -0
- package/lib/module/modules/accordion/index.js.map +1 -0
- package/lib/module/modules/alert-dialog/AlertDialog.js +62 -0
- package/lib/module/modules/alert-dialog/AlertDialog.js.map +1 -0
- package/lib/module/modules/alert-dialog/AlertDialog.variants.js +44 -0
- package/lib/module/modules/alert-dialog/AlertDialog.variants.js.map +1 -0
- package/lib/module/modules/alert-dialog/MODULE.md +81 -0
- package/lib/module/modules/alert-dialog/index.js +10 -0
- package/lib/module/modules/alert-dialog/index.js.map +1 -0
- package/lib/module/modules/avatar/Avatar.js +57 -0
- package/lib/module/modules/avatar/Avatar.js.map +1 -0
- package/lib/module/modules/avatar/Avatar.variants.js +127 -0
- package/lib/module/modules/avatar/Avatar.variants.js.map +1 -0
- package/lib/module/modules/avatar/MODULE.md +76 -0
- package/lib/module/modules/avatar/index.js +12 -0
- package/lib/module/modules/avatar/index.js.map +1 -0
- package/lib/module/modules/badge/Badge.js +56 -0
- package/lib/module/modules/badge/Badge.js.map +1 -0
- package/lib/module/modules/badge/Badge.variants.js +124 -0
- package/lib/module/modules/badge/Badge.variants.js.map +1 -0
- package/lib/module/modules/badge/MODULE.md +82 -0
- package/lib/module/modules/badge/index.js +12 -0
- package/lib/module/modules/badge/index.js.map +1 -0
- package/lib/module/modules/bottom-nav/BottomNav.js +257 -0
- package/lib/module/modules/bottom-nav/BottomNav.js.map +1 -0
- package/lib/module/modules/bottom-nav/BottomNav.search.js +153 -0
- package/lib/module/modules/bottom-nav/BottomNav.search.js.map +1 -0
- package/lib/module/modules/bottom-nav/BottomNav.variants.js +164 -0
- package/lib/module/modules/bottom-nav/BottomNav.variants.js.map +1 -0
- package/lib/module/modules/bottom-nav/BottomNavOverflowSheet.js +297 -0
- package/lib/module/modules/bottom-nav/BottomNavOverflowSheet.js.map +1 -0
- package/lib/module/modules/bottom-nav/MODULE.md +198 -0
- package/lib/module/modules/bottom-nav/index.js +16 -0
- package/lib/module/modules/bottom-nav/index.js.map +1 -0
- package/lib/module/modules/button/Button.js +173 -0
- package/lib/module/modules/button/Button.js.map +1 -0
- package/lib/module/modules/button/Button.variants.js +173 -0
- package/lib/module/modules/button/Button.variants.js.map +1 -0
- package/lib/module/modules/button/MODULE.md +87 -0
- package/lib/module/modules/button/index.js +12 -0
- package/lib/module/modules/button/index.js.map +1 -0
- package/lib/module/modules/button-group/ButtonGroup.js +106 -0
- package/lib/module/modules/button-group/ButtonGroup.js.map +1 -0
- package/lib/module/modules/button-group/ButtonGroup.variants.js +220 -0
- package/lib/module/modules/button-group/ButtonGroup.variants.js.map +1 -0
- package/lib/module/modules/button-group/MODULE.md +129 -0
- package/lib/module/modules/button-group/index.js +11 -0
- package/lib/module/modules/button-group/index.js.map +1 -0
- package/lib/module/modules/card/Card.js +39 -0
- package/lib/module/modules/card/Card.js.map +1 -0
- package/lib/module/modules/card/Card.variants.js +75 -0
- package/lib/module/modules/card/Card.variants.js.map +1 -0
- package/lib/module/modules/card/MODULE.md +81 -0
- package/lib/module/modules/card/index.js +10 -0
- package/lib/module/modules/card/index.js.map +1 -0
- package/lib/module/modules/checkbox/Checkbox.js +115 -0
- package/lib/module/modules/checkbox/Checkbox.js.map +1 -0
- package/lib/module/modules/checkbox/Checkbox.variants.js +122 -0
- package/lib/module/modules/checkbox/Checkbox.variants.js.map +1 -0
- package/lib/module/modules/checkbox/MODULE.md +76 -0
- package/lib/module/modules/checkbox/index.js +11 -0
- package/lib/module/modules/checkbox/index.js.map +1 -0
- package/lib/module/modules/divider/Divider.js +35 -0
- package/lib/module/modules/divider/Divider.js.map +1 -0
- package/lib/module/modules/divider/Divider.variants.js +51 -0
- package/lib/module/modules/divider/Divider.variants.js.map +1 -0
- package/lib/module/modules/divider/MODULE.md +61 -0
- package/lib/module/modules/divider/index.js +10 -0
- package/lib/module/modules/divider/index.js.map +1 -0
- package/lib/module/modules/drawer/Drawer.js +171 -0
- package/lib/module/modules/drawer/Drawer.js.map +1 -0
- package/lib/module/modules/drawer/Drawer.variants.js +118 -0
- package/lib/module/modules/drawer/Drawer.variants.js.map +1 -0
- package/lib/module/modules/drawer/MODULE.md +161 -0
- package/lib/module/modules/drawer/index.js +10 -0
- package/lib/module/modules/drawer/index.js.map +1 -0
- package/lib/module/modules/empty-state/EmptyState.js +79 -0
- package/lib/module/modules/empty-state/EmptyState.js.map +1 -0
- package/lib/module/modules/empty-state/EmptyState.variants.js +54 -0
- package/lib/module/modules/empty-state/EmptyState.variants.js.map +1 -0
- package/lib/module/modules/empty-state/MODULE.md +78 -0
- package/lib/module/modules/empty-state/index.js +13 -0
- package/lib/module/modules/empty-state/index.js.map +1 -0
- package/lib/module/modules/file-upload/FileUpload.js +132 -0
- package/lib/module/modules/file-upload/FileUpload.js.map +1 -0
- package/lib/module/modules/file-upload/FileUpload.variants.js +179 -0
- package/lib/module/modules/file-upload/FileUpload.variants.js.map +1 -0
- package/lib/module/modules/file-upload/MODULE.md +130 -0
- package/lib/module/modules/file-upload/index.js +10 -0
- package/lib/module/modules/file-upload/index.js.map +1 -0
- package/lib/module/modules/filter-sheet/FilterChip.js +79 -0
- package/lib/module/modules/filter-sheet/FilterChip.js.map +1 -0
- package/lib/module/modules/filter-sheet/FilterSheet.js +98 -0
- package/lib/module/modules/filter-sheet/FilterSheet.js.map +1 -0
- package/lib/module/modules/filter-sheet/FilterSheet.variants.js +156 -0
- package/lib/module/modules/filter-sheet/FilterSheet.variants.js.map +1 -0
- package/lib/module/modules/filter-sheet/FilterSheetBody.js +175 -0
- package/lib/module/modules/filter-sheet/FilterSheetBody.js.map +1 -0
- package/lib/module/modules/filter-sheet/MODULE.md +115 -0
- package/lib/module/modules/filter-sheet/filterSheet.helpers.js +90 -0
- package/lib/module/modules/filter-sheet/filterSheet.helpers.js.map +1 -0
- package/lib/module/modules/filter-sheet/index.js +14 -0
- package/lib/module/modules/filter-sheet/index.js.map +1 -0
- package/lib/module/modules/input/Input.js +132 -0
- package/lib/module/modules/input/Input.js.map +1 -0
- package/lib/module/modules/input/Input.variants.js +122 -0
- package/lib/module/modules/input/Input.variants.js.map +1 -0
- package/lib/module/modules/input/MODULE.md +97 -0
- package/lib/module/modules/input/index.js +13 -0
- package/lib/module/modules/input/index.js.map +1 -0
- package/lib/module/modules/menu/MODULE.md +103 -0
- package/lib/module/modules/menu/Menu.js +128 -0
- package/lib/module/modules/menu/Menu.js.map +1 -0
- package/lib/module/modules/menu/Menu.variants.js +75 -0
- package/lib/module/modules/menu/Menu.variants.js.map +1 -0
- package/lib/module/modules/menu/index.js +12 -0
- package/lib/module/modules/menu/index.js.map +1 -0
- package/lib/module/modules/modal/MODULE.md +138 -0
- package/lib/module/modules/modal/Modal.js +101 -0
- package/lib/module/modules/modal/Modal.js.map +1 -0
- package/lib/module/modules/modal/Modal.variants.js +92 -0
- package/lib/module/modules/modal/Modal.variants.js.map +1 -0
- package/lib/module/modules/modal/ModalPortalContext.js +25 -0
- package/lib/module/modules/modal/ModalPortalContext.js.map +1 -0
- package/lib/module/modules/modal/ModalPortalProvider.js +22 -0
- package/lib/module/modules/modal/ModalPortalProvider.js.map +1 -0
- package/lib/module/modules/modal/index.js +16 -0
- package/lib/module/modules/modal/index.js.map +1 -0
- package/lib/module/modules/modal/renderWebPortal.js +18 -0
- package/lib/module/modules/modal/renderWebPortal.js.map +1 -0
- package/lib/module/modules/modal/renderWebPortal.web.js +24 -0
- package/lib/module/modules/modal/renderWebPortal.web.js.map +1 -0
- package/lib/module/modules/multi-select/MODULE.md +100 -0
- package/lib/module/modules/multi-select/MultiSelect.js +204 -0
- package/lib/module/modules/multi-select/MultiSelect.js.map +1 -0
- package/lib/module/modules/multi-select/MultiSelect.variants.js +195 -0
- package/lib/module/modules/multi-select/MultiSelect.variants.js.map +1 -0
- package/lib/module/modules/multi-select/index.js +11 -0
- package/lib/module/modules/multi-select/index.js.map +1 -0
- package/lib/module/modules/number-input/MODULE.md +108 -0
- package/lib/module/modules/number-input/NumberInput.js +253 -0
- package/lib/module/modules/number-input/NumberInput.js.map +1 -0
- package/lib/module/modules/number-input/NumberInput.variants.js +200 -0
- package/lib/module/modules/number-input/NumberInput.variants.js.map +1 -0
- package/lib/module/modules/number-input/index.js +12 -0
- package/lib/module/modules/number-input/index.js.map +1 -0
- package/lib/module/modules/pin-input/MODULE.md +134 -0
- package/lib/module/modules/pin-input/PinInput.js +158 -0
- package/lib/module/modules/pin-input/PinInput.js.map +1 -0
- package/lib/module/modules/pin-input/PinInput.variants.js +183 -0
- package/lib/module/modules/pin-input/PinInput.variants.js.map +1 -0
- package/lib/module/modules/pin-input/index.js +11 -0
- package/lib/module/modules/pin-input/index.js.map +1 -0
- package/lib/module/modules/progress-bar/MODULE.md +101 -0
- package/lib/module/modules/progress-bar/ProgressBar.js +102 -0
- package/lib/module/modules/progress-bar/ProgressBar.js.map +1 -0
- package/lib/module/modules/progress-bar/ProgressBar.variants.js +151 -0
- package/lib/module/modules/progress-bar/ProgressBar.variants.js.map +1 -0
- package/lib/module/modules/progress-bar/index.js +12 -0
- package/lib/module/modules/progress-bar/index.js.map +1 -0
- package/lib/module/modules/radio-group/MODULE.md +75 -0
- package/lib/module/modules/radio-group/RadioGroup.js +87 -0
- package/lib/module/modules/radio-group/RadioGroup.js.map +1 -0
- package/lib/module/modules/radio-group/RadioGroup.variants.js +163 -0
- package/lib/module/modules/radio-group/RadioGroup.variants.js.map +1 -0
- package/lib/module/modules/radio-group/index.js +11 -0
- package/lib/module/modules/radio-group/index.js.map +1 -0
- package/lib/module/modules/reorder/MODULE.md +131 -0
- package/lib/module/modules/reorder/Reorder.js +291 -0
- package/lib/module/modules/reorder/Reorder.js.map +1 -0
- package/lib/module/modules/reorder/Reorder.variants.js +172 -0
- package/lib/module/modules/reorder/Reorder.variants.js.map +1 -0
- package/lib/module/modules/reorder/index.js +11 -0
- package/lib/module/modules/reorder/index.js.map +1 -0
- package/lib/module/modules/select/MODULE.md +91 -0
- package/lib/module/modules/select/Select.js +178 -0
- package/lib/module/modules/select/Select.js.map +1 -0
- package/lib/module/modules/select/Select.variants.js +146 -0
- package/lib/module/modules/select/Select.variants.js.map +1 -0
- package/lib/module/modules/select/index.js +10 -0
- package/lib/module/modules/select/index.js.map +1 -0
- package/lib/module/modules/skeleton/MODULE.md +87 -0
- package/lib/module/modules/skeleton/Skeleton.js +78 -0
- package/lib/module/modules/skeleton/Skeleton.js.map +1 -0
- package/lib/module/modules/skeleton/Skeleton.variants.js +145 -0
- package/lib/module/modules/skeleton/Skeleton.variants.js.map +1 -0
- package/lib/module/modules/skeleton/index.js +10 -0
- package/lib/module/modules/skeleton/index.js.map +1 -0
- package/lib/module/modules/slider/MODULE.md +95 -0
- package/lib/module/modules/slider/Slider.js +183 -0
- package/lib/module/modules/slider/Slider.js.map +1 -0
- package/lib/module/modules/slider/Slider.variants.js +258 -0
- package/lib/module/modules/slider/Slider.variants.js.map +1 -0
- package/lib/module/modules/slider/index.js +10 -0
- package/lib/module/modules/slider/index.js.map +1 -0
- package/lib/module/modules/spinner/MODULE.md +97 -0
- package/lib/module/modules/spinner/Spinner.js +58 -0
- package/lib/module/modules/spinner/Spinner.js.map +1 -0
- package/lib/module/modules/spinner/Spinner.variants.js +131 -0
- package/lib/module/modules/spinner/Spinner.variants.js.map +1 -0
- package/lib/module/modules/spinner/index.js +11 -0
- package/lib/module/modules/spinner/index.js.map +1 -0
- package/lib/module/modules/stepper/MODULE.md +88 -0
- package/lib/module/modules/stepper/Stepper.js +100 -0
- package/lib/module/modules/stepper/Stepper.js.map +1 -0
- package/lib/module/modules/stepper/Stepper.variants.js +146 -0
- package/lib/module/modules/stepper/Stepper.variants.js.map +1 -0
- package/lib/module/modules/stepper/index.js +10 -0
- package/lib/module/modules/stepper/index.js.map +1 -0
- package/lib/module/modules/switch/MODULE.md +65 -0
- package/lib/module/modules/switch/Switch.js +53 -0
- package/lib/module/modules/switch/Switch.js.map +1 -0
- package/lib/module/modules/switch/Switch.variants.js +61 -0
- package/lib/module/modules/switch/Switch.variants.js.map +1 -0
- package/lib/module/modules/switch/index.js +10 -0
- package/lib/module/modules/switch/index.js.map +1 -0
- package/lib/module/modules/tabs/MODULE.md +80 -0
- package/lib/module/modules/tabs/Tabs.js +127 -0
- package/lib/module/modules/tabs/Tabs.js.map +1 -0
- package/lib/module/modules/tabs/Tabs.variants.js +135 -0
- package/lib/module/modules/tabs/Tabs.variants.js.map +1 -0
- package/lib/module/modules/tabs/index.js +12 -0
- package/lib/module/modules/tabs/index.js.map +1 -0
- package/lib/module/modules/textarea/MODULE.md +91 -0
- package/lib/module/modules/textarea/Textarea.js +136 -0
- package/lib/module/modules/textarea/Textarea.js.map +1 -0
- package/lib/module/modules/textarea/Textarea.variants.js +113 -0
- package/lib/module/modules/textarea/Textarea.variants.js.map +1 -0
- package/lib/module/modules/textarea/index.js +10 -0
- package/lib/module/modules/textarea/index.js.map +1 -0
- package/lib/module/modules/timeline/MODULE.md +95 -0
- package/lib/module/modules/timeline/Timeline.js +92 -0
- package/lib/module/modules/timeline/Timeline.js.map +1 -0
- package/lib/module/modules/timeline/Timeline.variants.js +146 -0
- package/lib/module/modules/timeline/Timeline.variants.js.map +1 -0
- package/lib/module/modules/timeline/index.js +12 -0
- package/lib/module/modules/timeline/index.js.map +1 -0
- package/lib/module/modules/toast/MODULE.md +104 -0
- package/lib/module/modules/toast/Toast.js +178 -0
- package/lib/module/modules/toast/Toast.js.map +1 -0
- package/lib/module/modules/toast/Toast.variants.js +120 -0
- package/lib/module/modules/toast/Toast.variants.js.map +1 -0
- package/lib/module/modules/toast/index.js +13 -0
- package/lib/module/modules/toast/index.js.map +1 -0
- package/lib/module/modules/tooltip/MODULE.md +86 -0
- package/lib/module/modules/tooltip/Tooltip.js +115 -0
- package/lib/module/modules/tooltip/Tooltip.js.map +1 -0
- package/lib/module/modules/tooltip/Tooltip.variants.js +75 -0
- package/lib/module/modules/tooltip/Tooltip.variants.js.map +1 -0
- package/lib/module/modules/tooltip/index.js +10 -0
- package/lib/module/modules/tooltip/index.js.map +1 -0
- package/lib/module/package.json +1 -0
- package/lib/module/theme/MODULE.md +87 -0
- package/lib/module/theme/index.js +15 -0
- package/lib/module/theme/index.js.map +1 -0
- package/lib/module/theme/platform/MODULE.md +102 -0
- package/lib/module/theme/platform/colorScheme.native.js +24 -0
- package/lib/module/theme/platform/colorScheme.native.js.map +1 -0
- package/lib/module/theme/platform/elevation.native.js +75 -0
- package/lib/module/theme/platform/elevation.native.js.map +1 -0
- package/lib/module/theme/platform/fonts.native.js +58 -0
- package/lib/module/theme/platform/fonts.native.js.map +1 -0
- package/lib/module/theme/platform/index.js +14 -0
- package/lib/module/theme/platform/index.js.map +1 -0
- package/lib/module/theme/platform/units.native.js +18 -0
- package/lib/module/theme/platform/units.native.js.map +1 -0
- package/lib/module/theme/provider/PixelizeProvider.js +149 -0
- package/lib/module/theme/provider/PixelizeProvider.js.map +1 -0
- package/lib/module/theme/provider/colorModeStorage.js +63 -0
- package/lib/module/theme/provider/colorModeStorage.js.map +1 -0
- package/lib/module/theme/provider/index.js +8 -0
- package/lib/module/theme/provider/index.js.map +1 -0
- package/lib/module/theme/provider/useTheme.js +13 -0
- package/lib/module/theme/provider/useTheme.js.map +1 -0
- package/lib/module/theme/provider/useThemeColors.js +13 -0
- package/lib/module/theme/provider/useThemeColors.js.map +1 -0
- package/lib/module/theme/provider/useThemeMode.js +13 -0
- package/lib/module/theme/provider/useThemeMode.js.map +1 -0
- package/lib/module/theme/tokens/MODULE.md +102 -0
- package/lib/module/theme/tokens/brands/emerald/palette.dark.js +9 -0
- package/lib/module/theme/tokens/brands/emerald/palette.dark.js.map +1 -0
- package/lib/module/theme/tokens/brands/emerald/palette.light.js +125 -0
- package/lib/module/theme/tokens/brands/emerald/palette.light.js.map +1 -0
- package/lib/module/theme/tokens/brands/index.js +91 -0
- package/lib/module/theme/tokens/brands/index.js.map +1 -0
- package/lib/module/theme/tokens/brands/lavender/palette.dark.js +9 -0
- package/lib/module/theme/tokens/brands/lavender/palette.dark.js.map +1 -0
- package/lib/module/theme/tokens/brands/lavender/palette.light.js +376 -0
- package/lib/module/theme/tokens/brands/lavender/palette.light.js.map +1 -0
- package/lib/module/theme/tokens/brands/meadow/palette.dark.js +9 -0
- package/lib/module/theme/tokens/brands/meadow/palette.dark.js.map +1 -0
- package/lib/module/theme/tokens/brands/meadow/palette.light.js +126 -0
- package/lib/module/theme/tokens/brands/meadow/palette.light.js.map +1 -0
- package/lib/module/theme/tokens/brands/radiant/palette.dark.js +9 -0
- package/lib/module/theme/tokens/brands/radiant/palette.dark.js.map +1 -0
- package/lib/module/theme/tokens/brands/radiant/palette.light.js +125 -0
- package/lib/module/theme/tokens/brands/radiant/palette.light.js.map +1 -0
- package/lib/module/theme/tokens/brands/rosewood/palette.dark.js +9 -0
- package/lib/module/theme/tokens/brands/rosewood/palette.dark.js.map +1 -0
- package/lib/module/theme/tokens/brands/rosewood/palette.light.js +125 -0
- package/lib/module/theme/tokens/brands/rosewood/palette.light.js.map +1 -0
- package/lib/module/theme/tokens/brands/skyline/palette.dark.js +9 -0
- package/lib/module/theme/tokens/brands/skyline/palette.dark.js.map +1 -0
- package/lib/module/theme/tokens/brands/skyline/palette.light.js +126 -0
- package/lib/module/theme/tokens/brands/skyline/palette.light.js.map +1 -0
- package/lib/module/theme/tokens/brands/slate/palette.dark.js +11 -0
- package/lib/module/theme/tokens/brands/slate/palette.dark.js.map +1 -0
- package/lib/module/theme/tokens/brands/slate/palette.light.js +129 -0
- package/lib/module/theme/tokens/brands/slate/palette.light.js.map +1 -0
- package/lib/module/theme/tokens/brands/storefront/palette.dark.js +7 -0
- package/lib/module/theme/tokens/brands/storefront/palette.dark.js.map +1 -0
- package/lib/module/theme/tokens/brands/storefront/palette.light.js +127 -0
- package/lib/module/theme/tokens/brands/storefront/palette.light.js.map +1 -0
- package/lib/module/theme/tokens/brands/zinc/palette.dark.js +222 -0
- package/lib/module/theme/tokens/brands/zinc/palette.dark.js.map +1 -0
- package/lib/module/theme/tokens/brands/zinc/palette.light.js +393 -0
- package/lib/module/theme/tokens/brands/zinc/palette.light.js.map +1 -0
- package/lib/module/theme/tokens/builders/accentText.js +66 -0
- package/lib/module/theme/tokens/builders/accentText.js.map +1 -0
- package/lib/module/theme/tokens/builders/buildBrandTokens.js +38 -0
- package/lib/module/theme/tokens/builders/buildBrandTokens.js.map +1 -0
- package/lib/module/theme/tokens/builders/buildDarkPalette.js +300 -0
- package/lib/module/theme/tokens/builders/buildDarkPalette.js.map +1 -0
- package/lib/module/theme/tokens/builders/color.js +187 -0
- package/lib/module/theme/tokens/builders/color.js.map +1 -0
- package/lib/module/theme/tokens/index.js +27 -0
- package/lib/module/theme/tokens/index.js.map +1 -0
- package/lib/module/theme/tokens/primitives/borderWidths.js +16 -0
- package/lib/module/theme/tokens/primitives/borderWidths.js.map +1 -0
- package/lib/module/theme/tokens/primitives/breakpoints.js +18 -0
- package/lib/module/theme/tokens/primitives/breakpoints.js.map +1 -0
- package/lib/module/theme/tokens/primitives/elevation.js +95 -0
- package/lib/module/theme/tokens/primitives/elevation.js.map +1 -0
- package/lib/module/theme/tokens/primitives/fontSizes.js +22 -0
- package/lib/module/theme/tokens/primitives/fontSizes.js.map +1 -0
- package/lib/module/theme/tokens/primitives/fontWeights.js +23 -0
- package/lib/module/theme/tokens/primitives/fontWeights.js.map +1 -0
- package/lib/module/theme/tokens/primitives/index.js +14 -0
- package/lib/module/theme/tokens/primitives/index.js.map +1 -0
- package/lib/module/theme/tokens/primitives/letterSpacings.js +18 -0
- package/lib/module/theme/tokens/primitives/letterSpacings.js.map +1 -0
- package/lib/module/theme/tokens/primitives/lineHeights.js +21 -0
- package/lib/module/theme/tokens/primitives/lineHeights.js.map +1 -0
- package/lib/module/theme/tokens/primitives/radii.js +21 -0
- package/lib/module/theme/tokens/primitives/radii.js.map +1 -0
- package/lib/module/theme/tokens/primitives/sizes.js +34 -0
- package/lib/module/theme/tokens/primitives/sizes.js.map +1 -0
- package/lib/module/theme/tokens/primitives/space.js +30 -0
- package/lib/module/theme/tokens/primitives/space.js.map +1 -0
- package/lib/module/theme/tokens/primitives/zIndices.js +23 -0
- package/lib/module/theme/tokens/primitives/zIndices.js.map +1 -0
- package/lib/module/theme/tokens/roles/index.js +126 -0
- package/lib/module/theme/tokens/roles/index.js.map +1 -0
- package/lib/module/theme/tokens/types.js +2 -0
- package/lib/module/theme/tokens/types.js.map +1 -0
- package/lib/typescript/core/a11y/index.d.ts +7 -0
- package/lib/typescript/core/a11y/index.d.ts.map +1 -0
- package/lib/typescript/core/icon/index.d.ts +60 -0
- package/lib/typescript/core/icon/index.d.ts.map +1 -0
- package/lib/typescript/core/style/index.d.ts +4 -0
- package/lib/typescript/core/style/index.d.ts.map +1 -0
- package/lib/typescript/core/style/layoutStyle.d.ts +19 -0
- package/lib/typescript/core/style/layoutStyle.d.ts.map +1 -0
- package/lib/typescript/core/style/variants.d.ts +55 -0
- package/lib/typescript/core/style/variants.d.ts.map +1 -0
- package/lib/typescript/index.d.ts +11 -0
- package/lib/typescript/index.d.ts.map +1 -0
- package/lib/typescript/modules/accordion/Accordion.d.ts +57 -0
- package/lib/typescript/modules/accordion/Accordion.d.ts.map +1 -0
- package/lib/typescript/modules/accordion/Accordion.variants.d.ts +131 -0
- package/lib/typescript/modules/accordion/Accordion.variants.d.ts.map +1 -0
- package/lib/typescript/modules/accordion/index.d.ts +9 -0
- package/lib/typescript/modules/accordion/index.d.ts.map +1 -0
- package/lib/typescript/modules/alert-dialog/AlertDialog.d.ts +24 -0
- package/lib/typescript/modules/alert-dialog/AlertDialog.d.ts.map +1 -0
- package/lib/typescript/modules/alert-dialog/AlertDialog.variants.d.ts +29 -0
- package/lib/typescript/modules/alert-dialog/AlertDialog.variants.d.ts.map +1 -0
- package/lib/typescript/modules/alert-dialog/index.d.ts +9 -0
- package/lib/typescript/modules/alert-dialog/index.d.ts.map +1 -0
- package/lib/typescript/modules/avatar/Avatar.d.ts +30 -0
- package/lib/typescript/modules/avatar/Avatar.d.ts.map +1 -0
- package/lib/typescript/modules/avatar/Avatar.variants.d.ts +123 -0
- package/lib/typescript/modules/avatar/Avatar.variants.d.ts.map +1 -0
- package/lib/typescript/modules/avatar/index.d.ts +11 -0
- package/lib/typescript/modules/avatar/index.d.ts.map +1 -0
- package/lib/typescript/modules/badge/Badge.d.ts +19 -0
- package/lib/typescript/modules/badge/Badge.d.ts.map +1 -0
- package/lib/typescript/modules/badge/Badge.variants.d.ts +102 -0
- package/lib/typescript/modules/badge/Badge.variants.d.ts.map +1 -0
- package/lib/typescript/modules/badge/index.d.ts +10 -0
- package/lib/typescript/modules/badge/index.d.ts.map +1 -0
- package/lib/typescript/modules/bottom-nav/BottomNav.d.ts +106 -0
- package/lib/typescript/modules/bottom-nav/BottomNav.d.ts.map +1 -0
- package/lib/typescript/modules/bottom-nav/BottomNav.search.d.ts +61 -0
- package/lib/typescript/modules/bottom-nav/BottomNav.search.d.ts.map +1 -0
- package/lib/typescript/modules/bottom-nav/BottomNav.variants.d.ts +122 -0
- package/lib/typescript/modules/bottom-nav/BottomNav.variants.d.ts.map +1 -0
- package/lib/typescript/modules/bottom-nav/BottomNavOverflowSheet.d.ts +39 -0
- package/lib/typescript/modules/bottom-nav/BottomNavOverflowSheet.d.ts.map +1 -0
- package/lib/typescript/modules/bottom-nav/index.d.ts +12 -0
- package/lib/typescript/modules/bottom-nav/index.d.ts.map +1 -0
- package/lib/typescript/modules/button/Button.d.ts +43 -0
- package/lib/typescript/modules/button/Button.d.ts.map +1 -0
- package/lib/typescript/modules/button/Button.variants.d.ts +156 -0
- package/lib/typescript/modules/button/Button.variants.d.ts.map +1 -0
- package/lib/typescript/modules/button/index.d.ts +10 -0
- package/lib/typescript/modules/button/index.d.ts.map +1 -0
- package/lib/typescript/modules/button-group/ButtonGroup.d.ts +37 -0
- package/lib/typescript/modules/button-group/ButtonGroup.d.ts.map +1 -0
- package/lib/typescript/modules/button-group/ButtonGroup.variants.d.ts +217 -0
- package/lib/typescript/modules/button-group/ButtonGroup.variants.d.ts.map +1 -0
- package/lib/typescript/modules/button-group/index.d.ts +10 -0
- package/lib/typescript/modules/button-group/index.d.ts.map +1 -0
- package/lib/typescript/modules/card/Card.d.ts +20 -0
- package/lib/typescript/modules/card/Card.d.ts.map +1 -0
- package/lib/typescript/modules/card/Card.variants.d.ts +51 -0
- package/lib/typescript/modules/card/Card.variants.d.ts.map +1 -0
- package/lib/typescript/modules/card/index.d.ts +9 -0
- package/lib/typescript/modules/card/index.d.ts.map +1 -0
- package/lib/typescript/modules/checkbox/Checkbox.d.ts +43 -0
- package/lib/typescript/modules/checkbox/Checkbox.d.ts.map +1 -0
- package/lib/typescript/modules/checkbox/Checkbox.variants.d.ts +120 -0
- package/lib/typescript/modules/checkbox/Checkbox.variants.d.ts.map +1 -0
- package/lib/typescript/modules/checkbox/index.d.ts +10 -0
- package/lib/typescript/modules/checkbox/index.d.ts.map +1 -0
- package/lib/typescript/modules/divider/Divider.d.ts +18 -0
- package/lib/typescript/modules/divider/Divider.d.ts.map +1 -0
- package/lib/typescript/modules/divider/Divider.variants.d.ts +42 -0
- package/lib/typescript/modules/divider/Divider.variants.d.ts.map +1 -0
- package/lib/typescript/modules/divider/index.d.ts +9 -0
- package/lib/typescript/modules/divider/index.d.ts.map +1 -0
- package/lib/typescript/modules/drawer/Drawer.d.ts +44 -0
- package/lib/typescript/modules/drawer/Drawer.d.ts.map +1 -0
- package/lib/typescript/modules/drawer/Drawer.variants.d.ts +80 -0
- package/lib/typescript/modules/drawer/Drawer.variants.d.ts.map +1 -0
- package/lib/typescript/modules/drawer/index.d.ts +8 -0
- package/lib/typescript/modules/drawer/index.d.ts.map +1 -0
- package/lib/typescript/modules/empty-state/EmptyState.d.ts +29 -0
- package/lib/typescript/modules/empty-state/EmptyState.d.ts.map +1 -0
- package/lib/typescript/modules/empty-state/EmptyState.variants.d.ts +43 -0
- package/lib/typescript/modules/empty-state/EmptyState.variants.d.ts.map +1 -0
- package/lib/typescript/modules/empty-state/index.d.ts +10 -0
- package/lib/typescript/modules/empty-state/index.d.ts.map +1 -0
- package/lib/typescript/modules/file-upload/FileUpload.d.ts +44 -0
- package/lib/typescript/modules/file-upload/FileUpload.d.ts.map +1 -0
- package/lib/typescript/modules/file-upload/FileUpload.variants.d.ts +114 -0
- package/lib/typescript/modules/file-upload/FileUpload.variants.d.ts.map +1 -0
- package/lib/typescript/modules/file-upload/index.d.ts +9 -0
- package/lib/typescript/modules/file-upload/index.d.ts.map +1 -0
- package/lib/typescript/modules/filter-sheet/FilterChip.d.ts +25 -0
- package/lib/typescript/modules/filter-sheet/FilterChip.d.ts.map +1 -0
- package/lib/typescript/modules/filter-sheet/FilterSheet.d.ts +54 -0
- package/lib/typescript/modules/filter-sheet/FilterSheet.d.ts.map +1 -0
- package/lib/typescript/modules/filter-sheet/FilterSheet.variants.d.ts +98 -0
- package/lib/typescript/modules/filter-sheet/FilterSheet.variants.d.ts.map +1 -0
- package/lib/typescript/modules/filter-sheet/FilterSheetBody.d.ts +28 -0
- package/lib/typescript/modules/filter-sheet/FilterSheetBody.d.ts.map +1 -0
- package/lib/typescript/modules/filter-sheet/filterSheet.helpers.d.ts +45 -0
- package/lib/typescript/modules/filter-sheet/filterSheet.helpers.d.ts.map +1 -0
- package/lib/typescript/modules/filter-sheet/index.d.ts +12 -0
- package/lib/typescript/modules/filter-sheet/index.d.ts.map +1 -0
- package/lib/typescript/modules/input/Input.d.ts +33 -0
- package/lib/typescript/modules/input/Input.d.ts.map +1 -0
- package/lib/typescript/modules/input/Input.variants.d.ts +116 -0
- package/lib/typescript/modules/input/Input.variants.d.ts.map +1 -0
- package/lib/typescript/modules/input/index.d.ts +10 -0
- package/lib/typescript/modules/input/index.d.ts.map +1 -0
- package/lib/typescript/modules/menu/Menu.d.ts +43 -0
- package/lib/typescript/modules/menu/Menu.d.ts.map +1 -0
- package/lib/typescript/modules/menu/Menu.variants.d.ts +41 -0
- package/lib/typescript/modules/menu/Menu.variants.d.ts.map +1 -0
- package/lib/typescript/modules/menu/index.d.ts +10 -0
- package/lib/typescript/modules/menu/index.d.ts.map +1 -0
- package/lib/typescript/modules/modal/Modal.d.ts +32 -0
- package/lib/typescript/modules/modal/Modal.d.ts.map +1 -0
- package/lib/typescript/modules/modal/Modal.variants.d.ts +72 -0
- package/lib/typescript/modules/modal/Modal.variants.d.ts.map +1 -0
- package/lib/typescript/modules/modal/ModalPortalContext.d.ts +2 -0
- package/lib/typescript/modules/modal/ModalPortalContext.d.ts.map +1 -0
- package/lib/typescript/modules/modal/ModalPortalProvider.d.ts +21 -0
- package/lib/typescript/modules/modal/ModalPortalProvider.d.ts.map +1 -0
- package/lib/typescript/modules/modal/index.d.ts +16 -0
- package/lib/typescript/modules/modal/index.d.ts.map +1 -0
- package/lib/typescript/modules/modal/renderWebPortal.d.ts +15 -0
- package/lib/typescript/modules/modal/renderWebPortal.d.ts.map +1 -0
- package/lib/typescript/modules/modal/renderWebPortal.web.d.ts +19 -0
- package/lib/typescript/modules/modal/renderWebPortal.web.d.ts.map +1 -0
- package/lib/typescript/modules/multi-select/MultiSelect.d.ts +33 -0
- package/lib/typescript/modules/multi-select/MultiSelect.d.ts.map +1 -0
- package/lib/typescript/modules/multi-select/MultiSelect.variants.d.ts +149 -0
- package/lib/typescript/modules/multi-select/MultiSelect.variants.d.ts.map +1 -0
- package/lib/typescript/modules/multi-select/index.d.ts +10 -0
- package/lib/typescript/modules/multi-select/index.d.ts.map +1 -0
- package/lib/typescript/modules/number-input/NumberInput.d.ts +34 -0
- package/lib/typescript/modules/number-input/NumberInput.d.ts.map +1 -0
- package/lib/typescript/modules/number-input/NumberInput.variants.d.ts +170 -0
- package/lib/typescript/modules/number-input/NumberInput.variants.d.ts.map +1 -0
- package/lib/typescript/modules/number-input/index.d.ts +11 -0
- package/lib/typescript/modules/number-input/index.d.ts.map +1 -0
- package/lib/typescript/modules/pin-input/PinInput.d.ts +40 -0
- package/lib/typescript/modules/pin-input/PinInput.d.ts.map +1 -0
- package/lib/typescript/modules/pin-input/PinInput.variants.d.ts +164 -0
- package/lib/typescript/modules/pin-input/PinInput.variants.d.ts.map +1 -0
- package/lib/typescript/modules/pin-input/index.d.ts +10 -0
- package/lib/typescript/modules/pin-input/index.d.ts.map +1 -0
- package/lib/typescript/modules/progress-bar/ProgressBar.d.ts +21 -0
- package/lib/typescript/modules/progress-bar/ProgressBar.d.ts.map +1 -0
- package/lib/typescript/modules/progress-bar/ProgressBar.variants.d.ts +112 -0
- package/lib/typescript/modules/progress-bar/ProgressBar.variants.d.ts.map +1 -0
- package/lib/typescript/modules/progress-bar/index.d.ts +11 -0
- package/lib/typescript/modules/progress-bar/index.d.ts.map +1 -0
- package/lib/typescript/modules/radio-group/RadioGroup.d.ts +27 -0
- package/lib/typescript/modules/radio-group/RadioGroup.d.ts.map +1 -0
- package/lib/typescript/modules/radio-group/RadioGroup.variants.d.ts +142 -0
- package/lib/typescript/modules/radio-group/RadioGroup.variants.d.ts.map +1 -0
- package/lib/typescript/modules/radio-group/index.d.ts +10 -0
- package/lib/typescript/modules/radio-group/index.d.ts.map +1 -0
- package/lib/typescript/modules/reorder/Reorder.d.ts +43 -0
- package/lib/typescript/modules/reorder/Reorder.d.ts.map +1 -0
- package/lib/typescript/modules/reorder/Reorder.variants.d.ts +116 -0
- package/lib/typescript/modules/reorder/Reorder.variants.d.ts.map +1 -0
- package/lib/typescript/modules/reorder/index.d.ts +9 -0
- package/lib/typescript/modules/reorder/index.d.ts.map +1 -0
- package/lib/typescript/modules/select/Select.d.ts +31 -0
- package/lib/typescript/modules/select/Select.d.ts.map +1 -0
- package/lib/typescript/modules/select/Select.variants.d.ts +127 -0
- package/lib/typescript/modules/select/Select.variants.d.ts.map +1 -0
- package/lib/typescript/modules/select/index.d.ts +9 -0
- package/lib/typescript/modules/select/index.d.ts.map +1 -0
- package/lib/typescript/modules/skeleton/Skeleton.d.ts +27 -0
- package/lib/typescript/modules/skeleton/Skeleton.d.ts.map +1 -0
- package/lib/typescript/modules/skeleton/Skeleton.variants.d.ts +119 -0
- package/lib/typescript/modules/skeleton/Skeleton.variants.d.ts.map +1 -0
- package/lib/typescript/modules/skeleton/index.d.ts +9 -0
- package/lib/typescript/modules/skeleton/index.d.ts.map +1 -0
- package/lib/typescript/modules/slider/Slider.d.ts +44 -0
- package/lib/typescript/modules/slider/Slider.d.ts.map +1 -0
- package/lib/typescript/modules/slider/Slider.variants.d.ts +211 -0
- package/lib/typescript/modules/slider/Slider.variants.d.ts.map +1 -0
- package/lib/typescript/modules/slider/index.d.ts +9 -0
- package/lib/typescript/modules/slider/index.d.ts.map +1 -0
- package/lib/typescript/modules/spinner/Spinner.d.ts +19 -0
- package/lib/typescript/modules/spinner/Spinner.d.ts.map +1 -0
- package/lib/typescript/modules/spinner/Spinner.variants.d.ts +113 -0
- package/lib/typescript/modules/spinner/Spinner.variants.d.ts.map +1 -0
- package/lib/typescript/modules/spinner/index.d.ts +10 -0
- package/lib/typescript/modules/spinner/index.d.ts.map +1 -0
- package/lib/typescript/modules/stepper/Stepper.d.ts +26 -0
- package/lib/typescript/modules/stepper/Stepper.d.ts.map +1 -0
- package/lib/typescript/modules/stepper/Stepper.variants.d.ts +107 -0
- package/lib/typescript/modules/stepper/Stepper.variants.d.ts.map +1 -0
- package/lib/typescript/modules/stepper/index.d.ts +8 -0
- package/lib/typescript/modules/stepper/index.d.ts.map +1 -0
- package/lib/typescript/modules/switch/Switch.d.ts +22 -0
- package/lib/typescript/modules/switch/Switch.d.ts.map +1 -0
- package/lib/typescript/modules/switch/Switch.variants.d.ts +60 -0
- package/lib/typescript/modules/switch/Switch.variants.d.ts.map +1 -0
- package/lib/typescript/modules/switch/index.d.ts +8 -0
- package/lib/typescript/modules/switch/index.d.ts.map +1 -0
- package/lib/typescript/modules/tabs/Tabs.d.ts +31 -0
- package/lib/typescript/modules/tabs/Tabs.d.ts.map +1 -0
- package/lib/typescript/modules/tabs/Tabs.variants.d.ts +114 -0
- package/lib/typescript/modules/tabs/Tabs.variants.d.ts.map +1 -0
- package/lib/typescript/modules/tabs/index.d.ts +10 -0
- package/lib/typescript/modules/tabs/index.d.ts.map +1 -0
- package/lib/typescript/modules/textarea/Textarea.d.ts +25 -0
- package/lib/typescript/modules/textarea/Textarea.d.ts.map +1 -0
- package/lib/typescript/modules/textarea/Textarea.variants.d.ts +99 -0
- package/lib/typescript/modules/textarea/Textarea.variants.d.ts.map +1 -0
- package/lib/typescript/modules/textarea/index.d.ts +9 -0
- package/lib/typescript/modules/textarea/index.d.ts.map +1 -0
- package/lib/typescript/modules/timeline/Timeline.d.ts +28 -0
- package/lib/typescript/modules/timeline/Timeline.d.ts.map +1 -0
- package/lib/typescript/modules/timeline/Timeline.variants.d.ts +103 -0
- package/lib/typescript/modules/timeline/Timeline.variants.d.ts.map +1 -0
- package/lib/typescript/modules/timeline/index.d.ts +9 -0
- package/lib/typescript/modules/timeline/index.d.ts.map +1 -0
- package/lib/typescript/modules/toast/Toast.d.ts +38 -0
- package/lib/typescript/modules/toast/Toast.d.ts.map +1 -0
- package/lib/typescript/modules/toast/Toast.variants.d.ts +80 -0
- package/lib/typescript/modules/toast/Toast.variants.d.ts.map +1 -0
- package/lib/typescript/modules/toast/index.d.ts +12 -0
- package/lib/typescript/modules/toast/index.d.ts.map +1 -0
- package/lib/typescript/modules/tooltip/Tooltip.d.ts +31 -0
- package/lib/typescript/modules/tooltip/Tooltip.d.ts.map +1 -0
- package/lib/typescript/modules/tooltip/Tooltip.variants.d.ts +52 -0
- package/lib/typescript/modules/tooltip/Tooltip.variants.d.ts.map +1 -0
- package/lib/typescript/modules/tooltip/index.d.ts +9 -0
- package/lib/typescript/modules/tooltip/index.d.ts.map +1 -0
- package/lib/typescript/package.json +1 -0
- package/lib/typescript/theme/index.d.ts +11 -0
- package/lib/typescript/theme/index.d.ts.map +1 -0
- package/lib/typescript/theme/platform/colorScheme.native.d.ts +12 -0
- package/lib/typescript/theme/platform/colorScheme.native.d.ts.map +1 -0
- package/lib/typescript/theme/platform/elevation.native.d.ts +35 -0
- package/lib/typescript/theme/platform/elevation.native.d.ts.map +1 -0
- package/lib/typescript/theme/platform/fonts.native.d.ts +41 -0
- package/lib/typescript/theme/platform/fonts.native.d.ts.map +1 -0
- package/lib/typescript/theme/platform/index.d.ts +15 -0
- package/lib/typescript/theme/platform/index.d.ts.map +1 -0
- package/lib/typescript/theme/platform/units.native.d.ts +13 -0
- package/lib/typescript/theme/platform/units.native.d.ts.map +1 -0
- package/lib/typescript/theme/provider/PixelizeProvider.d.ts +81 -0
- package/lib/typescript/theme/provider/PixelizeProvider.d.ts.map +1 -0
- package/lib/typescript/theme/provider/colorModeStorage.d.ts +43 -0
- package/lib/typescript/theme/provider/colorModeStorage.d.ts.map +1 -0
- package/lib/typescript/theme/provider/index.d.ts +8 -0
- package/lib/typescript/theme/provider/index.d.ts.map +1 -0
- package/lib/typescript/theme/provider/useTheme.d.ts +4 -0
- package/lib/typescript/theme/provider/useTheme.d.ts.map +1 -0
- package/lib/typescript/theme/provider/useThemeColors.d.ts +9 -0
- package/lib/typescript/theme/provider/useThemeColors.d.ts.map +1 -0
- package/lib/typescript/theme/provider/useThemeMode.d.ts +4 -0
- package/lib/typescript/theme/provider/useThemeMode.d.ts.map +1 -0
- package/lib/typescript/theme/tokens/brands/emerald/palette.dark.d.ts +3 -0
- package/lib/typescript/theme/tokens/brands/emerald/palette.dark.d.ts.map +1 -0
- package/lib/typescript/theme/tokens/brands/emerald/palette.light.d.ts +4 -0
- package/lib/typescript/theme/tokens/brands/emerald/palette.light.d.ts.map +1 -0
- package/lib/typescript/theme/tokens/brands/index.d.ts +30 -0
- package/lib/typescript/theme/tokens/brands/index.d.ts.map +1 -0
- package/lib/typescript/theme/tokens/brands/lavender/palette.dark.d.ts +3 -0
- package/lib/typescript/theme/tokens/brands/lavender/palette.dark.d.ts.map +1 -0
- package/lib/typescript/theme/tokens/brands/lavender/palette.light.d.ts +4 -0
- package/lib/typescript/theme/tokens/brands/lavender/palette.light.d.ts.map +1 -0
- package/lib/typescript/theme/tokens/brands/meadow/palette.dark.d.ts +3 -0
- package/lib/typescript/theme/tokens/brands/meadow/palette.dark.d.ts.map +1 -0
- package/lib/typescript/theme/tokens/brands/meadow/palette.light.d.ts +4 -0
- package/lib/typescript/theme/tokens/brands/meadow/palette.light.d.ts.map +1 -0
- package/lib/typescript/theme/tokens/brands/radiant/palette.dark.d.ts +3 -0
- package/lib/typescript/theme/tokens/brands/radiant/palette.dark.d.ts.map +1 -0
- package/lib/typescript/theme/tokens/brands/radiant/palette.light.d.ts +4 -0
- package/lib/typescript/theme/tokens/brands/radiant/palette.light.d.ts.map +1 -0
- package/lib/typescript/theme/tokens/brands/rosewood/palette.dark.d.ts +3 -0
- package/lib/typescript/theme/tokens/brands/rosewood/palette.dark.d.ts.map +1 -0
- package/lib/typescript/theme/tokens/brands/rosewood/palette.light.d.ts +4 -0
- package/lib/typescript/theme/tokens/brands/rosewood/palette.light.d.ts.map +1 -0
- package/lib/typescript/theme/tokens/brands/skyline/palette.dark.d.ts +3 -0
- package/lib/typescript/theme/tokens/brands/skyline/palette.dark.d.ts.map +1 -0
- package/lib/typescript/theme/tokens/brands/skyline/palette.light.d.ts +4 -0
- package/lib/typescript/theme/tokens/brands/skyline/palette.light.d.ts.map +1 -0
- package/lib/typescript/theme/tokens/brands/slate/palette.dark.d.ts +3 -0
- package/lib/typescript/theme/tokens/brands/slate/palette.dark.d.ts.map +1 -0
- package/lib/typescript/theme/tokens/brands/slate/palette.light.d.ts +4 -0
- package/lib/typescript/theme/tokens/brands/slate/palette.light.d.ts.map +1 -0
- package/lib/typescript/theme/tokens/brands/storefront/palette.dark.d.ts +3 -0
- package/lib/typescript/theme/tokens/brands/storefront/palette.dark.d.ts.map +1 -0
- package/lib/typescript/theme/tokens/brands/storefront/palette.light.d.ts +4 -0
- package/lib/typescript/theme/tokens/brands/storefront/palette.light.d.ts.map +1 -0
- package/lib/typescript/theme/tokens/brands/zinc/palette.dark.d.ts +4 -0
- package/lib/typescript/theme/tokens/brands/zinc/palette.dark.d.ts.map +1 -0
- package/lib/typescript/theme/tokens/brands/zinc/palette.light.d.ts +4 -0
- package/lib/typescript/theme/tokens/brands/zinc/palette.light.d.ts.map +1 -0
- package/lib/typescript/theme/tokens/builders/accentText.d.ts +42 -0
- package/lib/typescript/theme/tokens/builders/accentText.d.ts.map +1 -0
- package/lib/typescript/theme/tokens/builders/buildBrandTokens.d.ts +21 -0
- package/lib/typescript/theme/tokens/builders/buildBrandTokens.d.ts.map +1 -0
- package/lib/typescript/theme/tokens/builders/buildDarkPalette.d.ts +13 -0
- package/lib/typescript/theme/tokens/builders/buildDarkPalette.d.ts.map +1 -0
- package/lib/typescript/theme/tokens/builders/color.d.ts +59 -0
- package/lib/typescript/theme/tokens/builders/color.d.ts.map +1 -0
- package/lib/typescript/theme/tokens/index.d.ts +21 -0
- package/lib/typescript/theme/tokens/index.d.ts.map +1 -0
- package/lib/typescript/theme/tokens/primitives/borderWidths.d.ts +15 -0
- package/lib/typescript/theme/tokens/primitives/borderWidths.d.ts.map +1 -0
- package/lib/typescript/theme/tokens/primitives/breakpoints.d.ts +17 -0
- package/lib/typescript/theme/tokens/primitives/breakpoints.d.ts.map +1 -0
- package/lib/typescript/theme/tokens/primitives/elevation.d.ts +109 -0
- package/lib/typescript/theme/tokens/primitives/elevation.d.ts.map +1 -0
- package/lib/typescript/theme/tokens/primitives/fontSizes.d.ts +21 -0
- package/lib/typescript/theme/tokens/primitives/fontSizes.d.ts.map +1 -0
- package/lib/typescript/theme/tokens/primitives/fontWeights.d.ts +21 -0
- package/lib/typescript/theme/tokens/primitives/fontWeights.d.ts.map +1 -0
- package/lib/typescript/theme/tokens/primitives/index.d.ts +23 -0
- package/lib/typescript/theme/tokens/primitives/index.d.ts.map +1 -0
- package/lib/typescript/theme/tokens/primitives/letterSpacings.d.ts +17 -0
- package/lib/typescript/theme/tokens/primitives/letterSpacings.d.ts.map +1 -0
- package/lib/typescript/theme/tokens/primitives/lineHeights.d.ts +20 -0
- package/lib/typescript/theme/tokens/primitives/lineHeights.d.ts.map +1 -0
- package/lib/typescript/theme/tokens/primitives/radii.d.ts +20 -0
- package/lib/typescript/theme/tokens/primitives/radii.d.ts.map +1 -0
- package/lib/typescript/theme/tokens/primitives/sizes.d.ts +33 -0
- package/lib/typescript/theme/tokens/primitives/sizes.d.ts.map +1 -0
- package/lib/typescript/theme/tokens/primitives/space.d.ts +29 -0
- package/lib/typescript/theme/tokens/primitives/space.d.ts.map +1 -0
- package/lib/typescript/theme/tokens/primitives/zIndices.d.ts +22 -0
- package/lib/typescript/theme/tokens/primitives/zIndices.d.ts.map +1 -0
- package/lib/typescript/theme/tokens/roles/index.d.ts +68 -0
- package/lib/typescript/theme/tokens/roles/index.d.ts.map +1 -0
- package/lib/typescript/theme/tokens/types.d.ts +103 -0
- package/lib/typescript/theme/tokens/types.d.ts.map +1 -0
- package/package.json +259 -0
- package/registry.json +175 -0
package/README.md
ADDED
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
# pixelize-native-library
|
|
2
|
+
|
|
3
|
+
Pixelize's React Native / Expo design library — the mobile counterpart to
|
|
4
|
+
[`pixelize-design-library`](https://github.com/pixelize-tech/Micro-Components) (web).
|
|
5
|
+
|
|
6
|
+
```sh
|
|
7
|
+
npm i pixelize-native-library
|
|
8
|
+
```
|
|
9
|
+
|
|
10
|
+
```tsx
|
|
11
|
+
import { PixelizeProvider } from "pixelize-native-library/theme";
|
|
12
|
+
import { Button } from "pixelize-native-library/button";
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
## Why subpath imports
|
|
16
|
+
|
|
17
|
+
`pixelize-native-library/button` pulls Button's module subtree and nothing else. Charts, the date
|
|
18
|
+
picker, and the table never enter your bundle unless you import them.
|
|
19
|
+
|
|
20
|
+
This is **not** tree-shaking. Metro's tree-shaking is experimental, production-only, and enabled
|
|
21
|
+
by a flag the *consumer app* sets — a library can't turn it on. Package Exports have been stable
|
|
22
|
+
in Metro since 0.79 and work in dev and prod, on bare RN and Expo, with zero config in your app.
|
|
23
|
+
|
|
24
|
+
## Docs
|
|
25
|
+
|
|
26
|
+
- Component list and props: `registry.json` (generated)
|
|
27
|
+
- Contributing / API contract: `CLAUDE.md`
|
|
28
|
+
- Playground: `example/` (Expo)
|
|
29
|
+
|
|
30
|
+
## Theme
|
|
31
|
+
|
|
32
|
+
Themes and colours are shared with web by hand-copying one folder: `src/theme/tokens/`.
|
|
33
|
+
It is byte-identical across both repos and hash-gated in CI (`.tokens.sha256`).
|
|
34
|
+
Anything platform-specific lives in `src/theme/platform/`, which is never copied.
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
# core
|
|
2
|
+
|
|
3
|
+
Cross-cutting mechanism every module imports. No feature logic, no components.
|
|
4
|
+
|
|
5
|
+
| Folder | Purpose | Docs |
|
|
6
|
+
|--------|---------|------|
|
|
7
|
+
| `style/` | `LayoutStyle` + the variant resolver (below) | this file |
|
|
8
|
+
| `icon/` | shared lucide icon registry (`IconName`, `Icon`) — hoisted out of `modules/button/` so every future module reuses one registry instead of re-declaring its own. Grows one glyph at a time as new modules need them (latest: `filter`, added for `filter-sheet`) — see `icon/MODULE.md`. | `icon/MODULE.md` |
|
|
9
|
+
| `a11y/` | shared accessibility hooks (`useReducedMotion`) — hoisted out of `modules/button/` for the same reason | `a11y/MODULE.md` |
|
|
10
|
+
|
|
11
|
+
## Escape-hatch doctrine
|
|
12
|
+
|
|
13
|
+
This is the mechanism behind "we never touch consumer apps". An app must be able to **place and
|
|
14
|
+
size** a component without being able to **restyle** it — a component whose appearance an app can
|
|
15
|
+
override is a component we can never change.
|
|
16
|
+
|
|
17
|
+
The narrowness is measured, not assumed. Across 906 real library usages in 4 web apps: `style=` **0**,
|
|
18
|
+
`className=` **1** (and it was dead code), `sx=` **16** — a 1.9% escape hatch. Width/height was
|
|
19
|
+
**13.9%**, and every one of those was a *declared prop*. Consumers need sizing, not restyling.
|
|
20
|
+
|
|
21
|
+
So `style` is typed `LayoutStyle`: margin, width/height, flex, alignSelf. `Pick`, never `Omit` — an
|
|
22
|
+
`Omit` would silently admit each key React Native adds to `ViewStyle` on a version bump, decaying the
|
|
23
|
+
guarantee with no change to our code.
|
|
24
|
+
|
|
25
|
+
The escape hatch that actually matters on RN is **`useThemeColors()` returning resolved values** —
|
|
26
|
+
`placeholderTextColor`, `android_ripple`, SVG `fill`, and React Navigation chrome accept no token
|
|
27
|
+
object. Reach for that, never for a style prop.
|
|
28
|
+
|
|
29
|
+
## Containment invariants
|
|
30
|
+
|
|
31
|
+
1. **`style` appears exactly once** — on the outermost node, **last** in the array, so layout wins.
|
|
32
|
+
2. **No `{...rest}`. Ever.** A rest spread re-opens every prop the allowlist just closed.
|
|
33
|
+
3. **Internals never receive consumer style** — no `labelStyle`, no `iconStyle`, no `slotProps`.
|
|
34
|
+
4. **Icons take a name, not a node** — `icon?: IconName`, so an app cannot inject arbitrary UI.
|
|
35
|
+
5. **Colour is never a prop; tone is** — `tone="danger"`, never `color="#a00"`. Appearance is a
|
|
36
|
+
closed union (`variant` / `size` / `tone`).
|
|
37
|
+
|
|
38
|
+
**The one exception:** a component wrapping a native primitive (`TextInput`) may expose
|
|
39
|
+
`containerStyle?: LayoutStyle` for the outer box only — the primitive needs its own layout box.
|
|
40
|
+
Never `inputStyle`.
|
|
41
|
+
|
|
42
|
+
## Variant resolver
|
|
43
|
+
|
|
44
|
+
In-house, zero dependency — this file is why NativeWind / Unistyles / Tamagui were rejected.
|
|
45
|
+
|
|
46
|
+
```ts
|
|
47
|
+
const buttonVariants = createThemedVariants((theme: Theme) => ({
|
|
48
|
+
base: { flexDirection: "row", alignItems: "center" },
|
|
49
|
+
variants: {
|
|
50
|
+
variant: { solid: { backgroundColor: theme.accent }, outline: { borderWidth: 1 } },
|
|
51
|
+
size: { sm: { height: 32 }, md: { height: 40 } },
|
|
52
|
+
},
|
|
53
|
+
defaultVariants: { variant: "solid", size: "md" },
|
|
54
|
+
compoundVariants: [{ when: { variant: "outline", size: "sm" }, style: { borderWidth: 2 } }],
|
|
55
|
+
}));
|
|
56
|
+
|
|
57
|
+
// The prop type is DERIVED — adding a variant above widens it with no second declaration.
|
|
58
|
+
type ButtonProps = VariantProps<typeof buttonVariants> & { style?: LayoutStyle };
|
|
59
|
+
|
|
60
|
+
const Button = ({ variant, size, style }: ButtonProps) => {
|
|
61
|
+
const theme = useTheme();
|
|
62
|
+
return <Pressable style={[buttonVariants(theme, { variant, size }), style]} />;
|
|
63
|
+
};
|
|
64
|
+
```
|
|
65
|
+
|
|
66
|
+
Resolution order is `base` → variant groups **in config order** → matching compounds, so a later
|
|
67
|
+
group overrides an earlier one and a compound overrides both. Consumer `style` is appended by the
|
|
68
|
+
component (invariant 1) — the resolver never takes it, so it can never leak to an internal node.
|
|
69
|
+
|
|
70
|
+
| Export | Output |
|
|
71
|
+
|--------|--------|
|
|
72
|
+
| `createVariants` / `createThemedVariants` | `StyleProp<ViewStyle>` |
|
|
73
|
+
| `createTextVariants` / `createThemedTextVariants` | `StyleProp<TextStyle>` |
|
|
74
|
+
| `variantFactory<S>()` / `themedVariantFactory<S>()` | bind another style kind (e.g. `ImageStyle`) |
|
|
75
|
+
|
|
76
|
+
The factories are curried because TypeScript has no partial type-argument inference: a single
|
|
77
|
+
`createVariants<S, V>` would force callers to spell out `V` just to pick a style kind. Currying fixes
|
|
78
|
+
`S` and leaves `V` inferred from the config literal — which is also what keeps style literals like
|
|
79
|
+
`flexDirection: "row"` from widening to `string`.
|
|
80
|
+
|
|
81
|
+
### Caching strategy
|
|
82
|
+
|
|
83
|
+
Styles must be registered once, not rebuilt per render.
|
|
84
|
+
|
|
85
|
+
- **Static** (`createVariants`): the config is flattened to one named sheet and passed to
|
|
86
|
+
`StyleSheet.create` **eagerly at module load**. Resolution then only picks entries out of it.
|
|
87
|
+
- **Themed** (`createThemedVariants`): theme-dependent values *cannot* live in a module-level
|
|
88
|
+
`StyleSheet.create` — they change with brand and mode. The sheet is compiled on **first use per
|
|
89
|
+
theme** and cached in a `WeakMap` keyed by theme **identity**: registered once per theme, never per
|
|
90
|
+
render, and a retired theme's sheet is garbage-collectable.
|
|
91
|
+
- **This requires the provider to hand out a stable theme object per (brand, mode).** A theme rebuilt
|
|
92
|
+
every render would recompile every sheet every render — correct output, silently terrible perf.
|
|
93
|
+
|
|
94
|
+
Each call returns a fresh array of cached style objects; RN diffs the array cheaply.
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# core/a11y — shared accessibility concerns
|
|
2
|
+
|
|
3
|
+
Cross-module accessibility helpers that aren't specific to any one component. Hoisted out of
|
|
4
|
+
`button/` (where `useReducedMotion` first landed) so every animated module reads the OS setting
|
|
5
|
+
once instead of each re-implementing the same hook.
|
|
6
|
+
|
|
7
|
+
## Files
|
|
8
|
+
|
|
9
|
+
| File | Role |
|
|
10
|
+
|------|------|
|
|
11
|
+
| `index.ts` | `useReducedMotion()` — WCAG 2.3.3. |
|
|
12
|
+
|
|
13
|
+
## Pattern
|
|
14
|
+
|
|
15
|
+
`useReducedMotion()` returns the live OS reduce-motion setting (initial async read +
|
|
16
|
+
`reduceMotionChanged` subscription). A module uses it to zero out an animation's duration, never to
|
|
17
|
+
skip the animation's *effect* (state must still change, just without the transition).
|
|
18
|
+
|
|
19
|
+
## Known gaps
|
|
20
|
+
|
|
21
|
+
- None yet — grows as more shared a11y concerns surface (e.g. a `useAccessibilityAnnounce` if a
|
|
22
|
+
later component needs live-region announcements).
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import { useEffect, useState } from "react";
|
|
4
|
+
import { AccessibilityInfo } from "react-native";
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* Tracks the OS reduce-motion setting (WCAG 2.3.3) so a press/transition animation can be
|
|
8
|
+
* suppressed for a user who has it on. Shared across every animated module — press fades,
|
|
9
|
+
* expand/collapse, toasts — so the setting is read once per mount, not re-implemented per module.
|
|
10
|
+
*/
|
|
11
|
+
export function useReducedMotion() {
|
|
12
|
+
const [reduced, setReduced] = useState(false);
|
|
13
|
+
useEffect(() => {
|
|
14
|
+
let mounted = true;
|
|
15
|
+
void AccessibilityInfo.isReduceMotionEnabled().then(value => {
|
|
16
|
+
if (mounted) setReduced(value);
|
|
17
|
+
});
|
|
18
|
+
const sub = AccessibilityInfo.addEventListener("reduceMotionChanged", setReduced);
|
|
19
|
+
return () => {
|
|
20
|
+
mounted = false;
|
|
21
|
+
sub.remove();
|
|
22
|
+
};
|
|
23
|
+
}, []);
|
|
24
|
+
return reduced;
|
|
25
|
+
}
|
|
26
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["useEffect","useState","AccessibilityInfo","useReducedMotion","reduced","setReduced","mounted","isReduceMotionEnabled","then","value","sub","addEventListener","remove"],"sourceRoot":"../../../../src","sources":["core/a11y/index.ts"],"mappings":";;AAAA,SAASA,SAAS,EAAEC,QAAQ,QAAQ,OAAO;AAC3C,SAASC,iBAAiB,QAAQ,cAAc;;AAEhD;AACA;AACA;AACA;AACA;AACA,OAAO,SAASC,gBAAgBA,CAAA,EAAY;EAC1C,MAAM,CAACC,OAAO,EAAEC,UAAU,CAAC,GAAGJ,QAAQ,CAAC,KAAK,CAAC;EAC7CD,SAAS,CAAC,MAAM;IACd,IAAIM,OAAO,GAAG,IAAI;IAClB,KAAKJ,iBAAiB,CAACK,qBAAqB,CAAC,CAAC,CAACC,IAAI,CAAEC,KAAK,IAAK;MAC7D,IAAIH,OAAO,EAAED,UAAU,CAACI,KAAK,CAAC;IAChC,CAAC,CAAC;IACF,MAAMC,GAAG,GAAGR,iBAAiB,CAACS,gBAAgB,CAAC,qBAAqB,EAAEN,UAAU,CAAC;IACjF,OAAO,MAAM;MACXC,OAAO,GAAG,KAAK;MACfI,GAAG,CAACE,MAAM,CAAC,CAAC;IACd,CAAC;EACH,CAAC,EAAE,EAAE,CAAC;EACN,OAAOR,OAAO;AAChB","ignoreList":[]}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
# core/icon — shared icon registry
|
|
2
|
+
|
|
3
|
+
Every module's `icon` prop takes a NAME from `IconName`, never a `ReactNode` — same discipline as
|
|
4
|
+
`tone`/`variant` elsewhere in the contract. Hoisted out of `button/` (where it first landed) so the
|
|
5
|
+
other 16 v1 components import one registry instead of each re-copying its own.
|
|
6
|
+
|
|
7
|
+
## Files
|
|
8
|
+
|
|
9
|
+
| File | Role |
|
|
10
|
+
|------|------|
|
|
11
|
+
| `index.tsx` | `Icon` component + `ICON_COMPONENTS` map + the `IconName` union. |
|
|
12
|
+
|
|
13
|
+
## Pattern (do not deviate)
|
|
14
|
+
|
|
15
|
+
- Icons are DEEP-IMPORTED from `lucide-react-native/icons/<kebab-name>`, never the barrel
|
|
16
|
+
`lucide-react-native` — the barrel is ~233 KB and defeats per-icon tree-shaking; a deep import is
|
|
17
|
+
~656 B.
|
|
18
|
+
- `ICON_COMPONENTS` is a STATIC object literal so every deep import stays statically analysable.
|
|
19
|
+
- Adding a glyph: add one deep import + one `ICON_COMPONENTS` entry here. Never add a per-module
|
|
20
|
+
icon map.
|
|
21
|
+
|
|
22
|
+
## Dependencies
|
|
23
|
+
|
|
24
|
+
`lucide-react-native` + `react-native-svg` are optional peers (`package.json`
|
|
25
|
+
`peerDependenciesMeta`) — a consumer app that renders no icon never installs either. Both are
|
|
26
|
+
devDependencies here for local build/typecheck/test only.
|
|
27
|
+
|
|
28
|
+
## Known gaps
|
|
29
|
+
|
|
30
|
+
- Catalogue is a starter set (the icons Button needed). Add names as later components need them.
|
|
31
|
+
Latest addition: `filter` (`filter-sheet`'s trigger glyph — a consumer composes it into its own
|
|
32
|
+
Button; `filter-sheet` itself renders no trigger). Deep-imports from lucide's `funnel` module:
|
|
33
|
+
lucide renamed the `filter` icon to `funnel` and only left a `.d.ts` type alias at the old path
|
|
34
|
+
(no runtime file there) — confirmed by resolving `lucide-react-native/icons/funnel` before adding
|
|
35
|
+
this entry, the same trap `more-horizontal` (now `ellipsis`) already hit once in this registry.
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* The shared icon registry. `icon` props across every module take a NAME from the closed
|
|
5
|
+
* `IconName` union, never a `ReactNode` — same discipline as `tone`/`variant`: a consumer cannot
|
|
6
|
+
* pass an arbitrary component in.
|
|
7
|
+
*
|
|
8
|
+
* Icons are DEEP-IMPORTED from `lucide-react-native/icons/<kebab-name>` (~656 B each), never from
|
|
9
|
+
* the barrel `lucide-react-native` (~233 KB — it defeats per-component tree-shaking). The
|
|
10
|
+
* name→component map is a STATIC object literal so every deep import stays statically analysable.
|
|
11
|
+
*
|
|
12
|
+
* Requires the consumer app to install `lucide-react-native` + `react-native-svg` (both optional
|
|
13
|
+
* peers — see package.json). A component that renders no icon never pays for either.
|
|
14
|
+
*/
|
|
15
|
+
|
|
16
|
+
import ArrowLeft from "lucide-react-native/icons/arrow-left";
|
|
17
|
+
import ArrowRight from "lucide-react-native/icons/arrow-right";
|
|
18
|
+
import Check from "lucide-react-native/icons/check";
|
|
19
|
+
import ChevronDown from "lucide-react-native/icons/chevron-down";
|
|
20
|
+
import ChevronLeft from "lucide-react-native/icons/chevron-left";
|
|
21
|
+
import ChevronRight from "lucide-react-native/icons/chevron-right";
|
|
22
|
+
import ChevronUp from "lucide-react-native/icons/chevron-up";
|
|
23
|
+
import Download from "lucide-react-native/icons/download";
|
|
24
|
+
import ExternalLink from "lucide-react-native/icons/external-link";
|
|
25
|
+
// lucide renamed filter -> funnel; only a .d.ts alias remains for the old path, no runtime file
|
|
26
|
+
import Filter from "lucide-react-native/icons/funnel";
|
|
27
|
+
import LogOut from "lucide-react-native/icons/log-out";
|
|
28
|
+
import Minus from "lucide-react-native/icons/minus";
|
|
29
|
+
// lucide renamed more-horizontal -> ellipsis; only a .d.ts alias remains for the old path, no runtime file
|
|
30
|
+
import MoreHorizontal from "lucide-react-native/icons/ellipsis";
|
|
31
|
+
import Pencil from "lucide-react-native/icons/pencil";
|
|
32
|
+
import Plus from "lucide-react-native/icons/plus";
|
|
33
|
+
import RefreshCw from "lucide-react-native/icons/refresh-cw";
|
|
34
|
+
import Save from "lucide-react-native/icons/save";
|
|
35
|
+
import Search from "lucide-react-native/icons/search";
|
|
36
|
+
import Send from "lucide-react-native/icons/send";
|
|
37
|
+
import Settings from "lucide-react-native/icons/settings";
|
|
38
|
+
import Share from "lucide-react-native/icons/share-2";
|
|
39
|
+
import Trash from "lucide-react-native/icons/trash-2";
|
|
40
|
+
import Upload from "lucide-react-native/icons/upload";
|
|
41
|
+
import X from "lucide-react-native/icons/x";
|
|
42
|
+
|
|
43
|
+
/** The props a lucide icon accepts (a subset — the ones the design system drives). */
|
|
44
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
45
|
+
/**
|
|
46
|
+
* The starter catalogue — grows as components need more glyphs. Keys are the stable public names
|
|
47
|
+
* (`IconName`); adding one here is the only change needed for every module to gain it.
|
|
48
|
+
*/
|
|
49
|
+
export const ICON_COMPONENTS = {
|
|
50
|
+
"arrow-left": ArrowLeft,
|
|
51
|
+
"arrow-right": ArrowRight,
|
|
52
|
+
check: Check,
|
|
53
|
+
"chevron-down": ChevronDown,
|
|
54
|
+
"chevron-left": ChevronLeft,
|
|
55
|
+
"chevron-right": ChevronRight,
|
|
56
|
+
"chevron-up": ChevronUp,
|
|
57
|
+
download: Download,
|
|
58
|
+
"external-link": ExternalLink,
|
|
59
|
+
filter: Filter,
|
|
60
|
+
"log-out": LogOut,
|
|
61
|
+
minus: Minus,
|
|
62
|
+
"more-horizontal": MoreHorizontal,
|
|
63
|
+
pencil: Pencil,
|
|
64
|
+
plus: Plus,
|
|
65
|
+
"refresh-cw": RefreshCw,
|
|
66
|
+
save: Save,
|
|
67
|
+
search: Search,
|
|
68
|
+
send: Send,
|
|
69
|
+
settings: Settings,
|
|
70
|
+
share: Share,
|
|
71
|
+
trash: Trash,
|
|
72
|
+
upload: Upload,
|
|
73
|
+
x: X
|
|
74
|
+
};
|
|
75
|
+
|
|
76
|
+
/** The closed set of icon names a component may reference. */
|
|
77
|
+
|
|
78
|
+
/** Renders a lucide glyph by name. `size`/`color` are resolved values (never a token object). */
|
|
79
|
+
export function Icon({
|
|
80
|
+
name,
|
|
81
|
+
size,
|
|
82
|
+
color,
|
|
83
|
+
strokeWidth = 2
|
|
84
|
+
}) {
|
|
85
|
+
const Glyph = ICON_COMPONENTS[name];
|
|
86
|
+
return /*#__PURE__*/_jsx(Glyph, {
|
|
87
|
+
size: size,
|
|
88
|
+
color: color,
|
|
89
|
+
strokeWidth: strokeWidth
|
|
90
|
+
});
|
|
91
|
+
}
|
|
92
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["ArrowLeft","ArrowRight","Check","ChevronDown","ChevronLeft","ChevronRight","ChevronUp","Download","ExternalLink","Filter","LogOut","Minus","MoreHorizontal","Pencil","Plus","RefreshCw","Save","Search","Send","Settings","Share","Trash","Upload","X","jsx","_jsx","ICON_COMPONENTS","check","download","filter","minus","pencil","plus","save","search","send","settings","share","trash","upload","x","Icon","name","size","color","strokeWidth","Glyph"],"sourceRoot":"../../../../src","sources":["core/icon/index.tsx"],"mappings":";;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAIA,OAAOA,SAAS,MAAM,sCAAsC;AAC5D,OAAOC,UAAU,MAAM,uCAAuC;AAC9D,OAAOC,KAAK,MAAM,iCAAiC;AACnD,OAAOC,WAAW,MAAM,wCAAwC;AAChE,OAAOC,WAAW,MAAM,wCAAwC;AAChE,OAAOC,YAAY,MAAM,yCAAyC;AAClE,OAAOC,SAAS,MAAM,sCAAsC;AAC5D,OAAOC,QAAQ,MAAM,oCAAoC;AACzD,OAAOC,YAAY,MAAM,yCAAyC;AAClE;AACA,OAAOC,MAAM,MAAM,kCAAkC;AACrD,OAAOC,MAAM,MAAM,mCAAmC;AACtD,OAAOC,KAAK,MAAM,iCAAiC;AACnD;AACA,OAAOC,cAAc,MAAM,oCAAoC;AAC/D,OAAOC,MAAM,MAAM,kCAAkC;AACrD,OAAOC,IAAI,MAAM,gCAAgC;AACjD,OAAOC,SAAS,MAAM,sCAAsC;AAC5D,OAAOC,IAAI,MAAM,gCAAgC;AACjD,OAAOC,MAAM,MAAM,kCAAkC;AACrD,OAAOC,IAAI,MAAM,gCAAgC;AACjD,OAAOC,QAAQ,MAAM,oCAAoC;AACzD,OAAOC,KAAK,MAAM,mCAAmC;AACrD,OAAOC,KAAK,MAAM,mCAAmC;AACrD,OAAOC,MAAM,MAAM,kCAAkC;AACrD,OAAOC,CAAC,MAAM,6BAA6B;;AAE3C;AAAA,SAAAC,GAAA,IAAAC,IAAA;AAUA;AACA;AACA;AACA;AACA,OAAO,MAAMC,eAAe,GAAG;EAC7B,YAAY,EAAE1B,SAAS;EACvB,aAAa,EAAEC,UAAU;EACzB0B,KAAK,EAAEzB,KAAK;EACZ,cAAc,EAAEC,WAAW;EAC3B,cAAc,EAAEC,WAAW;EAC3B,eAAe,EAAEC,YAAY;EAC7B,YAAY,EAAEC,SAAS;EACvBsB,QAAQ,EAAErB,QAAQ;EAClB,eAAe,EAAEC,YAAY;EAC7BqB,MAAM,EAAEpB,MAAM;EACd,SAAS,EAAEC,MAAM;EACjBoB,KAAK,EAAEnB,KAAK;EACZ,iBAAiB,EAAEC,cAAc;EACjCmB,MAAM,EAAElB,MAAM;EACdmB,IAAI,EAAElB,IAAI;EACV,YAAY,EAAEC,SAAS;EACvBkB,IAAI,EAAEjB,IAAI;EACVkB,MAAM,EAAEjB,MAAM;EACdkB,IAAI,EAAEjB,IAAI;EACVkB,QAAQ,EAAEjB,QAAQ;EAClBkB,KAAK,EAAEjB,KAAK;EACZkB,KAAK,EAAEjB,KAAK;EACZkB,MAAM,EAAEjB,MAAM;EACdkB,CAAC,EAAEjB;AACL,CAAkD;;AAElD;;AAUA;AACA,OAAO,SAASkB,IAAIA,CAAC;EAAEC,IAAI;EAAEC,IAAI;EAAEC,KAAK;EAAEC,WAAW,GAAG;AAAa,CAAC,EAAE;EACtE,MAAMC,KAAK,GAAGpB,eAAe,CAACgB,IAAI,CAAC;EACnC,oBAAOjB,IAAA,CAACqB,KAAK;IAACH,IAAI,EAAEA,IAAK;IAACC,KAAK,EAAEA,KAAM;IAACC,WAAW,EAAEA;EAAY,CAAE,CAAC;AACtE","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["createVariants","createTextVariants","createThemedVariants","createThemedTextVariants","variantFactory","themedVariantFactory"],"sourceRoot":"../../../../src","sources":["core/style/index.ts"],"mappings":";;AAEA,SACEA,cAAc,EACdC,kBAAkB,EAClBC,oBAAoB,EACpBC,wBAAwB,EACxBC,cAAc,EACdC,oBAAoB,QACf,eAAY","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"../../../../src","sources":["core/style/layoutStyle.ts"],"mappings":"","ignoreList":[]}
|
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import { StyleSheet } from "react-native";
|
|
4
|
+
|
|
5
|
+
/** `{ variant?: "solid" | "outline"; size?: "sm" | "md" }` derived from the config's own keys. */
|
|
6
|
+
|
|
7
|
+
/** `types` is a phantom: never assigned, never read — it carries `V` for `VariantProps`. */
|
|
8
|
+
|
|
9
|
+
/** The component's variant prop type. Derived from the resolver, so a config is the only source. */
|
|
10
|
+
|
|
11
|
+
const BASE_KEY = "@base";
|
|
12
|
+
|
|
13
|
+
// `@` cannot appear in a group name, so these can never collide with a `group:value` key.
|
|
14
|
+
const compoundKey = index => `@compound:${index}`;
|
|
15
|
+
const variantKey = (group, value) => `${group}:${value}`;
|
|
16
|
+
const normalise = selection => {
|
|
17
|
+
const out = {};
|
|
18
|
+
for (const [group, value] of Object.entries(selection)) {
|
|
19
|
+
if (value !== undefined) out[group] = String(value);
|
|
20
|
+
}
|
|
21
|
+
return out;
|
|
22
|
+
};
|
|
23
|
+
const compile = input => {
|
|
24
|
+
const named = {};
|
|
25
|
+
if (input.base) named[BASE_KEY] = input.base;
|
|
26
|
+
const groups = [];
|
|
27
|
+
for (const [group, values] of Object.entries(input.variants ?? {})) {
|
|
28
|
+
groups.push(group);
|
|
29
|
+
for (const [value, style] of Object.entries(values)) {
|
|
30
|
+
named[variantKey(group, value)] = style;
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
const compounds = [];
|
|
34
|
+
(input.compounds ?? []).forEach((compound, index) => {
|
|
35
|
+
named[compoundKey(index)] = compound.style;
|
|
36
|
+
compounds.push(normalise(compound.when));
|
|
37
|
+
});
|
|
38
|
+
return {
|
|
39
|
+
// One registration per config — per theme for themed variants, never per render.
|
|
40
|
+
sheet: StyleSheet.create(named),
|
|
41
|
+
groups,
|
|
42
|
+
defaults: normalise(input.defaults ?? {}),
|
|
43
|
+
compounds
|
|
44
|
+
};
|
|
45
|
+
};
|
|
46
|
+
const matches = (when, active) => Object.entries(when).every(([group, expected]) => active[group] === expected);
|
|
47
|
+
const resolve = (compiled, selection) => {
|
|
48
|
+
const {
|
|
49
|
+
sheet,
|
|
50
|
+
groups,
|
|
51
|
+
defaults,
|
|
52
|
+
compounds
|
|
53
|
+
} = compiled;
|
|
54
|
+
const out = [];
|
|
55
|
+
const base = sheet[BASE_KEY];
|
|
56
|
+
if (base) out.push(base);
|
|
57
|
+
|
|
58
|
+
// An explicitly-passed `undefined` means "prop not set", so it must not erase the default.
|
|
59
|
+
const active = {
|
|
60
|
+
...defaults,
|
|
61
|
+
...(selection ? normalise(selection) : null)
|
|
62
|
+
};
|
|
63
|
+
for (const group of groups) {
|
|
64
|
+
const value = active[group];
|
|
65
|
+
if (value === undefined) continue;
|
|
66
|
+
const style = sheet[variantKey(group, value)];
|
|
67
|
+
if (style) out.push(style);
|
|
68
|
+
}
|
|
69
|
+
compounds.forEach((when, index) => {
|
|
70
|
+
if (!matches(when, active)) return;
|
|
71
|
+
const style = sheet[compoundKey(index)];
|
|
72
|
+
if (style) out.push(style);
|
|
73
|
+
});
|
|
74
|
+
return out;
|
|
75
|
+
};
|
|
76
|
+
const toInput = config => ({
|
|
77
|
+
base: config.base,
|
|
78
|
+
variants: config.variants,
|
|
79
|
+
defaults: config.defaultVariants,
|
|
80
|
+
compounds: config.compoundVariants
|
|
81
|
+
});
|
|
82
|
+
|
|
83
|
+
/**
|
|
84
|
+
* Binds the style kind so `V` stays inferable — TypeScript has no partial type-argument inference,
|
|
85
|
+
* so a single `createVariants<S, V>` would force callers to spell out `V` to pick a style kind.
|
|
86
|
+
*/
|
|
87
|
+
export const variantFactory = () => config => {
|
|
88
|
+
const compiled = compile(toInput(config));
|
|
89
|
+
return selection => resolve(compiled, selection);
|
|
90
|
+
};
|
|
91
|
+
|
|
92
|
+
/**
|
|
93
|
+
* Theme-dependent values cannot live in a module-level `StyleSheet.create` — they change with brand
|
|
94
|
+
* and mode. The sheet is built on first use per theme and cached by theme identity, so it is still
|
|
95
|
+
* registered once, not rebuilt per render. A `WeakMap` means a retired theme's sheet is collectable.
|
|
96
|
+
*
|
|
97
|
+
* This requires the provider to hand out a stable theme object per (brand, mode). A theme rebuilt
|
|
98
|
+
* every render would recompile every sheet every render.
|
|
99
|
+
*/
|
|
100
|
+
export const themedVariantFactory = () => build => {
|
|
101
|
+
const cache = new WeakMap();
|
|
102
|
+
return (theme, selection) => {
|
|
103
|
+
let compiled = cache.get(theme);
|
|
104
|
+
if (compiled === undefined) {
|
|
105
|
+
compiled = compile(toInput(build(theme)));
|
|
106
|
+
cache.set(theme, compiled);
|
|
107
|
+
}
|
|
108
|
+
return resolve(compiled, selection);
|
|
109
|
+
};
|
|
110
|
+
};
|
|
111
|
+
export const createVariants = variantFactory();
|
|
112
|
+
export const createTextVariants = variantFactory();
|
|
113
|
+
export const createThemedVariants = themedVariantFactory();
|
|
114
|
+
export const createThemedTextVariants = themedVariantFactory();
|
|
115
|
+
//# sourceMappingURL=variants.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["StyleSheet","BASE_KEY","compoundKey","index","variantKey","group","value","normalise","selection","out","Object","entries","undefined","String","compile","input","named","base","groups","values","variants","push","style","compounds","forEach","compound","when","sheet","create","defaults","matches","active","every","expected","resolve","compiled","toInput","config","defaultVariants","compoundVariants","variantFactory","themedVariantFactory","build","cache","WeakMap","theme","get","set","createVariants","createTextVariants","createThemedVariants","createThemedTextVariants"],"sourceRoot":"../../../../src","sources":["core/style/variants.ts"],"mappings":"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","ignoreList":[]}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Import-only barrel. LIGHT primitives only.
|
|
5
|
+
*
|
|
6
|
+
* Heavy modules (charts, date-picker, table, editor) are deliberately ABSENT here and reachable
|
|
7
|
+
* only via their subpath — so a lazy barrel import cannot drag a chart engine into an app's
|
|
8
|
+
* bundle, even with every optimizer turned off.
|
|
9
|
+
*
|
|
10
|
+
* Generated re-exports land below; do not add heavy modules by hand.
|
|
11
|
+
*/
|
|
12
|
+
export {};
|
|
13
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"../../src","sources":["index.ts"],"mappings":";;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA","ignoreList":[]}
|