@grasp-labs/ds-react-components 1.4.0 → 1.4.2

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.
@@ -7,6 +7,8 @@ export type TooltipProps = {
7
7
  content: ReactNode;
8
8
  /** Preferred placement of the tooltip */
9
9
  placement?: PopoverPlacement;
10
+ /** Delay in milliseconds before opening on hover */
11
+ openDelay?: number;
10
12
  /** Additional CSS classes for the tooltip content */
11
13
  className?: string;
12
14
  };
@@ -17,4 +19,4 @@ export type TooltipProps = {
17
19
  * @param props - The props for the Tooltip component.
18
20
  * @returns The rendered tooltip with trigger element.
19
21
  */
20
- export declare const Tooltip: ({ children, content, placement, className, }: TooltipProps) => import("react/jsx-runtime").JSX.Element;
22
+ export declare const Tooltip: ({ children, content, placement, openDelay, className, }: TooltipProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,5 +1,5 @@
1
1
  import * as p from "react";
2
- import oe, { useId as Tn, lazy as Dl, useRef as De, useLayoutEffect as fn, Fragment as Pl, useState as Ne, useEffect as Ue, createElement as ja, Suspense as Nl, Component as jl, useMemo as at, useCallback as Ce, useReducer as Dh, cloneElement as Ll, createContext as Ph, useContext as Nh, forwardRef as jh, Children as Al, isValidElement as Wl } from "react";
2
+ import oe, { useId as Tn, lazy as Dl, useRef as Re, useLayoutEffect as fn, Fragment as Pl, useState as Ne, useEffect as Ue, createElement as ja, Suspense as Nl, Component as jl, useMemo as at, useCallback as Ce, useReducer as Dh, cloneElement as Ll, createContext as Ph, useContext as Nh, forwardRef as jh, Children as Al, isValidElement as Wl } from "react";
3
3
  import { flexRender as Vl, useReactTable as Lh, getPaginationRowModel as Ah, getSortedRowModel as Wh, getCoreRowModel as Vh } from "@tanstack/react-table";
4
4
  import * as Jt from "react-dom";
5
5
  import { createPortal as Fh } from "react-dom";
@@ -3453,7 +3453,7 @@ const Qg = {
3453
3453
  );
3454
3454
  };
3455
3455
  function e1(e, t) {
3456
- const { duration: n = 300, easing: r = "ease-out" } = e, o = De(null), s = De(/* @__PURE__ */ new Map());
3456
+ const { duration: n = 300, easing: r = "ease-out" } = e, o = Re(null), s = Re(/* @__PURE__ */ new Map());
3457
3457
  return fn(() => {
3458
3458
  const i = o.current;
3459
3459
  if (!i) return;
@@ -3880,7 +3880,7 @@ function d5({
3880
3880
  bodyClassName: v,
3881
3881
  footerClassName: y
3882
3882
  }) {
3883
- const k = De(null), m = (x) => {
3883
+ const k = Re(null), m = (x) => {
3884
3884
  o && x.target === x.currentTarget && t();
3885
3885
  };
3886
3886
  return /* @__PURE__ */ C.jsxs(or, { container: h, children: [
@@ -3900,11 +3900,11 @@ function d5({
3900
3900
  {
3901
3901
  ref: k,
3902
3902
  className: G(
3903
- "z-drawer fixed shadow-xl transition-transform duration-300 ease-out",
3903
+ "z-drawer fixed transition-transform duration-300 ease-out",
3904
3904
  l1[n],
3905
3905
  u1[n][r],
3906
3906
  e ? Ka[n].open : Ka[n].closed,
3907
- !e && "pointer-events-none",
3907
+ e ? "shadow-xl" : "pointer-events-none shadow-none",
3908
3908
  a
3909
3909
  ),
3910
3910
  children: /* @__PURE__ */ C.jsx(
@@ -11071,7 +11071,7 @@ const g5 = ({
11071
11071
  ref: b,
11072
11072
  ...v
11073
11073
  }) => {
11074
- const y = Tn(), k = d ?? `file-input-${y}`, [m, x] = Ne(null), w = De(null), f = (T) => {
11074
+ const y = Tn(), k = d ?? `file-input-${y}`, [m, x] = Ne(null), w = Re(null), f = (T) => {
11075
11075
  w.current = T, typeof b == "function" ? b(T) : b && (b.current = T);
11076
11076
  };
11077
11077
  Ue(() => {
@@ -11230,7 +11230,7 @@ const C5 = ({
11230
11230
  iconCancel: "var(--error)"
11231
11231
  }
11232
11232
  }, Z0 = Dl(
11233
- () => import("./index.esm-B7LXMQzR.js").then((e) => ({
11233
+ () => import("./index.esm-1NwUBeZD.js").then((e) => ({
11234
11234
  default: e.JsonEditor
11235
11235
  }))
11236
11236
  );
@@ -13281,11 +13281,11 @@ function zi(e) {
13281
13281
  return "" + e.slice(0, 1).toUpperCase() + e.slice(1);
13282
13282
  }
13283
13283
  function Ki(e) {
13284
- var t = De(e);
13284
+ var t = Re(e);
13285
13285
  return t.current = e, t;
13286
13286
  }
13287
13287
  function rp(e, t, n, r) {
13288
- var o = De(), s = De(), i = Ce(function(g, b) {
13288
+ var o = Re(), s = Re(), i = Ce(function(g, b) {
13289
13289
  s.current = b, g = Pr(g, b.props);
13290
13290
  var v = e(g, b), y = b.props.stateReducer(g, ke({}, b, {
13291
13291
  changes: v
@@ -13350,7 +13350,7 @@ function _r(e, t, n) {
13350
13350
  }) : n < 0 && !i(r[r.length - 1], r.length - 1) ? r.length - 1 : n > 0 && !i(r[0], 0) ? 0 : -1;
13351
13351
  }
13352
13352
  function Fw(e, t, n) {
13353
- var r = De({
13353
+ var r = Re({
13354
13354
  isMouseDown: !1,
13355
13355
  isTouchMove: !1,
13356
13356
  isTouchEnd: !1
@@ -13388,7 +13388,7 @@ var qi = function() {
13388
13388
  process.env.NODE_ENV !== "production" && (qi = function() {
13389
13389
  for (var t = arguments.length, n = new Array(t), r = 0; r < t; r++)
13390
13390
  n[r] = arguments[r];
13391
- var o = De(n.reduce(function(i, a) {
13391
+ var o = Re(n.reduce(function(i, a) {
13392
13392
  return i[a] = {}, i;
13393
13393
  }, {}));
13394
13394
  Ue(function() {
@@ -13426,14 +13426,14 @@ function op(e, t, n, r) {
13426
13426
  }, [o]);
13427
13427
  }
13428
13428
  function Hw(e) {
13429
- var t = e.highlightedIndex, n = e.isOpen, r = e.itemRefs, o = e.getItemNodeFromIndex, s = e.menuElement, i = e.scrollIntoView, a = De(!0);
13429
+ var t = e.highlightedIndex, n = e.isOpen, r = e.itemRefs, o = e.getItemNodeFromIndex, s = e.menuElement, i = e.scrollIntoView, a = Re(!0);
13430
13430
  return Lw(function() {
13431
13431
  t < 0 || !n || !Object.keys(r.current).length || (a.current === !1 ? a.current = !0 : i(o(t), s));
13432
13432
  }, [t]), a;
13433
13433
  }
13434
13434
  var Ui = yt;
13435
13435
  process.env.NODE_ENV !== "production" && (Ui = function(t) {
13436
- var n = t.props, r = t.state, o = De(n), s = Fr();
13436
+ var n = t.props, r = t.state, o = Re(n), s = Fr();
13437
13437
  Ue(function() {
13438
13438
  s || (Yi(r, o.current, n), o.current = n);
13439
13439
  }, [r, n, s]);
@@ -13632,7 +13632,7 @@ var Kw = ke({}, sp, {
13632
13632
  onInputValueChange: J.func
13633
13633
  });
13634
13634
  function qw(e, t, n, r) {
13635
- var o = De(), s = rp(e, t, n, r), i = s[0], a = s[1], c = Fr();
13635
+ var o = Re(), s = rp(e, t, n, r), i = s[0], a = s[1], c = Fr();
13636
13636
  return Ue(function() {
13637
13637
  if (Po(t, "selectedItem")) {
13638
13638
  if (!c) {
@@ -13756,7 +13756,7 @@ var Xw = ["onMouseLeave", "refKey", "ref"], Zw = ["item", "index", "refKey", "re
13756
13756
  gt.stateChangeTypes = mp;
13757
13757
  function gt(e) {
13758
13758
  e === void 0 && (e = {}), gp(e, gt);
13759
- var t = ke({}, Uw, e), n = t.items, r = t.scrollIntoView, o = t.environment, s = t.getA11yStatusMessage, i = qw(Gw, t, zw, Bw), a = i[0], c = i[1], l = a.isOpen, d = a.highlightedIndex, u = a.selectedItem, h = a.inputValue, g = De(null), b = De({}), v = De(null), y = De(null), k = Fr(), m = Aw(t), x = De(), w = Ki({
13759
+ var t = ke({}, Uw, e), n = t.items, r = t.scrollIntoView, o = t.environment, s = t.getA11yStatusMessage, i = qw(Gw, t, zw, Bw), a = i[0], c = i[1], l = a.isOpen, d = a.highlightedIndex, u = a.selectedItem, h = a.inputValue, g = Re(null), b = Re({}), v = Re(null), y = Re(null), k = Fr(), m = Aw(t), x = Re(), w = Ki({
13760
13760
  state: a,
13761
13761
  props: t
13762
13762
  }), f = Ce(function(j) {
@@ -14140,7 +14140,7 @@ var i2 = ["refKey", "ref", "onClick", "onKeyDown", "selectedItem", "index"], a2
14140
14140
  vn.stateChangeTypes = o2;
14141
14141
  function vn(e) {
14142
14142
  e === void 0 && (e = {}), bp(e, vn);
14143
- var t = ke({}, r2, e), n = t.getA11yStatusMessage, r = t.environment, o = t.keyNavigationNext, s = t.keyNavigationPrevious, i = Ww(s2, t, e2, t2), a = i[0], c = i[1], l = a.activeIndex, d = a.selectedItems, u = Fr(), h = De(null), g = De();
14143
+ var t = ke({}, r2, e), n = t.getA11yStatusMessage, r = t.environment, o = t.keyNavigationNext, s = t.keyNavigationPrevious, i = Ww(s2, t, e2, t2), a = i[0], c = i[1], l = a.activeIndex, d = a.selectedItems, u = Fr(), h = Re(null), g = Re();
14144
14144
  g.current = [];
14145
14145
  var b = Ki({
14146
14146
  state: a,
@@ -14257,7 +14257,7 @@ const vp = ({
14257
14257
  const [r, o] = Ne({
14258
14258
  left: 0,
14259
14259
  width: 0
14260
- }), s = De(void 0), i = Ce(() => {
14260
+ }), s = Re(void 0), i = Ce(() => {
14261
14261
  const a = t.current;
14262
14262
  if (!a) return;
14263
14263
  const c = a.getBoundingClientRect(), l = c.top, d = window.innerHeight - c.bottom, u = d < n && l > d;
@@ -14362,7 +14362,7 @@ const vp = ({
14362
14362
  removeLabel: s = "Remove",
14363
14363
  getAdditionalTagProps: i
14364
14364
  }) => {
14365
- const a = De(null), [c, l] = Ne(e.length), d = Ce(() => {
14365
+ const a = Re(null), [c, l] = Ne(e.length), d = Ce(() => {
14366
14366
  if (!a.current || e.length === 0)
14367
14367
  return l(e.length);
14368
14368
  const b = a.current.offsetWidth;
@@ -14436,7 +14436,7 @@ const vp = ({
14436
14436
  maxHeight: g = 280,
14437
14437
  listClassName: b
14438
14438
  }) => {
14439
- const [v, y] = Ne(""), k = De(null), m = at(() => v ? n.filter((W) => Mt(W).toLowerCase().includes(v.toLowerCase())) : n, [n, v]), { getSelectedItemProps: x, getDropdownProps: w, removeSelectedItem: f } = vn({
14439
+ const [v, y] = Ne(""), k = Re(null), m = at(() => v ? n.filter((W) => Mt(W).toLowerCase().includes(v.toLowerCase())) : n, [n, v]), { getSelectedItemProps: x, getDropdownProps: w, removeSelectedItem: f } = vn({
14440
14440
  selectedItems: e,
14441
14441
  onStateChange({ selectedItems: W, type: B }) {
14442
14442
  switch (B) {
@@ -14757,7 +14757,7 @@ const vp = ({
14757
14757
  initialFocusRef: k,
14758
14758
  returnFocusOnClose: m = !0
14759
14759
  }) => {
14760
- const x = De(null), w = De(null), [f, E] = Ne({}), [I, O] = Ne({}), S = De(null), T = Tn(), F = (h ?? `popover-${T}`).replace(/:/g, "-"), L = Ce(() => {
14760
+ const x = Re(null), w = Re(null), [f, E] = Ne({}), [I, O] = Ne({}), S = Re(null), T = Tn(), F = (h ?? `popover-${T}`).replace(/:/g, "-"), L = Ce(() => {
14761
14761
  if (!n || !x.current || !w.current) return;
14762
14762
  const N = x.current.getBoundingClientRect(), W = w.current.getBoundingClientRect(), { styles: B, axis: q } = h2(
14763
14763
  i,
@@ -15249,15 +15249,15 @@ const Mp = 6048e5, I2 = 864e5, S2 = 6e4, M2 = 36e5, T2 = 1e3, pl = /* @__PURE__
15249
15249
  function ze(e, t) {
15250
15250
  return typeof e == "function" ? e(t) : e && typeof e == "object" && pl in e ? e[pl](t) : e instanceof Date ? new e.constructor(t) : new Date(t);
15251
15251
  }
15252
- function Re(e, t) {
15252
+ function De(e, t) {
15253
15253
  return ze(t || e, e);
15254
15254
  }
15255
15255
  function Xo(e, t, n) {
15256
- const r = Re(e, n?.in);
15256
+ const r = De(e, n?.in);
15257
15257
  return isNaN(t) ? ze(n?.in || e, NaN) : (t && r.setDate(r.getDate() + t), r);
15258
15258
  }
15259
15259
  function Tp(e, t, n) {
15260
- const r = Re(e, n?.in);
15260
+ const r = De(e, n?.in);
15261
15261
  if (isNaN(t)) return ze(e, NaN);
15262
15262
  if (!t)
15263
15263
  return r;
@@ -15275,14 +15275,14 @@ function Nn() {
15275
15275
  return R2;
15276
15276
  }
15277
15277
  function tn(e, t) {
15278
- const n = Nn(), r = t?.weekStartsOn ?? t?.locale?.options?.weekStartsOn ?? n.weekStartsOn ?? n.locale?.options?.weekStartsOn ?? 0, o = Re(e, t?.in), s = o.getDay(), i = (s < r ? 7 : 0) + s - r;
15278
+ const n = Nn(), r = t?.weekStartsOn ?? t?.locale?.options?.weekStartsOn ?? n.weekStartsOn ?? n.locale?.options?.weekStartsOn ?? 0, o = De(e, t?.in), s = o.getDay(), i = (s < r ? 7 : 0) + s - r;
15279
15279
  return o.setDate(o.getDate() - i), o.setHours(0, 0, 0, 0), o;
15280
15280
  }
15281
15281
  function Mn(e, t) {
15282
15282
  return tn(e, { ...t, weekStartsOn: 1 });
15283
15283
  }
15284
15284
  function Rp(e, t) {
15285
- const n = Re(e, t?.in), r = n.getFullYear(), o = ze(n, 0);
15285
+ const n = De(e, t?.in), r = n.getFullYear(), o = ze(n, 0);
15286
15286
  o.setFullYear(r + 1, 0, 4), o.setHours(0, 0, 0, 0);
15287
15287
  const s = Mn(o), i = ze(n, 0);
15288
15288
  i.setFullYear(r, 0, 4), i.setHours(0, 0, 0, 0);
@@ -15290,7 +15290,7 @@ function Rp(e, t) {
15290
15290
  return n.getTime() >= s.getTime() ? r + 1 : n.getTime() >= a.getTime() ? r : r - 1;
15291
15291
  }
15292
15292
  function Lo(e) {
15293
- const t = Re(e), n = new Date(
15293
+ const t = De(e), n = new Date(
15294
15294
  Date.UTC(
15295
15295
  t.getFullYear(),
15296
15296
  t.getMonth(),
@@ -15311,7 +15311,7 @@ function cr(e, ...t) {
15311
15311
  return t.map(n);
15312
15312
  }
15313
15313
  function jr(e, t) {
15314
- const n = Re(e, t?.in);
15314
+ const n = De(e, t?.in);
15315
15315
  return n.setHours(0, 0, 0, 0), n;
15316
15316
  }
15317
15317
  function Ea(e, t, n) {
@@ -15336,7 +15336,7 @@ function j2(e, t) {
15336
15336
  let n, r = t?.in;
15337
15337
  return e.forEach((o) => {
15338
15338
  !r && typeof o == "object" && (r = ze.bind(null, o));
15339
- const s = Re(o, r);
15339
+ const s = De(o, r);
15340
15340
  (!n || n < s || isNaN(+s)) && (n = s);
15341
15341
  }), ze(r, n || NaN);
15342
15342
  }
@@ -15344,7 +15344,7 @@ function L2(e, t) {
15344
15344
  let n, r = t?.in;
15345
15345
  return e.forEach((o) => {
15346
15346
  !r && typeof o == "object" && (r = ze.bind(null, o));
15347
- const s = Re(o, r);
15347
+ const s = De(o, r);
15348
15348
  (!n || n > s || isNaN(+s)) && (n = s);
15349
15349
  }), ze(r, n || NaN);
15350
15350
  }
@@ -15360,7 +15360,7 @@ function Dp(e) {
15360
15360
  return e instanceof Date || typeof e == "object" && Object.prototype.toString.call(e) === "[object Date]";
15361
15361
  }
15362
15362
  function Pp(e) {
15363
- return !(!Dp(e) && typeof e != "number" || isNaN(+Re(e)));
15363
+ return !(!Dp(e) && typeof e != "number" || isNaN(+De(e)));
15364
15364
  }
15365
15365
  function Np(e, t, n) {
15366
15366
  const [r, o] = cr(
@@ -15371,7 +15371,7 @@ function Np(e, t, n) {
15371
15371
  return s * 12 + i;
15372
15372
  }
15373
15373
  function W2(e, t) {
15374
- const n = Re(e, t?.in), r = n.getMonth();
15374
+ const n = De(e, t?.in), r = n.getMonth();
15375
15375
  return n.setFullYear(n.getFullYear(), r + 1, 0), n.setHours(23, 59, 59, 999), n;
15376
15376
  }
15377
15377
  function jp(e, t) {
@@ -15390,15 +15390,15 @@ function V2(e, t) {
15390
15390
  return o ? c.reverse() : c;
15391
15391
  }
15392
15392
  function F2(e, t) {
15393
- const n = Re(e, t?.in);
15393
+ const n = De(e, t?.in);
15394
15394
  return n.setDate(1), n.setHours(0, 0, 0, 0), n;
15395
15395
  }
15396
15396
  function H2(e, t) {
15397
- const n = Re(e, t?.in), r = n.getFullYear();
15397
+ const n = De(e, t?.in), r = n.getFullYear();
15398
15398
  return n.setFullYear(r + 1, 0, 0), n.setHours(23, 59, 59, 999), n;
15399
15399
  }
15400
15400
  function Lp(e, t) {
15401
- const n = Re(e, t?.in);
15401
+ const n = De(e, t?.in);
15402
15402
  return n.setFullYear(n.getFullYear(), 0, 1), n.setHours(0, 0, 0, 0), n;
15403
15403
  }
15404
15404
  function B2(e, t) {
@@ -15413,7 +15413,7 @@ function B2(e, t) {
15413
15413
  return o ? c.reverse() : c;
15414
15414
  }
15415
15415
  function Ap(e, t) {
15416
- const n = Nn(), r = t?.weekStartsOn ?? t?.locale?.options?.weekStartsOn ?? n.weekStartsOn ?? n.locale?.options?.weekStartsOn ?? 0, o = Re(e, t?.in), s = o.getDay(), i = (s < r ? -7 : 0) + 6 - (s - r);
15416
+ const n = Nn(), r = t?.weekStartsOn ?? t?.locale?.options?.weekStartsOn ?? n.weekStartsOn ?? n.locale?.options?.weekStartsOn ?? 0, o = De(e, t?.in), s = o.getDay(), i = (s < r ? -7 : 0) + 6 - (s - r);
15417
15417
  return o.setDate(o.getDate() + i), o.setHours(23, 59, 59, 999), o;
15418
15418
  }
15419
15419
  function $2(e, t) {
@@ -15851,15 +15851,15 @@ const ix = /^(\d+)(th|st|nd|rd)?/i, ax = /\d+/i, cx = {
15851
15851
  }
15852
15852
  };
15853
15853
  function bx(e, t) {
15854
- const n = Re(e, t?.in);
15854
+ const n = De(e, t?.in);
15855
15855
  return Ea(n, Lp(n)) + 1;
15856
15856
  }
15857
15857
  function Zo(e, t) {
15858
- const n = Re(e, t?.in), r = +Mn(n) - +D2(n);
15858
+ const n = De(e, t?.in), r = +Mn(n) - +D2(n);
15859
15859
  return Math.round(r / Mp) + 1;
15860
15860
  }
15861
15861
  function Ca(e, t) {
15862
- const n = Re(e, t?.in), r = n.getFullYear(), o = Nn(), s = t?.firstWeekContainsDate ?? t?.locale?.options?.firstWeekContainsDate ?? o.firstWeekContainsDate ?? o.locale?.options?.firstWeekContainsDate ?? 1, i = ze(t?.in || e, 0);
15862
+ const n = De(e, t?.in), r = n.getFullYear(), o = Nn(), s = t?.firstWeekContainsDate ?? t?.locale?.options?.firstWeekContainsDate ?? o.firstWeekContainsDate ?? o.locale?.options?.firstWeekContainsDate ?? 1, i = ze(t?.in || e, 0);
15863
15863
  i.setFullYear(r + 1, 0, s), i.setHours(0, 0, 0, 0);
15864
15864
  const a = tn(i, t), c = ze(t?.in || e, 0);
15865
15865
  c.setFullYear(r, 0, s), c.setHours(0, 0, 0, 0);
@@ -15871,7 +15871,7 @@ function vx(e, t) {
15871
15871
  return s.setFullYear(o, 0, r), s.setHours(0, 0, 0, 0), tn(s, t);
15872
15872
  }
15873
15873
  function Qo(e, t) {
15874
- const n = Re(e, t?.in), r = +tn(n, t) - +vx(n, t);
15874
+ const n = De(e, t?.in), r = +tn(n, t) - +vx(n, t);
15875
15875
  return Math.round(r / Mp) + 1;
15876
15876
  }
15877
15877
  function Ye(e, t) {
@@ -16570,7 +16570,7 @@ function Cx(e, t, n) {
16570
16570
  }
16571
16571
  const Ox = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, _x = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, Ix = /^'([^]*?)'?$/, Sx = /''/g, Mx = /[a-zA-Z]/;
16572
16572
  function En(e, t, n) {
16573
- const r = Nn(), o = n?.locale ?? r.locale ?? wn, s = n?.firstWeekContainsDate ?? n?.locale?.options?.firstWeekContainsDate ?? r.firstWeekContainsDate ?? r.locale?.options?.firstWeekContainsDate ?? 1, i = n?.weekStartsOn ?? n?.locale?.options?.weekStartsOn ?? r.weekStartsOn ?? r.locale?.options?.weekStartsOn ?? 0, a = Re(e, n?.in);
16573
+ const r = Nn(), o = n?.locale ?? r.locale ?? wn, s = n?.firstWeekContainsDate ?? n?.locale?.options?.firstWeekContainsDate ?? r.firstWeekContainsDate ?? r.locale?.options?.firstWeekContainsDate ?? 1, i = n?.weekStartsOn ?? n?.locale?.options?.weekStartsOn ?? r.weekStartsOn ?? r.locale?.options?.weekStartsOn ?? 0, a = De(e, n?.in);
16574
16574
  if (!Pp(a))
16575
16575
  throw new RangeError("Invalid time value");
16576
16576
  let c = t.match(_x).map((d) => {
@@ -16613,27 +16613,27 @@ function Tx(e) {
16613
16613
  return t ? t[1].replace(Sx, "'") : e;
16614
16614
  }
16615
16615
  function Rx(e, t) {
16616
- const n = Re(e, t?.in), r = n.getFullYear(), o = n.getMonth(), s = ze(n, 0);
16616
+ const n = De(e, t?.in), r = n.getFullYear(), o = n.getMonth(), s = ze(n, 0);
16617
16617
  return s.setFullYear(r, o + 1, 0), s.setHours(0, 0, 0, 0), s.getDate();
16618
16618
  }
16619
16619
  function Dx() {
16620
16620
  return Object.assign({}, Nn());
16621
16621
  }
16622
16622
  function Px(e, t) {
16623
- const n = Re(e, t?.in).getDay();
16623
+ const n = De(e, t?.in).getDay();
16624
16624
  return n === 0 ? 7 : n;
16625
16625
  }
16626
16626
  function Nx(e, t) {
16627
- return Re(e, t?.in).getMonth();
16627
+ return De(e, t?.in).getMonth();
16628
16628
  }
16629
16629
  function jx(e, t) {
16630
- return Re(e, t?.in).getFullYear();
16630
+ return De(e, t?.in).getFullYear();
16631
16631
  }
16632
16632
  function Lx(e, t) {
16633
- return +Re(e) > +Re(t);
16633
+ return +De(e) > +De(t);
16634
16634
  }
16635
16635
  function Ax(e, t) {
16636
- return +Re(e) < +Re(t);
16636
+ return +De(e) < +De(t);
16637
16637
  }
16638
16638
  function Wx(e, t) {
16639
16639
  const n = Vx(t) ? new t(0) : ze(t, 0);
@@ -17241,8 +17241,8 @@ class Zx extends je {
17241
17241
  ];
17242
17242
  }
17243
17243
  function Qx(e, t, n) {
17244
- const r = Re(e, n?.in), o = Qo(r, n) - t;
17245
- return r.setDate(r.getDate() - o * 7), Re(r, n?.in);
17244
+ const r = De(e, n?.in), o = Qo(r, n) - t;
17245
+ return r.setDate(r.getDate() - o * 7), De(r, n?.in);
17246
17246
  }
17247
17247
  class Jx extends je {
17248
17248
  priority = 100;
@@ -17279,7 +17279,7 @@ class Jx extends je {
17279
17279
  ];
17280
17280
  }
17281
17281
  function ek(e, t, n) {
17282
- const r = Re(e, n?.in), o = Zo(r, n) - t;
17282
+ const r = De(e, n?.in), o = Zo(r, n) - t;
17283
17283
  return r.setDate(r.getDate() - o * 7), r;
17284
17284
  }
17285
17285
  class tk extends je {
@@ -17406,7 +17406,7 @@ class sk extends je {
17406
17406
  ];
17407
17407
  }
17408
17408
  function _a(e, t, n) {
17409
- const r = Nn(), o = n?.weekStartsOn ?? n?.locale?.options?.weekStartsOn ?? r.weekStartsOn ?? r.locale?.options?.weekStartsOn ?? 0, s = Re(e, n?.in), i = s.getDay(), c = (t % 7 + 7) % 7, l = 7 - o, d = t < 0 || t > 6 ? t - (i + l) % 7 : (c + l) % 7 - (i + l) % 7;
17409
+ const r = Nn(), o = n?.weekStartsOn ?? n?.locale?.options?.weekStartsOn ?? r.weekStartsOn ?? r.locale?.options?.weekStartsOn ?? 0, s = De(e, n?.in), i = s.getDay(), c = (t % 7 + 7) % 7, l = 7 - o, d = t < 0 || t > 6 ? t - (i + l) % 7 : (c + l) % 7 - (i + l) % 7;
17410
17410
  return Xo(s, d, n);
17411
17411
  }
17412
17412
  class ik extends je {
@@ -17584,7 +17584,7 @@ class ck extends je {
17584
17584
  ];
17585
17585
  }
17586
17586
  function lk(e, t, n) {
17587
- const r = Re(e, n?.in), o = Px(r, n), s = t - o;
17587
+ const r = De(e, n?.in), o = Px(r, n), s = t - o;
17588
17588
  return Xo(r, s, n);
17589
17589
  }
17590
17590
  class uk extends je {
@@ -18051,7 +18051,7 @@ const Ok = {
18051
18051
  function Dk(e, t, n, r) {
18052
18052
  const o = () => ze(n, NaN), s = Dx(), i = s.locale ?? wn, a = s.firstWeekContainsDate ?? s.locale?.options?.firstWeekContainsDate ?? 1, c = s.weekStartsOn ?? s.locale?.options?.weekStartsOn ?? 0;
18053
18053
  if (!t)
18054
- return e ? o() : Re(n, r?.in);
18054
+ return e ? o() : De(n, r?.in);
18055
18055
  const l = {
18056
18056
  firstWeekContainsDate: a,
18057
18057
  weekStartsOn: c,
@@ -18107,7 +18107,7 @@ function Dk(e, t, n, r) {
18107
18107
  const g = d.map((y) => y.priority).sort((y, k) => k - y).filter((y, k, m) => m.indexOf(y) === k).map(
18108
18108
  (y) => d.filter((k) => k.priority === y).sort((k, m) => m.subPriority - k.subPriority)
18109
18109
  ).map((y) => y[0]);
18110
- let b = Re(n, r?.in);
18110
+ let b = De(n, r?.in);
18111
18111
  if (isNaN(+b)) return o();
18112
18112
  const v = {};
18113
18113
  for (const y of g) {
@@ -18138,13 +18138,13 @@ function jk(e, t, n) {
18138
18138
  return r.getFullYear() === o.getFullYear();
18139
18139
  }
18140
18140
  function Lk(e, t, n) {
18141
- const r = Re(e, n?.in), o = r.getFullYear(), s = r.getDate(), i = ze(e, 0);
18141
+ const r = De(e, n?.in), o = r.getFullYear(), s = r.getDate(), i = ze(e, 0);
18142
18142
  i.setFullYear(o, t, 15), i.setHours(0, 0, 0, 0);
18143
18143
  const a = Rx(i);
18144
18144
  return r.setMonth(t, Math.min(s, a)), r;
18145
18145
  }
18146
18146
  function Ak(e, t, n) {
18147
- const r = Re(e, n?.in);
18147
+ const r = De(e, n?.in);
18148
18148
  return isNaN(+r) ? ze(e, NaN) : (r.setFullYear(t), r);
18149
18149
  }
18150
18150
  const bl = 5, Wk = 4;
@@ -18914,7 +18914,7 @@ const Br = (e) => e instanceof HTMLElement ? e : null, Is = (e) => [
18914
18914
  ...e.querySelectorAll("[data-animated-month]") ?? []
18915
18915
  ], zE = (e) => Br(e.querySelector("[data-animated-month]")), Ss = (e) => Br(e.querySelector("[data-animated-caption]")), Ms = (e) => Br(e.querySelector("[data-animated-weeks]")), KE = (e) => Br(e.querySelector("[data-animated-nav]")), qE = (e) => Br(e.querySelector("[data-animated-weekdays]"));
18916
18916
  function UE(e, t, { classNames: n, months: r, focused: o, dateLib: s }) {
18917
- const i = De(null), a = De(r), c = De(!1);
18917
+ const i = Re(null), a = Re(r), c = Re(!1);
18918
18918
  fn(() => {
18919
18919
  const l = a.current;
18920
18920
  if (a.current = r, !t || !e.current || // safety check because the ref can be set to anything by consumers
@@ -19404,7 +19404,7 @@ function hC(e) {
19404
19404
  }, [i, _]), { className: Oe, style: Le } = at(() => ({
19405
19405
  className: [c[pe.Root], t.className].filter(Boolean).join(" "),
19406
19406
  style: { ...E?.[pe.Root], ...t.style }
19407
- }), [c, t.className, t.style, E]), st = CE(t), qe = De(null);
19407
+ }), [c, t.className, t.style, E]), st = CE(t), qe = Re(null);
19408
19408
  UE(qe, !!t.animate, {
19409
19409
  classNames: c,
19410
19410
  months: B,
@@ -20007,7 +20007,7 @@ var Eh = (function(e) {
20007
20007
  })();
20008
20008
  Tl = Eh, Object.defineProperty(Tl.prototype, Symbol.toStringTag, { writable: !1, enumerable: !1, configurable: !0, value: "Mask" });
20009
20009
  function RC() {
20010
- var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, t = e.mask, n = e.replacement, r = e.showMask, o = e.separate, s = e.track, i = e.modify, a = De(null), c = De({ mask: t, replacement: n, showMask: r, separate: o, track: s, modify: i });
20010
+ var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, t = e.mask, n = e.replacement, r = e.showMask, o = e.separate, s = e.track, i = e.modify, a = Re(null), c = Re({ mask: t, replacement: n, showMask: r, separate: o, track: s, modify: i });
20011
20011
  return c.current.mask = t, c.current.replacement = n, c.current.showMask = r, c.current.separate = o, c.current.track = s, c.current.modify = i, at((function() {
20012
20012
  return EC(a, new Eh(c.current));
20013
20013
  }), []);
@@ -20110,7 +20110,7 @@ const Mr = "_", er = {
20110
20110
  const h = Tn(), g = typeof e == "string" ? e : h, b = typeof t == "string" ? t : void 0, v = at(
20111
20111
  () => AC(o.code),
20112
20112
  [o.code]
20113
- ), [y, k] = Ne(!1), [m, x] = Ne(""), [w, f] = Ne(() => r ?? /* @__PURE__ */ new Date()), E = De(
20113
+ ), [y, k] = Ne(!1), [m, x] = Ne(""), [w, f] = Ne(() => r ?? /* @__PURE__ */ new Date()), E = Re(
20114
20114
  null
20115
20115
  );
20116
20116
  Ue(() => {
@@ -20578,28 +20578,46 @@ const $C = ({
20578
20578
  children: e,
20579
20579
  content: t,
20580
20580
  placement: n = "top",
20581
- className: r
20581
+ openDelay: r = 500,
20582
+ className: o
20582
20583
  }) => {
20583
- const [o, s] = Ne(!1);
20584
- return /* @__PURE__ */ C.jsx(
20584
+ const [s, i] = Ne(!1), a = Re(null), c = Ce(() => {
20585
+ a.current && (clearTimeout(a.current), a.current = null);
20586
+ }, []), l = () => {
20587
+ if (c(), r <= 0) {
20588
+ i(!0);
20589
+ return;
20590
+ }
20591
+ a.current = setTimeout(() => {
20592
+ i(!0), a.current = null;
20593
+ }, r);
20594
+ }, d = () => {
20595
+ c(), i(!0);
20596
+ }, u = () => {
20597
+ c(), i(!1);
20598
+ };
20599
+ return Ue(() => () => c(), [c]), /* @__PURE__ */ C.jsx(
20585
20600
  Go,
20586
20601
  {
20587
20602
  content: t,
20588
- isOpen: o,
20603
+ isOpen: s,
20604
+ onClose: u,
20589
20605
  placement: n,
20590
20606
  role: "tooltip",
20591
- closeOnClickOutside: !1,
20592
- closeOnEscape: !1,
20593
- className: G("px-2 py-1 text-xs", r),
20607
+ closeOnClickOutside: !0,
20608
+ closeOnEscape: !0,
20609
+ className: G("pointer-events-none px-2 py-1 text-xs", o),
20594
20610
  triggerClassName: "inline-flex h-fit w-fit",
20595
20611
  children: /* @__PURE__ */ C.jsx(
20596
20612
  "span",
20597
20613
  {
20598
20614
  className: "inline-flex h-fit w-fit",
20599
- onMouseEnter: () => s(!0),
20600
- onMouseLeave: () => s(!1),
20601
- onFocus: () => s(!0),
20602
- onBlur: () => s(!1),
20615
+ onPointerDown: u,
20616
+ onClick: u,
20617
+ onMouseEnter: l,
20618
+ onMouseLeave: u,
20619
+ onFocus: d,
20620
+ onBlur: u,
20603
20621
  children: e
20604
20622
  }
20605
20623
  )
@@ -20709,7 +20727,7 @@ const $C = ({
20709
20727
  }) => {
20710
20728
  const [f, E] = Ne(
20711
20729
  e ? Mt(e) : ""
20712
- ), I = De(null), O = De(!1);
20730
+ ), I = Re(null), O = Re(!1);
20713
20731
  Ue(() => {
20714
20732
  if (!k) return;
20715
20733
  const V = setTimeout(() => {
@@ -21294,7 +21312,7 @@ const nO = ({
21294
21312
  }) => {
21295
21313
  const i = Al.toArray(e).filter(Wl), a = i.map((E) => E.props.name).filter(Boolean), c = a[0], l = t && a.includes(t), [d, u] = Ne(
21296
21314
  l ? t : c || ""
21297
- ), h = De(null), [g, b] = Ne(0), [v, y] = Ne(0), [k, m] = Ne(!0), x = i.find((E) => E.props.name === d);
21315
+ ), h = Re(null), [g, b] = Ne(0), [v, y] = Ne(0), [k, m] = Ne(!0), x = i.find((E) => E.props.name === d);
21298
21316
  fn(() => {
21299
21317
  if (!h.current) return;
21300
21318
  const E = h.current.querySelector(