@shmidko61/lc-ui-kit 0.9.0 → 0.12.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/box.js CHANGED
@@ -1,82 +1,183 @@
1
- import { jsx as io } from "react/jsx-runtime";
2
- import { forwardRef as eo } from "react";
3
- import { a as ro, c as no } from "./responsive-style.config-DFuATrIM.js";
4
- function fo({
1
+ import { jsx as bo } from "react/jsx-runtime";
2
+ import { forwardRef as mo } from "react";
3
+ import { a as H, c as po } from "./responsive-style.config-DFuATrIM.js";
4
+ function Z({
5
5
  background: t,
6
6
  backgroundColor: o,
7
7
  bg: i,
8
- bgSize: d,
9
- bgRepeat: a,
10
- bgPosition: u,
11
- border: v,
12
- boxShadow: f,
13
- color: b,
14
- cursor: m,
15
- opacity: c,
16
- overflow: s,
17
- overflowX: p,
18
- overflowY: x,
19
- pointerEvents: R,
20
- aspectRatio: g,
21
- transform: k,
22
- transformOrigin: S,
23
- p: G,
24
- m: H,
25
- outlineColor: z,
26
- outlineWidth: W,
27
- outlineOffset: C,
28
- outlineStyle: T,
29
- listStyle: h,
30
- display: L,
31
- position: n,
32
- width: N,
33
- maxWidth: V,
34
- minWidth: w,
35
- height: P,
36
- maxHeight: I,
37
- minHeight: j
8
+ bgSize: a,
9
+ bgRepeat: n,
10
+ bgPosition: s,
11
+ border: p,
12
+ boxShadow: c,
13
+ color: r,
14
+ cursor: u,
15
+ opacity: l,
16
+ overflow: d,
17
+ overflowX: v,
18
+ overflowY: y,
19
+ pointerEvents: B,
20
+ aspectRatio: h,
21
+ transform: g,
22
+ transformOrigin: b,
23
+ p: S,
24
+ m: x,
25
+ outlineColor: k,
26
+ outlineWidth: R,
27
+ outlineOffset: W,
28
+ outlineStyle: L,
29
+ listStyle: C,
30
+ display: w,
31
+ position: m,
32
+ width: P,
33
+ maxWidth: N,
34
+ minWidth: I,
35
+ height: j,
36
+ maxHeight: O,
37
+ minHeight: E
38
38
  }) {
39
39
  const e = {};
40
- return i !== void 0 ? Ro(e, i) : t !== void 0 && (e.background = A(t)), o !== void 0 && (e.backgroundColor = A(o)), d !== void 0 && (e.backgroundSize = Bo(d)), a !== void 0 && (e.backgroundRepeat = yo(a)), u !== void 0 && (e.backgroundPosition = xo(u)), mo(e, v), f !== void 0 && (e.boxShadow = l(f)), b !== void 0 && (e.color = l(b)), m !== void 0 && (e.cursor = m), c !== void 0 && (e.opacity = typeof c == "number" ? c : l(c)), s !== void 0 && (e.overflowX = s, e.overflowY = s), p !== void 0 && (e.overflowX = p), x !== void 0 && (e.overflowY = x), R !== void 0 && (e.pointerEvents = R), g !== void 0 && (e.aspectRatio = typeof g == "number" ? String(g) : l(g)), k !== void 0 && (e.transform = l(k)), S !== void 0 && (e.transformOrigin = l(S)), lo(e, G), bo(e, H), z !== void 0 && (e.outlineColor = l(z)), W !== void 0 && (e.outlineWidth = W), C !== void 0 && (e.outlineOffset = C), T !== void 0 && (e.outlineStyle = T), h?.position !== void 0 && (e.listStylePosition = h.position), h?.type !== void 0 && (e.listStyleType = h.type), L !== void 0 && (e.display = vo(L)), n?.type !== void 0 && (e.position = n.type), n?.top !== void 0 && (e.top = O(n.top)), n?.left !== void 0 && (e.left = O(n.left)), n?.right !== void 0 && (e.right = O(n.right)), n?.bottom !== void 0 && (e.bottom = O(n.bottom)), n?.zIndex !== void 0 && (e.zIndex = n.zIndex), N !== void 0 && (e.width = $(N)), V !== void 0 && (e.maxWidth = $(V)), w !== void 0 && (e.minWidth = $(w)), P !== void 0 && (e.height = $(P)), I !== void 0 && (e.maxHeight = $(I)), j !== void 0 && (e.minHeight = $(j)), Object.keys(e).length > 0 ? e : void 0;
40
+ return i !== void 0 ? wo(e, i) : t !== void 0 && (e.background = G(t)), o !== void 0 && (e.backgroundColor = G(o)), a !== void 0 && (e.backgroundSize = To(a)), n !== void 0 && (e.backgroundRepeat = Vo(n)), s !== void 0 && (e.backgroundPosition = Lo(s)), Ro(e, p), c !== void 0 && (e.boxShadow = $(c)), r !== void 0 && (e.color = $(r)), u !== void 0 && (e.cursor = u), l !== void 0 && (e.opacity = typeof l == "number" ? l : $(l)), d !== void 0 && (e.overflowX = d, e.overflowY = d), v !== void 0 && (e.overflowX = v), y !== void 0 && (e.overflowY = y), B !== void 0 && (e.pointerEvents = B), h !== void 0 && (e.aspectRatio = typeof h == "number" ? String(h) : $(h)), g !== void 0 && (e.transform = $(g)), b !== void 0 && (e.transformOrigin = $(b)), yo(e, S), ko(e, x), k !== void 0 && (e.outlineColor = $(k)), R !== void 0 && (e.outlineWidth = R), W !== void 0 && (e.outlineOffset = W), L !== void 0 && (e.outlineStyle = L), C?.position !== void 0 && (e.listStylePosition = C.position), C?.type !== void 0 && (e.listStyleType = C.type), w !== void 0 && (e.display = zo(w)), m?.type !== void 0 && (e.position = m.type), m?.top !== void 0 && (e.top = A(m.top)), m?.left !== void 0 && (e.left = A(m.left)), m?.right !== void 0 && (e.right = A(m.right)), m?.bottom !== void 0 && (e.bottom = A(m.bottom)), m?.zIndex !== void 0 && (e.zIndex = m.zIndex), P !== void 0 && (e.width = z(P)), N !== void 0 && (e.maxWidth = z(N)), I !== void 0 && (e.minWidth = z(I)), j !== void 0 && (e.height = z(j)), O !== void 0 && (e.maxHeight = z(O)), E !== void 0 && (e.minHeight = z(E)), Object.keys(e).length > 0 ? e : void 0;
41
41
  }
42
- function ao(t) {
43
- const o = [], i = {}, d = t.groupParent === !0;
44
- D(t, o, i, "", "", d);
45
- for (const a of ro) {
46
- const u = t[a];
47
- u && D(
48
- u,
49
- o,
50
- i,
51
- `${a}:`,
52
- `${a}-`,
53
- d
54
- );
42
+ function go(t) {
43
+ const o = [], i = {}, a = t.groupParent === !0;
44
+ K(t, o, i, { isGroupParent: a });
45
+ for (const n of H) {
46
+ const s = t[n];
47
+ s && K(s, o, i, {
48
+ classPrefix: `${n}:`,
49
+ variablePrefix: `${n}-`,
50
+ isGroupParent: a
51
+ });
55
52
  }
56
- return {
53
+ return ho(t, o, i), {
57
54
  className: o.join(" "),
58
55
  style: Object.keys(i).length > 0 ? i : void 0
59
56
  };
60
57
  }
61
- function D(t, o, i, d = "", a = "", u = !1) {
62
- const v = fo(t);
63
- for (const [f, b] of Object.entries(v ?? {})) {
64
- if (b == null)
58
+ const X = [
59
+ {
60
+ prop: "hover",
61
+ name: "hover",
62
+ variant: "[@media(hover:hover)_and_(pointer:fine)]:[&:hover:not(:disabled):not([aria-disabled=true]):not([data-disabled=true])]"
63
+ },
64
+ {
65
+ prop: "focusVisible",
66
+ name: "focus-visible",
67
+ variant: "[&:focus-visible:not(:disabled):not([aria-disabled=true]):not([data-disabled=true])]"
68
+ },
69
+ {
70
+ prop: "active",
71
+ name: "active",
72
+ variant: "[&:active:not(:disabled):not([aria-disabled=true]):not([data-disabled=true])]"
73
+ },
74
+ {
75
+ prop: "disabledStyle",
76
+ name: "disabled",
77
+ variant: "[&:is(:disabled,[aria-disabled=true],[data-disabled=true]):is(:disabled,[aria-disabled=true],[data-disabled=true])]"
78
+ }
79
+ ];
80
+ function ho(t, o, i) {
81
+ const a = [t, ...H.map((r) => t[r] ?? {})], n = /* @__PURE__ */ new Set();
82
+ for (const r of X)
83
+ for (const u of a)
84
+ Object.keys(F(u, r.prop)).forEach(
85
+ (l) => n.add(l)
86
+ ), r.prop === "hover" && u.hover === null && n.add("backgroundColor");
87
+ if (n.size === 0) return;
88
+ for (const r of n) {
89
+ const u = D(r);
90
+ for (const l of X)
91
+ o.push(`[--ui-state-${l.name}-${u}:initial]`);
92
+ }
93
+ let s = {};
94
+ const p = /* @__PURE__ */ new Map(), c = /* @__PURE__ */ new Map();
95
+ a.forEach((r, u) => {
96
+ s = { ...s, ...Y(r) };
97
+ const l = u === 0 ? "" : `${H[u - 1]}:`;
98
+ for (const d of X) {
99
+ const v = p.get(d.name) ?? {}, y = F(r, d.prop), B = r[d.prop] === null ? {} : { ...v, ...y }, h = c.get(d.name) ?? /* @__PURE__ */ new Set();
100
+ Object.keys(y).forEach((g) => h.add(g)), d.prop === "hover" && r.hover === null && h.add("backgroundColor"), p.set(d.name, B), c.set(d.name, h);
101
+ for (const g of h) {
102
+ const b = D(g), S = s[g] ?? vo(g, u), x = `--ui-state-normal-${u}-${b}`;
103
+ i[x] = String(S);
104
+ const k = `--${d.name}-${u}-${b}`;
105
+ i[k] = String(B[g] ?? S);
106
+ const R = `--ui-state-value-${d.name}-${u}-${b}`;
107
+ i[R] = B[g] === void 0 ? "initial" : `var(${k})`;
108
+ const W = `var(--ui-state-disabled-${b},var(--ui-state-active-${b},var(--ui-state-focus-visible-${b},var(--ui-state-hover-${b},var(${x})))))`;
109
+ o.push(
110
+ `${l}${d.variant}:[--ui-state-${d.name}-${b}:var(${R})]`,
111
+ `${l}${d.variant}:[${b}:${W}]`
112
+ );
113
+ }
114
+ }
115
+ });
116
+ }
117
+ function F(t, o) {
118
+ const i = t[o];
119
+ return i ? o !== "hover" && "outlineWidth" in i && i.outlineStyle === void 0 ? Y({ ...i, outlineStyle: "solid" }) : Y(i) : {};
120
+ }
121
+ function vo(t, o) {
122
+ const i = t === "color" ? "inherit" : "initial";
123
+ if (t !== "background" && t !== "backgroundColor" && t !== "color")
124
+ return i;
125
+ const a = t === "color" ? "color" : "bg";
126
+ let n = `var(--button-${a},${i})`;
127
+ for (let s = 0; s < o; s += 1)
128
+ n = `var(--${H[s]}-button-${a},${n})`;
129
+ return n;
130
+ }
131
+ function Y(t) {
132
+ const o = { ...Z(t) };
133
+ if (o.borderWidth !== void 0) {
134
+ const i = String(o.borderWidth).split(/\s+(?![^()]*\))/), a = i[0], n = i[1] ?? a, s = i[2] ?? a, p = i[3] ?? n;
135
+ Object.assign(o, {
136
+ borderTopWidth: a,
137
+ borderRightWidth: n,
138
+ borderBottomWidth: s,
139
+ borderLeftWidth: p
140
+ }), delete o.borderWidth;
141
+ }
142
+ if (o.borderRadius !== void 0) {
143
+ const [i, a = i] = String(o.borderRadius).split("/"), n = (c) => {
144
+ const r = c.trim().split(/\s+(?![^()]*\))/);
145
+ return [
146
+ r[0],
147
+ r[1] ?? r[0],
148
+ r[2] ?? r[0],
149
+ r[3] ?? r[1] ?? r[0]
150
+ ];
151
+ }, s = n(i), p = n(a);
152
+ ["TopLeft", "TopRight", "BottomRight", "BottomLeft"].forEach((c, r) => {
153
+ o[`border${c}Radius`] = `${s[r]} ${p[r]}`;
154
+ }), delete o.borderRadius;
155
+ }
156
+ return o;
157
+ }
158
+ function K(t, o, i, {
159
+ classPrefix: a = "",
160
+ variablePrefix: n = "",
161
+ isGroupParent: s = !1
162
+ } = {}) {
163
+ const p = Z(t);
164
+ for (const [c, r] of Object.entries(p ?? {})) {
165
+ if (r == null)
65
166
  continue;
66
- const m = String(b), c = uo(f, m);
67
- if (c) {
68
- o.push(`${d}${c}`);
167
+ const u = String(r), l = $o(c, u);
168
+ if (l) {
169
+ o.push(`${a}${l}`);
69
170
  continue;
70
171
  }
71
- const s = `${a}${so(f)}`, p = co(f, s);
72
- p && (i[`--${s}`] = m, o.push(`${d}${p}`));
172
+ const d = `${n}${D(c)}`, v = Bo(c, d);
173
+ v && (i[`--${d}`] = u, o.push(`${a}${v}`));
73
174
  }
74
175
  if (t.bgGroup !== void 0) {
75
- const f = `${a}group-background`;
76
- i[`--${f}`] = A(t.bgGroup), o.push(`${d}group-hover:[background:var(--${f})]`), u && o.push(`${d}hover:[background:var(--${f})]`);
176
+ const c = `${n}group-background`;
177
+ i[`--${c}`] = G(t.bgGroup), o.push(`${a}group-hover:[background:var(--${c})]`), s && o.push(`${a}hover:[background:var(--${c})]`);
77
178
  }
78
179
  }
79
- function uo(t, o) {
180
+ function $o(t, o) {
80
181
  if (t === "display")
81
182
  return o === "none" ? "hidden" : o;
82
183
  if (t === "position")
@@ -119,7 +220,7 @@ function uo(t, o) {
119
220
  if (t === "listStyleType")
120
221
  return `list-${o}`;
121
222
  }
122
- function co(t, o) {
223
+ function Bo(t, o) {
123
224
  const i = `var(--${o})`;
124
225
  return {
125
226
  background: `[background:${i}]`,
@@ -172,80 +273,80 @@ function co(t, o) {
172
273
  zIndex: `z-[${i}]`
173
274
  }[t];
174
275
  }
175
- function so(t) {
276
+ function D(t) {
176
277
  return t.replace(/[A-Z]/g, (o) => `-${o.toLowerCase()}`);
177
278
  }
178
- function lo(t, o) {
279
+ function yo(t, o) {
179
280
  if (o !== void 0) {
180
281
  if (Array.isArray(o)) {
181
- t.padding = o.map(r).join(" ");
282
+ t.padding = o.map(f).join(" ");
182
283
  return;
183
284
  }
184
285
  if (typeof o != "object") {
185
- t.padding = r(o);
286
+ t.padding = f(o);
186
287
  return;
187
288
  }
188
- "px" in o && o.px !== void 0 && (t.paddingLeft = r(o.px), t.paddingRight = r(o.px)), "py" in o && o.py !== void 0 && (t.paddingTop = r(o.py), t.paddingBottom = r(o.py)), "pt" in o && o.pt !== void 0 && (t.paddingTop = r(o.pt)), "pb" in o && o.pb !== void 0 && (t.paddingBottom = r(o.pb)), "pl" in o && o.pl !== void 0 && (t.paddingLeft = r(o.pl)), "pr" in o && o.pr !== void 0 && (t.paddingRight = r(o.pr));
289
+ "px" in o && o.px !== void 0 && (t.paddingLeft = f(o.px), t.paddingRight = f(o.px)), "py" in o && o.py !== void 0 && (t.paddingTop = f(o.py), t.paddingBottom = f(o.py)), "pt" in o && o.pt !== void 0 && (t.paddingTop = f(o.pt)), "pb" in o && o.pb !== void 0 && (t.paddingBottom = f(o.pb)), "pl" in o && o.pl !== void 0 && (t.paddingLeft = f(o.pl)), "pr" in o && o.pr !== void 0 && (t.paddingRight = f(o.pr));
189
290
  }
190
291
  }
191
- function bo(t, o) {
292
+ function ko(t, o) {
192
293
  if (o !== void 0) {
193
294
  if (Array.isArray(o)) {
194
- t.margin = o.map(r).join(" ");
295
+ t.margin = o.map(f).join(" ");
195
296
  return;
196
297
  }
197
298
  if (typeof o != "object") {
198
- t.margin = r(o);
299
+ t.margin = f(o);
199
300
  return;
200
301
  }
201
- "mx" in o && o.mx !== void 0 && (t.marginLeft = r(o.mx), t.marginRight = r(o.mx)), "my" in o && o.my !== void 0 && (t.marginTop = r(o.my), t.marginBottom = r(o.my)), "mt" in o && o.mt !== void 0 && (t.marginTop = r(o.mt)), "mb" in o && o.mb !== void 0 && (t.marginBottom = r(o.mb)), "ml" in o && o.ml !== void 0 && (t.marginLeft = r(o.ml)), "mr" in o && o.mr !== void 0 && (t.marginRight = r(o.mr));
302
+ "mx" in o && o.mx !== void 0 && (t.marginLeft = f(o.mx), t.marginRight = f(o.mx)), "my" in o && o.my !== void 0 && (t.marginTop = f(o.my), t.marginBottom = f(o.my)), "mt" in o && o.mt !== void 0 && (t.marginTop = f(o.mt)), "mb" in o && o.mb !== void 0 && (t.marginBottom = f(o.mb)), "ml" in o && o.ml !== void 0 && (t.marginLeft = f(o.ml)), "mr" in o && o.mr !== void 0 && (t.marginRight = f(o.mr));
202
303
  }
203
304
  }
204
- function mo(t, o) {
205
- o && (o.radius !== void 0 && po(t, o.radius), o.color !== void 0 && (t.borderColor = l(o.color)), o.width !== void 0 && go(t, o.width), o.style !== void 0 && (t.borderStyle = o.style));
305
+ function Ro(t, o) {
306
+ o && (o.radius !== void 0 && So(t, o.radius), o.color !== void 0 && (t.borderColor = $(o.color)), o.width !== void 0 && xo(t, o.width), o.style !== void 0 && (t.borderStyle = o.style));
206
307
  }
207
- function po(t, o) {
208
- if (ho(o)) {
209
- o.topLeft !== void 0 && (t.borderTopLeftRadius = B(o.topLeft)), o.topRight !== void 0 && (t.borderTopRightRadius = B(o.topRight)), o.bottomLeft !== void 0 && (t.borderBottomLeftRadius = B(o.bottomLeft)), o.bottomRight !== void 0 && (t.borderBottomRightRadius = B(o.bottomRight));
308
+ function So(t, o) {
309
+ if (Wo(o)) {
310
+ o.topLeft !== void 0 && (t.borderTopLeftRadius = T(o.topLeft)), o.topRight !== void 0 && (t.borderTopRightRadius = T(o.topRight)), o.bottomLeft !== void 0 && (t.borderBottomLeftRadius = T(o.bottomLeft)), o.bottomRight !== void 0 && (t.borderBottomRightRadius = T(o.bottomRight));
210
311
  return;
211
312
  }
212
- t.borderRadius = B(o);
313
+ t.borderRadius = T(o);
213
314
  }
214
- function go(t, o) {
215
- if ($o(o)) {
216
- o.top !== void 0 && (t.borderTopWidth = y(o.top)), o.bottom !== void 0 && (t.borderBottomWidth = y(o.bottom)), o.left !== void 0 && (t.borderLeftWidth = y(o.left)), o.right !== void 0 && (t.borderRightWidth = y(o.right));
315
+ function xo(t, o) {
316
+ if (Co(o)) {
317
+ o.top !== void 0 && (t.borderTopWidth = V(o.top)), o.bottom !== void 0 && (t.borderBottomWidth = V(o.bottom)), o.left !== void 0 && (t.borderLeftWidth = V(o.left)), o.right !== void 0 && (t.borderRightWidth = V(o.right));
217
318
  return;
218
319
  }
219
- t.borderWidth = y(o);
320
+ t.borderWidth = V(o);
220
321
  }
221
- function ho(t) {
322
+ function Wo(t) {
222
323
  return typeof t == "object";
223
324
  }
224
- function $o(t) {
325
+ function Co(t) {
225
326
  return typeof t == "object";
226
327
  }
227
- function B(t) {
328
+ function T(t) {
228
329
  return t.startsWith("--") ? `var(${t})` : t;
229
330
  }
230
- function y(t) {
331
+ function V(t) {
231
332
  return t.startsWith("--") ? `var(${t})` : t;
232
333
  }
233
- function vo(t) {
334
+ function zo(t) {
234
335
  return t === "hidden" ? "none" : t;
235
336
  }
236
- function O(t) {
337
+ function A(t) {
237
338
  return typeof t == "number" ? `${t}px` : t;
238
339
  }
239
- function r(t) {
340
+ function f(t) {
240
341
  return typeof t == "number" ? `${t}px` : t;
241
342
  }
242
- function $(t) {
343
+ function z(t) {
243
344
  return typeof t == "number" ? `${t}px` : t;
244
345
  }
245
- function Bo(t) {
346
+ function To(t) {
246
347
  return typeof t == "number" ? `${t}px` : t;
247
348
  }
248
- function yo(t) {
349
+ function Vo(t) {
249
350
  return {
250
351
  "no-repeat": "no-repeat",
251
352
  repeat: "repeat",
@@ -255,127 +356,135 @@ function yo(t) {
255
356
  "repeat-y": "repeat-y"
256
357
  }[t];
257
358
  }
258
- function xo(t) {
359
+ function Lo(t) {
259
360
  return t.replace("-", " ");
260
361
  }
261
- function A(t) {
262
- return l(t);
362
+ function G(t) {
363
+ return $(t);
263
364
  }
264
- function Ro(t, o) {
265
- const i = A(o);
266
- if (ko(o)) {
365
+ function wo(t, o) {
366
+ const i = G(o);
367
+ if (Po(o)) {
267
368
  t.background = i;
268
369
  return;
269
370
  }
270
371
  t.backgroundColor = i;
271
372
  }
272
- function ko(t) {
373
+ function Po(t) {
273
374
  const o = t.trim().toLowerCase();
274
375
  return o.includes("url(") || o.includes("gradient(") || o.includes("image-set(") || o.includes("cross-fade(") || o.includes("element(") || o.includes("paint(");
275
376
  }
276
- function l(t) {
377
+ function $(t) {
277
378
  return t.startsWith("--") ? `var(${t})` : t;
278
379
  }
279
- function So(t, o) {
380
+ function No(t, o) {
280
381
  const {
281
382
  as: i,
282
- children: d,
283
- className: a,
284
- background: u,
285
- backgroundColor: v,
286
- bg: f,
287
- bgSize: b,
288
- bgRepeat: m,
289
- bgGroup: c,
290
- groupParent: s,
291
- bgPosition: p,
292
- border: x,
293
- boxShadow: R,
294
- color: g,
295
- cursor: k,
296
- opacity: S,
297
- overflow: G,
298
- overflowX: H,
299
- overflowY: z,
300
- pointerEvents: W,
301
- aspectRatio: C,
302
- transform: T,
303
- transformOrigin: h,
304
- p: L,
305
- m: n,
306
- outlineColor: N,
307
- outlineWidth: V,
308
- outlineOffset: w,
309
- outlineStyle: P,
310
- listStyle: I,
311
- display: j,
383
+ children: a,
384
+ className: n,
385
+ background: s,
386
+ backgroundColor: p,
387
+ bg: c,
388
+ bgSize: r,
389
+ bgRepeat: u,
390
+ bgGroup: l,
391
+ groupParent: d,
392
+ bgPosition: v,
393
+ border: y,
394
+ boxShadow: B,
395
+ color: h,
396
+ cursor: g,
397
+ opacity: b,
398
+ overflow: S,
399
+ overflowX: x,
400
+ overflowY: k,
401
+ pointerEvents: R,
402
+ aspectRatio: W,
403
+ transform: L,
404
+ transformOrigin: C,
405
+ p: w,
406
+ m,
407
+ outlineColor: P,
408
+ outlineWidth: N,
409
+ outlineOffset: I,
410
+ outlineStyle: j,
411
+ listStyle: O,
412
+ display: E,
312
413
  position: e,
313
- width: E,
314
- maxWidth: K,
315
- minWidth: M,
316
- height: Z,
317
- maxHeight: q,
318
- minHeight: F,
319
- md: J,
320
- lg: Q,
321
- xl: U,
322
- style: Y,
323
- ..._
324
- } = t, oo = i ?? "div", X = ao({
325
- background: u,
326
- backgroundColor: v,
327
- bg: f,
328
- bgSize: b,
329
- bgRepeat: m,
330
- bgGroup: c,
331
- groupParent: s,
332
- bgPosition: p,
333
- border: x,
334
- boxShadow: R,
335
- color: g,
336
- cursor: k,
337
- opacity: S,
338
- overflow: G,
339
- overflowX: H,
340
- overflowY: z,
341
- pointerEvents: W,
342
- aspectRatio: C,
343
- transform: T,
344
- transformOrigin: h,
345
- p: L,
346
- m: n,
347
- outlineColor: N,
348
- outlineWidth: V,
349
- outlineOffset: w,
350
- outlineStyle: P,
351
- listStyle: I,
352
- display: j,
414
+ width: q,
415
+ maxWidth: J,
416
+ minWidth: Q,
417
+ height: U,
418
+ hover: oo,
419
+ focusVisible: to,
420
+ active: io,
421
+ disabledStyle: eo,
422
+ maxHeight: ro,
423
+ minHeight: no,
424
+ md: ao,
425
+ lg: so,
426
+ xl: fo,
427
+ style: _,
428
+ ...co
429
+ } = t, uo = i ?? "div", M = go({
430
+ hover: oo,
431
+ focusVisible: to,
432
+ active: io,
433
+ disabledStyle: eo,
434
+ background: s,
435
+ backgroundColor: p,
436
+ bg: c,
437
+ bgSize: r,
438
+ bgRepeat: u,
439
+ bgGroup: l,
440
+ groupParent: d,
441
+ bgPosition: v,
442
+ border: y,
443
+ boxShadow: B,
444
+ color: h,
445
+ cursor: g,
446
+ opacity: b,
447
+ overflow: S,
448
+ overflowX: x,
449
+ overflowY: k,
450
+ pointerEvents: R,
451
+ aspectRatio: W,
452
+ transform: L,
453
+ transformOrigin: C,
454
+ p: w,
455
+ m,
456
+ outlineColor: P,
457
+ outlineWidth: N,
458
+ outlineOffset: I,
459
+ outlineStyle: j,
460
+ listStyle: O,
461
+ display: E,
353
462
  position: e,
354
- width: E,
355
- maxWidth: K,
356
- minWidth: M,
357
- height: Z,
358
- maxHeight: q,
359
- minHeight: F,
360
- md: J,
361
- lg: Q,
362
- xl: U
363
- }), to = X.style || Y ? {
364
- ...X.style,
365
- ...Y
463
+ width: q,
464
+ maxWidth: J,
465
+ minWidth: Q,
466
+ height: U,
467
+ maxHeight: ro,
468
+ minHeight: no,
469
+ md: ao,
470
+ lg: so,
471
+ xl: fo
472
+ }), lo = M.style || _ ? {
473
+ ...M.style,
474
+ ..._
366
475
  } : void 0;
367
- return /* @__PURE__ */ io(
368
- oo,
476
+ return /* @__PURE__ */ bo(
477
+ uo,
369
478
  {
370
- className: no(X.className, s && "group", a),
479
+ className: po(M.className, d && "group", n),
371
480
  ref: o,
372
- style: to,
373
- ..._,
374
- children: d
481
+ style: lo,
482
+ ...co,
483
+ children: a
375
484
  }
376
485
  );
377
486
  }
378
- const Lo = eo(So);
487
+ const Ao = mo(No);
379
488
  export {
380
- Lo as Box
489
+ Ao as Box
381
490
  };
@@ -12,7 +12,10 @@ export type ButtonColorBreakpointProps = {
12
12
  bg?: ButtonColorValue;
13
13
  /** Цвет текста и иконок кнопки поверх цвета из variant. */
14
14
  color?: ButtonColorValue;
15
- /** Background кнопки при hover. Если не передан, при `bg` используется тот же цвет. */
15
+ /**
16
+ * Background кнопки при hover. Если не передан, при `bg` используется тот же цвет.
17
+ * @deprecated Используйте `hover={{ bg: value }}`; новый API имеет приоритет.
18
+ */
16
19
  hoverBg?: ButtonColorValue;
17
20
  /** Background кнопки при active. Если не передан, при `bg` используется hover/base цвет. */
18
21
  activeBg?: ButtonColorValue;