1mpacto-react-ui 1.0.0 → 2.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (260) 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/assets/style.css +1 -1
  6. package/dist/assets/toast.css +194 -98
  7. package/dist/index.cjs +154 -145
  8. package/dist/index.d.ts +2 -1
  9. package/dist/index.mjs +26996 -26119
  10. package/dist/package.json.d.ts +132 -131
  11. package/dist/src/components/Alert/index.d.ts +0 -1
  12. package/dist/src/components/Badges/Badges.d.ts +0 -1
  13. package/dist/src/components/Badges/Badges.stories.d.ts +1 -2
  14. package/dist/src/components/Breadcrumbs/Breadcrumbs.d.ts +0 -1
  15. package/dist/src/components/Breadcrumbs/Breadcrumbs.stories.d.ts +1 -2
  16. package/dist/src/components/Button/Button.d.ts +0 -1
  17. package/dist/src/components/Button/Button.stories.d.ts +1 -2
  18. package/dist/src/components/ButtonIcon/ButtonIcon.d.ts +0 -1
  19. package/dist/src/components/ButtonIcon/ButtonIcon.stories.d.ts +1 -2
  20. package/dist/src/components/ButtonPopover/ButtonPopover.d.ts +0 -1
  21. package/dist/src/components/ButtonPopover/ButtonPopover.stories.d.ts +1 -2
  22. package/dist/src/components/Calendar/Calendar.d.ts +0 -1
  23. package/dist/src/components/Calendar/Calendar.stories.d.ts +1 -2
  24. package/dist/src/components/Calendar/CalendarButton.d.ts +0 -1
  25. package/dist/src/components/Calendar/CalendarCell.d.ts +0 -1
  26. package/dist/src/components/Calendar/CalendarMonth.d.ts +0 -1
  27. package/dist/src/components/Calendar/CalendarRange.d.ts +0 -1
  28. package/dist/src/components/Calendar/CalendarYear.d.ts +0 -1
  29. package/dist/src/components/Chart/DoughnutChart.d.ts +0 -1
  30. package/dist/src/components/Chart/GradientBarChart.d.ts +0 -1
  31. package/dist/src/components/Chart/GradientBarChart.stories.d.ts +3 -4
  32. package/dist/src/components/Chart/GradientLineChart.d.ts +0 -1
  33. package/dist/src/components/Chart/GradientLineChart.stories.d.ts +3 -4
  34. package/dist/src/components/Chart/LineChart.d.ts +0 -1
  35. package/dist/src/components/Chart/LineChart.stories.d.ts +1 -2
  36. package/dist/src/components/Chips/Chips.d.ts +0 -1
  37. package/dist/src/components/Chips/Chips.stories.d.ts +1 -2
  38. package/dist/src/components/Collapse/Collapse.d.ts +0 -1
  39. package/dist/src/components/Collapse/Collapse.stories.d.ts +1 -2
  40. package/dist/src/components/Collapse/CollapseV2.d.ts +0 -1
  41. package/dist/src/components/Collapse/CollapseV2.stories.d.ts +1 -2
  42. package/dist/src/components/Colors/Colors.stories.d.ts +1 -2
  43. package/dist/src/components/DatePicker/DatePicker.d.ts +0 -1
  44. package/dist/src/components/DatePicker/DatePicker.stories.d.ts +1 -2
  45. package/dist/src/components/DatePicker/DateRangePicker.d.ts +0 -1
  46. package/dist/src/components/DatePicker/FilterDate.d.ts +0 -1
  47. package/dist/src/components/DatePicker/FilterDate.stories.d.ts +1 -2
  48. package/dist/src/components/DatePicker/MonthYearPicker.d.ts +0 -1
  49. package/dist/src/components/DatePicker/MonthYearPicker.stories.d.ts +1 -2
  50. package/dist/src/components/ErrorMessage/ErrorMessage.d.ts +0 -1
  51. package/dist/src/components/ErrorMessage/ErrorMessage.stories.d.ts +1 -2
  52. package/dist/src/components/FilterContainer/FilterContainer.d.ts +0 -1
  53. package/dist/src/components/FilterContainer/FilterContainer.stories.d.ts +1 -2
  54. package/dist/src/components/Input/InputFloatingInner.d.ts +0 -1
  55. package/dist/src/components/Input/InputFloatingInner.stories.d.ts +1 -2
  56. package/dist/src/components/Input/InputInnerLabel.d.ts +0 -1
  57. package/dist/src/components/Input/InputInnerLabel.stories.d.ts +1 -2
  58. package/dist/src/components/Input/InputNative.d.ts +0 -1
  59. package/dist/src/components/Input/InputNative.stories.d.ts +1 -2
  60. package/dist/src/components/Input/InputReguler.d.ts +0 -1
  61. package/dist/src/components/Input/InputReguler.stories.d.ts +1 -2
  62. package/dist/src/components/Modal/ModalDialog.d.ts +0 -1
  63. package/dist/src/components/Modal/ModalDialog.stories.d.ts +1 -2
  64. package/dist/src/components/NumberFormat/NumberFormat.d.ts +0 -1
  65. package/dist/src/components/NumberFormat/NumberFormat.stories.d.ts +1 -2
  66. package/dist/src/components/Pagination/Pagination.d.ts +0 -1
  67. package/dist/src/components/Pagination/Pagination.stories.d.ts +1 -2
  68. package/dist/src/components/Popover/Popover.d.ts +0 -1
  69. package/dist/src/components/Popover/Popover.stories.d.ts +3 -4
  70. package/dist/src/components/PortalComponent/PortalComponent.d.ts +0 -1
  71. package/dist/src/components/PortalComponent/PortalComponent.stories.d.ts +1 -2
  72. package/dist/src/components/RadioCheckbox/CheckboxTable.d.ts +0 -1
  73. package/dist/src/components/RadioCheckbox/RadioCheckbox.d.ts +0 -1
  74. package/dist/src/components/RadioCheckbox/RadioCheckbox.stories.d.ts +1 -2
  75. package/dist/src/components/RadioCheckbox/RadioCheckboxLabel.d.ts +0 -1
  76. package/dist/src/components/RadioCheckbox/RadioCheckboxLabel.stories.d.ts +1 -2
  77. package/dist/src/components/SelectDropdownContainer/SelectDropdownContainer.d.ts +1 -2
  78. package/dist/src/components/SelectDropdownContainer/SelectDropdownContainer.stories.d.ts +4 -5
  79. package/dist/src/components/SelectDropdownContainer/styleConfig.d.ts +0 -1
  80. package/dist/src/components/Sidebar/ItemSidebar.d.ts +0 -1
  81. package/dist/src/components/Sidebar/Sidebar.d.ts +1 -2
  82. package/dist/src/components/Sidebar/Sidebar.stories.d.ts +5 -6
  83. package/dist/src/components/Step/Step.d.ts +0 -1
  84. package/dist/src/components/Step/Step.stories.d.ts +1 -2
  85. package/dist/src/components/Step/StepIndicator.d.ts +0 -1
  86. package/dist/src/components/Step/StepIndicator.stories.d.ts +1 -2
  87. package/dist/src/components/Switch/Switch.d.ts +0 -1
  88. package/dist/src/components/Switch/Switch.stories.d.ts +1 -2
  89. package/dist/src/components/Table/Table.config.d.ts +0 -1
  90. package/dist/src/components/Table/Table.d.ts +0 -1
  91. package/dist/src/components/Table/Table.stories.d.ts +1 -2
  92. package/dist/src/components/Table/TableSubMobile.d.ts +0 -1
  93. package/dist/src/components/Tabs/TabPanel.d.ts +0 -1
  94. package/dist/src/components/Tabs/Tabs.d.ts +0 -1
  95. package/dist/src/components/Tabs/Tabs.stories.d.ts +1 -2
  96. package/dist/src/components/TextEditor/TextEditor.d.ts +0 -1
  97. package/dist/src/components/TextEditor/TextEditor.stories.d.ts +1 -2
  98. package/dist/src/components/Textarea/Textarea.d.ts +0 -1
  99. package/dist/src/components/Textarea/Textarea.stories.d.ts +1 -2
  100. package/dist/src/components/Textarea/TextareaFloatingInner.d.ts +0 -1
  101. package/dist/src/components/Textarea/TextareaFloatingInner.stories.d.ts +1 -2
  102. package/dist/src/components/Textarea/TextareaInnerLabel.d.ts +0 -1
  103. package/dist/src/components/Textarea/TextareaInnerLabel.stories.d.ts +1 -2
  104. package/dist/src/components/TimeRange/TimeRange.d.ts +0 -1
  105. package/dist/src/components/TimeRange/TimeRange.stories.d.ts +1 -2
  106. package/dist/src/components/Timeline/Timeline.d.ts +0 -1
  107. package/dist/src/components/Timeline/Timeline.stories.d.ts +1 -2
  108. package/dist/src/components/Tooltip/Tooltip.d.ts +0 -1
  109. package/dist/src/components/Tooltip/Tooltip.stories.d.ts +1 -2
  110. package/dist/src/components/TruncateComponent/TruncateComponent.d.ts +0 -1
  111. package/dist/src/components/TruncateComponent/TruncateComponent.stories.d.ts +1 -2
  112. package/dist/src/components/Typography/Typography.stories.d.ts +1 -2
  113. package/dist/src/components/Upload/UploadFile.d.ts +0 -1
  114. package/dist/src/components/Upload/UploadFile.stories.d.ts +1 -2
  115. package/dist/src/components/Upload/UploadImage.d.ts +0 -1
  116. package/dist/src/components/Upload/UploadImage.stories.d.ts +1 -2
  117. package/dist/src/components/Upload/UploadMultipleFile.d.ts +0 -1
  118. package/dist/src/components/Upload/UploadMultipleFile.stories.d.ts +1 -2
  119. package/dist/src/components/Virtualization/ListVirtualization.d.ts +0 -1
  120. package/dist/src/components/Virtualization/ListVirtualization.stories.d.ts +1 -2
  121. package/dist/src/components/Virtualization/TableVirtualization.d.ts +0 -1
  122. package/dist/src/components/Virtualization/TableVirtualization.stories.d.ts +1 -2
  123. package/dist/src/components/index.d.ts +0 -1
  124. package/dist/src/components/screens/Screens.stories.d.ts +1 -2
  125. package/dist/src/config/bigNumber/index.d.ts +0 -1
  126. package/dist/src/config/components/tinymce.d.ts +0 -1
  127. package/dist/src/config/tailwind/index.d.ts +0 -1
  128. package/dist/src/hooks/index.d.ts +0 -1
  129. package/dist/src/hooks/useAsyncDebounce.d.ts +9 -0
  130. package/dist/src/hooks/useCombinedResizeObserver.d.ts +66 -1
  131. package/dist/src/hooks/useCountdown.d.ts +61 -0
  132. package/dist/src/hooks/useDeepCompareEffect.d.ts +13 -1
  133. package/dist/src/hooks/useElementOrWindowMediaQuery.d.ts +9 -0
  134. package/dist/src/hooks/useEventListener.d.ts +27 -1
  135. package/dist/src/hooks/useMasonry.d.ts +79 -1
  136. package/dist/src/hooks/useMergeRefs.d.ts +26 -1
  137. package/dist/src/hooks/useOtpInput.d.ts +157 -1
  138. package/dist/src/hooks/useStateRef.d.ts +8 -1
  139. package/dist/src/interfaces/components/Alert/index.d.ts +8 -1
  140. package/dist/src/interfaces/components/Badges/index.d.ts +28 -1
  141. package/dist/src/interfaces/components/Breadcrumbs/index.d.ts +79 -1
  142. package/dist/src/interfaces/components/Button/index.d.ts +44 -1
  143. package/dist/src/interfaces/components/ButtonIcon/index.d.ts +36 -1
  144. package/dist/src/interfaces/components/ButtonPopover/index.d.ts +78 -1
  145. package/dist/src/interfaces/components/Calendar/index.d.ts +364 -1
  146. package/dist/src/interfaces/components/Chart/index.d.ts +460 -1
  147. package/dist/src/interfaces/components/Checkbox/index.d.ts +12 -1
  148. package/dist/src/interfaces/components/Chips/index.d.ts +36 -1
  149. package/dist/src/interfaces/components/Collapse/index.d.ts +60 -1
  150. package/dist/src/interfaces/components/DatePicker/index.d.ts +274 -1
  151. package/dist/src/interfaces/components/ErrorMessage/index.d.ts +16 -0
  152. package/dist/src/interfaces/components/FilterContainer/index.d.ts +102 -1
  153. package/dist/src/interfaces/components/Input/index.d.ts +180 -1
  154. package/dist/src/interfaces/components/Modal/index.d.ts +45 -1
  155. package/dist/src/interfaces/components/NumberFormat/index.d.ts +25 -1
  156. package/dist/src/interfaces/components/Pagination/index.d.ts +81 -1
  157. package/dist/src/interfaces/components/Popover/index.d.ts +95 -1
  158. package/dist/src/interfaces/components/RadioCheckbox/RadioCheckbox.d.ts +56 -1
  159. package/dist/src/interfaces/components/RadioCheckbox/RadioCheckboxLabel.d.ts +44 -1
  160. package/dist/src/interfaces/components/SelectDropdownContainer/index.d.ts +195 -2
  161. package/dist/src/interfaces/components/Sidebar/index.d.ts +226 -1
  162. package/dist/src/interfaces/components/Step/index.d.ts +153 -1
  163. package/dist/src/interfaces/components/Switch/index.d.ts +53 -0
  164. package/dist/src/interfaces/components/Table/index.d.ts +364 -1
  165. package/dist/src/interfaces/components/Tabs/index.d.ts +126 -1
  166. package/dist/src/interfaces/components/TextEditor/index.d.ts +12 -1
  167. package/dist/src/interfaces/components/Textarea/index.d.ts +156 -1
  168. package/dist/src/interfaces/components/TimeRange/index.d.ts +100 -1
  169. package/dist/src/interfaces/components/Timeline/index.d.ts +36 -1
  170. package/dist/src/interfaces/components/Tooltip/index.d.ts +56 -1
  171. package/dist/src/interfaces/components/TruncateComponent/index.d.ts +34 -0
  172. package/dist/src/interfaces/components/UploadFile/index.d.ts +184 -2
  173. package/dist/src/interfaces/components/Virtualization/ListVirtualization.d.ts +138 -1
  174. package/dist/src/interfaces/components/Virtualization/TableVirtualization.d.ts +143 -1
  175. package/dist/src/main.d.ts +0 -1
  176. package/dist/src/utils/common.d.ts +0 -1
  177. package/dist/tinymce/CHANGELOG.md +3785 -3785
  178. package/dist/tinymce/js/tinymce/langs/README.md +3 -3
  179. package/dist/tinymce/js/tinymce/license.md +6 -6
  180. package/dist/tinymce/js/tinymce/notices.txt +21 -21
  181. package/dist/tinymce/js/tinymce/plugins/codesample/plugin.min.js +8 -8
  182. package/dist/tinymce/js/tinymce/plugins/help/js/i18n/keynav/ar.js +92 -92
  183. package/dist/tinymce/js/tinymce/plugins/help/js/i18n/keynav/bg_BG.js +92 -92
  184. package/dist/tinymce/js/tinymce/plugins/help/js/i18n/keynav/ca.js +92 -92
  185. package/dist/tinymce/js/tinymce/plugins/help/js/i18n/keynav/cs.js +92 -92
  186. package/dist/tinymce/js/tinymce/plugins/help/js/i18n/keynav/da.js +92 -92
  187. package/dist/tinymce/js/tinymce/plugins/help/js/i18n/keynav/de.js +92 -92
  188. package/dist/tinymce/js/tinymce/plugins/help/js/i18n/keynav/el.js +92 -92
  189. package/dist/tinymce/js/tinymce/plugins/help/js/i18n/keynav/en.js +92 -92
  190. package/dist/tinymce/js/tinymce/plugins/help/js/i18n/keynav/es.js +92 -92
  191. package/dist/tinymce/js/tinymce/plugins/help/js/i18n/keynav/eu.js +92 -92
  192. package/dist/tinymce/js/tinymce/plugins/help/js/i18n/keynav/fa.js +92 -92
  193. package/dist/tinymce/js/tinymce/plugins/help/js/i18n/keynav/fi.js +92 -92
  194. package/dist/tinymce/js/tinymce/plugins/help/js/i18n/keynav/fr_FR.js +92 -92
  195. package/dist/tinymce/js/tinymce/plugins/help/js/i18n/keynav/he_IL.js +92 -92
  196. package/dist/tinymce/js/tinymce/plugins/help/js/i18n/keynav/hi.js +92 -92
  197. package/dist/tinymce/js/tinymce/plugins/help/js/i18n/keynav/hr.js +92 -92
  198. package/dist/tinymce/js/tinymce/plugins/help/js/i18n/keynav/hu_HU.js +92 -92
  199. package/dist/tinymce/js/tinymce/plugins/help/js/i18n/keynav/id.js +92 -92
  200. package/dist/tinymce/js/tinymce/plugins/help/js/i18n/keynav/it.js +92 -92
  201. package/dist/tinymce/js/tinymce/plugins/help/js/i18n/keynav/ja.js +92 -92
  202. package/dist/tinymce/js/tinymce/plugins/help/js/i18n/keynav/kk.js +92 -92
  203. package/dist/tinymce/js/tinymce/plugins/help/js/i18n/keynav/ko_KR.js +92 -92
  204. package/dist/tinymce/js/tinymce/plugins/help/js/i18n/keynav/ms.js +92 -92
  205. package/dist/tinymce/js/tinymce/plugins/help/js/i18n/keynav/nb_NO.js +92 -92
  206. package/dist/tinymce/js/tinymce/plugins/help/js/i18n/keynav/nl.js +92 -92
  207. package/dist/tinymce/js/tinymce/plugins/help/js/i18n/keynav/pl.js +92 -92
  208. package/dist/tinymce/js/tinymce/plugins/help/js/i18n/keynav/pt_BR.js +92 -92
  209. package/dist/tinymce/js/tinymce/plugins/help/js/i18n/keynav/pt_PT.js +92 -92
  210. package/dist/tinymce/js/tinymce/plugins/help/js/i18n/keynav/ro.js +92 -92
  211. package/dist/tinymce/js/tinymce/plugins/help/js/i18n/keynav/ru.js +92 -92
  212. package/dist/tinymce/js/tinymce/plugins/help/js/i18n/keynav/sk.js +92 -92
  213. package/dist/tinymce/js/tinymce/plugins/help/js/i18n/keynav/sl_SI.js +92 -92
  214. package/dist/tinymce/js/tinymce/plugins/help/js/i18n/keynav/sv_SE.js +92 -92
  215. package/dist/tinymce/js/tinymce/plugins/help/js/i18n/keynav/th_TH.js +92 -92
  216. package/dist/tinymce/js/tinymce/plugins/help/js/i18n/keynav/tr.js +92 -92
  217. package/dist/tinymce/js/tinymce/plugins/help/js/i18n/keynav/uk.js +92 -92
  218. package/dist/tinymce/js/tinymce/plugins/help/js/i18n/keynav/vi.js +92 -92
  219. package/dist/tinymce/js/tinymce/plugins/help/js/i18n/keynav/zh_CN.js +86 -86
  220. package/dist/tinymce/js/tinymce/plugins/help/js/i18n/keynav/zh_TW.js +92 -92
  221. package/dist/tinymce/js/tinymce/skins/content/dark/content.js +9 -9
  222. package/dist/tinymce/js/tinymce/skins/content/dark/content.min.css +10 -10
  223. package/dist/tinymce/js/tinymce/skins/content/default/content.js +9 -9
  224. package/dist/tinymce/js/tinymce/skins/content/default/content.min.css +10 -10
  225. package/dist/tinymce/js/tinymce/skins/content/document/content.js +9 -9
  226. package/dist/tinymce/js/tinymce/skins/content/document/content.min.css +10 -10
  227. package/dist/tinymce/js/tinymce/skins/content/tinymce-5/content.js +9 -9
  228. package/dist/tinymce/js/tinymce/skins/content/tinymce-5/content.min.css +10 -10
  229. package/dist/tinymce/js/tinymce/skins/content/tinymce-5-dark/content.js +9 -9
  230. package/dist/tinymce/js/tinymce/skins/content/tinymce-5-dark/content.min.css +10 -10
  231. package/dist/tinymce/js/tinymce/skins/content/writer/content.js +9 -9
  232. package/dist/tinymce/js/tinymce/skins/content/writer/content.min.css +10 -10
  233. package/dist/tinymce/js/tinymce/skins/ui/oxide/content.inline.js +9 -9
  234. package/dist/tinymce/js/tinymce/skins/ui/oxide/content.inline.min.css +10 -10
  235. package/dist/tinymce/js/tinymce/skins/ui/oxide/content.js +9 -9
  236. package/dist/tinymce/js/tinymce/skins/ui/oxide/content.min.css +10 -10
  237. package/dist/tinymce/js/tinymce/skins/ui/oxide/skin.min.css +1 -1
  238. package/dist/tinymce/js/tinymce/skins/ui/oxide/skin.shadowdom.min.css +1 -1
  239. package/dist/tinymce/js/tinymce/skins/ui/oxide-dark/content.inline.js +9 -9
  240. package/dist/tinymce/js/tinymce/skins/ui/oxide-dark/content.inline.min.css +10 -10
  241. package/dist/tinymce/js/tinymce/skins/ui/oxide-dark/content.js +9 -9
  242. package/dist/tinymce/js/tinymce/skins/ui/oxide-dark/content.min.css +10 -10
  243. package/dist/tinymce/js/tinymce/skins/ui/oxide-dark/skin.min.css +1 -1
  244. package/dist/tinymce/js/tinymce/skins/ui/oxide-dark/skin.shadowdom.min.css +1 -1
  245. package/dist/tinymce/js/tinymce/skins/ui/tinymce-5/content.inline.js +9 -9
  246. package/dist/tinymce/js/tinymce/skins/ui/tinymce-5/content.inline.min.css +10 -10
  247. package/dist/tinymce/js/tinymce/skins/ui/tinymce-5/content.js +9 -9
  248. package/dist/tinymce/js/tinymce/skins/ui/tinymce-5/content.min.css +10 -10
  249. package/dist/tinymce/js/tinymce/skins/ui/tinymce-5/skin.min.css +1 -1
  250. package/dist/tinymce/js/tinymce/skins/ui/tinymce-5/skin.shadowdom.min.css +1 -1
  251. package/dist/tinymce/js/tinymce/skins/ui/tinymce-5-dark/content.inline.js +9 -9
  252. package/dist/tinymce/js/tinymce/skins/ui/tinymce-5-dark/content.inline.min.css +10 -10
  253. package/dist/tinymce/js/tinymce/skins/ui/tinymce-5-dark/content.js +9 -9
  254. package/dist/tinymce/js/tinymce/skins/ui/tinymce-5-dark/content.min.css +10 -10
  255. package/dist/tinymce/js/tinymce/skins/ui/tinymce-5-dark/skin.min.css +1 -1
  256. package/dist/tinymce/js/tinymce/skins/ui/tinymce-5-dark/skin.shadowdom.min.css +1 -1
  257. package/dist/tinymce/js/tinymce/tinymce.d.ts +3350 -3350
  258. package/dist/tinymce/js/tinymce/tinymce.min.js +10 -10
  259. package/dist/types-external/table.d.ts +15 -15
  260. package/package.json +132 -131
