welcome-ui 10.6.4 → 10.6.6

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 (103) hide show
  1. package/dist/Accordion.js +6 -6
  2. package/dist/Button.js +2 -2
  3. package/dist/Checkbox.js +1 -1
  4. package/dist/{CustomPopper-C1wIDHbM.js → CustomPopper-DWdMQOgg.js} +1 -1
  5. package/dist/D5lwkpmX-BTxFdaqc.js +1061 -0
  6. package/dist/DatePicker.js +2 -2
  7. package/dist/DateTimePicker.js +3 -3
  8. package/dist/DjvJNLSl-CB2sOBlX.js +88 -0
  9. package/dist/Drawer.js +4 -4
  10. package/dist/DropdownMenu.js +811 -925
  11. package/dist/Modal.js +14 -14
  12. package/dist/Popover.js +25 -24
  13. package/dist/Radio.js +1 -1
  14. package/dist/RadioGroup.js +41 -46
  15. package/dist/RadioTab.js +1 -1
  16. package/dist/Search.css +1 -1
  17. package/dist/Search.js +105 -106
  18. package/dist/Select.css +1 -1
  19. package/dist/Select.js +257 -251
  20. package/dist/Tabs.js +192 -198
  21. package/dist/TimePicker.js +4 -4
  22. package/dist/Toggle.js +1 -1
  23. package/dist/Tooltip.css +1 -1
  24. package/dist/Tooltip.js +150 -185
  25. package/dist/WelcomeLoader.js +86 -86
  26. package/dist/Window.js +5 -5
  27. package/dist/button-BmXyuOyT.js +24 -0
  28. package/dist/combobox-context-COdkPD-I.js +14 -0
  29. package/dist/command-JKE9Az0e.js +78 -0
  30. package/dist/composite-BOnUaIWf.js +198 -0
  31. package/dist/composite-item-CzuZunbi.js +763 -0
  32. package/dist/composite-store-BbsZpdXc.js +21 -0
  33. package/dist/dialog-RAMLmAdq.js +1222 -0
  34. package/dist/dialog-disclosure-xHQQLmS6.js +25 -0
  35. package/dist/dialog-dismiss-DVxKs13g.js +48 -0
  36. package/dist/disclosure-BQqv9Q8p.js +47 -0
  37. package/dist/disclosure-store-KfU9xwem.js +168 -0
  38. package/dist/hovercard-anchor-CgWES4cl.js +19 -0
  39. package/dist/hovercard-store-DjVhDVte.js +569 -0
  40. package/dist/index-B0vSTNCB.js +609 -0
  41. package/dist/popover-context-B2YQ_e3N.js +12 -0
  42. package/dist/popover-disclosure-a-bqp8Gt.js +183 -0
  43. package/dist/radio-J8ogFsWS.js +77 -0
  44. package/dist/tab-panel-DMICXMJc.js +187 -0
  45. package/dist/types/components/Accordion/index.d.ts +1 -1
  46. package/dist/types/components/Alert/components/Title.d.ts +1 -1
  47. package/dist/types/components/Alert/index.d.ts +1 -1
  48. package/dist/types/components/DateTimePickerCommon/CustomHeader.d.ts +1 -1
  49. package/dist/types/components/DateTimePickerCommon/CustomPopper.d.ts +1 -1
  50. package/dist/types/components/Drawer/AssetDrawer/Header.d.ts +1 -1
  51. package/dist/types/components/Drawer/AssetDrawer/IconBlock.d.ts +1 -1
  52. package/dist/types/components/Drawer/components/Close.d.ts +1 -1
  53. package/dist/types/components/Drawer/index.d.ts +6 -6
  54. package/dist/types/components/FileDrop/components/FilePreview.d.ts +1 -1
  55. package/dist/types/components/FileDrop/components/Message.d.ts +1 -1
  56. package/dist/types/components/Icon/Sprite.d.ts +1 -1
  57. package/dist/types/components/Loader/index.d.ts +1 -1
  58. package/dist/types/components/Modal/Assets/AssetContent.d.ts +1 -1
  59. package/dist/types/components/Modal/Assets/AssetTitle.d.ts +1 -1
  60. package/dist/types/components/Modal/Assets/CloseButton.d.ts +1 -1
  61. package/dist/types/components/Modal/Assets/Iframe.d.ts +1 -1
  62. package/dist/types/components/Modal/Assets/index.d.ts +3 -3
  63. package/dist/types/components/Modal/components/Footer.d.ts +2 -2
  64. package/dist/types/components/Modal/index.d.ts +9 -9
  65. package/dist/types/components/PasswordInput/ToggleButton.d.ts +1 -1
  66. package/dist/types/components/Popover/Arrow.d.ts +1 -1
  67. package/dist/types/components/Popover/ContentWrapper.d.ts +1 -1
  68. package/dist/types/components/RadioGroup/index.d.ts +1 -1
  69. package/dist/types/components/Stepper/index.d.ts +2 -2
  70. package/dist/types/components/Stepper/utils.d.ts +1 -1
  71. package/dist/types/components/StickyNote/components/Button.d.ts +1 -1
  72. package/dist/types/components/StickyNote/components/Title.d.ts +1 -1
  73. package/dist/types/components/StickyNote/index.d.ts +2 -2
  74. package/dist/types/components/Swiper/components/SwiperNextButton.d.ts +1 -1
  75. package/dist/types/components/Swiper/components/SwiperPrevButton.d.ts +1 -1
  76. package/dist/types/components/Swiper/components/SwiperSlides.d.ts +1 -1
  77. package/dist/types/components/Swiper/index.d.ts +4 -4
  78. package/dist/types/components/Table/index.d.ts +5 -5
  79. package/dist/types/components/Tabs/utils.d.ts +1 -1
  80. package/dist/types/components/Toast/index.d.ts +2 -2
  81. package/dist/types/components/Window/components/Header.d.ts +4 -4
  82. package/dist/types/components/Window/index.d.ts +4 -4
  83. package/package.json +2 -2
  84. package/dist/5TKKKQCL-rs260p95.js +0 -80
  85. package/dist/7PRQYBBV-D9IY4qtU.js +0 -14
  86. package/dist/APVORPDK-i7Z_eBMP.js +0 -25
  87. package/dist/CVCFNOHX-Ck0bUDvo.js +0 -20
  88. package/dist/ECBEZ4YM-o09xUuV6.js +0 -600
  89. package/dist/HMKTUWOU-NkVXWCyR.js +0 -25
  90. package/dist/I7KWAPMF-DQWZpGyL.js +0 -86
  91. package/dist/IQYAUKXT-Cltvp3KN.js +0 -303
  92. package/dist/JMU4N4M5-DnfyqGdJ.js +0 -15
  93. package/dist/NDVACHQI-WTOpOfgG.js +0 -37
  94. package/dist/OCCHVUS4-BJVLPRH8.js +0 -48
  95. package/dist/PZ3OL7I2-Cfim3UGe.js +0 -61
  96. package/dist/Q5W46E73-5xQblshY.js +0 -346
  97. package/dist/RFRKSHIZ-C_FLl4qI.js +0 -147
  98. package/dist/U6HHPQDW-CzxyP5H7.js +0 -856
  99. package/dist/WLZ6H5FH-CuTcX7sR.js +0 -183
  100. package/dist/WZWDIE3S-CGqoM1Fy.js +0 -290
  101. package/dist/Z32PU2LQ-DMjfxuT9.js +0 -945
  102. package/dist/ZMWF7ASR-Jc8y_k3t.js +0 -166
  103. package/dist/tab-panel-Cc3MfOBM.js +0 -212
