mtxuilib 0.0.308 → 0.0.310

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 (273) hide show
  1. package/dist/App.cjs +17 -1
  2. package/dist/MtmButton.cjs +2 -1
  3. package/dist/NovelEditorLoader.cjs +8 -4
  4. package/dist/browser/index.min.js +2 -1
  5. package/dist/common/FullCenter.cjs +2 -1
  6. package/dist/common/MtImage.cjs +2 -1
  7. package/dist/common/mtlink.cjs +2 -1
  8. package/dist/common/table/cells/ExpenderCell.cjs +9 -4
  9. package/dist/common/table/cells/SelectCell.cjs +8 -4
  10. package/dist/common/table/cells/Text.cjs +2 -1
  11. package/dist/common/table/cells/ViewLink.cjs +8 -4
  12. package/dist/common/table/cells/container/cellWrapper.cjs +2 -1
  13. package/dist/common/table/cells/number.cjs +2 -1
  14. package/dist/common/table/cells/string.cjs +2 -1
  15. package/dist/common/table/data-table-pagination.cjs +89 -51
  16. package/dist/common/table/data-table-view-options.cjs +32 -22
  17. package/dist/common/tailwind-indicator.cjs +9 -1
  18. package/dist/entry-client.cjs +2 -1
  19. package/dist/entry-server.cjs +2 -1
  20. package/dist/esm/App.js +17 -1
  21. package/dist/esm/MtmButton.js +2 -1
  22. package/dist/esm/NovelEditorLoader.js +8 -4
  23. package/dist/esm/common/FullCenter.js +2 -1
  24. package/dist/esm/common/MtImage.js +2 -1
  25. package/dist/esm/common/mtlink.js +2 -1
  26. package/dist/esm/common/table/cells/ExpenderCell.js +9 -4
  27. package/dist/esm/common/table/cells/SelectCell.js +8 -4
  28. package/dist/esm/common/table/cells/Text.js +2 -1
  29. package/dist/esm/common/table/cells/ViewLink.js +8 -4
  30. package/dist/esm/common/table/cells/container/cellWrapper.js +2 -1
  31. package/dist/esm/common/table/cells/number.js +2 -1
  32. package/dist/esm/common/table/cells/string.js +2 -1
  33. package/dist/esm/common/table/data-table-pagination.js +89 -51
  34. package/dist/esm/common/table/data-table-view-options.js +32 -22
  35. package/dist/esm/common/tailwind-indicator.js +9 -1
  36. package/dist/esm/entry-client.js +2 -1
  37. package/dist/esm/entry-server.js +2 -1
  38. package/dist/esm/icons/icons.js +41 -31
  39. package/dist/esm/index.js +2 -1
  40. package/dist/esm/lib/connectquery/use-transport.js +2 -1
  41. package/dist/esm/lib/render copy.js +2 -1
  42. package/dist/esm/lib/render.js +2 -1
  43. package/dist/esm/store/MtConnectProvider.js +2 -1
  44. package/dist/esm/store/ReactQueryProvider.js +18 -10
  45. package/dist/esm/store/StorybookDecorator.js +5 -4
  46. package/dist/esm/store/appContext.js +28 -18
  47. package/dist/esm/store/hydrateCore.js +6 -5
  48. package/dist/esm/store/logger.context.js +3 -2
  49. package/dist/esm/store/pageMeta.js +5 -1
  50. package/dist/esm/tailwind.d.cts +88 -1
  51. package/dist/esm/ui/accordion.js +19 -11
  52. package/dist/esm/ui/alert copy.js +4 -3
  53. package/dist/esm/ui/alert-dialog.js +21 -17
  54. package/dist/esm/ui/alert.js +4 -3
  55. package/dist/esm/ui/avatar.js +4 -3
  56. package/dist/esm/ui/badge.js +2 -2
  57. package/dist/esm/ui/button.js +2 -1
  58. package/dist/esm/ui/calendar.js +4 -4
  59. package/dist/esm/ui/card.js +7 -6
  60. package/dist/esm/ui/checkbox.js +15 -10
  61. package/dist/esm/ui/command.js +25 -18
  62. package/dist/esm/ui/context-menu.js +35 -22
  63. package/dist/esm/ui/dialog.js +30 -17
  64. package/dist/esm/ui/drawer.js +28 -18
  65. package/dist/esm/ui/dropdown-menu.js +35 -22
  66. package/dist/esm/ui/form copy.js +14 -9
  67. package/dist/esm/ui/form.js +14 -9
  68. package/dist/esm/ui/hover-card.js +2 -1
  69. package/dist/esm/ui/input.js +2 -1
  70. package/dist/esm/ui/label.js +2 -1
  71. package/dist/esm/ui/menubar.js +37 -24
  72. package/dist/esm/ui/navigation-menu.js +36 -25
  73. package/dist/esm/ui/novel/novel/src/components/editor-bubble-item.js +2 -1
  74. package/dist/esm/ui/novel/novel/src/components/editor-bubble.js +5 -1
  75. package/dist/esm/ui/novel/novel/src/components/editor-command-item.js +5 -4
  76. package/dist/esm/ui/novel/novel/src/components/editor-command.js +21 -14
  77. package/dist/esm/ui/novel/novel/src/components/editor.js +7 -6
  78. package/dist/esm/ui/novel/novel/src/extensions/image-resizer.js +2 -1
  79. package/dist/esm/ui/novel/tailwind/advanced-editor.js +58 -35
  80. package/dist/esm/ui/novel/tailwind/generative/ai-completion-command.js +45 -30
  81. package/dist/esm/ui/novel/tailwind/generative/ai-selector-commands.js +37 -28
  82. package/dist/esm/ui/novel/tailwind/generative/ai-selector.js +58 -43
  83. package/dist/esm/ui/novel/tailwind/generative/generative-menu-switch.js +23 -15
  84. package/dist/esm/ui/novel/tailwind/selectors/color-selector.js +78 -55
  85. package/dist/esm/ui/novel/tailwind/selectors/link-selector.js +58 -50
  86. package/dist/esm/ui/novel/tailwind/selectors/node-selector.js +31 -19
  87. package/dist/esm/ui/novel/tailwind/selectors/text-buttons.js +13 -12
  88. package/dist/esm/ui/novel/tailwind/slash-command.js +12 -11
  89. package/dist/esm/ui/novel/tailwind/ui/button.js +2 -1
  90. package/dist/esm/ui/novel/tailwind/ui/command.js +25 -18
  91. package/dist/esm/ui/novel/tailwind/ui/dialog.js +30 -17
  92. package/dist/esm/ui/novel/tailwind/ui/icons/crazy-spinner.js +6 -1
  93. package/dist/esm/ui/novel/tailwind/ui/icons/font-default.js +20 -17
  94. package/dist/esm/ui/novel/tailwind/ui/icons/font-mono.js +20 -17
  95. package/dist/esm/ui/novel/tailwind/ui/icons/font-serif.js +20 -17
  96. package/dist/esm/ui/novel/tailwind/ui/icons/github.js +5 -4
  97. package/dist/esm/ui/novel/tailwind/ui/icons/loading-circle.js +20 -17
  98. package/dist/esm/ui/novel/tailwind/ui/icons/magic.js +27 -24
  99. package/dist/esm/ui/novel/tailwind/ui/menu.js +28 -16
  100. package/dist/esm/ui/novel/tailwind/ui/popover.js +3 -2
  101. package/dist/esm/ui/novel/tailwind/ui/scroll-area.js +18 -10
  102. package/dist/esm/ui/novel/tailwind/ui/separator.js +2 -1
  103. package/dist/esm/ui/pagination.js +32 -19
  104. package/dist/esm/ui/popover.js +3 -2
  105. package/dist/esm/ui/progress.js +15 -10
  106. package/dist/esm/ui/radio-group.js +7 -5
  107. package/dist/esm/ui/resizable.js +10 -5
  108. package/dist/esm/ui/scroll-area.js +26 -18
  109. package/dist/esm/ui/select.js +37 -26
  110. package/dist/esm/ui/separator.js +2 -1
  111. package/dist/esm/ui/sheet.js +24 -14
  112. package/dist/esm/ui/skeleton.js +2 -1
  113. package/dist/esm/ui/slider.js +12 -5
  114. package/dist/esm/ui/sonner.js +2 -1
  115. package/dist/esm/ui/switch.js +12 -11
  116. package/dist/esm/ui/table.js +10 -9
  117. package/dist/esm/ui/tabs.js +4 -3
  118. package/dist/esm/ui/textarea.js +2 -1
  119. package/dist/esm/ui/toast.js +14 -9
  120. package/dist/esm/ui/toaster.js +18 -4
  121. package/dist/esm/ui/toggle.js +2 -1
  122. package/dist/esm/ui/tooltip.js +2 -1
  123. package/dist/esm/ui/ui-mt/NavTag.js +5 -4
  124. package/dist/esm/ui/ui-mt/SimpleModel.js +12 -11
  125. package/dist/esm/ui/ui-mt/inputField/InputField.js +27 -20
  126. package/dist/esm/ui/ui-mt/inputField/SingleUploadForm.js +67 -56
  127. package/dist/esm/ui/ui-mt/inputField/TextArea.js +20 -16
  128. package/dist/esm/ui/ui-mt/inputField/TextFileInput.js +18 -15
  129. package/dist/esm/ui/ui-mt/inputField/select/InputSelect.js +35 -27
  130. package/dist/esm/ui/ui-mt/inputs/SearchInput.js +2 -1
  131. package/dist/esm/ui/ui-mt/inputs/searchBar.js +12 -8
  132. package/dist/esm/ui/ui-mt/skeleton/skeleton-card.js +9 -4
  133. package/dist/esm/ui/ui-mt/skeleton/skeleton2.js +5 -1
  134. package/dist/esm/ui/ui-mt/skeleton/skeletons.js +9 -1
  135. package/dist/esm/ui/ui-vamp/alert.js +30 -24
  136. package/dist/esm/ui/ui-vamp/avatar.js +12 -7
  137. package/dist/esm/ui/ui-vamp/button.js +2 -1
  138. package/dist/esm/ui/ui-vamp/card.js +15 -8
  139. package/dist/esm/ui/ui-vamp/checkbox.js +15 -8
  140. package/dist/esm/ui/ui-vamp/chip.js +2 -1
  141. package/dist/esm/ui/ui-vamp/dropdown.js +7 -6
  142. package/dist/esm/ui/ui-vamp/external-link.js +9 -4
  143. package/dist/esm/ui/ui-vamp/headline.js +5 -1
  144. package/dist/esm/ui/ui-vamp/input.js +3 -2
  145. package/dist/esm/ui/ui-vamp/keyvalue.js +5 -1
  146. package/dist/esm/ui/ui-vamp/label.js +2 -1
  147. package/dist/esm/ui/ui-vamp/mobile-nav-button.js +6 -5
  148. package/dist/esm/ui/ui-vamp/modal.js +17 -13
  149. package/dist/esm/ui/ui-vamp/pagination.js +57 -35
  150. package/dist/esm/ui/ui-vamp/scroll-area.js +5 -4
  151. package/dist/esm/ui/ui-vamp/skeleton.js +2 -2
  152. package/dist/esm/ui/ui-vamp/stripe-not-connected-modal.js +13 -2
  153. package/dist/esm/ui/ui-vamp/textarea.js +12 -8
  154. package/dist/esm/ui/ui-vamp/toggle-group.js +3 -2
  155. package/dist/icons/icons.cjs +41 -31
  156. package/dist/index.cjs +2 -1
  157. package/dist/lib/connectquery/use-transport.cjs +2 -1
  158. package/dist/lib/render copy.cjs +2 -1
  159. package/dist/lib/render.cjs +2 -1
  160. package/dist/store/MtConnectProvider.cjs +2 -1
  161. package/dist/store/ReactQueryProvider.cjs +18 -10
  162. package/dist/store/StorybookDecorator.cjs +5 -4
  163. package/dist/store/appContext.cjs +28 -28
  164. package/dist/store/hydrateCore.cjs +6 -5
  165. package/dist/store/logger.context.cjs +3 -2
  166. package/dist/store/pageMeta.cjs +5 -1
  167. package/dist/tailwind.cjs +72 -2
  168. package/dist/tsconfig.type.tsbuildinfo +1 -1
  169. package/dist/ui/accordion.cjs +19 -11
  170. package/dist/ui/alert copy.cjs +4 -3
  171. package/dist/ui/alert-dialog.cjs +21 -17
  172. package/dist/ui/alert.cjs +4 -3
  173. package/dist/ui/avatar.cjs +4 -3
  174. package/dist/ui/badge.cjs +2 -12
  175. package/dist/ui/button.cjs +2 -1
  176. package/dist/ui/calendar.cjs +4 -14
  177. package/dist/ui/card.cjs +7 -6
  178. package/dist/ui/checkbox.cjs +15 -10
  179. package/dist/ui/command.cjs +25 -18
  180. package/dist/ui/context-menu.cjs +35 -22
  181. package/dist/ui/dialog.cjs +30 -17
  182. package/dist/ui/drawer.cjs +28 -18
  183. package/dist/ui/dropdown-menu.cjs +35 -22
  184. package/dist/ui/form copy.cjs +14 -9
  185. package/dist/ui/form.cjs +14 -9
  186. package/dist/ui/hover-card.cjs +2 -1
  187. package/dist/ui/input.cjs +2 -1
  188. package/dist/ui/label.cjs +2 -1
  189. package/dist/ui/menubar.cjs +37 -24
  190. package/dist/ui/navigation-menu.cjs +36 -25
  191. package/dist/ui/novel/novel/src/components/editor-bubble-item.cjs +2 -1
  192. package/dist/ui/novel/novel/src/components/editor-bubble.cjs +5 -1
  193. package/dist/ui/novel/novel/src/components/editor-command-item.cjs +5 -4
  194. package/dist/ui/novel/novel/src/components/editor-command.cjs +21 -14
  195. package/dist/ui/novel/novel/src/components/editor.cjs +7 -6
  196. package/dist/ui/novel/novel/src/extensions/image-resizer.cjs +2 -1
  197. package/dist/ui/novel/tailwind/advanced-editor.cjs +58 -35
  198. package/dist/ui/novel/tailwind/generative/ai-completion-command.cjs +45 -30
  199. package/dist/ui/novel/tailwind/generative/ai-selector-commands.cjs +37 -28
  200. package/dist/ui/novel/tailwind/generative/ai-selector.cjs +58 -43
  201. package/dist/ui/novel/tailwind/generative/generative-menu-switch.cjs +23 -15
  202. package/dist/ui/novel/tailwind/selectors/color-selector.cjs +78 -55
  203. package/dist/ui/novel/tailwind/selectors/link-selector.cjs +58 -50
  204. package/dist/ui/novel/tailwind/selectors/node-selector.cjs +31 -19
  205. package/dist/ui/novel/tailwind/selectors/text-buttons.cjs +13 -12
  206. package/dist/ui/novel/tailwind/slash-command.cjs +12 -11
  207. package/dist/ui/novel/tailwind/ui/button.cjs +2 -1
  208. package/dist/ui/novel/tailwind/ui/command.cjs +25 -18
  209. package/dist/ui/novel/tailwind/ui/dialog.cjs +30 -17
  210. package/dist/ui/novel/tailwind/ui/icons/crazy-spinner.cjs +6 -1
  211. package/dist/ui/novel/tailwind/ui/icons/font-default.cjs +20 -17
  212. package/dist/ui/novel/tailwind/ui/icons/font-mono.cjs +20 -17
  213. package/dist/ui/novel/tailwind/ui/icons/font-serif.cjs +20 -17
  214. package/dist/ui/novel/tailwind/ui/icons/github.cjs +5 -4
  215. package/dist/ui/novel/tailwind/ui/icons/loading-circle.cjs +20 -17
  216. package/dist/ui/novel/tailwind/ui/icons/magic.cjs +27 -24
  217. package/dist/ui/novel/tailwind/ui/menu.cjs +28 -16
  218. package/dist/ui/novel/tailwind/ui/popover.cjs +3 -2
  219. package/dist/ui/novel/tailwind/ui/scroll-area.cjs +18 -10
  220. package/dist/ui/novel/tailwind/ui/separator.cjs +2 -1
  221. package/dist/ui/pagination.cjs +32 -19
  222. package/dist/ui/popover.cjs +3 -2
  223. package/dist/ui/progress.cjs +15 -10
  224. package/dist/ui/radio-group.cjs +7 -5
  225. package/dist/ui/resizable.cjs +10 -5
  226. package/dist/ui/scroll-area.cjs +26 -18
  227. package/dist/ui/select.cjs +37 -26
  228. package/dist/ui/separator.cjs +2 -1
  229. package/dist/ui/sheet.cjs +24 -14
  230. package/dist/ui/skeleton.cjs +2 -1
  231. package/dist/ui/slider.cjs +12 -5
  232. package/dist/ui/sonner.cjs +2 -1
  233. package/dist/ui/switch.cjs +12 -11
  234. package/dist/ui/table.cjs +10 -9
  235. package/dist/ui/tabs.cjs +4 -3
  236. package/dist/ui/textarea.cjs +2 -1
  237. package/dist/ui/toast.cjs +14 -9
  238. package/dist/ui/toaster.cjs +18 -4
  239. package/dist/ui/toggle.cjs +2 -1
  240. package/dist/ui/tooltip.cjs +2 -1
  241. package/dist/ui/ui-mt/NavTag.cjs +5 -4
  242. package/dist/ui/ui-mt/SimpleModel.cjs +12 -11
  243. package/dist/ui/ui-mt/inputField/InputField.cjs +27 -20
  244. package/dist/ui/ui-mt/inputField/SingleUploadForm.cjs +67 -56
  245. package/dist/ui/ui-mt/inputField/TextArea.cjs +20 -16
  246. package/dist/ui/ui-mt/inputField/TextFileInput.cjs +18 -25
  247. package/dist/ui/ui-mt/inputField/select/InputSelect.cjs +35 -27
  248. package/dist/ui/ui-mt/inputs/SearchInput.cjs +2 -1
  249. package/dist/ui/ui-mt/inputs/searchBar.cjs +12 -8
  250. package/dist/ui/ui-mt/skeleton/skeleton-card.cjs +9 -4
  251. package/dist/ui/ui-mt/skeleton/skeleton2.cjs +5 -1
  252. package/dist/ui/ui-mt/skeleton/skeletons.cjs +9 -1
  253. package/dist/ui/ui-vamp/alert.cjs +30 -24
  254. package/dist/ui/ui-vamp/avatar.cjs +12 -7
  255. package/dist/ui/ui-vamp/button.cjs +2 -1
  256. package/dist/ui/ui-vamp/card.cjs +15 -18
  257. package/dist/ui/ui-vamp/checkbox.cjs +15 -8
  258. package/dist/ui/ui-vamp/chip.cjs +2 -1
  259. package/dist/ui/ui-vamp/dropdown.cjs +7 -6
  260. package/dist/ui/ui-vamp/external-link.cjs +9 -4
  261. package/dist/ui/ui-vamp/headline.cjs +5 -1
  262. package/dist/ui/ui-vamp/input.cjs +3 -2
  263. package/dist/ui/ui-vamp/keyvalue.cjs +5 -1
  264. package/dist/ui/ui-vamp/label.cjs +2 -1
  265. package/dist/ui/ui-vamp/mobile-nav-button.cjs +6 -5
  266. package/dist/ui/ui-vamp/modal.cjs +17 -13
  267. package/dist/ui/ui-vamp/pagination.cjs +57 -35
  268. package/dist/ui/ui-vamp/scroll-area.cjs +5 -4
  269. package/dist/ui/ui-vamp/skeleton.cjs +2 -12
  270. package/dist/ui/ui-vamp/stripe-not-connected-modal.cjs +13 -2
  271. package/dist/ui/ui-vamp/textarea.cjs +12 -8
  272. package/dist/ui/ui-vamp/toggle-group.cjs +3 -2
  273. package/package.json +5 -4
