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
@@ -52,6 +52,7 @@ __export(SingleUploadForm_exports, {
52
52
  default: () => SingleUploadForm_default
53
53
  });
54
54
  module.exports = __toCommonJS(SingleUploadForm_exports);
55
+ var import_jsx_runtime = require("react/jsx-runtime");
55
56
  var import_image = __toESM(require("next/image"), 1);
56
57
  var import_react = require("react");
57
58
  const SingleFileUploadForm = () => {
@@ -111,65 +112,75 @@ const SingleFileUploadForm = () => {
111
112
  alert("Sorry! something went wrong.");
112
113
  }
113
114
  });
114
- return /* @__PURE__ */ React.createElement(
115
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
115
116
  "form",
116
117
  {
117
118
  className: "w-full border border-dashed border-gray-500 p-3",
118
- onSubmit: (e) => e.preventDefault()
119
- },
120
- /* @__PURE__ */ React.createElement("div", { className: "flex flex-col gap-1.5 md:flex-row md:py-4" }, /* @__PURE__ */ React.createElement("div", { className: "grow" }, previewUrl ? /* @__PURE__ */ React.createElement("div", { className: "mx-auto w-80" }, /* @__PURE__ */ React.createElement(
121
- import_image.default,
122
- {
123
- alt: "file uploader preview",
124
- objectFit: "cover",
125
- src: previewUrl,
126
- width: 320,
127
- height: 218,
128
- layout: "fixed"
129
- }
130
- )) : /* @__PURE__ */ React.createElement("label", { className: "flex h-full cursor-pointer flex-col items-center justify-center py-3 transition-colors duration-150 hover:text-gray-600" }, /* @__PURE__ */ React.createElement(
131
- "svg",
132
- {
133
- xmlns: "http://www.w3.org/2000/svg",
134
- className: "h-14 w-14",
135
- fill: "none",
136
- viewBox: "0 0 24 24",
137
- stroke: "currentColor",
138
- strokeWidth: 2
139
- },
140
- /* @__PURE__ */ React.createElement(
141
- "path",
142
- {
143
- strokeLinecap: "round",
144
- strokeLinejoin: "round",
145
- d: "M3 15a4 4 0 004 4h9a5 5 0 10-.1-9.999 5.002 5.002 0 10-9.78 2.096A4.001 4.001 0 003 15z"
146
- }
147
- )
148
- ), /* @__PURE__ */ React.createElement("strong", { className: "text-sm font-medium" }, "Select an image"), /* @__PURE__ */ React.createElement(
149
- "input",
150
- {
151
- className: "block h-0 w-0",
152
- name: "file",
153
- type: "file",
154
- onChange: onFileUploadChange
155
- }
156
- ))), /* @__PURE__ */ React.createElement("div", { className: "mt-4 flex justify-center gap-1.5 md:mt-0 md:flex-col" }, /* @__PURE__ */ React.createElement(
157
- "button",
158
- {
159
- disabled: !previewUrl,
160
- onClick: onCancelFile,
161
- className: "w-1/2 rounded-sm bg-gray-700 px-4 py-3 text-sm font-medium text-white transition-colors duration-300 hover:bg-gray-600 disabled:bg-gray-400 md:w-auto md:text-base"
162
- },
163
- "Cancel file"
164
- ), /* @__PURE__ */ React.createElement(
165
- "button",
166
- {
167
- disabled: !previewUrl,
168
- onClick: onUploadFile,
169
- className: "w-1/2 rounded-sm bg-gray-700 px-4 py-3 text-sm font-medium text-white transition-colors duration-300 hover:bg-gray-600 disabled:bg-gray-400 md:w-auto md:text-base"
170
- },
171
- "Upload file"
172
- )))
119
+ onSubmit: (e) => e.preventDefault(),
120
+ children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "flex flex-col gap-1.5 md:flex-row md:py-4", children: [
121
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: "grow", children: previewUrl ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: "mx-auto w-80", children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
122
+ import_image.default,
123
+ {
124
+ alt: "file uploader preview",
125
+ objectFit: "cover",
126
+ src: previewUrl,
127
+ width: 320,
128
+ height: 218,
129
+ layout: "fixed"
130
+ }
131
+ ) }) : /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("label", { className: "flex h-full cursor-pointer flex-col items-center justify-center py-3 transition-colors duration-150 hover:text-gray-600", children: [
132
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
133
+ "svg",
134
+ {
135
+ xmlns: "http://www.w3.org/2000/svg",
136
+ className: "h-14 w-14",
137
+ fill: "none",
138
+ viewBox: "0 0 24 24",
139
+ stroke: "currentColor",
140
+ strokeWidth: 2,
141
+ children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
142
+ "path",
143
+ {
144
+ strokeLinecap: "round",
145
+ strokeLinejoin: "round",
146
+ d: "M3 15a4 4 0 004 4h9a5 5 0 10-.1-9.999 5.002 5.002 0 10-9.78 2.096A4.001 4.001 0 003 15z"
147
+ }
148
+ )
149
+ }
150
+ ),
151
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("strong", { className: "text-sm font-medium", children: "Select an image" }),
152
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
153
+ "input",
154
+ {
155
+ className: "block h-0 w-0",
156
+ name: "file",
157
+ type: "file",
158
+ onChange: onFileUploadChange
159
+ }
160
+ )
161
+ ] }) }),
162
+ /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "mt-4 flex justify-center gap-1.5 md:mt-0 md:flex-col", children: [
163
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
164
+ "button",
165
+ {
166
+ disabled: !previewUrl,
167
+ onClick: onCancelFile,
168
+ className: "w-1/2 rounded-sm bg-gray-700 px-4 py-3 text-sm font-medium text-white transition-colors duration-300 hover:bg-gray-600 disabled:bg-gray-400 md:w-auto md:text-base",
169
+ children: "Cancel file"
170
+ }
171
+ ),
172
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
173
+ "button",
174
+ {
175
+ disabled: !previewUrl,
176
+ onClick: onUploadFile,
177
+ className: "w-1/2 rounded-sm bg-gray-700 px-4 py-3 text-sm font-medium text-white transition-colors duration-300 hover:bg-gray-600 disabled:bg-gray-400 md:w-auto md:text-base",
178
+ children: "Upload file"
179
+ }
180
+ )
181
+ ] })
182
+ ] })
183
+ }
173
184
  );
