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,37 @@
|
|
|
1
|
+
import { jsx as n, Fragment as l, jsxs as u } from "react/jsx-runtime";
|
|
2
|
+
import { flexRender as h } from "@tanstack/react-table";
|
|
3
|
+
const b = (g, t, { visibilityColumns: m, classNameSubMobile: f }) => /* @__PURE__ */ n("table", { className: "-iru-mx-6 -iru-my-3 !iru-w-[calc(100%_+_48px)]", children: /* @__PURE__ */ n("tbody", { children: t.getVisibleCells().map((e, s) => {
|
|
4
|
+
var c, o, a, d, r, i;
|
|
5
|
+
return /* @__PURE__ */ n(l, { children: m != null && m.columns.includes(e.column.id) ? /* @__PURE__ */ u("tr", { className: f, children: [
|
|
6
|
+
/* @__PURE__ */ n(
|
|
7
|
+
"td",
|
|
8
|
+
{
|
|
9
|
+
"data-section": "left",
|
|
10
|
+
style: {
|
|
11
|
+
...typeof ((c = e.column.columnDef.meta) == null ? void 0 : c.styleTdLeftCellSubs) == "function" ? (o = e.column.columnDef.meta) == null ? void 0 : o.styleTdLeftCellSubs(t.original, t) : {}
|
|
12
|
+
},
|
|
13
|
+
children: /* @__PURE__ */ u("div", { children: [
|
|
14
|
+
typeof e.column.columnDef.header == "string" && /* @__PURE__ */ n(l, { children: e.column.columnDef.header }),
|
|
15
|
+
typeof e.column.columnDef.header != "string" && ((a = e.column.columnDef.meta) == null ? void 0 : a.labelCellSubs) && /* @__PURE__ */ n(l, { children: (d = e.column.columnDef.meta) == null ? void 0 : d.labelCellSubs(t.original, t) })
|
|
16
|
+
] })
|
|
17
|
+
}
|
|
18
|
+
),
|
|
19
|
+
/* @__PURE__ */ n(
|
|
20
|
+
"td",
|
|
21
|
+
{
|
|
22
|
+
"data-section": "right",
|
|
23
|
+
style: {
|
|
24
|
+
...typeof ((r = e.column.columnDef.meta) == null ? void 0 : r.styleTdRightCellSubs) == "function" ? (i = e.column.columnDef.meta) == null ? void 0 : i.styleTdRightCellSubs(t.original, t) : {}
|
|
25
|
+
},
|
|
26
|
+
children: /* @__PURE__ */ u("div", { children: [
|
|
27
|
+
/* @__PURE__ */ n("div", { className: "iru-pr-1", children: ":" }),
|
|
28
|
+
" ",
|
|
29
|
+
h(e.column.columnDef.cell, e.getContext())
|
|
30
|
+
] })
|
|
31
|
+
}
|
|
32
|
+
)
|
|
33
|
+
] }, e.id) : /* @__PURE__ */ n(l, {}) }, s);
|
|
34
|
+
}) }) });
|
|
35
|
+
export {
|
|
36
|
+
b as default
|
|
37
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e={"sub-mobile-payhere-reguler":"_sub-mobile-payhere-reguler_1xirc_1"};exports.default=e;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const n=require("react/jsx-runtime"),t=require("./style.module.scss.cjs"),r=({children:a,id:l,value:e,selected:u,className:s,isHide:d})=>n.jsx("div",{role:"tabpanel",id:l??`1ru-tabpanel-${e}`,className:`${t.default["tab-panel"]} ${d||e!==u?t.default.hidden:""} ${s??""}`,children:a});exports.default=r;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { jsx as p } from "react/jsx-runtime";
|
|
2
|
+
import e from "./style.module.scss.mjs";
|
|
3
|
+
const i = ({ children: t, id: l, value: a, selected: o, className: r, isHide: n }) => /* @__PURE__ */ p(
|
|
4
|
+
"div",
|
|
5
|
+
{
|
|
6
|
+
role: "tabpanel",
|
|
7
|
+
id: l ?? `1ru-tabpanel-${a}`,
|
|
8
|
+
className: `${e["tab-panel"]} ${n || a !== o ? e.hidden : ""} ${r ?? ""}`,
|
|
9
|
+
children: t
|
|
10
|
+
}
|
|
11
|
+
);
|
|
12
|
+
export {
|
|
13
|
+
i as default
|
|
14
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const r=require("react/jsx-runtime"),c=require("react"),o=require("./style.module.scss.cjs"),d=require("./Tabs.config.cjs"),P=({id:S,value:u="",keyValueTab:a="",tabsList:m,className:y,classNameContainer:E,classNameButton:w,variant:g="original-laba-blue-10",size:q="tabs-m",borderRadius:R="0px",disabled:T,animation:H=!0,mountedExecuteChange:C=!0,typeButton:I="button",onChange:j,locale:p})=>{var N;const L=c.useRef([]);let n=m||[];const s=Object.fromEntries(new URL(window.location.href).searchParams.entries()),[l,O]=c.useState(-1),[b,_]=c.useState({height:0,width:0,left:0});n=n.filter(t=>typeof(t==null?void 0:t.isHide)=="boolean"?!t.isHide:!0);const z=t=>{const e=t.currentTarget,i=document.createElement("span"),f=Math.max(e.clientWidth,e.clientHeight),x=f/2;i.style.width=i.style.height=`${f}px`,i.style.left=`${t.clientX-e.getBoundingClientRect().left-x}px`,i.style.top=`${t.clientY-e.getBoundingClientRect().top-x}px`,i.classList.add(o.default.ripple);const h=e.getElementsByClassName(o.default.ripple)[0];h&&h.remove(),e.appendChild(i),setTimeout(()=>{i.remove()},500)},$=(t,e)=>{typeof j=="function"&&j(t,e)},M=c.useCallback((t,e)=>{var i,f;return p&&((f=(i=m.find(h=>h.id===t))==null?void 0:i.locale)==null?void 0:f[p])||e},[p]);return c.useLayoutEffect(()=>{function t(){setTimeout(()=>{const e=L.current[l],i={left:(e==null?void 0:e.offsetLeft)??0,width:(e==null?void 0:e.clientWidth)??0,height:d.configTabs.isContainer.includes(g)?(e==null?void 0:e.clientHeight)||0:4};_(i)},50)}return l>=0&&t(),window.addEventListener("resize",t),()=>window.removeEventListener("resize",t)},[l]),c.useLayoutEffect(()=>{const t=n.findIndex(e=>e.id===(s==null?void 0:s[a])||e.id===u);if((s!=null&&s[a]||u)&&t>=0){O(t);const e=n==null?void 0:n.find(i=>i.id===(s==null?void 0:s[a]));s!=null&&s[a]&&e&&!u&&C&&$(e,"mounted")}t<0&&C&&$(n[0],"mounted")},[JSON.stringify(u),JSON.stringify(s==null?void 0:s[a])]),r.jsx("div",{className:`${o.default["container-tabs"]} ${T?"iru-opacity-50":""} ${E??""}`,children:r.jsxs("div",{className:`${d.configTabs.tabsVariant[g]}
|
|
2
|
+
${d.configTabs.isContainer.includes(g)?d.configTabs.size[q]:""}
|
|
3
|
+
${y??""}
|
|
4
|
+
`,id:S??"1ru-tabs",children:[r.jsx("div",{className:o.default["tabs-list"],children:n.map((t,e)=>r.jsx("button",{type:I,id:`1ru-tabs-button-${t.id}`,ref:i=>{L.current[e]=i},className:`${o.default["button-tabs"]} ${d.configTabs.borderRadius[R]}
|
|
5
|
+
${w??""} ${(t==null?void 0:t.className)??""}
|
|
6
|
+
${l===e?o.default.active:""}`,disabled:T,onClick:i=>{d.configTabs.isContainer.includes(g)||z(i),l!=e&&$(t,"change")},children:M(t.id,t.label)},e))}),r.jsx("div",{className:`${o.default["tabs-slider"]} ${d.configTabs.borderRadius[R]}
|
|
7
|
+
${w??""} ${H?"":o.default["disable-transition"]}
|
|
8
|
+
`,style:{left:b.left,width:b.width,height:b.height,background:((N=m[l])==null?void 0:N.activeColor)??""}})]})})};exports.default=P;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../../config/components/borderRadius.cjs"),a=require("./style.module.scss.cjs"),b={tabsVariant:{"original-laba-blue-10":a.default["original-laba-blue-10"],"container-payhere-brand-base":a.default["container-payhere-brand-base"],"container-payhere-brand-base-bg_white":a.default["container-payhere-brand-base-bg_white"],"container-laba-blue-10":a.default["container-laba-blue-10"],"container-laba-blue-10-bg_white":a.default["container-laba-blue-10-bg_white"],"container-laba-blue-10-bg_blue-01":a.default["container-laba-blue-10-bg_blue-01"],"original-bill-secondary-800":a.default["original-bill-secondary-800"],"container-bill-secondary-800":a.default["container-bill-secondary-800"],"original-payhere-primary-700":a.default["original-payhere-primary-700"]},size:{"tabs-m":a.default["tabs-m"],"tabs-s":a.default["tabs-s"],"tabs-medium":a.default["tabs-medium"],"tabs-small":a.default["tabs-small"]},borderRadius:e.configBorderRadius,isContainer:["container-payhere-brand-base","container-payhere-brand-base-bg_white","container-laba-blue-10","container-laba-blue-10-bg_white","container-laba-blue-10-bg_blue-01","container-bill-secondary-800"]};exports.configTabs=b;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { configBorderRadius as e } from "../../config/components/borderRadius.mjs";
|
|
2
|
+
import a from "./style.module.scss.mjs";
|
|
3
|
+
const r = {
|
|
4
|
+
tabsVariant: {
|
|
5
|
+
"original-laba-blue-10": a["original-laba-blue-10"],
|
|
6
|
+
"container-payhere-brand-base": a["container-payhere-brand-base"],
|
|
7
|
+
"container-payhere-brand-base-bg_white": a["container-payhere-brand-base-bg_white"],
|
|
8
|
+
"container-laba-blue-10": a["container-laba-blue-10"],
|
|
9
|
+
"container-laba-blue-10-bg_white": a["container-laba-blue-10-bg_white"],
|
|
10
|
+
"container-laba-blue-10-bg_blue-01": a["container-laba-blue-10-bg_blue-01"],
|
|
11
|
+
"original-bill-secondary-800": a["original-bill-secondary-800"],
|
|
12
|
+
"container-bill-secondary-800": a["container-bill-secondary-800"],
|
|
13
|
+
"original-payhere-primary-700": a["original-payhere-primary-700"]
|
|
14
|
+
},
|
|
15
|
+
size: {
|
|
16
|
+
"tabs-m": a["tabs-m"],
|
|
17
|
+
"tabs-s": a["tabs-s"],
|
|
18
|
+
"tabs-medium": a["tabs-medium"],
|
|
19
|
+
"tabs-small": a["tabs-small"]
|
|
20
|
+
},
|
|
21
|
+
borderRadius: e,
|
|
22
|
+
isContainer: [
|
|
23
|
+
"container-payhere-brand-base",
|
|
24
|
+
"container-payhere-brand-base-bg_white",
|
|
25
|
+
"container-laba-blue-10",
|
|
26
|
+
"container-laba-blue-10-bg_white",
|
|
27
|
+
"container-laba-blue-10-bg_blue-01",
|
|
28
|
+
"container-bill-secondary-800"
|
|
29
|
+
]
|
|
30
|
+
};
|
|
31
|
+
export {
|
|
32
|
+
r as configTabs
|
|
33
|
+
};
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
import { jsx as p, jsxs as W } from "react/jsx-runtime";
|
|
2
|
+
import c from "react";
|
|
3
|
+
import o from "./style.module.scss.mjs";
|
|
4
|
+
import { configTabs as d } from "./Tabs.config.mjs";
|
|
5
|
+
const Y = ({
|
|
6
|
+
id: y,
|
|
7
|
+
value: r = "",
|
|
8
|
+
keyValueTab: f = "",
|
|
9
|
+
tabsList: g,
|
|
10
|
+
className: H,
|
|
11
|
+
classNameContainer: I,
|
|
12
|
+
classNameButton: u,
|
|
13
|
+
variant: m = "original-laba-blue-10",
|
|
14
|
+
size: j = "tabs-m",
|
|
15
|
+
borderRadius: C = "0px",
|
|
16
|
+
disabled: R,
|
|
17
|
+
animation: z = !0,
|
|
18
|
+
mountedExecuteChange: L = !0,
|
|
19
|
+
typeButton: O = "button",
|
|
20
|
+
onChange: N,
|
|
21
|
+
locale: $
|
|
22
|
+
}) => {
|
|
23
|
+
var S;
|
|
24
|
+
const E = c.useRef([]);
|
|
25
|
+
let n = g || [];
|
|
26
|
+
const s = Object.fromEntries(new URL(window.location.href).searchParams.entries()), [l, B] = c.useState(-1), [b, J] = c.useState({ height: 0, width: 0, left: 0 });
|
|
27
|
+
n = n.filter((e) => typeof (e == null ? void 0 : e.isHide) == "boolean" ? !e.isHide : !0);
|
|
28
|
+
const P = (e) => {
|
|
29
|
+
const t = e.currentTarget, i = document.createElement("span"), a = Math.max(t.clientWidth, t.clientHeight), x = a / 2;
|
|
30
|
+
i.style.width = i.style.height = `${a}px`, i.style.left = `${e.clientX - t.getBoundingClientRect().left - x}px`, i.style.top = `${e.clientY - t.getBoundingClientRect().top - x}px`, i.classList.add(o.ripple);
|
|
31
|
+
const h = t.getElementsByClassName(o.ripple)[0];
|
|
32
|
+
h && h.remove(), t.appendChild(i), setTimeout(() => {
|
|
33
|
+
i.remove();
|
|
34
|
+
}, 500);
|
|
35
|
+
}, w = (e, t) => {
|
|
36
|
+
typeof N == "function" && N(e, t);
|
|
37
|
+
}, T = c.useCallback(
|
|
38
|
+
(e, t) => {
|
|
39
|
+
var i, a;
|
|
40
|
+
return $ && ((a = (i = g.find((h) => h.id === e)) == null ? void 0 : i.locale) == null ? void 0 : a[$]) || t;
|
|
41
|
+
},
|
|
42
|
+
[$]
|
|
43
|
+
);
|
|
44
|
+
return c.useLayoutEffect(() => {
|
|
45
|
+
function e() {
|
|
46
|
+
setTimeout(() => {
|
|
47
|
+
const t = E.current[l], i = {
|
|
48
|
+
left: (t == null ? void 0 : t.offsetLeft) ?? 0,
|
|
49
|
+
width: (t == null ? void 0 : t.clientWidth) ?? 0,
|
|
50
|
+
height: d.isContainer.includes(m) ? (t == null ? void 0 : t.clientHeight) || 0 : 4
|
|
51
|
+
};
|
|
52
|
+
J(i);
|
|
53
|
+
}, 50);
|
|
54
|
+
}
|
|
55
|
+
return l >= 0 && e(), window.addEventListener("resize", e), () => window.removeEventListener("resize", e);
|
|
56
|
+
}, [l]), c.useLayoutEffect(() => {
|
|
57
|
+
const e = n.findIndex((t) => t.id === (s == null ? void 0 : s[f]) || t.id === r);
|
|
58
|
+
if ((s != null && s[f] || r) && e >= 0) {
|
|
59
|
+
B(e);
|
|
60
|
+
const t = n == null ? void 0 : n.find((i) => i.id === (s == null ? void 0 : s[f]));
|
|
61
|
+
s != null && s[f] && t && !r && L && w(t, "mounted");
|
|
62
|
+
}
|
|
63
|
+
e < 0 && L && w(n[0], "mounted");
|
|
64
|
+
}, [JSON.stringify(r), JSON.stringify(s == null ? void 0 : s[f])]), /* @__PURE__ */ p("div", { className: `${o["container-tabs"]} ${R ? "iru-opacity-50" : ""} ${I ?? ""}`, children: /* @__PURE__ */ W(
|
|
65
|
+
"div",
|
|
66
|
+
{
|
|
67
|
+
className: `${d.tabsVariant[m]}
|
|
68
|
+
${d.isContainer.includes(m) ? d.size[j] : ""}
|
|
69
|
+
${H ?? ""}
|
|
70
|
+
`,
|
|
71
|
+
id: y ?? "1ru-tabs",
|
|
72
|
+
children: [
|
|
73
|
+
/* @__PURE__ */ p("div", { className: o["tabs-list"], children: n.map((e, t) => /* @__PURE__ */ p(
|
|
74
|
+
"button",
|
|
75
|
+
{
|
|
76
|
+
type: O,
|
|
77
|
+
id: `1ru-tabs-button-${e.id}`,
|
|
78
|
+
ref: (i) => {
|
|
79
|
+
E.current[t] = i;
|
|
80
|
+
},
|
|
81
|
+
className: `${o["button-tabs"]} ${d.borderRadius[C]}
|
|
82
|
+
${u ?? ""} ${(e == null ? void 0 : e.className) ?? ""}
|
|
83
|
+
${l === t ? o.active : ""}`,
|
|
84
|
+
disabled: R,
|
|
85
|
+
onClick: (i) => {
|
|
86
|
+
d.isContainer.includes(m) || P(i), l != t && w(e, "change");
|
|
87
|
+
},
|
|
88
|
+
children: T(e.id, e.label)
|
|
89
|
+
},
|
|
90
|
+
t
|
|
91
|
+
)) }),
|
|
92
|
+
/* @__PURE__ */ p(
|
|
93
|
+
"div",
|
|
94
|
+
{
|
|
95
|
+
className: `${o["tabs-slider"]} ${d.borderRadius[C]}
|
|
96
|
+
${u ?? ""} ${z ? "" : o["disable-transition"]}
|
|
97
|
+
`,
|
|
98
|
+
style: {
|
|
99
|
+
left: b.left,
|
|
100
|
+
width: b.width,
|
|
101
|
+
height: b.height,
|
|
102
|
+
background: ((S = g[l]) == null ? void 0 : S.activeColor) ?? ""
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
)
|
|
106
|
+
]
|
|
107
|
+
}
|
|
108
|
+
) });
|
|
109
|
+
};
|
|
110
|
+
export {
|
|
111
|
+
Y as default
|
|
112
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const a="_hidden_16p9h_10",e="_ripple_16p9h_143",_="_active_16p9h_150",i={"disable-transition":"_disable-transition_16p9h_1","tab-panel":"_tab-panel_16p9h_5",hidden:a,"tabs-medium":"_tabs-medium_16p9h_15","tabs-list":"_tabs-list_16p9h_18","button-tabs":"_button-tabs_16p9h_18","tabs-small":"_tabs-small_16p9h_31","tabs-m":"_tabs-m_16p9h_15","tabs-s":"_tabs-s_16p9h_31","container-tabs":"_container-tabs_16p9h_111","original-laba-blue-10":"_original-laba-blue-10_16p9h_117",ripple:e,active:_,"tabs-slider":"_tabs-slider_16p9h_158","original-payhere-primary-700":"_original-payhere-primary-700_16p9h_166","container-payhere-brand-base":"_container-payhere-brand-base_16p9h_215","container-payhere-brand-base-bg_white":"_container-payhere-brand-base-bg_white_16p9h_252","container-laba-blue-10":"_container-laba-blue-10_16p9h_289","container-laba-blue-10-bg_white":"_container-laba-blue-10-bg_white_16p9h_326","container-laba-blue-10-bg_blue-01":"_container-laba-blue-10-bg_blue-01_16p9h_363","original-bill-secondary-800":"_original-bill-secondary-800_16p9h_400","container-bill-secondary-800":"_container-bill-secondary-800_16p9h_449"};exports.active=_;exports.default=i;exports.hidden=a;exports.ripple=e;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
const a = "_hidden_16p9h_10", _ = "_ripple_16p9h_143", e = "_active_16p9h_150", b = {
|
|
2
|
+
"disable-transition": "_disable-transition_16p9h_1",
|
|
3
|
+
"tab-panel": "_tab-panel_16p9h_5",
|
|
4
|
+
hidden: a,
|
|
5
|
+
"tabs-medium": "_tabs-medium_16p9h_15",
|
|
6
|
+
"tabs-list": "_tabs-list_16p9h_18",
|
|
7
|
+
"button-tabs": "_button-tabs_16p9h_18",
|
|
8
|
+
"tabs-small": "_tabs-small_16p9h_31",
|
|
9
|
+
"tabs-m": "_tabs-m_16p9h_15",
|
|
10
|
+
"tabs-s": "_tabs-s_16p9h_31",
|
|
11
|
+
"container-tabs": "_container-tabs_16p9h_111",
|
|
12
|
+
"original-laba-blue-10": "_original-laba-blue-10_16p9h_117",
|
|
13
|
+
ripple: _,
|
|
14
|
+
active: e,
|
|
15
|
+
"tabs-slider": "_tabs-slider_16p9h_158",
|
|
16
|
+
"original-payhere-primary-700": "_original-payhere-primary-700_16p9h_166",
|
|
17
|
+
"container-payhere-brand-base": "_container-payhere-brand-base_16p9h_215",
|
|
18
|
+
"container-payhere-brand-base-bg_white": "_container-payhere-brand-base-bg_white_16p9h_252",
|
|
19
|
+
"container-laba-blue-10": "_container-laba-blue-10_16p9h_289",
|
|
20
|
+
"container-laba-blue-10-bg_white": "_container-laba-blue-10-bg_white_16p9h_326",
|
|
21
|
+
"container-laba-blue-10-bg_blue-01": "_container-laba-blue-10-bg_blue-01_16p9h_363",
|
|
22
|
+
"original-bill-secondary-800": "_original-bill-secondary-800_16p9h_400",
|
|
23
|
+
"container-bill-secondary-800": "_container-bill-secondary-800_16p9h_449"
|
|
24
|
+
};
|
|
25
|
+
export {
|
|
26
|
+
e as active,
|
|
27
|
+
b as default,
|
|
28
|
+
a as hidden,
|
|
29
|
+
_ as ripple
|
|
30
|
+
};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const R=require("react/jsx-runtime"),r=require("react");let s=null;const S=({id:y,children:c,wordBreak:l="normal",style:b,...v})=>{const f=r.useRef(null),u=r.useMemo(()=>c.split(" "),[c]),[x,g]=r.useState(l),i=r.useCallback((e,a,d)=>{let t=0;if(s||(s=document.createElement("canvas").getContext("2d")),!s)return;const n=window.getComputedStyle(a);s.font=`${n.fontStyle}
|
|
2
|
+
${n.fontVariant}
|
|
3
|
+
${n.fontWeight}
|
|
4
|
+
${n.fontSize}
|
|
5
|
+
${n.fontFamily}`;for(const o of d){const w=s.measureText(o).width;w>t&&(t=w)}const m=t>e?"break-all":"normal";g(o=>o!==m?m:o)},[]);return r.useEffect(()=>{if(l!=="break-all")return;const e=f.current;if(!e)return;const a=new ResizeObserver(d=>{for(const t of d)i(t.contentRect.width,e,u)});return a.observe(e),i(e.getBoundingClientRect().width,e,u),()=>{a.disconnect()}},[u,l,i]),R.jsx("p",{ref:f,id:y,style:{...b,wordBreak:x},...v,children:c})};exports.default=S;
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { jsx as k } from "react/jsx-runtime";
|
|
2
|
+
import { useRef as p, useMemo as v, useState as C, useCallback as g, useEffect as h } from "react";
|
|
3
|
+
let r = null;
|
|
4
|
+
const $ = ({ id: w, children: a, wordBreak: c = "normal", style: x, ...y }) => {
|
|
5
|
+
const u = p(null), l = v(() => a.split(" "), [a]), [W, b] = C(c), f = g(
|
|
6
|
+
(t, s, i) => {
|
|
7
|
+
let e = 0;
|
|
8
|
+
if (r || (r = document.createElement("canvas").getContext("2d")), !r) return;
|
|
9
|
+
const n = window.getComputedStyle(s);
|
|
10
|
+
r.font = `${n.fontStyle}
|
|
11
|
+
${n.fontVariant}
|
|
12
|
+
${n.fontWeight}
|
|
13
|
+
${n.fontSize}
|
|
14
|
+
${n.fontFamily}`;
|
|
15
|
+
for (const o of i) {
|
|
16
|
+
const m = r.measureText(o).width;
|
|
17
|
+
m > e && (e = m);
|
|
18
|
+
}
|
|
19
|
+
const d = e > t ? "break-all" : "normal";
|
|
20
|
+
b((o) => o !== d ? d : o);
|
|
21
|
+
},
|
|
22
|
+
[]
|
|
23
|
+
);
|
|
24
|
+
return h(() => {
|
|
25
|
+
if (c !== "break-all") return;
|
|
26
|
+
const t = u.current;
|
|
27
|
+
if (!t) return;
|
|
28
|
+
const s = new ResizeObserver((i) => {
|
|
29
|
+
for (const e of i)
|
|
30
|
+
f(e.contentRect.width, t, l);
|
|
31
|
+
});
|
|
32
|
+
return s.observe(t), f(t.getBoundingClientRect().width, t, l), () => {
|
|
33
|
+
s.disconnect();
|
|
34
|
+
};
|
|
35
|
+
}, [l, c, f]), /* @__PURE__ */ k("p", { ref: u, id: w, style: { ...x, wordBreak: W }, ...y, children: a });
|
|
36
|
+
};
|
|
37
|
+
export {
|
|
38
|
+
$ as default
|
|
39
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("react/jsx-runtime"),r=require("../../config/components/tinymce.cjs"),i=require("../../utils/common.cjs"),u=require("./style.module.scss.cjs"),c=require("@tinymce/tinymce-react"),l=e=>t.jsx("div",{className:`${u.default.container}`,children:t.jsx(c.Editor,{...i.mergeObjects(r.default({label:e.label}),e)})});exports.default=l;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { jsx as t } from "react/jsx-runtime";
|
|
2
|
+
import e from "../../config/components/tinymce.mjs";
|
|
3
|
+
import { mergeObjects as o } from "../../utils/common.mjs";
|
|
4
|
+
import m from "./style.module.scss.mjs";
|
|
5
|
+
import { Editor as i } from "@tinymce/tinymce-react";
|
|
6
|
+
const s = (r) => /* @__PURE__ */ t("div", { className: `${m.container}`, children: /* @__PURE__ */ t(i, { ...o(e({ label: r.label }), r) }) });
|
|
7
|
+
export {
|
|
8
|
+
s as default
|
|
9
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e="_container_pqghk_1",t={container:e};exports.container=e;exports.default=t;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const r=require("react/jsx-runtime"),c=require("react"),a=require("./style.module.scss.cjs"),F=require("../../hooks/useMergeRefs.cjs"),H=require("../../hooks/useCombinedResizeObserver.cjs"),o=require("./Textarea.config.cjs"),$=c.forwardRef((s,y)=>{const{isRequired:v,classNameContainer:N,className:R,classNameLabel:j,classNameLabelError:T,name:d,id:f,label:m,error:l,height:q,minHeight:x=94,maxHeight:L=150,style:E,sizeInput:M="m",variant:h="solid-blue-300",...i}=s,n=c.useRef(null),S=F.useMergeRefs(n,y),_={...E??{},maxHeight:L,height:q??x,minHeight:x},[b,g]=c.useState(!1),w=function(e){var t;g(!0),(t=s.onFocus)==null||t.call(s,e)},z=function(e){var t;g(!1),(t=s.onBlur)==null||t.call(s,e)},u=function(e){const t=(e==null?void 0:e.target)??n.current;t.style.height="0px",t.style.height=t.scrollHeight+o.configTextarea.variant[h].border+"px"};return H.useIsomorphicLayoutEffect(()=>(b&&n.current?n.current.addEventListener("input",u):u(),()=>{var e;(e=n.current)==null||e.removeEventListener("input",u)}),[b]),r.jsxs("div",{className:`${a.default.container}
|
|
2
|
+
${o.configTextarea.size[M]}
|
|
3
|
+
${o.configTextarea.variant[h].style}
|
|
4
|
+
${N??""}`,children:[m&&r.jsxs("label",{htmlFor:f??d,className:`${a.default.label} ${i.disabled?a.default.disabled:""} ${j??""}`,children:[m," ",v&&r.jsx("span",{className:"iru-text-laba-red-08",children:"*"})]}),r.jsx("div",{className:`${a.default["container-textarea"]}`,children:r.jsx("textarea",{id:f??d,className:` ${l?a.default.error:""}
|
|
5
|
+
${a.default.textarea}
|
|
6
|
+
${R??""}`,ref:S,style:_,...i,onFocus:w,onBlur:z})}),l&&r.jsx("label",{className:`${a.default["label-error"]}
|
|
7
|
+
${i.disabled?a.default.disabled:""} ${T??""}`,children:l})]})});$.displayName="Textarea";exports.default=$;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./style.module.scss.cjs"),l={size:{m:e.default["size-m"],medium:e.default["size-medium"],"medium-border-bottom":e.default["size-medium-border-bottom"]},variant:{"solid-blue-300":{border:0,style:e.default["solid-blue-300"]},"dashed-blue-300":{border:3.7,style:e.default["dashed-blue-300"]},"solid-laba-blue-10":{border:0,style:e.default["solid-laba-blue-10"]},"dashed-laba-blue-10":{border:3.7,style:e.default["dashed-laba-blue-10"]},"border-bottom-laba-blue-08":{border:1,style:e.default["border-bottom-laba-blue-08"]}}};exports.configTextarea=l;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import e from "./style.module.scss.mjs";
|
|
2
|
+
const l = {
|
|
3
|
+
size: {
|
|
4
|
+
m: e["size-m"],
|
|
5
|
+
medium: e["size-medium"],
|
|
6
|
+
"medium-border-bottom": e["size-medium-border-bottom"]
|
|
7
|
+
},
|
|
8
|
+
variant: {
|
|
9
|
+
"solid-blue-300": {
|
|
10
|
+
border: 0,
|
|
11
|
+
style: e["solid-blue-300"]
|
|
12
|
+
},
|
|
13
|
+
"dashed-blue-300": {
|
|
14
|
+
border: 3.7,
|
|
15
|
+
style: e["dashed-blue-300"]
|
|
16
|
+
},
|
|
17
|
+
"solid-laba-blue-10": {
|
|
18
|
+
border: 0,
|
|
19
|
+
style: e["solid-laba-blue-10"]
|
|
20
|
+
},
|
|
21
|
+
"dashed-laba-blue-10": {
|
|
22
|
+
border: 3.7,
|
|
23
|
+
style: e["dashed-laba-blue-10"]
|
|
24
|
+
},
|
|
25
|
+
"border-bottom-laba-blue-08": {
|
|
26
|
+
border: 1,
|
|
27
|
+
style: e["border-bottom-laba-blue-08"]
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
};
|
|
31
|
+
export {
|
|
32
|
+
l as configTextarea
|
|
33
|
+
};
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
import { jsxs as g, jsx as s } from "react/jsx-runtime";
|
|
2
|
+
import c from "react";
|
|
3
|
+
import a from "./style.module.scss.mjs";
|
|
4
|
+
import { useMergeRefs as S } from "../../hooks/useMergeRefs.mjs";
|
|
5
|
+
import { useIsomorphicLayoutEffect as p } from "../../hooks/useCombinedResizeObserver.mjs";
|
|
6
|
+
import { configTextarea as m } from "./Textarea.config.mjs";
|
|
7
|
+
const q = c.forwardRef((r, y) => {
|
|
8
|
+
const {
|
|
9
|
+
isRequired: N,
|
|
10
|
+
classNameContainer: v,
|
|
11
|
+
className: R,
|
|
12
|
+
classNameLabel: L,
|
|
13
|
+
classNameLabelError: E,
|
|
14
|
+
name: u,
|
|
15
|
+
id: d,
|
|
16
|
+
label: f,
|
|
17
|
+
error: l,
|
|
18
|
+
height: T,
|
|
19
|
+
minHeight: h = 94,
|
|
20
|
+
maxHeight: w = 150,
|
|
21
|
+
style: F,
|
|
22
|
+
sizeInput: H = "m",
|
|
23
|
+
variant: b = "solid-blue-300",
|
|
24
|
+
...i
|
|
25
|
+
} = r, n = c.useRef(null), I = S(n, y), j = { ...F ?? {}, maxHeight: w, height: T ?? h, minHeight: h }, [x, $] = c.useState(!1), z = function(e) {
|
|
26
|
+
var t;
|
|
27
|
+
$(!0), (t = r.onFocus) == null || t.call(r, e);
|
|
28
|
+
}, B = function(e) {
|
|
29
|
+
var t;
|
|
30
|
+
$(!1), (t = r.onBlur) == null || t.call(r, e);
|
|
31
|
+
}, o = function(e) {
|
|
32
|
+
const t = (e == null ? void 0 : e.target) ?? n.current;
|
|
33
|
+
t.style.height = "0px", t.style.height = t.scrollHeight + m.variant[b].border + "px";
|
|
34
|
+
};
|
|
35
|
+
return p(() => (x && n.current ? n.current.addEventListener("input", o) : o(), () => {
|
|
36
|
+
var e;
|
|
37
|
+
(e = n.current) == null || e.removeEventListener("input", o);
|
|
38
|
+
}), [x]), /* @__PURE__ */ g(
|
|
39
|
+
"div",
|
|
40
|
+
{
|
|
41
|
+
className: `${a.container}
|
|
42
|
+
${m.size[H]}
|
|
43
|
+
${m.variant[b].style}
|
|
44
|
+
${v ?? ""}`,
|
|
45
|
+
children: [
|
|
46
|
+
f && /* @__PURE__ */ g(
|
|
47
|
+
"label",
|
|
48
|
+
{
|
|
49
|
+
htmlFor: d ?? u,
|
|
50
|
+
className: `${a.label} ${i.disabled ? a.disabled : ""} ${L ?? ""}`,
|
|
51
|
+
children: [
|
|
52
|
+
f,
|
|
53
|
+
" ",
|
|
54
|
+
N && /* @__PURE__ */ s("span", { className: "iru-text-laba-red-08", children: "*" })
|
|
55
|
+
]
|
|
56
|
+
}
|
|
57
|
+
),
|
|
58
|
+
/* @__PURE__ */ s("div", { className: `${a["container-textarea"]}`, children: /* @__PURE__ */ s(
|
|
59
|
+
"textarea",
|
|
60
|
+
{
|
|
61
|
+
id: d ?? u,
|
|
62
|
+
className: ` ${l ? a.error : ""}
|
|
63
|
+
${a.textarea}
|
|
64
|
+
${R ?? ""}`,
|
|
65
|
+
ref: I,
|
|
66
|
+
style: j,
|
|
67
|
+
...i,
|
|
68
|
+
onFocus: z,
|
|
69
|
+
onBlur: B
|
|
70
|
+
}
|
|
71
|
+
) }),
|
|
72
|
+
l && /* @__PURE__ */ s(
|
|
73
|
+
"label",
|
|
74
|
+
{
|
|
75
|
+
className: `${a["label-error"]}
|
|
76
|
+
${i.disabled ? a.disabled : ""} ${E ?? ""}`,
|
|
77
|
+
children: l
|
|
78
|
+
}
|
|
79
|
+
)
|
|
80
|
+
]
|
|
81
|
+
}
|
|
82
|
+
);
|
|
83
|
+
});
|
|
84
|
+
q.displayName = "Textarea";
|
|
85
|
+
export {
|
|
86
|
+
q as default
|
|
87
|
+
};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const l=require("react/jsx-runtime"),r=require("react"),a=require("./TextareaFloatingInner.module.scss.cjs"),A=require("../../hooks/useMergeRefs.cjs"),D=require("../../hooks/useCombinedResizeObserver.cjs"),G=require("./TextareaFloatingInner.config.cjs"),y=r.forwardRef((s,N)=>{const{isRequired:T,classNameContainer:I,className:j,classNameLabel:F,classNameLabelError:q,name:o,id:f,label:d,error:i,height:H,minHeight:h=94,maxHeight:L=150,style:S,sizeInput:w="medium",translateLabel:E=20,autoTranslateLabel:M=!1,...u}=s,n=r.useRef(null),V=A.useMergeRefs(n,N),g=r.useRef(null),Y={...S??{},maxHeight:L,height:H??h,minHeight:h},[m,x]=r.useState(!1),[_,b]=r.useState(!1),[z,B]=r.useState(E),$=()=>{var e;["",void 0,null].includes(u.value)||["",void 0,null].includes((e=n.current)==null?void 0:e.value)?(b(!1),M&&setTimeout(()=>{var R,v;const t=((R=n.current)==null?void 0:R.offsetHeight)??0,P=((v=g.current)==null?void 0:v.offsetHeight)??0,k=(t-P)/2;B(k)},100)):b(!0)},C=function(e){var t;x(!0),$(),(t=s.onFocus)==null||t.call(s,e)},O=function(e){var t;x(!1),(t=s.onBlur)==null||t.call(s,e)},c=function(e){$();const t=(e==null?void 0:e.target)??n.current;t.style.height="0px",t.style.height=t.scrollHeight+"px"};return D.useIsomorphicLayoutEffect(()=>(m&&n.current?n.current.addEventListener("input",c):c(),()=>{var e;(e=n.current)==null||e.removeEventListener("input",c)}),[m]),l.jsxs("div",{className:`${a.default.container}
|
|
2
|
+
${G.configTextareaFloatingInner.size[w]}
|
|
3
|
+
${I??""}`,children:[l.jsxs("div",{className:`${a.default["container-textarea"]}`,children:[l.jsx("textarea",{id:f??o,className:`${_?"":a.default["placeholder-shown"]} ${i?a.default.error:""}
|
|
4
|
+
${a.default.textarea}
|
|
5
|
+
${j??""}`,ref:V,style:Y,...u,onFocus:C,onBlur:O}),d&&l.jsxs("label",{htmlFor:f??o,ref:g,style:{transform:`translateY(${z}px)`},className:`${a.default.label} ${F??""}`,children:[d," ",T&&l.jsx("span",{className:"iru-text-laba-red-08",children:"*"})]})]}),i&&l.jsx("label",{className:`${a.default["label-error"]}
|
|
6
|
+
${u.disabled?a.default.disabled:""} ${q??""}`,children:i})]})});y.displayName="TextareaFloatingInner";exports.default=y;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./TextareaFloatingInner.module.scss.cjs"),n={size:{medium:e.default["size-medium"]}};exports.configTextareaFloatingInner=n;
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
import { jsxs as c, jsx as u } from "react/jsx-runtime";
|
|
2
|
+
import l from "react";
|
|
3
|
+
import a from "./TextareaFloatingInner.module.scss.mjs";
|
|
4
|
+
import { useMergeRefs as D } from "../../hooks/useMergeRefs.mjs";
|
|
5
|
+
import { useIsomorphicLayoutEffect as G } from "../../hooks/useCombinedResizeObserver.mjs";
|
|
6
|
+
import { configTextareaFloatingInner as J } from "./TextareaFloatingInner.config.mjs";
|
|
7
|
+
const K = l.forwardRef((n, v) => {
|
|
8
|
+
const {
|
|
9
|
+
isRequired: H,
|
|
10
|
+
classNameContainer: I,
|
|
11
|
+
className: L,
|
|
12
|
+
classNameLabel: T,
|
|
13
|
+
classNameLabelError: F,
|
|
14
|
+
name: f,
|
|
15
|
+
id: m,
|
|
16
|
+
label: d,
|
|
17
|
+
error: r,
|
|
18
|
+
height: w,
|
|
19
|
+
minHeight: h = 94,
|
|
20
|
+
maxHeight: E = 150,
|
|
21
|
+
style: S,
|
|
22
|
+
sizeInput: V = "medium",
|
|
23
|
+
translateLabel: Y = 20,
|
|
24
|
+
autoTranslateLabel: p = !1,
|
|
25
|
+
...i
|
|
26
|
+
} = n, s = l.useRef(null), j = D(s, v), g = l.useRef(null), z = { ...S ?? {}, maxHeight: E, height: w ?? h, minHeight: h }, [x, b] = l.useState(!1), [B, $] = l.useState(!1), [k, q] = l.useState(Y), y = () => {
|
|
27
|
+
var e;
|
|
28
|
+
["", void 0, null].includes(i.value) || ["", void 0, null].includes((e = s.current) == null ? void 0 : e.value) ? ($(!1), p && setTimeout(() => {
|
|
29
|
+
var N, R;
|
|
30
|
+
const t = ((N = s.current) == null ? void 0 : N.offsetHeight) ?? 0, P = ((R = g.current) == null ? void 0 : R.offsetHeight) ?? 0, A = (t - P) / 2;
|
|
31
|
+
q(A);
|
|
32
|
+
}, 100)) : $(!0);
|
|
33
|
+
}, C = function(e) {
|
|
34
|
+
var t;
|
|
35
|
+
b(!0), y(), (t = n.onFocus) == null || t.call(n, e);
|
|
36
|
+
}, M = function(e) {
|
|
37
|
+
var t;
|
|
38
|
+
b(!1), (t = n.onBlur) == null || t.call(n, e);
|
|
39
|
+
}, o = function(e) {
|
|
40
|
+
y();
|
|
41
|
+
const t = (e == null ? void 0 : e.target) ?? s.current;
|
|
42
|
+
t.style.height = "0px", t.style.height = t.scrollHeight + "px";
|
|
43
|
+
};
|
|
44
|
+
return G(() => (x && s.current ? s.current.addEventListener("input", o) : o(), () => {
|
|
45
|
+
var e;
|
|
46
|
+
(e = s.current) == null || e.removeEventListener("input", o);
|
|
47
|
+
}), [x]), /* @__PURE__ */ c(
|
|
48
|
+
"div",
|
|
49
|
+
{
|
|
50
|
+
className: `${a.container}
|
|
51
|
+
${J.size[V]}
|
|
52
|
+
${I ?? ""}`,
|
|
53
|
+
children: [
|
|
54
|
+
/* @__PURE__ */ c("div", { className: `${a["container-textarea"]}`, children: [
|
|
55
|
+
/* @__PURE__ */ u(
|
|
56
|
+
"textarea",
|
|
57
|
+
{
|
|
58
|
+
id: m ?? f,
|
|
59
|
+
className: `${B ? "" : a["placeholder-shown"]} ${r ? a.error : ""}
|
|
60
|
+
${a.textarea}
|
|
61
|
+
${L ?? ""}`,
|
|
62
|
+
ref: j,
|
|
63
|
+
style: z,
|
|
64
|
+
...i,
|
|
65
|
+
onFocus: C,
|
|
66
|
+
onBlur: M
|
|
67
|
+
}
|
|
68
|
+
),
|
|
69
|
+
d && /* @__PURE__ */ c(
|
|
70
|
+
"label",
|
|
71
|
+
{
|
|
72
|
+
htmlFor: m ?? f,
|
|
73
|
+
ref: g,
|
|
74
|
+
style: {
|
|
75
|
+
transform: `translateY(${k}px)`
|
|
76
|
+
},
|
|
77
|
+
className: `${a.label} ${T ?? ""}`,
|
|
78
|
+
children: [
|
|
79
|
+
d,
|
|
80
|
+
" ",
|
|
81
|
+
H && /* @__PURE__ */ u("span", { className: "iru-text-laba-red-08", children: "*" })
|
|
82
|
+
]
|
|
83
|
+
}
|
|
84
|
+
)
|
|
85
|
+
] }),
|
|
86
|
+
r && /* @__PURE__ */ u(
|
|
87
|
+
"label",
|
|
88
|
+
{
|
|
89
|
+
className: `${a["label-error"]}
|
|
90
|
+
${i.disabled ? a.disabled : ""} ${F ?? ""}`,
|
|
91
|
+
children: r
|
|
92
|
+
}
|
|
93
|
+
)
|
|
94
|
+
]
|
|
95
|
+
}
|
|
96
|
+
);
|
|
97
|
+
});
|
|
98
|
+
K.displayName = "TextareaFloatingInner";
|
|
99
|
+
export {
|
|
100
|
+
K as default
|
|
101
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e="_container_1k2ib_1",r="_textarea_1k2ib_12",t="_label_1k2ib_63",a="_error_1k2ib_79",o={container:e,"size-medium":"_size-medium_1k2ib_1","container-textarea":"_container-textarea_1k2ib_6",textarea:r,"placeholder-shown":"_placeholder-shown_1k2ib_47",label:t,error:a,"label-error":"_label-error_1k2ib_117"};exports.container=e;exports.default=o;exports.error=a;exports.label=t;exports.textarea=r;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
const e = "_container_1k2ib_1", r = "_textarea_1k2ib_12", a = "_label_1k2ib_63", _ = "_error_1k2ib_79", t = {
|
|
2
|
+
container: e,
|
|
3
|
+
"size-medium": "_size-medium_1k2ib_1",
|
|
4
|
+
"container-textarea": "_container-textarea_1k2ib_6",
|
|
5
|
+
textarea: r,
|
|
6
|
+
"placeholder-shown": "_placeholder-shown_1k2ib_47",
|
|
7
|
+
label: a,
|
|
8
|
+
error: _,
|
|
9
|
+
"label-error": "_label-error_1k2ib_117"
|
|
10
|
+
};
|
|
11
|
+
export {
|
|
12
|
+
e as container,
|
|
13
|
+
t as default,
|
|
14
|
+
_ as error,
|
|
15
|
+
a as label,
|
|
16
|
+
r as textarea
|
|
17
|
+
};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const r=require("react/jsx-runtime"),c=require("react"),_=require("../../hooks/useCombinedResizeObserver.cjs"),w=require("../../hooks/useMergeRefs.cjs"),a=require("./TextareaInnerLabel.module.scss.cjs"),z=require("./TextareaInnerLabel.config.cjs"),x=c.forwardRef((n,g)=>{const{isRequired:$,classNameContainer:y,className:R,classNameLabel:L,classNameLabelError:N,name:o,id:d,label:f,error:l,height:j,minHeight:b=94,maxHeight:v=150,style:I,sizeInput:q="large",...i}=n,s=c.useRef(null),T=w.useMergeRefs(s,g),E={...I??{},maxHeight:v,height:j??b,minHeight:b},[m,h]=c.useState(!1),M=function(e){var t;h(!0),(t=n.onFocus)==null||t.call(n,e)},S=function(e){var t;h(!1),(t=n.onBlur)==null||t.call(n,e)},u=function(e){const t=(e==null?void 0:e.target)??s.current;t.style.height="0px",t.style.height=t.scrollHeight+"px"};return _.useIsomorphicLayoutEffect(()=>(m&&s.current?s.current.addEventListener("input",u):u(),()=>{var e;(e=s.current)==null||e.removeEventListener("input",u)}),[m]),r.jsxs("div",{className:`${a.default.container}
|
|
2
|
+
${z.configTextareaInnerLabel.size[q]}
|
|
3
|
+
${y??""}`,children:[r.jsxs("div",{className:`${a.default["container-textarea"]}`,children:[r.jsx("textarea",{id:d??o,className:` ${l?a.default.error:""}
|
|
4
|
+
${a.default.textarea}
|
|
5
|
+
${R??""}`,ref:T,style:E,...i,onFocus:M,onBlur:S}),f&&r.jsxs("label",{htmlFor:d??o,className:`${a.default.label} ${i.disabled?a.default.disabled:""} ${L??""}`,children:[f," ",$&&r.jsx("span",{children:"*"})]})]}),l&&r.jsx("label",{className:`${a.default["label-error"]}
|
|
6
|
+
${i.disabled?a.default.disabled:""} ${N??""}`,children:l})]})});x.displayName="TextareaInnerLabel";exports.default=x;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./TextareaInnerLabel.module.scss.cjs"),a={size:{large:e.default["size-large"],small:e.default["size-small"]}};exports.configTextareaInnerLabel=a;
|