mtxuilib 0.1.11 → 0.1.13

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 (284) hide show
  1. package/dist/common/DeleteComfirm.d.ts +20 -0
  2. package/dist/common/FullCenter.d.ts +2 -0
  3. package/dist/common/GlobalSearch.d.ts +11 -0
  4. package/dist/common/MtImage.d.ts +5 -0
  5. package/dist/common/MtProgressBar.d.ts +1 -0
  6. package/dist/common/NotFoundGoBack.d.ts +1 -0
  7. package/dist/common/SlntTree/Slnt.z.d.ts +28 -0
  8. package/dist/common/SlntTree/SlntChildrenTabs.d.ts +1 -0
  9. package/dist/common/SlntTree/SlntTreeNode.d.ts +19 -0
  10. package/dist/common/TrpcQuery.d.ts +0 -0
  11. package/dist/common/devtools/DebugValue.d.ts +5 -0
  12. package/dist/common/devtools/DevTools.d.ts +2 -0
  13. package/dist/common/mtlink.d.ts +14 -0
  14. package/dist/common/pip/PipExamplePage.d.ts +1 -0
  15. package/dist/common/pip/ReactDocumentPictureInPicture.d.ts +28 -0
  16. package/dist/common/react-markdown/Code.d.ts +6 -0
  17. package/dist/common/react-markdown/MarkdownToolbar.d.ts +4 -0
  18. package/dist/common/react-markdown/ReactMarkdownExample.d.ts +1 -0
  19. package/dist/common/schema-form/SchemaFormFieldsRender.d.ts +4 -0
  20. package/dist/common/schema-form/SchemaFormView.d.ts +12 -0
  21. package/dist/common/schema-form/schema-form.z.d.ts +90 -0
  22. package/dist/common/table/SimpleTable.d.ts +4 -0
  23. package/dist/common/table/cells/ExpenderCell.d.ts +2 -0
  24. package/dist/common/table/cells/SelectCell.d.ts +12 -0
  25. package/dist/common/table/cells/Text.d.ts +8 -0
  26. package/dist/common/table/cells/ViewLink.d.ts +12 -0
  27. package/dist/common/table/cells/container/cellWrapper.d.ts +6 -0
  28. package/dist/common/table/cells/number.d.ts +2 -0
  29. package/dist/common/table/cells/string.d.ts +2 -0
  30. package/dist/common/table/data-table-pagination.d.ts +6 -0
  31. package/dist/common/table/data-table-view-options.d.ts +6 -0
  32. package/dist/common/table/datatable-view-options.d.ts +12 -0
  33. package/dist/common/table/example/ExampleTable.d.ts +1 -0
  34. package/dist/common/table/header/SimpleHeader.d.ts +4 -0
  35. package/dist/common/table/header/header.d.ts +5 -0
  36. package/dist/common/table/table.z.d.ts +189 -0
  37. package/dist/common/tailwind-indicator.d.ts +1 -0
  38. package/dist/common/theme/mode-toggle.d.ts +1 -0
  39. package/dist/common/theme/theme-toggle.d.ts +1 -0
  40. package/dist/common/tiptap/MenuBar.d.ts +1 -0
  41. package/dist/common/tiptap/TiptapEditor.d.ts +5 -0
  42. package/dist/common/tiptap/examples/Demo-Default.d.ts +1 -0
  43. package/dist/common/tiptap/examples/Demo-Tiptap.d.ts +1 -0
  44. package/dist/demos/bigcode/BigCode.d.ts +4 -0
  45. package/dist/demos/condition-type/serialize.d.ts +3 -0
  46. package/dist/demos/demo-react-use.d.ts +1 -0
  47. package/dist/demos/lib.d.ts +3 -0
  48. package/dist/demos/scrollarea/LongListDemo.d.ts +1 -0
  49. package/dist/demos/scrollarea/ScrollAreaDemo.d.ts +1 -0
  50. package/dist/demos/suspense-ssr/ExampleOg.d.ts +4 -0
  51. package/dist/demos/suspense-ssr/ExamplePage.d.ts +3 -0
  52. package/dist/demos/suspense-ssr/ExampleProviderProviders.d.ts +4 -0
  53. package/dist/demos/suspense-ssr/ReadMe.d.ts +1 -0
  54. package/dist/demos/suspense-ssr/examplesPostDetail.d.ts +3 -0
  55. package/dist/demos/suspense-ssr/examplesPosts.d.ts +1 -0
  56. package/dist/form/EditFormToolbar.d.ts +13 -0
  57. package/dist/form/ZodForm.d.ts +14 -0
  58. package/dist/form/deleteConform.d.ts +8 -0
  59. package/dist/hooks/use-config.d.ts +5 -0
  60. package/dist/hooks/use-local-storage.d.ts +2 -0
  61. package/dist/hooks/use-lock-body.d.ts +1 -0
  62. package/dist/hooks/use-media-query.d.ts +7 -0
  63. package/dist/hooks/use-mutation-observer.d.ts +7 -0
  64. package/dist/hooks/use-router.d.ts +18 -0
  65. package/dist/hooks/useIsIntersecting.d.ts +2 -0
  66. package/dist/hooks/useLayoutPath.d.ts +2 -0
  67. package/dist/hooks/useMounted.d.ts +1 -0
  68. package/dist/hooks/useScript.d.ts +3 -0
  69. package/dist/icons/Cross2Icon.d.ts +1 -0
  70. package/dist/icons/DotsHorizontalIcon.d.ts +1 -0
  71. package/dist/icons/MixerHorizontal.d.ts +1 -0
  72. package/dist/icons/crazy-spinner.d.ts +2 -0
  73. package/dist/icons/font-default.d.ts +3 -0
  74. package/dist/icons/font-mono.d.ts +3 -0
  75. package/dist/icons/font-serif.d.ts +3 -0
  76. package/dist/icons/github.d.ts +3 -0
  77. package/dist/icons/icons.d.ts +133 -0
  78. package/dist/icons/index.d.ts +4 -0
  79. package/dist/icons/loading-circle.d.ts +3 -0
  80. package/dist/icons/magic.d.ts +3 -0
  81. package/dist/index.d.ts +1 -0
  82. package/dist/lib/111.test.d.ts +1 -0
  83. package/dist/lib/clientlib/clientlib.d.ts +6 -0
  84. package/dist/lib/clientlib/domutils.d.ts +2 -0
  85. package/dist/lib/clientlib/selectPath.d.ts +4 -0
  86. package/dist/lib/componentHelper.d.ts +7 -0
  87. package/dist/lib/errors.d.ts +4 -0
  88. package/dist/lib/fetch-proxy/fetch-proxy.d.ts +1 -0
  89. package/dist/lib/highlight-code.d.ts +1 -0
  90. package/dist/lib/htmlparse/components/ItemActionButton.d.ts +2 -0
  91. package/dist/lib/htmlparse/htmlParse.d.ts +2 -0
  92. package/dist/lib/react-query/ReactQueryProvider.d.ts +4 -0
  93. package/dist/lib/render.d.ts +4 -0
  94. package/dist/lib/service-worker/ServiceWorkerMain.d.ts +1 -0
  95. package/dist/lib/service-worker/lib.d.ts +1 -0
  96. package/dist/lib/service-worker/worker.d.ts +1 -0
  97. package/dist/lib/service-worker.d.ts +5 -0
  98. package/dist/lib/trpc/types.d.ts +6 -0
  99. package/dist/lib/trpc-query/TrpcComponents/TrpcDehydrate.d.ts +5 -0
  100. package/dist/lib/url.d.ts +2 -0
  101. package/dist/lib/useScript.d.ts +3 -0
  102. package/dist/lib/utils.d.ts +27 -0
  103. package/dist/lib/zod/common.z.d.ts +71 -0
  104. package/dist/lib/zod/demo.z.d.ts +1 -0
  105. package/dist/lib/zod/listView.z.d.ts +7688 -0
  106. package/dist/lib/zod/meta.d.ts +51 -0
  107. package/dist/lib/zod/msg.z.d.ts +9 -0
  108. package/dist/lib/zod/taskStatus.z.d.ts +17 -0
  109. package/dist/lib/zustand.d.ts +5 -0
  110. package/dist/misc/CustomErrorRetry.d.ts +4 -0
  111. package/dist/misc/ExampleErrorDemo.d.ts +4 -0
  112. package/dist/misc/MtErrorBoundary.d.ts +16 -0
  113. package/dist/misc/MtErrorBoundary.stories.d.ts +15 -0
  114. package/dist/misc/MtErrorBoundaryV2.d.ts +2 -0
  115. package/dist/misc/MtErrorBoundaryV2.stories.d.ts +17 -0
  116. package/dist/mtapp/History.d.ts +24 -0
  117. package/dist/mtapp/MtAppProvider.d.ts +58 -0
  118. package/dist/mtedtior/AiButtons.d.ts +10 -0
  119. package/dist/mtedtior/MtEditor.d.ts +29 -0
  120. package/dist/mtedtior/components/editor-bubble-item.d.ts +9 -0
  121. package/dist/mtedtior/components/editor-bubble.d.ts +7 -0
  122. package/dist/mtedtior/components/editor-command-item.d.ts +20 -0
  123. package/dist/mtedtior/components/editor-command.d.ts +29 -0
  124. package/dist/mtedtior/components/editor.d.ts +21 -0
  125. package/dist/mtedtior/components/index.d.ts +8 -0
  126. package/dist/mtedtior/content.d.ts +132 -0
  127. package/dist/mtedtior/extensions/ai-highlight.d.ts +22 -0
  128. package/dist/mtedtior/extensions/custom-keymap.d.ts +10 -0
  129. package/dist/mtedtior/extensions/drag-and-drop.d.ts +6 -0
  130. package/dist/mtedtior/extensions/image-resizer.d.ts +2 -0
  131. package/dist/mtedtior/extensions/index.d.ts +12 -0
  132. package/dist/mtedtior/extensions/slash-command.d.ts +33 -0
  133. package/dist/mtedtior/extensions/updated-image.d.ts +2 -0
  134. package/dist/mtedtior/generative/ai-completion-command.d.ts +5 -0
  135. package/dist/mtedtior/generative/ai-selector-commands.d.ts +5 -0
  136. package/dist/mtedtior/generative/ai-selector.d.ts +6 -0
  137. package/dist/mtedtior/generative/generative-menu-switch.d.ts +8 -0
  138. package/dist/mtedtior/mtextesions/DemoComponent.d.ts +2 -0
  139. package/dist/mtedtior/plugins/index.d.ts +1 -0
  140. package/dist/mtedtior/plugins/upload-images.d.ts +13 -0
  141. package/dist/mtedtior/selectors/color-selector.d.ts +8 -0
  142. package/dist/mtedtior/selectors/link-selector.d.ts +8 -0
  143. package/dist/mtedtior/selectors/node-selector.d.ts +14 -0
  144. package/dist/mtedtior/selectors/text-buttons.d.ts +1 -0
  145. package/dist/mtedtior/tw_extensions.d.ts +1 -0
  146. package/dist/mtedtior/utils/summary.d.ts +1 -0
  147. package/dist/mtedtior/utils/utils.d.ts +9 -0
  148. package/dist/mtedtior/utils.d.ts +9 -0
  149. package/dist/scripts/build-registry.d.ts +3 -0
  150. package/dist/service-worker/ServiceWorkerMain.d.ts +1 -0
  151. package/dist/service-worker/lib.d.ts +1 -0
  152. package/dist/service-worker/sw.d.ts +1 -0
  153. package/dist/styled-system/css/conditions.d.mts +3 -0
  154. package/dist/styled-system/css/css.d.mts +6 -0
  155. package/dist/styled-system/css/cva.d.mts +14 -0
  156. package/dist/styled-system/css/cx.d.mts +1 -0
  157. package/dist/styled-system/css/index.d.mts +4 -0
  158. package/dist/styled-system/css/sva.d.mts +10 -0
  159. package/dist/styled-system/helpers.d.mts +39 -0
  160. package/dist/styled-system/patterns/aspect-ratio.d.mts +5 -0
  161. package/dist/styled-system/patterns/bleed.d.mts +5 -0
  162. package/dist/styled-system/patterns/box.d.mts +5 -0
  163. package/dist/styled-system/patterns/center.d.mts +5 -0
  164. package/dist/styled-system/patterns/circle.d.mts +5 -0
  165. package/dist/styled-system/patterns/container.d.mts +5 -0
  166. package/dist/styled-system/patterns/cq.d.mts +5 -0
  167. package/dist/styled-system/patterns/divider.d.mts +5 -0
  168. package/dist/styled-system/patterns/flex.d.mts +5 -0
  169. package/dist/styled-system/patterns/float.d.mts +5 -0
  170. package/dist/styled-system/patterns/grid-item.d.mts +5 -0
  171. package/dist/styled-system/patterns/grid.d.mts +5 -0
  172. package/dist/styled-system/patterns/hstack.d.mts +5 -0
  173. package/dist/styled-system/patterns/index.d.mts +20 -0
  174. package/dist/styled-system/patterns/link-overlay.d.mts +5 -0
  175. package/dist/styled-system/patterns/spacer.d.mts +5 -0
  176. package/dist/styled-system/patterns/square.d.mts +5 -0
  177. package/dist/styled-system/patterns/stack.d.mts +5 -0
  178. package/dist/styled-system/patterns/visually-hidden.d.mts +5 -0
  179. package/dist/styled-system/patterns/vstack.d.mts +5 -0
  180. package/dist/styled-system/patterns/wrap.d.mts +5 -0
  181. package/dist/styled-system/tokens/index.d.mts +6 -0
  182. package/dist/tailwind copy.d.cts +2 -0
  183. package/dist/tailwind.d.ts +3 -0
  184. package/dist/types/common.d.ts +16 -0
  185. package/dist/ui/accordion.d.ts +7 -0
  186. package/dist/ui/alert-dialog.d.ts +20 -0
  187. package/dist/ui/alert.d.ts +8 -0
  188. package/dist/ui/aspect-ratio.d.ts +4 -0
  189. package/dist/ui/avatar.d.ts +6 -0
  190. package/dist/ui/badge.d.ts +9 -0
  191. package/dist/ui/breadcrumb.d.ts +19 -0
  192. package/dist/ui/button.d.ts +11 -0
  193. package/dist/ui/calendar.d.ts +8 -0
  194. package/dist/ui/card.d.ts +8 -0
  195. package/dist/ui/checkbox.d.ts +4 -0
  196. package/dist/ui/collapsible.d.ts +6 -0
  197. package/dist/ui/command.d.ts +50 -0
  198. package/dist/ui/context-menu.d.ts +27 -0
  199. package/dist/ui/dialog.d.ts +19 -0
  200. package/dist/ui/drawer.d.ts +24 -0
  201. package/dist/ui/dropdown-menu.d.ts +27 -0
  202. package/dist/ui/form.d.ts +23 -0
  203. package/dist/ui/hover-card.d.ts +6 -0
  204. package/dist/ui/input.d.ts +5 -0
  205. package/dist/ui/label.d.ts +5 -0
  206. package/dist/ui/menubar.d.ts +31 -0
  207. package/dist/ui/navigation-menu.d.ts +12 -0
  208. package/dist/ui/pagination.d.ts +28 -0
  209. package/dist/ui/popover.d.ts +6 -0
  210. package/dist/ui/progress.d.ts +4 -0
  211. package/dist/ui/radio-group.d.ts +5 -0
  212. package/dist/ui/resizable.d.ts +24 -0
  213. package/dist/ui/scroll-area.d.ts +5 -0
  214. package/dist/ui/select.d.ts +11 -0
  215. package/dist/ui/separator.d.ts +4 -0
  216. package/dist/ui/sheet.d.ts +25 -0
  217. package/dist/ui/skeleton.d.ts +2 -0
  218. package/dist/ui/slider.d.ts +4 -0
  219. package/dist/ui/sonner.d.ts +5 -0
  220. package/dist/ui/switch.d.ts +4 -0
  221. package/dist/ui/table.d.ts +10 -0
  222. package/dist/ui/tabs.d.ts +7 -0
  223. package/dist/ui/textarea.d.ts +5 -0
  224. package/dist/ui/toast.d.ts +15 -0
  225. package/dist/ui/toaster.d.ts +1 -0
  226. package/dist/ui/toggle.d.ts +12 -0
  227. package/dist/ui/tooltip.d.ts +7 -0
  228. package/dist/ui/use-toast.d.ts +44 -0
  229. package/dist/ui-mt/Boundary.d.ts +9 -0
  230. package/dist/ui-mt/Button.d.ts +2 -0
  231. package/dist/ui-mt/DropdownMenuItemLink.d.ts +7 -0
  232. package/dist/ui-mt/ErrorMessage.d.ts +2 -0
  233. package/dist/ui-mt/ExampleTree.d.ts +1 -0
  234. package/dist/ui-mt/MtDialog.d.ts +19 -0
  235. package/dist/ui-mt/MtForm.d.ts +2 -0
  236. package/dist/ui-mt/NavTag.d.ts +10 -0
  237. package/dist/ui-mt/ScreenPanel.d.ts +4 -0
  238. package/dist/ui-mt/Separator.d.ts +2 -0
  239. package/dist/ui-mt/SimpleModel.d.ts +4 -0
  240. package/dist/ui-mt/SimpleTag.d.ts +5 -0
  241. package/dist/ui-mt/Slot.d.ts +1 -0
  242. package/dist/ui-mt/Tree.d.ts +14 -0
  243. package/dist/ui-mt/WithLinkIf.d.ts +4 -0
  244. package/dist/ui-mt/headline.d.ts +8 -0
  245. package/dist/ui-mt/input-field/InputField.d.ts +4 -0
  246. package/dist/ui-mt/input-field/RichEditorInput.d.ts +6 -0
  247. package/dist/ui-mt/input-field/SingleUploadForm.d.ts +2 -0
  248. package/dist/ui-mt/input-field/TextArea.d.ts +4 -0
  249. package/dist/ui-mt/input-field/TextFileInput.d.ts +8 -0
  250. package/dist/ui-mt/input-field/select/InputSelect.d.ts +8 -0
  251. package/dist/ui-mt/inputs/SearchInput.d.ts +2 -0
  252. package/dist/ui-mt/inputs/TaskStatusInput.d.ts +2 -0
  253. package/dist/ui-mt/inputs/UrlsInput.d.ts +2 -0
  254. package/dist/ui-mt/inputs/input.d.ts +2 -0
  255. package/dist/ui-mt/modal/MtModal.d.ts +30 -0
  256. package/dist/ui-mt/mt-tree-view/MtTreeViewExample.d.ts +1 -0
  257. package/dist/ui-mt/mt-tree-view/mt-tree-view-api.d.ts +38 -0
  258. package/dist/ui-mt/mt-tree-view/mt-treeview.d.ts +24 -0
  259. package/dist/ui-mt/pagination.d.ts +7 -0
  260. package/dist/ui-mt/skeleton/NewLoading.d.ts +1 -0
  261. package/dist/ui-mt/skeleton/SkeletonDashboardShell.d.ts +0 -0
  262. package/dist/ui-mt/skeleton/SkeletonInput.d.ts +1 -0
  263. package/dist/ui-mt/skeleton/SkeletonLayout.d.ts +1 -0
  264. package/dist/ui-mt/skeleton/SkeletonLoading.d.ts +3 -0
  265. package/dist/ui-mt/skeleton/skeleton-card.d.ts +3 -0
  266. package/dist/ui-mt/skeleton/skeleton2.d.ts +1 -0
  267. package/dist/ui-mt/skeleton/skeletons.d.ts +6 -0
  268. package/dist/ui-mt/skeleton.d.ts +5 -0
  269. package/dist/ui-mt/types.d.ts +5 -0
  270. package/dist/ui-vamp/alert.d.ts +17 -0
  271. package/dist/ui-vamp/button.d.ts +13 -0
  272. package/dist/ui-vamp/card.d.ts +23 -0
  273. package/dist/ui-vamp/chip.d.ts +11 -0
  274. package/dist/ui-vamp/dropdown.d.ts +12 -0
  275. package/dist/ui-vamp/external-link.d.ts +7 -0
  276. package/dist/ui-vamp/input.d.ts +13 -0
  277. package/dist/ui-vamp/keyvalue.d.ts +7 -0
  278. package/dist/ui-vamp/mobile-nav-button.d.ts +1 -0
  279. package/dist/ui-vamp/modal.d.ts +11 -0
  280. package/dist/ui-vamp/textarea.d.ts +12 -0
  281. package/dist/ui-vamp/toggle-group.d.ts +8 -0
  282. package/dist/video-player/mt-video-player.d.ts +6 -0
  283. package/dist/video-player/video-player2/modal-video-player.d.ts +12 -0
  284. package/package.json +1 -1
