gd-design-library 0.7.0 → 0.7.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +97 -0
- package/ai/README.md +137 -0
- package/ai/schemas/components/Row.d.ts +21 -1
- package/index.d.ts +0 -1
- package/index.js +170 -181
- package/llms.txt +309 -0
- package/package.json +19 -1
- package/CHANGELOG.md +0 -177
- package/ai/codegen.js +0 -51
- package/ai/prompts.js +0 -23
- package/ai/schemas/components/Accordion.js +0 -37
- package/ai/schemas/components/Avatar.js +0 -67
- package/ai/schemas/components/Breadcrumbs.js +0 -51
- package/ai/schemas/components/Button.js +0 -92
- package/ai/schemas/components/Card.js +0 -74
- package/ai/schemas/components/Carousel.js +0 -108
- package/ai/schemas/components/ChatBubble.js +0 -34
- package/ai/schemas/components/ChatContainer.js +0 -48
- package/ai/schemas/components/Column.js +0 -69
- package/ai/schemas/components/ContentCarousel.js +0 -72
- package/ai/schemas/components/Counter.js +0 -37
- package/ai/schemas/components/DragAndDropFiles.js +0 -50
- package/ai/schemas/components/FlexContainer.js +0 -133
- package/ai/schemas/components/Form.js +0 -36
- package/ai/schemas/components/Icon.js +0 -41
- package/ai/schemas/components/Image.js +0 -55
- package/ai/schemas/components/InlineNotification.js +0 -23
- package/ai/schemas/components/Input.js +0 -142
- package/ai/schemas/components/InputFile.js +0 -55
- package/ai/schemas/components/Label.js +0 -43
- package/ai/schemas/components/Link.js +0 -58
- package/ai/schemas/components/List.js +0 -35
- package/ai/schemas/components/Loader.js +0 -55
- package/ai/schemas/components/Modal.js +0 -51
- package/ai/schemas/components/Portal.js +0 -49
- package/ai/schemas/components/Price.js +0 -25
- package/ai/schemas/components/ProgressBar.js +0 -53
- package/ai/schemas/components/RadioGroup.js +0 -80
- package/ai/schemas/components/Rating.js +0 -64
- package/ai/schemas/components/Row.js +0 -61
- package/ai/schemas/components/Scroll.js +0 -35
- package/ai/schemas/components/Search.js +0 -72
- package/ai/schemas/components/Select.js +0 -84
- package/ai/schemas/components/Separator.js +0 -62
- package/ai/schemas/components/Skeleton.js +0 -48
- package/ai/schemas/components/Slider.js +0 -42
- package/ai/schemas/components/Snackbar.js +0 -57
- package/ai/schemas/components/SnackbarManager.js +0 -13
- package/ai/schemas/components/Stepper.js +0 -38
- package/ai/schemas/components/Switch.js +0 -64
- package/ai/schemas/components/Tabs.js +0 -37
- package/ai/schemas/components/Textarea.js +0 -88
- package/ai/schemas/components/Toggle.js +0 -41
- package/ai/schemas/components/Tooltip.js +0 -61
- package/ai/schemas/components/Typography.js +0 -56
- package/ai/schemas/components/Wrapper.js +0 -46
- package/ai/schemas/components.js +0 -56
- package/ai/schemas/hooks/useTheme.js +0 -48
- package/components/core/Breadcrumbs/Breadcrumbs.d.ts +0 -2
- package/components/core/Breadcrumbs/Breadcrumbs.js +0 -34
- package/components/core/Breadcrumbs/Breadcrumbs.types.d.ts +0 -14
- package/components/core/Breadcrumbs/BreadcrumbsStyled.d.ts +0 -6
- package/components/core/Breadcrumbs/BreadcrumbsStyled.js +0 -58
- package/components/core/Breadcrumbs/constants.d.ts +0 -1
- package/components/core/Breadcrumbs/constants.js +0 -4
- package/components/core/Breadcrumbs/index.d.ts +0 -2
- package/components/core/Button/Button.d.ts +0 -2
- package/components/core/Button/Button.js +0 -43
- package/components/core/Button/Button.types.d.ts +0 -26
- package/components/core/Button/ButtonStyled.d.ts +0 -5
- package/components/core/Button/ButtonStyled.js +0 -53
- package/components/core/Button/constants.d.ts +0 -1
- package/components/core/Button/constants.js +0 -4
- package/components/core/Button/index.d.ts +0 -2
- package/components/core/Dropdown/Dropdown.d.ts +0 -3
- package/components/core/Dropdown/Dropdown.js +0 -38
- package/components/core/Dropdown/Dropdown.types.d.ts +0 -8
- package/components/core/Dropdown/DropdownStyled.d.ts +0 -2
- package/components/core/Dropdown/DropdownStyled.js +0 -17
- package/components/core/Dropdown/constants.d.ts +0 -1
- package/components/core/Dropdown/constants.js +0 -4
- package/components/core/Dropdown/hooks/index.d.ts +0 -1
- package/components/core/Dropdown/hooks/useDropdown.d.ts +0 -3
- package/components/core/Dropdown/hooks/useDropdown.js +0 -12
- package/components/core/Dropdown/index.d.ts +0 -3
- package/components/core/DropdownItem/DropdownItem.d.ts +0 -2
- package/components/core/DropdownItem/DropdownItem.js +0 -45
- package/components/core/DropdownItem/DropdownItem.types.d.ts +0 -9
- package/components/core/DropdownItem/DropdownItemStyled.d.ts +0 -2
- package/components/core/DropdownItem/DropdownItemStyled.js +0 -17
- package/components/core/DropdownItem/constants.d.ts +0 -1
- package/components/core/DropdownItem/constants.js +0 -4
- package/components/core/DropdownItem/index.d.ts +0 -2
- package/components/core/Form/Form.d.ts +0 -2
- package/components/core/Form/Form.js +0 -48
- package/components/core/Form/Form.types.d.ts +0 -29
- package/components/core/Form/FormStyled.d.ts +0 -2
- package/components/core/Form/FormStyled.js +0 -16
- package/components/core/Form/constants.d.ts +0 -1
- package/components/core/Form/constants.js +0 -4
- package/components/core/Form/index.d.ts +0 -2
- package/components/core/Form/utils.d.ts +0 -3
- package/components/core/Form/utils.js +0 -34
- package/components/core/Icon/Icon.d.ts +0 -4
- package/components/core/Icon/Icon.js +0 -40
- package/components/core/Icon/Icon.types.d.ts +0 -11
- package/components/core/Icon/constants.d.ts +0 -317
- package/components/core/Icon/constants.js +0 -102
- package/components/core/Icon/index.d.ts +0 -2
- package/components/core/Icon/utils.d.ts +0 -3
- package/components/core/Image/Image.d.ts +0 -2
- package/components/core/Image/Image.js +0 -40
- package/components/core/Image/Image.types.d.ts +0 -27
- package/components/core/Image/ImageStyled.d.ts +0 -5
- package/components/core/Image/ImageStyled.js +0 -54
- package/components/core/Image/constants.d.ts +0 -1
- package/components/core/Image/constants.js +0 -4
- package/components/core/Image/index.d.ts +0 -2
- package/components/core/InlineNotification/InlineNotification.d.ts +0 -2
- package/components/core/InlineNotification/InlineNotification.js +0 -38
- package/components/core/InlineNotification/InlineNotification.types.d.ts +0 -9
- package/components/core/InlineNotification/InlineNotificationStyled.d.ts +0 -3
- package/components/core/InlineNotification/InlineNotificationStyled.js +0 -29
- package/components/core/InlineNotification/constants.d.ts +0 -16
- package/components/core/InlineNotification/constants.js +0 -21
- package/components/core/InlineNotification/index.d.ts +0 -2
- package/components/core/Input/Input.d.ts +0 -2
- package/components/core/Input/Input.js +0 -73
- package/components/core/Input/Input.types.d.ts +0 -74
- package/components/core/Input/InputAdornment/InputAdornment.d.ts +0 -2
- package/components/core/Input/InputAdornment/InputAdornment.js +0 -18
- package/components/core/Input/InputAdornment/InputAdornmentStyled.d.ts +0 -2
- package/components/core/Input/InputAdornment/InputAdornmentStyled.js +0 -15
- package/components/core/Input/InputAdornment/constants.d.ts +0 -1
- package/components/core/Input/InputAdornment/constants.js +0 -4
- package/components/core/Input/InputAdornment/index.d.ts +0 -1
- package/components/core/Input/InputHelper/InputHelper.d.ts +0 -2
- package/components/core/Input/InputHelper/InputHelper.js +0 -22
- package/components/core/Input/InputHelper/InputHelperStyled.d.ts +0 -2
- package/components/core/Input/InputHelper/InputHelperStyled.js +0 -17
- package/components/core/Input/InputHelper/constants.d.ts +0 -1
- package/components/core/Input/InputHelper/constants.js +0 -4
- package/components/core/Input/InputHelper/index.d.ts +0 -1
- package/components/core/Input/InputStyled.d.ts +0 -2
- package/components/core/Input/InputStyled.js +0 -18
- package/components/core/Input/InputWrapper/InputWrapper.d.ts +0 -2
- package/components/core/Input/InputWrapper/InputWrapper.js +0 -22
- package/components/core/Input/InputWrapper/InputWrapperStyled.d.ts +0 -2
- package/components/core/Input/InputWrapper/InputWrapperStyled.js +0 -21
- package/components/core/Input/InputWrapper/constants.d.ts +0 -1
- package/components/core/Input/InputWrapper/constants.js +0 -4
- package/components/core/Input/InputWrapper/index.d.ts +0 -1
- package/components/core/Input/constants.d.ts +0 -14
- package/components/core/Input/constants.js +0 -18
- package/components/core/Input/index.d.ts +0 -2
- package/components/core/Input/useInputHandlers.d.ts +0 -17
- package/components/core/Input/useInputHandlers.js +0 -31
- package/components/core/InputFile/InputFile.d.ts +0 -34
- package/components/core/InputFile/InputFile.js +0 -40
- package/components/core/InputFile/InputFile.types.d.ts +0 -18
- package/components/core/InputFile/InputFileStyled.d.ts +0 -3
- package/components/core/InputFile/InputFileStyled.js +0 -27
- package/components/core/InputFile/constants.d.ts +0 -3
- package/components/core/InputFile/constants.js +0 -6
- package/components/core/InputFile/index.d.ts +0 -2
- package/components/core/Label/Label.d.ts +0 -2
- package/components/core/Label/Label.js +0 -28
- package/components/core/Label/Label.types.d.ts +0 -10
- package/components/core/Label/LabelStyled.d.ts +0 -2
- package/components/core/Label/LabelStyled.js +0 -21
- package/components/core/Label/constants.d.ts +0 -1
- package/components/core/Label/constants.js +0 -4
- package/components/core/Label/index.d.ts +0 -2
- package/components/core/Link/Link.d.ts +0 -2
- package/components/core/Link/Link.js +0 -43
- package/components/core/Link/Link.types.d.ts +0 -21
- package/components/core/Link/LinkStyled.d.ts +0 -2
- package/components/core/Link/LinkStyled.js +0 -22
- package/components/core/Link/constants.d.ts +0 -1
- package/components/core/Link/constants.js +0 -4
- package/components/core/Link/index.d.ts +0 -2
- package/components/core/List/List.d.ts +0 -3
- package/components/core/List/List.js +0 -45
- package/components/core/List/List.types.d.ts +0 -10
- package/components/core/List/ListStyled.d.ts +0 -3
- package/components/core/List/ListStyled.js +0 -31
- package/components/core/List/constants.d.ts +0 -1
- package/components/core/List/constants.js +0 -4
- package/components/core/List/index.d.ts +0 -2
- package/components/core/Loader/Loader.d.ts +0 -2
- package/components/core/Loader/Loader.js +0 -29
- package/components/core/Loader/Loader.types.d.ts +0 -18
- package/components/core/Loader/LoaderStyled.d.ts +0 -2
- package/components/core/Loader/LoaderStyled.js +0 -41
- package/components/core/Loader/constants.d.ts +0 -2
- package/components/core/Loader/constants.js +0 -6
- package/components/core/Loader/index.d.ts +0 -2
- package/components/core/Loader/utils.d.ts +0 -11
- package/components/core/Loader/utils.js +0 -37
- package/components/core/Menu/Menu.d.ts +0 -2
- package/components/core/Menu/Menu.js +0 -106
- package/components/core/Menu/Menu.types.d.ts +0 -15
- package/components/core/Menu/MenuStyled.d.ts +0 -3
- package/components/core/Menu/MenuStyled.js +0 -31
- package/components/core/Menu/constants.d.ts +0 -10
- package/components/core/Menu/constants.js +0 -24
- package/components/core/Menu/index.d.ts +0 -2
- package/components/core/Modal/Modal.d.ts +0 -2
- package/components/core/Modal/Modal.js +0 -47
- package/components/core/Modal/Modal.types.d.ts +0 -18
- package/components/core/Modal/ModalStyled.d.ts +0 -8
- package/components/core/Modal/ModalStyled.js +0 -76
- package/components/core/Modal/constants.d.ts +0 -1
- package/components/core/Modal/constants.js +0 -4
- package/components/core/Modal/index.d.ts +0 -2
- package/components/core/Portal/Portal.d.ts +0 -2
- package/components/core/Portal/Portal.js +0 -26
- package/components/core/Portal/Portal.types.d.ts +0 -10
- package/components/core/Portal/constants.d.ts +0 -1
- package/components/core/Portal/index.d.ts +0 -2
- package/components/core/Scroll/Scroll.d.ts +0 -19
- package/components/core/Scroll/Scroll.js +0 -40
- package/components/core/Scroll/Scroll.types.d.ts +0 -19
- package/components/core/Scroll/ScrollBar.d.ts +0 -2
- package/components/core/Scroll/ScrollBar.js +0 -68
- package/components/core/Scroll/ScrollStyled.d.ts +0 -6
- package/components/core/Scroll/ScrollStyled.js +0 -56
- package/components/core/Scroll/constants.d.ts +0 -3
- package/components/core/Scroll/constants.js +0 -6
- package/components/core/Scroll/index.d.ts +0 -2
- package/components/core/Scroll/utils.d.ts +0 -5
- package/components/core/Scroll/utils.js +0 -41
- package/components/core/Select/Select.d.ts +0 -2
- package/components/core/Select/Select.js +0 -192
- package/components/core/Select/Select.types.d.ts +0 -69
- package/components/core/Select/SelectStyled.d.ts +0 -8
- package/components/core/Select/SelectStyled.js +0 -67
- package/components/core/Select/constants.d.ts +0 -2
- package/components/core/Select/constants.js +0 -5
- package/components/core/Select/hooks/index.d.ts +0 -1
- package/components/core/Select/hooks/useSelectContext.d.ts +0 -3
- package/components/core/Select/hooks/useSelectContext.js +0 -12
- package/components/core/Select/index.d.ts +0 -3
- package/components/core/Separator/Separator.d.ts +0 -2
- package/components/core/Separator/Separator.js +0 -36
- package/components/core/Separator/Separator.types.d.ts +0 -31
- package/components/core/Separator/SeparatorStyled.d.ts +0 -4
- package/components/core/Separator/SeparatorStyled.js +0 -61
- package/components/core/Separator/constants.d.ts +0 -1
- package/components/core/Separator/constants.js +0 -4
- package/components/core/Separator/index.d.ts +0 -2
- package/components/core/Skeleton/Skeleton.d.ts +0 -2
- package/components/core/Skeleton/Skeleton.js +0 -24
- package/components/core/Skeleton/Skeleton.types.d.ts +0 -17
- package/components/core/Skeleton/SkeletonStyled.d.ts +0 -2
- package/components/core/Skeleton/SkeletonStyled.js +0 -28
- package/components/core/Skeleton/constants.d.ts +0 -2
- package/components/core/Skeleton/constants.js +0 -6
- package/components/core/Skeleton/index.d.ts +0 -2
- package/components/core/Slider/Slider.d.ts +0 -20
- package/components/core/Slider/Slider.js +0 -35
- package/components/core/Slider/Slider.types.d.ts +0 -17
- package/components/core/Slider/SliderStyled.d.ts +0 -2
- package/components/core/Slider/SliderStyled.js +0 -20
- package/components/core/Slider/constants.d.ts +0 -3
- package/components/core/Slider/constants.js +0 -6
- package/components/core/Slider/index.d.ts +0 -3
- package/components/core/Snackbar/Snackbar.d.ts +0 -2
- package/components/core/Snackbar/Snackbar.js +0 -48
- package/components/core/Snackbar/Snackbar.types.d.ts +0 -36
- package/components/core/Snackbar/SnackbarManager.d.ts +0 -3
- package/components/core/Snackbar/SnackbarManager.js +0 -48
- package/components/core/Snackbar/SnackbarStyled.d.ts +0 -12
- package/components/core/Snackbar/SnackbarStyled.js +0 -107
- package/components/core/Snackbar/constants.d.ts +0 -8
- package/components/core/Snackbar/constants.js +0 -10
- package/components/core/Snackbar/index.d.ts +0 -4
- package/components/core/Switch/Switch.d.ts +0 -2
- package/components/core/Switch/Switch.js +0 -46
- package/components/core/Switch/Switch.types.d.ts +0 -21
- package/components/core/Switch/SwitchStyled.d.ts +0 -6
- package/components/core/Switch/SwitchStyled.js +0 -56
- package/components/core/Switch/constants.d.ts +0 -1
- package/components/core/Switch/constants.js +0 -4
- package/components/core/Switch/index.d.ts +0 -2
- package/components/core/Textarea/Textarea.d.ts +0 -2
- package/components/core/Textarea/Textarea.js +0 -35
- package/components/core/Textarea/Textarea.types.d.ts +0 -42
- package/components/core/Textarea/Textarea.types.js +0 -6
- package/components/core/Textarea/TextareaStyled.d.ts +0 -2
- package/components/core/Textarea/TextareaStyled.js +0 -27
- package/components/core/Textarea/constants.d.ts +0 -1
- package/components/core/Textarea/constants.js +0 -4
- package/components/core/Textarea/hooks/index.d.ts +0 -2
- package/components/core/Textarea/hooks/useDynamicHeightAdjustment.d.ts +0 -2
- package/components/core/Textarea/hooks/useDynamicHeightAdjustment.js +0 -8
- package/components/core/Textarea/hooks/useResizeObserver.d.ts +0 -2
- package/components/core/Textarea/hooks/useResizeObserver.js +0 -24
- package/components/core/Textarea/index.d.ts +0 -2
- package/components/core/Toggle/Toggle.d.ts +0 -2
- package/components/core/Toggle/Toggle.js +0 -37
- package/components/core/Toggle/Toggle.types.d.ts +0 -17
- package/components/core/Toggle/ToggleStyled.d.ts +0 -2
- package/components/core/Toggle/ToggleStyled.js +0 -18
- package/components/core/Toggle/constants.d.ts +0 -1
- package/components/core/Toggle/constants.js +0 -4
- package/components/core/Toggle/index.d.ts +0 -2
- package/components/core/Tooltip/Tooltip.d.ts +0 -3
- package/components/core/Tooltip/Tooltip.js +0 -52
- package/components/core/Tooltip/Tooltip.types.d.ts +0 -22
- package/components/core/Tooltip/Tooltip.types.js +0 -4
- package/components/core/Tooltip/TooltipStyled.d.ts +0 -3
- package/components/core/Tooltip/TooltipStyled.js +0 -24
- package/components/core/Tooltip/constants.d.ts +0 -3
- package/components/core/Tooltip/constants.js +0 -6
- package/components/core/Tooltip/index.d.ts +0 -2
- package/components/core/Tooltip/utils.d.ts +0 -22
- package/components/core/Tooltip/utils.js +0 -78
- package/components/core/Typography/Typography.d.ts +0 -2
- package/components/core/Typography/Typography.js +0 -26
- package/components/core/Typography/Typography.types.d.ts +0 -20
- package/components/core/Typography/TypographyStyled.d.ts +0 -2
- package/components/core/Typography/TypographyStyled.js +0 -32
- package/components/core/Typography/constants.d.ts +0 -1
- package/components/core/Typography/constants.js +0 -4
- package/components/core/Typography/index.d.ts +0 -2
- package/components/core/Wrapper/Wrapper.d.ts +0 -3
- package/components/core/Wrapper/Wrapper.js +0 -21
- package/components/core/Wrapper/Wrapper.types.d.ts +0 -11
- package/components/core/Wrapper/WrapperStyled.d.ts +0 -2
- package/components/core/Wrapper/WrapperStyled.js +0 -24
- package/components/core/Wrapper/constants.d.ts +0 -1
- package/components/core/Wrapper/constants.js +0 -4
- package/components/core/Wrapper/index.d.ts +0 -2
- package/components/core/index.d.ts +0 -30
- package/components/core/types/events.types.d.ts +0 -7
- package/components/core/types/index.types.d.ts +0 -2
- package/components/core/types/roles.types.d.ts +0 -4
- package/components/core/types/roles.types.js +0 -4
- package/components/domainSpecific/Accordion/Accordion.d.ts +0 -2
- package/components/domainSpecific/Accordion/Accordion.js +0 -35
- package/components/domainSpecific/Accordion/Accordion.types.d.ts +0 -24
- package/components/domainSpecific/Accordion/AccordionContent/AccordionContent.d.ts +0 -2
- package/components/domainSpecific/Accordion/AccordionContent/AccordionContent.js +0 -21
- package/components/domainSpecific/Accordion/AccordionContent/index.d.ts +0 -1
- package/components/domainSpecific/Accordion/AccordionHeader/AccordionHeader.d.ts +0 -2
- package/components/domainSpecific/Accordion/AccordionHeader/AccordionHeader.js +0 -29
- package/components/domainSpecific/Accordion/AccordionHeader/index.d.ts +0 -1
- package/components/domainSpecific/Accordion/AccordionItem/AccordionItem.d.ts +0 -2
- package/components/domainSpecific/Accordion/AccordionItem/AccordionItem.js +0 -26
- package/components/domainSpecific/Accordion/AccordionItem/index.d.ts +0 -1
- package/components/domainSpecific/Accordion/AccordionStyled.d.ts +0 -5
- package/components/domainSpecific/Accordion/AccordionStyled.js +0 -39
- package/components/domainSpecific/Accordion/constants.d.ts +0 -5
- package/components/domainSpecific/Accordion/constants.js +0 -7
- package/components/domainSpecific/Accordion/hooks/index.d.ts +0 -1
- package/components/domainSpecific/Accordion/hooks/useAccordion.d.ts +0 -3
- package/components/domainSpecific/Accordion/hooks/useAccordion.js +0 -12
- package/components/domainSpecific/Accordion/index.d.ts +0 -4
- package/components/domainSpecific/Avatar/Avatar.d.ts +0 -4
- package/components/domainSpecific/Avatar/Avatar.js +0 -44
- package/components/domainSpecific/Avatar/Avatar.types.d.ts +0 -27
- package/components/domainSpecific/Avatar/AvatarStyled.d.ts +0 -6
- package/components/domainSpecific/Avatar/AvatarStyled.js +0 -63
- package/components/domainSpecific/Avatar/constants.d.ts +0 -3
- package/components/domainSpecific/Avatar/constants.js +0 -6
- package/components/domainSpecific/Avatar/index.d.ts +0 -2
- package/components/domainSpecific/Card/Card.d.ts +0 -20
- package/components/domainSpecific/Card/Card.js +0 -47
- package/components/domainSpecific/Card/Card.types.d.ts +0 -51
- package/components/domainSpecific/Card/CardButton/CardButton.d.ts +0 -4
- package/components/domainSpecific/Card/CardButton/CardButton.js +0 -25
- package/components/domainSpecific/Card/CardButton/CardButtonStyled.d.ts +0 -2
- package/components/domainSpecific/Card/CardButton/CardButtonStyled.js +0 -18
- package/components/domainSpecific/Card/CardButton/constants.d.ts +0 -1
- package/components/domainSpecific/Card/CardButton/constants.js +0 -4
- package/components/domainSpecific/Card/CardButton/index.d.ts +0 -1
- package/components/domainSpecific/Card/CardCounter/CardCounter.d.ts +0 -4
- package/components/domainSpecific/Card/CardCounter/CardCounter.js +0 -26
- package/components/domainSpecific/Card/CardCounter/CardCounterStyled.d.ts +0 -2
- package/components/domainSpecific/Card/CardCounter/CardCounterStyled.js +0 -17
- package/components/domainSpecific/Card/CardCounter/constants.d.ts +0 -1
- package/components/domainSpecific/Card/CardCounter/constants.js +0 -4
- package/components/domainSpecific/Card/CardCounter/index.d.ts +0 -1
- package/components/domainSpecific/Card/CardDescription/CardDescription.d.ts +0 -2
- package/components/domainSpecific/Card/CardDescription/CardDescription.js +0 -24
- package/components/domainSpecific/Card/CardDescription/CardDescriptionStyled.d.ts +0 -2
- package/components/domainSpecific/Card/CardDescription/CardDescriptionStyled.js +0 -24
- package/components/domainSpecific/Card/CardDescription/constants.d.ts +0 -6
- package/components/domainSpecific/Card/CardDescription/constants.js +0 -10
- package/components/domainSpecific/Card/CardDescription/index.d.ts +0 -1
- package/components/domainSpecific/Card/CardImage/CardImage.d.ts +0 -2
- package/components/domainSpecific/Card/CardImage/CardImage.js +0 -26
- package/components/domainSpecific/Card/CardImage/CardImageStyled.d.ts +0 -2
- package/components/domainSpecific/Card/CardImage/CardImageStyled.js +0 -18
- package/components/domainSpecific/Card/CardImage/constants.d.ts +0 -1
- package/components/domainSpecific/Card/CardImage/constants.js +0 -4
- package/components/domainSpecific/Card/CardImage/index.d.ts +0 -1
- package/components/domainSpecific/Card/CardPrice/CardPrice.d.ts +0 -2
- package/components/domainSpecific/Card/CardPrice/CardPrice.js +0 -22
- package/components/domainSpecific/Card/CardPrice/CardPriceStyled.d.ts +0 -2
- package/components/domainSpecific/Card/CardPrice/CardPriceStyled.js +0 -18
- package/components/domainSpecific/Card/CardPrice/constants.d.ts +0 -1
- package/components/domainSpecific/Card/CardPrice/constants.js +0 -4
- package/components/domainSpecific/Card/CardPrice/index.d.ts +0 -1
- package/components/domainSpecific/Card/CardRating/CardRating.d.ts +0 -2
- package/components/domainSpecific/Card/CardRating/CardRating.js +0 -30
- package/components/domainSpecific/Card/CardRating/CardRatingStyled.d.ts +0 -2
- package/components/domainSpecific/Card/CardRating/CardRatingStyled.js +0 -18
- package/components/domainSpecific/Card/CardRating/constants.d.ts +0 -3
- package/components/domainSpecific/Card/CardRating/constants.js +0 -6
- package/components/domainSpecific/Card/CardRating/index.d.ts +0 -1
- package/components/domainSpecific/Card/CardTitle/CardTitle.d.ts +0 -4
- package/components/domainSpecific/Card/CardTitle/CardTitle.js +0 -25
- package/components/domainSpecific/Card/CardTitle/CardTitleStyled.d.ts +0 -2
- package/components/domainSpecific/Card/CardTitle/CardTitleStyled.js +0 -24
- package/components/domainSpecific/Card/CardTitle/constants.d.ts +0 -6
- package/components/domainSpecific/Card/CardTitle/constants.js +0 -10
- package/components/domainSpecific/Card/CardTitle/index.d.ts +0 -1
- package/components/domainSpecific/Card/CartStyled.d.ts +0 -2
- package/components/domainSpecific/Card/CartStyled.js +0 -26
- package/components/domainSpecific/Card/constants.d.ts +0 -1
- package/components/domainSpecific/Card/constants.js +0 -4
- package/components/domainSpecific/Card/index.d.ts +0 -2
- package/components/domainSpecific/Carousel/Carousel.d.ts +0 -12
- package/components/domainSpecific/Carousel/Carousel.js +0 -137
- package/components/domainSpecific/Carousel/Carousel.types.d.ts +0 -35
- package/components/domainSpecific/Carousel/CarouselStyled.d.ts +0 -15
- package/components/domainSpecific/Carousel/CarouselStyled.js +0 -143
- package/components/domainSpecific/Carousel/constants.d.ts +0 -1
- package/components/domainSpecific/Carousel/constants.js +0 -4
- package/components/domainSpecific/Carousel/index.d.ts +0 -2
- package/components/domainSpecific/ChatBubble/ChatBubble.d.ts +0 -2
- package/components/domainSpecific/ChatBubble/ChatBubble.js +0 -26
- package/components/domainSpecific/ChatBubble/ChatBubble.types.d.ts +0 -16
- package/components/domainSpecific/ChatBubble/ChatBubbleStyled.d.ts +0 -4
- package/components/domainSpecific/ChatBubble/ChatBubbleStyled.js +0 -43
- package/components/domainSpecific/ChatBubble/constants.d.ts +0 -1
- package/components/domainSpecific/ChatBubble/constants.js +0 -4
- package/components/domainSpecific/ChatBubble/index.d.ts +0 -2
- package/components/domainSpecific/ContentCarousel/ContentCarousel.d.ts +0 -2
- package/components/domainSpecific/ContentCarousel/ContentCarousel.js +0 -68
- package/components/domainSpecific/ContentCarousel/ContentCarousel.types.d.ts +0 -16
- package/components/domainSpecific/ContentCarousel/ContentCarouselStyled.d.ts +0 -5
- package/components/domainSpecific/ContentCarousel/ContentCarouselStyled.js +0 -32
- package/components/domainSpecific/ContentCarousel/constants.d.ts +0 -1
- package/components/domainSpecific/ContentCarousel/constants.js +0 -4
- package/components/domainSpecific/ContentCarousel/index.d.ts +0 -2
- package/components/domainSpecific/Counter/Counter.d.ts +0 -2
- package/components/domainSpecific/Counter/Counter.js +0 -55
- package/components/domainSpecific/Counter/Counter.types.d.ts +0 -15
- package/components/domainSpecific/Counter/CounterStyled.d.ts +0 -3
- package/components/domainSpecific/Counter/CounterStyled.js +0 -26
- package/components/domainSpecific/Counter/constants.d.ts +0 -5
- package/components/domainSpecific/Counter/constants.js +0 -8
- package/components/domainSpecific/Counter/index.d.ts +0 -2
- package/components/domainSpecific/DragAndDropFiles/DragAndDropFiles.d.ts +0 -4
- package/components/domainSpecific/DragAndDropFiles/DragAndDropFiles.js +0 -48
- package/components/domainSpecific/DragAndDropFiles/DragAndDropFiles.types.d.ts +0 -21
- package/components/domainSpecific/DragAndDropFiles/DragAndDropFilesStyled.d.ts +0 -2
- package/components/domainSpecific/DragAndDropFiles/DragAndDropFilesStyled.js +0 -16
- package/components/domainSpecific/DragAndDropFiles/constants.d.ts +0 -1
- package/components/domainSpecific/DragAndDropFiles/constants.js +0 -4
- package/components/domainSpecific/DragAndDropFiles/hooks/useDragAndDrop/index.d.ts +0 -1
- package/components/domainSpecific/DragAndDropFiles/hooks/useDragAndDrop/useDragAndDrop.d.ts +0 -19
- package/components/domainSpecific/DragAndDropFiles/hooks/useDragAndDrop/useDragAndDrop.js +0 -49
- package/components/domainSpecific/DragAndDropFiles/index.d.ts +0 -2
- package/components/domainSpecific/Header/Header.d.ts +0 -2
- package/components/domainSpecific/Header/Header.js +0 -88
- package/components/domainSpecific/Header/Header.types.d.ts +0 -31
- package/components/domainSpecific/Header/HeaderStyled.d.ts +0 -14
- package/components/domainSpecific/Header/HeaderStyled.js +0 -136
- package/components/domainSpecific/Header/constants.d.ts +0 -1
- package/components/domainSpecific/Header/constants.js +0 -4
- package/components/domainSpecific/Header/index.d.ts +0 -1
- package/components/domainSpecific/Price/Price.d.ts +0 -4
- package/components/domainSpecific/Price/Price.js +0 -23
- package/components/domainSpecific/Price/Price.types.d.ts +0 -10
- package/components/domainSpecific/Price/PriceStyled.d.ts +0 -4
- package/components/domainSpecific/Price/PriceStyled.js +0 -42
- package/components/domainSpecific/Price/constants.d.ts +0 -1
- package/components/domainSpecific/Price/constants.js +0 -4
- package/components/domainSpecific/Price/index.d.ts +0 -2
- package/components/domainSpecific/ProgressBar/ProgressBar.d.ts +0 -4
- package/components/domainSpecific/ProgressBar/ProgressBar.js +0 -29
- package/components/domainSpecific/ProgressBar/ProgressBar.types.d.ts +0 -36
- package/components/domainSpecific/ProgressBar/ProgressBarStyled.d.ts +0 -6
- package/components/domainSpecific/ProgressBar/ProgressBarStyled.js +0 -70
- package/components/domainSpecific/ProgressBar/constants.d.ts +0 -4
- package/components/domainSpecific/ProgressBar/constants.js +0 -7
- package/components/domainSpecific/ProgressBar/index.d.ts +0 -2
- package/components/domainSpecific/RadioGroup/RadioGroup.d.ts +0 -4
- package/components/domainSpecific/RadioGroup/RadioGroup.js +0 -54
- package/components/domainSpecific/RadioGroup/RadioGroup.types.d.ts +0 -74
- package/components/domainSpecific/RadioGroup/RadioGroup.types.js +0 -4
- package/components/domainSpecific/RadioGroup/RadioGroupItem/RadioGroupItem.d.ts +0 -5
- package/components/domainSpecific/RadioGroup/RadioGroupItem/RadioGroupItem.js +0 -37
- package/components/domainSpecific/RadioGroup/RadioGroupItem/index.d.ts +0 -1
- package/components/domainSpecific/RadioGroup/RadioGroupStyled.d.ts +0 -6
- package/components/domainSpecific/RadioGroup/RadioGroupStyled.js +0 -130
- package/components/domainSpecific/RadioGroup/constants.d.ts +0 -2
- package/components/domainSpecific/RadioGroup/constants.js +0 -5
- package/components/domainSpecific/RadioGroup/index.d.ts +0 -2
- package/components/domainSpecific/Rating/Rating.d.ts +0 -2
- package/components/domainSpecific/Rating/Rating.js +0 -63
- package/components/domainSpecific/Rating/Rating.types.d.ts +0 -20
- package/components/domainSpecific/Rating/RatingStyled.d.ts +0 -5
- package/components/domainSpecific/Rating/RatingStyled.js +0 -61
- package/components/domainSpecific/Rating/constants.d.ts +0 -6
- package/components/domainSpecific/Rating/constants.js +0 -9
- package/components/domainSpecific/Rating/index.d.ts +0 -2
- package/components/domainSpecific/Search/Search.d.ts +0 -3
- package/components/domainSpecific/Search/Search.js +0 -39
- package/components/domainSpecific/Search/Search.types.d.ts +0 -30
- package/components/domainSpecific/Search/SearchStyled.d.ts +0 -5
- package/components/domainSpecific/Search/SearchStyled.js +0 -16
- package/components/domainSpecific/Search/constants.d.ts +0 -4
- package/components/domainSpecific/Search/constants.js +0 -7
- package/components/domainSpecific/Search/index.d.ts +0 -2
- package/components/domainSpecific/SearchModal/SearchInput/SearchInput.d.ts +0 -5
- package/components/domainSpecific/SearchModal/SearchInput/SearchInput.js +0 -26
- package/components/domainSpecific/SearchModal/SearchInput/SearchInputStyled.d.ts +0 -4
- package/components/domainSpecific/SearchModal/SearchInput/SearchInputStyled.js +0 -25
- package/components/domainSpecific/SearchModal/SearchInput/constants.d.ts +0 -3
- package/components/domainSpecific/SearchModal/SearchInput/constants.js +0 -6
- package/components/domainSpecific/SearchModal/SearchInput/index.d.ts +0 -1
- package/components/domainSpecific/SearchModal/SearchItems/SearchItems.d.ts +0 -5
- package/components/domainSpecific/SearchModal/SearchItems/SearchItems.js +0 -48
- package/components/domainSpecific/SearchModal/SearchItems/SearchItemsStyled.d.ts +0 -10
- package/components/domainSpecific/SearchModal/SearchItems/SearchItemsStyled.js +0 -82
- package/components/domainSpecific/SearchModal/SearchItems/constants.d.ts +0 -7
- package/components/domainSpecific/SearchModal/SearchItems/constants.js +0 -10
- package/components/domainSpecific/SearchModal/SearchItems/index.d.ts +0 -1
- package/components/domainSpecific/SearchModal/SearchItems/utils.d.ts +0 -2
- package/components/domainSpecific/SearchModal/SearchItems/utils.js +0 -7
- package/components/domainSpecific/SearchModal/SearchLoader/SearchLoader.d.ts +0 -5
- package/components/domainSpecific/SearchModal/SearchLoader/SearchLoader.js +0 -20
- package/components/domainSpecific/SearchModal/SearchLoader/SearchLoaderStyled.d.ts +0 -3
- package/components/domainSpecific/SearchModal/SearchLoader/SearchLoaderStyled.js +0 -14
- package/components/domainSpecific/SearchModal/SearchLoader/constants.d.ts +0 -1
- package/components/domainSpecific/SearchModal/SearchLoader/constants.js +0 -4
- package/components/domainSpecific/SearchModal/SearchLoader/index.d.ts +0 -1
- package/components/domainSpecific/SearchModal/SearchModal.d.ts +0 -4
- package/components/domainSpecific/SearchModal/SearchModal.js +0 -39
- package/components/domainSpecific/SearchModal/SearchModal.types.d.ts +0 -48
- package/components/domainSpecific/SearchModal/SearchModalStyled.d.ts +0 -3
- package/components/domainSpecific/SearchModal/SearchModalStyled.js +0 -29
- package/components/domainSpecific/SearchModal/constants.d.ts +0 -5
- package/components/domainSpecific/SearchModal/constants.js +0 -8
- package/components/domainSpecific/SearchModal/index.d.ts +0 -2
- package/components/domainSpecific/Stepper/Stepper.d.ts +0 -2
- package/components/domainSpecific/Stepper/Stepper.js +0 -42
- package/components/domainSpecific/Stepper/Stepper.types.d.ts +0 -31
- package/components/domainSpecific/Stepper/StepperStyled.d.ts +0 -6
- package/components/domainSpecific/Stepper/StepperStyled.js +0 -58
- package/components/domainSpecific/Stepper/constants.d.ts +0 -1
- package/components/domainSpecific/Stepper/constants.js +0 -4
- package/components/domainSpecific/Stepper/index.d.ts +0 -2
- package/components/domainSpecific/Stepper/utils.d.ts +0 -2
- package/components/domainSpecific/Stepper/utils.js +0 -37
- package/components/domainSpecific/Tabs/Tabs.d.ts +0 -2
- package/components/domainSpecific/Tabs/Tabs.js +0 -40
- package/components/domainSpecific/Tabs/Tabs.types.d.ts +0 -26
- package/components/domainSpecific/Tabs/TabsStyled.d.ts +0 -8
- package/components/domainSpecific/Tabs/TabsStyled.js +0 -79
- package/components/domainSpecific/Tabs/constants.d.ts +0 -6
- package/components/domainSpecific/Tabs/constants.js +0 -6
- package/components/domainSpecific/Tabs/index.d.ts +0 -2
- package/components/domainSpecific/index.d.ts +0 -17
- package/components/index.d.ts +0 -6
- package/components/index.types.d.ts +0 -115
- package/components/index.types.js +0 -4
- package/components/layout/ChatContainer/ChatContainer.d.ts +0 -2
- package/components/layout/ChatContainer/ChatContainer.js +0 -57
- package/components/layout/ChatContainer/ChatContainer.types.d.ts +0 -25
- package/components/layout/ChatContainer/ChatContainerStyled.d.ts +0 -9
- package/components/layout/ChatContainer/ChatContainerStyled.js +0 -74
- package/components/layout/ChatContainer/constants.d.ts +0 -1
- package/components/layout/ChatContainer/constants.js +0 -4
- package/components/layout/ChatContainer/index.d.ts +0 -2
- package/components/layout/Column/Column.d.ts +0 -2
- package/components/layout/Column/Column.js +0 -26
- package/components/layout/Column/Column.types.d.ts +0 -6
- package/components/layout/Column/ColumnStyled.d.ts +0 -2
- package/components/layout/Column/ColumnStyled.js +0 -36
- package/components/layout/Column/constants.d.ts +0 -1
- package/components/layout/Column/constants.js +0 -4
- package/components/layout/Column/index.d.ts +0 -2
- package/components/layout/FlexContainer/FlexContainer.d.ts +0 -2
- package/components/layout/FlexContainer/FlexContainer.js +0 -22
- package/components/layout/FlexContainer/FlexContainer.types.d.ts +0 -6
- package/components/layout/FlexContainer/FlexContainerStyled.d.ts +0 -2
- package/components/layout/FlexContainer/FlexContainerStyled.js +0 -21
- package/components/layout/FlexContainer/constants.d.ts +0 -1
- package/components/layout/FlexContainer/constants.js +0 -4
- package/components/layout/FlexContainer/index.d.ts +0 -2
- package/components/layout/FlexContainer/utils.d.ts +0 -2
- package/components/layout/Row/Row.d.ts +0 -3
- package/components/layout/Row/Row.js +0 -26
- package/components/layout/Row/Row.types.d.ts +0 -6
- package/components/layout/Row/RowStyled.d.ts +0 -2
- package/components/layout/Row/RowStyled.js +0 -36
- package/components/layout/Row/constants.d.ts +0 -1
- package/components/layout/Row/constants.js +0 -4
- package/components/layout/Row/index.d.ts +0 -2
- package/components/layout/index.d.ts +0 -4
- package/components/templates/SkeletonSearch/SkeletonSearch.d.ts +0 -2
- package/components/templates/SkeletonSearch/SkeletonSearch.js +0 -30
- package/components/templates/SkeletonSearch/SkeletonSearch.types.d.ts +0 -6
- package/components/templates/SkeletonSearch/SkeletonSearchStyled.d.ts +0 -11
- package/components/templates/SkeletonSearch/SkeletonSearchStyled.js +0 -97
- package/components/templates/SkeletonSearch/constants.d.ts +0 -2
- package/components/templates/SkeletonSearch/constants.js +0 -5
- package/components/templates/SkeletonSearch/index.d.ts +0 -2
- package/components/templates/index.d.ts +0 -1
- package/components/widget/DragAndDrop/DragAndDrop.d.ts +0 -4
- package/components/widget/DragAndDrop/DragAndDrop.js +0 -74
- package/components/widget/DragAndDrop/DragAndDrop.types.d.ts +0 -35
- package/components/widget/DragAndDrop/DragAndDropStyled.d.ts +0 -6
- package/components/widget/DragAndDrop/DragAndDropStyled.js +0 -61
- package/components/widget/DragAndDrop/constants.d.ts +0 -1
- package/components/widget/DragAndDrop/constants.js +0 -4
- package/components/widget/DragAndDrop/index.d.ts +0 -2
- package/components/widget/DragAndDrop/utils/index.d.ts +0 -1
- package/components/widget/DragAndDrop/utils/validators.d.ts +0 -5
- package/components/widget/DragAndDrop/utils/validators.js +0 -17
- package/components/widget/index.d.ts +0 -1
- package/constants/index.d.ts +0 -3
- package/constants/keyboard.d.ts +0 -8
- package/constants/keyboard.js +0 -11
- package/constants/positioning.d.ts +0 -9
- package/constants/positioning.js +0 -11
- package/constants/timers.d.ts +0 -2
- package/constants/timers.js +0 -5
- package/hooks/index.d.ts +0 -6
- package/hooks/useAutoFocus/index.d.ts +0 -1
- package/hooks/useAutoFocus/useAutoFocus.d.ts +0 -2
- package/hooks/useAutoFocus/useAutoFocus.js +0 -11
- package/hooks/useCarousel/index.d.ts +0 -1
- package/hooks/useCarousel/useCarousel.d.ts +0 -23
- package/hooks/useCarousel/useCarousel.js +0 -61
- package/hooks/useClickOutside/index.d.ts +0 -1
- package/hooks/useClickOutside/useClickOutside.d.ts +0 -1
- package/hooks/useClickOutside/useClickOutside.js +0 -15
- package/hooks/useKeyControls/index.d.ts +0 -1
- package/hooks/useKeyControls/useKeyControls.d.ts +0 -2
- package/hooks/useKeyControls/useKeyControls.js +0 -19
- package/hooks/useMediaQuery/index.d.ts +0 -1
- package/hooks/useMediaQuery/useMediaQuery.d.ts +0 -1
- package/hooks/useMediaQuery/useMediaQuery.js +0 -14
- package/hooks/useTheme/index.d.ts +0 -4
- package/hooks/useTheme/useTheme.d.ts +0 -4
- package/hooks/useTheme/useTheme.js +0 -48
- package/hooks/useTheme/useTheme.types.d.ts +0 -14
- package/hooks/useTheme/utils.d.ts +0 -2
- package/hooks/useTheme/utils.js +0 -10
- package/stories/Introduction/ThemeJsonPreview.d.ts +0 -4
- package/stories/components/TokenViewer/TokenViewer.d.ts +0 -2
- package/stories/components/TokenViewer/TokenViewer.types.d.ts +0 -12
- package/stories/components/TokenViewer/TokenViewerStyled.d.ts +0 -11
- package/stories/components/TokenViewer/index.d.ts +0 -1
- package/tokens/accordion.d.ts +0 -62
- package/tokens/accordion.js +0 -72
- package/tokens/animations.d.ts +0 -60
- package/tokens/animations.js +0 -63
- package/tokens/avatar.d.ts +0 -120
- package/tokens/avatar.js +0 -153
- package/tokens/borders.d.ts +0 -9
- package/tokens/borders.js +0 -17
- package/tokens/breadcrumbs.d.ts +0 -30
- package/tokens/breadcrumbs.js +0 -37
- package/tokens/breakpoints.d.ts +0 -8
- package/tokens/breakpoints.js +0 -12
- package/tokens/button.d.ts +0 -155
- package/tokens/button.js +0 -200
- package/tokens/card.d.ts +0 -175
- package/tokens/card.js +0 -187
- package/tokens/carousel.d.ts +0 -197
- package/tokens/carousel.js +0 -208
- package/tokens/chat.d.ts +0 -128
- package/tokens/chat.js +0 -126
- package/tokens/chatbubble.d.ts +0 -48
- package/tokens/chatbubble.js +0 -75
- package/tokens/colors.d.ts +0 -154
- package/tokens/colors.js +0 -157
- package/tokens/column.d.ts +0 -6
- package/tokens/column.js +0 -9
- package/tokens/constants.d.ts +0 -2
- package/tokens/constants.js +0 -4
- package/tokens/counter.d.ts +0 -38
- package/tokens/counter.js +0 -45
- package/tokens/cursors.d.ts +0 -17
- package/tokens/cursors.js +0 -20
- package/tokens/defaultTheme.d.ts +0 -3791
- package/tokens/defaultTheme.js +0 -123
- package/tokens/display.d.ts +0 -16
- package/tokens/display.js +0 -19
- package/tokens/draganddrop.d.ts +0 -61
- package/tokens/draganddrop.js +0 -87
- package/tokens/draganddropfiles.d.ts +0 -3
- package/tokens/draganddropfiles.js +0 -6
- package/tokens/flexContainer.d.ts +0 -9
- package/tokens/flexContainer.js +0 -13
- package/tokens/font.d.ts +0 -47
- package/tokens/font.js +0 -52
- package/tokens/form.d.ts +0 -3
- package/tokens/form.js +0 -6
- package/tokens/header.d.ts +0 -107
- package/tokens/header.js +0 -123
- package/tokens/icon.d.ts +0 -28
- package/tokens/icon.js +0 -32
- package/tokens/image.d.ts +0 -31
- package/tokens/image.js +0 -40
- package/tokens/index.d.ts +0 -3390
- package/tokens/index.js +0 -145
- package/tokens/inlineNotification.d.ts +0 -62
- package/tokens/inlineNotification.js +0 -75
- package/tokens/input.d.ts +0 -212
- package/tokens/input.js +0 -191
- package/tokens/inputfile.d.ts +0 -14
- package/tokens/inputfile.js +0 -18
- package/tokens/label.d.ts +0 -6
- package/tokens/label.js +0 -10
- package/tokens/link.d.ts +0 -80
- package/tokens/link.js +0 -66
- package/tokens/list.d.ts +0 -89
- package/tokens/list.js +0 -87
- package/tokens/loader.d.ts +0 -135
- package/tokens/loader.js +0 -143
- package/tokens/menu.d.ts +0 -15
- package/tokens/menu.js +0 -19
- package/tokens/modal.d.ts +0 -89
- package/tokens/modal.js +0 -112
- package/tokens/price.d.ts +0 -23
- package/tokens/price.js +0 -32
- package/tokens/progressbar.d.ts +0 -51
- package/tokens/progressbar.js +0 -60
- package/tokens/radiogroup.d.ts +0 -80
- package/tokens/radiogroup.js +0 -110
- package/tokens/radius.d.ts +0 -10
- package/tokens/radius.js +0 -14
- package/tokens/rating.d.ts +0 -65
- package/tokens/rating.js +0 -73
- package/tokens/reset.d.ts +0 -1
- package/tokens/reset.js +0 -4
- package/tokens/row.d.ts +0 -5
- package/tokens/row.js +0 -8
- package/tokens/scroll.d.ts +0 -91
- package/tokens/scroll.js +0 -99
- package/tokens/search.d.ts +0 -39
- package/tokens/search.js +0 -45
- package/tokens/searchModal.d.ts +0 -155
- package/tokens/searchModal.js +0 -159
- package/tokens/select.d.ts +0 -93
- package/tokens/select.js +0 -108
- package/tokens/separator.d.ts +0 -56
- package/tokens/separator.js +0 -63
- package/tokens/shadow.d.ts +0 -20
- package/tokens/shadow.js +0 -25
- package/tokens/skeleton.d.ts +0 -68
- package/tokens/skeleton.js +0 -77
- package/tokens/slider.d.ts +0 -58
- package/tokens/slider.js +0 -45
- package/tokens/snackbar.d.ts +0 -157
- package/tokens/snackbar.js +0 -177
- package/tokens/spacing.d.ts +0 -9
- package/tokens/spacing.js +0 -13
- package/tokens/stepper.d.ts +0 -132
- package/tokens/stepper.js +0 -147
- package/tokens/switch.d.ts +0 -67
- package/tokens/switch.js +0 -75
- package/tokens/tabs.d.ts +0 -88
- package/tokens/tabs.js +0 -110
- package/tokens/textarea.d.ts +0 -44
- package/tokens/textarea.js +0 -47
- package/tokens/toggle.d.ts +0 -9
- package/tokens/toggle.js +0 -19
- package/tokens/tooltip.d.ts +0 -61
- package/tokens/tooltip.js +0 -68
- package/tokens/types/index.types.d.ts +0 -14
- package/tokens/types/index.types.js +0 -4
- package/tokens/typography.d.ts +0 -127
- package/tokens/typography.js +0 -134
- package/tokens/utils.d.ts +0 -47
- package/tokens/utils.js +0 -88
- package/tokens/values.d.ts +0 -65
- package/tokens/values.js +0 -76
- package/tokens/wrapper.d.ts +0 -29
- package/tokens/wrapper.js +0 -34
- package/types/accesability.d.ts +0 -5
- package/types/accesability.js +0 -4
- package/types/button.d.ts +0 -28
- package/types/button.js +0 -7
- package/types/card.d.ts +0 -8
- package/types/card.js +0 -5
- package/types/carousel.d.ts +0 -12
- package/types/carousel.js +0 -6
- package/types/chat.d.ts +0 -5
- package/types/chat.js +0 -4
- package/types/common.d.ts +0 -12
- package/types/common.js +0 -5
- package/types/cursors.d.ts +0 -14
- package/types/cursors.js +0 -4
- package/types/index.d.ts +0 -21
- package/types/input.d.ts +0 -30
- package/types/input.js +0 -6
- package/types/keys.d.ts +0 -8
- package/types/label.d.ts +0 -4
- package/types/label.js +0 -4
- package/types/layout.d.ts +0 -8
- package/types/layout.js +0 -4
- package/types/link.d.ts +0 -18
- package/types/link.js +0 -5
- package/types/list.d.ts +0 -6
- package/types/list.js +0 -4
- package/types/misc.d.ts +0 -17
- package/types/separator.d.ts +0 -10
- package/types/separator.js +0 -5
- package/types/skeleton.d.ts +0 -5
- package/types/skeleton.js +0 -4
- package/types/snackbar.d.ts +0 -14
- package/types/snackbar.js +0 -5
- package/types/stepper.d.ts +0 -9
- package/types/stepper.js +0 -5
- package/types/styles.d.ts +0 -3
- package/types/typography.d.ts +0 -45
- package/types/typography.js +0 -6
- package/types/wrapper.d.ts +0 -5
- package/types/wrapper.js +0 -4
- package/utils/animationFrame.d.ts +0 -15
- package/utils/animationFrame.js +0 -17
- package/utils/common.d.ts +0 -2
- package/utils/common.js +0 -4
- package/utils/date.d.ts +0 -9
- package/utils/date.js +0 -11
- package/utils/focus.d.ts +0 -32
- package/utils/focus.js +0 -54
- package/utils/getCharCount.d.ts +0 -3
- package/utils/helpers.d.ts +0 -13
- package/utils/helpers.js +0 -49
- package/utils/index.d.ts +0 -10
- package/utils/layout.d.ts +0 -6
- package/utils/layout.js +0 -32
- package/utils/math.d.ts +0 -6
- package/utils/math.js +0 -11
- package/utils/setInRange.d.ts +0 -5
- package/utils/setInRange.js +0 -11
- package/utils/uniqueKeys.d.ts +0 -1
- package/utils/uniqueKeys.js +0 -4
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import { jsx as y } from "@emotion/react/jsx-runtime";
|
|
3
|
-
import { forwardRef as x } from "react";
|
|
4
|
-
import { TypographyStyled as H } from "../Typography/TypographyStyled.js";
|
|
5
|
-
import { SeparatorVariant as L } from "../../../types/separator.js";
|
|
6
|
-
import { Orientation as c, SizeVariant as V } from "../../../types/common.js";
|
|
7
|
-
import { getBoxStyles as k } from "../../../tokens/utils.js";
|
|
8
|
-
import { get as t } from "../../../utils/helpers.js";
|
|
9
|
-
const B = x((i, e) => {
|
|
10
|
-
const {
|
|
11
|
-
theme: {
|
|
12
|
-
separator: r
|
|
13
|
-
} = {},
|
|
14
|
-
styles: o = {},
|
|
15
|
-
$orientation: s = c.Horizontal,
|
|
16
|
-
$length: a,
|
|
17
|
-
...n
|
|
18
|
-
} = i, p = {
|
|
19
|
-
[s === c.Horizontal ? "width" : "height"]: a
|
|
20
|
-
}, {
|
|
21
|
-
boxStyles: d,
|
|
22
|
-
restProps: m
|
|
23
|
-
} = k(n), S = [t(r, "default", {}), t(r, s, {}), a ? p : {}, d, o];
|
|
24
|
-
return /* @__PURE__ */ y("div", { css: S, ...m, ref: e });
|
|
25
|
-
}), O = (i) => {
|
|
26
|
-
var $, f;
|
|
27
|
-
const {
|
|
28
|
-
theme: {
|
|
29
|
-
separator: e,
|
|
30
|
-
colors: r,
|
|
31
|
-
values: o
|
|
32
|
-
} = {},
|
|
33
|
-
styles: s = {},
|
|
34
|
-
$as: a = "div",
|
|
35
|
-
$orientation: n = c.Horizontal,
|
|
36
|
-
$color: l = t(r, "border.default", ""),
|
|
37
|
-
$size: p = V.Sm,
|
|
38
|
-
$variant: d = L.Solid,
|
|
39
|
-
...m
|
|
40
|
-
} = i, S = t(o, `separator.thickness.${p}`, (f = ($ = o == null ? void 0 : o.separator) == null ? void 0 : $.thickness) == null ? void 0 : f.sm), b = t(r, l, l), u = `${S} ${d} ${b}`, h = n === c.Horizontal ? "borderTop" : "borderLeft", z = {
|
|
41
|
-
...t(e, `line.${n}`, {}),
|
|
42
|
-
[h]: u
|
|
43
|
-
}, g = [t(e, "line.default", {}), z, s];
|
|
44
|
-
return /* @__PURE__ */ y(a, { css: g, ...m });
|
|
45
|
-
}, R = (i) => {
|
|
46
|
-
const {
|
|
47
|
-
theme: {
|
|
48
|
-
separator: e,
|
|
49
|
-
colors: r
|
|
50
|
-
} = {},
|
|
51
|
-
$labelColor: o = t(r, "text.caption"),
|
|
52
|
-
$size: s,
|
|
53
|
-
children: a
|
|
54
|
-
} = i, n = t(e, "label.default", {}), l = t(e, `label.attrs.${s}`, {});
|
|
55
|
-
return /* @__PURE__ */ y(H, { css: n, ...l, $color: o, children: a });
|
|
56
|
-
};
|
|
57
|
-
export {
|
|
58
|
-
R as SeparatorLabelStyled,
|
|
59
|
-
O as SeparatorLineStyled,
|
|
60
|
-
B as SeparatorWrapperStyled
|
|
61
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const COMPONENT_NAME = "Separator";
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import { jsx as f } from "@emotion/react/jsx-runtime";
|
|
3
|
-
import { forwardRef as h } from "react";
|
|
4
|
-
import { BASE_ANIMATION as p, COMPONENT_NAME as N } from "./constants.js";
|
|
5
|
-
import { SkeletonStyled as l } from "./SkeletonStyled.js";
|
|
6
|
-
import { SkeletonVariant as c } from "../../../types/skeleton.js";
|
|
7
|
-
import { useTheme as S } from "../../../hooks/useTheme/useTheme.js";
|
|
8
|
-
const M = h((t, o) => {
|
|
9
|
-
const {
|
|
10
|
-
variant: e = c.Rounded,
|
|
11
|
-
children: r,
|
|
12
|
-
animationName: i,
|
|
13
|
-
animationProps: n = p,
|
|
14
|
-
width: m,
|
|
15
|
-
height: a,
|
|
16
|
-
...s
|
|
17
|
-
} = t, {
|
|
18
|
-
theme: d
|
|
19
|
-
} = S();
|
|
20
|
-
return /* @__PURE__ */ f(l, { ref: o, theme: d, $width: m, $height: a, $variant: e, $animationName: i, $animationProps: n, "data-testid": N, ...s, children: r });
|
|
21
|
-
});
|
|
22
|
-
export {
|
|
23
|
-
M as Skeleton
|
|
24
|
-
};
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { PropsWithChildren } from 'react';
|
|
2
|
-
import { EnumOrPrimitive, NullableType, SkeletonVariant } from '../../../types';
|
|
3
|
-
import { CommonCssComponentProps, CommonCssComponentStyledProps } from '../..';
|
|
4
|
-
export interface SkeletonProps extends CommonCssComponentProps<HTMLSpanElement>, PropsWithChildren {
|
|
5
|
-
animationName?: NullableType<string>;
|
|
6
|
-
animationProps?: string;
|
|
7
|
-
width?: string;
|
|
8
|
-
height?: string;
|
|
9
|
-
variant?: EnumOrPrimitive<SkeletonVariant>;
|
|
10
|
-
}
|
|
11
|
-
export interface SkeletonPropsStyled extends CommonCssComponentStyledProps<HTMLSpanElement>, PropsWithChildren {
|
|
12
|
-
$animationName?: NullableType<string>;
|
|
13
|
-
$animationProps?: string;
|
|
14
|
-
$width?: string;
|
|
15
|
-
$height?: string;
|
|
16
|
-
$variant?: EnumOrPrimitive<SkeletonVariant>;
|
|
17
|
-
}
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import { jsx as S } from "@emotion/react/jsx-runtime";
|
|
3
|
-
import { forwardRef as $ } from "react";
|
|
4
|
-
import { convertJsonToCssKeyframeCss as k, getBoxStyles as x } from "../../../tokens/utils.js";
|
|
5
|
-
import { SkeletonVariant as K } from "../../../types/skeleton.js";
|
|
6
|
-
import { get as t } from "../../../utils/helpers.js";
|
|
7
|
-
const P = $((a, r) => {
|
|
8
|
-
const {
|
|
9
|
-
theme: {
|
|
10
|
-
skeleton: o,
|
|
11
|
-
animations: m
|
|
12
|
-
} = {},
|
|
13
|
-
$variant: i = K.Rounded,
|
|
14
|
-
styles: l = {},
|
|
15
|
-
$animationName: e = "blinkKeyframes",
|
|
16
|
-
$animationProps: f,
|
|
17
|
-
...c
|
|
18
|
-
} = a, n = t(m, e ?? "", null), s = n ? k(n) : e, p = {
|
|
19
|
-
animation: `${s} ${f}`
|
|
20
|
-
}, {
|
|
21
|
-
boxStyles: y,
|
|
22
|
-
restProps: d
|
|
23
|
-
} = x(c), u = [t(o, "default", {}), t(o, i, {}), y, s ? p : {}, l];
|
|
24
|
-
return /* @__PURE__ */ S("span", { css: u, ...d, ref: r });
|
|
25
|
-
});
|
|
26
|
-
export {
|
|
27
|
-
P as SkeletonStyled
|
|
28
|
-
};
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { SliderProps } from './Slider.types';
|
|
2
|
-
/**
|
|
3
|
-
* Slider component allows users to select a numeric value from a specified range by dragging a thumb.
|
|
4
|
-
*
|
|
5
|
-
* Supports both controlled and uncontrolled usage.
|
|
6
|
-
* The background visually indicates the current value as a percentage of the range.
|
|
7
|
-
* Can be disabled and accepts custom styles.
|
|
8
|
-
*
|
|
9
|
-
* @component
|
|
10
|
-
* @param {number} [min=0] - Minimum value of the slider.
|
|
11
|
-
* @param {number} [max=100] - Maximum value of the slider.
|
|
12
|
-
* @param {number} [value] - Current value (for controlled usage).
|
|
13
|
-
* @param {(value: number) => void} [onChange] - Callback fired when the value changes.
|
|
14
|
-
* @param {boolean} [disabled] - If true, the slider is disabled.
|
|
15
|
-
* @param {object} [styles] - Additional custom styles for the slider.
|
|
16
|
-
*
|
|
17
|
-
* @example
|
|
18
|
-
* <Slider min={0} max={10} value={5} onChange={val => console.log(val)} />
|
|
19
|
-
*/
|
|
20
|
-
export declare const Slider: import('react').ForwardRefExoticComponent<SliderProps & import('react').RefAttributes<HTMLInputElement>>;
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import { jsx as v } from "@emotion/react/jsx-runtime";
|
|
3
|
-
import { forwardRef as _, useState as A, useEffect as L } from "react";
|
|
4
|
-
import { SLIDER_MIN_VALUE_DEFAULT as N, SLIDER_MAX_VALUE_DEFAULT as S, COMPONENT_NAME as n } from "./constants.js";
|
|
5
|
-
import { StyledSlider as R } from "./SliderStyled.js";
|
|
6
|
-
import { setInRange as V } from "../../../utils/setInRange.js";
|
|
7
|
-
import { useTheme as g } from "../../../hooks/useTheme/useTheme.js";
|
|
8
|
-
const h = _((s, u) => {
|
|
9
|
-
const {
|
|
10
|
-
min: e = N,
|
|
11
|
-
max: a = S,
|
|
12
|
-
value: r,
|
|
13
|
-
onChange: t,
|
|
14
|
-
disabled: i,
|
|
15
|
-
...d
|
|
16
|
-
} = s, {
|
|
17
|
-
theme: f
|
|
18
|
-
} = g(), [o, l] = A(r || e);
|
|
19
|
-
L(() => {
|
|
20
|
-
r !== void 0 && l(r);
|
|
21
|
-
}, [r]);
|
|
22
|
-
const c = (E) => {
|
|
23
|
-
const m = V({
|
|
24
|
-
min: e,
|
|
25
|
-
max: a,
|
|
26
|
-
value: Number(E.target.value)
|
|
27
|
-
});
|
|
28
|
-
l(m), t == null || t(m);
|
|
29
|
-
}, p = a > e ? (o - e) / (a - e) : e;
|
|
30
|
-
return /* @__PURE__ */ v(R, { "data-testid": n, type: "range", role: "slider", min: e, max: a, value: o, disabled: i, theme: f, fillRatio: p, onChange: c, "aria-valuenow": o, "aria-valuemin": e, "aria-valuemax": a, "aria-disabled": i, ref: u, ...d });
|
|
31
|
-
});
|
|
32
|
-
h.displayName = n;
|
|
33
|
-
export {
|
|
34
|
-
h as Slider
|
|
35
|
-
};
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { CommonCssComponentProps, CommonCssComponentStyledProps } from '../..';
|
|
2
|
-
export interface SliderProps extends Omit<CommonCssComponentProps<HTMLInputElement>, 'onChange'> {
|
|
3
|
-
min?: number;
|
|
4
|
-
max?: number;
|
|
5
|
-
value?: number;
|
|
6
|
-
onChange?: (value: number) => void;
|
|
7
|
-
step?: number;
|
|
8
|
-
disabled?: boolean;
|
|
9
|
-
}
|
|
10
|
-
export interface SliderStyledProps extends CommonCssComponentStyledProps<HTMLInputElement> {
|
|
11
|
-
type: string;
|
|
12
|
-
fillRatio: number;
|
|
13
|
-
min?: number;
|
|
14
|
-
max?: number;
|
|
15
|
-
value?: number;
|
|
16
|
-
disabled?: boolean;
|
|
17
|
-
}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import { jsx as f } from "@emotion/react/jsx-runtime";
|
|
3
|
-
import { forwardRef as d } from "react";
|
|
4
|
-
import { get as m } from "../../../utils/helpers.js";
|
|
5
|
-
const u = d((t, e) => {
|
|
6
|
-
const {
|
|
7
|
-
theme: {
|
|
8
|
-
slider: r
|
|
9
|
-
} = {},
|
|
10
|
-
fillRatio: o,
|
|
11
|
-
styles: s = {},
|
|
12
|
-
...i
|
|
13
|
-
} = t, l = [m(r, "default", {}), {
|
|
14
|
-
"--gd-slider-fill-ratio": o
|
|
15
|
-
}, s];
|
|
16
|
-
return /* @__PURE__ */ f("input", { css: l, ...i, ref: e });
|
|
17
|
-
});
|
|
18
|
-
export {
|
|
19
|
-
u as StyledSlider
|
|
20
|
-
};
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import { jsxs as a, jsx as t } from "@emotion/react/jsx-runtime";
|
|
3
|
-
import { forwardRef as T, useState as b, useCallback as A, useEffect as I } from "react";
|
|
4
|
-
import { DEFAULT_VARIANT as N, ANIMATION_DURATION as v, COMPONENT_NAME as O } from "./constants.js";
|
|
5
|
-
import { SnackbarStyled as $, CloseButtonWrapperStyled as g, CloseButtonIconStyled as x, SnackbarBodyStyled as B, SnackbarIconStyled as E, SnackbarContentStyled as D, SnackbarTitleStyled as M, SnackbarDescriptionStyled as R, SnackbarActionsContainerStyled as _ } from "./SnackbarStyled.js";
|
|
6
|
-
import { useTheme as j } from "../../../hooks/useTheme/useTheme.js";
|
|
7
|
-
import { convertToInlineBoxStyles as P } from "../../../tokens/utils.js";
|
|
8
|
-
const q = T((m, S) => {
|
|
9
|
-
const {
|
|
10
|
-
title: u,
|
|
11
|
-
message: l,
|
|
12
|
-
variant: s = N,
|
|
13
|
-
isAnimated: i = !0,
|
|
14
|
-
duration: n,
|
|
15
|
-
onClose: r,
|
|
16
|
-
action: c,
|
|
17
|
-
colored: f = !1,
|
|
18
|
-
dismissOnClick: C = !0,
|
|
19
|
-
icon: k,
|
|
20
|
-
...p
|
|
21
|
-
} = m, {
|
|
22
|
-
theme: e
|
|
23
|
-
} = j(), [d, h] = b(!1), o = A(() => {
|
|
24
|
-
h(!0), setTimeout(() => {
|
|
25
|
-
r == null || r();
|
|
26
|
-
}, i ? v : 0);
|
|
27
|
-
}, [i, r]);
|
|
28
|
-
return I(() => {
|
|
29
|
-
if (!n) return;
|
|
30
|
-
const y = setTimeout(() => {
|
|
31
|
-
o();
|
|
32
|
-
}, n);
|
|
33
|
-
return () => clearTimeout(y);
|
|
34
|
-
}, [n]), /* @__PURE__ */ a($, { ref: S, $variant: s, $colored: f, $isClosing: d, $isAnimated: i, onClick: C ? o : void 0, theme: e, role: "alert", "aria-live": "polite", "aria-hidden": d, "data-testid": O, ...P(p), children: [
|
|
35
|
-
r && /* @__PURE__ */ t(g, { theme: e, onClick: o, "aria-label": "Close notification", children: /* @__PURE__ */ t(x, { theme: e }) }),
|
|
36
|
-
/* @__PURE__ */ a(B, { theme: e, children: [
|
|
37
|
-
k || /* @__PURE__ */ t(E, { theme: e, $variant: s }),
|
|
38
|
-
/* @__PURE__ */ a(D, { theme: e, children: [
|
|
39
|
-
/* @__PURE__ */ t(M, { children: u }),
|
|
40
|
-
l && /* @__PURE__ */ t(R, { children: l }),
|
|
41
|
-
c && /* @__PURE__ */ t(_, { theme: e, children: c })
|
|
42
|
-
] })
|
|
43
|
-
] })
|
|
44
|
-
] });
|
|
45
|
-
});
|
|
46
|
-
export {
|
|
47
|
-
q as Snackbar
|
|
48
|
-
};
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import { ReactNode } from 'react';
|
|
2
|
-
import { BoxCssComponentProps, BoxCssComponentStyledProps, CommonCssComponentStyledProps } from '../../index.types';
|
|
3
|
-
import { IconProps } from '../Icon';
|
|
4
|
-
import { EnumOrPrimitive, SnackbarPosition, SnackbarVariant } from '../../../types';
|
|
5
|
-
export interface SnackbarOptions {
|
|
6
|
-
title?: ReactNode;
|
|
7
|
-
message: ReactNode;
|
|
8
|
-
variant?: EnumOrPrimitive<SnackbarVariant>;
|
|
9
|
-
duration?: number | null;
|
|
10
|
-
onClose?: (() => void) | null;
|
|
11
|
-
action?: ReactNode;
|
|
12
|
-
dismissOnClick?: boolean;
|
|
13
|
-
colored?: boolean;
|
|
14
|
-
icon?: ReactNode;
|
|
15
|
-
isAnimated?: boolean;
|
|
16
|
-
}
|
|
17
|
-
export interface SnackbarState extends SnackbarOptions {
|
|
18
|
-
id?: string;
|
|
19
|
-
position?: EnumOrPrimitive<SnackbarPosition>;
|
|
20
|
-
}
|
|
21
|
-
export interface SnackbarProps extends SnackbarOptions, Omit<BoxCssComponentProps, 'title'> {
|
|
22
|
-
isAnimated?: boolean;
|
|
23
|
-
}
|
|
24
|
-
export interface SnackbarStyledProps extends BoxCssComponentStyledProps {
|
|
25
|
-
$variant: EnumOrPrimitive<SnackbarVariant>;
|
|
26
|
-
$isAnimated: boolean;
|
|
27
|
-
$isClosing: boolean;
|
|
28
|
-
$colored: boolean;
|
|
29
|
-
}
|
|
30
|
-
export type SnackbarCommonStyledProps = CommonCssComponentStyledProps;
|
|
31
|
-
export interface SnackbarIconProps extends Partial<Omit<IconProps, 'onClick'>>, CommonCssComponentStyledProps {
|
|
32
|
-
$variant: EnumOrPrimitive<SnackbarVariant>;
|
|
33
|
-
}
|
|
34
|
-
export interface SnackbarContainerStyledProps extends CommonCssComponentStyledProps {
|
|
35
|
-
$position?: EnumOrPrimitive<SnackbarPosition>;
|
|
36
|
-
}
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import { jsx as m } from "@emotion/react/jsx-runtime";
|
|
3
|
-
import { useState as a, useEffect as l, useMemo as S } from "react";
|
|
4
|
-
import { v4 as A } from "uuid";
|
|
5
|
-
import { SnackbarContainerStyled as h } from "./SnackbarStyled.js";
|
|
6
|
-
import { Snackbar as E } from "./Snackbar.js";
|
|
7
|
-
import { DEFAULT_DURATION as N, DEFAULT_POSITION as p, DEFAULT_VARIANT as T, COMPONENT_SNACKBAR_MANAGER_NAME as b } from "./constants.js";
|
|
8
|
-
import { get as O } from "../../../utils/helpers.js";
|
|
9
|
-
import { useTheme as _ } from "../../../hooks/useTheme/useTheme.js";
|
|
10
|
-
import { Portal as C } from "../Portal/Portal.js";
|
|
11
|
-
let i = [];
|
|
12
|
-
const s = [], d = () => {
|
|
13
|
-
s.forEach((e) => e(i));
|
|
14
|
-
}, M = (e) => {
|
|
15
|
-
const c = {
|
|
16
|
-
id: O(e, "id", A()),
|
|
17
|
-
variant: T,
|
|
18
|
-
position: p,
|
|
19
|
-
duration: N,
|
|
20
|
-
...e
|
|
21
|
-
};
|
|
22
|
-
i = [...i, c].slice(-50), d();
|
|
23
|
-
}, g = (e) => {
|
|
24
|
-
i = i.filter((n) => n.id !== e), d();
|
|
25
|
-
}, v = (e) => M(e), y = () => {
|
|
26
|
-
const {
|
|
27
|
-
theme: e
|
|
28
|
-
} = _(), [n, c] = a(i);
|
|
29
|
-
l(() => {
|
|
30
|
-
const r = (o) => c(o);
|
|
31
|
-
return s.push(r), () => {
|
|
32
|
-
const o = s.indexOf(r);
|
|
33
|
-
o > -1 && s.splice(o, 1);
|
|
34
|
-
};
|
|
35
|
-
}, []);
|
|
36
|
-
const f = S(() => n.reduce((r, o) => {
|
|
37
|
-
const t = o.position || p;
|
|
38
|
-
return r[t] = r[t] || [], r[t].push(o), r;
|
|
39
|
-
}, {}), [n]);
|
|
40
|
-
return n.length ? /* @__PURE__ */ m(C, { withWrapper: !1, "data-testid": b, children: Object.entries(f).map(([r, o]) => /* @__PURE__ */ m(h, { theme: e, $position: r, children: o.map((t) => /* @__PURE__ */ m(E, { ...t, onClose: () => {
|
|
41
|
-
var u;
|
|
42
|
-
(u = t.onClose) == null || u.call(t), g(t.id);
|
|
43
|
-
} }, t.id)) }, r)) }) : null;
|
|
44
|
-
};
|
|
45
|
-
export {
|
|
46
|
-
y as SnackbarManager,
|
|
47
|
-
v as showSnackbar
|
|
48
|
-
};
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { PropsWithChildren } from 'react';
|
|
2
|
-
import { SnackbarCommonStyledProps, SnackbarContainerStyledProps, SnackbarIconProps, SnackbarStyledProps } from './Snackbar.types';
|
|
3
|
-
export declare const SnackbarStyled: import('react').ForwardRefExoticComponent<Omit<SnackbarStyledProps, "ref"> & import('react').RefAttributes<HTMLDivElement>>;
|
|
4
|
-
export declare const CloseButtonWrapperStyled: (props: SnackbarCommonStyledProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
5
|
-
export declare const CloseButtonIconStyled: (props: SnackbarCommonStyledProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
6
|
-
export declare const SnackbarIconStyled: (props: SnackbarIconProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
7
|
-
export declare const SnackbarBodyStyled: (props: SnackbarCommonStyledProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
8
|
-
export declare const SnackbarContentStyled: (props: SnackbarCommonStyledProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
9
|
-
export declare const SnackbarTitleStyled: (props: PropsWithChildren) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
10
|
-
export declare const SnackbarDescriptionStyled: (props: PropsWithChildren) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
11
|
-
export declare const SnackbarActionsContainerStyled: (props: SnackbarCommonStyledProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
12
|
-
export declare const SnackbarContainerStyled: (props: SnackbarContainerStyledProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
@@ -1,107 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import { jsx as e } from "@emotion/react/jsx-runtime";
|
|
3
|
-
import { forwardRef as O } from "react";
|
|
4
|
-
import { convertJsonToCssKeyframeCss as S, getBoxStyles as j } from "../../../tokens/utils.js";
|
|
5
|
-
import { Typography as p } from "../Typography/Typography.js";
|
|
6
|
-
import { get as r } from "../../../utils/helpers.js";
|
|
7
|
-
import { Icon as b } from "../Icon/Icon.js";
|
|
8
|
-
import { TypographyStyleVariant as k, TypographyVariant as f, TextAlign as g } from "../../../types/typography.js";
|
|
9
|
-
const G = O((n, o) => {
|
|
10
|
-
var l, m, y, u;
|
|
11
|
-
const {
|
|
12
|
-
theme: {
|
|
13
|
-
animations: t,
|
|
14
|
-
snackbar: s
|
|
15
|
-
} = {},
|
|
16
|
-
$variant: a,
|
|
17
|
-
$colored: $,
|
|
18
|
-
$isClosing: v,
|
|
19
|
-
$isAnimated: h,
|
|
20
|
-
styles: C,
|
|
21
|
-
...B
|
|
22
|
-
} = n, A = S(t == null ? void 0 : t.slideIn), I = S(t == null ? void 0 : t.slideOut), {
|
|
23
|
-
boxStyles: T,
|
|
24
|
-
restProps: x
|
|
25
|
-
} = j(B), c = (m = (l = s == null ? void 0 : s.snackbar) == null ? void 0 : l.animation) == null ? void 0 : m.duration, i = (u = (y = s == null ? void 0 : s.snackbar) == null ? void 0 : y.animation) == null ? void 0 : u.timing, P = `
|
|
26
|
-
${I} ${c} ${i} 50ms forwards
|
|
27
|
-
`, V = `
|
|
28
|
-
${A} ${c} ${i} forwards
|
|
29
|
-
`, d = r(s, "snackbar.background.default"), w = r(s, "snackbar.default", {}), N = {
|
|
30
|
-
background: $ ? r(s, `snackbar.background.variants.${a}`, d) : d
|
|
31
|
-
};
|
|
32
|
-
return /* @__PURE__ */ e("div", { css: [h ? {
|
|
33
|
-
animation: v ? P : V
|
|
34
|
-
} : {}, w, N, T, C], ...x, ref: o });
|
|
35
|
-
}), H = (n) => {
|
|
36
|
-
const {
|
|
37
|
-
theme: {
|
|
38
|
-
snackbar: o
|
|
39
|
-
} = {},
|
|
40
|
-
...t
|
|
41
|
-
} = n;
|
|
42
|
-
return /* @__PURE__ */ e("div", { css: r(o, "CloseButtonIconStyled", {}), ...t });
|
|
43
|
-
}, L = (n) => {
|
|
44
|
-
const {
|
|
45
|
-
theme: {
|
|
46
|
-
snackbar: o
|
|
47
|
-
} = {}
|
|
48
|
-
} = n, t = r(o, "icons.close", {
|
|
49
|
-
name: "cross"
|
|
50
|
-
});
|
|
51
|
-
return /* @__PURE__ */ e(b, { ...t });
|
|
52
|
-
}, M = (n) => {
|
|
53
|
-
const {
|
|
54
|
-
$variant: o,
|
|
55
|
-
theme: {
|
|
56
|
-
snackbar: t
|
|
57
|
-
} = {}
|
|
58
|
-
} = n, s = r(t, ["icons", o], {
|
|
59
|
-
name: ""
|
|
60
|
-
});
|
|
61
|
-
return /* @__PURE__ */ e(b, { ...s });
|
|
62
|
-
}, Q = (n) => {
|
|
63
|
-
const {
|
|
64
|
-
theme: {
|
|
65
|
-
snackbar: o
|
|
66
|
-
} = {},
|
|
67
|
-
...t
|
|
68
|
-
} = n;
|
|
69
|
-
return /* @__PURE__ */ e("div", { css: r(o, "snackbarBody", {}), ...t });
|
|
70
|
-
}, U = (n) => {
|
|
71
|
-
const {
|
|
72
|
-
theme: {
|
|
73
|
-
snackbar: o
|
|
74
|
-
} = {},
|
|
75
|
-
...t
|
|
76
|
-
} = n;
|
|
77
|
-
return /* @__PURE__ */ e("div", { css: r(o, "snackbarContent", {}), ...t });
|
|
78
|
-
}, X = (n) => /* @__PURE__ */ e(p, { align: g.Start, variant: f.Body2, styleVariant: k.Semibold, ...n }), Y = (n) => /* @__PURE__ */ e(p, { align: g.Start, variant: f.Body2, styleVariant: k.Normal, ...n }), Z = (n) => {
|
|
79
|
-
const {
|
|
80
|
-
theme: {
|
|
81
|
-
snackbar: o
|
|
82
|
-
} = {},
|
|
83
|
-
...t
|
|
84
|
-
} = n;
|
|
85
|
-
return /* @__PURE__ */ e("div", { css: r(o, "actionsContainer", {}), ...t });
|
|
86
|
-
}, _ = (n) => {
|
|
87
|
-
const {
|
|
88
|
-
theme: {
|
|
89
|
-
snackbar: o
|
|
90
|
-
} = {},
|
|
91
|
-
$position: t,
|
|
92
|
-
...s
|
|
93
|
-
} = n, a = [r(o, "container.default", {}), r(o, ["positions", t], {})];
|
|
94
|
-
return /* @__PURE__ */ e("div", { css: a, ...s });
|
|
95
|
-
};
|
|
96
|
-
export {
|
|
97
|
-
L as CloseButtonIconStyled,
|
|
98
|
-
H as CloseButtonWrapperStyled,
|
|
99
|
-
Z as SnackbarActionsContainerStyled,
|
|
100
|
-
Q as SnackbarBodyStyled,
|
|
101
|
-
_ as SnackbarContainerStyled,
|
|
102
|
-
U as SnackbarContentStyled,
|
|
103
|
-
Y as SnackbarDescriptionStyled,
|
|
104
|
-
M as SnackbarIconStyled,
|
|
105
|
-
G as SnackbarStyled,
|
|
106
|
-
X as SnackbarTitleStyled
|
|
107
|
-
};
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { SnackbarVariant, SnackbarPosition } from '../../../types';
|
|
2
|
-
export declare const COMPONENT_NAME = "Snackbar";
|
|
3
|
-
export declare const COMPONENT_SNACKBAR_MANAGER_NAME = "Snackbar-manager";
|
|
4
|
-
export declare const DEFAULT_VARIANT = SnackbarVariant.Info;
|
|
5
|
-
export declare const DEFAULT_POSITION = SnackbarPosition.BottomRight;
|
|
6
|
-
export declare const DEFAULT_DURATION = 3000;
|
|
7
|
-
export declare const MAX_SNACKBARS = 50;
|
|
8
|
-
export declare const ANIMATION_DURATION = 300;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { SnackbarPosition as A, SnackbarVariant as n } from "../../../types/snackbar.js";
|
|
2
|
-
const N = "Snackbar", t = "Snackbar-manager", a = n.Info, c = A.BottomRight, T = 3e3, r = 300;
|
|
3
|
-
export {
|
|
4
|
-
r as ANIMATION_DURATION,
|
|
5
|
-
N as COMPONENT_NAME,
|
|
6
|
-
t as COMPONENT_SNACKBAR_MANAGER_NAME,
|
|
7
|
-
T as DEFAULT_DURATION,
|
|
8
|
-
c as DEFAULT_POSITION,
|
|
9
|
-
a as DEFAULT_VARIANT
|
|
10
|
-
};
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import { jsxs as m, jsx as c } from "@emotion/react/jsx-runtime";
|
|
3
|
-
import { forwardRef as k, useState as u, useCallback as n, useEffect as $ } from "react";
|
|
4
|
-
import { COMPONENT_NAME as t } from "./constants.js";
|
|
5
|
-
import { SwitchWrapperStyled as g, SwitchLabelStyled as x, SwitchStyled as y, SwitchSliderStyled as N, HiddenCheckboxStyled as C } from "./SwitchStyled.js";
|
|
6
|
-
import { LabelPosition as E } from "../../../types/label.js";
|
|
7
|
-
import { useTheme as j } from "../../../hooks/useTheme/useTheme.js";
|
|
8
|
-
import { get as I } from "../../../utils/helpers.js";
|
|
9
|
-
const H = k((f, p) => {
|
|
10
|
-
const {
|
|
11
|
-
onValueChange: d,
|
|
12
|
-
checked: s = !1,
|
|
13
|
-
disabled: r = !1,
|
|
14
|
-
label: S = E.Right,
|
|
15
|
-
children: b,
|
|
16
|
-
...i
|
|
17
|
-
} = f, {
|
|
18
|
-
theme: e
|
|
19
|
-
} = j(), [l, o] = u(s), h = n((a) => {
|
|
20
|
-
o(a), d == null || d(a);
|
|
21
|
-
}, [d]), w = n((a) => {
|
|
22
|
-
r || h(I(a, "target.checked", !1));
|
|
23
|
-
}, [r, h]);
|
|
24
|
-
return $(() => {
|
|
25
|
-
o(s);
|
|
26
|
-
}, [s]), /* @__PURE__ */ m(g, { theme: e, ref: p, $disabled: r, "data-testid": `${t}-wrapper`, ...i, children: [
|
|
27
|
-
/* @__PURE__ */ c(x, { className: "gd-switch-label", theme: e, $label: S, "data-testid": `${t}-label`, children: b }),
|
|
28
|
-
/* @__PURE__ */ m(y, { "data-testid": t, theme: e, children: [
|
|
29
|
-
/* @__PURE__ */ c(N, { className: "gd-switch-slider", theme: e, $checked: l, "data-testid": `${t}-slider` }),
|
|
30
|
-
/* @__PURE__ */ c(
|
|
31
|
-
C,
|
|
32
|
-
{
|
|
33
|
-
theme: e,
|
|
34
|
-
checked: l,
|
|
35
|
-
disabled: r,
|
|
36
|
-
onChange: w,
|
|
37
|
-
"data-testid": `${t}-checkbox`,
|
|
38
|
-
...i
|
|
39
|
-
}
|
|
40
|
-
)
|
|
41
|
-
] })
|
|
42
|
-
] });
|
|
43
|
-
});
|
|
44
|
-
export {
|
|
45
|
-
H as Switch
|
|
46
|
-
};
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { PropsWithChildren } from 'react';
|
|
2
|
-
import { EnumOrPrimitive, LabelPosition } from '../../../types';
|
|
3
|
-
import { CommonCssComponentProps, CommonCssComponentStyledProps, CommonCssInputStyledProps } from '../..';
|
|
4
|
-
export interface SwitchProps<T> extends PropsWithChildren<CommonCssComponentProps<T>> {
|
|
5
|
-
label?: EnumOrPrimitive<LabelPosition>;
|
|
6
|
-
name?: string;
|
|
7
|
-
disabled?: boolean;
|
|
8
|
-
checked?: boolean;
|
|
9
|
-
onValueChange?: (value: boolean) => void;
|
|
10
|
-
}
|
|
11
|
-
export interface SwitchStyledProps<T> extends PropsWithChildren<CommonCssComponentStyledProps<T>> {
|
|
12
|
-
$disabled?: boolean;
|
|
13
|
-
$checked?: boolean;
|
|
14
|
-
}
|
|
15
|
-
export interface SwitchLabelStyledProps extends PropsWithChildren<CommonCssComponentStyledProps> {
|
|
16
|
-
$label?: EnumOrPrimitive<LabelPosition>;
|
|
17
|
-
}
|
|
18
|
-
export interface HiddenCheckboxStyledProps extends CommonCssInputStyledProps {
|
|
19
|
-
disabled?: boolean;
|
|
20
|
-
checked?: boolean;
|
|
21
|
-
}
|