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,18 +1,79 @@
1
1
  import { ReactNode } from 'react';
2
+
3
+ /**
4
+ * [ID] : Interface untuk komponen Collapse.
5
+ * [EN] : Interface for Collapse component.
6
+ */
2
7
  export interface ICollapse {
8
+ /**
9
+ * [ID] : Konten anak yang akan di-collapse.
10
+ * [EN] : Child content to be collapsed.
11
+ */
3
12
  children: ReactNode | ReactNode[];
13
+ /**
14
+ * [ID] : Status terbuka atau tertutup.
15
+ * [EN] : Open or closed status.
16
+ */
4
17
  open: boolean;
18
+ /**
19
+ * [ID] : ID elemen collapse.
20
+ * [EN] : Collapse element ID.
21
+ */
5
22
  id: string;
23
+ /**
24
+ * [ID] : Nama kelas CSS tambahan (opsional).
25
+ * [EN] : Additional CSS class name (optional).
26
+ */
6
27
  className?: string | undefined;
28
+ /**
29
+ * [ID] : Nama kelas CSS untuk kontainer (opsional).
30
+ * [EN] : CSS class name for container (optional).
31
+ */
7
32
  classNameContainer?: string | undefined;
33
+ /**
34
+ * [ID] : Tinggi maksimum saat collapsed (opsional).
35
+ * [EN] : Maximum height when collapsed (optional).
36
+ */
8
37
  maxCollapsedHeight?: number | string;
38
+ /**
39
+ * [ID] : Pemicu perhitungan ulang kontainer (opsional).
40
+ * [EN] : Trigger for container recalculation (optional).
41
+ */
9
42
  triggerCalCulateContainer?: number | string | boolean | object;
43
+ /**
44
+ * [ID] : Penundaan perhitungan tinggi (ms) (opsional).
45
+ * [EN] : Height calculation delay (ms) (optional).
46
+ */
10
47
  delayTriggerCalculateHeight?: number;
11
48
  }
49
+ /**
50
+ * [ID] : Interface untuk komponen Collapse versi 2.
51
+ * [EN] : Interface for Collapse version 2 component.
52
+ */
12
53
  export interface ICollapseV2 {
54
+ /**
55
+ * [ID] : Konten anak yang akan di-collapse.
56
+ * [EN] : Child content to be collapsed.
57
+ */
13
58
  children: ReactNode | ReactNode[];
59
+ /**
60
+ * [ID] : Status terbuka atau tertutup.
61
+ * [EN] : Open or closed status.
62
+ */
14
63
  open: boolean;
64
+ /**
65
+ * [ID] : ID elemen collapse.
66
+ * [EN] : Collapse element ID.
67
+ */
15
68
  id: string;
69
+ /**
70
+ * [ID] : Nama kelas CSS tambahan (opsional).
71
+ * [EN] : Additional CSS class name (optional).
72
+ */
16
73
  className?: string;
74
+ /**
75
+ * [ID] : Nama kelas CSS untuk kontainer (opsional).
76
+ * [EN] : CSS class name for container (optional).
77
+ */
17
78
  classNameContainer?: string | undefined;
18
79
  }
@@ -1,66 +1,314 @@
1
1
  import { ReactNode } from 'react';
2
2
  import { ICalendarButtonConfirm, ICalendarPrevNextIcon, IDateRange, TDateType } from '../Calendar';
3
3
  import { OffsetOptions, UseFloatingOptions } from '@floating-ui/react';
