1mpacto-react-ui 0.2.0-beta.9 → 1.0.1

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 (214) hide show
  1. package/dist/assets/_colors.scss +80 -0
  2. package/dist/assets/_mixins.scss +32 -5
  3. package/dist/assets/_typography.scss +582 -0
  4. package/dist/assets/colors.css +40 -0
  5. package/dist/assets/core.css +1 -1
  6. package/dist/assets/fontfamily.css +1 -1
  7. package/dist/assets/fonts/PlusJakartaSans-Italic.ttf +0 -0
  8. package/dist/assets/fonts/PlusJakartaSans.ttf +0 -0
  9. package/dist/assets/style.css +1 -1
  10. package/dist/assets/toast.css +98 -194
  11. package/dist/assets/typography.css +96 -0
  12. package/dist/index.cjs +120 -117
  13. package/dist/index.d.ts +1 -0
  14. package/dist/index.mjs +27703 -27059
  15. package/dist/package.json.d.ts +46 -47
  16. package/dist/src/components/Alert/index.d.ts +1 -0
  17. package/dist/src/components/Badges/Badges.config.d.ts +57 -0
  18. package/dist/src/components/Badges/Badges.d.ts +1 -0
  19. package/dist/src/components/Badges/Badges.stories.d.ts +117 -2
  20. package/dist/src/components/Breadcrumbs/Breadcrumbs.config.d.ts +113 -0
  21. package/dist/src/components/Breadcrumbs/Breadcrumbs.d.ts +2 -1
  22. package/dist/src/components/Breadcrumbs/Breadcrumbs.stories.d.ts +221 -6
  23. package/dist/src/components/Button/Button.config.d.ts +70 -0
  24. package/dist/src/components/Button/Button.d.ts +1 -0
  25. package/dist/src/components/Button/Button.stories.d.ts +129 -4
  26. package/dist/src/components/ButtonIcon/ButtonIcon.config.d.ts +53 -0
  27. package/dist/src/components/ButtonIcon/ButtonIcon.d.ts +1 -0
  28. package/dist/src/components/ButtonIcon/ButtonIcon.stories.d.ts +123 -4
  29. package/dist/src/components/ButtonPopover/ButtonPopover.d.ts +1 -0
  30. package/dist/src/components/ButtonPopover/ButtonPopover.stories.d.ts +258 -2
  31. package/dist/src/components/Calendar/Calendar.d.ts +3 -1
  32. package/dist/src/components/Calendar/Calendar.stories.d.ts +283 -2
  33. package/dist/src/components/Calendar/CalendarButton.d.ts +1 -0
  34. package/dist/src/components/Calendar/CalendarCell.d.ts +1 -0
  35. package/dist/src/components/Calendar/CalendarMonth.d.ts +1 -0
  36. package/dist/src/components/Calendar/CalendarRange.d.ts +1 -0
  37. package/dist/src/components/Calendar/CalendarYear.d.ts +1 -0
  38. package/dist/src/components/Chart/DoughnutChart.d.ts +1 -0
  39. package/dist/src/components/Chart/GradientBarChart.d.ts +1 -0
  40. package/dist/src/components/Chart/GradientBarChart.stories.d.ts +71 -4
  41. package/dist/src/components/Chart/GradientLineChart.d.ts +1 -0
  42. package/dist/src/components/Chart/GradientLineChart.stories.d.ts +82 -4
  43. package/dist/src/components/Chart/LineChart.d.ts +1 -0
  44. package/dist/src/components/Chart/LineChart.stories.d.ts +35 -2
  45. package/dist/src/components/Chips/Chips.config.d.ts +35 -0
  46. package/dist/src/components/Chips/Chips.d.ts +1 -0
  47. package/dist/src/components/Chips/Chips.stories.d.ts +137 -2
  48. package/dist/src/components/Collapse/Collapse.d.ts +1 -0
  49. package/dist/src/components/Collapse/Collapse.stories.d.ts +89 -2
  50. package/dist/src/components/Collapse/CollapseV2.d.ts +1 -0
  51. package/dist/src/components/Collapse/CollapseV2.stories.d.ts +59 -2
  52. package/dist/src/components/Colors/Colors.stories.d.ts +2 -1
  53. package/dist/src/components/DatePicker/DatePicker.d.ts +1 -0
  54. package/dist/src/components/DatePicker/DatePicker.stories.d.ts +221 -2
  55. package/dist/src/components/DatePicker/DateRangePicker.d.ts +1 -0
  56. package/dist/src/components/DatePicker/FilterDate.d.ts +2 -1
  57. package/dist/src/components/DatePicker/FilterDate.stories.d.ts +232 -3
  58. package/dist/src/components/DatePicker/MonthYearPicker.d.ts +1 -0
  59. package/dist/src/components/DatePicker/MonthYearPicker.stories.d.ts +198 -2
  60. package/dist/src/components/ErrorMessage/ErrorMessage.config.d.ts +8 -0
  61. package/dist/src/components/ErrorMessage/ErrorMessage.d.ts +1 -0
  62. package/dist/src/components/ErrorMessage/ErrorMessage.stories.d.ts +39 -2
  63. package/dist/src/components/FilterContainer/FilterContainer.d.ts +1 -0
  64. package/dist/src/components/FilterContainer/FilterContainer.stories.d.ts +165 -0
  65. package/dist/src/components/Input/InputFloatingInner.config.d.ts +9 -0
  66. package/dist/src/components/Input/InputFloatingInner.d.ts +1 -0
  67. package/dist/src/components/Input/InputFloatingInner.stories.d.ts +177 -6
  68. package/dist/src/components/Input/InputInnerLabel.config.d.ts +8 -0
  69. package/dist/src/components/Input/InputInnerLabel.d.ts +5 -0
  70. package/dist/src/components/Input/InputInnerLabel.stories.d.ts +205 -0
  71. package/dist/src/components/Input/InputNative.config.d.ts +9 -0
  72. package/dist/src/components/Input/InputNative.d.ts +1 -0
  73. package/dist/src/components/Input/InputNative.stories.d.ts +149 -5
  74. package/dist/src/components/Input/InputReguler.config.d.ts +9 -0
  75. package/dist/src/components/Input/InputReguler.d.ts +1 -0
  76. package/dist/src/components/Input/InputReguler.stories.d.ts +177 -6
  77. package/dist/src/components/Modal/ModalDialog.config.d.ts +9 -0
  78. package/dist/src/components/Modal/ModalDialog.d.ts +1 -0
  79. package/dist/src/components/Modal/ModalDialog.stories.d.ts +121 -2
  80. package/dist/src/components/NumberFormat/NumberFormat.d.ts +1 -0
  81. package/dist/src/components/NumberFormat/NumberFormat.stories.d.ts +373 -18
  82. package/dist/src/components/Pagination/Pagination.config.d.ts +5 -0
  83. package/dist/src/components/Pagination/Pagination.d.ts +2 -1
  84. package/dist/src/components/Pagination/Pagination.stories.d.ts +200 -3
  85. package/dist/src/components/Popover/Popover.d.ts +1 -0
  86. package/dist/src/components/Popover/Popover.stories.d.ts +216 -7
  87. package/dist/src/components/PortalComponent/PortalComponent.d.ts +1 -0
  88. package/dist/src/components/PortalComponent/PortalComponent.stories.d.ts +61 -0
  89. package/dist/src/components/RadioCheckbox/CheckboxTable.d.ts +1 -0
  90. package/dist/src/components/RadioCheckbox/RadioCheckbox.config.d.ts +41 -0
  91. package/dist/src/components/RadioCheckbox/RadioCheckbox.d.ts +1 -0
  92. package/dist/src/components/RadioCheckbox/RadioCheckbox.stories.d.ts +230 -8
  93. package/dist/src/components/RadioCheckbox/RadioCheckboxLabel.config.d.ts +25 -0
  94. package/dist/src/components/RadioCheckbox/RadioCheckboxLabel.d.ts +1 -0
  95. package/dist/src/components/RadioCheckbox/RadioCheckboxLabel.stories.d.ts +196 -4
  96. package/dist/src/components/SelectDropdownContainer/SelectDropdownContainer.config.d.ts +26 -0
  97. package/dist/src/components/SelectDropdownContainer/SelectDropdownContainer.d.ts +2 -1
  98. package/dist/src/components/SelectDropdownContainer/SelectDropdownContainer.stories.d.ts +5 -4
  99. package/dist/src/components/SelectDropdownContainer/styleConfig.d.ts +5 -1
  100. package/dist/src/components/Sidebar/ItemSidebar.config.d.ts +34 -0
  101. package/dist/src/components/Sidebar/ItemSidebar.d.ts +1 -0
  102. package/dist/src/components/Sidebar/Sidebar.config.d.ts +16 -0
  103. package/dist/src/components/Sidebar/Sidebar.d.ts +2 -1
  104. package/dist/src/components/Sidebar/Sidebar.stories.d.ts +6 -5
  105. package/dist/src/components/Step/Step.d.ts +1 -0
  106. package/dist/src/components/Step/Step.stories.d.ts +135 -2
  107. package/dist/src/components/Step/StepIndicator.d.ts +1 -0
  108. package/dist/src/components/Step/StepIndicator.stories.d.ts +148 -2
  109. package/dist/src/components/Switch/Switch.config.d.ts +26 -0
  110. package/dist/src/components/Switch/Switch.d.ts +1 -0
  111. package/dist/src/components/Switch/Switch.stories.d.ts +128 -2
  112. package/dist/src/components/Table/Table.config.d.ts +5 -0
  113. package/dist/src/components/Table/Table.d.ts +3 -3
  114. package/dist/src/components/Table/Table.stories.d.ts +71 -52
  115. package/dist/src/components/Table/TableSubMobile.d.ts +4 -0
  116. package/dist/src/components/Tabs/TabPanel.d.ts +1 -0
  117. package/dist/src/components/Tabs/Tabs.config.d.ts +31 -0
  118. package/dist/src/components/Tabs/Tabs.d.ts +2 -1
  119. package/dist/src/components/Tabs/Tabs.stories.d.ts +220 -3
  120. package/dist/src/components/TextEditor/TextEditor.d.ts +1 -0
  121. package/dist/src/components/TextEditor/TextEditor.stories.d.ts +59 -10
  122. package/dist/src/components/Textarea/Textarea.config.d.ts +31 -0
  123. package/dist/src/components/Textarea/Textarea.d.ts +1 -0
  124. package/dist/src/components/Textarea/Textarea.stories.d.ts +250 -3
  125. package/dist/src/components/Textarea/TextareaFloatingInner.config.d.ts +6 -0
  126. package/dist/src/components/Textarea/TextareaFloatingInner.d.ts +1 -0
  127. package/dist/src/components/Textarea/TextareaFloatingInner.stories.d.ts +260 -3
  128. package/dist/src/components/Textarea/TextareaInnerLabel.config.d.ts +7 -0
  129. package/dist/src/components/Textarea/TextareaInnerLabel.d.ts +5 -0
  130. package/dist/src/components/Textarea/TextareaInnerLabel.stories.d.ts +259 -0
  131. package/dist/src/components/TimeRange/TimeRange.d.ts +4 -0
  132. package/dist/src/components/TimeRange/TimeRange.stories.d.ts +186 -0
  133. package/dist/src/components/Timeline/Timeline.d.ts +1 -0
  134. package/dist/src/components/Timeline/Timeline.stories.d.ts +40 -2
  135. package/dist/src/components/Tooltip/Tooltip.d.ts +1 -0
  136. package/dist/src/components/Tooltip/Tooltip.stories.d.ts +159 -2
  137. package/dist/src/components/TruncateComponent/TruncateComponent.d.ts +1 -0
  138. package/dist/src/components/TruncateComponent/TruncateComponent.stories.d.ts +106 -2
  139. package/dist/src/components/Typography/Typography.stories.d.ts +2 -1
  140. package/dist/src/components/Upload/UploadFile.d.ts +1 -0
  141. package/dist/src/components/Upload/UploadFile.stories.d.ts +127 -2
  142. package/dist/src/components/Upload/UploadImage.d.ts +2 -1
  143. package/dist/src/components/Upload/UploadImage.stories.d.ts +145 -3
  144. package/dist/src/components/Upload/UploadMultipleFile.d.ts +2 -1
  145. package/dist/src/components/Upload/UploadMultipleFile.stories.d.ts +190 -3
  146. package/dist/src/components/Virtualization/ListVirtualization.d.ts +1 -0
  147. package/dist/src/components/Virtualization/ListVirtualization.stories.d.ts +279 -2
  148. package/dist/src/components/Virtualization/TableVirtualization.d.ts +1 -0
  149. package/dist/src/components/Virtualization/TableVirtualization.stories.d.ts +296 -2
  150. package/dist/src/components/index.d.ts +15 -8
  151. package/dist/src/components/screens/Screens.stories.d.ts +14 -0
  152. package/dist/src/config/bigNumber/index.d.ts +1 -0
  153. package/dist/src/config/components/borderRadius.d.ts +1 -0
  154. package/dist/src/config/components/font.d.ts +7 -0
  155. package/dist/src/config/components/gap.d.ts +1 -0
  156. package/dist/src/config/components/tinymce.d.ts +1 -0
  157. package/dist/src/config/components/typography.d.ts +3 -49
  158. package/dist/src/config/tailwind/index.d.ts +3 -1
  159. package/dist/src/config/tailwind/nativeScreen.d.ts +3 -0
  160. package/dist/src/config/tailwind/typography.d.ts +1 -0
  161. package/dist/src/hooks/index.d.ts +6 -3
  162. package/dist/src/hooks/useAsyncDebounce.d.ts +9 -0
  163. package/dist/src/hooks/useCombinedResizeObserver.d.ts +67 -0
  164. package/dist/src/hooks/useCountdown.d.ts +67 -3
  165. package/dist/src/hooks/useDeepCompareEffect.d.ts +14 -0
  166. package/dist/src/hooks/useElementOrWindowMediaQuery.d.ts +9 -0
  167. package/dist/src/hooks/useEventListener.d.ts +28 -0
  168. package/dist/src/hooks/useMasonry.d.ts +80 -0
  169. package/dist/src/hooks/useMergeRefs.d.ts +27 -0
  170. package/dist/src/hooks/useOtpInput.d.ts +200 -0
  171. package/dist/src/hooks/useStateRef.d.ts +9 -0
  172. package/dist/src/interfaces/components/Alert/index.d.ts +9 -0
  173. package/dist/src/interfaces/components/Badges/index.d.ts +31 -1
  174. package/dist/src/interfaces/components/Breadcrumbs/index.d.ts +86 -2
  175. package/dist/src/interfaces/components/Button/index.d.ts +47 -2
  176. package/dist/src/interfaces/components/ButtonIcon/index.d.ts +37 -0
  177. package/dist/src/interfaces/components/ButtonPopover/index.d.ts +79 -0
  178. package/dist/src/interfaces/components/Calendar/index.d.ts +385 -3
  179. package/dist/src/interfaces/components/Chart/index.d.ts +461 -0
  180. package/dist/src/interfaces/components/Checkbox/index.d.ts +13 -0
  181. package/dist/src/interfaces/components/Chips/index.d.ts +39 -1
  182. package/dist/src/interfaces/components/Collapse/index.d.ts +61 -0
  183. package/dist/src/interfaces/components/DatePicker/index.d.ts +278 -1
  184. package/dist/src/interfaces/components/ErrorMessage/index.d.ts +17 -1
  185. package/dist/src/interfaces/components/FilterContainer/index.d.ts +103 -0
  186. package/dist/src/interfaces/components/Input/index.d.ts +194 -0
  187. package/dist/src/interfaces/components/Modal/index.d.ts +46 -0
  188. package/dist/src/interfaces/components/NumberFormat/index.d.ts +26 -0
  189. package/dist/src/interfaces/components/Pagination/index.d.ts +84 -0
  190. package/dist/src/interfaces/components/Popover/index.d.ts +99 -1
  191. package/dist/src/interfaces/components/RadioCheckbox/RadioCheckbox.d.ts +60 -2
  192. package/dist/src/interfaces/components/RadioCheckbox/RadioCheckboxLabel.d.ts +47 -1
  193. package/dist/src/interfaces/components/SelectDropdownContainer/index.d.ts +197 -2
  194. package/dist/src/interfaces/components/Sidebar/index.d.ts +230 -1
  195. package/dist/src/interfaces/components/Step/index.d.ts +154 -0
  196. package/dist/src/interfaces/components/Switch/index.d.ts +54 -1
  197. package/dist/src/interfaces/components/Table/index.d.ts +403 -6
  198. package/dist/src/interfaces/components/Tabs/index.d.ts +131 -1
  199. package/dist/src/interfaces/components/TextEditor/index.d.ts +13 -0
  200. package/dist/src/interfaces/components/Textarea/index.d.ts +170 -0
  201. package/dist/src/interfaces/components/TimeRange/index.d.ts +129 -0
  202. package/dist/src/interfaces/components/Timeline/index.d.ts +37 -0
  203. package/dist/src/interfaces/components/Tooltip/index.d.ts +57 -0
  204. package/dist/src/interfaces/components/TruncateComponent/index.d.ts +34 -0
  205. package/dist/src/interfaces/components/UploadFile/index.d.ts +187 -0
  206. package/dist/src/interfaces/components/Virtualization/ListVirtualization.d.ts +139 -0
  207. package/dist/src/interfaces/components/Virtualization/TableVirtualization.d.ts +144 -0
  208. package/dist/src/main.d.ts +1 -0
  209. package/dist/src/utils/common.d.ts +5 -4
  210. package/dist/src/utils/constant.d.ts +1 -0
  211. package/dist/types-external/table.d.ts +3 -0
  212. package/package.json +46 -47
  213. package/dist/index.cjs.map +0 -1
  214. package/dist/index.mjs.map +0 -1
