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,222 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import { buildPrimaryOpacity, buildPrimaryShadowTint } from "../../builders/buildBrandTokens.js";
|
|
4
|
+
import buildDarkPalette from "../../builders/buildDarkPalette.js";
|
|
5
|
+
import light from "./palette.light.js";
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* zinc dark is the shadcn dark look and INVERTS the primary: the filled button is near-white
|
|
9
|
+
* `#e4e4e7` carrying a `#18181b` label (13.96:1) — the opposite of light mode. `#e4e4e7` is
|
|
10
|
+
* shadcn's actual dark-mode `--primary` (verified against shadcn's live zinc theme registry,
|
|
11
|
+
* 2026-07-18) — a shade dimmer than pure `#fafafa`, which is shadcn's `--foreground` (default
|
|
12
|
+
* body text), not `--primary`. The generic dark derivation would lift zinc's near-black accent
|
|
13
|
+
* only to a mid grey (a light label's floor), so the neutral system and primary are pinned here
|
|
14
|
+
* as explicit literals; the shared status/utility ramps still come from `buildDarkPalette` so
|
|
15
|
+
* zinc tracks the other brands where it isn't intentionally different. `background[50]` is the
|
|
16
|
+
* surface token (`#0e0e11`), never a hardcoded colour.
|
|
17
|
+
*/
|
|
18
|
+
|
|
19
|
+
const derived = buildDarkPalette(light);
|
|
20
|
+
const PRIMARY_500 = "#e4e4e7";
|
|
21
|
+
const SECONDARY_500 = "#a1a1aa";
|
|
22
|
+
const primary = {
|
|
23
|
+
50: "#18181b",
|
|
24
|
+
100: "#27272a",
|
|
25
|
+
200: "#3f3f46",
|
|
26
|
+
300: "#52525b",
|
|
27
|
+
400: "#a1a1aa",
|
|
28
|
+
500: PRIMARY_500,
|
|
29
|
+
600: "#fbfbfb",
|
|
30
|
+
700: "#fcfcfc",
|
|
31
|
+
800: "#fefefe",
|
|
32
|
+
900: "#ffffff",
|
|
33
|
+
opacity: buildPrimaryOpacity(PRIMARY_500)
|
|
34
|
+
};
|
|
35
|
+
const secondary = {
|
|
36
|
+
50: "#18181b",
|
|
37
|
+
100: "#27272a",
|
|
38
|
+
200: "#3f3f46",
|
|
39
|
+
300: "#52525b",
|
|
40
|
+
400: "#71717a",
|
|
41
|
+
500: SECONDARY_500,
|
|
42
|
+
600: "#b4b4bb",
|
|
43
|
+
700: "#d4d4d8",
|
|
44
|
+
800: "#e4e4e7",
|
|
45
|
+
900: "#fafafa",
|
|
46
|
+
opacity: buildPrimaryOpacity(SECONDARY_500)
|
|
47
|
+
};
|
|
48
|
+
const backgroundColor = {
|
|
49
|
+
main: "#09090b",
|
|
50
|
+
secondary: "#0e0e11",
|
|
51
|
+
tertiary: "#131316",
|
|
52
|
+
quaternary: "#18181b",
|
|
53
|
+
light: "#0e0e11",
|
|
54
|
+
medium: "#18181b",
|
|
55
|
+
accent: "#27272a",
|
|
56
|
+
subtle: "#0e0e11",
|
|
57
|
+
muted: "#27272a",
|
|
58
|
+
neutral: "#18181b",
|
|
59
|
+
base: "#09090b",
|
|
60
|
+
tableHeader: "#131316"
|
|
61
|
+
};
|
|
62
|
+
|
|
63
|
+
// background[50] = the elevated surface (#0e0e11), resolved through a token, not a literal.
|
|
64
|
+
const background = {
|
|
65
|
+
50: "#0e0e11",
|
|
66
|
+
100: "#131316",
|
|
67
|
+
200: "#18181b",
|
|
68
|
+
300: "#212124",
|
|
69
|
+
400: "#27272a",
|
|
70
|
+
500: "#3f3f46",
|
|
71
|
+
600: "#52525b",
|
|
72
|
+
700: "#71717a",
|
|
73
|
+
800: "#a1a1aa",
|
|
74
|
+
900: "#d4d4d8"
|
|
75
|
+
};
|
|
76
|
+
const text = {
|
|
77
|
+
50: "#71717a",
|
|
78
|
+
100: "#8a8a93",
|
|
79
|
+
200: "#a1a1aa",
|
|
80
|
+
300: "#b4b4bb",
|
|
81
|
+
400: "#d4d4d8",
|
|
82
|
+
500: "#fafafa",
|
|
83
|
+
600: "#fbfbfb",
|
|
84
|
+
700: "#fcfcfc",
|
|
85
|
+
800: "#fefefe",
|
|
86
|
+
900: "#ffffff"
|
|
87
|
+
};
|
|
88
|
+
const header = {
|
|
89
|
+
50: "#8a8a93",
|
|
90
|
+
100: "#a1a1aa",
|
|
91
|
+
200: "#c4c4c9",
|
|
92
|
+
300: "#d4d4d8",
|
|
93
|
+
400: "#e4e4e7",
|
|
94
|
+
500: "#fafafa",
|
|
95
|
+
600: "#fbfbfb",
|
|
96
|
+
700: "#fcfcfc",
|
|
97
|
+
800: "#fefefe",
|
|
98
|
+
900: "#ffffff"
|
|
99
|
+
};
|
|
100
|
+
|
|
101
|
+
// muted-foreground = gray[500] = #a1a1aa (5.81:1 on the #27272a muted surface); it also serves
|
|
102
|
+
// as the focus ring on the #09090b canvas (7.76:1). gray[400] = the #6b6b75 interactive border.
|
|
103
|
+
const gray = {
|
|
104
|
+
50: "#18181b",
|
|
105
|
+
100: "#27272a",
|
|
106
|
+
200: "#3f3f46",
|
|
107
|
+
300: "#52525b",
|
|
108
|
+
400: "#6b6b75",
|
|
109
|
+
500: "#a1a1aa",
|
|
110
|
+
600: "#b4b4bb",
|
|
111
|
+
700: "#d4d4d8",
|
|
112
|
+
800: "#e4e4e7",
|
|
113
|
+
900: "#f4f4f5"
|
|
114
|
+
};
|
|
115
|
+
|
|
116
|
+
// border[200] = decorative (#27272a); border[500] = interactive outline (#6b6b75, 3.78:1 on canvas).
|
|
117
|
+
const border = {
|
|
118
|
+
50: "#18181b",
|
|
119
|
+
100: "#212124",
|
|
120
|
+
200: "#27272a",
|
|
121
|
+
300: "#3f3f46",
|
|
122
|
+
400: "#52525b",
|
|
123
|
+
500: "#6b6b75",
|
|
124
|
+
600: "#8a8a93",
|
|
125
|
+
700: "#a1a1aa",
|
|
126
|
+
800: "#d4d4d8",
|
|
127
|
+
900: "#e4e4e7"
|
|
128
|
+
};
|
|
129
|
+
const boxborder = {
|
|
130
|
+
50: "#18181b",
|
|
131
|
+
100: "#212124",
|
|
132
|
+
200: "#27272a",
|
|
133
|
+
300: "#3f3f46",
|
|
134
|
+
400: "#52525b",
|
|
135
|
+
500: "#6b6b75",
|
|
136
|
+
600: "#8a8a93",
|
|
137
|
+
700: "#a1a1aa",
|
|
138
|
+
800: "#d4d4d8",
|
|
139
|
+
900: "#e4e4e7"
|
|
140
|
+
};
|
|
141
|
+
const placeholder = {
|
|
142
|
+
50: "#3f3f46",
|
|
143
|
+
100: "#52525b",
|
|
144
|
+
200: "#6b6b75",
|
|
145
|
+
300: "#71717a",
|
|
146
|
+
400: "#8a8a93",
|
|
147
|
+
500: "#a1a1aa",
|
|
148
|
+
600: "#b4b4bb",
|
|
149
|
+
700: "#c4c4c9",
|
|
150
|
+
800: "#d4d4d8",
|
|
151
|
+
900: "#e4e4e7"
|
|
152
|
+
};
|
|
153
|
+
const disabled = {
|
|
154
|
+
50: "#18181b",
|
|
155
|
+
100: "#212124",
|
|
156
|
+
200: "#27272a",
|
|
157
|
+
300: "#3f3f46",
|
|
158
|
+
400: "#4a4a52",
|
|
159
|
+
500: "#52525b",
|
|
160
|
+
600: "#6b6b75",
|
|
161
|
+
700: "#8a8a93",
|
|
162
|
+
800: "#a1a1aa",
|
|
163
|
+
900: "#d4d4d8"
|
|
164
|
+
};
|
|
165
|
+
const table = {
|
|
166
|
+
hover: {
|
|
167
|
+
50: "#0e0e11",
|
|
168
|
+
100: "#131316",
|
|
169
|
+
200: "#18181b",
|
|
170
|
+
300: "#1f1f22",
|
|
171
|
+
400: "#27272a",
|
|
172
|
+
500: "#2f2f33",
|
|
173
|
+
600: "#3f3f46",
|
|
174
|
+
700: "#52525b",
|
|
175
|
+
800: "#71717a",
|
|
176
|
+
900: "#a1a1aa"
|
|
177
|
+
}
|
|
178
|
+
};
|
|
179
|
+
const sidebar = {
|
|
180
|
+
background: {
|
|
181
|
+
50: "#18181b",
|
|
182
|
+
100: "#131316",
|
|
183
|
+
200: "#27272a",
|
|
184
|
+
300: "#3f3f46",
|
|
185
|
+
400: "#52525b",
|
|
186
|
+
500: "#0e0e11",
|
|
187
|
+
600: "#0b0b0d",
|
|
188
|
+
700: "#09090b",
|
|
189
|
+
800: "#060608",
|
|
190
|
+
900: "#040405"
|
|
191
|
+
}
|
|
192
|
+
};
|
|
193
|
+
const palette = {
|
|
194
|
+
...derived,
|
|
195
|
+
gradient: {
|
|
196
|
+
from: PRIMARY_500,
|
|
197
|
+
to: "#a1a1aa"
|
|
198
|
+
},
|
|
199
|
+
primary,
|
|
200
|
+
secondary,
|
|
201
|
+
tertiary: {
|
|
202
|
+
...secondary
|
|
203
|
+
},
|
|
204
|
+
backgroundColor,
|
|
205
|
+
background,
|
|
206
|
+
text,
|
|
207
|
+
header,
|
|
208
|
+
gray,
|
|
209
|
+
border,
|
|
210
|
+
boxborder,
|
|
211
|
+
placeholder,
|
|
212
|
+
disabled,
|
|
213
|
+
table,
|
|
214
|
+
sidebar,
|
|
215
|
+
boxShadow: {
|
|
216
|
+
primary: buildPrimaryShadowTint(PRIMARY_500),
|
|
217
|
+
error: derived.boxShadow.error,
|
|
218
|
+
default: "#00000080"
|
|
219
|
+
}
|
|
220
|
+
};
|
|
221
|
+
export default palette;
|
|
222
|
+
//# sourceMappingURL=palette.dark.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["buildPrimaryOpacity","buildPrimaryShadowTint","buildDarkPalette","light","derived","PRIMARY_500","SECONDARY_500","primary","opacity","secondary","backgroundColor","main","tertiary","quaternary","medium","accent","subtle","muted","neutral","base","tableHeader","background","text","header","gray","border","boxborder","placeholder","disabled","table","hover","sidebar","palette","gradient","from","to","boxShadow","error","default"],"sourceRoot":"../../../../../../src","sources":["theme/tokens/brands/zinc/palette.dark.ts"],"mappings":";;AACA,SAASA,mBAAmB,EAAEC,sBAAsB,QAAQ,oCAAiC;AAC7F,OAAOC,gBAAgB,MAAM,oCAAiC;AAC9D,OAAOC,KAAK,MAAM,oBAAiB;;AAEnC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,MAAMC,OAAO,GAAGF,gBAAgB,CAACC,KAAK,CAAC;AAEvC,MAAME,WAAW,GAAG,SAAS;AAC7B,MAAMC,aAAa,GAAG,SAAS;AAE/B,M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,EAAE,SAAS;IAAE,GAAG,EAAE;EACvE;AACF,CAAC;AAED,MAAMW,OAAqB,GAAG;EAC5B,GAAG5B,OAAO;EACV6B,QAAQ,EAAE;IAAEC,IAAI,EAAE7B,WAAW;IAAE8B,EAAE,EAAE;EAAU,CAAC;EAC9C5B,OAAO;EACPE,SAAS;EACTG,QAAQ,EAAE;IAAE,GAAGH;EAAU,CAAC;EAC1BC,eAAe;EACfW,UAAU;EACVC,IAAI;EACJC,MAAM;EACNC,IAAI;EACJC,MAAM;EACNC,SAAS;EACTC,WAAW;EACXC,QAAQ;EACRC,KAAK;EACLE,OAAO;EACPK,SAAS,EAAE;IACT7B,OAAO,EAAEN,sBAAsB,CAACI,WAAW,CAAC;IAC5CgC,KAAK,EAAEjC,OAAO,CAACgC,SAAS,CAACC,KAAK;IAC9BC,OAAO,EAAE;EACX;AACF,CAAC;AAED,eAAeN,OAAO","ignoreList":[]}
|
|
@@ -0,0 +1,393 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import { buildPrimaryOpacity, buildPrimaryShadowTint } from "../../builders/buildBrandTokens.js";
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* zinc — the library DEFAULT, the shadcn look the user approved from a contrast-verified preview.
|
|
7
|
+
* These exact hexes are the shared source of truth: web is adopting them verbatim, so every rung
|
|
8
|
+
* here is authoritative, not an approximation.
|
|
9
|
+
*
|
|
10
|
+
* Unlike the other brands, zinc's filled primary is the near-black anchor itself: `primary[500]`
|
|
11
|
+
* is `#18181b`, so `resolveFilledAccent` lands on rung 500 with a `#fafafa` label (16.97:1). The
|
|
12
|
+
* canvas is literal white via `background[50]` — a real surface token, never a hardcoded `"white"`,
|
|
13
|
+
* which is what paints white cards on a dark canvas.
|
|
14
|
+
*/
|
|
15
|
+
|
|
16
|
+
const PRIMARY_500 = "#18181b";
|
|
17
|
+
const SECONDARY_500 = "#71717a";
|
|
18
|
+
const primary = {
|
|
19
|
+
50: "#f4f4f5",
|
|
20
|
+
100: "#e4e4e7",
|
|
21
|
+
200: "#d4d4d8",
|
|
22
|
+
300: "#a1a1aa",
|
|
23
|
+
400: "#3f3f46",
|
|
24
|
+
500: PRIMARY_500,
|
|
25
|
+
600: "#141417",
|
|
26
|
+
700: "#101013",
|
|
27
|
+
800: "#0c0c0e",
|
|
28
|
+
900: "#09090b",
|
|
29
|
+
opacity: buildPrimaryOpacity(PRIMARY_500)
|
|
30
|
+
};
|
|
31
|
+
const secondary = {
|
|
32
|
+
50: "#fafafa",
|
|
33
|
+
100: "#f4f4f5",
|
|
34
|
+
200: "#e4e4e7",
|
|
35
|
+
300: "#d4d4d8",
|
|
36
|
+
400: "#a1a1aa",
|
|
37
|
+
500: SECONDARY_500,
|
|
38
|
+
600: "#52525b",
|
|
39
|
+
700: "#3f3f46",
|
|
40
|
+
800: "#27272a",
|
|
41
|
+
900: "#18181b",
|
|
42
|
+
opacity: buildPrimaryOpacity(SECONDARY_500)
|
|
43
|
+
};
|
|
44
|
+
|
|
45
|
+
// Shared status ramps — identical across every brand (status is universal, brand is the hue).
|
|
46
|
+
const semantic = {
|
|
47
|
+
success: {
|
|
48
|
+
50: "#e9f8ef",
|
|
49
|
+
100: "#bbe9cc",
|
|
50
|
+
200: "#9adeb4",
|
|
51
|
+
300: "#6ccf92",
|
|
52
|
+
400: "#4fc67d",
|
|
53
|
+
500: "#23b85c",
|
|
54
|
+
600: "#20a754",
|
|
55
|
+
700: "#198341",
|
|
56
|
+
800: "#136533",
|
|
57
|
+
900: "#0f4d27"
|
|
58
|
+
},
|
|
59
|
+
error: {
|
|
60
|
+
50: "#feedeb",
|
|
61
|
+
100: "#fbc6c2",
|
|
62
|
+
200: "#f9aaa4",
|
|
63
|
+
300: "#f6837b",
|
|
64
|
+
400: "#f56b61",
|
|
65
|
+
500: "#f2463a",
|
|
66
|
+
600: "#dc4035",
|
|
67
|
+
700: "#ac3229",
|
|
68
|
+
800: "#852720",
|
|
69
|
+
900: "#661d18"
|
|
70
|
+
},
|
|
71
|
+
warning: {
|
|
72
|
+
50: "#fff4ef",
|
|
73
|
+
100: "#ffddce",
|
|
74
|
+
200: "#ffccb7",
|
|
75
|
+
300: "#ffb596",
|
|
76
|
+
400: "#ffa781",
|
|
77
|
+
500: "#ff9162",
|
|
78
|
+
600: "#e88459",
|
|
79
|
+
700: "#b56746",
|
|
80
|
+
800: "#8c5036",
|
|
81
|
+
900: "#6b3d29"
|
|
82
|
+
},
|
|
83
|
+
info: {
|
|
84
|
+
50: "#eff9fc",
|
|
85
|
+
100: "#cdedf5",
|
|
86
|
+
200: "#b5e4f0",
|
|
87
|
+
300: "#94d7e9",
|
|
88
|
+
400: "#7fd0e5",
|
|
89
|
+
500: "#5fc4de",
|
|
90
|
+
600: "#56b2ea",
|
|
91
|
+
700: "#438b9e",
|
|
92
|
+
800: "#346c78",
|
|
93
|
+
900: "#28525d"
|
|
94
|
+
}
|
|
95
|
+
};
|
|
96
|
+
const gray = {
|
|
97
|
+
50: "#fafafa",
|
|
98
|
+
100: "#f4f4f5",
|
|
99
|
+
200: "#e4e4e7",
|
|
100
|
+
300: "#d4d4d8",
|
|
101
|
+
400: "#a1a1aa",
|
|
102
|
+
500: "#71717a",
|
|
103
|
+
600: "#52525b",
|
|
104
|
+
700: "#3f3f46",
|
|
105
|
+
800: "#27272a",
|
|
106
|
+
900: "#18181b"
|
|
107
|
+
};
|
|
108
|
+
|
|
109
|
+
// Shared utility hues — same values as every brand.
|
|
110
|
+
const red = {
|
|
111
|
+
50: "#feedeb",
|
|
112
|
+
100: "#fbc6c2",
|
|
113
|
+
200: "#f9aaa4",
|
|
114
|
+
300: "#f6837b",
|
|
115
|
+
400: "#f56b61",
|
|
116
|
+
500: "#f2463a",
|
|
117
|
+
600: "#dc4035",
|
|
118
|
+
700: "#ac3229",
|
|
119
|
+
800: "#852720",
|
|
120
|
+
900: "#661d18"
|
|
121
|
+
};
|
|
122
|
+
const orange = {
|
|
123
|
+
50: "#fff4ef",
|
|
124
|
+
100: "#ffddce",
|
|
125
|
+
200: "#ffccb7",
|
|
126
|
+
300: "#ffb596",
|
|
127
|
+
400: "#ffa781",
|
|
128
|
+
500: "#ff9162",
|
|
129
|
+
600: "#e88459",
|
|
130
|
+
700: "#b56746",
|
|
131
|
+
800: "#8c5036",
|
|
132
|
+
900: "#6b3d29"
|
|
133
|
+
};
|
|
134
|
+
const yellow = {
|
|
135
|
+
50: "#fefbec",
|
|
136
|
+
100: "#fdf1c5",
|
|
137
|
+
200: "#fbeba9",
|
|
138
|
+
300: "#fae281",
|
|
139
|
+
400: "#f9dc69",
|
|
140
|
+
500: "#f7d343",
|
|
141
|
+
600: "#e1c03d",
|
|
142
|
+
700: "#af9630",
|
|
143
|
+
800: "#887425",
|
|
144
|
+
900: "#68591c"
|
|
145
|
+
};
|
|
146
|
+
const green = {
|
|
147
|
+
50: "#e9f8ef",
|
|
148
|
+
100: "#bbe9cc",
|
|
149
|
+
200: "#9adeb4",
|
|
150
|
+
300: "#6ccf92",
|
|
151
|
+
400: "#4fc67d",
|
|
152
|
+
500: "#23b85c",
|
|
153
|
+
600: "#20a754",
|
|
154
|
+
700: "#198341",
|
|
155
|
+
800: "#136533",
|
|
156
|
+
900: "#0f4d27"
|
|
157
|
+
};
|
|
158
|
+
const teal = {
|
|
159
|
+
50: "#eff9fc",
|
|
160
|
+
100: "#cdedf5",
|
|
161
|
+
200: "#b5e4f0",
|
|
162
|
+
300: "#94d7e9",
|
|
163
|
+
400: "#7fd0e5",
|
|
164
|
+
500: "#5fc4de",
|
|
165
|
+
600: "#56b2ea",
|
|
166
|
+
700: "#438b9e",
|
|
167
|
+
800: "#346c78",
|
|
168
|
+
900: "#28525d"
|
|
169
|
+
};
|
|
170
|
+
const blue = {
|
|
171
|
+
50: "#ebf8ff",
|
|
172
|
+
100: "#bee3f8",
|
|
173
|
+
200: "#90cdf4",
|
|
174
|
+
300: "#63b3ed",
|
|
175
|
+
400: "#4299e1",
|
|
176
|
+
500: "#3182ce",
|
|
177
|
+
600: "#2b6cb0",
|
|
178
|
+
700: "#2c5282",
|
|
179
|
+
800: "#2a4365",
|
|
180
|
+
900: "#1a365d"
|
|
181
|
+
};
|
|
182
|
+
const cyan = {
|
|
183
|
+
50: "#edfdfd",
|
|
184
|
+
100: "#c4f1f9",
|
|
185
|
+
200: "#9decf9",
|
|
186
|
+
300: "#76e4f7",
|
|
187
|
+
400: "#0bc5ea",
|
|
188
|
+
500: "#00b5d8",
|
|
189
|
+
600: "#00a3c4",
|
|
190
|
+
700: "#0987a0",
|
|
191
|
+
800: "#086f83",
|
|
192
|
+
900: "#065666"
|
|
193
|
+
};
|
|
194
|
+
const purple = {
|
|
195
|
+
50: "#faf5ff",
|
|
196
|
+
100: "#e9d8fd",
|
|
197
|
+
200: "#d6bcfa",
|
|
198
|
+
300: "#b794f4",
|
|
199
|
+
400: "#9f7aea",
|
|
200
|
+
500: "#805ad5",
|
|
201
|
+
600: "#6b46c1",
|
|
202
|
+
700: "#553c9a",
|
|
203
|
+
800: "#44337a",
|
|
204
|
+
900: "#322659"
|
|
205
|
+
};
|
|
206
|
+
const pink = {
|
|
207
|
+
50: "#fff5f7",
|
|
208
|
+
100: "#fed7e2",
|
|
209
|
+
200: "#fbb6ce",
|
|
210
|
+
300: "#f687b3",
|
|
211
|
+
400: "#ed64a6",
|
|
212
|
+
500: "#d53f8c",
|
|
213
|
+
600: "#b83280",
|
|
214
|
+
700: "#97266d",
|
|
215
|
+
800: "#702459",
|
|
216
|
+
900: "#521b41"
|
|
217
|
+
};
|
|
218
|
+
const backgroundColor = {
|
|
219
|
+
main: "#ffffff",
|
|
220
|
+
secondary: "#fafafa",
|
|
221
|
+
tertiary: "#f4f4f5",
|
|
222
|
+
quaternary: "#e4e4e7",
|
|
223
|
+
light: "#ffffff",
|
|
224
|
+
medium: "#f4f4f5",
|
|
225
|
+
accent: "#e4e4e7",
|
|
226
|
+
subtle: "#fafafa",
|
|
227
|
+
muted: "#f4f4f5",
|
|
228
|
+
neutral: "#f4f4f5",
|
|
229
|
+
base: "#fafafa",
|
|
230
|
+
tableHeader: "#f4f4f5"
|
|
231
|
+
};
|
|
232
|
+
|
|
233
|
+
// background[50] is the elevated-surface token and must BE the literal canvas colour (#ffffff),
|
|
234
|
+
// so `bg.surface` resolves through a token, never a hardcoded "white".
|
|
235
|
+
const background = {
|
|
236
|
+
50: "#ffffff",
|
|
237
|
+
100: "#fafafa",
|
|
238
|
+
200: "#f4f4f5",
|
|
239
|
+
300: "#e4e4e7",
|
|
240
|
+
400: "#d4d4d8",
|
|
241
|
+
500: "#a1a1aa",
|
|
242
|
+
600: "#71717a",
|
|
243
|
+
700: "#52525b",
|
|
244
|
+
800: "#3f3f46",
|
|
245
|
+
900: "#27272a"
|
|
246
|
+
};
|
|
247
|
+
const text = {
|
|
248
|
+
50: "#a1a1aa",
|
|
249
|
+
100: "#71717a",
|
|
250
|
+
200: "#52525b",
|
|
251
|
+
300: "#3f3f46",
|
|
252
|
+
400: "#27272a",
|
|
253
|
+
500: "#18181b",
|
|
254
|
+
600: "#141417",
|
|
255
|
+
700: "#101013",
|
|
256
|
+
800: "#0c0c0e",
|
|
257
|
+
900: "#09090b"
|
|
258
|
+
};
|
|
259
|
+
const header = {
|
|
260
|
+
50: "#71717a",
|
|
261
|
+
100: "#52525b",
|
|
262
|
+
200: "#3f3f46",
|
|
263
|
+
300: "#27272a",
|
|
264
|
+
400: "#1f1f22",
|
|
265
|
+
500: "#18181b",
|
|
266
|
+
600: "#121215",
|
|
267
|
+
700: "#0e0e11",
|
|
268
|
+
800: "#0b0b0d",
|
|
269
|
+
900: "#09090b"
|
|
270
|
+
};
|
|
271
|
+
const placeholder = {
|
|
272
|
+
50: "#d4d4d8",
|
|
273
|
+
100: "#a1a1aa",
|
|
274
|
+
200: "#8a8a93",
|
|
275
|
+
300: "#71717a",
|
|
276
|
+
400: "#63636b",
|
|
277
|
+
500: "#52525b",
|
|
278
|
+
600: "#47474e",
|
|
279
|
+
700: "#3f3f46",
|
|
280
|
+
800: "#27272a",
|
|
281
|
+
900: "#18181b"
|
|
282
|
+
};
|
|
283
|
+
const boxShadow = {
|
|
284
|
+
primary: buildPrimaryShadowTint(PRIMARY_500),
|
|
285
|
+
error: "#F2463A47",
|
|
286
|
+
default: "#00000033"
|
|
287
|
+
};
|
|
288
|
+
const sidebar = {
|
|
289
|
+
background: {
|
|
290
|
+
50: "#d4d4d8",
|
|
291
|
+
100: "#a1a1aa",
|
|
292
|
+
200: "#71717a",
|
|
293
|
+
300: "#52525b",
|
|
294
|
+
400: "#3f3f46",
|
|
295
|
+
500: "#18181b",
|
|
296
|
+
600: "#141417",
|
|
297
|
+
700: "#101013",
|
|
298
|
+
800: "#0c0c0e",
|
|
299
|
+
900: "#09090b"
|
|
300
|
+
}
|
|
301
|
+
};
|
|
302
|
+
const boxborder = {
|
|
303
|
+
50: "#fafafa",
|
|
304
|
+
100: "#f4f4f5",
|
|
305
|
+
200: "#e4e4e7",
|
|
306
|
+
300: "#d4d4d8",
|
|
307
|
+
400: "#c4c4c9",
|
|
308
|
+
500: "#a1a1aa",
|
|
309
|
+
600: "#8a8a93",
|
|
310
|
+
700: "#71717a",
|
|
311
|
+
800: "#52525b",
|
|
312
|
+
900: "#3f3f46"
|
|
313
|
+
};
|
|
314
|
+
|
|
315
|
+
// border[200] = decorative (#e4e4e7); border[500] = interactive input outline (#8a8a93, 3.42:1 on
|
|
316
|
+
// canvas — a 1px control outline is a UI component under WCAG 1.4.11 and needs 3:1, not 4.5:1).
|
|
317
|
+
const border = {
|
|
318
|
+
50: "#fafafa",
|
|
319
|
+
100: "#f4f4f5",
|
|
320
|
+
200: "#e4e4e7",
|
|
321
|
+
300: "#d4d4d8",
|
|
322
|
+
400: "#b4b4bb",
|
|
323
|
+
500: "#8a8a93",
|
|
324
|
+
600: "#71717a",
|
|
325
|
+
700: "#52525b",
|
|
326
|
+
800: "#3f3f46",
|
|
327
|
+
900: "#27272a"
|
|
328
|
+
};
|
|
329
|
+
const table = {
|
|
330
|
+
hover: {
|
|
331
|
+
50: "#fcfcfc",
|
|
332
|
+
100: "#fafafa",
|
|
333
|
+
200: "#f4f4f5",
|
|
334
|
+
300: "#efeff0",
|
|
335
|
+
400: "#e9e9eb",
|
|
336
|
+
500: "#e4e4e7",
|
|
337
|
+
600: "#d4d4d8",
|
|
338
|
+
700: "#a1a1aa",
|
|
339
|
+
800: "#78787f",
|
|
340
|
+
900: "#5a5a60"
|
|
341
|
+
}
|
|
342
|
+
};
|
|
343
|
+
const disabled = {
|
|
344
|
+
50: "#fafafa",
|
|
345
|
+
100: "#f4f4f5",
|
|
346
|
+
200: "#e4e4e7",
|
|
347
|
+
300: "#d4d4d8",
|
|
348
|
+
400: "#c4c4c9",
|
|
349
|
+
500: "#a1a1aa",
|
|
350
|
+
600: "#8a8a93",
|
|
351
|
+
700: "#71717a",
|
|
352
|
+
800: "#52525b",
|
|
353
|
+
900: "#3f3f46"
|
|
354
|
+
};
|
|
355
|
+
const gradient = {
|
|
356
|
+
from: "#18181b",
|
|
357
|
+
to: "#52525b"
|
|
358
|
+
};
|
|
359
|
+
const palette = {
|
|
360
|
+
gradient,
|
|
361
|
+
primary,
|
|
362
|
+
secondary,
|
|
363
|
+
tertiary: {
|
|
364
|
+
...secondary
|
|
365
|
+
},
|
|
366
|
+
transparent: "transparent",
|
|
367
|
+
black: "#000",
|
|
368
|
+
white: "#fff",
|
|
369
|
+
semantic,
|
|
370
|
+
gray,
|
|
371
|
+
red,
|
|
372
|
+
orange,
|
|
373
|
+
yellow,
|
|
374
|
+
green,
|
|
375
|
+
teal,
|
|
376
|
+
blue,
|
|
377
|
+
cyan,
|
|
378
|
+
purple,
|
|
379
|
+
pink,
|
|
380
|
+
backgroundColor,
|
|
381
|
+
background,
|
|
382
|
+
text,
|
|
383
|
+
header,
|
|
384
|
+
placeholder,
|
|
385
|
+
boxShadow,
|
|
386
|
+
sidebar,
|
|
387
|
+
boxborder,
|
|
388
|
+
border,
|
|
389
|
+
table,
|
|
390
|
+
disabled
|
|
391
|
+
};
|
|
392
|
+
export default palette;
|
|
393
|
+
//# sourceMappingURL=palette.light.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["buildPrimaryOpacity","buildPrimaryShadowTint","PRIMARY_500","SECONDARY_500","primary","opacity","secondary","semantic","success","error","warning","info","gray","red","orange","yellow","green","teal","blue","cyan","purple","pink","backgroundColor","main","tertiary","quaternary","light","medium","accent","subtle","muted","neutral","base","tableHeader","background","text","header","placeholder","boxShadow","default","sidebar","boxborder","border","table","hover","disabled","gradient","from","to","palette","transparent","black","white"],"sourceRoot":"../../../../../../src","sources":["theme/tokens/brands/zinc/palette.light.ts"],"mappings":";;AACA,SAASA,mBAAmB,EAAEC,sBAAsB,QAAQ,oCAAiC;;AAE7F;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,MAAMC,WAAW,GAAG,SAAS;AAC7B,MAAMC,aAAa,GAAG,SAAS;AAE/B,MAAMC,OAAO,GAAG;EACd,EAAE,EAAE,SAAS;EAAE,GAAG,EAAE,SAAS;EAAE,GAAG,EAAE,SAAS;EAAE,GAAG,EAAE,SAAS;EAAE,GAAG,EAAE,SAAS;EAC7E,GAAG,EAAEF,WAAW;EAAE,GAAG,EAAE,SAAS;EAAE,GAAG,EAAE,SAAS;EAAE,GAAG,EAAE,SAAS;EAAE,GAAG,EAAE,SAAS;EAChFG,OAAO,EAAEL,mBAAmB,CAACE,WAAW;AAC1C,CAAC;AAED,MAAMI,SAAS,GAAG;EAChB,EAAE,EAAE,SAAS;EAAE,GAAG,EAAE,SAAS;EAAE,GAAG,EAAE,SAAS;EAAE,GAAG,EAAE,SAAS;EAAE,GAAG,EAAE,SAAS;EAC7E,GAAG,EAAEH,aAAa;EAAE,GAAG,EAAE,SAAS;EAAE,GAAG,EAAE,SAAS;EAAE,GAAG,EAAE,SAAS;EAAE,GAAG,EAAE,SAAS;EAClFE,OAAO,EAAEL,mBAAmB,CAACG,aAAa;AAC5C,CAAC;;A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
+
"use strict";
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Derives the label colour that sits on a filled accent, instead of hardcoding one.
|
|
5
|
+
*
|
|
6
|
+
* Web hardcodes a white label on `primary[500]`, which measures below 4.5:1 on radiant
|
|
7
|
+
* (#cf4e3a, 4.37), rosewood (#d16a7e, 3.46) and emerald (#0f9d8a, 3.38) — so those three ship
|
|
8
|
+
* an inaccessible button. Nothing here is brand-aware: a new brand is fixed by the same walk
|
|
9
|
+
* that fixes those, rather than shipping broken until someone notices.
|
|
10
|
+
*/
|
|
11
|
+
|
|
12
|
+
import { AA_TEXT, contrastRatio } from "./color.js";
|
|
13
|
+
|
|
14
|
+
/** The two candidate labels. Near-white and near-black, not #fff/#000 — the shadcn look. */
|
|
15
|
+
export const ON_ACCENT_LIGHT = "#fafafa";
|
|
16
|
+
export const ON_ACCENT_DARK = "#18181b";
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
* Rungs a filled accent may walk, in order. Walking past 700 would drift too far from the
|
|
20
|
+
* brand's anchor to still read as that brand.
|
|
21
|
+
*/
|
|
22
|
+
export const FILLED_RUNGS = [500, 600, 700];
|
|
23
|
+
/** The candidate label with more contrast against `fill`. */
|
|
24
|
+
export function pickOnAccent(fill) {
|
|
25
|
+
return contrastRatio(fill, ON_ACCENT_LIGHT) >= contrastRatio(fill, ON_ACCENT_DARK) ? ON_ACCENT_LIGHT : ON_ACCENT_DARK;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
/**
|
|
29
|
+
* First rung whose better label clears AA, walking 500 → 600 → 700.
|
|
30
|
+
*
|
|
31
|
+
* Applies to every filled accent — primary and the four status fills alike. White measures
|
|
32
|
+
* below 4.5:1 on all four status fills too (info 2.01, warning 2.22, success 2.60, error 3.68),
|
|
33
|
+
* so a hardcoded label is wrong there for exactly the same reason.
|
|
34
|
+
*
|
|
35
|
+
* Falls back to 500 when no rung clears, with `meetsAA: false`, so the brand is still rendered
|
|
36
|
+
* and the contrast test is what reports it.
|
|
37
|
+
*/
|
|
38
|
+
export function resolveFilledAccent(ramp) {
|
|
39
|
+
for (const rung of FILLED_RUNGS) {
|
|
40
|
+
const fill = ramp[rung];
|
|
41
|
+
const label = pickOnAccent(fill);
|
|
42
|
+
const ratio = contrastRatio(fill, label);
|
|
43
|
+
if (ratio >= AA_TEXT) return {
|
|
44
|
+
rung,
|
|
45
|
+
fill,
|
|
46
|
+
label,
|
|
47
|
+
ratio,
|
|
48
|
+
meetsAA: true
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
const fill = ramp[500];
|
|
52
|
+
const label = pickOnAccent(fill);
|
|
53
|
+
return {
|
|
54
|
+
rung: 500,
|
|
55
|
+
fill,
|
|
56
|
+
label,
|
|
57
|
+
ratio: contrastRatio(fill, label),
|
|
58
|
+
meetsAA: false
|
|
59
|
+
};
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
/** The rung a brand's filled primary actually lands on. */
|
|
63
|
+
export function filledPrimaryRung(primary) {
|
|
64
|
+
return resolveFilledAccent(primary).rung;
|
|
65
|
+
}
|
|
66
|
+
//# sourceMappingURL=accentText.js.map
|