welcome-ui 10.0.0-alpha.13 → 10.0.0-alpha.15

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 (32) hide show
  1. package/dist/7PRQYBBV-D9IY4qtU.js +14 -0
  2. package/dist/Alert.js +34 -34
  3. package/dist/{B7UTNDHN-BghjolIs.js → B7UTNDHN-DDN2hpM5.js} +18 -28
  4. package/dist/DropdownMenu.js +17 -16
  5. package/dist/Field.js +7 -7
  6. package/dist/FileDrop.css +1 -1
  7. package/dist/FileDrop.js +310 -295
  8. package/dist/Icon.js +6 -4
  9. package/dist/Modal.js +1 -1
  10. package/dist/NSTBQJLB-C_1-awKs.js +173 -0
  11. package/dist/OLVWQA7U-UYYsJnlv.js +20 -0
  12. package/dist/RadioGroup.js +1 -1
  13. package/dist/Tabs.js +167 -367
  14. package/dist/Window.css +1 -0
  15. package/dist/Window.js +106 -0
  16. package/dist/tab-panel-B8NigruF.js +216 -0
  17. package/dist/types/components/Alert/components/Buttons.d.ts +2 -2
  18. package/dist/types/components/Alert/index.d.ts +2 -2
  19. package/dist/types/components/FileDrop/components/Message.d.ts +1 -1
  20. package/dist/types/components/FileDrop/types.d.ts +5 -0
  21. package/dist/types/components/Icon/icons.d.ts +2 -2
  22. package/dist/types/components/Tabs/utils.d.ts +1 -1
  23. package/dist/types/components/Window/components/Body.d.ts +3 -0
  24. package/dist/types/components/Window/components/BoxText.d.ts +3 -0
  25. package/dist/types/components/Window/components/Header.d.ts +13 -0
  26. package/dist/types/components/Window/components/Media.d.ts +3 -0
  27. package/dist/types/components/Window/components/TabPanel.d.ts +1 -0
  28. package/dist/types/components/Window/index.d.ts +22 -0
  29. package/dist/types/components/Window/index.test.d.ts +1 -0
  30. package/dist/types/components/Window/types.d.ts +48 -0
  31. package/package.json +1 -1
  32. package/dist/OLVWQA7U-Dia3UUnG.js +0 -187
package/dist/Tabs.js CHANGED
@@ -1,235 +1,33 @@
1
1
  "use client";
2
2
  import './Tabs.css';
