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,52 +1,245 @@
1
1
  import { default as React } from 'react';
2
2
  import { Props as SelectProps, ActionMeta, GroupBase, SelectComponentsConfig, MultiValue, SingleValue } from 'react-select';
3
3
  import { AutoPlacementOptions, FlipOptions, OffsetOptions, UseFloatingOptions } from '@floating-ui/react';
4
-
4
+ /**
5
+ * [ID] : Interface untuk komponen SelectDropdownContainer.
6
+ * [EN] : Interface for SelectDropdownContainer component.
7
+ * @template T - [ID] : Tipe data opsi. [EN] : Option data type.
8
+ */
5
9
  export interface ISelectDropdownContainer<T> extends Omit<SelectProps<T, boolean, GroupBase<T>>, 'onChange' | 'getOptionLabel'> {
10
+ /**
11
+ * [ID] : Lebar dropdown (opsional).
12
+ * [EN] : Dropdown width (optional).
13
+ */
6
14
  width?: number | string | ((width: number, value: MultiValue<T> | SingleValue<T> | T | T[] | object) => string | number);
15
+ /**
16
+ * [ID] : Fungsi render props untuk anak.
17
+ * [EN] : Render props function for children.
18
+ * @param params - [ID] : Parameter anak SelectDropdownContainer. [EN] : SelectDropdownContainer child parameters.
19
+ * @returns [ID] : Node React. [EN] : React Node.
20
+ */
7
21
  children: ((params: IChildrenSelectDropdownContainer<T>) => React.ReactNode) | ((params: IChildrenSelectDropdownContainer<T>) => React.ReactNode[]);
22
+ /**
23
+ * [ID] : Nama kelas CSS untuk kontainer (opsional).
24
+ * [EN] : CSS class name for container (optional).
25
+ */
8
26
  classNameContainer?: string;
27
+ /**
28
+ * [ID] : Nama kelas CSS saat select ditampilkan (opsional).
29
+ * [EN] : CSS class name when select is shown (optional).
30
+ */
9
31
  classNameContainerShowSelect?: string;
32
+ /**
33
+ * [ID] : Nama kelas CSS untuk select (opsional).
34
+ * [EN] : CSS class name for select (optional).
35
+ */
10
36
  classNameContainerSelect?: string;
37
+ /**
38
+ * [ID] : Nama kelas CSS untuk label error (opsional).
39
+ * [EN] : CSS class name for error label (optional).
40
+ */
11
41
  classNameLabelError?: string;
42
+ /**
43
+ * [ID] : Pesan error (opsional).
44
+ * [EN] : Error message (optional).
45
+ */
12
46
  error?: string;
47
+ /**
48
+ * [ID] : Handler perubahan nilai (opsional).
49
+ * [EN] : Value change handler (optional).
50
+ * @param newValue - [ID] : Nilai baru. [EN] : New value.
51
+ * @param actionMeta - [ID] : Meta aksi. [EN] : Action meta.
52
+ */
13
53
  onChange?: (newValue: MultiValue<T> | SingleValue<T> | T | T[] | object, actionMeta: ActionMeta<T>) => void;
54
+ /**
55
+ * [ID] : Menggunakan nilai eksternal (opsional).
56
+ * [EN] : Use external value (optional).
57
+ */
14
58
  externalValue?: boolean;
59
+ /**
60
+ * [ID] : Nilai default tombol dropdown (opsional).
61
+ * [EN] : Default dropdown button value (optional).
62
+ */
15
63
  defaultValueButtonDropdown?: object | T | T[];
64
+ /**
65
+ * [ID] : Tutup otomatis (opsional).
66
+ * [EN] : Auto close (optional).
67
+ */
16
68
  autoClose?: boolean;
69
+ /**
70
+ * [ID] : Handler saat menu dibuka (opsional).
71
+ * [EN] : On menu open handler (optional).
72
+ */
17
73
  onMenuOpen?: () => void;
74
+ /**
75
+ * [ID] : Tutup otomatis saat klik di luar (opsional).
76
+ * [EN] : Auto close outside (optional).
77
+ */
18
78
  autoCloseOutside?: boolean;
79
+ /**
80
+ * [ID] : Gaya CSS internal popper (opsional).
81
+ * [EN] : Internal popper CSS style (optional).
82
+ */
19
83
  styleInnerPopper?: React.CSSProperties;
84
+ /**
85
+ * [ID] : Handler saat menu ditutup (opsional).
86
+ * [EN] : On menu close handler (optional).
87
+ */
20
88
  onMenuClose?: () => void;
89
+ /**
90
+ * [ID] : Z-index popper (opsional).
91
+ * [EN] : Popper z-index (optional).
92
+ */
21
93
  zIndexPopper?: number | undefined | string;
94
+ /**
95
+ * [ID] : ID elemen (opsional).
96
+ * [EN] : Element ID (optional).
97
+ */
22
98
  id?: string;
99
+ /**
100
+ * [ID] : ID popover (opsional).
101
+ * [EN] : Popover ID (optional).
102
+ */
23
103
  idPopover?: string;
104
+ /**
105
+ * [ID] : Menggunakan penempatan otomatis (opsional).
106
+ * [EN] : Use auto placement (optional).
107
+ */
24
108
  useAutoPlacement?: boolean;
109
+ /**
110
+ * [ID] : Opsi flip (opsional).
111
+ * [EN] : Flip options (optional).
112
+ */
25
113
  flipOptions?: FlipOptions;
114
+ /**
115
+ * [ID] : Opsi penempatan otomatis (opsional).
116
+ * [EN] : Auto placement options (optional).
117
+ */
26
118
  autoPlacementOptions?: AutoPlacementOptions;
119
+ /**
120
+ * [ID] : Opsi floating UI (opsional).
121
+ * [EN] : Floating UI options (optional).
122
+ */
27
123
  floatingOptions?: UseFloatingOptions;
124
+ /**
125
+ * [ID] : Menampilkan pencarian (opsional).
126
+ * [EN] : Show search (optional).
127
+ */
28
128
  withSearch?: boolean;
129
+ /**
130
+ * [ID] : Komponen kustom select (opsional).
131
+ * [EN] : Custom select components (optional).
132
+ */
29
133
  components?: SelectComponentsConfig<T, boolean, GroupBase<T>>;
134
+ /**
135
+ * [ID] : Fungsi untuk mendapatkan label opsi (opsional).
136
+ * [EN] : Function to get option label (optional).
137
+ * @param option - [ID] : Opsi. [EN] : Option.
138
+ * @returns [ID] : Label opsi. [EN] : Option label.
139
+ */
30
140
  getOptionLabel?: (option: T) => React.ReactNode | Element | string;
141
+ /**
142
+ * [ID] : Properti tambahan select (opsional).
143
+ * [EN] : Additional select properties (optional).
144
+ */
31
145
  selectProps?: object;
146
+ /**
147
+ * [ID] : Offset popover (opsional).
148
+ * [EN] : Popover offset (optional).
149
+ */
32
150
  offsetPopover?: OffsetOptions;
33
- errorLabel?: 'payhere' | 'laba';
151
+ /**
152
+ * [ID] : Label error (opsional).
153
+ * [EN] : Error label (optional).
154
+ */
155
+ errorLabel?: 'payhere' | 'laba' | 'bill';
156
+ /**
157
+ * [ID] : Handler perubahan nilai aksi (opsional).
158
+ * [EN] : Action value change handler (optional).
159
+ * @param value - [ID] : Nilai baru. [EN] : New value.
160
+ */
34
161
  actionValueChange?: (value: MultiValue<T> | SingleValue<T> | T | T[] | object) => void;
162
+ /**
163
+ * [ID] : Tipe kontrol (opsional).
164
+ * [EN] : Control type (optional).
165
+ */
35
166
  controlType?: 'laba' | 'payhere' | 'bill';
36
167
  }