@@ -1,19 +1,78 @@
1
1
  import { ReactNode } from 'react';
2
-
2
+ /**
3
+ * [ID] : Interface untuk komponen Collapse.
4
+ * [EN] : Interface for Collapse component.
5
+ */
3
6
  export interface ICollapse {
7
+ /**
8
+ * [ID] : Konten anak yang akan di-collapse.
9
+ * [EN] : Child content to be collapsed.
10
+ */
4
11
  children: ReactNode | ReactNode[];
12
+ /**
13
+ * [ID] : Status terbuka atau tertutup.
14
+ * [EN] : Open or closed status.
15
+ */
5
16
  open: boolean;
17
+ /**
18
+ * [ID] : ID elemen collapse.
19
+ * [EN] : Collapse element ID.
20
+ */
6
21
  id: string;
22
+ /**
23
+ * [ID] : Nama kelas CSS tambahan (opsional).
24
+ * [EN] : Additional CSS class name (optional).
25
+ */
7
26
  className?: string | undefined;
27
+ /**
28
+ * [ID] : Nama kelas CSS untuk kontainer (opsional).
29
+ * [EN] : CSS class name for container (optional).
30
+ */
8
31
  classNameContainer?: string | undefined;
32
+ /**
33
+ * [ID] : Tinggi maksimum saat collapsed (opsional).
34
+ * [EN] : Maximum height when collapsed (optional).
35
+ */
9
36
  maxCollapsedHeight?: number | string;
37
+ /**
38
+ * [ID] : Pemicu perhitungan ulang kontainer (opsional).
39
+ * [EN] : Trigger for container recalculation (optional).
40
+ */
10
41
  triggerCalCulateContainer?: number | string | boolean | object;
42
+ /**
43
+ * [ID] : Penundaan perhitungan tinggi (ms) (opsional).
44
+ * [EN] : Height calculation delay (ms) (optional).
45
+ */
11
46
  delayTriggerCalculateHeight?: number;
12
47
  }
