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,44 +1,199 @@
1
1
  import { default as React } from 'react';
2
-
2
+ /**
3
+ * [ID] : Interface untuk komponen Textarea.
4
+ * [EN] : Interface for Textarea component.
5
+ */
3
6
  export interface ITextarea extends React.InputHTMLAttributes<HTMLTextAreaElement> {
7
+ /**
8
+ * [ID] : Nama kelas CSS untuk kontainer (opsional).
9
+ * [EN] : CSS class name for container (optional).
10
+ */
4
11
  classNameContainer?: string | undefined;
12
+ /**
13
+ * [ID] : ID elemen (opsional).
14
+ * [EN] : Element ID (optional).
15
+ */
5
16
  id?: string | undefined;
17
+ /**
18
+ * [ID] : Label textarea (opsional).
19
+ * [EN] : Textarea label (optional).
20
+ */
6
21
  label?: string;
22
+ /**
23
+ * [ID] : Tipe input (opsional).
24
+ * [EN] : Input type (optional).
25
+ */
7
26
  type?: string;
27
+ /**
28
+ * [ID] : Menandakan wajib diisi (opsional).
29
+ * [EN] : Indicates required (optional).
30
+ */
8
31
  isRequired?: boolean;
32
+ /**
33
+ * [ID] : Pesan error (opsional).
34
+ * [EN] : Error message (optional).
35
+ */
9
36
  error?: string | undefined;
37
+ /**
38
+ * [ID] : Ukuran input (opsional).
39
+ * [EN] : Input size (optional).
40
+ */
10
41
  sizeInput?: 'medium' | 'm' | 'medium-border-bottom';
42
+ /**
43
+ * [ID] : Varian gaya (opsional).
44
+ * [EN] : Style variant (optional).
45
+ */
11
46
  variant?: 'solid-blue-300' | 'dashed-blue-300' | 'solid-laba-blue-10' | 'dashed-laba-blue-10' | 'border-bottom-laba-blue-08';
47
+ /**
48
+ * [ID] : Nama kelas CSS untuk label (opsional).
49
+ * [EN] : CSS class name for label (optional).
50
+ */
12
51
  classNameLabel?: string | undefined;
52
+ /**
53
+ * [ID] : Nama kelas CSS untuk label error (opsional).
54
+ * [EN] : CSS class name for error label (optional).
55
+ */
13
56
  classNameLabelError?: string | undefined;
57
+ /**
58
+ * [ID] : Tinggi maksimum (opsional).
59
+ * [EN] : Maximum height (optional).
60
+ */
14
61
  maxHeight?: number;
62
+ /**
63
+ * [ID] : Tinggi minimum (opsional).
64
+ * [EN] : Minimum height (optional).
65
+ */
15
66
  minHeight?: number;
16
67
  }
