welcome-ui 0.0.0-dev.1759227191675 → 0.0.0-dev.1759392523253

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 (95) hide show
  1. package/dist/4CMBR7SL-DXQR7a9T.js +308 -0
  2. package/dist/{ASMQKSDT-CyLroRiC.js → ASMQKSDT-GE79MhKX.js} +12 -12
  3. package/dist/{AXB53BZF-DBGkYxAF.js → AXB53BZF-ClCOTGI-.js} +3 -3
  4. package/dist/Accordion.js +3 -3
  5. package/dist/AspectRatio.css +1 -1
  6. package/dist/AspectRatio.js +13 -12
  7. package/dist/{BYC7LY2E-sahp7oqU.js → BYC7LY2E-DeD1QoQl.js} +108 -108
  8. package/dist/Breadcrumb.css +1 -1
  9. package/dist/Breadcrumb.js +101 -124
  10. package/dist/Button.css +1 -1
  11. package/dist/Button.js +49 -49
  12. package/dist/Checkbox.js +1 -1
  13. package/dist/Drawer.js +4 -4
  14. package/dist/DropdownMenu.js +140 -139
  15. package/dist/FieldGroup.css +1 -0
  16. package/dist/FieldGroup.js +17 -0
  17. package/dist/ITI7HKP4-MlgGFEDr.js +187 -0
  18. package/dist/InputText.css +1 -1
  19. package/dist/InputText.js +34 -34
  20. package/dist/{JC64G2H7-oyI4lllS.js → JC64G2H7-jNBZrGfv.js} +126 -126
  21. package/dist/{KUU7WJ55-iyg84yrl.js → KUU7WJ55-CRa_letc.js} +1 -1
  22. package/dist/{LVA2YJMS-BmLXjKP9.js → LVA2YJMS-C6Bdr5Em.js} +35 -35
  23. package/dist/Label.js +13 -13
  24. package/dist/{MTZPJQMC-CEQxLFTu.js → MTZPJQMC-DgscjgO6.js} +2 -2
  25. package/dist/Modal.css +1 -1
  26. package/dist/Modal.js +132 -174
  27. package/dist/{NLEBE274-BPGIVzin.js → NLEBE274-BlP1TDp5.js} +16 -16
  28. package/dist/{P2CTZE2T-CHi91Yb8.js → P2CTZE2T-DqsBJuIy.js} +32 -32
  29. package/dist/{P4IRICAX-CIAVAXlF.js → P4IRICAX-CvgWqpy0.js} +3 -3
  30. package/dist/Popover.js +3 -3
  31. package/dist/{QYJ6MIDR-DRpzeJNT.js → QYJ6MIDR-BWg_HLyh.js} +3 -3
  32. package/dist/Radio.css +1 -1
  33. package/dist/Radio.js +39 -38
  34. package/dist/RadioGroup.css +1 -0
  35. package/dist/RadioGroup.js +72 -0
  36. package/dist/RadioTab.js +1 -1
  37. package/dist/{SYRFVSLH-vrz7_KNH.js → SYRFVSLH-D5X1Ofws.js} +3 -3
  38. package/dist/Search.js +118 -125
  39. package/dist/Slider.css +1 -0
  40. package/dist/Slider.js +423 -0
  41. package/dist/Swiper.js +113 -119
  42. package/dist/Tabs.js +79 -78
  43. package/dist/Toggle.js +1 -1
  44. package/dist/Tooltip.js +31 -31
  45. package/dist/{VGCJ63VH-CV_AMRHp.js → VGCJ63VH-Bdd6jzVW.js} +31 -31
  46. package/dist/{X5NMLKT6-DqDJBMYO.js → X5NMLKT6-C7-nsL44.js} +2 -2
  47. package/dist/{YV4JVR4I-CvfP1OCB.js → YV4JVR4I-BN6SUVuh.js} +54 -54
  48. package/dist/theme.css +1 -1
  49. package/dist/throttle-BDBzFeFj.js +13 -0
  50. package/dist/types/components/AspectRatio/index.d.ts +1 -2
  51. package/dist/types/components/AspectRatio/types.d.ts +12 -3
  52. package/dist/types/components/FieldGroup/index.d.ts +1 -0
  53. package/dist/types/components/FieldGroup/types.d.ts +8 -0
  54. package/dist/types/components/Icon/index.d.ts +305 -0
  55. package/dist/types/components/Label/index.d.ts +1 -1
  56. package/dist/types/components/Modal/components/Close.d.ts +2 -2
  57. package/dist/types/components/Modal/components/Content.d.ts +3 -5
  58. package/dist/types/components/Modal/index.d.ts +0 -1
  59. package/dist/types/components/Modal/types.d.ts +0 -5
  60. package/dist/types/components/RadioGroup/index.d.ts +2 -0
  61. package/dist/types/components/RadioGroup/types.d.ts +17 -0
  62. package/dist/types/components/Slider/Range.d.ts +6 -0
  63. package/dist/types/components/Slider/index.d.ts +10 -0
  64. package/dist/types/components/Slider/types.d.ts +28 -0
  65. package/dist/types/old/components/Alert/styles.d.ts +4 -4
  66. package/dist/types/old/components/Avatar/styles.d.ts +4 -4
  67. package/dist/types/old/components/Card/Cover.styles.d.ts +2 -2
  68. package/dist/types/old/components/ClearButton/index.d.ts +2 -2
  69. package/dist/types/old/components/ClearButton/styles.d.ts +2 -2
  70. package/dist/types/old/components/CloseButton/styles.d.ts +2 -2
  71. package/dist/types/old/components/Drawer/styles.d.ts +2 -2
  72. package/dist/types/old/components/InputText/styles.d.ts +1 -1
  73. package/dist/types/old/components/Link/styles.d.ts +2 -2
  74. package/dist/types/old/components/Loader/styles.d.ts +2 -2
  75. package/dist/types/old/components/Modal/Assets/Backdrop.d.ts +2 -2
  76. package/dist/types/old/components/Modal/Assets/index.d.ts +4 -4
  77. package/dist/types/old/components/Modal/Assets/styles.d.ts +4 -4
  78. package/dist/types/old/components/Modal/index.d.ts +4 -4
  79. package/dist/types/old/components/Modal/styles.d.ts +4 -4
  80. package/dist/types/old/components/Radio/styles.d.ts +2 -2
  81. package/dist/types/old/components/Select/index.d.ts +2 -2
  82. package/dist/types/old/components/Select/styles.d.ts +2 -2
  83. package/dist/types/old/components/Shape/styles.d.ts +2 -2
  84. package/dist/types/old/components/Slider/styles.d.ts +10 -10
  85. package/dist/types/old/components/Swiper/styles.d.ts +2 -2
  86. package/dist/types/old/components/Toast/styles.d.ts +8 -8
  87. package/dist/types/theme/tokens.json.d.ts +378 -0
  88. package/dist/types/theme/types.d.ts +0 -10
  89. package/dist/types/theme/utils/parseTokens.d.ts +15 -0
  90. package/dist/types/theme/utils/parseTokens.test.d.ts +1 -0
  91. package/dist/types/utils/clamp.d.ts +1 -0
  92. package/dist/types/utils/use-screens.d.ts +2 -2
  93. package/package.json +4 -2
  94. package/dist/ITI7HKP4-BwM8j6XI.js +0 -488
  95. package/dist/types/theme/tokens.d.ts +0 -307
