@arthurzakharov/ui-kit 2.2.0 → 2.4.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
+ ._Button_14or2_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)}._Button_14or2_1:disabled{cursor:not-allowed;opacity:.33}._Button_14or2_1._SM_14or2_19{border-radius:var(--rm-ui-border-radius-sm);padding:var(--rm-ui-padding-xs) var(--rm-ui-padding-sm)}._Button_14or2_1._LG_14or2_24._Tertiary_14or2_24{padding:calc(var(--rm-ui-padding-xs) - 1px) calc(var(--rm-ui-padding-sm) - 1px)}._Button_14or2_1._SM_14or2_19 ._Text_14or2_28{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)}._Button_14or2_1._MD_14or2_34{border-radius:var(--rm-ui-border-radius-md);padding:var(--rm-ui-padding-sm) var(--rm-ui-padding-lg)}._Button_14or2_1._MD_14or2_34._Tertiary_14or2_24{padding:calc(var(--rm-ui-padding-sm) - 1px) calc(var(--rm-ui-padding-lg) - 1px)}._Button_14or2_1._LG_14or2_24{border-radius:var(--rm-ui-border-radius-md);padding:var(--rm-ui-padding-sm) var(--rm-ui-padding-lg)}._Button_14or2_1._LG_14or2_24._Tertiary_14or2_24{padding:calc(var(--rm-ui-padding-sm) - 1px) calc(var(--rm-ui-padding-lg) - 1px)}._Button_14or2_1._MD_14or2_34 ._Text_14or2_28{font-size:var(--rm-ui-font-size-body);line-height:var(--rm-ui-line-height-body)}._Button_14or2_1._LG_14or2_24 ._Text_14or2_28{font-size:var(--rm-ui-font-size-body-large);line-height:1.2}._Button_14or2_1._Primary_14or2_62{background-color:var(--rm-ui-next-btn-bg)}._Button_14or2_1._Primary_14or2_62:hover{background-color:var(--rm-ui-next-btn-bg-hover)}._Button_14or2_1._Primary_14or2_62 ._Text_14or2_28,._Button_14or2_1._Primary_14or2_62 ._Info_14or2_71{color:#fff}._Button_14or2_1._Secondary_14or2_75{border:1px solid transparent;background-color:transparent}._Button_14or2_1._Secondary_14or2_75:hover{border-color:var(--rm-ui-grey-400)}._Button_14or2_1._Secondary_14or2_75:hover ._Text_14or2_28{color:var(--rm-ui-grey-400);border-color:var(--rm-ui-grey-400)}._Button_14or2_1._Secondary_14or2_75 ._Text_14or2_28,._Button_14or2_1._Secondary_14or2_75 ._Info_14or2_71{color:var(--rm-ui-color-text-secondary)}._Button_14or2_1._Tertiary_14or2_24{border:1px solid var(--rm-ui-grey-300);background-color:transparent}._Button_14or2_1._Tertiary_14or2_24:hover{border-color:var(--rm-ui-grey-200)}._Button_14or2_1._Tertiary_14or2_24:hover ._Text_14or2_28{color:var(--rm-ui-grey-700)}._Button_14or2_1._Tertiary_14or2_24 ._Text_14or2_28,._Button_14or2_1._Tertiary_14or2_24 ._Info_14or2_71{color:var(--rm-ui-color-text-primary)}._Button_14or2_1:not(._Loading_14or2_111):not(:disabled):hover{cursor:pointer}._Button_14or2_1:focus{outline-color:var(--rm-ui-color-focus)}._Button_14or2_1._FullWidth_14or2_119,._Button_14or2_1._FullWidthUntil768_14or2_123,._Button_14or2_1._FullWidthUntil1024_14or2_124,._Button_14or2_1._FullWidthUntil1200_14or2_125{width:100%}@media(min-width:768px){._Button_14or2_1._FullWidthUntil768_14or2_123{width:auto}}@media(min-width:1024px){._Button_14or2_1._FullWidthUntil1024_14or2_124{width:auto}}@media(min-width:1200px){._Button_14or2_1._FullWidthUntil1200_14or2_125{width:auto}}._Button_14or2_1._FullWidthFrom768_14or2_147,._Button_14or2_1._FullWidthFrom1024_14or2_148,._Button_14or2_1._FullWidthFrom1200_14or2_149{width:auto}@media(min-width:768px){._Button_14or2_1._FullWidthFrom768_14or2_147{width:100%}}@media(min-width:1024px){._Button_14or2_1._FullWidthFrom1024_14or2_148{width:100%}}@media(min-width:1200px){._Button_14or2_1._FullWidthFrom1200_14or2_149{width:100%}}._Content_14or2_171{display:flex;flex-direction:column}._Info_14or2_71{flex-basis:100%;font-weight:var(--rm-ui-font-weight-regular)}._Info_14or2_71._SM_14or2_19{font-size:var(--rm-ui-font-size-body-small);line-height:1.2}._Info_14or2_71._MD_14or2_34{font-size:var(--rm-ui-font-size-body);line-height:1.2}._Info_14or2_71._LG_14or2_24{font-size:var(--rm-ui-font-size-body-large);line-height:1.2}._Text_14or2_28{font-weight:var(--rm-ui-font-weight-medium);transition:color var(--rm-ui-amimation-speed-primary) var(--rm-ui-amimation-cubic-primary)}._Loader_14or2_202{position:absolute}
@@ -49,93 +49,95 @@ import '../../assets/text-DYEJSFKw.css';const x = "_Lined_zitvv_1", b = "_Left_z
49
49
  "page-title": { tag: "h1", weight: "bold", size: "hl1", color: "text-primary" },
50
50
  "sidebar-title": { tag: "h3", weight: "bold", size: "hl3", color: "text-primary" },
51
51
  "step-title": { tag: "h2", weight: "bold", size: "hl4", color: "text-primary" },
52
- "under-submit": { tag: "p", weight: "light", size: "body-small", color: "text-secondary" },
52
+ "under-submit": { tag: "p", weight: "regular", size: "body-small", color: "text-secondary" },
53
53
  "under-submit-light": { tag: "p", weight: "light", size: "body-small", color: "text-secondary" }
54
- }, _e = G(({
55
- children: v,
56
- className: m,
57
- preset: o,
58
- lined: g = !1,
59
- align: y = "left",
60
- tag: c = "p",
61
- weight: _ = "regular",
62
- size: s = "body",
63
- color: a = "text-primary",
64
- ...l
65
- }, h) => {
66
- let d = c, n = _, r = s, t = a;
67
- if (o) {
68
- const i = ce[o];
69
- c !== "p" && c !== i.tag && console.warn(
70
- `Text component: 'tag' prop will be overridden by 'preset="${o}"'. Remove explicit 'tag' prop if not intended.`
71
- ), _ !== "regular" && _ !== i.weight && console.warn(
72
- `Text component: 'weight' prop will be overridden by 'preset="${o}"'. Remove explicit 'weight' prop if not intended.`
73
- ), s !== "body" && s !== i.size && console.warn(
74
- `Text component: 'size' prop will be overridden by 'preset="${o}"'. Remove explicit 'size' prop if not intended.`
75
- ), a !== "text-primary" && a !== i.color && console.warn(
76
- `Text component: 'color' prop will be overridden by 'preset="${o}"'. Remove explicit 'color' prop if not intended.`
77
- ), d = i.tag, n = i.weight, r = i.size, t = i.color;
78
- }
79
- const z = L(m, {
80
- [e.Lined]: g,
81
- // ALIGNMENTS
82
- [e.Left]: y === "left",
83
- [e.Center]: y === "center",
84
- [e.Right]: y === "right",
85
- // FONT WEIGHTS
86
- [e.Light]: n === "light",
87
- [e.Regular]: n === "regular",
88
- [e.Medium]: n === "medium",
89
- [e.Bold]: n === "bold",
90
- // FONT SIZES
91
- [e.BodyExtraSmall]: r === "body-extra-small",
92
- [e.BodySmall]: r === "body-small",
93
- [e.Body]: r === "body",
94
- [e.BodyLarge]: r === "body-large",
95
- [e.HL1]: r === "hl1",
96
- [e.HL2]: r === "hl2",
97
- [e.HL3]: r === "hl3",
98
- [e.HL4]: r === "hl4",
99
- [e.HL5]: r === "hl5",
100
- // COLORS
101
- [e.TextPrimary]: t === "text-primary",
102
- [e.TextSecondary]: t === "text-secondary",
103
- [e.AccentPrimary]: t === "accent-primary",
104
- [e.AccentSecondary]: t === "accent-secondary",
105
- [e.ThemePrimary]: t === "theme-primary",
106
- [e.ThemeSecondary]: t === "theme-secondary",
107
- [e.Error]: t === "error",
108
- [e.Success]: t === "success",
109
- [e.Focus]: t === "focus",
110
- [e.Link]: t === "link",
111
- [e.Grey950]: t === "grey-950",
112
- [e.Grey900]: t === "grey-900",
113
- [e.Grey800]: t === "grey-800",
114
- [e.Grey700]: t === "grey-700",
115
- [e.Grey600]: t === "grey-600",
116
- [e.Grey500]: t === "grey-500",
117
- [e.Grey400]: t === "grey-400",
118
- [e.Grey300]: t === "grey-300",
119
- [e.Grey200]: t === "grey-200",
120
- [e.Grey100]: t === "grey-100",
121
- [e.Grey50]: t === "grey-50",
122
- // PRESETS
123
- [e.UnderSubmit]: o === "under-submit",
124
- [e.UnderSubmitLight]: o === "under-submit-light"
125
- });
126
- return /* @__PURE__ */ p(
127
- u,
128
- {
129
- ref: h,
130
- "data-testid": l["data-testid"] || "content",
131
- tag: d,
132
- alwaysRender: !1,
133
- className: z,
134
- ...l,
135
- children: v
54
+ }, _e = G(
55
+ ({
56
+ children: v,
57
+ className: m,
58
+ preset: o,
59
+ lined: g = !1,
60
+ align: y = "left",
61
+ tag: c = "p",
62
+ weight: _ = "regular",
63
+ size: s = "body",
64
+ color: a = "text-primary",
65
+ ...l
66
+ }, h) => {
67
+ let d = c, n = _, r = s, t = a;
68
+ if (o) {
69
+ const i = ce[o];
70
+ c !== "p" && c !== i.tag && console.warn(
71
+ `Text component: 'tag' prop will be overridden by 'preset="${o}"'. Remove explicit 'tag' prop if not intended.`
72
+ ), _ !== "regular" && _ !== i.weight && console.warn(
73
+ `Text component: 'weight' prop will be overridden by 'preset="${o}"'. Remove explicit 'weight' prop if not intended.`
74
+ ), s !== "body" && s !== i.size && console.warn(
75
+ `Text component: 'size' prop will be overridden by 'preset="${o}"'. Remove explicit 'size' prop if not intended.`
76
+ ), a !== "text-primary" && a !== i.color && console.warn(
77
+ `Text component: 'color' prop will be overridden by 'preset="${o}"'. Remove explicit 'color' prop if not intended.`
78
+ ), d = i.tag, n = i.weight, r = i.size, t = i.color;
136
79
  }
137
- );
138
- });
80
+ const z = L(m, {
81
+ [e.Lined]: g,
82
+ // ALIGNMENTS
83
+ [e.Left]: y === "left",
84
+ [e.Center]: y === "center",
85
+ [e.Right]: y === "right",
86
+ // FONT WEIGHTS
87
+ [e.Light]: n === "light",
88
+ [e.Regular]: n === "regular",
89
+ [e.Medium]: n === "medium",
90
+ [e.Bold]: n === "bold",
91
+ // FONT SIZES
92
+ [e.BodyExtraSmall]: r === "body-extra-small",
93
+ [e.BodySmall]: r === "body-small",
94
+ [e.Body]: r === "body",
95
+ [e.BodyLarge]: r === "body-large",
96
+ [e.HL1]: r === "hl1",
97
+ [e.HL2]: r === "hl2",
98
+ [e.HL3]: r === "hl3",
99
+ [e.HL4]: r === "hl4",
100
+ [e.HL5]: r === "hl5",
101
+ // COLORS
102
+ [e.TextPrimary]: t === "text-primary",
103
+ [e.TextSecondary]: t === "text-secondary",
104
+ [e.AccentPrimary]: t === "accent-primary",
105
+ [e.AccentSecondary]: t === "accent-secondary",
106
+ [e.ThemePrimary]: t === "theme-primary",
107
+ [e.ThemeSecondary]: t === "theme-secondary",
108
+ [e.Error]: t === "error",
109
+ [e.Success]: t === "success",
110
+ [e.Focus]: t === "focus",
111
+ [e.Link]: t === "link",
112
+ [e.Grey950]: t === "grey-950",
113
+ [e.Grey900]: t === "grey-900",
114
+ [e.Grey800]: t === "grey-800",
115
+ [e.Grey700]: t === "grey-700",
116
+ [e.Grey600]: t === "grey-600",
117
+ [e.Grey500]: t === "grey-500",
118
+ [e.Grey400]: t === "grey-400",
119
+ [e.Grey300]: t === "grey-300",
120
+ [e.Grey200]: t === "grey-200",
121
+ [e.Grey100]: t === "grey-100",
122
+ [e.Grey50]: t === "grey-50",
123
+ // PRESETS
124
+ [e.UnderSubmit]: o === "under-submit",
125
+ [e.UnderSubmitLight]: o === "under-submit-light"
126
+ });
127
+ return /* @__PURE__ */ p(
128
+ u,
129
+ {
130
+ ref: h,
131
+ "data-testid": l["data-testid"] || "content",
132
+ tag: d,
133
+ alwaysRender: !1,
134
+ className: z,
135
+ ...l,
136
+ children: v
137
+ }
138
+ );
139
+ }
140
+ );
139
141
  _e.displayName = "Text";
