gd-design-library 0.2.0 → 0.3.1
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/assets/icons/account_circle.js +1 -0
- package/assets/icons/arrow-down.js +1 -0
- package/assets/icons/arrow-forward.js +1 -0
- package/assets/icons/attachment.js +1 -0
- package/assets/icons/check.js +1 -0
- package/assets/icons/chevron-left.js +1 -0
- package/assets/icons/chevron-right.js +1 -0
- package/assets/icons/content-copy.d.ts +7 -0
- package/assets/icons/content-copy.js +1 -0
- package/assets/icons/cross.js +1 -0
- package/assets/icons/delete_outlined.js +1 -0
- package/assets/icons/dot.js +1 -0
- package/assets/icons/edit.js +1 -0
- package/assets/icons/error_outline.js +1 -0
- package/assets/icons/eye.js +1 -0
- package/assets/icons/favorite.js +1 -0
- package/assets/icons/favorite_outlined.js +1 -0
- package/assets/icons/file-copy.d.ts +7 -0
- package/assets/icons/file-copy.js +1 -0
- package/assets/icons/filter.js +1 -0
- package/assets/icons/folder.js +1 -0
- package/assets/icons/folderOpen.js +1 -0
- package/assets/icons/home.js +1 -0
- package/assets/icons/keyboard-arrow-down.js +1 -0
- package/assets/icons/local_shipping.js +1 -0
- package/assets/icons/minus.js +1 -0
- package/assets/icons/mobile_menu_button.js +1 -0
- package/assets/icons/paymentCard.js +1 -0
- package/assets/icons/plus.js +1 -0
- package/assets/icons/portrait.js +1 -0
- package/assets/icons/processing.js +1 -0
- package/assets/icons/ruler.js +1 -0
- package/assets/icons/search.js +1 -0
- package/assets/icons/shopping_bag.js +1 -0
- package/assets/icons/slash.js +1 -0
- package/assets/icons/star.js +1 -0
- package/assets/icons/starOutlined.js +1 -0
- package/assets/icons/thumb-down.d.ts +7 -0
- package/assets/icons/thumb-down.js +1 -0
- package/assets/icons/thumb-up.d.ts +7 -0
- package/assets/icons/thumb-up.js +1 -0
- package/assets/icons/toast_error.d.ts +2 -2
- package/assets/icons/toast_error.js +1 -0
- package/assets/icons/toast_info.d.ts +3 -2
- package/assets/icons/toast_info.js +1 -0
- package/assets/icons/toast_success.d.ts +2 -2
- package/assets/icons/toast_success.js +1 -0
- package/assets/icons/toast_warning.d.ts +2 -2
- package/assets/icons/toast_warning.js +1 -0
- package/assets/icons/upload.js +1 -0
- package/assets/icons/volume-up.d.ts +7 -0
- package/assets/icons/volume-up.js +1 -0
- package/assets/icons/wifiTethering.js +1 -0
- package/assets/index.d.ts +5 -0
- package/assets/svg/checkbox_bg_checked.svg.js +4 -0
- package/assets/svg/checkbox_border.svg.js +4 -0
- package/assets/svg/checkbox_disabled_bg_checked.svg.js +4 -0
- package/assets/svg/radio_bg.svg.js +4 -0
- package/assets/svg/radio_bg_checked.svg.js +4 -0
- package/components/core/Breadcrumbs/Breadcrumbs.js +1 -0
- package/components/core/Breadcrumbs/Breadcrumbs.types.d.ts +3 -3
- package/components/core/Breadcrumbs/BreadcrumbsStyled.d.ts +6 -0
- package/components/core/Breadcrumbs/BreadcrumbsStyled.js +1 -0
- package/components/core/Breadcrumbs/constants.js +1 -0
- package/components/core/Button/Button.d.ts +1 -4
- package/components/core/Button/Button.js +1 -0
- package/components/core/Button/Button.types.d.ts +12 -35
- package/components/core/Button/ButtonStyled.d.ts +5 -0
- package/components/core/Button/ButtonStyled.js +1 -0
- package/components/core/Button/constants.js +1 -0
- package/components/core/Button/index.d.ts +1 -1
- package/components/core/Dropdown/Dropdown.d.ts +1 -2
- package/components/core/Dropdown/Dropdown.js +1 -0
- package/components/core/Dropdown/Dropdown.types.d.ts +4 -9
- package/components/core/Dropdown/DropdownStyled.d.ts +2 -0
- package/components/core/Dropdown/DropdownStyled.js +1 -0
- package/components/core/Dropdown/constants.js +1 -0
- package/components/core/Dropdown/hooks/useDropdown.js +1 -0
- package/components/core/DropdownItem/DropdownItem.d.ts +1 -3
- package/components/core/DropdownItem/DropdownItem.js +1 -0
- package/components/core/DropdownItem/DropdownItem.types.d.ts +6 -7
- package/components/core/DropdownItem/DropdownItemStyled.d.ts +2 -0
- package/components/core/DropdownItem/DropdownItemStyled.js +1 -0
- package/components/core/DropdownItem/constants.js +1 -0
- package/components/core/Form/Form.d.ts +1 -4
- package/components/core/Form/Form.js +1 -0
- package/components/core/Form/Form.types.d.ts +11 -6
- package/components/core/Form/FormStyled.d.ts +2 -0
- package/components/core/Form/FormStyled.js +1 -0
- package/components/core/Form/constants.js +1 -0
- package/components/core/Form/index.d.ts +1 -1
- package/components/core/Form/utils.js +1 -0
- package/components/core/Icon/Icon.js +1 -0
- package/components/core/Icon/constants.d.ts +44 -8
- package/components/core/Icon/constants.js +1 -0
- package/components/core/Icon/utils.d.ts +3 -0
- package/components/core/Image/Image.d.ts +1 -2
- package/components/core/Image/Image.js +1 -0
- package/components/core/Image/Image.types.d.ts +12 -13
- package/components/core/Image/ImageStyled.d.ts +5 -0
- package/components/core/Image/ImageStyled.js +1 -0
- package/components/core/Image/constants.js +1 -0
- package/components/core/Image/index.d.ts +1 -1
- package/components/core/InlineNotification/InlineNotification.d.ts +1 -3
- package/components/core/InlineNotification/InlineNotification.js +1 -0
- package/components/core/InlineNotification/InlineNotification.types.d.ts +1 -1
- package/components/core/InlineNotification/InlineNotificationStyled.d.ts +1 -1
- package/components/core/InlineNotification/InlineNotificationStyled.js +1 -0
- package/components/core/InlineNotification/constants.js +1 -0
- package/components/core/Input/Input.js +1 -0
- package/components/core/Input/Input.types.d.ts +23 -42
- package/components/core/Input/InputAdornment/InputAdornment.d.ts +2 -4
- package/components/core/Input/InputAdornment/InputAdornment.js +1 -0
- package/components/core/Input/InputAdornment/InputAdornmentStyled.d.ts +2 -0
- package/components/core/Input/InputAdornment/InputAdornmentStyled.js +1 -0
- package/components/core/Input/InputAdornment/constants.js +1 -0
- package/components/core/Input/InputHelper/InputHelper.d.ts +1 -3
- package/components/core/Input/InputHelper/InputHelper.js +1 -0
- package/components/core/Input/InputHelper/InputHelperStyled.d.ts +2 -0
- package/components/core/Input/InputHelper/InputHelperStyled.js +1 -0
- package/components/core/Input/InputHelper/constants.js +1 -0
- package/components/core/Input/InputStyled.d.ts +2 -0
- package/components/core/Input/InputStyled.js +1 -0
- package/components/core/Input/InputWrapper/InputWrapper.d.ts +1 -3
- package/components/core/Input/InputWrapper/InputWrapper.js +1 -0
- package/components/core/Input/InputWrapper/InputWrapperStyled.d.ts +2 -0
- package/components/core/Input/InputWrapper/InputWrapperStyled.js +1 -0
- package/components/core/Input/InputWrapper/constants.js +1 -0
- package/components/core/Input/constants.d.ts +3 -5
- package/components/core/Input/constants.js +1 -0
- package/components/core/Input/useInputHandlers.js +1 -0
- package/components/core/InputFile/InputFile.d.ts +2 -18
- package/components/core/InputFile/InputFile.js +1 -0
- package/components/core/InputFile/InputFile.types.d.ts +15 -5
- package/components/core/InputFile/InputFileStyled.d.ts +3 -0
- package/components/core/InputFile/InputFileStyled.js +1 -0
- package/components/core/InputFile/constants.js +1 -0
- package/components/core/Label/Label.js +1 -0
- package/components/core/Label/LabelStyled.d.ts +1 -1
- package/components/core/Label/LabelStyled.js +1 -0
- package/components/core/Label/constants.js +1 -0
- package/components/core/Link/Link.d.ts +1 -3
- package/components/core/Link/Link.js +1 -0
- package/components/core/Link/Link.types.d.ts +9 -24
- package/components/core/Link/LinkStyled.d.ts +2 -0
- package/components/core/Link/LinkStyled.js +1 -0
- package/components/core/Link/constants.js +1 -0
- package/components/core/List/List.d.ts +1 -1
- package/components/core/List/List.js +1 -0
- package/components/core/List/List.types.d.ts +2 -8
- package/components/core/List/ListStyled.js +1 -0
- package/components/core/List/constants.js +1 -0
- package/components/core/Loader/Loader.d.ts +1 -3
- package/components/core/Loader/Loader.js +1 -0
- package/components/core/Loader/Loader.types.d.ts +10 -6
- package/components/core/Loader/LoaderStyled.d.ts +2 -0
- package/components/core/Loader/LoaderStyled.js +1 -0
- package/components/core/Loader/constants.js +1 -0
- package/components/core/Loader/utils.d.ts +11 -0
- package/components/core/Loader/utils.js +1 -0
- package/components/core/Menu/Menu.d.ts +2 -13
- package/components/core/Menu/Menu.js +1 -0
- package/components/core/Menu/Menu.types.d.ts +18 -0
- package/components/core/Menu/MenuStyled.d.ts +3 -0
- package/components/core/Menu/MenuStyled.js +1 -0
- package/components/core/Menu/constants.d.ts +0 -1
- package/components/core/Menu/constants.js +1 -0
- package/components/core/Menu/index.d.ts +2 -1
- package/components/core/Modal/Modal.d.ts +1 -3
- package/components/core/Modal/Modal.js +1 -0
- package/components/core/Modal/Modal.types.d.ts +8 -4
- package/components/core/Modal/ModalStyled.d.ts +8 -0
- package/components/core/Modal/ModalStyled.js +1 -0
- package/components/core/Modal/constants.js +1 -0
- package/components/core/Portal/Portal.d.ts +1 -3
- package/components/core/Portal/Portal.js +1 -0
- package/components/core/Portal/Portal.types.d.ts +4 -3
- package/components/core/Scroll/Scroll.d.ts +2 -7
- package/components/core/Scroll/Scroll.js +1 -0
- package/components/core/Scroll/Scroll.types.d.ts +19 -0
- package/components/core/Scroll/ScrollBar.d.ts +2 -6
- package/components/core/Scroll/ScrollBar.js +1 -0
- package/components/core/Scroll/ScrollStyled.d.ts +6 -0
- package/components/core/Scroll/ScrollStyled.js +1 -0
- package/components/core/Scroll/constants.d.ts +1 -0
- package/components/core/Scroll/constants.js +1 -0
- package/components/core/Scroll/index.d.ts +2 -1
- package/components/core/Scroll/utils.d.ts +2 -2
- package/components/core/Scroll/utils.js +1 -0
- package/components/core/Select/Select.d.ts +1 -4
- package/components/core/Select/Select.js +1 -0
- package/components/core/Select/Select.types.d.ts +22 -8
- package/components/core/Select/SelectStyled.d.ts +8 -0
- package/components/core/Select/SelectStyled.js +1 -0
- package/components/core/Select/constants.js +1 -0
- package/components/core/Select/hooks/useSelectContext.d.ts +1 -1
- package/components/core/Select/hooks/useSelectContext.js +1 -0
- package/components/core/Separator/Separator.d.ts +2 -0
- package/components/core/Separator/Separator.js +1 -0
- package/components/core/Separator/Separator.types.d.ts +31 -0
- package/components/core/Separator/SeparatorStyled.d.ts +4 -0
- package/components/core/Separator/SeparatorStyled.js +1 -0
- package/components/core/Separator/constants.d.ts +1 -0
- package/components/core/Separator/constants.js +1 -0
- package/components/core/Separator/index.d.ts +2 -0
- package/components/core/Skeleton/Skeleton.d.ts +1 -3
- package/components/core/Skeleton/Skeleton.js +1 -0
- package/components/core/Skeleton/Skeleton.types.d.ts +7 -9
- package/components/core/Skeleton/SkeletonStyled.d.ts +2 -0
- package/components/core/Skeleton/SkeletonStyled.js +1 -0
- package/components/core/Skeleton/constants.js +1 -0
- package/components/core/Slider/Slider.d.ts +1 -2
- package/components/core/Slider/Slider.js +1 -0
- package/components/core/Slider/Slider.types.d.ts +9 -5
- package/components/core/Slider/SliderStyled.d.ts +2 -0
- package/components/core/Slider/SliderStyled.js +1 -0
- package/components/core/Slider/constants.js +1 -0
- package/components/core/Slider/index.d.ts +1 -1
- package/components/core/Snackbar/Snackbar.d.ts +2 -2
- package/components/core/Snackbar/Snackbar.js +1 -0
- package/components/core/Snackbar/Snackbar.types.d.ts +20 -26
- package/components/core/Snackbar/SnackbarManager.d.ts +2 -2
- package/components/core/Snackbar/SnackbarManager.js +1 -0
- package/components/core/Snackbar/SnackbarStyled.d.ts +12 -0
- package/components/core/Snackbar/SnackbarStyled.js +5 -0
- package/components/core/Snackbar/constants.d.ts +1 -1
- package/components/core/Snackbar/constants.js +1 -0
- package/components/core/Switch/Switch.d.ts +1 -1
- package/components/core/Switch/Switch.js +1 -0
- package/components/core/Switch/Switch.types.d.ts +14 -11
- package/components/core/Switch/SwitchStyled.d.ts +6 -0
- package/components/core/Switch/SwitchStyled.js +1 -0
- package/components/core/Switch/constants.js +1 -0
- package/components/core/Textarea/Textarea.js +1 -0
- package/components/core/Textarea/Textarea.types.d.ts +26 -9
- package/components/core/Textarea/Textarea.types.js +1 -0
- package/components/core/Textarea/TextareaStyled.d.ts +2 -0
- package/components/core/Textarea/TextareaStyled.js +1 -0
- package/components/core/Textarea/constants.js +1 -0
- package/components/core/Textarea/hooks/useDynamicHeightAdjustment.js +1 -0
- package/components/core/Textarea/hooks/useResizeObserver.js +1 -0
- package/components/core/Textarea/index.d.ts +0 -1
- package/components/core/Toggle/Toggle.js +1 -0
- package/components/core/Toggle/Toggle.types.d.ts +5 -6
- package/components/core/Toggle/ToggleStyled.d.ts +2 -0
- package/components/core/Toggle/ToggleStyled.js +1 -0
- package/components/core/Toggle/constants.js +1 -0
- package/components/core/Toggle/index.d.ts +1 -1
- package/components/core/Tooltip/Tooltip.js +1 -0
- package/components/core/Tooltip/Tooltip.types.d.ts +8 -6
- package/components/core/Tooltip/Tooltip.types.js +1 -0
- package/components/core/Tooltip/TooltipStyled.d.ts +3 -0
- package/components/core/Tooltip/TooltipStyled.js +1 -0
- package/components/core/Tooltip/constants.js +1 -0
- package/components/core/Tooltip/index.d.ts +1 -0
- package/components/core/Tooltip/utils.js +1 -0
- package/components/core/Typography/Typography.d.ts +1 -3
- package/components/core/Typography/Typography.js +1 -0
- package/components/core/Typography/Typography.types.d.ts +10 -51
- package/components/core/Typography/TypographyStyled.d.ts +2 -0
- package/components/core/Typography/TypographyStyled.js +1 -0
- package/components/core/Typography/constants.js +1 -0
- package/components/core/Wrapper/Wrapper.d.ts +1 -3
- package/components/core/Wrapper/Wrapper.js +1 -0
- package/components/core/Wrapper/Wrapper.types.d.ts +8 -7
- package/components/core/Wrapper/WrapperStyled.d.ts +2 -0
- package/components/core/Wrapper/WrapperStyled.js +1 -0
- package/components/core/Wrapper/constants.js +1 -0
- package/components/core/index.d.ts +5 -4
- package/components/core/types/common.types.d.ts +1 -23
- package/components/core/types/index.types.d.ts +1 -1
- package/components/core/types/roles.types.d.ts +2 -1
- package/components/core/types/roles.types.js +1 -0
- package/components/domainSpecific/Accordion/Accordion.js +1 -0
- package/components/domainSpecific/Accordion/Accordion.types.d.ts +6 -5
- package/components/domainSpecific/Accordion/AccordionContent/AccordionContent.d.ts +1 -1
- package/components/domainSpecific/Accordion/AccordionContent/AccordionContent.js +1 -0
- package/components/domainSpecific/Accordion/AccordionHeader/AccordionHeader.d.ts +1 -1
- package/components/domainSpecific/Accordion/AccordionHeader/AccordionHeader.js +1 -0
- package/components/domainSpecific/Accordion/AccordionItem/AccordionItem.d.ts +1 -1
- package/components/domainSpecific/Accordion/AccordionItem/AccordionItem.js +1 -0
- package/components/domainSpecific/Accordion/AccordionStyled.d.ts +5 -0
- package/components/domainSpecific/Accordion/AccordionStyled.js +1 -0
- package/components/domainSpecific/Accordion/constants.js +1 -0
- package/components/domainSpecific/Accordion/hooks/useAccordion.js +1 -0
- package/components/domainSpecific/Avatar/Avatar.d.ts +4 -0
- package/components/domainSpecific/Avatar/Avatar.js +1 -0
- package/components/domainSpecific/Avatar/Avatar.types.d.ts +28 -0
- package/components/domainSpecific/Avatar/AvatarStyled.d.ts +6 -0
- package/components/domainSpecific/Avatar/AvatarStyled.js +1 -0
- package/components/domainSpecific/Avatar/constants.d.ts +3 -0
- package/components/domainSpecific/Avatar/constants.js +1 -0
- package/components/domainSpecific/Avatar/index.d.ts +2 -0
- package/components/domainSpecific/Card/Card.d.ts +5 -13
- package/components/domainSpecific/Card/Card.js +1 -0
- package/components/domainSpecific/Card/Card.types.d.ts +12 -18
- package/components/domainSpecific/Card/CardButton/CardButton.js +1 -0
- package/components/domainSpecific/Card/CardButton/CardButtonStyled.d.ts +2 -0
- package/components/domainSpecific/Card/CardButton/CardButtonStyled.js +1 -0
- package/components/domainSpecific/Card/CardButton/constants.js +1 -0
- package/components/domainSpecific/Card/CardCounter/CardCounter.js +1 -0
- package/components/domainSpecific/Card/CardCounter/CardCounterStyled.d.ts +2 -0
- package/components/domainSpecific/Card/CardCounter/CardCounterStyled.js +1 -0
- package/components/domainSpecific/Card/CardCounter/constants.js +1 -0
- package/components/domainSpecific/Card/CardDescription/CardDescription.d.ts +1 -3
- package/components/domainSpecific/Card/CardDescription/CardDescription.js +1 -0
- package/components/domainSpecific/Card/CardDescription/CardDescriptionStyled.d.ts +2 -0
- package/components/domainSpecific/Card/CardDescription/CardDescriptionStyled.js +1 -0
- package/components/domainSpecific/Card/CardDescription/constants.d.ts +1 -1
- package/components/domainSpecific/Card/CardDescription/constants.js +1 -0
- package/components/domainSpecific/Card/CardImage/CardImage.d.ts +1 -3
- package/components/domainSpecific/Card/CardImage/CardImage.js +1 -0
- package/components/domainSpecific/Card/CardImage/CardImageStyled.d.ts +2 -0
- package/components/domainSpecific/Card/CardImage/CardImageStyled.js +1 -0
- package/components/domainSpecific/Card/CardImage/constants.js +1 -0
- package/components/domainSpecific/Card/CardPrice/CardPrice.js +1 -0
- package/components/domainSpecific/Card/CardPrice/CardPriceStyled.d.ts +2 -0
- package/components/domainSpecific/Card/CardPrice/CardPriceStyled.js +1 -0
- package/components/domainSpecific/Card/CardPrice/constants.js +1 -0
- package/components/domainSpecific/Card/CardRating/CardRating.js +1 -0
- package/components/domainSpecific/Card/CardRating/CardRatingStyled.d.ts +2 -0
- package/components/domainSpecific/Card/CardRating/CardRatingStyled.js +1 -0
- package/components/domainSpecific/Card/CardRating/constants.js +1 -0
- package/components/domainSpecific/Card/CardTitle/CardTitle.d.ts +1 -1
- package/components/domainSpecific/Card/CardTitle/CardTitle.js +1 -0
- package/components/domainSpecific/Card/CardTitle/CardTitleStyled.d.ts +2 -0
- package/components/domainSpecific/Card/CardTitle/CardTitleStyled.js +1 -0
- package/components/domainSpecific/Card/CardTitle/constants.d.ts +1 -1
- package/components/domainSpecific/Card/CardTitle/constants.js +1 -0
- package/components/domainSpecific/Card/CartStyled.d.ts +2 -0
- package/components/domainSpecific/Card/CartStyled.js +1 -0
- package/components/domainSpecific/Card/constants.js +1 -0
- package/components/domainSpecific/Carousel/Carousel.d.ts +1 -1
- package/components/domainSpecific/Carousel/Carousel.js +1 -0
- package/components/domainSpecific/Carousel/Carousel.types.d.ts +11 -8
- package/components/domainSpecific/Carousel/Carousel.types.js +1 -0
- package/components/domainSpecific/Carousel/CarouselStyled.d.ts +15 -0
- package/components/domainSpecific/Carousel/CarouselStyled.js +1 -0
- package/components/domainSpecific/Carousel/constants.js +1 -0
- package/components/domainSpecific/Carousel/index.d.ts +0 -2
- package/components/domainSpecific/ChatBubble/ChatBubble.d.ts +2 -0
- package/components/domainSpecific/ChatBubble/ChatBubble.js +1 -0
- package/components/domainSpecific/ChatBubble/ChatBubble.types.d.ts +16 -0
- package/components/domainSpecific/ChatBubble/ChatBubbleStyled.d.ts +4 -0
- package/components/domainSpecific/ChatBubble/ChatBubbleStyled.js +1 -0
- package/components/domainSpecific/ChatBubble/constants.d.ts +1 -0
- package/components/domainSpecific/ChatBubble/constants.js +1 -0
- package/components/domainSpecific/ChatBubble/index.d.ts +2 -0
- package/components/domainSpecific/ContentCarousel/ContentCarousel.js +1 -0
- package/components/domainSpecific/ContentCarousel/ContentCarousel.types.d.ts +3 -3
- package/components/domainSpecific/ContentCarousel/ContentCarouselStyled.d.ts +5 -0
- package/components/domainSpecific/ContentCarousel/ContentCarouselStyled.js +1 -0
- package/components/domainSpecific/ContentCarousel/constants.js +1 -0
- package/components/domainSpecific/ContentCarousel/index.d.ts +1 -0
- package/components/domainSpecific/Counter/Counter.js +1 -0
- package/components/domainSpecific/Counter/Counter.types.d.ts +9 -3
- package/components/domainSpecific/Counter/CounterStyled.d.ts +3 -0
- package/components/domainSpecific/Counter/CounterStyled.js +1 -0
- package/components/domainSpecific/Counter/constants.js +1 -0
- package/components/domainSpecific/DragAndDropFiles/DragAndDropFiles.d.ts +2 -0
- package/components/domainSpecific/DragAndDropFiles/DragAndDropFiles.js +1 -0
- package/components/domainSpecific/DragAndDropFiles/DragAndDropFiles.types.d.ts +5 -4
- package/components/domainSpecific/DragAndDropFiles/DragAndDropFilesStyled.d.ts +2 -0
- package/components/domainSpecific/DragAndDropFiles/DragAndDropFilesStyled.js +1 -0
- package/components/domainSpecific/DragAndDropFiles/constants.js +1 -0
- package/components/domainSpecific/DragAndDropFiles/hooks/useDragAndDrop/useDragAndDrop.js +1 -0
- package/components/domainSpecific/Header/Header.js +1 -0
- package/components/domainSpecific/Header/Header.types.d.ts +17 -7
- package/components/domainSpecific/Header/HeaderStyled.d.ts +14 -103
- package/components/domainSpecific/Header/HeaderStyled.js +1 -0
- package/components/domainSpecific/Header/constants.js +1 -0
- package/components/domainSpecific/Header/index.d.ts +0 -1
- package/components/domainSpecific/Price/Price.js +1 -0
- package/components/domainSpecific/Price/Price.types.d.ts +6 -7
- package/components/domainSpecific/Price/PriceStyled.d.ts +4 -0
- package/components/domainSpecific/Price/PriceStyled.js +1 -0
- package/components/domainSpecific/Price/constants.js +1 -0
- package/components/domainSpecific/ProgressBar/ProgressBar.js +1 -0
- package/components/domainSpecific/ProgressBar/ProgressBar.types.d.ts +20 -3
- package/components/domainSpecific/ProgressBar/ProgressBarStyled.d.ts +6 -0
- package/components/domainSpecific/ProgressBar/ProgressBarStyled.js +1 -0
- package/components/domainSpecific/ProgressBar/constants.js +1 -0
- package/components/domainSpecific/RadioGroup/RadioGroup.js +1 -0
- package/components/domainSpecific/RadioGroup/RadioGroup.types.d.ts +14 -9
- package/components/domainSpecific/RadioGroup/RadioGroup.types.js +1 -0
- package/components/domainSpecific/RadioGroup/RadioGroupItem/RadioGroupItem.js +1 -0
- package/components/domainSpecific/RadioGroup/RadioGroupStyled.d.ts +6 -0
- package/components/domainSpecific/RadioGroup/RadioGroupStyled.js +1 -0
- package/components/domainSpecific/RadioGroup/constants.js +1 -0
- package/components/domainSpecific/Rating/Rating.js +1 -0
- package/components/domainSpecific/Rating/Rating.types.d.ts +6 -5
- package/components/domainSpecific/Rating/RatingStyled.d.ts +5 -0
- package/components/domainSpecific/Rating/RatingStyled.js +1 -0
- package/components/domainSpecific/Rating/constants.js +1 -0
- package/components/domainSpecific/Search/Search.d.ts +1 -3
- package/components/domainSpecific/Search/Search.js +1 -0
- package/components/domainSpecific/Search/Search.types.d.ts +17 -8
- package/components/domainSpecific/Search/SearchStyled.d.ts +5 -0
- package/components/domainSpecific/Search/SearchStyled.js +1 -0
- package/components/domainSpecific/Search/constants.d.ts +1 -1
- package/components/domainSpecific/Search/constants.js +1 -0
- package/components/domainSpecific/SearchModal/SearchInput/SearchInput.js +1 -0
- package/components/domainSpecific/SearchModal/SearchInput/SearchInputStyled.d.ts +4 -0
- package/components/domainSpecific/SearchModal/SearchInput/SearchInputStyled.js +1 -0
- package/components/domainSpecific/SearchModal/SearchInput/constants.js +1 -0
- package/components/domainSpecific/SearchModal/SearchItems/SearchItems.js +1 -0
- package/components/domainSpecific/SearchModal/SearchItems/SearchItemsStyled.d.ts +10 -0
- package/components/domainSpecific/SearchModal/SearchItems/SearchItemsStyled.js +1 -0
- package/components/domainSpecific/SearchModal/SearchItems/constants.js +1 -0
- package/components/domainSpecific/SearchModal/SearchItems/utils.js +1 -0
- package/components/domainSpecific/SearchModal/SearchLoader/SearchLoader.js +1 -0
- package/components/domainSpecific/SearchModal/SearchLoader/SearchLoaderStyled.d.ts +3 -0
- package/components/domainSpecific/SearchModal/SearchLoader/SearchLoaderStyled.js +1 -0
- package/components/domainSpecific/SearchModal/SearchLoader/constants.js +1 -0
- package/components/domainSpecific/SearchModal/SearchModal.js +1 -0
- package/components/domainSpecific/SearchModal/SearchModal.types.d.ts +14 -11
- package/components/domainSpecific/SearchModal/SearchModalStyled.d.ts +3 -0
- package/components/domainSpecific/SearchModal/SearchModalStyled.js +1 -0
- package/components/domainSpecific/SearchModal/constants.js +1 -0
- package/components/domainSpecific/Stepper/Stepper.js +1 -0
- package/components/domainSpecific/Stepper/Stepper.types.d.ts +6 -14
- package/components/domainSpecific/Stepper/StepperStyled.d.ts +6 -0
- package/components/domainSpecific/Stepper/StepperStyled.js +1 -0
- package/components/domainSpecific/Stepper/constants.js +1 -0
- package/components/domainSpecific/Stepper/utils.js +1 -0
- package/components/domainSpecific/Tabs/Tabs.js +1 -0
- package/components/domainSpecific/Tabs/Tabs.types.d.ts +11 -5
- package/components/domainSpecific/Tabs/TabsStyled.d.ts +8 -0
- package/components/domainSpecific/Tabs/TabsStyled.js +1 -0
- package/components/domainSpecific/Tabs/constants.js +1 -0
- package/components/domainSpecific/index.d.ts +2 -1
- package/components/index.d.ts +2 -0
- package/components/index.types.d.ts +51 -66
- package/components/index.types.js +1 -0
- package/components/layout/ChatContainer/ChatContainer.d.ts +1 -1
- package/components/layout/ChatContainer/ChatContainer.js +1 -0
- package/components/layout/ChatContainer/ChatContainer.types.d.ts +24 -0
- package/components/layout/ChatContainer/ChatContainer.types.js +1 -0
- package/components/layout/ChatContainer/ChatContainerStyled.d.ts +9 -0
- package/components/layout/ChatContainer/ChatContainerStyled.js +1 -0
- package/components/layout/ChatContainer/constants.js +1 -0
- package/components/layout/ChatContainer/index.d.ts +1 -1
- package/components/layout/Column/Column.d.ts +1 -3
- package/components/layout/Column/Column.js +1 -0
- package/components/layout/Column/Column.types.d.ts +4 -3
- package/components/layout/Column/ColumnStyled.d.ts +2 -0
- package/components/layout/Column/ColumnStyled.js +1 -0
- package/components/layout/Column/constants.d.ts +1 -1
- package/components/layout/Column/constants.js +1 -0
- package/components/layout/Column/index.d.ts +1 -0
- package/components/layout/FlexContainer/FlexContainer.d.ts +0 -1
- package/components/layout/FlexContainer/FlexContainer.js +1 -0
- package/components/layout/FlexContainer/FlexContainer.types.d.ts +4 -4
- package/components/layout/FlexContainer/FlexContainerStyled.d.ts +1 -1
- package/components/layout/FlexContainer/FlexContainerStyled.js +1 -0
- package/components/layout/FlexContainer/constants.js +1 -0
- package/components/layout/FlexContainer/utils.js +1 -0
- package/components/layout/Row/Row.d.ts +1 -3
- package/components/layout/Row/Row.js +1 -0
- package/components/layout/Row/Row.types.d.ts +4 -3
- package/components/layout/Row/RowStyled.d.ts +2 -0
- package/components/layout/Row/RowStyled.js +1 -0
- package/components/layout/Row/constants.js +1 -0
- package/components/layout/Row/index.d.ts +1 -0
- package/components/layout/index.d.ts +0 -1
- package/components/templates/SkeletonSearch/SkeletonSearch.d.ts +2 -0
- package/components/templates/SkeletonSearch/SkeletonSearch.js +1 -0
- package/components/templates/SkeletonSearch/SkeletonSearch.types.d.ts +6 -0
- package/components/templates/SkeletonSearch/SkeletonSearchStyled.d.ts +11 -0
- package/components/templates/SkeletonSearch/SkeletonSearchStyled.js +1 -0
- package/components/templates/SkeletonSearch/constants.js +1 -0
- package/components/widget/DragAndDrop/DragAndDrop.d.ts +4 -0
- package/components/widget/DragAndDrop/DragAndDrop.js +1 -0
- package/components/widget/DragAndDrop/DragAndDrop.types.d.ts +35 -0
- package/components/widget/DragAndDrop/DragAndDropStyled.d.ts +6 -0
- package/components/widget/DragAndDrop/DragAndDropStyled.js +1 -0
- package/components/widget/DragAndDrop/constants.d.ts +1 -0
- package/components/widget/DragAndDrop/constants.js +1 -0
- package/components/widget/DragAndDrop/index.d.ts +2 -0
- package/components/widget/DragAndDrop/utils/index.d.ts +1 -0
- package/components/widget/DragAndDrop/utils/validators.d.ts +5 -0
- package/components/widget/DragAndDrop/utils/validators.js +1 -0
- package/components/widget/index.d.ts +1 -0
- package/constants/keyboard.js +1 -0
- package/constants/positioning.js +1 -0
- package/constants/timers.js +1 -0
- package/hooks/useAutoFocus/useAutoFocus.js +1 -0
- package/hooks/useCarousel/useCarousel.js +1 -0
- package/hooks/useClickOutside/useClickOutside.js +1 -0
- package/hooks/useKeyControls/useKeyControls.d.ts +1 -1
- package/hooks/useKeyControls/useKeyControls.js +1 -0
- package/hooks/useMediaQuery/useMediaQuery.js +1 -0
- package/hooks/useTheme/useTheme.js +1 -0
- package/index.js +1 -0
- package/package.json +9 -4
- package/tokens/accordion.d.ts +1 -1
- package/tokens/accordion.js +1 -0
- package/tokens/animations.d.ts +8 -0
- package/tokens/animations.js +1 -0
- package/tokens/avatar.d.ts +113 -0
- package/tokens/avatar.js +1 -0
- package/tokens/borders.js +1 -0
- package/tokens/breadcrumbs.js +1 -0
- package/tokens/button.d.ts +20 -7
- package/tokens/button.js +1 -0
- package/tokens/card.d.ts +1 -1
- package/tokens/card.js +1 -0
- package/tokens/carousel.d.ts +37 -26
- package/tokens/carousel.js +1 -0
- package/tokens/chat.d.ts +17 -5
- package/tokens/chat.js +1 -0
- package/tokens/chatbubble.d.ts +50 -0
- package/tokens/chatbubble.js +1 -0
- package/tokens/colors.d.ts +4 -1
- package/tokens/colors.js +1 -0
- package/tokens/column.js +1 -0
- package/tokens/constants.js +1 -0
- package/tokens/counter.d.ts +1 -1
- package/tokens/counter.js +1 -0
- package/tokens/cursors.js +1 -0
- package/tokens/defaultTheme.d.ts +679 -178
- package/tokens/defaultTheme.js +1 -0
- package/tokens/display.js +1 -0
- package/tokens/draganddrop.d.ts +61 -0
- package/tokens/draganddrop.js +1 -0
- package/tokens/draganddropfiles.js +1 -0
- package/tokens/flexContainer.d.ts +1 -1
- package/tokens/flexContainer.js +1 -0
- package/tokens/font.js +1 -0
- package/tokens/form.js +1 -0
- package/tokens/header.d.ts +0 -1
- package/tokens/header.js +1 -0
- package/tokens/icon.js +1 -0
- package/tokens/image.d.ts +1 -2
- package/tokens/image.js +1 -0
- package/tokens/index.d.ts +652 -174
- package/tokens/index.js +1 -0
- package/tokens/inlineNotification.d.ts +7 -0
- package/tokens/inlineNotification.js +1 -0
- package/tokens/input.d.ts +11 -12
- package/tokens/input.js +1 -0
- package/tokens/inputfile.js +1 -0
- package/tokens/label.js +1 -0
- package/tokens/link.d.ts +1 -1
- package/tokens/link.js +1 -0
- package/tokens/list.js +1 -0
- package/tokens/loader.d.ts +128 -37
- package/tokens/loader.js +1 -0
- package/tokens/menu.js +1 -0
- package/tokens/modal.d.ts +7 -3
- package/tokens/modal.js +1 -0
- package/tokens/price.js +1 -0
- package/tokens/progressbar.js +1 -0
- package/tokens/radiogroup.d.ts +1 -2
- package/tokens/radiogroup.js +9 -0
- package/tokens/radius.js +1 -0
- package/tokens/rating.js +1 -0
- package/tokens/reset.js +1 -0
- package/tokens/row.js +1 -0
- package/tokens/scroll.js +1 -0
- package/tokens/search.js +1 -0
- package/tokens/searchModal.d.ts +31 -15
- package/tokens/searchModal.js +1 -0
- package/tokens/select.d.ts +33 -15
- package/tokens/select.js +1 -0
- package/tokens/separator.d.ts +56 -0
- package/tokens/separator.js +1 -0
- package/tokens/shadow.js +1 -0
- package/tokens/skeleton.js +1 -0
- package/tokens/slider.d.ts +40 -20
- package/tokens/slider.js +1 -0
- package/tokens/snackbar.d.ts +12 -18
- package/tokens/snackbar.js +1 -0
- package/tokens/spacing.js +1 -0
- package/tokens/stepper.d.ts +1 -1
- package/tokens/stepper.js +1 -0
- package/tokens/switch.d.ts +12 -0
- package/tokens/switch.js +1 -0
- package/tokens/tabs.js +1 -0
- package/tokens/textarea.js +1 -0
- package/tokens/toggle.d.ts +1 -0
- package/tokens/toggle.js +1 -0
- package/tokens/tooltip.js +1 -0
- package/tokens/types/index.types.d.ts +2 -1
- package/tokens/types/index.types.js +1 -0
- package/tokens/typography.js +1 -0
- package/tokens/utils.d.ts +13 -8
- package/tokens/utils.js +1 -0
- package/tokens/values.d.ts +13 -0
- package/tokens/values.js +1 -0
- package/tokens/wrapper.js +1 -0
- package/types/accesability.js +1 -0
- package/types/button.d.ts +28 -0
- package/types/button.js +1 -0
- package/types/card.d.ts +8 -0
- package/types/card.js +1 -0
- package/types/chat.d.ts +5 -0
- package/types/chat.js +1 -0
- package/types/common.d.ts +12 -0
- package/types/common.js +1 -0
- package/types/cursors.js +1 -0
- package/types/index.d.ts +16 -0
- package/types/input.d.ts +30 -0
- package/types/input.js +1 -0
- package/types/label.d.ts +4 -0
- package/types/label.js +1 -0
- package/{components/layout/index.types.d.ts → types/layout.d.ts} +2 -0
- package/types/layout.js +1 -0
- package/types/link.d.ts +18 -0
- package/types/link.js +1 -0
- package/types/list.d.ts +6 -0
- package/types/list.js +1 -0
- package/types/misc.d.ts +11 -0
- package/types/separator.d.ts +10 -0
- package/types/separator.js +1 -0
- package/types/skeleton.d.ts +5 -0
- package/types/skeleton.js +1 -0
- package/types/snackbar.d.ts +14 -0
- package/types/snackbar.js +1 -0
- package/types/stepper.d.ts +9 -0
- package/types/stepper.js +1 -0
- package/types/styles.d.ts +2 -2
- package/types/typography.d.ts +45 -0
- package/types/typography.js +1 -0
- package/types/wrapper.d.ts +5 -0
- package/types/wrapper.js +1 -0
- package/utils/animationFrame.js +1 -0
- package/utils/common.js +1 -0
- package/utils/date.js +1 -0
- package/utils/focus.js +1 -0
- package/utils/helpers.js +1 -0
- package/utils/index.d.ts +1 -0
- package/{components/layout/utils.d.ts → utils/layout.d.ts} +3 -3
- package/utils/layout.js +1 -0
- package/utils/math.js +1 -0
- package/utils/setInRange.js +1 -0
- package/utils/uniqueKeys.js +1 -0
- package/components/core/Breadcrumbs/StyledBreadcrumbs.d.ts +0 -6
- package/components/core/Button/StyledButton.d.ts +0 -5
- package/components/core/Dropdown/StyledDropdown.d.ts +0 -2
- package/components/core/DropdownItem/StyledDropdownItem.d.ts +0 -2
- package/components/core/Form/StyledForm.d.ts +0 -2
- package/components/core/Image/StyledImage.d.ts +0 -5
- package/components/core/Input/InputAdornment/StyledInputAdornment.d.ts +0 -2
- package/components/core/Input/InputHelper/StyledInputHelper.d.ts +0 -2
- package/components/core/Input/InputWrapper/StyledInputWrapper.d.ts +0 -2
- package/components/core/Input/StyledInput.d.ts +0 -2
- package/components/core/InputFile/StyledInputFile.d.ts +0 -4
- package/components/core/Link/StyledLink.d.ts +0 -2
- package/components/core/Loader/StyledLoader.d.ts +0 -2
- package/components/core/Menu/StyledMenu.d.ts +0 -13
- package/components/core/Modal/StyledModal.d.ts +0 -9
- package/components/core/Scroll/StyledScrollBar.d.ts +0 -11
- package/components/core/Scroll/types.d.ts +0 -7
- package/components/core/Select/StyledSelect.d.ts +0 -26
- package/components/core/Skeleton/StyledSkeleton.d.ts +0 -2
- package/components/core/Slider/StyledSlider.d.ts +0 -2
- package/components/core/Snackbar/StyledSnackbar.d.ts +0 -52
- package/components/core/Switch/StyledSwitch.d.ts +0 -10
- package/components/core/Textarea/StyledTextarea.d.ts +0 -3
- package/components/core/Textarea/TextareaWidget.d.ts +0 -3
- package/components/core/Toggle/StyledToggle.d.ts +0 -2
- package/components/core/Tooltip/StyledTooltip.d.ts +0 -3
- package/components/core/Typography/StyledTypography.d.ts +0 -2
- package/components/core/Wrapper/StyledWrapper.d.ts +0 -2
- package/components/domainSpecific/Accordion/StyledAccordion.d.ts +0 -5
- package/components/domainSpecific/Card/CardButton/StyledCardButton.d.ts +0 -2
- package/components/domainSpecific/Card/CardCounter/StyledCardCounter.d.ts +0 -2
- package/components/domainSpecific/Card/CardDescription/StyledCardDescription.d.ts +0 -12
- package/components/domainSpecific/Card/CardImage/StyledCardImage.d.ts +0 -2
- package/components/domainSpecific/Card/CardPrice/StyledCardPrice.d.ts +0 -2
- package/components/domainSpecific/Card/CardRating/StyledCardRating.d.ts +0 -2
- package/components/domainSpecific/Card/CardTitle/StyledCardTitle.d.ts +0 -12
- package/components/domainSpecific/Card/StyledCard.d.ts +0 -2
- package/components/domainSpecific/Carousel/StyledCarousel.d.ts +0 -42
- package/components/domainSpecific/Carousel/utils.d.ts +0 -2
- package/components/domainSpecific/ContentCarousel/StyledContentCarousel.d.ts +0 -4
- package/components/domainSpecific/Counter/StyledCounter.d.ts +0 -13
- package/components/domainSpecific/DragAndDropFiles/StyledDragAndDropFiles.d.ts +0 -1
- package/components/domainSpecific/Price/StyledPrice.d.ts +0 -9
- package/components/domainSpecific/ProgressBar/StyledProgressBar.d.ts +0 -18
- package/components/domainSpecific/RadioGroup/StyledRadioGroup.d.ts +0 -8
- package/components/domainSpecific/Rating/StyledRating.d.ts +0 -5
- package/components/domainSpecific/Search/StyledSearch.d.ts +0 -44
- package/components/domainSpecific/SearchModal/SearchInput/StyledSearchInput.d.ts +0 -27
- package/components/domainSpecific/SearchModal/SearchItems/StyledSearchItems.d.ts +0 -42
- package/components/domainSpecific/SearchModal/SearchLoader/StyledSearchLoader.d.ts +0 -2
- package/components/domainSpecific/SearchModal/SearchNoHistory/SearchInput.d.ts +0 -2
- package/components/domainSpecific/SearchModal/SearchNoHistory/StyledSearchInput.d.ts +0 -27
- package/components/domainSpecific/SearchModal/SearchNoHistory/constants.d.ts +0 -2
- package/components/domainSpecific/SearchModal/SearchNoHistory/index.d.ts +0 -1
- package/components/domainSpecific/SearchModal/SearchNoResults/SearchInput.d.ts +0 -2
- package/components/domainSpecific/SearchModal/SearchNoResults/StyledSearchInput.d.ts +0 -27
- package/components/domainSpecific/SearchModal/SearchNoResults/constants.d.ts +0 -2
- package/components/domainSpecific/SearchModal/SearchNoResults/index.d.ts +0 -1
- package/components/domainSpecific/SearchModal/StyledSearchModal.d.ts +0 -14
- package/components/domainSpecific/Stepper/StyledStepper.d.ts +0 -6
- package/components/domainSpecific/Tabs/StyledTabs.d.ts +0 -21
- package/components/domainSpecific/Templates/Cards/Skeleton/SkeletonSearch/SkeletonSearch.d.ts +0 -4
- package/components/domainSpecific/Templates/Cards/Skeleton/SkeletonSearch/SkeletonSearch.types.d.ts +0 -5
- package/components/domainSpecific/Templates/Cards/Skeleton/SkeletonSearch/SkeletonSearchStyled.d.ts +0 -76
- package/components/domainSpecific/Templates/Cards/index.d.ts +0 -1
- package/components/domainSpecific/Templates/index.d.ts +0 -1
- package/components/layout/ChatContainer/StyledChatContainer.d.ts +0 -34
- package/components/layout/ChatContainer/types.d.ts +0 -18
- package/components/layout/Column/StyledColumn.d.ts +0 -2
- package/components/layout/Row/StyledRow.d.ts +0 -2
- package/index.cjs.js +0 -238
- package/index.es.js +0 -12076
- package/tokens/internal/index.d.ts +0 -1
- package/tokens/internal/switch.d.ts +0 -13
- /package/components/{domainSpecific/Templates/Cards/Skeleton → templates}/SkeletonSearch/constants.d.ts +0 -0
- /package/components/{domainSpecific/Templates/Cards/Skeleton → templates}/SkeletonSearch/index.d.ts +0 -0
- /package/components/{domainSpecific/Templates/Cards/Skeleton → templates}/index.d.ts +0 -0
- /package/{components/core/types/cursors.types.d.ts → types/cursors.d.ts} +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("@emotion/react/jsx-runtime"),r=require("../../../core/Icon/Icon.js"),u=(e,t)=>e?typeof e=="string"?n.jsx(r.Icon,{name:e,...t}):e:null;exports.getIcon=u;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("@emotion/react/jsx-runtime"),c=require("../../../../hooks/useTheme/useTheme.js"),i=require("../../../core/Skeleton/Skeleton.js"),t=require("./constants.js"),u=require("./SearchLoaderStyled.js"),r=o=>{const{itemsCount:s}=o,{theme:n}=c.useTheme();return e.jsx(u.SearchLoaderStyled,{theme:n,"data-testid":t.COMPONENT_NAME,children:Array.from({length:s}).map((d,a)=>e.jsx(i.Skeleton,{height:"20px"},a))})};r.displayName=t.COMPONENT_NAME;exports.SearchLoader=r;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("@emotion/react/jsx-runtime"),o=require("../../../../utils/helpers.js");require("react");const a=e=>{const{theme:{searchModal:r}={},...t}=e;return s.jsx("div",{css:[o.get(r,"loader.default",{})],...t})};exports.SearchLoaderStyled=a;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e="SearchLoader";exports.COMPONENT_NAME=e;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("@emotion/react/jsx-runtime"),R=require("react"),O=require("../../../hooks/useTheme/useTheme.js"),e=require("./constants.js"),l=require("./SearchModalStyled.js"),q=require("./SearchInput/SearchInput.js"),y=require("./SearchLoader/SearchLoader.js"),A=require("./SearchItems/SearchItems.js"),i=R.forwardRef((u,S)=>{const{children:h,onResultClick:d,results:E=[],historyResults:T=[],searchValue:s="",isLoading:m=!1,noHistoryResultsLabel:C=e.DEFAULT_NO_HISTORY_RESULTS,noResultsLabel:L=e.DEFAULT_NO_RESULTS,newSearchCta:_=e.DEFAULT_NEW_SEARCH,loaderItemsCount:I=e.DEFAULT_LOADER_ITEMS_COUNT,modalProps:r={},searchProps:M={},...N}=u,{theme:a}=O.useTheme();let c=T,n=C,o=_;return s&&(c=E,n=L,o=""),t.jsxs(l.SearchModalStyled,{theme:a,ref:S,"data-testid":e.COMPONENT_NAME,...r,...N,children:[t.jsx(q.SearchInput,{onEndIconClick:r==null?void 0:r.onClose,...M,defaultValue:s}),t.jsx(l.SearchModalWrapperStyled,{theme:a,children:m?t.jsx(y.SearchLoader,{itemsCount:I}):t.jsx(A.SearchItems,{onItemClick:d,items:c,newSearchCta:o,noItemsLabel:n})}),h]})});i.displayName=e.COMPONENT_NAME;exports.SearchModal=i;
|
|
@@ -1,28 +1,30 @@
|
|
|
1
|
-
import { MouseEvent, ReactNode } from 'react';
|
|
2
|
-
import {
|
|
1
|
+
import { MouseEvent, PropsWithChildren, ReactNode } from 'react';
|
|
2
|
+
import { ModalProps, InputFieldProps, CommonCssComponentProps, CommonCssComponentStyledProps } from '../..';
|
|
3
|
+
import { defaultTheme } from '../../../tokens';
|
|
3
4
|
export type SearchInputProps = InputFieldProps & {
|
|
5
|
+
theme?: typeof defaultTheme;
|
|
4
6
|
onEndIconClick?: (event: MouseEvent<HTMLDivElement>) => void;
|
|
5
7
|
};
|
|
6
|
-
export interface SearchLoaderProps extends
|
|
8
|
+
export interface SearchLoaderProps extends CommonCssComponentProps {
|
|
7
9
|
itemsCount: number;
|
|
8
10
|
}
|
|
9
|
-
export interface SearchModalResultItemProps extends
|
|
11
|
+
export interface SearchModalResultItemProps extends CommonCssComponentProps {
|
|
10
12
|
title: string;
|
|
11
13
|
icon?: ReactNode;
|
|
12
14
|
description?: string;
|
|
13
15
|
date?: number;
|
|
14
16
|
}
|
|
15
|
-
export interface SearchModalHistoryResultItemProps extends
|
|
17
|
+
export interface SearchModalHistoryResultItemProps extends CommonCssComponentProps {
|
|
16
18
|
title: string;
|
|
17
19
|
items: (never | SearchModalResultItemProps)[];
|
|
18
20
|
}
|
|
19
|
-
export interface SearchItemsProps extends
|
|
21
|
+
export interface SearchItemsProps extends CommonCssComponentProps {
|
|
20
22
|
items?: (never | SearchModalResultItemProps | SearchModalHistoryResultItemProps)[];
|
|
21
23
|
onItemClick?: (event: MouseEvent, item: string | SearchModalResultItemProps) => void;
|
|
22
24
|
noItemsLabel?: string;
|
|
23
25
|
newSearchCta?: string;
|
|
24
26
|
}
|
|
25
|
-
export interface SearchModalProps extends
|
|
27
|
+
export interface SearchModalProps extends CommonCssComponentProps {
|
|
26
28
|
results?: (never | SearchModalResultItemProps | SearchModalHistoryResultItemProps)[];
|
|
27
29
|
historyResults?: (never | SearchModalResultItemProps | SearchModalHistoryResultItemProps)[];
|
|
28
30
|
noResultsLabel?: string;
|
|
@@ -36,10 +38,11 @@ export interface SearchModalProps extends CommonComponentProps {
|
|
|
36
38
|
modalProps?: ModalProps;
|
|
37
39
|
searchProps?: SearchInputProps;
|
|
38
40
|
}
|
|
39
|
-
export interface SearchModalStyledProps extends
|
|
40
|
-
|
|
41
|
-
closeOnEscape?: boolean;
|
|
41
|
+
export interface SearchModalStyledProps extends Omit<CommonCssComponentStyledProps, 'title'>, PropsWithChildren {
|
|
42
|
+
title?: ReactNode;
|
|
42
43
|
}
|
|
43
|
-
export interface
|
|
44
|
+
export interface SearchItemContentStyledProps extends CommonCssComponentStyledProps, PropsWithChildren {
|
|
44
45
|
$variant?: 'title' | 'description' | 'date';
|
|
45
46
|
}
|
|
47
|
+
export interface SearchModalCommonStyledProps<T = HTMLDivElement> extends CommonCssComponentStyledProps<T>, PropsWithChildren {
|
|
48
|
+
}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { SearchModalStyledProps, SearchModalCommonStyledProps } from './SearchModal.types';
|
|
2
|
+
export declare const SearchModalStyled: (props: SearchModalStyledProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
3
|
+
export declare const SearchModalWrapperStyled: (props: SearchModalCommonStyledProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("@emotion/react/jsx-runtime"),c=require("../../../utils/helpers.js");require("react");const a=require("../../core/Modal/Modal.js"),d=e=>{const{theme:{searchModal:t}={},styles:r={},...s}=e,l={...c.get(t,"default",{}),...r};return o.jsx(a.Modal,{styles:l,isCustomView:!0,closeOnEscape:!0,...s})},u=e=>{const{theme:{searchModal:t}={},...r}=e,s=c.get(t,"wrapper",{});return o.jsx("div",{css:s,...r})};exports.SearchModalStyled=d;exports.SearchModalWrapperStyled=u;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const E="SearchModal",_=3,T="You have no conversations",S="No Results",o="No chat";exports.COMPONENT_NAME=E;exports.DEFAULT_LOADER_ITEMS_COUNT=_;exports.DEFAULT_NEW_SEARCH=o;exports.DEFAULT_NO_HISTORY_RESULTS=T;exports.DEFAULT_NO_RESULTS=S;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("@emotion/react/jsx-runtime"),l=require("react"),y=require("../../../hooks/useTheme/useTheme.js"),o=require("../../../types/stepper.js"),a=require("./constants.js"),C=require("./utils.js"),c=require("./StepperStyled.js"),T=l.forwardRef((N,M)=>{const{steps:d=[],isIconsView:O=!1,activeStep:S=0,onStepClick:u,...$}=N,{theme:e}=y.useTheme(),E=l.useCallback((t,p)=>i=>u==null?void 0:u(t,p,i),[]),h=t=>t===S?o.StepStatus.Active:t<S?o.StepStatus.Complete:o.StepStatus.Inactive;return n.jsx(c.StepperStyled,{ref:M,theme:e,"data-testid":a.COMPONENT_NAME,...$,children:d.map(({validationStatus:t=o.StepValidationStatus.Success,customView:p,label:i},s)=>{const r=h(s),m=s<d.length-1,j=C.getStepStatusIcon({status:r,validationStatus:t,customView:p,isIconsView:O,theme:e})||s+1;return n.jsxs(l.Fragment,{children:[n.jsxs(c.StepStyled,{theme:e,$status:r,onClick:u&&E(s,r),"data-testid":`${a.COMPONENT_NAME}-step`,"aria-selected":s===S,children:[n.jsx(c.StepIconStyled,{theme:e,$status:r,$validationStatus:t,"data-testid":`${a.COMPONENT_NAME}-step-icon`,children:j}),i&&n.jsx(c.StepLabelStyled,{theme:e,$status:r,$validationStatus:t,"data-testid":`${a.COMPONENT_NAME}-step-label`,children:i})]}),m&&n.jsx(c.SeparatorStyled,{theme:e,$status:r})]},`${a.COMPONENT_NAME}-step-${s}`)})})});exports.Stepper=T;
|
|
@@ -1,16 +1,7 @@
|
|
|
1
|
-
import { ReactNode, MouseEvent } from 'react';
|
|
1
|
+
import { ReactNode, MouseEvent, PropsWithChildren } from 'react';
|
|
2
|
+
import { CommonCssComponentProps, CommonCssComponentStyledProps } from '../../index.types';
|
|
2
3
|
import { Theme } from '../../../hooks/useTheme';
|
|
3
|
-
import { EnumOrPrimitive } from '../../../types';
|
|
4
|
-
import { CommonComponentProps, CommonStyledComponentProps } from '../../index.types';
|
|
5
|
-
export declare enum StepStatus {
|
|
6
|
-
Active = "active",
|
|
7
|
-
Inactive = "inactive",
|
|
8
|
-
Complete = "complete"
|
|
9
|
-
}
|
|
10
|
-
export declare enum StepValidationStatus {
|
|
11
|
-
Error = "error",
|
|
12
|
-
Success = "success"
|
|
13
|
-
}
|
|
4
|
+
import { EnumOrPrimitive, StepStatus, StepValidationStatus } from '../../../types';
|
|
14
5
|
export interface StepProps {
|
|
15
6
|
validationStatus?: EnumOrPrimitive<StepValidationStatus>;
|
|
16
7
|
customView?: ReactNode;
|
|
@@ -23,13 +14,14 @@ export type ContentViewProps = {
|
|
|
23
14
|
customView: ReactNode;
|
|
24
15
|
isIconsView: boolean;
|
|
25
16
|
};
|
|
26
|
-
export interface StepperProps extends
|
|
17
|
+
export interface StepperProps extends CommonCssComponentProps {
|
|
27
18
|
steps: StepProps[];
|
|
28
19
|
isIconsView?: boolean;
|
|
29
20
|
activeStep?: number;
|
|
30
21
|
onStepClick?: (idx: number, status: StepStatus, event: MouseEvent) => void;
|
|
31
22
|
}
|
|
32
|
-
export
|
|
23
|
+
export interface StepperStyledProps extends CommonCssComponentStyledProps, PropsWithChildren {
|
|
24
|
+
}
|
|
33
25
|
export interface StepCommonStyledProps extends StepperStyledProps {
|
|
34
26
|
$status: StepStatus;
|
|
35
27
|
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { StepCommonStyledProps, StepEntityStyledProps, StepperStyledProps, StepStyledProps } from './Stepper.types';
|
|
2
|
+
export declare const StepperStyled: import('react').ForwardRefExoticComponent<Omit<StepperStyledProps, "ref"> & import('react').RefAttributes<HTMLDivElement>>;
|
|
3
|
+
export declare const SeparatorStyled: (props: StepCommonStyledProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
4
|
+
export declare const StepStyled: (props: StepStyledProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
5
|
+
export declare const StepIconStyled: (props: StepEntityStyledProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
6
|
+
export declare const StepLabelStyled: (props: StepEntityStyledProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const p=require("@emotion/react/jsx-runtime"),S=require("react"),t=require("../../../utils/helpers.js"),d=S.forwardRef(n=>{const{theme:{stepper:c}={},styles:o={},...r}=n,e=[t.get(c,"default",{}),o];return p.jsx("div",{css:e,...r})}),a=n=>{const{theme:{stepper:c}={},$status:o,...r}=n,e=t.get(c,"separator",{}),s=[t.get(e,"default",{}),t.get(e,o,{})];return p.jsx("div",{css:s,...r})},u=n=>{const{theme:{stepper:c}={},$status:o,...r}=n,e=t.get(c,"step",{}),s=[t.get(e,"default",{}),t.get(e,o,{})];return p.jsx("div",{css:s,...r})},y=n=>{const{theme:{stepper:c}={},$status:o,$validationStatus:r,...e}=n,s=t.get(c,"stepIcon",{}),l=[t.get(s,"default",{}),t.get(s,[o,"default"],{}),t.get(s,[o,r],{})];return p.jsx("div",{css:l,...e})},g=n=>{const{theme:{stepper:c}={},$status:o,$validationStatus:r,...e}=n,s=t.get(c,"stepLabel",{}),l=[t.get(s,"default",{}),t.get(s,o,{}),t.get(s,r,{})];return p.jsx("div",{css:l,...e})};exports.SeparatorStyled=a;exports.StepIconStyled=y;exports.StepLabelStyled=g;exports.StepStyled=u;exports.StepperStyled=d;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e="Stepper";exports.COMPONENT_NAME=e;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("@emotion/react/jsx-runtime"),r=require("../../../utils/helpers.js");require("react");require("../../core/Breadcrumbs/Breadcrumbs.js");require("../../core/Button/Button.js");require("../../core/Dropdown/Dropdown.js");require("../../core/Dropdown/hooks/useDropdown.js");require("../../core/DropdownItem/DropdownItem.js");require("../../core/Form/Form.js");const q=require("../../core/Icon/Icon.js");require("../../core/Image/Image.js");require("../../core/InlineNotification/InlineNotification.js");require("../../core/Input/Input.js");require("../../core/InputFile/InputFile.js");require("../../core/Label/Label.js");require("../../core/Link/Link.js");require("../../core/List/List.js");require("../../core/Loader/Loader.js");require("../../core/Menu/Menu.js");require("../../core/Modal/Modal.js");require("../../core/Portal/Portal.js");require("../../core/Scroll/Scroll.js");require("../../core/Select/Select.js");require("../../core/Separator/Separator.js");require("../../core/Skeleton/Skeleton.js");require("../../core/Slider/SliderStyled.js");require("../../core/Slider/Slider.js");require("../../core/Snackbar/Snackbar.js");require("../../../hooks/useTheme/useTheme.js");require("../../core/Snackbar/SnackbarStyled.js");require("../../core/Snackbar/constants.js");require("../../core/Switch/Switch.js");require("../../core/Toggle/Toggle.js");require("../../core/Tooltip/Tooltip.js");require("../../core/Typography/Typography.js");require("../../core/Wrapper/Wrapper.js");require("../../core/Textarea/Textarea.js");require("../../layout/FlexContainer/FlexContainer.js");require("../../layout/Column/Column.js");require("../../layout/Row/Row.js");require("../../layout/ChatContainer/ChatContainer.js");require("../Accordion/hooks/useAccordion.js");require("../Avatar/Avatar.js");require("../Card/Card.js");require("../Carousel/Carousel.js");require("../ChatBubble/ChatBubble.js");require("../ContentCarousel/ContentCarousel.js");require("../Counter/Counter.js");require("../DragAndDropFiles/DragAndDropFiles.js");require("../Header/Header.js");require("../Price/Price.js");require("../ProgressBar/ProgressBar.js");require("../RadioGroup/RadioGroup.js");require("../Rating/Rating.js");require("../Search/Search.js");require("../SearchModal/SearchModal.js");require("./Stepper.js");require("../Tabs/Tabs.js");require("../../widget/DragAndDrop/DragAndDrop.js");require("../../templates/SkeletonSearch/SkeletonSearch.js");const t=require("../../../types/stepper.js"),p=({status:s,validationStatus:o,customView:e,isIconsView:n,theme:a})=>{const c=o===t.StepValidationStatus.Error,u=r.get(a,"stepper.icons",{});switch(s){case t.StepStatus.Complete:return c?i.jsx(q.Icon,{...r.get(u,"error",{name:"cross"})}):n?i.jsx(q.Icon,{...r.get(u,"complete",{name:"check"})}):e;case t.StepStatus.Inactive:return n?e||i.jsx(q.Icon,{...r.get(u,"inactive",{name:"check"})}):e;case t.StepStatus.Active:return c?i.jsx(q.Icon,{...r.get(u,"errorActive",{name:"cross"})}):n?e||i.jsx(q.Icon,{...r.get(u,"active",{name:"check"})}):e;default:return e}};exports.getStepStatusIcon=p;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("@emotion/react/jsx-runtime"),o=require("react"),h=require("../../../hooks/useTheme/useTheme.js"),A=require("../../../utils/uniqueKeys.js"),e=require("./constants.js"),l=require("./TabsStyled.js"),R=o.forwardRef((E,M)=>{const{activeTab:O=0,tabs:N=[],ariaLabel:u,onTabChange:c,...P}=E,{theme:n}=h.useTheme(),[$,C]=o.useState(O),y=o.useCallback(a=>()=>{C(a),c&&c(a)},[c]),r=o.useCallback((a,t)=>A.generateUniqueId(t,`${e.COMPONENT_NAME}-${a}`),[]);return s.jsxs(l.TabsStyled,{ref:M,theme:n,"data-testid":e.COMPONENT_NAME,...u?{"aria-label":u}:{},...P,children:[s.jsx(l.TabsHeaderStyled,{theme:n,"data-testid":`${e.COMPONENT_NAME}-header`,role:e.TabRoles.TabList,children:N.map(({isDisabled:a,noticeCounter:t,label:b,id:i},T)=>{const d=T===$;return s.jsx(l.TabLabelStyled,{theme:n,$isDisabled:a,$isActive:d,"data-testid":`${e.COMPONENT_NAME}-${e.TabRoles.Tab}`,children:s.jsx(l.TextButtonStyled,{onClick:y(T),disabled:a,id:r(`${e.TabRoles.Tab}-${T}`,i),theme:n,iconEnd:typeof t<"u"&&s.jsx(l.NoticeCounterStyled,{className:`${e.COMPONENT_NAME}__noticeCounter`,theme:n,$isActive:d,$isDisabled:a,"data-testid":`${e.COMPONENT_NAME}-noticeCounter`,children:t}),"aria-selected":d,"aria-controls":r(`${e.TabRoles.TabPanel}-${T}`,i),children:b})},r(`tab-${T}`,i))})}),s.jsx(l.TabPanelsWrapperStyled,{theme:n,"data-testid":`${e.COMPONENT_NAME}-wrapper`,children:N.map(({content:a,id:t},b)=>s.jsx(l.TabPanelStyled,{id:r(`${e.TabRoles.TabPanel}-${b}`,t),"aria-labelledby":r(`${e.TabRoles.Tab}-${b}`,t),role:e.TabRoles.TabPanel,hidden:b!==$,"data-testid":`${e.COMPONENT_NAME}-${e.TabRoles.TabPanel}`,children:a},r(`${e.TabRoles.TabPanel}-${b}`,t)))})]})});exports.Tabs=R;
|
|
@@ -1,5 +1,7 @@
|
|
|
1
|
-
import { ReactNode } from 'react';
|
|
2
|
-
import {
|
|
1
|
+
import { PropsWithChildren, ReactNode } from 'react';
|
|
2
|
+
import { CommonCssComponentProps, CommonCssComponentStyledProps } from '../../index.types';
|
|
3
|
+
import { ButtonProps } from '../../core';
|
|
4
|
+
import { Theme } from '../../../hooks';
|
|
3
5
|
export interface TabProps {
|
|
4
6
|
id?: string | number;
|
|
5
7
|
label: ReactNode;
|
|
@@ -7,14 +9,18 @@ export interface TabProps {
|
|
|
7
9
|
isDisabled?: boolean;
|
|
8
10
|
noticeCounter?: number | string;
|
|
9
11
|
}
|
|
10
|
-
export interface TabsProps extends
|
|
12
|
+
export interface TabsProps extends CommonCssComponentProps {
|
|
11
13
|
tabs?: (TabProps | never)[];
|
|
12
14
|
activeTab?: number;
|
|
13
15
|
ariaLabel?: string;
|
|
14
16
|
onTabChange?: (index: number) => void;
|
|
15
17
|
}
|
|
16
|
-
export
|
|
17
|
-
|
|
18
|
+
export interface TabsStyledProps extends CommonCssComponentStyledProps, PropsWithChildren {
|
|
19
|
+
}
|
|
20
|
+
export interface TabLabelStyledProps extends CommonCssComponentStyledProps, PropsWithChildren {
|
|
18
21
|
$isActive?: boolean;
|
|
19
22
|
$isDisabled?: boolean;
|
|
20
23
|
}
|
|
24
|
+
export interface StyledTextButtonProps extends ButtonProps {
|
|
25
|
+
theme?: Theme;
|
|
26
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { StyledTextButtonProps, TabLabelStyledProps, TabsStyledProps } from './Tabs.types';
|
|
2
|
+
export declare const TabsStyled: import('react').ForwardRefExoticComponent<Omit<TabsStyledProps, "ref"> & import('react').RefAttributes<HTMLDivElement>>;
|
|
3
|
+
export declare const TabsHeaderStyled: (props: TabsStyledProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
4
|
+
export declare const TabLabelStyled: (props: TabLabelStyledProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
5
|
+
export declare const TabPanelsWrapperStyled: (props: TabsStyledProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
6
|
+
export declare const TabPanelStyled: (props: TabsStyledProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
7
|
+
export declare const NoticeCounterStyled: (props: TabLabelStyledProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
8
|
+
export declare const TextButtonStyled: (props: StyledTextButtonProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const q=require("@emotion/react/jsx-runtime"),c=require("react"),e=require("../../../utils/helpers.js");require("../../core/Breadcrumbs/Breadcrumbs.js");const d=require("../../core/Button/Button.js");require("../../core/Dropdown/Dropdown.js");require("../../core/Dropdown/hooks/useDropdown.js");require("../../core/DropdownItem/DropdownItem.js");require("../../core/Form/Form.js");require("../../core/Icon/Icon.js");require("../../core/Image/Image.js");require("../../core/InlineNotification/InlineNotification.js");require("../../core/Input/Input.js");require("../../core/InputFile/InputFile.js");require("../../core/Label/Label.js");require("../../core/Link/Link.js");require("../../core/List/List.js");require("../../core/Loader/Loader.js");require("../../core/Menu/Menu.js");require("../../core/Modal/Modal.js");require("../../core/Portal/Portal.js");require("../../core/Scroll/Scroll.js");require("../../core/Select/Select.js");require("../../core/Separator/Separator.js");require("../../core/Skeleton/Skeleton.js");require("../../core/Slider/SliderStyled.js");require("../../core/Slider/Slider.js");require("../../core/Snackbar/Snackbar.js");require("../../../hooks/useTheme/useTheme.js");require("../../layout/FlexContainer/FlexContainer.js");require("../../layout/Column/Column.js");require("../../layout/Row/Row.js");require("../../layout/ChatContainer/ChatContainer.js");require("../Accordion/hooks/useAccordion.js");require("../Avatar/Avatar.js");require("../Card/Card.js");require("../Carousel/Carousel.js");require("../ChatBubble/ChatBubble.js");require("../ContentCarousel/ContentCarousel.js");require("../Counter/Counter.js");require("../DragAndDropFiles/DragAndDropFiles.js");require("../Header/Header.js");require("../Price/Price.js");require("../ProgressBar/ProgressBar.js");require("../RadioGroup/RadioGroup.js");require("../Rating/Rating.js");require("../Search/Search.js");require("../SearchModal/SearchModal.js");require("../Stepper/Stepper.js");require("./Tabs.js");require("../../widget/DragAndDrop/DragAndDrop.js");require("../../templates/SkeletonSearch/SkeletonSearch.js");require("../../core/Snackbar/SnackbarStyled.js");require("../../core/Snackbar/constants.js");require("../../core/Switch/Switch.js");require("../../core/Toggle/Toggle.js");require("../../core/Tooltip/Tooltip.js");require("../../core/Typography/Typography.js");require("../../core/Wrapper/Wrapper.js");require("../../core/Textarea/Textarea.js");const o=require("../../../types/button.js"),b=c.forwardRef((t,s)=>{const{theme:{tabs:r}={},styles:u={},...i}=t,n=[e.get(r,"default",{}),u];return q.jsx("div",{css:n,...i,ref:s})}),y=t=>{const{theme:{tabs:s}={},...r}=t;return q.jsx("div",{css:[e.get(s,"header.default",{})],...r})},S=t=>{const{theme:{tabs:s}={},$isDisabled:r,$isActive:u,...i}=t,n=e.get(s,"label",{}),a=e.get(n,"disabled",{}),l=[e.get(n,"default",{}),u?e.get(n,"active",{}):{},r?e.get(a,"default",{}):{},r&&u?e.get(a,"active",{}):{}];return q.jsx("div",{css:l,...i})},p=t=>{const{theme:{tabs:s}={},styles:r={},...u}=t,i=[e.get(s,"panelsWrapper.default",{}),r];return q.jsx("div",{css:i,...u})},g=t=>{const{theme:{tabs:s}={},styles:r={},...u}=t,i=[e.get(s,"panel.default",{}),r];return q.jsx("div",{css:i,...u})},m=t=>{const{theme:{tabs:s}={},$isDisabled:r,$isActive:u,...i}=t,n=e.get(s,"noticeCounter",{}),a=[e.get(n,"default",{}),u?e.get(n,"active",{}):{},r?e.get(n,"disabled",{}):{}];return q.jsx("span",{css:a,...i})},T=t=>{const{theme:{tabs:s}={},...r}=t,u=[e.get(s,"tabButton.default",{})];return q.jsx(d.Button,{css:u,variant:o.ButtonVariant.Text,role:o.ButtonRole.Tab,...r})};exports.NoticeCounterStyled=m;exports.TabLabelStyled=S;exports.TabPanelStyled=g;exports.TabPanelsWrapperStyled=p;exports.TabsHeaderStyled=y;exports.TabsStyled=b;exports.TextButtonStyled=T;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e="Tabs";var a=(t=>(t.TabList="tablist",t.Tab="tab",t.TabPanel="tabpanel",t))(a||{});exports.COMPONENT_NAME=e;exports.TabRoles=a;
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
export * from './Accordion';
|
|
2
|
+
export * from './Avatar';
|
|
2
3
|
export * from './Card';
|
|
3
4
|
export * from './Carousel';
|
|
5
|
+
export * from './ChatBubble';
|
|
4
6
|
export * from './ContentCarousel';
|
|
5
7
|
export * from './Counter';
|
|
6
8
|
export * from './DragAndDropFiles';
|
|
@@ -13,4 +15,3 @@ export * from './Search';
|
|
|
13
15
|
export * from './SearchModal';
|
|
14
16
|
export * from './Stepper';
|
|
15
17
|
export * from './Tabs';
|
|
16
|
-
export * from './Templates';
|
package/components/index.d.ts
CHANGED
|
@@ -1,68 +1,7 @@
|
|
|
1
|
-
import { HTMLAttributes, ForwardedRef } from 'react';
|
|
2
|
-
import { CSSObject as StyledCSSObject } from 'styled-components';
|
|
1
|
+
import { HTMLAttributes, ForwardedRef, InputHTMLAttributes } from 'react';
|
|
3
2
|
import { CSSObject } from '@emotion/react';
|
|
4
|
-
import {
|
|
5
|
-
|
|
6
|
-
classNames?: string;
|
|
7
|
-
className?: string;
|
|
8
|
-
id?: string;
|
|
9
|
-
styles?: StyledCSSObject;
|
|
10
|
-
theme?: typeof defaultTheme;
|
|
11
|
-
}
|
|
12
|
-
export interface CommonStyledComponentProps {
|
|
13
|
-
$styles?: StyledCSSObject;
|
|
14
|
-
theme: typeof defaultTheme;
|
|
15
|
-
}
|
|
16
|
-
export interface BoxComponentProps extends CommonComponentProps {
|
|
17
|
-
overflow?: string;
|
|
18
|
-
minWidth?: string;
|
|
19
|
-
width?: string;
|
|
20
|
-
maxWidth?: string;
|
|
21
|
-
minHeight?: string;
|
|
22
|
-
height?: string;
|
|
23
|
-
maxHeight?: string;
|
|
24
|
-
margin?: string;
|
|
25
|
-
marginTop?: string;
|
|
26
|
-
marginRight?: string;
|
|
27
|
-
marginBottom?: string;
|
|
28
|
-
marginLeft?: string;
|
|
29
|
-
padding?: string;
|
|
30
|
-
paddingTop?: string;
|
|
31
|
-
paddingRight?: string;
|
|
32
|
-
paddingBottom?: string;
|
|
33
|
-
paddingLeft?: string;
|
|
34
|
-
position?: string;
|
|
35
|
-
}
|
|
36
|
-
export interface BoxStyledComponentProps extends CommonStyledComponentProps {
|
|
37
|
-
$overflow?: string;
|
|
38
|
-
$minWidth?: string;
|
|
39
|
-
$width?: string;
|
|
40
|
-
$maxWidth?: string;
|
|
41
|
-
$minHeight?: string;
|
|
42
|
-
$height?: string;
|
|
43
|
-
$maxHeight?: string;
|
|
44
|
-
$margin?: string;
|
|
45
|
-
$marginTop?: string;
|
|
46
|
-
$marginRight?: string;
|
|
47
|
-
$marginBottom?: string;
|
|
48
|
-
$marginLeft?: string;
|
|
49
|
-
$padding?: string;
|
|
50
|
-
$paddingTop?: string;
|
|
51
|
-
$paddingRight?: string;
|
|
52
|
-
$paddingBottom?: string;
|
|
53
|
-
$paddingLeft?: string;
|
|
54
|
-
$position?: string;
|
|
55
|
-
}
|
|
56
|
-
export type AlignType = 'start' | 'center' | 'end' | 'stretch';
|
|
57
|
-
export type JustifyType = 'start' | 'center' | 'end' | 'between' | 'around';
|
|
58
|
-
export declare enum SizeVariant {
|
|
59
|
-
Xs = "xs",
|
|
60
|
-
Sm = "sm",
|
|
61
|
-
Md = "md",
|
|
62
|
-
Lg = "lg",
|
|
63
|
-
Xl = "xl",
|
|
64
|
-
Xxl = "xxl"
|
|
65
|
-
}
|
|
3
|
+
import { AlignType, JustifyType } from '../types';
|
|
4
|
+
import { Theme } from '../hooks/useTheme';
|
|
66
5
|
export interface FlexElementProps {
|
|
67
6
|
gutter?: number | string;
|
|
68
7
|
flex?: string;
|
|
@@ -71,7 +10,7 @@ export interface FlexElementProps {
|
|
|
71
10
|
align?: AlignType;
|
|
72
11
|
justify?: JustifyType;
|
|
73
12
|
}
|
|
74
|
-
export interface
|
|
13
|
+
export interface FlexElementStyledProps {
|
|
75
14
|
$gutter: number | string;
|
|
76
15
|
$flex?: string;
|
|
77
16
|
$isReversed: boolean;
|
|
@@ -79,15 +18,39 @@ export interface StyledFlexElementProps {
|
|
|
79
18
|
$align: AlignType;
|
|
80
19
|
$justify: JustifyType;
|
|
81
20
|
}
|
|
21
|
+
export declare enum FileTypes {
|
|
22
|
+
png = "image/png",
|
|
23
|
+
gif = "image/gif",
|
|
24
|
+
jpeg = "image/jpeg",
|
|
25
|
+
svg = "image/svg+xml",
|
|
26
|
+
webp = "image/webp",
|
|
27
|
+
mp4 = "video/mp4",
|
|
28
|
+
pdf = "application/pdf",
|
|
29
|
+
doc = "application/msword",
|
|
30
|
+
docx = "application/vnd.openxmlformats-officedocument.wordprocessingml.document",
|
|
31
|
+
xls = "application/vnd.ms-excel",
|
|
32
|
+
xlsx = "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",
|
|
33
|
+
csv = "text/csv",
|
|
34
|
+
text = "text/plain",
|
|
35
|
+
zip = "application/zip",
|
|
36
|
+
rar = "application/x-rar",
|
|
37
|
+
'7z' = "application/x-7z-compressed"
|
|
38
|
+
}
|
|
82
39
|
export interface CommonCssComponentProps<T = HTMLDivElement> extends HTMLAttributes<T> {
|
|
83
40
|
styles?: CSSObject;
|
|
84
41
|
}
|
|
85
42
|
export interface CommonCssComponentStyledProps<T = HTMLDivElement> extends HTMLAttributes<T> {
|
|
86
|
-
theme?:
|
|
43
|
+
theme?: Theme;
|
|
87
44
|
styles?: CSSObject;
|
|
88
45
|
className?: string;
|
|
89
46
|
ref?: ForwardedRef<T>;
|
|
90
47
|
}
|
|
48
|
+
export interface CommonCssInputStyledProps extends InputHTMLAttributes<HTMLInputElement> {
|
|
49
|
+
theme?: Theme;
|
|
50
|
+
styles?: CSSObject;
|
|
51
|
+
className?: string;
|
|
52
|
+
ref?: ForwardedRef<HTMLInputElement>;
|
|
53
|
+
}
|
|
91
54
|
export interface BoxCssComponentProps<T = HTMLDivElement> extends CommonCssComponentProps<T> {
|
|
92
55
|
overflow?: string;
|
|
93
56
|
minWidth?: string;
|
|
@@ -107,6 +70,17 @@ export interface BoxCssComponentProps<T = HTMLDivElement> extends CommonCssCompo
|
|
|
107
70
|
paddingBottom?: string;
|
|
108
71
|
paddingLeft?: string;
|
|
109
72
|
position?: string;
|
|
73
|
+
flexDirection?: string;
|
|
74
|
+
justifyContent?: string;
|
|
75
|
+
alignItems?: string;
|
|
76
|
+
alignContent?: string;
|
|
77
|
+
flexWrap?: string;
|
|
78
|
+
flex?: string;
|
|
79
|
+
flexGrow?: string;
|
|
80
|
+
flexShrink?: string;
|
|
81
|
+
flexBasis?: string;
|
|
82
|
+
order?: string;
|
|
83
|
+
gap?: string;
|
|
110
84
|
}
|
|
111
85
|
export interface BoxCssComponentStyledProps<T = HTMLDivElement> extends CommonCssComponentStyledProps<T> {
|
|
112
86
|
$overflow?: string;
|
|
@@ -127,4 +101,15 @@ export interface BoxCssComponentStyledProps<T = HTMLDivElement> extends CommonCs
|
|
|
127
101
|
$paddingBottom?: string;
|
|
128
102
|
$paddingLeft?: string;
|
|
129
103
|
$position?: string;
|
|
104
|
+
$flexDirection?: string;
|
|
105
|
+
$justifyContent?: string;
|
|
106
|
+
$alignItems?: string;
|
|
107
|
+
$alignContent?: string;
|
|
108
|
+
$flexWrap?: string;
|
|
109
|
+
$flex?: string;
|
|
110
|
+
$flexGrow?: string;
|
|
111
|
+
$flexShrink?: string;
|
|
112
|
+
$flexBasis?: string;
|
|
113
|
+
$order?: string;
|
|
114
|
+
$gap?: string;
|
|
130
115
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var o=(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||{});exports.FileTypes=o;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("@emotion/react/jsx-runtime"),o=require("react"),j=require("../../../hooks/useTheme/useTheme.js"),c=require("../../../utils/helpers.js"),l=require("../../core/Icon/Icon.js"),x=require("../../../types/chat.js"),a=require("./constants.js"),r=require("./ChatContainerStyled.js"),N=o.forwardRef((h,u)=>{const{sidebarContent:C,headerContent:O,children:S,isOpen:M=!0,sidebarHeaderContent:y,onToggleSidebar:s,styles:E={},variant:b=x.ChatLayoutVariant.Auto,...p}=h,{theme:e}=j.useTheme(),[n,g]=o.useState(M),d=()=>{const i=!n;g(i),s==null||s(i)};return t.jsxs(r.MainWrapperStyled,{className:"gd-chat-container","data-testid":`${a.COMPONENT_NAME}-main-wrapper`,theme:e,ref:u,...p,styles:E,children:[n&&t.jsx(r.SidebarWrapperStyled,{theme:e,$variant:b,"data-testid":`${a.COMPONENT_NAME}-sidebar-wrapper`,children:t.jsxs(r.SidebarStyled,{theme:e,"data-testid":`${a.COMPONENT_NAME}-sidebar`,children:[t.jsxs(r.SidebarHeaderStyled,{theme:e,"data-testid":`${a.COMPONENT_NAME}-sidebar-header`,children:[t.jsx(r.SidebarToggleButtonStyled,{theme:e,onClick:d,$open:n,children:t.jsx(l.Icon,{...c.get(e,"chat.toggleIcon",{name:"arrowDown"})})}),y]}),C]})}),t.jsxs(r.BodyStyled,{theme:e,"data-testid":`${a.COMPONENT_NAME}-body`,children:[t.jsxs(r.MainHeaderStyled,{theme:e,"data-testid":`${a.COMPONENT_NAME}-main-header`,children:[!n&&t.jsx(r.SidebarToggleButtonStyled,{theme:e,onClick:d,children:t.jsx(l.Icon,{...c.get(e,"chat.toggleIcon",{name:"arrowDown"})})}),O]}),t.jsx(r.ContentStyled,{theme:e,"data-testid":`${a.COMPONENT_NAME}-content`,children:S})]})]})});N.displayName=a.COMPONENT_NAME;exports.ChatContainer=N;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { PropsWithChildren, ReactNode } from 'react';
|
|
2
|
+
import { EnumOrPrimitive } from '../../../types';
|
|
3
|
+
import { CommonCssComponentProps, CommonCssComponentStyledProps } from '../..';
|
|
4
|
+
export declare enum ChatLayoutVariant {
|
|
5
|
+
Auto = "auto",
|
|
6
|
+
Desktop = "desktop",
|
|
7
|
+
Drawer = "drawer"
|
|
8
|
+
}
|
|
9
|
+
export interface ChatContainerProps extends PropsWithChildren<CommonCssComponentProps> {
|
|
10
|
+
sidebarContent?: ReactNode;
|
|
11
|
+
sidebarHeaderContent?: ReactNode;
|
|
12
|
+
headerContent?: ReactNode;
|
|
13
|
+
children?: ReactNode;
|
|
14
|
+
isOpen?: boolean;
|
|
15
|
+
variant?: EnumOrPrimitive<ChatLayoutVariant>;
|
|
16
|
+
onToggleSidebar?: (open: boolean) => void;
|
|
17
|
+
}
|
|
18
|
+
export type ChatCommonStyledProps = PropsWithChildren<CommonCssComponentStyledProps>;
|
|
19
|
+
export interface SidebarWrapperStyledProps extends CommonCssComponentStyledProps {
|
|
20
|
+
$variant?: EnumOrPrimitive<ChatLayoutVariant>;
|
|
21
|
+
}
|
|
22
|
+
export interface SidebarToggleButtonStyledProps extends CommonCssComponentStyledProps<HTMLButtonElement> {
|
|
23
|
+
$open?: boolean;
|
|
24
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var r=(e=>(e.Auto="auto",e.Desktop="desktop",e.Drawer="drawer",e))(r||{});exports.ChatLayoutVariant=r;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { SidebarWrapperStyledProps, ChatCommonStyledProps, SidebarToggleButtonStyledProps } from './ChatContainer.types';
|
|
2
|
+
export declare const MainWrapperStyled: import('react').ForwardRefExoticComponent<Omit<ChatCommonStyledProps, "ref"> & import('react').RefAttributes<HTMLDivElement>>;
|
|
3
|
+
export declare const MainHeaderStyled: (props: ChatCommonStyledProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
4
|
+
export declare const BodyStyled: (props: ChatCommonStyledProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
5
|
+
export declare const SidebarWrapperStyled: (props: SidebarWrapperStyledProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
6
|
+
export declare const SidebarStyled: (props: ChatCommonStyledProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
7
|
+
export declare const SidebarHeaderStyled: (props: ChatCommonStyledProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
8
|
+
export declare const ContentStyled: (props: ChatCommonStyledProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
9
|
+
export declare const SidebarToggleButtonStyled: (props: SidebarToggleButtonStyledProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("@emotion/react/jsx-runtime"),q=require("react"),u=require("../../../utils/helpers.js");require("../../core/Breadcrumbs/Breadcrumbs.js");const c=require("../../core/Button/Button.js");require("../../core/Dropdown/Dropdown.js");require("../../core/Dropdown/hooks/useDropdown.js");require("../../core/DropdownItem/DropdownItem.js");require("../../core/Form/Form.js");require("../../core/Icon/Icon.js");require("../../core/Image/Image.js");require("../../core/InlineNotification/InlineNotification.js");require("../../core/Input/Input.js");require("../../core/InputFile/InputFile.js");require("../../core/Label/Label.js");require("../../core/Link/Link.js");require("../../core/List/List.js");require("../../core/Loader/Loader.js");require("../../core/Menu/Menu.js");require("../../core/Modal/Modal.js");require("../../core/Portal/Portal.js");require("../../core/Scroll/Scroll.js");require("../../core/Select/Select.js");require("../../core/Separator/Separator.js");require("../../core/Skeleton/Skeleton.js");require("../../core/Slider/SliderStyled.js");require("../../core/Slider/Slider.js");require("../../core/Snackbar/Snackbar.js");require("../../../hooks/useTheme/useTheme.js");require("../../core/Snackbar/SnackbarStyled.js");require("../../core/Snackbar/constants.js");require("../../core/Switch/Switch.js");require("../../core/Toggle/Toggle.js");require("../../core/Tooltip/Tooltip.js");require("../../core/Typography/Typography.js");require("../../core/Wrapper/Wrapper.js");require("../../core/Textarea/Textarea.js");require("../FlexContainer/FlexContainer.js");require("../Column/Column.js");require("../Row/Row.js");require("./ChatContainer.js");require("../../domainSpecific/Accordion/hooks/useAccordion.js");require("../../domainSpecific/Avatar/Avatar.js");require("../../domainSpecific/Card/Card.js");require("../../domainSpecific/Carousel/Carousel.js");require("../../domainSpecific/ChatBubble/ChatBubble.js");require("../../domainSpecific/ContentCarousel/ContentCarousel.js");require("../../domainSpecific/Counter/Counter.js");require("../../domainSpecific/DragAndDropFiles/DragAndDropFiles.js");require("../../domainSpecific/Header/Header.js");require("../../domainSpecific/Price/Price.js");require("../../domainSpecific/ProgressBar/ProgressBar.js");require("../../domainSpecific/RadioGroup/RadioGroup.js");require("../../domainSpecific/Rating/Rating.js");require("../../domainSpecific/Search/Search.js");require("../../domainSpecific/SearchModal/SearchModal.js");require("../../domainSpecific/Stepper/Stepper.js");require("../../domainSpecific/Tabs/Tabs.js");require("../../widget/DragAndDrop/DragAndDrop.js");require("../../templates/SkeletonSearch/SkeletonSearch.js");const d=q.forwardRef((r,e)=>{const{theme:t={},styles:s={},...o}=r,n=[u.get(t,"chat.wrapper.default",{}),s];return i.jsx("div",{css:n,...o,ref:e})}),a=r=>{const{theme:e={},...t}=r,s=u.get(e,"chat.mainHeader",{});return i.jsx("header",{css:s,...t})},l=r=>{const{theme:e={},...t}=r,s=u.get(e,"chat.body",{});return i.jsx("div",{css:s,...t})},p=r=>{const{theme:e={},$variant:t,...s}=r,o=[u.get(e,"chat.sidebarWrapper.default",{}),u.get(e,["chat","sidebarWrapper",t],{})];return i.jsx("div",{css:o,...s})},S=r=>{const{theme:e={},...t}=r,s=u.get(e,"chat.sidebar",{});return i.jsx("aside",{css:s,...t})},y=r=>{const{theme:e={},...t}=r,s=u.get(e,"chat.sidebarHeader",{});return i.jsx("header",{css:s,...t})},h=r=>{const{theme:e={},styles:t={},...s}=r,o=[u.get(e,"chat.content.default",{}),t];return i.jsx("main",{css:o,...s})},g=r=>{const{theme:e={},$open:t,...s}=r,o=t?u.get(e,"chat.toggleButton.open"):{},n={...u.get(e,"chat.toggleButton.default"),...o};return i.jsx(c.Button,{...s,styles:n})};exports.BodyStyled=l;exports.ContentStyled=h;exports.MainHeaderStyled=a;exports.MainWrapperStyled=d;exports.SidebarHeaderStyled=y;exports.SidebarStyled=S;exports.SidebarToggleButtonStyled=g;exports.SidebarWrapperStyled=p;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t="ChatContainer";exports.COMPONENT_NAME=t;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export * from './ChatContainer';
|
|
2
|
-
export * from './types';
|
|
2
|
+
export * from './ChatContainer.types';
|
|
@@ -1,4 +1,2 @@
|
|
|
1
1
|
import { ColumnProps } from './Column.types';
|
|
2
|
-
export declare const Column: import('react').ForwardRefExoticComponent<ColumnProps &
|
|
3
|
-
children?: import('react').ReactNode | undefined;
|
|
4
|
-
} & import('react').RefAttributes<HTMLDivElement>>;
|
|
2
|
+
export declare const Column: import('react').ForwardRefExoticComponent<ColumnProps & import('react').RefAttributes<HTMLDivElement>>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const f=require("@emotion/react/jsx-runtime"),y=require("react"),N=require("../../../hooks/useTheme/useTheme.js"),g=require("../../../tokens/utils.js"),e=require("./constants.js"),q=require("./ColumnStyled.js"),t=y.forwardRef((r,s)=>{const{theme:n}=N.useTheme(),{children:i,gutter:u=0,isReversed:o=!1,align:l="stretch",justify:c="start",isWrap:a=!0,flex:d,...m}=r;return f.jsx(q.ColumnStyled,{"data-testid":e.COMPONENT_NAME,ref:s,theme:n,$isReversed:o,$gutter:u,$align:l,$justify:c,$isWrap:a,$flex:d,...g.convertToInlineBoxStyles(m),children:i})});t.displayName=e.COMPONENT_NAME;exports.Column=t;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
1
|
+
import { PropsWithChildren } from 'react';
|
|
2
|
+
import { BoxCssComponentProps, BoxCssComponentStyledProps, FlexElementProps, FlexElementStyledProps } from '../..';
|
|
3
|
+
export interface ColumnProps extends BoxCssComponentProps, FlexElementProps, PropsWithChildren {
|
|
3
4
|
}
|
|
4
|
-
export interface
|
|
5
|
+
export interface ColumnStyledProps extends BoxCssComponentStyledProps, FlexElementStyledProps, PropsWithChildren {
|
|
5
6
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const g=require("@emotion/react/jsx-runtime"),p=require("react"),x=require("../../../utils/helpers.js"),e=require("../../../utils/layout.js"),S=require("../../../tokens/utils.js"),$=p.forwardRef((r,s)=>{const{theme:{column:l}={},$isWrap:u,$align:o,$justify:n,$gutter:c,$flex:t,$isReversed:i,styles:a,...f}=r,{boxStyles:y,restProps:m}=S.getBoxStyles(f),d=[x.get(l,"default",{}),{flexDirection:i?"column-reverse":"column",flexWrap:u?"wrap":"nowrap",alignItems:e.calculateAlign(o),justifyContent:e.calculateJustify(n),gap:e.calculateGutter(c)},y,t?{flex:t}:{},a];return g.jsx("div",{css:d,...m,ref:s})});exports.ColumnStyled=$;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const COMPONENT_NAME = "
|
|
1
|
+
export declare const COMPONENT_NAME = "Column";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e="Column";exports.COMPONENT_NAME=e;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const x=require("@emotion/react/jsx-runtime"),d=require("react"),m=require("../../../hooks/useTheme/useTheme.js"),y=require("../../../tokens/utils.js"),N=require("../../../types/layout.js"),e=require("./constants.js"),q=require("./FlexContainerStyled.js"),t=d.forwardRef((r,n)=>{const{className:o="",flexDirection:s=N.FlexDirection.Column,styles:i,children:l,gap:c,...a}=r,{theme:u}=m.useTheme();return x.jsx(q.FlexContainerStyled,{ref:n,theme:u,className:o,$flexDirection:s,$gap:c,styles:i,"data-testid":e.COMPONENT_NAME,...y.convertToInlineBoxStyles(a),children:l})});t.displayName=e.COMPONENT_NAME;exports.FlexContainer=t;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { PropsWithChildren } from 'react';
|
|
2
|
-
import { BoxCssComponentProps, BoxCssComponentStyledProps
|
|
3
|
-
import { EnumOrPrimitive } from '../../../types';
|
|
4
|
-
export interface FlexContainerProps extends BoxCssComponentProps
|
|
2
|
+
import { BoxCssComponentProps, BoxCssComponentStyledProps } from '../..';
|
|
3
|
+
import { EnumOrPrimitive, FlexDirection } from '../../../types';
|
|
4
|
+
export interface FlexContainerProps extends BoxCssComponentProps, PropsWithChildren {
|
|
5
5
|
flexDirection?: EnumOrPrimitive<FlexDirection>;
|
|
6
6
|
gap?: string;
|
|
7
7
|
}
|
|
8
|
-
export interface FlexContainerStyledProps extends BoxCssComponentStyledProps
|
|
8
|
+
export interface FlexContainerStyledProps extends BoxCssComponentStyledProps, PropsWithChildren {
|
|
9
9
|
$flexDirection?: EnumOrPrimitive<FlexDirection>;
|
|
10
10
|
$gap?: string;
|
|
11
11
|
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { FlexContainerStyledProps } from './FlexContainer.types';
|
|
2
|
-
export declare const FlexContainerStyled: (
|
|
2
|
+
export declare const FlexContainerStyled: import('react').ForwardRefExoticComponent<Omit<FlexContainerStyledProps, "ref"> & import('react').RefAttributes<HTMLDivElement>>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("@emotion/react/jsx-runtime"),d=require("react"),x=require("../../../utils/helpers.js"),y=require("../../../tokens/utils.js"),f=d.forwardRef((r,s)=>{const{theme:{flexContainer:o}={},styles:n,$flexDirection:e,$gap:t,...l}=r,{boxStyles:i,restProps:c}=y.getBoxStyles(l),u=[x.get(o,"default",{}),i,e?{flexDirection:e}:{},t?{gap:t}:{},n];return a.jsx("div",{css:u,...c,ref:s})});exports.FlexContainerStyled=f;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e="FlexContainer";exports.COMPONENT_NAME=e;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../../../tokens/values.js"),l=(r,a)=>{switch(r){case"sm":return a?e.values.responsiveSmall:e.values.screenSmall;case"md":return a?e.values.responsiveMedium:e.values.screenMedium;case"lg":return a?e.values.responsiveLarge:e.values.screenLarge;case"xl":return a?e.values.responsiveXLarge:e.values.screenXLarge;default:return"100%"}};exports.calculateMaxWidth=l;
|
|
@@ -1,5 +1,3 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
2
|
import { RowProps } from './Row.types';
|
|
3
|
-
export declare const Row: React.ForwardRefExoticComponent<RowProps &
|
|
4
|
-
children?: React.ReactNode | undefined;
|
|
5
|
-
} & React.RefAttributes<HTMLDivElement>>;
|
|
3
|
+
export declare const Row: React.ForwardRefExoticComponent<RowProps & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const y=require("@emotion/react/jsx-runtime"),R=require("react"),N=require("../../../hooks/useTheme/useTheme.js"),g=require("../../../tokens/utils.js"),m=require("./RowStyled.js"),e=require("./constants.js"),t=R.forwardRef((r,s)=>{const{children:i,gutter:n=0,align:o="stretch",justify:u="start",isWrap:c=!0,isReversed:l=!1,flex:a,...d}=r,{theme:f}=N.useTheme();return y.jsx(m.RowStyled,{ref:s,theme:f,$isReversed:l,$gutter:n,$align:o,$justify:u,$isWrap:c,$flex:a,"data-testid":e.COMPONENT_NAME,...g.convertToInlineBoxStyles(d),children:i})});t.displayName=e.COMPONENT_NAME;exports.Row=t;
|