@@ -0,0 +1,308 @@
1
+ "use client";
2
+ import { t as Q, c as k, s as R, i as X, f as U, b as h, d as Z } from "./YV4JVR4I-BN6SUVuh.js";
3
+ import { J as S, I as C, M as p, K as L, N as ee, O as te, L as ne } from "./LVA2YJMS-C6Bdr5Em.js";
4
+ function re(t) {
5
+ var i;
6
+ const e = t.find((a) => !!a.element), o = [...t].reverse().find((a) => !!a.element);
7
+ let s = (i = e == null ? void 0 : e.element) == null ? void 0 : i.parentElement;
8
+ for (; s && (o != null && o.element); ) {
9
+ if (o && s.contains(o.element))
10
+ return s;
11
+ s = s.parentElement;
12
+ }
13
+ return te(s).body;
14
+ }
15
+ function ie(t) {
16
+ return t == null ? void 0 : t.__unstablePrivateStore;
17
+ }
18
+ function se(t = {}) {
19
+ var i;
20
+ Q(t, t.store);
21
+ const e = (i = t.store) == null ? void 0 : i.getState(), o = S(
22
+ t.items,
23
+ e == null ? void 0 : e.items,
24
+ t.defaultItems,
25
+ []
26
+ ), s = new Map(o.map((r) => [r.id, r])), a = {
27
+ items: o,
28
+ renderedItems: S(e == null ? void 0 : e.renderedItems, [])
29
+ }, d = ie(t.store), u = k(
30
+ { items: o, renderedItems: a.renderedItems },
31
+ d
32
+ ), n = k(a, t.store), b = (r) => {
33
+ const l = ee(r, (c) => c.element);
34
+ u.setState("renderedItems", l), n.setState("renderedItems", l);
35
+ };
36
+ R(n, () => X(u)), R(u, () => U(u, ["items"], (r) => {
37
+ n.setState("items", r.items);
38
+ })), R(u, () => U(u, ["renderedItems"], (r) => {
39
+ let l = !0, c = requestAnimationFrame(() => {
40
+ const { renderedItems: m } = n.getState();
41
+ r.renderedItems !== m && b(r.renderedItems);
42
+ });
43
+ if (typeof IntersectionObserver != "function")
44
+ return () => cancelAnimationFrame(c);
45
+ const g = () => {
46
+ if (l) {
47
+ l = !1;
48
+ return;
49
+ }
50
+ cancelAnimationFrame(c), c = requestAnimationFrame(() => b(r.renderedItems));
51
+ }, F = re(r.renderedItems), f = new IntersectionObserver(g, { root: F });
52
+ for (const m of r.renderedItems)
53
+ m.element && f.observe(m.element);
54
+ return () => {
55
+ cancelAnimationFrame(c), f.disconnect();
56
+ };
57
+ }));
58
+ const E = (r, l, c = !1) => {
59
+ let g;
60
+ return l((f) => {
61
+ const m = f.findIndex(({ id: x }) => x === r.id), w = f.slice();
62
+ if (m !== -1) {
63
+ g = f[m];
64
+ const x = L(L({}, g), r);
65
+ w[m] = x, s.set(r.id, x);
66
+ } else
67
+ w.push(r), s.set(r.id, r);
68
+ return w;
69
+ }), () => {
70
+ l((f) => {
71
+ if (!g)
72
+ return c && s.delete(r.id), f.filter(({ id: x }) => x !== r.id);
73
+ const m = f.findIndex(({ id: x }) => x === r.id);
74
+ if (m === -1) return f;
75
+ const w = f.slice();
76
+ return w[m] = g, s.set(r.id, g), w;
77
+ });
78
+ };
79
+ }, P = (r) => E(
80
+ r,
81
+ (l) => u.setState("items", l),
82
+ !0
83
+ );
84
+ return C(L({}, n), {
85
+ registerItem: P,
86
+ renderItem: (r) => p(
87
+ P(r),
88
+ E(
89
+ r,
90
+ (l) => u.setState("renderedItems", l)
91
+ )
92
+ ),
93
+ item: (r) => {
94
+ if (!r) return null;
95
+ let l = s.get(r);
96
+ if (!l) {
97
+ const { items: c } = u.getState();
98
+ l = c.find((g) => g.id === r), l && s.set(r, l);
99
+ }
100
+ return l || null;
101
+ },
102
+ // @ts-expect-error Internal
103
+ __unstablePrivateStore: u
104
+ });
105
+ }
106
+ function oe(t, i, e) {
107
+ return ne(i, [e.store]), h(t, e, "items", "setItems"), t;
108
+ }
109
+ function le(t) {
110
+ const i = [];
111
+ for (const e of t)
112
+ i.push(...e);
113
+ return i;
114
+ }
115
+ function $(t) {
116
+ return t.slice().reverse();
117
+ }
118
+ var ae = { id: null };
119
+ function _(t, i) {
120
+ return t.find((e) => i ? !e.disabled && e.id !== i : !e.disabled);
121
+ }
122
+ function de(t, i) {
123
+ return t.filter((e) => i ? !e.disabled && e.id !== i : !e.disabled);
124
+ }
125
+ function G(t, i) {
126
+ return t.filter((e) => e.rowId === i);
127
+ }
128
+ function ce(t, i, e = !1) {
129
+ const o = t.findIndex((s) => s.id === i);
130
+ return [
131
+ ...t.slice(o + 1),
132
+ ...e ? [ae] : [],
133
+ ...t.slice(0, o)
134
+ ];
135
+ }
136
+ function J(t) {
137
+ const i = [];
138
+ for (const e of t) {
139
+ const o = i.find((s) => {
140
+ var a;
141
+ return ((a = s[0]) == null ? void 0 : a.rowId) === e.rowId;
142
+ });
143
+ o ? o.push(e) : i.push([e]);
144
+ }
145
+ return i;
146
+ }
147
+ function K(t) {
148
+ let i = 0;
149
+ for (const { length: e } of t)
150
+ e > i && (i = e);
151
+ return i;
152
+ }
153
+ function ue(t) {
154
+ return {
155
+ id: "__EMPTY_ITEM__",
156
+ disabled: !0,
157
+ rowId: t
158
+ };
159
+ }
160
+ function fe(t, i, e) {
161
+ const o = K(t);
162
+ for (const s of t)
163
+ for (let a = 0; a < o; a += 1) {
164
+ const d = s[a];
165
+ if (!d || e && d.disabled) {
166
+ const n = a === 0 && e ? _(s) : s[a - 1];
167
+ s[a] = n && i !== n.id && e ? n : ue(n == null ? void 0 : n.rowId);
168
+ }
169
+ }
170
+ return t;
171
+ }
172
+ function me(t) {
173
+ const i = J(t), e = K(i), o = [];
174
+ for (let s = 0; s < e; s += 1)
175
+ for (const a of i) {
176
+ const d = a[s];
177
+ d && o.push(C(L({}, d), {
178
+ // If there's no rowId, it means that it's not a grid composite, but
179
+ // a single row instead. So, instead of verticalizing it, that is,
180
+ // assigning a different rowId based on the column index, we keep it
181
+ // undefined so they will be part of the same row. This is useful
182
+ // when using up/down on one-dimensional composites.
183
+ rowId: d.rowId ? `${s}` : void 0
184
+ }));
185
+ }
186
+ return o;
187
+ }
188
+ function Se(t = {}) {
189
+ var i;
190
+ const e = (i = t.store) == null ? void 0 : i.getState(), o = se(t), s = S(
191
+ t.activeId,
192
+ e == null ? void 0 : e.activeId,
193
+ t.defaultActiveId
194
+ ), a = C(L({}, o.getState()), {
195
+ id: S(
196
+ t.id,
197
+ e == null ? void 0 : e.id,
198
+ `id-${Math.random().toString(36).slice(2, 8)}`
199
+ ),
200
+ activeId: s,
201
+ baseElement: S(e == null ? void 0 : e.baseElement, null),
202
+ includesBaseElement: S(
203
+ t.includesBaseElement,
204
+ e == null ? void 0 : e.includesBaseElement,
205
+ s === null
206
+ ),
207
+ moves: S(e == null ? void 0 : e.moves, 0),
208
+ orientation: S(
209
+ t.orientation,
210
+ e == null ? void 0 : e.orientation,
211
+ "both"
212
+ ),
213
+ rtl: S(t.rtl, e == null ? void 0 : e.rtl, !1),
214
+ virtualFocus: S(
215
+ t.virtualFocus,
216
+ e == null ? void 0 : e.virtualFocus,
217
+ !1
218
+ ),
219
+ focusLoop: S(t.focusLoop, e == null ? void 0 : e.focusLoop, !1),
220
+ focusWrap: S(t.focusWrap, e == null ? void 0 : e.focusWrap, !1),
221
+ focusShift: S(t.focusShift, e == null ? void 0 : e.focusShift, !1)
222
+ }), d = k(a, o, t.store);
223
+ R(
224
+ d,
225
+ () => Z(d, ["renderedItems", "activeId"], (n) => {
226
+ d.setState("activeId", (b) => {
227
+ var E;
228
+ return b !== void 0 ? b : (E = _(n.renderedItems)) == null ? void 0 : E.id;
229
+ });
230
+ })
231
+ );
232
+ const u = (n = "next", b = {}) => {
233
+ var E, P;
234
+ const r = d.getState(), {
235
+ skip: l = 0,
236
+ activeId: c = r.activeId,
237
+ focusShift: g = r.focusShift,
238
+ focusLoop: F = r.focusLoop,
239
+ focusWrap: f = r.focusWrap,
240
+ includesBaseElement: m = r.includesBaseElement,
241
+ renderedItems: w = r.renderedItems,
242
+ rtl: x = r.rtl
243
+ } = b, y = n === "up" || n === "down", z = n === "next" || n === "down", Y = z ? x && !y : !x || y, j = g && !l;
244
+ let v = y ? le(
245
+ fe(J(w), c, j)
246
+ ) : w;
247
+ if (v = Y ? $(v) : v, v = y ? me(v) : v, c == null)
248
+ return (E = _(v)) == null ? void 0 : E.id;
249
+ const M = v.find((I) => I.id === c);
250
+ if (!M)
251
+ return (P = _(v)) == null ? void 0 : P.id;
252
+ const D = v.some((I) => I.rowId), H = v.indexOf(M), N = v.slice(H + 1), O = G(N, M.rowId);
253
+ if (l) {
254
+ const I = de(O, c), B = I.slice(l)[0] || // If we can't find an item, just return the last one.
255
+ I[I.length - 1];
256
+ return B == null ? void 0 : B.id;
257
+ }
258
+ const T = F && (y ? F !== "horizontal" : F !== "vertical"), V = D && f && (y ? f !== "horizontal" : f !== "vertical"), A = z ? (!D || y) && T && m : y ? m : !1;
259
+ if (T) {
260
+ const I = V && !A ? v : G(v, M.rowId), B = ce(I, c, A), q = _(B, c);
261
+ return q == null ? void 0 : q.id;
262
+ }
263
+ if (V) {
264
+ const I = _(
265
+ // We can use nextItems, which contains all the next items, including
266
+ // items from other rows, to wrap between rows. However, if there is a
267
+ // null item (the composite container), we'll only use the next items in
268
+ // the row. So moving next from the last item will focus on the
269
+ // composite container. On grid composites, horizontal navigation never
270
+ // focuses on the composite container, only vertical.
271
+ A ? O : N,
272
+ c
273
+ );
274
+ return A ? (I == null ? void 0 : I.id) || null : I == null ? void 0 : I.id;
275
+ }
276
+ const W = _(O, c);
277
+ return !W && A ? null : W == null ? void 0 : W.id;
278
+ };
279
+ return C(L(L({}, o), d), {
280
+ setBaseElement: (n) => d.setState("baseElement", n),
281
+ setActiveId: (n) => d.setState("activeId", n),
282
+ move: (n) => {
283
+ n !== void 0 && (d.setState("activeId", n), d.setState("moves", (b) => b + 1));
284
+ },
285
+ first: () => {
286
+ var n;
287
+ return (n = _(d.getState().renderedItems)) == null ? void 0 : n.id;
288
+ },
289
+ last: () => {
290
+ var n;
291
+ return (n = _($(d.getState().renderedItems))) == null ? void 0 : n.id;
292
+ },
293
+ next: (n) => (n !== void 0 && typeof n == "number" && (n = { skip: n }), u("next", n)),
294
+ previous: (n) => (n !== void 0 && typeof n == "number" && (n = { skip: n }), u("previous", n)),
295
+ down: (n) => (n !== void 0 && typeof n == "number" && (n = { skip: n }), u("down", n)),
296
+ up: (n) => (n !== void 0 && typeof n == "number" && (n = { skip: n }), u("up", n))
297
+ });
298
+ }
299
+ function ge(t, i, e) {
300
+ return t = oe(t, i, e), h(t, e, "activeId", "setActiveId"), h(t, e, "includesBaseElement"), h(t, e, "virtualFocus"), h(t, e, "orientation"), h(t, e, "rtl"), h(t, e, "focusLoop"), h(t, e, "focusWrap"), h(t, e, "focusShift"), t;
301
+ }
302
+ export {
303
+ se as a,
304
+ Se as c,
305
+ le as f,
306
+ $ as r,
307
+ ge as u
308
+ };
@@ -1,11 +1,11 @@
1
1
  "use client";
