gd-design-library 1.0.2 → 1.2.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 (230) hide show
  1. package/README.md +2 -2
  2. package/ai/README.md +210 -16
  3. package/ai/schemas/components/Accordion.d.ts +84 -0
  4. package/ai/schemas/components/Button.d.ts +12 -0
  5. package/ai/schemas/components/ChatContainer.d.ts +0 -8
  6. package/ai/schemas/components/Column.d.ts +5 -5
  7. package/ai/schemas/components/InputFile.d.ts +17 -5
  8. package/ai/schemas/components/Menu.d.ts +37 -0
  9. package/ai/schemas/components/Row.d.ts +6 -6
  10. package/ai/schemas/components/Scroll.d.ts +7 -0
  11. package/ai/schemas/components/Typography.d.ts +0 -21
  12. package/assets/icons/account_circle.d.ts +1 -3
  13. package/assets/icons/account_circle.js +7 -14
  14. package/assets/icons/arrow-down.d.ts +2 -3
  15. package/assets/icons/arrow-down.js +6 -11
  16. package/assets/icons/arrow-forward.d.ts +1 -3
  17. package/assets/icons/arrow-forward.js +6 -13
  18. package/assets/icons/attachment.d.ts +1 -3
  19. package/assets/icons/attachment.js +7 -14
  20. package/assets/icons/check.d.ts +1 -3
  21. package/assets/icons/check.js +5 -11
  22. package/assets/icons/chevron-left.d.ts +1 -3
  23. package/assets/icons/chevron-left.js +7 -14
  24. package/assets/icons/chevron-right.d.ts +1 -3
  25. package/assets/icons/chevron-right.js +6 -13
  26. package/assets/icons/content-copy.d.ts +1 -3
  27. package/assets/icons/content-copy.js +7 -14
  28. package/assets/icons/delete_outlined.d.ts +1 -3
  29. package/assets/icons/delete_outlined.js +5 -12
  30. package/assets/icons/dot.d.ts +1 -3
  31. package/assets/icons/dot.js +5 -11
  32. package/assets/icons/error_outline.d.ts +1 -4
  33. package/assets/icons/error_outline.js +6 -18
  34. package/assets/icons/eye.d.ts +1 -3
  35. package/assets/icons/eye.js +7 -14
  36. package/assets/icons/file-copy.d.ts +1 -3
  37. package/assets/icons/file-copy.js +7 -13
  38. package/assets/icons/filter.d.ts +1 -3
  39. package/assets/icons/filter.js +6 -13
  40. package/assets/icons/folder.d.ts +1 -3
  41. package/assets/icons/folder.js +6 -13
  42. package/assets/icons/folderOpen.d.ts +1 -3
  43. package/assets/icons/folderOpen.js +7 -14
  44. package/assets/icons/home.d.ts +1 -3
  45. package/assets/icons/home.js +6 -13
  46. package/assets/icons/local_shipping.d.ts +1 -3
  47. package/assets/icons/local_shipping.js +4 -11
  48. package/assets/icons/minus.d.ts +1 -3
  49. package/assets/icons/minus.js +7 -13
  50. package/assets/icons/mobile_menu_button.d.ts +1 -3
  51. package/assets/icons/mobile_menu_button.js +7 -14
  52. package/assets/icons/paymentCard.d.ts +1 -3
  53. package/assets/icons/paymentCard.js +6 -13
  54. package/assets/icons/plus.d.ts +1 -3
  55. package/assets/icons/plus.js +5 -11
  56. package/assets/icons/portrait.d.ts +1 -3
  57. package/assets/icons/portrait.js +5 -12
  58. package/assets/icons/processing.d.ts +1 -3
  59. package/assets/icons/processing.js +6 -13
  60. package/assets/icons/ruler.d.ts +1 -3
  61. package/assets/icons/ruler.js +6 -13
  62. package/assets/icons/search.d.ts +1 -3
  63. package/assets/icons/search.js +6 -13
  64. package/assets/icons/shopping_bag.d.ts +1 -3
  65. package/assets/icons/shopping_bag.js +7 -14
  66. package/assets/icons/slash.d.ts +1 -3
  67. package/assets/icons/slash.js +6 -13
  68. package/assets/icons/star.d.ts +1 -3
  69. package/assets/icons/star.js +6 -12
  70. package/assets/icons/starOutlined.d.ts +1 -3
  71. package/assets/icons/starOutlined.js +5 -11
  72. package/assets/icons/toast_error.d.ts +1 -3
  73. package/assets/icons/toast_error.js +9 -15
  74. package/assets/icons/toast_info.d.ts +1 -3
  75. package/assets/icons/toast_info.js +7 -13
  76. package/assets/icons/toast_warning.d.ts +1 -3
  77. package/assets/icons/toast_warning.js +7 -13
  78. package/assets/icons/upload.d.ts +1 -3
  79. package/assets/icons/upload.js +6 -13
  80. package/assets/icons/volume-up.d.ts +1 -3
  81. package/assets/icons/volume-up.js +6 -13
  82. package/assets/icons/wifiTethering.d.ts +1 -3
  83. package/assets/icons/wifiTethering.js +4 -11
  84. package/components/core/Button/Button.js +30 -27
  85. package/components/core/Button/Button.types.d.ts +2 -2
  86. package/components/core/Button/ButtonStyled.js +40 -39
  87. package/components/core/Dropdown/Dropdown.d.ts +1 -1
  88. package/components/core/Dropdown/Dropdown.js +16 -16
  89. package/components/core/Dropdown/Dropdown.types.d.ts +3 -3
  90. package/components/core/Dropdown/DropdownStyled.js +13 -14
  91. package/components/core/Icon/Icon.js +41 -33
  92. package/components/core/Icon/Icon.types.d.ts +2 -1
  93. package/components/core/Icon/constants.d.ts +37 -109
  94. package/components/core/Input/Input.d.ts +1 -1
  95. package/components/core/InputFile/InputFile.d.ts +0 -32
  96. package/components/core/InputFile/InputFile.js +47 -33
  97. package/components/core/InputFile/InputFileStyled.js +24 -22
  98. package/components/core/Loader/Loader.js +19 -17
  99. package/components/core/Loader/Loader.types.d.ts +3 -1
  100. package/components/core/Loader/LoaderStyled.js +34 -30
  101. package/components/core/Menu/Menu.d.ts +2 -2
  102. package/components/core/Menu/Menu.js +113 -93
  103. package/components/core/Menu/Menu.types.d.ts +16 -11
  104. package/components/core/Menu/MenuStyled.d.ts +1 -1
  105. package/components/core/Menu/constants.js +4 -12
  106. package/components/core/Modal/Modal.js +60 -36
  107. package/components/core/Modal/ModalStyled.js +21 -22
  108. package/components/core/Scroll/Scroll.d.ts +6 -0
  109. package/components/core/Scroll/Scroll.js +53 -31
  110. package/components/core/Scroll/Scroll.types.d.ts +5 -0
  111. package/components/core/Scroll/ScrollBar.js +45 -43
  112. package/components/core/Scroll/ScrollStyled.js +46 -42
  113. package/components/core/Scroll/constants.d.ts +2 -0
  114. package/components/core/Scroll/constants.js +6 -4
  115. package/components/core/Select/Select.js +162 -134
  116. package/components/core/Select/Select.types.d.ts +2 -4
  117. package/components/core/Snackbar/Snackbar.js +60 -37
  118. package/components/core/Snackbar/Snackbar.types.d.ts +1 -2
  119. package/components/core/Snackbar/SnackbarManager.js +45 -30
  120. package/components/core/Snackbar/SnackbarStyled.d.ts +5 -5
  121. package/components/core/Snackbar/SnackbarStyled.js +111 -101
  122. package/components/core/Textarea/Textarea.d.ts +4 -0
  123. package/components/core/Tooltip/Tooltip.js +68 -44
  124. package/components/core/Tooltip/TooltipStyled.js +26 -27
  125. package/components/core/Tooltip/utils.js +47 -45
  126. package/components/core/Typography/Typography.js +18 -18
  127. package/components/core/Typography/Typography.types.d.ts +3 -3
  128. package/components/core/Typography/TypographyStyled.js +28 -29
  129. package/components/domainSpecific/Accordion/Accordion.d.ts +1 -1
  130. package/components/domainSpecific/Accordion/Accordion.js +19 -17
  131. package/components/domainSpecific/Accordion/Accordion.types.d.ts +7 -4
  132. package/components/domainSpecific/Accordion/AccordionContent/AccordionContent.d.ts +1 -1
  133. package/components/domainSpecific/Accordion/AccordionContent/AccordionContent.js +13 -12
  134. package/components/domainSpecific/Accordion/AccordionHeader/AccordionHeader.d.ts +1 -1
  135. package/components/domainSpecific/Accordion/AccordionHeader/AccordionHeader.js +15 -14
  136. package/components/domainSpecific/Accordion/AccordionItem/AccordionItem.d.ts +1 -1
  137. package/components/domainSpecific/Accordion/AccordionItem/AccordionItem.js +18 -16
  138. package/components/domainSpecific/Accordion/AccordionStyled.js +44 -35
  139. package/components/domainSpecific/Card/Card.js +31 -27
  140. package/components/domainSpecific/Card/CardTitle/constants.js +4 -4
  141. package/components/domainSpecific/Header/Header.js +4 -4
  142. package/components/domainSpecific/SearchModal/SearchModal.js +0 -1
  143. package/components/domainSpecific/SearchModal/SearchModal.types.d.ts +1 -1
  144. package/components/index.types.d.ts +1 -0
  145. package/components/layout/ChatContainer/ChatContainer.d.ts +1 -1
  146. package/components/layout/ChatContainer/ChatContainer.js +58 -41
  147. package/components/layout/ChatContainer/ChatContainer.types.d.ts +8 -5
  148. package/components/layout/ChatContainer/ChatContainerStyled.d.ts +2 -0
  149. package/components/layout/ChatContainer/ChatContainerStyled.js +105 -84
  150. package/components/layout/Column/Column.types.d.ts +3 -1
  151. package/components/layout/Column/ColumnStyled.js +23 -23
  152. package/components/layout/FlexContainer/FlexContainerStyled.js +7 -8
  153. package/components/layout/Row/Row.d.ts +1 -1
  154. package/components/layout/Row/Row.js +20 -20
  155. package/components/layout/Row/Row.types.d.ts +3 -1
  156. package/components/layout/Row/RowStyled.js +26 -26
  157. package/constants/index.d.ts +0 -1
  158. package/hooks/index.d.ts +1 -0
  159. package/hooks/useLogger/NoOpLogger.d.ts +11 -0
  160. package/hooks/useLogger/NoOpLogger.js +15 -0
  161. package/hooks/useLogger/index.d.ts +2 -0
  162. package/hooks/useLogger/useLogger.d.ts +4 -0
  163. package/hooks/useLogger/useLogger.js +27 -0
  164. package/hooks/useLogger/useLogger.types.d.ts +30 -0
  165. package/hooks/useTheme/NoOpTheme.d.ts +4050 -0
  166. package/hooks/useTheme/NoOpTheme.js +15 -0
  167. package/hooks/useTheme/useTheme.d.ts +3 -4
  168. package/hooks/useTheme/useTheme.js +62 -41
  169. package/hooks/useTheme/useTheme.types.d.ts +3 -2
  170. package/index.d.ts +4 -0
  171. package/index.js +354 -350
  172. package/llms.txt +39 -19
  173. package/package.json +1 -1
  174. package/tokens/accordion.d.ts +9 -3
  175. package/tokens/accordion.js +14 -11
  176. package/tokens/button.d.ts +17 -19
  177. package/tokens/button.js +54 -56
  178. package/tokens/card.d.ts +2 -3
  179. package/tokens/card.js +50 -53
  180. package/tokens/carousel.d.ts +2 -2
  181. package/tokens/carousel.js +8 -9
  182. package/tokens/chat.d.ts +69 -48
  183. package/tokens/chat.js +86 -68
  184. package/tokens/constants.d.ts +0 -1
  185. package/tokens/constants.js +1 -1
  186. package/tokens/defaultTheme.d.ts +199 -112
  187. package/tokens/defaultTheme.js +27 -25
  188. package/tokens/header.d.ts +1 -1
  189. package/tokens/header.js +3 -4
  190. package/tokens/index.d.ts +175 -104
  191. package/tokens/index.js +102 -101
  192. package/tokens/input.d.ts +2 -2
  193. package/tokens/input.js +25 -26
  194. package/tokens/inputfile.d.ts +1 -1
  195. package/tokens/inputfile.js +4 -4
  196. package/tokens/link.d.ts +5 -0
  197. package/tokens/loader.d.ts +3 -0
  198. package/tokens/loader.js +3 -0
  199. package/tokens/menu.d.ts +1 -0
  200. package/tokens/menu.js +1 -0
  201. package/tokens/modal.d.ts +6 -4
  202. package/tokens/modal.js +42 -60
  203. package/tokens/scroll.d.ts +19 -2
  204. package/tokens/scroll.js +23 -7
  205. package/tokens/select.d.ts +9 -7
  206. package/tokens/select.js +30 -29
  207. package/tokens/snackbar.d.ts +36 -20
  208. package/tokens/snackbar.js +92 -93
  209. package/tokens/stepper.d.ts +1 -1
  210. package/tokens/stepper.js +3 -3
  211. package/tokens/tabs.d.ts +1 -1
  212. package/tokens/tabs.js +1 -1
  213. package/tokens/textarea.d.ts +4 -0
  214. package/tokens/tooltip.d.ts +5 -1
  215. package/tokens/tooltip.js +23 -21
  216. package/tokens/typography.js +114 -116
  217. package/tokens/values.d.ts +5 -1
  218. package/tokens/values.js +12 -8
  219. package/tokens/wrapper.d.ts +2 -2
  220. package/tokens/wrapper.js +7 -7
  221. package/tokens/zIndex.d.ts +9 -0
  222. package/tokens/zIndex.js +12 -0
  223. package/types/index.d.ts +0 -1
  224. package/types/styles.d.ts +1 -0
  225. package/utils/helpers.js +14 -15
  226. package/CHANGELOG.md +0 -177
  227. package/constants/positioning.d.ts +0 -9
  228. package/constants/positioning.js +0 -11
  229. package/types/chat.d.ts +0 -5
  230. package/types/chat.js +0 -4
