1mpacto-react-ui 2.0.16 → 2.0.18
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/style.css +1 -1
- package/dist/components/Alert/index.cjs +1 -0
- package/dist/components/Alert/index.mjs +220 -0
- package/dist/components/Alert/style.module.scss.cjs +1 -0
- package/dist/components/Alert/style.module.scss.mjs +14 -0
- package/dist/components/Badges/Badges.cjs +2 -0
- package/dist/components/Badges/Badges.config.cjs +1 -0
- package/dist/components/Badges/Badges.config.mjs +47 -0
- package/dist/components/Badges/Badges.mjs +29 -0
- package/dist/components/Badges/style.module.scss.cjs +1 -0
- package/dist/components/Badges/style.module.scss.mjs +40 -0
- package/dist/components/Breadcrumbs/Breadcrumbs.cjs +3 -0
- package/dist/components/Breadcrumbs/Breadcrumbs.config.cjs +1 -0
- package/dist/components/Breadcrumbs/Breadcrumbs.config.mjs +16 -0
- package/dist/components/Breadcrumbs/Breadcrumbs.mjs +67 -0
- package/dist/components/Breadcrumbs/style.module.scss.cjs +1 -0
- package/dist/components/Breadcrumbs/style.module.scss.mjs +16 -0
- package/dist/components/Button/Button.cjs +12 -0
- package/dist/components/Button/Button.config.cjs +1 -0
- package/dist/components/Button/Button.config.mjs +75 -0
- package/dist/components/Button/Button.mjs +75 -0
- package/dist/components/Button/style.module.scss.cjs +1 -0
- package/dist/components/Button/style.module.scss.mjs +58 -0
- package/dist/components/ButtonIcon/ButtonIcon.cjs +12 -0
- package/dist/components/ButtonIcon/ButtonIcon.config.cjs +1 -0
- package/dist/components/ButtonIcon/ButtonIcon.config.mjs +68 -0
- package/dist/components/ButtonIcon/ButtonIcon.mjs +65 -0
- package/dist/components/ButtonIcon/style.module.scss.cjs +1 -0
- package/dist/components/ButtonIcon/style.module.scss.mjs +51 -0
- package/dist/components/ButtonPopover/ButtonPopover.cjs +1 -0
- package/dist/components/ButtonPopover/ButtonPopover.mjs +84 -0
- package/dist/components/ButtonPopover/style.module.scss.cjs +1 -0
- package/dist/components/ButtonPopover/style.module.scss.mjs +10 -0
- package/dist/components/Calendar/Calendar.cjs +1 -0
- package/dist/components/Calendar/Calendar.mjs +199 -0
- package/dist/components/Calendar/CalendarButton.cjs +1 -0
- package/dist/components/Calendar/CalendarButton.mjs +18 -0
- package/dist/components/Calendar/CalendarCell.cjs +1 -0
- package/dist/components/Calendar/CalendarCell.mjs +26 -0
- package/dist/components/Calendar/CalendarMonth.cjs +1 -0
- package/dist/components/Calendar/CalendarMonth.mjs +74 -0
- package/dist/components/Calendar/CalendarRange.cjs +1 -0
- package/dist/components/Calendar/CalendarRange.mjs +140 -0
- package/dist/components/Calendar/CalendarYear.cjs +3 -0
- package/dist/components/Calendar/CalendarYear.mjs +74 -0
- package/dist/components/Calendar/style.module.scss.cjs +1 -0
- package/dist/components/Calendar/style.module.scss.mjs +36 -0
- package/dist/components/Chart/DoughnutChart.cjs +1 -0
- package/dist/components/Chart/DoughnutChart.mjs +173 -0
- package/dist/components/Chart/GradientBarChart.cjs +1 -0
- package/dist/components/Chart/GradientBarChart.mjs +157 -0
- package/dist/components/Chart/GradientLineChart.cjs +1 -0
- package/dist/components/Chart/GradientLineChart.mjs +143 -0
- package/dist/components/Chart/LineChart.cjs +1 -0
- package/dist/components/Chart/LineChart.mjs +158 -0
- package/dist/components/Chips/Chips.cjs +3 -0
- package/dist/components/Chips/Chips.config.cjs +1 -0
- package/dist/components/Chips/Chips.config.mjs +35 -0
- package/dist/components/Chips/Chips.mjs +37 -0
- package/dist/components/Chips/style.module.scss.cjs +1 -0
- package/dist/components/Chips/style.module.scss.mjs +14 -0
- package/dist/components/Collapse/Collapse.cjs +1 -0
- package/dist/components/Collapse/Collapse.mjs +35 -0
- package/dist/components/Collapse/CollapseV2.cjs +1 -0
- package/dist/components/Collapse/CollapseV2.mjs +30 -0
- package/dist/components/Collapse/style.module.scss.cjs +1 -0
- package/dist/components/Collapse/style.module.scss.mjs +7 -0
- package/dist/components/DatePicker/DatePicker.cjs +1 -0
- package/dist/components/DatePicker/DatePicker.mjs +125 -0
- package/dist/components/DatePicker/DateRangePicker.cjs +1 -0
- package/dist/components/DatePicker/DateRangePicker.mjs +112 -0
- package/dist/components/DatePicker/FilterDate.cjs +1 -0
- package/dist/components/DatePicker/FilterDate.mjs +248 -0
- package/dist/components/DatePicker/MonthYearPicker.cjs +1 -0
- package/dist/components/DatePicker/MonthYearPicker.mjs +83 -0
- package/dist/components/ErrorMessage/ErrorMessage.cjs +1 -0
- package/dist/components/ErrorMessage/ErrorMessage.config.cjs +1 -0
- package/dist/components/ErrorMessage/ErrorMessage.config.mjs +11 -0
- package/dist/components/ErrorMessage/ErrorMessage.mjs +6 -0
- package/dist/components/ErrorMessage/style.module.scss.cjs +1 -0
- package/dist/components/ErrorMessage/style.module.scss.mjs +8 -0
- package/dist/components/FilterContainer/FilterContainer.cjs +1 -0
- package/dist/components/FilterContainer/FilterContainer.mjs +63 -0
- package/dist/components/Input/InputFloatingInner.cjs +5 -0
- package/dist/components/Input/InputFloatingInner.config.cjs +1 -0
- package/dist/components/Input/InputFloatingInner.config.mjs +11 -0
- package/dist/components/Input/InputFloatingInner.mjs +65 -0
- package/dist/components/Input/InputFloatingInner.module.scss.cjs +1 -0
- package/dist/components/Input/InputFloatingInner.module.scss.mjs +20 -0
- package/dist/components/Input/InputInnerLabel.cjs +6 -0
- package/dist/components/Input/InputInnerLabel.config.cjs +1 -0
- package/dist/components/Input/InputInnerLabel.config.mjs +10 -0
- package/dist/components/Input/InputInnerLabel.mjs +78 -0
- package/dist/components/Input/InputInnerLabel.module.scss.cjs +1 -0
- package/dist/components/Input/InputInnerLabel.module.scss.mjs +20 -0
- package/dist/components/Input/InputNative.cjs +5 -0
- package/dist/components/Input/InputNative.config.cjs +1 -0
- package/dist/components/Input/InputNative.config.mjs +11 -0
- package/dist/components/Input/InputNative.mjs +58 -0
- package/dist/components/Input/InputNative.module.scss.cjs +1 -0
- package/dist/components/Input/InputNative.module.scss.mjs +18 -0
- package/dist/components/Input/InputReguler.cjs +5 -0
- package/dist/components/Input/InputReguler.config.cjs +1 -0
- package/dist/components/Input/InputReguler.config.mjs +11 -0
- package/dist/components/Input/InputReguler.mjs +79 -0
- package/dist/components/Input/InputReguler.module.scss.cjs +1 -0
- package/dist/components/Input/InputReguler.module.scss.mjs +24 -0
- package/dist/components/Modal/ModalDialog.cjs +1 -0
- package/dist/components/Modal/ModalDialog.config.cjs +1 -0
- package/dist/components/Modal/ModalDialog.config.mjs +12 -0
- package/dist/components/Modal/ModalDialog.mjs +44 -0
- package/dist/components/Modal/style.module.scss.cjs +1 -0
- package/dist/components/Modal/style.module.scss.mjs +14 -0
- package/dist/components/NumberFormat/NumberFormat.cjs +1 -0
- package/dist/components/NumberFormat/NumberFormat.mjs +33 -0
- package/dist/components/Pagination/Pagination.cjs +2 -0
- package/dist/components/Pagination/Pagination.config.cjs +1 -0
- package/dist/components/Pagination/Pagination.config.mjs +25 -0
- package/dist/components/Pagination/Pagination.mjs +231 -0
- package/dist/components/Pagination/style.module.scss.cjs +1 -0
- package/dist/components/Pagination/style.module.scss.mjs +20 -0
- package/dist/components/Popover/Popover.cjs +1 -0
- package/dist/components/Popover/Popover.mjs +78 -0
- package/dist/components/Popover/style.module.scss.cjs +1 -0
- package/dist/components/Popover/style.module.scss.mjs +7 -0
- package/dist/components/PortalComponent/PortalComponent.cjs +1 -0
- package/dist/components/PortalComponent/PortalComponent.mjs +18 -0
- package/dist/components/RadioCheckbox/CheckboxTable.cjs +1 -0
- package/dist/components/RadioCheckbox/CheckboxTable.mjs +27 -0
- package/dist/components/RadioCheckbox/RadioCheckbox.cjs +3 -0
- package/dist/components/RadioCheckbox/RadioCheckbox.config.cjs +1 -0
- package/dist/components/RadioCheckbox/RadioCheckbox.config.mjs +31 -0
- package/dist/components/RadioCheckbox/RadioCheckbox.mjs +84 -0
- package/dist/components/RadioCheckbox/RadioCheckbox.module.scss.cjs +1 -0
- package/dist/components/RadioCheckbox/RadioCheckbox.module.scss.mjs +26 -0
- package/dist/components/RadioCheckbox/RadioCheckboxLabel.cjs +4 -0
- package/dist/components/RadioCheckbox/RadioCheckboxLabel.config.cjs +1 -0
- package/dist/components/RadioCheckbox/RadioCheckboxLabel.config.mjs +20 -0
- package/dist/components/RadioCheckbox/RadioCheckboxLabel.mjs +55 -0
- package/dist/components/RadioCheckbox/RadioCheckboxLabel.module.scss.cjs +1 -0
- package/dist/components/RadioCheckbox/RadioCheckboxLabel.module.scss.mjs +19 -0
- package/dist/components/SelectDropdownContainer/SelectDropdownContainer.cjs +1 -0
- package/dist/components/SelectDropdownContainer/SelectDropdownContainer.config.cjs +1 -0
- package/dist/components/SelectDropdownContainer/SelectDropdownContainer.config.mjs +27 -0
- package/dist/components/SelectDropdownContainer/SelectDropdownContainer.mjs +150 -0
- package/dist/components/SelectDropdownContainer/SelectDropdownContainer.module.scss.cjs +1 -0
- package/dist/components/SelectDropdownContainer/SelectDropdownContainer.module.scss.mjs +10 -0
- package/dist/components/SelectDropdownContainer/styleConfig.cjs +1 -0
- package/dist/components/SelectDropdownContainer/styleConfig.mjs +277 -0
- package/dist/components/Sidebar/ItemSidebar.cjs +8 -0
- package/dist/components/Sidebar/ItemSidebar.config.cjs +1 -0
- package/dist/components/Sidebar/ItemSidebar.config.mjs +42 -0
- package/dist/components/Sidebar/ItemSidebar.mjs +122 -0
- package/dist/components/Sidebar/Sidebar.cjs +1 -0
- package/dist/components/Sidebar/Sidebar.config.cjs +1 -0
- package/dist/components/Sidebar/Sidebar.config.mjs +25 -0
- package/dist/components/Sidebar/Sidebar.mjs +136 -0
- package/dist/components/Sidebar/Sidebar.module.scss.cjs +1 -0
- package/dist/components/Sidebar/Sidebar.module.scss.mjs +26 -0
- package/dist/components/Sidebar/itemSidebar.module.scss.cjs +1 -0
- package/dist/components/Sidebar/itemSidebar.module.scss.mjs +31 -0
- package/dist/components/Step/Step.cjs +5 -0
- package/dist/components/Step/Step.mjs +85 -0
- package/dist/components/Step/Step.module.scss.cjs +1 -0
- package/dist/components/Step/Step.module.scss.mjs +17 -0
- package/dist/components/Step/StepIndicator.cjs +4 -0
- package/dist/components/Step/StepIndicator.mjs +65 -0
- package/dist/components/Step/StepIndicator.module.scss.cjs +1 -0
- package/dist/components/Step/StepIndicator.module.scss.mjs +16 -0
- package/dist/components/Switch/Switch.cjs +1 -0
- package/dist/components/Switch/Switch.config.cjs +1 -0
- package/dist/components/Switch/Switch.config.mjs +28 -0
- package/dist/components/Switch/Switch.mjs +53 -0
- package/dist/components/Switch/style.module.scss.cjs +1 -0
- package/dist/components/Switch/style.module.scss.mjs +23 -0
- package/dist/components/TPublish/TPublish.cjs +1 -0
- package/dist/components/TPublish/TPublish.mjs +5 -0
- package/dist/components/Table/Table.cjs +3 -0
- package/dist/components/Table/Table.config.cjs +1 -0
- package/dist/components/Table/Table.config.mjs +69 -0
- package/dist/components/Table/Table.mjs +402 -0
- package/dist/components/Table/Table.module.scss.cjs +1 -0
- package/dist/components/Table/Table.module.scss.mjs +19 -0
- package/dist/components/Table/TableSubMobile.cjs +1 -0
- package/dist/components/Table/TableSubMobile.mjs +37 -0
- package/dist/components/Table/TableSubMobile.module.scss.cjs +1 -0
- package/dist/components/Table/TableSubMobile.module.scss.mjs +6 -0
- package/dist/components/Tabs/TabPanel.cjs +1 -0
- package/dist/components/Tabs/TabPanel.mjs +14 -0
- package/dist/components/Tabs/Tabs.cjs +8 -0
- package/dist/components/Tabs/Tabs.config.cjs +1 -0
- package/dist/components/Tabs/Tabs.config.mjs +33 -0
- package/dist/components/Tabs/Tabs.mjs +112 -0
- package/dist/components/Tabs/style.module.scss.cjs +1 -0
- package/dist/components/Tabs/style.module.scss.mjs +30 -0
- package/dist/components/Text/Text.cjs +5 -0
- package/dist/components/Text/Text.mjs +39 -0
- package/dist/components/TextEditor/TextEditor.cjs +1 -0
- package/dist/components/TextEditor/TextEditor.mjs +9 -0
- package/dist/components/TextEditor/style.module.scss.cjs +1 -0
- package/dist/components/TextEditor/style.module.scss.mjs +7 -0
- package/dist/components/Textarea/Textarea.cjs +7 -0
- package/dist/components/Textarea/Textarea.config.cjs +1 -0
- package/dist/components/Textarea/Textarea.config.mjs +33 -0
- package/dist/components/Textarea/Textarea.mjs +87 -0
- package/dist/components/Textarea/TextareaFloatingInner.cjs +6 -0
- package/dist/components/Textarea/TextareaFloatingInner.config.cjs +1 -0
- package/dist/components/Textarea/TextareaFloatingInner.config.mjs +9 -0
- package/dist/components/Textarea/TextareaFloatingInner.mjs +101 -0
- package/dist/components/Textarea/TextareaFloatingInner.module.scss.cjs +1 -0
- package/dist/components/Textarea/TextareaFloatingInner.module.scss.mjs +17 -0
- package/dist/components/Textarea/TextareaInnerLabel.cjs +6 -0
- package/dist/components/Textarea/TextareaInnerLabel.config.cjs +1 -0
- package/dist/components/Textarea/TextareaInnerLabel.config.mjs +10 -0
- package/dist/components/Textarea/TextareaInnerLabel.mjs +87 -0
- package/dist/components/Textarea/TextareaInnerLabel.module.scss.cjs +1 -0
- package/dist/components/Textarea/TextareaInnerLabel.module.scss.mjs +17 -0
- package/dist/components/Textarea/style.module.scss.cjs +1 -0
- package/dist/components/Textarea/style.module.scss.mjs +25 -0
- package/dist/components/TimeRange/TimeRange.cjs +1 -0
- package/dist/components/TimeRange/TimeRange.mjs +187 -0
- package/dist/components/TimeRange/TimeRange.module.scss.cjs +1 -0
- package/dist/components/TimeRange/TimeRange.module.scss.mjs +23 -0
- package/dist/components/Timeline/Timeline.cjs +1 -0
- package/dist/components/Timeline/Timeline.mjs +12 -0
- package/dist/components/Timeline/style.module.scss.cjs +1 -0
- package/dist/components/Timeline/style.module.scss.mjs +14 -0
- package/dist/components/Tooltip/Tooltip.cjs +1 -0
- package/dist/components/Tooltip/Tooltip.mjs +77 -0
- package/dist/components/Tooltip/Tooltip.module.scss.cjs +1 -0
- package/dist/components/Tooltip/Tooltip.module.scss.mjs +8 -0
- package/dist/components/TruncateComponent/TruncateComponent.cjs +1 -0
- package/dist/components/TruncateComponent/TruncateComponent.mjs +83 -0
- package/dist/components/Upload/UploadFile.cjs +1 -0
- package/dist/components/Upload/UploadFile.mjs +94 -0
- package/dist/components/Upload/UploadFile.module.scss.cjs +1 -0
- package/dist/components/Upload/UploadFile.module.scss.mjs +6 -0
- package/dist/components/Upload/UploadImage.cjs +12 -0
- package/dist/components/Upload/UploadImage.mjs +162 -0
- package/dist/components/Upload/UploadImage.module.scss.cjs +1 -0
- package/dist/components/Upload/UploadImage.module.scss.mjs +14 -0
- package/dist/components/Upload/UploadMultipleFile.cjs +1 -0
- package/dist/components/Upload/UploadMultipleFile.mjs +85 -0
- package/dist/components/Upload/UploadMultipleFile.module.scss.cjs +1 -0
- package/dist/components/Upload/UploadMultipleFile.module.scss.mjs +14 -0
- package/dist/components/Virtualization/ListVirtualization.cjs +1 -0
- package/dist/components/Virtualization/ListVirtualization.mjs +82 -0
- package/dist/components/Virtualization/TableVirtualization.cjs +1 -0
- package/dist/components/Virtualization/TableVirtualization.mjs +84 -0
- package/dist/config/bigNumber/index.cjs +1 -0
- package/dist/config/bigNumber/index.mjs +15 -0
- package/dist/config/components/borderRadius.cjs +1 -0
- package/dist/config/components/borderRadius.mjs +14 -0
- package/dist/config/components/font.cjs +1 -0
- package/dist/config/components/font.mjs +8 -0
- package/dist/config/components/gap.cjs +1 -0
- package/dist/config/components/gap.mjs +110 -0
- package/dist/config/components/tinymce.cjs +28 -0
- package/dist/config/components/tinymce.mjs +81 -0
- package/dist/config/components/typography.cjs +1 -0
- package/dist/config/components/typography.mjs +83 -0
- package/dist/config/resources/index.cjs +1 -0
- package/dist/config/resources/index.mjs +4 -0
- package/dist/config/tailwind/colors.cjs +1 -0
- package/dist/config/tailwind/colors.mjs +291 -0
- package/dist/config/tailwind/nativeScreen.cjs +1 -0
- package/dist/config/tailwind/nativeScreen.mjs +11 -0
- package/dist/config/tailwind/screen.cjs +1 -0
- package/dist/config/tailwind/screen.mjs +11 -0
- package/dist/config/tailwind/typography.cjs +1 -0
- package/dist/config/tailwind/typography.mjs +158 -0
- package/dist/hooks/useAsyncDebounce.cjs +1 -0
- package/dist/hooks/useAsyncDebounce.mjs +21 -0
- package/dist/hooks/useCombinedResizeObserver.cjs +1 -0
- package/dist/hooks/useCombinedResizeObserver.mjs +48 -0
- package/dist/hooks/useCountdown.cjs +1 -0
- package/dist/hooks/useCountdown.mjs +38 -0
- package/dist/hooks/useDeepCompareEffect.cjs +1 -0
- package/dist/hooks/useDeepCompareEffect.mjs +14 -0
- package/dist/hooks/useElementOrWindowMediaQuery.cjs +1 -0
- package/dist/hooks/useElementOrWindowMediaQuery.mjs +23 -0
- package/dist/hooks/useEventListener.cjs +1 -0
- package/dist/hooks/useEventListener.mjs +19 -0
- package/dist/hooks/useMasonry.cjs +1 -0
- package/dist/hooks/useMasonry.mjs +53 -0
- package/dist/hooks/useMergeRefs.cjs +1 -0
- package/dist/hooks/useMergeRefs.mjs +29 -0
- package/dist/hooks/useOtpInput.cjs +1 -0
- package/dist/hooks/useOtpInput.mjs +115 -0
- package/dist/hooks/useStateRef.cjs +1 -0
- package/dist/hooks/useStateRef.mjs +10 -0
- package/dist/index.cjs +1 -247
- package/dist/index.mjs +207 -51684
- package/dist/package.json.cjs +1 -0
- package/dist/package.json.d.ts +3 -2
- package/dist/package.json.mjs +7 -0
- package/dist/public/assets/icons/arrow-narrow-down.svg.cjs +1 -0
- package/dist/public/assets/icons/arrow-narrow-down.svg.mjs +4 -0
- package/dist/src/components/Chart/PieChart.d.ts +3 -0
- package/dist/src/components/Chart/PieChart.stories.d.ts +147 -0
- package/dist/src/interfaces/components/Chart/index.d.ts +203 -0
- package/dist/utils/axiosBigNumber.cjs +1 -0
- package/dist/utils/axiosBigNumber.mjs +32 -0
- package/dist/utils/common.cjs +1 -0
- package/dist/utils/common.mjs +264 -0
- package/dist/utils/cookies.cjs +1 -0
- package/dist/utils/cookies.mjs +48 -0
- package/dist/utils/formatBigNumber.cjs +1 -0
- package/dist/utils/formatBigNumber.mjs +39 -0
- package/dist/utils/yup.cjs +1 -0
- package/dist/utils/yup.mjs +78 -0
- package/package.json +3 -2
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
import { jsxs as j, Fragment as I, jsx as n } from "react/jsx-runtime";
|
|
2
|
+
import m from "react";
|
|
3
|
+
import M from "../Input/InputReguler.mjs";
|
|
4
|
+
import E from "./UploadFile.module.scss.mjs";
|
|
5
|
+
const z = () => /* @__PURE__ */ n("svg", { width: "20", height: "20", viewBox: "0 0 20 20", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ n(
|
|
6
|
+
"path",
|
|
7
|
+
{
|
|
8
|
+
fillRule: "evenodd",
|
|
9
|
+
clipRule: "evenodd",
|
|
10
|
+
d: "M6.19544 6.19126C6.32045 6.06628 6.48999 5.99607 6.66677 5.99607C6.84354 5.99607 7.01308 6.06628 7.1381 6.19126L10.0001 9.05326L12.8621 6.19126C12.9236 6.12758 12.9972 6.0768 13.0785 6.04186C13.1598 6.00692 13.2473 5.98853 13.3358 5.98776C13.4244 5.98699 13.5121 6.00386 13.5941 6.03738C13.676 6.0709 13.7504 6.1204 13.813 6.18299C13.8756 6.24559 13.9251 6.32002 13.9587 6.40195C13.9922 6.48389 14.009 6.57167 14.0083 6.66019C14.0075 6.74871 13.9891 6.83619 13.9542 6.91753C13.9192 6.99886 13.8684 7.07243 13.8048 7.13392L10.9428 9.99592L13.8048 12.8579C13.9262 12.9837 13.9934 13.1521 13.9919 13.3269C13.9904 13.5017 13.9203 13.6689 13.7966 13.7925C13.673 13.9161 13.5058 13.9862 13.331 13.9877C13.1562 13.9892 12.9878 13.922 12.8621 13.8006L10.0001 10.9386L7.1381 13.8006C7.01237 13.922 6.84397 13.9892 6.66917 13.9877C6.49437 13.9862 6.32716 13.9161 6.20356 13.7925C6.07995 13.6689 6.00984 13.5017 6.00832 13.3269C6.0068 13.1521 6.074 12.9837 6.19544 12.8579L9.05744 9.99592L6.19544 7.13392C6.07045 7.00891 6.00024 6.83937 6.00024 6.66259C6.00024 6.48581 6.07045 6.31628 6.19544 6.19126Z",
|
|
11
|
+
fill: "#212121"
|
|
12
|
+
}
|
|
13
|
+
) }), D = () => /* @__PURE__ */ n("svg", { xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", viewBox: "0 0 16 16", fill: "none", children: /* @__PURE__ */ n(
|
|
14
|
+
"path",
|
|
15
|
+
{
|
|
16
|
+
d: "M2 11.3334V4.66671C2 4.31309 2.14048 3.97395 2.39052 3.7239C2.64057 3.47385 2.97971 3.33337 3.33333 3.33337H7.33333L8.66667 4.66671H12.6667C13.0203 4.66671 13.3594 4.80718 13.6095 5.05723C13.8595 5.30728 14 5.64642 14 6.00004V11.3334C14 11.687 13.8595 12.0261 13.6095 12.2762C13.3594 12.5262 13.0203 12.6667 12.6667 12.6667H3.33333C2.97971 12.6667 2.64057 12.5262 2.39052 12.2762C2.14048 12.0261 2 11.687 2 11.3334Z",
|
|
17
|
+
stroke: "#9E9E9E",
|
|
18
|
+
strokeWidth: "2",
|
|
19
|
+
strokeLinecap: "round",
|
|
20
|
+
strokeLinejoin: "round"
|
|
21
|
+
}
|
|
22
|
+
) }), H = (d) => {
|
|
23
|
+
const r = m.useRef(null), {
|
|
24
|
+
fileName: s,
|
|
25
|
+
onChange: u,
|
|
26
|
+
maxFile: g,
|
|
27
|
+
maxSize: a = 2,
|
|
28
|
+
validateFile: c,
|
|
29
|
+
error: C,
|
|
30
|
+
label: k,
|
|
31
|
+
inputProps: f,
|
|
32
|
+
priorityError: v = "external",
|
|
33
|
+
eventError: o
|
|
34
|
+
} = d, i = c || ["image/png", "image/jpeg", "image/jpg"], [h, w] = m.useState(""), x = {
|
|
35
|
+
internal: h || C,
|
|
36
|
+
external: C || h
|
|
37
|
+
}, L = (e) => {
|
|
38
|
+
if (e != null && e.length) {
|
|
39
|
+
const t = e[0], F = t.size / 1024 / 1024;
|
|
40
|
+
let l = "";
|
|
41
|
+
if (i.some((b) => {
|
|
42
|
+
var p;
|
|
43
|
+
return (p = e[0].type) == null ? void 0 : p.includes(b);
|
|
44
|
+
}) ? F > a ? l = `${e.length > 1 ? "Jumlah u" : "U"}kuran berkas tidak boleh melebihi ${a}MB.` : u(t) : l = "Berkas tidak didukung, silahkan pilih file kembali.", w(l), o == null || o(l), !(r != null && r.current)) return;
|
|
45
|
+
r.current.value = "";
|
|
46
|
+
}
|
|
47
|
+
}, y = (e) => {
|
|
48
|
+
var t;
|
|
49
|
+
e.preventDefault(), r != null && r.current && ((t = r.current) == null || t.click());
|
|
50
|
+
}, B = (e) => {
|
|
51
|
+
e.preventDefault(), r != null && r.current && (u(null), r.current.value = "");
|
|
52
|
+
};
|
|
53
|
+
return /* @__PURE__ */ j(I, { children: [
|
|
54
|
+
/* @__PURE__ */ n(
|
|
55
|
+
"input",
|
|
56
|
+
{
|
|
57
|
+
accept: i == null ? void 0 : i.join(", "),
|
|
58
|
+
ref: r,
|
|
59
|
+
hidden: !0,
|
|
60
|
+
type: "file",
|
|
61
|
+
max: g,
|
|
62
|
+
onChange: (e) => {
|
|
63
|
+
L(e.target.files);
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
),
|
|
67
|
+
/* @__PURE__ */ n(
|
|
68
|
+
M,
|
|
69
|
+
{
|
|
70
|
+
sizeInput: "medium",
|
|
71
|
+
placeholder: "Pilih Berkas",
|
|
72
|
+
label: k,
|
|
73
|
+
value: s,
|
|
74
|
+
readOnly: !0,
|
|
75
|
+
onClick: (e) => y(e),
|
|
76
|
+
startIcon: /* @__PURE__ */ n(D, {}),
|
|
77
|
+
endIcon: s && /* @__PURE__ */ n(
|
|
78
|
+
"div",
|
|
79
|
+
{
|
|
80
|
+
className: E["button-remove"],
|
|
81
|
+
onClick: (e) => B(e),
|
|
82
|
+
children: /* @__PURE__ */ n(z, {})
|
|
83
|
+
}
|
|
84
|
+
),
|
|
85
|
+
error: x[v],
|
|
86
|
+
...f
|
|
87
|
+
}
|
|
88
|
+
)
|
|
89
|
+
] });
|
|
90
|
+
};
|
|
91
|
+
H.displayName = "UploadFile";
|
|
92
|
+
export {
|
|
93
|
+
H as default
|
|
94
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e={"button-remove":"_button-remove_lgwgf_1"};exports.default=e;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("react/jsx-runtime"),p=require("react"),k=require("../Button/Button.cjs"),r=require("./UploadImage.module.scss.cjs"),y=({className:s})=>t.jsx("svg",{viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",className:`iru-h-5 iru-w-5 iru-text-red-600 ${s??""}`,fill:"currentColor",children:t.jsx("g",{id:"x",children:t.jsx("path",{id:"Vector",fillRule:"evenodd",clipRule:"evenodd",d:`M6.19544 6.19126C6.32045 6.06628 6.48999 5.99607 6.66677 5.99607C6.84354 5.99607 7.01308 6.06628 7.1381 \r
|
|
2
|
+
6.19126L10.0001 9.05326L12.8621 6.19126C12.9236 6.12758 12.9972 6.0768 13.0785 6.04186C13.1598 6.00692 13.2473 \r
|
|
3
|
+
5.98853 13.3358 5.98776C13.4244 5.98699 13.5121 6.00386 13.5941 6.03738C13.676 6.0709 13.7504 6.1204 13.813 \r
|
|
4
|
+
6.18299C13.8756 6.24559 13.9251 6.32002 13.9587 6.40195C13.9922 6.48389 14.009 6.57167 14.0083 6.66019C14.0075 \r
|
|
5
|
+
6.74871 13.9891 6.83619 13.9542 6.91753C13.9192 6.99886 13.8684 7.07243 13.8048 7.13392L10.9428 9.99592L13.8048 \r
|
|
6
|
+
12.8579C13.9262 12.9837 13.9934 13.1521 13.9919 13.3269C13.9904 13.5017 13.9203 13.6689 13.7966 13.7925C13.673 \r
|
|
7
|
+
13.9161 13.5058 13.9862 13.331 13.9877C13.1562 13.9892 12.9878 13.922 12.8621 13.8006L10.0001 10.9386L7.1381 \r
|
|
8
|
+
13.8006C7.01237 13.922 6.84397 13.9892 6.66917 13.9877C6.49437 13.9862 6.32716 13.9161 6.20356 13.7925C6.07995 \r
|
|
9
|
+
13.6689 6.00984 13.5017 6.00832 13.3269C6.0068 13.1521 6.074 12.9837 6.19544 12.8579L9.05744 9.99592L6.19544 \r
|
|
10
|
+
7.13392C6.07045 7.00891 6.00024 6.83937 6.00024 6.66259C6.00024 6.48581 6.07045 6.31628 6.19544 6.19126Z`})})}),B=({className:s})=>t.jsx("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:`iru-h-5 iru-w-5 ${s??""}`,children:t.jsx("g",{id:"upload",children:t.jsx("path",{id:"Vector",d:`M3.83337 13.3333V14.1666C3.83337 14.8297 4.09677 15.4656 4.56561 15.9344C5.03445 16.4033 5.67033 \r
|
|
11
|
+
16.6666 6.33337 16.6666H14.6667C15.3297 16.6666 15.9656 16.4033 16.4345 15.9344C16.9033 15.4656 17.1667 \r
|
|
12
|
+
14.8297 17.1667 14.1666V13.3333M13.8334 6.66665L10.5 3.33331M10.5 3.33331L7.16671 6.66665M10.5 3.33331V13.3333`,stroke:"#1976D2",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})})}),R=({onChange:s,valueUrl:i,validateFile:h,validateFileDesc:D="Max 2MB (.jpg, .jpeg, .png, .svg)",maxSize:m=2,icon:L,desc:c,classNameContainer:w,classNameImage:u,classNameAction:M,id:l})=>{const n=p.useRef(null),a=h||["image/png","image/jpeg","image/jpg"],[o,x]=p.useState(""),[j,d]=p.useState(""),C=e=>{if(e!=null&&e.length){const g=e[0],N=g.size/1024/1024;if(!a.some(f=>{var $;return($=e[0].type)==null?void 0:$.includes(f)}))d("Berkas tidak didukung, silahkan pilih file kembali.");else if(N>m){const f=`${e.length>1?"Jumlah u":"U"}kuran berkas tidak boleh melebihi ${m}MB.`;d(f)}else{if(!(n!=null&&n.current))return;d(""),s(g),x(URL.createObjectURL(g)),n.current.value=""}}},v=e=>{e.preventDefault(),C(e.dataTransfer.files)},b=e=>{e.preventDefault(),n!=null&&n.current&&(typeof s=="function"&&s(null),x(""),n.current.value="")};return t.jsxs("div",{className:`${r.default.container} ${w}`,children:[t.jsx("input",{accept:a==null?void 0:a.join(", "),ref:n,hidden:!0,type:"file",multiple:!1,onChange:e=>{e.target.files&&C(e.target.files)}}),o||i?t.jsx("div",{id:`${l}-exist`,className:`${r.default["image-content"]} ${u}`,onDrop:v,onDragOver:e=>e.preventDefault(),onDragLeave:e=>e.preventDefault(),children:t.jsx("img",{src:o||i,alt:"upload-image",className:`${r.default.image} ${u}`})}):t.jsxs("div",{id:l,className:`${r.default["image-content"]} ${u}`,onDrop:v,onDragOver:e=>e.preventDefault(),onDragLeave:e=>e.preventDefault(),children:[L,t.jsx("div",{className:r.default["text-desc"],children:typeof c=="function"?c():c})]}),t.jsxs("div",{className:r.default["action-content"],children:[t.jsxs("div",{className:`${r.default["button-content"]} ${M}`,children:[(o||i)&&t.jsx(k.default,{id:`${l}-delete-img`,variants:"tertiary-red-600",size:"xs",startIcon:t.jsx(y,{}),onClick:e=>b(e),children:"Hapus"}),t.jsxs(k.default,{id:`${l}-change-img`,variants:"tertiary-blue-700",size:"xs",onClick:()=>{var e;return(e=n.current)==null?void 0:e.click()},startIcon:t.jsx(B,{}),children:[o||i?"Ganti":"Pilih"," Gambar"]})]}),t.jsx("p",{className:r.default["text-desc"],children:D}),j&&t.jsx("p",{className:r.default["text-error"],children:j})]})]})};exports.default=R;
|
|
@@ -0,0 +1,162 @@
|
|
|
1
|
+
import { jsxs as s, jsx as r } from "react/jsx-runtime";
|
|
2
|
+
import h from "react";
|
|
3
|
+
import x from "../Button/Button.mjs";
|
|
4
|
+
import t from "./UploadImage.module.scss.mjs";
|
|
5
|
+
const B = ({ className: i }) => /* @__PURE__ */ r(
|
|
6
|
+
"svg",
|
|
7
|
+
{
|
|
8
|
+
viewBox: "0 0 20 20",
|
|
9
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
10
|
+
className: `iru-h-5 iru-w-5 iru-text-red-600 ${i ?? ""}`,
|
|
11
|
+
fill: "currentColor",
|
|
12
|
+
children: /* @__PURE__ */ r("g", { id: "x", children: /* @__PURE__ */ r(
|
|
13
|
+
"path",
|
|
14
|
+
{
|
|
15
|
+
id: "Vector",
|
|
16
|
+
fillRule: "evenodd",
|
|
17
|
+
clipRule: "evenodd",
|
|
18
|
+
d: `M6.19544 6.19126C6.32045 6.06628 6.48999 5.99607 6.66677 5.99607C6.84354 5.99607 7.01308 6.06628 7.1381 \r
|
|
19
|
+
6.19126L10.0001 9.05326L12.8621 6.19126C12.9236 6.12758 12.9972 6.0768 13.0785 6.04186C13.1598 6.00692 13.2473 \r
|
|
20
|
+
5.98853 13.3358 5.98776C13.4244 5.98699 13.5121 6.00386 13.5941 6.03738C13.676 6.0709 13.7504 6.1204 13.813 \r
|
|
21
|
+
6.18299C13.8756 6.24559 13.9251 6.32002 13.9587 6.40195C13.9922 6.48389 14.009 6.57167 14.0083 6.66019C14.0075 \r
|
|
22
|
+
6.74871 13.9891 6.83619 13.9542 6.91753C13.9192 6.99886 13.8684 7.07243 13.8048 7.13392L10.9428 9.99592L13.8048 \r
|
|
23
|
+
12.8579C13.9262 12.9837 13.9934 13.1521 13.9919 13.3269C13.9904 13.5017 13.9203 13.6689 13.7966 13.7925C13.673 \r
|
|
24
|
+
13.9161 13.5058 13.9862 13.331 13.9877C13.1562 13.9892 12.9878 13.922 12.8621 13.8006L10.0001 10.9386L7.1381 \r
|
|
25
|
+
13.8006C7.01237 13.922 6.84397 13.9892 6.66917 13.9877C6.49437 13.9862 6.32716 13.9161 6.20356 13.7925C6.07995 \r
|
|
26
|
+
13.6689 6.00984 13.5017 6.00832 13.3269C6.0068 13.1521 6.074 12.9837 6.19544 12.8579L9.05744 9.99592L6.19544 \r
|
|
27
|
+
7.13392C6.07045 7.00891 6.00024 6.83937 6.00024 6.66259C6.00024 6.48581 6.07045 6.31628 6.19544 6.19126Z`
|
|
28
|
+
}
|
|
29
|
+
) })
|
|
30
|
+
}
|
|
31
|
+
), R = ({ className: i }) => /* @__PURE__ */ r(
|
|
32
|
+
"svg",
|
|
33
|
+
{
|
|
34
|
+
viewBox: "0 0 20 20",
|
|
35
|
+
fill: "none",
|
|
36
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
37
|
+
className: `iru-h-5 iru-w-5 ${i ?? ""}`,
|
|
38
|
+
children: /* @__PURE__ */ r("g", { id: "upload", children: /* @__PURE__ */ r(
|
|
39
|
+
"path",
|
|
40
|
+
{
|
|
41
|
+
id: "Vector",
|
|
42
|
+
d: `M3.83337 13.3333V14.1666C3.83337 14.8297 4.09677 15.4656 4.56561 15.9344C5.03445 16.4033 5.67033 \r
|
|
43
|
+
16.6666 6.33337 16.6666H14.6667C15.3297 16.6666 15.9656 16.4033 16.4345 15.9344C16.9033 15.4656 17.1667 \r
|
|
44
|
+
14.8297 17.1667 14.1666V13.3333M13.8334 6.66665L10.5 3.33331M10.5 3.33331L7.16671 6.66665M10.5 3.33331V13.3333`,
|
|
45
|
+
stroke: "#1976D2",
|
|
46
|
+
strokeWidth: "1.5",
|
|
47
|
+
strokeLinecap: "round",
|
|
48
|
+
strokeLinejoin: "round"
|
|
49
|
+
}
|
|
50
|
+
) })
|
|
51
|
+
}
|
|
52
|
+
), O = ({
|
|
53
|
+
onChange: i,
|
|
54
|
+
valueUrl: l,
|
|
55
|
+
validateFile: f,
|
|
56
|
+
validateFileDesc: w = "Max 2MB (.jpg, .jpeg, .png, .svg)",
|
|
57
|
+
maxSize: C = 2,
|
|
58
|
+
icon: M,
|
|
59
|
+
desc: u,
|
|
60
|
+
classNameContainer: j,
|
|
61
|
+
classNameImage: d,
|
|
62
|
+
classNameAction: N,
|
|
63
|
+
id: o
|
|
64
|
+
}) => {
|
|
65
|
+
const n = h.useRef(null), a = f || ["image/png", "image/jpeg", "image/jpg"], [c, v] = h.useState(""), [$, p] = h.useState(""), k = (e) => {
|
|
66
|
+
if (e != null && e.length) {
|
|
67
|
+
const g = e[0], y = g.size / 1024 / 1024;
|
|
68
|
+
if (!a.some((m) => {
|
|
69
|
+
var L;
|
|
70
|
+
return (L = e[0].type) == null ? void 0 : L.includes(m);
|
|
71
|
+
}))
|
|
72
|
+
p("Berkas tidak didukung, silahkan pilih file kembali.");
|
|
73
|
+
else if (y > C) {
|
|
74
|
+
const m = `${e.length > 1 ? "Jumlah u" : "U"}kuran berkas tidak boleh melebihi ${C}MB.`;
|
|
75
|
+
p(m);
|
|
76
|
+
} else {
|
|
77
|
+
if (!(n != null && n.current)) return;
|
|
78
|
+
p(""), i(g), v(URL.createObjectURL(g)), n.current.value = "";
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
}, D = (e) => {
|
|
82
|
+
e.preventDefault(), k(e.dataTransfer.files);
|
|
83
|
+
}, b = (e) => {
|
|
84
|
+
e.preventDefault(), n != null && n.current && (typeof i == "function" && i(null), v(""), n.current.value = "");
|
|
85
|
+
};
|
|
86
|
+
return /* @__PURE__ */ s("div", { className: `${t.container} ${j}`, children: [
|
|
87
|
+
/* @__PURE__ */ r(
|
|
88
|
+
"input",
|
|
89
|
+
{
|
|
90
|
+
accept: a == null ? void 0 : a.join(", "),
|
|
91
|
+
ref: n,
|
|
92
|
+
hidden: !0,
|
|
93
|
+
type: "file",
|
|
94
|
+
multiple: !1,
|
|
95
|
+
onChange: (e) => {
|
|
96
|
+
e.target.files && k(e.target.files);
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
),
|
|
100
|
+
c || l ? /* @__PURE__ */ r(
|
|
101
|
+
"div",
|
|
102
|
+
{
|
|
103
|
+
id: `${o}-exist`,
|
|
104
|
+
className: `${t["image-content"]} ${d}`,
|
|
105
|
+
onDrop: D,
|
|
106
|
+
onDragOver: (e) => e.preventDefault(),
|
|
107
|
+
onDragLeave: (e) => e.preventDefault(),
|
|
108
|
+
children: /* @__PURE__ */ r("img", { src: c || l, alt: "upload-image", className: `${t.image} ${d}` })
|
|
109
|
+
}
|
|
110
|
+
) : /* @__PURE__ */ s(
|
|
111
|
+
"div",
|
|
112
|
+
{
|
|
113
|
+
id: o,
|
|
114
|
+
className: `${t["image-content"]} ${d}`,
|
|
115
|
+
onDrop: D,
|
|
116
|
+
onDragOver: (e) => e.preventDefault(),
|
|
117
|
+
onDragLeave: (e) => e.preventDefault(),
|
|
118
|
+
children: [
|
|
119
|
+
M,
|
|
120
|
+
/* @__PURE__ */ r("div", { className: t["text-desc"], children: typeof u == "function" ? u() : u })
|
|
121
|
+
]
|
|
122
|
+
}
|
|
123
|
+
),
|
|
124
|
+
/* @__PURE__ */ s("div", { className: t["action-content"], children: [
|
|
125
|
+
/* @__PURE__ */ s("div", { className: `${t["button-content"]} ${N}`, children: [
|
|
126
|
+
(c || l) && /* @__PURE__ */ r(
|
|
127
|
+
x,
|
|
128
|
+
{
|
|
129
|
+
id: `${o}-delete-img`,
|
|
130
|
+
variants: "tertiary-red-600",
|
|
131
|
+
size: "xs",
|
|
132
|
+
startIcon: /* @__PURE__ */ r(B, {}),
|
|
133
|
+
onClick: (e) => b(e),
|
|
134
|
+
children: "Hapus"
|
|
135
|
+
}
|
|
136
|
+
),
|
|
137
|
+
/* @__PURE__ */ s(
|
|
138
|
+
x,
|
|
139
|
+
{
|
|
140
|
+
id: `${o}-change-img`,
|
|
141
|
+
variants: "tertiary-blue-700",
|
|
142
|
+
size: "xs",
|
|
143
|
+
onClick: () => {
|
|
144
|
+
var e;
|
|
145
|
+
return (e = n.current) == null ? void 0 : e.click();
|
|
146
|
+
},
|
|
147
|
+
startIcon: /* @__PURE__ */ r(R, {}),
|
|
148
|
+
children: [
|
|
149
|
+
c || l ? "Ganti" : "Pilih",
|
|
150
|
+
" Gambar"
|
|
151
|
+
]
|
|
152
|
+
}
|
|
153
|
+
)
|
|
154
|
+
] }),
|
|
155
|
+
/* @__PURE__ */ r("p", { className: t["text-desc"], children: w }),
|
|
156
|
+
$ && /* @__PURE__ */ r("p", { className: t["text-error"], children: $ })
|
|
157
|
+
] })
|
|
158
|
+
] });
|
|
159
|
+
};
|
|
160
|
+
export {
|
|
161
|
+
O as default
|
|
162
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t="_container_ifvu2_1",e="_image_ifvu2_8",n={container:t,"image-content":"_image-content_ifvu2_8",image:e,"text-desc":"_text-desc_ifvu2_25","action-content":"_action-content_ifvu2_43","button-content":"_button-content_ifvu2_52","text-error":"_text-error_ifvu2_67"};exports.container=t;exports.default=n;exports.image=e;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
const t = "_container_ifvu2_1", e = "_image_ifvu2_8", n = {
|
|
2
|
+
container: t,
|
|
3
|
+
"image-content": "_image-content_ifvu2_8",
|
|
4
|
+
image: e,
|
|
5
|
+
"text-desc": "_text-desc_ifvu2_25",
|
|
6
|
+
"action-content": "_action-content_ifvu2_43",
|
|
7
|
+
"button-content": "_button-content_ifvu2_52",
|
|
8
|
+
"text-error": "_text-error_ifvu2_67"
|
|
9
|
+
};
|
|
10
|
+
export {
|
|
11
|
+
t as container,
|
|
12
|
+
n as default,
|
|
13
|
+
e as image
|
|
14
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const s=require("react/jsx-runtime"),y=require("react"),A=require("../Button/Button.cjs"),a=require("./UploadMultipleFile.module.scss.cjs"),I=require("../Input/InputNative.cjs"),b=require("../../utils/common.cjs"),J=({value:i,validateFile:m,classNameContainer:M,classNameButton:F,textUpload:q="Unggah Lampiran",buttonProps:$={},maxFile:d=1,maxSize:g=1,error:h,removeElement:r,onChange:j,handlerDownload:N,priorityError:B="external",eventError:o,locationRemoveElement:k="right",idItemAttachment:C})=>{const U={variants:"ghost-laba-blue-10",size:"small"},n=y.useRef(null),c=m||["image/png","image/jpeg","image/jpg"],[x,P]=y.useState(""),S={internal:x||h,external:h||x},_=e=>{if(e!=null&&e.length){const t=Array.from(e).slice(0,d),l=t==null?void 0:t.filter(p=>!c.includes(p.type)),z=(t==null?void 0:t.reduce((p,T)=>p+T.size,0))/1024/1024;let u="";if(l.length>0?u="Berkas tidak didukung, silahkan pilih file kembali.":z>g?u=`${e.length>1?"Jumlah u":"U"}kuran berkas tidak boleh melebihi ${g}MB.`:typeof j=="function"&&j(t),P(u),o==null||o(u),!(n!=null&&n.current))return;n.current.value=""}},f=e=>{var t;e.preventDefault(),n!=null&&n.current&&((t=n.current)==null||t.click())};return s.jsxs("div",{className:`${a.default.container} ${M??""}`,children:[s.jsx(A.default,{...U,...$,className:F??"",onClick:e=>f(e),children:q}),s.jsx(I.default,{accept:c==null?void 0:c.join(", "),ref:n,type:"file",onChange:e=>_(e.target.files),error:S[B],multiple:d>1,hidden:!0}),s.jsx("div",{className:a.default.files,children:i==null?void 0:i.map((e,t)=>s.jsxs("div",{id:`${C}-${t}`,className:a.default.file,onClick:l=>{l.stopPropagation(),typeof N=="function"&&N(e)},children:[typeof r=="function"&&k==="left"&&s.jsx(s.Fragment,{children:r(e,t)}),s.jsxs("div",{className:a.default["file-name-wrapper"],children:[s.jsx("span",{className:a.default["file-name"],children:b.parseFileName((e==null?void 0:e.originalName)??(e==null?void 0:e.name)??(e==null?void 0:e.fileName)??"").filename}),s.jsx("span",{className:a.default["file-extension"],children:b.parseFileName((e==null?void 0:e.originalName)??(e==null?void 0:e.name)??(e==null?void 0:e.fileName)??"").extension})]}),typeof r=="function"&&k==="right"&&s.jsx(s.Fragment,{children:r(e,t)})]},t))})]})};exports.default=J;
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
import { jsxs as h, jsx as r, Fragment as j } from "react/jsx-runtime";
|
|
2
|
+
import B from "react";
|
|
3
|
+
import w from "../Button/Button.mjs";
|
|
4
|
+
import a from "./UploadMultipleFile.module.scss.mjs";
|
|
5
|
+
import D from "../Input/InputNative.mjs";
|
|
6
|
+
import { parseFileName as M } from "../../utils/common.mjs";
|
|
7
|
+
const W = ({
|
|
8
|
+
value: o,
|
|
9
|
+
validateFile: g,
|
|
10
|
+
classNameContainer: C,
|
|
11
|
+
classNameButton: F,
|
|
12
|
+
textUpload: U = "Unggah Lampiran",
|
|
13
|
+
buttonProps: x = {},
|
|
14
|
+
maxFile: l = 1,
|
|
15
|
+
maxSize: d = 1,
|
|
16
|
+
error: k,
|
|
17
|
+
removeElement: e,
|
|
18
|
+
onChange: N,
|
|
19
|
+
handlerDownload: y,
|
|
20
|
+
priorityError: z = "external",
|
|
21
|
+
eventError: p,
|
|
22
|
+
locationRemoveElement: b = "right",
|
|
23
|
+
idItemAttachment: P
|
|
24
|
+
}) => {
|
|
25
|
+
const A = { variants: "ghost-laba-blue-10", size: "small" }, s = B.useRef(null), c = g || ["image/png", "image/jpeg", "image/jpg"], [$, I] = B.useState(""), J = {
|
|
26
|
+
internal: $ || k,
|
|
27
|
+
external: k || $
|
|
28
|
+
}, L = (t) => {
|
|
29
|
+
if (t != null && t.length) {
|
|
30
|
+
const n = Array.from(t).slice(0, l), m = n == null ? void 0 : n.filter((u) => !c.includes(u.type)), T = (n == null ? void 0 : n.reduce((u, q) => u + q.size, 0)) / 1024 / 1024;
|
|
31
|
+
let i = "";
|
|
32
|
+
if (m.length > 0 ? i = "Berkas tidak didukung, silahkan pilih file kembali." : T > d ? i = `${t.length > 1 ? "Jumlah u" : "U"}kuran berkas tidak boleh melebihi ${d}MB.` : typeof N == "function" && N(n), I(i), p == null || p(i), !(s != null && s.current)) return;
|
|
33
|
+
s.current.value = "";
|
|
34
|
+
}
|
|
35
|
+
}, S = (t) => {
|
|
36
|
+
var n;
|
|
37
|
+
t.preventDefault(), s != null && s.current && ((n = s.current) == null || n.click());
|
|
38
|
+
};
|
|
39
|
+
return /* @__PURE__ */ h("div", { className: `${a.container} ${C ?? ""}`, children: [
|
|
40
|
+
/* @__PURE__ */ r(
|
|
41
|
+
w,
|
|
42
|
+
{
|
|
43
|
+
...A,
|
|
44
|
+
...x,
|
|
45
|
+
className: F ?? "",
|
|
46
|
+
onClick: (t) => S(t),
|
|
47
|
+
children: U
|
|
48
|
+
}
|
|
49
|
+
),
|
|
50
|
+
/* @__PURE__ */ r(
|
|
51
|
+
D,
|
|
52
|
+
{
|
|
53
|
+
accept: c == null ? void 0 : c.join(", "),
|
|
54
|
+
ref: s,
|
|
55
|
+
type: "file",
|
|
56
|
+
onChange: (t) => L(t.target.files),
|
|
57
|
+
error: J[z],
|
|
58
|
+
multiple: l > 1,
|
|
59
|
+
hidden: !0
|
|
60
|
+
}
|
|
61
|
+
),
|
|
62
|
+
/* @__PURE__ */ r("div", { className: a.files, children: o == null ? void 0 : o.map((t, n) => /* @__PURE__ */ h(
|
|
63
|
+
"div",
|
|
64
|
+
{
|
|
65
|
+
id: `${P}-${n}`,
|
|
66
|
+
className: a.file,
|
|
67
|
+
onClick: (m) => {
|
|
68
|
+
m.stopPropagation(), typeof y == "function" && y(t);
|
|
69
|
+
},
|
|
70
|
+
children: [
|
|
71
|
+
typeof e == "function" && b === "left" && /* @__PURE__ */ r(j, { children: e(t, n) }),
|
|
72
|
+
/* @__PURE__ */ h("div", { className: a["file-name-wrapper"], children: [
|
|
73
|
+
/* @__PURE__ */ r("span", { className: a["file-name"], children: M((t == null ? void 0 : t.originalName) ?? (t == null ? void 0 : t.name) ?? (t == null ? void 0 : t.fileName) ?? "").filename }),
|
|
74
|
+
/* @__PURE__ */ r("span", { className: a["file-extension"], children: M((t == null ? void 0 : t.originalName) ?? (t == null ? void 0 : t.name) ?? (t == null ? void 0 : t.fileName) ?? "").extension })
|
|
75
|
+
] }),
|
|
76
|
+
typeof e == "function" && b === "right" && /* @__PURE__ */ r(j, { children: e(t, n) })
|
|
77
|
+
]
|
|
78
|
+
},
|
|
79
|
+
n
|
|
80
|
+
)) })
|
|
81
|
+
] });
|
|
82
|
+
};
|
|
83
|
+
export {
|
|
84
|
+
W as default
|
|
85
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e="_container_6w9ag_1",i="_files_6w9ag_6",n="_file_6w9ag_6",l={container:e,files:i,file:n,"file-name-wrapper":"_file-name-wrapper_6w9ag_22","file-name":"_file-name_6w9ag_22","file-extension":"_file-extension_6w9ag_29"};exports.container=e;exports.default=l;exports.file=n;exports.files=i;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
const e = "_container_6w9ag_1", n = "_files_6w9ag_6", _ = "_file_6w9ag_6", a = {
|
|
2
|
+
container: e,
|
|
3
|
+
files: n,
|
|
4
|
+
file: _,
|
|
5
|
+
"file-name-wrapper": "_file-name-wrapper_6w9ag_22",
|
|
6
|
+
"file-name": "_file-name_6w9ag_22",
|
|
7
|
+
"file-extension": "_file-extension_6w9ag_29"
|
|
8
|
+
};
|
|
9
|
+
export {
|
|
10
|
+
e as container,
|
|
11
|
+
a as default,
|
|
12
|
+
_ as file,
|
|
13
|
+
n as files
|
|
14
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const n=require("react/jsx-runtime"),o=require("react"),N=require("react-virtuoso"),W=({children:i,...r})=>n.jsx(n.Fragment,{children:i(r)}),_=({children:i,...r})=>n.jsx(n.Fragment,{children:o.isValidElement(i)&&n.jsx(n.Fragment,{children:o.cloneElement(i,r)})}),y=o.forwardRef((i,r)=>{const{classNameContainer:v="",computeItemKey:H=()=>"",itemSize:E=()=>0,totalCount:s=0,typeHight:t="min-max",minHeightItem:z=0,maxHeightTable:l=0,minLengthItem:L=0,itemContent:j,typeCalculateItemSize:R="manual",itemSizeNames:u=[],overscan:d=null,component:S={},idContainer:g="",triggerCalCulateContainer:V="",accumulationHeight:I=0,delayTriggerCalculateHeight:T=0,increaseViewportBy:b=()=>0,context:B={},endReached:q,increaseTotalCount:h=1}=i,[a,f]=o.useState(0),F=()=>{if(t==="min-max"){const e=(s+h)*z;return{height:s>L?l:a>e?a:e}}return t==="container"?{height:a}:{}},$=e=>{var p;const m=e.getAttribute("data-index");let C=((p=e.getBoundingClientRect())==null?void 0:p.height)||0;return u==null||u.forEach(M=>{var w,x;C+=((x=(w=document.querySelector(`[${M}="${m}"]`))==null?void 0:w.getBoundingClientRect())==null?void 0:x.height)??0}),C},c=()=>{var e;if(g&&t==="container"){const m=((e=document==null?void 0:document.getElementById(g))==null?void 0:e.offsetHeight)??0;f(m-I)}};return o.useEffect(()=>{const e=setTimeout(c,T);return window==null||window.addEventListener("resize",c),window==null||window.addEventListener("load",c),()=>{clearTimeout(e),window==null||window.removeEventListener("resize",c),window==null||window.removeEventListener("load",c)}},[t,V]),n.jsx("div",{className:`iru-w-full ${v}`,children:n.jsx(N.Virtuoso,{context:B,ref:r,overscan:typeof d=="function"?d(t==="container"?a:l):t==="container"?a:l,totalListHeightChanged:e=>t==="min-max"?f(e):null,style:F(),totalCount:s,computeItemKey:H,itemSize:o.useCallback(e=>R==="manual"?E(e):$(e),[]),itemContent:(...e)=>j(W,...e),components:{Item:_,...S},endReached:q,increaseViewportBy:b(t==="container"?a:l)})})});y.displayName="ListVirtualization";exports.default=y;
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
import { jsx as r, Fragment as u } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as k, useState as q, useEffect as A, useCallback as F, isValidElement as K, cloneElement as D } from "react";
|
|
3
|
+
import { Virtuoso as G } from "react-virtuoso";
|
|
4
|
+
const J = ({ children: n, ...o }) => /* @__PURE__ */ r(u, { children: n(o) }), M = ({ children: n, ...o }) => /* @__PURE__ */ r(u, { children: K(n) && /* @__PURE__ */ r(u, { children: D(n, o) }) }), O = k((n, o) => {
|
|
5
|
+
const {
|
|
6
|
+
classNameContainer: H = "",
|
|
7
|
+
computeItemKey: v = () => "",
|
|
8
|
+
itemSize: x = () => 0,
|
|
9
|
+
totalCount: c = 0,
|
|
10
|
+
typeHight: t = "min-max",
|
|
11
|
+
minHeightItem: E = 0,
|
|
12
|
+
maxHeightTable: l = 0,
|
|
13
|
+
minLengthItem: z = 0,
|
|
14
|
+
itemContent: L,
|
|
15
|
+
typeCalculateItemSize: I = "manual",
|
|
16
|
+
itemSizeNames: s = [],
|
|
17
|
+
overscan: d = null,
|
|
18
|
+
component: V = {},
|
|
19
|
+
idContainer: h = "",
|
|
20
|
+
triggerCalCulateContainer: B = "",
|
|
21
|
+
accumulationHeight: R = 0,
|
|
22
|
+
delayTriggerCalculateHeight: S = 0,
|
|
23
|
+
increaseViewportBy: T = () => 0,
|
|
24
|
+
context: b = {},
|
|
25
|
+
endReached: $,
|
|
26
|
+
increaseTotalCount: g = 1
|
|
27
|
+
} = n, [i, f] = q(0), N = () => {
|
|
28
|
+
if (t === "min-max") {
|
|
29
|
+
const e = (c + g) * E;
|
|
30
|
+
return { height: c > z ? l : i > e ? i : e };
|
|
31
|
+
}
|
|
32
|
+
return t === "container" ? { height: i } : {};
|
|
33
|
+
}, W = (e) => {
|
|
34
|
+
var C;
|
|
35
|
+
const m = e.getAttribute("data-index");
|
|
36
|
+
let p = ((C = e.getBoundingClientRect()) == null ? void 0 : C.height) || 0;
|
|
37
|
+
return s == null || s.forEach((j) => {
|
|
38
|
+
var w, y;
|
|
39
|
+
p += ((y = (w = document.querySelector(`[${j}="${m}"]`)) == null ? void 0 : w.getBoundingClientRect()) == null ? void 0 : y.height) ?? 0;
|
|
40
|
+
}), p;
|
|
41
|
+
}, a = () => {
|
|
42
|
+
var e;
|
|
43
|
+
if (h && t === "container") {
|
|
44
|
+
const m = ((e = document == null ? void 0 : document.getElementById(h)) == null ? void 0 : e.offsetHeight) ?? 0;
|
|
45
|
+
f(m - R);
|
|
46
|
+
}
|
|
47
|
+
};
|
|
48
|
+
return A(() => {
|
|
49
|
+
const e = setTimeout(a, S);
|
|
50
|
+
return window == null || window.addEventListener("resize", a), window == null || window.addEventListener("load", a), () => {
|
|
51
|
+
clearTimeout(e), window == null || window.removeEventListener("resize", a), window == null || window.removeEventListener("load", a);
|
|
52
|
+
};
|
|
53
|
+
}, [t, B]), /* @__PURE__ */ r("div", { className: `iru-w-full ${H}`, children: /* @__PURE__ */ r(
|
|
54
|
+
G,
|
|
55
|
+
{
|
|
56
|
+
context: b,
|
|
57
|
+
ref: o,
|
|
58
|
+
overscan: typeof d == "function" ? d(t === "container" ? i : l) : t === "container" ? i : l,
|
|
59
|
+
totalListHeightChanged: (e) => t === "min-max" ? f(e) : null,
|
|
60
|
+
style: N(),
|
|
61
|
+
totalCount: c,
|
|
62
|
+
computeItemKey: v,
|
|
63
|
+
itemSize: F(
|
|
64
|
+
(e) => I === "manual" ? x(e) : W(e),
|
|
65
|
+
[]
|
|
66
|
+
),
|
|
67
|
+
itemContent: (...e) => L(J, ...e),
|
|
68
|
+
components: {
|
|
69
|
+
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
70
|
+
// @ts-ignore
|
|
71
|
+
Item: M,
|
|
72
|
+
...V
|
|
73
|
+
},
|
|
74
|
+
endReached: $,
|
|
75
|
+
increaseViewportBy: T(t === "container" ? i : l)
|
|
76
|
+
}
|
|
77
|
+
) });
|
|
78
|
+
});
|
|
79
|
+
O.displayName = "ListVirtualization";
|
|
80
|
+
export {
|
|
81
|
+
O as default
|
|
82
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const n=require("react/jsx-runtime"),o=require("react"),W=require("react-virtuoso"),_=({children:i,...r})=>n.jsx(n.Fragment,{children:i(r)}),k=({children:i,...r})=>n.jsx(n.Fragment,{children:o.isValidElement(i)&&n.jsx(n.Fragment,{children:o.cloneElement(i,r)})}),y=o.forwardRef((i,r)=>{const{classNameContainer:H="",computeItemKey:v=()=>"",itemSize:T=()=>0,totalCount:l=0,typeHight:t="min-max",minHeightItem:b=0,maxHeightTable:s=0,minLengthItem:E=0,fixedHeaderContent:z,itemContent:R,typeCalculateItemSize:j="manual",itemSizeNames:u=[],overscan:d=null,component:S={},idContainer:g="",triggerCalCulateContainer:V="",accumulationHeight:L=0,delayTriggerCalculateHeight:B=0,increaseViewportBy:I=()=>0,context:q={},endReached:F,increaseTotalCount:h=1}=i,[a,f]=o.useState(0),$=()=>{if(t==="min-max"){const e=(l+h)*b;return{height:l>E?s:a>e?a:e}}return t==="container"?{height:a}:{}},M=e=>{var w;const m=e.getAttribute("data-index");let C=((w=e.getBoundingClientRect())==null?void 0:w.height)||0;return u==null||u.forEach(N=>{var x,p;C+=((p=(x=document.querySelector(`[${N}="${m}"]`))==null?void 0:x.getBoundingClientRect())==null?void 0:p.height)??0}),C},c=()=>{var e;if(g&&t==="container"){const m=((e=document==null?void 0:document.getElementById(g))==null?void 0:e.offsetHeight)??0;f(m-L)}};return o.useEffect(()=>{const e=setTimeout(c,B);return window==null||window.addEventListener("resize",c),window==null||window.addEventListener("load",c),()=>{clearTimeout(e),window==null||window.removeEventListener("resize",c),window==null||window.removeEventListener("load",c)}},[t,V]),n.jsx("div",{className:`iru-w-full ${H}`,children:n.jsx(W.TableVirtuoso,{context:q,ref:r,overscan:typeof d=="function"?d(t==="container"?a:s):t==="container"?a:s,totalListHeightChanged:e=>t==="min-max"?f(e):null,style:$(),totalCount:l,computeItemKey:v,itemSize:o.useCallback(e=>j==="manual"?T(e):M(e),[]),components:{TableRow:k,...S},fixedHeaderContent:z,itemContent:(...e)=>R(_,...e),endReached:F,increaseViewportBy:I(t==="container"?a:s)})})});y.displayName="TableVirtualization";exports.default=y;
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
import { jsx as r, Fragment as u } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as q, useState as A, useEffect as F, useCallback as K, isValidElement as D, cloneElement as G } from "react";
|
|
3
|
+
import { TableVirtuoso as J } from "react-virtuoso";
|
|
4
|
+
const M = ({ children: n, ...a }) => /* @__PURE__ */ r(u, { children: n(a) }), O = ({ children: n, ...a }) => /* @__PURE__ */ r(u, { children: D(n) && /* @__PURE__ */ r(u, { children: G(n, a) }) }), P = q((n, a) => {
|
|
5
|
+
const {
|
|
6
|
+
classNameContainer: H = "",
|
|
7
|
+
computeItemKey: x = () => "",
|
|
8
|
+
itemSize: v = () => 0,
|
|
9
|
+
totalCount: c = 0,
|
|
10
|
+
typeHight: t = "min-max",
|
|
11
|
+
minHeightItem: E = 0,
|
|
12
|
+
maxHeightTable: l = 0,
|
|
13
|
+
minLengthItem: T = 0,
|
|
14
|
+
fixedHeaderContent: z,
|
|
15
|
+
itemContent: b,
|
|
16
|
+
typeCalculateItemSize: L = "manual",
|
|
17
|
+
itemSizeNames: m = [],
|
|
18
|
+
overscan: d = null,
|
|
19
|
+
component: R = {},
|
|
20
|
+
idContainer: h = "",
|
|
21
|
+
triggerCalCulateContainer: V = "",
|
|
22
|
+
accumulationHeight: B = 0,
|
|
23
|
+
delayTriggerCalculateHeight: I = 0,
|
|
24
|
+
increaseViewportBy: S = () => 0,
|
|
25
|
+
context: $ = {},
|
|
26
|
+
endReached: N,
|
|
27
|
+
increaseTotalCount: g = 1
|
|
28
|
+
} = n, [i, f] = A(0), W = () => {
|
|
29
|
+
if (t === "min-max") {
|
|
30
|
+
const e = (c + g) * E;
|
|
31
|
+
return { height: c > T ? l : i > e ? i : e };
|
|
32
|
+
}
|
|
33
|
+
return t === "container" ? { height: i } : {};
|
|
34
|
+
}, j = (e) => {
|
|
35
|
+
var C;
|
|
36
|
+
const s = e.getAttribute("data-index");
|
|
37
|
+
let p = ((C = e.getBoundingClientRect()) == null ? void 0 : C.height) || 0;
|
|
38
|
+
return m == null || m.forEach((k) => {
|
|
39
|
+
var w, y;
|
|
40
|
+
p += ((y = (w = document.querySelector(`[${k}="${s}"]`)) == null ? void 0 : w.getBoundingClientRect()) == null ? void 0 : y.height) ?? 0;
|
|
41
|
+
}), p;
|
|
42
|
+
}, o = () => {
|
|
43
|
+
var e;
|
|
44
|
+
if (h && t === "container") {
|
|
45
|
+
const s = ((e = document == null ? void 0 : document.getElementById(h)) == null ? void 0 : e.offsetHeight) ?? 0;
|
|
46
|
+
f(s - B);
|
|
47
|
+
}
|
|
48
|
+
};
|
|
49
|
+
return F(() => {
|
|
50
|
+
const e = setTimeout(o, I);
|
|
51
|
+
return window == null || window.addEventListener("resize", o), window == null || window.addEventListener("load", o), () => {
|
|
52
|
+
clearTimeout(e), window == null || window.removeEventListener("resize", o), window == null || window.removeEventListener("load", o);
|
|
53
|
+
};
|
|
54
|
+
}, [t, V]), /* @__PURE__ */ r("div", { className: `iru-w-full ${H}`, children: /* @__PURE__ */ r(
|
|
55
|
+
J,
|
|
56
|
+
{
|
|
57
|
+
context: $,
|
|
58
|
+
ref: a,
|
|
59
|
+
overscan: typeof d == "function" ? d(t === "container" ? i : l) : t === "container" ? i : l,
|
|
60
|
+
totalListHeightChanged: (e) => t === "min-max" ? f(e) : null,
|
|
61
|
+
style: W(),
|
|
62
|
+
totalCount: c,
|
|
63
|
+
computeItemKey: x,
|
|
64
|
+
itemSize: K(
|
|
65
|
+
(e) => L === "manual" ? v(e) : j(e),
|
|
66
|
+
[]
|
|
67
|
+
),
|
|
68
|
+
components: {
|
|
69
|
+
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
70
|
+
// @ts-ignore
|
|
71
|
+
TableRow: O,
|
|
72
|
+
...R
|
|
73
|
+
},
|
|
74
|
+
fixedHeaderContent: z,
|
|
75
|
+
itemContent: (...e) => b(M, ...e),
|
|
76
|
+
endReached: N,
|
|
77
|
+
increaseViewportBy: S(t === "container" ? i : l)
|
|
78
|
+
}
|
|
79
|
+
) });
|
|
80
|
+
});
|
|
81
|
+
P.displayName = "TableVirtualization";
|
|
82
|
+
export {
|
|
83
|
+
P as default
|
|
84
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("bignumber.js"),t={ROUNDING_MODE:e.ROUND_HALF_UP,EXPONENTIAL_AT:[-1e9,1e9]};let i=!1;const n=(r=t)=>{i||(e.config(r),i=!0)},o=(r,u)=>(i||n(),new e(r,u));exports.TypeBigNumber=e;exports.BigNumber=o;exports.defaultConfig=t;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import i from "bignumber.js";
|
|
2
|
+
import { default as m } from "bignumber.js";
|
|
3
|
+
const t = {
|
|
4
|
+
ROUNDING_MODE: i.ROUND_HALF_UP,
|
|
5
|
+
EXPONENTIAL_AT: [-1e9, 1e9]
|
|
6
|
+
};
|
|
7
|
+
let r = !1;
|
|
8
|
+
const f = (e = t) => {
|
|
9
|
+
r || (i.config(e), r = !0);
|
|
10
|
+
}, N = (e, o) => (r || f(), new i(e, o));
|
|
11
|
+
export {
|
|
12
|
+
N as BigNumber,
|
|
13
|
+
m as TypeBigNumber,
|
|
14
|
+
t as defaultConfig
|
|
15
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r={"0px":"iru-rounded-none","2px":"iru-rounded-sm","4px":"iru-rounded","6px":"iru-rounded-md","8px":"iru-rounded-lg","12px":"iru-rounded-xl","16px":"iru-rounded-2xl","24px":"iru-rounded-3xl",full:"iru-rounded-full"};exports.configBorderRadius=r;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
const d = {
|
|
2
|
+
"0px": "iru-rounded-none",
|
|
3
|
+
"2px": "iru-rounded-sm",
|
|
4
|
+
"4px": "iru-rounded",
|
|
5
|
+
"6px": "iru-rounded-md",
|
|
6
|
+
"8px": "iru-rounded-lg",
|
|
7
|
+
"12px": "iru-rounded-xl",
|
|
8
|
+
"16px": "iru-rounded-2xl",
|
|
9
|
+
"24px": "iru-rounded-3xl",
|
|
10
|
+
full: "iru-rounded-full"
|
|
11
|
+
};
|
|
12
|
+
export {
|
|
13
|
+
d as configBorderRadius
|
|
14
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t={lato:"iru-font-Lato",inter:"iru-font-Inter",pJakartaSans:"iru-font-PJakartaSans"};exports.configFont=t;
|