@dss-kit/ui-kit 1.0.4 → 1.1.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.
Files changed (55) hide show
  1. package/README.md +19 -0
  2. package/dist/components/builders/Sheet/SheetLayer.js +95 -83
  3. package/dist/components/builders/Sheet/hooks/index.d.ts +1 -0
  4. package/dist/components/builders/Sheet/hooks/useMotionValueStyle.d.ts +8 -0
  5. package/dist/components/builders/Sheet/hooks/useMotionValueStyle.js +14 -0
  6. package/dist/components/builders/Table/TablePagination/TablePagination.d.ts +10 -4
  7. package/dist/components/builders/Table/TablePagination/TablePagination.js +230 -177
  8. package/dist/components/builders/Text/Text.d.ts +4 -1
  9. package/dist/components/builders/Text/Text.js +78 -76
  10. package/dist/components/controls/Button/Button.d.ts +1 -1
  11. package/dist/components/controls/Button/Button.js +47 -46
  12. package/dist/components/controls/OtpInput/OtpInput.js +121 -143
  13. package/dist/components/controls/OtpInput/styles.d.ts +1 -0
  14. package/dist/components/controls/OtpInput/styles.js +9 -3
  15. package/dist/components/controls/Select/Select.js +72 -70
  16. package/dist/components/shared/Toast/ToastContainer.d.ts +1 -1
  17. package/dist/components/shared/Toast/ToastContainer.js +25 -23
  18. package/dist/fonts/inter-cyrillic-ext-400.woff2 +0 -0
  19. package/dist/fonts/inter-cyrillic-ext-500.woff2 +0 -0
  20. package/dist/fonts/inter-cyrillic-ext-600.woff2 +0 -0
  21. package/dist/fonts/inter-cyrillic-ext-700.woff2 +0 -0
  22. package/dist/fonts/inter-cyrillic-ext-800.woff2 +0 -0
  23. package/dist/fonts/inter-latin-cyrillic-400.woff2 +0 -0
  24. package/dist/fonts/inter-latin-cyrillic-500.woff2 +0 -0
  25. package/dist/fonts/inter-latin-cyrillic-600.woff2 +0 -0
  26. package/dist/fonts/inter-latin-cyrillic-700.woff2 +0 -0
  27. package/dist/fonts/inter-latin-cyrillic-800.woff2 +0 -0
  28. package/dist/fonts/inter-latin-ext-400.woff2 +0 -0
  29. package/dist/fonts/inter-latin-ext-500.woff2 +0 -0
  30. package/dist/fonts/inter-latin-ext-600.woff2 +0 -0
  31. package/dist/fonts/inter-latin-ext-700.woff2 +0 -0
  32. package/dist/fonts/inter-latin-ext-800.woff2 +0 -0
  33. package/dist/index.js +34 -32
  34. package/dist/providers/MotionProvider/MotionProvider.d.ts +9 -0
  35. package/dist/providers/MotionProvider/MotionProvider.js +21 -0
  36. package/dist/providers/MotionProvider/MotionProvider.types.d.ts +12 -0
  37. package/dist/providers/MotionProvider/features.d.ts +1 -0
  38. package/dist/providers/MotionProvider/features.js +4 -0
  39. package/dist/providers/MotionProvider/index.d.ts +2 -0
  40. package/dist/providers/MotionProvider/loadMotionFeatures.d.ts +13 -0
  41. package/dist/providers/MotionProvider/loadMotionFeatures.js +9 -0
  42. package/dist/providers/index.d.ts +1 -0
  43. package/dist/styles/utils/breakpoints.d.ts +12 -0
  44. package/dist/styles/utils/breakpoints.js +20 -13
  45. package/dist/styles/utils/breakpoints.ts +32 -0
  46. package/dist/ui-kit.cjs +8 -8
  47. package/dist/ui-kit.css +1 -1
  48. package/package.json +3 -1
  49. package/dist/fonts/inter-normal-200.woff2 +0 -0
  50. package/dist/fonts/inter-normal-300.woff2 +0 -0
  51. package/dist/fonts/inter-normal-400.woff2 +0 -0
  52. package/dist/fonts/inter-normal-500.woff2 +0 -0
  53. package/dist/fonts/inter-normal-600.woff2 +0 -0
  54. package/dist/fonts/inter-normal-700.woff2 +0 -0
  55. package/dist/fonts/inter-normal-800.woff2 +0 -0
