gd-design-library 0.3.3 → 0.3.5
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 +2 -0
- package/assets/icons/account_circle.js +17 -1
- package/assets/icons/arrow-down.js +15 -1
- package/assets/icons/arrow-forward.js +17 -1
- package/assets/icons/attachment.js +17 -1
- package/assets/icons/check.js +16 -1
- package/assets/icons/chevron-left.js +17 -1
- package/assets/icons/chevron-right.js +17 -1
- package/assets/icons/content-copy.js +17 -1
- package/assets/icons/cross.js +16 -1
- package/assets/icons/delete_outlined.js +17 -1
- package/assets/icons/dot.js +16 -1
- package/assets/icons/edit.js +17 -1
- package/assets/icons/error_outline.js +22 -1
- package/assets/icons/eye.js +17 -1
- package/assets/icons/favorite.js +17 -1
- package/assets/icons/favorite_outlined.js +17 -1
- package/assets/icons/file-copy.js +16 -1
- package/assets/icons/filter.js +17 -1
- package/assets/icons/folder.js +17 -1
- package/assets/icons/folderOpen.js +17 -1
- package/assets/icons/home.js +17 -1
- package/assets/icons/keyboard-arrow-down.js +12 -1
- package/assets/icons/local_shipping.js +17 -1
- package/assets/icons/minus.js +16 -1
- package/assets/icons/mobile_menu_button.js +17 -1
- package/assets/icons/paymentCard.js +17 -1
- package/assets/icons/plus.js +16 -1
- package/assets/icons/portrait.js +17 -1
- package/assets/icons/processing.js +17 -1
- package/assets/icons/ruler.js +17 -1
- package/assets/icons/search.js +17 -1
- package/assets/icons/shopping_bag.js +17 -1
- package/assets/icons/slash.js +17 -1
- package/assets/icons/star.js +16 -1
- package/assets/icons/starOutlined.js +16 -1
- package/assets/icons/thumb-down.js +17 -1
- package/assets/icons/thumb-up.js +17 -1
- package/assets/icons/toast_error.js +20 -1
- package/assets/icons/toast_info.js +16 -1
- package/assets/icons/toast_success.js +20 -1
- package/assets/icons/toast_warning.js +16 -1
- package/assets/icons/upload.js +17 -1
- package/assets/icons/volume-up.js +17 -1
- package/assets/icons/wifiTethering.js +17 -1
- package/assets/svg/checkbox_bg_checked.svg.js +5 -2
- package/assets/svg/checkbox_border.svg.js +5 -2
- package/assets/svg/checkbox_disabled_bg_checked.svg.js +5 -2
- package/assets/svg/radio_bg.svg.js +5 -2
- package/assets/svg/radio_bg_checked.svg.js +5 -2
- package/components/core/Breadcrumbs/Breadcrumbs.js +34 -1
- package/components/core/Breadcrumbs/BreadcrumbsStyled.js +58 -1
- package/components/core/Breadcrumbs/constants.js +4 -1
- package/components/core/Button/Button.js +43 -1
- package/components/core/Button/ButtonStyled.js +53 -1
- package/components/core/Button/constants.js +4 -1
- package/components/core/Dropdown/Dropdown.js +38 -1
- package/components/core/Dropdown/DropdownStyled.js +20 -1
- package/components/core/Dropdown/constants.js +4 -1
- package/components/core/Dropdown/hooks/useDropdown.js +12 -1
- package/components/core/DropdownItem/DropdownItem.js +38 -1
- package/components/core/DropdownItem/DropdownItemStyled.js +17 -1
- package/components/core/DropdownItem/constants.js +4 -1
- package/components/core/Form/Form.js +48 -1
- package/components/core/Form/FormStyled.js +16 -1
- package/components/core/Form/constants.js +4 -1
- package/components/core/Form/utils.js +34 -1
- package/components/core/Icon/Icon.d.ts +1 -1
- package/components/core/Icon/Icon.js +33 -1
- package/components/core/Icon/constants.js +92 -1
- package/components/core/Image/Image.js +39 -1
- package/components/core/Image/ImageStyled.js +53 -1
- package/components/core/Image/constants.js +4 -1
- package/components/core/InlineNotification/InlineNotification.js +38 -1
- package/components/core/InlineNotification/InlineNotificationStyled.js +29 -1
- package/components/core/InlineNotification/constants.js +21 -1
- package/components/core/Input/Input.js +72 -1
- package/components/core/Input/InputAdornment/InputAdornment.js +18 -1
- package/components/core/Input/InputAdornment/InputAdornmentStyled.js +15 -1
- package/components/core/Input/InputAdornment/constants.js +4 -1
- package/components/core/Input/InputHelper/InputHelper.js +22 -1
- package/components/core/Input/InputHelper/InputHelperStyled.js +17 -1
- package/components/core/Input/InputHelper/constants.js +4 -1
- package/components/core/Input/InputStyled.js +18 -1
- package/components/core/Input/InputWrapper/InputWrapper.js +22 -1
- package/components/core/Input/InputWrapper/InputWrapperStyled.js +21 -1
- package/components/core/Input/InputWrapper/constants.js +5 -1
- package/components/core/Input/constants.js +18 -1
- package/components/core/Input/useInputHandlers.js +31 -1
- package/components/core/InputFile/InputFile.js +40 -1
- package/components/core/InputFile/InputFileStyled.js +27 -1
- package/components/core/InputFile/constants.js +6 -1
- package/components/core/Label/Label.js +27 -1
- package/components/core/Label/LabelStyled.js +17 -1
- package/components/core/Label/constants.js +4 -1
- package/components/core/Link/Link.js +43 -1
- package/components/core/Link/LinkStyled.js +22 -1
- package/components/core/Link/constants.js +4 -1
- package/components/core/List/List.js +45 -1
- package/components/core/List/ListStyled.js +31 -1
- package/components/core/List/constants.js +4 -1
- package/components/core/Loader/Loader.js +28 -1
- package/components/core/Loader/LoaderStyled.js +41 -1
- package/components/core/Loader/constants.js +6 -1
- package/components/core/Loader/utils.js +37 -1
- package/components/core/Menu/Menu.js +100 -1
- package/components/core/Menu/MenuStyled.js +31 -1
- package/components/core/Menu/constants.js +24 -1
- package/components/core/Modal/Modal.js +47 -1
- package/components/core/Modal/ModalStyled.js +76 -1
- package/components/core/Modal/constants.js +4 -1
- package/components/core/Portal/Portal.d.ts +1 -2
- package/components/core/Portal/Portal.js +19 -1
- package/components/core/Portal/index.d.ts +1 -1
- package/components/core/Scroll/Scroll.js +40 -1
- package/components/core/Scroll/ScrollBar.js +68 -1
- package/components/core/Scroll/ScrollStyled.js +56 -1
- package/components/core/Scroll/constants.js +6 -1
- package/components/core/Scroll/utils.js +41 -1
- package/components/core/Select/Select.js +145 -1
- package/components/core/Select/SelectStyled.js +70 -1
- package/components/core/Select/constants.js +5 -1
- package/components/core/Select/hooks/useSelectContext.js +12 -1
- package/components/core/Separator/Separator.js +36 -1
- package/components/core/Separator/SeparatorStyled.js +61 -1
- package/components/core/Separator/constants.js +4 -1
- package/components/core/Skeleton/Skeleton.js +24 -1
- package/components/core/Skeleton/SkeletonStyled.js +28 -1
- package/components/core/Skeleton/constants.js +6 -1
- package/components/core/Slider/Slider.js +35 -1
- package/components/core/Slider/SliderStyled.js +20 -1
- package/components/core/Slider/constants.js +6 -1
- package/components/core/Snackbar/Snackbar.js +46 -1
- package/components/core/Snackbar/SnackbarManager.js +48 -1
- package/components/core/Snackbar/SnackbarStyled.js +109 -5
- package/components/core/Snackbar/constants.js +10 -1
- package/components/core/Switch/Switch.js +36 -1
- package/components/core/Switch/SwitchStyled.js +56 -1
- package/components/core/Switch/constants.js +4 -1
- package/components/core/Textarea/Textarea.js +41 -1
- package/components/core/Textarea/Textarea.types.d.ts +1 -3
- package/components/core/Textarea/Textarea.types.js +6 -1
- package/components/core/Textarea/TextareaStyled.js +29 -1
- package/components/core/Textarea/constants.js +4 -1
- package/components/core/Textarea/hooks/useDynamicHeightAdjustment.js +8 -1
- package/components/core/Textarea/hooks/useResizeObserver.js +24 -1
- package/components/core/Toggle/Toggle.js +37 -1
- package/components/core/Toggle/ToggleStyled.js +18 -1
- package/components/core/Toggle/constants.js +4 -1
- package/components/core/Tooltip/Tooltip.js +40 -1
- package/components/core/Tooltip/Tooltip.types.js +4 -1
- package/components/core/Tooltip/TooltipStyled.js +23 -1
- package/components/core/Tooltip/constants.js +6 -1
- package/components/core/Tooltip/utils.js +64 -1
- package/components/core/Typography/Typography.js +26 -1
- package/components/core/Typography/TypographyStyled.js +32 -1
- package/components/core/Typography/constants.js +4 -1
- package/components/core/Wrapper/Wrapper.js +20 -1
- package/components/core/Wrapper/WrapperStyled.js +23 -1
- package/components/core/Wrapper/constants.js +4 -1
- package/components/core/index.d.ts +1 -1
- package/components/core/types/roles.types.js +4 -1
- package/components/domainSpecific/Accordion/Accordion.js +35 -1
- package/components/domainSpecific/Accordion/AccordionContent/AccordionContent.js +21 -1
- package/components/domainSpecific/Accordion/AccordionHeader/AccordionHeader.js +29 -1
- package/components/domainSpecific/Accordion/AccordionItem/AccordionItem.js +26 -1
- package/components/domainSpecific/Accordion/AccordionStyled.js +39 -1
- package/components/domainSpecific/Accordion/constants.js +7 -1
- package/components/domainSpecific/Accordion/hooks/useAccordion.js +12 -1
- package/components/domainSpecific/Avatar/Avatar.js +44 -1
- package/components/domainSpecific/Avatar/AvatarStyled.js +63 -1
- package/components/domainSpecific/Avatar/constants.js +6 -1
- package/components/domainSpecific/Card/Card.js +47 -1
- package/components/domainSpecific/Card/CardButton/CardButton.js +25 -1
- package/components/domainSpecific/Card/CardButton/CardButtonStyled.js +18 -1
- package/components/domainSpecific/Card/CardButton/constants.js +4 -1
- package/components/domainSpecific/Card/CardCounter/CardCounter.js +26 -1
- package/components/domainSpecific/Card/CardCounter/CardCounterStyled.js +17 -1
- package/components/domainSpecific/Card/CardCounter/constants.js +4 -1
- package/components/domainSpecific/Card/CardDescription/CardDescription.js +24 -1
- package/components/domainSpecific/Card/CardDescription/CardDescriptionStyled.js +24 -1
- package/components/domainSpecific/Card/CardDescription/constants.js +10 -1
- package/components/domainSpecific/Card/CardImage/CardImage.js +26 -1
- package/components/domainSpecific/Card/CardImage/CardImageStyled.js +18 -1
- package/components/domainSpecific/Card/CardImage/constants.js +4 -1
- package/components/domainSpecific/Card/CardPrice/CardPrice.js +22 -1
- package/components/domainSpecific/Card/CardPrice/CardPriceStyled.js +18 -1
- package/components/domainSpecific/Card/CardPrice/constants.js +4 -1
- package/components/domainSpecific/Card/CardRating/CardRating.js +30 -1
- package/components/domainSpecific/Card/CardRating/CardRatingStyled.js +18 -1
- package/components/domainSpecific/Card/CardRating/constants.js +6 -1
- package/components/domainSpecific/Card/CardTitle/CardTitle.js +25 -1
- package/components/domainSpecific/Card/CardTitle/CardTitleStyled.js +24 -1
- package/components/domainSpecific/Card/CardTitle/constants.js +10 -1
- package/components/domainSpecific/Card/CartStyled.js +26 -1
- package/components/domainSpecific/Card/constants.js +4 -1
- package/components/domainSpecific/Carousel/Carousel.js +137 -1
- package/components/domainSpecific/Carousel/Carousel.types.js +6 -1
- package/components/domainSpecific/Carousel/CarouselStyled.js +143 -1
- package/components/domainSpecific/Carousel/constants.js +4 -1
- package/components/domainSpecific/ChatBubble/ChatBubble.js +26 -1
- package/components/domainSpecific/ChatBubble/ChatBubbleStyled.js +43 -1
- package/components/domainSpecific/ChatBubble/constants.js +4 -1
- package/components/domainSpecific/ContentCarousel/ContentCarousel.js +69 -1
- package/components/domainSpecific/ContentCarousel/ContentCarouselStyled.js +32 -1
- package/components/domainSpecific/ContentCarousel/constants.js +4 -1
- package/components/domainSpecific/Counter/Counter.js +55 -1
- package/components/domainSpecific/Counter/CounterStyled.js +27 -1
- package/components/domainSpecific/Counter/constants.js +8 -1
- package/components/domainSpecific/DragAndDropFiles/DragAndDropFiles.js +48 -1
- package/components/domainSpecific/DragAndDropFiles/DragAndDropFilesStyled.js +16 -1
- package/components/domainSpecific/DragAndDropFiles/constants.js +4 -1
- package/components/domainSpecific/DragAndDropFiles/hooks/useDragAndDrop/useDragAndDrop.js +49 -1
- package/components/domainSpecific/Header/Header.js +88 -1
- package/components/domainSpecific/Header/HeaderStyled.js +136 -1
- package/components/domainSpecific/Header/constants.js +4 -1
- package/components/domainSpecific/Price/Price.js +23 -1
- package/components/domainSpecific/Price/PriceStyled.js +42 -1
- package/components/domainSpecific/Price/constants.js +4 -1
- package/components/domainSpecific/ProgressBar/ProgressBar.js +29 -1
- package/components/domainSpecific/ProgressBar/ProgressBarStyled.js +70 -1
- package/components/domainSpecific/ProgressBar/constants.js +7 -1
- package/components/domainSpecific/RadioGroup/RadioGroup.js +54 -1
- package/components/domainSpecific/RadioGroup/RadioGroup.types.js +4 -1
- package/components/domainSpecific/RadioGroup/RadioGroupItem/RadioGroupItem.js +37 -1
- package/components/domainSpecific/RadioGroup/RadioGroupStyled.js +130 -1
- package/components/domainSpecific/RadioGroup/constants.js +5 -1
- package/components/domainSpecific/Rating/Rating.js +63 -1
- package/components/domainSpecific/Rating/RatingStyled.js +61 -1
- package/components/domainSpecific/Rating/constants.js +9 -1
- package/components/domainSpecific/Search/Search.js +58 -1
- package/components/domainSpecific/Search/SearchStyled.js +16 -1
- package/components/domainSpecific/Search/constants.js +7 -1
- package/components/domainSpecific/SearchModal/SearchInput/SearchInput.js +26 -1
- package/components/domainSpecific/SearchModal/SearchInput/SearchInputStyled.js +25 -1
- package/components/domainSpecific/SearchModal/SearchInput/constants.js +6 -1
- package/components/domainSpecific/SearchModal/SearchItems/SearchItems.js +48 -1
- package/components/domainSpecific/SearchModal/SearchItems/SearchItemsStyled.js +82 -1
- package/components/domainSpecific/SearchModal/SearchItems/constants.js +10 -1
- package/components/domainSpecific/SearchModal/SearchItems/utils.js +7 -1
- package/components/domainSpecific/SearchModal/SearchLoader/SearchLoader.js +20 -1
- package/components/domainSpecific/SearchModal/SearchLoader/SearchLoaderStyled.js +14 -1
- package/components/domainSpecific/SearchModal/SearchLoader/constants.js +4 -1
- package/components/domainSpecific/SearchModal/SearchModal.js +39 -1
- package/components/domainSpecific/SearchModal/SearchModalStyled.js +29 -1
- package/components/domainSpecific/SearchModal/constants.js +8 -1
- package/components/domainSpecific/Stepper/Stepper.js +42 -1
- package/components/domainSpecific/Stepper/StepperStyled.js +58 -1
- package/components/domainSpecific/Stepper/constants.js +4 -1
- package/components/domainSpecific/Stepper/utils.js +37 -1
- package/components/domainSpecific/Tabs/Tabs.js +40 -1
- package/components/domainSpecific/Tabs/TabsStyled.js +79 -1
- package/components/domainSpecific/Tabs/constants.js +6 -1
- package/components/index.types.js +4 -1
- package/components/layout/ChatContainer/ChatContainer.js +51 -1
- package/components/layout/ChatContainer/ChatContainer.types.d.ts +1 -6
- package/components/layout/ChatContainer/ChatContainerStyled.js +71 -1
- package/components/layout/ChatContainer/constants.js +4 -1
- package/components/layout/Column/Column.js +26 -1
- package/components/layout/Column/ColumnStyled.js +36 -1
- package/components/layout/Column/constants.js +4 -1
- package/components/layout/FlexContainer/FlexContainer.js +25 -1
- package/components/layout/FlexContainer/FlexContainerStyled.js +27 -1
- package/components/layout/FlexContainer/constants.js +4 -1
- package/components/layout/FlexContainer/utils.js +18 -1
- package/components/layout/Row/Row.js +26 -1
- package/components/layout/Row/RowStyled.js +36 -1
- package/components/layout/Row/constants.js +4 -1
- package/components/templates/SkeletonSearch/SkeletonSearch.js +30 -1
- package/components/templates/SkeletonSearch/SkeletonSearchStyled.js +97 -1
- package/components/templates/SkeletonSearch/constants.js +5 -1
- package/components/widget/DragAndDrop/DragAndDrop.js +74 -1
- package/components/widget/DragAndDrop/DragAndDropStyled.js +61 -1
- package/components/widget/DragAndDrop/constants.js +4 -1
- package/components/widget/DragAndDrop/utils/validators.js +17 -1
- package/constants/keyboard.js +10 -1
- package/constants/positioning.js +11 -1
- package/constants/timers.js +5 -1
- package/hooks/useAutoFocus/useAutoFocus.js +11 -1
- package/hooks/useCarousel/useCarousel.js +61 -1
- package/hooks/useClickOutside/useClickOutside.js +15 -1
- package/hooks/useKeyControls/useKeyControls.js +19 -1
- package/hooks/useMediaQuery/useMediaQuery.js +14 -1
- package/hooks/useTheme/useTheme.js +47 -1
- package/hooks/useTheme/useTheme.types.d.ts +1 -1
- package/index.js +351 -1
- package/package.json +17 -2
- package/stories/Introduction/ThemeJsonPreview.d.ts +2 -0
- package/stories/components/TokenViewer/TokenViewer.d.ts +2 -0
- package/stories/components/TokenViewer/TokenViewer.types.d.ts +12 -0
- package/stories/components/TokenViewer/TokenViewerStyled.d.ts +11 -0
- package/stories/components/TokenViewer/index.d.ts +1 -0
- package/tokens/accordion.js +72 -1
- package/tokens/animations.js +63 -1
- package/tokens/avatar.d.ts +22 -15
- package/tokens/avatar.js +153 -1
- package/tokens/borders.js +17 -1
- package/tokens/breadcrumbs.js +37 -1
- package/tokens/button.js +146 -1
- package/tokens/card.js +187 -1
- package/tokens/carousel.js +216 -1
- package/tokens/chat.js +118 -1
- package/tokens/chatbubble.js +56 -1
- package/tokens/colors.js +157 -1
- package/tokens/column.js +9 -1
- package/tokens/constants.js +4 -1
- package/tokens/counter.js +37 -1
- package/tokens/cursors.js +20 -1
- package/tokens/defaultTheme.d.ts +22 -15
- package/tokens/defaultTheme.js +113 -1
- package/tokens/display.js +19 -1
- package/tokens/draganddrop.js +87 -1
- package/tokens/draganddropfiles.js +6 -1
- package/tokens/flexContainer.js +13 -1
- package/tokens/font.js +52 -1
- package/tokens/form.js +6 -1
- package/tokens/header.js +123 -1
- package/tokens/icon.js +32 -1
- package/tokens/image.js +40 -1
- package/tokens/index.d.ts +22 -15
- package/tokens/index.js +142 -1
- package/tokens/inlineNotification.js +75 -1
- package/tokens/input.js +192 -1
- package/tokens/inputfile.js +12 -1
- package/tokens/label.js +9 -1
- package/tokens/link.js +66 -1
- package/tokens/list.js +87 -1
- package/tokens/loader.js +141 -1
- package/tokens/menu.js +19 -1
- package/tokens/modal.js +108 -1
- package/tokens/price.js +32 -1
- package/tokens/progressbar.js +60 -1
- package/tokens/radiogroup.js +103 -2
- package/tokens/radius.js +14 -1
- package/tokens/rating.js +73 -1
- package/tokens/reset.js +4 -1
- package/tokens/row.js +8 -1
- package/tokens/scroll.js +99 -1
- package/tokens/search.js +45 -1
- package/tokens/searchModal.js +159 -1
- package/tokens/select.js +99 -1
- package/tokens/separator.js +63 -1
- package/tokens/shadow.js +24 -1
- package/tokens/skeleton.js +77 -1
- package/tokens/slider.js +45 -1
- package/tokens/snackbar.js +167 -1
- package/tokens/spacing.js +13 -1
- package/tokens/stepper.js +147 -1
- package/tokens/switch.js +76 -1
- package/tokens/tabs.js +108 -1
- package/tokens/textarea.js +45 -1
- package/tokens/toggle.js +19 -1
- package/tokens/tooltip.js +69 -1
- package/tokens/types/index.types.js +4 -1
- package/tokens/typography.js +134 -1
- package/tokens/utils.js +85 -1
- package/tokens/values.js +73 -1
- package/tokens/wrapper.js +34 -1
- package/types/accesability.js +4 -1
- package/types/button.js +7 -1
- package/types/card.js +5 -1
- package/types/chat.js +4 -1
- package/types/common.js +5 -1
- package/types/cursors.js +4 -1
- package/types/input.js +6 -1
- package/types/label.js +4 -1
- package/types/layout.js +4 -1
- package/types/link.js +5 -1
- package/types/list.js +4 -1
- package/types/separator.js +5 -1
- package/types/skeleton.js +4 -1
- package/types/snackbar.js +5 -1
- package/types/stepper.js +5 -1
- package/types/typography.js +6 -1
- package/types/wrapper.js +4 -1
- package/utils/animationFrame.js +17 -1
- package/utils/common.js +4 -1
- package/utils/date.js +11 -1
- package/utils/focus.js +54 -1
- package/utils/helpers.js +42 -1
- package/utils/layout.js +32 -1
- package/utils/math.js +11 -1
- package/utils/setInRange.js +11 -1
- package/utils/uniqueKeys.js +4 -1
- package/components/layout/ChatContainer/ChatContainer.types.js +0 -1
- /package/{gd-design-library.css → assets/styles.css} +0 -0
package/package.json
CHANGED
|
@@ -1,10 +1,25 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "gd-design-library",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.5",
|
|
4
4
|
"license": "MIT",
|
|
5
|
+
"type": "module",
|
|
5
6
|
"main": "./index.js",
|
|
6
7
|
"types": "./index.d.ts",
|
|
7
|
-
"
|
|
8
|
+
"sideEffects": [
|
|
9
|
+
"**/*.css",
|
|
10
|
+
"**/*.scss"
|
|
11
|
+
],
|
|
12
|
+
"exports": {
|
|
13
|
+
".": {
|
|
14
|
+
"import": "./index.js",
|
|
15
|
+
"types": "./index.d.ts"
|
|
16
|
+
},
|
|
17
|
+
"./styles.css": "./assets/styles.css",
|
|
18
|
+
"./*": {
|
|
19
|
+
"import": "./*.js",
|
|
20
|
+
"types": "./*.d.ts"
|
|
21
|
+
}
|
|
22
|
+
},
|
|
8
23
|
"peerDependencies": {
|
|
9
24
|
"@emotion/react": "^11.14.0",
|
|
10
25
|
"@emotion/styled": "^11.14.0",
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export interface TokenViewerProps {
|
|
2
|
+
tokens: Record<string, unknown>;
|
|
3
|
+
path?: string;
|
|
4
|
+
indent?: number;
|
|
5
|
+
tokensDescription?: Record<string, unknown>;
|
|
6
|
+
}
|
|
7
|
+
export interface JsonNodeProps {
|
|
8
|
+
indent: number;
|
|
9
|
+
value: object | number | string;
|
|
10
|
+
path?: string;
|
|
11
|
+
tokensDescription?: Record<string, unknown>;
|
|
12
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { HTMLAttributes, PropsWithChildren } from 'react';
|
|
2
|
+
interface CommonTokenViewerStyledProps<T = HTMLDivElement> extends PropsWithChildren, HTMLAttributes<T> {
|
|
3
|
+
}
|
|
4
|
+
export declare const TokenViewerStyled: ({ ...rest }: CommonTokenViewerStyledProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
5
|
+
export declare const JsonLineStyled: ({ ...rest }: CommonTokenViewerStyledProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
6
|
+
export declare const JsonNodeStyled: ({ ...rest }: CommonTokenViewerStyledProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
7
|
+
export declare const JsonKeyStyled: ({ ...rest }: CommonTokenViewerStyledProps<HTMLSpanElement>) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
8
|
+
export declare const BraceStyled: ({ ...rest }: CommonTokenViewerStyledProps<HTMLSpanElement>) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
9
|
+
export declare const ValueStyled: ({ ...rest }: CommonTokenViewerStyledProps<HTMLSpanElement>) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
10
|
+
export declare const TooltipStyled: ({ ...rest }: CommonTokenViewerStyledProps<HTMLSpanElement>) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
11
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './TokenViewer';
|
package/tokens/accordion.js
CHANGED
|
@@ -1 +1,72 @@
|
|
|
1
|
-
|
|
1
|
+
import { colors as r } from "./colors.js";
|
|
2
|
+
import { flexAlignItems as e, display as i } from "./display.js";
|
|
3
|
+
import { cursors as d } from "./cursors.js";
|
|
4
|
+
import { spacing as o } from "./spacing.js";
|
|
5
|
+
import { borders as a } from "./borders.js";
|
|
6
|
+
import { values as n } from "./values.js";
|
|
7
|
+
import { get as t } from "../utils/helpers.js";
|
|
8
|
+
import { TextAlign as m } from "../types/typography.js";
|
|
9
|
+
const x = {
|
|
10
|
+
header: {
|
|
11
|
+
default: {
|
|
12
|
+
width: "100%",
|
|
13
|
+
textAlign: m.Left,
|
|
14
|
+
cursor: d.pointer,
|
|
15
|
+
border: a.none,
|
|
16
|
+
backgroundColor: r.transparent,
|
|
17
|
+
paddingTop: o.md,
|
|
18
|
+
paddingBottom: o.md,
|
|
19
|
+
display: i.flex,
|
|
20
|
+
alignItems: e.center,
|
|
21
|
+
":first-child": {
|
|
22
|
+
flex: "1"
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
},
|
|
26
|
+
content: {
|
|
27
|
+
default: {
|
|
28
|
+
overflow: "hidden",
|
|
29
|
+
transition: t(n, "transitions.accordion.toggle"),
|
|
30
|
+
height: "auto"
|
|
31
|
+
},
|
|
32
|
+
opened: {
|
|
33
|
+
paddingTop: o.md,
|
|
34
|
+
paddingBottom: o.md
|
|
35
|
+
},
|
|
36
|
+
closed: {
|
|
37
|
+
maxHeight: o.none,
|
|
38
|
+
paddingTop: o.none,
|
|
39
|
+
paddingBottom: o.none
|
|
40
|
+
}
|
|
41
|
+
},
|
|
42
|
+
item: {
|
|
43
|
+
default: {
|
|
44
|
+
position: "relative",
|
|
45
|
+
padding: o.none,
|
|
46
|
+
"&::after": {
|
|
47
|
+
content: '""',
|
|
48
|
+
position: "absolute",
|
|
49
|
+
bottom: o.none,
|
|
50
|
+
left: o.none,
|
|
51
|
+
right: o.none,
|
|
52
|
+
height: "1px",
|
|
53
|
+
width: "100%",
|
|
54
|
+
backgroundColor: t(r, "border.default")
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
},
|
|
58
|
+
icon: {
|
|
59
|
+
default: {
|
|
60
|
+
transition: t(n, "transitions.accordion.icon")
|
|
61
|
+
},
|
|
62
|
+
opened: {
|
|
63
|
+
transform: t(n, "transform.rotateUp")
|
|
64
|
+
},
|
|
65
|
+
closed: {
|
|
66
|
+
transform: t(n, "transform.rotateReset")
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
};
|
|
70
|
+
export {
|
|
71
|
+
x as accordion
|
|
72
|
+
};
|
package/tokens/animations.js
CHANGED
|
@@ -1 +1,63 @@
|
|
|
1
|
-
|
|
1
|
+
const a = {
|
|
2
|
+
spinKeyframes: {
|
|
3
|
+
"0%": {
|
|
4
|
+
transform: "rotate(0deg)"
|
|
5
|
+
},
|
|
6
|
+
"100%": {
|
|
7
|
+
transform: "rotate(360deg)"
|
|
8
|
+
}
|
|
9
|
+
},
|
|
10
|
+
bounceKeyframes: {
|
|
11
|
+
"0%, 80%, 100%": {
|
|
12
|
+
transform: "scale(1) translateY(0)"
|
|
13
|
+
},
|
|
14
|
+
"40%": {
|
|
15
|
+
transform: "scale(1) translateY(-15px)"
|
|
16
|
+
}
|
|
17
|
+
},
|
|
18
|
+
slideIn: {
|
|
19
|
+
"0%": {
|
|
20
|
+
transform: "translateY(100%)",
|
|
21
|
+
opacity: 0
|
|
22
|
+
},
|
|
23
|
+
"100%": {
|
|
24
|
+
transform: "translateY(0)",
|
|
25
|
+
opacity: 1
|
|
26
|
+
}
|
|
27
|
+
},
|
|
28
|
+
slideOut: {
|
|
29
|
+
"0%": {
|
|
30
|
+
transform: "translateY(0)",
|
|
31
|
+
opacity: 1
|
|
32
|
+
},
|
|
33
|
+
"100%": {
|
|
34
|
+
transform: "translateY(100%)",
|
|
35
|
+
opacity: 0
|
|
36
|
+
}
|
|
37
|
+
},
|
|
38
|
+
blinkKeyframes: {
|
|
39
|
+
"0%": {
|
|
40
|
+
opacity: 1
|
|
41
|
+
},
|
|
42
|
+
"50%": {
|
|
43
|
+
opacity: 0.4
|
|
44
|
+
},
|
|
45
|
+
"100%": {
|
|
46
|
+
opacity: 1
|
|
47
|
+
}
|
|
48
|
+
},
|
|
49
|
+
progressIndeterminate: {
|
|
50
|
+
"0%": {
|
|
51
|
+
transform: "translateX(-100%)"
|
|
52
|
+
},
|
|
53
|
+
"50%": {
|
|
54
|
+
transform: "translateX(120%)"
|
|
55
|
+
},
|
|
56
|
+
"100%": {
|
|
57
|
+
transform: "translateX(350%)"
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
};
|
|
61
|
+
export {
|
|
62
|
+
a as animations
|
|
63
|
+
};
|
package/tokens/avatar.d.ts
CHANGED
|
@@ -67,24 +67,31 @@ export declare const avatar: {
|
|
|
67
67
|
};
|
|
68
68
|
fallbackText: {
|
|
69
69
|
default: {
|
|
70
|
-
|
|
71
|
-
|
|
70
|
+
overflow: string;
|
|
71
|
+
textOverflow: string;
|
|
72
|
+
whiteSpace: string;
|
|
72
73
|
};
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
variant: TypographyVariant;
|
|
76
|
-
};
|
|
77
|
-
sm: {
|
|
78
|
-
variant: TypographyVariant;
|
|
79
|
-
};
|
|
80
|
-
md: {
|
|
74
|
+
attrs: {
|
|
75
|
+
default: {
|
|
81
76
|
variant: TypographyVariant;
|
|
77
|
+
align: TextAlign;
|
|
82
78
|
};
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
79
|
+
size: {
|
|
80
|
+
xs: {
|
|
81
|
+
variant: TypographyVariant;
|
|
82
|
+
};
|
|
83
|
+
sm: {
|
|
84
|
+
variant: TypographyVariant;
|
|
85
|
+
};
|
|
86
|
+
md: {
|
|
87
|
+
variant: TypographyVariant;
|
|
88
|
+
};
|
|
89
|
+
lg: {
|
|
90
|
+
variant: TypographyVariant;
|
|
91
|
+
};
|
|
92
|
+
xl: {
|
|
93
|
+
variant: TypographyVariant;
|
|
94
|
+
};
|
|
88
95
|
};
|
|
89
96
|
};
|
|
90
97
|
};
|
package/tokens/avatar.js
CHANGED
|
@@ -1 +1,153 @@
|
|
|
1
|
-
|
|
1
|
+
import { colors as r } from "./colors.js";
|
|
2
|
+
import { borders as i } from "./borders.js";
|
|
3
|
+
import { TypographyVariant as e, TextAlign as h } from "../types/typography.js";
|
|
4
|
+
import { get as o } from "../utils/helpers.js";
|
|
5
|
+
import { SizeVariant as t } from "../types/common.js";
|
|
6
|
+
const n = {
|
|
7
|
+
default: {
|
|
8
|
+
borderRadius: "50%",
|
|
9
|
+
position: "relative",
|
|
10
|
+
// Default size variant (MD)
|
|
11
|
+
width: 42,
|
|
12
|
+
height: 42
|
|
13
|
+
},
|
|
14
|
+
imageWrapper: {
|
|
15
|
+
default: {
|
|
16
|
+
borderRadius: "50%",
|
|
17
|
+
overflow: "hidden",
|
|
18
|
+
height: "100%",
|
|
19
|
+
width: "100%",
|
|
20
|
+
alignContent: "center",
|
|
21
|
+
backgroundColor: o(r, "bg.fill.primary.default")
|
|
22
|
+
}
|
|
23
|
+
},
|
|
24
|
+
badge: {
|
|
25
|
+
default: {
|
|
26
|
+
position: "absolute",
|
|
27
|
+
borderRadius: "50%",
|
|
28
|
+
backgroundColor: o(r, "bg.fill.success.primary.default"),
|
|
29
|
+
// Default size variant (MD)
|
|
30
|
+
width: 16,
|
|
31
|
+
height: 16,
|
|
32
|
+
border: i.generic({
|
|
33
|
+
width: "2.3px",
|
|
34
|
+
color: "white",
|
|
35
|
+
type: "solid"
|
|
36
|
+
}),
|
|
37
|
+
top: -2,
|
|
38
|
+
right: 0
|
|
39
|
+
},
|
|
40
|
+
size: {
|
|
41
|
+
[t.Xs]: {
|
|
42
|
+
width: 8,
|
|
43
|
+
height: 8,
|
|
44
|
+
border: i.generic({
|
|
45
|
+
width: "1px",
|
|
46
|
+
color: "white",
|
|
47
|
+
type: "solid"
|
|
48
|
+
}),
|
|
49
|
+
top: -1,
|
|
50
|
+
right: 0
|
|
51
|
+
},
|
|
52
|
+
[t.Sm]: {
|
|
53
|
+
width: 14,
|
|
54
|
+
height: 14,
|
|
55
|
+
border: i.generic({
|
|
56
|
+
width: "2px",
|
|
57
|
+
color: "white",
|
|
58
|
+
type: "solid"
|
|
59
|
+
}),
|
|
60
|
+
top: -2,
|
|
61
|
+
right: 0
|
|
62
|
+
},
|
|
63
|
+
[t.Md]: {
|
|
64
|
+
width: 16,
|
|
65
|
+
height: 16,
|
|
66
|
+
border: i.generic({
|
|
67
|
+
width: "2.3px",
|
|
68
|
+
color: "white",
|
|
69
|
+
type: "solid"
|
|
70
|
+
}),
|
|
71
|
+
top: -2,
|
|
72
|
+
right: 0
|
|
73
|
+
},
|
|
74
|
+
[t.Lg]: {
|
|
75
|
+
width: 18,
|
|
76
|
+
height: 18,
|
|
77
|
+
border: i.generic({
|
|
78
|
+
width: "2.7px",
|
|
79
|
+
color: "white",
|
|
80
|
+
type: "solid"
|
|
81
|
+
}),
|
|
82
|
+
top: -1,
|
|
83
|
+
right: 0
|
|
84
|
+
},
|
|
85
|
+
[t.Xl]: {
|
|
86
|
+
width: 22,
|
|
87
|
+
height: 22,
|
|
88
|
+
border: i.generic({
|
|
89
|
+
width: "3px",
|
|
90
|
+
color: "white",
|
|
91
|
+
type: "solid"
|
|
92
|
+
}),
|
|
93
|
+
top: 0,
|
|
94
|
+
right: 0
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
},
|
|
98
|
+
fallbackText: {
|
|
99
|
+
default: {
|
|
100
|
+
overflow: "hidden",
|
|
101
|
+
textOverflow: "ellipsis",
|
|
102
|
+
whiteSpace: "nowrap"
|
|
103
|
+
},
|
|
104
|
+
attrs: {
|
|
105
|
+
default: {
|
|
106
|
+
variant: e.H6,
|
|
107
|
+
align: h.Center
|
|
108
|
+
},
|
|
109
|
+
size: {
|
|
110
|
+
[t.Xs]: {
|
|
111
|
+
variant: e.Caption
|
|
112
|
+
},
|
|
113
|
+
[t.Sm]: {
|
|
114
|
+
variant: e.Body2
|
|
115
|
+
},
|
|
116
|
+
[t.Md]: {
|
|
117
|
+
variant: e.H6
|
|
118
|
+
},
|
|
119
|
+
[t.Lg]: {
|
|
120
|
+
variant: e.H5
|
|
121
|
+
},
|
|
122
|
+
[t.Xl]: {
|
|
123
|
+
variant: e.H4
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
},
|
|
128
|
+
size: {
|
|
129
|
+
[t.Xs]: {
|
|
130
|
+
width: 24,
|
|
131
|
+
height: 24
|
|
132
|
+
},
|
|
133
|
+
[t.Sm]: {
|
|
134
|
+
width: 38,
|
|
135
|
+
height: 38
|
|
136
|
+
},
|
|
137
|
+
[t.Md]: {
|
|
138
|
+
width: 42,
|
|
139
|
+
height: 42
|
|
140
|
+
},
|
|
141
|
+
[t.Lg]: {
|
|
142
|
+
width: 52,
|
|
143
|
+
height: 52
|
|
144
|
+
},
|
|
145
|
+
[t.Xl]: {
|
|
146
|
+
width: 80,
|
|
147
|
+
height: 80
|
|
148
|
+
}
|
|
149
|
+
}
|
|
150
|
+
};
|
|
151
|
+
export {
|
|
152
|
+
n as avatar
|
|
153
|
+
};
|
package/tokens/borders.js
CHANGED
|
@@ -1 +1,17 @@
|
|
|
1
|
-
|
|
1
|
+
import { colors as r } from "./colors.js";
|
|
2
|
+
import { get as c } from "../utils/helpers.js";
|
|
3
|
+
const o = ({
|
|
4
|
+
width: t = "1px",
|
|
5
|
+
color: e = r.transparent,
|
|
6
|
+
type: s = "solid"
|
|
7
|
+
} = {}) => `${t} ${s} ${e}`, i = {
|
|
8
|
+
none: 0,
|
|
9
|
+
generic: o,
|
|
10
|
+
focus: o({
|
|
11
|
+
width: "2px",
|
|
12
|
+
color: c(r, "border.focus")
|
|
13
|
+
})
|
|
14
|
+
};
|
|
15
|
+
export {
|
|
16
|
+
i as borders
|
|
17
|
+
};
|
package/tokens/breadcrumbs.js
CHANGED
|
@@ -1 +1,37 @@
|
|
|
1
|
-
|
|
1
|
+
import { spacing as e } from "./spacing.js";
|
|
2
|
+
import { colors as t } from "./colors.js";
|
|
3
|
+
import { get as a } from "../utils/helpers.js";
|
|
4
|
+
import { SizeVariant as o } from "../types/common.js";
|
|
5
|
+
const r = a(t, "icon.primary.default"), f = {
|
|
6
|
+
default: {
|
|
7
|
+
display: "flex",
|
|
8
|
+
alignItems: "center",
|
|
9
|
+
gap: 10
|
|
10
|
+
},
|
|
11
|
+
bordered: {
|
|
12
|
+
padding: `${e[o.Md]} ${e[o.Lg]}`,
|
|
13
|
+
border: `1px solid ${t.border.default}`
|
|
14
|
+
},
|
|
15
|
+
item: {
|
|
16
|
+
itemStart: {
|
|
17
|
+
default: {
|
|
18
|
+
color: r
|
|
19
|
+
}
|
|
20
|
+
},
|
|
21
|
+
itemEnd: {
|
|
22
|
+
default: {
|
|
23
|
+
color: r
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
},
|
|
27
|
+
separator: {
|
|
28
|
+
default: {
|
|
29
|
+
display: "flex",
|
|
30
|
+
alignItems: "center",
|
|
31
|
+
color: r
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
};
|
|
35
|
+
export {
|
|
36
|
+
f as breadcrumbs
|
|
37
|
+
};
|
package/tokens/button.js
CHANGED
|
@@ -1 +1,146 @@
|
|
|
1
|
-
|
|
1
|
+
import { borders as t } from "./borders.js";
|
|
2
|
+
import { colors as r } from "./colors.js";
|
|
3
|
+
import { spacing as e } from "./spacing.js";
|
|
4
|
+
import { cursors as c } from "./cursors.js";
|
|
5
|
+
import { flexAlignItems as a, display as n } from "./display.js";
|
|
6
|
+
import { values as b } from "./values.js";
|
|
7
|
+
import { getFocusStyles as s } from "./utils.js";
|
|
8
|
+
import { ButtonVariant as l, ButtonColorVariant as d } from "../types/button.js";
|
|
9
|
+
import { get as o } from "../utils/helpers.js";
|
|
10
|
+
import { SizeVariant as i } from "../types/common.js";
|
|
11
|
+
const S = {
|
|
12
|
+
default: {
|
|
13
|
+
border: t.none,
|
|
14
|
+
outline: t.none,
|
|
15
|
+
padding: `${e[i.Sm]} ${e[i.Lg]}`,
|
|
16
|
+
display: n.flex,
|
|
17
|
+
alignItems: a.center,
|
|
18
|
+
gap: e[i.Sm],
|
|
19
|
+
transition: o(b, "transitions.button.default"),
|
|
20
|
+
cursor: c.pointer,
|
|
21
|
+
"&:focus-visible": s({
|
|
22
|
+
inset: "-6px"
|
|
23
|
+
}),
|
|
24
|
+
"&:disabled, &:disabled *": {
|
|
25
|
+
cursor: c.default,
|
|
26
|
+
color: o(r, "text.disabled")
|
|
27
|
+
}
|
|
28
|
+
},
|
|
29
|
+
icon: {
|
|
30
|
+
padding: e[i.Sm],
|
|
31
|
+
"& span": {
|
|
32
|
+
display: n.flex,
|
|
33
|
+
justifyContent: a.center,
|
|
34
|
+
alignItems: a.center
|
|
35
|
+
}
|
|
36
|
+
},
|
|
37
|
+
content: {
|
|
38
|
+
default: {
|
|
39
|
+
display: n.flex,
|
|
40
|
+
alignItems: a.center,
|
|
41
|
+
justifyContent: a.center,
|
|
42
|
+
width: "100%",
|
|
43
|
+
minWidth: "0"
|
|
44
|
+
}
|
|
45
|
+
},
|
|
46
|
+
fullWidth: {
|
|
47
|
+
width: "100%"
|
|
48
|
+
},
|
|
49
|
+
startIcon: {
|
|
50
|
+
default: {}
|
|
51
|
+
},
|
|
52
|
+
endIcon: {
|
|
53
|
+
default: {}
|
|
54
|
+
},
|
|
55
|
+
[l.Contained]: {
|
|
56
|
+
[d.Primary]: {
|
|
57
|
+
background: o(r, "bg.fill.primary.default"),
|
|
58
|
+
color: o(r, "text.active"),
|
|
59
|
+
"&:hover": {
|
|
60
|
+
background: o(r, "bg.fill.primary.hover")
|
|
61
|
+
},
|
|
62
|
+
"&:disabled": {
|
|
63
|
+
background: o(r, "bg.fill.disabled")
|
|
64
|
+
}
|
|
65
|
+
},
|
|
66
|
+
[d.Secondary]: {
|
|
67
|
+
color: o(r, "neutral.white"),
|
|
68
|
+
background: o(r, "bg.fill.error.primary.default"),
|
|
69
|
+
"&:hover": {
|
|
70
|
+
background: o(r, "bg.fill.error.primary.hover")
|
|
71
|
+
},
|
|
72
|
+
"&:disabled": {
|
|
73
|
+
background: o(r, "bg.fill.disabled")
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
},
|
|
77
|
+
[l.Outlined]: {
|
|
78
|
+
[d.Primary]: {
|
|
79
|
+
border: t.generic({
|
|
80
|
+
width: b.borderMedium,
|
|
81
|
+
color: o(r, "border.secondary.default")
|
|
82
|
+
}),
|
|
83
|
+
background: o(r, "bg.fill.secondary.default"),
|
|
84
|
+
color: o(r, "text.active"),
|
|
85
|
+
"&:hover": {
|
|
86
|
+
background: o(r, "bg.fill.secondary.hover")
|
|
87
|
+
},
|
|
88
|
+
"&:disabled": {
|
|
89
|
+
background: o(r, "bg.fill.secondary.default")
|
|
90
|
+
}
|
|
91
|
+
},
|
|
92
|
+
[d.Secondary]: {
|
|
93
|
+
color: o(r, "text.error"),
|
|
94
|
+
background: o(r, "bg.fill.error.secondary.default"),
|
|
95
|
+
"&:hover": {
|
|
96
|
+
background: o(r, "bg.fill.error.secondary.hover")
|
|
97
|
+
},
|
|
98
|
+
"&:disabled": {
|
|
99
|
+
background: o(r, "bg.fill.disabled")
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
},
|
|
103
|
+
[l.Text]: {
|
|
104
|
+
[d.Primary]: {
|
|
105
|
+
padding: e.xs,
|
|
106
|
+
background: o(r, "bg.fill.secondary.default"),
|
|
107
|
+
color: o(r, "text.active"),
|
|
108
|
+
"&:hover": {
|
|
109
|
+
background: o(r, "bg.fill.secondary.hover")
|
|
110
|
+
},
|
|
111
|
+
"&:disabled": {
|
|
112
|
+
background: o(r, "bg.fill.secondary.default")
|
|
113
|
+
}
|
|
114
|
+
},
|
|
115
|
+
[d.Secondary]: {
|
|
116
|
+
padding: e.xs,
|
|
117
|
+
background: o(r, "bg.fill.secondary.default"),
|
|
118
|
+
color: o(r, "text.active"),
|
|
119
|
+
"&:not(:disabled):hover": {
|
|
120
|
+
textDecoration: "underline"
|
|
121
|
+
},
|
|
122
|
+
"&:disabled": {
|
|
123
|
+
background: o(r, "bg.fill.secondary.default")
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
},
|
|
127
|
+
[l.Inherit]: {
|
|
128
|
+
[d.Primary]: {
|
|
129
|
+
backgroundColor: r.bg.fill.primary.default,
|
|
130
|
+
padding: e.xs,
|
|
131
|
+
"&:disabled": {
|
|
132
|
+
background: r.bg.fill.disabled
|
|
133
|
+
}
|
|
134
|
+
},
|
|
135
|
+
[d.Secondary]: {
|
|
136
|
+
padding: e.xs,
|
|
137
|
+
backgroundColor: r.transparent,
|
|
138
|
+
"&:hover": {
|
|
139
|
+
background: r.bg.fill.secondary.hover
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
};
|
|
144
|
+
export {
|
|
145
|
+
S as button
|
|
146
|
+
};
|