@epilot/volt-ui 1.1.28 → 1.1.30

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.es.js CHANGED
@@ -291,7 +291,7 @@ const hf = (e, o) => {
291
291
  }, Lf = [], fe = (e) => {
292
292
  const o = (t) => t[e] || Lf;
293
293
  return o.isThemeGetter = !0, o;
294
- }, ci = /^\[(?:(\w[\w-]*):)?(.+)\]$/i, ui = /^\((?:(\w[\w-]*):)?(.+)\)$/i, Vf = /^\d+\/\d+$/, zf = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, Bf = /\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/, qf = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/, Hf = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, Gf = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, Ht = (e) => Vf.test(e), le = (e) => !!e && !Number.isNaN(Number(e)), dt = (e) => !!e && Number.isInteger(Number(e)), mr = (e) => e.endsWith("%") && le(e.slice(0, -1)), at = (e) => zf.test(e), Wf = () => !0, jf = (e) => (
294
+ }, ci = /^\[(?:(\w[\w-]*):)?(.+)\]$/i, ui = /^\((?:(\w[\w-]*):)?(.+)\)$/i, Vf = /^\d+\/\d+$/, zf = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, Bf = /\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/, qf = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/, Hf = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, Gf = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, Ht = (e) => Vf.test(e), le = (e) => !!e && !Number.isNaN(Number(e)), dt = (e) => !!e && Number.isInteger(Number(e)), mr = (e) => e.endsWith("%") && le(e.slice(0, -1)), rt = (e) => zf.test(e), Wf = () => !0, jf = (e) => (
295
295
  // `colorFunctionRegex` check is necessary because color functions can have percentages in them which which would be incorrectly classified as lengths.
296
296
  // For example, `hsl(0 0% 0%)` would be classified as a length without this check.
297
297
  // I could also use lookbehind assertion in `lengthUnitRegex` but that isn't supported widely enough.
@@ -350,22 +350,22 @@ const hf = (e, o) => {
350
350
  theme: {
351
351
  animate: ["spin", "ping", "pulse", "bounce"],
352
352
  aspect: ["video"],
353
- blur: [at],
354
- breakpoint: [at],
353
+ blur: [rt],
354
+ breakpoint: [rt],
355
355
  color: [Wf],
356
- container: [at],
357
- "drop-shadow": [at],
356
+ container: [rt],
357
+ "drop-shadow": [rt],
358
358
  ease: ["in", "out", "in-out"],
359
359
  font: [Zf],
360
360
  "font-weight": ["thin", "extralight", "light", "normal", "medium", "semibold", "bold", "extrabold", "black"],
361
- "inset-shadow": [at],
361
+ "inset-shadow": [rt],
362
362
  leading: ["none", "tight", "snug", "normal", "relaxed", "loose"],
363
363
  perspective: ["dramatic", "near", "normal", "midrange", "distant", "none"],
364
- radius: [at],
365
- shadow: [at],
364
+ radius: [rt],
365
+ shadow: [rt],
366
366
  spacing: ["px", le],
367
- text: [at],
368
- "text-shadow": [at],
367
+ text: [rt],
368
+ "text-shadow": [rt],
369
369
  tracking: ["tighter", "tight", "normal", "wide", "wider", "widest"]
370
370
  },
371
371
  classGroups: {
@@ -2929,7 +2929,7 @@ const ls = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, cs = ri, F
2929
2929
  destructive: !1
2930
2930
  }
2931
2931
  }
2932
- ), Qe = Po(
2932
+ ), st = Po(
2933
2933
  ({ variant: e, size: o, asChild: t = !1, shape: n, destructive: r, className: a, ...s }, i) => /* @__PURE__ */ u(
2934
2934
  t ? Tn : "button",
2935
2935
  {
@@ -2942,7 +2942,7 @@ const ls = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, cs = ri, F
2942
2942
  }
2943
2943
  )
2944
2944
  );
