gd-design-library 0.3.4 → 0.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +86 -17
- package/README.md +2 -0
- package/assets/icons/account_circle.js +17 -1
- package/assets/icons/arrow-down.js +15 -1
- package/assets/icons/arrow-forward.js +17 -1
- package/assets/icons/attachment.js +17 -1
- package/assets/icons/check.js +16 -1
- package/assets/icons/chevron-left.js +17 -1
- package/assets/icons/chevron-right.js +17 -1
- package/assets/icons/content-copy.js +17 -1
- package/assets/icons/cross.js +16 -1
- package/assets/icons/delete_outlined.js +17 -1
- package/assets/icons/dot.js +16 -1
- package/assets/icons/edit.js +17 -1
- package/assets/icons/error_outline.js +22 -1
- package/assets/icons/eye.js +17 -1
- package/assets/icons/favorite.js +17 -1
- package/assets/icons/favorite_outlined.js +17 -1
- package/assets/icons/file-copy.js +16 -1
- package/assets/icons/filter.js +17 -1
- package/assets/icons/folder.js +17 -1
- package/assets/icons/folderOpen.js +17 -1
- package/assets/icons/home.js +17 -1
- package/assets/icons/keyboard-arrow-down.js +12 -1
- package/assets/icons/local_shipping.js +17 -1
- package/assets/icons/minus.js +16 -1
- package/assets/icons/mobile_menu_button.js +17 -1
- package/assets/icons/paymentCard.js +17 -1
- package/assets/icons/plus.js +16 -1
- package/assets/icons/portrait.js +17 -1
- package/assets/icons/processing.js +17 -1
- package/assets/icons/ruler.js +17 -1
- package/assets/icons/search.js +17 -1
- package/assets/icons/shopping_bag.js +17 -1
- package/assets/icons/slash.js +17 -1
- package/assets/icons/star.js +16 -1
- package/assets/icons/starOutlined.js +16 -1
- package/assets/icons/thumb-down.js +17 -1
- package/assets/icons/thumb-up.js +17 -1
- package/assets/icons/toast_error.js +20 -1
- package/assets/icons/toast_info.js +16 -1
- package/assets/icons/toast_success.js +20 -1
- package/assets/icons/toast_warning.js +16 -1
- package/assets/icons/upload.js +17 -1
- package/assets/icons/volume-up.js +17 -1
- package/assets/icons/wifiTethering.js +17 -1
- package/assets/svg/checkbox_bg_checked.svg.js +5 -2
- package/assets/svg/checkbox_border.svg.js +5 -2
- package/assets/svg/checkbox_disabled_bg_checked.svg.js +5 -2
- package/assets/svg/radio_bg.svg.js +5 -2
- package/assets/svg/radio_bg_checked.svg.js +5 -2
- package/components/core/Breadcrumbs/Breadcrumbs.js +34 -1
- package/components/core/Breadcrumbs/BreadcrumbsStyled.js +58 -1
- package/components/core/Breadcrumbs/constants.js +4 -1
- package/components/core/Button/Button.js +43 -1
- package/components/core/Button/ButtonStyled.js +53 -1
- package/components/core/Button/constants.js +4 -1
- package/components/core/Dropdown/Dropdown.js +38 -1
- package/components/core/Dropdown/DropdownStyled.js +20 -1
- package/components/core/Dropdown/constants.js +4 -1
- package/components/core/Dropdown/hooks/useDropdown.js +12 -1
- package/components/core/DropdownItem/DropdownItem.js +38 -1
- package/components/core/DropdownItem/DropdownItemStyled.js +17 -1
- package/components/core/DropdownItem/constants.js +4 -1
- package/components/core/Form/Form.js +48 -1
- package/components/core/Form/FormStyled.js +16 -1
- package/components/core/Form/constants.js +4 -1
- package/components/core/Form/utils.js +34 -1
- package/components/core/Icon/Icon.js +33 -1
- package/components/core/Icon/constants.js +92 -1
- package/components/core/Image/Image.js +39 -1
- package/components/core/Image/ImageStyled.js +54 -1
- package/components/core/Image/constants.js +4 -1
- package/components/core/InlineNotification/InlineNotification.js +38 -1
- package/components/core/InlineNotification/InlineNotificationStyled.js +29 -1
- package/components/core/InlineNotification/constants.js +21 -1
- package/components/core/Input/Input.js +72 -1
- package/components/core/Input/InputAdornment/InputAdornment.js +18 -1
- package/components/core/Input/InputAdornment/InputAdornmentStyled.js +15 -1
- package/components/core/Input/InputAdornment/constants.js +4 -1
- package/components/core/Input/InputHelper/InputHelper.js +22 -1
- package/components/core/Input/InputHelper/InputHelperStyled.js +17 -1
- package/components/core/Input/InputHelper/constants.js +4 -1
- package/components/core/Input/InputStyled.js +18 -1
- package/components/core/Input/InputWrapper/InputWrapper.js +22 -1
- package/components/core/Input/InputWrapper/InputWrapperStyled.js +21 -1
- package/components/core/Input/InputWrapper/constants.js +5 -1
- package/components/core/Input/constants.js +18 -1
- package/components/core/Input/useInputHandlers.js +31 -1
- package/components/core/InputFile/InputFile.js +40 -1
- package/components/core/InputFile/InputFileStyled.js +27 -1
- package/components/core/InputFile/constants.js +6 -1
- package/components/core/Label/Label.js +27 -1
- package/components/core/Label/LabelStyled.js +17 -1
- package/components/core/Label/constants.js +4 -1
- package/components/core/Link/Link.js +43 -1
- package/components/core/Link/LinkStyled.js +22 -1
- package/components/core/Link/constants.js +4 -1
- package/components/core/List/List.js +45 -1
- package/components/core/List/ListStyled.js +31 -1
- package/components/core/List/constants.js +4 -1
- package/components/core/Loader/Loader.js +28 -1
- package/components/core/Loader/LoaderStyled.js +41 -1
- package/components/core/Loader/constants.js +6 -1
- package/components/core/Loader/utils.js +37 -1
- package/components/core/Menu/Menu.js +100 -1
- package/components/core/Menu/MenuStyled.js +31 -1
- package/components/core/Menu/constants.js +24 -1
- package/components/core/Modal/Modal.js +47 -1
- package/components/core/Modal/ModalStyled.js +76 -1
- package/components/core/Modal/constants.js +4 -1
- package/components/core/Portal/Portal.d.ts +1 -2
- package/components/core/Portal/Portal.js +19 -1
- package/components/core/Portal/index.d.ts +1 -1
- package/components/core/Scroll/Scroll.js +40 -1
- package/components/core/Scroll/ScrollBar.js +68 -1
- package/components/core/Scroll/ScrollStyled.js +56 -1
- package/components/core/Scroll/constants.js +6 -1
- package/components/core/Scroll/utils.js +41 -1
- package/components/core/Select/Select.js +145 -1
- package/components/core/Select/SelectStyled.js +70 -1
- package/components/core/Select/constants.js +5 -1
- package/components/core/Select/hooks/useSelectContext.js +12 -1
- package/components/core/Separator/Separator.js +36 -1
- package/components/core/Separator/SeparatorStyled.js +61 -1
- package/components/core/Separator/constants.js +4 -1
- package/components/core/Skeleton/Skeleton.js +24 -1
- package/components/core/Skeleton/SkeletonStyled.js +28 -1
- package/components/core/Skeleton/constants.js +6 -1
- package/components/core/Slider/Slider.js +35 -1
- package/components/core/Slider/SliderStyled.js +20 -1
- package/components/core/Slider/constants.js +6 -1
- package/components/core/Snackbar/Snackbar.js +46 -1
- package/components/core/Snackbar/SnackbarManager.js +48 -1
- package/components/core/Snackbar/SnackbarStyled.js +109 -5
- package/components/core/Snackbar/constants.js +10 -1
- package/components/core/Switch/Switch.js +36 -1
- package/components/core/Switch/SwitchStyled.js +56 -1
- package/components/core/Switch/constants.js +4 -1
- package/components/core/Textarea/Textarea.js +41 -1
- package/components/core/Textarea/Textarea.types.d.ts +1 -3
- package/components/core/Textarea/Textarea.types.js +6 -1
- package/components/core/Textarea/TextareaStyled.js +29 -1
- package/components/core/Textarea/constants.js +4 -1
- package/components/core/Textarea/hooks/useDynamicHeightAdjustment.js +8 -1
- package/components/core/Textarea/hooks/useResizeObserver.js +24 -1
- package/components/core/Toggle/Toggle.js +37 -1
- package/components/core/Toggle/ToggleStyled.js +18 -1
- package/components/core/Toggle/constants.js +4 -1
- package/components/core/Tooltip/Tooltip.js +40 -1
- package/components/core/Tooltip/Tooltip.types.js +4 -1
- package/components/core/Tooltip/TooltipStyled.js +23 -1
- package/components/core/Tooltip/constants.js +6 -1
- package/components/core/Tooltip/utils.js +64 -1
- package/components/core/Typography/Typography.js +26 -1
- package/components/core/Typography/TypographyStyled.js +32 -1
- package/components/core/Typography/constants.js +4 -1
- package/components/core/Wrapper/Wrapper.js +20 -1
- package/components/core/Wrapper/WrapperStyled.js +23 -1
- package/components/core/Wrapper/constants.js +4 -1
- package/components/core/index.d.ts +1 -1
- package/components/core/types/roles.types.js +4 -1
- package/components/domainSpecific/Accordion/Accordion.js +35 -1
- package/components/domainSpecific/Accordion/AccordionContent/AccordionContent.js +21 -1
- package/components/domainSpecific/Accordion/AccordionHeader/AccordionHeader.js +29 -1
- package/components/domainSpecific/Accordion/AccordionItem/AccordionItem.js +26 -1
- package/components/domainSpecific/Accordion/AccordionStyled.js +39 -1
- package/components/domainSpecific/Accordion/constants.js +7 -1
- package/components/domainSpecific/Accordion/hooks/useAccordion.js +12 -1
- package/components/domainSpecific/Avatar/Avatar.js +44 -1
- package/components/domainSpecific/Avatar/AvatarStyled.js +63 -1
- package/components/domainSpecific/Avatar/constants.js +6 -1
- package/components/domainSpecific/Card/Card.js +47 -1
- package/components/domainSpecific/Card/CardButton/CardButton.js +25 -1
- package/components/domainSpecific/Card/CardButton/CardButtonStyled.js +18 -1
- package/components/domainSpecific/Card/CardButton/constants.js +4 -1
- package/components/domainSpecific/Card/CardCounter/CardCounter.js +26 -1
- package/components/domainSpecific/Card/CardCounter/CardCounterStyled.js +17 -1
- package/components/domainSpecific/Card/CardCounter/constants.js +4 -1
- package/components/domainSpecific/Card/CardDescription/CardDescription.js +24 -1
- package/components/domainSpecific/Card/CardDescription/CardDescriptionStyled.js +24 -1
- package/components/domainSpecific/Card/CardDescription/constants.js +10 -1
- package/components/domainSpecific/Card/CardImage/CardImage.js +26 -1
- package/components/domainSpecific/Card/CardImage/CardImageStyled.js +18 -1
- package/components/domainSpecific/Card/CardImage/constants.js +4 -1
- package/components/domainSpecific/Card/CardPrice/CardPrice.js +22 -1
- package/components/domainSpecific/Card/CardPrice/CardPriceStyled.js +18 -1
- package/components/domainSpecific/Card/CardPrice/constants.js +4 -1
- package/components/domainSpecific/Card/CardRating/CardRating.js +30 -1
- package/components/domainSpecific/Card/CardRating/CardRatingStyled.js +18 -1
- package/components/domainSpecific/Card/CardRating/constants.js +6 -1
- package/components/domainSpecific/Card/CardTitle/CardTitle.js +25 -1
- package/components/domainSpecific/Card/CardTitle/CardTitleStyled.js +24 -1
- package/components/domainSpecific/Card/CardTitle/constants.js +10 -1
- package/components/domainSpecific/Card/CartStyled.js +26 -1
- package/components/domainSpecific/Card/constants.js +4 -1
- package/components/domainSpecific/Carousel/Carousel.js +137 -1
- package/components/domainSpecific/Carousel/Carousel.types.d.ts +1 -12
- package/components/domainSpecific/Carousel/CarouselStyled.js +143 -1
- package/components/domainSpecific/Carousel/constants.js +4 -1
- package/components/domainSpecific/ChatBubble/ChatBubble.js +26 -1
- package/components/domainSpecific/ChatBubble/ChatBubbleStyled.js +43 -1
- package/components/domainSpecific/ChatBubble/constants.js +4 -1
- package/components/domainSpecific/ContentCarousel/ContentCarousel.js +69 -1
- package/components/domainSpecific/ContentCarousel/ContentCarouselStyled.js +32 -1
- package/components/domainSpecific/ContentCarousel/constants.js +4 -1
- package/components/domainSpecific/Counter/Counter.js +55 -1
- package/components/domainSpecific/Counter/CounterStyled.js +27 -1
- package/components/domainSpecific/Counter/constants.js +8 -1
- package/components/domainSpecific/DragAndDropFiles/DragAndDropFiles.js +48 -1
- package/components/domainSpecific/DragAndDropFiles/DragAndDropFilesStyled.js +16 -1
- package/components/domainSpecific/DragAndDropFiles/constants.js +4 -1
- package/components/domainSpecific/DragAndDropFiles/hooks/useDragAndDrop/useDragAndDrop.js +49 -1
- package/components/domainSpecific/Header/Header.js +88 -1
- package/components/domainSpecific/Header/HeaderStyled.js +136 -1
- package/components/domainSpecific/Header/constants.js +4 -1
- package/components/domainSpecific/Price/Price.js +23 -1
- package/components/domainSpecific/Price/PriceStyled.js +42 -1
- package/components/domainSpecific/Price/constants.js +4 -1
- package/components/domainSpecific/ProgressBar/ProgressBar.js +29 -1
- package/components/domainSpecific/ProgressBar/ProgressBarStyled.js +70 -1
- package/components/domainSpecific/ProgressBar/constants.js +7 -1
- package/components/domainSpecific/RadioGroup/RadioGroup.js +54 -1
- package/components/domainSpecific/RadioGroup/RadioGroup.types.js +4 -1
- package/components/domainSpecific/RadioGroup/RadioGroupItem/RadioGroupItem.js +37 -1
- package/components/domainSpecific/RadioGroup/RadioGroupStyled.js +130 -1
- package/components/domainSpecific/RadioGroup/constants.js +5 -1
- package/components/domainSpecific/Rating/Rating.js +63 -1
- package/components/domainSpecific/Rating/RatingStyled.js +61 -1
- package/components/domainSpecific/Rating/constants.js +9 -1
- package/components/domainSpecific/Search/Search.js +58 -1
- package/components/domainSpecific/Search/SearchStyled.js +16 -1
- package/components/domainSpecific/Search/constants.js +7 -1
- package/components/domainSpecific/SearchModal/SearchInput/SearchInput.js +26 -1
- package/components/domainSpecific/SearchModal/SearchInput/SearchInputStyled.js +25 -1
- package/components/domainSpecific/SearchModal/SearchInput/constants.js +6 -1
- package/components/domainSpecific/SearchModal/SearchItems/SearchItems.js +48 -1
- package/components/domainSpecific/SearchModal/SearchItems/SearchItemsStyled.js +82 -1
- package/components/domainSpecific/SearchModal/SearchItems/constants.js +10 -1
- package/components/domainSpecific/SearchModal/SearchItems/utils.js +7 -1
- package/components/domainSpecific/SearchModal/SearchLoader/SearchLoader.js +20 -1
- package/components/domainSpecific/SearchModal/SearchLoader/SearchLoaderStyled.js +14 -1
- package/components/domainSpecific/SearchModal/SearchLoader/constants.js +4 -1
- package/components/domainSpecific/SearchModal/SearchModal.js +39 -1
- package/components/domainSpecific/SearchModal/SearchModalStyled.js +29 -1
- package/components/domainSpecific/SearchModal/constants.js +8 -1
- package/components/domainSpecific/Stepper/Stepper.js +42 -1
- package/components/domainSpecific/Stepper/StepperStyled.js +58 -1
- package/components/domainSpecific/Stepper/constants.js +4 -1
- package/components/domainSpecific/Stepper/utils.js +37 -1
- package/components/domainSpecific/Tabs/Tabs.js +40 -1
- package/components/domainSpecific/Tabs/TabsStyled.js +79 -1
- package/components/domainSpecific/Tabs/constants.js +6 -1
- package/components/index.types.js +4 -1
- package/components/layout/ChatContainer/ChatContainer.js +51 -1
- package/components/layout/ChatContainer/ChatContainer.types.d.ts +1 -6
- package/components/layout/ChatContainer/ChatContainerStyled.js +71 -1
- package/components/layout/ChatContainer/constants.js +4 -1
- package/components/layout/Column/Column.js +26 -1
- package/components/layout/Column/ColumnStyled.js +36 -1
- package/components/layout/Column/constants.js +4 -1
- package/components/layout/FlexContainer/FlexContainer.js +25 -1
- package/components/layout/FlexContainer/FlexContainerStyled.js +27 -1
- package/components/layout/FlexContainer/constants.js +4 -1
- package/components/layout/FlexContainer/utils.js +18 -1
- package/components/layout/Row/Row.js +26 -1
- package/components/layout/Row/RowStyled.js +36 -1
- package/components/layout/Row/constants.js +4 -1
- package/components/templates/SkeletonSearch/SkeletonSearch.js +30 -1
- package/components/templates/SkeletonSearch/SkeletonSearchStyled.js +97 -1
- package/components/templates/SkeletonSearch/constants.js +5 -1
- package/components/widget/DragAndDrop/DragAndDrop.js +74 -1
- package/components/widget/DragAndDrop/DragAndDropStyled.js +61 -1
- package/components/widget/DragAndDrop/constants.js +4 -1
- package/components/widget/DragAndDrop/utils/validators.js +17 -1
- package/constants/keyboard.js +10 -1
- package/constants/positioning.js +12 -1
- package/constants/timers.js +5 -1
- package/hooks/useAutoFocus/useAutoFocus.js +11 -1
- package/hooks/useCarousel/useCarousel.js +61 -1
- package/hooks/useClickOutside/useClickOutside.js +15 -1
- package/hooks/useKeyControls/useKeyControls.js +19 -1
- package/hooks/useMediaQuery/useMediaQuery.js +14 -1
- package/hooks/useTheme/useTheme.js +48 -1
- package/index.js +350 -1
- package/package.json +17 -2
- package/stories/components/TokenViewer/TokenViewer.d.ts +2 -0
- package/stories/components/TokenViewer/TokenViewer.types.d.ts +12 -0
- package/stories/components/TokenViewer/TokenViewerStyled.d.ts +11 -0
- package/stories/components/TokenViewer/index.d.ts +1 -0
- package/tokens/accordion.js +72 -1
- package/tokens/animations.js +63 -1
- package/tokens/avatar.d.ts +22 -15
- package/tokens/avatar.js +153 -1
- package/tokens/borders.js +17 -1
- package/tokens/breadcrumbs.js +37 -1
- package/tokens/breakpoints.d.ts +8 -0
- package/tokens/breakpoints.js +12 -0
- package/tokens/button.js +146 -1
- package/tokens/card.d.ts +5 -1
- package/tokens/card.js +191 -1
- package/tokens/carousel.js +216 -1
- package/tokens/chat.d.ts +4 -0
- package/tokens/chat.js +122 -1
- package/tokens/chatbubble.d.ts +1 -3
- package/tokens/chatbubble.js +75 -1
- package/tokens/colors.js +157 -1
- package/tokens/column.js +9 -1
- package/tokens/constants.js +4 -1
- package/tokens/counter.js +37 -1
- package/tokens/cursors.js +20 -1
- package/tokens/defaultTheme.d.ts +154 -47
- package/tokens/defaultTheme.js +123 -1
- package/tokens/display.js +19 -1
- package/tokens/draganddrop.js +87 -1
- package/tokens/draganddropfiles.js +6 -1
- package/tokens/flexContainer.js +13 -1
- package/tokens/font.js +52 -1
- package/tokens/form.js +6 -1
- package/tokens/header.js +123 -1
- package/tokens/icon.js +32 -1
- package/tokens/image.js +40 -1
- package/tokens/index.d.ts +71 -47
- package/tokens/index.js +145 -1
- package/tokens/inlineNotification.js +75 -1
- package/tokens/input.js +192 -1
- package/tokens/inputfile.js +12 -1
- package/tokens/label.js +9 -1
- package/tokens/link.js +66 -1
- package/tokens/list.js +87 -1
- package/tokens/loader.js +141 -1
- package/tokens/menu.js +19 -1
- package/tokens/modal.js +108 -1
- package/tokens/price.js +32 -1
- package/tokens/progressbar.js +60 -1
- package/tokens/radiogroup.js +103 -2
- package/tokens/radius.js +14 -1
- package/tokens/rating.js +73 -1
- package/tokens/reset.js +4 -1
- package/tokens/row.js +8 -1
- package/tokens/scroll.js +99 -1
- package/tokens/search.js +45 -1
- package/tokens/searchModal.js +159 -1
- package/tokens/select.js +99 -1
- package/tokens/separator.js +63 -1
- package/tokens/shadow.js +25 -1
- package/tokens/skeleton.js +77 -1
- package/tokens/slider.js +45 -1
- package/tokens/snackbar.d.ts +30 -28
- package/tokens/snackbar.js +169 -1
- package/tokens/spacing.js +13 -1
- package/tokens/stepper.js +147 -1
- package/tokens/switch.js +76 -1
- package/tokens/tabs.js +108 -1
- package/tokens/textarea.js +45 -1
- package/tokens/toggle.js +19 -1
- package/tokens/tooltip.js +69 -1
- package/tokens/types/index.types.js +4 -1
- package/tokens/typography.js +134 -1
- package/tokens/utils.d.ts +6 -0
- package/tokens/utils.js +88 -1
- package/tokens/values.js +73 -1
- package/tokens/wrapper.js +34 -1
- package/types/accesability.js +4 -1
- package/types/button.js +7 -1
- package/types/card.js +5 -1
- package/types/carousel.d.ts +12 -1
- package/types/carousel.js +6 -0
- package/types/chat.js +4 -1
- package/types/common.js +5 -1
- package/types/cursors.js +4 -1
- package/types/index.d.ts +1 -0
- package/types/input.js +6 -1
- package/types/label.js +4 -1
- package/types/layout.js +4 -1
- package/types/link.js +5 -1
- package/types/list.js +4 -1
- package/types/separator.js +5 -1
- package/types/skeleton.js +4 -1
- package/types/snackbar.js +5 -1
- package/types/stepper.js +5 -1
- package/types/typography.js +6 -1
- package/types/wrapper.js +4 -1
- package/utils/animationFrame.js +17 -1
- package/utils/common.js +4 -1
- package/utils/date.js +11 -1
- package/utils/focus.js +54 -1
- package/utils/helpers.js +42 -1
- package/utils/layout.js +32 -1
- package/utils/math.js +11 -1
- package/utils/setInRange.js +11 -1
- package/utils/uniqueKeys.js +4 -1
- package/components/domainSpecific/Carousel/Carousel.types.js +0 -1
- package/components/layout/ChatContainer/ChatContainer.types.js +0 -1
- /package/{gd-design-library.css → assets/styles.css} +0 -0
|
@@ -1 +1,54 @@
|
|
|
1
|
-
"use client";
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx as r } from "@emotion/react/jsx-runtime";
|
|
3
|
+
import { forwardRef as a } from "react";
|
|
4
|
+
import { get as c } from "../../../utils/helpers.js";
|
|
5
|
+
const h = (o) => {
|
|
6
|
+
const {
|
|
7
|
+
width: t,
|
|
8
|
+
height: e,
|
|
9
|
+
theme: {
|
|
10
|
+
image: s
|
|
11
|
+
} = {},
|
|
12
|
+
...i
|
|
13
|
+
} = o, p = [c(s, "wrapper", {}), {
|
|
14
|
+
width: `${t ? `${t}px` : "100%"}`,
|
|
15
|
+
height: `${e ? `${e}px` : "100%"}`
|
|
16
|
+
}];
|
|
17
|
+
return /* @__PURE__ */ r("div", { css: p, ...i });
|
|
18
|
+
}, u = a((o, t) => {
|
|
19
|
+
const {
|
|
20
|
+
objectFit: e = "cover",
|
|
21
|
+
$isLoading: s,
|
|
22
|
+
theme: {
|
|
23
|
+
image: i
|
|
24
|
+
} = {},
|
|
25
|
+
styles: p,
|
|
26
|
+
...m
|
|
27
|
+
} = o, n = [c(i, "default", {}), {
|
|
28
|
+
objectFit: e,
|
|
29
|
+
opacity: `${s ? 0 : 1}`
|
|
30
|
+
}, p];
|
|
31
|
+
return /* @__PURE__ */ r("img", { css: n, ...m, ref: t });
|
|
32
|
+
}), y = (o) => {
|
|
33
|
+
const {
|
|
34
|
+
theme: {
|
|
35
|
+
image: t
|
|
36
|
+
} = {},
|
|
37
|
+
...e
|
|
38
|
+
} = o, s = [c(t, "placeholder", {})];
|
|
39
|
+
return /* @__PURE__ */ r("div", { css: s, ...e });
|
|
40
|
+
}, f = (o) => {
|
|
41
|
+
const {
|
|
42
|
+
theme: {
|
|
43
|
+
image: t
|
|
44
|
+
} = {},
|
|
45
|
+
...e
|
|
46
|
+
} = o, s = [c(t, "caption", {})];
|
|
47
|
+
return /* @__PURE__ */ r("figcaption", { css: s, ...e });
|
|
48
|
+
};
|
|
49
|
+
export {
|
|
50
|
+
f as CaptionStyled,
|
|
51
|
+
u as ImageStyled,
|
|
52
|
+
h as ImageWrapperStyled,
|
|
53
|
+
y as PlaceholderStyled
|
|
54
|
+
};
|
|
@@ -1 +1,38 @@
|
|
|
1
|
-
"use client";
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsxs as T, jsx as s } from "@emotion/react/jsx-runtime";
|
|
3
|
+
import { forwardRef as h } from "react";
|
|
4
|
+
import { DEFAULT_VARIANT as u, accessibilityValues as m, COMPONENT_NAME as c, CONTENT_COMPONENT as y } from "./constants.js";
|
|
5
|
+
import { InlineNotificationStyled as E, InlineNotificationMessageStyled as I } from "./InlineNotificationStyled.js";
|
|
6
|
+
import { isChildPrimitive as O } from "../../../utils/common.js";
|
|
7
|
+
import { Icon as A } from "../Icon/Icon.js";
|
|
8
|
+
import { useTheme as C } from "../../../hooks/useTheme/useTheme.js";
|
|
9
|
+
import { get as l } from "../../../utils/helpers.js";
|
|
10
|
+
const M = h((f, N) => {
|
|
11
|
+
const {
|
|
12
|
+
variant: i = u,
|
|
13
|
+
className: d,
|
|
14
|
+
styles: p,
|
|
15
|
+
children: e,
|
|
16
|
+
...v
|
|
17
|
+
} = f, {
|
|
18
|
+
theme: o
|
|
19
|
+
} = C(), t = l(o, ["inlineNotification", i, "icon"], {
|
|
20
|
+
name: ""
|
|
21
|
+
}), r = O(e), {
|
|
22
|
+
ariaLive: a,
|
|
23
|
+
role: n
|
|
24
|
+
} = l(m, i, m.default);
|
|
25
|
+
return /* @__PURE__ */ T(E, { ref: N, "data-testid": c, $variant: i, className: d, styles: p, theme: o, ...a ? {
|
|
26
|
+
"aria-live": a
|
|
27
|
+
} : {}, ...n ? {
|
|
28
|
+
role: n
|
|
29
|
+
} : {}, ...v, children: [
|
|
30
|
+
(t == null ? void 0 : t.name) && /* @__PURE__ */ s(A, { ...t }),
|
|
31
|
+
r && /* @__PURE__ */ s(I, { "data-testid": y, $variant: i, theme: o, children: e }),
|
|
32
|
+
!r && e
|
|
33
|
+
] });
|
|
34
|
+
});
|
|
35
|
+
M.displayName = c;
|
|
36
|
+
export {
|
|
37
|
+
M as InlineNotification
|
|
38
|
+
};
|
|
@@ -1 +1,29 @@
|
|
|
1
|
-
"use client";
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx as l } from "@emotion/react/jsx-runtime";
|
|
3
|
+
import { forwardRef as f } from "react";
|
|
4
|
+
import { get as n } from "../../../utils/helpers.js";
|
|
5
|
+
const u = f((s, t) => {
|
|
6
|
+
const {
|
|
7
|
+
theme: {
|
|
8
|
+
inlineNotification: e
|
|
9
|
+
} = {},
|
|
10
|
+
$variant: o,
|
|
11
|
+
styles: i = {},
|
|
12
|
+
...r
|
|
13
|
+
} = s, c = n(e, "default.wrapper", {}), a = n(e, [o, "wrapper"], {});
|
|
14
|
+
return /* @__PURE__ */ l("div", { css: [c, a, i], ...r, ref: t });
|
|
15
|
+
}), S = (s) => {
|
|
16
|
+
const {
|
|
17
|
+
theme: {
|
|
18
|
+
inlineNotification: t
|
|
19
|
+
} = {},
|
|
20
|
+
$variant: e,
|
|
21
|
+
styles: o = {},
|
|
22
|
+
...i
|
|
23
|
+
} = s, r = n(t, "default.content", {}), c = n(t, [e, "content"], {});
|
|
24
|
+
return /* @__PURE__ */ l("span", { css: [r, c, o], ...i });
|
|
25
|
+
};
|
|
26
|
+
export {
|
|
27
|
+
S as InlineNotificationMessageStyled,
|
|
28
|
+
u as InlineNotificationStyled
|
|
29
|
+
};
|
|
@@ -1 +1,21 @@
|
|
|
1
|
-
|
|
1
|
+
const t = "InlineNotification", a = "InlineNotificationComponent", i = {
|
|
2
|
+
ariaLive: "polite",
|
|
3
|
+
role: "status"
|
|
4
|
+
}, e = {
|
|
5
|
+
ariaLive: "assertive",
|
|
6
|
+
role: "alert"
|
|
7
|
+
}, o = {
|
|
8
|
+
default: i,
|
|
9
|
+
success: i,
|
|
10
|
+
info: i,
|
|
11
|
+
error: e,
|
|
12
|
+
warning: e
|
|
13
|
+
}, s = "basic";
|
|
14
|
+
export {
|
|
15
|
+
t as COMPONENT_NAME,
|
|
16
|
+
a as CONTENT_COMPONENT,
|
|
17
|
+
s as DEFAULT_VARIANT,
|
|
18
|
+
o as accessibilityValues,
|
|
19
|
+
i as defaultAriaValues,
|
|
20
|
+
e as errorAriaValues
|
|
21
|
+
};
|
|
@@ -1 +1,72 @@
|
|
|
1
|
-
"use client";
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsxs as a, jsx as r, Fragment as A } from "@emotion/react/jsx-runtime";
|
|
3
|
+
import { forwardRef as H } from "react";
|
|
4
|
+
import { DEFAULT_PROPS as e, COMPONENT_NAME as o, FOCUS_EXCLUDED_LIST as L } from "./constants.js";
|
|
5
|
+
import { useInputHandlers as P } from "./useInputHandlers.js";
|
|
6
|
+
import { InputStyled as U } from "./InputStyled.js";
|
|
7
|
+
import { InputWrapper as p } from "./InputWrapper/InputWrapper.js";
|
|
8
|
+
import { InputHelper as u } from "./InputHelper/InputHelper.js";
|
|
9
|
+
import { InputAdornment as h } from "./InputAdornment/InputAdornment.js";
|
|
10
|
+
import { useTheme as g } from "../../../hooks/useTheme/useTheme.js";
|
|
11
|
+
import { SizeVariant as j } from "../../../types/common.js";
|
|
12
|
+
const z = H((f, b) => {
|
|
13
|
+
const {
|
|
14
|
+
theme: I
|
|
15
|
+
} = g(), {
|
|
16
|
+
// Layout props
|
|
17
|
+
width: y,
|
|
18
|
+
className: N = e.className,
|
|
19
|
+
styles: S = e.styles,
|
|
20
|
+
// Input behavior props
|
|
21
|
+
variant: i = e.variant,
|
|
22
|
+
color: s = e.color,
|
|
23
|
+
disabled: _ = e.disabled,
|
|
24
|
+
readOnly: w = e.readOnly,
|
|
25
|
+
// Accessibility props
|
|
26
|
+
ariaRequired: x = e.ariaRequired,
|
|
27
|
+
role: D = e.role,
|
|
28
|
+
tabIndex: E = e.tabIndex,
|
|
29
|
+
ariaDescribedBy: l,
|
|
30
|
+
// Event handling props
|
|
31
|
+
debounceCallbackTime: O,
|
|
32
|
+
onChange: T,
|
|
33
|
+
onKeyDown: C,
|
|
34
|
+
onMouseDown: M,
|
|
35
|
+
onBlur: v,
|
|
36
|
+
// Adornments
|
|
37
|
+
adornmentStart: d,
|
|
38
|
+
adornmentEnd: m,
|
|
39
|
+
// Helper text
|
|
40
|
+
label: t,
|
|
41
|
+
helperText: n,
|
|
42
|
+
...F
|
|
43
|
+
} = f, c = !L.includes(i), R = !!(t || n), {
|
|
44
|
+
handlers: $,
|
|
45
|
+
isMouseInteraction: q
|
|
46
|
+
} = P({
|
|
47
|
+
onKeyDown: C,
|
|
48
|
+
onBlur: v,
|
|
49
|
+
onMouseDown: M,
|
|
50
|
+
onChange: T,
|
|
51
|
+
debounceCallbackTime: O
|
|
52
|
+
});
|
|
53
|
+
return /* @__PURE__ */ a(p, { as: "label", withGap: R, className: N, width: y, styles: S, children: [
|
|
54
|
+
t && /* @__PURE__ */ r(u, { children: t }),
|
|
55
|
+
/* @__PURE__ */ a(p, { children: [
|
|
56
|
+
d && /* @__PURE__ */ r(h, { children: d }),
|
|
57
|
+
/* @__PURE__ */ r(U, { $isMouseInteraction: q && c, $color: s, ref: b, disabled: _, role: D, theme: I, type: i, readOnly: w, tabIndex: E, "aria-required": x, "data-testid": o, ...$, ...l ? {
|
|
58
|
+
"aria-describedby": l
|
|
59
|
+
} : {}, ...F }),
|
|
60
|
+
c && /* @__PURE__ */ a(A, { children: [
|
|
61
|
+
/* @__PURE__ */ r("div", { className: `${o}__border` }),
|
|
62
|
+
/* @__PURE__ */ r("div", { className: `${o}__outline` })
|
|
63
|
+
] }),
|
|
64
|
+
m && /* @__PURE__ */ r(h, { children: m })
|
|
65
|
+
] }),
|
|
66
|
+
n && /* @__PURE__ */ r(u, { color: s, size: j.Sm, children: n })
|
|
67
|
+
] });
|
|
68
|
+
});
|
|
69
|
+
z.displayName = o;
|
|
70
|
+
export {
|
|
71
|
+
z as Input
|
|
72
|
+
};
|
|
@@ -1 +1,18 @@
|
|
|
1
|
-
"use client";
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx as n } from "@emotion/react/jsx-runtime";
|
|
3
|
+
import { forwardRef as i } from "react";
|
|
4
|
+
import { COMPONENT_NAME as t } from "./constants.js";
|
|
5
|
+
import { InputAdornmentStyled as p } from "./InputAdornmentStyled.js";
|
|
6
|
+
import { useTheme as d } from "../../../../hooks/useTheme/useTheme.js";
|
|
7
|
+
const f = i((r, e) => {
|
|
8
|
+
const {
|
|
9
|
+
theme: o
|
|
10
|
+
} = d(), {
|
|
11
|
+
children: m
|
|
12
|
+
} = r;
|
|
13
|
+
return /* @__PURE__ */ n(p, { ref: e, theme: o, "data-testid": t, children: m });
|
|
14
|
+
});
|
|
15
|
+
f.displayName = t;
|
|
16
|
+
export {
|
|
17
|
+
f as InputAdornment
|
|
18
|
+
};
|
|
@@ -1 +1,15 @@
|
|
|
1
|
-
"use client";
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx as r } from "@emotion/react/jsx-runtime";
|
|
3
|
+
import { get as s } from "../../../../utils/helpers.js";
|
|
4
|
+
const c = (t) => {
|
|
5
|
+
const {
|
|
6
|
+
theme: {
|
|
7
|
+
input: e
|
|
8
|
+
} = {},
|
|
9
|
+
...o
|
|
10
|
+
} = t, n = [s(e, "adornment.default", {})];
|
|
11
|
+
return /* @__PURE__ */ r("div", { css: n, ...o });
|
|
12
|
+
};
|
|
13
|
+
export {
|
|
14
|
+
c as InputAdornmentStyled
|
|
15
|
+
};
|
|
@@ -1 +1,22 @@
|
|
|
1
|
-
"use client";
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx as n } from "@emotion/react/jsx-runtime";
|
|
3
|
+
import { forwardRef as a } from "react";
|
|
4
|
+
import { COMPONENT_NAME as r } from "./constants.js";
|
|
5
|
+
import { InputHelperStyled as f } from "./InputHelperStyled.js";
|
|
6
|
+
import { useTheme as s } from "../../../../hooks/useTheme/useTheme.js";
|
|
7
|
+
import { InputColorVariant as l } from "../../../../types/input.js";
|
|
8
|
+
import { SizeVariant as c } from "../../../../types/common.js";
|
|
9
|
+
const d = a((o, t) => {
|
|
10
|
+
const {
|
|
11
|
+
theme: e
|
|
12
|
+
} = s(), {
|
|
13
|
+
children: m,
|
|
14
|
+
size: i = c.Md,
|
|
15
|
+
color: p = l.Primary
|
|
16
|
+
} = o;
|
|
17
|
+
return /* @__PURE__ */ n(f, { $size: i, $color: p, ref: t, theme: e, "data-testid": r, children: m });
|
|
18
|
+
});
|
|
19
|
+
d.displayName = r;
|
|
20
|
+
export {
|
|
21
|
+
d as InputHelper
|
|
22
|
+
};
|
|
@@ -1 +1,17 @@
|
|
|
1
|
-
"use client";
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx as l } from "@emotion/react/jsx-runtime";
|
|
3
|
+
import { get as t } from "../../../../utils/helpers.js";
|
|
4
|
+
const u = (s) => {
|
|
5
|
+
const {
|
|
6
|
+
theme: {
|
|
7
|
+
input: r
|
|
8
|
+
} = {},
|
|
9
|
+
$color: n,
|
|
10
|
+
$size: e,
|
|
11
|
+
...p
|
|
12
|
+
} = s, o = t(r, "helper", {}), c = [t(o, ["default", e], {}), t(o, [n, e], {})];
|
|
13
|
+
return /* @__PURE__ */ l("div", { css: c, ...p });
|
|
14
|
+
};
|
|
15
|
+
export {
|
|
16
|
+
u as InputHelperStyled
|
|
17
|
+
};
|
|
@@ -1 +1,18 @@
|
|
|
1
|
-
"use client";
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx as u } from "@emotion/react/jsx-runtime";
|
|
3
|
+
import { forwardRef as m } from "react";
|
|
4
|
+
import { get as t } from "../../../utils/helpers.js";
|
|
5
|
+
const d = m((e, n) => {
|
|
6
|
+
const {
|
|
7
|
+
theme: {
|
|
8
|
+
input: r
|
|
9
|
+
} = {},
|
|
10
|
+
$isMouseInteraction: s,
|
|
11
|
+
$color: c,
|
|
12
|
+
...i
|
|
13
|
+
} = e, o = t(r, "input", {}), p = [t(o, "default", {}), t(o, [s ? "mouseInteraction" : "defaultInteraction"], {}), t(o, c, {})];
|
|
14
|
+
return /* @__PURE__ */ u("input", { css: p, ...i, ref: n });
|
|
15
|
+
});
|
|
16
|
+
export {
|
|
17
|
+
d as InputStyled
|
|
18
|
+
};
|
|
@@ -1 +1,22 @@
|
|
|
1
|
-
"use client";
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx as d } from "@emotion/react/jsx-runtime";
|
|
3
|
+
import { forwardRef as f } from "react";
|
|
4
|
+
import { DEFAULT_AS_ELEMENT as n, COMPONENT_NAME as t } from "./constants.js";
|
|
5
|
+
import { InputWrapperStyled as h } from "./InputWrapperStyled.js";
|
|
6
|
+
import { useTheme as E } from "../../../../hooks/useTheme/useTheme.js";
|
|
7
|
+
const c = f((r, e) => {
|
|
8
|
+
const {
|
|
9
|
+
theme: o
|
|
10
|
+
} = E(), {
|
|
11
|
+
children: p,
|
|
12
|
+
as: i = n,
|
|
13
|
+
width: m,
|
|
14
|
+
withGap: a,
|
|
15
|
+
...s
|
|
16
|
+
} = r;
|
|
17
|
+
return /* @__PURE__ */ d(h, { $as: i, $width: m, $withGap: a, ref: e, theme: o, "data-testid": t, ...s, children: p });
|
|
18
|
+
});
|
|
19
|
+
c.displayName = t;
|
|
20
|
+
export {
|
|
21
|
+
c as InputWrapper
|
|
22
|
+
};
|
|
@@ -1 +1,21 @@
|
|
|
1
|
-
"use client";
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx as a } from "@emotion/react/jsx-runtime";
|
|
3
|
+
import { get as t } from "../../../../utils/helpers.js";
|
|
4
|
+
const u = (p) => {
|
|
5
|
+
const {
|
|
6
|
+
theme: {
|
|
7
|
+
input: s
|
|
8
|
+
} = {},
|
|
9
|
+
$width: e,
|
|
10
|
+
$as: r = "div",
|
|
11
|
+
$withGap: n,
|
|
12
|
+
styles: i = {},
|
|
13
|
+
...c
|
|
14
|
+
} = p, o = t(s, "wrapper", {}), m = [t(o, "default", {}), n ? t(o, "withGap", {}) : {}, e ? {
|
|
15
|
+
width: e
|
|
16
|
+
} : {}, i];
|
|
17
|
+
return /* @__PURE__ */ a(r, { css: m, ...c });
|
|
18
|
+
};
|
|
19
|
+
export {
|
|
20
|
+
u as InputWrapperStyled
|
|
21
|
+
};
|
|
@@ -1 +1,18 @@
|
|
|
1
|
-
|
|
1
|
+
import { InputVariantType as a, InputColorVariant as e, InputRole as t } from "../../../types/input.js";
|
|
2
|
+
import { TabIndex as o } from "../../../types/accesability.js";
|
|
3
|
+
const l = "Input", s = {
|
|
4
|
+
variant: a.Text,
|
|
5
|
+
color: e.Primary,
|
|
6
|
+
className: "",
|
|
7
|
+
disabled: !1,
|
|
8
|
+
readOnly: !1,
|
|
9
|
+
ariaRequired: !1,
|
|
10
|
+
role: t.Textbox,
|
|
11
|
+
tabIndex: o.Default,
|
|
12
|
+
styles: {}
|
|
13
|
+
}, i = [a.Checkbox, a.Radio, a.Range];
|
|
14
|
+
export {
|
|
15
|
+
l as COMPONENT_NAME,
|
|
16
|
+
s as DEFAULT_PROPS,
|
|
17
|
+
i as FOCUS_EXCLUDED_LIST
|
|
18
|
+
};
|
|
@@ -1 +1,31 @@
|
|
|
1
|
-
"use client";
|
|
1
|
+
"use client";
|
|
2
|
+
import { useState as A, useCallback as d } from "react";
|
|
3
|
+
import { KEYBOARD_KEYS as E } from "../../../constants/keyboard.js";
|
|
4
|
+
import { debounce as i } from "../../../utils/helpers.js";
|
|
5
|
+
const n = ({
|
|
6
|
+
onMouseDown: e,
|
|
7
|
+
onChange: c,
|
|
8
|
+
onKeyDown: s,
|
|
9
|
+
onBlur: r,
|
|
10
|
+
debounceCallbackTime: f
|
|
11
|
+
}) => {
|
|
12
|
+
const [m, a] = A(!1), u = d((t) => {
|
|
13
|
+
a(!0), e == null || e(t);
|
|
14
|
+
}, [e]), p = d((t) => {
|
|
15
|
+
t.key === E.TAB && a(!1), s == null || s(t);
|
|
16
|
+
}, [s]), h = d((t) => {
|
|
17
|
+
a(!1), r == null || r(t);
|
|
18
|
+
}, [r]), I = typeof f == "number" && s ? i(p, f) : p, l = typeof f == "number" && c ? i(c, f) : c;
|
|
19
|
+
return {
|
|
20
|
+
handlers: {
|
|
21
|
+
onMouseDown: u,
|
|
22
|
+
onKeyDown: I,
|
|
23
|
+
onBlur: h,
|
|
24
|
+
onChange: l
|
|
25
|
+
},
|
|
26
|
+
isMouseInteraction: m
|
|
27
|
+
};
|
|
28
|
+
};
|
|
29
|
+
export {
|
|
30
|
+
n as useInputHandlers
|
|
31
|
+
};
|
|
@@ -1 +1,40 @@
|
|
|
1
|
-
"use client";
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsxs as N, jsx as p } from "@emotion/react/jsx-runtime";
|
|
3
|
+
import { forwardRef as _, useRef as y, useImperativeHandle as A } from "react";
|
|
4
|
+
import { INPUT_FILE_DEFAULT_LABEL_VALUE as C, COMPONENT_NAME as a } from "./constants.js";
|
|
5
|
+
import { InputFileWrapperStyled as T, InputFileStyled as x } from "./InputFileStyled.js";
|
|
6
|
+
import { Button as B } from "../Button/Button.js";
|
|
7
|
+
import { useTheme as O } from "../../../hooks/useTheme/useTheme.js";
|
|
8
|
+
import { ButtonVariant as P } from "../../../types/button.js";
|
|
9
|
+
const U = _((m, o) => {
|
|
10
|
+
const {
|
|
11
|
+
styles: c = {},
|
|
12
|
+
accept: u,
|
|
13
|
+
capture: d,
|
|
14
|
+
multiple: f,
|
|
15
|
+
disabled: t,
|
|
16
|
+
onChange: e,
|
|
17
|
+
onClick: r,
|
|
18
|
+
isIcon: h,
|
|
19
|
+
children: I = C,
|
|
20
|
+
buttonProps: E,
|
|
21
|
+
...F
|
|
22
|
+
} = m, {
|
|
23
|
+
theme: l
|
|
24
|
+
} = O(), n = y(null);
|
|
25
|
+
A(o, () => n.current);
|
|
26
|
+
const L = (i) => {
|
|
27
|
+
var s;
|
|
28
|
+
t || ((s = n.current) == null || s.click(), r == null || r(i));
|
|
29
|
+
};
|
|
30
|
+
return /* @__PURE__ */ N(T, { theme: l, styles: c, ref: o, "data-testid": a, children: [
|
|
31
|
+
/* @__PURE__ */ p(x, { ref: n, theme: l, accept: u, capture: d, multiple: f, disabled: t, onChange: (i) => {
|
|
32
|
+
e == null || e(i);
|
|
33
|
+
}, ...F }),
|
|
34
|
+
/* @__PURE__ */ p(B, { isIcon: h, variant: P.Outlined, disabled: t, onClick: L, ...E, children: I })
|
|
35
|
+
] });
|
|
36
|
+
});
|
|
37
|
+
U.displayName = a;
|
|
38
|
+
export {
|
|
39
|
+
U as InputFile
|
|
40
|
+
};
|
|
@@ -1 +1,27 @@
|
|
|
1
|
-
"use client";
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx as s } from "@emotion/react/jsx-runtime";
|
|
3
|
+
import { forwardRef as p } from "react";
|
|
4
|
+
import { INPUT_FILE_TYPE as m } from "./constants.js";
|
|
5
|
+
import { get as i } from "../../../utils/helpers.js";
|
|
6
|
+
const y = p((t, e) => {
|
|
7
|
+
const {
|
|
8
|
+
theme: {
|
|
9
|
+
inputfile: r
|
|
10
|
+
} = {},
|
|
11
|
+
styles: o = {},
|
|
12
|
+
...n
|
|
13
|
+
} = t, f = [i(r, "default", {}), o];
|
|
14
|
+
return /* @__PURE__ */ s("div", { css: f, ...n, ref: e });
|
|
15
|
+
}), I = p((t, e) => {
|
|
16
|
+
const {
|
|
17
|
+
theme: {
|
|
18
|
+
inputfile: r
|
|
19
|
+
} = {},
|
|
20
|
+
...o
|
|
21
|
+
} = t;
|
|
22
|
+
return /* @__PURE__ */ s("input", { type: m, css: i(r, "input", {}), ...o, ref: e });
|
|
23
|
+
});
|
|
24
|
+
export {
|
|
25
|
+
I as InputFileStyled,
|
|
26
|
+
y as InputFileWrapperStyled
|
|
27
|
+
};
|
|
@@ -1 +1,6 @@
|
|
|
1
|
-
|
|
1
|
+
const E = "InputFile", _ = "Browse Files", L = "file";
|
|
2
|
+
export {
|
|
3
|
+
E as COMPONENT_NAME,
|
|
4
|
+
_ as INPUT_FILE_DEFAULT_LABEL_VALUE,
|
|
5
|
+
L as INPUT_FILE_TYPE
|
|
6
|
+
};
|
|
@@ -1 +1,27 @@
|
|
|
1
|
-
"use client";
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx as p } from "@emotion/react/jsx-runtime";
|
|
3
|
+
import { forwardRef as c } from "react";
|
|
4
|
+
import { COMPONENT_NAME as o } from "./constants.js";
|
|
5
|
+
import { LabelStyled as n } from "./LabelStyled.js";
|
|
6
|
+
import { useTheme as d } from "../../../hooks/useTheme/useTheme.js";
|
|
7
|
+
const N = c((t, a) => {
|
|
8
|
+
const {
|
|
9
|
+
className: m = "",
|
|
10
|
+
htmlFor: r,
|
|
11
|
+
onClick: i,
|
|
12
|
+
ariaLabel: e,
|
|
13
|
+
children: l,
|
|
14
|
+
...s
|
|
15
|
+
} = t, {
|
|
16
|
+
theme: f
|
|
17
|
+
} = d();
|
|
18
|
+
return /* @__PURE__ */ p(n, { ref: a, theme: f, className: m, onClick: i, "data-testid": o, ...r ? {
|
|
19
|
+
htmlFor: r
|
|
20
|
+
} : {}, ...e ? {
|
|
21
|
+
"aria-label": e
|
|
22
|
+
} : {}, ...s, children: l });
|
|
23
|
+
});
|
|
24
|
+
N.displayName = o;
|
|
25
|
+
export {
|
|
26
|
+
N as Label
|
|
27
|
+
};
|
|
@@ -1 +1,17 @@
|
|
|
1
|
-
"use client";
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx as m } from "@emotion/react/jsx-runtime";
|
|
3
|
+
import { forwardRef as f } from "react";
|
|
4
|
+
import { get as c } from "../../../utils/helpers.js";
|
|
5
|
+
const d = f((e, t) => {
|
|
6
|
+
const {
|
|
7
|
+
styles: r = {},
|
|
8
|
+
theme: {
|
|
9
|
+
label: o
|
|
10
|
+
} = {},
|
|
11
|
+
...s
|
|
12
|
+
} = e, l = [c(o, "default", {}), r];
|
|
13
|
+
return /* @__PURE__ */ m("label", { css: l, ...s, ref: t });
|
|
14
|
+
});
|
|
15
|
+
export {
|
|
16
|
+
d as LabelStyled
|
|
17
|
+
};
|