@arthurzakharov/ui-kit 2.12.0 → 2.13.0
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.
|
@@ -0,0 +1 @@
|
|
|
1
|
+
._Sidebar_17t5d_1{display:block}._Board_17t5d_5{border-radius:var(--rm-ui-border-radius-md);padding:var(--rm-ui-padding-lg);background-color:var(--rm-ui-sidebar-bg)}._SidebarTitle_17t5d_11,._SidebarButton_17t5d_12{padding-bottom:var(--rm-ui-padding-md)}._Steps_17t5d_16,._Info_17t5d_17{display:flex;flex-direction:column;align-items:flex-start;gap:var(--rm-ui-padding-sm)}._Step_17t5d_16{display:inline-flex;align-items:center;gap:var(--rm-ui-padding-xs)}._InfoRow_17t5d_30{display:inline-flex;align-items:center;justify-content:space-between;gap:var(--rm-ui-padding-xs)}._SidebarButton_17t5d_12{display:flex;flex-direction:column;align-items:stretch;justify-content:flex-start}._NothingAbove_17t5d_44{margin-top:var(--rm-ui-padding-lg)}@media screen and (min-width:1024px){._Board_17t5d_5{padding:var(--rm-ui-padding-xl)}}@media screen and (min-width:1200px){._Board_17t5d_5{padding:var(--rm-ui-padding-xxl)}._SidebarTitle_17t5d_11,._SidebarButton_17t5d_12{padding-bottom:var(--rm-ui-padding-lg)}}
|
|
@@ -1,90 +1,92 @@
|
|
|
1
|
-
import { jsx as t, jsxs as o, Fragment as
|
|
2
|
-
import { clsx as
|
|
3
|
-
import { FadeScale as
|
|
4
|
-
import { Certifications as
|
|
5
|
-
import { Line as
|
|
1
|
+
import { jsx as t, jsxs as o, Fragment as S } from "react/jsx-runtime";
|
|
2
|
+
import { clsx as c, baseProps as f } from "../../utils/functions/functions.util.js";
|
|
3
|
+
import { FadeScale as v } from "../../animations/fade-scale/fade-scale.component.js";
|
|
4
|
+
import { Certifications as A } from "../certifications/certifications.component.js";
|
|
5
|
+
import { Line as d } from "../line/line.component.js";
|
|
6
6
|
import { Text as m } from "../text/text.component.js";
|
|
7
|
-
import { UserPanel as
|
|
7
|
+
import { UserPanel as B } 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
10
|
import "lucide-react";
|
|
11
11
|
import "usehooks-ts";
|
|
12
|
-
import { Status as
|
|
13
|
-
import '../../assets/sidebar-
|
|
14
|
-
Sidebar:
|
|
15
|
-
Board:
|
|
16
|
-
SidebarTitle:
|
|
17
|
-
SidebarButton:
|
|
18
|
-
Steps:
|
|
19
|
-
Info:
|
|
20
|
-
Step:
|
|
21
|
-
InfoRow:
|
|
22
|
-
SidebarExtras: F,
|
|
12
|
+
import { Status as x } from "../../controls/primitives/status/status.component.js";
|
|
13
|
+
import '../../assets/sidebar-DyDlIXV0.css';const y = "_Sidebar_17t5d_1", T = "_Board_17t5d_5", R = "_SidebarTitle_17t5d_11", z = "_SidebarButton_17t5d_12", C = "_Steps_17t5d_16", $ = "_Info_17t5d_17", j = "_Step_17t5d_16", F = "_InfoRow_17t5d_30", P = "_NothingAbove_17t5d_44", i = {
|
|
14
|
+
Sidebar: y,
|
|
15
|
+
Board: T,
|
|
16
|
+
SidebarTitle: R,
|
|
17
|
+
SidebarButton: z,
|
|
18
|
+
Steps: C,
|
|
19
|
+
Info: $,
|
|
20
|
+
Step: j,
|
|
21
|
+
InfoRow: F,
|
|
23
22
|
NothingAbove: P
|
|
24
|
-
},
|
|
23
|
+
}, X = ({
|
|
25
24
|
// Sidebar props
|
|
26
|
-
children:
|
|
25
|
+
children: g,
|
|
27
26
|
isButtonVisible: b = !1,
|
|
28
27
|
isUserOpen: r = !1,
|
|
29
|
-
title:
|
|
30
|
-
steps:
|
|
31
|
-
info:
|
|
32
|
-
certifications:
|
|
33
|
-
user:
|
|
34
|
-
extras:
|
|
28
|
+
title: N = "Ihre Übersicht",
|
|
29
|
+
steps: I = [],
|
|
30
|
+
info: u = [],
|
|
31
|
+
certifications: p,
|
|
32
|
+
user: n,
|
|
33
|
+
extras: s,
|
|
35
34
|
// Base props
|
|
36
|
-
...
|
|
35
|
+
..._
|
|
37
36
|
}) => {
|
|
38
|
-
const
|
|
37
|
+
const h = u.filter(([, e]) => e.trim() !== ""), a = h.length > 0;
|
|
39
38
|
return /* @__PURE__ */ t(
|
|
40
39
|
"div",
|
|
41
40
|
{
|
|
42
|
-
"data-testid":
|
|
43
|
-
className:
|
|
44
|
-
children: /* @__PURE__ */ o("div", { className:
|
|
45
|
-
/* @__PURE__ */ t(m, { preset: "sidebar-title", className:
|
|
46
|
-
/* @__PURE__ */ t("div", { className:
|
|
47
|
-
/* @__PURE__ */ t(
|
|
48
|
-
/* @__PURE__ */ t(m, { tag: "span", weight: "medium", size: "body-small", color:
|
|
49
|
-
] },
|
|
50
|
-
a && /* @__PURE__ */ o(
|
|
51
|
-
/* @__PURE__ */ t(
|
|
52
|
-
/* @__PURE__ */ t("div", { className:
|
|
53
|
-
/* @__PURE__ */ t(m, { tag: "span", size: "body-small", color: "text-secondary", children:
|
|
54
|
-
/* @__PURE__ */ t(m, { tag: "span", size: "body-small", align: "right", children:
|
|
55
|
-
] }, `${
|
|
56
|
-
/* @__PURE__ */ t(
|
|
41
|
+
"data-testid": f(_, "data-testid", "sidebar"),
|
|
42
|
+
className: c(i.Sidebar, f(_, "className")),
|
|
43
|
+
children: /* @__PURE__ */ o("div", { className: i.Board, children: [
|
|
44
|
+
/* @__PURE__ */ t(m, { preset: "sidebar-title", className: i.SidebarTitle, children: N }),
|
|
45
|
+
/* @__PURE__ */ t("div", { className: i.Steps, "data-testid": "sidebar-steps", children: I.map(({ state: e, text: l }) => /* @__PURE__ */ o("div", { className: i.Step, "data-testid": "sidebar-step", children: [
|
|
46
|
+
/* @__PURE__ */ t(x, { state: e }),
|
|
47
|
+
/* @__PURE__ */ t(m, { tag: "span", weight: "medium", size: "body-small", color: e === "idle" ? "grey-400" : "text-primary", children: l })
|
|
48
|
+
] }, l)) }),
|
|
49
|
+
a && /* @__PURE__ */ o(S, { children: [
|
|
50
|
+
/* @__PURE__ */ t(d, {}),
|
|
51
|
+
/* @__PURE__ */ t("div", { className: i.Info, "data-testid": "sidebar-info", children: h.map(([e, l], w) => /* @__PURE__ */ o("div", { className: i.InfoRow, "data-testid": "sidebar-info-row", children: [
|
|
52
|
+
/* @__PURE__ */ t(m, { tag: "span", size: "body-small", color: "text-secondary", children: e }),
|
|
53
|
+
/* @__PURE__ */ t(m, { tag: "span", size: "body-small", align: "right", children: l })
|
|
54
|
+
] }, `${e}-${w}`)) }),
|
|
55
|
+
/* @__PURE__ */ t(d, {})
|
|
57
56
|
] }),
|
|
58
|
-
/* @__PURE__ */ o(
|
|
59
|
-
!a && /* @__PURE__ */ t(
|
|
60
|
-
/* @__PURE__ */ t(
|
|
61
|
-
/* @__PURE__ */ t(
|
|
57
|
+
/* @__PURE__ */ o(v, { name: "user", condition: r, children: [
|
|
58
|
+
!a && /* @__PURE__ */ t(d, {}),
|
|
59
|
+
/* @__PURE__ */ t(B, { title: n.title, button: n.button, data: n.data, onClick: n.onClick }),
|
|
60
|
+
/* @__PURE__ */ t(d, {})
|
|
62
61
|
] }),
|
|
63
|
-
/* @__PURE__ */ t(
|
|
62
|
+
/* @__PURE__ */ t(v, { name: "button", condition: b, children: /* @__PURE__ */ t(
|
|
64
63
|
"div",
|
|
65
64
|
{
|
|
66
|
-
className:
|
|
67
|
-
[
|
|
65
|
+
className: c(i.SidebarButton, {
|
|
66
|
+
[i.NothingAbove]: !a && !r
|
|
68
67
|
}),
|
|
69
|
-
children:
|
|
68
|
+
children: g
|
|
70
69
|
}
|
|
71
70
|
) }),
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
71
|
+
s != null && /* @__PURE__ */ o(S, { children: [
|
|
72
|
+
/* @__PURE__ */ t(
|
|
73
|
+
"div",
|
|
74
|
+
{
|
|
75
|
+
"data-testid": "sidebar-extras",
|
|
76
|
+
className: c(i.SidebarExtras, {
|
|
77
|
+
[i.NothingAbove]: !a && !r && !b
|
|
78
|
+
}),
|
|
79
|
+
children: s
|
|
80
|
+
}
|
|
81
|
+
),
|
|
82
|
+
/* @__PURE__ */ t(d, {})
|
|
83
|
+
] }),
|
|
84
|
+
/* @__PURE__ */ t(A, { icons: p.icons, tuvSrc: p.tuvSrc, align: p.align }),
|
|
83
85
|
/* @__PURE__ */ t(
|
|
84
86
|
"div",
|
|
85
87
|
{
|
|
86
|
-
className:
|
|
87
|
-
[
|
|
88
|
+
className: c({
|
|
89
|
+
[i.NothingAbove]: !a && !r && !b && s == null
|
|
88
90
|
})
|
|
89
91
|
}
|
|
90
92
|
)
|
|
@@ -93,5 +95,5 @@ import '../../assets/sidebar-rLhJNVa5.css';const B = "_Sidebar_ex9j5_1", y = "_B
|
|
|
93
95
|
);
|
|
94
96
|
};
|
|
95
97
|
export {
|
|
96
|
-
|
|
98
|
+
X as Sidebar
|
|
97
99
|
};
|
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
._Sidebar_ex9j5_1{display:block}._Board_ex9j5_5{border-radius:var(--rm-ui-border-radius-md);padding:var(--rm-ui-padding-lg);background-color:var(--rm-ui-sidebar-bg)}._SidebarTitle_ex9j5_11,._SidebarButton_ex9j5_12{padding-bottom:var(--rm-ui-padding-md)}._Steps_ex9j5_16,._Info_ex9j5_17{display:flex;flex-direction:column;align-items:flex-start;gap:var(--rm-ui-padding-sm)}._Step_ex9j5_16{display:inline-flex;align-items:center;gap:var(--rm-ui-padding-xs)}._InfoRow_ex9j5_30{display:inline-flex;align-items:center;justify-content:space-between;gap:var(--rm-ui-padding-xs)}._SidebarButton_ex9j5_12{display:flex;flex-direction:column;align-items:stretch;justify-content:flex-start}._SidebarExtras_ex9j5_44{padding-bottom:var(--rm-ui-padding-md)}@media screen and (min-width:1200px){._SidebarExtras_ex9j5_44{padding-bottom:var(--rm-ui-padding-lg)}}._NothingAbove_ex9j5_54{margin-top:var(--rm-ui-padding-lg)}@media screen and (min-width:1024px){._Board_ex9j5_5{padding:var(--rm-ui-padding-xl)}}@media screen and (min-width:1200px){._Board_ex9j5_5{padding:var(--rm-ui-padding-xxl)}._SidebarTitle_ex9j5_11,._SidebarButton_ex9j5_12{padding-bottom:var(--rm-ui-padding-lg)}}
|