gd-design-library 0.3.4 → 0.3.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -0
- package/assets/icons/account_circle.js +17 -1
- package/assets/icons/arrow-down.js +15 -1
- package/assets/icons/arrow-forward.js +17 -1
- package/assets/icons/attachment.js +17 -1
- package/assets/icons/check.js +16 -1
- package/assets/icons/chevron-left.js +17 -1
- package/assets/icons/chevron-right.js +17 -1
- package/assets/icons/content-copy.js +17 -1
- package/assets/icons/cross.js +16 -1
- package/assets/icons/delete_outlined.js +17 -1
- package/assets/icons/dot.js +16 -1
- package/assets/icons/edit.js +17 -1
- package/assets/icons/error_outline.js +22 -1
- package/assets/icons/eye.js +17 -1
- package/assets/icons/favorite.js +17 -1
- package/assets/icons/favorite_outlined.js +17 -1
- package/assets/icons/file-copy.js +16 -1
- package/assets/icons/filter.js +17 -1
- package/assets/icons/folder.js +17 -1
- package/assets/icons/folderOpen.js +17 -1
- package/assets/icons/home.js +17 -1
- package/assets/icons/keyboard-arrow-down.js +12 -1
- package/assets/icons/local_shipping.js +17 -1
- package/assets/icons/minus.js +16 -1
- package/assets/icons/mobile_menu_button.js +17 -1
- package/assets/icons/paymentCard.js +17 -1
- package/assets/icons/plus.js +16 -1
- package/assets/icons/portrait.js +17 -1
- package/assets/icons/processing.js +17 -1
- package/assets/icons/ruler.js +17 -1
- package/assets/icons/search.js +17 -1
- package/assets/icons/shopping_bag.js +17 -1
- package/assets/icons/slash.js +17 -1
- package/assets/icons/star.js +16 -1
- package/assets/icons/starOutlined.js +16 -1
- package/assets/icons/thumb-down.js +17 -1
- package/assets/icons/thumb-up.js +17 -1
- package/assets/icons/toast_error.js +20 -1
- package/assets/icons/toast_info.js +16 -1
- package/assets/icons/toast_success.js +20 -1
- package/assets/icons/toast_warning.js +16 -1
- package/assets/icons/upload.js +17 -1
- package/assets/icons/volume-up.js +17 -1
- package/assets/icons/wifiTethering.js +17 -1
- package/assets/svg/checkbox_bg_checked.svg.js +5 -2
- package/assets/svg/checkbox_border.svg.js +5 -2
- package/assets/svg/checkbox_disabled_bg_checked.svg.js +5 -2
- package/assets/svg/radio_bg.svg.js +5 -2
- package/assets/svg/radio_bg_checked.svg.js +5 -2
- package/components/core/Breadcrumbs/Breadcrumbs.js +34 -1
- package/components/core/Breadcrumbs/BreadcrumbsStyled.js +58 -1
- package/components/core/Breadcrumbs/constants.js +4 -1
- package/components/core/Button/Button.js +43 -1
- package/components/core/Button/ButtonStyled.js +53 -1
- package/components/core/Button/constants.js +4 -1
- package/components/core/Dropdown/Dropdown.js +38 -1
- package/components/core/Dropdown/DropdownStyled.js +20 -1
- package/components/core/Dropdown/constants.js +4 -1
- package/components/core/Dropdown/hooks/useDropdown.js +12 -1
- package/components/core/DropdownItem/DropdownItem.js +38 -1
- package/components/core/DropdownItem/DropdownItemStyled.js +17 -1
- package/components/core/DropdownItem/constants.js +4 -1
- package/components/core/Form/Form.js +48 -1
- package/components/core/Form/FormStyled.js +16 -1
- package/components/core/Form/constants.js +4 -1
- package/components/core/Form/utils.js +34 -1
- package/components/core/Icon/Icon.js +33 -1
- package/components/core/Icon/constants.js +92 -1
- package/components/core/Image/Image.js +39 -1
- package/components/core/Image/ImageStyled.js +53 -1
- package/components/core/Image/constants.js +4 -1
- package/components/core/InlineNotification/InlineNotification.js +38 -1
- package/components/core/InlineNotification/InlineNotificationStyled.js +29 -1
- package/components/core/InlineNotification/constants.js +21 -1
- package/components/core/Input/Input.js +72 -1
- package/components/core/Input/InputAdornment/InputAdornment.js +18 -1
- package/components/core/Input/InputAdornment/InputAdornmentStyled.js +15 -1
- package/components/core/Input/InputAdornment/constants.js +4 -1
- package/components/core/Input/InputHelper/InputHelper.js +22 -1
- package/components/core/Input/InputHelper/InputHelperStyled.js +17 -1
- package/components/core/Input/InputHelper/constants.js +4 -1
- package/components/core/Input/InputStyled.js +18 -1
- package/components/core/Input/InputWrapper/InputWrapper.js +22 -1
- package/components/core/Input/InputWrapper/InputWrapperStyled.js +21 -1
- package/components/core/Input/InputWrapper/constants.js +5 -1
- package/components/core/Input/constants.js +18 -1
- package/components/core/Input/useInputHandlers.js +31 -1
- package/components/core/InputFile/InputFile.js +40 -1
- package/components/core/InputFile/InputFileStyled.js +27 -1
- package/components/core/InputFile/constants.js +6 -1
- package/components/core/Label/Label.js +27 -1
- package/components/core/Label/LabelStyled.js +17 -1
- package/components/core/Label/constants.js +4 -1
- package/components/core/Link/Link.js +43 -1
- package/components/core/Link/LinkStyled.js +22 -1
- package/components/core/Link/constants.js +4 -1
- package/components/core/List/List.js +45 -1
- package/components/core/List/ListStyled.js +31 -1
- package/components/core/List/constants.js +4 -1
- package/components/core/Loader/Loader.js +28 -1
- package/components/core/Loader/LoaderStyled.js +41 -1
- package/components/core/Loader/constants.js +6 -1
- package/components/core/Loader/utils.js +37 -1
- package/components/core/Menu/Menu.js +100 -1
- package/components/core/Menu/MenuStyled.js +31 -1
- package/components/core/Menu/constants.js +24 -1
- package/components/core/Modal/Modal.js +47 -1
- package/components/core/Modal/ModalStyled.js +76 -1
- package/components/core/Modal/constants.js +4 -1
- package/components/core/Portal/Portal.d.ts +1 -2
- package/components/core/Portal/Portal.js +19 -1
- package/components/core/Portal/index.d.ts +1 -1
- package/components/core/Scroll/Scroll.js +40 -1
- package/components/core/Scroll/ScrollBar.js +68 -1
- package/components/core/Scroll/ScrollStyled.js +56 -1
- package/components/core/Scroll/constants.js +6 -1
- package/components/core/Scroll/utils.js +41 -1
- package/components/core/Select/Select.js +145 -1
- package/components/core/Select/SelectStyled.js +70 -1
- package/components/core/Select/constants.js +5 -1
- package/components/core/Select/hooks/useSelectContext.js +12 -1
- package/components/core/Separator/Separator.js +36 -1
- package/components/core/Separator/SeparatorStyled.js +61 -1
- package/components/core/Separator/constants.js +4 -1
- package/components/core/Skeleton/Skeleton.js +24 -1
- package/components/core/Skeleton/SkeletonStyled.js +28 -1
- package/components/core/Skeleton/constants.js +6 -1
- package/components/core/Slider/Slider.js +35 -1
- package/components/core/Slider/SliderStyled.js +20 -1
- package/components/core/Slider/constants.js +6 -1
- package/components/core/Snackbar/Snackbar.js +46 -1
- package/components/core/Snackbar/SnackbarManager.js +48 -1
- package/components/core/Snackbar/SnackbarStyled.js +109 -5
- package/components/core/Snackbar/constants.js +10 -1
- package/components/core/Switch/Switch.js +36 -1
- package/components/core/Switch/SwitchStyled.js +56 -1
- package/components/core/Switch/constants.js +4 -1
- package/components/core/Textarea/Textarea.js +41 -1
- package/components/core/Textarea/Textarea.types.d.ts +1 -3
- package/components/core/Textarea/Textarea.types.js +6 -1
- package/components/core/Textarea/TextareaStyled.js +29 -1
- package/components/core/Textarea/constants.js +4 -1
- package/components/core/Textarea/hooks/useDynamicHeightAdjustment.js +8 -1
- package/components/core/Textarea/hooks/useResizeObserver.js +24 -1
- package/components/core/Toggle/Toggle.js +37 -1
- package/components/core/Toggle/ToggleStyled.js +18 -1
- package/components/core/Toggle/constants.js +4 -1
- package/components/core/Tooltip/Tooltip.js +40 -1
- package/components/core/Tooltip/Tooltip.types.js +4 -1
- package/components/core/Tooltip/TooltipStyled.js +23 -1
- package/components/core/Tooltip/constants.js +6 -1
- package/components/core/Tooltip/utils.js +64 -1
- package/components/core/Typography/Typography.js +26 -1
- package/components/core/Typography/TypographyStyled.js +32 -1
- package/components/core/Typography/constants.js +4 -1
- package/components/core/Wrapper/Wrapper.js +20 -1
- package/components/core/Wrapper/WrapperStyled.js +23 -1
- package/components/core/Wrapper/constants.js +4 -1
- package/components/core/index.d.ts +1 -1
- package/components/core/types/roles.types.js +4 -1
- package/components/domainSpecific/Accordion/Accordion.js +35 -1
- package/components/domainSpecific/Accordion/AccordionContent/AccordionContent.js +21 -1
- package/components/domainSpecific/Accordion/AccordionHeader/AccordionHeader.js +29 -1
- package/components/domainSpecific/Accordion/AccordionItem/AccordionItem.js +26 -1
- package/components/domainSpecific/Accordion/AccordionStyled.js +39 -1
- package/components/domainSpecific/Accordion/constants.js +7 -1
- package/components/domainSpecific/Accordion/hooks/useAccordion.js +12 -1
- package/components/domainSpecific/Avatar/Avatar.js +44 -1
- package/components/domainSpecific/Avatar/AvatarStyled.js +63 -1
- package/components/domainSpecific/Avatar/constants.js +6 -1
- package/components/domainSpecific/Card/Card.js +47 -1
- package/components/domainSpecific/Card/CardButton/CardButton.js +25 -1
- package/components/domainSpecific/Card/CardButton/CardButtonStyled.js +18 -1
- package/components/domainSpecific/Card/CardButton/constants.js +4 -1
- package/components/domainSpecific/Card/CardCounter/CardCounter.js +26 -1
- package/components/domainSpecific/Card/CardCounter/CardCounterStyled.js +17 -1
- package/components/domainSpecific/Card/CardCounter/constants.js +4 -1
- package/components/domainSpecific/Card/CardDescription/CardDescription.js +24 -1
- package/components/domainSpecific/Card/CardDescription/CardDescriptionStyled.js +24 -1
- package/components/domainSpecific/Card/CardDescription/constants.js +10 -1
- package/components/domainSpecific/Card/CardImage/CardImage.js +26 -1
- package/components/domainSpecific/Card/CardImage/CardImageStyled.js +18 -1
- package/components/domainSpecific/Card/CardImage/constants.js +4 -1
- package/components/domainSpecific/Card/CardPrice/CardPrice.js +22 -1
- package/components/domainSpecific/Card/CardPrice/CardPriceStyled.js +18 -1
- package/components/domainSpecific/Card/CardPrice/constants.js +4 -1
- package/components/domainSpecific/Card/CardRating/CardRating.js +30 -1
- package/components/domainSpecific/Card/CardRating/CardRatingStyled.js +18 -1
- package/components/domainSpecific/Card/CardRating/constants.js +6 -1
- package/components/domainSpecific/Card/CardTitle/CardTitle.js +25 -1
- package/components/domainSpecific/Card/CardTitle/CardTitleStyled.js +24 -1
- package/components/domainSpecific/Card/CardTitle/constants.js +10 -1
- package/components/domainSpecific/Card/CartStyled.js +26 -1
- package/components/domainSpecific/Card/constants.js +4 -1
- package/components/domainSpecific/Carousel/Carousel.js +137 -1
- package/components/domainSpecific/Carousel/Carousel.types.js +6 -1
- package/components/domainSpecific/Carousel/CarouselStyled.js +143 -1
- package/components/domainSpecific/Carousel/constants.js +4 -1
- package/components/domainSpecific/ChatBubble/ChatBubble.js +26 -1
- package/components/domainSpecific/ChatBubble/ChatBubbleStyled.js +43 -1
- package/components/domainSpecific/ChatBubble/constants.js +4 -1
- package/components/domainSpecific/ContentCarousel/ContentCarousel.js +69 -1
- package/components/domainSpecific/ContentCarousel/ContentCarouselStyled.js +32 -1
- package/components/domainSpecific/ContentCarousel/constants.js +4 -1
- package/components/domainSpecific/Counter/Counter.js +55 -1
- package/components/domainSpecific/Counter/CounterStyled.js +27 -1
- package/components/domainSpecific/Counter/constants.js +8 -1
- package/components/domainSpecific/DragAndDropFiles/DragAndDropFiles.js +48 -1
- package/components/domainSpecific/DragAndDropFiles/DragAndDropFilesStyled.js +16 -1
- package/components/domainSpecific/DragAndDropFiles/constants.js +4 -1
- package/components/domainSpecific/DragAndDropFiles/hooks/useDragAndDrop/useDragAndDrop.js +49 -1
- package/components/domainSpecific/Header/Header.js +88 -1
- package/components/domainSpecific/Header/HeaderStyled.js +136 -1
- package/components/domainSpecific/Header/constants.js +4 -1
- package/components/domainSpecific/Price/Price.js +23 -1
- package/components/domainSpecific/Price/PriceStyled.js +42 -1
- package/components/domainSpecific/Price/constants.js +4 -1
- package/components/domainSpecific/ProgressBar/ProgressBar.js +29 -1
- package/components/domainSpecific/ProgressBar/ProgressBarStyled.js +70 -1
- package/components/domainSpecific/ProgressBar/constants.js +7 -1
- package/components/domainSpecific/RadioGroup/RadioGroup.js +54 -1
- package/components/domainSpecific/RadioGroup/RadioGroup.types.js +4 -1
- package/components/domainSpecific/RadioGroup/RadioGroupItem/RadioGroupItem.js +37 -1
- package/components/domainSpecific/RadioGroup/RadioGroupStyled.js +130 -1
- package/components/domainSpecific/RadioGroup/constants.js +5 -1
- package/components/domainSpecific/Rating/Rating.js +63 -1
- package/components/domainSpecific/Rating/RatingStyled.js +61 -1
- package/components/domainSpecific/Rating/constants.js +9 -1
- package/components/domainSpecific/Search/Search.js +58 -1
- package/components/domainSpecific/Search/SearchStyled.js +16 -1
- package/components/domainSpecific/Search/constants.js +7 -1
- package/components/domainSpecific/SearchModal/SearchInput/SearchInput.js +26 -1
- package/components/domainSpecific/SearchModal/SearchInput/SearchInputStyled.js +25 -1
- package/components/domainSpecific/SearchModal/SearchInput/constants.js +6 -1
- package/components/domainSpecific/SearchModal/SearchItems/SearchItems.js +48 -1
- package/components/domainSpecific/SearchModal/SearchItems/SearchItemsStyled.js +82 -1
- package/components/domainSpecific/SearchModal/SearchItems/constants.js +10 -1
- package/components/domainSpecific/SearchModal/SearchItems/utils.js +7 -1
- package/components/domainSpecific/SearchModal/SearchLoader/SearchLoader.js +20 -1
- package/components/domainSpecific/SearchModal/SearchLoader/SearchLoaderStyled.js +14 -1
- package/components/domainSpecific/SearchModal/SearchLoader/constants.js +4 -1
- package/components/domainSpecific/SearchModal/SearchModal.js +39 -1
- package/components/domainSpecific/SearchModal/SearchModalStyled.js +29 -1
- package/components/domainSpecific/SearchModal/constants.js +8 -1
- package/components/domainSpecific/Stepper/Stepper.js +42 -1
- package/components/domainSpecific/Stepper/StepperStyled.js +58 -1
- package/components/domainSpecific/Stepper/constants.js +4 -1
- package/components/domainSpecific/Stepper/utils.js +37 -1
- package/components/domainSpecific/Tabs/Tabs.js +40 -1
- package/components/domainSpecific/Tabs/TabsStyled.js +79 -1
- package/components/domainSpecific/Tabs/constants.js +6 -1
- package/components/index.types.js +4 -1
- package/components/layout/ChatContainer/ChatContainer.js +51 -1
- package/components/layout/ChatContainer/ChatContainer.types.d.ts +1 -6
- package/components/layout/ChatContainer/ChatContainerStyled.js +71 -1
- package/components/layout/ChatContainer/constants.js +4 -1
- package/components/layout/Column/Column.js +26 -1
- package/components/layout/Column/ColumnStyled.js +36 -1
- package/components/layout/Column/constants.js +4 -1
- package/components/layout/FlexContainer/FlexContainer.js +25 -1
- package/components/layout/FlexContainer/FlexContainerStyled.js +27 -1
- package/components/layout/FlexContainer/constants.js +4 -1
- package/components/layout/FlexContainer/utils.js +18 -1
- package/components/layout/Row/Row.js +26 -1
- package/components/layout/Row/RowStyled.js +36 -1
- package/components/layout/Row/constants.js +4 -1
- package/components/templates/SkeletonSearch/SkeletonSearch.js +30 -1
- package/components/templates/SkeletonSearch/SkeletonSearchStyled.js +97 -1
- package/components/templates/SkeletonSearch/constants.js +5 -1
- package/components/widget/DragAndDrop/DragAndDrop.js +74 -1
- package/components/widget/DragAndDrop/DragAndDropStyled.js +61 -1
- package/components/widget/DragAndDrop/constants.js +4 -1
- package/components/widget/DragAndDrop/utils/validators.js +17 -1
- package/constants/keyboard.js +10 -1
- package/constants/positioning.js +11 -1
- package/constants/timers.js +5 -1
- package/hooks/useAutoFocus/useAutoFocus.js +11 -1
- package/hooks/useCarousel/useCarousel.js +61 -1
- package/hooks/useClickOutside/useClickOutside.js +15 -1
- package/hooks/useKeyControls/useKeyControls.js +19 -1
- package/hooks/useMediaQuery/useMediaQuery.js +14 -1
- package/hooks/useTheme/useTheme.js +47 -1
- package/index.js +351 -1
- package/package.json +17 -2
- package/stories/components/TokenViewer/TokenViewer.d.ts +2 -0
- package/stories/components/TokenViewer/TokenViewer.types.d.ts +12 -0
- package/stories/components/TokenViewer/TokenViewerStyled.d.ts +11 -0
- package/stories/components/TokenViewer/index.d.ts +1 -0
- package/tokens/accordion.js +72 -1
- package/tokens/animations.js +63 -1
- package/tokens/avatar.d.ts +22 -15
- package/tokens/avatar.js +153 -1
- package/tokens/borders.js +17 -1
- package/tokens/breadcrumbs.js +37 -1
- package/tokens/button.js +146 -1
- package/tokens/card.js +187 -1
- package/tokens/carousel.js +216 -1
- package/tokens/chat.js +118 -1
- package/tokens/chatbubble.js +56 -1
- package/tokens/colors.js +157 -1
- package/tokens/column.js +9 -1
- package/tokens/constants.js +4 -1
- package/tokens/counter.js +37 -1
- package/tokens/cursors.js +20 -1
- package/tokens/defaultTheme.d.ts +22 -15
- package/tokens/defaultTheme.js +113 -1
- package/tokens/display.js +19 -1
- package/tokens/draganddrop.js +87 -1
- package/tokens/draganddropfiles.js +6 -1
- package/tokens/flexContainer.js +13 -1
- package/tokens/font.js +52 -1
- package/tokens/form.js +6 -1
- package/tokens/header.js +123 -1
- package/tokens/icon.js +32 -1
- package/tokens/image.js +40 -1
- package/tokens/index.d.ts +22 -15
- package/tokens/index.js +142 -1
- package/tokens/inlineNotification.js +75 -1
- package/tokens/input.js +192 -1
- package/tokens/inputfile.js +12 -1
- package/tokens/label.js +9 -1
- package/tokens/link.js +66 -1
- package/tokens/list.js +87 -1
- package/tokens/loader.js +141 -1
- package/tokens/menu.js +19 -1
- package/tokens/modal.js +108 -1
- package/tokens/price.js +32 -1
- package/tokens/progressbar.js +60 -1
- package/tokens/radiogroup.js +103 -2
- package/tokens/radius.js +14 -1
- package/tokens/rating.js +73 -1
- package/tokens/reset.js +4 -1
- package/tokens/row.js +8 -1
- package/tokens/scroll.js +99 -1
- package/tokens/search.js +45 -1
- package/tokens/searchModal.js +159 -1
- package/tokens/select.js +99 -1
- package/tokens/separator.js +63 -1
- package/tokens/shadow.js +24 -1
- package/tokens/skeleton.js +77 -1
- package/tokens/slider.js +45 -1
- package/tokens/snackbar.js +167 -1
- package/tokens/spacing.js +13 -1
- package/tokens/stepper.js +147 -1
- package/tokens/switch.js +76 -1
- package/tokens/tabs.js +108 -1
- package/tokens/textarea.js +45 -1
- package/tokens/toggle.js +19 -1
- package/tokens/tooltip.js +69 -1
- package/tokens/types/index.types.js +4 -1
- package/tokens/typography.js +134 -1
- package/tokens/utils.js +85 -1
- package/tokens/values.js +73 -1
- package/tokens/wrapper.js +34 -1
- package/types/accesability.js +4 -1
- package/types/button.js +7 -1
- package/types/card.js +5 -1
- package/types/chat.js +4 -1
- package/types/common.js +5 -1
- package/types/cursors.js +4 -1
- package/types/input.js +6 -1
- package/types/label.js +4 -1
- package/types/layout.js +4 -1
- package/types/link.js +5 -1
- package/types/list.js +4 -1
- package/types/separator.js +5 -1
- package/types/skeleton.js +4 -1
- package/types/snackbar.js +5 -1
- package/types/stepper.js +5 -1
- package/types/typography.js +6 -1
- package/types/wrapper.js +4 -1
- package/utils/animationFrame.js +17 -1
- package/utils/common.js +4 -1
- package/utils/date.js +11 -1
- package/utils/focus.js +54 -1
- package/utils/helpers.js +42 -1
- package/utils/layout.js +32 -1
- package/utils/math.js +11 -1
- package/utils/setInRange.js +11 -1
- package/utils/uniqueKeys.js +4 -1
- package/components/layout/ChatContainer/ChatContainer.types.js +0 -1
- /package/{gd-design-library.css → assets/styles.css} +0 -0
|
@@ -1 +1,82 @@
|
|
|
1
|
-
"use client";
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx as c } from "@emotion/react/jsx-runtime";
|
|
3
|
+
import { get as r } from "../../../../utils/helpers.js";
|
|
4
|
+
import { Button as l } from "../../../core/Button/Button.js";
|
|
5
|
+
import { Row as a } from "../../../layout/Row/Row.js";
|
|
6
|
+
import { Column as d } from "../../../layout/Column/Column.js";
|
|
7
|
+
const y = (e) => {
|
|
8
|
+
const {
|
|
9
|
+
theme: {
|
|
10
|
+
searchModal: s
|
|
11
|
+
} = {},
|
|
12
|
+
...o
|
|
13
|
+
} = e, t = r(s, "items.default", {});
|
|
14
|
+
return /* @__PURE__ */ c("div", { css: t, ...o });
|
|
15
|
+
}, P = (e) => {
|
|
16
|
+
const {
|
|
17
|
+
theme: {
|
|
18
|
+
searchModal: s
|
|
19
|
+
} = {},
|
|
20
|
+
...o
|
|
21
|
+
} = e, t = r(s, "items.newSearchBtn", {}), n = r(t, "styles", {}), m = r(t, "attrs", {});
|
|
22
|
+
return /* @__PURE__ */ c(l, { css: n, ...m, ...o });
|
|
23
|
+
}, M = (e) => {
|
|
24
|
+
const {
|
|
25
|
+
theme: {
|
|
26
|
+
searchModal: s
|
|
27
|
+
} = {},
|
|
28
|
+
...o
|
|
29
|
+
} = e, t = r(s, "items.noResult", {});
|
|
30
|
+
return /* @__PURE__ */ c("div", { css: t, ...o });
|
|
31
|
+
}, f = (e) => {
|
|
32
|
+
const {
|
|
33
|
+
theme: {
|
|
34
|
+
searchModal: s
|
|
35
|
+
} = {},
|
|
36
|
+
...o
|
|
37
|
+
} = e, t = r(s, "items.groupTitle", {});
|
|
38
|
+
return /* @__PURE__ */ c("div", { css: t, ...o });
|
|
39
|
+
}, I = (e) => {
|
|
40
|
+
const {
|
|
41
|
+
theme: {
|
|
42
|
+
searchModal: s
|
|
43
|
+
} = {},
|
|
44
|
+
...o
|
|
45
|
+
} = e, t = r(s, "items.item", {}), n = r(t, "styles", {}), m = r(t, "attrs", {});
|
|
46
|
+
return /* @__PURE__ */ c(l, { css: n, ...m, ...o });
|
|
47
|
+
}, v = (e) => {
|
|
48
|
+
const {
|
|
49
|
+
theme: {
|
|
50
|
+
searchModal: s
|
|
51
|
+
} = {},
|
|
52
|
+
...o
|
|
53
|
+
} = e, t = r(s, "items.itemRow", {});
|
|
54
|
+
return /* @__PURE__ */ c(a, { css: t, ...o });
|
|
55
|
+
}, w = (e) => {
|
|
56
|
+
const {
|
|
57
|
+
theme: {
|
|
58
|
+
searchModal: s
|
|
59
|
+
} = {},
|
|
60
|
+
...o
|
|
61
|
+
} = e, t = r(s, "items.itemColumn", {});
|
|
62
|
+
return /* @__PURE__ */ c(d, { css: t, ...o });
|
|
63
|
+
}, C = (e) => {
|
|
64
|
+
const {
|
|
65
|
+
theme: {
|
|
66
|
+
searchModal: s
|
|
67
|
+
} = {},
|
|
68
|
+
$variant: o = "default",
|
|
69
|
+
...t
|
|
70
|
+
} = e, n = r(s, `items.itemContent.${o}`, {});
|
|
71
|
+
return /* @__PURE__ */ c("div", { css: n, ...t });
|
|
72
|
+
};
|
|
73
|
+
export {
|
|
74
|
+
P as NewSearchButtonStyled,
|
|
75
|
+
f as SearchGroupTitleStyled,
|
|
76
|
+
w as SearchItemColumnStyled,
|
|
77
|
+
C as SearchItemContentStyled,
|
|
78
|
+
v as SearchItemRowStyled,
|
|
79
|
+
I as SearchItemStyled,
|
|
80
|
+
y as SearchItemsStyled,
|
|
81
|
+
M as SearchNoItemsStyled
|
|
82
|
+
};
|
|
@@ -1 +1,10 @@
|
|
|
1
|
-
|
|
1
|
+
const E = "SearchItems", N = "SearchGroupTitle", t = "SearchItem", _ = "SearchEmpty", c = "NEW_SEARCH", O = "edit", T = "search";
|
|
2
|
+
export {
|
|
3
|
+
_ as COMPONENT_EMPTY_NAME,
|
|
4
|
+
N as COMPONENT_GROUP_TITLE,
|
|
5
|
+
t as COMPONENT_ITEM_NAME,
|
|
6
|
+
E as COMPONENT_NAME,
|
|
7
|
+
O as NEW_CHAT_ICON,
|
|
8
|
+
c as NEW_SEARCH,
|
|
9
|
+
T as NO_RESULTS_ICON
|
|
10
|
+
};
|
|
@@ -1 +1,7 @@
|
|
|
1
|
-
"use client";
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx as e } from "@emotion/react/jsx-runtime";
|
|
3
|
+
import { Icon as n } from "../../../core/Icon/Icon.js";
|
|
4
|
+
const f = (r, t) => r ? typeof r == "string" ? /* @__PURE__ */ e(n, { name: r, ...t }) : r : null;
|
|
5
|
+
export {
|
|
6
|
+
f as getIcon
|
|
7
|
+
};
|
|
@@ -1 +1,20 @@
|
|
|
1
|
-
"use client";
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx as e } from "@emotion/react/jsx-runtime";
|
|
3
|
+
import { COMPONENT_NAME as r } from "./constants.js";
|
|
4
|
+
import { SearchLoaderStyled as a } from "./SearchLoaderStyled.js";
|
|
5
|
+
import { useTheme as n } from "../../../../hooks/useTheme/useTheme.js";
|
|
6
|
+
import { Skeleton as p } from "../../../core/Skeleton/Skeleton.js";
|
|
7
|
+
const s = (t) => {
|
|
8
|
+
const {
|
|
9
|
+
itemsCount: o
|
|
10
|
+
} = t, {
|
|
11
|
+
theme: m
|
|
12
|
+
} = n();
|
|
13
|
+
return /* @__PURE__ */ e(a, { theme: m, "data-testid": r, children: Array.from({
|
|
14
|
+
length: o
|
|
15
|
+
}).map((h, i) => /* @__PURE__ */ e(p, { height: "20px" }, i)) });
|
|
16
|
+
};
|
|
17
|
+
s.displayName = r;
|
|
18
|
+
export {
|
|
19
|
+
s as SearchLoader
|
|
20
|
+
};
|
|
@@ -1 +1,14 @@
|
|
|
1
|
-
|
|
1
|
+
import { jsx as o } from "@emotion/react/jsx-runtime";
|
|
2
|
+
import { get as s } from "../../../../utils/helpers.js";
|
|
3
|
+
const c = (e) => {
|
|
4
|
+
const {
|
|
5
|
+
theme: {
|
|
6
|
+
searchModal: r
|
|
7
|
+
} = {},
|
|
8
|
+
...t
|
|
9
|
+
} = e;
|
|
10
|
+
return /* @__PURE__ */ o("div", { css: [s(r, "loader.default", {})], ...t });
|
|
11
|
+
};
|
|
12
|
+
export {
|
|
13
|
+
c as SearchLoaderStyled
|
|
14
|
+
};
|
|
@@ -1 +1,39 @@
|
|
|
1
|
-
"use client";
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsxs as _, jsx as t } from "@emotion/react/jsx-runtime";
|
|
3
|
+
import { forwardRef as R } from "react";
|
|
4
|
+
import { DEFAULT_NO_HISTORY_RESULTS as I, DEFAULT_NO_RESULTS as N, DEFAULT_NEW_SEARCH as A, DEFAULT_LOADER_ITEMS_COUNT as O, COMPONENT_NAME as m } from "./constants.js";
|
|
5
|
+
import { SearchModalStyled as U, SearchModalWrapperStyled as M } from "./SearchModalStyled.js";
|
|
6
|
+
import { SearchInput as y } from "./SearchInput/SearchInput.js";
|
|
7
|
+
import { SearchLoader as D } from "./SearchLoader/SearchLoader.js";
|
|
8
|
+
import { SearchItems as w } from "./SearchItems/SearchItems.js";
|
|
9
|
+
import { useTheme as F } from "../../../hooks/useTheme/useTheme.js";
|
|
10
|
+
const b = R((i, n) => {
|
|
11
|
+
const {
|
|
12
|
+
children: c,
|
|
13
|
+
onResultClick: h,
|
|
14
|
+
results: S = [],
|
|
15
|
+
historyResults: d = [],
|
|
16
|
+
searchValue: r = "",
|
|
17
|
+
isLoading: f = !1,
|
|
18
|
+
noHistoryResultsLabel: u = I,
|
|
19
|
+
noResultsLabel: p = N,
|
|
20
|
+
newSearchCta: E = A,
|
|
21
|
+
// @TODO: rename to loaderLinesCount, add possibility for a loader line set custom size
|
|
22
|
+
loaderItemsCount: C = O,
|
|
23
|
+
modalProps: e = {},
|
|
24
|
+
searchProps: L = {},
|
|
25
|
+
...T
|
|
26
|
+
} = i, {
|
|
27
|
+
theme: o
|
|
28
|
+
} = F();
|
|
29
|
+
let s = d, a = u, l = E;
|
|
30
|
+
return r && (s = S, a = p, l = ""), /* @__PURE__ */ _(U, { theme: o, ref: n, "data-testid": m, ...e, ...T, children: [
|
|
31
|
+
/* @__PURE__ */ t(y, { onEndIconClick: e == null ? void 0 : e.onClose, ...L, defaultValue: r }),
|
|
32
|
+
/* @__PURE__ */ t(M, { theme: o, children: f ? /* @__PURE__ */ t(D, { itemsCount: C }) : /* @__PURE__ */ t(w, { onItemClick: h, items: s, newSearchCta: l, noItemsLabel: a }) }),
|
|
33
|
+
c
|
|
34
|
+
] });
|
|
35
|
+
});
|
|
36
|
+
b.displayName = m;
|
|
37
|
+
export {
|
|
38
|
+
b as SearchModal
|
|
39
|
+
};
|
|
@@ -1 +1,29 @@
|
|
|
1
|
-
"use client";
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx as o } from "@emotion/react/jsx-runtime";
|
|
3
|
+
import { Modal as a } from "../../core/Modal/Modal.js";
|
|
4
|
+
import { get as c } from "../../../utils/helpers.js";
|
|
5
|
+
const n = (e) => {
|
|
6
|
+
const {
|
|
7
|
+
theme: {
|
|
8
|
+
searchModal: t
|
|
9
|
+
} = {},
|
|
10
|
+
styles: s = {},
|
|
11
|
+
...r
|
|
12
|
+
} = e, l = {
|
|
13
|
+
...c(t, "default", {}),
|
|
14
|
+
...s
|
|
15
|
+
};
|
|
16
|
+
return /* @__PURE__ */ o(a, { styles: l, isCustomView: !0, closeOnEscape: !0, ...r });
|
|
17
|
+
}, u = (e) => {
|
|
18
|
+
const {
|
|
19
|
+
theme: {
|
|
20
|
+
searchModal: t
|
|
21
|
+
} = {},
|
|
22
|
+
...s
|
|
23
|
+
} = e, r = c(t, "wrapper", {});
|
|
24
|
+
return /* @__PURE__ */ o("div", { css: r, ...s });
|
|
25
|
+
};
|
|
26
|
+
export {
|
|
27
|
+
n as SearchModalStyled,
|
|
28
|
+
u as SearchModalWrapperStyled
|
|
29
|
+
};
|
|
@@ -1 +1,8 @@
|
|
|
1
|
-
|
|
1
|
+
const o = "SearchModal", E = 3, _ = "You have no conversations", T = "No Results", s = "No chat";
|
|
2
|
+
export {
|
|
3
|
+
o as COMPONENT_NAME,
|
|
4
|
+
E as DEFAULT_LOADER_ITEMS_COUNT,
|
|
5
|
+
s as DEFAULT_NEW_SEARCH,
|
|
6
|
+
_ as DEFAULT_NO_HISTORY_RESULTS,
|
|
7
|
+
T as DEFAULT_NO_RESULTS
|
|
8
|
+
};
|
|
@@ -1 +1,42 @@
|
|
|
1
|
-
"use client";
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx as p, jsxs as m } from "@emotion/react/jsx-runtime";
|
|
3
|
+
import { forwardRef as C, useCallback as v, Fragment as w } from "react";
|
|
4
|
+
import { COMPONENT_NAME as a } from "./constants.js";
|
|
5
|
+
import { getStepStatusIcon as N } from "./utils.js";
|
|
6
|
+
import { StepperStyled as V, StepStyled as b, StepIconStyled as j, StepLabelStyled as k, SeparatorStyled as A } from "./StepperStyled.js";
|
|
7
|
+
import { useTheme as E } from "../../../hooks/useTheme/useTheme.js";
|
|
8
|
+
import { StepValidationStatus as L, StepStatus as l } from "../../../types/stepper.js";
|
|
9
|
+
const _ = C((u, d) => {
|
|
10
|
+
const {
|
|
11
|
+
steps: S = [],
|
|
12
|
+
isIconsView: f = !1,
|
|
13
|
+
activeStep: c = 0,
|
|
14
|
+
onStepClick: o,
|
|
15
|
+
...$
|
|
16
|
+
} = u, {
|
|
17
|
+
theme: e
|
|
18
|
+
} = E(), h = v((t, i) => (n) => o == null ? void 0 : o(t, i, n), []), y = (t) => t === c ? l.Active : t < c ? l.Complete : l.Inactive;
|
|
19
|
+
return /* @__PURE__ */ p(V, { ref: d, theme: e, "data-testid": a, ...$, children: S.map(({
|
|
20
|
+
validationStatus: t = L.Success,
|
|
21
|
+
customView: i,
|
|
22
|
+
label: n
|
|
23
|
+
}, s) => {
|
|
24
|
+
const r = y(s), I = s < S.length - 1, g = N({
|
|
25
|
+
status: r,
|
|
26
|
+
validationStatus: t,
|
|
27
|
+
customView: i,
|
|
28
|
+
isIconsView: f,
|
|
29
|
+
theme: e
|
|
30
|
+
}) || s + 1;
|
|
31
|
+
return /* @__PURE__ */ m(w, { children: [
|
|
32
|
+
/* @__PURE__ */ m(b, { theme: e, $status: r, onClick: o && h(s, r), "data-testid": `${a}-step`, "aria-selected": s === c, children: [
|
|
33
|
+
/* @__PURE__ */ p(j, { theme: e, $status: r, $validationStatus: t, "data-testid": `${a}-step-icon`, children: g }),
|
|
34
|
+
n && /* @__PURE__ */ p(k, { theme: e, $status: r, $validationStatus: t, "data-testid": `${a}-step-label`, children: n })
|
|
35
|
+
] }),
|
|
36
|
+
I && /* @__PURE__ */ p(A, { theme: e, $status: r })
|
|
37
|
+
] }, `${a}-step-${s}`);
|
|
38
|
+
}) });
|
|
39
|
+
});
|
|
40
|
+
export {
|
|
41
|
+
_ as Stepper
|
|
42
|
+
};
|
|
@@ -1 +1,58 @@
|
|
|
1
|
-
|
|
1
|
+
import { jsx as p } from "@emotion/react/jsx-runtime";
|
|
2
|
+
import { forwardRef as d } from "react";
|
|
3
|
+
import { get as t } from "../../../utils/helpers.js";
|
|
4
|
+
const m = d((n, c) => {
|
|
5
|
+
const {
|
|
6
|
+
theme: {
|
|
7
|
+
stepper: o
|
|
8
|
+
} = {},
|
|
9
|
+
styles: r = {},
|
|
10
|
+
...s
|
|
11
|
+
} = n, e = [t(o, "default", {}), r];
|
|
12
|
+
return /* @__PURE__ */ p("div", { css: e, ...s, ref: c });
|
|
13
|
+
}), y = (n) => {
|
|
14
|
+
const {
|
|
15
|
+
theme: {
|
|
16
|
+
stepper: c
|
|
17
|
+
} = {},
|
|
18
|
+
$status: o,
|
|
19
|
+
...r
|
|
20
|
+
} = n, s = t(c, "separator", {}), e = [t(s, "default", {}), t(s, o, {})];
|
|
21
|
+
return /* @__PURE__ */ p("div", { css: e, ...r });
|
|
22
|
+
}, f = (n) => {
|
|
23
|
+
const {
|
|
24
|
+
theme: {
|
|
25
|
+
stepper: c
|
|
26
|
+
} = {},
|
|
27
|
+
$status: o,
|
|
28
|
+
...r
|
|
29
|
+
} = n, s = t(c, "step", {}), e = [t(s, "default", {}), t(s, o, {})];
|
|
30
|
+
return /* @__PURE__ */ p("div", { css: e, ...r });
|
|
31
|
+
}, i = (n) => {
|
|
32
|
+
const {
|
|
33
|
+
theme: {
|
|
34
|
+
stepper: c
|
|
35
|
+
} = {},
|
|
36
|
+
$status: o,
|
|
37
|
+
$validationStatus: r,
|
|
38
|
+
...s
|
|
39
|
+
} = n, e = t(c, "stepIcon", {}), l = [t(e, "default", {}), t(e, [o, "default"], {}), t(e, [o, r], {})];
|
|
40
|
+
return /* @__PURE__ */ p("div", { css: l, ...s });
|
|
41
|
+
}, v = (n) => {
|
|
42
|
+
const {
|
|
43
|
+
theme: {
|
|
44
|
+
stepper: c
|
|
45
|
+
} = {},
|
|
46
|
+
$status: o,
|
|
47
|
+
$validationStatus: r,
|
|
48
|
+
...s
|
|
49
|
+
} = n, e = t(c, "stepLabel", {}), l = [t(e, "default", {}), t(e, o, {}), t(e, r, {})];
|
|
50
|
+
return /* @__PURE__ */ p("div", { css: l, ...s });
|
|
51
|
+
};
|
|
52
|
+
export {
|
|
53
|
+
y as SeparatorStyled,
|
|
54
|
+
i as StepIconStyled,
|
|
55
|
+
v as StepLabelStyled,
|
|
56
|
+
f as StepStyled,
|
|
57
|
+
m as StepperStyled
|
|
58
|
+
};
|
|
@@ -1 +1,37 @@
|
|
|
1
|
-
"use client";
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx as n } from "@emotion/react/jsx-runtime";
|
|
3
|
+
import { get as e } from "../../../utils/helpers.js";
|
|
4
|
+
import { StepStatus as a, StepValidationStatus as f } from "../../../types/stepper.js";
|
|
5
|
+
import { Icon as c } from "../../core/Icon/Icon.js";
|
|
6
|
+
const h = ({
|
|
7
|
+
status: s,
|
|
8
|
+
validationStatus: i,
|
|
9
|
+
customView: r,
|
|
10
|
+
isIconsView: o,
|
|
11
|
+
theme: m
|
|
12
|
+
}) => {
|
|
13
|
+
const p = i === f.Error, t = e(m, "stepper.icons", {});
|
|
14
|
+
switch (s) {
|
|
15
|
+
case a.Complete:
|
|
16
|
+
return p ? /* @__PURE__ */ n(c, { ...e(t, "error", {
|
|
17
|
+
name: "cross"
|
|
18
|
+
}) }) : o ? /* @__PURE__ */ n(c, { ...e(t, "complete", {
|
|
19
|
+
name: "check"
|
|
20
|
+
}) }) : r;
|
|
21
|
+
case a.Inactive:
|
|
22
|
+
return o ? r || /* @__PURE__ */ n(c, { ...e(t, "inactive", {
|
|
23
|
+
name: "check"
|
|
24
|
+
}) }) : r;
|
|
25
|
+
case a.Active:
|
|
26
|
+
return p ? /* @__PURE__ */ n(c, { ...e(t, "errorActive", {
|
|
27
|
+
name: "cross"
|
|
28
|
+
}) }) : o ? r || /* @__PURE__ */ n(c, { ...e(t, "active", {
|
|
29
|
+
name: "check"
|
|
30
|
+
}) }) : r;
|
|
31
|
+
default:
|
|
32
|
+
return r;
|
|
33
|
+
}
|
|
34
|
+
};
|
|
35
|
+
export {
|
|
36
|
+
h as getStepStatusIcon
|
|
37
|
+
};
|
|
@@ -1 +1,40 @@
|
|
|
1
|
-
"use client";
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsxs as C, jsx as o } from "@emotion/react/jsx-runtime";
|
|
3
|
+
import { forwardRef as v, useState as A, useCallback as p } from "react";
|
|
4
|
+
import { COMPONENT_NAME as r, TabRoles as a } from "./constants.js";
|
|
5
|
+
import { TabsStyled as N, TabsHeaderStyled as I, TabLabelStyled as g, TextButtonStyled as k, NoticeCounterStyled as E, TabPanelsWrapperStyled as L, TabPanelStyled as _ } from "./TabsStyled.js";
|
|
6
|
+
import { useTheme as j } from "../../../hooks/useTheme/useTheme.js";
|
|
7
|
+
import { generateUniqueId as w } from "../../../utils/uniqueKeys.js";
|
|
8
|
+
const K = v((f, h) => {
|
|
9
|
+
const {
|
|
10
|
+
activeTab: u = 0,
|
|
11
|
+
tabs: T = [],
|
|
12
|
+
ariaLabel: $,
|
|
13
|
+
onTabChange: b,
|
|
14
|
+
...y
|
|
15
|
+
} = f, {
|
|
16
|
+
theme: l
|
|
17
|
+
} = j(), [m, P] = A(u), S = p((e) => () => {
|
|
18
|
+
P(e), b && b(e);
|
|
19
|
+
}, [b]), n = p((e, t) => w(t, `${r}-${e}`), []);
|
|
20
|
+
return /* @__PURE__ */ C(N, { ref: h, theme: l, "data-testid": r, ...$ ? {
|
|
21
|
+
"aria-label": $
|
|
22
|
+
} : {}, ...y, children: [
|
|
23
|
+
/* @__PURE__ */ o(I, { theme: l, "data-testid": `${r}-header`, role: a.TabList, children: T.map(({
|
|
24
|
+
isDisabled: e,
|
|
25
|
+
noticeCounter: t,
|
|
26
|
+
label: s,
|
|
27
|
+
id: d
|
|
28
|
+
}, i) => {
|
|
29
|
+
const c = i === m;
|
|
30
|
+
return /* @__PURE__ */ o(g, { theme: l, $isDisabled: e, $isActive: c, "data-testid": `${r}-${a.Tab}`, children: /* @__PURE__ */ o(k, { onClick: S(i), disabled: e, id: n(`${a.Tab}-${i}`, d), theme: l, iconEnd: typeof t < "u" && /* @__PURE__ */ o(E, { className: `${r}__noticeCounter`, theme: l, $isActive: c, $isDisabled: e, "data-testid": `${r}-noticeCounter`, children: t }), "aria-selected": c, "aria-controls": n(`${a.TabPanel}-${i}`, d), children: s }) }, n(`tab-${i}`, d));
|
|
31
|
+
}) }),
|
|
32
|
+
/* @__PURE__ */ o(L, { theme: l, "data-testid": `${r}-wrapper`, children: T.map(({
|
|
33
|
+
content: e,
|
|
34
|
+
id: t
|
|
35
|
+
}, s) => /* @__PURE__ */ o(_, { id: n(`${a.TabPanel}-${s}`, t), "aria-labelledby": n(`${a.Tab}-${s}`, t), role: a.TabPanel, hidden: s !== m, "data-testid": `${r}-${a.TabPanel}`, children: e }, n(`${a.TabPanel}-${s}`, t))) })
|
|
36
|
+
] });
|
|
37
|
+
});
|
|
38
|
+
export {
|
|
39
|
+
K as Tabs
|
|
40
|
+
};
|
|
@@ -1 +1,79 @@
|
|
|
1
|
-
"use client";
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx as r } from "@emotion/react/jsx-runtime";
|
|
3
|
+
import { forwardRef as i } from "react";
|
|
4
|
+
import { get as t } from "../../../utils/helpers.js";
|
|
5
|
+
import { Button as u } from "../../core/Button/Button.js";
|
|
6
|
+
import { ButtonRole as m, ButtonVariant as b } from "../../../types/button.js";
|
|
7
|
+
const h = i((s, o) => {
|
|
8
|
+
const {
|
|
9
|
+
theme: {
|
|
10
|
+
tabs: e
|
|
11
|
+
} = {},
|
|
12
|
+
styles: n = {},
|
|
13
|
+
...a
|
|
14
|
+
} = s, c = [t(e, "default", {}), n];
|
|
15
|
+
return /* @__PURE__ */ r("div", { css: c, ...a, ref: o });
|
|
16
|
+
}), T = (s) => {
|
|
17
|
+
const {
|
|
18
|
+
theme: {
|
|
19
|
+
tabs: o
|
|
20
|
+
} = {},
|
|
21
|
+
...e
|
|
22
|
+
} = s;
|
|
23
|
+
return /* @__PURE__ */ r("div", { css: [t(o, "header.default", {})], ...e });
|
|
24
|
+
}, B = (s) => {
|
|
25
|
+
const {
|
|
26
|
+
theme: {
|
|
27
|
+
tabs: o
|
|
28
|
+
} = {},
|
|
29
|
+
$isDisabled: e,
|
|
30
|
+
$isActive: n,
|
|
31
|
+
...a
|
|
32
|
+
} = s, c = t(o, "label", {}), l = t(c, "disabled", {}), d = [t(c, "default", {}), n ? t(c, "active", {}) : {}, e ? t(l, "default", {}) : {}, e && n ? t(l, "active", {}) : {}];
|
|
33
|
+
return /* @__PURE__ */ r("div", { css: d, ...a });
|
|
34
|
+
}, x = (s) => {
|
|
35
|
+
const {
|
|
36
|
+
theme: {
|
|
37
|
+
tabs: o
|
|
38
|
+
} = {},
|
|
39
|
+
styles: e = {},
|
|
40
|
+
...n
|
|
41
|
+
} = s, a = [t(o, "panelsWrapper.default", {}), e];
|
|
42
|
+
return /* @__PURE__ */ r("div", { css: a, ...n });
|
|
43
|
+
}, $ = (s) => {
|
|
44
|
+
const {
|
|
45
|
+
theme: {
|
|
46
|
+
tabs: o
|
|
47
|
+
} = {},
|
|
48
|
+
styles: e = {},
|
|
49
|
+
...n
|
|
50
|
+
} = s, a = [t(o, "panel.default", {}), e];
|
|
51
|
+
return /* @__PURE__ */ r("div", { css: a, ...n });
|
|
52
|
+
}, D = (s) => {
|
|
53
|
+
const {
|
|
54
|
+
theme: {
|
|
55
|
+
tabs: o
|
|
56
|
+
} = {},
|
|
57
|
+
$isDisabled: e,
|
|
58
|
+
$isActive: n,
|
|
59
|
+
...a
|
|
60
|
+
} = s, c = t(o, "noticeCounter", {}), l = [t(c, "default", {}), n ? t(c, "active", {}) : {}, e ? t(c, "disabled", {}) : {}];
|
|
61
|
+
return /* @__PURE__ */ r("span", { css: l, ...a });
|
|
62
|
+
}, A = (s) => {
|
|
63
|
+
const {
|
|
64
|
+
theme: {
|
|
65
|
+
tabs: o
|
|
66
|
+
} = {},
|
|
67
|
+
...e
|
|
68
|
+
} = s, n = [t(o, "tabButton.default", {})];
|
|
69
|
+
return /* @__PURE__ */ r(u, { css: n, variant: b.Text, role: m.Tab, ...e });
|
|
70
|
+
};
|
|
71
|
+
export {
|
|
72
|
+
D as NoticeCounterStyled,
|
|
73
|
+
B as TabLabelStyled,
|
|
74
|
+
$ as TabPanelStyled,
|
|
75
|
+
x as TabPanelsWrapperStyled,
|
|
76
|
+
T as TabsHeaderStyled,
|
|
77
|
+
h as TabsStyled,
|
|
78
|
+
A as TextButtonStyled
|
|
79
|
+
};
|
|
@@ -1 +1,6 @@
|
|
|
1
|
-
|
|
1
|
+
const b = "Tabs";
|
|
2
|
+
var t = /* @__PURE__ */ ((a) => (a.TabList = "tablist", a.Tab = "tab", a.TabPanel = "tabpanel", a))(t || {});
|
|
3
|
+
export {
|
|
4
|
+
b as COMPONENT_NAME,
|
|
5
|
+
t as TabRoles
|
|
6
|
+
};
|
|
@@ -1 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
var o = /* @__PURE__ */ ((a) => (a.png = "image/png", a.gif = "image/gif", a.jpeg = "image/jpeg", a.svg = "image/svg+xml", a.webp = "image/webp", a.mp4 = "video/mp4", a.pdf = "application/pdf", a.doc = "application/msword", a.docx = "application/vnd.openxmlformats-officedocument.wordprocessingml.document", a.xls = "application/vnd.ms-excel", a.xlsx = "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet", a.csv = "text/csv", a.text = "text/plain", a.zip = "application/zip", a.rar = "application/x-rar", a["7z"] = "application/x-7z-compressed", a))(o || {});
|
|
2
|
+
export {
|
|
3
|
+
o as FileTypes
|
|
4
|
+
};
|
|
@@ -1 +1,51 @@
|
|
|
1
|
-
"use client";
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsxs as a, jsx as r } from "@emotion/react/jsx-runtime";
|
|
3
|
+
import { forwardRef as w, useState as N } from "react";
|
|
4
|
+
import { COMPONENT_NAME as t } from "./constants.js";
|
|
5
|
+
import { MainWrapperStyled as O, SidebarWrapperStyled as x, SidebarStyled as M, SidebarHeaderStyled as H, SidebarToggleButtonStyled as s, BodyStyled as I, MainHeaderStyled as j, ContentStyled as k } from "./ChatContainerStyled.js";
|
|
6
|
+
import { ChatLayoutVariant as v } from "../../../types/chat.js";
|
|
7
|
+
import { useTheme as A } from "../../../hooks/useTheme/useTheme.js";
|
|
8
|
+
import { Icon as c } from "../../core/Icon/Icon.js";
|
|
9
|
+
import { get as l } from "../../../utils/helpers.js";
|
|
10
|
+
const B = w((m, p) => {
|
|
11
|
+
const {
|
|
12
|
+
sidebarContent: h,
|
|
13
|
+
headerContent: S,
|
|
14
|
+
children: y,
|
|
15
|
+
isOpen: b = !0,
|
|
16
|
+
sidebarHeaderContent: f,
|
|
17
|
+
onToggleSidebar: n,
|
|
18
|
+
styles: C = {},
|
|
19
|
+
variant: $ = v.Auto,
|
|
20
|
+
...g
|
|
21
|
+
} = m, {
|
|
22
|
+
theme: e
|
|
23
|
+
} = A(), [d, u] = N(b), i = () => {
|
|
24
|
+
const o = !d;
|
|
25
|
+
u(o), n == null || n(o);
|
|
26
|
+
};
|
|
27
|
+
return /* @__PURE__ */ a(O, { className: "gd-chat-container", "data-testid": `${t}-main-wrapper`, theme: e, ref: p, ...g, styles: C, children: [
|
|
28
|
+
d && /* @__PURE__ */ r(x, { theme: e, $variant: $, "data-testid": `${t}-sidebar-wrapper`, children: /* @__PURE__ */ a(M, { theme: e, "data-testid": `${t}-sidebar`, children: [
|
|
29
|
+
/* @__PURE__ */ a(H, { theme: e, "data-testid": `${t}-sidebar-header`, children: [
|
|
30
|
+
/* @__PURE__ */ r(s, { theme: e, onClick: i, $open: d, children: /* @__PURE__ */ r(c, { ...l(e, "chat.toggleIcon", {
|
|
31
|
+
name: "arrowDown"
|
|
32
|
+
}) }) }),
|
|
33
|
+
f
|
|
34
|
+
] }),
|
|
35
|
+
h
|
|
36
|
+
] }) }),
|
|
37
|
+
/* @__PURE__ */ a(I, { theme: e, "data-testid": `${t}-body`, children: [
|
|
38
|
+
/* @__PURE__ */ a(j, { theme: e, "data-testid": `${t}-main-header`, children: [
|
|
39
|
+
!d && /* @__PURE__ */ r(s, { theme: e, onClick: i, children: /* @__PURE__ */ r(c, { ...l(e, "chat.toggleIcon", {
|
|
40
|
+
name: "arrowDown"
|
|
41
|
+
}) }) }),
|
|
42
|
+
S
|
|
43
|
+
] }),
|
|
44
|
+
/* @__PURE__ */ r(k, { theme: e, "data-testid": `${t}-content`, children: y })
|
|
45
|
+
] })
|
|
46
|
+
] });
|
|
47
|
+
});
|
|
48
|
+
B.displayName = t;
|
|
49
|
+
export {
|
|
50
|
+
B as ChatContainer
|
|
51
|
+
};
|
|
@@ -1,11 +1,6 @@
|
|
|
1
1
|
import { PropsWithChildren, ReactNode } from 'react';
|
|
2
|
-
import { EnumOrPrimitive } from '../../../types';
|
|
2
|
+
import { EnumOrPrimitive, ChatLayoutVariant } from '../../../types';
|
|
3
3
|
import { CommonCssComponentProps, CommonCssComponentStyledProps } from '../..';
|
|
4
|
-
export declare enum ChatLayoutVariant {
|
|
5
|
-
Auto = "auto",
|
|
6
|
-
Desktop = "desktop",
|
|
7
|
-
Drawer = "drawer"
|
|
8
|
-
}
|
|
9
4
|
export interface ChatContainerProps extends PropsWithChildren<CommonCssComponentProps> {
|
|
10
5
|
sidebarContent?: ReactNode;
|
|
11
6
|
sidebarHeaderContent?: ReactNode;
|