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,92 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Modal's style + behaviour resolution — mirrors Button/Select's split: STRUCTURE (sizing/spacing
|
|
5
|
+
* off the theme scale, plus the closed `size` maxWidth caps) lives in the `createThemedVariants`
|
|
6
|
+
* resolvers below, registered once per theme identity. COLOUR is resolved from the theme's ROLE
|
|
7
|
+
* colours (never a raw ramp, never a hardcoded hex) by `resolveModalPanelColors`. The reduced-motion
|
|
8
|
+
* contract (WCAG 2.3.3) is `resolveModalAnimationType`, kept pure so it is unit-testable without
|
|
9
|
+
* rendering React Native.
|
|
10
|
+
*
|
|
11
|
+
* Free of React and of any `Modal`/`Pressable` import, so the WCAG + behaviour tests import it
|
|
12
|
+
* directly (mocking only `react-native`'s `StyleSheet`, as `core/style` does).
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { createThemedVariants } from "../../core/style/index.js";
|
|
16
|
+
import { sizes } from "../../theme/tokens/index.js";
|
|
17
|
+
/**
|
|
18
|
+
* Reuses the shared `sizes` primitive — `theme/tokens/primitives/sizes.ts` is documented for
|
|
19
|
+
* exactly this case ("avatar/image/modal max-width") — instead of inventing Modal-local numbers.
|
|
20
|
+
*/
|
|
21
|
+
export const MODAL_SIZES = {
|
|
22
|
+
sm: {
|
|
23
|
+
maxWidth: sizes.sm
|
|
24
|
+
},
|
|
25
|
+
md: {
|
|
26
|
+
maxWidth: sizes.md
|
|
27
|
+
},
|
|
28
|
+
lg: {
|
|
29
|
+
maxWidth: sizes.lg
|
|
30
|
+
}
|
|
31
|
+
};
|
|
32
|
+
/**
|
|
33
|
+
* Maps the panel onto role colours. Kept this small on purpose: the panel has exactly one
|
|
34
|
+
* text/foreground pairing to guarantee legible (the title on its own fill) — `children` is
|
|
35
|
+
* arbitrary consumer content this module has no colour opinion about.
|
|
36
|
+
*/
|
|
37
|
+
export function resolveModalPanelColors(colors) {
|
|
38
|
+
return {
|
|
39
|
+
background: colors.bg.surface,
|
|
40
|
+
title: colors.fg.default
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
/** WCAG 2.3.3 — the fade is replaced by an instant appearance when the OS has reduced motion on. */
|
|
44
|
+
export function resolveModalAnimationType(reducedMotion) {
|
|
45
|
+
return reducedMotion ? "none" : "fade";
|
|
46
|
+
}
|
|
47
|
+
|
|
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 const modalOverlayStructure = createThemedVariants(theme => ({
|
|
54
|
+
base: {
|
|
55
|
+
flex: 1,
|
|
56
|
+
justifyContent: "center",
|
|
57
|
+
alignItems: "center",
|
|
58
|
+
paddingHorizontal: theme.space[6]
|
|
59
|
+
}
|
|
60
|
+
}));
|
|
61
|
+
|
|
62
|
+
/**
|
|
63
|
+
* Structural styles only — layout, padding, radius, max size. No colours (resolved by
|
|
64
|
+
* `resolveModalPanelColors`, applied inline over this), so this compiles once per theme identity
|
|
65
|
+
* via the `WeakMap`-cached themed resolver and never rebuilds per render.
|
|
66
|
+
*/
|
|
67
|
+
export const modalPanelStructure = createThemedVariants(theme => ({
|
|
68
|
+
base: {
|
|
69
|
+
width: "100%",
|
|
70
|
+
maxHeight: "92%",
|
|
71
|
+
borderRadius: theme.radii.lg,
|
|
72
|
+
padding: theme.space[5],
|
|
73
|
+
...theme.elevation.lg
|
|
74
|
+
},
|
|
75
|
+
variants: {
|
|
76
|
+
size: {
|
|
77
|
+
sm: {
|
|
78
|
+
maxWidth: MODAL_SIZES.sm.maxWidth
|
|
79
|
+
},
|
|
80
|
+
md: {
|
|
81
|
+
maxWidth: MODAL_SIZES.md.maxWidth
|
|
82
|
+
},
|
|
83
|
+
lg: {
|
|
84
|
+
maxWidth: MODAL_SIZES.lg.maxWidth
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
},
|
|
88
|
+
defaultVariants: {
|
|
89
|
+
size: "md"
|
|
90
|
+
}
|
|
91
|
+
}));
|
|
92
|
+
//# sourceMappingURL=Modal.variants.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["createThemedVariants","sizes","MODAL_SIZES","sm","maxWidth","md","lg","resolveModalPanelColors","colors","background","bg","surface","title","fg","default","resolveModalAnimationType","reducedMotion","modalOverlayStructure","theme","base","flex","justifyContent","alignItems","paddingHorizontal","space","modalPanelStructure","width","maxHeight","borderRadius","radii","padding","elevation","variants","size","defaultVariants"],"sourceRoot":"../../../../src","sources":["modules/modal/Modal.variants.ts"],"mappings":";;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAGA,SAASA,oBAAoB,QAAQ,2BAAkB;AACvD,SAASC,KAAK,QAAQ,6BAAoB;AAS1C;AACA;AACA;AACA;AACA,OAAO,MAAMC,WAAW,GAAG;EACzBC,EAAE,EAAE;IAAEC,QAAQ,EAAEH,KAAK,CAACE;EAAG,CAAC;EAC1BE,EAAE,EAAE;IAAED,QAAQ,EAAEH,KAAK,CAACI;EAAG,CAAC;EAC1BC,EAAE,EAAE;IAAEF,QAAQ,EAAEH,KAAK,CAACK;EAAG;AAC3B,CAAqD;AASrD;AACA;AACA;AACA;AACA;AACA,OAAO,SAASC,uBAAuBA,CAACC,MAAkB,EAAoB;EAC5E,OAAO;IACLC,UAAU,EAAED,MAAM,CAACE,EAAE,CAACC,OAAO;IAC7BC,KAAK,EAAEJ,MAAM,CAACK,EAAE,CAACC;EACnB,CAAC;AACH;AAIA;AACA,OAAO,SAASC,yBAAyBA,CAACC,aAAsB,EAAsB;EACpF,OAAOA,aAAa,GAAG,MAAM,GAAG,MAAM;AACxC;;AAEA;AACA;AACA;AACA;AACA;AACA,OAAO,MAAMC,qBAAqB,GAAGjB,oBAAoB,CAAEkB,KAAY,KAAM;EAC3EC,IAAI,EAAE;IACJC,IAAI,EAAE,CAAC;IACPC,cAAc,EAAE,QAAQ;IACxBC,UAAU,EAAE,QAAQ;IACpBC,iBAAiB,EAAEL,KAAK,CAACM,KAAK,CAAC,CAAC;EAClC;AACF,CAAC,CAAC,CAAC;;AAEH;AACA;AACA;AACA;AACA;AACA,OAAO,MAAMC,mBAAmB,GAAGzB,oBAAoB,CAAEkB,KAAY,KAAM;EACzEC,IAAI,EAAE;IACJO,KAAK,EAAE,MAAM;IACbC,SAAS,EAAE,KAAK;IAChBC,YAAY,EAAEV,KAAK,CAACW,KAAK,CAACvB,EAAE;IAC5BwB,OAAO,EAAEZ,KAAK,CAACM,KAAK,CAAC,CAAC,CAAC;IACvB,GAAGN,KAAK,CAACa,SAAS,CAACzB;EACrB,CAAC;EACD0B,QAAQ,EAAE;IACRC,IAAI,EAAE;MACJ9B,EAAE,EAAE;QAAEC,QAAQ,EAAEF,WAAW,CAACC,EAAE,CAACC;MAAS,CAAC;MACzCC,EAAE,EAAE;QAAED,QAAQ,EAAEF,WAAW,CAACG,EAAE,CAACD;MAAS,CAAC;MACzCE,EAAE,EAAE;QAAEF,QAAQ,EAAEF,WAAW,CAACI,EAAE,CAACF;MAAS;IAC1C;EACF,CAAC;EACD8B,eAAe,EAAE;IAAED,IAAI,EAAE;EAAK;AAChC,CAAC,CAAC,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Web-only escape hatch for where Modal (and, via this same context, Select/Menu's option/action
|
|
5
|
+
* sheets) portal their overlay content on `react-native-web`.
|
|
6
|
+
*
|
|
7
|
+
* `react-native-web`'s own `<Modal>` unconditionally portals to `document.body`
|
|
8
|
+
* (`react-native-web/src/exports/Modal/ModalPortal.js` — `document.body.appendChild(...)`, then
|
|
9
|
+
* `createPortal(children, elementRef.current)`; no `container`/`portalHost` prop exists to
|
|
10
|
+
* override it, verified against the installed 0.21.2 source). That is correct for a full app, but
|
|
11
|
+
* breaks visual containment inside a fixed-size preview frame (see `example/DeviceFrame.tsx`): the
|
|
12
|
+
* overlay renders full-browser-viewport instead of clipped to the frame.
|
|
13
|
+
*
|
|
14
|
+
* Defaults to `null` — every existing consumer, native or web, reads `null` here and keeps
|
|
15
|
+
* rendering through RN's own `<Modal>` exactly as before this context existed. A consumer opts in
|
|
16
|
+
* via `ModalPortalProvider` (`./ModalPortalProvider`).
|
|
17
|
+
*
|
|
18
|
+
* Typed `unknown`, not a DOM type: this package has no `"dom"` lib entry (native has no DOM), so a
|
|
19
|
+
* `HTMLElement`/`Element` annotation here would fail to compile. On web the value must be a real
|
|
20
|
+
* DOM node capable of receiving `ReactDOM.createPortal` — `renderWebPortal.web.ts` is the one place
|
|
21
|
+
* that actually dereferences it, and does the environment-appropriate cast there.
|
|
22
|
+
*/
|
|
23
|
+
import { createContext } from "react";
|
|
24
|
+
export const ModalPortalContext = /*#__PURE__*/createContext(null);
|
|
25
|
+
//# sourceMappingURL=ModalPortalContext.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["createContext","ModalPortalContext"],"sourceRoot":"../../../../src","sources":["modules/modal/ModalPortalContext.ts"],"mappings":";;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAASA,aAAa,QAAQ,OAAO;AAErC,OAAO,MAAMC,kBAAkB,gBAAGD,aAAa,CAAU,IAAI,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import { memo } from "react";
|
|
4
|
+
import { ModalPortalContext } from "./ModalPortalContext.js";
|
|
5
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
6
|
+
/**
|
|
7
|
+
* Opts a subtree into containing its Modal / AlertDialog / Select / Menu overlays inside
|
|
8
|
+
* `container` on web, instead of `react-native-web`'s default full-viewport `document.body`
|
|
9
|
+
* portal. Safe to mount unconditionally on every platform: there is no DOM to portal into outside
|
|
10
|
+
* web, so `container` is simply never read off this context there — every overlay keeps rendering
|
|
11
|
+
* through RN's own `<Modal>` regardless of this provider's presence.
|
|
12
|
+
*/
|
|
13
|
+
export const ModalPortalProvider = /*#__PURE__*/memo(function ModalPortalProvider({
|
|
14
|
+
container,
|
|
15
|
+
children
|
|
16
|
+
}) {
|
|
17
|
+
return /*#__PURE__*/_jsx(ModalPortalContext.Provider, {
|
|
18
|
+
value: container,
|
|
19
|
+
children: children
|
|
20
|
+
});
|
|
21
|
+
});
|
|
22
|
+
//# sourceMappingURL=ModalPortalProvider.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["memo","ModalPortalContext","jsx","_jsx","ModalPortalProvider","container","children","Provider","value"],"sourceRoot":"../../../../src","sources":["modules/modal/ModalPortalProvider.tsx"],"mappings":";;AACA,SAASA,IAAI,QAAQ,OAAO;AAE5B,SAASC,kBAAkB,QAAQ,yBAAsB;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAc1D;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,MAAMC,mBAAmB,gBAAGJ,IAAI,CAAC,SAASI,mBAAmBA,CAAC;EACnEC,SAAS;EACTC;AACwB,CAAC,EAAE;EAC3B,oBAAOH,IAAA,CAACF,kBAAkB,CAACM,QAAQ;IAACC,KAAK,EAAEH,SAAU;IAAAC,QAAA,EAAEA;EAAQ,CAA8B,CAAC;AAChG,CAAC,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Public surface of `pixelize-native-library/modal`. Value exports and type exports are split for
|
|
5
|
+
* `verbatimModuleSyntax`. The resolvers (`resolveModalPanelColors`, `MODAL_SIZES`, …) stay
|
|
6
|
+
* internal — a consumer configures a Modal through its props, never by importing its internals.
|
|
7
|
+
*
|
|
8
|
+
* `ModalPortalProvider` is the one exception to "configure through props" — it's a web-only opt-in
|
|
9
|
+
* ancestor, not a Modal prop, because Select/Menu (which don't render `<Modal>` at all) need the
|
|
10
|
+
* same container too. The raw `ModalPortalContext` stays internal on purpose: consumers opt in via
|
|
11
|
+
* the provider, never by reading the context directly.
|
|
12
|
+
*/
|
|
13
|
+
|
|
14
|
+
export { Modal } from "./Modal.js";
|
|
15
|
+
export { ModalPortalProvider } from "./ModalPortalProvider.js";
|
|
16
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["Modal","ModalPortalProvider"],"sourceRoot":"../../../../src","sources":["modules/modal/index.ts"],"mappings":";;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,SAASA,KAAK,QAAQ,YAAS;AAK/B,SAASC,mBAAmB,QAAQ,0BAAuB","ignoreList":[]}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Native/default counterpart of `renderWebPortal.web.ts`. There is no DOM to portal into outside a
|
|
5
|
+
* web environment, so this always returns `null` — the caller (Modal/Select/Menu) then falls back
|
|
6
|
+
* to rendering through RN's own `<Modal>`, exactly as it did before this mechanism existed.
|
|
7
|
+
*
|
|
8
|
+
* Exists so the bare specifier `import { renderWebPortal } from "./renderWebPortal"` has a
|
|
9
|
+
* same-shaped default to resolve to on every platform except an actual web bundle: Metro's
|
|
10
|
+
* platform-extension resolution picks `renderWebPortal.web.ts` only when bundling for web, and
|
|
11
|
+
* falls back to THIS file everywhere else (iOS, Android, and Jest — Jest's `react-native` preset
|
|
12
|
+
* haste config has no `web` platform, so it also always resolves here). `react-dom` therefore never
|
|
13
|
+
* enters a native dependency graph.
|
|
14
|
+
*/
|
|
15
|
+
export function renderWebPortal(_children, _container) {
|
|
16
|
+
return null;
|
|
17
|
+
}
|
|
18
|
+
//# sourceMappingURL=renderWebPortal.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["renderWebPortal","_children","_container"],"sourceRoot":"../../../../src","sources":["modules/modal/renderWebPortal.ts"],"mappings":";;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASA,eAAeA,CAACC,SAAoB,EAAEC,UAAmB,EAAa;EACpF,OAAO,IAAI;AACb","ignoreList":[]}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import { createPortal } from "react-dom";
|
|
4
|
+
/**
|
|
5
|
+
* Web implementation: portals `children` into `container` via `ReactDOM.createPortal`, bypassing
|
|
6
|
+
* `react-native-web`'s own `<Modal>` (which always portals to `document.body` — see
|
|
7
|
+
* `ModalPortalContext.ts`). Returns `null` when `container` is nullish so the caller falls back to
|
|
8
|
+
* the default `<Modal>` path.
|
|
9
|
+
*
|
|
10
|
+
* `container` is cast from `unknown` to `Element` here — the one place this mechanism's `unknown`
|
|
11
|
+
* portal-container contract gets a concrete DOM type, since only this file (Metro only ever
|
|
12
|
+
* resolves it for an actual web bundle — see `renderWebPortal.ts`) has a real DOM environment to
|
|
13
|
+
* assume. A caller that passes something that isn't really a DOM node fails at `createPortal`'s own
|
|
14
|
+
* runtime, same as any other incorrect `ReactDOM.createPortal` call would.
|
|
15
|
+
*
|
|
16
|
+
* This module's exported signature stays identical to `renderWebPortal.ts`'s (`ReactNode`,
|
|
17
|
+
* `unknown` — never a `react-dom` type), so a consumer never needs `@types/react-dom` just because
|
|
18
|
+
* they import `pixelize-native-library/modal`; that type dependency stays internal to this one file.
|
|
19
|
+
*/
|
|
20
|
+
export function renderWebPortal(children, container) {
|
|
21
|
+
if (container == null) return null;
|
|
22
|
+
return /*#__PURE__*/createPortal(children, container);
|
|
23
|
+
}
|
|
24
|
+
//# sourceMappingURL=renderWebPortal.web.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["createPortal","renderWebPortal","children","container"],"sourceRoot":"../../../../src","sources":["modules/modal/renderWebPortal.web.ts"],"mappings":";;AAAA,SAASA,YAAY,QAAQ,WAAW;AAGxC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASC,eAAeA,CAACC,QAAmB,EAAEC,SAAkB,EAAa;EAClF,IAAIA,SAAS,IAAI,IAAI,EAAE,OAAO,IAAI;EAClC,oBAAOH,YAAY,CAACE,QAAQ,EAAEC,SAAoB,CAAC;AACrD","ignoreList":[]}
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
# multi-select/ — a checkbox-style multi-value picker in a native-Modal sheet
|
|
2
|
+
|
|
3
|
+
`MultiSelect` is a `Pressable` trigger (sized/bordered like `Select`/`Input`) that opens its options,
|
|
4
|
+
each with a checkbox-style indicator, in React Native's OWN `Modal` — imported directly from
|
|
5
|
+
`"react-native"`, never the library's own Modal (built in parallel elsewhere). Standalone sibling of
|
|
6
|
+
`Select`, not built on top of it: multi-value selection, the running "N selected" summary, and
|
|
7
|
+
checkbox-row indicators are different enough semantics that reusing `Select` would force awkward
|
|
8
|
+
prop overloading.
|
|
9
|
+
|
|
10
|
+
The one deliberate exception: on web, MultiSelect reads `../modal/ModalPortalContext` +
|
|
11
|
+
`../modal/renderWebPortal` — the same web-portal-containment mechanism `Modal`/`Select`/`Menu` use —
|
|
12
|
+
so opening a `ModalPortalProvider` containing an app also contains MultiSelect's option sheet. See
|
|
13
|
+
`../modal/MODULE.md`'s "Web portal mechanism" section for the full explanation; this is a plain
|
|
14
|
+
context + a stateless helper with no React-tree footprint of its own, not a dependency on the
|
|
15
|
+
`Modal` component.
|
|
16
|
+
|
|
17
|
+
## Files
|
|
18
|
+
|
|
19
|
+
| File | Role |
|
|
20
|
+
|------|------|
|
|
21
|
+
| `MultiSelect.tsx` | The component. Trigger + `Modal` composition, open/close state, immediate per-row toggling, focus handling. |
|
|
22
|
+
| `MultiSelect.variants.ts` | Pure resolvers (`MULTI_SELECT_SIZES`, `resolveMultiSelectTriggerColors`, `resolveMultiSelectRowColors`, `resolveMultiSelectAccessibility`) + the themed structural resolvers (`multiSelectTriggerStructure`, `multiSelectOverlayStructure`, `multiSelectSheetStructure`, `multiSelectHeaderStructure`, `multiSelectCloseButtonStructure`, `multiSelectRowStructure`, `multiSelectRowIndicatorStructure`). No React, no lucide. |
|
|
23
|
+
| `index.ts` | Public surface: `MultiSelect`, `MultiSelectProps`, `MultiSelectOption`, `MultiSelectSize`. |
|
|
24
|
+
| `__tests__/MultiSelect.test.ts` | Pure: WCAG contrast (all brands × modes) + touch target + a11y contract. |
|
|
25
|
+
| `__tests__/MultiSelect.render.test.tsx` | Render: trigger summary text, open/close, disabled gating, immediate toggling, per-row `checked` state, backdrop + close-button dismissal, and the web-portal opt-in branch (mocking `renderWebPortal`). |
|
|
26
|
+
|
|
27
|
+
## Props
|
|
28
|
+
|
|
29
|
+
| Prop | Type | Default | Notes |
|
|
30
|
+
|------|------|---------|-------|
|
|
31
|
+
| `options` | `{ label: string; value: string }[]` | — | Required. |
|
|
32
|
+
| `values` | `string[]` | — | Required. The currently selected `value`s. |
|
|
33
|
+
| `onValuesChange` | `(values: string[]) => void` | — | Required. Fired immediately on row press with the next array — no separate Apply/Cancel. |
|
|
34
|
+
| `placeholder` | `string` | — | Shown when `values` is empty. |
|
|
35
|
+
| `label` | `string` | — | Field label above the trigger; also folded into its accessible name. |
|
|
36
|
+
| `disabled` | `boolean` | `false` | Blocks opening the sheet; dimmed like Select's disabled state. |
|
|
37
|
+
| `size` | `sm \| md \| lg` | `md` | 32 / 40 / 48 dp; short sizes reach 44 via `hitSlop`. |
|
|
38
|
+
| `containerStyle` | `LayoutStyle` | — | Layout-only, outermost, applied exactly once, last. |
|
|
39
|
+
| `testID` | `string` | — | Also seeds `${testID}-backdrop`, `${testID}-close`, and `${testID}-option-${value}`. |
|
|
40
|
+
|
|
41
|
+
No `icon` prop — the chevron/check/close glyphs are fixed to the component's own semantics, not
|
|
42
|
+
caller-configurable.
|
|
43
|
+
|
|
44
|
+
### Trigger summary text
|
|
45
|
+
|
|
46
|
+
- `values` empty → `placeholder` (or empty).
|
|
47
|
+
- Exactly one value → that option's own `label` (falls back to `"1 selected"` if the value matches
|
|
48
|
+
no option).
|
|
49
|
+
- Two or more values → `"${values.length} selected"`.
|
|
50
|
+
|
|
51
|
+
## Accessibility contract (WCAG)
|
|
52
|
+
|
|
53
|
+
- **2.5.x target size** — the trigger reaches ≥ 44dp via `hitSlop` at every size; option rows have a
|
|
54
|
+
44dp `minHeight` directly (list items, not slop-expandable); the header close button reaches 44dp
|
|
55
|
+
via `hitSlop`.
|
|
56
|
+
- **4.1.2** — the trigger is `accessibilityRole="button"` with `accessibilityState.expanded`
|
|
57
|
+
tracking whether the sheet is showing.
|
|
58
|
+
- **1.4.3** — trigger value/placeholder text, the field label, and option-row labels are measured
|
|
59
|
+
≥ 4.5:1 against their own fill (`bg.canvas` for the label, `bg.surface` for the trigger and every
|
|
60
|
+
row — row fill is constant across selection, see below).
|
|
61
|
+
- **1.4.11** — the trigger boundary (`border.interactive`, `border.focus` while focused/open), the
|
|
62
|
+
row indicator's unchecked outline, and its checked fill are each measured ≥ 3:1 against the sheet
|
|
63
|
+
fill.
|
|
64
|
+
- Each option row is `accessibilityRole="checkbox"` with `accessibilityState={{ checked }}`, toggled
|
|
65
|
+
immediately on press — the indicator box (outline when unchecked, `accent.solid` fill + "check"
|
|
66
|
+
glyph when checked) is the sighted echo of the same state, never the only signal.
|
|
67
|
+
- The header close button is `accessibilityRole="button"` with a fixed `accessibilityLabel="Close"`
|
|
68
|
+
(icon-only, hardcoded — not a caller-configurable slot); its icon shares the row label's colour
|
|
69
|
+
pairing, already measured ≥ 3:1 (in practice ≥ 4.5:1) on the sheet fill.
|
|
70
|
+
- **2.3.3** — the sheet's `animationType` is `"none"` instead of `"fade"` when `useReducedMotion()`
|
|
71
|
+
is true.
|
|
72
|
+
- Disabled is exempt from the contrast minimum (WCAG 1.4.3) — like Select, it's signalled by a
|
|
73
|
+
uniform `opacity: 0.5` dim rather than a separate, still-must-pass colour pair.
|
|
74
|
+
|
|
75
|
+
## Patterns copied from `Select` (which copies `Button`, the reference module)
|
|
76
|
+
|
|
77
|
+
1. **Structure vs colour split** — sizing/spacing/radius/border-width via `createThemedVariants`;
|
|
78
|
+
colour resolved from `RoleColors` per state, applied inline.
|
|
79
|
+
2. **Pure, testable resolvers** in `MultiSelect.variants.ts` — the WCAG + behaviour contract is
|
|
80
|
+
unit-tested against real palettes, never eyeballed.
|
|
81
|
+
3. **Row indicator colours mirror `Checkbox`'s role mapping** (`border.interactive` /
|
|
82
|
+
`accent.solid` / `accent.onSolid`) — duplicated locally, not imported: modules never import
|
|
83
|
+
across `src/modules/*`.
|
|
84
|
+
4. **Closed-ish surface** — `size` is a closed union; `options`/`values`/`onValuesChange` are the
|
|
85
|
+
data contract a multi-select inherently needs, not a colour escape hatch.
|
|
86
|
+
5. `style` exception — MultiSelect exposes `containerStyle` (the documented exception for a
|
|
87
|
+
component wrapping a native primitive's outer box), not a second `style` prop.
|
|
88
|
+
|
|
89
|
+
## Known gaps
|
|
90
|
+
|
|
91
|
+
- No search/filter — matches the spec this module was built against. A future `Combobox` would be a
|
|
92
|
+
separate module, not a prop added here (closed-prop-contract).
|
|
93
|
+
- No per-option `disabled` — every row is togglable whenever the sheet is open; not requested by
|
|
94
|
+
this module's spec.
|
|
95
|
+
- The trigger's focus ring is a border-colour swap (`border.focus`), same convention `Select`
|
|
96
|
+
documents as provisional pending a dedicated `Input` focus-ring reconciliation.
|
|
97
|
+
|
|
98
|
+
## Performance
|
|
99
|
+
|
|
100
|
+
Wrapped in `React.memo` (repo-wide re-render audit, 2026-07-17 — see root `CLAUDE.md`). Its one library child, `Icon`, only ever receives primitives; the `options.map()` list renders host `Pressable`/`View`/`Text` — nothing to memoize.
|
|
@@ -0,0 +1,204 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* MultiSelect — a trigger styled like Select/Input that opens a checkbox-style option list in React
|
|
5
|
+
* Native's OWN `Modal`. Imported directly from `"react-native"` here on purpose, and built as a
|
|
6
|
+
* standalone sibling of `Select` rather than on top of it: selection semantics differ enough
|
|
7
|
+
* (multiple values, a running "N selected" summary, checkbox-row indicators instead of a single
|
|
8
|
+
* check mark) that importing Select would force awkward prop overloading — and this module must not
|
|
9
|
+
* depend on any sibling module, including the library's own Modal (built in parallel elsewhere).
|
|
10
|
+
*
|
|
11
|
+
* The one deliberate exception is the web portal mechanism: `ModalPortalContext`/`renderWebPortal`
|
|
12
|
+
* are a plain context + a stateless helper with no React-tree footprint of their own (not the
|
|
13
|
+
* `Modal` component), so MultiSelect reads the same ones `Modal.tsx`/`Select.tsx` read to stay
|
|
14
|
+
* consistent once a consumer opts in via `ModalPortalProvider` — see `../modal/ModalPortalContext.ts`.
|
|
15
|
+
*/
|
|
16
|
+
|
|
17
|
+
import { memo, useContext, useState } from "react";
|
|
18
|
+
import { Modal, Platform, Pressable, ScrollView, StyleSheet, Text, View } from "react-native";
|
|
19
|
+
import { useReducedMotion } from "../../core/a11y/index.js";
|
|
20
|
+
import { Icon } from "../../core/icon/index.js";
|
|
21
|
+
import { useTheme } from "../../theme/index.js";
|
|
22
|
+
import { ModalPortalContext } from "../modal/ModalPortalContext.js";
|
|
23
|
+
import { renderWebPortal } from "../modal/renderWebPortal";
|
|
24
|
+
import { MULTI_SELECT_CLOSE_BUTTON_HIT_SLOP, MULTI_SELECT_CLOSE_ICON_SIZE, MULTI_SELECT_ROW_ICON_SIZE, MULTI_SELECT_SIZES, multiSelectCloseButtonStructure, multiSelectHeaderStructure, multiSelectOverlayStructure, multiSelectRowIndicatorStructure, multiSelectRowStructure, multiSelectSheetStructure, multiSelectTriggerStructure, resolveMultiSelectAccessibility, resolveMultiSelectRowColors, resolveMultiSelectTriggerColors } from "./MultiSelect.variants.js";
|
|
25
|
+
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
26
|
+
const ICON_STROKE = 2;
|
|
27
|
+
// Decorative dismiss scrim behind the sheet — a design constant, not a role token: it is neither
|
|
28
|
+
// text nor an interactive boundary, so WCAG's contrast minimums don't apply to it.
|
|
29
|
+
const BACKDROP_SCRIM = "#00000099";
|
|
30
|
+
export const MultiSelect = /*#__PURE__*/memo(function MultiSelect({
|
|
31
|
+
options,
|
|
32
|
+
values,
|
|
33
|
+
onValuesChange,
|
|
34
|
+
placeholder,
|
|
35
|
+
label,
|
|
36
|
+
disabled = false,
|
|
37
|
+
size = "md",
|
|
38
|
+
containerStyle,
|
|
39
|
+
testID
|
|
40
|
+
}) {
|
|
41
|
+
const theme = useTheme();
|
|
42
|
+
const reducedMotion = useReducedMotion();
|
|
43
|
+
const portalContainer = useContext(ModalPortalContext);
|
|
44
|
+
const [open, setOpen] = useState(false);
|
|
45
|
+
const [focused, setFocused] = useState(false);
|
|
46
|
+
const spec = MULTI_SELECT_SIZES[size];
|
|
47
|
+
const selectedCount = values.length;
|
|
48
|
+
const isPlaceholder = selectedCount === 0;
|
|
49
|
+
const singleLabel = selectedCount === 1 ? options.find(option => option.value === values[0])?.label : undefined;
|
|
50
|
+
const displayText = isPlaceholder ? placeholder ?? "" : singleLabel ?? `${selectedCount} selected`;
|
|
51
|
+
const triggerColors = resolveMultiSelectTriggerColors(theme.colors, focused || open);
|
|
52
|
+
const rowColors = resolveMultiSelectRowColors(theme.colors);
|
|
53
|
+
const a11y = resolveMultiSelectAccessibility({
|
|
54
|
+
disabled,
|
|
55
|
+
open
|
|
56
|
+
});
|
|
57
|
+
const accessibleName = label !== undefined ? displayText ? `${label}, ${displayText}` : label : undefined;
|
|
58
|
+
const openMenu = () => {
|
|
59
|
+
if (disabled) return;
|
|
60
|
+
setOpen(true);
|
|
61
|
+
};
|
|
62
|
+
const closeMenu = () => setOpen(false);
|
|
63
|
+
const toggleValue = value => {
|
|
64
|
+
const next = values.includes(value) ? values.filter(v => v !== value) : [...values, value];
|
|
65
|
+
onValuesChange(next);
|
|
66
|
+
};
|
|
67
|
+
const sheet = /*#__PURE__*/_jsxs(_Fragment, {
|
|
68
|
+
children: [/*#__PURE__*/_jsx(Pressable, {
|
|
69
|
+
testID: testID ? `${testID}-backdrop` : undefined,
|
|
70
|
+
accessible: false,
|
|
71
|
+
style: [StyleSheet.absoluteFill, {
|
|
72
|
+
backgroundColor: BACKDROP_SCRIM
|
|
73
|
+
}],
|
|
74
|
+
onPress: closeMenu
|
|
75
|
+
}), /*#__PURE__*/_jsx(View, {
|
|
76
|
+
style: multiSelectOverlayStructure(theme),
|
|
77
|
+
pointerEvents: "box-none",
|
|
78
|
+
children: /*#__PURE__*/_jsxs(View, {
|
|
79
|
+
style: [multiSelectSheetStructure(theme), {
|
|
80
|
+
backgroundColor: theme.colors.bg.surface
|
|
81
|
+
}],
|
|
82
|
+
children: [/*#__PURE__*/_jsx(View, {
|
|
83
|
+
style: multiSelectHeaderStructure(theme),
|
|
84
|
+
children: /*#__PURE__*/_jsx(Pressable, {
|
|
85
|
+
testID: testID ? `${testID}-close` : undefined,
|
|
86
|
+
accessibilityRole: "button",
|
|
87
|
+
accessibilityLabel: "Close",
|
|
88
|
+
onPress: closeMenu,
|
|
89
|
+
hitSlop: MULTI_SELECT_CLOSE_BUTTON_HIT_SLOP,
|
|
90
|
+
style: multiSelectCloseButtonStructure(theme),
|
|
91
|
+
children: /*#__PURE__*/_jsx(Icon, {
|
|
92
|
+
name: "x",
|
|
93
|
+
size: MULTI_SELECT_CLOSE_ICON_SIZE,
|
|
94
|
+
color: rowColors.text,
|
|
95
|
+
strokeWidth: ICON_STROKE
|
|
96
|
+
})
|
|
97
|
+
})
|
|
98
|
+
}), /*#__PURE__*/_jsx(ScrollView, {
|
|
99
|
+
bounces: false,
|
|
100
|
+
children: options.map(option => {
|
|
101
|
+
const checked = values.includes(option.value);
|
|
102
|
+
return /*#__PURE__*/_jsxs(Pressable, {
|
|
103
|
+
testID: testID ? `${testID}-option-${option.value}` : undefined,
|
|
104
|
+
accessibilityRole: "checkbox",
|
|
105
|
+
accessibilityState: {
|
|
106
|
+
checked
|
|
107
|
+
},
|
|
108
|
+
onPress: () => toggleValue(option.value),
|
|
109
|
+
style: [multiSelectRowStructure(theme), {
|
|
110
|
+
backgroundColor: rowColors.background
|
|
111
|
+
}],
|
|
112
|
+
children: [/*#__PURE__*/_jsx(View, {
|
|
113
|
+
style: [multiSelectRowIndicatorStructure(theme), {
|
|
114
|
+
borderColor: checked ? rowColors.indicatorFill : rowColors.indicatorBorder,
|
|
115
|
+
backgroundColor: checked ? rowColors.indicatorFill : "transparent"
|
|
116
|
+
}],
|
|
117
|
+
children: checked && /*#__PURE__*/_jsx(Icon, {
|
|
118
|
+
name: "check",
|
|
119
|
+
size: MULTI_SELECT_ROW_ICON_SIZE,
|
|
120
|
+
color: rowColors.indicatorIcon,
|
|
121
|
+
strokeWidth: ICON_STROKE
|
|
122
|
+
})
|
|
123
|
+
}), /*#__PURE__*/_jsx(Text, {
|
|
124
|
+
numberOfLines: 1,
|
|
125
|
+
style: [theme.fontStyleForWeight(theme.fontWeights.regular), {
|
|
126
|
+
flex: 1,
|
|
127
|
+
fontSize: theme.fontSizes.md,
|
|
128
|
+
color: rowColors.text
|
|
129
|
+
}],
|
|
130
|
+
children: option.label
|
|
131
|
+
})]
|
|
132
|
+
}, option.value);
|
|
133
|
+
})
|
|
134
|
+
})]
|
|
135
|
+
})
|
|
136
|
+
})]
|
|
137
|
+
});
|
|
138
|
+
|
|
139
|
+
// Web portal opt-in — see Modal.tsx's/Select.tsx's identical branch + ModalPortalContext.ts.
|
|
140
|
+
// Every other case (native, or web with no ModalPortalProvider) renders through RN's own
|
|
141
|
+
// <Modal> below, unchanged.
|
|
142
|
+
const menu = Platform.OS === "web" && portalContainer != null ? open ? renderWebPortal(/*#__PURE__*/_jsx(View, {
|
|
143
|
+
style: StyleSheet.absoluteFill,
|
|
144
|
+
pointerEvents: "box-none",
|
|
145
|
+
children: sheet
|
|
146
|
+
}), portalContainer) : null : /*#__PURE__*/_jsx(Modal, {
|
|
147
|
+
visible: open,
|
|
148
|
+
transparent: true,
|
|
149
|
+
animationType: reducedMotion ? "none" : "fade",
|
|
150
|
+
onRequestClose: closeMenu,
|
|
151
|
+
children: sheet
|
|
152
|
+
});
|
|
153
|
+
return /*#__PURE__*/_jsxs(View, {
|
|
154
|
+
style: [styles.container, containerStyle],
|
|
155
|
+
children: [label !== undefined && /*#__PURE__*/_jsx(Text, {
|
|
156
|
+
style: [theme.fontStyleForWeight(theme.fontWeights.medium), {
|
|
157
|
+
fontSize: theme.fontSizes.sm,
|
|
158
|
+
color: theme.colors.fg.muted,
|
|
159
|
+
marginBottom: theme.space[1]
|
|
160
|
+
}],
|
|
161
|
+
children: label
|
|
162
|
+
}), /*#__PURE__*/_jsxs(Pressable, {
|
|
163
|
+
testID: testID,
|
|
164
|
+
accessibilityRole: a11y.accessibilityRole,
|
|
165
|
+
accessibilityLabel: accessibleName,
|
|
166
|
+
accessibilityState: a11y.accessibilityState,
|
|
167
|
+
disabled: a11y.disabled,
|
|
168
|
+
onPress: openMenu,
|
|
169
|
+
onFocus: () => setFocused(true),
|
|
170
|
+
onBlur: () => setFocused(false),
|
|
171
|
+
hitSlop: spec.hitSlop,
|
|
172
|
+
style: [multiSelectTriggerStructure(theme, {
|
|
173
|
+
size
|
|
174
|
+
}), {
|
|
175
|
+
backgroundColor: triggerColors.background,
|
|
176
|
+
borderColor: triggerColors.border
|
|
177
|
+
}, disabled && styles.dimmed],
|
|
178
|
+
children: [/*#__PURE__*/_jsx(Text, {
|
|
179
|
+
numberOfLines: 1,
|
|
180
|
+
style: [theme.fontStyleForWeight(theme.fontWeights.regular), {
|
|
181
|
+
flexShrink: 1,
|
|
182
|
+
fontSize: spec.fontSize,
|
|
183
|
+
color: isPlaceholder ? triggerColors.placeholder : triggerColors.text
|
|
184
|
+
}],
|
|
185
|
+
children: displayText
|
|
186
|
+
}), /*#__PURE__*/_jsx(Icon, {
|
|
187
|
+
name: "chevron-down",
|
|
188
|
+
size: spec.iconSize,
|
|
189
|
+
color: triggerColors.icon,
|
|
190
|
+
strokeWidth: ICON_STROKE
|
|
191
|
+
})]
|
|
192
|
+
}), menu]
|
|
193
|
+
});
|
|
194
|
+
});
|
|
195
|
+
const styles = StyleSheet.create({
|
|
196
|
+
container: {
|
|
197
|
+
alignSelf: "stretch"
|
|
198
|
+
},
|
|
199
|
+
// A disabled control is exempt from the contrast minimum (WCAG 1.4.3), so a uniform dim is correct.
|
|
200
|
+
dimmed: {
|
|
201
|
+
opacity: 0.5
|
|
202
|
+
}
|
|
203
|
+
});
|
|
204
|
+
//# sourceMappingURL=MultiSelect.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["memo","useContext","useState","Modal","Platform","Pressable","ScrollView","StyleSheet","Text","View","useReducedMotion","Icon","useTheme","ModalPortalContext","renderWebPortal","MULTI_SELECT_CLOSE_BUTTON_HIT_SLOP","MULTI_SELECT_CLOSE_ICON_SIZE","MULTI_SELECT_ROW_ICON_SIZE","MULTI_SELECT_SIZES","multiSelectCloseButtonStructure","multiSelectHeaderStructure","multiSelectOverlayStructure","multiSelectRowIndicatorStructure","multiSelectRowStructure","multiSelectSheetStructure","multiSelectTriggerStructure","resolveMultiSelectAccessibility","resolveMultiSelectRowColors","resolveMultiSelectTriggerColors","jsx","_jsx","jsxs","_jsxs","Fragment","_Fragment","ICON_STROKE","BACKDROP_SCRIM","MultiSelect","options","values","onValuesChange","placeholder","label","disabled","size","containerStyle","testID","theme","reducedMotion","portalContainer","open","setOpen","focused","setFocused","spec","selectedCount","length","isPlaceholder","singleLabel","find","option","value","undefined","displayText","triggerColors","colors","rowColors","a11y","accessibleName","openMenu","closeMenu","toggleValue","next","includes","filter","v","sheet","children","accessible","style","absoluteFill","backgroundColor","onPress","pointerEvents","bg","surface","accessibilityRole","accessibilityLabel","hitSlop","name","color","text","strokeWidth","bounces","map","checked","accessibilityState","background","borderColor","indicatorFill","indicatorBorder","indicatorIcon","numberOfLines","fontStyleForWeight","fontWeights","regular","flex","fontSize","fontSizes","md","menu","OS","visible","transparent","animationType","onRequestClose","styles","container","medium","sm","fg","muted","marginBottom","space","onFocus","onBlur","border","dimmed","flexShrink","iconSize","icon","create","alignSelf","opacity"],"sourceRoot":"../../../../src","sources":["modules/multi-select/MultiSelect.tsx"],"mappings":";;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,SAASA,IAAI,EAAEC,UAAU,EAAEC,QAAQ,QAAQ,OAAO;AAClD,SAASC,KAAK,EAAEC,QAAQ,EAAEC,SAAS,EAAEC,UAAU,EAAEC,UAAU,EAAEC,IAAI,EAAEC,IAAI,QAAQ,cAAc;AAE7F,SAASC,gBAAgB,QAAQ,0BAAiB;AAClD,SAASC,IAAI,QAAQ,0BAAiB;AAEtC,SAASC,QAAQ,QAAQ,sBAAa;AACtC,SAASC,kBAAkB,QAAQ,gCAA6B;AAChE,SAASC,eAAe,QAAQ,0BAA0B;AAE1D,SACEC,kCAAkC,EAClCC,4BAA4B,EAC5BC,0BAA0B,EAC1BC,kBAAkB,EAClBC,+BAA+B,EAC/BC,0BAA0B,EAC1BC,2BAA2B,EAC3BC,gCAAgC,EAChCC,uBAAuB,EACvBC,yBAAyB,EACzBC,2BAA2B,EAC3BC,+BAA+B,EAC/BC,2BAA2B,EAC3BC,+BAA+B,QAC1B,2BAAwB;AAAC,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA,EAAAC,QAAA,IAAAC,SAAA;AAqBhC,MAAMC,WAAW,GAAG,CAAC;AACrB;AACA;AACA,MAAMC,cAAc,GAAG,WAAW;AAElC,OAAO,MAAMC,WAAW,gBAAGrC,IAAI,CAAC,SAASqC,WAAWA,CAAC;EACnDC,OAAO;EACPC,MAAM;EACNC,cAAc;EACdC,WAAW;EACXC,KAAK;EACLC,QAAQ,GAAG,KAAK;EAChBC,IAAI,GAAG,IAAI;EACXC,cA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