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,43 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Menu — a small anchored action list opened from a caller-supplied trigger. Unlike Select (whose
|
|
3
|
+
* open/closed state is a `value`/`onValueChange` pair the caller owns), Menu is self-contained: a
|
|
4
|
+
* transient action list manages its own visibility, closing itself after every dismissal path.
|
|
5
|
+
*
|
|
6
|
+
* The trigger is composed via `React.cloneElement` — never `{...rest}` — injecting only `onPress`,
|
|
7
|
+
* chained after any handler the trigger already defined (the same "merge, never clobber" technique
|
|
8
|
+
* Tooltip uses for its child). The dropdown itself is React Native's OWN `Modal`, imported directly
|
|
9
|
+
* from `"react-native"` on purpose: this module must never depend on the library's own `Modal`
|
|
10
|
+
* COMPONENT — this library's own `Modal` (built in parallel elsewhere) is for persistent app
|
|
11
|
+
* dialogs with a title/children contract, not a quick transient overlay — the same distinction
|
|
12
|
+
* Select already draws for its own option list.
|
|
13
|
+
*
|
|
14
|
+
* The one deliberate exception is the web portal mechanism: `ModalPortalContext`/`renderWebPortal`
|
|
15
|
+
* are a plain context + a stateless helper with no React-tree footprint of their own (not the
|
|
16
|
+
* `Modal` component), so Menu reads the same ones `Modal.tsx` and `Select.tsx` read to stay
|
|
17
|
+
* consistent once a consumer opts in via `ModalPortalProvider` — see `../modal/ModalPortalContext.ts`.
|
|
18
|
+
*/
|
|
19
|
+
import type { ReactElement } from "react";
|
|
20
|
+
import type { GestureResponderEvent } from "react-native";
|
|
21
|
+
import type { IconName } from "../../core/icon";
|
|
22
|
+
import type { MenuItemTone } from "./Menu.variants";
|
|
23
|
+
/** The subset of props Menu reads from / injects into its trigger child. */
|
|
24
|
+
export interface MenuTriggerProps {
|
|
25
|
+
onPress?: (event: GestureResponderEvent) => void;
|
|
26
|
+
}
|
|
27
|
+
export interface MenuItem {
|
|
28
|
+
readonly label: string;
|
|
29
|
+
readonly icon?: IconName;
|
|
30
|
+
readonly onPress: () => void;
|
|
31
|
+
readonly tone?: MenuItemTone;
|
|
32
|
+
}
|
|
33
|
+
export interface MenuProps {
|
|
34
|
+
/** A single element that accepts `onPress` (e.g. a `Button`). Opens the menu on press. */
|
|
35
|
+
trigger: ReactElement<MenuTriggerProps>;
|
|
36
|
+
items: MenuItem[];
|
|
37
|
+
/** Blocks the menu from opening. Does not itself restyle the trigger — pass `disabled` to the
|
|
38
|
+
* trigger too if it should also look disabled (Menu never rewrites a prop it didn't ask for). */
|
|
39
|
+
disabled?: boolean;
|
|
40
|
+
testID?: string;
|
|
41
|
+
}
|
|
42
|
+
export declare const Menu: import("react").NamedExoticComponent<MenuProps>;
|
|
43
|
+
//# sourceMappingURL=Menu.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Menu.d.ts","sourceRoot":"","sources":["../../../../src/modules/menu/Menu.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;GAiBG;AAIH,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AAC1C,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,cAAc,CAAC;AAI1D,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAYhD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAEpD,4EAA4E;AAC5E,MAAM,WAAW,gBAAgB;IAC/B,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,qBAAqB,KAAK,IAAI,CAAC;CAClD;AAED,MAAM,WAAW,QAAQ;IACvB,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,IAAI,CAAC,EAAE,QAAQ,CAAC;IACzB,QAAQ,CAAC,OAAO,EAAE,MAAM,IAAI,CAAC;IAC7B,QAAQ,CAAC,IAAI,CAAC,EAAE,YAAY,CAAC;CAC9B;AAED,MAAM,WAAW,SAAS;IACxB,0FAA0F;IAC1F,OAAO,EAAE,YAAY,CAAC,gBAAgB,CAAC,CAAC;IACxC,KAAK,EAAE,QAAQ,EAAE,CAAC;IAClB;sGACkG;IAClG,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAOD,eAAO,MAAM,IAAI,iDAmGf,CAAC"}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Menu's style + behaviour resolution — same split as Button/Select:
|
|
3
|
+
* - STRUCTURE (sizing/spacing off the theme scale) lives in the `createThemedVariants` resolvers
|
|
4
|
+
* below — static per (brand, mode), registered once.
|
|
5
|
+
* - COLOUR is resolved from the theme's ROLE colours (never a raw ramp, never a hardcoded hex) by
|
|
6
|
+
* `resolveMenuItemColor` — `tone` maps a row to `fg.default` or `status.danger.text`, the same
|
|
7
|
+
* reason Button's `tone` is a closed union instead of a `color` prop.
|
|
8
|
+
*
|
|
9
|
+
* Free of React, `lucide`, and any `Modal`/`Pressable` import, so the WCAG + touch-target tests
|
|
10
|
+
* import it directly (mocking only `react-native`'s `StyleSheet`, as `core/style` does).
|
|
11
|
+
*/
|
|
12
|
+
import type { RoleColors, Theme } from "../../theme";
|
|
13
|
+
export type MenuItemTone = "default" | "danger";
|
|
14
|
+
/** Same touch-target floor as Button/Select (44dp — Apple HIG minimum, WCAG 2.5.5 AAA). */
|
|
15
|
+
export declare const MIN_TOUCH_TARGET = 44;
|
|
16
|
+
/** Row height is a direct `minHeight`, not a `hitSlop` expansion — a list row is already its own
|
|
17
|
+
* full-width touch target, the same choice `Select`'s option rows make (`SELECT_ROW_MIN_HEIGHT`). */
|
|
18
|
+
export declare const MENU_ROW_MIN_HEIGHT = 44;
|
|
19
|
+
/** The optional leading glyph's size. Fixed — Menu has no `size` prop (unlike Button/Select), since
|
|
20
|
+
* an action list's row height is not a caller-facing choice. */
|
|
21
|
+
export declare const MENU_ROW_ICON_SIZE = 18;
|
|
22
|
+
/**
|
|
23
|
+
* Maps a row's `tone` onto the theme's ROLE colours — the reason `tone` is a closed union and not a
|
|
24
|
+
* free-form `color` prop. The SAME colour drives both the label and the icon (like Select's active
|
|
25
|
+
* row): if the label clears the stricter 4.5:1 text minimum on the sheet fill, the icon clears its
|
|
26
|
+
* 3:1 non-text minimum for free.
|
|
27
|
+
*/
|
|
28
|
+
export declare function resolveMenuItemColor(colors: RoleColors, tone: MenuItemTone): string;
|
|
29
|
+
/**
|
|
30
|
+
* Structural styles only — layout, padding, radius, border WIDTH. No colours (those are resolved
|
|
31
|
+
* from `RoleColors` and applied inline), so this compiles once per theme identity via the themed
|
|
32
|
+
* resolver and never rebuilds per render.
|
|
33
|
+
*
|
|
34
|
+
* `justifyContent: "center"` mirrors Select's full-screen overlay + centered sheet — the same
|
|
35
|
+
* "transient overlay in RN's own Modal" pattern Select already established. See the "Known gaps"
|
|
36
|
+
* section of MODULE.md for why this is a centered sheet rather than a true measured anchor.
|
|
37
|
+
*/
|
|
38
|
+
export declare const menuOverlayStructure: import("../../core/style").ThemedVariantResolver<Theme, import("../../core/style").VariantGroups<import("react-native").ViewStyle>, import("react-native").ViewStyle>;
|
|
39
|
+
export declare const menuSheetStructure: import("../../core/style").ThemedVariantResolver<Theme, import("../../core/style").VariantGroups<import("react-native").ViewStyle>, import("react-native").ViewStyle>;
|
|
40
|
+
export declare const menuRowStructure: import("../../core/style").ThemedVariantResolver<Theme, import("../../core/style").VariantGroups<import("react-native").ViewStyle>, import("react-native").ViewStyle>;
|
|
41
|
+
//# sourceMappingURL=Menu.variants.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Menu.variants.d.ts","sourceRoot":"","sources":["../../../../src/modules/menu/Menu.variants.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,OAAO,KAAK,EAAE,UAAU,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AAGrD,MAAM,MAAM,YAAY,GAAG,SAAS,GAAG,QAAQ,CAAC;AAEhD,2FAA2F;AAC3F,eAAO,MAAM,gBAAgB,KAAK,CAAC;AAEnC;sGACsG;AACtG,eAAO,MAAM,mBAAmB,KAAmB,CAAC;AAEpD;iEACiE;AACjE,eAAO,MAAM,kBAAkB,KAAK,CAAC;AAErC;;;;;GAKG;AACH,wBAAgB,oBAAoB,CAAC,MAAM,EAAE,UAAU,EAAE,IAAI,EAAE,YAAY,GAAG,MAAM,CAOnF;AAED;;;;;;;;GAQG;AACH,eAAO,MAAM,oBAAoB,uKAM9B,CAAC;AAEJ,eAAO,MAAM,kBAAkB,uKAO5B,CAAC;AAEJ,eAAO,MAAM,gBAAgB,uKAQ1B,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Public surface of `pixelize-native-library/menu`. Value exports and type exports are split for
|
|
3
|
+
* `verbatimModuleSyntax`. The resolvers (`resolveMenuItemColor`, `MENU_ROW_ICON_SIZE`, …) stay
|
|
4
|
+
* internal — a consumer configures a Menu through its props, never by importing its internals.
|
|
5
|
+
*/
|
|
6
|
+
export { Menu } from "./Menu";
|
|
7
|
+
export type { MenuProps, MenuItem, MenuTriggerProps } from "./Menu";
|
|
8
|
+
export type { MenuItemTone } from "./Menu.variants";
|
|
9
|
+
export type { IconName } from "../../core/icon";
|
|
10
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/modules/menu/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAC9B,YAAY,EAAE,SAAS,EAAE,QAAQ,EAAE,gBAAgB,EAAE,MAAM,QAAQ,CAAC;AAEpE,YAAY,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAGpD,YAAY,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Modal — the library's own dialog, built ON TOP of React Native's `<Modal>` (`transparent`,
|
|
3
|
+
* `animationType` "fade" unless the OS has reduced motion on, in which case "none"). A full-screen
|
|
4
|
+
* backdrop scrim dismisses it on press; the panel sits on `bg.surface` with `theme.radii.lg` and
|
|
5
|
+
* `theme.elevation.lg`, capped to one of three closed widths (`size`).
|
|
6
|
+
*
|
|
7
|
+
* Fully controlled: the caller owns `visible` and reacts to `onRequestClose`, which fires from the
|
|
8
|
+
* backdrop press, the Android hardware back button, and — via `onAccessibilityEscape` on the panel
|
|
9
|
+
* — iOS VoiceOver's two-finger-Z escape gesture. (RN's `<Modal>` only fires `onRequestClose` from a
|
|
10
|
+
* swipe when `allowSwipeDismissal` is passed, which this component doesn't set, and `transparent`
|
|
11
|
+
* with no `presentationStyle` forces `overFullScreen`, which has no native swipe-to-dismiss gesture
|
|
12
|
+
* on iOS at all — so the VoiceOver escape hook is the real iOS-native path here, not a swipe.)
|
|
13
|
+
* Never from an internal open/close state.
|
|
14
|
+
*
|
|
15
|
+
* Web portal opt-in: when an ancestor renders `ModalPortalProvider` (web only), this bypasses RN's
|
|
16
|
+
* `<Modal>` and portals the SAME backdrop+panel tree into the provided container via
|
|
17
|
+
* `renderWebPortal` instead — see `ModalPortalContext.ts` for why. Every other case (native, or web
|
|
18
|
+
* with no provider — the default `ModalPortalContext` value is `null`) renders through RN's own
|
|
19
|
+
* `<Modal>`, byte-identical to before this mechanism existed.
|
|
20
|
+
*/
|
|
21
|
+
import type { ReactNode } from "react";
|
|
22
|
+
import type { ModalSize } from "./Modal.variants";
|
|
23
|
+
export interface ModalProps {
|
|
24
|
+
visible: boolean;
|
|
25
|
+
onRequestClose: () => void;
|
|
26
|
+
title?: string;
|
|
27
|
+
children: ReactNode;
|
|
28
|
+
size?: ModalSize;
|
|
29
|
+
testID?: string;
|
|
30
|
+
}
|
|
31
|
+
export declare const Modal: import("react").NamedExoticComponent<ModalProps>;
|
|
32
|
+
//# sourceMappingURL=Modal.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Modal.d.ts","sourceRoot":"","sources":["../../../../src/modules/modal/Modal.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAevC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAElD,MAAM,WAAW,UAAU;IACzB,OAAO,EAAE,OAAO,CAAC;IACjB,cAAc,EAAE,MAAM,IAAI,CAAC;IAC3B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,SAAS,CAAC;IACpB,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAOD,eAAO,MAAM,KAAK,kDAsEhB,CAAC"}
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Modal's style + behaviour resolution — mirrors Button/Select's split: STRUCTURE (sizing/spacing
|
|
3
|
+
* off the theme scale, plus the closed `size` maxWidth caps) lives in the `createThemedVariants`
|
|
4
|
+
* resolvers below, registered once per theme identity. COLOUR is resolved from the theme's ROLE
|
|
5
|
+
* colours (never a raw ramp, never a hardcoded hex) by `resolveModalPanelColors`. The reduced-motion
|
|
6
|
+
* contract (WCAG 2.3.3) is `resolveModalAnimationType`, kept pure so it is unit-testable without
|
|
7
|
+
* rendering React Native.
|
|
8
|
+
*
|
|
9
|
+
* Free of React and of any `Modal`/`Pressable` import, so the WCAG + behaviour tests import it
|
|
10
|
+
* directly (mocking only `react-native`'s `StyleSheet`, as `core/style` does).
|
|
11
|
+
*/
|
|
12
|
+
import type { RoleColors, Theme } from "../../theme";
|
|
13
|
+
export type ModalSize = "sm" | "md" | "lg";
|
|
14
|
+
export interface ModalSizeSpec {
|
|
15
|
+
/** Panel max width in dp — a screen narrower than this still shrinks it via `width: "100%"`. */
|
|
16
|
+
readonly maxWidth: number;
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* Reuses the shared `sizes` primitive — `theme/tokens/primitives/sizes.ts` is documented for
|
|
20
|
+
* exactly this case ("avatar/image/modal max-width") — instead of inventing Modal-local numbers.
|
|
21
|
+
*/
|
|
22
|
+
export declare const MODAL_SIZES: {
|
|
23
|
+
readonly sm: {
|
|
24
|
+
readonly maxWidth: 384;
|
|
25
|
+
};
|
|
26
|
+
readonly md: {
|
|
27
|
+
readonly maxWidth: 448;
|
|
28
|
+
};
|
|
29
|
+
readonly lg: {
|
|
30
|
+
readonly maxWidth: 512;
|
|
31
|
+
};
|
|
32
|
+
};
|
|
33
|
+
export interface ModalPanelColors {
|
|
34
|
+
/** Panel fill. */
|
|
35
|
+
readonly background: string;
|
|
36
|
+
/** Title label on `background` — measured ≥ 4.5:1 for every brand × mode. */
|
|
37
|
+
readonly title: string;
|
|
38
|
+
}
|
|
39
|
+
/**
|
|
40
|
+
* Maps the panel onto role colours. Kept this small on purpose: the panel has exactly one
|
|
41
|
+
* text/foreground pairing to guarantee legible (the title on its own fill) — `children` is
|
|
42
|
+
* arbitrary consumer content this module has no colour opinion about.
|
|
43
|
+
*/
|
|
44
|
+
export declare function resolveModalPanelColors(colors: RoleColors): ModalPanelColors;
|
|
45
|
+
export type ModalAnimationType = "fade" | "none";
|
|
46
|
+
/** WCAG 2.3.3 — the fade is replaced by an instant appearance when the OS has reduced motion on. */
|
|
47
|
+
export declare function resolveModalAnimationType(reducedMotion: boolean): ModalAnimationType;
|
|
48
|
+
/**
|
|
49
|
+
* The full-screen overlay the panel centers in. `box-none` (applied by the component) lets a tap
|
|
50
|
+
* on its empty padding fall through to the backdrop press underneath — same shape as Select's
|
|
51
|
+
* `selectOverlayStructure`.
|
|
52
|
+
*/
|
|
53
|
+
export declare const modalOverlayStructure: import("../../core/style").ThemedVariantResolver<Theme, import("../../core/style").VariantGroups<import("react-native").ViewStyle>, import("react-native").ViewStyle>;
|
|
54
|
+
/**
|
|
55
|
+
* Structural styles only — layout, padding, radius, max size. No colours (resolved by
|
|
56
|
+
* `resolveModalPanelColors`, applied inline over this), so this compiles once per theme identity
|
|
57
|
+
* via the `WeakMap`-cached themed resolver and never rebuilds per render.
|
|
58
|
+
*/
|
|
59
|
+
export declare const modalPanelStructure: import("../../core/style").ThemedVariantResolver<Theme, {
|
|
60
|
+
size: {
|
|
61
|
+
sm: {
|
|
62
|
+
maxWidth: 384;
|
|
63
|
+
};
|
|
64
|
+
md: {
|
|
65
|
+
maxWidth: 448;
|
|
66
|
+
};
|
|
67
|
+
lg: {
|
|
68
|
+
maxWidth: 512;
|
|
69
|
+
};
|
|
70
|
+
};
|
|
71
|
+
}, import("react-native").ViewStyle>;
|
|
72
|
+
//# sourceMappingURL=Modal.variants.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Modal.variants.d.ts","sourceRoot":"","sources":["../../../../src/modules/modal/Modal.variants.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,OAAO,KAAK,EAAE,UAAU,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AAIrD,MAAM,MAAM,SAAS,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;AAE3C,MAAM,WAAW,aAAa;IAC5B,gGAAgG;IAChG,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;CAC3B;AAED;;;GAGG;AACH,eAAO,MAAM,WAAW;;;;;;;;;;CAI6B,CAAC;AAEtD,MAAM,WAAW,gBAAgB;IAC/B,kBAAkB;IAClB,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;IAC5B,6EAA6E;IAC7E,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;CACxB;AAED;;;;GAIG;AACH,wBAAgB,uBAAuB,CAAC,MAAM,EAAE,UAAU,GAAG,gBAAgB,CAK5E;AAED,MAAM,MAAM,kBAAkB,GAAG,MAAM,GAAG,MAAM,CAAC;AAEjD,oGAAoG;AACpG,wBAAgB,yBAAyB,CAAC,aAAa,EAAE,OAAO,GAAG,kBAAkB,CAEpF;AAED;;;;GAIG;AACH,eAAO,MAAM,qBAAqB,uKAO/B,CAAC;AAEJ;;;;GAIG;AACH,eAAO,MAAM,mBAAmB;;;;;;;;;;;;oCAgB7B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ModalPortalContext.d.ts","sourceRoot":"","sources":["../../../../src/modules/modal/ModalPortalContext.ts"],"names":[],"mappings":"AAsBA,eAAO,MAAM,kBAAkB,kCAA+B,CAAC"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import type { ReactNode } from "react";
|
|
2
|
+
export interface ModalPortalProviderProps {
|
|
3
|
+
/**
|
|
4
|
+
* The DOM node `Modal` / `AlertDialog` / `Select` / `Menu` should portal their overlay content
|
|
5
|
+
* into, on web only. Typically a ref'd `View`'s underlying DOM node — `react-native-web` forwards
|
|
6
|
+
* a `View`'s ref to the real element, so a callback ref (`ref={setNode}`) into `useState` gives a
|
|
7
|
+
* value this prop can take directly. Pass `null` (or omit this provider) to fall back to the
|
|
8
|
+
* default — `react-native-web`'s own full-viewport `document.body` portal.
|
|
9
|
+
*/
|
|
10
|
+
container: unknown;
|
|
11
|
+
children: ReactNode;
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* Opts a subtree into containing its Modal / AlertDialog / Select / Menu overlays inside
|
|
15
|
+
* `container` on web, instead of `react-native-web`'s default full-viewport `document.body`
|
|
16
|
+
* portal. Safe to mount unconditionally on every platform: there is no DOM to portal into outside
|
|
17
|
+
* web, so `container` is simply never read off this context there — every overlay keeps rendering
|
|
18
|
+
* through RN's own `<Modal>` regardless of this provider's presence.
|
|
19
|
+
*/
|
|
20
|
+
export declare const ModalPortalProvider: import("react").NamedExoticComponent<ModalPortalProviderProps>;
|
|
21
|
+
//# sourceMappingURL=ModalPortalProvider.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ModalPortalProvider.d.ts","sourceRoot":"","sources":["../../../../src/modules/modal/ModalPortalProvider.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAKvC,MAAM,WAAW,wBAAwB;IACvC;;;;;;OAMG;IACH,SAAS,EAAE,OAAO,CAAC;IACnB,QAAQ,EAAE,SAAS,CAAC;CACrB;AAED;;;;;;GAMG;AACH,eAAO,MAAM,mBAAmB,gEAK9B,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Public surface of `pixelize-native-library/modal`. Value exports and type exports are split for
|
|
3
|
+
* `verbatimModuleSyntax`. The resolvers (`resolveModalPanelColors`, `MODAL_SIZES`, …) stay
|
|
4
|
+
* internal — a consumer configures a Modal through its props, never by importing its internals.
|
|
5
|
+
*
|
|
6
|
+
* `ModalPortalProvider` is the one exception to "configure through props" — it's a web-only opt-in
|
|
7
|
+
* ancestor, not a Modal prop, because Select/Menu (which don't render `<Modal>` at all) need the
|
|
8
|
+
* same container too. The raw `ModalPortalContext` stays internal on purpose: consumers opt in via
|
|
9
|
+
* the provider, never by reading the context directly.
|
|
10
|
+
*/
|
|
11
|
+
export { Modal } from "./Modal";
|
|
12
|
+
export type { ModalProps } from "./Modal";
|
|
13
|
+
export type { ModalSize } from "./Modal.variants";
|
|
14
|
+
export { ModalPortalProvider } from "./ModalPortalProvider";
|
|
15
|
+
export type { ModalPortalProviderProps } from "./ModalPortalProvider";
|
|
16
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/modules/modal/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,YAAY,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAE1C,YAAY,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAElD,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAC5D,YAAY,EAAE,wBAAwB,EAAE,MAAM,uBAAuB,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { ReactNode } from "react";
|
|
2
|
+
/**
|
|
3
|
+
* Native/default counterpart of `renderWebPortal.web.ts`. There is no DOM to portal into outside a
|
|
4
|
+
* web environment, so this always returns `null` — the caller (Modal/Select/Menu) then falls back
|
|
5
|
+
* to rendering through RN's own `<Modal>`, exactly as it did before this mechanism existed.
|
|
6
|
+
*
|
|
7
|
+
* Exists so the bare specifier `import { renderWebPortal } from "./renderWebPortal"` has a
|
|
8
|
+
* same-shaped default to resolve to on every platform except an actual web bundle: Metro's
|
|
9
|
+
* platform-extension resolution picks `renderWebPortal.web.ts` only when bundling for web, and
|
|
10
|
+
* falls back to THIS file everywhere else (iOS, Android, and Jest — Jest's `react-native` preset
|
|
11
|
+
* haste config has no `web` platform, so it also always resolves here). `react-dom` therefore never
|
|
12
|
+
* enters a native dependency graph.
|
|
13
|
+
*/
|
|
14
|
+
export declare function renderWebPortal(_children: ReactNode, _container: unknown): ReactNode;
|
|
15
|
+
//# sourceMappingURL=renderWebPortal.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"renderWebPortal.d.ts","sourceRoot":"","sources":["../../../../src/modules/modal/renderWebPortal.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvC;;;;;;;;;;;GAWG;AACH,wBAAgB,eAAe,CAAC,SAAS,EAAE,SAAS,EAAE,UAAU,EAAE,OAAO,GAAG,SAAS,CAEpF"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { ReactNode } from "react";
|
|
2
|
+
/**
|
|
3
|
+
* Web implementation: portals `children` into `container` via `ReactDOM.createPortal`, bypassing
|
|
4
|
+
* `react-native-web`'s own `<Modal>` (which always portals to `document.body` — see
|
|
5
|
+
* `ModalPortalContext.ts`). Returns `null` when `container` is nullish so the caller falls back to
|
|
6
|
+
* the default `<Modal>` path.
|
|
7
|
+
*
|
|
8
|
+
* `container` is cast from `unknown` to `Element` here — the one place this mechanism's `unknown`
|
|
9
|
+
* portal-container contract gets a concrete DOM type, since only this file (Metro only ever
|
|
10
|
+
* resolves it for an actual web bundle — see `renderWebPortal.ts`) has a real DOM environment to
|
|
11
|
+
* assume. A caller that passes something that isn't really a DOM node fails at `createPortal`'s own
|
|
12
|
+
* runtime, same as any other incorrect `ReactDOM.createPortal` call would.
|
|
13
|
+
*
|
|
14
|
+
* This module's exported signature stays identical to `renderWebPortal.ts`'s (`ReactNode`,
|
|
15
|
+
* `unknown` — never a `react-dom` type), so a consumer never needs `@types/react-dom` just because
|
|
16
|
+
* they import `pixelize-native-library/modal`; that type dependency stays internal to this one file.
|
|
17
|
+
*/
|
|
18
|
+
export declare function renderWebPortal(children: ReactNode, container: unknown): ReactNode;
|
|
19
|
+
//# sourceMappingURL=renderWebPortal.web.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"renderWebPortal.web.d.ts","sourceRoot":"","sources":["../../../../src/modules/modal/renderWebPortal.web.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvC;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,eAAe,CAAC,QAAQ,EAAE,SAAS,EAAE,SAAS,EAAE,OAAO,GAAG,SAAS,CAGlF"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* MultiSelect — a trigger styled like Select/Input that opens a checkbox-style option list in React
|
|
3
|
+
* Native's OWN `Modal`. Imported directly from `"react-native"` here on purpose, and built as a
|
|
4
|
+
* standalone sibling of `Select` rather than on top of it: selection semantics differ enough
|
|
5
|
+
* (multiple values, a running "N selected" summary, checkbox-row indicators instead of a single
|
|
6
|
+
* check mark) that importing Select would force awkward prop overloading — and this module must not
|
|
7
|
+
* depend on any sibling module, including the library's own Modal (built in parallel elsewhere).
|
|
8
|
+
*
|
|
9
|
+
* The one deliberate exception is the web portal mechanism: `ModalPortalContext`/`renderWebPortal`
|
|
10
|
+
* are a plain context + a stateless helper with no React-tree footprint of their own (not the
|
|
11
|
+
* `Modal` component), so MultiSelect reads the same ones `Modal.tsx`/`Select.tsx` read to stay
|
|
12
|
+
* consistent once a consumer opts in via `ModalPortalProvider` — see `../modal/ModalPortalContext.ts`.
|
|
13
|
+
*/
|
|
14
|
+
import type { LayoutStyle } from "../../core/style";
|
|
15
|
+
import type { MultiSelectSize } from "./MultiSelect.variants";
|
|
16
|
+
export interface MultiSelectOption {
|
|
17
|
+
readonly label: string;
|
|
18
|
+
readonly value: string;
|
|
19
|
+
}
|
|
20
|
+
export interface MultiSelectProps {
|
|
21
|
+
options: MultiSelectOption[];
|
|
22
|
+
values: string[];
|
|
23
|
+
onValuesChange: (values: string[]) => void;
|
|
24
|
+
placeholder?: string;
|
|
25
|
+
label?: string;
|
|
26
|
+
disabled?: boolean;
|
|
27
|
+
size?: MultiSelectSize;
|
|
28
|
+
/** Layout-only, outermost, applied exactly once as the LAST entry in the root style array. */
|
|
29
|
+
containerStyle?: LayoutStyle;
|
|
30
|
+
testID?: string;
|
|
31
|
+
}
|
|
32
|
+
export declare const MultiSelect: import("react").NamedExoticComponent<MultiSelectProps>;
|
|
33
|
+
//# sourceMappingURL=MultiSelect.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MultiSelect.d.ts","sourceRoot":"","sources":["../../../../src/modules/multi-select/MultiSelect.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAOH,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAqBpD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AAE9D,MAAM,WAAW,iBAAiB;IAChC,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;CACxB;AAED,MAAM,WAAW,gBAAgB;IAC/B,OAAO,EAAE,iBAAiB,EAAE,CAAC;IAC7B,MAAM,EAAE,MAAM,EAAE,CAAC;IACjB,cAAc,EAAE,CAAC,MAAM,EAAE,MAAM,EAAE,KAAK,IAAI,CAAC;IAC3C,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,IAAI,CAAC,EAAE,eAAe,CAAC;IACvB,8FAA8F;IAC9F,cAAc,CAAC,EAAE,WAAW,CAAC;IAC7B,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAOD,eAAO,MAAM,WAAW,wDA0LtB,CAAC"}
|
|
@@ -0,0 +1,149 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* MultiSelect's style + behaviour resolution — mirrors `Select.variants.ts`'s split (itself copying
|
|
3
|
+
* `Button.variants.ts`):
|
|
4
|
+
* - STRUCTURE (sizing/spacing off the theme scale) lives in the `createThemedVariants` resolvers
|
|
5
|
+
* below — static per (brand, mode), registered once.
|
|
6
|
+
* - COLOUR is resolved from the theme's ROLE colours (never a raw ramp, never a hardcoded hex) by
|
|
7
|
+
* `resolveMultiSelectTriggerColors` / `resolveMultiSelectRowColors`. The row indicator's checked
|
|
8
|
+
* pairing (`border.interactive` outline / `accent.solid` fill / `accent.onSolid` glyph) is the
|
|
9
|
+
* same role mapping `Checkbox.variants.ts` uses — duplicated, not imported: modules never import
|
|
10
|
+
* across `src/modules/*`.
|
|
11
|
+
* - ACCESSIBILITY prop derivation is `resolveMultiSelectAccessibility`, kept pure so the "disabled
|
|
12
|
+
* blocks opening / expanded tracks the menu" contract is unit-testable without rendering React
|
|
13
|
+
* Native.
|
|
14
|
+
*
|
|
15
|
+
* Free of React and of any `Modal`/`Pressable` import, so the WCAG + behaviour tests import it
|
|
16
|
+
* directly (mocking only `react-native`'s `StyleSheet`, as `core/style` does).
|
|
17
|
+
*/
|
|
18
|
+
import type { RoleColors, Theme } from "../../theme";
|
|
19
|
+
export type MultiSelectSize = "sm" | "md" | "lg";
|
|
20
|
+
/** Same touch-target floor as Button/Select (44dp — Apple HIG minimum, WCAG 2.5.5 AAA). */
|
|
21
|
+
export declare const MIN_TOUCH_TARGET = 44;
|
|
22
|
+
export interface MultiSelectSizeSpec {
|
|
23
|
+
/** Visual trigger height in dp. */
|
|
24
|
+
readonly height: number;
|
|
25
|
+
/** Displayed value / placeholder text size, on the theme's `fontSizes` scale. */
|
|
26
|
+
readonly fontSize: number;
|
|
27
|
+
/** Chevron glyph size in dp. */
|
|
28
|
+
readonly iconSize: number;
|
|
29
|
+
/** Symmetric touch expansion so `height + 2·hitSlop ≥ 44`. */
|
|
30
|
+
readonly hitSlop: number;
|
|
31
|
+
}
|
|
32
|
+
export declare const MULTI_SELECT_SIZES: {
|
|
33
|
+
readonly sm: {
|
|
34
|
+
readonly height: 32;
|
|
35
|
+
readonly fontSize: 14;
|
|
36
|
+
readonly iconSize: 16;
|
|
37
|
+
readonly hitSlop: number;
|
|
38
|
+
};
|
|
39
|
+
readonly md: {
|
|
40
|
+
readonly height: 40;
|
|
41
|
+
readonly fontSize: 16;
|
|
42
|
+
readonly iconSize: 18;
|
|
43
|
+
readonly hitSlop: number;
|
|
44
|
+
};
|
|
45
|
+
readonly lg: {
|
|
46
|
+
readonly height: 48;
|
|
47
|
+
readonly fontSize: 18;
|
|
48
|
+
readonly iconSize: 20;
|
|
49
|
+
readonly hitSlop: number;
|
|
50
|
+
};
|
|
51
|
+
};
|
|
52
|
+
/** Minimum height for an option row — a list item is still an interactive target (WCAG 2.5.8). */
|
|
53
|
+
export declare const MULTI_SELECT_ROW_MIN_HEIGHT = 44;
|
|
54
|
+
/** Row checkbox-style indicator box side, in dp. Fixed — independent of the trigger's own `size`,
|
|
55
|
+
* same reasoning as `Select`'s row "check" glyph. */
|
|
56
|
+
export declare const MULTI_SELECT_ROW_INDICATOR_SIZE = 20;
|
|
57
|
+
/** The "check" glyph inside a checked row's indicator box. */
|
|
58
|
+
export declare const MULTI_SELECT_ROW_ICON_SIZE = 14;
|
|
59
|
+
/** The sheet header's close ("x") button — a fixed-size icon-only control, not caller-configurable. */
|
|
60
|
+
export declare const MULTI_SELECT_CLOSE_BUTTON_SIZE = 24;
|
|
61
|
+
export declare const MULTI_SELECT_CLOSE_ICON_SIZE = 16;
|
|
62
|
+
export declare const MULTI_SELECT_CLOSE_BUTTON_HIT_SLOP: number;
|
|
63
|
+
export interface MultiSelectTriggerColors {
|
|
64
|
+
/** Trigger fill — the same surface an Input/Select box sits on. */
|
|
65
|
+
readonly background: string;
|
|
66
|
+
/** Boundary colour: the neutral interactive outline at rest, `border.focus` while focused/open. */
|
|
67
|
+
readonly border: string;
|
|
68
|
+
/** Colour for the single-selected-label / "N selected" summary text. */
|
|
69
|
+
readonly text: string;
|
|
70
|
+
/** Colour for the placeholder (no value selected yet). */
|
|
71
|
+
readonly placeholder: string;
|
|
72
|
+
/** Chevron colour. */
|
|
73
|
+
readonly icon: string;
|
|
74
|
+
}
|
|
75
|
+
/**
|
|
76
|
+
* Maps trigger state onto role colours — the reason `size` (not a free-form colour prop) keeps this
|
|
77
|
+
* closed. `focused` covers both keyboard/AT focus and the sheet being open (visually the same cue).
|
|
78
|
+
* Disabled is NOT a separate colour branch: like Button/Select, a disabled control is exempt from the
|
|
79
|
+
* contrast minimum (WCAG 1.4.3) and is signalled by a uniform opacity dim instead.
|
|
80
|
+
*/
|
|
81
|
+
export declare function resolveMultiSelectTriggerColors(colors: RoleColors, focused: boolean): MultiSelectTriggerColors;
|
|
82
|
+
export interface MultiSelectRowColors {
|
|
83
|
+
/** Row fill — the sheet's own surface. Kept constant across selection, same reasoning as
|
|
84
|
+
* `Select`'s rows: `bg.selected` is not proven ≥ 4.5:1 against `fg.default` on every brand
|
|
85
|
+
* (measured: fails on radiant/rosewood light). Selection is conveyed by the indicator box +
|
|
86
|
+
* `accessibilityState.checked`, never by a row background swap. */
|
|
87
|
+
readonly background: string;
|
|
88
|
+
/** Option label colour, and the header close-button icon's colour (same tested pairing). */
|
|
89
|
+
readonly text: string;
|
|
90
|
+
/** Unchecked indicator boundary (WCAG 1.4.11 ≥ 3:1 against the row fill, every brand). */
|
|
91
|
+
readonly indicatorBorder: string;
|
|
92
|
+
/** Checked indicator fill — also its own boundary against the row fill (≥ 3:1). */
|
|
93
|
+
readonly indicatorFill: string;
|
|
94
|
+
/** Check glyph on `indicatorFill` — the derived on-colour (≥ 3:1 non-text; measured, never
|
|
95
|
+
* assumed), same role pairing `Checkbox` uses. */
|
|
96
|
+
readonly indicatorIcon: string;
|
|
97
|
+
}
|
|
98
|
+
export declare function resolveMultiSelectRowColors(colors: RoleColors): MultiSelectRowColors;
|
|
99
|
+
export interface MultiSelectAccessibilityInput {
|
|
100
|
+
readonly disabled?: boolean | undefined;
|
|
101
|
+
readonly open: boolean;
|
|
102
|
+
}
|
|
103
|
+
export interface MultiSelectAccessibilityProps {
|
|
104
|
+
readonly accessibilityRole: "button";
|
|
105
|
+
readonly accessibilityState: {
|
|
106
|
+
readonly disabled: boolean;
|
|
107
|
+
readonly expanded: boolean;
|
|
108
|
+
};
|
|
109
|
+
/** The `Pressable disabled` prop — blocks opening the sheet while disabled. */
|
|
110
|
+
readonly disabled: boolean;
|
|
111
|
+
}
|
|
112
|
+
/**
|
|
113
|
+
* Derives the trigger's accessibility surface once, purely: `expanded` tracks whether the option
|
|
114
|
+
* sheet is showing (WCAG 4.1.2 — a collapsible control must expose its expanded/collapsed state),
|
|
115
|
+
* and `disabled` blocks the sheet from opening at all.
|
|
116
|
+
*/
|
|
117
|
+
export declare function resolveMultiSelectAccessibility(input: MultiSelectAccessibilityInput): MultiSelectAccessibilityProps;
|
|
118
|
+
/**
|
|
119
|
+
* Structural styles only — layout, height, padding, radius, border WIDTH. No colours (tone-driven,
|
|
120
|
+
* applied inline over this), so this compiles once per theme identity via the themed resolver.
|
|
121
|
+
*/
|
|
122
|
+
export declare const multiSelectTriggerStructure: import("../../core/style").ThemedVariantResolver<Theme, {
|
|
123
|
+
size: {
|
|
124
|
+
sm: {
|
|
125
|
+
height: 32;
|
|
126
|
+
paddingHorizontal: 12;
|
|
127
|
+
};
|
|
128
|
+
md: {
|
|
129
|
+
height: 40;
|
|
130
|
+
paddingHorizontal: 16;
|
|
131
|
+
};
|
|
132
|
+
lg: {
|
|
133
|
+
height: 48;
|
|
134
|
+
paddingHorizontal: 24;
|
|
135
|
+
};
|
|
136
|
+
};
|
|
137
|
+
}, import("react-native").ViewStyle>;
|
|
138
|
+
/** The full-screen overlay the sheet centers in. `box-none` (applied by the component) lets a tap
|
|
139
|
+
* on its empty padding fall through to the backdrop press underneath. */
|
|
140
|
+
export declare const multiSelectOverlayStructure: import("../../core/style").ThemedVariantResolver<Theme, import("../../core/style").VariantGroups<import("react-native").ViewStyle>, import("react-native").ViewStyle>;
|
|
141
|
+
export declare const multiSelectSheetStructure: import("../../core/style").ThemedVariantResolver<Theme, import("../../core/style").VariantGroups<import("react-native").ViewStyle>, import("react-native").ViewStyle>;
|
|
142
|
+
/** The header row hosting the close button, right-aligned. */
|
|
143
|
+
export declare const multiSelectHeaderStructure: import("../../core/style").ThemedVariantResolver<Theme, import("../../core/style").VariantGroups<import("react-native").ViewStyle>, import("react-native").ViewStyle>;
|
|
144
|
+
export declare const multiSelectCloseButtonStructure: import("../../core/style").ThemedVariantResolver<Theme, import("../../core/style").VariantGroups<import("react-native").ViewStyle>, import("react-native").ViewStyle>;
|
|
145
|
+
export declare const multiSelectRowStructure: import("../../core/style").ThemedVariantResolver<Theme, import("../../core/style").VariantGroups<import("react-native").ViewStyle>, import("react-native").ViewStyle>;
|
|
146
|
+
/** Structural indicator-box styles only — size, radius, border WIDTH. No colours: border/fill
|
|
147
|
+
* colour is checked-state-driven and applied inline over this, same split as `checkboxBoxStructure`. */
|
|
148
|
+
export declare const multiSelectRowIndicatorStructure: import("../../core/style").ThemedVariantResolver<Theme, import("../../core/style").VariantGroups<import("react-native").ViewStyle>, import("react-native").ViewStyle>;
|
|
149
|
+
//# sourceMappingURL=MultiSelect.variants.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MultiSelect.variants.d.ts","sourceRoot":"","sources":["../../../../src/modules/multi-select/MultiSelect.variants.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,KAAK,EAAE,UAAU,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AAGrD,MAAM,MAAM,eAAe,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;AAEjD,2FAA2F;AAC3F,eAAO,MAAM,gBAAgB,KAAK,CAAC;AAKnC,MAAM,WAAW,mBAAmB;IAClC,mCAAmC;IACnC,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB,iFAAiF;IACjF,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,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;CAIkC,CAAC;AAElE,kGAAkG;AAClG,eAAO,MAAM,2BAA2B,KAAK,CAAC;AAE9C;sDACsD;AACtD,eAAO,MAAM,+BAA+B,KAAK,CAAC;AAElD,8DAA8D;AAC9D,eAAO,MAAM,0BAA0B,KAAK,CAAC;AAE7C,uGAAuG;AACvG,eAAO,MAAM,8BAA8B,KAAK,CAAC;AACjD,eAAO,MAAM,4BAA4B,KAAK,CAAC;AAC/C,eAAO,MAAM,kCAAkC,QAA0C,CAAC;AAE1F,MAAM,WAAW,wBAAwB;IACvC,mEAAmE;IACnE,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;IAC5B,mGAAmG;IACnG,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB,wEAAwE;IACxE,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,0DAA0D;IAC1D,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC;IAC7B,sBAAsB;IACtB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;CACvB;AAED;;;;;GAKG;AACH,wBAAgB,+BAA+B,CAC7C,MAAM,EAAE,UAAU,EAClB,OAAO,EAAE,OAAO,GACf,wBAAwB,CAQ1B;AAED,MAAM,WAAW,oBAAoB;IACnC;;;wEAGoE;IACpE,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;IAC5B,4FAA4F;IAC5F,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,0FAA0F;IAC1F,QAAQ,CAAC,eAAe,EAAE,MAAM,CAAC;IACjC,mFAAmF;IACnF,QAAQ,CAAC,aAAa,EAAE,MAAM,CAAC;IAC/B;uDACmD;IACnD,QAAQ,CAAC,aAAa,EAAE,MAAM,CAAC;CAChC;AAED,wBAAgB,2BAA2B,CAAC,MAAM,EAAE,UAAU,GAAG,oBAAoB,CAQpF;AAED,MAAM,WAAW,6BAA6B;IAC5C,QAAQ,CAAC,QAAQ,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;IACxC,QAAQ,CAAC,IAAI,EAAE,OAAO,CAAC;CACxB;AAED,MAAM,WAAW,6BAA6B;IAC5C,QAAQ,CAAC,iBAAiB,EAAE,QAAQ,CAAC;IACrC,QAAQ,CAAC,kBAAkB,EAAE;QAAE,QAAQ,CAAC,QAAQ,EAAE,OAAO,CAAC;QAAC,QAAQ,CAAC,QAAQ,EAAE,OAAO,CAAA;KAAE,CAAC;IACxF,+EAA+E;IAC/E,QAAQ,CAAC,QAAQ,EAAE,OAAO,CAAC;CAC5B;AAED;;;;GAIG;AACH,wBAAgB,+BAA+B,CAC7C,KAAK,EAAE,6BAA6B,GACnC,6BAA6B,CAO/B;AAED;;;GAGG;AACH,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;oCAiBrC,CAAC;AAEJ;0EAC0E;AAC1E,eAAO,MAAM,2BAA2B,uKAMrC,CAAC;AAEJ,eAAO,MAAM,yBAAyB,uKAOnC,CAAC;AAEJ,8DAA8D;AAC9D,eAAO,MAAM,0BAA0B,uKASpC,CAAC;AAEJ,eAAO,MAAM,+BAA+B,uKAQzC,CAAC;AAEJ,eAAO,MAAM,uBAAuB,uKAQjC,CAAC;AAEJ;yGACyG;AACzG,eAAO,MAAM,gCAAgC,uKAS1C,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Public surface of `pixelize-native-library/multi-select`. Value exports and type exports are split for
|
|
3
|
+
* `verbatimModuleSyntax`. The resolvers (`resolveMultiSelectTriggerColors`, `MULTI_SELECT_SIZES`, …)
|
|
4
|
+
* stay internal — a consumer configures a MultiSelect through its props, never by importing its
|
|
5
|
+
* internals.
|
|
6
|
+
*/
|
|
7
|
+
export { MultiSelect } from "./MultiSelect";
|
|
8
|
+
export type { MultiSelectProps, MultiSelectOption } from "./MultiSelect";
|
|
9
|
+
export type { MultiSelectSize } from "./MultiSelect.variants";
|
|
10
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/modules/multi-select/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,YAAY,EAAE,gBAAgB,EAAE,iBAAiB,EAAE,MAAM,eAAe,CAAC;AAEzE,YAAY,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* NumberInput — a numeric field with +/- steppers. It mirrors Input's border/focus-ring/status/
|
|
3
|
+
* touch-target conventions closely but is deliberately NOT built as an Input wrapper: a stepper needs
|
|
4
|
+
* TWO trailing controls, which doesn't fit Input's single leading/trailing icon slots — this is a
|
|
5
|
+
* standalone sibling built the same way, not a wrapper.
|
|
6
|
+
*
|
|
7
|
+
* Clamping choice (documented, not left implicit): every keystroke that parses to a finite number
|
|
8
|
+
* calls `onValueChange` with the value already clamped to [min, max] — the caller's `value` is never
|
|
9
|
+
* driven out of range mid-typing. Blur additionally resyncs the visible draft to the committed
|
|
10
|
+
* `value`, discarding anything that never parsed (a lone "-", an empty field) instead of leaving
|
|
11
|
+
* invalid text on screen.
|
|
12
|
+
*/
|
|
13
|
+
import type { LayoutStyle } from "../../core/style";
|
|
14
|
+
import type { NumberInputSize, NumberInputStatus } from "./NumberInput.variants";
|
|
15
|
+
export interface NumberInputProps {
|
|
16
|
+
value: number;
|
|
17
|
+
onValueChange: (value: number) => void;
|
|
18
|
+
min?: number;
|
|
19
|
+
max?: number;
|
|
20
|
+
/** Amount the steppers add/subtract. Typed input is clamped to [min, max] but not snapped to step. */
|
|
21
|
+
step?: number;
|
|
22
|
+
size?: NumberInputSize;
|
|
23
|
+
status?: NumberInputStatus;
|
|
24
|
+
disabled?: boolean;
|
|
25
|
+
/** Rendered above the field. Also becomes `accessibilityLabel` unless one is passed explicitly. */
|
|
26
|
+
label?: string;
|
|
27
|
+
/** Overrides the label→`accessibilityLabel` fallback. */
|
|
28
|
+
accessibilityLabel?: string;
|
|
29
|
+
/** Layout-only, outermost, applied exactly once as the LAST entry in the root style array. */
|
|
30
|
+
containerStyle?: LayoutStyle;
|
|
31
|
+
testID?: string;
|
|
32
|
+
}
|
|
33
|
+
export declare const NumberInput: import("react").NamedExoticComponent<NumberInputProps>;
|
|
34
|
+
//# sourceMappingURL=NumberInput.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"NumberInput.d.ts","sourceRoot":"","sources":["../../../../src/modules/number-input/NumberInput.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAMH,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAgBpD,OAAO,KAAK,EAAE,eAAe,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAEjF,MAAM,WAAW,gBAAgB;IAC/B,KAAK,EAAE,MAAM,CAAC;IACd,aAAa,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACvC,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,sGAAsG;IACtG,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,eAAe,CAAC;IACvB,MAAM,CAAC,EAAE,iBAAiB,CAAC;IAC3B,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,mGAAmG;IACnG,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,yDAAyD;IACzD,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,8FAA8F;IAC9F,cAAc,CAAC,EAAE,WAAW,CAAC;IAC7B,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AA2BD,eAAO,MAAM,WAAW,wDAuMtB,CAAC"}
|