@cagatayfdn/flora-components 0.0.136 → 0.0.138
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/package.json +1 -1
- package/dist/Accordion.css +0 -1
- package/dist/ActionButton.css +0 -1
- package/dist/AlertCard.css +0 -1
- package/dist/Autocomplete.css +0 -1
- package/dist/Button.css +0 -1
- package/dist/Card.css +0 -1
- package/dist/Checkbox.css +0 -1
- package/dist/Config.css +0 -1
- package/dist/Confirm.css +0 -1
- package/dist/ContentHeader.css +0 -1
- package/dist/Datepicker.css +0 -1
- package/dist/Divider.css +0 -1
- package/dist/DropdownList.css +0 -1
- package/dist/ErrorLogModal.css +0 -1
- package/dist/FileUpload.css +0 -1
- package/dist/FileUpload.module-BxCEtOHx.js +0 -32
- package/dist/Heading.css +0 -1
- package/dist/IconBox.css +0 -1
- package/dist/InfoBoxList.css +0 -1
- package/dist/InfoBoxList.module-BHkAHgos.js +0 -8
- package/dist/InfoDate.css +0 -1
- package/dist/InfoText.css +0 -1
- package/dist/Input.css +0 -1
- package/dist/Label.css +0 -1
- package/dist/Legends.css +0 -1
- package/dist/Loading.css +0 -1
- package/dist/MenuItem-Df6Zsa7E.js +0 -53
- package/dist/MenuItem.css +0 -1
- package/dist/Modal.css +0 -1
- package/dist/NoResult.css +0 -1
- package/dist/PageWrap.css +0 -1
- package/dist/Pager.css +0 -1
- package/dist/Panel.css +0 -1
- package/dist/Radio.css +0 -1
- package/dist/ResultError.css +0 -1
- package/dist/ScrollContainer.css +0 -1
- package/dist/Select-BE_y91ZN.js +0 -1831
- package/dist/Select.css +0 -1
- package/dist/Select.module-ByPQ6qr4.js +0 -21
- package/dist/StatusTag.css +0 -1
- package/dist/StatusTypography.css +0 -1
- package/dist/Stepper.css +0 -1
- package/dist/Switch.css +0 -1
- package/dist/Tab.css +0 -1
- package/dist/Table.css +0 -1
- package/dist/Table.module-DUqpZOLt.js +0 -29
- package/dist/Textarea.css +0 -1
- package/dist/Tooltip.css +0 -1
- package/dist/Trans-B4ILpbwK.js +0 -343
- package/dist/TypographyText.css +0 -1
- package/dist/ValidationError.css +0 -1
- package/dist/_commonjsHelpers-CT_km90n.js +0 -30
- package/dist/_isArray-CBUZFxFA.js +0 -6
- package/dist/_isString-BUpNGP_8.js +0 -6
- package/dist/_reduce-DsUCMz4O.js +0 -148
- package/dist/assets/icons/icons.js +0 -70
- package/dist/assets/images/500_error_2x.gif +0 -0
- package/dist/assets/images/oms.png +0 -0
- package/dist/components/Accordion/Accordion.js +0 -60
- package/dist/components/ActionButton/ActionButton.js +0 -54
- package/dist/components/AlertCard/AlertCard.js +0 -29
- package/dist/components/AuthUserCan/Permission.js +0 -18
- package/dist/components/AuthUserCan/index.js +0 -23
- package/dist/components/Autocomplete/Autocomplete.js +0 -87
- package/dist/components/Button/Button.js +0 -87
- package/dist/components/Card/Card.js +0 -21
- package/dist/components/Charts/Bar.js +0 -18
- package/dist/components/Charts/Legends.js +0 -21
- package/dist/components/Charts/Line.js +0 -18
- package/dist/components/Charts/Pie.js +0 -43
- package/dist/components/Charts/index.js +0 -31
- package/dist/components/Charts/types.js +0 -1
- package/dist/components/Charts/utils.js +0 -12
- package/dist/components/Checkbox/Checkbox.js +0 -68
- package/dist/components/Config/Config.js +0 -32
- package/dist/components/Confirm/Confirm.js +0 -60
- package/dist/components/ContentHeader/ContentHeader.js +0 -75
- package/dist/components/ContentLoader/ContentLoader.js +0 -16
- package/dist/components/Countdown/Countdown.js +0 -20
- package/dist/components/Datepicker/Datepicker.js +0 -1478
- package/dist/components/Divider/Divider.js +0 -27
- package/dist/components/Drawer/Provider.js +0 -24
- package/dist/components/Drawer/index.js +0 -55
- package/dist/components/Dropdown/DropdownList.js +0 -90
- package/dist/components/ErrorLogModal/ErrorLogModal.js +0 -69
- package/dist/components/FileUpload/FileUpload.js +0 -237
- package/dist/components/FileUpload/ImagePreview.js +0 -19
- package/dist/components/FileUpload/LengthCard.js +0 -6
- package/dist/components/FileUpload/PreviewModal.js +0 -53
- package/dist/components/Grid/Column.js +0 -29
- package/dist/components/Grid/Row.js +0 -6
- package/dist/components/Heading/Heading.js +0 -22
- package/dist/components/Icon/index.js +0 -24
- package/dist/components/IconBox/IconBox.js +0 -13
- package/dist/components/InfiniteScroll/InfiniteScroll.js +0 -41
- package/dist/components/InfoBoxList/InfoBoxList.js +0 -30
- package/dist/components/InfoBoxList/helper.js +0 -83
- package/dist/components/InfoDate/InfoDate.js +0 -19
- package/dist/components/InfoText/InfoText.js +0 -13
- package/dist/components/Input/Input.js +0 -140
- package/dist/components/Label/Label.js +0 -22
- package/dist/components/Loading/Loading.js +0 -62
- package/dist/components/Modal/Modal.js +0 -74
- package/dist/components/NavigatorCard/index.js +0 -59
- package/dist/components/NoResult/NoResult.js +0 -12
- package/dist/components/Notification/Notification.js +0 -26
- package/dist/components/PageWrapper/PageWrap.js +0 -46
- package/dist/components/Pager/Pager.js +0 -103
- package/dist/components/Panel/Panel.js +0 -71
- package/dist/components/PermaLink/PermaLink.js +0 -387
- package/dist/components/Radio/Radio.js +0 -96
- package/dist/components/ResultError/ResultError.js +0 -20
- package/dist/components/ScrollContainer/ScrollContainer.js +0 -23
- package/dist/components/Select/NoData.js +0 -10
- package/dist/components/Select/OptionItem.js +0 -19
- package/dist/components/Select/Select.js +0 -13
- package/dist/components/Sidebar/MenuItem.js +0 -9
- package/dist/components/Sidebar/index.js +0 -137
- package/dist/components/StatusTag/StatusTag.js +0 -24
- package/dist/components/StatusTypography/StatusTypography.js +0 -51
- package/dist/components/Stepper/Stepper.js +0 -75
- package/dist/components/Switch/Switch.js +0 -84
- package/dist/components/Tab/Tab.js +0 -28
- package/dist/components/Table/Table.js +0 -271
- package/dist/components/Table/TableHeader.js +0 -137
- package/dist/components/Table/TableSort.js +0 -25
- package/dist/components/Textarea/Textarea.js +0 -95
- package/dist/components/Tooltip/Tooltip.js +0 -1548
- package/dist/components/TypographyText/TypographyText.js +0 -91
- package/dist/components/ValidationError/ValidationError.js +0 -7
- package/dist/components/index.js +0 -133
- package/dist/defineProperty-DeKy1XT0.js +0 -37
- package/dist/enums/appearance.js +0 -14
- package/dist/enums/applicationTypeSlug.js +0 -4
- package/dist/enums/index.js +0 -29
- package/dist/enums/isActiveColor.js +0 -4
- package/dist/enums/size.js +0 -4
- package/dist/enums/status.js +0 -11
- package/dist/equals-PL9KqVQf.js +0 -119
- package/dist/flatpickr-CRz1AV0e.js +0 -59
- package/dist/hooks/index.js +0 -15
- package/dist/hooks/useAauth.js +0 -40
- package/dist/hooks/useDisclosure.js +0 -14
- package/dist/hooks/useDrawer.js +0 -9
- package/dist/hooks/useMediaQuery.js +0 -21
- package/dist/hooks/useNiceModal.js +0 -13
- package/dist/i18nInstance-CiCZbaCK.js +0 -55
- package/dist/includes-8YTFrx85.js +0 -46
- package/dist/index-9ZLCCecr.js +0 -364
- package/dist/index-BHf7G3IG.js +0 -35
- package/dist/index-BJU1K2Aw.js +0 -8003
- package/dist/index-CB61CB0b.js +0 -669
- package/dist/index-H7XbDVmH.js +0 -320
- package/dist/index-JNaMEwgt.js +0 -1413
- package/dist/index.css +0 -1
- package/dist/index.d.mts +0 -1463
- package/dist/index.d.ts +0 -1463
- package/dist/index.js +0 -200
- package/dist/index2.css +0 -1
- package/dist/jsx-runtime-BcAkpsdy.js +0 -631
- package/dist/keys-B0bo5Q7o.js +0 -67
- package/dist/locales/en/index.js +0 -613
- package/dist/locales/i18n.js +0 -1417
- package/dist/locales/index.js +0 -5
- package/dist/locales/tr/index.js +0 -613
- package/dist/main.css +0 -1
- package/dist/main.js +0 -56
- package/dist/prodivers.css +0 -6
- package/dist/prodivers.js +0 -13
- package/dist/react-content-loader.es-CswLCxkm.js +0 -90
- package/dist/react-toastify.esm-BUWNP7Nm.js +0 -808
- package/dist/types/common/date.js +0 -1
- package/dist/types/common/events.js +0 -1
- package/dist/types/common/forms.js +0 -1
- package/dist/types/common/option.js +0 -1
- package/dist/types/index.js +0 -1
- package/dist/useTranslation-CnCPcxVj.js +0 -142
- package/dist/utils/date.js +0 -413
- package/dist/utils/flatpickr.js +0 -4
- package/dist/utils/helper.js +0 -55
- package/dist/utils/index.js +0 -24
- package/dist/utils/language.js +0 -46
- package/dist/utils/validation.js +0 -27
- package/dist/utils/yup.js +0 -2921
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { j as t } from "../../jsx-runtime-BcAkpsdy.js";
|
|
2
|
-
import { s as n } from "../../Select.module-ByPQ6qr4.js";
|
|
3
|
-
import { u as r } from "../../useTranslation-CnCPcxVj.js";
|
|
4
|
-
function d({ text: s }) {
|
|
5
|
-
const { t: a } = r(), o = s || a("text.no_results");
|
|
6
|
-
return /* @__PURE__ */ t.jsx("div", { className: n.noData, "data-testid": "nodata", children: /* @__PURE__ */ t.jsx("span", { children: o }) });
|
|
7
|
-
}
|
|
8
|
-
export {
|
|
9
|
-
d as default
|
|
10
|
-
};
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { j as e } from "../../jsx-runtime-BcAkpsdy.js";
|
|
2
|
-
import { s as t } from "../../Select.module-ByPQ6qr4.js";
|
|
3
|
-
function m({
|
|
4
|
-
props: l,
|
|
5
|
-
item: s,
|
|
6
|
-
methods: a,
|
|
7
|
-
onRemoveItem: o
|
|
8
|
-
}) {
|
|
9
|
-
const n = l.labelField || "label", r = (c) => {
|
|
10
|
-
a.removeItem(c, s, !0), o && o(s);
|
|
11
|
-
};
|
|
12
|
-
return /* @__PURE__ */ e.jsxs("span", { role: "listitem", className: t.customOptionItem, "data-testid": "option-item", children: [
|
|
13
|
-
/* @__PURE__ */ e.jsx("span", { children: s == null ? void 0 : s[n] }),
|
|
14
|
-
/* @__PURE__ */ e.jsx("span", { onClick: r, className: t.remove, children: "x" })
|
|
15
|
-
] });
|
|
16
|
-
}
|
|
17
|
-
export {
|
|
18
|
-
m as default
|
|
19
|
-
};
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import "../../jsx-runtime-BcAkpsdy.js";
|
|
2
|
-
import { S as s } from "../../Select-BE_y91ZN.js";
|
|
3
|
-
import "../../index-BHf7G3IG.js";
|
|
4
|
-
import "../../Select.module-ByPQ6qr4.js";
|
|
5
|
-
import "../Label/Label.js";
|
|
6
|
-
import "../ValidationError/ValidationError.js";
|
|
7
|
-
import "./NoData.js";
|
|
8
|
-
import "./OptionItem.js";
|
|
9
|
-
import "../InfiniteScroll/InfiniteScroll.js";
|
|
10
|
-
import "../../useTranslation-CnCPcxVj.js";
|
|
11
|
-
export {
|
|
12
|
-
s as default
|
|
13
|
-
};
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import "../../jsx-runtime-BcAkpsdy.js";
|
|
2
|
-
import "../Icon/index.js";
|
|
3
|
-
import "../PermaLink/PermaLink.js";
|
|
4
|
-
import "../Tooltip/Tooltip.js";
|
|
5
|
-
import { M as e } from "../../MenuItem-Df6Zsa7E.js";
|
|
6
|
-
import "../../enums/appearance.js";
|
|
7
|
-
export {
|
|
8
|
-
e as default
|
|
9
|
-
};
|
|
@@ -1,137 +0,0 @@
|
|
|
1
|
-
import { j as e } from "../../jsx-runtime-BcAkpsdy.js";
|
|
2
|
-
import { useState as T, useEffect as k } from "react";
|
|
3
|
-
import x from "../AuthUserCan/index.js";
|
|
4
|
-
import w from "../Icon/index.js";
|
|
5
|
-
import { Icons as h } from "../../assets/icons/icons.js";
|
|
6
|
-
import { c as n } from "../../index-BHf7G3IG.js";
|
|
7
|
-
import { s as r, M as d } from "../../MenuItem-Df6Zsa7E.js";
|
|
8
|
-
import { u as y } from "../../index-9ZLCCecr.js";
|
|
9
|
-
const g = ({
|
|
10
|
-
collapsed: a = !1,
|
|
11
|
-
items: j,
|
|
12
|
-
className: v,
|
|
13
|
-
isActiveSubMenu: M
|
|
14
|
-
}) => {
|
|
15
|
-
const { pathname: o } = y(), [I, t] = T(M);
|
|
16
|
-
return k(() => {
|
|
17
|
-
a && t(void 0);
|
|
18
|
-
}, [a]), /* @__PURE__ */ e.jsx("div", { className: n(r.wrap, v), "data-testid": "sidebar-container", children: /* @__PURE__ */ e.jsx(
|
|
19
|
-
"ul",
|
|
20
|
-
{
|
|
21
|
-
className: n(r.menu, {
|
|
22
|
-
[r.closeMenu]: a
|
|
23
|
-
}),
|
|
24
|
-
"data-testid": "sidebar-list",
|
|
25
|
-
children: j.map(({ to: l, icon: m, title: u, permItem: N, permType: C, children: i }) => {
|
|
26
|
-
var p;
|
|
27
|
-
const S = l && ((p = o == null ? void 0 : o.replaceAll("/", "")) == null ? void 0 : p.includes(l == null ? void 0 : l.replaceAll("/", ""))), c = I === u;
|
|
28
|
-
return /* @__PURE__ */ e.jsx(x, { permType: C, permItem: N, children: /* @__PURE__ */ e.jsx(
|
|
29
|
-
"li",
|
|
30
|
-
{
|
|
31
|
-
"data-testid": "sidebar-list-item",
|
|
32
|
-
className: n(r.menuItem, {
|
|
33
|
-
[r.selected]: S,
|
|
34
|
-
[r.subMenuWrap]: i
|
|
35
|
-
}),
|
|
36
|
-
onMouseEnter: () => {
|
|
37
|
-
i && a && t(u);
|
|
38
|
-
},
|
|
39
|
-
onMouseLeave: () => {
|
|
40
|
-
i && a && t(void 0);
|
|
41
|
-
},
|
|
42
|
-
children: i ? /* @__PURE__ */ e.jsxs(
|
|
43
|
-
"div",
|
|
44
|
-
{
|
|
45
|
-
className: n({
|
|
46
|
-
[r.opened]: c
|
|
47
|
-
}),
|
|
48
|
-
children: [
|
|
49
|
-
/* @__PURE__ */ e.jsxs(
|
|
50
|
-
"span",
|
|
51
|
-
{
|
|
52
|
-
onClick: () => {
|
|
53
|
-
a || t(c ? void 0 : u);
|
|
54
|
-
},
|
|
55
|
-
children: [
|
|
56
|
-
/* @__PURE__ */ e.jsx(
|
|
57
|
-
d,
|
|
58
|
-
{
|
|
59
|
-
to: l,
|
|
60
|
-
title: u,
|
|
61
|
-
icon: m,
|
|
62
|
-
visibleTooltip: !1
|
|
63
|
-
}
|
|
64
|
-
),
|
|
65
|
-
!a && /* @__PURE__ */ e.jsx(
|
|
66
|
-
"span",
|
|
67
|
-
{
|
|
68
|
-
className: n(r.arrow, {
|
|
69
|
-
[r.up]: c
|
|
70
|
-
}),
|
|
71
|
-
children: /* @__PURE__ */ e.jsx(w, { name: h.DownArrow })
|
|
72
|
-
}
|
|
73
|
-
)
|
|
74
|
-
]
|
|
75
|
-
}
|
|
76
|
-
),
|
|
77
|
-
c && /* @__PURE__ */ e.jsx(
|
|
78
|
-
"ul",
|
|
79
|
-
{
|
|
80
|
-
className: n(r.subMenu, {
|
|
81
|
-
[r.hover]: a
|
|
82
|
-
}),
|
|
83
|
-
"data-testid": "sidebar-submenu-list",
|
|
84
|
-
children: i == null ? void 0 : i.map((s) => {
|
|
85
|
-
var b, f;
|
|
86
|
-
const A = s.to && ((f = o == null ? void 0 : o.replaceAll("/", "")) == null ? void 0 : f.includes((b = s == null ? void 0 : s.to) == null ? void 0 : b.replaceAll("/", "")));
|
|
87
|
-
return /* @__PURE__ */ e.jsx(
|
|
88
|
-
x,
|
|
89
|
-
{
|
|
90
|
-
permType: s.permType,
|
|
91
|
-
permItem: s.permItem,
|
|
92
|
-
children: /* @__PURE__ */ e.jsx(
|
|
93
|
-
"li",
|
|
94
|
-
{
|
|
95
|
-
"data-testid": "sidebar-submenu-list-item",
|
|
96
|
-
onClick: () => {
|
|
97
|
-
s.onClick && s.onClick(), a && t(void 0);
|
|
98
|
-
},
|
|
99
|
-
className: n(r.menuItem, {
|
|
100
|
-
[r.selected]: A || (s == null ? void 0 : s.isItemSelected)
|
|
101
|
-
}),
|
|
102
|
-
children: /* @__PURE__ */ e.jsx(
|
|
103
|
-
d,
|
|
104
|
-
{
|
|
105
|
-
to: s.to,
|
|
106
|
-
title: s.title,
|
|
107
|
-
visibleTooltip: !1
|
|
108
|
-
}
|
|
109
|
-
)
|
|
110
|
-
}
|
|
111
|
-
)
|
|
112
|
-
},
|
|
113
|
-
s.to
|
|
114
|
-
);
|
|
115
|
-
})
|
|
116
|
-
}
|
|
117
|
-
)
|
|
118
|
-
]
|
|
119
|
-
}
|
|
120
|
-
) : /* @__PURE__ */ e.jsx(
|
|
121
|
-
d,
|
|
122
|
-
{
|
|
123
|
-
to: l,
|
|
124
|
-
title: u,
|
|
125
|
-
icon: m,
|
|
126
|
-
visibleTooltip: a
|
|
127
|
-
}
|
|
128
|
-
)
|
|
129
|
-
}
|
|
130
|
-
) }, u);
|
|
131
|
-
})
|
|
132
|
-
}
|
|
133
|
-
) });
|
|
134
|
-
};
|
|
135
|
-
export {
|
|
136
|
-
g as default
|
|
137
|
-
};
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { j as i } from "../../jsx-runtime-BcAkpsdy.js";
|
|
2
|
-
import { c as e } from "../../index-BHf7G3IG.js";
|
|
3
|
-
import '../../StatusTag.css';const c = "_tag_1i9wh_2", _ = "_success_1i9wh_2", n = "_failed_1i9wh_2", o = "_empty_1i9wh_2", m = "_waiting_1i9wh_2", t = {
|
|
4
|
-
tag: c,
|
|
5
|
-
success: _,
|
|
6
|
-
failed: n,
|
|
7
|
-
empty: o,
|
|
8
|
-
waiting: m
|
|
9
|
-
}, d = ({ status: s, text: a }) => /* @__PURE__ */ i.jsx(
|
|
10
|
-
"div",
|
|
11
|
-
{
|
|
12
|
-
"data-testid": "status-tag",
|
|
13
|
-
className: e(
|
|
14
|
-
t.tag,
|
|
15
|
-
{
|
|
16
|
-
[t[s]]: s
|
|
17
|
-
}
|
|
18
|
-
),
|
|
19
|
-
children: a
|
|
20
|
-
}
|
|
21
|
-
);
|
|
22
|
-
export {
|
|
23
|
-
d as default
|
|
24
|
-
};
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
import { j as n } from "../../jsx-runtime-BcAkpsdy.js";
|
|
2
|
-
import r from "../Loading/Loading.js";
|
|
3
|
-
import { c as o } from "../../index-BHf7G3IG.js";
|
|
4
|
-
import { AppAndServicesStatusApperenceType as g } from "../../enums/appearance.js";
|
|
5
|
-
import '../../StatusTypography.css';const x = "_wrapper_bso71_2", f = "_statusSubText_bso71_2", b = "_spinContainer_bso71_2", y = "_postfixSpinner_bso71_2", N = "_spinner_bso71_2", j = "_warning_bso71_2", u = "_danger_bso71_2", w = "_success_bso71_2", m = "_initializing_bso71_2", z = "_pending_bso71_2", h = "_failed_bso71_2", T = "_queued_bso71_2", q = "_passed_bso71_2", i = {
|
|
6
|
-
wrapper: x,
|
|
7
|
-
statusSubText: f,
|
|
8
|
-
spinContainer: b,
|
|
9
|
-
postfixSpinner: y,
|
|
10
|
-
spinner: N,
|
|
11
|
-
warning: j,
|
|
12
|
-
danger: u,
|
|
13
|
-
success: w,
|
|
14
|
-
initializing: m,
|
|
15
|
-
pending: z,
|
|
16
|
-
failed: h,
|
|
17
|
-
queued: T,
|
|
18
|
-
passed: q
|
|
19
|
-
};
|
|
20
|
-
var p = /* @__PURE__ */ ((s) => (s.addons_initializing = "initializing", s.addons_initialization_failed = "failed", s.deploying = "warning", s.failed = "failed", s.deployed = "success", s.completed = "success", s.initializing = "initializing", s.initialization_failed = "failed", s.queueing = "warning", s.queued = "queued", s.pending = "pending", s.passed = "passed", s))(p || {});
|
|
21
|
-
const k = (s) => {
|
|
22
|
-
const {
|
|
23
|
-
text: t,
|
|
24
|
-
type: c = g.ADDONS_INITIALIZING,
|
|
25
|
-
extra: l,
|
|
26
|
-
spin: e,
|
|
27
|
-
condition: _,
|
|
28
|
-
spinnerLocation: d = "back"
|
|
29
|
-
} = s, a = t && t.replace(/\_/g, " ");
|
|
30
|
-
return /* @__PURE__ */ n.jsx("p", { "data-testid": "statustypography", className: o(i.wrapper, [i[p[c]]]), children: _ ? /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
|
|
31
|
-
/* @__PURE__ */ n.jsxs("span", { className: i.spinContainer, children: [
|
|
32
|
-
e && d === "front" && /* @__PURE__ */ n.jsx(r, { className: o(i.spinner), layer: !1 }),
|
|
33
|
-
a,
|
|
34
|
-
e && d === "back" && /* @__PURE__ */ n.jsx(
|
|
35
|
-
r,
|
|
36
|
-
{
|
|
37
|
-
className: o(i.spinner, i.postfixSpinner),
|
|
38
|
-
layer: !1
|
|
39
|
-
}
|
|
40
|
-
)
|
|
41
|
-
] }),
|
|
42
|
-
/* @__PURE__ */ n.jsx("p", { className: i.statusSubText, children: l })
|
|
43
|
-
] }) : p[c] === "warning" && e ? /* @__PURE__ */ n.jsxs("span", { className: i.spinContainer, children: [
|
|
44
|
-
/* @__PURE__ */ n.jsx(r, { className: i.spinner, layer: !1 }),
|
|
45
|
-
a
|
|
46
|
-
] }) : /* @__PURE__ */ n.jsx("span", { className: i.spinContainer, children: a }) });
|
|
47
|
-
};
|
|
48
|
-
export {
|
|
49
|
-
p as StatusEnum,
|
|
50
|
-
k as default
|
|
51
|
-
};
|
|
@@ -1,75 +0,0 @@
|
|
|
1
|
-
import { j as t } from "../../jsx-runtime-BcAkpsdy.js";
|
|
2
|
-
import { c as j } from "../../index-BHf7G3IG.js";
|
|
3
|
-
import x from "../Icon/index.js";
|
|
4
|
-
import { Icons as z } from "../../assets/icons/icons.js";
|
|
5
|
-
import '../../Stepper.css';const C = "_container_b20ez_2", N = "_complete_b20ez_2", g = "_active_b20ez_2", i = {
|
|
6
|
-
container: C,
|
|
7
|
-
complete: N,
|
|
8
|
-
active: g
|
|
9
|
-
}, w = (l) => {
|
|
10
|
-
let s = !0;
|
|
11
|
-
const {
|
|
12
|
-
items: _,
|
|
13
|
-
selected: p = 0,
|
|
14
|
-
selectAll: m,
|
|
15
|
-
onChange: d,
|
|
16
|
-
renderItem: f,
|
|
17
|
-
wrapperClass: u
|
|
18
|
-
} = l, v = ({ index: e, title: c, customIndexItem: r }) => /* @__PURE__ */ t.jsxs(
|
|
19
|
-
"a",
|
|
20
|
-
{
|
|
21
|
-
href: `#step-${e}`,
|
|
22
|
-
onClick: (n) => d && d(e, n),
|
|
23
|
-
children: [
|
|
24
|
-
r || (p > e ? /* @__PURE__ */ t.jsx("span", { children: /* @__PURE__ */ t.jsx(x, { name: z.Check }) }) : /* @__PURE__ */ t.jsx("span", { children: e + 1 })),
|
|
25
|
-
c
|
|
26
|
-
]
|
|
27
|
-
}
|
|
28
|
-
);
|
|
29
|
-
return /* @__PURE__ */ t.jsx(
|
|
30
|
-
"div",
|
|
31
|
-
{
|
|
32
|
-
className: j(i.container, u),
|
|
33
|
-
"data-testid": "stepper-container",
|
|
34
|
-
children: /* @__PURE__ */ t.jsx("ul", { "data-testid": "stepper-list", children: _.map(
|
|
35
|
-
({
|
|
36
|
-
title: e,
|
|
37
|
-
customIndexItem: c,
|
|
38
|
-
activeClass: r,
|
|
39
|
-
completeClass: n,
|
|
40
|
-
to: b,
|
|
41
|
-
skip: h
|
|
42
|
-
}, a) => {
|
|
43
|
-
if (h)
|
|
44
|
-
return null;
|
|
45
|
-
m && (s = !0);
|
|
46
|
-
const o = a === p;
|
|
47
|
-
return !m && o && (s = !1), /* @__PURE__ */ t.jsx(
|
|
48
|
-
"li",
|
|
49
|
-
{
|
|
50
|
-
"data-testid": "stepper-list-item",
|
|
51
|
-
className: j({
|
|
52
|
-
[i.active]: o,
|
|
53
|
-
[i.complete]: s,
|
|
54
|
-
[r]: o,
|
|
55
|
-
[n]: s
|
|
56
|
-
}),
|
|
57
|
-
children: f ? f({
|
|
58
|
-
title: e,
|
|
59
|
-
customIndexItem: c,
|
|
60
|
-
activeClass: r,
|
|
61
|
-
completeClass: n,
|
|
62
|
-
to: b,
|
|
63
|
-
skip: h
|
|
64
|
-
}, l) : v({ index: a, title: e, customIndexItem: c })
|
|
65
|
-
},
|
|
66
|
-
`stepper-item-${a}`
|
|
67
|
-
);
|
|
68
|
-
}
|
|
69
|
-
) })
|
|
70
|
-
}
|
|
71
|
-
);
|
|
72
|
-
};
|
|
73
|
-
export {
|
|
74
|
-
w as default
|
|
75
|
-
};
|
|
@@ -1,84 +0,0 @@
|
|
|
1
|
-
import { j as e } from "../../jsx-runtime-BcAkpsdy.js";
|
|
2
|
-
import u, { useState as v, useEffect as k } from "react";
|
|
3
|
-
import { c as _ } from "../../index-BHf7G3IG.js";
|
|
4
|
-
import N from "../Label/Label.js";
|
|
5
|
-
import { Size as y } from "../../enums/size.js";
|
|
6
|
-
import { u as b } from "../../useTranslation-CnCPcxVj.js";
|
|
7
|
-
import '../../Switch.css';const S = "_checked_1n7nk_2", O = "_disabled_1n7nk_2", R = "_switch__small_1n7nk_2", g = "_slider_1n7nk_2", C = "_active_1n7nk_2", E = "_passive_1n7nk_2", F = "_switch__large_1n7nk_2", L = "_round_1n7nk_2", t = {
|
|
8
|
-
switch: "_switch_1n7nk_2",
|
|
9
|
-
checked: S,
|
|
10
|
-
disabled: O,
|
|
11
|
-
switch__small: R,
|
|
12
|
-
slider: g,
|
|
13
|
-
active: C,
|
|
14
|
-
passive: E,
|
|
15
|
-
switch__large: F,
|
|
16
|
-
round: L
|
|
17
|
-
}, B = u.forwardRef(
|
|
18
|
-
({
|
|
19
|
-
name: n,
|
|
20
|
-
label: d,
|
|
21
|
-
className: p,
|
|
22
|
-
isDisabled: i,
|
|
23
|
-
value: c,
|
|
24
|
-
onChange: r,
|
|
25
|
-
onLabelClick: o,
|
|
26
|
-
checkedChildren: f,
|
|
27
|
-
size: l = y.SM,
|
|
28
|
-
unCheckedChildren: w,
|
|
29
|
-
...a
|
|
30
|
-
}, x) => {
|
|
31
|
-
const [s, h] = v(c), { t: m } = b();
|
|
32
|
-
k(() => {
|
|
33
|
-
!a.readOnly && !i && c !== void 0 && r && r(s);
|
|
34
|
-
}, [s, c]), k(() => {
|
|
35
|
-
c && h(c);
|
|
36
|
-
}, [c]);
|
|
37
|
-
const j = () => {
|
|
38
|
-
!i && !a.readOnly && h(!s), !i && o && o(!s);
|
|
39
|
-
};
|
|
40
|
-
return /* @__PURE__ */ e.jsxs("div", { className: _(t.container, p), "data-testid": "switch-container", children: [
|
|
41
|
-
d && /* @__PURE__ */ e.jsx(N, { name: n, children: d }),
|
|
42
|
-
/* @__PURE__ */ e.jsx("div", { className: t.block, children: /* @__PURE__ */ e.jsxs(
|
|
43
|
-
"label",
|
|
44
|
-
{
|
|
45
|
-
className: _(t.switch, {
|
|
46
|
-
[t.checked]: s,
|
|
47
|
-
[t.disabled]: i,
|
|
48
|
-
[t[`switch__${l}`]]: l
|
|
49
|
-
}),
|
|
50
|
-
htmlFor: n,
|
|
51
|
-
onClick: () => j(),
|
|
52
|
-
children: [
|
|
53
|
-
/* @__PURE__ */ e.jsx(
|
|
54
|
-
"input",
|
|
55
|
-
{
|
|
56
|
-
type: "checkbox",
|
|
57
|
-
name: n,
|
|
58
|
-
value: c,
|
|
59
|
-
"data-testid": "switch-input",
|
|
60
|
-
ref: x,
|
|
61
|
-
checked: s,
|
|
62
|
-
readOnly: !0,
|
|
63
|
-
...a
|
|
64
|
-
}
|
|
65
|
-
),
|
|
66
|
-
/* @__PURE__ */ e.jsx("span", { className: t.slider, children: /* @__PURE__ */ e.jsx(
|
|
67
|
-
"span",
|
|
68
|
-
{
|
|
69
|
-
className: _({
|
|
70
|
-
[t.active]: s,
|
|
71
|
-
[t.passive]: !s
|
|
72
|
-
}),
|
|
73
|
-
children: s ? f || m("text.active") : w || m("text.passive")
|
|
74
|
-
}
|
|
75
|
-
) })
|
|
76
|
-
]
|
|
77
|
-
}
|
|
78
|
-
) })
|
|
79
|
-
] });
|
|
80
|
-
}
|
|
81
|
-
);
|
|
82
|
-
export {
|
|
83
|
-
B as default
|
|
84
|
-
};
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import { j as t } from "../../jsx-runtime-BcAkpsdy.js";
|
|
2
|
-
import { c as r } from "../../index-BHf7G3IG.js";
|
|
3
|
-
import '../../Tab.css';const o = "_tabContainer_ks20u_2", d = "_titleWrapper_ks20u_2", p = "_title_ks20u_2", _ = "_isActive_ks20u_2", e = {
|
|
4
|
-
tabContainer: o,
|
|
5
|
-
titleWrapper: d,
|
|
6
|
-
title: p,
|
|
7
|
-
isActive: _
|
|
8
|
-
};
|
|
9
|
-
function b({ items: l, selected: c, onChange: s }) {
|
|
10
|
-
return /* @__PURE__ */ t.jsx("div", { className: e.tabContainer, "data-testid": "tab-container", children: l.map((a, i) => {
|
|
11
|
-
const n = c == i;
|
|
12
|
-
return /* @__PURE__ */ t.jsx(t.Fragment, { children: /* @__PURE__ */ t.jsx(
|
|
13
|
-
"div",
|
|
14
|
-
{
|
|
15
|
-
"data-testid": "tab-item",
|
|
16
|
-
onClick: () => s && s(i),
|
|
17
|
-
className: r(e.titleWrapper, {
|
|
18
|
-
[e.isActive]: n
|
|
19
|
-
}),
|
|
20
|
-
children: /* @__PURE__ */ t.jsx("div", { title: a.title, className: r(e.title), "data-testid": "tab-title", children: a.title })
|
|
21
|
-
},
|
|
22
|
-
i
|
|
23
|
-
) });
|
|
24
|
-
}) });
|
|
25
|
-
}
|
|
26
|
-
export {
|
|
27
|
-
b as default
|
|
28
|
-
};
|