4
+
5
+ /**
6
+ * [ID] : Interface untuk komponen DatePicker tunggal.
7
+ * [EN] : Interface for single DatePicker component.
8
+ */
4
9
  export interface IDatePicker extends ICalendarPrevNextIcon, ICalendarButtonConfirm {
10
+ /**
11
+ * [ID] : Nilai tanggal (opsional).
12
+ * [EN] : Date value (optional).
13
+ */
5
14
  value?: TDateType;
15
+ /**
16
+ * [ID] : Nilai default tanggal (opsional).
17
+ * [EN] : Default date value (optional).
18
+ */
6
19
  defaultValue?: TDateType;
20
+ /**
21
+ * [ID] : Tanggal minimum (opsional).
22
+ * [EN] : Minimum date (optional).
23
+ */
7
24
  minDate?: TDateType;
25
+ /**
26
+ * [ID] : Tanggal maksimum (opsional).
27
+ * [EN] : Maximum date (optional).
28
+ */
8
29
  maxDate?: TDateType;
30
+ /**
31
+ * [ID] : Menampilkan tombol konfirmasi (opsional).
32
+ * [EN] : Show confirm buttons (optional).
33
+ */
9
34
  withConfirm?: boolean;
35
+ /**
36
+ * [ID] : Menggunakan waktu kustom (opsional).
37
+ * [EN] : Use custom time (optional).
38
+ */
10
39
  isCustomTime?: boolean;
40
+ /**
41
+ * [ID] : Nama kelas CSS (opsional).
42
+ * [EN] : CSS class name (optional).
43
+ */
11
44
  className?: string | undefined;
45
+ /**
46
+ * [ID] : Nama kelas CSS tombol (opsional).
47
+ * [EN] : Button CSS class name (optional).
48
+ */
12
49
  classNameButton?: string | undefined;
50
+ /**
51
+ * [ID] : Fungsi render tombol kustom (opsional).
52
+ * [EN] : Custom button render function (optional).
53
+ * @param v - [ID] : Nilai tanggal. [EN] : Date value.
54
+ * @returns [ID] : Elemen React. [EN] : React element.
55
+ */
13
56
  buttonClick?: ((v: TDateType) => ReactNode) | ((v: TDateType) => ReactNode[]);
57
+ /**
58
+ * [ID] : Handler perubahan tanggal (opsional).
59
+ * [EN] : Date change handler (optional).
60
+ * @param v - [ID] : Tanggal baru. [EN] : New date.
61
+ */
14
62
  onChange?: (v?: TDateType) => void;
63
+ /**
64
+ * [ID] : ID popover (opsional).
65
+ * [EN] : Popover ID (optional).
66
+ */
15
67
  idPopover?: string;
68
+ /**
69
+ * [ID] : ID elemen (opsional).
70
+ * [EN] : Element ID (optional).
71
+ */
16
72
  id?: string;
73
+ /**
74
+ * [ID] : Opsi floating UI (opsional).
75
+ * [EN] : Floating UI options (optional).
76
+ */
17
77
  floatingOptions?: UseFloatingOptions;
78
+ /**
79
+ * [ID] : Offset popover (opsional).
80
+ * [EN] : Popover offset (optional).
81
+ */
18
82
  offsetPopover?: OffsetOptions;
83
+ /**
84
+ * [ID] : Z-index popover (opsional).
85
+ * [EN] : Popover z-index (optional).
86
+ */
19
87
  zIndexPopper?: number | undefined | string;
88
+ /**
89
+ * [ID] : Menyembunyikan header (opsional).
90
+ * [EN] : Hide header (optional).
91
+ */
20
92
  hiddenHeader?: boolean;
21
93
  }
94
+ /**
95
+ * [ID] : Interface untuk komponen DatePicker rentang tanggal.
96
+ * [EN] : Interface for date range DatePicker component.
97
+ */
22
98
  export interface IDateRangePicker extends ICalendarPrevNextIcon, ICalendarButtonConfirm {
99
+ /**
100
+ * [ID] : Nilai default rentang tanggal (opsional).
101
+ * [EN] : Default date range value (optional).
102
+ */
23
103
  defaultValue?: IDateRange;
24
- value?: TDateType;
104
+ /**
105
+ * [ID] : Nilai rentang tanggal (opsional).
106
+ * [EN] : Date range value (optional).
107
+ */
108
+ value?: IDateRange;
109
+ /**
110
+ * [ID] : Tanggal minimum (opsional).
111
+ * [EN] : Minimum date (optional).
112
+ */
25
113
  minDate?: TDateType;
114
+ /**
115
+ * [ID] : Tanggal maksimum (opsional).
116
+ * [EN] : Maximum date (optional).
117
+ */
26
118
  maxDate?: TDateType;
119
+ /**
120
+ * [ID] : Menampilkan tombol konfirmasi (opsional).
121
+ * [EN] : Show confirm buttons (optional).
122
+ */
27
123
  withConfirm?: boolean;
124
+ /**
125
+ * [ID] : Tipe picker (SINGLE atau RANGE) (opsional).
126
+ * [EN] : Picker type (SINGLE or RANGE) (optional).
127
+ */
28
128
  typePicker?: 'SINGLE' | 'RANGE';
129
+ /**
130
+ * [ID] : Menggunakan waktu kustom (opsional).
131
+ * [EN] : Use custom time (optional).
132
+ */
133
+ isCustomTime?: boolean;
134
+ /**
135
+ * [ID] : Handler perubahan rentang tanggal (opsional).
136
+ * [EN] : Date range change handler (optional).
137
+ * @param v - [ID] : Rentang tanggal baru. [EN] : New date range.
138
+ */
29
139
  onChange?: (v: IDateRange) => void;
140
+ /**
141
+ * [ID] : Handler reset (opsional).
142
+ * [EN] : Reset handler (optional).
143
+ */
30
144
  onReset?: () => void;
31
145
  }