174
185
  };
175
186
  var SingleUploadForm_default = SingleFileUploadForm;
@@ -57,6 +57,7 @@ __export(TextArea_exports, {
57
57
  TextAreaField: () => TextAreaField
58
58
  });
59
59
  module.exports = __toCommonJS(TextArea_exports);
60
+ var import_jsx_runtime = require("react/jsx-runtime");
60
61
  var import_react_context_menu = require("@radix-ui/react-context-menu");
61
62
  var import_react = __toESM(require("react"), 1);
62
63
  var import_react_hook_form = require("react-hook-form");
@@ -66,22 +67,25 @@ const TextAreaField = import_react.default.forwardRef(
66
67
  (_a) => {
67
68
  var _b = _a, { name, label, className, type, placeholder } = _b, rest = __objRest(_b, ["name", "label", "className", "type", "placeholder"]);
68
69
  const methods = (0, import_react_hook_form.useFormContext)();
69
- return /* @__PURE__ */ import_react.default.createElement("div", { className: "group relative" }, /* @__PURE__ */ import_react.default.createElement(
70
- import_textarea.Textarea,
71
- __spreadValues({
72
- className: (0, import_utils.cn)(
73
- "mt-2",
74
- "peer p-4 outline-none"
75
- // "focus-visible:ring-0",
76
- // "focus-visible:border-none",
77
- // "border-none ring-0"
78
- ),
79
- placeholder: " "
80
- }, methods.register(name))
81
- ), /* @__PURE__ */ import_react.default.createElement(import_react_context_menu.Label, { className: (0, import_utils.cn)(
82
- "pointer-events-none absolute left-[9px] top-px -translate-y-1/2 px-1 text-sm text-gray-500 transition-all duration-300",
83
- "group-focus-within:!top-2 group-focus-within:!text-sm group-focus-within:!text-blue-500 peer-placeholder-shown:top-1/2 peer-placeholder-shown:text-xl"
84
- ) }, label));
70
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "group relative", children: [
71
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
72
+ import_textarea.Textarea,
73
+ __spreadValues({
74
+ className: (0, import_utils.cn)(
75
+ "mt-2",
76
+ "peer p-4 outline-none"
77
+ // "focus-visible:ring-0",
78
+ // "focus-visible:border-none",
79
+ // "border-none ring-0"
80
+ ),
81
+ placeholder: " "
82
+ }, methods.register(name))
83
+ ),
84
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_react_context_menu.Label, { className: (0, import_utils.cn)(
85
+ "pointer-events-none absolute left-[9px] top-px -translate-y-1/2 px-1 text-sm text-gray-500 transition-all duration-300",
86
+ "group-focus-within:!top-2 group-focus-within:!text-sm group-focus-within:!text-blue-500 peer-placeholder-shown:top-1/2 peer-placeholder-shown:text-xl"
87
+ ), children: label })
88
+ ] });
85
89
  }
