gd-design-library 0.4.0 → 0.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (150) hide show
  1. package/CHANGELOG.md +36 -3
  2. package/assets/icons/cross.d.ts +1 -3
  3. package/assets/icons/cross.js +7 -13
  4. package/assets/icons/favorite.d.ts +1 -3
  5. package/assets/icons/favorite.js +7 -14
  6. package/assets/icons/favorite_outlined.d.ts +1 -3
  7. package/assets/icons/favorite_outlined.js +7 -14
  8. package/assets/icons/keyboard_arrow_down.d.ts +5 -0
  9. package/assets/icons/keyboard_arrow_down.js +10 -0
  10. package/assets/icons/keyboard_arrow_up.d.ts +5 -0
  11. package/assets/icons/keyboard_arrow_up.js +10 -0
  12. package/assets/icons/send.d.ts +5 -0
  13. package/assets/icons/send.js +10 -0
  14. package/assets/icons/toast_success.d.ts +1 -3
  15. package/assets/icons/toast_success.js +9 -15
  16. package/assets/index.d.ts +3 -1
  17. package/assets/styles.css +1 -1
  18. package/components/core/DropdownItem/DropdownItem.d.ts +1 -1
  19. package/components/core/DropdownItem/DropdownItem.js +38 -31
  20. package/components/core/DropdownItem/DropdownItem.types.d.ts +3 -9
  21. package/components/core/DropdownItem/DropdownItemStyled.d.ts +1 -1
  22. package/components/core/Icon/Icon.js +27 -20
  23. package/components/core/Icon/Icon.types.d.ts +4 -0
  24. package/components/core/Icon/constants.d.ts +19 -12
  25. package/components/core/Icon/constants.js +94 -88
  26. package/components/core/Image/Image.js +31 -30
  27. package/components/core/Image/Image.types.d.ts +3 -2
  28. package/components/core/Input/Input.d.ts +1 -1
  29. package/components/core/Input/Input.js +45 -44
  30. package/components/core/Input/Input.types.d.ts +3 -2
  31. package/components/core/Input/InputAdornment/InputAdornmentStyled.js +3 -3
  32. package/components/core/Input/InputHelper/InputHelperStyled.js +3 -3
  33. package/components/core/Input/InputStyled.d.ts +1 -1
  34. package/components/core/Input/InputWrapper/InputWrapper.js +6 -6
  35. package/components/core/Input/InputWrapper/InputWrapperStyled.js +10 -10
  36. package/components/core/Input/InputWrapper/constants.d.ts +0 -1
  37. package/components/core/Input/InputWrapper/constants.js +2 -3
  38. package/components/core/InputFile/InputFile.d.ts +1 -1
  39. package/components/core/InputFile/InputFile.js +21 -21
  40. package/components/core/InputFile/InputFileStyled.d.ts +1 -1
  41. package/components/core/Label/Label.js +22 -21
  42. package/components/core/Label/Label.types.d.ts +3 -3
  43. package/components/core/Label/LabelStyled.d.ts +1 -1
  44. package/components/core/Label/LabelStyled.js +13 -9
  45. package/components/core/Loader/Loader.d.ts +1 -1
  46. package/components/core/Loader/Loader.js +20 -19
  47. package/components/core/Loader/Loader.types.d.ts +2 -1
  48. package/components/core/Loader/LoaderStyled.d.ts +1 -1
  49. package/components/core/Loader/LoaderStyled.js +12 -12
  50. package/components/core/Loader/utils.js +8 -8
  51. package/components/core/Menu/Menu.d.ts +1 -1
  52. package/components/core/Menu/Menu.js +78 -72
  53. package/components/core/Menu/Menu.types.d.ts +3 -6
  54. package/components/core/Modal/Modal.types.d.ts +4 -4
  55. package/components/core/Modal/ModalStyled.js +1 -1
  56. package/components/core/Portal/Portal.d.ts +1 -1
  57. package/components/core/Portal/Portal.js +12 -11
  58. package/components/core/Portal/Portal.types.d.ts +2 -1
  59. package/components/core/Select/Select.d.ts +1 -1
  60. package/components/core/Select/Select.js +112 -115
  61. package/components/core/Select/Select.types.d.ts +20 -20
  62. package/components/core/Select/SelectStyled.js +6 -6
  63. package/components/core/Select/index.d.ts +1 -0
  64. package/components/core/Snackbar/Snackbar.js +25 -23
  65. package/components/core/Snackbar/Snackbar.types.d.ts +2 -1
  66. package/components/core/Snackbar/SnackbarManager.js +9 -9
  67. package/components/core/Snackbar/SnackbarStyled.js +3 -5
  68. package/components/core/Textarea/Textarea.d.ts +1 -1
  69. package/components/core/Textarea/Textarea.js +28 -34
  70. package/components/core/Textarea/Textarea.types.d.ts +1 -19
  71. package/components/core/Textarea/TextareaStyled.d.ts +1 -1
  72. package/components/core/Textarea/TextareaStyled.js +19 -21
  73. package/components/core/Textarea/hooks/useDynamicHeightAdjustment.d.ts +2 -2
  74. package/components/core/Tooltip/Tooltip.d.ts +2 -2
  75. package/components/core/Tooltip/Tooltip.js +45 -33
  76. package/components/core/Tooltip/Tooltip.types.d.ts +11 -11
  77. package/components/core/Tooltip/TooltipStyled.d.ts +2 -2
  78. package/components/core/Tooltip/TooltipStyled.js +10 -9
  79. package/components/core/Tooltip/utils.d.ts +7 -7
  80. package/components/core/Tooltip/utils.js +57 -43
  81. package/components/core/Wrapper/Wrapper.d.ts +1 -1
  82. package/components/core/Wrapper/Wrapper.js +13 -12
  83. package/components/core/Wrapper/Wrapper.types.d.ts +3 -1
  84. package/components/core/Wrapper/WrapperStyled.d.ts +1 -1
  85. package/components/core/Wrapper/WrapperStyled.js +14 -13
  86. package/components/core/types/events.types.d.ts +5 -4
  87. package/components/core/types/index.types.d.ts +0 -1
  88. package/components/domainSpecific/Carousel/CarouselStyled.js +44 -44
  89. package/components/domainSpecific/ContentCarousel/ContentCarousel.js +42 -43
  90. package/components/domainSpecific/Counter/CounterStyled.d.ts +1 -1
  91. package/components/domainSpecific/Counter/CounterStyled.js +17 -18
  92. package/components/domainSpecific/DragAndDropFiles/DragAndDropFiles.d.ts +0 -52
  93. package/components/domainSpecific/ProgressBar/ProgressBar.types.d.ts +1 -2
  94. package/components/domainSpecific/ProgressBar/ProgressBarStyled.js +1 -1
  95. package/components/domainSpecific/Search/Search.d.ts +2 -1
  96. package/components/domainSpecific/Search/Search.js +27 -46
  97. package/components/domainSpecific/Search/Search.types.d.ts +3 -6
  98. package/components/domainSpecific/Search/SearchStyled.d.ts +1 -1
  99. package/components/layout/ChatContainer/ChatContainer.d.ts +2 -25
  100. package/components/layout/ChatContainer/ChatContainer.js +41 -35
  101. package/components/layout/ChatContainer/ChatContainer.types.d.ts +6 -0
  102. package/components/layout/ChatContainer/ChatContainerStyled.js +35 -32
  103. package/components/layout/FlexContainer/FlexContainer.d.ts +1 -1
  104. package/components/layout/FlexContainer/FlexContainer.js +13 -16
  105. package/components/layout/FlexContainer/FlexContainer.types.d.ts +0 -5
  106. package/components/layout/FlexContainer/FlexContainerStyled.d.ts +1 -1
  107. package/components/layout/FlexContainer/FlexContainerStyled.js +14 -20
  108. package/constants/keyboard.d.ts +1 -0
  109. package/constants/keyboard.js +1 -0
  110. package/index.js +303 -296
  111. package/package.json +1 -1
  112. package/stories/Introduction/ThemeJsonPreview.d.ts +3 -1
  113. package/tokens/button.d.ts +19 -4
  114. package/tokens/button.js +119 -65
  115. package/tokens/card.d.ts +1 -5
  116. package/tokens/card.js +5 -9
  117. package/tokens/carousel.d.ts +10 -19
  118. package/tokens/carousel.js +28 -36
  119. package/tokens/chat.d.ts +4 -0
  120. package/tokens/chat.js +27 -23
  121. package/tokens/colors.js +5 -5
  122. package/tokens/constants.js +1 -1
  123. package/tokens/counter.d.ts +13 -6
  124. package/tokens/counter.js +20 -12
  125. package/tokens/defaultTheme.d.ts +69 -40
  126. package/tokens/index.d.ts +59 -36
  127. package/tokens/input.d.ts +0 -1
  128. package/tokens/input.js +42 -43
  129. package/tokens/inputfile.d.ts +7 -1
  130. package/tokens/inputfile.js +11 -5
  131. package/tokens/label.d.ts +1 -0
  132. package/tokens/label.js +4 -3
  133. package/tokens/loader.d.ts +3 -1
  134. package/tokens/loader.js +3 -1
  135. package/tokens/modal.d.ts +3 -1
  136. package/tokens/modal.js +12 -10
  137. package/tokens/select.d.ts +1 -0
  138. package/tokens/select.js +20 -18
  139. package/tokens/snackbar.d.ts +1 -1
  140. package/tokens/snackbar.js +1 -1
  141. package/tokens/tabs.d.ts +2 -0
  142. package/tokens/tabs.js +11 -9
  143. package/tokens/tooltip.d.ts +4 -3
  144. package/tokens/tooltip.js +7 -8
  145. package/tokens/values.d.ts +3 -0
  146. package/tokens/values.js +5 -2
  147. package/assets/icons/keyboard-arrow-down.d.ts +0 -7
  148. package/assets/icons/keyboard-arrow-down.js +0 -12
  149. package/components/core/types/common.types.d.ts +0 -2
  150. package/components/domainSpecific/Search/renderers.d.ts +0 -4