48
+ /**
49
+ * [ID] : Interface untuk komponen Collapse versi 2.
50
+ * [EN] : Interface for Collapse version 2 component.
51
+ */
13
52
  export interface ICollapseV2 {
53
+ /**
54
+ * [ID] : Konten anak yang akan di-collapse.
55
+ * [EN] : Child content to be collapsed.
56
+ */
14
57
  children: ReactNode | ReactNode[];
58
+ /**
59
+ * [ID] : Status terbuka atau tertutup.
60
+ * [EN] : Open or closed status.
61
+ */
15
62
  open: boolean;
63
+ /**
64
+ * [ID] : ID elemen collapse.
65
+ * [EN] : Collapse element ID.
66
+ */
16
67
  id: string;
68
+ /**
69
+ * [ID] : Nama kelas CSS tambahan (opsional).
70
+ * [EN] : Additional CSS class name (optional).
71
+ */
17
72
  className?: string;
73
+ /**
74
+ * [ID] : Nama kelas CSS untuk kontainer (opsional).
75
+ * [EN] : CSS class name for container (optional).
76
+ */
18
77
  classNameContainer?: string | undefined;
19
78
  }
@@ -1,69 +1,313 @@
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
-
4
+ /**
5
+ * [ID] : Interface untuk komponen DatePicker tunggal.
6
+ * [EN] : Interface for single DatePicker component.
7
+ */
5
8
  export interface IDatePicker extends ICalendarPrevNextIcon, ICalendarButtonConfirm {
9
+ /**
10
+ * [ID] : Nilai tanggal (opsional).
11
+ * [EN] : Date value (optional).
12
+ */
6
13
  value?: TDateType;
14
+ /**
15
+ * [ID] : Nilai default tanggal (opsional).
16
+ * [EN] : Default date value (optional).
17
+ */
7
18
  defaultValue?: TDateType;
19
+ /**
20
+ * [ID] : Tanggal minimum (opsional).
21
+ * [EN] : Minimum date (optional).
22
+ */
8
23
  minDate?: TDateType;
24
+ /**
25
+ * [ID] : Tanggal maksimum (opsional).
26
+ * [EN] : Maximum date (optional).
27
+ */
9
28
  maxDate?: TDateType;
29
+ /**
30
+ * [ID] : Menampilkan tombol konfirmasi (opsional).
31
+ * [EN] : Show confirm buttons (optional).
32
+ */
10
33
  withConfirm?: boolean;
34
+ /**
35
+ * [ID] : Menggunakan waktu kustom (opsional).
36
+ * [EN] : Use custom time (optional).
37
+ */
11
38
  isCustomTime?: boolean;
39
+ /**
40
+ * [ID] : Nama kelas CSS (opsional).
41
+ * [EN] : CSS class name (optional).
42
+ */
12
43
  className?: string | undefined;
44
+ /**
45
+ * [ID] : Nama kelas CSS tombol (opsional).
46
+ * [EN] : Button CSS class name (optional).
47
+ */
13
48
  classNameButton?: string | undefined;
49
+ /**
50
+ * [ID] : Fungsi render tombol kustom (opsional).
51
+ * [EN] : Custom button render function (optional).
52
+ * @param v - [ID] : Nilai tanggal. [EN] : Date value.
53
+ * @returns [ID] : Elemen React. [EN] : React element.
54
+ */
14
55
  buttonClick?: ((v: TDateType) => ReactNode) | ((v: TDateType) => ReactNode[]);
56
+ /**
57
+ * [ID] : Handler perubahan tanggal (opsional).
58
+ * [EN] : Date change handler (optional).
59
+ * @param v - [ID] : Tanggal baru. [EN] : New date.
60
+ */
15
61
  onChange?: (v?: TDateType) => void;
62
+ /**
63
+ * [ID] : ID popover (opsional).
64
+ * [EN] : Popover ID (optional).
65
+ */
16
66
  idPopover?: string;
67
+ /**
68
+ * [ID] : ID elemen (opsional).
69
+ * [EN] : Element ID (optional).
70
+ */
17
71
  id?: string;
72
+ /**
73
+ * [ID] : Opsi floating UI (opsional).
74
+ * [EN] : Floating UI options (optional).
75
+ */
18
76
  floatingOptions?: UseFloatingOptions;
77
+ /**
78
+ * [ID] : Offset popover (opsional).
79
+ * [EN] : Popover offset (optional).
80
+ */
19
81
  offsetPopover?: OffsetOptions;
82
+ /**
83
+ * [ID] : Z-index popover (opsional).
84
+ * [EN] : Popover z-index (optional).
85
+ */
20
86
  zIndexPopper?: number | undefined | string;
87
+ /**
88
+ * [ID] : Menyembunyikan header (opsional).
89
+ * [EN] : Hide header (optional).
90
+ */
21
91
  hiddenHeader?: boolean;
22
92
  }