package/dist/Tabs.js CHANGED
@@ -1,175 +1,169 @@
1
1
  "use client";
2
2
  import './Tabs.css';
3
3
  import { jsx as h, jsxs as L } from "react/jsx-runtime";
4
- import { T as V, b as A, a as F } from "./tab-panel-Cc3MfOBM.js";
5
- import T, { createContext as C, useMemo as R, forwardRef as O } from "react";
6
- import { c as w } from "./index-B6iGEm-i.js";
7
- import { m as W, o as y, c as K, s as p, d as m, g as Q, u as E, a as j, b as U } from "./Q5W46E73-5xQblshY.js";
8
- import { Badge as D } from "./Badge.js";
9
- import { f as G } from "./forwardRefWithAs-8eP3ZN15.js";
10
- import { Icon as H } from "./Icon.js";
11
- import { P as J, b as X } from "./JMU4N4M5-DnfyqGdJ.js";
12
- import { C as Y, a as Z } from "./WZWDIE3S-CGqoM1Fy.js";
13
- import { b as ee, x as v, Q as z, y as P } from "./U6HHPQDW-CzxyP5H7.js";
14
- import { c as te, a as oe, u as ae } from "./IQYAUKXT-Cltvp3KN.js";
15
- import { a as se } from "./CVCFNOHX-Ck0bUDvo.js";
16
- var re = ee(
17
- [X, Z],
18
- [J, Y]
19
- ), ie = re.useContext;
20
- C(!1);
21
- C(null);
22
- function le({
23
- composite: e,
24
- combobox: a,
25
- ...t
26
- } = {}) {
27
- const i = [
4
+ import { T as A, b as R, a as W } from "./tab-panel-DMICXMJc.js";
5
+ import { a as K } from "./combobox-context-COdkPD-I.js";
6
+ import { u as U } from "./composite-store-BbsZpdXc.js";
7
+ import { P as D, b as G } from "./popover-context-B2YQ_e3N.js";
8
+ import { C as H, a as J, c as Q, m as X } from "./composite-item-CzuZunbi.js";
9
+ import { b as Y, w as _, V as z, ab as Z, x as y } from "./D5lwkpmX-BTxFdaqc.js";
10
+ import O, { createContext as F, useMemo as ee, forwardRef as M } from "react";
11
+ import { m as te, o as E, c as oe, s as I, d as f, g as re, a as N, b as C, u as se } from "./index-B0vSTNCB.js";
12
+ import { c as j } from "./index-B6iGEm-i.js";
13
+ import { Badge as ae } from "./Badge.js";
14
+ import { f as ne } from "./forwardRefWithAs-8eP3ZN15.js";
15
+ import { Icon as le } from "./Icon.js";
16
+ const ie = Y([G, J], [D, H]), ce = ie.useContext;
17
+ F(!1);
18
+ F(null);
19
+ function de(e) {
20
+ var a;
21
+ const o = (a = e[0]) == null ? void 0 : a.element;
22
+ if (!o) return;
23
+ const t = Z(o);
24
+ if (t)
25
+ return e.find((l) => l.element === t);
26
+ }
27
+ function ue(e, o) {
28
+ if (o != null)
29
+ return e.find((t) => t.id === o);
30
+ }
31
+ function w(e) {
32
+ return !(!e || e.disabled || e.dimmed);
33
+ }
34
+ function me() {
35
+ const e = X(), o = /* @__PURE__ */ new Map();
36
+ return f(e, ["items"], (t) => {
37
+ o.clear();
38
+ for (const a of t.items) {
39
+ const { tabId: l } = a;
40
+ l != null && (o.has(l) || o.set(l, a));
41
+ }
42
+ }), {
43
+ panels: e,
44
+ panel: (t) => t == null ? null : o.get(t) || null
45
+ };
46
+ }
47
+ function fe({ composite: e, combobox: o, ...t } = {}) {
48
+ const a = [
28
49
  "items",
29
50
  "renderedItems",
30
51
  "moves",
31
52
  "orientation",
32
53
  "virtualFocus",
54
+ "compositeElementInFocusOrder",
33
55
  "includesBaseElement",
56
+ "compositeElement",
34
57
  "baseElement",
35
58
  "focusLoop",
36
59
  "focusShift",
37
- "focusWrap"
38
- ], l = W(
39
- t.store,
40
- y(e, i),
41
- y(a, i)
42
- ), r = l == null ? void 0 : l.getState(), d = te({
60
+ "focusWrap",
61
+ "selectOnMove"
62
+ ], l = te(t.store, E(e, a), E(o, a)), r = l == null ? void 0 : l.getState(), m = Q({
43
63
  ...t,
44
64
  store: l,
45
- // We need to explicitly set the default value of `includesBaseElement` to
46
- // `false` since we don't want the composite store to default it to `true`
47
- // when the activeId state is null, which could be the case when rendering
48
- // combobox with tab.
49
- includesBaseElement: v(
50
- t.includesBaseElement,
51
- r == null ? void 0 : r.includesBaseElement,
52
- !1
53
- ),
54
- orientation: v(
55
- t.orientation,
56
- r == null ? void 0 : r.orientation,
57
- "horizontal"
58
- ),
59
- focusLoop: v(t.focusLoop, r == null ? void 0 : r.focusLoop, !0)
60
- }), b = oe(), I = {
61
- ...d.getState(),
62
- selectedId: v(
63
- t.selectedId,
64
- r == null ? void 0 : r.selectedId,
65
- t.defaultSelectedId
66
- ),
67
- selectOnMove: v(
68
- t.selectOnMove,
69
- r == null ? void 0 : r.selectOnMove,
70
- !0
71
- )
72
- }, o = K(I, d, l);
73
- p(
74
- o,
75
- () => m(o, ["moves"], () => {
76
- const { activeId: s, selectOnMove: n } = o.getState();
77
- if (!n || !s) return;
78
- const c = d.item(s);
79
- c && (c.dimmed || c.disabled || o.setState("selectedId", c.id));
80
- })
81
- );
82
- let u = !0;
83
- p(
84
- o,
85
- () => Q(o, ["selectedId"], (s, n) => {
86
- if (!u) {
87
- u = !0;
88
- return;
89
- }
90
- e && s.selectedId === n.selectedId || o.setState("activeId", s.selectedId);
91
- })
92
- ), p(
93
- o,
94
- () => m(o, ["selectedId", "renderedItems"], (s) => {
95
- if (s.selectedId !== void 0) return;
96
- const { activeId: n, renderedItems: c } = o.getState(), f = d.item(n);
97
- if (f && !f.disabled && !f.dimmed)
98
- o.setState("selectedId", f.id);
99
- else {
100
- const k = c.find(
101
- (g) => !g.disabled && !g.dimmed
102
- );
103
- o.setState("selectedId", k == null ? void 0 : k.id);
104
- }
105
- })
106
- ), p(
107
- o,
108
- () => m(o, ["renderedItems"], (s) => {
109
- const n = s.renderedItems;
110
- if (n.length)
111
- return m(b, ["renderedItems"], (c) => {
112
- const f = c.renderedItems;
113
- f.some((g) => !g.tabId) && f.forEach((g, B) => {
114
- if (g.tabId) return;
115
- const x = n[B];
116
- x && b.renderItem({ ...g, tabId: x.id });
65
+ compositeElementInFocusOrder: _(t.compositeElementInFocusOrder, t.includesBaseElement, r == null ? void 0 : r.compositeElementInFocusOrder, r == null ? void 0 : r.includesBaseElement, !1),
66
+ orientation: _(t.orientation, r == null ? void 0 : r.orientation, "horizontal"),
67
+ focusLoop: _(t.focusLoop, r == null ? void 0 : r.focusLoop, !0)
68
+ }), { panels: b, panel: x } = me(), S = {
69
+ ...m.getState(),
70
+ selectedId: _(t.selectedId, r == null ? void 0 : r.selectedId, t.defaultSelectedId),
71
+ selectOnMove: _(t.selectOnMove, r == null ? void 0 : r.selectOnMove, !0)
72
+ }, s = oe(S, m, l);
73
+ I(s, () => f(s, ["moves"], () => {
74
+ const { activeId: n, selectOnMove: d } = s.getState();
75
+ if (!d || !n) return;
76
+ const u = m.item(n);
77
+ w(u) && s.setState("selectedId", u.id);
78
+ }));
79
+ let g = !1, v;
80
+ I(s, () => (g = !1, re(s, ["selectedId"], (n, d) => {
81
+ if (g && (g = !1, n.selectedId === v) || e && n.selectedId === d.selectedId) return;
82
+ const { activeId: u, renderedItems: i } = s.getState();
83
+ if (u === n.selectedId) return;
84
+ const c = de(i), k = ue(i, n.selectedId);
85
+ if (c && w(k)) {
86
+ m.move(k.id);
87
+ return;
88
+ }
89
+ s.setState("activeId", n.selectedId);
90
+ }))), I(s, () => f(s, ["selectedId", "renderedItems"], (n) => {
91
+ if (n.selectedId !== void 0) return;
92
+ const { activeId: d, renderedItems: u } = s.getState(), i = m.item(d);
93
+ if (w(i)) s.setState("selectedId", i.id);
94
+ else {
95
+ const c = u.find(w);
96
+ s.setState("selectedId", c == null ? void 0 : c.id);
97
+ }
98
+ })), I(s, () => f(s, ["renderedItems"], (n) => {
99
+ const d = n.renderedItems;
100
+ if (d.length)
101
+ return f(b, ["renderedItems"], (u) => {
102
+ const i = u.renderedItems;
103
+ i.some((c) => !c.tabId) && i.forEach((c, k) => {
104
+ if (c.tabId) return;
105
+ const P = d[k];
106
+ P && b.renderItem({
107
+ ...c,
108
+ tabId: P.id
117
109
  });
118
110
  });
119
- })
120
- );
121
- let _ = null;
122
- return p(o, () => {
123
- const s = () => {
124
- _ = o.getState().selectedId;
125
- }, n = () => {
126
- u = !1, o.setState("selectedId", _);
127
- };
128
- if (e && "setSelectElement" in e)
129
- return z(
130
- m(e, ["value"], s),
131
- m(e, ["mounted"], n)
132
- );
133
- if (a)
134
- return z(
135
- m(a, ["selectedValue"], s),
136
- m(a, ["mounted"], n)
137
- );
111
+ });
112
+ }));
113
+ let p = null;
114
+ return I(s, () => {
115
+ const n = () => {
116
+ p = s.getState().selectedId;
117
+ }, d = () => {
118
+ const { selectedId: c } = s.getState();
119
+ c !== p && (g = !0, v = p, s.setState("selectedId", p));
120
+ }, u = !!e && "setSelectedValue" in e, i = u ? e : o;
121
+ if (e && !u && "setSelectElement" in e) return z(f(e, ["value"], n), f(e, ["mounted"], d));
122
+ if (i)
123
+ return z(f(i, ["selectedValue"], n), f(i, ["mounted"], d));
138
124
  }), {
139
- ...d,
140
- ...o,
125
+ ...m,
126
+ ...s,
141
127
  panels: b,
142
- setSelectedId: (s) => o.setState("selectedId", s),
143
- select: (s) => {
144
- o.setState("selectedId", s), d.move(s);
128
+ panel: x,
129
+ setSelectedId: (n) => s.setState("selectedId", n),
130
+ select: (n) => {
131
+ s.setState("selectedId", n), m.move(n);
145
132
  }
146
133
  };
147
134
  }
148
- function ne(e, a, t) {
149
- P(a, [t.composite, t.combobox]), e = ae(e, a, t), j(e, t, "selectedId", "setSelectedId"), j(e, t, "selectOnMove");
150
- const [i, l] = E(() => e.panels, {});
151
- return P(l, [e, l]), Object.assign(
152
- R(() => ({ ...e, panels: i }), [e, i]),
153
- { composite: t.composite, combobox: t.combobox }
154
- );
135
+ function be(e, o, t) {
136
+ y(o, [
137
+ t.composite,
138
+ t.combobox,
139
+ o
140
+ ]);
141
+ const a = U(e, o, t);
142
+ C(a, t, "selectedId", "setSelectedId"), C(a, t, "selectOnMove");
143
+ const [l, r] = N(() => a.panels, {});
144
+ return y(r, [a, r]), Object.assign(ee(() => ({
145
+ ...a,
146
+ panels: l
147
+ }), [a, l]), {
148
+ composite: t.composite,
149
+ combobox: t.combobox
150
+ });
155
151
  }
156
- function Fe(e = {}) {
157
- const a = se(), t = ie() || a;
158
- e = {
152
+ function Ge(e = {}) {
153
+ const o = K(), t = ce() || o, a = {
159
154
  ...e,
160
155
  composite: e.composite !== void 0 ? e.composite : t,
161
- combobox: e.combobox !== void 0 ? e.combobox : a
162
- };
163
- const [i, l] = E(le, e);
164
- return ne(i, l, e);
156
+ combobox: e.combobox !== void 0 ? e.combobox : o
157
+ }, [l, r] = N(fe, a);
158
+ return be(l, r, a);
165
159
  }
166
- const N = T.createContext(null);
167
- function ce() {
168
- const e = T.useContext(N);
160
+ const $ = O.createContext(null);
161
+ function ge() {
162
+ const e = O.useContext($);
169
163
  return (e == null ? void 0 : e.size) || "lg";
170
164
  }
171
- const de = "_root_ijogm_2", S = {
172
- root: de,
165
+ const pe = "_root_ijogm_2", T = {
166
+ root: pe,
173
167
  "size-lg": "_size-lg_ijogm_58",
174
168
  "size-md": "_size-md_ijogm_65",
175
169
  "folder-icon": "_folder-icon_ijogm_75",
@@ -188,7 +182,7 @@ const de = "_root_ijogm_2", S = {
188
182
  "folder-icon-warm": "_folder-icon-warm_ijogm_114",
189
183
  "folder-icon-warm-active": "_folder-icon-warm-active_ijogm_117",
190
184
  "tab-list": "_tab-list_ijogm_123"
191
- }, me = [
185
+ }, he = [
192
186
  "angle-left-b",
193
187
  "angle-right-b",
194
188
  "angle-up",
@@ -205,7 +199,7 @@ const de = "_root_ijogm_2", S = {
205
199
  "angle-double-right",
206
200
  "angle-left",
207
201
  "angle-right"
208
- ], ue = [
202
+ ], ve = [
209
203
  "asterisk",
210
204
  "info-circle",
211
205
  "chart-line",
@@ -261,13 +255,13 @@ const de = "_root_ijogm_2", S = {
261
255
  "share",
262
256
  "bulk",
263
257
  "bulk-active"
264
- ], fe = [
258
+ ], _e = [
265
259
  "chat",
266
260
  "chat-bubble-user",
267
261
  "comment",
268
262
  "comment-alt-lines",
269
263
  "comment-chart-line"
270
- ], ge = [
264
+ ], Ie = [
271
265
  "music",
272
266
  "rocket",
273
267
  "file-alt",
@@ -354,7 +348,7 @@ const de = "_root_ijogm_2", S = {
354
348
  "certified",
355
349
  // (not unicons, personal mashup)
356
350
  "plug"
357
- ], be = [
351
+ ], ke = [
358
352
  "play",
359
353
  "play-solid",
360
354
  "stop-circle-solid",
@@ -384,7 +378,7 @@ const de = "_root_ijogm_2", S = {
384
378
  "volume-up",
385
379
  "volume-mute",
386
380
  "closed-captioning"
387
- ], he = [
381
+ ], we = [
388
382
  "icons",
389
383
  "package",
390
384
  "basketball",
@@ -460,14 +454,14 @@ const de = "_root_ijogm_2", S = {
460
454
  "redo",
461
455
  "play",
462
456
  "ban"
463
- ], pe = [
457
+ ], xe = [
464
458
  "folder",
465
459
  "folder-open",
466
460
  "folder-full",
467
461
  "folder-plus",
468
462
  "file",
469
463
  "image"
470
- ], ve = [
464
+ ], Se = [
471
465
  "bold",
472
466
  "arrow",
473
467
  "brackets-curly",
@@ -493,7 +487,7 @@ const de = "_root_ijogm_2", S = {
493
487
  // (not unicons, original creation)
494
488
  "font",
495
489
  "underline"
496
- ], _e = [
490
+ ], je = [
497
491
  "behance",
498
492
  "dribbble",
499
493
  "facebook",
@@ -520,80 +514,80 @@ const de = "_root_ijogm_2", S = {
520
514
  // (not unicons)
521
515
  "medium"
522
516
  // (not unicons)
523
- ], Ie = ["symbol", "wttj"], ke = ["flag-fr", "flag-en", "flag-us"], we = [
524
- ...ue,
525
- ...me,
526
- ..._e,
527
- ...fe,
528
- ...pe,
529
- ...ke,
517
+ ], Te = ["symbol", "wttj"], Pe = ["flag-fr", "flag-en", "flag-us"], ze = [
530
518
  ...ve,
531
- ...ge,
532
- ...be,
519
+ ...he,
520
+ ...je,
521
+ ..._e,
522
+ ...xe,
523
+ ...Pe,
524
+ ...Se,
533
525
  ...Ie,
534
- ...he
535
- ], Se = (e) => we.includes(e), xe = w(S);
536
- function ye({
526
+ ...ke,
527
+ ...Te,
528
+ ...we
529
+ ], ye = (e) => ze.includes(e), Ee = j(T);
530
+ function Ce({
537
531
  icon: e,
538
- iconColor: a,
532
+ iconColor: o,
539
533
  isActive: t,
540
- size: i
534
+ size: a
541
535
  }) {
542
- return e ? typeof e != "string" || !Se(e) ? e : /* @__PURE__ */ h(
543
- H,
536
+ return e ? typeof e != "string" || !ye(e) ? e : /* @__PURE__ */ h(
537
+ le,
544
538
  {
545
- className: a ? xe("folder-icon", `folder-icon-${a}${t ? "-active" : ""}`) : void 0,
539
+ className: o ? Ee("folder-icon", `folder-icon-${o}${t ? "-active" : ""}`) : void 0,
546
540
  name: e,
547
- size: i
541
+ size: a
548
542
  }
549
543
  ) : null;
550
544
  }
551
- const je = w(S), $ = G(
552
- ({ as: e, badge: a, children: t, className: i, icon: l, iconColor: r = "violet", id: d, store: b, ...I }, o) => {
553
- const u = ce(), { selectedId: _ } = U(b), s = _ === d, n = ye({
545
+ const Oe = j(T), V = ne(
546
+ ({ as: e, badge: o, children: t, className: a, icon: l, iconColor: r = "violet", id: m, store: b, ...x }, S) => {
547
+ const s = ge(), { selectedId: g } = se(b), v = g === m, p = Ce({
554
548
  icon: l,
555
549
  iconColor: r,
556
- isActive: s,
557
- size: u
558
- }), c = s ? "neutral" : "warm";
550
+ isActive: v,
551
+ size: s
552
+ }), n = v ? "neutral" : "warm";
559
553
  return /* @__PURE__ */ L(
560
- V,
554
+ A,
561
555
  {
562
- className: je("root", `size-${u}`, i),
563
- id: d,
564
- ref: o,
556
+ className: Oe("root", `size-${s}`, a),
557
+ id: m,
558
+ ref: S,
565
559
  render: e ? /* @__PURE__ */ h(e, {}) : void 0,
566
560
  store: b,
567
- ...I,
561
+ ...x,
568
562
  children: [
569
- n,
563
+ p,
570
564
  t,
571
- a ? /* @__PURE__ */ h(D, { size: u, variant: c, children: a }) : null
565
+ o ? /* @__PURE__ */ h(ae, { size: s, variant: n, children: o }) : null
572
566
  ]
573
567
  }
574
568
  );
575
569
  }
576
570
  );
577
- $.displayName = "Tabs.Tab";
578
- const M = O(({ children: e, ...a }, t) => /* @__PURE__ */ h(A, { ref: t, ...a, children: e }));
579
- M.displayName = "Tabs.Panel";
580
- const ze = w(S), q = O(
581
- ({ children: e, className: a, size: t = "lg", store: i, ...l }, r) => /* @__PURE__ */ h(
582
- F,
571
+ V.displayName = "Tabs.Tab";
572
+ const B = M(({ children: e, ...o }, t) => /* @__PURE__ */ h(R, { ref: t, ...o, children: e }));
573
+ B.displayName = "Tabs.Panel";
574
+ const Fe = j(T), q = M(
575
+ ({ children: e, className: o, size: t = "lg", store: a, ...l }, r) => /* @__PURE__ */ h(
576
+ W,
583
577
  {
584
- className: ze("tab-list", `size-${t}`, a),
578
+ className: Fe("tab-list", `size-${t}`, o),
585
579
  ref: r,
586
- store: i,
580
+ store: a,
587
581
  ...l,
588
- children: /* @__PURE__ */ h(N.Provider, { value: { size: t }, children: e })
582
+ children: /* @__PURE__ */ h($.Provider, { value: { size: t }, children: e })
589
583
  }
590
584
  )
591
585
  );
592
586
  q.displayName = "Tabs";
593
- const Re = Object.assign(q, { Panel: M, Tab: $ });
587
+ const He = Object.assign(q, { Panel: B, Tab: V });
594
588
  export {
595
- Re as Tabs,
589
+ He as Tabs,
596
590
  q as TabsComponent,
597
- S as tabsClasses,
598
- Fe as useTab
591
+ T as tabsClasses,
592
+ Ge as useTab
599
593
  };
@@ -1,8 +1,8 @@
1
1
  "use client";
2
2
  import { jsx as f } from "react/jsx-runtime";
3
3
  import { forwardRef as S, useState as j, useRef as F, useEffect as d } from "react";
4
- import { D as I, C as L } from "./CustomPopper-C1wIDHbM.js";
5
- import { b as M, D as O, s as U } from "./utils-ZE_dEXnJ.js";
4
+ import { D as I, C as L } from "./CustomPopper-DWdMQOgg.js";
5
+ import { D as M, b as O, s as U } from "./utils-ZE_dEXnJ.js";
6
6
  import { InputText as _ } from "./InputText.js";
7
7
  import { c as q } from "./index-B6iGEm-i.js";
8
8
  const a = q(U), z = S(
@@ -18,10 +18,10 @@ const a = q(U), z = S(
18
18
  size: x = "md",
19
19
  timeIntervals: m = 15,
20
20
  transparent: y,
21
- value: r = O,
21
+ value: r = M,
22
22
  ...c
23
23
  }, p) => {
24
- const i = (e) => M(e, m), [A, l] = j(i(r)), H = F(), P = p || H;
24
+ const i = (e) => O(e, m), [A, l] = j(i(r)), H = F(), P = p || H;
25
25
  d(() => {
26
26
  t == null || t(i(r));
27
27
  }, []), d(() => {
package/dist/Toggle.js CHANGED
@@ -1,7 +1,7 @@
1
1
  "use client";
2
2
  import './Toggle.css';
3
3
  import { jsxs as d, jsx as s } from "react/jsx-runtime";
4
- import { a as f } from "./I7KWAPMF-DQWZpGyL.js";
4
+ import { a as f } from "./DjvJNLSl-CB2sOBlX.js";
5
5
  import { forwardRef as h } from "react";
6
6
  import { useField as w } from "./Field.js";
7
7
  import { Icon as a } from "./Icon.js";
package/dist/Tooltip.css CHANGED
@@ -1 +1 @@
1
- @layer components{._root_1r2b3_2{display:flex;flex-direction:column;gap:var(--tooltip-gap-content);background-color:var(--tooltip-color-background);border:var(--tooltip-border-width) solid var(--tooltip-color-border);border-radius:var(--tooltip-border-radius);box-sizing:border-box;color:var(--tooltip-color-text);max-width:12.5rem;padding:var(--tooltip-padding-block) var(--tooltip-padding-inline);transition-property:opacity,visibility;transition-duration:var(--duration-medium);z-index:10;visibility:var(--visibility, hidden);opacity:var(--opacity, 0);box-shadow:var(--elevation-20)}._root_1r2b3_2[data-enter=true]{--visibility: visible;--opacity: 1}._childItem_1r2b3_24{display:inline}}
1
+ @layer components{._root_auyq0_2{display:flex;flex-direction:column;gap:var(--tooltip-gap-content);background-color:var(--tooltip-color-background);border:var(--tooltip-border-width) solid var(--tooltip-color-border);border-radius:var(--tooltip-border-radius);box-sizing:border-box;color:var(--tooltip-color-text);max-width:12.5rem;padding:var(--tooltip-padding-block) var(--tooltip-padding-inline);transition-property:opacity,visibility;transition-duration:var(--duration-medium);z-index:10;visibility:var(--visibility, hidden);opacity:var(--opacity, 0);box-shadow:var(--elevation-20)}._root_auyq0_2[data-enter=true]{--visibility: visible;--opacity: 1}._childItem_auyq0_24{display:inline-block;width:fit-content}}