@cagatayfdn/flora-components 0.0.138 → 0.0.140
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-BxCEtOHx.js +32 -0
- package/dist/Heading.css +1 -0
- package/dist/IconBox.css +1 -0
- package/dist/InfoBoxList.css +1 -0
- package/dist/InfoBoxList.module-BHkAHgos.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-Df6Zsa7E.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-BE_y91ZN.js +1831 -0
- package/dist/Select.css +1 -0
- package/dist/Select.module-ByPQ6qr4.js +21 -0
- package/dist/StatusTag.css +1 -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/Table.css +1 -0
- package/dist/Table.module-DUqpZOLt.js +29 -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 +70 -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 +60 -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 +68 -0
- package/dist/components/Config/Config.js +32 -0
- package/dist/components/Confirm/Confirm.js +60 -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 +27 -0
- package/dist/components/Drawer/Provider.js +24 -0
- package/dist/components/Drawer/index.js +55 -0
- package/dist/components/Dropdown/DropdownList.js +90 -0
- package/dist/components/ErrorLogModal/ErrorLogModal.js +69 -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/IconBox/IconBox.js +13 -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 +74 -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 +71 -0
- package/dist/components/PermaLink/PermaLink.js +387 -0
- package/dist/components/Radio/Radio.js +96 -0
- package/dist/components/ResultError/ResultError.js +20 -0
- package/dist/components/ScrollContainer/ScrollContainer.js +23 -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/StatusTag/StatusTag.js +24 -0
- package/dist/components/StatusTypography/StatusTypography.js +51 -0
- package/dist/components/Stepper/Stepper.js +75 -0
- package/dist/components/Switch/Switch.js +84 -0
- package/dist/components/Tab/Tab.js +28 -0
- package/dist/components/Table/Table.js +271 -0
- package/dist/components/Table/TableHeader.js +137 -0
- package/dist/components/Table/TableSort.js +25 -0
- package/dist/components/Textarea/Textarea.js +95 -0
- package/dist/components/Tooltip/Tooltip.js +1548 -0
- package/dist/components/TypographyText/TypographyText.js +91 -0
- package/dist/components/ValidationError/ValidationError.js +7 -0
- package/dist/components/index.js +133 -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 +29 -0
- package/dist/enums/isActiveColor.js +4 -0
- package/dist/enums/size.js +4 -0
- package/dist/enums/status.js +11 -0
- package/dist/equals-PL9KqVQf.js +119 -0
- package/dist/flatpickr-CRz1AV0e.js +59 -0
- package/dist/helper-lFjvXQpv.js +1465 -0
- package/dist/hooks/index.js +15 -0
- package/dist/hooks/useAauth.js +40 -0
- package/dist/hooks/useDisclosure.js +14 -0
- package/dist/hooks/useDrawer.js +9 -0
- package/dist/hooks/useMediaQuery.js +21 -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-9ZLCCecr.js +364 -0
- package/dist/index-BHf7G3IG.js +35 -0
- package/dist/index-BJU1K2Aw.js +8003 -0
- package/dist/index-CB61CB0b.js +669 -0
- package/dist/index-H7XbDVmH.js +320 -0
- package/dist/index.css +1 -0
- package/dist/index.d.mts +1478 -0
- package/dist/index.d.ts +1478 -0
- package/dist/index.js +203 -0
- package/dist/index2.css +1 -0
- package/dist/jsx-runtime-BcAkpsdy.js +631 -0
- package/dist/keys-B0bo5Q7o.js +67 -0
- package/dist/locales/en/index.js +615 -0
- package/dist/locales/i18n.js +1417 -0
- package/dist/locales/index.js +5 -0
- package/dist/locales/tr/index.js +615 -0
- package/dist/main.css +1 -0
- package/dist/main.js +57 -0
- package/dist/prodivers.css +6 -0
- package/dist/prodivers.js +13 -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 +18 -0
- package/dist/utils/index.js +27 -0
- package/dist/utils/language.js +46 -0
- package/dist/utils/table.js +62 -0
- package/dist/utils/validation.js +27 -0
- package/dist/utils/yup.js +2921 -0
- package/package.json +1 -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,68 @@
|
|
|
1
|
+
import { j as e } from "../../jsx-runtime-BcAkpsdy.js";
|
|
2
|
+
import b, { useState as k, useEffect as p } from "react";
|
|
3
|
+
import { c as u } from "../../index-BHf7G3IG.js";
|
|
4
|
+
import C from "../Label/Label.js";
|
|
5
|
+
import w from "../ValidationError/ValidationError.js";
|
|
6
|
+
import '../../Checkbox.css';const y = "_checkbox_1msjn_2", E = "_checkbox__filter_1msjn_2", N = "_slider_1msjn_2", R = "_round_1msjn_2", s = {
|
|
7
|
+
checkbox: y,
|
|
8
|
+
checkbox__filter: E,
|
|
9
|
+
switch: "_switch_1msjn_2",
|
|
10
|
+
"text-hide": "_text-hide_1msjn_2",
|
|
11
|
+
slider: N,
|
|
12
|
+
round: R
|
|
13
|
+
}, S = b.forwardRef(
|
|
14
|
+
({
|
|
15
|
+
name: c,
|
|
16
|
+
label: i,
|
|
17
|
+
labelAppearance: x,
|
|
18
|
+
error: n,
|
|
19
|
+
isDisabled: r = !1,
|
|
20
|
+
isInline: h,
|
|
21
|
+
checked: t = !1,
|
|
22
|
+
onChange: _,
|
|
23
|
+
filterInput: m,
|
|
24
|
+
wrapperClassName: f,
|
|
25
|
+
...o
|
|
26
|
+
}) => {
|
|
27
|
+
const [a, d] = k(
|
|
28
|
+
t || !!o.value
|
|
29
|
+
);
|
|
30
|
+
p(() => {
|
|
31
|
+
d(t);
|
|
32
|
+
}, [t]);
|
|
33
|
+
const j = (l) => {
|
|
34
|
+
!o.readOnly && !r && (l.persist(), d(!a), _ && _(l));
|
|
35
|
+
};
|
|
36
|
+
return /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
|
|
37
|
+
/* @__PURE__ */ e.jsxs(
|
|
38
|
+
"div",
|
|
39
|
+
{
|
|
40
|
+
className: u(s.checkbox, f, {
|
|
41
|
+
[s.inline]: h,
|
|
42
|
+
[s.checkbox__filter]: m
|
|
43
|
+
}),
|
|
44
|
+
"data-testid": "checkbox",
|
|
45
|
+
children: [
|
|
46
|
+
/* @__PURE__ */ e.jsx(
|
|
47
|
+
"input",
|
|
48
|
+
{
|
|
49
|
+
type: "checkbox",
|
|
50
|
+
name: c,
|
|
51
|
+
id: c,
|
|
52
|
+
disabled: r,
|
|
53
|
+
checked: a,
|
|
54
|
+
onChange: j,
|
|
55
|
+
...o
|
|
56
|
+
}
|
|
57
|
+
),
|
|
58
|
+
/* @__PURE__ */ e.jsx(C, { className: s.label, name: c, appearance: x, children: i && /* @__PURE__ */ e.jsx("span", { children: i }) })
|
|
59
|
+
]
|
|
60
|
+
}
|
|
61
|
+
),
|
|
62
|
+
n && /* @__PURE__ */ e.jsx(w, { ...n })
|
|
63
|
+
] });
|
|
64
|
+
}
|
|
65
|
+
);
|
|
66
|
+
export {
|
|
67
|
+
S as default
|
|
68
|
+
};
|
|
@@ -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_rymlp_2", f = "_configItem_rymlp_2", p = "_configItemTitle_rymlp_2", i = {
|
|
4
|
+
configWrapper: m,
|
|
5
|
+
configItem: f,
|
|
6
|
+
configItemTitle: p
|
|
7
|
+
};
|
|
8
|
+
function j({ config: r, scrollProps: c }) {
|
|
9
|
+
const a = () => Object.keys(r).map((e) => {
|
|
10
|
+
var n, s, l;
|
|
11
|
+
return (n = r[e]) != null && n.isUrl ? /* @__PURE__ */ t.jsxs("li", { className: i.configItem, "data-testid": "config-list-item", children: [
|
|
12
|
+
/* @__PURE__ */ t.jsx("span", { className: i.configItemTitle, children: `${e}: ` }),
|
|
13
|
+
/* @__PURE__ */ t.jsx(
|
|
14
|
+
"a",
|
|
15
|
+
{
|
|
16
|
+
className: "link",
|
|
17
|
+
target: "_blank",
|
|
18
|
+
rel: "noreferrer",
|
|
19
|
+
href: (s = r[e]) == null ? void 0 : s.url,
|
|
20
|
+
children: `${(l = r[e]) == null ? void 0 : l.url}`
|
|
21
|
+
}
|
|
22
|
+
)
|
|
23
|
+
] }, e) : /* @__PURE__ */ t.jsxs("li", { className: i.configItem, "data-testid": "config-list-item", children: [
|
|
24
|
+
/* @__PURE__ */ t.jsx("span", { className: i.configItemTitle, children: `${e}: ` }),
|
|
25
|
+
/* @__PURE__ */ t.jsx("span", { children: `${r[e]}` })
|
|
26
|
+
] }, e);
|
|
27
|
+
});
|
|
28
|
+
return /* @__PURE__ */ t.jsx(o, { ...c, children: /* @__PURE__ */ t.jsx("ul", { className: i.configWrapper, "data-testid": "config-list", children: a() }) });
|
|
29
|
+
}
|
|
30
|
+
export {
|
|
31
|
+
j as default
|
|
32
|
+
};
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import { j as e } from "../../jsx-runtime-BcAkpsdy.js";
|
|
2
|
+
import { useEffect as C } from "react";
|
|
3
|
+
import h from "../Button/Button.js";
|
|
4
|
+
import w from "../Modal/Modal.js";
|
|
5
|
+
import N from "../../hooks/useNiceModal.js";
|
|
6
|
+
import { ThemeAppearance as c, AppearanceButton as b } from "../../enums/appearance.js";
|
|
7
|
+
import { c as _ } from "../../index-BHf7G3IG.js";
|
|
8
|
+
import { N as y } from "../../index-H7XbDVmH.js";
|
|
9
|
+
import { u as v } from "../../useTranslation-CnCPcxVj.js";
|
|
10
|
+
import '../../Confirm.css';const B = "_btnWrap_1j5qr_2", E = "_dark_1j5qr_2", l = {
|
|
11
|
+
btnWrap: B,
|
|
12
|
+
dark: E
|
|
13
|
+
}, M = (o) => {
|
|
14
|
+
const { t: n } = v(), [, d] = N(o.id), {
|
|
15
|
+
onClose: t,
|
|
16
|
+
okBtnCallback: r,
|
|
17
|
+
isLoading: m,
|
|
18
|
+
appearence: p = c.LIGHT,
|
|
19
|
+
description: f,
|
|
20
|
+
descriptionClassName: k,
|
|
21
|
+
title: u = n("title.warning"),
|
|
22
|
+
okBtnText: x = n("button.yes_proceed"),
|
|
23
|
+
cancelBtnText: j = n("button.cancel")
|
|
24
|
+
} = o, a = () => {
|
|
25
|
+
d(), t && t();
|
|
26
|
+
};
|
|
27
|
+
return C(() => {
|
|
28
|
+
const s = (i) => {
|
|
29
|
+
i.key === "Enter" && (i.preventDefault(), r());
|
|
30
|
+
};
|
|
31
|
+
return window.addEventListener("keydown", s), () => {
|
|
32
|
+
window.removeEventListener("keydown", s);
|
|
33
|
+
};
|
|
34
|
+
}, []), /* @__PURE__ */ e.jsxs(w, { title: u, appearance: p, onClose: a, children: [
|
|
35
|
+
/* @__PURE__ */ e.jsx(
|
|
36
|
+
"p",
|
|
37
|
+
{
|
|
38
|
+
className: _(k, {
|
|
39
|
+
[l.dark]: c.DARK
|
|
40
|
+
}),
|
|
41
|
+
children: f
|
|
42
|
+
}
|
|
43
|
+
),
|
|
44
|
+
/* @__PURE__ */ e.jsxs("div", { className: l.btnWrap, children: [
|
|
45
|
+
/* @__PURE__ */ e.jsx(
|
|
46
|
+
h,
|
|
47
|
+
{
|
|
48
|
+
appearance: b.PRIMARY,
|
|
49
|
+
onClick: r,
|
|
50
|
+
isLoading: m,
|
|
51
|
+
children: x
|
|
52
|
+
}
|
|
53
|
+
),
|
|
54
|
+
/* @__PURE__ */ e.jsx("a", { className: "link", onClick: a, children: j })
|
|
55
|
+
] })
|
|
56
|
+
] });
|
|
57
|
+
}, K = y.create(M);
|
|
58
|
+
export {
|
|
59
|
+
K as default
|
|
60
|
+
};
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import { j as e } from "../../jsx-runtime-BcAkpsdy.js";
|
|
2
|
+
import { C as _ } from "../../react-content-loader.es-CswLCxkm.js";
|
|
3
|
+
import { c as t } from "../../index-BHf7G3IG.js";
|
|
4
|
+
import '../../ContentHeader.css';const x = "_container_ffrew_2", j = "_left_ffrew_2", v = "_right_ffrew_2", N = "_isActiveBorder_ffrew_2", g = "_titleWrapper_ffrew_2", w = "_title_ffrew_2", C = "_description_ffrew_2", r = {
|
|
5
|
+
container: x,
|
|
6
|
+
left: j,
|
|
7
|
+
right: v,
|
|
8
|
+
isActiveBorder: N,
|
|
9
|
+
titleWrapper: g,
|
|
10
|
+
title: w,
|
|
11
|
+
description: C
|
|
12
|
+
}, A = (a) => {
|
|
13
|
+
const {
|
|
14
|
+
title: i,
|
|
15
|
+
leftClassName: n,
|
|
16
|
+
leftComponent: s,
|
|
17
|
+
rightClassName: d,
|
|
18
|
+
titleClassName: l,
|
|
19
|
+
titleWrapperClassName: f,
|
|
20
|
+
component: c,
|
|
21
|
+
description: h,
|
|
22
|
+
isActiveBorder: o,
|
|
23
|
+
isLoading: p,
|
|
24
|
+
...m
|
|
25
|
+
} = a;
|
|
26
|
+
return /* @__PURE__ */ e.jsxs(
|
|
27
|
+
"div",
|
|
28
|
+
{
|
|
29
|
+
className: t(r.container, {
|
|
30
|
+
isActiveBorder: o
|
|
31
|
+
}),
|
|
32
|
+
...m,
|
|
33
|
+
"data-testid": "content-header",
|
|
34
|
+
children: [
|
|
35
|
+
/* @__PURE__ */ e.jsx("div", { className: t(n, r.left), children: p ? /* @__PURE__ */ e.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__ */ e.jsx("rect", { x: "0", y: "10", rx: "3", ry: "3", width: "100%", height: "15" }),
|
|
45
|
+
/* @__PURE__ */ e.jsx("rect", { x: "0", y: "37", rx: "3", ry: "3", width: "100%", height: "3" })
|
|
46
|
+
]
|
|
47
|
+
}
|
|
48
|
+
) : /* @__PURE__ */ e.jsxs("div", { className: t(f), children: [
|
|
49
|
+
i && /* @__PURE__ */ e.jsx(
|
|
50
|
+
"div",
|
|
51
|
+
{
|
|
52
|
+
className: t({
|
|
53
|
+
[r.titleWrapper]: o
|
|
54
|
+
}),
|
|
55
|
+
children: /* @__PURE__ */ e.jsx(
|
|
56
|
+
"h2",
|
|
57
|
+
{
|
|
58
|
+
"data-testid": "content-header-title",
|
|
59
|
+
className: t(l, r.title),
|
|
60
|
+
children: i
|
|
61
|
+
}
|
|
62
|
+
)
|
|
63
|
+
}
|
|
64
|
+
),
|
|
65
|
+
s && s,
|
|
66
|
+
/* @__PURE__ */ e.jsx("div", { className: r.description, children: h })
|
|
67
|
+
] }) }),
|
|
68
|
+
/* @__PURE__ */ e.jsx("div", { className: t(d, r.right), children: c && c })
|
|
69
|
+
]
|
|
70
|
+
}
|
|
71
|
+
);
|
|
72
|
+
};
|
|
73
|
+
export {
|
|
74
|
+
A 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
|
+
};
|