2
- import { t as w, f as z, c as D, a as H, _ as O, k as V, m as W, y as $, u as y, v as q, b as B, j as G, d as v, z as I } from "./LVA2YJMS-BmLXjKP9.js";
2
+ import { t as w, f as D, c as G, a as H, _ as O, k as V, m as W, F as $, u as P, v as q, b as z, j as B, d as v, G as I } from "./LVA2YJMS-C6Bdr5Em.js";
3
3
  import { createContext as J, useState as K, useRef as L, useEffect as Q } from "react";
4
- import { u as X } from "./KUU7WJ55-iyg84yrl.js";
5
- import { u as Y } from "./YV4JVR4I-CvfP1OCB.js";
4
+ import { u as X } from "./KUU7WJ55-CRa_letc.js";
5
+ import { u as Y } from "./YV4JVR4I-BN6SUVuh.js";
6
6
  import { jsx as Z } from "react/jsx-runtime";
7
7
  var ee = J(!1), re = w(), te = re.useContext, A = "input";
8
- function P(t, a) {
8
+ function y(t, a) {
9
9
  a ? t.indeterminate = !0 : t.indeterminate && (t.indeterminate = !1);
10
10
  }
11
11
  function ne(t, a) {
@@ -14,7 +14,7 @@ function ne(t, a) {
14
14
  function _(t) {
15
15
  return Array.isArray(t) ? t.toString() : t;
16
16
  }
17
- var oe = D(
17
+ var oe = G(
18
18
  function(a) {
19
19
  var f = a, {
20
20
  store: i,
@@ -45,33 +45,33 @@ var oe = D(
45
45
  }), k = L(null), N = V(k, A), o = ne(N, r.type), m = u ? u === "mixed" : void 0, s = u === "mixed" ? !1 : u, R = W(r), [U, j] = $();
46
46
  Q(() => {
47
47
  const e = k.current;
48
- e && (P(e, m), !o && (e.checked = s, h !== void 0 && (e.name = h), n !== void 0 && (e.value = `${n}`)));
48
+ e && (y(e, m), !o && (e.checked = s, h !== void 0 && (e.name = h), n !== void 0 && (e.value = `${n}`)));
49
49
  }, [U, m, o, s, h, n]);
50
- const x = r.onChange, b = y((e) => {
50
+ const x = r.onChange, b = P((e) => {
51
51
  if (R) {
52
52
  e.stopPropagation(), e.preventDefault();
53
53
  return;
54
54
  }
55
- if (P(e.currentTarget, m), o || (e.currentTarget.checked = !e.currentTarget.checked, j()), x == null || x(e), e.defaultPrevented) return;
55
+ if (y(e.currentTarget, m), o || (e.currentTarget.checked = !e.currentTarget.checked, j()), x == null || x(e), e.defaultPrevented) return;
56
56
  const d = e.currentTarget.checked;
57
57
  S(d), i == null || i.setValue((c) => {
58
58
  if (n == null) return d;
59
59
  const l = _(n);
60
60
  return Array.isArray(c) ? d ? c.includes(l) ? c : [...c, l] : c.filter((M) => M !== l) : c === l ? !1 : l;
61
61
  });
62
- }), g = r.onClick, F = y((e) => {
62
+ }), g = r.onClick, F = P((e) => {
63
63
  g == null || g(e), !e.defaultPrevented && (o || b(e));
64
64
  });
65
65
  return r = q(
66
66
  r,
67
67
  (e) => /* @__PURE__ */ Z(ee.Provider, { value: s, children: e }),
68
68
  [s]
69
- ), r = B(v({
69
+ ), r = z(v({
70
70
  role: o ? void 0 : "checkbox",
71
71
  type: o ? "checkbox" : void 0,
72
72
  "aria-checked": u
73
73
  }, r), {
74
- ref: G(k, r.ref),
74
+ ref: B(k, r.ref),
75
75
  onChange: b,
76
76
  onClick: F
77
77
  }), r = X(v({ clickOnEnter: !o }, r)), I(v({
@@ -80,7 +80,7 @@ var oe = D(
80
80
  checked: s
81
81
  }, r));
82
82
  }
83
- ), de = z(function(a) {
83
+ ), de = D(function(a) {
84
84
  const f = oe(a);
85
85
  return H(A, f);
86
86
  });
@@ -1,7 +1,7 @@
1
1
  "use client";
2
- import { u } from "./P4IRICAX-CIAVAXlF.js";
3
- import { a as c } from "./VGCJ63VH-CV_AMRHp.js";
4
- import { f as l, c as p, a as D, _ as m, i as g, d as a, g as v } from "./LVA2YJMS-BmLXjKP9.js";
2
+ import { u } from "./P4IRICAX-CvgWqpy0.js";
3
+ import { a as c } from "./VGCJ63VH-Bdd6jzVW.js";
4
+ import { f as l, c as p, a as D, _ as m, i as g, d as a, g as v } from "./LVA2YJMS-C6Bdr5Em.js";
5
5
  var d = "button", f = p(
6
6
  function(r) {
7
7
  var s = r, { store: o } = s, e = m(s, ["store"]);
package/dist/Accordion.js CHANGED
@@ -1,8 +1,8 @@
1
1
  "use client";
2
2
  import { jsxs as i, jsx as o } from "react/jsx-runtime";
3
- import { D as d } from "./P4IRICAX-CIAVAXlF.js";
4
- import { d as a } from "./VGCJ63VH-CV_AMRHp.js";
5
- import { e as k } from "./VGCJ63VH-CV_AMRHp.js";
3
+ import { D as d } from "./P4IRICAX-CvgWqpy0.js";
4
+ import { d as a } from "./VGCJ63VH-Bdd6jzVW.js";
5
+ import { e as k } from "./VGCJ63VH-Bdd6jzVW.js";
6
6
  import { forwardRef as _ } from "react";
7
7
  import "./Icon-CvQNL_iy.js";
8
8
  import { R as u } from "./index-BYbxYLuX.js";
@@ -1 +1 @@
1
- @layer components{._root_1p11o_2{position:relative}._root_1p11o_2>*{overflow:hidden;position:absolute;top:0;right:0;bottom:0;left:0;display:flex;justify-content:center;align-items:center;width:100%;height:100%}._root_1p11o_2>img,._root_1p11o_2>video{object-fit:cover}._root_1p11o_2:before{height:0;content:"";display:block;padding-bottom:calc(1 / var(--aspect-ratio) * 100%)}}
1
+ @layer components{._root_1s56r_2>*{aspect-ratio:var(--aspect-ratio, 4/3)}._root_1s56r_2>img,._root_1s56r_2>video{object-fit:cover}._ratio-square_1s56r_8{--aspect-ratio: 1 / 1}._ratio-4-3_1s56r_11{--aspect-ratio: 4 / 3}._ratio-3-2_1s56r_14{--aspect-ratio: 3 / 2}._ratio-video_1s56r_17{--aspect-ratio: 16 / 9}}
@@ -1,16 +1,17 @@
1
1
  "use client";
2
- import { jsx as e } from "react/jsx-runtime";
3
- import { c as i } from "./classNames-qiokGROM.js";
4
- import { f as m } from "./forwardRefWithAs-8eP3ZN15.js";
5
- const p = "_root_1p11o_2", n = {
6
- root: p
7
- }, f = i(n), l = m(
8
- ({ as: o = "div", className: t, ratio: s = 4 / 3, ...r }, a) => {
9
- const c = { "--aspect-ratio": s };
10
- return /* @__PURE__ */ e(o, { className: f("root", t), ref: a, style: c, ...r });
11
- }
2
+ import { jsx as i } from "react/jsx-runtime";
3
+ import { c as e } from "./classNames-qiokGROM.js";
4
+ import { f as _ } from "./forwardRefWithAs-8eP3ZN15.js";
5
+ const c = "_root_1s56r_2", m = {
6
+ root: c,
7
+ "ratio-square": "_ratio-square_1s56r_8",
8
+ "ratio-4-3": "_ratio-4-3_1s56r_11",
9
+ "ratio-3-2": "_ratio-3-2_1s56r_14",
10
+ "ratio-video": "_ratio-video_1s56r_17"
11
+ }, p = e(m), f = _(
12
+ ({ as: o = "div", className: r, ratio: t = "4-3", ...s }, a) => /* @__PURE__ */ i(o, { className: p("root", `ratio-${t}`, r), ref: a, ...s })
12
13
  );
13
- l.displayName = "AspectRatio";
14
+ f.displayName = "AspectRatio";
14
15
  export {
15
- l as AspectRatio
16
+ f as AspectRatio
16
17
  };