68
+ /**
69
+ * [ID] : Interface untuk textarea dengan label mengambang di dalam.
70
+ * [EN] : Interface for textarea with floating inner label.
71
+ */
17
72
  export interface ITextareaFloatingInner extends React.InputHTMLAttributes<HTMLTextAreaElement> {
73
+ /**
74
+ * [ID] : Nama kelas CSS untuk kontainer (opsional).
75
+ * [EN] : CSS class name for container (optional).
76
+ */
18
77
  classNameContainer?: string | undefined;
78
+ /**
79
+ * [ID] : ID elemen (opsional).
80
+ * [EN] : Element ID (optional).
81
+ */
19
82
  id?: string | undefined;
83
+ /**
84
+ * [ID] : Label textarea (opsional).
85
+ * [EN] : Textarea label (optional).
86
+ */
20
87
  label?: string;
88
+ /**
89
+ * [ID] : Tipe input (opsional).
90
+ * [EN] : Input type (optional).
91
+ */
21
92
  type?: string;
93
+ /**
94
+ * [ID] : Menandakan wajib diisi (opsional).
95
+ * [EN] : Indicates required (optional).
96
+ */
22
97
  isRequired?: boolean;
98
+ /**
99
+ * [ID] : Pesan error (opsional).
100
+ * [EN] : Error message (optional).
101
+ */
23
102
  error?: string | undefined;
103
+ /**
104
+ * [ID] : Ukuran input (opsional).
105
+ * [EN] : Input size (optional).
106
+ */
24
107
  sizeInput?: 'medium';
108
+ /**
109
+ * [ID] : Nama kelas CSS untuk label (opsional).
110
+ * [EN] : CSS class name for label (optional).
111
+ */
25
112
  classNameLabel?: string | undefined;
113
+ /**
114
+ * [ID] : Nama kelas CSS untuk label error (opsional).
115
+ * [EN] : CSS class name for error label (optional).
116
+ */
26
117
  classNameLabelError?: string | undefined;
118
+ /**
119
+ * [ID] : Tinggi maksimum (opsional).
120
+ * [EN] : Maximum height (optional).
121
+ */
27
122
  maxHeight?: number;
123
+ /**
124
+ * [ID] : Tinggi minimum (opsional).
125
+ * [EN] : Minimum height (optional).
126
+ */
28
127
  minHeight?: number;
128
+ /**
129
+ * [ID] : Nilai translasi label (opsional).
130
+ * [EN] : Label translation value (optional).
131
+ */
29
132
  translateLabel?: number;
133
+ /**
134
+ * [ID] : Translasi label otomatis (opsional).
135
+ * [EN] : Auto translate label (optional).
136
+ */
30
137
  autoTranslateLabel?: boolean;
31
138
  }
139
+ /**
140
+ * [ID] : Interface untuk textarea dengan label di dalam.
141
+ * [EN] : Interface for textarea with inner label.
142
+ */
32
143
  export interface ITextareaInnerLabel extends React.InputHTMLAttributes<HTMLTextAreaElement> {
144
+ /**
145
+ * [ID] : Nama kelas CSS untuk kontainer (opsional).
146
+ * [EN] : CSS class name for container (optional).
147
+ */
33
148
  classNameContainer?: string | undefined;
149
+ /**
150
+ * [ID] : ID elemen (opsional).
151
+ * [EN] : Element ID (optional).
152
+ */
34
153
  id?: string | undefined;
154
+ /**
155
+ * [ID] : Label textarea (opsional).
156
+ * [EN] : Textarea label (optional).
157
+ */
35
158
  label?: string;
159
+ /**
160
+ * [ID] : Tipe input (opsional).
161
+ * [EN] : Input type (optional).
162
+ */
36
163
  type?: string;
164
+ /**
165
+ * [ID] : Menandakan wajib diisi (opsional).
166
+ * [EN] : Indicates required (optional).
167
+ */
37
168
  isRequired?: boolean;
169
+ /**
170
+ * [ID] : Pesan error (opsional).
171
+ * [EN] : Error message (optional).
172
+ */
38
173
  error?: string | undefined;
174
+ /**
175
+ * [ID] : Ukuran input (opsional).
176
+ * [EN] : Input size (optional).
177
+ */
39
178
  sizeInput?: 'large' | 'small';
179
+ /**
180
+ * [ID] : Nama kelas CSS untuk label (opsional).
181
+ * [EN] : CSS class name for label (optional).
182
+ */
40
183
  classNameLabel?: string | undefined;
184
+ /**
185
+ * [ID] : Nama kelas CSS untuk label error (opsional).
186
+ * [EN] : CSS class name for error label (optional).
187
+ */
41
188
  classNameLabelError?: string | undefined;
189
+ /**
190
+ * [ID] : Tinggi maksimum (opsional).
191
+ * [EN] : Maximum height (optional).
192
+ */
42
193
  maxHeight?: number;
194
+ /**
195
+ * [ID] : Tinggi minimum (opsional).
196
+ * [EN] : Minimum height (optional).
197
+ */
43
198
  minHeight?: number;
44
199
  }
@@ -1,29 +1,128 @@
1
1
  import { UseFloatingOptions } from '@floating-ui/react';
