@spear-ai/spectral 1.3.56 → 1.3.57

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/Drawer.js CHANGED
@@ -1,12 +1,14 @@
1
1
  "use client";
2
2
  import "./styles/main.css";
3
3
  import { jsx as S, jsxs as gt, Fragment as te } from "react/jsx-runtime";
4
- import { SpectralProvider as je } from "./SpectralProvider.js";
4
+ import { SpectralProvider as Ye } from "./SpectralProvider.js";
5
5
  import * as O from "react";
6
6
  import i, { useMemo as qe, useLayoutEffect as Xe, useEffect as Ge } from "react";
7
- import { c as Ke, f as Je, P as wt, b as kt, d as ht, D as Ze, h as Qe, a as tn, u as Pt } from "./index-DfFzqLW6.js";
8
- import { R as en, h as nn, u as rn, F as an } from "./index-BDYruyoU.js";
9
- import { P as Ht, a as on } from "./index-Ddc_4vXe.js";
7
+ import { c as Ke, g as Je, P as wt, a as kt, e as ht, j as Ze, d as Qe, b as Pt } from "./index-CA7haECj.js";
8
+ import { D as tn } from "./index-cCg4yNa8.js";
9
+ import { R as en, h as nn, u as rn, F as an } from "./index-DUK1rxhf.js";
10
+ import { P as on } from "./index-VXXKXen4.js";
11
+ import { P as Ht } from "./index-CBwRmAsQ.js";
10
12
  var Tt = "Dialog", [oe] = Ke(Tt), [sn, q] = oe(Tt), ie = (t) => {
11
13
  const {
12
14
  __scopeDialog: n,
@@ -15,7 +17,7 @@ var Tt = "Dialog", [oe] = Ke(Tt), [sn, q] = oe(Tt), ie = (t) => {
15
17
  defaultOpen: o,
16
18
  onOpenChange: r,
17
19
  modal: l = !0
18
- } = t, s = O.useRef(null), v = O.useRef(null), [D, g] = tn({
20
+ } = t, s = O.useRef(null), v = O.useRef(null), [D, g] = Qe({
19
21
  prop: a,
20
22
  defaultProp: o ?? !1,
21
23
  onChange: r,
@@ -157,7 +159,7 @@ var dn = O.forwardRef(
157
159
  onMountAutoFocus: o,
158
160
  onUnmountAutoFocus: r,
159
161
  children: /* @__PURE__ */ S(
160
- Ze,
162
+ tn,
161
163
  {
162
164
  role: "dialog",
163
165
  id: s.contentId,
@@ -209,7 +211,7 @@ ve.displayName = we;
209
211
  function Ut(t) {
210
212
  return t ? "open" : "closed";
211
213
  }
212
- var ye = "DialogTitleWarning", [ar, be] = Qe(ye, {
214
+ var ye = "DialogTitleWarning", [ir, be] = Ze(ye, {
213
215
  contentName: at,
214
216
  titleName: Wt,
215
217
  docsSlug: "dialog"
@@ -637,8 +639,8 @@ function Vn({ activeSnapPointProp: t, setActiveSnapPointProp: n, snapPoints: e,
637
639
  N(w[e.length - 1]);
638
640
  return;
639
641
  }
640
- const F = w?.reduce((I, K) => typeof I != "number" || typeof K != "number" ? I : Math.abs(K - M) < Math.abs(I - M) ? K : I), Y = A(s) ? window.innerHeight : window.innerWidth;
641
- if (b > xe && Math.abs(d) < Y * 0.4) {
642
+ const F = w?.reduce((I, K) => typeof I != "number" || typeof K != "number" ? I : Math.abs(K - M) < Math.abs(I - M) ? K : I), j = A(s) ? window.innerHeight : window.innerWidth;
643
+ if (b > xe && Math.abs(d) < j * 0.4) {
642
644
  const I = V ? 1 : -1;
643
645
  if (I > 0 && H && e) {
644
646
  N(w[e.length - 1]);
@@ -681,7 +683,7 @@ function Vn({ activeSnapPointProp: t, setActiveSnapPointProp: n, snapPoints: e,
681
683
  }
682
684
  const zn = () => () => {
683
685
  };
684
- function Yn() {
686
+ function jn() {
685
687
  const { direction: t, isOpen: n, shouldScaleBackground: e, setBackgroundColorOnScale: a, noBodyStyles: o } = vt(), r = i.useRef(null), l = qe(() => document.body.style.backgroundColor, []);
686
688
  function s() {
687
689
  return (window.innerWidth - Ft) / window.innerWidth;
@@ -721,7 +723,7 @@ function Yn() {
721
723
  ]);
722
724
  }
723
725
  let mt = null;
724
- function jn({ isOpen: t, modal: n, nested: e, hasBeenOpened: a, preventScrollRestoration: o, noBodyStyles: r }) {
726
+ function Yn({ isOpen: t, modal: n, nested: e, hasBeenOpened: a, preventScrollRestoration: o, noBodyStyles: r }) {
725
727
  const [l, s] = i.useState(() => typeof window < "u" ? window.location.href : ""), v = i.useRef(0), D = i.useCallback(() => {
726
728
  if (ee() && mt === null && t && !r) {
727
729
  mt = {
@@ -791,7 +793,7 @@ function jn({ isOpen: t, modal: n, nested: e, hasBeenOpened: a, preventScrollRes
791
793
  }
792
794
  function qn({ open: t, onOpenChange: n, children: e, onDrag: a, onRelease: o, snapPoints: r, shouldScaleBackground: l = !1, setBackgroundColorOnScale: s = !0, closeThreshold: v = Bn, scrollLockTimeout: D = Wn, dismissible: g = !0, handleOnly: m = !1, fadeFromIndex: h = r && r.length - 1, activeSnapPoint: W, setActiveSnapPoint: H, fixed: x, modal: U = !0, onClose: w, nested: $, noBodyStyles: N = !1, direction: f = "bottom", defaultOpen: X = !1, disablePreventScroll: et = !0, snapToSequentialPoint: d = !1, preventScrollRestoration: R = !1, repositionInputs: b = !0, onAnimationEnd: L, container: M, autoFocus: z = !1 }) {
793
795
  var c, V;
794
- const [F = !1, Y] = _e({
796
+ const [F = !1, j] = _e({
795
797
  defaultProp: X,
796
798
  prop: t,
797
799
  onChange: (u) => {
@@ -801,7 +803,7 @@ function qn({ open: t, onOpenChange: n, children: e, onDrag: a, onRelease: o, sn
801
803
  document.body.style.pointerEvents = "auto";
802
804
  }), u || (document.body.style.pointerEvents = "auto");
803
805
  }
804
- }), [I, K] = i.useState(!1), [J, lt] = i.useState(!1), [Ne, zt] = i.useState(!1), ot = i.useRef(null), yt = i.useRef(null), xt = i.useRef(null), Ct = i.useRef(null), ut = i.useRef(null), ct = i.useRef(!1), Ot = i.useRef(null), _t = i.useRef(0), it = i.useRef(!1), Yt = i.useRef(!X), jt = i.useRef(0), p = i.useRef(null), qt = i.useRef(((c = p.current) == null ? void 0 : c.getBoundingClientRect().height) || 0), Xt = i.useRef(((V = p.current) == null ? void 0 : V.getBoundingClientRect().width) || 0), At = i.useRef(0), $e = i.useCallback((u) => {
806
+ }), [I, K] = i.useState(!1), [J, lt] = i.useState(!1), [Ne, zt] = i.useState(!1), ot = i.useRef(null), yt = i.useRef(null), xt = i.useRef(null), Ct = i.useRef(null), ut = i.useRef(null), ct = i.useRef(!1), Ot = i.useRef(null), _t = i.useRef(0), it = i.useRef(!1), jt = i.useRef(!X), Yt = i.useRef(0), p = i.useRef(null), qt = i.useRef(((c = p.current) == null ? void 0 : c.getBoundingClientRect().height) || 0), Xt = i.useRef(((V = p.current) == null ? void 0 : V.getBoundingClientRect().width) || 0), At = i.useRef(0), $e = i.useCallback((u) => {
805
807
  r && u === dt.length - 1 && (yt.current = /* @__PURE__ */ new Date());
806
808
  }, []), { activeSnapPoint: Me, activeSnapPointIndex: st, setActiveSnapPoint: Gt, onRelease: Ie, snapPointsOffset: dt, onDrag: Le, shouldFade: Kt, getPercentageDragged: Fe } = Vn({
807
809
  snapPoints: r,
@@ -818,7 +820,7 @@ function qn({ open: t, onOpenChange: n, children: e, onDrag: a, onRelease: o, sn
818
820
  Nn({
819
821
  isDisabled: !F || J || !U || Ne || !I || !b || !et
820
822
  });
821
- const { restorePositionSetting: ke } = jn({
823
+ const { restorePositionSetting: ke } = Yn({
822
824
  isOpen: F,
823
825
  modal: U,
824
826
  nested: $ ?? !1,
@@ -867,9 +869,9 @@ function qn({ open: t, onOpenChange: n, children: e, onDrag: a, onRelease: o, sn
867
869
  const E = f === "bottom" || f === "right" ? 1 : -1, T = (_t.current - (A(f) ? u.pageY : u.pageX)) * E, y = T > 0, _ = r && !g && !y;
868
870
  if (_ && st === 0) return;
869
871
  const B = Math.abs(T), k = document.querySelector("[data-vaul-drawer-wrapper]"), Z = f === "bottom" || f === "top" ? qt.current : Xt.current;
870
- let j = B / Z;
872
+ let Y = B / Z;
871
873
  const nt = Fe(B, y);
872
- if (nt !== null && (j = nt), _ && j >= 1 || !ct.current && !Jt(u.target, y)) return;
874
+ if (nt !== null && (Y = nt), _ && Y >= 1 || !ct.current && !Jt(u.target, y)) return;
873
875
  if (p.current.classList.add(It), ct.current = !0, P(p.current, {
874
876
  transition: "none"
875
877
  }), P(ot.current, {
@@ -883,12 +885,12 @@ function qn({ open: t, onOpenChange: n, children: e, onDrag: a, onRelease: o, sn
883
885
  });
884
886
  return;
885
887
  }
886
- const Q = 1 - j;
887
- if ((Kt || h && st === h - 1) && (a?.(u, j), P(ot.current, {
888
+ const Q = 1 - Y;
889
+ if ((Kt || h && st === h - 1) && (a?.(u, Y), P(ot.current, {
888
890
  opacity: `${Q}`,
889
891
  transition: "none"
890
892
  }, !0)), k && ot.current && l) {
891
- const G = Math.min(bt() + j * (1 - bt()), 1), Dt = 8 - j * 8, Qt = Math.max(0, 14 - j * 14);
893
+ const G = Math.min(bt() + Y * (1 - bt()), 1), Dt = 8 - Y * 8, Qt = Math.max(0, 14 - Y * 14);
892
894
  P(k, {
893
895
  borderRadius: `${Dt}px`,
894
896
  transform: A(f) ? `scale(${G}) translate3d(0, ${Qt}px, 0)` : `scale(${G}) translate3d(${Qt}px, 0, 0)`,
@@ -905,7 +907,7 @@ function qn({ open: t, onOpenChange: n, children: e, onDrag: a, onRelease: o, sn
905
907
  }
906
908
  i.useEffect(() => {
907
909
  window.requestAnimationFrame(() => {
908
- Yt.current = !0;
910
+ jt.current = !0;
909
911
  });
910
912
  }, []), i.useEffect(() => {
911
913
  var u;
@@ -916,17 +918,17 @@ function qn({ open: t, onOpenChange: n, children: e, onDrag: a, onRelease: o, sn
916
918
  var y;
917
919
  const _ = ((y = window.visualViewport) == null ? void 0 : y.height) || 0, B = window.innerHeight;
918
920
  let k = B - _;
919
- const Z = p.current.getBoundingClientRect().height || 0, j = Z > B * 0.8;
921
+ const Z = p.current.getBoundingClientRect().height || 0, Y = Z > B * 0.8;
920
922
  At.current || (At.current = Z);
921
923
  const nt = p.current.getBoundingClientRect().top;
922
- if (Math.abs(jt.current - k) > 60 && (it.current = !it.current), r && r.length > 0 && dt && st) {
924
+ if (Math.abs(Yt.current - k) > 60 && (it.current = !it.current), r && r.length > 0 && dt && st) {
923
925
  const Q = dt[st] || 0;
924
926
  k += Q;
925
927
  }
926
- if (jt.current = k, Z > _ || it.current) {
928
+ if (Yt.current = k, Z > _ || it.current) {
927
929
  const Q = p.current.getBoundingClientRect().height;
928
930
  let G = Q;
929
- Q > _ && (G = _ - (j ? nt : Ft)), x ? p.current.style.height = `${Q - Math.max(k, 0)}px` : p.current.style.height = `${Math.max(G, _ - nt)}px`;
931
+ Q > _ && (G = _ - (Y ? nt : Ft)), x ? p.current.style.height = `${Q - Math.max(k, 0)}px` : p.current.style.height = `${Math.max(G, _ - nt)}px`;
930
932
  } else Tn() || (p.current.style.height = `${At.current}px`);
931
933
  r && r.length > 0 && !it.current ? p.current.style.bottom = "0px" : p.current.style.bottom = `${Math.max(k, 0)}px`;
932
934
  }
@@ -941,7 +943,7 @@ function qn({ open: t, onOpenChange: n, children: e, onDrag: a, onRelease: o, sn
941
943
  dt
942
944
  ]);
943
945
  function ft(u) {
944
- We(), w?.(), u || Y(!1), setTimeout(() => {
946
+ We(), w?.(), u || j(!1), setTimeout(() => {
945
947
  r && Gt(r[0]);
946
948
  }, C.DURATION * 1e3);
947
949
  }
@@ -1000,8 +1002,8 @@ function qn({ open: t, onOpenChange: n, children: e, onDrag: a, onRelease: o, sn
1000
1002
  var B;
1001
1003
  const k = Math.min((B = p.current.getBoundingClientRect().height) != null ? B : 0, window.innerHeight);
1002
1004
  var Z;
1003
- const j = Math.min((Z = p.current.getBoundingClientRect().width) != null ? Z : 0, window.innerWidth), nt = f === "left" || f === "right";
1004
- if (Math.abs(E) >= (nt ? j : k) * v) {
1005
+ const Y = Math.min((Z = p.current.getBoundingClientRect().width) != null ? Z : 0, window.innerWidth), nt = f === "left" || f === "right";
1006
+ if (Math.abs(E) >= (nt ? Y : k) * v) {
1005
1007
  ft(), o?.(u, !1);
1006
1008
  return;
1007
1009
  }
@@ -1035,7 +1037,7 @@ function qn({ open: t, onOpenChange: n, children: e, onDrag: a, onRelease: o, sn
1035
1037
  transition: "none"
1036
1038
  });
1037
1039
  }
1038
- function Ye(u, E) {
1040
+ function je(u, E) {
1039
1041
  const T = A(f) ? window.innerHeight : window.innerWidth, y = E ? (T - rt) / T : 1, _ = E ? -rt : 0;
1040
1042
  E && P(p.current, {
1041
1043
  transition: `transform ${C.DURATION}s cubic-bezier(${C.EASE.join(",")})`,
@@ -1051,7 +1053,7 @@ function qn({ open: t, onOpenChange: n, children: e, onDrag: a, onRelease: o, sn
1051
1053
  ]), /* @__PURE__ */ i.createElement(hn, {
1052
1054
  defaultOpen: X,
1053
1055
  onOpenChange: (u) => {
1054
- !g && !u || (u ? K(!0) : ft(!0), Y(u));
1056
+ !g && !u || (u ? K(!0) : ft(!0), j(u));
1055
1057
  },
1056
1058
  open: F
1057
1059
  }, /* @__PURE__ */ i.createElement(De.Provider, {
@@ -1066,7 +1068,7 @@ function qn({ open: t, onOpenChange: n, children: e, onDrag: a, onRelease: o, sn
1066
1068
  onRelease: Ue,
1067
1069
  onDrag: Be,
1068
1070
  dismissible: g,
1069
- shouldAnimate: Yt,
1071
+ shouldAnimate: jt,
1070
1072
  handleOnly: m,
1071
1073
  isOpen: F,
1072
1074
  isDragging: J,
@@ -1074,7 +1076,7 @@ function qn({ open: t, onOpenChange: n, children: e, onDrag: a, onRelease: o, sn
1074
1076
  closeDrawer: ft,
1075
1077
  onNestedDrag: ze,
1076
1078
  onNestedOpenChange: Ve,
1077
- onNestedRelease: Ye,
1079
+ onNestedRelease: je,
1078
1080
  keyboardIsOpen: it,
1079
1081
  modal: U,
1080
1082
  snapPointsOffset: dt,
@@ -1108,17 +1110,17 @@ const Ae = /* @__PURE__ */ i.forwardRef(function({ ...t }, n) {
1108
1110
  Ae.displayName = "Drawer.Overlay";
1109
1111
  const Pe = /* @__PURE__ */ i.forwardRef(function({ onPointerDownOutside: t, style: n, onOpenAutoFocus: e, ...a }, o) {
1110
1112
  const { drawerRef: r, onPress: l, onRelease: s, onDrag: v, keyboardIsOpen: D, snapPointsOffset: g, activeSnapPointIndex: m, modal: h, isOpen: W, direction: H, snapPoints: x, container: U, handleOnly: w, shouldAnimate: $, autoFocus: N } = vt(), [f, X] = i.useState(!1), et = Se(o, r), d = i.useRef(null), R = i.useRef(null), b = i.useRef(!1), L = x && x.length > 0;
1111
- Yn();
1113
+ jn();
1112
1114
  const M = (c, V, F = 0) => {
1113
1115
  if (b.current) return !0;
1114
- const Y = Math.abs(c.y), I = Math.abs(c.x), K = I > Y, J = [
1116
+ const j = Math.abs(c.y), I = Math.abs(c.x), K = I > j, J = [
1115
1117
  "bottom",
1116
1118
  "right"
1117
1119
  ].includes(V) ? 1 : -1;
1118
1120
  if (V === "left" || V === "right") {
1119
1121
  if (!(c.x * J < 0) && I >= 0 && I <= F)
1120
1122
  return K;
1121
- } else if (!(c.y * J < 0) && Y >= 0 && Y <= F)
1123
+ } else if (!(c.y * J < 0) && j >= 0 && j <= F)
1122
1124
  return !K;
1123
1125
  return b.current = !0, !0;
1124
1126
  };
@@ -1167,11 +1169,11 @@ const Pe = /* @__PURE__ */ i.forwardRef(function({ onPointerDownOutside: t, styl
1167
1169
  },
1168
1170
  onPointerMove: (c) => {
1169
1171
  if (R.current = c, w || (a.onPointerMove == null || a.onPointerMove.call(a, c), !d.current)) return;
1170
- const V = c.pageY - d.current.y, F = c.pageX - d.current.x, Y = c.pointerType === "touch" ? 10 : 2;
1172
+ const V = c.pageY - d.current.y, F = c.pageX - d.current.x, j = c.pointerType === "touch" ? 10 : 2;
1171
1173
  M({
1172
1174
  x: F,
1173
1175
  y: V
1174
- }, H, Y) ? v(c) : (Math.abs(F) > Y || Math.abs(V) > Y) && (d.current = null);
1176
+ }, H, j) ? v(c) : (Math.abs(F) > j || Math.abs(V) > j) && (d.current = null);
1175
1177
  },
1176
1178
  onPointerUp: (c) => {
1177
1179
  a.onPointerUp == null || a.onPointerUp.call(a, c), d.current = null, b.current = !1, s(c);
@@ -1259,7 +1261,7 @@ const tt = {
1259
1261
  Close: En,
1260
1262
  Title: Dn,
1261
1263
  Description: Rn
1262
- }, or = ({ trigger: t, title: n, description: e, children: a, direction: o = "right", size: r = "380px" }) => {
1264
+ }, sr = ({ trigger: t, title: n, description: e, children: a, direction: o = "right", size: r = "380px" }) => {
1263
1265
  const l = "!font-sans fixed", s = {
1264
1266
  left: {
1265
1267
  className: `${l} top-0 bottom-0 left-0 shadow-[20px_0_20px_rgba(0,0,0,0.4)]`,
@@ -1278,7 +1280,7 @@ const tt = {
1278
1280
  style: { height: r }
1279
1281
  }
1280
1282
  }, { className: v, style: D } = s[o];
1281
- return /* @__PURE__ */ S(je, { children: /* @__PURE__ */ gt(tt.Root, { direction: o, children: [
1283
+ return /* @__PURE__ */ S(Ye, { children: /* @__PURE__ */ gt(tt.Root, { direction: o, children: [
1282
1284
  /* @__PURE__ */ S(tt.Trigger, { asChild: !0, children: t }),
1283
1285
  /* @__PURE__ */ gt(tt.Portal, { children: [
1284
1286
  /* @__PURE__ */ S(tt.Overlay, { className: "fixed inset-0 bg-transparent" }),
@@ -1300,5 +1302,5 @@ const tt = {
1300
1302
  ] }) });
1301
1303
  };
1302
1304
  export {
1303
- or as Drawer
1305
+ sr as Drawer
1304
1306
  };
package/dist/Popover.js CHANGED
@@ -2,10 +2,12 @@
2
2
  import "./styles/main.css";
3
3
  import { jsx as s } from "react/jsx-runtime";
4
4
  import * as i from "react";
5
- import { a as L, c as z, u as G, b as x, P as O, d as P, f as H, D as K } from "./index-DfFzqLW6.js";
6
- import { h as j, R as U, u as V, F as W } from "./index-BDYruyoU.js";
7
- import { c as _, R as Z, a as b, C as q, A as B } from "./index-C18a1qz_.js";
8
- import { P as w, a as J } from "./index-Ddc_4vXe.js";
5
+ import { d as L, c as z, b as G, a as x, P as O, e as P, g as H } from "./index-CA7haECj.js";
6
+ import { D as K } from "./index-cCg4yNa8.js";
7
+ import { h as j, R as U, u as V, F as W } from "./index-DUK1rxhf.js";
8
+ import { c as _, R as Z, a as b, C as q, A as B } from "./index-FeGk8zep.js";
9
+ import { P as J } from "./index-VXXKXen4.js";
10
+ import { P as w } from "./index-CBwRmAsQ.js";
9
11
  import { c as Q } from "./twUtils-CRiPKpXj.js";
10
12
  var C = "Popover", [E] = z(C, [
11
13
  _
@@ -216,13 +218,13 @@ function $(e) {
216
218
  return e ? "open" : "closed";
217
219
  }
218
220
  var ce = F, ie = y, pe = D, le = M, ue = T;
219
- function me({ ...e }) {
221
+ function Re({ ...e }) {
220
222
  return /* @__PURE__ */ s(ce, { "data-slot": "popover", ...e });
221
223
  }
222
- function Ce({ ...e }) {
224
+ function Ae({ ...e }) {
223
225
  return /* @__PURE__ */ s(pe, { asChild: !0, "data-slot": "popover-trigger", ...e });
224
226
  }
225
- function Re({
227
+ function xe({
226
228
  className: e,
227
229
  align: n = "center",
228
230
  side: r = "bottom",
@@ -252,12 +254,12 @@ function Re({
252
254
  }
253
255
  ) });
254
256
  }
255
- function Ae({ ...e }) {
257
+ function Oe({ ...e }) {
256
258
  return /* @__PURE__ */ s(ie, { "data-slot": "popover-anchor", ...e });
257
259
  }
258
260
  export {
259
- me as Popover,
260
- Ae as PopoverAnchor,
261
- Re as PopoverContent,
262
- Ce as PopoverTrigger
261
+ Re as Popover,
262
+ Oe as PopoverAnchor,
263
+ xe as PopoverContent,
264
+ Ae as PopoverTrigger
263
265
  };
@@ -1,11 +1,36 @@
1
- import { ComponentProps } from 'react';
2
- import * as RadioGroupPrimitive from './RadioGroupBase';
3
- type RadioGroupVariant = 'default' | 'unstyled';
4
- export type RadioGroupProps = ComponentProps<typeof RadioGroupPrimitive.RadioGroup> & {
5
- variant?: RadioGroupVariant;
1
+ import { ComponentPropsWithoutRef, ReactNode } from 'react';
2
+ import * as RadioGroupPrimitive from '@radix-ui/react-radio-group';
3
+ type RadioGroupVariant = 'default' | 'tiles' | 'unstyled';
4
+ export type RadioGroupProps = Omit<ComponentPropsWithoutRef<typeof RadioGroupPrimitive.Root>, 'onChange' | 'disabled'> & {
5
+ readonly onValueChange: (selected: string) => void;
6
+ readonly selected?: string;
7
+ readonly name: string;
8
+ readonly required?: boolean;
9
+ readonly orientation?: 'horizontal' | 'vertical';
10
+ readonly variant?: RadioGroupVariant;
11
+ readonly className?: string;
12
+ readonly disabled?: boolean | readonly string[];
13
+ readonly itemClassName?: string;
6
14
  };
7
- export type RadioGroupItemProps = ComponentProps<typeof RadioGroupPrimitive.RadioGroupItem>;
8
- export declare const RadioGroup: ({ className, variant, ...props }: RadioGroupProps) => import("react/jsx-runtime").JSX.Element;
9
- export declare const RadioGroupItem: ({ className, children, ...props }: RadioGroupItemProps) => import("react/jsx-runtime").JSX.Element;
10
- export {};
15
+ export interface RadioGroupItemProps extends ComponentPropsWithoutRef<typeof RadioGroupPrimitive.Item> {
16
+ readonly className?: string;
17
+ readonly children?: ReactNode;
18
+ readonly id?: string;
19
+ readonly value: string;
20
+ readonly description?: string | ReactNode;
21
+ }
22
+ declare const RadioGroup: import('react').ForwardRefExoticComponent<Omit<Omit<RadioGroupPrimitive.RadioGroupProps & import('react').RefAttributes<HTMLDivElement>, "ref">, "onChange" | "disabled"> & {
23
+ readonly onValueChange: (selected: string) => void;
24
+ readonly selected?: string;
25
+ readonly name: string;
26
+ readonly required?: boolean;
27
+ readonly orientation?: "horizontal" | "vertical";
28
+ readonly variant?: RadioGroupVariant;
29
+ readonly className?: string;
30
+ readonly disabled?: boolean | readonly string[];
31
+ readonly itemClassName?: string;
32
+ } & import('react').RefAttributes<HTMLDivElement>>;
33
+ declare const RadioGroupItem: import('react').ForwardRefExoticComponent<RadioGroupItemProps & import('react').RefAttributes<HTMLButtonElement>>;
34
+ declare const RadioGroupLabel: import('react').ForwardRefExoticComponent<Omit<Omit<import('../Label/Label').LabelProps, "ref"> & import('react').RefAttributes<HTMLLabelElement>, "ref"> & import('react').RefAttributes<HTMLLabelElement>>;
35
+ export { RadioGroup, RadioGroupItem, RadioGroupLabel };
11
36
  //# sourceMappingURL=RadioGroup.d.ts.map