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
package/llms.txt
ADDED
|
@@ -0,0 +1,309 @@
|
|
|
1
|
+
# GridKit Design System (gd-design-library) - AI Integration Documentation
|
|
2
|
+
|
|
3
|
+
> 📖 **Quick Start**: For detailed usage instructions, see the [AI README](./ai/README.md)
|
|
4
|
+
|
|
5
|
+
## Overview
|
|
6
|
+
This document provides comprehensive information about the AI integration system for the GridKit Design System (gd-design-library). The AI system enables reliable generation of React/TSX components using only the design system's components, ensuring consistency, accessibility, and maintainability.
|
|
7
|
+
|
|
8
|
+
## Core Philosophy
|
|
9
|
+
- **Single Source of Truth**: Use ONLY components exported by `gd-design-library`
|
|
10
|
+
- **Consistency**: Single design system source makes UI consistent and themable
|
|
11
|
+
- **Accessibility**: Components provide sensible defaults and ARIA support
|
|
12
|
+
- **Maintainability**: No ad-hoc CSS/HTML or third-party UI imports
|
|
13
|
+
|
|
14
|
+
## AI System Architecture
|
|
15
|
+
|
|
16
|
+
### Main Files
|
|
17
|
+
- `./ai/index.ts` - Main export file
|
|
18
|
+
- `./ai/prompts.ts` - Prompt building and system instructions
|
|
19
|
+
- `./ai/codegen.ts` - Code generation utilities
|
|
20
|
+
- `./ai/README.md` - Comprehensive usage documentation ([View AI README](./ai/README.md))
|
|
21
|
+
- `./ai/schemas/` - Component schemas and composition tips
|
|
22
|
+
|
|
23
|
+
### Key Components
|
|
24
|
+
|
|
25
|
+
#### 1. System Prompt (`CLAUDE_GRIDKIT_SYSTEM_PROMPT`)
|
|
26
|
+
The core system instruction for LLMs that includes:
|
|
27
|
+
- Hard requirements for TSX output
|
|
28
|
+
- Single-source import enforcement
|
|
29
|
+
- API constraints and guardrails
|
|
30
|
+
- Complete component catalog (46 components)
|
|
31
|
+
- Composition tips and guidelines
|
|
32
|
+
|
|
33
|
+
#### 2. Component Schema System
|
|
34
|
+
Located in `./ai/schemas/components/`, each component has:
|
|
35
|
+
- **Component Definition**: Name, import, description, props, examples
|
|
36
|
+
- **Composition Tips**: Best practices for using the component
|
|
37
|
+
- **Type Safety**: TypeScript definitions for all props
|
|
38
|
+
|
|
39
|
+
#### 3. Available Components (46 total)
|
|
40
|
+
|
|
41
|
+
**Theme & Context:**
|
|
42
|
+
- ThemeProvider - Context provider for theme support
|
|
43
|
+
- useTheme - Hook for accessing and managing themes
|
|
44
|
+
|
|
45
|
+
**Layout Components:**
|
|
46
|
+
- FlexContainer - Flexible container with CSS flexbox
|
|
47
|
+
- Column - Vertical layout container
|
|
48
|
+
- Row - Horizontal layout container
|
|
49
|
+
- Wrapper - Generic wrapper component
|
|
50
|
+
- Scroll - Scrollable container
|
|
51
|
+
- Separator - Visual separator element
|
|
52
|
+
|
|
53
|
+
**Form Components:**
|
|
54
|
+
- Form - Semantic form wrapper with event handling
|
|
55
|
+
- Input - Text input with multiple variants (email, password, checkbox, etc.)
|
|
56
|
+
- Select - Dropdown selection component
|
|
57
|
+
- Search - Search input with suggestions
|
|
58
|
+
- Label - Form label component
|
|
59
|
+
- Textarea - Multi-line text input
|
|
60
|
+
- Switch - Toggle switch component
|
|
61
|
+
- Toggle - Alternative toggle component
|
|
62
|
+
- RadioGroup - Radio button group
|
|
63
|
+
- Slider - Range slider input
|
|
64
|
+
- InputFile - File upload input
|
|
65
|
+
- DragAndDropFiles - Drag and drop file upload
|
|
66
|
+
|
|
67
|
+
**Feedback & Overlays:**
|
|
68
|
+
- InlineNotification - Inline status messages
|
|
69
|
+
- Loader - Loading indicator
|
|
70
|
+
- Skeleton - Content placeholder
|
|
71
|
+
- Snackbar - Toast notifications
|
|
72
|
+
- SnackbarManager - Snackbar management
|
|
73
|
+
- Tooltip - Hover tooltip
|
|
74
|
+
- Modal - Modal dialog
|
|
75
|
+
- Portal - Portal for rendering outside DOM tree
|
|
76
|
+
|
|
77
|
+
**Navigation & Structure:**
|
|
78
|
+
- Breadcrumbs - Navigation breadcrumb trail
|
|
79
|
+
- Tabs - Tab navigation component
|
|
80
|
+
- Stepper - Step-by-step navigation
|
|
81
|
+
- List - List container component
|
|
82
|
+
- Accordion - Collapsible content sections
|
|
83
|
+
- Link - Navigation link component
|
|
84
|
+
|
|
85
|
+
**Display & Content:**
|
|
86
|
+
- Typography - Text component with multiple variants
|
|
87
|
+
- Button - Interactive button with multiple styles
|
|
88
|
+
- Icon - Icon component
|
|
89
|
+
- Image - Image component with optimization
|
|
90
|
+
- Card - Content container with subcomponents
|
|
91
|
+
- Avatar - User avatar component
|
|
92
|
+
- Carousel - Image/content carousel
|
|
93
|
+
- ContentCarousel - Content carousel variant
|
|
94
|
+
- Counter - Numeric counter component
|
|
95
|
+
- Price - Price display component
|
|
96
|
+
- ProgressBar - Progress indicator
|
|
97
|
+
- Rating - Star rating component
|
|
98
|
+
- ChatContainer - Chat interface container
|
|
99
|
+
- ChatBubble - Individual chat message
|
|
100
|
+
|
|
101
|
+
## API Constraints & Guardrails
|
|
102
|
+
|
|
103
|
+
### Critical Rules (Must Follow)
|
|
104
|
+
1. **Import Source**: Only import from `gd-design-library`
|
|
105
|
+
2. **Row/Column Wrapping**: Use `isWrap` (boolean), NOT `wrap`
|
|
106
|
+
3. **Image Dimensions**: `width` and `height` props are numbers only (e.g., `width={96}`)
|
|
107
|
+
4. **Card Subcomponents**: `sizeVariant` only accepts `CardSizeVariant.Default` or `CardSizeVariant.Sm`
|
|
108
|
+
5. **Counter Components**: Use `initial` (not `value`) for starting quantity; use `onCounterChange` as handler
|
|
109
|
+
6. **Button Variants**: Must be one of `ButtonVariant.Contained | Outlined | Text | Inherit`
|
|
110
|
+
7. **Button Colors**: Must be one of `ButtonColorVariant.Primary | Secondary`
|
|
111
|
+
|
|
112
|
+
### Typography System
|
|
113
|
+
- **Variants**: h1, h2, h3, h4, h5, h6, body1, body2, caption, overline, display, subtitle1, subtitle2
|
|
114
|
+
- **Style Variants**: italic, bold, underline, strikethrough, uppercase, lowercase, capitalize
|
|
115
|
+
- **Sizes**: xs, sm, md, lg, xl, xxl (for Display variant)
|
|
116
|
+
- **Alignment**: start, center, end, justify
|
|
117
|
+
|
|
118
|
+
### Form System
|
|
119
|
+
- Always use `Form` component as semantic wrapper
|
|
120
|
+
- Provide visible labels via `label` prop or separate `<Label htmlFor>`
|
|
121
|
+
- Handle submission with `onSubmit` handler
|
|
122
|
+
- Use appropriate Input variants (email, password, checkbox, etc.)
|
|
123
|
+
|
|
124
|
+
## Usage Patterns
|
|
125
|
+
|
|
126
|
+
### 1. Programmatic Prompt Builder (Recommended)
|
|
127
|
+
```typescript
|
|
128
|
+
import { buildClaudeSystemPrompt } from 'gd-design-library/ai';
|
|
129
|
+
|
|
130
|
+
const prompt = buildClaudeSystemPrompt('Create a sign-in form with email and password');
|
|
131
|
+
```
|
|
132
|
+
|
|
133
|
+
### 2. Legacy Builder
|
|
134
|
+
```typescript
|
|
135
|
+
import { buildGDLibraryPrompt } from 'gd-design-library/ai';
|
|
136
|
+
|
|
137
|
+
const prompt = buildGDLibraryPrompt('Create a user profile card');
|
|
138
|
+
```
|
|
139
|
+
|
|
140
|
+
### 3. Direct System Prompt
|
|
141
|
+
```typescript
|
|
142
|
+
import { CLAUDE_GRIDKIT_SYSTEM_PROMPT } from 'gd-design-library/ai';
|
|
143
|
+
|
|
144
|
+
const fullPrompt = `${CLAUDE_GRIDKIT_SYSTEM_PROMPT}\n\nTask: Create a dashboard layout`;
|
|
145
|
+
```
|
|
146
|
+
|
|
147
|
+
## Code Generation Examples
|
|
148
|
+
|
|
149
|
+
|
|
150
|
+
|
|
151
|
+
## Composition Best Practices
|
|
152
|
+
|
|
153
|
+
### Layout Composition
|
|
154
|
+
- Use `FlexContainer` with `Column`/`Row` and `gap` for spacing
|
|
155
|
+
- Avoid raw CSS margins except where necessary
|
|
156
|
+
- Prefer component props for spacing, alignment, sizing
|
|
157
|
+
|
|
158
|
+
### Form Composition
|
|
159
|
+
- Wrap form content in `Card` with appropriate padding
|
|
160
|
+
- Use `Column` for vertical field organization
|
|
161
|
+
- Apply consistent spacing with `gap` prop
|
|
162
|
+
- Handle validation with `InlineNotification` components
|
|
163
|
+
|
|
164
|
+
### Accessibility
|
|
165
|
+
- Label all form controls with `Label` component or `label` prop
|
|
166
|
+
- Use appropriate `aria-*` attributes
|
|
167
|
+
- Maintain sensible keyboard navigation order
|
|
168
|
+
- Provide focus indicators and screen reader support
|
|
169
|
+
|
|
170
|
+
### Theme Integration
|
|
171
|
+
- Wrap app with `ThemeProvider` at root level
|
|
172
|
+
- Access theme via `useTheme` hook
|
|
173
|
+
- Use theme values for consistent styling
|
|
174
|
+
- Support theme switching with `setTheme`
|
|
175
|
+
|
|
176
|
+
## Component-Specific Guidelines
|
|
177
|
+
|
|
178
|
+
### Button Usage
|
|
179
|
+
- Use `variant="contained"` for primary actions
|
|
180
|
+
- Use `variant="outlined"` for secondary actions
|
|
181
|
+
- Use `variant="text"` for tertiary actions
|
|
182
|
+
- Apply `fullWidth` in forms on mobile
|
|
183
|
+
- Set `disabled={true}` during validation or async operations
|
|
184
|
+
|
|
185
|
+
### Card Usage
|
|
186
|
+
- Use `padding="16px"` or `"20px"` for comfortable spacing
|
|
187
|
+
- Apply `isBordered={true}` for visual separation
|
|
188
|
+
- Use `variant="horizontal"` for media cards
|
|
189
|
+
- Set `maxWidth` for readable content width
|
|
190
|
+
- Use `overflow="auto"` with `maxHeight` for scrollable content
|
|
191
|
+
|
|
192
|
+
### Typography Usage
|
|
193
|
+
- Use hierarchical variants (h1-h6) for content structure
|
|
194
|
+
- Apply `variant="display"` with size prop for hero text
|
|
195
|
+
- Use `variant="body1"` for primary content
|
|
196
|
+
- Use `variant="caption"` for helper text and metadata
|
|
197
|
+
- Combine with `styleVariant` for emphasis
|
|
198
|
+
|
|
199
|
+
## Output Requirements
|
|
200
|
+
|
|
201
|
+
### Code Output Rules
|
|
202
|
+
- Output ONLY valid React TSX code
|
|
203
|
+
- No markdown fences or extra commentary
|
|
204
|
+
- Import exclusively from `gd-design-library`
|
|
205
|
+
- Use React `useState` for component state
|
|
206
|
+
- Handle forms with `<Form>` and appropriate Input variants
|
|
207
|
+
- Add basic error placeholders and TODO comments for integration points
|
|
208
|
+
|
|
209
|
+
### Styling Guidelines
|
|
210
|
+
- No external CSS files unless strictly necessary
|
|
211
|
+
- Prefer component props and layout primitives
|
|
212
|
+
- Keep imports minimal and from one source
|
|
213
|
+
- Use theme values for consistent styling
|
|
214
|
+
- Apply responsive design with component props
|
|
215
|
+
|
|
216
|
+
## Integration Points
|
|
217
|
+
|
|
218
|
+
### Form Handling
|
|
219
|
+
- Use `Form` component with `onSubmit` handler
|
|
220
|
+
- Collect form data with `FormData` or controlled inputs
|
|
221
|
+
- Handle validation with `InlineNotification` components
|
|
222
|
+
- Provide loading states during submission
|
|
223
|
+
|
|
224
|
+
### State Management
|
|
225
|
+
- Use React `useState` for component state
|
|
226
|
+
- Handle async operations with loading indicators
|
|
227
|
+
- Provide optimistic UI updates where appropriate
|
|
228
|
+
- Manage form validation state
|
|
229
|
+
|
|
230
|
+
### Theme Management
|
|
231
|
+
- Initialize with `ThemeProvider` at app root
|
|
232
|
+
- Access theme values via `useTheme` hook
|
|
233
|
+
- Support theme switching with `setTheme`
|
|
234
|
+
- Store theme preferences in localStorage
|
|
235
|
+
|
|
236
|
+
## Performance Considerations
|
|
237
|
+
|
|
238
|
+
### Component Optimization
|
|
239
|
+
- Use React.memo for performance optimization
|
|
240
|
+
- Combine with context providers for nested scoping
|
|
241
|
+
- Apply theme values with CSS custom properties
|
|
242
|
+
- Use lazy loading for theme switching
|
|
243
|
+
|
|
244
|
+
### Bundle Optimization
|
|
245
|
+
- Import only needed components
|
|
246
|
+
- Use tree-shaking for unused themes
|
|
247
|
+
- Apply build tools for optimization
|
|
248
|
+
- Monitor bundle size impact
|
|
249
|
+
|
|
250
|
+
## Testing & Quality Assurance
|
|
251
|
+
|
|
252
|
+
### Component Testing
|
|
253
|
+
- Test with different theme configurations
|
|
254
|
+
- Verify accessibility compliance
|
|
255
|
+
- Test responsive behavior
|
|
256
|
+
- Validate form interactions
|
|
257
|
+
|
|
258
|
+
### Theme Testing
|
|
259
|
+
- Test theme switching functionality
|
|
260
|
+
- Verify theme inheritance
|
|
261
|
+
- Test with different user preferences
|
|
262
|
+
- Validate theme structure consistency
|
|
263
|
+
|
|
264
|
+
## Future Enhancements
|
|
265
|
+
|
|
266
|
+
### Planned Features
|
|
267
|
+
- Additional component schemas
|
|
268
|
+
- Enhanced composition tips
|
|
269
|
+
- More code generation templates
|
|
270
|
+
- Improved theme management
|
|
271
|
+
- Better accessibility guidelines
|
|
272
|
+
|
|
273
|
+
### Extension Points
|
|
274
|
+
- Custom component schemas
|
|
275
|
+
- Additional prompt builders
|
|
276
|
+
- Theme validation tools
|
|
277
|
+
- Component usage analytics
|
|
278
|
+
- Integration with design tools
|
|
279
|
+
|
|
280
|
+
## Troubleshooting
|
|
281
|
+
|
|
282
|
+
### Common Issues
|
|
283
|
+
1. **Import Errors**: Ensure importing only from `gd-design-library`
|
|
284
|
+
2. **Prop Mismatches**: Check component schemas for correct prop types
|
|
285
|
+
3. **Theme Issues**: Verify `ThemeProvider` is properly configured
|
|
286
|
+
4. **Accessibility**: Ensure proper labeling and ARIA attributes
|
|
287
|
+
|
|
288
|
+
### Debugging Tips
|
|
289
|
+
- Use React DevTools for component inspection
|
|
290
|
+
- Check theme context with `useTheme` hook
|
|
291
|
+
- Validate component props against schemas
|
|
292
|
+
- Test with different theme configurations
|
|
293
|
+
|
|
294
|
+
## Resources
|
|
295
|
+
|
|
296
|
+
### Documentation
|
|
297
|
+
- [AI README](./ai/README.md) - Comprehensive usage instructions and examples
|
|
298
|
+
- Component Storybook: Available in the UI library
|
|
299
|
+
- API Documentation: Generated from component schemas
|
|
300
|
+
- Theme Documentation: Available in theme configuration
|
|
301
|
+
- Accessibility Guidelines: Built into component schemas
|
|
302
|
+
|
|
303
|
+
### Support
|
|
304
|
+
- Component schemas provide comprehensive prop documentation
|
|
305
|
+
- Composition tips offer usage best practices
|
|
306
|
+
- System prompts ensure consistent code generation
|
|
307
|
+
- AI README provides detailed usage instructions and practical examples
|
|
308
|
+
|
|
309
|
+
This AI integration system ensures that all generated code follows the design system's principles, maintains consistency, and provides excellent user experience through proper accessibility and theming support.
|
package/package.json
CHANGED
|
@@ -1,10 +1,19 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "gd-design-library",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.2",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./index.js",
|
|
7
7
|
"types": "./index.d.ts",
|
|
8
|
+
"files": [
|
|
9
|
+
"index.js",
|
|
10
|
+
"index.d.ts",
|
|
11
|
+
"llms.txt",
|
|
12
|
+
"ai/",
|
|
13
|
+
"assets/",
|
|
14
|
+
"chunks/",
|
|
15
|
+
"*.d.ts"
|
|
16
|
+
],
|
|
8
17
|
"sideEffects": [
|
|
9
18
|
"**/*.css",
|
|
10
19
|
"**/*.scss"
|
|
@@ -15,6 +24,15 @@
|
|
|
15
24
|
"types": "./index.d.ts"
|
|
16
25
|
},
|
|
17
26
|
"./styles.css": "./assets/styles.css",
|
|
27
|
+
"./llms.txt": "./llms.txt",
|
|
28
|
+
"./ai": {
|
|
29
|
+
"import": "./ai/index.js",
|
|
30
|
+
"types": "./ai/index.d.ts"
|
|
31
|
+
},
|
|
32
|
+
"./ai/*": {
|
|
33
|
+
"import": "./ai/*.js",
|
|
34
|
+
"types": "./ai/*.d.ts"
|
|
35
|
+
},
|
|
18
36
|
"./*": {
|
|
19
37
|
"import": "./*.js",
|
|
20
38
|
"types": "./*.d.ts"
|
package/CHANGELOG.md
DELETED
|
@@ -1,177 +0,0 @@
|
|
|
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/codegen.js
DELETED
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
function n(e = {}) {
|
|
2
|
-
return `import React, { useState } from 'react';
|
|
3
|
-
import { Form, Input, Button, Typography, FlexContainer, Column, Card, Link } from 'gd-design-library';
|
|
4
|
-
|
|
5
|
-
export default function ${e.componentName || "LoginPage"}() {
|
|
6
|
-
const [form, setForm] = useState({ email: '', password: '', remember: false });
|
|
7
|
-
|
|
8
|
-
const handleSubmit = ({ formData }: any) => {
|
|
9
|
-
console.log('Login submit', formData);
|
|
10
|
-
};
|
|
11
|
-
|
|
12
|
-
return (
|
|
13
|
-
<FlexContainer alignItems="center" justifyContent="center" minHeight="100vh" padding="24px">
|
|
14
|
-
<Card width="360px" padding="24px">
|
|
15
|
-
<Column gap="16px">
|
|
16
|
-
<Typography as="h1" variant="h2">Sign in</Typography>
|
|
17
|
-
<Form onSubmit={handleSubmit}>
|
|
18
|
-
<Column gap="12px">
|
|
19
|
-
<Input variant="email" label="Email" name="email" placeholder="you@example.com" value={form.email} onChange={(e: any) => setForm({ ...form, email: e.target.value })} />
|
|
20
|
-
<Input variant="password" label="Password" name="password" placeholder="••••••••" value={form.password} onChange={(e: any) => setForm({ ...form, password: e.target.value })} />
|
|
21
|
-
<FlexContainer alignItems="center" justifyContent="space-between">
|
|
22
|
-
<FlexContainer alignItems="center" gap="8px">
|
|
23
|
-
<Input variant="checkbox" name="remember" aria-label="Remember me" onChange={(e: any) => setForm({ ...form, remember: !!e.target?.checked })} />
|
|
24
|
-
<Typography variant="small">Remember me</Typography>
|
|
25
|
-
</FlexContainer>
|
|
26
|
-
<Link href="#">Forgot password?</Link>
|
|
27
|
-
</FlexContainer>
|
|
28
|
-
<Button type="submit" fullWidth>Sign in</Button>
|
|
29
|
-
</Column>
|
|
30
|
-
</Form>
|
|
31
|
-
<Typography variant="small">
|
|
32
|
-
Don’t have an account? <Link href="#">Sign up</Link>
|
|
33
|
-
</Typography>
|
|
34
|
-
</Column>
|
|
35
|
-
</Card>
|
|
36
|
-
</FlexContainer>
|
|
37
|
-
);
|
|
38
|
-
}
|
|
39
|
-
`;
|
|
40
|
-
}
|
|
41
|
-
function t(e, a) {
|
|
42
|
-
switch (e) {
|
|
43
|
-
case "login":
|
|
44
|
-
default:
|
|
45
|
-
return n(a);
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
export {
|
|
49
|
-
n as generateLoginPageTSX,
|
|
50
|
-
t as generateUIFromIntent
|
|
51
|
-
};
|
package/ai/prompts.js
DELETED
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { aiComponentsSchema as n, aiPromptGuidelines as i } from "./schemas/components.js";
|
|
2
|
-
const a = (() => {
|
|
3
|
-
const o = n.components.map((e) => `- ${e.name}: ${e.description}`).join(`
|
|
4
|
-
`), r = n.compositionTips.map((e) => `- ${e}`).join(`
|
|
5
|
-
`), t = i.map((e) => `- ${e}`).join(`
|
|
6
|
-
`);
|
|
7
|
-
return ['You are Claude Code acting as a senior React UI engineer. Your job is to output production-grade TSX using the GridKit UI package named "gd-design-library".', "", "Hard requirements:", "- Output ONLY valid TSX/TypeScript React code. Do NOT include markdown fences or extra commentary.", "- Import UI primitives exclusively from 'gd-design-library' (e.g., import { Form, Input, Button, Typography, FlexContainer, Column, Card, Link } from 'gd-design-library').", "- Prefer composition using ALL 46 available components over custom CSS or HTML elements.", "- Always use the appropriate component from the library: FlexContainer, Column, Row, Search, Select, ChatContainer, ChatBubble, Typography, Input, Button, Link, Card, Icon, Image, Breadcrumbs, InlineNotification, InputFile, Form, Label, List, Loader, Modal, Portal, Scroll, Separator, Skeleton, Slider, Snackbar, SnackbarManager, Switch, Toggle, Textarea, Tooltip, Wrapper, Accordion, Avatar, Carousel, ContentCarousel, Counter, Tabs, Stepper, Price, ProgressBar, Rating, DragAndDropFiles, RadioGroup.", "- Ensure accessibility: use Label components for all form controls, aria attributes, keyboard focus order, and sensible defaults.", "- Keep code self-contained as a single React component file where feasible.", "", "Available components (all 46 must be considered for composition):", o, "", "Composition tips:", r, "", "General guidelines:", t, "", "Output rules:", "- No markdown backticks.", "- No external CSS files unless strictly necessary; prefer component props and layout primitives.", "- Keep imports minimal and from one source: gd-design-library.", "- If state is needed, use React useState inside the component.", "- Handle forms with <Form> and Input variants (email, password, checkbox, etc.).", "- Add basic error placeholders and comments where integration points are expected (e.g., TODO: submit handler)."].join(`
|
|
8
|
-
`);
|
|
9
|
-
})();
|
|
10
|
-
function s(o) {
|
|
11
|
-
return [a, "", "Task:", o].join(`
|
|
12
|
-
`);
|
|
13
|
-
}
|
|
14
|
-
function p(o) {
|
|
15
|
-
return s(o);
|
|
16
|
-
}
|
|
17
|
-
const c = "Use gd-design-library for all UI components. Utilize the full range of 46 components including layout primitives (FlexContainer, Column, Grid, Stack), form controls (Form, Input, Select, Checkbox, Radio, Toggle, Label), feedback components (Alert, InlineNotification, Toast, Tooltip), navigation (Link, Tabs, Breadcrumb, Pagination), display components (Card, Table, List, Avatar, Badge, Icon), interactive elements (Button, ButtonGroup, Dropdown, Modal, Drawer, Popover), data visualization (ProgressBar, Spinner, Skeleton), and typography (Typography, Heading). Prefer composition using these primitives over custom CSS. Always ensure proper accessibility with Label components for form controls.";
|
|
18
|
-
export {
|
|
19
|
-
a as CLAUDE_GRIDKIT_SYSTEM_PROMPT,
|
|
20
|
-
s as buildClaudeSystemPrompt,
|
|
21
|
-
p as buildGDLibraryPrompt,
|
|
22
|
-
c as defaultAIPromptIntro
|
|
23
|
-
};
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
const e = {
|
|
2
|
-
name: "Accordion",
|
|
3
|
-
import: "import { Accordion } from 'gd-design-library'",
|
|
4
|
-
description: "Expandable/collapsible content panels component for organizing and displaying hierarchical information with support for single or multiple expanded items, controlled and uncontrolled modes.",
|
|
5
|
-
props: [{
|
|
6
|
-
name: "value",
|
|
7
|
-
type: "string[]",
|
|
8
|
-
description: "Controls which accordion items are expanded (controlled mode)",
|
|
9
|
-
default: []
|
|
10
|
-
}, {
|
|
11
|
-
name: "defaultValue",
|
|
12
|
-
type: "string[]",
|
|
13
|
-
description: "Sets initially expanded items (uncontrolled mode)",
|
|
14
|
-
default: []
|
|
15
|
-
}, {
|
|
16
|
-
name: "onChange",
|
|
17
|
-
type: "(value: string[]) => void",
|
|
18
|
-
description: "Callback when expanded items change"
|
|
19
|
-
}, {
|
|
20
|
-
name: "allowMultipleExpand",
|
|
21
|
-
type: "boolean",
|
|
22
|
-
description: "Allows multiple items to be expanded simultaneously",
|
|
23
|
-
default: !1
|
|
24
|
-
}, {
|
|
25
|
-
name: "children",
|
|
26
|
-
type: "ReactNode",
|
|
27
|
-
description: "Accordion items to be rendered, typically AccordionItem components",
|
|
28
|
-
required: !0
|
|
29
|
-
}],
|
|
30
|
-
examples: ['<Accordion defaultValue={["item1"]} allowMultipleExpand={false}><AccordionItem value="item1" title="Section 1">Content 1</AccordionItem></Accordion>', "<Accordion value={expandedItems} onChange={setExpandedItems} allowMultipleExpand={true}>{accordionItems}</Accordion>", '<Accordion><AccordionItem value="faq1" title="Question 1">Answer 1</AccordionItem><AccordionItem value="faq2" title="Question 2">Answer 2</AccordionItem></Accordion>']
|
|
31
|
-
}, o = ["Use controlled value for syncing expanded state with URL or external state.", "Enable allowMultipleExpand for settings panels where multiple sections can be open.", "Keep titles concise and descriptive; use custom views for rich headers.", "Defer heavy content rendering until expanded for performance.", 'Use Accordion for FAQ sections with defaultValue={["first-question"]} to show the most important question expanded.', "Apply Accordion allowMultipleExpand={true} for content where users might want to compare multiple sections.", "Set Accordion value with controlled mode when expansion state needs to be managed externally or synced with URL.", "Use Accordion onChange to track analytics events for which sections users are most interested in.", "Apply Accordion with single expanded item (allowMultipleExpand={false}) for step-by-step guides or wizards.", "Combine Accordion with Icon components in item titles for visual category indicators.", "Use Accordion defaultValue with multiple items for showing important sections expanded on page load.", "Apply Accordion within Card components for organized settings or preference sections.", "Set Accordion with consistent spacing between items using Column or gap styles.", "Use Accordion for progressive disclosure of complex forms or detailed information.", "Apply Accordion onChange with localStorage to persist user expansion preferences.", "Combine Accordion with InlineNotification inside items for contextual alerts or warnings.", "Use Accordion for nested categorization with Accordion components inside AccordionItem content.", "Apply Accordion with keyboard navigation support (arrow keys) for accessibility.", "Set Accordion value={[]} to programmatically collapse all items when needed.", "Use Accordion with loading skeletons inside items while fetching content.", "Apply Accordion allowMultipleExpand={false} for mobile interfaces to save screen space.", "Combine Accordion with search/filter to highlight and expand matching sections.", "Use Accordion for documentation sections with code examples in expandable items.", "Apply Accordion with smooth height animations for polished expand/collapse transitions.", "Set Accordion with aria-expanded attributes on items for screen reader compatibility.", "Use Accordion in sidebars for collapsible navigation menu categories.", "Apply Accordion with consistent chevron or plus/minus icons for expand indicators.", "Combine Accordion with Badge components in titles to show item counts or status.", "Use Accordion defaultValue based on user role or permissions for personalized experience.", "Apply Accordion with max-height and scroll inside items for very long content.", "Set Accordion onChange to update URL hash for deep-linkable expanded sections.", "Use Accordion for comparison tables where each item contains detailed specifications.", "Apply Accordion with disabled items for locked or premium content sections.", "Combine Accordion with Form components inside items for multi-step form workflows.", "Use Accordion value with useEffect to expand specific items based on route or query params.", "Apply Accordion with consistent title styling using Typography components.", "Set Accordion with print styles to show all content expanded when printing.", "Use Accordion for changelog or release notes with versions as expandable items.", "Apply Accordion allowMultipleExpand based on viewport size (true on desktop, false on mobile).", "Combine Accordion with Tooltip on item titles for additional context without expanding.", "Use Accordion for product features list with detailed descriptions in expandable content.", "Apply Accordion with focus management to move focus to content when item expands.", "Set Accordion with custom expand/collapse icons via AccordionItem props.", "Use Accordion in help centers with categories and subcategories as nested accordions.", "Apply Accordion onChange to trigger animations or lazy-load content when items expand.", "Combine Accordion with tabs for multi-dimensional content organization.", "Use Accordion for terms and conditions with sections as expandable items.", "Apply Accordion with highlighting or scrollIntoView when expanding items programmatically.", "Set Accordion with responsive layout adjusting item padding and font size on mobile.", "Use Accordion for data tables with expandable rows showing detailed information.", "Apply Accordion with consistent animation duration across all expanding/collapsing items.", "Combine Accordion with router integration to maintain expansion state during navigation.", "Use Accordion for configuration panels with grouped settings in expandable sections."], n = {
|
|
32
|
-
component: e,
|
|
33
|
-
compositionTips: o
|
|
34
|
-
};
|
|
35
|
-
export {
|
|
36
|
-
n as default
|
|
37
|
-
};
|