@arthurzakharov/ui-kit 1.7.1 → 1.7.3
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/button-BjcertIq.css +1 -0
- package/dist/assets/dialog-DPI2Lfcq.css +1 -0
- package/dist/components/dialog/dialog.component.d.ts +1 -1
- package/dist/components/dialog/dialog.component.js +858 -856
- package/dist/components/text/text.component.js +7 -7
- package/dist/controls/buttons/button/button.component.js +32 -32
- package/package.json +1 -1
- package/dist/assets/button-quDWRhSN.css +0 -1
- package/dist/assets/dialog-8uCE6NKB.css +0 -1
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { jsx as G } from "react/jsx-runtime";
|
|
2
2
|
import h from "clsx";
|
|
3
3
|
import { Content as L } from "../../utils/content/content.component.js";
|
|
4
|
-
import '../../assets/text-Bhvd-u-V.css';const x = "_Lined_553v9_1",
|
|
4
|
+
import '../../assets/text-Bhvd-u-V.css';const x = "_Lined_553v9_1", S = "_Left_553v9_7", u = "_Center_553v9_11", b = "_Right_553v9_15", f = "_Light_553v9_21", T = "_Regular_553v9_25", B = "_Medium_553v9_29", H = "_Bold_553v9_33", w = "_BodyExtraSmall_553v9_39", P = "_BodySmall_553v9_44", R = "_Body_553v9_39", z = "_BodyLarge_553v9_54", A = "_HL1_553v9_59", E = "_HL2_553v9_64", C = "_HL3_553v9_69", k = "_HL4_553v9_74", M = "_HL5_553v9_79", F = "_TextPrimary_553v9_86", $ = "_TextSecondary_553v9_90", N = "_AccentPrimary_553v9_94", j = "_AccentSecondary_553v9_98", W = "_ThemePrimary_553v9_102", q = "_ThemeSecondary_553v9_106", D = "_Success_553v9_114", I = "_Focus_553v9_118", J = "_Link_553v9_122", K = "_Grey950_553v9_126", O = "_Grey900_553v9_130", Q = "_Grey800_553v9_134", U = "_Grey700_553v9_138", V = "_Grey600_553v9_142", X = "_Grey500_553v9_146", Y = "_Grey400_553v9_150", Z = "_Grey300_553v9_154", ee = "_Grey200_553v9_158", re = "_Grey100_553v9_162", te = "_Grey50_553v9_146", e = {
|
|
5
5
|
Lined: x,
|
|
6
|
-
Left:
|
|
7
|
-
Center:
|
|
8
|
-
Right:
|
|
9
|
-
Light:
|
|
10
|
-
Regular:
|
|
6
|
+
Left: S,
|
|
7
|
+
Center: u,
|
|
8
|
+
Right: b,
|
|
9
|
+
Light: f,
|
|
10
|
+
Regular: T,
|
|
11
11
|
Medium: B,
|
|
12
12
|
Bold: H,
|
|
13
13
|
BodyExtraSmall: w,
|
|
@@ -44,7 +44,7 @@ import '../../assets/text-Bhvd-u-V.css';const x = "_Lined_553v9_1", u = "_Left_5
|
|
|
44
44
|
"page-info": { tag: "p", weight: "light", size: "body", color: "text-secondary" },
|
|
45
45
|
"page-subtitle": { tag: "h6", weight: "regular", size: "body", color: "text-primary" },
|
|
46
46
|
"page-title": { tag: "h1", weight: "bold", size: "hl1", color: "text-primary" },
|
|
47
|
-
"sidebar-title": { tag: "h3", weight: "
|
|
47
|
+
"sidebar-title": { tag: "h3", weight: "bold", size: "hl3", color: "text-primary" },
|
|
48
48
|
"step-title": { tag: "h2", weight: "bold", size: "hl4", color: "text-primary" }
|
|
49
49
|
}, _e = ({
|
|
50
50
|
children: m,
|
|
@@ -1,45 +1,45 @@
|
|
|
1
1
|
import { jsxs as s, jsx as e } from "react/jsx-runtime";
|
|
2
2
|
import L from "clsx";
|
|
3
3
|
import { FadeScale as h } from "../../../animations/fade-scale/fade-scale.component.js";
|
|
4
|
-
import { Loader as
|
|
5
|
-
import { Content as
|
|
6
|
-
import { withControl as
|
|
7
|
-
import '../../../assets/button-
|
|
8
|
-
Button:
|
|
9
|
-
SM:
|
|
10
|
-
LG:
|
|
11
|
-
Tertiary:
|
|
12
|
-
Text:
|
|
13
|
-
MD:
|
|
14
|
-
Primary:
|
|
15
|
-
Info:
|
|
16
|
-
Secondary:
|
|
17
|
-
Loading:
|
|
18
|
-
FullWidth:
|
|
19
|
-
Content:
|
|
20
|
-
Loader:
|
|
4
|
+
import { Loader as x } from "../../../components/loader/loader.component.js";
|
|
5
|
+
import { Content as M } from "../../../utils/content/content.component.js";
|
|
6
|
+
import { withControl as S, baseProps as c } from "../../../utils/functions/functions.util.js";
|
|
7
|
+
import '../../../assets/button-BjcertIq.css';const C = "_Button_2uv09_1", T = "_SM_2uv09_19", B = "_LG_2uv09_24", F = "_Tertiary_2uv09_24", N = "_Text_2uv09_28", b = "_MD_2uv09_34", P = "_Primary_2uv09_62", D = "_Info_2uv09_71", G = "_Secondary_2uv09_75", I = "_Loading_2uv09_111", W = "_FullWidth_2uv09_119", w = "_Content_2uv09_123", $ = "_Loader_2uv09_140", t = {
|
|
8
|
+
Button: C,
|
|
9
|
+
SM: T,
|
|
10
|
+
LG: B,
|
|
11
|
+
Tertiary: F,
|
|
12
|
+
Text: N,
|
|
13
|
+
MD: b,
|
|
14
|
+
Primary: P,
|
|
15
|
+
Info: D,
|
|
16
|
+
Secondary: G,
|
|
17
|
+
Loading: I,
|
|
18
|
+
FullWidth: W,
|
|
19
|
+
Content: w,
|
|
20
|
+
Loader: $
|
|
21
21
|
}, H = ({
|
|
22
|
-
text:
|
|
22
|
+
text: _,
|
|
23
23
|
color: r = "primary",
|
|
24
24
|
size: o = "md",
|
|
25
|
-
type:
|
|
26
|
-
disabled:
|
|
25
|
+
type: i = "button",
|
|
26
|
+
disabled: u = !1,
|
|
27
27
|
info: d = "",
|
|
28
28
|
fullWidth: m = !1,
|
|
29
29
|
loading: n = !1,
|
|
30
|
-
preventDefault:
|
|
30
|
+
preventDefault: l = !1,
|
|
31
31
|
blurAfterClick: y = !1,
|
|
32
|
-
onClick:
|
|
32
|
+
onClick: f = () => {
|
|
33
33
|
},
|
|
34
|
-
onFocus:
|
|
35
|
-
onBlur:
|
|
34
|
+
onFocus: p,
|
|
35
|
+
onBlur: v,
|
|
36
36
|
...a
|
|
37
37
|
}) => /* @__PURE__ */ s(
|
|
38
38
|
"button",
|
|
39
39
|
{
|
|
40
40
|
"data-testid": c(a, "data-testid", "button"),
|
|
41
|
-
type:
|
|
42
|
-
disabled:
|
|
41
|
+
type: i,
|
|
42
|
+
disabled: u || n,
|
|
43
43
|
className: L(t.Button, c(a, "className"), {
|
|
44
44
|
[t.SM]: o === "sm",
|
|
45
45
|
[t.MD]: o === "md",
|
|
@@ -50,12 +50,12 @@ import '../../../assets/button-quDWRhSN.css';const T = "_Button_12lx1_1", B = "_
|
|
|
50
50
|
[t.FullWidth]: m,
|
|
51
51
|
[t.Loading]: n
|
|
52
52
|
}),
|
|
53
|
-
onClick:
|
|
54
|
-
onFocus: () =>
|
|
55
|
-
onBlur: () =>
|
|
53
|
+
onClick: S(f, { prevent: l, blur: y }),
|
|
54
|
+
onFocus: () => p?.(),
|
|
55
|
+
onBlur: () => v?.(),
|
|
56
56
|
children: [
|
|
57
57
|
n && /* @__PURE__ */ e(
|
|
58
|
-
|
|
58
|
+
x,
|
|
59
59
|
{
|
|
60
60
|
size: "xs",
|
|
61
61
|
color: (() => {
|
|
@@ -72,8 +72,8 @@ import '../../../assets/button-quDWRhSN.css';const T = "_Button_12lx1_1", B = "_
|
|
|
72
72
|
}
|
|
73
73
|
),
|
|
74
74
|
/* @__PURE__ */ s(h, { name: "content", keepMount: !0, condition: !n, className: t.Content, children: [
|
|
75
|
-
/* @__PURE__ */ e("span", { className: t.Text, children:
|
|
76
|
-
/* @__PURE__ */ e(
|
|
75
|
+
/* @__PURE__ */ e("span", { className: t.Text, children: _ }),
|
|
76
|
+
/* @__PURE__ */ e(M, { className: t.Info, children: d })
|
|
77
77
|
] })
|
|
78
78
|
]
|
|
79
79
|
}
|
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
._Button_12lx1_1{position:relative;box-sizing:border-box;border:none;display:flex;flex-direction:column;align-items:center;justify-content:center;transition:border-color var(--rm-ui-amimation-speed-primary) var(--rm-ui-amimation-cubic-primary),background-color var(--rm-ui-amimation-speed-primary) var(--rm-ui-amimation-cubic-primary)}._SM_12lx1_14{border-radius:var(--rm-ui-border-radius-sm);padding:var(--rm-ui-padding-xs) var(--rm-ui-padding-sm)}._LG_12lx1_19._Tertiary_12lx1_19{padding:calc(var(--rm-ui-padding-xs) - 1px) calc(var(--rm-ui-padding-sm) - 1px)}._SM_12lx1_14 ._Text_12lx1_23{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)}._MD_12lx1_29{border-radius:var(--rm-ui-border-radius-md);padding:var(--rm-ui-padding-sm) var(--rm-ui-padding-lg)}._MD_12lx1_29._Tertiary_12lx1_19{padding:calc(var(--rm-ui-padding-sm) - 1px) calc(var(--rm-ui-padding-lg) - 1px)}._LG_12lx1_19{border-radius:var(--rm-ui-border-radius-md);padding:var(--rm-ui-padding-sm) var(--rm-ui-padding-lg)}._LG_12lx1_19._Tertiary_12lx1_19{padding:calc(var(--rm-ui-padding-sm) - 1px) calc(var(--rm-ui-padding-lg) - 1px)}._MD_12lx1_29 ._Text_12lx1_23{font-size:var(--rm-ui-font-size-body);line-height:var(--rm-ui-line-height-body)}._LG_12lx1_19 ._Text_12lx1_23{font-size:var(--rm-ui-font-size-body-large);line-height:var(--rm-ui-line-height-body-large)}._Primary_12lx1_57{background-color:var(--rm-ui-next-btn-bg)}._Primary_12lx1_57:hover{background-color:var(--rm-ui-next-btn-bg-hover)}._Primary_12lx1_57 ._Text_12lx1_23,._Primary_12lx1_57 ._Info_12lx1_66{color:#fff}._Secondary_12lx1_70{border:1px solid transparent;background-color:transparent}._Secondary_12lx1_70:hover{border-color:var(--rm-ui-grey-400)}._Secondary_12lx1_70:hover ._Text_12lx1_23{color:var(--rm-ui-grey-400);border-color:var(--rm-ui-grey-400)}._Secondary_12lx1_70 ._Text_12lx1_23,._Secondary_12lx1_70 ._Info_12lx1_66{color:var(--rm-ui-color-text-secondary)}._Tertiary_12lx1_19{border:1px solid var(--rm-ui-grey-300);background-color:transparent}._Tertiary_12lx1_19:hover{border-color:var(--rm-ui-grey-200)}._Tertiary_12lx1_19:hover ._Text_12lx1_23{color:var(--rm-ui-grey-700)}._Tertiary_12lx1_19 ._Text_12lx1_23,._Tertiary_12lx1_19 ._Info_12lx1_66{color:var(--rm-ui-color-text-primary)}._Button_12lx1_1:not(._Loading_12lx1_106):not(:disabled):hover{cursor:pointer}._Button_12lx1_1:focus{outline-color:var(--rm-ui-color-focus)}._FullWidth_12lx1_114{width:100%}._Content_12lx1_118{display:flex;flex-direction:column}._Info_12lx1_66{flex-basis:100%;font-weight:var(--rm-ui-font-weight-regular);font-size:var(--rm-ui-font-size-body-small);line-height:calc(var(--rm-ui-line-height-body-small) - 2px)}._Text_12lx1_23{font-weight:var(--rm-ui-font-weight-medium);transition:color var(--rm-ui-amimation-speed-primary) var(--rm-ui-amimation-cubic-primary)}._Loader_12lx1_135{position:absolute}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
._Backdrop_1y4te_1{--backdrop-padding: 115px;position:fixed;z-index:1000000;inset:0;background-color:#000000b3;display:flex;flex-direction:row;padding-top:var(--backdrop-padding)}._BackdropSizeFull_1y4te_15 ._Dialog_1y4te_15{flex-basis:100%}._BackdropSizeFull_1y4te_15 ._DialogContent_1y4te_19{overflow:initial;max-height:initial;padding-right:initial;margin-right:initial}._BackdropPositionCenter_1y4te_26,._BackdropPositionTopCenter_1y4te_27{align-items:flex-end;justify-content:center}._Dialog_1y4te_15{flex-basis:580px;position:relative;z-index:1;background-color:var(--rm-ui-content-bg);border-top-left-radius:var(--rm-ui-border-radius-xl);border-top-right-radius:var(--rm-ui-border-radius-xl);padding:var(--rm-ui-padding-lg) var(--rm-ui-padding-lg)}._DialogContent_1y4te_19{overflow:auto;max-height:calc(100vh - var(--backdrop-padding) - var(--rm-ui-padding-xl) * 2);padding-right:10px;margin-right:-10px}._DialogCloseButton_1y4te_49{position:absolute;z-index:100;top:12px;right:10px;display:flex;border-radius:4px;border:none;padding:2px;background-color:transparent}._DialogCloseButton_1y4te_49:hover{cursor:pointer}._DialogCloseButton_1y4te_49:focus-visible{outline:2px solid var(--rm-ui-color-focus)}._DialogCloseButtonIcon_1y4te_69{width:24px;height:24px;stroke:var(--rm-ui-color-text-secondary)}@media screen and (min-width:768px){._BackdropSizeOneThird_1y4te_76 ._Dialog_1y4te_15{flex-basis:33.33%}._BackdropSizeHalf_1y4te_80 ._Dialog_1y4te_15{flex-basis:50%}._BackdropSizeTwoThird_1y4te_84 ._Dialog_1y4te_15{flex-basis:66.66%}._BackdropSizeFull_1y4te_15 ._Dialog_1y4te_15{flex-basis:initial}._BackdropPositionCenter_1y4te_26{align-items:center}._BackdropPositionTopCenter_1y4te_27{align-items:flex-start;padding-top:115px;padding-bottom:115px}._DialogContent_1y4te_19{max-height:calc(100vh - var(--backdrop-padding) * 2 - var(--rm-ui-padding-xxl) * 2)}._DialogCloseButton_1y4te_49{top:26px;right:18px}._Dialog_1y4te_15{border-radius:var(--rm-ui-border-radius-lg);padding:var(--rm-ui-padding-xxl)}}
|