@@ -9,93 +9,68 @@ export declare const IconsList: {
9
9
  fillSvg?: string | undefined;
10
10
  fill?: string | undefined;
11
11
  }) => import("@emotion/react/jsx-runtime").JSX.Element;
12
- error: ({ width, height, fillSvg, fill, ...rest }: {
12
+ error: ({ fillSvg, fill, ...rest }: {
13
13
  [x: string]: any;
14
- width?: number | undefined;
15
- height?: number | undefined;
16
14
  fillSvg?: string | undefined;
17
15
  fill?: string | undefined;
18
16
  }) => import("@emotion/react/jsx-runtime").JSX.Element;
19
- warning: ({ width, height, fillSvg, fill, ...rest }: {
17
+ warning: ({ fillSvg, fill, ...rest }: {
20
18
  [x: string]: any;
21
- width?: number | undefined;
22
- height?: number | undefined;
23
19
  fillSvg?: string | undefined;
24
20
  fill?: string | undefined;
25
21
  }) => import("@emotion/react/jsx-runtime").JSX.Element;
26
- info: ({ width, height, fillSvg, fill, ...rest }: {
22
+ info: ({ fillSvg, fill, ...rest }: {
27
23
  [x: string]: any;
28
- width?: number | undefined;
29
- height?: number | undefined;
30
24
  fillSvg?: string | undefined;
31
25
  fill?: string | undefined;
32
26
  }) => import("@emotion/react/jsx-runtime").JSX.Element;
33
- dot: ({ width, height, fillSvg, fill, ...rest }: {
27
+ dot: ({ fillSvg, fill, ...rest }: {
34
28
  [x: string]: any;
35
- width?: number | undefined;
36
- height?: number | undefined;
37
29
  fillSvg?: string | undefined;
38
30
  fill?: string | undefined;
39
31
  }) => import("@emotion/react/jsx-runtime").JSX.Element;
40
- check: ({ width, height, fillSvg, fill, ...rest }: {
32
+ check: ({ fillSvg, fill, ...rest }: {
41
33
  [x: string]: any;
42
- width?: number | undefined;
43
- height?: number | undefined;
44
34
  fillSvg?: string | undefined;
45
35
  fill?: string | undefined;
46
36
  }) => import("@emotion/react/jsx-runtime").JSX.Element;
47
- arrowDown: ({ width, height, fillSvg, fill, }: {
48
- width?: number | undefined;
49
- height?: number | undefined;
37
+ arrowDown: ({ fillSvg, fill, ...rest }: {
38
+ [x: string]: any;
50
39
  fillSvg?: string | undefined;
51
40
  fill?: string | undefined;
52
41
  }) => import("@emotion/react/jsx-runtime").JSX.Element;
53
- arrowRight: ({ width, height, fillSvg, fill, ...rest }: {
42
+ arrowRight: ({ fillSvg, fill, ...rest }: {
54
43
  [x: string]: any;
55
- width?: number | undefined;
56
- height?: number | undefined;
57
44
  fillSvg?: string | undefined;
58
45
  fill?: string | undefined;
59
46
  }) => import("@emotion/react/jsx-runtime").JSX.Element;
60
- arrowLeft: ({ width, height, fillSvg, fill, ...rest }: {
47
+ arrowLeft: ({ fillSvg, fill, ...rest }: {
61
48
  [x: string]: any;
62
- width?: number | undefined;
63
- height?: number | undefined;
64
49
  fillSvg?: string | undefined;
65
50
  fill?: string | undefined;
66
51
  }) => import("@emotion/react/jsx-runtime").JSX.Element;
67
- mobileMenu: ({ width, height, fillSvg, fill, ...rest }: {
52
+ mobileMenu: ({ fillSvg, fill, ...rest }: {
68
53
  [x: string]: any;
69
- width?: number | undefined;
70
- height?: number | undefined;
71
54
  fillSvg?: string | undefined;
72
55
  fill?: string | undefined;
73
56
  }) => import("@emotion/react/jsx-runtime").JSX.Element;
74
- home: ({ width, height, fillSvg, fill, ...rest }: {
57
+ home: ({ fillSvg, fill, ...rest }: {
75
58
  [x: string]: any;
76
- width?: number | undefined;
77
- height?: number | undefined;
78
59
  fillSvg?: string | undefined;
79
60
  fill?: string | undefined;
80
61
  }) => import("@emotion/react/jsx-runtime").JSX.Element;
81
- slash: ({ width, height, fillSvg, fill, ...rest }: {
62
+ slash: ({ fillSvg, fill, ...rest }: {
82
63
  [x: string]: any;
83
- width?: number | undefined;
84
- height?: number | undefined;
85
64
  fillSvg?: string | undefined;
86
65
  fill?: string | undefined;
87
66
  }) => import("@emotion/react/jsx-runtime").JSX.Element;
88
- arrowForward: ({ width, height, fillSvg, fill, ...rest }: {
67
+ arrowForward: ({ fillSvg, fill, ...rest }: {
89
68
  [x: string]: any;
90
- width?: number | undefined;
91
- height?: number | undefined;
92
69
  fillSvg?: string | undefined;
93
70
  fill?: string | undefined;
94
71
  }) => import("@emotion/react/jsx-runtime").JSX.Element;
95
- localShipping: ({ width, height, fillSvg, fill, ...rest }: {
72
+ localShipping: ({ fillSvg, fill, ...rest }: {
96
73
  [x: string]: any;
97
- width?: number | undefined;
98
- height?: number | undefined;
99
74
  fillSvg?: string | undefined;
100
75
  fill?: string | undefined;
101
76
  }) => import("@emotion/react/jsx-runtime").JSX.Element;
@@ -109,144 +84,103 @@ export declare const IconsList: {
109
84
  fillSvg?: string | undefined;
110
85
  fill?: string | undefined;
111
86
  }) => import("@emotion/react/jsx-runtime").JSX.Element;
112
- deleteOutlined: ({ width, height, fillSvg, fill, ...rest }: {
87
+ deleteOutlined: ({ fillSvg, fill, ...rest }: {
113
88
  [x: string]: any;
114
- width?: number | undefined;
115
- height?: number | undefined;
116
89
  fillSvg?: string | undefined;
117
90
  fill?: string | undefined;
118
91
  }) => import("@emotion/react/jsx-runtime").JSX.Element;
119
- accountCircle: ({ width, height, fillSvg, fill, ...rest }: {
92
+ accountCircle: ({ fillSvg, fill, ...rest }: {
120
93
  [x: string]: any;
121
- width?: number | undefined;
122
- height?: number | undefined;
123
94
  fillSvg?: string | undefined;
124
95
  fill?: string | undefined;
125
96
  }) => import("@emotion/react/jsx-runtime").JSX.Element;
126
- shoppingBag: ({ width, height, fillSvg, fill, ...rest }: {
97
+ shoppingBag: ({ fillSvg, fill, ...rest }: {
127
98
  [x: string]: any;
128
- width?: number | undefined;
129
- height?: number | undefined;
130
99
  fillSvg?: string | undefined;
131
100
  fill?: string | undefined;
132
101
  }) => import("@emotion/react/jsx-runtime").JSX.Element;
133
- errorOutline: ({ width, height, color, fillSvg, fill, ...rest }: {
102
+ errorOutline: ({ fillSvg, fill, ...rest }: {
134
103
  [x: string]: any;
135
- width?: number | undefined;
136
- height?: number | undefined;
137
- color?: string | undefined;
138
104
  fillSvg?: string | undefined;
139
105
  fill?: string | undefined;
140
106
  }) => import("@emotion/react/jsx-runtime").JSX.Element;
141
- star: ({ width, height, fillSvg, fill, ...rest }: {
107
+ star: ({ fillSvg, fill, ...rest }: {
142
108
  [x: string]: any;
143
- width?: number | undefined;
144
- height?: number | undefined;
145
109
  fillSvg?: string | undefined;
146
110
  fill?: string | undefined;
147
111
  }) => import("@emotion/react/jsx-runtime").JSX.Element;
148
- starOutlined: ({ width, height, fillSvg, fill, ...rest }: {
112
+ starOutlined: ({ fillSvg, fill, ...rest }: {
149
113
  [x: string]: any;
150
- width?: number | undefined;
151
- height?: number | undefined;
152
114
  fillSvg?: string | undefined;
153
115
  fill?: string | undefined;
154
116
  }) => import("@emotion/react/jsx-runtime").JSX.Element;
155
- minus: ({ width, height, fillSvg, fill, ...rest }: {
117
+ minus: ({ fillSvg, fill, ...rest }: {
156
118
  [x: string]: any;
157
- width?: number | undefined;
158
- height?: number | undefined;
159
119
  fillSvg?: string | undefined;
160
120
  fill?: string | undefined;
161
121
  }) => import("@emotion/react/jsx-runtime").JSX.Element;
162
- plus: ({ width, height, fillSvg, fill, ...rest }: {
122
+ plus: ({ fillSvg, fill, ...rest }: {
163
123
  [x: string]: any;
164
- width?: number | undefined;
165
- height?: number | undefined;
166
124
  fillSvg?: string | undefined;
167
125
  fill?: string | undefined;
168
126
  }) => import("@emotion/react/jsx-runtime").JSX.Element;
169
- filter: ({ width, height, fillSvg, fill, ...rest }: {
127
+ filter: ({ fillSvg, fill, ...rest }: {
170
128
  [x: string]: any;
171
- width?: number | undefined;
172
- height?: number | undefined;
173
129
  fillSvg?: string | undefined;
174
130
  fill?: string | undefined;
175
131
  }) => import("@emotion/react/jsx-runtime").JSX.Element;
176
- ruler: ({ width, height, fillSvg, fill, ...rest }: {
132
+ ruler: ({ fillSvg, fill, ...rest }: {
177
133
  [x: string]: any;
178
- width?: number | undefined;
179
- height?: number | undefined;
180
134
  fillSvg?: string | undefined;
181
135
  fill?: string | undefined;
182
136
  }) => import("@emotion/react/jsx-runtime").JSX.Element;
183
- processing: ({ width, height, fillSvg, fill, ...rest }: {
137
+ processing: ({ fillSvg, fill, ...rest }: {
184
138
  [x: string]: any;
185
- width?: number | undefined;
186
- height?: number | undefined;
187
139
  fillSvg?: string | undefined;
188
140
  fill?: string | undefined;
189
141
  }) => import("@emotion/react/jsx-runtime").JSX.Element;
190
- paymentCard: ({ width, height, fillSvg, fill, ...rest }: {
142
+ paymentCard: ({ fillSvg, fill, ...rest }: {
191
143
  [x: string]: any;
192
- width?: number | undefined;
193
- height?: number | undefined;
194
144
  fillSvg?: string | undefined;
195
145
  fill?: string | undefined;
196
146
  }) => import("@emotion/react/jsx-runtime").JSX.Element;
197
- eye: ({ width, height, fillSvg, fill, ...rest }: {
147
+ eye: ({ fillSvg, fill, ...rest }: {
198
148
  [x: string]: any;
199
- width?: number | undefined;
200
- height?: number | undefined;
201
149
  fillSvg?: string | undefined;
202
150
  fill?: string | undefined;
203
151
  }) => import("@emotion/react/jsx-runtime").JSX.Element;
204
- attachment: ({ width, height, fillSvg, fill, ...rest }: {
152
+ attachment: ({ fillSvg, fill, ...rest }: {
205
153
  [x: string]: any;
206
- width?: number | undefined;
207
- height?: number | undefined;
208
154
  fillSvg?: string | undefined;
209
155
  fill?: string | undefined;
210
156
  }) => import("@emotion/react/jsx-runtime").JSX.Element;
211
- upload: ({ width, height, fillSvg, fill, ...rest }: {
157
+ upload: ({ fillSvg, fill, ...rest }: {
212
158
  [x: string]: any;
213
- width?: number | undefined;
214
- height?: number | undefined;
215
159
  fillSvg?: string | undefined;
216
160
  fill?: string | undefined;
217
161
  }) => import("@emotion/react/jsx-runtime").JSX.Element;
218
- folder: ({ width, height, fillSvg, fill, ...rest }: {
162
+ folder: ({ fillSvg, fill, ...rest }: {
219
163
  [x: string]: any;
220
- width?: number | undefined;
221
- height?: number | undefined;
222
164
  fillSvg?: string | undefined;
223
165
  fill?: string | undefined;
224
166
  }) => import("@emotion/react/jsx-runtime").JSX.Element;
225
- folderOpen: ({ width, height, fillSvg, fill, ...rest }: {
167
+ folderOpen: ({ fillSvg, fill, ...rest }: {
226
168
  [x: string]: any;
227
- width?: number | undefined;
228
- height?: number | undefined;
229
169
  fillSvg?: string | undefined;
230
170
  fill?: string | undefined;
231
171
  }) => import("@emotion/react/jsx-runtime").JSX.Element;
232
- wifiTethering: ({ width, height, fillSvg, fill, ...rest }: {
172
+ wifiTethering: ({ fillSvg, fill, ...rest }: {
233
173
  [x: string]: any;
234
- width?: number | undefined;
235
- height?: number | undefined;
236
174
  fillSvg?: string | undefined;
237
175
  fill?: string | undefined;
238
176
  }) => import("@emotion/react/jsx-runtime").JSX.Element;
239
- portrait: ({ width, height, fillSvg, fill, ...rest }: {
177
+ portrait: ({ fillSvg, fill, ...rest }: {
240
178
  [x: string]: any;
241
- width?: number | undefined;
242
- height?: number | undefined;
243
179
  fillSvg?: string | undefined;
244
180
  fill?: string | undefined;
245
181
  }) => import("@emotion/react/jsx-runtime").JSX.Element;
246
- search: ({ width, height, fillSvg, fill, ...rest }: {
182
+ search: ({ fillSvg, fill, ...rest }: {
247
183
  [x: string]: any;
248
- width?: number | undefined;
249
- height?: number | undefined;
250
184
  fillSvg?: string | undefined;
251
185
  fill?: string | undefined;
252
186
  }) => import("@emotion/react/jsx-runtime").JSX.Element;
@@ -255,17 +189,13 @@ export declare const IconsList: {
255
189
  fillSvg?: string | undefined;
256
190
  fill?: string | undefined;
257
191
  }) => import("@emotion/react/jsx-runtime").JSX.Element;
258
- volumeUp: ({ width, height, fillSvg, fill, ...rest }: {
192
+ volumeUp: ({ fillSvg, fill, ...rest }: {
259
193
  [x: string]: any;
260
- width?: number | undefined;
261
- height?: number | undefined;
262
194
  fillSvg?: string | undefined;
263
195
  fill?: string | undefined;
264
196
  }) => import("@emotion/react/jsx-runtime").JSX.Element;
265
- contentCopy: ({ width, height, fillSvg, fill, ...rest }: {
197
+ contentCopy: ({ fillSvg, fill, ...rest }: {
266
198
  [x: string]: any;
267
- width?: number | undefined;
268
- height?: number | undefined;
269
199
  fillSvg?: string | undefined;
270
200
  fill?: string | undefined;
271
201
  }) => import("@emotion/react/jsx-runtime").JSX.Element;
@@ -279,10 +209,8 @@ export declare const IconsList: {
279
209
  fillSvg?: string | undefined;
280
210
  fill?: string | undefined;
281
211
  }) => import("@emotion/react/jsx-runtime").JSX.Element;
282
- fileCopy: ({ width, height, fillSvg, fill, ...rest }: {
212
+ fileCopy: ({ fillSvg, fill, ...rest }: {
283
213
  [x: string]: any;
284
- width?: number | undefined;
285
- height?: number | undefined;
286
214
  fillSvg?: string | undefined;
287
215
  fill?: string | undefined;
288
216
  }) => import("@emotion/react/jsx-runtime").JSX.Element;
@@ -1,2 +1,2 @@
1
1
  import { InputFieldProps } from './Input.types';
2
- export declare const Input: import('react').ForwardRefExoticComponent<(InputFieldProps & Partial<Omit<HTMLInputElement, "color" | "prefix" | "disabled" | "tabIndex" | "type" | "hidden" | "width" | "children" | "className" | "role" | "content" | "translate" | "name" | "label" | "styles" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "autoCapitalize" | "autoFocus" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "enterKeyHint" | "id" | "lang" | "nonce" | "slot" | "spellCheck" | "style" | "title" | "radioGroup" | "about" | "datatype" | "inlist" | "property" | "rel" | "resource" | "rev" | "typeof" | "vocab" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "exportparts" | "part" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-braillelabel" | "aria-brailleroledescription" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colindextext" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-description" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowindextext" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerLeave" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "variant" | "placeholder" | "adornmentStart" | "adornmentEnd" | "debounceCallbackTime" | "readOnly" | "required" | "ariaRequired" | "ariaDescribedBy" | "wrapperAs" | "helperText">>) & import('react').RefAttributes<HTMLInputElement>>;
2
+ export declare const Input: import('react').ForwardRefExoticComponent<(InputFieldProps & Partial<Omit<HTMLInputElement, "color" | "prefix" | "disabled" | "tabIndex" | "type" | "hidden" | "width" | "content" | "translate" | "name" | "label" | "children" | "className" | "styles" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "autoCapitalize" | "autoFocus" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "enterKeyHint" | "id" | "lang" | "nonce" | "slot" | "spellCheck" | "style" | "title" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "property" | "rel" | "resource" | "rev" | "typeof" | "vocab" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "exportparts" | "part" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-braillelabel" | "aria-brailleroledescription" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colindextext" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-description" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowindextext" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerLeave" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "variant" | "placeholder" | "adornmentStart" | "adornmentEnd" | "debounceCallbackTime" | "readOnly" | "required" | "ariaRequired" | "ariaDescribedBy" | "wrapperAs" | "helperText">>) & import('react').RefAttributes<HTMLInputElement>>;
@@ -1,34 +1,2 @@
1
1
  import { InputFileProps } from './';
2
- /**
3
- * A styled wrapper around a visually hidden `<input type="file">` and an outlined design-system `Button`.
4
- *
5
- * @remarks
6
- * - Use `accept` to restrict selectable file types.
7
- * - Use `capture` for mobile camera/mic capture hints.
8
- * - `multiple` prop enables selecting more than one file.
9
- * - `disabled` disables the entire control.
10
- * - `styles` lets you override the outer wrapper’s CSS via design-token style object.
11
- * - `buttonProps` are passed directly to the `Button` (variant is always `Outlined`).
12
- *
13
- * @example
14
- * ```tsx
15
- * import { InputFile } from '@components/core/InputFile';
16
- *
17
- * function MyForm() {
18
- * const handleFiles = (e: React.ChangeEvent<HTMLInputElement>) => {
19
- * console.log(e.target.files);
20
- * };
21
- *
22
- * return (
23
- * <InputFile
24
- * accept="image/*"
25
- * multiple
26
- * label="Upload Photos"
27
- * onChange={handleFiles}
28
- * styles={{ border: '2px dashed #ccc', padding: '1rem' }}
29
- * />
30
- * );
31
- * }
32
- * ```
33
- */
34
2
  export declare const InputFile: import('react').ForwardRefExoticComponent<InputFileProps & import('react').RefAttributes<HTMLDivElement>>;
@@ -1,40 +1,54 @@
1
1
  "use client";
2
- import { jsxs as _, jsx as p } from "@emotion/react/jsx-runtime";
3
- import { forwardRef as y, useRef as A, useImperativeHandle as T } from "react";
4
- import { INPUT_FILE_DEFAULT_LABEL_VALUE as x, COMPONENT_NAME as m } from "./constants.js";
5
- import { InputFileWrapperStyled as B, InputFileStyled as C } from "./InputFileStyled.js";
6
- import { Button as O } from "../Button/Button.js";
7
- import { useTheme as P } from "../../../hooks/useTheme/useTheme.js";
8
- import { ButtonVariant as U } from "../../../types/button.js";
9
- const b = y((c, o) => {
2
+ import { jsxs as N, jsx as d } from "@emotion/react/jsx-runtime";
3
+ import { forwardRef as _, useRef as T, useImperativeHandle as x } from "react";
4
+ import { COMPONENT_NAME as i, INPUT_FILE_DEFAULT_LABEL_VALUE as B } from "./constants.js";
5
+ import { InputFileWrapperStyled as O, InputFileStyled as U } from "./InputFileStyled.js";
6
+ import { Button as j } from "../Button/Button.js";
7
+ import { useTheme as z } from "../../../hooks/useTheme/useTheme.js";
8
+ import { useLogger as M } from "../../../hooks/useLogger/useLogger.js";
9
+ import { ButtonVariant as P } from "../../../types/button.js";
10
+ const R = _(({
11
+ styles: g = {},
12
+ accept: y,
13
+ capture: E,
14
+ multiple: n,
15
+ disabled: r,
16
+ onChange: o,
17
+ onClick: m,
18
+ isIcon: l,
19
+ children: F = B,
20
+ buttonProps: L,
21
+ ...h
22
+ }, s) => {
10
23
  const {
11
- styles: u = {},
12
- accept: a,
13
- capture: d,
14
- multiple: f,
15
- disabled: t,
16
- onChange: e,
17
- onClick: r,
18
- isIcon: h,
19
- children: I = x,
20
- buttonProps: E,
21
- ...F
22
- } = c, {
23
- theme: l
24
- } = P(), n = A(null);
25
- T(o, () => n.current);
26
- const L = (i) => {
27
- var s;
28
- t || ((s = n.current) == null || s.click(), r == null || r(i));
29
- }, N = (i) => {
30
- e == null || e(i);
24
+ theme: a
25
+ } = z(), f = M(), p = T(null);
26
+ x(s, () => p.current);
27
+ const A = (t) => {
28
+ var e;
29
+ r || (f.debug(`${i}: Clicked upload button`, {
30
+ isIcon: l,
31
+ disabled: !!r
32
+ }), (e = p.current) == null || e.click(), m == null || m(t));
33
+ }, I = (t) => {
34
+ var c;
35
+ const e = (c = t.target) != null && c.files ? Array.from(t.target.files).map((u) => ({
36
+ name: u.name,
37
+ size: u.size,
38
+ type: u.type
39
+ })) : [];
40
+ f.debug(`${i}: File input changed`, {
41
+ multiple: !!n,
42
+ filesCount: e.length,
43
+ files: e
44
+ }), o == null || o(t);
31
45
  };
32
- return /* @__PURE__ */ _(B, { theme: l, styles: u, ref: o, "data-testid": m, children: [
33
- /* @__PURE__ */ p(O, { isIcon: h, variant: U.Outlined, disabled: t, onClick: L, ...E, children: I }),
34
- /* @__PURE__ */ p(C, { ref: n, theme: l, accept: a, capture: d, multiple: f, disabled: t, onChange: N, ...F })
46
+ return /* @__PURE__ */ N(O, { theme: a, styles: g, ref: s, "data-testid": i, children: [
47
+ /* @__PURE__ */ d(j, { isIcon: l, variant: P.Outlined, disabled: r, onClick: A, ...L, children: F }),
48
+ /* @__PURE__ */ d(U, { ref: p, theme: a, accept: y, capture: E, multiple: n, disabled: r, onChange: I, ...h })
35
49
  ] });
36
50
  });
37
- b.displayName = m;
51
+ R.displayName = i;
38
52
  export {
39
- b as InputFile
53
+ R as InputFile
40
54
  };
@@ -1,27 +1,29 @@
1
1
  "use client";
2
- import { jsx as s } from "@emotion/react/jsx-runtime";
3
- import { forwardRef as p } from "react";
4
- import { INPUT_FILE_TYPE as m } from "./constants.js";
2
+ import { jsx as p } from "@emotion/react/jsx-runtime";
3
+ import { forwardRef as m } from "react";
4
+ import { INPUT_FILE_TYPE as s } from "./constants.js";
5
5
  import { get as i } from "../../../utils/helpers.js";
6
- const y = p((t, e) => {
7
- const {
8
- theme: {
9
- inputfile: r
10
- } = {},
11
- styles: o = {},
12
- ...n
13
- } = t, f = [i(r, "default", {}), o];
14
- return /* @__PURE__ */ s("div", { css: f, ...n, ref: e });
15
- }), I = p((t, e) => {
16
- const {
17
- theme: {
18
- inputfile: r
19
- } = {},
20
- ...o
21
- } = t;
22
- return /* @__PURE__ */ s("input", { type: m, css: i(r, "input", {}), ...o, ref: e });
6
+ import { tokensHandler as f } from "../../../tokens/utils.js";
7
+ const I = m(({
8
+ theme: {
9
+ inputfile: t
10
+ } = {},
11
+ styles: e = {},
12
+ ...r
13
+ }, o) => {
14
+ const n = [i(t, "default", {}), e];
15
+ return /* @__PURE__ */ p("div", { css: n, ...r, ref: o });
16
+ }), a = m(({
17
+ theme: {
18
+ inputfile: t,
19
+ ...e
20
+ } = {},
21
+ ...r
22
+ }, o) => {
23
+ const n = new Proxy(t || {}, f(e));
24
+ return /* @__PURE__ */ p("input", { type: s, css: i(n, "input", {}), ...r, ref: o });
23
25
  });
24
26
  export {
25
- I as InputFileStyled,
26
- y as InputFileWrapperStyled
27
+ a as InputFileStyled,
28
+ I as InputFileWrapperStyled
27
29
  };
@@ -1,29 +1,31 @@
1
1
  "use client";
2
- import { jsx as t } from "@emotion/react/jsx-runtime";
3
- import { forwardRef as u } from "react";
4
- import { BASE_ANIMATION as N, COMPONENT_NAME as n } from "./constants.js";
5
- import { LoaderStyled as P } from "./LoaderStyled.js";
2
+ import { jsx as o } from "@emotion/react/jsx-runtime";
3
+ import { forwardRef as N } from "react";
4
+ import { BASE_ANIMATION as P, COMPONENT_NAME as p } from "./constants.js";
5
+ import { LoaderStyled as $ } from "./LoaderStyled.js";
6
6
  import { Portal as w } from "../Portal/Portal.js";
7
7
  import A from "../Wrapper/Wrapper.js";
8
+ import { useTheme as M } from "../../../hooks/useTheme/useTheme.js";
8
9
  import { WrapperVariant as m } from "../../../types/wrapper.js";
9
- import { SizeVariant as M } from "../../../types/common.js";
10
- import { useTheme as V } from "../../../hooks/useTheme/useTheme.js";
11
- const W = u((p, s) => {
10
+ import { get as V } from "../../../utils/helpers.js";
11
+ import { SizeVariant as W } from "../../../types/common.js";
12
+ const g = N((d, s) => {
12
13
  const {
14
+ theme: t
15
+ } = M(), {
13
16
  name: f,
14
17
  variant: r = m.Inline,
18
+ rounded: l = V(t, "loader.attrs.rounded", "none"),
15
19
  children: a,
16
- size: d = M.Md,
17
- animationProps: l = N,
20
+ size: u = W.Md,
21
+ animationProps: c = P,
18
22
  withWrapper: i = !0,
19
- WrapperView: o = "span",
20
- ...c
21
- } = p, {
22
- theme: h
23
- } = V(), e = () => a || /* @__PURE__ */ t(P, { ref: s, theme: h, $name: f, $variant: r, $size: d, $animationProps: l, "data-testid": n, ...c });
24
- return r === m.FullPage ? /* @__PURE__ */ t(w, { wrapperVariant: r, withWrapper: i, WrapperView: o, children: e() }) : i ? /* @__PURE__ */ t(A, { variant: r, as: o, children: e() }) : e();
23
+ WrapperView: n = "span",
24
+ ...h
25
+ } = d, e = () => a || /* @__PURE__ */ o($, { ref: s, theme: t, $name: f, $variant: r, $size: u, $animationProps: c, $rounded: l, "data-testid": p, ...h });
26
+ return r === m.FullPage ? /* @__PURE__ */ o(w, { wrapperVariant: r, withWrapper: i, WrapperView: n, children: e() }) : i ? /* @__PURE__ */ o(A, { variant: r, as: n, children: e() }) : e();
25
27
  });
26
- W.displayName = n;
28
+ g.displayName = p;
27
29
  export {
28
- W as Loader
30
+ g as Loader
29
31
  };
@@ -1,10 +1,11 @@
1
1
  import { ElementType, PropsWithChildren } from 'react';
2
- import { EnumOrPrimitive, SizeVariant, WrapperVariant } from '../../../types';
2
+ import { EnumOrPrimitive, SizeVariant, WrapperVariant, Rounded } from '../../../types';
3
3
  import { CommonCssComponentProps, CommonCssComponentStyledProps } from '../..';
4
4
  export type LoaderName = 'circle' | 'dots';
5
5
  export interface LoaderProps extends CommonCssComponentProps, PropsWithChildren {
6
6
  name?: LoaderName;
7
7
  variant?: EnumOrPrimitive<WrapperVariant>;
8
+ rounded?: Rounded;
8
9
  size?: EnumOrPrimitive<SizeVariant>;
9
10
  withWrapper?: boolean;
10
11
  animationProps?: string;
@@ -12,6 +13,7 @@ export interface LoaderProps extends CommonCssComponentProps, PropsWithChildren
12
13
  }
13
14
  export interface LoaderStyledProps extends CommonCssComponentStyledProps, PropsWithChildren {
14
15
  $name?: LoaderName;
16
+ $rounded?: Rounded;
15
17
  $variant?: EnumOrPrimitive<WrapperVariant>;
16
18
  $size?: EnumOrPrimitive<SizeVariant>;
17
19
  $animationProps?: string;