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.
- package/dist/assets/_mixins.scss +43 -43
- package/dist/assets/core.css +1 -1
- package/dist/assets/fontfamily.css +1 -1
- package/dist/assets/icons/arrow-narrow-down.svg +3 -3
- package/dist/assets/style.css +1 -1
- package/dist/assets/toast.css +194 -98
- package/dist/index.cjs +154 -145
- package/dist/index.d.ts +2 -1
- package/dist/index.mjs +26996 -26119
- package/dist/package.json.d.ts +132 -131
- package/dist/src/components/Alert/index.d.ts +0 -1
- package/dist/src/components/Badges/Badges.d.ts +0 -1
- package/dist/src/components/Badges/Badges.stories.d.ts +1 -2
- package/dist/src/components/Breadcrumbs/Breadcrumbs.d.ts +0 -1
- package/dist/src/components/Breadcrumbs/Breadcrumbs.stories.d.ts +1 -2
- package/dist/src/components/Button/Button.d.ts +0 -1
- package/dist/src/components/Button/Button.stories.d.ts +1 -2
- package/dist/src/components/ButtonIcon/ButtonIcon.d.ts +0 -1
- package/dist/src/components/ButtonIcon/ButtonIcon.stories.d.ts +1 -2
- package/dist/src/components/ButtonPopover/ButtonPopover.d.ts +0 -1
- package/dist/src/components/ButtonPopover/ButtonPopover.stories.d.ts +1 -2
- package/dist/src/components/Calendar/Calendar.d.ts +0 -1
- package/dist/src/components/Calendar/Calendar.stories.d.ts +1 -2
- package/dist/src/components/Calendar/CalendarButton.d.ts +0 -1
- package/dist/src/components/Calendar/CalendarCell.d.ts +0 -1
- package/dist/src/components/Calendar/CalendarMonth.d.ts +0 -1
- package/dist/src/components/Calendar/CalendarRange.d.ts +0 -1
- package/dist/src/components/Calendar/CalendarYear.d.ts +0 -1
- package/dist/src/components/Chart/DoughnutChart.d.ts +0 -1
- package/dist/src/components/Chart/GradientBarChart.d.ts +0 -1
- package/dist/src/components/Chart/GradientBarChart.stories.d.ts +3 -4
- package/dist/src/components/Chart/GradientLineChart.d.ts +0 -1
- package/dist/src/components/Chart/GradientLineChart.stories.d.ts +3 -4
- package/dist/src/components/Chart/LineChart.d.ts +0 -1
- package/dist/src/components/Chart/LineChart.stories.d.ts +1 -2
- package/dist/src/components/Chips/Chips.d.ts +0 -1
- package/dist/src/components/Chips/Chips.stories.d.ts +1 -2
- package/dist/src/components/Collapse/Collapse.d.ts +0 -1
- package/dist/src/components/Collapse/Collapse.stories.d.ts +1 -2
- package/dist/src/components/Collapse/CollapseV2.d.ts +0 -1
- package/dist/src/components/Collapse/CollapseV2.stories.d.ts +1 -2
- package/dist/src/components/Colors/Colors.stories.d.ts +1 -2
- package/dist/src/components/DatePicker/DatePicker.d.ts +0 -1
- package/dist/src/components/DatePicker/DatePicker.stories.d.ts +1 -2
- package/dist/src/components/DatePicker/DateRangePicker.d.ts +0 -1
- package/dist/src/components/DatePicker/FilterDate.d.ts +0 -1
- package/dist/src/components/DatePicker/FilterDate.stories.d.ts +1 -2
- package/dist/src/components/DatePicker/MonthYearPicker.d.ts +0 -1
- package/dist/src/components/DatePicker/MonthYearPicker.stories.d.ts +1 -2
- package/dist/src/components/ErrorMessage/ErrorMessage.d.ts +0 -1
- package/dist/src/components/ErrorMessage/ErrorMessage.stories.d.ts +1 -2
- package/dist/src/components/FilterContainer/FilterContainer.d.ts +0 -1
- package/dist/src/components/FilterContainer/FilterContainer.stories.d.ts +1 -2
- package/dist/src/components/Input/InputFloatingInner.d.ts +0 -1
- package/dist/src/components/Input/InputFloatingInner.stories.d.ts +1 -2
- package/dist/src/components/Input/InputInnerLabel.d.ts +0 -1
- package/dist/src/components/Input/InputInnerLabel.stories.d.ts +1 -2
- package/dist/src/components/Input/InputNative.d.ts +0 -1
- package/dist/src/components/Input/InputNative.stories.d.ts +1 -2
- package/dist/src/components/Input/InputReguler.d.ts +0 -1
- package/dist/src/components/Input/InputReguler.stories.d.ts +1 -2
- package/dist/src/components/Modal/ModalDialog.d.ts +0 -1
- package/dist/src/components/Modal/ModalDialog.stories.d.ts +1 -2
- package/dist/src/components/NumberFormat/NumberFormat.d.ts +0 -1
- package/dist/src/components/NumberFormat/NumberFormat.stories.d.ts +1 -2
- package/dist/src/components/Pagination/Pagination.d.ts +0 -1
- package/dist/src/components/Pagination/Pagination.stories.d.ts +1 -2
- package/dist/src/components/Popover/Popover.d.ts +0 -1
- package/dist/src/components/Popover/Popover.stories.d.ts +3 -4
- package/dist/src/components/PortalComponent/PortalComponent.d.ts +0 -1
- package/dist/src/components/PortalComponent/PortalComponent.stories.d.ts +1 -2
- package/dist/src/components/RadioCheckbox/CheckboxTable.d.ts +0 -1
- package/dist/src/components/RadioCheckbox/RadioCheckbox.d.ts +0 -1
- package/dist/src/components/RadioCheckbox/RadioCheckbox.stories.d.ts +1 -2
- package/dist/src/components/RadioCheckbox/RadioCheckboxLabel.d.ts +0 -1
- package/dist/src/components/RadioCheckbox/RadioCheckboxLabel.stories.d.ts +1 -2
- package/dist/src/components/SelectDropdownContainer/SelectDropdownContainer.d.ts +1 -2
- package/dist/src/components/SelectDropdownContainer/SelectDropdownContainer.stories.d.ts +4 -5
- package/dist/src/components/SelectDropdownContainer/styleConfig.d.ts +0 -1
- package/dist/src/components/Sidebar/ItemSidebar.d.ts +0 -1
- package/dist/src/components/Sidebar/Sidebar.d.ts +1 -2
- package/dist/src/components/Sidebar/Sidebar.stories.d.ts +5 -6
- package/dist/src/components/Step/Step.d.ts +0 -1
- package/dist/src/components/Step/Step.stories.d.ts +1 -2
- package/dist/src/components/Step/StepIndicator.d.ts +0 -1
- package/dist/src/components/Step/StepIndicator.stories.d.ts +1 -2
- package/dist/src/components/Switch/Switch.d.ts +0 -1
- package/dist/src/components/Switch/Switch.stories.d.ts +1 -2
- package/dist/src/components/Table/Table.config.d.ts +0 -1
- package/dist/src/components/Table/Table.d.ts +0 -1
- package/dist/src/components/Table/Table.stories.d.ts +1 -2
- package/dist/src/components/Table/TableSubMobile.d.ts +0 -1
- package/dist/src/components/Tabs/TabPanel.d.ts +0 -1
- package/dist/src/components/Tabs/Tabs.d.ts +0 -1
- package/dist/src/components/Tabs/Tabs.stories.d.ts +1 -2
- package/dist/src/components/TextEditor/TextEditor.d.ts +0 -1
- package/dist/src/components/TextEditor/TextEditor.stories.d.ts +1 -2
- package/dist/src/components/Textarea/Textarea.d.ts +0 -1
- package/dist/src/components/Textarea/Textarea.stories.d.ts +1 -2
- package/dist/src/components/Textarea/TextareaFloatingInner.d.ts +0 -1
- package/dist/src/components/Textarea/TextareaFloatingInner.stories.d.ts +1 -2
- package/dist/src/components/Textarea/TextareaInnerLabel.d.ts +0 -1
- package/dist/src/components/Textarea/TextareaInnerLabel.stories.d.ts +1 -2
- package/dist/src/components/TimeRange/TimeRange.d.ts +0 -1
- package/dist/src/components/TimeRange/TimeRange.stories.d.ts +1 -2
- package/dist/src/components/Timeline/Timeline.d.ts +0 -1
- package/dist/src/components/Timeline/Timeline.stories.d.ts +1 -2
- package/dist/src/components/Tooltip/Tooltip.d.ts +0 -1
- package/dist/src/components/Tooltip/Tooltip.stories.d.ts +1 -2
- package/dist/src/components/TruncateComponent/TruncateComponent.d.ts +0 -1
- package/dist/src/components/TruncateComponent/TruncateComponent.stories.d.ts +1 -2
- package/dist/src/components/Typography/Typography.stories.d.ts +1 -2
- package/dist/src/components/Upload/UploadFile.d.ts +0 -1
- package/dist/src/components/Upload/UploadFile.stories.d.ts +1 -2
- package/dist/src/components/Upload/UploadImage.d.ts +0 -1
- package/dist/src/components/Upload/UploadImage.stories.d.ts +1 -2
- package/dist/src/components/Upload/UploadMultipleFile.d.ts +0 -1
- package/dist/src/components/Upload/UploadMultipleFile.stories.d.ts +1 -2
- package/dist/src/components/Virtualization/ListVirtualization.d.ts +0 -1
- package/dist/src/components/Virtualization/ListVirtualization.stories.d.ts +1 -2
- package/dist/src/components/Virtualization/TableVirtualization.d.ts +0 -1
- package/dist/src/components/Virtualization/TableVirtualization.stories.d.ts +1 -2
- package/dist/src/components/index.d.ts +0 -1
- package/dist/src/components/screens/Screens.stories.d.ts +1 -2
- package/dist/src/config/bigNumber/index.d.ts +0 -1
- package/dist/src/config/components/tinymce.d.ts +0 -1
- package/dist/src/config/tailwind/index.d.ts +0 -1
- package/dist/src/hooks/index.d.ts +0 -1
- package/dist/src/hooks/useAsyncDebounce.d.ts +9 -0
- package/dist/src/hooks/useCombinedResizeObserver.d.ts +66 -1
- package/dist/src/hooks/useCountdown.d.ts +61 -0
- package/dist/src/hooks/useDeepCompareEffect.d.ts +13 -1
- package/dist/src/hooks/useElementOrWindowMediaQuery.d.ts +9 -0
- package/dist/src/hooks/useEventListener.d.ts +27 -1
- package/dist/src/hooks/useMasonry.d.ts +79 -1
- package/dist/src/hooks/useMergeRefs.d.ts +26 -1
- package/dist/src/hooks/useOtpInput.d.ts +157 -1
- package/dist/src/hooks/useStateRef.d.ts +8 -1
- package/dist/src/interfaces/components/Alert/index.d.ts +8 -1
- package/dist/src/interfaces/components/Badges/index.d.ts +28 -1
- package/dist/src/interfaces/components/Breadcrumbs/index.d.ts +79 -1
- package/dist/src/interfaces/components/Button/index.d.ts +44 -1
- package/dist/src/interfaces/components/ButtonIcon/index.d.ts +36 -1
- package/dist/src/interfaces/components/ButtonPopover/index.d.ts +78 -1
- package/dist/src/interfaces/components/Calendar/index.d.ts +364 -1
- package/dist/src/interfaces/components/Chart/index.d.ts +460 -1
- package/dist/src/interfaces/components/Checkbox/index.d.ts +12 -1
- package/dist/src/interfaces/components/Chips/index.d.ts +36 -1
- package/dist/src/interfaces/components/Collapse/index.d.ts +60 -1
- package/dist/src/interfaces/components/DatePicker/index.d.ts +274 -1
- package/dist/src/interfaces/components/ErrorMessage/index.d.ts +16 -0
- package/dist/src/interfaces/components/FilterContainer/index.d.ts +102 -1
- package/dist/src/interfaces/components/Input/index.d.ts +180 -1
- package/dist/src/interfaces/components/Modal/index.d.ts +45 -1
- package/dist/src/interfaces/components/NumberFormat/index.d.ts +25 -1
- package/dist/src/interfaces/components/Pagination/index.d.ts +81 -1
- package/dist/src/interfaces/components/Popover/index.d.ts +95 -1
- package/dist/src/interfaces/components/RadioCheckbox/RadioCheckbox.d.ts +56 -1
- package/dist/src/interfaces/components/RadioCheckbox/RadioCheckboxLabel.d.ts +44 -1
- package/dist/src/interfaces/components/SelectDropdownContainer/index.d.ts +195 -2
- package/dist/src/interfaces/components/Sidebar/index.d.ts +226 -1
- package/dist/src/interfaces/components/Step/index.d.ts +153 -1
- package/dist/src/interfaces/components/Switch/index.d.ts +53 -0
- package/dist/src/interfaces/components/Table/index.d.ts +364 -1
- package/dist/src/interfaces/components/Tabs/index.d.ts +126 -1
- package/dist/src/interfaces/components/TextEditor/index.d.ts +12 -1
- package/dist/src/interfaces/components/Textarea/index.d.ts +156 -1
- package/dist/src/interfaces/components/TimeRange/index.d.ts +100 -1
- package/dist/src/interfaces/components/Timeline/index.d.ts +36 -1
- package/dist/src/interfaces/components/Tooltip/index.d.ts +56 -1
- package/dist/src/interfaces/components/TruncateComponent/index.d.ts +34 -0
- package/dist/src/interfaces/components/UploadFile/index.d.ts +184 -2
- package/dist/src/interfaces/components/Virtualization/ListVirtualization.d.ts +138 -1
- package/dist/src/interfaces/components/Virtualization/TableVirtualization.d.ts +143 -1
- package/dist/src/main.d.ts +0 -1
- package/dist/src/utils/common.d.ts +0 -1
- package/dist/tinymce/CHANGELOG.md +3785 -3785
- package/dist/tinymce/js/tinymce/langs/README.md +3 -3
- package/dist/tinymce/js/tinymce/license.md +6 -6
- package/dist/tinymce/js/tinymce/notices.txt +21 -21
- package/dist/tinymce/js/tinymce/plugins/codesample/plugin.min.js +8 -8
- package/dist/tinymce/js/tinymce/plugins/help/js/i18n/keynav/ar.js +92 -92
- package/dist/tinymce/js/tinymce/plugins/help/js/i18n/keynav/bg_BG.js +92 -92
- package/dist/tinymce/js/tinymce/plugins/help/js/i18n/keynav/ca.js +92 -92
- package/dist/tinymce/js/tinymce/plugins/help/js/i18n/keynav/cs.js +92 -92
- package/dist/tinymce/js/tinymce/plugins/help/js/i18n/keynav/da.js +92 -92
- package/dist/tinymce/js/tinymce/plugins/help/js/i18n/keynav/de.js +92 -92
- package/dist/tinymce/js/tinymce/plugins/help/js/i18n/keynav/el.js +92 -92
- package/dist/tinymce/js/tinymce/plugins/help/js/i18n/keynav/en.js +92 -92
- package/dist/tinymce/js/tinymce/plugins/help/js/i18n/keynav/es.js +92 -92
- package/dist/tinymce/js/tinymce/plugins/help/js/i18n/keynav/eu.js +92 -92
- package/dist/tinymce/js/tinymce/plugins/help/js/i18n/keynav/fa.js +92 -92
- package/dist/tinymce/js/tinymce/plugins/help/js/i18n/keynav/fi.js +92 -92
- package/dist/tinymce/js/tinymce/plugins/help/js/i18n/keynav/fr_FR.js +92 -92
- package/dist/tinymce/js/tinymce/plugins/help/js/i18n/keynav/he_IL.js +92 -92
- package/dist/tinymce/js/tinymce/plugins/help/js/i18n/keynav/hi.js +92 -92
- package/dist/tinymce/js/tinymce/plugins/help/js/i18n/keynav/hr.js +92 -92
- package/dist/tinymce/js/tinymce/plugins/help/js/i18n/keynav/hu_HU.js +92 -92
- package/dist/tinymce/js/tinymce/plugins/help/js/i18n/keynav/id.js +92 -92
- package/dist/tinymce/js/tinymce/plugins/help/js/i18n/keynav/it.js +92 -92
- package/dist/tinymce/js/tinymce/plugins/help/js/i18n/keynav/ja.js +92 -92
- package/dist/tinymce/js/tinymce/plugins/help/js/i18n/keynav/kk.js +92 -92
- package/dist/tinymce/js/tinymce/plugins/help/js/i18n/keynav/ko_KR.js +92 -92
- package/dist/tinymce/js/tinymce/plugins/help/js/i18n/keynav/ms.js +92 -92
- package/dist/tinymce/js/tinymce/plugins/help/js/i18n/keynav/nb_NO.js +92 -92
- package/dist/tinymce/js/tinymce/plugins/help/js/i18n/keynav/nl.js +92 -92
- package/dist/tinymce/js/tinymce/plugins/help/js/i18n/keynav/pl.js +92 -92
- package/dist/tinymce/js/tinymce/plugins/help/js/i18n/keynav/pt_BR.js +92 -92
- package/dist/tinymce/js/tinymce/plugins/help/js/i18n/keynav/pt_PT.js +92 -92
- package/dist/tinymce/js/tinymce/plugins/help/js/i18n/keynav/ro.js +92 -92
- package/dist/tinymce/js/tinymce/plugins/help/js/i18n/keynav/ru.js +92 -92
- package/dist/tinymce/js/tinymce/plugins/help/js/i18n/keynav/sk.js +92 -92
- package/dist/tinymce/js/tinymce/plugins/help/js/i18n/keynav/sl_SI.js +92 -92
- package/dist/tinymce/js/tinymce/plugins/help/js/i18n/keynav/sv_SE.js +92 -92
- package/dist/tinymce/js/tinymce/plugins/help/js/i18n/keynav/th_TH.js +92 -92
- package/dist/tinymce/js/tinymce/plugins/help/js/i18n/keynav/tr.js +92 -92
- package/dist/tinymce/js/tinymce/plugins/help/js/i18n/keynav/uk.js +92 -92
- package/dist/tinymce/js/tinymce/plugins/help/js/i18n/keynav/vi.js +92 -92
- package/dist/tinymce/js/tinymce/plugins/help/js/i18n/keynav/zh_CN.js +86 -86
- package/dist/tinymce/js/tinymce/plugins/help/js/i18n/keynav/zh_TW.js +92 -92
- package/dist/tinymce/js/tinymce/skins/content/dark/content.js +9 -9
- package/dist/tinymce/js/tinymce/skins/content/dark/content.min.css +10 -10
- package/dist/tinymce/js/tinymce/skins/content/default/content.js +9 -9
- package/dist/tinymce/js/tinymce/skins/content/default/content.min.css +10 -10
- package/dist/tinymce/js/tinymce/skins/content/document/content.js +9 -9
- package/dist/tinymce/js/tinymce/skins/content/document/content.min.css +10 -10
- package/dist/tinymce/js/tinymce/skins/content/tinymce-5/content.js +9 -9
- package/dist/tinymce/js/tinymce/skins/content/tinymce-5/content.min.css +10 -10
- package/dist/tinymce/js/tinymce/skins/content/tinymce-5-dark/content.js +9 -9
- package/dist/tinymce/js/tinymce/skins/content/tinymce-5-dark/content.min.css +10 -10
- package/dist/tinymce/js/tinymce/skins/content/writer/content.js +9 -9
- package/dist/tinymce/js/tinymce/skins/content/writer/content.min.css +10 -10
- package/dist/tinymce/js/tinymce/skins/ui/oxide/content.inline.js +9 -9
- package/dist/tinymce/js/tinymce/skins/ui/oxide/content.inline.min.css +10 -10
- package/dist/tinymce/js/tinymce/skins/ui/oxide/content.js +9 -9
- package/dist/tinymce/js/tinymce/skins/ui/oxide/content.min.css +10 -10
- package/dist/tinymce/js/tinymce/skins/ui/oxide/skin.min.css +1 -1
- package/dist/tinymce/js/tinymce/skins/ui/oxide/skin.shadowdom.min.css +1 -1
- package/dist/tinymce/js/tinymce/skins/ui/oxide-dark/content.inline.js +9 -9
- package/dist/tinymce/js/tinymce/skins/ui/oxide-dark/content.inline.min.css +10 -10
- package/dist/tinymce/js/tinymce/skins/ui/oxide-dark/content.js +9 -9
- package/dist/tinymce/js/tinymce/skins/ui/oxide-dark/content.min.css +10 -10
- package/dist/tinymce/js/tinymce/skins/ui/oxide-dark/skin.min.css +1 -1
- package/dist/tinymce/js/tinymce/skins/ui/oxide-dark/skin.shadowdom.min.css +1 -1
- package/dist/tinymce/js/tinymce/skins/ui/tinymce-5/content.inline.js +9 -9
- package/dist/tinymce/js/tinymce/skins/ui/tinymce-5/content.inline.min.css +10 -10
- package/dist/tinymce/js/tinymce/skins/ui/tinymce-5/content.js +9 -9
- package/dist/tinymce/js/tinymce/skins/ui/tinymce-5/content.min.css +10 -10
- package/dist/tinymce/js/tinymce/skins/ui/tinymce-5/skin.min.css +1 -1
- package/dist/tinymce/js/tinymce/skins/ui/tinymce-5/skin.shadowdom.min.css +1 -1
- package/dist/tinymce/js/tinymce/skins/ui/tinymce-5-dark/content.inline.js +9 -9
- package/dist/tinymce/js/tinymce/skins/ui/tinymce-5-dark/content.inline.min.css +10 -10
- package/dist/tinymce/js/tinymce/skins/ui/tinymce-5-dark/content.js +9 -9
- package/dist/tinymce/js/tinymce/skins/ui/tinymce-5-dark/content.min.css +10 -10
- package/dist/tinymce/js/tinymce/skins/ui/tinymce-5-dark/skin.min.css +1 -1
- package/dist/tinymce/js/tinymce/skins/ui/tinymce-5-dark/skin.shadowdom.min.css +1 -1
- package/dist/tinymce/js/tinymce/tinymce.d.ts +3350 -3350
- package/dist/tinymce/js/tinymce/tinymce.min.js +10 -10
- package/dist/types-external/table.d.ts +15 -15
- package/package.json +132 -131
|
@@ -2,12 +2,39 @@ import { ReactNode } from 'react';
|
|
|
2
2
|
import { IBorderRadius } from '../../../config/components/borderRadius';
|
|
3
3
|
import { Itypography } from '../../../config/components/typography';
|
|
4
4
|
import { TFont } from '../../../config/components/font';
|
|
5
|
-
|
|
5
|
+
/**
|
|
6
|
+
* [ID] : Interface untuk komponen Badges.
|
|
7
|
+
* [EN] : Interface for Badges component.
|
|
8
|
+
*/
|
|
6
9
|
export interface IBadges extends React.HTMLAttributes<HTMLSpanElement> {
|
|
10
|
+
/**
|
|
11
|
+
* [ID] : Konten anak di dalam badge.
|
|
12
|
+
* [EN] : Child content inside the badge.
|
|
13
|
+
*/
|
|
7
14
|
children: ReactNode | ReactNode[];
|
|
15
|
+
/**
|
|
16
|
+
* [ID] : Nama kelas CSS tambahan (opsional).
|
|
17
|
+
* [EN] : Additional CSS class name (optional).
|
|
18
|
+
*/
|
|
8
19
|
className?: string | undefined;
|
|
20
|
+
/**
|
|
21
|
+
* [ID] : Konfigurasi radius sudut badge (opsional).
|
|
22
|
+
* [EN] : Badge border radius configuration (optional).
|
|
23
|
+
*/
|
|
9
24
|
rounded?: IBorderRadius;
|
|
25
|
+
/**
|
|
26
|
+
* [ID] : Varian gaya badge (opsional).
|
|
27
|
+
* [EN] : Badge style variant (optional).
|
|
28
|
+
*/
|
|
10
29
|
variants?: 'filled-gray-600' | 'filled-green-600' | 'filled-green-50' | 'filled-blue-gray-50' | 'filled-red-500' | 'filled-blue-600' | 'filled-amber-800' | 'filled-pink-600' | 'filled-lime-700' | 'filled-lime-900-bg_lime-100' | 'filled-red-900' | 'filled-laba-green-10' | 'filled-cyan-800-bg_cyan-100' | 'ghost-gray-200' | 'ghost-green-100' | 'ghost-red-100' | 'ghost-blue-100' | 'ghost-amber-100' | 'ghost-laba-orange-01' | 'ghost-laba-green-01' | 'ghost-laba-green-02' | 'ghost-laba-blue-02' | 'ghost-laba-blue-01' | 'ghost-laba-grey-05' | 'ghost-laba-red-01' | 'outline-gray-600' | 'outline-green-600' | 'outline-red-500' | 'outline-blue-600' | 'outline-amber-800' | 'outline-laba-blue-01' | 'outline-laba-orange-06' | 'outline-laba-orange-06-bg_laba-orange-01' | 'outline-laba-red-06' | 'outline-laba-green-06';
|
|
30
|
+
/**
|
|
31
|
+
* [ID] : Konfigurasi font (opsional).
|
|
32
|
+
* [EN] : Font configuration (optional).
|
|
33
|
+
*/
|
|
11
34
|
fonts?: TFont;
|
|
35
|
+
/**
|
|
36
|
+
* [ID] : Konfigurasi tipografi (opsional).
|
|
37
|
+
* [EN] : Typography configuration (optional).
|
|
38
|
+
*/
|
|
12
39
|
typography?: Itypography;
|
|
13
40
|
}
|
|
@@ -1,23 +1,101 @@
|
|
|
1
1
|
import { ReactNode, ElementType, HTMLAttributes } from 'react';
|
|
2
2
|
import { IGap } from '../../../config/components/gap';
|
|
3
3
|
import { TFont } from '../../../config/components/font';
|
|
4
|
-
|
|
4
|
+
/**
|
|
5
|
+
* [ID] : Interface untuk komponen Breadcrumbs.
|
|
6
|
+
* [EN] : Interface for Breadcrumbs component.
|
|
7
|
+
* @template T - [ID] : Tipe elemen HTML. [EN] : HTML element type.
|
|
8
|
+
*/
|
|
5
9
|
export interface IBreadcrumbs<T extends ElementType> extends HTMLAttributes<HTMLDivElement> {
|
|
10
|
+
/**
|
|
11
|
+
* [ID] : Elemen HTML yang akan dirender (opsional).
|
|
12
|
+
* [EN] : HTML element to be rendered (optional).
|
|
13
|
+
*/
|
|
6
14
|
as?: T;
|
|
15
|
+
/**
|
|
16
|
+
* [ID] : Konfigurasi font (opsional).
|
|
17
|
+
* [EN] : Font configuration (optional).
|
|
18
|
+
*/
|
|
7
19
|
fonts?: TFont;
|
|
20
|
+
/**
|
|
21
|
+
* [ID] : Varian gaya breadcrumbs (opsional).
|
|
22
|
+
* [EN] : Breadcrumbs style variant (optional).
|
|
23
|
+
*/
|
|
8
24
|
variants?: 'laba-blue-10' | 'blue-700' | 'bill-secondary-800';
|
|
25
|
+
/**
|
|
26
|
+
* [ID] : Daftar URL untuk setiap breadcrumb.
|
|
27
|
+
* [EN] : List of URLs for each breadcrumb.
|
|
28
|
+
*/
|
|
9
29
|
urls: string[];
|
|
30
|
+
/**
|
|
31
|
+
* [ID] : Teks label untuk setiap breadcrumb.
|
|
32
|
+
* [EN] : Label text for each breadcrumb.
|
|
33
|
+
*/
|
|
10
34
|
textBreadcrumbs: string[];
|
|
35
|
+
/**
|
|
36
|
+
* [ID] : Handler klik untuk setiap breadcrumb (opsional).
|
|
37
|
+
* [EN] : Click handler for each breadcrumb (optional).
|
|
38
|
+
*/
|
|
11
39
|
onClickBreadcrumbs?: (() => void | undefined)[];
|
|
40
|
+
/**
|
|
41
|
+
* [ID] : Handler klik untuk aksi tambahan (opsional).
|
|
42
|
+
* [EN] : Click handler for additional action (optional).
|
|
43
|
+
*/
|
|
12
44
|
onClickAction?: () => void;
|
|
45
|
+
/**
|
|
46
|
+
* [ID] : Handler klik global untuk URL (opsional).
|
|
47
|
+
* [EN] : Global click handler for URLs (optional).
|
|
48
|
+
* @param url - [ID] : URL yang diklik. [EN] : Clicked URL.
|
|
49
|
+
*/
|
|
13
50
|
onClickUrls?: (url: string) => void;
|
|
51
|
+
/**
|
|
52
|
+
* [ID] : Jarak untuk elemen aksi (opsional).
|
|
53
|
+
* [EN] : Gap for action element (optional).
|
|
54
|
+
*/
|
|
14
55
|
gapAction?: IGap;
|
|
56
|
+
/**
|
|
57
|
+
* [ID] : Jarak antar URL (opsional).
|
|
58
|
+
* [EN] : Gap between URLs (optional).
|
|
59
|
+
*/
|
|
15
60
|
gapUrls?: IGap;
|
|
61
|
+
/**
|
|
62
|
+
* [ID] : Teks untuk tombol aksi (opsional).
|
|
63
|
+
* [EN] : Text for action button (optional).
|
|
64
|
+
*/
|
|
16
65
|
textAction?: string;
|
|
66
|
+
/**
|
|
67
|
+
* [ID] : Ikon untuk tombol aksi (opsional).
|
|
68
|
+
* [EN] : Icon for action button (optional).
|
|
69
|
+
*/
|
|
17
70
|
iconAction?: ReactNode | ReactNode[];
|
|
71
|
+
/**
|
|
72
|
+
* [ID] : Pemisah antar breadcrumb (opsional).
|
|
73
|
+
* [EN] : Separator between breadcrumbs (optional).
|
|
74
|
+
*/
|
|
18
75
|
separator?: ReactNode | ReactNode[] | string;
|
|
76
|
+
/**
|
|
77
|
+
* [ID] : Fungsi untuk menghasilkan properti link kustom (opsional).
|
|
78
|
+
* [EN] : Function to generate custom link properties (optional).
|
|
79
|
+
* @param value - [ID] : Nilai teks breadcrumb. [EN] : Breadcrumb text value.
|
|
80
|
+
* @param index - [ID] : Indeks breadcrumb. [EN] : Breadcrumb index.
|
|
81
|
+
* @param urls - [ID] : Array semua URL. [EN] : Array of all URLs.
|
|
82
|
+
* @returns [ID] : Objek properti. [EN] : Property object.
|
|
83
|
+
*/
|
|
19
84
|
propsLink?: (value: string, index: number, urls: string[]) => object;
|
|
85
|
+
/**
|
|
86
|
+
* [ID] : Nama kelas CSS untuk elemen aksi (opsional).
|
|
87
|
+
* [EN] : CSS class name for action element (optional).
|
|
88
|
+
*/
|
|
20
89
|
classNameAction?: string;
|
|
90
|
+
/**
|
|
91
|
+
* [ID] : Nama kelas CSS untuk URL (opsional).
|
|
92
|
+
* [EN] : CSS class name for URL (optional).
|
|
93
|
+
*/
|
|
21
94
|
classNameUrl?: string;
|
|
95
|
+
/**
|
|
96
|
+
* [ID] : Fungsi render kustom untuk aksi (opsional).
|
|
97
|
+
* [EN] : Custom render function for action (optional).
|
|
98
|
+
* @returns [ID] : Elemen React. [EN] : React element.
|
|
99
|
+
*/
|
|
22
100
|
renderAction?: () => ReactNode | ReactNode[];
|
|
23
101
|
}
|
|
@@ -1,14 +1,57 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
|
-
|
|
2
|
+
/**
|
|
3
|
+
* [ID] : Tipe varian tombol yang tersedia.
|
|
4
|
+
* [EN] : Available button variant types.
|
|
5
|
+
*/
|
|
3
6
|
export type TButtonVariants = 'primary-laba-blue-10' | 'primary-red-700-dsb_laba-grey-06' | 'primary-green-700' | 'ghost-laba-blue-10' | 'ghost-red-700' | 'ghost-green-700' | 'ghost-blue-gray-100-bg_white' | 'ghost-laba-green-10' | 'ghost-blue-gray-100-bg_white-text_blue-gray-400' | 'ghost-laba-blue-05' | 'nude-laba-blue-10' | 'nude-red-700' | 'nude-green-700' | 'nude-gray-500' | 'nude-laba-red-10' | 'nude-laba-red-08' | 'nude-laba-red-05' | 'primary-blue-700' | 'primary-red-700' | 'secondary-blue-700' | 'secondary-red-600' | 'secondary-green-600' | 'tertiary-blue-700' | 'tertiary-red-300' | 'tertiary-red-600' | 'tertiary-gray-500' | 'ghost-laba-blue-01' | 'filled-laba-white_laba-blue-10' | 'filled-laba-white_laba-red-05' | 'secondary-red-700' | 'tertiary-black' | 'primary-bill-primary-600' | 'secondary-bill-secondary-800' | 'tertiary-bill-secondary-800' | 'primary-bill-red-700';
|
|
7
|
+
/**
|
|
8
|
+
* [ID] : Tipe ukuran tombol.
|
|
9
|
+
* [EN] : Button size type.
|
|
10
|
+
*/
|
|
4
11
|
export type TButtonSize = 'large' | 'reguler' | 'small' | 'extra-small' | 'l' | 'm' | 's' | 'xs' | 'bill-l' | 'bill-m' | 'bill-s' | 'bill-xs';
|
|
12
|
+
/**
|
|
13
|
+
* [ID] : Interface untuk komponen Button.
|
|
14
|
+
* [EN] : Interface for Button component.
|
|
15
|
+
*/
|
|
5
16
|
export interface IButton extends React.ButtonHTMLAttributes<HTMLButtonElement> {
|
|
17
|
+
/**
|
|
18
|
+
* [ID] : Ukuran tombol (opsional).
|
|
19
|
+
* [EN] : Button size (optional).
|
|
20
|
+
*/
|
|
6
21
|
size?: TButtonSize;
|
|
22
|
+
/**
|
|
23
|
+
* [ID] : Varian gaya tombol (opsional).
|
|
24
|
+
* [EN] : Button style variant (optional).
|
|
25
|
+
*/
|
|
7
26
|
variants?: TButtonVariants;
|
|
27
|
+
/**
|
|
28
|
+
* [ID] : Ikon di awal tombol (opsional).
|
|
29
|
+
* [EN] : Icon at the start of the button (optional).
|
|
30
|
+
*/
|
|
8
31
|
startIcon?: ReactNode | ReactNode[] | (() => ReactNode) | (() => ReactNode[]);
|
|
32
|
+
/**
|
|
33
|
+
* [ID] : Ikon di akhir tombol (opsional).
|
|
34
|
+
* [EN] : Icon at the end of the button (optional).
|
|
35
|
+
*/
|
|
9
36
|
endIcon?: ReactNode | ReactNode[] | (() => ReactNode) | (() => ReactNode[]);
|
|
37
|
+
/**
|
|
38
|
+
* [ID] : Konten anak di dalam tombol.
|
|
39
|
+
* [EN] : Child content inside the button.
|
|
40
|
+
*/
|
|
10
41
|
children: ReactNode | ReactNode[];
|
|
42
|
+
/**
|
|
43
|
+
* [ID] : Nama kelas CSS tambahan (opsional).
|
|
44
|
+
* [EN] : Additional CSS class name (optional).
|
|
45
|
+
*/
|
|
11
46
|
className?: string | undefined;
|
|
47
|
+
/**
|
|
48
|
+
* [ID] : Menentukan apakah tombol dalam keadaan memuat (opsional).
|
|
49
|
+
* [EN] : Determines if the button is in loading state (optional).
|
|
50
|
+
*/
|
|
12
51
|
loading?: boolean;
|
|
52
|
+
/**
|
|
53
|
+
* [ID] : Nama kelas CSS untuk ikon loading (opsional).
|
|
54
|
+
* [EN] : CSS class name for loading icon (optional).
|
|
55
|
+
*/
|
|
13
56
|
classNameIconLoading?: string | undefined;
|
|
14
57
|
}
|
|
@@ -1,12 +1,47 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
|
-
|
|
2
|
+
/**
|
|
3
|
+
* [ID] : Tipe varian tombol ikon.
|
|
4
|
+
* [EN] : Button icon variant types.
|
|
5
|
+
*/
|
|
3
6
|
export type TButtonIcomVariants = 'primary-laba-blue-10' | 'primary-red-700-dsb_laba-grey-06' | 'primary-green-700' | 'filled-laba-white_laba-blue-10' | 'filled-laba-white_laba-red-05' | 'ghost-laba-blue-10' | 'ghost-red-700' | 'ghost-green-700' | 'ghost-blue-gray-100-bg_white' | 'ghost-laba-green-10' | 'nude-laba-blue-10' | 'nude-red-700' | 'nude-green-700' | 'nude-gray-500' | 'nude-laba-red-10' | 'nude-laba-red-05' | 'primary-blue-700' | 'primary-red-700' | 'secondary-blue-700' | 'secondary-red-600' | 'secondary-green-600' | 'tertiary-blue-700' | 'tertiary-red-300' | 'tertiary-red-600' | 'tertiary-gray-500' | 'secondary-red-700';
|
|
7
|
+
/**
|
|
8
|
+
* [ID] : Tipe ukuran tombol ikon.
|
|
9
|
+
* [EN] : Button icon size type.
|
|
10
|
+
*/
|
|
4
11
|
export type TButtonIconSize = 'large' | 'reguler' | 'small' | 'extra-small' | 'l' | 'm' | 's' | 'xs';
|
|
12
|
+
/**
|
|
13
|
+
* [ID] : Interface untuk komponen ButtonIcon.
|
|
14
|
+
* [EN] : Interface for ButtonIcon component.
|
|
15
|
+
*/
|
|
5
16
|
export interface IButtonIcon extends React.ButtonHTMLAttributes<HTMLButtonElement> {
|
|
17
|
+
/**
|
|
18
|
+
* [ID] : Ukuran tombol (opsional).
|
|
19
|
+
* [EN] : Button size (optional).
|
|
20
|
+
*/
|
|
6
21
|
size?: TButtonIconSize;
|
|
22
|
+
/**
|
|
23
|
+
* [ID] : Varian gaya tombol (opsional).
|
|
24
|
+
* [EN] : Button style variant (optional).
|
|
25
|
+
*/
|
|
7
26
|
variants?: TButtonIcomVariants;
|
|
27
|
+
/**
|
|
28
|
+
* [ID] : Konten anak (biasanya ikon).
|
|
29
|
+
* [EN] : Child content (usually icon).
|
|
30
|
+
*/
|
|
8
31
|
children: ReactNode | ReactNode[];
|
|
32
|
+
/**
|
|
33
|
+
* [ID] : Nama kelas CSS tambahan (opsional).
|
|
34
|
+
* [EN] : Additional CSS class name (optional).
|
|
35
|
+
*/
|
|
9
36
|
className?: string | undefined;
|
|
37
|
+
/**
|
|
38
|
+
* [ID] : Menentukan apakah tombol dalam keadaan memuat (opsional).
|
|
39
|
+
* [EN] : Determines if the button is in loading state (optional).
|
|
40
|
+
*/
|
|
10
41
|
loading?: boolean;
|
|
42
|
+
/**
|
|
43
|
+
* [ID] : Nama kelas CSS untuk ikon loading (opsional).
|
|
44
|
+
* [EN] : CSS class name for loading icon (optional).
|
|
45
|
+
*/
|
|
11
46
|
classNameIconLoading?: string | undefined;
|
|
12
47
|
}
|
|
@@ -1,24 +1,101 @@
|
|
|
1
1
|
import { OffsetOptions, UseFloatingOptions } from '@floating-ui/react';
|
|
2
2
|
import { IPopover } from '../Popover';
|
|
3
3
|
import { IButton } from '../Button';
|
|
4
|
-
|
|
4
|
+
/**
|
|
5
|
+
* [ID] : Interface untuk komponen ButtonPopover.
|
|
6
|
+
* [EN] : Interface for ButtonPopover component.
|
|
7
|
+
*/
|
|
5
8
|
export interface IButtonPopover extends IButton {
|
|
9
|
+
/**
|
|
10
|
+
* [ID] : Teks tombol (opsional).
|
|
11
|
+
* [EN] : Button text (optional).
|
|
12
|
+
*/
|
|
6
13
|
text?: string;
|
|
14
|
+
/**
|
|
15
|
+
* [ID] : Ikon yang ditampilkan di awal (opsional).
|
|
16
|
+
* [EN] : Icon shown at the start (optional).
|
|
17
|
+
*/
|
|
7
18
|
startIconShow?: React.ReactNode | React.ReactNode[];
|
|
19
|
+
/**
|
|
20
|
+
* [ID] : Ikon yang ditampilkan di akhir (opsional).
|
|
21
|
+
* [EN] : Icon shown at the end (optional).
|
|
22
|
+
*/
|
|
8
23
|
endIconShow?: React.ReactNode | React.ReactNode[];
|
|
24
|
+
/**
|
|
25
|
+
* [ID] : ID untuk popover (opsional).
|
|
26
|
+
* [EN] : ID for popover (optional).
|
|
27
|
+
*/
|
|
9
28
|
idPopover?: string;
|
|
29
|
+
/**
|
|
30
|
+
* [ID] : Nama kelas CSS untuk tombol (opsional).
|
|
31
|
+
* [EN] : CSS class name for button (optional).
|
|
32
|
+
*/
|
|
10
33
|
classNameButton?: string;
|
|
34
|
+
/**
|
|
35
|
+
* [ID] : Z-index untuk popover (opsional).
|
|
36
|
+
* [EN] : Z-index for popover (optional).
|
|
37
|
+
*/
|
|
11
38
|
zIndexPopover?: number;
|
|
39
|
+
/**
|
|
40
|
+
* [ID] : Opsi offset untuk posisi popover (opsional).
|
|
41
|
+
* [EN] : Offset options for popover position (optional).
|
|
42
|
+
*/
|
|
12
43
|
offset?: OffsetOptions;
|
|
44
|
+
/**
|
|
45
|
+
* [ID] : Properti tambahan untuk popover (opsional).
|
|
46
|
+
* [EN] : Additional properties for popover (optional).
|
|
47
|
+
*/
|
|
13
48
|
popoverProps?: Omit<IPopover, 'children'>;
|
|
49
|
+
/**
|
|
50
|
+
* [ID] : Penempatan popover (opsional).
|
|
51
|
+
* [EN] : Popover placement (optional).
|
|
52
|
+
*/
|
|
14
53
|
placement?: UseFloatingOptions['placement'];
|
|
54
|
+
/**
|
|
55
|
+
* [ID] : Handler saat popover ditutup (opsional).
|
|
56
|
+
* [EN] : Handler when popover is closed (optional).
|
|
57
|
+
*/
|
|
15
58
|
onClose?: () => void;
|
|
59
|
+
/**
|
|
60
|
+
* [ID] : Nama kelas CSS saat tombol aktif/ditampilkan (opsional).
|
|
61
|
+
* [EN] : CSS class name when button is active/shown (optional).
|
|
62
|
+
*/
|
|
16
63
|
classNameButtonShow?: string;
|
|
17
64
|
}
|
|
65
|
+
/**
|
|
66
|
+
* [ID] : Interface untuk referensi ButtonPopover.
|
|
67
|
+
* [EN] : Interface for ButtonPopover reference.
|
|
68
|
+
*/
|
|
18
69
|
export interface IRefButtonPopover {
|
|
70
|
+
/**
|
|
71
|
+
* [ID] : Status visibilitas popover.
|
|
72
|
+
* [EN] : Popover visibility status.
|
|
73
|
+
*/
|
|
19
74
|
show: boolean;
|
|
75
|
+
/**
|
|
76
|
+
* [ID] : Fungsi untuk mengatur visibilitas popover.
|
|
77
|
+
* [EN] : Function to set popover visibility.
|
|
78
|
+
* @param e - [ID] : Status visibilitas baru. [EN] : New visibility status.
|
|
79
|
+
*/
|
|
20
80
|
setShow: (e: boolean) => void;
|
|
81
|
+
/**
|
|
82
|
+
* [ID] : Handler untuk menampilkan popover.
|
|
83
|
+
* [EN] : Handler to show popover.
|
|
84
|
+
* @param e - [ID] : Event mouse. [EN] : Mouse event.
|
|
85
|
+
*/
|
|
21
86
|
handlerShow: (e: React.MouseEvent<HTMLButtonElement, MouseEvent>) => void;
|
|
87
|
+
/**
|
|
88
|
+
* [ID] : Handler untuk menutup popover.
|
|
89
|
+
* [EN] : Handler to close popover.
|
|
90
|
+
*/
|
|
22
91
|
handlerClose: () => void;
|
|
23
92
|
}
|
|
93
|
+
/**
|
|
94
|
+
* [ID] : Tipe fungsi untuk mendapatkan ikon tombol popover.
|
|
95
|
+
* [EN] : Function type to get popover button icon.
|
|
96
|
+
* @param isShow - [ID] : Status apakah popover ditampilkan. [EN] : Status if popover is shown.
|
|
97
|
+
* @param iconShow - [ID] : Ikon saat ditampilkan. [EN] : Icon when shown.
|
|
98
|
+
* @param iconClose - [ID] : Ikon saat ditutup. [EN] : Icon when closed.
|
|
99
|
+
* @returns [ID] : Ikon yang sesuai. [EN] : Corresponding icon.
|
|
100
|
+
*/
|
|
24
101
|
export type TGetIconButtonPopover = (isShow: boolean, iconShow?: React.ReactNode | React.ReactNode[], iconClose?: IButton['startIcon'] | IButton['endIcon']) => IButton['startIcon'] | IButton['endIcon'];
|