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/header.js
CHANGED
|
@@ -1 +1,123 @@
|
|
|
1
|
-
|
|
1
|
+
import { spacing as e } from "./spacing.js";
|
|
2
|
+
import { font as i } from "./font.js";
|
|
3
|
+
import { colors as o } from "./colors.js";
|
|
4
|
+
import { flexAlignItems as n, display as r } from "./display.js";
|
|
5
|
+
import { borders as t } from "./borders.js";
|
|
6
|
+
import { cursors as a } from "./cursors.js";
|
|
7
|
+
import { Z_INDEX as l } from "../constants/positioning.js";
|
|
8
|
+
const u = {
|
|
9
|
+
container: {
|
|
10
|
+
fontFamily: i.family,
|
|
11
|
+
alignItems: n.center,
|
|
12
|
+
backgroundColor: o.bg.surface,
|
|
13
|
+
maxWidth: "100%"
|
|
14
|
+
},
|
|
15
|
+
topBannerRow: {
|
|
16
|
+
width: "100%",
|
|
17
|
+
backgroundColor: o.neutral.black,
|
|
18
|
+
color: o.bg.surface
|
|
19
|
+
},
|
|
20
|
+
searchColumn: {
|
|
21
|
+
default: {
|
|
22
|
+
flexDirection: "row",
|
|
23
|
+
justifyContent: n.center,
|
|
24
|
+
"& a": {
|
|
25
|
+
margin: `${e.none} ${e.md}`
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
},
|
|
29
|
+
navigationRow: {
|
|
30
|
+
default: {
|
|
31
|
+
width: "100%",
|
|
32
|
+
padding: `${e.md} ${e.lg}`,
|
|
33
|
+
alignItems: n.center
|
|
34
|
+
}
|
|
35
|
+
},
|
|
36
|
+
actionsColumn: {
|
|
37
|
+
default: {
|
|
38
|
+
flexDirection: "row",
|
|
39
|
+
"& > button": {
|
|
40
|
+
margin: `${e.none} calc(${e.lg}/2)`
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
},
|
|
44
|
+
menuRow: {
|
|
45
|
+
default: {
|
|
46
|
+
width: "100%",
|
|
47
|
+
justifyContent: n.center
|
|
48
|
+
},
|
|
49
|
+
column: {
|
|
50
|
+
flexDirection: "row",
|
|
51
|
+
"& a": {
|
|
52
|
+
margin: `${e.none} ${e.md}`
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
},
|
|
56
|
+
children: {
|
|
57
|
+
default: {
|
|
58
|
+
margin: `${e.md} ${e.lg}`
|
|
59
|
+
}
|
|
60
|
+
},
|
|
61
|
+
mobile: {
|
|
62
|
+
openedDropdownWrapper: {
|
|
63
|
+
position: "fixed",
|
|
64
|
+
top: e.none,
|
|
65
|
+
left: e.none,
|
|
66
|
+
zIndex: l.HIGH,
|
|
67
|
+
background: o.neutral.white,
|
|
68
|
+
width: "100vw",
|
|
69
|
+
height: "100vh",
|
|
70
|
+
padding: `${e.xxl} ${e.lg} ${e.md}`,
|
|
71
|
+
overflowY: "auto"
|
|
72
|
+
},
|
|
73
|
+
closeMenuIconWrapper: {
|
|
74
|
+
width: "40px",
|
|
75
|
+
height: "40px",
|
|
76
|
+
display: r.flex,
|
|
77
|
+
justifyContent: "center",
|
|
78
|
+
alignItems: n.center
|
|
79
|
+
},
|
|
80
|
+
openMenuIconWrapper: {
|
|
81
|
+
width: "40px",
|
|
82
|
+
height: "40px",
|
|
83
|
+
display: r.flex,
|
|
84
|
+
justifyContent: "center",
|
|
85
|
+
alignItems: n.center
|
|
86
|
+
},
|
|
87
|
+
menuWrapper: {
|
|
88
|
+
margin: `${e.lg} ${e.none}`,
|
|
89
|
+
borderTop: t.generic({
|
|
90
|
+
width: "1px",
|
|
91
|
+
color: o.border.default
|
|
92
|
+
})
|
|
93
|
+
},
|
|
94
|
+
menuItemWrapper: {
|
|
95
|
+
padding: `calc(${e.xs}*3) ${e.none}`,
|
|
96
|
+
borderBottom: t.generic({
|
|
97
|
+
width: "1px",
|
|
98
|
+
color: o.border.default
|
|
99
|
+
}),
|
|
100
|
+
cursor: a.pointer
|
|
101
|
+
}
|
|
102
|
+
},
|
|
103
|
+
icons: {
|
|
104
|
+
close: {
|
|
105
|
+
name: "cross",
|
|
106
|
+
width: 24,
|
|
107
|
+
height: 24
|
|
108
|
+
},
|
|
109
|
+
right: {
|
|
110
|
+
name: "chevronRight",
|
|
111
|
+
width: 16,
|
|
112
|
+
height: 16
|
|
113
|
+
},
|
|
114
|
+
menu: {
|
|
115
|
+
name: "mobileMenu",
|
|
116
|
+
width: 40,
|
|
117
|
+
height: 40
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
};
|
|
121
|
+
export {
|
|
122
|
+
u as header
|
|
123
|
+
};
|
package/tokens/icon.js
CHANGED
|
@@ -1 +1,32 @@
|
|
|
1
|
-
|
|
1
|
+
import { SizeVariant as h } from "../types/common.js";
|
|
2
|
+
const t = {
|
|
3
|
+
size: {
|
|
4
|
+
[h.Xs]: {
|
|
5
|
+
width: 14,
|
|
6
|
+
height: 14
|
|
7
|
+
},
|
|
8
|
+
[h.Sm]: {
|
|
9
|
+
width: 16,
|
|
10
|
+
height: 16
|
|
11
|
+
},
|
|
12
|
+
[h.Md]: {
|
|
13
|
+
width: 18,
|
|
14
|
+
height: 18
|
|
15
|
+
},
|
|
16
|
+
[h.Lg]: {
|
|
17
|
+
width: 24,
|
|
18
|
+
height: 24
|
|
19
|
+
},
|
|
20
|
+
[h.Xl]: {
|
|
21
|
+
width: 32,
|
|
22
|
+
height: 32
|
|
23
|
+
},
|
|
24
|
+
[h.Xxl]: {
|
|
25
|
+
width: 40,
|
|
26
|
+
height: 40
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
};
|
|
30
|
+
export {
|
|
31
|
+
t as icon
|
|
32
|
+
};
|
package/tokens/image.js
CHANGED
|
@@ -1 +1,40 @@
|
|
|
1
|
-
|
|
1
|
+
import { colors as i } from "./colors.js";
|
|
2
|
+
import { flexAlignItems as t, display as o } from "./display.js";
|
|
3
|
+
import { spacing as e } from "./spacing.js";
|
|
4
|
+
import { font as r } from "./font.js";
|
|
5
|
+
import { TextAlign as n, TypographyVariant as a } from "../types/typography.js";
|
|
6
|
+
import { FlexDirection as p } from "../types/layout.js";
|
|
7
|
+
import { SizeVariant as l } from "../types/common.js";
|
|
8
|
+
const h = {
|
|
9
|
+
default: {
|
|
10
|
+
width: "100%",
|
|
11
|
+
height: "100%",
|
|
12
|
+
transition: "opacity 0.2s ease-in-out"
|
|
13
|
+
},
|
|
14
|
+
wrapper: {
|
|
15
|
+
position: "relative",
|
|
16
|
+
display: o.flex,
|
|
17
|
+
flexDirection: p.Column,
|
|
18
|
+
alignItems: t.center
|
|
19
|
+
},
|
|
20
|
+
placeholder: {
|
|
21
|
+
position: "absolute",
|
|
22
|
+
top: 0,
|
|
23
|
+
left: 0,
|
|
24
|
+
width: "100%",
|
|
25
|
+
height: "100%",
|
|
26
|
+
display: o.flex,
|
|
27
|
+
alignItems: t.center,
|
|
28
|
+
justifyContent: t.center,
|
|
29
|
+
background: i.bg.default
|
|
30
|
+
},
|
|
31
|
+
caption: {
|
|
32
|
+
marginTop: e[l.Xs],
|
|
33
|
+
fontSize: r.size[a.Body2],
|
|
34
|
+
color: i.text.caption,
|
|
35
|
+
textAlign: n.Center
|
|
36
|
+
}
|
|
37
|
+
};
|
|
38
|
+
export {
|
|
39
|
+
h as image
|
|
40
|
+
};
|
package/tokens/index.d.ts
CHANGED
|
@@ -234,24 +234,31 @@ export declare const defaultTokens: {
|
|
|
234
234
|
};
|
|
235
235
|
fallbackText: {
|
|
236
236
|
default: {
|
|
237
|
-
|
|
238
|
-
|
|
237
|
+
overflow: string;
|
|
238
|
+
textOverflow: string;
|
|
239
|
+
whiteSpace: string;
|
|
239
240
|
};
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
variant: import('../types').TypographyVariant;
|
|
243
|
-
};
|
|
244
|
-
sm: {
|
|
245
|
-
variant: import('../types').TypographyVariant;
|
|
246
|
-
};
|
|
247
|
-
md: {
|
|
248
|
-
variant: import('../types').TypographyVariant;
|
|
249
|
-
};
|
|
250
|
-
lg: {
|
|
241
|
+
attrs: {
|
|
242
|
+
default: {
|
|
251
243
|
variant: import('../types').TypographyVariant;
|
|
244
|
+
align: import('../types').TextAlign;
|
|
252
245
|
};
|
|
253
|
-
|
|
254
|
-
|
|
246
|
+
size: {
|
|
247
|
+
xs: {
|
|
248
|
+
variant: import('../types').TypographyVariant;
|
|
249
|
+
};
|
|
250
|
+
sm: {
|
|
251
|
+
variant: import('../types').TypographyVariant;
|
|
252
|
+
};
|
|
253
|
+
md: {
|
|
254
|
+
variant: import('../types').TypographyVariant;
|
|
255
|
+
};
|
|
256
|
+
lg: {
|
|
257
|
+
variant: import('../types').TypographyVariant;
|
|
258
|
+
};
|
|
259
|
+
xl: {
|
|
260
|
+
variant: import('../types').TypographyVariant;
|
|
261
|
+
};
|
|
255
262
|
};
|
|
256
263
|
};
|
|
257
264
|
};
|
package/tokens/index.js
CHANGED
|
@@ -1 +1,142 @@
|
|
|
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 { inputfile as f } from "./inputfile.js";
|
|
8
|
+
import { searchModal as a } from "./searchModal.js";
|
|
9
|
+
import { carousel as e } from "./carousel.js";
|
|
10
|
+
import { progressbar as s } from "./progressbar.js";
|
|
11
|
+
import { card as n } from "./card.js";
|
|
12
|
+
import { counter as l } from "./counter.js";
|
|
13
|
+
import { font as c } from "./font.js";
|
|
14
|
+
import { colors as d } from "./colors.js";
|
|
15
|
+
import { spacing as b } from "./spacing.js";
|
|
16
|
+
import { radius as u } from "./radius.js";
|
|
17
|
+
import { typography as g } from "./typography.js";
|
|
18
|
+
import { borders as h } from "./borders.js";
|
|
19
|
+
import { button as k } from "./button.js";
|
|
20
|
+
import { input as T } from "./input.js";
|
|
21
|
+
import { label as w } from "./label.js";
|
|
22
|
+
import { textarea as x } from "./textarea.js";
|
|
23
|
+
import { link as A } from "./link.js";
|
|
24
|
+
import { form as y } from "./form.js";
|
|
25
|
+
import { wrapper as D } from "./wrapper.js";
|
|
26
|
+
import { loader as _ } from "./loader.js";
|
|
27
|
+
import { switchToggle as v } from "./toggle.js";
|
|
28
|
+
import { skeleton as B } from "./skeleton.js";
|
|
29
|
+
import { animations as C } from "./animations.js";
|
|
30
|
+
import { snackbar as E } from "./snackbar.js";
|
|
31
|
+
import { DEFAULT_SNACKBAR_WIDTH as Ur } from "./snackbar.js";
|
|
32
|
+
import { list as F } from "./list.js";
|
|
33
|
+
import { select as H } from "./select.js";
|
|
34
|
+
import { search as I } from "./search.js";
|
|
35
|
+
import { breadcrumbs as K } from "./breadcrumbs.js";
|
|
36
|
+
import { icon as L } from "./icon.js";
|
|
37
|
+
import { reset as M } from "./reset.js";
|
|
38
|
+
import { tabs as N } from "./tabs.js";
|
|
39
|
+
import { stepper as R } from "./stepper.js";
|
|
40
|
+
import { rating as S } from "./rating.js";
|
|
41
|
+
import { header as U } from "./header.js";
|
|
42
|
+
import { switchToken as W } from "./switch.js";
|
|
43
|
+
import { chat as j } from "./chat.js";
|
|
44
|
+
import { slider as q } from "./slider.js";
|
|
45
|
+
import { menu as z } from "./menu.js";
|
|
46
|
+
import { scroll as G } from "./scroll.js";
|
|
47
|
+
const Nr = {
|
|
48
|
+
separator: r,
|
|
49
|
+
draganddrop: o,
|
|
50
|
+
avatar: m,
|
|
51
|
+
chatbubble: t,
|
|
52
|
+
radiogroup: i,
|
|
53
|
+
draganddropfiles: p,
|
|
54
|
+
inputfile: f,
|
|
55
|
+
carousel: e,
|
|
56
|
+
searchModal: a,
|
|
57
|
+
progressbar: s,
|
|
58
|
+
card: n,
|
|
59
|
+
counter: l,
|
|
60
|
+
font: c,
|
|
61
|
+
colors: d,
|
|
62
|
+
spacing: b,
|
|
63
|
+
borders: h,
|
|
64
|
+
scroll: G,
|
|
65
|
+
radius: u,
|
|
66
|
+
button: k,
|
|
67
|
+
input: T,
|
|
68
|
+
label: w,
|
|
69
|
+
link: A,
|
|
70
|
+
form: y,
|
|
71
|
+
typography: g,
|
|
72
|
+
textarea: x,
|
|
73
|
+
wrapper: D,
|
|
74
|
+
loader: _,
|
|
75
|
+
switchToggle: v,
|
|
76
|
+
skeleton: B,
|
|
77
|
+
animations: C,
|
|
78
|
+
snackbar: E,
|
|
79
|
+
list: F,
|
|
80
|
+
select: H,
|
|
81
|
+
search: I,
|
|
82
|
+
breadcrumbs: K,
|
|
83
|
+
icon: L,
|
|
84
|
+
reset: M,
|
|
85
|
+
tabs: N,
|
|
86
|
+
stepper: R,
|
|
87
|
+
rating: S,
|
|
88
|
+
header: U,
|
|
89
|
+
switchToken: W,
|
|
90
|
+
chat: j,
|
|
91
|
+
slider: q,
|
|
92
|
+
menu: z
|
|
93
|
+
};
|
|
94
|
+
export {
|
|
95
|
+
Ur as DEFAULT_SNACKBAR_WIDTH,
|
|
96
|
+
C as animations,
|
|
97
|
+
m as avatar,
|
|
98
|
+
h as borders,
|
|
99
|
+
K as breadcrumbs,
|
|
100
|
+
k as button,
|
|
101
|
+
n as card,
|
|
102
|
+
e as carousel,
|
|
103
|
+
j as chat,
|
|
104
|
+
t as chatbubble,
|
|
105
|
+
d as colors,
|
|
106
|
+
l as counter,
|
|
107
|
+
Nr as defaultTokens,
|
|
108
|
+
o as draganddrop,
|
|
109
|
+
p as draganddropfiles,
|
|
110
|
+
c as font,
|
|
111
|
+
y as form,
|
|
112
|
+
U as header,
|
|
113
|
+
L as icon,
|
|
114
|
+
T as input,
|
|
115
|
+
f as inputfile,
|
|
116
|
+
w as label,
|
|
117
|
+
A as link,
|
|
118
|
+
F as list,
|
|
119
|
+
_ as loader,
|
|
120
|
+
z as menu,
|
|
121
|
+
s as progressbar,
|
|
122
|
+
i as radiogroup,
|
|
123
|
+
u as radius,
|
|
124
|
+
S as rating,
|
|
125
|
+
M as reset,
|
|
126
|
+
G as scroll,
|
|
127
|
+
I as search,
|
|
128
|
+
a as searchModal,
|
|
129
|
+
H as select,
|
|
130
|
+
r as separator,
|
|
131
|
+
B as skeleton,
|
|
132
|
+
q as slider,
|
|
133
|
+
E as snackbar,
|
|
134
|
+
b as spacing,
|
|
135
|
+
R as stepper,
|
|
136
|
+
v as switchToggle,
|
|
137
|
+
W as switchToken,
|
|
138
|
+
N as tabs,
|
|
139
|
+
x as textarea,
|
|
140
|
+
g as typography,
|
|
141
|
+
D as wrapper
|
|
142
|
+
};
|
|
@@ -1 +1,75 @@
|
|
|
1
|
-
|
|
1
|
+
import { spacing as i } from "./spacing.js";
|
|
2
|
+
import { shadows as e } from "./shadow.js";
|
|
3
|
+
import { borders as r } from "./borders.js";
|
|
4
|
+
import { values as t } from "./values.js";
|
|
5
|
+
import { colors as n } from "./colors.js";
|
|
6
|
+
import { flexAlignItems as a, display as l } from "./display.js";
|
|
7
|
+
import { font as o } from "./font.js";
|
|
8
|
+
const w = {
|
|
9
|
+
default: {
|
|
10
|
+
wrapper: {
|
|
11
|
+
display: l.inlineFlex,
|
|
12
|
+
alignItems: a.center,
|
|
13
|
+
gap: i.xs,
|
|
14
|
+
width: "max-content"
|
|
15
|
+
},
|
|
16
|
+
content: {
|
|
17
|
+
flex: 1,
|
|
18
|
+
fontFamily: o.family,
|
|
19
|
+
fontWeight: o.weight.medium,
|
|
20
|
+
fontSize: o.size.small,
|
|
21
|
+
lineHeight: o.line.height.small
|
|
22
|
+
}
|
|
23
|
+
},
|
|
24
|
+
success: {
|
|
25
|
+
wrapper: {},
|
|
26
|
+
content: {},
|
|
27
|
+
icon: {
|
|
28
|
+
name: "success",
|
|
29
|
+
fill: n.icon.success
|
|
30
|
+
}
|
|
31
|
+
},
|
|
32
|
+
warning: {
|
|
33
|
+
wrapper: {},
|
|
34
|
+
content: {},
|
|
35
|
+
icon: {
|
|
36
|
+
name: "warning",
|
|
37
|
+
fill: n.icon.warning
|
|
38
|
+
}
|
|
39
|
+
},
|
|
40
|
+
error: {
|
|
41
|
+
wrapper: {},
|
|
42
|
+
content: {},
|
|
43
|
+
icon: {
|
|
44
|
+
name: "error",
|
|
45
|
+
fill: n.icon.error
|
|
46
|
+
}
|
|
47
|
+
},
|
|
48
|
+
info: {
|
|
49
|
+
wrapper: {},
|
|
50
|
+
content: {},
|
|
51
|
+
icon: {
|
|
52
|
+
name: "info",
|
|
53
|
+
fill: n.icon.info
|
|
54
|
+
}
|
|
55
|
+
},
|
|
56
|
+
basic: {
|
|
57
|
+
wrapper: {
|
|
58
|
+
border: r.generic({
|
|
59
|
+
width: t.borderThin,
|
|
60
|
+
color: n.border.default
|
|
61
|
+
}),
|
|
62
|
+
boxShadow: e.inlineNotification.default,
|
|
63
|
+
padding: `${i.sm} ${i.md} ${i.sm} ${i.md}`
|
|
64
|
+
},
|
|
65
|
+
content: {
|
|
66
|
+
fontWeight: o.weight.normal
|
|
67
|
+
},
|
|
68
|
+
icon: {
|
|
69
|
+
name: ""
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
};
|
|
73
|
+
export {
|
|
74
|
+
w as inlineNotification
|
|
75
|
+
};
|
package/tokens/input.js
CHANGED
|
@@ -1 +1,192 @@
|
|
|
1
|
-
|
|
1
|
+
import b from "../assets/svg/checkbox_border.svg.js";
|
|
2
|
+
import g from "../assets/svg/checkbox_bg_checked.svg.js";
|
|
3
|
+
import f from "../assets/svg/checkbox_disabled_bg_checked.svg.js";
|
|
4
|
+
import x from "../assets/svg/radio_bg.svg.js";
|
|
5
|
+
import h from "../assets/svg/radio_bg_checked.svg.js";
|
|
6
|
+
import { borders as t } from "./borders.js";
|
|
7
|
+
import { typography as d } from "./typography.js";
|
|
8
|
+
import { flexAlignItems as i, display as p } from "./display.js";
|
|
9
|
+
import { spacing as c } from "./spacing.js";
|
|
10
|
+
import { colors as e } from "./colors.js";
|
|
11
|
+
import { cursors as n } from "./cursors.js";
|
|
12
|
+
import { values as y } from "./values.js";
|
|
13
|
+
import { getImgSrc as r, getFocusStyles as s } from "./utils.js";
|
|
14
|
+
import { InputColorVariant as o } from "../types/input.js";
|
|
15
|
+
import { Z_INDEX as l } from "../constants/positioning.js";
|
|
16
|
+
import { FlexDirection as k } from "../types/layout.js";
|
|
17
|
+
import { TypographyVariant as m } from "../types/typography.js";
|
|
18
|
+
const a = (u) => ({
|
|
19
|
+
position: "absolute",
|
|
20
|
+
top: 0,
|
|
21
|
+
left: 0,
|
|
22
|
+
width: "100%",
|
|
23
|
+
height: "100%",
|
|
24
|
+
border: t.generic({
|
|
25
|
+
width: y.borderThin,
|
|
26
|
+
color: u
|
|
27
|
+
})
|
|
28
|
+
}), G = {
|
|
29
|
+
wrapper: {
|
|
30
|
+
default: {
|
|
31
|
+
boxSizing: "border-box",
|
|
32
|
+
display: p.flex,
|
|
33
|
+
alignSelf: i.stretch,
|
|
34
|
+
alignItems: i.center,
|
|
35
|
+
borderRadius: t.none,
|
|
36
|
+
position: "relative",
|
|
37
|
+
width: "100%"
|
|
38
|
+
},
|
|
39
|
+
withGap: {
|
|
40
|
+
flexDirection: k.Column,
|
|
41
|
+
alignItems: i.start,
|
|
42
|
+
gap: c.xs
|
|
43
|
+
}
|
|
44
|
+
},
|
|
45
|
+
input: {
|
|
46
|
+
default: {
|
|
47
|
+
borderRadius: t.none,
|
|
48
|
+
padding: c.sm,
|
|
49
|
+
outline: "none",
|
|
50
|
+
position: "relative",
|
|
51
|
+
cursor: n.text,
|
|
52
|
+
border: t.none,
|
|
53
|
+
backgroundColor: "transparent",
|
|
54
|
+
"&::placeholder": {
|
|
55
|
+
color: e.text.disabled
|
|
56
|
+
},
|
|
57
|
+
'&:not([type="radio"], [type="checkbox"], [type="range"])': {
|
|
58
|
+
height: "40px",
|
|
59
|
+
width: "100%",
|
|
60
|
+
zIndex: l.FIRST
|
|
61
|
+
},
|
|
62
|
+
'&[type="number"]': {
|
|
63
|
+
appearance: "textfield",
|
|
64
|
+
"&::-webkit-outer-spin-button, &::-webkit-inner-spin-button": {
|
|
65
|
+
appearance: "none",
|
|
66
|
+
margin: 0
|
|
67
|
+
}
|
|
68
|
+
},
|
|
69
|
+
"&[readonly], &:disabled": {
|
|
70
|
+
color: e.text.disabled,
|
|
71
|
+
cursor: n.default
|
|
72
|
+
},
|
|
73
|
+
// CHECKBOX
|
|
74
|
+
'&[type="checkbox"]': {
|
|
75
|
+
cursor: n.pointer,
|
|
76
|
+
appearance: "none",
|
|
77
|
+
height: "18px",
|
|
78
|
+
width: "18px",
|
|
79
|
+
backgroundColor: "transparent",
|
|
80
|
+
border: "none",
|
|
81
|
+
backgroundImage: r(b),
|
|
82
|
+
"&:focus-visible": s({
|
|
83
|
+
inset: "-4px",
|
|
84
|
+
borderRadius: "3px"
|
|
85
|
+
})
|
|
86
|
+
},
|
|
87
|
+
'&[type="checkbox"]:not(:checked)': {
|
|
88
|
+
"&[readonly], &:disabled": {
|
|
89
|
+
opacity: 0.5
|
|
90
|
+
}
|
|
91
|
+
},
|
|
92
|
+
'&[type="checkbox"]:checked': {
|
|
93
|
+
backgroundRepeat: "no-repeat",
|
|
94
|
+
backgroundPosition: "center",
|
|
95
|
+
backgroundSize: "18px",
|
|
96
|
+
backgroundColor: e.neutral.white,
|
|
97
|
+
border: "none",
|
|
98
|
+
backgroundImage: r(g),
|
|
99
|
+
"&[readonly], &:disabled": {
|
|
100
|
+
backgroundImage: r(f)
|
|
101
|
+
}
|
|
102
|
+
},
|
|
103
|
+
// RADIO
|
|
104
|
+
'&[type="radio"]': {
|
|
105
|
+
cursor: n.pointer,
|
|
106
|
+
appearance: "none",
|
|
107
|
+
height: "20px",
|
|
108
|
+
width: "20px",
|
|
109
|
+
border: "none",
|
|
110
|
+
backgroundImage: r(x),
|
|
111
|
+
"&:focus-visible": s({
|
|
112
|
+
inset: "-4px",
|
|
113
|
+
borderRadius: "50%"
|
|
114
|
+
}),
|
|
115
|
+
"&[readonly], &:disabled": {
|
|
116
|
+
opacity: 0.5
|
|
117
|
+
}
|
|
118
|
+
},
|
|
119
|
+
'&[type="radio"]:checked': {
|
|
120
|
+
backgroundImage: r(h)
|
|
121
|
+
}
|
|
122
|
+
},
|
|
123
|
+
defaultInteraction: {
|
|
124
|
+
"&:focus-visible ~ .Input__outline": {
|
|
125
|
+
position: "absolute",
|
|
126
|
+
top: 0,
|
|
127
|
+
left: 0,
|
|
128
|
+
bottom: 0,
|
|
129
|
+
width: "100%",
|
|
130
|
+
outline: t.focus,
|
|
131
|
+
outlineOffset: "3px"
|
|
132
|
+
}
|
|
133
|
+
},
|
|
134
|
+
mouseInteraction: {},
|
|
135
|
+
[o.Primary]: {
|
|
136
|
+
"& + .Input__border": a(e.border.default)
|
|
137
|
+
},
|
|
138
|
+
[o.Success]: {
|
|
139
|
+
"& + .Input__border": a(e.border.success)
|
|
140
|
+
},
|
|
141
|
+
[o.Warning]: {
|
|
142
|
+
"& + .Input__border": a(e.primary.default)
|
|
143
|
+
},
|
|
144
|
+
[o.Error]: {
|
|
145
|
+
"& + .Input__border": a(e.border.error)
|
|
146
|
+
}
|
|
147
|
+
},
|
|
148
|
+
helper: {
|
|
149
|
+
default: {
|
|
150
|
+
sm: d[m.Caption],
|
|
151
|
+
md: {
|
|
152
|
+
color: e.text.disabled,
|
|
153
|
+
...d[m.Body2]
|
|
154
|
+
}
|
|
155
|
+
},
|
|
156
|
+
[o.Primary]: {
|
|
157
|
+
sm: {
|
|
158
|
+
color: e.text.caption
|
|
159
|
+
},
|
|
160
|
+
md: {}
|
|
161
|
+
},
|
|
162
|
+
[o.Success]: {
|
|
163
|
+
sm: {
|
|
164
|
+
color: e.text.success
|
|
165
|
+
},
|
|
166
|
+
md: {}
|
|
167
|
+
},
|
|
168
|
+
[o.Warning]: {
|
|
169
|
+
sm: {
|
|
170
|
+
color: e.text.caption
|
|
171
|
+
},
|
|
172
|
+
md: {}
|
|
173
|
+
},
|
|
174
|
+
[o.Error]: {
|
|
175
|
+
sm: {
|
|
176
|
+
color: e.text.error
|
|
177
|
+
},
|
|
178
|
+
md: {}
|
|
179
|
+
}
|
|
180
|
+
},
|
|
181
|
+
adornment: {
|
|
182
|
+
default: {
|
|
183
|
+
display: p.flex,
|
|
184
|
+
alignItems: i.center,
|
|
185
|
+
position: "relative",
|
|
186
|
+
zIndex: l.FIRST
|
|
187
|
+
}
|
|
188
|
+
}
|
|
189
|
+
};
|
|
190
|
+
export {
|
|
191
|
+
G as input
|
|
192
|
+
};
|