86
90
  );
87
91
  TextAreaField.displayName = "TextAreaField";
@@ -1,13 +1,11 @@
1
1
  "use strict";
2
2
  "use client";
3
- var __create = Object.create;
4
3
  var __defProp = Object.defineProperty;
5
4
  var __defProps = Object.defineProperties;
6
5
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
7
6
  var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
8
7
  var __getOwnPropNames = Object.getOwnPropertyNames;
9
8
  var __getOwnPropSymbols = Object.getOwnPropertySymbols;
10
- var __getProtoOf = Object.getPrototypeOf;
11
9
  var __hasOwnProp = Object.prototype.hasOwnProperty;
12
10
  var __propIsEnum = Object.prototype.propertyIsEnumerable;
13
11
  var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
@@ -47,14 +45,6 @@ var __copyProps = (to, from, except, desc) => {
47
45
  }
48
46
  return to;
49
47
  };
50
- var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
51
- // If the importer is in node compatibility mode or this is not an ESM
52
- // file that has been converted to a CommonJS file using a Babel-
53
- // compatible transform (i.e. "__esModule" has not been set), then set
54
- // "default" to the CommonJS "module.exports" for node compatibility.
55
- isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
56
- mod
57
- ));
58
48
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
59
49
  var __async = (__this, __arguments, generator) => {
60
50
  return new Promise((resolve, reject) => {
@@ -81,10 +71,10 @@ __export(TextFileInput_exports, {
81
71
  TextFileInput: () => TextFileInput
82
72
  });
83
73
  module.exports = __toCommonJS(TextFileInput_exports);
74
+ var import_jsx_runtime = require("react/jsx-runtime");
84
75
  var import_react = require("react");
85
76
  var import_react_hook_form = require("react-hook-form");
86
77
  var import_react_slot = require("@radix-ui/react-slot");
87
- var import_react2 = __toESM(require("react"), 1);
88
78
  const TextFileInput = (_a) => {
89
79
  var _b = _a, { onOpenFile, name, asChild } = _b, props = __objRest(_b, ["onOpenFile", "name", "asChild"]);
90
80
  const formMethods = (0, import_react_hook_form.useFormContext)();
@@ -112,20 +102,23 @@ const TextFileInput = (_a) => {
112
102
  fileReader.readAsText(uploadedFile);
113
103
  };
114
104
  const Comp = asChild ? import_react_slot.Slot : "input";
115
- return /* @__PURE__ */ import_react2.default.createElement(import_react2.default.Fragment, null, /* @__PURE__ */ import_react2.default.createElement(Comp, __spreadProps(__spreadValues({}, props), { onClick: (e) => {
116
- var _a2;
117
- (_a2 = fileRef.current) == null ? void 0 : _a2.click();
118
- e.preventDefault();
119
- } })), /* @__PURE__ */ import_react2.default.createElement(
120
- "input",
121
- {
122
- style: { display: "none" },
123
- ref: fileRef,
124
- accept: "json/*",
125
- type: "file",
126
- onChange: handleFileChange
127
- }
128
- ));
105
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, { children: [
106
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Comp, __spreadProps(__spreadValues({}, props), { onClick: (e) => {
107
+ var _a2;
108
+ (_a2 = fileRef.current) == null ? void 0 : _a2.click();
109
+ e.preventDefault();
110
+ } })),
111
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
112
+ "input",
113
+ {
114
+ style: { display: "none" },
115
+ ref: fileRef,
116
+ accept: "json/*",
117
+ type: "file",
118
+ onChange: handleFileChange
119
+ }
120
+ )
121
+ ] });
129
122
  };
