@arthurzakharov/ui-kit 3.4.0 → 3.6.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/dropzone-CxglLL5C.css +1 -0
- package/dist/components/dropzone/dropzone.component.d.ts +2 -1
- package/dist/components/dropzone/dropzone.component.js +66 -63
- package/dist/components/main-attachment/main-attachment.component.d.ts +3 -3
- package/dist/components/main-attachment/main-attachment.component.js +29 -21
- package/dist/components/sidebar/sidebar.component.d.ts +2 -2
- package/dist/components/sidebar/sidebar.component.js +39 -39
- package/package.json +1 -1
- package/dist/assets/dropzone-iRe6v-43.css +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
._Dropzone_e3zu0_1{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:var(--rm-ui-padding-xs);width:100%;min-height:160px;padding:var(--rm-ui-padding-md);border:2px dashed var(--rm-ui-grey-300);border-radius:var(--rm-ui-border-radius-md, 8px);background-color:var(--rm-ui-grey-50);text-align:center;cursor:pointer;transition:border-color .12s ease,background-color .12s ease}._Dropzone_e3zu0_1:hover,._Active_e3zu0_21{border-color:var(--rm-ui-color-theme-primary);background-color:var(--rm-ui-color-background-primary, #fff)}._Dropzone_e3zu0_1:focus-visible{outline:2px solid var(--rm-ui-color-focus);outline-offset:2px}._Disabled_e3zu0_31{cursor:not-allowed;opacity:.5}._HiddenInput_e3zu0_36{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}._Title_e3zu0_48{font-size:var(--rm-ui-font-size-body);line-height:var(--rm-ui-line-height-body);color:var(--rm-ui-color-text-primary)}._Icon_e3zu0_54{color:var(--rm-ui-color-theme-primary)}._Invitation_e3zu0_58{font-size:var(--rm-ui-font-size-body);line-height:var(--rm-ui-line-height-body);color:var(--rm-ui-color-text-primary)}._HelpText_e3zu0_64{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)}
|
|
@@ -6,9 +6,10 @@ export interface DropzoneProps extends Base {
|
|
|
6
6
|
multiple?: boolean;
|
|
7
7
|
maxSize?: number;
|
|
8
8
|
disabled?: boolean;
|
|
9
|
+
title?: ReactNode;
|
|
9
10
|
invitation: ReactNode;
|
|
10
11
|
helpText?: ReactNode;
|
|
11
12
|
onDrop: (files: File[]) => void;
|
|
12
13
|
onReject?: (files: File[], reason: DropzoneRejectionReason) => void;
|
|
13
14
|
}
|
|
14
|
-
export declare const Dropzone: ({ accept, multiple, maxSize, disabled, invitation, helpText, onDrop, onReject, ...base }: DropzoneProps) => import("react/jsx-runtime").JSX.Element;
|
|
15
|
+
export declare const Dropzone: ({ accept, multiple, maxSize, disabled, title, invitation, helpText, onDrop, onReject, ...base }: DropzoneProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,107 +1,110 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { useRef as
|
|
3
|
-
import { Upload as
|
|
4
|
-
import { baseProps as I, clsx as
|
|
5
|
-
import '../../assets/dropzone-
|
|
6
|
-
Dropzone:
|
|
7
|
-
Active:
|
|
8
|
-
Disabled:
|
|
9
|
-
HiddenInput:
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
1
|
+
import { jsxs as L, jsx as l } from "react/jsx-runtime";
|
|
2
|
+
import { useRef as P, useState as W } from "react";
|
|
3
|
+
import { Upload as k } from "lucide-react";
|
|
4
|
+
import { baseProps as I, clsx as E } from "../../utils/functions/functions.util.js";
|
|
5
|
+
import '../../assets/dropzone-CxglLL5C.css';const K = "_Dropzone_e3zu0_1", O = "_Active_e3zu0_21", $ = "_Disabled_e3zu0_31", b = "_HiddenInput_e3zu0_36", B = "_Title_e3zu0_48", F = "_Icon_e3zu0_54", U = "_Invitation_e3zu0_58", q = "_HelpText_e3zu0_64", o = {
|
|
6
|
+
Dropzone: K,
|
|
7
|
+
Active: O,
|
|
8
|
+
Disabled: $,
|
|
9
|
+
HiddenInput: b,
|
|
10
|
+
Title: B,
|
|
11
|
+
Icon: F,
|
|
12
|
+
Invitation: U,
|
|
13
|
+
HelpText: q
|
|
14
|
+
}, G = (r, d) => {
|
|
15
|
+
const s = d.split(",").map((e) => e.trim()).filter(Boolean);
|
|
16
|
+
return s.length === 0 ? !0 : s.some((e) => {
|
|
17
|
+
if (e.startsWith("."))
|
|
18
|
+
return r.name.toLowerCase().endsWith(e.toLowerCase());
|
|
19
|
+
if (e.endsWith("/*")) {
|
|
20
|
+
const a = e.slice(0, -1);
|
|
21
|
+
return r.type.startsWith(a);
|
|
21
22
|
}
|
|
22
|
-
return r.type ===
|
|
23
|
+
return r.type === e;
|
|
23
24
|
});
|
|
24
|
-
},
|
|
25
|
+
}, V = ({
|
|
25
26
|
accept: r,
|
|
26
|
-
multiple:
|
|
27
|
+
multiple: d = !1,
|
|
27
28
|
maxSize: s,
|
|
28
|
-
disabled:
|
|
29
|
-
|
|
30
|
-
|
|
29
|
+
disabled: e = !1,
|
|
30
|
+
title: a,
|
|
31
|
+
invitation: z,
|
|
32
|
+
helpText: f,
|
|
31
33
|
onDrop: y,
|
|
32
|
-
onReject:
|
|
33
|
-
...
|
|
34
|
+
onReject: p,
|
|
35
|
+
...g
|
|
34
36
|
}) => {
|
|
35
|
-
const h =
|
|
36
|
-
const
|
|
37
|
-
for (const
|
|
38
|
-
if (!
|
|
39
|
-
|
|
37
|
+
const h = P(null), [T, _] = W(!1), D = I(g, "data-testid", "dropzone"), x = (t) => {
|
|
38
|
+
const u = [], i = [], c = [];
|
|
39
|
+
for (const n of t) {
|
|
40
|
+
if (!G(n, r)) {
|
|
41
|
+
c.push(n);
|
|
40
42
|
continue;
|
|
41
43
|
}
|
|
42
|
-
if (s !== void 0 &&
|
|
43
|
-
|
|
44
|
+
if (s !== void 0 && n.size > s) {
|
|
45
|
+
i.push(n);
|
|
44
46
|
continue;
|
|
45
47
|
}
|
|
46
|
-
|
|
48
|
+
u.push(n);
|
|
47
49
|
}
|
|
48
|
-
return { accepted:
|
|
50
|
+
return { accepted: u, tooLarge: i, wrongType: c };
|
|
49
51
|
}, m = (t) => {
|
|
50
52
|
if (!t || t.length === 0) return;
|
|
51
|
-
const
|
|
52
|
-
|
|
53
|
+
const u = Array.from(t), { accepted: i, tooLarge: c, wrongType: n } = x(u);
|
|
54
|
+
i.length > 0 && y(i), c.length > 0 && p && p(c, "tooLarge"), n.length > 0 && p && p(n, "wrongType");
|
|
53
55
|
}, A = () => {
|
|
54
|
-
|
|
56
|
+
e || h.current?.click();
|
|
55
57
|
}, H = (t) => {
|
|
56
|
-
|
|
58
|
+
e || (t.key === "Enter" || t.key === " ") && (t.preventDefault(), h.current?.click());
|
|
57
59
|
}, w = (t) => {
|
|
58
60
|
m(t.target.files), t.target.value = "";
|
|
59
61
|
}, v = (t) => {
|
|
60
|
-
t.preventDefault(), t.stopPropagation(), !
|
|
61
|
-
},
|
|
62
|
-
t.preventDefault(), t.stopPropagation(),
|
|
63
|
-
},
|
|
64
|
-
t.preventDefault(), t.stopPropagation(),
|
|
62
|
+
t.preventDefault(), t.stopPropagation(), !e && _(!0);
|
|
63
|
+
}, N = (t) => {
|
|
64
|
+
t.preventDefault(), t.stopPropagation(), _(!1);
|
|
65
|
+
}, C = (t) => {
|
|
66
|
+
t.preventDefault(), t.stopPropagation(), _(!1), !e && m(t.dataTransfer.files);
|
|
65
67
|
};
|
|
66
|
-
return /* @__PURE__ */
|
|
68
|
+
return /* @__PURE__ */ L(
|
|
67
69
|
"div",
|
|
68
70
|
{
|
|
69
|
-
"data-testid":
|
|
70
|
-
className:
|
|
71
|
-
[o.Active]:
|
|
72
|
-
[o.Disabled]:
|
|
71
|
+
"data-testid": D,
|
|
72
|
+
className: E(o.Dropzone, I(g, "className"), {
|
|
73
|
+
[o.Active]: T,
|
|
74
|
+
[o.Disabled]: e
|
|
73
75
|
}),
|
|
74
76
|
role: "button",
|
|
75
|
-
tabIndex:
|
|
76
|
-
"aria-disabled":
|
|
77
|
+
tabIndex: e ? -1 : 0,
|
|
78
|
+
"aria-disabled": e,
|
|
77
79
|
onClick: A,
|
|
78
80
|
onKeyDown: H,
|
|
79
81
|
onDragOver: v,
|
|
80
82
|
onDragEnter: v,
|
|
81
|
-
onDragLeave:
|
|
82
|
-
onDrop:
|
|
83
|
+
onDragLeave: N,
|
|
84
|
+
onDrop: C,
|
|
83
85
|
children: [
|
|
84
|
-
/* @__PURE__ */
|
|
86
|
+
/* @__PURE__ */ l(
|
|
85
87
|
"input",
|
|
86
88
|
{
|
|
87
89
|
ref: h,
|
|
88
90
|
type: "file",
|
|
89
91
|
className: o.HiddenInput,
|
|
90
92
|
accept: r,
|
|
91
|
-
multiple:
|
|
92
|
-
disabled:
|
|
93
|
+
multiple: d,
|
|
94
|
+
disabled: e,
|
|
93
95
|
onChange: w,
|
|
94
|
-
"data-testid": `${
|
|
96
|
+
"data-testid": `${D}-input`,
|
|
95
97
|
tabIndex: -1
|
|
96
98
|
}
|
|
97
99
|
),
|
|
98
|
-
/* @__PURE__ */
|
|
99
|
-
/* @__PURE__ */
|
|
100
|
-
|
|
100
|
+
a != null && /* @__PURE__ */ l("div", { className: o.Title, children: a }),
|
|
101
|
+
/* @__PURE__ */ l(k, { size: 32, className: o.Icon, "aria-hidden": !0 }),
|
|
102
|
+
/* @__PURE__ */ l("div", { className: o.Invitation, children: z }),
|
|
103
|
+
f != null && /* @__PURE__ */ l("div", { className: o.HelpText, children: f })
|
|
101
104
|
]
|
|
102
105
|
}
|
|
103
106
|
);
|
|
104
107
|
};
|
|
105
108
|
export {
|
|
106
|
-
|
|
109
|
+
V as Dropzone
|
|
107
110
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { PropsWithChildren } from 'react';
|
|
1
|
+
import { PropsWithChildren, ReactNode } from 'react';
|
|
2
2
|
export interface MainAttachmentProps extends PropsWithChildren {
|
|
3
|
-
title?:
|
|
4
|
-
subtitle?:
|
|
3
|
+
title?: ReactNode;
|
|
4
|
+
subtitle?: ReactNode;
|
|
5
5
|
}
|
|
6
6
|
export declare const MainAttachment: (props: MainAttachmentProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,25 +1,33 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { clsx as
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
1
|
+
import { jsxs as h, jsx as r } from "react/jsx-runtime";
|
|
2
|
+
import { clsx as s } from "../../utils/functions/functions.util.js";
|
|
3
|
+
import { isValidElement as o, cloneElement as u } from "react";
|
|
4
|
+
import { FadeScale as A } from "../../animations/fade-scale/fade-scale.component.js";
|
|
5
|
+
import { Text as M } from "../text/text.component.js";
|
|
6
|
+
import '../../assets/main-attachment-Cw8AP6xv.css';const f = "_MainAttachment_1oa7f_1", p = "_MainAttachmentTitle_1oa7f_5", b = "_MainAttachmentTitleWithSubtitle_1oa7f_9", _ = "_MainAttachmentSubtitle_1oa7f_13", a = {
|
|
7
|
+
MainAttachment: f,
|
|
8
|
+
MainAttachmentTitle: p,
|
|
9
|
+
MainAttachmentTitleWithSubtitle: b,
|
|
10
|
+
MainAttachmentSubtitle: _
|
|
11
|
+
}, c = (t) => t == null || t === "" || t === !1, m = (t, n, i) => {
|
|
12
|
+
if (typeof t == "string" || typeof t == "number")
|
|
13
|
+
return /* @__PURE__ */ r(M, { preset: i, className: n, children: t });
|
|
14
|
+
if (o(t)) {
|
|
15
|
+
const e = t;
|
|
16
|
+
return u(e, {
|
|
17
|
+
className: s(e.props.className, n)
|
|
18
|
+
});
|
|
19
|
+
}
|
|
20
|
+
return t;
|
|
21
|
+
}, d = (t) => {
|
|
22
|
+
const { children: n, title: i, subtitle: e } = t, l = !c(e);
|
|
23
|
+
return /* @__PURE__ */ h("div", { className: a.MainAttachment, children: [
|
|
24
|
+
c(i) ? null : m(
|
|
14
25
|
i,
|
|
15
|
-
{
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
) : null,
|
|
21
|
-
e ? /* @__PURE__ */ a(i, { preset: "page-subtitle", className: t.MainAttachmentSubtitle, children: e }) : null,
|
|
22
|
-
/* @__PURE__ */ a(o, { name: "attachment-main", condition: !0, animateOnStart: !0, duration: 0.2, delay: 0.1, children: l })
|
|
26
|
+
s(a.MainAttachmentTitle, { [a.MainAttachmentTitleWithSubtitle]: l }),
|
|
27
|
+
"page-title"
|
|
28
|
+
),
|
|
29
|
+
l ? m(e, a.MainAttachmentSubtitle, "page-subtitle") : null,
|
|
30
|
+
/* @__PURE__ */ r(A, { name: "attachment-main", condition: !0, animateOnStart: !0, duration: 0.2, delay: 0.1, children: n })
|
|
23
31
|
] });
|
|
24
32
|
};
|
|
25
33
|
export {
|
|
@@ -1,11 +1,11 @@
|
|
|
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';
|
|
5
5
|
import { Base } from '../../utils/types';
|
|
6
6
|
type SidebarStep = {
|
|
7
7
|
state: State;
|
|
8
|
-
text:
|
|
8
|
+
text: ReactNode;
|
|
9
9
|
};
|
|
10
10
|
type SidebarInfoRow = [string, string];
|
|
11
11
|
interface SidebarStepsProps extends Base {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as e, jsxs as b } from "react/jsx-runtime";
|
|
2
|
-
import { clsx as l, baseProps as
|
|
2
|
+
import { clsx as l, baseProps as s, parseSpacingValue as m } from "../../utils/functions/functions.util.js";
|
|
3
3
|
import { FadeScale as p } from "../../animations/fade-scale/fade-scale.component.js";
|
|
4
4
|
import { Certifications as S } from "../certifications/certifications.component.js";
|
|
5
5
|
import { Line as _ } from "../line/line.component.js";
|
|
@@ -10,7 +10,7 @@ import "../../utils/content/content.component.js";
|
|
|
10
10
|
import "lucide-react";
|
|
11
11
|
import "usehooks-ts";
|
|
12
12
|
import { Status as u } from "../../controls/primitives/status/status.component.js";
|
|
13
|
-
import '../../assets/sidebar-C-EyF8q9.css';const N = "_Sidebar_bino6_1", h = "_Board_bino6_5", v = "_Steps_bino6_13", g = "_Info_bino6_14", I = "_Step_bino6_13", y = "_InfoRow_bino6_27", T = "_SidebarButton_bino6_35", B = "_Timetable_bino6_42",
|
|
13
|
+
import '../../assets/sidebar-C-EyF8q9.css';const N = "_Sidebar_bino6_1", h = "_Board_bino6_5", v = "_Steps_bino6_13", g = "_Info_bino6_14", I = "_Step_bino6_13", y = "_InfoRow_bino6_27", T = "_SidebarButton_bino6_35", B = "_Timetable_bino6_42", x = "_Space_bino6_48", n = {
|
|
14
14
|
Sidebar: N,
|
|
15
15
|
Board: h,
|
|
16
16
|
Steps: v,
|
|
@@ -19,85 +19,85 @@ import '../../assets/sidebar-C-EyF8q9.css';const N = "_Sidebar_bino6_1", h = "_B
|
|
|
19
19
|
InfoRow: y,
|
|
20
20
|
SidebarButton: T,
|
|
21
21
|
Timetable: B,
|
|
22
|
-
Space:
|
|
23
|
-
},
|
|
22
|
+
Space: x
|
|
23
|
+
}, w = ({ children: a, ...t }) => /* @__PURE__ */ e(
|
|
24
24
|
"div",
|
|
25
25
|
{
|
|
26
|
-
"data-testid":
|
|
27
|
-
className: l(
|
|
28
|
-
children: /* @__PURE__ */ e("div", { className:
|
|
26
|
+
"data-testid": s(t, "data-testid", "sidebar"),
|
|
27
|
+
className: l(n.Sidebar, s(t, "className")),
|
|
28
|
+
children: /* @__PURE__ */ e("div", { className: n.Board, children: a })
|
|
29
29
|
}
|
|
30
30
|
), $ = ({ children: a, ...t }) => /* @__PURE__ */ e(
|
|
31
31
|
c,
|
|
32
32
|
{
|
|
33
33
|
preset: "sidebar-title",
|
|
34
|
-
"data-testid":
|
|
35
|
-
className:
|
|
34
|
+
"data-testid": s(t, "data-testid", "sidebar-title"),
|
|
35
|
+
className: s(t, "className"),
|
|
36
36
|
children: a
|
|
37
37
|
}
|
|
38
38
|
), z = ({ steps: a, ...t }) => /* @__PURE__ */ e(
|
|
39
39
|
"div",
|
|
40
40
|
{
|
|
41
|
-
"data-testid":
|
|
42
|
-
className: l(
|
|
43
|
-
children: a.map(({ state: i, text:
|
|
41
|
+
"data-testid": s(t, "data-testid", "sidebar-steps"),
|
|
42
|
+
className: l(n.Steps, s(t, "className")),
|
|
43
|
+
children: a.map(({ state: i, text: d }, r) => /* @__PURE__ */ b("div", { className: n.Step, "data-testid": "sidebar-step", children: [
|
|
44
44
|
/* @__PURE__ */ e(u, { state: i }),
|
|
45
|
-
/* @__PURE__ */ e(c, { tag: "span", weight: "medium", size: "body-small", color: i === "idle" ? "grey-400" : "text-primary", children:
|
|
46
|
-
] },
|
|
45
|
+
/* @__PURE__ */ e(c, { tag: "span", weight: "medium", size: "body-small", color: i === "idle" ? "grey-400" : "text-primary", children: d })
|
|
46
|
+
] }, r))
|
|
47
47
|
}
|
|
48
48
|
), R = ({ rows: a, ...t }) => {
|
|
49
|
-
const i = a.filter(([,
|
|
49
|
+
const i = a.filter(([, d]) => d.trim() !== "");
|
|
50
50
|
return i.length === 0 ? null : /* @__PURE__ */ e(
|
|
51
51
|
"div",
|
|
52
52
|
{
|
|
53
|
-
"data-testid":
|
|
54
|
-
className: l(
|
|
55
|
-
children: i.map(([
|
|
56
|
-
/* @__PURE__ */ e(c, { tag: "span", size: "body-small", color: "text-secondary", children:
|
|
57
|
-
/* @__PURE__ */ e(c, { tag: "span", size: "body-small", align: "right", children:
|
|
58
|
-
] }, `${
|
|
53
|
+
"data-testid": s(t, "data-testid", "sidebar-info"),
|
|
54
|
+
className: l(n.Info, s(t, "className")),
|
|
55
|
+
children: i.map(([d, r], o) => /* @__PURE__ */ b("div", { className: n.InfoRow, "data-testid": "sidebar-info-row", children: [
|
|
56
|
+
/* @__PURE__ */ e(c, { tag: "span", size: "body-small", color: "text-secondary", children: d }),
|
|
57
|
+
/* @__PURE__ */ e(c, { tag: "span", size: "body-small", align: "right", children: r })
|
|
58
|
+
] }, `${d}-${o}`))
|
|
59
59
|
}
|
|
60
60
|
);
|
|
61
|
-
}, j = ({ isOpen: a, title: t, data: i, button:
|
|
61
|
+
}, j = ({ isOpen: a, title: t, data: i, button: d, onClick: r, ...o }) => /* @__PURE__ */ e(
|
|
62
62
|
p,
|
|
63
63
|
{
|
|
64
64
|
name: "sidebar-user",
|
|
65
65
|
condition: a,
|
|
66
|
-
"data-testid":
|
|
67
|
-
className:
|
|
68
|
-
children: /* @__PURE__ */ e(f, { title: t, data: i, button:
|
|
66
|
+
"data-testid": s(o, "data-testid", "sidebar-user"),
|
|
67
|
+
className: s(o, "className"),
|
|
68
|
+
children: /* @__PURE__ */ e(f, { title: t, data: i, button: d, onClick: r })
|
|
69
69
|
}
|
|
70
70
|
), C = ({ isVisible: a, children: t, ...i }) => /* @__PURE__ */ e(
|
|
71
71
|
p,
|
|
72
72
|
{
|
|
73
73
|
name: "sidebar-submit",
|
|
74
74
|
condition: a,
|
|
75
|
-
"data-testid":
|
|
76
|
-
className:
|
|
77
|
-
children: /* @__PURE__ */ e("div", { className:
|
|
75
|
+
"data-testid": s(i, "data-testid", "sidebar-submit"),
|
|
76
|
+
className: s(i, "className"),
|
|
77
|
+
children: /* @__PURE__ */ e("div", { className: n.SidebarButton, children: t })
|
|
78
78
|
}
|
|
79
79
|
), L = (a) => /* @__PURE__ */ e(S, { ...a }), U = ({ title: a, lines: t, ...i }) => {
|
|
80
|
-
const
|
|
81
|
-
return /* @__PURE__ */ b("div", { "data-testid":
|
|
82
|
-
/* @__PURE__ */ e(c, { tag: "span", size: "body-small", color: "text-secondary", "data-testid": `${
|
|
83
|
-
t.map((
|
|
80
|
+
const d = s(i, "data-testid", "sidebar-timetable");
|
|
81
|
+
return /* @__PURE__ */ b("div", { "data-testid": d, className: l(n.Timetable, s(i, "className")), children: [
|
|
82
|
+
/* @__PURE__ */ e(c, { tag: "span", size: "body-small", color: "text-secondary", "data-testid": `${d}-title`, children: a }),
|
|
83
|
+
t.map((r, o) => /* @__PURE__ */ e(c, { tag: "span", size: "body-small", "data-testid": `${d}-line-${o}`, children: r }, o))
|
|
84
84
|
] });
|
|
85
|
-
}, P = () => /* @__PURE__ */ e(_, {}), F = ({ height: a, 768: t, 1024: i, 1200:
|
|
86
|
-
const
|
|
85
|
+
}, P = () => /* @__PURE__ */ e(_, {}), F = ({ height: a, 768: t, 1024: i, 1200: d, ...r }) => {
|
|
86
|
+
const o = {
|
|
87
87
|
"--rm-ui-sidebar-space-base": m(a),
|
|
88
88
|
...t !== void 0 ? { "--rm-ui-sidebar-space-768": m(t) } : {},
|
|
89
89
|
...i !== void 0 ? { "--rm-ui-sidebar-space-1024": m(i) } : {},
|
|
90
|
-
...
|
|
90
|
+
...d !== void 0 ? { "--rm-ui-sidebar-space-1200": m(d) } : {}
|
|
91
91
|
};
|
|
92
92
|
return /* @__PURE__ */ e(
|
|
93
93
|
"div",
|
|
94
94
|
{
|
|
95
|
-
"data-testid":
|
|
96
|
-
className: l(
|
|
97
|
-
style:
|
|
95
|
+
"data-testid": s(r, "data-testid", "sidebar-space"),
|
|
96
|
+
className: l(n.Space, s(r, "className")),
|
|
97
|
+
style: o
|
|
98
98
|
}
|
|
99
99
|
);
|
|
100
|
-
}, W = Object.assign(
|
|
100
|
+
}, W = Object.assign(w, {
|
|
101
101
|
Title: $,
|
|
102
102
|
Steps: z,
|
|
103
103
|
Info: R,
|
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
._Dropzone_14jbn_1{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:var(--rm-ui-padding-xs);width:100%;min-height:160px;padding:var(--rm-ui-padding-md);border:2px dashed var(--rm-ui-grey-300);border-radius:var(--rm-ui-border-radius-md, 8px);background-color:var(--rm-ui-grey-50);text-align:center;cursor:pointer;transition:border-color .12s ease,background-color .12s ease}._Dropzone_14jbn_1:hover,._Active_14jbn_21{border-color:var(--rm-ui-color-theme-primary);background-color:var(--rm-ui-color-background-primary, #fff)}._Dropzone_14jbn_1:focus-visible{outline:2px solid var(--rm-ui-color-focus);outline-offset:2px}._Disabled_14jbn_31{cursor:not-allowed;opacity:.5}._HiddenInput_14jbn_36{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}._Icon_14jbn_48{color:var(--rm-ui-color-theme-primary)}._Invitation_14jbn_52{font-size:var(--rm-ui-font-size-body);line-height:var(--rm-ui-line-height-body);color:var(--rm-ui-color-text-primary)}._HelpText_14jbn_58{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)}
|