2
2
  import { ReactNode } from 'react';
3
3
  import { TKeyLocale } from '../Calendar';
4
-
4
+ /**
5
+ * [ID] : Tipe nilai rentang waktu.
6
+ * [EN] : Time range value type.
7
+ */
5
8
  export type TTimeRangeValue = [[string, string], [string, string]];
9
+ /**
10
+ * [ID] : Interface untuk komponen TimeRange.
11
+ * [EN] : Interface for TimeRange component.
12
+ */
6
13
  export interface ITimeRange {
14
+ /**
15
+ * [ID] : ID elemen (opsional).
16
+ * [EN] : Element ID (optional).
17
+ */
7
18
  id?: string;
19
+ /**
20
+ * [ID] : Nilai rentang waktu (opsional).
21
+ * [EN] : Time range value (optional).
22
+ */
8
23
  value?: TTimeRangeValue;
24
+ /**
25
+ * [ID] : Z-index popper (opsional).
26
+ * [EN] : Popper z-index (optional).
27
+ */
9
28
  zIndexPopper?: number;
29
+ /**
30
+ * [ID] : Offset popover (opsional).
31
+ * [EN] : Popover offset (optional).
32
+ */
10
33
  offsetPopover?: number;
34
+ /**
35
+ * [ID] : Nama kelas CSS kontainer (opsional).
36
+ * [EN] : Container CSS class name (optional).
37
+ */
11
38
  classNameContainer?: string;
39
+ /**
40
+ * [ID] : Nama kelas CSS (opsional).
41
+ * [EN] : CSS class name (optional).
42
+ */
12
43
  className?: string;
44
+ /**
45
+ * [ID] : Fungsi render tombol klik (opsional).
46
+ * [EN] : Click button render function (optional).
47
+ * @param value - [ID] : Nilai rentang waktu. [EN] : Time range value.
48
+ * @param formatValue - [ID] : Nilai terformat. [EN] : Formatted value.
49
+ * @returns [ID] : Node React. [EN] : React Node.
50
+ */
13
51
  buttonClick?: (value: TTimeRangeValue, formatValue: string) => ReactNode;
52
+ /**
53
+ * [ID] : Handler perubahan nilai (opsional).
54
+ * [EN] : Value change handler (optional).
55
+ * @param value - [ID] : Nilai rentang waktu baru. [EN] : New time range value.
56
+ */
14
57
  onChange?: (value: TTimeRangeValue) => void;
58
+ /**
59
+ * [ID] : Opsi floating UI (opsional).
60
+ * [EN] : Floating UI options (optional).
61
+ */
15
62
  floatingOptions?: UseFloatingOptions;
63
+ /**
64
+ * [ID] : Lokal bahasa (opsional).
65
+ * [EN] : Locale (optional).
66
+ */
16
67
  locale?: TKeyLocale;
68
+ /**
69
+ * [ID] : Tombol reset (opsional).
70
+ * [EN] : Reset button (optional).
71
+ */
17
72
  buttonReset?: (() => ReactNode) | (() => ReactNode[]);
73
+ /**
74
+ * [ID] : Tombol kirim (opsional).
75
+ * [EN] : Submit button (optional).
76
+ */
18
77
  buttonSubmit?: (() => ReactNode) | (() => ReactNode[]);
78
+ /**
79
+ * [ID] : Nonaktifkan validasi (opsional).
80
+ * [EN] : Disable validation (optional).
81
+ */
19
82
  disableValidation?: boolean;
20
83
  }
