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,120 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Checkbox's style + behaviour resolution — the pure functions the component (and its tests) depend
|
|
3
|
+
* on, plus the themed structural variant resolvers.
|
|
4
|
+
*
|
|
5
|
+
* The split every sibling module copies (see `Button.variants.ts`):
|
|
6
|
+
* - STRUCTURE (box size, radius, border WIDTH, row gap) lives in the two `createThemedVariants`
|
|
7
|
+
* resolvers below — static per (brand, mode), registered once via `StyleSheet.create`.
|
|
8
|
+
* - COLOUR is resolved from the theme's ROLE colours (`resolveCheckboxColors`), never a raw ramp,
|
|
9
|
+
* never a hardcoded hex. Unlike Button's `tone`, a checkbox has no per-instance colour choice —
|
|
10
|
+
* every state (unchecked / checked / indeterminate) maps to exactly one role pairing, so the
|
|
11
|
+
* resolver takes no selector argument.
|
|
12
|
+
* - ACCESSIBILITY prop derivation is `resolveCheckboxAccessibility`, kept pure so the
|
|
13
|
+
* "indeterminate reports mixed / disabled blocks the toggle" contract is unit-testable without
|
|
14
|
+
* rendering React Native.
|
|
15
|
+
*
|
|
16
|
+
* Free of `lucide` and of any React tree, so the WCAG + behaviour tests import it directly (mocking
|
|
17
|
+
* only `react-native`'s `StyleSheet`, as `core/style` and `Button.variants.ts` do).
|
|
18
|
+
*/
|
|
19
|
+
import type { RoleColors, Theme } from "../../theme";
|
|
20
|
+
export type CheckboxSize = "sm" | "md";
|
|
21
|
+
/**
|
|
22
|
+
* Same touch-target floor as `Button` (44dp, WCAG 2.5.5 AAA). Duplicated rather than imported —
|
|
23
|
+
* modules never import across `src/modules/*` — so this is the component's own copy.
|
|
24
|
+
*/
|
|
25
|
+
export declare const MIN_TOUCH_TARGET = 44;
|
|
26
|
+
export interface CheckboxSizeSpec {
|
|
27
|
+
/** Visual box side, in dp. */
|
|
28
|
+
readonly boxSize: number;
|
|
29
|
+
/** Check/minus glyph size, in dp. */
|
|
30
|
+
readonly iconSize: number;
|
|
31
|
+
/** Label size, on the theme's `fontSizes` scale. */
|
|
32
|
+
readonly fontSize: number;
|
|
33
|
+
/** Symmetric touch expansion so `boxSize + 2·hitSlop ≥ 44`. */
|
|
34
|
+
readonly hitSlop: number;
|
|
35
|
+
}
|
|
36
|
+
/**
|
|
37
|
+
* Checkbox-specific dimensions. Kept a plain constant — no theme dependency — so the hit-target
|
|
38
|
+
* test can assert `boxSize + 2·hitSlop ≥ 44` without a provider, same as `BUTTON_SIZES`.
|
|
39
|
+
*/
|
|
40
|
+
export declare const CHECKBOX_SIZES: {
|
|
41
|
+
readonly sm: {
|
|
42
|
+
readonly boxSize: 16;
|
|
43
|
+
readonly iconSize: 12;
|
|
44
|
+
readonly fontSize: 14;
|
|
45
|
+
readonly hitSlop: number;
|
|
46
|
+
};
|
|
47
|
+
readonly md: {
|
|
48
|
+
readonly boxSize: 20;
|
|
49
|
+
readonly iconSize: 14;
|
|
50
|
+
readonly fontSize: 16;
|
|
51
|
+
readonly hitSlop: number;
|
|
52
|
+
};
|
|
53
|
+
};
|
|
54
|
+
export interface CheckboxColors {
|
|
55
|
+
/** Unchecked box boundary (WCAG 1.4.11 ≥ 3:1 against the canvas, every brand). */
|
|
56
|
+
readonly border: string;
|
|
57
|
+
/** Checked/indeterminate box fill — also its own boundary against the canvas (≥ 3:1). */
|
|
58
|
+
readonly fill: string;
|
|
59
|
+
/** Check/minus glyph on `fill` — the derived on-colour (≥ 3:1 non-text; measured, never assumed). */
|
|
60
|
+
readonly icon: string;
|
|
61
|
+
/** Label text, read on the canvas (≥ 4.5:1). */
|
|
62
|
+
readonly label: string;
|
|
63
|
+
}
|
|
64
|
+
/**
|
|
65
|
+
* Maps the checkbox's states onto role colours. There is no `tone`/`color` prop to widen — every
|
|
66
|
+
* colour a checkbox can show is one of these role lookups, guaranteed legible in both modes and
|
|
67
|
+
* never an off-palette value an app invented (same reasoning as `resolveButtonTone`, minus the
|
|
68
|
+
* selector: a checkbox has exactly one accent identity, not a closed union of them).
|
|
69
|
+
*/
|
|
70
|
+
export declare function resolveCheckboxColors(colors: RoleColors): CheckboxColors;
|
|
71
|
+
export interface CheckboxAccessibilityInput {
|
|
72
|
+
readonly label?: string | undefined;
|
|
73
|
+
readonly accessibilityLabel?: string | undefined;
|
|
74
|
+
readonly checked: boolean;
|
|
75
|
+
readonly indeterminate?: boolean | undefined;
|
|
76
|
+
readonly disabled?: boolean | undefined;
|
|
77
|
+
}
|
|
78
|
+
export interface CheckboxAccessibilityProps {
|
|
79
|
+
readonly accessibilityRole: "checkbox";
|
|
80
|
+
/** Falls back to the visible label; required by the type when there is no visible label. */
|
|
81
|
+
readonly accessibilityLabel: string | undefined;
|
|
82
|
+
readonly accessibilityState: {
|
|
83
|
+
readonly checked: boolean | "mixed";
|
|
84
|
+
readonly disabled: boolean;
|
|
85
|
+
};
|
|
86
|
+
/** The `Pressable` disabled prop — true while disabled, so touches are blocked. */
|
|
87
|
+
readonly disabled: boolean;
|
|
88
|
+
}
|
|
89
|
+
/**
|
|
90
|
+
* Derives the accessibility surface once, purely, so the contract is testable without a renderer:
|
|
91
|
+
* - `indeterminate` reports `"mixed"` over the literal `checked` value — regardless of `checked` —
|
|
92
|
+
* because a screen reader must hear the tri-state, not a stale boolean (matches the visual: the
|
|
93
|
+
* "minus" glyph also wins over "check" whenever `indeterminate` is true).
|
|
94
|
+
* - `disabled` blocks the toggle (the `Pressable disabled` prop), so `accessibilityState.disabled`
|
|
95
|
+
* always matches what actually renders.
|
|
96
|
+
*/
|
|
97
|
+
export declare function resolveCheckboxAccessibility(input: CheckboxAccessibilityInput): CheckboxAccessibilityProps;
|
|
98
|
+
/**
|
|
99
|
+
* Structural row styles — layout only, no colour. Applied to the outermost `Pressable`, before the
|
|
100
|
+
* consumer's own `style` (last, once). Fixed regardless of `size`: the box (below) is what scales.
|
|
101
|
+
*/
|
|
102
|
+
export declare const checkboxRowStructure: import("../../core/style").ThemedVariantResolver<Theme, import("../../core/style").VariantGroups<import("react-native").ViewStyle>, import("react-native").ViewStyle>;
|
|
103
|
+
/**
|
|
104
|
+
* Structural box styles — size, radius, border WIDTH. No colours: border/fill colour is
|
|
105
|
+
* checked-state-driven and applied inline over this, same split as `buttonStructure`. Compiles once
|
|
106
|
+
* per theme identity via the `WeakMap`-cached themed resolver, never rebuilds per render.
|
|
107
|
+
*/
|
|
108
|
+
export declare const checkboxBoxStructure: import("../../core/style").ThemedVariantResolver<Theme, {
|
|
109
|
+
size: {
|
|
110
|
+
sm: {
|
|
111
|
+
width: 16;
|
|
112
|
+
height: 16;
|
|
113
|
+
};
|
|
114
|
+
md: {
|
|
115
|
+
width: 20;
|
|
116
|
+
height: 20;
|
|
117
|
+
};
|
|
118
|
+
};
|
|
119
|
+
}, import("react-native").ViewStyle>;
|
|
120
|
+
//# sourceMappingURL=Checkbox.variants.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Checkbox.variants.d.ts","sourceRoot":"","sources":["../../../../src/modules/checkbox/Checkbox.variants.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;GAiBG;AAEH,OAAO,KAAK,EAAE,UAAU,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AAGrD,MAAM,MAAM,YAAY,GAAG,IAAI,GAAG,IAAI,CAAC;AAEvC;;;GAGG;AACH,eAAO,MAAM,gBAAgB,KAAK,CAAC;AAKnC,MAAM,WAAW,gBAAgB;IAC/B,8BAA8B;IAC9B,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IACzB,qCAAqC;IACrC,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;IAC1B,oDAAoD;IACpD,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;IAC1B,+DAA+D;IAC/D,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;CAC1B;AAED;;;GAGG;AACH,eAAO,MAAM,cAAc;;;;;;;;;;;;;CAGgC,CAAC;AAE5D,MAAM,WAAW,cAAc;IAC7B,kFAAkF;IAClF,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB,yFAAyF;IACzF,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,qGAAqG;IACrG,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,gDAAgD;IAChD,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;CACxB;AAED;;;;;GAKG;AACH,wBAAgB,qBAAqB,CAAC,MAAM,EAAE,UAAU,GAAG,cAAc,CAOxE;AAED,MAAM,WAAW,0BAA0B;IACzC,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACpC,QAAQ,CAAC,kBAAkB,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACjD,QAAQ,CAAC,OAAO,EAAE,OAAO,CAAC;IAC1B,QAAQ,CAAC,aAAa,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;IAC7C,QAAQ,CAAC,QAAQ,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;CACzC;AAED,MAAM,WAAW,0BAA0B;IACzC,QAAQ,CAAC,iBAAiB,EAAE,UAAU,CAAC;IACvC,4FAA4F;IAC5F,QAAQ,CAAC,kBAAkB,EAAE,MAAM,GAAG,SAAS,CAAC;IAChD,QAAQ,CAAC,kBAAkB,EAAE;QAC3B,QAAQ,CAAC,OAAO,EAAE,OAAO,GAAG,OAAO,CAAC;QACpC,QAAQ,CAAC,QAAQ,EAAE,OAAO,CAAC;KAC5B,CAAC;IACF,mFAAmF;IACnF,QAAQ,CAAC,QAAQ,EAAE,OAAO,CAAC;CAC5B;AAED;;;;;;;GAOG;AACH,wBAAgB,4BAA4B,CAC1C,KAAK,EAAE,0BAA0B,GAChC,0BAA0B,CAW5B;AAED;;;GAGG;AACH,eAAO,MAAM,oBAAoB,uKAM9B,CAAC;AAEJ;;;;GAIG;AACH,eAAO,MAAM,oBAAoB;;;;;;;;;;;oCAc9B,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Public surface of `pixelize-native-library/checkbox`. Value exports and type exports are split for
|
|
3
|
+
* `verbatimModuleSyntax`. The visual/behaviour resolvers (`resolveCheckboxColors`, `CHECKBOX_SIZES`,
|
|
4
|
+
* …) stay internal — a consumer configures a Checkbox through its props, never by importing its
|
|
5
|
+
* internals.
|
|
6
|
+
*/
|
|
7
|
+
export { Checkbox } from "./Checkbox";
|
|
8
|
+
export type { CheckboxProps } from "./Checkbox";
|
|
9
|
+
export type { CheckboxSize } from "./Checkbox.variants";
|
|
10
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/modules/checkbox/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,YAAY,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAEhD,YAAY,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Divider — a single hairline separator between sections of content. Purely decorative: it carries
|
|
3
|
+
* no information of its own, so `accessibilityRole="none"` keeps it out of the accessibility tree
|
|
4
|
+
* (the same "no role" conclusion `Card` documents for its own plain-`View` container — see
|
|
5
|
+
* `Card.tsx` — made explicit here since, unlike `Card`, a divider has no children to carry meaning).
|
|
6
|
+
*/
|
|
7
|
+
import type { LayoutStyle } from "../../core/style";
|
|
8
|
+
import type { DividerOrientation } from "./Divider.variants";
|
|
9
|
+
export interface DividerProps {
|
|
10
|
+
orientation?: DividerOrientation;
|
|
11
|
+
/** Layout-only, outermost, applied exactly once as the LAST entry in the root style array. */
|
|
12
|
+
style?: LayoutStyle;
|
|
13
|
+
testID?: string;
|
|
14
|
+
}
|
|
15
|
+
declare function DividerImpl({ orientation, style, testID }: DividerProps): import("react").JSX.Element;
|
|
16
|
+
export declare const Divider: import("react").MemoExoticComponent<typeof DividerImpl>;
|
|
17
|
+
export {};
|
|
18
|
+
//# sourceMappingURL=Divider.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Divider.d.ts","sourceRoot":"","sources":["../../../../src/modules/divider/Divider.tsx"],"names":[],"mappings":"AAAA;;;;;GAKG;AAKH,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAIpD,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,oBAAoB,CAAC;AAE7D,MAAM,WAAW,YAAY;IAC3B,WAAW,CAAC,EAAE,kBAAkB,CAAC;IACjC,8FAA8F;IAC9F,KAAK,CAAC,EAAE,WAAW,CAAC;IACpB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,iBAAS,WAAW,CAAC,EAAE,WAA0B,EAAE,KAAK,EAAE,MAAM,EAAE,EAAE,YAAY,+BAc/E;AAID,eAAO,MAAM,OAAO,yDAAoB,CAAC"}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Divider's style resolution — same split as `Card.variants` / `Button.variants`:
|
|
3
|
+
* - STRUCTURE (the hairline's thickness on the cross axis) lives in the themed `dividerStructure`
|
|
4
|
+
* resolver, static per (brand, mode), registered once via `StyleSheet.create`.
|
|
5
|
+
* - COLOUR is resolved from the theme's ROLE colours by `resolveDividerColor`, never a raw ramp
|
|
6
|
+
* and never a hardcoded hex.
|
|
7
|
+
*
|
|
8
|
+
* Free of React, so the colour-resolution test imports this directly (mocking only `react-native`'s
|
|
9
|
+
* `StyleSheet`, as `core/style` and every sibling module's tests do).
|
|
10
|
+
*/
|
|
11
|
+
import type { RoleColors } from "../../theme";
|
|
12
|
+
import type { Theme } from "../../theme";
|
|
13
|
+
export type DividerOrientation = "horizontal" | "vertical";
|
|
14
|
+
/**
|
|
15
|
+
* Maps the divider onto the theme's role colours. `colors.border.default` — the decorative rung,
|
|
16
|
+
* deliberately NOT `colors.border.interactive` — is the correct choice here: a divider draws no
|
|
17
|
+
* interactive boundary and conveys no information of its own (removing it changes spacing, not
|
|
18
|
+
* meaning), and WCAG 1.4.11 binds only a "User Interface Component" or a "Graphical Object …
|
|
19
|
+
* required to understand the content" — neither of which a decorative separator is. It measures
|
|
20
|
+
* ~1.0–1.4:1 against `bg.canvas` on every brand × mode (see `Card.variants.ts`'s identical note for
|
|
21
|
+
* its own un-bordered variants) — that is the intended subtle shadcn-style rule, not an oversight,
|
|
22
|
+
* which is why this module's tests assert the mapping rather than gating it at 3:1.
|
|
23
|
+
*/
|
|
24
|
+
export declare function resolveDividerColor(colors: RoleColors): string;
|
|
25
|
+
/**
|
|
26
|
+
* Structural styles only — the hairline's thickness on the theme's `borderWidths` scale, spanning
|
|
27
|
+
* the full cross axis. No colour (resolved separately, applied inline over this), so this compiles
|
|
28
|
+
* once per theme identity via the `WeakMap`-cached themed resolver and never rebuilds per render.
|
|
29
|
+
*/
|
|
30
|
+
export declare const dividerStructure: import("../../core/style").ThemedVariantResolver<Theme, {
|
|
31
|
+
orientation: {
|
|
32
|
+
horizontal: {
|
|
33
|
+
height: 1;
|
|
34
|
+
width: "100%";
|
|
35
|
+
};
|
|
36
|
+
vertical: {
|
|
37
|
+
width: 1;
|
|
38
|
+
alignSelf: "stretch";
|
|
39
|
+
};
|
|
40
|
+
};
|
|
41
|
+
}, import("react-native").ViewStyle>;
|
|
42
|
+
//# sourceMappingURL=Divider.variants.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Divider.variants.d.ts","sourceRoot":"","sources":["../../../../src/modules/divider/Divider.variants.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAC9C,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AAGzC,MAAM,MAAM,kBAAkB,GAAG,YAAY,GAAG,UAAU,CAAC;AAE3D;;;;;;;;;GASG;AACH,wBAAgB,mBAAmB,CAAC,MAAM,EAAE,UAAU,GAAG,MAAM,CAE9D;AAED;;;;GAIG;AACH,eAAO,MAAM,gBAAgB;;;;;;;;;;;oCAQ1B,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Public surface of `pixelize-native-library/divider`. Value exports and type exports are split for
|
|
3
|
+
* `verbatimModuleSyntax`. The resolvers (`resolveDividerColor`, `dividerStructure`) stay internal —
|
|
4
|
+
* a consumer configures a Divider through its props, never by importing its internals.
|
|
5
|
+
*/
|
|
6
|
+
export { Divider } from "./Divider";
|
|
7
|
+
export type { DividerProps } from "./Divider";
|
|
8
|
+
export type { DividerOrientation } from "./Divider.variants";
|
|
9
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/modules/divider/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,YAAY,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AAE9C,YAAY,EAAE,kBAAkB,EAAE,MAAM,oBAAoB,CAAC"}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Drawer — a bottom-sheet-style panel built directly on REACT NATIVE'S OWN `Modal`, the same
|
|
3
|
+
* "transient overlay, raw RN Modal" pattern Select already established for this library (never this
|
|
4
|
+
* library's own `../modal` COMPONENT, a persistent title/children dialog — a different shape). The one
|
|
5
|
+
* deliberate exception, same as Select's, is the web portal mechanism below — a plain context + a
|
|
6
|
+
* stateless helper, not the `Modal` component's rendered output.
|
|
7
|
+
*
|
|
8
|
+
* The panel slides up from the bottom and the backdrop fades in, both driven by ONE Animated
|
|
9
|
+
* `progress` value — never RN Modal's native `animationType`, which can only pick a single discrete
|
|
10
|
+
* transition for the whole native surface and can't keep a custom-Animated backdrop opacity in
|
|
11
|
+
* lockstep with a custom panel slide. `animationType` is therefore always `"none"` here; this module
|
|
12
|
+
* owns the whole transition, so it can collapse to an instant snap under reduced motion (WCAG 2.3.3)
|
|
13
|
+
* without ever showing a frozen half-animated frame.
|
|
14
|
+
*
|
|
15
|
+
* Because RN's `<Modal>` only hides its children once native dismissal completes (or the component
|
|
16
|
+
* unmounts) — the same fact Modal.tsx's own top comment documents — the sheet stays internally
|
|
17
|
+
* "mounted" for one more animation tick after `visible` goes false, so the exit slide/fade actually
|
|
18
|
+
* plays before the native Modal disappears. A plain `setTimeout` (not the `Animated.timing`
|
|
19
|
+
* completion callback, which rides `requestAnimationFrame`) unmounts it afterwards — the same
|
|
20
|
+
* determinism fix `Toast.tsx`'s `hide()` uses, for the same reason (a RAF callback doesn't resolve on
|
|
21
|
+
* a predictable jest-fake-timer tick).
|
|
22
|
+
*
|
|
23
|
+
* Fully controlled: the caller owns `visible` and reacts to `onRequestClose`, which fires from the
|
|
24
|
+
* backdrop press, the Android hardware back button (RN Modal's own `onRequestClose` — free), and, via
|
|
25
|
+
* `onAccessibilityEscape` on the panel, iOS VoiceOver's two-finger-Z escape gesture — identical wiring
|
|
26
|
+
* to this library's own `Modal`.
|
|
27
|
+
*
|
|
28
|
+
* Web portal opt-in: when an ancestor renders `ModalPortalProvider` (web only), this bypasses RN's
|
|
29
|
+
* `<Modal>` and portals the SAME backdrop+panel tree into the provided container via `renderWebPortal`
|
|
30
|
+
* instead — see `../modal/ModalPortalContext.ts` for why. `ModalPortalContext`/`renderWebPortal` are
|
|
31
|
+
* read directly from `../modal` (a plain context + a stateless helper, no footprint of this library's
|
|
32
|
+
* own `Modal` COMPONENT), the same one deliberate cross-module exception `Select.tsx`'s own top comment
|
|
33
|
+
* documents. Every other case (native, or web with no provider — the default `ModalPortalContext` value
|
|
34
|
+
* is `null`) renders through RN's own `<Modal>`, byte-identical to before this mechanism existed.
|
|
35
|
+
*/
|
|
36
|
+
import type { ReactNode } from "react";
|
|
37
|
+
export interface DrawerProps {
|
|
38
|
+
visible: boolean;
|
|
39
|
+
onRequestClose: () => void;
|
|
40
|
+
children: ReactNode;
|
|
41
|
+
testID?: string;
|
|
42
|
+
}
|
|
43
|
+
export declare const Drawer: import("react").NamedExoticComponent<DrawerProps>;
|
|
44
|
+
//# sourceMappingURL=Drawer.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Drawer.d.ts","sourceRoot":"","sources":["../../../../src/modules/drawer/Drawer.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkCG;AAGH,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AA0BvC,MAAM,WAAW,WAAW;IAC1B,OAAO,EAAE,OAAO,CAAC;IACjB,cAAc,EAAE,MAAM,IAAI,CAAC;IAC3B,QAAQ,EAAE,SAAS,CAAC;IACpB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAOD,eAAO,MAAM,MAAM,mDAwGjB,CAAC"}
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Drawer's style + behaviour resolution — same split as Modal/Select:
|
|
3
|
+
* - STRUCTURE (padding, radius, the grabber's fixed dimensions) lives in the `createThemedVariants`
|
|
4
|
+
* resolvers below, static per (brand, mode), registered once via `StyleSheet.create`.
|
|
5
|
+
* - COLOUR is resolved from the theme's ROLE colours by `resolveDrawerPanelColors`, never a raw
|
|
6
|
+
* ramp and never a hardcoded hex.
|
|
7
|
+
* - The reduced-motion contract (WCAG 2.3.3) is `resolveDrawerAnimationDuration`, and the
|
|
8
|
+
* safe-area-less bottom-inset fallback is `resolveDrawerBottomInset` — both kept pure so they are
|
|
9
|
+
* unit-testable without rendering React Native.
|
|
10
|
+
*
|
|
11
|
+
* Free of React and of any `Modal`/`Pressable`/`Animated` import, so the tests import it directly
|
|
12
|
+
* (mocking only `react-native`'s `StyleSheet`, as `core/style` does).
|
|
13
|
+
*/
|
|
14
|
+
import type { RoleColors, Theme } from "../../theme";
|
|
15
|
+
/** The slide-up + backdrop-fade duration in ms. A component design constant — not on the theme's
|
|
16
|
+
* numeric scale — same status `PRESS_FADE_MS` (Button) / `ANIMATION_MS` (Toast) have. */
|
|
17
|
+
export declare const DRAWER_ANIMATION_MS = 260;
|
|
18
|
+
/** WCAG 2.3.3 — the slide/fade collapses to an instant snap (never a frozen frame) when the OS has
|
|
19
|
+
* reduced motion on. Mirrors Modal's `resolveModalAnimationType`, pulled into its own resolver
|
|
20
|
+
* because Drawer drives the transition with `Animated.timing` (a duration), not RN Modal's
|
|
21
|
+
* `animationType` (a discrete enum) — Modal's own native transition can't also fade a separately
|
|
22
|
+
* Animated backdrop in lockstep with a custom slide, which is why this module never sets
|
|
23
|
+
* `animationType` to anything but `"none"` and does the whole transition itself. */
|
|
24
|
+
export declare function resolveDrawerAnimationDuration(reducedMotion: boolean): number;
|
|
25
|
+
/**
|
|
26
|
+
* Static bottom-inset fallback. `react-native-safe-area-context` is listed as an optional peer in
|
|
27
|
+
* `peerDependenciesMeta`, but — same finding `Toast`'s MODULE.md already recorded — it is not
|
|
28
|
+
* actually installed as a dependency of THIS package (only pulled in transitively by the `example`
|
|
29
|
+
* workspace), so importing `useSafeAreaInsets` here would work in this repo's dev sandbox and then
|
|
30
|
+
* fail to resolve in a consumer app that installs `pixelize-native-library` without also installing that
|
|
31
|
+
* package. This constant approximates the iOS home-indicator inset instead; see MODULE.md "Known
|
|
32
|
+
* gaps" for the real fix once the dependency is added for real.
|
|
33
|
+
*/
|
|
34
|
+
export declare const DRAWER_IOS_HOME_INDICATOR_INSET = 20;
|
|
35
|
+
/** Adds the static iOS home-indicator approximation to a base padding; Android's gesture/3-button
|
|
36
|
+
* nav already reserves its own space outside the app window, so it needs no extra padding here. */
|
|
37
|
+
export declare function resolveDrawerBottomInset(basePadding: number, platformOS: string): number;
|
|
38
|
+
/** The grabber's fixed pill dimensions — a design constant, not a `size` scale (Drawer takes no
|
|
39
|
+
* `size` prop; unlike Modal/Select it has exactly one shape). */
|
|
40
|
+
export declare const GRABBER_WIDTH = 36;
|
|
41
|
+
export declare const GRABBER_HEIGHT = 4;
|
|
42
|
+
export interface DrawerPanelColors {
|
|
43
|
+
/** Panel fill. */
|
|
44
|
+
readonly background: string;
|
|
45
|
+
/** The decorative grabber pill — `accessibilityElementsHidden` in the component, so it carries no
|
|
46
|
+
* WCAG 1.4.11 obligation (a purely decorative graphic is out of that SC's scope), same status the
|
|
47
|
+
* backdrop scrims across this library (`MODAL_BACKDROP`, `PRESS_SCRIM_DARK/LIGHT`,
|
|
48
|
+
* `BACKDROP_SCRIM`) already have. */
|
|
49
|
+
readonly grabber: string;
|
|
50
|
+
}
|
|
51
|
+
/**
|
|
52
|
+
* Maps the panel onto role colours. Kept this small on purpose, same reasoning Modal's own
|
|
53
|
+
* `resolveModalPanelColors` documents: `children` is arbitrary consumer content this module has no
|
|
54
|
+
* colour opinion about, and Drawer owns no text of its own (no `title`, unlike Modal) — so there is
|
|
55
|
+
* no text/fill pairing here for a WCAG 1.4.3 test to measure. See `Drawer.test.ts` for the full
|
|
56
|
+
* accounting of what this module does and does not owe a contrast test.
|
|
57
|
+
*/
|
|
58
|
+
export declare function resolveDrawerPanelColors(colors: RoleColors): DrawerPanelColors;
|
|
59
|
+
/** The full-screen overlay the panel bottom-aligns in. `box-none` (applied by the component) lets a
|
|
60
|
+
* tap on its empty area above the panel fall through to the backdrop press underneath — same shape
|
|
61
|
+
* as Modal's `modalOverlayStructure` / Select's `selectOverlayStructure`, bottom-aligned instead of
|
|
62
|
+
* centered. No theme dependency (no themed numbers used), so it uses the untethemed resolver, same
|
|
63
|
+
* idiom `drawerGrabberStructure` below does. */
|
|
64
|
+
export declare const drawerOverlayStructure: import("../../core/style").VariantResolver<import("../../core/style").VariantGroups<import("react-native").ViewStyle>, import("react-native").ViewStyle>;
|
|
65
|
+
/**
|
|
66
|
+
* Structural styles only — layout, padding, top-corner radius. No colour (resolved by
|
|
67
|
+
* `resolveDrawerPanelColors`, applied inline over this) and no bottom padding (the safe-area-aware
|
|
68
|
+
* amount is themed but state-dependent on `Platform.OS`, so it's computed by
|
|
69
|
+
* `resolveDrawerBottomInset` and applied inline in `Drawer.tsx`), so this compiles once per theme
|
|
70
|
+
* identity via the `WeakMap`-cached themed resolver and never rebuilds per render.
|
|
71
|
+
*/
|
|
72
|
+
export declare const drawerPanelStructure: import("../../core/style").ThemedVariantResolver<Theme, import("../../core/style").VariantGroups<import("react-native").ViewStyle>, import("react-native").ViewStyle>;
|
|
73
|
+
/** The grabber's touch-friendly wrapper strip — its own row, above `children`, so a future pointer
|
|
74
|
+
* down on it can never land on scrollable content underneath (see MODULE.md on why swipe-to-dismiss
|
|
75
|
+
* isn't wired to it in v1). */
|
|
76
|
+
export declare const drawerHandleStructure: import("../../core/style").ThemedVariantResolver<Theme, import("../../core/style").VariantGroups<import("react-native").ViewStyle>, import("react-native").ViewStyle>;
|
|
77
|
+
/** No theme dependency at all (fixed design constants, not a themed scale), so it uses the
|
|
78
|
+
* untethemed resolver — same idiom as RadioGroup's `radioDotStructure`. */
|
|
79
|
+
export declare const drawerGrabberStructure: import("../../core/style").VariantResolver<import("../../core/style").VariantGroups<import("react-native").ViewStyle>, import("react-native").ViewStyle>;
|
|
80
|
+
//# sourceMappingURL=Drawer.variants.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Drawer.variants.d.ts","sourceRoot":"","sources":["../../../../src/modules/drawer/Drawer.variants.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAEH,OAAO,KAAK,EAAE,UAAU,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AAGrD;0FAC0F;AAC1F,eAAO,MAAM,mBAAmB,MAAM,CAAC;AAEvC;;;;;qFAKqF;AACrF,wBAAgB,8BAA8B,CAAC,aAAa,EAAE,OAAO,GAAG,MAAM,CAE7E;AAED;;;;;;;;GAQG;AACH,eAAO,MAAM,+BAA+B,KAAK,CAAC;AAElD;oGACoG;AACpG,wBAAgB,wBAAwB,CAAC,WAAW,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,GAAG,MAAM,CAExF;AAED;kEACkE;AAClE,eAAO,MAAM,aAAa,KAAK,CAAC;AAChC,eAAO,MAAM,cAAc,IAAI,CAAC;AAEhC,MAAM,WAAW,iBAAiB;IAChC,kBAAkB;IAClB,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;IAC5B;;;0CAGsC;IACtC,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;CAC1B;AAED;;;;;;GAMG;AACH,wBAAgB,wBAAwB,CAAC,MAAM,EAAE,UAAU,GAAG,iBAAiB,CAK9E;AAED;;;;iDAIiD;AACjD,eAAO,MAAM,sBAAsB,0JAKjC,CAAC;AAEH;;;;;;GAMG;AACH,eAAO,MAAM,oBAAoB,uKAS9B,CAAC;AAEJ;;gCAEgC;AAChC,eAAO,MAAM,qBAAqB,uKAM/B,CAAC;AAEJ;4EAC4E;AAC5E,eAAO,MAAM,sBAAsB,0JAMjC,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Public surface of `pixelize-native-library/drawer`. Value exports and type exports are split for
|
|
3
|
+
* `verbatimModuleSyntax`. The resolvers (`resolveDrawerPanelColors`, `DRAWER_ANIMATION_MS`, …) stay
|
|
4
|
+
* internal — a consumer controls a Drawer through its props, never by importing its internals.
|
|
5
|
+
*/
|
|
6
|
+
export { Drawer } from "./Drawer";
|
|
7
|
+
export type { DrawerProps } from "./Drawer";
|
|
8
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/modules/drawer/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAClC,YAAY,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* EmptyState — a centred placeholder for "nothing here yet" / zero-result states: an optional
|
|
3
|
+
* decorative icon, a required title, an optional description, and an optional call-to-action.
|
|
4
|
+
* The action is rendered through this library's own, stable `Button` module — a justified
|
|
5
|
+
* composition (the same reasoning `AlertDialog` documents for its own footer buttons) — never a
|
|
6
|
+
* hand-rolled `Pressable` that would duplicate Button's press/focus/disabled/hit-target wiring.
|
|
7
|
+
*
|
|
8
|
+
* No `accessibilityRole` of its own: like `Card`, this is a plain grouping container with no
|
|
9
|
+
* interaction beyond the composed Button, so there is nothing here for assistive tech to announce
|
|
10
|
+
* beyond its children — the title and description read as their own `Text` elements, in order,
|
|
11
|
+
* and the icon (redundant with the title) is hidden from the accessibility tree entirely.
|
|
12
|
+
*/
|
|
13
|
+
import type { IconName } from "../../core/icon";
|
|
14
|
+
import type { LayoutStyle } from "../../core/style";
|
|
15
|
+
export interface EmptyStateAction {
|
|
16
|
+
readonly label: string;
|
|
17
|
+
readonly onPress: () => void;
|
|
18
|
+
}
|
|
19
|
+
export interface EmptyStateProps {
|
|
20
|
+
icon?: IconName;
|
|
21
|
+
title: string;
|
|
22
|
+
description?: string;
|
|
23
|
+
action?: EmptyStateAction;
|
|
24
|
+
/** Layout-only, outermost, applied exactly once as the LAST entry in the root style array. */
|
|
25
|
+
style?: LayoutStyle;
|
|
26
|
+
testID?: string;
|
|
27
|
+
}
|
|
28
|
+
export declare const EmptyState: import("react").NamedExoticComponent<EmptyStateProps>;
|
|
29
|
+
//# sourceMappingURL=EmptyState.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"EmptyState.d.ts","sourceRoot":"","sources":["../../../../src/modules/empty-state/EmptyState.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAMH,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAMpD,MAAM,WAAW,gBAAgB;IAC/B,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,OAAO,EAAE,MAAM,IAAI,CAAC;CAC9B;AAED,MAAM,WAAW,eAAe;IAC9B,IAAI,CAAC,EAAE,QAAQ,CAAC;IAChB,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,MAAM,CAAC,EAAE,gBAAgB,CAAC;IAC1B,8FAA8F;IAC9F,KAAK,CAAC,EAAE,WAAW,CAAC;IACpB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAMD,eAAO,MAAM,UAAU,uDA4CrB,CAAC"}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* EmptyState's style resolution — same split as `Card.variants` / `Divider.variants`:
|
|
3
|
+
* - STRUCTURE (centring, padding, the vertical rhythm between icon / title / description /
|
|
4
|
+
* action) lives in the themed `emptyStateStructure` resolver, static per (brand, mode),
|
|
5
|
+
* registered once via `StyleSheet.create`. There is no `variant`/`size`/`tone` to select
|
|
6
|
+
* between — one visual identity, same reasoning `Divider`/`Avatar` give for their own single
|
|
7
|
+
* identity.
|
|
8
|
+
* - COLOUR is resolved from the theme's ROLE colours by `resolveEmptyStateColors`, never a raw
|
|
9
|
+
* ramp and never a hardcoded hex.
|
|
10
|
+
*
|
|
11
|
+
* Free of React and lucide, so the WCAG test imports this directly (mocking only `react-native`'s
|
|
12
|
+
* `StyleSheet`, as `core/style` and every sibling module's tests do).
|
|
13
|
+
*/
|
|
14
|
+
import type { RoleColors, Theme } from "../../theme";
|
|
15
|
+
/**
|
|
16
|
+
* The icon glyph's rendered size, in dp. A component design constant — same status `Button`'s
|
|
17
|
+
* `ICON_STROKE` / `BUTTON_SIZES.*.iconSize` have — not on the theme's numeric scale: EmptyState
|
|
18
|
+
* takes no `size` prop, so there is exactly one icon size, deliberately large since it is the
|
|
19
|
+
* focal point of an otherwise mostly-empty layout.
|
|
20
|
+
*/
|
|
21
|
+
export declare const EMPTY_STATE_ICON_SIZE = 48;
|
|
22
|
+
export interface EmptyStateColors {
|
|
23
|
+
/** Icon — decorative, muted against the canvas. */
|
|
24
|
+
readonly icon: string;
|
|
25
|
+
/** Title — the strongest-emphasis text this component renders. */
|
|
26
|
+
readonly title: string;
|
|
27
|
+
/** Description — secondary, muted. */
|
|
28
|
+
readonly description: string;
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* Maps EmptyState onto the theme's role colours. No `tone`/`color` prop to widen — every colour
|
|
32
|
+
* this component can show is one of these role lookups (same reasoning as `Divider`/`Avatar`), so
|
|
33
|
+
* it inverts light↔dark for free and can never be an off-palette value an app invented.
|
|
34
|
+
*/
|
|
35
|
+
export declare function resolveEmptyStateColors(colors: RoleColors): EmptyStateColors;
|
|
36
|
+
/**
|
|
37
|
+
* Structural styles only — centring, padding, and the vertical rhythm between children. No
|
|
38
|
+
* colours (those are resolved separately and applied inline over this) and no closed union to
|
|
39
|
+
* select, so this compiles once per theme identity via the `WeakMap`-cached themed resolver and
|
|
40
|
+
* never rebuilds per render.
|
|
41
|
+
*/
|
|
42
|
+
export declare const emptyStateStructure: import("../../core/style").ThemedVariantResolver<Theme, import("../../core/style").VariantGroups<import("react-native").ViewStyle>, import("react-native").ViewStyle>;
|
|
43
|
+
//# sourceMappingURL=EmptyState.variants.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"EmptyState.variants.d.ts","sourceRoot":"","sources":["../../../../src/modules/empty-state/EmptyState.variants.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAEH,OAAO,KAAK,EAAE,UAAU,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AAGrD;;;;;GAKG;AACH,eAAO,MAAM,qBAAqB,KAAK,CAAC;AAExC,MAAM,WAAW,gBAAgB;IAC/B,mDAAmD;IACnD,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,kEAAkE;IAClE,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,sCAAsC;IACtC,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC;CAC9B;AAED;;;;GAIG;AACH,wBAAgB,uBAAuB,CAAC,MAAM,EAAE,UAAU,GAAG,gBAAgB,CAM5E;AAED;;;;;GAKG;AACH,eAAO,MAAM,mBAAmB,uKAQ7B,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Public surface of `pixelize-native-library/empty-state`. Value exports and type exports are split
|
|
3
|
+
* for `verbatimModuleSyntax`. The style/colour resolvers (`resolveEmptyStateColors`,
|
|
4
|
+
* `emptyStateStructure`) stay internal — a consumer configures an EmptyState through its props,
|
|
5
|
+
* never by importing its internals.
|
|
6
|
+
*/
|
|
7
|
+
export { EmptyState } from "./EmptyState";
|
|
8
|
+
export type { EmptyStateProps, EmptyStateAction } from "./EmptyState";
|
|
9
|
+
export type { IconName } from "../../core/icon";
|
|
10
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/modules/empty-state/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,YAAY,EAAE,eAAe,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAC;AAGtE,YAAY,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC"}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* FileUpload — a trigger `Button` that opens a native picker and reports the picked LOCAL file back
|
|
3
|
+
* through the controlled `onChange`. No network upload logic lives here: turning the returned `uri`
|
|
4
|
+
* into a real upload is the consumer's job.
|
|
5
|
+
*
|
|
6
|
+
* The first module in this library with a genuine native-picker dependency. `expo-image-picker`/
|
|
7
|
+
* `expo-document-picker` are optional peers (see package.json) imported PLAIN at the top of
|
|
8
|
+
* `FileUpload.variants.ts` — the established `core/icon` pattern for an optional-peer native
|
|
9
|
+
* dependency (no lazy-loading gymnastics): per-component subpath exports already mean this module's
|
|
10
|
+
* code, and everything it imports, loads only when a consumer imports `pixelize-native-library/file-upload`
|
|
11
|
+
* at all. Because the import is unconditional, a consumer needs BOTH packages installed even if they
|
|
12
|
+
* only ever pass `source="document"` in their app — the same tradeoff `core/icon` already makes for
|
|
13
|
+
* `lucide-react-native` + `react-native-svg` (a Button that renders no icon still requires both).
|
|
14
|
+
*
|
|
15
|
+
* Composes the library's own `Button` for BOTH interactive elements (the trigger AND the "remove"
|
|
16
|
+
* control) rather than hand-rolling a `Pressable` — see MODULE.md "Why this module has no colour
|
|
17
|
+
* resolver" for why that's a deliberate departure from every sibling module's structure/colour split.
|
|
18
|
+
*/
|
|
19
|
+
import type { LayoutStyle } from "../../core/style";
|
|
20
|
+
import type { FileUploadResult, FileUploadSize, FileUploadSource } from "./FileUpload.variants";
|
|
21
|
+
export interface FileUploadProps {
|
|
22
|
+
source: FileUploadSource;
|
|
23
|
+
/** The trigger's visible label, e.g. `"Upload photo"`. Always shown as-is — pressing the trigger
|
|
24
|
+
* again while a file is already selected re-opens the picker and replaces it; the label does not
|
|
25
|
+
* change to "change" or similar (the "selected file" row below is what communicates state). */
|
|
26
|
+
label: string;
|
|
27
|
+
/** Controlled — the currently selected file, or `null`/`undefined` for none. */
|
|
28
|
+
value?: FileUploadResult | null;
|
|
29
|
+
/** Fires with the picked file on a successful pick, or `null` when the user clears the selection
|
|
30
|
+
* OR a pick attempt fails outright. Does NOT fire on a user cancel (the picker closes with
|
|
31
|
+
* nothing chosen) — `value` is left exactly as it was. */
|
|
32
|
+
onChange: (result: FileUploadResult | null) => void;
|
|
33
|
+
size?: FileUploadSize;
|
|
34
|
+
disabled?: boolean;
|
|
35
|
+
/** Document-only — forwarded as `DocumentPicker.getDocumentAsync`'s `type`. Ignored when `source` is `"image"`. */
|
|
36
|
+
allowedMimeTypes?: string[];
|
|
37
|
+
/** Image-only — forwarded as `ImagePicker.launchImageLibraryAsync`'s `allowsEditing`. Ignored when `source` is `"document"`. Defaults to `false`, the default (permission-less) picker flow — see `FileUpload.variants.ts`'s `pickImageFile`. */
|
|
38
|
+
allowsEditing?: boolean;
|
|
39
|
+
/** Layout-only, outermost, applied exactly once as the LAST entry in the root style array. */
|
|
40
|
+
style?: LayoutStyle;
|
|
41
|
+
testID?: string;
|
|
42
|
+
}
|
|
43
|
+
export declare const FileUpload: import("react").NamedExoticComponent<FileUploadProps>;
|
|
44
|
+
//# sourceMappingURL=FileUpload.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FileUpload.d.ts","sourceRoot":"","sources":["../../../../src/modules/file-upload/FileUpload.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;GAiBG;AAKH,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAapD,OAAO,KAAK,EAAE,gBAAgB,EAAE,cAAc,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AAEhG,MAAM,WAAW,eAAe;IAC9B,MAAM,EAAE,gBAAgB,CAAC;IACzB;;oGAEgG;IAChG,KAAK,EAAE,MAAM,CAAC;IACd,gFAAgF;IAChF,KAAK,CAAC,EAAE,gBAAgB,GAAG,IAAI,CAAC;IAChC;;+DAE2D;IAC3D,QAAQ,EAAE,CAAC,MAAM,EAAE,gBAAgB,GAAG,IAAI,KAAK,IAAI,CAAC;IACpD,IAAI,CAAC,EAAE,cAAc,CAAC;IACtB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,mHAAmH;IACnH,gBAAgB,CAAC,EAAE,MAAM,EAAE,CAAC;IAC5B,iPAAiP;IACjP,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,8FAA8F;IAC9F,KAAK,CAAC,EAAE,WAAW,CAAC;IACpB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,eAAO,MAAM,UAAU,uDAuHrB,CAAC"}
|