seam-react 0.4.0 → 0.5.1
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/README.md +3 -2
- package/dist/Sidebar.d.ts +26 -4
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +751 -621
- package/dist/index.js.map +1 -1
- package/dist/motion.d.ts +1 -0
- package/dist/styles.cjs +104 -12
- package/dist/styles.cjs.map +1 -1
- package/dist/styles.css +1 -1
- package/dist/styles.js +106 -14
- package/dist/styles.js.map +1 -1
- package/package.json +3 -2
package/dist/index.js
CHANGED
|
@@ -1,181 +1,184 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { forwardRef as
|
|
3
|
-
import { useReducedMotion as V, useMotionValue as
|
|
1
|
+
import { jsxs as C, jsx as c, Fragment as ge } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as P, useId as R, useRef as N, useEffect as O, useState as M, useMemo as U, isValidElement as Z, cloneElement as j, createContext as q, useContext as X, useSyncExternalStore as oe, useLayoutEffect as re, useCallback as G } from "react";
|
|
3
|
+
import { useReducedMotion as V, useMotionValue as Xe, animate as fe, motion as E, LayoutGroup as Ye, AnimatePresence as A, MotionConfig as ie, useIsPresent as ae } from "motion/react";
|
|
4
4
|
import { createPortal as se } from "react-dom";
|
|
5
|
-
import { useControllableState as
|
|
6
|
-
function
|
|
5
|
+
import { useControllableState as Y, useEventCallback as S, useLockBodyScroll as We, useFocusTrap as Je } from "seam-hooks";
|
|
6
|
+
function k(...t) {
|
|
7
7
|
return t.filter(Boolean).join(" ");
|
|
8
8
|
}
|
|
9
|
-
const
|
|
9
|
+
const ye = P(function({
|
|
10
10
|
variant: e = "primary",
|
|
11
11
|
size: n = "md",
|
|
12
12
|
loading: o = !1,
|
|
13
13
|
iconOnly: r = !1,
|
|
14
14
|
type: s = "button",
|
|
15
|
-
className:
|
|
16
|
-
children:
|
|
17
|
-
...
|
|
18
|
-
},
|
|
19
|
-
return /* @__PURE__ */
|
|
15
|
+
className: a,
|
|
16
|
+
children: p,
|
|
17
|
+
...d
|
|
18
|
+
}, i) {
|
|
19
|
+
return /* @__PURE__ */ C(
|
|
20
20
|
"button",
|
|
21
21
|
{
|
|
22
|
-
...
|
|
23
|
-
ref:
|
|
22
|
+
...d,
|
|
23
|
+
ref: i,
|
|
24
24
|
type: s,
|
|
25
|
-
className:
|
|
25
|
+
className: k("uk-button", a),
|
|
26
26
|
"data-variant": e,
|
|
27
27
|
"data-size": n,
|
|
28
28
|
"data-loading": o ? "true" : void 0,
|
|
29
29
|
"data-icon-only": r ? "true" : void 0,
|
|
30
|
-
disabled:
|
|
30
|
+
disabled: d.disabled || o,
|
|
31
31
|
"aria-busy": o || void 0,
|
|
32
32
|
children: [
|
|
33
|
-
o ? /* @__PURE__ */
|
|
34
|
-
|
|
33
|
+
o ? /* @__PURE__ */ c("span", { className: "uk-button__spinner", "aria-hidden": "true" }) : null,
|
|
34
|
+
p
|
|
35
35
|
]
|
|
36
36
|
}
|
|
37
37
|
);
|
|
38
|
-
}),
|
|
38
|
+
}), Pt = P(function({
|
|
39
39
|
inputSize: e = "md",
|
|
40
40
|
invalid: n = !1,
|
|
41
41
|
className: o,
|
|
42
42
|
"aria-invalid": r,
|
|
43
43
|
...s
|
|
44
|
-
},
|
|
45
|
-
return /* @__PURE__ */
|
|
44
|
+
}, a) {
|
|
45
|
+
return /* @__PURE__ */ c(
|
|
46
46
|
"input",
|
|
47
47
|
{
|
|
48
48
|
...s,
|
|
49
|
-
ref:
|
|
50
|
-
className:
|
|
49
|
+
ref: a,
|
|
50
|
+
className: k("uk-input", o),
|
|
51
51
|
"data-size": e,
|
|
52
52
|
"aria-invalid": n ? !0 : r
|
|
53
53
|
}
|
|
54
54
|
);
|
|
55
|
-
}), Q = [0.23, 1, 0.32, 1],
|
|
55
|
+
}), Q = [0.23, 1, 0.32, 1], Qe = [0.77, 0, 0.175, 1], he = {
|
|
56
56
|
type: "spring",
|
|
57
57
|
bounce: 0,
|
|
58
58
|
duration: 0.3
|
|
59
|
-
},
|
|
59
|
+
}, me = {
|
|
60
60
|
type: "spring",
|
|
61
61
|
bounce: 0.04,
|
|
62
62
|
duration: 0.38
|
|
63
|
-
},
|
|
63
|
+
}, ce = {
|
|
64
64
|
type: "spring",
|
|
65
65
|
bounce: 0.08,
|
|
66
66
|
duration: 0.34
|
|
67
|
-
},
|
|
67
|
+
}, Ze = {
|
|
68
|
+
duration: 0.2,
|
|
69
|
+
ease: Qe
|
|
70
|
+
}, ve = {
|
|
68
71
|
duration: 0.12,
|
|
69
72
|
ease: Q
|
|
70
|
-
},
|
|
73
|
+
}, et = {
|
|
71
74
|
layout: { type: "spring", bounce: 0, duration: 0.22 },
|
|
72
75
|
opacity: { duration: 0.12, ease: Q },
|
|
73
76
|
scale: { duration: 0.12, ease: Q }
|
|
74
77
|
}, K = {
|
|
75
78
|
duration: 0.12,
|
|
76
79
|
ease: Q
|
|
77
|
-
},
|
|
80
|
+
}, Dt = P(function({
|
|
78
81
|
checked: e,
|
|
79
82
|
defaultChecked: n,
|
|
80
83
|
onCheckedChange: o,
|
|
81
84
|
disabled: r,
|
|
82
85
|
className: s,
|
|
83
|
-
children:
|
|
84
|
-
id:
|
|
85
|
-
...
|
|
86
|
-
},
|
|
87
|
-
const m =
|
|
86
|
+
children: a,
|
|
87
|
+
id: p,
|
|
88
|
+
...d
|
|
89
|
+
}, i) {
|
|
90
|
+
const m = R(), h = p ?? m, f = V() ?? !1, b = N(!1), u = N(null), [g, y] = Y({
|
|
88
91
|
value: e,
|
|
89
92
|
defaultValue: n ?? !1,
|
|
90
93
|
onChange: o
|
|
91
|
-
}),
|
|
94
|
+
}), v = Xe(g ? 16 : 0);
|
|
92
95
|
O(() => {
|
|
93
|
-
if (
|
|
96
|
+
if (u.current)
|
|
94
97
|
return;
|
|
95
|
-
const
|
|
96
|
-
|
|
98
|
+
const l = fe(
|
|
99
|
+
v,
|
|
97
100
|
g ? 16 : 0,
|
|
98
|
-
|
|
101
|
+
f ? { duration: 0 } : he
|
|
99
102
|
);
|
|
100
|
-
return () =>
|
|
101
|
-
}, [g,
|
|
102
|
-
const
|
|
103
|
-
const
|
|
104
|
-
if (!(!
|
|
105
|
-
if (
|
|
106
|
-
const
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
103
|
+
return () => l.stop();
|
|
104
|
+
}, [g, f, v]);
|
|
105
|
+
const T = (l) => {
|
|
106
|
+
const I = u.current;
|
|
107
|
+
if (!(!I || I.pointerId !== l.pointerId)) {
|
|
108
|
+
if (I.moved) {
|
|
109
|
+
const w = I.samples[0], _ = I.samples[I.samples.length - 1], $ = w && _ ? Math.max(_.time - w.time, 1) : 1, L = w && _ ? (_.x - w.x) / $ * 1e3 : 0, x = Math.abs(L) > 220 ? L > 0 : v.get() >= 8;
|
|
110
|
+
b.current = !0, u.current = null, y(x), fe(
|
|
111
|
+
v,
|
|
112
|
+
x ? 16 : 0,
|
|
113
|
+
f ? { duration: 0 } : { ...he, velocity: L }
|
|
111
114
|
), window.setTimeout(() => {
|
|
112
|
-
|
|
115
|
+
b.current = !1;
|
|
113
116
|
}, 0);
|
|
114
117
|
} else
|
|
115
|
-
|
|
116
|
-
|
|
118
|
+
u.current = null;
|
|
119
|
+
l.currentTarget.hasPointerCapture(l.pointerId) && typeof l.currentTarget.releasePointerCapture == "function" && l.currentTarget.releasePointerCapture(l.pointerId);
|
|
117
120
|
}
|
|
118
121
|
};
|
|
119
|
-
return /* @__PURE__ */
|
|
122
|
+
return /* @__PURE__ */ C(
|
|
120
123
|
"label",
|
|
121
124
|
{
|
|
122
|
-
className:
|
|
125
|
+
className: k("uk-switch", s),
|
|
123
126
|
"data-disabled": r ? "true" : void 0,
|
|
124
|
-
htmlFor:
|
|
125
|
-
onClickCapture: (
|
|
126
|
-
|
|
127
|
+
htmlFor: h,
|
|
128
|
+
onClickCapture: (l) => {
|
|
129
|
+
b.current && (l.preventDefault(), l.stopPropagation());
|
|
127
130
|
},
|
|
128
131
|
children: [
|
|
129
|
-
/* @__PURE__ */
|
|
132
|
+
/* @__PURE__ */ c(
|
|
130
133
|
"input",
|
|
131
134
|
{
|
|
132
|
-
...
|
|
133
|
-
ref:
|
|
134
|
-
id:
|
|
135
|
+
...d,
|
|
136
|
+
ref: i,
|
|
137
|
+
id: h,
|
|
135
138
|
type: "checkbox",
|
|
136
139
|
role: "switch",
|
|
137
140
|
className: "uk-switch__input",
|
|
138
141
|
checked: g,
|
|
139
142
|
disabled: r,
|
|
140
143
|
"aria-checked": g,
|
|
141
|
-
onChange: (
|
|
144
|
+
onChange: (l) => y(l.target.checked)
|
|
142
145
|
}
|
|
143
146
|
),
|
|
144
|
-
/* @__PURE__ */
|
|
147
|
+
/* @__PURE__ */ c(
|
|
145
148
|
"span",
|
|
146
149
|
{
|
|
147
150
|
className: "uk-switch__track",
|
|
148
151
|
"aria-hidden": "true",
|
|
149
|
-
onPointerDown: (
|
|
150
|
-
r || (
|
|
151
|
-
pointerId:
|
|
152
|
-
startX:
|
|
153
|
-
startValue:
|
|
152
|
+
onPointerDown: (l) => {
|
|
153
|
+
r || (u.current = {
|
|
154
|
+
pointerId: l.pointerId,
|
|
155
|
+
startX: l.clientX,
|
|
156
|
+
startValue: v.get(),
|
|
154
157
|
moved: !1,
|
|
155
|
-
samples: [{ x:
|
|
156
|
-
}, typeof
|
|
158
|
+
samples: [{ x: l.clientX, time: performance.now() }]
|
|
159
|
+
}, typeof l.currentTarget.setPointerCapture == "function" && l.currentTarget.setPointerCapture(l.pointerId));
|
|
157
160
|
},
|
|
158
|
-
onPointerMove: (
|
|
159
|
-
const
|
|
160
|
-
if (!
|
|
161
|
+
onPointerMove: (l) => {
|
|
162
|
+
const I = u.current;
|
|
163
|
+
if (!I || I.pointerId !== l.pointerId)
|
|
161
164
|
return;
|
|
162
|
-
const
|
|
163
|
-
Math.abs(
|
|
164
|
-
(
|
|
165
|
+
const w = l.clientX - I.startX;
|
|
166
|
+
Math.abs(w) > 4 && (I.moved = !0), I.moved && (l.preventDefault(), v.set(Math.max(0, Math.min(16, I.startValue + w))), I.samples.push({ x: l.clientX, time: performance.now() }), I.samples = I.samples.filter(
|
|
167
|
+
(_) => performance.now() - _.time < 120
|
|
165
168
|
));
|
|
166
169
|
},
|
|
167
|
-
onPointerUp:
|
|
168
|
-
onPointerCancel:
|
|
169
|
-
children: /* @__PURE__ */
|
|
170
|
+
onPointerUp: T,
|
|
171
|
+
onPointerCancel: T,
|
|
172
|
+
children: /* @__PURE__ */ c(E.span, { className: "uk-switch__thumb", style: { x: v } })
|
|
170
173
|
}
|
|
171
174
|
),
|
|
172
|
-
|
|
175
|
+
a ? /* @__PURE__ */ c("span", { className: "uk-switch__label", children: a }) : null
|
|
173
176
|
]
|
|
174
177
|
}
|
|
175
178
|
);
|
|
176
|
-
}),
|
|
177
|
-
function
|
|
178
|
-
const e = X(
|
|
179
|
+
}), Ie = q(null);
|
|
180
|
+
function Te(t) {
|
|
181
|
+
const e = X(Ie);
|
|
179
182
|
if (!e)
|
|
180
183
|
throw new Error(`<${t}> must be rendered inside <Sidebar>`);
|
|
181
184
|
return e;
|
|
@@ -185,112 +188,239 @@ function te(t, e) {
|
|
|
185
188
|
t?.(n), n.defaultPrevented || e(n);
|
|
186
189
|
};
|
|
187
190
|
}
|
|
188
|
-
function
|
|
191
|
+
function tt({
|
|
189
192
|
children: t,
|
|
190
193
|
className: e,
|
|
191
194
|
hoverPreview: n = !0,
|
|
192
|
-
|
|
195
|
+
hoverIndicator: o = "rail",
|
|
196
|
+
groupGap: r,
|
|
197
|
+
style: s,
|
|
198
|
+
...a
|
|
193
199
|
}) {
|
|
194
|
-
const [
|
|
195
|
-
() => ({
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
200
|
+
const [p, d] = M(null), i = R().replace(/:/g, ""), m = U(
|
|
201
|
+
() => ({
|
|
202
|
+
hoveredId: p,
|
|
203
|
+
setHoveredId: d,
|
|
204
|
+
indicatorBaseId: i,
|
|
205
|
+
hoverPreview: n,
|
|
206
|
+
hoverIndicator: o
|
|
207
|
+
}),
|
|
208
|
+
[p, i, n, o]
|
|
209
|
+
), h = typeof r == "number" ? `${r}px` : r, f = {
|
|
210
|
+
...s,
|
|
211
|
+
...h === void 0 ? {} : { "--uk-sidebar-group-gap": h }
|
|
212
|
+
};
|
|
213
|
+
return /* @__PURE__ */ c(Ie.Provider, { value: m, children: /* @__PURE__ */ c(Ye, { id: `sidebar-${i}`, children: /* @__PURE__ */ c(
|
|
214
|
+
"nav",
|
|
215
|
+
{
|
|
216
|
+
...a,
|
|
217
|
+
className: k("uk-sidebar", e),
|
|
218
|
+
style: f,
|
|
219
|
+
children: t
|
|
220
|
+
}
|
|
221
|
+
) }) });
|
|
199
222
|
}
|
|
200
|
-
function
|
|
223
|
+
function nt({
|
|
201
224
|
title: t,
|
|
202
225
|
icon: e,
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
226
|
+
collapsible: n = !1,
|
|
227
|
+
open: o,
|
|
228
|
+
defaultOpen: r = !0,
|
|
229
|
+
onOpenChange: s,
|
|
230
|
+
children: a,
|
|
231
|
+
className: p,
|
|
232
|
+
...d
|
|
206
233
|
}) {
|
|
207
|
-
const
|
|
208
|
-
|
|
234
|
+
const i = R(), m = R(), h = R(), f = N(null), b = N(null), u = Te("Sidebar.Group"), g = e != null, y = V() ?? !1, [v, T] = Y({
|
|
235
|
+
value: o,
|
|
236
|
+
defaultValue: r,
|
|
237
|
+
onChange: s
|
|
238
|
+
}), l = n ? v : !0, I = u.hoveredId === h;
|
|
239
|
+
O(() => {
|
|
240
|
+
!n || l || b.current?.contains(document.activeElement) && f.current?.focus();
|
|
241
|
+
}, [n, l]);
|
|
242
|
+
const w = /* @__PURE__ */ C(ge, { children: [
|
|
243
|
+
g ? /* @__PURE__ */ c("span", { className: "uk-sidebar__group-icon", "aria-hidden": "true", children: e }) : null,
|
|
244
|
+
/* @__PURE__ */ c("span", { className: "uk-sidebar__group-label", children: t }),
|
|
245
|
+
n ? /* @__PURE__ */ c("span", { className: "uk-sidebar__chevron", "aria-hidden": "true", children: /* @__PURE__ */ c("svg", { viewBox: "0 0 16 16", width: "12", height: "12", fill: "none", children: /* @__PURE__ */ c(
|
|
246
|
+
"path",
|
|
247
|
+
{
|
|
248
|
+
d: "m6 3.8 4.2 4.2L6 12.2",
|
|
249
|
+
stroke: "currentColor",
|
|
250
|
+
strokeWidth: "1.35",
|
|
251
|
+
strokeLinecap: "round",
|
|
252
|
+
strokeLinejoin: "round"
|
|
253
|
+
}
|
|
254
|
+
) }) }) : null
|
|
255
|
+
] });
|
|
256
|
+
return /* @__PURE__ */ C(
|
|
209
257
|
"section",
|
|
210
258
|
{
|
|
211
|
-
...
|
|
212
|
-
className:
|
|
213
|
-
"aria-labelledby":
|
|
214
|
-
"data-
|
|
259
|
+
...d,
|
|
260
|
+
className: k("uk-sidebar__group", p),
|
|
261
|
+
"aria-labelledby": d["aria-labelledby"] ?? i,
|
|
262
|
+
"data-collapsible": n ? "true" : "false",
|
|
263
|
+
"data-has-icon": g ? "true" : "false",
|
|
264
|
+
"data-state": l ? "open" : "closed",
|
|
215
265
|
children: [
|
|
216
|
-
/* @__PURE__ */
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
266
|
+
n ? /* @__PURE__ */ C(
|
|
267
|
+
"button",
|
|
268
|
+
{
|
|
269
|
+
ref: f,
|
|
270
|
+
type: "button",
|
|
271
|
+
className: "uk-sidebar__group-title uk-sidebar__group-trigger",
|
|
272
|
+
id: i,
|
|
273
|
+
"aria-controls": m,
|
|
274
|
+
"aria-expanded": l,
|
|
275
|
+
"data-preview": u.hoverIndicator === "background" && I ? "true" : void 0,
|
|
276
|
+
onClick: () => T((_) => !_),
|
|
277
|
+
onPointerEnter: (_) => {
|
|
278
|
+
u.hoverPreview && u.hoverIndicator === "background" && _.pointerType === "mouse" && u.setHoveredId(h);
|
|
279
|
+
},
|
|
280
|
+
onPointerLeave: () => {
|
|
281
|
+
u.hoveredId === h && u.setHoveredId(null);
|
|
282
|
+
},
|
|
283
|
+
onPointerCancel: () => {
|
|
284
|
+
u.hoveredId === h && u.setHoveredId(null);
|
|
285
|
+
},
|
|
286
|
+
children: [
|
|
287
|
+
/* @__PURE__ */ c(A, { initial: !1, children: u.hoverPreview && u.hoverIndicator === "background" && I ? /* @__PURE__ */ c(
|
|
288
|
+
E.span,
|
|
289
|
+
{
|
|
290
|
+
className: "uk-sidebar__group-surface",
|
|
291
|
+
"data-kind": "hover",
|
|
292
|
+
"data-slot": "sidebar-hover-highlight",
|
|
293
|
+
layoutId: `${u.indicatorBaseId}-hover`,
|
|
294
|
+
"aria-hidden": "true",
|
|
295
|
+
initial: { opacity: 0 },
|
|
296
|
+
animate: { opacity: 1 },
|
|
297
|
+
exit: { opacity: 0 },
|
|
298
|
+
transition: y ? { duration: 0 } : ce
|
|
299
|
+
}
|
|
300
|
+
) : null }),
|
|
301
|
+
w
|
|
302
|
+
]
|
|
303
|
+
}
|
|
304
|
+
) : /* @__PURE__ */ c("div", { className: "uk-sidebar__group-title", id: i, children: w }),
|
|
305
|
+
/* @__PURE__ */ c(
|
|
306
|
+
E.div,
|
|
307
|
+
{
|
|
308
|
+
ref: b,
|
|
309
|
+
className: "uk-sidebar__content",
|
|
310
|
+
id: m,
|
|
311
|
+
"data-state": l ? "open" : "closed",
|
|
312
|
+
initial: !1,
|
|
313
|
+
animate: {
|
|
314
|
+
height: l ? "auto" : 0,
|
|
315
|
+
opacity: l ? 1 : 0
|
|
316
|
+
},
|
|
317
|
+
transition: y ? { duration: 0 } : Ze,
|
|
318
|
+
inert: n && !l,
|
|
319
|
+
"aria-hidden": n && !l ? !0 : void 0,
|
|
320
|
+
children: /* @__PURE__ */ c("ul", { className: "uk-sidebar__list", children: a })
|
|
321
|
+
}
|
|
322
|
+
)
|
|
221
323
|
]
|
|
222
324
|
}
|
|
223
325
|
);
|
|
224
326
|
}
|
|
225
|
-
function
|
|
327
|
+
function ot({
|
|
226
328
|
active: t = !1,
|
|
227
329
|
children: e,
|
|
228
330
|
className: n
|
|
229
331
|
}) {
|
|
230
|
-
const o =
|
|
231
|
-
if (!
|
|
332
|
+
const o = Te("Sidebar.Item"), r = R(), a = V() ?? !1 ? { duration: 0 } : ce;
|
|
333
|
+
if (!Z(e))
|
|
232
334
|
throw new Error("<Sidebar.Item> expects a single valid React element");
|
|
233
|
-
const
|
|
234
|
-
/* @__PURE__ */
|
|
235
|
-
/* @__PURE__ */
|
|
236
|
-
|
|
335
|
+
const p = e, d = p.props, i = d.className, m = typeof i == "function" ? (y) => k("uk-sidebar__link", i(y), n) : k("uk-sidebar__link", i, n), h = d.onPointerEnter, f = d.onPointerLeave, b = d.onPointerCancel, u = o.hoveredId === r, g = /* @__PURE__ */ C(ge, { children: [
|
|
336
|
+
/* @__PURE__ */ c("span", { className: "uk-sidebar__rail", "aria-hidden": "true" }),
|
|
337
|
+
/* @__PURE__ */ c(A, { initial: !1, children: o.hoverPreview && o.hoverIndicator === "rail" && u ? /* @__PURE__ */ c(
|
|
338
|
+
E.span,
|
|
339
|
+
{
|
|
340
|
+
className: "uk-sidebar__rail-indicator",
|
|
341
|
+
"data-kind": "hover",
|
|
342
|
+
"data-slot": "sidebar-hover-rail-indicator",
|
|
343
|
+
layoutId: `${o.indicatorBaseId}-hover-rail`,
|
|
344
|
+
"aria-hidden": "true",
|
|
345
|
+
initial: { opacity: 0 },
|
|
346
|
+
animate: { opacity: 1 },
|
|
347
|
+
exit: { opacity: 0 },
|
|
348
|
+
transition: a
|
|
349
|
+
}
|
|
350
|
+
) : null }),
|
|
351
|
+
/* @__PURE__ */ c(A, { initial: !1, children: o.hoverIndicator === "rail" && t ? /* @__PURE__ */ c(
|
|
352
|
+
E.span,
|
|
353
|
+
{
|
|
354
|
+
className: "uk-sidebar__rail-indicator",
|
|
355
|
+
"data-kind": "active",
|
|
356
|
+
"data-slot": "sidebar-active-rail-indicator",
|
|
357
|
+
layoutId: `${o.indicatorBaseId}-active-rail`,
|
|
358
|
+
"aria-hidden": "true",
|
|
359
|
+
initial: { opacity: 0 },
|
|
360
|
+
animate: { opacity: 1 },
|
|
361
|
+
exit: { opacity: 0 },
|
|
362
|
+
transition: a
|
|
363
|
+
}
|
|
364
|
+
) : null }),
|
|
365
|
+
/* @__PURE__ */ c(A, { initial: !1, children: o.hoverPreview && o.hoverIndicator === "background" && u ? /* @__PURE__ */ c(
|
|
366
|
+
E.span,
|
|
237
367
|
{
|
|
238
|
-
className: "uk-
|
|
368
|
+
className: "uk-sidebar__surface",
|
|
239
369
|
"data-kind": "hover",
|
|
240
|
-
"data-slot": "sidebar-hover-
|
|
370
|
+
"data-slot": "sidebar-hover-highlight",
|
|
241
371
|
layoutId: `${o.indicatorBaseId}-hover`,
|
|
242
372
|
"aria-hidden": "true",
|
|
243
373
|
initial: { opacity: 0 },
|
|
244
374
|
animate: { opacity: 1 },
|
|
245
375
|
exit: { opacity: 0 },
|
|
246
|
-
transition:
|
|
376
|
+
transition: a
|
|
247
377
|
}
|
|
248
378
|
) : null }),
|
|
249
|
-
/* @__PURE__ */
|
|
250
|
-
|
|
379
|
+
/* @__PURE__ */ c(A, { initial: !1, children: o.hoverIndicator === "background" && t ? /* @__PURE__ */ c(
|
|
380
|
+
E.span,
|
|
251
381
|
{
|
|
252
|
-
className: "uk-
|
|
382
|
+
className: "uk-sidebar__surface",
|
|
253
383
|
"data-kind": "active",
|
|
254
|
-
"data-slot": "sidebar-active-
|
|
384
|
+
"data-slot": "sidebar-active-highlight",
|
|
255
385
|
layoutId: `${o.indicatorBaseId}-active`,
|
|
256
386
|
"aria-hidden": "true",
|
|
257
387
|
initial: { opacity: 0 },
|
|
258
388
|
animate: { opacity: 1 },
|
|
259
389
|
exit: { opacity: 0 },
|
|
260
|
-
transition:
|
|
390
|
+
transition: a
|
|
261
391
|
}
|
|
262
392
|
) : null }),
|
|
263
|
-
/* @__PURE__ */
|
|
393
|
+
/* @__PURE__ */ c("span", { className: "uk-sidebar__label", children: d.children })
|
|
264
394
|
] });
|
|
265
|
-
return /* @__PURE__ */
|
|
266
|
-
|
|
395
|
+
return /* @__PURE__ */ c("li", { className: "uk-sidebar__item", children: j(
|
|
396
|
+
p,
|
|
267
397
|
{
|
|
268
398
|
className: m,
|
|
269
399
|
"data-active": t ? "true" : "false",
|
|
270
|
-
"data-preview": t ||
|
|
271
|
-
"aria-current":
|
|
400
|
+
"data-preview": t || u ? "true" : "false",
|
|
401
|
+
"aria-current": d["aria-current"] ?? (t ? "page" : void 0),
|
|
272
402
|
onPointerEnter: te(
|
|
273
|
-
|
|
403
|
+
h,
|
|
274
404
|
(y) => {
|
|
275
405
|
o.hoverPreview && y.pointerType === "mouse" && o.setHoveredId(r);
|
|
276
406
|
}
|
|
277
407
|
),
|
|
278
|
-
onPointerLeave: te(
|
|
408
|
+
onPointerLeave: te(f, () => {
|
|
279
409
|
o.hoveredId === r && o.setHoveredId(null);
|
|
280
410
|
}),
|
|
281
|
-
onPointerCancel: te(
|
|
411
|
+
onPointerCancel: te(b, () => {
|
|
282
412
|
o.hoveredId === r && o.setHoveredId(null);
|
|
283
413
|
})
|
|
284
414
|
},
|
|
285
415
|
g
|
|
286
416
|
) });
|
|
287
417
|
}
|
|
288
|
-
const
|
|
289
|
-
Group:
|
|
290
|
-
Item:
|
|
291
|
-
}),
|
|
292
|
-
function
|
|
293
|
-
const e = X(
|
|
418
|
+
const Rt = Object.assign(tt, {
|
|
419
|
+
Group: nt,
|
|
420
|
+
Item: ot
|
|
421
|
+
}), ke = q(null);
|
|
422
|
+
function le(t) {
|
|
423
|
+
const e = X(ke);
|
|
294
424
|
if (!e)
|
|
295
425
|
throw new Error(`<${t}> must be rendered inside <Tabs>`);
|
|
296
426
|
return e;
|
|
@@ -298,10 +428,10 @@ function ce(t) {
|
|
|
298
428
|
function we(t, e) {
|
|
299
429
|
return `${t}-tab-${encodeURIComponent(e)}`;
|
|
300
430
|
}
|
|
301
|
-
function
|
|
431
|
+
function _e(t, e) {
|
|
302
432
|
return `${t}-panel-${encodeURIComponent(e)}`;
|
|
303
433
|
}
|
|
304
|
-
function
|
|
434
|
+
function rt({
|
|
305
435
|
value: t,
|
|
306
436
|
defaultValue: e,
|
|
307
437
|
onValueChange: n,
|
|
@@ -309,25 +439,25 @@ function nt({
|
|
|
309
439
|
className: r,
|
|
310
440
|
children: s
|
|
311
441
|
}) {
|
|
312
|
-
const
|
|
442
|
+
const a = R(), [p, d] = Y({
|
|
313
443
|
value: t,
|
|
314
444
|
defaultValue: e ?? "",
|
|
315
445
|
onChange: n
|
|
316
|
-
}),
|
|
446
|
+
}), i = U(
|
|
317
447
|
() => ({
|
|
318
|
-
baseId:
|
|
319
|
-
value:
|
|
320
|
-
setValue:
|
|
448
|
+
baseId: a,
|
|
449
|
+
value: p,
|
|
450
|
+
setValue: d,
|
|
321
451
|
orientation: o,
|
|
322
|
-
indicatorId: `${
|
|
452
|
+
indicatorId: `${a}-indicator`
|
|
323
453
|
}),
|
|
324
|
-
[
|
|
454
|
+
[a, p, o, d]
|
|
325
455
|
);
|
|
326
|
-
return /* @__PURE__ */
|
|
456
|
+
return /* @__PURE__ */ c(ke.Provider, { value: i, children: /* @__PURE__ */ c("div", { className: k("uk-tabs", r), "data-orientation": o, children: s }) });
|
|
327
457
|
}
|
|
328
|
-
const
|
|
329
|
-
const { orientation: s } =
|
|
330
|
-
return /* @__PURE__ */
|
|
458
|
+
const it = P(function({ className: e, onKeyDown: n, ...o }, r) {
|
|
459
|
+
const { orientation: s } = le("Tabs.List");
|
|
460
|
+
return /* @__PURE__ */ c(
|
|
331
461
|
"div",
|
|
332
462
|
{
|
|
333
463
|
...o,
|
|
@@ -335,329 +465,329 @@ const ot = E(function({ className: e, onKeyDown: n, ...o }, r) {
|
|
|
335
465
|
role: "tablist",
|
|
336
466
|
"aria-orientation": s,
|
|
337
467
|
tabIndex: -1,
|
|
338
|
-
className:
|
|
339
|
-
onKeyDown: (
|
|
340
|
-
if (n?.(
|
|
468
|
+
className: k("uk-tabs__list", e),
|
|
469
|
+
onKeyDown: (a) => {
|
|
470
|
+
if (n?.(a), a.defaultPrevented)
|
|
341
471
|
return;
|
|
342
|
-
const
|
|
343
|
-
if (!
|
|
472
|
+
const d = a.target?.closest('[role="tab"]');
|
|
473
|
+
if (!d || d.hasAttribute("disabled"))
|
|
344
474
|
return;
|
|
345
|
-
const
|
|
346
|
-
|
|
475
|
+
const i = Array.from(
|
|
476
|
+
a.currentTarget.querySelectorAll(
|
|
347
477
|
'[role="tab"]:not([disabled])'
|
|
348
478
|
)
|
|
349
|
-
), m =
|
|
479
|
+
), m = i.indexOf(d);
|
|
350
480
|
if (m === -1)
|
|
351
481
|
return;
|
|
352
|
-
const
|
|
353
|
-
let
|
|
354
|
-
switch (
|
|
355
|
-
case
|
|
356
|
-
|
|
482
|
+
const h = s === "horizontal" ? "ArrowRight" : "ArrowDown", f = s === "horizontal" ? "ArrowLeft" : "ArrowUp";
|
|
483
|
+
let b = -1;
|
|
484
|
+
switch (a.key) {
|
|
485
|
+
case h:
|
|
486
|
+
b = (m + 1) % i.length;
|
|
357
487
|
break;
|
|
358
|
-
case
|
|
359
|
-
|
|
488
|
+
case f:
|
|
489
|
+
b = (m - 1 + i.length) % i.length;
|
|
360
490
|
break;
|
|
361
491
|
case "Home":
|
|
362
|
-
|
|
492
|
+
b = 0;
|
|
363
493
|
break;
|
|
364
494
|
case "End":
|
|
365
|
-
|
|
495
|
+
b = i.length - 1;
|
|
366
496
|
break;
|
|
367
497
|
default:
|
|
368
498
|
return;
|
|
369
499
|
}
|
|
370
|
-
|
|
371
|
-
const
|
|
372
|
-
|
|
500
|
+
a.preventDefault();
|
|
501
|
+
const u = i[b];
|
|
502
|
+
u && (u.focus(), u.click());
|
|
373
503
|
}
|
|
374
504
|
}
|
|
375
505
|
);
|
|
376
|
-
}),
|
|
377
|
-
const
|
|
378
|
-
return /* @__PURE__ */
|
|
506
|
+
}), at = P(function({ value: e, type: n = "button", className: o, onClick: r, children: s, ...a }, p) {
|
|
507
|
+
const d = le("Tabs.Trigger"), i = d.value === e, m = V() ?? !1;
|
|
508
|
+
return /* @__PURE__ */ C(
|
|
379
509
|
"button",
|
|
380
510
|
{
|
|
381
|
-
...
|
|
382
|
-
ref:
|
|
511
|
+
...a,
|
|
512
|
+
ref: p,
|
|
383
513
|
type: n,
|
|
384
514
|
role: "tab",
|
|
385
|
-
id: we(
|
|
386
|
-
"aria-selected":
|
|
387
|
-
"aria-controls":
|
|
388
|
-
tabIndex:
|
|
389
|
-
"data-state":
|
|
390
|
-
className:
|
|
391
|
-
onClick: (
|
|
392
|
-
r?.(
|
|
515
|
+
id: we(d.baseId, e),
|
|
516
|
+
"aria-selected": i,
|
|
517
|
+
"aria-controls": _e(d.baseId, e),
|
|
518
|
+
tabIndex: i ? 0 : -1,
|
|
519
|
+
"data-state": i ? "active" : "inactive",
|
|
520
|
+
className: k("uk-tabs__trigger", o),
|
|
521
|
+
onClick: (h) => {
|
|
522
|
+
r?.(h), h.defaultPrevented || d.setValue(e);
|
|
393
523
|
},
|
|
394
524
|
children: [
|
|
395
525
|
s,
|
|
396
|
-
|
|
397
|
-
|
|
526
|
+
i ? /* @__PURE__ */ c(
|
|
527
|
+
E.span,
|
|
398
528
|
{
|
|
399
529
|
className: "uk-tabs__indicator",
|
|
400
|
-
layoutId:
|
|
530
|
+
layoutId: d.indicatorId,
|
|
401
531
|
"aria-hidden": "true",
|
|
402
|
-
transition: m ? { duration: 0 } :
|
|
532
|
+
transition: m ? { duration: 0 } : ce
|
|
403
533
|
}
|
|
404
534
|
) : null
|
|
405
535
|
]
|
|
406
536
|
}
|
|
407
537
|
);
|
|
408
|
-
}),
|
|
409
|
-
const s =
|
|
410
|
-
return /* @__PURE__ */
|
|
538
|
+
}), st = P(function({ value: e, className: n, ...o }, r) {
|
|
539
|
+
const s = le("Tabs.Content"), a = s.value === e;
|
|
540
|
+
return /* @__PURE__ */ c(
|
|
411
541
|
"div",
|
|
412
542
|
{
|
|
413
543
|
...o,
|
|
414
544
|
ref: r,
|
|
415
545
|
role: "tabpanel",
|
|
416
|
-
id:
|
|
546
|
+
id: _e(s.baseId, e),
|
|
417
547
|
"aria-labelledby": we(s.baseId, e),
|
|
418
|
-
hidden: !
|
|
548
|
+
hidden: !a,
|
|
419
549
|
tabIndex: 0,
|
|
420
|
-
"data-state":
|
|
421
|
-
className:
|
|
550
|
+
"data-state": a ? "active" : "inactive",
|
|
551
|
+
className: k("uk-tabs__panel", n)
|
|
422
552
|
}
|
|
423
553
|
);
|
|
424
|
-
}),
|
|
425
|
-
List:
|
|
426
|
-
Trigger:
|
|
427
|
-
Content:
|
|
428
|
-
}),
|
|
429
|
-
},
|
|
430
|
-
function
|
|
431
|
-
const e = X(
|
|
554
|
+
}), Lt = Object.assign(rt, {
|
|
555
|
+
List: it,
|
|
556
|
+
Trigger: at,
|
|
557
|
+
Content: st
|
|
558
|
+
}), xe = q(null), ct = () => () => {
|
|
559
|
+
}, lt = () => !0, ut = () => !1;
|
|
560
|
+
function W(t) {
|
|
561
|
+
const e = X(xe);
|
|
432
562
|
if (!e)
|
|
433
563
|
throw new Error(`<${t}> must be rendered inside <Dialog.Root>`);
|
|
434
564
|
return e;
|
|
435
565
|
}
|
|
436
|
-
function
|
|
566
|
+
function Ce(t, e) {
|
|
437
567
|
return (n) => {
|
|
438
568
|
t?.(n), n.defaultPrevented || e(n);
|
|
439
569
|
};
|
|
440
570
|
}
|
|
441
|
-
function
|
|
571
|
+
function Ee({
|
|
442
572
|
children: t,
|
|
443
573
|
open: e,
|
|
444
574
|
defaultOpen: n,
|
|
445
575
|
onOpenChange: o
|
|
446
576
|
}) {
|
|
447
|
-
const r =
|
|
577
|
+
const r = R(), [s, a] = M(!1), [p, d] = M(!1), [i, m] = Y({
|
|
448
578
|
value: e,
|
|
449
579
|
defaultValue: n ?? !1,
|
|
450
580
|
onChange: o
|
|
451
|
-
}),
|
|
581
|
+
}), h = U(
|
|
452
582
|
() => ({
|
|
453
|
-
open:
|
|
583
|
+
open: i,
|
|
454
584
|
setOpen: m,
|
|
455
585
|
triggerId: `${r}-trigger`,
|
|
456
586
|
contentId: `${r}-content`,
|
|
457
587
|
titleId: `${r}-title`,
|
|
458
588
|
descriptionId: `${r}-description`,
|
|
459
589
|
hasTitle: s,
|
|
460
|
-
setHasTitle:
|
|
461
|
-
hasDescription:
|
|
462
|
-
setHasDescription:
|
|
590
|
+
setHasTitle: a,
|
|
591
|
+
hasDescription: p,
|
|
592
|
+
setHasDescription: d
|
|
463
593
|
}),
|
|
464
|
-
[r,
|
|
594
|
+
[r, i, p, s, m]
|
|
465
595
|
);
|
|
466
|
-
return /* @__PURE__ */
|
|
596
|
+
return /* @__PURE__ */ c(xe.Provider, { value: h, children: t });
|
|
467
597
|
}
|
|
468
|
-
function
|
|
469
|
-
const e =
|
|
470
|
-
return
|
|
598
|
+
function dt({ children: t }) {
|
|
599
|
+
const e = W("Dialog.Trigger"), n = t, o = n.props.onClick;
|
|
600
|
+
return j(n, {
|
|
471
601
|
id: e.triggerId,
|
|
472
602
|
"aria-haspopup": "dialog",
|
|
473
603
|
"aria-expanded": e.open,
|
|
474
604
|
"aria-controls": e.open ? e.contentId : void 0,
|
|
475
|
-
onClick:
|
|
605
|
+
onClick: Ce(o, () => {
|
|
476
606
|
e.setOpen(!e.open);
|
|
477
607
|
})
|
|
478
608
|
});
|
|
479
609
|
}
|
|
480
|
-
function
|
|
610
|
+
function Ne({
|
|
481
611
|
children: t,
|
|
482
612
|
label: e = "Close"
|
|
483
613
|
}) {
|
|
484
|
-
const n =
|
|
485
|
-
if (
|
|
614
|
+
const n = W("Dialog.Close");
|
|
615
|
+
if (Z(t)) {
|
|
486
616
|
const o = t, r = o.props.onClick;
|
|
487
|
-
return
|
|
488
|
-
onClick:
|
|
617
|
+
return j(o, {
|
|
618
|
+
onClick: Ce(r, () => {
|
|
489
619
|
n.setOpen(!1);
|
|
490
620
|
})
|
|
491
621
|
});
|
|
492
622
|
}
|
|
493
|
-
return /* @__PURE__ */
|
|
623
|
+
return /* @__PURE__ */ c(ye, { variant: "ghost", onClick: () => n.setOpen(!1), children: e });
|
|
494
624
|
}
|
|
495
|
-
const
|
|
496
|
-
return /* @__PURE__ */
|
|
625
|
+
const Pe = P(function({ className: e, ...n }, o) {
|
|
626
|
+
return /* @__PURE__ */ c(
|
|
497
627
|
"header",
|
|
498
628
|
{
|
|
499
629
|
...n,
|
|
500
630
|
ref: o,
|
|
501
|
-
className:
|
|
631
|
+
className: k("uk-dialog__header", e)
|
|
502
632
|
}
|
|
503
633
|
);
|
|
504
|
-
}),
|
|
505
|
-
const s =
|
|
506
|
-
return O(() => (
|
|
634
|
+
}), De = P(function({ className: e, children: n, ...o }, r) {
|
|
635
|
+
const s = W("Dialog.Title"), a = s.setHasTitle;
|
|
636
|
+
return O(() => (a(!0), () => a(!1)), [a]), /* @__PURE__ */ c(
|
|
507
637
|
"h2",
|
|
508
638
|
{
|
|
509
639
|
...o,
|
|
510
640
|
ref: r,
|
|
511
641
|
id: s.titleId,
|
|
512
|
-
className:
|
|
642
|
+
className: k("uk-dialog__title", e),
|
|
513
643
|
children: n
|
|
514
644
|
}
|
|
515
645
|
);
|
|
516
|
-
}),
|
|
646
|
+
}), Re = P(
|
|
517
647
|
function({ className: e, ...n }, o) {
|
|
518
|
-
const r =
|
|
519
|
-
return O(() => (s(!0), () => s(!1)), [s]), /* @__PURE__ */
|
|
648
|
+
const r = W("Dialog.Description"), s = r.setHasDescription;
|
|
649
|
+
return O(() => (s(!0), () => s(!1)), [s]), /* @__PURE__ */ c(
|
|
520
650
|
"p",
|
|
521
651
|
{
|
|
522
652
|
...n,
|
|
523
653
|
ref: o,
|
|
524
654
|
id: r.descriptionId,
|
|
525
|
-
className:
|
|
655
|
+
className: k("uk-dialog__description", e)
|
|
526
656
|
}
|
|
527
657
|
);
|
|
528
658
|
}
|
|
529
|
-
),
|
|
530
|
-
return /* @__PURE__ */
|
|
531
|
-
}),
|
|
532
|
-
return /* @__PURE__ */
|
|
659
|
+
), Le = P(function({ className: e, ...n }, o) {
|
|
660
|
+
return /* @__PURE__ */ c("div", { ...n, ref: o, className: k("uk-dialog__body", e) });
|
|
661
|
+
}), Se = P(function({ className: e, ...n }, o) {
|
|
662
|
+
return /* @__PURE__ */ c(
|
|
533
663
|
"footer",
|
|
534
664
|
{
|
|
535
665
|
...n,
|
|
536
666
|
ref: o,
|
|
537
|
-
className:
|
|
667
|
+
className: k("uk-dialog__footer", e)
|
|
538
668
|
}
|
|
539
669
|
);
|
|
540
670
|
});
|
|
541
|
-
function
|
|
671
|
+
function pt({
|
|
542
672
|
requestClose: t,
|
|
543
673
|
contentId: e,
|
|
544
674
|
titleId: n,
|
|
545
675
|
descriptionId: o,
|
|
546
676
|
hasTitle: r,
|
|
547
677
|
hasDescription: s,
|
|
548
|
-
children:
|
|
549
|
-
closeOnBackdropClick:
|
|
550
|
-
closeOnEscape:
|
|
551
|
-
initialFocusRef:
|
|
678
|
+
children: a,
|
|
679
|
+
closeOnBackdropClick: p = !0,
|
|
680
|
+
closeOnEscape: d = !0,
|
|
681
|
+
initialFocusRef: i,
|
|
552
682
|
returnFocusRef: m,
|
|
553
|
-
className:
|
|
554
|
-
"aria-label":
|
|
555
|
-
"aria-labelledby":
|
|
556
|
-
"aria-describedby":
|
|
683
|
+
className: h,
|
|
684
|
+
"aria-label": f,
|
|
685
|
+
"aria-labelledby": b,
|
|
686
|
+
"aria-describedby": u
|
|
557
687
|
}) {
|
|
558
|
-
const g =
|
|
559
|
-
return
|
|
560
|
-
const
|
|
561
|
-
|
|
688
|
+
const g = N(null), y = N(null), v = ae(), T = V() ?? !1;
|
|
689
|
+
return We(!0), re(() => {
|
|
690
|
+
const l = g.current;
|
|
691
|
+
l && (y.current ?? (y.current = document.activeElement instanceof HTMLElement ? document.activeElement : null), !l.open && (typeof l.showModal == "function" ? l.showModal() : l.setAttribute("open", "")));
|
|
562
692
|
}, []), Je({
|
|
563
693
|
active: !0,
|
|
564
694
|
containerRef: g,
|
|
565
|
-
initialFocusRef:
|
|
695
|
+
initialFocusRef: i,
|
|
566
696
|
returnFocusRef: m ?? y
|
|
567
697
|
}), O(() => {
|
|
568
|
-
const
|
|
569
|
-
if (!
|
|
698
|
+
const l = g.current;
|
|
699
|
+
if (!l)
|
|
570
700
|
return;
|
|
571
|
-
const
|
|
572
|
-
|
|
573
|
-
},
|
|
574
|
-
if (!
|
|
575
|
-
|
|
701
|
+
const I = () => {
|
|
702
|
+
l.open || (typeof l.showModal == "function" ? l.showModal() : l.setAttribute("open", ""));
|
|
703
|
+
}, w = () => {
|
|
704
|
+
if (!d) {
|
|
705
|
+
I();
|
|
576
706
|
return;
|
|
577
707
|
}
|
|
578
708
|
t();
|
|
579
|
-
},
|
|
580
|
-
|
|
581
|
-
},
|
|
582
|
-
|
|
583
|
-
},
|
|
584
|
-
|
|
709
|
+
}, _ = (x) => {
|
|
710
|
+
x.preventDefault(), d && t();
|
|
711
|
+
}, $ = (x) => {
|
|
712
|
+
d || x.key !== "Escape" || x.defaultPrevented || (x.preventDefault(), x.stopPropagation());
|
|
713
|
+
}, L = (x) => {
|
|
714
|
+
p && x.target === l && t();
|
|
585
715
|
};
|
|
586
|
-
return
|
|
587
|
-
|
|
716
|
+
return l.addEventListener("close", w), l.addEventListener("cancel", _), l.addEventListener("keydown", $, !0), l.addEventListener("click", L), () => {
|
|
717
|
+
l.removeEventListener("close", w), l.removeEventListener("cancel", _), l.removeEventListener("keydown", $, !0), l.removeEventListener("click", L);
|
|
588
718
|
};
|
|
589
|
-
}, [
|
|
719
|
+
}, [p, d, t]), /* @__PURE__ */ c(
|
|
590
720
|
"dialog",
|
|
591
721
|
{
|
|
592
722
|
ref: g,
|
|
593
723
|
id: e,
|
|
594
|
-
className:
|
|
595
|
-
closedby:
|
|
596
|
-
"data-state":
|
|
597
|
-
inert: !
|
|
598
|
-
"aria-label":
|
|
599
|
-
"aria-labelledby":
|
|
600
|
-
"aria-describedby":
|
|
601
|
-
children: /* @__PURE__ */
|
|
602
|
-
|
|
724
|
+
className: k("uk-dialog", h),
|
|
725
|
+
closedby: d || p ? "any" : "none",
|
|
726
|
+
"data-state": v ? "open" : "closed",
|
|
727
|
+
inert: !v,
|
|
728
|
+
"aria-label": f,
|
|
729
|
+
"aria-labelledby": b ?? (f ? void 0 : r ? n : void 0),
|
|
730
|
+
"aria-describedby": u ?? (s ? o : void 0),
|
|
731
|
+
children: /* @__PURE__ */ c(
|
|
732
|
+
E.div,
|
|
603
733
|
{
|
|
604
734
|
className: "uk-dialog__panel",
|
|
605
|
-
initial:
|
|
735
|
+
initial: T ? { opacity: 0 } : {
|
|
606
736
|
opacity: 0,
|
|
607
737
|
transform: "translateY(12px) scale(0.96)"
|
|
608
738
|
},
|
|
609
739
|
animate: {
|
|
610
740
|
opacity: 1,
|
|
611
741
|
transform: "translateY(0px) scale(1)",
|
|
612
|
-
transition:
|
|
742
|
+
transition: T ? K : { ...me, delay: 0.06 }
|
|
613
743
|
},
|
|
614
|
-
exit:
|
|
744
|
+
exit: T ? { opacity: 0, transition: K } : {
|
|
615
745
|
opacity: 0,
|
|
616
746
|
transform: "translateY(8px) scale(0.97)",
|
|
617
|
-
transition:
|
|
747
|
+
transition: me
|
|
618
748
|
},
|
|
619
|
-
children:
|
|
749
|
+
children: a
|
|
620
750
|
}
|
|
621
751
|
)
|
|
622
752
|
}
|
|
623
753
|
);
|
|
624
754
|
}
|
|
625
|
-
function
|
|
755
|
+
function Me({
|
|
626
756
|
children: t,
|
|
627
757
|
closeOnBackdropClick: e = !0,
|
|
628
758
|
closeOnEscape: n = !0,
|
|
629
759
|
initialFocusRef: o,
|
|
630
760
|
returnFocusRef: r,
|
|
631
761
|
className: s,
|
|
632
|
-
"aria-label":
|
|
633
|
-
"aria-labelledby":
|
|
634
|
-
"aria-describedby":
|
|
762
|
+
"aria-label": a,
|
|
763
|
+
"aria-labelledby": p,
|
|
764
|
+
"aria-describedby": d
|
|
635
765
|
}) {
|
|
636
|
-
const
|
|
637
|
-
|
|
766
|
+
const i = W("Dialog.Content"), m = S(() => {
|
|
767
|
+
i.setOpen(!1);
|
|
638
768
|
});
|
|
639
769
|
return oe(
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
770
|
+
ct,
|
|
771
|
+
lt,
|
|
772
|
+
ut
|
|
643
773
|
) ? se(
|
|
644
|
-
/* @__PURE__ */
|
|
645
|
-
|
|
774
|
+
/* @__PURE__ */ c(ie, { reducedMotion: "user", children: /* @__PURE__ */ c(A, { children: i.open ? /* @__PURE__ */ c(
|
|
775
|
+
pt,
|
|
646
776
|
{
|
|
647
777
|
requestClose: m,
|
|
648
|
-
contentId:
|
|
649
|
-
titleId:
|
|
650
|
-
descriptionId:
|
|
651
|
-
hasTitle:
|
|
652
|
-
hasDescription:
|
|
778
|
+
contentId: i.contentId,
|
|
779
|
+
titleId: i.titleId,
|
|
780
|
+
descriptionId: i.descriptionId,
|
|
781
|
+
hasTitle: i.hasTitle,
|
|
782
|
+
hasDescription: i.hasDescription,
|
|
653
783
|
closeOnBackdropClick: e,
|
|
654
784
|
closeOnEscape: n,
|
|
655
785
|
initialFocusRef: o,
|
|
656
786
|
returnFocusRef: r,
|
|
657
787
|
className: s,
|
|
658
|
-
"aria-label":
|
|
659
|
-
"aria-labelledby":
|
|
660
|
-
"aria-describedby":
|
|
788
|
+
"aria-label": a,
|
|
789
|
+
"aria-labelledby": p,
|
|
790
|
+
"aria-describedby": d,
|
|
661
791
|
children: t
|
|
662
792
|
},
|
|
663
793
|
"uk-dialog"
|
|
@@ -665,53 +795,53 @@ function Le({
|
|
|
665
795
|
document.body
|
|
666
796
|
) : null;
|
|
667
797
|
}
|
|
668
|
-
function
|
|
798
|
+
function ft({
|
|
669
799
|
open: t,
|
|
670
800
|
onOpenChange: e,
|
|
671
801
|
title: n,
|
|
672
802
|
description: o,
|
|
673
803
|
footer: r,
|
|
674
804
|
children: s,
|
|
675
|
-
closeLabel:
|
|
676
|
-
showCloseButton:
|
|
677
|
-
closeOnBackdropClick:
|
|
678
|
-
closeOnEscape:
|
|
805
|
+
closeLabel: a = "Close",
|
|
806
|
+
showCloseButton: p = !0,
|
|
807
|
+
closeOnBackdropClick: d = !0,
|
|
808
|
+
closeOnEscape: i = !0,
|
|
679
809
|
initialFocusRef: m,
|
|
680
|
-
returnFocusRef:
|
|
681
|
-
className:
|
|
682
|
-
"aria-label":
|
|
810
|
+
returnFocusRef: h,
|
|
811
|
+
className: f,
|
|
812
|
+
"aria-label": b
|
|
683
813
|
}) {
|
|
684
|
-
return /* @__PURE__ */
|
|
685
|
-
|
|
814
|
+
return /* @__PURE__ */ c(Ee, { open: t, onOpenChange: e, children: /* @__PURE__ */ C(
|
|
815
|
+
Me,
|
|
686
816
|
{
|
|
687
|
-
className:
|
|
688
|
-
closeOnBackdropClick:
|
|
689
|
-
closeOnEscape:
|
|
817
|
+
className: f,
|
|
818
|
+
closeOnBackdropClick: d,
|
|
819
|
+
closeOnEscape: i,
|
|
690
820
|
initialFocusRef: m,
|
|
691
|
-
returnFocusRef:
|
|
692
|
-
"aria-label":
|
|
821
|
+
returnFocusRef: h,
|
|
822
|
+
"aria-label": b,
|
|
693
823
|
children: [
|
|
694
|
-
n || o ||
|
|
695
|
-
/* @__PURE__ */
|
|
696
|
-
n ? /* @__PURE__ */
|
|
697
|
-
o ? /* @__PURE__ */
|
|
824
|
+
n || o || p ? /* @__PURE__ */ C(Pe, { children: [
|
|
825
|
+
/* @__PURE__ */ C("div", { className: "uk-dialog__heading", children: [
|
|
826
|
+
n ? /* @__PURE__ */ c(De, { children: n }) : null,
|
|
827
|
+
o ? /* @__PURE__ */ c(Re, { children: o }) : null
|
|
698
828
|
] }),
|
|
699
|
-
|
|
700
|
-
|
|
829
|
+
p ? /* @__PURE__ */ c(Ne, { children: /* @__PURE__ */ c(
|
|
830
|
+
ye,
|
|
701
831
|
{
|
|
702
832
|
variant: "ghost",
|
|
703
833
|
size: "sm",
|
|
704
834
|
iconOnly: !0,
|
|
705
|
-
"aria-label":
|
|
835
|
+
"aria-label": a,
|
|
706
836
|
className: "uk-dialog__close",
|
|
707
|
-
children: /* @__PURE__ */
|
|
837
|
+
children: /* @__PURE__ */ c(
|
|
708
838
|
"svg",
|
|
709
839
|
{
|
|
710
840
|
viewBox: "0 0 20 20",
|
|
711
841
|
width: "16",
|
|
712
842
|
height: "16",
|
|
713
843
|
"aria-hidden": "true",
|
|
714
|
-
children: /* @__PURE__ */
|
|
844
|
+
children: /* @__PURE__ */ c(
|
|
715
845
|
"path",
|
|
716
846
|
{
|
|
717
847
|
d: "M5 5l10 10M15 5L5 15",
|
|
@@ -725,43 +855,43 @@ function dt({
|
|
|
725
855
|
}
|
|
726
856
|
) }) : null
|
|
727
857
|
] }) : null,
|
|
728
|
-
/* @__PURE__ */
|
|
729
|
-
r ? /* @__PURE__ */
|
|
858
|
+
/* @__PURE__ */ c(Le, { children: s }),
|
|
859
|
+
r ? /* @__PURE__ */ c(Se, { children: r }) : null
|
|
730
860
|
]
|
|
731
861
|
}
|
|
732
862
|
) });
|
|
733
863
|
}
|
|
734
|
-
const
|
|
735
|
-
Root:
|
|
736
|
-
Trigger:
|
|
737
|
-
Content:
|
|
738
|
-
Header:
|
|
739
|
-
Title:
|
|
740
|
-
Description:
|
|
741
|
-
Body:
|
|
742
|
-
Footer:
|
|
743
|
-
Close:
|
|
744
|
-
}),
|
|
745
|
-
},
|
|
746
|
-
function
|
|
747
|
-
const e = X(
|
|
864
|
+
const St = Object.assign(ft, {
|
|
865
|
+
Root: Ee,
|
|
866
|
+
Trigger: dt,
|
|
867
|
+
Content: Me,
|
|
868
|
+
Header: Pe,
|
|
869
|
+
Title: De,
|
|
870
|
+
Description: Re,
|
|
871
|
+
Body: Le,
|
|
872
|
+
Footer: Se,
|
|
873
|
+
Close: Ne
|
|
874
|
+
}), Oe = q(null), $e = () => () => {
|
|
875
|
+
}, Be = () => !0, Ae = () => !1;
|
|
876
|
+
function He(t) {
|
|
877
|
+
const e = X(Oe);
|
|
748
878
|
if (!e)
|
|
749
879
|
throw new Error(`<${t}> must be rendered inside <Tooltip.Root>`);
|
|
750
880
|
return e;
|
|
751
881
|
}
|
|
752
|
-
function
|
|
882
|
+
function Ve(t, e) {
|
|
753
883
|
typeof t == "function" ? t(e) : t && (t.current = e);
|
|
754
884
|
}
|
|
755
|
-
function
|
|
885
|
+
function Fe(t, e) {
|
|
756
886
|
const n = typeof t == "string" ? t.split(/\s+/).filter(Boolean) : [];
|
|
757
887
|
return Array.from(/* @__PURE__ */ new Set([...n, e])).join(" ");
|
|
758
888
|
}
|
|
759
|
-
function
|
|
889
|
+
function D(t, e) {
|
|
760
890
|
return (n) => {
|
|
761
891
|
t?.(n), n.defaultPrevented || e(n);
|
|
762
892
|
};
|
|
763
893
|
}
|
|
764
|
-
function
|
|
894
|
+
function ht({
|
|
765
895
|
children: t,
|
|
766
896
|
open: e,
|
|
767
897
|
defaultOpen: n,
|
|
@@ -769,95 +899,95 @@ function pt({
|
|
|
769
899
|
delayDuration: r = 300,
|
|
770
900
|
closeDelay: s = 80
|
|
771
901
|
}) {
|
|
772
|
-
const
|
|
902
|
+
const a = R(), [p, d] = M(
|
|
773
903
|
null
|
|
774
|
-
),
|
|
904
|
+
), i = N(null), m = N(null), [h, f] = Y({
|
|
775
905
|
value: e,
|
|
776
906
|
defaultValue: n ?? !1,
|
|
777
907
|
onChange: o
|
|
778
|
-
}),
|
|
779
|
-
|
|
780
|
-
}, []),
|
|
908
|
+
}), b = G(() => {
|
|
909
|
+
i.current !== null && (clearTimeout(i.current), i.current = null);
|
|
910
|
+
}, []), u = G(() => {
|
|
781
911
|
m.current !== null && (clearTimeout(m.current), m.current = null);
|
|
782
|
-
}, []), g =
|
|
783
|
-
if (
|
|
784
|
-
if (
|
|
785
|
-
|
|
912
|
+
}, []), g = S((l = !1) => {
|
|
913
|
+
if (b(), u(), !h) {
|
|
914
|
+
if (l || r <= 0) {
|
|
915
|
+
f(!0);
|
|
786
916
|
return;
|
|
787
917
|
}
|
|
788
|
-
|
|
789
|
-
|
|
918
|
+
i.current = setTimeout(() => {
|
|
919
|
+
i.current = null, f(!0);
|
|
790
920
|
}, r);
|
|
791
921
|
}
|
|
792
|
-
}), y =
|
|
793
|
-
if (
|
|
922
|
+
}), y = S(() => {
|
|
923
|
+
if (b(), u(), !!h) {
|
|
794
924
|
if (s <= 0) {
|
|
795
|
-
|
|
925
|
+
f(!1);
|
|
796
926
|
return;
|
|
797
927
|
}
|
|
798
928
|
m.current = setTimeout(() => {
|
|
799
|
-
m.current = null,
|
|
929
|
+
m.current = null, f(!1);
|
|
800
930
|
}, s);
|
|
801
931
|
}
|
|
802
|
-
}),
|
|
803
|
-
|
|
932
|
+
}), v = S(() => {
|
|
933
|
+
b(), u(), f(!1);
|
|
804
934
|
});
|
|
805
935
|
O(() => {
|
|
806
|
-
|
|
807
|
-
}, [
|
|
936
|
+
h ? u() : b();
|
|
937
|
+
}, [u, b, h]), O(
|
|
808
938
|
() => () => {
|
|
809
|
-
|
|
939
|
+
b(), u();
|
|
810
940
|
},
|
|
811
|
-
[
|
|
941
|
+
[u, b]
|
|
812
942
|
);
|
|
813
|
-
const
|
|
943
|
+
const T = U(
|
|
814
944
|
() => ({
|
|
815
|
-
open:
|
|
816
|
-
triggerElement:
|
|
817
|
-
setTriggerElement:
|
|
818
|
-
contentId:
|
|
945
|
+
open: h,
|
|
946
|
+
triggerElement: p,
|
|
947
|
+
setTriggerElement: d,
|
|
948
|
+
contentId: a,
|
|
819
949
|
requestOpen: g,
|
|
820
950
|
requestClose: y,
|
|
821
|
-
dismiss:
|
|
951
|
+
dismiss: v
|
|
822
952
|
}),
|
|
823
|
-
[
|
|
953
|
+
[a, h, v, y, g, p]
|
|
824
954
|
);
|
|
825
|
-
return /* @__PURE__ */
|
|
955
|
+
return /* @__PURE__ */ c(Oe.Provider, { value: T, children: t });
|
|
826
956
|
}
|
|
827
|
-
function
|
|
828
|
-
const e =
|
|
829
|
-
if (!
|
|
957
|
+
function mt({ children: t }) {
|
|
958
|
+
const e = He("Tooltip.Trigger"), { setTriggerElement: n } = e;
|
|
959
|
+
if (!Z(t))
|
|
830
960
|
throw new Error("<Tooltip.Trigger> expects a single valid React element");
|
|
831
|
-
const o = t, r = o.props, s = r.ref ?? o.ref,
|
|
832
|
-
(
|
|
833
|
-
|
|
961
|
+
const o = t, r = o.props, s = r.ref ?? o.ref, a = r.onPointerEnter, p = r.onPointerLeave, d = r.onFocus, i = r.onBlur, m = r.onKeyDown, h = G(
|
|
962
|
+
(f) => {
|
|
963
|
+
Ve(s, f), n(f);
|
|
834
964
|
},
|
|
835
965
|
[s, n]
|
|
836
966
|
);
|
|
837
|
-
return
|
|
838
|
-
ref:
|
|
839
|
-
"aria-describedby": e.open ?
|
|
840
|
-
onPointerEnter:
|
|
841
|
-
e.requestOpen(
|
|
967
|
+
return j(o, {
|
|
968
|
+
ref: h,
|
|
969
|
+
"aria-describedby": e.open ? Fe(r["aria-describedby"], e.contentId) : r["aria-describedby"],
|
|
970
|
+
onPointerEnter: D(a, (f) => {
|
|
971
|
+
e.requestOpen(f.pointerType === "touch");
|
|
842
972
|
}),
|
|
843
|
-
onPointerLeave:
|
|
844
|
-
|
|
973
|
+
onPointerLeave: D(p, (f) => {
|
|
974
|
+
f.pointerType !== "touch" && e.requestClose();
|
|
845
975
|
}),
|
|
846
|
-
onFocus:
|
|
976
|
+
onFocus: D(d, () => {
|
|
847
977
|
e.requestOpen();
|
|
848
978
|
}),
|
|
849
|
-
onBlur:
|
|
979
|
+
onBlur: D(i, () => {
|
|
850
980
|
e.requestClose();
|
|
851
981
|
}),
|
|
852
|
-
onKeyDown:
|
|
853
|
-
|
|
982
|
+
onKeyDown: D(m, (f) => {
|
|
983
|
+
f.key === "Escape" && e.open && (f.preventDefault(), f.stopPropagation(), e.dismiss());
|
|
854
984
|
})
|
|
855
985
|
});
|
|
856
986
|
}
|
|
857
987
|
function J(t, e, n) {
|
|
858
988
|
return n < e ? e : Math.min(Math.max(t, e), n);
|
|
859
989
|
}
|
|
860
|
-
function
|
|
990
|
+
function bt(t) {
|
|
861
991
|
switch (t) {
|
|
862
992
|
case "top":
|
|
863
993
|
return "bottom";
|
|
@@ -881,151 +1011,151 @@ function ne(t, e, n, o, r) {
|
|
|
881
1011
|
return t.left - r;
|
|
882
1012
|
}
|
|
883
1013
|
}
|
|
884
|
-
function
|
|
1014
|
+
function be(t, e, n, o, r, s, a) {
|
|
885
1015
|
return ne(
|
|
886
1016
|
t,
|
|
887
1017
|
n,
|
|
888
1018
|
r,
|
|
889
1019
|
s,
|
|
890
|
-
|
|
1020
|
+
a
|
|
891
1021
|
) >= (n === "top" || n === "bottom" ? e.height : e.width) + o;
|
|
892
1022
|
}
|
|
893
|
-
function
|
|
1023
|
+
function gt({
|
|
894
1024
|
trigger: t,
|
|
895
1025
|
tooltip: e,
|
|
896
1026
|
side: n,
|
|
897
1027
|
align: o,
|
|
898
1028
|
sideOffset: r,
|
|
899
1029
|
collisionPadding: s,
|
|
900
|
-
avoidCollisions:
|
|
901
|
-
viewportWidth:
|
|
902
|
-
viewportHeight:
|
|
1030
|
+
avoidCollisions: a,
|
|
1031
|
+
viewportWidth: p,
|
|
1032
|
+
viewportHeight: d
|
|
903
1033
|
}) {
|
|
904
|
-
let
|
|
905
|
-
if (
|
|
1034
|
+
let i = n;
|
|
1035
|
+
if (a && !be(
|
|
906
1036
|
t,
|
|
907
1037
|
e,
|
|
908
1038
|
n,
|
|
909
1039
|
r,
|
|
910
|
-
|
|
911
|
-
|
|
1040
|
+
p,
|
|
1041
|
+
d,
|
|
912
1042
|
s
|
|
913
1043
|
)) {
|
|
914
|
-
const y =
|
|
1044
|
+
const y = bt(n), v = be(
|
|
915
1045
|
t,
|
|
916
1046
|
e,
|
|
917
1047
|
y,
|
|
918
1048
|
r,
|
|
919
|
-
|
|
920
|
-
|
|
1049
|
+
p,
|
|
1050
|
+
d,
|
|
921
1051
|
s
|
|
922
|
-
),
|
|
1052
|
+
), T = ne(
|
|
923
1053
|
t,
|
|
924
1054
|
n,
|
|
925
|
-
|
|
926
|
-
|
|
1055
|
+
p,
|
|
1056
|
+
d,
|
|
927
1057
|
s
|
|
928
|
-
),
|
|
1058
|
+
), l = ne(
|
|
929
1059
|
t,
|
|
930
1060
|
y,
|
|
931
|
-
|
|
932
|
-
|
|
1061
|
+
p,
|
|
1062
|
+
d,
|
|
933
1063
|
s
|
|
934
1064
|
);
|
|
935
|
-
(
|
|
1065
|
+
(v || l > T) && (i = y);
|
|
936
1066
|
}
|
|
937
|
-
const m = t.left + t.width / 2,
|
|
938
|
-
let
|
|
939
|
-
switch (
|
|
1067
|
+
const m = t.left + t.width / 2, h = t.top + t.height / 2;
|
|
1068
|
+
let f = 0, b = 0;
|
|
1069
|
+
switch (i) {
|
|
940
1070
|
case "top":
|
|
941
1071
|
case "bottom":
|
|
942
|
-
|
|
1072
|
+
f = o === "start" ? t.left : o === "end" ? t.right - e.width : m - e.width / 2, b = i === "top" ? t.top - e.height - r : t.bottom + r;
|
|
943
1073
|
break;
|
|
944
1074
|
case "left":
|
|
945
1075
|
case "right":
|
|
946
|
-
|
|
1076
|
+
f = i === "left" ? t.left - e.width - r : t.right + r, b = o === "start" ? t.top : o === "end" ? t.bottom - e.height : h - e.height / 2;
|
|
947
1077
|
break;
|
|
948
1078
|
}
|
|
949
|
-
|
|
950
|
-
|
|
1079
|
+
a && (f = J(
|
|
1080
|
+
f,
|
|
951
1081
|
s,
|
|
952
|
-
|
|
953
|
-
),
|
|
954
|
-
|
|
1082
|
+
p - e.width - s
|
|
1083
|
+
), b = J(
|
|
1084
|
+
b,
|
|
955
1085
|
s,
|
|
956
|
-
|
|
1086
|
+
d - e.height - s
|
|
957
1087
|
));
|
|
958
|
-
const
|
|
959
|
-
m -
|
|
960
|
-
|
|
961
|
-
Math.max(
|
|
1088
|
+
const u = 10, g = i === "top" || i === "bottom" ? J(
|
|
1089
|
+
m - f,
|
|
1090
|
+
u,
|
|
1091
|
+
Math.max(u, e.width - u)
|
|
962
1092
|
) : J(
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
Math.max(
|
|
1093
|
+
h - b,
|
|
1094
|
+
u,
|
|
1095
|
+
Math.max(u, e.height - u)
|
|
966
1096
|
);
|
|
967
|
-
return { x:
|
|
1097
|
+
return { x: f, y: b, side: i, arrowOffset: g };
|
|
968
1098
|
}
|
|
969
|
-
function
|
|
1099
|
+
function Ge(t, e, {
|
|
970
1100
|
side: n,
|
|
971
1101
|
align: o,
|
|
972
1102
|
sideOffset: r,
|
|
973
1103
|
collisionPadding: s,
|
|
974
|
-
avoidCollisions:
|
|
1104
|
+
avoidCollisions: a
|
|
975
1105
|
}) {
|
|
976
|
-
const [
|
|
1106
|
+
const [p, d] = M(null);
|
|
977
1107
|
return re(() => {
|
|
978
|
-
const
|
|
979
|
-
if (!
|
|
1108
|
+
const i = e.current;
|
|
1109
|
+
if (!i || !t)
|
|
980
1110
|
return;
|
|
981
1111
|
const m = () => {
|
|
982
|
-
const
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
trigger:
|
|
986
|
-
tooltip:
|
|
1112
|
+
const f = t.getBoundingClientRect(), b = i.getBoundingClientRect();
|
|
1113
|
+
d(
|
|
1114
|
+
gt({
|
|
1115
|
+
trigger: f,
|
|
1116
|
+
tooltip: b,
|
|
987
1117
|
side: n,
|
|
988
1118
|
align: o,
|
|
989
1119
|
sideOffset: r,
|
|
990
1120
|
collisionPadding: s,
|
|
991
|
-
avoidCollisions:
|
|
1121
|
+
avoidCollisions: a,
|
|
992
1122
|
viewportWidth: window.innerWidth || document.documentElement.clientWidth,
|
|
993
1123
|
viewportHeight: window.innerHeight || document.documentElement.clientHeight
|
|
994
1124
|
})
|
|
995
1125
|
);
|
|
996
1126
|
};
|
|
997
1127
|
m(), window.addEventListener("resize", m), window.addEventListener("scroll", m, !0);
|
|
998
|
-
const
|
|
999
|
-
return
|
|
1000
|
-
window.removeEventListener("resize", m), window.removeEventListener("scroll", m, !0),
|
|
1128
|
+
const h = typeof ResizeObserver > "u" ? null : new ResizeObserver(m);
|
|
1129
|
+
return h?.observe(t), h?.observe(i), () => {
|
|
1130
|
+
window.removeEventListener("resize", m), window.removeEventListener("scroll", m, !0), h?.disconnect();
|
|
1001
1131
|
};
|
|
1002
1132
|
}, [
|
|
1003
1133
|
o,
|
|
1004
|
-
|
|
1134
|
+
a,
|
|
1005
1135
|
s,
|
|
1006
1136
|
e,
|
|
1007
1137
|
n,
|
|
1008
1138
|
r,
|
|
1009
1139
|
t
|
|
1010
|
-
]),
|
|
1140
|
+
]), p;
|
|
1011
1141
|
}
|
|
1012
|
-
function
|
|
1142
|
+
function ze(t, e, n) {
|
|
1013
1143
|
O(() => {
|
|
1014
|
-
const o = (
|
|
1015
|
-
const
|
|
1016
|
-
|
|
1144
|
+
const o = (a) => {
|
|
1145
|
+
const p = a.target;
|
|
1146
|
+
p instanceof Node && (t.contains(p) || e.current?.contains(p) || n());
|
|
1017
1147
|
}, r = () => {
|
|
1018
1148
|
document.visibilityState === "hidden" && n();
|
|
1019
|
-
}, s = (
|
|
1020
|
-
const
|
|
1021
|
-
|
|
1149
|
+
}, s = (a) => {
|
|
1150
|
+
const p = a.target;
|
|
1151
|
+
a.key !== "Escape" || p instanceof Node && t.contains(p) || n();
|
|
1022
1152
|
};
|
|
1023
1153
|
return document.addEventListener("pointerdown", o, !0), document.addEventListener("visibilitychange", r), document.addEventListener("keydown", s, !0), window.addEventListener("blur", n), () => {
|
|
1024
1154
|
document.removeEventListener("pointerdown", o, !0), document.removeEventListener("visibilitychange", r), document.removeEventListener("keydown", s, !0), window.removeEventListener("blur", n);
|
|
1025
1155
|
};
|
|
1026
1156
|
}, [n, e, t]);
|
|
1027
1157
|
}
|
|
1028
|
-
function
|
|
1158
|
+
function Ke(t) {
|
|
1029
1159
|
switch (t) {
|
|
1030
1160
|
case "top":
|
|
1031
1161
|
return "center bottom";
|
|
@@ -1039,58 +1169,58 @@ function Ge(t) {
|
|
|
1039
1169
|
return "center";
|
|
1040
1170
|
}
|
|
1041
1171
|
}
|
|
1042
|
-
function
|
|
1172
|
+
function yt({
|
|
1043
1173
|
contentId: t,
|
|
1044
1174
|
triggerElement: e,
|
|
1045
1175
|
dismiss: n,
|
|
1046
1176
|
children: o,
|
|
1047
1177
|
className: r,
|
|
1048
1178
|
style: s,
|
|
1049
|
-
side:
|
|
1050
|
-
align:
|
|
1051
|
-
sideOffset:
|
|
1052
|
-
collisionPadding:
|
|
1179
|
+
side: a = "top",
|
|
1180
|
+
align: p = "center",
|
|
1181
|
+
sideOffset: d = 8,
|
|
1182
|
+
collisionPadding: i = 8,
|
|
1053
1183
|
avoidCollisions: m = !0,
|
|
1054
|
-
...
|
|
1184
|
+
...h
|
|
1055
1185
|
}) {
|
|
1056
|
-
const
|
|
1057
|
-
side:
|
|
1058
|
-
align:
|
|
1059
|
-
sideOffset:
|
|
1060
|
-
collisionPadding:
|
|
1186
|
+
const f = N(null), b = V() ?? !1, u = ae(), g = Ge(e, f, {
|
|
1187
|
+
side: a,
|
|
1188
|
+
align: p,
|
|
1189
|
+
sideOffset: d,
|
|
1190
|
+
collisionPadding: i,
|
|
1061
1191
|
avoidCollisions: m
|
|
1062
1192
|
});
|
|
1063
|
-
|
|
1064
|
-
const y =
|
|
1193
|
+
ze(e, f, n);
|
|
1194
|
+
const y = Ke(g?.side ?? a), v = {
|
|
1065
1195
|
...s,
|
|
1066
1196
|
left: g ? `${g.x}px` : 0,
|
|
1067
1197
|
top: g ? `${g.y}px` : 0,
|
|
1068
1198
|
visibility: g ? "visible" : "hidden"
|
|
1069
1199
|
};
|
|
1070
|
-
return /* @__PURE__ */
|
|
1200
|
+
return /* @__PURE__ */ c(
|
|
1071
1201
|
"div",
|
|
1072
1202
|
{
|
|
1073
|
-
...
|
|
1074
|
-
ref:
|
|
1203
|
+
...h,
|
|
1204
|
+
ref: f,
|
|
1075
1205
|
id: t,
|
|
1076
1206
|
role: "tooltip",
|
|
1077
|
-
"data-side": g?.side ??
|
|
1078
|
-
"data-align":
|
|
1079
|
-
"data-state":
|
|
1080
|
-
"aria-hidden":
|
|
1081
|
-
className:
|
|
1082
|
-
style:
|
|
1083
|
-
children: /* @__PURE__ */
|
|
1084
|
-
|
|
1207
|
+
"data-side": g?.side ?? a,
|
|
1208
|
+
"data-align": p,
|
|
1209
|
+
"data-state": u ? "open" : "closed",
|
|
1210
|
+
"aria-hidden": u ? void 0 : !0,
|
|
1211
|
+
className: k("uk-tooltip", r),
|
|
1212
|
+
style: v,
|
|
1213
|
+
children: /* @__PURE__ */ C(
|
|
1214
|
+
E.div,
|
|
1085
1215
|
{
|
|
1086
1216
|
className: "uk-tooltip__surface",
|
|
1087
1217
|
style: { transformOrigin: y },
|
|
1088
|
-
initial:
|
|
1218
|
+
initial: b ? { opacity: 0 } : { opacity: 0, scale: 0.96 },
|
|
1089
1219
|
animate: { opacity: 1, scale: 1 },
|
|
1090
|
-
exit:
|
|
1091
|
-
transition:
|
|
1220
|
+
exit: b ? { opacity: 0 } : { opacity: 0, scale: 0.96 },
|
|
1221
|
+
transition: b ? K : ve,
|
|
1092
1222
|
children: [
|
|
1093
|
-
/* @__PURE__ */
|
|
1223
|
+
/* @__PURE__ */ c(
|
|
1094
1224
|
"span",
|
|
1095
1225
|
{
|
|
1096
1226
|
className: "uk-tooltip__arrow",
|
|
@@ -1107,15 +1237,15 @@ function bt({
|
|
|
1107
1237
|
}
|
|
1108
1238
|
);
|
|
1109
1239
|
}
|
|
1110
|
-
function
|
|
1111
|
-
const e =
|
|
1112
|
-
|
|
1113
|
-
|
|
1114
|
-
|
|
1240
|
+
function vt(t) {
|
|
1241
|
+
const e = He("Tooltip.Content"), o = oe(
|
|
1242
|
+
$e,
|
|
1243
|
+
Be,
|
|
1244
|
+
Ae
|
|
1115
1245
|
) && e.triggerElement ? e.triggerElement.closest("dialog") ?? document.body : null;
|
|
1116
1246
|
return !o || !e.triggerElement ? null : se(
|
|
1117
|
-
/* @__PURE__ */
|
|
1118
|
-
|
|
1247
|
+
/* @__PURE__ */ c(ie, { reducedMotion: "user", children: /* @__PURE__ */ c(A, { children: e.open ? /* @__PURE__ */ c(
|
|
1248
|
+
yt,
|
|
1119
1249
|
{
|
|
1120
1250
|
contentId: e.contentId,
|
|
1121
1251
|
triggerElement: e.triggerElement,
|
|
@@ -1127,11 +1257,11 @@ function gt(t) {
|
|
|
1127
1257
|
o
|
|
1128
1258
|
);
|
|
1129
1259
|
}
|
|
1130
|
-
const
|
|
1260
|
+
const Ue = q(
|
|
1131
1261
|
null
|
|
1132
1262
|
);
|
|
1133
|
-
function
|
|
1134
|
-
const e = X(
|
|
1263
|
+
function It(t) {
|
|
1264
|
+
const e = X(Ue);
|
|
1135
1265
|
if (!e)
|
|
1136
1266
|
throw new Error(`<${t}> must be rendered inside <Tooltip.Group>`);
|
|
1137
1267
|
return e;
|
|
@@ -1143,67 +1273,67 @@ function Tt({
|
|
|
1143
1273
|
contentId: o,
|
|
1144
1274
|
dismiss: r,
|
|
1145
1275
|
triggerElement: s,
|
|
1146
|
-
side:
|
|
1147
|
-
align:
|
|
1148
|
-
sideOffset:
|
|
1149
|
-
collisionPadding:
|
|
1276
|
+
side: a,
|
|
1277
|
+
align: p,
|
|
1278
|
+
sideOffset: d,
|
|
1279
|
+
collisionPadding: i,
|
|
1150
1280
|
avoidCollisions: m
|
|
1151
1281
|
}) {
|
|
1152
|
-
const
|
|
1153
|
-
side:
|
|
1154
|
-
align:
|
|
1155
|
-
sideOffset:
|
|
1156
|
-
collisionPadding:
|
|
1282
|
+
const h = N(null), f = V() ?? !1, b = ae(), u = Ge(s, h, {
|
|
1283
|
+
side: a,
|
|
1284
|
+
align: p,
|
|
1285
|
+
sideOffset: d,
|
|
1286
|
+
collisionPadding: i,
|
|
1157
1287
|
avoidCollisions: m
|
|
1158
1288
|
});
|
|
1159
|
-
|
|
1289
|
+
ze(s, h, r);
|
|
1160
1290
|
const g = {
|
|
1161
|
-
left:
|
|
1162
|
-
top:
|
|
1163
|
-
transformOrigin:
|
|
1164
|
-
visibility:
|
|
1291
|
+
left: u ? `${u.x}px` : 0,
|
|
1292
|
+
top: u ? `${u.y}px` : 0,
|
|
1293
|
+
transformOrigin: Ke(u?.side ?? a),
|
|
1294
|
+
visibility: u ? "visible" : "hidden"
|
|
1165
1295
|
};
|
|
1166
|
-
return /* @__PURE__ */
|
|
1167
|
-
|
|
1296
|
+
return /* @__PURE__ */ C(
|
|
1297
|
+
E.div,
|
|
1168
1298
|
{
|
|
1169
|
-
ref:
|
|
1299
|
+
ref: h,
|
|
1170
1300
|
id: o,
|
|
1171
1301
|
role: "tooltip",
|
|
1172
|
-
layout: !
|
|
1302
|
+
layout: !f,
|
|
1173
1303
|
layoutDependency: t,
|
|
1174
|
-
"data-side":
|
|
1175
|
-
"data-align":
|
|
1176
|
-
"data-state":
|
|
1177
|
-
"aria-hidden":
|
|
1178
|
-
className:
|
|
1304
|
+
"data-side": u?.side ?? a,
|
|
1305
|
+
"data-align": p,
|
|
1306
|
+
"data-state": b ? "open" : "closed",
|
|
1307
|
+
"aria-hidden": b ? void 0 : !0,
|
|
1308
|
+
className: k(
|
|
1179
1309
|
"uk-tooltip",
|
|
1180
1310
|
"uk-tooltip__surface",
|
|
1181
1311
|
"uk-tooltip--group",
|
|
1182
1312
|
n
|
|
1183
1313
|
),
|
|
1184
1314
|
style: g,
|
|
1185
|
-
initial:
|
|
1315
|
+
initial: f ? { opacity: 0 } : { opacity: 0, scale: 0.96 },
|
|
1186
1316
|
animate: { opacity: 1, scale: 1 },
|
|
1187
|
-
exit:
|
|
1188
|
-
transition:
|
|
1317
|
+
exit: f ? { opacity: 0 } : { opacity: 0, scale: 0.96 },
|
|
1318
|
+
transition: f ? { ...K, layout: { duration: 0 } } : et,
|
|
1189
1319
|
children: [
|
|
1190
|
-
/* @__PURE__ */
|
|
1320
|
+
/* @__PURE__ */ c(
|
|
1191
1321
|
"span",
|
|
1192
1322
|
{
|
|
1193
1323
|
className: "uk-tooltip__arrow",
|
|
1194
1324
|
"aria-hidden": "true",
|
|
1195
1325
|
style: {
|
|
1196
|
-
"--uk-tooltip-arrow-offset": `${
|
|
1326
|
+
"--uk-tooltip-arrow-offset": `${u?.arrowOffset ?? 0}px`
|
|
1197
1327
|
}
|
|
1198
1328
|
}
|
|
1199
1329
|
),
|
|
1200
|
-
/* @__PURE__ */
|
|
1201
|
-
|
|
1330
|
+
/* @__PURE__ */ c(
|
|
1331
|
+
E.div,
|
|
1202
1332
|
{
|
|
1203
1333
|
className: "uk-tooltip__content",
|
|
1204
1334
|
initial: { opacity: 0 },
|
|
1205
1335
|
animate: { opacity: 1 },
|
|
1206
|
-
transition:
|
|
1336
|
+
transition: f ? K : ve,
|
|
1207
1337
|
children: e
|
|
1208
1338
|
},
|
|
1209
1339
|
t
|
|
@@ -1212,107 +1342,107 @@ function Tt({
|
|
|
1212
1342
|
}
|
|
1213
1343
|
);
|
|
1214
1344
|
}
|
|
1215
|
-
function
|
|
1345
|
+
function kt({
|
|
1216
1346
|
children: t,
|
|
1217
1347
|
side: e = "top",
|
|
1218
1348
|
align: n = "center",
|
|
1219
1349
|
sideOffset: o = 8,
|
|
1220
1350
|
collisionPadding: r = 8,
|
|
1221
1351
|
avoidCollisions: s = !0,
|
|
1222
|
-
delayDuration:
|
|
1223
|
-
closeDelay:
|
|
1224
|
-
contentClassName:
|
|
1352
|
+
delayDuration: a = 180,
|
|
1353
|
+
closeDelay: p = 80,
|
|
1354
|
+
contentClassName: d
|
|
1225
1355
|
}) {
|
|
1226
|
-
const
|
|
1356
|
+
const i = R(), [m, h] = M(
|
|
1227
1357
|
() => /* @__PURE__ */ new Map()
|
|
1228
|
-
), [
|
|
1229
|
-
|
|
1230
|
-
|
|
1231
|
-
|
|
1232
|
-
),
|
|
1358
|
+
), [f, b] = M(!1), [u, g] = M(null), y = N(null), v = N(null), T = oe(
|
|
1359
|
+
$e,
|
|
1360
|
+
Be,
|
|
1361
|
+
Ae
|
|
1362
|
+
), l = G(() => {
|
|
1233
1363
|
y.current !== null && (clearTimeout(y.current), y.current = null);
|
|
1234
|
-
}, []),
|
|
1235
|
-
|
|
1236
|
-
}, []),
|
|
1237
|
-
if (
|
|
1238
|
-
if (
|
|
1239
|
-
|
|
1364
|
+
}, []), I = G(() => {
|
|
1365
|
+
v.current !== null && (clearTimeout(v.current), v.current = null);
|
|
1366
|
+
}, []), w = S((H, B = !1) => {
|
|
1367
|
+
if (l(), I(), g(H), !f) {
|
|
1368
|
+
if (B || a <= 0) {
|
|
1369
|
+
b(!0);
|
|
1240
1370
|
return;
|
|
1241
1371
|
}
|
|
1242
1372
|
y.current = setTimeout(() => {
|
|
1243
|
-
y.current = null,
|
|
1244
|
-
},
|
|
1373
|
+
y.current = null, b(!0);
|
|
1374
|
+
}, a);
|
|
1245
1375
|
}
|
|
1246
|
-
}),
|
|
1247
|
-
if (
|
|
1248
|
-
if (
|
|
1249
|
-
|
|
1376
|
+
}), _ = S(() => {
|
|
1377
|
+
if (l(), I(), !!f) {
|
|
1378
|
+
if (p <= 0) {
|
|
1379
|
+
b(!1);
|
|
1250
1380
|
return;
|
|
1251
1381
|
}
|
|
1252
|
-
|
|
1253
|
-
|
|
1254
|
-
},
|
|
1382
|
+
v.current = setTimeout(() => {
|
|
1383
|
+
v.current = null, b(!1);
|
|
1384
|
+
}, p);
|
|
1255
1385
|
}
|
|
1256
|
-
}),
|
|
1257
|
-
|
|
1258
|
-
}),
|
|
1259
|
-
(
|
|
1260
|
-
|
|
1261
|
-
const
|
|
1262
|
-
if (
|
|
1386
|
+
}), $ = S(() => {
|
|
1387
|
+
l(), I(), b(!1);
|
|
1388
|
+
}), L = S(
|
|
1389
|
+
(H, B, z) => {
|
|
1390
|
+
h((ee) => {
|
|
1391
|
+
const de = ee.get(H);
|
|
1392
|
+
if (de?.triggerElement === B && Object.is(de.content, z))
|
|
1263
1393
|
return ee;
|
|
1264
|
-
const
|
|
1265
|
-
return
|
|
1394
|
+
const pe = new Map(ee);
|
|
1395
|
+
return pe.set(H, { triggerElement: B, content: z }), pe;
|
|
1266
1396
|
});
|
|
1267
1397
|
}
|
|
1268
|
-
),
|
|
1269
|
-
|
|
1270
|
-
if (!
|
|
1271
|
-
return
|
|
1272
|
-
const
|
|
1273
|
-
return
|
|
1398
|
+
), x = S((H) => {
|
|
1399
|
+
h((B) => {
|
|
1400
|
+
if (!B.has(H))
|
|
1401
|
+
return B;
|
|
1402
|
+
const z = new Map(B);
|
|
1403
|
+
return z.delete(H), z;
|
|
1274
1404
|
});
|
|
1275
1405
|
});
|
|
1276
1406
|
O(
|
|
1277
1407
|
() => () => {
|
|
1278
|
-
|
|
1408
|
+
l(), I();
|
|
1279
1409
|
},
|
|
1280
|
-
[
|
|
1410
|
+
[I, l]
|
|
1281
1411
|
);
|
|
1282
|
-
const
|
|
1412
|
+
const je = U(
|
|
1283
1413
|
() => ({
|
|
1284
|
-
open:
|
|
1285
|
-
activeValue:
|
|
1286
|
-
contentId:
|
|
1287
|
-
activate:
|
|
1288
|
-
requestClose:
|
|
1289
|
-
dismiss:
|
|
1290
|
-
register:
|
|
1291
|
-
unregister:
|
|
1414
|
+
open: f,
|
|
1415
|
+
activeValue: u,
|
|
1416
|
+
contentId: i,
|
|
1417
|
+
activate: w,
|
|
1418
|
+
requestClose: _,
|
|
1419
|
+
dismiss: $,
|
|
1420
|
+
register: L,
|
|
1421
|
+
unregister: x
|
|
1292
1422
|
}),
|
|
1293
1423
|
[
|
|
1294
|
-
|
|
1295
|
-
f,
|
|
1296
|
-
a,
|
|
1297
|
-
S,
|
|
1424
|
+
w,
|
|
1298
1425
|
u,
|
|
1299
|
-
|
|
1300
|
-
|
|
1301
|
-
|
|
1426
|
+
i,
|
|
1427
|
+
$,
|
|
1428
|
+
f,
|
|
1429
|
+
L,
|
|
1430
|
+
_,
|
|
1431
|
+
x
|
|
1302
1432
|
]
|
|
1303
|
-
),
|
|
1304
|
-
return /* @__PURE__ */
|
|
1433
|
+
), F = u ? m.get(u) : void 0, qe = f && !!F, ue = T && F ? F.triggerElement.closest("dialog") ?? document.body : null;
|
|
1434
|
+
return /* @__PURE__ */ C(Ue.Provider, { value: je, children: [
|
|
1305
1435
|
t,
|
|
1306
|
-
|
|
1307
|
-
/* @__PURE__ */
|
|
1436
|
+
ue && F ? se(
|
|
1437
|
+
/* @__PURE__ */ c(ie, { reducedMotion: "user", children: /* @__PURE__ */ c(A, { children: qe ? /* @__PURE__ */ c(
|
|
1308
1438
|
Tt,
|
|
1309
1439
|
{
|
|
1310
|
-
activeValue:
|
|
1311
|
-
content:
|
|
1312
|
-
contentClassName:
|
|
1313
|
-
contentId:
|
|
1314
|
-
dismiss:
|
|
1315
|
-
triggerElement:
|
|
1440
|
+
activeValue: u ?? "",
|
|
1441
|
+
content: F.content,
|
|
1442
|
+
contentClassName: d,
|
|
1443
|
+
contentId: i,
|
|
1444
|
+
dismiss: $,
|
|
1445
|
+
triggerElement: F.triggerElement,
|
|
1316
1446
|
side: e,
|
|
1317
1447
|
align: n,
|
|
1318
1448
|
sideOffset: o,
|
|
@@ -1321,7 +1451,7 @@ function vt({
|
|
|
1321
1451
|
},
|
|
1322
1452
|
"uk-tooltip-group"
|
|
1323
1453
|
) : null }) }),
|
|
1324
|
-
|
|
1454
|
+
ue
|
|
1325
1455
|
) : null
|
|
1326
1456
|
] });
|
|
1327
1457
|
}
|
|
@@ -1330,54 +1460,54 @@ function wt({
|
|
|
1330
1460
|
content: e,
|
|
1331
1461
|
children: n
|
|
1332
1462
|
}) {
|
|
1333
|
-
const o =
|
|
1463
|
+
const o = It("Tooltip.Item"), { register: r, unregister: s } = o, [a, p] = M(
|
|
1334
1464
|
null
|
|
1335
1465
|
);
|
|
1336
|
-
if (!
|
|
1466
|
+
if (!Z(n))
|
|
1337
1467
|
throw new Error("<Tooltip.Item> expects a single valid React element");
|
|
1338
|
-
const
|
|
1339
|
-
(
|
|
1340
|
-
|
|
1468
|
+
const d = n, i = d.props, m = i.ref ?? d.ref, h = i.onPointerEnter, f = i.onPointerLeave, b = i.onFocus, u = i.onBlur, g = i.onKeyDown, y = o.open && o.activeValue === t, v = G(
|
|
1469
|
+
(T) => {
|
|
1470
|
+
Ve(m, T), p(T);
|
|
1341
1471
|
},
|
|
1342
|
-
[m,
|
|
1472
|
+
[m, p]
|
|
1343
1473
|
);
|
|
1344
1474
|
return re(() => {
|
|
1345
|
-
if (
|
|
1346
|
-
return r(t,
|
|
1347
|
-
}, [e, r,
|
|
1348
|
-
ref:
|
|
1349
|
-
"aria-describedby": y ?
|
|
1350
|
-
onPointerEnter:
|
|
1351
|
-
o.activate(t,
|
|
1475
|
+
if (a)
|
|
1476
|
+
return r(t, a, e), () => s(t);
|
|
1477
|
+
}, [e, r, a, s, t]), j(d, {
|
|
1478
|
+
ref: v,
|
|
1479
|
+
"aria-describedby": y ? Fe(i["aria-describedby"], o.contentId) : i["aria-describedby"],
|
|
1480
|
+
onPointerEnter: D(h, (T) => {
|
|
1481
|
+
o.activate(t, T.pointerType === "touch");
|
|
1352
1482
|
}),
|
|
1353
|
-
onPointerLeave:
|
|
1354
|
-
|
|
1483
|
+
onPointerLeave: D(f, (T) => {
|
|
1484
|
+
T.pointerType !== "touch" && o.requestClose();
|
|
1355
1485
|
}),
|
|
1356
|
-
onFocus:
|
|
1486
|
+
onFocus: D(b, () => {
|
|
1357
1487
|
o.activate(t);
|
|
1358
1488
|
}),
|
|
1359
|
-
onBlur:
|
|
1489
|
+
onBlur: D(u, () => {
|
|
1360
1490
|
o.requestClose();
|
|
1361
1491
|
}),
|
|
1362
|
-
onKeyDown:
|
|
1363
|
-
|
|
1492
|
+
onKeyDown: D(g, (T) => {
|
|
1493
|
+
T.key === "Escape" && y && (T.preventDefault(), T.stopPropagation(), o.dismiss());
|
|
1364
1494
|
})
|
|
1365
1495
|
});
|
|
1366
1496
|
}
|
|
1367
|
-
const
|
|
1368
|
-
Root:
|
|
1369
|
-
Trigger:
|
|
1370
|
-
Content:
|
|
1371
|
-
Group:
|
|
1497
|
+
const Mt = {
|
|
1498
|
+
Root: ht,
|
|
1499
|
+
Trigger: mt,
|
|
1500
|
+
Content: vt,
|
|
1501
|
+
Group: kt,
|
|
1372
1502
|
Item: wt
|
|
1373
1503
|
};
|
|
1374
1504
|
export {
|
|
1375
|
-
|
|
1376
|
-
|
|
1377
|
-
|
|
1378
|
-
|
|
1379
|
-
|
|
1380
|
-
|
|
1381
|
-
|
|
1505
|
+
ye as Button,
|
|
1506
|
+
St as Dialog,
|
|
1507
|
+
Pt as Input,
|
|
1508
|
+
Rt as Sidebar,
|
|
1509
|
+
Dt as Switch,
|
|
1510
|
+
Lt as Tabs,
|
|
1511
|
+
Mt as Tooltip
|
|
1382
1512
|
};
|
|
1383
1513
|
//# sourceMappingURL=index.js.map
|