@konstructio/ui 0.0.13-alpha.2 → 0.1.0-alpha.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{Combination-b348x__d.js → Combination-VYaRRJBZ.js} +155 -157
- package/dist/DatePicker.css +1 -0
- package/dist/Modal-CrG0m703.js +98 -0
- package/dist/assets/icons/components/Search.js +26 -0
- package/dist/assets/icons/components/Warning.js +22 -0
- package/dist/assets/icons/components/index.js +6 -0
- package/dist/chevron-down-UW8ts6wI.js +11 -0
- package/dist/{chevron-up-DgLBQCKD.js → chevron-up-RLP4nX7V.js} +1 -1
- package/dist/components/Alert/Alert.js +2 -2
- package/dist/components/AlertDialog/AlertDialog.js +55 -41
- package/dist/components/AlertDialog/components/AlertDialogTrigger.js +1 -1
- package/dist/components/AlertDialog/components/index.js +1 -1
- package/dist/components/Badge/Badge.js +79 -0
- package/dist/components/Badge/Badge.variants.js +68 -0
- package/dist/components/Breadcrumb/Breadcrumb.js +44 -53
- package/dist/components/Breadcrumb/Breadcrumb.variants.js +10 -41
- package/dist/components/Breadcrumb/components/Item/Item.js +22 -23
- package/dist/components/Breadcrumb/components/Item/Item.variants.js +43 -56
- package/dist/components/Breadcrumb/hooks/useBreadcrumb.js +1 -1
- package/dist/components/Button/Button.js +30 -26
- package/dist/components/Button/Button.variants.js +116 -29
- package/dist/components/Checkbox/Checkbox.js +300 -185
- package/dist/components/Checkbox/Checkbox.variants.js +12 -15
- package/dist/components/Command/Command.js +2 -2
- package/dist/components/Command/components/Command.js +1 -1
- package/dist/components/Command/components/CommandEmpty.js +1 -1
- package/dist/components/Command/components/CommandGroup.js +1 -1
- package/dist/components/Command/components/CommandInput.js +2 -2
- package/dist/components/Command/components/CommandItem.js +1 -1
- package/dist/components/Command/components/CommandList.js +1 -1
- package/dist/components/Command/components/CommandSeparator.js +1 -1
- package/dist/components/Command/components/DialogContent.js +2 -2
- package/dist/components/Command/components/DialogOverlay.js +1 -1
- package/dist/components/Datepicker/DatePicker.js +2722 -0
- package/dist/components/Datepicker/DatePicker.variants.js +5 -0
- package/dist/components/Divider/Divider.variants.js +9 -12
- package/dist/components/Dropdown/components/List/List.js +55 -18
- package/dist/components/Dropdown/components/List/List.variants.js +5 -3
- package/dist/components/Dropdown/components/ListItem/ListItem.js +28 -22
- package/dist/components/Dropdown/components/Wrapper.js +110 -86
- package/dist/components/Dropdown/contexts/dropdown.context.js +6 -2
- package/dist/components/Dropdown/contexts/dropdown.hook.js +5 -3
- package/dist/components/Dropdown/contexts/dropdown.provider.js +18 -11
- package/dist/components/Filter/Filter.js +20 -0
- package/dist/components/Filter/Filter.variants.js +22 -0
- package/dist/components/Filter/components/BadgeDropdown/BadgeMultiSelect.hook.js +87 -0
- package/dist/components/Filter/components/BadgeDropdown/BadgeMultiSelect.js +95 -0
- package/dist/components/Filter/components/DateFilterDropdown/DateFilterDropdown.hook.js +87 -0
- package/dist/components/Filter/components/DateFilterDropdown/DateFilterDropdown.js +90 -0
- package/dist/components/Filter/components/ResetButton/ResetButton.js +18 -0
- package/dist/components/Filter/components/index.js +8 -0
- package/dist/components/Filter/events/index.js +12 -0
- package/dist/components/Input/Input.js +134 -163
- package/dist/components/Input/Input.variants.js +15 -13
- package/dist/components/Loading/Loading.js +14 -99
- package/dist/components/Modal/Modal.js +2 -2
- package/dist/components/Modal/components/Body/Body.js +1 -1
- package/dist/components/Modal/components/Footer/Footer.js +1 -1
- package/dist/components/Modal/components/Header/Header.js +1 -1
- package/dist/components/Modal/components/Wrapper/Wrapper.js +4 -4
- package/dist/components/Modal/components/Wrapper/Wrapper.variants.js +4 -6
- package/dist/components/Modal/components/index.js +1 -1
- package/dist/components/NumberInput/NumberInput.js +2 -2
- package/dist/components/Radio/Radio.variants.js +14 -12
- package/dist/components/RadioGroup/RadioGroup.js +1 -1
- package/dist/components/Range/Range.js +1 -1
- package/dist/components/Slider/Slider.js +1 -1
- package/dist/components/Switch/Switch.js +141 -126
- package/dist/components/Tabs/Tabs.js +24 -0
- package/dist/components/Tabs/Tabs.variants.js +58 -0
- package/dist/components/Tabs/components/Content.js +19 -0
- package/dist/components/Tabs/components/List.js +20 -0
- package/dist/components/Tabs/components/Trigger.js +26 -0
- package/dist/components/Tag/Tag.js +1 -1
- package/dist/components/TagSelect/components/Wrapper/Wrapper.js +2 -2
- package/dist/components/TimePicker/TimePicker.js +8 -0
- package/dist/components/TimePicker/TimePicker.variants.js +62 -0
- package/dist/components/TimePicker/components/HoursList/HoursList.js +93 -0
- package/dist/components/TimePicker/components/MeridianList/MeridianList.js +68 -0
- package/dist/components/TimePicker/components/MinutesList/MinutesList.js +60 -0
- package/dist/components/TimePicker/components/Wrapper/Wrapper.js +96 -0
- package/dist/components/TimePicker/components/WrapperList/WrapperList.js +51 -0
- package/dist/components/TimePicker/components/WrapperList/WrapperList.variants.js +16 -0
- package/dist/components/TimePicker/components/index.js +4 -0
- package/dist/components/TimePicker/contexts/index.js +8 -0
- package/dist/components/TimePicker/contexts/time-picker.context.js +22 -0
- package/dist/components/TimePicker/contexts/time-picker.hook.js +13 -0
- package/dist/components/TimePicker/contexts/time-picker.provider.js +46 -0
- package/dist/components/TimePicker/utils/index.js +6 -0
- package/dist/components/Toast/Toast.js +38 -36
- package/dist/components/Tooltip/Tooltip.js +1 -1
- package/dist/components/Typography/Typography.js +14 -16
- package/dist/components/index.js +78 -66
- package/dist/createLucideIcon-ByJ0JZvK.js +94 -0
- package/dist/index--EmNlyHx.js +31 -0
- package/dist/{index-Bk324h27.js → index-B5MIi2tR.js} +6 -5
- package/dist/{index-g-TFwd6Y.js → index-BCGvACM9.js} +2 -1
- package/dist/{index-AM3avohj.js → index-BNU3RH-3.js} +3 -3
- package/dist/{index-Bry5AFQ2.js → index-Bc1LNrRD.js} +1 -1
- package/dist/index-BdMNhZnh.js +9 -0
- package/dist/index-BvCZBMfr.js +432 -0
- package/dist/index-Cq1I1cG9.js +129 -0
- package/dist/index-Cs8Lv8Wj.js +13 -0
- package/dist/index-CvfCCTEO.js +323 -0
- package/dist/{index-DvFiic6N.js → index-DLYwlPRZ.js} +96 -102
- package/dist/{index-YaQrdkGE.js → index-DNRcvRTB.js} +31 -30
- package/dist/{index-dRxIWVBr.js → index-Dkt8F6CZ.js} +6 -5
- package/dist/{index-G_6jG4Qc.js → index-Dm-ooN_M.js} +18 -18
- package/dist/index-DwYXX2sM.js +13 -0
- package/dist/{index-C5psggHV.js → index-h-Ul0anl.js} +1 -2
- package/dist/{index-D9BbbgUq.js → index-rUBNhTeF.js} +2 -2
- package/dist/index.d.ts +128 -17
- package/dist/index.js +84 -72
- package/dist/package.json +37 -37
- package/dist/styles.css +1 -1
- package/dist/ui/civo-theme.css +263 -0
- package/dist/ui/kubefirst-theme.css +1 -1
- package/dist/ui/theme.css +11 -0
- package/dist/ui/utilities.css +11 -2
- package/dist/useBreadcrumb-DMERrNkJ.js +1280 -0
- package/dist/utils/index.js +3 -3
- package/dist/{x-DU-Zw-L_.js → x-BPcqkRZd.js} +1 -1
- package/package.json +37 -37
- package/dist/Modal-i7eolhYH.js +0 -926
- package/dist/index-BOx5P4tS.js +0 -423
- package/dist/index-CWKdynYu.js +0 -32
- package/dist/index-bYyfdsls.js +0 -118
- package/dist/useBreadcrumb-BsIeMoR1.js +0 -1279
|
@@ -0,0 +1,323 @@
|
|
|
1
|
+
import * as s from "react";
|
|
2
|
+
import { c as K, b as I, a as L } from "./index-Cq1I1cG9.js";
|
|
3
|
+
import { c as ce } from "./index-rUBNhTeF.js";
|
|
4
|
+
import { u as ie } from "./index-B5MIi2tR.js";
|
|
5
|
+
import { u as O } from "./index-Cs8Lv8Wj.js";
|
|
6
|
+
import { P as C } from "./index-BCGvACM9.js";
|
|
7
|
+
import { u as ue } from "./index-DwYXX2sM.js";
|
|
8
|
+
import { u as k } from "./index-BdMNhZnh.js";
|
|
9
|
+
import { jsx as l } from "react/jsx-runtime";
|
|
10
|
+
import { P as le } from "./index-Dm-ooN_M.js";
|
|
11
|
+
var N = "rovingFocusGroup.onEntryFocus", de = { bubbles: !1, cancelable: !0 }, h = "RovingFocusGroup", [D, V, fe] = ce(h), [ve, U] = K(
|
|
12
|
+
h,
|
|
13
|
+
[fe]
|
|
14
|
+
), [me, pe] = ve(h), B = s.forwardRef(
|
|
15
|
+
(e, o) => /* @__PURE__ */ l(D.Provider, { scope: e.__scopeRovingFocusGroup, children: /* @__PURE__ */ l(D.Slot, { scope: e.__scopeRovingFocusGroup, children: /* @__PURE__ */ l(be, { ...e, ref: o }) }) })
|
|
16
|
+
);
|
|
17
|
+
B.displayName = h;
|
|
18
|
+
var be = s.forwardRef((e, o) => {
|
|
19
|
+
const {
|
|
20
|
+
__scopeRovingFocusGroup: n,
|
|
21
|
+
orientation: t,
|
|
22
|
+
loop: u = !1,
|
|
23
|
+
dir: d,
|
|
24
|
+
currentTabStopId: a,
|
|
25
|
+
defaultCurrentTabStopId: v,
|
|
26
|
+
onCurrentTabStopIdChange: g,
|
|
27
|
+
onEntryFocus: m,
|
|
28
|
+
preventScrollOnEntryFocus: r = !1,
|
|
29
|
+
...c
|
|
30
|
+
} = e, p = s.useRef(null), E = ie(o, p), w = k(d), [S, i] = L({
|
|
31
|
+
prop: a,
|
|
32
|
+
defaultProp: v ?? null,
|
|
33
|
+
onChange: g,
|
|
34
|
+
caller: h
|
|
35
|
+
}), [T, A] = s.useState(!1), b = ue(m), F = V(n), y = s.useRef(!1), [oe, M] = s.useState(0);
|
|
36
|
+
return s.useEffect(() => {
|
|
37
|
+
const f = p.current;
|
|
38
|
+
if (f)
|
|
39
|
+
return f.addEventListener(N, b), () => f.removeEventListener(N, b);
|
|
40
|
+
}, [b]), /* @__PURE__ */ l(
|
|
41
|
+
me,
|
|
42
|
+
{
|
|
43
|
+
scope: n,
|
|
44
|
+
orientation: t,
|
|
45
|
+
dir: w,
|
|
46
|
+
loop: u,
|
|
47
|
+
currentTabStopId: S,
|
|
48
|
+
onItemFocus: s.useCallback(
|
|
49
|
+
(f) => i(f),
|
|
50
|
+
[i]
|
|
51
|
+
),
|
|
52
|
+
onItemShiftTab: s.useCallback(() => A(!0), []),
|
|
53
|
+
onFocusableItemAdd: s.useCallback(
|
|
54
|
+
() => M((f) => f + 1),
|
|
55
|
+
[]
|
|
56
|
+
),
|
|
57
|
+
onFocusableItemRemove: s.useCallback(
|
|
58
|
+
() => M((f) => f - 1),
|
|
59
|
+
[]
|
|
60
|
+
),
|
|
61
|
+
children: /* @__PURE__ */ l(
|
|
62
|
+
C.div,
|
|
63
|
+
{
|
|
64
|
+
tabIndex: T || oe === 0 ? -1 : 0,
|
|
65
|
+
"data-orientation": t,
|
|
66
|
+
...c,
|
|
67
|
+
ref: E,
|
|
68
|
+
style: { outline: "none", ...e.style },
|
|
69
|
+
onMouseDown: I(e.onMouseDown, () => {
|
|
70
|
+
y.current = !0;
|
|
71
|
+
}),
|
|
72
|
+
onFocus: I(e.onFocus, (f) => {
|
|
73
|
+
const re = !y.current;
|
|
74
|
+
if (f.target === f.currentTarget && re && !T) {
|
|
75
|
+
const G = new CustomEvent(N, de);
|
|
76
|
+
if (f.currentTarget.dispatchEvent(G), !G.defaultPrevented) {
|
|
77
|
+
const P = F().filter((R) => R.focusable), ne = P.find((R) => R.active), ae = P.find((R) => R.id === S), se = [ne, ae, ...P].filter(
|
|
78
|
+
Boolean
|
|
79
|
+
).map((R) => R.ref.current);
|
|
80
|
+
z(se, r);
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
y.current = !1;
|
|
84
|
+
}),
|
|
85
|
+
onBlur: I(e.onBlur, () => A(!1))
|
|
86
|
+
}
|
|
87
|
+
)
|
|
88
|
+
}
|
|
89
|
+
);
|
|
90
|
+
}), $ = "RovingFocusGroupItem", Y = s.forwardRef(
|
|
91
|
+
(e, o) => {
|
|
92
|
+
const {
|
|
93
|
+
__scopeRovingFocusGroup: n,
|
|
94
|
+
focusable: t = !0,
|
|
95
|
+
active: u = !1,
|
|
96
|
+
tabStopId: d,
|
|
97
|
+
children: a,
|
|
98
|
+
...v
|
|
99
|
+
} = e, g = O(), m = d || g, r = pe($, n), c = r.currentTabStopId === m, p = V(n), { onFocusableItemAdd: E, onFocusableItemRemove: w, currentTabStopId: S } = r;
|
|
100
|
+
return s.useEffect(() => {
|
|
101
|
+
if (t)
|
|
102
|
+
return E(), () => w();
|
|
103
|
+
}, [t, E, w]), /* @__PURE__ */ l(
|
|
104
|
+
D.ItemSlot,
|
|
105
|
+
{
|
|
106
|
+
scope: n,
|
|
107
|
+
id: m,
|
|
108
|
+
focusable: t,
|
|
109
|
+
active: u,
|
|
110
|
+
children: /* @__PURE__ */ l(
|
|
111
|
+
C.span,
|
|
112
|
+
{
|
|
113
|
+
tabIndex: c ? 0 : -1,
|
|
114
|
+
"data-orientation": r.orientation,
|
|
115
|
+
...v,
|
|
116
|
+
ref: o,
|
|
117
|
+
onMouseDown: I(e.onMouseDown, (i) => {
|
|
118
|
+
t ? r.onItemFocus(m) : i.preventDefault();
|
|
119
|
+
}),
|
|
120
|
+
onFocus: I(e.onFocus, () => r.onItemFocus(m)),
|
|
121
|
+
onKeyDown: I(e.onKeyDown, (i) => {
|
|
122
|
+
if (i.key === "Tab" && i.shiftKey) {
|
|
123
|
+
r.onItemShiftTab();
|
|
124
|
+
return;
|
|
125
|
+
}
|
|
126
|
+
if (i.target !== i.currentTarget) return;
|
|
127
|
+
const T = Te(i, r.orientation, r.dir);
|
|
128
|
+
if (T !== void 0) {
|
|
129
|
+
if (i.metaKey || i.ctrlKey || i.altKey || i.shiftKey) return;
|
|
130
|
+
i.preventDefault();
|
|
131
|
+
let b = p().filter((F) => F.focusable).map((F) => F.ref.current);
|
|
132
|
+
if (T === "last") b.reverse();
|
|
133
|
+
else if (T === "prev" || T === "next") {
|
|
134
|
+
T === "prev" && b.reverse();
|
|
135
|
+
const F = b.indexOf(i.currentTarget);
|
|
136
|
+
b = r.loop ? Fe(b, F + 1) : b.slice(F + 1);
|
|
137
|
+
}
|
|
138
|
+
setTimeout(() => z(b));
|
|
139
|
+
}
|
|
140
|
+
}),
|
|
141
|
+
children: typeof a == "function" ? a({ isCurrentTabStop: c, hasTabStop: S != null }) : a
|
|
142
|
+
}
|
|
143
|
+
)
|
|
144
|
+
}
|
|
145
|
+
);
|
|
146
|
+
}
|
|
147
|
+
);
|
|
148
|
+
Y.displayName = $;
|
|
149
|
+
var ge = {
|
|
150
|
+
ArrowLeft: "prev",
|
|
151
|
+
ArrowUp: "prev",
|
|
152
|
+
ArrowRight: "next",
|
|
153
|
+
ArrowDown: "next",
|
|
154
|
+
PageUp: "first",
|
|
155
|
+
Home: "first",
|
|
156
|
+
PageDown: "last",
|
|
157
|
+
End: "last"
|
|
158
|
+
};
|
|
159
|
+
function Ie(e, o) {
|
|
160
|
+
return o !== "rtl" ? e : e === "ArrowLeft" ? "ArrowRight" : e === "ArrowRight" ? "ArrowLeft" : e;
|
|
161
|
+
}
|
|
162
|
+
function Te(e, o, n) {
|
|
163
|
+
const t = Ie(e.key, n);
|
|
164
|
+
if (!(o === "vertical" && ["ArrowLeft", "ArrowRight"].includes(t)) && !(o === "horizontal" && ["ArrowUp", "ArrowDown"].includes(t)))
|
|
165
|
+
return ge[t];
|
|
166
|
+
}
|
|
167
|
+
function z(e, o = !1) {
|
|
168
|
+
const n = document.activeElement;
|
|
169
|
+
for (const t of e)
|
|
170
|
+
if (t === n || (t.focus({ preventScroll: o }), document.activeElement !== n)) return;
|
|
171
|
+
}
|
|
172
|
+
function Fe(e, o) {
|
|
173
|
+
return e.map((n, t) => e[(o + t) % e.length]);
|
|
174
|
+
}
|
|
175
|
+
var Re = B, Ce = Y, _ = "Tabs", [he, Ge] = K(_, [
|
|
176
|
+
U
|
|
177
|
+
]), H = U(), [Ee, x] = he(_), j = s.forwardRef(
|
|
178
|
+
(e, o) => {
|
|
179
|
+
const {
|
|
180
|
+
__scopeTabs: n,
|
|
181
|
+
value: t,
|
|
182
|
+
onValueChange: u,
|
|
183
|
+
defaultValue: d,
|
|
184
|
+
orientation: a = "horizontal",
|
|
185
|
+
dir: v,
|
|
186
|
+
activationMode: g = "automatic",
|
|
187
|
+
...m
|
|
188
|
+
} = e, r = k(v), [c, p] = L({
|
|
189
|
+
prop: t,
|
|
190
|
+
onChange: u,
|
|
191
|
+
defaultProp: d ?? "",
|
|
192
|
+
caller: _
|
|
193
|
+
});
|
|
194
|
+
return /* @__PURE__ */ l(
|
|
195
|
+
Ee,
|
|
196
|
+
{
|
|
197
|
+
scope: n,
|
|
198
|
+
baseId: O(),
|
|
199
|
+
value: c,
|
|
200
|
+
onValueChange: p,
|
|
201
|
+
orientation: a,
|
|
202
|
+
dir: r,
|
|
203
|
+
activationMode: g,
|
|
204
|
+
children: /* @__PURE__ */ l(
|
|
205
|
+
C.div,
|
|
206
|
+
{
|
|
207
|
+
dir: r,
|
|
208
|
+
"data-orientation": a,
|
|
209
|
+
...m,
|
|
210
|
+
ref: o
|
|
211
|
+
}
|
|
212
|
+
)
|
|
213
|
+
}
|
|
214
|
+
);
|
|
215
|
+
}
|
|
216
|
+
);
|
|
217
|
+
j.displayName = _;
|
|
218
|
+
var q = "TabsList", J = s.forwardRef(
|
|
219
|
+
(e, o) => {
|
|
220
|
+
const { __scopeTabs: n, loop: t = !0, ...u } = e, d = x(q, n), a = H(n);
|
|
221
|
+
return /* @__PURE__ */ l(
|
|
222
|
+
Re,
|
|
223
|
+
{
|
|
224
|
+
asChild: !0,
|
|
225
|
+
...a,
|
|
226
|
+
orientation: d.orientation,
|
|
227
|
+
dir: d.dir,
|
|
228
|
+
loop: t,
|
|
229
|
+
children: /* @__PURE__ */ l(
|
|
230
|
+
C.div,
|
|
231
|
+
{
|
|
232
|
+
role: "tablist",
|
|
233
|
+
"aria-orientation": d.orientation,
|
|
234
|
+
...u,
|
|
235
|
+
ref: o
|
|
236
|
+
}
|
|
237
|
+
)
|
|
238
|
+
}
|
|
239
|
+
);
|
|
240
|
+
}
|
|
241
|
+
);
|
|
242
|
+
J.displayName = q;
|
|
243
|
+
var Q = "TabsTrigger", W = s.forwardRef(
|
|
244
|
+
(e, o) => {
|
|
245
|
+
const { __scopeTabs: n, value: t, disabled: u = !1, ...d } = e, a = x(Q, n), v = H(n), g = ee(a.baseId, t), m = te(a.baseId, t), r = t === a.value;
|
|
246
|
+
return /* @__PURE__ */ l(
|
|
247
|
+
Ce,
|
|
248
|
+
{
|
|
249
|
+
asChild: !0,
|
|
250
|
+
...v,
|
|
251
|
+
focusable: !u,
|
|
252
|
+
active: r,
|
|
253
|
+
children: /* @__PURE__ */ l(
|
|
254
|
+
C.button,
|
|
255
|
+
{
|
|
256
|
+
type: "button",
|
|
257
|
+
role: "tab",
|
|
258
|
+
"aria-selected": r,
|
|
259
|
+
"aria-controls": m,
|
|
260
|
+
"data-state": r ? "active" : "inactive",
|
|
261
|
+
"data-disabled": u ? "" : void 0,
|
|
262
|
+
disabled: u,
|
|
263
|
+
id: g,
|
|
264
|
+
...d,
|
|
265
|
+
ref: o,
|
|
266
|
+
onMouseDown: I(e.onMouseDown, (c) => {
|
|
267
|
+
!u && c.button === 0 && c.ctrlKey === !1 ? a.onValueChange(t) : c.preventDefault();
|
|
268
|
+
}),
|
|
269
|
+
onKeyDown: I(e.onKeyDown, (c) => {
|
|
270
|
+
[" ", "Enter"].includes(c.key) && a.onValueChange(t);
|
|
271
|
+
}),
|
|
272
|
+
onFocus: I(e.onFocus, () => {
|
|
273
|
+
const c = a.activationMode !== "manual";
|
|
274
|
+
!r && !u && c && a.onValueChange(t);
|
|
275
|
+
})
|
|
276
|
+
}
|
|
277
|
+
)
|
|
278
|
+
}
|
|
279
|
+
);
|
|
280
|
+
}
|
|
281
|
+
);
|
|
282
|
+
W.displayName = Q;
|
|
283
|
+
var X = "TabsContent", Z = s.forwardRef(
|
|
284
|
+
(e, o) => {
|
|
285
|
+
const { __scopeTabs: n, value: t, forceMount: u, children: d, ...a } = e, v = x(X, n), g = ee(v.baseId, t), m = te(v.baseId, t), r = t === v.value, c = s.useRef(r);
|
|
286
|
+
return s.useEffect(() => {
|
|
287
|
+
const p = requestAnimationFrame(() => c.current = !1);
|
|
288
|
+
return () => cancelAnimationFrame(p);
|
|
289
|
+
}, []), /* @__PURE__ */ l(le, { present: u || r, children: ({ present: p }) => /* @__PURE__ */ l(
|
|
290
|
+
C.div,
|
|
291
|
+
{
|
|
292
|
+
"data-state": r ? "active" : "inactive",
|
|
293
|
+
"data-orientation": v.orientation,
|
|
294
|
+
role: "tabpanel",
|
|
295
|
+
"aria-labelledby": g,
|
|
296
|
+
hidden: !p,
|
|
297
|
+
id: m,
|
|
298
|
+
tabIndex: 0,
|
|
299
|
+
...a,
|
|
300
|
+
ref: o,
|
|
301
|
+
style: {
|
|
302
|
+
...e.style,
|
|
303
|
+
animationDuration: c.current ? "0s" : void 0
|
|
304
|
+
},
|
|
305
|
+
children: p && d
|
|
306
|
+
}
|
|
307
|
+
) });
|
|
308
|
+
}
|
|
309
|
+
);
|
|
310
|
+
Z.displayName = X;
|
|
311
|
+
function ee(e, o) {
|
|
312
|
+
return `${e}-trigger-${o}`;
|
|
313
|
+
}
|
|
314
|
+
function te(e, o) {
|
|
315
|
+
return `${e}-content-${o}`;
|
|
316
|
+
}
|
|
317
|
+
var Ke = j, Le = J, Oe = W, ke = Z;
|
|
318
|
+
export {
|
|
319
|
+
ke as C,
|
|
320
|
+
Le as L,
|
|
321
|
+
Ke as R,
|
|
322
|
+
Oe as T
|
|
323
|
+
};
|