@@ -1,5 +1,7 @@
1
1
  "use client";
2
2
  var __defProp = Object.defineProperty;
3
+ var __defProps = Object.defineProperties;
4
+ var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
3
5
  var __getOwnPropSymbols = Object.getOwnPropertySymbols;
4
6
  var __hasOwnProp = Object.prototype.hasOwnProperty;
5
7
  var __propIsEnum = Object.prototype.propertyIsEnumerable;
@@ -15,6 +17,7 @@ var __spreadValues = (a, b) => {
15
17
  }
16
18
  return a;
17
19
  };
20
+ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
18
21
  var __objRest = (source, exclude) => {
19
22
  var target = {};
20
23
  for (var prop in source)
@@ -27,6 +30,7 @@ var __objRest = (source, exclude) => {
27
30
  }
28
31
  return target;
29
32
  };
33
+ import { jsx, jsxs } from "react/jsx-runtime";
30
34
  import * as DialogPrimitive from "@radix-ui/react-dialog";
31
35
  import { Cross2Icon } from "@radix-ui/react-icons";
32
36
  import * as React from "react";
@@ -37,7 +41,7 @@ const DialogPortal = DialogPrimitive.Portal;
37
41
  const DialogClose = DialogPrimitive.Close;
38
42
  const DialogOverlay = React.forwardRef((_a, ref) => {
39
43
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
40
- return /* @__PURE__ */ React.createElement(
44
+ return /* @__PURE__ */ jsx(
41
45
  DialogPrimitive.Overlay,
42
46
  __spreadValues({
43
47
  ref,
@@ -51,18 +55,27 @@ const DialogOverlay = React.forwardRef((_a, ref) => {
51
55
  DialogOverlay.displayName = DialogPrimitive.Overlay.displayName;
52
56
  const DialogContent = React.forwardRef((_c, ref) => {
53
57
  var _d = _c, { className, children } = _d, props = __objRest(_d, ["className", "children"]);
54
- return /* @__PURE__ */ React.createElement(DialogPortal, null, /* @__PURE__ */ React.createElement(DialogOverlay, null), /* @__PURE__ */ React.createElement(
55
- DialogPrimitive.Content,
56
- __spreadValues({
57
- ref,
58
- className: cn(
59
- "bg-background 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-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] fixed left-1/2 top-1/2 z-50 grid w-full max-w-lg -translate-x-1/2 -translate-y-1/2 gap-4 border p-6 shadow-lg duration-200 sm:rounded-lg md:w-full",
60
- className
61
- )
62
- }, props),
63
- children,
64
- /* @__PURE__ */ React.createElement(DialogPrimitive.Close, { className: "ring-offset-background focus:ring-ring data-[state=open]:bg-accent data-[state=open]:text-muted-foreground absolute right-4 top-4 rounded-sm opacity-70 transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-offset-2 disabled:pointer-events-none" }, /* @__PURE__ */ React.createElement(Cross2Icon, { className: "size-4" }), /* @__PURE__ */ React.createElement("span", { className: "sr-only" }, "Close"))
65
- ));
58
+ return /* @__PURE__ */ jsxs(DialogPortal, { children: [
59
+ /* @__PURE__ */ jsx(DialogOverlay, {}),
60
+ /* @__PURE__ */ jsxs(
61
+ DialogPrimitive.Content,
62
+ __spreadProps(__spreadValues({
63
+ ref,
64
+ className: cn(
65
+ "bg-background 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-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] fixed left-1/2 top-1/2 z-50 grid w-full max-w-lg -translate-x-1/2 -translate-y-1/2 gap-4 border p-6 shadow-lg duration-200 sm:rounded-lg md:w-full",
66
+ className
67
+ )
68
+ }, props), {
69
+ children: [
70
+ children,
71
+ /* @__PURE__ */ jsxs(DialogPrimitive.Close, { className: "ring-offset-background focus:ring-ring data-[state=open]:bg-accent data-[state=open]:text-muted-foreground absolute right-4 top-4 rounded-sm opacity-70 transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-offset-2 disabled:pointer-events-none", children: [
72
+ /* @__PURE__ */ jsx(Cross2Icon, { className: "size-4" }),
73
+ /* @__PURE__ */ jsx("span", { className: "sr-only", children: "Close" })
74
+ ] })
75
+ ]
76
+ })
77
+ )
78
+ ] });
66
79
  });
67
80
  DialogContent.displayName = DialogPrimitive.Content.displayName;
68
81
  const DialogHeader = (_e) => {
@@ -71,7 +84,7 @@ const DialogHeader = (_e) => {
71
84
  } = _f, props = __objRest(_f, [
72
85
  "className"
73
86
  ]);
74
- return /* @__PURE__ */ React.createElement(
87
+ return /* @__PURE__ */ jsx(
75
88
  "div",
76
89
  __spreadValues({
77
90
  className: cn(
@@ -88,7 +101,7 @@ const DialogFooter = (_g) => {
88
101
  } = _h, props = __objRest(_h, [
89
102
  "className"
90
103
  ]);
91
- return /* @__PURE__ */ React.createElement(
104
+ return /* @__PURE__ */ jsx(
92
105
  "div",
93
106
  __spreadValues({
94
107
  className: cn(
@@ -101,7 +114,7 @@ const DialogFooter = (_g) => {
101
114
  DialogFooter.displayName = "DialogFooter";
102
115
  const DialogTitle = React.forwardRef((_i, ref) => {
103
116
  var _j = _i, { className } = _j, props = __objRest(_j, ["className"]);
104
- return /* @__PURE__ */ React.createElement(
117
+ return /* @__PURE__ */ jsx(
105
118
  DialogPrimitive.Title,
106
119
  __spreadValues({
107
120
  ref,
@@ -115,7 +128,7 @@ const DialogTitle = React.forwardRef((_i, ref) => {
115
128
  DialogTitle.displayName = DialogPrimitive.Title.displayName;
116
129
  const DialogDescription = React.forwardRef((_k, ref) => {
117
130
  var _l = _k, { className } = _l, props = __objRest(_l, ["className"]);
118
- return /* @__PURE__ */ React.createElement(
131
+ return /* @__PURE__ */ jsx(
119
132
  DialogPrimitive.Description,
120
133
  __spreadValues({
121
134
  ref,
@@ -1,5 +1,7 @@
1
1
  "use client";
2
2
  var __defProp = Object.defineProperty;
3
+ var __defProps = Object.defineProperties;
4
+ var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
3
5
  var __getOwnPropSymbols = Object.getOwnPropertySymbols;
4
6
  var __hasOwnProp = Object.prototype.hasOwnProperty;
5
7
  var __propIsEnum = Object.prototype.propertyIsEnumerable;
@@ -15,6 +17,7 @@ var __spreadValues = (a, b) => {
15
17
  }
16
18
  return a;
17
19
  };
20
+ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
18
21
  var __objRest = (source, exclude) => {
19
22
  var target = {};
20
23
  for (var prop in source)
@@ -27,6 +30,7 @@ var __objRest = (source, exclude) => {
27
30
  }
28
31
  return target;
29
32
  };
33
+ import { jsx, jsxs } from "react/jsx-runtime";
30
34
  import * as React from "react";
31
35
  import { Drawer as DrawerPrimitive } from "vaul";
32
36
  import { cn } from "../lib/utils";
@@ -36,7 +40,7 @@ const Drawer = (_a) => {
36
40
  } = _b, props = __objRest(_b, [
37
41
  "shouldScaleBackground"
38
42
  ]);
39
- return /* @__PURE__ */ React.createElement(
43
+ return /* @__PURE__ */ jsx(
40
44
  DrawerPrimitive.Root,
41
45
  __spreadValues({
42
46
  shouldScaleBackground
@@ -49,7 +53,7 @@ const DrawerPortal = DrawerPrimitive.Portal;
49
53
  const DrawerClose = DrawerPrimitive.Close;
50
54
  const DrawerOverlay = React.forwardRef((_c, ref) => {
51
55
  var _d = _c, { className } = _d, props = __objRest(_d, ["className"]);
52
- return /* @__PURE__ */ React.createElement(
56
+ return /* @__PURE__ */ jsx(
53
57
  DrawerPrimitive.Overlay,
54
58
  __spreadValues({
55
59
  ref,
@@ -60,18 +64,24 @@ const DrawerOverlay = React.forwardRef((_c, ref) => {
60
64
  DrawerOverlay.displayName = DrawerPrimitive.Overlay.displayName;
61
65
  const DrawerContent = React.forwardRef((_e, ref) => {
62
66
  var _f = _e, { className, children } = _f, props = __objRest(_f, ["className", "children"]);
63
- return /* @__PURE__ */ React.createElement(DrawerPortal, null, /* @__PURE__ */ React.createElement(DrawerOverlay, null), /* @__PURE__ */ React.createElement(
64
- DrawerPrimitive.Content,
65
- __spreadValues({
66
- ref,
67
- className: cn(
68
- "bg-background fixed inset-x-0 bottom-0 z-50 mt-24 flex h-auto flex-col rounded-t-[10px] border",
69
- className
70
- )
71
- }, props),
72
- /* @__PURE__ */ React.createElement("div", { className: "bg-muted mx-auto mt-4 h-2 w-[100px] rounded-full" }),
73
- children
74
- ));
67
+ return /* @__PURE__ */ jsxs(DrawerPortal, { children: [
68
+ /* @__PURE__ */ jsx(DrawerOverlay, {}),
69
+ /* @__PURE__ */ jsxs(
70
+ DrawerPrimitive.Content,
71
+ __spreadProps(__spreadValues({
72
+ ref,
73
+ className: cn(
74
+ "bg-background fixed inset-x-0 bottom-0 z-50 mt-24 flex h-auto flex-col rounded-t-[10px] border",
75
+ className
76
+ )
77
+ }, props), {
78
+ children: [
79
+ /* @__PURE__ */ jsx("div", { className: "bg-muted mx-auto mt-4 h-2 w-[100px] rounded-full" }),
80
+ children
81
+ ]
82
+ })
83
+ )
84
+ ] });
75
85
  });
76
86
  DrawerContent.displayName = "DrawerContent";
77
87
  const DrawerHeader = (_g) => {
@@ -80,7 +90,7 @@ const DrawerHeader = (_g) => {
80
90
  } = _h, props = __objRest(_h, [
81
91
  "className"
82
92
  ]);
83
- return /* @__PURE__ */ React.createElement(
93
+ return /* @__PURE__ */ jsx(
84
94
  "div",
85
95
  __spreadValues({
86
96
  className: cn("grid gap-1.5 p-4 text-center sm:text-left", className)
@@ -94,7 +104,7 @@ const DrawerFooter = (_i) => {
94
104
  } = _j, props = __objRest(_j, [
95
105
  "className"
96
106
  ]);
97
- return /* @__PURE__ */ React.createElement(
107
+ return /* @__PURE__ */ jsx(
98
108
  "div",
99
109
  __spreadValues({
100
110
  className: cn("mt-auto flex flex-col gap-2 p-4", className)
@@ -104,7 +114,7 @@ const DrawerFooter = (_i) => {
104
114
  DrawerFooter.displayName = "DrawerFooter";
105
115
  const DrawerTitle = React.forwardRef((_k, ref) => {
106
116
  var _l = _k, { className } = _l, props = __objRest(_l, ["className"]);
107
- return /* @__PURE__ */ React.createElement(
117
+ return /* @__PURE__ */ jsx(
108
118
  DrawerPrimitive.Title,
109
119
  __spreadValues({
110
120
  ref,
@@ -118,7 +128,7 @@ const DrawerTitle = React.forwardRef((_k, ref) => {
118
128
  DrawerTitle.displayName = DrawerPrimitive.Title.displayName;
119
129
  const DrawerDescription = React.forwardRef((_m, ref) => {
120
130
  var _n = _m, { className } = _n, props = __objRest(_n, ["className"]);
121
- return /* @__PURE__ */ React.createElement(
131
+ return /* @__PURE__ */ jsx(
122
132
  DrawerPrimitive.Description,
123
133
  __spreadValues({
124
134
  ref,
@@ -1,5 +1,7 @@
1
1
  "use client";
2
2
  var __defProp = Object.defineProperty;
3
+ var __defProps = Object.defineProperties;
4
+ var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
3
5
  var __getOwnPropSymbols = Object.getOwnPropertySymbols;
4
6
  var __hasOwnProp = Object.prototype.hasOwnProperty;
5
7
  var __propIsEnum = Object.prototype.propertyIsEnumerable;
@@ -15,6 +17,7 @@ var __spreadValues = (a, b) => {
15
17
  }
16
18
  return a;
17
19
  };
20
+ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
18
21
  var __objRest = (source, exclude) => {
19
22
  var target = {};
20
23
  for (var prop in source)
@@ -27,6 +30,7 @@ var __objRest = (source, exclude) => {
27
30
  }
28
31
  return target;
29
32
  };
33
+ import { jsx, jsxs } from "react/jsx-runtime";
30
34
  import * as DropdownMenuPrimitive from "@radix-ui/react-dropdown-menu";
31
35
  import {
32
36
  CheckIcon,
@@ -43,24 +47,27 @@ const DropdownMenuSub = DropdownMenuPrimitive.Sub;
43
47
  const DropdownMenuRadioGroup = DropdownMenuPrimitive.RadioGroup;
44
48
  const DropdownMenuSubTrigger = React.forwardRef((_a, ref) => {
45
49
  var _b = _a, { className, inset, children } = _b, props = __objRest(_b, ["className", "inset", "children"]);
46
- return /* @__PURE__ */ React.createElement(
50
+ return /* @__PURE__ */ jsxs(
47
51
  DropdownMenuPrimitive.SubTrigger,
48
- __spreadValues({
52
+ __spreadProps(__spreadValues({
49
53
  ref,
50
54
  className: cn(
51
55
  "focus:bg-accent data-[state=open]:bg-accent flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none",
52
56
  inset && "pl-8",
53
57
  className
54
58
  )
55
- }, props),
56
- children,
57
- /* @__PURE__ */ React.createElement(ChevronRightIcon, { className: "ml-auto h-4 w-4" })
59
+ }, props), {
60
+ children: [
61
+ children,
62
+ /* @__PURE__ */ jsx(ChevronRightIcon, { className: "ml-auto h-4 w-4" })
63
+ ]
64
+ })
58
65
  );
59
66
  });
60
67
  DropdownMenuSubTrigger.displayName = DropdownMenuPrimitive.SubTrigger.displayName;
61
68
  const DropdownMenuSubContent = React.forwardRef((_c, ref) => {
62
69
  var _d = _c, { className } = _d, props = __objRest(_d, ["className"]);
63
- return /* @__PURE__ */ React.createElement(
70
+ return /* @__PURE__ */ jsx(
64
71
  DropdownMenuPrimitive.SubContent,
65
72
  __spreadValues({
66
73
  ref,
@@ -74,7 +81,7 @@ const DropdownMenuSubContent = React.forwardRef((_c, ref) => {
74
81
  DropdownMenuSubContent.displayName = DropdownMenuPrimitive.SubContent.displayName;
75
82
  const DropdownMenuContent = React.forwardRef((_e, ref) => {
76
83
  var _f = _e, { className, sideOffset = 4 } = _f, props = __objRest(_f, ["className", "sideOffset"]);
77
- return /* @__PURE__ */ React.createElement(DropdownMenuPrimitive.Portal, null, /* @__PURE__ */ React.createElement(
84
+ return /* @__PURE__ */ jsx(DropdownMenuPrimitive.Portal, { children: /* @__PURE__ */ jsx(
78
85
  DropdownMenuPrimitive.Content,
79
86
  __spreadValues({
80
87
  ref,
@@ -85,12 +92,12 @@ const DropdownMenuContent = React.forwardRef((_e, ref) => {
85
92
  className
86
93
  )
87
94
  }, props)
88
- ));
95
+ ) });
89
96
  });
90
97
  DropdownMenuContent.displayName = DropdownMenuPrimitive.Content.displayName;
91
98
  const DropdownMenuItem = React.forwardRef((_g, ref) => {
92
99
  var _h = _g, { className, inset } = _h, props = __objRest(_h, ["className", "inset"]);
93
- return /* @__PURE__ */ React.createElement(
100
+ return /* @__PURE__ */ jsx(
94
101
  DropdownMenuPrimitive.Item,
95
102
  __spreadValues({
96
103
  ref,
@@ -105,40 +112,46 @@ const DropdownMenuItem = React.forwardRef((_g, ref) => {
105
112
  DropdownMenuItem.displayName = DropdownMenuPrimitive.Item.displayName;
106
113
  const DropdownMenuCheckboxItem = React.forwardRef((_i, ref) => {
107
114
  var _j = _i, { className, children, checked } = _j, props = __objRest(_j, ["className", "children", "checked"]);
108
- return /* @__PURE__ */ React.createElement(
115
+ return /* @__PURE__ */ jsxs(
109
116
  DropdownMenuPrimitive.CheckboxItem,
110
- __spreadValues({
117
+ __spreadProps(__spreadValues({
111
118
  ref,
112
119
  className: cn(
113
120
  "focus:bg-accent focus:text-accent-foreground relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
114
121
  className
115
122
  ),
116
123
  checked
117
- }, props),
118
- /* @__PURE__ */ React.createElement("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center" }, /* @__PURE__ */ React.createElement(DropdownMenuPrimitive.ItemIndicator, null, /* @__PURE__ */ React.createElement(CheckIcon, { className: "h-4 w-4" }))),
119
- children
124
+ }, props), {
125
+ children: [
126
+ /* @__PURE__ */ jsx("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ jsx(DropdownMenuPrimitive.ItemIndicator, { children: /* @__PURE__ */ jsx(CheckIcon, { className: "h-4 w-4" }) }) }),
127
+ children
128
+ ]
129
+ })
120
130
  );
121
131
  });
122
132
  DropdownMenuCheckboxItem.displayName = DropdownMenuPrimitive.CheckboxItem.displayName;
123
133
  const DropdownMenuRadioItem = React.forwardRef((_k, ref) => {
124
134
  var _l = _k, { className, children } = _l, props = __objRest(_l, ["className", "children"]);
125
- return /* @__PURE__ */ React.createElement(
135
+ return /* @__PURE__ */ jsxs(
126
136
  DropdownMenuPrimitive.RadioItem,
127
- __spreadValues({
137
+ __spreadProps(__spreadValues({
128
138
  ref,
129
139
  className: cn(
130
140
  "focus:bg-accent focus:text-accent-foreground relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
131
141
  className
132
142
  )
133
- }, props),
134
- /* @__PURE__ */ React.createElement("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center" }, /* @__PURE__ */ React.createElement(DropdownMenuPrimitive.ItemIndicator, null, /* @__PURE__ */ React.createElement(DotFilledIcon, { className: "h-4 w-4 fill-current" }))),
135
- children
143
+ }, props), {
144
+ children: [
145
+ /* @__PURE__ */ jsx("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ jsx(DropdownMenuPrimitive.ItemIndicator, { children: /* @__PURE__ */ jsx(DotFilledIcon, { className: "h-4 w-4 fill-current" }) }) }),
146
+ children
147
+ ]
148
+ })
136
149
  );
137
150
  });
138
151
  DropdownMenuRadioItem.displayName = DropdownMenuPrimitive.RadioItem.displayName;
139
152
  const DropdownMenuLabel = React.forwardRef((_m, ref) => {
140
153
  var _n = _m, { className, inset } = _n, props = __objRest(_n, ["className", "inset"]);
141
- return /* @__PURE__ */ React.createElement(
154
+ return /* @__PURE__ */ jsx(
142
155
  DropdownMenuPrimitive.Label,
143
156
  __spreadValues({
144
157
  ref,
@@ -153,7 +166,7 @@ const DropdownMenuLabel = React.forwardRef((_m, ref) => {
153
166
  DropdownMenuLabel.displayName = DropdownMenuPrimitive.Label.displayName;
154
167
  const DropdownMenuSeparator = React.forwardRef((_o, ref) => {
155
168
  var _p = _o, { className } = _p, props = __objRest(_p, ["className"]);
156
- return /* @__PURE__ */ React.createElement(
169
+ return /* @__PURE__ */ jsx(
157
170
  DropdownMenuPrimitive.Separator,
158
171
  __spreadValues({
159
172
  ref,
@@ -168,7 +181,7 @@ const DropdownMenuShortcut = (_q) => {
168
181
  } = _r, props = __objRest(_r, [
169
182
  "className"
170
183
  ]);
171
- return /* @__PURE__ */ React.createElement(
184
+ return /* @__PURE__ */ jsx(
172
185
  "span",
173
186
  __spreadValues({
174
187
  className: cn("ml-auto text-xs tracking-widest opacity-60", className)
@@ -1,4 +1,6 @@
1
1
  var __defProp = Object.defineProperty;
2
+ var __defProps = Object.defineProperties;
3
+ var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
2
4
  var __getOwnPropSymbols = Object.getOwnPropertySymbols;
3
5
  var __hasOwnProp = Object.prototype.hasOwnProperty;
4
6
  var __propIsEnum = Object.prototype.propertyIsEnumerable;
@@ -14,6 +16,7 @@ var __spreadValues = (a, b) => {
14
16
  }
15
17
  return a;
16
18
  };
19
+ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
17
20
  var __objRest = (source, exclude) => {
18
21
  var target = {};
19
22
  for (var prop in source)
@@ -26,6 +29,7 @@ var __objRest = (source, exclude) => {
26
29
  }
27
30
  return target;
28
31
  };
32
+ import { jsx } from "react/jsx-runtime";
29
33
  import { Slot } from "@radix-ui/react-slot";
30
34
  import * as React from "react";
31
35
  import {
@@ -41,7 +45,7 @@ const FormFieldContext = React.createContext(
41
45
  );
42
46
  const FormField = (_a) => {
43
47
  var props = __objRest(_a, []);
44
- return /* @__PURE__ */ React.createElement(FormFieldContext.Provider, { value: { name: props.name } }, /* @__PURE__ */ React.createElement(Controller, __spreadValues({}, props)));
48
+ return /* @__PURE__ */ jsx(FormFieldContext.Provider, { value: { name: props.name }, children: /* @__PURE__ */ jsx(Controller, __spreadValues({}, props)) });
45
49
  };
46
50
  const useFormField = () => {
47
51
  const fieldContext = React.useContext(FormFieldContext);
@@ -66,13 +70,13 @@ const FormItemContext = React.createContext(
66
70
  const FormItem = React.forwardRef((_b, ref) => {
67
71
  var _c = _b, { className } = _c, props = __objRest(_c, ["className"]);
68
72
  const id = React.useId();
69
- return /* @__PURE__ */ React.createElement(FormItemContext.Provider, { value: { id } }, /* @__PURE__ */ React.createElement("div", __spreadValues({ ref, className: cn("space-y-2", className) }, props)));
73
+ return /* @__PURE__ */ jsx(FormItemContext.Provider, { value: { id }, children: /* @__PURE__ */ jsx("div", __spreadValues({ ref, className: cn("space-y-2", className) }, props)) });
70
74
  });
71
75
  FormItem.displayName = "FormItem";
72
76
  const FormLabel = React.forwardRef((_d, ref) => {
73
77
  var _e = _d, { className } = _e, props = __objRest(_e, ["className"]);
74
78
  const { error, formItemId } = useFormField();
75
- return /* @__PURE__ */ React.createElement(
79
+ return /* @__PURE__ */ jsx(
76
80
  Label,
77
81
  __spreadValues({
78
82
  ref,
@@ -85,7 +89,7 @@ FormLabel.displayName = "FormLabel";
85
89
  const FormControl = React.forwardRef((_f, ref) => {
86
90
  var props = __objRest(_f, []);
87
91
  const { error, formItemId, formDescriptionId, formMessageId } = useFormField();
88
- return /* @__PURE__ */ React.createElement(
92
+ return /* @__PURE__ */ jsx(
89
93
  Slot,
90
94
  __spreadValues({
91
95
  ref,
@@ -99,7 +103,7 @@ FormControl.displayName = "FormControl";
99
103
  const FormDescription = React.forwardRef((_g, ref) => {
100
104
  var _h = _g, { className } = _h, props = __objRest(_h, ["className"]);
101
105
  const { formDescriptionId } = useFormField();
102
- return /* @__PURE__ */ React.createElement(
106
+ return /* @__PURE__ */ jsx(
103
107
  "p",
104
108
  __spreadValues({
105
109
  ref,
@@ -116,14 +120,15 @@ const FormMessage = React.forwardRef((_i, ref) => {
116
120
  if (!body) {
117
121
  return null;
118
122
  }
119
- return /* @__PURE__ */ React.createElement(
123
+ return /* @__PURE__ */ jsx(
120
124
  "p",
121
- __spreadValues({
125
+ __spreadProps(__spreadValues({
122
126
  ref,
123
127
  id: formMessageId,
124
128
  className: cn("text-destructive text-[0.8rem] font-medium", className)
125
- }, props),
126
- body
129
+ }, props), {
130
+ children: body
131
+ })
127
132
  );
128
133
  });
129
134
  FormMessage.displayName = "FormMessage";
@@ -1,4 +1,6 @@
1
1
  var __defProp = Object.defineProperty;
2
+ var __defProps = Object.defineProperties;
3
+ var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
2
4
  var __getOwnPropSymbols = Object.getOwnPropertySymbols;
3
5
  var __hasOwnProp = Object.prototype.hasOwnProperty;
4
6
  var __propIsEnum = Object.prototype.propertyIsEnumerable;
@@ -14,6 +16,7 @@ var __spreadValues = (a, b) => {
14
16
  }
15
17
  return a;
16
18
  };
19
+ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
17
20
  var __objRest = (source, exclude) => {
18
21
  var target = {};
19
22
  for (var prop in source)
@@ -26,6 +29,7 @@ var __objRest = (source, exclude) => {
26
29
  }
27
30
  return target;
28
31
  };
32
+ import { jsx } from "react/jsx-runtime";
29
33
  import { Slot } from "@radix-ui/react-slot";
30
34
  import * as React from "react";
31
35
  import {
@@ -41,7 +45,7 @@ const FormFieldContext = React.createContext(
41
45
  );
42
46
  const FormField = (_a) => {
43
47
  var props = __objRest(_a, []);
44
- return /* @__PURE__ */ React.createElement(FormFieldContext.Provider, { value: { name: props.name } }, /* @__PURE__ */ React.createElement(Controller, __spreadValues({}, props)));
48
+ return /* @__PURE__ */ jsx(FormFieldContext.Provider, { value: { name: props.name }, children: /* @__PURE__ */ jsx(Controller, __spreadValues({}, props)) });
45
49
  };
46
50
  const useFormField = () => {
47
51
  const fieldContext = React.useContext(FormFieldContext);
@@ -66,13 +70,13 @@ const FormItemContext = React.createContext(
66
70
  const FormItem = React.forwardRef((_b, ref) => {
67
71
  var _c = _b, { className } = _c, props = __objRest(_c, ["className"]);
68
72
  const id = React.useId();
69
- return /* @__PURE__ */ React.createElement(FormItemContext.Provider, { value: { id } }, /* @__PURE__ */ React.createElement("div", __spreadValues({ ref, className: cn("space-y-2", className) }, props)));
73
+ return /* @__PURE__ */ jsx(FormItemContext.Provider, { value: { id }, children: /* @__PURE__ */ jsx("div", __spreadValues({ ref, className: cn("space-y-2", className) }, props)) });
70
74
  });
71
75
  FormItem.displayName = "FormItem";
72
76
  const FormLabel = React.forwardRef((_d, ref) => {
73
77
  var _e = _d, { className } = _e, props = __objRest(_e, ["className"]);
74
78
  const { error, formItemId } = useFormField();
75
- return /* @__PURE__ */ React.createElement(
79
+ return /* @__PURE__ */ jsx(
76
80
  Label,
77
81
  __spreadValues({
78
82
  ref,
@@ -85,7 +89,7 @@ FormLabel.displayName = "FormLabel";
85
89
  const FormControl = React.forwardRef((_f, ref) => {
86
90
  var props = __objRest(_f, []);
87
91
  const { error, formItemId, formDescriptionId, formMessageId } = useFormField();
88
- return /* @__PURE__ */ React.createElement(
92
+ return /* @__PURE__ */ jsx(
89
93
  Slot,
90
94
  __spreadValues({
91
95
  ref,
@@ -99,7 +103,7 @@ FormControl.displayName = "FormControl";
99
103
  const FormDescription = React.forwardRef((_g, ref) => {
100
104
  var _h = _g, { className } = _h, props = __objRest(_h, ["className"]);
101
105
  const { formDescriptionId } = useFormField();
102
- return /* @__PURE__ */ React.createElement(
106
+ return /* @__PURE__ */ jsx(
103
107
  "p",
104
108
  __spreadValues({
105
109
  ref,
@@ -116,14 +120,15 @@ const FormMessage = React.forwardRef((_i, ref) => {
116
120
  if (!body) {
117
121
  return null;
118
122
  }
119
- return /* @__PURE__ */ React.createElement(
123
+ return /* @__PURE__ */ jsx(
120
124
  "p",
121
- __spreadValues({
125
+ __spreadProps(__spreadValues({
122
126
  ref,
123
127
  id: formMessageId,
124
128
  className: cn("text-destructive text-[0.8rem] font-medium", className)
125
- }, props),
126
- body
129
+ }, props), {
130
+ children: body
131
+ })
127
132
  );
128
133
  });
129
134
  FormMessage.displayName = "FormMessage";
@@ -27,6 +27,7 @@ var __objRest = (source, exclude) => {
27
27
  }
28
28
  return target;
29
29
  };
30
+ import { jsx } from "react/jsx-runtime";
30
31
  import * as HoverCardPrimitive from "@radix-ui/react-hover-card";
31
32
  import * as React from "react";
32
33
  import { cn } from "../lib/utils";
@@ -34,7 +35,7 @@ const HoverCard = HoverCardPrimitive.Root;
34
35
  const HoverCardTrigger = HoverCardPrimitive.Trigger;
35
36
  const HoverCardContent = React.forwardRef((_a, ref) => {
36
37
  var _b = _a, { className, align = "center", sideOffset = 4 } = _b, props = __objRest(_b, ["className", "align", "sideOffset"]);
37
- return /* @__PURE__ */ React.createElement(
38
+ return /* @__PURE__ */ jsx(
38
39
  HoverCardPrimitive.Content,
39
40
  __spreadValues({
40
41
  ref,
@@ -26,12 +26,13 @@ var __objRest = (source, exclude) => {
26
26
  }
27
27
  return target;
28
28
  };
29
+ import { jsx } from "react/jsx-runtime";
29
30
  import * as React from "react";
30
31
  import { cn } from "../lib/utils";
31
32
  const Input = React.forwardRef(
32
33
  (_a, ref) => {
33
34
  var _b = _a, { className, type } = _b, props = __objRest(_b, ["className", "type"]);
34
- return /* @__PURE__ */ React.createElement(
35
+ return /* @__PURE__ */ jsx(
35
36
  "input",
36
37
  __spreadValues({
37
38
  type,
@@ -27,6 +27,7 @@ var __objRest = (source, exclude) => {
27
27
  }
28
28
  return target;
29
29
  };
30
+ import { jsx } from "react/jsx-runtime";
30
31
  import * as LabelPrimitive from "@radix-ui/react-label";
31
32
  import { cva } from "class-variance-authority";
32
33
  import * as React from "react";
@@ -36,7 +37,7 @@ const labelVariants = cva(
36
37
  );
37
38
  const Label = React.forwardRef((_a, ref) => {
38
39
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
39
- return /* @__PURE__ */ React.createElement(
40
+ return /* @__PURE__ */ jsx(
40
41
  LabelPrimitive.Root,
41
42
  __spreadValues({
42
43
  ref,