@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,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.secondary800
|
|
22
|
+
},
|
|
23
|
+
disabled: {
|
|
24
|
+
bgColor: tokens.semantic.color.background.secondary200,
|
|
25
|
+
textColor: tokens.semantic.color.text.secondary400
|
|
26
|
+
}
|
|
27
|
+
},
|
|
28
|
+
flat: {
|
|
29
|
+
normal: {
|
|
30
|
+
bgColor: tokens.semantic.color.background.secondary200,
|
|
31
|
+
textColor: tokens.semantic.color.text.secondary400
|
|
32
|
+
},
|
|
33
|
+
disabled: {
|
|
34
|
+
bgColor: tokens.semantic.color.background.secondary200,
|
|
35
|
+
textColor: tokens.semantic.color.text.secondary500
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
},
|
|
39
|
+
closeButton: {
|
|
40
|
+
variant: {
|
|
41
|
+
regular: {
|
|
42
|
+
color: tokens.semantic.color.icon.secondary800
|
|
43
|
+
},
|
|
44
|
+
flat: {
|
|
45
|
+
color: tokens.semantic.color.icon.neutral600
|
|
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
|
+
disabledColor: tokens.semantic.color.text.neutral500,
|
|
13
|
+
color: tokens.semantic.color.text.neutral700,
|
|
14
|
+
bgColor: tokens.semantic.color.background.neutral200,
|
|
15
|
+
minWidth: '18rem',
|
|
16
|
+
maxHeight: '33.2rem',
|
|
17
|
+
gap: '0.4rem',
|
|
18
|
+
padding: '1.2rem 1.6rem'
|
|
19
|
+
}
|
|
20
|
+
};
|
|
21
|
+
export default theme;
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import { tokens } from '../../tokens';
|
|
2
|
+
const theme = {
|
|
3
|
+
fontSize: tokens.core.font.fontSize.s14,
|
|
4
|
+
fontWeight: tokens.core.font.fontWeight.normal,
|
|
5
|
+
fontFamily: tokens.core.font.fontFamily.regular,
|
|
6
|
+
focusOutline: `1px dashed ${tokens.semantic.color.border.primary300}`,
|
|
7
|
+
dayCell: {
|
|
8
|
+
width: '3.6rem',
|
|
9
|
+
height: '2.8rem',
|
|
10
|
+
textColor: tokens.semantic.color.text.primary500,
|
|
11
|
+
hoverColor: tokens.semantic.color.background.primary100,
|
|
12
|
+
padding: '0.1rem 0'
|
|
13
|
+
},
|
|
14
|
+
weekDayCell: {
|
|
15
|
+
textColor: tokens.semantic.color.text.neutral800
|
|
16
|
+
},
|
|
17
|
+
today: {
|
|
18
|
+
border: `1px solid ${tokens.semantic.color.border.primary200}`
|
|
19
|
+
},
|
|
20
|
+
selectedDay: {
|
|
21
|
+
bgColor: tokens.semantic.color.background.primary100,
|
|
22
|
+
textColor: tokens.semantic.color.text.primary500,
|
|
23
|
+
borderRadius: 'unset',
|
|
24
|
+
border: 'none',
|
|
25
|
+
singleDayMarker: {
|
|
26
|
+
bgColor: tokens.semantic.color.background.primary600,
|
|
27
|
+
textColor: tokens.semantic.color.text.neutral100,
|
|
28
|
+
border: 'none',
|
|
29
|
+
borderRadius: '100%'
|
|
30
|
+
},
|
|
31
|
+
startDayMarker: {
|
|
32
|
+
bgColor: tokens.semantic.color.background.primary600,
|
|
33
|
+
textColor: tokens.semantic.color.text.neutral100,
|
|
34
|
+
border: 'none',
|
|
35
|
+
borderRadius: '100% 100% 100% 4px',
|
|
36
|
+
transform: 'rotate(-135deg)'
|
|
37
|
+
},
|
|
38
|
+
endDayMarker: {
|
|
39
|
+
bgColor: tokens.semantic.color.background.primary600,
|
|
40
|
+
textColor: tokens.semantic.color.text.neutral100,
|
|
41
|
+
border: 'none',
|
|
42
|
+
borderRadius: '100% 100% 100% 4px',
|
|
43
|
+
transform: 'rotate(45deg)'
|
|
44
|
+
}
|
|
45
|
+
},
|
|
46
|
+
navArrow: {
|
|
47
|
+
gap: '0.6rem',
|
|
48
|
+
width: 'auto',
|
|
49
|
+
height: 'auto',
|
|
50
|
+
padding: '0',
|
|
51
|
+
iconColor: tokens.semantic.color.icon.neutral800
|
|
52
|
+
},
|
|
53
|
+
navSelect: {
|
|
54
|
+
textColor: tokens.semantic.color.text.neutral800,
|
|
55
|
+
gap: '0.8rem',
|
|
56
|
+
month: {
|
|
57
|
+
width: '10.8rem'
|
|
58
|
+
},
|
|
59
|
+
year: {
|
|
60
|
+
width: '7.5rem'
|
|
61
|
+
}
|
|
62
|
+
},
|
|
63
|
+
weekNumCell: {
|
|
64
|
+
fontSize: '1rem'
|
|
65
|
+
}
|
|
66
|
+
};
|
|
67
|
+
export default theme;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { withOpacity } from '../../../../utils';
|
|
2
|
+
import { tokens } from '../../tokens';
|
|
3
|
+
const theme = {
|
|
4
|
+
shadow: `0 0 0.5px 1px ${tokens.semantic.color.border.neutral400}, -8px 0 16px 0 ${tokens.semantic.color.border.neutral100}`,
|
|
5
|
+
bgColor: tokens.semantic.color.background.neutral200,
|
|
6
|
+
sidePadding: '3.2rem',
|
|
7
|
+
width: '60rem',
|
|
8
|
+
borderRadius: '0.8rem',
|
|
9
|
+
header: {
|
|
10
|
+
blockPadding: '4rem 0',
|
|
11
|
+
closeIconColor: tokens.semantic.color.icon.neutral800,
|
|
12
|
+
textColor: tokens.semantic.color.text.neutral800
|
|
13
|
+
},
|
|
14
|
+
description: {
|
|
15
|
+
blockPadding: '3rem 0',
|
|
16
|
+
textColor: tokens.semantic.color.text.neutral800
|
|
17
|
+
},
|
|
18
|
+
body: {
|
|
19
|
+
blockPadding: '4rem 1.6rem'
|
|
20
|
+
},
|
|
21
|
+
footer: {
|
|
22
|
+
blockPadding: '1.6rem',
|
|
23
|
+
border: `1px solid ${tokens.semantic.color.border.neutral950}`,
|
|
24
|
+
buttonsGap: '1.6rem'
|
|
25
|
+
},
|
|
26
|
+
overlay: { bgColor: withOpacity(tokens.semantic.color.background.neutral200, 0.8) }
|
|
27
|
+
};
|
|
28
|
+
export default theme;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { tokens } from '../../tokens';
|
|
2
|
+
const theme = {
|
|
3
|
+
chipList: {
|
|
4
|
+
padding: '0.8rem 1.6rem',
|
|
5
|
+
border: `1px solid ${tokens.semantic.color.border.neutral400}`
|
|
6
|
+
},
|
|
7
|
+
filtersBar: {
|
|
8
|
+
gap: '1.6rem',
|
|
9
|
+
padding: '0.8rem 1.6rem 0.8rem 0.4rem',
|
|
10
|
+
separator: {
|
|
11
|
+
width: '1px',
|
|
12
|
+
color: tokens.semantic.color.border.neutral400
|
|
13
|
+
},
|
|
14
|
+
trigger: {
|
|
15
|
+
margin: '0.4rem 1.6rem',
|
|
16
|
+
gap: '0.4rem',
|
|
17
|
+
on: {
|
|
18
|
+
color: tokens.semantic.color.text.primary600
|
|
19
|
+
},
|
|
20
|
+
off: {
|
|
21
|
+
color: tokens.semantic.color.text.neutral800
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
filterDropdown: {
|
|
26
|
+
padding: '1rem 0 0.5rem',
|
|
27
|
+
maxHeight: '33.2rem',
|
|
28
|
+
item: {
|
|
29
|
+
padding: '0.5rem 1.5rem'
|
|
30
|
+
},
|
|
31
|
+
searchBar: {
|
|
32
|
+
padding: '0.8rem 1.6rem'
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
};
|
|
36
|
+
export default theme;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { tokens } from '../../tokens';
|
|
2
|
+
const theme = {
|
|
3
|
+
columnGap: '1.6rem',
|
|
4
|
+
group: {
|
|
5
|
+
rowGap: '1rem'
|
|
6
|
+
},
|
|
7
|
+
additionalText: {
|
|
8
|
+
margin: '0.4rem 0 0 0',
|
|
9
|
+
normal: {
|
|
10
|
+
textColor: tokens.semantic.color.text.secondary400
|
|
11
|
+
},
|
|
12
|
+
error: {
|
|
13
|
+
textColor: tokens.semantic.color.text.danger500
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
};
|
|
17
|
+
export default theme;
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { tokens } from '../../tokens';
|
|
2
|
+
const theme = {
|
|
3
|
+
variants: {
|
|
4
|
+
primary: {
|
|
5
|
+
background: tokens.semantic.color.background.primary200,
|
|
6
|
+
text: tokens.semantic.color.text.primary400
|
|
7
|
+
},
|
|
8
|
+
secondary: {
|
|
9
|
+
background: tokens.semantic.color.background.secondary700,
|
|
10
|
+
text: tokens.semantic.color.text.secondary400
|
|
11
|
+
},
|
|
12
|
+
informative: {
|
|
13
|
+
background: tokens.semantic.color.background.informative200,
|
|
14
|
+
text: tokens.semantic.color.text.informative500
|
|
15
|
+
},
|
|
16
|
+
notice: {
|
|
17
|
+
background: tokens.semantic.color.background.notice100,
|
|
18
|
+
text: tokens.semantic.color.text.notice500
|
|
19
|
+
},
|
|
20
|
+
success: {
|
|
21
|
+
background: tokens.semantic.color.background.success100,
|
|
22
|
+
text: tokens.semantic.color.text.success500
|
|
23
|
+
},
|
|
24
|
+
attention: {
|
|
25
|
+
background: tokens.semantic.color.background.attention100,
|
|
26
|
+
text: tokens.semantic.color.text.attention500
|
|
27
|
+
},
|
|
28
|
+
error: {
|
|
29
|
+
background: tokens.semantic.color.background.danger100,
|
|
30
|
+
text: tokens.semantic.color.text.danger500
|
|
31
|
+
},
|
|
32
|
+
upsell: {
|
|
33
|
+
background: tokens.semantic.color.background.discovery900,
|
|
34
|
+
text: tokens.semantic.color.text.discovery400
|
|
35
|
+
},
|
|
36
|
+
neutral: {
|
|
37
|
+
background: tokens.semantic.color.background.neutral400,
|
|
38
|
+
text: tokens.semantic.color.text.neutral700
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
};
|
|
42
|
+
export default theme;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { tokens } from '../../tokens';
|
|
2
|
+
const theme = {
|
|
3
|
+
variants: {
|
|
4
|
+
primary: tokens.semantic.color.icon.neutral800,
|
|
5
|
+
secondary: tokens.semantic.color.icon.neutral700,
|
|
6
|
+
notice: tokens.semantic.color.icon.notice500,
|
|
7
|
+
success: tokens.semantic.color.icon.success500,
|
|
8
|
+
attention: tokens.semantic.color.icon.attention500,
|
|
9
|
+
danger: tokens.semantic.color.icon.danger500,
|
|
10
|
+
upsell: tokens.semantic.color.icon.discovery500,
|
|
11
|
+
informative: tokens.semantic.color.icon.informative500
|
|
12
|
+
}
|
|
13
|
+
};
|
|
14
|
+
export default theme;
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { tokens } from '../../tokens';
|
|
2
|
+
const theme = {
|
|
3
|
+
sizes: {
|
|
4
|
+
XXL: {
|
|
5
|
+
width: '3.2rem',
|
|
6
|
+
height: '3.2rem'
|
|
7
|
+
},
|
|
8
|
+
XL: {
|
|
9
|
+
width: '2.4rem',
|
|
10
|
+
height: '2.4rem'
|
|
11
|
+
},
|
|
12
|
+
L: {
|
|
13
|
+
width: '2rem',
|
|
14
|
+
height: '2rem'
|
|
15
|
+
},
|
|
16
|
+
M: {
|
|
17
|
+
width: '1.6rem',
|
|
18
|
+
height: '1.6rem'
|
|
19
|
+
},
|
|
20
|
+
S: {
|
|
21
|
+
width: '1.2rem',
|
|
22
|
+
height: '1.2rem'
|
|
23
|
+
},
|
|
24
|
+
XS: {
|
|
25
|
+
width: '0.8rem',
|
|
26
|
+
height: '0.8rem'
|
|
27
|
+
}
|
|
28
|
+
},
|
|
29
|
+
states: {
|
|
30
|
+
normal: {
|
|
31
|
+
bgColor: 'transparent',
|
|
32
|
+
textColor: tokens.semantic.color.text.primary600
|
|
33
|
+
},
|
|
34
|
+
hover: {
|
|
35
|
+
bgColor: tokens.semantic.color.background.neutral300
|
|
36
|
+
},
|
|
37
|
+
active: {
|
|
38
|
+
bgColor: tokens.semantic.color.background.neutral400
|
|
39
|
+
},
|
|
40
|
+
disabled: {
|
|
41
|
+
bgColor: 'transparent',
|
|
42
|
+
textColor: tokens.semantic.color.text.neutral500
|
|
43
|
+
}
|
|
44
|
+
},
|
|
45
|
+
borderRadius: '0.4rem'
|
|
46
|
+
};
|
|
47
|
+
export default theme;
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
import { tokens } from '../../tokens';
|
|
2
|
+
const theme = {
|
|
3
|
+
padding: '0 0.8rem 0 1rem',
|
|
4
|
+
height: '3.6rem',
|
|
5
|
+
gap: '0.5rem',
|
|
6
|
+
fontFamily: tokens.core.font.fontFamily.regular,
|
|
7
|
+
fontSize: '1.4rem',
|
|
8
|
+
fontWeight: tokens.core.font.fontWeight.normal,
|
|
9
|
+
resetButton: {
|
|
10
|
+
iconColor: tokens.semantic.color.icon.neutral800
|
|
11
|
+
},
|
|
12
|
+
indicator: {
|
|
13
|
+
errorTooltipTextColor: tokens.semantic.color.text.danger500,
|
|
14
|
+
errorIconColor: tokens.semantic.color.icon.danger500,
|
|
15
|
+
successIconColor: tokens.semantic.color.icon.success500
|
|
16
|
+
},
|
|
17
|
+
placeholder: {
|
|
18
|
+
textColor: tokens.semantic.color.text.neutral600
|
|
19
|
+
},
|
|
20
|
+
loader: {
|
|
21
|
+
size: 'M'
|
|
22
|
+
},
|
|
23
|
+
variants: {
|
|
24
|
+
outline: {
|
|
25
|
+
borderRadius: '0.4rem',
|
|
26
|
+
borderWidth: '1px'
|
|
27
|
+
},
|
|
28
|
+
underline: {
|
|
29
|
+
borderRadius: '0',
|
|
30
|
+
borderWidth: '1px 0'
|
|
31
|
+
}
|
|
32
|
+
},
|
|
33
|
+
states: {
|
|
34
|
+
normal: {
|
|
35
|
+
bgColor: tokens.semantic.color.background.neutral100,
|
|
36
|
+
textColor: tokens.semantic.color.text.neutral800,
|
|
37
|
+
borderColor: tokens.semantic.color.border.neutral600
|
|
38
|
+
},
|
|
39
|
+
focused: {
|
|
40
|
+
borderColor: tokens.semantic.color.border.primary500
|
|
41
|
+
},
|
|
42
|
+
success: {
|
|
43
|
+
borderColor: tokens.semantic.color.border.success500
|
|
44
|
+
},
|
|
45
|
+
error: {
|
|
46
|
+
borderColor: tokens.semantic.color.border.danger500
|
|
47
|
+
},
|
|
48
|
+
disabled: {
|
|
49
|
+
bgColor: tokens.semantic.color.background.neutral200,
|
|
50
|
+
textColor: tokens.semantic.color.text.neutral600,
|
|
51
|
+
borderColor: tokens.semantic.color.border.neutral400
|
|
52
|
+
},
|
|
53
|
+
readonly: {
|
|
54
|
+
bgColor: 'transparent',
|
|
55
|
+
textColor: tokens.semantic.color.text.neutral800,
|
|
56
|
+
borderColor: 'transparent'
|
|
57
|
+
}
|
|
58
|
+
},
|
|
59
|
+
textarea: {
|
|
60
|
+
padding: '0.8rem 1rem',
|
|
61
|
+
statusPadding: '0.8rem 3.7rem 0.8rem 1rem',
|
|
62
|
+
minHeight: '8rem',
|
|
63
|
+
maxHeight: '14rem',
|
|
64
|
+
readonly: {
|
|
65
|
+
minHeight: '3.6rem',
|
|
66
|
+
maxHeight: '8rem'
|
|
67
|
+
},
|
|
68
|
+
indicatorMargin: '0.8rem 0.9rem auto auto'
|
|
69
|
+
},
|
|
70
|
+
search: {
|
|
71
|
+
iconColor: tokens.semantic.color.icon.neutral700,
|
|
72
|
+
resetButton: {
|
|
73
|
+
iconColor: tokens.semantic.color.icon.neutral800
|
|
74
|
+
}
|
|
75
|
+
},
|
|
76
|
+
counter: {
|
|
77
|
+
minWidth: '12rem',
|
|
78
|
+
padding: '0 0.8rem',
|
|
79
|
+
valueLabel: { textColor: tokens.semantic.color.text.neutral700 }
|
|
80
|
+
},
|
|
81
|
+
password: {
|
|
82
|
+
padding: '0 0.5rem 0 1rem'
|
|
83
|
+
},
|
|
84
|
+
additionalText: {
|
|
85
|
+
margin: '0.4rem 0 0 0',
|
|
86
|
+
normal: {
|
|
87
|
+
textColor: tokens.semantic.color.text.neutral600
|
|
88
|
+
},
|
|
89
|
+
error: {
|
|
90
|
+
textColor: tokens.semantic.color.text.danger500
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
};
|
|
94
|
+
export default theme;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { tokens } from '../../tokens';
|
|
2
|
+
const theme = {
|
|
3
|
+
container: {
|
|
4
|
+
borderRadius: '0.8rem',
|
|
5
|
+
backgroundColor: tokens.semantic.color.background.neutral100,
|
|
6
|
+
boxShadow: `0px 0px 0px 1px ${tokens.semantic.color.border.neutral600}`
|
|
7
|
+
},
|
|
8
|
+
headerRow: {
|
|
9
|
+
minHeight: '5.6rem',
|
|
10
|
+
bgColor: tokens.semantic.color.background.neutral100,
|
|
11
|
+
separator: {
|
|
12
|
+
color: tokens.semantic.color.border.neutral400,
|
|
13
|
+
width: '1px'
|
|
14
|
+
}
|
|
15
|
+
},
|
|
16
|
+
headerCell: {
|
|
17
|
+
padding: '1rem 1.2rem',
|
|
18
|
+
color: tokens.semantic.color.text.neutral800,
|
|
19
|
+
separator: {
|
|
20
|
+
color: tokens.semantic.color.border.neutral400,
|
|
21
|
+
width: '1px',
|
|
22
|
+
blockPadding: '1rem'
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
bodyCell: {
|
|
26
|
+
padding: '0.4rem 1.2rem',
|
|
27
|
+
color: tokens.semantic.color.text.neutral700
|
|
28
|
+
}
|
|
29
|
+
};
|
|
30
|
+
export default theme;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { tokens } from '../../tokens';
|
|
2
|
+
const theme = {
|
|
3
|
+
gap: '0.5rem',
|
|
4
|
+
margin: '0 0 0.2rem 0',
|
|
5
|
+
minHeight: '20px',
|
|
6
|
+
state: {
|
|
7
|
+
normal: {
|
|
8
|
+
textColor: tokens.semantic.color.text.neutral800
|
|
9
|
+
},
|
|
10
|
+
readonly: {
|
|
11
|
+
textColor: tokens.semantic.color.text.neutral700
|
|
12
|
+
}
|
|
13
|
+
},
|
|
14
|
+
infoIcon: {
|
|
15
|
+
iconColor: tokens.semantic.color.icon.neutral700
|
|
16
|
+
},
|
|
17
|
+
optional: {
|
|
18
|
+
textColor: tokens.semantic.color.text.neutral600
|
|
19
|
+
},
|
|
20
|
+
required: {
|
|
21
|
+
textColor: tokens.semantic.color.text.danger500
|
|
22
|
+
}
|
|
23
|
+
};
|
|
24
|
+
export default theme;
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { tokens } from '../../tokens';
|
|
2
|
+
const theme = {
|
|
3
|
+
flexGroup: {
|
|
4
|
+
gap: {
|
|
5
|
+
XXS: tokens.core.space.space025,
|
|
6
|
+
XS: tokens.core.space.space050,
|
|
7
|
+
S: tokens.core.space.space100,
|
|
8
|
+
M: tokens.core.space.space150,
|
|
9
|
+
L: tokens.core.space.space200,
|
|
10
|
+
XL: tokens.core.space.space300,
|
|
11
|
+
XXL: tokens.core.space.space400
|
|
12
|
+
}
|
|
13
|
+
},
|
|
14
|
+
flexDivider: {
|
|
15
|
+
color: tokens.semantic.color.background.neutral400,
|
|
16
|
+
size: '1px',
|
|
17
|
+
padding: {
|
|
18
|
+
none: tokens.core.space.space000,
|
|
19
|
+
XXS: tokens.core.space.space025,
|
|
20
|
+
XS: tokens.core.space.space050,
|
|
21
|
+
S: tokens.core.space.space100,
|
|
22
|
+
M: tokens.core.space.space150,
|
|
23
|
+
L: tokens.core.space.space200,
|
|
24
|
+
XL: tokens.core.space.space250,
|
|
25
|
+
XXL: tokens.core.space.space300
|
|
26
|
+
},
|
|
27
|
+
spacing: {
|
|
28
|
+
none: tokens.core.space.space000,
|
|
29
|
+
XXS: tokens.core.space.space025,
|
|
30
|
+
XS: tokens.core.space.space050,
|
|
31
|
+
S: tokens.core.space.space100,
|
|
32
|
+
M: tokens.core.space.space150,
|
|
33
|
+
L: tokens.core.space.space200,
|
|
34
|
+
XL: tokens.core.space.space250,
|
|
35
|
+
XXL: tokens.core.space.space300
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
};
|
|
39
|
+
export default theme;
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
import { tokens } from '../../tokens';
|
|
2
|
+
const theme = {
|
|
3
|
+
variants: {
|
|
4
|
+
block: {
|
|
5
|
+
sizes: {
|
|
6
|
+
regular: {
|
|
7
|
+
fontWeight: tokens.core.font.fontWeight.semiBold,
|
|
8
|
+
padding: '0.4rem 0.6rem',
|
|
9
|
+
borderRadius: '0.4rem',
|
|
10
|
+
minHeight: '2.8rem',
|
|
11
|
+
gap: '0'
|
|
12
|
+
},
|
|
13
|
+
small: {
|
|
14
|
+
fontWeight: tokens.core.font.fontWeight.semiBold,
|
|
15
|
+
padding: '0.2rem 0.4rem',
|
|
16
|
+
borderRadius: '0.4rem',
|
|
17
|
+
minHeight: '2.2rem',
|
|
18
|
+
gap: '0'
|
|
19
|
+
}
|
|
20
|
+
},
|
|
21
|
+
states: {
|
|
22
|
+
normal: {
|
|
23
|
+
bgColor: 'transparent',
|
|
24
|
+
textColor: tokens.semantic.color.text.informative500,
|
|
25
|
+
borderColor: 'transparent'
|
|
26
|
+
},
|
|
27
|
+
hover: {
|
|
28
|
+
bgColor: tokens.semantic.color.background.informative200
|
|
29
|
+
},
|
|
30
|
+
active: {
|
|
31
|
+
bgColor: tokens.semantic.color.background.informative400
|
|
32
|
+
},
|
|
33
|
+
disabled: {
|
|
34
|
+
bgColor: 'transparent',
|
|
35
|
+
textColor: tokens.semantic.color.text.neutral900
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
},
|
|
39
|
+
inline: {
|
|
40
|
+
sizes: {
|
|
41
|
+
regular: {
|
|
42
|
+
fontWeight: tokens.core.font.fontWeight.semiBold,
|
|
43
|
+
padding: '0',
|
|
44
|
+
borderRadius: '0',
|
|
45
|
+
gap: '0'
|
|
46
|
+
},
|
|
47
|
+
small: {
|
|
48
|
+
fontWeight: tokens.core.font.fontWeight.semiBold,
|
|
49
|
+
padding: '0',
|
|
50
|
+
borderRadius: '0',
|
|
51
|
+
gap: '0'
|
|
52
|
+
}
|
|
53
|
+
},
|
|
54
|
+
states: {
|
|
55
|
+
normal: {
|
|
56
|
+
bgColor: 'transparent',
|
|
57
|
+
textColor: tokens.semantic.color.text.informative500
|
|
58
|
+
},
|
|
59
|
+
hover: {
|
|
60
|
+
textColor: tokens.semantic.color.text.informative200
|
|
61
|
+
},
|
|
62
|
+
active: {
|
|
63
|
+
textColor: tokens.semantic.color.text.informative500
|
|
64
|
+
},
|
|
65
|
+
disabled: {
|
|
66
|
+
bgColor: 'transparent',
|
|
67
|
+
textColor: tokens.semantic.color.text.neutral900
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
};
|
|
73
|
+
export default theme;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { tokens } from '../../tokens';
|
|
2
|
+
const theme = {
|
|
3
|
+
sizes: {
|
|
4
|
+
XS: '1.2rem',
|
|
5
|
+
S: '1.6rem',
|
|
6
|
+
M: '2rem',
|
|
7
|
+
L: '3rem',
|
|
8
|
+
XL: '5rem'
|
|
9
|
+
},
|
|
10
|
+
gap: '0.5rem',
|
|
11
|
+
variants: {
|
|
12
|
+
regular: {
|
|
13
|
+
bgColor: tokens.semantic.color.icon.informative200,
|
|
14
|
+
color: tokens.semantic.color.icon.informative600,
|
|
15
|
+
textColor: tokens.semantic.color.icon.neutral700
|
|
16
|
+
},
|
|
17
|
+
pending: {
|
|
18
|
+
bgColor: tokens.semantic.color.icon.attention200,
|
|
19
|
+
color: tokens.semantic.color.icon.attention600,
|
|
20
|
+
textColor: tokens.semantic.color.icon.neutral700
|
|
21
|
+
},
|
|
22
|
+
inverse: {
|
|
23
|
+
bgColor: 'rgba(255, 255, 255, 0.2)', // todo: REPLACE ONCE ADDED TO COLOR PALETTE
|
|
24
|
+
color: tokens.semantic.color.icon.neutral100,
|
|
25
|
+
textColor: tokens.semantic.color.icon.neutral100
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
};
|
|
29
|
+
export default theme;
|