mtxuilib 0.1.12 → 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,8 @@
1
+ /// <reference types="react" />
2
+ interface HeadlineProps {
3
+ heading: string;
4
+ text?: string;
5
+ children?: React.ReactNode;
6
+ }
7
+ export declare function Headline({ heading, text, children }: HeadlineProps): import("react/jsx-runtime").JSX.Element;
8
+ export {};
@@ -0,0 +1,4 @@
1
+ import React from "react";
2
+ import type { InputProps } from "../types";
3
+ declare const InputField: React.ForwardRefExoticComponent<InputProps & React.RefAttributes<HTMLInputElement>>;
4
+ export { InputField };
@@ -0,0 +1,6 @@
1
+ import type React from "react";
2
+ interface RichTextInputProps extends Omit<React.InputHTMLAttributes<HTMLInputElement>, "name"> {
3
+ name: string;
4
+ }
5
+ export declare const RichTextInput: (props: RichTextInputProps) => import("react/jsx-runtime").JSX.Element;
6
+ export {};
@@ -0,0 +1,2 @@
1
+ declare const SingleFileUploadForm: () => import("react/jsx-runtime").JSX.Element;
2
+ export default SingleFileUploadForm;
@@ -0,0 +1,4 @@
1
+ import React from "react";
2
+ import type { InputProps } from "../types";
3
+ declare const TextAreaField: React.ForwardRefExoticComponent<InputProps & React.RefAttributes<HTMLInputElement>>;
4
+ export { TextAreaField };
@@ -0,0 +1,8 @@
1
+ import React from 'react';
2
+ interface TextFileInputProps extends Omit<React.InputHTMLAttributes<HTMLInputElement>, 'name'> {
3
+ onOpenFile?: (data: any) => void;
4
+ asChild?: boolean;
5
+ name: string;
6
+ }
7
+ export declare const TextFileInput: ({ onOpenFile, name, asChild, ...props }: TextFileInputProps) => import("react/jsx-runtime").JSX.Element;
8
+ export {};
@@ -0,0 +1,8 @@
1
+ import React from "react";
2
+ export interface InputProps extends React.InputHTMLAttributes<HTMLInputElement> {
3
+ name: string;
4
+ label?: string;
5
+ kind?: string;
6
+ }
7
+ declare const InputSelectField: React.ForwardRefExoticComponent<InputProps & React.RefAttributes<HTMLInputElement>>;
8
+ export { InputSelectField };
@@ -0,0 +1,2 @@
1
+ import type { InputProps } from "../types";
2
+ export declare const SearchInput: (props: InputProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,2 @@
1
+ import { InputProps } from "../../ui/input";
2
+ export declare const TaskStatusInput: (props: InputProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,2 @@
1
+ import { InputProps } from "../../ui/input";
2
+ export declare const UrlsInput: (props: InputProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,2 @@
1
+ /// <reference types="react" />
2
+ export declare const MtInput: import("react").ForwardRefExoticComponent<import("../../ui/input").InputProps & import("react").RefAttributes<HTMLInputElement>>;
@@ -0,0 +1,30 @@
1
+ /// <reference types="react" />
2
+ import { type Renderable } from "mtxuilib/lib/render";
3
+ import { type StateCreator } from "zustand/vanilla";
4
+ export type ModalSliceProps = {
5
+ open?: boolean;
6
+ };
7
+ export interface ModalSliceState extends ModalSliceProps {
8
+ _hasHydrated?: boolean;
9
+ setHasHydrated: (_hasHydrated: boolean) => void;
10
+ modalComp?: Renderable<unknown>;
11
+ openModal: (modalComp: Renderable<unknown>) => void;
12
+ setOpen: (open: boolean) => void;
13
+ }
14
+ export declare const createModalSlice: StateCreator<ModalSliceState, [], [], ModalSliceState>;
15
+ type MainState = ModalSliceState;
16
+ export declare const modalContext: import("react").Context<(Omit<Omit<import("zustand").StoreApi<ModalSliceState>, "setState"> & {
17
+ setState<A extends string | {
18
+ type: string;
19
+ }>(partial: ModalSliceState | Partial<ModalSliceState> | ((state: ModalSliceState) => ModalSliceState | Partial<ModalSliceState>), replace?: boolean | undefined, action?: A | undefined): void;
20
+ }, "setState"> & {
21
+ setState(nextStateOrUpdater: ModalSliceState | Partial<ModalSliceState> | ((state: import("immer").WritableDraft<ModalSliceState>) => void), shouldReplace?: boolean | undefined, action?: string | {
22
+ type: string;
23
+ } | undefined): void;
24
+ }) | null>;
25
+ type ModalProviderProps = React.PropsWithChildren<ModalSliceProps>;
26
+ export declare const ModalProvider: (props: ModalProviderProps) => import("react/jsx-runtime").JSX.Element;
27
+ export declare const DEFAULT_USE_SHALLOW = true;
28
+ export declare function useModal(): MainState;
29
+ export declare function useModal<T>(selector: (state: MainState) => T): T;
30
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,38 @@
1
+ import * as AccordionPrimitive from "@radix-ui/react-accordion";
2
+ import React, { ReactNode } from "react";
3
+ type TreeViewElement = {
4
+ id: string;
5
+ name: string;
6
+ isSelectable?: boolean;
7
+ children?: TreeViewElement[];
8
+ };
9
+ interface TreeViewComponentProps extends React.HTMLAttributes<HTMLDivElement> {
10
+ }
11
+ declare const Tree: React.ForwardRefExoticComponent<{
12
+ initialSelectedId?: string | undefined;
13
+ indicator?: boolean | undefined;
14
+ elements?: TreeViewElement[] | undefined;
15
+ initialExpendedItems?: string[] | undefined;
16
+ openIcon?: React.ReactNode;
17
+ closeIcon?: React.ReactNode;
18
+ } & TreeViewComponentProps & React.RefAttributes<HTMLDivElement>>;
19
+ interface FolderComponentProps extends React.ComponentPropsWithoutRef<typeof AccordionPrimitive.Item> {
20
+ }
21
+ declare const Folder: React.ForwardRefExoticComponent<{
22
+ expendedItems?: string[] | undefined;
23
+ element: ReactNode;
24
+ isSelectable?: boolean | undefined;
25
+ isSelect?: boolean | undefined;
26
+ } & FolderComponentProps & React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
27
+ declare const File: React.ForwardRefExoticComponent<{
28
+ value: string;
29
+ handleSelect?: ((id: string) => void) | undefined;
30
+ isSelectable?: boolean | undefined;
31
+ isSelect?: boolean | undefined;
32
+ fileIcon?: React.ReactNode;
33
+ } & Omit<AccordionPrimitive.AccordionTriggerProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
34
+ declare const CollapseButton: React.ForwardRefExoticComponent<{
35
+ elements: TreeViewElement[];
36
+ expandAll?: boolean | undefined;
37
+ } & React.HTMLAttributes<HTMLButtonElement> & React.RefAttributes<HTMLButtonElement>>;
38
+ export { Tree, Folder, File, CollapseButton, type TreeViewElement };
@@ -0,0 +1,24 @@
1
+ import React from "react";
2
+ import { TreeViewElement } from "./mt-tree-view-api";
3
+ interface TreeViewComponentProps extends React.HTMLAttributes<HTMLDivElement> {
4
+ }
5
+ type TreeViewProps = {
6
+ initialSelectedId?: string;
7
+ elements: TreeViewElement[];
8
+ indicator?: boolean;
9
+ } & ({
10
+ initialExpendedItems?: string[];
11
+ expandAll?: false;
12
+ } | {
13
+ initialExpendedItems?: undefined;
14
+ expandAll: true;
15
+ }) & TreeViewComponentProps;
16
+ export declare const TreeView: {
17
+ ({ elements, className, initialSelectedId, initialExpendedItems, expandAll, indicator, }: TreeViewProps): import("react/jsx-runtime").JSX.Element;
18
+ displayName: string;
19
+ };
20
+ export declare const TreeItem: React.ForwardRefExoticComponent<{
21
+ elements?: TreeViewElement[] | undefined;
22
+ indicator?: boolean | undefined;
23
+ } & React.HTMLAttributes<HTMLUListElement> & React.RefAttributes<HTMLUListElement>>;
24
+ export {};
@@ -0,0 +1,7 @@
1
+ interface TBountyListPagination {
2
+ itemCount: number;
3
+ pageSize: number;
4
+ baseUrl: string;
5
+ }
6
+ export declare function Pagination({ itemCount, pageSize, baseUrl, }: TBountyListPagination): import("react/jsx-runtime").JSX.Element;
7
+ export {};
@@ -0,0 +1 @@
1
+ export default function NewLoading(): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1 @@
1
+ export declare function SkeletonInput(): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1 @@
1
+ export declare const SkeletonLayout: () => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,3 @@
1
+ import { type PropsWithChildren } from "react";
2
+ export declare function SkeletonLoading(): import("react/jsx-runtime").JSX.Element;
3
+ export declare function SuspenseWithLoading(props: PropsWithChildren): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,3 @@
1
+ export declare const SkeletonCard: ({ isLoading }: {
2
+ isLoading?: boolean;
3
+ }) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1 @@
1
+ export declare function ItemSkeleton(): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,6 @@
1
+ import { ReactNode } from "react";
2
+ interface SkeletonFullProps {
3
+ children?: ReactNode;
4
+ }
5
+ export declare const SkeletonDemo: ({ children }: SkeletonFullProps) => import("react/jsx-runtime").JSX.Element;
6
+ export {};
@@ -0,0 +1,5 @@
1
+ import type * as React from "react";
2
+ interface SkeletonProps extends React.HTMLAttributes<HTMLDivElement> {
3
+ }
4
+ export declare function Skeleton({ className, ...props }: SkeletonProps): import("react/jsx-runtime").JSX.Element;
5
+ export {};
@@ -0,0 +1,5 @@
1
+ /// <reference types="react" />
2
+ export interface InputProps extends React.InputHTMLAttributes<HTMLInputElement> {
3
+ label?: string;
4
+ name: string;
5
+ }
@@ -0,0 +1,17 @@
1
+ import * as AlertDialogPrimitives from "@radix-ui/react-alert-dialog";
2
+ import * as React from "react";
3
+ type AlertProps = AlertDialogPrimitives.AlertDialogProps;
4
+ export declare function Alert({ ...props }: AlertProps): import("react/jsx-runtime").JSX.Element;
5
+ export declare namespace Alert {
6
+ var Trigger: React.ForwardRefExoticComponent<AlertDialogPrimitives.AlertDialogTriggerProps & React.RefAttributes<HTMLButtonElement>>;
7
+ var Portal: React.FC<AlertDialogPrimitives.AlertDialogPortalProps>;
8
+ var Content: React.ForwardRefExoticComponent<AlertDialogPrimitives.AlertDialogContentProps & React.RefAttributes<HTMLDivElement>>;
9
+ var Header: ({ className, ...props }: AlertHeaderProps) => import("react/jsx-runtime").JSX.Element;
10
+ var Title: React.ForwardRefExoticComponent<AlertDialogPrimitives.AlertDialogTitleProps & React.RefAttributes<HTMLHeadingElement>>;
11
+ var Description: React.ForwardRefExoticComponent<AlertDialogPrimitives.AlertDialogDescriptionProps & React.RefAttributes<HTMLParagraphElement>>;
12
+ var Footer: ({ className, ...props }: AlertHeaderProps) => import("react/jsx-runtime").JSX.Element;
13
+ var Cancel: React.ForwardRefExoticComponent<AlertDialogPrimitives.AlertDialogCancelProps & React.RefAttributes<HTMLButtonElement>>;
14
+ var Action: React.ForwardRefExoticComponent<AlertDialogPrimitives.AlertDialogActionProps & React.RefAttributes<HTMLButtonElement>>;
15
+ }
16
+ type AlertHeaderProps = React.HTMLAttributes<HTMLDivElement>;
17
+ export {};
@@ -0,0 +1,13 @@
1
+ import { type VariantProps } from "class-variance-authority";
2
+ import type { ComponentProps } from "react";
3
+ type ButtonProps = ComponentProps<"button">;
4
+ declare const buttonStyles: (props?: ({
5
+ intent?: "primary" | "secondary" | "outline" | "text" | "tertiary" | "danger" | null | undefined;
6
+ fullWidth?: boolean | null | undefined;
7
+ size?: "small" | "noPadding" | "regular" | null | undefined;
8
+ borderRadius?: "lg" | "full" | null | undefined;
9
+ } & import("class-variance-authority/types").ClassProp) | undefined) => string;
10
+ export interface TButtonProps extends ButtonProps, VariantProps<typeof buttonStyles> {
11
+ }
12
+ export declare function Button({ intent, borderRadius, size, fullWidth, className, ...props }: TButtonProps): import("react/jsx-runtime").JSX.Element;
13
+ export {};
@@ -0,0 +1,23 @@
1
+ import type * as React from "react";
2
+ interface CardProps extends React.HTMLAttributes<HTMLDivElement> {
3
+ }
4
+ export declare function Card({ className, ...props }: CardProps): import("react/jsx-runtime").JSX.Element;
5
+ export declare namespace Card {
6
+ var Header: ({ className, ...props }: CardHeaderProps) => import("react/jsx-runtime").JSX.Element;
7
+ var Content: ({ className, ...props }: CardContentProps) => import("react/jsx-runtime").JSX.Element;
8
+ var Footer: ({ className, ...props }: CardFooterProps) => import("react/jsx-runtime").JSX.Element;
9
+ var Title: ({ className, ...props }: CardTitleProps) => import("react/jsx-runtime").JSX.Element;
10
+ var Description: ({ className, ...props }: CardDescriptionProps) => import("react/jsx-runtime").JSX.Element;
11
+ var Skeleton: () => import("react/jsx-runtime").JSX.Element;
12
+ }
13
+ interface CardHeaderProps extends React.HTMLAttributes<HTMLDivElement> {
14
+ }
15
+ interface CardContentProps extends React.HTMLAttributes<HTMLDivElement> {
16
+ }
17
+ interface CardFooterProps extends React.HTMLAttributes<HTMLDivElement> {
18
+ }
19
+ interface CardTitleProps extends React.HTMLAttributes<HTMLHeadingElement> {
20
+ }
21
+ interface CardDescriptionProps extends React.HTMLAttributes<HTMLParagraphElement> {
22
+ }
23
+ export {};
@@ -0,0 +1,11 @@
1
+ import { type VariantProps } from "class-variance-authority";
2
+ import type { ComponentProps } from "react";
3
+ type ChipProps = ComponentProps<"span">;
4
+ declare const chipStyles: (props?: ({
5
+ intent?: "default" | "green" | "purple" | "rose" | null | undefined;
6
+ size?: "small" | "regular" | null | undefined;
7
+ } & import("class-variance-authority/types").ClassProp) | undefined) => string;
8
+ export interface TChipProps extends ChipProps, VariantProps<typeof chipStyles> {
9
+ }
10
+ export declare function Chip({ intent, size, className, ...props }: TChipProps): import("react/jsx-runtime").JSX.Element;
11
+ export {};
@@ -0,0 +1,12 @@
1
+ import * as DropdownMenuPrimitive from "@radix-ui/react-dropdown-menu";
2
+ import * as React from "react";
3
+ type DropdownMenuProps = DropdownMenuPrimitive.DropdownMenuProps;
4
+ export declare function DropdownMenu({ ...props }: DropdownMenuProps): import("react/jsx-runtime").JSX.Element;
5
+ export declare namespace DropdownMenu {
6
+ var Trigger: React.ForwardRefExoticComponent<DropdownMenuPrimitive.DropdownMenuTriggerProps & React.RefAttributes<HTMLButtonElement>>;
7
+ var Portal: React.FC<DropdownMenuPrimitive.DropdownMenuPortalProps>;
8
+ var Content: React.ForwardRefExoticComponent<Pick<import("@radix-ui/react-menu").MenuContentProps & React.RefAttributes<HTMLDivElement>, "prefix" | "translate" | "content" | "popover" | "style" | "slot" | "title" | "className" | "asChild" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "autoFocus" | "contentEditable" | "contextMenu" | "draggable" | "hidden" | "id" | "lang" | "nonce" | "spellCheck" | "tabIndex" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "property" | "rel" | "resource" | "rev" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "popoverTargetAction" | "popoverTarget" | "onToggle" | "onBeforeToggle" | "inert" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-braillelabel" | "aria-brailleroledescription" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colindextext" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-description" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowindextext" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "children" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onResize" | "onResizeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerLeave" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "onTransitionCancel" | "onTransitionCancelCapture" | "onTransitionRun" | "onTransitionRunCapture" | "onTransitionStart" | "onTransitionStartCapture" | "key" | "forceMount" | "loop" | "align" | "onEscapeKeyDown" | "onPointerDownOutside" | "onFocusOutside" | "onInteractOutside" | "onCloseAutoFocus" | "side" | "sideOffset" | "alignOffset" | "arrowPadding" | "collisionBoundary" | "collisionPadding" | "sticky" | "hideWhenDetached" | "avoidCollisions" | "onEntryFocus" | "updatePositionStrategy"> & React.RefAttributes<HTMLDivElement>>;
9
+ var Item: React.ForwardRefExoticComponent<DropdownMenuPrimitive.DropdownMenuItemProps & React.RefAttributes<HTMLDivElement>>;
10
+ var Separator: React.ForwardRefExoticComponent<DropdownMenuPrimitive.DropdownMenuSeparatorProps & React.RefAttributes<HTMLDivElement>>;
11
+ }
12
+ export {};
@@ -0,0 +1,7 @@
1
+ import type { ComponentProps } from "react";
2
+ type ExternalLinkProps = ComponentProps<"a">;
3
+ interface TExternalLink extends ExternalLinkProps {
4
+ children?: React.ReactNode;
5
+ }
6
+ export declare function ExternalLink({ children, className, ...props }: TExternalLink): import("react/jsx-runtime").JSX.Element;
7
+ export {};
@@ -0,0 +1,13 @@
1
+ import { type VariantProps } from "class-variance-authority";
2
+ import type { ComponentProps } from "react";
3
+ type InputProps = ComponentProps<"input">;
4
+ declare const inputStyles: (props?: ({
5
+ intent?: "primary" | "search" | null | undefined;
6
+ } & import("class-variance-authority/types").ClassProp) | undefined) => string;
7
+ export interface Props extends InputProps, VariantProps<typeof inputStyles> {
8
+ id: string;
9
+ label?: string;
10
+ isPending?: boolean;
11
+ }
12
+ export declare function Input({ intent, className, name, label, id, isPending, ...props }: Props): import("react/jsx-runtime").JSX.Element;
13
+ export {};
@@ -0,0 +1,7 @@
1
+ import type { ReactNode } from "react";
2
+ interface KeyValueProps extends React.HTMLAttributes<HTMLDivElement> {
3
+ label: string;
4
+ value: string | ReactNode;
5
+ }
6
+ export declare function KeyValue({ className, label, value, ...props }: KeyValueProps): import("react/jsx-runtime").JSX.Element;
7
+ export {};
@@ -0,0 +1 @@
1
+ export declare function MobileNavButton(): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,11 @@
1
+ import * as Dialog from "@radix-ui/react-dialog";
2
+ import * as React from "react";
3
+ type ModalProps = Dialog.DialogProps;
4
+ export declare function Modal({ ...props }: ModalProps): import("react/jsx-runtime").JSX.Element;
5
+ export declare namespace Modal {
6
+ var Trigger: React.ForwardRefExoticComponent<Dialog.DialogTriggerProps & React.RefAttributes<HTMLButtonElement>>;
7
+ var Portal: React.FC<Dialog.DialogPortalProps>;
8
+ var Title: React.ForwardRefExoticComponent<Dialog.DialogTitleProps & React.RefAttributes<HTMLDivElement>>;
9
+ var Content: React.ForwardRefExoticComponent<Dialog.DialogContentProps & React.RefAttributes<HTMLDivElement>>;
10
+ }
11
+ export {};
@@ -0,0 +1,12 @@
1
+ import { type VariantProps } from "class-variance-authority";
2
+ import type { ComponentProps } from "react";
3
+ type TextAreaProps = ComponentProps<"textarea">;
4
+ declare const textAreaStyles: (props?: ({
5
+ intent?: "primary" | null | undefined;
6
+ } & import("class-variance-authority/types").ClassProp) | undefined) => string;
7
+ export interface Props extends TextAreaProps, VariantProps<typeof textAreaStyles> {
8
+ id: string;
9
+ label?: string;
10
+ }
11
+ export declare function TextArea({ intent, id, name, label, ...props }: Props): import("react/jsx-runtime").JSX.Element;
12
+ export {};
@@ -0,0 +1,8 @@
1
+ import * as ToggleGroupPrimitive from "@radix-ui/react-toggle-group";
2
+ import * as React from "react";
3
+ type ToggleGroupProps = ToggleGroupPrimitive.ToggleGroupSingleProps;
4
+ export declare function ToggleGroup({ ...props }: ToggleGroupProps): import("react/jsx-runtime").JSX.Element;
5
+ export declare namespace ToggleGroup {
6
+ var Item: React.ForwardRefExoticComponent<ToggleGroupPrimitive.ToggleGroupItemProps & React.RefAttributes<HTMLButtonElement>>;
7
+ }
8
+ export {};
@@ -0,0 +1,6 @@
1
+ import "video.js/dist/video-js.css";
2
+ export declare const MtVideoPlayer: (props: {
3
+ videoSrc: string;
4
+ sourceType?: string;
5
+ autoplay?: boolean;
6
+ }) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,12 @@
1
+ import type { StaticImageData } from "next/image";
2
+ interface ModalVideoProps {
3
+ thumb: StaticImageData;
4
+ thumbWidth: number;
5
+ thumbHeight: number;
6
+ thumbAlt: string;
7
+ video: string;
8
+ videoWidth: number;
9
+ videoHeight: number;
10
+ }
11
+ export default function ModalVideo({ thumb, thumbWidth, thumbHeight, thumbAlt, video, videoWidth, videoHeight, }: ModalVideoProps): import("react/jsx-runtime").JSX.Element;
12
+ export {};
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "mtxuilib",
3
3
  "private": false,
4
- "version": "0.1.12",
4
+ "version": "0.1.13",
5
5
  "publishConfig": {
6
6
  "access": "public"
7
7
  },