1mpacto-react-ui 1.0.0 → 1.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (139) hide show
  1. package/dist/assets/_mixins.scss +43 -43
  2. package/dist/assets/core.css +1 -1
  3. package/dist/assets/fontfamily.css +1 -1
  4. package/dist/assets/icons/arrow-narrow-down.svg +3 -3
  5. package/dist/index.cjs +65 -65
  6. package/dist/index.mjs +2104 -2091
  7. package/dist/package.json.d.ts +131 -131
  8. package/dist/src/components/Table/Table.d.ts +1 -1
  9. package/dist/src/components/Table/Table.stories.d.ts +16 -2
  10. package/dist/src/hooks/useAsyncDebounce.d.ts +9 -0
  11. package/dist/src/hooks/useCombinedResizeObserver.d.ts +66 -0
  12. package/dist/src/hooks/useCountdown.d.ts +61 -0
  13. package/dist/src/hooks/useDeepCompareEffect.d.ts +13 -0
  14. package/dist/src/hooks/useElementOrWindowMediaQuery.d.ts +9 -0
  15. package/dist/src/hooks/useEventListener.d.ts +27 -0
  16. package/dist/src/hooks/useMasonry.d.ts +79 -0
  17. package/dist/src/hooks/useMergeRefs.d.ts +26 -0
  18. package/dist/src/hooks/useOtpInput.d.ts +157 -0
  19. package/dist/src/hooks/useStateRef.d.ts +8 -0
  20. package/dist/src/interfaces/components/Alert/index.d.ts +9 -1
  21. package/dist/src/interfaces/components/Badges/index.d.ts +28 -0
  22. package/dist/src/interfaces/components/Breadcrumbs/index.d.ts +79 -0
  23. package/dist/src/interfaces/components/Button/index.d.ts +44 -0
  24. package/dist/src/interfaces/components/ButtonIcon/index.d.ts +36 -0
  25. package/dist/src/interfaces/components/ButtonPopover/index.d.ts +78 -0
  26. package/dist/src/interfaces/components/Calendar/index.d.ts +364 -0
  27. package/dist/src/interfaces/components/Chart/index.d.ts +460 -0
  28. package/dist/src/interfaces/components/Checkbox/index.d.ts +12 -0
  29. package/dist/src/interfaces/components/Chips/index.d.ts +36 -0
  30. package/dist/src/interfaces/components/Collapse/index.d.ts +60 -0
  31. package/dist/src/interfaces/components/DatePicker/index.d.ts +274 -0
  32. package/dist/src/interfaces/components/ErrorMessage/index.d.ts +16 -0
  33. package/dist/src/interfaces/components/FilterContainer/index.d.ts +102 -0
  34. package/dist/src/interfaces/components/Input/index.d.ts +180 -0
  35. package/dist/src/interfaces/components/Modal/index.d.ts +45 -0
  36. package/dist/src/interfaces/components/NumberFormat/index.d.ts +25 -0
  37. package/dist/src/interfaces/components/Pagination/index.d.ts +81 -0
  38. package/dist/src/interfaces/components/Popover/index.d.ts +95 -0
  39. package/dist/src/interfaces/components/RadioCheckbox/RadioCheckbox.d.ts +56 -0
  40. package/dist/src/interfaces/components/RadioCheckbox/RadioCheckboxLabel.d.ts +44 -0
  41. package/dist/src/interfaces/components/SelectDropdownContainer/index.d.ts +195 -1
  42. package/dist/src/interfaces/components/Sidebar/index.d.ts +226 -0
  43. package/dist/src/interfaces/components/Step/index.d.ts +153 -0
  44. package/dist/src/interfaces/components/Switch/index.d.ts +53 -0
  45. package/dist/src/interfaces/components/Table/index.d.ts +386 -1
  46. package/dist/src/interfaces/components/Tabs/index.d.ts +126 -0
  47. package/dist/src/interfaces/components/TextEditor/index.d.ts +12 -0
  48. package/dist/src/interfaces/components/Textarea/index.d.ts +156 -0
  49. package/dist/src/interfaces/components/TimeRange/index.d.ts +100 -0
  50. package/dist/src/interfaces/components/Timeline/index.d.ts +36 -0
  51. package/dist/src/interfaces/components/Tooltip/index.d.ts +56 -0
  52. package/dist/src/interfaces/components/TruncateComponent/index.d.ts +34 -0
  53. package/dist/src/interfaces/components/UploadFile/index.d.ts +184 -1
  54. package/dist/src/interfaces/components/Virtualization/ListVirtualization.d.ts +138 -0
  55. package/dist/src/interfaces/components/Virtualization/TableVirtualization.d.ts +143 -0
  56. package/dist/tinymce/CHANGELOG.md +3785 -3785
  57. package/dist/tinymce/js/tinymce/langs/README.md +3 -3
  58. package/dist/tinymce/js/tinymce/license.md +6 -6
  59. package/dist/tinymce/js/tinymce/notices.txt +21 -21
  60. package/dist/tinymce/js/tinymce/plugins/codesample/plugin.min.js +8 -8
  61. package/dist/tinymce/js/tinymce/plugins/help/js/i18n/keynav/ar.js +92 -92
  62. package/dist/tinymce/js/tinymce/plugins/help/js/i18n/keynav/bg_BG.js +92 -92
  63. package/dist/tinymce/js/tinymce/plugins/help/js/i18n/keynav/ca.js +92 -92
  64. package/dist/tinymce/js/tinymce/plugins/help/js/i18n/keynav/cs.js +92 -92
  65. package/dist/tinymce/js/tinymce/plugins/help/js/i18n/keynav/da.js +92 -92
  66. package/dist/tinymce/js/tinymce/plugins/help/js/i18n/keynav/de.js +92 -92
  67. package/dist/tinymce/js/tinymce/plugins/help/js/i18n/keynav/el.js +92 -92
  68. package/dist/tinymce/js/tinymce/plugins/help/js/i18n/keynav/en.js +92 -92
  69. package/dist/tinymce/js/tinymce/plugins/help/js/i18n/keynav/es.js +92 -92
  70. package/dist/tinymce/js/tinymce/plugins/help/js/i18n/keynav/eu.js +92 -92
  71. package/dist/tinymce/js/tinymce/plugins/help/js/i18n/keynav/fa.js +92 -92
  72. package/dist/tinymce/js/tinymce/plugins/help/js/i18n/keynav/fi.js +92 -92
  73. package/dist/tinymce/js/tinymce/plugins/help/js/i18n/keynav/fr_FR.js +92 -92
  74. package/dist/tinymce/js/tinymce/plugins/help/js/i18n/keynav/he_IL.js +92 -92
  75. package/dist/tinymce/js/tinymce/plugins/help/js/i18n/keynav/hi.js +92 -92
  76. package/dist/tinymce/js/tinymce/plugins/help/js/i18n/keynav/hr.js +92 -92
  77. package/dist/tinymce/js/tinymce/plugins/help/js/i18n/keynav/hu_HU.js +92 -92
  78. package/dist/tinymce/js/tinymce/plugins/help/js/i18n/keynav/id.js +92 -92
  79. package/dist/tinymce/js/tinymce/plugins/help/js/i18n/keynav/it.js +92 -92
  80. package/dist/tinymce/js/tinymce/plugins/help/js/i18n/keynav/ja.js +92 -92
  81. package/dist/tinymce/js/tinymce/plugins/help/js/i18n/keynav/kk.js +92 -92
  82. package/dist/tinymce/js/tinymce/plugins/help/js/i18n/keynav/ko_KR.js +92 -92
  83. package/dist/tinymce/js/tinymce/plugins/help/js/i18n/keynav/ms.js +92 -92
  84. package/dist/tinymce/js/tinymce/plugins/help/js/i18n/keynav/nb_NO.js +92 -92
  85. package/dist/tinymce/js/tinymce/plugins/help/js/i18n/keynav/nl.js +92 -92
  86. package/dist/tinymce/js/tinymce/plugins/help/js/i18n/keynav/pl.js +92 -92
  87. package/dist/tinymce/js/tinymce/plugins/help/js/i18n/keynav/pt_BR.js +92 -92
  88. package/dist/tinymce/js/tinymce/plugins/help/js/i18n/keynav/pt_PT.js +92 -92
  89. package/dist/tinymce/js/tinymce/plugins/help/js/i18n/keynav/ro.js +92 -92
  90. package/dist/tinymce/js/tinymce/plugins/help/js/i18n/keynav/ru.js +92 -92
  91. package/dist/tinymce/js/tinymce/plugins/help/js/i18n/keynav/sk.js +92 -92
  92. package/dist/tinymce/js/tinymce/plugins/help/js/i18n/keynav/sl_SI.js +92 -92
  93. package/dist/tinymce/js/tinymce/plugins/help/js/i18n/keynav/sv_SE.js +92 -92
  94. package/dist/tinymce/js/tinymce/plugins/help/js/i18n/keynav/th_TH.js +92 -92
  95. package/dist/tinymce/js/tinymce/plugins/help/js/i18n/keynav/tr.js +92 -92
  96. package/dist/tinymce/js/tinymce/plugins/help/js/i18n/keynav/uk.js +92 -92
  97. package/dist/tinymce/js/tinymce/plugins/help/js/i18n/keynav/vi.js +92 -92
  98. package/dist/tinymce/js/tinymce/plugins/help/js/i18n/keynav/zh_CN.js +86 -86
  99. package/dist/tinymce/js/tinymce/plugins/help/js/i18n/keynav/zh_TW.js +92 -92
  100. package/dist/tinymce/js/tinymce/skins/content/dark/content.js +9 -9
  101. package/dist/tinymce/js/tinymce/skins/content/dark/content.min.css +10 -10
  102. package/dist/tinymce/js/tinymce/skins/content/default/content.js +9 -9
  103. package/dist/tinymce/js/tinymce/skins/content/default/content.min.css +10 -10
  104. package/dist/tinymce/js/tinymce/skins/content/document/content.js +9 -9
  105. package/dist/tinymce/js/tinymce/skins/content/document/content.min.css +10 -10
  106. package/dist/tinymce/js/tinymce/skins/content/tinymce-5/content.js +9 -9
  107. package/dist/tinymce/js/tinymce/skins/content/tinymce-5/content.min.css +10 -10
  108. package/dist/tinymce/js/tinymce/skins/content/tinymce-5-dark/content.js +9 -9
  109. package/dist/tinymce/js/tinymce/skins/content/tinymce-5-dark/content.min.css +10 -10
  110. package/dist/tinymce/js/tinymce/skins/content/writer/content.js +9 -9
  111. package/dist/tinymce/js/tinymce/skins/content/writer/content.min.css +10 -10
  112. package/dist/tinymce/js/tinymce/skins/ui/oxide/content.inline.js +9 -9
  113. package/dist/tinymce/js/tinymce/skins/ui/oxide/content.inline.min.css +10 -10
  114. package/dist/tinymce/js/tinymce/skins/ui/oxide/content.js +9 -9
  115. package/dist/tinymce/js/tinymce/skins/ui/oxide/content.min.css +10 -10
  116. package/dist/tinymce/js/tinymce/skins/ui/oxide/skin.min.css +1 -1
  117. package/dist/tinymce/js/tinymce/skins/ui/oxide/skin.shadowdom.min.css +1 -1
  118. package/dist/tinymce/js/tinymce/skins/ui/oxide-dark/content.inline.js +9 -9
  119. package/dist/tinymce/js/tinymce/skins/ui/oxide-dark/content.inline.min.css +10 -10
  120. package/dist/tinymce/js/tinymce/skins/ui/oxide-dark/content.js +9 -9
  121. package/dist/tinymce/js/tinymce/skins/ui/oxide-dark/content.min.css +10 -10
  122. package/dist/tinymce/js/tinymce/skins/ui/oxide-dark/skin.min.css +1 -1
  123. package/dist/tinymce/js/tinymce/skins/ui/oxide-dark/skin.shadowdom.min.css +1 -1
  124. package/dist/tinymce/js/tinymce/skins/ui/tinymce-5/content.inline.js +9 -9
  125. package/dist/tinymce/js/tinymce/skins/ui/tinymce-5/content.inline.min.css +10 -10
  126. package/dist/tinymce/js/tinymce/skins/ui/tinymce-5/content.js +9 -9
  127. package/dist/tinymce/js/tinymce/skins/ui/tinymce-5/content.min.css +10 -10
  128. package/dist/tinymce/js/tinymce/skins/ui/tinymce-5/skin.min.css +1 -1
  129. package/dist/tinymce/js/tinymce/skins/ui/tinymce-5/skin.shadowdom.min.css +1 -1
  130. package/dist/tinymce/js/tinymce/skins/ui/tinymce-5-dark/content.inline.js +9 -9
  131. package/dist/tinymce/js/tinymce/skins/ui/tinymce-5-dark/content.inline.min.css +10 -10
  132. package/dist/tinymce/js/tinymce/skins/ui/tinymce-5-dark/content.js +9 -9
  133. package/dist/tinymce/js/tinymce/skins/ui/tinymce-5-dark/content.min.css +10 -10
  134. package/dist/tinymce/js/tinymce/skins/ui/tinymce-5-dark/skin.min.css +1 -1
  135. package/dist/tinymce/js/tinymce/skins/ui/tinymce-5-dark/skin.shadowdom.min.css +1 -1
  136. package/dist/tinymce/js/tinymce/tinymce.d.ts +3350 -3350
  137. package/dist/tinymce/js/tinymce/tinymce.min.js +10 -10
  138. package/dist/types-external/table.d.ts +15 -15
  139. package/package.json +131 -131