@@ -1,5 +1,6 @@
1
- import { StoryObj } from '@storybook/react-vite';
1
+ import { StoryObj } from '@storybook/react';
2
2
  import { ITableVirtualization } from '../../interfaces/components/Virtualization/TableVirtualization';
3
+
3
4
  declare const meta: {
4
5
  title: string;
5
6
  component: import('react').ForwardRefExoticComponent<ITableVirtualization & import('react').RefAttributes<import('react-virtuoso').TableVirtuosoHandle>>;
@@ -7,7 +8,300 @@ declare const meta: {
7
8
  layout: string;
8
9
  };
9
10
  tags: string[];
10
- argTypes: {};
11
+ argTypes: {
12
+ totalCount: {
13
+ control: "number";
14
+ description: string;
15
+ table: {
16
+ category: string;
17
+ type: {
18
+ summary: string;
19
+ };
20
+ defaultValue: {
21
+ summary: string;
22
+ };
23
+ };
24
+ };
25
+ computeItemKey: {
26
+ type: "function";
27
+ description: string;
28
+ table: {
29
+ category: string;
30
+ type: {
31
+ summary: string;
32
+ };
33
+ defaultValue: {
34
+ summary: string;
35
+ };
36
+ };
37
+ };
38
+ context: {
39
+ control: "object";
40
+ description: string;
41
+ table: {
42
+ category: string;
43
+ type: {
44
+ summary: string;
45
+ };
46
+ defaultValue: {
47
+ summary: string;
48
+ };
49
+ };
50
+ };
51
+ classNameContainer: {
52
+ control: "text";
53
+ description: string;
54
+ table: {
55
+ category: string;
56
+ type: {
57
+ summary: string;
58
+ };
59
+ defaultValue: {
60
+ summary: string;
61
+ };
62
+ };
63
+ };
64
+ typeHight: {
65
+ control: {
66
+ type: "select";
67
+ };
68
+ options: string[];
69
+ description: string;
70
+ table: {
71
+ category: string;
72
+ type: {
73
+ summary: string;
74
+ };
75
+ defaultValue: {
76
+ summary: string;
77
+ };
78
+ };
79
+ };
80
+ typeCalculateItemSize: {
81
+ control: {
82
+ type: "select";
83
+ };
84
+ options: string[];
85
+ description: string;
86
+ table: {
87
+ category: string;
88
+ type: {
89
+ summary: string;
90
+ };
91
+ defaultValue: {
92
+ summary: string;
93
+ };
94
+ };
95
+ };
96
+ itemSize: {
97
+ type: "function";
98
+ description: string;
99
+ table: {
100
+ category: string;
101
+ type: {
102
+ summary: string;
103
+ };
104
+ defaultValue: {
105
+ summary: string;
106
+ };
107
+ };
108
+ };
109
+ itemSizeNames: {
110
+ control: "object";
111
+ description: string;
112
+ table: {
113
+ category: string;
114
+ type: {
115
+ summary: string;
116
+ };
117
+ defaultValue: {
118
+ summary: string;
119
+ };
120
+ };
121
+ };
122
+ minHeightItem: {
123
+ control: "number";
124
+ description: string;
125
+ table: {
126
+ category: string;
127
+ type: {
128
+ summary: string;
129
+ };
130
+ defaultValue: {
131
+ summary: string;
132
+ };
133
+ };
134
+ };
135
+ maxHeightTable: {
136
+ control: "number";
137
+ description: string;
138
+ table: {
139
+ category: string;
140
+ type: {
141
+ summary: string;
142
+ };
143
+ defaultValue: {
144
+ summary: string;
145
+ };
146
+ };
147
+ };
148
+ minLengthItem: {
149
+ control: "number";
150
+ description: string;
151
+ table: {
152
+ category: string;
153
+ type: {
154
+ summary: string;
155
+ };
156
+ defaultValue: {
157
+ summary: string;
158
+ };
159
+ };
160
+ };
161
+ overscan: {
162
+ type: "function";
163
+ description: string;
164
+ table: {
165
+ category: string;
166
+ type: {
167
+ summary: string;
168
+ };
169
+ defaultValue: {
170
+ summary: string;
171
+ };
172
+ };
173
+ };
174
+ increaseViewportBy: {
175
+ type: "function";
176
+ description: string;
177
+ table: {
178
+ category: string;
179
+ type: {
180
+ summary: string;
181
+ };
182
+ defaultValue: {
183
+ summary: string;
184
+ };
185
+ };
186
+ };
187
+ idContainer: {
188
+ control: "text";
189
+ description: string;
190
+ table: {
191
+ category: string;
192
+ type: {
193
+ summary: string;
194
+ };
195
+ defaultValue: {
196
+ summary: string;
197
+ };
198
+ };
199
+ };
200
+ triggerCalCulateContainer: {
201
+ control: "object";
202
+ description: string;
203
+ table: {
204
+ category: string;
205
+ type: {
206
+ summary: string;
207
+ };
208
+ defaultValue: {
209
+ summary: string;
210
+ };
211
+ };
212
+ };
213
+ accumulationHeight: {
214
+ control: "number";
215
+ description: string;
216
+ table: {
217
+ category: string;
218
+ type: {
219
+ summary: string;
220
+ };
221
+ defaultValue: {
222
+ summary: string;
223
+ };
224
+ };
225
+ };
226
+ delayTriggerCalculateHeight: {
227
+ control: "number";
228
+ description: string;
229
+ table: {
230
+ category: string;
231
+ type: {
232
+ summary: string;
233
+ };
234
+ defaultValue: {
235
+ summary: string;
236
+ };
237
+ };
238
+ };
239
+ increaseTotalCount: {
240
+ control: "number";
241
+ description: string;
242
+ table: {
243
+ category: string;
244
+ type: {
245
+ summary: string;
246
+ };
247
+ defaultValue: {
248
+ summary: string;
249
+ };
250
+ };
251
+ };
252
+ itemContent: {
253
+ type: "function";
254
+ description: string;
255
+ table: {
256
+ category: string;
257
+ type: {
258
+ summary: string;
259
+ };
260
+ defaultValue: {
261
+ summary: string;
262
+ };
263
+ };
264
+ };
265
+ fixedHeaderContent: {
266
+ type: "function";
267
+ description: string;
268
+ table: {
269
+ category: string;
270
+ type: {
271
+ summary: string;
272
+ };
273
+ defaultValue: {
274
+ summary: string;
275
+ };
276
+ };
277
+ };
278
+ component: {
279
+ control: "object";
280
+ description: string;
281
+ table: {
282
+ category: string;
283
+ type: {
284
+ summary: string;
285
+ };
286
+ defaultValue: {
287
+ summary: string;
288
+ };
289
+ };
290
+ };
291
+ endReached: {
292
+ type: "function";
293
+ description: string;
294
+ table: {
295
+ category: string;
296
+ type: {
297
+ summary: string;
298
+ };
299
+ defaultValue: {
300
+ summary: string;
301
+ };
302
+ };
303
+ };
304
+ };
11
305
  render: (args: ITableVirtualization & import('react').RefAttributes<import('react-virtuoso').TableVirtuosoHandle>) => import("react/jsx-runtime").JSX.Element;
12
306
  };
