@arthurzakharov/ui-kit 2.4.0 → 2.5.1
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/animations/fade-grow/fade-grow.component.js +1 -1
- package/dist/animations/fade-scale/fade-scale.component.js +1 -1
- package/dist/animations/fade-slide/fade-slide.component.js +1 -1
- package/dist/assets/button-text-BkR57fNF.css +1 -0
- package/dist/assets/message-ByzpMD6r.css +1 -0
- package/dist/assets/text-C982pFA7.css +1 -0
- package/dist/components/accordion-table/accordion-table.component.js +18 -19
- package/dist/components/bottom-bar/bottom-bar.component.js +8 -9
- package/dist/components/certifications/certifications.component.js +3 -4
- package/dist/components/data-protected-label/data-protected-label.component.js +10 -11
- package/dist/components/dialog/dialog.component.js +1 -1
- package/dist/components/dialog-article/dialog-article.component.js +8 -9
- package/dist/components/expenses/expenses.component.js +6 -7
- package/dist/components/footer/footer.component.js +3 -4
- package/dist/components/form-row/form-row.component.js +6 -7
- package/dist/components/header/header.component.js +1 -1
- package/dist/components/info-panel/info-panel.component.js +6 -7
- package/dist/components/information/information.component.js +13 -14
- package/dist/components/layout/layout.component.js +1 -1
- package/dist/components/loader/loader.component.js +9 -10
- package/dist/components/main-attachment/main-attachment.component.js +1 -1
- package/dist/components/message/message.component.d.ts +4 -4
- package/dist/components/message/message.component.js +45 -31
- package/dist/components/message-block/message-block.component.js +3 -4
- package/dist/components/not-found/not-found.component.js +3 -4
- package/dist/components/payment/components/glass/glass.component.js +10 -11
- package/dist/components/payment/components/info/info.component.js +12 -13
- package/dist/components/sidebar/sidebar.component.d.ts +1 -1
- package/dist/components/sidebar/sidebar.component.js +34 -35
- package/dist/components/signature/signature.component.js +8 -9
- package/dist/components/text/text.component.js +41 -41
- package/dist/components/user-panel/user-panel.component.js +5 -6
- package/dist/components/warranty/warranty.component.js +8 -9
- package/dist/controls/buttons/button/button.component.js +10 -11
- package/dist/controls/buttons/button-card/button-card.component.js +7 -8
- package/dist/controls/buttons/button-radio/button-radio.component.js +2 -3
- package/dist/controls/buttons/button-text/button-text.component.d.ts +3 -2
- package/dist/controls/buttons/button-text/button-text.component.js +106 -84
- package/dist/controls/interactives/card-image/card-image.component.js +16 -17
- package/dist/controls/interactives/card-text/card-text.component.js +17 -18
- package/dist/controls/interactives/checkbox/checkbox.component.js +7 -8
- package/dist/controls/interactives/dropdown/dropdown.component.js +8 -9
- package/dist/controls/interactives/input/input.component.js +11 -12
- package/dist/controls/interactives/radio/radio.component.js +7 -8
- package/dist/controls/interactives/text-area/text-area.component.js +7 -8
- package/dist/controls/interactives/text-field/text-field.component.js +7 -8
- package/dist/controls/primitives/box/box.component.js +15 -16
- package/dist/controls/primitives/caption/caption.component.js +7 -8
- package/dist/controls/primitives/choice/choice.component.js +10 -11
- package/dist/controls/primitives/error-message/error-message.component.js +3 -4
- package/dist/controls/primitives/hidden-input/hidden-input.component.js +18 -19
- package/dist/controls/primitives/label/label.component.js +17 -18
- package/dist/controls/primitives/radio-label/radio-label.component.js +7 -8
- package/dist/controls/primitives/status/status.component.js +13 -14
- package/dist/controls/utils/types.d.ts +1 -1
- package/dist/main.d.ts +1 -0
- package/dist/main.js +3 -1
- package/dist/utils/functions/functions.util.d.ts +9 -0
- package/dist/utils/functions/functions.util.js +35 -15
- package/dist/utils/functions/index.js +5 -4
- package/dist/utils/svg/svg.component.js +1 -1
- package/dist/utils/types.d.ts +3 -1
- package/package.json +1 -3
- package/dist/assets/button-text-NCcWZ-LB.css +0 -1
- package/dist/assets/message-CgGyIv5e.css +0 -1
- package/dist/assets/text-DYEJSFKw.css +0 -1
|
@@ -1,15 +1,14 @@
|
|
|
1
1
|
import { jsxs as o, jsx as t } from "react/jsx-runtime";
|
|
2
|
-
import d from "
|
|
3
|
-
import
|
|
4
|
-
import '../../assets/expenses-BWqSN6hG.css';const u = "_Expenses_hfqkm_1", _ = "_Title_hfqkm_5", p = "_Content_hfqkm_13", h = "_SubContent_hfqkm_18", r = "_Amount_hfqkm_42", x = "_AmountKey_hfqkm_49", A = "_AmountValue_hfqkm_55", e = {
|
|
2
|
+
import { clsx as d, baseProps as a } from "../../utils/functions/functions.util.js";
|
|
3
|
+
import '../../assets/expenses-BWqSN6hG.css';const u = "_Expenses_hfqkm_1", _ = "_Title_hfqkm_5", p = "_Content_hfqkm_13", h = "_SubContent_hfqkm_18", x = "_Amount_hfqkm_42", r = "_AmountKey_hfqkm_49", A = "_AmountValue_hfqkm_55", e = {
|
|
5
4
|
Expenses: u,
|
|
6
5
|
Title: _,
|
|
7
6
|
Content: p,
|
|
8
7
|
SubContent: h,
|
|
9
|
-
Amount:
|
|
10
|
-
AmountKey:
|
|
8
|
+
Amount: x,
|
|
9
|
+
AmountKey: r,
|
|
11
10
|
AmountValue: A
|
|
12
|
-
},
|
|
11
|
+
}, k = ({ title: m, content: c, subContent: n, amountTitle: l, amountNumber: i, ...s }) => /* @__PURE__ */ o(
|
|
13
12
|
"div",
|
|
14
13
|
{
|
|
15
14
|
"data-testid": a(s, "data-testid", "expenses"),
|
|
@@ -26,5 +25,5 @@ import '../../assets/expenses-BWqSN6hG.css';const u = "_Expenses_hfqkm_1", _ = "
|
|
|
26
25
|
}
|
|
27
26
|
);
|
|
28
27
|
export {
|
|
29
|
-
|
|
28
|
+
k as Expenses
|
|
30
29
|
};
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { jsxs as e, jsx as r } from "react/jsx-runtime";
|
|
2
|
-
import c from "
|
|
3
|
-
import { baseProps as s } from "../../utils/functions/functions.util.js";
|
|
2
|
+
import { clsx as c, baseProps as s } from "../../utils/functions/functions.util.js";
|
|
4
3
|
import '../../assets/footer-Dt0rYt73.css';const l = "_Footer_1qjpp_1", d = "_Copyright_1qjpp_11", _ = "_Links_1qjpp_18", m = "_Link_1qjpp_18", u = "_Button_1qjpp_32", h = "_Separator_1qjpp_44", t = {
|
|
5
4
|
Footer: l,
|
|
6
5
|
Copyright: d,
|
|
@@ -8,7 +7,7 @@ import '../../assets/footer-Dt0rYt73.css';const l = "_Footer_1qjpp_1", d = "_Cop
|
|
|
8
7
|
Link: m,
|
|
9
8
|
Button: u,
|
|
10
9
|
Separator: h
|
|
11
|
-
},
|
|
10
|
+
}, j = ({ name: n, links: i, ...a }) => /* @__PURE__ */ e(
|
|
12
11
|
"footer",
|
|
13
12
|
{
|
|
14
13
|
"data-testid": s(a, "data-testid", "footer"),
|
|
@@ -39,5 +38,5 @@ import '../../assets/footer-Dt0rYt73.css';const l = "_Footer_1qjpp_1", d = "_Cop
|
|
|
39
38
|
}
|
|
40
39
|
);
|
|
41
40
|
export {
|
|
42
|
-
|
|
41
|
+
j as Footer
|
|
43
42
|
};
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import { jsx as X } from "react/jsx-runtime";
|
|
2
2
|
import { Children as d, isValidElement as u } from "react";
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
|
|
6
|
-
FormRow: L,
|
|
3
|
+
import { clsx as L, baseProps as _ } from "../../utils/functions/functions.util.js";
|
|
4
|
+
import '../../assets/form-row-D6RaOZ-h.css';const f = "_FormRow_7ij1y_1", w = "_XXS_7ij1y_7", j = "_XS_7ij1y_12", S = "_SM_7ij1y_17", y = "_MD_7ij1y_22", F = "_LG_7ij1y_27", x = "_XL_7ij1y_32", v = "_XXL_7ij1y_37", b = "_XXXL_7ij1y_42", M = "_Child_7ij1y_52", o = {
|
|
5
|
+
FormRow: f,
|
|
7
6
|
XXS: w,
|
|
8
7
|
XS: j,
|
|
9
8
|
SM: S,
|
|
@@ -21,7 +20,7 @@ import '../../assets/form-row-D6RaOZ-h.css';const L = "_FormRow_7ij1y_1", w = "_
|
|
|
21
20
|
"1/4": 3,
|
|
22
21
|
"2/4": 6,
|
|
23
22
|
"3/4": 9
|
|
24
|
-
}, R = s[1],
|
|
23
|
+
}, R = s[1], D = ({ children: r, gap: t = "sm", widths: e, ...a }) => {
|
|
25
24
|
if (d.count(r) === 0) return null;
|
|
26
25
|
const l = d.toArray(r).filter(u);
|
|
27
26
|
let c = !1;
|
|
@@ -42,7 +41,7 @@ import '../../assets/form-row-D6RaOZ-h.css';const L = "_FormRow_7ij1y_1", w = "_
|
|
|
42
41
|
"div",
|
|
43
42
|
{
|
|
44
43
|
"data-testid": _(a, "data-testid", "form-row"),
|
|
45
|
-
className:
|
|
44
|
+
className: L(o.FormRow, _(a, "className"), {
|
|
46
45
|
[o.XXS]: t === "xxs",
|
|
47
46
|
[o.XS]: t === "xs",
|
|
48
47
|
[o.SM]: t === "sm",
|
|
@@ -66,5 +65,5 @@ import '../../assets/form-row-D6RaOZ-h.css';const L = "_FormRow_7ij1y_1", w = "_
|
|
|
66
65
|
);
|
|
67
66
|
};
|
|
68
67
|
export {
|
|
69
|
-
|
|
68
|
+
D as FormRow
|
|
70
69
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsxs as s, jsx as n } from "react/jsx-runtime";
|
|
2
2
|
import { Phone as m, CircleCheck as h } from "lucide-react";
|
|
3
|
-
import p from "
|
|
3
|
+
import { clsx as p } from "../../utils/functions/functions.util.js";
|
|
4
4
|
import '../../assets/header-COBhsm2d.css';const u = "_Header_1823t_1", I = "_HeaderInfo_1823t_8", P = "_HeaderLogo_1823t_15", D = "_HeaderLogoPlaceholder_1823t_20", g = "_HeaderPhoneButton_1823t_26", N = "_HeaderPhoneButtonIcon_1823t_41", B = "_HeaderPhoneButtonNumber_1823t_48", f = "_HeaderDescriptions_1823t_49", L = "_HeaderDescriptionsIcon_1823t_75", z = "_HeaderDescriptionsIconSm_1823t_80", b = "_HeaderDescriptionsIconMd_1823t_85", e = {
|
|
5
5
|
Header: u,
|
|
6
6
|
HeaderInfo: I,
|
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
import { jsx as e, jsxs as i } from "react/jsx-runtime";
|
|
2
|
-
import o from "
|
|
3
|
-
import
|
|
4
|
-
import '../../assets/info-panel-DT7lLHJR.css';const c = "_InfoPanel_1xmmg_1", d = "_List_1xmmg_30", _ = "_Item_1xmmg_40", r = "_Key_1xmmg_48", f = "_Value_1xmmg_52", a = {
|
|
2
|
+
import { clsx as o, baseProps as n } from "../../utils/functions/functions.util.js";
|
|
3
|
+
import '../../assets/info-panel-DT7lLHJR.css';const c = "_InfoPanel_1xmmg_1", d = "_List_1xmmg_30", _ = "_Item_1xmmg_40", f = "_Key_1xmmg_48", p = "_Value_1xmmg_52", a = {
|
|
5
4
|
InfoPanel: c,
|
|
6
5
|
List: d,
|
|
7
6
|
Item: _,
|
|
8
|
-
Key:
|
|
9
|
-
Value:
|
|
10
|
-
},
|
|
7
|
+
Key: f,
|
|
8
|
+
Value: p
|
|
9
|
+
}, I = ({ data: l, ...s }) => /* @__PURE__ */ e(
|
|
11
10
|
"div",
|
|
12
11
|
{
|
|
13
12
|
"data-testid": n(s, "data-testid", "info-panel"),
|
|
@@ -19,5 +18,5 @@ import '../../assets/info-panel-DT7lLHJR.css';const c = "_InfoPanel_1xmmg_1", d
|
|
|
19
18
|
}
|
|
20
19
|
);
|
|
21
20
|
export {
|
|
22
|
-
|
|
21
|
+
I as InfoPanel
|
|
23
22
|
};
|
|
@@ -1,24 +1,23 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { forwardRef as
|
|
3
|
-
import { Info as
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
|
|
7
|
-
Information: e,
|
|
1
|
+
import { jsxs as m, jsx as n } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as c } from "react";
|
|
3
|
+
import { Info as i } from "lucide-react";
|
|
4
|
+
import { clsx as e, baseProps as s } from "../../utils/functions/functions.util.js";
|
|
5
|
+
import '../../assets/information-D-nqKgE6.css';const f = "_Information_1g632_1", I = "_Icon_1g632_16", _ = "_Text_1g632_25", o = {
|
|
6
|
+
Information: f,
|
|
8
7
|
Icon: I,
|
|
9
8
|
Text: _
|
|
10
|
-
},
|
|
9
|
+
}, N = c(({ children: a, ...t }, r) => /* @__PURE__ */ m(
|
|
11
10
|
"div",
|
|
12
11
|
{
|
|
13
|
-
"data-testid":
|
|
14
|
-
className:
|
|
15
|
-
ref:
|
|
12
|
+
"data-testid": s(t, "data-testid", "information"),
|
|
13
|
+
className: e(o.Information, s(t, "className")),
|
|
14
|
+
ref: r,
|
|
16
15
|
children: [
|
|
17
|
-
/* @__PURE__ */ n(
|
|
18
|
-
/* @__PURE__ */ n("div", { className: o.Text, children:
|
|
16
|
+
/* @__PURE__ */ n(i, { className: o.Icon }),
|
|
17
|
+
/* @__PURE__ */ n("div", { className: o.Text, children: a })
|
|
19
18
|
]
|
|
20
19
|
}
|
|
21
20
|
));
|
|
22
21
|
export {
|
|
23
|
-
|
|
22
|
+
N as Information
|
|
24
23
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsxs as i, jsx as o } from "react/jsx-runtime";
|
|
2
|
-
import y from "
|
|
2
|
+
import { clsx as y } from "../../utils/functions/functions.util.js";
|
|
3
3
|
import '../../assets/layout-Cl9eR89o.css';const L = "_Layout_15p0u_1", d = "_LayoutWithoutSidebar_15p0u_20", c = "_LayoutWithSidebarOnBigScreens_15p0u_21", _ = "_LayoutWithSidebarOnAllScreens_15p0u_29", l = "_LayoutContent_15p0u_39", S = "_LayoutAside_15p0u_58", h = "_LayoutMain_15p0u_66", b = "_LayoutHeader_15p0u_75", p = "_LayoutFooter_15p0u_82", t = {
|
|
4
4
|
Layout: L,
|
|
5
5
|
LayoutWithoutSidebar: d,
|
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
import { jsxs as n, jsx as s } from "react/jsx-runtime";
|
|
2
|
-
import
|
|
2
|
+
import { clsx as r, baseProps as o } from "../../utils/functions/functions.util.js";
|
|
3
3
|
import { Loader as x } from "lucide-react";
|
|
4
|
-
import { baseProps as o } from "../../utils/functions/functions.util.js";
|
|
5
4
|
import { getLoaderSize as X } from "./loader.utils.js";
|
|
6
|
-
import '../../assets/loader-DadlBlOF.css';const
|
|
7
|
-
Loader:
|
|
5
|
+
import '../../assets/loader-DadlBlOF.css';const L = "_Loader_px5cg_1", i = "_Padding_px5cg_5", m = "_XXS_px5cg_10", d = "_XS_px5cg_14", S = "_SM_px5cg_18", y = "_MD_px5cg_22", p = "_LG_px5cg_26", g = "_XL_px5cg_30", P = "_XXL_px5cg_34", A = "_XXXL_px5cg_38", M = "_Icon_px5cg_42", T = "_White_px5cg_47", l = "_TextPrimary_px5cg_51", h = "_TextSecondary_px5cg_55", f = "_AccentPrimary_px5cg_59", D = "_AccentSecondary_px5cg_63", c = {
|
|
6
|
+
Loader: L,
|
|
8
7
|
Padding: i,
|
|
9
|
-
XXS:
|
|
8
|
+
XXS: m,
|
|
10
9
|
XS: d,
|
|
11
10
|
SM: S,
|
|
12
11
|
MD: y,
|
|
@@ -20,11 +19,11 @@ import '../../assets/loader-DadlBlOF.css';const m = "_Loader_px5cg_1", i = "_Pad
|
|
|
20
19
|
TextSecondary: h,
|
|
21
20
|
AccentPrimary: f,
|
|
22
21
|
AccentSecondary: D
|
|
23
|
-
},
|
|
22
|
+
}, j = ({ color: e, size: a, padding: t, ..._ }) => /* @__PURE__ */ n(
|
|
24
23
|
"div",
|
|
25
24
|
{
|
|
26
|
-
"data-testid": o(
|
|
27
|
-
className:
|
|
25
|
+
"data-testid": o(_, "data-testid", "loader"),
|
|
26
|
+
className: r(c.Loader, o(_, "className"), {
|
|
28
27
|
[c.Padding]: !!t,
|
|
29
28
|
[c.XXS]: t === "xxs",
|
|
30
29
|
[c.XS]: t === "xs",
|
|
@@ -41,7 +40,7 @@ import '../../assets/loader-DadlBlOF.css';const m = "_Loader_px5cg_1", i = "_Pad
|
|
|
41
40
|
{
|
|
42
41
|
"data-testid": "loader-icon",
|
|
43
42
|
size: X(a),
|
|
44
|
-
className:
|
|
43
|
+
className: r(c.Icon, {
|
|
45
44
|
[c.White]: e === "white",
|
|
46
45
|
[c.TextPrimary]: e === "text-primary",
|
|
47
46
|
[c.TextSecondary]: e === "text-secondary",
|
|
@@ -55,5 +54,5 @@ import '../../assets/loader-DadlBlOF.css';const m = "_Loader_px5cg_1", i = "_Pad
|
|
|
55
54
|
}
|
|
56
55
|
);
|
|
57
56
|
export {
|
|
58
|
-
|
|
57
|
+
j as Loader
|
|
59
58
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsxs as m, jsx as a } from "react/jsx-runtime";
|
|
2
|
-
import h from "
|
|
2
|
+
import { clsx as h } from "../../utils/functions/functions.util.js";
|
|
3
3
|
import { FadeScale as o } from "../../animations/fade-scale/fade-scale.component.js";
|
|
4
4
|
import { Text as i } from "../text/text.component.js";
|
|
5
5
|
import '../../assets/main-attachment-Cw8AP6xv.css';const r = "_MainAttachment_1oa7f_1", s = "_MainAttachmentTitle_1oa7f_5", A = "_MainAttachmentTitleWithSubtitle_1oa7f_9", M = "_MainAttachmentSubtitle_1oa7f_13", t = {
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
2
|
import { Base } from '../../utils/types';
|
|
3
3
|
type MessageType = 'success' | 'question' | 'error' | 'info';
|
|
4
|
+
type MessageAlign = 'left' | 'right' | 'center';
|
|
4
5
|
export interface MessageProps extends Base {
|
|
5
6
|
type: MessageType;
|
|
6
7
|
title: ReactNode;
|
|
7
8
|
text: ReactNode;
|
|
9
|
+
withoutIcon?: boolean;
|
|
10
|
+
align?: MessageAlign;
|
|
8
11
|
}
|
|
9
|
-
|
|
10
|
-
* Displays a message with an icon, title, and text content based on the message type (`success`, `question`, `error`, or `info`).
|
|
11
|
-
*/
|
|
12
|
-
export declare const Message: ({ type, title, text, ...base }: MessageProps) => import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
export declare const Message: ({ type, title, text, withoutIcon, align, ...base }: MessageProps) => import("react/jsx-runtime").JSX.Element;
|
|
13
13
|
export {};
|
|
@@ -1,40 +1,54 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { Check as
|
|
3
|
-
import
|
|
4
|
-
import {
|
|
5
|
-
import
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
1
|
+
import { jsxs as _, jsx as n } from "react/jsx-runtime";
|
|
2
|
+
import { Check as g, CircleQuestionMark as d, X as f, CircleAlert as C } from "lucide-react";
|
|
3
|
+
import { clsx as l, baseProps as a } from "../../utils/functions/functions.util.js";
|
|
4
|
+
import { Content as u } from "../../utils/content/content.component.js";
|
|
5
|
+
import '../../assets/message-ByzpMD6r.css';const A = "_Message_1591m_1", x = "_Success_1591m_15", T = "_Icon_1591m_19", I = "_Question_1591m_23", N = "_Info_1591m_39", M = "_Content_1591m_52", h = "_ContentFull_1591m_61", F = "_AlignLeft_1591m_65", Q = "_AlignRight_1591m_69", L = "_AlignCenter_1591m_73", R = "_Title_1591m_77", S = "_Text_1591m_81", e = {
|
|
6
|
+
Message: A,
|
|
7
|
+
Success: x,
|
|
8
|
+
Icon: T,
|
|
9
|
+
Question: I,
|
|
10
|
+
Error: "_Error_1591m_31",
|
|
11
|
+
Info: N,
|
|
12
|
+
Content: M,
|
|
13
|
+
ContentFull: h,
|
|
14
|
+
AlignLeft: F,
|
|
15
|
+
AlignRight: Q,
|
|
16
|
+
AlignCenter: L,
|
|
17
|
+
Title: R,
|
|
18
|
+
Text: S
|
|
19
|
+
}, m = (t, o, c) => typeof t == "string" ? /* @__PURE__ */ n(u, { "data-testid": o, className: c, children: t }) : t, $ = ({ type: t, title: o, text: c, withoutIcon: s, align: i = "left", ...r }) => /* @__PURE__ */ _(
|
|
17
20
|
"div",
|
|
18
21
|
{
|
|
19
|
-
"data-testid":
|
|
20
|
-
className:
|
|
21
|
-
[
|
|
22
|
-
[
|
|
23
|
-
[
|
|
24
|
-
[
|
|
22
|
+
"data-testid": a(r, "data-testid", "message"),
|
|
23
|
+
className: l(e.Message, a(r, "className"), {
|
|
24
|
+
[e.Success]: t === "success",
|
|
25
|
+
[e.Question]: t === "question",
|
|
26
|
+
[e.Error]: t === "error",
|
|
27
|
+
[e.Info]: t === "info"
|
|
25
28
|
}),
|
|
26
29
|
children: [
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
/* @__PURE__ */
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
30
|
+
!s && t === "success" && /* @__PURE__ */ n(g, { "data-testid": "success-icon", className: e.Icon }),
|
|
31
|
+
!s && t === "question" && /* @__PURE__ */ n(d, { "data-testid": "question-icon", className: e.Icon }),
|
|
32
|
+
!s && t === "error" && /* @__PURE__ */ n(f, { "data-testid": "error-icon", className: e.Icon }),
|
|
33
|
+
!s && t === "info" && /* @__PURE__ */ n(C, { "data-testid": "info-icon", className: e.Icon }),
|
|
34
|
+
/* @__PURE__ */ _(
|
|
35
|
+
"div",
|
|
36
|
+
{
|
|
37
|
+
className: l(e.Content, {
|
|
38
|
+
[e.ContentFull]: s,
|
|
39
|
+
[e.AlignLeft]: i === "left",
|
|
40
|
+
[e.AlignRight]: i === "right",
|
|
41
|
+
[e.AlignCenter]: i === "center"
|
|
42
|
+
}),
|
|
43
|
+
children: [
|
|
44
|
+
m(o, "message-title", e.Title),
|
|
45
|
+
m(c, "message-text", e.Text)
|
|
46
|
+
]
|
|
47
|
+
}
|
|
48
|
+
)
|
|
35
49
|
]
|
|
36
50
|
}
|
|
37
51
|
);
|
|
38
52
|
export {
|
|
39
|
-
|
|
53
|
+
$ as Message
|
|
40
54
|
};
|
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
import { jsxs as l, jsx as s } from "react/jsx-runtime";
|
|
2
|
-
import n from "
|
|
3
|
-
import { baseProps as d } from "../../utils/functions/functions.util.js";
|
|
2
|
+
import { clsx as n, baseProps as d } from "../../utils/functions/functions.util.js";
|
|
4
3
|
import { Text as o } from "../text/text.component.js";
|
|
5
4
|
import '../../assets/message-block-DG1cePyB.css';const g = "_MessageBlock_14g5p_1", r = "_Emoji_14g5p_7", _ = "_Titles_14g5p_12", k = "_Content_14g5p_18", e = {
|
|
6
5
|
MessageBlock: g,
|
|
7
6
|
Emoji: r,
|
|
8
7
|
Titles: _,
|
|
9
8
|
Content: k
|
|
10
|
-
},
|
|
9
|
+
}, x = ({ children: m, emoji: c = "", title: t = "", subtitle: a = "", ...i }) => /* @__PURE__ */ l(
|
|
11
10
|
"div",
|
|
12
11
|
{
|
|
13
12
|
"data-testid": d(i, "data-testid", "message-block"),
|
|
@@ -23,5 +22,5 @@ import '../../assets/message-block-DG1cePyB.css';const g = "_MessageBlock_14g5p_
|
|
|
23
22
|
}
|
|
24
23
|
);
|
|
25
24
|
export {
|
|
26
|
-
|
|
25
|
+
x as MessageBlock
|
|
27
26
|
};
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { jsxs as d, jsx as e } from "react/jsx-runtime";
|
|
2
|
-
import _ from "
|
|
3
|
-
import { baseProps as o } from "../../utils/functions/functions.util.js";
|
|
2
|
+
import { clsx as _, baseProps as o } from "../../utils/functions/functions.util.js";
|
|
4
3
|
import '../../assets/not-found-CyFlnajG.css';const b = "_NotFound_d40xv_1", T = "_Title_d40xv_9", u = "_Subtitle_d40xv_16", r = "_TableTitle_d40xv_23", m = "_Table_d40xv_23", h = "_TableRow_d40xv_38", N = "_CellHead_d40xv_42", x = "_CellData_d40xv_43", t = {
|
|
5
4
|
NotFound: b,
|
|
6
5
|
Title: T,
|
|
@@ -10,7 +9,7 @@ import '../../assets/not-found-CyFlnajG.css';const b = "_NotFound_d40xv_1", T =
|
|
|
10
9
|
TableRow: h,
|
|
11
10
|
CellHead: N,
|
|
12
11
|
CellData: x
|
|
13
|
-
},
|
|
12
|
+
}, C = ({ title: s, subtitle: n, tableTitle: i, tableRows: c, ...a }) => /* @__PURE__ */ d(
|
|
14
13
|
"section",
|
|
15
14
|
{
|
|
16
15
|
"data-testid": o(a, "data-testid", "not-found"),
|
|
@@ -34,5 +33,5 @@ import '../../assets/not-found-CyFlnajG.css';const b = "_NotFound_d40xv_1", T =
|
|
|
34
33
|
}
|
|
35
34
|
);
|
|
36
35
|
export {
|
|
37
|
-
|
|
36
|
+
C as NotFound
|
|
38
37
|
};
|
|
@@ -1,33 +1,32 @@
|
|
|
1
1
|
import { jsxs as c, jsx as s } from "react/jsx-runtime";
|
|
2
|
-
import
|
|
3
|
-
import { Loader as
|
|
4
|
-
import { baseProps as o } from "../../../../utils/functions/functions.util.js";
|
|
2
|
+
import { clsx as l, baseProps as o } from "../../../../utils/functions/functions.util.js";
|
|
3
|
+
import { Loader as m } from "../../../loader/loader.component.js";
|
|
5
4
|
import { m as n } from "../../../../proxy-CmTphuYR.js";
|
|
6
5
|
import { A as p } from "../../../../index-CPvYWadf.js";
|
|
7
|
-
import '../../../../assets/glass-CfX3rUed.css';const d = "_Glass_12crp_1", f = "_Cover_12crp_5",
|
|
6
|
+
import '../../../../assets/glass-CfX3rUed.css';const d = "_Glass_12crp_1", f = "_Cover_12crp_5", t = {
|
|
8
7
|
Glass: d,
|
|
9
8
|
Cover: f
|
|
10
|
-
},
|
|
9
|
+
}, C = ({ children: e, on: r, withLoader: i = !1, ...a }) => /* @__PURE__ */ c(
|
|
11
10
|
"div",
|
|
12
11
|
{
|
|
13
12
|
"data-testid": o(a, "data-testid", "payment-glass"),
|
|
14
|
-
className:
|
|
13
|
+
className: l(t.Glass, o(a, "className")),
|
|
15
14
|
children: [
|
|
16
|
-
/* @__PURE__ */ s(p, { mode: "sync", children:
|
|
15
|
+
/* @__PURE__ */ s(p, { mode: "sync", children: r && /* @__PURE__ */ s(
|
|
17
16
|
n.div,
|
|
18
17
|
{
|
|
19
18
|
initial: { opacity: 0, scale: 0.75 },
|
|
20
19
|
animate: { opacity: 1, scale: 1 },
|
|
21
20
|
exit: { opacity: 0, scale: 0.75 },
|
|
22
21
|
transition: { duration: 0.125 },
|
|
23
|
-
className:
|
|
24
|
-
children: i && /* @__PURE__ */ s(
|
|
22
|
+
className: t.Cover,
|
|
23
|
+
children: i && /* @__PURE__ */ s(m, { size: "lg", color: "accent-primary" })
|
|
25
24
|
}
|
|
26
25
|
) }),
|
|
27
|
-
|
|
26
|
+
e
|
|
28
27
|
]
|
|
29
28
|
}
|
|
30
29
|
);
|
|
31
30
|
export {
|
|
32
|
-
|
|
31
|
+
C as Glass
|
|
33
32
|
};
|
|
@@ -1,25 +1,24 @@
|
|
|
1
1
|
import { jsxs as o, jsx as t } from "react/jsx-runtime";
|
|
2
|
-
import s from "
|
|
2
|
+
import { clsx as s, baseProps as m } from "../../../../utils/functions/functions.util.js";
|
|
3
3
|
import { Check as a, ArrowRight as _ } from "lucide-react";
|
|
4
|
-
import { Content as
|
|
5
|
-
import
|
|
6
|
-
|
|
7
|
-
Info: C,
|
|
4
|
+
import { Content as C } from "../../../../utils/content/content.component.js";
|
|
5
|
+
import '../../../../assets/info-Bx6imeeA.css';const p = "_Info_1pjmm_1", h = "_Title_1pjmm_14", I = "_List_1pjmm_23", d = "_Item_1pjmm_32", j = "_Content_1pjmm_39", f = "_Circle_1pjmm_45", N = "_CircleCheck_1pjmm_55", k = "_CircleArrow_1pjmm_59", w = "_Icon_1pjmm_63", c = {
|
|
6
|
+
Info: p,
|
|
8
7
|
Title: h,
|
|
9
8
|
List: I,
|
|
10
9
|
Item: d,
|
|
11
|
-
Content:
|
|
12
|
-
Circle:
|
|
10
|
+
Content: j,
|
|
11
|
+
Circle: f,
|
|
13
12
|
CircleCheck: N,
|
|
14
13
|
CircleArrow: k,
|
|
15
14
|
Icon: w
|
|
16
|
-
},
|
|
15
|
+
}, T = ({ title: n, list: l, ...r }) => /* @__PURE__ */ o(
|
|
17
16
|
"div",
|
|
18
17
|
{
|
|
19
|
-
"data-testid": m(
|
|
20
|
-
className: s(c.Info, m(
|
|
18
|
+
"data-testid": m(r, "data-testid", "payment-info"),
|
|
19
|
+
className: s(c.Info, m(r, "className")),
|
|
21
20
|
children: [
|
|
22
|
-
|
|
21
|
+
n && /* @__PURE__ */ t("h6", { className: c.Title, children: n }),
|
|
23
22
|
/* @__PURE__ */ t("ul", { className: c.List, children: l.map((e, i) => /* @__PURE__ */ o("li", { className: c.Item, children: [
|
|
24
23
|
/* @__PURE__ */ o(
|
|
25
24
|
"span",
|
|
@@ -34,11 +33,11 @@ import '../../../../assets/info-Bx6imeeA.css';const C = "_Info_1pjmm_1", h = "_T
|
|
|
34
33
|
]
|
|
35
34
|
}
|
|
36
35
|
),
|
|
37
|
-
/* @__PURE__ */ t(
|
|
36
|
+
/* @__PURE__ */ t(C, { className: c.Content, children: e.text })
|
|
38
37
|
] }, i)) })
|
|
39
38
|
]
|
|
40
39
|
}
|
|
41
40
|
);
|
|
42
41
|
export {
|
|
43
|
-
|
|
42
|
+
T as Info
|
|
44
43
|
};
|
|
@@ -15,7 +15,7 @@ export interface SidebarProps extends PropsWithChildren<Base> {
|
|
|
15
15
|
steps: SidebarStep[];
|
|
16
16
|
info: SidebarInfo[];
|
|
17
17
|
user: UserPanelProps;
|
|
18
|
-
certifications: CertificationsProps
|
|
18
|
+
certifications: CertificationsProps;
|
|
19
19
|
}
|
|
20
20
|
export declare const Sidebar: ({ children, isButtonVisible, isUserOpen, title, steps, info, certifications, user, ...base }: SidebarProps) => import("react/jsx-runtime").JSX.Element;
|
|
21
21
|
export {};
|
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
import { jsx as t, jsxs as o, Fragment as u } from "react/jsx-runtime";
|
|
2
|
-
import
|
|
3
|
-
import { FadeScale as
|
|
2
|
+
import { clsx as m, baseProps as S } from "../../utils/functions/functions.util.js";
|
|
3
|
+
import { FadeScale as h } from "../../animations/fade-scale/fade-scale.component.js";
|
|
4
4
|
import { Certifications as B } from "../certifications/certifications.component.js";
|
|
5
|
-
import { Line as
|
|
6
|
-
import { Text as
|
|
5
|
+
import { Line as n } from "../line/line.component.js";
|
|
6
|
+
import { Text as s } from "../text/text.component.js";
|
|
7
7
|
import { UserPanel as w } from "../user-panel/user-panel.component.js";
|
|
8
8
|
import "../../controls/primitives/box/box.component.js";
|
|
9
9
|
import "../../utils/content/content.component.js";
|
|
10
|
-
import { baseProps as f } from "../../utils/functions/functions.util.js";
|
|
11
10
|
import "lucide-react";
|
|
12
11
|
import "usehooks-ts";
|
|
13
12
|
import { Status as x } from "../../controls/primitives/status/status.component.js";
|
|
@@ -21,59 +20,59 @@ import '../../assets/sidebar-DyDlIXV0.css';const y = "_Sidebar_17t5d_1", A = "_B
|
|
|
21
20
|
Step: $,
|
|
22
21
|
InfoRow: j,
|
|
23
22
|
NothingAbove: F
|
|
24
|
-
},
|
|
23
|
+
}, V = ({
|
|
25
24
|
// Sidebar props
|
|
26
|
-
children:
|
|
27
|
-
isButtonVisible:
|
|
25
|
+
children: f,
|
|
26
|
+
isButtonVisible: b = !1,
|
|
28
27
|
isUserOpen: l = !1,
|
|
29
|
-
title:
|
|
30
|
-
steps:
|
|
31
|
-
info:
|
|
32
|
-
certifications:
|
|
28
|
+
title: g = "Ihre Übersicht",
|
|
29
|
+
steps: v = [],
|
|
30
|
+
info: N = [],
|
|
31
|
+
certifications: c,
|
|
33
32
|
user: a,
|
|
34
33
|
// Base props
|
|
35
|
-
...
|
|
34
|
+
...p
|
|
36
35
|
}) => {
|
|
37
|
-
const
|
|
36
|
+
const _ = N.filter(([, e]) => e.trim() !== ""), d = _.length > 0;
|
|
38
37
|
return /* @__PURE__ */ t(
|
|
39
38
|
"div",
|
|
40
39
|
{
|
|
41
|
-
"data-testid":
|
|
42
|
-
className:
|
|
40
|
+
"data-testid": S(p, "data-testid", "sidebar"),
|
|
41
|
+
className: m(i.Sidebar, S(p, "className")),
|
|
43
42
|
children: /* @__PURE__ */ o("div", { className: i.Board, children: [
|
|
44
|
-
/* @__PURE__ */ t(
|
|
45
|
-
/* @__PURE__ */ t("div", { className: i.Steps, "data-testid": "sidebar-steps", children:
|
|
43
|
+
/* @__PURE__ */ t(s, { preset: "sidebar-title", className: i.SidebarTitle, children: g }),
|
|
44
|
+
/* @__PURE__ */ t("div", { className: i.Steps, "data-testid": "sidebar-steps", children: v.map(({ state: e, text: r }) => /* @__PURE__ */ o("div", { className: i.Step, "data-testid": "sidebar-step", children: [
|
|
46
45
|
/* @__PURE__ */ t(x, { state: e }),
|
|
47
|
-
/* @__PURE__ */ t(
|
|
46
|
+
/* @__PURE__ */ t(s, { tag: "span", weight: "medium", size: "body-small", color: e === "idle" ? "grey-400" : "text-primary", children: r })
|
|
48
47
|
] }, r)) }),
|
|
49
48
|
d && /* @__PURE__ */ o(u, { children: [
|
|
50
|
-
/* @__PURE__ */ t(
|
|
51
|
-
/* @__PURE__ */ t("div", { className: i.Info, "data-testid": "sidebar-info", children:
|
|
52
|
-
/* @__PURE__ */ t(
|
|
53
|
-
/* @__PURE__ */ t(
|
|
49
|
+
/* @__PURE__ */ t(n, {}),
|
|
50
|
+
/* @__PURE__ */ t("div", { className: i.Info, "data-testid": "sidebar-info", children: _.map(([e, r], I) => /* @__PURE__ */ o("div", { className: i.InfoRow, "data-testid": "sidebar-info-row", children: [
|
|
51
|
+
/* @__PURE__ */ t(s, { tag: "span", size: "body-small", color: "text-secondary", children: e }),
|
|
52
|
+
/* @__PURE__ */ t(s, { tag: "span", size: "body-small", align: "right", children: r })
|
|
54
53
|
] }, `${e}-${I}`)) }),
|
|
55
|
-
/* @__PURE__ */ t(
|
|
54
|
+
/* @__PURE__ */ t(n, {})
|
|
56
55
|
] }),
|
|
57
|
-
/* @__PURE__ */ o(
|
|
58
|
-
!d && /* @__PURE__ */ t(
|
|
56
|
+
/* @__PURE__ */ o(h, { name: "user", condition: l, children: [
|
|
57
|
+
!d && /* @__PURE__ */ t(n, {}),
|
|
59
58
|
/* @__PURE__ */ t(w, { title: a.title, button: a.button, data: a.data, onClick: a.onClick }),
|
|
60
|
-
/* @__PURE__ */ t(
|
|
59
|
+
/* @__PURE__ */ t(n, {})
|
|
61
60
|
] }),
|
|
62
|
-
/* @__PURE__ */ t(
|
|
61
|
+
/* @__PURE__ */ t(h, { name: "button", condition: b, children: /* @__PURE__ */ t(
|
|
63
62
|
"div",
|
|
64
63
|
{
|
|
65
|
-
className:
|
|
64
|
+
className: m(i.SidebarButton, {
|
|
66
65
|
[i.NothingAbove]: !d && !l
|
|
67
66
|
}),
|
|
68
|
-
children:
|
|
67
|
+
children: f
|
|
69
68
|
}
|
|
70
69
|
) }),
|
|
70
|
+
/* @__PURE__ */ t(B, { icons: c.icons, tuvSrc: c.tuvSrc, align: c.align }),
|
|
71
71
|
/* @__PURE__ */ t(
|
|
72
|
-
|
|
72
|
+
"div",
|
|
73
73
|
{
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
[i.NothingAbove]: !d && !l && !m
|
|
74
|
+
className: m({
|
|
75
|
+
[i.NothingAbove]: !d && !l && !b
|
|
77
76
|
})
|
|
78
77
|
}
|
|
79
78
|
)
|
|
@@ -82,5 +81,5 @@ import '../../assets/sidebar-DyDlIXV0.css';const y = "_Sidebar_17t5d_1", A = "_B
|
|
|
82
81
|
);
|
|
83
82
|
};
|
|
84
83
|
export {
|
|
85
|
-
|
|
84
|
+
V as Sidebar
|
|
86
85
|
};
|