146
+ /**
147
+ * [ID] : Tipe kunci untuk daftar tombol filter tanggal.
148
+ * [EN] : Key type for filter date button list.
149
+ */
32
150
  export type TKeyFilterDateButtonListType = 'thisDay' | 'thisWeek' | 'thisMonth' | 'thisYear' | 'yesterday' | 'lastWeek' | 'lastMonth' | 'lastYear' | 'custom' | IDateRange;
151
+ /**
152
+ * [ID] : Interface untuk item daftar tombol filter tanggal.
153
+ * [EN] : Interface for filter date button list item.
154
+ */
33
155
  export interface IFilterDateButtonList {
156
+ /**
157
+ * [ID] : Kunci filter.
158
+ * [EN] : Filter key.
159
+ */
34
160
  key: TKeyFilterDateButtonListType;
161
+ /**
162
+ * [ID] : Nilai tampilan.
163
+ * [EN] : Display value.
164
+ */
35
165
  value: string;
36
166
  }
167
+ /**
168
+ * [ID] : Interface untuk komponen FilterDate.
169
+ * [EN] : Interface for FilterDate component.
170
+ */
37
171
  export interface IFilterDate extends ICalendarPrevNextIcon, ICalendarButtonConfirm {
172
+ /**
173
+ * [ID] : Nama kelas CSS (opsional).
174
+ * [EN] : CSS class name (optional).
175
+ */
38
176
  className?: string | undefined;
177
+ /**
178
+ * [ID] : Nama kelas CSS tombol (opsional).
179
+ * [EN] : Button CSS class name (optional).
180
+ */
39
181
  classNameButton?: string | undefined;
182
+ /**
183
+ * [ID] : Konten atau fungsi render tombol (opsional).
184
+ * [EN] : Button content or render function (optional).
185
+ */
40
186
  buttonClick?: ReactNode | ReactNode[] | ((v: IDateRange | undefined, label: IFilterDateButtonList | undefined) => ReactNode) | ((v: IDateRange | undefined, label: IFilterDateButtonList | undefined) => ReactNode[]);
187
+ /**
188
+ * [ID] : Nilai rentang tanggal (opsional).
189
+ * [EN] : Date range value (optional).
190
+ */
41
191
  value?: IDateRange | undefined;
192
+ /**
193
+ * [ID] : Label nilai default (opsional).
194
+ * [EN] : Default value label (optional).
195
+ */
42
196
  defaultValueLabel?: TKeyFilterDateButtonListType | IDateRange;
197
+ /**
198
+ * [ID] : Daftar tombol filter (opsional).
199
+ * [EN] : Filter button list (optional).
200
+ */
43
201
  buttonList?: IFilterDateButtonList[];
202
+ /**
203
+ * [ID] : Tipe picker (RANGE atau SINGLE) (opsional).
204
+ * [EN] : Picker type (RANGE or SINGLE) (optional).
205
+ */
44
206
  typePicker?: 'RANGE' | 'SINGLE';
207
+ /**
208
+ * [ID] : Handler perubahan filter (opsional).
209
+ * [EN] : Filter change handler (optional).
210
+ * @param v - [ID] : Rentang tanggal baru. [EN] : New date range.
211
+ * @param labelDesc - [ID] : Deskripsi label. [EN] : Label description.
212
+ * @param label - [ID] : Objek label. [EN] : Label object.
213
+ */
45
214
  onChange?: (v?: IDateRange, labelDesc?: string, label?: IFilterDateButtonList) => void;
215
+ /**
216
+ * [ID] : ID popover (opsional).
217
+ * [EN] : Popover ID (optional).
218
+ */
46
219
  idPopover?: string;
220
+ /**
221
+ * [ID] : ID elemen (opsional).
222
+ * [EN] : Element ID (optional).
223
+ */
47
224
  id?: string;
225
+ /**
226
+ * [ID] : Menggunakan waktu kustom (opsional).
227
+ * [EN] : Use custom time (optional).
228
+ */
229
+ isCustomTime?: boolean;
230
+ /**
231
+ * [ID] : Opsi floating UI (opsional).
232
+ * [EN] : Floating UI options (optional).
233
+ */
48
234
  floatingOptions?: UseFloatingOptions;
235
+ /**
236
+ * [ID] : Offset popover (opsional).
237
+ * [EN] : Popover offset (optional).
238
+ */
49
239
  offsetPopover?: OffsetOptions;
240
+ /**
241
+ * [ID] : Z-index popover (opsional).
242
+ * [EN] : Popover z-index (optional).
243
+ */
50
244
  zIndexPopper?: number | undefined | string;
245
+ /**
246
+ * [ID] : Eksekusi perubahan saat mounted (opsional).
247
+ * [EN] : Execute change on mounted (optional).
248
+ */
51
249
  mountedExecuteChange?: boolean;
250
+ /**
251
+ * [ID] : Format tanggal (opsional).
252
+ * [EN] : Date formatting (optional).
253
+ */
52
254
  formatingDate?: string | boolean;
53
255
  }