84
+ /**
85
+ * [ID] : Interface untuk daftar waktu TimeRange.
86
+ * [EN] : Interface for TimeRange time list.
87
+ */
21
88
  export interface ITimeRangeListTime {
89
+ /**
90
+ * [ID] : Tipe waktu (mulai/akhir).
91
+ * [EN] : Time type (start/end).
92
+ */
22
93
  type: 'start' | 'end';
94
+ /**
95
+ * [ID] : Nilai waktu tunggal.
96
+ * [EN] : Single time value.
97
+ */
23
98
  value: TTimeRangeValue[0];
99
+ /**
100
+ * [ID] : Nilai rentang waktu lengkap.
101
+ * [EN] : Complete time range values.
102
+ */
24
103
  values: TTimeRangeValue;
104
+ /**
105
+ * [ID] : Handler perubahan nilai.
106
+ * [EN] : Value change handler.
107
+ * @param value - [ID] : Nilai waktu baru. [EN] : New time value.
108
+ */
25
109
  onChange: (value: TTimeRangeValue[0]) => void;
110
+ /**
111
+ * [ID] : Lokal bahasa.
112
+ * [EN] : Locale.
113
+ */
26
114
  locale: TKeyLocale;
115
+ /**
116
+ * [ID] : Nonaktifkan validasi.
117
+ * [EN] : Disable validation.
118
+ */
27
119
  disableValidation: boolean;
28
120
  }
121
+ /**
122
+ * [ID] : Tipe fungsi render teks TimeRange.
123
+ * [EN] : TimeRange text render function type.
124
+ * @param value - [ID] : Nilai rentang waktu. [EN] : Time range value.
125
+ * @param locale - [ID] : Lokal bahasa. [EN] : Locale.
126
+ * @returns [ID] : String teks. [EN] : Text string.
127
+ */
29
128
  export type TRenderTimeRageText = (value: TTimeRangeValue, locale: TKeyLocale) => string;
@@ -1,13 +1,48 @@
1
1
  import { ReactNode } from 'react';
2
-
2
+ /**
3
+ * [ID] : Interface untuk layout timeline.
4
+ * [EN] : Interface for timeline layout.
5
+ */
3
6
  export interface ITimelineLayout {
7
+ /**
8
+ * [ID] : Konten anak timeline.
9
+ * [EN] : Timeline child content.
10
+ */
4
11
  children: ReactNode | ReactNode[];
12
+ /**
13
+ * [ID] : ID elemen (opsional).
14
+ * [EN] : Element ID (optional).
15
+ */
5
16
  id?: string;
17
+ /**
18
+ * [ID] : Menyembunyikan waktu (opsional).
19
+ * [EN] : Hide time (optional).
20
+ */
6
21
  noTime?: boolean;
7
22
  }
23
+ /**
24
+ * [ID] : Interface untuk konten timeline.
25
+ * [EN] : Interface for timeline content.
26
+ */
8
27
  export interface ITimelineContent {
28
+ /**
29
+ * [ID] : Konten anak.
30
+ * [EN] : Child content.
31
+ */
9
32
  children: ReactNode | ReactNode[];
33
+ /**
34
+ * [ID] : Waktu (opsional).
35
+ * [EN] : Time (optional).
36
+ */
10
37
  time?: string;
38
+ /**
39
+ * [ID] : Nama kelas CSS (opsional).
40
+ * [EN] : CSS class name (optional).
41
+ */
11
42
  clasName?: string | undefined;
43
+ /**
44
+ * [ID] : Menyembunyikan waktu (opsional).
45
+ * [EN] : Hide time (optional).
46
+ */
12
47
  noTime?: boolean;
13
48
  }
@@ -2,19 +2,74 @@ import { FloatingArrowProps, UseFloatingOptions } from '@floating-ui/react';
2
2
  import { default as React } from 'react';
3
3
  import { IColor } from '../../../config/tailwind/colors';
4
4
  import { IPopover } from '../Popover';
