gd-design-library 0.3.4 → 0.4.0
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/CHANGELOG.md +86 -17
- 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 +54 -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.d.ts +1 -12
- 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 +12 -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 +48 -1
- package/index.js +350 -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/breakpoints.d.ts +8 -0
- package/tokens/breakpoints.js +12 -0
- package/tokens/button.js +146 -1
- package/tokens/card.d.ts +5 -1
- package/tokens/card.js +191 -1
- package/tokens/carousel.js +216 -1
- package/tokens/chat.d.ts +4 -0
- package/tokens/chat.js +122 -1
- package/tokens/chatbubble.d.ts +1 -3
- package/tokens/chatbubble.js +75 -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 +154 -47
- package/tokens/defaultTheme.js +123 -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 +71 -47
- package/tokens/index.js +145 -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 +25 -1
- package/tokens/skeleton.js +77 -1
- package/tokens/slider.js +45 -1
- package/tokens/snackbar.d.ts +30 -28
- package/tokens/snackbar.js +169 -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.d.ts +6 -0
- package/tokens/utils.js +88 -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/carousel.d.ts +12 -1
- package/types/carousel.js +6 -0
- package/types/chat.js +4 -1
- package/types/common.js +5 -1
- package/types/cursors.js +4 -1
- package/types/index.d.ts +1 -0
- 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/domainSpecific/Carousel/Carousel.types.js +0 -1
- package/components/layout/ChatContainer/ChatContainer.types.js +0 -1
- /package/{gd-design-library.css → assets/styles.css} +0 -0
|
@@ -1 +1,58 @@
|
|
|
1
|
-
"use client";
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx as n } from "@emotion/react/jsx-runtime";
|
|
3
|
+
import { forwardRef as l } from "react";
|
|
4
|
+
import { get as c } from "../../../utils/helpers.js";
|
|
5
|
+
const b = l((e, s) => {
|
|
6
|
+
const {
|
|
7
|
+
theme: {
|
|
8
|
+
breadcrumbs: t
|
|
9
|
+
} = {},
|
|
10
|
+
$bordered: r = !1,
|
|
11
|
+
styles: o = {},
|
|
12
|
+
...m
|
|
13
|
+
} = e, d = [c(t, "default", {}), r ? c(t, "bordered", {}) : {}, o];
|
|
14
|
+
return /* @__PURE__ */ n("div", { css: d, ...m, ref: s });
|
|
15
|
+
}), i = (e) => {
|
|
16
|
+
const {
|
|
17
|
+
theme: {
|
|
18
|
+
breadcrumbs: s
|
|
19
|
+
} = {},
|
|
20
|
+
styles: t = {},
|
|
21
|
+
...r
|
|
22
|
+
} = e, o = [c(s, "item", {}), t];
|
|
23
|
+
return /* @__PURE__ */ n("div", { css: o, ...r });
|
|
24
|
+
}, u = (e) => {
|
|
25
|
+
const {
|
|
26
|
+
theme: {
|
|
27
|
+
breadcrumbs: s
|
|
28
|
+
} = {},
|
|
29
|
+
styles: t = {},
|
|
30
|
+
...r
|
|
31
|
+
} = e, o = [c(s, "separator", {}), t];
|
|
32
|
+
return /* @__PURE__ */ n("div", { css: o, ...r });
|
|
33
|
+
}, S = (e) => {
|
|
34
|
+
const {
|
|
35
|
+
theme: {
|
|
36
|
+
breadcrumbs: s
|
|
37
|
+
} = {},
|
|
38
|
+
styles: t = {},
|
|
39
|
+
...r
|
|
40
|
+
} = e, o = [c(s, "item.itemStart", {}), t];
|
|
41
|
+
return /* @__PURE__ */ n("div", { css: o, ...r });
|
|
42
|
+
}, f = (e) => {
|
|
43
|
+
const {
|
|
44
|
+
theme: {
|
|
45
|
+
breadcrumbs: s
|
|
46
|
+
} = {},
|
|
47
|
+
styles: t = {},
|
|
48
|
+
...r
|
|
49
|
+
} = e, o = [c(s, "item.itemEnd", {}), t];
|
|
50
|
+
return /* @__PURE__ */ n("div", { css: o, ...r });
|
|
51
|
+
};
|
|
52
|
+
export {
|
|
53
|
+
i as BreadcrumbItemStyled,
|
|
54
|
+
b as BreadcrumbsStyled,
|
|
55
|
+
f as ItemEndStyled,
|
|
56
|
+
S as ItemStartStyled,
|
|
57
|
+
u as SeparatorStyled
|
|
58
|
+
};
|
|
@@ -1 +1,43 @@
|
|
|
1
|
-
"use client";
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsxs as $, jsx as e } from "@emotion/react/jsx-runtime";
|
|
3
|
+
import { forwardRef as x } from "react";
|
|
4
|
+
import { convertToInlineBoxStyles as b } from "../../../tokens/utils.js";
|
|
5
|
+
import { COMPONENT_NAME as t } from "./constants.js";
|
|
6
|
+
import { ButtonStyled as C, StartIconStyled as T, ContentStyled as E, EndIconStyled as N } from "./ButtonStyled.js";
|
|
7
|
+
import { useTheme as v } from "../../../hooks/useTheme/useTheme.js";
|
|
8
|
+
import { ButtonColorVariant as P, ButtonVariant as j, ButtonTypes as M, ButtonRole as O } from "../../../types/button.js";
|
|
9
|
+
import { TabIndex as R } from "../../../types/accesability.js";
|
|
10
|
+
const V = x((s, c) => {
|
|
11
|
+
const {
|
|
12
|
+
theme: o
|
|
13
|
+
} = v(), {
|
|
14
|
+
color: m = P.Primary,
|
|
15
|
+
variant: u = j.Contained,
|
|
16
|
+
children: n,
|
|
17
|
+
iconStart: r = null,
|
|
18
|
+
iconEnd: a = null,
|
|
19
|
+
type: f = M.Button,
|
|
20
|
+
disabled: p = !1,
|
|
21
|
+
isIcon: y = !1,
|
|
22
|
+
ariaLabel: l,
|
|
23
|
+
ariaPressed: i,
|
|
24
|
+
role: B = O.Button,
|
|
25
|
+
fullWidth: h = !1,
|
|
26
|
+
tabIndex: I = R.Default,
|
|
27
|
+
onClick: S,
|
|
28
|
+
...d
|
|
29
|
+
} = s;
|
|
30
|
+
return /* @__PURE__ */ $(C, { ref: c, $variant: u, $color: m, $isIcon: y, $fullWidth: h, disabled: p, onClick: S, type: f, role: B, theme: o, tabIndex: I, "data-testid": t, ...b(d), ...l ? {
|
|
31
|
+
"aria-label": l
|
|
32
|
+
} : {}, ...i ? {
|
|
33
|
+
"aria-pressed": i
|
|
34
|
+
} : {}, ...d, children: [
|
|
35
|
+
r ? /* @__PURE__ */ e(T, { theme: o, "data-testid": `${t}-icon-start`, children: r }) : null,
|
|
36
|
+
n ? /* @__PURE__ */ e(E, { theme: o, "data-testid": `${t}-content`, children: n }) : null,
|
|
37
|
+
a ? /* @__PURE__ */ e(N, { theme: o, "data-testid": `${t}-icon-end`, children: a }) : null
|
|
38
|
+
] });
|
|
39
|
+
});
|
|
40
|
+
V.displayName = t;
|
|
41
|
+
export {
|
|
42
|
+
V as Button
|
|
43
|
+
};
|
|
@@ -1 +1,53 @@
|
|
|
1
|
-
"use client";
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx as r } from "@emotion/react/jsx-runtime";
|
|
3
|
+
import { forwardRef as f } from "react";
|
|
4
|
+
import { getBoxStyles as y } from "../../../tokens/utils.js";
|
|
5
|
+
import { ButtonVariant as S, ButtonColorVariant as b } from "../../../types/button.js";
|
|
6
|
+
import { get as o } from "../../../utils/helpers.js";
|
|
7
|
+
const $ = f((n, e) => {
|
|
8
|
+
const {
|
|
9
|
+
theme: {
|
|
10
|
+
button: t
|
|
11
|
+
} = {},
|
|
12
|
+
$isIcon: s,
|
|
13
|
+
$fullWidth: c,
|
|
14
|
+
$variant: l = S.Contained,
|
|
15
|
+
$color: a = b.Primary,
|
|
16
|
+
styles: m = {},
|
|
17
|
+
...u
|
|
18
|
+
} = n, {
|
|
19
|
+
boxStyles: p,
|
|
20
|
+
restProps: d
|
|
21
|
+
} = y(u), i = [o(t, "default", {}), o(t, [l, a], {}), p, s ? o(t, "icon", {}) : {}, c ? o(t, "fullWidth", {}) : {}, m];
|
|
22
|
+
return /* @__PURE__ */ r("button", { css: i, ...d, ref: e });
|
|
23
|
+
}), g = (n) => {
|
|
24
|
+
const {
|
|
25
|
+
theme: {
|
|
26
|
+
button: e
|
|
27
|
+
} = {},
|
|
28
|
+
...t
|
|
29
|
+
} = n, s = o(e, "content", {});
|
|
30
|
+
return /* @__PURE__ */ r("span", { css: o(s, "default", {}), className: "gd-button__content", ...t });
|
|
31
|
+
}, C = (n) => {
|
|
32
|
+
const {
|
|
33
|
+
theme: {
|
|
34
|
+
button: e
|
|
35
|
+
} = {},
|
|
36
|
+
...t
|
|
37
|
+
} = n, s = o(e, "startIcon", {});
|
|
38
|
+
return /* @__PURE__ */ r("span", { css: o(s, "default", {}), ...t });
|
|
39
|
+
}, N = (n) => {
|
|
40
|
+
const {
|
|
41
|
+
theme: {
|
|
42
|
+
button: e
|
|
43
|
+
} = {},
|
|
44
|
+
...t
|
|
45
|
+
} = n, s = o(e, "endIcon", {});
|
|
46
|
+
return /* @__PURE__ */ r("span", { css: o(s, "default", {}), ...t });
|
|
47
|
+
};
|
|
48
|
+
export {
|
|
49
|
+
$ as ButtonStyled,
|
|
50
|
+
g as ContentStyled,
|
|
51
|
+
N as EndIconStyled,
|
|
52
|
+
C as StartIconStyled
|
|
53
|
+
};
|
|
@@ -1 +1,38 @@
|
|
|
1
|
-
"use client";
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx as u } from "@emotion/react/jsx-runtime";
|
|
3
|
+
import { forwardRef as y } from "react";
|
|
4
|
+
import { KEYBOARD_KEYS as s } from "../../../constants/keyboard.js";
|
|
5
|
+
import { getClosestFocusable as D } from "../../../utils/focus.js";
|
|
6
|
+
import { DropdownStyled as E } from "./DropdownStyled.js";
|
|
7
|
+
import { COMPONENT_NAME as c } from "./constants.js";
|
|
8
|
+
import { useTheme as R } from "../../../hooks/useTheme/useTheme.js";
|
|
9
|
+
const w = y((l, p) => {
|
|
10
|
+
const {
|
|
11
|
+
children: d,
|
|
12
|
+
...f
|
|
13
|
+
} = l, {
|
|
14
|
+
theme: a
|
|
15
|
+
} = R();
|
|
16
|
+
return /* @__PURE__ */ u(E, { ref: p, theme: a, "data-testid": c, onKeyDown: (o) => {
|
|
17
|
+
var m;
|
|
18
|
+
if (![s.ARROW_DOWN, s.ARROW_UP].includes(o.key))
|
|
19
|
+
return;
|
|
20
|
+
o.preventDefault();
|
|
21
|
+
const e = o.currentTarget, i = o.key === s.ARROW_UP, t = (m = e.ownerDocument) == null ? void 0 : m.activeElement;
|
|
22
|
+
if (t && e.contains(t)) {
|
|
23
|
+
const r = document.createElement("div");
|
|
24
|
+
e.insertBefore(r, i ? t : t.nextSibling);
|
|
25
|
+
const n = D({
|
|
26
|
+
initial: r,
|
|
27
|
+
previous: i,
|
|
28
|
+
root: e,
|
|
29
|
+
keyboard: !0
|
|
30
|
+
});
|
|
31
|
+
e.removeChild(r), n == null || n.focus();
|
|
32
|
+
}
|
|
33
|
+
}, ...f, children: d });
|
|
34
|
+
});
|
|
35
|
+
w.displayName = c;
|
|
36
|
+
export {
|
|
37
|
+
w as Dropdown
|
|
38
|
+
};
|
|
@@ -1 +1,20 @@
|
|
|
1
|
-
"use client";
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx as p } from "@emotion/react/jsx-runtime";
|
|
3
|
+
import { forwardRef as c } from "react";
|
|
4
|
+
import { get as i } from "../../../utils/helpers.js";
|
|
5
|
+
const w = c((o, e) => {
|
|
6
|
+
const {
|
|
7
|
+
theme: {
|
|
8
|
+
select: r
|
|
9
|
+
} = {},
|
|
10
|
+
$width: t,
|
|
11
|
+
styles: s = {},
|
|
12
|
+
...d
|
|
13
|
+
} = o, m = [i(r, "dropdown", {}), t ? {
|
|
14
|
+
width: t
|
|
15
|
+
} : {}, s];
|
|
16
|
+
return /* @__PURE__ */ p("div", { css: m, ...d, ref: e });
|
|
17
|
+
});
|
|
18
|
+
export {
|
|
19
|
+
w as DropdownStyled
|
|
20
|
+
};
|
|
@@ -1 +1,12 @@
|
|
|
1
|
-
"use client";
|
|
1
|
+
"use client";
|
|
2
|
+
import { createContext as t, useContext as e } from "react";
|
|
3
|
+
const n = t(void 0), s = () => {
|
|
4
|
+
const o = e(n);
|
|
5
|
+
if (!o)
|
|
6
|
+
throw new Error("useDropdownContext must be used within a Dropdown component or children");
|
|
7
|
+
return o;
|
|
8
|
+
};
|
|
9
|
+
export {
|
|
10
|
+
n as DropdownContext,
|
|
11
|
+
s as useDropdownContext
|
|
12
|
+
};
|
|
@@ -1 +1,38 @@
|
|
|
1
|
-
"use client";
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx as S } from "@emotion/react/jsx-runtime";
|
|
3
|
+
import { forwardRef as h, useMemo as v, useCallback as x } from "react";
|
|
4
|
+
import { KEYBOARD_KEYS as y } from "../../../constants/keyboard.js";
|
|
5
|
+
import { COMPONENT_NAME as f } from "./constants.js";
|
|
6
|
+
import { DropdownItemStyled as I } from "./DropdownItemStyled.js";
|
|
7
|
+
import { useSelectContext as C } from "../Select/hooks/useSelectContext.js";
|
|
8
|
+
import { useTheme as K } from "../../../hooks/useTheme/useTheme.js";
|
|
9
|
+
import { TabIndex as a } from "../../../types/accesability.js";
|
|
10
|
+
const T = h((u, p) => {
|
|
11
|
+
const {
|
|
12
|
+
children: D,
|
|
13
|
+
value: r,
|
|
14
|
+
onSelect: n,
|
|
15
|
+
customClass: o,
|
|
16
|
+
disabled: t,
|
|
17
|
+
...b
|
|
18
|
+
} = u, {
|
|
19
|
+
theme: w
|
|
20
|
+
} = K(), {
|
|
21
|
+
onSelect: i,
|
|
22
|
+
value: s,
|
|
23
|
+
itemIdentifier: m
|
|
24
|
+
} = C(), c = s !== void 0 && m ? m(s, r) : o == null ? void 0 : o.includes("active"), E = v(() => `${o || ""} ${c ? "active" : ""}`, [o, c]), d = x((e, l) => {
|
|
25
|
+
if (!t)
|
|
26
|
+
return n ? n({
|
|
27
|
+
event: e,
|
|
28
|
+
value: l
|
|
29
|
+
}) : i && i(e, l), l;
|
|
30
|
+
}, [n, i, t]), N = (e) => {
|
|
31
|
+
t || e.key === y.ENTER && (e.preventDefault(), d(e, r));
|
|
32
|
+
};
|
|
33
|
+
return /* @__PURE__ */ S(I, { ref: p, theme: w, $disabled: t, tabIndex: t ? a.Disabled : a.Default, "data-testid": f, className: E, onClick: (e) => d(e, r), onKeyDown: N, ...b, children: D });
|
|
34
|
+
});
|
|
35
|
+
T.displayName = f;
|
|
36
|
+
export {
|
|
37
|
+
T as DropdownItem
|
|
38
|
+
};
|
|
@@ -1 +1,17 @@
|
|
|
1
|
-
"use client";
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx as m } from "@emotion/react/jsx-runtime";
|
|
3
|
+
import { forwardRef as i } from "react";
|
|
4
|
+
import { get as t } from "../../../utils/helpers.js";
|
|
5
|
+
const u = i((s, o) => {
|
|
6
|
+
const {
|
|
7
|
+
theme: {
|
|
8
|
+
select: e
|
|
9
|
+
} = {},
|
|
10
|
+
$disabled: r,
|
|
11
|
+
...l
|
|
12
|
+
} = s, c = t(e, "item.default", {}), d = t(e, "item.disabled", {});
|
|
13
|
+
return /* @__PURE__ */ m("div", { css: [c, r ? d : {}], ...l, ref: o });
|
|
14
|
+
});
|
|
15
|
+
export {
|
|
16
|
+
u as DropdownItemStyled
|
|
17
|
+
};
|
|
@@ -1 +1,48 @@
|
|
|
1
|
-
"use client";
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx as N } from "@emotion/react/jsx-runtime";
|
|
3
|
+
import { forwardRef as O, useCallback as l } from "react";
|
|
4
|
+
import { COMPONENT_NAME as f } from "./constants.js";
|
|
5
|
+
import { transformFormDataToObjectWithValues as c, transformFormElementDataToObjectWithValues as j } from "./utils.js";
|
|
6
|
+
import { FormStyled as D } from "./FormStyled.js";
|
|
7
|
+
import { useTheme as E } from "../../../hooks/useTheme/useTheme.js";
|
|
8
|
+
import { get as a } from "../../../utils/helpers.js";
|
|
9
|
+
const F = O((d, b) => {
|
|
10
|
+
const {
|
|
11
|
+
children: u,
|
|
12
|
+
ariaLabelBy: m,
|
|
13
|
+
describedBy: n,
|
|
14
|
+
role: s,
|
|
15
|
+
onSubmit: o,
|
|
16
|
+
onChange: e,
|
|
17
|
+
...h
|
|
18
|
+
} = d, {
|
|
19
|
+
theme: p
|
|
20
|
+
} = E(), g = l((r) => {
|
|
21
|
+
if (!e) return;
|
|
22
|
+
const t = a(r, "target"), C = c(a(t, "form")), i = j(t);
|
|
23
|
+
e({
|
|
24
|
+
event: r,
|
|
25
|
+
changedControlNames: Object.keys(i),
|
|
26
|
+
controlValues: i,
|
|
27
|
+
formData: C
|
|
28
|
+
});
|
|
29
|
+
}, [e]), y = l((r) => {
|
|
30
|
+
if (!o) return;
|
|
31
|
+
const t = c(a(r, "target"));
|
|
32
|
+
o({
|
|
33
|
+
event: r,
|
|
34
|
+
formData: t
|
|
35
|
+
});
|
|
36
|
+
}, [o]);
|
|
37
|
+
return /* @__PURE__ */ N(D, { ref: b, onSubmit: y, onChange: g, theme: p, "data-testid": f, ...m ? {
|
|
38
|
+
"aria-labelledby": m
|
|
39
|
+
} : {}, ...n ? {
|
|
40
|
+
"aria-describedby": n
|
|
41
|
+
} : {}, ...s ? {
|
|
42
|
+
"aria-role": s
|
|
43
|
+
} : {}, ...h, children: u });
|
|
44
|
+
});
|
|
45
|
+
F.displayName = f;
|
|
46
|
+
export {
|
|
47
|
+
F as Form
|
|
48
|
+
};
|
|
@@ -1 +1,16 @@
|
|
|
1
|
-
"use client";
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx as f } from "@emotion/react/jsx-runtime";
|
|
3
|
+
import { forwardRef as s } from "react";
|
|
4
|
+
import { get as c } from "../../../utils/helpers.js";
|
|
5
|
+
const i = s((t, e) => {
|
|
6
|
+
const {
|
|
7
|
+
theme: {
|
|
8
|
+
form: o
|
|
9
|
+
} = {},
|
|
10
|
+
styles: r = {}
|
|
11
|
+
} = t, m = [c(o, "default", {}), r];
|
|
12
|
+
return /* @__PURE__ */ f("form", { css: m, ...t, ref: e });
|
|
13
|
+
});
|
|
14
|
+
export {
|
|
15
|
+
i as FormStyled
|
|
16
|
+
};
|
|
@@ -1 +1,34 @@
|
|
|
1
|
-
|
|
1
|
+
import { get as s, set as n } from "../../../utils/helpers.js";
|
|
2
|
+
import { InputVariantType as i } from "../../../types/input.js";
|
|
3
|
+
import { ButtonTypes as f } from "../../../types/button.js";
|
|
4
|
+
const u = (o) => Array.from(s(o, "elements", [])).reduce((t, e) => h(e, t), {}), h = (o, r = {}) => {
|
|
5
|
+
const t = s(o, "tagName", "").toLowerCase(), e = s(o, "name"), m = s(o, "type"), a = s(o, "checked"), c = s(o, "value");
|
|
6
|
+
if (!(t === f.Button || m === f.Submit || !e))
|
|
7
|
+
switch (m) {
|
|
8
|
+
case i.Checkbox:
|
|
9
|
+
n(r, e, {
|
|
10
|
+
value: c,
|
|
11
|
+
isChecked: a
|
|
12
|
+
});
|
|
13
|
+
break;
|
|
14
|
+
case i.Radio:
|
|
15
|
+
a && n(r, e, {
|
|
16
|
+
value: c,
|
|
17
|
+
isChecked: a
|
|
18
|
+
}), s(r, [e, "isChecked"], !1) || n(r, e, {
|
|
19
|
+
value: "",
|
|
20
|
+
isChecked: a
|
|
21
|
+
});
|
|
22
|
+
break;
|
|
23
|
+
default:
|
|
24
|
+
n(r, e, {
|
|
25
|
+
value: c
|
|
26
|
+
});
|
|
27
|
+
break;
|
|
28
|
+
}
|
|
29
|
+
return r;
|
|
30
|
+
};
|
|
31
|
+
export {
|
|
32
|
+
u as transformFormDataToObjectWithValues,
|
|
33
|
+
h as transformFormElementDataToObjectWithValues
|
|
34
|
+
};
|
|
@@ -1 +1,33 @@
|
|
|
1
|
-
"use client";
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx as d } from "@emotion/react/jsx-runtime";
|
|
3
|
+
import { forwardRef as p } from "react";
|
|
4
|
+
import { IconsList as g, COMPONENT_NAME as l } from "./constants.js";
|
|
5
|
+
import { useTheme as h } from "../../../hooks/useTheme/useTheme.js";
|
|
6
|
+
import { get as n } from "../../../utils/helpers.js";
|
|
7
|
+
let r = {};
|
|
8
|
+
const x = (o) => {
|
|
9
|
+
r = {
|
|
10
|
+
...r,
|
|
11
|
+
...o
|
|
12
|
+
};
|
|
13
|
+
}, $ = p((o, m) => {
|
|
14
|
+
const {
|
|
15
|
+
name: t,
|
|
16
|
+
width: f,
|
|
17
|
+
height: u,
|
|
18
|
+
fill: s,
|
|
19
|
+
fillSvg: e,
|
|
20
|
+
...I
|
|
21
|
+
} = o, {
|
|
22
|
+
theme: a
|
|
23
|
+
} = h(), i = n(a, "colors", {}), c = {
|
|
24
|
+
...g,
|
|
25
|
+
...r
|
|
26
|
+
}[t];
|
|
27
|
+
return c ? /* @__PURE__ */ d(c, { ref: m, "data-testid": `${l}-${t}`, width: f, height: u, fill: s && n(i, s, s), fillSvg: e && n(i, e, e), ...I }) : (console.warn(`Icon "${String(t)}" not found.`), null);
|
|
28
|
+
});
|
|
29
|
+
$.displayName = l;
|
|
30
|
+
export {
|
|
31
|
+
$ as Icon,
|
|
32
|
+
x as registerCustomIcons
|
|
33
|
+
};
|
|
@@ -1 +1,92 @@
|
|
|
1
|
-
|
|
1
|
+
import { FileCopyIcon as o } from "../../../assets/icons/file-copy.js";
|
|
2
|
+
import { ThumbDownIcon as r } from "../../../assets/icons/thumb-down.js";
|
|
3
|
+
import { ThumbUpIcon as t } from "../../../assets/icons/thumb-up.js";
|
|
4
|
+
import { ContentCopyIcon as m } from "../../../assets/icons/content-copy.js";
|
|
5
|
+
import { VolumeUpIcon as n } from "../../../assets/icons/volume-up.js";
|
|
6
|
+
import { EditIcon as i } from "../../../assets/icons/edit.js";
|
|
7
|
+
import { SearchIcon as c } from "../../../assets/icons/search.js";
|
|
8
|
+
import { PortraitIcon as e } from "../../../assets/icons/portrait.js";
|
|
9
|
+
import { WifiTetheringIcon as p } from "../../../assets/icons/wifiTethering.js";
|
|
10
|
+
import { FolderOpenIcon as f } from "../../../assets/icons/folderOpen.js";
|
|
11
|
+
import { FolderIcon as I } from "../../../assets/icons/folder.js";
|
|
12
|
+
import { UploadIcon as a } from "../../../assets/icons/upload.js";
|
|
13
|
+
import { AttachmentIcon as l } from "../../../assets/icons/attachment.js";
|
|
14
|
+
import { EyeIcon as s } from "../../../assets/icons/eye.js";
|
|
15
|
+
import { PaymentCardIcon as u } from "../../../assets/icons/paymentCard.js";
|
|
16
|
+
import { ProcessingIcon as h } from "../../../assets/icons/processing.js";
|
|
17
|
+
import { RulerIcon as d } from "../../../assets/icons/ruler.js";
|
|
18
|
+
import { FilterIcon as g } from "../../../assets/icons/filter.js";
|
|
19
|
+
import { PlusIcon as w } from "../../../assets/icons/plus.js";
|
|
20
|
+
import { MinusIcon as C } from "../../../assets/icons/minus.js";
|
|
21
|
+
import { StarOutlinedIcon as O } from "../../../assets/icons/starOutlined.js";
|
|
22
|
+
import { StarIcon as T } from "../../../assets/icons/star.js";
|
|
23
|
+
import { ErrorOutlineIcon as y } from "../../../assets/icons/error_outline.js";
|
|
24
|
+
import { ShoppingBagIcon as F } from "../../../assets/icons/shopping_bag.js";
|
|
25
|
+
import { AccountCircleIcon as S } from "../../../assets/icons/account_circle.js";
|
|
26
|
+
import { DeleteOutlinedIcon as v } from "../../../assets/icons/delete_outlined.js";
|
|
27
|
+
import { FavoriteOutlinedIcon as b } from "../../../assets/icons/favorite_outlined.js";
|
|
28
|
+
import { FavoriteIcon as D } from "../../../assets/icons/favorite.js";
|
|
29
|
+
import { LocalShippingIcon as E } from "../../../assets/icons/local_shipping.js";
|
|
30
|
+
import { ArrowForwardIcon as M } from "../../../assets/icons/arrow-forward.js";
|
|
31
|
+
import { SlashIcon as A } from "../../../assets/icons/slash.js";
|
|
32
|
+
import { HomeIcon as P } from "../../../assets/icons/home.js";
|
|
33
|
+
import { MobileMenuIcon as U } from "../../../assets/icons/mobile_menu_button.js";
|
|
34
|
+
import { ChevronLeftIcon as L } from "../../../assets/icons/chevron-left.js";
|
|
35
|
+
import { ChevronRightIcon as N } from "../../../assets/icons/chevron-right.js";
|
|
36
|
+
import { ArrowDownIcon as R } from "../../../assets/icons/arrow-down.js";
|
|
37
|
+
import { CheckIcon as k } from "../../../assets/icons/check.js";
|
|
38
|
+
import { DotIcon as B } from "../../../assets/icons/dot.js";
|
|
39
|
+
import { ToastInfoIcon as W } from "../../../assets/icons/toast_info.js";
|
|
40
|
+
import { ToastWarningIcon as x } from "../../../assets/icons/toast_warning.js";
|
|
41
|
+
import { ToastErrorIcon as H } from "../../../assets/icons/toast_error.js";
|
|
42
|
+
import { ToastSuccessIcon as V } from "../../../assets/icons/toast_success.js";
|
|
43
|
+
import { CrossIcon as _ } from "../../../assets/icons/cross.js";
|
|
44
|
+
const Lo = {
|
|
45
|
+
cross: _,
|
|
46
|
+
success: V,
|
|
47
|
+
error: H,
|
|
48
|
+
warning: x,
|
|
49
|
+
info: W,
|
|
50
|
+
dot: B,
|
|
51
|
+
check: k,
|
|
52
|
+
arrowDown: R,
|
|
53
|
+
arrowRight: N,
|
|
54
|
+
arrowLeft: L,
|
|
55
|
+
mobileMenu: U,
|
|
56
|
+
home: P,
|
|
57
|
+
slash: A,
|
|
58
|
+
arrowForward: M,
|
|
59
|
+
localShipping: E,
|
|
60
|
+
favorite: D,
|
|
61
|
+
favoriteOutlined: b,
|
|
62
|
+
deleteOutlined: v,
|
|
63
|
+
accountCircle: S,
|
|
64
|
+
shoppingBag: F,
|
|
65
|
+
errorOutline: y,
|
|
66
|
+
star: T,
|
|
67
|
+
starOutlined: O,
|
|
68
|
+
minus: C,
|
|
69
|
+
plus: w,
|
|
70
|
+
filter: g,
|
|
71
|
+
ruler: d,
|
|
72
|
+
processing: h,
|
|
73
|
+
paymentCard: u,
|
|
74
|
+
eye: s,
|
|
75
|
+
attachment: l,
|
|
76
|
+
upload: a,
|
|
77
|
+
folder: I,
|
|
78
|
+
folderOpen: f,
|
|
79
|
+
wifiTethering: p,
|
|
80
|
+
portrait: e,
|
|
81
|
+
search: c,
|
|
82
|
+
edit: i,
|
|
83
|
+
volumeUp: n,
|
|
84
|
+
contentCopy: m,
|
|
85
|
+
thumbUp: t,
|
|
86
|
+
thumbDown: r,
|
|
87
|
+
fileCopy: o
|
|
88
|
+
}, No = "Icon";
|
|
89
|
+
export {
|
|
90
|
+
No as COMPONENT_NAME,
|
|
91
|
+
Lo as IconsList
|
|
92
|
+
};
|
|
@@ -1 +1,39 @@
|
|
|
1
|
-
"use client";
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsxs as L, jsx as o } from "@emotion/react/jsx-runtime";
|
|
3
|
+
import { forwardRef as N, useState as $ } from "react";
|
|
4
|
+
import { COMPONENT_NAME as e } from "./constants.js";
|
|
5
|
+
import { ImageWrapperStyled as b, PlaceholderStyled as j, ImageStyled as w, CaptionStyled as x } from "./ImageStyled.js";
|
|
6
|
+
import { Skeleton as E } from "../Skeleton/Skeleton.js";
|
|
7
|
+
import { useTheme as M } from "../../../hooks/useTheme/useTheme.js";
|
|
8
|
+
const O = N((m, p) => {
|
|
9
|
+
const {
|
|
10
|
+
id: h,
|
|
11
|
+
src: f,
|
|
12
|
+
alt: g,
|
|
13
|
+
width: i,
|
|
14
|
+
height: d,
|
|
15
|
+
placeholder: s,
|
|
16
|
+
caption: l,
|
|
17
|
+
onClick: y,
|
|
18
|
+
onLoad: r,
|
|
19
|
+
onError: a,
|
|
20
|
+
objectFit: S,
|
|
21
|
+
styles: u,
|
|
22
|
+
...C
|
|
23
|
+
} = m, [n, c] = $(!0), {
|
|
24
|
+
theme: t
|
|
25
|
+
} = M(), k = () => {
|
|
26
|
+
c(!1), r == null || r();
|
|
27
|
+
}, I = () => {
|
|
28
|
+
c(!1), a == null || a();
|
|
29
|
+
};
|
|
30
|
+
return /* @__PURE__ */ L(b, { "data-testid": `${e}-wrapper`, id: h, width: i, height: d, theme: t, ...C, children: [
|
|
31
|
+
n && s && /* @__PURE__ */ o(j, { "data-testid": `${e}-placeholder`, theme: t, children: /* @__PURE__ */ o(E, { height: "100%", children: s }) }),
|
|
32
|
+
/* @__PURE__ */ o(w, { "data-testid": e, theme: t, src: f, alt: g, width: i, height: d, objectFit: S, $isLoading: n, onLoad: k, onError: I, onClick: y, styles: u, ref: p }),
|
|
33
|
+
l && /* @__PURE__ */ o(x, { "data-testid": `${e}-caption`, theme: t, children: l })
|
|
34
|
+
] });
|
|
35
|
+
});
|
|
36
|
+
O.displayName = e;
|
|
37
|
+
export {
|
|
38
|
+
O as Image
|
|
39
|
+
};
|