@@ -1,123 +1,504 @@
1
- import { Table as ITableTanstack, Row, ColumnDef } from '@tanstack/react-table';
1
+ import { Table as ITableTanstack, Row, ColumnDef, Header } from '@tanstack/react-table';
2
2
  import { default as React } from 'react';
3
3
  import { ITableVirtualization, IWrapperProps } from '../Virtualization/TableVirtualization';
4
4
 
5
+ /**
6
+ * [ID] : Definisi kolom tabel.
7
+ * [EN] : Table column definition.
8
+ * @template T - [ID] : Tipe data baris. [EN] : Row data type.
9
+ */
5
10
  export type ITableColumnDef<T = unknown> = ColumnDef<T>;
11
+ /**
12
+ * [ID] : Interface untuk breakpoint kolom tabel.
13
+ * [EN] : Interface for table column breakpoint.
14
+ */
6
15
  export interface ITableColumnBreakpoint {
16
+ /**
17
+ * [ID] : Lebar maksimum (opsional).
18
+ * [EN] : Maximum width (optional).
19
+ */
7
20
  maxWidth?: number;
21
+ /**
22
+ * [ID] : Lebar minimum (opsional).
23
+ * [EN] : Minimum width (optional).
24
+ */
8
25
  minWidth?: number;
26
+ /**
27
+ * [ID] : Daftar kolom.
28
+ * [EN] : List of columns.
29
+ */
9
30
  columns: string[];
31
+ /**
32
+ * [ID] : Kolom nyata (opsional).
33
+ * [EN] : Real columns (optional).
34
+ */
10
35
  realColumns?: string[];
36
+ /**
37
+ * [ID] : Reset ekspansi (opsional).
38
+ * [EN] : Reset expanded (optional).
39
+ */
11
40
  resetExpanded?: boolean;
12
41
  }
