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
|
@@ -1,16 +1,15 @@
|
|
|
1
|
-
import { PropsWithChildren
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import { PropsWithChildren } from 'react';
|
|
2
|
+
import { OnSelectProps, CommonCssComponentStyledProps } from '../..';
|
|
3
|
+
import { Theme } from '../../../hooks';
|
|
4
4
|
export interface DropdownItemProps<T> extends PropsWithChildren {
|
|
5
|
+
theme?: Theme;
|
|
5
6
|
onSelect?: (props: OnSelectProps) => T;
|
|
6
7
|
disabled?: boolean;
|
|
7
|
-
children: ReactNode;
|
|
8
8
|
value?: unknown;
|
|
9
9
|
itemIndex?: number;
|
|
10
10
|
name?: string;
|
|
11
11
|
customClass?: string;
|
|
12
|
-
theme?: Theme;
|
|
13
12
|
}
|
|
14
|
-
export interface
|
|
15
|
-
|
|
13
|
+
export interface DropdownItemStyledProps extends CommonCssComponentStyledProps {
|
|
14
|
+
$disabled?: boolean;
|
|
16
15
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("@emotion/react/jsx-runtime"),u=require("react"),t=require("../../../utils/helpers.js"),a=u.forwardRef((s,r)=>{const{theme:{select:e}={},$disabled:o,...c}=s,l=t.get(e,"item.default",{}),d=t.get(e,"item.disabled",{}),n=[l,o?d:{}];return i.jsx("div",{css:n,...c,ref:r})});exports.DropdownItemStyled=a;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e="DropdownItem";exports.COMPONENT_NAME=e;
|
|
@@ -1,5 +1,2 @@
|
|
|
1
1
|
import { FormProps } from './Form.types';
|
|
2
|
-
declare const Form: import('react').ForwardRefExoticComponent<FormProps &
|
|
3
|
-
children?: import('react').ReactNode | undefined;
|
|
4
|
-
} & import('react').RefAttributes<HTMLFormElement>>;
|
|
5
|
-
export default Form;
|
|
2
|
+
export declare const Form: import('react').ForwardRefExoticComponent<FormProps & import('react').RefAttributes<HTMLFormElement>>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const T=require("@emotion/react/jsx-runtime"),a=require("react"),s=require("../../../utils/helpers.js"),j=require("../../../hooks/useTheme/useTheme.js"),m=require("./constants.js"),n=require("./utils.js"),q=require("./FormStyled.js"),b=a.forwardRef((d,h)=>{const{children:f,ariaLabelBy:c,describedBy:l,role:i,onSubmit:r,onChange:o,...g}=d,{theme:y}=j.useTheme(),O=a.useCallback(e=>{if(!o)return;const t=s.get(e,"target"),N=n.transformFormDataToObjectWithValues(s.get(t,"form")),u=n.transformFormElementDataToObjectWithValues(t);o({event:e,changedControlNames:Object.keys(u),controlValues:u,formData:N})},[o]),C=a.useCallback(e=>{if(!r)return;const t=n.transformFormDataToObjectWithValues(s.get(e,"target"));r({event:e,formData:t})},[r]);return T.jsx(q.FormStyled,{ref:h,onSubmit:C,onChange:O,theme:y,"data-testid":m.COMPONENT_NAME,...c?{"aria-labelledby":c}:{},...l?{"aria-describedby":l}:{},...i?{"aria-role":i}:{},...g,children:f})});b.displayName=m.COMPONENT_NAME;exports.Form=b;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { FormEvent } from 'react';
|
|
2
|
-
import {
|
|
1
|
+
import { FormEvent, PropsWithChildren } from 'react';
|
|
2
|
+
import { CommonCssComponentProps, CommonCssComponentStyledProps } from '../..';
|
|
3
3
|
export type FormFieldValue = string | number | boolean;
|
|
4
4
|
export type FormFieldsData = Record<string, {
|
|
5
5
|
value: FormFieldValue;
|
|
@@ -15,10 +15,15 @@ export type FormOnSubmitEventData = {
|
|
|
15
15
|
event: FormEvent<Element>;
|
|
16
16
|
formData: FormFieldsData;
|
|
17
17
|
};
|
|
18
|
-
export interface
|
|
19
|
-
onSubmit?: (formOnSubmitEventData: FormOnSubmitEventData) => void;
|
|
20
|
-
onChange?: (formOnChangeEventData: FormOnChangeEventData) => void;
|
|
18
|
+
export interface FormAriaProps {
|
|
21
19
|
ariaLabelBy?: string;
|
|
22
20
|
describedBy?: string;
|
|
23
|
-
|
|
21
|
+
}
|
|
22
|
+
export interface FormEventHandlers {
|
|
23
|
+
onFormSubmit?: (formOnSubmitEventData: FormOnSubmitEventData) => void;
|
|
24
|
+
onFormChange?: (formOnChangeEventData: FormOnChangeEventData) => void;
|
|
25
|
+
}
|
|
26
|
+
export interface FormProps extends CommonCssComponentProps<HTMLFormElement>, FormAriaProps, FormEventHandlers, PropsWithChildren {
|
|
27
|
+
}
|
|
28
|
+
export interface FormStyledProps extends CommonCssComponentStyledProps<HTMLFormElement>, PropsWithChildren {
|
|
24
29
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("@emotion/react/jsx-runtime"),n=require("react"),u=require("../../../utils/helpers.js"),l=n.forwardRef((e,t)=>{const{theme:{form:r}={},styles:s={}}=e,o=[u.get(r,"default",{}),s];return c.jsx("form",{css:o,...e,ref:t})});exports.FormStyled=l;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e="Form";exports.COMPONENT_NAME=e;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export
|
|
1
|
+
export * from './Form';
|
|
2
2
|
export * from './Form.types';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../../../utils/helpers.js");require("react");const i=require("../../../types/input.js"),u=require("../../../types/button.js"),l=r=>Array.from(e.get(r,"elements",[])).reduce((a,t)=>m(t,a),{}),m=(r,s={})=>{const a=e.get(r,"tagName","").toLowerCase(),t=e.get(r,"name"),c=e.get(r,"type"),o=e.get(r,"checked"),n=e.get(r,"value");if(!(a===u.ButtonTypes.Button||c===u.ButtonTypes.Submit||!t))switch(c){case i.InputVariantType.Checkbox:e.set(s,t,{value:n,isChecked:o});break;case i.InputVariantType.Radio:o&&e.set(s,t,{value:n,isChecked:o}),e.get(s,[t,"isChecked"],!1)||e.set(s,t,{value:"",isChecked:o});break;default:e.set(s,t,{value:n});break}return s};exports.transformFormDataToObjectWithValues=l;exports.transformFormElementDataToObjectWithValues=m;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const d=require("@emotion/react/jsx-runtime"),h=require("react"),n=require("../../../utils/helpers.js"),N=require("../../../hooks/useTheme/useTheme.js"),r=require("./constants.js");let c={};const C=e=>{c={...c,...e}},u=h.forwardRef((e,a)=>{const{name:t,width:g,height:m,fill:s,fillSvg:o,...f}=e,{theme:I}=N.useTheme(),i=n.get(I,"colors",{}),l={...r.IconsList,...c}[t];return l?d.jsx(l,{ref:a,"data-testid":`${r.COMPONENT_NAME}-${t}`,width:g,height:m,fill:s&&n.get(i,s,s),fillSvg:o&&n.get(i,o,o),...f}):(console.warn(`Icon "${String(t)}" not found.`),null)});u.displayName=r.COMPONENT_NAME;exports.Icon=u;exports.registerCustomIcons=C;
|
|
@@ -6,32 +6,33 @@ export declare const IconsList: {
|
|
|
6
6
|
fillSvg?: string | undefined;
|
|
7
7
|
fill?: string | undefined;
|
|
8
8
|
}) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
9
|
-
success: ({ width, height,
|
|
9
|
+
success: ({ width, height, fillSvg, fill, ...rest }: {
|
|
10
10
|
[x: string]: any;
|
|
11
11
|
width?: number | undefined;
|
|
12
12
|
height?: number | undefined;
|
|
13
|
-
color?: string | undefined;
|
|
14
13
|
fillSvg?: string | undefined;
|
|
14
|
+
fill?: string | undefined;
|
|
15
15
|
}) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
16
|
-
error: ({ width, height,
|
|
16
|
+
error: ({ width, height, fillSvg, fill, ...rest }: {
|
|
17
17
|
[x: string]: any;
|
|
18
18
|
width?: number | undefined;
|
|
19
19
|
height?: number | undefined;
|
|
20
|
-
color?: string | undefined;
|
|
21
20
|
fillSvg?: string | undefined;
|
|
21
|
+
fill?: string | undefined;
|
|
22
22
|
}) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
23
|
-
warning: ({ width, height,
|
|
23
|
+
warning: ({ width, height, fillSvg, fill, ...rest }: {
|
|
24
24
|
[x: string]: any;
|
|
25
25
|
width?: number | undefined;
|
|
26
26
|
height?: number | undefined;
|
|
27
|
-
color?: string | undefined;
|
|
28
27
|
fillSvg?: string | undefined;
|
|
28
|
+
fill?: string | undefined;
|
|
29
29
|
}) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
30
|
-
info: ({ width, height,
|
|
30
|
+
info: ({ width, height, fillSvg, fill, ...rest }: {
|
|
31
31
|
[x: string]: any;
|
|
32
32
|
width?: number | undefined;
|
|
33
33
|
height?: number | undefined;
|
|
34
|
-
|
|
34
|
+
fillSvg?: string | undefined;
|
|
35
|
+
fill?: string | undefined;
|
|
35
36
|
}) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
36
37
|
dot: ({ width, height, fillSvg, fill, ...rest }: {
|
|
37
38
|
[x: string]: any;
|
|
@@ -264,5 +265,40 @@ export declare const IconsList: {
|
|
|
264
265
|
fillSvg?: string | undefined;
|
|
265
266
|
fill?: string | undefined;
|
|
266
267
|
}) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
268
|
+
volumeUp: ({ width, height, fillSvg, fill, ...rest }: {
|
|
269
|
+
[x: string]: any;
|
|
270
|
+
width?: number | undefined;
|
|
271
|
+
height?: number | undefined;
|
|
272
|
+
fillSvg?: string | undefined;
|
|
273
|
+
fill?: string | undefined;
|
|
274
|
+
}) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
275
|
+
contentCopy: ({ width, height, fillSvg, fill, ...rest }: {
|
|
276
|
+
[x: string]: any;
|
|
277
|
+
width?: number | undefined;
|
|
278
|
+
height?: number | undefined;
|
|
279
|
+
fillSvg?: string | undefined;
|
|
280
|
+
fill?: string | undefined;
|
|
281
|
+
}) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
282
|
+
thumbUp: ({ width, height, fillSvg, fill, ...rest }: {
|
|
283
|
+
[x: string]: any;
|
|
284
|
+
width?: number | undefined;
|
|
285
|
+
height?: number | undefined;
|
|
286
|
+
fillSvg?: string | undefined;
|
|
287
|
+
fill?: string | undefined;
|
|
288
|
+
}) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
289
|
+
thumbDown: ({ width, height, fillSvg, fill, ...rest }: {
|
|
290
|
+
[x: string]: any;
|
|
291
|
+
width?: number | undefined;
|
|
292
|
+
height?: number | undefined;
|
|
293
|
+
fillSvg?: string | undefined;
|
|
294
|
+
fill?: string | undefined;
|
|
295
|
+
}) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
296
|
+
fileCopy: ({ width, height, fillSvg, fill, ...rest }: {
|
|
297
|
+
[x: string]: any;
|
|
298
|
+
width?: number | undefined;
|
|
299
|
+
height?: number | undefined;
|
|
300
|
+
fillSvg?: string | undefined;
|
|
301
|
+
fill?: string | undefined;
|
|
302
|
+
}) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
267
303
|
};
|
|
268
304
|
export declare const COMPONENT_NAME = "Icon";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../../../assets/icons/star.js"),o=require("../../../assets/icons/cross.js"),r=require("../../../assets/icons/toast_success.js"),n=require("../../../assets/icons/toast_warning.js"),t=require("../../../assets/icons/toast_error.js"),c=require("../../../assets/icons/toast_info.js"),i=require("../../../assets/icons/dot.js"),s=require("../../../assets/icons/check.js"),u=require("../../../assets/icons/attachment.js"),a=require("../../../assets/icons/arrow-down.js"),l=require("../../../assets/icons/chevron-right.js"),I=require("../../../assets/icons/chevron-left.js"),q=require("../../../assets/icons/mobile_menu_button.js"),p=require("../../../assets/icons/home.js"),h=require("../../../assets/icons/slash.js"),d=require("../../../assets/icons/arrow-forward.js"),m=require("../../../assets/icons/local_shipping.js"),g=require("../../../assets/icons/favorite.js"),f=require("../../../assets/icons/favorite_outlined.js"),w=require("../../../assets/icons/delete_outlined.js"),C=require("../../../assets/icons/account_circle.js"),O=require("../../../assets/icons/shopping_bag.js"),y=require("../../../assets/icons/error_outline.js"),_=require("../../../assets/icons/starOutlined.js"),b=require("../../../assets/icons/minus.js"),v=require("../../../assets/icons/plus.js"),T=require("../../../assets/icons/filter.js"),S=require("../../../assets/icons/ruler.js"),F=require("../../../assets/icons/processing.js"),M=require("../../../assets/icons/paymentCard.js");require("@emotion/react/jsx-runtime");const D=require("../../../assets/icons/eye.js"),E=require("../../../assets/icons/upload.js"),P=require("../../../assets/icons/search.js"),U=require("../../../assets/icons/wifiTethering.js"),A=require("../../../assets/icons/portrait.js"),L=require("../../../assets/icons/folder.js"),N=require("../../../assets/icons/folderOpen.js"),R=require("../../../assets/icons/edit.js"),k=require("../../../assets/icons/volume-up.js"),B=require("../../../assets/icons/content-copy.js"),W=require("../../../assets/icons/thumb-up.js"),j=require("../../../assets/icons/thumb-down.js"),H=require("../../../assets/icons/file-copy.js"),V={cross:o.CrossIcon,success:r.ToastSuccessIcon,error:t.ToastErrorIcon,warning:n.ToastWarningIcon,info:c.ToastInfoIcon,dot:i.DotIcon,check:s.CheckIcon,arrowDown:a.ArrowDownIcon,arrowRight:l.ChevronRightIcon,arrowLeft:I.ChevronLeftIcon,mobileMenu:q.MobileMenuIcon,home:p.HomeIcon,slash:h.SlashIcon,arrowForward:d.ArrowForwardIcon,localShipping:m.LocalShippingIcon,favorite:g.FavoriteIcon,favoriteOutlined:f.FavoriteOutlinedIcon,deleteOutlined:w.DeleteOutlinedIcon,accountCircle:C.AccountCircleIcon,shoppingBag:O.ShoppingBagIcon,errorOutline:y.ErrorOutlineIcon,star:e.StarIcon,starOutlined:_.StarOutlinedIcon,minus:b.MinusIcon,plus:v.PlusIcon,filter:T.FilterIcon,ruler:S.RulerIcon,processing:F.ProcessingIcon,paymentCard:M.PaymentCardIcon,eye:D.EyeIcon,attachment:u.AttachmentIcon,upload:E.UploadIcon,folder:L.FolderIcon,folderOpen:N.FolderOpenIcon,wifiTethering:U.WifiTetheringIcon,portrait:A.PortraitIcon,search:P.SearchIcon,edit:R.EditIcon,volumeUp:k.VolumeUpIcon,contentCopy:B.ContentCopyIcon,thumbUp:W.ThumbUpIcon,thumbDown:j.ThumbDownIcon,fileCopy:H.FileCopyIcon},x="Icon";exports.COMPONENT_NAME=x;exports.IconsList=V;
|
|
@@ -1,3 +1,2 @@
|
|
|
1
1
|
import { ImageProps } from './Image.types';
|
|
2
|
-
declare const Image: (
|
|
3
|
-
export default Image;
|
|
2
|
+
export declare const Image: import('react').ForwardRefExoticComponent<ImageProps & import('react').RefAttributes<HTMLImageElement>>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("@emotion/react/jsx-runtime"),N=require("react"),P=require("../../../hooks/useTheme/useTheme.js"),f=require("../Skeleton/Skeleton.js"),t=require("./constants.js"),a=require("./ImageStyled.js"),h=N.forwardRef((g,m)=>{const{id:p,src:E,alt:M,width:i,height:n,placeholder:c,caption:l,onClick:O,onLoad:r,onError:o,objectFit:S,styles:y,...C}=g,[d,u]=N.useState(!0),{theme:s}=P.useTheme(),j=()=>{u(!1),r==null||r()},T=()=>{u(!1),o==null||o()};return e.jsxs(a.ImageWrapperStyled,{"data-testid":`${t.COMPONENT_NAME}-wrapper`,id:p,width:i,height:n,theme:s,...C,children:[d&&c&&e.jsx(a.PlaceholderStyled,{"data-testid":`${t.COMPONENT_NAME}-placeholder`,theme:s,children:e.jsx(f.Skeleton,{height:"100%",children:c})}),e.jsx(a.ImageStyled,{"data-testid":t.COMPONENT_NAME,theme:s,src:E,alt:M,width:i,height:n,objectFit:S,$isLoading:d,onLoad:j,onError:T,onClick:O,styles:y,ref:m}),l&&e.jsx(a.CaptionStyled,{"data-testid":`${t.COMPONENT_NAME}-caption`,theme:s,children:l})]})});h.displayName=t.COMPONENT_NAME;exports.Image=h;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
export interface ImageProps extends CommonComponentProps {
|
|
1
|
+
import { CommonCssComponentProps, CommonCssComponentStyledProps } from '../..';
|
|
2
|
+
export interface ImageProps extends CommonCssComponentProps {
|
|
4
3
|
id?: string;
|
|
5
4
|
src?: string;
|
|
6
5
|
alt?: string;
|
|
@@ -10,18 +9,18 @@ export interface ImageProps extends CommonComponentProps {
|
|
|
10
9
|
placeholder?: string;
|
|
11
10
|
caption?: string;
|
|
12
11
|
onClick?: () => void;
|
|
12
|
+
onError?: () => void;
|
|
13
|
+
onLoad?: () => void;
|
|
13
14
|
objectFit?: 'cover' | 'contain' | 'fill' | 'none' | 'scale-down';
|
|
14
15
|
}
|
|
15
|
-
export interface
|
|
16
|
-
theme: Theme;
|
|
16
|
+
export interface ImageWrapperStyledProps extends Pick<ImageProps, 'width' | 'height' | 'id' | 'className'>, CommonCssComponentStyledProps {
|
|
17
17
|
}
|
|
18
|
-
export interface
|
|
19
|
-
theme: Theme;
|
|
18
|
+
export interface ImageStyledProps extends Pick<ImageProps, 'objectFit'>, CommonCssComponentStyledProps<HTMLImageElement> {
|
|
20
19
|
$isLoading?: boolean;
|
|
20
|
+
src?: string;
|
|
21
|
+
alt?: string;
|
|
22
|
+
width?: number;
|
|
23
|
+
height?: number;
|
|
21
24
|
}
|
|
22
|
-
export
|
|
23
|
-
|
|
24
|
-
}
|
|
25
|
-
export interface StyledImageCaptionProps {
|
|
26
|
-
theme: Theme;
|
|
27
|
-
}
|
|
25
|
+
export type ImagePlaceholderStyledProps = CommonCssComponentStyledProps;
|
|
26
|
+
export type ImageCaptionStyledProps = CommonCssComponentStyledProps;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { ImageWrapperStyledProps, ImageStyledProps, ImagePlaceholderStyledProps, ImageCaptionStyledProps } from './Image.types';
|
|
2
|
+
export declare const ImageWrapperStyled: (props: ImageWrapperStyledProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
3
|
+
export declare const ImageStyled: import('react').ForwardRefExoticComponent<Omit<ImageStyledProps, "ref"> & import('react').RefAttributes<HTMLImageElement>>;
|
|
4
|
+
export declare const PlaceholderStyled: (props: ImagePlaceholderStyledProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
5
|
+
export declare const CaptionStyled: (props: ImageCaptionStyledProps) => 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"),d=require("react"),c=require("../../../utils/helpers.js"),l=s=>{const{width:e,height:t,theme:{image:r}={},...i}=s,n=[c.get(r,"wrapper",{}),{width:`${e?`${e}px`:"100%"}`,height:`${t?`${t}px`:"100%"}`}];return o.jsx("div",{css:n,...i})},p=d.forwardRef((s,e)=>{const{objectFit:t="cover",$isLoading:r,theme:{image:i}={},...n}=s,a=[c.get(i,"default",{}),{objectFit:t,opacity:`${r?0:1}`}];return o.jsx("img",{css:a,...n,ref:e})}),g=s=>{const{theme:{image:e}={},...t}=s,r=[c.get(e,"placeholder",{})];return o.jsx("div",{css:r,...t})},m=s=>{const{theme:{image:e}={},...t}=s,r=[c.get(e,"caption",{})];return o.jsx("figcaption",{css:r,...t})};exports.CaptionStyled=m;exports.ImageStyled=p;exports.ImageWrapperStyled=l;exports.PlaceholderStyled=g;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e="Image";exports.COMPONENT_NAME=e;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export
|
|
1
|
+
export * from './Image';
|
|
2
2
|
export * from './Image.types';
|
|
@@ -1,4 +1,2 @@
|
|
|
1
1
|
import { InlineNotificationProps } from './InlineNotification.types';
|
|
2
|
-
export declare const InlineNotification: import('react').ForwardRefExoticComponent<InlineNotificationProps &
|
|
3
|
-
children?: import('react').ReactNode | undefined;
|
|
4
|
-
} & import('react').RefAttributes<HTMLDivElement>>;
|
|
2
|
+
export declare const InlineNotification: import('react').ForwardRefExoticComponent<InlineNotificationProps & import('react').RefAttributes<HTMLDivElement>>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("@emotion/react/jsx-runtime"),q=require("react"),l=require("../../../utils/helpers.js"),v=require("../../../utils/common.js"),I=require("../../../hooks/useTheme/useTheme.js"),O=require("../Icon/Icon.js"),e=require("./constants.js"),u=require("./InlineNotificationStyled.js"),N=q.forwardRef((d,m)=>{const{variant:i=e.DEFAULT_VARIANT,className:f,styles:T,children:n,...y}=d,{theme:s}=I.useTheme(),t=l.get(s,["inlineNotification",i,"icon"],{name:""}),a=v.isChildPrimitive(n),{ariaLive:o,role:c}=l.get(e.accessibilityValues,i,e.accessibilityValues.default);return r.jsxs(u.InlineNotificationStyled,{ref:m,"data-testid":e.COMPONENT_NAME,$variant:i,className:f,styles:T,theme:s,...o?{"aria-live":o}:{},...c?{role:c}:{},...y,children:[(t==null?void 0:t.name)&&r.jsx(O.Icon,{...t}),a&&r.jsx(u.InlineNotificationMessageStyled,{"data-testid":e.CONTENT_COMPONENT,$variant:i,theme:s,children:n}),!a&&n]})});N.displayName=e.COMPONENT_NAME;exports.InlineNotification=N;
|
|
@@ -5,5 +5,5 @@ export interface InlineNotificationProps extends CommonCssComponentProps, PropsW
|
|
|
5
5
|
variant?: InlineNotificationVariant;
|
|
6
6
|
}
|
|
7
7
|
export interface InlineNotificationsStyledProps<T = HTMLDivElement> extends CommonCssComponentStyledProps<T>, PropsWithChildren {
|
|
8
|
-
$variant
|
|
8
|
+
$variant: InlineNotificationVariant;
|
|
9
9
|
}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { InlineNotificationsStyledProps } from './InlineNotification.types';
|
|
2
|
-
export declare const InlineNotificationStyled: (
|
|
2
|
+
export declare const InlineNotificationStyled: import('react').ForwardRefExoticComponent<Omit<InlineNotificationsStyledProps<HTMLDivElement>, "ref"> & import('react').RefAttributes<HTMLDivElement>>;
|
|
3
3
|
export declare const InlineNotificationMessageStyled: (props: InlineNotificationsStyledProps<HTMLSpanElement>) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("@emotion/react/jsx-runtime"),d=require("react"),n=require("../../../utils/helpers.js"),f=d.forwardRef((s,t)=>{const{theme:{inlineNotification:e}={},$variant:i,styles:o={},...c}=s,r=n.get(e,"default.wrapper",{}),a=n.get(e,[i,"wrapper"],{}),u=[r,a,o];return l.jsx("div",{css:u,...c,ref:t})}),y=s=>{const{theme:{inlineNotification:t}={},$variant:e,styles:i={},...o}=s,c=n.get(t,"default.content",{}),r=n.get(t,[e,"content"],{}),a=[c,r,i];return l.jsx("span",{css:a,...o})};exports.InlineNotificationMessageStyled=y;exports.InlineNotificationStyled=f;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a="InlineNotification",t="InlineNotificationComponent",e={ariaLive:"polite",role:"status"},i={ariaLive:"assertive",role:"alert"},s={default:e,success:e,info:e,error:i,warning:i},r="basic";exports.COMPONENT_NAME=a;exports.CONTENT_COMPONENT=t;exports.DEFAULT_VARIANT=r;exports.accessibilityValues=s;exports.defaultAriaValues=e;exports.errorAriaValues=i;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("@emotion/react/jsx-runtime"),U=require("react"),C=require("../../../hooks/useTheme/useTheme.js"),w=require("../../../types/common.js"),e=require("./constants.js"),H=require("./useInputHandlers.js"),d=require("./InputWrapper/InputWrapper.js"),c=require("./InputAdornment/InputAdornment.js"),p=require("./InputHelper/InputHelper.js"),v=require("./InputStyled.js"),P=U.forwardRef((I,O)=>{const{theme:m}=C.useTheme(),{width:E,className:S=e.DEFAULT_PROPS.className,styles:T=e.DEFAULT_PROPS.styles,variant:s=e.DEFAULT_PROPS.variant,color:a=e.DEFAULT_PROPS.color,disabled:_=e.DEFAULT_PROPS.disabled,readOnly:h=e.DEFAULT_PROPS.readOnly,ariaRequired:N=e.DEFAULT_PROPS.ariaRequired,role:A=e.DEFAULT_PROPS.role,tabIndex:b=e.DEFAULT_PROPS.tabIndex,ariaDescribedBy:o,debounceCallbackTime:x,onChange:D,onKeyDown:q,onMouseDown:y,onBlur:R,adornmentStart:i,adornmentEnd:u,label:n,helperText:t,...j}=I,l=!e.FOCUS_EXCLUDED_LIST.includes(s),F=!!(n||t),{handlers:M,isMouseInteraction:L}=H.useInputHandlers({onKeyDown:q,onBlur:R,onMouseDown:y,onChange:D,debounceCallbackTime:x});return r.jsxs(d.InputWrapper,{as:"label",withGap:F,className:S,width:E,styles:T,children:[n&&r.jsx(p.InputHelper,{children:n}),r.jsxs(d.InputWrapper,{children:[i&&r.jsx(c.InputAdornment,{children:i}),r.jsx(v.InputStyled,{$isMouseInteraction:L&&l,$color:a,ref:O,disabled:_,role:A,theme:m,type:s,readOnly:h,tabIndex:b,"aria-required":N,"data-testid":e.COMPONENT_NAME,...M,...o?{"aria-describedby":o}:{},...j}),l&&r.jsxs(r.Fragment,{children:[r.jsx("div",{className:`${e.COMPONENT_NAME}__border`}),r.jsx("div",{className:`${e.COMPONENT_NAME}__outline`})]}),u&&r.jsx(c.InputAdornment,{children:u})]}),t&&r.jsx(p.InputHelper,{color:a,size:w.SizeVariant.Sm,children:t})]})});P.displayName=e.COMPONENT_NAME;exports.Input=P;
|
|
@@ -1,41 +1,12 @@
|
|
|
1
|
-
import { ChangeEvent, FocusEvent, MouseEvent, KeyboardEvent, ReactNode, ElementType } from 'react';
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
export
|
|
5
|
-
Text = "text",
|
|
6
|
-
Password = "password",
|
|
7
|
-
Email = "email",
|
|
8
|
-
Search = "search",
|
|
9
|
-
Url = "url",
|
|
10
|
-
Tel = "tel",
|
|
11
|
-
Date = "date",
|
|
12
|
-
Time = "time",
|
|
13
|
-
Month = "month",
|
|
14
|
-
Week = "week",
|
|
15
|
-
Color = "color",
|
|
16
|
-
Range = "range",
|
|
17
|
-
Number = "number",
|
|
18
|
-
Radio = "radio",
|
|
19
|
-
Checkbox = "checkbox"
|
|
20
|
-
}
|
|
21
|
-
export declare enum InputColorVariant {
|
|
22
|
-
Primary = "primary",
|
|
23
|
-
Success = "success",
|
|
24
|
-
Warning = "warning",
|
|
25
|
-
Error = "error"
|
|
26
|
-
}
|
|
27
|
-
export declare enum InputRole {
|
|
28
|
-
Textbox = "textbox",
|
|
29
|
-
Checkbox = "checkbox",
|
|
30
|
-
Radio = "radio",
|
|
31
|
-
Radiogroup = "radiogroup",
|
|
32
|
-
Combobox = "combobox"
|
|
33
|
-
}
|
|
34
|
-
export interface BaseInputFieldProps extends CommonCoreComponentProps<InputVariantType, InputColorVariant> {
|
|
1
|
+
import { ChangeEvent, FocusEvent, MouseEvent, KeyboardEvent, ReactNode, ElementType, PropsWithChildren } from 'react';
|
|
2
|
+
import { EnumOrPrimitive, InputColorVariant, InputRole, InputVariantType, SizeVariant } from '../../../types';
|
|
3
|
+
import { CommonCssComponentProps, CommonCssComponentStyledProps } from '../..';
|
|
4
|
+
export interface BaseInputFieldProps extends CommonCssComponentProps<HTMLInputElement> {
|
|
35
5
|
readOnly?: boolean;
|
|
36
6
|
id?: string;
|
|
37
7
|
name?: string;
|
|
38
|
-
|
|
8
|
+
variant?: EnumOrPrimitive<InputVariantType>;
|
|
9
|
+
color?: EnumOrPrimitive<InputColorVariant>;
|
|
39
10
|
label?: string;
|
|
40
11
|
placeholder?: string;
|
|
41
12
|
value?: string | number;
|
|
@@ -72,21 +43,31 @@ export type InputFieldProps = (BaseInputFieldProps | RadioButtonProps | Checkbox
|
|
|
72
43
|
adornmentStart?: ReactNode;
|
|
73
44
|
adornmentEnd?: ReactNode;
|
|
74
45
|
};
|
|
75
|
-
export interface
|
|
46
|
+
export interface InputAdornmentProps extends CommonCssComponentProps, PropsWithChildren {
|
|
47
|
+
}
|
|
48
|
+
export interface InputWrapperProps extends CommonCssComponentProps<HTMLBaseElement>, PropsWithChildren {
|
|
76
49
|
as?: keyof HTMLElementTagNameMap | ElementType;
|
|
77
50
|
width?: string;
|
|
78
51
|
withGap?: boolean;
|
|
79
52
|
}
|
|
80
|
-
export interface InputHelperProps extends
|
|
53
|
+
export interface InputHelperProps extends CommonCssComponentProps, PropsWithChildren {
|
|
54
|
+
color?: EnumOrPrimitive<InputColorVariant>;
|
|
81
55
|
size?: EnumOrPrimitive<SizeVariant>;
|
|
82
56
|
}
|
|
83
|
-
export interface
|
|
84
|
-
$
|
|
85
|
-
}
|
|
86
|
-
export interface StyledInputWrapperProps extends CommonStyledComponentProps {
|
|
57
|
+
export interface InputWrapperPropsStyled extends CommonCssComponentStyledProps<HTMLBaseElement>, PropsWithChildren {
|
|
58
|
+
$as?: keyof HTMLElementTagNameMap | ElementType;
|
|
87
59
|
$width?: string;
|
|
88
60
|
$withGap?: boolean;
|
|
89
61
|
}
|
|
90
|
-
export interface
|
|
62
|
+
export interface InputHelperPropsStyled extends CommonCssComponentStyledProps, PropsWithChildren {
|
|
63
|
+
$color?: EnumOrPrimitive<InputColorVariant>;
|
|
91
64
|
$size?: EnumOrPrimitive<SizeVariant>;
|
|
92
65
|
}
|
|
66
|
+
export interface InputPropsStyled extends CommonCssComponentStyledProps<HTMLInputElement> {
|
|
67
|
+
$isMouseInteraction: boolean;
|
|
68
|
+
disabled?: boolean;
|
|
69
|
+
readOnly?: boolean;
|
|
70
|
+
type?: EnumOrPrimitive<InputVariantType>;
|
|
71
|
+
$variant?: EnumOrPrimitive<InputVariantType>;
|
|
72
|
+
$color?: EnumOrPrimitive<InputColorVariant>;
|
|
73
|
+
}
|
|
@@ -1,4 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export declare const InputAdornment: import('react').ForwardRefExoticComponent<
|
|
3
|
-
children?: import('react').ReactNode | undefined;
|
|
4
|
-
} & import('react').RefAttributes<HTMLDivElement>>;
|
|
1
|
+
import { InputAdornmentProps } from '../Input.types';
|
|
2
|
+
export declare const InputAdornment: import('react').ForwardRefExoticComponent<InputAdornmentProps & import('react').RefAttributes<HTMLDivElement>>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("@emotion/react/jsx-runtime"),c=require("react"),d=require("../../../../hooks/useTheme/useTheme.js"),e=require("./constants.js"),i=require("./InputAdornmentStyled.js"),t=c.forwardRef((n,r)=>{const{theme:s}=d.useTheme(),{children:o}=n;return u.jsx(i.InputAdornmentStyled,{ref:r,theme:s,"data-testid":e.COMPONENT_NAME,children:o})});t.displayName=e.COMPONENT_NAME;exports.InputAdornment=t;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("@emotion/react/jsx-runtime"),o=require("../../../../utils/helpers.js");require("react");const u=e=>{const{theme:{input:t}={},...n}=e,r=[o.get(t,"adornment.default",{})];return s.jsx("div",{css:r,...n})};exports.InputAdornmentStyled=u;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t="InputAdornment";exports.COMPONENT_NAME=t;
|
|
@@ -1,4 +1,2 @@
|
|
|
1
1
|
import { InputHelperProps } from '../Input.types';
|
|
2
|
-
export declare const InputHelper: import('react').ForwardRefExoticComponent<InputHelperProps &
|
|
3
|
-
children?: import('react').ReactNode | undefined;
|
|
4
|
-
} & import('react').RefAttributes<HTMLDivElement>>;
|
|
2
|
+
export declare const InputHelper: import('react').ForwardRefExoticComponent<InputHelperProps & import('react').RefAttributes<HTMLDivElement>>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("@emotion/react/jsx-runtime"),l=require("react"),a=require("../../../../hooks/useTheme/useTheme.js"),p=require("../../../../types/common.js"),d=require("../../../../types/input.js"),e=require("./constants.js"),m=require("./InputHelperStyled.js"),r=l.forwardRef((t,n)=>{const{theme:o}=a.useTheme(),{children:s,size:i=p.SizeVariant.Md,color:u=d.InputColorVariant.Primary}=t;return c.jsx(m.InputHelperStyled,{$size:i,$color:u,ref:n,theme:o,"data-testid":e.COMPONENT_NAME,children:s})});r.displayName=e.COMPONENT_NAME;exports.InputHelper=r;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("@emotion/react/jsx-runtime"),e=require("../../../../utils/helpers.js");require("react");const i=s=>{const{theme:{input:n}={},$color:o,$size:t,...l}=s,r=e.get(n,"helper",{}),u=[e.get(r,["default",t],{}),e.get(r,[o,t],{})];return c.jsx("div",{css:u,...l})};exports.InputHelperStyled=i;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e="InputHelper";exports.COMPONENT_NAME=e;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("@emotion/react/jsx-runtime"),p=require("react"),e=require("../../../utils/helpers.js"),a=p.forwardRef((n,o)=>{const{theme:{input:r}={},$isMouseInteraction:s,$color:u,...c}=n,t=e.get(r,"input",{}),i=[e.get(t,"default",{}),e.get(t,[s?"mouseInteraction":"defaultInteraction"],{}),e.get(t,u,{})];return l.jsx("input",{css:i,...c,ref:o})});exports.InputStyled=a;
|
|
@@ -1,4 +1,2 @@
|
|
|
1
1
|
import { InputWrapperProps } from '../Input.types';
|
|
2
|
-
export declare const InputWrapper: import('react').ForwardRefExoticComponent<InputWrapperProps &
|
|
3
|
-
children?: import('react').ReactNode | undefined;
|
|
4
|
-
} & import('react').RefAttributes<HTMLDivElement>>;
|
|
2
|
+
export declare const InputWrapper: import('react').ForwardRefExoticComponent<InputWrapperProps & import('react').RefAttributes<HTMLBaseElement>>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("@emotion/react/jsx-runtime"),d=require("react"),h=require("../../../../hooks/useTheme/useTheme.js"),e=require("./constants.js"),l=require("./InputWrapperStyled.js"),t=d.forwardRef((r,s)=>{const{theme:n}=h.useTheme(),{children:a,as:i=e.DEFAULT_AS_ELEMENT,width:u,withGap:p,...c}=r;return o.jsx(l.InputWrapperStyled,{$as:i,$width:u,$withGap:p,ref:s,theme:n,"data-testid":e.COMPONENT_NAME,...c,children:a})});t.displayName=e.COMPONENT_NAME;exports.InputWrapper=t;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("@emotion/react/jsx-runtime"),e=require("../../../../utils/helpers.js");require("react");const a=s=>{const{theme:{input:n}={},$width:t,$as:p="div",$withGap:o,styles:i={},...u}=s,r=e.get(n,"wrapper",{}),c=[e.get(r,"default",{}),o?e.get(r,"withGap",{}):{},t?{width:t}:{},i];return l.jsx(p,{css:c,...u})};exports.InputWrapperStyled=a;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const E="InputWrapper",t="div";exports.COMPONENT_NAME=E;exports.DEFAULT_AS_ELEMENT=t;
|
|
@@ -1,16 +1,14 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { TabIndex } from '../../../types';
|
|
3
|
-
import { InputColorVariant, InputRole, InputVariantType } from './Input.types';
|
|
1
|
+
import { TabIndex, InputColorVariant, InputRole, InputVariantType } from '../../../types';
|
|
4
2
|
export declare const COMPONENT_NAME = "Input";
|
|
5
3
|
export declare const DEFAULT_PROPS: {
|
|
6
4
|
variant: InputVariantType;
|
|
7
5
|
color: InputColorVariant;
|
|
8
|
-
|
|
6
|
+
className: string;
|
|
9
7
|
disabled: boolean;
|
|
10
8
|
readOnly: boolean;
|
|
11
9
|
ariaRequired: boolean;
|
|
12
10
|
role: InputRole;
|
|
13
11
|
tabIndex: TabIndex;
|
|
14
|
-
styles:
|
|
12
|
+
styles: {};
|
|
15
13
|
};
|
|
16
14
|
export declare const FOCUS_EXCLUDED_LIST: InputVariantType[];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("../../../types/accesability.js"),e=require("../../../types/input.js"),t="Input",n={variant:e.InputVariantType.Text,color:e.InputColorVariant.Primary,className:"",disabled:!1,readOnly:!1,ariaRequired:!1,role:e.InputRole.Textbox,tabIndex:a.TabIndex.Default,styles:{}},r=[e.InputVariantType.Checkbox,e.InputVariantType.Radio,e.InputVariantType.Range];exports.COMPONENT_NAME=t;exports.DEFAULT_PROPS=n;exports.FOCUS_EXCLUDED_LIST=r;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("react"),I=require("../../../constants/keyboard.js"),n=require("../../../utils/helpers.js"),S=({onMouseDown:s,onChange:u,onKeyDown:t,onBlur:r,debounceCallbackTime:c})=>{const[i,d]=a.useState(!1),f=a.useCallback(e=>{d(!0),s==null||s(e)},[s]),l=a.useCallback(e=>{e.key===I.KEYBOARD_KEYS.TAB&&d(!1),t==null||t(e)},[t]),b=a.useCallback(e=>{d(!1),r==null||r(e)},[r]),p=typeof c=="number"&&t?n.debounce(l,c):l,h=typeof c=="number"&&u?n.debounce(u,c):u;return{handlers:{onMouseDown:f,onKeyDown:p,onBlur:b,onChange:h},isMouseInteraction:i}};exports.useInputHandlers=S;
|
|
@@ -1,20 +1,6 @@
|
|
|
1
1
|
import { InputFileProps } from './InputFile.types';
|
|
2
2
|
/**
|
|
3
|
-
*
|
|
4
|
-
*
|
|
5
|
-
* @typedef {Object} InputFileProps
|
|
6
|
-
* @property {CSSObject} [styles] - Override styles for the wrapper container.
|
|
7
|
-
* @property {string} [accept] - Comma-separated list of accepted file types (e.g. `"image/*"`).
|
|
8
|
-
* @property {string} [capture] - Hint for device’s capture mechanism (e.g. `"user"`, `"environment"`).
|
|
9
|
-
* @property {boolean} [multiple=false] - Whether to allow selection of multiple files.
|
|
10
|
-
* @property {boolean} [disabled=false] - Disables both the file input and button.
|
|
11
|
-
* @property {(event: ChangeEvent<HTMLInputElement>) => void} [onChange] - Callback invoked when file(s) are selected.
|
|
12
|
-
* @property {(event: MouseEvent<HTMLInputElement>) => void} [onClick] - Callback invoked when the button is clicked.
|
|
13
|
-
* @property {import('@components/core/Button').ButtonProps} [buttonProps] - Passthrough props for the underlying `Button`.
|
|
14
|
-
* @property {string} [label] - Text label to display in the upload button.
|
|
15
|
-
*/
|
|
16
|
-
/**
|
|
17
|
-
* A styled wrapper around a visually-hidden `<input type="file">` and an outlined design-system `Button`.
|
|
3
|
+
* A styled wrapper around a visually hidden `<input type="file">` and an outlined design-system `Button`.
|
|
18
4
|
*
|
|
19
5
|
* @remarks
|
|
20
6
|
* - Use `accept` to restrict selectable file types.
|
|
@@ -45,6 +31,4 @@ import { InputFileProps } from './InputFile.types';
|
|
|
45
31
|
* }
|
|
46
32
|
* ```
|
|
47
33
|
*/
|
|
48
|
-
export declare const InputFile: import('react').ForwardRefExoticComponent<InputFileProps &
|
|
49
|
-
children?: import('react').ReactNode | undefined;
|
|
50
|
-
} & import('react').RefAttributes<HTMLDivElement>>;
|
|
34
|
+
export declare const InputFile: import('react').ForwardRefExoticComponent<InputFileProps & import('react').RefAttributes<HTMLDivElement>>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("@emotion/react/jsx-runtime"),i=require("react"),_=require("../../../types/button.js"),b=require("../../../hooks/useTheme/useTheme.js"),j=require("../Button/Button.js"),c=require("./constants.js"),d=require("./InputFileStyled.js"),p=i.forwardRef((I,l)=>{const{styles:h={},accept:m,capture:E,multiple:N,disabled:e,onChange:t,onClick:n,isIcon:q,children:y=c.INPUT_FILE_DEFAULT_LABEL_VALUE,buttonProps:F,...T}=I,{theme:o}=b.useTheme(),r=i.useRef(null);i.useImperativeHandle(l,()=>r.current);const f=s=>{var a;e||((a=r.current)==null||a.click(),n==null||n(s))},O=s=>{t==null||t(s)};return u.jsxs(d.InputFileWrapperStyled,{theme:o,styles:h,ref:l,"data-testid":c.COMPONENT_NAME,children:[u.jsx(d.InputFileStyled,{ref:r,theme:o,accept:m,capture:E,multiple:N,disabled:e,onChange:O,...T}),u.jsx(j.Button,{isIcon:q,variant:_.ButtonVariant.Outlined,disabled:e,onClick:f,...F,children:y})]})});p.displayName=c.COMPONENT_NAME;exports.InputFile=p;
|
|
@@ -1,8 +1,18 @@
|
|
|
1
|
-
import { ChangeEvent,
|
|
2
|
-
import { ButtonProps,
|
|
3
|
-
export interface InputFileProps extends
|
|
4
|
-
|
|
1
|
+
import { ChangeEvent, PropsWithChildren } from 'react';
|
|
2
|
+
import { ButtonProps, CommonCssComponentProps, CommonCssComponentStyledProps } from '../..';
|
|
3
|
+
export interface InputFileProps extends PropsWithChildren, CommonCssComponentProps<HTMLInputElement> {
|
|
4
|
+
accept?: string;
|
|
5
|
+
capture?: boolean | 'user' | 'environment';
|
|
6
|
+
multiple?: boolean;
|
|
7
|
+
disabled?: boolean;
|
|
8
|
+
buttonProps?: ButtonProps;
|
|
5
9
|
onChange?: (event: ChangeEvent<HTMLInputElement>) => void;
|
|
6
10
|
isIcon?: boolean;
|
|
7
11
|
}
|
|
8
|
-
export
|
|
12
|
+
export interface InputFileStyledProps extends CommonCssComponentStyledProps<HTMLInputElement> {
|
|
13
|
+
accept?: string;
|
|
14
|
+
capture?: boolean | 'user' | 'environment';
|
|
15
|
+
multiple?: boolean;
|
|
16
|
+
disabled?: boolean;
|
|
17
|
+
}
|
|
18
|
+
export type InputFileWrapperStyledProps = CommonCssComponentStyledProps;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { InputFileStyledProps, InputFileWrapperStyledProps } from './InputFile.types';
|
|
2
|
+
export declare const InputFileWrapperStyled: import('react').ForwardRefExoticComponent<Omit<InputFileWrapperStyledProps, "ref"> & import('react').RefAttributes<HTMLDivElement>>;
|
|
3
|
+
export declare const InputFileStyled: import('react').ForwardRefExoticComponent<Omit<InputFileStyledProps, "ref"> & import('react').RefAttributes<HTMLInputElement>>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("@emotion/react/jsx-runtime"),u=require("react"),i=require("../../../utils/helpers.js"),p=require("./constants.js"),c=u.forwardRef((e,t)=>{const{theme:{inputfile:r}={},styles:s={},...o}=e,l=[i.get(r,"default",{}),s];return n.jsx("div",{css:l,...o,ref:t})}),d=u.forwardRef((e,t)=>{const{theme:{inputfile:r}={},...s}=e;return n.jsx("input",{type:p.INPUT_FILE_TYPE,css:i.get(r,"input",{}),...s,ref:t})});exports.InputFileStyled=d;exports.InputFileWrapperStyled=c;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const E="InputFile",_="Browse Files",L="file";exports.COMPONENT_NAME=E;exports.INPUT_FILE_DEFAULT_LABEL_VALUE=_;exports.INPUT_FILE_TYPE=L;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const d=require("@emotion/react/jsx-runtime"),b=require("react"),m=require("../../../hooks/useTheme/useTheme.js"),r=require("./constants.js"),N=require("./LabelStyled.js"),s=b.forwardRef((a,l)=>{const{className:n="",htmlFor:e,onClick:o,ariaLabel:t,children:c,...i}=a,{theme:u}=m.useTheme();return d.jsx(N.LabelStyled,{ref:l,theme:u,className:n,onClick:o,"data-testid":r.COMPONENT_NAME,...e?{htmlFor:e}:{},...t?{"aria-label":t}:{},...i,children:c})});s.displayName=r.COMPONENT_NAME;exports.Label=s;
|