130
123
  // Annotate the CommonJS export names for ESM import in node:
131
124
  0 && (module.exports = {
@@ -45,6 +45,7 @@ __export(InputSelect_exports, {
45
45
  InputSelectField: () => InputSelectField
46
46
  });
47
47
  module.exports = __toCommonJS(InputSelect_exports);
48
+ var import_jsx_runtime = require("react/jsx-runtime");
48
49
  var import_react_context_menu = require("@radix-ui/react-context-menu");
49
50
  var import_react_select = require("@radix-ui/react-select");
50
51
  var import_react = __toESM(require("react"), 1);
@@ -58,36 +59,43 @@ const InputSelectField = import_react.default.forwardRef(
58
59
  const handleValueChange = (value2) => {
59
60
  methods.setValue(name, value2);
60
61
  };
61
- return /* @__PURE__ */ import_react.default.createElement(import_react.default.Fragment, null, /* @__PURE__ */ import_react.default.createElement("div", { className: (0, import_utils.cn)(
62
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_jsx_runtime.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: (0, import_utils.cn)(
62
63
  "group relative my-2",
63
64
  "flex flex-1 items-center justify-center"
64
65
  // "max-w-[fit-content]",
65
- ) }, /* @__PURE__ */ import_react.default.createElement(
66
- import_react_select.Select,
67
- {
68
- name,
69
- onValueChange: handleValueChange,
70
- defaultValue: methods.getValues(name)
71
- },
72
- /* @__PURE__ */ import_react.default.createElement(import_form.FormControl, { className: (0, import_utils.cn)(
73
- " border-input-none peer px-4 outline-none focus-visible:ring-0",
74
- "focus-visible:border-none",
75
- "focus:ring-none border-none ring-0"
76
- ) }, /* @__PURE__ */ import_react.default.createElement(import_react_select.SelectTrigger, { className: (0, import_utils.cn)(
77
- " border-input-none peer px-4 outline-none focus-visible:ring-0",
78
- "focus:ring-0 focus-visible:border-none",
79
- "focus:ring-none border-none ring-0"
80
- ) }, /* @__PURE__ */ import_react.default.createElement(import_react_select.SelectValue, { placeholder: " " }))),
81
- /* @__PURE__ */ import_react.default.createElement(import_react_select.SelectContent, null)
82
- ), /* @__PURE__ */ import_react.default.createElement(import_react_context_menu.Label, { className: (0, import_utils.cn)(
83
- "absolute left-[9px] top-px px-1 text-sm text-gray-500 transition-all duration-300 ",
84
- "pointer-events-none -translate-y-1/2 group-focus-within:!top-px group-focus-within:!text-sm group-focus-within:!text-blue-500 peer-placeholder-shown:top-1/2 peer-placeholder-shown:text-xl"
85
- ) }, label), /* @__PURE__ */ import_react.default.createElement("fieldset", { className: (0, import_utils.cn)(
86
- "pointer-events-none invisible absolute inset-0 mt-[-9px] rounded border border-gray-400 group-focus-within:border-2 group-focus-within:!border-blue-500 group-hover:border-gray-700 peer-placeholder-shown:visible"
87
- ) }, /* @__PURE__ */ import_react.default.createElement("legend", { className: "invisible ml-2 max-w-[0.01px] whitespace-nowrap px-0 text-sm transition-all duration-300 group-focus-within:max-w-full group-focus-within:px-1" }, label)), /* @__PURE__ */ import_react.default.createElement("fieldset", { className: (0, import_utils.cn)(
88
- "pointer-events-none absolute inset-0 rounded border border-gray-400 ",
89
- "visible mt-[-10px] group-focus-within:border-2 group-focus-within:!border-blue-500 group-hover:border-gray-700 peer-placeholder-shown:invisible"
90
- ) }, /* @__PURE__ */ import_react.default.createElement("legend", { className: "invisible ml-2 max-w-full whitespace-nowrap px-1 text-sm" }, label))));
66
+ ), children: [
67
+ /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
68
+ import_react_select.Select,
69
+ {
70
+ name,
71
+ onValueChange: handleValueChange,
72
+ defaultValue: methods.getValues(name),
73
+ children: [
74
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_form.FormControl, { className: (0, import_utils.cn)(
75
+ " border-input-none peer px-4 outline-none focus-visible:ring-0",
76
+ "focus-visible:border-none",
77
+ "focus:ring-none border-none ring-0"
78
+ ), children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_react_select.SelectTrigger, { className: (0, import_utils.cn)(
79
+ " border-input-none peer px-4 outline-none focus-visible:ring-0",
80
+ "focus:ring-0 focus-visible:border-none",
81
+ "focus:ring-none border-none ring-0"
82
+ ), children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_react_select.SelectValue, { placeholder: " " }) }) }),
83
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_react_select.SelectContent, {})
84
+ ]
85
+ }
86
+ ),
87
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_react_context_menu.Label, { className: (0, import_utils.cn)(
88
+ "absolute left-[9px] top-px px-1 text-sm text-gray-500 transition-all duration-300 ",
89
+ "pointer-events-none -translate-y-1/2 group-focus-within:!top-px group-focus-within:!text-sm group-focus-within:!text-blue-500 peer-placeholder-shown:top-1/2 peer-placeholder-shown:text-xl"
90
+ ), children: label }),
91
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("fieldset", { className: (0, import_utils.cn)(
92
+ "pointer-events-none invisible absolute inset-0 mt-[-9px] rounded border border-gray-400 group-focus-within:border-2 group-focus-within:!border-blue-500 group-hover:border-gray-700 peer-placeholder-shown:visible"
93
+ ), children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("legend", { className: "invisible ml-2 max-w-[0.01px] whitespace-nowrap px-0 text-sm transition-all duration-300 group-focus-within:max-w-full group-focus-within:px-1", children: label }) }),
94
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("fieldset", { className: (0, import_utils.cn)(
95
+ "pointer-events-none absolute inset-0 rounded border border-gray-400 ",
96
+ "visible mt-[-10px] group-focus-within:border-2 group-focus-within:!border-blue-500 group-hover:border-gray-700 peer-placeholder-shown:invisible"
97
+ ), children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("legend", { className: "invisible ml-2 max-w-full whitespace-nowrap px-1 text-sm", children: label }) })
98
+ ] }) });
91
99
  }
