@arthurzakharov/ui-kit 1.0.48 → 1.0.50
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/checkbox-BWTt8the.css +1 -0
- package/dist/assets/line-BuRLT6tk.css +1 -0
- package/dist/components/control/components/checkbox/checkbox.component.d.ts +1 -1
- package/dist/components/control/components/checkbox/checkbox.component.js +24 -24
- package/dist/components/control/components/radio/radio.component.d.ts +1 -1
- package/dist/components/control/components/radio/radio.component.js +1 -1
- package/dist/components/line/line.component.js +8 -0
- package/dist/components/sidebar/sidebar.component.d.ts +2 -2
- package/dist/components/sidebar/sidebar.component.js +11 -11
- package/dist/components/user-panel/user-panel.component.d.ts +7 -0
- package/dist/components/{sidebar/components/user/user.component.js → user-panel/user-panel.component.js} +3 -3
- package/dist/main.d.ts +2 -0
- package/dist/main.js +12 -8
- package/package.json +1 -1
- package/dist/assets/checkbox-ClSEKjSZ.css +0 -1
- package/dist/assets/line-Ci68fm_i.css +0 -1
- package/dist/components/sidebar/components/line/line.component.js +0 -8
- package/dist/components/sidebar/components/user/user.component.d.ts +0 -7
- /package/dist/assets/{user-rIZL2mJR.css → user-panel-rIZL2mJR.css} +0 -0
- /package/dist/components/{sidebar/components/line → line}/line.component.d.ts +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
._Checkbox_4ezrk_1{position:relative;display:inline-flex;flex-direction:row;align-items:flex-start;justify-content:flex-start;gap:var(--rm-ui-padding-xs)}._Checkbox_4ezrk_1:hover{cursor:pointer}._CheckboxChoice_4ezrk_14{position:relative;left:0;top:3px}._CheckboxContent_4ezrk_20{font-family:var(--rm-ui-font-family-regular),sans-serif;font-weight:var(--rm-ui-font-weight-regular);color:var(--rm-ui-color-text-primary)}._CheckboxContent_4ezrk_20 button{background-color:transparent;border:none;padding:0;font-family:inherit;font-weight:inherit;font-size:inherit;line-height:inherit;color:var(--rm-ui-color-link);outline-offset:2px}._CheckboxContent_4ezrk_20 button:hover{cursor:pointer;text-decoration:underline}._CheckboxContent_4ezrk_20 button:focus-visible{outline-color:var(--rm-ui-color-focus)}._CheckboxContentTextBody_4ezrk_47{font-size:var(--rm-ui-font-size-body);line-height:var(--rm-ui-line-height-body)}._CheckboxContentTextBodySmall_4ezrk_52{font-size:var(--rm-ui-font-size-body-small);line-height:var(--rm-ui-line-height-body-small)}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
._Line_4c8c2_1{margin:var(--rm-ui-padding-md) 0}._LineElement_4c8c2_5{margin:0;border:1px solid var(--rm-ui-sidebar-line-color)}@media screen and (min-width:1200px){._Line_4c8c2_1{margin:var(--rm-ui-padding-lg) 0}}
|
|
@@ -3,7 +3,7 @@ import { Interactive, State } from '../../types';
|
|
|
3
3
|
import { ChoiceProps } from '../choice/choice.component';
|
|
4
4
|
export interface CheckboxProps extends PropsWithChildren, Interactive<boolean> {
|
|
5
5
|
state?: State;
|
|
6
|
-
|
|
6
|
+
icon?: ChoiceProps['size'];
|
|
7
7
|
text?: 'body' | 'body-small';
|
|
8
8
|
}
|
|
9
9
|
export declare const Checkbox: (props: CheckboxProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -2,34 +2,34 @@ import { jsxs as g, jsx as c } from "react/jsx-runtime";
|
|
|
2
2
|
import T from "clsx";
|
|
3
3
|
import { useToggle as a } from "usehooks-ts";
|
|
4
4
|
import { Choice as v } from "../choice/choice.component.js";
|
|
5
|
-
import { HiddenInput as
|
|
6
|
-
import { Converter as
|
|
7
|
-
import '../../../../assets/checkbox-
|
|
8
|
-
Checkbox:
|
|
9
|
-
CheckboxChoice:
|
|
10
|
-
CheckboxContent:
|
|
11
|
-
CheckboxContentTextBody:
|
|
12
|
-
CheckboxContentTextBodySmall:
|
|
13
|
-
},
|
|
5
|
+
import { HiddenInput as z } from "../hidden-input/hidden-input.component.js";
|
|
6
|
+
import { Converter as F } from "../../../../utils/converter/converter.js";
|
|
7
|
+
import '../../../../assets/checkbox-BWTt8the.css';const S = "_Checkbox_4ezrk_1", I = "_CheckboxChoice_4ezrk_14", N = "_CheckboxContent_4ezrk_20", j = "_CheckboxContentTextBody_4ezrk_47", H = "_CheckboxContentTextBodySmall_4ezrk_52", t = {
|
|
8
|
+
Checkbox: S,
|
|
9
|
+
CheckboxChoice: I,
|
|
10
|
+
CheckboxContent: N,
|
|
11
|
+
CheckboxContentTextBody: j,
|
|
12
|
+
CheckboxContentTextBodySmall: H
|
|
13
|
+
}, q = (k) => {
|
|
14
14
|
const {
|
|
15
|
-
children:
|
|
16
|
-
state:
|
|
17
|
-
|
|
15
|
+
children: i,
|
|
16
|
+
state: b = "idle",
|
|
17
|
+
icon: d = "md",
|
|
18
18
|
text: C = "body-small",
|
|
19
19
|
id: o,
|
|
20
20
|
value: n,
|
|
21
21
|
disabled: e = !1,
|
|
22
|
-
onChange:
|
|
22
|
+
onChange: r,
|
|
23
23
|
onFocus: u,
|
|
24
24
|
onBlur: m
|
|
25
|
-
} =
|
|
26
|
-
e || s || (l.preventDefault(),
|
|
25
|
+
} = k, [s, h] = a(!1), [p, x] = a(!1), f = (l) => {
|
|
26
|
+
e || s || (l.preventDefault(), r(!n, o));
|
|
27
27
|
}, _ = (l) => {
|
|
28
|
-
e || (l.stopPropagation(),
|
|
28
|
+
e || (l.stopPropagation(), r(!n, o));
|
|
29
29
|
}, y = () => {
|
|
30
|
-
e || (
|
|
30
|
+
e || (h(), u?.call(null, o));
|
|
31
31
|
}, B = () => {
|
|
32
|
-
e || (
|
|
32
|
+
e || (h(), m?.call(null, o));
|
|
33
33
|
};
|
|
34
34
|
return /* @__PURE__ */ g(
|
|
35
35
|
"label",
|
|
@@ -43,12 +43,12 @@ import '../../../../assets/checkbox-ClSEKjSZ.css';const F = "_Checkbox_1hqw9_1",
|
|
|
43
43
|
onMouseLeave: () => x(),
|
|
44
44
|
children: [
|
|
45
45
|
/* @__PURE__ */ c(
|
|
46
|
-
|
|
46
|
+
z,
|
|
47
47
|
{
|
|
48
48
|
type: "checkbox",
|
|
49
49
|
id: o,
|
|
50
50
|
name: o,
|
|
51
|
-
value:
|
|
51
|
+
value: F.Boolean.ToBooleanString(n),
|
|
52
52
|
checked: n,
|
|
53
53
|
disabled: e,
|
|
54
54
|
onChange: _
|
|
@@ -58,8 +58,8 @@ import '../../../../assets/checkbox-ClSEKjSZ.css';const F = "_Checkbox_1hqw9_1",
|
|
|
58
58
|
v,
|
|
59
59
|
{
|
|
60
60
|
type: "checkbox",
|
|
61
|
-
size:
|
|
62
|
-
state:
|
|
61
|
+
size: d,
|
|
62
|
+
state: b,
|
|
63
63
|
checked: n,
|
|
64
64
|
focused: s,
|
|
65
65
|
hovered: p,
|
|
@@ -73,7 +73,7 @@ import '../../../../assets/checkbox-ClSEKjSZ.css';const F = "_Checkbox_1hqw9_1",
|
|
|
73
73
|
[t.CheckboxContentTextBody]: C === "body",
|
|
74
74
|
[t.CheckboxContentTextBodySmall]: C === "body-small"
|
|
75
75
|
}),
|
|
76
|
-
children:
|
|
76
|
+
children: i
|
|
77
77
|
}
|
|
78
78
|
)
|
|
79
79
|
]
|
|
@@ -81,5 +81,5 @@ import '../../../../assets/checkbox-ClSEKjSZ.css';const F = "_Checkbox_1hqw9_1",
|
|
|
81
81
|
);
|
|
82
82
|
};
|
|
83
83
|
export {
|
|
84
|
-
|
|
84
|
+
q as Checkbox
|
|
85
85
|
};
|
|
@@ -4,6 +4,6 @@ export interface RadioProps extends Interactive<string> {
|
|
|
4
4
|
orientation: 'horizontal' | 'vertical';
|
|
5
5
|
choices: RadioChoice[];
|
|
6
6
|
state?: State;
|
|
7
|
-
|
|
7
|
+
icon?: ChoiceProps['size'];
|
|
8
8
|
}
|
|
9
9
|
export declare const Radio: (props: RadioProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -11,7 +11,7 @@ import '../../../../assets/radio-BkD7BKk0.css';const w = "_Radio_1wc8m_1", C = "
|
|
|
11
11
|
RadioOrientationVertical: V,
|
|
12
12
|
RadioLabel: I
|
|
13
13
|
}, B = (l) => {
|
|
14
|
-
const { orientation: r, choices: s, state: m = "idle",
|
|
14
|
+
const { orientation: r, choices: s, state: m = "idle", icon: c = "md", id: t, value: R, disabled: d = !1, onChange: p } = l;
|
|
15
15
|
return /* @__PURE__ */ o(
|
|
16
16
|
"div",
|
|
17
17
|
{
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import '../../assets/line-BuRLT6tk.css';const c = "_Line_4c8c2_1", i = "_LineElement_4c8c2_5", n = {
|
|
3
|
+
Line: c,
|
|
4
|
+
LineElement: i
|
|
5
|
+
}, s = () => /* @__PURE__ */ e("div", { className: n.Line, children: /* @__PURE__ */ e("hr", { className: n.LineElement }) });
|
|
6
|
+
export {
|
|
7
|
+
s as Line
|
|
8
|
+
};
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { PropsWithChildren } from 'react';
|
|
2
|
+
import { UserPanelProps } from '../user-panel/user-panel.component';
|
|
2
3
|
import { CertificationsProps } from '../certifications/certifications.component';
|
|
3
4
|
import { InfoProps } from './components/info/info.component';
|
|
4
5
|
import { StepsProps } from './components/steps/steps.component';
|
|
5
|
-
import { UserProps } from './components/user/user.component';
|
|
6
6
|
export interface SidebarProps extends PropsWithChildren {
|
|
7
7
|
isButtonVisible: boolean;
|
|
8
8
|
isUserOpen: boolean;
|
|
9
9
|
title: string;
|
|
10
10
|
steps: StepsProps['data'];
|
|
11
11
|
info: InfoProps['data'];
|
|
12
|
-
user:
|
|
12
|
+
user: UserPanelProps;
|
|
13
13
|
certifications: CertificationsProps['icons'];
|
|
14
14
|
}
|
|
15
15
|
export declare const Sidebar: (props: SidebarProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { jsxs as r, jsx as t } from "react/jsx-runtime";
|
|
2
2
|
import { Animation as o } from "../animation/animation.component.js";
|
|
3
|
+
import { Line as e } from "../line/line.component.js";
|
|
3
4
|
import { Text as p } from "../text/text.component.js";
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import { Steps as
|
|
9
|
-
import { User as T } from "./components/user/user.component.js";
|
|
5
|
+
import { UserPanel as S } from "../user-panel/user-panel.component.js";
|
|
6
|
+
import { Certifications as u } from "../certifications/certifications.component.js";
|
|
7
|
+
import { Board as h } from "./components/board/board.component.js";
|
|
8
|
+
import { Info as B } from "./components/info/info.component.js";
|
|
9
|
+
import { Steps as T } from "./components/steps/steps.component.js";
|
|
10
10
|
import '../../assets/sidebar-B3KPFpFU.css';const _ = "_SidebarTitle_1sscs_1", x = "_SidebarButton_1sscs_2", n = {
|
|
11
11
|
SidebarTitle: _,
|
|
12
12
|
SidebarButton: x
|
|
@@ -21,18 +21,18 @@ import '../../assets/sidebar-B3KPFpFU.css';const _ = "_SidebarTitle_1sscs_1", x
|
|
|
21
21
|
certifications: f = [],
|
|
22
22
|
user: i
|
|
23
23
|
} = a;
|
|
24
|
-
return /* @__PURE__ */ r(
|
|
24
|
+
return /* @__PURE__ */ r(h, { children: [
|
|
25
25
|
/* @__PURE__ */ t("div", { className: n.SidebarTitle, children: /* @__PURE__ */ t(p.SidebarTitle, { children: l }) }),
|
|
26
|
-
/* @__PURE__ */ t(
|
|
26
|
+
/* @__PURE__ */ t(T, { data: m }),
|
|
27
27
|
/* @__PURE__ */ t(e, {}),
|
|
28
|
-
/* @__PURE__ */ t(
|
|
28
|
+
/* @__PURE__ */ t(B, { data: b }),
|
|
29
29
|
/* @__PURE__ */ t(e, {}),
|
|
30
30
|
/* @__PURE__ */ r(o.FadeScale, { name: "user", condition: c, children: [
|
|
31
|
-
/* @__PURE__ */ t(
|
|
31
|
+
/* @__PURE__ */ t(S, { title: i.title, button: i.button, data: i.data, onClick: i.onClick }),
|
|
32
32
|
/* @__PURE__ */ t(e, {})
|
|
33
33
|
] }),
|
|
34
34
|
/* @__PURE__ */ t(o.FadeScale, { name: "button", condition: d, duration: 0.2, delay: 0.1, children: /* @__PURE__ */ t("div", { className: n.SidebarButton, children: s }) }),
|
|
35
|
-
/* @__PURE__ */ t(
|
|
35
|
+
/* @__PURE__ */ t(u, { icons: f })
|
|
36
36
|
] });
|
|
37
37
|
};
|
|
38
38
|
export {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsxs as n, jsx as s } from "react/jsx-runtime";
|
|
2
2
|
import { Pencil as u } from "lucide-react";
|
|
3
|
-
import '
|
|
3
|
+
import '../../assets/user-panel-rIZL2mJR.css';const i = "_User_1efkp_1", f = "_UserHead_1efkp_9", p = "_UserTitle_1efkp_17", d = "_UserButton_1efkp_25", m = "_UserButtonText_1efkp_42", I = "_UserButtonIcon_1efkp_50", B = "_UserInfo_1efkp_57", k = "_UserInfoRaw_1efkp_69", e = {
|
|
4
4
|
User: i,
|
|
5
5
|
UserHead: f,
|
|
6
6
|
UserTitle: p,
|
|
@@ -10,7 +10,7 @@ import '../../../../assets/user-rIZL2mJR.css';const i = "_User_1efkp_1", f = "_U
|
|
|
10
10
|
UserInfo: B,
|
|
11
11
|
UserInfoRaw: k
|
|
12
12
|
}, N = (r) => {
|
|
13
|
-
const { title: o = "Ihre Angaben", button: c = "
|
|
13
|
+
const { title: o = "Ihre Angaben", button: c = "Ändern", data: a = [], onClick: U } = r, l = (t) => {
|
|
14
14
|
t.preventDefault(), t.currentTarget.blur(), U();
|
|
15
15
|
};
|
|
16
16
|
return /* @__PURE__ */ n("div", { className: e.User, children: [
|
|
@@ -25,5 +25,5 @@ import '../../../../assets/user-rIZL2mJR.css';const i = "_User_1efkp_1", f = "_U
|
|
|
25
25
|
] });
|
|
26
26
|
};
|
|
27
27
|
export {
|
|
28
|
-
N as
|
|
28
|
+
N as UserPanel
|
|
29
29
|
};
|
package/dist/main.d.ts
CHANGED
|
@@ -5,8 +5,10 @@ export { Footer, type FooterProps } from './components/footer/footer.component';
|
|
|
5
5
|
export { Header, type HeaderProps } from './components/header/header.component';
|
|
6
6
|
export { InfoPanel, type InfoPanelProps } from './components/info-panel/info-panel.component';
|
|
7
7
|
export { Layout, type LayoutProps } from './components/layout/layout.component';
|
|
8
|
+
export { Line } from './components/line/line.component';
|
|
8
9
|
export { Loader, type LoaderProps } from './components/loader/loader.component';
|
|
9
10
|
export { LoadingBlock } from './components/loading-block/loading-block.component';
|
|
10
11
|
export { NotFound, type NotFoundProps } from './components/not-found/not-found.component';
|
|
11
12
|
export { Sidebar, type SidebarProps } from './components/sidebar/sidebar.component';
|
|
12
13
|
export { Text } from './components/text/text.component';
|
|
14
|
+
export { UserPanel, type UserPanelProps } from './components/user-panel/user-panel.component';
|
package/dist/main.js
CHANGED
|
@@ -1,26 +1,30 @@
|
|
|
1
1
|
import { Animation as e } from "./components/animation/animation.component.js";
|
|
2
2
|
import { Certifications as f } from "./components/certifications/certifications.component.js";
|
|
3
3
|
import { Control as x } from "./components/control/control.component.js";
|
|
4
|
-
import { Footer as
|
|
4
|
+
import { Footer as n } from "./components/footer/footer.component.js";
|
|
5
5
|
import { Header as i } from "./components/header/header.component.js";
|
|
6
6
|
import { InfoPanel as l } from "./components/info-panel/info-panel.component.js";
|
|
7
7
|
import { Layout as c } from "./components/layout/layout.component.js";
|
|
8
|
-
import {
|
|
8
|
+
import { Line as u } from "./components/line/line.component.js";
|
|
9
|
+
import { Loader as F } from "./components/loader/loader.component.js";
|
|
9
10
|
import { LoadingBlock as b } from "./components/loading-block/loading-block.component.js";
|
|
10
11
|
import { NotFound as k } from "./components/not-found/not-found.component.js";
|
|
11
|
-
import { Sidebar as
|
|
12
|
-
import { Text as
|
|
12
|
+
import { Sidebar as A } from "./components/sidebar/sidebar.component.js";
|
|
13
|
+
import { Text as H } from "./components/text/text.component.js";
|
|
14
|
+
import { UserPanel as N } from "./components/user-panel/user-panel.component.js";
|
|
13
15
|
import './assets/main-C3Esf5IV.css';export {
|
|
14
16
|
e as Animation,
|
|
15
17
|
f as Certifications,
|
|
16
18
|
x as Control,
|
|
17
|
-
|
|
19
|
+
n as Footer,
|
|
18
20
|
i as Header,
|
|
19
21
|
l as InfoPanel,
|
|
20
22
|
c as Layout,
|
|
21
|
-
|
|
23
|
+
u as Line,
|
|
24
|
+
F as Loader,
|
|
22
25
|
b as LoadingBlock,
|
|
23
26
|
k as NotFound,
|
|
24
|
-
|
|
25
|
-
|
|
27
|
+
A as Sidebar,
|
|
28
|
+
H as Text,
|
|
29
|
+
N as UserPanel
|
|
26
30
|
};
|
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
._Checkbox_1hqw9_1{position:relative;display:inline-flex;flex-direction:row;align-items:flex-start;justify-content:flex-start;gap:var(--rm-ui-padding-xs)}._Checkbox_1hqw9_1:hover{cursor:pointer}._CheckboxChoice_1hqw9_14{position:relative;left:0;top:3px}._CheckboxContent_1hqw9_20{font-family:var(--rm-ui-font-family-regular),sans-serif;font-weight:var(--rm-ui-font-weight-regular);color:var(--rm-ui-color-text-primary)}._CheckboxContent_1hqw9_20 button{background-color:transparent;border:none;padding:0;font-family:inherit;font-weight:inherit;font-size:inherit;line-height:inherit;color:var(--rm-ui-color-link)}._CheckboxContent_1hqw9_20 button:hover{cursor:pointer;text-decoration:underline;outline-offset:2px}._CheckboxContent_1hqw9_20 button:focus-visible{outline-color:var(--rm-ui-color-focus)}._CheckboxContentTextBody_1hqw9_47{font-size:var(--rm-ui-font-size-body);line-height:var(--rm-ui-line-height-body)}._CheckboxContentTextBodySmall_1hqw9_52{font-size:var(--rm-ui-font-size-body-small);line-height:var(--rm-ui-line-height-body-small)}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
._Line_dba3k_1{padding:var(--rm-ui-padding-md) 0}._LineElement_dba3k_5{margin:0;border:1px solid var(--rm-ui-sidebar-line-color)}@media screen and (min-width:1200px){._Line_dba3k_1{padding:var(--rm-ui-padding-lg) 0}}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { jsx as e } from "react/jsx-runtime";
|
|
2
|
-
import '../../../../assets/line-Ci68fm_i.css';const i = "_Line_dba3k_1", t = "_LineElement_dba3k_5", n = {
|
|
3
|
-
Line: i,
|
|
4
|
-
LineElement: t
|
|
5
|
-
}, L = () => /* @__PURE__ */ e("div", { className: n.Line, children: /* @__PURE__ */ e("hr", { className: n.LineElement }) });
|
|
6
|
-
export {
|
|
7
|
-
L as Line
|
|
8
|
-
};
|
|
File without changes
|
|
File without changes
|