168
+ /**
169
+ * [ID] : Interface untuk properti anak SelectDropdownContainer.
170
+ * [EN] : Interface for SelectDropdownContainer child properties.
171
+ * @template T - [ID] : Tipe data opsi. [EN] : Option data type.
172
+ */
37
173
  export interface IChildrenSelectDropdownContainer<T> {
174
+ /**
175
+ * [ID] : Nilai select.
176
+ * [EN] : Select value.
177
+ */
38
178
  selectValue: T | T[] | object;
179
+ /**
180
+ * [ID] : Fungsi pengatur nilai select.
181
+ * [EN] : Select value setter function.
182
+ */
39
183
  setSelectValue: React.Dispatch<React.SetStateAction<T>>;
184
+ /**
185
+ * [ID] : Handler tutup.
186
+ * [EN] : Close handler.
187
+ */
40
188
  handlerClose: () => void;
189
+ /**
190
+ * [ID] : Handler tampilkan.
191
+ * [EN] : Show handler.
192
+ * @param e - [ID] : Event mouse. [EN] : Mouse event.
193
+ */
41
194
  handlerShow: <U extends HTMLElement>(e: React.MouseEvent<U, unknown>) => void;
195
+ /**
196
+ * [ID] : Status visibilitas.
197
+ * [EN] : Visibility status.
198
+ */
42
199
  show: boolean;
200
+ /**
201
+ * [ID] : Fungsi pengatur visibilitas.
202
+ * [EN] : Visibility setter function.
203
+ * @param v - [ID] : Status visibilitas baru. [EN] : New visibility status.
204
+ */
43
205
  setShow: (v: boolean) => void;
44
206
  }