13
307
  export default meta;
@@ -1,15 +1,15 @@
1
1
  import { ICollapse } from './../interfaces/components/Collapse';
2
- import { IMasonryLayout } from './../hooks/useMasonry';
3
2
  import { IChips } from './../interfaces/components/Chips';
4
- import { IDatePicker } from './../interfaces/components/DatePicker/index';
3
+ import { IDatePicker } from './../interfaces/components/DatePicker';
5
4
  import { default as TPublish } from './TPublish/TPublish';
6
5
  import { default as Button } from './Button/Button';
7
6
  import { default as Popover } from './Popover/Popover';
8
7
  import { IRefPopover, IPopover } from '../interfaces/components/Popover';
9
8
  import { default as InputFloatingInner } from './Input/InputFloatingInner';
10
9
  import { default as InputReguler } from './Input/InputReguler';
11
- import { default as Table, ConfigTable } from './Table/Table';
12
- import { ITableColumnDef, ITableConfig } from '../interfaces/components/Table';
10
+ import { default as Table } from './Table/Table';
11
+ import { default as TableSubComponent } from './Table/TableSubMobile';
12
+ import { ITableColumnDef, ITableColumnBreakpoint, ITableConfig, TTableRenderSubComponent, TTableHandlerRowClick } from '../interfaces/components/Table';
13
13
  import { default as TableVirtualization } from './Virtualization/TableVirtualization';
