@capitaltg/vero 1.13.1 → 1.14.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,6 +1,6 @@
1
1
  import { jsx as m, Fragment as Me, jsxs as T } from "react/jsx-runtime";
2
2
  import * as u from "react";
3
- import D, { forwardRef as Us, createElement as Ro, useId as Zt, useCallback as le, useState as be, useLayoutEffect as zs, useEffect as wt, useRef as Fe, useMemo as jt, createContext as Qf, useContext as Jf, memo as em } from "react";
3
+ import D, { forwardRef as Us, createElement as Ro, useId as Zt, useCallback as le, useState as be, useLayoutEffect as zs, useEffect as dt, useRef as Fe, useMemo as jt, createContext as Qf, useContext as Jf, memo as em } from "react";
4
4
  import * as Dn from "react-dom";
5
5
  import tm from "react-dom";
6
6
  function js(e) {
@@ -236,7 +236,7 @@ function pm(e, ...t) {
236
236
  const pe = (e) => {
237
237
  const t = (n) => n[e] || [];
238
238
  return t.isThemeGetter = !0, t;
239
- }, Qs = /^\[(?:([a-z-]+):)?(.+)\]$/i, hm = /^\d+\/\d+$/, gm = /* @__PURE__ */ new Set(["px", "full", "screen"]), vm = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, ym = /\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$/, bm = /^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/, wm = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, xm = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, it = (e) => Kt(e) || gm.has(e) || hm.test(e), ht = (e) => nn(e, "length", km), Kt = (e) => !!e && !Number.isNaN(Number(e)), ao = (e) => nn(e, "number", Kt), mn = (e) => !!e && Number.isInteger(Number(e)), Cm = (e) => e.endsWith("%") && Kt(e.slice(0, -1)), re = (e) => Qs.test(e), gt = (e) => vm.test(e), Sm = /* @__PURE__ */ new Set(["length", "size", "percentage"]), Nm = (e) => nn(e, Sm, Js), Em = (e) => nn(e, "position", Js), Mm = /* @__PURE__ */ new Set(["image", "url"]), Rm = (e) => nn(e, Mm, Dm), Pm = (e) => nn(e, "", Im), pn = () => !0, nn = (e, t, n) => {
239
+ }, Qs = /^\[(?:([a-z-]+):)?(.+)\]$/i, hm = /^\d+\/\d+$/, gm = /* @__PURE__ */ new Set(["px", "full", "screen"]), vm = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, ym = /\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$/, bm = /^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/, wm = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, xm = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, it = (e) => Kt(e) || gm.has(e) || hm.test(e), gt = (e) => nn(e, "length", km), Kt = (e) => !!e && !Number.isNaN(Number(e)), ao = (e) => nn(e, "number", Kt), mn = (e) => !!e && Number.isInteger(Number(e)), Cm = (e) => e.endsWith("%") && Kt(e.slice(0, -1)), re = (e) => Qs.test(e), vt = (e) => vm.test(e), Sm = /* @__PURE__ */ new Set(["length", "size", "percentage"]), Nm = (e) => nn(e, Sm, Js), Em = (e) => nn(e, "position", Js), Mm = /* @__PURE__ */ new Set(["image", "url"]), Rm = (e) => nn(e, Mm, Dm), Pm = (e) => nn(e, "", Im), pn = () => !0, nn = (e, t, n) => {
240
240
  const r = Qs.exec(e);
241
241
  return r ? r[1] ? typeof t == "string" ? r[1] === t : t.has(r[1]) : n(r[2]) : !1;
242
242
  }, km = (e) => (
@@ -245,17 +245,17 @@ const pe = (e) => {
245
245
  // I could also use lookbehind assertion in `lengthUnitRegex` but that isn't supported widely enough.
246
246
  ym.test(e) && !bm.test(e)
247
247
  ), Js = () => !1, Im = (e) => wm.test(e), Dm = (e) => xm.test(e), Om = () => {
248
- const e = pe("colors"), t = pe("spacing"), n = pe("blur"), r = pe("brightness"), o = pe("borderColor"), a = pe("borderRadius"), i = pe("borderSpacing"), s = pe("borderWidth"), c = pe("contrast"), l = pe("grayscale"), d = pe("hueRotate"), f = pe("invert"), p = pe("gap"), h = pe("gradientColorStops"), y = pe("gradientColorStopPositions"), g = pe("inset"), v = pe("margin"), b = pe("opacity"), w = pe("padding"), x = pe("saturate"), S = pe("scale"), C = pe("sepia"), E = pe("skew"), N = pe("space"), M = pe("translate"), W = () => ["auto", "contain", "none"], $ = () => ["auto", "hidden", "clip", "visible", "scroll"], k = () => ["auto", re, t], I = () => [re, t], B = () => ["", it, ht], V = () => ["auto", Kt, re], q = () => ["bottom", "center", "left", "left-bottom", "left-top", "right", "right-bottom", "right-top", "top"], F = () => ["solid", "dashed", "dotted", "double", "none"], J = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], L = () => ["start", "end", "center", "between", "around", "evenly", "stretch"], O = () => ["", "0", re], te = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], ee = () => [Kt, re];
248
+ const e = pe("colors"), t = pe("spacing"), n = pe("blur"), r = pe("brightness"), o = pe("borderColor"), a = pe("borderRadius"), i = pe("borderSpacing"), s = pe("borderWidth"), c = pe("contrast"), l = pe("grayscale"), d = pe("hueRotate"), f = pe("invert"), p = pe("gap"), h = pe("gradientColorStops"), y = pe("gradientColorStopPositions"), g = pe("inset"), v = pe("margin"), b = pe("opacity"), w = pe("padding"), x = pe("saturate"), S = pe("scale"), C = pe("sepia"), E = pe("skew"), N = pe("space"), M = pe("translate"), W = () => ["auto", "contain", "none"], $ = () => ["auto", "hidden", "clip", "visible", "scroll"], k = () => ["auto", re, t], I = () => [re, t], B = () => ["", it, gt], V = () => ["auto", Kt, re], q = () => ["bottom", "center", "left", "left-bottom", "left-top", "right", "right-bottom", "right-top", "top"], F = () => ["solid", "dashed", "dotted", "double", "none"], J = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], L = () => ["start", "end", "center", "between", "around", "evenly", "stretch"], O = () => ["", "0", re], te = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], ee = () => [Kt, re];
249
249
  return {
250
250
  cacheSize: 500,
251
251
  separator: ":",
252
252
  theme: {
253
253
  colors: [pn],
254
- spacing: [it, ht],
255
- blur: ["none", "", gt, re],
254
+ spacing: [it, gt],
255
+ blur: ["none", "", vt, re],
256
256
  brightness: ee(),
257
257
  borderColor: [e],
258
- borderRadius: ["none", "", "full", gt, re],
258
+ borderRadius: ["none", "", "full", vt, re],
259
259
  borderSpacing: I(),
260
260
  borderWidth: B(),
261
261
  contrast: ee(),
@@ -264,7 +264,7 @@ const pe = (e) => {
264
264
  invert: O(),
265
265
  gap: I(),
266
266
  gradientColorStops: [e],
267
- gradientColorStopPositions: [Cm, ht],
267
+ gradientColorStopPositions: [Cm, gt],
268
268
  inset: k(),
269
269
  margin: k(),
270
270
  opacity: ee(),
@@ -295,7 +295,7 @@ const pe = (e) => {
295
295
  * @see https://tailwindcss.com/docs/columns
296
296
  */
297
297
  columns: [{
298
- columns: [gt]
298
+ columns: [vt]
299
299
  }],
300
300
  /**
301
301
  * Break After
@@ -879,8 +879,8 @@ const pe = (e) => {
879
879
  */
880
880
  "max-w": [{
881
881
  "max-w": [re, t, "none", "full", "min", "max", "fit", "prose", {
882
- screen: [gt]
883
- }, gt]
882
+ screen: [vt]
883
+ }, vt]
884
884
  }],
885
885
  /**
886
886
  * Height
@@ -916,7 +916,7 @@ const pe = (e) => {
916
916
  * @see https://tailwindcss.com/docs/font-size
917
917
  */
918
918
  "font-size": [{
919
- text: ["base", gt, ht]
919
+ text: ["base", vt, gt]
920
920
  }],
921
921
  /**
922
922
  * Font Smoothing
@@ -1067,7 +1067,7 @@ const pe = (e) => {
1067
1067
  * @see https://tailwindcss.com/docs/text-decoration-thickness
1068
1068
  */
1069
1069
  "text-decoration-thickness": [{
1070
- decoration: ["auto", "from-font", it, ht]
1070
+ decoration: ["auto", "from-font", it, gt]
1071
1071
  }],
1072
1072
  /**
1073
1073
  * Text Underline Offset
@@ -1563,7 +1563,7 @@ const pe = (e) => {
1563
1563
  * @see https://tailwindcss.com/docs/outline-width
1564
1564
  */
1565
1565
  "outline-w": [{
1566
- outline: [it, ht]
1566
+ outline: [it, gt]
1567
1567
  }],
1568
1568
  /**
1569
1569
  * Outline Color
@@ -1603,7 +1603,7 @@ const pe = (e) => {
1603
1603
  * @see https://tailwindcss.com/docs/ring-offset-width
1604
1604
  */
1605
1605
  "ring-offset-w": [{
1606
- "ring-offset": [it, ht]
1606
+ "ring-offset": [it, gt]
1607
1607
  }],
1608
1608
  /**
1609
1609
  * Ring Offset Color
@@ -1618,7 +1618,7 @@ const pe = (e) => {
1618
1618
  * @see https://tailwindcss.com/docs/box-shadow
1619
1619
  */
1620
1620
  shadow: [{
1621
- shadow: ["", "inner", "none", gt, Pm]
1621
+ shadow: ["", "inner", "none", vt, Pm]
1622
1622
  }],
1623
1623
  /**
1624
1624
  * Box Shadow Color
@@ -1683,7 +1683,7 @@ const pe = (e) => {
1683
1683
  * @see https://tailwindcss.com/docs/drop-shadow
1684
1684
  */
1685
1685
  "drop-shadow": [{
1686
- "drop-shadow": ["", "none", gt, re]
1686
+ "drop-shadow": ["", "none", vt, re]
1687
1687
  }],
1688
1688
  /**
1689
1689
  * Grayscale
@@ -2198,7 +2198,7 @@ const pe = (e) => {
2198
2198
  * @see https://tailwindcss.com/docs/stroke-width
2199
2199
  */
2200
2200
  "stroke-w": [{
2201
- stroke: [it, ht, ao]
2201
+ stroke: [it, gt, ao]
2202
2202
  }],
2203
2203
  /**
2204
2204
  * Stroke
@@ -3319,7 +3319,7 @@ aria-disabled:pointer-events-none aria-disabled:cursor-not-allowed aria-disabled
3319
3319
  }, y) => {
3320
3320
  const g = {
3321
3321
  ref: y,
3322
- className: P("space-y-2", e),
3322
+ className: P("vero-accordion", "space-y-2", e),
3323
3323
  ...h
3324
3324
  }, v = {
3325
3325
  items: r,
@@ -3458,7 +3458,7 @@ const Kp = Pe(
3458
3458
  {
3459
3459
  ref: d,
3460
3460
  "aria-labelledby": r ? p : void 0,
3461
- className: P(Kp({ variant: t, size: n }), e),
3461
+ className: P("vero-alert", Kp({ variant: t, size: n }), e),
3462
3462
  role: "alert",
3463
3463
  ...l,
3464
3464
  children: [
@@ -3641,7 +3641,7 @@ const ut = Pe(ce.button, {
3641
3641
  l,
3642
3642
  {
3643
3643
  ref: c,
3644
- className: P(ut({ variant: t, size: n }), e),
3644
+ className: P("vero-button", ut({ variant: t, size: n }), e),
3645
3645
  ...s,
3646
3646
  ...d,
3647
3647
  children: i
@@ -3651,7 +3651,7 @@ const ut = Pe(ce.button, {
3651
3651
  {
3652
3652
  ref: c,
3653
3653
  "aria-busy": a,
3654
- className: P(ut({ variant: t, size: n }), "relative", e),
3654
+ className: P("vero-button", ut({ variant: t, size: n }), "relative", e),
3655
3655
  ...s,
3656
3656
  ...d,
3657
3657
  children: a ? /* @__PURE__ */ T(Me, { children: [
@@ -3832,15 +3832,15 @@ var co = "focusScope.autoFocusOnMount", lo = "focusScope.autoFocusOnUnmount", us
3832
3832
  let g = function(x) {
3833
3833
  if (h.paused || !s) return;
3834
3834
  const S = x.target;
3835
- s.contains(S) ? f.current = S : yt(f.current, { select: !0 });
3835
+ s.contains(S) ? f.current = S : bt(f.current, { select: !0 });
3836
3836
  }, v = function(x) {
3837
3837
  if (h.paused || !s) return;
3838
3838
  const S = x.relatedTarget;
3839
- S !== null && (s.contains(S) || yt(f.current, { select: !0 }));
3839
+ S !== null && (s.contains(S) || bt(f.current, { select: !0 }));
3840
3840
  }, b = function(x) {
3841
3841
  if (document.activeElement === document.body)
3842
3842
  for (const C of x)
3843
- C.removedNodes.length > 0 && yt(s);
3843
+ C.removedNodes.length > 0 && bt(s);
3844
3844
  };
3845
3845
  document.addEventListener("focusin", g), document.addEventListener("focusout", v);
3846
3846
  const w = new MutationObserver(b);
@@ -3854,12 +3854,12 @@ var co = "focusScope.autoFocusOnMount", lo = "focusScope.autoFocusOnUnmount", us
3854
3854
  const g = document.activeElement;
3855
3855
  if (!s.contains(g)) {
3856
3856
  const b = new CustomEvent(co, us);
3857
- s.addEventListener(co, l), s.dispatchEvent(b), b.defaultPrevented || (gh(xh(Mi(s)), { select: !0 }), document.activeElement === g && yt(s));
3857
+ s.addEventListener(co, l), s.dispatchEvent(b), b.defaultPrevented || (gh(xh(Mi(s)), { select: !0 }), document.activeElement === g && bt(s));
3858
3858
  }
3859
3859
  return () => {
3860
3860
  s.removeEventListener(co, l), setTimeout(() => {
3861
3861
  const b = new CustomEvent(lo, us);
3862
- s.addEventListener(lo, d), s.dispatchEvent(b), b.defaultPrevented || yt(g ?? document.body, { select: !0 }), s.removeEventListener(lo, d), fs.remove(h);
3862
+ s.addEventListener(lo, d), s.dispatchEvent(b), b.defaultPrevented || bt(g ?? document.body, { select: !0 }), s.removeEventListener(lo, d), fs.remove(h);
3863
3863
  }, 0);
3864
3864
  };
3865
3865
  }
@@ -3870,7 +3870,7 @@ var co = "focusScope.autoFocusOnMount", lo = "focusScope.autoFocusOnUnmount", us
3870
3870
  const v = g.key === "Tab" && !g.altKey && !g.ctrlKey && !g.metaKey, b = document.activeElement;
3871
3871
  if (v && b) {
3872
3872
  const w = g.currentTarget, [x, S] = vh(w);
3873
- x && S ? !g.shiftKey && b === S ? (g.preventDefault(), n && yt(x, { select: !0 })) : g.shiftKey && b === x && (g.preventDefault(), n && yt(S, { select: !0 })) : b === w && g.preventDefault();
3873
+ x && S ? !g.shiftKey && b === S ? (g.preventDefault(), n && bt(x, { select: !0 })) : g.shiftKey && b === x && (g.preventDefault(), n && bt(S, { select: !0 })) : b === w && g.preventDefault();
3874
3874
  }
3875
3875
  },
3876
3876
  [n, r, h.paused]
@@ -3881,7 +3881,7 @@ Tn.displayName = hh;
3881
3881
  function gh(e, { select: t = !1 } = {}) {
3882
3882
  const n = document.activeElement;
3883
3883
  for (const r of e)
3884
- if (yt(r, { select: t }), document.activeElement !== n) return;
3884
+ if (bt(r, { select: t }), document.activeElement !== n) return;
3885
3885
  }
3886
3886
  function vh(e) {
3887
3887
  const t = Mi(e), n = ds(t, e), r = ds(t.reverse(), e);
@@ -3913,7 +3913,7 @@ function yh(e, { upTo: t }) {
3913
3913
  function bh(e) {
3914
3914
  return e instanceof HTMLInputElement && "select" in e;
3915
3915
  }
3916
- function yt(e, { select: t = !1 } = {}) {
3916
+ function bt(e, { select: t = !1 } = {}) {
3917
3917
  if (e && e.focus) {
3918
3918
  const n = document.activeElement;
3919
3919
  e.focus({ preventScroll: !0 }), e !== n && bh(e) && t && e.select();
@@ -5065,6 +5065,7 @@ const kr = u.forwardRef(
5065
5065
  {
5066
5066
  ref: n,
5067
5067
  className: P(
5068
+ "vero-command",
5068
5069
  "flex h-full w-full flex-col overflow-hidden rounded-md bg-popover text-popover-foreground",
5069
5070
  e
5070
5071
  ),
@@ -5156,6 +5157,7 @@ const Hg = u.forwardRef(({ className: e, children: t, zIndex: n, onOpenAutoFocus
5156
5157
  {
5157
5158
  ref: a,
5158
5159
  className: P(
5160
+ "vero-dialog",
5159
5161
  `fixed left-[50%] top-[50%] grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%]
5160
5162
  gap-4 border bg-background px-6 py-6 shadow-lg duration-200 data-[state=open]:animate-in
5161
5163
  data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0
@@ -5279,10 +5281,10 @@ const Gg = ["top", "right", "bottom", "left"], St = Math.min, Ae = Math.max, fr
5279
5281
  function _o(e, t, n) {
5280
5282
  return Ae(e, St(t, n));
5281
5283
  }
5282
- function dt(e, t) {
5284
+ function ft(e, t) {
5283
5285
  return typeof e == "function" ? e(t) : e;
5284
5286
  }
5285
- function ft(e) {
5287
+ function mt(e) {
5286
5288
  return e.split("-")[0];
5287
5289
  }
5288
5290
  function on(e) {
@@ -5295,7 +5297,7 @@ function va(e) {
5295
5297
  return e === "y" ? "height" : "width";
5296
5298
  }
5297
5299
  function Nt(e) {
5298
- return ["top", "bottom"].includes(ft(e)) ? "y" : "x";
5300
+ return ["top", "bottom"].includes(mt(e)) ? "y" : "x";
5299
5301
  }
5300
5302
  function ya(e) {
5301
5303
  return ga(Nt(e));
@@ -5328,7 +5330,7 @@ function qg(e, t, n) {
5328
5330
  }
5329
5331
  function Xg(e, t, n, r) {
5330
5332
  const o = on(e);
5331
- let a = qg(ft(e), n === "start", r);
5333
+ let a = qg(mt(e), n === "start", r);
5332
5334
  return o && (a = a.map((i) => i + "-" + o), t && (a = a.concat(a.map($o)))), a;
5333
5335
  }
5334
5336
  function mr(e) {
@@ -5374,7 +5376,7 @@ function xs(e, t, n) {
5374
5376
  reference: r,
5375
5377
  floating: o
5376
5378
  } = e;
5377
- const a = Nt(t), i = ya(t), s = va(i), c = ft(t), l = a === "y", d = r.x + r.width / 2 - o.width / 2, f = r.y + r.height / 2 - o.height / 2, p = r[s] / 2 - o[s] / 2;
5379
+ const a = Nt(t), i = ya(t), s = va(i), c = mt(t), l = a === "y", d = r.x + r.width / 2 - o.width / 2, f = r.y + r.height / 2 - o.height / 2, p = r[s] / 2 - o[s] / 2;
5378
5380
  let h;
5379
5381
  switch (c) {
5380
5382
  case "top":
@@ -5494,7 +5496,7 @@ async function Nn(e, t) {
5494
5496
  elementContext: f = "floating",
5495
5497
  altBoundary: p = !1,
5496
5498
  padding: h = 0
5497
- } = dt(t, e), y = mc(h), v = s[p ? f === "floating" ? "reference" : "floating" : f], b = pr(await a.getClippingRect({
5499
+ } = ft(t, e), y = mc(h), v = s[p ? f === "floating" ? "reference" : "floating" : f], b = pr(await a.getClippingRect({
5498
5500
  element: (n = await (a.isElement == null ? void 0 : a.isElement(v))) == null || n ? v : v.contextElement || await (a.getDocumentElement == null ? void 0 : a.getDocumentElement(s.floating)),
5499
5501
  boundary: l,
5500
5502
  rootBoundary: d,
@@ -5538,7 +5540,7 @@ const Jg = (e) => ({
5538
5540
  } = t, {
5539
5541
  element: l,
5540
5542
  padding: d = 0
5541
- } = dt(e, t) || {};
5543
+ } = ft(e, t) || {};
5542
5544
  if (l == null)
5543
5545
  return {};
5544
5546
  const f = mc(d), p = {
@@ -5581,10 +5583,10 @@ const Jg = (e) => ({
5581
5583
  fallbackAxisSideDirection: y = "none",
5582
5584
  flipAlignment: g = !0,
5583
5585
  ...v
5584
- } = dt(e, t);
5586
+ } = ft(e, t);
5585
5587
  if ((n = a.arrow) != null && n.alignmentOffset)
5586
5588
  return {};
5587
- const b = ft(o), w = Nt(s), x = ft(s) === s, S = await (c.isRTL == null ? void 0 : c.isRTL(l.floating)), C = p || (x || !g ? [mr(s)] : Kg(s)), E = y !== "none";
5589
+ const b = mt(o), w = Nt(s), x = mt(s) === s, S = await (c.isRTL == null ? void 0 : c.isRTL(l.floating)), C = p || (x || !g ? [mr(s)] : Kg(s)), E = y !== "none";
5588
5590
  !p && E && C.push(...Xg(s, g, y, S));
5589
5591
  const N = [s, ...C], M = await Nn(t, v), W = [];
5590
5592
  let $ = ((r = a.flip) == null ? void 0 : r.overflows) || [];
@@ -5661,7 +5663,7 @@ const tv = function(e) {
5661
5663
  } = t, {
5662
5664
  strategy: r = "referenceHidden",
5663
5665
  ...o
5664
- } = dt(e, t);
5666
+ } = ft(e, t);
5665
5667
  switch (r) {
5666
5668
  case "referenceHidden": {
5667
5669
  const a = await Nn(t, {
@@ -5698,7 +5700,7 @@ async function nv(e, t) {
5698
5700
  placement: n,
5699
5701
  platform: r,
5700
5702
  elements: o
5701
- } = e, a = await (r.isRTL == null ? void 0 : r.isRTL(o.floating)), i = ft(n), s = on(n), c = Nt(n) === "y", l = ["left", "top"].includes(i) ? -1 : 1, d = a && c ? -1 : 1, f = dt(t, e);
5703
+ } = e, a = await (r.isRTL == null ? void 0 : r.isRTL(o.floating)), i = mt(n), s = on(n), c = Nt(n) === "y", l = ["left", "top"].includes(i) ? -1 : 1, d = a && c ? -1 : 1, f = ft(t, e);
5702
5704
  let {
5703
5705
  mainAxis: p,
5704
5706
  crossAxis: h,
@@ -5767,10 +5769,10 @@ const rv = function(e) {
5767
5769
  }
5768
5770
  },
5769
5771
  ...c
5770
- } = dt(e, t), l = {
5772
+ } = ft(e, t), l = {
5771
5773
  x: n,
5772
5774
  y: r
5773
- }, d = await Nn(t, c), f = Nt(ft(o)), p = ga(f);
5775
+ }, d = await Nn(t, c), f = Nt(mt(o)), p = ga(f);
5774
5776
  let h = l[p], y = l[f];
5775
5777
  if (a) {
5776
5778
  const v = p === "y" ? "top" : "left", b = p === "y" ? "bottom" : "right", w = h + d[v], x = h - d[b];
@@ -5812,12 +5814,12 @@ const rv = function(e) {
5812
5814
  offset: s = 0,
5813
5815
  mainAxis: c = !0,
5814
5816
  crossAxis: l = !0
5815
- } = dt(e, t), d = {
5817
+ } = ft(e, t), d = {
5816
5818
  x: n,
5817
5819
  y: r
5818
5820
  }, f = Nt(o), p = ga(f);
5819
5821
  let h = d[p], y = d[f];
5820
- const g = dt(s, t), v = typeof g == "number" ? {
5822
+ const g = ft(s, t), v = typeof g == "number" ? {
5821
5823
  mainAxis: g,
5822
5824
  crossAxis: 0
5823
5825
  } : {
@@ -5831,7 +5833,7 @@ const rv = function(e) {
5831
5833
  }
5832
5834
  if (l) {
5833
5835
  var b, w;
5834
- const x = p === "y" ? "width" : "height", S = ["top", "left"].includes(ft(o)), C = a.reference[f] - a.floating[x] + (S && ((b = i.offset) == null ? void 0 : b[f]) || 0) + (S ? 0 : v.crossAxis), E = a.reference[f] + a.reference[x] + (S ? 0 : ((w = i.offset) == null ? void 0 : w[f]) || 0) - (S ? v.crossAxis : 0);
5836
+ const x = p === "y" ? "width" : "height", S = ["top", "left"].includes(mt(o)), C = a.reference[f] - a.floating[x] + (S && ((b = i.offset) == null ? void 0 : b[f]) || 0) + (S ? 0 : v.crossAxis), E = a.reference[f] + a.reference[x] + (S ? 0 : ((w = i.offset) == null ? void 0 : w[f]) || 0) - (S ? v.crossAxis : 0);
5835
5837
  y < C ? y = C : y > E && (y = E);
5836
5838
  }
5837
5839
  return {
@@ -5855,7 +5857,7 @@ const rv = function(e) {
5855
5857
  apply: c = () => {
5856
5858
  },
5857
5859
  ...l
5858
- } = dt(e, t), d = await Nn(t, l), f = ft(o), p = on(o), h = Nt(o) === "y", {
5860
+ } = ft(e, t), d = await Nn(t, l), f = mt(o), p = on(o), h = Nt(o) === "y", {
5859
5861
  width: y,
5860
5862
  height: g
5861
5863
  } = a.floating;
@@ -6369,7 +6371,7 @@ const Nv = rv, Ev = ov, Mv = ev, Rv = sv, Pv = tv, Rs = Jg, kv = av, Iv = (e, t,
6369
6371
  platform: a
6370
6372
  });
6371
6373
  };
6372
- var lr = typeof document < "u" ? zs : wt;
6374
+ var lr = typeof document < "u" ? zs : dt;
6373
6375
  function hr(e, t) {
6374
6376
  if (e === t)
6375
6377
  return !0;
@@ -7013,7 +7015,7 @@ const Hn = qv, Vn = Xv, Jv = Qv, cn = u.forwardRef(({ className: e, align: t = "
7013
7015
  {
7014
7016
  ref: s,
7015
7017
  align: t,
7016
- className: P(ce.popover, e),
7018
+ className: P("vero-popover", ce.popover, e),
7017
7019
  sideOffset: n,
7018
7020
  style: { zIndex: c, ...i.style },
7019
7021
  ...i,
@@ -7052,9 +7054,9 @@ function ey({
7052
7054
  ...N
7053
7055
  }, M) {
7054
7056
  const [W, $] = be(!1), k = qe("dropdown", y), [I, B] = be(""), [V, q] = be(!1), [F, J] = be(!1), [L, O] = be([]), [te, ee] = be(!1), [R, Y] = be(void 0), U = Fe();
7055
- wt(() => () => {
7057
+ dt(() => () => {
7056
7058
  U.current && clearTimeout(U.current);
7057
- }, []), wt(() => {
7059
+ }, []), dt(() => {
7058
7060
  n || Y(void 0);
7059
7061
  }, [n]);
7060
7062
  const H = le(
@@ -7106,10 +7108,12 @@ function ey({
7106
7108
  "aria-expanded": W,
7107
7109
  autoFocus: w,
7108
7110
  className: P(
7111
+ "vero-autocomplete",
7109
7112
  "w-full justify-between px-3",
7110
7113
  !n && "text-muted-foreground",
7111
7114
  c
7112
7115
  ),
7116
+ "data-component": "autocomplete",
7113
7117
  isDisabled: g,
7114
7118
  variant: "input",
7115
7119
  ...N,
@@ -7203,14 +7207,30 @@ const xE = el, ty = Pe(
7203
7207
  }
7204
7208
  }
7205
7209
  ), ny = u.forwardRef(
7206
- ({ className: e, variant: t, ...n }, r) => /* @__PURE__ */ m("div", { ref: r, className: P(ty({ variant: t, className: e })), ...n })
7210
+ ({ className: e, variant: t, ...n }, r) => /* @__PURE__ */ m(
7211
+ "div",
7212
+ {
7213
+ ref: r,
7214
+ className: P("vero-badge", ty({ variant: t, className: e })),
7215
+ ...n
7216
+ }
7217
+ )
7207
7218
  );
7208
7219
  ny.displayName = "Badge";
7209
7220
  const ry = u.forwardRef(
7210
- ({ items: e, separator: t = /* @__PURE__ */ m(sa, { className: "h-4 w-4" }), className: n, ...r }, o) => /* @__PURE__ */ m("nav", { ref: o, "aria-label": "Breadcrumb", className: P("flex", n), ...r, children: /* @__PURE__ */ m("ol", { className: "flex flex-wrap items-center gap-1 pl-0", children: e.map((a, i) => /* @__PURE__ */ T("li", { className: "flex items-center gap-1", children: [
7211
- a.href ? /* @__PURE__ */ m("a", { className: P(ce.link, ce.linkNoUnderline), href: a.href, children: a.label }) : /* @__PURE__ */ m("span", { "aria-current": "page", className: "font-medium text-foreground", children: a.label }),
7212
- i < e.length - 1 ? /* @__PURE__ */ m("span", { className: "text-muted-foreground", children: t }) : null
7213
- ] }, i)) }) })
7221
+ ({ items: e, separator: t = /* @__PURE__ */ m(sa, { className: "h-4 w-4" }), className: n, ...r }, o) => /* @__PURE__ */ m(
7222
+ "nav",
7223
+ {
7224
+ ref: o,
7225
+ "aria-label": "Breadcrumb",
7226
+ className: P("vero-breadcrumbs", "flex", n),
7227
+ ...r,
7228
+ children: /* @__PURE__ */ m("ol", { className: "flex flex-wrap items-center gap-1 pl-0", children: e.map((a, i) => /* @__PURE__ */ T("li", { className: "flex items-center gap-1", children: [
7229
+ a.href ? /* @__PURE__ */ m("a", { className: P(ce.link, ce.linkNoUnderline), href: a.href, children: a.label }) : /* @__PURE__ */ m("span", { "aria-current": "page", className: "font-medium text-foreground", children: a.label }),
7230
+ i < e.length - 1 ? /* @__PURE__ */ m("span", { className: "text-muted-foreground", children: t }) : null
7231
+ ] }, i)) })
7232
+ }
7233
+ )
7214
7234
  );
7215
7235
  ry.displayName = "Breadcrumbs";
7216
7236
  const bo = {}, yn = {};
@@ -7997,7 +8017,7 @@ function de(e, t) {
7997
8017
  const n = e < 0 ? "-" : "", r = Math.abs(e).toString().padStart(t, "0");
7998
8018
  return n + r;
7999
8019
  }
8000
- const vt = {
8020
+ const yt = {
8001
8021
  // Year
8002
8022
  y(e, t) {
8003
8023
  const n = e.getFullYear(), r = n > 0 ? n : 1 - n;
@@ -8083,7 +8103,7 @@ const vt = {
8083
8103
  const r = e.getFullYear(), o = r > 0 ? r : 1 - r;
8084
8104
  return n.ordinalNumber(o, { unit: "year" });
8085
8105
  }
8086
- return vt.y(e, t);
8106
+ return yt.y(e, t);
8087
8107
  },
8088
8108
  // Local week-numbering year
8089
8109
  Y: function(e, t, n, r) {
@@ -8186,7 +8206,7 @@ const vt = {
8186
8206
  switch (t) {
8187
8207
  case "M":
8188
8208
  case "MM":
8189
- return vt.M(e, t);
8209
+ return yt.M(e, t);
8190
8210
  // 1st, 2nd, ..., 12th
8191
8211
  case "Mo":
8192
8212
  return n.ordinalNumber(r + 1, { unit: "month" });
@@ -8251,7 +8271,7 @@ const vt = {
8251
8271
  },
8252
8272
  // Day of the month
8253
8273
  d: function(e, t, n) {
8254
- return t === "do" ? n.ordinalNumber(e.getDate(), { unit: "date" }) : vt.d(e, t);
8274
+ return t === "do" ? n.ordinalNumber(e.getDate(), { unit: "date" }) : yt.d(e, t);
8255
8275
  },
8256
8276
  // Day of year
8257
8277
  D: function(e, t, n) {
@@ -8497,11 +8517,11 @@ const vt = {
8497
8517
  let r = e.getHours() % 12;
8498
8518
  return r === 0 && (r = 12), n.ordinalNumber(r, { unit: "hour" });
8499
8519
  }
8500
- return vt.h(e, t);
8520
+ return yt.h(e, t);
8501
8521
  },
8502
8522
  // Hour [0-23]
8503
8523
  H: function(e, t, n) {
8504
- return t === "Ho" ? n.ordinalNumber(e.getHours(), { unit: "hour" }) : vt.H(e, t);
8524
+ return t === "Ho" ? n.ordinalNumber(e.getHours(), { unit: "hour" }) : yt.H(e, t);
8505
8525
  },
8506
8526
  // Hour [0-11]
8507
8527
  K: function(e, t, n) {
@@ -8515,15 +8535,15 @@ const vt = {
8515
8535
  },
8516
8536
  // Minute
8517
8537
  m: function(e, t, n) {
8518
- return t === "mo" ? n.ordinalNumber(e.getMinutes(), { unit: "minute" }) : vt.m(e, t);
8538
+ return t === "mo" ? n.ordinalNumber(e.getMinutes(), { unit: "minute" }) : yt.m(e, t);
8519
8539
  },
8520
8540
  // Second
8521
8541
  s: function(e, t, n) {
8522
- return t === "so" ? n.ordinalNumber(e.getSeconds(), { unit: "second" }) : vt.s(e, t);
8542
+ return t === "so" ? n.ordinalNumber(e.getSeconds(), { unit: "second" }) : yt.s(e, t);
8523
8543
  },
8524
8544
  // Fraction of second
8525
8545
  S: function(e, t) {
8526
- return vt.S(e, t);
8546
+ return yt.S(e, t);
8527
8547
  },
8528
8548
  // Timezone (ISO-8601. If offset is 0, output is always `'Z'`)
8529
8549
  X: function(e, t, n) {
@@ -8787,7 +8807,7 @@ function kb(e, t) {
8787
8807
  const n = pl(e, t), r = Pb(e, t);
8788
8808
  return t.addDays(n, r * 7 - 1);
8789
8809
  }
8790
- class mt {
8810
+ class pt {
8791
8811
  /**
8792
8812
  * Creates an instance of `DateLib`.
8793
8813
  *
@@ -8940,7 +8960,7 @@ class mt {
8940
8960
  return this.replaceDigits(t.toString());
8941
8961
  }
8942
8962
  }
8943
- const at = new mt();
8963
+ const at = new pt();
8944
8964
  class hl {
8945
8965
  constructor(t, n, r = at) {
8946
8966
  this.date = t, this.displayMonth = n, this.outside = !!(n && !r.isSameMonth(t, n)), this.dateLib = r;
@@ -9250,11 +9270,11 @@ function lw() {
9250
9270
  return e;
9251
9271
  }
9252
9272
  function Cl(e, t, n) {
9253
- return (n ?? new mt(t)).format(e, "LLLL y");
9273
+ return (n ?? new pt(t)).format(e, "LLLL y");
9254
9274
  }
9255
9275
  const uw = Cl;
9256
9276
  function dw(e, t, n) {
9257
- return (n ?? new mt(t)).format(e, "d");
9277
+ return (n ?? new pt(t)).format(e, "d");
9258
9278
  }
9259
9279
  function fw(e, t = at) {
9260
9280
  return t.format(e, "LLLL");
@@ -9266,7 +9286,7 @@ function pw() {
9266
9286
  return "";
9267
9287
  }
9268
9288
  function hw(e, t, n) {
9269
- return (n ?? new mt(t)).format(e, "cccccc");
9289
+ return (n ?? new pt(t)).format(e, "cccccc");
9270
9290
  }
9271
9291
  function Sl(e, t = at) {
9272
9292
  return t.format(e, "yyyy");
@@ -9333,15 +9353,15 @@ function Cw(e, t, n, r) {
9333
9353
  });
9334
9354
  }
9335
9355
  function Nl(e, t, n) {
9336
- return (n ?? new mt(t)).format(e, "LLLL y");
9356
+ return (n ?? new pt(t)).format(e, "LLLL y");
9337
9357
  }
9338
9358
  const Sw = Nl;
9339
9359
  function Nw(e, t, n, r) {
9340
- let o = (r ?? new mt(n)).format(e, "PPPP");
9360
+ let o = (r ?? new pt(n)).format(e, "PPPP");
9341
9361
  return t != null && t.today && (o = `Today, ${o}`), o;
9342
9362
  }
9343
9363
  function El(e, t, n, r) {
9344
- let o = (r ?? new mt(n)).format(e, "PPPP");
9364
+ let o = (r ?? new pt(n)).format(e, "PPPP");
9345
9365
  return t.today && (o = `Today, ${o}`), t.selected && (o = `${o}, selected`), o;
9346
9366
  }
9347
9367
  const Ew = El;
@@ -9358,7 +9378,7 @@ function kw(e) {
9358
9378
  return "Go to the Previous Month";
9359
9379
  }
9360
9380
  function Iw(e, t, n) {
9361
- return (n ?? new mt(t)).format(e, "cccc");
9381
+ return (n ?? new pt(t)).format(e, "cccc");
9362
9382
  }
9363
9383
  function Dw(e, t) {
9364
9384
  return `Week ${e}`;
@@ -9540,7 +9560,7 @@ function jw(e, t) {
9540
9560
  // initialMonth is always computed from props.month if provided
9541
9561
  e.month ? i : void 0
9542
9562
  );
9543
- wt(() => {
9563
+ dt(() => {
9544
9564
  const E = Ls(e, t);
9545
9565
  c(E);
9546
9566
  }, [e.timeZone]);
@@ -9739,7 +9759,7 @@ function ox(e) {
9739
9759
  const { components: n, formatters: r, labels: o, dateLib: a, locale: i, classNames: s } = jt(() => {
9740
9760
  const oe = { ...ka, ...t.locale };
9741
9761
  return {
9742
- dateLib: new mt({
9762
+ dateLib: new pt({
9743
9763
  locale: oe,
9744
9764
  weekStartsOn: t.broadcastCalendar ? 1 : t.weekStartsOn,
9745
9765
  firstWeekContainsDate: t.firstWeekContainsDate,
@@ -9779,7 +9799,7 @@ function ox(e) {
9779
9799
  }, [y, K]), Wf = le((oe, ge) => (me) => {
9780
9800
  H(), p == null || p(oe.date, ge, me);
9781
9801
  }, [H, p]), Bf = le((oe, ge) => (me) => {
9782
- const pt = {
9802
+ const ht = {
9783
9803
  ArrowLeft: ["day", t.dir === "rtl" ? "after" : "before"],
9784
9804
  ArrowRight: ["day", t.dir === "rtl" ? "before" : "after"],
9785
9805
  ArrowDown: ["week", "after"],
@@ -9789,9 +9809,9 @@ function ox(e) {
9789
9809
  Home: ["startOfWeek", "before"],
9790
9810
  End: ["endOfWeek", "after"]
9791
9811
  };
9792
- if (pt[me.key]) {
9812
+ if (ht[me.key]) {
9793
9813
  me.preventDefault(), me.stopPropagation();
9794
- const [Ve, Zn] = pt[me.key];
9814
+ const [Ve, Zn] = ht[me.key];
9795
9815
  j(Ve, Zn);
9796
9816
  }
9797
9817
  g == null || g(oe.date, ge, me);
@@ -9800,11 +9820,11 @@ function ox(e) {
9800
9820
  }, [v]), Vf = le((oe, ge) => (me) => {
9801
9821
  b == null || b(oe.date, ge, me);
9802
9822
  }, [b]), Yf = le((oe) => (ge) => {
9803
- const me = Number(ge.target.value), pt = a.setMonth(a.startOfMonth(oe), me);
9804
- te(pt);
9823
+ const me = Number(ge.target.value), ht = a.setMonth(a.startOfMonth(oe), me);
9824
+ te(ht);
9805
9825
  }, [a, te]), Gf = le((oe) => (ge) => {
9806
- const me = Number(ge.target.value), pt = a.setYear(a.startOfMonth(oe), me);
9807
- te(pt);
9826
+ const me = Number(ge.target.value), ht = a.setYear(a.startOfMonth(oe), me);
9827
+ te(ht);
9808
9828
  }, [a, te]), { className: Uf, style: zf } = jt(() => ({
9809
9829
  className: [s[z.Root], t.className].filter(Boolean).join(" "),
9810
9830
  style: { ...C == null ? void 0 : C[z.Root], ...t.style }
@@ -9842,7 +9862,7 @@ function ox(e) {
9842
9862
  { className: s[z.Months], style: C == null ? void 0 : C[z.Months] },
9843
9863
  !t.hideNavigation && !d && D.createElement(n.Nav, { "data-animated-nav": t.animate ? "true" : void 0, className: s[z.Nav], style: C == null ? void 0 : C[z.Nav], "aria-label": ie(), onPreviousClick: to, onNextClick: no, previousMonth: L, nextMonth: O }),
9844
9864
  q.map((oe, ge) => {
9845
- const me = bw(oe.date, F, J, r, a), pt = Cw(F, J, r, a);
9865
+ const me = bw(oe.date, F, J, r, a), ht = Cw(F, J, r, a);
9846
9866
  return D.createElement(
9847
9867
  n.Month,
9848
9868
  { "data-animated-month": t.animate ? "true" : void 0, className: s[z.Month], style: C == null ? void 0 : C[z.Month], key: ge, displayIndex: ge, calendarMonth: oe },
@@ -9855,7 +9875,7 @@ function ox(e) {
9855
9875
  n.DropdownNav,
9856
9876
  { className: s[z.Dropdowns], style: C == null ? void 0 : C[z.Dropdowns] },
9857
9877
  c === "dropdown" || c === "dropdown-months" ? D.createElement(n.MonthsDropdown, { className: s[z.MonthsDropdown], "aria-label": Q(), classNames: s, components: n, disabled: !!t.disableNavigation, onChange: Yf(oe.date), options: me, style: C == null ? void 0 : C[z.Dropdown], value: a.getMonth(oe.date) }) : D.createElement("span", null, M(oe.date, a)),
9858
- c === "dropdown" || c === "dropdown-years" ? D.createElement(n.YearsDropdown, { className: s[z.YearsDropdown], "aria-label": _f(a.options), classNames: s, components: n, disabled: !!t.disableNavigation, onChange: Gf(oe.date), options: pt, style: C == null ? void 0 : C[z.Dropdown], value: a.getYear(oe.date) }) : D.createElement("span", null, I(oe.date, a)),
9878
+ c === "dropdown" || c === "dropdown-years" ? D.createElement(n.YearsDropdown, { className: s[z.YearsDropdown], "aria-label": _f(a.options), classNames: s, components: n, disabled: !!t.disableNavigation, onChange: Gf(oe.date), options: ht, style: C == null ? void 0 : C[z.Dropdown], value: a.getYear(oe.date) }) : D.createElement("span", null, I(oe.date, a)),
9859
9879
  D.createElement("span", { role: "status", "aria-live": "polite", style: {
9860
9880
  border: 0,
9861
9881
  clip: "rect(0 0 0 0)",
@@ -9986,7 +10006,7 @@ function Da(e, t, n) {
9986
10006
  }
9987
10007
  const ix = () => Array.from({ length: 12 }, (e, t) => new Date(0, t).toLocaleString("en-US", { month: "long" })), cx = (e) => {
9988
10008
  const { onSelect: t } = e, n = Fe(null);
9989
- return wt(() => {
10009
+ return dt(() => {
9990
10010
  n.current && n.current.focus();
9991
10011
  }, []), /* @__PURE__ */ m(
9992
10012
  "div",
@@ -10019,7 +10039,7 @@ const ix = () => Array.from({ length: 12 }, (e, t) => new Date(0, t).toLocaleStr
10019
10039
  return a;
10020
10040
  }, ux = (e) => {
10021
10041
  const { onSelect: t, startMonth: n, endMonth: r } = e, o = Fe(null);
10022
- return wt(() => {
10042
+ return dt(() => {
10023
10043
  o.current && o.current.focus();
10024
10044
  }, []), /* @__PURE__ */ m(
10025
10045
  "div",
@@ -10106,7 +10126,7 @@ function Rl({ className: e, classNames: t, showOutsideDays: n = !0, ...r }) {
10106
10126
  return /* @__PURE__ */ m(
10107
10127
  ox,
10108
10128
  {
10109
- className: P("min-w-80 px-3 py-3", e),
10129
+ className: P("vero-calendar", "min-w-80 px-3 py-3", e),
10110
10130
  classNames: {
10111
10131
  months: "flex flex-col gap-4 sm:flex-row",
10112
10132
  month: "w-full space-y-4",
@@ -10185,7 +10205,7 @@ var Hr = "Checkbox", [fx, CE] = we(Hr), [mx, px] = fx(Hr), Pl = u.forwardRef(
10185
10205
  {
10186
10206
  type: "button",
10187
10207
  role: "checkbox",
10188
- "aria-checked": bt(b) ? "mixed" : b,
10208
+ "aria-checked": wt(b) ? "mixed" : b,
10189
10209
  "aria-required": i,
10190
10210
  "data-state": Ol(b),
10191
10211
  "data-disabled": s ? "" : void 0,
@@ -10197,7 +10217,7 @@ var Hr = "Checkbox", [fx, CE] = we(Hr), [mx, px] = fx(Hr), Pl = u.forwardRef(
10197
10217
  S.key === "Enter" && S.preventDefault();
10198
10218
  }),
10199
10219
  onClick: A(e.onClick, (S) => {
10200
- w((C) => bt(C) ? !0 : !C), v && (g.current = S.isPropagationStopped(), g.current || S.stopPropagation());
10220
+ w((C) => wt(C) ? !0 : !C), v && (g.current = S.isPropagationStopped(), g.current || S.stopPropagation());
10201
10221
  })
10202
10222
  }
10203
10223
  ),
@@ -10213,7 +10233,7 @@ var Hr = "Checkbox", [fx, CE] = we(Hr), [mx, px] = fx(Hr), Pl = u.forwardRef(
10213
10233
  disabled: s,
10214
10234
  form: d,
10215
10235
  style: { transform: "translateX(-100%)" },
10216
- defaultChecked: bt(a) ? !1 : a
10236
+ defaultChecked: wt(a) ? !1 : a
10217
10237
  }
10218
10238
  )
10219
10239
  ] });
@@ -10223,7 +10243,7 @@ Pl.displayName = Hr;
10223
10243
  var kl = "CheckboxIndicator", Il = u.forwardRef(
10224
10244
  (e, t) => {
10225
10245
  const { __scopeCheckbox: n, forceMount: r, ...o } = e, a = px(kl, n);
10226
- return /* @__PURE__ */ m(We, { present: r || bt(a.state) || a.state === !0, children: /* @__PURE__ */ m(
10246
+ return /* @__PURE__ */ m(We, { present: r || wt(a.state) || a.state === !0, children: /* @__PURE__ */ m(
10227
10247
  G.span,
10228
10248
  {
10229
10249
  "data-state": Ol(a.state),
@@ -10255,10 +10275,10 @@ var hx = "CheckboxBubbleInput", Dl = u.forwardRef(
10255
10275
  ).set;
10256
10276
  if (l !== n && g) {
10257
10277
  const v = new Event("click", { bubbles: r });
10258
- p.indeterminate = bt(n), g.call(p, bt(n) ? !1 : n), p.dispatchEvent(v);
10278
+ p.indeterminate = wt(n), g.call(p, wt(n) ? !1 : n), p.dispatchEvent(v);
10259
10279
  }
10260
10280
  }, [l, n, r]);
10261
- const f = u.useRef(bt(n) ? !1 : n);
10281
+ const f = u.useRef(wt(n) ? !1 : n);
10262
10282
  return /* @__PURE__ */ m(
10263
10283
  G.input,
10264
10284
  {
@@ -10281,11 +10301,11 @@ var hx = "CheckboxBubbleInput", Dl = u.forwardRef(
10281
10301
  }
10282
10302
  );
10283
10303
  Dl.displayName = hx;
10284
- function bt(e) {
10304
+ function wt(e) {
10285
10305
  return e === "indeterminate";
10286
10306
  }
10287
10307
  function Ol(e) {
10288
- return bt(e) ? "indeterminate" : e ? "checked" : "unchecked";
10308
+ return wt(e) ? "indeterminate" : e ? "checked" : "unchecked";
10289
10309
  }
10290
10310
  var Vr = Pl, gx = Il;
10291
10311
  const Al = u.forwardRef(
@@ -10299,6 +10319,7 @@ const Al = u.forwardRef(
10299
10319
  "div",
10300
10320
  {
10301
10321
  className: P(
10322
+ "vero-checkbox",
10302
10323
  "relative",
10303
10324
  r ? P(ce.button, ut({ variant: "primary" })) : P(ce.button, ut({ variant: "input" })),
10304
10325
  o && "pointer-events-none cursor-not-allowed opacity-50",
@@ -10341,7 +10362,14 @@ var vx = "Label", Tl = u.forwardRef((e, t) => /* @__PURE__ */ m(
10341
10362
  Tl.displayName = vx;
10342
10363
  var _l = Tl;
10343
10364
  const Tt = u.forwardRef(
10344
- ({ className: e, ...t }, n) => /* @__PURE__ */ m(_l, { ref: n, className: P(ce.text.label, e), ...t })
10365
+ ({ className: e, ...t }, n) => /* @__PURE__ */ m(
10366
+ _l,
10367
+ {
10368
+ ref: n,
10369
+ className: P("vero-label", ce.text.label, e),
10370
+ ...t
10371
+ }
10372
+ )
10345
10373
  );
10346
10374
  Tt.displayName = _l.displayName;
10347
10375
  const $l = "peer h-5 w-5 shrink-0 rounded-sm border-2 border-gray-500 ring-offset-background disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:border-primary-400 data-[state=checked]:bg-primary-400 data-[state=checked]:text-white", Fl = u.forwardRef(
@@ -10355,6 +10383,7 @@ const $l = "peer h-5 w-5 shrink-0 rounded-sm border-2 border-gray-500 ring-offse
10355
10383
  "div",
10356
10384
  {
10357
10385
  className: P(
10386
+ "vero-checkbox",
10358
10387
  "flex items-start gap-2",
10359
10388
  o && "cursor-not-allowed opacity-50 [&>*]:cursor-not-allowed"
10360
10389
  ),
@@ -10420,6 +10449,7 @@ const Ll = u.forwardRef(
10420
10449
  "div",
10421
10450
  {
10422
10451
  className: P(
10452
+ "vero-checkbox",
10423
10453
  "relative rounded-lg border-2 border-muted bg-popover px-4 py-4",
10424
10454
  r && "border-primary-400",
10425
10455
  o ? "cursor-not-allowed opacity-50 [&_*]:cursor-not-allowed" : "cursor-pointer hover:bg-accent hover:text-accent-foreground",
@@ -10506,24 +10536,33 @@ const yx = u.forwardRef(
10506
10536
  ...l
10507
10537
  }, d) => {
10508
10538
  const f = ca({ variant: c, orientation: s, columns: o }), p = Zt(), h = a ?? p;
10509
- return /* @__PURE__ */ m("div", { ref: d, className: P(f, r), id: a, ...l, children: e.map((y) => {
10510
- const g = y.inputId ?? `${h}-${y.id}`;
10511
- return /* @__PURE__ */ m(
10512
- Wl,
10513
- {
10514
- description: y.description,
10515
- id: g,
10516
- isChecked: t.includes(y.id),
10517
- isDisabled: i || y.isDisabled,
10518
- label: y.label,
10519
- variant: c,
10520
- onCheckedChange: (v) => {
10521
- n(v ? [...t, y.id] : t.filter((b) => b !== y.id));
10522
- }
10523
- },
10524
- y.id
10525
- );
10526
- }) });
10539
+ return /* @__PURE__ */ m(
10540
+ "div",
10541
+ {
10542
+ ref: d,
10543
+ className: P("vero-checkbox-group", f, r),
10544
+ id: a,
10545
+ ...l,
10546
+ children: e.map((y) => {
10547
+ const g = y.inputId ?? `${h}-${y.id}`;
10548
+ return /* @__PURE__ */ m(
10549
+ Wl,
10550
+ {
10551
+ description: y.description,
10552
+ id: g,
10553
+ isChecked: t.includes(y.id),
10554
+ isDisabled: i || y.isDisabled,
10555
+ label: y.label,
10556
+ variant: c,
10557
+ onCheckedChange: (v) => {
10558
+ n(v ? [...t, y.id] : t.filter((b) => b !== y.id));
10559
+ }
10560
+ },
10561
+ y.id
10562
+ );
10563
+ })
10564
+ }
10565
+ );
10527
10566
  }
10528
10567
  );
10529
10568
  yx.displayName = "CheckboxGroup";
@@ -10562,10 +10601,12 @@ const wx = D.forwardRef(
10562
10601
  "aria-expanded": b,
10563
10602
  autoFocus: y,
10564
10603
  className: P(
10604
+ "vero-combobox",
10565
10605
  "w-full justify-between px-3",
10566
10606
  !t && "text-muted-foreground",
10567
10607
  s
10568
10608
  ),
10609
+ "data-component": "combobox",
10569
10610
  isDisabled: f,
10570
10611
  variant: "input",
10571
10612
  ...g,
@@ -10653,6 +10694,7 @@ const xx = D.forwardRef(
10653
10694
  "aria-required": l,
10654
10695
  autoFocus: d,
10655
10696
  className: P(
10697
+ "vero-date-picker",
10656
10698
  "w-full justify-start px-3 text-left font-normal",
10657
10699
  !e && "text-muted-foreground",
10658
10700
  a
@@ -10709,7 +10751,7 @@ const Cx = u.forwardRef(
10709
10751
  if (v > b) return t({ from: b, to: v });
10710
10752
  if (v.getTime() === b.getTime()) return t({ from: void 0, to: void 0 });
10711
10753
  }, g = (v) => v.from ? v.to ? `${v.from.toISOString().split("T")[0]},${v.to.toISOString().split("T")[0]}` : v.from.toISOString().split("T")[0] : "";
10712
- return /* @__PURE__ */ T("div", { className: P("grid gap-2", r), children: [
10754
+ return /* @__PURE__ */ T("div", { className: P("vero-date-range-picker", "grid gap-2", r), children: [
10713
10755
  c || l ? /* @__PURE__ */ m("input", { name: c, required: l, type: "hidden", value: g(e) }) : null,
10714
10756
  /* @__PURE__ */ T(Hn, { children: [
10715
10757
  /* @__PURE__ */ m(Vn, { asChild: !0, children: /* @__PURE__ */ T(
@@ -11751,7 +11793,7 @@ const r0 = u.forwardRef(
11751
11793
  nt,
11752
11794
  {
11753
11795
  ref: c,
11754
- className: P("flex items-center gap-1", e),
11796
+ className: P("vero-dropdown-button", "flex items-center gap-1", e),
11755
11797
  isDisabled: a,
11756
11798
  variant: o,
11757
11799
  ...s,
@@ -11818,7 +11860,7 @@ const o0 = u.forwardRef(
11818
11860
  "div",
11819
11861
  {
11820
11862
  ref: l,
11821
- className: P("space-y-1", o),
11863
+ className: P("vero-form-item", "space-y-1", o),
11822
11864
  ...c,
11823
11865
  "data-error": r ? "true" : void 0,
11824
11866
  children: [
@@ -11842,12 +11884,16 @@ const o0 = u.forwardRef(
11842
11884
  o0.displayName = "FormItem";
11843
11885
  const a0 = D.forwardRef(
11844
11886
  ({ src: e, alt: t, fallback: n, isLazy: r = !0, shape: o = "square", className: a, onError: i, ...s }, c) => {
11845
- const [l, d] = be(!1), [f, p] = be(!0), h = (v) => {
11887
+ const [l, d] = be(!1), [f, p] = be(!0);
11888
+ dt(() => {
11889
+ d(!1), p(!0);
11890
+ }, [e]);
11891
+ const h = (v) => {
11846
11892
  d(!0), i == null || i(v);
11847
11893
  }, y = () => {
11848
11894
  p(!1);
11849
11895
  };
11850
- return /* @__PURE__ */ T("div", { className: P("relative overflow-hidden", {
11896
+ return /* @__PURE__ */ T("div", { className: P("vero-image", "relative overflow-hidden", {
11851
11897
  square: "",
11852
11898
  rounded: "rounded-lg",
11853
11899
  circle: "rounded-full"
@@ -11899,7 +11945,7 @@ const s0 = u.forwardRef(
11899
11945
  "input",
11900
11946
  {
11901
11947
  ref: i,
11902
- className: P(ce.input, e),
11948
+ className: P("vero-input", ce.input, e),
11903
11949
  type: t,
11904
11950
  onChange: c,
11905
11951
  ...a,
@@ -11931,7 +11977,7 @@ const i0 = D.forwardRef(
11931
11977
  var I;
11932
11978
  return ((I = e.find((B) => B.value === k)) == null ? void 0 : I.label) || k;
11933
11979
  }), S = _e({ isDisabled: d }), C = Fe(null), E = Fe([]);
11934
- wt(() => {
11980
+ dt(() => {
11935
11981
  h && C.current && C.current.focus();
11936
11982
  }, [h]);
11937
11983
  const N = le(
@@ -11997,12 +12043,14 @@ const i0 = D.forwardRef(
11997
12043
  "aria-expanded": v,
11998
12044
  "aria-haspopup": "listbox",
11999
12045
  className: P(
12046
+ "vero-multi-select",
12000
12047
  ce.button,
12001
12048
  ut({ variant: "input" }),
12002
12049
  ce.focusRing,
12003
12050
  "flex h-auto min-h-[2.5rem] w-full items-stretch justify-between px-3 py-1.5",
12004
12051
  i
12005
12052
  ),
12053
+ "data-component": "multi-select",
12006
12054
  role: "button",
12007
12055
  tabIndex: 0,
12008
12056
  onClick: (k) => {
@@ -12458,6 +12506,7 @@ const Yu = u.forwardRef(
12458
12506
  "div",
12459
12507
  {
12460
12508
  className: P(
12509
+ "vero-radio",
12461
12510
  "relative",
12462
12511
  ce.button,
12463
12512
  ut({ variant: "input" }),
@@ -12501,6 +12550,7 @@ const Gu = "aspect-square h-5 w-5 rounded-full border-2 border-gray-500 text-pri
12501
12550
  "div",
12502
12551
  {
12503
12552
  className: P(
12553
+ "vero-radio",
12504
12554
  "flex items-start gap-2",
12505
12555
  o && "cursor-not-allowed opacity-50 [&>*]:cursor-not-allowed"
12506
12556
  ),
@@ -12560,6 +12610,7 @@ const zu = u.forwardRef(
12560
12610
  "div",
12561
12611
  {
12562
12612
  className: P(
12613
+ "vero-radio",
12563
12614
  "group relative rounded-lg border-2 border-muted bg-popover px-4 py-4",
12564
12615
  "has-[[data-state=checked]]:border-primary-400",
12565
12616
  o ? "cursor-not-allowed opacity-50 [&_*]:cursor-not-allowed" : "cursor-pointer hover:bg-accent hover:text-accent-foreground",
@@ -12660,7 +12711,7 @@ const D0 = u.forwardRef(
12660
12711
  k0,
12661
12712
  {
12662
12713
  ref: f,
12663
- className: P(p, o),
12714
+ className: P("vero-radio-group", p, o),
12664
12715
  id: i,
12665
12716
  value: n,
12666
12717
  onValueChange: r,
@@ -13576,6 +13627,7 @@ const kd = u.forwardRef(({ className: e, children: t, isDisabled: n = !1, hasVal
13576
13627
  {
13577
13628
  ref: a,
13578
13629
  className: P(
13630
+ "vero-select",
13579
13631
  ce.input,
13580
13632
  ce.focusRing,
13581
13633
  `min-w-0 items-center justify-between text-left [&>span]:min-w-0 [&>span]:flex-1
@@ -13913,6 +13965,7 @@ function ES({
13913
13965
  ref: c,
13914
13966
  "aria-label": "Step indicator",
13915
13967
  className: P(
13968
+ "vero-step-indicator",
13916
13969
  vS({ orientation: "horizontal" }),
13917
13970
  e
13918
13971
  ),
@@ -14085,7 +14138,7 @@ const DS = `peer inline-flex h-6 w-11 shrink-0 cursor-pointer items-center round
14085
14138
  ...i
14086
14139
  }, s) => {
14087
14140
  const c = _e({ isDisabled: a }), l = Zt(), d = n ?? l;
14088
- return Da("Switch", t, r), /* @__PURE__ */ T("div", { className: "flex items-center space-x-2", children: [
14141
+ return Da("Switch", t, r), /* @__PURE__ */ T("div", { className: P("vero-switch", "flex items-center space-x-2"), children: [
14089
14142
  /* @__PURE__ */ m(
14090
14143
  Bd,
14091
14144
  {
@@ -14140,7 +14193,7 @@ const OS = D.forwardRef(
14140
14193
  },
14141
14194
  [n, t]
14142
14195
  );
14143
- return /* @__PURE__ */ m("div", { ref: c, className: P(l, r), ...s, children: e.map((f) => /* @__PURE__ */ m(
14196
+ return /* @__PURE__ */ m("div", { ref: c, className: P("vero-switch-group", l, r), ...s, children: e.map((f) => /* @__PURE__ */ m(
14144
14197
  Hd,
14145
14198
  {
14146
14199
  id: f.id,
@@ -14636,7 +14689,15 @@ function of(e, t) {
14636
14689
  }
14637
14690
  var af = Xd, sf = Qd, cf = ef, lf = nf;
14638
14691
  const rN = u.forwardRef(
14639
- ({ ...e }, t) => /* @__PURE__ */ m(af, { ref: t, activationMode: "manual", ...e })
14692
+ ({ ...e }, t) => /* @__PURE__ */ m(
14693
+ af,
14694
+ {
14695
+ ref: t,
14696
+ activationMode: "manual",
14697
+ ...e,
14698
+ className: P("vero-tabs", e.className)
14699
+ }
14700
+ )
14640
14701
  );
14641
14702
  rN.displayName = af.displayName;
14642
14703
  const oN = u.forwardRef(
@@ -14686,7 +14747,7 @@ sN.displayName = lf.displayName;
14686
14747
  const iN = D.forwardRef(
14687
14748
  ({ className: e, isDisabled: t = !1, isGrowable: n = !1, ...r }, o) => {
14688
14749
  const a = Fe(null), i = _e({ isDisabled: t });
14689
- return wt(() => {
14750
+ return dt(() => {
14690
14751
  if (n && a.current) {
14691
14752
  const s = a.current, c = () => {
14692
14753
  s.style.height = "auto", s.style.height = `${s.scrollHeight}px`;
@@ -14700,6 +14761,7 @@ const iN = D.forwardRef(
14700
14761
  typeof o == "function" ? o(s) : o && (o.current = s), a.current = s;
14701
14762
  },
14702
14763
  className: P(
14764
+ "vero-textarea",
14703
14765
  ce.input,
14704
14766
  "min-h-[5rem]",
14705
14767
  n && "resize-none overflow-hidden",
@@ -15566,7 +15628,7 @@ const iE = u.forwardRef(
15566
15628
  {
15567
15629
  ref: p,
15568
15630
  align: r,
15569
- className: P(ce.tooltip, i),
15631
+ className: P("vero-tooltip", ce.tooltip, i),
15570
15632
  side: n,
15571
15633
  sideOffset: o,
15572
15634
  style: { zIndex: h, ...f.style },