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,8 @@ var __spreadValues = (a, b) => {
15
17
  }
16
18
  return a;
17
19
  };
20
+ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
21
+ import { jsx } from "react/jsx-runtime";
18
22
  import { cva } from "class-variance-authority";
19
23
  import {
20
24
  AlertTriangle,
@@ -119,9 +123,9 @@ const iconVariants = cva("", {
119
123
  },
120
124
  defaultVariants: {}
121
125
  });
122
- const borderAll = (props) => /* @__PURE__ */ React.createElement(
126
+ const borderAll = (props) => /* @__PURE__ */ jsx(
123
127
  "svg",
124
- __spreadValues({
128
+ __spreadProps(__spreadValues({
125
129
  viewBox: "0 0 24 24",
126
130
  height: "48",
127
131
  width: "48",
@@ -129,12 +133,13 @@ const borderAll = (props) => /* @__PURE__ */ React.createElement(
129
133
  role: "img",
130
134
  fill: "currentColor",
131
135
  xmlns: "http://www.w3.org/2000/svg"
132
- }, props),
133
- /* @__PURE__ */ React.createElement("path", { d: "M3 6a3 3 0 0 1 3-3h12a3 3 0 0 1 3 3v12a3 3 0 0 1-3 3H6a3 3 0 0 1-3-3V6zm10 13h5a1 1 0 0 0 1-1v-5h-6v6zm-2-6H5v5a1 1 0 0 0 1 1h5v-6zm2-2h6V6a1 1 0 0 0-1-1h-5v6zm-2-6H6a1 1 0 0 0-1 1v5h6V5z" })
136
+ }, props), {
137
+ children: /* @__PURE__ */ jsx("path", { d: "M3 6a3 3 0 0 1 3-3h12a3 3 0 0 1 3 3v12a3 3 0 0 1-3 3H6a3 3 0 0 1-3-3V6zm10 13h5a1 1 0 0 0 1-1v-5h-6v6zm-2-6H5v5a1 1 0 0 0 1 1h5v-6zm2-2h6V6a1 1 0 0 0-1-1h-5v6zm-2-6H6a1 1 0 0 0-1 1v5h6V5z" })
138
+ })
134
139
  );
135
- const borderBottom = (props) => /* @__PURE__ */ React.createElement(
140
+ const borderBottom = (props) => /* @__PURE__ */ jsx(
136
141
  "svg",
137
- __spreadValues({
142
+ __spreadProps(__spreadValues({
138
143
  viewBox: "0 0 24 24",
139
144
  height: "48",
140
145
  width: "48",
@@ -142,12 +147,13 @@ const borderBottom = (props) => /* @__PURE__ */ React.createElement(
142
147
  role: "img",
143
148
  fill: "currentColor",
144
149
  xmlns: "http://www.w3.org/2000/svg"
145
- }, props),
146
- /* @__PURE__ */ React.createElement("path", { d: "M13 5a1 1 0 1 0 0-2h-2a1 1 0 1 0 0 2h2zm-8 6a1 1 0 1 0-2 0v2a1 1 0 1 0 2 0v-2zm-2 7a1 1 0 1 1 2 0 1 1 0 0 0 1 1h12a1 1 0 0 0 1-1 1 1 0 1 1 2 0 3 3 0 0 1-3 3H6a3 3 0 0 1-3-3zm17-8a1 1 0 0 0-1 1v2a1 1 0 1 0 2 0v-2a1 1 0 0 0-1-1zM7 4a1 1 0 0 0-1-1 3 3 0 0 0-3 3 1 1 0 0 0 2 0 1 1 0 0 1 1-1 1 1 0 0 0 1-1zm11-1a1 1 0 1 0 0 2 1 1 0 0 1 1 1 1 1 0 1 0 2 0 3 3 0 0 0-3-3z" })
150
+ }, props), {
151
+ children: /* @__PURE__ */ jsx("path", { d: "M13 5a1 1 0 1 0 0-2h-2a1 1 0 1 0 0 2h2zm-8 6a1 1 0 1 0-2 0v2a1 1 0 1 0 2 0v-2zm-2 7a1 1 0 1 1 2 0 1 1 0 0 0 1 1h12a1 1 0 0 0 1-1 1 1 0 1 1 2 0 3 3 0 0 1-3 3H6a3 3 0 0 1-3-3zm17-8a1 1 0 0 0-1 1v2a1 1 0 1 0 2 0v-2a1 1 0 0 0-1-1zM7 4a1 1 0 0 0-1-1 3 3 0 0 0-3 3 1 1 0 0 0 2 0 1 1 0 0 1 1-1 1 1 0 0 0 1-1zm11-1a1 1 0 1 0 0 2 1 1 0 0 1 1 1 1 1 0 1 0 2 0 3 3 0 0 0-3-3z" })
152
+ })
147
153
  );
148
- const borderLeft = (props) => /* @__PURE__ */ React.createElement(
154
+ const borderLeft = (props) => /* @__PURE__ */ jsx(
149
155
  "svg",
150
- __spreadValues({
156
+ __spreadProps(__spreadValues({
151
157
  viewBox: "0 0 24 24",
152
158
  height: "48",
153
159
  width: "48",
@@ -155,12 +161,13 @@ const borderLeft = (props) => /* @__PURE__ */ React.createElement(
155
161
  role: "img",
156
162
  fill: "currentColor",
157
163
  xmlns: "http://www.w3.org/2000/svg"
158
- }, props),
159
- /* @__PURE__ */ React.createElement("path", { d: "M6 21a1 1 0 1 0 0-2 1 1 0 0 1-1-1V6a1 1 0 0 1 1-1 1 1 0 0 0 0-2 3 3 0 0 0-3 3v12a3 3 0 0 0 3 3zm7-16a1 1 0 1 0 0-2h-2a1 1 0 1 0 0 2h2zm6 6a1 1 0 1 1 2 0v2a1 1 0 1 1-2 0v-2zm-5 9a1 1 0 0 1-1 1h-2a1 1 0 1 1 0-2h2a1 1 0 0 1 1 1zm4-17a1 1 0 1 0 0 2 1 1 0 0 1 1 1 1 1 0 1 0 2 0 3 3 0 0 0-3-3zm-1 17a1 1 0 0 0 1 1 3 3 0 0 0 3-3 1 1 0 1 0-2 0 1 1 0 0 1-1 1 1 1 0 0 0-1 1z" })
164
+ }, props), {
165
+ children: /* @__PURE__ */ jsx("path", { d: "M6 21a1 1 0 1 0 0-2 1 1 0 0 1-1-1V6a1 1 0 0 1 1-1 1 1 0 0 0 0-2 3 3 0 0 0-3 3v12a3 3 0 0 0 3 3zm7-16a1 1 0 1 0 0-2h-2a1 1 0 1 0 0 2h2zm6 6a1 1 0 1 1 2 0v2a1 1 0 1 1-2 0v-2zm-5 9a1 1 0 0 1-1 1h-2a1 1 0 1 1 0-2h2a1 1 0 0 1 1 1zm4-17a1 1 0 1 0 0 2 1 1 0 0 1 1 1 1 1 0 1 0 2 0 3 3 0 0 0-3-3zm-1 17a1 1 0 0 0 1 1 3 3 0 0 0 3-3 1 1 0 1 0-2 0 1 1 0 0 1-1 1 1 1 0 0 0-1 1z" })
166
+ })
160
167
  );
161
- const borderNone = (props) => /* @__PURE__ */ React.createElement(
168
+ const borderNone = (props) => /* @__PURE__ */ jsx(
162
169
  "svg",
163
- __spreadValues({
170
+ __spreadProps(__spreadValues({
164
171
  viewBox: "0 0 24 24",
165
172
  height: "48",
166
173
  width: "48",
@@ -168,12 +175,13 @@ const borderNone = (props) => /* @__PURE__ */ React.createElement(
168
175
  role: "img",
169
176
  fill: "currentColor",
170
177
  xmlns: "http://www.w3.org/2000/svg"
171
- }, props),
172
- /* @__PURE__ */ React.createElement("path", { d: "M14 4a1 1 0 0 1-1 1h-2a1 1 0 1 1 0-2h2a1 1 0 0 1 1 1zm-9 7a1 1 0 1 0-2 0v2a1 1 0 1 0 2 0v-2zm14 0a1 1 0 1 1 2 0v2a1 1 0 1 1-2 0v-2zm-6 10a1 1 0 1 0 0-2h-2a1 1 0 1 0 0 2h2zM7 4a1 1 0 0 0-1-1 3 3 0 0 0-3 3 1 1 0 0 0 2 0 1 1 0 0 1 1-1 1 1 0 0 0 1-1zm11-1a1 1 0 1 0 0 2 1 1 0 0 1 1 1 1 1 0 1 0 2 0 3 3 0 0 0-3-3zM7 20a1 1 0 0 1-1 1 3 3 0 0 1-3-3 1 1 0 1 1 2 0 1 1 0 0 0 1 1 1 1 0 0 1 1 1zm11 1a1 1 0 1 1 0-2 1 1 0 0 0 1-1 1 1 0 1 1 2 0 3 3 0 0 1-3 3z" })
178
+ }, props), {
179
+ children: /* @__PURE__ */ jsx("path", { d: "M14 4a1 1 0 0 1-1 1h-2a1 1 0 1 1 0-2h2a1 1 0 0 1 1 1zm-9 7a1 1 0 1 0-2 0v2a1 1 0 1 0 2 0v-2zm14 0a1 1 0 1 1 2 0v2a1 1 0 1 1-2 0v-2zm-6 10a1 1 0 1 0 0-2h-2a1 1 0 1 0 0 2h2zM7 4a1 1 0 0 0-1-1 3 3 0 0 0-3 3 1 1 0 0 0 2 0 1 1 0 0 1 1-1 1 1 0 0 0 1-1zm11-1a1 1 0 1 0 0 2 1 1 0 0 1 1 1 1 1 0 1 0 2 0 3 3 0 0 0-3-3zM7 20a1 1 0 0 1-1 1 3 3 0 0 1-3-3 1 1 0 1 1 2 0 1 1 0 0 0 1 1 1 1 0 0 1 1 1zm11 1a1 1 0 1 1 0-2 1 1 0 0 0 1-1 1 1 0 1 1 2 0 3 3 0 0 1-3 3z" })
180
+ })
173
181
  );
174
- const borderRight = (props) => /* @__PURE__ */ React.createElement(
182
+ const borderRight = (props) => /* @__PURE__ */ jsx(
175
183
  "svg",
176
- __spreadValues({
184
+ __spreadProps(__spreadValues({
177
185
  viewBox: "0 0 24 24",
178
186
  height: "48",
179
187
  width: "48",
@@ -181,12 +189,13 @@ const borderRight = (props) => /* @__PURE__ */ React.createElement(
181
189
  role: "img",
182
190
  fill: "currentColor",
183
191
  xmlns: "http://www.w3.org/2000/svg"
184
- }, props),
185
- /* @__PURE__ */ React.createElement("path", { d: "M13 5a1 1 0 1 0 0-2h-2a1 1 0 1 0 0 2h2zm-8 6a1 1 0 1 0-2 0v2a1 1 0 1 0 2 0v-2zm9 9a1 1 0 0 1-1 1h-2a1 1 0 1 1 0-2h2a1 1 0 0 1 1 1zM6 3a1 1 0 0 1 0 2 1 1 0 0 0-1 1 1 1 0 0 1-2 0 3 3 0 0 1 3-3zm1 17a1 1 0 0 1-1 1 3 3 0 0 1-3-3 1 1 0 1 1 2 0 1 1 0 0 0 1 1 1 1 0 0 1 1 1zm11 1a1 1 0 1 1 0-2 1 1 0 0 0 1-1V6a1 1 0 0 0-1-1 1 1 0 1 1 0-2 3 3 0 0 1 3 3v12a3 3 0 0 1-3 3z" })
192
+ }, props), {
193
+ children: /* @__PURE__ */ jsx("path", { d: "M13 5a1 1 0 1 0 0-2h-2a1 1 0 1 0 0 2h2zm-8 6a1 1 0 1 0-2 0v2a1 1 0 1 0 2 0v-2zm9 9a1 1 0 0 1-1 1h-2a1 1 0 1 1 0-2h2a1 1 0 0 1 1 1zM6 3a1 1 0 0 1 0 2 1 1 0 0 0-1 1 1 1 0 0 1-2 0 3 3 0 0 1 3-3zm1 17a1 1 0 0 1-1 1 3 3 0 0 1-3-3 1 1 0 1 1 2 0 1 1 0 0 0 1 1 1 1 0 0 1 1 1zm11 1a1 1 0 1 1 0-2 1 1 0 0 0 1-1V6a1 1 0 0 0-1-1 1 1 0 1 1 0-2 3 3 0 0 1 3 3v12a3 3 0 0 1-3 3z" })
194
+ })
186
195
  );
187
- const borderTop = (props) => /* @__PURE__ */ React.createElement(
196
+ const borderTop = (props) => /* @__PURE__ */ jsx(
188
197
  "svg",
189
- __spreadValues({
198
+ __spreadProps(__spreadValues({
190
199
  viewBox: "0 0 24 24",
191
200
  height: "48",
192
201
  width: "48",
@@ -194,8 +203,9 @@ const borderTop = (props) => /* @__PURE__ */ React.createElement(
194
203
  role: "img",
195
204
  fill: "currentColor",
196
205
  xmlns: "http://www.w3.org/2000/svg"
197
- }, props),
198
- /* @__PURE__ */ React.createElement("path", { d: "M3 6a1 1 0 0 0 2 0 1 1 0 0 1 1-1h12a1 1 0 0 1 1 1 1 1 0 1 0 2 0 3 3 0 0 0-3-3H6a3 3 0 0 0-3 3zm2 5a1 1 0 1 0-2 0v2a1 1 0 1 0 2 0v-2zm14 0a1 1 0 1 1 2 0v2a1 1 0 1 1-2 0v-2zm-5 9a1 1 0 0 1-1 1h-2a1 1 0 1 1 0-2h2a1 1 0 0 1 1 1zm-8 1a1 1 0 1 0 0-2 1 1 0 0 1-1-1 1 1 0 1 0-2 0 3 3 0 0 0 3 3zm11-1a1 1 0 0 0 1 1 3 3 0 0 0 3-3 1 1 0 1 0-2 0 1 1 0 0 1-1 1 1 1 0 0 0-1 1z" })
206
+ }, props), {
207
+ children: /* @__PURE__ */ jsx("path", { d: "M3 6a1 1 0 0 0 2 0 1 1 0 0 1 1-1h12a1 1 0 0 1 1 1 1 1 0 1 0 2 0 3 3 0 0 0-3-3H6a3 3 0 0 0-3 3zm2 5a1 1 0 1 0-2 0v2a1 1 0 1 0 2 0v-2zm14 0a1 1 0 1 1 2 0v2a1 1 0 1 1-2 0v-2zm-5 9a1 1 0 0 1-1 1h-2a1 1 0 1 1 0-2h2a1 1 0 0 1 1 1zm-8 1a1 1 0 1 0 0-2 1 1 0 0 1-1-1 1 1 0 1 0-2 0 3 3 0 0 0 3 3zm11-1a1 1 0 0 0 1 1 3 3 0 0 0 3-3 1 1 0 1 0-2 0 1 1 0 0 1-1 1 1 1 0 0 0-1 1z" })
208
+ })
199
209
  );
200
210
  const Icons = {
201
211
  x: X,
@@ -308,38 +318,38 @@ const Icons = {
308
318
  embed: Film,
309
319
  highlight: Highlighter,
310
320
  suggesting: PenLine,
311
- gitHub: (props) => /* @__PURE__ */ React.createElement("svg", __spreadValues({ viewBox: "0 0 438.549 438.549" }, props), /* @__PURE__ */ React.createElement(
321
+ gitHub: (props) => /* @__PURE__ */ jsx("svg", __spreadProps(__spreadValues({ viewBox: "0 0 438.549 438.549" }, props), { children: /* @__PURE__ */ jsx(
312
322
  "path",
313
323
  {
314
324
  fill: "currentColor",
315
325
  d: "M409.132 114.573c-19.608-33.596-46.205-60.194-79.798-79.8-33.598-19.607-70.277-29.408-110.063-29.408-39.781 0-76.472 9.804-110.063 29.408-33.596 19.605-60.192 46.204-79.8 79.8C9.803 148.168 0 184.854 0 224.63c0 47.78 13.94 90.745 41.827 128.906 27.884 38.164 63.906 64.572 108.063 79.227 5.14.954 8.945.283 11.419-1.996 2.475-2.282 3.711-5.14 3.711-8.562 0-.571-.049-5.708-.144-15.417a2549.81 2549.81 0 01-.144-25.406l-6.567 1.136c-4.187.767-9.469 1.092-15.846 1-6.374-.089-12.991-.757-19.842-1.999-6.854-1.231-13.229-4.086-19.13-8.559-5.898-4.473-10.085-10.328-12.56-17.556l-2.855-6.57c-1.903-4.374-4.899-9.233-8.992-14.559-4.093-5.331-8.232-8.945-12.419-10.848l-1.999-1.431c-1.332-.951-2.568-2.098-3.711-3.429-1.142-1.331-1.997-2.663-2.568-3.997-.572-1.335-.098-2.43 1.427-3.289 1.525-.859 4.281-1.276 8.28-1.276l5.708.853c3.807.763 8.516 3.042 14.133 6.851 5.614 3.806 10.229 8.754 13.846 14.842 4.38 7.806 9.657 13.754 15.846 17.847 6.184 4.093 12.419 6.136 18.699 6.136 6.28 0 11.704-.476 16.274-1.423 4.565-.952 8.848-2.383 12.847-4.285 1.713-12.758 6.377-22.559 13.988-29.41-10.848-1.14-20.601-2.857-29.264-5.14-8.658-2.286-17.605-5.996-26.835-11.14-9.235-5.137-16.896-11.516-22.985-19.126-6.09-7.614-11.088-17.61-14.987-29.979-3.901-12.374-5.852-26.648-5.852-42.826 0-23.035 7.52-42.637 22.557-58.817-7.044-17.318-6.379-36.732 1.997-58.24 5.52-1.715 13.706-.428 24.554 3.853 10.85 4.283 18.794 7.952 23.84 10.994 5.046 3.041 9.089 5.618 12.135 7.708 17.705-4.947 35.976-7.421 54.818-7.421s37.117 2.474 54.823 7.421l10.849-6.849c7.419-4.57 16.18-8.758 26.262-12.565 10.088-3.805 17.802-4.853 23.134-3.138 8.562 21.509 9.325 40.922 2.279 58.24 15.036 16.18 22.559 35.787 22.559 58.817 0 16.178-1.958 30.497-5.853 42.966-3.9 12.471-8.941 22.457-15.125 29.979-6.191 7.521-13.901 13.85-23.131 18.986-9.232 5.14-18.182 8.85-26.84 11.136-8.662 2.286-18.415 4.004-29.263 5.146 9.894 8.562 14.842 22.077 14.842 40.539v60.237c0 3.422 1.19 6.279 3.572 8.562 2.379 2.279 6.136 2.95 11.276 1.995 44.163-14.653 80.185-41.062 108.068-79.226 27.88-38.161 41.825-81.126 41.825-128.906-.01-39.771-9.818-76.454-29.414-110.049z"
316
326
  }
317
- )),
318
- logo: (props) => /* @__PURE__ */ React.createElement("svg", __spreadValues({ xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24" }, props), /* @__PURE__ */ React.createElement(
327
+ ) })),
328
+ logo: (props) => /* @__PURE__ */ jsx("svg", __spreadProps(__spreadValues({ xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24" }, props), { children: /* @__PURE__ */ jsx(
319
329
  "path",
320
330
  {
321
331
  fill: "currentColor",
322
332
  d: "M11.572 0c-.176 0-.31.001-.358.007a19.76 19.76 0 0 1-.364.033C7.443.346 4.25 2.185 2.228 5.012a11.875 11.875 0 0 0-2.119 5.243c-.096.659-.108.854-.108 1.747s.012 1.089.108 1.748c.652 4.506 3.86 8.292 8.209 9.695.779.25 1.6.422 2.534.525.363.04 1.935.04 2.299 0 1.611-.178 2.977-.577 4.323-1.264.207-.106.247-.134.219-.158-.02-.013-.9-1.193-1.955-2.62l-1.919-2.592-2.404-3.558a338.739 338.739 0 0 0-2.422-3.556c-.009-.002-.018 1.579-.023 3.51-.007 3.38-.01 3.515-.052 3.595a.426.426 0 0 1-.206.214c-.075.037-.14.044-.495.044H7.81l-.108-.068a.438.438 0 0 1-.157-.171l-.05-.106.006-4.703.007-4.705.072-.092a.645.645 0 0 1 .174-.143c.096-.047.134-.051.54-.051.478 0 .558.018.682.154.035.038 1.337 1.999 2.895 4.361a10760.433 10760.433 0 0 0 4.735 7.17l1.9 2.879.096-.063a12.317 12.317 0 0 0 2.466-2.163 11.944 11.944 0 0 0 2.824-6.134c.096-.66.108-.854.108-1.748 0-.893-.012-1.088-.108-1.747-.652-4.506-3.859-8.292-8.208-9.695a12.597 12.597 0 0 0-2.499-.523A33.119 33.119 0 0 0 11.573 0zm4.069 7.217c.347 0 .408.005.486.047a.473.473 0 0 1 .237.277c.018.06.023 1.365.018 4.304l-.006 4.218-.744-1.14-.746-1.14v-3.066c0-1.982.01-3.097.023-3.15a.478.478 0 0 1 .233-.296c.096-.05.13-.054.5-.054z"
323
333
  }
324
- ))
334
+ ) }))
325
335
  };
326
336
  const IconX = ({ name, className, withDefault }) => {
327
337
  if (withDefault) {
328
338
  const IconComponent = Icons[name] || SquareIcon;
329
- return /* @__PURE__ */ React.createElement(IconComponent, { className });
339
+ return /* @__PURE__ */ jsx(IconComponent, { className });
330
340
  } else {
331
341
  const IconComponent = Icons[name];
332
342
  if (!IconComponent) {
333
343
  return null;
334
344
  } else {
335
- return /* @__PURE__ */ React.createElement(IconComponent, { className });
345
+ return /* @__PURE__ */ jsx(IconComponent, { className });
336
346
  }
337
347
  }
338
348
  };
339
349
  const IconByName = ({ name }) => {
340
350
  switch (name) {
341
351
  default:
342
- return /* @__PURE__ */ React.createElement(SquareIcon, { className: "mr-2 h-4 w-4" });
352
+ return /* @__PURE__ */ jsx(SquareIcon, { className: "mr-2 h-4 w-4" });
343
353
  }
344
354
  };
345
355
  export {
package/dist/esm/index.js CHANGED
@@ -1,5 +1,6 @@
1
+ import { Fragment, jsx } from "react/jsx-runtime";
1
2
  const LajiComp = () => {
2
- return /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement("button", null, "laji button"));
3
+ return /* @__PURE__ */ jsx(Fragment, { children: /* @__PURE__ */ jsx("button", { children: "laji button" }) });
3
4
  };
4
5
  export {
5
6
  LajiComp
@@ -1,4 +1,5 @@
1
1
  "use client";
2
+ import { jsx } from "react/jsx-runtime";
2
3
  import { ConnectError } from "@connectrpc/connect";
3
4
  import { createContext, useContext } from "react";
4
5
  const fallbackTransportError = new ConnectError(
@@ -14,7 +15,7 @@ const fallbackTransport = {
14
15
  };
15
16
  const transportContext = createContext(fallbackTransport);
16
17
  const useTransport = () => useContext(transportContext);
17
- const TransportProvider = ({ children, transport }) => /* @__PURE__ */ React.createElement(transportContext.Provider, { value: transport }, children);
18
+ const TransportProvider = ({ children, transport }) => /* @__PURE__ */ jsx(transportContext.Provider, { value: transport, children });
18
19
  export {
19
20
  TransportProvider,
20
21
  fallbackTransport,
@@ -14,8 +14,9 @@ var __spreadValues = (a, b) => {
14
14
  }
15
15
  return a;
16
16
  };
17
+ import { jsx } from "react/jsx-runtime";
17
18
  function flexRender(Comp, props) {
18
- return !Comp ? null : isReactComponent(Comp) ? /* @__PURE__ */ React.createElement(Comp, __spreadValues({}, props)) : Comp;
19
+ return !Comp ? null : isReactComponent(Comp) ? /* @__PURE__ */ jsx(Comp, __spreadValues({}, props)) : Comp;
19
20
  }
20
21
  function isReactComponent(component) {
21
22
  return isClassComponent(component) || typeof component === "function" || isExoticComponent(component);
@@ -14,8 +14,9 @@ var __spreadValues = (a, b) => {
14
14
  }
15
15
  return a;
16
16
  };
17
+ import { jsx } from "react/jsx-runtime";
17
18
  function flexRender(Comp, props) {
18
- return !Comp ? null : isReactComponent(Comp) ? /* @__PURE__ */ React.createElement(Comp, __spreadValues({}, props)) : Comp;
19
+ return !Comp ? null : isReactComponent(Comp) ? /* @__PURE__ */ jsx(Comp, __spreadValues({}, props)) : Comp;
19
20
  }
20
21
  function isReactComponent(component) {
21
22
  return isClassComponent(component) || typeof component === "function" || isExoticComponent(component);
@@ -1,4 +1,5 @@
1
1
  "use client";
2
+ import { jsx } from "react/jsx-runtime";
2
3
  import { useMemo } from "react";
3
4
  import { TransportProvider } from "../lib/connectquery";
4
5
  import { createMtConnectTransport } from "../lib/mtmFetcher";
@@ -10,7 +11,7 @@ const MtConnectProvider = (props) => {
10
11
  const transport = useMemo(() => {
11
12
  return createMtConnectTransport(backendUrl || "", extInfo);
12
13
  }, [backendUrl, extInfo]);
13
- return /* @__PURE__ */ React.createElement(TransportProvider, { transport }, children);
14
+ return /* @__PURE__ */ jsx(TransportProvider, { transport, children });
14
15
  };
15
16
  export {
16
17
  MtConnectProvider
@@ -19,6 +19,7 @@ var __async = (__this, __arguments, generator) => {
19
19
  step((generator = generator.apply(__this, __arguments)).next());
20
20
  });
21
21
  };
22
+ import { Fragment, jsx, jsxs } from "react/jsx-runtime";
22
23
  import { useState } from "react";
23
24
  import {
24
25
  QueryClient,
@@ -50,28 +51,35 @@ const MtReactQueryProvider = (props) => {
50
51
  }
51
52
  }
52
53
  }));
53
- return /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement(QueryClientProvider, { client: queryClient }, /* @__PURE__ */ React.createElement(RqErrorBoundary, null, /* @__PURE__ */ React.createElement(ReactQueryStreamedHydration, null, children))));
54
+ return /* @__PURE__ */ jsx(Fragment, { children: /* @__PURE__ */ jsx(QueryClientProvider, { client: queryClient, children: /* @__PURE__ */ jsx(RqErrorBoundary, { children: /* @__PURE__ */ jsx(ReactQueryStreamedHydration, { children }) }) }) });
54
55
  };
55
56
  function RqErrorBoundary(props) {
56
57
  const { children } = props;
57
- return /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement(QueryErrorResetBoundary, null, ({ reset }) => /* @__PURE__ */ React.createElement(
58
+ return /* @__PURE__ */ jsx(Fragment, { children: /* @__PURE__ */ jsx(QueryErrorResetBoundary, { children: ({ reset }) => /* @__PURE__ */ jsx(
58
59
  ErrorBoundary,
59
60
  {
60
61
  onReset: reset,
61
- fallbackRender: ({ resetErrorBoundary, error }) => /* @__PURE__ */ React.createElement("div", { className: "green-red-100 container prose mx-auto p-8 text-lg dark:prose-invert" }, /* @__PURE__ */ React.createElement("div", { className: " pb-8 text-center" }, "some thing error"), /* @__PURE__ */ React.createElement("div", null, error == null ? void 0 : error.toString()), /* @__PURE__ */ React.createElement("div", { className: "flex items-center justify-center p-8" }, /* @__PURE__ */ React.createElement(MtButton, { onClick: () => resetErrorBoundary() }, "Retry")))
62
- },
63
- children
64
- )));
62
+ fallbackRender: ({ resetErrorBoundary, error }) => /* @__PURE__ */ jsxs("div", { className: "green-red-100 container prose mx-auto p-8 text-lg dark:prose-invert", children: [
63
+ /* @__PURE__ */ jsx("div", { className: " pb-8 text-center", children: "some thing error" }),
64
+ /* @__PURE__ */ jsx("div", { children: error == null ? void 0 : error.toString() }),
65
+ /* @__PURE__ */ jsx("div", { className: "flex items-center justify-center p-8", children: /* @__PURE__ */ jsx(MtButton, { onClick: () => resetErrorBoundary(), children: "Retry" }) })
66
+ ] }),
67
+ children
68
+ }
69
+ ) }) });
65
70
  }
66
71
  function RqErrorBoundaryUseHook(props) {
67
72
  const { reset } = useQueryErrorResetBoundary();
68
- return /* @__PURE__ */ React.createElement(
73
+ return /* @__PURE__ */ jsx(
69
74
  ErrorBoundary,
70
75
  {
71
76
  onReset: reset,
72
- fallbackRender: ({ resetErrorBoundary }) => /* @__PURE__ */ React.createElement("div", null, /* @__PURE__ */ React.createElement("div", null, "There was an error\uFF08RqErrorBoundaryUseHook\uFF09!"), /* @__PURE__ */ React.createElement(MtButton, { onClick: () => resetErrorBoundary() }, "Try again"))
73
- },
74
- props.children
77
+ fallbackRender: ({ resetErrorBoundary }) => /* @__PURE__ */ jsxs("div", { children: [
78
+ /* @__PURE__ */ jsx("div", { children: "There was an error\uFF08RqErrorBoundaryUseHook\uFF09!" }),
79
+ /* @__PURE__ */ jsx(MtButton, { onClick: () => resetErrorBoundary(), children: "Try again" })
80
+ ] }),
81
+ children: props.children
82
+ }
75
83
  );
76
84
  }
77
85
  function useMtmSuspenseQuery(serviceName, methodName, input) {
@@ -1,17 +1,18 @@
1
+ import { jsx } from "react/jsx-runtime";
1
2
  import { MtAppProvider } from "./appContext";
2
3
  import { ExtKey_Hostname, ExtKey_mtmaccessToken, ExtKey_mtmbackend } from "../consts";
3
4
  function StorybookDecorator(props) {
4
5
  const { children, MTM_BACKEND, MTM_HOSTNAME } = props;
5
- return /* @__PURE__ */ React.createElement(
6
+ return /* @__PURE__ */ jsx(
6
7
  MtAppProvider,
7
8
  {
8
9
  initExtKv: {
9
10
  [ExtKey_Hostname]: MTM_HOSTNAME || "",
10
11
  [ExtKey_mtmaccessToken]: "",
11
12
  [ExtKey_mtmbackend]: MTM_BACKEND || ""
12
- }
13
- },
14
- children
13
+ },
14
+ children
15
+ }
15
16
  );
16
17
  }
17
18
  export {
@@ -1,7 +1,7 @@
1
1
  "use client";
2
+ import { jsx, jsxs } from "react/jsx-runtime";
2
3
  import { Suspense, createContext, useCallback, useContext, useEffect, useMemo, useState } from "react";
3
4
  import { Provider } from "jotai";
4
- import React from "react";
5
5
  import { useHotkeys } from "react-hotkeys-hook";
6
6
  import { COOKIE_IS_DEBUG, ExtKey_Hostname, ExtKey_SelfBackend, ExtKey_mtmaccessToken, ExtKey_mtmbackend, MtM_TOKEN_NAME } from "../consts";
7
7
  import { isSsr } from "../lib/utils";
@@ -56,7 +56,7 @@ function MtAppProvider(props) {
56
56
  useHotkeys("alt+9", () => {
57
57
  toggleDebug();
58
58
  }, []);
59
- return /* @__PURE__ */ React.createElement(Provider, { store: mtmAppStore }, /* @__PURE__ */ React.createElement(AppContext.Provider, { value: {
59
+ return /* @__PURE__ */ jsx(Provider, { store: mtmAppStore, children: /* @__PURE__ */ jsx(AppContext.Provider, { value: {
60
60
  extKv: initExtKv,
61
61
  token,
62
62
  hostname,
@@ -69,24 +69,34 @@ function MtAppProvider(props) {
69
69
  isOpenDebugView,
70
70
  setOpenDebugView,
71
71
  trpcBackendUrl
72
- } }, /* @__PURE__ */ React.createElement(MtReactQueryProvider, null, /* @__PURE__ */ React.createElement(MtConnectProvider, null, /* @__PURE__ */ React.createElement(LoggerProvider, null, /* @__PURE__ */ React.createElement(
73
- ThemeProvider,
74
- {
75
- attribute: "class",
76
- defaultTheme: "system",
77
- enableSystem: true,
78
- disableTransitionOnChange: true
79
- },
80
- /* @__PURE__ */ React.createElement(TooltipProvider, { delayDuration: 0 }, children, /* @__PURE__ */ React.createElement(
81
- ProgressBar,
72
+ }, children: /* @__PURE__ */ jsx(MtReactQueryProvider, { children: /* @__PURE__ */ jsx(MtConnectProvider, { children: /* @__PURE__ */ jsxs(LoggerProvider, { children: [
73
+ /* @__PURE__ */ jsx(
74
+ ThemeProvider,
82
75
  {
83
- height: "4px",
84
- color: "#4934eb",
85
- options: { showSpinner: false },
86
- shallowRouting: true
76
+ attribute: "class",
77
+ defaultTheme: "system",
78
+ enableSystem: true,
79
+ disableTransitionOnChange: true,
80
+ children: /* @__PURE__ */ jsxs(TooltipProvider, { delayDuration: 0, children: [
81
+ children,
82
+ /* @__PURE__ */ jsx(
83
+ ProgressBar,
84
+ {
85
+ height: "4px",
86
+ color: "#4934eb",
87
+ options: { showSpinner: false },
88
+ shallowRouting: true
89
+ }
90
+ ),
91
+ /* @__PURE__ */ jsx(Toaster, {}),
92
+ /* @__PURE__ */ jsx(ReactQueryDevtools, {}),
93
+ /* @__PURE__ */ jsx(TailwindIndicator, {}),
94
+ /* @__PURE__ */ jsx(Suspense, {})
95
+ ] })
87
96
  }
88
- ), /* @__PURE__ */ React.createElement(Toaster, null), /* @__PURE__ */ React.createElement(ReactQueryDevtools, null), /* @__PURE__ */ React.createElement(TailwindIndicator, null), /* @__PURE__ */ React.createElement(Suspense, null))
89
- ), /* @__PURE__ */ React.createElement(AppMetaRender, null))))));
97
+ ),
98
+ /* @__PURE__ */ jsx(AppMetaRender, {})
99
+ ] }) }) }) }) });
90
100
  }
91
101
  function useMtmApp() {
92
102
  const mtappContext = useContext(AppContext);
@@ -18,6 +18,7 @@ var __async = (__this, __arguments, generator) => {
18
18
  step((generator = generator.apply(__this, __arguments)).next());
19
19
  });
20
20
  };
21
+ import { Fragment, jsx } from "react/jsx-runtime";
21
22
  import { ExtKey_Hostname, ExtKey_SelfBackend, ExtKey_mtmaccessToken, ExtKey_mtmbackend } from "../consts";
22
23
  import { ExtinfoSS } from "../lib/sscore";
23
24
  import { MtAppProvider } from "./appContext";
@@ -26,10 +27,10 @@ function MtAppSS(props) {
26
27
  const { children } = props;
27
28
  const backend = ExtinfoSS(ExtKey_Hostname);
28
29
  if (!backend) {
29
- return /* @__PURE__ */ React.createElement(React.Fragment, null, "missing backend");
30
+ return /* @__PURE__ */ jsx(Fragment, { children: "missing backend" });
30
31
  }
31
32
  console.log("self backend url", ExtinfoSS(ExtKey_SelfBackend));
32
- return /* @__PURE__ */ React.createElement(
33
+ return /* @__PURE__ */ jsx(
33
34
  MtAppProvider,
34
35
  {
35
36
  initExtKv: {
@@ -37,9 +38,9 @@ function MtAppSS(props) {
37
38
  [ExtKey_mtmaccessToken]: ExtinfoSS(ExtKey_mtmaccessToken),
38
39
  [ExtKey_mtmbackend]: ExtinfoSS(ExtKey_mtmbackend),
39
40
  [ExtKey_SelfBackend]: ExtinfoSS(ExtKey_SelfBackend)
40
- }
41
- },
42
- children
41
+ },
42
+ children
43
+ }
43
44
  );
44
45
  });
45
46
  }
@@ -1,4 +1,5 @@
1
1
  "use client";
2
+ import { jsx } from "react/jsx-runtime";
2
3
  import { createContext, useContext, useMemo, useState } from "react";
3
4
  import { mtlogger } from "../lib/mt-logger";
4
5
  import { useMtmApp } from "./appContext";
@@ -6,9 +7,9 @@ const LoggerContext = createContext(void 0);
6
7
  function LoggerProvider(props) {
7
8
  const { children } = props;
8
9
  const [_logger, setLogger] = useState(mtlogger);
9
- return /* @__PURE__ */ React.createElement(LoggerContext.Provider, { value: {
10
+ return /* @__PURE__ */ jsx(LoggerContext.Provider, { value: {
10
11
  logger: _logger
11
- } }, children);
12
+ }, children });
12
13
  }
13
14
  const nonLogFn = () => {
14
15
  };
@@ -1,8 +1,12 @@
1
+ import { Fragment, jsx, jsxs } from "react/jsx-runtime";
1
2
  import { atom, useAtom, useSetAtom } from "jotai";
2
3
  const metaTitleAtom = atom("site-title-1");
3
4
  const AppMetaRender = () => {
4
5
  const [title] = useAtom(metaTitleAtom);
5
- return /* @__PURE__ */ React.createElement(React.Fragment, null, title && /* @__PURE__ */ React.createElement("title", null, title), /* @__PURE__ */ React.createElement("meta", { name: "somemtm", content: "mark123" }));
6
+ return /* @__PURE__ */ jsxs(Fragment, { children: [
7
+ title && /* @__PURE__ */ jsx("title", { children: title }),
8
+ /* @__PURE__ */ jsx("meta", { name: "somemtm", content: "mark123" })
9
+ ] });
6
10
  };
7
11
  const usePageTitle = (title) => {
8
12
  const setTitle = useSetAtom(metaTitleAtom);
@@ -1,4 +1,91 @@
1
1
  export let content: string[];
2
+ export let darkMode: string[];
2
3
  export namespace theme {
3
- let extend: {};
4
+ namespace container {
5
+ let center: boolean;
6
+ let padding: string;
7
+ let screens: {
8
+ "2xl": string;
9
+ };
10
+ }
11
+ namespace extend {
12
+ namespace colors {
13
+ let border: string;
14
+ let input: string;
15
+ let ring: string;
16
+ let background: string;
17
+ let foreground: string;
18
+ namespace primary {
19
+ export let DEFAULT: string;
20
+ let foreground_1: string;
21
+ export { foreground_1 as foreground };
22
+ }
23
+ namespace secondary {
24
+ let DEFAULT_1: string;
25
+ export { DEFAULT_1 as DEFAULT };
26
+ let foreground_2: string;
27
+ export { foreground_2 as foreground };
28
+ }
29
+ namespace destructive {
30
+ let DEFAULT_2: string;
31
+ export { DEFAULT_2 as DEFAULT };
32
+ let foreground_3: string;
33
+ export { foreground_3 as foreground };
34
+ }
35
+ namespace muted {
36
+ let DEFAULT_3: string;
37
+ export { DEFAULT_3 as DEFAULT };
38
+ let foreground_4: string;
39
+ export { foreground_4 as foreground };
40
+ }
41
+ namespace accent {
42
+ let DEFAULT_4: string;
43
+ export { DEFAULT_4 as DEFAULT };
44
+ let foreground_5: string;
45
+ export { foreground_5 as foreground };
46
+ }
47
+ namespace popover {
48
+ let DEFAULT_5: string;
49
+ export { DEFAULT_5 as DEFAULT };
50
+ let foreground_6: string;
51
+ export { foreground_6 as foreground };
52
+ }
53
+ namespace card {
54
+ let DEFAULT_6: string;
55
+ export { DEFAULT_6 as DEFAULT };
56
+ let foreground_7: string;
57
+ export { foreground_7 as foreground };
58
+ }
59
+ }
60
+ namespace borderRadius {
61
+ let lg: string;
62
+ let md: string;
63
+ let sm: string;
64
+ }
65
+ let keyframes: {
66
+ "accordion-down": {
67
+ from: {
68
+ height: number;
69
+ };
70
+ to: {
71
+ height: string;
72
+ };
73
+ };
74
+ "accordion-up": {
75
+ from: {
76
+ height: string;
77
+ };
78
+ to: {
79
+ height: number;
80
+ };
81
+ };
82
+ };
83
+ let animation: {
84
+ "accordion-down": string;
85
+ "accordion-up": string;
86
+ };
87
+ }
4
88
  }
89
+ export let plugins: ({
90
+ handler: () => void;
91
+ } | typeof import("@tailwindcss/typography"))[];
@@ -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 AccordionPrimitive from "@radix-ui/react-accordion";
31
35
  import { ChevronDownIcon } from "@radix-ui/react-icons";
32
36
  import * as React from "react";
@@ -34,7 +38,7 @@ import { cn } from "../lib/utils";
34
38
  const Accordion = AccordionPrimitive.Root;
35
39
  const AccordionItem = React.forwardRef((_a, ref) => {
36
40
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
37
- return /* @__PURE__ */ React.createElement(
41
+ return /* @__PURE__ */ jsx(
38
42
  AccordionPrimitive.Item,
39
43
  __spreadValues({
40
44
  ref,
@@ -45,32 +49,36 @@ const AccordionItem = React.forwardRef((_a, ref) => {
45
49
  AccordionItem.displayName = "AccordionItem";
46
50
  const AccordionTrigger = React.forwardRef((_c, ref) => {
47
51
  var _d = _c, { className, children } = _d, props = __objRest(_d, ["className", "children"]);
48
- return /* @__PURE__ */ React.createElement(AccordionPrimitive.Header, { className: "flex" }, /* @__PURE__ */ React.createElement(
52
+ return /* @__PURE__ */ jsx(AccordionPrimitive.Header, { className: "flex", children: /* @__PURE__ */ jsxs(
49
53
  AccordionPrimitive.Trigger,
50
- __spreadValues({
54
+ __spreadProps(__spreadValues({
51
55
  ref,
52
56
  className: cn(
53
57
  "flex flex-1 items-center justify-between py-4 text-sm font-medium transition-all hover:underline [&[data-state=open]>svg]:rotate-180",
54
58
  className
55
59
  )
56
- }, props),
57
- children,
58
- /* @__PURE__ */ React.createElement(ChevronDownIcon, { className: "text-muted-foreground h-4 w-4 shrink-0 transition-transform duration-200" })
59
- ));
60
+ }, props), {
61
+ children: [
62
+ children,
63
+ /* @__PURE__ */ jsx(ChevronDownIcon, { className: "text-muted-foreground h-4 w-4 shrink-0 transition-transform duration-200" })
64
+ ]
65
+ })
66
+ ) });
60
67
  });
61
68
  AccordionTrigger.displayName = AccordionPrimitive.Trigger.displayName;
62
69
  const AccordionContent = React.forwardRef((_e, ref) => {
63
70
  var _f = _e, { className, children } = _f, props = __objRest(_f, ["className", "children"]);
64
- return /* @__PURE__ */ React.createElement(
71
+ return /* @__PURE__ */ jsx(
65
72
  AccordionPrimitive.Content,
66
- __spreadValues({
73
+ __spreadProps(__spreadValues({
67
74
  ref,
68
75
  className: cn(
69
76
  "data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down overflow-hidden text-sm",
70
77
  className
71
78
  )
72
- }, props),
73
- /* @__PURE__ */ React.createElement("div", { className: "pb-4 pt-0" }, children)
79
+ }, props), {
80
+ children: /* @__PURE__ */ jsx("div", { className: "pb-4 pt-0", children })
81
+ })
74
82
  );
75
83
  });
76
84
  AccordionContent.displayName = AccordionPrimitive.Content.displayName;