@shmidko61/lc-ui-kit 0.11.0 → 0.13.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 (62) hide show
  1. package/README.md +89 -0
  2. package/dist/alert/alert.d.ts +5 -0
  3. package/dist/alert/helpers/alert.helpers.d.ts +27 -0
  4. package/dist/alert/helpers/index.d.ts +1 -0
  5. package/dist/alert/index.d.ts +2 -0
  6. package/dist/alert/types/alert.types.d.ts +25 -0
  7. package/dist/alert/types/index.d.ts +1 -0
  8. package/dist/alert-CTIWpkmD.js +128 -0
  9. package/dist/alert-DTc0Usg-.cjs +1 -0
  10. package/dist/alert.cjs +1 -0
  11. package/dist/alert.js +4 -0
  12. package/dist/box/box.d.ts +2 -2
  13. package/dist/box/box.types.d.ts +21 -1
  14. package/dist/box/index.d.ts +1 -0
  15. package/dist/box.cjs +1 -1
  16. package/dist/box.js +262 -203
  17. package/dist/button/button.helpers.d.ts +1 -1
  18. package/dist/button/index.d.ts +1 -0
  19. package/dist/button.cjs +1 -1
  20. package/dist/button.js +152 -141
  21. package/dist/flex/flex.d.ts +1 -1
  22. package/dist/flex/flex.types.d.ts +1 -1
  23. package/dist/flex/index.d.ts +1 -0
  24. package/dist/flex.cjs +1 -1
  25. package/dist/flex.js +18 -18
  26. package/dist/grid.cjs +1 -1
  27. package/dist/grid.js +57 -57
  28. package/dist/icons/icons.d.ts +8 -0
  29. package/dist/icons/index.d.ts +1 -0
  30. package/dist/icons.cjs +1 -1
  31. package/dist/icons.js +40 -36
  32. package/dist/index.cjs +1 -1
  33. package/dist/index.d.ts +7 -3
  34. package/dist/index.js +101 -90
  35. package/dist/input/input.types.d.ts +1 -1
  36. package/dist/notification-provider/helpers/index.d.ts +1 -0
  37. package/dist/notification-provider/helpers/notification-provider.helpers.d.ts +8 -0
  38. package/dist/notification-provider/hooks/index.d.ts +1 -0
  39. package/dist/notification-provider/hooks/notification-provider.hooks.d.ts +5 -0
  40. package/dist/notification-provider/index.d.ts +3 -0
  41. package/dist/notification-provider/notification-provider.d.ts +4 -0
  42. package/dist/notification-provider/types/index.d.ts +1 -0
  43. package/dist/notification-provider/types/notification-provider.types.d.ts +61 -0
  44. package/dist/notification-provider-C2ypXy2W.cjs +1 -0
  45. package/dist/notification-provider-WLUaZyMB.js +113 -0
  46. package/dist/notification-provider.cjs +1 -0
  47. package/dist/notification-provider.js +6 -0
  48. package/dist/shared/responsive-style/index.d.ts +1 -0
  49. package/dist/shared/responsive-style/responsive-style.types.d.ts +1 -1
  50. package/dist/styles.css +1 -1
  51. package/dist/toast/index.d.ts +2 -0
  52. package/dist/toast/toast.d.ts +5 -0
  53. package/dist/toast/types/index.d.ts +1 -0
  54. package/dist/toast/types/toast.types.d.ts +10 -0
  55. package/dist/toast-CH8VqvLC.cjs +1 -0
  56. package/dist/toast-DpjugQ8H.js +49 -0
  57. package/dist/toast.cjs +1 -0
  58. package/dist/toast.js +4 -0
  59. package/dist/typography/index.d.ts +1 -0
  60. package/dist/typography/typography.helpers.d.ts +1 -1
  61. package/package.json +35 -4
  62. package/dist/vite.config.d.ts +0 -2
