gd-design-library 0.7.5 → 0.7.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +177 -0
- package/ai/README.md +137 -0
- package/components/core/Breadcrumbs/Breadcrumbs.d.ts +2 -0
- package/components/core/Breadcrumbs/Breadcrumbs.js +34 -0
- package/components/core/Breadcrumbs/Breadcrumbs.types.d.ts +14 -0
- package/components/core/Breadcrumbs/BreadcrumbsStyled.d.ts +6 -0
- package/components/core/Breadcrumbs/BreadcrumbsStyled.js +58 -0
- package/components/core/Breadcrumbs/constants.d.ts +1 -0
- package/components/core/Breadcrumbs/constants.js +4 -0
- package/components/core/Breadcrumbs/index.d.ts +2 -0
- package/components/core/Button/Button.d.ts +2 -0
- package/components/core/Button/Button.js +43 -0
- package/components/core/Button/Button.types.d.ts +26 -0
- package/components/core/Button/ButtonStyled.d.ts +5 -0
- package/components/core/Button/ButtonStyled.js +53 -0
- package/components/core/Button/constants.d.ts +1 -0
- package/components/core/Button/constants.js +4 -0
- package/components/core/Button/index.d.ts +2 -0
- package/components/core/Dropdown/Dropdown.d.ts +3 -0
- package/components/core/Dropdown/Dropdown.js +38 -0
- package/components/core/Dropdown/Dropdown.types.d.ts +8 -0
- package/components/core/Dropdown/DropdownStyled.d.ts +2 -0
- package/components/core/Dropdown/DropdownStyled.js +17 -0
- package/components/core/Dropdown/constants.d.ts +1 -0
- package/components/core/Dropdown/constants.js +4 -0
- package/components/core/Dropdown/hooks/index.d.ts +1 -0
- package/components/core/Dropdown/hooks/useDropdown.d.ts +3 -0
- package/components/core/Dropdown/hooks/useDropdown.js +12 -0
- package/components/core/Dropdown/index.d.ts +3 -0
- package/components/core/DropdownItem/DropdownItem.d.ts +2 -0
- package/components/core/DropdownItem/DropdownItem.js +45 -0
- package/components/core/DropdownItem/DropdownItem.types.d.ts +9 -0
- package/components/core/DropdownItem/DropdownItemStyled.d.ts +2 -0
- package/components/core/DropdownItem/DropdownItemStyled.js +17 -0
- package/components/core/DropdownItem/constants.d.ts +1 -0
- package/components/core/DropdownItem/constants.js +4 -0
- package/components/core/DropdownItem/index.d.ts +2 -0
- package/components/core/Form/Form.d.ts +2 -0
- package/components/core/Form/Form.js +48 -0
- package/components/core/Form/Form.types.d.ts +29 -0
- package/components/core/Form/FormStyled.d.ts +2 -0
- package/components/core/Form/FormStyled.js +16 -0
- package/components/core/Form/constants.d.ts +1 -0
- package/components/core/Form/constants.js +4 -0
- package/components/core/Form/index.d.ts +2 -0
- package/components/core/Form/utils.d.ts +3 -0
- package/components/core/Form/utils.js +34 -0
- package/components/core/Icon/Icon.d.ts +4 -0
- package/components/core/Icon/Icon.js +40 -0
- package/components/core/Icon/Icon.types.d.ts +11 -0
- package/components/core/Icon/constants.d.ts +317 -0
- package/components/core/Icon/constants.js +102 -0
- package/components/core/Icon/index.d.ts +2 -0
- package/components/core/Icon/utils.d.ts +3 -0
- package/components/core/Image/Image.d.ts +2 -0
- package/components/core/Image/Image.js +40 -0
- package/components/core/Image/Image.types.d.ts +27 -0
- package/components/core/Image/ImageStyled.d.ts +5 -0
- package/components/core/Image/ImageStyled.js +54 -0
- package/components/core/Image/constants.d.ts +1 -0
- package/components/core/Image/constants.js +4 -0
- package/components/core/Image/index.d.ts +2 -0
- package/components/core/InlineNotification/InlineNotification.d.ts +2 -0
- package/components/core/InlineNotification/InlineNotification.js +38 -0
- package/components/core/InlineNotification/InlineNotification.types.d.ts +9 -0
- package/components/core/InlineNotification/InlineNotificationStyled.d.ts +3 -0
- package/components/core/InlineNotification/InlineNotificationStyled.js +29 -0
- package/components/core/InlineNotification/constants.d.ts +16 -0
- package/components/core/InlineNotification/constants.js +21 -0
- package/components/core/InlineNotification/index.d.ts +2 -0
- package/components/core/Input/Input.d.ts +2 -0
- package/components/core/Input/Input.js +73 -0
- package/components/core/Input/Input.types.d.ts +74 -0
- package/components/core/Input/InputAdornment/InputAdornment.d.ts +2 -0
- package/components/core/Input/InputAdornment/InputAdornment.js +18 -0
- package/components/core/Input/InputAdornment/InputAdornmentStyled.d.ts +2 -0
- package/components/core/Input/InputAdornment/InputAdornmentStyled.js +15 -0
- package/components/core/Input/InputAdornment/constants.d.ts +1 -0
- package/components/core/Input/InputAdornment/constants.js +4 -0
- package/components/core/Input/InputAdornment/index.d.ts +1 -0
- package/components/core/Input/InputHelper/InputHelper.d.ts +2 -0
- package/components/core/Input/InputHelper/InputHelper.js +22 -0
- package/components/core/Input/InputHelper/InputHelperStyled.d.ts +2 -0
- package/components/core/Input/InputHelper/InputHelperStyled.js +17 -0
- package/components/core/Input/InputHelper/constants.d.ts +1 -0
- package/components/core/Input/InputHelper/constants.js +4 -0
- package/components/core/Input/InputHelper/index.d.ts +1 -0
- package/components/core/Input/InputStyled.d.ts +2 -0
- package/components/core/Input/InputStyled.js +18 -0
- package/components/core/Input/InputWrapper/InputWrapper.d.ts +2 -0
- package/components/core/Input/InputWrapper/InputWrapper.js +22 -0
- package/components/core/Input/InputWrapper/InputWrapperStyled.d.ts +2 -0
- package/components/core/Input/InputWrapper/InputWrapperStyled.js +21 -0
- package/components/core/Input/InputWrapper/constants.d.ts +1 -0
- package/components/core/Input/InputWrapper/constants.js +4 -0
- package/components/core/Input/InputWrapper/index.d.ts +1 -0
- package/components/core/Input/constants.d.ts +14 -0
- package/components/core/Input/constants.js +18 -0
- package/components/core/Input/index.d.ts +2 -0
- package/components/core/Input/useInputHandlers.d.ts +17 -0
- package/components/core/Input/useInputHandlers.js +31 -0
- package/components/core/InputFile/InputFile.d.ts +34 -0
- package/components/core/InputFile/InputFile.js +40 -0
- package/components/core/InputFile/InputFile.types.d.ts +18 -0
- package/components/core/InputFile/InputFileStyled.d.ts +3 -0
- package/components/core/InputFile/InputFileStyled.js +27 -0
- package/components/core/InputFile/constants.d.ts +3 -0
- package/components/core/InputFile/constants.js +6 -0
- package/components/core/InputFile/index.d.ts +2 -0
- package/components/core/Label/Label.d.ts +2 -0
- package/components/core/Label/Label.js +28 -0
- package/components/core/Label/Label.types.d.ts +10 -0
- package/components/core/Label/LabelStyled.d.ts +2 -0
- package/components/core/Label/LabelStyled.js +21 -0
- package/components/core/Label/constants.d.ts +1 -0
- package/components/core/Label/constants.js +4 -0
- package/components/core/Label/index.d.ts +2 -0
- package/components/core/Link/Link.d.ts +2 -0
- package/components/core/Link/Link.js +43 -0
- package/components/core/Link/Link.types.d.ts +21 -0
- package/components/core/Link/LinkStyled.d.ts +2 -0
- package/components/core/Link/LinkStyled.js +22 -0
- package/components/core/Link/constants.d.ts +1 -0
- package/components/core/Link/constants.js +4 -0
- package/components/core/Link/index.d.ts +2 -0
- package/components/core/List/List.d.ts +3 -0
- package/components/core/List/List.js +45 -0
- package/components/core/List/List.types.d.ts +10 -0
- package/components/core/List/ListStyled.d.ts +3 -0
- package/components/core/List/ListStyled.js +31 -0
- package/components/core/List/constants.d.ts +1 -0
- package/components/core/List/constants.js +4 -0
- package/components/core/List/index.d.ts +2 -0
- package/components/core/Loader/Loader.d.ts +2 -0
- package/components/core/Loader/Loader.js +29 -0
- package/components/core/Loader/Loader.types.d.ts +18 -0
- package/components/core/Loader/LoaderStyled.d.ts +2 -0
- package/components/core/Loader/LoaderStyled.js +41 -0
- package/components/core/Loader/constants.d.ts +2 -0
- package/components/core/Loader/constants.js +6 -0
- package/components/core/Loader/index.d.ts +2 -0
- package/components/core/Loader/utils.d.ts +11 -0
- package/components/core/Loader/utils.js +37 -0
- package/components/core/Menu/Menu.d.ts +2 -0
- package/components/core/Menu/Menu.js +106 -0
- package/components/core/Menu/Menu.types.d.ts +15 -0
- package/components/core/Menu/MenuStyled.d.ts +3 -0
- package/components/core/Menu/MenuStyled.js +31 -0
- package/components/core/Menu/constants.d.ts +10 -0
- package/components/core/Menu/constants.js +24 -0
- package/components/core/Menu/index.d.ts +2 -0
- package/components/core/Modal/Modal.d.ts +2 -0
- package/components/core/Modal/Modal.js +47 -0
- package/components/core/Modal/Modal.types.d.ts +18 -0
- package/components/core/Modal/ModalStyled.d.ts +8 -0
- package/components/core/Modal/ModalStyled.js +76 -0
- package/components/core/Modal/constants.d.ts +1 -0
- package/components/core/Modal/constants.js +4 -0
- package/components/core/Modal/index.d.ts +2 -0
- package/components/core/Portal/Portal.d.ts +2 -0
- package/components/core/Portal/Portal.js +26 -0
- package/components/core/Portal/Portal.types.d.ts +10 -0
- package/components/core/Portal/constants.d.ts +1 -0
- package/components/core/Portal/index.d.ts +2 -0
- package/components/core/Scroll/Scroll.d.ts +19 -0
- package/components/core/Scroll/Scroll.js +40 -0
- package/components/core/Scroll/Scroll.types.d.ts +19 -0
- package/components/core/Scroll/ScrollBar.d.ts +2 -0
- package/components/core/Scroll/ScrollBar.js +68 -0
- package/components/core/Scroll/ScrollStyled.d.ts +6 -0
- package/components/core/Scroll/ScrollStyled.js +56 -0
- package/components/core/Scroll/constants.d.ts +3 -0
- package/components/core/Scroll/constants.js +6 -0
- package/components/core/Scroll/index.d.ts +2 -0
- package/components/core/Scroll/utils.d.ts +5 -0
- package/components/core/Scroll/utils.js +41 -0
- package/components/core/Select/Select.d.ts +2 -0
- package/components/core/Select/Select.js +192 -0
- package/components/core/Select/Select.types.d.ts +69 -0
- package/components/core/Select/SelectStyled.d.ts +8 -0
- package/components/core/Select/SelectStyled.js +67 -0
- package/components/core/Select/constants.d.ts +2 -0
- package/components/core/Select/constants.js +5 -0
- package/components/core/Select/hooks/index.d.ts +1 -0
- package/components/core/Select/hooks/useSelectContext.d.ts +3 -0
- package/components/core/Select/hooks/useSelectContext.js +12 -0
- package/components/core/Select/index.d.ts +3 -0
- package/components/core/Separator/Separator.d.ts +2 -0
- package/components/core/Separator/Separator.js +36 -0
- package/components/core/Separator/Separator.types.d.ts +31 -0
- package/components/core/Separator/SeparatorStyled.d.ts +4 -0
- package/components/core/Separator/SeparatorStyled.js +61 -0
- package/components/core/Separator/constants.d.ts +1 -0
- package/components/core/Separator/constants.js +4 -0
- package/components/core/Separator/index.d.ts +2 -0
- package/components/core/Skeleton/Skeleton.d.ts +2 -0
- package/components/core/Skeleton/Skeleton.js +24 -0
- package/components/core/Skeleton/Skeleton.types.d.ts +17 -0
- package/components/core/Skeleton/SkeletonStyled.d.ts +2 -0
- package/components/core/Skeleton/SkeletonStyled.js +28 -0
- package/components/core/Skeleton/constants.d.ts +2 -0
- package/components/core/Skeleton/constants.js +6 -0
- package/components/core/Skeleton/index.d.ts +2 -0
- package/components/core/Slider/Slider.d.ts +20 -0
- package/components/core/Slider/Slider.js +35 -0
- package/components/core/Slider/Slider.types.d.ts +17 -0
- package/components/core/Slider/SliderStyled.d.ts +2 -0
- package/components/core/Slider/SliderStyled.js +20 -0
- package/components/core/Slider/constants.d.ts +3 -0
- package/components/core/Slider/constants.js +6 -0
- package/components/core/Slider/index.d.ts +3 -0
- package/components/core/Snackbar/Snackbar.d.ts +2 -0
- package/components/core/Snackbar/Snackbar.js +48 -0
- package/components/core/Snackbar/Snackbar.types.d.ts +36 -0
- package/components/core/Snackbar/SnackbarManager.d.ts +3 -0
- package/components/core/Snackbar/SnackbarManager.js +48 -0
- package/components/core/Snackbar/SnackbarStyled.d.ts +12 -0
- package/components/core/Snackbar/SnackbarStyled.js +107 -0
- package/components/core/Snackbar/constants.d.ts +8 -0
- package/components/core/Snackbar/constants.js +10 -0
- package/components/core/Snackbar/index.d.ts +4 -0
- package/components/core/Switch/Switch.d.ts +2 -0
- package/components/core/Switch/Switch.js +46 -0
- package/components/core/Switch/Switch.types.d.ts +21 -0
- package/components/core/Switch/SwitchStyled.d.ts +6 -0
- package/components/core/Switch/SwitchStyled.js +56 -0
- package/components/core/Switch/constants.d.ts +1 -0
- package/components/core/Switch/constants.js +4 -0
- package/components/core/Switch/index.d.ts +2 -0
- package/components/core/Textarea/Textarea.d.ts +2 -0
- package/components/core/Textarea/Textarea.js +35 -0
- package/components/core/Textarea/Textarea.types.d.ts +42 -0
- package/components/core/Textarea/Textarea.types.js +6 -0
- package/components/core/Textarea/TextareaStyled.d.ts +2 -0
- package/components/core/Textarea/TextareaStyled.js +27 -0
- package/components/core/Textarea/constants.d.ts +1 -0
- package/components/core/Textarea/constants.js +4 -0
- package/components/core/Textarea/hooks/index.d.ts +2 -0
- package/components/core/Textarea/hooks/useDynamicHeightAdjustment.d.ts +2 -0
- package/components/core/Textarea/hooks/useDynamicHeightAdjustment.js +8 -0
- package/components/core/Textarea/hooks/useResizeObserver.d.ts +2 -0
- package/components/core/Textarea/hooks/useResizeObserver.js +24 -0
- package/components/core/Textarea/index.d.ts +2 -0
- package/components/core/Toggle/Toggle.d.ts +2 -0
- package/components/core/Toggle/Toggle.js +37 -0
- package/components/core/Toggle/Toggle.types.d.ts +17 -0
- package/components/core/Toggle/ToggleStyled.d.ts +2 -0
- package/components/core/Toggle/ToggleStyled.js +18 -0
- package/components/core/Toggle/constants.d.ts +1 -0
- package/components/core/Toggle/constants.js +4 -0
- package/components/core/Toggle/index.d.ts +2 -0
- package/components/core/Tooltip/Tooltip.d.ts +3 -0
- package/components/core/Tooltip/Tooltip.js +52 -0
- package/components/core/Tooltip/Tooltip.types.d.ts +22 -0
- package/components/core/Tooltip/Tooltip.types.js +4 -0
- package/components/core/Tooltip/TooltipStyled.d.ts +3 -0
- package/components/core/Tooltip/TooltipStyled.js +24 -0
- package/components/core/Tooltip/constants.d.ts +3 -0
- package/components/core/Tooltip/constants.js +6 -0
- package/components/core/Tooltip/index.d.ts +2 -0
- package/components/core/Tooltip/utils.d.ts +22 -0
- package/components/core/Tooltip/utils.js +78 -0
- package/components/core/Typography/Typography.d.ts +2 -0
- package/components/core/Typography/Typography.js +26 -0
- package/components/core/Typography/Typography.types.d.ts +20 -0
- package/components/core/Typography/TypographyStyled.d.ts +2 -0
- package/components/core/Typography/TypographyStyled.js +32 -0
- package/components/core/Typography/constants.d.ts +1 -0
- package/components/core/Typography/constants.js +4 -0
- package/components/core/Typography/index.d.ts +2 -0
- package/components/core/Wrapper/Wrapper.d.ts +3 -0
- package/components/core/Wrapper/Wrapper.js +21 -0
- package/components/core/Wrapper/Wrapper.types.d.ts +11 -0
- package/components/core/Wrapper/WrapperStyled.d.ts +2 -0
- package/components/core/Wrapper/WrapperStyled.js +24 -0
- package/components/core/Wrapper/constants.d.ts +1 -0
- package/components/core/Wrapper/constants.js +4 -0
- package/components/core/Wrapper/index.d.ts +2 -0
- package/components/core/index.d.ts +30 -0
- package/components/core/types/events.types.d.ts +7 -0
- package/components/core/types/index.types.d.ts +2 -0
- package/components/core/types/roles.types.d.ts +4 -0
- package/components/core/types/roles.types.js +4 -0
- package/components/domainSpecific/Accordion/Accordion.d.ts +2 -0
- package/components/domainSpecific/Accordion/Accordion.js +35 -0
- package/components/domainSpecific/Accordion/Accordion.types.d.ts +24 -0
- package/components/domainSpecific/Accordion/AccordionContent/AccordionContent.d.ts +2 -0
- package/components/domainSpecific/Accordion/AccordionContent/AccordionContent.js +21 -0
- package/components/domainSpecific/Accordion/AccordionContent/index.d.ts +1 -0
- package/components/domainSpecific/Accordion/AccordionHeader/AccordionHeader.d.ts +2 -0
- package/components/domainSpecific/Accordion/AccordionHeader/AccordionHeader.js +29 -0
- package/components/domainSpecific/Accordion/AccordionHeader/index.d.ts +1 -0
- package/components/domainSpecific/Accordion/AccordionItem/AccordionItem.d.ts +2 -0
- package/components/domainSpecific/Accordion/AccordionItem/AccordionItem.js +26 -0
- package/components/domainSpecific/Accordion/AccordionItem/index.d.ts +1 -0
- package/components/domainSpecific/Accordion/AccordionStyled.d.ts +5 -0
- package/components/domainSpecific/Accordion/AccordionStyled.js +39 -0
- package/components/domainSpecific/Accordion/constants.d.ts +5 -0
- package/components/domainSpecific/Accordion/constants.js +7 -0
- package/components/domainSpecific/Accordion/hooks/index.d.ts +1 -0
- package/components/domainSpecific/Accordion/hooks/useAccordion.d.ts +3 -0
- package/components/domainSpecific/Accordion/hooks/useAccordion.js +12 -0
- package/components/domainSpecific/Accordion/index.d.ts +4 -0
- package/components/domainSpecific/Avatar/Avatar.d.ts +4 -0
- package/components/domainSpecific/Avatar/Avatar.js +44 -0
- package/components/domainSpecific/Avatar/Avatar.types.d.ts +27 -0
- package/components/domainSpecific/Avatar/AvatarStyled.d.ts +6 -0
- package/components/domainSpecific/Avatar/AvatarStyled.js +63 -0
- package/components/domainSpecific/Avatar/constants.d.ts +3 -0
- package/components/domainSpecific/Avatar/constants.js +6 -0
- package/components/domainSpecific/Avatar/index.d.ts +2 -0
- package/components/domainSpecific/Card/Card.d.ts +20 -0
- package/components/domainSpecific/Card/Card.js +47 -0
- package/components/domainSpecific/Card/Card.types.d.ts +51 -0
- package/components/domainSpecific/Card/CardButton/CardButton.d.ts +4 -0
- package/components/domainSpecific/Card/CardButton/CardButton.js +25 -0
- package/components/domainSpecific/Card/CardButton/CardButtonStyled.d.ts +2 -0
- package/components/domainSpecific/Card/CardButton/CardButtonStyled.js +18 -0
- package/components/domainSpecific/Card/CardButton/constants.d.ts +1 -0
- package/components/domainSpecific/Card/CardButton/constants.js +4 -0
- package/components/domainSpecific/Card/CardButton/index.d.ts +1 -0
- package/components/domainSpecific/Card/CardCounter/CardCounter.d.ts +4 -0
- package/components/domainSpecific/Card/CardCounter/CardCounter.js +26 -0
- package/components/domainSpecific/Card/CardCounter/CardCounterStyled.d.ts +2 -0
- package/components/domainSpecific/Card/CardCounter/CardCounterStyled.js +17 -0
- package/components/domainSpecific/Card/CardCounter/constants.d.ts +1 -0
- package/components/domainSpecific/Card/CardCounter/constants.js +4 -0
- package/components/domainSpecific/Card/CardCounter/index.d.ts +1 -0
- package/components/domainSpecific/Card/CardDescription/CardDescription.d.ts +2 -0
- package/components/domainSpecific/Card/CardDescription/CardDescription.js +24 -0
- package/components/domainSpecific/Card/CardDescription/CardDescriptionStyled.d.ts +2 -0
- package/components/domainSpecific/Card/CardDescription/CardDescriptionStyled.js +24 -0
- package/components/domainSpecific/Card/CardDescription/constants.d.ts +6 -0
- package/components/domainSpecific/Card/CardDescription/constants.js +10 -0
- package/components/domainSpecific/Card/CardDescription/index.d.ts +1 -0
- package/components/domainSpecific/Card/CardImage/CardImage.d.ts +2 -0
- package/components/domainSpecific/Card/CardImage/CardImage.js +26 -0
- package/components/domainSpecific/Card/CardImage/CardImageStyled.d.ts +2 -0
- package/components/domainSpecific/Card/CardImage/CardImageStyled.js +18 -0
- package/components/domainSpecific/Card/CardImage/constants.d.ts +1 -0
- package/components/domainSpecific/Card/CardImage/constants.js +4 -0
- package/components/domainSpecific/Card/CardImage/index.d.ts +1 -0
- package/components/domainSpecific/Card/CardPrice/CardPrice.d.ts +2 -0
- package/components/domainSpecific/Card/CardPrice/CardPrice.js +22 -0
- package/components/domainSpecific/Card/CardPrice/CardPriceStyled.d.ts +2 -0
- package/components/domainSpecific/Card/CardPrice/CardPriceStyled.js +18 -0
- package/components/domainSpecific/Card/CardPrice/constants.d.ts +1 -0
- package/components/domainSpecific/Card/CardPrice/constants.js +4 -0
- package/components/domainSpecific/Card/CardPrice/index.d.ts +1 -0
- package/components/domainSpecific/Card/CardRating/CardRating.d.ts +2 -0
- package/components/domainSpecific/Card/CardRating/CardRating.js +30 -0
- package/components/domainSpecific/Card/CardRating/CardRatingStyled.d.ts +2 -0
- package/components/domainSpecific/Card/CardRating/CardRatingStyled.js +18 -0
- package/components/domainSpecific/Card/CardRating/constants.d.ts +3 -0
- package/components/domainSpecific/Card/CardRating/constants.js +6 -0
- package/components/domainSpecific/Card/CardRating/index.d.ts +1 -0
- package/components/domainSpecific/Card/CardTitle/CardTitle.d.ts +4 -0
- package/components/domainSpecific/Card/CardTitle/CardTitle.js +25 -0
- package/components/domainSpecific/Card/CardTitle/CardTitleStyled.d.ts +2 -0
- package/components/domainSpecific/Card/CardTitle/CardTitleStyled.js +24 -0
- package/components/domainSpecific/Card/CardTitle/constants.d.ts +6 -0
- package/components/domainSpecific/Card/CardTitle/constants.js +10 -0
- package/components/domainSpecific/Card/CardTitle/index.d.ts +1 -0
- package/components/domainSpecific/Card/CartStyled.d.ts +2 -0
- package/components/domainSpecific/Card/CartStyled.js +26 -0
- package/components/domainSpecific/Card/constants.d.ts +1 -0
- package/components/domainSpecific/Card/constants.js +4 -0
- package/components/domainSpecific/Card/index.d.ts +2 -0
- package/components/domainSpecific/Carousel/Carousel.d.ts +12 -0
- package/components/domainSpecific/Carousel/Carousel.js +137 -0
- package/components/domainSpecific/Carousel/Carousel.types.d.ts +35 -0
- package/components/domainSpecific/Carousel/CarouselStyled.d.ts +15 -0
- package/components/domainSpecific/Carousel/CarouselStyled.js +143 -0
- package/components/domainSpecific/Carousel/constants.d.ts +1 -0
- package/components/domainSpecific/Carousel/constants.js +4 -0
- package/components/domainSpecific/Carousel/index.d.ts +2 -0
- package/components/domainSpecific/ChatBubble/ChatBubble.d.ts +2 -0
- package/components/domainSpecific/ChatBubble/ChatBubble.js +26 -0
- package/components/domainSpecific/ChatBubble/ChatBubble.types.d.ts +16 -0
- package/components/domainSpecific/ChatBubble/ChatBubbleStyled.d.ts +4 -0
- package/components/domainSpecific/ChatBubble/ChatBubbleStyled.js +43 -0
- package/components/domainSpecific/ChatBubble/constants.d.ts +1 -0
- package/components/domainSpecific/ChatBubble/constants.js +4 -0
- package/components/domainSpecific/ChatBubble/index.d.ts +2 -0
- package/components/domainSpecific/ContentCarousel/ContentCarousel.d.ts +2 -0
- package/components/domainSpecific/ContentCarousel/ContentCarousel.js +68 -0
- package/components/domainSpecific/ContentCarousel/ContentCarousel.types.d.ts +16 -0
- package/components/domainSpecific/ContentCarousel/ContentCarouselStyled.d.ts +5 -0
- package/components/domainSpecific/ContentCarousel/ContentCarouselStyled.js +32 -0
- package/components/domainSpecific/ContentCarousel/constants.d.ts +1 -0
- package/components/domainSpecific/ContentCarousel/constants.js +4 -0
- package/components/domainSpecific/ContentCarousel/index.d.ts +2 -0
- package/components/domainSpecific/Counter/Counter.d.ts +2 -0
- package/components/domainSpecific/Counter/Counter.js +55 -0
- package/components/domainSpecific/Counter/Counter.types.d.ts +15 -0
- package/components/domainSpecific/Counter/CounterStyled.d.ts +3 -0
- package/components/domainSpecific/Counter/CounterStyled.js +26 -0
- package/components/domainSpecific/Counter/constants.d.ts +5 -0
- package/components/domainSpecific/Counter/constants.js +8 -0
- package/components/domainSpecific/Counter/index.d.ts +2 -0
- package/components/domainSpecific/DragAndDropFiles/DragAndDropFiles.d.ts +4 -0
- package/components/domainSpecific/DragAndDropFiles/DragAndDropFiles.js +48 -0
- package/components/domainSpecific/DragAndDropFiles/DragAndDropFiles.types.d.ts +21 -0
- package/components/domainSpecific/DragAndDropFiles/DragAndDropFilesStyled.d.ts +2 -0
- package/components/domainSpecific/DragAndDropFiles/DragAndDropFilesStyled.js +16 -0
- package/components/domainSpecific/DragAndDropFiles/constants.d.ts +1 -0
- package/components/domainSpecific/DragAndDropFiles/constants.js +4 -0
- package/components/domainSpecific/DragAndDropFiles/hooks/useDragAndDrop/index.d.ts +1 -0
- package/components/domainSpecific/DragAndDropFiles/hooks/useDragAndDrop/useDragAndDrop.d.ts +19 -0
- package/components/domainSpecific/DragAndDropFiles/hooks/useDragAndDrop/useDragAndDrop.js +49 -0
- package/components/domainSpecific/DragAndDropFiles/index.d.ts +2 -0
- package/components/domainSpecific/Header/Header.d.ts +2 -0
- package/components/domainSpecific/Header/Header.js +88 -0
- package/components/domainSpecific/Header/Header.types.d.ts +31 -0
- package/components/domainSpecific/Header/HeaderStyled.d.ts +14 -0
- package/components/domainSpecific/Header/HeaderStyled.js +136 -0
- package/components/domainSpecific/Header/constants.d.ts +1 -0
- package/components/domainSpecific/Header/constants.js +4 -0
- package/components/domainSpecific/Header/index.d.ts +1 -0
- package/components/domainSpecific/Price/Price.d.ts +4 -0
- package/components/domainSpecific/Price/Price.js +23 -0
- package/components/domainSpecific/Price/Price.types.d.ts +10 -0
- package/components/domainSpecific/Price/PriceStyled.d.ts +4 -0
- package/components/domainSpecific/Price/PriceStyled.js +42 -0
- package/components/domainSpecific/Price/constants.d.ts +1 -0
- package/components/domainSpecific/Price/constants.js +4 -0
- package/components/domainSpecific/Price/index.d.ts +2 -0
- package/components/domainSpecific/ProgressBar/ProgressBar.d.ts +4 -0
- package/components/domainSpecific/ProgressBar/ProgressBar.js +29 -0
- package/components/domainSpecific/ProgressBar/ProgressBar.types.d.ts +36 -0
- package/components/domainSpecific/ProgressBar/ProgressBarStyled.d.ts +6 -0
- package/components/domainSpecific/ProgressBar/ProgressBarStyled.js +70 -0
- package/components/domainSpecific/ProgressBar/constants.d.ts +4 -0
- package/components/domainSpecific/ProgressBar/constants.js +7 -0
- package/components/domainSpecific/ProgressBar/index.d.ts +2 -0
- package/components/domainSpecific/RadioGroup/RadioGroup.d.ts +4 -0
- package/components/domainSpecific/RadioGroup/RadioGroup.js +54 -0
- package/components/domainSpecific/RadioGroup/RadioGroup.types.d.ts +74 -0
- package/components/domainSpecific/RadioGroup/RadioGroup.types.js +4 -0
- package/components/domainSpecific/RadioGroup/RadioGroupItem/RadioGroupItem.d.ts +5 -0
- package/components/domainSpecific/RadioGroup/RadioGroupItem/RadioGroupItem.js +37 -0
- package/components/domainSpecific/RadioGroup/RadioGroupItem/index.d.ts +1 -0
- package/components/domainSpecific/RadioGroup/RadioGroupStyled.d.ts +6 -0
- package/components/domainSpecific/RadioGroup/RadioGroupStyled.js +130 -0
- package/components/domainSpecific/RadioGroup/constants.d.ts +2 -0
- package/components/domainSpecific/RadioGroup/constants.js +5 -0
- package/components/domainSpecific/RadioGroup/index.d.ts +2 -0
- package/components/domainSpecific/Rating/Rating.d.ts +2 -0
- package/components/domainSpecific/Rating/Rating.js +63 -0
- package/components/domainSpecific/Rating/Rating.types.d.ts +20 -0
- package/components/domainSpecific/Rating/RatingStyled.d.ts +5 -0
- package/components/domainSpecific/Rating/RatingStyled.js +61 -0
- package/components/domainSpecific/Rating/constants.d.ts +6 -0
- package/components/domainSpecific/Rating/constants.js +9 -0
- package/components/domainSpecific/Rating/index.d.ts +2 -0
- package/components/domainSpecific/Search/Search.d.ts +3 -0
- package/components/domainSpecific/Search/Search.js +39 -0
- package/components/domainSpecific/Search/Search.types.d.ts +30 -0
- package/components/domainSpecific/Search/SearchStyled.d.ts +5 -0
- package/components/domainSpecific/Search/SearchStyled.js +16 -0
- package/components/domainSpecific/Search/constants.d.ts +4 -0
- package/components/domainSpecific/Search/constants.js +7 -0
- package/components/domainSpecific/Search/index.d.ts +2 -0
- package/components/domainSpecific/SearchModal/SearchInput/SearchInput.d.ts +5 -0
- package/components/domainSpecific/SearchModal/SearchInput/SearchInput.js +26 -0
- package/components/domainSpecific/SearchModal/SearchInput/SearchInputStyled.d.ts +4 -0
- package/components/domainSpecific/SearchModal/SearchInput/SearchInputStyled.js +25 -0
- package/components/domainSpecific/SearchModal/SearchInput/constants.d.ts +3 -0
- package/components/domainSpecific/SearchModal/SearchInput/constants.js +6 -0
- package/components/domainSpecific/SearchModal/SearchInput/index.d.ts +1 -0
- package/components/domainSpecific/SearchModal/SearchItems/SearchItems.d.ts +5 -0
- package/components/domainSpecific/SearchModal/SearchItems/SearchItems.js +48 -0
- package/components/domainSpecific/SearchModal/SearchItems/SearchItemsStyled.d.ts +10 -0
- package/components/domainSpecific/SearchModal/SearchItems/SearchItemsStyled.js +82 -0
- package/components/domainSpecific/SearchModal/SearchItems/constants.d.ts +7 -0
- package/components/domainSpecific/SearchModal/SearchItems/constants.js +10 -0
- package/components/domainSpecific/SearchModal/SearchItems/index.d.ts +1 -0
- package/components/domainSpecific/SearchModal/SearchItems/utils.d.ts +2 -0
- package/components/domainSpecific/SearchModal/SearchItems/utils.js +7 -0
- package/components/domainSpecific/SearchModal/SearchLoader/SearchLoader.d.ts +5 -0
- package/components/domainSpecific/SearchModal/SearchLoader/SearchLoader.js +20 -0
- package/components/domainSpecific/SearchModal/SearchLoader/SearchLoaderStyled.d.ts +3 -0
- package/components/domainSpecific/SearchModal/SearchLoader/SearchLoaderStyled.js +14 -0
- package/components/domainSpecific/SearchModal/SearchLoader/constants.d.ts +1 -0
- package/components/domainSpecific/SearchModal/SearchLoader/constants.js +4 -0
- package/components/domainSpecific/SearchModal/SearchLoader/index.d.ts +1 -0
- package/components/domainSpecific/SearchModal/SearchModal.d.ts +4 -0
- package/components/domainSpecific/SearchModal/SearchModal.js +39 -0
- package/components/domainSpecific/SearchModal/SearchModal.types.d.ts +48 -0
- package/components/domainSpecific/SearchModal/SearchModalStyled.d.ts +3 -0
- package/components/domainSpecific/SearchModal/SearchModalStyled.js +29 -0
- package/components/domainSpecific/SearchModal/constants.d.ts +5 -0
- package/components/domainSpecific/SearchModal/constants.js +8 -0
- package/components/domainSpecific/SearchModal/index.d.ts +2 -0
- package/components/domainSpecific/Stepper/Stepper.d.ts +2 -0
- package/components/domainSpecific/Stepper/Stepper.js +42 -0
- package/components/domainSpecific/Stepper/Stepper.types.d.ts +31 -0
- package/components/domainSpecific/Stepper/StepperStyled.d.ts +6 -0
- package/components/domainSpecific/Stepper/StepperStyled.js +58 -0
- package/components/domainSpecific/Stepper/constants.d.ts +1 -0
- package/components/domainSpecific/Stepper/constants.js +4 -0
- package/components/domainSpecific/Stepper/index.d.ts +2 -0
- package/components/domainSpecific/Stepper/utils.d.ts +2 -0
- package/components/domainSpecific/Stepper/utils.js +37 -0
- package/components/domainSpecific/Tabs/Tabs.d.ts +2 -0
- package/components/domainSpecific/Tabs/Tabs.js +40 -0
- package/components/domainSpecific/Tabs/Tabs.types.d.ts +26 -0
- package/components/domainSpecific/Tabs/TabsStyled.d.ts +8 -0
- package/components/domainSpecific/Tabs/TabsStyled.js +79 -0
- package/components/domainSpecific/Tabs/constants.d.ts +6 -0
- package/components/domainSpecific/Tabs/constants.js +6 -0
- package/components/domainSpecific/Tabs/index.d.ts +2 -0
- package/components/domainSpecific/index.d.ts +17 -0
- package/components/index.d.ts +6 -0
- package/components/index.types.d.ts +115 -0
- package/components/index.types.js +4 -0
- package/components/layout/ChatContainer/ChatContainer.d.ts +2 -0
- package/components/layout/ChatContainer/ChatContainer.js +57 -0
- package/components/layout/ChatContainer/ChatContainer.types.d.ts +25 -0
- package/components/layout/ChatContainer/ChatContainerStyled.d.ts +9 -0
- package/components/layout/ChatContainer/ChatContainerStyled.js +74 -0
- package/components/layout/ChatContainer/constants.d.ts +1 -0
- package/components/layout/ChatContainer/constants.js +4 -0
- package/components/layout/ChatContainer/index.d.ts +2 -0
- package/components/layout/Column/Column.d.ts +2 -0
- package/components/layout/Column/Column.js +26 -0
- package/components/layout/Column/Column.types.d.ts +6 -0
- package/components/layout/Column/ColumnStyled.d.ts +2 -0
- package/components/layout/Column/ColumnStyled.js +36 -0
- package/components/layout/Column/constants.d.ts +1 -0
- package/components/layout/Column/constants.js +4 -0
- package/components/layout/Column/index.d.ts +2 -0
- package/components/layout/FlexContainer/FlexContainer.d.ts +2 -0
- package/components/layout/FlexContainer/FlexContainer.js +22 -0
- package/components/layout/FlexContainer/FlexContainer.types.d.ts +6 -0
- package/components/layout/FlexContainer/FlexContainerStyled.d.ts +2 -0
- package/components/layout/FlexContainer/FlexContainerStyled.js +21 -0
- package/components/layout/FlexContainer/constants.d.ts +1 -0
- package/components/layout/FlexContainer/constants.js +4 -0
- package/components/layout/FlexContainer/index.d.ts +2 -0
- package/components/layout/FlexContainer/utils.d.ts +2 -0
- package/components/layout/Row/Row.d.ts +3 -0
- package/components/layout/Row/Row.js +26 -0
- package/components/layout/Row/Row.types.d.ts +6 -0
- package/components/layout/Row/RowStyled.d.ts +2 -0
- package/components/layout/Row/RowStyled.js +36 -0
- package/components/layout/Row/constants.d.ts +1 -0
- package/components/layout/Row/constants.js +4 -0
- package/components/layout/Row/index.d.ts +2 -0
- package/components/layout/index.d.ts +4 -0
- package/components/templates/SkeletonSearch/SkeletonSearch.d.ts +2 -0
- package/components/templates/SkeletonSearch/SkeletonSearch.js +30 -0
- package/components/templates/SkeletonSearch/SkeletonSearch.types.d.ts +6 -0
- package/components/templates/SkeletonSearch/SkeletonSearchStyled.d.ts +11 -0
- package/components/templates/SkeletonSearch/SkeletonSearchStyled.js +97 -0
- package/components/templates/SkeletonSearch/constants.d.ts +2 -0
- package/components/templates/SkeletonSearch/constants.js +5 -0
- package/components/templates/SkeletonSearch/index.d.ts +2 -0
- package/components/templates/index.d.ts +1 -0
- package/components/widget/DragAndDrop/DragAndDrop.d.ts +4 -0
- package/components/widget/DragAndDrop/DragAndDrop.js +74 -0
- package/components/widget/DragAndDrop/DragAndDrop.types.d.ts +35 -0
- package/components/widget/DragAndDrop/DragAndDropStyled.d.ts +6 -0
- package/components/widget/DragAndDrop/DragAndDropStyled.js +61 -0
- package/components/widget/DragAndDrop/constants.d.ts +1 -0
- package/components/widget/DragAndDrop/constants.js +4 -0
- package/components/widget/DragAndDrop/index.d.ts +2 -0
- package/components/widget/DragAndDrop/utils/index.d.ts +1 -0
- package/components/widget/DragAndDrop/utils/validators.d.ts +5 -0
- package/components/widget/DragAndDrop/utils/validators.js +17 -0
- package/components/widget/index.d.ts +1 -0
- package/constants/index.d.ts +3 -0
- package/constants/keyboard.d.ts +8 -0
- package/constants/keyboard.js +11 -0
- package/constants/positioning.d.ts +9 -0
- package/constants/positioning.js +11 -0
- package/constants/timers.d.ts +2 -0
- package/constants/timers.js +5 -0
- package/hooks/index.d.ts +6 -0
- package/hooks/useAutoFocus/index.d.ts +1 -0
- package/hooks/useAutoFocus/useAutoFocus.d.ts +2 -0
- package/hooks/useAutoFocus/useAutoFocus.js +11 -0
- package/hooks/useCarousel/index.d.ts +1 -0
- package/hooks/useCarousel/useCarousel.d.ts +23 -0
- package/hooks/useCarousel/useCarousel.js +61 -0
- package/hooks/useClickOutside/index.d.ts +1 -0
- package/hooks/useClickOutside/useClickOutside.d.ts +1 -0
- package/hooks/useClickOutside/useClickOutside.js +15 -0
- package/hooks/useKeyControls/index.d.ts +1 -0
- package/hooks/useKeyControls/useKeyControls.d.ts +2 -0
- package/hooks/useKeyControls/useKeyControls.js +19 -0
- package/hooks/useMediaQuery/index.d.ts +1 -0
- package/hooks/useMediaQuery/useMediaQuery.d.ts +1 -0
- package/hooks/useMediaQuery/useMediaQuery.js +14 -0
- package/hooks/useTheme/index.d.ts +4 -0
- package/hooks/useTheme/useTheme.d.ts +4 -0
- package/hooks/useTheme/useTheme.js +48 -0
- package/hooks/useTheme/useTheme.types.d.ts +14 -0
- package/hooks/useTheme/utils.d.ts +2 -0
- package/hooks/useTheme/utils.js +10 -0
- package/package.json +1 -10
- package/stories/Introduction/ThemeJsonPreview.d.ts +4 -0
- package/stories/components/TokenViewer/TokenViewer.d.ts +2 -0
- package/stories/components/TokenViewer/TokenViewer.types.d.ts +12 -0
- package/stories/components/TokenViewer/TokenViewerStyled.d.ts +11 -0
- package/stories/components/TokenViewer/index.d.ts +1 -0
- package/tokens/accordion.d.ts +62 -0
- package/tokens/accordion.js +72 -0
- package/tokens/animations.d.ts +60 -0
- package/tokens/animations.js +63 -0
- package/tokens/avatar.d.ts +120 -0
- package/tokens/avatar.js +153 -0
- package/tokens/borders.d.ts +9 -0
- package/tokens/borders.js +17 -0
- package/tokens/breadcrumbs.d.ts +30 -0
- package/tokens/breadcrumbs.js +37 -0
- package/tokens/breakpoints.d.ts +8 -0
- package/tokens/breakpoints.js +12 -0
- package/tokens/button.d.ts +155 -0
- package/tokens/button.js +200 -0
- package/tokens/card.d.ts +175 -0
- package/tokens/card.js +187 -0
- package/tokens/carousel.d.ts +197 -0
- package/tokens/carousel.js +208 -0
- package/tokens/chat.d.ts +128 -0
- package/tokens/chat.js +126 -0
- package/tokens/chatbubble.d.ts +48 -0
- package/tokens/chatbubble.js +75 -0
- package/tokens/colors.d.ts +154 -0
- package/tokens/colors.js +157 -0
- package/tokens/column.d.ts +6 -0
- package/tokens/column.js +9 -0
- package/tokens/constants.d.ts +2 -0
- package/tokens/constants.js +4 -0
- package/tokens/counter.d.ts +38 -0
- package/tokens/counter.js +45 -0
- package/tokens/cursors.d.ts +17 -0
- package/tokens/cursors.js +20 -0
- package/tokens/defaultTheme.d.ts +3791 -0
- package/tokens/defaultTheme.js +123 -0
- package/tokens/display.d.ts +16 -0
- package/tokens/display.js +19 -0
- package/tokens/draganddrop.d.ts +61 -0
- package/tokens/draganddrop.js +87 -0
- package/tokens/draganddropfiles.d.ts +3 -0
- package/tokens/draganddropfiles.js +6 -0
- package/tokens/flexContainer.d.ts +9 -0
- package/tokens/flexContainer.js +13 -0
- package/tokens/font.d.ts +47 -0
- package/tokens/font.js +52 -0
- package/tokens/form.d.ts +3 -0
- package/tokens/form.js +6 -0
- package/tokens/header.d.ts +107 -0
- package/tokens/header.js +123 -0
- package/tokens/icon.d.ts +28 -0
- package/tokens/icon.js +32 -0
- package/tokens/image.d.ts +31 -0
- package/tokens/image.js +40 -0
- package/tokens/index.d.ts +3390 -0
- package/tokens/index.js +145 -0
- package/tokens/inlineNotification.d.ts +62 -0
- package/tokens/inlineNotification.js +75 -0
- package/tokens/input.d.ts +212 -0
- package/tokens/input.js +191 -0
- package/tokens/inputfile.d.ts +14 -0
- package/tokens/inputfile.js +18 -0
- package/tokens/label.d.ts +6 -0
- package/tokens/label.js +10 -0
- package/tokens/link.d.ts +80 -0
- package/tokens/link.js +66 -0
- package/tokens/list.d.ts +89 -0
- package/tokens/list.js +87 -0
- package/tokens/loader.d.ts +135 -0
- package/tokens/loader.js +143 -0
- package/tokens/menu.d.ts +15 -0
- package/tokens/menu.js +19 -0
- package/tokens/modal.d.ts +89 -0
- package/tokens/modal.js +112 -0
- package/tokens/price.d.ts +23 -0
- package/tokens/price.js +32 -0
- package/tokens/progressbar.d.ts +51 -0
- package/tokens/progressbar.js +60 -0
- package/tokens/radiogroup.d.ts +80 -0
- package/tokens/radiogroup.js +110 -0
- package/tokens/radius.d.ts +10 -0
- package/tokens/radius.js +14 -0
- package/tokens/rating.d.ts +65 -0
- package/tokens/rating.js +73 -0
- package/tokens/reset.d.ts +1 -0
- package/tokens/reset.js +4 -0
- package/tokens/row.d.ts +5 -0
- package/tokens/row.js +8 -0
- package/tokens/scroll.d.ts +91 -0
- package/tokens/scroll.js +99 -0
- package/tokens/search.d.ts +39 -0
- package/tokens/search.js +45 -0
- package/tokens/searchModal.d.ts +155 -0
- package/tokens/searchModal.js +159 -0
- package/tokens/select.d.ts +93 -0
- package/tokens/select.js +108 -0
- package/tokens/separator.d.ts +56 -0
- package/tokens/separator.js +63 -0
- package/tokens/shadow.d.ts +20 -0
- package/tokens/shadow.js +25 -0
- package/tokens/skeleton.d.ts +68 -0
- package/tokens/skeleton.js +77 -0
- package/tokens/slider.d.ts +58 -0
- package/tokens/slider.js +45 -0
- package/tokens/snackbar.d.ts +157 -0
- package/tokens/snackbar.js +177 -0
- package/tokens/spacing.d.ts +9 -0
- package/tokens/spacing.js +13 -0
- package/tokens/stepper.d.ts +132 -0
- package/tokens/stepper.js +147 -0
- package/tokens/switch.d.ts +67 -0
- package/tokens/switch.js +75 -0
- package/tokens/tabs.d.ts +88 -0
- package/tokens/tabs.js +110 -0
- package/tokens/textarea.d.ts +44 -0
- package/tokens/textarea.js +47 -0
- package/tokens/toggle.d.ts +9 -0
- package/tokens/toggle.js +19 -0
- package/tokens/tooltip.d.ts +61 -0
- package/tokens/tooltip.js +68 -0
- package/tokens/types/index.types.d.ts +14 -0
- package/tokens/types/index.types.js +4 -0
- package/tokens/typography.d.ts +127 -0
- package/tokens/typography.js +134 -0
- package/tokens/utils.d.ts +47 -0
- package/tokens/utils.js +88 -0
- package/tokens/values.d.ts +65 -0
- package/tokens/values.js +76 -0
- package/tokens/wrapper.d.ts +29 -0
- package/tokens/wrapper.js +34 -0
- package/types/accesability.d.ts +5 -0
- package/types/accesability.js +4 -0
- package/types/button.d.ts +28 -0
- package/types/button.js +7 -0
- package/types/card.d.ts +8 -0
- package/types/card.js +5 -0
- package/types/carousel.d.ts +12 -0
- package/types/carousel.js +6 -0
- package/types/chat.d.ts +5 -0
- package/types/chat.js +4 -0
- package/types/common.d.ts +12 -0
- package/types/common.js +5 -0
- package/types/cursors.d.ts +14 -0
- package/types/cursors.js +4 -0
- package/types/index.d.ts +21 -0
- package/types/input.d.ts +30 -0
- package/types/input.js +6 -0
- package/types/keys.d.ts +8 -0
- package/types/label.d.ts +4 -0
- package/types/label.js +4 -0
- package/types/layout.d.ts +8 -0
- package/types/layout.js +4 -0
- package/types/link.d.ts +18 -0
- package/types/link.js +5 -0
- package/types/list.d.ts +6 -0
- package/types/list.js +4 -0
- package/types/misc.d.ts +17 -0
- package/types/separator.d.ts +10 -0
- package/types/separator.js +5 -0
- package/types/skeleton.d.ts +5 -0
- package/types/skeleton.js +4 -0
- package/types/snackbar.d.ts +14 -0
- package/types/snackbar.js +5 -0
- package/types/stepper.d.ts +9 -0
- package/types/stepper.js +5 -0
- package/types/styles.d.ts +3 -0
- package/types/typography.d.ts +45 -0
- package/types/typography.js +6 -0
- package/types/wrapper.d.ts +5 -0
- package/types/wrapper.js +4 -0
- package/utils/animationFrame.d.ts +15 -0
- package/utils/animationFrame.js +17 -0
- package/utils/common.d.ts +2 -0
- package/utils/common.js +4 -0
- package/utils/date.d.ts +9 -0
- package/utils/date.js +11 -0
- package/utils/focus.d.ts +32 -0
- package/utils/focus.js +54 -0
- package/utils/getCharCount.d.ts +3 -0
- package/utils/helpers.d.ts +13 -0
- package/utils/helpers.js +49 -0
- package/utils/index.d.ts +10 -0
- package/utils/layout.d.ts +6 -0
- package/utils/layout.js +32 -0
- package/utils/math.d.ts +6 -0
- package/utils/math.js +11 -0
- package/utils/setInRange.d.ts +5 -0
- package/utils/setInRange.js +11 -0
- package/utils/uniqueKeys.d.ts +1 -0
- package/utils/uniqueKeys.js +4 -0
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,177 @@
|
|
|
1
|
+
# [Versions](https://www.npmjs.com/package/gd-design-library?activeTab=versions)
|
|
2
|
+
|
|
3
|
+
# Changelog
|
|
4
|
+
|
|
5
|
+
## [0.1.0] - 2025-05-15
|
|
6
|
+
|
|
7
|
+
### Features
|
|
8
|
+
|
|
9
|
+
- **Icon Stories**: Enhanced Icon stories with custom icons registration (#138)
|
|
10
|
+
- **Custom Icons**: Added support for custom icons (#137)
|
|
11
|
+
- **Header**: Simplified Header component and registered custom icons (#110)
|
|
12
|
+
- **Card Components**: Refactored Card components and improved styles (#135)
|
|
13
|
+
- **Progress Bar**: Added base functionality for progress bar (#199)
|
|
14
|
+
- **Accordion**: Implemented accordion base functionality (#185)
|
|
15
|
+
- **Typography**: Improved Typography component formatting and added "Small" style (#195)
|
|
16
|
+
- **Select**: Added keyboard events and improved select state handling (#113)
|
|
17
|
+
- **Rating**: Added rating view and component (#50)
|
|
18
|
+
- **Theme**: Improved theme switching and custom theme support (#71)
|
|
19
|
+
- **Loader**: Added base Loader component with multiple sizes (#42)
|
|
20
|
+
- **Modal**: Added base modal window functionality (#39)
|
|
21
|
+
- **Tooltip**: Added tooltip component (#35)
|
|
22
|
+
- **Layout**: Created layout container components (Row/Column) (#20)
|
|
23
|
+
|
|
24
|
+
### Refactor
|
|
25
|
+
|
|
26
|
+
- **Theme Handling**: Updated typing for theme change handler
|
|
27
|
+
- **Imports**: Removed unused imports from Header component (multiple commits)
|
|
28
|
+
- **Typography**: Refactored typography style handling (#156)
|
|
29
|
+
- **Button**: Enhanced Button component with improved styling support
|
|
30
|
+
- **Components**: Simplified components and aligned imports (#124)
|
|
31
|
+
- **Tokens**: Updated color, radius, and spacing tokens (#65)
|
|
32
|
+
|
|
33
|
+
### Fixes
|
|
34
|
+
|
|
35
|
+
- **Console Warnings**: Fixed console warnings in App.tsx (#194)
|
|
36
|
+
- **Snapshot Tests**: Updated snapshots across multiple components
|
|
37
|
+
- **Focus Styles**: Implemented focus styles for checkbox and radio inputs (#186)
|
|
38
|
+
- **Select**: Fixed styles and theme integration (#188)
|
|
39
|
+
- **Textarea**: Skipped snapshot test in textarea (#82)
|
|
40
|
+
|
|
41
|
+
### CI/CD
|
|
42
|
+
|
|
43
|
+
- **NPM Publishing**: Added release pipeline for publishing to NPM (#111)
|
|
44
|
+
- **Slack Notifications**: Added Slack notifications to CI (#75)
|
|
45
|
+
- **Playwright**: Added initial Playwright test setup (#69)
|
|
46
|
+
|
|
47
|
+
### Documentation
|
|
48
|
+
|
|
49
|
+
- **README**: Updated README with component creation script (#99)
|
|
50
|
+
- **Storybook**: Enhanced Storybook docs for multiple components
|
|
51
|
+
|
|
52
|
+
---
|
|
53
|
+
|
|
54
|
+
## [0.2.0] - 2025-06-12
|
|
55
|
+
|
|
56
|
+
### Added
|
|
57
|
+
|
|
58
|
+
- New `Stepper` component with horizontal/vertical orientation
|
|
59
|
+
- `Button` now supports `loading` prop
|
|
60
|
+
|
|
61
|
+
### Changed
|
|
62
|
+
|
|
63
|
+
- `Input` now accepts `size="small" | "medium" | "large"`
|
|
64
|
+
- Improved `Modal` focus trap behavior
|
|
65
|
+
|
|
66
|
+
### Fixed
|
|
67
|
+
|
|
68
|
+
- Fixed `Tooltip` not displaying on keyboard focus
|
|
69
|
+
- `Checkbox` label alignment issue in Safari
|
|
70
|
+
|
|
71
|
+
### Removed
|
|
72
|
+
|
|
73
|
+
- Deprecated `LegacyBanner` component (removed in v1.2.0)
|
|
74
|
+
|
|
75
|
+
## [0.3.0] - 2025-07-14
|
|
76
|
+
|
|
77
|
+
### Features
|
|
78
|
+
|
|
79
|
+
- Integrated Google Generative AI with markdown support and file uploads in ChatDemo.
|
|
80
|
+
- Added multi-chat session support with search functionality and chat caching.
|
|
81
|
+
- Introduced ChatBubble component with status-based styling (pending, fulfilled, rejected).
|
|
82
|
+
- Implemented AI feedback loop for iterative improvements in chat interactions.
|
|
83
|
+
- Added DragAndDrop widget with file validation and upload progress indicators.
|
|
84
|
+
- New Separator component for visual content division.
|
|
85
|
+
- Enhanced Loader with customizable name prop for targeted styling.
|
|
86
|
+
- Added use client directive for Next.js compatibility.
|
|
87
|
+
- Dynamic theme support in ChatBubble using commonHeader tokens.
|
|
88
|
+
|
|
89
|
+
### Refactor
|
|
90
|
+
|
|
91
|
+
- Full migration from styled-components to @emotion/styled across all components.
|
|
92
|
+
- Restructured Storybook stories and updated meta titles for consistency.
|
|
93
|
+
- Replaced static styles with array-based computed styles (e.g., Avatar, Carousel).
|
|
94
|
+
- Standardized prop names (e.g., wrap → isWrap in Row/Column).
|
|
95
|
+
- Library imports are optimized for tree-shaking and performance.
|
|
96
|
+
|
|
97
|
+
### Fixes
|
|
98
|
+
|
|
99
|
+
- Fixed OptionPicker accessibility by adding explicit type="radio".
|
|
100
|
+
- Resolved textarea dynamic height reset and added minHeight/maxHeight support.
|
|
101
|
+
- Addressed chat container overflow, snackbar shadow clipping, and file card rendering issues.
|
|
102
|
+
- Patched type errors, linter warnings, and CI/CD pipeline failures.
|
|
103
|
+
- Restored automation step in Jenkins workflow.
|
|
104
|
+
- Fixed ChatDemo image handling and scroll behavior.
|
|
105
|
+
|
|
106
|
+
### Documentation
|
|
107
|
+
|
|
108
|
+
- Updated Storybook documentation for all components post-Emotion migration.
|
|
109
|
+
- Revised theming guide to use @emotion/styled and gd-design-library.
|
|
110
|
+
- Added .env.example for ChatDemo API key setup.
|
|
111
|
+
- Enhanced component docs with JSDoc examples and usage guidelines.
|
|
112
|
+
|
|
113
|
+
### Summary
|
|
114
|
+
|
|
115
|
+
This release delivers major enhancements to the chat system, full Emotion adoption for styling, critical UX fixes, and
|
|
116
|
+
comprehensive documentation updates. The refactor improves maintainability, while new features like AI integration and
|
|
117
|
+
drag-and-drop elevate component capabilities.
|
|
118
|
+
|
|
119
|
+
## [0.4.0] - 2025-08-18
|
|
120
|
+
|
|
121
|
+
### New Features
|
|
122
|
+
|
|
123
|
+
- Added responsiveness documentation for layout composition techniques
|
|
124
|
+
- Implemented TokenViewer for visual theme token representation in Storybook
|
|
125
|
+
- Added styleVariant prop to Typography for combined styles (bold/italic/underline)
|
|
126
|
+
- Introduced theme export script with downloadable defaultTheme.json in documentation
|
|
127
|
+
|
|
128
|
+
### Improvements
|
|
129
|
+
|
|
130
|
+
- Enhanced theme styles, fixed typos, and improved documentation across components
|
|
131
|
+
- Updated mobile responsiveness and documentation for ChatBubble, ChatContainer, and Breadcrumbs
|
|
132
|
+
- Refined Storybook controls and documentation for Button, Modal, and Card
|
|
133
|
+
- Improved Textarea usability (removed deprecated props, added rows, updated docs)
|
|
134
|
+
- Optimized build with tree shaking, dependency updates, and external library dependencies
|
|
135
|
+
|
|
136
|
+
### Bug Fixes
|
|
137
|
+
|
|
138
|
+
- Fixed Carousel SSR type errors and Dropdown linting issues
|
|
139
|
+
- Adjusted Snackbar documentation and fixed style inconsistencies
|
|
140
|
+
- Fixed Image styles, Carousel token styles, and RadioGroupItem behavior
|
|
141
|
+
- Resolved avatar and chat page responsiveness issues
|
|
142
|
+
- Eliminated console warnings in app.tsx and removed unused code
|
|
143
|
+
- Fixed hardcoded Google API key by adding environment variable support
|
|
144
|
+
- Patched entry point configuration and Portal import errors
|
|
145
|
+
|
|
146
|
+
## [0.5.0] - 2025-09-01
|
|
147
|
+
|
|
148
|
+
### Features
|
|
149
|
+
|
|
150
|
+
- **Input**: Added wrapperAs prop for custom wrapper elements and improved styling customization
|
|
151
|
+
- **Form**: Introduced core form configuration system with state management and field dependencies
|
|
152
|
+
- **Loader**: Added customizable WrapperView prop and enhanced theme integration
|
|
153
|
+
- **ChatContainer**: New component for chat-based interfaces
|
|
154
|
+
- **Theme**: Added detailed theme previews in Storybook for colors, fonts, and spacing tokens
|
|
155
|
+
- **Snackbar**: Added animated close functionality and improved customization options
|
|
156
|
+
- **Icons**: Introduced standardized size variants (Xs, Sm, Md, Lg, Xl) for consistent scaling
|
|
157
|
+
|
|
158
|
+
### Improvements
|
|
159
|
+
|
|
160
|
+
- **Tooltip**: Enhanced type handling, prop interfaces, and theme usage
|
|
161
|
+
- **Counter**: Improved type handling and theme configuration
|
|
162
|
+
- **Stepper**: Refactored layout using FlexContainer for better mobile experience
|
|
163
|
+
- **Tabs**: Enhanced styling with overflow handling and improved documentation
|
|
164
|
+
- **Selector**: Replaced div elements with span for better accessibility
|
|
165
|
+
- **Textarea**: Added dynamic height adjustment based on content
|
|
166
|
+
- **Documentation**: Enhanced Storybook docs with detailed prop descriptions
|
|
167
|
+
- **Theme**: Updated default colors and improved token structure
|
|
168
|
+
- **Carousel**: Refactored styles and improved content navigation flexibility
|
|
169
|
+
|
|
170
|
+
### Fixes
|
|
171
|
+
|
|
172
|
+
- **Button**: Fixed border styling issues in disabled state
|
|
173
|
+
- **Textarea**: Fixed dynamic height adjustment behavior
|
|
174
|
+
- **Selector**: Corrected semantic HTML usage and import paths
|
|
175
|
+
- **Build**: Fixed dist output paths and dependency isolation
|
|
176
|
+
- **Types**: Resolved various TypeScript compatibility issues
|
|
177
|
+
- **Storybook**: Corrected TokenViewer import paths and theme consistency
|
package/ai/README.md
ADDED
|
@@ -0,0 +1,137 @@
|
|
|
1
|
+
# AI prompt and codegen usage for gd-design-library (GridKit)
|
|
2
|
+
|
|
3
|
+
This README explains how to use the AI helpers in `/ai` to reliably generate React/TSX that only uses `gd-design-library`. It consolidates the hard rules, guardrails, and helper APIs exposed by this folder.
|
|
4
|
+
|
|
5
|
+
Why these rules exist:
|
|
6
|
+
|
|
7
|
+
- Consistency: a single design system source makes UI consistent and themable.
|
|
8
|
+
- Accessibility: components provide sensible defaults and ARIA support.
|
|
9
|
+
- Maintainability: no ad‑hoc CSS/HTML or third‑party UI imports.
|
|
10
|
+
|
|
11
|
+
Core rule (must follow):
|
|
12
|
+
|
|
13
|
+
- Use ONLY components exported by `gd-design-library` for layout, forms, feedback, display, and navigation. Do not invent components. Do not import from other UI libraries.
|
|
14
|
+
|
|
15
|
+
Single-source import (enforced):
|
|
16
|
+
|
|
17
|
+
- Correct: `import { Form, Input, Button, Typography, FlexContainer, Column, Card, Link } from 'gd-design-library';`
|
|
18
|
+
- Incorrect: `import Button from 'some-ui-lib';`, `import { Box } from '@mui/material';`, or using `./styles.css` for layout spacing.
|
|
19
|
+
|
|
20
|
+
How to use the AI helpers
|
|
21
|
+
|
|
22
|
+
1. Programmatic prompt builder (recommended)
|
|
23
|
+
|
|
24
|
+
- Import from the AI helpers barrel:
|
|
25
|
+
- `import { buildClaudeSystemPrompt } from 'gd-design-library/ai';`
|
|
26
|
+
- Build your system+task prompt:
|
|
27
|
+
- `const prompt = buildClaudeSystemPrompt('Create a sign-in form with email and password');`
|
|
28
|
+
What this does:
|
|
29
|
+
- Includes a live list of available components and composition tips from `./ai/schemas/components.ts` and `./ai/schemas/components/*`.
|
|
30
|
+
- Enforces single-source imports from `gd-design-library` and accessibility/theming guardrails.
|
|
31
|
+
|
|
32
|
+
2. Legacy/basic builder
|
|
33
|
+
|
|
34
|
+
- `buildGDLibraryPrompt(request: string)` is kept for compatibility. It defers to `buildClaudeSystemPrompt`.
|
|
35
|
+
|
|
36
|
+
3. Direct constant (advanced)
|
|
37
|
+
|
|
38
|
+
- `CLAUDE_GRIDKIT_SYSTEM_PROMPT` contains the full system instructions. You can append your task to it manually if needed.
|
|
39
|
+
|
|
40
|
+
Practical generation tips (what the model should output)
|
|
41
|
+
|
|
42
|
+
- Output ONLY valid React TSX. No markdown fences or commentary.
|
|
43
|
+
- Prefer composition using the provided layout primitives (FlexContainer, Column, Row, Card.\* subcomponents, etc.).
|
|
44
|
+
- Keep custom styles minimal; use component props for spacing, alignment, sizing.
|
|
45
|
+
- Always ensure accessibility: label all form controls (Label or Input label prop), use appropriate aria-\* attributes, and keep keyboard navigation sensible.
|
|
46
|
+
- Do not inline the ThemeProvider inside leaf components; provide it at the app root. See Theme provider/hook entries in the schema.
|
|
47
|
+
- Keep imports consolidated to one source: `gd-design-library`.
|
|
48
|
+
|
|
49
|
+
API guardrails from the schema/prompt (must-follow)
|
|
50
|
+
|
|
51
|
+
- Row/Column/Card.Row/Card.Column: use `isWrap` (boolean), NOT `wrap`.
|
|
52
|
+
- Image and Card.Image: `width` and `height` props are numbers only (e.g., `width={96}`), not strings like `"96px"`.
|
|
53
|
+
- Card.Title and other Card subcomponents: `sizeVariant` only accepts `CardSizeVariant.Default` or `CardSizeVariant.Sm`.
|
|
54
|
+
- Counter and Card.Counter: use `initial` (not `value`) for the starting quantity; use `onCounterChange` as the change handler.
|
|
55
|
+
- Button `variant` must be one of `ButtonVariant.Contained | ButtonVariant.Outlined | ButtonVariant.Text | ButtonVariant.Inherit`.
|
|
56
|
+
- Button `color` must be one of `ButtonColorVariant.Primary | ButtonColorVariant.Secondary`.
|
|
57
|
+
|
|
58
|
+
Component catalog
|
|
59
|
+
|
|
60
|
+
- The authoritative, up-to-date list of supported components, their props, examples, and composition tips is generated from:
|
|
61
|
+
- `./schemas/components.ts` (registry)
|
|
62
|
+
- `./schemas/components/*` (per-component schemas)
|
|
63
|
+
- The list includes layout, forms, feedback, display, navigation, and theme provider/hook entries. Always consult these when unsure.
|
|
64
|
+
- Quick categories (from schema v1.0.0):
|
|
65
|
+
- Theme: useTheme.provider (ThemeProvider), useTheme.hook (useTheme)
|
|
66
|
+
- Layout: FlexContainer, Column, Row, Wrapper, Scroll, Separator
|
|
67
|
+
- Forms: Form, Input, Select, Search, Label, Textarea, Switch, Toggle, RadioGroup, Slider, InputFile, DragAndDropFiles
|
|
68
|
+
- Feedback & overlays: InlineNotification, Loader, Skeleton, Snackbar, SnackbarManager, Tooltip, Modal, Portal
|
|
69
|
+
- Navigation & structure: Breadcrumbs, Tabs, Stepper, List, Accordion, Link
|
|
70
|
+
- Display & content: Typography, Button, Icon, Image, Card, Avatar, Carousel, ContentCarousel, Counter, Price, ProgressBar, Rating, ChatContainer, ChatBubble
|
|
71
|
+
- Not part of gd-design-library (do not request/use): Grid, Stack, Alert, Toast, Table, Badge, ButtonGroup, Dropdown, Drawer, Popover, Pagination, Heading, Spinner.
|
|
72
|
+
|
|
73
|
+
Patterns from stories (grounded tips)
|
|
74
|
+
|
|
75
|
+
- Textarea:
|
|
76
|
+
- Control resizing with the `resize` prop using the `TextareaResize` enum (e.g., None, Horizontal, Vertical, Both). Prefer `dynamicHeightAdjustment` for auto-growing content.
|
|
77
|
+
- Use `rows` for fixed height or `minHeight`/`maxHeight` for constraints.
|
|
78
|
+
- Controlled vs uncontrolled: use `value` with `onChange` for controlled; use `defaultValue` for uncontrolled.
|
|
79
|
+
- Accessibility: use `ariaDescribedBy` to connect helper/error text; set `readOnly`/`disabled` as needed; `autoFocus` is available.
|
|
80
|
+
- Limits and events: `maxLength` to constrain length; `onCustomResize` receives `{ height, width }` when user resizes.
|
|
81
|
+
- Buttons:
|
|
82
|
+
- Variants: `ButtonVariant.Contained | Outlined | Text | Inherit`; Colors: `ButtonColorVariant.Primary | Secondary`. For icon-only buttons, set `isIcon`.
|
|
83
|
+
- Forms and labels:
|
|
84
|
+
- Always provide a visible label via the `label` prop or a separate `<Label htmlFor>` paired with the input `name/id`. Wrap controls with `<Form>` and handle submit via `onSubmit`.
|
|
85
|
+
- Layout composition:
|
|
86
|
+
- Use `FlexContainer` with `Column`/`Row` and `gap` to manage spacing. Avoid raw CSS margins except where necessary.
|
|
87
|
+
- Cards and images:
|
|
88
|
+
- `Card.Title` uses `sizeVariant={CardSizeVariant.Default | CardSizeVariant.Sm}` only. `Card.Image` and `Image` require numeric `width`/`height` props.
|
|
89
|
+
|
|
90
|
+
Example: Correct usage
|
|
91
|
+
|
|
92
|
+
```
|
|
93
|
+
import { Form, Input, Button, Typography, FlexContainer, Column, Card, Link } from 'gd-design-library';
|
|
94
|
+
|
|
95
|
+
export function LoginCard() {
|
|
96
|
+
return (
|
|
97
|
+
<FlexContainer alignItems="center" justifyContent="center" minHeight="100vh" padding="24px">
|
|
98
|
+
<Card width={360} padding="24px">
|
|
99
|
+
<Column gap="12px">
|
|
100
|
+
<Typography as="h1" variant="h2">Sign in</Typography>
|
|
101
|
+
<Form onSubmit={(e) => { e.preventDefault(); /* TODO: submit */ }}>
|
|
102
|
+
<Column gap="12px">
|
|
103
|
+
<Input variant="email" label="Email" name="email" />
|
|
104
|
+
<Input variant="password" label="Password" name="password" />
|
|
105
|
+
<Button type="submit" fullWidth>Sign in</Button>
|
|
106
|
+
</Column>
|
|
107
|
+
</Form>
|
|
108
|
+
<Typography variant="small">
|
|
109
|
+
Don’t have an account? <Link href="#">Sign up</Link>
|
|
110
|
+
</Typography>
|
|
111
|
+
</Column>
|
|
112
|
+
</Card>
|
|
113
|
+
</FlexContainer>
|
|
114
|
+
);
|
|
115
|
+
}
|
|
116
|
+
```
|
|
117
|
+
|
|
118
|
+
Incorrect usage (anti-patterns)
|
|
119
|
+
|
|
120
|
+
```
|
|
121
|
+
import Button from 'some-ui-lib';
|
|
122
|
+
import { Box } from '@mui/material';
|
|
123
|
+
|
|
124
|
+
export function Login() {
|
|
125
|
+
return (
|
|
126
|
+
<div className="container"> {/* Do not build layout with raw divs/CSS */}
|
|
127
|
+
<button>Sign in</button> {/* Do not use native elements for styled UI */}
|
|
128
|
+
</div>
|
|
129
|
+
);
|
|
130
|
+
}
|
|
131
|
+
```
|
|
132
|
+
|
|
133
|
+
Troubleshooting and notes
|
|
134
|
+
|
|
135
|
+
- If a component/prop isn’t recognized, verify it exists in `gd-design-library` exports and the AI schemas under `./ai/schemas/components/*`.
|
|
136
|
+
- When new components are added to the design system, update their schema and the central registry in `./ai/schemas/components.ts` so prompts stay accurate.
|
|
137
|
+
- The default intro string in code (`defaultAIPromptIntro`) is aligned with the schema. Prefer the schema-driven builders (e.g., `buildClaudeSystemPrompt`) for the most accurate, current catalog.
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsxs as o, jsx as r } from "@emotion/react/jsx-runtime";
|
|
3
|
+
import { forwardRef as h, Fragment as S } from "react";
|
|
4
|
+
import { COMPONENT_NAME as e } from "./constants.js";
|
|
5
|
+
import { BreadcrumbsStyled as $, ItemStartStyled as y, BreadcrumbItemStyled as E, SeparatorStyled as I, ItemEndStyled as N } from "./BreadcrumbsStyled.js";
|
|
6
|
+
import { useTheme as B } from "../../../hooks/useTheme/useTheme.js";
|
|
7
|
+
const g = h((n, c) => {
|
|
8
|
+
const {
|
|
9
|
+
separator: a,
|
|
10
|
+
itemStart: d,
|
|
11
|
+
itemEnd: m,
|
|
12
|
+
separatorAfterLastItem: p = !1,
|
|
13
|
+
items: i = [],
|
|
14
|
+
bordered: f,
|
|
15
|
+
ariaLabel: l = "breadcrumb",
|
|
16
|
+
...u
|
|
17
|
+
} = n, {
|
|
18
|
+
theme: t
|
|
19
|
+
} = B();
|
|
20
|
+
return /* @__PURE__ */ o($, { ref: c, $bordered: f, theme: t, "data-testid": e, ...l ? {
|
|
21
|
+
"aria-label": l
|
|
22
|
+
} : {}, ...u, children: [
|
|
23
|
+
d ? /* @__PURE__ */ r(y, { theme: t, "data-testid": `${e}-item-start`, children: d }) : null,
|
|
24
|
+
i.map((b, s) => /* @__PURE__ */ o(S, { children: [
|
|
25
|
+
/* @__PURE__ */ r(E, { theme: t, "data-testid": `${e}-item`, children: b }),
|
|
26
|
+
a && (p || s < i.length - 1) ? /* @__PURE__ */ r(I, { theme: t, "data-testid": `${e}-separator`, children: a }) : null
|
|
27
|
+
] }, `${e}-${s}`)),
|
|
28
|
+
m ? /* @__PURE__ */ r(N, { theme: t, "data-testid": `${e}-item-end`, children: m }) : null
|
|
29
|
+
] });
|
|
30
|
+
});
|
|
31
|
+
g.displayName = e;
|
|
32
|
+
export {
|
|
33
|
+
g as Breadcrumbs
|
|
34
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { CommonCssComponentProps, CommonCssComponentStyledProps } from '../..';
|
|
3
|
+
export interface BreadcrumbsProps extends CommonCssComponentProps {
|
|
4
|
+
separator?: ReactNode;
|
|
5
|
+
itemStart?: ReactNode;
|
|
6
|
+
itemEnd?: ReactNode;
|
|
7
|
+
separatorAfterLastItem?: boolean;
|
|
8
|
+
bordered?: boolean;
|
|
9
|
+
items?: (never | ReactNode)[];
|
|
10
|
+
ariaLabel?: string;
|
|
11
|
+
}
|
|
12
|
+
export interface BreadcrumbsStyledProps extends CommonCssComponentStyledProps {
|
|
13
|
+
$bordered?: boolean;
|
|
14
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { BreadcrumbsStyledProps } from './Breadcrumbs.types';
|
|
2
|
+
export declare const BreadcrumbsStyled: import('react').ForwardRefExoticComponent<Omit<BreadcrumbsStyledProps, "ref"> & import('react').RefAttributes<HTMLDivElement>>;
|
|
3
|
+
export declare const BreadcrumbItemStyled: (props: BreadcrumbsStyledProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
4
|
+
export declare const SeparatorStyled: (props: BreadcrumbsStyledProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
5
|
+
export declare const ItemStartStyled: (props: BreadcrumbsStyledProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
6
|
+
export declare const ItemEndStyled: (props: BreadcrumbsStyledProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx as n } from "@emotion/react/jsx-runtime";
|
|
3
|
+
import { forwardRef as l } from "react";
|
|
4
|
+
import { get as c } from "../../../utils/helpers.js";
|
|
5
|
+
const b = l((e, s) => {
|
|
6
|
+
const {
|
|
7
|
+
theme: {
|
|
8
|
+
breadcrumbs: t
|
|
9
|
+
} = {},
|
|
10
|
+
$bordered: r = !1,
|
|
11
|
+
styles: o = {},
|
|
12
|
+
...m
|
|
13
|
+
} = e, d = [c(t, "default", {}), r ? c(t, "bordered", {}) : {}, o];
|
|
14
|
+
return /* @__PURE__ */ n("div", { css: d, ...m, ref: s });
|
|
15
|
+
}), i = (e) => {
|
|
16
|
+
const {
|
|
17
|
+
theme: {
|
|
18
|
+
breadcrumbs: s
|
|
19
|
+
} = {},
|
|
20
|
+
styles: t = {},
|
|
21
|
+
...r
|
|
22
|
+
} = e, o = [c(s, "item", {}), t];
|
|
23
|
+
return /* @__PURE__ */ n("div", { css: o, ...r });
|
|
24
|
+
}, u = (e) => {
|
|
25
|
+
const {
|
|
26
|
+
theme: {
|
|
27
|
+
breadcrumbs: s
|
|
28
|
+
} = {},
|
|
29
|
+
styles: t = {},
|
|
30
|
+
...r
|
|
31
|
+
} = e, o = [c(s, "separator", {}), t];
|
|
32
|
+
return /* @__PURE__ */ n("div", { css: o, ...r });
|
|
33
|
+
}, S = (e) => {
|
|
34
|
+
const {
|
|
35
|
+
theme: {
|
|
36
|
+
breadcrumbs: s
|
|
37
|
+
} = {},
|
|
38
|
+
styles: t = {},
|
|
39
|
+
...r
|
|
40
|
+
} = e, o = [c(s, "item.itemStart", {}), t];
|
|
41
|
+
return /* @__PURE__ */ n("div", { css: o, ...r });
|
|
42
|
+
}, f = (e) => {
|
|
43
|
+
const {
|
|
44
|
+
theme: {
|
|
45
|
+
breadcrumbs: s
|
|
46
|
+
} = {},
|
|
47
|
+
styles: t = {},
|
|
48
|
+
...r
|
|
49
|
+
} = e, o = [c(s, "item.itemEnd", {}), t];
|
|
50
|
+
return /* @__PURE__ */ n("div", { css: o, ...r });
|
|
51
|
+
};
|
|
52
|
+
export {
|
|
53
|
+
i as BreadcrumbItemStyled,
|
|
54
|
+
b as BreadcrumbsStyled,
|
|
55
|
+
f as ItemEndStyled,
|
|
56
|
+
S as ItemStartStyled,
|
|
57
|
+
u as SeparatorStyled
|
|
58
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const COMPONENT_NAME = "Breadcrumbs";
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsxs as $, jsx as e } from "@emotion/react/jsx-runtime";
|
|
3
|
+
import { forwardRef as x } from "react";
|
|
4
|
+
import { convertToInlineBoxStyles as b } from "../../../tokens/utils.js";
|
|
5
|
+
import { COMPONENT_NAME as t } from "./constants.js";
|
|
6
|
+
import { ButtonStyled as C, StartIconStyled as T, ContentStyled as E, EndIconStyled as N } from "./ButtonStyled.js";
|
|
7
|
+
import { useTheme as v } from "../../../hooks/useTheme/useTheme.js";
|
|
8
|
+
import { ButtonColorVariant as P, ButtonVariant as j, ButtonTypes as M, ButtonRole as O } from "../../../types/button.js";
|
|
9
|
+
import { TabIndex as R } from "../../../types/accesability.js";
|
|
10
|
+
const V = x((s, c) => {
|
|
11
|
+
const {
|
|
12
|
+
theme: o
|
|
13
|
+
} = v(), {
|
|
14
|
+
color: m = P.Primary,
|
|
15
|
+
variant: u = j.Contained,
|
|
16
|
+
children: n,
|
|
17
|
+
iconStart: r = null,
|
|
18
|
+
iconEnd: a = null,
|
|
19
|
+
type: f = M.Button,
|
|
20
|
+
disabled: p = !1,
|
|
21
|
+
isIcon: y = !1,
|
|
22
|
+
ariaLabel: l,
|
|
23
|
+
ariaPressed: i,
|
|
24
|
+
role: B = O.Button,
|
|
25
|
+
fullWidth: h = !1,
|
|
26
|
+
tabIndex: I = R.Default,
|
|
27
|
+
onClick: S,
|
|
28
|
+
...d
|
|
29
|
+
} = s;
|
|
30
|
+
return /* @__PURE__ */ $(C, { ref: c, $variant: u, $color: m, $isIcon: y, $fullWidth: h, disabled: p, onClick: S, type: f, role: B, theme: o, tabIndex: I, "data-testid": t, ...b(d), ...l ? {
|
|
31
|
+
"aria-label": l
|
|
32
|
+
} : {}, ...i ? {
|
|
33
|
+
"aria-pressed": i
|
|
34
|
+
} : {}, ...d, children: [
|
|
35
|
+
r ? /* @__PURE__ */ e(T, { theme: o, "data-testid": `${t}-icon-start`, children: r }) : null,
|
|
36
|
+
n ? /* @__PURE__ */ e(E, { theme: o, "data-testid": `${t}-content`, children: n }) : null,
|
|
37
|
+
a ? /* @__PURE__ */ e(N, { theme: o, "data-testid": `${t}-icon-end`, children: a }) : null
|
|
38
|
+
] });
|
|
39
|
+
});
|
|
40
|
+
V.displayName = t;
|
|
41
|
+
export {
|
|
42
|
+
V as Button
|
|
43
|
+
};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { PropsWithChildren, MouseEvent, ReactNode } from 'react';
|
|
2
|
+
import { ButtonAriaLabel, ButtonColorVariant, ButtonRole, ButtonTypes, ButtonVariant, EnumOrPrimitive } from '../../../types';
|
|
3
|
+
import { BoxCssComponentProps, BoxCssComponentStyledProps } from '../..';
|
|
4
|
+
export interface ButtonProps extends BoxCssComponentProps<HTMLButtonElement>, PropsWithChildren {
|
|
5
|
+
variant?: EnumOrPrimitive<ButtonVariant>;
|
|
6
|
+
color?: EnumOrPrimitive<ButtonColorVariant>;
|
|
7
|
+
iconStart?: ReactNode;
|
|
8
|
+
iconEnd?: ReactNode;
|
|
9
|
+
onClick?: (event: MouseEvent<HTMLButtonElement>) => void;
|
|
10
|
+
type?: ButtonTypes | `${ButtonTypes}`;
|
|
11
|
+
disabled?: boolean;
|
|
12
|
+
fullWidth?: boolean;
|
|
13
|
+
isIcon?: boolean;
|
|
14
|
+
ariaLabel?: ButtonAriaLabel | `${ButtonAriaLabel}`;
|
|
15
|
+
ariaPressed?: boolean;
|
|
16
|
+
role?: ButtonRole | `${ButtonRole}`;
|
|
17
|
+
tabIndex?: number;
|
|
18
|
+
}
|
|
19
|
+
export interface ButtonStyledProps extends BoxCssComponentStyledProps<HTMLButtonElement>, PropsWithChildren {
|
|
20
|
+
$variant?: EnumOrPrimitive<ButtonVariant>;
|
|
21
|
+
$color?: EnumOrPrimitive<ButtonColorVariant>;
|
|
22
|
+
$isIcon?: boolean;
|
|
23
|
+
$fullWidth?: boolean;
|
|
24
|
+
disabled?: boolean;
|
|
25
|
+
type?: ButtonTypes | `${ButtonTypes}`;
|
|
26
|
+
}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { ButtonStyledProps } from './Button.types';
|
|
2
|
+
export declare const ButtonStyled: import('react').ForwardRefExoticComponent<Omit<ButtonStyledProps, "ref"> & import('react').RefAttributes<HTMLButtonElement>>;
|
|
3
|
+
export declare const ContentStyled: (props: ButtonStyledProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
4
|
+
export declare const StartIconStyled: (props: ButtonStyledProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
5
|
+
export declare const EndIconStyled: (props: ButtonStyledProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx as r } from "@emotion/react/jsx-runtime";
|
|
3
|
+
import { forwardRef as f } from "react";
|
|
4
|
+
import { getBoxStyles as y } from "../../../tokens/utils.js";
|
|
5
|
+
import { ButtonVariant as S, ButtonColorVariant as b } from "../../../types/button.js";
|
|
6
|
+
import { get as o } from "../../../utils/helpers.js";
|
|
7
|
+
const $ = f((n, e) => {
|
|
8
|
+
const {
|
|
9
|
+
theme: {
|
|
10
|
+
button: t
|
|
11
|
+
} = {},
|
|
12
|
+
$isIcon: s,
|
|
13
|
+
$fullWidth: c,
|
|
14
|
+
$variant: l = S.Contained,
|
|
15
|
+
$color: a = b.Primary,
|
|
16
|
+
styles: m = {},
|
|
17
|
+
...u
|
|
18
|
+
} = n, {
|
|
19
|
+
boxStyles: p,
|
|
20
|
+
restProps: d
|
|
21
|
+
} = y(u), i = [o(t, "default", {}), o(t, [l, a], {}), p, s ? o(t, "icon", {}) : {}, c ? o(t, "fullWidth", {}) : {}, m];
|
|
22
|
+
return /* @__PURE__ */ r("button", { css: i, ...d, ref: e });
|
|
23
|
+
}), g = (n) => {
|
|
24
|
+
const {
|
|
25
|
+
theme: {
|
|
26
|
+
button: e
|
|
27
|
+
} = {},
|
|
28
|
+
...t
|
|
29
|
+
} = n, s = o(e, "content", {});
|
|
30
|
+
return /* @__PURE__ */ r("span", { css: o(s, "default", {}), className: "gd-button__content", ...t });
|
|
31
|
+
}, C = (n) => {
|
|
32
|
+
const {
|
|
33
|
+
theme: {
|
|
34
|
+
button: e
|
|
35
|
+
} = {},
|
|
36
|
+
...t
|
|
37
|
+
} = n, s = o(e, "startIcon", {});
|
|
38
|
+
return /* @__PURE__ */ r("span", { css: o(s, "default", {}), ...t });
|
|
39
|
+
}, N = (n) => {
|
|
40
|
+
const {
|
|
41
|
+
theme: {
|
|
42
|
+
button: e
|
|
43
|
+
} = {},
|
|
44
|
+
...t
|
|
45
|
+
} = n, s = o(e, "endIcon", {});
|
|
46
|
+
return /* @__PURE__ */ r("span", { css: o(s, "default", {}), ...t });
|
|
47
|
+
};
|
|
48
|
+
export {
|
|
49
|
+
$ as ButtonStyled,
|
|
50
|
+
g as ContentStyled,
|
|
51
|
+
N as EndIconStyled,
|
|
52
|
+
C as StartIconStyled
|
|
53
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const COMPONENT_NAME = "Button";
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx as u } from "@emotion/react/jsx-runtime";
|
|
3
|
+
import { forwardRef as y } from "react";
|
|
4
|
+
import { KEYBOARD_KEYS as s } from "../../../constants/keyboard.js";
|
|
5
|
+
import { getClosestFocusable as D } from "../../../utils/focus.js";
|
|
6
|
+
import { DropdownStyled as E } from "./DropdownStyled.js";
|
|
7
|
+
import { COMPONENT_NAME as c } from "./constants.js";
|
|
8
|
+
import { useTheme as R } from "../../../hooks/useTheme/useTheme.js";
|
|
9
|
+
const w = y((l, p) => {
|
|
10
|
+
const {
|
|
11
|
+
children: d,
|
|
12
|
+
...f
|
|
13
|
+
} = l, {
|
|
14
|
+
theme: a
|
|
15
|
+
} = R();
|
|
16
|
+
return /* @__PURE__ */ u(E, { ref: p, theme: a, "data-testid": c, onKeyDown: (o) => {
|
|
17
|
+
var m;
|
|
18
|
+
if (![s.ARROW_DOWN, s.ARROW_UP].includes(o.key))
|
|
19
|
+
return;
|
|
20
|
+
o.preventDefault();
|
|
21
|
+
const e = o.currentTarget, i = o.key === s.ARROW_UP, t = (m = e.ownerDocument) == null ? void 0 : m.activeElement;
|
|
22
|
+
if (t && e.contains(t)) {
|
|
23
|
+
const r = document.createElement("div");
|
|
24
|
+
e.insertBefore(r, i ? t : t.nextSibling);
|
|
25
|
+
const n = D({
|
|
26
|
+
initial: r,
|
|
27
|
+
previous: i,
|
|
28
|
+
root: e,
|
|
29
|
+
keyboard: !0
|
|
30
|
+
});
|
|
31
|
+
e.removeChild(r), n == null || n.focus();
|
|
32
|
+
}
|
|
33
|
+
}, ...f, children: d });
|
|
34
|
+
});
|
|
35
|
+
w.displayName = c;
|
|
36
|
+
export {
|
|
37
|
+
w as Dropdown
|
|
38
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { PropsWithChildren } from 'react';
|
|
2
|
+
import { CommonCssComponentProps, CommonCssComponentStyledProps } from '../../index.types';
|
|
3
|
+
import { OnSelectProps } from '../types/events.types';
|
|
4
|
+
export type DropdownProps = PropsWithChildren<CommonCssComponentProps>;
|
|
5
|
+
export type DropdownStyledProps = PropsWithChildren<CommonCssComponentStyledProps>;
|
|
6
|
+
export interface DropdownContextType {
|
|
7
|
+
onSelect?: (props: OnSelectProps) => void;
|
|
8
|
+
}
|