2945
- Qe.displayName = "Button";
2945
+ st.displayName = "Button";
2946
2946
  var fp = [
2947
2947
  "a",
2948
2948
  "button",
@@ -5276,7 +5276,7 @@ const Lv = (e) => /* @__PURE__ */ u(
5276
5276
  className: R("volt-text-gray-light", e),
5277
5277
  ...o
5278
5278
  }
5279
- ), Kv = ["top", "right", "bottom", "left"], ht = Math.min, Ne = Math.max, mn = Math.round, tn = Math.floor, et = (e) => ({
5279
+ ), Kv = ["top", "right", "bottom", "left"], ht = Math.min, Ne = Math.max, mn = Math.round, tn = Math.floor, Je = (e) => ({
5280
5280
  x: e,
5281
5281
  y: e
5282
5282
  }), Zv = {
@@ -5307,11 +5307,11 @@ function xa(e) {
5307
5307
  return e === "y" ? "height" : "width";
5308
5308
  }
5309
5309
  const Xv = /* @__PURE__ */ new Set(["top", "bottom"]);
5310
- function Je(e) {
5310
+ function Qe(e) {
5311
5311
  return Xv.has(lt(e)) ? "y" : "x";
5312
5312
  }
5313
5313
  function Ca(e) {
5314
- return ya(Je(e));
5314
+ return ya(Qe(e));
5315
5315
  }
5316
5316
  function Qv(e, o, t) {
5317
5317
  t === void 0 && (t = !1);
@@ -5387,7 +5387,7 @@ function Is(e, o, t) {
5387
5387
  reference: n,
5388
5388
  floating: r
5389
5389
  } = e;
5390
- const a = Je(o), s = Ca(o), i = xa(s), l = lt(o), c = a === "y", p = n.x + n.width / 2 - r.width / 2, d = n.y + n.height / 2 - r.height / 2, v = n[i] / 2 - r[i] / 2;
5390
+ const a = Qe(o), s = Ca(o), i = xa(s), l = lt(o), c = a === "y", p = n.x + n.width / 2 - r.width / 2, d = n.y + n.height / 2 - r.height / 2, v = n[i] / 2 - r[i] / 2;
5391
5391
  let g;
5392
5392
  switch (l) {
5393
5393
  case "top":
@@ -5597,7 +5597,7 @@ const sm = (e) => ({
5597
5597
  } = it(e, o);
5598
5598
  if ((t = a.arrow) != null && t.alignmentOffset)
5599
5599
  return {};
5600
- const b = lt(r), y = Je(i), x = lt(i) === i, C = await (l.isRTL == null ? void 0 : l.isRTL(c.floating)), E = v || (x || !m ? [hn(i)] : Jv(i)), P = h !== "none";
5600
+ const b = lt(r), y = Qe(i), x = lt(i) === i, C = await (l.isRTL == null ? void 0 : l.isRTL(c.floating)), E = v || (x || !m ? [hn(i)] : Jv(i)), P = h !== "none";
5601
5601
  !v && P && E.push(...nm(i, m, h, C));
5602
5602
  const S = [i, ...E], _ = await Co(o, w), V = [];
5603
5603
  let B = ((n = a.flip) == null ? void 0 : n.overflows) || [];
@@ -5611,9 +5611,9 @@ const sm = (e) => ({
5611
5611
  }], !V.every((Z) => Z <= 0)) {
5612
5612
  var j, K;
5613
5613
  const Z = (((j = a.flip) == null ? void 0 : j.index) || 0) + 1, oe = S[Z];
5614
- if (oe && (!(d === "alignment" ? y !== Je(oe) : !1) || // We leave the current main axis only if every placement on that axis
5614
+ if (oe && (!(d === "alignment" ? y !== Qe(oe) : !1) || // We leave the current main axis only if every placement on that axis
5615
5615
  // overflows the main axis.
5616
- B.every((T) => Je(T.placement) === y ? T.overflows[0] > 0 : !0)))
5616
+ B.every((T) => Qe(T.placement) === y ? T.overflows[0] > 0 : !0)))
5617
5617
  return {
5618
5618
  data: {
5619
5619
  index: Z,
@@ -5630,7 +5630,7 @@ const sm = (e) => ({
5630
5630
  var U;
5631
5631
  const q = (U = B.filter((T) => {
5632
5632
  if (P) {
5633
- const O = Je(T.placement);
5633
+ const O = Qe(T.placement);
5634
5634
  return O === y || // Create a bias to the `y` side axis due to horizontal
5635
5635
  // reading directions favoring greater width.
5636
5636
  O === "y";
@@ -5713,7 +5713,7 @@ async function cm(e, o) {
5713
5713
  placement: t,
5714
5714
  platform: n,
5715
5715
  elements: r
5716
- } = e, a = await (n.isRTL == null ? void 0 : n.isRTL(r.floating)), s = lt(t), i = so(t), l = Je(t) === "y", c = ll.has(s) ? -1 : 1, p = a && l ? -1 : 1, d = it(o, e);
5716
+ } = e, a = await (n.isRTL == null ? void 0 : n.isRTL(r.floating)), s = lt(t), i = so(t), l = Qe(t) === "y", c = ll.has(s) ? -1 : 1, p = a && l ? -1 : 1, d = it(o, e);
5717
5717
  let {
5718
5718
  mainAxis: v,
5719
5719
  crossAxis: g,
@@ -5785,7 +5785,7 @@ const um = function(e) {
5785
5785
  } = it(e, o), c = {
5786
5786
  x: t,
5787
5787
  y: n
5788
- }, p = await Co(o, l), d = Je(lt(r)), v = ya(d);
5788
+ }, p = await Co(o, l), d = Qe(lt(r)), v = ya(d);
5789
5789
  let g = c[v], h = c[d];
5790
5790
  if (a) {
5791
5791
  const w = v === "y" ? "top" : "left", b = v === "y" ? "bottom" : "right", y = g + p[w], x = g - p[b];
@@ -5830,7 +5830,7 @@ const um = function(e) {
5830
5830
  } = it(e, o), p = {
5831
5831
  x: t,
5832
5832
  y: n
5833
- }, d = Je(r), v = ya(d);
5833
+ }, d = Qe(r), v = ya(d);
5834
5834
  let g = p[v], h = p[d];
5835
5835
  const m = it(i, o), w = typeof m == "number" ? {
5836
5836
  mainAxis: m,
@@ -5870,7 +5870,7 @@ const um = function(e) {
5870
5870
  apply: l = () => {
5871
5871
  },
5872
5872
  ...c
5873
- } = it(e, o), p = await Co(o, c), d = lt(r), v = so(r), g = Je(r) === "y", {
5873
+ } = it(e, o), p = await Co(o, c), d = lt(r), v = so(r), g = Qe(r) === "y", {
5874
5874
  width: h,
5875
5875
  height: m
5876
5876
  } = a.floating;
@@ -5906,7 +5906,7 @@ function De(e) {
5906
5906
  var o;
5907
5907
  return (e == null || (o = e.ownerDocument) == null ? void 0 : o.defaultView) || window;
5908
5908
  }
5909
- function ot(e) {
5909
+ function tt(e) {
5910
5910
  var o;
5911
5911
  return (o = (cl(e) ? e.ownerDocument : e.document) || window.document) == null ? void 0 : o.documentElement;
5912
5912
  }
@@ -5916,7 +5916,7 @@ function cl(e) {
5916
5916
  function We(e) {
5917
5917
  return Fn() ? e instanceof Element || e instanceof De(e).Element : !1;
5918
5918
  }
5919
- function tt(e) {
5919
+ function et(e) {
5920
5920
  return Fn() ? e instanceof HTMLElement || e instanceof De(e).HTMLElement : !1;
5921
5921
  }
5922
5922
  function As(e) {
@@ -5953,7 +5953,7 @@ function Sa(e) {
5953
5953
  }
5954
5954
  function xm(e) {
5955
5955
  let o = wt(e);
5956
- for (; tt(o) && !eo(o); ) {
5956
+ for (; et(o) && !eo(o); ) {
5957
5957
  if (Sa(o))
5958
5958
  return o;
5959
5959
  if (Ln(o))
@@ -5989,13 +5989,13 @@ function wt(e) {
5989
5989
  e.assignedSlot || // DOM Element detected.
5990
5990
  e.parentNode || // ShadowRoot detected.
5991
5991
  As(e) && e.host || // Fallback.
5992
- ot(e)
5992
+ tt(e)
5993
5993
  );
5994
5994
  return As(o) ? o.host : o;
5995
5995
  }
5996
5996
  function ul(e) {
5997
5997
  const o = wt(e);
5998
- return eo(o) ? e.ownerDocument ? e.ownerDocument.body : e.body : tt(o) && Do(o) ? o : ul(o);
5998
+ return eo(o) ? e.ownerDocument ? e.ownerDocument.body : e.body : et(o) && Do(o) ? o : ul(o);
5999
5999
  }
6000
6000
  function So(e, o, t) {
6001
6001
  var n;
@@ -6013,7 +6013,7 @@ function jr(e) {
6013
6013
  function dl(e) {
6014
6014
  const o = je(e);
6015
6015
  let t = parseFloat(o.width) || 0, n = parseFloat(o.height) || 0;
6016
- const r = tt(e), a = r ? e.offsetWidth : t, s = r ? e.offsetHeight : n, i = mn(t) !== a || mn(n) !== s;
6016
+ const r = et(e), a = r ? e.offsetWidth : t, s = r ? e.offsetHeight : n, i = mn(t) !== a || mn(n) !== s;
6017
6017
  return i && (t = a, n = s), {
6018
6018
  width: t,
6019
6019
  height: n,
@@ -6025,8 +6025,8 @@ function Ea(e) {
6025
6025
  }
6026
6026
  function Qt(e) {
6027
6027
  const o = Ea(e);
6028
- if (!tt(o))
6029
- return et(1);
6028
+ if (!et(o))
6029
+ return Je(1);
6030
6030
  const t = o.getBoundingClientRect(), {
6031
6031
  width: n,
6032
6032
  height: r,
@@ -6038,7 +6038,7 @@ function Qt(e) {
6038
6038
  y: i
6039
6039
  };
6040
6040
  }
6041
- const Sm = /* @__PURE__ */ et(0);
6041
+ const Sm = /* @__PURE__ */ Je(0);
6042
6042
  function fl(e) {
6043
6043
  const o = De(e);
6044
6044
  return !Ra() || !o.visualViewport ? Sm : {
@@ -6052,9 +6052,9 @@ function Rm(e, o, t) {
6052
6052
  function kt(e, o, t, n) {
6053
6053
  o === void 0 && (o = !1), t === void 0 && (t = !1);
6054
6054
  const r = e.getBoundingClientRect(), a = Ea(e);
6055
- let s = et(1);
6055
+ let s = Je(1);
6056
6056
  o && (n ? We(n) && (s = Qt(n)) : s = Qt(e));
6057
- const i = Rm(a, t, n) ? fl(a) : et(0);
6057
+ const i = Rm(a, t, n) ? fl(a) : Je(0);
6058
6058
  let l = (r.left + i.x) / s.x, c = (r.top + i.y) / s.y, p = r.width / s.x, d = r.height / s.y;
6059
6059
  if (a) {
6060
6060
  const v = De(a), g = n && We(n) ? De(n) : n;
@@ -6073,7 +6073,7 @@ function kt(e, o, t, n) {
6073
6073
  }
6074
6074
  function zn(e, o) {
6075
6075
  const t = Vn(e).scrollLeft;
6076
- return o ? o.left + t : kt(ot(e)).left + t;
6076
+ return o ? o.left + t : kt(tt(e)).left + t;
6077
6077
  }
6078
6078
  function pl(e, o) {
6079
6079
  const t = e.getBoundingClientRect(), n = t.left + o.scrollLeft - zn(e, t), r = t.top + o.scrollTop;
@@ -6089,19 +6089,19 @@ function Em(e) {
6089
6089
  offsetParent: n,
6090
6090
  strategy: r
6091
6091
  } = e;
6092
- const a = r === "fixed", s = ot(n), i = o ? Ln(o.floating) : !1;
6092
+ const a = r === "fixed", s = tt(n), i = o ? Ln(o.floating) : !1;
6093
6093
  if (n === s || i && a)
6094
6094
  return t;
6095
6095
  let l = {
6096
6096
  scrollLeft: 0,
6097
6097
  scrollTop: 0
6098
- }, c = et(1);
6099
- const p = et(0), d = tt(n);
6100
- if ((d || !d && !a) && ((io(n) !== "body" || Do(s)) && (l = Vn(n)), tt(n))) {
6098
+ }, c = Je(1);
6099
+ const p = Je(0), d = et(n);
6100
+ if ((d || !d && !a) && ((io(n) !== "body" || Do(s)) && (l = Vn(n)), et(n))) {
6101
6101
  const g = kt(n);
6102
6102
  c = Qt(n), p.x = g.x + n.clientLeft, p.y = g.y + n.clientTop;
6103
6103
  }
6104
- const v = s && !d && !a ? pl(s, l) : et(0);
6104
+ const v = s && !d && !a ? pl(s, l) : Je(0);
6105
6105
  return {
6106
6106
  width: t.width * c.x,
6107
6107
  height: t.height * c.y,
@@ -6113,7 +6113,7 @@ function _m(e) {
6113
6113
  return Array.from(e.getClientRects());
6114
6114
  }
6115
6115
  function Pm(e) {
6116
- const o = ot(e), t = Vn(e), n = e.ownerDocument.body, r = Ne(o.scrollWidth, o.clientWidth, n.scrollWidth, n.clientWidth), a = Ne(o.scrollHeight, o.clientHeight, n.scrollHeight, n.clientHeight);
6116
+ const o = tt(e), t = Vn(e), n = e.ownerDocument.body, r = Ne(o.scrollWidth, o.clientWidth, n.scrollWidth, n.clientWidth), a = Ne(o.scrollHeight, o.clientHeight, n.scrollHeight, n.clientHeight);
6117
6117
  let s = -t.scrollLeft + zn(e);
6118
6118
  const i = -t.scrollTop;
6119
6119
  return je(n).direction === "rtl" && (s += Ne(o.clientWidth, n.clientWidth) - r), {
@@ -6125,7 +6125,7 @@ function Pm(e) {
6125
6125
  }
6126
6126
  const Ns = 25;
6127
6127
  function Im(e, o) {
6128
- const t = De(e), n = ot(e), r = t.visualViewport;
6128
+ const t = De(e), n = tt(e), r = t.visualViewport;
6129
6129
  let a = n.clientWidth, s = n.clientHeight, i = 0, l = 0;
6130
6130
  if (r) {
6131
6131
  a = r.width, s = r.height;
@@ -6146,7 +6146,7 @@ function Im(e, o) {
6146
6146
  }
6147
6147
  const Tm = /* @__PURE__ */ new Set(["absolute", "fixed"]);
6148
6148
  function Mm(e, o) {
6149
- const t = kt(e, !0, o === "fixed"), n = t.top + e.clientTop, r = t.left + e.clientLeft, a = tt(e) ? Qt(e) : et(1), s = e.clientWidth * a.x, i = e.clientHeight * a.y, l = r * a.x, c = n * a.y;
6149
+ const t = kt(e, !0, o === "fixed"), n = t.top + e.clientTop, r = t.left + e.clientLeft, a = et(e) ? Qt(e) : Je(1), s = e.clientWidth * a.x, i = e.clientHeight * a.y, l = r * a.x, c = n * a.y;
6150
6150
  return {
6151
6151
  width: s,
6152
6152
  height: i,
@@ -6159,7 +6159,7 @@ function Ds(e, o, t) {
6159
6159
  if (o === "viewport")
6160
6160
  n = Im(e, t);
6161
6161
  else if (o === "document")
6162
- n = Pm(ot(e));
6162
+ n = Pm(tt(e));
6163
6163
  else if (We(o))
6164
6164
  n = Mm(o, t);
6165
6165
  else {
@@ -6219,12 +6219,12 @@ function Dm(e) {
6219
6219
  };
6220
6220
  }
6221
6221
  function km(e, o, t) {
6222
- const n = tt(o), r = ot(o), a = t === "fixed", s = kt(e, !0, a, o);
6222
+ const n = et(o), r = tt(o), a = t === "fixed", s = kt(e, !0, a, o);
6223
6223
  let i = {
6224
6224
  scrollLeft: 0,
6225
6225
  scrollTop: 0
6226
6226
  };
6227
- const l = et(0);
6227
+ const l = Je(0);
6228
6228
  function c() {
6229
6229
  l.x = zn(r);
6230
6230
  }
@@ -6234,7 +6234,7 @@ function km(e, o, t) {
6234
6234
  l.x = g.x + o.clientLeft, l.y = g.y + o.clientTop;
6235
6235
  } else r && c();
6236
6236
  a && !n && r && c();
6237
- const p = r && !n && !a ? pl(r, i) : et(0), d = s.left + i.scrollLeft - l.x - p.x, v = s.top + i.scrollTop - l.y - p.y;
6237
+ const p = r && !n && !a ? pl(r, i) : Je(0), d = s.left + i.scrollLeft - l.x - p.x, v = s.top + i.scrollTop - l.y - p.y;
6238
6238
  return {
6239
6239
  x: d,
6240
6240
  y: v,
@@ -6246,18 +6246,18 @@ function Ir(e) {
6246
6246
  return je(e).position === "static";
6247
6247
  }
6248
6248
  function ks(e, o) {
6249
- if (!tt(e) || je(e).position === "fixed")
6249
+ if (!et(e) || je(e).position === "fixed")
6250
6250
  return null;
6251
6251
  if (o)
6252
6252
  return o(e);
6253
6253
  let t = e.offsetParent;
6254
- return ot(e) === t && (t = t.ownerDocument.body), t;
6254
+ return tt(e) === t && (t = t.ownerDocument.body), t;
6255
6255
  }
6256
6256
  function vl(e, o) {
6257
6257
  const t = De(e);
6258
6258
  if (Ln(e))
6259
6259
  return t;
6260
- if (!tt(e)) {
6260
+ if (!et(e)) {
6261
6261
  let r = wt(e);
6262
6262
  for (; r && !eo(r); ) {
6263
6263
  if (We(r) && !Ir(r))
@@ -6288,7 +6288,7 @@ function $m(e) {
6288
6288
  }
6289
6289
  const Fm = {
6290
6290
  convertOffsetParentRelativeRectToViewportRelativeRect: Em,
6291
- getDocumentElement: ot,
6291
+ getDocumentElement: tt,
6292
6292
  getClippingRect: Nm,
6293
6293
  getOffsetParent: vl,
6294
6294
  getElementRects: Om,
@@ -6303,7 +6303,7 @@ function ml(e, o) {
6303
6303
  }
6304
6304
  function Lm(e, o) {
6305
6305
  let t = null, n;
6306
- const r = ot(e);
6306
+ const r = tt(e);
6307
6307
  function a() {
6308
6308
  var i;
6309
6309
  clearTimeout(n), (i = t) == null || i.disconnect(), t = null;
@@ -6684,9 +6684,9 @@ var Pa = "PopperContent", [ih, lh] = bl(Pa), Rl = f.forwardRef(
6684
6684
  l && eh({ ...U }),
6685
6685
  th({
6686
6686
  ...U,
6687
- apply: ({ elements: ge, rects: we, availableWidth: nt, availableHeight: Ze }) => {
6687
+ apply: ({ elements: ge, rects: we, availableWidth: ot, availableHeight: Ze }) => {
6688
6688
  const { width: Te, height: Lt } = we.reference, be = ge.floating.style;
6689
- be.setProperty("--radix-popper-available-width", `${nt}px`), be.setProperty("--radix-popper-available-height", `${Ze}px`), be.setProperty("--radix-popper-anchor-width", `${Te}px`), be.setProperty("--radix-popper-anchor-height", `${Lt}px`);
6689
+ be.setProperty("--radix-popper-available-width", `${ot}px`), be.setProperty("--radix-popper-available-height", `${Ze}px`), be.setProperty("--radix-popper-anchor-width", `${Te}px`), be.setProperty("--radix-popper-anchor-height", `${Lt}px`);
6690
6690
  }
6691
6691
  }),
6692
6692
  C && nh({ element: C, padding: i }),
@@ -7850,20 +7850,20 @@ var i0 = "SelectItemAlignedPosition", Ql = f.forwardRef((e, o) => {
7850
7850
  if (a.trigger && a.valueNode && i && c && m && w && b) {
7851
7851
  const S = a.trigger.getBoundingClientRect(), _ = c.getBoundingClientRect(), V = a.valueNode.getBoundingClientRect(), B = b.getBoundingClientRect();
7852
7852
  if (a.dir !== "rtl") {
7853
- const ie = B.left - _.left, ae = V.left - ie, ge = S.left - ae, we = S.width + ge, nt = Math.max(we, _.width), Ze = window.innerWidth - Be, Te = Fs(ae, [
7853
+ const ie = B.left - _.left, ae = V.left - ie, ge = S.left - ae, we = S.width + ge, ot = Math.max(we, _.width), Ze = window.innerWidth - Be, Te = Fs(ae, [
7854
7854
  Be,
7855
7855
  // Prevents the content from going off the starting edge of the
7856
7856
  // viewport. It may still go off the ending edge, but this can be
7857
7857
  // controlled by the user since they may want to manage overflow in a
7858
7858
  // specific way.
7859
7859
  // https://github.com/radix-ui/primitives/issues/2049
7860
- Math.max(Be, Ze - nt)
7860
+ Math.max(Be, Ze - ot)
7861
7861
  ]);
7862
7862
  i.style.minWidth = we + "px", i.style.left = Te + "px";
7863
7863
  } else {
7864
- const ie = _.right - B.right, ae = window.innerWidth - V.right - ie, ge = window.innerWidth - S.right - ae, we = S.width + ge, nt = Math.max(we, _.width), Ze = window.innerWidth - Be, Te = Fs(ae, [
7864
+ const ie = _.right - B.right, ae = window.innerWidth - V.right - ie, ge = window.innerWidth - S.right - ae, we = S.width + ge, ot = Math.max(we, _.width), Ze = window.innerWidth - Be, Te = Fs(ae, [
7865
7865
  Be,
7866
- Math.max(Be, Ze - nt)
7866
+ Math.max(Be, Ze - ot)
7867
7867
  ]);
7868
7868
  i.style.minWidth = we + "px", i.style.right = Te + "px";
7869
7869
  }
@@ -10947,7 +10947,7 @@ function ly(e) {
10947
10947
  }
10948
10948
  const cy = (e) => {
10949
10949
  var o, t, n, r, a, s, i, l, c;
10950
- const { invert: p, toast: d, unstyled: v, interacting: g, setHeights: h, visibleToasts: m, heights: w, index: b, toasts: y, expanded: x, removeToast: C, defaultRichColors: E, closeButton: P, style: S, cancelButtonStyle: _, actionButtonStyle: V, className: B = "", descriptionClassName: j = "", duration: K, position: U, gap: Z, expandByDefault: oe, classNames: k, icons: q, closeButtonAriaLabel: T = "Close toast" } = e, [O, ne] = N.useState(null), [ce, I] = N.useState(null), [M, $] = N.useState(!1), [D, W] = N.useState(!1), [A, z] = N.useState(!1), [Y, re] = N.useState(!1), [ie, ae] = N.useState(!1), [ge, we] = N.useState(0), [nt, Ze] = N.useState(0), Te = N.useRef(d.duration || K || qs), Lt = N.useRef(null), be = N.useRef(null), pr = b === 0, gr = b + 1 <= m, pe = d.type, Ye = d.dismissible !== !1, po = d.className || "", Bo = d.descriptionClassName || "", ut = N.useMemo(() => w.findIndex((F) => F.toastId === d.id) || 0, [
10950
+ const { invert: p, toast: d, unstyled: v, interacting: g, setHeights: h, visibleToasts: m, heights: w, index: b, toasts: y, expanded: x, removeToast: C, defaultRichColors: E, closeButton: P, style: S, cancelButtonStyle: _, actionButtonStyle: V, className: B = "", descriptionClassName: j = "", duration: K, position: U, gap: Z, expandByDefault: oe, classNames: k, icons: q, closeButtonAriaLabel: T = "Close toast" } = e, [O, ne] = N.useState(null), [ce, I] = N.useState(null), [M, $] = N.useState(!1), [D, W] = N.useState(!1), [A, z] = N.useState(!1), [Y, re] = N.useState(!1), [ie, ae] = N.useState(!1), [ge, we] = N.useState(0), [ot, Ze] = N.useState(0), Te = N.useRef(d.duration || K || qs), Lt = N.useRef(null), be = N.useRef(null), pr = b === 0, gr = b + 1 <= m, pe = d.type, Ye = d.dismissible !== !1, po = d.className || "", Bo = d.descriptionClassName || "", ut = N.useMemo(() => w.findIndex((F) => F.toastId === d.id) || 0, [
10951
10951
  w,
10952
10952
  d.id
10953
10953
  ]), Pt = N.useMemo(() => {
@@ -10959,11 +10959,11 @@ const cy = (e) => {
10959
10959
  ]), go = N.useMemo(() => d.duration || K || qs, [
10960
10960
  d.duration,
10961
10961
  K
10962
- ]), It = N.useRef(0), rt = N.useRef(0), Vt = N.useRef(0), Me = N.useRef(null), [qo, Ho] = U.split("-"), zt = N.useMemo(() => w.reduce((F, de, ye) => ye >= ut ? F : F + de.height, 0), [
10962
+ ]), It = N.useRef(0), nt = N.useRef(0), Vt = N.useRef(0), Me = N.useRef(null), [qo, Ho] = U.split("-"), zt = N.useMemo(() => w.reduce((F, de, ye) => ye >= ut ? F : F + de.height, 0), [
10963
10963
  w,
10964
10964
  ut
10965
10965
  ]), Go = Kb(), Tt = d.invert || p, Bt = pe === "loading";
10966
- rt.current = N.useMemo(() => ut * Z + zt, [
10966
+ nt.current = N.useMemo(() => ut * Z + zt, [
10967
10967
  ut,
10968
10968
  zt
10969
10969
  ]), N.useEffect(() => {
@@ -11015,14 +11015,14 @@ const cy = (e) => {
11015
11015
  d.cancel
11016
11016
  ]);
11017
11017
  const Le = N.useCallback(() => {
11018
- W(!0), we(rt.current), h((F) => F.filter((de) => de.toastId !== d.id)), setTimeout(() => {
11018
+ W(!0), we(nt.current), h((F) => F.filter((de) => de.toastId !== d.id)), setTimeout(() => {
11019
11019
  C(d);
11020
11020
  }, iy);
11021
11021
  }, [
11022
11022
  d,
11023
11023
  C,
11024
11024
  h,
11025
- rt
11025
+ nt
11026
11026
  ]);
11027
11027
  N.useEffect(() => {
11028
11028
  if (d.promise && pe === "loading" || d.duration === 1 / 0 || d.type === "loading") return;
@@ -11095,8 +11095,8 @@ const cy = (e) => {
11095
11095
  "--index": b,
11096
11096
  "--toasts-before": b,
11097
11097
  "--z-index": y.length - b,
11098
- "--offset": `${D ? ge : rt.current}px`,
11099
- "--initial-height": oe ? "auto" : `${nt}px`,
11098
+ "--offset": `${D ? ge : nt.current}px`,
11099
+ "--initial-height": oe ? "auto" : `${ot}px`,
11100
11100
  ...S,
11101
11101
  ...d.style
11102
11102
  },
@@ -11104,7 +11104,7 @@ const cy = (e) => {
11104
11104
  z(!1), ne(null), Me.current = null;
11105
11105
  },
11106
11106
  onPointerDown: (F) => {
11107
- F.button !== 2 && (Bt || !Ye || (Lt.current = /* @__PURE__ */ new Date(), we(rt.current), F.target.setPointerCapture(F.pointerId), F.target.tagName !== "BUTTON" && (z(!0), Me.current = {
11107
+ F.button !== 2 && (Bt || !Ye || (Lt.current = /* @__PURE__ */ new Date(), we(nt.current), F.target.setPointerCapture(F.pointerId), F.target.tagName !== "BUTTON" && (z(!0), Me.current = {
11108
11108
  x: F.clientX,
11109
11109
  y: F.clientY
11110
11110
  })));
@@ -11115,7 +11115,7 @@ const cy = (e) => {
11115
11115
  Me.current = null;
11116
11116
  const Ae = Number(((F = be.current) == null ? void 0 : F.style.getPropertyValue("--swipe-amount-x").replace("px", "")) || 0), jo = Number(((de = be.current) == null ? void 0 : de.style.getPropertyValue("--swipe-amount-y").replace("px", "")) || 0), ve = (/* @__PURE__ */ new Date()).getTime() - ((ye = Lt.current) == null ? void 0 : ye.getTime()), Oe = O === "x" ? Ae : jo, Uo = Math.abs(Oe) / ve;
11117
11117
  if (Math.abs(Oe) >= sy || Uo > 0.11) {
11118
- we(rt.current), d.onDismiss == null || d.onDismiss.call(d, d), I(O === "x" ? Ae > 0 ? "right" : "left" : jo > 0 ? "down" : "up"), Le(), re(!0);
11118
+ we(nt.current), d.onDismiss == null || d.onDismiss.call(d, d), I(O === "x" ? Ae > 0 ? "right" : "left" : jo > 0 ? "down" : "up"), Le(), re(!0);
11119
11119
  return;
11120
11120
  } else {
11121
11121
  var Ve, ze;
@@ -12107,7 +12107,7 @@ const Iy = (e) => /* @__PURE__ */ te(
12107
12107
  children: [
12108
12108
  /* @__PURE__ */ te("div", { className: "volt-flex volt-items-center volt-gap-2", children: [
12109
12109
  /* @__PURE__ */ u(
12110
- Qe,
12110
+ st,
12111
12111
  {
12112
12112
  variant: "secondary",
12113
12113
  size: "volt-icon-sm",
@@ -12120,7 +12120,7 @@ const Iy = (e) => /* @__PURE__ */ te(
12120
12120
  }
12121
12121
  ),
12122
12122
  /* @__PURE__ */ u(
12123
- Qe,
12123
+ st,
12124
12124
  {
12125
12125
  variant: "secondary",
12126
12126
  size: "volt-icon-sm",
@@ -12138,7 +12138,7 @@ const Iy = (e) => /* @__PURE__ */ te(
12138
12138
  if (S.type === "ellipsis")
12139
12139
  return /* @__PURE__ */ te(Q0, { children: [
12140
12140
  /* @__PURE__ */ u(J0, { asChild: !0, children: /* @__PURE__ */ u(
12141
- Qe,
12141
+ st,
12142
12142
  {
12143
12143
  variant: "tertiary",
12144
12144
  size: "volt-icon-sm",
@@ -12159,7 +12159,7 @@ const Iy = (e) => /* @__PURE__ */ te(
12159
12159
  ] }, V);
12160
12160
  const B = S.page === w;
12161
12161
  return /* @__PURE__ */ u(
12162
- Qe,
12162
+ st,
12163
12163
  {
12164
12164
  variant: B ? "secondary" : "tertiary",
12165
12165
  size: "volt-icon-sm",
@@ -12182,7 +12182,7 @@ const Iy = (e) => /* @__PURE__ */ te(
12182
12182
  );
12183
12183
  }),
12184
12184
  /* @__PURE__ */ u(
12185
- Qe,
12185
+ st,
12186
12186
  {
12187
12187
  variant: "secondary",
12188
12188
  size: "volt-icon-sm",
@@ -12195,7 +12195,7 @@ const Iy = (e) => /* @__PURE__ */ te(
12195
12195
  }
12196
12196
  ),
12197
12197
  /* @__PURE__ */ u(
12198
- Qe,
12198
+ st,
12199
12199
  {
12200
12200
  variant: "secondary",
12201
12201
  size: "volt-icon-sm",
@@ -13702,7 +13702,7 @@ Qa.resolveFilterValue = (e) => {
13702
13702
  return [a, s];
13703
13703
  };
13704
13704
  Qa.autoRemove = (e) => qe(e) || qe(e[0]) && qe(e[1]);
13705
- const st = {
13705
+ const at = {
13706
13706
  includesString: Ud,
13707
13707
  includesStringSensitive: Kd,
13708
13708
  equalsString: Zd,
@@ -13732,12 +13732,12 @@ const x1 = {
13732
13732
  createColumn: (e, o) => {
13733
13733
  e.getAutoFilterFn = () => {
13734
13734
  const t = o.getCoreRowModel().flatRows[0], n = t == null ? void 0 : t.getValue(e.id);
13735
- return typeof n == "string" ? st.includesString : typeof n == "number" ? st.inNumberRange : typeof n == "boolean" || n !== null && typeof n == "object" ? st.equals : Array.isArray(n) ? st.arrIncludes : st.weakEquals;
13735
+ return typeof n == "string" ? at.includesString : typeof n == "number" ? at.inNumberRange : typeof n == "boolean" || n !== null && typeof n == "object" ? at.equals : Array.isArray(n) ? at.arrIncludes : at.weakEquals;
13736
13736
  }, e.getFilterFn = () => {
13737
13737
  var t, n;
13738
13738
  return dr(e.columnDef.filterFn) ? e.columnDef.filterFn : e.columnDef.filterFn === "auto" ? e.getAutoFilterFn() : (
13739
13739
  // @ts-ignore
13740
- (t = (n = o.options.filterFns) == null ? void 0 : n[e.columnDef.filterFn]) != null ? t : st[e.columnDef.filterFn]
13740
+ (t = (n = o.options.filterFns) == null ? void 0 : n[e.columnDef.filterFn]) != null ? t : at[e.columnDef.filterFn]
13741
13741
  );
13742
13742
  }, e.getCanFilter = () => {
13743
13743
  var t, n, r;
@@ -14269,12 +14269,12 @@ const V1 = {
14269
14269
  };
14270
14270
  },
14271
14271
  createTable: (e) => {
14272
- e.getGlobalAutoFilterFn = () => st.includesString, e.getGlobalFilterFn = () => {
14272
+ e.getGlobalAutoFilterFn = () => at.includesString, e.getGlobalFilterFn = () => {
14273
14273
  var o, t;
14274
14274
  const {
14275
14275
  globalFilterFn: n
14276
14276
  } = e.options;
14277
- return dr(n) ? n : n === "auto" ? e.getGlobalAutoFilterFn() : (o = (t = e.options.filterFns) == null ? void 0 : t[n]) != null ? o : st[n];
14277
+ return dr(n) ? n : n === "auto" ? e.getGlobalAutoFilterFn() : (o = (t = e.options.filterFns) == null ? void 0 : t[n]) != null ? o : at[n];
14278
14278
  }, e.setGlobalFilter = (o) => {
14279
14279
  e.options.onGlobalFilterChange == null || e.options.onGlobalFilterChange(o);
14280
14280
  }, e.resetGlobalFilter = (o) => {
@@ -15314,26 +15314,31 @@ function af({
15314
15314
  className: t
15315
15315
  }) {
15316
15316
  return e.getCanSort() ? /* @__PURE__ */ te(
15317
- Qe,
15317
+ "button",
15318
15318
  {
15319
- variant: "tertiary",
15320
- size: "xs",
15321
- shape: "normal",
15319
+ type: "button",
15322
15320
  "data-slot": "data-table-column-header",
15323
15321
  "data-fs-element": "DataTable-SortButton",
15324
15322
  onClick: () => e.toggleSorting(),
15325
15323
  "aria-label": e.getIsSorted() === "asc" ? `${o}, sorted ascending. Click to sort descending.` : e.getIsSorted() === "desc" ? `${o}, sorted descending. Click to remove sorting.` : `${o}. Click to sort ascending.`,
15326
- style: { padding: "2px 4px", minHeight: 0, fontSize: "0.875rem" },
15327
15324
  className: R(
15328
- // Override text color to inherit (keep default, not accent)
15329
- "volt-text-current",
15325
+ // Layout
15326
+ "volt-inline-flex volt-items-center volt-gap-1",
15327
+ // Appearance - transparent bg, tertiary-like hover
15328
+ "volt-bg-transparent volt-hover:bg-accent-soft volt-rounded-lg",
15329
+ // Padding
15330
+ "volt-px-1 volt-py-0.5",
15331
+ // Interaction
15332
+ "volt-cursor-pointer volt-transition-colors",
15333
+ // Focus ring
15334
+ "volt-focus-visible:outline-2 volt-focus-visible:outline-offset-2 volt-focus-visible:outline-accent-a8",
15330
15335
  t
15331
15336
  ),
15332
15337
  children: [
15333
15338
  o,
15334
- e.getIsSorted() === "asc" && /* @__PURE__ */ u(vC, { className: R("volt-size-4 volt-text-accent-11") }),
15335
- e.getIsSorted() === "desc" && /* @__PURE__ */ u(mC, { className: R("volt-size-4 volt-text-accent-11") }),
15336
- !e.getIsSorted() && /* @__PURE__ */ u(hC, { className: R("volt-size-4 volt-opacity-40") })
15339
+ e.getIsSorted() === "asc" && /* @__PURE__ */ u(vC, { className: "volt-size-4 volt-text-accent-11" }),
15340
+ e.getIsSorted() === "desc" && /* @__PURE__ */ u(mC, { className: "volt-size-4 volt-text-accent-11" }),
15341
+ !e.getIsSorted() && /* @__PURE__ */ u(hC, { className: "volt-size-4 volt-opacity-40" })
15337
15342
  ]
15338
15343
  }
15339
15344
  ) : /* @__PURE__ */ u("span", { className: t, children: o });
@@ -15403,7 +15408,7 @@ function bC({
15403
15408
  density: D = "normal",
15404
15409
  className: W
15405
15410
  }) {
15406
- const [A, z] = Pe(h), [Y, re] = Pe(b), [ie, ae] = Pe([]), [ge, we] = Pe({}), [nt, Ze] = Pe(""), [Te, Lt] = Pe(q), [be, pr] = Pe(ne), gr = {
15411
+ const [A, z] = Pe(h), [Y, re] = Pe(b), [ie, ae] = Pe([]), [ge, we] = Pe({}), [ot, Ze] = Pe(""), [Te, Lt] = Pe(q), [be, pr] = Pe(ne), gr = {
15407
15412
  pageIndex: (p == null ? void 0 : p.pageIndex) ?? 0,
15408
15413
  pageSize: (p == null ? void 0 : p.pageSize) ?? 10
15409
15414
  }, [pe, Ye] = Pe(gr), po = un(!1);
@@ -15422,7 +15427,7 @@ function bC({
15422
15427
  (F) => F.pageSize === Q ? F : { ...F, pageSize: Q }
15423
15428
  );
15424
15429
  }, [p == null ? void 0 : p.pageSize]);
15425
- const Bo = !K, ut = v ?? A, Pt = m ?? Y, go = y ?? ie, It = C ?? ge, rt = P ?? nt, Vt = oe ?? Te, Me = T ?? be, qo = Ie(() => {
15430
+ const Bo = !K, ut = v ?? A, Pt = m ?? Y, go = y ?? ie, It = C ?? ge, nt = P ?? ot, Vt = oe ?? Te, Me = T ?? be, qo = Ie(() => {
15426
15431
  if (!(r && ce && Object.keys(Pt).length > 0))
15427
15432
  return Me;
15428
15433
  const F = Me.left ?? [];
@@ -15489,7 +15494,7 @@ function bC({
15489
15494
  rowSelection: Pt,
15490
15495
  columnFilters: go,
15491
15496
  columnVisibility: It,
15492
- globalFilter: rt,
15497
+ globalFilter: nt,
15493
15498
  columnPinning: qo,
15494
15499
  ...Tt && {
15495
15500
  pagination: pe
@@ -15524,7 +15529,7 @@ function bC({
15524
15529
  we(F), E == null || E(F);
15525
15530
  },
15526
15531
  onGlobalFilterChange: (Q) => {
15527
- const F = typeof Q == "function" ? Q(rt) : Q;
15532
+ const F = typeof Q == "function" ? Q(nt) : Q;
15528
15533
  Ze(F), S == null || S(F);
15529
15534
  },
15530
15535
  // Column resizing
@@ -16739,7 +16744,7 @@ function VC({
16739
16744
  /* @__PURE__ */ u("p", { className: R("volt-text-base volt-font-medium volt-text-gray-default"), children: e }),
16740
16745
  o && /* @__PURE__ */ u("p", { className: R("volt-text-sm volt-text-gray-light volt-max-w-md"), children: o }),
16741
16746
  n && /* @__PURE__ */ u(
16742
- Qe,
16747
+ st,
16743
16748
  {
16744
16749
  variant: "secondary",
16745
16750
  size: "sm",
@@ -16804,7 +16809,7 @@ function HC({
16804
16809
  const { table: s } = fo(), i = s.getAllColumns().filter((l) => l.getCanHide());
16805
16810
  return i.length === 0 ? null : /* @__PURE__ */ te(c1, { ...a, children: [
16806
16811
  /* @__PURE__ */ u(u1, { asChild: !0, children: o ?? /* @__PURE__ */ te(
16807
- Qe,
16812
+ st,
16808
16813
  {
16809
16814
  variant: "tertiary",
16810
16815
  size: "sm",
@@ -16897,7 +16902,7 @@ export {
16897
16902
  lR as AlertDialogTitle,
16898
16903
  nR as AlertDialogTrigger,
16899
16904
  US as Badge,
16900
- Qe as Button,
16905
+ st as Button,
16901
16906
  YC as ButtonGroup,
16902
16907
  QC as ButtonGroupSeparator,
16903
16908
  XC as ButtonGroupText,