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