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
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Skeleton's style + accessibility resolution — the pure functions the component (and its tests)
|
|
3
|
+
* depend on, plus the themed structural variant resolver.
|
|
4
|
+
*
|
|
5
|
+
* The split every sibling module copies (see `Button.variants.ts` / `Avatar.variants.ts`):
|
|
6
|
+
* - STRUCTURE (the shape's corner radius) lives in the `createThemedVariants` resolver below —
|
|
7
|
+
* static per (brand, mode), registered once via `StyleSheet.create`.
|
|
8
|
+
* - SIZE is NOT theme-driven: a skeleton's whole job is standing in for a specific piece of
|
|
9
|
+
* content, so `width`/`height` are per-instance numbers the caller supplies (or a per-shape
|
|
10
|
+
* fallback), resolved by `resolveSkeletonSize` and applied inline — never a themed variant,
|
|
11
|
+
* since there is no closed set of values to register.
|
|
12
|
+
* - COLOUR is resolved from the theme's ROLE colours (`resolveSkeletonColors`), never a raw ramp,
|
|
13
|
+
* never a hardcoded hex. There is no `tone` prop to widen — a loading placeholder has exactly
|
|
14
|
+
* one neutral appearance (same reasoning as `resolveAvatarColors`). `pulse` is `base` composited
|
|
15
|
+
* with a fixed-alpha overlay (see `resolveSkeletonColors`), not a second role lookup — two
|
|
16
|
+
* arbitrary role rungs are not guaranteed to differ enough to read as a shimmer.
|
|
17
|
+
* - ACCESSIBILITY prop derivation is `resolveSkeletonAccessibility`, kept pure so the "decorative
|
|
18
|
+
* unless labelled" contract is unit-testable without rendering React Native (same shape as
|
|
19
|
+
* `resolveAvatarAccessibility`).
|
|
20
|
+
*
|
|
21
|
+
* Free of React and of any lucide import, so the WCAG + behaviour tests import it directly (mocking
|
|
22
|
+
* only `react-native`'s `StyleSheet`, as `core/style` and every sibling module's tests do).
|
|
23
|
+
*/
|
|
24
|
+
import type { RoleColors, Theme } from "../../theme";
|
|
25
|
+
export type SkeletonShape = "rect" | "circle" | "text";
|
|
26
|
+
export interface SkeletonSizeSpec {
|
|
27
|
+
readonly width: number;
|
|
28
|
+
readonly height: number;
|
|
29
|
+
}
|
|
30
|
+
/** Fallback dp size per shape, used whenever the caller gives neither `width` nor `height`. */
|
|
31
|
+
export declare const SKELETON_DEFAULT_SIZE: {
|
|
32
|
+
readonly rect: {
|
|
33
|
+
readonly width: 120;
|
|
34
|
+
readonly height: 80;
|
|
35
|
+
};
|
|
36
|
+
readonly circle: {
|
|
37
|
+
readonly width: 40;
|
|
38
|
+
readonly height: 40;
|
|
39
|
+
};
|
|
40
|
+
readonly text: {
|
|
41
|
+
readonly width: 120;
|
|
42
|
+
readonly height: 16;
|
|
43
|
+
};
|
|
44
|
+
};
|
|
45
|
+
/**
|
|
46
|
+
* Resolves the box's actual dp size. `circle` is the one shape that cannot take independent
|
|
47
|
+
* width/height — an unequal pair would render an ellipse under the shared `radii.full` corner
|
|
48
|
+
* radius, not a circle — so a single given dimension mirrors onto the other rather than the two
|
|
49
|
+
* silently drifting apart.
|
|
50
|
+
*/
|
|
51
|
+
export declare function resolveSkeletonSize(shape: SkeletonShape, width: number | undefined, height: number | undefined): SkeletonSizeSpec;
|
|
52
|
+
export interface SkeletonColors {
|
|
53
|
+
/** The resting fill. */
|
|
54
|
+
readonly base: string;
|
|
55
|
+
/** The shimmer overlay colour, cross-faded in and out over `base`. */
|
|
56
|
+
readonly pulse: string;
|
|
57
|
+
}
|
|
58
|
+
/**
|
|
59
|
+
* Maps the placeholder onto role colours, then derives `pulse` as `base` composited with a small,
|
|
60
|
+
* fixed-alpha overlay — never a second role lookup. A prior version returned `base: bg.sunken, pulse:
|
|
61
|
+
* bg.raised`: two role rungs whose luminance gap is whatever the brand's ramp happens to produce, and
|
|
62
|
+
* an independent re-measurement found that gap collapses to visually-indistinguishable on every
|
|
63
|
+
* brand × mode — the shimmer was a silent no-op everywhere, not just on one theme. Compositing a
|
|
64
|
+
* fixed-alpha overlay makes the luminance delta a controlled constant instead of an incidental one,
|
|
65
|
+
* so it can't collapse regardless of how a brand's `bg.raised`/`bg.sunken` rungs happen to relate.
|
|
66
|
+
*/
|
|
67
|
+
export declare function resolveSkeletonColors(colors: RoleColors): SkeletonColors;
|
|
68
|
+
export interface SkeletonAccessibilityInput {
|
|
69
|
+
readonly accessibilityLabel?: string | undefined;
|
|
70
|
+
}
|
|
71
|
+
export interface SkeletonAccessibilityProps {
|
|
72
|
+
/** Groups the placeholder into one accessible element only when it actually carries a name. */
|
|
73
|
+
readonly accessible: boolean;
|
|
74
|
+
readonly accessibilityRole: "progressbar" | undefined;
|
|
75
|
+
readonly accessibilityLabel: string | undefined;
|
|
76
|
+
/** Indeterminate progress is still busy — announced only on the labelled (exposed) path. */
|
|
77
|
+
readonly accessibilityState: {
|
|
78
|
+
readonly busy: boolean;
|
|
79
|
+
} | undefined;
|
|
80
|
+
/** Hides the whole element from assistive tech when decorative. */
|
|
81
|
+
readonly accessibilityElementsHidden: boolean;
|
|
82
|
+
readonly importantForAccessibility: "auto" | "no-hide-descendants";
|
|
83
|
+
}
|
|
84
|
+
/**
|
|
85
|
+
* Derives the accessibility surface once, purely, so the "decorative unless labelled" contract is
|
|
86
|
+
* testable without a renderer (same shape as `resolveAvatarAccessibility`):
|
|
87
|
+
* - no label → the placeholder stands in for content that hasn't rendered yet and carries no
|
|
88
|
+
* meaning of its own, so it is hidden from assistive tech (`accessibilityElementsHidden` on
|
|
89
|
+
* iOS + `importantForAccessibility="no-hide-descendants"` on Android) rather than read as a
|
|
90
|
+
* bare, unexplained box.
|
|
91
|
+
* - a label (e.g. `"Loading"`) → exposed as one `"progressbar"`-role element carrying it, with
|
|
92
|
+
* `busy: true` (WCAG 1.4.1 — the loading state is announced, not left to be inferred from a box
|
|
93
|
+
* appearing on screen).
|
|
94
|
+
*/
|
|
95
|
+
export declare function resolveSkeletonAccessibility(input: SkeletonAccessibilityInput): SkeletonAccessibilityProps;
|
|
96
|
+
/**
|
|
97
|
+
* Structural styles only — the shape's corner radius, plus `overflow: "hidden"` so the animated
|
|
98
|
+
* shimmer overlay (an absolutely-positioned sibling, see `Skeleton.tsx`) clips to it without each
|
|
99
|
+
* shape recomputing the same radius on that overlay. No colour (state-driven, applied inline over
|
|
100
|
+
* this), so this compiles once per theme identity via the `WeakMap`-cached themed resolver and
|
|
101
|
+
* never rebuilds per render.
|
|
102
|
+
*
|
|
103
|
+
* Unlike `Button`, there is no focus ring here that needs to escape the bounds, so `overflow:
|
|
104
|
+
* "hidden"` is safe — nothing else needs to be drawn outside this box.
|
|
105
|
+
*/
|
|
106
|
+
export declare const skeletonStructure: import("../../core/style").ThemedVariantResolver<Theme, {
|
|
107
|
+
shape: {
|
|
108
|
+
rect: {
|
|
109
|
+
borderRadius: 8;
|
|
110
|
+
};
|
|
111
|
+
circle: {
|
|
112
|
+
borderRadius: 9999;
|
|
113
|
+
};
|
|
114
|
+
text: {
|
|
115
|
+
borderRadius: 4;
|
|
116
|
+
};
|
|
117
|
+
};
|
|
118
|
+
}, import("react-native").ViewStyle>;
|
|
119
|
+
//# sourceMappingURL=Skeleton.variants.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Skeleton.variants.d.ts","sourceRoot":"","sources":["../../../../src/modules/skeleton/Skeleton.variants.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;GAsBG;AAEH,OAAO,KAAK,EAAE,UAAU,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AAIrD,MAAM,MAAM,aAAa,GAAG,MAAM,GAAG,QAAQ,GAAG,MAAM,CAAC;AAEvD,MAAM,WAAW,gBAAgB;IAC/B,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;CACzB;AAED,+FAA+F;AAC/F,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;CAI0B,CAAC;AAE7D;;;;;GAKG;AACH,wBAAgB,mBAAmB,CACjC,KAAK,EAAE,aAAa,EACpB,KAAK,EAAE,MAAM,GAAG,SAAS,EACzB,MAAM,EAAE,MAAM,GAAG,SAAS,GACzB,gBAAgB,CAOlB;AAED,MAAM,WAAW,cAAc;IAC7B,wBAAwB;IACxB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,sEAAsE;IACtE,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;CACxB;AASD;;;;;;;;GAQG;AACH,wBAAgB,qBAAqB,CAAC,MAAM,EAAE,UAAU,GAAG,cAAc,CAIxE;AAED,MAAM,WAAW,0BAA0B;IACzC,QAAQ,CAAC,kBAAkB,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAClD;AAED,MAAM,WAAW,0BAA0B;IACzC,+FAA+F;IAC/F,QAAQ,CAAC,UAAU,EAAE,OAAO,CAAC;IAC7B,QAAQ,CAAC,iBAAiB,EAAE,aAAa,GAAG,SAAS,CAAC;IACtD,QAAQ,CAAC,kBAAkB,EAAE,MAAM,GAAG,SAAS,CAAC;IAChD,4FAA4F;IAC5F,QAAQ,CAAC,kBAAkB,EAAE;QAAE,QAAQ,CAAC,IAAI,EAAE,OAAO,CAAA;KAAE,GAAG,SAAS,CAAC;IACpE,mEAAmE;IACnE,QAAQ,CAAC,2BAA2B,EAAE,OAAO,CAAC;IAC9C,QAAQ,CAAC,yBAAyB,EAAE,MAAM,GAAG,qBAAqB,CAAC;CACpE;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,4BAA4B,CAC1C,KAAK,EAAE,0BAA0B,GAChC,0BAA0B,CAU5B;AAED;;;;;;;;;GASG;AACH,eAAO,MAAM,iBAAiB;;;;;;;;;;;;oCAU3B,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Public surface of `pixelize-native-library/skeleton`. Value exports and type exports are split for
|
|
3
|
+
* `verbatimModuleSyntax`. The resolvers (`resolveSkeletonSize`, `resolveSkeletonColors`, …) stay
|
|
4
|
+
* internal — a consumer configures a Skeleton through its props, never by importing its internals.
|
|
5
|
+
*/
|
|
6
|
+
export { Skeleton } from "./Skeleton";
|
|
7
|
+
export type { SkeletonProps } from "./Skeleton";
|
|
8
|
+
export type { SkeletonShape } from "./Skeleton.variants";
|
|
9
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/modules/skeleton/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,YAAY,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAEhD,YAAY,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC"}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Slider — a draggable range control, hand-rolled entirely on React Native's own `PanResponder`
|
|
3
|
+
* (Wave 3's standing rule: no new npm/Expo dependency — the same "we own every interaction
|
|
4
|
+
* primitive" philosophy as `Modal`/`Select` owning RN's raw `<Modal>`).
|
|
5
|
+
*
|
|
6
|
+
* Two design choices worth documenting up front:
|
|
7
|
+
*
|
|
8
|
+
* 1. `PanResponder` is wired on the WHOLE TRACK ROW, not just the visual thumb. A thin 4–6dp thumb
|
|
9
|
+
* would be a poor mobile drag target even before the 44dp floor; a full-width row is both a much
|
|
10
|
+
* larger target AND lets a touch anywhere on the track jump the thumb there directly (the usual
|
|
11
|
+
* native slider affordance). The row's `hitSlop` then only needs to grow the SHORT axis up to
|
|
12
|
+
* 44dp — the long axis already spans the component's full width.
|
|
13
|
+
* 2. Position is read from `evt.nativeEvent.locationX` (the touch's position relative to the row
|
|
14
|
+
* that received it) on every grant/move, NOT from `gestureState.dx` (PanResponder's accumulated
|
|
15
|
+
* delta since the gesture started). `locationX` gives an ABSOLUTE position with no drift and no
|
|
16
|
+
* dependency on the responder's internal touch-history bookkeeping — exactly what a track-based
|
|
17
|
+
* slider needs (the thumb should always sit under the finger, not accumulate a relative offset).
|
|
18
|
+
*/
|
|
19
|
+
import type { LayoutStyle } from "../../core/style";
|
|
20
|
+
import type { SliderSize } from "./Slider.variants";
|
|
21
|
+
export interface SliderProps {
|
|
22
|
+
value: number;
|
|
23
|
+
onValueChange: (value: number) => void;
|
|
24
|
+
/** Fires once, on release (or after an increment/decrement action) — never on every intermediate move. */
|
|
25
|
+
onSlidingComplete?: (value: number) => void;
|
|
26
|
+
min?: number;
|
|
27
|
+
max?: number;
|
|
28
|
+
/** Amount a drag snaps to, and an increment/decrement accessibility action adjusts by. */
|
|
29
|
+
step?: number;
|
|
30
|
+
disabled?: boolean;
|
|
31
|
+
/** Closed union — drives track height + thumb diameter. */
|
|
32
|
+
size?: SliderSize;
|
|
33
|
+
/** Layout-only, outermost, applied exactly once as the LAST entry in the root style array. */
|
|
34
|
+
style?: LayoutStyle;
|
|
35
|
+
/**
|
|
36
|
+
* The control structurally never renders visible text (no `label` prop), so this is the only
|
|
37
|
+
* accessible name a screen reader has — required at the type level, never optional (mirrors
|
|
38
|
+
* `Switch`'s and `Button`'s icon-only contract).
|
|
39
|
+
*/
|
|
40
|
+
accessibilityLabel: string;
|
|
41
|
+
testID?: string;
|
|
42
|
+
}
|
|
43
|
+
export declare const Slider: import("react").NamedExoticComponent<SliderProps>;
|
|
44
|
+
//# sourceMappingURL=Slider.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Slider.d.ts","sourceRoot":"","sources":["../../../../src/modules/slider/Slider.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;GAiBG;AAMH,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAiBpD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAEpD,MAAM,WAAW,WAAW;IAC1B,KAAK,EAAE,MAAM,CAAC;IACd,aAAa,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACvC,0GAA0G;IAC1G,iBAAiB,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAC5C,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,0FAA0F;IAC1F,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,2DAA2D;IAC3D,IAAI,CAAC,EAAE,UAAU,CAAC;IAClB,8FAA8F;IAC9F,KAAK,CAAC,EAAE,WAAW,CAAC;IACpB;;;;OAIG;IACH,kBAAkB,EAAE,MAAM,CAAC;IAC3B,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAaD,eAAO,MAAM,MAAM,mDAwIjB,CAAC"}
|
|
@@ -0,0 +1,211 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Slider's pure math + style + accessibility resolution — the functions the component (and its
|
|
3
|
+
* tests) depend on, plus the themed structural variant resolvers. Same split as `Button.variants.ts`:
|
|
4
|
+
*
|
|
5
|
+
* - STRUCTURE (row height, track height, thumb diameter, radii, border WIDTH) lives in the
|
|
6
|
+
* `createThemedVariants` resolvers below — static per (brand, mode), registered once.
|
|
7
|
+
* - COLOUR is resolved from the theme's ROLE colours (`resolveSliderTrackColors`,
|
|
8
|
+
* `resolveSliderThumbColors`), never a raw ramp, never a hardcoded hex.
|
|
9
|
+
* - DRAG MATH (`resolveSliderPositionValue`, `sliderValueToFraction`, `stepSliderValue`, …) is kept
|
|
10
|
+
* free of React Native so it is unit-testable without a renderer or a real gesture.
|
|
11
|
+
* - ACCESSIBILITY prop derivation is `resolveSliderAccessibility`.
|
|
12
|
+
*
|
|
13
|
+
* Free of `lucide` and of any React tree, so the WCAG + math tests import this directly (mocking
|
|
14
|
+
* only `react-native`'s `StyleSheet`, as `core/style` and `Button.variants.ts` do).
|
|
15
|
+
*/
|
|
16
|
+
import type { RoleColors, Theme } from "../../theme";
|
|
17
|
+
export type SliderSize = "sm" | "md";
|
|
18
|
+
/** Same touch-target floor as every other interactive control in this library (44dp, WCAG 2.5.5 AAA). */
|
|
19
|
+
export declare const MIN_TOUCH_TARGET = 44;
|
|
20
|
+
export interface SliderSizeSpec {
|
|
21
|
+
/** Track height, in dp. */
|
|
22
|
+
readonly trackHeight: number;
|
|
23
|
+
/** Thumb diameter, in dp — also the rendered height of the draggable row. */
|
|
24
|
+
readonly thumbSize: number;
|
|
25
|
+
/** Symmetric vertical touch expansion so `thumbSize + 2·hitSlop ≥ 44`. */
|
|
26
|
+
readonly hitSlop: number;
|
|
27
|
+
}
|
|
28
|
+
export declare const SLIDER_SIZES: {
|
|
29
|
+
readonly sm: {
|
|
30
|
+
readonly trackHeight: 4;
|
|
31
|
+
readonly thumbSize: 16;
|
|
32
|
+
readonly hitSlop: number;
|
|
33
|
+
};
|
|
34
|
+
readonly md: {
|
|
35
|
+
readonly trackHeight: 6;
|
|
36
|
+
readonly thumbSize: 20;
|
|
37
|
+
readonly hitSlop: number;
|
|
38
|
+
};
|
|
39
|
+
};
|
|
40
|
+
/**
|
|
41
|
+
* The row's `hitSlop`, pre-built per size as a MODULE-LEVEL constant (not built inline in the
|
|
42
|
+
* component) so it's a stable object reference across renders, same discipline as every other
|
|
43
|
+
* inline style object in this library. Vertical-only (`left`/`right: 0`): the row already spans the
|
|
44
|
+
* component's full width, so only the short axis needs to grow to the 44dp floor.
|
|
45
|
+
*/
|
|
46
|
+
export declare const SLIDER_HIT_SLOP: {
|
|
47
|
+
readonly sm: {
|
|
48
|
+
readonly top: number;
|
|
49
|
+
readonly bottom: number;
|
|
50
|
+
readonly left: 0;
|
|
51
|
+
readonly right: 0;
|
|
52
|
+
};
|
|
53
|
+
readonly md: {
|
|
54
|
+
readonly top: number;
|
|
55
|
+
readonly bottom: number;
|
|
56
|
+
readonly left: 0;
|
|
57
|
+
readonly right: 0;
|
|
58
|
+
};
|
|
59
|
+
};
|
|
60
|
+
/**
|
|
61
|
+
* Clamps a value onto `[min, max]`. `NaN` (a caller's bad math) clamps to `min` rather than
|
|
62
|
+
* propagating into a `NaN%` width or an invalid `accessibilityValue.now`.
|
|
63
|
+
*/
|
|
64
|
+
export declare function clampSliderValue(value: number, min: number, max: number): number;
|
|
65
|
+
/**
|
|
66
|
+
* Snaps a value onto the nearest `step` multiple measured from `min`, then clamps onto `[min, max]`.
|
|
67
|
+
* A non-positive `step` (a caller error) falls back to `1` rather than dividing by zero.
|
|
68
|
+
*/
|
|
69
|
+
export declare function snapSliderValue(value: number, min: number, max: number, step: number): number;
|
|
70
|
+
/**
|
|
71
|
+
* The fraction (0–1) of the track the current value represents — what both the fill width and the
|
|
72
|
+
* thumb's `left` position render from. Clamped even for an out-of-range `value` a caller might pass
|
|
73
|
+
* directly (never drives a rendered width/position outside the track), and `max ≤ min` (a caller
|
|
74
|
+
* error) resolves to `0` rather than a division by zero.
|
|
75
|
+
*/
|
|
76
|
+
export declare function sliderValueToFraction(value: number, min: number, max: number): number;
|
|
77
|
+
export interface SliderPositionInput {
|
|
78
|
+
/** Touch position, in dp, relative to the LEFT edge of the measured track/row. */
|
|
79
|
+
readonly locationX: number;
|
|
80
|
+
/** The track's measured width (via `onLayout` — a fixed/assumed width is wrong on a real device). */
|
|
81
|
+
readonly trackWidth: number;
|
|
82
|
+
readonly min: number;
|
|
83
|
+
readonly max: number;
|
|
84
|
+
readonly step: number;
|
|
85
|
+
}
|
|
86
|
+
/**
|
|
87
|
+
* Converts a touch's x position within the measured track into a value: the position clamps onto
|
|
88
|
+
* the track bounds first (a touch past either end still resolves to `min`/`max`, not an out-of-range
|
|
89
|
+
* value), then the resulting value snaps onto `step`. Resolves to `min` when the track hasn't been
|
|
90
|
+
* measured yet (`trackWidth ≤ 0`) or `max ≤ min` (a caller error) — never `NaN`.
|
|
91
|
+
*/
|
|
92
|
+
export declare function resolveSliderPositionValue(input: SliderPositionInput): number;
|
|
93
|
+
/**
|
|
94
|
+
* Adjusts `value` by one `step` in `direction`, clamped onto `[min, max]` — the pure core of the
|
|
95
|
+
* `increment`/`decrement` accessibility actions (WCAG 2.5.7's required non-drag alternative).
|
|
96
|
+
*/
|
|
97
|
+
export declare function stepSliderValue(value: number, direction: 1 | -1, min: number, max: number, step: number): number;
|
|
98
|
+
export interface SliderTrackColors {
|
|
99
|
+
/** The full-width resting track. */
|
|
100
|
+
readonly track: string;
|
|
101
|
+
/** The filled portion, up to the current value. */
|
|
102
|
+
readonly fill: string;
|
|
103
|
+
}
|
|
104
|
+
/**
|
|
105
|
+
* Maps the track's two colours onto ROLE tokens — never a raw ramp or a hardcoded hex. `fill` is
|
|
106
|
+
* `accent.text`, NOT the seemingly-obvious `accent.solid`: measured, `accent.solid` against
|
|
107
|
+
* `bg.sunken` falls as low as ~1.6:1 on rosewood light — the exact class of gap `ProgressBar`
|
|
108
|
+
* documented and fixed (a `*.solid` role is only guaranteed to clear contrast against its own
|
|
109
|
+
* derived `onSolid` label, never against an arbitrary neutral surface). `accent.text` is the SAME
|
|
110
|
+
* role `Button`'s outline/ghost/link label uses specifically because it's engineered to read on a
|
|
111
|
+
* pale surface, and measured here at ≥ 4.4:1 against `bg.sunken` for all 8 brands × both modes
|
|
112
|
+
* (`Slider.test.ts`) — comfortably clearing the 3:1 floor this fill actually needs.
|
|
113
|
+
*/
|
|
114
|
+
export declare function resolveSliderTrackColors(colors: RoleColors): SliderTrackColors;
|
|
115
|
+
export interface SliderThumbColors {
|
|
116
|
+
/** Thumb fill. */
|
|
117
|
+
readonly fill: string;
|
|
118
|
+
/** Thumb ring — the boundary that must clear 3:1 against WHATEVER is behind it. */
|
|
119
|
+
readonly border: string;
|
|
120
|
+
}
|
|
121
|
+
/**
|
|
122
|
+
* The thumb can sit over either the resting track (`bg.sunken`) or the filled portion
|
|
123
|
+
* (`accent.text`), and no single flat colour clears 3:1 against both on every brand — measured:
|
|
124
|
+
* `bg.canvas` alone is as low as ~1:1 against `bg.sunken` (they're near-identical on some brands,
|
|
125
|
+
* the same trap `Switch` avoided by measuring against `border.interactive`/`accent.solid`, never
|
|
126
|
+
* `bg.sunken`), and a neutral `border.interactive` ring is as low as ~1:1 against a saturated
|
|
127
|
+
* `accent.text` fill on several brands. So the two boundaries are carried by DIFFERENT parts of the
|
|
128
|
+
* thumb, each measured against the surface it actually needs to clear (`Slider.test.ts`):
|
|
129
|
+
* - `border` (`border.interactive`, the same proven neutral outline `Button`'s outline variant and
|
|
130
|
+
* `Checkbox`'s unchecked box use) is the boundary against the RESTING track — ≥ 3.05:1 worst case.
|
|
131
|
+
* - `fill` (`bg.canvas`, matching `Switch`'s thumb) is the boundary against the ACCENT fill — the
|
|
132
|
+
* much larger fill area clears ≥ 4.6:1 worst case there even though the thin ring alone would not.
|
|
133
|
+
*/
|
|
134
|
+
export declare function resolveSliderThumbColors(colors: RoleColors): SliderThumbColors;
|
|
135
|
+
export interface SliderAccessibilityInput {
|
|
136
|
+
readonly value: number;
|
|
137
|
+
readonly min: number;
|
|
138
|
+
readonly max: number;
|
|
139
|
+
readonly disabled?: boolean | undefined;
|
|
140
|
+
}
|
|
141
|
+
export interface SliderAccessibilityProps {
|
|
142
|
+
readonly accessibilityRole: "adjustable";
|
|
143
|
+
readonly accessibilityValue: {
|
|
144
|
+
readonly min: number;
|
|
145
|
+
readonly max: number;
|
|
146
|
+
readonly now: number;
|
|
147
|
+
};
|
|
148
|
+
readonly accessibilityState: {
|
|
149
|
+
readonly disabled: boolean;
|
|
150
|
+
};
|
|
151
|
+
readonly accessibilityActions: ReadonlyArray<{
|
|
152
|
+
readonly name: "increment" | "decrement";
|
|
153
|
+
}>;
|
|
154
|
+
}
|
|
155
|
+
/**
|
|
156
|
+
* Derives the accessibility surface once, purely, so the contract is testable without a renderer.
|
|
157
|
+
* `now` is clamped onto `[min, max]` — a screen reader must never announce a value the track itself
|
|
158
|
+
* couldn't render. `accessibilityActions` declares BOTH `increment`/`decrement` explicitly: iOS's
|
|
159
|
+
* `adjustable` trait already offers these via the two-finger swipe-up/down gesture without them
|
|
160
|
+
* declared, but Android TalkBack has no native "adjustable" gesture and only surfaces custom actions
|
|
161
|
+
* that are declared here (WCAG 2.5.7 — a drag-only slider has no non-pointer alternative otherwise).
|
|
162
|
+
*/
|
|
163
|
+
export declare function resolveSliderAccessibility(input: SliderAccessibilityInput): SliderAccessibilityProps;
|
|
164
|
+
/**
|
|
165
|
+
* Structural row styles — the draggable node's own dimensions. Height is fixed to the size's
|
|
166
|
+
* `thumbSize` (not `trackHeight`): the row must be tall enough to contain the thumb, which is
|
|
167
|
+
* absolutely positioned within it and vertically centred purely by the row matching its diameter.
|
|
168
|
+
* No colour here — this node's `backgroundColor` is never set; only its children paint.
|
|
169
|
+
*/
|
|
170
|
+
export declare const sliderRowStructure: import("../../core/style").ThemedVariantResolver<Theme, {
|
|
171
|
+
size: {
|
|
172
|
+
sm: {
|
|
173
|
+
height: 16;
|
|
174
|
+
};
|
|
175
|
+
md: {
|
|
176
|
+
height: 20;
|
|
177
|
+
};
|
|
178
|
+
};
|
|
179
|
+
}, import("react-native").ViewStyle>;
|
|
180
|
+
/** Structural track styles — full width, pill radius, clipped so the fill can't poke past it. */
|
|
181
|
+
export declare const sliderTrackStructure: import("../../core/style").ThemedVariantResolver<Theme, {
|
|
182
|
+
size: {
|
|
183
|
+
sm: {
|
|
184
|
+
height: 4;
|
|
185
|
+
};
|
|
186
|
+
md: {
|
|
187
|
+
height: 6;
|
|
188
|
+
};
|
|
189
|
+
};
|
|
190
|
+
}, import("react-native").ViewStyle>;
|
|
191
|
+
/** The filled segment's own corner radius — matches the track's, same reasoning as `ProgressBar`. */
|
|
192
|
+
export declare const sliderFillStructure: import("../../core/style").ThemedVariantResolver<Theme, import("../../core/style").VariantGroups<import("react-native").ViewStyle>, import("react-native").ViewStyle>;
|
|
193
|
+
/**
|
|
194
|
+
* Structural thumb styles — size, pill radius, border WIDTH. No colour (fill/border colour is
|
|
195
|
+
* applied inline from `resolveSliderThumbColors`, same structure/colour split as `checkboxBoxStructure`).
|
|
196
|
+
* `top: 0` relies on the row's height exactly matching `thumbSize` (see `sliderRowStructure`) to
|
|
197
|
+
* centre vertically; `left`/`marginLeft` (the value-driven position) are applied inline per render.
|
|
198
|
+
*/
|
|
199
|
+
export declare const sliderThumbStructure: import("../../core/style").ThemedVariantResolver<Theme, {
|
|
200
|
+
size: {
|
|
201
|
+
sm: {
|
|
202
|
+
width: 16;
|
|
203
|
+
height: 16;
|
|
204
|
+
};
|
|
205
|
+
md: {
|
|
206
|
+
width: 20;
|
|
207
|
+
height: 20;
|
|
208
|
+
};
|
|
209
|
+
};
|
|
210
|
+
}, import("react-native").ViewStyle>;
|
|
211
|
+
//# sourceMappingURL=Slider.variants.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Slider.variants.d.ts","sourceRoot":"","sources":["../../../../src/modules/slider/Slider.variants.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,KAAK,EAAE,UAAU,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AAGrD,MAAM,MAAM,UAAU,GAAG,IAAI,GAAG,IAAI,CAAC;AAErC,yGAAyG;AACzG,eAAO,MAAM,gBAAgB,KAAK,CAAC;AAKnC,MAAM,WAAW,cAAc;IAC7B,2BAA2B;IAC3B,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC;IAC7B,6EAA6E;IAC7E,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;IAC3B,0EAA0E;IAC1E,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;CAC1B;AAED,eAAO,MAAM,YAAY;;;;;;;;;;;CAG8B,CAAC;AAExD;;;;;GAKG;AACH,eAAO,MAAM,eAAe;;;;;;;;;;;;;CAGyE,CAAC;AAEtG;;;GAGG;AACH,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,GAAG,MAAM,CAGhF;AAED;;;GAGG;AACH,wBAAgB,eAAe,CAAC,KAAK,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,MAAM,CAI7F;AAED;;;;;GAKG;AACH,wBAAgB,qBAAqB,CAAC,KAAK,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,GAAG,MAAM,CAGrF;AAED,MAAM,WAAW,mBAAmB;IAClC,kFAAkF;IAClF,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;IAC3B,qGAAqG;IACrG,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;IAC5B,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;CACvB;AAED;;;;;GAKG;AACH,wBAAgB,0BAA0B,CAAC,KAAK,EAAE,mBAAmB,GAAG,MAAM,CAK7E;AAED;;;GAGG;AACH,wBAAgB,eAAe,CAC7B,KAAK,EAAE,MAAM,EACb,SAAS,EAAE,CAAC,GAAG,CAAC,CAAC,EACjB,GAAG,EAAE,MAAM,EACX,GAAG,EAAE,MAAM,EACX,IAAI,EAAE,MAAM,GACX,MAAM,CAER;AAED,MAAM,WAAW,iBAAiB;IAChC,oCAAoC;IACpC,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,mDAAmD;IACnD,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;CACvB;AAED;;;;;;;;;GASG;AACH,wBAAgB,wBAAwB,CAAC,MAAM,EAAE,UAAU,GAAG,iBAAiB,CAE9E;AAED,MAAM,WAAW,iBAAiB;IAChC,kBAAkB;IAClB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,mFAAmF;IACnF,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;CACzB;AAED;;;;;;;;;;;;GAYG;AACH,wBAAgB,wBAAwB,CAAC,MAAM,EAAE,UAAU,GAAG,iBAAiB,CAE9E;AAED,MAAM,WAAW,wBAAwB;IACvC,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,QAAQ,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;CACzC;AAED,MAAM,WAAW,wBAAwB;IACvC,QAAQ,CAAC,iBAAiB,EAAE,YAAY,CAAC;IACzC,QAAQ,CAAC,kBAAkB,EAAE;QAAE,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAC;QAAC,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAC;QAAC,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAA;KAAE,CAAC;IAClG,QAAQ,CAAC,kBAAkB,EAAE;QAAE,QAAQ,CAAC,QAAQ,EAAE,OAAO,CAAA;KAAE,CAAC;IAC5D,QAAQ,CAAC,oBAAoB,EAAE,aAAa,CAAC;QAAE,QAAQ,CAAC,IAAI,EAAE,WAAW,GAAG,WAAW,CAAA;KAAE,CAAC,CAAC;CAC5F;AAED;;;;;;;GAOG;AACH,wBAAgB,0BAA0B,CAAC,KAAK,EAAE,wBAAwB,GAAG,wBAAwB,CAWpG;AAED;;;;;GAKG;AACH,eAAO,MAAM,kBAAkB;;;;;;;;;oCAS5B,CAAC;AAEJ,iGAAiG;AACjG,eAAO,MAAM,oBAAoB;;;;;;;;;oCAS9B,CAAC;AAEJ,qGAAqG;AACrG,eAAO,MAAM,mBAAmB,uKAE7B,CAAC;AAEJ;;;;;GAKG;AACH,eAAO,MAAM,oBAAoB;;;;;;;;;;;oCAS9B,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Public surface of `pixelize-native-library/slider`. Value exports and type exports are split for
|
|
3
|
+
* `verbatimModuleSyntax`. The pure resolvers (`resolveSliderPositionValue`, `SLIDER_SIZES`, …) stay
|
|
4
|
+
* internal — a consumer configures a Slider through its props, never by importing its internals.
|
|
5
|
+
*/
|
|
6
|
+
export { Slider } from "./Slider";
|
|
7
|
+
export type { SliderProps } from "./Slider";
|
|
8
|
+
export type { SliderSize } from "./Slider.variants";
|
|
9
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/modules/slider/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAClC,YAAY,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAE5C,YAAY,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Spinner — a thin themed wrapper around RN's own `<ActivityIndicator>`. The glyph itself is purely
|
|
3
|
+
* decorative chrome, hidden from assistive tech exactly how `Button` treats ITS embedded loading
|
|
4
|
+
* spinner: the OUTER box carries the `progressbar` role, the accessible name, and `busy` state, so a
|
|
5
|
+
* screen reader announces one "Loading" node — never the indicator as a second, redundant element.
|
|
6
|
+
*/
|
|
7
|
+
import type { LayoutStyle } from "../../core/style";
|
|
8
|
+
import type { SpinnerSize, SpinnerTone } from "./Spinner.variants";
|
|
9
|
+
export interface SpinnerProps {
|
|
10
|
+
size?: SpinnerSize;
|
|
11
|
+
tone?: SpinnerTone;
|
|
12
|
+
/** Layout-only, outermost, applied exactly once as the LAST entry in the root style array. */
|
|
13
|
+
style?: LayoutStyle;
|
|
14
|
+
testID?: string;
|
|
15
|
+
/** A Spinner renders no visible text, so this is its only accessible name. Defaults to "Loading". */
|
|
16
|
+
accessibilityLabel?: string;
|
|
17
|
+
}
|
|
18
|
+
export declare const Spinner: import("react").NamedExoticComponent<SpinnerProps>;
|
|
19
|
+
//# sourceMappingURL=Spinner.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Spinner.d.ts","sourceRoot":"","sources":["../../../../src/modules/spinner/Spinner.tsx"],"names":[],"mappings":"AAAA;;;;;GAKG;AAMH,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AASpD,OAAO,KAAK,EAAE,WAAW,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAEnE,MAAM,WAAW,YAAY;IAC3B,IAAI,CAAC,EAAE,WAAW,CAAC;IACnB,IAAI,CAAC,EAAE,WAAW,CAAC;IACnB,8FAA8F;IAC9F,KAAK,CAAC,EAAE,WAAW,CAAC;IACpB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,qGAAqG;IACrG,kBAAkB,CAAC,EAAE,MAAM,CAAC;CAC7B;AAED,eAAO,MAAM,OAAO,oDAuClB,CAAC"}
|
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Spinner's pure resolvers — colour, accessibility, and the size→box/scale mapping. No React, no
|
|
3
|
+
* lucide: same split as `Button.variants.ts`, so the WCAG + behaviour tests import these directly,
|
|
4
|
+
* measuring real palettes instead of eyeballing a hex.
|
|
5
|
+
*/
|
|
6
|
+
import type { RoleColors } from "../../theme";
|
|
7
|
+
export type SpinnerSize = "sm" | "md" | "lg";
|
|
8
|
+
export type SpinnerTone = "accent" | "neutral";
|
|
9
|
+
export interface SpinnerSizeSpec {
|
|
10
|
+
/** The outer box's dp footprint — what layout actually reserves for the spinner. */
|
|
11
|
+
readonly boxSize: number;
|
|
12
|
+
/** Transform scale applied to RN's own `size="small"` (20dp) native indicator to fill `boxSize`. */
|
|
13
|
+
readonly scale: number;
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* RN's `<ActivityIndicator>` ships exactly two native sizes, `"small"` (20dp) and `"large"` (36dp)
|
|
17
|
+
* — no continuous control, and a numeric `size` is Android-only (iOS ignores it). Anchoring every
|
|
18
|
+
* size on `"small"` and reaching `md`/`lg` with a `transform: scale` keeps the rendered glyph the
|
|
19
|
+
* same shape on both platforms, rather than jumping to the fixed `"large"` asset partway through
|
|
20
|
+
* the scale. `boxSize` is `20 × scale`: it exists so the WRAPPING box (`spinnerBox` below) reserves
|
|
21
|
+
* exactly the visually-scaled footprint — a `transform` alone repaints the glyph without touching
|
|
22
|
+
* layout, which would leave `lg` overflowing a box a naive implementation still measured at 20dp.
|
|
23
|
+
*/
|
|
24
|
+
export declare const SPINNER_SIZES: {
|
|
25
|
+
readonly sm: {
|
|
26
|
+
readonly boxSize: 16;
|
|
27
|
+
readonly scale: 0.8;
|
|
28
|
+
};
|
|
29
|
+
readonly md: {
|
|
30
|
+
readonly boxSize: 20;
|
|
31
|
+
readonly scale: 1;
|
|
32
|
+
};
|
|
33
|
+
readonly lg: {
|
|
34
|
+
readonly boxSize: 28;
|
|
35
|
+
readonly scale: 1.4;
|
|
36
|
+
};
|
|
37
|
+
};
|
|
38
|
+
/**
|
|
39
|
+
* Maps `tone` onto ROLE colours — the reason the prop is a closed union and not `color?: string`.
|
|
40
|
+
* `accent` reads the same solid-fill rung `Button`'s solid variant uses; `neutral` is the muted
|
|
41
|
+
* foreground for secondary/inline loading states. Both are measured ≥ 3:1 (WCAG 1.4.11's
|
|
42
|
+
* "Graphical Objects" clause — a spinner is a graphical object required to understand that work is
|
|
43
|
+
* ongoing) against `bg.canvas`, `bg.surface`, AND `bg.raised` on all 8 brands × both modes — see
|
|
44
|
+
* `Spinner.test.ts`.
|
|
45
|
+
*/
|
|
46
|
+
export declare function resolveSpinnerTone(colors: RoleColors, tone: SpinnerTone): string;
|
|
47
|
+
export interface SpinnerAccessibilityInput {
|
|
48
|
+
readonly accessibilityLabel: string | undefined;
|
|
49
|
+
}
|
|
50
|
+
export interface SpinnerAccessibilityProps {
|
|
51
|
+
readonly accessibilityRole: "progressbar";
|
|
52
|
+
readonly accessibilityLabel: string;
|
|
53
|
+
readonly accessibilityState: {
|
|
54
|
+
readonly busy: true;
|
|
55
|
+
};
|
|
56
|
+
}
|
|
57
|
+
/** A Spinner renders no visible text, so this is what AT announces absent an explicit override. */
|
|
58
|
+
export declare const DEFAULT_SPINNER_LABEL = "Loading";
|
|
59
|
+
/**
|
|
60
|
+
* Derives the accessibility surface once, purely, so the fallback label is testable without a
|
|
61
|
+
* renderer. There is no interaction to gate (a Spinner is never pressable) — unlike
|
|
62
|
+
* `resolveButtonAccessibility`, the only decision here is the label fallback; `busy` is always true
|
|
63
|
+
* because a mounted Spinner, by definition, means work is in progress.
|
|
64
|
+
*/
|
|
65
|
+
export declare function resolveSpinnerAccessibility(input: SpinnerAccessibilityInput): SpinnerAccessibilityProps;
|
|
66
|
+
/**
|
|
67
|
+
* The outer box's structural size — no theme dependency (the dimensions are the component's own
|
|
68
|
+
* fixed design constants, not on the theme's spacing scale), so this uses the untethered
|
|
69
|
+
* `createVariants` rather than `createThemedVariants` (the same reasoning `BUTTON_SIZES` documents
|
|
70
|
+
* for being a plain constant). Centers its child so the scaled glyph (`spinnerGlyphScale` below)
|
|
71
|
+
* sits in the middle of the reserved footprint.
|
|
72
|
+
*/
|
|
73
|
+
export declare const spinnerBox: import("../../core/style").VariantResolver<{
|
|
74
|
+
size: {
|
|
75
|
+
sm: {
|
|
76
|
+
width: 16;
|
|
77
|
+
height: 16;
|
|
78
|
+
};
|
|
79
|
+
md: {
|
|
80
|
+
width: 20;
|
|
81
|
+
height: 20;
|
|
82
|
+
};
|
|
83
|
+
lg: {
|
|
84
|
+
width: 28;
|
|
85
|
+
height: 28;
|
|
86
|
+
};
|
|
87
|
+
};
|
|
88
|
+
}, import("react-native").ViewStyle>;
|
|
89
|
+
/**
|
|
90
|
+
* The glyph's own visual scale, applied to the `ActivityIndicator` INSIDE `spinnerBox` — never to
|
|
91
|
+
* the box itself (one node can't both declare "I am 28dp" and "scale me 1.4×" without double-
|
|
92
|
+
* applying the enlargement). Registered once via `createVariants`, same reasoning as `spinnerBox`.
|
|
93
|
+
*/
|
|
94
|
+
export declare const spinnerGlyphScale: import("../../core/style").VariantResolver<{
|
|
95
|
+
size: {
|
|
96
|
+
sm: {
|
|
97
|
+
transform: {
|
|
98
|
+
scale: 0.8;
|
|
99
|
+
}[];
|
|
100
|
+
};
|
|
101
|
+
md: {
|
|
102
|
+
transform: {
|
|
103
|
+
scale: 1;
|
|
104
|
+
}[];
|
|
105
|
+
};
|
|
106
|
+
lg: {
|
|
107
|
+
transform: {
|
|
108
|
+
scale: 1.4;
|
|
109
|
+
}[];
|
|
110
|
+
};
|
|
111
|
+
};
|
|
112
|
+
}, import("react-native").ViewStyle>;
|
|
113
|
+
//# sourceMappingURL=Spinner.variants.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Spinner.variants.d.ts","sourceRoot":"","sources":["../../../../src/modules/spinner/Spinner.variants.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAG9C,MAAM,MAAM,WAAW,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;AAC7C,MAAM,MAAM,WAAW,GAAG,QAAQ,GAAG,SAAS,CAAC;AAE/C,MAAM,WAAW,eAAe;IAC9B,oFAAoF;IACpF,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IACzB,oGAAoG;IACpG,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;CACxB;AAED;;;;;;;;GAQG;AACH,eAAO,MAAM,aAAa;;;;;;;;;;;;;CAI+B,CAAC;AAE1D;;;;;;;GAOG;AACH,wBAAgB,kBAAkB,CAAC,MAAM,EAAE,UAAU,EAAE,IAAI,EAAE,WAAW,GAAG,MAAM,CAOhF;AAED,MAAM,WAAW,yBAAyB;IACxC,QAAQ,CAAC,kBAAkB,EAAE,MAAM,GAAG,SAAS,CAAC;CACjD;AAED,MAAM,WAAW,yBAAyB;IACxC,QAAQ,CAAC,iBAAiB,EAAE,aAAa,CAAC;IAC1C,QAAQ,CAAC,kBAAkB,EAAE,MAAM,CAAC;IACpC,QAAQ,CAAC,kBAAkB,EAAE;QAAE,QAAQ,CAAC,IAAI,EAAE,IAAI,CAAA;KAAE,CAAC;CACtD;AAED,mGAAmG;AACnG,eAAO,MAAM,qBAAqB,YAAY,CAAC;AAE/C;;;;;GAKG;AACH,wBAAgB,2BAA2B,CACzC,KAAK,EAAE,yBAAyB,GAC/B,yBAAyB,CAM3B;AAED;;;;;;GAMG;AACH,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;oCAUrB,CAAC;AAEH;;;;GAIG;AACH,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;oCAS5B,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Public surface of `pixelize-native-library/spinner`. Value exports and type exports are split for
|
|
3
|
+
* `verbatimModuleSyntax`, mirroring `button/index.ts`. The resolvers (`resolveSpinnerTone`,
|
|
4
|
+
* `SPINNER_SIZES`, …) stay internal — a consumer configures a Spinner through its props only. No
|
|
5
|
+
* `icon` prop, so unlike `button/index.ts` there is no `IconName` re-export.
|
|
6
|
+
*/
|
|
7
|
+
export { Spinner } from "./Spinner";
|
|
8
|
+
export type { SpinnerProps } from "./Spinner";
|
|
9
|
+
export type { SpinnerSize, SpinnerTone } from "./Spinner.variants";
|
|
10
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/modules/spinner/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,YAAY,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AAE9C,YAAY,EAAE,WAAW,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Stepper — a horizontal, multi-step progress DISPLAY (checkout/onboarding: "Step 2 of 4"). v1 is
|
|
3
|
+
* deliberately non-interactive: no `onPress`, no `onStepPress` — a small, display-only surface, per
|
|
4
|
+
* spec. The whole row collapses into ONE `progressbar`-role accessible node (`accessible` on the
|
|
5
|
+
* container) so a screen reader gets a single summary announcement instead of reading every circle
|
|
6
|
+
* and label individually, the same collapsing idiom `Badge` uses for its icon + label.
|
|
7
|
+
*
|
|
8
|
+
* Each step is its own `flex: 1` column so the circles stay evenly spaced regardless of label
|
|
9
|
+
* length; the connector to the NEXT step is drawn as two identically-coloured halves — the trailing
|
|
10
|
+
* half of this column, the leading half of the next — so a circle stays centered under its own
|
|
11
|
+
* label rather than centered between two circles' worth of connector.
|
|
12
|
+
*/
|
|
13
|
+
import type { LayoutStyle } from "../../core/style";
|
|
14
|
+
export interface StepperStep {
|
|
15
|
+
readonly label: string;
|
|
16
|
+
}
|
|
17
|
+
export interface StepperProps {
|
|
18
|
+
steps: StepperStep[];
|
|
19
|
+
/** 0-indexed: `0` is the first step. */
|
|
20
|
+
activeStep: number;
|
|
21
|
+
/** Layout-only, outermost, applied exactly once as the LAST entry in the root style array. */
|
|
22
|
+
style?: LayoutStyle;
|
|
23
|
+
testID?: string;
|
|
24
|
+
}
|
|
25
|
+
export declare const Stepper: import("react").NamedExoticComponent<StepperProps>;
|
|
26
|
+
//# sourceMappingURL=Stepper.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Stepper.d.ts","sourceRoot":"","sources":["../../../../src/modules/stepper/Stepper.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAKH,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAcpD,MAAM,WAAW,WAAW;IAC1B,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;CACxB;AAED,MAAM,WAAW,YAAY;IAC3B,KAAK,EAAE,WAAW,EAAE,CAAC;IACrB,wCAAwC;IACxC,UAAU,EAAE,MAAM,CAAC;IACnB,8FAA8F;IAC9F,KAAK,CAAC,EAAE,WAAW,CAAC;IACpB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,eAAO,MAAM,OAAO,oDA2DlB,CAAC"}
|