93
+ /**
94
+ * [ID] : Interface untuk komponen DatePicker rentang tanggal.
95
+ * [EN] : Interface for date range DatePicker component.
96
+ */
23
97
  export interface IDateRangePicker extends ICalendarPrevNextIcon, ICalendarButtonConfirm {
98
+ /**
99
+ * [ID] : Nilai default rentang tanggal (opsional).
100
+ * [EN] : Default date range value (optional).
101
+ */
24
102
  defaultValue?: IDateRange;
103
+ /**
104
+ * [ID] : Nilai rentang tanggal (opsional).
105
+ * [EN] : Date range value (optional).
106
+ */
25
107
  value?: IDateRange;
108
+ /**
109
+ * [ID] : Tanggal minimum (opsional).
110
+ * [EN] : Minimum date (optional).
111
+ */
26
112
  minDate?: TDateType;
113
+ /**
114
+ * [ID] : Tanggal maksimum (opsional).
115
+ * [EN] : Maximum date (optional).
116
+ */
27
117
  maxDate?: TDateType;
118
+ /**
119
+ * [ID] : Menampilkan tombol konfirmasi (opsional).
120
+ * [EN] : Show confirm buttons (optional).
121
+ */
28
122
  withConfirm?: boolean;
123
+ /**
124
+ * [ID] : Tipe picker (SINGLE atau RANGE) (opsional).
125
+ * [EN] : Picker type (SINGLE or RANGE) (optional).
126
+ */
29
127
  typePicker?: 'SINGLE' | 'RANGE';
128
+ /**
129
+ * [ID] : Menggunakan waktu kustom (opsional).
130
+ * [EN] : Use custom time (optional).
131
+ */
30
132
  isCustomTime?: boolean;
133
+ /**
134
+ * [ID] : Handler perubahan rentang tanggal (opsional).
135
+ * [EN] : Date range change handler (optional).
136
+ * @param v - [ID] : Rentang tanggal baru. [EN] : New date range.
137
+ */
31
138
  onChange?: (v: IDateRange) => void;
139
+ /**
140
+ * [ID] : Handler reset (opsional).
141
+ * [EN] : Reset handler (optional).
142
+ */
32
143
  onReset?: () => void;
33
144
  }