package/dist/box.js CHANGED
@@ -1,130 +1,183 @@
1
- import { jsx as fo } from "react/jsx-runtime";
2
- import { forwardRef as so } from "react";
3
- import { a as W, c as uo } from "./responsive-style.config-DFuATrIM.js";
4
- function F({
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,
8
+ bgSize: a,
9
+ bgRepeat: n,
10
10
  bgPosition: s,
11
- border: c,
12
- boxShadow: n,
13
- color: e,
14
- cursor: g,
15
- opacity: u,
16
- overflow: b,
17
- overflowX: m,
18
- overflowY: v,
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
19
  pointerEvents: B,
20
- aspectRatio: p,
21
- transform: y,
22
- transformOrigin: h,
23
- p: E,
24
- m: G,
25
- outlineColor: z,
26
- outlineWidth: C,
27
- outlineOffset: T,
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
28
  outlineStyle: L,
29
- listStyle: R,
30
- display: P,
31
- position: l,
32
- width: w,
29
+ listStyle: C,
30
+ display: w,
31
+ position: m,
32
+ width: P,
33
33
  maxWidth: N,
34
- minWidth: V,
34
+ minWidth: I,
35
35
  height: j,
36
- maxHeight: I,
37
- minHeight: O
36
+ maxHeight: O,
37
+ minHeight: E
38
38
  }) {
39
- const r = {};
40
- return i !== void 0 ? Wo(r, i) : t !== void 0 && (r.background = A(t)), o !== void 0 && (r.backgroundColor = A(o)), d !== void 0 && (r.backgroundSize = ko(d)), a !== void 0 && (r.backgroundRepeat = xo(a)), s !== void 0 && (r.backgroundPosition = So(s)), ho(r, c), n !== void 0 && (r.boxShadow = $(n)), e !== void 0 && (r.color = $(e)), g !== void 0 && (r.cursor = g), u !== void 0 && (r.opacity = typeof u == "number" ? u : $(u)), b !== void 0 && (r.overflowX = b, r.overflowY = b), m !== void 0 && (r.overflowX = m), v !== void 0 && (r.overflowY = v), B !== void 0 && (r.pointerEvents = B), p !== void 0 && (r.aspectRatio = typeof p == "number" ? String(p) : $(p)), y !== void 0 && (r.transform = $(y)), h !== void 0 && (r.transformOrigin = $(h)), po(r, E), go(r, G), z !== void 0 && (r.outlineColor = $(z)), C !== void 0 && (r.outlineWidth = C), T !== void 0 && (r.outlineOffset = T), L !== void 0 && (r.outlineStyle = L), R?.position !== void 0 && (r.listStylePosition = R.position), R?.type !== void 0 && (r.listStyleType = R.type), P !== void 0 && (r.display = Ro(P)), l?.type !== void 0 && (r.position = l.type), l?.top !== void 0 && (r.top = H(l.top)), l?.left !== void 0 && (r.left = H(l.left)), l?.right !== void 0 && (r.right = H(l.right)), l?.bottom !== void 0 && (r.bottom = H(l.bottom)), l?.zIndex !== void 0 && (r.zIndex = l.zIndex), w !== void 0 && (r.width = k(w)), N !== void 0 && (r.maxWidth = k(N)), V !== void 0 && (r.minWidth = k(V)), j !== void 0 && (r.height = k(j)), I !== void 0 && (r.maxHeight = k(I)), O !== void 0 && (r.minHeight = k(O)), Object.keys(r).length > 0 ? r : void 0;
39
+ const e = {};
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 co(t) {
43
- const o = [], i = {}, d = t.groupParent === !0;
44
- _(t, o, i, "", "", d);
45
- for (const a of W) {
46
- const s = t[a];
47
- s && _(
48
- s,
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 lo(t, o, i), {
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 lo(t, o, i) {
62
- const d = [t, ...W.map((n) => t[n] ?? {})], a = /* @__PURE__ */ new Set();
63
- for (const n of d)
64
- n.hover === null && a.add("backgroundColor"), Object.keys(Y(n.hover ?? {})).forEach((e) => a.add(e));
65
- if (a.size === 0) return;
66
- let s = {}, c = {};
67
- d.forEach((n, e) => {
68
- s = { ...s, ...Y(n) }, n.hover === null ? c = {} : c = { ...c, ...Y(n.hover ?? {}) };
69
- const g = e === 0 ? "" : `${W[e - 1]}:`;
70
- for (const u of a) {
71
- const b = K(u), m = `--hover-${e}-${b}`, v = u === "color" ? "inherit" : "initial";
72
- let B = `var(--button-bg,${v})`, p = `var(--button-color,${v})`;
73
- for (let h = 0; h < e; h += 1)
74
- B = `var(--${W[h]}-button-bg,${B})`, p = `var(--${W[h]}-button-color,${p})`;
75
- const y = u === "background" || u === "backgroundColor" ? B : u === "color" ? p : v;
76
- i[m] = String(c[u] ?? s[u] ?? y), o.push(
77
- `${g}[@media(hover:hover)_and_(pointer:fine)]:[&:hover:not(:disabled):not([aria-disabled=true]):not([data-disabled=true])]:[${b}:var(${m})]`
78
- );
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
+ }
79
114
  }
80
115
  });
81
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
+ }
82
131
  function Y(t) {
83
- const o = { ...F(t) };
132
+ const o = { ...Z(t) };
84
133
  if (o.borderWidth !== void 0) {
85
- const i = String(o.borderWidth).split(/\s+(?![^()]*\))/), d = i[0], a = i[1] ?? d, s = i[2] ?? d, c = i[3] ?? a;
134
+ const i = String(o.borderWidth).split(/\s+(?![^()]*\))/), a = i[0], n = i[1] ?? a, s = i[2] ?? a, p = i[3] ?? n;
86
135
  Object.assign(o, {
87
- borderTopWidth: d,
88
- borderRightWidth: a,
136
+ borderTopWidth: a,
137
+ borderRightWidth: n,
89
138
  borderBottomWidth: s,
90
- borderLeftWidth: c
139
+ borderLeftWidth: p
91
140
  }), delete o.borderWidth;
92
141
  }
93
142
  if (o.borderRadius !== void 0) {
94
- const [i, d = i] = String(o.borderRadius).split("/"), a = (n) => {
95
- const e = n.trim().split(/\s+(?![^()]*\))/);
143
+ const [i, a = i] = String(o.borderRadius).split("/"), n = (c) => {
144
+ const r = c.trim().split(/\s+(?![^()]*\))/);
96
145
  return [
97
- e[0],
98
- e[1] ?? e[0],
99
- e[2] ?? e[0],
100
- e[3] ?? e[1] ?? e[0]
146
+ r[0],
147
+ r[1] ?? r[0],
148
+ r[2] ?? r[0],
149
+ r[3] ?? r[1] ?? r[0]
101
150
  ];
102
- }, s = a(i), c = a(d);
103
- ["TopLeft", "TopRight", "BottomRight", "BottomLeft"].forEach((n, e) => {
104
- o[`border${n}Radius`] = `${s[e]} ${c[e]}`;
151
+ }, s = n(i), p = n(a);
152
+ ["TopLeft", "TopRight", "BottomRight", "BottomLeft"].forEach((c, r) => {
153
+ o[`border${c}Radius`] = `${s[r]} ${p[r]}`;
105
154
  }), delete o.borderRadius;
106
155
  }
107
156
  return o;
108
157
  }
109
- function _(t, o, i, d = "", a = "", s = !1) {
110
- const c = F(t);
111
- for (const [n, e] of Object.entries(c ?? {})) {
112
- if (e == null)
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)
113
166
  continue;
114
- const g = String(e), u = bo(n, g);
115
- if (u) {
116
- o.push(`${d}${u}`);
167
+ const u = String(r), l = $o(c, u);
168
+ if (l) {
169
+ o.push(`${a}${l}`);
117
170
  continue;
118
171
  }
119
- const b = `${a}${K(n)}`, m = mo(n, b);
120
- m && (i[`--${b}`] = g, o.push(`${d}${m}`));
172
+ const d = `${n}${D(c)}`, v = Bo(c, d);
173
+ v && (i[`--${d}`] = u, o.push(`${a}${v}`));
121
174
  }
122
175
  if (t.bgGroup !== void 0) {
123
- const n = `${a}group-background`;
124
- i[`--${n}`] = A(t.bgGroup), o.push(`${d}group-hover:[background:var(--${n})]`), s && o.push(`${d}hover:[background:var(--${n})]`);
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})]`);
125
178
  }
126
179
  }
127
- function bo(t, o) {
180
+ function $o(t, o) {
128
181
  if (t === "display")
129
182
  return o === "none" ? "hidden" : o;
130
183
  if (t === "position")
@@ -167,7 +220,7 @@ function bo(t, o) {
167
220
  if (t === "listStyleType")
168
221
  return `list-${o}`;
169
222
  }
170
- function mo(t, o) {
223
+ function Bo(t, o) {
171
224
  const i = `var(--${o})`;
172
225
  return {
173
226
  background: `[background:${i}]`,
@@ -220,10 +273,10 @@ function mo(t, o) {
220
273
  zIndex: `z-[${i}]`
221
274
  }[t];
222
275
  }
223
- function K(t) {
276
+ function D(t) {
224
277
  return t.replace(/[A-Z]/g, (o) => `-${o.toLowerCase()}`);
225
278
  }
226
- function po(t, o) {
279
+ function yo(t, o) {
227
280
  if (o !== void 0) {
228
281
  if (Array.isArray(o)) {
229
282
  t.padding = o.map(f).join(" ");
@@ -236,7 +289,7 @@ function po(t, o) {
236
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));
237
290
  }
238
291
  }
239
- function go(t, o) {
292
+ function ko(t, o) {
240
293
  if (o !== void 0) {
241
294
  if (Array.isArray(o)) {
242
295
  t.margin = o.map(f).join(" ");
@@ -249,51 +302,51 @@ function go(t, o) {
249
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));
250
303
  }
251
304
  }
252
- function ho(t, o) {
253
- o && (o.radius !== void 0 && $o(t, o.radius), o.color !== void 0 && (t.borderColor = $(o.color)), o.width !== void 0 && vo(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));
254
307
  }
255
- function $o(t, o) {
256
- if (Bo(o)) {
257
- o.topLeft !== void 0 && (t.borderTopLeftRadius = x(o.topLeft)), o.topRight !== void 0 && (t.borderTopRightRadius = x(o.topRight)), o.bottomLeft !== void 0 && (t.borderBottomLeftRadius = x(o.bottomLeft)), o.bottomRight !== void 0 && (t.borderBottomRightRadius = x(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));
258
311
  return;
259
312
  }
260
- t.borderRadius = x(o);
313
+ t.borderRadius = T(o);
261
314
  }
262
- function vo(t, o) {
263
- if (yo(o)) {
264
- o.top !== void 0 && (t.borderTopWidth = S(o.top)), o.bottom !== void 0 && (t.borderBottomWidth = S(o.bottom)), o.left !== void 0 && (t.borderLeftWidth = S(o.left)), o.right !== void 0 && (t.borderRightWidth = S(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));
265
318
  return;
266
319
  }
267
- t.borderWidth = S(o);
320
+ t.borderWidth = V(o);
268
321
  }
269
- function Bo(t) {
322
+ function Wo(t) {
270
323
  return typeof t == "object";
271
324
  }
272
- function yo(t) {
325
+ function Co(t) {
273
326
  return typeof t == "object";
274
327
  }
275
- function x(t) {
328
+ function T(t) {
276
329
  return t.startsWith("--") ? `var(${t})` : t;
277
330
  }
278
- function S(t) {
331
+ function V(t) {
279
332
  return t.startsWith("--") ? `var(${t})` : t;
280
333
  }
281
- function Ro(t) {
334
+ function zo(t) {
282
335
  return t === "hidden" ? "none" : t;
283
336
  }
284
- function H(t) {
337
+ function A(t) {
285
338
  return typeof t == "number" ? `${t}px` : t;
286
339
  }
287
340
  function f(t) {
288
341
  return typeof t == "number" ? `${t}px` : t;
289
342
  }
290
- function k(t) {
343
+ function z(t) {
291
344
  return typeof t == "number" ? `${t}px` : t;
292
345
  }
293
- function ko(t) {
346
+ function To(t) {
294
347
  return typeof t == "number" ? `${t}px` : t;
295
348
  }
296
- function xo(t) {
349
+ function Vo(t) {
297
350
  return {
298
351
  "no-repeat": "no-repeat",
299
352
  repeat: "repeat",
@@ -303,129 +356,135 @@ function xo(t) {
303
356
  "repeat-y": "repeat-y"
304
357
  }[t];
305
358
  }
306
- function So(t) {
359
+ function Lo(t) {
307
360
  return t.replace("-", " ");
308
361
  }
309
- function A(t) {
362
+ function G(t) {
310
363
  return $(t);
311
364
  }
312
- function Wo(t, o) {
313
- const i = A(o);
314
- if (zo(o)) {
365
+ function wo(t, o) {
366
+ const i = G(o);
367
+ if (Po(o)) {
315
368
  t.background = i;
316
369
  return;
317
370
  }
318
371
  t.backgroundColor = i;
319
372
  }
320
- function zo(t) {
373
+ function Po(t) {
321
374
  const o = t.trim().toLowerCase();
322
375
  return o.includes("url(") || o.includes("gradient(") || o.includes("image-set(") || o.includes("cross-fade(") || o.includes("element(") || o.includes("paint(");
323
376
  }
324
377
  function $(t) {
325
378
  return t.startsWith("--") ? `var(${t})` : t;
326
379
  }
327
- function Co(t, o) {
380
+ function No(t, o) {
328
381
  const {
329
382
  as: i,
330
- children: d,
331
- className: a,
383
+ children: a,
384
+ className: n,
332
385
  background: s,
333
- backgroundColor: c,
334
- bg: n,
335
- bgSize: e,
336
- bgRepeat: g,
337
- bgGroup: u,
338
- groupParent: b,
339
- bgPosition: m,
340
- border: v,
386
+ backgroundColor: p,
387
+ bg: c,
388
+ bgSize: r,
389
+ bgRepeat: u,
390
+ bgGroup: l,
391
+ groupParent: d,
392
+ bgPosition: v,
393
+ border: y,
341
394
  boxShadow: B,
342
- color: p,
343
- cursor: y,
344
- opacity: h,
345
- overflow: E,
346
- overflowX: G,
347
- overflowY: z,
348
- pointerEvents: C,
349
- aspectRatio: T,
395
+ color: h,
396
+ cursor: g,
397
+ opacity: b,
398
+ overflow: S,
399
+ overflowX: x,
400
+ overflowY: k,
401
+ pointerEvents: R,
402
+ aspectRatio: W,
350
403
  transform: L,
351
- transformOrigin: R,
352
- p: P,
353
- m: l,
354
- outlineColor: w,
404
+ transformOrigin: C,
405
+ p: w,
406
+ m,
407
+ outlineColor: P,
355
408
  outlineWidth: N,
356
- outlineOffset: V,
409
+ outlineOffset: I,
357
410
  outlineStyle: j,
358
- listStyle: I,
359
- display: O,
360
- position: r,
361
- width: M,
362
- maxWidth: Z,
363
- minWidth: q,
364
- height: J,
365
- hover: Q,
366
- maxHeight: U,
367
- minHeight: oo,
368
- md: to,
369
- lg: io,
370
- xl: ro,
371
- style: D,
372
- ...eo
373
- } = t, no = i ?? "div", X = co({
374
- hover: Q,
411
+ listStyle: O,
412
+ display: E,
413
+ position: e,
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,
375
434
  background: s,
376
- backgroundColor: c,
377
- bg: n,
378
- bgSize: e,
379
- bgRepeat: g,
380
- bgGroup: u,
381
- groupParent: b,
382
- bgPosition: m,
383
- border: v,
435
+ backgroundColor: p,
436
+ bg: c,
437
+ bgSize: r,
438
+ bgRepeat: u,
439
+ bgGroup: l,
440
+ groupParent: d,
441
+ bgPosition: v,
442
+ border: y,
384
443
  boxShadow: B,
385
- color: p,
386
- cursor: y,
387
- opacity: h,
388
- overflow: E,
389
- overflowX: G,
390
- overflowY: z,
391
- pointerEvents: C,
392
- aspectRatio: T,
444
+ color: h,
445
+ cursor: g,
446
+ opacity: b,
447
+ overflow: S,
448
+ overflowX: x,
449
+ overflowY: k,
450
+ pointerEvents: R,
451
+ aspectRatio: W,
393
452
  transform: L,
394
- transformOrigin: R,
395
- p: P,
396
- m: l,
397
- outlineColor: w,
453
+ transformOrigin: C,
454
+ p: w,
455
+ m,
456
+ outlineColor: P,
398
457
  outlineWidth: N,
399
- outlineOffset: V,
458
+ outlineOffset: I,
400
459
  outlineStyle: j,
401
- listStyle: I,
402
- display: O,
403
- position: r,
404
- width: M,
405
- maxWidth: Z,
406
- minWidth: q,
407
- height: J,
408
- maxHeight: U,
409
- minHeight: oo,
410
- md: to,
411
- lg: io,
412
- xl: ro
413
- }), ao = X.style || D ? {
414
- ...X.style,
415
- ...D
460
+ listStyle: O,
461
+ display: E,
462
+ position: e,
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
+ ..._
416
475
  } : void 0;
417
- return /* @__PURE__ */ fo(
418
- no,
476
+ return /* @__PURE__ */ bo(
477
+ uo,
419
478
  {
420
- className: uo(X.className, b && "group", a),
479
+ className: po(M.className, d && "group", n),
421
480
  ref: o,
422
- style: ao,
423
- ...eo,
424
- children: d
481
+ style: lo,
482
+ ...co,
483
+ children: a
425
484
  }
426
485
  );
427
486
  }
428
- const No = so(Co);
487
+ const Ao = mo(No);
429
488
  export {
430
- No as Box
489
+ Ao as Box
431
490
  };
@@ -1,7 +1,7 @@
1
1
  import { CSSProperties } from 'react';
2
2
  import { BoxBreakpointProps } from '../box/box';
3
3
  import { ResponsiveStyleBreakpoint } from '../shared/responsive-style/responsive-style.types';
4
- import { TypographyFontSizeValue, TypographyFontWeightValue, TypographyLineHeightValue, UiKitBackgroundValue } from '../types';
4
+ import { TypographyFontSizeValue, TypographyFontWeightValue, TypographyLineHeightValue, UiKitBackgroundValue } from '../types/index';
5
5
  export type ButtonAlignContent = 'start' | 'center' | 'end';
6
6
  export type ButtonAlignContentBreakpointProps = {
7
7
  alignContent?: ButtonAlignContent;
@@ -0,0 +1 @@
1
+ export * from './button';