42
+ /**
43
+ * [ID] : Tipe fungsi render sub-komponen tabel.
44
+ * [EN] : Table sub-component render function type.
45
+ * @template T - [ID] : Tipe data baris. [EN] : Row data type.
46
+ * @param original - [ID] : Data asli. [EN] : Original data.
47
+ * @param row - [ID] : Objek baris. [EN] : Row object.
48
+ * @param other - [ID] : Properti lain. [EN] : Other properties.
49
+ * @returns [ID] : Node React. [EN] : React Node.
50
+ */
13
51
  export type TTableRenderSubComponent<T = unknown> = (original: T, row: Row<T>, other: {
14
52
  visibilityColumns: Pick<ITableColumnBreakpoint, 'columns' | 'realColumns'>;
15
53
  classNameSubMobile: string;
16
54
  }) => React.ReactNode | React.ReactNode[];
55
+ /**
56
+ * [ID] : Tipe handler klik baris tabel.
57
+ * [EN] : Table row click handler type.
58
+ * @template T - [ID] : Tipe data baris. [EN] : Row data type.
59
+ * @param original - [ID] : Data asli. [EN] : Original data.
60
+ * @param row - [ID] : Objek baris. [EN] : Row object.
61
+ */
17
62
  export type TTableHandlerRowClick<T = unknown> = (original: T, row: Row<T>) => void;
