@gv-tech/ui-web 2.15.2 → 2.16.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.
Files changed (133) hide show
  1. package/dist/accordion.cjs +1 -1
  2. package/dist/accordion.mjs +3 -3
  3. package/dist/alert-dialog.cjs +2 -2
  4. package/dist/alert-dialog.mjs +16 -16
  5. package/dist/alert.cjs +1 -1
  6. package/dist/alert.mjs +1 -1
  7. package/dist/avatar.cjs +1 -1
  8. package/dist/avatar.mjs +34 -34
  9. package/dist/badge.cjs +1 -1
  10. package/dist/badge.mjs +1 -1
  11. package/dist/breadcrumb.cjs +1 -1
  12. package/dist/breadcrumb.mjs +1 -1
  13. package/dist/button.cjs +1 -1
  14. package/dist/button.mjs +1 -1
  15. package/dist/calendar.cjs +1 -1
  16. package/dist/calendar.mjs +1 -1
  17. package/dist/card.cjs +1 -1
  18. package/dist/card.mjs +1 -1
  19. package/dist/carousel.cjs +1 -1
  20. package/dist/carousel.mjs +1 -1
  21. package/dist/chart.cjs +1 -1
  22. package/dist/chart.mjs +1 -1
  23. package/dist/checkbox.cjs +1 -1
  24. package/dist/checkbox.mjs +2 -2
  25. package/dist/command.cjs +1 -1
  26. package/dist/command.mjs +114 -114
  27. package/dist/context-menu.cjs +1 -1
  28. package/dist/context-menu.mjs +68 -68
  29. package/dist/dialog.cjs +1 -1
  30. package/dist/dialog.mjs +21 -21
  31. package/dist/drawer.cjs +1 -1
  32. package/dist/drawer.mjs +16 -16
  33. package/dist/dropdown-menu.cjs +1 -1
  34. package/dist/dropdown-menu.mjs +43 -43
  35. package/dist/form.cjs +1 -1
  36. package/dist/form.mjs +1 -1
  37. package/dist/hover-card.cjs +1 -1
  38. package/dist/hover-card.mjs +2 -2
  39. package/dist/index.cjs +1 -1
  40. package/dist/index.d.ts +28 -0
  41. package/dist/index.mjs +22 -20
  42. package/dist/input.cjs +1 -1
  43. package/dist/input.mjs +1 -1
  44. package/dist/label.cjs +1 -1
  45. package/dist/label.mjs +2 -2
  46. package/dist/menubar.cjs +1 -1
  47. package/dist/menubar.mjs +77 -77
  48. package/dist/navigation-menu.cjs +1 -1
  49. package/dist/navigation-menu.mjs +57 -57
  50. package/dist/pagination.cjs +1 -1
  51. package/dist/pagination.mjs +1 -1
  52. package/dist/popover.cjs +1 -1
  53. package/dist/popover.mjs +62 -62
  54. package/dist/progress.cjs +2 -2
  55. package/dist/progress.mjs +2 -2
  56. package/dist/radio-group.cjs +1 -1
  57. package/dist/radio-group.mjs +36 -36
  58. package/dist/resizable.cjs +1 -1
  59. package/dist/resizable.mjs +1 -1
  60. package/dist/scroll-area.cjs +1 -1
  61. package/dist/scroll-area.mjs +88 -88
  62. package/dist/search.cjs +1 -1
  63. package/dist/search.mjs +1 -1
  64. package/dist/select.cjs +1 -1
  65. package/dist/select.mjs +74 -74
  66. package/dist/separator.cjs +1 -1
  67. package/dist/separator.mjs +9 -9
  68. package/dist/sheet.cjs +1 -1
  69. package/dist/sheet.mjs +12 -12
  70. package/dist/skeleton.cjs +1 -1
  71. package/dist/skeleton.mjs +1 -1
  72. package/dist/slider.cjs +1 -1
  73. package/dist/slider.mjs +2 -2
  74. package/dist/switch.cjs +1 -1
  75. package/dist/switch.mjs +12 -12
  76. package/dist/table-of-contents.cjs +1 -0
  77. package/dist/table-of-contents.d.ts +35 -0
  78. package/dist/table-of-contents.mjs +160 -0
  79. package/dist/table.cjs +1 -1
  80. package/dist/table.mjs +1 -1
  81. package/dist/tabs.cjs +1 -1
  82. package/dist/tabs.mjs +41 -41
  83. package/dist/text.cjs +1 -1
  84. package/dist/text.mjs +1 -1
  85. package/dist/textarea.cjs +1 -1
  86. package/dist/textarea.mjs +1 -1
  87. package/dist/{theme-toggle-B4VZTDpe.js → theme-toggle-DXQGNfCe.js} +1 -1
  88. package/dist/{theme-toggle-WtPW9UZi.mjs → theme-toggle-tHXIbr8W.mjs} +1 -1
  89. package/dist/theme-toggle.cjs +1 -1
  90. package/dist/theme-toggle.mjs +2 -2
  91. package/dist/toast.cjs +1 -1
  92. package/dist/toast.mjs +35 -35
  93. package/dist/toggle-group.cjs +1 -1
  94. package/dist/toggle-group.mjs +15 -15
  95. package/dist/toggle.cjs +1 -1
  96. package/dist/toggle.mjs +4 -4
  97. package/dist/tooltip.cjs +1 -1
  98. package/dist/tooltip.mjs +3 -3
  99. package/dist/utils-DY6fhrgS.mjs +12 -0
  100. package/dist/utils-cdbZV8DZ.js +1 -0
  101. package/package.json +1 -1
  102. package/src/accordion.tsx +2 -2
  103. package/src/alert-dialog.tsx +6 -6
  104. package/src/avatar.tsx +3 -3
  105. package/src/checkbox.tsx +1 -1
  106. package/src/command.tsx +7 -7
  107. package/src/context-menu.tsx +8 -8
  108. package/src/dialog.tsx +4 -4
  109. package/src/drawer.tsx +3 -3
  110. package/src/dropdown-menu.tsx +8 -8
  111. package/src/hover-card.tsx +1 -1
  112. package/src/index.ts +4 -1
  113. package/src/label.tsx +1 -1
  114. package/src/lib/utils.ts +10 -0
  115. package/src/menubar.tsx +10 -10
  116. package/src/navigation-menu.tsx +6 -6
  117. package/src/popover.tsx +1 -1
  118. package/src/progress.tsx +1 -1
  119. package/src/radio-group.tsx +2 -2
  120. package/src/scroll-area.tsx +2 -2
  121. package/src/select.tsx +7 -7
  122. package/src/separator.tsx +1 -1
  123. package/src/sheet.tsx +4 -4
  124. package/src/slider.tsx +1 -1
  125. package/src/switch.tsx +1 -1
  126. package/src/table-of-contents.tsx +285 -0
  127. package/src/tabs.tsx +3 -3
  128. package/src/toast.tsx +6 -6
  129. package/src/toggle-group.tsx +2 -2
  130. package/src/toggle.tsx +1 -1
  131. package/src/tooltip.tsx +2 -2
  132. package/dist/utils-B6yFEsav.mjs +0 -8
  133. package/dist/utils-IjLH3w2e.js +0 -1
