gd-design-library 0.3.3 → 0.3.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -0
- package/assets/icons/account_circle.js +17 -1
- package/assets/icons/arrow-down.js +15 -1
- package/assets/icons/arrow-forward.js +17 -1
- package/assets/icons/attachment.js +17 -1
- package/assets/icons/check.js +16 -1
- package/assets/icons/chevron-left.js +17 -1
- package/assets/icons/chevron-right.js +17 -1
- package/assets/icons/content-copy.js +17 -1
- package/assets/icons/cross.js +16 -1
- package/assets/icons/delete_outlined.js +17 -1
- package/assets/icons/dot.js +16 -1
- package/assets/icons/edit.js +17 -1
- package/assets/icons/error_outline.js +22 -1
- package/assets/icons/eye.js +17 -1
- package/assets/icons/favorite.js +17 -1
- package/assets/icons/favorite_outlined.js +17 -1
- package/assets/icons/file-copy.js +16 -1
- package/assets/icons/filter.js +17 -1
- package/assets/icons/folder.js +17 -1
- package/assets/icons/folderOpen.js +17 -1
- package/assets/icons/home.js +17 -1
- package/assets/icons/keyboard-arrow-down.js +12 -1
- package/assets/icons/local_shipping.js +17 -1
- package/assets/icons/minus.js +16 -1
- package/assets/icons/mobile_menu_button.js +17 -1
- package/assets/icons/paymentCard.js +17 -1
- package/assets/icons/plus.js +16 -1
- package/assets/icons/portrait.js +17 -1
- package/assets/icons/processing.js +17 -1
- package/assets/icons/ruler.js +17 -1
- package/assets/icons/search.js +17 -1
- package/assets/icons/shopping_bag.js +17 -1
- package/assets/icons/slash.js +17 -1
- package/assets/icons/star.js +16 -1
- package/assets/icons/starOutlined.js +16 -1
- package/assets/icons/thumb-down.js +17 -1
- package/assets/icons/thumb-up.js +17 -1
- package/assets/icons/toast_error.js +20 -1
- package/assets/icons/toast_info.js +16 -1
- package/assets/icons/toast_success.js +20 -1
- package/assets/icons/toast_warning.js +16 -1
- package/assets/icons/upload.js +17 -1
- package/assets/icons/volume-up.js +17 -1
- package/assets/icons/wifiTethering.js +17 -1
- package/assets/svg/checkbox_bg_checked.svg.js +5 -2
- package/assets/svg/checkbox_border.svg.js +5 -2
- package/assets/svg/checkbox_disabled_bg_checked.svg.js +5 -2
- package/assets/svg/radio_bg.svg.js +5 -2
- package/assets/svg/radio_bg_checked.svg.js +5 -2
- package/components/core/Breadcrumbs/Breadcrumbs.js +34 -1
- package/components/core/Breadcrumbs/BreadcrumbsStyled.js +58 -1
- package/components/core/Breadcrumbs/constants.js +4 -1
- package/components/core/Button/Button.js +43 -1
- package/components/core/Button/ButtonStyled.js +53 -1
- package/components/core/Button/constants.js +4 -1
- package/components/core/Dropdown/Dropdown.js +38 -1
- package/components/core/Dropdown/DropdownStyled.js +20 -1
- package/components/core/Dropdown/constants.js +4 -1
- package/components/core/Dropdown/hooks/useDropdown.js +12 -1
- package/components/core/DropdownItem/DropdownItem.js +38 -1
- package/components/core/DropdownItem/DropdownItemStyled.js +17 -1
- package/components/core/DropdownItem/constants.js +4 -1
- package/components/core/Form/Form.js +48 -1
- package/components/core/Form/FormStyled.js +16 -1
- package/components/core/Form/constants.js +4 -1
- package/components/core/Form/utils.js +34 -1
- package/components/core/Icon/Icon.d.ts +1 -1
- package/components/core/Icon/Icon.js +33 -1
- package/components/core/Icon/constants.js +92 -1
- package/components/core/Image/Image.js +39 -1
- package/components/core/Image/ImageStyled.js +53 -1
- package/components/core/Image/constants.js +4 -1
- package/components/core/InlineNotification/InlineNotification.js +38 -1
- package/components/core/InlineNotification/InlineNotificationStyled.js +29 -1
- package/components/core/InlineNotification/constants.js +21 -1
- package/components/core/Input/Input.js +72 -1
- package/components/core/Input/InputAdornment/InputAdornment.js +18 -1
- package/components/core/Input/InputAdornment/InputAdornmentStyled.js +15 -1
- package/components/core/Input/InputAdornment/constants.js +4 -1
- package/components/core/Input/InputHelper/InputHelper.js +22 -1
- package/components/core/Input/InputHelper/InputHelperStyled.js +17 -1
- package/components/core/Input/InputHelper/constants.js +4 -1
- package/components/core/Input/InputStyled.js +18 -1
- package/components/core/Input/InputWrapper/InputWrapper.js +22 -1
- package/components/core/Input/InputWrapper/InputWrapperStyled.js +21 -1
- package/components/core/Input/InputWrapper/constants.js +5 -1
- package/components/core/Input/constants.js +18 -1
- package/components/core/Input/useInputHandlers.js +31 -1
- package/components/core/InputFile/InputFile.js +40 -1
- package/components/core/InputFile/InputFileStyled.js +27 -1
- package/components/core/InputFile/constants.js +6 -1
- package/components/core/Label/Label.js +27 -1
- package/components/core/Label/LabelStyled.js +17 -1
- package/components/core/Label/constants.js +4 -1
- package/components/core/Link/Link.js +43 -1
- package/components/core/Link/LinkStyled.js +22 -1
- package/components/core/Link/constants.js +4 -1
- package/components/core/List/List.js +45 -1
- package/components/core/List/ListStyled.js +31 -1
- package/components/core/List/constants.js +4 -1
- package/components/core/Loader/Loader.js +28 -1
- package/components/core/Loader/LoaderStyled.js +41 -1
- package/components/core/Loader/constants.js +6 -1
- package/components/core/Loader/utils.js +37 -1
- package/components/core/Menu/Menu.js +100 -1
- package/components/core/Menu/MenuStyled.js +31 -1
- package/components/core/Menu/constants.js +24 -1
- package/components/core/Modal/Modal.js +47 -1
- package/components/core/Modal/ModalStyled.js +76 -1
- package/components/core/Modal/constants.js +4 -1
- package/components/core/Portal/Portal.d.ts +1 -2
- package/components/core/Portal/Portal.js +19 -1
- package/components/core/Portal/index.d.ts +1 -1
- package/components/core/Scroll/Scroll.js +40 -1
- package/components/core/Scroll/ScrollBar.js +68 -1
- package/components/core/Scroll/ScrollStyled.js +56 -1
- package/components/core/Scroll/constants.js +6 -1
- package/components/core/Scroll/utils.js +41 -1
- package/components/core/Select/Select.js +145 -1
- package/components/core/Select/SelectStyled.js +70 -1
- package/components/core/Select/constants.js +5 -1
- package/components/core/Select/hooks/useSelectContext.js +12 -1
- package/components/core/Separator/Separator.js +36 -1
- package/components/core/Separator/SeparatorStyled.js +61 -1
- package/components/core/Separator/constants.js +4 -1
- package/components/core/Skeleton/Skeleton.js +24 -1
- package/components/core/Skeleton/SkeletonStyled.js +28 -1
- package/components/core/Skeleton/constants.js +6 -1
- package/components/core/Slider/Slider.js +35 -1
- package/components/core/Slider/SliderStyled.js +20 -1
- package/components/core/Slider/constants.js +6 -1
- package/components/core/Snackbar/Snackbar.js +46 -1
- package/components/core/Snackbar/SnackbarManager.js +48 -1
- package/components/core/Snackbar/SnackbarStyled.js +109 -5
- package/components/core/Snackbar/constants.js +10 -1
- package/components/core/Switch/Switch.js +36 -1
- package/components/core/Switch/SwitchStyled.js +56 -1
- package/components/core/Switch/constants.js +4 -1
- package/components/core/Textarea/Textarea.js +41 -1
- package/components/core/Textarea/Textarea.types.d.ts +1 -3
- package/components/core/Textarea/Textarea.types.js +6 -1
- package/components/core/Textarea/TextareaStyled.js +29 -1
- package/components/core/Textarea/constants.js +4 -1
- package/components/core/Textarea/hooks/useDynamicHeightAdjustment.js +8 -1
- package/components/core/Textarea/hooks/useResizeObserver.js +24 -1
- package/components/core/Toggle/Toggle.js +37 -1
- package/components/core/Toggle/ToggleStyled.js +18 -1
- package/components/core/Toggle/constants.js +4 -1
- package/components/core/Tooltip/Tooltip.js +40 -1
- package/components/core/Tooltip/Tooltip.types.js +4 -1
- package/components/core/Tooltip/TooltipStyled.js +23 -1
- package/components/core/Tooltip/constants.js +6 -1
- package/components/core/Tooltip/utils.js +64 -1
- package/components/core/Typography/Typography.js +26 -1
- package/components/core/Typography/TypographyStyled.js +32 -1
- package/components/core/Typography/constants.js +4 -1
- package/components/core/Wrapper/Wrapper.js +20 -1
- package/components/core/Wrapper/WrapperStyled.js +23 -1
- package/components/core/Wrapper/constants.js +4 -1
- package/components/core/index.d.ts +1 -1
- package/components/core/types/roles.types.js +4 -1
- package/components/domainSpecific/Accordion/Accordion.js +35 -1
- package/components/domainSpecific/Accordion/AccordionContent/AccordionContent.js +21 -1
- package/components/domainSpecific/Accordion/AccordionHeader/AccordionHeader.js +29 -1
- package/components/domainSpecific/Accordion/AccordionItem/AccordionItem.js +26 -1
- package/components/domainSpecific/Accordion/AccordionStyled.js +39 -1
- package/components/domainSpecific/Accordion/constants.js +7 -1
- package/components/domainSpecific/Accordion/hooks/useAccordion.js +12 -1
- package/components/domainSpecific/Avatar/Avatar.js +44 -1
- package/components/domainSpecific/Avatar/AvatarStyled.js +63 -1
- package/components/domainSpecific/Avatar/constants.js +6 -1
- package/components/domainSpecific/Card/Card.js +47 -1
- package/components/domainSpecific/Card/CardButton/CardButton.js +25 -1
- package/components/domainSpecific/Card/CardButton/CardButtonStyled.js +18 -1
- package/components/domainSpecific/Card/CardButton/constants.js +4 -1
- package/components/domainSpecific/Card/CardCounter/CardCounter.js +26 -1
- package/components/domainSpecific/Card/CardCounter/CardCounterStyled.js +17 -1
- package/components/domainSpecific/Card/CardCounter/constants.js +4 -1
- package/components/domainSpecific/Card/CardDescription/CardDescription.js +24 -1
- package/components/domainSpecific/Card/CardDescription/CardDescriptionStyled.js +24 -1
- package/components/domainSpecific/Card/CardDescription/constants.js +10 -1
- package/components/domainSpecific/Card/CardImage/CardImage.js +26 -1
- package/components/domainSpecific/Card/CardImage/CardImageStyled.js +18 -1
- package/components/domainSpecific/Card/CardImage/constants.js +4 -1
- package/components/domainSpecific/Card/CardPrice/CardPrice.js +22 -1
- package/components/domainSpecific/Card/CardPrice/CardPriceStyled.js +18 -1
- package/components/domainSpecific/Card/CardPrice/constants.js +4 -1
- package/components/domainSpecific/Card/CardRating/CardRating.js +30 -1
- package/components/domainSpecific/Card/CardRating/CardRatingStyled.js +18 -1
- package/components/domainSpecific/Card/CardRating/constants.js +6 -1
- package/components/domainSpecific/Card/CardTitle/CardTitle.js +25 -1
- package/components/domainSpecific/Card/CardTitle/CardTitleStyled.js +24 -1
- package/components/domainSpecific/Card/CardTitle/constants.js +10 -1
- package/components/domainSpecific/Card/CartStyled.js +26 -1
- package/components/domainSpecific/Card/constants.js +4 -1
- package/components/domainSpecific/Carousel/Carousel.js +137 -1
- package/components/domainSpecific/Carousel/Carousel.types.js +6 -1
- package/components/domainSpecific/Carousel/CarouselStyled.js +143 -1
- package/components/domainSpecific/Carousel/constants.js +4 -1
- package/components/domainSpecific/ChatBubble/ChatBubble.js +26 -1
- package/components/domainSpecific/ChatBubble/ChatBubbleStyled.js +43 -1
- package/components/domainSpecific/ChatBubble/constants.js +4 -1
- package/components/domainSpecific/ContentCarousel/ContentCarousel.js +69 -1
- package/components/domainSpecific/ContentCarousel/ContentCarouselStyled.js +32 -1
- package/components/domainSpecific/ContentCarousel/constants.js +4 -1
- package/components/domainSpecific/Counter/Counter.js +55 -1
- package/components/domainSpecific/Counter/CounterStyled.js +27 -1
- package/components/domainSpecific/Counter/constants.js +8 -1
- package/components/domainSpecific/DragAndDropFiles/DragAndDropFiles.js +48 -1
- package/components/domainSpecific/DragAndDropFiles/DragAndDropFilesStyled.js +16 -1
- package/components/domainSpecific/DragAndDropFiles/constants.js +4 -1
- package/components/domainSpecific/DragAndDropFiles/hooks/useDragAndDrop/useDragAndDrop.js +49 -1
- package/components/domainSpecific/Header/Header.js +88 -1
- package/components/domainSpecific/Header/HeaderStyled.js +136 -1
- package/components/domainSpecific/Header/constants.js +4 -1
- package/components/domainSpecific/Price/Price.js +23 -1
- package/components/domainSpecific/Price/PriceStyled.js +42 -1
- package/components/domainSpecific/Price/constants.js +4 -1
- package/components/domainSpecific/ProgressBar/ProgressBar.js +29 -1
- package/components/domainSpecific/ProgressBar/ProgressBarStyled.js +70 -1
- package/components/domainSpecific/ProgressBar/constants.js +7 -1
- package/components/domainSpecific/RadioGroup/RadioGroup.js +54 -1
- package/components/domainSpecific/RadioGroup/RadioGroup.types.js +4 -1
- package/components/domainSpecific/RadioGroup/RadioGroupItem/RadioGroupItem.js +37 -1
- package/components/domainSpecific/RadioGroup/RadioGroupStyled.js +130 -1
- package/components/domainSpecific/RadioGroup/constants.js +5 -1
- package/components/domainSpecific/Rating/Rating.js +63 -1
- package/components/domainSpecific/Rating/RatingStyled.js +61 -1
- package/components/domainSpecific/Rating/constants.js +9 -1
- package/components/domainSpecific/Search/Search.js +58 -1
- package/components/domainSpecific/Search/SearchStyled.js +16 -1
- package/components/domainSpecific/Search/constants.js +7 -1
- package/components/domainSpecific/SearchModal/SearchInput/SearchInput.js +26 -1
- package/components/domainSpecific/SearchModal/SearchInput/SearchInputStyled.js +25 -1
- package/components/domainSpecific/SearchModal/SearchInput/constants.js +6 -1
- package/components/domainSpecific/SearchModal/SearchItems/SearchItems.js +48 -1
- package/components/domainSpecific/SearchModal/SearchItems/SearchItemsStyled.js +82 -1
- package/components/domainSpecific/SearchModal/SearchItems/constants.js +10 -1
- package/components/domainSpecific/SearchModal/SearchItems/utils.js +7 -1
- package/components/domainSpecific/SearchModal/SearchLoader/SearchLoader.js +20 -1
- package/components/domainSpecific/SearchModal/SearchLoader/SearchLoaderStyled.js +14 -1
- package/components/domainSpecific/SearchModal/SearchLoader/constants.js +4 -1
- package/components/domainSpecific/SearchModal/SearchModal.js +39 -1
- package/components/domainSpecific/SearchModal/SearchModalStyled.js +29 -1
- package/components/domainSpecific/SearchModal/constants.js +8 -1
- package/components/domainSpecific/Stepper/Stepper.js +42 -1
- package/components/domainSpecific/Stepper/StepperStyled.js +58 -1
- package/components/domainSpecific/Stepper/constants.js +4 -1
- package/components/domainSpecific/Stepper/utils.js +37 -1
- package/components/domainSpecific/Tabs/Tabs.js +40 -1
- package/components/domainSpecific/Tabs/TabsStyled.js +79 -1
- package/components/domainSpecific/Tabs/constants.js +6 -1
- package/components/index.types.js +4 -1
- package/components/layout/ChatContainer/ChatContainer.js +51 -1
- package/components/layout/ChatContainer/ChatContainer.types.d.ts +1 -6
- package/components/layout/ChatContainer/ChatContainerStyled.js +71 -1
- package/components/layout/ChatContainer/constants.js +4 -1
- package/components/layout/Column/Column.js +26 -1
- package/components/layout/Column/ColumnStyled.js +36 -1
- package/components/layout/Column/constants.js +4 -1
- package/components/layout/FlexContainer/FlexContainer.js +25 -1
- package/components/layout/FlexContainer/FlexContainerStyled.js +27 -1
- package/components/layout/FlexContainer/constants.js +4 -1
- package/components/layout/FlexContainer/utils.js +18 -1
- package/components/layout/Row/Row.js +26 -1
- package/components/layout/Row/RowStyled.js +36 -1
- package/components/layout/Row/constants.js +4 -1
- package/components/templates/SkeletonSearch/SkeletonSearch.js +30 -1
- package/components/templates/SkeletonSearch/SkeletonSearchStyled.js +97 -1
- package/components/templates/SkeletonSearch/constants.js +5 -1
- package/components/widget/DragAndDrop/DragAndDrop.js +74 -1
- package/components/widget/DragAndDrop/DragAndDropStyled.js +61 -1
- package/components/widget/DragAndDrop/constants.js +4 -1
- package/components/widget/DragAndDrop/utils/validators.js +17 -1
- package/constants/keyboard.js +10 -1
- package/constants/positioning.js +11 -1
- package/constants/timers.js +5 -1
- package/hooks/useAutoFocus/useAutoFocus.js +11 -1
- package/hooks/useCarousel/useCarousel.js +61 -1
- package/hooks/useClickOutside/useClickOutside.js +15 -1
- package/hooks/useKeyControls/useKeyControls.js +19 -1
- package/hooks/useMediaQuery/useMediaQuery.js +14 -1
- package/hooks/useTheme/useTheme.js +47 -1
- package/hooks/useTheme/useTheme.types.d.ts +1 -1
- package/index.js +351 -1
- package/package.json +17 -2
- package/stories/Introduction/ThemeJsonPreview.d.ts +2 -0
- package/stories/components/TokenViewer/TokenViewer.d.ts +2 -0
- package/stories/components/TokenViewer/TokenViewer.types.d.ts +12 -0
- package/stories/components/TokenViewer/TokenViewerStyled.d.ts +11 -0
- package/stories/components/TokenViewer/index.d.ts +1 -0
- package/tokens/accordion.js +72 -1
- package/tokens/animations.js +63 -1
- package/tokens/avatar.d.ts +22 -15
- package/tokens/avatar.js +153 -1
- package/tokens/borders.js +17 -1
- package/tokens/breadcrumbs.js +37 -1
- package/tokens/button.js +146 -1
- package/tokens/card.js +187 -1
- package/tokens/carousel.js +216 -1
- package/tokens/chat.js +118 -1
- package/tokens/chatbubble.js +56 -1
- package/tokens/colors.js +157 -1
- package/tokens/column.js +9 -1
- package/tokens/constants.js +4 -1
- package/tokens/counter.js +37 -1
- package/tokens/cursors.js +20 -1
- package/tokens/defaultTheme.d.ts +22 -15
- package/tokens/defaultTheme.js +113 -1
- package/tokens/display.js +19 -1
- package/tokens/draganddrop.js +87 -1
- package/tokens/draganddropfiles.js +6 -1
- package/tokens/flexContainer.js +13 -1
- package/tokens/font.js +52 -1
- package/tokens/form.js +6 -1
- package/tokens/header.js +123 -1
- package/tokens/icon.js +32 -1
- package/tokens/image.js +40 -1
- package/tokens/index.d.ts +22 -15
- package/tokens/index.js +142 -1
- package/tokens/inlineNotification.js +75 -1
- package/tokens/input.js +192 -1
- package/tokens/inputfile.js +12 -1
- package/tokens/label.js +9 -1
- package/tokens/link.js +66 -1
- package/tokens/list.js +87 -1
- package/tokens/loader.js +141 -1
- package/tokens/menu.js +19 -1
- package/tokens/modal.js +108 -1
- package/tokens/price.js +32 -1
- package/tokens/progressbar.js +60 -1
- package/tokens/radiogroup.js +103 -2
- package/tokens/radius.js +14 -1
- package/tokens/rating.js +73 -1
- package/tokens/reset.js +4 -1
- package/tokens/row.js +8 -1
- package/tokens/scroll.js +99 -1
- package/tokens/search.js +45 -1
- package/tokens/searchModal.js +159 -1
- package/tokens/select.js +99 -1
- package/tokens/separator.js +63 -1
- package/tokens/shadow.js +24 -1
- package/tokens/skeleton.js +77 -1
- package/tokens/slider.js +45 -1
- package/tokens/snackbar.js +167 -1
- package/tokens/spacing.js +13 -1
- package/tokens/stepper.js +147 -1
- package/tokens/switch.js +76 -1
- package/tokens/tabs.js +108 -1
- package/tokens/textarea.js +45 -1
- package/tokens/toggle.js +19 -1
- package/tokens/tooltip.js +69 -1
- package/tokens/types/index.types.js +4 -1
- package/tokens/typography.js +134 -1
- package/tokens/utils.js +85 -1
- package/tokens/values.js +73 -1
- package/tokens/wrapper.js +34 -1
- package/types/accesability.js +4 -1
- package/types/button.js +7 -1
- package/types/card.js +5 -1
- package/types/chat.js +4 -1
- package/types/common.js +5 -1
- package/types/cursors.js +4 -1
- package/types/input.js +6 -1
- package/types/label.js +4 -1
- package/types/layout.js +4 -1
- package/types/link.js +5 -1
- package/types/list.js +4 -1
- package/types/separator.js +5 -1
- package/types/skeleton.js +4 -1
- package/types/snackbar.js +5 -1
- package/types/stepper.js +5 -1
- package/types/typography.js +6 -1
- package/types/wrapper.js +4 -1
- package/utils/animationFrame.js +17 -1
- package/utils/common.js +4 -1
- package/utils/date.js +11 -1
- package/utils/focus.js +54 -1
- package/utils/helpers.js +42 -1
- package/utils/layout.js +32 -1
- package/utils/math.js +11 -1
- package/utils/setInRange.js +11 -1
- package/utils/uniqueKeys.js +4 -1
- package/components/layout/ChatContainer/ChatContainer.types.js +0 -1
- /package/{gd-design-library.css → assets/styles.css} +0 -0
package/tokens/tooltip.js
CHANGED
|
@@ -1 +1,69 @@
|
|
|
1
|
-
|
|
1
|
+
import { colors as t } from "./colors.js";
|
|
2
|
+
import { display as o } from "./display.js";
|
|
3
|
+
import { spacing as e } from "./spacing.js";
|
|
4
|
+
import { SizeVariant as a } from "../types/common.js";
|
|
5
|
+
const r = 7;
|
|
6
|
+
var l, n;
|
|
7
|
+
const d = {
|
|
8
|
+
default: {
|
|
9
|
+
position: "absolute",
|
|
10
|
+
display: o.block,
|
|
11
|
+
backgroundColor: t.neutral["grey.40"],
|
|
12
|
+
padding: `${(l = e) == null ? void 0 : l[a.Md]} ${(n = e) == null ? void 0 : n[a.Md]}`,
|
|
13
|
+
whiteSpace: "nowrap",
|
|
14
|
+
"&::after": {
|
|
15
|
+
position: "absolute",
|
|
16
|
+
content: '""',
|
|
17
|
+
border: `${r}px solid transparent`
|
|
18
|
+
},
|
|
19
|
+
"&.tooltip-bottom": {
|
|
20
|
+
transform: "translateX(-50%)",
|
|
21
|
+
"&::after": {
|
|
22
|
+
top: -r,
|
|
23
|
+
left: "50%",
|
|
24
|
+
borderLeftColor: t.neutral["grey.40"],
|
|
25
|
+
borderTopColor: t.neutral["grey.40"],
|
|
26
|
+
transform: "translateX(-50%) rotate(45deg)"
|
|
27
|
+
}
|
|
28
|
+
},
|
|
29
|
+
"&.tooltip-top": {
|
|
30
|
+
transform: "translateX(-50%)",
|
|
31
|
+
"&::after": {
|
|
32
|
+
bottom: -r,
|
|
33
|
+
left: "50%",
|
|
34
|
+
borderRightColor: t.neutral["grey.40"],
|
|
35
|
+
borderBottomColor: t.neutral["grey.40"],
|
|
36
|
+
transform: "translateX(-50%) rotate(45deg)"
|
|
37
|
+
}
|
|
38
|
+
},
|
|
39
|
+
"&.tooltip-left": {
|
|
40
|
+
transform: "translateY(-50%)",
|
|
41
|
+
"&::after": {
|
|
42
|
+
right: -r,
|
|
43
|
+
top: "50%",
|
|
44
|
+
borderRightColor: t.neutral["grey.40"],
|
|
45
|
+
borderTopColor: t.neutral["grey.40"],
|
|
46
|
+
transform: "translateY(-50%) rotate(45deg)"
|
|
47
|
+
}
|
|
48
|
+
},
|
|
49
|
+
"&.tooltip-right": {
|
|
50
|
+
transform: "translateY(-50%)",
|
|
51
|
+
"&::after": {
|
|
52
|
+
left: -r,
|
|
53
|
+
top: "50%",
|
|
54
|
+
borderLeftColor: t.neutral["grey.40"],
|
|
55
|
+
borderBottomColor: t.neutral["grey.40"],
|
|
56
|
+
transform: "translateY(-50%) rotate(45deg) "
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
},
|
|
60
|
+
wrapper: {
|
|
61
|
+
default: {
|
|
62
|
+
display: o.inlineBlock,
|
|
63
|
+
position: "relative"
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
};
|
|
67
|
+
export {
|
|
68
|
+
d as tooltip
|
|
69
|
+
};
|
|
@@ -1 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
var r = /* @__PURE__ */ ((e) => (e.Px = "px", e.Rem = "rem", e.Percents = "%", e.Em = "em", e))(r || {});
|
|
2
|
+
export {
|
|
3
|
+
r as Unit
|
|
4
|
+
};
|
package/tokens/typography.js
CHANGED
|
@@ -1 +1,134 @@
|
|
|
1
|
-
|
|
1
|
+
import { font as i } from "./font.js";
|
|
2
|
+
import { spacing as n } from "./spacing.js";
|
|
3
|
+
import { TypographyStyleVariant as o, TypographyVariant as e } from "../types/typography.js";
|
|
4
|
+
import { SizeVariant as t } from "../types/common.js";
|
|
5
|
+
const a = {
|
|
6
|
+
base: {
|
|
7
|
+
fontFamily: i.family
|
|
8
|
+
},
|
|
9
|
+
[e.Inherit]: {
|
|
10
|
+
fontSize: "inherit",
|
|
11
|
+
fontWeight: "inherit",
|
|
12
|
+
lineHeight: "inherit"
|
|
13
|
+
},
|
|
14
|
+
[e.H1]: {
|
|
15
|
+
fontSize: i.size[e.H1],
|
|
16
|
+
fontWeight: i.weight.normal,
|
|
17
|
+
lineHeight: i.line.height[e.H1],
|
|
18
|
+
marginTop: n[t.Xl],
|
|
19
|
+
marginBottom: n[t.Xl]
|
|
20
|
+
},
|
|
21
|
+
[e.H2]: {
|
|
22
|
+
fontSize: i.size[e.H2],
|
|
23
|
+
fontWeight: i.weight.normal,
|
|
24
|
+
lineHeight: i.line.height[e.H2],
|
|
25
|
+
marginTop: n[t.Lg],
|
|
26
|
+
marginBottom: n[t.Lg]
|
|
27
|
+
},
|
|
28
|
+
[e.H3]: {
|
|
29
|
+
fontSize: i.size[e.H3],
|
|
30
|
+
fontWeight: i.weight.normal,
|
|
31
|
+
lineHeight: i.line.height[e.H3],
|
|
32
|
+
marginTop: n[t.Md],
|
|
33
|
+
marginBottom: n[t.Md]
|
|
34
|
+
},
|
|
35
|
+
[e.H4]: {
|
|
36
|
+
fontSize: i.size[e.H4],
|
|
37
|
+
fontWeight: i.weight.normal,
|
|
38
|
+
lineHeight: i.line.height[e.H4],
|
|
39
|
+
marginTop: n[t.Md],
|
|
40
|
+
marginBottom: n[t.Md]
|
|
41
|
+
},
|
|
42
|
+
[e.H5]: {
|
|
43
|
+
fontSize: i.size[e.H5],
|
|
44
|
+
fontWeight: i.weight.normal,
|
|
45
|
+
lineHeight: i.line.height[e.H5],
|
|
46
|
+
marginTop: n[t.Sm],
|
|
47
|
+
marginBottom: n[t.Sm]
|
|
48
|
+
},
|
|
49
|
+
[e.H6]: {
|
|
50
|
+
fontSize: i.size[e.H6],
|
|
51
|
+
fontWeight: i.weight.normal,
|
|
52
|
+
lineHeight: i.line.height[e.H6],
|
|
53
|
+
marginTop: n[t.Sm],
|
|
54
|
+
marginBottom: n[t.Sm]
|
|
55
|
+
},
|
|
56
|
+
[e.Bold]: {
|
|
57
|
+
fontWeight: i.weight.bold
|
|
58
|
+
},
|
|
59
|
+
[e.Italic]: {
|
|
60
|
+
fontStyle: "italic"
|
|
61
|
+
},
|
|
62
|
+
[e.Body1]: {
|
|
63
|
+
fontSize: i.size[e.Body1],
|
|
64
|
+
fontWeight: i.weight.normal,
|
|
65
|
+
lineHeight: i.line.height[e.Body1]
|
|
66
|
+
},
|
|
67
|
+
[e.Body2]: {
|
|
68
|
+
fontSize: i.size[e.Body2],
|
|
69
|
+
fontWeight: i.weight.normal,
|
|
70
|
+
lineHeight: i.line.height[e.Body2]
|
|
71
|
+
},
|
|
72
|
+
[e.Caption]: {
|
|
73
|
+
fontSize: i.size[e.Caption],
|
|
74
|
+
fontWeight: i.weight.normal,
|
|
75
|
+
lineHeight: i.line.height[e.Caption]
|
|
76
|
+
},
|
|
77
|
+
[e.Display]: {
|
|
78
|
+
[t.Xs]: {
|
|
79
|
+
fontSize: i.size[t.Xs],
|
|
80
|
+
lineHeight: i.line.height[t.Xs]
|
|
81
|
+
},
|
|
82
|
+
[t.Sm]: {
|
|
83
|
+
fontSize: i.size[t.Sm],
|
|
84
|
+
lineHeight: i.line.height[t.Sm]
|
|
85
|
+
},
|
|
86
|
+
[t.Md]: {
|
|
87
|
+
fontSize: i.size[t.Md],
|
|
88
|
+
lineHeight: i.line.height[t.Md]
|
|
89
|
+
},
|
|
90
|
+
[t.Lg]: {
|
|
91
|
+
fontSize: i.size[t.Lg],
|
|
92
|
+
lineHeight: i.line.height[t.Lg]
|
|
93
|
+
},
|
|
94
|
+
[t.Xl]: {
|
|
95
|
+
fontSize: i.size[t.Xl],
|
|
96
|
+
lineHeight: i.line.height[t.Xl]
|
|
97
|
+
}
|
|
98
|
+
},
|
|
99
|
+
styleVariant: {
|
|
100
|
+
[o.Light]: {
|
|
101
|
+
fontWeight: i.weight.light
|
|
102
|
+
},
|
|
103
|
+
[o.Normal]: {
|
|
104
|
+
fontWeight: i.weight.normal
|
|
105
|
+
},
|
|
106
|
+
[o.Semibold]: {
|
|
107
|
+
fontWeight: i.weight.medium
|
|
108
|
+
},
|
|
109
|
+
[o.Bold]: {
|
|
110
|
+
fontWeight: i.weight.bold
|
|
111
|
+
},
|
|
112
|
+
[o.Italic]: {
|
|
113
|
+
fontStyle: "italic"
|
|
114
|
+
},
|
|
115
|
+
[o.Small]: {
|
|
116
|
+
fontSize: i.size[e.Body2]
|
|
117
|
+
},
|
|
118
|
+
[o.Uppercase]: {
|
|
119
|
+
textTransform: "uppercase"
|
|
120
|
+
},
|
|
121
|
+
[o.Lowercase]: {
|
|
122
|
+
textTransform: "lowercase"
|
|
123
|
+
},
|
|
124
|
+
[o.Underline]: {
|
|
125
|
+
textDecoration: "underline"
|
|
126
|
+
},
|
|
127
|
+
[o.Strike]: {
|
|
128
|
+
textDecoration: "line-through"
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
};
|
|
132
|
+
export {
|
|
133
|
+
a as typography
|
|
134
|
+
};
|
package/tokens/utils.js
CHANGED
|
@@ -1 +1,85 @@
|
|
|
1
|
-
|
|
1
|
+
import { keyframes as l } from "@emotion/react";
|
|
2
|
+
import { Unit as s } from "./types/index.types.js";
|
|
3
|
+
import { BOX_STYLE_PROPS as f } from "./constants.js";
|
|
4
|
+
import { colors as u } from "./colors.js";
|
|
5
|
+
import { spacing as i } from "./spacing.js";
|
|
6
|
+
import { borders as $ } from "./borders.js";
|
|
7
|
+
import { SizeVariant as m } from "../types/common.js";
|
|
8
|
+
const N = (t) => {
|
|
9
|
+
var r;
|
|
10
|
+
return {
|
|
11
|
+
// hover: { background: get(colors, `types.${color}.dark`, colors?.hover) },
|
|
12
|
+
// active: { background: get(colors, `types.${color}.darker`, colors?.active) },
|
|
13
|
+
// todo: rework border in object form
|
|
14
|
+
focus: {
|
|
15
|
+
outline: `${p(2, s.Rem)} solid ${(r = u) == null ? void 0 : r[t]}`
|
|
16
|
+
},
|
|
17
|
+
disabled: {
|
|
18
|
+
// background: colors?.disabled,
|
|
19
|
+
// color: colors?.disabledText,
|
|
20
|
+
cursor: "not-allowed",
|
|
21
|
+
border: 0
|
|
22
|
+
}
|
|
23
|
+
};
|
|
24
|
+
}, O = (t = {}) => {
|
|
25
|
+
const r = Object.entries(t).reduce((e, o) => {
|
|
26
|
+
const [n, c] = o;
|
|
27
|
+
for (const a in c)
|
|
28
|
+
e += `${n} { ${a}: ${c[a]} } `;
|
|
29
|
+
return e;
|
|
30
|
+
}, "");
|
|
31
|
+
return l`${r}`;
|
|
32
|
+
}, p = (t, r = s.Px) => {
|
|
33
|
+
const e = typeof t == "number" ? t : parseFloat(t);
|
|
34
|
+
switch (r) {
|
|
35
|
+
case s.Rem:
|
|
36
|
+
return `${e / 16}${r}`;
|
|
37
|
+
// Assuming 1rem = 16px
|
|
38
|
+
case s.Percents:
|
|
39
|
+
return `${e / 100}${r}`;
|
|
40
|
+
default:
|
|
41
|
+
return `${e}${r}`;
|
|
42
|
+
}
|
|
43
|
+
}, R = (t = m.Sm, r = s.Px) => {
|
|
44
|
+
const e = typeof t == "number" ? parseFloat(i[m.Xs]) * t : i[t];
|
|
45
|
+
return p(e, r);
|
|
46
|
+
}, T = (t, r = 1) => {
|
|
47
|
+
let e = 0, o = 0, n = 0;
|
|
48
|
+
return t.length === 4 ? (e = parseInt(t[1] + t[1], 16), o = parseInt(t[2] + t[2], 16), n = parseInt(t[3] + t[3], 16)) : t.length === 7 && (e = parseInt(t[1] + t[2], 16), o = parseInt(t[3] + t[4], 16), n = parseInt(t[5] + t[6], 16)), `rgba(${isNaN(e) ? 0 : e}, ${isNaN(o) ? 0 : o}, ${isNaN(n) ? 0 : n}, ${r})`;
|
|
49
|
+
}, B = ({
|
|
50
|
+
inset: t,
|
|
51
|
+
borderRadius: r,
|
|
52
|
+
border: e = $.focus
|
|
53
|
+
}) => ({
|
|
54
|
+
position: "relative",
|
|
55
|
+
"&::after": {
|
|
56
|
+
content: '""',
|
|
57
|
+
position: "absolute",
|
|
58
|
+
top: t,
|
|
59
|
+
right: t,
|
|
60
|
+
bottom: t,
|
|
61
|
+
left: t,
|
|
62
|
+
border: e,
|
|
63
|
+
borderRadius: r
|
|
64
|
+
}
|
|
65
|
+
}), j = (t = {}) => Object.entries(t).reduce((r, [e, o]) => {
|
|
66
|
+
const n = e.replace("$", ""), c = f.includes(n);
|
|
67
|
+
return typeof o < "u" && (r[c ? "boxStyles" : "restProps"][n] = o), r;
|
|
68
|
+
}, {
|
|
69
|
+
boxStyles: {},
|
|
70
|
+
restProps: {}
|
|
71
|
+
}), C = (t = {}) => Object.entries(t).reduce((r, [e, o]) => {
|
|
72
|
+
const n = f.includes(e) ? `$${e}` : e;
|
|
73
|
+
return o && (r[n] = o), r;
|
|
74
|
+
}, {}), F = (t, r = "data:image/svg+xml") => `url("${r},${encodeURIComponent(t)}")`;
|
|
75
|
+
export {
|
|
76
|
+
O as convertJsonToCssKeyframeCss,
|
|
77
|
+
C as convertToInlineBoxStyles,
|
|
78
|
+
p as convertToUnit,
|
|
79
|
+
N as generateStateStyles,
|
|
80
|
+
j as getBoxStyles,
|
|
81
|
+
B as getFocusStyles,
|
|
82
|
+
F as getImgSrc,
|
|
83
|
+
R as getSpacing,
|
|
84
|
+
T as hexToRgba
|
|
85
|
+
};
|
package/tokens/values.js
CHANGED
|
@@ -1 +1,73 @@
|
|
|
1
|
-
|
|
1
|
+
import { convertToUnit as r } from "./utils.js";
|
|
2
|
+
import { radius as s } from "./radius.js";
|
|
3
|
+
import { borders as t } from "./borders.js";
|
|
4
|
+
import { Unit as o } from "./types/index.types.js";
|
|
5
|
+
import { Z_INDEX as a } from "../constants/positioning.js";
|
|
6
|
+
import { SizeVariant as e } from "../types/common.js";
|
|
7
|
+
const u = {
|
|
8
|
+
// Border tokens
|
|
9
|
+
borderThin: r(1, o.Rem),
|
|
10
|
+
borderMedium: r(2, o.Rem),
|
|
11
|
+
borderThick: r(4, o.Rem),
|
|
12
|
+
borderNone: t.none,
|
|
13
|
+
border: {
|
|
14
|
+
radius: {
|
|
15
|
+
none: s.none
|
|
16
|
+
}
|
|
17
|
+
},
|
|
18
|
+
// Layout tokens
|
|
19
|
+
screenSmall: "480px",
|
|
20
|
+
screenMedium: "768px",
|
|
21
|
+
screenLarge: "1024px",
|
|
22
|
+
screenXLarge: "1280px",
|
|
23
|
+
responsiveSmall: "20%",
|
|
24
|
+
responsiveMedium: "40%",
|
|
25
|
+
responsiveLarge: "60%",
|
|
26
|
+
responsiveXLarge: "80%",
|
|
27
|
+
zIndex: {
|
|
28
|
+
snackbar: a.HIGH
|
|
29
|
+
},
|
|
30
|
+
transitions: {
|
|
31
|
+
stepper: {
|
|
32
|
+
separator: "border 0.2s ease-in-out",
|
|
33
|
+
stepIcon: "background 0.2s ease-in-out, border 0.2s ease-in-out"
|
|
34
|
+
},
|
|
35
|
+
button: {
|
|
36
|
+
default: "background 0.2s ease-in-out, border 0.2s ease-in-out"
|
|
37
|
+
},
|
|
38
|
+
scroll: {
|
|
39
|
+
scrollbar: "opacity 0.2s ease-in-out",
|
|
40
|
+
thumb: "top 0.1s cubic-bezier(0.4,0,0.2,1)"
|
|
41
|
+
},
|
|
42
|
+
rating: {
|
|
43
|
+
label: "transform 0.2s ease-in-out"
|
|
44
|
+
},
|
|
45
|
+
progressbar: {
|
|
46
|
+
styledDeterminateFill: "width 300ms ease"
|
|
47
|
+
},
|
|
48
|
+
accordion: {
|
|
49
|
+
toggle: "0.15s ease-out",
|
|
50
|
+
icon: "transform 0.3s ease"
|
|
51
|
+
},
|
|
52
|
+
select: {
|
|
53
|
+
arrowIconWrapper: "transform 0.3s ease"
|
|
54
|
+
}
|
|
55
|
+
},
|
|
56
|
+
transform: {
|
|
57
|
+
rotateUp: "rotate(180deg)",
|
|
58
|
+
rotateReset: "rotate(0deg)"
|
|
59
|
+
},
|
|
60
|
+
separator: {
|
|
61
|
+
thickness: {
|
|
62
|
+
[e.Xs]: "0.5px",
|
|
63
|
+
[e.Sm]: "1px",
|
|
64
|
+
[e.Md]: "2px",
|
|
65
|
+
[e.Lg]: "3px",
|
|
66
|
+
[e.Xl]: "4px",
|
|
67
|
+
[e.Xxl]: "5px"
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
};
|
|
71
|
+
export {
|
|
72
|
+
u as values
|
|
73
|
+
};
|
package/tokens/wrapper.js
CHANGED
|
@@ -1 +1,34 @@
|
|
|
1
|
-
|
|
1
|
+
import { WrapperVariant as e } from "../types/wrapper.js";
|
|
2
|
+
import { Z_INDEX as t } from "../constants/positioning.js";
|
|
3
|
+
const l = {
|
|
4
|
+
default: {
|
|
5
|
+
justifyContent: "center",
|
|
6
|
+
alignItems: "center",
|
|
7
|
+
backdropFilter: "blur(2px)",
|
|
8
|
+
backgroundColor: "rgba(0, 0, 0, 0.1)"
|
|
9
|
+
},
|
|
10
|
+
[e.Inline]: {
|
|
11
|
+
display: "inline-flex"
|
|
12
|
+
},
|
|
13
|
+
[e.Section]: {
|
|
14
|
+
display: "flex",
|
|
15
|
+
top: 0,
|
|
16
|
+
left: 0,
|
|
17
|
+
width: "100%",
|
|
18
|
+
height: "100%",
|
|
19
|
+
position: "absolute",
|
|
20
|
+
zIndex: t.HIGH
|
|
21
|
+
},
|
|
22
|
+
[e.FullPage]: {
|
|
23
|
+
display: "flex",
|
|
24
|
+
position: "fixed",
|
|
25
|
+
top: 0,
|
|
26
|
+
left: 0,
|
|
27
|
+
width: "100vw",
|
|
28
|
+
height: "100vh",
|
|
29
|
+
zIndex: t.TOP
|
|
30
|
+
}
|
|
31
|
+
};
|
|
32
|
+
export {
|
|
33
|
+
l as wrapper
|
|
34
|
+
};
|
package/types/accesability.js
CHANGED
|
@@ -1 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
var r = /* @__PURE__ */ ((i) => (i[i.Default = 0] = "Default", i[i.Disabled = -1] = "Disabled", i[i.HighPriority = 1] = "HighPriority", i))(r || {});
|
|
2
|
+
export {
|
|
3
|
+
r as TabIndex
|
|
4
|
+
};
|
package/types/button.js
CHANGED
|
@@ -1 +1,7 @@
|
|
|
1
|
-
|
|
1
|
+
var e = /* @__PURE__ */ ((r) => (r.Contained = "contained", r.Outlined = "outlined", r.Text = "text", r.Inherit = "inherit", r))(e || {}), i = /* @__PURE__ */ ((r) => (r.Primary = "primary", r.Secondary = "secondary", r))(i || {}), b = /* @__PURE__ */ ((r) => (r.Button = "button", r.Submit = "submit", r.Reset = "reset", r))(b || {}), c = /* @__PURE__ */ ((r) => (r.Button = "button", r.Link = "link", r.Checkbox = "checkbox", r.Switch = "switch", r.Tab = "tab", r))(c || {});
|
|
2
|
+
export {
|
|
3
|
+
i as ButtonColorVariant,
|
|
4
|
+
c as ButtonRole,
|
|
5
|
+
b as ButtonTypes,
|
|
6
|
+
e as ButtonVariant
|
|
7
|
+
};
|
package/types/card.js
CHANGED
|
@@ -1 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
var t = /* @__PURE__ */ ((r) => (r.Vertical = "Vertical", r.Horizontal = "Horizontal", r))(t || {}), e = /* @__PURE__ */ ((r) => (r.Default = "default", r.Sm = "sm", r))(e || {});
|
|
2
|
+
export {
|
|
3
|
+
e as CardSizeVariant,
|
|
4
|
+
t as CardVariant
|
|
5
|
+
};
|
package/types/chat.js
CHANGED
|
@@ -1 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
var r = /* @__PURE__ */ ((e) => (e.Auto = "auto", e.Desktop = "desktop", e.Drawer = "drawer", e))(r || {});
|
|
2
|
+
export {
|
|
3
|
+
r as ChatLayoutVariant
|
|
4
|
+
};
|
package/types/common.js
CHANGED
|
@@ -1 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
var x = /* @__PURE__ */ ((l) => (l.Xs = "xs", l.Sm = "sm", l.Md = "md", l.Lg = "lg", l.Xl = "xl", l.Xxl = "xxl", l))(x || {}), r = /* @__PURE__ */ ((l) => (l.Vertical = "vertical", l.Horizontal = "horizontal", l))(r || {});
|
|
2
|
+
export {
|
|
3
|
+
r as Orientation,
|
|
4
|
+
x as SizeVariant
|
|
5
|
+
};
|
package/types/cursors.js
CHANGED
|
@@ -1 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
var e = /* @__PURE__ */ ((t) => (t.Default = "default", t.Pointer = "pointer", t.Text = "text", t.Move = "move", t.Wait = "wait", t.Crosshair = "crosshair", t.NotAllowed = "not-allowed", t.Help = "help", t.ZoomIn = "zoom-in", t.ZoomOut = "zoom-out", t.Grab = "grab", t.Grabbing = "grabbing", t))(e || {});
|
|
2
|
+
export {
|
|
3
|
+
e as Cursors
|
|
4
|
+
};
|
package/types/input.js
CHANGED
|
@@ -1 +1,6 @@
|
|
|
1
|
-
|
|
1
|
+
var r = /* @__PURE__ */ ((o) => (o.Text = "text", o.Password = "password", o.Email = "email", o.Search = "search", o.Url = "url", o.Tel = "tel", o.Date = "date", o.Time = "time", o.Month = "month", o.Week = "week", o.Color = "color", o.Range = "range", o.Number = "number", o.Radio = "radio", o.Checkbox = "checkbox", o))(r || {}), c = /* @__PURE__ */ ((o) => (o.Primary = "primary", o.Success = "success", o.Warning = "warning", o.Error = "error", o))(c || {}), e = /* @__PURE__ */ ((o) => (o.Textbox = "textbox", o.Checkbox = "checkbox", o.Radio = "radio", o.Radiogroup = "radiogroup", o.Combobox = "combobox", o))(e || {});
|
|
2
|
+
export {
|
|
3
|
+
c as InputColorVariant,
|
|
4
|
+
e as InputRole,
|
|
5
|
+
r as InputVariantType
|
|
6
|
+
};
|
package/types/label.js
CHANGED
|
@@ -1 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
var t = /* @__PURE__ */ ((r) => (r.Left = "left", r.Right = "right", r))(t || {});
|
|
2
|
+
export {
|
|
3
|
+
t as LabelPosition
|
|
4
|
+
};
|
package/types/layout.js
CHANGED
|
@@ -1 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
var e = /* @__PURE__ */ ((r) => (r.Row = "row", r.RowReverse = "row-reverse", r.Column = "column", r.ColumnReverse = "column-reverse", r))(e || {});
|
|
2
|
+
export {
|
|
3
|
+
e as FlexDirection
|
|
4
|
+
};
|
package/types/link.js
CHANGED
|
@@ -1 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
var r = /* @__PURE__ */ ((e) => (e.Primary = "primary", e.Secondary = "secondary", e.Inverted = "inverted", e.Inherit = "inherit", e))(r || {}), m = /* @__PURE__ */ ((e) => (e.Blank = "_blank", e.Self = "_self", e.Parent = "_parent", e.Top = "_top", e.Framename = "framename", e))(m || {});
|
|
2
|
+
export {
|
|
3
|
+
m as LinkTarget,
|
|
4
|
+
r as LinkVariant
|
|
5
|
+
};
|
package/types/list.js
CHANGED
|
@@ -1 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
var r = /* @__PURE__ */ ((e) => (e.OrderedCircle = "ordered-circle", e.OrderedSquare = "ordered-square", e.UnorderedDot = "unordered-dot", e.UnorderedCheck = "unordered-check", e))(r || {});
|
|
2
|
+
export {
|
|
3
|
+
r as ListVariant
|
|
4
|
+
};
|
package/types/separator.js
CHANGED
|
@@ -1 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
var e = /* @__PURE__ */ ((d) => (d.Solid = "solid", d.Dash = "dashed", d.Dot = "dotted", d))(e || {}), t = /* @__PURE__ */ ((d) => (d.Start = "start", d.Center = "center", d.End = "end", d))(t || {});
|
|
2
|
+
export {
|
|
3
|
+
t as SeparatorLabelPosition,
|
|
4
|
+
e as SeparatorVariant
|
|
5
|
+
};
|
package/types/skeleton.js
CHANGED
|
@@ -1 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
var u = /* @__PURE__ */ ((r) => (r.Rectangular = "rectangular", r.Rounded = "rounded", r.Circular = "circular", r))(u || {});
|
|
2
|
+
export {
|
|
3
|
+
u as SkeletonVariant
|
|
4
|
+
};
|
package/types/snackbar.js
CHANGED
|
@@ -1 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
var e = /* @__PURE__ */ ((t) => (t.Success = "success", t.Error = "error", t.Warning = "warning", t.Info = "info", t))(e || {}), o = /* @__PURE__ */ ((t) => (t.TopLeft = "top-left", t.TopCenter = "top-center", t.TopRight = "top-right", t.BottomLeft = "bottom-left", t.BottomCenter = "bottom-center", t.BottomRight = "bottom-right", t))(o || {});
|
|
2
|
+
export {
|
|
3
|
+
o as SnackbarPosition,
|
|
4
|
+
e as SnackbarVariant
|
|
5
|
+
};
|
package/types/stepper.js
CHANGED
|
@@ -1 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
var e = /* @__PURE__ */ ((r) => (r.Active = "active", r.Inactive = "inactive", r.Complete = "complete", r))(e || {}), c = /* @__PURE__ */ ((r) => (r.Error = "error", r.Success = "success", r))(c || {});
|
|
2
|
+
export {
|
|
3
|
+
e as StepStatus,
|
|
4
|
+
c as StepValidationStatus
|
|
5
|
+
};
|
package/types/typography.js
CHANGED
|
@@ -1 +1,6 @@
|
|
|
1
|
-
|
|
1
|
+
var s = /* @__PURE__ */ ((e) => (e.Start = "start", e.End = "end", e.Center = "center", e.Left = "left", e.Right = "right", e.Justify = "justify", e.MatchParent = "match-parent", e.Inherit = "inherit", e.Initial = "initial", e.Revert = "revert", e.RevertLayer = "revert-layer", e.Unset = "unset", e.WebkitCenter = "-webkit-center", e.MozCenter = "-moz-center", e))(s || {}), c = /* @__PURE__ */ ((e) => (e.H1 = "h1", e.H2 = "h2", e.H3 = "h3", e.H4 = "h4", e.H5 = "h5", e.H6 = "h6", e.Body1 = "p", e.Body2 = "small", e.Display = "div", e.Italic = "i", e.Bold = "strong", e.Sup = "sup", e.Sub = "sub", e.Caption = "caption", e.Inherit = "span", e))(c || {}), d = /* @__PURE__ */ ((e) => (e.Bold = "bold", e.Semibold = "semibold", e.Normal = "normal", e.Light = "light", e.Italic = "italic", e.Small = "small", e.Uppercase = "uppercase", e.Lowercase = "lowercase", e.Underline = "underline", e.Strike = "strike", e))(d || {});
|
|
2
|
+
export {
|
|
3
|
+
s as TextAlign,
|
|
4
|
+
d as TypographyStyleVariant,
|
|
5
|
+
c as TypographyVariant
|
|
6
|
+
};
|
package/types/wrapper.js
CHANGED
|
@@ -1 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
var l = /* @__PURE__ */ ((e) => (e.Inline = "inline", e.Section = "section", e.FullPage = "fullPage", e))(l || {});
|
|
2
|
+
export {
|
|
3
|
+
l as WrapperVariant
|
|
4
|
+
};
|
package/utils/animationFrame.js
CHANGED
|
@@ -1 +1,17 @@
|
|
|
1
|
-
|
|
1
|
+
import { useRef as c, useEffect as u } from "react";
|
|
2
|
+
function f(r, n = 0) {
|
|
3
|
+
const t = c(r), o = c(0);
|
|
4
|
+
t.current = r, u(() => {
|
|
5
|
+
let e;
|
|
6
|
+
function i() {
|
|
7
|
+
const a = Date.now();
|
|
8
|
+
(!n || a - o.current >= n) && (o.current = a, t.current()), e = requestAnimationFrame(i);
|
|
9
|
+
}
|
|
10
|
+
return e = requestAnimationFrame(i), () => {
|
|
11
|
+
cancelAnimationFrame(e);
|
|
12
|
+
};
|
|
13
|
+
}, [n]);
|
|
14
|
+
}
|
|
15
|
+
export {
|
|
16
|
+
f as useAnimationFrame
|
|
17
|
+
};
|
package/utils/common.js
CHANGED
package/utils/date.js
CHANGED
|
@@ -1 +1,11 @@
|
|
|
1
|
-
|
|
1
|
+
const o = ({
|
|
2
|
+
date: t,
|
|
3
|
+
locale: e = "en-US",
|
|
4
|
+
format: n = {
|
|
5
|
+
day: "numeric",
|
|
6
|
+
month: "short"
|
|
7
|
+
}
|
|
8
|
+
}) => new Date(t).toLocaleDateString(e, n);
|
|
9
|
+
export {
|
|
10
|
+
o as formatDate
|
|
11
|
+
};
|