92
100
  );
93
101
  InputSelectField.displayName = "InputSelectField";
@@ -58,12 +58,13 @@ __export(SearchInput_exports, {
58
58
  SearchInput: () => SearchInput
59
59
  });
60
60
  module.exports = __toCommonJS(SearchInput_exports);
61
+ var import_jsx_runtime = require("react/jsx-runtime");
61
62
  var React = __toESM(require("react"), 1);
62
63
  var import_utils = require("../../../lib/utils");
63
64
  const SearchInput = React.forwardRef(
64
65
  (_a, ref) => {
65
66
  var _b = _a, { className, type } = _b, props = __objRest(_b, ["className", "type"]);
66
- return /* @__PURE__ */ React.createElement(
67
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
67
68
  "input",
68
69
  __spreadValues({
69
70
  type,
@@ -22,18 +22,22 @@ __export(searchBar_exports, {
22
22
  SearchBar: () => SearchBar
23
23
  });
24
24
  module.exports = __toCommonJS(searchBar_exports);
25
+ var import_jsx_runtime = require("react/jsx-runtime");
25
26
  var import_lucide_react = require("lucide-react");
26
27
  var import_button = require("../../button");
27
28
  var import_input = require("../../input");
28
29
  const SearchBar = () => {
29
- return /* @__PURE__ */ React.createElement("div", { className: "relative mb-1 flex items-center justify-center rounded-md border bg-slate-50" }, /* @__PURE__ */ React.createElement(
30
- import_input.Input,
31
- {
32
- type: "search",
33
- className: "border-1 w-full rounded",
34
- placeholder: "search"
35
- }
36
- ), /* @__PURE__ */ React.createElement(import_button.Button, { variant: "ghost", className: "" }, /* @__PURE__ */ React.createElement(import_lucide_react.SearchIcon, { className: "h-4 w-4 " })));
30
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "relative mb-1 flex items-center justify-center rounded-md border bg-slate-50", children: [
31
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
32
+ import_input.Input,
33
+ {
34
+ type: "search",
35
+ className: "border-1 w-full rounded",
36
+ placeholder: "search"
37
+ }
38
+ ),
39
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_button.Button, { variant: "ghost", className: "", children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_lucide_react.SearchIcon, { className: "h-4 w-4 " }) })
40
+ ] });
37
41
  };