140
142
  export {
141
143
  _e as Text
@@ -10,6 +10,8 @@ export interface ButtonProps extends Base {
10
10
  disabled?: boolean;
11
11
  info?: ReactNode;
12
12
  fullWidth?: boolean;
13
+ fullWidthUntil?: 768 | 1024 | 1200;
14
+ fullWidthFrom?: 768 | 1024 | 1200;
13
15
  loading?: boolean;
14
16
  preventDefault?: boolean;
15
17
  blurAfterClick?: boolean;
@@ -17,4 +19,4 @@ export interface ButtonProps extends Base {
17
19
  onFocus?: () => void;
18
20
  onBlur?: () => void;
19
21
  }
20
- export declare const Button: ({ text, color, textSize, infoSize, type, disabled, info, fullWidth, loading, preventDefault, blurAfterClick, onClick, onFocus, onBlur, ...base }: ButtonProps) => import("react/jsx-runtime").JSX.Element;
22
+ export declare const Button: ({ text, color, textSize, infoSize, type, disabled, info, fullWidth, fullWidthUntil, fullWidthFrom, loading, preventDefault, blurAfterClick, onClick, onFocus, onBlur, ...base }: ButtonProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,94 +1,124 @@
1
- import { jsxs as c, jsx as n } from "react/jsx-runtime";
2
- import _ from "clsx";
3
- import { FadeScale as x } from "../../../animations/fade-scale/fade-scale.component.js";
4
- import { Loader as C } from "../../../components/loader/loader.component.js";
5
- import { Content as T } from "../../../utils/content/content.component.js";
6
- import { withControl as B, baseProps as d } from "../../../utils/functions/functions.util.js";
7
- import '../../../assets/button-CE_Bd7VQ.css';const F = "_Button_esa05_1", N = "_SM_esa05_19", S = "_LG_esa05_24", b = "_Tertiary_esa05_24", D = "_Text_esa05_28", G = "_MD_esa05_34", P = "_Primary_esa05_62", I = "_Info_esa05_71", W = "_Secondary_esa05_75", g = "_Loading_esa05_111", w = "_FullWidth_esa05_119", $ = "_Content_esa05_123", j = "_Loader_esa05_154", t = {
8
- Button: F,
9
- SM: N,
1
+ import { jsxs as d, jsx as _ } from "react/jsx-runtime";
2
+ import { useEffect as x } from "react";
3
+ import u from "clsx";
4
+ import { FadeScale as U } from "../../../animations/fade-scale/fade-scale.component.js";
5
+ import { Loader as b } from "../../../components/loader/loader.component.js";
6
+ import { Content as w } from "../../../utils/content/content.component.js";
7
+ import { withControl as v, baseProps as m } from "../../../utils/functions/functions.util.js";
8
+ import '../../../assets/button-BMjMeK04.css';const C = "_Button_14or2_1", T = "_SM_14or2_19", S = "_LG_14or2_24", k = "_Tertiary_14or2_24", N = "_Text_14or2_28", D = "_MD_14or2_34", G = "_Primary_14or2_62", P = "_Info_14or2_71", I = "_Secondary_14or2_75", g = "_Loading_14or2_111", $ = "_FullWidth_14or2_119", j = "_FullWidthUntil768_14or2_123", E = "_FullWidthUntil1024_14or2_124", q = "_FullWidthUntil1200_14or2_125", A = "_FullWidthFrom768_14or2_147", H = "_FullWidthFrom1024_14or2_148", J = "_FullWidthFrom1200_14or2_149", K = "_Content_14or2_171", O = "_Loader_14or2_202", t = {
9
+ Button: C,
10
+ SM: T,
10
11
  LG: S,
11
- Tertiary: b,
12
- Text: D,
13
- MD: G,
14
- Primary: P,
15
- Info: I,
16
- Secondary: W,
12
+ Tertiary: k,
13
+ Text: N,
14
+ MD: D,
15
+ Primary: G,
16
+ Info: P,
17
+ Secondary: I,
17
18
  Loading: g,
18
- FullWidth: w,
19
- Content: $,
20
- Loader: j
21
- }, J = ({
22
- text: i,
23
- color: e = "primary",
24
- textSize: s = "md",
25
- infoSize: r = "sm",
26
- type: m = "button",
27
- disabled: l = !1,
28
- info: y = "",
29
- fullWidth: u = !1,
30
- loading: a = !1,
31
- preventDefault: p = !1,
19
+ FullWidth: $,
20
+ FullWidthUntil768: j,
21
+ FullWidthUntil1024: E,
22
+ FullWidthUntil1200: q,
23
+ FullWidthFrom768: A,
24
+ FullWidthFrom1024: H,
25
+ FullWidthFrom1200: J,
26
+ Content: K,
27
+ Loader: O
28
+ }, tt = ({
29
+ text: F,
30
+ color: i = "primary",
31
+ textSize: l = "md",
32
+ infoSize: a = "sm",
33
+ type: h = "button",
34
+ disabled: y = !1,
35
+ info: p = "",
36
+ fullWidth: o = !1,
37
+ fullWidthUntil: n,
38
+ fullWidthFrom: e,
39
+ loading: s = !1,
40
+ preventDefault: W = !1,
32
41
  blurAfterClick: L = !1,
33
42
  onClick: f = () => {
34
43
  },
35
- onFocus: h,
44
+ onFocus: B,
36
45
  onBlur: M,
37
- ...o
38
- }) => /* @__PURE__ */ c(
39
- "button",
40
- {
41
- "data-testid": d(o, "data-testid", "button"),
42
- type: m,
43
- disabled: l || a,
44
- className: _(t.Button, d(o, "className"), {
45
- [t.SM]: s === "sm",
46
- [t.MD]: s === "md",
47
- [t.LG]: s === "lg",
48
- [t.Primary]: e === "primary",
49
- [t.Secondary]: e === "secondary",
50
- [t.Tertiary]: e === "tertiary",
51
- [t.FullWidth]: u,
52
- [t.Loading]: a
53
- }),
54
- onClick: B(f, { prevent: p, blur: L }),
55
- onFocus: () => h?.(),
56
- onBlur: () => M?.(),
57
- children: [
58
- a && /* @__PURE__ */ n(
59
- C,
60
- {
61
- size: "xs",
62
- color: (() => {
63
- switch (e) {
64
- case "primary":
65
- return "white";
66
- case "secondary":
67
- return "text-secondary";
68
- case "tertiary":
69
- return "text-primary";
70
- }
71
- })(),
72
- className: t.Loader
73
- }
74
- ),
75
- /* @__PURE__ */ c(x, { name: "content", keepMount: !0, condition: !a, className: t.Content, children: [
76
- /* @__PURE__ */ n("span", { className: t.Text, children: i }),
77
- /* @__PURE__ */ n(
78
- T,
46
+ ...c
47
+ }) => {
48
+ const r = n !== void 0 && e !== void 0;
49
+ return x(() => {
50
+ if (r) {
51
+ console.warn(
52
+ "[ui-kit] Button: `fullWidthUntil` and `fullWidthFrom` are mutually exclusive. Both are set — neither will be applied. Use only one."
53
+ );
54
+ return;
55
+ }
56
+ n !== void 0 && !o && console.warn(
57
+ "[ui-kit] Button: `fullWidthUntil` is set but `fullWidth` is not true. `fullWidthUntil` has no effect without `fullWidth`."
58
+ ), e !== void 0 && !o && console.warn(
59
+ "[ui-kit] Button: `fullWidthFrom` is set but `fullWidth` is not true. `fullWidthFrom` has no effect without `fullWidth`."
60
+ );
61
+ }, [o, n, e, r]), /* @__PURE__ */ d(
62
+ "button",
63
+ {
64
+ "data-testid": m(c, "data-testid", "button"),
65
+ type: h,
66
+ disabled: y || s,
67
+ className: u(t.Button, m(c, "className"), {
68
+ [t.SM]: l === "sm",
69
+ [t.MD]: l === "md",
70
+ [t.LG]: l === "lg",
71
+ [t.Primary]: i === "primary",
72
+ [t.Secondary]: i === "secondary",
73
+ [t.Tertiary]: i === "tertiary",
74
+ [t.FullWidth]: o && n === void 0 && e === void 0,
75
+ [t.FullWidthUntil768]: o && !r && n === 768,
76
+ [t.FullWidthUntil1024]: o && !r && n === 1024,
77
+ [t.FullWidthUntil1200]: o && !r && n === 1200,
78
+ [t.FullWidthFrom768]: o && !r && e === 768,
79
+ [t.FullWidthFrom1024]: o && !r && e === 1024,
80
+ [t.FullWidthFrom1200]: o && !r && e === 1200,
81
+ [t.Loading]: s
82
+ }),
83
+ onClick: v(f, { prevent: W, blur: L }),
84
+ onFocus: () => B?.(),
85
+ onBlur: () => M?.(),
86
+ children: [
87
+ s && /* @__PURE__ */ _(
88
+ b,
79
89
  {
80
- className: _(t.Info, {
81
- [t.SM]: r === "sm",
82
- [t.MD]: r === "md",
83
- [t.LG]: r === "lg"
84
- }),
85
- children: y
90
+ size: "xs",
91
+ color: (() => {
92
+ switch (i) {
93
+ case "primary":
94
+ return "white";
95
+ case "secondary":
96
+ return "text-secondary";
97
+ case "tertiary":
98
+ return "text-primary";
99
+ }
100
+ })(),
101
+ className: t.Loader
86
102
  }
87
- )
88
- ] })
89
- ]
90
- }
91
- );
103
+ ),
104
+ /* @__PURE__ */ d(U, { name: "content", keepMount: !0, condition: !s, className: t.Content, children: [
105
+ /* @__PURE__ */ _("span", { className: t.Text, children: F }),
106
+ /* @__PURE__ */ _(
107
+ w,
108
+ {
109
+ className: u(t.Info, {
110
+ [t.SM]: a === "sm",
111
+ [t.MD]: a === "md",
112
+ [t.LG]: a === "lg"
113
+ }),
114
+ children: p
115
+ }
116
+ )
117
+ ] })
118
+ ]
119
+ }
120
+ );
121
+ };
92
122
  export {
93
- J as Button
123
+ tt as Button
94
124
  };
package/dist/main.d.ts CHANGED
@@ -46,6 +46,6 @@ export { Payment, type PaymentBlockProps, type PaymentGlassProps, type PaymentIn
46
46
  export { Sidebar, type SidebarProps } from './components/sidebar';
47
47
  export { Signature } from './components/signature';
48
48
  export { Svg, type SvgProps } from './utils/svg/svg.component';
49
- export { Text } from './components/text';
49
+ export { Text, type TextProps } from './components/text';
50
50
  export { UserPanel } from './components/user-panel';
51
51
  export { Warranty, type WarrantyProps } from './components/warranty';
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@arthurzakharov/ui-kit",
3
3
  "private": false,
4
- "version": "2.2.0",
4
+ "version": "2.4.0",
5
5
  "type": "module",
6
6
  "main": "dist/main.js",
7
7
  "types": "dist/main.d.ts",
@@ -1 +0,0 @@
1
- ._Button_esa05_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)}._Button_esa05_1:disabled{cursor:not-allowed;opacity:.33}._Button_esa05_1._SM_esa05_19{border-radius:var(--rm-ui-border-radius-sm);padding:var(--rm-ui-padding-xs) var(--rm-ui-padding-sm)}._Button_esa05_1._LG_esa05_24._Tertiary_esa05_24{padding:calc(var(--rm-ui-padding-xs) - 1px) calc(var(--rm-ui-padding-sm) - 1px)}._Button_esa05_1._SM_esa05_19 ._Text_esa05_28{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)}._Button_esa05_1._MD_esa05_34{border-radius:var(--rm-ui-border-radius-md);padding:var(--rm-ui-padding-sm) var(--rm-ui-padding-lg)}._Button_esa05_1._MD_esa05_34._Tertiary_esa05_24{padding:calc(var(--rm-ui-padding-sm) - 1px) calc(var(--rm-ui-padding-lg) - 1px)}._Button_esa05_1._LG_esa05_24{border-radius:var(--rm-ui-border-radius-md);padding:var(--rm-ui-padding-sm) var(--rm-ui-padding-lg)}._Button_esa05_1._LG_esa05_24._Tertiary_esa05_24{padding:calc(var(--rm-ui-padding-sm) - 1px) calc(var(--rm-ui-padding-lg) - 1px)}._Button_esa05_1._MD_esa05_34 ._Text_esa05_28{font-size:var(--rm-ui-font-size-body);line-height:var(--rm-ui-line-height-body)}._Button_esa05_1._LG_esa05_24 ._Text_esa05_28{font-size:var(--rm-ui-font-size-body-large);line-height:1.2}._Button_esa05_1._Primary_esa05_62{background-color:var(--rm-ui-next-btn-bg)}._Button_esa05_1._Primary_esa05_62:hover{background-color:var(--rm-ui-next-btn-bg-hover)}._Button_esa05_1._Primary_esa05_62 ._Text_esa05_28,._Button_esa05_1._Primary_esa05_62 ._Info_esa05_71{color:#fff}._Button_esa05_1._Secondary_esa05_75{border:1px solid transparent;background-color:transparent}._Button_esa05_1._Secondary_esa05_75:hover{border-color:var(--rm-ui-grey-400)}._Button_esa05_1._Secondary_esa05_75:hover ._Text_esa05_28{color:var(--rm-ui-grey-400);border-color:var(--rm-ui-grey-400)}._Button_esa05_1._Secondary_esa05_75 ._Text_esa05_28,._Button_esa05_1._Secondary_esa05_75 ._Info_esa05_71{color:var(--rm-ui-color-text-secondary)}._Button_esa05_1._Tertiary_esa05_24{border:1px solid var(--rm-ui-grey-300);background-color:transparent}._Button_esa05_1._Tertiary_esa05_24:hover{border-color:var(--rm-ui-grey-200)}._Button_esa05_1._Tertiary_esa05_24:hover ._Text_esa05_28{color:var(--rm-ui-grey-700)}._Button_esa05_1._Tertiary_esa05_24 ._Text_esa05_28,._Button_esa05_1._Tertiary_esa05_24 ._Info_esa05_71{color:var(--rm-ui-color-text-primary)}._Button_esa05_1:not(._Loading_esa05_111):not(:disabled):hover{cursor:pointer}._Button_esa05_1:focus{outline-color:var(--rm-ui-color-focus)}._Button_esa05_1._FullWidth_esa05_119{width:100%}._Content_esa05_123{display:flex;flex-direction:column}._Info_esa05_71{flex-basis:100%;font-weight:var(--rm-ui-font-weight-regular)}._Info_esa05_71._SM_esa05_19{font-size:var(--rm-ui-font-size-body-small);line-height:1.2}._Info_esa05_71._MD_esa05_34{font-size:var(--rm-ui-font-size-body);line-height:1.2}._Info_esa05_71._LG_esa05_24{font-size:var(--rm-ui-font-size-body-large);line-height:1.2}._Text_esa05_28{font-weight:var(--rm-ui-font-weight-medium);transition:color var(--rm-ui-amimation-speed-primary) var(--rm-ui-amimation-cubic-primary)}._Loader_esa05_154{position:absolute}