@@ -0,0 +1,20 @@
1
+ import { type PropsWithChildren } from "react";
2
+ import { type StateCreator } from "zustand";
3
+ type MtxFormProps = {
4
+ open?: boolean;
5
+ };
6
+ type ConfirmCallbackFnType = () => void;
7
+ export interface DeleteConformState extends MtxFormProps {
8
+ setOpen: (open: boolean) => void;
9
+ confirmCallback?: ConfirmCallbackFnType;
10
+ setConfirmCallback: (confirmCallback: ConfirmCallbackFnType) => void;
11
+ }
12
+ export declare const createFormSlice: StateCreator<DeleteConformState, [], [], DeleteConformState>;
13
+ export declare const DeleteConfirmProvider: (props: PropsWithChildren<MtxFormProps>) => import("react/jsx-runtime").JSX.Element;
14
+ export declare const useDeleteConfirm: () => {
15
+ show: (props: {
16
+ callback: () => void;
17
+ }) => void;
18
+ };
19
+ export declare const DeleteConfirmDlg: () => import("react/jsx-runtime").JSX.Element;
20
+ export {};
@@ -0,0 +1,2 @@
1
+ import { PropsWithChildren } from "react";
2
+ export declare const FullCenter: (props: PropsWithChildren) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,11 @@
1
+ import { type PropsWithChildren } from "react";
2
+ import { type StateCreator } from "zustand";
3
+ type GlobalSearchProps = {};
4
+ export interface GlobalSearchState extends GlobalSearchProps {
5
+ q?: string;
6
+ setQ?: (q: string) => void;
7
+ }
8
+ export declare const createFormSlice: StateCreator<GlobalSearchState, [], [], GlobalSearchState>;
9
+ export declare const GlobalSearchProvider: (props: PropsWithChildren<GlobalSearchProps>) => import("react/jsx-runtime").JSX.Element;
10
+ export declare function useGlobalSearch<T>(selector: (state: GlobalSearchState) => T): T;
11
+ export {};
@@ -0,0 +1,5 @@
1
+ import Image from 'next/image';
2
+ import { ComponentProps } from "react";
3
+ type Props = ComponentProps<typeof Image>;
4
+ export declare const MtImage: (props: Props) => import("react/jsx-runtime").JSX.Element;
5
+ export {};
@@ -0,0 +1 @@
1
+ export declare const MtProgressBar: () => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1 @@
1
+ export declare const NotFoundGoBack: () => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,28 @@
1
+ import { z } from "zod";
2
+ declare const slntTreeNodeBaseSchema: z.ZodObject<{
3
+ id: z.ZodString;
4
+ pid: z.ZodOptional<z.ZodString>;
5
+ label: z.ZodOptional<z.ZodString>;
6
+ icon: z.ZodOptional<z.ZodString>;
7
+ routeName: z.ZodOptional<z.ZodString>;
8
+ routeType: z.ZodOptional<z.ZodEnum<["default", "list", "detail"]>>;
9
+ }, "strip", z.ZodTypeAny, {
10
+ id: string;
11
+ label?: string | undefined;
12
+ icon?: string | undefined;
13
+ pid?: string | undefined;
14
+ routeName?: string | undefined;
15
+ routeType?: "default" | "list" | "detail" | undefined;
16
+ }, {
17
+ id: string;
18
+ label?: string | undefined;
19
+ icon?: string | undefined;
20
+ pid?: string | undefined;
21
+ routeName?: string | undefined;
22
+ routeType?: "default" | "list" | "detail" | undefined;
23
+ }>;
24
+ export type DashMenuTreeItem = z.infer<typeof slntTreeNodeBaseSchema> & {
25
+ children?: DashMenuTreeItem[];
26
+ };
27
+ export declare const treeNodeSchema: z.ZodType<DashMenuTreeItem>;
28
+ export {};
@@ -0,0 +1 @@
1
+ export declare const SlntChildrenTabs: () => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,19 @@
1
+ import { PropsWithChildren } from "react";
2
+ import { DashMenuTreeItem } from "./Slnt.z";
3
+ export type SLNTProps = {
4
+ menuNode?: DashMenuTreeItem;
5
+ };
6
+ export interface SlntState extends SLNTProps {
7
+ }
8
+ export declare const slntContext: import("react").Context<(Omit<import("zustand").StoreApi<SlntState>, "setState"> & {
9
+ setState(nextStateOrUpdater: SlntState | Partial<SlntState> | ((state: import("immer").WritableDraft<SlntState>) => void), shouldReplace?: boolean | undefined): void;
10
+ }) | null>;
11
+ type ModalProviderProps = React.PropsWithChildren<SLNTProps>;
12
+ export declare const MenuTreeProvider: (props: ModalProviderProps) => import("react/jsx-runtime").JSX.Element;
13
+ export declare const DEFAULT_USE_SHALLOW = true;
14
+ export declare function useMenuTreeStore(): SlntState;
15
+ export declare function useMenuTreeStore<T>(selector: (state: SlntState) => T): T;
16
+ export declare const SlntTreeNode: (props: {
17
+ treeData?: DashMenuTreeItem;
18
+ } & PropsWithChildren) => import("react/jsx-runtime").JSX.Element;
19
+ export {};
File without changes
@@ -0,0 +1,5 @@
1
+ export declare const DebugValue: (props: {
2
+ title?: string;
3
+ data: any;
4
+ className?: string;
5
+ }) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,2 @@
1
+ export declare const HOTKEY_Debug = "alt+.";
2
+ export declare const DevTools: () => import("react/jsx-runtime").JSX.Element | null;
@@ -0,0 +1,14 @@
1
+ import { VariantProps } from "class-variance-authority";
2
+ import Link from "next/link";
3
+ import React, { ComponentProps } from "react";
4
+ import { buttonVariants } from "../ui/button";
5
+ export interface TMtLinkProps extends ComponentProps<typeof Link>, VariantProps<typeof buttonVariants> {
6
+ asChild?: boolean;
7
+ }
8
+ export declare const MtLink: React.ForwardRefExoticComponent<Omit<TMtLinkProps, "ref"> & React.RefAttributes<HTMLAnchorElement>>;
9
+ type ExternalLinkProps = ComponentProps<"a">;
10
+ interface TExternalLink extends ExternalLinkProps {
11
+ children?: React.ReactNode;
12
+ }
13
+ export declare function MtExternalLink({ children, className, ...props }: TExternalLink): import("react/jsx-runtime").JSX.Element;
14
+ export {};
@@ -0,0 +1 @@
1
+ export default function PipExamplePage(): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,28 @@
1
+ import { ReactNode } from "react";
2
+ export type ReactDocumentPictureInPictureForwardRefType = {
3
+ window: () => Window | undefined;
4
+ isOpen: boolean;
5
+ close: () => void;
6
+ };
7
+ export declare enum FeatureUnavailableReasonEnum {
8
+ USING_UNSECURE_PROTOCOL = "USING_UNSECURE_PROTOCOL",
9
+ API_NOT_SUPPORTED = "API_NOT_SUPPORTED"
10
+ }
11
+ export type ReactDocumentPictureInPicturePropsType = {
12
+ width?: string | number;
13
+ height?: string | number;
14
+ shareStyles?: boolean;
15
+ onOpen?: () => void;
16
+ onClose?: () => void;
17
+ onResize?: (width: number, height: number) => void;
18
+ featureUnavailableRenderer?: ReactNode | ((reason: FeatureUnavailableReasonEnum) => ReactNode);
19
+ buttonRenderer?: ReactNode | ((props: {
20
+ open: () => void;
21
+ close: () => void;
22
+ toggle: () => void;
23
+ isOpen: boolean;
24
+ }) => ReactNode);
25
+ children?: ReactNode;
26
+ };
27
+ declare const ReactDocumentPictureInPicture: import("react").ForwardRefExoticComponent<ReactDocumentPictureInPicturePropsType & import("react").RefAttributes<ReactDocumentPictureInPictureForwardRefType>>;
28
+ export default ReactDocumentPictureInPicture;
@@ -0,0 +1,6 @@
1
+ export declare const CodeBlock: ({ ...props }: {
2
+ [x: string]: any;
3
+ }) => import("react/jsx-runtime").JSX.Element;
4
+ export declare const Pre: ({ ...props }: {
5
+ [x: string]: any;
6
+ }) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,4 @@
1
+ declare const MarkdownToolbar: ({ feedElement }: {
2
+ feedElement: (syntax: string) => void;
3
+ }) => import("react/jsx-runtime").JSX.Element;
4
+ export default MarkdownToolbar;
@@ -0,0 +1 @@
1
+ export declare const ReactMarkdownExample: () => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,4 @@
1
+ import type { SchemaForm } from "./schema-form.z";
2
+ export declare const SchemaFormFieldsRender: (props: {
3
+ schema: SchemaForm;
4
+ }) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,12 @@
1
+ import type { MaybePromise } from "../../types/common";
2
+ import type { SchemaForm } from "./schema-form.z";
3
+ type SchemaFormViewVaranit = "auto" | "modal" | "card";
4
+ export declare const SchemaFormView: (props: {
5
+ formSchema?: SchemaForm;
6
+ defaultValues?: any;
7
+ onSubmit: (values: any) => MaybePromise<void>;
8
+ onCancel?: () => void;
9
+ isLoading?: boolean;
10
+ variants?: SchemaFormViewVaranit;
11
+ }) => import("react/jsx-runtime").JSX.Element;
12
+ export {};
@@ -0,0 +1,90 @@
1
+ import { z } from "zod";
2
+ export declare const schemaFieldValueType: z.ZodEnum<["string", "number", "date", "email"]>;
3
+ export declare const schemaField: z.ZodObject<{
4
+ name: z.ZodString;
5
+ label: z.ZodOptional<z.ZodString>;
6
+ type: z.ZodOptional<z.ZodString>;
7
+ valueType: z.ZodOptional<z.ZodEnum<["string", "number", "date", "email"]>>;
8
+ defaultValue: z.ZodOptional<z.ZodAny>;
9
+ placeholder: z.ZodOptional<z.ZodString>;
10
+ description: z.ZodOptional<z.ZodString>;
11
+ }, "strip", z.ZodTypeAny, {
12
+ name: string;
13
+ type?: string | undefined;
14
+ label?: string | undefined;
15
+ defaultValue?: any;
16
+ placeholder?: string | undefined;
17
+ valueType?: "string" | "number" | "email" | "date" | undefined;
18
+ description?: string | undefined;
19
+ }, {
20
+ name: string;
21
+ type?: string | undefined;
22
+ label?: string | undefined;
23
+ defaultValue?: any;
24
+ placeholder?: string | undefined;
25
+ valueType?: "string" | "number" | "email" | "date" | undefined;
26
+ description?: string | undefined;
27
+ }>;
28
+ export declare const schemaFormSchema: z.ZodObject<{
29
+ title: z.ZodOptional<z.ZodString>;
30
+ description: z.ZodOptional<z.ZodString>;
31
+ action: z.ZodOptional<z.ZodString>;
32
+ fields: z.ZodArray<z.ZodObject<{
33
+ name: z.ZodString;
34
+ label: z.ZodOptional<z.ZodString>;
35
+ type: z.ZodOptional<z.ZodString>;
36
+ valueType: z.ZodOptional<z.ZodEnum<["string", "number", "date", "email"]>>;
37
+ defaultValue: z.ZodOptional<z.ZodAny>;
38
+ placeholder: z.ZodOptional<z.ZodString>;
39
+ description: z.ZodOptional<z.ZodString>;
40
+ }, "strip", z.ZodTypeAny, {
41
+ name: string;
42
+ type?: string | undefined;
43
+ label?: string | undefined;
44
+ defaultValue?: any;
45
+ placeholder?: string | undefined;
46
+ valueType?: "string" | "number" | "email" | "date" | undefined;
47
+ description?: string | undefined;
48
+ }, {
49
+ name: string;
50
+ type?: string | undefined;
51
+ label?: string | undefined;
52
+ defaultValue?: any;
53
+ placeholder?: string | undefined;
54
+ valueType?: "string" | "number" | "email" | "date" | undefined;
55
+ description?: string | undefined;
56
+ }>, "many">;
57
+ loadingDetailDataProcedure: z.ZodOptional<z.ZodString>;
58
+ loadingDetailDataParams: z.ZodOptional<z.ZodAny>;
59
+ }, "strip", z.ZodTypeAny, {
60
+ fields: {
61
+ name: string;
62
+ type?: string | undefined;
63
+ label?: string | undefined;
64
+ defaultValue?: any;
65
+ placeholder?: string | undefined;
66
+ valueType?: "string" | "number" | "email" | "date" | undefined;
67
+ description?: string | undefined;
68
+ }[];
69
+ title?: string | undefined;
70
+ action?: string | undefined;
71
+ description?: string | undefined;
72
+ loadingDetailDataProcedure?: string | undefined;
73
+ loadingDetailDataParams?: any;
74
+ }, {
75
+ fields: {
76
+ name: string;
77
+ type?: string | undefined;
78
+ label?: string | undefined;
79
+ defaultValue?: any;
80
+ placeholder?: string | undefined;
81
+ valueType?: "string" | "number" | "email" | "date" | undefined;
82
+ description?: string | undefined;
83
+ }[];
84
+ title?: string | undefined;
85
+ action?: string | undefined;
86
+ description?: string | undefined;
87
+ loadingDetailDataProcedure?: string | undefined;
88
+ loadingDetailDataParams?: any;
89
+ }>;
90
+ export type SchemaForm = z.infer<typeof schemaFormSchema>;
@@ -0,0 +1,4 @@
1
+ import { type useReactTable } from "@tanstack/react-table";
2
+ export declare function SimpleTable<T = any>(props: {
3
+ table: ReturnType<typeof useReactTable<T>>;
4
+ }): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,2 @@
1
+ import { CellContext } from "@tanstack/react-table";
2
+ export declare const ExpenderCell: (info: CellContext<any, any>) => import("react/jsx-runtime").JSX.Element | "🔵";
@@ -0,0 +1,12 @@
1
+ import { CellContext } from "@tanstack/react-table";
2
+ export declare const SelectCell: (info: CellContext<any, any>) => import("react/jsx-runtime").JSX.Element;
3
+ interface SelectCellItem {
4
+ label: string;
5
+ value: string;
6
+ }
7
+ interface NewSelectCellOptions {
8
+ placeholder?: string;
9
+ items: SelectCellItem[];
10
+ }
11
+ export declare const NewSelectCell: ({ placeholder, items }: NewSelectCellOptions) => (_info: CellContext<any, any>) => import("react/jsx-runtime").JSX.Element;
12
+ export {};
@@ -0,0 +1,8 @@
1
+ import { CellContext } from "@tanstack/react-table";
2
+ interface NewTextCellOptions {
3
+ popup?: boolean;
4
+ enableEdit?: boolean;
5
+ placeholder?: string;
6
+ }
7
+ export declare const NewTextCell: ({ enableEdit, placeholder, popup }: NewTextCellOptions) => (info: CellContext<any, any>) => import("react/jsx-runtime").JSX.Element;
8
+ export {};
@@ -0,0 +1,12 @@
1
+ import { CellContext } from "@tanstack/react-table";
2
+ export declare const ViewLinkCell: (info: CellContext<any, any>) => import("react/jsx-runtime").JSX.Element;
3
+ interface SelectCellItem {
4
+ label: string;
5
+ value: string;
6
+ }
7
+ interface NewSelectCellOptions {
8
+ placeholder?: string;
9
+ items: SelectCellItem[];
10
+ }
11
+ export declare const NewSelectCell: ({ placeholder, items }: NewSelectCellOptions) => (info: CellContext<any, any>) => import("react/jsx-runtime").JSX.Element;
12
+ export {};
@@ -0,0 +1,6 @@
1
+ import { ReactNode } from "react";
2
+ interface CellWrapperProps {
3
+ children: ReactNode;
4
+ }
5
+ export declare const CellWrapper: ({ children }: CellWrapperProps) => import("react/jsx-runtime").JSX.Element;
6
+ export {};
@@ -0,0 +1,2 @@
1
+ import { CellContext } from "@tanstack/react-table";
2
+ export declare const NumberCell: (info: CellContext<any, any>) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,2 @@
1
+ import { CellContext } from "@tanstack/react-table";
2
+ export declare const StringCell: (info: CellContext<any, any>) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,6 @@
1
+ import type { Table } from "@tanstack/react-table";
2
+ interface DataTablePaginationProps<TData> {
3
+ table: Table<TData>;
4
+ }
5
+ export declare function DataTablePagination<TData>({ table }: DataTablePaginationProps<TData>): import("react/jsx-runtime").JSX.Element;
6
+ export {};
@@ -0,0 +1,6 @@
1
+ import type { Table } from "@tanstack/react-table";
2
+ interface DataTableViewOptionsProps<TData> {
3
+ table: Table<TData>;
4
+ }
5
+ export declare function DataTableViewOptions<TData>({ table }: DataTableViewOptionsProps<TData>): import("react/jsx-runtime").JSX.Element;
6
+ export {};
@@ -0,0 +1,12 @@
1
+ import { UseMutationResult } from "@tanstack/react-query";
2
+ interface ViewAction {
3
+ label: string;
4
+ link: string;
5
+ }
6
+ export interface DataViewOptions {
7
+ listActions?: ViewAction[];
8
+ rowActions?: ViewAction[];
9
+ updateMutation?: UseMutationResult;
10
+ createNewItem?: (input: any) => any;
11
+ }
12
+ export {};
@@ -0,0 +1 @@
1
+ export declare function DataTableDemo1(): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,4 @@
1
+ import type { HeaderContext } from "@tanstack/react-table";
2
+ import type { DataTableColumnHeaderProps } from "../types";
3
+ export declare function SimpleHeader<TData = any, TValue = unknown>(props: HeaderContext<TData, TValue>): import("react/jsx-runtime").JSX.Element;
4
+ export declare function SimpleHeaderRender<TData, TValue>({ column, title, className, }: DataTableColumnHeaderProps<TData, TValue>): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,5 @@
1
+ import type { HeaderContext } from "@tanstack/react-table";
2
+ import type { TableViewColumn } from "../table.z";
3
+ export declare const TableHeader: (props: {
4
+ columnConfig: TableViewColumn;
5
+ } & HeaderContext<Record<string, unknown>, unknown>) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,189 @@
1
+ import * as z from "zod";
2
+ export declare const tableHeader: z.ZodObject<{
3
+ type: z.ZodOptional<z.ZodString>;
4
+ label: z.ZodString;
5
+ }, "strip", z.ZodTypeAny, {
6
+ label: string;
7
+ type?: string | undefined;
8
+ }, {
9
+ label: string;
10
+ type?: string | undefined;
11
+ }>;
12
+ export type TableHeaderConfig = z.infer<typeof tableHeader>;
13
+ export declare const tableCell: z.ZodObject<{
14
+ type: z.ZodOptional<z.ZodString>;
15
+ props: z.ZodOptional<z.ZodAny>;
16
+ }, "strip", z.ZodTypeAny, {
17
+ type?: string | undefined;
18
+ props?: any;
19
+ }, {
20
+ type?: string | undefined;
21
+ props?: any;
22
+ }>;
23
+ export type tableCell = z.infer<typeof tableCell>;
24
+ export declare const tableViewColumns: z.ZodObject<{
25
+ id: z.ZodOptional<z.ZodString>;
26
+ accessorKey: z.ZodOptional<z.ZodString>;
27
+ label: z.ZodString;
28
+ cell: z.ZodOptional<z.ZodObject<{
29
+ type: z.ZodOptional<z.ZodString>;
30
+ props: z.ZodOptional<z.ZodAny>;
31
+ }, "strip", z.ZodTypeAny, {
32
+ type?: string | undefined;
33
+ props?: any;
34
+ }, {
35
+ type?: string | undefined;
36
+ props?: any;
37
+ }>>;
38
+ header: z.ZodOptional<z.ZodObject<{
39
+ type: z.ZodOptional<z.ZodString>;
40
+ label: z.ZodString;
41
+ }, "strip", z.ZodTypeAny, {
42
+ label: string;
43
+ type?: string | undefined;
44
+ }, {
45
+ label: string;
46
+ type?: string | undefined;
47
+ }>>;
48
+ enableSorting: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
49
+ enableHiding: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
50
+ }, "strip", z.ZodTypeAny, {
51
+ label: string;
52
+ header?: {
53
+ label: string;
54
+ type?: string | undefined;
55
+ } | undefined;
56
+ id?: string | undefined;
57
+ cell?: {
58
+ type?: string | undefined;
59
+ props?: any;
60
+ } | undefined;
61
+ enableHiding?: boolean | undefined;
62
+ enableSorting?: boolean | undefined;
63
+ accessorKey?: string | undefined;
64
+ }, {
65
+ label: string;
66
+ header?: {
67
+ label: string;
68
+ type?: string | undefined;
69
+ } | undefined;
70
+ id?: string | undefined;
71
+ cell?: {
72
+ type?: string | undefined;
73
+ props?: any;
74
+ } | undefined;
75
+ enableHiding?: boolean | undefined;
76
+ enableSorting?: boolean | undefined;
77
+ accessorKey?: string | undefined;
78
+ }>;
79
+ export type TableViewColumn = z.infer<typeof tableViewColumns>;
80
+ export declare const tableViewPaginate: z.ZodObject<{
81
+ enabled: z.ZodOptional<z.ZodBoolean>;
82
+ }, "strip", z.ZodTypeAny, {
83
+ enabled?: boolean | undefined;
84
+ }, {
85
+ enabled?: boolean | undefined;
86
+ }>;
87
+ export declare const tableViewConfig: z.ZodObject<{
88
+ columns: z.ZodArray<z.ZodObject<{
89
+ id: z.ZodOptional<z.ZodString>;
90
+ accessorKey: z.ZodOptional<z.ZodString>;
91
+ label: z.ZodString;
92
+ cell: z.ZodOptional<z.ZodObject<{
93
+ type: z.ZodOptional<z.ZodString>;
94
+ props: z.ZodOptional<z.ZodAny>;
95
+ }, "strip", z.ZodTypeAny, {
96
+ type?: string | undefined;
97
+ props?: any;
98
+ }, {
99
+ type?: string | undefined;
100
+ props?: any;
101
+ }>>;
102
+ header: z.ZodOptional<z.ZodObject<{
103
+ type: z.ZodOptional<z.ZodString>;
104
+ label: z.ZodString;
105
+ }, "strip", z.ZodTypeAny, {
106
+ label: string;
107
+ type?: string | undefined;
108
+ }, {
109
+ label: string;
110
+ type?: string | undefined;
111
+ }>>;
112
+ enableSorting: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
113
+ enableHiding: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
114
+ }, "strip", z.ZodTypeAny, {
115
+ label: string;
116
+ header?: {
117
+ label: string;
118
+ type?: string | undefined;
119
+ } | undefined;
120
+ id?: string | undefined;
121
+ cell?: {
122
+ type?: string | undefined;
123
+ props?: any;
124
+ } | undefined;
125
+ enableHiding?: boolean | undefined;
126
+ enableSorting?: boolean | undefined;
127
+ accessorKey?: string | undefined;
128
+ }, {
129
+ label: string;
130
+ header?: {
131
+ label: string;
132
+ type?: string | undefined;
133
+ } | undefined;
134
+ id?: string | undefined;
135
+ cell?: {
136
+ type?: string | undefined;
137
+ props?: any;
138
+ } | undefined;
139
+ enableHiding?: boolean | undefined;
140
+ enableSorting?: boolean | undefined;
141
+ accessorKey?: string | undefined;
142
+ }>, "many">;
143
+ paginate: z.ZodObject<{
144
+ enabled: z.ZodOptional<z.ZodBoolean>;
145
+ }, "strip", z.ZodTypeAny, {
146
+ enabled?: boolean | undefined;
147
+ }, {
148
+ enabled?: boolean | undefined;
149
+ }>;
150
+ }, "strip", z.ZodTypeAny, {
151
+ columns: {
152
+ label: string;
153
+ header?: {
154
+ label: string;
155
+ type?: string | undefined;
156
+ } | undefined;
157
+ id?: string | undefined;
158
+ cell?: {
159
+ type?: string | undefined;
160
+ props?: any;
161
+ } | undefined;
162
+ enableHiding?: boolean | undefined;
163
+ enableSorting?: boolean | undefined;
164
+ accessorKey?: string | undefined;
165
+ }[];
166
+ paginate: {
167
+ enabled?: boolean | undefined;
168
+ };
169
+ }, {
170
+ columns: {
171
+ label: string;
172
+ header?: {
173
+ label: string;
174
+ type?: string | undefined;
175
+ } | undefined;
176
+ id?: string | undefined;
177
+ cell?: {
178
+ type?: string | undefined;
179
+ props?: any;
180
+ } | undefined;
181
+ enableHiding?: boolean | undefined;
182
+ enableSorting?: boolean | undefined;
183
+ accessorKey?: string | undefined;
184
+ }[];
185
+ paginate: {
186
+ enabled?: boolean | undefined;
187
+ };
188
+ }>;
189
+ export type TableViewConfig = z.infer<typeof tableViewConfig>;
@@ -0,0 +1 @@
1
+ export declare const TailwindIndicator: () => import("react/jsx-runtime").JSX.Element | null;
@@ -0,0 +1 @@
1
+ export declare function ModeToggle(): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1 @@
1
+ export declare function ThemeToggle(): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1 @@
1
+ export declare const MenuBar: () => import("react/jsx-runtime").JSX.Element | null;
@@ -0,0 +1,5 @@
1
+ import { type EditorEvents } from "@tiptap/react";
2
+ export declare const TiptapEditorV1: (props: {
3
+ value?: string;
4
+ onUpdate?: (props: EditorEvents["update"]) => void;
5
+ }) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1 @@
1
+ export default function TiptapDemo1(): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1 @@
1
+ export declare const DemoTipTap: () => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,4 @@
1
+ import { ReactNode } from 'react';
2
+ export declare function BigCode({ children }: {
3
+ children?: ReactNode;
4
+ }): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,3 @@
1
+ export default function Page(props: {
2
+ params: any;
3
+ }): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1 @@
1
+ export declare function DemoReactUse(): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,3 @@
1
+ export declare const fakeFetchUser: (userId: string, noError?: boolean) => Promise<unknown>;
2
+ export declare const fetchPosts: () => any;
3
+ export declare const fetchPost: (postId: string) => any;
@@ -0,0 +1 @@
1
+ export declare const LongListExample: () => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1 @@
1
+ export declare function ScrollAreaDemo(): import("react/jsx-runtime").JSX.Element;