63
+ /**
64
+ * [ID] : Interface untuk komponen Table.
65
+ * [EN] : Interface for Table component.
66
+ * @template T - [ID] : Tipe data baris. [EN] : Row data type.
67
+ */
18
68
  export interface ITable<T = unknown> {
69
+ /**
70
+ * [ID] : Instance tabel TanStack.
71
+ * [EN] : TanStack table instance.
72
+ */
19
73
  tableInstance: ITableTanstack<T>;
74
+ /**
75
+ * [ID] : Nama kelas CSS pembungkus tabel (opsional).
76
+ * [EN] : Table wrapper CSS class name (optional).
77
+ */
20
78
  classNameWrapperTable?: string;
79
+ /**
80
+ * [ID] : Nama kelas CSS tabel (opsional).
81
+ * [EN] : Table CSS class name (optional).
82
+ */
21
83
  classNameTable?: string;
84
+ /**
85
+ * [ID] : Collapse semua baris (opsional).
86
+ * [EN] : Collapse all rows (optional).
87
+ */
22
88
  collapseAll?: boolean;
89
+ /**
90
+ * [ID] : Handler klik baris (opsional).
91
+ * [EN] : Row click handler (optional).
92
+ * @param original - [ID] : Data asli. [EN] : Original data.
93
+ * @param row - [ID] : Objek baris. [EN] : Row object.
94
+ */
23
95
  handlerRowClick?: (original: T, row: Row<T>) => void;
96
+ /**
97
+ * [ID] : Hak istimewa klik baris (opsional).
98
+ * [EN] : Row click privilege (optional).
99
+ */
24
100
  privillageRowClick?: boolean;
101
+ /**
102
+ * [ID] : Mengaktifkan virtualisasi (opsional).
103
+ * [EN] : Enable virtualization (optional).
104
+ */
25
105
  virtualization?: boolean;
106
+ /**
107
+ * [ID] : Properti virtualisasi (opsional).
108
+ * [EN] : Virtualization properties (optional).
109
+ */
26
110
  virtualizationProps?: IVirtualizationProps;
111
+ /**
112
+ * [ID] : ID header (opsional).
113
+ * [EN] : Header ID (optional).
114
+ */
27
115
  headerId?: string;
116
+ /**
117
+ * [ID] : Fungsi ID header.
118
+ * [EN] : Header ID function.
119
+ * @param head - [ID] : Objek header. [EN] : Header object.
120
+ * @returns [ID] : ID header. [EN] : Header ID.
121
+ */
122
+ theadTrId?: (head: Header<T, unknown>) => string | undefined;
123
+ /**
124
+ * [ID] : Fungsi ID baris body (opsional).
125
+ * [EN] : Body row ID function (optional).
126
+ * @param row - [ID] : Objek baris. [EN] : Row object.
127
+ * @returns [ID] : ID baris. [EN] : Row ID.
128
+ */
28
129
  tbodyTrId?: (row: Row<T>) => string | undefined;
130
+ /**
131
+ * [ID] : Tinggi maksimum (opsional).
132
+ * [EN] : Maximum height (optional).
133
+ */
29
134
  maxHeight?: number;
135
+ /**
136
+ * [ID] : ID perhitungan tinggi (opsional).
137
+ * [EN] : Height calculation ID (optional).
138
+ */
30
139
  idCalculateHeight?: string;
140
+ /**
141
+ * [ID] : Jenis tabel (opsional).
142
+ * [EN] : Table kind (optional).
143
+ */
31
144
  kind?: 'laba-reguler' | 'payhere-reguler' | 'laba-small' | 'bill-reguler';
145
+ /**
146
+ * [ID] : Varian tabel (opsional).
147
+ * [EN] : Table variant (optional).
148
+ */
32
149
  variant?: 'laba-grey-02';
150
+ /**
151
+ * [ID] : Komponen urutkan menaik (opsional).
152
+ * [EN] : Sort ascending component (optional).
153
+ */
33
154
  componentSortASC?: Element | React.ReactNode | React.ReactNode[];
155
+ /**
156
+ * [ID] : Komponen urutkan menurun (opsional).
157
+ * [EN] : Sort descending component (optional).
158
+ */
34
159
  componentSortDESC?: Element | React.ReactNode | React.ReactNode[];
160
+ /**
161
+ * [ID] : Scroll ke atas (opsional).
162
+ * [EN] : Scroll top (optional).
163
+ */
35
164
  scrollTop?: boolean;
165
+ /**
166
+ * [ID] : Placeholder kosong (opsional).
167
+ * [EN] : Empty placeholder (optional).
168
+ */
36
169
  emptyPlaceholder?: Element | React.ReactNode | React.ReactNode[];
170
+ /**
171
+ * [ID] : Fungsi render sub-komponen (opsional).
172
+ * [EN] : Sub-component render function (optional).
173
+ */
37
174
  renderSubComponent?: (original: T, row: Row<T>, other: {
38
175
  visibilityColumns: Pick<ITableColumnBreakpoint, 'columns' | 'realColumns'>;
39
176
  classNameSubMobile: string;
40
177
  }) => React.ReactNode | React.ReactNode[];
178
+ /**
179
+ * [ID] : Breakpoint kolom (opsional).
180
+ * [EN] : Column breakpoints (optional).
181
+ */
41
182
  columnBreakpoints?: ITableColumnBreakpoint[];
42
183
  }
