@arthurzakharov/ui-kit 2.11.0 → 2.12.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.
- package/dist/assets/sidebar-rLhJNVa5.css +1 -0
- package/dist/assets/timetable-CqiWwUNY.css +1 -0
- package/dist/components/sidebar/sidebar.component.d.ts +3 -2
- package/dist/components/sidebar/sidebar.component.js +64 -52
- package/dist/components/timetable/timetable.component.js +11 -12
- package/package.json +1 -1
- package/dist/assets/sidebar-DyDlIXV0.css +0 -1
- package/dist/assets/timetable-C4OGIa6M.css +0 -1
|
@@ -0,0 +1 @@
|
|
|
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)}}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
._Timetable_zg6h3_1{display:flex;flex-direction:column;gap:var(--rm-ui-padding-xxs)}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { PropsWithChildren } from 'react';
|
|
1
|
+
import { PropsWithChildren, ReactNode } from 'react';
|
|
2
2
|
import { CertificationsProps } from '../certifications';
|
|
3
3
|
import { UserPanelProps } from '../user-panel';
|
|
4
4
|
import { State } from '../../controls/utils';
|
|
@@ -16,6 +16,7 @@ export interface SidebarProps extends PropsWithChildren<Base> {
|
|
|
16
16
|
info: SidebarInfo[];
|
|
17
17
|
user: UserPanelProps;
|
|
18
18
|
certifications: CertificationsProps;
|
|
19
|
+
extras?: ReactNode;
|
|
19
20
|
}
|
|
20
|
-
export declare const Sidebar: ({ children, isButtonVisible, isUserOpen, title, steps, info, certifications, user, ...base }: SidebarProps) => import("react/jsx-runtime").JSX.Element;
|
|
21
|
+
export declare const Sidebar: ({ children, isButtonVisible, isUserOpen, title, steps, info, certifications, user, extras, ...base }: SidebarProps) => import("react/jsx-runtime").JSX.Element;
|
|
21
22
|
export {};
|
|
@@ -1,78 +1,90 @@
|
|
|
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
|
|
6
|
-
import { Text as
|
|
1
|
+
import { jsx as t, jsxs as o, Fragment as I } from "react/jsx-runtime";
|
|
2
|
+
import { clsx as l, baseProps as h } from "../../utils/functions/functions.util.js";
|
|
3
|
+
import { FadeScale as f } from "../../animations/fade-scale/fade-scale.component.js";
|
|
4
|
+
import { Certifications as u } from "../certifications/certifications.component.js";
|
|
5
|
+
import { Line as c } from "../line/line.component.js";
|
|
6
|
+
import { Text as m } 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
10
|
import "lucide-react";
|
|
11
11
|
import "usehooks-ts";
|
|
12
|
-
import { Status as
|
|
13
|
-
import '../../assets/sidebar-
|
|
14
|
-
Sidebar:
|
|
15
|
-
Board:
|
|
12
|
+
import { Status as A } from "../../controls/primitives/status/status.component.js";
|
|
13
|
+
import '../../assets/sidebar-rLhJNVa5.css';const B = "_Sidebar_ex9j5_1", y = "_Board_ex9j5_5", T = "_SidebarTitle_ex9j5_11", E = "_SidebarButton_ex9j5_12", R = "_Steps_ex9j5_16", z = "_Info_ex9j5_17", C = "_Step_ex9j5_16", $ = "_InfoRow_ex9j5_30", F = "_SidebarExtras_ex9j5_44", P = "_NothingAbove_ex9j5_54", e = {
|
|
14
|
+
Sidebar: B,
|
|
15
|
+
Board: y,
|
|
16
16
|
SidebarTitle: T,
|
|
17
|
-
SidebarButton:
|
|
18
|
-
Steps:
|
|
19
|
-
Info:
|
|
20
|
-
Step:
|
|
21
|
-
InfoRow:
|
|
22
|
-
|
|
23
|
-
|
|
17
|
+
SidebarButton: E,
|
|
18
|
+
Steps: R,
|
|
19
|
+
Info: z,
|
|
20
|
+
Step: C,
|
|
21
|
+
InfoRow: $,
|
|
22
|
+
SidebarExtras: F,
|
|
23
|
+
NothingAbove: P
|
|
24
|
+
}, Y = ({
|
|
24
25
|
// Sidebar props
|
|
25
|
-
children:
|
|
26
|
+
children: v,
|
|
26
27
|
isButtonVisible: b = !1,
|
|
27
|
-
isUserOpen:
|
|
28
|
-
title:
|
|
29
|
-
steps:
|
|
28
|
+
isUserOpen: r = !1,
|
|
29
|
+
title: x = "Ihre Übersicht",
|
|
30
|
+
steps: g = [],
|
|
30
31
|
info: N = [],
|
|
31
|
-
certifications:
|
|
32
|
-
user:
|
|
32
|
+
certifications: _,
|
|
33
|
+
user: d,
|
|
34
|
+
extras: n,
|
|
33
35
|
// Base props
|
|
34
|
-
...
|
|
36
|
+
...S
|
|
35
37
|
}) => {
|
|
36
|
-
const
|
|
38
|
+
const p = N.filter(([, i]) => i.trim() !== ""), a = p.length > 0;
|
|
37
39
|
return /* @__PURE__ */ t(
|
|
38
40
|
"div",
|
|
39
41
|
{
|
|
40
|
-
"data-testid": S
|
|
41
|
-
className:
|
|
42
|
-
children: /* @__PURE__ */ o("div", { className:
|
|
43
|
-
/* @__PURE__ */ t(
|
|
44
|
-
/* @__PURE__ */ t("div", { className:
|
|
45
|
-
/* @__PURE__ */ t(
|
|
46
|
-
/* @__PURE__ */ t(
|
|
47
|
-
] },
|
|
48
|
-
|
|
49
|
-
/* @__PURE__ */ t(
|
|
50
|
-
/* @__PURE__ */ t("div", { className:
|
|
51
|
-
/* @__PURE__ */ t(
|
|
52
|
-
/* @__PURE__ */ t(
|
|
53
|
-
] }, `${
|
|
54
|
-
/* @__PURE__ */ t(
|
|
42
|
+
"data-testid": h(S, "data-testid", "sidebar"),
|
|
43
|
+
className: l(e.Sidebar, h(S, "className")),
|
|
44
|
+
children: /* @__PURE__ */ o("div", { className: e.Board, children: [
|
|
45
|
+
/* @__PURE__ */ t(m, { preset: "sidebar-title", className: e.SidebarTitle, children: x }),
|
|
46
|
+
/* @__PURE__ */ t("div", { className: e.Steps, "data-testid": "sidebar-steps", children: g.map(({ state: i, text: s }) => /* @__PURE__ */ o("div", { className: e.Step, "data-testid": "sidebar-step", children: [
|
|
47
|
+
/* @__PURE__ */ t(A, { state: i }),
|
|
48
|
+
/* @__PURE__ */ t(m, { tag: "span", weight: "medium", size: "body-small", color: i === "idle" ? "grey-400" : "text-primary", children: s })
|
|
49
|
+
] }, s)) }),
|
|
50
|
+
a && /* @__PURE__ */ o(I, { children: [
|
|
51
|
+
/* @__PURE__ */ t(c, {}),
|
|
52
|
+
/* @__PURE__ */ t("div", { className: e.Info, "data-testid": "sidebar-info", children: p.map(([i, s], j) => /* @__PURE__ */ o("div", { className: e.InfoRow, "data-testid": "sidebar-info-row", children: [
|
|
53
|
+
/* @__PURE__ */ t(m, { tag: "span", size: "body-small", color: "text-secondary", children: i }),
|
|
54
|
+
/* @__PURE__ */ t(m, { tag: "span", size: "body-small", align: "right", children: s })
|
|
55
|
+
] }, `${i}-${j}`)) }),
|
|
56
|
+
/* @__PURE__ */ t(c, {})
|
|
55
57
|
] }),
|
|
56
|
-
/* @__PURE__ */ o(
|
|
57
|
-
!
|
|
58
|
-
/* @__PURE__ */ t(w, { title:
|
|
59
|
-
/* @__PURE__ */ t(
|
|
58
|
+
/* @__PURE__ */ o(f, { name: "user", condition: r, children: [
|
|
59
|
+
!a && /* @__PURE__ */ t(c, {}),
|
|
60
|
+
/* @__PURE__ */ t(w, { title: d.title, button: d.button, data: d.data, onClick: d.onClick }),
|
|
61
|
+
/* @__PURE__ */ t(c, {})
|
|
60
62
|
] }),
|
|
61
|
-
/* @__PURE__ */ t(
|
|
63
|
+
/* @__PURE__ */ t(f, { name: "button", condition: b, children: /* @__PURE__ */ t(
|
|
62
64
|
"div",
|
|
63
65
|
{
|
|
64
|
-
className:
|
|
65
|
-
[
|
|
66
|
+
className: l(e.SidebarButton, {
|
|
67
|
+
[e.NothingAbove]: !a && !r
|
|
66
68
|
}),
|
|
67
|
-
children:
|
|
69
|
+
children: v
|
|
68
70
|
}
|
|
69
71
|
) }),
|
|
70
|
-
/* @__PURE__ */ t(
|
|
72
|
+
n != null && /* @__PURE__ */ t(
|
|
73
|
+
"div",
|
|
74
|
+
{
|
|
75
|
+
"data-testid": "sidebar-extras",
|
|
76
|
+
className: l(e.SidebarExtras, {
|
|
77
|
+
[e.NothingAbove]: !a && !r && !b
|
|
78
|
+
}),
|
|
79
|
+
children: n
|
|
80
|
+
}
|
|
81
|
+
),
|
|
82
|
+
/* @__PURE__ */ t(u, { icons: _.icons, tuvSrc: _.tuvSrc, align: _.align }),
|
|
71
83
|
/* @__PURE__ */ t(
|
|
72
84
|
"div",
|
|
73
85
|
{
|
|
74
|
-
className:
|
|
75
|
-
[
|
|
86
|
+
className: l({
|
|
87
|
+
[e.NothingAbove]: !a && !r && !b && n == null
|
|
76
88
|
})
|
|
77
89
|
}
|
|
78
90
|
)
|
|
@@ -81,5 +93,5 @@ import '../../assets/sidebar-DyDlIXV0.css';const y = "_Sidebar_17t5d_1", A = "_B
|
|
|
81
93
|
);
|
|
82
94
|
};
|
|
83
95
|
export {
|
|
84
|
-
|
|
96
|
+
Y as Sidebar
|
|
85
97
|
};
|
|
@@ -1,16 +1,15 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { baseProps as
|
|
3
|
-
import
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
/* @__PURE__ */ s("
|
|
11
|
-
m.map((n, i) => /* @__PURE__ */ s("p", { "data-testid": `${t}-line-${i}`, className: e.Line, children: n }, i))
|
|
1
|
+
import { jsxs as r, jsx as s } from "react/jsx-runtime";
|
|
2
|
+
import { baseProps as i, clsx as c } from "../../utils/functions/functions.util.js";
|
|
3
|
+
import { Text as l } from "../text/text.component.js";
|
|
4
|
+
import '../../assets/timetable-CqiWwUNY.css';const n = "_Timetable_zg6h3_1", b = {
|
|
5
|
+
Timetable: n
|
|
6
|
+
}, h = ({ title: m, lines: o, ...e }) => {
|
|
7
|
+
const t = i(e, "data-testid", "timetable");
|
|
8
|
+
return /* @__PURE__ */ r("div", { "data-testid": t, className: c(b.Timetable, i(e, "className")), children: [
|
|
9
|
+
/* @__PURE__ */ s(l, { tag: "span", size: "body-small", color: "text-secondary", "data-testid": `${t}-title`, children: m }),
|
|
10
|
+
o.map((d, a) => /* @__PURE__ */ s(l, { tag: "span", size: "body-small", "data-testid": `${t}-line-${a}`, children: d }, a))
|
|
12
11
|
] });
|
|
13
12
|
};
|
|
14
13
|
export {
|
|
15
|
-
|
|
14
|
+
h as Timetable
|
|
16
15
|
};
|
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
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 +0,0 @@
|
|
|
1
|
-
._Timetable_1y4a7_1{display:flex;flex-direction:column;gap:var(--rm-ui-padding-xxs);padding:var(--rm-ui-padding-sm) var(--rm-ui-padding-md)}._Title_1y4a7_8{margin:0;font-weight:var(--rm-ui-font-weight-medium);font-size:var(--rm-ui-font-size-body-small);line-height:var(--rm-ui-line-height-body-small);color:var(--rm-ui-color-text-primary)}._Line_1y4a7_16{margin:0;font-weight:var(--rm-ui-font-weight-regular);font-size:var(--rm-ui-font-size-body-small);line-height:var(--rm-ui-line-height-body-small);color:var(--rm-ui-color-text-secondary)}
|