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
|
@@ -1 +1,71 @@
|
|
|
1
|
-
"use client";
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx as c } from "@emotion/react/jsx-runtime";
|
|
3
|
+
import { forwardRef as d } from "react";
|
|
4
|
+
import { get as o } from "../../../utils/helpers.js";
|
|
5
|
+
import { Button as p } from "../../core/Button/Button.js";
|
|
6
|
+
const y = d((e, t) => {
|
|
7
|
+
const {
|
|
8
|
+
theme: s = {},
|
|
9
|
+
styles: r = {},
|
|
10
|
+
...n
|
|
11
|
+
} = e, a = [o(s, "chat.wrapper.default", {}), r];
|
|
12
|
+
return /* @__PURE__ */ c("div", { css: a, ...n, ref: t });
|
|
13
|
+
}), S = (e) => {
|
|
14
|
+
const {
|
|
15
|
+
theme: t = {},
|
|
16
|
+
...s
|
|
17
|
+
} = e, r = o(t, "chat.mainHeader", {});
|
|
18
|
+
return /* @__PURE__ */ c("header", { css: r, ...s });
|
|
19
|
+
}, h = (e) => {
|
|
20
|
+
const {
|
|
21
|
+
theme: t = {},
|
|
22
|
+
...s
|
|
23
|
+
} = e, r = o(t, "chat.body", {});
|
|
24
|
+
return /* @__PURE__ */ c("div", { css: r, ...s });
|
|
25
|
+
}, f = (e) => {
|
|
26
|
+
const {
|
|
27
|
+
theme: t = {},
|
|
28
|
+
$variant: s,
|
|
29
|
+
...r
|
|
30
|
+
} = e, n = [o(t, "chat.sidebarWrapper.default", {}), o(t, ["chat", "sidebarWrapper", s], {})];
|
|
31
|
+
return /* @__PURE__ */ c("div", { css: n, ...r });
|
|
32
|
+
}, b = (e) => {
|
|
33
|
+
const {
|
|
34
|
+
theme: t = {},
|
|
35
|
+
...s
|
|
36
|
+
} = e, r = o(t, "chat.sidebar", {});
|
|
37
|
+
return /* @__PURE__ */ c("aside", { css: r, ...s });
|
|
38
|
+
}, P = (e) => {
|
|
39
|
+
const {
|
|
40
|
+
theme: t = {},
|
|
41
|
+
...s
|
|
42
|
+
} = e, r = o(t, "chat.sidebarHeader", {});
|
|
43
|
+
return /* @__PURE__ */ c("header", { css: r, ...s });
|
|
44
|
+
}, g = (e) => {
|
|
45
|
+
const {
|
|
46
|
+
theme: t = {},
|
|
47
|
+
styles: s = {},
|
|
48
|
+
...r
|
|
49
|
+
} = e, n = [o(t, "chat.content.default", {}), s];
|
|
50
|
+
return /* @__PURE__ */ c("main", { css: n, ...r });
|
|
51
|
+
}, B = (e) => {
|
|
52
|
+
const {
|
|
53
|
+
theme: t = {},
|
|
54
|
+
$open: s,
|
|
55
|
+
...r
|
|
56
|
+
} = e, n = s ? o(t, "chat.toggleButton.open") : {}, a = {
|
|
57
|
+
...o(t, "chat.toggleButton.default"),
|
|
58
|
+
...n
|
|
59
|
+
};
|
|
60
|
+
return /* @__PURE__ */ c(p, { ...r, styles: a });
|
|
61
|
+
};
|
|
62
|
+
export {
|
|
63
|
+
h as BodyStyled,
|
|
64
|
+
g as ContentStyled,
|
|
65
|
+
S as MainHeaderStyled,
|
|
66
|
+
y as MainWrapperStyled,
|
|
67
|
+
P as SidebarHeaderStyled,
|
|
68
|
+
b as SidebarStyled,
|
|
69
|
+
B as SidebarToggleButtonStyled,
|
|
70
|
+
f as SidebarWrapperStyled
|
|
71
|
+
};
|
|
@@ -1 +1,26 @@
|
|
|
1
|
-
"use client";
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx as u } from "@emotion/react/jsx-runtime";
|
|
3
|
+
import { forwardRef as d } from "react";
|
|
4
|
+
import { convertToInlineBoxStyles as c } from "../../../tokens/utils.js";
|
|
5
|
+
import { COMPONENT_NAME as e } from "./constants.js";
|
|
6
|
+
import { ColumnStyled as $ } from "./ColumnStyled.js";
|
|
7
|
+
import { useTheme as x } from "../../../hooks/useTheme/useTheme.js";
|
|
8
|
+
const y = d((t, r) => {
|
|
9
|
+
const {
|
|
10
|
+
theme: o
|
|
11
|
+
} = x(), {
|
|
12
|
+
children: s,
|
|
13
|
+
gutter: i = 0,
|
|
14
|
+
isReversed: m = !1,
|
|
15
|
+
align: f = "stretch",
|
|
16
|
+
justify: l = "start",
|
|
17
|
+
isWrap: n = !0,
|
|
18
|
+
flex: a,
|
|
19
|
+
...p
|
|
20
|
+
} = t;
|
|
21
|
+
return /* @__PURE__ */ u($, { "data-testid": e, ref: r, theme: o, $isReversed: m, $gutter: i, $align: f, $justify: l, $isWrap: n, $flex: a, ...c(p), children: s });
|
|
22
|
+
});
|
|
23
|
+
y.displayName = e;
|
|
24
|
+
export {
|
|
25
|
+
y as Column
|
|
26
|
+
};
|
|
@@ -1 +1,36 @@
|
|
|
1
|
-
"use client";
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx as x } from "@emotion/react/jsx-runtime";
|
|
3
|
+
import { forwardRef as y } from "react";
|
|
4
|
+
import { getBoxStyles as g } from "../../../tokens/utils.js";
|
|
5
|
+
import { calculateGutter as d, calculateJustify as $, calculateAlign as S } from "../../../utils/layout.js";
|
|
6
|
+
import { get as j } from "../../../utils/helpers.js";
|
|
7
|
+
const b = y((e, r) => {
|
|
8
|
+
const {
|
|
9
|
+
theme: {
|
|
10
|
+
column: o
|
|
11
|
+
} = {},
|
|
12
|
+
$isWrap: l,
|
|
13
|
+
$align: s,
|
|
14
|
+
$justify: c,
|
|
15
|
+
$gutter: i,
|
|
16
|
+
$flex: t,
|
|
17
|
+
$isReversed: m,
|
|
18
|
+
styles: n,
|
|
19
|
+
...f
|
|
20
|
+
} = e, {
|
|
21
|
+
boxStyles: u,
|
|
22
|
+
restProps: a
|
|
23
|
+
} = g(f), p = [j(o, "default", {}), {
|
|
24
|
+
flexDirection: m ? "column-reverse" : "column",
|
|
25
|
+
flexWrap: l ? "wrap" : "nowrap",
|
|
26
|
+
alignItems: S(s),
|
|
27
|
+
justifyContent: $(c),
|
|
28
|
+
gap: d(i)
|
|
29
|
+
}, u, t ? {
|
|
30
|
+
flex: t
|
|
31
|
+
} : {}, n];
|
|
32
|
+
return /* @__PURE__ */ x("div", { css: p, ...a, ref: r });
|
|
33
|
+
});
|
|
34
|
+
export {
|
|
35
|
+
b as ColumnStyled
|
|
36
|
+
};
|
|
@@ -1 +1,25 @@
|
|
|
1
|
-
"use client";
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx as p } from "@emotion/react/jsx-runtime";
|
|
3
|
+
import { forwardRef as a } from "react";
|
|
4
|
+
import { convertToInlineBoxStyles as c } from "../../../tokens/utils.js";
|
|
5
|
+
import { COMPONENT_NAME as e } from "./constants.js";
|
|
6
|
+
import { FlexContainerStyled as x } from "./FlexContainerStyled.js";
|
|
7
|
+
import { FlexDirection as d } from "../../../types/layout.js";
|
|
8
|
+
import { useTheme as N } from "../../../hooks/useTheme/useTheme.js";
|
|
9
|
+
const u = a((o, r) => {
|
|
10
|
+
const {
|
|
11
|
+
className: t = "",
|
|
12
|
+
flexDirection: i = d.Column,
|
|
13
|
+
styles: m,
|
|
14
|
+
children: n,
|
|
15
|
+
gap: s,
|
|
16
|
+
...l
|
|
17
|
+
} = o, {
|
|
18
|
+
theme: f
|
|
19
|
+
} = N();
|
|
20
|
+
return /* @__PURE__ */ p(x, { ref: r, theme: f, className: t, $flexDirection: i, $gap: s, styles: m, "data-testid": e, ...c(l), children: n });
|
|
21
|
+
});
|
|
22
|
+
u.displayName = e;
|
|
23
|
+
export {
|
|
24
|
+
u as FlexContainer
|
|
25
|
+
};
|
|
@@ -1 +1,27 @@
|
|
|
1
|
-
"use client";
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx as m } from "@emotion/react/jsx-runtime";
|
|
3
|
+
import { forwardRef as c } from "react";
|
|
4
|
+
import { getBoxStyles as x } from "../../../tokens/utils.js";
|
|
5
|
+
import { get as a } from "../../../utils/helpers.js";
|
|
6
|
+
const u = c((o, r) => {
|
|
7
|
+
const {
|
|
8
|
+
theme: {
|
|
9
|
+
flexContainer: s
|
|
10
|
+
} = {},
|
|
11
|
+
styles: i,
|
|
12
|
+
$flexDirection: t,
|
|
13
|
+
$gap: e,
|
|
14
|
+
...l
|
|
15
|
+
} = o, {
|
|
16
|
+
boxStyles: n,
|
|
17
|
+
restProps: f
|
|
18
|
+
} = x(l), p = [a(s, "default", {}), n, t ? {
|
|
19
|
+
flexDirection: t
|
|
20
|
+
} : {}, e ? {
|
|
21
|
+
gap: e
|
|
22
|
+
} : {}, i];
|
|
23
|
+
return /* @__PURE__ */ m("div", { css: p, ...f, ref: r });
|
|
24
|
+
});
|
|
25
|
+
export {
|
|
26
|
+
u as FlexContainerStyled
|
|
27
|
+
};
|
|
@@ -1 +1,18 @@
|
|
|
1
|
-
|
|
1
|
+
import { values as e } from "../../../tokens/values.js";
|
|
2
|
+
const t = (a, r) => {
|
|
3
|
+
switch (a) {
|
|
4
|
+
case "sm":
|
|
5
|
+
return r ? e.responsiveSmall : e.screenSmall;
|
|
6
|
+
case "md":
|
|
7
|
+
return r ? e.responsiveMedium : e.screenMedium;
|
|
8
|
+
case "lg":
|
|
9
|
+
return r ? e.responsiveLarge : e.screenLarge;
|
|
10
|
+
case "xl":
|
|
11
|
+
return r ? e.responsiveXLarge : e.screenXLarge;
|
|
12
|
+
default:
|
|
13
|
+
return "100%";
|
|
14
|
+
}
|
|
15
|
+
};
|
|
16
|
+
export {
|
|
17
|
+
t as calculateMaxWidth
|
|
18
|
+
};
|
|
@@ -1 +1,26 @@
|
|
|
1
|
-
"use client";
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx as d } from "@emotion/react/jsx-runtime";
|
|
3
|
+
import { forwardRef as u } from "react";
|
|
4
|
+
import { convertToInlineBoxStyles as c } from "../../../tokens/utils.js";
|
|
5
|
+
import { RowStyled as $ } from "./RowStyled.js";
|
|
6
|
+
import { COMPONENT_NAME as e } from "./constants.js";
|
|
7
|
+
import { useTheme as x } from "../../../hooks/useTheme/useTheme.js";
|
|
8
|
+
const y = u((t, r) => {
|
|
9
|
+
const {
|
|
10
|
+
children: o,
|
|
11
|
+
gutter: s = 0,
|
|
12
|
+
align: i = "stretch",
|
|
13
|
+
justify: m = "start",
|
|
14
|
+
isWrap: f = !0,
|
|
15
|
+
isReversed: a = !1,
|
|
16
|
+
flex: l,
|
|
17
|
+
...n
|
|
18
|
+
} = t, {
|
|
19
|
+
theme: p
|
|
20
|
+
} = x();
|
|
21
|
+
return /* @__PURE__ */ d($, { ref: r, theme: p, $isReversed: a, $gutter: s, $align: i, $justify: m, $isWrap: f, $flex: l, "data-testid": e, ...c(n), children: o });
|
|
22
|
+
});
|
|
23
|
+
y.displayName = e;
|
|
24
|
+
export {
|
|
25
|
+
y as Row
|
|
26
|
+
};
|
|
@@ -1 +1,36 @@
|
|
|
1
|
-
"use client";
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx as y } from "@emotion/react/jsx-runtime";
|
|
3
|
+
import { forwardRef as x } from "react";
|
|
4
|
+
import { getBoxStyles as d } from "../../../tokens/utils.js";
|
|
5
|
+
import { get as g } from "../../../utils/helpers.js";
|
|
6
|
+
import { calculateGutter as w, calculateJustify as $, calculateAlign as S } from "../../../utils/layout.js";
|
|
7
|
+
const b = x((e, r) => {
|
|
8
|
+
const {
|
|
9
|
+
theme: {
|
|
10
|
+
row: o = {}
|
|
11
|
+
} = {},
|
|
12
|
+
$flex: t,
|
|
13
|
+
$isWrap: s,
|
|
14
|
+
$align: l,
|
|
15
|
+
$justify: i,
|
|
16
|
+
$gutter: f,
|
|
17
|
+
$isReversed: a,
|
|
18
|
+
styles: c,
|
|
19
|
+
...p
|
|
20
|
+
} = e, {
|
|
21
|
+
boxStyles: m,
|
|
22
|
+
restProps: n
|
|
23
|
+
} = d(p), u = [g(o, "default", {}), {
|
|
24
|
+
flexDirection: a ? "row-reverse" : "row",
|
|
25
|
+
flexWrap: s ? "wrap" : "nowrap",
|
|
26
|
+
alignItems: S(l),
|
|
27
|
+
justifyContent: $(i),
|
|
28
|
+
gap: w(f)
|
|
29
|
+
}, m, t ? {
|
|
30
|
+
flex: t
|
|
31
|
+
} : {}, c];
|
|
32
|
+
return /* @__PURE__ */ y("div", { css: u, ...n, ref: r });
|
|
33
|
+
});
|
|
34
|
+
export {
|
|
35
|
+
b as RowStyled
|
|
36
|
+
};
|
|
@@ -1 +1,30 @@
|
|
|
1
|
-
"use client";
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx as t, jsxs as r } from "@emotion/react/jsx-runtime";
|
|
3
|
+
import { forwardRef as c } from "react";
|
|
4
|
+
import { COMPONENT_NAME as l, SKELETON_CARDS_AMOUNT as h } from "./constants.js";
|
|
5
|
+
import { SkeletonSearchStyled as i, SkeletonSearchContainerStyled as s, SkeletonSearchHeaderRowStyled as k, SkeletonSearchColumnPriceStyled as o, SkeletonSearchRowStyled as y, SkeletonSearchColumnImageBaseStyled as f, SkeletonSearchColumnImageStyled as p, SkeletonSearchColumnTextBaseStyled as u, SkeletonSearchColumnTextStyled as C } from "./SkeletonSearchStyled.js";
|
|
6
|
+
import { useTheme as x } from "../../../hooks/useTheme/useTheme.js";
|
|
7
|
+
const N = c((S, n) => {
|
|
8
|
+
const {
|
|
9
|
+
maxWidth: a,
|
|
10
|
+
...m
|
|
11
|
+
} = S, {
|
|
12
|
+
theme: e
|
|
13
|
+
} = x();
|
|
14
|
+
return /* @__PURE__ */ t(i, { ref: n, theme: e, "data-testid": l, ...m, children: /* @__PURE__ */ r(s, { $maxWidth: a, theme: e, children: [
|
|
15
|
+
/* @__PURE__ */ t(k, { theme: e, children: /* @__PURE__ */ t(o, { theme: e }) }),
|
|
16
|
+
Array.from({
|
|
17
|
+
length: h
|
|
18
|
+
}).map((T, d) => /* @__PURE__ */ r(y, { theme: e, children: [
|
|
19
|
+
/* @__PURE__ */ t(f, { theme: e, children: /* @__PURE__ */ t(p, { theme: e }) }),
|
|
20
|
+
/* @__PURE__ */ r(u, { theme: e, children: [
|
|
21
|
+
/* @__PURE__ */ t(C, { theme: e }),
|
|
22
|
+
/* @__PURE__ */ t(o, { theme: e })
|
|
23
|
+
] })
|
|
24
|
+
] }, `gd-skeleton-search-row-${d + 1}`))
|
|
25
|
+
] }) });
|
|
26
|
+
});
|
|
27
|
+
N.displayName = l;
|
|
28
|
+
export {
|
|
29
|
+
N as SkeletonSearch
|
|
30
|
+
};
|
|
@@ -1 +1,97 @@
|
|
|
1
|
-
"use client";
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx as o } from "@emotion/react/jsx-runtime";
|
|
3
|
+
import { forwardRef as h } from "react";
|
|
4
|
+
import { get as s } from "../../../utils/helpers.js";
|
|
5
|
+
import { getBoxStyles as i } from "../../../tokens/utils.js";
|
|
6
|
+
import { Row as a } from "../../layout/Row/Row.js";
|
|
7
|
+
import { Skeleton as c } from "../../core/Skeleton/Skeleton.js";
|
|
8
|
+
import { SkeletonVariant as l } from "../../../types/skeleton.js";
|
|
9
|
+
import { Column as m } from "../../layout/Column/Column.js";
|
|
10
|
+
const R = h((e, t) => {
|
|
11
|
+
const {
|
|
12
|
+
theme: {
|
|
13
|
+
skeleton: r
|
|
14
|
+
} = {},
|
|
15
|
+
...n
|
|
16
|
+
} = e;
|
|
17
|
+
return /* @__PURE__ */ o("div", { css: s(r, "cards.search.default", {}), ...n, ref: t });
|
|
18
|
+
}), v = (e) => {
|
|
19
|
+
const {
|
|
20
|
+
theme: {
|
|
21
|
+
flexContainer: t,
|
|
22
|
+
skeleton: r
|
|
23
|
+
} = {},
|
|
24
|
+
...n
|
|
25
|
+
} = e, {
|
|
26
|
+
boxStyles: S,
|
|
27
|
+
restProps: d
|
|
28
|
+
} = i(n), u = [s(t, "default", {}), s(r, "cards.search.container", {}), S];
|
|
29
|
+
return /* @__PURE__ */ o("div", { css: u, ...d });
|
|
30
|
+
}, w = (e) => {
|
|
31
|
+
const {
|
|
32
|
+
theme: {
|
|
33
|
+
skeleton: t
|
|
34
|
+
} = {},
|
|
35
|
+
...r
|
|
36
|
+
} = e;
|
|
37
|
+
return /* @__PURE__ */ o(a, { styles: s(t, "cards.search.header", {}), ...r });
|
|
38
|
+
}, T = (e) => {
|
|
39
|
+
const {
|
|
40
|
+
theme: {
|
|
41
|
+
skeleton: t
|
|
42
|
+
} = {},
|
|
43
|
+
...r
|
|
44
|
+
} = e;
|
|
45
|
+
return /* @__PURE__ */ o(c, { variant: l.Rectangular, styles: s(t, "cards.search.columnText.price", {}), ...r });
|
|
46
|
+
}, I = (e) => {
|
|
47
|
+
const {
|
|
48
|
+
theme: {
|
|
49
|
+
skeleton: t
|
|
50
|
+
} = {},
|
|
51
|
+
...r
|
|
52
|
+
} = e;
|
|
53
|
+
return /* @__PURE__ */ o(a, { styles: s(t, "cards.search.row", {}), ...r });
|
|
54
|
+
}, B = (e) => {
|
|
55
|
+
const {
|
|
56
|
+
theme: {
|
|
57
|
+
skeleton: t
|
|
58
|
+
} = {},
|
|
59
|
+
...r
|
|
60
|
+
} = e;
|
|
61
|
+
return /* @__PURE__ */ o(m, { styles: s(t, "cards.search.columnImage.default", {}), ...r });
|
|
62
|
+
}, b = (e) => {
|
|
63
|
+
const {
|
|
64
|
+
theme: {
|
|
65
|
+
skeleton: t
|
|
66
|
+
} = {},
|
|
67
|
+
...r
|
|
68
|
+
} = e;
|
|
69
|
+
return /* @__PURE__ */ o(c, { variant: l.Rectangular, styles: s(t, "cards.search.columnImage.image", {}), ...r });
|
|
70
|
+
}, j = (e) => {
|
|
71
|
+
const {
|
|
72
|
+
theme: {
|
|
73
|
+
skeleton: t
|
|
74
|
+
} = {},
|
|
75
|
+
...r
|
|
76
|
+
} = e;
|
|
77
|
+
return /* @__PURE__ */ o(m, { styles: s(t, "cards.search.columnText.default", {}), ...r });
|
|
78
|
+
}, H = (e) => {
|
|
79
|
+
const {
|
|
80
|
+
theme: {
|
|
81
|
+
skeleton: t
|
|
82
|
+
} = {},
|
|
83
|
+
...r
|
|
84
|
+
} = e;
|
|
85
|
+
return /* @__PURE__ */ o(c, { variant: l.Rectangular, styles: s(t, "cards.search.columnText.description", {}), ...r });
|
|
86
|
+
};
|
|
87
|
+
export {
|
|
88
|
+
B as SkeletonSearchColumnImageBaseStyled,
|
|
89
|
+
b as SkeletonSearchColumnImageStyled,
|
|
90
|
+
T as SkeletonSearchColumnPriceStyled,
|
|
91
|
+
j as SkeletonSearchColumnTextBaseStyled,
|
|
92
|
+
H as SkeletonSearchColumnTextStyled,
|
|
93
|
+
v as SkeletonSearchContainerStyled,
|
|
94
|
+
w as SkeletonSearchHeaderRowStyled,
|
|
95
|
+
I as SkeletonSearchRowStyled,
|
|
96
|
+
R as SkeletonSearchStyled
|
|
97
|
+
};
|
|
@@ -1 +1,74 @@
|
|
|
1
|
-
"use client";
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx as e, jsxs as l, Fragment as O } from "@emotion/react/jsx-runtime";
|
|
3
|
+
import { forwardRef as _, useRef as R, useCallback as g, Children as q } from "react";
|
|
4
|
+
import { COMPONENT_NAME as j } from "./constants.js";
|
|
5
|
+
import { DragAndDropStyled as G, DragAndDropAreaStyled as J, UploadIconStyled as S, ContentTypographyStyled as a, DragOverContentStyled as K } from "./DragAndDropStyled.js";
|
|
6
|
+
import { validateFiles as Q } from "./utils/validators.js";
|
|
7
|
+
import { DragAndDropFiles as W } from "../../domainSpecific/DragAndDropFiles/DragAndDropFiles.js";
|
|
8
|
+
import { InputFile as X } from "../../core/InputFile/InputFile.js";
|
|
9
|
+
import { colors as Y } from "../../../tokens/colors.js";
|
|
10
|
+
import { useTheme as Z } from "../../../hooks/useTheme/useTheme.js";
|
|
11
|
+
import { Column as T } from "../../layout/Column/Column.js";
|
|
12
|
+
import { TypographyVariant as s } from "../../../types/typography.js";
|
|
13
|
+
import { ButtonVariant as E } from "../../../types/button.js";
|
|
14
|
+
const ee = _((N, m) => {
|
|
15
|
+
const {
|
|
16
|
+
styles: I = {},
|
|
17
|
+
files: u,
|
|
18
|
+
errors: o,
|
|
19
|
+
title: h,
|
|
20
|
+
description: f,
|
|
21
|
+
inputFileButtonLabel: L,
|
|
22
|
+
acceptedFileTypes: y,
|
|
23
|
+
maxFileSize: F,
|
|
24
|
+
maxFiles: d,
|
|
25
|
+
onError: v,
|
|
26
|
+
onFilesChanged: C,
|
|
27
|
+
disabled: n,
|
|
28
|
+
isLoading: i,
|
|
29
|
+
loadingOverlay: M,
|
|
30
|
+
children: D,
|
|
31
|
+
...B
|
|
32
|
+
} = N, {
|
|
33
|
+
theme: r
|
|
34
|
+
} = Z(), A = R(null), b = R(null), c = g((t) => {
|
|
35
|
+
if (!t || i) return;
|
|
36
|
+
const p = u ?? [], w = Array.from(t), {
|
|
37
|
+
validFiles: x,
|
|
38
|
+
errors: z
|
|
39
|
+
} = Q(w, p, y, d, F);
|
|
40
|
+
if (v(z), x.length > 0) {
|
|
41
|
+
const U = [...p, ...x];
|
|
42
|
+
C(U);
|
|
43
|
+
}
|
|
44
|
+
}, [u, y, d, F, C, v, i]), H = g((t) => {
|
|
45
|
+
c(t);
|
|
46
|
+
}, [c]), P = g((t) => {
|
|
47
|
+
c(t.target.files);
|
|
48
|
+
}, [c]), V = o && o.length > 0, k = !d || d > 1, $ = q.count(D) > 0;
|
|
49
|
+
return /* @__PURE__ */ e(G, { ref: m || b, theme: r, styles: I, "data-testid": j, children: /* @__PURE__ */ l(W, { targetRef: m || null || b, triggerRef: A, dragOverContent: i ? null : /* @__PURE__ */ e(K, { theme: r, children: /* @__PURE__ */ l(T, { justify: "center", align: "center", gutter: 16, children: [
|
|
50
|
+
/* @__PURE__ */ e(S, { theme: r }),
|
|
51
|
+
/* @__PURE__ */ e(a, { theme: r, variant: s.H6, children: h })
|
|
52
|
+
] }) }), onDrop: H, ...B, children: [
|
|
53
|
+
$ && D,
|
|
54
|
+
!$ && /* @__PURE__ */ e(J, { theme: r, ref: A, $disabled: n, $isError: V, $isLoading: i, children: /* @__PURE__ */ l(T, { justify: "center", align: "center", gutter: 16, children: [
|
|
55
|
+
!i && /* @__PURE__ */ l(O, { children: [
|
|
56
|
+
/* @__PURE__ */ e(S, { theme: r, $disabled: n }),
|
|
57
|
+
h && /* @__PURE__ */ l(O, { children: [
|
|
58
|
+
/* @__PURE__ */ e(a, { theme: r, variant: s.H6, $disabled: n, children: h }),
|
|
59
|
+
/* @__PURE__ */ e(a, { theme: r, as: "div", variant: s.Caption, $disabled: n, children: "or" })
|
|
60
|
+
] }),
|
|
61
|
+
/* @__PURE__ */ e(X, { multiple: k, disabled: n, onChange: P, buttonProps: {
|
|
62
|
+
variant: n ? E.Text : E.Outlined
|
|
63
|
+
}, children: L }),
|
|
64
|
+
f && /* @__PURE__ */ e(a, { theme: r, as: "div", variant: s.Caption, $disabled: n, children: f }),
|
|
65
|
+
o == null ? void 0 : o.map((t, p) => /* @__PURE__ */ e(a, { theme: r, as: "div", color: Y.text.error, variant: s.Caption, children: t }, `${t}-${p}`))
|
|
66
|
+
] }),
|
|
67
|
+
i && M
|
|
68
|
+
] }) })
|
|
69
|
+
] }) });
|
|
70
|
+
});
|
|
71
|
+
ee.displayName = j;
|
|
72
|
+
export {
|
|
73
|
+
ee as DragAndDrop
|
|
74
|
+
};
|
|
@@ -1 +1,61 @@
|
|
|
1
|
-
"use client";
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx as l } from "@emotion/react/jsx-runtime";
|
|
3
|
+
import { forwardRef as p } from "react";
|
|
4
|
+
import { get as d } from "../../../utils/helpers.js";
|
|
5
|
+
import { Icon as f } from "../../core/Icon/Icon.js";
|
|
6
|
+
import { Typography as S } from "../../core/Typography/Typography.js";
|
|
7
|
+
const $ = p((o, t) => {
|
|
8
|
+
const {
|
|
9
|
+
theme: r,
|
|
10
|
+
styles: e = {},
|
|
11
|
+
...a
|
|
12
|
+
} = o, n = [d(r, "draganddrop.default", {}), e];
|
|
13
|
+
return /* @__PURE__ */ l("div", { ref: t, css: n, ...a });
|
|
14
|
+
}), I = p((o, t) => {
|
|
15
|
+
const {
|
|
16
|
+
theme: r,
|
|
17
|
+
$disabled: e,
|
|
18
|
+
$isError: a,
|
|
19
|
+
$isLoading: n,
|
|
20
|
+
styles: s = {},
|
|
21
|
+
...c
|
|
22
|
+
} = o, g = d(r, "draganddrop.dragAndDropArea.hover", {}), y = d(r, "draganddrop.dragAndDropArea.disabled", {}), i = d(r, "draganddrop.dragAndDropArea.error", {}), u = d(r, "draganddrop.dragAndDropArea.loading", {}), m = [d(r, "draganddrop.dragAndDropArea.default", {}), e || n ? y : {}, e ? {} : g, a ? i : {}, n ? u : {}, s];
|
|
23
|
+
return /* @__PURE__ */ l("div", { ref: t, css: m, ...c });
|
|
24
|
+
}), T = (o) => {
|
|
25
|
+
const {
|
|
26
|
+
theme: t,
|
|
27
|
+
styles: r = {},
|
|
28
|
+
...e
|
|
29
|
+
} = o, a = [d(t, "draganddrop.dragOverContent.default", {}), r];
|
|
30
|
+
return /* @__PURE__ */ l("div", { css: a, ...e });
|
|
31
|
+
}, C = (o) => {
|
|
32
|
+
const {
|
|
33
|
+
theme: t,
|
|
34
|
+
$disabled: r,
|
|
35
|
+
...e
|
|
36
|
+
} = o, a = d(t, "draganddrop.uploadIcon.default", {}), n = d(t, "draganddrop.uploadIcon.disabled", {}), s = {
|
|
37
|
+
name: "",
|
|
38
|
+
...a,
|
|
39
|
+
...r ? n : {},
|
|
40
|
+
...e
|
|
41
|
+
};
|
|
42
|
+
return /* @__PURE__ */ l(f, { ...s });
|
|
43
|
+
}, x = (o) => {
|
|
44
|
+
const {
|
|
45
|
+
theme: t,
|
|
46
|
+
$disabled: r,
|
|
47
|
+
...e
|
|
48
|
+
} = o, a = d(t, "draganddrop.contentTypography.default", {}), n = d(t, "draganddrop.contentTypography.disabled", {}), s = {
|
|
49
|
+
...a,
|
|
50
|
+
...r ? n : {},
|
|
51
|
+
...e
|
|
52
|
+
};
|
|
53
|
+
return /* @__PURE__ */ l(S, { ...s });
|
|
54
|
+
};
|
|
55
|
+
export {
|
|
56
|
+
x as ContentTypographyStyled,
|
|
57
|
+
I as DragAndDropAreaStyled,
|
|
58
|
+
$ as DragAndDropStyled,
|
|
59
|
+
T as DragOverContentStyled,
|
|
60
|
+
C as UploadIconStyled
|
|
61
|
+
};
|