207
+ /**
208
+ * [ID] : Interface untuk referensi SelectDropdownContainer.
209
+ * [EN] : Interface for SelectDropdownContainer reference.
210
+ * @template T - [ID] : Tipe data opsi. [EN] : Option data type.
211
+ */
45
212
  export interface IRefSelectDropdownContainer<T> {
213
+ /**
214
+ * [ID] : Nilai select.
215
+ * [EN] : Select value.
216
+ */
46
217
  selectValue: T | T[] | object;
218
+ /**
219
+ * [ID] : Fungsi pengatur nilai select.
220
+ * [EN] : Select value setter function.
221
+ */
47
222
  setSelectValue: React.Dispatch<React.SetStateAction<T>>;
223
+ /**
224
+ * [ID] : Handler tutup.
225
+ * [EN] : Close handler.
226
+ */
48
227
  handlerClose: () => void;
228
+ /**
229
+ * [ID] : Handler tampilkan.
230
+ * [EN] : Show handler.
231
+ * @param e - [ID] : Event mouse. [EN] : Mouse event.
232
+ */
49
233
  handlerShow: <U extends HTMLElement>(e: React.MouseEvent<U, unknown>) => void;
234
+ /**
235
+ * [ID] : Status visibilitas.
236
+ * [EN] : Visibility status.
237
+ */
50
238
  show: boolean;
239
+ /**
240
+ * [ID] : Fungsi pengatur visibilitas.
241
+ * [EN] : Visibility setter function.
242
+ * @param v - [ID] : Status visibilitas baru. [EN] : New visibility status.
243
+ */
51
244
  setShow: (v: boolean) => void;
52
245
  }
@@ -1,61 +1,286 @@
1
1
  import { default as React } from 'react';
2
-
2
+ /**
3
+ * [ID] : Tipe varian sidebar.
4
+ * [EN] : Sidebar variant type.
5
+ */
3
6
  export type TVariantSidebarType = 'payhere-brand-base-white' | 'payhere-brand-base-transparent' | 'laba-white' | 'lpd-brand-base-transparent' | 'lpd-brand-base-transparent-responsive' | 'lpd-brand-base-white' | 'lpd-brand-base-white-responsive' | 'bill-brand-base-white' | 'bill-brand-base-white-responsive';
