gd-design-library 0.3.4 → 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.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/index.js +351 -1
- package/package.json +17 -2
- 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/colors.js
CHANGED
|
@@ -1 +1,157 @@
|
|
|
1
|
-
|
|
1
|
+
const e = {
|
|
2
|
+
transparent: "transparent",
|
|
3
|
+
primary: {
|
|
4
|
+
default: "#FFB800",
|
|
5
|
+
"default.80": "#F0A800",
|
|
6
|
+
"default.10": "#FFF9E9"
|
|
7
|
+
},
|
|
8
|
+
secondary: {
|
|
9
|
+
default: "#53B7E8",
|
|
10
|
+
"default.80": "#35A0D6",
|
|
11
|
+
"default.10": "#DDFBFD"
|
|
12
|
+
},
|
|
13
|
+
neutral: {
|
|
14
|
+
white: "#FFF",
|
|
15
|
+
black: "#000000",
|
|
16
|
+
"grey.100": "#202020",
|
|
17
|
+
"grey.90": "#646464",
|
|
18
|
+
"grey.80": "#838383",
|
|
19
|
+
"grey.60": "#A5A5A5",
|
|
20
|
+
"grey.40": "#CECECE",
|
|
21
|
+
"grey.30": "#E5E5E5",
|
|
22
|
+
"grey.10": "#F8F7F5"
|
|
23
|
+
},
|
|
24
|
+
status: {
|
|
25
|
+
red: "#D21C1C",
|
|
26
|
+
"red.80": "#BD1919",
|
|
27
|
+
"red.20": "#F7C5C5",
|
|
28
|
+
"red.10": "#FDEDED",
|
|
29
|
+
green: "#34A853",
|
|
30
|
+
"green.80": "#1F843A",
|
|
31
|
+
"green.20": "#C9E6CA",
|
|
32
|
+
"green.10": "#E0F0E4",
|
|
33
|
+
blue: "#0069B4",
|
|
34
|
+
"blue.80": "#00476E",
|
|
35
|
+
"blue.20": "#D1EFFD",
|
|
36
|
+
"blue.10": "#E3F6FF",
|
|
37
|
+
orange: "#FF8700",
|
|
38
|
+
"orange.80": "#F26530",
|
|
39
|
+
"orange.20": "#FFDBB2",
|
|
40
|
+
"orange.10": "#FFE9D0"
|
|
41
|
+
},
|
|
42
|
+
bg: {
|
|
43
|
+
default: "#F8F7F5",
|
|
44
|
+
surface: "#FFF",
|
|
45
|
+
input: {
|
|
46
|
+
default: "#FFFFFF",
|
|
47
|
+
disabled: "#F8F7F5"
|
|
48
|
+
},
|
|
49
|
+
fill: {
|
|
50
|
+
disabled: "#E5E5E5",
|
|
51
|
+
primary: {
|
|
52
|
+
default: "#FFB800",
|
|
53
|
+
hover: "#F0A800"
|
|
54
|
+
},
|
|
55
|
+
secondary: {
|
|
56
|
+
default: "#FFFFFF",
|
|
57
|
+
hover: "#FFF9E9"
|
|
58
|
+
},
|
|
59
|
+
error: {
|
|
60
|
+
primary: {
|
|
61
|
+
default: "#D21C1C",
|
|
62
|
+
hover: "#BD1919"
|
|
63
|
+
},
|
|
64
|
+
secondary: {
|
|
65
|
+
default: "#FDEDED",
|
|
66
|
+
hover: "#F7C5C5"
|
|
67
|
+
}
|
|
68
|
+
},
|
|
69
|
+
success: {
|
|
70
|
+
primary: {
|
|
71
|
+
default: "#34A853",
|
|
72
|
+
hover: "#1F843A"
|
|
73
|
+
},
|
|
74
|
+
secondary: {
|
|
75
|
+
default: "#EFFCF2",
|
|
76
|
+
hover: "#C9E6CA"
|
|
77
|
+
}
|
|
78
|
+
},
|
|
79
|
+
warning: {
|
|
80
|
+
primary: {
|
|
81
|
+
default: "#FF8700",
|
|
82
|
+
hover: "#CD4800"
|
|
83
|
+
},
|
|
84
|
+
secondary: {
|
|
85
|
+
default: "#FFE9D0",
|
|
86
|
+
hover: "#FFDBB2"
|
|
87
|
+
}
|
|
88
|
+
},
|
|
89
|
+
info: {
|
|
90
|
+
primary: {
|
|
91
|
+
default: "#0069B4",
|
|
92
|
+
hover: "#00476E"
|
|
93
|
+
},
|
|
94
|
+
secondary: {
|
|
95
|
+
default: "#E3F6FF",
|
|
96
|
+
hover: "#D1EFFD"
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
},
|
|
100
|
+
toast: {
|
|
101
|
+
success: "#EFFCF2",
|
|
102
|
+
error: "#FDEDED",
|
|
103
|
+
warning: "#FFF8EF",
|
|
104
|
+
info: "#E3F6FF"
|
|
105
|
+
}
|
|
106
|
+
},
|
|
107
|
+
border: {
|
|
108
|
+
primary: {
|
|
109
|
+
default: "#FFB800",
|
|
110
|
+
hover: "#F0A800"
|
|
111
|
+
},
|
|
112
|
+
secondary: {
|
|
113
|
+
default: "#202020",
|
|
114
|
+
disabled: "#838383",
|
|
115
|
+
hover: "#838383"
|
|
116
|
+
},
|
|
117
|
+
error: "#D21C1C",
|
|
118
|
+
success: "#34A853",
|
|
119
|
+
info: "#0069B4",
|
|
120
|
+
warning: "#FF8700",
|
|
121
|
+
default: "#E5E5E5",
|
|
122
|
+
focus: "#0069B4"
|
|
123
|
+
},
|
|
124
|
+
text: {
|
|
125
|
+
default: "#000000",
|
|
126
|
+
active: "#202020",
|
|
127
|
+
disabled: "#646464",
|
|
128
|
+
title: "#000000",
|
|
129
|
+
caption: "#ccc",
|
|
130
|
+
error: "#BD1919",
|
|
131
|
+
success: "#1F843A",
|
|
132
|
+
info: "#00476E",
|
|
133
|
+
link: {
|
|
134
|
+
default: "#53B7E8",
|
|
135
|
+
hover: "#278CBF"
|
|
136
|
+
},
|
|
137
|
+
warning: "#F26530",
|
|
138
|
+
primary: {
|
|
139
|
+
default: "#FFB800",
|
|
140
|
+
hover: "#F0A800"
|
|
141
|
+
}
|
|
142
|
+
},
|
|
143
|
+
icon: {
|
|
144
|
+
primary: {
|
|
145
|
+
default: "#646464",
|
|
146
|
+
active: "#202020",
|
|
147
|
+
disabled: "#838383"
|
|
148
|
+
},
|
|
149
|
+
success: "#34A853",
|
|
150
|
+
info: "#0069B4",
|
|
151
|
+
warning: "#FF8700",
|
|
152
|
+
error: "#D21C1C"
|
|
153
|
+
}
|
|
154
|
+
};
|
|
155
|
+
export {
|
|
156
|
+
e as colors
|
|
157
|
+
};
|
package/tokens/column.js
CHANGED
package/tokens/constants.js
CHANGED
|
@@ -1 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
const i = ["overflow", "border", "minWidth", "width", "maxWidth", "minHeight", "height", "maxHeight", "margin", "marginTop", "marginRight", "marginBottom", "marginLeft", "padding", "paddingTop", "paddingRight", "paddingBottom", "paddingLeft", "position", "flexWrap", "flex", "flexGrow", "flexShrink", "flexBasis", "order", "gap"];
|
|
2
|
+
export {
|
|
3
|
+
i as BOX_STYLE_PROPS
|
|
4
|
+
};
|
package/tokens/counter.js
CHANGED
|
@@ -1 +1,37 @@
|
|
|
1
|
-
|
|
1
|
+
import { getSpacing as i } from "./utils.js";
|
|
2
|
+
import { display as t } from "./display.js";
|
|
3
|
+
import { values as o } from "./values.js";
|
|
4
|
+
import { TextAlign as e } from "../types/typography.js";
|
|
5
|
+
const a = {
|
|
6
|
+
default: {
|
|
7
|
+
display: t.flex,
|
|
8
|
+
width: "140px",
|
|
9
|
+
"& input": {
|
|
10
|
+
width: "100%",
|
|
11
|
+
textAlign: e.Center
|
|
12
|
+
}
|
|
13
|
+
},
|
|
14
|
+
navButton: {
|
|
15
|
+
padding: i(3),
|
|
16
|
+
borderWidth: o.borderThin,
|
|
17
|
+
"&:disabled": {
|
|
18
|
+
opacity: 0.5,
|
|
19
|
+
backgroundColor: "inherit"
|
|
20
|
+
}
|
|
21
|
+
},
|
|
22
|
+
icons: {
|
|
23
|
+
plus: {
|
|
24
|
+
name: "plus",
|
|
25
|
+
width: 14,
|
|
26
|
+
height: 14
|
|
27
|
+
},
|
|
28
|
+
minus: {
|
|
29
|
+
name: "minus",
|
|
30
|
+
width: 14,
|
|
31
|
+
height: 14
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
};
|
|
35
|
+
export {
|
|
36
|
+
a as counter
|
|
37
|
+
};
|
package/tokens/cursors.js
CHANGED
|
@@ -1 +1,20 @@
|
|
|
1
|
-
|
|
1
|
+
const o = {
|
|
2
|
+
default: "default",
|
|
3
|
+
pointer: "pointer",
|
|
4
|
+
text: "text",
|
|
5
|
+
move: "move",
|
|
6
|
+
wait: "wait",
|
|
7
|
+
crosshair: "crosshair",
|
|
8
|
+
notAllowed: "not-allowed",
|
|
9
|
+
grab: "grab",
|
|
10
|
+
grabbing: "grabbing",
|
|
11
|
+
help: "help",
|
|
12
|
+
progress: "progress",
|
|
13
|
+
alias: "alias",
|
|
14
|
+
zoomIn: "zoom-in",
|
|
15
|
+
zoomOut: "zoom-out",
|
|
16
|
+
inherit: "inherit"
|
|
17
|
+
};
|
|
18
|
+
export {
|
|
19
|
+
o as cursors
|
|
20
|
+
};
|
package/tokens/defaultTheme.d.ts
CHANGED
|
@@ -183,24 +183,31 @@ export declare const defaultTheme: {
|
|
|
183
183
|
};
|
|
184
184
|
fallbackText: {
|
|
185
185
|
default: {
|
|
186
|
-
|
|
187
|
-
|
|
186
|
+
overflow: string;
|
|
187
|
+
textOverflow: string;
|
|
188
|
+
whiteSpace: string;
|
|
188
189
|
};
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
variant: import('../types').TypographyVariant;
|
|
192
|
-
};
|
|
193
|
-
sm: {
|
|
194
|
-
variant: import('../types').TypographyVariant;
|
|
195
|
-
};
|
|
196
|
-
md: {
|
|
197
|
-
variant: import('../types').TypographyVariant;
|
|
198
|
-
};
|
|
199
|
-
lg: {
|
|
190
|
+
attrs: {
|
|
191
|
+
default: {
|
|
200
192
|
variant: import('../types').TypographyVariant;
|
|
193
|
+
align: import('../types').TextAlign;
|
|
201
194
|
};
|
|
202
|
-
|
|
203
|
-
|
|
195
|
+
size: {
|
|
196
|
+
xs: {
|
|
197
|
+
variant: import('../types').TypographyVariant;
|
|
198
|
+
};
|
|
199
|
+
sm: {
|
|
200
|
+
variant: import('../types').TypographyVariant;
|
|
201
|
+
};
|
|
202
|
+
md: {
|
|
203
|
+
variant: import('../types').TypographyVariant;
|
|
204
|
+
};
|
|
205
|
+
lg: {
|
|
206
|
+
variant: import('../types').TypographyVariant;
|
|
207
|
+
};
|
|
208
|
+
xl: {
|
|
209
|
+
variant: import('../types').TypographyVariant;
|
|
210
|
+
};
|
|
204
211
|
};
|
|
205
212
|
};
|
|
206
213
|
};
|
package/tokens/defaultTheme.js
CHANGED
|
@@ -1 +1,113 @@
|
|
|
1
|
-
|
|
1
|
+
import { separator as r } from "./separator.js";
|
|
2
|
+
import { draganddrop as o } from "./draganddrop.js";
|
|
3
|
+
import { avatar as m } from "./avatar.js";
|
|
4
|
+
import { chatbubble as t } from "./chatbubble.js";
|
|
5
|
+
import { radiogroup as i } from "./radiogroup.js";
|
|
6
|
+
import { draganddropfiles as p } from "./draganddropfiles.js";
|
|
7
|
+
import { searchModal as f } from "./searchModal.js";
|
|
8
|
+
import { inputfile as e } from "./inputfile.js";
|
|
9
|
+
import { carousel as a } from "./carousel.js";
|
|
10
|
+
import { progressbar as l } from "./progressbar.js";
|
|
11
|
+
import { card as s } from "./card.js";
|
|
12
|
+
import { counter as n } from "./counter.js";
|
|
13
|
+
import { typography as c } from "./typography.js";
|
|
14
|
+
import { button as d } from "./button.js";
|
|
15
|
+
import { input as u } from "./input.js";
|
|
16
|
+
import { label as b } from "./label.js";
|
|
17
|
+
import { link as g } from "./link.js";
|
|
18
|
+
import { form as h } from "./form.js";
|
|
19
|
+
import { wrapper as k } from "./wrapper.js";
|
|
20
|
+
import { loader as w } from "./loader.js";
|
|
21
|
+
import { flexAlignItems as x, display as y } from "./display.js";
|
|
22
|
+
import { cursors as T } from "./cursors.js";
|
|
23
|
+
import { values as v } from "./values.js";
|
|
24
|
+
import { textarea as A } from "./textarea.js";
|
|
25
|
+
import { flexContainer as C } from "./flexContainer.js";
|
|
26
|
+
import { row as I } from "./row.js";
|
|
27
|
+
import { column as M } from "./column.js";
|
|
28
|
+
import { switchToggle as N } from "./toggle.js";
|
|
29
|
+
import { switchToken as j } from "./switch.js";
|
|
30
|
+
import { tooltip as q } from "./tooltip.js";
|
|
31
|
+
import { animations as z } from "./animations.js";
|
|
32
|
+
import { modal as B } from "./modal.js";
|
|
33
|
+
import { image as D } from "./image.js";
|
|
34
|
+
import { snackbar as E } from "./snackbar.js";
|
|
35
|
+
import { skeleton as F } from "./skeleton.js";
|
|
36
|
+
import { list as G } from "./list.js";
|
|
37
|
+
import { select as H } from "./select.js";
|
|
38
|
+
import { search as J } from "./search.js";
|
|
39
|
+
import { breadcrumbs as K } from "./breadcrumbs.js";
|
|
40
|
+
import { icon as L } from "./icon.js";
|
|
41
|
+
import { reset as O } from "./reset.js";
|
|
42
|
+
import { tabs as P } from "./tabs.js";
|
|
43
|
+
import { stepper as Q } from "./stepper.js";
|
|
44
|
+
import { colors as R } from "./colors.js";
|
|
45
|
+
import { price as S } from "./price.js";
|
|
46
|
+
import { header as U } from "./header.js";
|
|
47
|
+
import { rating as V } from "./rating.js";
|
|
48
|
+
import { accordion as W } from "./accordion.js";
|
|
49
|
+
import { inlineNotification as X } from "./inlineNotification.js";
|
|
50
|
+
import { chat as Y } from "./chat.js";
|
|
51
|
+
import { slider as Z } from "./slider.js";
|
|
52
|
+
import { menu as _ } from "./menu.js";
|
|
53
|
+
import { scroll as $ } from "./scroll.js";
|
|
54
|
+
const $r = {
|
|
55
|
+
separator: r,
|
|
56
|
+
draganddrop: o,
|
|
57
|
+
avatar: m,
|
|
58
|
+
chatbubble: t,
|
|
59
|
+
draganddropfiles: p,
|
|
60
|
+
searchModal: f,
|
|
61
|
+
inputfile: e,
|
|
62
|
+
carousel: a,
|
|
63
|
+
progressbar: l,
|
|
64
|
+
card: s,
|
|
65
|
+
counter: n,
|
|
66
|
+
name: "default",
|
|
67
|
+
reset: O,
|
|
68
|
+
typography: c,
|
|
69
|
+
button: d,
|
|
70
|
+
input: u,
|
|
71
|
+
label: b,
|
|
72
|
+
flexContainer: C,
|
|
73
|
+
link: g,
|
|
74
|
+
form: h,
|
|
75
|
+
wrapper: k,
|
|
76
|
+
loader: w,
|
|
77
|
+
display: y,
|
|
78
|
+
cursors: T,
|
|
79
|
+
values: v,
|
|
80
|
+
flexAlignItems: x,
|
|
81
|
+
textarea: A,
|
|
82
|
+
image: D,
|
|
83
|
+
row: I,
|
|
84
|
+
switchToggle: N,
|
|
85
|
+
column: M,
|
|
86
|
+
tooltip: q,
|
|
87
|
+
animations: z,
|
|
88
|
+
modal: B,
|
|
89
|
+
snackbar: E,
|
|
90
|
+
skeleton: F,
|
|
91
|
+
list: G,
|
|
92
|
+
select: H,
|
|
93
|
+
search: J,
|
|
94
|
+
breadcrumbs: K,
|
|
95
|
+
scroll: $,
|
|
96
|
+
icon: L,
|
|
97
|
+
tabs: P,
|
|
98
|
+
stepper: Q,
|
|
99
|
+
colors: R,
|
|
100
|
+
menu: _,
|
|
101
|
+
price: S,
|
|
102
|
+
header: U,
|
|
103
|
+
rating: V,
|
|
104
|
+
accordion: W,
|
|
105
|
+
inlineNotification: X,
|
|
106
|
+
switchToken: j,
|
|
107
|
+
chat: Y,
|
|
108
|
+
slider: Z,
|
|
109
|
+
radiogroup: i
|
|
110
|
+
};
|
|
111
|
+
export {
|
|
112
|
+
$r as defaultTheme
|
|
113
|
+
};
|
package/tokens/display.js
CHANGED
|
@@ -1 +1,19 @@
|
|
|
1
|
-
|
|
1
|
+
const e = {
|
|
2
|
+
flex: "flex",
|
|
3
|
+
inlineFlex: "inline-flex",
|
|
4
|
+
grid: "grid",
|
|
5
|
+
block: "block",
|
|
6
|
+
inline: "inline",
|
|
7
|
+
inlineBlock: "inline-block",
|
|
8
|
+
none: "none"
|
|
9
|
+
}, n = {
|
|
10
|
+
start: "flex-start",
|
|
11
|
+
center: "center",
|
|
12
|
+
end: "flex-end",
|
|
13
|
+
baseline: "baseline",
|
|
14
|
+
stretch: "stretch"
|
|
15
|
+
};
|
|
16
|
+
export {
|
|
17
|
+
e as display,
|
|
18
|
+
n as flexAlignItems
|
|
19
|
+
};
|
package/tokens/draganddrop.js
CHANGED
|
@@ -1 +1,87 @@
|
|
|
1
|
-
|
|
1
|
+
import { spacing as o } from "./spacing.js";
|
|
2
|
+
import { colors as r } from "./colors.js";
|
|
3
|
+
import { borders as e } from "./borders.js";
|
|
4
|
+
import { radius as d } from "./radius.js";
|
|
5
|
+
import { cursors as i } from "./cursors.js";
|
|
6
|
+
import { flexAlignItems as a, display as t } from "./display.js";
|
|
7
|
+
import { icon as l } from "./icon.js";
|
|
8
|
+
const h = {
|
|
9
|
+
default: {
|
|
10
|
+
position: "relative"
|
|
11
|
+
},
|
|
12
|
+
dragAndDropArea: {
|
|
13
|
+
default: {
|
|
14
|
+
backgroundColor: r.bg.surface,
|
|
15
|
+
border: e.generic({
|
|
16
|
+
width: "1px",
|
|
17
|
+
color: r.border.default,
|
|
18
|
+
type: "dashed"
|
|
19
|
+
}),
|
|
20
|
+
borderRadius: d.default,
|
|
21
|
+
padding: `${o.xxl} ${o.md} ${o.xxl} ${o.md}`
|
|
22
|
+
},
|
|
23
|
+
hover: {
|
|
24
|
+
"&:hover": {
|
|
25
|
+
backgroundColor: r.bg.fill.secondary.hover,
|
|
26
|
+
border: e.generic({
|
|
27
|
+
width: "1px",
|
|
28
|
+
color: r.border.primary.hover,
|
|
29
|
+
type: "dashed"
|
|
30
|
+
}),
|
|
31
|
+
borderRadius: d.default
|
|
32
|
+
}
|
|
33
|
+
},
|
|
34
|
+
disabled: {
|
|
35
|
+
cursor: i.notAllowed,
|
|
36
|
+
backgroundColor: r.bg.input.disabled
|
|
37
|
+
},
|
|
38
|
+
error: {
|
|
39
|
+
border: e.generic({
|
|
40
|
+
width: "2px",
|
|
41
|
+
color: r.border.error,
|
|
42
|
+
type: "dashed"
|
|
43
|
+
})
|
|
44
|
+
},
|
|
45
|
+
loading: {
|
|
46
|
+
backgroundColor: r.bg.fill.secondary.hover,
|
|
47
|
+
cursor: i.notAllowed
|
|
48
|
+
}
|
|
49
|
+
},
|
|
50
|
+
dragOverContent: {
|
|
51
|
+
default: {
|
|
52
|
+
backgroundColor: r.bg.fill.secondary.hover,
|
|
53
|
+
width: "100%",
|
|
54
|
+
height: "100%",
|
|
55
|
+
display: t.flex,
|
|
56
|
+
justifyContent: a.center,
|
|
57
|
+
alignItems: a.center,
|
|
58
|
+
border: e.generic({
|
|
59
|
+
width: "1px",
|
|
60
|
+
color: r.border.primary.hover,
|
|
61
|
+
type: "dashed"
|
|
62
|
+
}),
|
|
63
|
+
borderRadius: d.default
|
|
64
|
+
}
|
|
65
|
+
},
|
|
66
|
+
uploadIcon: {
|
|
67
|
+
default: {
|
|
68
|
+
name: "upload",
|
|
69
|
+
width: l.size.lg.width,
|
|
70
|
+
height: l.size.lg.height
|
|
71
|
+
},
|
|
72
|
+
disabled: {
|
|
73
|
+
fill: r.icon.primary.disabled
|
|
74
|
+
}
|
|
75
|
+
},
|
|
76
|
+
contentTypography: {
|
|
77
|
+
default: {
|
|
78
|
+
margin: o.none
|
|
79
|
+
},
|
|
80
|
+
disabled: {
|
|
81
|
+
color: r.text.disabled
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
};
|
|
85
|
+
export {
|
|
86
|
+
h as draganddrop
|
|
87
|
+
};
|
package/tokens/flexContainer.js
CHANGED
|
@@ -1 +1,13 @@
|
|
|
1
|
-
|
|
1
|
+
import { display as i } from "./display.js";
|
|
2
|
+
import { FlexDirection as o } from "../types/layout.js";
|
|
3
|
+
const r = {
|
|
4
|
+
default: {
|
|
5
|
+
display: i.flex,
|
|
6
|
+
width: "100%",
|
|
7
|
+
margin: "0 auto",
|
|
8
|
+
flexDirection: o.Column
|
|
9
|
+
}
|
|
10
|
+
};
|
|
11
|
+
export {
|
|
12
|
+
r as flexContainer
|
|
13
|
+
};
|
package/tokens/font.js
CHANGED
|
@@ -1 +1,52 @@
|
|
|
1
|
-
|
|
1
|
+
import { TypographyVariant as p } from "../types/typography.js";
|
|
2
|
+
import { SizeVariant as x } from "../types/common.js";
|
|
3
|
+
const a = {
|
|
4
|
+
family: '"Fira Sans", sans-serif',
|
|
5
|
+
weight: {
|
|
6
|
+
light: 300,
|
|
7
|
+
normal: 400,
|
|
8
|
+
medium: 500,
|
|
9
|
+
bold: 700
|
|
10
|
+
},
|
|
11
|
+
size: {
|
|
12
|
+
[x.Xs]: "32px",
|
|
13
|
+
[x.Sm]: "36px",
|
|
14
|
+
[x.Md]: "40px",
|
|
15
|
+
[x.Lg]: "48px",
|
|
16
|
+
[x.Xl]: "64px",
|
|
17
|
+
[p.H1]: "48px",
|
|
18
|
+
[p.H2]: "32px",
|
|
19
|
+
[p.H3]: "28px",
|
|
20
|
+
[p.H4]: "24px",
|
|
21
|
+
[p.H5]: "20px",
|
|
22
|
+
[p.H6]: "18px",
|
|
23
|
+
[p.Body1]: "16px",
|
|
24
|
+
[p.Body2]: "14px",
|
|
25
|
+
[p.Caption]: "12px",
|
|
26
|
+
[p.Sub]: "12px",
|
|
27
|
+
[p.Sup]: "12px"
|
|
28
|
+
},
|
|
29
|
+
line: {
|
|
30
|
+
height: {
|
|
31
|
+
[x.Xs]: "38px",
|
|
32
|
+
[x.Sm]: "44px",
|
|
33
|
+
[x.Md]: "48px",
|
|
34
|
+
[x.Lg]: "58px",
|
|
35
|
+
[x.Xl]: "77px",
|
|
36
|
+
[p.H1]: "56px",
|
|
37
|
+
[p.H2]: "36px",
|
|
38
|
+
[p.H3]: "34px",
|
|
39
|
+
[p.H4]: "28px",
|
|
40
|
+
[p.H5]: "26px",
|
|
41
|
+
[p.H6]: "24px",
|
|
42
|
+
[p.Body1]: "24px",
|
|
43
|
+
[p.Body2]: "20px",
|
|
44
|
+
[p.Caption]: "16px",
|
|
45
|
+
[p.Sub]: "16px",
|
|
46
|
+
[p.Sup]: "16px"
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
};
|
|
50
|
+
export {
|
|
51
|
+
a as font
|
|
52
|
+
};
|