@cagatayfdn/flora-components 0.0.71 → 0.0.73
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/Accordion.css +1 -0
- package/dist/ActionButton.css +1 -0
- package/dist/AlertCard.css +1 -0
- package/dist/Autocomplete.css +1 -0
- package/dist/Button.css +1 -0
- package/dist/Card.css +1 -0
- package/dist/Checkbox.css +1 -0
- package/dist/Config.css +1 -0
- package/dist/Confirm.css +1 -0
- package/dist/ContentHeader.css +1 -0
- package/dist/Datepicker.css +1 -0
- package/dist/Divider.css +1 -0
- package/dist/DropdownList.css +1 -0
- package/dist/ErrorLogModal.css +1 -0
- package/dist/FileUpload.css +1 -0
- package/dist/FileUpload.module-bCNvwTRa.js +32 -0
- package/dist/Heading.css +1 -0
- package/dist/InfoBoxList.css +1 -0
- package/dist/InfoBoxList.module-C6t2KDOB.js +8 -0
- package/dist/InfoDate.css +1 -0
- package/dist/InfoText.css +1 -0
- package/dist/Input.css +1 -0
- package/dist/Label.css +1 -0
- package/dist/Legends.css +1 -0
- package/dist/Loading.css +1 -0
- package/dist/MenuItem-BGZHvTKI.js +53 -0
- package/dist/MenuItem.css +1 -0
- package/dist/Modal.css +1 -0
- package/dist/NoResult.css +1 -0
- package/dist/PageWrap.css +1 -0
- package/dist/Pager.css +1 -0
- package/dist/Panel.css +1 -0
- package/dist/Radio.css +1 -0
- package/dist/ResultError.css +1 -0
- package/dist/ScrollContainer.css +1 -0
- package/dist/Select-DcLZCXNo.js +1831 -0
- package/dist/Select.css +1 -0
- package/dist/Select.module-BVWgPUEN.js +20 -0
- package/dist/StatusTypography.css +1 -0
- package/dist/Stepper.css +1 -0
- package/dist/Switch.css +1 -0
- package/dist/Tab.css +1 -0
- package/dist/TableHeader-B91BXue0.js +159 -0
- package/dist/TableHeader.css +1 -0
- package/dist/Textarea.css +1 -0
- package/dist/Tooltip.css +1 -0
- package/dist/Trans-B4ILpbwK.js +343 -0
- package/dist/TypographyText.css +1 -0
- package/dist/ValidationError.css +1 -0
- package/dist/_commonjsHelpers-CT_km90n.js +30 -0
- package/dist/_isArray-CBUZFxFA.js +6 -0
- package/dist/_isString-BUpNGP_8.js +6 -0
- package/dist/_reduce-DsUCMz4O.js +148 -0
- package/dist/assets/icons/icons.js +62 -0
- package/dist/assets/images/500_error_2x.gif +0 -0
- package/dist/assets/images/oms.png +0 -0
- package/dist/components/Accordion/Accordion.js +57 -0
- package/dist/components/ActionButton/ActionButton.js +54 -0
- package/dist/components/AlertCard/AlertCard.js +29 -0
- package/dist/components/AuthUserCan/Permission.js +18 -0
- package/dist/components/AuthUserCan/index.js +23 -0
- package/dist/components/Autocomplete/Autocomplete.js +87 -0
- package/dist/components/Button/Button.js +87 -0
- package/dist/components/Card/Card.js +21 -0
- package/dist/components/Charts/Bar.js +18 -0
- package/dist/components/Charts/Legends.js +21 -0
- package/dist/components/Charts/Line.js +18 -0
- package/dist/components/Charts/Pie.js +43 -0
- package/dist/components/Charts/index.js +31 -0
- package/dist/components/Charts/types.js +1 -0
- package/dist/components/Charts/utils.js +12 -0
- package/dist/components/Checkbox/Checkbox.js +119 -0
- package/dist/components/Config/Config.js +32 -0
- package/dist/components/Confirm/Confirm.js +52 -0
- package/dist/components/ContentHeader/ContentHeader.js +75 -0
- package/dist/components/ContentLoader/ContentLoader.js +16 -0
- package/dist/components/Countdown/Countdown.js +20 -0
- package/dist/components/Datepicker/Datepicker.js +1478 -0
- package/dist/components/Divider/Divider.js +26 -0
- package/dist/components/Dropdown/DropdownList.js +90 -0
- package/dist/components/ErrorLogModal/ErrorLogModal.js +63 -0
- package/dist/components/FileUpload/FileUpload.js +237 -0
- package/dist/components/FileUpload/ImagePreview.js +19 -0
- package/dist/components/FileUpload/LengthCard.js +6 -0
- package/dist/components/FileUpload/PreviewModal.js +53 -0
- package/dist/components/Grid/Column.js +29 -0
- package/dist/components/Grid/Row.js +6 -0
- package/dist/components/Heading/Heading.js +22 -0
- package/dist/components/Icon/index.js +24 -0
- package/dist/components/InfiniteScroll/InfiniteScroll.js +41 -0
- package/dist/components/InfoBoxList/InfoBoxList.js +30 -0
- package/dist/components/InfoBoxList/helper.js +83 -0
- package/dist/components/InfoDate/InfoDate.js +19 -0
- package/dist/components/InfoText/InfoText.js +13 -0
- package/dist/components/Input/Input.js +140 -0
- package/dist/components/Label/Label.js +22 -0
- package/dist/components/Loading/Loading.js +62 -0
- package/dist/components/Modal/Modal.js +57 -0
- package/dist/components/NavigatorCard/index.js +59 -0
- package/dist/components/NoResult/NoResult.js +12 -0
- package/dist/components/Notification/Notification.js +26 -0
- package/dist/components/PageWrapper/PageWrap.js +46 -0
- package/dist/components/Pager/Pager.js +103 -0
- package/dist/components/Panel/Panel.js +69 -0
- package/dist/components/PermaLink/PermaLink.js +34 -0
- package/dist/components/Radio/Radio.js +96 -0
- package/dist/components/ResultError/ResultError.js +20 -0
- package/dist/components/ScrollContainer/ScrollContainer.js +21 -0
- package/dist/components/Select/NoData.js +10 -0
- package/dist/components/Select/OptionItem.js +19 -0
- package/dist/components/Select/Select.js +13 -0
- package/dist/components/Sidebar/MenuItem.js +9 -0
- package/dist/components/Sidebar/index.js +137 -0
- package/dist/components/StatusTypography/StatusTypography.js +51 -0
- package/dist/components/Stepper/Stepper.js +72 -0
- package/dist/components/Switch/Switch.js +79 -0
- package/dist/components/Tab/Tab.js +28 -0
- package/dist/components/Table/Table.js +201 -0
- package/dist/components/Table/TableHeader.js +14 -0
- package/dist/components/Textarea/Textarea.js +95 -0
- package/dist/components/Tooltip/Tooltip.js +1548 -0
- package/dist/components/TypographyText/TypographyText.js +87 -0
- package/dist/components/ValidationError/ValidationError.js +7 -0
- package/dist/components/index.js +125 -0
- package/dist/defineProperty-DeKy1XT0.js +37 -0
- package/dist/enums/appearance.js +14 -0
- package/dist/enums/applicationTypeSlug.js +4 -0
- package/dist/enums/index.js +27 -0
- package/dist/enums/isActiveColor.js +4 -0
- package/dist/enums/size.js +4 -0
- package/dist/enums/status.js +9 -0
- package/dist/equals-PL9KqVQf.js +119 -0
- package/dist/flatpickr-CRz1AV0e.js +59 -0
- package/dist/hooks/index.js +9 -0
- package/dist/hooks/useAauth.js +40 -0
- package/dist/hooks/useDisclosure.js +14 -0
- package/dist/hooks/useNiceModal.js +13 -0
- package/dist/i18nInstance-CiCZbaCK.js +55 -0
- package/dist/includes-8YTFrx85.js +46 -0
- package/dist/index-BHf7G3IG.js +35 -0
- package/dist/index-BJU1K2Aw.js +8003 -0
- package/dist/index-C9yacAGx.js +359 -0
- package/dist/index-CB61CB0b.js +669 -0
- package/dist/index-H7XbDVmH.js +320 -0
- package/dist/index-a0GSBrWt.js +364 -0
- package/dist/index.css +1 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +181 -0
- package/dist/jsx-runtime-BcAkpsdy.js +631 -0
- package/dist/keys-B0bo5Q7o.js +67 -0
- package/dist/locales/en/index.js +613 -0
- package/dist/locales/i18n.js +1417 -0
- package/dist/locales/index.js +5 -0
- package/dist/locales/tr/index.js +613 -0
- package/dist/prodivers.css +6 -0
- package/dist/prodivers.js +12 -0
- package/dist/react-content-loader.es-CswLCxkm.js +90 -0
- package/dist/react-toastify.esm-BUWNP7Nm.js +808 -0
- package/dist/types/common/date.js +1 -0
- package/dist/types/common/events.js +1 -0
- package/dist/types/common/forms.js +1 -0
- package/dist/types/common/option.js +1 -0
- package/dist/types/index.js +1 -0
- package/dist/useTranslation-CnCPcxVj.js +142 -0
- package/dist/utils/date.js +413 -0
- package/dist/utils/flatpickr.js +4 -0
- package/dist/utils/helper.js +1463 -0
- package/dist/utils/index.js +21 -0
- package/dist/utils/language.js +46 -0
- package/dist/utils/validation.js +27 -0
- package/dist/utils/yup.js +2921 -0
- package/package.json +8 -2
- package/dist/index.cjs.js +0 -295
- package/dist/index.cjs.js.map +0 -1
- package/dist/index.es.js +0 -25008
- package/dist/index.es.js.map +0 -1
- package/dist/index.umd.js +0 -295
- package/dist/index.umd.js.map +0 -1
- package/dist/style.css +0 -1
package/dist/Select.css
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
._container_9jq4w_1{position:relative}._container_9jq4w_1 ._react-dropdown-select-no-data_9jq4w_4{color:#fff}._container_9jq4w_1 ._fieldWrap_9jq4w_7{position:relative;border:solid 2px #262e47;background-color:#2b344c;border-radius:5px}._container_9jq4w_1 ._fieldWrap_9jq4w_7._error_9jq4w_13{border-color:#d2282e;background:#ff354e33}._container_9jq4w_1 ._fieldWrap_9jq4w_7._error_9jq4w_13:focus-visible{outline:none}._container_9jq4w_1 ._fieldWrap_9jq4w_7._disabled_9jq4w_20{pointer-events:none;border-color:#262e47;background-color:#2b344c}._container_9jq4w_1 ._fieldWrap_9jq4w_7._disabled_9jq4w_20 input{cursor:not-allowed}._container_9jq4w_1 ._select_9jq4w_28{background-color:transparent;border:none;width:100%;position:relative;padding:7px 10px 7px 20px;outline:none;font-weight:500;-webkit-appearance:none;-moz-appearance:none}._container_9jq4w_1 ._select_9jq4w_28>div input{font-size:14px;font-weight:500;max-width:100%;margin-left:0}._container_9jq4w_1 ._select_9jq4w_28>div:first-child{overflow:hidden;flex-wrap:nowrap}._container_9jq4w_1 ._select_9jq4w_28>div:first-child span{margin:0;white-space:nowrap}._container_9jq4w_1 ._select_9jq4w_28>div:nth-child(2){font-size:10px;color:#788195}._container_9jq4w_1 ._select_9jq4w_28>div:nth-child(3){border:2px solid #262e47;padding:10px 0;border-radius:4px;background-color:#2b344c}._container_9jq4w_1 ._select_9jq4w_28 ._optionItem_9jq4w_63{padding:5px 20px}._container_9jq4w_1 ._select_9jq4w_28 ._optionItem_9jq4w_63._selected_9jq4w_66{background-color:#232b3b;display:inline-table}._container_9jq4w_1 ._select_9jq4w_28 ._optionItem_9jq4w_63._selected_9jq4w_66:hover{background-color:#232b3b}._container_9jq4w_1 ._select_9jq4w_28 ._optionItem_9jq4w_63:hover{background-color:#262e47}._container_9jq4w_1 ._select_9jq4w_28:focus-visible{outline:none;box-shadow:none}._container_9jq4w_1 ._select_9jq4w_28::-ms-expand{display:none}._container_9jq4w_1 ._select_9jq4w_28._multiple_9jq4w_83>div:first-child{flex-wrap:inherit;row-gap:3px;overflow:hidden;height:22px}._container_9jq4w_1 ._select_9jq4w_28._multiple_9jq4w_83>div:first-child>span{white-space:inherit;background:#232b3b;border-radius:4px;margin-right:5px;padding-right:0;align-items:center}._container_9jq4w_1 ._select_9jq4w_28._multiple_9jq4w_83>div:first-child>span span{color:#fff;font-size:12px;line-height:normal}._container_9jq4w_1._light_9jq4w_102 ._fieldWrap_9jq4w_7{border:solid 2px #dfdfdf;background-color:#fff}._container_9jq4w_1._light_9jq4w_102 ._fieldWrap_9jq4w_7._disabled_9jq4w_20{border-color:#efefef;background-color:#efefef}._container_9jq4w_1._light_9jq4w_102 ._fieldWrap_9jq4w_7 ._select_9jq4w_28{color:#788195}._container_9jq4w_1._light_9jq4w_102 ._fieldWrap_9jq4w_7 ._select_9jq4w_28>div:nth-child(2){font-size:10px;color:#788195}._container_9jq4w_1._light_9jq4w_102 ._fieldWrap_9jq4w_7 ._select_9jq4w_28>div:nth-child(3){border:1px solid #dfdfdf;padding:10px 0;background-color:#fff}._container_9jq4w_1._light_9jq4w_102 ._fieldWrap_9jq4w_7 ._select_9jq4w_28 ._optionItem_9jq4w_63._selected_9jq4w_66,._container_9jq4w_1._light_9jq4w_102 ._fieldWrap_9jq4w_7 ._select_9jq4w_28 ._optionItem_9jq4w_63._selected_9jq4w_66:hover{background-color:#037cf9;color:#fff}._container_9jq4w_1._light_9jq4w_102 ._fieldWrap_9jq4w_7 ._select_9jq4w_28 ._optionItem_9jq4w_63:hover{background-color:#f5f5f5;color:#2b344c}._container_9jq4w_1._light_9jq4w_102 ._fieldWrap_9jq4w_7:before{color:#788195}._container_9jq4w_1._light_9jq4w_102 ._fieldWrap_9jq4w_7._error_9jq4w_13{border-color:#d2282e;background:#ff354e33}._container_9jq4w_1._light_9jq4w_102 ._fieldWrap_9jq4w_7._error_9jq4w_13:focus-visible{outline:none}._container_9jq4w_1._radius_9jq4w_144 ._fieldWrap_9jq4w_7{border-radius:50px}._itemSuffix_9jq4w_148{display:flex;justify-content:space-between}._customOptionItem_9jq4w_153{padding:0 5px;border-radius:2px;line-height:21px;margin:3px 0 3px 5px;background:#0074d9;color:#fff;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:row;-ms-flex-direction:row;flex-direction:row;font-weight:500}._customOptionItem_9jq4w_153 ._remove_9jq4w_169{cursor:pointer;width:22px;height:22px;display:inline-block;text-align:center;margin:0 -5px 0 0;border-radius:0 3px 3px 0}._noData_9jq4w_179{padding:10px;text-align:center}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import './Select.css';const t = "_container_9jq4w_1", e = "_fieldWrap_9jq4w_7", o = "_error_9jq4w_13", _ = "_disabled_9jq4w_20", s = "_select_9jq4w_28", n = "_optionItem_9jq4w_63", c = "_selected_9jq4w_66", i = "_multiple_9jq4w_83", r = "_light_9jq4w_102", a = "_radius_9jq4w_144", l = "_itemSuffix_9jq4w_148", d = "_customOptionItem_9jq4w_153", m = "_remove_9jq4w_169", w = "_noData_9jq4w_179", j = {
|
|
2
|
+
container: t,
|
|
3
|
+
"react-dropdown-select-no-data": "_react-dropdown-select-no-data_9jq4w_4",
|
|
4
|
+
fieldWrap: e,
|
|
5
|
+
error: o,
|
|
6
|
+
disabled: _,
|
|
7
|
+
select: s,
|
|
8
|
+
optionItem: n,
|
|
9
|
+
selected: c,
|
|
10
|
+
multiple: i,
|
|
11
|
+
light: r,
|
|
12
|
+
radius: a,
|
|
13
|
+
itemSuffix: l,
|
|
14
|
+
customOptionItem: d,
|
|
15
|
+
remove: m,
|
|
16
|
+
noData: w
|
|
17
|
+
};
|
|
18
|
+
export {
|
|
19
|
+
j as s
|
|
20
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
._wrapper_1aejq_1{display:inline-block;text-transform:capitalize;margin-bottom:0}._statusSubText_1aejq_7{font-size:10px;margin-bottom:0!important;font-weight:400;text-align:left;white-space:nowrap}._spinContainer_1aejq_15 ._postfixSpinner_1aejq_15{margin-right:0;margin-left:7px}._spinner_1aejq_20{display:inline-block;margin-right:7px;position:relative;bottom:-2px}._warning_1aejq_27{color:#ffb822}._danger_1aejq_31{color:#d2282e}._success_1aejq_35{color:#71d200}._initializing_1aejq_39{color:#ffaa49}._pending_1aejq_43{color:#ffdca8}._failed_1aejq_47{color:#ff5365}._queued_1aejq_51{color:#9387c7}._passed_1aejq_55{color:#71d200}
|
package/dist/Stepper.css
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
._container_12lwx_1{position:relative;margin-bottom:30px}._container_12lwx_1 ul{display:flex;margin:0;padding:0}._container_12lwx_1 ul li{position:relative;width:33.33%;list-style:none;padding:0}._container_12lwx_1 ul li._complete_12lwx_16 a{color:#fff}._container_12lwx_1 ul li._complete_12lwx_16 a span{color:#4482ff;background-color:#fff}._container_12lwx_1 ul li._complete_12lwx_16+li:before{background-color:#4482ff}._container_12lwx_1 ul li:first-child:before{content:none}._container_12lwx_1 ul li:before{content:"";width:100%;height:2px;background-color:#4482ff;position:absolute;left:-50%;top:16px;z-index:1}._container_12lwx_1 ul li._active_12lwx_39 a{color:#fff}._container_12lwx_1 ul li._active_12lwx_39 a span{color:#fff;background-color:#71d200}._container_12lwx_1 ul li a{display:flex;flex-direction:column;text-decoration:none;text-align:center;position:relative;z-index:2;color:#fff;font-weight:600;line-height:normal}._container_12lwx_1 ul li span{width:32px;height:32px;border-radius:100%;color:#3b4768;display:flex;align-items:center;justify-content:center;margin:auto auto 14px;background-color:#fff;font-weight:600;font-family:Jost,sans-serif}._container_12lwx_1 ul li span i{line-height:1px}
|
package/dist/Switch.css
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
._switch_ptgnt_1{position:relative;display:inline-block;width:70px;height:26px;border-radius:24px}._switch_ptgnt_1 input{opacity:0;width:0;height:0;margin:0}._switch_ptgnt_1._checked_ptgnt_14{border-color:transparent}._switch_ptgnt_1._disabled_ptgnt_17{opacity:.5}._slider_ptgnt_21{position:absolute;cursor:pointer;top:0;left:0;right:0;bottom:0;background-color:#d4d6f0;border-color:2px solid;-webkit-transition:.4s;transition:.4s;border-radius:30px;text-align:inherit!important}._slider_ptgnt_21 span{font-size:9px;text-transform:uppercase;font-weight:500;padding:0 5px;display:flex!important;justify-content:flex-end;align-items:center;height:100%}._slider_ptgnt_21:before{position:absolute;content:"";height:22px;width:22px;bottom:2px;background-color:#fff;-webkit-transition:.4s;transition:.4s;border-radius:30px;transform:translate(2px)}input:checked+._slider_ptgnt_21{background-color:#71d200}input:checked+._slider_ptgnt_21 span{justify-content:flex-start}input:focus+._slider_ptgnt_21{box-shadow:0 0 1px #71d200}input:checked+._slider_ptgnt_21:before{transform:translate(46px)}._slider_ptgnt_21._round_ptgnt_75{border-radius:34px}._slider_ptgnt_21._round_ptgnt_75:before{border-radius:50%}._active_ptgnt_83{padding-left:10px!important}._passive_ptgnt_87{padding-right:10px!important}
|
package/dist/Tab.css
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
._tabContainer_1tklp_1{display:flex}._tabContainer_1tklp_1 ._titleWrapper_1tklp_4{padding-bottom:15px;cursor:pointer}._tabContainer_1tklp_1 ._titleWrapper_1tklp_4:not(:last-child){margin-right:20px}._tabContainer_1tklp_1 ._titleWrapper_1tklp_4:not(._isActive_1tklp_11){border-bottom:4px solid #909090}._tabContainer_1tklp_1 ._titleWrapper_1tklp_4 ._title_1tklp_4{font-size:20px;font-weight:600;color:#fff;margin-bottom:0;margin-top:0}._isActive_1tklp_11{border-bottom:4px solid #037cf9}
|
|
@@ -0,0 +1,159 @@
|
|
|
1
|
+
import { j as e } from "./jsx-runtime-BcAkpsdy.js";
|
|
2
|
+
import { useState as x, useEffect as G } from "react";
|
|
3
|
+
import { c as m } from "./index-BHf7G3IG.js";
|
|
4
|
+
import { FormFieldAppearance as b, AppearanceButton as R } from "./enums/appearance.js";
|
|
5
|
+
import P from "./components/Button/Button.js";
|
|
6
|
+
import L from "./components/Heading/Heading.js";
|
|
7
|
+
import k from "./components/Pager/Pager.js";
|
|
8
|
+
import { S as f } from "./Select-DcLZCXNo.js";
|
|
9
|
+
import { u as z } from "./useTranslation-CnCPcxVj.js";
|
|
10
|
+
import { T as F } from "./Trans-B4ILpbwK.js";
|
|
11
|
+
import './TableHeader.css';const B = "_wrapper_1n4i1_1", D = "_header_1n4i1_4", S = "_title_1n4i1_7", K = "_subTitle_1n4i1_13", M = "_table_1n4i1_18", Y = "_fixed_1n4i1_24", q = "_light_1n4i1_50", C = "_fixedHeader_1n4i1_55", J = "_dark_1n4i1_65", Q = "_tableWrap_1n4i1_68", U = "_actionWrap_1n4i1_113", V = "_tableLoading_1n4i1_117", X = "_selectedAction_1n4i1_127", Z = "_rightGroup_1n4i1_134", $ = "_pageSizeWrap_1n4i1_138", I = "_pager_1n4i1_148", O = "_size_1n4i1_152", ee = "_noResult_1n4i1_156", se = "_scrollWrap_1n4i1_165", te = "_justifyContentEnd_1n4i1_169", ae = "_width100_1n4i1_173", s = {
|
|
12
|
+
wrapper: B,
|
|
13
|
+
header: D,
|
|
14
|
+
title: S,
|
|
15
|
+
subTitle: K,
|
|
16
|
+
table: M,
|
|
17
|
+
fixed: Y,
|
|
18
|
+
light: q,
|
|
19
|
+
fixedHeader: C,
|
|
20
|
+
dark: J,
|
|
21
|
+
tableWrap: Q,
|
|
22
|
+
actionWrap: U,
|
|
23
|
+
tableLoading: V,
|
|
24
|
+
selectedAction: X,
|
|
25
|
+
rightGroup: Z,
|
|
26
|
+
pageSizeWrap: $,
|
|
27
|
+
pager: I,
|
|
28
|
+
size: O,
|
|
29
|
+
noResult: ee,
|
|
30
|
+
scrollWrap: se,
|
|
31
|
+
justifyContentEnd: te,
|
|
32
|
+
width100: ae
|
|
33
|
+
}, ne = [
|
|
34
|
+
{ value: "10", label: "10" },
|
|
35
|
+
{ value: "20", label: "20" },
|
|
36
|
+
{ value: "50", label: "50" },
|
|
37
|
+
{ value: "100", label: "100" },
|
|
38
|
+
{ value: "250", label: "250" }
|
|
39
|
+
], me = ({
|
|
40
|
+
totalCount: l = 0,
|
|
41
|
+
currentPage: h,
|
|
42
|
+
title: n,
|
|
43
|
+
actionOnChange: i,
|
|
44
|
+
className: j,
|
|
45
|
+
pagerOnChange: g,
|
|
46
|
+
pageSizeOnChange: d,
|
|
47
|
+
pagerVisible: v = !0,
|
|
48
|
+
pageSizeVisible: W = !0,
|
|
49
|
+
pageSize: a = 10,
|
|
50
|
+
actionItems: o,
|
|
51
|
+
pageSizeItems: T = ne,
|
|
52
|
+
headerLeftItem: r,
|
|
53
|
+
customItem: c,
|
|
54
|
+
appearance: w,
|
|
55
|
+
showItemsText: N
|
|
56
|
+
}) => {
|
|
57
|
+
const { t: _ } = z(), [y, p] = x(!0), [A, u] = x({
|
|
58
|
+
label: a,
|
|
59
|
+
value: a
|
|
60
|
+
}), H = (t) => [
|
|
61
|
+
{ value: "exportexel", label: t("text.excel_export") }
|
|
62
|
+
], E = (t) => {
|
|
63
|
+
p(!t), i && i(t);
|
|
64
|
+
};
|
|
65
|
+
return o = o || H(_), G(() => {
|
|
66
|
+
u({ label: a, value: a });
|
|
67
|
+
}, [a]), /* @__PURE__ */ e.jsxs(
|
|
68
|
+
"div",
|
|
69
|
+
{
|
|
70
|
+
"data-testid": "tableheader-container",
|
|
71
|
+
className: m(s.header, j, {
|
|
72
|
+
"d-flex justify-content-between": n && !i || c,
|
|
73
|
+
"d-flex justify-content-end": !n && !i
|
|
74
|
+
}),
|
|
75
|
+
children: [
|
|
76
|
+
n && /* @__PURE__ */ e.jsxs("div", { children: [
|
|
77
|
+
/* @__PURE__ */ e.jsx(L, { className: s.title, children: n }),
|
|
78
|
+
/* @__PURE__ */ e.jsxs("p", { className: s.subTitle, children: [
|
|
79
|
+
l,
|
|
80
|
+
" ",
|
|
81
|
+
_("text.results_listing")
|
|
82
|
+
] })
|
|
83
|
+
] }),
|
|
84
|
+
c && c,
|
|
85
|
+
/* @__PURE__ */ e.jsx(
|
|
86
|
+
"div",
|
|
87
|
+
{
|
|
88
|
+
className: m(s.actionWrap, {
|
|
89
|
+
[s.justifyContentEnd]: !r,
|
|
90
|
+
[s.width100]: r
|
|
91
|
+
}),
|
|
92
|
+
children: /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
|
|
93
|
+
i && /* @__PURE__ */ e.jsxs("div", { className: s.selectedAction, children: [
|
|
94
|
+
/* @__PURE__ */ e.jsx(
|
|
95
|
+
f,
|
|
96
|
+
{
|
|
97
|
+
name: "action",
|
|
98
|
+
items: o,
|
|
99
|
+
appearance: b.LIGHT,
|
|
100
|
+
onChange: E
|
|
101
|
+
}
|
|
102
|
+
),
|
|
103
|
+
/* @__PURE__ */ e.jsx(
|
|
104
|
+
P,
|
|
105
|
+
{
|
|
106
|
+
appearance: R.PRIMARY,
|
|
107
|
+
isDisabled: y,
|
|
108
|
+
children: _("button.apply")
|
|
109
|
+
}
|
|
110
|
+
)
|
|
111
|
+
] }),
|
|
112
|
+
r && r,
|
|
113
|
+
/* @__PURE__ */ e.jsxs("div", { className: s.rightGroup, children: [
|
|
114
|
+
W && /* @__PURE__ */ e.jsxs("div", { className: s.pageSizeWrap, children: [
|
|
115
|
+
/* @__PURE__ */ e.jsx(
|
|
116
|
+
f,
|
|
117
|
+
{
|
|
118
|
+
name: "action",
|
|
119
|
+
value: A,
|
|
120
|
+
items: T,
|
|
121
|
+
className: s.size,
|
|
122
|
+
showPlaceholder: !1,
|
|
123
|
+
onAddItem: ({ item: t }) => {
|
|
124
|
+
u(t), d && d(t.value);
|
|
125
|
+
},
|
|
126
|
+
appearance: b.LIGHT
|
|
127
|
+
}
|
|
128
|
+
),
|
|
129
|
+
/* @__PURE__ */ e.jsx("span", { children: /* @__PURE__ */ e.jsx(
|
|
130
|
+
F,
|
|
131
|
+
{
|
|
132
|
+
i18nKey: "text.show",
|
|
133
|
+
values: { title: N || n }
|
|
134
|
+
}
|
|
135
|
+
) })
|
|
136
|
+
] }),
|
|
137
|
+
v && l > 0 && /* @__PURE__ */ e.jsx(
|
|
138
|
+
k,
|
|
139
|
+
{
|
|
140
|
+
currentPage: h,
|
|
141
|
+
pageSize: a,
|
|
142
|
+
totalCount: l,
|
|
143
|
+
onChange: g,
|
|
144
|
+
appearance: w,
|
|
145
|
+
className: s.pager
|
|
146
|
+
}
|
|
147
|
+
)
|
|
148
|
+
] })
|
|
149
|
+
] })
|
|
150
|
+
}
|
|
151
|
+
)
|
|
152
|
+
]
|
|
153
|
+
}
|
|
154
|
+
);
|
|
155
|
+
};
|
|
156
|
+
export {
|
|
157
|
+
me as T,
|
|
158
|
+
s
|
|
159
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
._wrapper_1n4i1_1{position:relative}._wrapper_1n4i1_1 ._header_1n4i1_4{padding:20px}._wrapper_1n4i1_1 ._header_1n4i1_4 ._title_1n4i1_7{font-size:18px;font-weight:500;color:#062a4a;margin:0}._wrapper_1n4i1_1 ._header_1n4i1_4 ._subTitle_1n4i1_13{margin:0;font-weight:400;color:#788195}._wrapper_1n4i1_1 ._table_1n4i1_18{width:100%;text-align:left;border-spacing:0px;border-collapse:collapse}._wrapper_1n4i1_1 ._table_1n4i1_18._fixed_1n4i1_24{position:relative}._wrapper_1n4i1_1 ._table_1n4i1_18._fixed_1n4i1_24 th{position:sticky;box-shadow:0 2px 2px -1px #00000080;top:0;background:#333b57;z-index:999}._wrapper_1n4i1_1 ._table_1n4i1_18 thead{background-color:#f1f3f9}._wrapper_1n4i1_1 ._table_1n4i1_18 td,._wrapper_1n4i1_1 ._table_1n4i1_18 th{padding:10px 20px;border:1px solid #eef0f2;color:#3f4b5c}._wrapper_1n4i1_1 ._table_1n4i1_18 th{font-weight:500;font-size:12px}._wrapper_1n4i1_1 ._table_1n4i1_18 td{font-weight:400}._wrapper_1n4i1_1._light_1n4i1_50{background-color:#fff;color:#000;border-radius:10px}._wrapper_1n4i1_1._light_1n4i1_50 ._table_1n4i1_18._fixedHeader_1n4i1_55 th{top:0;background:#fff}._wrapper_1n4i1_1._light_1n4i1_50 ._table_1n4i1_18 tbody td{padding:20px}._wrapper_1n4i1_1._light_1n4i1_50 ._table_1n4i1_18 tbody tr:nth-child(2n) td{background-color:#fdfdfd}._wrapper_1n4i1_1._dark_1n4i1_65 ._header_1n4i1_4{padding:20px 12px}._wrapper_1n4i1_1._dark_1n4i1_65>._tableWrap_1n4i1_68{position:relative;border-radius:10px;box-shadow:0 2px 4px #0003;background-color:#333b57;padding:30px;height:100%}._wrapper_1n4i1_1._dark_1n4i1_65 ._table_1n4i1_18 thead{background:none}._wrapper_1n4i1_1._dark_1n4i1_65 ._table_1n4i1_18 thead th{border:none}._wrapper_1n4i1_1._dark_1n4i1_65 ._table_1n4i1_18 td,._wrapper_1n4i1_1._dark_1n4i1_65 ._table_1n4i1_18 th{border:none;color:#3f4b5c}._wrapper_1n4i1_1._dark_1n4i1_65 ._table_1n4i1_18 td:first-child,._wrapper_1n4i1_1._dark_1n4i1_65 ._table_1n4i1_18 th:first-child{padding-left:0}._wrapper_1n4i1_1._dark_1n4i1_65 ._table_1n4i1_18 td:last-child,._wrapper_1n4i1_1._dark_1n4i1_65 ._table_1n4i1_18 th:last-child{padding-right:0}._wrapper_1n4i1_1._dark_1n4i1_65 ._table_1n4i1_18 th{color:#9b9b9b;font-size:11px;font-weight:600;letter-spacing:.39px;text-transform:uppercase;padding-top:0}._wrapper_1n4i1_1._dark_1n4i1_65 ._table_1n4i1_18 td{color:#eef0f2;font-size:16px;font-weight:500;border-bottom:1px solid #3f4b5c}._wrapper_1n4i1_1._dark_1n4i1_65 ._table_1n4i1_18 tbody tr:last-child td{border-bottom:none;padding-bottom:0}._wrapper_1n4i1_1._dark_1n4i1_65 ._actionWrap_1n4i1_113{margin-top:0}._tableLoading_1n4i1_117{border-radius:10px}._actionWrap_1n4i1_113{display:flex;justify-content:space-between;margin-top:10px}._selectedAction_1n4i1_127{display:flex}._selectedAction_1n4i1_127 button{margin-left:15px}._rightGroup_1n4i1_134{display:flex}._pageSizeWrap_1n4i1_138{display:inline-flex;align-items:center}._pageSizeWrap_1n4i1_138 span{margin-left:10px;font-weight:500;color:#788195}._pager_1n4i1_148{margin-left:35px}._size_1n4i1_152{max-width:75px}._noResult_1n4i1_156{text-align:left;display:flex;font-weight:500;font-size:15px;min-height:60px;align-items:center}._scrollWrap_1n4i1_165{max-height:100%!important}._justifyContentEnd_1n4i1_169{justify-content:flex-end}._width100_1n4i1_173{width:100%}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
._counter_1tkwv_1{display:flex}._counter_1tkwv_1 span{font-style:italic;color:#676767;margin-left:8px}._container_1tkwv_10 ._fieldWrap_1tkwv_10{border:solid 2px #262e47;background-color:#2b344c;position:relative;border-radius:5px}._container_1tkwv_10 ._fieldWrap_1tkwv_10 ._control_1tkwv_16{width:100%;resize:none;display:block;padding:7px 10px;position:relative;background:none;outline:none;border:none;z-index:2}._container_1tkwv_10 ._fieldWrap_1tkwv_10 ._control_1tkwv_16:focus-visible{outline:none;box-shadow:0 0 0 2px #4482ff33}._container_1tkwv_10._light_1tkwv_31 ._fieldWrap_1tkwv_10{border:solid 2px #dfdfdf;background-color:#fff}._container_1tkwv_10._light_1tkwv_31 ._fieldWrap_1tkwv_10 ._control_1tkwv_16{color:#788195}._container_1tkwv_10._error_1tkwv_38 ._fieldWrap_1tkwv_10{border-color:#d2282e;background:#ff354e33}._container_1tkwv_10._error_1tkwv_38 ._fieldWrap_1tkwv_10:focus-visible{outline:none}._container_1tkwv_10 ._disabled_1tkwv_45{background-color:#d8d8d8;border-radius:8px}._container_1tkwv_10 textarea._size-small_1tkwv_49{height:73px}
|
package/dist/Tooltip.css
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
._tooltip_1ogqn_1{position:relative;display:inline-grid;cursor:pointer}._tooltip_1ogqn_1 ._tooltipContent_1ogqn_6{background:#293245;border:1px solid #262e47;font-size:13px;font-weight:400;opacity:1!important;max-width:600px}._tooltip__ellipsis_1ogqn_14 ._content_1ogqn_14{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}._tooltipContent_1ogqn_6:before{border-bottom-color:#262e47!important;border-top-color:#262e47!important}._tooltipContent_1ogqn_6:after{border-bottom-color:#293245!important;border-top-color:#293245!important}
|
|
@@ -0,0 +1,343 @@
|
|
|
1
|
+
import { createElement as T, isValidElement as K, Fragment as z, cloneElement as M, Children as J, useContext as U } from "react";
|
|
2
|
+
import { g as X } from "./_commonjsHelpers-CT_km90n.js";
|
|
3
|
+
import { w as Y, a as H, I as Z } from "./useTranslation-CnCPcxVj.js";
|
|
4
|
+
import { g as q, a as I } from "./i18nInstance-CiCZbaCK.js";
|
|
5
|
+
var G = {
|
|
6
|
+
area: !0,
|
|
7
|
+
base: !0,
|
|
8
|
+
br: !0,
|
|
9
|
+
col: !0,
|
|
10
|
+
embed: !0,
|
|
11
|
+
hr: !0,
|
|
12
|
+
img: !0,
|
|
13
|
+
input: !0,
|
|
14
|
+
link: !0,
|
|
15
|
+
meta: !0,
|
|
16
|
+
param: !0,
|
|
17
|
+
source: !0,
|
|
18
|
+
track: !0,
|
|
19
|
+
wbr: !0
|
|
20
|
+
};
|
|
21
|
+
const Q = /* @__PURE__ */ X(G);
|
|
22
|
+
var _ = /\s([^'"/\s><]+?)[\s/>]|([^\s=]+)=\s?(".*?"|'.*?')/g;
|
|
23
|
+
function B(e) {
|
|
24
|
+
var t = { type: "tag", name: "", voidElement: !1, attrs: {}, children: [] }, n = e.match(/<\/?([^\s]+?)[/\s>]/);
|
|
25
|
+
if (n && (t.name = n[1], (Q[n[1]] || e.charAt(e.length - 2) === "/") && (t.voidElement = !0), t.name.startsWith("!--"))) {
|
|
26
|
+
var a = e.indexOf("-->");
|
|
27
|
+
return { type: "comment", comment: a !== -1 ? e.slice(4, a) : "" };
|
|
28
|
+
}
|
|
29
|
+
for (var f = new RegExp(_), s = null; (s = f.exec(e)) !== null; )
|
|
30
|
+
if (s[0].trim())
|
|
31
|
+
if (s[1]) {
|
|
32
|
+
var p = s[1].trim(), l = [p, ""];
|
|
33
|
+
p.indexOf("=") > -1 && (l = p.split("=")), t.attrs[l[0]] = l[1], f.lastIndex--;
|
|
34
|
+
} else
|
|
35
|
+
s[2] && (t.attrs[s[2]] = s[3].trim().substring(1, s[3].length - 1));
|
|
36
|
+
return t;
|
|
37
|
+
}
|
|
38
|
+
var R = /<[a-zA-Z0-9\-\!\/](?:"[^"]*"|'[^']*'|[^'">])*>/g, ee = /^\s*$/, te = /* @__PURE__ */ Object.create(null);
|
|
39
|
+
function L(e, t) {
|
|
40
|
+
switch (t.type) {
|
|
41
|
+
case "text":
|
|
42
|
+
return e + t.content;
|
|
43
|
+
case "tag":
|
|
44
|
+
return e += "<" + t.name + (t.attrs ? function(n) {
|
|
45
|
+
var a = [];
|
|
46
|
+
for (var f in n)
|
|
47
|
+
a.push(f + '="' + n[f] + '"');
|
|
48
|
+
return a.length ? " " + a.join(" ") : "";
|
|
49
|
+
}(t.attrs) : "") + (t.voidElement ? "/>" : ">"), t.voidElement ? e : e + t.children.reduce(L, "") + "</" + t.name + ">";
|
|
50
|
+
case "comment":
|
|
51
|
+
return e + "<!--" + t.comment + "-->";
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
var ne = { parse: function(e, t) {
|
|
55
|
+
t || (t = {}), t.components || (t.components = te);
|
|
56
|
+
var n, a = [], f = [], s = -1, p = !1;
|
|
57
|
+
if (e.indexOf("<") !== 0) {
|
|
58
|
+
var l = e.indexOf("<");
|
|
59
|
+
a.push({ type: "text", content: l === -1 ? e : e.substring(0, l) });
|
|
60
|
+
}
|
|
61
|
+
return e.replace(R, function(m, u) {
|
|
62
|
+
if (p) {
|
|
63
|
+
if (m !== "</" + n.name + ">")
|
|
64
|
+
return;
|
|
65
|
+
p = !1;
|
|
66
|
+
}
|
|
67
|
+
var g, j = m.charAt(1) !== "/", k = m.startsWith("<!--"), b = u + m.length, x = e.charAt(b);
|
|
68
|
+
if (k) {
|
|
69
|
+
var y = B(m);
|
|
70
|
+
return s < 0 ? (a.push(y), a) : ((g = f[s]).children.push(y), a);
|
|
71
|
+
}
|
|
72
|
+
if (j && (s++, (n = B(m)).type === "tag" && t.components[n.name] && (n.type = "component", p = !0), n.voidElement || p || !x || x === "<" || n.children.push({ type: "text", content: e.slice(b, e.indexOf("<", b)) }), s === 0 && a.push(n), (g = f[s - 1]) && g.children.push(n), f[s] = n), (!j || n.voidElement) && (s > -1 && (n.voidElement || n.name === m.slice(2, -1)) && (s--, n = s === -1 ? a : f[s]), !p && x !== "<" && x)) {
|
|
73
|
+
g = s === -1 ? a : f[s].children;
|
|
74
|
+
var c = e.indexOf("<", b), i = e.slice(b, c === -1 ? void 0 : c);
|
|
75
|
+
ee.test(i) && (i = " "), (c > -1 && s + g.length >= 0 || i !== " ") && g.push({ type: "text", content: i });
|
|
76
|
+
}
|
|
77
|
+
}), a;
|
|
78
|
+
}, stringify: function(e) {
|
|
79
|
+
return e.reduce(function(t, n) {
|
|
80
|
+
return t + L("", n);
|
|
81
|
+
}, "");
|
|
82
|
+
} };
|
|
83
|
+
function S(e, t) {
|
|
84
|
+
if (!e)
|
|
85
|
+
return !1;
|
|
86
|
+
const n = e.props ? e.props.children : e.children;
|
|
87
|
+
return t ? n.length > 0 : !!n;
|
|
88
|
+
}
|
|
89
|
+
function V(e) {
|
|
90
|
+
if (!e)
|
|
91
|
+
return [];
|
|
92
|
+
const t = e.props ? e.props.children : e.children;
|
|
93
|
+
return e.props && e.props.i18nIsDynamicList ? P(t) : t;
|
|
94
|
+
}
|
|
95
|
+
function se(e) {
|
|
96
|
+
return Object.prototype.toString.call(e) !== "[object Array]" ? !1 : e.every((t) => K(t));
|
|
97
|
+
}
|
|
98
|
+
function P(e) {
|
|
99
|
+
return Array.isArray(e) ? e : [e];
|
|
100
|
+
}
|
|
101
|
+
function re(e, t) {
|
|
102
|
+
const n = {
|
|
103
|
+
...t
|
|
104
|
+
};
|
|
105
|
+
return n.props = Object.assign(e.props, t.props), n;
|
|
106
|
+
}
|
|
107
|
+
function W(e, t) {
|
|
108
|
+
if (!e)
|
|
109
|
+
return "";
|
|
110
|
+
let n = "";
|
|
111
|
+
const a = P(e), f = t.transSupportBasicHtmlNodes && t.transKeepBasicHtmlNodesFor ? t.transKeepBasicHtmlNodesFor : [];
|
|
112
|
+
return a.forEach((s, p) => {
|
|
113
|
+
if (typeof s == "string")
|
|
114
|
+
n += `${s}`;
|
|
115
|
+
else if (K(s)) {
|
|
116
|
+
const l = Object.keys(s.props).length, m = f.indexOf(s.type) > -1, u = s.props.children;
|
|
117
|
+
if (!u && m && l === 0)
|
|
118
|
+
n += `<${s.type}/>`;
|
|
119
|
+
else if (!u && (!m || l !== 0))
|
|
120
|
+
n += `<${p}></${p}>`;
|
|
121
|
+
else if (s.props.i18nIsDynamicList)
|
|
122
|
+
n += `<${p}></${p}>`;
|
|
123
|
+
else if (m && l === 1 && typeof u == "string")
|
|
124
|
+
n += `<${s.type}>${u}</${s.type}>`;
|
|
125
|
+
else {
|
|
126
|
+
const g = W(u, t);
|
|
127
|
+
n += `<${p}>${g}</${p}>`;
|
|
128
|
+
}
|
|
129
|
+
} else if (s === null)
|
|
130
|
+
H("Trans: the passed in value is invalid - seems you passed in a null child.");
|
|
131
|
+
else if (typeof s == "object") {
|
|
132
|
+
const {
|
|
133
|
+
format: l,
|
|
134
|
+
...m
|
|
135
|
+
} = s, u = Object.keys(m);
|
|
136
|
+
if (u.length === 1) {
|
|
137
|
+
const g = l ? `${u[0]}, ${l}` : u[0];
|
|
138
|
+
n += `{{${g}}}`;
|
|
139
|
+
} else
|
|
140
|
+
H("react-i18next: the passed in object contained more than one variable - the object should look like {{ value, format }} where format is optional.", s);
|
|
141
|
+
} else
|
|
142
|
+
H("Trans: the passed in value is invalid - seems you passed in a variable like {number} - please pass in variables for interpolation as full objects like {{number}}.", s);
|
|
143
|
+
}), n;
|
|
144
|
+
}
|
|
145
|
+
function oe(e, t, n, a, f, s) {
|
|
146
|
+
if (t === "")
|
|
147
|
+
return [];
|
|
148
|
+
const p = a.transKeepBasicHtmlNodesFor || [], l = t && new RegExp(p.map((c) => `<${c}`).join("|")).test(t);
|
|
149
|
+
if (!e && !l && !s)
|
|
150
|
+
return [t];
|
|
151
|
+
const m = {};
|
|
152
|
+
function u(c) {
|
|
153
|
+
P(c).forEach((o) => {
|
|
154
|
+
typeof o != "string" && (S(o) ? u(V(o)) : typeof o == "object" && !K(o) && Object.assign(m, o));
|
|
155
|
+
});
|
|
156
|
+
}
|
|
157
|
+
u(e);
|
|
158
|
+
const g = ne.parse(`<0>${t}</0>`), j = {
|
|
159
|
+
...m,
|
|
160
|
+
...f
|
|
161
|
+
};
|
|
162
|
+
function k(c, i, o) {
|
|
163
|
+
const v = V(c), O = x(v, i.children, o);
|
|
164
|
+
return se(v) && O.length === 0 || c.props && c.props.i18nIsDynamicList ? v : O;
|
|
165
|
+
}
|
|
166
|
+
function b(c, i, o, v, O) {
|
|
167
|
+
c.dummy ? (c.children = i, o.push(M(c, {
|
|
168
|
+
key: v
|
|
169
|
+
}, O ? void 0 : i))) : o.push(...J.map([c], (h) => {
|
|
170
|
+
const r = {
|
|
171
|
+
...h.props
|
|
172
|
+
};
|
|
173
|
+
return delete r.i18nIsDynamicList, T(h.type, {
|
|
174
|
+
...r,
|
|
175
|
+
key: v,
|
|
176
|
+
ref: h.ref
|
|
177
|
+
}, O ? null : i);
|
|
178
|
+
}));
|
|
179
|
+
}
|
|
180
|
+
function x(c, i, o) {
|
|
181
|
+
const v = P(c);
|
|
182
|
+
return P(i).reduce((h, r, C) => {
|
|
183
|
+
const N = r.children && r.children[0] && r.children[0].content && n.services.interpolator.interpolate(r.children[0].content, j, n.language);
|
|
184
|
+
if (r.type === "tag") {
|
|
185
|
+
let E = v[parseInt(r.name, 10)];
|
|
186
|
+
o.length === 1 && !E && (E = o[0][r.name]), E || (E = {});
|
|
187
|
+
const d = Object.keys(r.attrs).length !== 0 ? re({
|
|
188
|
+
props: r.attrs
|
|
189
|
+
}, E) : E, w = K(d), A = w && S(r, !0) && !r.voidElement, F = l && typeof d == "object" && d.dummy && !w, D = typeof e == "object" && e !== null && Object.hasOwnProperty.call(e, r.name);
|
|
190
|
+
if (typeof d == "string") {
|
|
191
|
+
const $ = n.services.interpolator.interpolate(d, j, n.language);
|
|
192
|
+
h.push($);
|
|
193
|
+
} else if (S(d) || A) {
|
|
194
|
+
const $ = k(d, r, o);
|
|
195
|
+
b(d, $, h, C);
|
|
196
|
+
} else if (F) {
|
|
197
|
+
const $ = x(v, r.children, o);
|
|
198
|
+
b(d, $, h, C);
|
|
199
|
+
} else if (Number.isNaN(parseFloat(r.name)))
|
|
200
|
+
if (D) {
|
|
201
|
+
const $ = k(d, r, o);
|
|
202
|
+
b(d, $, h, C, r.voidElement);
|
|
203
|
+
} else if (a.transSupportBasicHtmlNodes && p.indexOf(r.name) > -1)
|
|
204
|
+
if (r.voidElement)
|
|
205
|
+
h.push(T(r.name, {
|
|
206
|
+
key: `${r.name}-${C}`
|
|
207
|
+
}));
|
|
208
|
+
else {
|
|
209
|
+
const $ = x(v, r.children, o);
|
|
210
|
+
h.push(T(r.name, {
|
|
211
|
+
key: `${r.name}-${C}`
|
|
212
|
+
}, $));
|
|
213
|
+
}
|
|
214
|
+
else if (r.voidElement)
|
|
215
|
+
h.push(`<${r.name} />`);
|
|
216
|
+
else {
|
|
217
|
+
const $ = x(v, r.children, o);
|
|
218
|
+
h.push(`<${r.name}>${$}</${r.name}>`);
|
|
219
|
+
}
|
|
220
|
+
else if (typeof d == "object" && !w) {
|
|
221
|
+
const $ = r.children[0] ? N : null;
|
|
222
|
+
$ && h.push($);
|
|
223
|
+
} else
|
|
224
|
+
b(d, N, h, C, r.children.length !== 1 || !N);
|
|
225
|
+
} else if (r.type === "text") {
|
|
226
|
+
const E = a.transWrapTextNodes, d = s ? a.unescape(n.services.interpolator.interpolate(r.content, j, n.language)) : n.services.interpolator.interpolate(r.content, j, n.language);
|
|
227
|
+
E ? h.push(T(E, {
|
|
228
|
+
key: `${r.name}-${C}`
|
|
229
|
+
}, d)) : h.push(d);
|
|
230
|
+
}
|
|
231
|
+
return h;
|
|
232
|
+
}, []);
|
|
233
|
+
}
|
|
234
|
+
const y = x([{
|
|
235
|
+
dummy: !0,
|
|
236
|
+
children: e || []
|
|
237
|
+
}], g, P(e || []));
|
|
238
|
+
return V(y[0]);
|
|
239
|
+
}
|
|
240
|
+
function ae(e) {
|
|
241
|
+
let {
|
|
242
|
+
children: t,
|
|
243
|
+
count: n,
|
|
244
|
+
parent: a,
|
|
245
|
+
i18nKey: f,
|
|
246
|
+
context: s,
|
|
247
|
+
tOptions: p = {},
|
|
248
|
+
values: l,
|
|
249
|
+
defaults: m,
|
|
250
|
+
components: u,
|
|
251
|
+
ns: g,
|
|
252
|
+
i18n: j,
|
|
253
|
+
t: k,
|
|
254
|
+
shouldUnescape: b,
|
|
255
|
+
...x
|
|
256
|
+
} = e;
|
|
257
|
+
const y = j || I();
|
|
258
|
+
if (!y)
|
|
259
|
+
return Y("You will need to pass in an i18next instance by using i18nextReactModule"), t;
|
|
260
|
+
const c = k || y.t.bind(y) || ((A) => A);
|
|
261
|
+
s && (p.context = s);
|
|
262
|
+
const i = {
|
|
263
|
+
...q(),
|
|
264
|
+
...y.options && y.options.react
|
|
265
|
+
};
|
|
266
|
+
let o = g || c.ns || y.options && y.options.defaultNS;
|
|
267
|
+
o = typeof o == "string" ? [o] : o || ["translation"];
|
|
268
|
+
const v = W(t, i), O = m || v || i.transEmptyNodeValue || f, {
|
|
269
|
+
hashTransKey: h
|
|
270
|
+
} = i, r = f || (h ? h(v || O) : v || O);
|
|
271
|
+
y.options && y.options.interpolation && y.options.interpolation.defaultVariables && (l = l && Object.keys(l).length > 0 ? {
|
|
272
|
+
...l,
|
|
273
|
+
...y.options.interpolation.defaultVariables
|
|
274
|
+
} : {
|
|
275
|
+
...y.options.interpolation.defaultVariables
|
|
276
|
+
});
|
|
277
|
+
const C = l ? p.interpolation : {
|
|
278
|
+
interpolation: {
|
|
279
|
+
...p.interpolation,
|
|
280
|
+
prefix: "#$?",
|
|
281
|
+
suffix: "?$#"
|
|
282
|
+
}
|
|
283
|
+
}, N = {
|
|
284
|
+
...p,
|
|
285
|
+
count: n,
|
|
286
|
+
...l,
|
|
287
|
+
...C,
|
|
288
|
+
defaultValue: O,
|
|
289
|
+
ns: o
|
|
290
|
+
}, E = r ? c(r, N) : O;
|
|
291
|
+
u && Object.keys(u).forEach((A) => {
|
|
292
|
+
const F = u[A];
|
|
293
|
+
if (typeof F.type == "function" || !F.props || !F.props.children || E.indexOf(`${A}/>`) < 0 && E.indexOf(`${A} />`) < 0)
|
|
294
|
+
return;
|
|
295
|
+
function D() {
|
|
296
|
+
return T(z, null, F);
|
|
297
|
+
}
|
|
298
|
+
u[A] = T(D);
|
|
299
|
+
});
|
|
300
|
+
const d = oe(u || t, E, y, i, N, b), w = a !== void 0 ? a : i.defaultTransParent;
|
|
301
|
+
return w ? T(w, x, d) : d;
|
|
302
|
+
}
|
|
303
|
+
function ue(e) {
|
|
304
|
+
let {
|
|
305
|
+
children: t,
|
|
306
|
+
count: n,
|
|
307
|
+
parent: a,
|
|
308
|
+
i18nKey: f,
|
|
309
|
+
context: s,
|
|
310
|
+
tOptions: p = {},
|
|
311
|
+
values: l,
|
|
312
|
+
defaults: m,
|
|
313
|
+
components: u,
|
|
314
|
+
ns: g,
|
|
315
|
+
i18n: j,
|
|
316
|
+
t: k,
|
|
317
|
+
shouldUnescape: b,
|
|
318
|
+
...x
|
|
319
|
+
} = e;
|
|
320
|
+
const {
|
|
321
|
+
i18n: y,
|
|
322
|
+
defaultNS: c
|
|
323
|
+
} = U(Z) || {}, i = j || y || I(), o = k || i && i.t.bind(i);
|
|
324
|
+
return ae({
|
|
325
|
+
children: t,
|
|
326
|
+
count: n,
|
|
327
|
+
parent: a,
|
|
328
|
+
i18nKey: f,
|
|
329
|
+
context: s,
|
|
330
|
+
tOptions: p,
|
|
331
|
+
values: l,
|
|
332
|
+
defaults: m,
|
|
333
|
+
components: u,
|
|
334
|
+
ns: g || o && o.ns || c || i && i.options && i.options.defaultNS,
|
|
335
|
+
i18n: i,
|
|
336
|
+
t: k,
|
|
337
|
+
shouldUnescape: b,
|
|
338
|
+
...x
|
|
339
|
+
});
|
|
340
|
+
}
|
|
341
|
+
export {
|
|
342
|
+
ue as T
|
|
343
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
._typography_1wwcb_1{display:inline-flex;margin-bottom:0}._ellipsis_1wwcb_6{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}._success_1wwcb_12{color:#1890ff;fill:#1890ff}._copy_1wwcb_17{cursor:pointer;margin-left:5px}._copy_1wwcb_17._checkCopy_1wwcb_21{color:#71d200}._code_1wwcb_25{margin:0 .2em;padding:.2em .4em .1em;font-size:85%;background:#9696961a;border:1px solid rgba(100,100,100,.2);border-radius:3px}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
._message_byr9z_1{color:#d2282e;font-size:13px;font-weight:600}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
var u = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
2
|
+
function f(e) {
|
|
3
|
+
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
4
|
+
}
|
|
5
|
+
function l(e) {
|
|
6
|
+
if (e.__esModule)
|
|
7
|
+
return e;
|
|
8
|
+
var r = e.default;
|
|
9
|
+
if (typeof r == "function") {
|
|
10
|
+
var t = function o() {
|
|
11
|
+
return this instanceof o ? Reflect.construct(r, arguments, this.constructor) : r.apply(this, arguments);
|
|
12
|
+
};
|
|
13
|
+
t.prototype = r.prototype;
|
|
14
|
+
} else
|
|
15
|
+
t = {};
|
|
16
|
+
return Object.defineProperty(t, "__esModule", { value: !0 }), Object.keys(e).forEach(function(o) {
|
|
17
|
+
var n = Object.getOwnPropertyDescriptor(e, o);
|
|
18
|
+
Object.defineProperty(t, o, n.get ? n : {
|
|
19
|
+
enumerable: !0,
|
|
20
|
+
get: function() {
|
|
21
|
+
return e[o];
|
|
22
|
+
}
|
|
23
|
+
});
|
|
24
|
+
}), t;
|
|
25
|
+
}
|
|
26
|
+
export {
|
|
27
|
+
l as a,
|
|
28
|
+
u as c,
|
|
29
|
+
f as g
|
|
30
|
+
};
|