14
14
  import { TableVirtuosoHandle as IRefTableVirtualization, VirtuosoHandle as IRefListVirtualization } from 'react-virtuoso';
15
15
  import { default as ListVirtualization } from './Virtualization/ListVirtualization';
@@ -23,6 +23,7 @@ import { default as CalendarRange } from './Calendar/CalendarRange';
23
23
  import { default as DatePicker } from './DatePicker/DatePicker';
24
24
  import { default as DateRangePicker } from './DatePicker/DateRangePicker';
25
25
  import { default as FilterDate } from './DatePicker/FilterDate';
26
+ import { TKeyLocale } from '../interfaces/components/Calendar';
26
27
  import { IFilterDateButtonList, TKeyFilterDateButtonListType } from '../interfaces/components/DatePicker';
27
28
  import { default as Switch } from './Switch/Switch';
28
29
  import { default as ButtonIcon } from './ButtonIcon/ButtonIcon';
@@ -41,6 +42,7 @@ import { default as FilterContainer } from './FilterContainer/FilterContainer';
41
42
  import { default as NumberFormat } from './NumberFormat/NumberFormat';
42
43
  import { PatternFormat } from 'react-number-format';
43
44
  import { IInputReguler, IInputFloatingInner, IInputNative } from '../interfaces/components/Input';
