@spear-ai/spectral 1.9.1 → 1.10.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 (236) hide show
  1. package/README.md +6 -5
  2. package/dist/.js +112 -239
  3. package/dist/Accordion-CDXdSAST.js +363 -0
  4. package/dist/Accordion.js +3 -498
  5. package/dist/Alert/AlertBase.js +69 -152
  6. package/dist/Alert.js +58 -106
  7. package/dist/AnimatePresence-D-9jXfgI.js +178 -0
  8. package/dist/App.js +6 -6
  9. package/dist/Avatar.js +83 -65
  10. package/dist/Badge.d.ts +1 -3
  11. package/dist/Badge.js +21 -25
  12. package/dist/Button.js +102 -178
  13. package/dist/ButtonGroup/ButtonGroupButton.js +38 -40
  14. package/dist/ButtonGroup.js +55 -59
  15. package/dist/ButtonIcon.js +58 -134
  16. package/dist/Calendar-s4lyijkn.js +3109 -0
  17. package/dist/Checkbox/CheckboxBase.js +94 -126
  18. package/dist/Checkbox.d.ts +1 -1
  19. package/dist/Checkbox.js +40 -105
  20. package/dist/Combobox/ComboboxBase.js +2 -79
  21. package/dist/Combobox.js +106 -172
  22. package/dist/ComboboxBase-D8Nf4xC-.js +491 -0
  23. package/dist/ControlGroup/ControlGroupSelect.d.ts +1 -1
  24. package/dist/ControlGroup/ControlGroupSelect.js +85 -101
  25. package/dist/ControlGroup.js +45 -48
  26. package/dist/DataCard/Card.js +37 -12
  27. package/dist/DataCard.d.ts +1 -1
  28. package/dist/DataCard.js +36 -16
  29. package/dist/DateTimePicker/Calendar.js +2 -2967
  30. package/dist/DateTimePicker/DateTimeDisplayInput.d.ts +1 -1
  31. package/dist/DateTimePicker/DateTimeDisplayInput.js +379 -275
  32. package/dist/DateTimePicker/DateTimeInput.d.ts +1 -1
  33. package/dist/DateTimePicker/DateTimeInput.js +133 -141
  34. package/dist/DateTimePicker/DateTimeUtils.js +2 -2193
  35. package/dist/DateTimePicker/TimePeriodSelect.d.ts +1 -1
  36. package/dist/DateTimePicker/TimePeriodSelect.js +45 -20
  37. package/dist/DateTimePicker/TimePicker.d.ts +1 -1
  38. package/dist/DateTimePicker/TimePicker.js +76 -60
  39. package/dist/DateTimePicker.d.ts +2 -2
  40. package/dist/DateTimePicker.js +87 -205
  41. package/dist/DateTimeUtils-DVvG6H-p.js +2098 -0
  42. package/dist/Dialog.js +74 -74
  43. package/dist/Drawer.js +67 -37
  44. package/dist/HoverCard-CYDsIiVK.js +201 -0
  45. package/dist/HoverCard.d.ts +1 -1
  46. package/dist/HoverCard.js +2 -218
  47. package/dist/Icons/AnalyzeIcon.js +50 -57
  48. package/dist/Icons/AnnotationsIcon.js +20 -15
  49. package/dist/Icons/ApprovedIcon.js +26 -18
  50. package/dist/Icons/ArrowDownIcon.js +20 -6
  51. package/dist/Icons/ArrowUpIcon.js +20 -6
  52. package/dist/Icons/BoxToolIcon.js +17 -12
  53. package/dist/Icons/CalendarIcon.js +43 -20
  54. package/dist/Icons/CheckCircleIcon.js +26 -10
  55. package/dist/Icons/CheckSquareIcon.js +26 -10
  56. package/dist/Icons/CheckmarkIcon.js +22 -9
  57. package/dist/Icons/ChevronDownIcon.js +22 -9
  58. package/dist/Icons/ChevronUpIcon.js +22 -9
  59. package/dist/Icons/ClockIcon.js +26 -18
  60. package/dist/Icons/CloseCircleIcon.js +26 -10
  61. package/dist/Icons/CloseIcon.js +18 -9
  62. package/dist/Icons/DashboardIcon.js +36 -10
  63. package/dist/Icons/DatabaseIcon.js +36 -19
  64. package/dist/Icons/DeleteIcon.js +36 -19
  65. package/dist/Icons/DurationIcon.js +57 -22
  66. package/dist/Icons/EditIcon.js +26 -27
  67. package/dist/Icons/EmailIcon.js +26 -10
  68. package/dist/Icons/EraserIcon.js +41 -25
  69. package/dist/Icons/ErrorIcon.js +27 -11
  70. package/dist/Icons/EyeClosedIcon.js +29 -13
  71. package/dist/Icons/EyeClosedIcon2.js +27 -11
  72. package/dist/Icons/EyeOpenIcon.js +22 -9
  73. package/dist/Icons/FileDownloadIcon.js +43 -20
  74. package/dist/Icons/GoToFirstIcon.js +26 -9
  75. package/dist/Icons/GoToLastIcon.js +26 -9
  76. package/dist/Icons/HarmonicCursorsIcon.js +23 -9
  77. package/dist/Icons/IconBase.d.ts +3 -3
  78. package/dist/Icons/IconBase.js +49 -66
  79. package/dist/Icons/InfoIcon.js +36 -10
  80. package/dist/Icons/KeyboardIcon.js +26 -27
  81. package/dist/Icons/LabelIcon.js +19 -14
  82. package/dist/Icons/LassoIcon.js +36 -28
  83. package/dist/Icons/LineToolIcon.js +48 -39
  84. package/dist/Icons/LiveViewIcon.js +50 -12
  85. package/dist/Icons/LoaderIcon.js +67 -27
  86. package/dist/Icons/LocationIcon.js +26 -27
  87. package/dist/Icons/LogoutIcon.js +20 -15
  88. package/dist/Icons/MeasureIcon.js +78 -25
  89. package/dist/Icons/MessagesIcon.js +33 -18
  90. package/dist/Icons/MetadataIcon.js +20 -15
  91. package/dist/Icons/MinusIcon.d.ts +1 -1
  92. package/dist/Icons/MinusIcon.js +18 -6
  93. package/dist/Icons/OntologyIcon.js +87 -71
  94. package/dist/Icons/PanelIconClose.js +28 -10
  95. package/dist/Icons/PanelIconOpen.js +28 -10
  96. package/dist/Icons/PlayIcon.js +20 -6
  97. package/dist/Icons/PlusIcon.js +20 -14
  98. package/dist/Icons/PolygonIcon.js +50 -39
  99. package/dist/Icons/ProgressCheckIcon.d.ts +5 -0
  100. package/dist/Icons/ProgressCheckIcon.js +58 -0
  101. package/dist/Icons/ResetIcon.js +17 -12
  102. package/dist/Icons/ReviewedIcon.js +36 -19
  103. package/dist/Icons/ScissorsIcon.js +22 -17
  104. package/dist/Icons/SearchIcon.js +26 -9
  105. package/dist/Icons/SettingsIcon.js +26 -27
  106. package/dist/Icons/SortAscendingIcon.js +50 -12
  107. package/dist/Icons/SortAtoZIcon.js +50 -12
  108. package/dist/Icons/SortDescendingIcon.js +50 -12
  109. package/dist/Icons/SortZtoAIcon.js +50 -12
  110. package/dist/Icons/StackIcon.js +26 -9
  111. package/dist/Icons/StarIcon.js +20 -6
  112. package/dist/Icons/TrashIcon.js +17 -12
  113. package/dist/Icons/UndoIcon.js +20 -15
  114. package/dist/Icons/User2Icon.js +26 -10
  115. package/dist/Icons/UserIcon.js +19 -14
  116. package/dist/Icons/WarningIcon.js +19 -14
  117. package/dist/Icons/ZoomAllIcon.js +71 -15
  118. package/dist/Icons/ZoomXIcon.js +36 -10
  119. package/dist/Icons/ZoomYIcon.js +36 -10
  120. package/dist/Icons/index.d.ts +1 -0
  121. package/dist/Icons.js +68 -136
  122. package/dist/IconsAnimated/PanelLeftCloseIcon.js +66 -36
  123. package/dist/IconsAnimated/PanelLeftOpenIcon.js +66 -36
  124. package/dist/IconsAnimated.js +3 -6
  125. package/dist/Input/InputUtils.js +51 -52
  126. package/dist/Input.js +132 -185
  127. package/dist/InputOTP-XUWW9xcI.js +461 -0
  128. package/dist/InputOTP.js +2 -382
  129. package/dist/Kbd.d.ts +1 -1
  130. package/dist/Kbd.js +182 -86
  131. package/dist/Label.js +12 -14
  132. package/dist/MultiSelect/MultiSelectBase.js +331 -403
  133. package/dist/MultiSelect.d.ts +1 -1
  134. package/dist/MultiSelect.js +23 -23
  135. package/dist/Popover.js +28 -32
  136. package/dist/RadioButton.d.ts +17 -0
  137. package/dist/RadioButton.js +33 -0
  138. package/dist/RadioButtonGroup/RadioButtonGroupBase.d.ts +3 -1
  139. package/dist/RadioButtonGroup/RadioButtonGroupBase.js +49 -46
  140. package/dist/RadioButtonGroup.d.ts +1 -1
  141. package/dist/RadioButtonGroup.js +11 -8
  142. package/dist/RadioGroup-w_q6RGEK.js +447 -0
  143. package/dist/RadioGroup.js +2 -505
  144. package/dist/Select.js +163 -186
  145. package/dist/Separator.js +16 -19
  146. package/dist/Skeleton.js +10 -6
  147. package/dist/Slider-BzzZT3Zm.js +490 -0
  148. package/dist/Slider.js +2 -562
  149. package/dist/SpectralProvider.js +8 -5
  150. package/dist/Switch/SwitchBase.js +91 -95
  151. package/dist/Switch-CVzRJ-0n.js +126 -0
  152. package/dist/Switch.d.ts +1 -1
  153. package/dist/Switch.js +2 -134
  154. package/dist/Tabs/TabsBase.js +242 -250
  155. package/dist/Tabs/tabsUtils.js +65 -73
  156. package/dist/Tabs.d.ts +1 -1
  157. package/dist/Tabs.js +73 -103
  158. package/dist/Textarea/TextareaUtils.js +35 -46
  159. package/dist/Textarea.js +83 -160
  160. package/dist/Toast-9zqXxKKO.js +711 -0
  161. package/dist/Toast.js +2 -885
  162. package/dist/Toggle/ToggleBase.js +46 -56
  163. package/dist/Toggle.d.ts +1 -1
  164. package/dist/Toggle.js +52 -62
  165. package/dist/ToggleGroup/ToggleGroupBase.js +128 -104
  166. package/dist/ToggleGroup.d.ts +1 -1
  167. package/dist/ToggleGroup.js +52 -63
  168. package/dist/Tooltip-D1K8kY1y.js +389 -0
  169. package/dist/Tooltip.js +2 -365
  170. package/dist/Tray.js +174 -217
  171. package/dist/chunk-h9knIhTc.js +20 -0
  172. package/dist/clsx-jM1GlMvB.js +16 -0
  173. package/dist/dist-3Af8168y.js +913 -0
  174. package/dist/dist-7HRQ5IKN.js +249 -0
  175. package/dist/dist-B2k1iWFp.js +129 -0
  176. package/dist/dist-B4FgboI8.js +122 -0
  177. package/dist/dist-B4g6zpUF.js +33 -0
  178. package/dist/dist-B9tup-4O.js +216 -0
  179. package/dist/dist-BK1K0g9W.js +29 -0
  180. package/dist/dist-Bfjk-jx9.js +28 -0
  181. package/dist/dist-Bft31cJh.js +65 -0
  182. package/dist/dist-BtdmHAzK.js +190 -0
  183. package/dist/dist-C0Hifjgh.js +1287 -0
  184. package/dist/dist-CGzgmYB9.js +68 -0
  185. package/dist/dist-ClmepHp4.js +10 -0
  186. package/dist/dist-D8Wb_MX9.js +6 -0
  187. package/dist/dist-Dtvmk11N.js +12 -0
  188. package/dist/dist-fW81qjVl.js +677 -0
  189. package/dist/dist-s1uWaZYZ.js +11 -0
  190. package/dist/es2015-YHaMV-St.js +701 -0
  191. package/dist/hooks/useAccordionAutoScroll.js +66 -67
  192. package/dist/hooks/useControllableState.js +14 -13
  193. package/dist/hooks/useTheme.js +21 -17
  194. package/dist/index.d.ts +2 -1
  195. package/dist/index.d.ts.map +1 -1
  196. package/dist/main.js +18954 -27224
  197. package/dist/primitives/button.js +39 -41
  198. package/dist/primitives/input-group.js +57 -73
  199. package/dist/primitives/input.js +11 -20
  200. package/dist/primitives/popover.js +34 -28
  201. package/dist/primitives/select.js +70 -138
  202. package/dist/primitives/slot.js +32 -31
  203. package/dist/primitives/textarea.js +10 -16
  204. package/dist/proxy-Dn10Pl_g.js +4920 -0
  205. package/dist/styles/main.css +2 -1
  206. package/dist/styles/spectral.css +1 -1
  207. package/dist/twUtils-VNWgstKL.js +1673 -0
  208. package/dist/use-animation-CBUDycyW.js +57 -0
  209. package/dist/utils/constants.js +4 -4
  210. package/dist/utils/formFieldUtils.js +136 -148
  211. package/dist/utils/sharedUtils.js +26 -7
  212. package/dist/utils/twUtils.js +2 -2919
  213. package/package.json +24 -28
  214. package/dist/ComboboxBase-CxNxYtdT.js +0 -408
  215. package/dist/clsx-OuTLNxxd.js +0 -16
  216. package/dist/index-0ioNhtNM.js +0 -10
  217. package/dist/index-6oYKCvIn.js +0 -677
  218. package/dist/index-BFOf48AQ.js +0 -69
  219. package/dist/index-BZPx6jYI.js +0 -8
  220. package/dist/index-BlHU_t18.js +0 -142
  221. package/dist/index-Bm1RbF6w.js +0 -1037
  222. package/dist/index-Bv2OIg5P.js +0 -225
  223. package/dist/index-CKEI0pDv.js +0 -56
  224. package/dist/index-CM_hWgfC.js +0 -32
  225. package/dist/index-C_YVr64u.js +0 -1538
  226. package/dist/index-Cl8VeY0o.js +0 -149
  227. package/dist/index-CwSyIPrv.js +0 -13
  228. package/dist/index-D29mdTf5.js +0 -34
  229. package/dist/index-DEYs15GP.js +0 -66
  230. package/dist/index-Dc0No4pV.js +0 -233
  231. package/dist/index-T6XEa11q.js +0 -822
  232. package/dist/index-pBCLb6Gr.js +0 -240
  233. package/dist/index-psiVrsnE.js +0 -27
  234. package/dist/index-rKs9bXHr.js +0 -6
  235. package/dist/proxy-CO_-Vget.js +0 -4975
  236. package/dist/use-animation-DhEPRwZ3.js +0 -62