7
+ /**
8
+ * [ID] : Interface untuk modul sidebar.
9
+ * [EN] : Interface for sidebar module.
10
+ */
4
11
  export interface ISidebarModule {
12
+ /**
13
+ * [ID] : Nama modul.
14
+ * [EN] : Module name.
15
+ */
5
16
  name: string;
17
+ /**
18
+ * [ID] : Label modul.
19
+ * [EN] : Module label.
20
+ */
6
21
  label: string;
22
+ /**
23
+ * [ID] : Slug modul.
24
+ * [EN] : Module slug.
25
+ */
7
26
  slug: string;
27
+ /**
28
+ * [ID] : Sub-modul.
29
+ * [EN] : Sub-modules.
30
+ */
8
31
  subs: ISidebarModule[];
32
+ /**
33
+ * [ID] : Status ditampilkan.
34
+ * [EN] : Is shown status.
35
+ */
9
36
  isShow: boolean;
37
+ /**
38
+ * [ID] : ID induk.
39
+ * [EN] : Parent ID.
40
+ */
10
41
  parent: number;
42
+ /**
43
+ * [ID] : Ikon modul (opsional).
44
+ * [EN] : Module icon (optional).
45
+ */
11
46
  icon?: string;
47
+ /**
48
+ * [ID] : Ikon SVG (opsional).
49
+ * [EN] : SVG icon (optional).
50
+ */
12
51
  svgIcon?: React.ReactNode | null;
52
+ /**
53
+ * [ID] : Ikon SVG saat aktif (opsional).
54
+ * [EN] : SVG icon when active (optional).
55
+ */
13
56
  svgIconActive?: React.ReactNode | null;
57
+ /**
58
+ * [ID] : Ikon SVG saat hover (opsional).
59
+ * [EN] : SVG icon when hover (optional).
60
+ */
14
61
  svgIconHover?: React.ReactNode | null;
62
+ /**
63
+ * [ID] : Rute manual (opsional).
64
+ * [EN] : Manual route (optional).
65
+ */
15
66
  manualRoute?: boolean;
67
+ /**
68
+ * [ID] : Fungsi properti link (opsional).
69
+ * [EN] : Link properties function (optional).
70
+ * @param value - [ID] : Nilai link. [EN] : Link value.
71
+ * @param item - [ID] : Item modul. [EN] : Module item.
72
+ * @returns [ID] : Objek properti. [EN] : Property object.
73
+ */
16
74
  propsLink?: (value: string, item: ISidebarModule) => object;
75
+ /**
76
+ * [ID] : Properti dinamis lainnya.
77
+ * [EN] : Other dynamic properties.
78
+ */
17
79
  [key: string]: unknown;
18
80
  }
