seam-react 0.5.1 → 0.7.0

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