package/CHANGELOG.md CHANGED
@@ -51,7 +51,7 @@
51
51
 
52
52
  ---
53
53
 
54
- ## [1.2.0] - 2025-06-12
54
+ ## [0.2.0] - 2025-06-12
55
55
 
56
56
  ### Added
57
57
 
@@ -72,7 +72,7 @@
72
72
 
73
73
  - Deprecated `LegacyBanner` component (removed in v1.2.0)
74
74
 
75
- ## [1.3.0] - 2025-07-14
75
+ ## [0.3.0] - 2025-07-14
76
76
 
77
77
  ### Features
78
78
 
@@ -116,7 +116,7 @@ This release delivers major enhancements to the chat system, full Emotion adopti
116
116
  comprehensive documentation updates. The refactor improves maintainability, while new features like AI integration and
117
117
  drag-and-drop elevate component capabilities.
118
118
 
119
- ## [1.4.0] - 2025-08-18
119
+ ## [0.4.0] - 2025-08-18
120
120
 
121
121
  ### New Features
122
122
 
@@ -142,3 +142,36 @@ drag-and-drop elevate component capabilities.
142
142
  - Eliminated console warnings in app.tsx and removed unused code
143
143
  - Fixed hardcoded Google API key by adding environment variable support
144
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
@@ -1,7 +1,5 @@
1
- export declare const CrossIcon: ({ width, height, fillSvg, fill, ...rest }: {
1
+ export declare const CrossIcon: ({ fillSvg, fill, ...rest }: {
2
2
  [x: string]: any;
3
- width?: number | undefined;
4
- height?: number | undefined;
5
3
  fillSvg?: string | undefined;
6
4
  fill?: string | undefined;
7
5
  }) => import("@emotion/react/jsx-runtime").JSX.Element;
@@ -1,16 +1,10 @@
1
1
  "use client";
2
- import { jsx as t } from "@emotion/react/jsx-runtime";
3
- import { icon as s } from "../../tokens/icon.js";
4
- const {
5
- width: n,
6
- height: h
7
- } = s.size.xs, d = ({
8
- width: o = n,
9
- height: e = h,
10
- fillSvg: i = "none",
11
- fill: L = "currentColor",
12
- ...r
13
- }) => /* @__PURE__ */ t("svg", { width: o, height: e, viewBox: "0 0 14 14", fill: i, xmlns: "http://www.w3.org/2000/svg", ...r, children: /* @__PURE__ */ t("path", { d: "M14 1.41L12.59 0L7 5.59L1.41 0L0 1.41L5.59 7L0 12.59L1.41 14L7 8.41L12.59 14L14 12.59L8.41 7L14 1.41Z", fill: L }) });
2
+ import { jsx as L } from "@emotion/react/jsx-runtime";
3
+ const t = ({
4
+ fillSvg: o = "none",
5
+ fill: r = "currentColor",
6
+ ...n
7
+ }) => /* @__PURE__ */ L("svg", { viewBox: "0 0 14 14", fill: o, xmlns: "http://www.w3.org/2000/svg", ...n, children: /* @__PURE__ */ L("path", { d: "M14 1.41L12.59 0L7 5.59L1.41 0L0 1.41L5.59 7L0 12.59L1.41 14L7 8.41L12.59 14L14 12.59L8.41 7L14 1.41Z", fill: r }) });
14
8
  export {
15
- d as CrossIcon
9
+ t as CrossIcon
16
10
  };
@@ -1,7 +1,5 @@
1
- export declare const FavoriteIcon: ({ width, height, fillSvg, fill, ...rest }: {
1
+ export declare const FavoriteIcon: ({ fillSvg, fill, ...rest }: {
2
2
  [x: string]: any;
3
- width?: number | undefined;
4
- height?: number | undefined;
5
3
  fillSvg?: string | undefined;
6
4
  fill?: string | undefined;
7
5
  }) => import("@emotion/react/jsx-runtime").JSX.Element;
@@ -1,17 +1,10 @@
1
1
  "use client";
2
- import { jsx as t } from "@emotion/react/jsx-runtime";
3
- import { icon as h } from "../../tokens/icon.js";
4
- import { SizeVariant as l } from "../../types/common.js";
5
- const {
6
- width: m,
7
- height: s
8
- } = h.size[l.Sm], d = ({
9
- width: o = m,
10
- height: i = s,
11
- fillSvg: e = "none",
12
- fill: r = "currentColor",
13
- ...n
14
- }) => /* @__PURE__ */ t("svg", { width: o, height: i, viewBox: "0 0 24 24", fill: e, xmlns: "http://www.w3.org/2000/svg", ...n, children: /* @__PURE__ */ t("path", { d: "M13.3499 20.13C12.5899 20.82 11.4199 20.82 10.6599 20.12L10.5499 20.02C5.29991 15.27 1.86991 12.16 1.99991 8.27998C2.05991 6.57998 2.92991 4.94998 4.33991 3.98998C6.97991 2.18998 10.2399 3.02998 11.9999 5.08998C13.7599 3.02998 17.0199 2.17998 19.6599 3.98998C21.0699 4.94998 21.9399 6.57998 21.9999 8.27998C22.1399 12.16 18.6999 15.27 13.4499 20.04L13.3499 20.13Z", fill: r }) });
2
+ import { jsx as o } from "@emotion/react/jsx-runtime";
3
+ const C = ({
4
+ fillSvg: r = "none",
5
+ fill: t = "currentColor",
6
+ ...e
7
+ }) => /* @__PURE__ */ o("svg", { viewBox: "0 0 20 19", fill: r, xmlns: "http://www.w3.org/2000/svg", ...e, children: /* @__PURE__ */ o("path", { d: "M10 18.35L8.55 17.03C3.4 12.36 0 9.28 0 5.5C0 2.42 2.42 0 5.5 0C7.24 0 8.91 0.81 10 2.09C11.09 0.81 12.76 0 14.5 0C17.58 0 20 2.42 20 5.5C20 9.28 16.6 12.36 11.45 17.04L10 18.35Z", fill: t }) });
15
8
  export {
16
- d as FavoriteIcon
9
+ C as FavoriteIcon
17
10
  };
@@ -1,7 +1,5 @@
1
- export declare const FavoriteOutlinedIcon: ({ width, height, fillSvg, fill, ...rest }: {
1
+ export declare const FavoriteOutlinedIcon: ({ fillSvg, fill, ...rest }: {
2
2
  [x: string]: any;
3
- width?: number | undefined;
4
- height?: number | undefined;
5
3
  fillSvg?: string | undefined;
6
4
  fill?: string | undefined;
7
5
  }) => import("@emotion/react/jsx-runtime").JSX.Element;
@@ -1,17 +1,10 @@
1
1
  "use client";
2
- import { jsx as t } from "@emotion/react/jsx-runtime";
3
- import { icon as n } from "../../tokens/icon.js";
4
- import { SizeVariant as l } from "../../types/common.js";
5
- const {
6
- width: h,
7
- height: m
8
- } = n.size[l.Sm], a = ({
9
- width: i = h,
10
- height: o = m,
11
- fillSvg: e = "none",
12
- fill: r = "currentColor",
13
- ...C
14
- }) => /* @__PURE__ */ t("svg", { xmlns: "http://www.w3.org/2000/svg", width: i, height: o, viewBox: "0 0 24 24", fill: e, ...C, children: /* @__PURE__ */ t("path", { d: "M10.9997 2C9.83967 2 8.72634 2.54 7.99967 3.39333C7.27301 2.54 6.15967 2 4.99967 2C2.94634 2 1.33301 3.61333 1.33301 5.66667C1.33301 8.18667 3.59967 10.24 7.03301 13.36L7.99967 14.2333L8.96634 13.3533C12.3997 10.24 14.6663 8.18667 14.6663 5.66667C14.6663 3.61333 13.053 2 10.9997 2ZM8.06634 12.3667L7.99967 12.4333L7.93301 12.3667C4.75967 9.49333 2.66634 7.59333 2.66634 5.66667C2.66634 4.33333 3.66634 3.33333 4.99967 3.33333C6.02634 3.33333 7.02634 3.99333 7.37967 4.90667H8.62634C8.97301 3.99333 9.97301 3.33333 10.9997 3.33333C12.333 3.33333 13.333 4.33333 13.333 5.66667C13.333 7.59333 11.2397 9.49333 8.06634 12.3667Z", fill: r }) });
2
+ import { jsx as C } from "@emotion/react/jsx-runtime";
3
+ const r = ({
4
+ fillSvg: o = "none",
5
+ fill: t = "currentColor",
6
+ ...e
7
+ }) => /* @__PURE__ */ C("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 20 19", fill: o, ...e, children: /* @__PURE__ */ C("path", { d: "M14.5 0C12.76 0 11.09 0.81 10 2.09C8.91 0.81 7.24 0 5.5 0C2.42 0 0 2.42 0 5.5C0 9.28 3.4 12.36 8.55 17.04L10 18.35L11.45 17.03C16.6 12.36 20 9.28 20 5.5C20 2.42 17.58 0 14.5 0ZM10.1 15.55L10 15.65L9.9 15.55C5.14 11.24 2 8.39 2 5.5C2 3.5 3.5 2 5.5 2C7.04 2 8.54 2.99 9.07 4.36H10.94C11.46 2.99 12.96 2 14.5 2C16.5 2 18 3.5 18 5.5C18 8.39 14.86 11.24 10.1 15.55Z", fill: t }) });
15
8
  export {
16
- a as FavoriteOutlinedIcon
9
+ r as FavoriteOutlinedIcon
17
10
  };
@@ -0,0 +1,5 @@
1
+ export declare const KeyboardArrowDown: ({ fillSvg, fill, ...rest }: {
2
+ [x: string]: any;
3
+ fillSvg?: string | undefined;
4
+ fill?: string | undefined;
5
+ }) => import("@emotion/react/jsx-runtime").JSX.Element;
@@ -0,0 +1,10 @@
1
+ "use client";
2
+ import { jsx as o } from "@emotion/react/jsx-runtime";
3
+ const w = ({
4
+ fillSvg: r = "none",
5
+ fill: e = "currentColor",
6
+ ...n
7
+ }) => /* @__PURE__ */ o("svg", { viewBox: "0 0 12 8", fill: r, xmlns: "http://www.w3.org/2000/svg", ...n, children: /* @__PURE__ */ o("path", { d: "M1.41 0.590088L6 5.17009L10.59 0.590088L12 2.00009L6 8.00009L0 2.00009L1.41 0.590088Z", fill: e }) });
8
+ export {
9
+ w as KeyboardArrowDown
10
+ };
@@ -0,0 +1,5 @@
1
+ export declare const KeyboardArrowUp: ({ fillSvg, fill, ...rest }: {
2
+ [x: string]: any;
3
+ fillSvg?: string | undefined;
4
+ fill?: string | undefined;
5
+ }) => import("@emotion/react/jsx-runtime").JSX.Element;
@@ -0,0 +1,10 @@
1
+ "use client";
2
+ import { jsx as o } from "@emotion/react/jsx-runtime";
3
+ const l = ({
4
+ fillSvg: r = "none",
5
+ fill: e = "currentColor",
6
+ ...t
7
+ }) => /* @__PURE__ */ o("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 12 8", fill: r, ...t, children: /* @__PURE__ */ o("path", { d: "M1.41 7.41L6 2.83L10.59 7.41L12 6L6 0L0 6L1.41 7.41Z", fill: e }) });
8
+ export {
9
+ l as KeyboardArrowUp
10
+ };
@@ -0,0 +1,5 @@
1
+ export declare const Send: ({ fillSvg, fill, ...rest }: {
2
+ [x: string]: any;
3
+ fillSvg?: string | undefined;
4
+ fill?: string | undefined;
5
+ }) => import("@emotion/react/jsx-runtime").JSX.Element;
@@ -0,0 +1,10 @@
1
+ "use client";
2
+ import { jsx as o } from "@emotion/react/jsx-runtime";
3
+ const l = ({
4
+ fillSvg: e = "none",
5
+ fill: n = "currentColor",
6
+ ...r
7
+ }) => /* @__PURE__ */ o("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 21 18", fill: e, ...r, children: /* @__PURE__ */ o("path", { d: "M0.00999999 18L21 9L0.00999999 0L0 7L15 9L0 11L0.00999999 18Z", fill: n }) });
8
+ export {
9
+ l as Send
10
+ };
@@ -1,7 +1,5 @@
1
- export declare const ToastSuccessIcon: ({ width, height, fillSvg, fill, ...rest }: {
1
+ export declare const ToastSuccessIcon: ({ fillSvg, fill, ...rest }: {
2
2
  [x: string]: any;
3
- width?: number | undefined;
4
- height?: number | undefined;
5
3
  fillSvg?: string | undefined;
6
4
  fill?: string | undefined;
7
5
  }) => import("@emotion/react/jsx-runtime").JSX.Element;
@@ -1,20 +1,14 @@
1
1
  "use client";
2
- import { jsxs as H, jsx as C } from "@emotion/react/jsx-runtime";
3
- import { icon as V } from "../../tokens/icon.js";
4
- const {
5
- width: i,
6
- height: c
7
- } = V.size.lg, n = ({
8
- width: L = i,
9
- height: o = c,
10
- fillSvg: e = "none",
11
- fill: t = "currentColor",
12
- ...s
13
- }) => /* @__PURE__ */ H("svg", { width: L, height: o, viewBox: "0 0 24 24", fill: e, xmlns: "http://www.w3.org/2000/svg", ...s, children: [
14
- /* @__PURE__ */ C("path", { d: "M12 2C6.48 2 2 6.48 2 12C2 17.52 6.48 22 12 22C17.52 22 22 17.52 22 12C22 6.48 17.52 2 12 2ZM9.29 16.29L5.7 12.7C5.31 12.31 5.31 11.68 5.7 11.29C6.09 10.9 6.72 10.9 7.11 11.29L10 14.17L16.88 7.29C17.27 6.9 17.9 6.9 18.29 7.29C18.68 7.68 18.68 8.31 18.29 8.7L10.7 16.29C10.32 16.68 9.68 16.68 9.29 16.29Z", fill: t }),
2
+ import { jsxs as o, jsx as C } from "@emotion/react/jsx-runtime";
3
+ const t = ({
4
+ fillSvg: V = "none",
5
+ fill: L = "currentColor",
6
+ ...H
7
+ }) => /* @__PURE__ */ o("svg", { viewBox: "0 0 24 24", fill: V, xmlns: "http://www.w3.org/2000/svg", ...H, children: [
8
+ /* @__PURE__ */ C("path", { d: "M12 2C6.48 2 2 6.48 2 12C2 17.52 6.48 22 12 22C17.52 22 22 17.52 22 12C22 6.48 17.52 2 12 2ZM9.29 16.29L5.7 12.7C5.31 12.31 5.31 11.68 5.7 11.29C6.09 10.9 6.72 10.9 7.11 11.29L10 14.17L16.88 7.29C17.27 6.9 17.9 6.9 18.29 7.29C18.68 7.68 18.68 8.31 18.29 8.7L10.7 16.29C10.32 16.68 9.68 16.68 9.29 16.29Z", fill: L }),
15
9
  /* @__PURE__ */ C("path", { d: "M39.35 7.326L39.154 8.796H36.634V17H34.772V8.796H32.168V7.326H39.35ZM42.2938 9.594V17H40.5018V9.594H42.2938ZM41.3838 5.842C41.7198 5.842 41.9905 5.94933 42.1958 6.164C42.4105 6.36933 42.5178 6.626 42.5178 6.934C42.5178 7.242 42.4105 7.49867 42.1958 7.704C41.9905 7.90933 41.7198 8.012 41.3838 8.012C41.0572 8.012 40.7865 7.90933 40.5718 7.704C40.3665 7.49867 40.2638 7.242 40.2638 6.934C40.2638 6.626 40.3665 6.36933 40.5718 6.164C40.7865 5.94933 41.0572 5.842 41.3838 5.842ZM48.695 16.65C48.4337 16.8367 48.1397 16.9767 47.813 17.07C47.4957 17.1633 47.169 17.21 46.833 17.21C46.105 17.2007 45.5497 16.9953 45.167 16.594C44.7937 16.1833 44.607 15.5813 44.607 14.788V10.882H43.445V9.594H44.607V7.956L46.399 7.746V9.594H48.121L47.939 10.882H46.399V14.746C46.399 15.11 46.4597 15.3713 46.581 15.53C46.7117 15.6887 46.9123 15.768 47.183 15.768C47.4537 15.768 47.7477 15.6793 48.065 15.502L48.695 16.65ZM51.3163 17.21C50.7469 17.21 50.2989 17.0467 49.9723 16.72C49.6549 16.384 49.4963 15.9127 49.4963 15.306V6.626L51.2883 6.43V15.25C51.2883 15.5953 51.4283 15.768 51.7083 15.768C51.8483 15.768 51.9883 15.7447 52.1283 15.698L52.5063 16.958C52.1329 17.126 51.7363 17.21 51.3163 17.21ZM59.7028 13.122C59.7028 13.2153 59.6888 13.458 59.6608 13.85H55.0128C55.0688 14.5687 55.2555 15.082 55.5728 15.39C55.8902 15.698 56.3102 15.852 56.8328 15.852C57.1595 15.852 57.4675 15.8007 57.7568 15.698C58.0462 15.586 58.3542 15.418 58.6808 15.194L59.4228 16.216C58.6015 16.8787 57.6868 17.21 56.6788 17.21C55.5495 17.21 54.6768 16.8647 54.0608 16.174C53.4542 15.4833 53.1508 14.5407 53.1508 13.346C53.1508 12.59 53.2815 11.9133 53.5428 11.316C53.8042 10.7093 54.1822 10.238 54.6768 9.902C55.1715 9.55667 55.7595 9.384 56.4408 9.384C57.4768 9.384 58.2795 9.71533 58.8488 10.378C59.4182 11.0313 59.7028 11.946 59.7028 13.122ZM57.9248 12.604C57.9248 11.3067 57.4442 10.658 56.4828 10.658C56.0442 10.658 55.6988 10.8213 55.4468 11.148C55.2042 11.4653 55.0595 11.9787 55.0128 12.688H57.9248V12.604Z", fill: "black" }),
16
- /* @__PURE__ */ C("path", { d: "M298.2 3.80665C297.94 3.54665 297.52 3.54665 297.26 3.80665L294 7.05998L290.74 3.79998C290.48 3.53998 290.06 3.53998 289.8 3.79998C289.54 4.05998 289.54 4.47998 289.8 4.73998L293.06 7.99998L289.8 11.26C289.54 11.52 289.54 11.94 289.8 12.2C290.06 12.46 290.48 12.46 290.74 12.2L294 8.93998L297.26 12.2C297.52 12.46 297.94 12.46 298.2 12.2C298.46 11.94 298.46 11.52 298.2 11.26L294.94 7.99998L298.2 4.73998C298.453 4.48665 298.453 4.05998 298.2 3.80665Z", fill: t })
10
+ /* @__PURE__ */ C("path", { d: "M298.2 3.80665C297.94 3.54665 297.52 3.54665 297.26 3.80665L294 7.05998L290.74 3.79998C290.48 3.53998 290.06 3.53998 289.8 3.79998C289.54 4.05998 289.54 4.47998 289.8 4.73998L293.06 7.99998L289.8 11.26C289.54 11.52 289.54 11.94 289.8 12.2C290.06 12.46 290.48 12.46 290.74 12.2L294 8.93998L297.26 12.2C297.52 12.46 297.94 12.46 298.2 12.2C298.46 11.94 298.46 11.52 298.2 11.26L294.94 7.99998L298.2 4.73998C298.453 4.48665 298.453 4.05998 298.2 3.80665Z", fill: L })
17
11
  ] });
18
12
  export {
19
- n as ToastSuccessIcon
13
+ t as ToastSuccessIcon
20
14
  };
package/assets/index.d.ts CHANGED
@@ -28,7 +28,7 @@ export { FilterIcon } from './icons/filter';
28
28
  export { RulerIcon } from './icons/ruler';
29
29
  export { ProcessingIcon } from './icons/processing';
30
30
  export { PaymentCardIcon } from './icons/paymentCard';
31
- export { KeyboardArrowDownIcon } from './icons/keyboard-arrow-down';
31
+ export { KeyboardArrowDown } from './icons/keyboard_arrow_down';
32
32
  export { EyeIcon } from './icons/eye';
33
33
  export { UploadIcon } from './icons/upload';
34
34
  export { SearchIcon } from './icons/search';
@@ -42,3 +42,5 @@ export { ContentCopyIcon } from './icons/content-copy';
42
42
  export { ThumbUpIcon } from './icons/thumb-up';
43
43
  export { ThumbDownIcon } from './icons/thumb-down';
44
44
  export { FileCopyIcon } from './icons/file-copy';
45
+ export { KeyboardArrowUp } from './icons/keyboard_arrow_up';
46
+ export { Send } from './icons/send';
package/assets/styles.css CHANGED
@@ -1 +1 @@
1
- @import"https://fonts.googleapis.com/css2?family=Fira+Sans:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap";*{margin:0;padding:0;box-sizing:border-box}html,body{height:100%;font-family:Fira Sans,sans-serif;line-height:1.6}ol,ul{list-style:none}table{border-collapse:collapse}img{max-width:100%;height:auto;display:block}a{text-decoration:none;color:inherit}
1
+ @import"https://fonts.googleapis.com/css2?family=Fira+Sans:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap";*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid}html{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;tab-size:4;font-family:Fira Sans,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji"}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;font-weight:inherit;line-height:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,[type=button],[type=reset],[type=submit]{-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}textarea{resize:vertical}input::placeholder,textarea::placeholder{opacity:1}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]{display:none}
@@ -1,2 +1,2 @@
1
- import { DropdownItemProps } from './DropdownItem.types';
1
+ import { DropdownItemProps } from '.';
2
2
  export declare const DropdownItem: import('react').ForwardRefExoticComponent<DropdownItemProps<unknown> & import('react').RefAttributes<HTMLDivElement>>;
@@ -1,38 +1,45 @@
1
1
  "use client";
2
- import { jsx as S } from "@emotion/react/jsx-runtime";
3
- import { forwardRef as h, useMemo as v, useCallback as x } from "react";
4
- import { KEYBOARD_KEYS as y } from "../../../constants/keyboard.js";
5
- import { COMPONENT_NAME as f } from "./constants.js";
6
- import { DropdownItemStyled as I } from "./DropdownItemStyled.js";
7
- import { useSelectContext as C } from "../Select/hooks/useSelectContext.js";
8
- import { useTheme as K } from "../../../hooks/useTheme/useTheme.js";
9
- import { TabIndex as a } from "../../../types/accesability.js";
10
- const T = h((u, p) => {
2
+ import { jsx as E } from "@emotion/react/jsx-runtime";
3
+ import { forwardRef as x, useMemo as I, useCallback as u } from "react";
4
+ import { KEYBOARD_KEYS as O } from "../../../constants/keyboard.js";
5
+ import { COMPONENT_NAME as D } from "./constants.js";
6
+ import { DropdownItemStyled as v } from "./DropdownItemStyled.js";
7
+ import { useSelectContext as K } from "../Select/hooks/useSelectContext.js";
8
+ import { useTheme as T } from "../../../hooks/useTheme/useTheme.js";
9
+ import { TabIndex as p } from "../../../types/accesability.js";
10
+ const k = x((S, N) => {
11
11
  const {
12
- children: D,
13
- value: r,
14
- onSelect: n,
15
- customClass: o,
16
- disabled: t,
17
- ...b
18
- } = u, {
19
- theme: w
20
- } = K(), {
12
+ children: y,
13
+ value: n,
21
14
  onSelect: i,
22
- value: s,
15
+ className: o,
16
+ disabled: e,
17
+ name: d,
18
+ ...b
19
+ } = S, {
20
+ theme: h
21
+ } = T(), {
22
+ onSelect: s,
23
+ value: l,
23
24
  itemIdentifier: m
24
- } = C(), c = s !== void 0 && m ? m(s, r) : o == null ? void 0 : o.includes("active"), E = v(() => `${o || ""} ${c ? "active" : ""}`, [o, c]), d = x((e, l) => {
25
- if (!t)
26
- return n ? n({
27
- event: e,
28
- value: l
29
- }) : i && i(e, l), l;
30
- }, [n, i, t]), N = (e) => {
31
- t || e.key === y.ENTER && (e.preventDefault(), d(e, r));
32
- };
33
- return /* @__PURE__ */ S(I, { ref: p, theme: w, $disabled: t, tabIndex: t ? a.Disabled : a.Default, "data-testid": f, className: E, onClick: (e) => d(e, r), onKeyDown: N, ...b, children: D });
25
+ } = K(), r = {
26
+ name: d,
27
+ value: n
28
+ }, c = JSON.stringify(r), f = l !== void 0 && m ? m(l, r) : o == null ? void 0 : o.includes("active"), w = I(() => `${o || ""} ${f ? "active" : ""}`, [o, f]), a = u((t) => {
29
+ if (!e)
30
+ return i ? i({
31
+ event: t,
32
+ data: r
33
+ }) : s && s({
34
+ event: t,
35
+ data: r
36
+ }), n;
37
+ }, [i, s, c, JSON.stringify(n), e]), C = u((t) => {
38
+ e || t.key === O.ENTER && (t.preventDefault(), a(t));
39
+ }, [a, e, c]);
40
+ return /* @__PURE__ */ E(v, { ref: N, theme: h, $disabled: e, tabIndex: e ? p.Disabled : p.Default, "data-testid": D, className: w, onClick: a, onKeyDown: C, ...b, children: y || d });
34
41
  });
35
- T.displayName = f;
42
+ k.displayName = D;
36
43
  export {
37
- T as DropdownItem
44
+ k as DropdownItem
38
45
  };
@@ -1,14 +1,8 @@
1
- import { PropsWithChildren } from 'react';
2
- import { OnSelectProps, CommonCssComponentStyledProps } from '../..';
3
- import { Theme } from '../../../hooks';
4
- export interface DropdownItemProps<T> extends PropsWithChildren {
5
- theme?: Theme;
6
- onSelect?: (props: OnSelectProps) => T;
1
+ import { SelectProps, CommonCssComponentStyledProps } from '../..';
2
+ export interface DropdownItemProps<T> extends Partial<Pick<SelectProps<T>, 'styles' | 'onSelect' | 'children' | 'className'>> {
3
+ name?: string;
7
4
  disabled?: boolean;
8
5
  value?: unknown;
9
- itemIndex?: number;
10
- name?: string;
11
- customClass?: string;
12
6
  }
13
7
  export interface DropdownItemStyledProps extends CommonCssComponentStyledProps {
14
8
  $disabled?: boolean;
@@ -1,2 +1,2 @@
1
- import { DropdownItemStyledProps } from './DropdownItem.types';
1
+ import { DropdownItemStyledProps } from './';
2
2
  export declare const DropdownItemStyled: import('react').ForwardRefExoticComponent<Omit<DropdownItemStyledProps, "ref"> & import('react').RefAttributes<HTMLDivElement>>;
@@ -1,33 +1,40 @@
1
1
  "use client";
2
- import { jsx as d } from "@emotion/react/jsx-runtime";
3
- import { forwardRef as p } from "react";
4
- import { IconsList as g, COMPONENT_NAME as l } from "./constants.js";
5
- import { useTheme as h } from "../../../hooks/useTheme/useTheme.js";
2
+ import { jsx as h } from "@emotion/react/jsx-runtime";
3
+ import { forwardRef as S } from "react";
4
+ import { IconsList as $, COMPONENT_NAME as l } from "./constants.js";
5
+ import { useTheme as L } from "../../../hooks/useTheme/useTheme.js";
6
6
  import { get as n } from "../../../utils/helpers.js";
7
- let r = {};
8
- const x = (o) => {
9
- r = {
10
- ...r,
7
+ let i = {};
8
+ const M = (o) => {
9
+ i = {
10
+ ...i,
11
11
  ...o
12
12
  };
13
- }, $ = p((o, m) => {
13
+ }, N = S((o, m) => {
14
14
  const {
15
15
  name: t,
16
- width: f,
17
- height: u,
16
+ width: f = 18,
17
+ height: u = 18,
18
18
  fill: s,
19
19
  fillSvg: e,
20
- ...I
20
+ size: I,
21
+ ...a
21
22
  } = o, {
22
- theme: a
23
- } = h(), i = n(a, "colors", {}), c = {
24
- ...g,
25
- ...r
23
+ theme: d
24
+ } = L(), {
25
+ icon: p,
26
+ colors: r
27
+ } = d || {}, g = n(p, ["size", I], {
28
+ width: f,
29
+ height: u
30
+ }), c = {
31
+ ...$,
32
+ ...i
26
33
  }[t];
27
- return c ? /* @__PURE__ */ d(c, { ref: m, "data-testid": `${l}-${t}`, width: f, height: u, fill: s && n(i, s, s), fillSvg: e && n(i, e, e), ...I }) : (console.warn(`Icon "${String(t)}" not found.`), null);
34
+ return c ? /* @__PURE__ */ h(c, { ref: m, "data-testid": `${l}-${t}`, fill: s && n(r, s, s), fillSvg: e && n(r, e, e), ...g, ...a }) : (console.warn(`Icon "${String(t)}" not found.`), null);
28
35
  });
29
- $.displayName = l;
36
+ N.displayName = l;
30
37
  export {
31
- $ as Icon,
32
- x as registerCustomIcons
38
+ N as Icon,
39
+ M as registerCustomIcons
33
40
  };
@@ -1,7 +1,11 @@
1
+ import { MouseEventHandler } from 'react';
2
+ import { EnumOrPrimitive, SizeVariant } from '../../../types';
1
3
  export interface IconProps {
2
4
  name: string;
3
5
  width?: number;
4
6
  height?: number;
5
7
  fill?: string;
6
8
  fillSvg?: string;
9
+ onClick?: MouseEventHandler<SVGElement>;
10
+ size?: EnumOrPrimitive<SizeVariant>;
7
11
  }
@@ -1,15 +1,11 @@
1
1
  export declare const IconsList: {
2
- cross: ({ width, height, fillSvg, fill, ...rest }: {
2
+ cross: ({ fillSvg, fill, ...rest }: {
3
3
  [x: string]: any;
4
- width?: number | undefined;
5
- height?: number | undefined;
6
4
  fillSvg?: string | undefined;
7
5
  fill?: string | undefined;
8
6
  }) => import("@emotion/react/jsx-runtime").JSX.Element;
9
- success: ({ width, height, fillSvg, fill, ...rest }: {
7
+ success: ({ fillSvg, fill, ...rest }: {
10
8
  [x: string]: any;
11
- width?: number | undefined;
12
- height?: number | undefined;
13
9
  fillSvg?: string | undefined;
14
10
  fill?: string | undefined;
15
11
  }) => import("@emotion/react/jsx-runtime").JSX.Element;
@@ -103,17 +99,13 @@ export declare const IconsList: {
103
99
  fillSvg?: string | undefined;
104
100
  fill?: string | undefined;
105
101
  }) => import("@emotion/react/jsx-runtime").JSX.Element;
106
- favorite: ({ width, height, fillSvg, fill, ...rest }: {
102
+ favorite: ({ fillSvg, fill, ...rest }: {
107
103
  [x: string]: any;
108
- width?: number | undefined;
109
- height?: number | undefined;
110
104
  fillSvg?: string | undefined;
111
105
  fill?: string | undefined;
112
106
  }) => import("@emotion/react/jsx-runtime").JSX.Element;
113
- favoriteOutlined: ({ width, height, fillSvg, fill, ...rest }: {
107
+ favoriteOutlined: ({ fillSvg, fill, ...rest }: {
114
108
  [x: string]: any;
115
- width?: number | undefined;
116
- height?: number | undefined;
117
109
  fillSvg?: string | undefined;
118
110
  fill?: string | undefined;
119
111
  }) => import("@emotion/react/jsx-runtime").JSX.Element;
@@ -300,5 +292,20 @@ export declare const IconsList: {
300
292
  fillSvg?: string | undefined;
301
293
  fill?: string | undefined;
302
294
  }) => import("@emotion/react/jsx-runtime").JSX.Element;
295
+ keyboardArrowDown: ({ fillSvg, fill, ...rest }: {
296
+ [x: string]: any;
297
+ fillSvg?: string | undefined;
298
+ fill?: string | undefined;
299
+ }) => import("@emotion/react/jsx-runtime").JSX.Element;
300
+ keyboardArrowUp: ({ fillSvg, fill, ...rest }: {
301
+ [x: string]: any;
302
+ fillSvg?: string | undefined;
303
+ fill?: string | undefined;
304
+ }) => import("@emotion/react/jsx-runtime").JSX.Element;
305
+ send: ({ fillSvg, fill, ...rest }: {
306
+ [x: string]: any;
307
+ fillSvg?: string | undefined;
308
+ fill?: string | undefined;
309
+ }) => import("@emotion/react/jsx-runtime").JSX.Element;
303
310
  };
304
311
  export declare const COMPONENT_NAME = "Icon";