184
+ /**
185
+ * [ID] : Interface untuk tabel non-virtualisasi.
186
+ * [EN] : Interface for non-virtualization table.
187
+ * @template T - [ID] : Tipe data baris. [EN] : Row data type.
188
+ */
43
189
  export interface INonVirtualization<T = unknown> {
190
+ /**
191
+ * [ID] : Instance tabel TanStack.
192
+ * [EN] : TanStack table instance.
193
+ */
44
194
  tableInstance: ITableTanstack<T>;
195
+ /**
196
+ * [ID] : Nama kelas CSS pembungkus tabel (opsional).
197
+ * [EN] : Table wrapper CSS class name (optional).
198
+ */
45
199
  classNameWrapperTable?: string;
200
+ /**
201
+ * [ID] : Nama kelas CSS tabel (opsional).
202
+ * [EN] : Table CSS class name (optional).
203
+ */
46
204
  classNameTable?: string;
205
+ /**
206
+ * [ID] : Handler klik baris (opsional).
207
+ * [EN] : Row click handler (optional).
208
+ */
47
209
  handlerRowClick?: ITable<T>['handlerRowClick'];
210
+ /**
211
+ * [ID] : Hak istimewa klik baris (opsional).
212
+ * [EN] : Row click privilege (optional).
213
+ */
48
214
  privillageRowClick?: boolean;
215
+ /**
216
+ * [ID] : ID header (opsional).
217
+ * [EN] : Header ID (optional).
218
+ */
49
219
  headerId?: string;
220
+ /**
221
+ * [ID] : Fungsi ID header.
222
+ * [EN] : Header ID function.
223
+ * @param head - [ID] : Objek header. [EN] : Header object.
224
+ * @returns [ID] : ID header. [EN] : Header ID.
225
+ */
226
+ theadTrId: (head: Header<T, unknown>) => string | undefined;
227
+ /**
228
+ * [ID] : Fungsi ID baris body.
229
+ * [EN] : Body row ID function.
230
+ * @param row - [ID] : Objek baris. [EN] : Row object.
231
+ * @returns [ID] : ID baris. [EN] : Row ID.
232
+ */
50
233
  tbodyTrId: (row: Row<T>) => string | undefined;
234
+ /**
235
+ * [ID] : Tinggi maksimum (opsional).
236
+ * [EN] : Maximum height (optional).
237
+ */
51
238
  maxHeight?: number;
239
+ /**
240
+ * [ID] : ID perhitungan tinggi (opsional).
241
+ * [EN] : Height calculation ID (optional).
242
+ */
52
243
  idCalculateHeight?: string;
244
+ /**
245
+ * [ID] : Komponen urutkan menaik.
246
+ * [EN] : Sort ascending component.
247
+ */
53
248
  componentSortASC: Element | React.ReactNode | React.ReactNode[];
249
+ /**
250
+ * [ID] : Komponen urutkan menurun.
251
+ * [EN] : Sort descending component.
252
+ */
54
253
  componentSortDESC: Element | React.ReactNode | React.ReactNode[];
254
+ /**
255
+ * [ID] : Nama kelas CSS pointer.
256
+ * [EN] : Pointer CSS class name.
257
+ */
55
258
  classNamePointer: string;
259
+ /**
260
+ * [ID] : Placeholder kosong (opsional).
261
+ * [EN] : Empty placeholder (optional).
262
+ */
56
263
  emptyPlaceholder?: Element | React.ReactNode | React.ReactNode[];
264
+ /**
265
+ * [ID] : Fungsi render sub-komponen (opsional).
266
+ * [EN] : Sub-component render function (optional).
267
+ */
57
268
  renderSubComponent?: ITable<T>['renderSubComponent'];
269
+ /**
270
+ * [ID] : Kolom yang terlihat.
271
+ * [EN] : Visible columns.
272
+ */
58
273
  visibilityColumns: Pick<ITableColumnBreakpoint, 'columns' | 'realColumns'>;
274
+ /**
275
+ * [ID] : Nama kelas CSS sub-mobile.
276
+ * [EN] : Sub-mobile CSS class name.
277
+ */
59
278
  classNameSubMobile: string;
60
279
  }