45
+ import { ConfigTable } from './Table/Table.config';
44
46
  import { default as PortalComponent } from './PortalComponent/PortalComponent';
45
47
  import { ToastContainer as AlertContainer } from 'react-toastify';
46
48
  import { TButtonVariants, TButtonSize } from '../interfaces/components/Button';
@@ -62,19 +64,24 @@ import { IUploadMultipleFileValue } from '../interfaces/components/UploadFile';
62
64
  import { default as ErrorMessage } from './ErrorMessage/ErrorMessage';
63
65
  import { default as TextareaFloatingInner } from './Textarea/TextareaFloatingInner';
64
66
  import { default as Step } from './Step/Step';
65
- import { IDataStepList } from '../interfaces/components/Step/index';
67
+ import { IDataStepList } from '../interfaces/components/Step';
66
68
  import { default as LineChart } from './Chart/LineChart';
67
69
  import { default as Tooltip } from './Tooltip/Tooltip';
68
70
  import { default as ButtonPopover } from './ButtonPopover/ButtonPopover';
69
- import { IRefButtonPopover } from '../interfaces/components/ButtonPopover/index';
71
+ import { IRefButtonPopover } from '../interfaces/components/ButtonPopover';
70
72
  import { default as GradientLineChart } from './Chart/GradientLineChart';
71
73
  import { default as GradientBarChart } from './Chart/GradientBarChart';
72
74
  import { default as StepIndicator } from './Step/StepIndicator';
73
75
  import { default as TextEditor } from './TextEditor/TextEditor';
74
76
  import { ITextEditorProps } from '../interfaces/components/TextEditor';
75
77
  import { default as CollapseV2 } from './Collapse/CollapseV2';
78
+ import { default as TimeRange } from './TimeRange/TimeRange';
79
+ import { ITimeRangeListTime, ITimeRange, TTimeRangeValue } from '../interfaces/components/TimeRange';
80
+ import { default as TextareaInnerLabel } from './Textarea/TextareaInnerLabel';
81
+ import { default as InputInnerLabel } from './Input/InputInnerLabel';
82
+
76
83
  import * as utilTable from '@tanstack/react-table';
77
84
  import type * as SelectDropdownContainerType from 'react-select';
78
85
  import type * as FilterContainerType from '../interfaces/components/FilterContainer';