@@ -1,180 +1,233 @@
1
- import { jsxs as v, jsx as e } from "react/jsx-runtime";
2
- import { css as R, cx as G } from "@emotion/css";
3
- import { useRef as H, useState as J, useEffect as K } from "react";
4
- import z from "../../../../assets/svg/table/chevron-left.svg.js";
5
- import M from "../../../../assets/svg/table/chevron-right.svg.js";
6
- import Q from "../../../../assets/svg/table/dots.svg.js";
7
- import { getPageNumbers as U } from "./TablePagination.utils.js";
8
- import { Select as X } from "../../../controls/Select/Select.js";
9
- import { Button as _ } from "../../../controls/Button/Button.js";
10
- import { IconButton as B } from "../../../controls/IconButton/IconButton.js";
1
+ import { jsxs as u, jsx as t, Fragment as Y } from "react/jsx-runtime";
2
+ import { css as a, cx as Z } from "@emotion/css";
3
+ import { useRef as ee, useState as te, useEffect as ne } from "react";
4
+ import w from "../../../../assets/svg/table/chevron-left.svg.js";
5
+ import S from "../../../../assets/svg/table/chevron-right.svg.js";
6
+ import oe from "../../../../assets/svg/table/dots.svg.js";
7
+ import { bpContainer as E } from "../../../../styles/utils/breakpoints.js";
8
+ import { getPageNumbers as ie } from "./TablePagination.utils.js";
9
+ import { Select as re } from "../../../controls/Select/Select.js";
10
+ import { Button as V } from "../../../controls/Button/Button.js";
11
+ import { IconButton as f } from "../../../controls/IconButton/IconButton.js";
11
12
  import { Box as r } from "../../Box/Box.js";