280
+ /**
281
+ * [ID] : Interface untuk properti virtualisasi.
282
+ * [EN] : Interface for virtualization properties.
283
+ */
61
284
  export interface IVirtualizationProps extends Omit<ITableVirtualization, 'typeHight' | 'itemContent' | 'fixedHeaderContent' | 'itemSizeNames'> {
285
+ /**
286
+ * [ID] : Tipe tinggi (opsional).
287
+ * [EN] : Height type (optional).
288
+ */
62
289
  typeHight?: 'min-max' | 'container';
290
+ /**
291
+ * [ID] : Konten item (opsional).
292
+ * [EN] : Item content (optional).
293
+ */
63
294
  itemContent?: (Wrapper: React.ComponentType<IWrapperProps>, index: number, data: unknown, context: unknown) => React.ReactNode;
295
+ /**
296
+ * [ID] : Konten header tetap (opsional).
297
+ * [EN] : Fixed header content (optional).
298
+ */
64
299
  fixedHeaderContent?: (() => React.ReactNode) | (() => React.ReactNode[]);
300
+ /**
301
+ * [ID] : Nama ukuran item (opsional).
302
+ * [EN] : Item size names (optional).
303
+ */
65
304
  itemSizeNames?: string[];
66
305
  }
306
+ /**
307
+ * [ID] : Interface untuk tabel virtualisasi.
308
+ * [EN] : Interface for virtualization table.
309
+ * @template T - [ID] : Tipe data baris. [EN] : Row data type.
310
+ */
67
311
  export interface IVirtualization<T = unknown> {
312
+ /**
313
+ * [ID] : Instance tabel TanStack.
314
+ * [EN] : TanStack table instance.
315
+ */
68
316
  tableInstance: ITableTanstack<T>;
317
+ /**
318
+ * [ID] : Nama kelas CSS pembungkus tabel (opsional).
319
+ * [EN] : Table wrapper CSS class name (optional).
320
+ */
69
321
  classNameWrapperTable?: string;
322
+ /**
323
+ * [ID] : Handler klik baris (opsional).
324
+ * [EN] : Row click handler (optional).
325
+ */
70
326
  handlerRowClick?: ITable<T>['handlerRowClick'];
327
+ /**
328
+ * [ID] : Hak istimewa klik baris (opsional).
329
+ * [EN] : Row click privilege (optional).
330
+ */
71
331
  privillageRowClick?: boolean;
332
+ /**
333
+ * [ID] : Properti virtualisasi (opsional).
334
+ * [EN] : Virtualization properties (optional).
335
+ */
72
336
  virtualizationProps?: IVirtualizationProps;
337
+ /**
338
+ * [ID] : ID header (opsional).
339
+ * [EN] : Header ID (optional).
340
+ */
73
341
  headerId?: string;
342
+ /**
343
+ * [ID] : Fungsi ID header.
344
+ * [EN] : Header ID function.
345
+ * @param head - [ID] : Objek header. [EN] : Header object.
346
+ * @returns [ID] : ID header. [EN] : Header ID.
347
+ */
348
+ theadTrId: (head: Header<T, unknown>) => string | undefined;
349
+ /**
350
+ * [ID] : Fungsi ID baris body.
351
+ * [EN] : Body row ID function.
352
+ * @param row - [ID] : Objek baris. [EN] : Row object.
353
+ * @returns [ID] : ID baris. [EN] : Row ID.
354
+ */
74
355
  tbodyTrId: (row: Row<T>) => string | undefined;
356
+ /**
357
+ * [ID] : Nama kelas CSS tabel (opsional).
358
+ * [EN] : Table CSS class name (optional).
359
+ */
75
360
  classNameTable?: string;
361
+ /**
362
+ * [ID] : Komponen urutkan menaik.
363
+ * [EN] : Sort ascending component.
364
+ */
76
365
  componentSortASC: Element | React.ReactNode | React.ReactNode[];
366
+ /**
367
+ * [ID] : Komponen urutkan menurun.
368
+ * [EN] : Sort descending component.
369
+ */
77
370
  componentSortDESC: Element | React.ReactNode | React.ReactNode[];
371
+ /**
372
+ * [ID] : Nama kelas CSS pointer.
373
+ * [EN] : Pointer CSS class name.
374
+ */
78
375
  classNamePointer: string;
376
+ /**
377
+ * [ID] : Placeholder kosong (opsional).
378
+ * [EN] : Empty placeholder (optional).
379
+ */
79
380
  emptyPlaceholder?: Element | React.ReactNode | React.ReactNode[];
381
+ /**
382
+ * [ID] : Fungsi render sub-komponen (opsional).
383
+ * [EN] : Sub-component render function (optional).
384
+ */
80
385
  renderSubComponent?: ITable<T>['renderSubComponent'];
386
+ /**
387
+ * [ID] : Kolom yang terlihat.
388
+ * [EN] : Visible columns.
389
+ */
81
390
  visibilityColumns: Pick<ITableColumnBreakpoint, 'columns' | 'realColumns'>;
391
+ /**
392
+ * [ID] : Nama kelas CSS sub-mobile.
393
+ * [EN] : Sub-mobile CSS class name.
394
+ */
82
395
  classNameSubMobile: string;
83
396
  }
