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/tokens/slider.js
CHANGED
|
@@ -1 +1,45 @@
|
|
|
1
|
-
|
|
1
|
+
import { colors as r } from "./colors.js";
|
|
2
|
+
import { cursors as e } from "./cursors.js";
|
|
3
|
+
const o = {
|
|
4
|
+
isolation: "isolate",
|
|
5
|
+
appearance: "none",
|
|
6
|
+
backgroundColor: r.bg.fill.secondary.default,
|
|
7
|
+
borderRadius: "50%",
|
|
8
|
+
blockSize: "20px",
|
|
9
|
+
inlineSize: "20px",
|
|
10
|
+
boxSizing: "border-box",
|
|
11
|
+
border: "2px solid currentColor",
|
|
12
|
+
marginTop: "-6px"
|
|
13
|
+
}, a = {
|
|
14
|
+
blockSize: "8px",
|
|
15
|
+
borderRadius: "inherit",
|
|
16
|
+
backgroundRepeat: "no-repeat",
|
|
17
|
+
backgroundColor: r.border.default,
|
|
18
|
+
backgroundImage: "linear-gradient(to right, transparent 0 100%), linear-gradient(to right, currentColor calc(100% * var(--gd-slider-fill-ratio)), transparent calc(100% * var(--gd-slider-fill-ratio)))",
|
|
19
|
+
backgroundPositionX: "calc((0.75rem - 8px) / 2), 0",
|
|
20
|
+
backgroundSize: "calc(100% - 0.75rem), auto"
|
|
21
|
+
}, n = {
|
|
22
|
+
default: {
|
|
23
|
+
position: "relative",
|
|
24
|
+
display: "block",
|
|
25
|
+
inlineSize: "100%",
|
|
26
|
+
color: r.text.title,
|
|
27
|
+
cursor: e.pointer,
|
|
28
|
+
WebkitAppearance: "none",
|
|
29
|
+
appearance: "none",
|
|
30
|
+
padding: "0.4375rem 0",
|
|
31
|
+
backgroundColor: r.transparent,
|
|
32
|
+
outline: "none",
|
|
33
|
+
"&[disabled]": {
|
|
34
|
+
opacity: "50%",
|
|
35
|
+
cursor: e.default
|
|
36
|
+
},
|
|
37
|
+
"&::-webkit-slider-thumb": o,
|
|
38
|
+
"&::-webkit-slider-runnable-track": a,
|
|
39
|
+
"&::-moz-range-thumb": o,
|
|
40
|
+
"&::-moz-range-track": a
|
|
41
|
+
}
|
|
42
|
+
};
|
|
43
|
+
export {
|
|
44
|
+
n as slider
|
|
45
|
+
};
|
package/tokens/snackbar.js
CHANGED
|
@@ -1 +1,167 @@
|
|
|
1
|
-
|
|
1
|
+
import { getSpacing as s } from "./utils.js";
|
|
2
|
+
import { spacing as o } from "./spacing.js";
|
|
3
|
+
import { font as R } from "./font.js";
|
|
4
|
+
import { colors as r } from "./colors.js";
|
|
5
|
+
import { borders as T } from "./borders.js";
|
|
6
|
+
import { cursors as $ } from "./cursors.js";
|
|
7
|
+
import { values as A } from "./values.js";
|
|
8
|
+
import { radius as X } from "./radius.js";
|
|
9
|
+
import { icon as l } from "./icon.js";
|
|
10
|
+
import { shadows as L } from "./shadow.js";
|
|
11
|
+
import { flexAlignItems as t, display as a } from "./display.js";
|
|
12
|
+
import { SnackbarPosition as e } from "../types/snackbar.js";
|
|
13
|
+
import { FlexDirection as i } from "../types/layout.js";
|
|
14
|
+
import { SizeVariant as n } from "../types/common.js";
|
|
15
|
+
import { TypographyVariant as F } from "../types/typography.js";
|
|
16
|
+
const H = "302px";
|
|
17
|
+
var m, c, f, p, g, d, b, u, h, x, k, w, S, C, I, v, y, D, z, B;
|
|
18
|
+
const Q = {
|
|
19
|
+
container: {
|
|
20
|
+
position: "fixed",
|
|
21
|
+
display: a.flex,
|
|
22
|
+
flexDirection: i.Column,
|
|
23
|
+
gap: o[n.Sm],
|
|
24
|
+
padding: o[n.Sm],
|
|
25
|
+
boxSizing: "border-box",
|
|
26
|
+
maxHeight: `calc(100vh - ${o[n.Xs]})`,
|
|
27
|
+
overflowY: "auto",
|
|
28
|
+
overflowX: "hidden",
|
|
29
|
+
scrollbarWidth: "thin",
|
|
30
|
+
scrollbarColor: `${r.transparent} ${r.transparent}`,
|
|
31
|
+
zIndex: A.zIndex.snackbar,
|
|
32
|
+
// to be under modal, could be rewritten by theme
|
|
33
|
+
"&::-webkit-scrollbar": {
|
|
34
|
+
width: o[(m = n) == null ? void 0 : m.Sm],
|
|
35
|
+
background: r.transparent
|
|
36
|
+
},
|
|
37
|
+
"&::-webkit-scrollbar-thumb": {
|
|
38
|
+
background: r.transparent,
|
|
39
|
+
borderRadius: X[(c = n) == null ? void 0 : c.Sm]
|
|
40
|
+
},
|
|
41
|
+
"&::-webkit-scrollbar-track": {
|
|
42
|
+
background: r.transparent
|
|
43
|
+
},
|
|
44
|
+
"&:hover::-webkit-scrollbar-thumb": {
|
|
45
|
+
background: "rgba(0, 0, 0, 0.3)"
|
|
46
|
+
},
|
|
47
|
+
"&.scrolling::-webkit-scrollbar-thumb": {
|
|
48
|
+
background: "rgba(0, 0, 0, 0.3)"
|
|
49
|
+
}
|
|
50
|
+
},
|
|
51
|
+
snackbar: {
|
|
52
|
+
default: {
|
|
53
|
+
position: "relative",
|
|
54
|
+
boxShadow: (f = L.snackbar) == null ? void 0 : f.default,
|
|
55
|
+
width: H,
|
|
56
|
+
fontSize: R.size[(p = F) == null ? void 0 : p.Body1],
|
|
57
|
+
display: a.flex,
|
|
58
|
+
flexDirection: i.Column,
|
|
59
|
+
gap: o.sm,
|
|
60
|
+
color: (g = r.text) == null ? void 0 : g.default,
|
|
61
|
+
padding: `${(d = o) == null ? void 0 : d.sm} ${(b = o) == null ? void 0 : b.md}`
|
|
62
|
+
},
|
|
63
|
+
background: {
|
|
64
|
+
default: (u = r.bg) == null ? void 0 : u.surface,
|
|
65
|
+
variants: {
|
|
66
|
+
success: r.bg.toast.success,
|
|
67
|
+
error: r.bg.toast.error,
|
|
68
|
+
warning: r.bg.toast.warning,
|
|
69
|
+
info: r.bg.toast.info
|
|
70
|
+
}
|
|
71
|
+
},
|
|
72
|
+
animation: {
|
|
73
|
+
duration: "300ms",
|
|
74
|
+
timing: "ease-out"
|
|
75
|
+
}
|
|
76
|
+
},
|
|
77
|
+
positions: {
|
|
78
|
+
[(h = e) == null ? void 0 : h.TopLeft]: {
|
|
79
|
+
top: 0,
|
|
80
|
+
left: 0,
|
|
81
|
+
alignItems: t.start
|
|
82
|
+
},
|
|
83
|
+
[(x = e) == null ? void 0 : x.TopCenter]: {
|
|
84
|
+
top: o.none,
|
|
85
|
+
left: "50%",
|
|
86
|
+
transform: "translateX(-50%)",
|
|
87
|
+
alignItems: t.center
|
|
88
|
+
},
|
|
89
|
+
[(k = e) == null ? void 0 : k.TopRight]: {
|
|
90
|
+
top: o.none,
|
|
91
|
+
right: o.none,
|
|
92
|
+
alignItems: t.end
|
|
93
|
+
},
|
|
94
|
+
[(w = e) == null ? void 0 : w.BottomLeft]: {
|
|
95
|
+
bottom: o.none,
|
|
96
|
+
left: o.none,
|
|
97
|
+
alignItems: t.start,
|
|
98
|
+
flexDirection: i.ColumnReverse
|
|
99
|
+
},
|
|
100
|
+
[(S = e) == null ? void 0 : S.BottomCenter]: {
|
|
101
|
+
bottom: o.none,
|
|
102
|
+
left: "50%",
|
|
103
|
+
transform: "translateX(-50%)",
|
|
104
|
+
alignItems: t.center,
|
|
105
|
+
flexDirection: i.ColumnReverse
|
|
106
|
+
},
|
|
107
|
+
[(C = e) == null ? void 0 : C.BottomRight]: {
|
|
108
|
+
bottom: o.none,
|
|
109
|
+
right: o.none,
|
|
110
|
+
alignItems: t.end,
|
|
111
|
+
flexDirection: i.ColumnReverse
|
|
112
|
+
}
|
|
113
|
+
},
|
|
114
|
+
closeButton: {
|
|
115
|
+
position: "absolute",
|
|
116
|
+
top: o.sm,
|
|
117
|
+
right: o.md,
|
|
118
|
+
background: r.transparent,
|
|
119
|
+
border: T.none,
|
|
120
|
+
cursor: $.pointer,
|
|
121
|
+
padding: 3,
|
|
122
|
+
width: (y = (v = (I = l) == null ? void 0 : I.size) == null ? void 0 : v[n.Sm]) == null ? void 0 : y.width,
|
|
123
|
+
height: (B = (z = (D = l) == null ? void 0 : D.size) == null ? void 0 : z[n.Sm]) == null ? void 0 : B.height
|
|
124
|
+
},
|
|
125
|
+
icons: {
|
|
126
|
+
close: {
|
|
127
|
+
name: "cross",
|
|
128
|
+
width: "100%",
|
|
129
|
+
height: "100%"
|
|
130
|
+
},
|
|
131
|
+
success: {
|
|
132
|
+
name: "success",
|
|
133
|
+
fill: r.icon.success
|
|
134
|
+
},
|
|
135
|
+
error: {
|
|
136
|
+
name: "error",
|
|
137
|
+
fill: r.icon.error
|
|
138
|
+
},
|
|
139
|
+
warning: {
|
|
140
|
+
name: "warning",
|
|
141
|
+
fill: r.icon.warning
|
|
142
|
+
},
|
|
143
|
+
info: {
|
|
144
|
+
name: "info",
|
|
145
|
+
fill: r.icon.info
|
|
146
|
+
}
|
|
147
|
+
},
|
|
148
|
+
snackbarBody: {
|
|
149
|
+
display: a.flex,
|
|
150
|
+
alignItems: t.start,
|
|
151
|
+
gap: o.sm
|
|
152
|
+
},
|
|
153
|
+
snackbarContent: {
|
|
154
|
+
display: a.flex,
|
|
155
|
+
flexDirection: i.Column,
|
|
156
|
+
alignItems: t.start,
|
|
157
|
+
gap: s(1),
|
|
158
|
+
flex: 1
|
|
159
|
+
},
|
|
160
|
+
actionsContainer: {
|
|
161
|
+
paddingTop: s(1)
|
|
162
|
+
}
|
|
163
|
+
};
|
|
164
|
+
export {
|
|
165
|
+
H as DEFAULT_SNACKBAR_WIDTH,
|
|
166
|
+
Q as snackbar
|
|
167
|
+
};
|
package/tokens/spacing.js
CHANGED
|
@@ -1 +1,13 @@
|
|
|
1
|
-
|
|
1
|
+
import { SizeVariant as p } from "../types/common.js";
|
|
2
|
+
const n = {
|
|
3
|
+
none: 0,
|
|
4
|
+
[p.Xs]: "4px",
|
|
5
|
+
[p.Sm]: "8px",
|
|
6
|
+
[p.Md]: "16px",
|
|
7
|
+
[p.Lg]: "24px",
|
|
8
|
+
[p.Xl]: "32px",
|
|
9
|
+
[p.Xxl]: "40px"
|
|
10
|
+
};
|
|
11
|
+
export {
|
|
12
|
+
n as spacing
|
|
13
|
+
};
|
package/tokens/stepper.js
CHANGED
|
@@ -1 +1,147 @@
|
|
|
1
|
-
|
|
1
|
+
import { icon as a } from "./icon.js";
|
|
2
|
+
import { colors as e } from "./colors.js";
|
|
3
|
+
import { borders as c } from "./borders.js";
|
|
4
|
+
import { radius as u } from "./radius.js";
|
|
5
|
+
import { values as l } from "./values.js";
|
|
6
|
+
import { typography as d } from "./typography.js";
|
|
7
|
+
import { font as b } from "./font.js";
|
|
8
|
+
import { spacing as g } from "./spacing.js";
|
|
9
|
+
import { flexAlignItems as p, display as n } from "./display.js";
|
|
10
|
+
import { StepValidationStatus as t, StepStatus as o } from "../types/stepper.js";
|
|
11
|
+
import { get as r } from "../utils/helpers.js";
|
|
12
|
+
import { Cursors as y } from "../types/cursors.js";
|
|
13
|
+
import { SizeVariant as i } from "../types/common.js";
|
|
14
|
+
import { TypographyVariant as f } from "../types/typography.js";
|
|
15
|
+
const m = a.size[i.Xxl], s = 104, $ = {
|
|
16
|
+
default: {
|
|
17
|
+
display: n.flex,
|
|
18
|
+
flexDirection: "row",
|
|
19
|
+
justifyContent: "space-between",
|
|
20
|
+
width: "100%"
|
|
21
|
+
},
|
|
22
|
+
separator: {
|
|
23
|
+
default: {
|
|
24
|
+
width: "100%",
|
|
25
|
+
position: "relative",
|
|
26
|
+
zIndex: -100,
|
|
27
|
+
top: `${m.height / 2}px`,
|
|
28
|
+
marginLeft: `-${s / 2}px`,
|
|
29
|
+
marginRight: `-${s / 2}px`,
|
|
30
|
+
transition: r(l, "transitions.stepper.separator"),
|
|
31
|
+
borderTop: c.generic({
|
|
32
|
+
color: r(e, "border.default"),
|
|
33
|
+
width: l.borderMedium
|
|
34
|
+
})
|
|
35
|
+
},
|
|
36
|
+
[o.Active]: {},
|
|
37
|
+
[o.Complete]: {
|
|
38
|
+
borderTopColor: r(e, "border.primary.default")
|
|
39
|
+
},
|
|
40
|
+
[o.Inactive]: {}
|
|
41
|
+
},
|
|
42
|
+
step: {
|
|
43
|
+
default: {
|
|
44
|
+
display: n.flex,
|
|
45
|
+
flexDirection: "column",
|
|
46
|
+
alignItems: p.center,
|
|
47
|
+
justifyContent: "space-between",
|
|
48
|
+
minWidth: `${s}px`
|
|
49
|
+
},
|
|
50
|
+
[o.Active]: {},
|
|
51
|
+
[o.Inactive]: {},
|
|
52
|
+
[o.Complete]: {
|
|
53
|
+
cursor: y.Pointer
|
|
54
|
+
}
|
|
55
|
+
},
|
|
56
|
+
stepIcon: {
|
|
57
|
+
default: {
|
|
58
|
+
display: n.flex,
|
|
59
|
+
alignItems: p.center,
|
|
60
|
+
justifyContent: "center",
|
|
61
|
+
borderRadius: u.round,
|
|
62
|
+
border: c.generic({
|
|
63
|
+
width: l.borderMedium
|
|
64
|
+
}),
|
|
65
|
+
fontSize: d[f.H5],
|
|
66
|
+
transition: r(l, "transitions.stepper.stepIcon"),
|
|
67
|
+
colors: r(e, "text.default"),
|
|
68
|
+
...m
|
|
69
|
+
},
|
|
70
|
+
[o.Active]: {
|
|
71
|
+
default: {
|
|
72
|
+
backgroundColor: r(e, "bg.default"),
|
|
73
|
+
borderColor: r(e, "border.primary.default")
|
|
74
|
+
},
|
|
75
|
+
[t.Success]: {},
|
|
76
|
+
[t.Error]: {
|
|
77
|
+
backgroundColor: r(e, "bg.fill.error.primary.default"),
|
|
78
|
+
borderColor: r(e, "bg.fill.error.primary.default")
|
|
79
|
+
}
|
|
80
|
+
},
|
|
81
|
+
[o.Inactive]: {
|
|
82
|
+
default: {
|
|
83
|
+
backgroundColor: r(e, "bg.default")
|
|
84
|
+
},
|
|
85
|
+
[t.Success]: {},
|
|
86
|
+
[t.Error]: {}
|
|
87
|
+
},
|
|
88
|
+
[o.Complete]: {
|
|
89
|
+
default: {
|
|
90
|
+
fontWeight: b.weight.medium,
|
|
91
|
+
backgroundColor: r(e, "bg.fill.primary.default")
|
|
92
|
+
},
|
|
93
|
+
[t.Success]: {},
|
|
94
|
+
[t.Error]: {
|
|
95
|
+
backgroundColor: r(e, "bg.fill.error.secondary.default"),
|
|
96
|
+
borderColor: r(e, "bg.fill.error.secondary.default")
|
|
97
|
+
}
|
|
98
|
+
},
|
|
99
|
+
[t.Success]: {
|
|
100
|
+
default: {},
|
|
101
|
+
[t.Success]: {},
|
|
102
|
+
[t.Error]: {}
|
|
103
|
+
}
|
|
104
|
+
},
|
|
105
|
+
stepLabel: {
|
|
106
|
+
default: {
|
|
107
|
+
marginTop: g[i.Sm],
|
|
108
|
+
fontSize: d[f.Body1],
|
|
109
|
+
colors: r(e, "text.default")
|
|
110
|
+
},
|
|
111
|
+
[o.Active]: {},
|
|
112
|
+
[o.Inactive]: {},
|
|
113
|
+
[o.Complete]: {},
|
|
114
|
+
[t.Error]: {},
|
|
115
|
+
[t.Success]: {}
|
|
116
|
+
},
|
|
117
|
+
icons: {
|
|
118
|
+
active: {
|
|
119
|
+
name: "check",
|
|
120
|
+
fill: r(e, "icon.primary.active"),
|
|
121
|
+
...r(a, ["size", i.Md], {})
|
|
122
|
+
},
|
|
123
|
+
inactive: {
|
|
124
|
+
name: "check",
|
|
125
|
+
fill: r(e, "icon.primary.default"),
|
|
126
|
+
...r(a, ["size", i.Md], {})
|
|
127
|
+
},
|
|
128
|
+
complete: {
|
|
129
|
+
name: "check",
|
|
130
|
+
fill: r(e, "bg.fill.secondary.default"),
|
|
131
|
+
...r(a, ["size", i.Md], {})
|
|
132
|
+
},
|
|
133
|
+
error: {
|
|
134
|
+
name: "cross",
|
|
135
|
+
fill: r(e, "icon.error"),
|
|
136
|
+
...r(a, ["size", i.Sm], {})
|
|
137
|
+
},
|
|
138
|
+
errorActive: {
|
|
139
|
+
name: "cross",
|
|
140
|
+
fill: r(e, "neutral.white"),
|
|
141
|
+
...r(a, ["size", i.Sm], {})
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
};
|
|
145
|
+
export {
|
|
146
|
+
$ as stepper
|
|
147
|
+
};
|
package/tokens/switch.js
CHANGED
|
@@ -1 +1,76 @@
|
|
|
1
|
-
|
|
1
|
+
import { colors as o } from "./colors.js";
|
|
2
|
+
import { display as i } from "./display.js";
|
|
3
|
+
import { cursors as r } from "./cursors.js";
|
|
4
|
+
import { LabelPosition as t } from "../types/label.js";
|
|
5
|
+
import { calculateJustify as e } from "../utils/layout.js";
|
|
6
|
+
const n = {
|
|
7
|
+
default: {
|
|
8
|
+
position: "relative",
|
|
9
|
+
display: i.inlineBlock,
|
|
10
|
+
width: "45px",
|
|
11
|
+
height: "24px",
|
|
12
|
+
flexShrink: 0,
|
|
13
|
+
borderRadius: "20px",
|
|
14
|
+
cursor: r.pointer,
|
|
15
|
+
"&[disabled]": {
|
|
16
|
+
opacity: "50%",
|
|
17
|
+
cursor: r.default
|
|
18
|
+
}
|
|
19
|
+
},
|
|
20
|
+
label: {
|
|
21
|
+
[t.Right]: {
|
|
22
|
+
order: 1
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
wrapper: {
|
|
26
|
+
default: {
|
|
27
|
+
display: i.inlineFlex,
|
|
28
|
+
gap: "0.5rem",
|
|
29
|
+
calculateJustify: e("center")
|
|
30
|
+
},
|
|
31
|
+
disabled: {}
|
|
32
|
+
},
|
|
33
|
+
slider: {
|
|
34
|
+
default: {
|
|
35
|
+
position: "absolute",
|
|
36
|
+
left: 0,
|
|
37
|
+
right: 0,
|
|
38
|
+
top: 0,
|
|
39
|
+
bottom: 0,
|
|
40
|
+
transition: "0.2s",
|
|
41
|
+
backgroundColor: o.bg.fill.disabled,
|
|
42
|
+
borderRadius: "inherit",
|
|
43
|
+
"&::before": {
|
|
44
|
+
position: "absolute",
|
|
45
|
+
content: '""',
|
|
46
|
+
borderRadius: "50%",
|
|
47
|
+
width: "18px",
|
|
48
|
+
height: "18px",
|
|
49
|
+
left: "3px",
|
|
50
|
+
bottom: "3px",
|
|
51
|
+
transition: "0.2s",
|
|
52
|
+
backgroundColor: o.neutral.white
|
|
53
|
+
}
|
|
54
|
+
},
|
|
55
|
+
checked: {
|
|
56
|
+
backgroundColor: o.primary.default,
|
|
57
|
+
"&::before": {
|
|
58
|
+
transform: "translateX(21px)"
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
},
|
|
62
|
+
checkbox: {
|
|
63
|
+
border: 0,
|
|
64
|
+
clip: "rect(0 0 0 0)",
|
|
65
|
+
height: "1px",
|
|
66
|
+
margin: "-1px",
|
|
67
|
+
overflow: "hidden",
|
|
68
|
+
padding: 0,
|
|
69
|
+
position: "absolute",
|
|
70
|
+
whiteSpace: "nowrap",
|
|
71
|
+
width: "1px"
|
|
72
|
+
}
|
|
73
|
+
};
|
|
74
|
+
export {
|
|
75
|
+
n as switchToken
|
|
76
|
+
};
|
package/tokens/tabs.js
CHANGED
|
@@ -1 +1,108 @@
|
|
|
1
|
-
|
|
1
|
+
import { icon as d } from "./icon.js";
|
|
2
|
+
import { font as e } from "./font.js";
|
|
3
|
+
import { colors as r } from "./colors.js";
|
|
4
|
+
import { borders as t } from "./borders.js";
|
|
5
|
+
import { radius as n } from "./radius.js";
|
|
6
|
+
import { values as i } from "./values.js";
|
|
7
|
+
import { get as o } from "../utils/helpers.js";
|
|
8
|
+
import { SizeVariant as l } from "../types/common.js";
|
|
9
|
+
import { TypographyVariant as a } from "../types/typography.js";
|
|
10
|
+
const y = {
|
|
11
|
+
default: {
|
|
12
|
+
display: "flex",
|
|
13
|
+
flexDirection: "column",
|
|
14
|
+
width: "100%"
|
|
15
|
+
},
|
|
16
|
+
header: {
|
|
17
|
+
default: {
|
|
18
|
+
display: "flex",
|
|
19
|
+
flexDirection: "row",
|
|
20
|
+
position: "relative",
|
|
21
|
+
"&::after": {
|
|
22
|
+
content: '""',
|
|
23
|
+
position: "absolute",
|
|
24
|
+
width: "100%",
|
|
25
|
+
bottom: 0,
|
|
26
|
+
zIndex: -100,
|
|
27
|
+
borderBottom: t.generic({
|
|
28
|
+
width: i.borderThin,
|
|
29
|
+
color: o(r, "border.default")
|
|
30
|
+
})
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
},
|
|
34
|
+
label: {
|
|
35
|
+
default: {
|
|
36
|
+
fontWeight: o(e, "weight.medium"),
|
|
37
|
+
fontSize: o(e, ["size", a.Body2]),
|
|
38
|
+
color: o(r, "text.default"),
|
|
39
|
+
transition: "border 0.2s ease-in",
|
|
40
|
+
borderBottom: t.generic({
|
|
41
|
+
width: i.borderMedium,
|
|
42
|
+
color: r.transparent
|
|
43
|
+
}),
|
|
44
|
+
flex: 1,
|
|
45
|
+
"&:hover": {
|
|
46
|
+
".Tabs__noticeCounter": {
|
|
47
|
+
backgroundColor: o(r, "icon.primary.active")
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
},
|
|
51
|
+
active: {
|
|
52
|
+
borderBottomColor: o(r, "border.primary.default")
|
|
53
|
+
},
|
|
54
|
+
disabled: {
|
|
55
|
+
default: {
|
|
56
|
+
"&:hover": {
|
|
57
|
+
".Tabs__noticeCounter": {
|
|
58
|
+
backgroundColor: o(r, "icon.primary.disabled")
|
|
59
|
+
}
|
|
60
|
+
},
|
|
61
|
+
".Tabs__noticeCounter": {
|
|
62
|
+
color: r.neutral.white
|
|
63
|
+
},
|
|
64
|
+
borderBottom: t.generic({
|
|
65
|
+
width: i.borderThin,
|
|
66
|
+
color: o(r, "border.secondary.disabled")
|
|
67
|
+
})
|
|
68
|
+
},
|
|
69
|
+
active: {
|
|
70
|
+
borderBottomWidth: "2px",
|
|
71
|
+
borderBottomColor: o(r, "border.secondary.disabled")
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
},
|
|
75
|
+
panelsWrapper: {
|
|
76
|
+
default: {}
|
|
77
|
+
},
|
|
78
|
+
panel: {
|
|
79
|
+
default: {}
|
|
80
|
+
},
|
|
81
|
+
noticeCounter: {
|
|
82
|
+
default: {
|
|
83
|
+
display: "flex",
|
|
84
|
+
alignItems: "center",
|
|
85
|
+
justifyContent: "center",
|
|
86
|
+
backgroundColor: o(r, "icon.primary.default"),
|
|
87
|
+
color: o(r, "neutral.white"),
|
|
88
|
+
fontWeight: o(e, "weight.normal"),
|
|
89
|
+
fontSize: o(e, ["size", a.Caption]),
|
|
90
|
+
borderRadius: n.round,
|
|
91
|
+
...o(d, ["size", l.Sm], {})
|
|
92
|
+
},
|
|
93
|
+
active: {
|
|
94
|
+
backgroundColor: o(r, "icon.primary.active")
|
|
95
|
+
},
|
|
96
|
+
disabled: {
|
|
97
|
+
backgroundColor: o(r, "icon.primary.disabled")
|
|
98
|
+
}
|
|
99
|
+
},
|
|
100
|
+
tabButton: {
|
|
101
|
+
default: {
|
|
102
|
+
width: "100%"
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
};
|
|
106
|
+
export {
|
|
107
|
+
y as tabs
|
|
108
|
+
};
|
package/tokens/textarea.js
CHANGED
|
@@ -1 +1,45 @@
|
|
|
1
|
-
|
|
1
|
+
const e = {
|
|
2
|
+
default: {},
|
|
3
|
+
outlined: {
|
|
4
|
+
primary: {
|
|
5
|
+
"&:hover": {},
|
|
6
|
+
"&:active": {},
|
|
7
|
+
"&:focus": {},
|
|
8
|
+
"&:disabled": {},
|
|
9
|
+
"&:read-only": {}
|
|
10
|
+
},
|
|
11
|
+
secondary: {
|
|
12
|
+
"&:hover": {},
|
|
13
|
+
"&:active": {},
|
|
14
|
+
"&:focus": {},
|
|
15
|
+
"&:disabled": {},
|
|
16
|
+
"&:read-only": {}
|
|
17
|
+
},
|
|
18
|
+
success: {
|
|
19
|
+
"&:hover": {},
|
|
20
|
+
"&:active": {},
|
|
21
|
+
"&:focus": {},
|
|
22
|
+
"&:disabled": {},
|
|
23
|
+
"&:read-only": {}
|
|
24
|
+
},
|
|
25
|
+
warning: {
|
|
26
|
+
"&:hover": {},
|
|
27
|
+
"&:active": {},
|
|
28
|
+
"&:focus": {},
|
|
29
|
+
"&:disabled": {},
|
|
30
|
+
"&:read-only": {}
|
|
31
|
+
},
|
|
32
|
+
error: {
|
|
33
|
+
"&:hover": {},
|
|
34
|
+
"&:active": {},
|
|
35
|
+
"&:focus": {},
|
|
36
|
+
"&:disabled": {},
|
|
37
|
+
"&:read-only": {}
|
|
38
|
+
}
|
|
39
|
+
},
|
|
40
|
+
contained: {},
|
|
41
|
+
text: {}
|
|
42
|
+
};
|
|
43
|
+
export {
|
|
44
|
+
e as textarea
|
|
45
|
+
};
|
package/tokens/toggle.js
CHANGED
|
@@ -1 +1,19 @@
|
|
|
1
|
-
|
|
1
|
+
import { display as o } from "./display.js";
|
|
2
|
+
import { spacing as r } from "./spacing.js";
|
|
3
|
+
import { colors as i } from "./colors.js";
|
|
4
|
+
import { borders as e } from "./borders.js";
|
|
5
|
+
import { SizeVariant as t } from "../types/common.js";
|
|
6
|
+
const s = {
|
|
7
|
+
default: {
|
|
8
|
+
display: o.inlineFlex,
|
|
9
|
+
position: "relative",
|
|
10
|
+
padding: r[t.Xs],
|
|
11
|
+
border: e.generic({
|
|
12
|
+
color: i.border.default
|
|
13
|
+
})
|
|
14
|
+
},
|
|
15
|
+
disabled: {}
|
|
16
|
+
};
|
|
17
|
+
export {
|
|
18
|
+
s as switchToggle
|
|
19
|
+
};
|