12
- import { theme as Y } from "../../../../utils/theme/index.js";
13
- import { Text as Z } from "../../Text/Text.js";
14
- const { color: i, cornerRadius: tt, spacing: b } = Y, bt = ({
15
- pageIndex: o,
16
- pageSize: n,
17
- totalCount: a,
13
+ import { theme as se } from "../../../../utils/theme/index.js";
14
+ import { Text as ae } from "../../Text/Text.js";
15
+ const { color: i, cornerRadius: le, spacing: C } = se, k = "table-pagination", ce = a({
16
+ containerType: "inline-size",
17
+ containerName: k
18
+ }), P = a({
19
+ [E.sm(k)]: {
20
+ display: "none"
21
+ }
22
+ }), W = a({
23
+ [E.sm(k, "min")]: {
24
+ display: "none"
25
+ }
26
+ }), We = ({
27
+ pageIndex: n,
28
+ pageSize: o,
29
+ totalCount: l,
18
30
  onPageChange: s,
19
31
  onPageSizeChange: c,
20
- variant: l = "numbered",
21
- labels: d,
22
- pageSizeOptions: m = [10, 20, 50, 100],
23
- showPageSizeSelector: h = !0,
24
- renderPageSizeSelectorDropdownItem: L = (u) => u.label,
25
- renderPageSizeSelectorInputItem: T,
26
- className: V,
27
- itemClassName: x,
28
- activeItemClassName: w,
29
- pageSizeSelectorClassName: D
32
+ variant: p = "numbered",
33
+ labels: g,
34
+ pageSizeOptions: b = [10, 20, 50, 100],
35
+ showPageSizeSelector: v = !0,
36
+ renderPageSizeSelectorDropdownItem: I = (d) => d.label,
37
+ renderPageSizeSelectorInputItem: z,
38
+ className: A,
39
+ itemClassName: R,
40
+ activeItemClassName: M,
41
+ pageSizeSelectorClassName: $
30
42
  }) => {
31
- const { prev: u = "Previous", next: I = "Next" } = d ?? {}, S = H(null), [O, $] = J(0), y = Math.ceil(a / n), f = o > 0, g = o < y - 1;
32
- K(() => {
33
- const t = S.current;
34
- if (!t) return;
35
- const p = new ResizeObserver((W) => {
36
- for (const C of W)
37
- $(C.contentRect.width);
43
+ const { prev: d = "Previous", next: _ = "Next" } = g ?? {}, T = ee(null), [F, q] = te(0), B = Math.ceil(l / o), m = n > 0, h = n < B - 1;
44
+ ne(() => {
45
+ const e = T.current;
46
+ if (!e) return;
47
+ const N = new ResizeObserver((O) => {
48
+ for (const j of O)
49
+ q(j.contentRect.width);
38
50
  });
39
- return p.observe(t), () => {
40
- p.disconnect();
51
+ return N.observe(e), () => {
52
+ N.disconnect();
41
53
  };
42
54
  }, []);
43
- const E = ((t) => {
44
- if (t <= 0)
55
+ const G = ((e) => {
56
+ if (e <= 0)
45
57
  return 1;
46
- const k = t - 96;
47
- if (k <= 40)
58
+ const L = e - 96;
59
+ if (L <= 40)
48
60
  return 1;
49
- const F = Math.floor((k + 8) / 48);
50
- return Math.max(1, Math.min(10, F));
51
- })(O), q = U({
52
- page: o + 1,
53
- count: y,
54
- maxVisiblePages: E
55
- }), N = () => {
56
- f && s(o - 1);
57
- }, P = () => {
58
- g && s(o + 1);
59
- }, A = (t) => {
60
- c(Number(t));
61
+ const X = Math.floor((L + 8) / 48);
62
+ return Math.max(1, Math.min(10, X));
63
+ })(F), H = ie({
64
+ page: n + 1,
65
+ count: B,
66
+ maxVisiblePages: G
67
+ }), x = () => {
68
+ m && s(n - 1);
69
+ }, y = () => {
70
+ h && s(n + 1);
71
+ }, J = (e) => {
72
+ c(Number(e));
61
73
  };
62
- return a === 0 ? null : /* @__PURE__ */ v(r, { flex: 1, row: !0, justifyContent: "space-between", children: [
63
- l === "simple" ? /* @__PURE__ */ v(
64
- r,
65
- {
66
- flex: 1,
67
- row: !0,
68
- gap: b.sm,
69
- alignItems: "center",
70
- className: V,
71
- children: [
72
- /* @__PURE__ */ e(
73
- _,
74
- {
75
- width: "auto",
76
- size: "sm",
77
- color: "neutral",
78
- iconLeft: /* @__PURE__ */ e(z, { width: 20, height: 20 }),
79
- disabled: !f,
80
- onClick: N,
81
- children: u
82
- }
83
- ),
84
- /* @__PURE__ */ e(
85
- j,
86
- {
87
- className: x,
88
- activeClassName: w,
89
- children: o + 1
90
- }
91
- ),
92
- /* @__PURE__ */ e(
93
- _,
94
- {
95
- width: "auto",
96
- size: "sm",
97
- color: "neutral",
98
- iconRight: /* @__PURE__ */ e(M, { width: 20, height: 20 }),
99
- disabled: !g,
100
- onClick: P,
101
- children: I
102
- }
103
- )
104
- ]
105
- }
106
- ) : /* @__PURE__ */ v(
107
- r,
108
- {
109
- ref: S,
110
- flex: 1,
111
- row: !0,
112
- overflow: "hidden",
113
- gap: b.sm,
114
- children: [
115
- /* @__PURE__ */ e(
116
- B,
117
- {
118
- onClick: N,
119
- disabled: !f,
120
- color: "neutral",
121
- size: "sm",
122
- children: /* @__PURE__ */ e(z, {})
123
- }
124
- ),
125
- /* @__PURE__ */ e(r, { row: !0, gap: b.sm, children: q.map((t) => /* @__PURE__ */ e(
126
- j,
127
- {
128
- isDots: t === "start-dots" || t === "end-dots",
129
- isCurrentPage: t === o + 1,
130
- disabled: t === "start-dots" || t === "end-dots",
131
- onClick: () => s(t - 1),
132
- className: x,
133
- activeClassName: w,
134
- children: t
135
- },
136
- t
137
- )) }),
138
- /* @__PURE__ */ e(
139
- B,
140
- {
141
- color: "neutral",
142
- size: "sm",
143
- onClick: P,
144
- disabled: !g,
145
- children: /* @__PURE__ */ e(M, {})
146
- }
147
- )
148
- ]
149
- }
150
- ),
151
- h && /* @__PURE__ */ e(r, { alignItems: "flex-end", className: D, children: /* @__PURE__ */ e(
152
- X,
153
- {
154
- width: "fit-content",
155
- value: n.toString(),
156
- size: "sm",
157
- items: m.map((t) => ({
158
- value: t.toString(),
159
- label: t.toString()
160
- })),
161
- returnedValue: (t) => t.value,
162
- renderDropdownItem: L,
163
- renderSingleInputItem: T,
164
- onChange: (t) => A(t)
165
- }
166
- ) })
167
- ] });
168
- }, j = ({
169
- children: o,
170
- isCurrentPage: n = !1,
171
- onClick: a,
74
+ if (l === 0)
75
+ return null;
76
+ const K = () => /* @__PURE__ */ u(
77
+ r,
78
+ {
79
+ ref: T,
80
+ flex: 1,
81
+ row: !0,
82
+ overflow: "hidden",
83
+ gap: C.sm,
84
+ children: [
85
+ /* @__PURE__ */ t(
86
+ f,
87
+ {
88
+ onClick: x,
89
+ disabled: !m,
90
+ color: "neutral",
91
+ size: "sm",
92
+ children: /* @__PURE__ */ t(w, {})
93
+ }
94
+ ),
95
+ /* @__PURE__ */ t(r, { row: !0, gap: C.sm, children: H.map((e) => /* @__PURE__ */ t(
96
+ D,
97
+ {
98
+ isDots: e === "start-dots" || e === "end-dots",
99
+ isCurrentPage: e === n + 1,
100
+ disabled: e === "start-dots" || e === "end-dots",
101
+ onClick: () => s(e - 1),
102
+ className: R,
103
+ activeClassName: M,
104
+ children: e
105
+ },
106
+ e
107
+ )) }),
108
+ /* @__PURE__ */ t(
109
+ f,
110
+ {
111
+ color: "neutral",
112
+ size: "sm",
113
+ onClick: y,
114
+ disabled: !h,
115
+ children: /* @__PURE__ */ t(S, {})
116
+ }
117
+ )
118
+ ]
119
+ }
120
+ ), Q = () => /* @__PURE__ */ u(
121
+ r,
122
+ {
123
+ flex: 1,
124
+ row: !0,
125
+ gap: C.sm,
126
+ alignItems: "center",
127
+ className: A,
128
+ children: [
129
+ /* @__PURE__ */ t(
130
+ V,
131
+ {
132
+ className: P,
133
+ width: "auto",
134
+ size: "sm",
135
+ color: "neutral",
136
+ iconLeft: /* @__PURE__ */ t(w, { width: 20, height: 20 }),
137
+ disabled: !m,
138
+ onClick: x,
139
+ children: d
140
+ }
141
+ ),
142
+ /* @__PURE__ */ t(
143
+ f,
144
+ {
145
+ className: W,
146
+ color: "neutral",
147
+ size: "sm",
148
+ "aria-label": d,
149
+ disabled: !m,
150
+ onClick: x,
151
+ children: /* @__PURE__ */ t(w, {})
152
+ }
153
+ ),
154
+ /* @__PURE__ */ t(
155
+ D,
156
+ {
157
+ className: R,
158
+ activeClassName: M,
159
+ children: n + 1
160
+ }
161
+ ),
162
+ /* @__PURE__ */ t(
163
+ V,
164
+ {
165
+ className: P,
166
+ width: "auto",
167
+ size: "sm",
168
+ color: "neutral",
169
+ iconRight: /* @__PURE__ */ t(S, { width: 20, height: 20 }),
170
+ disabled: !h,
171
+ onClick: y,
172
+ children: _
173
+ }
174
+ ),
175
+ /* @__PURE__ */ t(
176
+ f,
177
+ {
178
+ className: W,
179
+ color: "neutral",
180
+ size: "sm",
181
+ "aria-label": _,
182
+ disabled: !h,
183
+ onClick: y,
184
+ children: /* @__PURE__ */ t(S, {})
185
+ }
186
+ )
187
+ ]
188
+ }
189
+ ), U = z && ((e) => /* @__PURE__ */ u(Y, { children: [
190
+ /* @__PURE__ */ t("span", { className: P, children: z(e) }),
191
+ /* @__PURE__ */ t("span", { className: W, children: e.label })
192
+ ] }));
193
+ return /* @__PURE__ */ u(
194
+ r,
195
+ {
196
+ flex: 1,
197
+ row: !0,
198
+ justifyContent: "space-between",
199
+ className: ce,
200
+ children: [
201
+ p === "simple" ? Q() : K(),
202
+ v && /* @__PURE__ */ t(r, { alignItems: "flex-end", className: $, children: /* @__PURE__ */ t(
203
+ re,
204
+ {
205
+ width: "fit-content",
206
+ value: o.toString(),
207
+ size: "sm",
208
+ items: b.map((e) => ({
209
+ value: e.toString(),
210
+ label: e.toString()
211
+ })),
212
+ returnedValue: (e) => e.value,
213
+ renderDropdownItem: I,
214
+ renderSingleInputItem: U,
215
+ onChange: (e) => J(e)
216
+ }
217
+ ) })
218
+ ]
219
+ }
220
+ );
221
+ }, D = ({
222
+ children: n,
223
+ isCurrentPage: o = !1,
224
+ onClick: l,
172
225
  isDots: s = !1,
173
226
  disabled: c = !1,
174
- className: l,
175
- activeClassName: d
227
+ className: p,
228
+ activeClassName: g
176
229
  }) => {
177
- const m = R({
230
+ const b = a({
178
231
  cursor: c ? "not-allowed" : "pointer",
179
232
  userSelect: "none",
180
233
  width: "40px",
@@ -182,27 +235,27 @@ const { color: i, cornerRadius: tt, spacing: b } = Y, bt = ({
182
235
  display: "flex",
183
236
  alignItems: "center",
184
237
  justifyContent: "center",
185
- backgroundColor: n ? i.fill.accent_secondary : i.fill.bg_secondary,
186
- borderRadius: tt.sm,
187
- border: n ? `1px solid ${i.fill.accent_secondary_hover}` : `1px solid ${i.border.neutral_alpha_basic}`
188
- }), h = R({
238
+ backgroundColor: o ? i.fill.accent_secondary : i.fill.bg_secondary,
239
+ borderRadius: le.sm,
240
+ border: o ? `1px solid ${i.fill.accent_secondary_hover}` : `1px solid ${i.border.neutral_alpha_basic}`
241
+ }), v = a({
189
242
  width: "24px",
190
243
  height: "24px",
191
- color: n ? i.icon.secondary : i.icon.tertiary
244
+ color: o ? i.icon.secondary : i.icon.tertiary
192
245
  });
193
- return /* @__PURE__ */ e(
246
+ return /* @__PURE__ */ t(
194
247
  r,
195
248
  {
196
- className: G(
197
- m,
198
- l,
199
- n && d
249
+ className: Z(
250
+ b,
251
+ p,
252
+ o && g
200
253
  ),
201
- onClick: c ? void 0 : a,
202
- children: s ? /* @__PURE__ */ e(Q, { className: h }) : /* @__PURE__ */ e(Z, { center: !0, variant: "body-2", fontWeight: "medium", children: o })
254
+ onClick: c ? void 0 : l,
255
+ children: s ? /* @__PURE__ */ t(oe, { className: v }) : /* @__PURE__ */ t(ae, { center: !0, variant: "body-2", fontWeight: "medium", children: n })
203
256
  }
204
257
  );
205
258
  };
206
259
  export {
207
- bt as TablePagination
260
+ We as TablePagination
208
261
  };
@@ -55,7 +55,7 @@ export declare const Text: React.ForwardRefExoticComponent<Omit<React.HTMLAttrib
55
55
  opacityDuration?: number;
56
56
  style?: React.CSSProperties;
57
57
  } & React.RefAttributes<HTMLElement>>;
58
- export declare const AnimatedText: React.ComponentType<Omit<{
58
+ declare const MotionText: React.ComponentType<Omit<{
59
59
  center?: boolean | undefined;
60
60
  left?: boolean | undefined;
61
61
  right?: boolean | undefined;
@@ -345,3 +345,6 @@ export declare const AnimatedText: React.ComponentType<Omit<{
345
345
  } & import('framer-motion').MotionProps, "children"> & {
346
346
  children?: React.ReactNode | import('motion-dom').MotionValue<number> | import('motion-dom').MotionValue<string>;
347
347
  }>;
348
+ /** `Text` с motion-пропсами. Фичи Motion подгружаются через `MotionProvider`. */
349
+ export declare const AnimatedText: typeof MotionText;
350
+ export {};
@@ -1,97 +1,99 @@
1
- import { jsx as H } from "react/jsx-runtime";
2
- import { css as J, cx as K } from "@emotion/css";
3
- import { motion as O } from "framer-motion";
4
- import { forwardRef as Q, useState as V } from "react";
1
+ import { jsx as r } from "react/jsx-runtime";
2
+ import { css as K, cx as O } from "@emotion/css";
3
+ import { m as Q } from "framer-motion";
4
+ import { forwardRef as l, useState as V } from "react";
5
5
  import { styles as o } from "./styles.js";
6
6
  import { systemToClass as X } from "./utils/systemToClass.js";
7
- const i = Q(
7
+ import { MotionProvider as Y } from "../../../providers/MotionProvider/MotionProvider.js";
8
+ const d = l(
8
9
  ({
9
- children: c,
10
- className: m,
11
- variant: l = "body-1",
12
- fontWeight: d = "medium",
13
- tag: p = "p",
14
- colorName: f = "primary",
15
- inherit: t = !1,
16
- style: u,
17
- clickOpacity: y = 0.5,
18
- opacityDuration: x = 200,
19
- onClick: a,
20
- disabled: Y,
21
- mt: h,
22
- mb: T,
23
- ml: C,
10
+ children: t,
11
+ className: e,
12
+ variant: p = "body-1",
13
+ fontWeight: f = "medium",
14
+ tag: u = "p",
15
+ colorName: x = "primary",
16
+ inherit: a = !1,
17
+ style: y,
18
+ clickOpacity: T = 0.5,
19
+ opacityDuration: h = 200,
20
+ onClick: i,
21
+ disabled: ss,
22
+ mt: v,
23
+ mb: C,
24
+ ml: M,
24
25
  mr: b,
25
- flex: v,
26
- cursor: M,
27
- wordBreak: P,
28
- whiteSpace: S,
29
- textOverflow: g,
30
- decoration: w,
26
+ flex: P,
27
+ cursor: N,
28
+ wordBreak: S,
29
+ whiteSpace: g,
30
+ textOverflow: w,
31
+ decoration: A,
31
32
  color: I,
32
- center: N,
33
- left: R,
34
- right: j,
35
- uppercase: k,
36
- lowercase: A,
37
- capitalize: B,
38
- overflow: D,
39
- ...E
40
- }, L) => {
41
- const [U, n] = V(!1), s = !!a, r = () => s && n(!0), e = () => s && n(!1), W = X({
42
- mt: h,
43
- mb: T,
44
- ml: C,
33
+ center: R,
34
+ left: j,
35
+ right: k,
36
+ uppercase: B,
37
+ lowercase: D,
38
+ capitalize: E,
39
+ overflow: L,
40
+ ...U
41
+ }, W) => {
42
+ const [$, m] = V(!1), s = !!i, c = () => s && m(!0), n = () => s && m(!1), q = X({
43
+ mt: v,
44
+ mb: C,
45
+ ml: M,
45
46
  mr: b,
46
- flex: v,
47
- cursor: M,
48
- wordBreak: P,
49
- whiteSpace: S,
50
- textOverflow: g,
51
- decoration: w,
47
+ flex: P,
48
+ cursor: N,
49
+ wordBreak: S,
50
+ whiteSpace: g,
51
+ textOverflow: w,
52
+ decoration: A,
52
53
  color: I,
53
- center: N,
54
- left: R,
55
- right: j,
56
- uppercase: k,
57
- lowercase: A,
58
- capitalize: B,
59
- overflow: D
60
- }), $ = p, q = o[t ? "inherit" : l], z = o[t ? "inherit" : f], F = o[t ? "inherit" : d], G = s ? J({
61
- opacity: U ? y : 1,
62
- transition: `opacity ${x}ms ease`
54
+ center: R,
55
+ left: j,
56
+ right: k,
57
+ uppercase: B,
58
+ lowercase: D,
59
+ capitalize: E,
60
+ overflow: L
61
+ }), z = u, F = o[a ? "inherit" : p], G = o[a ? "inherit" : x], H = o[a ? "inherit" : f], J = s ? K({
62
+ opacity: $ ? T : 1,
63
+ transition: `opacity ${h}ms ease`
63
64
  }) : "";
64
- return /* @__PURE__ */ H(
65
- $,
65
+ return /* @__PURE__ */ r(
66
+ z,
66
67
  {
67
- ref: L,
68
- ...E,
69
- className: K(
68
+ ref: W,
69
+ ...U,
70
+ className: O(
70
71
  o.text,
71
- q,
72
- z,
73
72
  F,
74
73
  G,
75
- m,
76
- W
74
+ H,
75
+ J,
76
+ e,
77
+ q
77
78
  ),
78
- style: u,
79
- onClick: a,
80
- onMouseDown: r,
81
- onMouseUp: e,
82
- onMouseLeave: e,
83
- onTouchStart: r,
84
- onTouchEnd: e,
79
+ style: y,
80
+ onClick: i,
81
+ onMouseDown: c,
82
+ onMouseUp: n,
83
+ onMouseLeave: n,
84
+ onTouchStart: c,
85
+ onTouchEnd: n,
85
86
  role: s ? "button" : void 0,
86
87
  tabIndex: s ? 0 : void 0,
87
- children: c
88
+ children: t
88
89
  }
89
90
  );
90
91
  }
91
92
  );
92
- i.displayName = "Text";
93
- const as = O(i);
93
+ d.displayName = "Text";
94
+ const Z = Q.create(d), _ = l((t, e) => /* @__PURE__ */ r(Y, { children: /* @__PURE__ */ r(Z, { ...t, ref: e }) }));
95
+ _.displayName = "AnimatedText";
94
96
  export {
95
- as as AnimatedText,
96
- i as Text
97
+ _ as AnimatedText,
98
+ d as Text
97
99
  };
@@ -45,7 +45,7 @@ export interface ButtonProps extends Omit<HTMLMotionProps<"button">, "className"
45
45
  className?: string;
46
46
  /** Класс для корневой обёртки кнопки (`Box`). */
47
47
  wrapperClassName?: string;
48
- /** Класс для самой `motion.button`. */
48
+ /** Класс для самой `m.button`. */
49
49
  buttonClassName?: string;
50
50
  /** Класс, применяемый к кнопке только в состоянии `disabled`. */
51
51
  buttonDisabledClassName?: string;