79
- export { TPublish, Button, Popover, Calendar, CalendarRange, DatePicker, DateRangePicker, FilterDate, InputFloatingInner, InputReguler, Pagination, Tabs, TabPanel, Table, TableVirtualization, ListVirtualization, SelectDropdownContainer, utilTable, Switch, ButtonIcon, Badges, Chips, RadioCheckbox, RadioCheckboxLabel, Breadcrumbs, Sidebar, Collapse, ModalDialog, SelectDropdownContainerComponents, Timeline, FilterContainer, NumberFormat, PatternFormat, DefaultCheckedChecboxIcon, DefaultRadioChecboxIcon, ConfigTable, PortalComponent, AlertContainer, UploadFile, TruncateComponent, UploadImage, Textarea, DoughnutChart, MonthYearPicker, CheckboxTable, InputNative, UploadMultipleFile, ErrorMessage, TextareaFloatingInner, Step, LineChart, Tooltip, ButtonPopover, GradientLineChart, GradientBarChart, StepIndicator, TextEditor, CollapseV2, };
80
- export type { ITableColumnDef, IRefPopover, IRefTableVirtualization, IRefListVirtualization, IRefSelectDropdownContainer, IChildrenSelectDropdownContainer, ISidebarModule, SelectDropdownContainerType, FilterContainerType, IInputReguler, IInputFloatingInner, ITableConfig, TButtonVariants, TButtonSize, ITabsList, TTypeEventTabs, ITextarea, IListVirtualization, ITableVirtualization, IRefSidebar, IChildrenIconCompany, ICloneElementSidebar, IDataDoughnutChart, IDataInnerLabelDoughnutChart, ISelectDropdownContainer, IDatePicker, IPopover, IInputNative, IUploadMultipleFileValue, IDataStepList, IDataLineChart, IChips, IRefButtonPopover, TGradientLineChartCustomTooltip, IGradientLineChart, IGradientLineChartDataSet, IGradientLineChartData, TGradientBarChartCustomTooltip, IGradientBarChart, IGradientBarChartDataSet, IGradientBarChartData, IFilterDateButtonList, TKeyFilterDateButtonListType, IMasonryLayout, IDataGradientBarChartCustomTooltip, IDataGradientLineChartCustomTooltip, ITextEditorProps, ICollapse, };
86
+ export { TPublish, Button, Popover, Calendar, CalendarRange, DatePicker, DateRangePicker, FilterDate, InputFloatingInner, InputReguler, Pagination, Tabs, TabPanel, Table, TableVirtualization, ListVirtualization, SelectDropdownContainer, utilTable, Switch, ButtonIcon, Badges, Chips, RadioCheckbox, RadioCheckboxLabel, Breadcrumbs, Sidebar, Collapse, ModalDialog, SelectDropdownContainerComponents, Timeline, FilterContainer, NumberFormat, PatternFormat, DefaultCheckedChecboxIcon, DefaultRadioChecboxIcon, ConfigTable, PortalComponent, AlertContainer, UploadFile, TruncateComponent, UploadImage, Textarea, DoughnutChart, MonthYearPicker, CheckboxTable, InputNative, UploadMultipleFile, ErrorMessage, TextareaFloatingInner, Step, LineChart, Tooltip, ButtonPopover, GradientLineChart, GradientBarChart, StepIndicator, TextEditor, CollapseV2, TableSubComponent, TimeRange, TextareaInnerLabel, InputInnerLabel, };
87
+ export type { ITableColumnDef, IRefPopover, IRefTableVirtualization, IRefListVirtualization, IRefSelectDropdownContainer, IChildrenSelectDropdownContainer, ISidebarModule, SelectDropdownContainerType, FilterContainerType, IInputReguler, IInputFloatingInner, ITableConfig, TButtonVariants, TButtonSize, ITabsList, TTypeEventTabs, ITextarea, IListVirtualization, ITableVirtualization, IRefSidebar, IChildrenIconCompany, ICloneElementSidebar, IDataDoughnutChart, IDataInnerLabelDoughnutChart, ISelectDropdownContainer, IDatePicker, IPopover, IInputNative, IUploadMultipleFileValue, IDataStepList, IDataLineChart, IChips, IRefButtonPopover, TGradientLineChartCustomTooltip, IGradientLineChart, IGradientLineChartDataSet, IGradientLineChartData, TGradientBarChartCustomTooltip, IGradientBarChart, IGradientBarChartDataSet, IGradientBarChartData, IFilterDateButtonList, TKeyFilterDateButtonListType, IDataGradientBarChartCustomTooltip, IDataGradientLineChartCustomTooltip, ITextEditorProps, ICollapse, ITableColumnBreakpoint, TTableRenderSubComponent, TTableHandlerRowClick, TKeyLocale, ITimeRangeListTime, ITimeRange, TTimeRangeValue, };
@@ -0,0 +1,14 @@
1
+ import { StoryObj } from '@storybook/react';
2
+
3
+ declare const meta: {
4
+ title: string;
5
+ parameters: {
6
+ layout: string;
7
+ };
8
+ tags: string[];
9
+ argTypes: {};
10
+ render: () => import("react/jsx-runtime").JSX.Element;
11
+ };
12
+ export default meta;
13
+ type Story = StoryObj<typeof meta>;
14
+ export declare const Default: Story;
@@ -1,4 +1,5 @@
1
1
  import { BigNumber as TypeBigNumber } from 'bignumber.js';
2
+
2
3
  type TBigNumber = string | number;
3
4
  interface BigNumberConfig {
4
5
  EXPONENTIAL_AT?: number | [number, number];
@@ -10,3 +10,4 @@ export declare const configBorderRadius: {
10
10
  '24px': string;
11
11
  full: string;
12
12
  };
13
+ export declare const keysBorderRadius: string[];
@@ -0,0 +1,7 @@
1
+ export type TFont = 'lato' | 'inter' | 'pJakartaSans';
2
+ export declare const configFont: {
3
+ lato: string;
4
+ inter: string;
5
+ pJakartaSans: string;
6
+ };
7
+ export declare const keysFont: string[];
@@ -49,3 +49,4 @@ export declare const configGap: {
49
49
  'gap-x-10': string;
50
50
  'gap-y-10': string;
51
51
  };
52
+ export declare const keysGap: string[];
@@ -1,4 +1,5 @@
1
1
  import { IAllProps } from '@tinymce/tinymce-react';
2
+
2
3
  declare const tinymce: ({ label }: {
3
4
  label?: string;
4
5
  }) => IAllProps;
@@ -1,49 +1,3 @@
1
- export type Itypography = 'payhere-h1' | 'payhere-h2' | 'payhere-h3' | 'payhere-h4' | 'payhere-h5' | 'payhere-h6' | 'payhere-body-lr' | 'payhere-body-lm' | 'payhere-body-ls' | 'payhere-body-lb' | 'payhere-body-mr' | 'payhere-body-mm' | 'payhere-body-ms' | 'payhere-body-mb' | 'payhere-label-r' | 'payhere-label-m' | 'payhere-body-sr' | 'payhere-body-sm' | 'payhere-body-esr' | 'payhere-body-esm' | 'laba-title-lb' | 'laba-title-ls' | 'laba-title-lr' | 'laba-title-mb' | 'laba-title-ms' | 'laba-title-mr' | 'laba-h1' | 'laba-h1-b' | 'laba-h1-sb' | 'laba-h1-r' | 'laba-h2' | 'laba-h2-b' | 'laba-h2-sb' | 'laba-h2-r' | 'laba-base-rb' | 'laba-base-rs' | 'laba-base-rr' | 'laba-base-sb' | 'laba-base-ss' | 'laba-base-sr' | 'laba-subtitle-rb' | 'laba-subtitle-rs' | 'laba-subtitle-rr' | 'laba-subtitle-sb' | 'laba-subtitle-ss' | 'laba-subtitle-sr';
2
- export declare const configtypography: {
3
- 'payhere-h1': string;
4
- 'payhere-h2': string;
5
- 'payhere-h3': string;
6
- 'payhere-h4': string;
7
- 'payhere-h5': string;
8
- 'payhere-h6': string;
9
- 'payhere-body-lr': string;
10
- 'payhere-body-lm': string;
11
- 'payhere-body-ls': string;
12
- 'payhere-body-lb': string;
13
- 'payhere-body-mr': string;
14
- 'payhere-body-mm': string;
15
- 'payhere-body-ms': string;
16
- 'payhere-body-mb': string;
17
- 'payhere-label-r': string;
18
- 'payhere-label-m': string;
19
- 'payhere-body-sr': string;
20
- 'payhere-body-sm': string;
21
- 'payhere-body-esr': string;
22
- 'payhere-body-esm': string;
23
- 'laba-title-lb': string;
24
- 'laba-title-ls': string;
25
- 'laba-title-lr': string;
26
- 'laba-title-mb': string;
27
- 'laba-title-ms': string;
28
- 'laba-title-mr': string;
29
- 'laba-h1': string;
30
- 'laba-h1-b': string;
31
- 'laba-h1-sb': string;
32
- 'laba-h1-r': string;
33
- 'laba-h2': string;
34
- 'laba-h2-b': string;
35
- 'laba-h2-sb': string;
36
- 'laba-h2-r': string;
37
- 'laba-base-rb': string;
38
- 'laba-base-rs': string;
39
- 'laba-base-rr': string;
40
- 'laba-base-sb': string;
41
- 'laba-base-ss': string;
42
- 'laba-base-sr': string;
43
- 'laba-subtitle-rb': string;
44
- 'laba-subtitle-rs': string;
45
- 'laba-subtitle-rr': string;
46
- 'laba-subtitle-sb': string;
47
- 'laba-subtitle-ss': string;
48
- 'laba-subtitle-sr': string;
49
- };
1
+ export type Itypography = 'payhere-h1' | 'payhere-h2' | 'payhere-h3' | 'payhere-h4' | 'payhere-h5' | 'payhere-h6' | 'payhere-body-lr' | 'payhere-body-lm' | 'payhere-body-ls' | 'payhere-body-lb' | 'payhere-body-mr' | 'payhere-body-mm' | 'payhere-body-ms' | 'payhere-body-mb' | 'payhere-label-r' | 'payhere-label-m' | 'payhere-label-sb' | 'payhere-label-b' | 'payhere-body-sr' | 'payhere-body-sm' | 'payhere-body-smb' | 'payhere-body-sb' | 'payhere-body-esr' | 'payhere-body-esm' | 'payhere-body-esmb' | 'payhere-body-esb' | 'laba-title-lb' | 'laba-title-ls' | 'laba-title-lr' | 'laba-title-mb' | 'laba-title-ms' | 'laba-title-mr' | 'laba-h1' | 'laba-h1-b' | 'laba-h1-sb' | 'laba-h1-r' | 'laba-h2' | 'laba-h2-b' | 'laba-h2-sb' | 'laba-h2-r' | 'laba-base-rb' | 'laba-base-rs' | 'laba-base-rr' | 'laba-base-sb' | 'laba-base-ss' | 'laba-base-sr' | 'laba-subtitle-rb' | 'laba-subtitle-rs' | 'laba-subtitle-rr' | 'laba-subtitle-sb' | 'laba-subtitle-ss' | 'laba-subtitle-sr' | 'bill-h1' | 'bill-h2' | 'bill-h3' | 'bill-h4' | 'bill-h5' | 'bill-h6' | 'bill-body-lr' | 'bill-body-lm' | 'bill-body-lsm' | 'bill-body-blb' | 'bill-body-mr' | 'bill-body-mm' | 'bill-body-msm' | 'bill-body-mb' | 'bill-label-r' | 'bill-label-m' | 'bill-label-sm' | 'bill-label-b' | 'bill-body-sr' | 'bill-body-sm' | 'bill-body-ssm' | 'bill-body-sb' | 'bill-body-esr' | 'bill-body-ems' | 'bill-body-essm' | 'bill-body-esb';
2
+ export declare const configtypography: Record<Itypography, string>;
3
+ export declare const keysTypography: string[];
@@ -1,4 +1,6 @@
1
1
  import { default as ConfigColors } from './colors';
2
2
  import { default as configTypography, configTypographyLabaBisnis, configTypographyPayhere } from './typography';
3
3
  import { default as configScreens } from './screen';
4
- export { ConfigColors, configTypography, configTypographyLabaBisnis, configTypographyPayhere, configScreens };
4
+ import { default as configNativeScreens } from './nativeScreen';
5
+
6
+ export { ConfigColors, configTypography, configTypographyLabaBisnis, configTypographyPayhere, configScreens, configNativeScreens, };
@@ -0,0 +1,3 @@
1
+ export type INativeScreen = Record<string, number>;
2
+ declare const nativeScreens: INativeScreen;
3
+ export default nativeScreens;
@@ -1,6 +1,7 @@
1
1
  export type ITypography = Record<string, [string, Record<string, string | number>]>;
2
2
  export declare const configTypographyPayhere: ITypography;
3
3
  export declare const configTypographyLabaBisnis: ITypography;
4
+ export declare const configTypographyBillId: ITypography;
4
5
  declare const _default: {
5
6
  [x: string]: [string, Record<string, string | number>];
6
7
  };
@@ -1,10 +1,13 @@
1
1
  import { default as useElementOrWindowMediaQuery } from './useElementOrWindowMediaQuery';
2
- import { default as useCountdown } from './useCountdown';
2
+ import { default as useCountdown, IUseCountdownReturn, IUseCountdown } from './useCountdown';
3
3
  import { default as useAsyncDebounce } from './useAsyncDebounce';
4
4
  import { default as useCombinedResizeObserver } from './useCombinedResizeObserver';
5
5
  import { default as useStateRef } from './useStateRef';
6
6
  import { useMergeRefs } from './useMergeRefs';
7
7
  import { useDeepCompareEffect, useDeepCompareMemoize } from './useDeepCompareEffect';
8
8
  import { useEventListener } from './useEventListener';
9
- import { default as useMasonry } from './useMasonry';
10
- export { useElementOrWindowMediaQuery, useCountdown, useAsyncDebounce, useCombinedResizeObserver, useStateRef, useDeepCompareEffect, useDeepCompareMemoize, useMergeRefs, useEventListener, useMasonry, };
9
+ import { default as useMasonry, IMasonryLayout } from './useMasonry';
10
+ import { default as useOtpInput, IUseOtpInput, IUseOtpInputReturn } from './useOtpInput';
11
+
12
+ export { useElementOrWindowMediaQuery, useCountdown, useAsyncDebounce, useCombinedResizeObserver, useStateRef, useDeepCompareEffect, useDeepCompareMemoize, useMergeRefs, useEventListener, useMasonry, useOtpInput, };
13
+ export type { IUseOtpInput, IUseOtpInputReturn, IMasonryLayout, IUseCountdownReturn, IUseCountdown };
@@ -1,2 +1,11 @@
1
+ /**
2
+ * [ID] : Hook untuk melakukan debounce pada fungsi asinkron.
3
+ * [EN] : Hook to debounce an asynchronous function.
4
+ * @template T - [ID] : Tipe fungsi asinkron. [EN] : Asynchronous function type.
5
+ * @param defaultFn - [ID] : Fungsi yang akan di-debounce. [EN] : Function to be debounced.
6
+ * @param defaultWait - [ID] : Waktu tunggu default dalam milidetik (default: 0).
7
+ * [EN] : Default wait time in milliseconds (default: 0).
8
+ * @returns [ID] : Fungsi yang sudah di-debounce. [EN] : Debounced function.
9
+ */
1
10
  declare function useAsyncDebounce<T extends (...args: any[]) => Promise<any>>(defaultFn: T, defaultWait?: number): (...args: Parameters<T>) => Promise<ReturnType<T>>;
2
11
  export default useAsyncDebounce;
@@ -1,22 +1,89 @@
1
1
  import { default as React } from 'react';
2
+
3
+ /**
4
+ * [ID] : Interface untuk persegi panjang konten.
5
+ * [EN] : Interface for content rect.
6
+ */
2
7
  interface ContentRect {
8
+ /**
9
+ * [ID] : Lebar elemen.
10
+ * [EN] : Element width.
11
+ */
3
12
  width: number;
13
+ /**
14
+ * [ID] : Tinggi elemen.
15
+ * [EN] : Element height.
16
+ */
4
17
  height: number;
18
+ /**
19
+ * [ID] : Posisi atas elemen.
20
+ * [EN] : Element top position.
21
+ */
5
22
  top: number;
23
+ /**
24
+ * [ID] : Posisi kiri elemen.
25
+ * [EN] : Element left position.
26
+ */
6
27
  left: number;
28
+ /**
29
+ * [ID] : Posisi bawah elemen.
30
+ * [EN] : Element bottom position.
31
+ */
7
32
  bottom: number;
33
+ /**
34
+ * [ID] : Posisi kanan elemen.
35
+ * [EN] : Element right position.
36
+ */
8
37
  right: number;
38
+ /**
39
+ * [ID] : Posisi X elemen.
40
+ * [EN] : Element X position.
41
+ */
9
42
  x: number;
43
+ /**
44
+ * [ID] : Posisi Y elemen.
45
+ * [EN] : Element Y position.
46
+ */
10
47
  y: number;
11
48
  }
49
+ /**
50
+ * [ID] : Interface untuk hook CombinedResizeObserver.
51
+ * [EN] : Interface for CombinedResizeObserver hook.
52
+ * @template T - [ID] : Tipe elemen HTML. [EN] : HTML element type.
53
+ */
12
54
  interface CombinedResizeObserverHook<T extends HTMLElement> {
55
+ /**
56
+ * [ID] : Referensi ke elemen.
57
+ * [EN] : Reference to the element.
58
+ */
13
59
  ref: React.RefObject<T>;
60
+ /**
61
+ * [ID] : Ukuran jendela.
62
+ * [EN] : Window size.
63
+ */
14
64
  windowSize: {
15
65
  width: number;
16
66
  height: number;
17
67
  };
68
+ /**
69
+ * [ID] : Persegi panjang konten elemen.
70
+ * [EN] : Element content rect.
71
+ */
18
72
  contentRect: ContentRect;
19
73
  }
74
+ /**
75
+ * [ID] : Hook layout effect isomorfik (aman untuk SSR).
76
+ * [EN] : Isomorphic layout effect hook (SSR safe).
77
+ */
20
78
  export declare const useIsomorphicLayoutEffect: typeof React.useEffect;
79
+ /**
80
+ * [ID] : Hook untuk mengamati perubahan ukuran elemen dan jendela.
81
+ * [EN] : Hook to observe element and window resize changes.
82
+ * @template T - [ID] : Tipe elemen HTML. [EN] : HTML element type.
83
+ * @param dependencies - [ID] : Daftar dependensi (opsional). [EN] : Dependency list (optional).
84
+ * @param selector - [ID] : Selektor CSS untuk elemen (opsional). [EN] : CSS selector for element (optional).
85
+ * @returns [ID] : Objek berisi ref, ukuran jendela, dan rect konten.
86
+ * [EN] : Object containing ref, window size, and content rect.
87
+ */
21
88
  declare const useCombinedResizeObserver: <T extends HTMLElement>(dependencies?: unknown[], selector?: string) => CombinedResizeObserverHook<T>;
22
89
  export default useCombinedResizeObserver;