@@ -0,0 +1,216 @@
1
+ import "./styles/main.css";
2
+ import { a as e, d as t, l as n, o as r, r as i, t as a, u as o } from "./dist-7HRQ5IKN.js";
3
+ import { t as s } from "./dist-Bft31cJh.js";
4
+ import { t as c } from "./dist-Dtvmk11N.js";
5
+ import { n as l, t as u } from "./dist-B2k1iWFp.js";
6
+ import { i as d, n as f, r as p, t as m } from "./es2015-YHaMV-St.js";
7
+ import * as h from "react";
8
+ import { Fragment as g, jsx as _, jsxs as v } from "react/jsx-runtime";
9
+ //#region node_modules/.pnpm/@radix-ui+react-dialog@1.1.15_@types+react-dom@19.2.3_@types+react@19.2.14__@types+reac_759603dcb12523e99413fb21d5cebc08/node_modules/@radix-ui/react-dialog/dist/index.mjs
10
+ var y = "Dialog", [b, ee] = t(y), [x, S] = b(y), C = (e) => {
11
+ let { __scopeDialog: t, children: n, open: r, defaultOpen: a, onOpenChange: o, modal: s = !0 } = e, l = h.useRef(null), u = h.useRef(null), [d, f] = i({
12
+ prop: r,
13
+ defaultProp: a ?? !1,
14
+ onChange: o,
15
+ caller: y
16
+ });
17
+ return /* @__PURE__ */ _(x, {
18
+ scope: t,
19
+ triggerRef: l,
20
+ contentRef: u,
21
+ contentId: c(),
22
+ titleId: c(),
23
+ descriptionId: c(),
24
+ open: d,
25
+ onOpenChange: f,
26
+ onOpenToggle: h.useCallback(() => f((e) => !e), [f]),
27
+ modal: s,
28
+ children: n
29
+ });
30
+ };
31
+ C.displayName = y;
32
+ var w = "DialogTrigger", T = h.forwardRef((t, r) => {
33
+ let { __scopeDialog: i, ...o } = t, s = S(w, i), c = n(r, s.triggerRef);
34
+ return /* @__PURE__ */ _(a.button, {
35
+ type: "button",
36
+ "aria-haspopup": "dialog",
37
+ "aria-expanded": s.open,
38
+ "aria-controls": s.contentId,
39
+ "data-state": G(s.open),
40
+ ...o,
41
+ ref: c,
42
+ onClick: e(t.onClick, s.onOpenToggle)
43
+ });
44
+ });
45
+ T.displayName = w;
46
+ var E = "DialogPortal", [D, O] = b(E, { forceMount: void 0 }), k = (e) => {
47
+ let { __scopeDialog: t, forceMount: n, children: r, container: i } = e, a = S(E, t);
48
+ return /* @__PURE__ */ _(D, {
49
+ scope: t,
50
+ forceMount: n,
51
+ children: h.Children.map(r, (e) => /* @__PURE__ */ _(s, {
52
+ present: n || a.open,
53
+ children: /* @__PURE__ */ _(u, {
54
+ asChild: !0,
55
+ container: i,
56
+ children: e
57
+ })
58
+ }))
59
+ });
60
+ };
61
+ k.displayName = E;
62
+ var A = "DialogOverlay", j = h.forwardRef((e, t) => {
63
+ let n = O(A, e.__scopeDialog), { forceMount: r = n.forceMount, ...i } = e, a = S(A, e.__scopeDialog);
64
+ return a.modal ? /* @__PURE__ */ _(s, {
65
+ present: r || a.open,
66
+ children: /* @__PURE__ */ _(N, {
67
+ ...i,
68
+ ref: t
69
+ })
70
+ }) : null;
71
+ });
72
+ j.displayName = A;
73
+ var M = r("DialogOverlay.RemoveScroll"), N = h.forwardRef((e, t) => {
74
+ let { __scopeDialog: n, ...r } = e, i = S(A, n);
75
+ return /* @__PURE__ */ _(f, {
76
+ as: M,
77
+ allowPinchZoom: !0,
78
+ shards: [i.contentRef],
79
+ children: /* @__PURE__ */ _(a.div, {
80
+ "data-state": G(i.open),
81
+ ...r,
82
+ ref: t,
83
+ style: {
84
+ pointerEvents: "auto",
85
+ ...r.style
86
+ }
87
+ })
88
+ });
89
+ }), P = "DialogContent", F = h.forwardRef((e, t) => {
90
+ let n = O(P, e.__scopeDialog), { forceMount: r = n.forceMount, ...i } = e, a = S(P, e.__scopeDialog);
91
+ return /* @__PURE__ */ _(s, {
92
+ present: r || a.open,
93
+ children: a.modal ? /* @__PURE__ */ _(I, {
94
+ ...i,
95
+ ref: t
96
+ }) : /* @__PURE__ */ _(L, {
97
+ ...i,
98
+ ref: t
99
+ })
100
+ });
101
+ });
102
+ F.displayName = P;
103
+ var I = h.forwardRef((t, r) => {
104
+ let i = S(P, t.__scopeDialog), a = h.useRef(null), o = n(r, i.contentRef, a);
105
+ return h.useEffect(() => {
106
+ let e = a.current;
107
+ if (e) return m(e);
108
+ }, []), /* @__PURE__ */ _(R, {
109
+ ...t,
110
+ ref: o,
111
+ trapFocus: i.open,
112
+ disableOutsidePointerEvents: !0,
113
+ onCloseAutoFocus: e(t.onCloseAutoFocus, (e) => {
114
+ e.preventDefault(), i.triggerRef.current?.focus();
115
+ }),
116
+ onPointerDownOutside: e(t.onPointerDownOutside, (e) => {
117
+ let t = e.detail.originalEvent, n = t.button === 0 && t.ctrlKey === !0;
118
+ (t.button === 2 || n) && e.preventDefault();
119
+ }),
120
+ onFocusOutside: e(t.onFocusOutside, (e) => e.preventDefault())
121
+ });
122
+ }), L = h.forwardRef((e, t) => {
123
+ let n = S(P, e.__scopeDialog), r = h.useRef(!1), i = h.useRef(!1);
124
+ return /* @__PURE__ */ _(R, {
125
+ ...e,
126
+ ref: t,
127
+ trapFocus: !1,
128
+ disableOutsidePointerEvents: !1,
129
+ onCloseAutoFocus: (t) => {
130
+ e.onCloseAutoFocus?.(t), t.defaultPrevented || (r.current || n.triggerRef.current?.focus(), t.preventDefault()), r.current = !1, i.current = !1;
131
+ },
132
+ onInteractOutside: (t) => {
133
+ e.onInteractOutside?.(t), t.defaultPrevented || (r.current = !0, t.detail.originalEvent.type === "pointerdown" && (i.current = !0));
134
+ let a = t.target;
135
+ n.triggerRef.current?.contains(a) && t.preventDefault(), t.detail.originalEvent.type === "focusin" && i.current && t.preventDefault();
136
+ }
137
+ });
138
+ }), R = h.forwardRef((e, t) => {
139
+ let { __scopeDialog: r, trapFocus: i, onOpenAutoFocus: a, onCloseAutoFocus: o, ...s } = e, c = S(P, r), u = h.useRef(null), f = n(t, u);
140
+ return p(), /* @__PURE__ */ v(g, { children: [/* @__PURE__ */ _(d, {
141
+ asChild: !0,
142
+ loop: !0,
143
+ trapped: i,
144
+ onMountAutoFocus: a,
145
+ onUnmountAutoFocus: o,
146
+ children: /* @__PURE__ */ _(l, {
147
+ role: "dialog",
148
+ id: c.contentId,
149
+ "aria-describedby": c.descriptionId,
150
+ "aria-labelledby": c.titleId,
151
+ "data-state": G(c.open),
152
+ ...s,
153
+ ref: f,
154
+ onDismiss: () => c.onOpenChange(!1)
155
+ })
156
+ }), /* @__PURE__ */ v(g, { children: [/* @__PURE__ */ _(J, { titleId: c.titleId }), /* @__PURE__ */ _(X, {
157
+ contentRef: u,
158
+ descriptionId: c.descriptionId
159
+ })] })] });
160
+ }), z = "DialogTitle", B = h.forwardRef((e, t) => {
161
+ let { __scopeDialog: n, ...r } = e, i = S(z, n);
162
+ return /* @__PURE__ */ _(a.h2, {
163
+ id: i.titleId,
164
+ ...r,
165
+ ref: t
166
+ });
167
+ });
168
+ B.displayName = z;
169
+ var V = "DialogDescription", H = h.forwardRef((e, t) => {
170
+ let { __scopeDialog: n, ...r } = e, i = S(V, n);
171
+ return /* @__PURE__ */ _(a.p, {
172
+ id: i.descriptionId,
173
+ ...r,
174
+ ref: t
175
+ });
176
+ });
177
+ H.displayName = V;
178
+ var U = "DialogClose", W = h.forwardRef((t, n) => {
179
+ let { __scopeDialog: r, ...i } = t, o = S(U, r);
180
+ return /* @__PURE__ */ _(a.button, {
181
+ type: "button",
182
+ ...i,
183
+ ref: n,
184
+ onClick: e(t.onClick, () => o.onOpenChange(!1))
185
+ });
186
+ });
187
+ W.displayName = U;
188
+ function G(e) {
189
+ return e ? "open" : "closed";
190
+ }
191
+ var K = "DialogTitleWarning", [te, q] = o(K, {
192
+ contentName: P,
193
+ titleName: z,
194
+ docsSlug: "dialog"
195
+ }), J = ({ titleId: e }) => {
196
+ let t = q(K), n = `\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
197
+
198
+ If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
199
+
200
+ For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;
201
+ return h.useEffect(() => {
202
+ e && (document.getElementById(e) || console.error(n));
203
+ }, [n, e]), null;
204
+ }, Y = "DialogDescriptionWarning", X = ({ contentRef: e, descriptionId: t }) => {
205
+ let n = `Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${q(Y).contentName}}.`;
206
+ return h.useEffect(() => {
207
+ let r = e.current?.getAttribute("aria-describedby");
208
+ t && r && (document.getElementById(t) || console.warn(n));
209
+ }, [
210
+ n,
211
+ e,
212
+ t
213
+ ]), null;
214
+ }, Z = C, Q = T, ne = k, $ = j, re = F, ie = B, ae = H, oe = W;
215
+ //#endregion
216
+ export { ne as a, Q as c, $ as i, re as n, Z as o, ae as r, ie as s, oe as t };
@@ -0,0 +1,29 @@
1
+ import { i as e } from "./dist-7HRQ5IKN.js";
2
+ import * as t from "react";
3
+ //#region node_modules/.pnpm/@radix-ui+react-use-size@1.1.1_@types+react@19.2.14_react@19.2.3/node_modules/@radix-ui/react-use-size/dist/index.mjs
4
+ function n(n) {
5
+ let [r, i] = t.useState(void 0);
6
+ return e(() => {
7
+ if (n) {
8
+ i({
9
+ width: n.offsetWidth,
10
+ height: n.offsetHeight
11
+ });
12
+ let e = new ResizeObserver((e) => {
13
+ if (!Array.isArray(e) || !e.length) return;
14
+ let t = e[0], r, a;
15
+ if ("borderBoxSize" in t) {
16
+ let e = t.borderBoxSize, n = Array.isArray(e) ? e[0] : e;
17
+ r = n.inlineSize, a = n.blockSize;
18
+ } else r = n.offsetWidth, a = n.offsetHeight;
19
+ i({
20
+ width: r,
21
+ height: a
22
+ });
23
+ });
24
+ return e.observe(n, { box: "border-box" }), () => e.unobserve(n);
25
+ } else i(void 0);
26
+ }, [n]), r;
27
+ }
28
+ //#endregion
29
+ export { n as t };
@@ -0,0 +1,28 @@
1
+ import "./styles/main.css";
2
+ import { t as e } from "./dist-7HRQ5IKN.js";
3
+ import * as t from "react";
4
+ import { jsx as n } from "react/jsx-runtime";
5
+ //#region node_modules/.pnpm/@radix-ui+react-visually-hidden@1.2.3_@types+react-dom@19.2.3_@types+react@19.2.14__@ty_0129a6fd5bbf45157bf803220679de42/node_modules/@radix-ui/react-visually-hidden/dist/index.mjs
6
+ var r = Object.freeze({
7
+ position: "absolute",
8
+ border: 0,
9
+ width: 1,
10
+ height: 1,
11
+ padding: 0,
12
+ margin: -1,
13
+ overflow: "hidden",
14
+ clip: "rect(0, 0, 0, 0)",
15
+ whiteSpace: "nowrap",
16
+ wordWrap: "normal"
17
+ }), i = "VisuallyHidden", a = t.forwardRef((t, i) => /* @__PURE__ */ n(e.span, {
18
+ ...t,
19
+ ref: i,
20
+ style: {
21
+ ...r,
22
+ ...t.style
23
+ }
24
+ }));
25
+ a.displayName = i;
26
+ var o = a;
27
+ //#endregion
28
+ export { r as n, o as t };
@@ -0,0 +1,65 @@
1
+ import { i as e, l as t } from "./dist-7HRQ5IKN.js";
2
+ import * as n from "react";
3
+ //#region node_modules/.pnpm/@radix-ui+react-presence@1.1.5_@types+react-dom@19.2.3_@types+react@19.2.14__@types+rea_ed1433b3a7b610ecabc4f5f1045d8cb3/node_modules/@radix-ui/react-presence/dist/index.mjs
4
+ function r(e, t) {
5
+ return n.useReducer((e, n) => t[e][n] ?? e, e);
6
+ }
7
+ var i = (e) => {
8
+ let { present: r, children: i } = e, o = a(r), c = typeof i == "function" ? i({ present: o.isPresent }) : n.Children.only(i), l = t(o.ref, s(c));
9
+ return typeof i == "function" || o.isPresent ? n.cloneElement(c, { ref: l }) : null;
10
+ };
11
+ i.displayName = "Presence";
12
+ function a(t) {
13
+ let [i, a] = n.useState(), s = n.useRef(null), c = n.useRef(t), l = n.useRef("none"), [u, d] = r(t ? "mounted" : "unmounted", {
14
+ mounted: {
15
+ UNMOUNT: "unmounted",
16
+ ANIMATION_OUT: "unmountSuspended"
17
+ },
18
+ unmountSuspended: {
19
+ MOUNT: "mounted",
20
+ ANIMATION_END: "unmounted"
21
+ },
22
+ unmounted: { MOUNT: "mounted" }
23
+ });
24
+ return n.useEffect(() => {
25
+ let e = o(s.current);
26
+ l.current = u === "mounted" ? e : "none";
27
+ }, [u]), e(() => {
28
+ let e = s.current, n = c.current;
29
+ if (n !== t) {
30
+ let r = l.current, i = o(e);
31
+ t ? d("MOUNT") : i === "none" || e?.display === "none" ? d("UNMOUNT") : d(n && r !== i ? "ANIMATION_OUT" : "UNMOUNT"), c.current = t;
32
+ }
33
+ }, [t, d]), e(() => {
34
+ if (i) {
35
+ let e, t = i.ownerDocument.defaultView ?? window, n = (n) => {
36
+ let r = o(s.current).includes(CSS.escape(n.animationName));
37
+ if (n.target === i && r && (d("ANIMATION_END"), !c.current)) {
38
+ let n = i.style.animationFillMode;
39
+ i.style.animationFillMode = "forwards", e = t.setTimeout(() => {
40
+ i.style.animationFillMode === "forwards" && (i.style.animationFillMode = n);
41
+ });
42
+ }
43
+ }, r = (e) => {
44
+ e.target === i && (l.current = o(s.current));
45
+ };
46
+ return i.addEventListener("animationstart", r), i.addEventListener("animationcancel", n), i.addEventListener("animationend", n), () => {
47
+ t.clearTimeout(e), i.removeEventListener("animationstart", r), i.removeEventListener("animationcancel", n), i.removeEventListener("animationend", n);
48
+ };
49
+ } else d("ANIMATION_END");
50
+ }, [i, d]), {
51
+ isPresent: ["mounted", "unmountSuspended"].includes(u),
52
+ ref: n.useCallback((e) => {
53
+ s.current = e ? getComputedStyle(e) : null, a(e);
54
+ }, [])
55
+ };
56
+ }
57
+ function o(e) {
58
+ return e?.animationName || "none";
59
+ }
60
+ function s(e) {
61
+ let t = Object.getOwnPropertyDescriptor(e.props, "ref")?.get, n = t && "isReactWarning" in t && t.isReactWarning;
62
+ return n ? e.ref : (t = Object.getOwnPropertyDescriptor(e, "ref")?.get, n = t && "isReactWarning" in t && t.isReactWarning, n ? e.props.ref : e.props.ref || e.ref);
63
+ }
64
+ //#endregion
65
+ export { i as t };
@@ -0,0 +1,190 @@
1
+ import "./styles/main.css";
2
+ import { a as e, d as t, l as n, o as r, r as i, t as a } from "./dist-7HRQ5IKN.js";
3
+ import { t as o } from "./dist-Bft31cJh.js";
4
+ import { t as s } from "./dist-Dtvmk11N.js";
5
+ import { n as c, t as l } from "./dist-B2k1iWFp.js";
6
+ import { i as u, n as d, r as f, t as p } from "./es2015-YHaMV-St.js";
7
+ import { a as m, i as h, n as g, r as _, t as v } from "./dist-C0Hifjgh.js";
8
+ import * as y from "react";
9
+ import { jsx as b } from "react/jsx-runtime";
10
+ //#region node_modules/.pnpm/@radix-ui+react-popover@1.1.15_@types+react-dom@19.2.3_@types+react@19.2.14__@types+rea_e0b27b407ae4f4f39109212793ce9f4c/node_modules/@radix-ui/react-popover/dist/index.mjs
11
+ var x = "Popover", [S, C] = t(x, [m]), w = m(), [T, E] = S(x), D = (e) => {
12
+ let { __scopePopover: t, children: n, open: r, defaultOpen: a, onOpenChange: o, modal: c = !1 } = e, l = w(t), u = y.useRef(null), [d, f] = y.useState(!1), [p, m] = i({
13
+ prop: r,
14
+ defaultProp: a ?? !1,
15
+ onChange: o,
16
+ caller: x
17
+ });
18
+ return /* @__PURE__ */ b(h, {
19
+ ...l,
20
+ children: /* @__PURE__ */ b(T, {
21
+ scope: t,
22
+ contentId: s(),
23
+ triggerRef: u,
24
+ open: p,
25
+ onOpenChange: m,
26
+ onOpenToggle: y.useCallback(() => m((e) => !e), [m]),
27
+ hasCustomAnchor: d,
28
+ onCustomAnchorAdd: y.useCallback(() => f(!0), []),
29
+ onCustomAnchorRemove: y.useCallback(() => f(!1), []),
30
+ modal: c,
31
+ children: n
32
+ })
33
+ });
34
+ };
35
+ D.displayName = x;
36
+ var O = "PopoverAnchor", k = y.forwardRef((e, t) => {
37
+ let { __scopePopover: n, ...r } = e, i = E(O, n), a = w(n), { onCustomAnchorAdd: o, onCustomAnchorRemove: s } = i;
38
+ return y.useEffect(() => (o(), () => s()), [o, s]), /* @__PURE__ */ b(v, {
39
+ ...a,
40
+ ...r,
41
+ ref: t
42
+ });
43
+ });
44
+ k.displayName = O;
45
+ var A = "PopoverTrigger", j = y.forwardRef((t, r) => {
46
+ let { __scopePopover: i, ...o } = t, s = E(A, i), c = w(i), l = n(r, s.triggerRef), u = /* @__PURE__ */ b(a.button, {
47
+ type: "button",
48
+ "aria-haspopup": "dialog",
49
+ "aria-expanded": s.open,
50
+ "aria-controls": s.contentId,
51
+ "data-state": K(s.open),
52
+ ...o,
53
+ ref: l,
54
+ onClick: e(t.onClick, s.onOpenToggle)
55
+ });
56
+ return s.hasCustomAnchor ? u : /* @__PURE__ */ b(v, {
57
+ asChild: !0,
58
+ ...c,
59
+ children: u
60
+ });
61
+ });
62
+ j.displayName = A;
63
+ var M = "PopoverPortal", [N, P] = S(M, { forceMount: void 0 }), F = (e) => {
64
+ let { __scopePopover: t, forceMount: n, children: r, container: i } = e, a = E(M, t);
65
+ return /* @__PURE__ */ b(N, {
66
+ scope: t,
67
+ forceMount: n,
68
+ children: /* @__PURE__ */ b(o, {
69
+ present: n || a.open,
70
+ children: /* @__PURE__ */ b(l, {
71
+ asChild: !0,
72
+ container: i,
73
+ children: r
74
+ })
75
+ })
76
+ });
77
+ };
78
+ F.displayName = M;
79
+ var I = "PopoverContent", L = y.forwardRef((e, t) => {
80
+ let n = P(I, e.__scopePopover), { forceMount: r = n.forceMount, ...i } = e, a = E(I, e.__scopePopover);
81
+ return /* @__PURE__ */ b(o, {
82
+ present: r || a.open,
83
+ children: a.modal ? /* @__PURE__ */ b(z, {
84
+ ...i,
85
+ ref: t
86
+ }) : /* @__PURE__ */ b(B, {
87
+ ...i,
88
+ ref: t
89
+ })
90
+ });
91
+ });
92
+ L.displayName = I;
93
+ var R = r("PopoverContent.RemoveScroll"), z = y.forwardRef((t, r) => {
94
+ let i = E(I, t.__scopePopover), a = y.useRef(null), o = n(r, a), s = y.useRef(!1);
95
+ return y.useEffect(() => {
96
+ let e = a.current;
97
+ if (e) return p(e);
98
+ }, []), /* @__PURE__ */ b(d, {
99
+ as: R,
100
+ allowPinchZoom: !0,
101
+ children: /* @__PURE__ */ b(V, {
102
+ ...t,
103
+ ref: o,
104
+ trapFocus: i.open,
105
+ disableOutsidePointerEvents: !0,
106
+ onCloseAutoFocus: e(t.onCloseAutoFocus, (e) => {
107
+ e.preventDefault(), s.current || i.triggerRef.current?.focus();
108
+ }),
109
+ onPointerDownOutside: e(t.onPointerDownOutside, (e) => {
110
+ let t = e.detail.originalEvent, n = t.button === 0 && t.ctrlKey === !0;
111
+ s.current = t.button === 2 || n;
112
+ }, { checkForDefaultPrevented: !1 }),
113
+ onFocusOutside: e(t.onFocusOutside, (e) => e.preventDefault(), { checkForDefaultPrevented: !1 })
114
+ })
115
+ });
116
+ }), B = y.forwardRef((e, t) => {
117
+ let n = E(I, e.__scopePopover), r = y.useRef(!1), i = y.useRef(!1);
118
+ return /* @__PURE__ */ b(V, {
119
+ ...e,
120
+ ref: t,
121
+ trapFocus: !1,
122
+ disableOutsidePointerEvents: !1,
123
+ onCloseAutoFocus: (t) => {
124
+ e.onCloseAutoFocus?.(t), t.defaultPrevented || (r.current || n.triggerRef.current?.focus(), t.preventDefault()), r.current = !1, i.current = !1;
125
+ },
126
+ onInteractOutside: (t) => {
127
+ e.onInteractOutside?.(t), t.defaultPrevented || (r.current = !0, t.detail.originalEvent.type === "pointerdown" && (i.current = !0));
128
+ let a = t.target;
129
+ n.triggerRef.current?.contains(a) && t.preventDefault(), t.detail.originalEvent.type === "focusin" && i.current && t.preventDefault();
130
+ }
131
+ });
132
+ }), V = y.forwardRef((e, t) => {
133
+ let { __scopePopover: n, trapFocus: r, onOpenAutoFocus: i, onCloseAutoFocus: a, disableOutsidePointerEvents: o, onEscapeKeyDown: s, onPointerDownOutside: l, onFocusOutside: d, onInteractOutside: p, ...m } = e, h = E(I, n), g = w(n);
134
+ return f(), /* @__PURE__ */ b(u, {
135
+ asChild: !0,
136
+ loop: !0,
137
+ trapped: r,
138
+ onMountAutoFocus: i,
139
+ onUnmountAutoFocus: a,
140
+ children: /* @__PURE__ */ b(c, {
141
+ asChild: !0,
142
+ disableOutsidePointerEvents: o,
143
+ onInteractOutside: p,
144
+ onEscapeKeyDown: s,
145
+ onPointerDownOutside: l,
146
+ onFocusOutside: d,
147
+ onDismiss: () => h.onOpenChange(!1),
148
+ children: /* @__PURE__ */ b(_, {
149
+ "data-state": K(h.open),
150
+ role: "dialog",
151
+ id: h.contentId,
152
+ ...g,
153
+ ...m,
154
+ ref: t,
155
+ style: {
156
+ ...m.style,
157
+ "--radix-popover-content-transform-origin": "var(--radix-popper-transform-origin)",
158
+ "--radix-popover-content-available-width": "var(--radix-popper-available-width)",
159
+ "--radix-popover-content-available-height": "var(--radix-popper-available-height)",
160
+ "--radix-popover-trigger-width": "var(--radix-popper-anchor-width)",
161
+ "--radix-popover-trigger-height": "var(--radix-popper-anchor-height)"
162
+ }
163
+ })
164
+ })
165
+ });
166
+ }), H = "PopoverClose", U = y.forwardRef((t, n) => {
167
+ let { __scopePopover: r, ...i } = t, o = E(H, r);
168
+ return /* @__PURE__ */ b(a.button, {
169
+ type: "button",
170
+ ...i,
171
+ ref: n,
172
+ onClick: e(t.onClick, () => o.onOpenChange(!1))
173
+ });
174
+ });
175
+ U.displayName = H;
176
+ var W = "PopoverArrow", G = y.forwardRef((e, t) => {
177
+ let { __scopePopover: n, ...r } = e;
178
+ return /* @__PURE__ */ b(g, {
179
+ ...w(n),
180
+ ...r,
181
+ ref: t
182
+ });
183
+ });
184
+ G.displayName = W;
185
+ function K(e) {
186
+ return e ? "open" : "closed";
187
+ }
188
+ var q = D, J = k, Y = j, X = F, Z = L;
189
+ //#endregion
190
+ export { Y as a, q as i, Z as n, X as r, J as t };