256
+ /**
257
+ * [ID] : Tipe picker bulan/tahun.
258
+ * [EN] : Month/year picker type.
259
+ */
54
260
  export type TTypeMonthYearPicker = 'month' | 'year';
261
+ /**
262
+ * [ID] : Interface untuk komponen MonthYearPicker.
263
+ * [EN] : Interface for MonthYearPicker component.
264
+ */
55
265
  export interface IMonthYearPicker {
266
+ /**
267
+ * [ID] : Bulan yang dipilih.
268
+ * [EN] : Selected month.
269
+ */
56
270
  month: number;
271
+ /**
272
+ * [ID] : Tahun yang dipilih.
273
+ * [EN] : Selected year.
274
+ */
57
275
  year: number;
276
+ /**
277
+ * [ID] : Tanggal minimum (opsional).
278
+ * [EN] : Minimum date (optional).
279
+ */
58
280
  minDate?: TDateType;
281
+ /**
282
+ * [ID] : Tanggal maksimum (opsional).
283
+ * [EN] : Maximum date (optional).
284
+ */
59
285
  maxDate?: TDateType;
286
+ /**
287
+ * [ID] : Tipe picker yang tersedia (opsional).
288
+ * [EN] : Available picker types (optional).
289
+ */
60
290
  type?: TTypeMonthYearPicker[];
291
+ /**
292
+ * [ID] : Tipe picker aktif (opsional).
293
+ * [EN] : Active picker type (optional).
294
+ */
61
295
  activeType?: TTypeMonthYearPicker;
296
+ /**
297
+ * [ID] : Nama kelas CSS (opsional).
298
+ * [EN] : CSS class name (optional).
299
+ */
62
300
  className?: string | undefined;
301
+ /**
302
+ * [ID] : Nama kelas CSS tombol (opsional).
303
+ * [EN] : Button CSS class name (optional).
304
+ */
63
305
  classNameButton?: string | undefined;
306
+ /**
307
+ * [ID] : Fungsi render tombol kustom (opsional).
308
+ * [EN] : Custom button render function (optional).
309
+ * @param v - [ID] : Objek bulan dan tahun. [EN] : Month and year object.
310
+ * @returns [ID] : Elemen React. [EN] : React element.
311
+ */
64
312
  buttonClick?: ((v: {
65
313
  month: number;
66
314
  year: number;
@@ -68,14 +316,43 @@ export interface IMonthYearPicker {
68
316
  month: number;
69
317
  year: number;
70
318
  }) => ReactNode[]);
319
+ /**
320
+ * [ID] : Handler perubahan bulan/tahun (opsional).
321
+ * [EN] : Month/year change handler (optional).
322
+ * @param v - [ID] : Objek bulan dan tahun baru. [EN] : New month and year object.
323
+ */
71
324
  onChange?: (v: {
72
325
  month: number;
73
326
  year: number;
74
327
  }) => void;
328
+ /**
329
+ * [ID] : ID popover (opsional).
330
+ * [EN] : Popover ID (optional).
331
+ */
75
332
  idPopover?: string;
333
+ /**
334
+ * [ID] : ID elemen (opsional).
335
+ * [EN] : Element ID (optional).
336
+ */
76
337
  id?: string;
338
+ /**
339
+ * [ID] : Opsi floating UI (opsional).
340
+ * [EN] : Floating UI options (optional).
341
+ */
77
342
  floatingOptions?: UseFloatingOptions;
343
+ /**
344
+ * [ID] : Offset popover (opsional).
345
+ * [EN] : Popover offset (optional).
346
+ */
78
347
  offsetPopover?: OffsetOptions;
348
+ /**
349
+ * [ID] : Z-index popover (opsional).
350
+ * [EN] : Popover z-index (optional).
351
+ */
79
352
  zIndexPopper?: number | undefined | string;
353
+ /**
354
+ * [ID] : Menyembunyikan header (opsional).
355
+ * [EN] : Hide header (optional).
356
+ */
80
357
  hiddenHeader?: boolean;
81
358
  }
@@ -1,5 +1,21 @@
1
+ /**
2
+ * [ID] : Interface untuk komponen pesan error.
3
+ * [EN] : Interface for error message component.
4
+ */
1
5
  export interface IErrorMessage {
6
+ /**
7
+ * [ID] : Nama kelas CSS (opsional).
8
+ * [EN] : CSS class name (optional).
9
+ */
2
10
  className?: string;
3
- variants?: 'laba' | 'payhere';
11
+ /**
12
+ * [ID] : Varian gaya pesan error (opsional).
13
+ * [EN] : Error message style variant (optional).
14
+ */
15
+ variants?: 'laba' | 'payhere' | 'bill';
16
+ /**
17
+ * [ID] : Teks pesan error (opsional).
18
+ * [EN] : Error message text (optional).
19
+ */
4
20
  error?: string;
5
21
  }
@@ -1,29 +1,132 @@
1
1
  import { default as React } from 'react';
2
+
3
+ /**
4
+ * [ID] : Interface untuk properti anak FilterContainer.
5
+ * [EN] : Interface for FilterContainer child properties.
6
+ */
2
7
  export interface IChildFilterContainer {
8
+ /**
9
+ * [ID] : Handler perubahan filter.
10
+ * [EN] : Filter change handler.
11
+ */
3
12
  handlerOnChange: THandlerOnChangeFilterContainer;
13
+ /**
14
+ * [ID] : Handler perubahan native.
15
+ * [EN] : Native change handler.
16
+ */
4
17
  handlerOnChangeNative: THandlerOnChangeNative;
18
+ /**
19
+ * [ID] : Nilai state gabungan.
20
+ * [EN] : Merged state value.
21
+ */
5
22
  value: IMergeState;
23
+ /**
24
+ * [ID] : Nilai native gabungan.
25
+ * [EN] : Merged native value.
26
+ */
6
27
  nativeValue: IMergeState;
7
28
  }
29
+ /**
30
+ * [ID] : Tipe array objek untuk FilterContainer.
31
+ * [EN] : Array of objects type for FilterContainer.
32
+ */
8
33
  export type IArrayOfObjectFilterContainer = {
9
34
  [key: string]: unknown;
10
35
  }[];
36
+ /**
37
+ * [ID] : Interface untuk state gabungan.
38
+ * [EN] : Interface for merged state.
39
+ */
11
40
  export interface IMergeState {
41
+ /**
42
+ * [ID] : Nilai dinamis berdasarkan kunci.
43
+ * [EN] : Dynamic value based on key.
44
+ */
12
45
  [key: string]: object | number | string | boolean | string[] | IArrayOfObjectFilterContainer;
13
46
  }
47
+ /**
48
+ * [ID] : Tipe fungsi handler perubahan FilterContainer.
49
+ * [EN] : Function type for FilterContainer change handler.
50
+ * @param value - [ID] : Nilai baru. [EN] : New value.
51
+ * @param key - [ID] : Kunci yang berubah. [EN] : Changed key.
52
+ * @param transform - [ID] : Tipe transformasi (opsional). [EN] : Transformation type (optional).
53
+ * @param keyTransform - [ID] : Kunci transformasi. [EN] : Transformation key.
54
+ */
14
55
  export type THandlerOnChangeFilterContainer = (value: object | string | boolean | string[] | IArrayOfObjectFilterContainer, key: string, transform: 'array-to-string' | 'array-of-object-to-array' | 'array-of-object-to-string' | '', keyTransform: string) => void;
56
+ /**
57
+ * [ID] : Tipe fungsi handler perubahan native.
58
+ * [EN] : Function type for native change handler.
59
+ * @param value - [ID] : Nilai baru. [EN] : New value.
60
+ * @param nativeValue - [ID] : Nilai native baru (opsional). [EN] : New native value (optional).
61
+ */
15
62
  export type THandlerOnChangeNative = (value: IMergeState, nativeValue?: IMergeState) => void;
63
+ /**
64
+ * [ID] : Interface untuk komponen FilterContainer.
65
+ * [EN] : Interface for FilterContainer component.
66
+ */
16
67
  export interface IFilterContainer {
68
+ /**
69
+ * [ID] : Fungsi render props untuk anak.
70
+ * [EN] : Render props function for children.
71
+ * @param params - [ID] : Parameter anak FilterContainer. [EN] : FilterContainer child parameters.
72
+ * @returns [ID] : Node React. [EN] : React Node.
73
+ */
17
74
  children: ((params: IChildFilterContainer) => React.ReactNode) | ((params: IChildFilterContainer) => React.ReactNode[]);
75
+ /**
76
+ * [ID] : Handler perubahan nilai (opsional).
77
+ * [EN] : Value change handler (optional).
78
+ * @param value - [ID] : Nilai baru. [EN] : New value.
79
+ * @param nativeValue - [ID] : Nilai native baru. [EN] : New native value.
80
+ */
18
81
  onChange?: (value: IMergeState, nativeValue: IMergeState) => void;
82
+ /**
83
+ * [ID] : Prefix untuk nilai native (opsional).
84
+ * [EN] : Prefix for native value (optional).
85
+ */
19
86
  prefixNativeValue?: string;
87
+ /**
88
+ * [ID] : Nilai default (opsional).
89
+ * [EN] : Default value (optional).
90
+ */
20
91
  defaultValue?: IMergeState;
92
+ /**
93
+ * [ID] : Nilai native default (opsional).
94
+ * [EN] : Default native value (optional).
95
+ */
21
96
  defaultNativeValue?: IMergeState;
97
+ /**
98
+ * [ID] : Eksekusi perubahan saat mounted (opsional).
99
+ * [EN] : Execute change on mounted (optional).
100
+ */
22
101
  mountedExecuteChange?: boolean;
102
+ /**
103
+ * [ID] : Kunci yang dipertahankan (opsional).
104
+ * [EN] : Kept keys (optional).
105
+ */
23
106
  keepKeys?: string[];
107
+ /**
108
+ * [ID] : Reset pagination saat perubahan (opsional).
109
+ * [EN] : Reset pagination on change (optional).
110
+ */
24
111
  resetPagination?: boolean;
112
+ /**
113
+ * [ID] : Kunci nomor halaman (opsional).
114
+ * [EN] : Page number key (optional).
115
+ */
25
116
  keyPageNumber?: string;
117
+ /**
118
+ * [ID] : Status reset (opsional).
119
+ * [EN] : Reset status (optional).
120
+ */
26
121
  reset?: boolean;
122
+ /**
123
+ * [ID] : Pemicu reset dengan nilai tertentu (opsional).
124
+ * [EN] : Trigger reset with specific value (optional).
125
+ */
27
126
  triggerReset?: IMergeState;
28
127
  }
128
+ /**
129
+ * [ID] : Tipe referensi FilterContainer.
130
+ * [EN] : FilterContainer reference type.
131
+ */
29
132
  export type TRefFilterContainer = IChildFilterContainer;