5
-
5
+ /**
6
+ * [ID] : Interface untuk komponen Tooltip.
7
+ * [EN] : Interface for Tooltip component.
8
+ */
6
9
  export interface ITooltip {
10
+ /**
11
+ * [ID] : ID elemen (opsional).
12
+ * [EN] : Element ID (optional).
13
+ */
7
14
  id?: string;
15
+ /**
16
+ * [ID] : Konten anak tooltip.
17
+ * [EN] : Tooltip child content.
18
+ */
8
19
  children: string | React.ReactNode | React.ReactNode[];
20
+ /**
21
+ * [ID] : Teks tooltip.
22
+ * [EN] : Tooltip text.
23
+ */
9
24
  text: string;
25
+ /**
26
+ * [ID] : Handler saat ditutup (opsional).
27
+ * [EN] : On close handler (optional).
28
+ */
10
29
  onClose?: () => void;
30
+ /**
31
+ * [ID] : Handler saat ditampilkan (opsional).
32
+ * [EN] : On show handler (optional).
33
+ */
11
34
  onShow?: () => void;
35
+ /**
36
+ * [ID] : Penundaan (ms) (opsional).
37
+ * [EN] : Delay (ms) (optional).
38
+ */
12
39
  delay?: number;
40
+ /**
41
+ * [ID] : Z-index popover (opsional).
42
+ * [EN] : Popover z-index (optional).
43
+ */
13
44
  zIndexPopover?: number;
45
+ /**
46
+ * [ID] : Properti popover (opsional).
47
+ * [EN] : Popover properties (optional).
48
+ */
14
49
  popoverProps?: Omit<IPopover, 'children'>;
50
+ /**
51
+ * [ID] : Properti panah (opsional).
52
+ * [EN] : Arrow properties (optional).
53
+ */
15
54
  arrowProps?: Partial<FloatingArrowProps>;
55
+ /**
56
+ * [ID] : Penempatan tooltip (opsional).
57
+ * [EN] : Tooltip placement (optional).
58
+ */
16
59
  placement?: UseFloatingOptions['placement'];
60
+ /**
61
+ * [ID] : Nama kelas CSS (opsional).
62
+ * [EN] : CSS class name (optional).
63
+ */
17
64
  className?: string;
65
+ /**
66
+ * [ID] : Warna latar belakang (opsional).
67
+ * [EN] : Background color (optional).
68
+ */
18
69
  backgroundColor?: keyof IColor;
70
+ /**
71
+ * [ID] : Status hover (opsional).
72
+ * [EN] : Hover status (optional).
73
+ */
19
74
  isHover?: boolean;
20
75
  }
@@ -1,9 +1,43 @@
1
+ /**
2
+ * [ID] : Interface untuk komponen TruncateComponent.
3
+ * [EN] : Interface for TruncateComponent component.
4
+ */
1
5
  export interface ITruncateComponent extends React.HTMLAttributes<HTMLDivElement> {
6
+ /**
7
+ * [ID] : Konten anak.
8
+ * [EN] : Child content.
9
+ */
2
10
  children: React.ReactNode[] | React.ReactNode;
11
+ /**
12
+ * [ID] : Lebar maksimum (opsional).
13
+ * [EN] : Maximum width (optional).
14
+ */
3
15
  maxWidth?: string;
16
+ /**
17
+ * [ID] : Fungsi untuk merender elemen 'more'.
18
+ * [EN] : Function to render 'more' element.
19
+ * @param count - [ID] : Jumlah item tersisa. [EN] : Remaining item count.
20
+ * @returns [ID] : Node React. [EN] : React Node.
21
+ */
4
22
  moreElement: (count: number) => React.ReactNode | React.ReactNode[];
23
+ /**
24
+ * [ID] : Gaya CSS (opsional).
25
+ * [EN] : CSS style (optional).
26
+ */
5
27
  style?: React.CSSProperties;
28
+ /**
29
+ * [ID] : Nama kelas CSS (opsional).
30
+ * [EN] : CSS class name (optional).
31
+ */
6
32
  className?: string;
33
+ /**
34
+ * [ID] : Jarak antar item (opsional).
35
+ * [EN] : Gap between items (optional).
36
+ */
7
37
  gap?: number;
38
+ /**
39
+ * [ID] : Gaya jarak (opsional).
40
+ * [EN] : Gap style (optional).
41
+ */
8
42
  gapStyle?: string;
9
43
  }