145
+ /**
146
+ * [ID] : Tipe kunci untuk daftar tombol filter tanggal.
147
+ * [EN] : Key type for filter date button list.
148
+ */
34
149
  export type TKeyFilterDateButtonListType = 'thisDay' | 'thisWeek' | 'thisMonth' | 'thisYear' | 'yesterday' | 'lastWeek' | 'lastMonth' | 'lastYear' | 'custom' | IDateRange;
150
+ /**
151
+ * [ID] : Interface untuk item daftar tombol filter tanggal.
152
+ * [EN] : Interface for filter date button list item.
153
+ */
35
154
  export interface IFilterDateButtonList {
155
+ /**
156
+ * [ID] : Kunci filter.
157
+ * [EN] : Filter key.
158
+ */
36
159
  key: TKeyFilterDateButtonListType;
160
+ /**
161
+ * [ID] : Nilai tampilan.
162
+ * [EN] : Display value.
163
+ */
37
164
  value: string;
38
165
  }
166
+ /**
167
+ * [ID] : Interface untuk komponen FilterDate.
168
+ * [EN] : Interface for FilterDate component.
169
+ */
39
170
  export interface IFilterDate extends ICalendarPrevNextIcon, ICalendarButtonConfirm {
171
+ /**
172
+ * [ID] : Nama kelas CSS (opsional).
173
+ * [EN] : CSS class name (optional).
174
+ */
40
175
  className?: string | undefined;
176
+ /**
177
+ * [ID] : Nama kelas CSS tombol (opsional).
178
+ * [EN] : Button CSS class name (optional).
179
+ */
41
180
  classNameButton?: string | undefined;
181
+ /**
182
+ * [ID] : Konten atau fungsi render tombol (opsional).
183
+ * [EN] : Button content or render function (optional).
184
+ */
42
185
  buttonClick?: ReactNode | ReactNode[] | ((v: IDateRange | undefined, label: IFilterDateButtonList | undefined) => ReactNode) | ((v: IDateRange | undefined, label: IFilterDateButtonList | undefined) => ReactNode[]);
186
+ /**
187
+ * [ID] : Nilai rentang tanggal (opsional).
188
+ * [EN] : Date range value (optional).
189
+ */
43
190
  value?: IDateRange | undefined;
191
+ /**
192
+ * [ID] : Label nilai default (opsional).
193
+ * [EN] : Default value label (optional).
194
+ */
44
195
  defaultValueLabel?: TKeyFilterDateButtonListType | IDateRange;
196
+ /**
197
+ * [ID] : Daftar tombol filter (opsional).
198
+ * [EN] : Filter button list (optional).
199
+ */
45
200
  buttonList?: IFilterDateButtonList[];
201
+ /**
202
+ * [ID] : Tipe picker (RANGE atau SINGLE) (opsional).
203
+ * [EN] : Picker type (RANGE or SINGLE) (optional).
204
+ */
46
205
  typePicker?: 'RANGE' | 'SINGLE';
206
+ /**
207
+ * [ID] : Handler perubahan filter (opsional).
208
+ * [EN] : Filter change handler (optional).
209
+ * @param v - [ID] : Rentang tanggal baru. [EN] : New date range.
210
+ * @param labelDesc - [ID] : Deskripsi label. [EN] : Label description.
211
+ * @param label - [ID] : Objek label. [EN] : Label object.
212
+ */
47
213
  onChange?: (v?: IDateRange, labelDesc?: string, label?: IFilterDateButtonList) => void;
214
+ /**
215
+ * [ID] : ID popover (opsional).
216
+ * [EN] : Popover ID (optional).
217
+ */
48
218
  idPopover?: string;
219
+ /**
220
+ * [ID] : ID elemen (opsional).
221
+ * [EN] : Element ID (optional).
222
+ */
49
223
  id?: string;
224
+ /**
225
+ * [ID] : Menggunakan waktu kustom (opsional).
226
+ * [EN] : Use custom time (optional).
227
+ */
50
228
  isCustomTime?: boolean;
229
+ /**
230
+ * [ID] : Opsi floating UI (opsional).
231
+ * [EN] : Floating UI options (optional).
232
+ */
51
233
  floatingOptions?: UseFloatingOptions;
234
+ /**
235
+ * [ID] : Offset popover (opsional).
236
+ * [EN] : Popover offset (optional).
237
+ */
52
238
  offsetPopover?: OffsetOptions;
239
+ /**
240
+ * [ID] : Z-index popover (opsional).
241
+ * [EN] : Popover z-index (optional).
242
+ */
53
243
  zIndexPopper?: number | undefined | string;
244
+ /**
245
+ * [ID] : Eksekusi perubahan saat mounted (opsional).
246
+ * [EN] : Execute change on mounted (optional).
247
+ */
54
248
  mountedExecuteChange?: boolean;
249
+ /**
250
+ * [ID] : Format tanggal (opsional).
251
+ * [EN] : Date formatting (optional).
252
+ */
55
253
  formatingDate?: string | boolean;
56
254
  }