397
+ /**
398
+ * [ID] : Interface untuk header virtualisasi.
399
+ * [EN] : Interface for virtualization head.
400
+ */
84
401
  export interface IVirtualizationHead extends React.HTMLAttributes<HTMLTableSectionElement> {
402
+ /**
403
+ * [ID] : Konteks (opsional).
404
+ * [EN] : Context (optional).
405
+ */
85
406
  context?: {
407
+ /**
408
+ * [ID] : ID header (opsional).
409
+ * [EN] : Header ID (optional).
410
+ */
86
411
  headerId?: string;
412
+ /**
413
+ * [ID] : Properti dinamis lainnya.
414
+ * [EN] : Other dynamic properties.
415
+ */
87
416
  [key: string]: unknown;
88
417
  };
418
+ /**
419
+ * [ID] : Properti dinamis lainnya.
420
+ * [EN] : Other dynamic properties.
421
+ */
89
422
  [key: string]: unknown;
90
423
  }
424
+ /**
425
+ * [ID] : Interface untuk tabel virtualisasi.
426
+ * [EN] : Interface for virtualization table.
427
+ */
91
428
  export interface IVirtualizationTable extends React.HTMLAttributes<HTMLTableElement> {
429
+ /**
430
+ * [ID] : Konteks (opsional).
431
+ * [EN] : Context (optional).
432
+ */
92
433
  context?: {
434
+ /**
435
+ * [ID] : Nama kelas CSS tabel (opsional).
436
+ * [EN] : Table CSS class name (optional).
437
+ */
93
438
  classNameTable?: string;
439
+ /**
440
+ * [ID] : Lebar tabel.
441
+ * [EN] : Table width.
442
+ */
94
443
  width: string | number;
444
+ /**
445
+ * [ID] : Properti dinamis lainnya.
446
+ * [EN] : Other dynamic properties.
447
+ */
95
448
  [key: string]: unknown;
96
449
  };
450
+ /**
451
+ * [ID] : Properti dinamis lainnya.
452
+ * [EN] : Other dynamic properties.
453
+ */
97
454
  [key: string]: unknown;
98
455
  }