38
42
  // Annotate the CommonJS export names for ESM import in node:
39
43
  0 && (module.exports = {
@@ -31,15 +31,20 @@ __export(skeleton_card_exports, {
31
31
  SkeletonCard: () => SkeletonCard
32
32
  });
33
33
  module.exports = __toCommonJS(skeleton_card_exports);
34
+ var import_jsx_runtime = require("react/jsx-runtime");
34
35
  var import_clsx = __toESM(require("clsx"), 1);
35
- const SkeletonCard = ({ isLoading }) => /* @__PURE__ */ React.createElement(
36
+ const SkeletonCard = ({ isLoading }) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
36
37
  "div",
37
38
  {
38
39
  className: (0, import_clsx.default)("rounded-2xl bg-gray-900/80 p-4", {
39
40
  "relative overflow-hidden before:absolute before:inset-0 before:-translate-x-full before:animate-[shimmer_1.5s_infinite] before:bg-gradient-to-r before:from-transparent before:via-white/10 before:to-transparent": isLoading
40
- })
41
- },
42
- /* @__PURE__ */ React.createElement("div", { className: "space-y-3" }, /* @__PURE__ */ React.createElement("div", { className: "h-14 rounded-lg bg-gray-700" }), /* @__PURE__ */ React.createElement("div", { className: "h-3 w-11/12 rounded-lg bg-gray-700" }), /* @__PURE__ */ React.createElement("div", { className: "h-3 w-8/12 rounded-lg bg-gray-700" }))
41
+ }),
42
+ children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "space-y-3", children: [
43
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: "h-14 rounded-lg bg-gray-700" }),
44
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: "h-3 w-11/12 rounded-lg bg-gray-700" }),
45
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: "h-3 w-8/12 rounded-lg bg-gray-700" })
46
+ ] })
47
+ }
43
48
  );
44
49
  // Annotate the CommonJS export names for ESM import in node:
45
50
  0 && (module.exports = {
@@ -21,8 +21,12 @@ __export(skeleton2_exports, {
21
21
  ItemSkeleton: () => ItemSkeleton
22
22
  });
23
23
  module.exports = __toCommonJS(skeleton2_exports);
24
+ var import_jsx_runtime = require("react/jsx-runtime");
24
25
  function ItemSkeleton() {
25
- return /* @__PURE__ */ React.createElement("div", { className: 'sm:px-6" block p-4 hover:bg-gray-50' }, /* @__PURE__ */ React.createElement("div", { className: "h-4 w-1/2 animate-pulse rounded bg-gray-300" }), /* @__PURE__ */ React.createElement("div", { className: "mt-2" }, /* @__PURE__ */ React.createElement("div", { className: "h-2 w-1/2 animate-pulse rounded bg-gray-300" })));
26
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: 'sm:px-6" block p-4 hover:bg-gray-50', children: [
27
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: "h-4 w-1/2 animate-pulse rounded bg-gray-300" }),
28
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: "mt-2", children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: "h-2 w-1/2 animate-pulse rounded bg-gray-300" }) })
29
+ ] });
26
30
  }
27
31
  // Annotate the CommonJS export names for ESM import in node:
28
32
  0 && (module.exports = {
@@ -22,9 +22,17 @@ __export(skeletons_exports, {
22
22
  SkeletonDemo: () => SkeletonDemo
23
23
  });
24
24
  module.exports = __toCommonJS(skeletons_exports);
25
+ var import_jsx_runtime = require("react/jsx-runtime");
25
26
  var import_skeleton = require("../../skeleton");
26
27
  const SkeletonDemo = ({ children }) => {
27
- return /* @__PURE__ */ React.createElement("div", { className: "flex items-center space-x-4" }, /* @__PURE__ */ React.createElement(import_skeleton.Skeleton, { className: "h-12 w-12 rounded-full" }), /* @__PURE__ */ React.createElement("div", { className: "space-y-2" }, /* @__PURE__ */ React.createElement(import_skeleton.Skeleton, { className: "h-4 w-[250px]" }), /* @__PURE__ */ React.createElement(import_skeleton.Skeleton, { className: "h-4 w-[200px]" })), children);
28
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "flex items-center space-x-4", children: [
29
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_skeleton.Skeleton, { className: "h-12 w-12 rounded-full" }),
30
+ /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "space-y-2", children: [
31
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_skeleton.Skeleton, { className: "h-4 w-[250px]" }),
32
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_skeleton.Skeleton, { className: "h-4 w-[200px]" })
33
+ ] }),
34
+ children
35
+ ] });
28
36
  };
29
37
  // Annotate the CommonJS export names for ESM import in node:
30
38
  0 && (module.exports = {
@@ -61,39 +61,43 @@ __export(alert_exports, {
61
61
  Alert: () => Alert
62
62
  });
63
63
  module.exports = __toCommonJS(alert_exports);
64
+ var import_jsx_runtime = require("react/jsx-runtime");
64
65
  var AlertDialogPrimitives = __toESM(require("@radix-ui/react-alert-dialog"), 1);
65
66
  var React = __toESM(require("react"), 1);
66
67
  var import_utils = require("../../lib/utils");
67
68
  var import_button = require("./button");
68
69
  function Alert(_a) {
69
70
  var props = __objRest(_a, []);
70
- return /* @__PURE__ */ React.createElement(AlertDialogPrimitives.Root, __spreadValues({}, props));
71
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(AlertDialogPrimitives.Root, __spreadValues({}, props));
71
72
  }
72
73
  Alert.Trigger = React.forwardRef(function AlertTrigger(_b, ref) {
73
74
  var props = __objRest(_b, []);
74
- return /* @__PURE__ */ React.createElement(AlertDialogPrimitives.Trigger, __spreadProps(__spreadValues({}, props), { ref }));
75
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(AlertDialogPrimitives.Trigger, __spreadProps(__spreadValues({}, props), { ref }));
75
76
  });
76
77
  Alert.Portal = AlertDialogPrimitives.Portal;
77
78
  Alert.Content = React.forwardRef(function AlertContent(_c, ref) {
78
79
  var _d = _c, { className } = _d, props = __objRest(_d, ["className"]);
79
- return /* @__PURE__ */ React.createElement(Alert.Portal, null, /* @__PURE__ */ React.createElement(AlertDialogPrimitives.Overlay, { className: "animate-in fade-in fixed inset-0 z-40 opacity-100 backdrop-blur-sm transition-opacity " }), /* @__PURE__ */ React.createElement("div", { className: "fixed inset-0 z-40 flex items-center justify-center" }, /* @__PURE__ */ React.createElement(
80
- AlertDialogPrimitives.Content,
81
- __spreadValues({
82
- ref,
83
- className: (0, import_utils.cn)(
84
- "dropdown animate-in fade-in-90 zoom-in-90 focus-visible:ring-opacity-/75 fixed z-50 grid w-[95vw] max-w-md scale-100 gap-4 rounded-lg p-6 opacity-100 focus:outline-none focus-visible:ring focus-visible:ring-purple-500 md:w-full",
85
- className
86
- )
87
- }, props)
88
- )));
80
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(Alert.Portal, { children: [
81
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(AlertDialogPrimitives.Overlay, { className: "animate-in fade-in fixed inset-0 z-40 opacity-100 backdrop-blur-sm transition-opacity " }),
82
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: "fixed inset-0 z-40 flex items-center justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
83
+ AlertDialogPrimitives.Content,
84
+ __spreadValues({
85
+ ref,
86
+ className: (0, import_utils.cn)(
87
+ "dropdown animate-in fade-in-90 zoom-in-90 focus-visible:ring-opacity-/75 fixed z-50 grid w-[95vw] max-w-md scale-100 gap-4 rounded-lg p-6 opacity-100 focus:outline-none focus-visible:ring focus-visible:ring-purple-500 md:w-full",
88
+ className
89
+ )
90
+ }, props)
91
+ ) })
92
+ ] });
89
93
  });
