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,68 +1,285 @@
1
1
  import { ChartArea, ChartData, ChartDataset, ChartOptions, CoreScaleOptions, Scale, TooltipItem } from 'chart.js';
2
2
  import { default as React } from 'react';
3
+
4
+ /**
5
+ * [ID] : Opsi untuk grafik donat.
6
+ * [EN] : Options for doughnut chart.
7
+ */
3
8
  export type TOptionsDoughnutChart = ChartOptions<'doughnut'>;
9
+ /**
10
+ * [ID] : Interface untuk data grafik donat.
11
+ * [EN] : Interface for doughnut chart data.
12
+ */
4
13
  export interface IDataDoughnutChart {
14
+ /**
15
+ * [ID] : Properti dinamis lainnya.
16
+ * [EN] : Other dynamic properties.
17
+ */
5
18
  [key: string]: unknown;
19
+ /**
20
+ * [ID] : Nilai data.
21
+ * [EN] : Data value.
22
+ */
6
23
  value: string | number;
24
+ /**
25
+ * [ID] : Judul data.
26
+ * [EN] : Data title.
27
+ */
7
28
  title: string;
29
+ /**
30
+ * [ID] : Nilai asli (opsional).
31
+ * [EN] : Original value (optional).
32
+ */
8
33
  originalValue?: string | number;
34
+ /**
35
+ * [ID] : Warna latar belakang (opsional).
36
+ * [EN] : Background color (optional).
37
+ */
9
38
  backgroundColor?: string;
10
39
  }
40
+ /**
41
+ * [ID] : Interface untuk label dalam grafik donat.
42
+ * [EN] : Interface for inner label of doughnut chart.
43
+ */
11
44
  export interface IDataInnerLabelDoughnutChart {
45
+ /**
46
+ * [ID] : ID label.
47
+ * [EN] : Label ID.
48
+ */
12
49
  id: string;
50
+ /**
51
+ * [ID] : Teks label.
52
+ * [EN] : Label text.
53
+ */
13
54
  text: string;
55
+ /**
56
+ * [ID] : Konfigurasi font (opsional).
57
+ * [EN] : Font configuration (optional).
58
+ */
14
59
  font?: {
60
+ /**
61
+ * [ID] : Ukuran font.
62
+ * [EN] : Font size.
63
+ */
15
64
  size: number;
65
+ /**
66
+ * [ID] : Tinggi baris.
67
+ * [EN] : Line height.
68
+ */
16
69
  lineHeight: number;
17
70
  };
71
+ /**
72
+ * [ID] : Persentase (opsional).
73
+ * [EN] : Percentage (optional).
74
+ */
18
75
  percentage?: string;
76
+ /**
77
+ * [ID] : Warna teks (opsional).
78
+ * [EN] : Text color (optional).
79
+ */
19
80
  color?: string;
81
+ /**
82
+ * [ID] : URL ikon deskripsi (opsional).
83
+ * [EN] : Description icon URL (optional).
84
+ */
20
85
  urlIconDesc?: string;
21
86
  }
87
+ /**
88
+ * [ID] : Interface untuk komponen grafik donat.
89
+ * [EN] : Interface for doughnut chart component.
90
+ */
22
91
  export interface IDoughnutChart {
92
+ /**
93
+ * [ID] : Data grafik.
94
+ * [EN] : Chart data.
95
+ */
23
96
  data: IDataDoughnutChart[];
97
+ /**
98
+ * [ID] : Lebar donat bagian dalam.
99
+ * [EN] : Inner doughnut width.
100
+ */
24
101
  widthInnerDoughnut: number;
102
+ /**
103
+ * [ID] : Label bagian dalam.
104
+ * [EN] : Inner labels.
105
+ */
25
106
  innerLabels: IDataInnerLabelDoughnutChart[];
107
+ /**
108
+ * [ID] : Status terbuka (opsional).
109
+ * [EN] : Open status (optional).
110
+ */
26
111
  open?: boolean;
112
+ /**
113
+ * [ID] : Label-label grafik (opsional).
114
+ * [EN] : Chart labels (optional).
115
+ */
27
116
  labels?: string[];
117
+ /**
118
+ * [ID] : Warna latar belakang (opsional).
119
+ * [EN] : Background colors (optional).
120
+ */
28
121
  backgroundColor?: string[];
122
+ /**
123
+ * [ID] : Opsi grafik (opsional).
124
+ * [EN] : Chart options (optional).
125
+ */
29
126
  options?: TOptionsDoughnutChart;
127
+ /**
128
+ * [ID] : Menggambar ulang grafik (opsional).
129
+ * [EN] : Redraw chart (optional).
130
+ */
30
131
  redraw?: boolean;
132
+ /**
133
+ * [ID] : Kunci untuk label (opsional).
134
+ * [EN] : Key for label (optional).
135
+ */
31
136
  keyLabel?: string;
137
+ /**
138
+ * [ID] : Kunci untuk nilai (opsional).
139
+ * [EN] : Key for value (optional).
140
+ */
32
141
  keyValue?: string;
142
+ /**
143
+ * [ID] : Kunci untuk menghapus data saat terbuka (opsional).
144
+ * [EN] : Key to remove data when open (optional).
145
+ */
33
146
  keyRemoveDataOpen?: string;
147
+ /**
148
+ * [ID] : Kunci untuk latar belakang (opsional).
149
+ * [EN] : Key for background (optional).
150
+ */
34
151
  keyBackground?: string;
152
+ /**
153
+ * [ID] : Nama kelas CSS (opsional).
154
+ * [EN] : CSS class name (optional).
155
+ */
35
156
  className?: string;
36
157
  }
158
+ /**
159
+ * [ID] : Interface untuk data grafik garis.
160
+ * [EN] : Interface for line chart data.
161
+ */
37
162
  export interface IDataLineChart {
163
+ /**
164
+ * [ID] : Menandakan data saat ini.
165
+ * [EN] : Indicates current data.
166
+ */
38
167
  isCurrent: boolean;
168
+ /**
169
+ * [ID] : Menandakan data terakhir.
170
+ * [EN] : Indicates last data.
171
+ */
39
172
  isLast: boolean;
173
+ /**
174
+ * [ID] : Label data.
175
+ * [EN] : Data label.
176
+ */
40
177
  label: string;
178
+ /**
179
+ * [ID] : Nilai data (bisa null).
180
+ * [EN] : Data value (can be null).
181
+ */
41
182
  value: number | null;
183
+ /**
184
+ * [ID] : Tahun data.
185
+ * [EN] : Data year.
186
+ */
42
187
  year: number;
43
188
  }
189
+ /**
190
+ * [ID] : Interface untuk komponen grafik garis.
191
+ * [EN] : Interface for line chart component.
192
+ */
44
193
  export interface ILineChart {
194
+ /**
195
+ * [ID] : Data grafik.
196
+ * [EN] : Chart data.
197
+ */
45
198
  data: IDataLineChart[];
199
+ /**
200
+ * [ID] : Nama kelas CSS (opsional).
201
+ * [EN] : CSS class name (optional).
202
+ */
46
203
  className?: string;
204
+ /**
205
+ * [ID] : Tinggi grafik (opsional).
206
+ * [EN] : Chart height (optional).
207
+ */
47
208
  height?: number;
48
209
  }
49
210
  type TGradientLineChartScales = Record<string, Scale<CoreScaleOptions>>;
50
211
  type TGradientLineChartGradientFor = 'background' | 'border';
212
+ /**
213
+ * [ID] : Parameter untuk mengatur gradien grafik garis.
214
+ * [EN] : Parameters to set gradient line chart.
215
+ */
51
216
  export interface TSetGradientLineParams {
217
+ /**
218
+ * [ID] : Konteks rendering canvas.
219
+ * [EN] : Canvas rendering context.
220
+ */
52
221
  ctx: CanvasRenderingContext2D;
222
+ /**
223
+ * [ID] : Area grafik.
224
+ * [EN] : Chart area.
225
+ */
53
226
  chartArea: ChartArea;
227
+ /**
228
+ * [ID] : Skala grafik.
229
+ * [EN] : Chart scales.
230
+ */
54
231
  scales: TGradientLineChartScales;
232
+ /**
233
+ * [ID] : Tinggi grafik.
234
+ * [EN] : Chart height.
235
+ */
55
236
  chartHeight: number;
237
+ /**
238
+ * [ID] : Target gradien (background atau border).
239
+ * [EN] : Gradient target (background or border).
240
+ */
56
241
  gradientFor: TGradientLineChartGradientFor;
242
+ /**
243
+ * [ID] : Dataset item.
244
+ * [EN] : Dataset item.
245
+ */
57
246
  item: IGradientLineChartDataSet;
58
247
  }
248
+ /**
249
+ * [ID] : Parameter untuk mendapatkan gradien grafik garis.
250
+ * [EN] : Parameters to get gradient line chart.
251
+ */
59
252
  export interface TGetGradientLineParams {
253
+ /**
254
+ * [ID] : Konteks rendering canvas.
255
+ * [EN] : Canvas rendering context.
256
+ */
60
257
  ctx: CanvasRenderingContext2D;
258
+ /**
259
+ * [ID] : Area grafik.
260
+ * [EN] : Chart area.
261
+ */
61
262
  chartArea: ChartArea;
263
+ /**
264
+ * [ID] : Skala grafik.
265
+ * [EN] : Chart scales.
266
+ */
62
267
  scales: TGradientLineChartScales;
268
+ /**
269
+ * [ID] : Target gradien.
270
+ * [EN] : Gradient target.
271
+ */
63
272
  gradientFor: TGradientLineChartGradientFor;
273
+ /**
274
+ * [ID] : Dataset item.
275
+ * [EN] : Dataset item.
276
+ */
64
277
  item: IGradientLineChartDataSet;
65
278
  }
279
+ /**
280
+ * [ID] : Tipe komponen tooltip kustom untuk grafik garis gradien.
281
+ * [EN] : Custom tooltip component type for gradient line chart.
282
+ */
66
283
  export type TGradientLineChartCustomTooltip = React.ComponentType<{
67
284
  label: string;
68
285
  dataset: string;
@@ -70,49 +287,193 @@ export type TGradientLineChartCustomTooltip = React.ComponentType<{
70
287
  style: React.CSSProperties;
71
288
  dataPoints: TooltipItem<'line'>[];
72
289
  }>;
290
+ /**
291
+ * [ID] : Interface untuk dataset grafik garis gradien.
292
+ * [EN] : Interface for gradient line chart dataset.
293
+ */
73
294
  export interface IGradientLineChartDataSet extends ChartDataset<'line'> {
295
+ /**
296
+ * [ID] : Warna background positif nol (opsional).
297
+ * [EN] : Positive zero background color (optional).
298
+ */
74
299
  colorBackgroundPositiveZero?: string;
300
+ /**
301
+ * [ID] : Warna background persentase positif (opsional).
302
+ * [EN] : Positive percentage background color (optional).
303
+ */
75
304
  colorBackgroundPositivePercentage?: string;
305
+ /**
306
+ * [ID] : Warna background negatif satu (opsional).
307
+ * [EN] : Negative one background color (optional).
308
+ */
76
309
  colorBackgroundNegativeOne?: string;
310
+ /**
311
+ * [ID] : Warna background persentase negatif (opsional).
312
+ * [EN] : Negative percentage background color (optional).
313
+ */
77
314
  colorBackgroundNegativePercentage?: string;
315
+ /**
316
+ * [ID] : Warna border positif (opsional).
317
+ * [EN] : Positive border color (optional).
318
+ */
78
319
  colorBorderPositive?: string;
320
+ /**
321
+ * [ID] : Warna border negatif (opsional).
322
+ * [EN] : Negative border color (optional).
323
+ */
79
324
  colorBorderNegative?: string;
80
325
  }
326
+ /**
327
+ * [ID] : Interface untuk data grafik garis gradien.
328
+ * [EN] : Interface for gradient line chart data.
329
+ */
81
330
  export interface IGradientLineChartData extends Omit<ChartData<'line'>, 'datasets'> {
331
+ /**
332
+ * [ID] : Kumpulan dataset.
333
+ * [EN] : Collection of datasets.
334
+ */
82
335
  datasets: IGradientLineChartDataSet[];
83
336
  }
337
+ /**
338
+ * [ID] : Interface untuk komponen grafik garis gradien.
339
+ * [EN] : Interface for gradient line chart component.
340
+ */
84
341
  export interface IGradientLineChart {
342
+ /**
343
+ * [ID] : Data grafik.
344
+ * [EN] : Chart data.
345
+ */
85
346
  data: IGradientLineChartData;
347
+ /**
348
+ * [ID] : Opsi grafik (opsional).
349
+ * [EN] : Chart options (optional).
350
+ */
86
351
  options?: ChartOptions<'line'>;
352
+ /**
353
+ * [ID] : ID grafik.
354
+ * [EN] : Chart ID.
355
+ */
87
356
  id: string;
357
+ /**
358
+ * [ID] : Nama kelas CSS kontainer (opsional).
359
+ * [EN] : Container CSS class name (optional).
360
+ */
88
361
  classNameContainer?: string;
362
+ /**
363
+ * [ID] : Tinggi grafik (opsional).
364
+ * [EN] : Chart height (optional).
365
+ */
89
366
  height?: number;
367
+ /**
368
+ * [ID] : Tooltip kustom (opsional).
369
+ * [EN] : Custom tooltip (optional).
370
+ */
90
371
  CustomTooltip?: TGradientLineChartCustomTooltip;
91
372
  }
373
+ /**
374
+ * [ID] : Interface untuk data tooltip kustom grafik garis gradien.
375
+ * [EN] : Interface for gradient line chart custom tooltip data.
376
+ */
92
377
  export interface IDataGradientLineChartCustomTooltip {
378
+ /**
379
+ * [ID] : Gaya CSS.
380
+ * [EN] : CSS style.
381
+ */
93
382
  style: React.CSSProperties;
383
+ /**
384
+ * [ID] : Label tooltip.
385
+ * [EN] : Tooltip label.
386
+ */
94
387
  label: string;
388
+ /**
389
+ * [ID] : Dataset tooltip.
390
+ * [EN] : Tooltip dataset.
391
+ */
95
392
  dataset: string;
393
+ /**
394
+ * [ID] : Nilai tooltip.
395
+ * [EN] : Tooltip value.
396
+ */
96
397
  value: number;
398
+ /**
399
+ * [ID] : Titik data tooltip.
400
+ * [EN] : Tooltip data points.
401
+ */
97
402
  dataPoints: TooltipItem<'line'>[];
98
403
  }
99
404
  type TGradientBarChartScales = Record<string, Scale<CoreScaleOptions>>;
100
405
  type TGradientBarChartGradientFor = 'background' | 'border';
406
+ /**
407
+ * [ID] : Parameter untuk mengatur gradien grafik batang.
408
+ * [EN] : Parameters to set gradient bar chart.
409
+ */
101
410
  export interface TSetGradientBarParams {
411
+ /**
412
+ * [ID] : Konteks rendering canvas.
413
+ * [EN] : Canvas rendering context.
414
+ */
102
415
  ctx: CanvasRenderingContext2D;
416
+ /**
417
+ * [ID] : Area grafik.
418
+ * [EN] : Chart area.
419
+ */
103
420
  chartArea: ChartArea;
421
+ /**
422
+ * [ID] : Skala grafik.
423
+ * [EN] : Chart scales.
424
+ */
104
425
  scales: TGradientBarChartScales;
426
+ /**
427
+ * [ID] : Tinggi grafik.
428
+ * [EN] : Chart height.
429
+ */
105
430
  chartHeight: number;
431
+ /**
432
+ * [ID] : Target gradien.
433
+ * [EN] : Gradient target.
434
+ */
106
435
  gradientFor: TGradientBarChartGradientFor;
436
+ /**
437
+ * [ID] : Dataset item.
438
+ * [EN] : Dataset item.
439
+ */
107
440
  item: IGradientBarChartDataSet;
108
441
  }
442
+ /**
443
+ * [ID] : Parameter untuk mendapatkan gradien grafik batang.
444
+ * [EN] : Parameters to get gradient bar chart.
445
+ */
109
446
  export interface TGetGradientBarParams {
447
+ /**
448
+ * [ID] : Konteks rendering canvas.
449
+ * [EN] : Canvas rendering context.
450
+ */
110
451
  ctx: CanvasRenderingContext2D;
452
+ /**
453
+ * [ID] : Area grafik.
454
+ * [EN] : Chart area.
455
+ */
111
456
  chartArea: ChartArea;
457
+ /**
458
+ * [ID] : Skala grafik.
459
+ * [EN] : Chart scales.
460
+ */
112
461
  scales: TGradientBarChartScales;
462
+ /**
463
+ * [ID] : Target gradien.
464
+ * [EN] : Gradient target.
465
+ */
113
466
  gradientFor: TGradientBarChartGradientFor;
467
+ /**
468
+ * [ID] : Dataset item.
469
+ * [EN] : Dataset item.
470
+ */
114
471
  item: IGradientBarChartDataSet;
115
472
  }
473
+ /**
474
+ * [ID] : Tipe komponen tooltip kustom untuk grafik batang gradien.
475
+ * [EN] : Custom tooltip component type for gradient bar chart.
476
+ */
116
477
  export type TGradientBarChartCustomTooltip = React.ComponentType<{
117
478
  label: string;
118
479
  dataset: string;
@@ -120,33 +481,133 @@ export type TGradientBarChartCustomTooltip = React.ComponentType<{
120
481
  style: React.CSSProperties;
121
482
  dataPoints: TooltipItem<'bar'>[];
122
483
  }>;
484
+ /**
485
+ * [ID] : Interface untuk dataset grafik batang gradien.
486
+ * [EN] : Interface for gradient bar chart dataset.
487
+ */
123
488
  export interface IGradientBarChartDataSet extends ChartDataset<'bar'> {
489
+ /**
490
+ * [ID] : Warna background positif nol (opsional).
491
+ * [EN] : Positive zero background color (optional).
492
+ */
124
493
  colorBackgroundPositiveZero?: string;
494
+ /**
495
+ * [ID] : Warna background persentase positif (opsional).
496
+ * [EN] : Positive percentage background color (optional).
497
+ */
125
498
  colorBackgroundPositivePercentage?: string;
499
+ /**
500
+ * [ID] : Warna background negatif satu (opsional).
501
+ * [EN] : Negative one background color (optional).
502
+ */
126
503
  colorBackgroundNegativeOne?: string;
504
+ /**
505
+ * [ID] : Warna background persentase negatif (opsional).
506
+ * [EN] : Negative percentage background color (optional).
507
+ */
127
508
  colorBackgroundNegativePercentage?: string;
509
+ /**
510
+ * [ID] : Warna border positif (opsional).
511
+ * [EN] : Positive border color (optional).
512
+ */
128
513
  colorBorderPositive?: string;
514
+ /**
515
+ * [ID] : Warna border negatif (opsional).
516
+ * [EN] : Negative border color (optional).
517
+ */
129
518
  colorBorderNegative?: string;
519
+ /**
520
+ * [ID] : Warna teks label positif (opsional).
521
+ * [EN] : Positive label text color (optional).
522
+ */
130
523
  colorTextLabelPositive?: string;
524
+ /**
525
+ * [ID] : Warna teks label negatif (opsional).
526
+ * [EN] : Negative label text color (optional).
527
+ */
131
528
  colorTextLabelNegative?: string;
529
+ /**
530
+ * [ID] : Mengatur digit (opsional).
531
+ * [EN] : Set digit (optional).
532
+ */
132
533
  setDigit?: boolean;
133
534
  }
535
+ /**
536
+ * [ID] : Interface untuk data grafik batang gradien.
537
+ * [EN] : Interface for gradient bar chart data.
538
+ */
134
539
  export interface IGradientBarChartData extends Omit<ChartData<'bar'>, 'datasets'> {
540
+ /**
541
+ * [ID] : Kumpulan dataset.
542
+ * [EN] : Collection of datasets.
543
+ */
135
544
  datasets: IGradientBarChartDataSet[];
136
545
  }
546
+ /**
547
+ * [ID] : Interface untuk komponen grafik batang gradien.
548
+ * [EN] : Interface for gradient bar chart component.
549
+ */
137
550
  export interface IGradientBarChart {
551
+ /**
552
+ * [ID] : Data grafik.
553
+ * [EN] : Chart data.
554
+ */
138
555
  data: IGradientBarChartData;
556
+ /**
557
+ * [ID] : Opsi grafik (opsional).
558
+ * [EN] : Chart options (optional).
559
+ */
139
560
  options?: ChartOptions<'bar'>;
561
+ /**
562
+ * [ID] : ID grafik.
563
+ * [EN] : Chart ID.
564
+ */
140
565
  id: string;
566
+ /**
567
+ * [ID] : Nama kelas CSS kontainer (opsional).
568
+ * [EN] : Container CSS class name (optional).
569
+ */
141
570
  classNameContainer?: string;
571
+ /**
572
+ * [ID] : Tinggi grafik (opsional).
573
+ * [EN] : Chart height (optional).
574
+ */
142
575
  height?: number;
576
+ /**
577
+ * [ID] : Tooltip kustom (opsional).
578
+ * [EN] : Custom tooltip (optional).
579
+ */
143
580
  CustomTooltip?: TGradientBarChartCustomTooltip;
144
581
  }
582
+ /**
583
+ * [ID] : Interface untuk data tooltip kustom grafik batang gradien.
584
+ * [EN] : Interface for gradient bar chart custom tooltip data.
585
+ */
145
586
  export interface IDataGradientBarChartCustomTooltip {
587
+ /**
588
+ * [ID] : Gaya CSS.
589
+ * [EN] : CSS style.
590
+ */
146
591
  style: React.CSSProperties;
592
+ /**
593
+ * [ID] : Label tooltip.
594
+ * [EN] : Tooltip label.
595
+ */
147
596
  label: string;
597
+ /**
598
+ * [ID] : Dataset tooltip.
599
+ * [EN] : Tooltip dataset.
600
+ */
148
601
  dataset: string;
602
+ /**
603
+ * [ID] : Nilai tooltip.
604
+ * [EN] : Tooltip value.
605
+ */
149
606
  value: number;
607
+ /**
608
+ * [ID] : Titik data tooltip.
609
+ * [EN] : Tooltip data points.
610
+ */
150
611
  dataPoints: TooltipItem<'bar'>[];
151
612
  }
152
613
  export {};
@@ -1,5 +1,18 @@
1
1
  import { default as React } from 'react';
2
+
3
+ /**
4
+ * [ID] : Interface untuk komponen CheckboxTable.
5
+ * [EN] : Interface for CheckboxTable component.
6
+ */
2
7
  export interface ICheckboxTable extends React.HTMLProps<HTMLInputElement> {
8
+ /**
9
+ * [ID] : Menentukan status indeterminate (setengah dicentang) (opsional).
10
+ * [EN] : Determines indeterminate status (half-checked) (optional).
11
+ */
3
12
  indeterminate?: boolean;
13
+ /**
14
+ * [ID] : Nama kelas CSS untuk kontainer (opsional).
15
+ * [EN] : CSS class name for container (optional).
16
+ */
4
17
  classNameContainer?: string;
5
18
  }
@@ -1,12 +1,50 @@
1
1
  import { ReactNode } from 'react';
2
2
  import { Itypography } from '../../../config/components/typography';
3
+ import { TFont } from '../../../config/components/font';
4
+
5
+ /**
6
+ * [ID] : Interface untuk komponen Chips.
7
+ * [EN] : Interface for Chips component.
8
+ */
3
9
  export interface IChips extends React.HTMLAttributes<HTMLSpanElement> {
10
+ /**
11
+ * [ID] : Konten anak di dalam chips.
12
+ * [EN] : Child content inside the chips.
13
+ */
4
14
  children: ReactNode | ReactNode[];
15
+ /**
16
+ * [ID] : Nama kelas CSS tambahan (opsional).
17
+ * [EN] : Additional CSS class name (optional).
18
+ */
5
19
  className?: string | undefined;
6
- fonts?: 'lato' | 'inter';
20
+ /**
21
+ * [ID] : Konfigurasi font (opsional).
22
+ * [EN] : Font configuration (optional).
23
+ */
24
+ fonts?: TFont;
25
+ /**
26
+ * [ID] : Ukuran chips (opsional).
27
+ * [EN] : Chips size (optional).
28
+ */
7
29
  size?: 'reguler' | 'small' | 'l' | 's';
30
+ /**
31
+ * [ID] : Varian gaya chips (opsional).
32
+ * [EN] : Chips style variant (optional).
33
+ */
8
34
  variants?: 'filled-laba-blue-10' | 'ghost-laba-grey-02' | 'nude-laba-grey-10' | 'filled-blue-gray-100' | 'filled-gray-300';
35
+ /**
36
+ * [ID] : Ikon utama (opsional).
37
+ * [EN] : Main icon (optional).
38
+ */
9
39
  icon?: ReactNode | ReactNode[] | (() => ReactNode) | (() => ReactNode[]);
40
+ /**
41
+ * [ID] : Ikon hapus (opsional).
42
+ * [EN] : Remove icon (optional).
43
+ */
10
44
  removeIcon?: ReactNode | ReactNode[] | (() => ReactNode) | (() => ReactNode[]);
45
+ /**
46
+ * [ID] : Konfigurasi tipografi (opsional).
47
+ * [EN] : Typography configuration (optional).
48
+ */
11
49
  typography?: Itypography;
12
50
  }