@redis-ui/styles 15.0.0 → 16.1.2
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/dist/commonStyles.js +71 -0
- package/dist/focus-indicator.js +14 -0
- package/dist/hooks/ThemeModeSwitching/SwitchableModeThemeProvider.js +14 -0
- package/dist/hooks/ThemeModeSwitching/ThemeModeSwitching.context.js +15 -0
- package/dist/hooks/ThemeModeSwitching/ThemeModeSwitching.types.js +5 -0
- package/dist/hooks/ThemeModeSwitching/index.js +4 -0
- package/dist/hooks/ThemeModeSwitching/useThemeModeSwitchingManager.js +86 -0
- package/dist/hooks/usePrefersReducedMotion.js +28 -0
- package/dist/hooks/useStorage.js +59 -0
- package/dist/hooks/useTheme.js +6 -0
- package/dist/index.js +12664 -14398
- package/dist/index.umd.cjs +29 -58
- package/dist/themes/index.js +9 -0
- package/dist/themes/themeDark/theme/components/actionIconButton.js +56 -0
- package/dist/themes/themeDark/theme/components/appBar.js +25 -0
- package/dist/themes/themeDark/theme/components/appSelectionMenu.js +46 -0
- package/dist/themes/themeDark/theme/components/autoComplete.js +7 -0
- package/dist/themes/themeDark/theme/components/badge.js +73 -0
- package/dist/themes/themeDark/theme/components/banner.js +14 -0
- package/dist/themes/themeDark/theme/components/boxSelectionGroup.js +49 -0
- package/dist/themes/themeDark/theme/components/breadcrumbs.js +28 -0
- package/dist/themes/themeDark/theme/components/button.js +185 -0
- package/dist/themes/themeDark/theme/components/buttonGroup.js +46 -0
- package/dist/themes/themeDark/theme/components/card.js +40 -0
- package/dist/themes/themeDark/theme/components/checkbox.js +67 -0
- package/dist/themes/themeDark/theme/components/chip.js +60 -0
- package/dist/themes/themeDark/theme/components/chipList.js +21 -0
- package/dist/themes/themeDark/theme/components/countryFlag.js +9 -0
- package/dist/themes/themeDark/theme/components/datePicker.js +67 -0
- package/dist/themes/themeDark/theme/components/drawer.js +28 -0
- package/dist/themes/themeDark/theme/components/filters.js +36 -0
- package/dist/themes/themeDark/theme/components/formField.js +17 -0
- package/dist/themes/themeDark/theme/components/highlightedIcon.js +42 -0
- package/dist/themes/themeDark/theme/components/icon.d.ts +3 -0
- package/dist/themes/themeDark/theme/components/icon.js +14 -0
- package/dist/themes/themeDark/theme/components/iconButton.js +47 -0
- package/dist/themes/themeDark/theme/components/input.js +94 -0
- package/dist/themes/themeDark/theme/components/keyValueList.js +30 -0
- package/dist/themes/themeDark/theme/components/label.js +24 -0
- package/dist/themes/themeDark/theme/components/layouts.js +39 -0
- package/dist/themes/themeDark/theme/components/link.js +73 -0
- package/dist/themes/themeDark/theme/components/loader.js +29 -0
- package/dist/themes/themeDark/theme/components/menu.js +79 -0
- package/dist/themes/themeDark/theme/components/midBar.js +14 -0
- package/dist/themes/themeDark/theme/components/modal.js +31 -0
- package/dist/themes/themeDark/theme/components/moreInfoIcon.js +5 -0
- package/dist/themes/themeDark/theme/components/popover.js +16 -0
- package/dist/themes/themeDark/theme/components/popupCard.js +22 -0
- package/dist/themes/themeDark/theme/components/profileIcon.js +19 -0
- package/dist/themes/themeDark/theme/components/progressBar.js +57 -0
- package/dist/themes/themeDark/theme/components/radio.js +51 -0
- package/dist/themes/themeDark/theme/components/searchBar.js +23 -0
- package/dist/themes/themeDark/theme/components/section.js +48 -0
- package/dist/themes/themeDark/theme/components/select.js +103 -0
- package/dist/themes/themeDark/theme/components/semanticButton.js +203 -0
- package/dist/themes/themeDark/theme/components/semanticContainer.js +43 -0
- package/dist/themes/themeDark/theme/components/semanticIcon.js +11 -0
- package/dist/themes/themeDark/theme/components/sideBar.js +108 -0
- package/dist/themes/themeDark/theme/components/skeleton.js +30 -0
- package/dist/themes/themeDark/theme/components/slider.js +68 -0
- package/dist/themes/themeDark/theme/components/stepper.js +62 -0
- package/dist/themes/themeDark/theme/components/switch.js +55 -0
- package/dist/themes/themeDark/theme/components/table.js +91 -0
- package/dist/themes/themeDark/theme/components/tableHeading.js +26 -0
- package/dist/themes/themeDark/theme/components/tabs.js +89 -0
- package/dist/themes/themeDark/theme/components/textButton.js +195 -0
- package/dist/themes/themeDark/theme/components/themeModeSwitch.js +18 -0
- package/dist/themes/themeDark/theme/components/toast.js +9 -0
- package/dist/themes/themeDark/theme/components/toggleButton.js +59 -0
- package/dist/themes/themeDark/theme/components/tooltip.js +17 -0
- package/dist/themes/themeDark/theme/components/treeView.js +16 -0
- package/dist/themes/themeDark/theme/components/typography.js +79 -0
- package/dist/themes/themeDark/theme/components/windowBar.js +55 -0
- package/dist/themes/themeDark/theme/globals/body.js +9 -0
- package/dist/themes/themeDark/theme/globals/scrollbar.js +12 -0
- package/dist/themes/themeDark/theme.js +134 -0
- package/dist/themes/themeDark/tokens.js +200 -0
- package/dist/themes/themeDark2/theme/components/actionIconButton.js +56 -0
- package/dist/themes/themeDark2/theme/components/appBar.js +25 -0
- package/dist/themes/themeDark2/theme/components/appSelectionMenu.js +46 -0
- package/dist/themes/themeDark2/theme/components/autoComplete.js +7 -0
- package/dist/themes/themeDark2/theme/components/badge.js +73 -0
- package/dist/themes/themeDark2/theme/components/banner.js +14 -0
- package/dist/themes/themeDark2/theme/components/boxSelectionGroup.js +58 -0
- package/dist/themes/themeDark2/theme/components/breadcrumbs.js +28 -0
- package/dist/themes/themeDark2/theme/components/button.js +202 -0
- package/dist/themes/themeDark2/theme/components/buttonGroup.js +46 -0
- package/dist/themes/themeDark2/theme/components/card.js +40 -0
- package/dist/themes/themeDark2/theme/components/checkbox.js +67 -0
- package/dist/themes/themeDark2/theme/components/chip.js +60 -0
- package/dist/themes/themeDark2/theme/components/chipList.js +21 -0
- package/dist/themes/themeDark2/theme/components/countryFlag.js +9 -0
- package/dist/themes/themeDark2/theme/components/datePicker.js +67 -0
- package/dist/themes/themeDark2/theme/components/drawer.js +30 -0
- package/dist/themes/themeDark2/theme/components/filters.js +36 -0
- package/dist/themes/themeDark2/theme/components/formField.js +17 -0
- package/dist/themes/themeDark2/theme/components/highlightedIcon.js +42 -0
- package/dist/themes/themeDark2/theme/components/icon.d.ts +3 -0
- package/dist/themes/themeDark2/theme/components/icon.js +14 -0
- package/dist/themes/themeDark2/theme/components/iconButton.js +49 -0
- package/dist/themes/themeDark2/theme/components/input.js +97 -0
- package/dist/themes/themeDark2/theme/components/keyValueList.js +30 -0
- package/dist/themes/themeDark2/theme/components/label.js +24 -0
- package/dist/themes/themeDark2/theme/components/layouts.js +39 -0
- package/dist/themes/themeDark2/theme/components/link.js +72 -0
- package/dist/themes/themeDark2/theme/components/loader.js +30 -0
- package/dist/themes/themeDark2/theme/components/menu.js +79 -0
- package/dist/themes/themeDark2/theme/components/midBar.js +14 -0
- package/dist/themes/themeDark2/theme/components/modal.js +34 -0
- package/dist/themes/themeDark2/theme/components/moreInfoIcon.js +5 -0
- package/dist/themes/themeDark2/theme/components/popover.js +16 -0
- package/dist/themes/themeDark2/theme/components/popupCard.js +22 -0
- package/dist/themes/themeDark2/theme/components/profileIcon.js +39 -0
- package/dist/themes/themeDark2/theme/components/progressBar.js +57 -0
- package/dist/themes/themeDark2/theme/components/radio.js +51 -0
- package/dist/themes/themeDark2/theme/components/searchBar.js +25 -0
- package/dist/themes/themeDark2/theme/components/section.js +52 -0
- package/dist/themes/themeDark2/theme/components/select.js +104 -0
- package/dist/themes/themeDark2/theme/components/semanticButton.js +250 -0
- package/dist/themes/themeDark2/theme/components/semanticContainer.js +43 -0
- package/dist/themes/themeDark2/theme/components/semanticIcon.js +11 -0
- package/dist/themes/themeDark2/theme/components/sideBar.js +108 -0
- package/dist/themes/themeDark2/theme/components/skeleton.js +30 -0
- package/dist/themes/themeDark2/theme/components/slider.js +68 -0
- package/dist/themes/themeDark2/theme/components/stepper.js +62 -0
- package/dist/themes/themeDark2/theme/components/switch.js +55 -0
- package/dist/themes/themeDark2/theme/components/table.js +91 -0
- package/dist/themes/themeDark2/theme/components/tableHeading.js +26 -0
- package/dist/themes/themeDark2/theme/components/tabs.js +89 -0
- package/dist/themes/themeDark2/theme/components/textButton.js +202 -0
- package/dist/themes/themeDark2/theme/components/themeModeSwitch.js +18 -0
- package/dist/themes/themeDark2/theme/components/toast.js +9 -0
- package/dist/themes/themeDark2/theme/components/toggleButton.js +57 -0
- package/dist/themes/themeDark2/theme/components/tooltip.js +17 -0
- package/dist/themes/themeDark2/theme/components/treeView.js +16 -0
- package/dist/themes/themeDark2/theme/components/typography.js +79 -0
- package/dist/themes/themeDark2/theme/components/windowBar.js +55 -0
- package/dist/themes/themeDark2/theme/globals/body.js +9 -0
- package/dist/themes/themeDark2/theme/globals/scrollbar.js +12 -0
- package/dist/themes/themeDark2/theme.js +134 -0
- package/dist/themes/themeDark2/tokens.js +200 -0
- package/dist/themes/themeLight/theme/components/actionIconButton.js +56 -0
- package/dist/themes/themeLight/theme/components/appBar.js +25 -0
- package/dist/themes/themeLight/theme/components/appSelectionMenu.js +46 -0
- package/dist/themes/themeLight/theme/components/autoComplete.js +7 -0
- package/dist/themes/themeLight/theme/components/badge.js +73 -0
- package/dist/themes/themeLight/theme/components/banner.js +14 -0
- package/dist/themes/themeLight/theme/components/boxSelectionGroup.js +49 -0
- package/dist/themes/themeLight/theme/components/breadcrumbs.js +28 -0
- package/dist/themes/themeLight/theme/components/button.js +182 -0
- package/dist/themes/themeLight/theme/components/buttonGroup.js +46 -0
- package/dist/themes/themeLight/theme/components/card.js +40 -0
- package/dist/themes/themeLight/theme/components/checkbox.js +67 -0
- package/dist/themes/themeLight/theme/components/chip.js +60 -0
- package/dist/themes/themeLight/theme/components/chipList.js +21 -0
- package/dist/themes/themeLight/theme/components/countryFlag.js +9 -0
- package/dist/themes/themeLight/theme/components/datePicker.js +67 -0
- package/dist/themes/themeLight/theme/components/drawer.js +28 -0
- package/dist/themes/themeLight/theme/components/filters.js +36 -0
- package/dist/themes/themeLight/theme/components/formField.js +17 -0
- package/dist/themes/themeLight/theme/components/highlightedIcon.js +42 -0
- package/dist/themes/themeLight/theme/components/icon.d.ts +3 -0
- package/dist/themes/themeLight/theme/components/icon.js +14 -0
- package/dist/themes/themeLight/theme/components/iconButton.js +47 -0
- package/dist/themes/themeLight/theme/components/input.js +94 -0
- package/dist/themes/themeLight/theme/components/keyValueList.js +30 -0
- package/dist/themes/themeLight/theme/components/label.js +24 -0
- package/dist/themes/themeLight/theme/components/layouts.js +39 -0
- package/dist/themes/themeLight/theme/components/link.js +74 -0
- package/dist/themes/themeLight/theme/components/loader.js +29 -0
- package/dist/themes/themeLight/theme/components/menu.js +79 -0
- package/dist/themes/themeLight/theme/components/midBar.js +14 -0
- package/dist/themes/themeLight/theme/components/modal.js +31 -0
- package/dist/themes/themeLight/theme/components/moreInfoIcon.js +5 -0
- package/dist/themes/themeLight/theme/components/popover.js +16 -0
- package/dist/themes/themeLight/theme/components/popupCard.js +22 -0
- package/dist/themes/themeLight/theme/components/profileIcon.js +39 -0
- package/dist/themes/themeLight/theme/components/progressBar.js +57 -0
- package/dist/themes/themeLight/theme/components/radio.js +51 -0
- package/dist/themes/themeLight/theme/components/searchBar.js +23 -0
- package/dist/themes/themeLight/theme/components/section.js +48 -0
- package/dist/themes/themeLight/theme/components/select.js +103 -0
- package/dist/themes/themeLight/theme/components/semanticButton.js +203 -0
- package/dist/themes/themeLight/theme/components/semanticContainer.js +43 -0
- package/dist/themes/themeLight/theme/components/semanticIcon.js +11 -0
- package/dist/themes/themeLight/theme/components/sideBar.js +108 -0
- package/dist/themes/themeLight/theme/components/skeleton.js +30 -0
- package/dist/themes/themeLight/theme/components/slider.js +68 -0
- package/dist/themes/themeLight/theme/components/stepper.js +62 -0
- package/dist/themes/themeLight/theme/components/switch.js +55 -0
- package/dist/themes/themeLight/theme/components/table.js +91 -0
- package/dist/themes/themeLight/theme/components/tableHeading.js +26 -0
- package/dist/themes/themeLight/theme/components/tabs.js +86 -0
- package/dist/themes/themeLight/theme/components/textButton.js +196 -0
- package/dist/themes/themeLight/theme/components/themeModeSwitch.js +18 -0
- package/dist/themes/themeLight/theme/components/toast.js +9 -0
- package/dist/themes/themeLight/theme/components/toggleButton.js +59 -0
- package/dist/themes/themeLight/theme/components/tooltip.js +17 -0
- package/dist/themes/themeLight/theme/components/treeView.js +16 -0
- package/dist/themes/themeLight/theme/components/typography.js +79 -0
- package/dist/themes/themeLight/theme/components/windowBar.js +55 -0
- package/dist/themes/themeLight/theme/globals/body.js +9 -0
- package/dist/themes/themeLight/theme/globals/scrollbar.js +12 -0
- package/dist/themes/themeLight/theme.js +134 -0
- package/dist/themes/themeLight/tokens.js +200 -0
- package/dist/themes/themeLight2/theme/components/actionIconButton.js +56 -0
- package/dist/themes/themeLight2/theme/components/appBar.js +25 -0
- package/dist/themes/themeLight2/theme/components/appSelectionMenu.js +46 -0
- package/dist/themes/themeLight2/theme/components/autoComplete.js +7 -0
- package/dist/themes/themeLight2/theme/components/badge.js +73 -0
- package/dist/themes/themeLight2/theme/components/banner.js +14 -0
- package/dist/themes/themeLight2/theme/components/boxSelectionGroup.js +58 -0
- package/dist/themes/themeLight2/theme/components/breadcrumbs.js +28 -0
- package/dist/themes/themeLight2/theme/components/button.js +202 -0
- package/dist/themes/themeLight2/theme/components/buttonGroup.js +46 -0
- package/dist/themes/themeLight2/theme/components/card.js +40 -0
- package/dist/themes/themeLight2/theme/components/checkbox.js +67 -0
- package/dist/themes/themeLight2/theme/components/chip.js +60 -0
- package/dist/themes/themeLight2/theme/components/chipList.js +21 -0
- package/dist/themes/themeLight2/theme/components/countryFlag.js +9 -0
- package/dist/themes/themeLight2/theme/components/datePicker.js +67 -0
- package/dist/themes/themeLight2/theme/components/drawer.js +30 -0
- package/dist/themes/themeLight2/theme/components/filters.js +36 -0
- package/dist/themes/themeLight2/theme/components/formField.js +17 -0
- package/dist/themes/themeLight2/theme/components/highlightedIcon.js +42 -0
- package/dist/themes/themeLight2/theme/components/icon.d.ts +3 -0
- package/dist/themes/themeLight2/theme/components/icon.js +14 -0
- package/dist/themes/themeLight2/theme/components/iconButton.js +49 -0
- package/dist/themes/themeLight2/theme/components/input.js +97 -0
- package/dist/themes/themeLight2/theme/components/keyValueList.js +30 -0
- package/dist/themes/themeLight2/theme/components/label.js +24 -0
- package/dist/themes/themeLight2/theme/components/layouts.js +39 -0
- package/dist/themes/themeLight2/theme/components/link.js +72 -0
- package/dist/themes/themeLight2/theme/components/loader.js +30 -0
- package/dist/themes/themeLight2/theme/components/menu.js +79 -0
- package/dist/themes/themeLight2/theme/components/midBar.js +14 -0
- package/dist/themes/themeLight2/theme/components/modal.js +34 -0
- package/dist/themes/themeLight2/theme/components/moreInfoIcon.js +5 -0
- package/dist/themes/themeLight2/theme/components/popover.js +16 -0
- package/dist/themes/themeLight2/theme/components/popupCard.js +22 -0
- package/dist/themes/themeLight2/theme/components/profileIcon.js +39 -0
- package/dist/themes/themeLight2/theme/components/progressBar.js +57 -0
- package/dist/themes/themeLight2/theme/components/radio.js +51 -0
- package/dist/themes/themeLight2/theme/components/searchBar.js +25 -0
- package/dist/themes/themeLight2/theme/components/section.js +52 -0
- package/dist/themes/themeLight2/theme/components/select.js +103 -0
- package/dist/themes/themeLight2/theme/components/semanticButton.js +250 -0
- package/dist/themes/themeLight2/theme/components/semanticContainer.js +43 -0
- package/dist/themes/themeLight2/theme/components/semanticIcon.js +11 -0
- package/dist/themes/themeLight2/theme/components/sideBar.js +108 -0
- package/dist/themes/themeLight2/theme/components/skeleton.js +30 -0
- package/dist/themes/themeLight2/theme/components/slider.js +68 -0
- package/dist/themes/themeLight2/theme/components/stepper.js +62 -0
- package/dist/themes/themeLight2/theme/components/switch.js +55 -0
- package/dist/themes/themeLight2/theme/components/table.js +91 -0
- package/dist/themes/themeLight2/theme/components/tableHeading.js +26 -0
- package/dist/themes/themeLight2/theme/components/tabs.js +86 -0
- package/dist/themes/themeLight2/theme/components/textButton.js +203 -0
- package/dist/themes/themeLight2/theme/components/themeModeSwitch.js +18 -0
- package/dist/themes/themeLight2/theme/components/toast.js +9 -0
- package/dist/themes/themeLight2/theme/components/toggleButton.js +57 -0
- package/dist/themes/themeLight2/theme/components/tooltip.js +17 -0
- package/dist/themes/themeLight2/theme/components/treeView.js +16 -0
- package/dist/themes/themeLight2/theme/components/typography.js +79 -0
- package/dist/themes/themeLight2/theme/components/windowBar.js +55 -0
- package/dist/themes/themeLight2/theme/globals/body.js +9 -0
- package/dist/themes/themeLight2/theme/globals/scrollbar.js +12 -0
- package/dist/themes/themeLight2/theme.js +134 -0
- package/dist/themes/themeLight2/tokens.js +200 -0
- package/dist/themes/types/index.js +3 -0
- package/dist/themes/types/theme/components/actionIconButton.types.js +1 -0
- package/dist/themes/types/theme/components/appBar.types.js +1 -0
- package/dist/themes/types/theme/components/appSelectionMenu.types.js +1 -0
- package/dist/themes/types/theme/components/autoComplete.types.js +1 -0
- package/dist/themes/types/theme/components/badge.types.js +1 -0
- package/dist/themes/types/theme/components/banner.types.js +1 -0
- package/dist/themes/types/theme/components/boxSelectionGroup.types.js +1 -0
- package/dist/themes/types/theme/components/breadcrumbs.types.js +1 -0
- package/dist/themes/types/theme/components/button.types.js +1 -0
- package/dist/themes/types/theme/components/buttonGroup.types.js +1 -0
- package/dist/themes/types/theme/components/card.types.d.ts +6 -3
- package/dist/themes/types/theme/components/card.types.js +10 -0
- package/dist/themes/types/theme/components/checkbox.types.js +1 -0
- package/dist/themes/types/theme/components/chip.types.js +1 -0
- package/dist/themes/types/theme/components/chipList.types.js +1 -0
- package/dist/themes/types/theme/components/countryFlag.types.js +1 -0
- package/dist/themes/types/theme/components/datePicker.types.js +1 -0
- package/dist/themes/types/theme/components/drawer.types.js +1 -0
- package/dist/themes/types/theme/components/filters.types.js +1 -0
- package/dist/themes/types/theme/components/formField.types.js +1 -0
- package/dist/themes/types/theme/components/global.types.js +1 -0
- package/dist/themes/types/theme/components/highlightedIcon.types.js +11 -0
- package/dist/themes/types/theme/components/icon.types.d.ts +5 -0
- package/dist/themes/types/theme/components/icon.types.js +10 -0
- package/dist/themes/types/theme/components/iconButton.types.js +1 -0
- package/dist/themes/types/theme/components/index.d.ts +1 -0
- package/dist/themes/types/theme/components/index.js +60 -0
- package/dist/themes/types/theme/components/input.types.js +1 -0
- package/dist/themes/types/theme/components/keyValueList.types.js +1 -0
- package/dist/themes/types/theme/components/label.types.js +1 -0
- package/dist/themes/types/theme/components/layouts.types.js +1 -0
- package/dist/themes/types/theme/components/link.types.js +1 -0
- package/dist/themes/types/theme/components/loader.types.js +1 -0
- package/dist/themes/types/theme/components/menu.types.js +1 -0
- package/dist/themes/types/theme/components/midBar.types.js +1 -0
- package/dist/themes/types/theme/components/modal.types.js +1 -0
- package/dist/themes/types/theme/components/moreInfoIcon.types.js +1 -0
- package/dist/themes/types/theme/components/popover.types.js +1 -0
- package/dist/themes/types/theme/components/popupCard.types.js +1 -0
- package/dist/themes/types/theme/components/profileIcon.types.js +1 -0
- package/dist/themes/types/theme/components/progressBar.types.js +1 -0
- package/dist/themes/types/theme/components/radio.types.js +1 -0
- package/dist/themes/types/theme/components/searchBar.types.js +1 -0
- package/dist/themes/types/theme/components/section.types.js +1 -0
- package/dist/themes/types/theme/components/select.types.js +1 -0
- package/dist/themes/types/theme/components/semanticButton.types.js +1 -0
- package/dist/themes/types/theme/components/semanticContainer.types.js +1 -0
- package/dist/themes/types/theme/components/semanticIcon.types.js +1 -0
- package/dist/themes/types/theme/components/sideBar.types.js +1 -0
- package/dist/themes/types/theme/components/skeleton.types.js +1 -0
- package/dist/themes/types/theme/components/slider.types.js +1 -0
- package/dist/themes/types/theme/components/stepper.types.js +1 -0
- package/dist/themes/types/theme/components/switch.types.js +1 -0
- package/dist/themes/types/theme/components/table.types.js +1 -0
- package/dist/themes/types/theme/components/tableHeading.types.js +1 -0
- package/dist/themes/types/theme/components/tabs.types.js +1 -0
- package/dist/themes/types/theme/components/textButton.types.js +1 -0
- package/dist/themes/types/theme/components/themeModeSwitch.types.js +1 -0
- package/dist/themes/types/theme/components/toast.types.js +1 -0
- package/dist/themes/types/theme/components/toggleButton.types.js +1 -0
- package/dist/themes/types/theme/components/tooltip.types.js +1 -0
- package/dist/themes/types/theme/components/treeView.types.js +1 -0
- package/dist/themes/types/theme/components/typography.types.js +1 -0
- package/dist/themes/types/theme/components/windowBar.types.js +1 -0
- package/dist/themes/types/theme/globals/body.types.js +1 -0
- package/dist/themes/types/theme/globals/index.js +2 -0
- package/dist/themes/types/theme/globals/scrollbar.types.js +1 -0
- package/dist/themes/types/theme/theme.types.d.ts +2 -1
- package/dist/themes/types/theme/theme.types.js +1 -0
- package/dist/themes/types/theme/themeCore.types.js +1 -0
- package/dist/themes/types/theme/tokens.types.js +1 -0
- package/dist/utils.js +76 -0
- package/package.json +6 -5
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { tokens } from '../../tokens';
|
|
2
|
+
const theme = {
|
|
3
|
+
trigger: {
|
|
4
|
+
borderRadius: '0.4rem',
|
|
5
|
+
height: '3.2rem',
|
|
6
|
+
width: '3.2rem',
|
|
7
|
+
padding: '0px',
|
|
8
|
+
toggleStates: {
|
|
9
|
+
on: {
|
|
10
|
+
normal: {
|
|
11
|
+
bgColor: tokens.semantic.color.background.secondary200,
|
|
12
|
+
borderColor: tokens.semantic.color.border.secondary200,
|
|
13
|
+
textColor: tokens.semantic.color.text.secondary950
|
|
14
|
+
}
|
|
15
|
+
},
|
|
16
|
+
off: {
|
|
17
|
+
normal: {
|
|
18
|
+
bgColor: 'transparent',
|
|
19
|
+
borderColor: 'transparent',
|
|
20
|
+
textColor: tokens.semantic.color.text.secondary950
|
|
21
|
+
},
|
|
22
|
+
hover: {
|
|
23
|
+
bgColor: tokens.semantic.color.background.secondary100,
|
|
24
|
+
borderColor: tokens.semantic.color.border.secondary100,
|
|
25
|
+
textColor: tokens.semantic.color.text.secondary950
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
},
|
|
30
|
+
content: {
|
|
31
|
+
margin: '1.6rem 0',
|
|
32
|
+
gap: '3.2rem 1.2rem',
|
|
33
|
+
width: '35.4rem'
|
|
34
|
+
},
|
|
35
|
+
item: {
|
|
36
|
+
gap: '0.8rem',
|
|
37
|
+
buttonSize: '3.6rem',
|
|
38
|
+
iconSize: '2.4rem',
|
|
39
|
+
width: '11rem',
|
|
40
|
+
height: '6rem',
|
|
41
|
+
label: {
|
|
42
|
+
color: tokens.semantic.color.text.neutral800
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
};
|
|
46
|
+
export default theme;
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
import { tokens } from '../../tokens';
|
|
2
|
+
const borderWidth = '1px';
|
|
3
|
+
const theme = {
|
|
4
|
+
padding: `${tokens.core.space.space025} ${tokens.core.space.space050}`,
|
|
5
|
+
gap: tokens.core.space.space025,
|
|
6
|
+
borderRadius: '2px',
|
|
7
|
+
height: `calc(${tokens.core.space.space200} + ${borderWidth} * 2)`,
|
|
8
|
+
borderWidth,
|
|
9
|
+
borderStyle: 'solid',
|
|
10
|
+
variants: {
|
|
11
|
+
white: {
|
|
12
|
+
backgroundColor: tokens.semantic.color.background.secondary0,
|
|
13
|
+
color: tokens.semantic.color.text.secondary700,
|
|
14
|
+
borderColor: tokens.semantic.color.border.secondary200,
|
|
15
|
+
iconColor: tokens.semantic.color.text.secondary600
|
|
16
|
+
},
|
|
17
|
+
light: {
|
|
18
|
+
backgroundColor: tokens.semantic.color.background.secondary50,
|
|
19
|
+
color: tokens.semantic.color.text.secondary700,
|
|
20
|
+
borderColor: tokens.semantic.color.border.secondary200,
|
|
21
|
+
iconColor: tokens.semantic.color.text.secondary600
|
|
22
|
+
},
|
|
23
|
+
default: {
|
|
24
|
+
backgroundColor: tokens.semantic.color.background.informative0,
|
|
25
|
+
color: tokens.semantic.color.text.informative800,
|
|
26
|
+
borderColor: tokens.semantic.color.border.informative200,
|
|
27
|
+
iconColor: tokens.semantic.color.text.primary600
|
|
28
|
+
},
|
|
29
|
+
informative: {
|
|
30
|
+
backgroundColor: tokens.semantic.color.background.informative0,
|
|
31
|
+
color: tokens.semantic.color.text.primary700,
|
|
32
|
+
borderColor: tokens.semantic.color.border.informative100,
|
|
33
|
+
iconColor: tokens.semantic.color.text.informative600
|
|
34
|
+
},
|
|
35
|
+
success: {
|
|
36
|
+
backgroundColor: tokens.semantic.color.background.success0,
|
|
37
|
+
color: tokens.semantic.color.text.success800,
|
|
38
|
+
borderColor: tokens.semantic.color.border.success200,
|
|
39
|
+
iconColor: tokens.semantic.color.text.success700
|
|
40
|
+
},
|
|
41
|
+
notice: {
|
|
42
|
+
backgroundColor: tokens.semantic.color.background.notice0,
|
|
43
|
+
color: tokens.semantic.color.text.notice700,
|
|
44
|
+
borderColor: tokens.semantic.color.border.notice200,
|
|
45
|
+
iconColor: tokens.semantic.color.text.notice700
|
|
46
|
+
},
|
|
47
|
+
danger: {
|
|
48
|
+
backgroundColor: tokens.semantic.color.background.danger0,
|
|
49
|
+
color: tokens.semantic.color.text.danger700,
|
|
50
|
+
borderColor: tokens.semantic.color.border.danger200,
|
|
51
|
+
iconColor: tokens.semantic.color.text.danger600
|
|
52
|
+
},
|
|
53
|
+
attention: {
|
|
54
|
+
backgroundColor: tokens.semantic.color.background.attention0,
|
|
55
|
+
color: tokens.semantic.color.text.attention700,
|
|
56
|
+
borderColor: tokens.semantic.color.border.attention200,
|
|
57
|
+
iconColor: tokens.semantic.color.text.attention600
|
|
58
|
+
},
|
|
59
|
+
upsell: {
|
|
60
|
+
backgroundColor: tokens.semantic.color.background.discovery0,
|
|
61
|
+
color: tokens.semantic.color.text.discovery700,
|
|
62
|
+
borderColor: tokens.semantic.color.border.discovery200,
|
|
63
|
+
iconColor: tokens.semantic.color.text.discovery600
|
|
64
|
+
},
|
|
65
|
+
disabled: {
|
|
66
|
+
backgroundColor: tokens.semantic.color.background.neutral100,
|
|
67
|
+
color: tokens.semantic.color.text.neutral400,
|
|
68
|
+
borderColor: tokens.semantic.color.border.neutral300,
|
|
69
|
+
iconColor: tokens.semantic.color.text.neutral400
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
};
|
|
73
|
+
export default theme;
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { tokens } from '../../tokens';
|
|
2
|
+
const theme = {
|
|
3
|
+
gap: tokens.core.space.space300,
|
|
4
|
+
item: {
|
|
5
|
+
borderRadius: '4px',
|
|
6
|
+
borderWidth: '1px',
|
|
7
|
+
borderStyle: 'solid',
|
|
8
|
+
markerSize: '4px',
|
|
9
|
+
iconSize: '2.8rem',
|
|
10
|
+
states: {
|
|
11
|
+
default: {
|
|
12
|
+
normal: {
|
|
13
|
+
bgColor: tokens.semantic.color.background.secondary0,
|
|
14
|
+
borderColor: tokens.semantic.color.border.secondary400,
|
|
15
|
+
markerColor: 'transparent',
|
|
16
|
+
textColor: tokens.semantic.color.text.secondary950,
|
|
17
|
+
iconColor: tokens.semantic.color.icon.secondary950
|
|
18
|
+
},
|
|
19
|
+
hover: {
|
|
20
|
+
bgColor: tokens.semantic.color.background.secondary0,
|
|
21
|
+
borderColor: tokens.semantic.color.border.primary500,
|
|
22
|
+
markerColor: tokens.semantic.color.border.primary500,
|
|
23
|
+
textColor: tokens.semantic.color.text.secondary950,
|
|
24
|
+
iconColor: tokens.semantic.color.icon.secondary950
|
|
25
|
+
},
|
|
26
|
+
disabled: {
|
|
27
|
+
bgColor: tokens.semantic.color.background.neutral0,
|
|
28
|
+
borderColor: tokens.semantic.color.border.neutral200,
|
|
29
|
+
markerColor: 'transparent',
|
|
30
|
+
textColor: tokens.semantic.color.text.secondary950,
|
|
31
|
+
iconColor: tokens.semantic.color.icon.secondary300,
|
|
32
|
+
opacity: '0.5'
|
|
33
|
+
}
|
|
34
|
+
},
|
|
35
|
+
checked: {
|
|
36
|
+
normal: {
|
|
37
|
+
bgColor: tokens.semantic.color.background.secondary0,
|
|
38
|
+
borderColor: tokens.semantic.color.border.primary400,
|
|
39
|
+
markerColor: tokens.semantic.color.border.primary400,
|
|
40
|
+
textColor: tokens.semantic.color.text.secondary950,
|
|
41
|
+
iconColor: tokens.semantic.color.icon.secondary950
|
|
42
|
+
},
|
|
43
|
+
disabled: {
|
|
44
|
+
bgColor: tokens.semantic.color.background.neutral200,
|
|
45
|
+
borderColor: tokens.semantic.color.border.neutral200,
|
|
46
|
+
markerColor: tokens.semantic.color.border.neutral200,
|
|
47
|
+
textColor: tokens.semantic.color.text.secondary950,
|
|
48
|
+
iconColor: tokens.semantic.color.icon.secondary950,
|
|
49
|
+
opacity: '0.5'
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
},
|
|
54
|
+
defaultItem: {
|
|
55
|
+
gap: '0.4rem'
|
|
56
|
+
}
|
|
57
|
+
};
|
|
58
|
+
export default theme;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { tokens } from '../../tokens';
|
|
2
|
+
const theme = {
|
|
3
|
+
gap: tokens.core.space.space100,
|
|
4
|
+
link: {
|
|
5
|
+
states: {
|
|
6
|
+
normal: {
|
|
7
|
+
textColor: tokens.semantic.color.text.secondary600
|
|
8
|
+
},
|
|
9
|
+
hover: {
|
|
10
|
+
textColor: tokens.semantic.color.text.secondary950
|
|
11
|
+
},
|
|
12
|
+
active: {
|
|
13
|
+
textColor: tokens.semantic.color.text.secondary950
|
|
14
|
+
},
|
|
15
|
+
disabled: {
|
|
16
|
+
textColor: tokens.semantic.color.text.secondary500
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
},
|
|
20
|
+
current: {
|
|
21
|
+
textColor: tokens.semantic.color.text.secondary950,
|
|
22
|
+
fontWeight: tokens.core.font.fontWeight.semiBold
|
|
23
|
+
},
|
|
24
|
+
separator: {
|
|
25
|
+
textColor: tokens.semantic.color.text.secondary600
|
|
26
|
+
}
|
|
27
|
+
};
|
|
28
|
+
export default theme;
|
|
@@ -0,0 +1,202 @@
|
|
|
1
|
+
import { tokens } from '../../tokens';
|
|
2
|
+
const theme = {
|
|
3
|
+
gap: '0.2rem',
|
|
4
|
+
sizes: {
|
|
5
|
+
small: {
|
|
6
|
+
borderRadius: '0.3rem',
|
|
7
|
+
padding: '0.4rem 1rem',
|
|
8
|
+
height: '2.4rem',
|
|
9
|
+
lineHeight: '1.64rem'
|
|
10
|
+
},
|
|
11
|
+
medium: {
|
|
12
|
+
borderRadius: '0.5rem',
|
|
13
|
+
padding: '0.55rem 1.2rem',
|
|
14
|
+
height: '3rem',
|
|
15
|
+
lineHeight: '1.91rem'
|
|
16
|
+
},
|
|
17
|
+
large: {
|
|
18
|
+
borderRadius: '0.5rem',
|
|
19
|
+
padding: '0.8rem 1.6rem',
|
|
20
|
+
height: '3.6rem',
|
|
21
|
+
lineHeight: '1.91rem'
|
|
22
|
+
}
|
|
23
|
+
},
|
|
24
|
+
variants: {
|
|
25
|
+
primary: {
|
|
26
|
+
normal: {
|
|
27
|
+
bgColor: tokens.semantic.color.background.primary400,
|
|
28
|
+
borderColor: tokens.semantic.color.border.primary400,
|
|
29
|
+
textColor: tokens.semantic.color.text.secondary0
|
|
30
|
+
},
|
|
31
|
+
hover: {
|
|
32
|
+
bgColor: tokens.semantic.color.background.primary500,
|
|
33
|
+
borderColor: tokens.semantic.color.border.primary600,
|
|
34
|
+
textColor: tokens.semantic.color.text.secondary0
|
|
35
|
+
},
|
|
36
|
+
active: {
|
|
37
|
+
bgColor: tokens.semantic.color.background.primary600,
|
|
38
|
+
borderColor: tokens.semantic.color.border.primary800,
|
|
39
|
+
textColor: tokens.semantic.color.text.secondary0
|
|
40
|
+
},
|
|
41
|
+
disabled: {
|
|
42
|
+
bgColor: tokens.semantic.color.background.neutral100,
|
|
43
|
+
borderColor: tokens.semantic.color.border.neutral200,
|
|
44
|
+
textColor: tokens.semantic.color.text.neutral400
|
|
45
|
+
}
|
|
46
|
+
},
|
|
47
|
+
destructive: {
|
|
48
|
+
normal: {
|
|
49
|
+
bgColor: tokens.semantic.color.background.danger500,
|
|
50
|
+
borderColor: tokens.semantic.color.border.danger700,
|
|
51
|
+
textColor: tokens.semantic.color.text.secondary0
|
|
52
|
+
},
|
|
53
|
+
hover: {
|
|
54
|
+
bgColor: tokens.semantic.color.background.danger600,
|
|
55
|
+
borderColor: tokens.semantic.color.border.danger700,
|
|
56
|
+
textColor: tokens.semantic.color.text.secondary0
|
|
57
|
+
},
|
|
58
|
+
active: {
|
|
59
|
+
bgColor: tokens.semantic.color.background.danger700,
|
|
60
|
+
borderColor: tokens.semantic.color.border.danger800,
|
|
61
|
+
textColor: tokens.semantic.color.text.secondary0
|
|
62
|
+
},
|
|
63
|
+
disabled: {
|
|
64
|
+
bgColor: tokens.semantic.color.background.neutral100,
|
|
65
|
+
borderColor: tokens.semantic.color.border.neutral200,
|
|
66
|
+
textColor: tokens.semantic.color.text.neutral400
|
|
67
|
+
}
|
|
68
|
+
},
|
|
69
|
+
'secondary-fill': {
|
|
70
|
+
normal: {
|
|
71
|
+
bgColor: tokens.semantic.color.background.secondary100,
|
|
72
|
+
borderColor: tokens.semantic.color.border.secondary300,
|
|
73
|
+
textColor: tokens.semantic.color.text.secondary950
|
|
74
|
+
},
|
|
75
|
+
hover: {
|
|
76
|
+
bgColor: tokens.semantic.color.background.secondary200,
|
|
77
|
+
borderColor: tokens.semantic.color.border.secondary300,
|
|
78
|
+
textColor: tokens.semantic.color.text.secondary950
|
|
79
|
+
},
|
|
80
|
+
active: {
|
|
81
|
+
bgColor: tokens.semantic.color.background.secondary300,
|
|
82
|
+
borderColor: tokens.semantic.color.border.secondary400,
|
|
83
|
+
textColor: tokens.semantic.color.text.secondary950
|
|
84
|
+
},
|
|
85
|
+
disabled: {
|
|
86
|
+
bgColor: tokens.semantic.color.background.neutral100,
|
|
87
|
+
borderColor: tokens.semantic.color.border.neutral200,
|
|
88
|
+
textColor: tokens.semantic.color.text.neutral400
|
|
89
|
+
}
|
|
90
|
+
},
|
|
91
|
+
'secondary-invert': {
|
|
92
|
+
normal: {
|
|
93
|
+
bgColor: tokens.semantic.color.background.primary0,
|
|
94
|
+
borderColor: tokens.semantic.color.border.primary100,
|
|
95
|
+
textColor: tokens.semantic.color.text.primary600
|
|
96
|
+
},
|
|
97
|
+
hover: {
|
|
98
|
+
bgColor: tokens.semantic.color.background.primary50,
|
|
99
|
+
borderColor: tokens.semantic.color.border.primary200,
|
|
100
|
+
textColor: tokens.semantic.color.text.primary600
|
|
101
|
+
},
|
|
102
|
+
active: {
|
|
103
|
+
bgColor: tokens.semantic.color.background.primary100,
|
|
104
|
+
borderColor: tokens.semantic.color.border.primary200,
|
|
105
|
+
textColor: tokens.semantic.color.text.primary600
|
|
106
|
+
},
|
|
107
|
+
disabled: {
|
|
108
|
+
bgColor: tokens.semantic.color.background.neutral100,
|
|
109
|
+
borderColor: tokens.semantic.color.border.neutral200,
|
|
110
|
+
textColor: tokens.semantic.color.text.neutral400
|
|
111
|
+
}
|
|
112
|
+
},
|
|
113
|
+
'secondary-ghost': {
|
|
114
|
+
normal: {
|
|
115
|
+
bgColor: 'transparent',
|
|
116
|
+
borderColor: tokens.semantic.color.border.primary400,
|
|
117
|
+
textColor: tokens.semantic.color.text.primary400
|
|
118
|
+
},
|
|
119
|
+
hover: {
|
|
120
|
+
bgColor: 'transparent',
|
|
121
|
+
borderColor: tokens.semantic.color.border.primary500,
|
|
122
|
+
textColor: tokens.semantic.color.text.primary500
|
|
123
|
+
},
|
|
124
|
+
active: {
|
|
125
|
+
bgColor: 'transparent',
|
|
126
|
+
borderColor: tokens.semantic.color.border.primary600,
|
|
127
|
+
textColor: tokens.semantic.color.text.primary600
|
|
128
|
+
},
|
|
129
|
+
disabled: {
|
|
130
|
+
bgColor: 'transparent',
|
|
131
|
+
borderColor: tokens.semantic.color.border.neutral200,
|
|
132
|
+
textColor: tokens.semantic.color.text.neutral400
|
|
133
|
+
}
|
|
134
|
+
},
|
|
135
|
+
upsell: {
|
|
136
|
+
normal: {
|
|
137
|
+
bgGradient: `linear-gradient(316deg, ${tokens.semantic.color.background.discovery500} 0%, ${tokens.semantic.color.background.discovery400} 78%)`,
|
|
138
|
+
textColor: tokens.semantic.color.text.secondary0,
|
|
139
|
+
borderColor: tokens.semantic.color.border.discovery600
|
|
140
|
+
},
|
|
141
|
+
hover: {
|
|
142
|
+
bgGradient: `linear-gradient(316deg, ${tokens.semantic.color.background.discovery500} 0%, ${tokens.semantic.color.background.discovery500} 78%)`,
|
|
143
|
+
borderColor: tokens.semantic.color.border.discovery600
|
|
144
|
+
},
|
|
145
|
+
active: {
|
|
146
|
+
bgGradient: `linear-gradient(316deg, ${tokens.semantic.color.background.discovery600} 0%, ${tokens.semantic.color.background.discovery600} 78%)`,
|
|
147
|
+
borderColor: tokens.semantic.color.border.discovery700
|
|
148
|
+
},
|
|
149
|
+
disabled: {
|
|
150
|
+
bgGradient: 'unset',
|
|
151
|
+
bgColor: tokens.semantic.color.background.neutral100,
|
|
152
|
+
borderColor: tokens.semantic.color.border.neutral200,
|
|
153
|
+
textColor: tokens.semantic.color.text.neutral400
|
|
154
|
+
}
|
|
155
|
+
},
|
|
156
|
+
'upsell-invert': {
|
|
157
|
+
normal: {
|
|
158
|
+
bgColor: tokens.semantic.color.background.discovery0,
|
|
159
|
+
borderColor: tokens.semantic.color.border.discovery100,
|
|
160
|
+
textColor: tokens.semantic.color.text.discovery700
|
|
161
|
+
},
|
|
162
|
+
hover: {
|
|
163
|
+
bgColor: tokens.semantic.color.background.discovery50,
|
|
164
|
+
borderColor: tokens.semantic.color.border.discovery100,
|
|
165
|
+
textColor: tokens.semantic.color.text.discovery700
|
|
166
|
+
},
|
|
167
|
+
active: {
|
|
168
|
+
bgColor: tokens.semantic.color.background.discovery100,
|
|
169
|
+
borderColor: tokens.semantic.color.border.discovery200,
|
|
170
|
+
textColor: tokens.semantic.color.text.discovery800
|
|
171
|
+
},
|
|
172
|
+
disabled: {
|
|
173
|
+
bgColor: tokens.semantic.color.background.neutral100,
|
|
174
|
+
borderColor: tokens.semantic.color.border.neutral200,
|
|
175
|
+
textColor: tokens.semantic.color.text.neutral400
|
|
176
|
+
}
|
|
177
|
+
},
|
|
178
|
+
'upsell-ghost': {
|
|
179
|
+
normal: {
|
|
180
|
+
bgColor: 'transparent',
|
|
181
|
+
borderColor: tokens.semantic.color.border.discovery400,
|
|
182
|
+
textColor: tokens.semantic.color.text.discovery400
|
|
183
|
+
},
|
|
184
|
+
hover: {
|
|
185
|
+
bgColor: 'transparent',
|
|
186
|
+
borderColor: tokens.semantic.color.border.discovery500,
|
|
187
|
+
textColor: tokens.semantic.color.text.discovery500
|
|
188
|
+
},
|
|
189
|
+
active: {
|
|
190
|
+
bgColor: 'transparent',
|
|
191
|
+
borderColor: tokens.semantic.color.border.discovery600,
|
|
192
|
+
textColor: tokens.semantic.color.text.discovery600
|
|
193
|
+
},
|
|
194
|
+
disabled: {
|
|
195
|
+
bgColor: 'transparent',
|
|
196
|
+
borderColor: tokens.semantic.color.border.neutral200,
|
|
197
|
+
textColor: tokens.semantic.color.text.neutral400
|
|
198
|
+
}
|
|
199
|
+
}
|
|
200
|
+
}
|
|
201
|
+
};
|
|
202
|
+
export default theme;
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { tokens } from '../../tokens';
|
|
2
|
+
const theme = {
|
|
3
|
+
borderRadius: '0.4rem',
|
|
4
|
+
border: `1px solid ${tokens.semantic.color.border.transparent}`,
|
|
5
|
+
fontSize: '1.4rem',
|
|
6
|
+
fontWeight: tokens.core.font.fontWeight.normal,
|
|
7
|
+
fontStyle: 'normal',
|
|
8
|
+
padding: '0.1rem',
|
|
9
|
+
gap: '0.2rem',
|
|
10
|
+
button: {
|
|
11
|
+
padding: `${tokens.core.space.space050} ${tokens.core.space.space200}`,
|
|
12
|
+
gap: tokens.core.space.space050,
|
|
13
|
+
minWidth: '6rem',
|
|
14
|
+
border: 'transparent',
|
|
15
|
+
borderRadius: '0.4rem',
|
|
16
|
+
toggleStates: {
|
|
17
|
+
on: {
|
|
18
|
+
normal: {
|
|
19
|
+
bgColor: tokens.semantic.color.background.primary400,
|
|
20
|
+
textColor: tokens.semantic.color.text.secondary0
|
|
21
|
+
},
|
|
22
|
+
disabled: {
|
|
23
|
+
bgColor: tokens.semantic.color.background.primary100,
|
|
24
|
+
textColor: tokens.semantic.color.text.primary0
|
|
25
|
+
}
|
|
26
|
+
},
|
|
27
|
+
off: {
|
|
28
|
+
normal: {
|
|
29
|
+
bgColor: tokens.semantic.color.background.secondary100,
|
|
30
|
+
textColor: tokens.semantic.color.text.secondary900
|
|
31
|
+
},
|
|
32
|
+
hover: {
|
|
33
|
+
bgColor: tokens.semantic.color.background.secondary300
|
|
34
|
+
},
|
|
35
|
+
active: {
|
|
36
|
+
bgColor: tokens.semantic.color.background.secondary300
|
|
37
|
+
},
|
|
38
|
+
disabled: {
|
|
39
|
+
bgColor: tokens.semantic.color.background.secondary50,
|
|
40
|
+
textColor: tokens.semantic.color.text.secondary300
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
};
|
|
46
|
+
export default theme;
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { tokens } from '../../tokens';
|
|
2
|
+
const theme = {
|
|
3
|
+
width: '100%',
|
|
4
|
+
height: 'fit-content',
|
|
5
|
+
variants: {
|
|
6
|
+
primary: {
|
|
7
|
+
bgColor: tokens.semantic.color.background.secondary0,
|
|
8
|
+
borderColor: tokens.semantic.color.border.secondary200
|
|
9
|
+
},
|
|
10
|
+
secondary: {
|
|
11
|
+
bgColor: tokens.semantic.color.background.secondary100,
|
|
12
|
+
borderColor: tokens.semantic.color.border.secondary300
|
|
13
|
+
},
|
|
14
|
+
informative: {
|
|
15
|
+
bgColor: tokens.semantic.color.background.informative0,
|
|
16
|
+
borderColor: tokens.semantic.color.border.informative100
|
|
17
|
+
},
|
|
18
|
+
success: {
|
|
19
|
+
bgColor: tokens.semantic.color.background.success0,
|
|
20
|
+
borderColor: tokens.semantic.color.border.success100
|
|
21
|
+
},
|
|
22
|
+
notice: {
|
|
23
|
+
bgColor: tokens.semantic.color.background.notice0,
|
|
24
|
+
borderColor: tokens.semantic.color.border.notice100
|
|
25
|
+
},
|
|
26
|
+
attention: {
|
|
27
|
+
bgColor: tokens.semantic.color.background.attention0,
|
|
28
|
+
borderColor: tokens.semantic.color.border.attention100
|
|
29
|
+
},
|
|
30
|
+
danger: {
|
|
31
|
+
bgColor: tokens.semantic.color.background.danger0,
|
|
32
|
+
borderColor: tokens.semantic.color.border.danger100
|
|
33
|
+
},
|
|
34
|
+
upsell: {
|
|
35
|
+
bgColor: tokens.semantic.color.background.discovery0,
|
|
36
|
+
borderColor: tokens.semantic.color.border.discovery100
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
};
|
|
40
|
+
export default theme;
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import { tokens } from '../../tokens';
|
|
2
|
+
const theme = {
|
|
3
|
+
width: '1.8rem',
|
|
4
|
+
height: '1.8rem',
|
|
5
|
+
padding: '0',
|
|
6
|
+
borderRadius: '0.4rem',
|
|
7
|
+
borderWidth: '1px',
|
|
8
|
+
label: {
|
|
9
|
+
padding: '0 0.8rem',
|
|
10
|
+
gap: '0.8rem'
|
|
11
|
+
},
|
|
12
|
+
variants: {
|
|
13
|
+
primary: {
|
|
14
|
+
on: {
|
|
15
|
+
normal: {
|
|
16
|
+
bgColor: tokens.semantic.color.background.primary400,
|
|
17
|
+
iconColor: tokens.semantic.color.icon.secondary0,
|
|
18
|
+
textColor: tokens.semantic.color.text.secondary950
|
|
19
|
+
},
|
|
20
|
+
disabled: {
|
|
21
|
+
bgColor: tokens.semantic.color.background.secondary300,
|
|
22
|
+
iconColor: tokens.semantic.color.icon.secondary0,
|
|
23
|
+
textColor: tokens.semantic.color.text.secondary300
|
|
24
|
+
}
|
|
25
|
+
},
|
|
26
|
+
off: {
|
|
27
|
+
normal: {
|
|
28
|
+
bgColor: tokens.semantic.color.background.secondary0,
|
|
29
|
+
borderColor: tokens.semantic.color.border.secondary600,
|
|
30
|
+
textColor: tokens.semantic.color.text.secondary950
|
|
31
|
+
},
|
|
32
|
+
disabled: {
|
|
33
|
+
bgColor: tokens.semantic.color.background.secondary0,
|
|
34
|
+
borderColor: tokens.semantic.color.border.secondary300,
|
|
35
|
+
textColor: tokens.semantic.color.text.secondary300
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
},
|
|
39
|
+
danger: {
|
|
40
|
+
on: {
|
|
41
|
+
normal: {
|
|
42
|
+
bgColor: tokens.semantic.color.background.danger500,
|
|
43
|
+
iconColor: tokens.semantic.color.icon.secondary0,
|
|
44
|
+
textColor: tokens.semantic.color.text.danger500
|
|
45
|
+
},
|
|
46
|
+
disabled: {
|
|
47
|
+
bgColor: tokens.semantic.color.background.danger100,
|
|
48
|
+
iconColor: tokens.semantic.color.icon.secondary0,
|
|
49
|
+
textColor: tokens.semantic.color.text.danger100
|
|
50
|
+
}
|
|
51
|
+
},
|
|
52
|
+
off: {
|
|
53
|
+
normal: {
|
|
54
|
+
bgColor: tokens.semantic.color.background.secondary0,
|
|
55
|
+
borderColor: tokens.semantic.color.border.danger500,
|
|
56
|
+
textColor: tokens.semantic.color.text.danger500
|
|
57
|
+
},
|
|
58
|
+
disabled: {
|
|
59
|
+
bgColor: tokens.semantic.color.background.secondary0,
|
|
60
|
+
borderColor: tokens.semantic.color.border.danger100,
|
|
61
|
+
textColor: tokens.semantic.color.text.danger100
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
};
|
|
67
|
+
export default theme;
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import { tokens } from '../../tokens';
|
|
2
|
+
const theme = {
|
|
3
|
+
sizes: {
|
|
4
|
+
M: {
|
|
5
|
+
height: '2.8rem',
|
|
6
|
+
padding: '0.4rem 0.6rem',
|
|
7
|
+
borderRadius: '4px',
|
|
8
|
+
gap: '0.5rem'
|
|
9
|
+
},
|
|
10
|
+
S: {
|
|
11
|
+
height: '2.4rem',
|
|
12
|
+
padding: '0.4rem 0.6rem',
|
|
13
|
+
borderRadius: '4px',
|
|
14
|
+
gap: '0.5rem'
|
|
15
|
+
}
|
|
16
|
+
},
|
|
17
|
+
variant: {
|
|
18
|
+
regular: {
|
|
19
|
+
normal: {
|
|
20
|
+
bgColor: tokens.semantic.color.background.secondary200,
|
|
21
|
+
textColor: tokens.semantic.color.text.secondary950
|
|
22
|
+
},
|
|
23
|
+
disabled: {
|
|
24
|
+
bgColor: tokens.semantic.color.background.neutral200,
|
|
25
|
+
textColor: tokens.semantic.color.text.neutral400
|
|
26
|
+
}
|
|
27
|
+
},
|
|
28
|
+
flat: {
|
|
29
|
+
normal: {
|
|
30
|
+
bgColor: tokens.semantic.color.background.secondary200,
|
|
31
|
+
textColor: tokens.semantic.color.text.secondary950
|
|
32
|
+
},
|
|
33
|
+
disabled: {
|
|
34
|
+
bgColor: tokens.semantic.color.background.neutral200,
|
|
35
|
+
textColor: tokens.semantic.color.text.neutral400
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
},
|
|
39
|
+
closeButton: {
|
|
40
|
+
variant: {
|
|
41
|
+
regular: {
|
|
42
|
+
color: tokens.semantic.color.icon.secondary700
|
|
43
|
+
},
|
|
44
|
+
flat: {
|
|
45
|
+
color: tokens.semantic.color.icon.secondary700
|
|
46
|
+
}
|
|
47
|
+
},
|
|
48
|
+
size: {
|
|
49
|
+
M: {
|
|
50
|
+
size: '2rem',
|
|
51
|
+
borderRadius: '100%'
|
|
52
|
+
},
|
|
53
|
+
S: {
|
|
54
|
+
size: '1.6rem',
|
|
55
|
+
borderRadius: '100%'
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
};
|
|
60
|
+
export default theme;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { tokens } from '../../tokens';
|
|
2
|
+
const theme = {
|
|
3
|
+
sizes: {
|
|
4
|
+
M: {
|
|
5
|
+
gap: '0.8rem 5px'
|
|
6
|
+
},
|
|
7
|
+
S: {
|
|
8
|
+
gap: '0.8rem 5px'
|
|
9
|
+
}
|
|
10
|
+
},
|
|
11
|
+
popupList: {
|
|
12
|
+
bgColor: tokens.semantic.color.background.secondary100,
|
|
13
|
+
color: tokens.semantic.color.text.secondary600,
|
|
14
|
+
disabledColor: tokens.semantic.color.text.secondary400,
|
|
15
|
+
minWidth: '18rem',
|
|
16
|
+
maxHeight: '33.2rem',
|
|
17
|
+
gap: '0.4rem',
|
|
18
|
+
padding: '1.2rem 1.6rem'
|
|
19
|
+
}
|
|
20
|
+
};
|
|
21
|
+
export default theme;
|