@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
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { j as u } from "../../jsx-runtime-BcAkpsdy.js";
|
|
2
|
+
import { g as n } from "../../index-BJU1K2Aw.js";
|
|
3
|
+
function f({ data: e, options: r }) {
|
|
4
|
+
var t;
|
|
5
|
+
function s(o) {
|
|
6
|
+
switch (o) {
|
|
7
|
+
case 0:
|
|
8
|
+
case 1:
|
|
9
|
+
return 88;
|
|
10
|
+
case 2:
|
|
11
|
+
return 76;
|
|
12
|
+
case 3:
|
|
13
|
+
return 63;
|
|
14
|
+
default:
|
|
15
|
+
return 50;
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
return /* @__PURE__ */ u.jsx(
|
|
19
|
+
n,
|
|
20
|
+
{
|
|
21
|
+
options: {
|
|
22
|
+
responsive: !0,
|
|
23
|
+
elements: {
|
|
24
|
+
arc: {
|
|
25
|
+
borderWidth: 0,
|
|
26
|
+
offset: 0
|
|
27
|
+
}
|
|
28
|
+
},
|
|
29
|
+
plugins: {
|
|
30
|
+
filler: {
|
|
31
|
+
propagate: !1
|
|
32
|
+
}
|
|
33
|
+
},
|
|
34
|
+
cutout: `${s((t = e.datasets) == null ? void 0 : t.length)}%`,
|
|
35
|
+
...r
|
|
36
|
+
},
|
|
37
|
+
data: e
|
|
38
|
+
}
|
|
39
|
+
);
|
|
40
|
+
}
|
|
41
|
+
export {
|
|
42
|
+
f as default
|
|
43
|
+
};
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import a from "./Bar.js";
|
|
2
|
+
import t from "./Legends.js";
|
|
3
|
+
import r from "./Line.js";
|
|
4
|
+
import s from "./Pie.js";
|
|
5
|
+
import { C as e, a as i, L as l, b as o, A as n, P as f, c as m, i as p, p as d, d as u, e as g } from "../../index-BJU1K2Aw.js";
|
|
6
|
+
const P = {
|
|
7
|
+
Bar: a,
|
|
8
|
+
Pie: s,
|
|
9
|
+
Line: r,
|
|
10
|
+
Legends: t
|
|
11
|
+
};
|
|
12
|
+
e.defaults.color = "#fff";
|
|
13
|
+
e.defaults.borderColor = "#3C4560";
|
|
14
|
+
e.defaults.responsive = !0;
|
|
15
|
+
e.defaults.maintainAspectRatio = !0;
|
|
16
|
+
e.register(
|
|
17
|
+
i,
|
|
18
|
+
l,
|
|
19
|
+
o,
|
|
20
|
+
n,
|
|
21
|
+
f,
|
|
22
|
+
m,
|
|
23
|
+
p,
|
|
24
|
+
d,
|
|
25
|
+
u,
|
|
26
|
+
g
|
|
27
|
+
);
|
|
28
|
+
e.defaults.plugins.legend.display = !1;
|
|
29
|
+
export {
|
|
30
|
+
P as default
|
|
31
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
import { j as i } from "../../jsx-runtime-BcAkpsdy.js";
|
|
2
|
+
import f, { useState as x, useEffect as w } from "react";
|
|
3
|
+
import { c as k } from "../../index-BHf7G3IG.js";
|
|
4
|
+
import g from "../Label/Label.js";
|
|
5
|
+
import b from "../ValidationError/ValidationError.js";
|
|
6
|
+
import '../../Checkbox.css';const j = "_checkbox_1ie3h_236", v = "_slider_1ie3h_328", y = "_round_1ie3h_375", c = {
|
|
7
|
+
"icon-applications": "_icon-applications_1ie3h_16",
|
|
8
|
+
"icon-attach": "_icon-attach_1ie3h_20",
|
|
9
|
+
"icon-attachment": "_icon-attachment_1ie3h_24",
|
|
10
|
+
"icon-billing": "_icon-billing_1ie3h_28",
|
|
11
|
+
"icon-box": "_icon-box_1ie3h_32",
|
|
12
|
+
"icon-calendar": "_icon-calendar_1ie3h_36",
|
|
13
|
+
"icon-cart": "_icon-cart_1ie3h_40",
|
|
14
|
+
"icon-certificate": "_icon-certificate_1ie3h_44",
|
|
15
|
+
"icon-check": "_icon-check_1ie3h_48",
|
|
16
|
+
"icon-chevron-left": "_icon-chevron-left_1ie3h_52",
|
|
17
|
+
"icon-chevron-right": "_icon-chevron-right_1ie3h_56",
|
|
18
|
+
"icon-circle-minus": "_icon-circle-minus_1ie3h_60",
|
|
19
|
+
"icon-circle-plus": "_icon-circle-plus_1ie3h_64",
|
|
20
|
+
"icon-clock": "_icon-clock_1ie3h_68",
|
|
21
|
+
"icon-close": "_icon-close_1ie3h_72",
|
|
22
|
+
"icon-copy": "_icon-copy_1ie3h_76",
|
|
23
|
+
"icon-credit-card": "_icon-credit-card_1ie3h_80",
|
|
24
|
+
"icon-document": "_icon-document_1ie3h_84",
|
|
25
|
+
"icon-domain-registration": "_icon-domain-registration_1ie3h_88",
|
|
26
|
+
"icon-domains": "_icon-domains_1ie3h_92",
|
|
27
|
+
"icon-down-arrow": "_icon-down-arrow_1ie3h_96",
|
|
28
|
+
"icon-down-square": "_icon-down-square_1ie3h_100",
|
|
29
|
+
"icon-down": "_icon-down_1ie3h_96",
|
|
30
|
+
"icon-download": "_icon-download_1ie3h_108",
|
|
31
|
+
"icon-edit-outline": "_icon-edit-outline_1ie3h_112",
|
|
32
|
+
"icon-edit": "_icon-edit_1ie3h_112",
|
|
33
|
+
"icon-email": "_icon-email_1ie3h_120",
|
|
34
|
+
"icon-environment": "_icon-environment_1ie3h_124",
|
|
35
|
+
"icon-error-fill": "_icon-error-fill_1ie3h_128",
|
|
36
|
+
"icon-error": "_icon-error_1ie3h_128",
|
|
37
|
+
"icon-fileTextOutlined": "_icon-fileTextOutlined_1ie3h_136",
|
|
38
|
+
"icon-info": "_icon-info_1ie3h_140",
|
|
39
|
+
"icon-install": "_icon-install_1ie3h_144",
|
|
40
|
+
"icon-link": "_icon-link_1ie3h_148",
|
|
41
|
+
"icon-log": "_icon-log_1ie3h_152",
|
|
42
|
+
"icon-menu-close": "_icon-menu-close_1ie3h_156",
|
|
43
|
+
"icon-menu-open": "_icon-menu-open_1ie3h_160",
|
|
44
|
+
"icon-monitoring": "_icon-monitoring_1ie3h_164",
|
|
45
|
+
"icon-network": "_icon-network_1ie3h_168",
|
|
46
|
+
"icon-no-results": "_icon-no-results_1ie3h_172",
|
|
47
|
+
"icon-not-edit": "_icon-not-edit_1ie3h_176",
|
|
48
|
+
"icon-path": "_icon-path_1ie3h_180",
|
|
49
|
+
"icon-plus": "_icon-plus_1ie3h_184",
|
|
50
|
+
"icon-preview": "_icon-preview_1ie3h_188",
|
|
51
|
+
"icon-profile": "_icon-profile_1ie3h_192",
|
|
52
|
+
"icon-project-list": "_icon-project-list_1ie3h_196",
|
|
53
|
+
"icon-projects": "_icon-projects_1ie3h_200",
|
|
54
|
+
"icon-reload": "_icon-reload_1ie3h_204",
|
|
55
|
+
"icon-retry": "_icon-retry_1ie3h_208",
|
|
56
|
+
"icon-search": "_icon-search_1ie3h_212",
|
|
57
|
+
"icon-settings": "_icon-settings_1ie3h_216",
|
|
58
|
+
"icon-support": "_icon-support_1ie3h_220",
|
|
59
|
+
"icon-trash": "_icon-trash_1ie3h_224",
|
|
60
|
+
"icon-users": "_icon-users_1ie3h_228",
|
|
61
|
+
"icon-warning": "_icon-warning_1ie3h_232",
|
|
62
|
+
checkbox: j,
|
|
63
|
+
switch: "_switch_1ie3h_311",
|
|
64
|
+
"text-hide": "_text-hide_1ie3h_318",
|
|
65
|
+
slider: v,
|
|
66
|
+
round: y
|
|
67
|
+
}, q = f.forwardRef(
|
|
68
|
+
({
|
|
69
|
+
name: e,
|
|
70
|
+
label: _,
|
|
71
|
+
labelAppearance: d,
|
|
72
|
+
error: t,
|
|
73
|
+
isDisabled: r = !1,
|
|
74
|
+
isInline: p,
|
|
75
|
+
checked: o = !1,
|
|
76
|
+
onChange: h,
|
|
77
|
+
wrapperClassName: u,
|
|
78
|
+
...n
|
|
79
|
+
}) => {
|
|
80
|
+
const [s, a] = x(
|
|
81
|
+
o || !!n.value
|
|
82
|
+
);
|
|
83
|
+
w(() => {
|
|
84
|
+
a(o);
|
|
85
|
+
}, [o]);
|
|
86
|
+
const m = (l) => {
|
|
87
|
+
!n.readOnly && !r && (l.persist(), a(!s), h && h(l));
|
|
88
|
+
};
|
|
89
|
+
return /* @__PURE__ */ i.jsxs(i.Fragment, { children: [
|
|
90
|
+
/* @__PURE__ */ i.jsxs(
|
|
91
|
+
"div",
|
|
92
|
+
{
|
|
93
|
+
className: k(c.checkbox, u, {
|
|
94
|
+
[c.inline]: p
|
|
95
|
+
}),
|
|
96
|
+
"data-testid": "checkbox",
|
|
97
|
+
children: [
|
|
98
|
+
/* @__PURE__ */ i.jsx(
|
|
99
|
+
"input",
|
|
100
|
+
{
|
|
101
|
+
type: "checkbox",
|
|
102
|
+
name: e,
|
|
103
|
+
disabled: r,
|
|
104
|
+
checked: s,
|
|
105
|
+
onChange: m,
|
|
106
|
+
...n
|
|
107
|
+
}
|
|
108
|
+
),
|
|
109
|
+
/* @__PURE__ */ i.jsx(g, { className: c.label, name: e, appearance: d, children: _ && /* @__PURE__ */ i.jsx("span", { children: _ }) })
|
|
110
|
+
]
|
|
111
|
+
}
|
|
112
|
+
),
|
|
113
|
+
t && /* @__PURE__ */ i.jsx(b, { ...t })
|
|
114
|
+
] });
|
|
115
|
+
}
|
|
116
|
+
);
|
|
117
|
+
export {
|
|
118
|
+
q as default
|
|
119
|
+
};
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { j as t } from "../../jsx-runtime-BcAkpsdy.js";
|
|
2
|
+
import o from "../ScrollContainer/ScrollContainer.js";
|
|
3
|
+
import '../../Config.css';const m = "_configWrapper_q9ieu_1", f = "_configItem_q9ieu_5", d = "_configItemTitle_q9ieu_12", n = {
|
|
4
|
+
configWrapper: m,
|
|
5
|
+
configItem: f,
|
|
6
|
+
configItemTitle: d
|
|
7
|
+
};
|
|
8
|
+
function u({ config: i, scrollProps: l }) {
|
|
9
|
+
const a = () => Object.keys(i).map((e) => {
|
|
10
|
+
var r, s, c;
|
|
11
|
+
return (r = i[e]) != null && r.isUrl ? /* @__PURE__ */ t.jsxs("li", { className: n.configItem, "data-testid": "config-list-item", children: [
|
|
12
|
+
/* @__PURE__ */ t.jsx("span", { className: n.configItemTitle, children: `${e}: ` }),
|
|
13
|
+
/* @__PURE__ */ t.jsx(
|
|
14
|
+
"a",
|
|
15
|
+
{
|
|
16
|
+
className: "link",
|
|
17
|
+
target: "_blank",
|
|
18
|
+
rel: "noreferrer",
|
|
19
|
+
href: (s = i[e]) == null ? void 0 : s.url,
|
|
20
|
+
children: `${(c = i[e]) == null ? void 0 : c.url}`
|
|
21
|
+
}
|
|
22
|
+
)
|
|
23
|
+
] }, e) : /* @__PURE__ */ t.jsxs("li", { className: n.configItem, "data-testid": "config-list-item", children: [
|
|
24
|
+
/* @__PURE__ */ t.jsx("span", { className: n.configItemTitle, children: `${e}: ` }),
|
|
25
|
+
/* @__PURE__ */ t.jsx("span", { children: `${i[e]}` })
|
|
26
|
+
] }, e);
|
|
27
|
+
});
|
|
28
|
+
return /* @__PURE__ */ t.jsx(o, { ...l, children: /* @__PURE__ */ t.jsx("ul", { className: n.configWrapper, "data-testid": "config-list", children: a() }) });
|
|
29
|
+
}
|
|
30
|
+
export {
|
|
31
|
+
u as default
|
|
32
|
+
};
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { j as o } from "../../jsx-runtime-BcAkpsdy.js";
|
|
2
|
+
import x from "../Button/Button.js";
|
|
3
|
+
import C from "../Modal/Modal.js";
|
|
4
|
+
import N from "../../hooks/useNiceModal.js";
|
|
5
|
+
import { ThemeAppearance as r, AppearanceButton as b } from "../../enums/appearance.js";
|
|
6
|
+
import { c as h } from "../../index-BHf7G3IG.js";
|
|
7
|
+
import { N as j } from "../../index-H7XbDVmH.js";
|
|
8
|
+
import { u as _ } from "../../useTranslation-CnCPcxVj.js";
|
|
9
|
+
import '../../Confirm.css';const B = "_btnWrap_ztmp0_1", M = "_dark_ztmp0_9", s = {
|
|
10
|
+
btnWrap: B,
|
|
11
|
+
dark: M
|
|
12
|
+
}, T = (a) => {
|
|
13
|
+
const { t } = _(), [, c] = N(a.id), {
|
|
14
|
+
onClose: e,
|
|
15
|
+
okBtnCallback: i,
|
|
16
|
+
isLoading: l,
|
|
17
|
+
appearence: p = r.LIGHT,
|
|
18
|
+
description: m,
|
|
19
|
+
descriptionClassName: d,
|
|
20
|
+
title: f = t("title.warning"),
|
|
21
|
+
okBtnText: k = t("button.yes_proceed"),
|
|
22
|
+
cancelBtnText: u = t("button.cancel")
|
|
23
|
+
} = a, n = () => {
|
|
24
|
+
c(), e && e();
|
|
25
|
+
};
|
|
26
|
+
return /* @__PURE__ */ o.jsxs(C, { title: f, appearance: p, onClose: n, children: [
|
|
27
|
+
/* @__PURE__ */ o.jsx(
|
|
28
|
+
"p",
|
|
29
|
+
{
|
|
30
|
+
className: h(d, {
|
|
31
|
+
[s.dark]: r.DARK
|
|
32
|
+
}),
|
|
33
|
+
children: m
|
|
34
|
+
}
|
|
35
|
+
),
|
|
36
|
+
/* @__PURE__ */ o.jsxs("div", { className: s.btnWrap, children: [
|
|
37
|
+
/* @__PURE__ */ o.jsx(
|
|
38
|
+
x,
|
|
39
|
+
{
|
|
40
|
+
appearance: b.PRIMARY,
|
|
41
|
+
onClick: i,
|
|
42
|
+
isLoading: l,
|
|
43
|
+
children: k
|
|
44
|
+
}
|
|
45
|
+
),
|
|
46
|
+
/* @__PURE__ */ o.jsx("a", { className: "link", onClick: n, children: u })
|
|
47
|
+
] })
|
|
48
|
+
] });
|
|
49
|
+
}, v = j.create(T);
|
|
50
|
+
export {
|
|
51
|
+
v as default
|
|
52
|
+
};
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import { j as t } from "../../jsx-runtime-BcAkpsdy.js";
|
|
2
|
+
import { C as _ } from "../../react-content-loader.es-CswLCxkm.js";
|
|
3
|
+
import { c as e } from "../../index-BHf7G3IG.js";
|
|
4
|
+
import '../../ContentHeader.css';const j = "_container_18oux_1", u = "_left_18oux_12", v = "_right_18oux_15", N = "_isActiveBorder_18oux_19", f = "_titleWrapper_18oux_31", g = "_title_18oux_31", C = "_description_18oux_52", i = {
|
|
5
|
+
container: j,
|
|
6
|
+
left: u,
|
|
7
|
+
right: v,
|
|
8
|
+
isActiveBorder: N,
|
|
9
|
+
titleWrapper: f,
|
|
10
|
+
title: g,
|
|
11
|
+
description: C
|
|
12
|
+
}, W = (a) => {
|
|
13
|
+
const {
|
|
14
|
+
title: s,
|
|
15
|
+
leftClassName: n,
|
|
16
|
+
leftComponent: r,
|
|
17
|
+
rightClassName: d,
|
|
18
|
+
titleClassName: l,
|
|
19
|
+
titleWrapperClassName: h,
|
|
20
|
+
component: o,
|
|
21
|
+
description: x,
|
|
22
|
+
isActiveBorder: c,
|
|
23
|
+
isLoading: p,
|
|
24
|
+
...m
|
|
25
|
+
} = a;
|
|
26
|
+
return /* @__PURE__ */ t.jsxs(
|
|
27
|
+
"div",
|
|
28
|
+
{
|
|
29
|
+
className: e(i.container, {
|
|
30
|
+
isActiveBorder: c
|
|
31
|
+
}),
|
|
32
|
+
...m,
|
|
33
|
+
"data-testid": "content-header",
|
|
34
|
+
children: [
|
|
35
|
+
/* @__PURE__ */ t.jsx("div", { className: e(n, i.left), children: p ? /* @__PURE__ */ t.jsxs(
|
|
36
|
+
_,
|
|
37
|
+
{
|
|
38
|
+
backgroundColor: "#8c919d",
|
|
39
|
+
foregroundColor: "#dbdbdb",
|
|
40
|
+
width: 150,
|
|
41
|
+
height: 40,
|
|
42
|
+
viewBox: "0 0 150 40",
|
|
43
|
+
children: [
|
|
44
|
+
/* @__PURE__ */ t.jsx("rect", { x: "0", y: "10", rx: "3", ry: "3", width: "100%", height: "15" }),
|
|
45
|
+
/* @__PURE__ */ t.jsx("rect", { x: "0", y: "37", rx: "3", ry: "3", width: "100%", height: "3" })
|
|
46
|
+
]
|
|
47
|
+
}
|
|
48
|
+
) : /* @__PURE__ */ t.jsxs("div", { className: e(h), children: [
|
|
49
|
+
s && /* @__PURE__ */ t.jsx(
|
|
50
|
+
"div",
|
|
51
|
+
{
|
|
52
|
+
className: e({
|
|
53
|
+
[i.titleWrapper]: c
|
|
54
|
+
}),
|
|
55
|
+
children: /* @__PURE__ */ t.jsx(
|
|
56
|
+
"h2",
|
|
57
|
+
{
|
|
58
|
+
"data-testid": "content-header-title",
|
|
59
|
+
className: e(l, i.title),
|
|
60
|
+
children: s
|
|
61
|
+
}
|
|
62
|
+
)
|
|
63
|
+
}
|
|
64
|
+
),
|
|
65
|
+
r && r,
|
|
66
|
+
/* @__PURE__ */ t.jsx("div", { className: i.description, children: x })
|
|
67
|
+
] }) }),
|
|
68
|
+
/* @__PURE__ */ t.jsx("div", { className: e(d, i.right), children: o && o })
|
|
69
|
+
]
|
|
70
|
+
}
|
|
71
|
+
);
|
|
72
|
+
};
|
|
73
|
+
export {
|
|
74
|
+
W as default
|
|
75
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { j as r } from "../../jsx-runtime-BcAkpsdy.js";
|
|
2
|
+
import { C as o } from "../../react-content-loader.es-CswLCxkm.js";
|
|
3
|
+
const f = () => /* @__PURE__ */ r.jsx(
|
|
4
|
+
o,
|
|
5
|
+
{
|
|
6
|
+
backgroundColor: "#ffffff",
|
|
7
|
+
foregroundColor: "#8c919d",
|
|
8
|
+
width: 55,
|
|
9
|
+
height: 12,
|
|
10
|
+
viewBox: "0 0 55 12",
|
|
11
|
+
children: /* @__PURE__ */ r.jsx("rect", { x: "0", y: "3", rx: "3", ry: "3", width: "100%", height: "9" })
|
|
12
|
+
}
|
|
13
|
+
);
|
|
14
|
+
export {
|
|
15
|
+
f as default
|
|
16
|
+
};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { j as i } from "../../jsx-runtime-BcAkpsdy.js";
|
|
2
|
+
import r from "react";
|
|
3
|
+
function c({ seconds: e, reset: f, onEnd: a }) {
|
|
4
|
+
const [t, n] = r.useState(e);
|
|
5
|
+
return r.useEffect(() => {
|
|
6
|
+
n(e);
|
|
7
|
+
}, [e, f]), r.useEffect(() => {
|
|
8
|
+
if (!t) {
|
|
9
|
+
a && a();
|
|
10
|
+
return;
|
|
11
|
+
}
|
|
12
|
+
const u = setInterval(() => {
|
|
13
|
+
n(t - 1);
|
|
14
|
+
}, 1e3);
|
|
15
|
+
return () => clearInterval(u);
|
|
16
|
+
}, [t]), /* @__PURE__ */ i.jsx("span", { "data-testid": "countdown", children: t });
|
|
17
|
+
}
|
|
18
|
+
export {
|
|
19
|
+
c as default
|
|
20
|
+
};
|