255
+ /**
256
+ * [ID] : Tipe picker bulan/tahun.
257
+ * [EN] : Month/year picker type.
258
+ */
57
259
  export type TTypeMonthYearPicker = 'month' | 'year';
260
+ /**
261
+ * [ID] : Interface untuk komponen MonthYearPicker.
262
+ * [EN] : Interface for MonthYearPicker component.
263
+ */
58
264
  export interface IMonthYearPicker {
265
+ /**
266
+ * [ID] : Bulan yang dipilih.
267
+ * [EN] : Selected month.
268
+ */
59
269
  month: number;
270
+ /**
271
+ * [ID] : Tahun yang dipilih.
272
+ * [EN] : Selected year.
273
+ */
60
274
  year: number;
275
+ /**
276
+ * [ID] : Tanggal minimum (opsional).
277
+ * [EN] : Minimum date (optional).
278
+ */
61
279
  minDate?: TDateType;
280
+ /**
281
+ * [ID] : Tanggal maksimum (opsional).
282
+ * [EN] : Maximum date (optional).
283
+ */
62
284
  maxDate?: TDateType;
285
+ /**
286
+ * [ID] : Tipe picker yang tersedia (opsional).
287
+ * [EN] : Available picker types (optional).
288
+ */
63
289
  type?: TTypeMonthYearPicker[];
290
+ /**
291
+ * [ID] : Tipe picker aktif (opsional).
292
+ * [EN] : Active picker type (optional).
293
+ */
64
294
  activeType?: TTypeMonthYearPicker;
295
+ /**
296
+ * [ID] : Nama kelas CSS (opsional).
297
+ * [EN] : CSS class name (optional).
298
+ */
65
299
  className?: string | undefined;
300
+ /**
301
+ * [ID] : Nama kelas CSS tombol (opsional).
302
+ * [EN] : Button CSS class name (optional).
303
+ */
66
304
  classNameButton?: string | undefined;
305
+ /**
306
+ * [ID] : Fungsi render tombol kustom (opsional).
307
+ * [EN] : Custom button render function (optional).
308
+ * @param v - [ID] : Objek bulan dan tahun. [EN] : Month and year object.
309
+ * @returns [ID] : Elemen React. [EN] : React element.
310
+ */
67
311
  buttonClick?: ((v: {
68
312
  month: number;
69
313
  year: number;
@@ -71,14 +315,43 @@ export interface IMonthYearPicker {
71
315
  month: number;
72
316
  year: number;
73
317
  }) => ReactNode[]);
318
+ /**
319
+ * [ID] : Handler perubahan bulan/tahun (opsional).
320
+ * [EN] : Month/year change handler (optional).
321
+ * @param v - [ID] : Objek bulan dan tahun baru. [EN] : New month and year object.
322
+ */
74
323
  onChange?: (v: {
75
324
  month: number;
76
325
  year: number;
77
326
  }) => void;
327
+ /**
328
+ * [ID] : ID popover (opsional).
329
+ * [EN] : Popover ID (optional).
330
+ */
78
331
  idPopover?: string;
332
+ /**
333
+ * [ID] : ID elemen (opsional).
334
+ * [EN] : Element ID (optional).
335
+ */
79
336
  id?: string;
337
+ /**
338
+ * [ID] : Opsi floating UI (opsional).
339
+ * [EN] : Floating UI options (optional).
340
+ */
80
341
  floatingOptions?: UseFloatingOptions;
342
+ /**
343
+ * [ID] : Offset popover (opsional).
344
+ * [EN] : Popover offset (optional).
345
+ */
81
346
  offsetPopover?: OffsetOptions;
347
+ /**
348
+ * [ID] : Z-index popover (opsional).
349
+ * [EN] : Popover z-index (optional).
350
+ */
82
351
  zIndexPopper?: number | undefined | string;
352
+ /**
353
+ * [ID] : Menyembunyikan header (opsional).
354
+ * [EN] : Hide header (optional).
355
+ */
83
356
  hiddenHeader?: boolean;
84
357
  }
@@ -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;
11
+ /**
12
+ * [ID] : Varian gaya pesan error (opsional).
13
+ * [EN] : Error message style variant (optional).
14
+ */
3
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,30 +1,131 @@
1
1
  import { default as React } from 'react';
2
-
2
+ /**
3
+ * [ID] : Interface untuk properti anak FilterContainer.
4
+ * [EN] : Interface for FilterContainer child properties.
5
+ */
3
6
  export interface IChildFilterContainer {
7
+ /**
8
+ * [ID] : Handler perubahan filter.
9
+ * [EN] : Filter change handler.
10
+ */
4
11
  handlerOnChange: THandlerOnChangeFilterContainer;
12
+ /**
13
+ * [ID] : Handler perubahan native.
14
+ * [EN] : Native change handler.
15
+ */
5
16
  handlerOnChangeNative: THandlerOnChangeNative;
17
+ /**
18
+ * [ID] : Nilai state gabungan.
19
+ * [EN] : Merged state value.
20
+ */
6
21
  value: IMergeState;
22
+ /**
23
+ * [ID] : Nilai native gabungan.
24
+ * [EN] : Merged native value.
25
+ */
7
26
  nativeValue: IMergeState;
8
27
  }
28
+ /**
29
+ * [ID] : Tipe array objek untuk FilterContainer.
30
+ * [EN] : Array of objects type for FilterContainer.
31
+ */
9
32
  export type IArrayOfObjectFilterContainer = {
10
33
  [key: string]: unknown;
11
34
  }[];
35
+ /**
36
+ * [ID] : Interface untuk state gabungan.
37
+ * [EN] : Interface for merged state.
38
+ */
12
39
  export interface IMergeState {
40
+ /**
41
+ * [ID] : Nilai dinamis berdasarkan kunci.
42
+ * [EN] : Dynamic value based on key.
43
+ */
13
44
  [key: string]: object | number | string | boolean | string[] | IArrayOfObjectFilterContainer;
14
45
  }
46
+ /**
47
+ * [ID] : Tipe fungsi handler perubahan FilterContainer.
48
+ * [EN] : Function type for FilterContainer change handler.
49
+ * @param value - [ID] : Nilai baru. [EN] : New value.
50
+ * @param key - [ID] : Kunci yang berubah. [EN] : Changed key.
51
+ * @param transform - [ID] : Tipe transformasi (opsional). [EN] : Transformation type (optional).
52
+ * @param keyTransform - [ID] : Kunci transformasi. [EN] : Transformation key.
53
+ */
15
54
  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;
55
+ /**
56
+ * [ID] : Tipe fungsi handler perubahan native.
57
+ * [EN] : Function type for native change handler.
58
+ * @param value - [ID] : Nilai baru. [EN] : New value.
59
+ * @param nativeValue - [ID] : Nilai native baru (opsional). [EN] : New native value (optional).
60
+ */
16
61
  export type THandlerOnChangeNative = (value: IMergeState, nativeValue?: IMergeState) => void;
62
+ /**
63
+ * [ID] : Interface untuk komponen FilterContainer.
64
+ * [EN] : Interface for FilterContainer component.
65
+ */
17
66
  export interface IFilterContainer {
67
+ /**
68
+ * [ID] : Fungsi render props untuk anak.
69
+ * [EN] : Render props function for children.
70
+ * @param params - [ID] : Parameter anak FilterContainer. [EN] : FilterContainer child parameters.
71
+ * @returns [ID] : Node React. [EN] : React Node.
72
+ */
18
73
  children: ((params: IChildFilterContainer) => React.ReactNode) | ((params: IChildFilterContainer) => React.ReactNode[]);
74
+ /**
75
+ * [ID] : Handler perubahan nilai (opsional).
76
+ * [EN] : Value change handler (optional).
77
+ * @param value - [ID] : Nilai baru. [EN] : New value.
78
+ * @param nativeValue - [ID] : Nilai native baru. [EN] : New native value.
79
+ */
19
80
  onChange?: (value: IMergeState, nativeValue: IMergeState) => void;
81
+ /**
82
+ * [ID] : Prefix untuk nilai native (opsional).
83
+ * [EN] : Prefix for native value (optional).
84
+ */
20
85
  prefixNativeValue?: string;
86
+ /**
87
+ * [ID] : Nilai default (opsional).
88
+ * [EN] : Default value (optional).
89
+ */
21
90
  defaultValue?: IMergeState;
91
+ /**
92
+ * [ID] : Nilai native default (opsional).
93
+ * [EN] : Default native value (optional).
94
+ */
22
95
  defaultNativeValue?: IMergeState;
96
+ /**
97
+ * [ID] : Eksekusi perubahan saat mounted (opsional).
98
+ * [EN] : Execute change on mounted (optional).
99
+ */
23
100
  mountedExecuteChange?: boolean;
101
+ /**
102
+ * [ID] : Kunci yang dipertahankan (opsional).
103
+ * [EN] : Kept keys (optional).
104
+ */
24
105
  keepKeys?: string[];
106
+ /**
107
+ * [ID] : Reset pagination saat perubahan (opsional).
108
+ * [EN] : Reset pagination on change (optional).
109
+ */
25
110
  resetPagination?: boolean;
111
+ /**
112
+ * [ID] : Kunci nomor halaman (opsional).
113
+ * [EN] : Page number key (optional).
114
+ */
26
115
  keyPageNumber?: string;
116
+ /**
117
+ * [ID] : Status reset (opsional).
118
+ * [EN] : Reset status (optional).
119
+ */
27
120
  reset?: boolean;
121
+ /**
122
+ * [ID] : Pemicu reset dengan nilai tertentu (opsional).
123
+ * [EN] : Trigger reset with specific value (optional).
124
+ */
28
125
  triggerReset?: IMergeState;
29
126
  }
127
+ /**
128
+ * [ID] : Tipe referensi FilterContainer.
129
+ * [EN] : FilterContainer reference type.
130
+ */
30
131
  export type TRefFilterContainer = IChildFilterContainer;