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/inputfile.js
CHANGED
|
@@ -1 +1,12 @@
|
|
|
1
|
-
|
|
1
|
+
import { Z_INDEX as t } from "../constants/positioning.js";
|
|
2
|
+
const i = {
|
|
3
|
+
default: {},
|
|
4
|
+
input: {
|
|
5
|
+
opacity: 0,
|
|
6
|
+
position: "absolute",
|
|
7
|
+
zIndex: t.NEGATIVE
|
|
8
|
+
}
|
|
9
|
+
};
|
|
10
|
+
export {
|
|
11
|
+
i as inputfile
|
|
12
|
+
};
|
package/tokens/label.js
CHANGED
|
@@ -1 +1,9 @@
|
|
|
1
|
-
|
|
1
|
+
import { cursors as r } from "./cursors.js";
|
|
2
|
+
const t = {
|
|
3
|
+
default: {
|
|
4
|
+
cursor: r.pointer
|
|
5
|
+
}
|
|
6
|
+
};
|
|
7
|
+
export {
|
|
8
|
+
t as label
|
|
9
|
+
};
|
package/tokens/link.js
CHANGED
|
@@ -1 +1,66 @@
|
|
|
1
|
-
|
|
1
|
+
import { spacing as e } from "./spacing.js";
|
|
2
|
+
import { font as m } from "./font.js";
|
|
3
|
+
import { colors as t } from "./colors.js";
|
|
4
|
+
import { borders as n } from "./borders.js";
|
|
5
|
+
import { values as a } from "./values.js";
|
|
6
|
+
import { Cursors as s } from "../types/cursors.js";
|
|
7
|
+
import { LinkVariant as r } from "../types/link.js";
|
|
8
|
+
import { get as o } from "../utils/helpers.js";
|
|
9
|
+
const i = (l = o(t, "text.default"), f = "transparent", d = o(t, "text.default")) => ({
|
|
10
|
+
"&::after": {
|
|
11
|
+
content: '""',
|
|
12
|
+
position: "absolute",
|
|
13
|
+
right: e.none,
|
|
14
|
+
bottom: e.none,
|
|
15
|
+
left: e.none,
|
|
16
|
+
borderBottom: `1px solid ${l}`
|
|
17
|
+
},
|
|
18
|
+
"&:hover": {
|
|
19
|
+
backgroundColor: f,
|
|
20
|
+
"&::after": {
|
|
21
|
+
borderBottomColor: d
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
}), y = {
|
|
25
|
+
default: {
|
|
26
|
+
fontFamily: m.family,
|
|
27
|
+
fontSize: "inherit",
|
|
28
|
+
fontWeight: "inherit",
|
|
29
|
+
lineHeight: "inherit",
|
|
30
|
+
color: t.text.default,
|
|
31
|
+
position: "relative",
|
|
32
|
+
"&:visited": {
|
|
33
|
+
color: t.text.caption,
|
|
34
|
+
"&::after": {
|
|
35
|
+
borderBottom: n.generic({
|
|
36
|
+
width: a.borderThin,
|
|
37
|
+
color: o(t, "bg.fill.primary.default")
|
|
38
|
+
})
|
|
39
|
+
}
|
|
40
|
+
},
|
|
41
|
+
"&:focus, &:active, &:focus-visible": {
|
|
42
|
+
outline: n.generic({
|
|
43
|
+
width: a.borderThin,
|
|
44
|
+
color: o(t, "border.info")
|
|
45
|
+
})
|
|
46
|
+
},
|
|
47
|
+
"&.Link--disabled": {
|
|
48
|
+
color: t.text.disabled,
|
|
49
|
+
cursor: s.Default,
|
|
50
|
+
textDecoration: "none",
|
|
51
|
+
backgroundColor: "transparent",
|
|
52
|
+
"&::after": {
|
|
53
|
+
borderBottomColor: "transparent"
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
},
|
|
57
|
+
[r.Primary]: i(),
|
|
58
|
+
[r.Secondary]: i(o(t, "text.default"), o(t, "bg.fill.primary.default"), "transparent"),
|
|
59
|
+
[r.Inverted]: i("transparent", "transparent", o(t, "text.default")),
|
|
60
|
+
[r.Inherit]: {
|
|
61
|
+
color: "inherit"
|
|
62
|
+
}
|
|
63
|
+
};
|
|
64
|
+
export {
|
|
65
|
+
y as link
|
|
66
|
+
};
|
package/tokens/list.js
CHANGED
|
@@ -1 +1,87 @@
|
|
|
1
|
-
|
|
1
|
+
import { radius as d } from "./radius.js";
|
|
2
|
+
import { spacing as e } from "./spacing.js";
|
|
3
|
+
import { colors as o } from "./colors.js";
|
|
4
|
+
import { font as n } from "./font.js";
|
|
5
|
+
import { ListVariant as t } from "../types/list.js";
|
|
6
|
+
import { SizeVariant as r } from "../types/common.js";
|
|
7
|
+
import { TypographyVariant as m } from "../types/typography.js";
|
|
8
|
+
const i = {
|
|
9
|
+
content: "counter(list-counter)",
|
|
10
|
+
counterIncrement: "list-counter",
|
|
11
|
+
background: o.primary.default,
|
|
12
|
+
fontFamily: n.family,
|
|
13
|
+
fontSize: n.size[m.Body2],
|
|
14
|
+
fontWeight: n.weight.medium,
|
|
15
|
+
width: e[r.Lg],
|
|
16
|
+
height: e[r.Lg],
|
|
17
|
+
color: o.text.default,
|
|
18
|
+
display: "flex",
|
|
19
|
+
alignItems: "center",
|
|
20
|
+
justifyContent: "center",
|
|
21
|
+
marginRight: e[r.Sm]
|
|
22
|
+
}, a = {
|
|
23
|
+
counterReset: "list-counter",
|
|
24
|
+
paddingLeft: e.none,
|
|
25
|
+
"& .List__bulletPoint": {
|
|
26
|
+
marginRight: e[r.Sm],
|
|
27
|
+
color: o.primary.default
|
|
28
|
+
}
|
|
29
|
+
}, h = {
|
|
30
|
+
wrapper: {
|
|
31
|
+
default: {
|
|
32
|
+
listStyle: "none",
|
|
33
|
+
padding: e.none,
|
|
34
|
+
margin: e.none
|
|
35
|
+
},
|
|
36
|
+
[t.OrderedCircle]: {
|
|
37
|
+
counterReset: "list-counter",
|
|
38
|
+
paddingLeft: e.none
|
|
39
|
+
},
|
|
40
|
+
[t.OrderedSquare]: {
|
|
41
|
+
counterReset: "list-counter",
|
|
42
|
+
paddingLeft: e.none
|
|
43
|
+
}
|
|
44
|
+
},
|
|
45
|
+
item: {
|
|
46
|
+
default: {
|
|
47
|
+
display: "flex",
|
|
48
|
+
alignItems: "center",
|
|
49
|
+
flexDirection: "row",
|
|
50
|
+
margin: `${e[r.Sm]} 0`,
|
|
51
|
+
"&:first-child": {
|
|
52
|
+
// reset first item top margin to align with other blocks by start
|
|
53
|
+
margin: `0 0 ${e[r.Sm]}`
|
|
54
|
+
}
|
|
55
|
+
},
|
|
56
|
+
[t.OrderedCircle]: {
|
|
57
|
+
"&::before": {
|
|
58
|
+
borderRadius: d.round,
|
|
59
|
+
...i
|
|
60
|
+
}
|
|
61
|
+
},
|
|
62
|
+
[t.OrderedSquare]: {
|
|
63
|
+
"&::before": {
|
|
64
|
+
...i
|
|
65
|
+
}
|
|
66
|
+
},
|
|
67
|
+
[t.UnorderedCheck]: {
|
|
68
|
+
...a
|
|
69
|
+
},
|
|
70
|
+
[t.UnorderedDot]: {
|
|
71
|
+
...a
|
|
72
|
+
}
|
|
73
|
+
},
|
|
74
|
+
icons: {
|
|
75
|
+
bulletDot: {
|
|
76
|
+
name: "dot",
|
|
77
|
+
width: 6,
|
|
78
|
+
height: 6
|
|
79
|
+
},
|
|
80
|
+
bulletCheck: {
|
|
81
|
+
name: "check"
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
};
|
|
85
|
+
export {
|
|
86
|
+
h as list
|
|
87
|
+
};
|
package/tokens/loader.js
CHANGED
|
@@ -1 +1,141 @@
|
|
|
1
|
-
|
|
1
|
+
import { getSpacing as a } from "./utils.js";
|
|
2
|
+
import { flexAlignItems as e, display as p } from "./display.js";
|
|
3
|
+
import { radius as o } from "./radius.js";
|
|
4
|
+
import { colors as i } from "./colors.js";
|
|
5
|
+
import { SizeVariant as t } from "../types/common.js";
|
|
6
|
+
const x = {
|
|
7
|
+
default: {},
|
|
8
|
+
inline: {},
|
|
9
|
+
section: {},
|
|
10
|
+
fullPage: {},
|
|
11
|
+
circle: {
|
|
12
|
+
default: {
|
|
13
|
+
border: `3px solid ${i.transparent}`,
|
|
14
|
+
borderTop: `3px solid ${i.bg.fill.primary.default}`,
|
|
15
|
+
borderRadius: o.round
|
|
16
|
+
},
|
|
17
|
+
[t.Xs]: {
|
|
18
|
+
borderWidth: "1px",
|
|
19
|
+
width: "16px",
|
|
20
|
+
height: "16px",
|
|
21
|
+
minWidth: "16px",
|
|
22
|
+
minHeight: "16px"
|
|
23
|
+
},
|
|
24
|
+
[t.Sm]: {
|
|
25
|
+
borderWidth: "2px",
|
|
26
|
+
width: "24px",
|
|
27
|
+
height: "24px",
|
|
28
|
+
maxWidth: "24px",
|
|
29
|
+
maxHeight: "24px"
|
|
30
|
+
},
|
|
31
|
+
[t.Md]: {
|
|
32
|
+
borderWidth: "3px",
|
|
33
|
+
width: "32px",
|
|
34
|
+
height: "32px",
|
|
35
|
+
maxWidth: "32px",
|
|
36
|
+
maxHeight: "32px"
|
|
37
|
+
},
|
|
38
|
+
[t.Lg]: {
|
|
39
|
+
borderWidth: "4px",
|
|
40
|
+
width: "48px",
|
|
41
|
+
height: "48px",
|
|
42
|
+
maxWidth: "48px",
|
|
43
|
+
maxHeight: "48px"
|
|
44
|
+
},
|
|
45
|
+
[t.Xl]: {
|
|
46
|
+
borderWidth: "5px",
|
|
47
|
+
width: "54px",
|
|
48
|
+
height: "54px",
|
|
49
|
+
maxWidth: "54px",
|
|
50
|
+
maxHeight: "54px"
|
|
51
|
+
}
|
|
52
|
+
},
|
|
53
|
+
dots: {
|
|
54
|
+
default: {
|
|
55
|
+
display: p.flex,
|
|
56
|
+
justifyContent: e.center,
|
|
57
|
+
alignItems: e.center
|
|
58
|
+
},
|
|
59
|
+
[t.Xs]: {
|
|
60
|
+
gap: a(1),
|
|
61
|
+
".dot": {
|
|
62
|
+
background: i.bg.fill.primary.default,
|
|
63
|
+
width: "8px",
|
|
64
|
+
height: "8px",
|
|
65
|
+
"&:nth-of-type(1)": {
|
|
66
|
+
animationDelay: "-0.32s"
|
|
67
|
+
},
|
|
68
|
+
"&:nth-of-type(2)": {
|
|
69
|
+
animationDelay: "-0.16s"
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
},
|
|
73
|
+
[t.Sm]: {
|
|
74
|
+
gap: a(2),
|
|
75
|
+
".dot": {
|
|
76
|
+
background: i.bg.fill.primary.default,
|
|
77
|
+
width: "12px",
|
|
78
|
+
height: "12px",
|
|
79
|
+
"&:nth-of-type(1)": {
|
|
80
|
+
animationDelay: "-0.32s"
|
|
81
|
+
},
|
|
82
|
+
"&:nth-of-type(2)": {
|
|
83
|
+
animationDelay: "-0.16s"
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
},
|
|
87
|
+
[t.Md]: {
|
|
88
|
+
gap: a(2),
|
|
89
|
+
".dot": {
|
|
90
|
+
background: i.bg.fill.primary.default,
|
|
91
|
+
width: "16px",
|
|
92
|
+
height: "16px",
|
|
93
|
+
"&:nth-of-type(1)": {
|
|
94
|
+
animationDelay: "-0.32s"
|
|
95
|
+
},
|
|
96
|
+
"&:nth-of-type(2)": {
|
|
97
|
+
animationDelay: "-0.16s"
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
},
|
|
101
|
+
[t.Lg]: {
|
|
102
|
+
gap: a(2),
|
|
103
|
+
".dot": {
|
|
104
|
+
background: i.bg.fill.primary.default,
|
|
105
|
+
width: "24px",
|
|
106
|
+
height: "24px",
|
|
107
|
+
"&:nth-of-type(1)": {
|
|
108
|
+
animationDelay: "-0.32s"
|
|
109
|
+
},
|
|
110
|
+
"&:nth-of-type(2)": {
|
|
111
|
+
animationDelay: "-0.16s"
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
},
|
|
115
|
+
[t.Xl]: {
|
|
116
|
+
gap: a(2),
|
|
117
|
+
".dot": {
|
|
118
|
+
background: i.bg.fill.primary.default,
|
|
119
|
+
width: "32px",
|
|
120
|
+
height: "32px",
|
|
121
|
+
"&:nth-of-type(1)": {
|
|
122
|
+
animationDelay: "-0.32s"
|
|
123
|
+
},
|
|
124
|
+
"&:nth-of-type(2)": {
|
|
125
|
+
animationDelay: "-0.16s"
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
},
|
|
130
|
+
animation: {
|
|
131
|
+
circle: {
|
|
132
|
+
name: "spinKeyframes"
|
|
133
|
+
},
|
|
134
|
+
dots: {
|
|
135
|
+
name: "bounceKeyframes"
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
};
|
|
139
|
+
export {
|
|
140
|
+
x as loader
|
|
141
|
+
};
|
package/tokens/menu.js
CHANGED
|
@@ -1 +1,19 @@
|
|
|
1
|
-
|
|
1
|
+
import { colors as o } from "./colors.js";
|
|
2
|
+
const e = {
|
|
3
|
+
wrapper: {
|
|
4
|
+
default: {
|
|
5
|
+
padding: "0",
|
|
6
|
+
height: "24px"
|
|
7
|
+
}
|
|
8
|
+
},
|
|
9
|
+
content: {
|
|
10
|
+
default: {
|
|
11
|
+
backgroundColor: o.neutral.white,
|
|
12
|
+
position: "absolute",
|
|
13
|
+
boxShadow: "0 2px 3px -1px #00000033"
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
};
|
|
17
|
+
export {
|
|
18
|
+
e as menu
|
|
19
|
+
};
|
package/tokens/modal.js
CHANGED
|
@@ -1 +1,108 @@
|
|
|
1
|
-
|
|
1
|
+
import { hexToRgba as h, getSpacing as d } from "./utils.js";
|
|
2
|
+
import { flexAlignItems as a, display as t } from "./display.js";
|
|
3
|
+
import { spacing as o } from "./spacing.js";
|
|
4
|
+
import { font as l } from "./font.js";
|
|
5
|
+
import { colors as e } from "./colors.js";
|
|
6
|
+
import { borders as n } from "./borders.js";
|
|
7
|
+
import { cursors as x } from "./cursors.js";
|
|
8
|
+
import { values as b } from "./values.js";
|
|
9
|
+
import { shadows as y } from "./shadow.js";
|
|
10
|
+
import { Z_INDEX as w } from "../constants/positioning.js";
|
|
11
|
+
import { calculateJustify as r } from "../utils/layout.js";
|
|
12
|
+
import { SizeVariant as i } from "../types/common.js";
|
|
13
|
+
import { TypographyVariant as f } from "../types/typography.js";
|
|
14
|
+
var p, m, s, c, u, g;
|
|
15
|
+
const L = {
|
|
16
|
+
header: {
|
|
17
|
+
default: {
|
|
18
|
+
display: t.flex,
|
|
19
|
+
alignItems: a.center,
|
|
20
|
+
justifyContent: r("end"),
|
|
21
|
+
padding: `${d(4)} ${d(6)}`,
|
|
22
|
+
fontSize: l.size[(p = f) == null ? void 0 : p.H6],
|
|
23
|
+
fontWeight: "bold",
|
|
24
|
+
borderBottom: n.generic({
|
|
25
|
+
width: "1px",
|
|
26
|
+
color: e.border.default
|
|
27
|
+
})
|
|
28
|
+
},
|
|
29
|
+
withTitle: {
|
|
30
|
+
justifyContent: r("between")
|
|
31
|
+
}
|
|
32
|
+
},
|
|
33
|
+
title: {
|
|
34
|
+
default: {
|
|
35
|
+
display: "flex",
|
|
36
|
+
alignItems: "center",
|
|
37
|
+
padding: o.none,
|
|
38
|
+
margin: o.none
|
|
39
|
+
}
|
|
40
|
+
},
|
|
41
|
+
body: {
|
|
42
|
+
default: {
|
|
43
|
+
padding: o[(m = i) == null ? void 0 : m.Lg],
|
|
44
|
+
fontSize: l.size[(s = f) == null ? void 0 : s.Body1],
|
|
45
|
+
color: e.text.default
|
|
46
|
+
}
|
|
47
|
+
},
|
|
48
|
+
content: {
|
|
49
|
+
default: {
|
|
50
|
+
background: e.bg.surface,
|
|
51
|
+
padding: o.none,
|
|
52
|
+
borderRadius: b.border.radius.none,
|
|
53
|
+
boxShadow: y.modal.default,
|
|
54
|
+
position: "relative",
|
|
55
|
+
display: t.flex,
|
|
56
|
+
flexDirection: "column",
|
|
57
|
+
maxWidth: "654px",
|
|
58
|
+
width: "654px",
|
|
59
|
+
"@media (max-width: 768px)": {
|
|
60
|
+
maxWidth: "100%",
|
|
61
|
+
width: "100vw",
|
|
62
|
+
height: "100vh"
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
},
|
|
66
|
+
footer: {
|
|
67
|
+
default: {
|
|
68
|
+
display: t.flex,
|
|
69
|
+
justifyContent: r("end"),
|
|
70
|
+
gap: `calc(${o[(c = i) == null ? void 0 : c.Xs]} * 3)`,
|
|
71
|
+
padding: `${o[(u = i) == null ? void 0 : u.Md]} ${o[(g = i) == null ? void 0 : g.Lg]}`,
|
|
72
|
+
borderTop: n.generic({
|
|
73
|
+
width: "1px",
|
|
74
|
+
color: e.border.default
|
|
75
|
+
})
|
|
76
|
+
}
|
|
77
|
+
},
|
|
78
|
+
closeButton: {
|
|
79
|
+
default: {
|
|
80
|
+
background: e.transparent,
|
|
81
|
+
border: n.none,
|
|
82
|
+
cursor: x.pointer,
|
|
83
|
+
padding: o.none
|
|
84
|
+
}
|
|
85
|
+
},
|
|
86
|
+
overlay: {
|
|
87
|
+
default: {
|
|
88
|
+
position: "fixed",
|
|
89
|
+
top: 0,
|
|
90
|
+
left: 0,
|
|
91
|
+
width: "100vw",
|
|
92
|
+
height: "100vh",
|
|
93
|
+
background: h(e.neutral.black, 0.5),
|
|
94
|
+
display: t.flex,
|
|
95
|
+
alignItems: a.center,
|
|
96
|
+
justifyContent: r("center"),
|
|
97
|
+
zIndex: w.HIGH
|
|
98
|
+
}
|
|
99
|
+
},
|
|
100
|
+
icons: {
|
|
101
|
+
close: {
|
|
102
|
+
name: "cross"
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
};
|
|
106
|
+
export {
|
|
107
|
+
L as modal
|
|
108
|
+
};
|
package/tokens/price.js
CHANGED
|
@@ -1 +1,32 @@
|
|
|
1
|
-
|
|
1
|
+
import { flexAlignItems as o, display as r } from "./display.js";
|
|
2
|
+
import { spacing as l } from "./spacing.js";
|
|
3
|
+
import { font as e } from "./font.js";
|
|
4
|
+
import { colors as t } from "./colors.js";
|
|
5
|
+
import { TypographyVariant as i } from "../types/typography.js";
|
|
6
|
+
import { SizeVariant as m } from "../types/common.js";
|
|
7
|
+
const h = {
|
|
8
|
+
default: {
|
|
9
|
+
display: r.flex,
|
|
10
|
+
alignItems: o.center,
|
|
11
|
+
gap: l[m.Sm]
|
|
12
|
+
},
|
|
13
|
+
currentPrice: {
|
|
14
|
+
default: {
|
|
15
|
+
fontSize: e.size[i.H3],
|
|
16
|
+
fontWeight: e.weight.medium,
|
|
17
|
+
lineHeight: e.line.height[i.H3],
|
|
18
|
+
color: t.text.default
|
|
19
|
+
}
|
|
20
|
+
},
|
|
21
|
+
oldPrice: {
|
|
22
|
+
default: {
|
|
23
|
+
fontSize: e.size[i.H4],
|
|
24
|
+
fontWeight: e.weight.medium,
|
|
25
|
+
lineHeight: e.line.height[i.H4],
|
|
26
|
+
color: t.text.disabled
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
};
|
|
30
|
+
export {
|
|
31
|
+
h as price
|
|
32
|
+
};
|
package/tokens/progressbar.js
CHANGED
|
@@ -1 +1,60 @@
|
|
|
1
|
-
|
|
1
|
+
import { colors as e } from "./colors.js";
|
|
2
|
+
import { spacing as i } from "./spacing.js";
|
|
3
|
+
import { flexAlignItems as r, display as t } from "./display.js";
|
|
4
|
+
import { font as l } from "./font.js";
|
|
5
|
+
import { values as o } from "./values.js";
|
|
6
|
+
import { calculateJustify as a } from "../utils/layout.js";
|
|
7
|
+
const g = {
|
|
8
|
+
styledProgressBar: {
|
|
9
|
+
default: {
|
|
10
|
+
width: "100%",
|
|
11
|
+
display: t.block
|
|
12
|
+
}
|
|
13
|
+
},
|
|
14
|
+
styledTrack: {
|
|
15
|
+
default: {
|
|
16
|
+
position: "relative",
|
|
17
|
+
width: "100%",
|
|
18
|
+
height: i.md,
|
|
19
|
+
overflow: "hidden",
|
|
20
|
+
backgroundColor: e.bg.default
|
|
21
|
+
}
|
|
22
|
+
},
|
|
23
|
+
styledDeterminateFill: {
|
|
24
|
+
default: {
|
|
25
|
+
display: t.flex,
|
|
26
|
+
alignItems: r.center,
|
|
27
|
+
justifyContent: a("end"),
|
|
28
|
+
paddingRight: i.none,
|
|
29
|
+
whiteSpace: "nowrap",
|
|
30
|
+
height: "100%",
|
|
31
|
+
backgroundColor: e.bg.fill.primary.default,
|
|
32
|
+
transition: o.transitions.progressbar.styledDeterminateFill
|
|
33
|
+
}
|
|
34
|
+
},
|
|
35
|
+
styledIndeterminateFill: {
|
|
36
|
+
default: {
|
|
37
|
+
backgroundColor: e.bg.fill.primary.default,
|
|
38
|
+
width: "30%",
|
|
39
|
+
height: "100%"
|
|
40
|
+
}
|
|
41
|
+
},
|
|
42
|
+
styledIndeterminateFillAnimations: {
|
|
43
|
+
animationName: "progressIndeterminate",
|
|
44
|
+
animationProps: "1.2s infinite ease-in-out"
|
|
45
|
+
},
|
|
46
|
+
styledPercentLabel: {
|
|
47
|
+
default: {
|
|
48
|
+
display: t.flex,
|
|
49
|
+
alignItems: r.center,
|
|
50
|
+
color: e.neutral.black,
|
|
51
|
+
fontSize: l.size.caption,
|
|
52
|
+
fontWeight: l.weight.normal,
|
|
53
|
+
height: "100%",
|
|
54
|
+
userSelect: "none"
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
};
|
|
58
|
+
export {
|
|
59
|
+
g as progressbar
|
|
60
|
+
};
|
package/tokens/radiogroup.js
CHANGED
|
@@ -1,4 +1,68 @@
|
|
|
1
|
-
|
|
1
|
+
import { borders as r } from "./borders.js";
|
|
2
|
+
import { spacing as e } from "./spacing.js";
|
|
3
|
+
import { display as d } from "./display.js";
|
|
4
|
+
import { font as i } from "./font.js";
|
|
5
|
+
import { cursors as t } from "./cursors.js";
|
|
6
|
+
import { colors as o } from "./colors.js";
|
|
7
|
+
import { FlexDirection as n } from "../types/layout.js";
|
|
8
|
+
import { TextAlign as l } from "../types/typography.js";
|
|
9
|
+
const b = {
|
|
10
|
+
input: {
|
|
11
|
+
position: "absolute",
|
|
12
|
+
opacity: 0,
|
|
13
|
+
pointerEvents: "none"
|
|
14
|
+
},
|
|
15
|
+
default: {
|
|
16
|
+
margin: e.none,
|
|
17
|
+
padding: e.none,
|
|
18
|
+
border: r.none
|
|
19
|
+
},
|
|
20
|
+
label: {
|
|
21
|
+
default: {
|
|
22
|
+
display: d.block,
|
|
23
|
+
padding: `${e.sm} ${e.md}`,
|
|
24
|
+
fontSize: i.size.p,
|
|
25
|
+
fontWeight: i.weight.medium,
|
|
26
|
+
cursor: t.inherit,
|
|
27
|
+
color: o.text.caption,
|
|
28
|
+
width: "100%",
|
|
29
|
+
height: "100%",
|
|
30
|
+
alignContent: l.Center,
|
|
31
|
+
textAlign: l.Center
|
|
32
|
+
},
|
|
33
|
+
disabled: {},
|
|
34
|
+
selected: {},
|
|
35
|
+
hover: {
|
|
36
|
+
"&:hover": {
|
|
37
|
+
color: o.neutral["grey.90"]
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
},
|
|
41
|
+
item: {
|
|
42
|
+
default: {
|
|
43
|
+
position: "relative",
|
|
44
|
+
cursor: t.pointer,
|
|
45
|
+
border: r.generic({
|
|
46
|
+
width: "1px",
|
|
47
|
+
type: "solid",
|
|
48
|
+
color: o.border.default
|
|
49
|
+
}),
|
|
50
|
+
"&:focus-within": {
|
|
51
|
+
outline: `2px solid ${o.border.focus}`,
|
|
52
|
+
outlineOffset: "-1px"
|
|
53
|
+
}
|
|
54
|
+
},
|
|
55
|
+
disabled: {
|
|
56
|
+
cursor: t.notAllowed,
|
|
57
|
+
backgroundColor: o.bg.default,
|
|
58
|
+
"&::after": {
|
|
59
|
+
content: '""',
|
|
60
|
+
position: "absolute",
|
|
61
|
+
top: e.none,
|
|
62
|
+
left: e.none,
|
|
63
|
+
width: "100%",
|
|
64
|
+
height: "100%",
|
|
65
|
+
background: `
|
|
2
66
|
linear-gradient(
|
|
3
67
|
to top right,
|
|
4
68
|
transparent 49%,
|
|
@@ -6,4 +70,41 @@
|
|
|
6
70
|
#E5E5E5 51%,
|
|
7
71
|
transparent 51%
|
|
8
72
|
)
|
|
9
|
-
`
|
|
73
|
+
`
|
|
74
|
+
}
|
|
75
|
+
},
|
|
76
|
+
selected: {
|
|
77
|
+
boxShadow: `0 0 0 1px ${o.neutral.black}`,
|
|
78
|
+
border: r.generic({
|
|
79
|
+
width: "1px",
|
|
80
|
+
type: "solid",
|
|
81
|
+
color: o.neutral.black
|
|
82
|
+
})
|
|
83
|
+
},
|
|
84
|
+
hover: {
|
|
85
|
+
"&:hover": {
|
|
86
|
+
border: r.generic({
|
|
87
|
+
width: "1px",
|
|
88
|
+
type: "solid",
|
|
89
|
+
color: o.neutral.black
|
|
90
|
+
})
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
},
|
|
94
|
+
layouts: {
|
|
95
|
+
column: {
|
|
96
|
+
display: "flex",
|
|
97
|
+
flexDirection: n.Column
|
|
98
|
+
},
|
|
99
|
+
row: {
|
|
100
|
+
display: "flex",
|
|
101
|
+
flexDirection: n.Row
|
|
102
|
+
},
|
|
103
|
+
grid: {
|
|
104
|
+
display: "grid"
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
};
|
|
108
|
+
export {
|
|
109
|
+
b as radiogroup
|
|
110
|
+
};
|