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 @@
|
|
|
1
|
+
{"version":3,"names":["FileUpload"],"sourceRoot":"../../../../src","sources":["modules/file-upload/index.ts"],"mappings":";;AAAA;AACA;AACA;AACA;AACA;;AAEA,SAASA,UAAU,QAAQ,iBAAc","ignoreList":[]}
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* FilterChip — a small chip showing ONE currently-applied filter fact (e.g. "Status: Open"), with
|
|
5
|
+
* an optional "x" to remove it. NOT a `Badge`: `Badge` is documented, by its own file-level comment,
|
|
6
|
+
* as non-interactive ("no press, focus, loading, or disabled state") — this library never widens an
|
|
7
|
+
* existing component's contract to add press behaviour it was deliberately built without. A
|
|
8
|
+
* genuinely interactive chip is its own component, co-located here rather than exported from
|
|
9
|
+
* `../badge`.
|
|
10
|
+
*
|
|
11
|
+
* `onRemove` is the ENTIRE interactivity switch: provided → a `Pressable` with a trailing "x" icon
|
|
12
|
+
* (`accessibilityRole="button"`, a label that folds in the remove affordance). Omitted → a plain,
|
|
13
|
+
* non-interactive `View` with the identical visual shape — this is a "locked" chip (e.g. a board's
|
|
14
|
+
* own admin-pinned default filter the current user can't remove, matching web's `lockedChipKeys`
|
|
15
|
+
* concept), not a disabled-looking control.
|
|
16
|
+
*/
|
|
17
|
+
|
|
18
|
+
import { memo } from "react";
|
|
19
|
+
import { Pressable, Text, View } from "react-native";
|
|
20
|
+
import { Icon } from "../../core/icon/index.js";
|
|
21
|
+
import { useTheme } from "../../theme/index.js";
|
|
22
|
+
import { FILTER_CHIP_HIT_SLOP, FILTER_CHIP_ICON_SIZE, filterChipStructure, resolveFilterChipAccessibility, resolveFilterChipColors } from "./FilterSheet.variants.js";
|
|
23
|
+
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
24
|
+
const ICON_STROKE = 2;
|
|
25
|
+
export const FilterChip = /*#__PURE__*/memo(function FilterChip({
|
|
26
|
+
label,
|
|
27
|
+
onRemove,
|
|
28
|
+
style,
|
|
29
|
+
testID
|
|
30
|
+
}) {
|
|
31
|
+
const theme = useTheme();
|
|
32
|
+
const colors = resolveFilterChipColors(theme.colors);
|
|
33
|
+
const removable = onRemove !== undefined;
|
|
34
|
+
const a11y = resolveFilterChipAccessibility({
|
|
35
|
+
label,
|
|
36
|
+
removable
|
|
37
|
+
});
|
|
38
|
+
const content = /*#__PURE__*/_jsxs(_Fragment, {
|
|
39
|
+
children: [/*#__PURE__*/_jsx(Text, {
|
|
40
|
+
numberOfLines: 1,
|
|
41
|
+
style: [theme.fontStyleForWeight(theme.fontWeights.medium), {
|
|
42
|
+
fontSize: theme.fontSizes.sm,
|
|
43
|
+
color: colors.text
|
|
44
|
+
}],
|
|
45
|
+
children: label
|
|
46
|
+
}), removable && /*#__PURE__*/_jsx(Icon, {
|
|
47
|
+
name: "x",
|
|
48
|
+
size: FILTER_CHIP_ICON_SIZE,
|
|
49
|
+
color: colors.text,
|
|
50
|
+
strokeWidth: ICON_STROKE
|
|
51
|
+
})]
|
|
52
|
+
});
|
|
53
|
+
if (!removable) {
|
|
54
|
+
return /*#__PURE__*/_jsx(View, {
|
|
55
|
+
testID: testID,
|
|
56
|
+
accessible: a11y.accessible,
|
|
57
|
+
accessibilityLabel: a11y.accessibilityLabel,
|
|
58
|
+
style: [filterChipStructure(theme), {
|
|
59
|
+
backgroundColor: colors.background,
|
|
60
|
+
borderColor: colors.border
|
|
61
|
+
}, style],
|
|
62
|
+
children: content
|
|
63
|
+
});
|
|
64
|
+
}
|
|
65
|
+
return /*#__PURE__*/_jsx(Pressable, {
|
|
66
|
+
testID: testID,
|
|
67
|
+
accessible: a11y.accessible,
|
|
68
|
+
accessibilityRole: a11y.accessibilityRole,
|
|
69
|
+
accessibilityLabel: a11y.accessibilityLabel,
|
|
70
|
+
onPress: onRemove,
|
|
71
|
+
hitSlop: FILTER_CHIP_HIT_SLOP,
|
|
72
|
+
style: [filterChipStructure(theme), {
|
|
73
|
+
backgroundColor: colors.background,
|
|
74
|
+
borderColor: colors.border
|
|
75
|
+
}, style],
|
|
76
|
+
children: content
|
|
77
|
+
});
|
|
78
|
+
});
|
|
79
|
+
//# sourceMappingURL=FilterChip.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["memo","Pressable","Text","View","Icon","useTheme","FILTER_CHIP_HIT_SLOP","FILTER_CHIP_ICON_SIZE","filterChipStructure","resolveFilterChipAccessibility","resolveFilterChipColors","jsx","_jsx","Fragment","_Fragment","jsxs","_jsxs","ICON_STROKE","FilterChip","label","onRemove","style","testID","theme","colors","removable","undefined","a11y","content","children","numberOfLines","fontStyleForWeight","fontWeights","medium","fontSize","fontSizes","sm","color","text","name","size","strokeWidth","accessible","accessibilityLabel","backgroundColor","background","borderColor","border","accessibilityRole","onPress","hitSlop"],"sourceRoot":"../../../../src","sources":["modules/filter-sheet/FilterChip.tsx"],"mappings":";;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,SAASA,IAAI,QAAQ,OAAO;AAC5B,SAASC,SAAS,EAAEC,IAAI,EAAEC,IAAI,QAAQ,cAAc;AAEpD,SAASC,IAAI,QAAQ,0BAAiB;AAEtC,SAASC,QAAQ,QAAQ,sBAAa;AAEtC,SACEC,oBAAoB,EACpBC,qBAAqB,EACrBC,mBAAmB,EACnBC,8BAA8B,EAC9BC,uBAAuB,QAClB,2BAAwB;AAAC,SAAAC,GAAA,IAAAC,IAAA,EAAAC,QAAA,IAAAC,SAAA,EAAAC,IAAA,IAAAC,KAAA;AAWhC,MAAMC,WAAW,GAAG,CAAC;AAErB,OAAO,MAAMC,UAAU,gBAAGlB,IAAI,CAAC,SAASkB,UAAUA,CAAC;EAAEC,KAAK;EAAEC,QAAQ;EAAEC,KAAK;EAAEC;AAAwB,CAAC,EAAE;EACtG,MAAMC,KAAK,GAAGlB,QAAQ,CAAC,CAAC;EACxB,MAAMmB,MAAM,GAAGd,uBAAuB,CAACa,KAAK,CAACC,MAAM,CAAC;E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AmB;IAC5CM,OAAO,EAAE7B,QAAS;IAClB8B,OAAO,EAAE5C,oBAAqB;IAC9Be,KAAK,EAAE,CACLb,mBAAmB,CAACe,KAAK,CAAC,EAC1B;MAAEqB,eAAe,EAAEpB,MAAM,CAACqB,UAAU;MAAEC,WAAW,EAAEtB,MAAM,CAACuB;IAAO,CAAC,EAClE1B,KAAK,CACL;IAAAQ,QAAA,EAEDD;EAAO,CACC,CAAC;AAEhB,CAAC,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* FilterSheet — wraps this library's OWN `Drawer` (`../drawer`) as the sheet shell for a fully
|
|
5
|
+
* app-supplied set of filter DIMENSIONS (project/status/priority/type/label/… in tickets-web's own
|
|
6
|
+
* FilterBar, but this library hardcodes none of that vocabulary — see `FilterDimension` below). A
|
|
7
|
+
* consumer never touches `Drawer` directly for this use case, consumed exactly as `BottomNav`
|
|
8
|
+
* consumes `Drawer` for its own overflow sheet — through `Drawer`'s public props, never its internal
|
|
9
|
+
* `Drawer.variants.ts`.
|
|
10
|
+
*
|
|
11
|
+
* Deliberately narrow scope — a product decision, not an omission (see MODULE.md): no date-range
|
|
12
|
+
* filtering (`FilterDimensionKind` is closed to exactly `"single" | "multi"`), no advanced
|
|
13
|
+
* field/operator/value query builder, no per-board admin default-filter editor, no saved views, and
|
|
14
|
+
* no search input — a consuming app places its own `Input` for that elsewhere, the same stance
|
|
15
|
+
* tickets-web's `FilterBar` already takes (search lives outside the grouped filter panel).
|
|
16
|
+
*
|
|
17
|
+
* Internal STAGED state: opening the sheet seeds a local copy of the `values` prop (re-seeded on
|
|
18
|
+
* every closed→open transition, not on every render — see the effect below). Every edit made while
|
|
19
|
+
* the sheet is open — quick-chip taps, a dimension control's own selection, Reset — mutates ONLY
|
|
20
|
+
* that local copy. `onApply` is the sheet's one and only commit point; every other dismissal path
|
|
21
|
+
* discards the staged edits. See MODULE.md's interaction model for the full, numbered account.
|
|
22
|
+
*/
|
|
23
|
+
|
|
24
|
+
import { memo, useCallback, useEffect, useRef, useState } from "react";
|
|
25
|
+
import { Drawer } from "../drawer/index.js";
|
|
26
|
+
import { FilterSheetBody } from "./FilterSheetBody.js";
|
|
27
|
+
import { applyQuickToggle, normalizeFilterValues, resolveResetValues } from "./filterSheet.helpers.js";
|
|
28
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
29
|
+
const DEFAULT_TITLE = "Filters";
|
|
30
|
+
const DEFAULT_APPLY_LABEL = "Apply";
|
|
31
|
+
const DEFAULT_RESET_LABEL = "Reset";
|
|
32
|
+
export const FilterSheet = /*#__PURE__*/memo(function FilterSheet({
|
|
33
|
+
visible,
|
|
34
|
+
onRequestClose,
|
|
35
|
+
dimensions,
|
|
36
|
+
values,
|
|
37
|
+
onApply,
|
|
38
|
+
onReset,
|
|
39
|
+
title = DEFAULT_TITLE,
|
|
40
|
+
applyLabel = DEFAULT_APPLY_LABEL,
|
|
41
|
+
resetLabel = DEFAULT_RESET_LABEL,
|
|
42
|
+
testID
|
|
43
|
+
}) {
|
|
44
|
+
const [staged, setStaged] = useState(() => normalizeFilterValues(dimensions, values));
|
|
45
|
+
const wasVisible = useRef(visible);
|
|
46
|
+
|
|
47
|
+
// Re-seed staged from `values` only on the closed→open transition — an edit made while the sheet
|
|
48
|
+
// stays open (or a `values`/`dimensions` identity change from the consumer while it's open) is
|
|
49
|
+
// never clobbered by this effect. See MODULE.md's controlled-state contract.
|
|
50
|
+
useEffect(() => {
|
|
51
|
+
if (visible && !wasVisible.current) {
|
|
52
|
+
setStaged(normalizeFilterValues(dimensions, values));
|
|
53
|
+
}
|
|
54
|
+
wasVisible.current = visible;
|
|
55
|
+
}, [visible, dimensions, values]);
|
|
56
|
+
|
|
57
|
+
// Any dismissal that ISN'T the Apply button — backdrop tap, Android hardware back, iOS VoiceOver
|
|
58
|
+
// escape — is Drawer's own `onRequestClose`, forwarded as-is: it discards the staged edits by
|
|
59
|
+
// simply never calling `onApply`.
|
|
60
|
+
// Stable references below (`useCallback`) so `Drawer`/`FilterSheetBody` don't receive a fresh
|
|
61
|
+
// function on every render — see CLAUDE.md's "Performance — no unnecessary re-renders".
|
|
62
|
+
const handleDismiss = useCallback(() => onRequestClose(), [onRequestClose]);
|
|
63
|
+
const handleApply = useCallback(() => {
|
|
64
|
+
onApply(staged);
|
|
65
|
+
onRequestClose();
|
|
66
|
+
}, [onApply, staged, onRequestClose]);
|
|
67
|
+
const handleReset = useCallback(() => {
|
|
68
|
+
setStaged(resolveResetValues(dimensions));
|
|
69
|
+
onReset?.();
|
|
70
|
+
}, [dimensions, onReset]);
|
|
71
|
+
const handleQuickToggle = useCallback((dimension, optionValue) => {
|
|
72
|
+
setStaged(prev => applyQuickToggle(prev, dimension, optionValue));
|
|
73
|
+
}, []);
|
|
74
|
+
const handleDimensionChange = useCallback((dimension, next) => {
|
|
75
|
+
setStaged(prev => ({
|
|
76
|
+
...prev,
|
|
77
|
+
[dimension.key]: next
|
|
78
|
+
}));
|
|
79
|
+
}, []);
|
|
80
|
+
return /*#__PURE__*/_jsx(Drawer, {
|
|
81
|
+
visible: visible,
|
|
82
|
+
onRequestClose: handleDismiss,
|
|
83
|
+
testID: testID,
|
|
84
|
+
children: /*#__PURE__*/_jsx(FilterSheetBody, {
|
|
85
|
+
dimensions: dimensions,
|
|
86
|
+
staged: staged,
|
|
87
|
+
onQuickToggle: handleQuickToggle,
|
|
88
|
+
onDimensionChange: handleDimensionChange,
|
|
89
|
+
onApply: handleApply,
|
|
90
|
+
onReset: onReset !== undefined ? handleReset : undefined,
|
|
91
|
+
title: title,
|
|
92
|
+
applyLabel: applyLabel,
|
|
93
|
+
resetLabel: resetLabel,
|
|
94
|
+
testID: testID
|
|
95
|
+
})
|
|
96
|
+
});
|
|
97
|
+
});
|
|
98
|
+
//# sourceMappingURL=FilterSheet.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["memo","useCallback","useEffect","useRef","useState","Drawer","FilterSheetBody","applyQuickToggle","normalizeFilterValues","resolveResetValues","jsx","_jsx","DEFAULT_TITLE","DEFAULT_APPLY_LABEL","DEFAULT_RESET_LABEL","FilterSheet","visible","onRequestClose","dimensions","values","onApply","onReset","title","applyLabel","resetLabel","testID","staged","setStaged","wasVisible","current","handleDismiss","handleApply","handleReset","handleQuickToggle","dimension","optionValue","prev","handleDimensionChange","next","key","children","onQuickToggle","onDimensionChange","undefined"],"sourceRoot":"../../../../src","sources":["modules/filter-sheet/FilterSheet.tsx"],"mappings":";;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,SAASA,IAAI,EAAEC,WAAW,EAAEC,SAAS,EAAEC,MAAM,EAAEC,QAAQ,QAAQ,OAAO;AAEtE,SAASC,MAAM,QAAQ,oBAAW;AAElC,SAASC,eAAe,QAAQ,sBAAmB;AACnD,SAASC,gBAAgB,EAAEC,qBAAqB,EAAEC,kBAAkB,QAAQ,0BAAuB;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAuCpG,MAAMC,aAAa,GAAG,SAAS;AAC/B,MAAMC,mBAAmB,GAAG,OAAO;AACnC,MAAMC,mBAAmB,GAAG,OAAO;AAEnC,OAAO,MAAMC,WAAW,gBAAGf,IAAI,CAAC,SAASe,WAAWA,CAAC;EACnDC,OAAO;EACPC,cAAc;EACdC,UAAU;EACVC,MAAM;EACNC,OAAO;EACPC,OAAO;EACPC,KAAK,GAAGV,aAAa;EACrBW,UAAU,GAAGV,mBAAmB;EAChCW,UAAU,GAAGV,mBAAmB;EAChCW;AACgB,CAAC,EAAE;EACnB,MAAM,CAACC,MAAM,EAAEC,SAAS,CAAC,GAAGvB,QAAQ,CAAe,MAAMI,qBAAqB,CAACU,UAAU,EAAEC,MAAM,CAAC,CAAC;EACnG,MAAMS,UAAU,GAAGzB,MAAM,CAACa,OAAO,CAAC;;EAEl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,cAAc,EAAEa,aAAc;IAACL,MAAM,EAAEA,MAAO;IAAAe,QAAA,eACtE7B,IAAA,CAACL,eAAe;MACdY,UAAU,EAAEA,UAAW;MACvBQ,MAAM,EAAEA,MAAO;MACfe,aAAa,EAAER,iBAAkB;MACjCS,iBAAiB,EAAEL,qBAAsB;MACzCjB,OAAO,EAAEW,WAAY;MACrBV,OAAO,EAAEA,OAAO,KAAKsB,SAAS,GAAGX,WAAW,GAAGW,SAAU;MACzDrB,KAAK,EAAEA,KAAM;MACbC,UAAU,EAAEA,UAAW;MACvBC,UAAU,EAAEA,UAAW;MACvBC,MAAM,EAAEA;IAAO,CAChB;EAAC,CACI,CAAC;AAEb,CAAC,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,156 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* FilterSheet's style + behaviour resolution — same split as every sibling module:
|
|
5
|
+
* - STRUCTURE (padding/gaps/radius/border WIDTH) lives in the `createThemedVariants` resolvers
|
|
6
|
+
* below, registered once per theme identity.
|
|
7
|
+
* - COLOUR is resolved from the theme's ROLE colours by `resolveFilterChipColors` /
|
|
8
|
+
* `resolveQuickChipColors`, never a raw ramp, never a hardcoded hex.
|
|
9
|
+
* - `resolveFilterChipAccessibility` derives `FilterChip`'s removable-vs-locked a11y surface
|
|
10
|
+
* purely, so the contract is unit-testable without rendering React Native.
|
|
11
|
+
* - `resolveFilterSheetBodyHeight` caps the sheet's own scrollable dimension list to a fraction of
|
|
12
|
+
* the window — the same "medium detent" approximation `BottomNav.variants.ts`'s
|
|
13
|
+
* `resolveOverflowSheetHeight` already uses — so the title header and the Apply/Reset footer
|
|
14
|
+
* stay fixed above and below it. Drawer's own 90%-of-window cap still bounds the whole panel.
|
|
15
|
+
*
|
|
16
|
+
* Free of React and of any lucide import, so the WCAG + behaviour tests import it directly (mocking
|
|
17
|
+
* only `react-native`'s `StyleSheet`, as `core/style` does).
|
|
18
|
+
*/
|
|
19
|
+
|
|
20
|
+
import { createThemedVariants } from "../../core/style/index.js";
|
|
21
|
+
|
|
22
|
+
/** Same touch-target floor as every interactive control in this library (44dp — Apple HIG minimum,
|
|
23
|
+
* WCAG 2.5.5 AAA). */
|
|
24
|
+
export const MIN_TOUCH_TARGET = 44;
|
|
25
|
+
const slopFor = dimension => Math.max(0, Math.ceil((MIN_TOUCH_TARGET - dimension) / 2));
|
|
26
|
+
|
|
27
|
+
/** The sheet's scrollable dimension-list cap — a fraction of the window, capped at an absolute
|
|
28
|
+
* maximum, the same approximation `resolveOverflowSheetHeight` uses for BottomNav's own sheet. The
|
|
29
|
+
* title header and the Apply/Reset footer render OUTSIDE this cap so they stay visible regardless
|
|
30
|
+
* of how many dimensions a consumer supplies. */
|
|
31
|
+
export const FILTER_SHEET_BODY_HEIGHT_RATIO = 0.5;
|
|
32
|
+
export const FILTER_SHEET_BODY_MAX_HEIGHT = 420;
|
|
33
|
+
export function resolveFilterSheetBodyHeight(windowHeight) {
|
|
34
|
+
return Math.min(windowHeight * FILTER_SHEET_BODY_HEIGHT_RATIO, FILTER_SHEET_BODY_MAX_HEIGHT);
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
/** `FilterChip`'s fixed visual height. It is a passive/removable label, not a `size`-scaled
|
|
38
|
+
* control — no `size` prop (see MODULE.md), the same single-fixed-shape stance Drawer takes. */
|
|
39
|
+
export const FILTER_CHIP_HEIGHT = 28;
|
|
40
|
+
export const FILTER_CHIP_ICON_SIZE = 14;
|
|
41
|
+
export const FILTER_CHIP_HIT_SLOP = slopFor(FILTER_CHIP_HEIGHT);
|
|
42
|
+
/**
|
|
43
|
+
* One fixed look for every `FilterChip`, removable or locked alike — a chip states a
|
|
44
|
+
* currently-applied filter FACT, not a severity or emphasis level, so there is no `tone` prop to
|
|
45
|
+
* resolve here (unlike `Badge`, which is a passive label with several tones). Reuses `Badge`'s own
|
|
46
|
+
* "neutral" tone recipe (`bg.sunken` fill + `border.interactive` outline) — already measured
|
|
47
|
+
* ≥ 3:1 against the canvas AND against this exact fill for every brand × mode in `Badge.test.ts`,
|
|
48
|
+
* so this module doesn't re-derive a fresh, untested pairing.
|
|
49
|
+
*/
|
|
50
|
+
export function resolveFilterChipColors(colors) {
|
|
51
|
+
return {
|
|
52
|
+
background: colors.bg.sunken,
|
|
53
|
+
border: colors.border.interactive,
|
|
54
|
+
text: colors.fg.default
|
|
55
|
+
};
|
|
56
|
+
}
|
|
57
|
+
/**
|
|
58
|
+
* Derives `FilterChip`'s a11y surface once, purely. Removable → `accessibilityRole="button"` with a
|
|
59
|
+
* label that folds in the remove affordance (`"${label}, remove filter"`) so a screen reader
|
|
60
|
+
* announces what the press does — the same "one accessible node reports the whole meaning"
|
|
61
|
+
* contract `Badge` documents for its own chip. Locked (no `onRemove`) → no role at all: the
|
|
62
|
+
* component renders a plain `View`, not a `Pressable`, so there is nothing to press.
|
|
63
|
+
*/
|
|
64
|
+
export function resolveFilterChipAccessibility(input) {
|
|
65
|
+
return input.removable ? {
|
|
66
|
+
accessible: true,
|
|
67
|
+
accessibilityRole: "button",
|
|
68
|
+
accessibilityLabel: `${input.label}, remove filter`
|
|
69
|
+
} : {
|
|
70
|
+
accessible: true,
|
|
71
|
+
accessibilityRole: undefined,
|
|
72
|
+
accessibilityLabel: input.label
|
|
73
|
+
};
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
/** The one-tap quick-shortcut pill rendered above a dimension's Accordion section (e.g. a "Me"
|
|
77
|
+
* shortcut). Visually a chip, but a DISTINCT, PRIVATE component from the public `FilterChip`: it
|
|
78
|
+
* is always pressable and carries a SELECTED look, neither of which `FilterChip`'s frozen
|
|
79
|
+
* (`label`/`onRemove`) shape supports — see this module's MODULE.md. */
|
|
80
|
+
export const QUICK_CHIP_HEIGHT = 32;
|
|
81
|
+
export const QUICK_CHIP_HIT_SLOP = slopFor(QUICK_CHIP_HEIGHT);
|
|
82
|
+
/**
|
|
83
|
+
* Maps a quick chip's selected state onto role colours. Selected reads as a filled accent pill (the
|
|
84
|
+
* component additionally bolds the label weight, so selection is never conveyed by colour alone —
|
|
85
|
+
* WCAG 1.4.1, the same principle `BottomNav`'s active indicator documents); resting reads as a
|
|
86
|
+
* neutral outlined pill on the sheet's own surface.
|
|
87
|
+
*/
|
|
88
|
+
export function resolveQuickChipColors(colors, selected) {
|
|
89
|
+
return selected ? {
|
|
90
|
+
background: colors.accent.solid,
|
|
91
|
+
border: colors.accent.solid,
|
|
92
|
+
text: colors.accent.onSolid
|
|
93
|
+
} : {
|
|
94
|
+
background: colors.bg.surface,
|
|
95
|
+
border: colors.border.interactive,
|
|
96
|
+
text: colors.fg.default
|
|
97
|
+
};
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
/** The header row hosting the sheet's title. */
|
|
101
|
+
export const filterSheetHeaderStructure = createThemedVariants(theme => ({
|
|
102
|
+
base: {
|
|
103
|
+
paddingTop: theme.space[2],
|
|
104
|
+
paddingBottom: theme.space[3]
|
|
105
|
+
}
|
|
106
|
+
}));
|
|
107
|
+
|
|
108
|
+
/** One dimension's quick-chip row — wraps onto multiple lines rather than scrolling horizontally,
|
|
109
|
+
* since the sheet already scrolls vertically. */
|
|
110
|
+
export const filterSheetQuickRowStructure = createThemedVariants(theme => ({
|
|
111
|
+
base: {
|
|
112
|
+
flexDirection: "row",
|
|
113
|
+
flexWrap: "wrap",
|
|
114
|
+
columnGap: theme.space[2],
|
|
115
|
+
rowGap: theme.space[2],
|
|
116
|
+
paddingBottom: theme.space[3]
|
|
117
|
+
}
|
|
118
|
+
}));
|
|
119
|
+
|
|
120
|
+
/** The Apply/Reset footer row — right-aligned, matching Modal's own action-row convention. */
|
|
121
|
+
export const filterSheetFooterStructure = createThemedVariants(theme => ({
|
|
122
|
+
base: {
|
|
123
|
+
flexDirection: "row",
|
|
124
|
+
justifyContent: "flex-end",
|
|
125
|
+
columnGap: theme.space[3],
|
|
126
|
+
paddingTop: theme.space[3],
|
|
127
|
+
paddingBottom: theme.space[4]
|
|
128
|
+
}
|
|
129
|
+
}));
|
|
130
|
+
|
|
131
|
+
/** `FilterChip`'s own structural shape — pill height/padding/radius/border WIDTH. Colour is
|
|
132
|
+
* resolved by `resolveFilterChipColors`, applied inline over this. */
|
|
133
|
+
export const filterChipStructure = createThemedVariants(theme => ({
|
|
134
|
+
base: {
|
|
135
|
+
flexDirection: "row",
|
|
136
|
+
alignItems: "center",
|
|
137
|
+
height: FILTER_CHIP_HEIGHT,
|
|
138
|
+
columnGap: theme.space[1],
|
|
139
|
+
paddingHorizontal: theme.space[2],
|
|
140
|
+
borderRadius: theme.radii.full,
|
|
141
|
+
borderWidth: theme.borderWidths.thin
|
|
142
|
+
}
|
|
143
|
+
}));
|
|
144
|
+
|
|
145
|
+
/** The quick-shortcut pill's own structural shape. */
|
|
146
|
+
export const quickChipStructure = createThemedVariants(theme => ({
|
|
147
|
+
base: {
|
|
148
|
+
height: QUICK_CHIP_HEIGHT,
|
|
149
|
+
alignItems: "center",
|
|
150
|
+
justifyContent: "center",
|
|
151
|
+
paddingHorizontal: theme.space[3],
|
|
152
|
+
borderRadius: theme.radii.full,
|
|
153
|
+
borderWidth: theme.borderWidths.thin
|
|
154
|
+
}
|
|
155
|
+
}));
|
|
156
|
+
//# sourceMappingURL=FilterSheet.variants.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["createThemedVariants","MIN_TOUCH_TARGET","slopFor","dimension","Math","max","ceil","FILTER_SHEET_BODY_HEIGHT_RATIO","FILTER_SHEET_BODY_MAX_HEIGHT","resolveFilterSheetBodyHeight","windowHeight","min","FILTER_CHIP_HEIGHT","FILTER_CHIP_ICON_SIZE","FILTER_CHIP_HIT_SLOP","resolveFilterChipColors","colors","background","bg","sunken","border","interactive","text","fg","default","resolveFilterChipAccessibility","input","removable","accessible","accessibilityRole","accessibilityLabel","label","undefined","QUICK_CHIP_HEIGHT","QUICK_CHIP_HIT_SLOP","resolveQuickChipColors","selected","accent","solid","onSolid","surface","filterSheetHeaderStructure","theme","base","paddingTop","space","paddingBottom","filterSheetQuickRowStructure","flexDirection","flexWrap","columnGap","rowGap","filterSheetFooterStructure","justifyContent","filterChipStructure","alignItems","height","paddingHorizontal","borderRadius","radii","full","borderWidth","borderWidths","thin","quickChipStructure"],"sourceRoot":"../../../../src","sources":["modules/filter-sheet/FilterSheet.variants.ts"],"mappings":";;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAGA,SAASA,oBAAoB,QAAQ,2BAAkB;;AAEvD;AACA;AACA,OAAO,MAAMC,gBAAgB,GAAG,EAAE;AAElC,MAAMC,OAAO,GAAIC,SAAiB,IAChCC,IAAI,CAACC,GAAG,CAAC,CAAC,EAAED,IAAI,CAACE,IAAI,CAAC,CAACL,gBAAgB,GAAGE,SAAS,IAAI,CAAC,CAAC,CAAC;;AAE5D;AACA;AACA;AACA;AACA,OAAO,MAAMI,8BAA8B,GAAG,GAAG;AACjD,OAAO,MAAMC,4BAA4B,GAAG,GAAG;AAE/C,OAAO,SAASC,4BAA4BA,CAACC,YAAoB,EAAU;EACzE,OAAON,IAAI,CAACO,GAAG,CAACD,YAAY,GAAGH,8BAA8B,EAAEC,4BAA4B,CAAC;AAC9F;;AAEA;AACA;AACA,OAAO,MAAMI,kBAAkB,GAAG,EAAE;AACpC,OAAO,MAAMC,qBAAqB,GAAG,EAAE;AACvC,OAAO,MAAMC,oBAAoB,GAAGZ,OAAO,CAACU,kBAAkB,CAAC;AAY/D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASG,uBAAuBA,CAACC,MAAkB,EAAoB;EAC5E,OAAO;IACLC,UAAU,EAAED,MAAM,CAACE,EAAE,CAACC,MAAM;IAC5BC,MAAM,EAAEJ,MAAM,CAACI,MAAM,CAACC,WAAW;IACjCC,IAAI,EAAEN,MAAM,CAACO,EAAE,CAACC;EAClB,CAAC;AACH;AAaA;AACA;AACA;AACA;AACA;AACA;AACA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Ca,YAAY,EAAEhB,KAAK,CAACiB,KAAK,CAACC,IAAI;IAC9BC,WAAW,EAAEnB,KAAK,CAACoB,YAAY,CAACC;EAClC;AACF,CAAC,CAAC,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,175 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* FilterSheetBody — PRIVATE sub-component (not exported from `index.ts`, same status as
|
|
5
|
+
* `BottomNavOverflowSheet`), handed to `FilterSheet.tsx`'s `<Drawer>` as `children`: the title
|
|
6
|
+
* header, each dimension's optional quick-chip row, a single-open `Accordion` of per-dimension
|
|
7
|
+
* facet controls, and the Apply/Reset footer.
|
|
8
|
+
*
|
|
9
|
+
* Caps its own scrollable dimension list to a fraction of the window via
|
|
10
|
+
* `resolveFilterSheetBodyHeight` — the same "keep the header/footer fixed, only the middle scrolls"
|
|
11
|
+
* shape `BottomNavOverflowSheet` uses for its own search box + rows — so Apply/Reset stay reachable
|
|
12
|
+
* regardless of how many dimensions a consumer supplies, all still within Drawer's own 90%-of-window
|
|
13
|
+
* cap.
|
|
14
|
+
*/
|
|
15
|
+
|
|
16
|
+
import { useMemo } from "react";
|
|
17
|
+
import { Pressable, ScrollView, Text, useWindowDimensions, View } from "react-native";
|
|
18
|
+
import { useTheme } from "../../theme/index.js";
|
|
19
|
+
import { Accordion } from "../accordion/index.js";
|
|
20
|
+
import { Button } from "../button/index.js";
|
|
21
|
+
import { MultiSelect } from "../multi-select/index.js";
|
|
22
|
+
import { RadioGroup } from "../radio-group/index.js";
|
|
23
|
+
import { isOptionSelected } from "./filterSheet.helpers.js";
|
|
24
|
+
import { filterSheetFooterStructure, filterSheetHeaderStructure, filterSheetQuickRowStructure, QUICK_CHIP_HIT_SLOP, quickChipStructure, resolveFilterSheetBodyHeight, resolveQuickChipColors } from "./FilterSheet.variants.js";
|
|
25
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
26
|
+
export function FilterSheetBody({
|
|
27
|
+
dimensions,
|
|
28
|
+
staged,
|
|
29
|
+
onQuickToggle,
|
|
30
|
+
onDimensionChange,
|
|
31
|
+
onApply,
|
|
32
|
+
onReset,
|
|
33
|
+
title,
|
|
34
|
+
applyLabel,
|
|
35
|
+
resetLabel,
|
|
36
|
+
testID
|
|
37
|
+
}) {
|
|
38
|
+
const theme = useTheme();
|
|
39
|
+
const {
|
|
40
|
+
height: windowHeight
|
|
41
|
+
} = useWindowDimensions();
|
|
42
|
+
const bodyHeight = resolveFilterSheetBodyHeight(windowHeight);
|
|
43
|
+
|
|
44
|
+
// `useMemo`'d — this array (and the JSX it holds) goes straight into `Accordion`'s `items` prop,
|
|
45
|
+
// so a fresh array here on every render would defeat that child's `React.memo` regardless of
|
|
46
|
+
// whether `dimensions`/`staged` actually changed. See CLAUDE.md's "FilterSheet dimensions" example.
|
|
47
|
+
const accordionItems = useMemo(() => dimensions.map(dimension => ({
|
|
48
|
+
value: dimension.key,
|
|
49
|
+
title: dimension.label,
|
|
50
|
+
content: /*#__PURE__*/_jsx(DimensionControl, {
|
|
51
|
+
dimension: dimension,
|
|
52
|
+
value: staged[dimension.key],
|
|
53
|
+
onChange: next => onDimensionChange(dimension, next),
|
|
54
|
+
testID: testID ? `${testID}-control-${dimension.key}` : undefined
|
|
55
|
+
})
|
|
56
|
+
})), [dimensions, staged, onDimensionChange, testID]);
|
|
57
|
+
return /*#__PURE__*/_jsxs(View, {
|
|
58
|
+
testID: testID,
|
|
59
|
+
children: [/*#__PURE__*/_jsx(View, {
|
|
60
|
+
style: filterSheetHeaderStructure(theme),
|
|
61
|
+
children: /*#__PURE__*/_jsx(Text, {
|
|
62
|
+
accessibilityRole: "header",
|
|
63
|
+
style: [theme.fontStyleForWeight(theme.fontWeights.semibold), {
|
|
64
|
+
fontSize: theme.fontSizes.lg,
|
|
65
|
+
color: theme.colors.fg.default
|
|
66
|
+
}],
|
|
67
|
+
children: title
|
|
68
|
+
})
|
|
69
|
+
}), /*#__PURE__*/_jsxs(ScrollView, {
|
|
70
|
+
style: {
|
|
71
|
+
maxHeight: bodyHeight
|
|
72
|
+
},
|
|
73
|
+
bounces: false,
|
|
74
|
+
children: [dimensions.map(dimension => {
|
|
75
|
+
const quickOptions = dimension.options.filter(option => option.quick === true);
|
|
76
|
+
if (quickOptions.length === 0) return null;
|
|
77
|
+
return /*#__PURE__*/_jsx(View, {
|
|
78
|
+
testID: testID ? `${testID}-quick-${dimension.key}` : undefined,
|
|
79
|
+
style: filterSheetQuickRowStructure(theme),
|
|
80
|
+
children: quickOptions.map(option => /*#__PURE__*/_jsx(QuickChip, {
|
|
81
|
+
label: option.label,
|
|
82
|
+
selected: isOptionSelected(dimension, staged, option.value),
|
|
83
|
+
onPress: () => onQuickToggle(dimension, option.value),
|
|
84
|
+
testID: testID ? `${testID}-quick-${dimension.key}-${option.value}` : undefined
|
|
85
|
+
}, option.value))
|
|
86
|
+
}, `${dimension.key}-quick`);
|
|
87
|
+
}), /*#__PURE__*/_jsx(Accordion, {
|
|
88
|
+
type: "single",
|
|
89
|
+
items: accordionItems,
|
|
90
|
+
testID: testID ? `${testID}-accordion` : undefined
|
|
91
|
+
})]
|
|
92
|
+
}), /*#__PURE__*/_jsxs(View, {
|
|
93
|
+
style: filterSheetFooterStructure(theme),
|
|
94
|
+
children: [onReset !== undefined && /*#__PURE__*/_jsx(Button, {
|
|
95
|
+
variant: "ghost",
|
|
96
|
+
tone: "neutral",
|
|
97
|
+
label: resetLabel,
|
|
98
|
+
onPress: onReset,
|
|
99
|
+
testID: testID ? `${testID}-reset` : undefined
|
|
100
|
+
}), /*#__PURE__*/_jsx(Button, {
|
|
101
|
+
variant: "solid",
|
|
102
|
+
tone: "accent",
|
|
103
|
+
label: applyLabel,
|
|
104
|
+
onPress: onApply,
|
|
105
|
+
testID: testID ? `${testID}-apply` : undefined
|
|
106
|
+
})]
|
|
107
|
+
})]
|
|
108
|
+
});
|
|
109
|
+
}
|
|
110
|
+
/**
|
|
111
|
+
* Picks a dimension's own facet control by `kind` — `multi` reuses `../multi-select`'s
|
|
112
|
+
* checkbox-sheet picker, `single` reuses `../radio-group`'s inline "choose exactly one of N" rows.
|
|
113
|
+
* Per CLAUDE.md's component decision order (use an existing export, never hand-roll one), and per
|
|
114
|
+
* `RadioGroup`'s own MODULE.md, which is exactly this shape: a single-select group of options.
|
|
115
|
+
*/
|
|
116
|
+
function DimensionControl({
|
|
117
|
+
dimension,
|
|
118
|
+
value,
|
|
119
|
+
onChange,
|
|
120
|
+
testID
|
|
121
|
+
}) {
|
|
122
|
+
const options = dimension.options.map(option => ({
|
|
123
|
+
label: option.label,
|
|
124
|
+
value: option.value
|
|
125
|
+
}));
|
|
126
|
+
if (dimension.kind === "multi") {
|
|
127
|
+
const values = Array.isArray(value) ? value : [];
|
|
128
|
+
return /*#__PURE__*/_jsx(MultiSelect, {
|
|
129
|
+
options: options,
|
|
130
|
+
values: values,
|
|
131
|
+
onValuesChange: onChange,
|
|
132
|
+
placeholder: `Select ${dimension.label}`,
|
|
133
|
+
testID: testID
|
|
134
|
+
});
|
|
135
|
+
}
|
|
136
|
+
return /*#__PURE__*/_jsx(RadioGroup, {
|
|
137
|
+
options: options,
|
|
138
|
+
value: typeof value === "string" ? value : "",
|
|
139
|
+
onValueChange: onChange,
|
|
140
|
+
testID: testID
|
|
141
|
+
});
|
|
142
|
+
}
|
|
143
|
+
/** The one-tap quick-shortcut pill — a distinct, PRIVATE component from the public `FilterChip` (see
|
|
144
|
+
* `FilterSheet.variants.ts`'s file header for why the two can't share a shape). */
|
|
145
|
+
function QuickChip({
|
|
146
|
+
label,
|
|
147
|
+
selected,
|
|
148
|
+
onPress,
|
|
149
|
+
testID
|
|
150
|
+
}) {
|
|
151
|
+
const theme = useTheme();
|
|
152
|
+
const colors = resolveQuickChipColors(theme.colors, selected);
|
|
153
|
+
return /*#__PURE__*/_jsx(Pressable, {
|
|
154
|
+
testID: testID,
|
|
155
|
+
accessibilityRole: "button",
|
|
156
|
+
accessibilityState: {
|
|
157
|
+
selected
|
|
158
|
+
},
|
|
159
|
+
accessibilityLabel: label,
|
|
160
|
+
hitSlop: QUICK_CHIP_HIT_SLOP,
|
|
161
|
+
onPress: onPress,
|
|
162
|
+
style: [quickChipStructure(theme), {
|
|
163
|
+
backgroundColor: colors.background,
|
|
164
|
+
borderColor: colors.border
|
|
165
|
+
}],
|
|
166
|
+
children: /*#__PURE__*/_jsx(Text, {
|
|
167
|
+
style: [theme.fontStyleForWeight(selected ? theme.fontWeights.semibold : theme.fontWeights.regular), {
|
|
168
|
+
fontSize: theme.fontSizes.sm,
|
|
169
|
+
color: colors.text
|
|
170
|
+
}],
|
|
171
|
+
children: label
|
|
172
|
+
})
|
|
173
|
+
});
|
|
174
|
+
}
|
|
175
|
+
//# sourceMappingURL=FilterSheetBody.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["useMemo","Pressable","ScrollView","Text","useWindowDimensions","View","useTheme","Accordion","Button","MultiSelect","RadioGroup","isOptionSelected","filterSheetFooterStructure","filterSheetHeaderStructure","filterSheetQuickRowStructure","QUICK_CHIP_HIT_SLOP","quickChipStructure","resolveFilterSheetBodyHeight","resolveQuickChipColors","jsx","_jsx","jsxs","_jsxs","FilterSheetBody","dimensions","staged","onQuickToggle","onDimensionChange","onApply","onReset","title","applyLabel","resetLabel","testID","theme","height","windowHeight","bodyHeight","accordionItems","map","dimension","value","key","label","content","DimensionControl","onChange","next","undefined","children","style","accessibilityRole","fontStyleForWeight","fontWeights","semibold","fontSize","fontSizes","lg","color","colors","fg","default","maxHeight","bounces","quickOptions","options","filter","option","quick","length","QuickChip","selected","onPress","type","items","variant","tone","kind","values","Array","isArray","onValuesChange","placeholder","onValueChange","accessibilityState","accessibilityLabel","hitSlop","backgroundColor","background","borderColor","border","regular","sm","text"],"sourceRoot":"../../../../src","sources":["modules/filter-sheet/FilterSheetBody.tsx"],"mappings":";;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;A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