81
+ /**
82
+ * [ID] : Interface untuk komponen Sidebar.
83
+ * [EN] : Interface for Sidebar component.
84
+ * @template T - [ID] : Tipe elemen React. [EN] : React element type.
85
+ */
19
86
  export interface ISidebar<T extends React.ElementType> extends React.HTMLAttributes<HTMLDivElement> {
87
+ /**
88
+ * [ID] : Elemen HTML yang akan dirender (opsional).
89
+ * [EN] : HTML element to be rendered (optional).
90
+ */
20
91
  as?: T;
92
+ /**
93
+ * [ID] : Konten anak sidebar.
94
+ * [EN] : Sidebar child content.
95
+ */
21
96
  children: React.ReactNode | React.ReactNode[];
97
+ /**
98
+ * [ID] : Patch (opsional).
99
+ * [EN] : Patch (optional).
100
+ */
22
101
  patch?: string;
102
+ /**
103
+ * [ID] : Ikon perusahaan.
104
+ * [EN] : Company icon.
105
+ */
23
106
  iconCompany: React.ReactNode | React.ReactNode[] | ((params: IChildrenIconCompany) => React.ReactNode) | ((params: IChildrenIconCompany) => React.ReactNode[]);
107
+ /**
108
+ * [ID] : Ikon sub-menu (opsional).
109
+ * [EN] : Sub-menu icon (optional).
110
+ */
24
111
  iconSubs?: React.ReactNode | React.ReactNode[];
112
+ /**
113
+ * [ID] : Ikon collapse (opsional).
114
+ * [EN] : Collapse icon (optional).
115
+ */
25
116
  iconCollapse?: React.ReactNode | React.ReactNode[];
117
+ /**
118
+ * [ID] : Ikon collapse tutup (opsional).
119
+ * [EN] : Collapse close icon (optional).
120
+ */
26
121
  iconCollapseClose?: React.ReactNode | React.ReactNode[];
122
+ /**
123
+ * [ID] : Varian sidebar (opsional).
124
+ * [EN] : Sidebar variant (optional).
125
+ */
27
126
  variant?: TVariantSidebarType;
127
+ /**
128
+ * [ID] : Daftar modul.
129
+ * [EN] : Module list.
130
+ */
28
131
  modules: ISidebarModule[];
132
+ /**
133
+ * [ID] : Toleransi lebar ikon perusahaan (opsional).
134
+ * [EN] : Company icon width tolerance (optional).
135
+ */
29
136
  toleranceWidthIconCompany?: number;
137
+ /**
138
+ * [ID] : Footer sidebar (opsional).
139
+ * [EN] : Sidebar footer (optional).
140
+ */
30
141
  footer?: React.ReactNode | React.ReactNode[] | (() => React.ReactNode) | (() => React.ReactNode[]);
142
+ /**
143
+ * [ID] : Handler klik item (opsional).
144
+ * [EN] : Item click handler (optional).
145
+ * @param v - [ID] : Modul yang diklik. [EN] : Clicked module.
146
+ */
31
147
  onClickItems?: (v: ISidebarModule) => void;
148
+ /**
149
+ * [ID] : Fungsi properti link (opsional).
150
+ * [EN] : Link properties function (optional).
151
+ * @param value - [ID] : Nilai link. [EN] : Link value.
152
+ * @param item - [ID] : Item modul. [EN] : Module item.
153
+ * @returns [ID] : Objek properti. [EN] : Property object.
154
+ */
32
155
  propsLink?: (value: string, item: ISidebarModule) => object;
156
+ /**
157
+ * [ID] : Menggunakan pewarisan (opsional).
158
+ * [EN] : Use inheritance (optional).
159
+ */
33
160
  withInheritance?: boolean;
161
+ /**
162
+ * [ID] : ID elemen (opsional).
163
+ * [EN] : Element ID (optional).
164
+ */
34
165
  id?: string;
35
166
  }