90
94
  Alert.Header = function AlertHeader(_e) {
91
95
  var _f = _e, { className } = _f, props = __objRest(_f, ["className"]);
92
- return /* @__PURE__ */ React.createElement("div", __spreadValues({ className: (0, import_utils.cn)("grid gap-1", className) }, props));
96
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", __spreadValues({ className: (0, import_utils.cn)("grid gap-1", className) }, props));
93
97
  };
94
98
  Alert.Title = React.forwardRef(function AlertTitle(_g, ref) {
95
99
  var _h = _g, { className } = _h, props = __objRest(_h, ["className"]);
96
- return /* @__PURE__ */ React.createElement(
100
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
97
101
  AlertDialogPrimitives.Title,
98
102
  __spreadValues({
99
103
  ref,
@@ -106,7 +110,7 @@ Alert.Title = React.forwardRef(function AlertTitle(_g, ref) {
106
110
  });
107
111
  Alert.Description = React.forwardRef(function AlertDescription(_i, ref) {
108
112
  var _j = _i, { className } = _j, props = __objRest(_j, ["className"]);
109
- return /* @__PURE__ */ React.createElement(
113
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
110
114
  AlertDialogPrimitives.Description,
111
115
  __spreadValues({
112
116
  ref,
@@ -116,7 +120,7 @@ Alert.Description = React.forwardRef(function AlertDescription(_i, ref) {
116
120
  });
117
121
  Alert.Footer = function AlertFooter(_k) {
118
122
  var _l = _k, { className } = _l, props = __objRest(_l, ["className"]);
119
- return /* @__PURE__ */ React.createElement(
123
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
120
124
  "div",
121
125
  __spreadValues({
122
126
  className: (0, import_utils.cn)("flex justify-end space-x-2", className)
@@ -125,28 +129,30 @@ Alert.Footer = function AlertFooter(_k) {
125
129
  };
126
130
  Alert.Cancel = React.forwardRef(function AlertCancel(_m, ref) {
127
131
  var _n = _m, { className, children } = _n, props = __objRest(_n, ["className", "children"]);
128
- return /* @__PURE__ */ React.createElement(
132
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
129
133
  AlertDialogPrimitives.Cancel,
130
- __spreadValues({
134
+ __spreadProps(__spreadValues({
131
135
  onClick: (e) => {
132
136
  e.stopPropagation();
133
137
  e.nativeEvent.stopImmediatePropagation();
134
138
  },
135
139
  className,
136
140
  ref
137
- }, props),
138
- /* @__PURE__ */ React.createElement(import_button.Button, { intent: "secondary" }, children)
141
+ }, props), {
142
+ children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_button.Button, { intent: "secondary", children })
143
+ })
139
144
  );
140
145
  });
141
146
  Alert.Action = React.forwardRef(function AlertAction(_o, ref) {
142
147
  var _p = _o, { className, children } = _p, props = __objRest(_p, ["className", "children"]);
143
- return /* @__PURE__ */ React.createElement(
148
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
144
149
  AlertDialogPrimitives.Action,
145
- __spreadValues({
150
+ __spreadProps(__spreadValues({
146
151
  ref,
147
152
  className: (0, import_utils.cn)(className)
148
- }, props),
149
- /* @__PURE__ */ React.createElement(import_button.Button, { intent: "danger" }, children)
153
+ }, props), {
154
+ children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_button.Button, { intent: "danger", children })
155
+ })
150
156
  );
151
157
  });
152
158
  // Annotate the CommonJS export names for ESM import in node: