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,170 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* NumberInput's style + behaviour resolution — same split as Input.variants:
|
|
3
|
+
* - STRUCTURE (height, width, border WIDTH) lives in the themed `numberInputStructure` /
|
|
4
|
+
* `numberInputStepperStructure` resolvers, static per (brand, mode).
|
|
5
|
+
* - COLOUR is `status`-driven (never a free `color` prop), resolved from the theme's ROLE colours by
|
|
6
|
+
* `resolveNumberInputStatus` — same border token choice as Input, and for the same reason
|
|
7
|
+
* (`status.danger.border` fails 3:1 against the canvas on several brands; `status.danger.solid`
|
|
8
|
+
* clears it everywhere).
|
|
9
|
+
* - VALUE handling (`clampNumberInputValue`, `parseNumberInputDraft`, `canDecrementNumberInput` /
|
|
10
|
+
* `canIncrementNumberInput`) and ACCESSIBILITY prop derivation (`resolveNumberInputAccessibility`)
|
|
11
|
+
* are kept pure so the clamping/limit contract is unit-testable without rendering React Native.
|
|
12
|
+
*
|
|
13
|
+
* Free of `lucide` and of any React tree, so the WCAG + behaviour tests import it directly (mocking
|
|
14
|
+
* only `react-native`'s `StyleSheet`, as `core/style` does).
|
|
15
|
+
*/
|
|
16
|
+
import type { RoleColors, Theme } from "../../theme";
|
|
17
|
+
export type NumberInputSize = "sm" | "md" | "lg";
|
|
18
|
+
/** A state, not a brand tone — same reasoning as Input's `status`. */
|
|
19
|
+
export type NumberInputStatus = "default" | "error";
|
|
20
|
+
/** Same floor as Button/Input/Select — 44dp (WCAG 2.5.5 / HIG). Duplicated, not imported: modules
|
|
21
|
+
* stay isolated. */
|
|
22
|
+
export declare const MIN_TOUCH_TARGET = 44;
|
|
23
|
+
export interface NumberInputSizeSpec {
|
|
24
|
+
/** Visual row/stepper height in dp. Stepper buttons are square: width === height. */
|
|
25
|
+
readonly height: number;
|
|
26
|
+
/** Value text size, on the theme's `fontSizes` scale. */
|
|
27
|
+
readonly fontSize: number;
|
|
28
|
+
/** Stepper glyph size in dp. */
|
|
29
|
+
readonly iconSize: number;
|
|
30
|
+
/** Symmetric touch expansion so `height + 2·hitSlop ≥ 44`. */
|
|
31
|
+
readonly hitSlop: number;
|
|
32
|
+
}
|
|
33
|
+
/** Same numbers as Input's sizes, so a NumberInput lines up beside a plain field. */
|
|
34
|
+
export declare const NUMBER_INPUT_SIZES: {
|
|
35
|
+
readonly sm: {
|
|
36
|
+
readonly height: 32;
|
|
37
|
+
readonly fontSize: 14;
|
|
38
|
+
readonly iconSize: 16;
|
|
39
|
+
readonly hitSlop: number;
|
|
40
|
+
};
|
|
41
|
+
readonly md: {
|
|
42
|
+
readonly height: 40;
|
|
43
|
+
readonly fontSize: 16;
|
|
44
|
+
readonly iconSize: 18;
|
|
45
|
+
readonly hitSlop: number;
|
|
46
|
+
};
|
|
47
|
+
readonly lg: {
|
|
48
|
+
readonly height: 48;
|
|
49
|
+
readonly fontSize: 18;
|
|
50
|
+
readonly iconSize: 20;
|
|
51
|
+
readonly hitSlop: number;
|
|
52
|
+
};
|
|
53
|
+
};
|
|
54
|
+
export interface NumberInputStatusColors {
|
|
55
|
+
/** Field border — the neutral interactive outline, or the danger outline in "error" (≥ 3:1). */
|
|
56
|
+
readonly border: string;
|
|
57
|
+
}
|
|
58
|
+
export interface NumberInputStepperPressColors {
|
|
59
|
+
/** Pressed-state fill for a stepper `Pressable`. */
|
|
60
|
+
readonly fill: string;
|
|
61
|
+
/** Icon colour while that fill is showing — inverted so it stays readable on it. */
|
|
62
|
+
readonly icon: string;
|
|
63
|
+
}
|
|
64
|
+
/**
|
|
65
|
+
* Pressed-state colours for the stepper buttons. Deliberately NOT `bg.sunken`: a stepper carries no
|
|
66
|
+
* background at rest, so its fill's only edge is against `bg.canvas` — and `bg.sunken` measures only
|
|
67
|
+
* ~1.0–1.12:1 there (WCAG 1.4.11 needs ≥ 3:1). This reuses Button's own "neutral" solid recipe
|
|
68
|
+
* (`fg.default` fill / `bg.canvas` label) instead of inventing a new colour: `fg.default` is already
|
|
69
|
+
* proven ≥ 4.5:1 against `bg.canvas` by the resting-icon test above, and contrast is symmetric, so the
|
|
70
|
+
* fill clears the 3:1 non-text minimum AND the inverted icon clears 4.5:1 text contrast on it, on
|
|
71
|
+
* every brand × mode, for free — see the `it.each` measurement in `NumberInput.test.ts`.
|
|
72
|
+
*
|
|
73
|
+
* Keyboard/AT focus is a SEPARATE indicator — the offset `border.focus` ring `NumberInput.tsx` draws
|
|
74
|
+
* per stepper, same geometry/token as Button/Input/Checkbox. This fill is for the touch press only.
|
|
75
|
+
*/
|
|
76
|
+
export declare function resolveNumberInputStepperPressColors(colors: RoleColors): NumberInputStepperPressColors;
|
|
77
|
+
/**
|
|
78
|
+
* Maps `status` onto the theme's role colours — identical reasoning and token choice to Input's
|
|
79
|
+
* `resolveInputStatus`: the error border deliberately reads `status.danger.solid`, NOT
|
|
80
|
+
* `status.danger.border` (the latter is the decorative chip/badge outline and measures below 3:1
|
|
81
|
+
* against the canvas on several brand × mode combinations).
|
|
82
|
+
*/
|
|
83
|
+
export declare function resolveNumberInputStatus(colors: RoleColors, status: NumberInputStatus): NumberInputStatusColors;
|
|
84
|
+
export interface NumberInputAccessibilityInput {
|
|
85
|
+
readonly label?: string | undefined;
|
|
86
|
+
readonly accessibilityLabel?: string | undefined;
|
|
87
|
+
readonly disabled?: boolean | undefined;
|
|
88
|
+
}
|
|
89
|
+
export interface NumberInputAccessibilityProps {
|
|
90
|
+
/** Falls back to the visible label — a sibling `Text`, not a wrapping element RN can associate. */
|
|
91
|
+
readonly accessibilityLabel: string | undefined;
|
|
92
|
+
readonly accessibilityState: {
|
|
93
|
+
readonly disabled: boolean;
|
|
94
|
+
};
|
|
95
|
+
/** The `TextInput` `editable` prop — false while disabled, so the field blocks typing. */
|
|
96
|
+
readonly editable: boolean;
|
|
97
|
+
}
|
|
98
|
+
/** Same fallback contract as `resolveInputAccessibility`: an explicit `accessibilityLabel` always
|
|
99
|
+
* wins over the visible label. */
|
|
100
|
+
export declare function resolveNumberInputAccessibility(input: NumberInputAccessibilityInput): NumberInputAccessibilityProps;
|
|
101
|
+
/** Clamps to [min, max]. Either bound may be absent, meaning "no floor"/"no ceiling" on that side. */
|
|
102
|
+
export declare function clampNumberInputValue(value: number, min?: number, max?: number): number;
|
|
103
|
+
/**
|
|
104
|
+
* Parses a typed draft to a finite number, or `null` for anything that isn't a complete number yet
|
|
105
|
+
* ("", "-", ".", "-.") — so the caller can tell "no value yet" apart from a real `0` and doesn't
|
|
106
|
+
* commit a bogus `NaN`/clamp on every half-typed keystroke.
|
|
107
|
+
*/
|
|
108
|
+
export declare function parseNumberInputDraft(raw: string): number | null;
|
|
109
|
+
export interface NumberInputLimitInput {
|
|
110
|
+
readonly value: number;
|
|
111
|
+
readonly min?: number | undefined;
|
|
112
|
+
readonly max?: number | undefined;
|
|
113
|
+
readonly disabled?: boolean | undefined;
|
|
114
|
+
}
|
|
115
|
+
/** Decrement is blocked once `value` is already at (or below) `min`, or the field is disabled. */
|
|
116
|
+
export declare function canDecrementNumberInput(input: NumberInputLimitInput): boolean;
|
|
117
|
+
/** Increment is blocked once `value` is already at (or above) `max`, or the field is disabled. */
|
|
118
|
+
export declare function canIncrementNumberInput(input: NumberInputLimitInput): boolean;
|
|
119
|
+
/**
|
|
120
|
+
* Structural styles for the field row — layout, height, border WIDTH. No colours (status-driven,
|
|
121
|
+
* applied inline over this), so this compiles once per theme identity via the `WeakMap`-cached
|
|
122
|
+
* themed resolver and never rebuilds per render.
|
|
123
|
+
*/
|
|
124
|
+
export declare const numberInputStructure: import("../../core/style").ThemedVariantResolver<Theme, {
|
|
125
|
+
size: {
|
|
126
|
+
sm: {
|
|
127
|
+
height: 32;
|
|
128
|
+
};
|
|
129
|
+
md: {
|
|
130
|
+
height: 40;
|
|
131
|
+
};
|
|
132
|
+
lg: {
|
|
133
|
+
height: 48;
|
|
134
|
+
};
|
|
135
|
+
};
|
|
136
|
+
}, import("react-native").ViewStyle>;
|
|
137
|
+
/**
|
|
138
|
+
* Structural styles for each stepper button. `alignSelf: "stretch"` is the same fix Input's own
|
|
139
|
+
* `TextInput` carries: without it, the row's `alignItems: "center"` shrinks the button to its
|
|
140
|
+
* intrinsic content height instead of the row's full `spec.height`, silently voiding the `hitSlop`
|
|
141
|
+
* touch-target math (a real Wave-1 bug on Input — not one to repeat here). The corner radii on the
|
|
142
|
+
* outer edge match the row's own `radii.base` so a pressed/focused fill doesn't square off past the
|
|
143
|
+
* row's rounded corner.
|
|
144
|
+
*/
|
|
145
|
+
export declare const numberInputStepperStructure: import("../../core/style").ThemedVariantResolver<Theme, {
|
|
146
|
+
size: {
|
|
147
|
+
sm: {
|
|
148
|
+
width: 32;
|
|
149
|
+
};
|
|
150
|
+
md: {
|
|
151
|
+
width: 40;
|
|
152
|
+
};
|
|
153
|
+
lg: {
|
|
154
|
+
width: 48;
|
|
155
|
+
};
|
|
156
|
+
};
|
|
157
|
+
position: {
|
|
158
|
+
leading: {
|
|
159
|
+
borderRightWidth: 1;
|
|
160
|
+
borderTopLeftRadius: 8;
|
|
161
|
+
borderBottomLeftRadius: 8;
|
|
162
|
+
};
|
|
163
|
+
trailing: {
|
|
164
|
+
borderLeftWidth: 1;
|
|
165
|
+
borderTopRightRadius: 8;
|
|
166
|
+
borderBottomRightRadius: 8;
|
|
167
|
+
};
|
|
168
|
+
};
|
|
169
|
+
}, import("react-native").ViewStyle>;
|
|
170
|
+
//# sourceMappingURL=NumberInput.variants.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"NumberInput.variants.d.ts","sourceRoot":"","sources":["../../../../src/modules/number-input/NumberInput.variants.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,KAAK,EAAE,UAAU,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AAGrD,MAAM,MAAM,eAAe,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;AACjD,sEAAsE;AACtE,MAAM,MAAM,iBAAiB,GAAG,SAAS,GAAG,OAAO,CAAC;AAEpD;qBACqB;AACrB,eAAO,MAAM,gBAAgB,KAAK,CAAC;AAInC,MAAM,WAAW,mBAAmB;IAClC,qFAAqF;IACrF,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB,yDAAyD;IACzD,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;IAC1B,gCAAgC;IAChC,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;IAC1B,8DAA8D;IAC9D,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;CAC1B;AAED,qFAAqF;AACrF,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;CAIkC,CAAC;AAElE,MAAM,WAAW,uBAAuB;IACtC,gGAAgG;IAChG,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;CACzB;AAED,MAAM,WAAW,6BAA6B;IAC5C,oDAAoD;IACpD,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,oFAAoF;IACpF,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;CACvB;AAED;;;;;;;;;;;GAWG;AACH,wBAAgB,oCAAoC,CAAC,MAAM,EAAE,UAAU,GAAG,6BAA6B,CAEtG;AAED;;;;;GAKG;AACH,wBAAgB,wBAAwB,CACtC,MAAM,EAAE,UAAU,EAClB,MAAM,EAAE,iBAAiB,GACxB,uBAAuB,CAKzB;AAED,MAAM,WAAW,6BAA6B;IAC5C,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACpC,QAAQ,CAAC,kBAAkB,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACjD,QAAQ,CAAC,QAAQ,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;CACzC;AAED,MAAM,WAAW,6BAA6B;IAC5C,mGAAmG;IACnG,QAAQ,CAAC,kBAAkB,EAAE,MAAM,GAAG,SAAS,CAAC;IAChD,QAAQ,CAAC,kBAAkB,EAAE;QAAE,QAAQ,CAAC,QAAQ,EAAE,OAAO,CAAA;KAAE,CAAC;IAC5D,0FAA0F;IAC1F,QAAQ,CAAC,QAAQ,EAAE,OAAO,CAAC;CAC5B;AAED;mCACmC;AACnC,wBAAgB,+BAA+B,CAC7C,KAAK,EAAE,6BAA6B,GACnC,6BAA6B,CAO/B;AAED,sGAAsG;AACtG,wBAAgB,qBAAqB,CAAC,KAAK,EAAE,MAAM,EAAE,GAAG,CAAC,EAAE,MAAM,EAAE,GAAG,CAAC,EAAE,MAAM,GAAG,MAAM,CAKvF;AAED;;;;GAIG;AACH,wBAAgB,qBAAqB,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAKhE;AAED,MAAM,WAAW,qBAAqB;IACpC,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,GAAG,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAClC,QAAQ,CAAC,GAAG,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAClC,QAAQ,CAAC,QAAQ,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;CACzC;AAED,kGAAkG;AAClG,wBAAgB,uBAAuB,CAAC,KAAK,EAAE,qBAAqB,GAAG,OAAO,CAG7E;AAED,kGAAkG;AAClG,wBAAgB,uBAAuB,CAAC,KAAK,EAAE,qBAAqB,GAAG,OAAO,CAG7E;AAED;;;;GAIG;AACH,eAAO,MAAM,oBAAoB;;;;;;;;;;;;oCAe9B,CAAC;AAEJ;;;;;;;GAOG;AACH,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;;;;;;;;;;oCA0BrC,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Public surface of `pixelize-native-library/number-input`. Value exports and type exports are split for
|
|
3
|
+
* `verbatimModuleSyntax`. The visual/behaviour resolvers (`resolveNumberInputStatus`,
|
|
4
|
+
* `NUMBER_INPUT_SIZES`, …) stay internal — a consumer configures a NumberInput through its props,
|
|
5
|
+
* never by importing its internals. The stepper icons are fixed ("minus"/"plus"), so there is no
|
|
6
|
+
* `icon` prop and nothing to re-export from `core/icon`.
|
|
7
|
+
*/
|
|
8
|
+
export { NumberInput } from "./NumberInput";
|
|
9
|
+
export type { NumberInputProps } from "./NumberInput";
|
|
10
|
+
export type { NumberInputSize, NumberInputStatus } from "./NumberInput.variants";
|
|
11
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/modules/number-input/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,YAAY,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAC;AAEtD,YAAY,EAAE,eAAe,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC"}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* PinInput — OTP-style multi-box code entry. Backed by ONE real (near-invisible) `TextInput` that
|
|
3
|
+
* captures the actual keyboard input; the N visual boxes are a pure PROJECTION of that single
|
|
4
|
+
* controlled `value` string, never N separately-focusable fields. This is deliberate, not a
|
|
5
|
+
* shortcut: managing focus across N `TextInput`s is fragile (advancing on every keystroke breaks
|
|
6
|
+
* on backspace/selection) and defeats OS paste — a pasted code lands in whichever box happened to
|
|
7
|
+
* be focused instead of filling the whole field. One field, one source of truth.
|
|
8
|
+
*
|
|
9
|
+
* Touch target: the ROW is the single 44dp+ touch target (`hitSlop` on the wrapping `Pressable`),
|
|
10
|
+
* not per-box targets — tapping ANY box focuses the same underlying field, so splitting the target
|
|
11
|
+
* per box would just be N ways to trigger the identical action.
|
|
12
|
+
*/
|
|
13
|
+
import type { LayoutStyle } from "../../core/style";
|
|
14
|
+
import type { PinInputKeyboardType, PinInputSize, PinInputStatus } from "./PinInput.variants";
|
|
15
|
+
export interface PinInputProps {
|
|
16
|
+
/** Number of boxes / max code length. */
|
|
17
|
+
length?: number;
|
|
18
|
+
value: string;
|
|
19
|
+
onValueChange: (value: string) => void;
|
|
20
|
+
/** Fires once per completion — when `value.length` reaches `length` on a CHANGE, never on every re-render while already full. */
|
|
21
|
+
onComplete?: (value: string) => void;
|
|
22
|
+
/**
|
|
23
|
+
* Renders a dot instead of the character per box — the masking concept `Input`'s `secureTextEntry`
|
|
24
|
+
* uses. Also forwarded to the real hidden `TextInput` (so OS-level secure-input behaviour engages)
|
|
25
|
+
* and masks the announced `accessibilityValue` — a screen reader must never speak the raw digits.
|
|
26
|
+
*/
|
|
27
|
+
secureTextEntry?: boolean;
|
|
28
|
+
keyboardType?: PinInputKeyboardType;
|
|
29
|
+
status?: PinInputStatus;
|
|
30
|
+
disabled?: boolean;
|
|
31
|
+
size?: PinInputSize;
|
|
32
|
+
autoFocus?: boolean;
|
|
33
|
+
/** Layout-only, outermost, applied exactly once as the LAST entry in the root style array. */
|
|
34
|
+
style?: LayoutStyle;
|
|
35
|
+
testID?: string;
|
|
36
|
+
/** REQUIRED — this is effectively one field with no visible text label (e.g. "6-digit verification code"). */
|
|
37
|
+
accessibilityLabel: string;
|
|
38
|
+
}
|
|
39
|
+
export declare const PinInput: import("react").NamedExoticComponent<PinInputProps>;
|
|
40
|
+
//# sourceMappingURL=PinInput.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PinInput.d.ts","sourceRoot":"","sources":["../../../../src/modules/pin-input/PinInput.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAKH,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAapD,OAAO,KAAK,EAAE,oBAAoB,EAAE,YAAY,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAE9F,MAAM,WAAW,aAAa;IAC5B,yCAAyC;IACzC,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,KAAK,EAAE,MAAM,CAAC;IACd,aAAa,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACvC,iIAAiI;IACjI,UAAU,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACrC;;;;OAIG;IACH,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,YAAY,CAAC,EAAE,oBAAoB,CAAC;IACpC,MAAM,CAAC,EAAE,cAAc,CAAC;IACxB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,IAAI,CAAC,EAAE,YAAY,CAAC;IACpB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,8FAA8F;IAC9F,KAAK,CAAC,EAAE,WAAW,CAAC;IACpB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,8GAA8G;IAC9G,kBAAkB,EAAE,MAAM,CAAC;CAC5B;AAKD,eAAO,MAAM,QAAQ,qDA2InB,CAAC"}
|
|
@@ -0,0 +1,164 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* PinInput's style + behaviour resolution — same split as Button/Input:
|
|
3
|
+
* - STRUCTURE (box size, row gap, border WIDTH) lives in the themed `pinInputRowStructure` /
|
|
4
|
+
* `pinInputBoxStructure` resolvers, static per (brand, mode), registered once via
|
|
5
|
+
* `StyleSheet.create`.
|
|
6
|
+
* - COLOUR is `status`-driven (never a free `color` prop) and resolved from the theme's ROLE
|
|
7
|
+
* colours by `resolvePinInputBoxColors`, so it is guaranteed legible in both modes.
|
|
8
|
+
* - The keystroke/paste contract (`clampPinInputValue`), the active-box index
|
|
9
|
+
* (`resolvePinInputActiveIndex`), completion (`isPinInputComplete`), and accessibility prop
|
|
10
|
+
* derivation (`resolvePinInputAccessibility`) are kept pure so they are unit-testable without
|
|
11
|
+
* rendering React Native.
|
|
12
|
+
*
|
|
13
|
+
* Free of React and of any `TextInput`/`Pressable` import, so the WCAG + behaviour tests import it
|
|
14
|
+
* directly (mocking only `react-native`'s `StyleSheet`, as `core/style` does).
|
|
15
|
+
*/
|
|
16
|
+
import type { RoleColors, Theme } from "../../theme";
|
|
17
|
+
export type PinInputSize = "sm" | "md" | "lg";
|
|
18
|
+
/** A validity state, not a brand tone — same reasoning as `InputStatus`. */
|
|
19
|
+
export type PinInputStatus = "default" | "error";
|
|
20
|
+
export type PinInputKeyboardType = "number-pad" | "default";
|
|
21
|
+
/** Same floor as Button/Input — 44dp (WCAG 2.5.5 / HIG). Duplicated, not imported: modules stay isolated. */
|
|
22
|
+
export declare const MIN_TOUCH_TARGET = 44;
|
|
23
|
+
export interface PinInputSizeSpec {
|
|
24
|
+
/** Visual box width/height in dp (boxes are square). */
|
|
25
|
+
readonly boxSize: number;
|
|
26
|
+
/** Digit glyph size, on the theme's `fontSizes` scale (20/24/30). */
|
|
27
|
+
readonly fontSize: number;
|
|
28
|
+
/** Masked-dot diameter in dp, used instead of the glyph when `secureTextEntry` is set. */
|
|
29
|
+
readonly dotSize: number;
|
|
30
|
+
/** Horizontal gap between boxes in dp. */
|
|
31
|
+
readonly gap: number;
|
|
32
|
+
/**
|
|
33
|
+
* Symmetric touch expansion applied to the ROW (not per box) so
|
|
34
|
+
* `boxSize + 2·hitSlop ≥ 44` — see the "one contiguous touch target" note on `PinInput.tsx`.
|
|
35
|
+
*/
|
|
36
|
+
readonly hitSlop: number;
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
* PinInput-specific dimensions. Box size / dot size / gap are the component's own design
|
|
40
|
+
* constants; `fontSize` sits on the theme's `fontSizes` scale (xl/2xl/3xl = 20/24/30) — a digit
|
|
41
|
+
* reads larger than body text, unlike Button/Input's 14/16/18 label sizes.
|
|
42
|
+
*/
|
|
43
|
+
export declare const PIN_INPUT_SIZES: {
|
|
44
|
+
readonly sm: {
|
|
45
|
+
readonly boxSize: 40;
|
|
46
|
+
readonly fontSize: 20;
|
|
47
|
+
readonly dotSize: 8;
|
|
48
|
+
readonly gap: 8;
|
|
49
|
+
readonly hitSlop: number;
|
|
50
|
+
};
|
|
51
|
+
readonly md: {
|
|
52
|
+
readonly boxSize: 48;
|
|
53
|
+
readonly fontSize: 24;
|
|
54
|
+
readonly dotSize: 10;
|
|
55
|
+
readonly gap: 10;
|
|
56
|
+
readonly hitSlop: number;
|
|
57
|
+
};
|
|
58
|
+
readonly lg: {
|
|
59
|
+
readonly boxSize: 56;
|
|
60
|
+
readonly fontSize: 30;
|
|
61
|
+
readonly dotSize: 12;
|
|
62
|
+
readonly gap: 12;
|
|
63
|
+
readonly hitSlop: number;
|
|
64
|
+
};
|
|
65
|
+
};
|
|
66
|
+
export interface PinInputBoxColors {
|
|
67
|
+
/** Box border — the neutral interactive outline, or the danger outline in "error" (≥ 3:1). */
|
|
68
|
+
readonly border: string;
|
|
69
|
+
/** Digit glyph / masked-dot fill (≥ 4.5:1 on the canvas — boxes render no explicit background). */
|
|
70
|
+
readonly text: string;
|
|
71
|
+
}
|
|
72
|
+
/**
|
|
73
|
+
* Maps `status` onto the theme's role colours — identical precedent to `resolveInputStatus`.
|
|
74
|
+
* The error border deliberately reads `status.danger.solid`, NOT `status.danger.border`:
|
|
75
|
+
* `StatusColors.border` is documented (see `Input.variants.ts`) as the decorative chip/badge
|
|
76
|
+
* outline (`ramp[200]`) and measures below 3:1 against the canvas on several brands in dark mode.
|
|
77
|
+
* A pin box border is a real UI boundary (WCAG 1.4.11), so it needs the rung that actually clears
|
|
78
|
+
* 3:1 everywhere — `solid` does, measured in `PinInput.test.ts`.
|
|
79
|
+
*/
|
|
80
|
+
export declare function resolvePinInputBoxColors(colors: RoleColors, status: PinInputStatus): PinInputBoxColors;
|
|
81
|
+
/**
|
|
82
|
+
* Strips the keystroke/paste payload to what an OTP field actually accepts: digits only when
|
|
83
|
+
* `keyboardType` is `"number-pad"` (a pasted code with stray spaces/dashes still lands cleanly),
|
|
84
|
+
* left as-is for `"default"` (alphanumeric codes), then clamped to `length` characters either way
|
|
85
|
+
* — a paste longer than the field can never overflow the controlled `value`.
|
|
86
|
+
*/
|
|
87
|
+
export declare function clampPinInputValue(raw: string, length: number, keyboardType: PinInputKeyboardType): string;
|
|
88
|
+
/**
|
|
89
|
+
* The box index that represents "where typing would land next": the current value's length, or
|
|
90
|
+
* the last box once the value is full. Pure so the projection from `value` → active box is
|
|
91
|
+
* testable without a renderer; the component gates its VISIBLE indicator on this AND real
|
|
92
|
+
* `TextInput` focus (WCAG 2.4.7 — a focus indicator only while actually focused).
|
|
93
|
+
*/
|
|
94
|
+
export declare function resolvePinInputActiveIndex(value: string, length: number): number;
|
|
95
|
+
/** Whether `value` fills every box — the trigger condition for `onComplete`. */
|
|
96
|
+
export declare function isPinInputComplete(value: string, length: number): boolean;
|
|
97
|
+
export interface PinInputAccessibilityInput {
|
|
98
|
+
readonly accessibilityLabel: string;
|
|
99
|
+
readonly value: string;
|
|
100
|
+
readonly disabled?: boolean | undefined;
|
|
101
|
+
/** When true, `accessibilityValue.text` is masked to `•` per digit — never the raw value — the a11y mirror of the visual dot masking. */
|
|
102
|
+
readonly secureTextEntry?: boolean | undefined;
|
|
103
|
+
}
|
|
104
|
+
export interface PinInputAccessibilityProps {
|
|
105
|
+
readonly accessibilityLabel: string;
|
|
106
|
+
/**
|
|
107
|
+
* Announces the digits entered so far — this is the one real field, not N mystery boxes. When
|
|
108
|
+
* `secureTextEntry` is set, masked to one `•` per digit so a screen reader never speaks the raw
|
|
109
|
+
* code aloud, matching what a native masked field announces.
|
|
110
|
+
*/
|
|
111
|
+
readonly accessibilityValue: {
|
|
112
|
+
readonly text: string;
|
|
113
|
+
};
|
|
114
|
+
readonly accessibilityState: {
|
|
115
|
+
readonly disabled: boolean;
|
|
116
|
+
};
|
|
117
|
+
/** The `TextInput` `editable` prop — false while disabled, so the field blocks input. */
|
|
118
|
+
readonly editable: boolean;
|
|
119
|
+
}
|
|
120
|
+
/**
|
|
121
|
+
* Derives the accessibility surface once, purely — same shape as `resolveInputAccessibility`, but
|
|
122
|
+
* `accessibilityLabel` is required (never a fallback) because PinInput has no visible text label of
|
|
123
|
+
* its own; the caller must always name the field (e.g. "6-digit verification code").
|
|
124
|
+
*/
|
|
125
|
+
export declare function resolvePinInputAccessibility(input: PinInputAccessibilityInput): PinInputAccessibilityProps;
|
|
126
|
+
/**
|
|
127
|
+
* Structural styles for the ROW — the single contiguous touch target. No colours (status is
|
|
128
|
+
* resolved per box by `resolvePinInputBoxColors`), so this compiles once per theme identity via
|
|
129
|
+
* the `WeakMap`-cached themed resolver and never rebuilds per render.
|
|
130
|
+
*/
|
|
131
|
+
export declare const pinInputRowStructure: import("../../core/style").ThemedVariantResolver<Theme, {
|
|
132
|
+
size: {
|
|
133
|
+
sm: {
|
|
134
|
+
columnGap: 8;
|
|
135
|
+
};
|
|
136
|
+
md: {
|
|
137
|
+
columnGap: 10;
|
|
138
|
+
};
|
|
139
|
+
lg: {
|
|
140
|
+
columnGap: 12;
|
|
141
|
+
};
|
|
142
|
+
};
|
|
143
|
+
}, import("react-native").ViewStyle>;
|
|
144
|
+
/**
|
|
145
|
+
* Structural styles for ONE box — square, bordered, centred content. No colours (border/text are
|
|
146
|
+
* resolved by `resolvePinInputBoxColors` and applied inline over this).
|
|
147
|
+
*/
|
|
148
|
+
export declare const pinInputBoxStructure: import("../../core/style").ThemedVariantResolver<Theme, {
|
|
149
|
+
size: {
|
|
150
|
+
sm: {
|
|
151
|
+
width: 40;
|
|
152
|
+
height: 40;
|
|
153
|
+
};
|
|
154
|
+
md: {
|
|
155
|
+
width: 48;
|
|
156
|
+
height: 48;
|
|
157
|
+
};
|
|
158
|
+
lg: {
|
|
159
|
+
width: 56;
|
|
160
|
+
height: 56;
|
|
161
|
+
};
|
|
162
|
+
};
|
|
163
|
+
}, import("react-native").ViewStyle>;
|
|
164
|
+
//# sourceMappingURL=PinInput.variants.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PinInput.variants.d.ts","sourceRoot":"","sources":["../../../../src/modules/pin-input/PinInput.variants.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,KAAK,EAAE,UAAU,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AAGrD,MAAM,MAAM,YAAY,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;AAC9C,4EAA4E;AAC5E,MAAM,MAAM,cAAc,GAAG,SAAS,GAAG,OAAO,CAAC;AACjD,MAAM,MAAM,oBAAoB,GAAG,YAAY,GAAG,SAAS,CAAC;AAE5D,6GAA6G;AAC7G,eAAO,MAAM,gBAAgB,KAAK,CAAC;AAInC,MAAM,WAAW,gBAAgB;IAC/B,wDAAwD;IACxD,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IACzB,qEAAqE;IACrE,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;IAC1B,0FAA0F;IAC1F,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IACzB,0CAA0C;IAC1C,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAC;IACrB;;;OAGG;IACH,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;CAC1B;AAED;;;;GAIG;AACH,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;CAI+B,CAAC;AAE5D,MAAM,WAAW,iBAAiB;IAChC,8FAA8F;IAC9F,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB,mGAAmG;IACnG,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;CACvB;AAED;;;;;;;GAOG;AACH,wBAAgB,wBAAwB,CAAC,MAAM,EAAE,UAAU,EAAE,MAAM,EAAE,cAAc,GAAG,iBAAiB,CAKtG;AAED;;;;;GAKG;AACH,wBAAgB,kBAAkB,CAAC,GAAG,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,YAAY,EAAE,oBAAoB,GAAG,MAAM,CAG1G;AAED;;;;;GAKG;AACH,wBAAgB,0BAA0B,CAAC,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,MAAM,CAEhF;AAED,gFAAgF;AAChF,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,OAAO,CAEzE;AAED,MAAM,WAAW,0BAA0B;IACzC,QAAQ,CAAC,kBAAkB,EAAE,MAAM,CAAC;IACpC,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,QAAQ,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;IACxC,yIAAyI;IACzI,QAAQ,CAAC,eAAe,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;CAChD;AAED,MAAM,WAAW,0BAA0B;IACzC,QAAQ,CAAC,kBAAkB,EAAE,MAAM,CAAC;IACpC;;;;OAIG;IACH,QAAQ,CAAC,kBAAkB,EAAE;QAAE,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAA;KAAE,CAAC;IACvD,QAAQ,CAAC,kBAAkB,EAAE;QAAE,QAAQ,CAAC,QAAQ,EAAE,OAAO,CAAA;KAAE,CAAC;IAC5D,yFAAyF;IACzF,QAAQ,CAAC,QAAQ,EAAE,OAAO,CAAC;CAC5B;AAKD;;;;GAIG;AACH,wBAAgB,4BAA4B,CAAC,KAAK,EAAE,0BAA0B,GAAG,0BAA0B,CAS1G;AAED;;;;GAIG;AACH,eAAO,MAAM,oBAAoB;;;;;;;;;;;;oCAc9B,CAAC;AAEJ;;;GAGG;AACH,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;oCAe9B,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Public surface of `pixelize-native-library/pin-input`. Value exports and type exports are split for
|
|
3
|
+
* `verbatimModuleSyntax`. The visual/behaviour resolvers (`resolvePinInputBoxColors`,
|
|
4
|
+
* `PIN_INPUT_SIZES`, …) stay internal — a consumer configures a PinInput through its props, never
|
|
5
|
+
* by importing its internals.
|
|
6
|
+
*/
|
|
7
|
+
export { PinInput } from "./PinInput";
|
|
8
|
+
export type { PinInputProps } from "./PinInput";
|
|
9
|
+
export type { PinInputKeyboardType, PinInputSize, PinInputStatus } from "./PinInput.variants";
|
|
10
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/modules/pin-input/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,YAAY,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAEhD,YAAY,EAAE,oBAAoB,EAAE,YAAY,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* ProgressBar — a linear progress indicator. Determinate (`value` 0–100) renders a static fill
|
|
3
|
+
* sized to the value; indeterminate (`value` omitted) renders a looping `Animated` sweep across the
|
|
4
|
+
* track, skipped in favour of a static half-filled track when `useReducedMotion()` is true (WCAG
|
|
5
|
+
* 2.3.3 — never a frame frozen mid-sweep).
|
|
6
|
+
*/
|
|
7
|
+
import type { LayoutStyle } from "../../core/style";
|
|
8
|
+
import type { ProgressBarSize, ProgressBarTone } from "./ProgressBar.variants";
|
|
9
|
+
export interface ProgressBarProps {
|
|
10
|
+
/** 0–100. Omit for an indeterminate sweep. */
|
|
11
|
+
value?: number;
|
|
12
|
+
tone?: ProgressBarTone;
|
|
13
|
+
/** Closed union — drives the track (and fill) height. */
|
|
14
|
+
size?: ProgressBarSize;
|
|
15
|
+
accessibilityLabel?: string;
|
|
16
|
+
/** Layout-only, outermost, applied exactly once as the LAST entry in the root style array. */
|
|
17
|
+
style?: LayoutStyle;
|
|
18
|
+
testID?: string;
|
|
19
|
+
}
|
|
20
|
+
export declare const ProgressBar: import("react").NamedExoticComponent<ProgressBarProps>;
|
|
21
|
+
//# sourceMappingURL=ProgressBar.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ProgressBar.d.ts","sourceRoot":"","sources":["../../../../src/modules/progress-bar/ProgressBar.tsx"],"names":[],"mappings":"AAAA;;;;;GAKG;AAOH,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAapD,OAAO,KAAK,EAAE,eAAe,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AAE/E,MAAM,WAAW,gBAAgB;IAC/B,8CAA8C;IAC9C,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,IAAI,CAAC,EAAE,eAAe,CAAC;IACvB,yDAAyD;IACzD,IAAI,CAAC,EAAE,eAAe,CAAC;IACvB,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,8FAA8F;IAC9F,KAAK,CAAC,EAAE,WAAW,CAAC;IACpB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,eAAO,MAAM,WAAW,wDA+FtB,CAAC"}
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* ProgressBar's style + accessibility resolution — the pure functions the component (and its tests)
|
|
3
|
+
* depend on, plus the themed structural variant resolvers.
|
|
4
|
+
*
|
|
5
|
+
* The split every sibling module copies (see `Button.variants.ts`):
|
|
6
|
+
* - STRUCTURE (track height, the pill radius, `overflow: hidden`) lives in the `createThemedVariants`
|
|
7
|
+
* resolvers below — static per (brand, mode), registered once.
|
|
8
|
+
* - COLOUR is tone-driven and resolved by `resolveProgressBarFill` from the theme's ROLE colours,
|
|
9
|
+
* never a raw ramp and never a hardcoded hex. The track itself has exactly one neutral colour
|
|
10
|
+
* (`bg.sunken`, applied inline in `ProgressBar.tsx`) — there is nothing to widen on the track.
|
|
11
|
+
* - ACCESSIBILITY prop derivation is `resolveProgressBarAccessibility`, kept pure so the
|
|
12
|
+
* determinate/indeterminate contract is unit-testable without rendering React Native.
|
|
13
|
+
*
|
|
14
|
+
* Everything here is free of React and of any Animated import, so the WCAG + behaviour tests import
|
|
15
|
+
* it directly (mocking only `react-native`'s `StyleSheet`, as `Button.variants` does).
|
|
16
|
+
*/
|
|
17
|
+
import type { RoleColors, Theme } from "../../theme";
|
|
18
|
+
export type ProgressBarTone = "accent" | "success" | "warning" | "danger";
|
|
19
|
+
export type ProgressBarSize = "sm" | "md";
|
|
20
|
+
export interface ProgressBarSizeSpec {
|
|
21
|
+
/** Track height in dp. */
|
|
22
|
+
readonly height: number;
|
|
23
|
+
}
|
|
24
|
+
/** Track heights. Not on the theme's spacing scale, so a plain constant (same reasoning as `BUTTON_SIZES`). */
|
|
25
|
+
export declare const PROGRESS_BAR_SIZES: {
|
|
26
|
+
readonly sm: {
|
|
27
|
+
readonly height: 4;
|
|
28
|
+
};
|
|
29
|
+
readonly md: {
|
|
30
|
+
readonly height: 8;
|
|
31
|
+
};
|
|
32
|
+
};
|
|
33
|
+
/** Fraction of the track's measured width the indeterminate sweep segment covers. */
|
|
34
|
+
export declare const SWEEP_FRACTION = 0.4;
|
|
35
|
+
/** One full indeterminate sweep cycle, ms. */
|
|
36
|
+
export declare const SWEEP_DURATION_MS = 1200;
|
|
37
|
+
/** Fill fraction rendered, static, when the sweep is skipped for reduced motion (WCAG 2.3.3). */
|
|
38
|
+
export declare const REDUCED_MOTION_FILL_FRACTION = 0.5;
|
|
39
|
+
/**
|
|
40
|
+
* Clamps a caller-given value onto the 0–100 scale the track, the fill width, and
|
|
41
|
+
* `accessibilityValue.now` all agree on. `undefined` is preserved — that absence IS the
|
|
42
|
+
* indeterminate signal, never a value to coerce. A `NaN` (a caller's bad ratio math) clamps to `0`
|
|
43
|
+
* rather than propagating into a `NaN%` width or an invalid `now`.
|
|
44
|
+
*/
|
|
45
|
+
export declare function resolveProgressBarValue(value: number | undefined): number | undefined;
|
|
46
|
+
/**
|
|
47
|
+
* Maps `tone` onto the theme's ROLE colours — using the `text` rung, not `solid`. Never a raw ramp
|
|
48
|
+
* or a hardcoded hex, so every fill is guaranteed legible and can never be an off-palette value an
|
|
49
|
+
* app invented.
|
|
50
|
+
*
|
|
51
|
+
* Why `text`, not the seemingly-obvious `solid`: `solid` is only guaranteed to clear contrast
|
|
52
|
+
* against its OWN derived `onSolid` label, never against an arbitrary neutral surface. Measured
|
|
53
|
+
* against the `bg.sunken` track this component actually uses, `warning.solid`/`success.solid` (a
|
|
54
|
+
* pale, semantic-ramp orange/green shared across every brand) fall as low as ~1.9–2.4:1 in light
|
|
55
|
+
* mode — a real `AA_NON_TEXT` (3:1) failure, the same class of mistake `RadioGroup`/`Tabs` shipped
|
|
56
|
+
* by assuming a role pairing "should" clear AA without measuring it. `text` is `readableOn(ramp,
|
|
57
|
+
* [ramp[50]])` — the SAME role `Button` already uses for its outline/ghost/link label specifically
|
|
58
|
+
* because it is engineered to read on a pale surface — and measured here at ≥ 4.4:1 against
|
|
59
|
+
* `bg.sunken` for every tone × all 8 brands × both modes (`ProgressBar.test.ts`), comfortably
|
|
60
|
+
* clearing the 3:1 floor this fill actually needs.
|
|
61
|
+
*/
|
|
62
|
+
export declare function resolveProgressBarFill(colors: RoleColors, tone: ProgressBarTone): string;
|
|
63
|
+
export interface ProgressBarAccessibilityInput {
|
|
64
|
+
/** Already clamped via `resolveProgressBarValue` — `undefined` means indeterminate. */
|
|
65
|
+
readonly value: number | undefined;
|
|
66
|
+
}
|
|
67
|
+
export interface ProgressBarAccessibilityProps {
|
|
68
|
+
readonly accessibilityRole: "progressbar";
|
|
69
|
+
readonly accessibilityValue: {
|
|
70
|
+
readonly min: number;
|
|
71
|
+
readonly max: number;
|
|
72
|
+
readonly now: number;
|
|
73
|
+
} | undefined;
|
|
74
|
+
readonly accessibilityState: {
|
|
75
|
+
readonly busy: boolean;
|
|
76
|
+
};
|
|
77
|
+
}
|
|
78
|
+
/**
|
|
79
|
+
* Derives the accessibility surface once, purely, so the determinate/indeterminate contract is
|
|
80
|
+
* testable without a renderer:
|
|
81
|
+
* - determinate (`value` given) → `accessibilityValue` carries `now`; `busy` is false once the
|
|
82
|
+
* value is known.
|
|
83
|
+
* - indeterminate (`value` omitted) → NO `accessibilityValue` at all. The absence of `now` is how
|
|
84
|
+
* assistive tech reports "indeterminate" — inventing a guessed number would misreport actual
|
|
85
|
+
* progress. `busy: true` (WCAG 1.4.1) announces the ongoing work the visual sweep alone doesn't
|
|
86
|
+
* convey to a screen reader.
|
|
87
|
+
*/
|
|
88
|
+
export declare function resolveProgressBarAccessibility(input: ProgressBarAccessibilityInput): ProgressBarAccessibilityProps;
|
|
89
|
+
/**
|
|
90
|
+
* Structural track styles: `size`-driven height, full pill radius, and `overflow: hidden` so the
|
|
91
|
+
* fill/sweep sibling clips to the rounded ends without recomputing the radius itself. No colour here
|
|
92
|
+
* (the track's single neutral fill is applied inline in `ProgressBar.tsx`) — same structure/colour
|
|
93
|
+
* split as `buttonStructure`/`skeletonStructure`.
|
|
94
|
+
*/
|
|
95
|
+
export declare const progressBarTrackStructure: import("../../core/style").ThemedVariantResolver<Theme, {
|
|
96
|
+
size: {
|
|
97
|
+
sm: {
|
|
98
|
+
height: 4;
|
|
99
|
+
};
|
|
100
|
+
md: {
|
|
101
|
+
height: 8;
|
|
102
|
+
};
|
|
103
|
+
};
|
|
104
|
+
}, import("react-native").ViewStyle>;
|
|
105
|
+
/**
|
|
106
|
+
* The fill/sweep segment's own corner radius — matches the track's, so a partial determinate fill
|
|
107
|
+
* or the indeterminate sweep still reads as a rounded pill rather than a rectangle poking past a
|
|
108
|
+
* rounded track end. No `size` variant: the segment's height always fills the track (`height: "100%"`,
|
|
109
|
+
* applied inline in `ProgressBar.tsx`), so only the radius is structural here.
|
|
110
|
+
*/
|
|
111
|
+
export declare const progressBarFillStructure: import("../../core/style").ThemedVariantResolver<Theme, import("../../core/style").VariantGroups<import("react-native").ViewStyle>, import("react-native").ViewStyle>;
|
|
112
|
+
//# sourceMappingURL=ProgressBar.variants.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ProgressBar.variants.d.ts","sourceRoot":"","sources":["../../../../src/modules/progress-bar/ProgressBar.variants.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAEH,OAAO,KAAK,EAAE,UAAU,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AAGrD,MAAM,MAAM,eAAe,GAAG,QAAQ,GAAG,SAAS,GAAG,SAAS,GAAG,QAAQ,CAAC;AAC1E,MAAM,MAAM,eAAe,GAAG,IAAI,GAAG,IAAI,CAAC;AAE1C,MAAM,WAAW,mBAAmB;IAClC,0BAA0B;IAC1B,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;CACzB;AAED,+GAA+G;AAC/G,eAAO,MAAM,kBAAkB;;;;;;;CAGkC,CAAC;AAElE,qFAAqF;AACrF,eAAO,MAAM,cAAc,MAAM,CAAC;AAClC,8CAA8C;AAC9C,eAAO,MAAM,iBAAiB,OAAO,CAAC;AACtC,iGAAiG;AACjG,eAAO,MAAM,4BAA4B,MAAM,CAAC;AAEhD;;;;;GAKG;AACH,wBAAgB,uBAAuB,CAAC,KAAK,EAAE,MAAM,GAAG,SAAS,GAAG,MAAM,GAAG,SAAS,CAIrF;AAED;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,sBAAsB,CAAC,MAAM,EAAE,UAAU,EAAE,IAAI,EAAE,eAAe,GAAG,MAAM,CAWxF;AAED,MAAM,WAAW,6BAA6B;IAC5C,uFAAuF;IACvF,QAAQ,CAAC,KAAK,EAAE,MAAM,GAAG,SAAS,CAAC;CACpC;AAED,MAAM,WAAW,6BAA6B;IAC5C,QAAQ,CAAC,iBAAiB,EAAE,aAAa,CAAC;IAC1C,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,GAAG,SAAS,CAAC;IAC9G,QAAQ,CAAC,kBAAkB,EAAE;QAAE,QAAQ,CAAC,IAAI,EAAE,OAAO,CAAA;KAAE,CAAC;CACzD;AAED;;;;;;;;;GASG;AACH,wBAAgB,+BAA+B,CAC7C,KAAK,EAAE,6BAA6B,GACnC,6BAA6B,CAc/B;AAED;;;;;GAKG;AACH,eAAO,MAAM,yBAAyB;;;;;;;;;oCASnC,CAAC;AAEJ;;;;;GAKG;AACH,eAAO,MAAM,wBAAwB,uKAElC,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Public surface of `pixelize-native-library/progress-bar`. Value exports and type exports are split for
|
|
3
|
+
* `verbatimModuleSyntax`. The resolvers (`resolveProgressBarFill`, `PROGRESS_BAR_SIZES`, …) stay
|
|
4
|
+
* internal — a consumer configures a ProgressBar through its props, never by importing its internals.
|
|
5
|
+
*
|
|
6
|
+
* No `icon` prop, so no `IconName` re-export (same as `Spinner`/`Switch`).
|
|
7
|
+
*/
|
|
8
|
+
export { ProgressBar } from "./ProgressBar";
|
|
9
|
+
export type { ProgressBarProps } from "./ProgressBar";
|
|
10
|
+
export type { ProgressBarSize, ProgressBarTone } from "./ProgressBar.variants";
|
|
11
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/modules/progress-bar/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,YAAY,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAC;AAEtD,YAAY,EAAE,eAAe,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* RadioGroup — one component owns the whole group; there is no separate `Radio` export. Each
|
|
3
|
+
* option is a row (ring + dot drawn with plain Views, no icon) that carries its own
|
|
4
|
+
* `accessibilityRole="radio"`, wrapped in a container carrying `accessibilityRole="radiogroup"` so
|
|
5
|
+
* assistive tech announces the grouping without collapsing the individually-focusable rows into one.
|
|
6
|
+
*
|
|
7
|
+
* No animation anywhere (the dot appears/disappears by conditional render, not a fade or a move),
|
|
8
|
+
* so there is nothing for `useReducedMotion` (WCAG 2.3.3) to gate — unlike Button's press fade.
|
|
9
|
+
*/
|
|
10
|
+
import type { LayoutStyle } from "../../core/style";
|
|
11
|
+
import type { RadioGroupSize } from "./RadioGroup.variants";
|
|
12
|
+
export interface RadioGroupOption {
|
|
13
|
+
readonly label: string;
|
|
14
|
+
readonly value: string;
|
|
15
|
+
}
|
|
16
|
+
export interface RadioGroupProps {
|
|
17
|
+
options: RadioGroupOption[];
|
|
18
|
+
value: string;
|
|
19
|
+
onValueChange: (value: string) => void;
|
|
20
|
+
disabled?: boolean;
|
|
21
|
+
size?: RadioGroupSize;
|
|
22
|
+
/** Layout-only, outermost, applied exactly once as the LAST entry in the root style array. */
|
|
23
|
+
style?: LayoutStyle;
|
|
24
|
+
testID?: string;
|
|
25
|
+
}
|
|
26
|
+
export declare const RadioGroup: import("react").NamedExoticComponent<RadioGroupProps>;
|
|
27
|
+
//# sourceMappingURL=RadioGroup.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RadioGroup.d.ts","sourceRoot":"","sources":["../../../../src/modules/radio-group/RadioGroup.tsx"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAKH,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAYpD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AAE5D,MAAM,WAAW,gBAAgB;IAC/B,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;CACxB;AAED,MAAM,WAAW,eAAe;IAC9B,OAAO,EAAE,gBAAgB,EAAE,CAAC;IAC5B,KAAK,EAAE,MAAM,CAAC;IACd,aAAa,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACvC,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,IAAI,CAAC,EAAE,cAAc,CAAC;IACtB,8FAA8F;IAC9F,KAAK,CAAC,EAAE,WAAW,CAAC;IACpB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,eAAO,MAAM,UAAU,uDAyDrB,CAAC"}
|