package/dist/popover.mjs CHANGED
@@ -11,20 +11,20 @@ import { c as _, C as Z, R as q, A as w, a as B } from "./index-CwfE56Ep.mjs";
11
11
  import { P as J } from "./index-C7HEunrh.mjs";
12
12
  import { P as j } from "./index-vuPgkS0V.mjs";
13
13
  import { u as Q } from "./index-p6xVFRb4.mjs";
14
- import { c as X } from "./utils-B6yFEsav.mjs";
14
+ import { c as X } from "./utils-DY6fhrgS.mjs";
15
15
  var C = "Popover", [E] = z(C, [
16
16
  _
17
- ]), P = _(), [Y, l] = E(C), b = (e) => {
17
+ ]), P = _(), [Y, l] = E(C), b = (o) => {
18
18
  const {
19
19
  __scopePopover: n,
20
20
  children: t,
21
21
  open: a,
22
- defaultOpen: o,
22
+ defaultOpen: e,
23
23
  onOpenChange: r,
24
24
  modal: i = !1
25
- } = e, p = P(n), f = c.useRef(null), [v, g] = c.useState(!1), [h, u] = Q({
25
+ } = o, p = P(n), f = c.useRef(null), [v, g] = c.useState(!1), [h, u] = Q({
26
26
  prop: a,
27
- defaultProp: o ?? !1,
27
+ defaultProp: e ?? !1,
28
28
  onChange: r,
29
29
  caller: C
30
30
  });
@@ -47,63 +47,63 @@ var C = "Popover", [E] = z(C, [
47
47
  };
48
48
  b.displayName = C;
49
49
  var N = "PopoverAnchor", F = c.forwardRef(
50
- (e, n) => {
51
- const { __scopePopover: t, ...a } = e, o = l(N, t), r = P(t), { onCustomAnchorAdd: i, onCustomAnchorRemove: p } = o;
50
+ (o, n) => {
51
+ const { __scopePopover: t, ...a } = o, e = l(N, t), r = P(t), { onCustomAnchorAdd: i, onCustomAnchorRemove: p } = e;
52
52
  return c.useEffect(() => (i(), () => p()), [i, p]), /* @__PURE__ */ s.jsx(w, { ...r, ...a, ref: n });
53
53
  }
54
54
  );
55
55
  F.displayName = N;
56
56
  var y = "PopoverTrigger", S = c.forwardRef(
57
- (e, n) => {
58
- const { __scopePopover: t, ...a } = e, o = l(y, t), r = P(t), i = O(n, o.triggerRef), p = /* @__PURE__ */ s.jsx(
57
+ (o, n) => {
58
+ const { __scopePopover: t, ...a } = o, e = l(y, t), r = P(t), i = O(n, e.triggerRef), p = /* @__PURE__ */ s.jsx(
59
59
  A.button,
60
60
  {
61
61
  type: "button",
62
62
  "aria-haspopup": "dialog",
63
- "aria-expanded": o.open,
64
- "aria-controls": o.contentId,
65
- "data-state": I(o.open),
63
+ "aria-expanded": e.open,
64
+ "aria-controls": e.contentId,
65
+ "data-state": I(e.open),
66
66
  ...a,
67
67
  ref: i,
68
- onClick: m(e.onClick, o.onOpenToggle)
68
+ onClick: m(o.onClick, e.onOpenToggle)
69
69
  }
70
70
  );
71
- return o.hasCustomAnchor ? p : /* @__PURE__ */ s.jsx(w, { asChild: !0, ...r, children: p });
71
+ return e.hasCustomAnchor ? p : /* @__PURE__ */ s.jsx(w, { asChild: !0, ...r, children: p });
72
72
  }
73
73
  );
74
74
  S.displayName = y;
75
- var R = "PopoverPortal", [ee, oe] = E(R, {
75
+ var R = "PopoverPortal", [oo, eo] = E(R, {
76
76
  forceMount: void 0
77
- }), D = (e) => {
78
- const { __scopePopover: n, forceMount: t, children: a, container: o } = e, r = l(R, n);
79
- return /* @__PURE__ */ s.jsx(ee, { scope: n, forceMount: t, children: /* @__PURE__ */ s.jsx(j, { present: t || r.open, children: /* @__PURE__ */ s.jsx(J, { asChild: !0, container: o, children: a }) }) });
77
+ }), D = (o) => {
78
+ const { __scopePopover: n, forceMount: t, children: a, container: e } = o, r = l(R, n);
79
+ return /* @__PURE__ */ s.jsx(oo, { scope: n, forceMount: t, children: /* @__PURE__ */ s.jsx(j, { present: t || r.open, children: /* @__PURE__ */ s.jsx(J, { asChild: !0, container: e, children: a }) }) });
80
80
  };
81
81
  D.displayName = R;
82
82
  var d = "PopoverContent", M = c.forwardRef(
83
- (e, n) => {
84
- const t = oe(d, e.__scopePopover), { forceMount: a = t.forceMount, ...o } = e, r = l(d, e.__scopePopover);
85
- return /* @__PURE__ */ s.jsx(j, { present: a || r.open, children: r.modal ? /* @__PURE__ */ s.jsx(re, { ...o, ref: n }) : /* @__PURE__ */ s.jsx(ne, { ...o, ref: n }) });
83
+ (o, n) => {
84
+ const t = eo(d, o.__scopePopover), { forceMount: a = t.forceMount, ...e } = o, r = l(d, o.__scopePopover);
85
+ return /* @__PURE__ */ s.jsx(j, { present: a || r.open, children: r.modal ? /* @__PURE__ */ s.jsx(ro, { ...e, ref: n }) : /* @__PURE__ */ s.jsx(no, { ...e, ref: n }) });
86
86
  }
87
87
  );
88
88
  M.displayName = d;
89
- var te = L("PopoverContent.RemoveScroll"), re = c.forwardRef(
90
- (e, n) => {
91
- const t = l(d, e.__scopePopover), a = c.useRef(null), o = O(n, a), r = c.useRef(!1);
89
+ var to = L("PopoverContent.RemoveScroll"), ro = c.forwardRef(
90
+ (o, n) => {
91
+ const t = l(d, o.__scopePopover), a = c.useRef(null), e = O(n, a), r = c.useRef(!1);
92
92
  return c.useEffect(() => {
93
93
  const i = a.current;
94
94
  if (i) return H(i);
95
- }, []), /* @__PURE__ */ s.jsx(K, { as: te, allowPinchZoom: !0, children: /* @__PURE__ */ s.jsx(
95
+ }, []), /* @__PURE__ */ s.jsx(K, { as: to, allowPinchZoom: !0, children: /* @__PURE__ */ s.jsx(
96
96
  T,
97
97
  {
98
- ...e,
99
- ref: o,
98
+ ...o,
99
+ ref: e,
100
100
  trapFocus: t.open,
101
101
  disableOutsidePointerEvents: !0,
102
- onCloseAutoFocus: m(e.onCloseAutoFocus, (i) => {
102
+ onCloseAutoFocus: m(o.onCloseAutoFocus, (i) => {
103
103
  i.preventDefault(), r.current || t.triggerRef.current?.focus();
104
104
  }),
105
105
  onPointerDownOutside: m(
106
- e.onPointerDownOutside,
106
+ o.onPointerDownOutside,
107
107
  (i) => {
108
108
  const p = i.detail.originalEvent, f = p.button === 0 && p.ctrlKey === !0, v = p.button === 2 || f;
109
109
  r.current = v;
@@ -111,40 +111,40 @@ var te = L("PopoverContent.RemoveScroll"), re = c.forwardRef(
111
111
  { checkForDefaultPrevented: !1 }
112
112
  ),
113
113
  onFocusOutside: m(
114
- e.onFocusOutside,
114
+ o.onFocusOutside,
115
115
  (i) => i.preventDefault(),
116
116
  { checkForDefaultPrevented: !1 }
117
117
  )
118
118
  }
119
119
  ) });
120
120
  }
121
- ), ne = c.forwardRef(
122
- (e, n) => {
123
- const t = l(d, e.__scopePopover), a = c.useRef(!1), o = c.useRef(!1);
121
+ ), no = c.forwardRef(
122
+ (o, n) => {
123
+ const t = l(d, o.__scopePopover), a = c.useRef(!1), e = c.useRef(!1);
124
124
  return /* @__PURE__ */ s.jsx(
125
125
  T,
126
126
  {
127
- ...e,
127
+ ...o,
128
128
  ref: n,
129
129
  trapFocus: !1,
130
130
  disableOutsidePointerEvents: !1,
131
131
  onCloseAutoFocus: (r) => {
132
- e.onCloseAutoFocus?.(r), r.defaultPrevented || (a.current || t.triggerRef.current?.focus(), r.preventDefault()), a.current = !1, o.current = !1;
132
+ o.onCloseAutoFocus?.(r), r.defaultPrevented || (a.current || t.triggerRef.current?.focus(), r.preventDefault()), a.current = !1, e.current = !1;
133
133
  },
134
134
  onInteractOutside: (r) => {
135
- e.onInteractOutside?.(r), r.defaultPrevented || (a.current = !0, r.detail.originalEvent.type === "pointerdown" && (o.current = !0));
135
+ o.onInteractOutside?.(r), r.defaultPrevented || (a.current = !0, r.detail.originalEvent.type === "pointerdown" && (e.current = !0));
136
136
  const i = r.target;
137
- t.triggerRef.current?.contains(i) && r.preventDefault(), r.detail.originalEvent.type === "focusin" && o.current && r.preventDefault();
137
+ t.triggerRef.current?.contains(i) && r.preventDefault(), r.detail.originalEvent.type === "focusin" && e.current && r.preventDefault();
138
138
  }
139
139
  }
140
140
  );
141
141
  }
142
142
  ), T = c.forwardRef(
143
- (e, n) => {
143
+ (o, n) => {
144
144
  const {
145
145
  __scopePopover: t,
146
146
  trapFocus: a,
147
- onOpenAutoFocus: o,
147
+ onOpenAutoFocus: e,
148
148
  onCloseAutoFocus: r,
149
149
  disableOutsidePointerEvents: i,
150
150
  onEscapeKeyDown: p,
@@ -152,14 +152,14 @@ var te = L("PopoverContent.RemoveScroll"), re = c.forwardRef(
152
152
  onFocusOutside: v,
153
153
  onInteractOutside: g,
154
154
  ...h
155
- } = e, u = l(d, t), x = P(t);
155
+ } = o, u = l(d, t), x = P(t);
156
156
  return U(), /* @__PURE__ */ s.jsx(
157
157
  V,
158
158
  {
159
159
  asChild: !0,
160
160
  loop: !0,
161
161
  trapped: a,
162
- onMountAutoFocus: o,
162
+ onMountAutoFocus: e,
163
163
  onUnmountAutoFocus: r,
164
164
  children: /* @__PURE__ */ s.jsx(
165
165
  G,
@@ -195,49 +195,49 @@ var te = L("PopoverContent.RemoveScroll"), re = c.forwardRef(
195
195
  }
196
196
  );
197
197
  }
198
- ), k = "PopoverClose", ae = c.forwardRef(
199
- (e, n) => {
200
- const { __scopePopover: t, ...a } = e, o = l(k, t);
198
+ ), k = "PopoverClose", ao = c.forwardRef(
199
+ (o, n) => {
200
+ const { __scopePopover: t, ...a } = o, e = l(k, t);
201
201
  return /* @__PURE__ */ s.jsx(
202
202
  A.button,
203
203
  {
204
204
  type: "button",
205
205
  ...a,
206
206
  ref: n,
207
- onClick: m(e.onClick, () => o.onOpenChange(!1))
207
+ onClick: m(o.onClick, () => e.onOpenChange(!1))
208
208
  }
209
209
  );
210
210
  }
211
211
  );
212
- ae.displayName = k;
213
- var se = "PopoverArrow", ce = c.forwardRef(
214
- (e, n) => {
215
- const { __scopePopover: t, ...a } = e, o = P(t);
216
- return /* @__PURE__ */ s.jsx(B, { ...o, ...a, ref: n });
212
+ ao.displayName = k;
213
+ var so = "PopoverArrow", co = c.forwardRef(
214
+ (o, n) => {
215
+ const { __scopePopover: t, ...a } = o, e = P(t);
216
+ return /* @__PURE__ */ s.jsx(B, { ...e, ...a, ref: n });
217
217
  }
218
218
  );
219
- ce.displayName = se;
220
- function I(e) {
221
- return e ? "open" : "closed";
219
+ co.displayName = so;
220
+ function I(o) {
221
+ return o ? "open" : "closed";
222
222
  }
223
- var ie = b, pe = F, le = S, ue = D, $ = M;
224
- const we = ie, je = le, Ee = pe, de = c.forwardRef(({ className: e, align: n = "center", sideOffset: t = 4, ...a }, o) => /* @__PURE__ */ s.jsx(ue, { children: /* @__PURE__ */ s.jsx(
223
+ var io = b, po = F, lo = S, uo = D, $ = M;
224
+ const jo = io, Eo = lo, bo = po, fo = c.forwardRef(({ className: o, align: n = "center", sideOffset: t = 4, ...a }, e) => /* @__PURE__ */ s.jsx(uo, { children: /* @__PURE__ */ s.jsx(
225
225
  $,
226
226
  {
227
- ref: o,
227
+ ref: e,
228
228
  align: n,
229
229
  sideOffset: t,
230
230
  className: X(
231
231
  "bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-72 origin-[--radix-popover-content-transform-origin] rounded-md border p-4 shadow-md outline-none",
232
- e
232
+ o
233
233
  ),
234
234
  ...a
235
235
  }
236
236
  ) }));
237
- de.displayName = $.displayName;
237
+ fo.displayName = $?.displayName || "PopoverContent";
238
238
  export {
239
- we as Popover,
240
- Ee as PopoverAnchor,
241
- de as PopoverContent,
242
- je as PopoverTrigger
239
+ jo as Popover,
240
+ bo as PopoverAnchor,
241
+ fo as PopoverContent,
242
+ Eo as PopoverTrigger
243
243
  };
package/dist/progress.cjs CHANGED
@@ -1,6 +1,6 @@
1
- "use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("./jsx-runtime-nZSsnGb7.js"),$=require("react"),h=require("./index-_wdrnYim.js"),m=require("./index-B39Lzq0v.js"),E=require("./utils-IjLH3w2e.js");function _(e){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const o in e)if(o!=="default"){const t=Object.getOwnPropertyDescriptor(e,o);Object.defineProperty(r,o,t.get?t:{enumerable:!0,get:()=>e[o]})}}return r.default=e,Object.freeze(r)}const u=_($);var c="Progress",d=100,[I]=h.createContextScope(c),[O,w]=I(c),v=u.forwardRef((e,r)=>{const{__scopeProgress:o,value:t=null,max:a,getValueLabel:j=M,...R}=e;(a||a===0)&&!p(a)&&console.error(S(`${a}`,"Progress"));const s=p(a)?a:d;t!==null&&!f(t,s)&&console.error(D(`${t}`,"Progress"));const n=f(t,s)?t:null,y=l(n)?j(n,s):void 0;return i.jsxRuntimeExports.jsx(O,{scope:o,value:n,max:s,children:i.jsxRuntimeExports.jsx(m.Primitive.div,{"aria-valuemax":s,"aria-valuemin":0,"aria-valuenow":l(n)?n:void 0,"aria-valuetext":y,role:"progressbar","data-state":P(n,s),"data-value":n??void 0,"data-max":s,...R,ref:r})})});v.displayName=c;var x="ProgressIndicator",g=u.forwardRef((e,r)=>{const{__scopeProgress:o,...t}=e,a=w(x,o);return i.jsxRuntimeExports.jsx(m.Primitive.div,{"data-state":P(a.value,a.max),"data-value":a.value??void 0,"data-max":a.max,...t,ref:r})});g.displayName=x;function M(e,r){return`${Math.round(e/r*100)}%`}function P(e,r){return e==null?"indeterminate":e===r?"complete":"loading"}function l(e){return typeof e=="number"}function p(e){return l(e)&&!isNaN(e)&&e>0}function f(e,r){return l(e)&&!isNaN(e)&&e<=r&&e>=0}function S(e,r){return`Invalid prop \`max\` of value \`${e}\` supplied to \`${r}\`. Only numbers greater than 0 are valid max values. Defaulting to \`${d}\`.`}function D(e,r){return`Invalid prop \`value\` of value \`${e}\` supplied to \`${r}\`. The \`value\` prop must be:
1
+ "use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("./jsx-runtime-nZSsnGb7.js"),$=require("react"),h=require("./index-_wdrnYim.js"),m=require("./index-B39Lzq0v.js"),E=require("./utils-cdbZV8DZ.js");function _(e){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const o in e)if(o!=="default"){const t=Object.getOwnPropertyDescriptor(e,o);Object.defineProperty(r,o,t.get?t:{enumerable:!0,get:()=>e[o]})}}return r.default=e,Object.freeze(r)}const u=_($);var c="Progress",d=100,[I]=h.createContextScope(c),[O,w]=I(c),v=u.forwardRef((e,r)=>{const{__scopeProgress:o,value:t=null,max:a,getValueLabel:j=M,...R}=e;(a||a===0)&&!p(a)&&console.error(S(`${a}`,"Progress"));const s=p(a)?a:d;t!==null&&!f(t,s)&&console.error(D(`${t}`,"Progress"));const n=f(t,s)?t:null,y=l(n)?j(n,s):void 0;return i.jsxRuntimeExports.jsx(O,{scope:o,value:n,max:s,children:i.jsxRuntimeExports.jsx(m.Primitive.div,{"aria-valuemax":s,"aria-valuemin":0,"aria-valuenow":l(n)?n:void 0,"aria-valuetext":y,role:"progressbar","data-state":P(n,s),"data-value":n??void 0,"data-max":s,...R,ref:r})})});v.displayName=c;var x="ProgressIndicator",g=u.forwardRef((e,r)=>{const{__scopeProgress:o,...t}=e,a=w(x,o);return i.jsxRuntimeExports.jsx(m.Primitive.div,{"data-state":P(a.value,a.max),"data-value":a.value??void 0,"data-max":a.max,...t,ref:r})});g.displayName=x;function M(e,r){return`${Math.round(e/r*100)}%`}function P(e,r){return e==null?"indeterminate":e===r?"complete":"loading"}function l(e){return typeof e=="number"}function p(e){return l(e)&&!isNaN(e)&&e>0}function f(e,r){return l(e)&&!isNaN(e)&&e<=r&&e>=0}function S(e,r){return`Invalid prop \`max\` of value \`${e}\` supplied to \`${r}\`. Only numbers greater than 0 are valid max values. Defaulting to \`${d}\`.`}function D(e,r){return`Invalid prop \`value\` of value \`${e}\` supplied to \`${r}\`. The \`value\` prop must be:
2
2
  - a positive number
3
3
  - less than the value passed to \`max\` (or ${d} if no \`max\` prop is set)
4
4
  - \`null\` or \`undefined\` if the progress is indeterminate.
5
5
 
6
- Defaulting to \`null\`.`}var b=v,V=g;const N=u.forwardRef(({className:e,value:r,...o},t)=>i.jsxRuntimeExports.jsx(b,{ref:t,className:E.cn("bg-primary/20 relative h-2 w-full overflow-hidden rounded-full",e),value:r,...o,children:i.jsxRuntimeExports.jsx(V,{className:"bg-primary h-full w-full flex-1 transition-all",style:{transform:`translateX(-${100-(r||0)}%)`}})}));N.displayName=b.displayName;exports.Progress=N;
6
+ Defaulting to \`null\`.`}var b=v,V=g;const N=u.forwardRef(({className:e,value:r,...o},t)=>i.jsxRuntimeExports.jsx(b,{ref:t,className:E.cn("bg-primary/20 relative h-2 w-full overflow-hidden rounded-full",e),value:r,...o,children:i.jsxRuntimeExports.jsx(V,{className:"bg-primary h-full w-full flex-1 transition-all",style:{transform:`translateX(-${100-(r||0)}%)`}})}));N.displayName=b?.displayName||"Progress";exports.Progress=N;
package/dist/progress.mjs CHANGED
@@ -3,7 +3,7 @@ import { j as i } from "./jsx-runtime-tc70JA_2.mjs";
3
3
  import * as u from "react";
4
4
  import { c as y } from "./index-3j-XAIXT.mjs";
5
5
  import { P as v } from "./index-DaILh3TV.mjs";
6
- import { c as I } from "./utils-B6yFEsav.mjs";
6
+ import { c as I } from "./utils-DY6fhrgS.mjs";
7
7
  var d = "Progress", m = 100, [R] = y(d), [j, w] = R(d), c = u.forwardRef(
8
8
  (r, e) => {
9
9
  const {
@@ -94,7 +94,7 @@ const A = u.forwardRef(({ className: r, value: e, ...n }, o) => /* @__PURE__ */
94
94
  )
95
95
  }
96
96
  ));
97
- A.displayName = N.displayName;
97
+ A.displayName = N?.displayName || "Progress";
98
98
  export {
99
99
  A as Progress
100
100
  };
@@ -1 +1 @@
1
- "use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("./jsx-runtime-nZSsnGb7.js"),B=require("react"),v=require("./index-BtZvtDmp.js"),h=require("./index-_XxjJPRD.js"),C=require("./index-D2HnlO3y.js"),y=require("./index-DIsg7zU7.js"),K=require("./index-Ce5TOFAK.js"),U=require("./index-Dko2XdTk.js"),V=require("./index-Cjj_rUPu.js"),H=require("./index-DYxWvftI.js"),z=require("./index-B2XtpfGY.js"),W=require("lucide-react"),w=require("./utils-IjLH3w2e.js");function X(o){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(o){for(const e in o)if(e!=="default"){const n=Object.getOwnPropertyDescriptor(o,e);Object.defineProperty(r,e,n.get?n:{enumerable:!0,get:()=>o[e]})}}return r.default=o,Object.freeze(r)}const a=X(B);var g="Radio",[Y,P]=C.createContextScope(g),[J,Q]=Y(g),N=a.forwardRef((o,r)=>{const{__scopeRadio:e,name:n,checked:t=!1,required:i,disabled:c,value:l="on",onCheck:R,form:f,...m}=o,[p,x]=a.useState(null),u=h.useComposedRefs(r,E=>x(E)),d=a.useRef(!1),j=p?f||!!p.closest("form"):!0;return s.jsxRuntimeExports.jsxs(J,{scope:e,checked:t,disabled:c,children:[s.jsxRuntimeExports.jsx(v.Primitive.button,{type:"button",role:"radio","aria-checked":t,"data-state":G(t),"data-disabled":c?"":void 0,disabled:c,value:l,...m,ref:u,onClick:v.composeEventHandlers(o.onClick,E=>{t||R?.(),j&&(d.current=E.isPropagationStopped(),d.current||E.stopPropagation())})}),j&&s.jsxRuntimeExports.jsx(S,{control:p,bubbles:!d.current,name:n,value:l,checked:t,required:i,disabled:c,form:f,style:{transform:"translateX(-100%)"}})]})});N.displayName=g;var _="RadioIndicator",I=a.forwardRef((o,r)=>{const{__scopeRadio:e,forceMount:n,...t}=o,i=Q(_,e);return s.jsxRuntimeExports.jsx(z.Presence,{present:n||i.checked,children:s.jsxRuntimeExports.jsx(v.Primitive.span,{"data-state":G(i.checked),"data-disabled":i.disabled?"":void 0,...t,ref:r})})});I.displayName=_;var Z="RadioBubbleInput",S=a.forwardRef(({__scopeRadio:o,control:r,checked:e,bubbles:n=!0,...t},i)=>{const c=a.useRef(null),l=h.useComposedRefs(c,i),R=H.usePrevious(e),f=V.useSize(r);return a.useEffect(()=>{const m=c.current;if(!m)return;const p=window.HTMLInputElement.prototype,u=Object.getOwnPropertyDescriptor(p,"checked").set;if(R!==e&&u){const d=new Event("click",{bubbles:n});u.call(m,e),m.dispatchEvent(d)}},[R,e,n]),s.jsxRuntimeExports.jsx(v.Primitive.input,{type:"radio","aria-hidden":!0,defaultChecked:e,...t,tabIndex:-1,ref:l,style:{...t.style,...f,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});S.displayName=Z;function G(o){return o?"checked":"unchecked"}var ee=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],b="RadioGroup",[oe]=C.createContextScope(b,[y.createRovingFocusGroupScope,P]),k=y.createRovingFocusGroupScope(),q=P(),[re,te]=oe(b),A=a.forwardRef((o,r)=>{const{__scopeRadioGroup:e,name:n,defaultValue:t,value:i,required:c=!1,disabled:l=!1,orientation:R,dir:f,loop:m=!0,onValueChange:p,...x}=o,u=k(e),d=U.useDirection(f),[j,E]=K.useControllableState({prop:i,defaultProp:t??null,onChange:p,caller:b});return s.jsxRuntimeExports.jsx(re,{scope:e,name:n,required:c,disabled:l,value:j,onValueChange:E,children:s.jsxRuntimeExports.jsx(y.Root,{asChild:!0,...u,orientation:R,dir:d,loop:m,children:s.jsxRuntimeExports.jsx(v.Primitive.div,{role:"radiogroup","aria-required":c,"aria-orientation":R,"data-disabled":l?"":void 0,dir:d,...x,ref:r})})})});A.displayName=b;var O="RadioGroupItem",D=a.forwardRef((o,r)=>{const{__scopeRadioGroup:e,disabled:n,...t}=o,i=te(O,e),c=i.disabled||n,l=k(e),R=q(e),f=a.useRef(null),m=h.useComposedRefs(r,f),p=i.value===t.value,x=a.useRef(!1);return a.useEffect(()=>{const u=j=>{ee.includes(j.key)&&(x.current=!0)},d=()=>x.current=!1;return document.addEventListener("keydown",u),document.addEventListener("keyup",d),()=>{document.removeEventListener("keydown",u),document.removeEventListener("keyup",d)}},[]),s.jsxRuntimeExports.jsx(y.Item,{asChild:!0,...l,focusable:!c,active:p,children:s.jsxRuntimeExports.jsx(N,{disabled:c,required:i.required,checked:p,...R,...t,name:i.name,ref:m,onCheck:()=>i.onValueChange(t.value),onKeyDown:v.composeEventHandlers(u=>{u.key==="Enter"&&u.preventDefault()}),onFocus:v.composeEventHandlers(t.onFocus,()=>{x.current&&f.current?.click()})})})});D.displayName=O;var se="RadioGroupIndicator",M=a.forwardRef((o,r)=>{const{__scopeRadioGroup:e,...n}=o,t=q(e);return s.jsxRuntimeExports.jsx(I,{...t,...n,ref:r})});M.displayName=se;var $=A,F=D,ne=M;const L=a.forwardRef(({className:o,...r},e)=>s.jsxRuntimeExports.jsx($,{className:w.cn("grid gap-2",o),...r,ref:e}));L.displayName=$.displayName;const T=a.forwardRef(({className:o,...r},e)=>s.jsxRuntimeExports.jsx(F,{ref:e,className:w.cn("border-primary text-primary focus-visible:ring-ring aspect-square h-4 w-4 rounded-full border shadow focus:outline-none focus-visible:ring-1 disabled:cursor-not-allowed disabled:opacity-50",o),...r,children:s.jsxRuntimeExports.jsx(ne,{className:"flex items-center justify-center",children:s.jsxRuntimeExports.jsx(W.Circle,{className:"fill-primary h-3.5 w-3.5"})})}));T.displayName=F.displayName;exports.RadioGroup=L;exports.RadioGroupItem=T;
1
+ "use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("./jsx-runtime-nZSsnGb7.js"),B=require("react"),v=require("./index-BtZvtDmp.js"),h=require("./index-_XxjJPRD.js"),C=require("./index-D2HnlO3y.js"),y=require("./index-DIsg7zU7.js"),K=require("./index-Ce5TOFAK.js"),U=require("./index-Dko2XdTk.js"),V=require("./index-Cjj_rUPu.js"),H=require("./index-DYxWvftI.js"),z=require("./index-B2XtpfGY.js"),W=require("lucide-react"),w=require("./utils-cdbZV8DZ.js");function X(o){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(o){for(const e in o)if(e!=="default"){const n=Object.getOwnPropertyDescriptor(o,e);Object.defineProperty(r,e,n.get?n:{enumerable:!0,get:()=>o[e]})}}return r.default=o,Object.freeze(r)}const a=X(B);var g="Radio",[Y,P]=C.createContextScope(g),[J,Q]=Y(g),G=a.forwardRef((o,r)=>{const{__scopeRadio:e,name:n,checked:t=!1,required:i,disabled:c,value:l="on",onCheck:R,form:f,...m}=o,[p,x]=a.useState(null),u=h.useComposedRefs(r,E=>x(E)),d=a.useRef(!1),j=p?f||!!p.closest("form"):!0;return s.jsxRuntimeExports.jsxs(J,{scope:e,checked:t,disabled:c,children:[s.jsxRuntimeExports.jsx(v.Primitive.button,{type:"button",role:"radio","aria-checked":t,"data-state":S(t),"data-disabled":c?"":void 0,disabled:c,value:l,...m,ref:u,onClick:v.composeEventHandlers(o.onClick,E=>{t||R?.(),j&&(d.current=E.isPropagationStopped(),d.current||E.stopPropagation())})}),j&&s.jsxRuntimeExports.jsx(_,{control:p,bubbles:!d.current,name:n,value:l,checked:t,required:i,disabled:c,form:f,style:{transform:"translateX(-100%)"}})]})});G.displayName=g;var I="RadioIndicator",N=a.forwardRef((o,r)=>{const{__scopeRadio:e,forceMount:n,...t}=o,i=Q(I,e);return s.jsxRuntimeExports.jsx(z.Presence,{present:n||i.checked,children:s.jsxRuntimeExports.jsx(v.Primitive.span,{"data-state":S(i.checked),"data-disabled":i.disabled?"":void 0,...t,ref:r})})});N.displayName=I;var Z="RadioBubbleInput",_=a.forwardRef(({__scopeRadio:o,control:r,checked:e,bubbles:n=!0,...t},i)=>{const c=a.useRef(null),l=h.useComposedRefs(c,i),R=H.usePrevious(e),f=V.useSize(r);return a.useEffect(()=>{const m=c.current;if(!m)return;const p=window.HTMLInputElement.prototype,u=Object.getOwnPropertyDescriptor(p,"checked").set;if(R!==e&&u){const d=new Event("click",{bubbles:n});u.call(m,e),m.dispatchEvent(d)}},[R,e,n]),s.jsxRuntimeExports.jsx(v.Primitive.input,{type:"radio","aria-hidden":!0,defaultChecked:e,...t,tabIndex:-1,ref:l,style:{...t.style,...f,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});_.displayName=Z;function S(o){return o?"checked":"unchecked"}var ee=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],b="RadioGroup",[oe]=C.createContextScope(b,[y.createRovingFocusGroupScope,P]),k=y.createRovingFocusGroupScope(),q=P(),[re,te]=oe(b),A=a.forwardRef((o,r)=>{const{__scopeRadioGroup:e,name:n,defaultValue:t,value:i,required:c=!1,disabled:l=!1,orientation:R,dir:f,loop:m=!0,onValueChange:p,...x}=o,u=k(e),d=U.useDirection(f),[j,E]=K.useControllableState({prop:i,defaultProp:t??null,onChange:p,caller:b});return s.jsxRuntimeExports.jsx(re,{scope:e,name:n,required:c,disabled:l,value:j,onValueChange:E,children:s.jsxRuntimeExports.jsx(y.Root,{asChild:!0,...u,orientation:R,dir:d,loop:m,children:s.jsxRuntimeExports.jsx(v.Primitive.div,{role:"radiogroup","aria-required":c,"aria-orientation":R,"data-disabled":l?"":void 0,dir:d,...x,ref:r})})})});A.displayName=b;var O="RadioGroupItem",D=a.forwardRef((o,r)=>{const{__scopeRadioGroup:e,disabled:n,...t}=o,i=te(O,e),c=i.disabled||n,l=k(e),R=q(e),f=a.useRef(null),m=h.useComposedRefs(r,f),p=i.value===t.value,x=a.useRef(!1);return a.useEffect(()=>{const u=j=>{ee.includes(j.key)&&(x.current=!0)},d=()=>x.current=!1;return document.addEventListener("keydown",u),document.addEventListener("keyup",d),()=>{document.removeEventListener("keydown",u),document.removeEventListener("keyup",d)}},[]),s.jsxRuntimeExports.jsx(y.Item,{asChild:!0,...l,focusable:!c,active:p,children:s.jsxRuntimeExports.jsx(G,{disabled:c,required:i.required,checked:p,...R,...t,name:i.name,ref:m,onCheck:()=>i.onValueChange(t.value),onKeyDown:v.composeEventHandlers(u=>{u.key==="Enter"&&u.preventDefault()}),onFocus:v.composeEventHandlers(t.onFocus,()=>{x.current&&f.current?.click()})})})});D.displayName=O;var se="RadioGroupIndicator",M=a.forwardRef((o,r)=>{const{__scopeRadioGroup:e,...n}=o,t=q(e);return s.jsxRuntimeExports.jsx(N,{...t,...n,ref:r})});M.displayName=se;var $=A,F=D,ne=M;const L=a.forwardRef(({className:o,...r},e)=>s.jsxRuntimeExports.jsx($,{className:w.cn("grid gap-2",o),...r,ref:e}));L.displayName=$?.displayName||"RadioGroup";const T=a.forwardRef(({className:o,...r},e)=>s.jsxRuntimeExports.jsx(F,{ref:e,className:w.cn("border-primary text-primary focus-visible:ring-ring aspect-square h-4 w-4 rounded-full border shadow focus:outline-none focus-visible:ring-1 disabled:cursor-not-allowed disabled:opacity-50",o),...r,children:s.jsxRuntimeExports.jsx(ne,{className:"flex items-center justify-center",children:s.jsxRuntimeExports.jsx(W.Circle,{className:"fill-primary h-3.5 w-3.5"})})}));T.displayName=F?.displayName||"RadioGroupItem";exports.RadioGroup=L;exports.RadioGroupItem=T;
@@ -1,6 +1,6 @@
1
1
  "use client";
2
2
  import { j as t } from "./jsx-runtime-tc70JA_2.mjs";
3
- import * as n from "react";
3
+ import * as i from "react";
4
4
  import { P as x, c as w } from "./index-K9FzbxYw.mjs";
5
5
  import { u as C } from "./index-DLcqcWxM.mjs";
6
6
  import { c as N } from "./index-IZ2gq03c.mjs";
@@ -11,21 +11,21 @@ import { u as z } from "./index-C1qb0595.mjs";
11
11
  import { u as H } from "./index-BZPx6jYI.mjs";
12
12
  import { P as $ } from "./index-vuPgkS0V.mjs";
13
13
  import { Circle as W } from "lucide-react";
14
- import { c as E } from "./utils-B6yFEsav.mjs";
15
- var I = "Radio", [X, P] = N(I), [Y, J] = X(I), _ = n.forwardRef(
14
+ import { c as E } from "./utils-DY6fhrgS.mjs";
15
+ var I = "Radio", [X, P] = N(I), [Y, J] = X(I), G = i.forwardRef(
16
16
  (r, a) => {
17
17
  const {
18
18
  __scopeRadio: e,
19
19
  name: d,
20
20
  checked: o = !1,
21
21
  required: s,
22
- disabled: i,
22
+ disabled: n,
23
23
  value: l = "on",
24
24
  onCheck: f,
25
25
  form: m,
26
26
  ...R
27
- } = r, [p, v] = n.useState(null), c = C(a, (h) => v(h)), u = n.useRef(!1), y = p ? m || !!p.closest("form") : !0;
28
- return /* @__PURE__ */ t.jsxs(Y, { scope: e, checked: o, disabled: i, children: [
27
+ } = r, [p, v] = i.useState(null), c = C(a, (h) => v(h)), u = i.useRef(!1), y = p ? m || !!p.closest("form") : !0;
28
+ return /* @__PURE__ */ t.jsxs(Y, { scope: e, checked: o, disabled: n, children: [
29
29
  /* @__PURE__ */ t.jsx(
30
30
  x.button,
31
31
  {
@@ -33,8 +33,8 @@ var I = "Radio", [X, P] = N(I), [Y, J] = X(I), _ = n.forwardRef(
33
33
  role: "radio",
34
34
  "aria-checked": o,
35
35
  "data-state": S(o),
36
- "data-disabled": i ? "" : void 0,
37
- disabled: i,
36
+ "data-disabled": n ? "" : void 0,
37
+ disabled: n,
38
38
  value: l,
39
39
  ...R,
40
40
  ref: c,
@@ -44,7 +44,7 @@ var I = "Radio", [X, P] = N(I), [Y, J] = X(I), _ = n.forwardRef(
44
44
  }
45
45
  ),
46
46
  y && /* @__PURE__ */ t.jsx(
47
- G,
47
+ k,
48
48
  {
49
49
  control: p,
50
50
  bubbles: !u.current,
@@ -52,7 +52,7 @@ var I = "Radio", [X, P] = N(I), [Y, J] = X(I), _ = n.forwardRef(
52
52
  value: l,
53
53
  checked: o,
54
54
  required: s,
55
- disabled: i,
55
+ disabled: n,
56
56
  form: m,
57
57
  style: { transform: "translateX(-100%)" }
58
58
  }
@@ -60,10 +60,10 @@ var I = "Radio", [X, P] = N(I), [Y, J] = X(I), _ = n.forwardRef(
60
60
  ] });
61
61
  }
62
62
  );
63
- _.displayName = I;
64
- var j = "RadioIndicator", k = n.forwardRef(
63
+ G.displayName = I;
64
+ var _ = "RadioIndicator", j = i.forwardRef(
65
65
  (r, a) => {
66
- const { __scopeRadio: e, forceMount: d, ...o } = r, s = J(j, e);
66
+ const { __scopeRadio: e, forceMount: d, ...o } = r, s = J(_, e);
67
67
  return /* @__PURE__ */ t.jsx($, { present: d || s.checked, children: /* @__PURE__ */ t.jsx(
68
68
  x.span,
69
69
  {
@@ -75,8 +75,8 @@ var j = "RadioIndicator", k = n.forwardRef(
75
75
  ) });
76
76
  }
77
77
  );
78
- k.displayName = j;
79
- var Q = "RadioBubbleInput", G = n.forwardRef(
78
+ j.displayName = _;
79
+ var Q = "RadioBubbleInput", k = i.forwardRef(
80
80
  ({
81
81
  __scopeRadio: r,
82
82
  control: a,
@@ -84,9 +84,9 @@ var Q = "RadioBubbleInput", G = n.forwardRef(
84
84
  bubbles: d = !0,
85
85
  ...o
86
86
  }, s) => {
87
- const i = n.useRef(null), l = C(i, s), f = H(e), m = z(a);
88
- return n.useEffect(() => {
89
- const R = i.current;
87
+ const n = i.useRef(null), l = C(n, s), f = H(e), m = z(a);
88
+ return i.useEffect(() => {
89
+ const R = n.current;
90
90
  if (!R) return;
91
91
  const p = window.HTMLInputElement.prototype, c = Object.getOwnPropertyDescriptor(
92
92
  p,
@@ -117,21 +117,21 @@ var Q = "RadioBubbleInput", G = n.forwardRef(
117
117
  );
118
118
  }
119
119
  );
120
- G.displayName = Q;
120
+ k.displayName = Q;
121
121
  function S(r) {
122
122
  return r ? "checked" : "unchecked";
123
123
  }
124
124
  var Z = ["ArrowUp", "ArrowDown", "ArrowLeft", "ArrowRight"], b = "RadioGroup", [ee] = N(b, [
125
125
  g,
126
126
  P
127
- ]), A = g(), D = P(), [oe, re] = ee(b), M = n.forwardRef(
127
+ ]), A = g(), D = P(), [oe, re] = ee(b), M = i.forwardRef(
128
128
  (r, a) => {
129
129
  const {
130
130
  __scopeRadioGroup: e,
131
131
  name: d,
132
132
  defaultValue: o,
133
133
  value: s,
134
- required: i = !1,
134
+ required: n = !1,
135
135
  disabled: l = !1,
136
136
  orientation: f,
137
137
  dir: m,
@@ -149,7 +149,7 @@ var Z = ["ArrowUp", "ArrowDown", "ArrowLeft", "ArrowRight"], b = "RadioGroup", [
149
149
  {
150
150
  scope: e,
151
151
  name: d,
152
- required: i,
152
+ required: n,
153
153
  disabled: l,
154
154
  value: y,
155
155
  onValueChange: h,
@@ -165,7 +165,7 @@ var Z = ["ArrowUp", "ArrowDown", "ArrowLeft", "ArrowRight"], b = "RadioGroup", [
165
165
  x.div,
166
166
  {
167
167
  role: "radiogroup",
168
- "aria-required": i,
168
+ "aria-required": n,
169
169
  "aria-orientation": f,
170
170
  "data-disabled": l ? "" : void 0,
171
171
  dir: u,
@@ -180,10 +180,10 @@ var Z = ["ArrowUp", "ArrowDown", "ArrowLeft", "ArrowRight"], b = "RadioGroup", [
180
180
  }
181
181
  );
182
182
  M.displayName = b;
183
- var O = "RadioGroupItem", F = n.forwardRef(
183
+ var O = "RadioGroupItem", F = i.forwardRef(
184
184
  (r, a) => {
185
- const { __scopeRadioGroup: e, disabled: d, ...o } = r, s = re(O, e), i = s.disabled || d, l = A(e), f = D(e), m = n.useRef(null), R = C(a, m), p = s.value === o.value, v = n.useRef(!1);
186
- return n.useEffect(() => {
185
+ const { __scopeRadioGroup: e, disabled: d, ...o } = r, s = re(O, e), n = s.disabled || d, l = A(e), f = D(e), m = i.useRef(null), R = C(a, m), p = s.value === o.value, v = i.useRef(!1);
186
+ return i.useEffect(() => {
187
187
  const c = (y) => {
188
188
  Z.includes(y.key) && (v.current = !0);
189
189
  }, u = () => v.current = !1;
@@ -195,12 +195,12 @@ var O = "RadioGroupItem", F = n.forwardRef(
195
195
  {
196
196
  asChild: !0,
197
197
  ...l,
198
- focusable: !i,
198
+ focusable: !n,
199
199
  active: p,
200
200
  children: /* @__PURE__ */ t.jsx(
201
- _,
201
+ G,
202
202
  {
203
- disabled: i,
203
+ disabled: n,
204
204
  required: s.required,
205
205
  checked: p,
206
206
  ...f,
@@ -221,19 +221,19 @@ var O = "RadioGroupItem", F = n.forwardRef(
221
221
  }
222
222
  );
223
223
  F.displayName = O;
224
- var te = "RadioGroupIndicator", L = n.forwardRef(
224
+ var te = "RadioGroupIndicator", L = i.forwardRef(
225
225
  (r, a) => {
226
226
  const { __scopeRadioGroup: e, ...d } = r, o = D(e);
227
- return /* @__PURE__ */ t.jsx(k, { ...o, ...d, ref: a });
227
+ return /* @__PURE__ */ t.jsx(j, { ...o, ...d, ref: a });
228
228
  }
229
229
  );
230
230
  L.displayName = te;
231
231
  var q = M, B = F, ae = L;
232
- const se = n.forwardRef(
232
+ const se = i.forwardRef(
233
233
  ({ className: r, ...a }, e) => /* @__PURE__ */ t.jsx(q, { className: E("grid gap-2", r), ...a, ref: e })
234
234
  );
235
- se.displayName = q.displayName;
236
- const ne = n.forwardRef(
235
+ se.displayName = q?.displayName || "RadioGroup";
236
+ const ie = i.forwardRef(
237
237
  ({ className: r, ...a }, e) => /* @__PURE__ */ t.jsx(
238
238
  B,
239
239
  {
@@ -247,8 +247,8 @@ const ne = n.forwardRef(
247
247
  }
248
248
  )
249
249
  );
250
- ne.displayName = B.displayName;
250
+ ie.displayName = B?.displayName || "RadioGroupItem";
251
251
  export {
252
252
  se as RadioGroup,
253
- ne as RadioGroupItem
253
+ ie as RadioGroupItem
254
254
  };