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,42 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import { jsx as c } from "@emotion/react/jsx-runtime";
|
|
3
|
-
import { forwardRef as l } from "react";
|
|
4
|
-
import { get as o } from "../../../utils/helpers.js";
|
|
5
|
-
const p = l((e, t) => {
|
|
6
|
-
const {
|
|
7
|
-
styles: r = {},
|
|
8
|
-
theme: {
|
|
9
|
-
price: s
|
|
10
|
-
} = {},
|
|
11
|
-
...n
|
|
12
|
-
} = e, d = {
|
|
13
|
-
...o(s, "default", {}),
|
|
14
|
-
...r
|
|
15
|
-
};
|
|
16
|
-
return /* @__PURE__ */ c("div", { ref: t, css: d, ...n });
|
|
17
|
-
}), f = (e) => {
|
|
18
|
-
const {
|
|
19
|
-
theme: {
|
|
20
|
-
price: t
|
|
21
|
-
} = {},
|
|
22
|
-
...r
|
|
23
|
-
} = e, s = {
|
|
24
|
-
...o(t, "currentPrice.default", {})
|
|
25
|
-
};
|
|
26
|
-
return /* @__PURE__ */ c("span", { css: s, ...r });
|
|
27
|
-
}, y = (e) => {
|
|
28
|
-
const {
|
|
29
|
-
theme: {
|
|
30
|
-
price: t
|
|
31
|
-
} = {},
|
|
32
|
-
...r
|
|
33
|
-
} = e, s = {
|
|
34
|
-
...o(t, "oldPrice.default", {})
|
|
35
|
-
};
|
|
36
|
-
return /* @__PURE__ */ c("del", { css: s, ...r });
|
|
37
|
-
};
|
|
38
|
-
export {
|
|
39
|
-
f as CurrentPriceStyled,
|
|
40
|
-
y as OldPriceStyled,
|
|
41
|
-
p as PriceStyled
|
|
42
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const COMPONENT_NAME = "Price";
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import { jsx as l, jsxs as S } from "@emotion/react/jsx-runtime";
|
|
3
|
-
import { forwardRef as _ } from "react";
|
|
4
|
-
import { PROGRESS_MIN_VALUE_DEFAULT as t, COMPONENT_ROLE_DEFAULT as L, COMPONENT_NAME as a, PROGRESS_MAX_VALUE_DEFAULT as d } from "./constants.js";
|
|
5
|
-
import { ProgressBarStyled as P, TrackStyled as p, IndeterminateFillStyled as A, DeterminateFillStyled as M, PercentLabelStyled as N } from "./ProgressBarStyled.js";
|
|
6
|
-
import { useTheme as O } from "../../../hooks/useTheme/useTheme.js";
|
|
7
|
-
const T = _((n, s) => {
|
|
8
|
-
const {
|
|
9
|
-
value: m = t,
|
|
10
|
-
indeterminate: i = !1,
|
|
11
|
-
showPercentage: c = !1,
|
|
12
|
-
fillColor: o,
|
|
13
|
-
role: f = L,
|
|
14
|
-
backgroundColor: h,
|
|
15
|
-
children: b,
|
|
16
|
-
"aria-label": E,
|
|
17
|
-
...u
|
|
18
|
-
} = n, {
|
|
19
|
-
theme: e
|
|
20
|
-
} = O(), r = Math.min(d, Math.max(t, m));
|
|
21
|
-
return /* @__PURE__ */ l(P, { ref: s, theme: e, role: f, "aria-label": E, "aria-valuemin": t, "aria-valuemax": d, "aria-valuenow": i ? void 0 : r, ...u, "data-testid": a, children: /* @__PURE__ */ l(p, { theme: e, $backgroundColor: h, "data-testid": `${a}-track`, children: i ? /* @__PURE__ */ l(A, { theme: e, fill: o, "data-testid": `${a}-fill` }) : /* @__PURE__ */ l(M, { theme: e, fill: o, $width: r, "data-testid": `${a}-fill`, children: c && r > t && /* @__PURE__ */ S(N, { theme: e, children: [
|
|
22
|
-
r,
|
|
23
|
-
"%"
|
|
24
|
-
] }) }) }) });
|
|
25
|
-
});
|
|
26
|
-
T.displayName = a;
|
|
27
|
-
export {
|
|
28
|
-
T as ProgressBar
|
|
29
|
-
};
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import { PropsWithChildren } from 'react';
|
|
2
|
-
import { CommonCssComponentProps, CommonCssComponentStyledProps } from '../..';
|
|
3
|
-
import { NullableType } from '../../../types';
|
|
4
|
-
export interface ProgressBarProps extends CommonCssComponentProps {
|
|
5
|
-
/** 0–100 percentage. If omitted (or indeterminate=true), renders the indeterminate animation. */
|
|
6
|
-
value?: number;
|
|
7
|
-
/** Switch to indeterminate (animated) mode */
|
|
8
|
-
indeterminate?: boolean;
|
|
9
|
-
/** Show or not percentage number, false by default */
|
|
10
|
-
showPercentage?: boolean;
|
|
11
|
-
/** Color of the filled portion (defaults to theme.primary.main) */
|
|
12
|
-
fillColor?: string;
|
|
13
|
-
/** Background track color (defaults to theme.background.disabled) */
|
|
14
|
-
backgroundColor?: string;
|
|
15
|
-
/** Role for progress bars, indicating a widget that displays the progress of a task */
|
|
16
|
-
role?: string;
|
|
17
|
-
/** Visually hidden label for screen readers */
|
|
18
|
-
'aria-label'?: string;
|
|
19
|
-
className?: string;
|
|
20
|
-
}
|
|
21
|
-
export interface ProgressBarStyledProps extends CommonCssComponentStyledProps, PropsWithChildren {
|
|
22
|
-
}
|
|
23
|
-
export interface TrackStyledProps extends CommonCssComponentStyledProps, PropsWithChildren {
|
|
24
|
-
$backgroundColor?: string;
|
|
25
|
-
}
|
|
26
|
-
export interface DeterminateFillStyledProps extends CommonCssComponentStyledProps, PropsWithChildren {
|
|
27
|
-
fill?: string;
|
|
28
|
-
$width?: number;
|
|
29
|
-
}
|
|
30
|
-
export interface IndeterminateFillStyledProps extends CommonCssComponentStyledProps, PropsWithChildren {
|
|
31
|
-
fill?: string;
|
|
32
|
-
$animationName?: NullableType<string>;
|
|
33
|
-
$animationProps?: string;
|
|
34
|
-
}
|
|
35
|
-
export interface PercentLabelStyledProps extends CommonCssComponentStyledProps<HTMLSpanElement>, PropsWithChildren {
|
|
36
|
-
}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { DeterminateFillStyledProps, IndeterminateFillStyledProps, PercentLabelStyledProps, ProgressBarStyledProps, TrackStyledProps } from './ProgressBar.types';
|
|
2
|
-
export declare const ProgressBarStyled: import('react').ForwardRefExoticComponent<Omit<ProgressBarStyledProps, "ref"> & import('react').RefAttributes<HTMLDivElement>>;
|
|
3
|
-
export declare const TrackStyled: (props: TrackStyledProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
4
|
-
export declare const DeterminateFillStyled: (props: DeterminateFillStyledProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
5
|
-
export declare const IndeterminateFillStyled: (props: IndeterminateFillStyledProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
6
|
-
export declare const PercentLabelStyled: (props: PercentLabelStyledProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
@@ -1,70 +0,0 @@
|
|
|
1
|
-
import { jsx as i } from "@emotion/react/jsx-runtime";
|
|
2
|
-
import { forwardRef as y } from "react";
|
|
3
|
-
import { get as o } from "../../../utils/helpers.js";
|
|
4
|
-
import { convertJsonToCssKeyframeCss as f } from "../../../tokens/utils.js";
|
|
5
|
-
const P = y((r, t) => {
|
|
6
|
-
const {
|
|
7
|
-
theme: {
|
|
8
|
-
progressbar: e
|
|
9
|
-
} = {},
|
|
10
|
-
styles: s = {},
|
|
11
|
-
...n
|
|
12
|
-
} = r, a = [o(e, "styledProgressBar.default", {}), s];
|
|
13
|
-
return /* @__PURE__ */ i("div", { css: a, ref: t, ...n });
|
|
14
|
-
}), $ = (r) => {
|
|
15
|
-
const {
|
|
16
|
-
theme: {
|
|
17
|
-
progressbar: t
|
|
18
|
-
} = {},
|
|
19
|
-
$backgroundColor: e,
|
|
20
|
-
...s
|
|
21
|
-
} = r, n = [o(t, "styledTrack.default", {}), e && {
|
|
22
|
-
backgroundColor: e
|
|
23
|
-
}];
|
|
24
|
-
return /* @__PURE__ */ i("div", { css: n, ...s });
|
|
25
|
-
}, k = (r) => {
|
|
26
|
-
const {
|
|
27
|
-
theme: {
|
|
28
|
-
progressbar: t
|
|
29
|
-
} = {},
|
|
30
|
-
fill: e,
|
|
31
|
-
$width: s = 0,
|
|
32
|
-
...n
|
|
33
|
-
} = r, a = [o(t, "styledDeterminateFill.default", {}), e && {
|
|
34
|
-
backgroundColor: e
|
|
35
|
-
}, s && {
|
|
36
|
-
width: `${s}%`
|
|
37
|
-
}];
|
|
38
|
-
return /* @__PURE__ */ i("div", { css: a, ...n });
|
|
39
|
-
}, C = (r) => {
|
|
40
|
-
const {
|
|
41
|
-
theme: {
|
|
42
|
-
progressbar: t,
|
|
43
|
-
animations: e
|
|
44
|
-
} = {},
|
|
45
|
-
fill: s,
|
|
46
|
-
$animationName: n = o(t, "styledIndeterminateFillAnimations.animationName", "progressIndeterminate"),
|
|
47
|
-
$animationProps: a,
|
|
48
|
-
...c
|
|
49
|
-
} = r, l = n ? o(e, n, null) : null, m = l ? f(l) : n, d = a || o(t, "styledIndeterminateFillAnimations.animationProps", ""), p = {
|
|
50
|
-
animation: `${m} ${d}`
|
|
51
|
-
}, u = [o(t, "styledIndeterminateFill.default", {}), s ? {
|
|
52
|
-
backgroundColor: s
|
|
53
|
-
} : {}, m ? p : {}];
|
|
54
|
-
return /* @__PURE__ */ i("div", { css: u, ...c });
|
|
55
|
-
}, F = (r) => {
|
|
56
|
-
const {
|
|
57
|
-
theme: {
|
|
58
|
-
progressbar: t
|
|
59
|
-
} = {},
|
|
60
|
-
...e
|
|
61
|
-
} = r, s = [o(t, "styledPercentLabel.default", {})];
|
|
62
|
-
return /* @__PURE__ */ i("span", { css: s, ...e });
|
|
63
|
-
};
|
|
64
|
-
export {
|
|
65
|
-
k as DeterminateFillStyled,
|
|
66
|
-
C as IndeterminateFillStyled,
|
|
67
|
-
F as PercentLabelStyled,
|
|
68
|
-
P as ProgressBarStyled,
|
|
69
|
-
$ as TrackStyled
|
|
70
|
-
};
|
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import { jsx as r } from "@emotion/react/jsx-runtime";
|
|
3
|
-
import { forwardRef as W, useId as A, useState as D, useCallback as H } from "react";
|
|
4
|
-
import { COMPONENT_NAME as h } from "./constants.js";
|
|
5
|
-
import { RadioGroupVariant as L } from "./RadioGroup.types.js";
|
|
6
|
-
import { RadioGroupStyled as _, RadioLayoutStyled as q } from "./RadioGroupStyled.js";
|
|
7
|
-
import { spacing as f } from "../../../tokens/spacing.js";
|
|
8
|
-
import { RadioGroupItem as p } from "./RadioGroupItem/RadioGroupItem.js";
|
|
9
|
-
import { useTheme as z } from "../../../hooks/useTheme/useTheme.js";
|
|
10
|
-
import { InputRole as B } from "../../../types/input.js";
|
|
11
|
-
import { Column as F } from "../../layout/Column/Column.js";
|
|
12
|
-
const J = W(($, R) => {
|
|
13
|
-
const {
|
|
14
|
-
styles: C,
|
|
15
|
-
options: w,
|
|
16
|
-
variant: v = L.Row,
|
|
17
|
-
value: d,
|
|
18
|
-
defaultValue: G,
|
|
19
|
-
onChange: s,
|
|
20
|
-
name: y,
|
|
21
|
-
itemHeight: l,
|
|
22
|
-
itemWidth: m,
|
|
23
|
-
gutter: I = f.sm,
|
|
24
|
-
gridColumns: b,
|
|
25
|
-
gridRows: N,
|
|
26
|
-
gridColumnGutter: k,
|
|
27
|
-
gridRowGutter: S,
|
|
28
|
-
renderOption: n,
|
|
29
|
-
className: V,
|
|
30
|
-
align: j,
|
|
31
|
-
justify: O,
|
|
32
|
-
wrapItems: x
|
|
33
|
-
} = $, {
|
|
34
|
-
theme: u
|
|
35
|
-
} = z(), E = A(), i = y ?? `radio-group-${E}`, [M, P] = D(G), o = d !== void 0, c = o ? d : M, T = H((e) => {
|
|
36
|
-
const t = o ? s : P;
|
|
37
|
-
t == null || t(e);
|
|
38
|
-
}, [o, s]), g = (e) => {
|
|
39
|
-
e.disabled || T(e.value);
|
|
40
|
-
};
|
|
41
|
-
return /* @__PURE__ */ r(_, { ref: R, role: B.Radiogroup, theme: u, styles: C, "data-testid": h, className: V, children: /* @__PURE__ */ r(F, { gutter: f.sm, children: /* @__PURE__ */ r(q, { theme: u, $variant: v, $isWrap: x, $align: j, $justify: O, $gutter: I, $gridColumns: b, $gridRows: N, $gridColumnGutter: k, $gridRowGutter: S, children: w.map((e) => {
|
|
42
|
-
const t = c === e.value, a = e.disabled;
|
|
43
|
-
return n ? /* @__PURE__ */ r(p, { name: i, selected: t, disabled: a, item: e, width: m, height: l, onClick: () => g(e), children: n({
|
|
44
|
-
option: e,
|
|
45
|
-
isSelected: t,
|
|
46
|
-
isDisabled: a,
|
|
47
|
-
selectedValue: c
|
|
48
|
-
}) }, `${i}-${e.value}`) : /* @__PURE__ */ r(p, { name: i, selected: t, disabled: a, item: e, width: m, height: l, onClick: () => g(e) }, `${i}-${e.value}`);
|
|
49
|
-
}) }) }) });
|
|
50
|
-
});
|
|
51
|
-
J.displayName = h;
|
|
52
|
-
export {
|
|
53
|
-
J as RadioGroup
|
|
54
|
-
};
|
|
@@ -1,74 +0,0 @@
|
|
|
1
|
-
import { InputHTMLAttributes, ReactNode } from 'react';
|
|
2
|
-
import { BoxCssComponentStyledProps, CommonCssComponentProps, CommonCssComponentStyledProps, FlexElementStyledProps } from '../..';
|
|
3
|
-
import { AlignType, EnumOrPrimitive, JustifyType } from '../../../types';
|
|
4
|
-
export declare enum RadioGroupVariant {
|
|
5
|
-
Row = "row",
|
|
6
|
-
Column = "column",
|
|
7
|
-
Grid = "grid"
|
|
8
|
-
}
|
|
9
|
-
export interface RenderOptionProps {
|
|
10
|
-
option: RadioOption;
|
|
11
|
-
isSelected?: boolean;
|
|
12
|
-
isDisabled?: boolean;
|
|
13
|
-
selectedValue?: string;
|
|
14
|
-
}
|
|
15
|
-
export interface RadioGroupProps extends Omit<CommonCssComponentProps<HTMLFieldSetElement>, 'onChange'> {
|
|
16
|
-
options: RadioOption[];
|
|
17
|
-
value?: string;
|
|
18
|
-
defaultValue?: string;
|
|
19
|
-
itemWidth?: string;
|
|
20
|
-
itemHeight?: string;
|
|
21
|
-
gutter?: number | string;
|
|
22
|
-
gridColumns?: number | string;
|
|
23
|
-
gridRows?: number | string;
|
|
24
|
-
gridColumnGutter?: string | number;
|
|
25
|
-
gridRowGutter?: string | number;
|
|
26
|
-
onChange?: (value: string) => void;
|
|
27
|
-
name?: string;
|
|
28
|
-
renderOption?: (renderProps: RenderOptionProps) => ReactNode;
|
|
29
|
-
wrapItems?: boolean;
|
|
30
|
-
align?: AlignType;
|
|
31
|
-
justify?: JustifyType;
|
|
32
|
-
variant?: RadioGroupVariant;
|
|
33
|
-
}
|
|
34
|
-
export interface RadioGroupItemProps extends Omit<CommonCssComponentProps, 'onClick'> {
|
|
35
|
-
item: RadioOption;
|
|
36
|
-
name?: string;
|
|
37
|
-
selected?: boolean;
|
|
38
|
-
disabled?: boolean;
|
|
39
|
-
width?: string;
|
|
40
|
-
height?: string;
|
|
41
|
-
onClick: (value: string) => void;
|
|
42
|
-
children?: ReactNode;
|
|
43
|
-
variant?: RadioGroupVariant;
|
|
44
|
-
}
|
|
45
|
-
export interface StyledGridLayoutProps {
|
|
46
|
-
$gridColumns?: number | string;
|
|
47
|
-
$gridRows?: number | string;
|
|
48
|
-
$gridColumnGutter?: string | number;
|
|
49
|
-
$gridRowGutter?: string | number;
|
|
50
|
-
}
|
|
51
|
-
export type RadioGroupStyledProps = CommonCssComponentStyledProps<HTMLFieldSetElement>;
|
|
52
|
-
export type RadioLabelStyledProps = RadioItemStyledProps<HTMLLabelElement>;
|
|
53
|
-
export interface HiddenInputStyledProps extends Omit<CommonCssComponentStyledProps, keyof InputHTMLAttributes<HTMLInputElement> | 'ref'>, InputHTMLAttributes<HTMLInputElement> {
|
|
54
|
-
}
|
|
55
|
-
export interface RadioLayoutStyledProps extends CommonCssComponentStyledProps, Omit<BoxCssComponentStyledProps, keyof CommonCssComponentStyledProps>, Partial<FlexElementStyledProps>, StyledGridLayoutProps {
|
|
56
|
-
$variant?: EnumOrPrimitive<RadioGroupVariant>;
|
|
57
|
-
}
|
|
58
|
-
export interface RadioItemStyledProps<T> extends CommonCssComponentStyledProps<T> {
|
|
59
|
-
selected?: boolean;
|
|
60
|
-
disabled?: boolean;
|
|
61
|
-
$hex?: string;
|
|
62
|
-
$width?: string;
|
|
63
|
-
$height?: string;
|
|
64
|
-
$image?: string;
|
|
65
|
-
}
|
|
66
|
-
export interface RadioOption<T = unknown> {
|
|
67
|
-
value: string;
|
|
68
|
-
label: string;
|
|
69
|
-
disabled?: boolean;
|
|
70
|
-
hex?: string;
|
|
71
|
-
image?: string;
|
|
72
|
-
tooltip?: string;
|
|
73
|
-
payload?: T;
|
|
74
|
-
}
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { RadioGroupItemProps } from '../RadioGroup.types';
|
|
2
|
-
export declare const RadioGroupItem: {
|
|
3
|
-
({ item, selected, disabled, width, height, name, onClick, children, styles, }: RadioGroupItemProps): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
4
|
-
displayName: string;
|
|
5
|
-
};
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import { jsx as i, jsxs as v } from "@emotion/react/jsx-runtime";
|
|
3
|
-
import { TooltipPosition as k } from "../../../core/Tooltip/Tooltip.types.js";
|
|
4
|
-
import { ITEM_COMPONENT_NAME as p } from "../constants.js";
|
|
5
|
-
import { RadioItemStyled as c, HiddenInputStyled as f, RadioLabelStyled as g } from "../RadioGroupStyled.js";
|
|
6
|
-
import m from "../../../core/Tooltip/Tooltip.js";
|
|
7
|
-
import { useTheme as C } from "../../../../hooks/useTheme/useTheme.js";
|
|
8
|
-
const T = ({
|
|
9
|
-
item: o,
|
|
10
|
-
selected: t,
|
|
11
|
-
disabled: a,
|
|
12
|
-
width: u,
|
|
13
|
-
height: $,
|
|
14
|
-
name: e,
|
|
15
|
-
onClick: x,
|
|
16
|
-
children: n,
|
|
17
|
-
styles: l
|
|
18
|
-
}) => {
|
|
19
|
-
const {
|
|
20
|
-
theme: r
|
|
21
|
-
} = C(), h = () => {
|
|
22
|
-
a || x(o.value);
|
|
23
|
-
};
|
|
24
|
-
return o.tooltip ? /* @__PURE__ */ i(m, { content: o.tooltip, position: k.Top, styles: {}, children: /* @__PURE__ */ v(c, { selected: t, disabled: a, theme: r, $hex: o.hex, $image: o.image, $height: $, $width: u, "data-testid": `${p}-${o.value}`, onClick: h, styles: l, children: [
|
|
25
|
-
/* @__PURE__ */ i(f, { name: e, theme: r, "data-testid": `${p}-input-${o.value}`, "aria-checked": t, "aria-disabled": a, value: o.value, checked: t, disabled: a, onChange: h }),
|
|
26
|
-
n && n,
|
|
27
|
-
!n && /* @__PURE__ */ i(g, { theme: r, selected: t, disabled: a, children: o.label })
|
|
28
|
-
] }) }) : /* @__PURE__ */ v(c, { selected: t, disabled: a, theme: r, $hex: o.hex, $image: o.image, $height: $, $width: u, "data-testid": `${p}-${o.value}`, onClick: h, styles: l, children: [
|
|
29
|
-
/* @__PURE__ */ i(f, { name: e, theme: r, value: o.value, checked: t, disabled: a, "data-testid": `${p}-input-${o.value}`, onChange: h, "aria-checked": t, "aria-disabled": a }),
|
|
30
|
-
n && n,
|
|
31
|
-
!n && /* @__PURE__ */ i(g, { theme: r, selected: t, disabled: a, children: o.label })
|
|
32
|
-
] });
|
|
33
|
-
};
|
|
34
|
-
T.displayName = p;
|
|
35
|
-
export {
|
|
36
|
-
T as RadioGroupItem
|
|
37
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './RadioGroupItem';
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { HiddenInputStyledProps, RadioGroupStyledProps, RadioItemStyledProps, RadioLabelStyledProps, RadioLayoutStyledProps } from './RadioGroup.types';
|
|
2
|
-
export declare const HiddenInputStyled: (props: HiddenInputStyledProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
3
|
-
export declare const RadioGroupStyled: import('react').ForwardRefExoticComponent<Omit<RadioGroupStyledProps, "ref"> & import('react').RefAttributes<HTMLFieldSetElement>>;
|
|
4
|
-
export declare const RadioItemStyled: (props: RadioItemStyledProps<HTMLDivElement>) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
5
|
-
export declare const RadioLabelStyled: (props: RadioLabelStyledProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
6
|
-
export declare const RadioLayoutStyled: (props: RadioLayoutStyledProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
@@ -1,130 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import { jsx as c } from "@emotion/react/jsx-runtime";
|
|
3
|
-
import { forwardRef as $ } from "react";
|
|
4
|
-
import { getBoxStyles as G } from "../../../tokens/utils.js";
|
|
5
|
-
import { RadioGroupVariant as R } from "./RadioGroup.types.js";
|
|
6
|
-
import { calculateGutter as b, calculateGridRows as w, calculateGridColumns as v, calculateJustify as k, calculateAlign as x } from "../../../utils/layout.js";
|
|
7
|
-
import { get as s } from "../../../utils/helpers.js";
|
|
8
|
-
const A = (r) => {
|
|
9
|
-
const {
|
|
10
|
-
theme: {
|
|
11
|
-
radiogroup: t
|
|
12
|
-
} = {},
|
|
13
|
-
...e
|
|
14
|
-
} = r, o = {
|
|
15
|
-
...s(t, "input", {})
|
|
16
|
-
};
|
|
17
|
-
return /* @__PURE__ */ c("input", { type: "radio", css: o, ...e });
|
|
18
|
-
}, B = $((r, t) => {
|
|
19
|
-
const {
|
|
20
|
-
theme: {
|
|
21
|
-
radiogroup: e
|
|
22
|
-
} = {},
|
|
23
|
-
styles: o = {},
|
|
24
|
-
...a
|
|
25
|
-
} = r, l = {
|
|
26
|
-
...s(e, "default", {}),
|
|
27
|
-
...o
|
|
28
|
-
};
|
|
29
|
-
return /* @__PURE__ */ c("fieldset", { ref: t, css: l, ...a });
|
|
30
|
-
}), H = (r) => {
|
|
31
|
-
const {
|
|
32
|
-
theme: {
|
|
33
|
-
radiogroup: t
|
|
34
|
-
} = {},
|
|
35
|
-
disabled: e,
|
|
36
|
-
selected: o,
|
|
37
|
-
$hex: a,
|
|
38
|
-
$width: l,
|
|
39
|
-
$height: d,
|
|
40
|
-
$image: i,
|
|
41
|
-
styles: n = {},
|
|
42
|
-
...m
|
|
43
|
-
} = r, p = s(t, "item.selected", {}), g = s(t, "item.disabled", {}), u = s(t, "item.hover", {}), y = a ? {
|
|
44
|
-
backgroundColor: a
|
|
45
|
-
} : {}, f = i ? {
|
|
46
|
-
backgroundImage: `url(${i})`,
|
|
47
|
-
backgroundPosition: "center",
|
|
48
|
-
backgroundRepeat: "no-repeat"
|
|
49
|
-
} : {}, S = {
|
|
50
|
-
...s(t, "item.default", {}),
|
|
51
|
-
...e ? g : {},
|
|
52
|
-
...o ? p : {},
|
|
53
|
-
...y,
|
|
54
|
-
...f,
|
|
55
|
-
...l ? {
|
|
56
|
-
width: l
|
|
57
|
-
} : {},
|
|
58
|
-
...d ? {
|
|
59
|
-
height: d
|
|
60
|
-
} : {},
|
|
61
|
-
...!e && !o ? u : {},
|
|
62
|
-
...n
|
|
63
|
-
};
|
|
64
|
-
return /* @__PURE__ */ c("div", { css: S, ...m });
|
|
65
|
-
}, J = (r) => {
|
|
66
|
-
const {
|
|
67
|
-
theme: {
|
|
68
|
-
radiogroup: t
|
|
69
|
-
} = {},
|
|
70
|
-
selected: e,
|
|
71
|
-
disabled: o,
|
|
72
|
-
...a
|
|
73
|
-
} = r, l = s(t, "label.selected", {}), d = s(t, "label.disabled", {}), i = s(t, "label.hover", {}), n = {
|
|
74
|
-
...s(t, "label.default", {}),
|
|
75
|
-
...o ? d : {},
|
|
76
|
-
...e ? l : {},
|
|
77
|
-
...!o && !e ? i : {}
|
|
78
|
-
};
|
|
79
|
-
return /* @__PURE__ */ c("label", { css: n, ...a });
|
|
80
|
-
}, P = (r) => {
|
|
81
|
-
const {
|
|
82
|
-
theme: {
|
|
83
|
-
radiogroup: t
|
|
84
|
-
} = {},
|
|
85
|
-
$isWrap: e,
|
|
86
|
-
$align: o = "start",
|
|
87
|
-
$justify: a = "start",
|
|
88
|
-
$variant: l,
|
|
89
|
-
$gutter: d,
|
|
90
|
-
$gridColumns: i,
|
|
91
|
-
$gridRows: n,
|
|
92
|
-
$gridColumnGutter: m,
|
|
93
|
-
$gridRowGutter: p,
|
|
94
|
-
styles: g,
|
|
95
|
-
...u
|
|
96
|
-
} = r, y = {
|
|
97
|
-
...s(t, `layouts.${l}`, {}),
|
|
98
|
-
...G(u).boxStyles,
|
|
99
|
-
gap: b(d),
|
|
100
|
-
...g
|
|
101
|
-
};
|
|
102
|
-
if (l === R.Grid) {
|
|
103
|
-
const h = {
|
|
104
|
-
...y,
|
|
105
|
-
gridTemplateColumns: v(i),
|
|
106
|
-
gridTemplateRows: w(n),
|
|
107
|
-
...m && {
|
|
108
|
-
columnGap: b(m)
|
|
109
|
-
},
|
|
110
|
-
...p && {
|
|
111
|
-
rowGap: b(p)
|
|
112
|
-
}
|
|
113
|
-
};
|
|
114
|
-
return /* @__PURE__ */ c("div", { css: h, ...u });
|
|
115
|
-
}
|
|
116
|
-
const S = {
|
|
117
|
-
...y,
|
|
118
|
-
flexWrap: e ? "wrap" : "nowrap",
|
|
119
|
-
alignItems: x(o),
|
|
120
|
-
justifyContent: k(a)
|
|
121
|
-
};
|
|
122
|
-
return /* @__PURE__ */ c("div", { css: S, ...u });
|
|
123
|
-
};
|
|
124
|
-
export {
|
|
125
|
-
A as HiddenInputStyled,
|
|
126
|
-
B as RadioGroupStyled,
|
|
127
|
-
H as RadioItemStyled,
|
|
128
|
-
J as RadioLabelStyled,
|
|
129
|
-
P as RadioLayoutStyled
|
|
130
|
-
};
|
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import { jsxs as _, jsx as i } from "@emotion/react/jsx-runtime";
|
|
3
|
-
import { forwardRef as w, useState as L } from "react";
|
|
4
|
-
import { DEFAULT_VALUE as H, COMPONENT_NAME as e, DEFAULT_READ_ONLY as z, DEFAULT_MAX_RATE as K, DEFAULT_SIZE as Y, DEFAULT_SIZE_VALUE as R } from "./constants.js";
|
|
5
|
-
import { RatingStyled as j, RatingProgressWrapperStyled as Z, RadioLabelStyled as q, RadioInputStyled as B } from "./RatingStyled.js";
|
|
6
|
-
import { convertToFormattedPercents as W } from "../../../utils/math.js";
|
|
7
|
-
import { generateUniqueId as T } from "../../../utils/uniqueKeys.js";
|
|
8
|
-
import { useTheme as X } from "../../../hooks/useTheme/useTheme.js";
|
|
9
|
-
import { get as o } from "../../../utils/helpers.js";
|
|
10
|
-
import { Icon as V } from "../../core/Icon/Icon.js";
|
|
11
|
-
import { TabIndex as G } from "../../../types/accesability.js";
|
|
12
|
-
import { KEYBOARD_KEYS as J } from "../../../constants/keyboard.js";
|
|
13
|
-
const Q = w(($, I) => {
|
|
14
|
-
const {
|
|
15
|
-
value: l = H,
|
|
16
|
-
groupName: C = e,
|
|
17
|
-
onChange: m,
|
|
18
|
-
readOnly: t = z,
|
|
19
|
-
max: u = K,
|
|
20
|
-
size: D = Y,
|
|
21
|
-
...S
|
|
22
|
-
} = $, {
|
|
23
|
-
theme: s
|
|
24
|
-
} = X(), [b, O] = L(l), [f, g] = L(0), h = m ? l : b, p = o(s, "rating", {}), E = o(p, ["size", D], {
|
|
25
|
-
width: R,
|
|
26
|
-
height: R
|
|
27
|
-
}), c = o(p, "icons", {}), A = Array.from({
|
|
28
|
-
length: u
|
|
29
|
-
}), U = W({
|
|
30
|
-
max: u,
|
|
31
|
-
target: l,
|
|
32
|
-
formatChar: "%"
|
|
33
|
-
}), y = (r) => {
|
|
34
|
-
if (t) return;
|
|
35
|
-
(m || O)(r);
|
|
36
|
-
}, M = (r, a) => {
|
|
37
|
-
t || r.key !== J.ENTER || y(a);
|
|
38
|
-
}, N = (r) => {
|
|
39
|
-
t || g(r);
|
|
40
|
-
}, F = () => {
|
|
41
|
-
g(0);
|
|
42
|
-
};
|
|
43
|
-
return /* @__PURE__ */ _(j, { $readOnly: t, ref: I, theme: s, "data-testid": e, ...S, children: [
|
|
44
|
-
t && /* @__PURE__ */ i(Z, { theme: s, $width: U, "data-testid": `${e}-progress`, children: A.map((r, a) => /* @__PURE__ */ i(V, { fill: "bg.fill.primary.default", ...o(c, "rateActive", {
|
|
45
|
-
name: "star"
|
|
46
|
-
}), ...E }, T(`${e}-${a}`, "rate-progress"))) }),
|
|
47
|
-
A.map((r, a) => {
|
|
48
|
-
const n = a + 1, v = n === h, d = n <= (f !== 0 ? f : h), x = d ? o(c, "rateActive", {
|
|
49
|
-
name: "star"
|
|
50
|
-
}) : o(c, "rateInactive", {
|
|
51
|
-
name: "starOutlined"
|
|
52
|
-
}), P = d ? "bg.fill.primary.default" : "bg.fill.disabled";
|
|
53
|
-
return /* @__PURE__ */ _(q, { $isActive: d, $readOnly: t, theme: s, onKeyDown: (k) => M(k, n), tabIndex: G.Default, onMouseEnter: () => N(n), onMouseLeave: F, "data-testid": `${e}-label`, children: [
|
|
54
|
-
/* @__PURE__ */ i(B, { name: C, theme: s, value: n, onChange: () => y(n), defaultChecked: v, "aria-checked": v, readOnly: t, "data-testid": `${e}-input` }),
|
|
55
|
-
/* @__PURE__ */ i(V, { fill: P, ...E, ...x })
|
|
56
|
-
] }, T(`${e}-${a}`, "rate"));
|
|
57
|
-
})
|
|
58
|
-
] });
|
|
59
|
-
});
|
|
60
|
-
Q.displayName = e;
|
|
61
|
-
export {
|
|
62
|
-
Q as Rating
|
|
63
|
-
};
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { PropsWithChildren } from 'react';
|
|
2
|
-
import { CommonCssComponentProps, CommonCssComponentStyledProps, CommonCssInputStyledProps } from '../../index.types';
|
|
3
|
-
export type RatingSize = 'sm' | 'md' | 'lg';
|
|
4
|
-
export interface RatingProps extends Omit<CommonCssComponentProps, 'onChange'> {
|
|
5
|
-
max?: number;
|
|
6
|
-
value?: number;
|
|
7
|
-
groupName?: string;
|
|
8
|
-
defaultValue?: number;
|
|
9
|
-
onChange?: (value: number) => void;
|
|
10
|
-
readOnly?: boolean;
|
|
11
|
-
size?: RatingSize;
|
|
12
|
-
}
|
|
13
|
-
export interface RatingProgressStyledProps extends CommonCssComponentStyledProps, PropsWithChildren {
|
|
14
|
-
$width: string;
|
|
15
|
-
}
|
|
16
|
-
export interface RatingStyledProps<T = HTMLDivElement> extends CommonCssComponentStyledProps<T>, PropsWithChildren {
|
|
17
|
-
$readOnly?: boolean;
|
|
18
|
-
$isActive?: boolean;
|
|
19
|
-
}
|
|
20
|
-
export type RatingCommonStyledProps = CommonCssInputStyledProps;
|