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,55 @@
|
|
|
1
|
+
import type { ImageStyle, StyleProp, TextStyle, ViewStyle } from "react-native";
|
|
2
|
+
export type VariantStyle = ViewStyle | TextStyle | ImageStyle;
|
|
3
|
+
export type VariantGroups<S extends VariantStyle> = Record<string, Record<string, S>>;
|
|
4
|
+
/** `{ variant?: "solid" | "outline"; size?: "sm" | "md" }` derived from the config's own keys. */
|
|
5
|
+
export type VariantSelection<V extends Record<string, object>> = {
|
|
6
|
+
readonly [G in keyof V]?: keyof V[G];
|
|
7
|
+
};
|
|
8
|
+
export interface CompoundVariant<V extends Record<string, object>, S extends VariantStyle> {
|
|
9
|
+
readonly when: VariantSelection<V>;
|
|
10
|
+
readonly style: S;
|
|
11
|
+
}
|
|
12
|
+
export interface VariantConfig<V extends VariantGroups<S>, S extends VariantStyle> {
|
|
13
|
+
readonly base?: S;
|
|
14
|
+
readonly variants?: V;
|
|
15
|
+
readonly defaultVariants?: VariantSelection<V>;
|
|
16
|
+
readonly compoundVariants?: readonly CompoundVariant<V, S>[];
|
|
17
|
+
}
|
|
18
|
+
/** `types` is a phantom: never assigned, never read — it carries `V` for `VariantProps`. */
|
|
19
|
+
export interface VariantResolver<V extends VariantGroups<S>, S extends VariantStyle> {
|
|
20
|
+
(selection?: VariantSelection<V>): StyleProp<S>;
|
|
21
|
+
readonly types?: {
|
|
22
|
+
readonly variants: V;
|
|
23
|
+
};
|
|
24
|
+
}
|
|
25
|
+
export interface ThemedVariantResolver<T, V extends VariantGroups<S>, S extends VariantStyle> {
|
|
26
|
+
(theme: T, selection?: VariantSelection<V>): StyleProp<S>;
|
|
27
|
+
readonly types?: {
|
|
28
|
+
readonly variants: V;
|
|
29
|
+
};
|
|
30
|
+
}
|
|
31
|
+
/** The component's variant prop type. Derived from the resolver, so a config is the only source. */
|
|
32
|
+
export type VariantProps<R extends {
|
|
33
|
+
readonly types?: {
|
|
34
|
+
readonly variants: Record<string, object>;
|
|
35
|
+
};
|
|
36
|
+
}> = VariantSelection<NonNullable<R["types"]>["variants"]>;
|
|
37
|
+
/**
|
|
38
|
+
* Binds the style kind so `V` stays inferable — TypeScript has no partial type-argument inference,
|
|
39
|
+
* so a single `createVariants<S, V>` would force callers to spell out `V` to pick a style kind.
|
|
40
|
+
*/
|
|
41
|
+
export declare const variantFactory: <S extends VariantStyle>() => <V extends VariantGroups<S>>(config: VariantConfig<V, S>) => VariantResolver<V, S>;
|
|
42
|
+
/**
|
|
43
|
+
* Theme-dependent values cannot live in a module-level `StyleSheet.create` — they change with brand
|
|
44
|
+
* and mode. The sheet is built on first use per theme and cached by theme identity, so it is still
|
|
45
|
+
* registered once, not rebuilt per render. A `WeakMap` means a retired theme's sheet is collectable.
|
|
46
|
+
*
|
|
47
|
+
* This requires the provider to hand out a stable theme object per (brand, mode). A theme rebuilt
|
|
48
|
+
* every render would recompile every sheet every render.
|
|
49
|
+
*/
|
|
50
|
+
export declare const themedVariantFactory: <S extends VariantStyle>() => <T extends object, V extends VariantGroups<S>>(build: (theme: T) => VariantConfig<V, S>) => ThemedVariantResolver<T, V, S>;
|
|
51
|
+
export declare const createVariants: <V extends VariantGroups<ViewStyle>>(config: VariantConfig<V, ViewStyle>) => VariantResolver<V, ViewStyle>;
|
|
52
|
+
export declare const createTextVariants: <V extends VariantGroups<TextStyle>>(config: VariantConfig<V, TextStyle>) => VariantResolver<V, TextStyle>;
|
|
53
|
+
export declare const createThemedVariants: <T extends object, V extends VariantGroups<ViewStyle>>(build: (theme: T) => VariantConfig<V, ViewStyle>) => ThemedVariantResolver<T, V, ViewStyle>;
|
|
54
|
+
export declare const createThemedTextVariants: <T extends object, V extends VariantGroups<TextStyle>>(build: (theme: T) => VariantConfig<V, TextStyle>) => ThemedVariantResolver<T, V, TextStyle>;
|
|
55
|
+
//# sourceMappingURL=variants.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"variants.d.ts","sourceRoot":"","sources":["../../../../src/core/style/variants.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,UAAU,EAAE,SAAS,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAEhF,MAAM,MAAM,YAAY,GAAG,SAAS,GAAG,SAAS,GAAG,UAAU,CAAC;AAE9D,MAAM,MAAM,aAAa,CAAC,CAAC,SAAS,YAAY,IAAI,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC,CAAC;AAEtF,kGAAkG;AAClG,MAAM,MAAM,gBAAgB,CAAC,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,IAAI;IAC/D,QAAQ,EAAE,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,EAAE,MAAM,CAAC,CAAC,CAAC,CAAC;CACrC,CAAC;AAEF,MAAM,WAAW,eAAe,CAAC,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,EAAE,CAAC,SAAS,YAAY;IACvF,QAAQ,CAAC,IAAI,EAAE,gBAAgB,CAAC,CAAC,CAAC,CAAC;IACnC,QAAQ,CAAC,KAAK,EAAE,CAAC,CAAC;CACnB;AAED,MAAM,WAAW,aAAa,CAAC,CAAC,SAAS,aAAa,CAAC,CAAC,CAAC,EAAE,CAAC,SAAS,YAAY;IAC/E,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;IAClB,QAAQ,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC;IACtB,QAAQ,CAAC,eAAe,CAAC,EAAE,gBAAgB,CAAC,CAAC,CAAC,CAAC;IAC/C,QAAQ,CAAC,gBAAgB,CAAC,EAAE,SAAS,eAAe,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE,CAAC;CAC9D;AAED,4FAA4F;AAC5F,MAAM,WAAW,eAAe,CAAC,CAAC,SAAS,aAAa,CAAC,CAAC,CAAC,EAAE,CAAC,SAAS,YAAY;IACjF,CAAC,SAAS,CAAC,EAAE,gBAAgB,CAAC,CAAC,CAAC,GAAG,SAAS,CAAC,CAAC,CAAC,CAAC;IAChD,QAAQ,CAAC,KAAK,CAAC,EAAE;QAAE,QAAQ,CAAC,QAAQ,EAAE,CAAC,CAAA;KAAE,CAAC;CAC3C;AAED,MAAM,WAAW,qBAAqB,CAAC,CAAC,EAAE,CAAC,SAAS,aAAa,CAAC,CAAC,CAAC,EAAE,CAAC,SAAS,YAAY;IAC1F,CAAC,KAAK,EAAE,CAAC,EAAE,SAAS,CAAC,EAAE,gBAAgB,CAAC,CAAC,CAAC,GAAG,SAAS,CAAC,CAAC,CAAC,CAAC;IAC1D,QAAQ,CAAC,KAAK,CAAC,EAAE;QAAE,QAAQ,CAAC,QAAQ,EAAE,CAAC,CAAA;KAAE,CAAC;CAC3C;AAED,oGAAoG;AACpG,MAAM,MAAM,YAAY,CAAC,CAAC,SAAS;IAAE,QAAQ,CAAC,KAAK,CAAC,EAAE;QAAE,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;KAAE,CAAA;CAAE,IACnG,gBAAgB,CAAC,WAAW,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC;AAiGxD;;;GAGG;AACH,eAAO,MAAM,cAAc,GACxB,CAAC,SAAS,YAAY,QACtB,CAAC,SAAS,aAAa,CAAC,CAAC,CAAC,EAAE,QAAQ,aAAa,CAAC,CAAC,EAAE,CAAC,CAAC,KAAG,eAAe,CAAC,CAAC,EAAE,CAAC,CAG9E,CAAC;AAEJ;;;;;;;GAOG;AACH,eAAO,MAAM,oBAAoB,GAC9B,CAAC,SAAS,YAAY,QACtB,CAAC,SAAS,MAAM,EAAE,CAAC,SAAS,aAAa,CAAC,CAAC,CAAC,EAC3C,OAAO,CAAC,KAAK,EAAE,CAAC,KAAK,aAAa,CAAC,CAAC,EAAE,CAAC,CAAC,KACvC,qBAAqB,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAU/B,CAAC;AAEJ,eAAO,MAAM,cAAc,GA7BxB,CAAC,wGA6BqD,CAAC;AAC1D,eAAO,MAAM,kBAAkB,GA9B5B,CAAC,wGA8ByD,CAAC;AAC9D,eAAO,MAAM,oBAAoB,GAhB9B,CAAC,SAAS,MAAM,EAAE,CAAC,8HAgB+C,CAAC;AACtE,eAAO,MAAM,wBAAwB,GAjBlC,CAAC,SAAS,MAAM,EAAE,CAAC,8HAiBmD,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Import-only barrel. LIGHT primitives only.
|
|
3
|
+
*
|
|
4
|
+
* Heavy modules (charts, date-picker, table, editor) are deliberately ABSENT here and reachable
|
|
5
|
+
* only via their subpath — so a lazy barrel import cannot drag a chart engine into an app's
|
|
6
|
+
* bundle, even with every optimizer turned off.
|
|
7
|
+
*
|
|
8
|
+
* Generated re-exports land below; do not add heavy modules by hand.
|
|
9
|
+
*/
|
|
10
|
+
export {};
|
|
11
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AACH,OAAO,EAAE,CAAC"}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Accordion — a stack of collapsible sections. `type="single"` (default) keeps at most one section
|
|
3
|
+
* open at a time (opening one closes whichever else was open; pressing the open section's own
|
|
4
|
+
* header closes it too — a single-select disclosure list, not a one-way reveal); `type="multiple"`
|
|
5
|
+
* lets every section toggle independently.
|
|
6
|
+
*
|
|
7
|
+
* Each header is a `Pressable` disclosure control (`accessibilityRole="button"`,
|
|
8
|
+
* `accessibilityState={{ expanded }}`) with a "chevron-down" glyph that rotates 180° open, animated
|
|
9
|
+
* with a single `Animated.Value` exactly like `Tabs`' indicator: under reduced motion (WCAG 2.3.3)
|
|
10
|
+
* the value is snapped with `setValue` instead of tweened with `Animated.timing`, so a duration-0
|
|
11
|
+
* `Animated.timing` can never sneak an intermediate frame through.
|
|
12
|
+
*
|
|
13
|
+
* Content is CONDITIONALLY RENDERED (mounted only while expanded), not height-animated. React
|
|
14
|
+
* Native has no native height transition without a measure-then-animate hack (measure the content
|
|
15
|
+
* once mounted, then tween a `height`/`Animated.Value` from 0 to the measured value) — that hack is
|
|
16
|
+
* fragile (a wrong first measurement, a content resize, and the animation targets a stale height)
|
|
17
|
+
* and untestable in this repo's jsdom-less test renderer, which never runs real layout. A conditional
|
|
18
|
+
* mount is a real instant "snap" open/close, so it also satisfies the reduced-motion requirement for
|
|
19
|
+
* free — there is no tween to gate for that case at all.
|
|
20
|
+
*/
|
|
21
|
+
import type { ReactNode } from "react";
|
|
22
|
+
import type { LayoutStyle } from "../../core/style";
|
|
23
|
+
import type { AccordionSize } from "./Accordion.variants";
|
|
24
|
+
export interface AccordionItem {
|
|
25
|
+
readonly value: string;
|
|
26
|
+
readonly title: string;
|
|
27
|
+
/** Ordinary composition, rendered directly under a `View` when expanded — same contract as
|
|
28
|
+
* `Card.children`: a consumer wraps its own raw text in `Text`, this component does not. */
|
|
29
|
+
readonly content: ReactNode;
|
|
30
|
+
}
|
|
31
|
+
interface AccordionBaseProps {
|
|
32
|
+
items: AccordionItem[];
|
|
33
|
+
/** Blocks every header's toggle at once — there is no per-item `disabled`. */
|
|
34
|
+
disabled?: boolean;
|
|
35
|
+
size?: AccordionSize;
|
|
36
|
+
/** Layout-only, outermost, applied exactly once as the LAST entry in the root style array. */
|
|
37
|
+
style?: LayoutStyle;
|
|
38
|
+
testID?: string;
|
|
39
|
+
}
|
|
40
|
+
/** At most one section open at a time. The default shape — `type` may be omitted. */
|
|
41
|
+
interface AccordionSingleProps extends AccordionBaseProps {
|
|
42
|
+
type?: "single";
|
|
43
|
+
value?: string;
|
|
44
|
+
defaultValue?: string;
|
|
45
|
+
onValueChange?: (value: string) => void;
|
|
46
|
+
}
|
|
47
|
+
/** Every section toggles independently. */
|
|
48
|
+
interface AccordionMultipleProps extends AccordionBaseProps {
|
|
49
|
+
type: "multiple";
|
|
50
|
+
value?: string[];
|
|
51
|
+
defaultValue?: string[];
|
|
52
|
+
onValueChange?: (value: string[]) => void;
|
|
53
|
+
}
|
|
54
|
+
export type AccordionProps = AccordionSingleProps | AccordionMultipleProps;
|
|
55
|
+
export declare const Accordion: import("react").NamedExoticComponent<AccordionProps>;
|
|
56
|
+
export {};
|
|
57
|
+
//# sourceMappingURL=Accordion.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Accordion.d.ts","sourceRoot":"","sources":["../../../../src/modules/accordion/Accordion.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAIH,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAIvC,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAYpD,OAAO,KAAK,EAAmB,aAAa,EAAE,MAAM,sBAAsB,CAAC;AAE3E,MAAM,WAAW,aAAa;IAC5B,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB;gGAC4F;IAC5F,QAAQ,CAAC,OAAO,EAAE,SAAS,CAAC;CAC7B;AAED,UAAU,kBAAkB;IAC1B,KAAK,EAAE,aAAa,EAAE,CAAC;IACvB,8EAA8E;IAC9E,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,IAAI,CAAC,EAAE,aAAa,CAAC;IACrB,8FAA8F;IAC9F,KAAK,CAAC,EAAE,WAAW,CAAC;IACpB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,qFAAqF;AACrF,UAAU,oBAAqB,SAAQ,kBAAkB;IACvD,IAAI,CAAC,EAAE,QAAQ,CAAC;IAChB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;CACzC;AAED,2CAA2C;AAC3C,UAAU,sBAAuB,SAAQ,kBAAkB;IACzD,IAAI,EAAE,UAAU,CAAC;IACjB,KAAK,CAAC,EAAE,MAAM,EAAE,CAAC;IACjB,YAAY,CAAC,EAAE,MAAM,EAAE,CAAC;IACxB,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,IAAI,CAAC;CAC3C;AAED,MAAM,MAAM,cAAc,GAAG,oBAAoB,GAAG,sBAAsB,CAAC;AAY3E,eAAO,MAAM,SAAS,sDAwDpB,CAAC"}
|
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Accordion's style + behaviour resolution — pure, React/lucide-free, same split as Button/Tabs:
|
|
3
|
+
* - STRUCTURE (header min-height/padding, item separator width) lives in the `createThemedVariants`
|
|
4
|
+
* resolvers below, registered once per (theme, size) — never rebuilt per render.
|
|
5
|
+
* - COLOUR is resolved from the theme's ROLE colours (`resolveAccordionColors`), never a raw hex:
|
|
6
|
+
* the title is always `fg.default`, the chevron is always `fg.muted`, and the item separator is
|
|
7
|
+
* the same decorative `border.default` rung `Divider` uses — a separator between sections
|
|
8
|
+
* conveys no information of its own (removing it changes spacing, not meaning), so WCAG 1.4.11
|
|
9
|
+
* doesn't bind it; never the guaranteed-≥3:1 `interactive`/`focus` rungs those exist for.
|
|
10
|
+
* - `resolveAccordionHeaderAccessibility` derives one header's a11y surface purely, so the
|
|
11
|
+
* "expanded tracks open state / disabled blocks the toggle" contract is unit-testable without
|
|
12
|
+
* rendering React Native.
|
|
13
|
+
*/
|
|
14
|
+
import type { RoleColors, Theme } from "../../theme";
|
|
15
|
+
export type AccordionSize = "sm" | "md" | "lg";
|
|
16
|
+
/** Same floor as Button/Tabs/Select — 44dp (WCAG 2.5.5 AAA / HIG). Duplicated, not imported: modules
|
|
17
|
+
* stay isolated. */
|
|
18
|
+
export declare const MIN_TOUCH_TARGET = 44;
|
|
19
|
+
export interface AccordionSizeSpec {
|
|
20
|
+
/** Visual header row height in dp. */
|
|
21
|
+
readonly headerMinHeight: number;
|
|
22
|
+
/** Title size, on the theme's `fontSizes` scale. */
|
|
23
|
+
readonly fontSize: number;
|
|
24
|
+
/** Chevron glyph size in dp. */
|
|
25
|
+
readonly iconSize: number;
|
|
26
|
+
/** Symmetric touch expansion so `headerMinHeight + 2·hitSlop ≥ 44`. */
|
|
27
|
+
readonly hitSlop: number;
|
|
28
|
+
}
|
|
29
|
+
/**
|
|
30
|
+
* Accordion-specific dimensions. Kept a plain constant — no theme dependency — so the hit-target
|
|
31
|
+
* test can assert `headerMinHeight + 2·hitSlop ≥ 44` without a provider, same as `BUTTON_SIZES`.
|
|
32
|
+
*/
|
|
33
|
+
export declare const ACCORDION_SIZES: {
|
|
34
|
+
readonly sm: {
|
|
35
|
+
readonly headerMinHeight: 40;
|
|
36
|
+
readonly fontSize: 14;
|
|
37
|
+
readonly iconSize: 16;
|
|
38
|
+
readonly hitSlop: number;
|
|
39
|
+
};
|
|
40
|
+
readonly md: {
|
|
41
|
+
readonly headerMinHeight: 48;
|
|
42
|
+
readonly fontSize: 16;
|
|
43
|
+
readonly iconSize: 18;
|
|
44
|
+
readonly hitSlop: number;
|
|
45
|
+
};
|
|
46
|
+
readonly lg: {
|
|
47
|
+
readonly headerMinHeight: 56;
|
|
48
|
+
readonly fontSize: 18;
|
|
49
|
+
readonly iconSize: 20;
|
|
50
|
+
readonly hitSlop: number;
|
|
51
|
+
};
|
|
52
|
+
};
|
|
53
|
+
export interface AccordionColors {
|
|
54
|
+
/** The header title, read on the canvas (resting) and on `pressedHeaderBg` (pressed). */
|
|
55
|
+
readonly title: string;
|
|
56
|
+
/** The chevron glyph — a non-text state indicator, not a label. */
|
|
57
|
+
readonly icon: string;
|
|
58
|
+
/** The hairline between items — decorative, never the interactive/focus rungs. */
|
|
59
|
+
readonly divider: string;
|
|
60
|
+
/** A header's background while pressed. */
|
|
61
|
+
readonly pressedHeaderBg: string;
|
|
62
|
+
/** The focus-ring boundary (WCAG 2.4.7), drawn a small gap outside the header on the canvas. */
|
|
63
|
+
readonly focusRing: string;
|
|
64
|
+
}
|
|
65
|
+
/**
|
|
66
|
+
* Maps the accordion's fixed visual roles onto ROLE colours — never a hardcoded hex. There is no
|
|
67
|
+
* per-item `tone`: every title is the same `fg.default`, every chevron the same `fg.muted`, so —
|
|
68
|
+
* like `RadioGroup`/`Tabs` — this is pure indirection into the roles, not a union to resolve.
|
|
69
|
+
*/
|
|
70
|
+
export declare function resolveAccordionColors(colors: RoleColors): AccordionColors;
|
|
71
|
+
export interface AccordionHeaderAccessibilityInput {
|
|
72
|
+
readonly expanded: boolean;
|
|
73
|
+
readonly disabled: boolean;
|
|
74
|
+
}
|
|
75
|
+
export interface AccordionHeaderAccessibilityProps {
|
|
76
|
+
readonly accessibilityRole: "button";
|
|
77
|
+
readonly accessibilityState: {
|
|
78
|
+
readonly expanded: boolean;
|
|
79
|
+
readonly disabled: boolean;
|
|
80
|
+
};
|
|
81
|
+
/** The `Pressable disabled` prop — blocks touches without relying on `onPress` gating alone. */
|
|
82
|
+
readonly disabled: boolean;
|
|
83
|
+
}
|
|
84
|
+
/**
|
|
85
|
+
* Derives one header's accessibility surface purely, mirroring `resolveSelectAccessibility`:
|
|
86
|
+
* `expanded` tracks whether that item's content is showing (WCAG 4.1.2 — a disclosure control must
|
|
87
|
+
* expose its expanded/collapsed state), and `disabled` blocks the toggle at the whole-accordion
|
|
88
|
+
* level (there is no per-item `disabled` — see `Accordion.tsx`).
|
|
89
|
+
*/
|
|
90
|
+
export declare function resolveAccordionHeaderAccessibility(input: AccordionHeaderAccessibilityInput): AccordionHeaderAccessibilityProps;
|
|
91
|
+
/**
|
|
92
|
+
* One item's separator — a hairline on the bottom edge, theme-scaled border WIDTH. Colour
|
|
93
|
+
* (`divider`) is resolved separately and applied inline over this.
|
|
94
|
+
*/
|
|
95
|
+
export declare const accordionItemStructure: import("../../core/style").ThemedVariantResolver<Theme, import("../../core/style").VariantGroups<import("react-native").ViewStyle>, import("react-native").ViewStyle>;
|
|
96
|
+
/**
|
|
97
|
+
* The header row's layout — height floor, inset vertical padding, and the gap to the chevron.
|
|
98
|
+
* Colour (title/icon tint, pressed fill) is resolved and applied inline over this.
|
|
99
|
+
*/
|
|
100
|
+
export declare const accordionHeaderStructure: import("../../core/style").ThemedVariantResolver<Theme, {
|
|
101
|
+
size: {
|
|
102
|
+
sm: {
|
|
103
|
+
minHeight: 40;
|
|
104
|
+
paddingVertical: 8;
|
|
105
|
+
};
|
|
106
|
+
md: {
|
|
107
|
+
minHeight: 48;
|
|
108
|
+
paddingVertical: 12;
|
|
109
|
+
};
|
|
110
|
+
lg: {
|
|
111
|
+
minHeight: 56;
|
|
112
|
+
paddingVertical: 16;
|
|
113
|
+
};
|
|
114
|
+
};
|
|
115
|
+
}, import("react-native").ViewStyle>;
|
|
116
|
+
/** The expanded content's layout — bottom inset only (matches the header's own horizontal flush,
|
|
117
|
+
* shadcn-style: no left/right padding of its own). */
|
|
118
|
+
export declare const accordionContentStructure: import("../../core/style").ThemedVariantResolver<Theme, {
|
|
119
|
+
size: {
|
|
120
|
+
sm: {
|
|
121
|
+
paddingBottom: 12;
|
|
122
|
+
};
|
|
123
|
+
md: {
|
|
124
|
+
paddingBottom: 16;
|
|
125
|
+
};
|
|
126
|
+
lg: {
|
|
127
|
+
paddingBottom: 20;
|
|
128
|
+
};
|
|
129
|
+
};
|
|
130
|
+
}, import("react-native").ViewStyle>;
|
|
131
|
+
//# sourceMappingURL=Accordion.variants.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Accordion.variants.d.ts","sourceRoot":"","sources":["../../../../src/modules/accordion/Accordion.variants.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAEH,OAAO,KAAK,EAAE,UAAU,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AAGrD,MAAM,MAAM,aAAa,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;AAE/C;oBACoB;AACpB,eAAO,MAAM,gBAAgB,KAAK,CAAC;AAInC,MAAM,WAAW,iBAAiB;IAChC,sCAAsC;IACtC,QAAQ,CAAC,eAAe,EAAE,MAAM,CAAC;IACjC,oDAAoD;IACpD,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;IAC1B,gCAAgC;IAChC,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;IAC1B,uEAAuE;IACvE,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;CAC1B;AAED;;;GAGG;AACH,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;CAIiC,CAAC;AAE9D,MAAM,WAAW,eAAe;IAC9B,yFAAyF;IACzF,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,mEAAmE;IACnE,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,kFAAkF;IAClF,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IACzB,2CAA2C;IAC3C,QAAQ,CAAC,eAAe,EAAE,MAAM,CAAC;IACjC,gGAAgG;IAChG,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;CAC5B;AAED;;;;GAIG;AACH,wBAAgB,sBAAsB,CAAC,MAAM,EAAE,UAAU,GAAG,eAAe,CAY1E;AAED,MAAM,WAAW,iCAAiC;IAChD,QAAQ,CAAC,QAAQ,EAAE,OAAO,CAAC;IAC3B,QAAQ,CAAC,QAAQ,EAAE,OAAO,CAAC;CAC5B;AAED,MAAM,WAAW,iCAAiC;IAChD,QAAQ,CAAC,iBAAiB,EAAE,QAAQ,CAAC;IACrC,QAAQ,CAAC,kBAAkB,EAAE;QAAE,QAAQ,CAAC,QAAQ,EAAE,OAAO,CAAC;QAAC,QAAQ,CAAC,QAAQ,EAAE,OAAO,CAAA;KAAE,CAAC;IACxF,gGAAgG;IAChG,QAAQ,CAAC,QAAQ,EAAE,OAAO,CAAC;CAC5B;AAED;;;;;GAKG;AACH,wBAAgB,mCAAmC,CACjD,KAAK,EAAE,iCAAiC,GACvC,iCAAiC,CAMnC;AAED;;;GAGG;AACH,eAAO,MAAM,sBAAsB,uKAIhC,CAAC;AAEJ;;;GAGG;AACH,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;oCAelC,CAAC;AAEJ;sDACsD;AACtD,eAAO,MAAM,yBAAyB;;;;;;;;;;;;oCASnC,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Public surface of `pixelize-native-library/accordion`. Value exports and type exports are split for
|
|
3
|
+
* `verbatimModuleSyntax`. The resolvers (`resolveAccordionColors`, `ACCORDION_SIZES`, …) stay
|
|
4
|
+
* internal — a consumer configures an Accordion through its props, never by importing internals.
|
|
5
|
+
*/
|
|
6
|
+
export { Accordion } from "./Accordion";
|
|
7
|
+
export type { AccordionItem, AccordionProps } from "./Accordion";
|
|
8
|
+
export type { AccordionSize } from "./Accordion.variants";
|
|
9
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/modules/accordion/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,YAAY,EAAE,aAAa,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAEjE,YAAY,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* AlertDialog — a small, focused confirm/alert dialog, DELIBERATELY composed from this library's
|
|
3
|
+
* own, already-shipped `Modal` and `Button` rather than reimplementing a backdrop/panel/action row
|
|
4
|
+
* from scratch. `Modal` owns presentation, dismissal, and the title's contrast; `Button` owns every
|
|
5
|
+
* action's tone, press feedback, and touch target. This module's entire job is wiring: which two
|
|
6
|
+
* actions appear, in what order, and which tone the confirm action carries.
|
|
7
|
+
*/
|
|
8
|
+
import type { AlertDialogTone } from "./AlertDialog.variants";
|
|
9
|
+
export interface AlertDialogProps {
|
|
10
|
+
visible: boolean;
|
|
11
|
+
onRequestClose: () => void;
|
|
12
|
+
title: string;
|
|
13
|
+
description?: string;
|
|
14
|
+
confirmLabel: string;
|
|
15
|
+
cancelLabel?: string;
|
|
16
|
+
onConfirm: () => void;
|
|
17
|
+
/** Defaults to `onRequestClose` — cancelling and dismissing mean the same thing unless overridden. */
|
|
18
|
+
onCancel?: () => void;
|
|
19
|
+
/** `"danger"` mirrors Button's own destructive-action tone on the confirm button. */
|
|
20
|
+
tone?: AlertDialogTone;
|
|
21
|
+
testID?: string;
|
|
22
|
+
}
|
|
23
|
+
export declare const AlertDialog: import("react").NamedExoticComponent<AlertDialogProps>;
|
|
24
|
+
//# sourceMappingURL=AlertDialog.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AlertDialog.d.ts","sourceRoot":"","sources":["../../../../src/modules/alert-dialog/AlertDialog.tsx"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAUH,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AAE9D,MAAM,WAAW,gBAAgB;IAC/B,OAAO,EAAE,OAAO,CAAC;IACjB,cAAc,EAAE,MAAM,IAAI,CAAC;IAC3B,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,YAAY,EAAE,MAAM,CAAC;IACrB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,SAAS,EAAE,MAAM,IAAI,CAAC;IACtB,sGAAsG;IACtG,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAC;IACtB,qFAAqF;IACrF,IAAI,CAAC,EAAE,eAAe,CAAC;IACvB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,eAAO,MAAM,WAAW,wDA6CtB,CAAC"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* AlertDialog's pure resolvers. This module owns no colour RESOLVER of its own — the panel, the
|
|
3
|
+
* title, and the confirm action's fill are `Modal`'s and `Button`'s own resolvers, applied unchanged
|
|
4
|
+
* (see `Modal.test.ts` / `Button.test.ts`). The Cancel action's outline label/border ARE measured
|
|
5
|
+
* against the panel's `bg.surface` — but off Button's actually-rendered output (in
|
|
6
|
+
* `AlertDialog.render.test.tsx`, which mounts `<AlertDialog>` and reads the Cancel Button's rendered
|
|
7
|
+
* style), never by importing `Button`'s internal `resolveButtonTone` resolver directly — `Button`'s
|
|
8
|
+
* own index.ts keeps that resolver internal. What IS this module's own contract, and so lives here:
|
|
9
|
+
* the `tone` → confirm-button-tone mapping, and the structural layout of the action row.
|
|
10
|
+
*
|
|
11
|
+
* Free of React and of any `Modal`/`Button` RENDER import — only `ButtonTone`'s TYPE is pulled in —
|
|
12
|
+
* so this stays a pure resolver file, exactly like `Button.variants.ts` / `Modal.variants.ts`.
|
|
13
|
+
*/
|
|
14
|
+
import type { Theme } from "../../theme";
|
|
15
|
+
import type { ButtonTone } from "../button";
|
|
16
|
+
export type AlertDialogTone = "default" | "danger";
|
|
17
|
+
/**
|
|
18
|
+
* Maps AlertDialog's own closed `tone` union onto the confirm action's `ButtonTone`. `"default"`
|
|
19
|
+
* resolves to Button's own default tone (`"accent"`) rather than inventing a fourth tone value;
|
|
20
|
+
* `"danger"` mirrors Button's destructive-action tone directly, so a destructive AlertDialog and a
|
|
21
|
+
* destructive Button read identically.
|
|
22
|
+
*/
|
|
23
|
+
export declare function resolveAlertDialogConfirmTone(tone: AlertDialogTone): ButtonTone;
|
|
24
|
+
/**
|
|
25
|
+
* The two-action row beneath the description. Structural only (layout/spacing) — colour is entirely
|
|
26
|
+
* each `Button`'s own tone-resolved fill, applied by Button itself.
|
|
27
|
+
*/
|
|
28
|
+
export declare const alertDialogActionsStructure: import("../../core/style").ThemedVariantResolver<Theme, import("../../core/style").VariantGroups<import("react-native").ViewStyle>, import("react-native").ViewStyle>;
|
|
29
|
+
//# sourceMappingURL=AlertDialog.variants.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AlertDialog.variants.d.ts","sourceRoot":"","sources":["../../../../src/modules/alert-dialog/AlertDialog.variants.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAEH,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AAEzC,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,WAAW,CAAC;AAE5C,MAAM,MAAM,eAAe,GAAG,SAAS,GAAG,QAAQ,CAAC;AAEnD;;;;;GAKG;AACH,wBAAgB,6BAA6B,CAAC,IAAI,EAAE,eAAe,GAAG,UAAU,CAO/E;AAED;;;GAGG;AACH,eAAO,MAAM,2BAA2B,uKAMrC,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Public surface of `pixelize-native-library/alert-dialog`. Value exports and type exports are split for
|
|
3
|
+
* `verbatimModuleSyntax`. The tone resolver and layout resolver stay internal — a consumer
|
|
4
|
+
* configures an AlertDialog through its props, never by importing its internals.
|
|
5
|
+
*/
|
|
6
|
+
export { AlertDialog } from "./AlertDialog";
|
|
7
|
+
export type { AlertDialogProps } from "./AlertDialog";
|
|
8
|
+
export type { AlertDialogTone } from "./AlertDialog.variants";
|
|
9
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/modules/alert-dialog/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,YAAY,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAC;AAEtD,YAAY,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Avatar — a circular identity glyph: a remote image, initials, or (with neither) a plain neutral
|
|
3
|
+
* placeholder. No press handling, no loading spinner, no animation — the simplest module in the
|
|
4
|
+
* library, which is exactly why its accessibility default differs from every sibling: an avatar
|
|
5
|
+
* usually sits beside a visible name, so `accessibilityLabel` is optional, not a required trap (see
|
|
6
|
+
* `Avatar.variants.ts` → `resolveAvatarAccessibility`).
|
|
7
|
+
*/
|
|
8
|
+
import type { LayoutStyle } from "../../core/style";
|
|
9
|
+
import type { AvatarSize } from "./Avatar.variants";
|
|
10
|
+
export interface AvatarProps {
|
|
11
|
+
size?: AvatarSize;
|
|
12
|
+
/** A remote image. Wins over `initials` when present. */
|
|
13
|
+
source?: {
|
|
14
|
+
uri: string;
|
|
15
|
+
};
|
|
16
|
+
/** Shown when there is no `source`. Longer strings are clipped to the first two characters. */
|
|
17
|
+
initials?: string;
|
|
18
|
+
/**
|
|
19
|
+
* Optional, unlike `Button`'s icon-only `accessibilityLabel` — an avatar is usually adjacent to a
|
|
20
|
+
* visible name, so it is not the sole carrier of identity the way an icon-only button's label is.
|
|
21
|
+
* Absent → the avatar is treated as decorative and hidden from assistive tech; present → exposed as
|
|
22
|
+
* one `"image"`-role element with this label.
|
|
23
|
+
*/
|
|
24
|
+
accessibilityLabel?: string;
|
|
25
|
+
/** Layout-only, outermost, applied exactly once as the LAST entry in the root style array. */
|
|
26
|
+
style?: LayoutStyle;
|
|
27
|
+
testID?: string;
|
|
28
|
+
}
|
|
29
|
+
export declare const Avatar: import("react").NamedExoticComponent<AvatarProps>;
|
|
30
|
+
//# sourceMappingURL=Avatar.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Avatar.d.ts","sourceRoot":"","sources":["../../../../src/modules/avatar/Avatar.tsx"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAKH,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AASpD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAEpD,MAAM,WAAW,WAAW;IAC1B,IAAI,CAAC,EAAE,UAAU,CAAC;IAClB,yDAAyD;IACzD,MAAM,CAAC,EAAE;QAAE,GAAG,EAAE,MAAM,CAAA;KAAE,CAAC;IACzB,+FAA+F;IAC/F,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;;;;OAKG;IACH,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,8FAA8F;IAC9F,KAAK,CAAC,EAAE,WAAW,CAAC;IACpB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,eAAO,MAAM,MAAM,mDA2CjB,CAAC"}
|
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Avatar's style + colour resolution — the pure functions the component (and its tests) depend on,
|
|
3
|
+
* plus the themed structural variant resolver.
|
|
4
|
+
*
|
|
5
|
+
* The split every sibling module copies (see `Button.variants.ts`):
|
|
6
|
+
* - STRUCTURE (box diameter, radius) lives in the `createThemedVariants` resolver below — static
|
|
7
|
+
* per (brand, mode), registered once via `StyleSheet.create`.
|
|
8
|
+
* - COLOUR is resolved from the theme's ROLE colours (`resolveAvatarColors`), never a raw ramp,
|
|
9
|
+
* never a hardcoded hex. There is no `tone`/`color` prop to widen — an avatar has exactly one
|
|
10
|
+
* neutral identity, so the resolver takes no selector argument (same reasoning as
|
|
11
|
+
* `resolveCheckboxColors`).
|
|
12
|
+
* - ACCESSIBILITY prop derivation is `resolveAvatarAccessibility`, kept pure so the "decorative
|
|
13
|
+
* unless labelled" contract is unit-testable without rendering React Native.
|
|
14
|
+
*
|
|
15
|
+
* Free of React and of any lucide import, so the WCAG + behaviour tests import it directly (mocking
|
|
16
|
+
* only `react-native`'s `StyleSheet`, as `core/style` and `Button.variants.ts` do).
|
|
17
|
+
*/
|
|
18
|
+
import type { RoleColors, Theme } from "../../theme";
|
|
19
|
+
export type AvatarSize = "xs" | "sm" | "md" | "lg" | "xl";
|
|
20
|
+
export interface AvatarSizeSpec {
|
|
21
|
+
/** Visual diameter, in dp. */
|
|
22
|
+
readonly box: number;
|
|
23
|
+
/** Initials label size, on the theme's `fontSizes` scale. */
|
|
24
|
+
readonly fontSize: number;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Avatar-specific dimensions. Kept a plain constant — no theme dependency — same as `BUTTON_SIZES` /
|
|
28
|
+
* `CHECKBOX_SIZES`, so the render layer and tests share one source of truth for the diameter.
|
|
29
|
+
*
|
|
30
|
+
* Not a touch target: an avatar has no `onPress` in this contract, so the 44dp floor other
|
|
31
|
+
* interactive modules hold themselves to (see `Button`'s `MIN_TOUCH_TARGET`) does not apply here.
|
|
32
|
+
*/
|
|
33
|
+
export declare const AVATAR_SIZES: {
|
|
34
|
+
readonly xs: {
|
|
35
|
+
readonly box: 24;
|
|
36
|
+
readonly fontSize: 12;
|
|
37
|
+
};
|
|
38
|
+
readonly sm: {
|
|
39
|
+
readonly box: 32;
|
|
40
|
+
readonly fontSize: 14;
|
|
41
|
+
};
|
|
42
|
+
readonly md: {
|
|
43
|
+
readonly box: 40;
|
|
44
|
+
readonly fontSize: 16;
|
|
45
|
+
};
|
|
46
|
+
readonly lg: {
|
|
47
|
+
readonly box: 56;
|
|
48
|
+
readonly fontSize: 20;
|
|
49
|
+
};
|
|
50
|
+
readonly xl: {
|
|
51
|
+
readonly box: 72;
|
|
52
|
+
readonly fontSize: 24;
|
|
53
|
+
};
|
|
54
|
+
};
|
|
55
|
+
export interface AvatarColors {
|
|
56
|
+
/** Background for both the initials state and the empty placeholder state. */
|
|
57
|
+
readonly containerBg: string;
|
|
58
|
+
/** Initials label on `containerBg` — measured ≥ 4.5:1 across every brand × mode. */
|
|
59
|
+
readonly initialsText: string;
|
|
60
|
+
}
|
|
61
|
+
/**
|
|
62
|
+
* Maps the avatar's fallback states onto role colours. There is no `tone`/`color` prop to widen —
|
|
63
|
+
* every colour an avatar can show is one of these role lookups, guaranteed legible in both modes and
|
|
64
|
+
* never an off-palette value an app invented (same reasoning as `resolveCheckboxColors`).
|
|
65
|
+
*/
|
|
66
|
+
export declare function resolveAvatarColors(colors: RoleColors): AvatarColors;
|
|
67
|
+
export interface AvatarAccessibilityInput {
|
|
68
|
+
readonly accessibilityLabel?: string | undefined;
|
|
69
|
+
}
|
|
70
|
+
export interface AvatarAccessibilityProps {
|
|
71
|
+
/** Groups the avatar into one accessible element only when it actually carries a name. */
|
|
72
|
+
readonly accessible: boolean;
|
|
73
|
+
readonly accessibilityRole: "image" | undefined;
|
|
74
|
+
readonly accessibilityLabel: string | undefined;
|
|
75
|
+
/** Hides the whole element (and its initials `Text`) from assistive tech when decorative. */
|
|
76
|
+
readonly accessibilityElementsHidden: boolean;
|
|
77
|
+
readonly importantForAccessibility: "auto" | "no-hide-descendants";
|
|
78
|
+
}
|
|
79
|
+
/**
|
|
80
|
+
* Derives the accessibility surface once, purely, so the "decorative unless labelled" contract is
|
|
81
|
+
* testable without a renderer. Unlike `Button`'s icon-only shape or `Checkbox`'s unlabelled shape,
|
|
82
|
+
* `accessibilityLabel` is never required here (an avatar usually sits beside a visible name — see
|
|
83
|
+
* `AvatarProps`), so absence is a valid, common state, not a trap to close off:
|
|
84
|
+
* - no label → the avatar (image or initials) is purely decorative, hidden from assistive tech so a
|
|
85
|
+
* screen reader doesn't announce a bare, unexplained image/initials.
|
|
86
|
+
* - a label → exposed as a single `"image"`-role element carrying it; `accessible: true` groups the
|
|
87
|
+
* initials `Text` into that one element instead of letting it read separately.
|
|
88
|
+
*/
|
|
89
|
+
export declare function resolveAvatarAccessibility(input: AvatarAccessibilityInput): AvatarAccessibilityProps;
|
|
90
|
+
/**
|
|
91
|
+
* Structural styles only — diameter + the circular radius. No colours (those are state-driven and
|
|
92
|
+
* applied inline over this), so this compiles once per theme identity via the `WeakMap`-cached
|
|
93
|
+
* themed resolver and never rebuilds per render.
|
|
94
|
+
*
|
|
95
|
+
* `radii.full` (a finite 9999, not `Infinity` — RN rejects non-finite style values) clips a square
|
|
96
|
+
* box to a perfect circle regardless of its side length, so one token covers every size instead of
|
|
97
|
+
* each variant computing its own `box / 2`.
|
|
98
|
+
*/
|
|
99
|
+
export declare const avatarStructure: import("../../core/style").ThemedVariantResolver<Theme, {
|
|
100
|
+
size: {
|
|
101
|
+
xs: {
|
|
102
|
+
width: 24;
|
|
103
|
+
height: 24;
|
|
104
|
+
};
|
|
105
|
+
sm: {
|
|
106
|
+
width: 32;
|
|
107
|
+
height: 32;
|
|
108
|
+
};
|
|
109
|
+
md: {
|
|
110
|
+
width: 40;
|
|
111
|
+
height: 40;
|
|
112
|
+
};
|
|
113
|
+
lg: {
|
|
114
|
+
width: 56;
|
|
115
|
+
height: 56;
|
|
116
|
+
};
|
|
117
|
+
xl: {
|
|
118
|
+
width: 72;
|
|
119
|
+
height: 72;
|
|
120
|
+
};
|
|
121
|
+
};
|
|
122
|
+
}, import("react-native").ViewStyle>;
|
|
123
|
+
//# sourceMappingURL=Avatar.variants.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Avatar.variants.d.ts","sourceRoot":"","sources":["../../../../src/modules/avatar/Avatar.variants.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,KAAK,EAAE,UAAU,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AAGrD,MAAM,MAAM,UAAU,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;AAE1D,MAAM,WAAW,cAAc;IAC7B,8BAA8B;IAC9B,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAC;IACrB,6DAA6D;IAC7D,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;CAC3B;AAED;;;;;;GAMG;AACH,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;CAM8B,CAAC;AAExD,MAAM,WAAW,YAAY;IAC3B,8EAA8E;IAC9E,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC;IAC7B,oFAAoF;IACpF,QAAQ,CAAC,YAAY,EAAE,MAAM,CAAC;CAC/B;AAED;;;;GAIG;AACH,wBAAgB,mBAAmB,CAAC,MAAM,EAAE,UAAU,GAAG,YAAY,CAKpE;AAED,MAAM,WAAW,wBAAwB;IACvC,QAAQ,CAAC,kBAAkB,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAClD;AAED,MAAM,WAAW,wBAAwB;IACvC,0FAA0F;IAC1F,QAAQ,CAAC,UAAU,EAAE,OAAO,CAAC;IAC7B,QAAQ,CAAC,iBAAiB,EAAE,OAAO,GAAG,SAAS,CAAC;IAChD,QAAQ,CAAC,kBAAkB,EAAE,MAAM,GAAG,SAAS,CAAC;IAChD,6FAA6F;IAC7F,QAAQ,CAAC,2BAA2B,EAAE,OAAO,CAAC;IAC9C,QAAQ,CAAC,yBAAyB,EAAE,MAAM,GAAG,qBAAqB,CAAC;CACpE;AAED;;;;;;;;;GASG;AACH,wBAAgB,0BAA0B,CAAC,KAAK,EAAE,wBAAwB,GAAG,wBAAwB,CASpG;AAED;;;;;;;;GAQG;AACH,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;oCAiBzB,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Public surface of `pixelize-native-library/avatar`. Value exports and type exports are split for
|
|
3
|
+
* `verbatimModuleSyntax`. The resolvers (`resolveAvatarColors`, `AVATAR_SIZES`, …) stay internal — a
|
|
4
|
+
* consumer configures an Avatar through its props, never by importing its internals.
|
|
5
|
+
*
|
|
6
|
+
* No `IconName` re-export here: unlike `Button`, Avatar takes no `icon` prop.
|
|
7
|
+
*/
|
|
8
|
+
export { Avatar } from "./Avatar";
|
|
9
|
+
export type { AvatarProps } from "./Avatar";
|
|
10
|
+
export type { AvatarSize } from "./Avatar.variants";
|
|
11
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/modules/avatar/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAClC,YAAY,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAE5C,YAAY,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Badge — a non-interactive status/label chip. A `View`, never a `Pressable`: it carries no press,
|
|
3
|
+
* focus, loading, or disabled state, so it skips every interaction concern Button/Input have (no
|
|
4
|
+
* `hitSlop`, no focus ring, no reduced-motion — there is no animation to suppress).
|
|
5
|
+
*/
|
|
6
|
+
import type { IconName } from "../../core/icon";
|
|
7
|
+
import type { LayoutStyle } from "../../core/style";
|
|
8
|
+
import type { BadgeSize, BadgeTone } from "./Badge.variants";
|
|
9
|
+
export interface BadgeProps {
|
|
10
|
+
tone?: BadgeTone;
|
|
11
|
+
size?: BadgeSize;
|
|
12
|
+
label: string;
|
|
13
|
+
icon?: IconName;
|
|
14
|
+
/** Layout-only, outermost, applied exactly once as the LAST entry in the root style array. */
|
|
15
|
+
style?: LayoutStyle;
|
|
16
|
+
testID?: string;
|
|
17
|
+
}
|
|
18
|
+
export declare const Badge: import("react").NamedExoticComponent<BadgeProps>;
|
|
19
|
+
//# sourceMappingURL=Badge.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Badge.d.ts","sourceRoot":"","sources":["../../../../src/modules/badge/Badge.tsx"],"names":[],"mappings":"AAAA;;;;GAIG;AAMH,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAIpD,OAAO,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAE7D,MAAM,WAAW,UAAU;IACzB,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,QAAQ,CAAC;IAChB,8FAA8F;IAC9F,KAAK,CAAC,EAAE,WAAW,CAAC;IACpB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAID,eAAO,MAAM,KAAK,kDAqChB,CAAC"}
|