3
- import { jsx as T, jsxs as pe } from "react/jsx-runtime";
4
- import { C as X, a as Y, h as A, b as fe, j as ve } from "./SBSPVDDI-CmtnvvUX.js";
5
- import { e as ee, y as Ie, f as W, c as j, b as z, _ as B, i as H, l as te, F as ge, d as S, a as f, u as F, k as oe, af as xe, v as Se, Z as Pe, M as Ce, A as $, z as O, B as V, V as U, C as Z } from "./OE2EFRVA-Dg1R6gaC.js";
6
- import { u as Te, b as _e } from "./OLVWQA7U-Dia3UUnG.js";
7
- import he, { useCallback as ne, useRef as q, useEffect as G, useState as Ee, createContext as se, useMemo as ke, forwardRef as re, cloneElement as ye, isValidElement as we } from "react";
8
- import { c as ae } from "./index-PAaZGbyz.js";
9
- import { b as M, m as Ne, o as J, c as Re, s as D, d as k, f as Le, u as ce, a as Q } from "./RTNCFSKZ-BywELldk.js";
10
- import { Badge as Oe } from "./Badge.js";
11
- import { f as Ve } from "./forwardRefWithAs-8eP3ZN15.js";
12
- import { Icon as De } from "./Icon.js";
13
- import { u as Me, d as $e } from "./T22PY7TE-gLuJpoOm.js";
14
- import { P as Fe, b as We } from "./Y67KZUMI-BwLWwpNF.js";
15
- import { c as je, a as ze, u as Be } from "./B7UTNDHN-BghjolIs.js";
16
- var K = ee(
17
- [Y],
18
- [X]
19
- ), He = K.useScopedContext, ie = K.useProviderContext, le = K.ScopedContextProvider, Ke = "button", Ae = j(function(r) {
20
- var t = r, {
21
- store: e,
22
- getItem: n
23
- } = t, a = B(t, [
24
- "store",
25
- "getItem"
26
- ]), b;
27
- const c = He();
28
- e = e || c, H(
29
- e,
30
- process.env.NODE_ENV !== "production" && "Tab must be wrapped in a TabList component."
31
- );
32
- const u = te(), s = a.id || u, _ = ge(a), i = ne(
33
- (m) => {
34
- const y = S(f({}, m), { dimmed: _ });
35
- return n ? n(y) : y;
36
- },
37
- [_, n]
38
- ), v = a.onClick, I = F((m) => {
39
- v == null || v(m), !m.defaultPrevented && (e == null || e.setSelectedId(s));
40
- }), d = e.panels.useState(
41
- (m) => {
42
- var y;
43
- return (y = m.items.find((l) => l.tabId === s)) == null ? void 0 : y.id;
44
- }
45
- ), p = u ? a.shouldRegisterItem : !1, g = e.useState((m) => !!s && m.activeId === s), x = e.useState((m) => !!s && m.selectedId === s), h = e.useState((m) => !!e.item(m.activeId)), P = g || x && !h, w = x || ((b = a.accessibleWhenDisabled) != null ? b : !0);
46
- if (M(
47
- e.combobox || e.composite,
48
- "virtualFocus"
49
- ) && (a = S(f({}, a), {
50
- tabIndex: -1
51
- })), a = S(f({
52
- id: s,
53
- role: "tab",
54
- "aria-selected": x,
55
- "aria-controls": d || void 0
56
- }, a), {
57
- onClick: I
58
- }), e.composite) {
59
- const m = {
60
- id: s,
61
- accessibleWhenDisabled: w,
62
- store: e.composite,
63
- shouldRegisterItem: P && p,
64
- rowId: a.rowId,
65
- render: a.render
66
- };
67
- a = S(f({}, a), {
68
- render: /* @__PURE__ */ T(
69
- A,
70
- S(f({}, m), {
71
- render: e.combobox && e.composite !== e.combobox ? /* @__PURE__ */ T(A, S(f({}, m), { store: e.combobox })) : m.render
72
- })
73
- )
74
- });
75
- }
76
- return a = fe(S(f({
77
- store: e
78
- }, a), {
79
- accessibleWhenDisabled: w,
80
- getItem: i,
81
- shouldRegisterItem: p
82
- })), a;
83
- }), Ue = Ie(
84
- W(function(r) {
85
- const t = Ae(r);
86
- return z(Ke, t);
87
- })
88
- ), Ze = "div", qe = j(
89
- function(r) {
90
- var t = r, { store: e } = t, n = B(t, ["store"]);
91
- const a = ie();
92
- e = e || a, H(
93
- e,
94
- process.env.NODE_ENV !== "production" && "TabList must receive a `store` prop or be wrapped in a TabProvider component."
95
- );
96
- const b = e.useState(
97
- (c) => c.orientation === "both" ? void 0 : c.orientation
98
- );
99
- return n = oe(
100
- n,
101
- (c) => /* @__PURE__ */ T(le, { value: e, children: c }),
102
- [e]
103
- ), e.composite && (n = f({
104
- focusable: !1
105
- }, n)), n = f({
106
- role: "tablist",
107
- "aria-orientation": b
108
- }, n), n = Te(f({ store: e }, n)), n;
109
- }
110
- ), Ge = W(function(r) {
111
- const t = qe(r);
112
- return z(Ze, t);
113
- }), Je = "div", Qe = j(
114
- function(r) {
115
- var t = r, {
116
- store: e,
117
- unmountOnHide: n,
118
- tabId: a,
119
- getItem: b,
120
- scrollRestoration: c,
121
- scrollElement: u
122
- } = t, s = B(t, [
123
- "store",
124
- "unmountOnHide",
125
- "tabId",
126
- "getItem",
127
- "scrollRestoration",
128
- "scrollElement"
129
- ]);
130
- const _ = ie();
131
- e = e || _, H(
132
- e,
133
- process.env.NODE_ENV !== "production" && "TabPanel must receive a `store` prop or be wrapped in a TabProvider component."
134
- );
135
- const i = q(null), v = te(s.id), I = M(
136
- e.panels,
137
- () => {
138
- var l;
139
- return a || ((l = e == null ? void 0 : e.panels.item(v)) == null ? void 0 : l.tabId);
140
- }
141
- ), d = M(
142
- e,
143
- (l) => !!I && l.selectedId === I
144
- ), p = Me({ open: d }), g = M(p, "mounted"), x = q(
145
- /* @__PURE__ */ new Map()
146
- ), h = F(() => {
147
- const l = i.current;
148
- return l ? u ? typeof u == "function" ? u(l) : "current" in u ? u.current : u : l : null;
149
- });
150
- G(() => {
151
- var l, E;
152
- if (!c || !g) return;
153
- const C = h();
154
- if (!C) return;
155
- if (c === "reset") {
156
- C.scroll(0, 0);
157
- return;
158
- }
159
- if (!I) return;
160
- const N = x.current.get(I);
161
- C.scroll((l = N == null ? void 0 : N.x) != null ? l : 0, (E = N == null ? void 0 : N.y) != null ? E : 0);
162
- const L = () => {
163
- x.current.set(I, {
164
- x: C.scrollLeft,
165
- y: C.scrollTop
166
- });
167
- };
168
- return C.addEventListener("scroll", L), () => {
169
- C.removeEventListener("scroll", L);
170
- };
171
- }, [c, g, I, h, e]);
172
- const [P, w] = Ee(!1);
173
- G(() => {
174
- const l = i.current;
175
- if (!l) return;
176
- const E = xe(l);
177
- w(!!E.length);
178
- }, []);
179
- const R = ne(
180
- (l) => {
181
- const E = S(f({}, l), { id: v || l.id, tabId: a });
182
- return b ? b(E) : E;
183
- },
184
- [v, a, b]
185
- ), m = s.onKeyDown, y = F((l) => {
186
- if (m == null || m(l), l.defaultPrevented || !(e != null && e.composite)) return;
187
- const C = {
188
- ArrowLeft: e.previous,
189
- ArrowRight: e.next,
190
- Home: e.first,
191
- End: e.last
192
- }[l.key];
193
- if (!C) return;
194
- const { selectedId: N } = e.getState(), L = C({ activeId: N });
195
- L && (l.preventDefault(), e.move(L));
196
- });
197
- return s = oe(
198
- s,
199
- (l) => /* @__PURE__ */ T(le, { value: e, children: l }),
200
- [e]
201
- ), s = S(f({
202
- id: v,
203
- role: "tabpanel",
204
- "aria-labelledby": I || void 0
205
- }, s), {
206
- children: n && !g ? null : s.children,
207
- ref: Se(i, s.ref),
208
- onKeyDown: y
209
- }), s = Pe(f({
210
- // If the tab panel is rendered as part of another composite widget such
211
- // as combobox, it should not be focusable.
212
- focusable: !e.composite && !P
213
- }, s)), s = $e(f({ store: p }, s)), s = ve(S(f({ store: e.panels }, s), { getItem: R })), s;
214
- }
215
- ), Xe = W(function(r) {
216
- const t = Qe(r);
217
- return z(Je, t);
218
- }), Ye = ee(
219
- [We, Y],
220
- [Fe, X]
221
- ), et = Ye.useContext;
222
- se(!1);
223
- se(null);
224
- function tt(o = {}) {
225
- var r = o, {
3
+ import { jsx as _, jsxs as K } from "react/jsx-runtime";
4
+ import { T as U, a as q, b as D } from "./tab-panel-B8NigruF.js";
5
+ import G, { createContext as V, useMemo as H, forwardRef as M, cloneElement as J, isValidElement as Q } from "react";
6
+ import { c as $ } from "./index-PAaZGbyz.js";
7
+ import { m as X, o as y, c as Y, s as x, d as m, f as Z, u as w, a as E, b as A } from "./RTNCFSKZ-BywELldk.js";
8
+ import { Badge as ee } from "./Badge.js";
9
+ import { f as te } from "./forwardRefWithAs-8eP3ZN15.js";
10
+ import { Icon as oe } from "./Icon.js";
11
+ import { P as se, b as ae } from "./Y67KZUMI-BwLWwpNF.js";
12
+ import { C as ne, a as re } from "./SBSPVDDI-CmtnvvUX.js";
13
+ import { e as ce, M as de, A as P, z as S, B as v, V as O, d as z, a as B, C as N } from "./OE2EFRVA-Dg1R6gaC.js";
14
+ import { c as le, a as ie, u as ue } from "./B7UTNDHN-DDN2hpM5.js";
15
+ import { a as me } from "./OLVWQA7U-UYYsJnlv.js";
16
+ var be = ce(
17
+ [ae, re],
18
+ [se, ne]
19
+ ), fe = be.useContext;
20
+ V(!1);
21
+ V(null);
22
+ function pe(e = {}) {
23
+ var r = e, {
226
24
  composite: t,
227
- combobox: e
228
- } = r, n = Ce(r, [
25
+ combobox: c
26
+ } = r, s = de(r, [
229
27
  "composite",
230
28
  "combobox"
231
29
  ]);
232
- const a = [
30
+ const p = [
233
31
  "items",
234
32
  "renderedItems",
235
33
  "moves",
@@ -240,143 +38,144 @@ function tt(o = {}) {
240
38
  "focusLoop",
241
39
  "focusShift",
242
40
  "focusWrap"
243
- ], b = Ne(
244
- n.store,
245
- J(t, a),
246
- J(e, a)
247
- ), c = b == null ? void 0 : b.getState(), u = je($(V({}, n), {
248
- store: b,
41
+ ], l = X(
42
+ s.store,
43
+ y(t, p),
44
+ y(c, p)
45
+ ), n = l == null ? void 0 : l.getState(), i = le(P(v({}, s), {
46
+ store: l,
249
47
  // We need to explicitly set the default value of `includesBaseElement` to
250
48
  // `false` since we don't want the composite store to default it to `true`
251
49
  // when the activeId state is null, which could be the case when rendering
252
50
  // combobox with tab.
253
- includesBaseElement: O(
254
- n.includesBaseElement,
255
- c == null ? void 0 : c.includesBaseElement,
51
+ includesBaseElement: S(
52
+ s.includesBaseElement,
53
+ n == null ? void 0 : n.includesBaseElement,
256
54
  !1
257
55
  ),
258
- orientation: O(
259
- n.orientation,
260
- c == null ? void 0 : c.orientation,
56
+ orientation: S(
57
+ s.orientation,
58
+ n == null ? void 0 : n.orientation,
261
59
  "horizontal"
262
60
  ),
263
- focusLoop: O(n.focusLoop, c == null ? void 0 : c.focusLoop, !0)
264
- })), s = ze(), _ = $(V({}, u.getState()), {
265
- selectedId: O(
266
- n.selectedId,
267
- c == null ? void 0 : c.selectedId,
268
- n.defaultSelectedId
61
+ focusLoop: S(s.focusLoop, n == null ? void 0 : n.focusLoop, !0)
62
+ })), g = ie(), k = P(v({}, i.getState()), {
63
+ selectedId: S(
64
+ s.selectedId,
65
+ n == null ? void 0 : n.selectedId,
66
+ s.defaultSelectedId
269
67
  ),
270
- selectOnMove: O(
271
- n.selectOnMove,
272
- c == null ? void 0 : c.selectOnMove,
68
+ selectOnMove: S(
69
+ s.selectOnMove,
70
+ n == null ? void 0 : n.selectOnMove,
273
71
  !0
274
72
  )
275
- }), i = Re(_, u, b);
276
- D(
277
- i,
278
- () => k(i, ["moves"], () => {
279
- const { activeId: d, selectOnMove: p } = i.getState();
280
- if (!p || !d) return;
281
- const g = u.item(d);
282
- g && (g.dimmed || g.disabled || i.setState("selectedId", g.id));
73
+ }), o = Y(k, i, l);
74
+ x(
75
+ o,
76
+ () => m(o, ["moves"], () => {
77
+ const { activeId: a, selectOnMove: d } = o.getState();
78
+ if (!d || !a) return;
79
+ const u = i.item(a);
80
+ u && (u.dimmed || u.disabled || o.setState("selectedId", u.id));
283
81
  })
284
82
  );
285
- let v = !0;
286
- D(
287
- i,
288
- () => Le(i, ["selectedId"], (d, p) => {
289
- if (!v) {
290
- v = !0;
83
+ let I = !0;
84
+ x(
85
+ o,
86
+ () => Z(o, ["selectedId"], (a, d) => {
87
+ if (!I) {
88
+ I = !0;
291
89
  return;
292
90
  }
293
- t && d.selectedId === p.selectedId || i.setState("activeId", d.selectedId);
91
+ t && a.selectedId === d.selectedId || o.setState("activeId", a.selectedId);
294
92
  })
295
- ), D(
296
- i,
297
- () => k(i, ["selectedId", "renderedItems"], (d) => {
298
- if (d.selectedId !== void 0) return;
299
- const { activeId: p, renderedItems: g } = i.getState(), x = u.item(p);
300
- if (x && !x.disabled && !x.dimmed)
301
- i.setState("selectedId", x.id);
93
+ ), x(
94
+ o,
95
+ () => m(o, ["selectedId", "renderedItems"], (a) => {
96
+ if (a.selectedId !== void 0) return;
97
+ const { activeId: d, renderedItems: u } = o.getState(), b = i.item(d);
98
+ if (b && !b.disabled && !b.dimmed)
99
+ o.setState("selectedId", b.id);
302
100
  else {
303
- const h = g.find(
304
- (P) => !P.disabled && !P.dimmed
101
+ const h = u.find(
102
+ (f) => !f.disabled && !f.dimmed
305
103
  );
306
- i.setState("selectedId", h == null ? void 0 : h.id);
104
+ o.setState("selectedId", h == null ? void 0 : h.id);
307
105
  }
308
106
  })
309
- ), D(
310
- i,
311
- () => k(i, ["renderedItems"], (d) => {
312
- const p = d.renderedItems;
313
- if (p.length)
314
- return k(s, ["renderedItems"], (g) => {
315
- const x = g.renderedItems;
316
- x.some((P) => !P.tabId) && x.forEach((P, w) => {
317
- if (P.tabId) return;
318
- const R = p[w];
319
- R && s.renderItem($(V({}, P), { tabId: R.id }));
107
+ ), x(
108
+ o,
109
+ () => m(o, ["renderedItems"], (a) => {
110
+ const d = a.renderedItems;
111
+ if (d.length)
112
+ return m(g, ["renderedItems"], (u) => {
113
+ const b = u.renderedItems;
114
+ b.some((f) => !f.tabId) && b.forEach((f, F) => {
115
+ if (f.tabId) return;
116
+ const T = d[F];
117
+ T && g.renderItem(P(v({}, f), { tabId: T.id }));
320
118
  });
321
119
  });
322
120
  })
323
121
  );
324
- let I = null;
325
- return D(i, () => {
326
- const d = () => {
327
- I = i.getState().selectedId;
328
- }, p = () => {
329
- v = !1, i.setState("selectedId", I);
122
+ let C = null;
123
+ return x(o, () => {
124
+ const a = () => {
125
+ C = o.getState().selectedId;
126
+ }, d = () => {
127
+ I = !1, o.setState("selectedId", C);
330
128
  };
331
129
  if (t && "setSelectElement" in t)
332
- return U(
333
- k(t, ["value"], d),
334
- k(t, ["mounted"], p)
130
+ return O(
131
+ m(t, ["value"], a),
132
+ m(t, ["mounted"], d)
335
133
  );
336
- if (e)
337
- return U(
338
- k(e, ["selectedValue"], d),
339
- k(e, ["mounted"], p)
134
+ if (c)
135
+ return O(
136
+ m(c, ["selectedValue"], a),
137
+ m(c, ["mounted"], d)
340
138
  );
341
- }), $(V(V({}, u), i), {
342
- panels: s,
343
- setSelectedId: (d) => i.setState("selectedId", d),
344
- select: (d) => {
345
- i.setState("selectedId", d), u.move(d);
139
+ }), P(v(v({}, i), o), {
140
+ panels: g,
141
+ setSelectedId: (a) => o.setState("selectedId", a),
142
+ select: (a) => {
143
+ o.setState("selectedId", a), i.move(a);
346
144
  }
347
145
  });
348
146
  }
349
- function ot(o, r, t) {
350
- Z(r, [t.composite, t.combobox]), o = Be(o, r, t), Q(o, t, "selectedId", "setSelectedId"), Q(o, t, "selectOnMove");
351
- const [e, n] = ce(() => o.panels, {});
352
- return Z(n, [o, n]), Object.assign(
353
- ke(() => S(f({}, o), { panels: e }), [o, e]),
147
+ function Ie(e, r, t) {
148
+ N(r, [t.composite, t.combobox]), e = ue(e, r, t), E(e, t, "selectedId", "setSelectedId"), E(e, t, "selectOnMove");
149
+ const [c, s] = w(() => e.panels, {});
150
+ return N(s, [e, s]), Object.assign(
151
+ H(() => z(B({}, e), { panels: c }), [e, c]),
354
152
  { composite: t.composite, combobox: t.combobox }
355
153
  );
356
154
  }
357
- function St(o = {}) {
358
- const r = _e(), t = et() || r;
359
- o = S(f({}, o), {
360
- composite: o.composite !== void 0 ? o.composite : t,
361
- combobox: o.combobox !== void 0 ? o.combobox : r
155
+ function we(e = {}) {
156
+ const r = me(), t = fe() || r;
157
+ e = z(B({}, e), {
158
+ composite: e.composite !== void 0 ? e.composite : t,
159
+ combobox: e.combobox !== void 0 ? e.combobox : r
362
160
  });
363
- const [e, n] = ce(tt, o);
364
- return ot(e, n, o);
161
+ const [c, s] = w(pe, e);
162
+ return Ie(c, s, e);
365
163
  }
366
- const nt = "_root_peui8_2", de = {
367
- root: nt,
164
+ const ge = "_root_peui8_2", j = {
165
+ root: ge,
368
166
  "size-lg": "_size-lg_peui8_56",
369
167
  "size-md": "_size-md_peui8_63",
370
168
  "tab-list": "_tab-list_peui8_73"
371
169
  };
372
- function st({
373
- icon: o,
170
+ function xe({
171
+ icon: e,
374
172
  iconColor: r,
375
- isActive: t
173
+ isActive: t,
174
+ size: c
376
175
  }) {
377
- if (!o) return null;
378
- if (typeof o != "string") return o;
379
- const e = (() => {
176
+ if (!e) return null;
177
+ if (typeof e != "string") return e;
178
+ const s = (() => {
380
179
  switch (r) {
381
180
  case "blue":
382
181
  return t ? "text-background-accent-blue-strong" : "text-background-accent-blue-primary";
@@ -396,69 +195,70 @@ function st({
396
195
  return "";
397
196
  }
398
197
  })();
399
- return /* @__PURE__ */ T(De, { className: e, name: o });
198
+ return /* @__PURE__ */ _(oe, { className: s, name: e, size: c });
400
199
  }
401
- const rt = ae(de), ue = Ve(
200
+ const Se = $(j), L = te(
402
201
  ({
403
- as: o,
202
+ as: e,
404
203
  badge: r,
405
204
  children: t,
406
- className: e,
407
- icon: n,
408
- iconColor: a = "violet",
409
- id: b,
410
- size: c = "lg",
411
- store: u,
412
- ...s
413
- }, _) => {
414
- const { selectedId: i } = M(u), v = i === b, I = st({
415
- icon: n,
416
- iconColor: a,
417
- isActive: v
418
- }), d = v ? "neutral" : "warm";
419
- return /* @__PURE__ */ pe(
420
- Ue,
205
+ className: c,
206
+ icon: s,
207
+ iconColor: p = "violet",
208
+ id: l,
209
+ size: n = "lg",
210
+ store: i,
211
+ ...g
212
+ }, k) => {
213
+ const { selectedId: o } = A(i), I = o === l, C = xe({
214
+ icon: s,
215
+ iconColor: p,
216
+ isActive: I,
217
+ size: n
218
+ }), a = I ? "neutral" : "warm";
219
+ return /* @__PURE__ */ K(
220
+ U,
421
221
  {
422
- className: rt("root", `size-${c}`, e),
423
- id: b,
424
- ref: _,
425
- render: o ? /* @__PURE__ */ T(o, {}) : void 0,
426
- store: u,
427
- ...s,
222
+ className: Se("root", `size-${n}`, c),
223
+ id: l,
224
+ ref: k,
225
+ render: e ? /* @__PURE__ */ _(e, {}) : void 0,
226
+ store: i,
227
+ ...g,
428
228
  children: [
429
- I,
229
+ C,
430
230
  t,
431
- r ? /* @__PURE__ */ T(Oe, { size: c, variant: d, children: r }) : null
231
+ r ? /* @__PURE__ */ _(ee, { size: n, variant: a, children: r }) : null
432
232
  ]
433
233
  }
434
234
  );
435
235
  }
436
236
  );
437
- ue.displayName = "Tabs.Tab";
438
- const me = re(({ children: o, ...r }, t) => /* @__PURE__ */ T(Xe, { ref: t, ...r, children: o }));
439
- me.displayName = "Tabs.Panel";
440
- const at = ae(de), be = re(
441
- ({ children: o, className: r, size: t = "lg", store: e, ...n }, a) => {
442
- const b = he.Children.map(
443
- o,
444
- (c) => we(c) ? ye(c, { size: t }) : c
237
+ L.displayName = "Tabs.Tab";
238
+ const R = M(({ children: e, ...r }, t) => /* @__PURE__ */ _(q, { ref: t, ...r, children: e }));
239
+ R.displayName = "Tabs.Panel";
240
+ const ve = $(j), W = M(
241
+ ({ children: e, className: r, size: t = "lg", store: c, ...s }, p) => {
242
+ const l = G.Children.map(
243
+ e,
244
+ (n) => Q(n) ? J(n, { size: t }) : n
445
245
  );
446
- return /* @__PURE__ */ T(
447
- Ge,
246
+ return /* @__PURE__ */ _(
247
+ D,
448
248
  {
449
- className: at("tab-list", `size-${t}`, r),
450
- ref: a,
451
- store: e,
452
- ...n,
453
- children: b
249
+ className: ve("tab-list", `size-${t}`, r),
250
+ ref: p,
251
+ store: c,
252
+ ...s,
253
+ children: l
454
254
  }
455
255
  );
456
256
  }
457
257
  );
458
- be.displayName = "Tabs";
459
- const Pt = Object.assign(be, { Panel: me, Tab: ue });
258
+ W.displayName = "Tabs";
259
+ const ze = Object.assign(W, { Panel: R, Tab: L });
460
260
  export {
461
- Pt as Tabs,
462
- be as TabsComponent,
463
- St as useTab
261
+ ze as Tabs,
262
+ W as TabsComponent,
263
+ we as useTab
464
264
  };
@@ -0,0 +1 @@
1
+ @layer components{._root_j3c87_2{border-style:solid;background-color:var(--components-colors-window-body-color-background-default);border-width:var(--components-dimensions-window-border-width);border-color:var(--components-colors-window-color-border-default);border-radius:var(--radius-lg);box-shadow:var(--elevation-10)}._header_j3c87_10{display:flex;align-items:center;justify-content:space-between;min-height:var(--components-dimensions-window-header-size-min-height);border-bottom:var(--components-dimensions-window-border-width) solid;border-color:var(--components-colors-window-color-border-default);padding-inline:var(--components-dimensions-window-header-padding-inline-xs);padding-block:var(--components-dimensions-window-header-padding-block-xs);gap:var(--components-dimensions-window-header-gap-content)}._header-title_j3c87_21{display:flex;flex:1;justify-content:center}._header-tabs_j3c87_26{display:flex;gap:var(--spacing-sm)}._header-tab-item_j3c87_30{cursor:pointer;display:flex;align-items:center;justify-content:center;transition-property:border-color,background-color,box-shadow;transition-timing-function:ease-in-out;border-radius:var(--radius-md);border-width:var(--components-dimensions-window-header-tab-border-width-active);gap:var(--spacing-xs);padding-block:var(--spacing-xs);padding-inline:var(--spacing-sm);transition-duration:var(--duration-fast);border-color:var(--windowTabItemBorderColor, transparent);background-color:var(--windowTabItemBackgroundColor, transparent);color:var(--windowTabItemColor, var(--components-colors-window-header-tab-color-text-default))}._header-tab-item_j3c87_30:hover{--windowTabItemBackgroundColor: var( --components-colors-window-header-tab-color-background-hover );--windowTabItemColor: var(--components-colors-window-header-tab-color-text-hover)}._header-tab-item_j3c87_30[aria-selected=true]{--windowTabItemBorderColor: var(--color-border-brand-primary);--windowTabItemBackgroundColor: var( --components-colors-window-header-tab-color-background-active );--windowTabItemColor: var(--components-colors-window-header-tab-color-text-active)}._header-action-button_j3c87_62{cursor:pointer;display:flex;justify-content:center;align-items:center;transition-property:border-color,background-color,box-shadow;transition-timing-function:ease-in-out;transition-duration:var(--duration-fast);width:var(--components-dimensions-window-header-action-size-container);height:var(--components-dimensions-window-header-action-size-container);border-radius:var(--components-dimensions-window-header-action-border-radius);outline:transparent solid var(--border-width-md);background-color:var(--windowButtonBackgroundColor, transparent)}._header-action-button_j3c87_62 svg{color:var(--windowButtonIconColor, var(--components-colors-window-header-action-color-icon-common-default))}._header-action-button_j3c87_62[data-focus-visible],._header-action-button_j3c87_62:focus-visible{outline-width:var(--components-dimensions-button-border-width-focused);outline-color:var(--components-colors-button-color-border-focused)}._header-action-button_j3c87_62:hover{--windowButtonBackgroundColor: var( --components-colors-window-header-action-color-background-common-hover );--windowButtonIconColor: var( --components-colors-window-header-action-color-icon-common-hover )}._header-action-button_j3c87_62:active{--windowButtonBackgroundColor: var( --components-colors-window-header-action-color-background-common-pressed );--windowButtonIconColor: var( --components-colors-window-header-action-color-icon-common-pressed )}._header-close-button_j3c87_101{border:1px solid var(--components-colors-window-header-action-color-border-close-default);--windowButtonIconColor: var(--components-colors-window-header-action-color-icon-close-default)}._header-close-button_j3c87_101:hover{--windowButtonBackgroundColor: var( --components-colors-window-header-action-color-background-close-hover );--windowButtonIconColor: var(--components-colors-window-header-action-color-icon-close-hover)}._header-close-button_j3c87_101:active{--windowButtonBackgroundColor: var( --components-colors-window-header-action-color-background-close-pressed );--windowButtonIconColor: var( --components-colors-window-header-action-color-icon-close-pressed )}._header-actions_j3c87_119{display:flex;gap:var(--components-dimensions-window-header-gap-content)}._tab-panel_j3c87_123[hidden]{display:none}._media_j3c87_126,._box-text_j3c87_127{margin-block:var(--components-dimensions-window-body-padding-block-xs);margin-inline:var(--components-dimensions-window-body-padding-inline-xs)}._media_j3c87_126 :first-child{border-radius:var(--components-dimensions-window-border-radius);max-width:100%;height:auto}._box-text_j3c87_127{border-radius:var(--components-dimensions-window-border-radius);background-color:var(--color-background-warm-primary);padding-block:var(--components-dimensions-window-body-padding-block-sm);padding-inline:var(--components-dimensions-window-body-padding-inline-sm)}._size-xl_j3c87_142{padding-block:var(--components-dimensions-window-body-padding-block-xl);padding-inline:var(--components-dimensions-window-body-padding-inline-xl)}._size-lg_j3c87_146{padding-block:var(--components-dimensions-window-body-padding-block-lg);padding-inline:var(--components-dimensions-window-body-padding-inline-lg)}._size-md_j3c87_150{padding-block:var(--components-dimensions-window-body-padding-block-md);padding-inline:var(--components-dimensions-window-body-padding-inline-md)}._size-sm_j3c87_154{padding-block:var(--components-dimensions-window-body-padding-block-sm);padding-inline:var(--components-dimensions-window-body-padding-inline-sm)}._size-xs_j3c87_158{padding-block:var(--components-dimensions-window-body-padding-block-xs);padding-inline:var(--components-dimensions-window-body-padding-inline-xs)}}