456
+ /**
457
+ * [ID] : Interface untuk konfigurasi tabel.
458
+ * [EN] : Interface for table configuration.
459
+ */
99
460
  export interface ITableConfig {
461
+ /**
462
+ * [ID] : Konfigurasi jenis.
463
+ * [EN] : Kind configuration.
464
+ */
100
465
  kind: {
101
466
  'payhere-reguler': string;
102
467
  'laba-reguler': string;
103
468
  'laba-small': string;
104
469
  'bill-reguler': string;
105
470
  };
471
+ /**
472
+ * [ID] : Konfigurasi sub-mobile.
473
+ * [EN] : Sub-mobile configuration.
474
+ */
106
475
  subMobile: {
107
476
  'payhere-reguler': string;
108
477
  'laba-reguler': string;
109
478
  'laba-small': string;
110
479
  'bill-reguler': string;
111
480
  };
481
+ /**
482
+ * [ID] : Konfigurasi pointer.
483
+ * [EN] : Pointer configuration.
484
+ */
112
485
  pointer: {
113
486
  'payhere-reguler': string;
114
487
  'laba-reguler': string;
115
488
  'laba-small': string;
116
489
  'bill-reguler': string;
117
490
  };
491
+ /**
492
+ * [ID] : Konfigurasi utilitas.
493
+ * [EN] : Utility configuration.
494
+ */
118
495
  utility: {
119
496
  'table-scroll-top': string;
120
497
  };
498
+ /**
499
+ * [ID] : Konfigurasi ikon pengurutan.
500
+ * [EN] : Sorting icon configuration.
501
+ */
121
502
  sortingIcon: {
122
503
  'payhere-reguler': {
123
504
  asc: Element | React.ReactNode | React.ReactNode[];
@@ -136,6 +517,10 @@ export interface ITableConfig {
136
517
  desc: Element | React.ReactNode | React.ReactNode[];
137
518
  };
138
519
  };
520
+ /**
521
+ * [ID] : Konfigurasi varian.
522
+ * [EN] : Variant configuration.
523
+ */
139
524
  variant: {
140
525
  'laba-grey-02': string;
141
526
  };
@@ -1,37 +1,163 @@
1
1
  import { IBorderRadius } from '../../../config/components/borderRadius';
2
2
  import { TKeyLocale } from '../Calendar';
3
3
 
4
+ /**
5
+ * [ID] : Tipe varian tab.
6
+ * [EN] : Tab variant type.
7
+ */
4
8
  export type TVariantTabs = 'original-laba-blue-10' | 'container-payhere-brand-base' | 'container-payhere-brand-base-bg_white' | 'container-laba-blue-10' | 'container-laba-blue-10-bg_white' | 'original-bill-secondary-800';
9
+ /**
10
+ * [ID] : Tipe ukuran tab.
11
+ * [EN] : Tab size type.
12
+ */
5
13
  export type TSizeTabs = 'tabs-m' | 'tabs-s' | 'tabs-medium' | 'tabs-small';
14
+ /**
15
+ * [ID] : Tipe event tab.
16
+ * [EN] : Tab event type.
17
+ */
6
18
  export type TTypeEventTabs = 'change' | 'mounted';
19
+ /**
20
+ * [ID] : Interface untuk item daftar tab.
21
+ * [EN] : Interface for tab list item.
22
+ */
7
23
  export interface ITabsList {
24
+ /**
25
+ * [ID] : ID tab.
26
+ * [EN] : Tab ID.
27
+ */
8
28
  id: string | number;
29
+ /**
30
+ * [ID] : Label tab.
31
+ * [EN] : Tab label.
32
+ */
9
33
  label: string | number;
34
+ /**
35
+ * [ID] : Status disembunyikan (opsional).
36
+ * [EN] : Is hidden status (optional).
37
+ */
10
38
  isHide?: boolean;
39
+ /**
40
+ * [ID] : Nama kelas CSS (opsional).
41
+ * [EN] : CSS class name (optional).
42
+ */
11
43
  className?: string;
44
+ /**
45
+ * [ID] : Warna aktif (opsional).
46
+ * [EN] : Active color (optional).
47
+ */
12
48
  activeColor?: string;
49
+ /**
50
+ * [ID] : Lokal bahasa (opsional).
51
+ * [EN] : Locale (optional).
52
+ */
13
53
  locale?: Partial<Record<TKeyLocale, string>>;
14
54
  }
55
+ /**
56
+ * [ID] : Interface untuk komponen Tabs.
57
+ * [EN] : Interface for Tabs component.
58
+ */
15
59
  export interface ITabs {
60
+ /**
61
+ * [ID] : ID elemen (opsional).
62
+ * [EN] : Element ID (optional).
63
+ */
16
64
  id?: string;
65
+ /**
66
+ * [ID] : Nilai tab aktif (opsional).
67
+ * [EN] : Active tab value (optional).
68
+ */
17
69
  value?: string | number;
70
+ /**
71
+ * [ID] : Daftar tab.
72
+ * [EN] : Tab list.
73
+ */
18
74
  tabsList: ITabsList[];
75
+ /**
76
+ * [ID] : Kunci nilai tab (opsional).
77
+ * [EN] : Tab value key (optional).
78
+ */
19
79
  keyValueTab?: string;
80
+ /**
81
+ * [ID] : Nama kelas CSS kontainer (opsional).
82
+ * [EN] : Container CSS class name (optional).
83
+ */
20
84
  classNameContainer?: string;
85
+ /**
86
+ * [ID] : Nama kelas CSS (opsional).
87
+ * [EN] : CSS class name (optional).
88
+ */
21
89
  className?: string;
90
+ /**
91
+ * [ID] : Nama kelas CSS tombol (opsional).
92
+ * [EN] : Button CSS class name (optional).
93
+ */
22
94
  classNameButton?: string;
95
+ /**
96
+ * [ID] : Varian tab (opsional).
97
+ * [EN] : Tab variant (optional).
98
+ */
23
99
  variant?: TVariantTabs;
100
+ /**
101
+ * [ID] : Ukuran tab (opsional).
102
+ * [EN] : Tab size (optional).
103
+ */
24
104
  size?: TSizeTabs;
105
+ /**
106
+ * [ID] : Radius sudut (opsional).
107
+ * [EN] : Border radius (optional).
108
+ */
25
109
  borderRadius?: IBorderRadius;
110
+ /**
111
+ * [ID] : Status non-aktif (opsional).
112
+ * [EN] : Disabled status (optional).
113
+ */
26
114
  disabled?: boolean;
115
+ /**
116
+ * [ID] : Animasi (opsional).
117
+ * [EN] : Animation (optional).
118
+ */
27
119
  animation?: boolean;
120
+ /**
121
+ * [ID] : Eksekusi perubahan saat mounted (opsional).
122
+ * [EN] : Execute change on mounted (optional).
123
+ */
28
124
  mountedExecuteChange?: boolean;
125
+ /**
126
+ * [ID] : Handler perubahan tab (opsional).
127
+ * [EN] : Tab change handler (optional).
128
+ * @param v - [ID] : Tab yang dipilih. [EN] : Selected tab.
129
+ * @param sourceEvent - [ID] : Sumber event. [EN] : Event source.
130
+ */
29
131
  onChange?: (v: ITabsList, sourceEvent: TTypeEventTabs) => void;
132
+ /**
133
+ * [ID] : Tipe tombol (opsional).
134
+ * [EN] : Button type (optional).
135
+ */
30
136
  typeButton?: 'button' | 'submit';
137
+ /**
138
+ * [ID] : Lokal bahasa (opsional).
139
+ * [EN] : Locale (optional).
140
+ */
31
141
  locale?: TKeyLocale;
32
142
  }
143
+ /**
144
+ * [ID] : Interface untuk gaya tab.
145
+ * [EN] : Interface for tab style.
146
+ */
33
147
  export interface IStyleTabs {
148
+ /**
149
+ * [ID] : Lebar.
150
+ * [EN] : Width.
151
+ */
34
152
  width: number;
153
+ /**
154
+ * [ID] : Tinggi.
155
+ * [EN] : Height.
156
+ */
35
157
  height: number;
158
+ /**
159
+ * [ID] : Posisi kiri.
160
+ * [EN] : Left position.
161
+ */
36
162
  left: number;
37
163
  }
@@ -1,6 +1,18 @@
1
1
  import { IAllProps } from '@tinymce/tinymce-react';
2
2
 
3
+ /**
4
+ * [ID] : Interface untuk komponen TextEditor.
5
+ * [EN] : Interface for TextEditor component.
6
+ */
3
7
  export interface ITextEditorProps extends IAllProps {
8
+ /**
9
+ * [ID] : ID editor.
10
+ * [EN] : Editor ID.
11
+ */
4
12
  id: string;
13
+ /**
14
+ * [ID] : Label editor (opsional).
15
+ * [EN] : Editor label (optional).
16
+ */
5
17
  label?: string;
6
18
  }