167
+ /**
168
+ * [ID] : Interface untuk item sidebar.
169
+ * [EN] : Interface for sidebar item.
170
+ * @template T - [ID] : Tipe elemen React. [EN] : React element type.
171
+ */
36
172
  export interface IItemSidebar<T extends React.ElementType> extends ISidebarModule {
173
+ /**
174
+ * [ID] : Elemen HTML yang akan dirender (opsional).
175
+ * [EN] : HTML element to be rendered (optional).
176
+ */
37
177
  as?: T;
178
+ /**
179
+ * [ID] : Status tampilan.
180
+ * [EN] : Show status.
181
+ */
38
182
  show: string;
183
+ /**
184
+ * [ID] : Status terbuka.
185
+ * [EN] : Open status.
186
+ */
39
187
  open: boolean | null;
188
+ /**
189
+ * [ID] : Patch (opsional).
190
+ * [EN] : Patch (optional).
191
+ */
40
192
  patch?: string;
193
+ /**
194
+ * [ID] : Ikon sub-menu (opsional).
195
+ * [EN] : Sub-menu icon (optional).
196
+ */
41
197
  iconSubs?: React.ReactNode | React.ReactNode[] | (() => React.ReactNode) | (() => React.ReactNode[]);
198
+ /**
199
+ * [ID] : Varian sidebar (opsional).
200
+ * [EN] : Sidebar variant (optional).
201
+ */
42
202
  variant?: TVariantSidebarType;
203
+ /**
204
+ * [ID] : Fungsi pengatur tampilan.
205
+ * [EN] : Show setter function.
206
+ * @param v - [ID] : Nilai tampilan baru. [EN] : New show value.
207
+ */
43
208
  setShow: (v: string) => void;
209
+ /**
210
+ * [ID] : Handler klik item (opsional).
211
+ * [EN] : Item click handler (optional).
212
+ * @param v - [ID] : Modul yang diklik. [EN] : Clicked module.
213
+ */
44
214
  onClickItems?: (v: ISidebarModule) => void;
215
+ /**
216
+ * [ID] : Fungsi properti link (opsional).
217
+ * [EN] : Link properties function (optional).
218
+ * @param value - [ID] : Nilai link. [EN] : Link value.
219
+ * @param item - [ID] : Item modul. [EN] : Module item.
220
+ * @returns [ID] : Objek properti. [EN] : Property object.
221
+ */
45
222
  propsLink?: (value: string, item: ISidebarModule) => object;
223
+ /**
224
+ * [ID] : Komponen link (opsional).
225
+ * [EN] : Link component (optional).
226
+ */
46
227
  linkComponent?: T;
47
228
  }
229
+ /**
230
+ * [ID] : Interface untuk elemen kloning sidebar.
231
+ * [EN] : Interface for sidebar clone element.
232
+ */
48
233
  export interface ICloneElementSidebar {
234
+ /**
235
+ * [ID] : Status sidebar terbuka (opsional).
236
+ * [EN] : Sidebar open status (optional).
237
+ */
49
238
  openSidebar?: boolean;
239
+ /**
240
+ * [ID] : Fungsi pengatur status sidebar terbuka (opsional).
241
+ * [EN] : Sidebar open status setter function (optional).
242
+ */
50
243
  setOpenSidebar?: React.Dispatch<React.SetStateAction<boolean | null>>;
244
+ /**
245
+ * [ID] : Handler klik collapse (opsional).
246
+ * [EN] : Collapse click handler (optional).
247
+ */
51
248
  handlerClickCollapse?: () => void;
52
249
  }
250
+ /**
251
+ * [ID] : Interface untuk referensi sidebar.
252
+ * [EN] : Interface for sidebar reference.
253
+ */
53
254
  export interface IRefSidebar {
255
+ /**
256
+ * [ID] : Status sidebar terbuka.
257
+ * [EN] : Sidebar open status.
258
+ */
54
259
  openSidebar: boolean | null;
260
+ /**
261
+ * [ID] : Fungsi pengatur status sidebar terbuka.
262
+ * [EN] : Sidebar open status setter function.
263
+ */
55
264
  setOpenSidebar: React.Dispatch<React.SetStateAction<boolean | null>>;
265
+ /**
266
+ * [ID] : Handler klik collapse.
267
+ * [EN] : Collapse click handler.
268
+ */
56
269
  handlerClickCollapse: () => void;
57
270
  }
271
+ /**
272
+ * [ID] : Interface untuk anak ikon perusahaan.
273
+ * [EN] : Interface for company icon children.
274
+ */
58
275
  export interface IChildrenIconCompany {
276
+ /**
277
+ * [ID] : Status sidebar terbuka.
278
+ * [EN] : Sidebar open status.
279
+ */
59
280
  openSidebar: boolean | null;
281
+ /**
282
+ * [ID] : Fungsi pengatur status sidebar terbuka.
283
+ * [EN] : Sidebar open status setter function.
284
+ */
60
285
  setOpenSidebar: React.Dispatch<React.SetStateAction<boolean | null>>;
61
286
  }