mtxuilib 0.0.763 → 0.0.765
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.
- package/dist/browser/sw.min.js +1 -0
- package/dist/esm/common/DeleteComfirm.d.ts +20 -0
- package/dist/esm/common/DeleteComfirm.js +1 -0
- package/dist/esm/common/FullCenter.d.ts +2 -0
- package/dist/esm/common/FullCenter.js +1 -0
- package/dist/esm/common/GlobalSearch.d.ts +11 -0
- package/dist/esm/common/GlobalSearch.js +1 -0
- package/dist/esm/common/MtImage.d.ts +5 -0
- package/dist/esm/common/MtImage.js +1 -0
- package/dist/esm/common/MtProgressBar.d.ts +2 -0
- package/dist/esm/common/MtProgressBar.js +1 -0
- package/dist/esm/common/NotFoundGoBack.d.ts +2 -0
- package/dist/esm/common/NotFoundGoBack.js +1 -0
- package/dist/esm/common/SlntTree/Slnt.z.d.ts +28 -0
- package/dist/esm/common/SlntTree/Slnt.z.js +1 -0
- package/dist/esm/common/SlntTree/SlntChildrenTabs.d.ts +2 -0
- package/dist/esm/common/SlntTree/SlntChildrenTabs.js +1 -0
- package/dist/esm/common/SlntTree/SlntTreeNode.d.ts +19 -0
- package/dist/esm/common/SlntTree/SlntTreeNode.js +1 -0
- package/dist/esm/common/TrpcQuery.js +0 -0
- package/dist/esm/common/devtools/DebugValue.d.ts +6 -0
- package/dist/esm/common/devtools/DebugValue.js +1 -0
- package/dist/esm/common/devtools/DevTools.d.ts +3 -0
- package/dist/esm/common/devtools/DevTools.js +1 -0
- package/dist/esm/common/mtlink.d.ts +14 -0
- package/dist/esm/common/mtlink.js +1 -0
- package/dist/esm/common/pip/PipExamplePage.d.ts +2 -0
- package/dist/esm/common/pip/PipExamplePage.js +1 -0
- package/dist/esm/common/pip/ReactDocumentPictureInPicture.d.ts +28 -0
- package/dist/esm/common/pip/ReactDocumentPictureInPicture.js +1 -0
- package/dist/esm/common/pip/globals.d.js +0 -0
- package/dist/esm/common/react-markdown/Code.d.ts +7 -0
- package/dist/esm/common/react-markdown/Code.js +1 -0
- package/dist/esm/common/react-markdown/MarkdownToolbar.d.ts +5 -0
- package/dist/esm/common/react-markdown/MarkdownToolbar.js +1 -0
- package/dist/esm/common/react-markdown/ReactMarkdownExample.d.ts +2 -0
- package/dist/esm/common/react-markdown/ReactMarkdownExample.js +1 -0
- package/dist/esm/common/schema-form/SchemaFormFieldsRender.d.ts +5 -0
- package/dist/esm/common/schema-form/SchemaFormFieldsRender.js +1 -0
- package/dist/esm/common/schema-form/SchemaFormView.d.ts +13 -0
- package/dist/esm/common/schema-form/SchemaFormView.js +1 -0
- package/dist/esm/common/schema-form/schema-form.z.d.ts +90 -0
- package/dist/esm/common/schema-form/schema-form.z.js +1 -0
- package/dist/esm/common/table/SimpleTable.d.ts +5 -0
- package/dist/esm/common/table/SimpleTable.js +1 -0
- package/dist/esm/common/table/cells/ExpenderCell.d.ts +3 -0
- package/dist/esm/common/table/cells/ExpenderCell.js +1 -0
- package/dist/esm/common/table/cells/SelectCell.d.ts +13 -0
- package/dist/esm/common/table/cells/SelectCell.js +1 -0
- package/dist/esm/common/table/cells/Text.d.ts +9 -0
- package/dist/esm/common/table/cells/Text.js +1 -0
- package/dist/esm/common/table/cells/ViewLink.d.ts +13 -0
- package/dist/esm/common/table/cells/ViewLink.js +1 -0
- package/dist/esm/common/table/cells/container/cellWrapper.d.ts +6 -0
- package/dist/esm/common/table/cells/container/cellWrapper.js +1 -0
- package/dist/esm/common/table/cells/number.d.ts +3 -0
- package/dist/esm/common/table/cells/number.js +1 -0
- package/dist/esm/common/table/cells/string.d.ts +3 -0
- package/dist/esm/common/table/cells/string.js +1 -0
- package/dist/esm/common/table/data-table-pagination.d.ts +7 -0
- package/dist/esm/common/table/data-table-pagination.js +1 -0
- package/dist/esm/common/table/data-table-view-options.d.ts +7 -0
- package/dist/esm/common/table/data-table-view-options.js +1 -0
- package/dist/esm/common/table/datatable-view-options.d.ts +12 -0
- package/dist/esm/common/table/example/ExampleTable.d.ts +2 -0
- package/dist/esm/common/table/example/ExampleTable.js +1 -0
- package/dist/esm/common/table/header/SimpleHeader.d.ts +5 -0
- package/dist/esm/common/table/header/SimpleHeader.js +1 -0
- package/dist/esm/common/table/header/header.d.ts +6 -0
- package/dist/esm/common/table/header/header.js +1 -0
- package/dist/esm/common/table/table.z.d.ts +189 -0
- package/dist/esm/common/table/table.z.js +1 -0
- package/dist/esm/common/table/types.d.js +0 -0
- package/dist/esm/common/tailwind-indicator.d.ts +2 -0
- package/dist/esm/common/tailwind-indicator.js +1 -0
- package/dist/esm/common/theme/mode-toggle.d.ts +2 -0
- package/dist/esm/common/theme/mode-toggle.js +1 -0
- package/dist/esm/common/theme/theme-toggle.d.ts +2 -0
- package/dist/esm/common/theme/theme-toggle.js +1 -0
- package/dist/esm/common/tiptap/MenuBar.d.ts +2 -0
- package/dist/esm/common/tiptap/MenuBar.js +1 -0
- package/dist/esm/common/tiptap/TiptapEditor.d.ts +6 -0
- package/dist/esm/common/tiptap/TiptapEditor.js +1 -0
- package/dist/esm/common/tiptap/examples/Demo-Default.d.ts +2 -0
- package/dist/esm/common/tiptap/examples/Demo-Default.js +30 -0
- package/dist/esm/common/tiptap/examples/Demo-Tiptap.d.ts +2 -0
- package/dist/esm/common/tiptap/examples/Demo-Tiptap.js +1 -0
- package/dist/esm/demos/bigcode/BigCode.d.ts +4 -0
- package/dist/esm/demos/bigcode/BigCode.js +1 -0
- package/dist/esm/demos/condition-type/serialize.d.ts +4 -0
- package/dist/esm/demos/condition-type/serialize.js +1 -0
- package/dist/esm/demos/demo-react-use.d.ts +2 -0
- package/dist/esm/demos/demo-react-use.js +1 -0
- package/dist/esm/demos/lib.d.ts +3 -0
- package/dist/esm/demos/lib.js +1 -0
- package/dist/esm/demos/scrollarea/LongListDemo.d.ts +2 -0
- package/dist/esm/demos/scrollarea/LongListDemo.js +1 -0
- package/dist/esm/demos/scrollarea/ScrollAreaDemo.d.ts +2 -0
- package/dist/esm/demos/scrollarea/ScrollAreaDemo.js +1 -0
- package/dist/esm/demos/suspense-ssr/ExampleOg.d.ts +4 -0
- package/dist/esm/demos/suspense-ssr/ExampleOg.js +1 -0
- package/dist/esm/demos/suspense-ssr/ExamplePage.d.ts +3 -0
- package/dist/esm/demos/suspense-ssr/ExamplePage.js +1 -0
- package/dist/esm/demos/suspense-ssr/ExampleProviderProviders.d.ts +4 -0
- package/dist/esm/demos/suspense-ssr/ExampleProviderProviders.js +1 -0
- package/dist/esm/demos/suspense-ssr/ReadMe.d.ts +2 -0
- package/dist/esm/demos/suspense-ssr/ReadMe.js +1 -0
- package/dist/esm/demos/suspense-ssr/examplesPostDetail.d.ts +4 -0
- package/dist/esm/demos/suspense-ssr/examplesPostDetail.js +1 -0
- package/dist/esm/demos/suspense-ssr/examplesPosts.d.ts +2 -0
- package/dist/esm/demos/suspense-ssr/examplesPosts.js +1 -0
- package/dist/esm/emails/SubmissionAccepted.d.ts +5 -0
- package/dist/esm/emails/SubmissionAccepted.js +1 -0
- package/dist/esm/emails/SubmissionReceived.d.ts +6 -0
- package/dist/esm/emails/SubmissionReceived.js +1 -0
- package/dist/esm/emails/WelcomeEmail.d.ts +4 -0
- package/dist/esm/emails/WelcomeEmail.js +1 -0
- package/dist/esm/emails/components/BaseLayout.d.ts +8 -0
- package/dist/esm/emails/components/BaseLayout.js +85 -0
- package/dist/esm/emails/components/Button.d.ts +5 -0
- package/dist/esm/emails/components/Button.js +1 -0
- package/dist/esm/emails/components/Divider.d.ts +4 -0
- package/dist/esm/emails/components/Divider.js +1 -0
- package/dist/esm/emails/components/Footer.d.ts +5 -0
- package/dist/esm/emails/components/Footer.js +1 -0
- package/dist/esm/emails/components/Head.d.ts +2 -0
- package/dist/esm/emails/components/Head.js +95 -0
- package/dist/esm/emails/components/Header.d.ts +4 -0
- package/dist/esm/emails/components/Header.js +1 -0
- package/dist/esm/emails/components/Heading.d.ts +5 -0
- package/dist/esm/emails/components/Heading.js +1 -0
- package/dist/esm/emails/components/List.d.ts +7 -0
- package/dist/esm/emails/components/List.js +1 -0
- package/dist/esm/emails/components/Text.d.ts +7 -0
- package/dist/esm/emails/components/Text.js +1 -0
- package/dist/esm/emails/components/theme.d.ts +14 -0
- package/dist/esm/emails/components/theme.js +1 -0
- package/dist/esm/emails/index.d.ts +3 -0
- package/dist/esm/emails/index.js +1 -0
- package/dist/esm/emails/previews/Account.d.ts +2 -0
- package/dist/esm/emails/previews/Account.js +1 -0
- package/dist/esm/emails/previews/Bounty.d.ts +3 -0
- package/dist/esm/emails/previews/Bounty.js +1 -0
- package/dist/esm/emails/theme.d.ts +60 -0
- package/dist/esm/emails/theme.js +1 -0
- package/dist/esm/form/EditFormToolbar.d.ts +13 -0
- package/dist/esm/form/EditFormToolbar.js +1 -0
- package/dist/esm/form/ZodForm.d.ts +14 -0
- package/dist/esm/form/ZodForm.js +1 -0
- package/dist/esm/form/deleteConform.d.ts +8 -0
- package/dist/esm/form/deleteConform.js +1 -0
- package/dist/esm/hooks/use-config.d.ts +5 -0
- package/dist/esm/hooks/use-config.js +1 -0
- package/dist/esm/hooks/use-local-storage.d.ts +2 -0
- package/dist/esm/hooks/use-local-storage.js +1 -0
- package/dist/esm/hooks/use-lock-body.d.ts +1 -0
- package/dist/esm/hooks/use-lock-body.js +1 -0
- package/dist/esm/hooks/use-media-query.d.ts +7 -0
- package/dist/esm/hooks/use-media-query.js +1 -0
- package/dist/esm/hooks/use-mutation-observer.d.ts +7 -0
- package/dist/esm/hooks/use-mutation-observer.js +1 -0
- package/dist/esm/hooks/use-router.d.ts +18 -0
- package/dist/esm/hooks/use-router.js +1 -0
- package/dist/esm/hooks/useIsIntersecting.d.ts +2 -0
- package/dist/esm/hooks/useIsIntersecting.js +1 -0
- package/dist/esm/hooks/useLayoutPath.d.ts +2 -0
- package/dist/esm/hooks/useLayoutPath.js +1 -0
- package/dist/esm/hooks/useMounted.d.ts +1 -0
- package/dist/esm/hooks/useMounted.js +1 -0
- package/dist/esm/hooks/useScript.d.ts +3 -0
- package/dist/esm/hooks/useScript.js +1 -0
- package/dist/esm/icons/Cross2Icon.js +1 -0
- package/dist/esm/icons/DotsHorizontalIcon.d.ts +1 -0
- package/dist/esm/icons/DotsHorizontalIcon.js +1 -0
- package/dist/esm/icons/MixerHorizontal.js +1 -0
- package/dist/esm/icons/crazy-spinner.d.ts +3 -0
- package/dist/esm/icons/crazy-spinner.js +1 -0
- package/dist/esm/icons/font-default.d.ts +4 -0
- package/dist/esm/icons/font-default.js +1 -0
- package/dist/esm/icons/font-mono.d.ts +4 -0
- package/dist/esm/icons/font-mono.js +1 -0
- package/dist/esm/icons/font-serif.d.ts +4 -0
- package/dist/esm/icons/font-serif.js +1 -0
- package/dist/esm/icons/github.d.ts +4 -0
- package/dist/esm/icons/github.js +1 -0
- package/dist/esm/icons/icons.d.ts +133 -0
- package/dist/esm/icons/icons.js +1 -0
- package/dist/esm/icons/index.js +1 -0
- package/dist/esm/icons/loading-circle.d.ts +4 -0
- package/dist/esm/icons/loading-circle.js +1 -0
- package/dist/esm/icons/magic.d.ts +4 -0
- package/dist/esm/icons/magic.js +1 -0
- package/dist/esm/index.d.ts +1 -0
- package/dist/esm/index.js +1 -0
- package/dist/esm/lib/111.test.js +0 -0
- package/dist/esm/lib/blocks.d.ts +3 -0
- package/dist/esm/lib/blocks.js +1 -0
- package/dist/esm/lib/clientlib/clientlib.d.ts +6 -0
- package/dist/esm/lib/clientlib/clientlib.js +1 -0
- package/dist/esm/lib/clientlib/domutils.d.ts +2 -0
- package/dist/esm/lib/clientlib/domutils.js +1 -0
- package/dist/esm/lib/clientlib/selectPath.d.ts +4 -0
- package/dist/esm/lib/clientlib/selectPath.js +1 -0
- package/dist/esm/lib/componentHelper.d.ts +7 -0
- package/dist/esm/lib/componentHelper.js +1 -0
- package/dist/esm/lib/errors.d.ts +4 -0
- package/dist/esm/lib/errors.js +1 -0
- package/dist/esm/lib/fetch-proxy/fetch-proxy.d.ts +1 -0
- package/dist/esm/lib/fetch-proxy/fetch-proxy.js +1 -0
- package/dist/esm/lib/highlight-code.d.ts +1 -0
- package/dist/esm/lib/highlight-code.js +1 -0
- package/dist/esm/lib/htmlparse/components/ItemActionButton.d.ts +2 -0
- package/dist/esm/lib/htmlparse/components/ItemActionButton.js +1 -0
- package/dist/esm/lib/htmlparse/htmlParse.d.ts +2 -0
- package/dist/esm/lib/htmlparse/htmlParse.js +1 -0
- package/dist/esm/lib/react-query/ReactQueryProvider.d.ts +4 -0
- package/dist/esm/lib/react-query/ReactQueryProvider.js +1 -0
- package/dist/esm/lib/render.d.ts +4 -0
- package/dist/esm/lib/render.js +1 -0
- package/dist/esm/lib/service-worker/ServiceWorkerMain.d.ts +2 -0
- package/dist/esm/lib/service-worker/ServiceWorkerMain.js +1 -0
- package/dist/esm/lib/service-worker/lib.d.ts +1 -0
- package/dist/esm/lib/service-worker/lib.js +1 -0
- package/dist/esm/lib/service-worker/worker.d.ts +1 -0
- package/dist/esm/lib/service-worker/worker.js +1 -0
- package/dist/esm/lib/service-worker.d.ts +5 -0
- package/dist/esm/lib/service-worker.js +1 -0
- package/dist/esm/lib/trpc/types.d.ts +6 -0
- package/dist/esm/lib/trpc/types.js +0 -0
- package/dist/esm/lib/trpc-query/TrpcComponents/TrpcDehydrate.d.ts +5 -0
- package/dist/esm/lib/trpc-query/TrpcComponents/TrpcDehydrate.js +1 -0
- package/dist/esm/lib/url.d.ts +2 -0
- package/dist/esm/lib/url.js +1 -0
- package/dist/esm/lib/useScript.d.ts +3 -0
- package/dist/esm/lib/useScript.js +1 -0
- package/dist/esm/lib/useToastMessage.d.ts +3 -0
- package/dist/esm/lib/useToastMessage.js +1 -0
- package/dist/esm/lib/utils.d.ts +27 -0
- package/dist/esm/lib/utils.js +1 -0
- package/dist/esm/lib/zod/common.z.d.ts +71 -0
- package/dist/esm/lib/zod/common.z.js +1 -0
- package/dist/esm/lib/zod/demo.z.d.ts +1 -0
- package/dist/esm/lib/zod/demo.z.js +1 -0
- package/dist/esm/lib/zod/listView.z.d.ts +7688 -0
- package/dist/esm/lib/zod/listView.z.js +1 -0
- package/dist/esm/lib/zod/meta.d.ts +51 -0
- package/dist/esm/lib/zod/meta.js +1 -0
- package/dist/esm/lib/zod/msg.z.d.ts +9 -0
- package/dist/esm/lib/zod/msg.z.js +1 -0
- package/dist/esm/lib/zod/taskStatus.z.d.ts +17 -0
- package/dist/esm/lib/zod/taskStatus.z.js +1 -0
- package/dist/esm/lib/zustand.d.ts +5 -0
- package/dist/esm/lib/zustand.js +1 -0
- package/dist/esm/misc/CustomErrorRetry.d.ts +5 -0
- package/dist/esm/misc/CustomErrorRetry.js +1 -0
- package/dist/esm/misc/ExampleErrorDemo.d.ts +4 -0
- package/dist/esm/misc/ExampleErrorDemo.js +1 -0
- package/dist/esm/misc/MtErrorBoundary.d.ts +16 -0
- package/dist/esm/misc/MtErrorBoundary.js +1 -0
- package/dist/esm/misc/MtErrorBoundary.stories.d.ts +15 -0
- package/dist/esm/misc/MtErrorBoundary.stories.js +1 -0
- package/dist/esm/misc/MtErrorBoundaryV2.d.ts +2 -0
- package/dist/esm/misc/MtErrorBoundaryV2.js +1 -0
- package/dist/esm/misc/MtErrorBoundaryV2.stories.d.ts +17 -0
- package/dist/esm/misc/MtErrorBoundaryV2.stories.js +1 -0
- package/dist/esm/mtapp/History.d.ts +24 -0
- package/dist/esm/mtapp/History.js +1 -0
- package/dist/esm/mtapp/MtAppProvider.d.ts +58 -0
- package/dist/esm/mtapp/MtAppProvider.js +1 -0
- package/dist/esm/mtapp/ToastProvider.js +1 -0
- package/dist/esm/mtedtior/AiButtons.d.ts +11 -0
- package/dist/esm/mtedtior/AiButtons.js +1 -0
- package/dist/esm/mtedtior/MtEditor.d.ts +29 -0
- package/dist/esm/mtedtior/MtEditor.js +1 -0
- package/dist/esm/mtedtior/components/editor-bubble-item.d.ts +9 -0
- package/dist/esm/mtedtior/components/editor-bubble-item.js +1 -0
- package/dist/esm/mtedtior/components/editor-bubble.d.ts +7 -0
- package/dist/esm/mtedtior/components/editor-bubble.js +1 -0
- package/dist/esm/mtedtior/components/editor-command-item.d.ts +20 -0
- package/dist/esm/mtedtior/components/editor-command-item.js +1 -0
- package/dist/esm/mtedtior/components/editor-command.d.ts +29 -0
- package/dist/esm/mtedtior/components/editor-command.js +1 -0
- package/dist/esm/mtedtior/components/editor.d.ts +21 -0
- package/dist/esm/mtedtior/components/editor.js +1 -0
- package/dist/esm/mtedtior/components/index.d.ts +8 -0
- package/dist/esm/mtedtior/components/index.js +1 -0
- package/dist/esm/mtedtior/content.d.ts +132 -0
- package/dist/esm/mtedtior/content.js +18 -0
- package/dist/esm/mtedtior/extensions/ai-highlight.d.ts +22 -0
- package/dist/esm/mtedtior/extensions/ai-highlight.js +1 -0
- package/dist/esm/mtedtior/extensions/custom-keymap.d.ts +10 -0
- package/dist/esm/mtedtior/extensions/custom-keymap.js +1 -0
- package/dist/esm/mtedtior/extensions/drag-and-drop.d.ts +6 -0
- package/dist/esm/mtedtior/extensions/drag-and-drop.js +1 -0
- package/dist/esm/mtedtior/extensions/image-resizer.d.ts +2 -0
- package/dist/esm/mtedtior/extensions/image-resizer.js +1 -0
- package/dist/esm/mtedtior/extensions/index.d.ts +12 -0
- package/dist/esm/mtedtior/extensions/index.js +1 -0
- package/dist/esm/mtedtior/extensions/slash-command.d.ts +33 -0
- package/dist/esm/mtedtior/extensions/slash-command.js +1 -0
- package/dist/esm/mtedtior/extensions/updated-image.d.ts +2 -0
- package/dist/esm/mtedtior/extensions/updated-image.js +1 -0
- package/dist/esm/mtedtior/generative/ai-completion-command.d.ts +6 -0
- package/dist/esm/mtedtior/generative/ai-completion-command.js +1 -0
- package/dist/esm/mtedtior/generative/ai-selector-commands.d.ts +6 -0
- package/dist/esm/mtedtior/generative/ai-selector-commands.js +1 -0
- package/dist/esm/mtedtior/generative/ai-selector.d.ts +7 -0
- package/dist/esm/mtedtior/generative/ai-selector.js +1 -0
- package/dist/esm/mtedtior/generative/generative-menu-switch.d.ts +8 -0
- package/dist/esm/mtedtior/generative/generative-menu-switch.js +1 -0
- package/dist/esm/mtedtior/mtextesions/DemoComponent.d.ts +2 -0
- package/dist/esm/mtedtior/mtextesions/DemoComponent.js +1 -0
- package/dist/esm/mtedtior/plugins/index.d.ts +1 -0
- package/dist/esm/mtedtior/plugins/index.js +1 -0
- package/dist/esm/mtedtior/plugins/upload-images.d.ts +13 -0
- package/dist/esm/mtedtior/plugins/upload-images.js +1 -0
- package/dist/esm/mtedtior/selectors/color-selector.d.ts +9 -0
- package/dist/esm/mtedtior/selectors/color-selector.js +1 -0
- package/dist/esm/mtedtior/selectors/link-selector.d.ts +9 -0
- package/dist/esm/mtedtior/selectors/link-selector.js +1 -0
- package/dist/esm/mtedtior/selectors/node-selector.d.ts +15 -0
- package/dist/esm/mtedtior/selectors/node-selector.js +1 -0
- package/dist/esm/mtedtior/selectors/text-buttons.d.ts +2 -0
- package/dist/esm/mtedtior/selectors/text-buttons.js +1 -0
- package/dist/esm/mtedtior/tw_extensions.d.ts +1 -0
- package/dist/esm/mtedtior/tw_extensions.js +1 -0
- package/dist/esm/mtedtior/utils/summary.d.ts +1 -0
- package/dist/esm/mtedtior/utils/summary.js +1 -0
- package/dist/esm/mtedtior/utils/utils.d.ts +9 -0
- package/dist/esm/mtedtior/utils/utils.js +1 -0
- package/dist/esm/mtedtior/utils.d.ts +9 -0
- package/dist/esm/mtedtior/utils.js +1 -0
- package/dist/esm/scripts/build-registry.d.ts +3 -0
- package/dist/esm/service-worker/ServiceWorkerMain.d.ts +2 -0
- package/dist/esm/service-worker/ServiceWorkerMain.js +1 -0
- package/dist/esm/service-worker/lib.d.ts +1 -0
- package/dist/esm/service-worker/lib.js +1 -0
- package/dist/esm/service-worker/sw.d.ts +1 -0
- package/dist/esm/service-worker/sw.js +1 -0
- package/dist/esm/stories/Header.js +1 -0
- package/dist/esm/stories/Header.stories.js +1 -0
- package/dist/esm/stories/MyServerComponent.js +1 -0
- package/dist/esm/stories/MyServerComponent.stories.js +1 -0
- package/dist/esm/stories/Page.js +1 -0
- package/dist/esm/stories/Page.stories.js +1 -0
- package/dist/esm/stories/StoryDemoButton.js +5 -0
- package/dist/esm/stories/StoryDemoButton.stories.js +1 -0
- package/dist/esm/styled-system/css/conditions.d.mts +3 -0
- package/dist/esm/styled-system/css/css.d.js +0 -0
- package/dist/esm/styled-system/css/css.d.mts +6 -0
- package/dist/esm/styled-system/css/cva.d.js +0 -0
- package/dist/esm/styled-system/css/cva.d.mts +14 -0
- package/dist/esm/styled-system/css/cx.d.js +0 -0
- package/dist/esm/styled-system/css/cx.d.mts +1 -0
- package/dist/esm/styled-system/css/index.d.js +1 -0
- package/dist/esm/styled-system/css/index.d.mts +4 -0
- package/dist/esm/styled-system/css/sva.d.js +0 -0
- package/dist/esm/styled-system/css/sva.d.mts +10 -0
- package/dist/esm/styled-system/helpers.d.mts +39 -0
- package/dist/esm/styled-system/patterns/aspect-ratio.d.js +0 -0
- package/dist/esm/styled-system/patterns/aspect-ratio.d.mts +5 -0
- package/dist/esm/styled-system/patterns/bleed.d.js +0 -0
- package/dist/esm/styled-system/patterns/bleed.d.mts +5 -0
- package/dist/esm/styled-system/patterns/box.d.js +0 -0
- package/dist/esm/styled-system/patterns/box.d.mts +5 -0
- package/dist/esm/styled-system/patterns/center.d.js +0 -0
- package/dist/esm/styled-system/patterns/center.d.mts +5 -0
- package/dist/esm/styled-system/patterns/circle.d.js +0 -0
- package/dist/esm/styled-system/patterns/circle.d.mts +5 -0
- package/dist/esm/styled-system/patterns/container.d.js +0 -0
- package/dist/esm/styled-system/patterns/container.d.mts +5 -0
- package/dist/esm/styled-system/patterns/cq.d.js +0 -0
- package/dist/esm/styled-system/patterns/cq.d.mts +5 -0
- package/dist/esm/styled-system/patterns/divider.d.js +0 -0
- package/dist/esm/styled-system/patterns/divider.d.mts +5 -0
- package/dist/esm/styled-system/patterns/flex.d.js +0 -0
- package/dist/esm/styled-system/patterns/flex.d.mts +5 -0
- package/dist/esm/styled-system/patterns/float.d.js +0 -0
- package/dist/esm/styled-system/patterns/float.d.mts +5 -0
- package/dist/esm/styled-system/patterns/grid-item.d.js +0 -0
- package/dist/esm/styled-system/patterns/grid-item.d.mts +5 -0
- package/dist/esm/styled-system/patterns/grid.d.js +0 -0
- package/dist/esm/styled-system/patterns/grid.d.mts +5 -0
- package/dist/esm/styled-system/patterns/hstack.d.js +0 -0
- package/dist/esm/styled-system/patterns/hstack.d.mts +5 -0
- package/dist/esm/styled-system/patterns/index.d.js +1 -0
- package/dist/esm/styled-system/patterns/index.d.mts +20 -0
- package/dist/esm/styled-system/patterns/link-overlay.d.js +0 -0
- package/dist/esm/styled-system/patterns/link-overlay.d.mts +5 -0
- package/dist/esm/styled-system/patterns/spacer.d.js +0 -0
- package/dist/esm/styled-system/patterns/spacer.d.mts +5 -0
- package/dist/esm/styled-system/patterns/square.d.js +0 -0
- package/dist/esm/styled-system/patterns/square.d.mts +5 -0
- package/dist/esm/styled-system/patterns/stack.d.js +0 -0
- package/dist/esm/styled-system/patterns/stack.d.mts +5 -0
- package/dist/esm/styled-system/patterns/visually-hidden.d.js +0 -0
- package/dist/esm/styled-system/patterns/visually-hidden.d.mts +5 -0
- package/dist/esm/styled-system/patterns/vstack.d.js +0 -0
- package/dist/esm/styled-system/patterns/vstack.d.mts +5 -0
- package/dist/esm/styled-system/patterns/wrap.d.js +0 -0
- package/dist/esm/styled-system/patterns/wrap.d.mts +5 -0
- package/dist/esm/styled-system/tokens/index.d.js +1 -0
- package/dist/esm/styled-system/tokens/index.d.mts +6 -0
- package/dist/esm/styled-system/tokens/tokens.d.js +0 -0
- package/dist/esm/styled-system/types/composition.d.js +0 -0
- package/dist/esm/styled-system/types/conditions.d.js +0 -0
- package/dist/esm/styled-system/types/csstype.d.js +0 -0
- package/dist/esm/styled-system/types/global.d.js +0 -0
- package/dist/esm/styled-system/types/index.d.js +1 -0
- package/dist/esm/styled-system/types/parts.d.js +0 -0
- package/dist/esm/styled-system/types/pattern.d.js +0 -0
- package/dist/esm/styled-system/types/prop-type.d.js +0 -0
- package/dist/esm/styled-system/types/recipe.d.js +0 -0
- package/dist/esm/styled-system/types/selectors.d.js +0 -0
- package/dist/esm/styled-system/types/static-css.d.js +0 -0
- package/dist/esm/styled-system/types/style-props.d.js +0 -0
- package/dist/esm/styled-system/types/system-types.d.js +0 -0
- package/dist/esm/tailwind copy.d.cts +2 -0
- package/dist/esm/tailwind.d.ts +3 -0
- package/dist/esm/tailwind.js +1 -0
- package/dist/esm/types/common.d.ts +16 -0
- package/dist/esm/types/common.js +0 -0
- package/dist/esm/types/index.d.js +0 -0
- package/dist/esm/ui/accordion.d.ts +7 -0
- package/dist/esm/ui/accordion.js +1 -0
- package/dist/esm/ui/alert-dialog.d.ts +20 -0
- package/dist/esm/ui/alert-dialog.js +1 -0
- package/dist/esm/ui/alert.d.ts +8 -0
- package/dist/esm/ui/alert.js +1 -0
- package/dist/esm/ui/aspect-ratio.d.ts +4 -0
- package/dist/esm/ui/aspect-ratio.js +1 -0
- package/dist/esm/ui/avatar.d.ts +6 -0
- package/dist/esm/ui/avatar.js +1 -0
- package/dist/esm/ui/badge.d.ts +9 -0
- package/dist/esm/ui/badge.js +1 -0
- package/dist/esm/ui/breadcrumb.d.ts +19 -0
- package/dist/esm/ui/breadcrumb.js +1 -0
- package/dist/esm/ui/button.d.ts +11 -0
- package/dist/esm/ui/button.js +1 -0
- package/dist/esm/ui/calendar.d.ts +8 -0
- package/dist/esm/ui/calendar.js +1 -0
- package/dist/esm/ui/card.d.ts +8 -0
- package/dist/esm/ui/card.js +1 -0
- package/dist/esm/ui/checkbox.d.ts +4 -0
- package/dist/esm/ui/checkbox.js +1 -0
- package/dist/esm/ui/collapsible.d.ts +6 -0
- package/dist/esm/ui/collapsible.js +1 -0
- package/dist/esm/ui/command.d.ts +50 -0
- package/dist/esm/ui/command.js +1 -0
- package/dist/esm/ui/context-menu.d.ts +27 -0
- package/dist/esm/ui/context-menu.js +1 -0
- package/dist/esm/ui/dialog.d.ts +19 -0
- package/dist/esm/ui/dialog.js +1 -0
- package/dist/esm/ui/drawer.d.ts +24 -0
- package/dist/esm/ui/drawer.js +1 -0
- package/dist/esm/ui/dropdown-menu.d.ts +27 -0
- package/dist/esm/ui/dropdown-menu.js +1 -0
- package/dist/esm/ui/form.d.ts +23 -0
- package/dist/esm/ui/form.js +1 -0
- package/dist/esm/ui/hover-card.d.ts +6 -0
- package/dist/esm/ui/hover-card.js +1 -0
- package/dist/esm/ui/input.d.ts +5 -0
- package/dist/esm/ui/input.js +1 -0
- package/dist/esm/ui/label.d.ts +5 -0
- package/dist/esm/ui/label.js +1 -0
- package/dist/esm/ui/menubar.d.ts +31 -0
- package/dist/esm/ui/menubar.js +1 -0
- package/dist/esm/ui/navigation-menu.d.ts +12 -0
- package/dist/esm/ui/navigation-menu.js +1 -0
- package/dist/esm/ui/pagination.d.ts +28 -0
- package/dist/esm/ui/pagination.js +1 -0
- package/dist/esm/ui/popover.d.ts +6 -0
- package/dist/esm/ui/popover.js +1 -0
- package/dist/esm/ui/progress.d.ts +4 -0
- package/dist/esm/ui/progress.js +1 -0
- package/dist/esm/ui/radio-group.d.ts +5 -0
- package/dist/esm/ui/radio-group.js +1 -0
- package/dist/esm/ui/resizable.d.ts +24 -0
- package/dist/esm/ui/resizable.js +1 -0
- package/dist/esm/ui/scroll-area.d.ts +5 -0
- package/dist/esm/ui/scroll-area.js +1 -0
- package/dist/esm/ui/select.d.ts +11 -0
- package/dist/esm/ui/select.js +1 -0
- package/dist/esm/ui/separator.d.ts +4 -0
- package/dist/esm/ui/separator.js +1 -0
- package/dist/esm/ui/sheet.d.ts +25 -0
- package/dist/esm/ui/sheet.js +1 -0
- package/dist/esm/ui/skeleton.d.ts +3 -0
- package/dist/esm/ui/skeleton.js +1 -0
- package/dist/esm/ui/slider.d.ts +4 -0
- package/dist/esm/ui/slider.js +1 -0
- package/dist/esm/ui/sonner.d.ts +5 -0
- package/dist/esm/ui/sonner.js +1 -0
- package/dist/esm/ui/switch.d.ts +4 -0
- package/dist/esm/ui/switch.js +1 -0
- package/dist/esm/ui/table.d.ts +10 -0
- package/dist/esm/ui/table.js +1 -0
- package/dist/esm/ui/tabs.d.ts +7 -0
- package/dist/esm/ui/tabs.js +1 -0
- package/dist/esm/ui/textarea.d.ts +5 -0
- package/dist/esm/ui/textarea.js +1 -0
- package/dist/esm/ui/toast.d.ts +15 -0
- package/dist/esm/ui/toast.js +1 -0
- package/dist/esm/ui/toaster.d.ts +2 -0
- package/dist/esm/ui/toaster.js +1 -0
- package/dist/esm/ui/toggle.d.ts +12 -0
- package/dist/esm/ui/toggle.js +1 -0
- package/dist/esm/ui/tooltip.d.ts +7 -0
- package/dist/esm/ui/tooltip.js +1 -0
- package/dist/esm/ui/use-toast.d.ts +44 -0
- package/dist/esm/ui/use-toast.js +1 -0
- package/dist/esm/ui-mt/Boundary.d.ts +9 -0
- package/dist/esm/ui-mt/Boundary.js +1 -0
- package/dist/esm/ui-mt/Button.d.ts +2 -0
- package/dist/esm/ui-mt/Button.js +1 -0
- package/dist/esm/ui-mt/DropdownMenuItemLink.d.ts +7 -0
- package/dist/esm/ui-mt/DropdownMenuItemLink.js +1 -0
- package/dist/esm/ui-mt/ErrorMessage.d.ts +2 -0
- package/dist/esm/ui-mt/ErrorMessage.js +1 -0
- package/dist/esm/ui-mt/ExampleTree.d.ts +2 -0
- package/dist/esm/ui-mt/ExampleTree.js +1 -0
- package/dist/esm/ui-mt/MtDialog.d.ts +19 -0
- package/dist/esm/ui-mt/MtDialog.js +1 -0
- package/dist/esm/ui-mt/MtForm.d.ts +2 -0
- package/dist/esm/ui-mt/MtForm.js +1 -0
- package/dist/esm/ui-mt/NavTag.d.ts +11 -0
- package/dist/esm/ui-mt/NavTag.js +1 -0
- package/dist/esm/ui-mt/ScreenPanel.d.ts +4 -0
- package/dist/esm/ui-mt/ScreenPanel.js +1 -0
- package/dist/esm/ui-mt/Separator.d.ts +2 -0
- package/dist/esm/ui-mt/Separator.js +1 -0
- package/dist/esm/ui-mt/SimpleModel.d.ts +4 -0
- package/dist/esm/ui-mt/SimpleModel.js +1 -0
- package/dist/esm/ui-mt/SimpleTag.d.ts +6 -0
- package/dist/esm/ui-mt/SimpleTag.js +1 -0
- package/dist/esm/ui-mt/Slot.d.ts +1 -0
- package/dist/esm/ui-mt/Slot.js +1 -0
- package/dist/esm/ui-mt/Tree.d.ts +14 -0
- package/dist/esm/ui-mt/Tree.js +1 -0
- package/dist/esm/ui-mt/WithLinkIf.d.ts +4 -0
- package/dist/esm/ui-mt/WithLinkIf.js +1 -0
- package/dist/esm/ui-mt/headline.d.ts +8 -0
- package/dist/esm/ui-mt/headline.js +1 -0
- package/dist/esm/ui-mt/input-field/InputField.d.ts +4 -0
- package/dist/esm/ui-mt/input-field/InputField.js +1 -0
- package/dist/esm/ui-mt/input-field/RichEditorInput.d.ts +6 -0
- package/dist/esm/ui-mt/input-field/RichEditorInput.js +1 -0
- package/dist/esm/ui-mt/input-field/SingleUploadForm.d.ts +3 -0
- package/dist/esm/ui-mt/input-field/SingleUploadForm.js +1 -0
- package/dist/esm/ui-mt/input-field/TextArea.d.ts +4 -0
- package/dist/esm/ui-mt/input-field/TextArea.js +1 -0
- package/dist/esm/ui-mt/input-field/TextFileInput.d.ts +8 -0
- package/dist/esm/ui-mt/input-field/TextFileInput.js +1 -0
- package/dist/esm/ui-mt/input-field/select/InputSelect.d.ts +8 -0
- package/dist/esm/ui-mt/input-field/select/InputSelect.js +1 -0
- package/dist/esm/ui-mt/inputs/SearchInput.d.ts +3 -0
- package/dist/esm/ui-mt/inputs/SearchInput.js +1 -0
- package/dist/esm/ui-mt/inputs/TaskStatusInput.d.ts +3 -0
- package/dist/esm/ui-mt/inputs/TaskStatusInput.js +1 -0
- package/dist/esm/ui-mt/inputs/UrlsInput.d.ts +3 -0
- package/dist/esm/ui-mt/inputs/UrlsInput.js +1 -0
- package/dist/esm/ui-mt/inputs/input.d.ts +2 -0
- package/dist/esm/ui-mt/inputs/input.js +1 -0
- package/dist/esm/ui-mt/modal/MtModal.d.ts +30 -0
- package/dist/esm/ui-mt/modal/MtModal.js +1 -0
- package/dist/esm/ui-mt/mt-tree-view/MtTreeViewExample.d.ts +1 -0
- package/dist/esm/ui-mt/mt-tree-view/MtTreeViewExample.js +1 -0
- package/dist/esm/ui-mt/mt-tree-view/mt-tree-view-api.d.ts +38 -0
- package/dist/esm/ui-mt/mt-tree-view/mt-tree-view-api.js +1 -0
- package/dist/esm/ui-mt/mt-tree-view/mt-treeview.d.ts +24 -0
- package/dist/esm/ui-mt/mt-tree-view/mt-treeview.js +1 -0
- package/dist/esm/ui-mt/pagination.d.ts +8 -0
- package/dist/esm/ui-mt/pagination.js +1 -0
- package/dist/esm/ui-mt/skeleton/NewLoading.d.ts +2 -0
- package/dist/esm/ui-mt/skeleton/NewLoading.js +1 -0
- package/dist/esm/ui-mt/skeleton/SkeletonDashboardShell.d.ts +0 -0
- package/dist/esm/ui-mt/skeleton/SkeletonDashboardShell.js +1 -0
- package/dist/esm/ui-mt/skeleton/SkeletonInput.d.ts +2 -0
- package/dist/esm/ui-mt/skeleton/SkeletonInput.js +1 -0
- package/dist/esm/ui-mt/skeleton/SkeletonLayout.d.ts +2 -0
- package/dist/esm/ui-mt/skeleton/SkeletonLayout.js +1 -0
- package/dist/esm/ui-mt/skeleton/SkeletonLoading.d.ts +3 -0
- package/dist/esm/ui-mt/skeleton/SkeletonLoading.js +1 -0
- package/dist/esm/ui-mt/skeleton/skeleton-card.d.ts +4 -0
- package/dist/esm/ui-mt/skeleton/skeleton-card.js +1 -0
- package/dist/esm/ui-mt/skeleton/skeleton2.d.ts +2 -0
- package/dist/esm/ui-mt/skeleton/skeleton2.js +1 -0
- package/dist/esm/ui-mt/skeleton/skeletons.d.ts +6 -0
- package/dist/esm/ui-mt/skeleton/skeletons.js +1 -0
- package/dist/esm/ui-mt/skeleton.d.ts +5 -0
- package/dist/esm/ui-mt/skeleton.js +1 -0
- package/dist/esm/ui-mt/types.d.ts +5 -0
- package/dist/esm/ui-mt/types.js +0 -0
- package/dist/esm/ui-vamp/alert.d.ts +17 -0
- package/dist/esm/ui-vamp/alert.js +1 -0
- package/dist/esm/ui-vamp/button.d.ts +13 -0
- package/dist/esm/ui-vamp/button.js +1 -0
- package/dist/esm/ui-vamp/card.d.ts +23 -0
- package/dist/esm/ui-vamp/card.js +1 -0
- package/dist/esm/ui-vamp/chip.d.ts +11 -0
- package/dist/esm/ui-vamp/chip.js +1 -0
- package/dist/esm/ui-vamp/dropdown.d.ts +12 -0
- package/dist/esm/ui-vamp/dropdown.js +1 -0
- package/dist/esm/ui-vamp/external-link.d.ts +7 -0
- package/dist/esm/ui-vamp/external-link.js +1 -0
- package/dist/esm/ui-vamp/input.d.ts +13 -0
- package/dist/esm/ui-vamp/input.js +1 -0
- package/dist/esm/ui-vamp/keyvalue.d.ts +7 -0
- package/dist/esm/ui-vamp/keyvalue.js +1 -0
- package/dist/esm/ui-vamp/mobile-nav-button.d.ts +2 -0
- package/dist/esm/ui-vamp/mobile-nav-button.js +1 -0
- package/dist/esm/ui-vamp/modal.d.ts +11 -0
- package/dist/esm/ui-vamp/modal.js +1 -0
- package/dist/esm/ui-vamp/textarea.d.ts +12 -0
- package/dist/esm/ui-vamp/textarea.js +1 -0
- package/dist/esm/ui-vamp/toggle-group.d.ts +8 -0
- package/dist/esm/ui-vamp/toggle-group.js +1 -0
- package/dist/esm/video-player/mt-video-player.d.ts +7 -0
- package/dist/esm/video-player/mt-video-player.js +1 -0
- package/dist/esm/video-player/video-player2/modal-video-player.d.ts +13 -0
- package/dist/esm/video-player/video-player2/modal-video-player.js +1 -0
- package/dist/tsconfig.type.tsbuildinfo +1 -0
- package/package.json +3 -3
- package/src/common/DeleteComfirm.tsx +0 -103
- package/src/common/FullCenter.tsx +0 -14
- package/src/common/GlobalSearch.tsx +0 -43
- package/src/common/MtImage.tsx +0 -42
- package/src/common/MtProgressBar.tsx +0 -6
- package/src/common/NotFoundGoBack.tsx +0 -19
- package/src/common/SlntTree/Slnt.z.tsx +0 -19
- package/src/common/SlntTree/SlntChildrenTabs.tsx +0 -83
- package/src/common/SlntTree/SlntTreeNode.tsx +0 -104
- package/src/common/devtools/DebugValue.tsx +0 -24
- package/src/common/devtools/DevTools.tsx +0 -41
- package/src/common/mtlink.tsx +0 -63
- package/src/common/pip/PipExamplePage.tsx +0 -83
- package/src/common/pip/ReactDocumentPictureInPicture.tsx +0 -194
- package/src/common/pip/globals.d.ts +0 -8
- package/src/common/react-markdown/Code.tsx +0 -23
- package/src/common/react-markdown/MarkdownToolbar.tsx +0 -35
- package/src/common/react-markdown/ReactMarkdownExample.tsx +0 -43
- package/src/common/schema-form/SchemaFormFieldsRender.tsx +0 -38
- package/src/common/schema-form/SchemaFormView.tsx +0 -48
- package/src/common/schema-form/schema-form.z.ts +0 -25
- package/src/common/table/SimpleTable.tsx +0 -45
- package/src/common/table/cells/ExpenderCell.tsx +0 -23
- package/src/common/table/cells/SelectCell.tsx +0 -53
- package/src/common/table/cells/SortOrderCell.tsx-- +0 -29
- package/src/common/table/cells/Text.tsx +0 -29
- package/src/common/table/cells/ViewLink.tsx +0 -54
- package/src/common/table/cells/container/cellWrapper.tsx +0 -12
- package/src/common/table/cells/number.tsx +0 -15
- package/src/common/table/cells/string.tsx +0 -74
- package/src/common/table/columns/columns-example.tsx-- +0 -83
- package/src/common/table/data-table-pagination.tsx +0 -82
- package/src/common/table/data-table-view-options.tsx +0 -48
- package/src/common/table/datatable-view-options.tsx +0 -21
- package/src/common/table/example/ExampleTable.tsx +0 -149
- package/src/common/table/header/SimpleHeader.tsx +0 -64
- package/src/common/table/header/header.tsx +0 -29
- package/src/common/table/row/CommonRow.tsx-- +0 -28
- package/src/common/table/row/DraggableRow.tsx-- +0 -56
- package/src/common/table/table.z.ts +0 -56
- package/src/common/table/types.d.ts +0 -21
- package/src/common/tailwind-indicator.tsx +0 -16
- package/src/common/theme/mode-toggle.tsx +0 -33
- package/src/common/theme/theme-toggle.tsx +0 -19
- package/src/common/tiptap/MenuBar.tsx +0 -175
- package/src/common/tiptap/TiptapEditor.tsx +0 -95
- package/src/common/tiptap/examples/Demo-Default.tsx +0 -240
- package/src/common/tiptap/examples/Demo-Tiptap.tsx +0 -14
- package/src/demos/bigcode/BigCode.tsx +0 -39
- package/src/demos/condition-type/serialize.tsx +0 -57
- package/src/demos/demo-react-use.tsx +0 -22
- package/src/demos/lib.tsx +0 -34
- package/src/demos/lz/by-name.tsx-- +0 -25
- package/src/demos/scrollarea/LongListDemo.tsx +0 -13
- package/src/demos/scrollarea/ScrollAreaDemo.tsx +0 -58
- package/src/demos/suspense-ssr/ExampleOg.tsx +0 -23
- package/src/demos/suspense-ssr/ExamplePage.tsx +0 -72
- package/src/demos/suspense-ssr/ExampleProviderProviders.tsx +0 -13
- package/src/demos/suspense-ssr/ExampleWorkerService.tsx-- +0 -31
- package/src/demos/suspense-ssr/ReactQueryError.tsx-- +0 -50
- package/src/demos/suspense-ssr/ReadMe.tsx +0 -50
- package/src/demos/suspense-ssr/examples.tsx-- +0 -66
- package/src/demos/suspense-ssr/examplesPostDetail.tsx +0 -32
- package/src/demos/suspense-ssr/examplesPosts.tsx +0 -36
- package/src/emails/SubmissionAccepted.tsx +0 -85
- package/src/emails/SubmissionReceived.tsx +0 -74
- package/src/emails/WelcomeEmail.tsx +0 -96
- package/src/emails/components/BaseLayout.tsx +0 -145
- package/src/emails/components/Button.tsx +0 -49
- package/src/emails/components/Divider.tsx +0 -39
- package/src/emails/components/Footer.tsx +0 -47
- package/src/emails/components/Head.tsx +0 -139
- package/src/emails/components/Header.tsx +0 -35
- package/src/emails/components/Heading.tsx +0 -34
- package/src/emails/components/List.tsx +0 -54
- package/src/emails/components/Text.tsx +0 -35
- package/src/emails/components/theme.ts +0 -33
- package/src/emails/index.ts +0 -44
- package/src/emails/previews/Account.tsx +0 -5
- package/src/emails/previews/Bounty.tsx +0 -21
- package/src/emails/theme.ts +0 -82
- package/src/form/EditFormToolbar.tsx +0 -140
- package/src/form/ZodForm.tsx +0 -98
- package/src/form/deleteConform.tsx +0 -95
- package/src/hooks/use-config.ts +0 -21
- package/src/hooks/use-local-storage.ts +0 -27
- package/src/hooks/use-lock-body.ts +0 -12
- package/src/hooks/use-media-query.tsx +0 -38
- package/src/hooks/use-mutation-observer.ts +0 -20
- package/src/hooks/use-router.ts +0 -67
- package/src/hooks/useIsIntersecting.tsx +0 -24
- package/src/hooks/useLayoutPath.ts +0 -28
- package/src/hooks/useMounted.ts +0 -9
- package/src/hooks/useScript.ts +0 -107
- package/src/icons/DotsHorizontalIcon.tsx +0 -2
- package/src/icons/crazy-spinner.tsx +0 -12
- package/src/icons/font-default.tsx +0 -20
- package/src/icons/font-mono.tsx +0 -21
- package/src/icons/font-serif.tsx +0 -21
- package/src/icons/github.tsx +0 -14
- package/src/icons/icons.tsx +0 -446
- package/src/icons/loading-circle.tsx +0 -22
- package/src/icons/magic.tsx +0 -30
- package/src/index.ts +0 -8
- package/src/lib/111.test.ts +0 -1
- package/src/lib/blocks.ts +0 -109
- package/src/lib/clientlib/clientlib.ts +0 -44
- package/src/lib/clientlib/domutils.ts +0 -29
- package/src/lib/clientlib/selectPath.ts +0 -60
- package/src/lib/componentHelper.ts +0 -101
- package/src/lib/errors.ts +0 -13
- package/src/lib/fetch-proxy/fetch-proxy.ts +0 -6
- package/src/lib/highlight-code.ts +0 -33
- package/src/lib/htmlparse/components/ItemActionButton.tsx +0 -82
- package/src/lib/htmlparse/htmlParse.tsx +0 -104
- package/src/lib/http/cors.ts-- +0 -155
- package/src/lib/http/fetchMiddleWithCache.ts-- +0 -82
- package/src/lib/http/fetchMiddleWithUrlProxy.ts-- +0 -10
- package/src/lib/http/mthttp.ts-- +0 -42
- package/src/lib/prismadb.ts.backup +0 -117
- package/src/lib/react-query/ReactQueryProvider.tsx +0 -79
- package/src/lib/render.tsx +0 -52
- package/src/lib/service-worker/ServiceWorkerMain.tsx +0 -38
- package/src/lib/service-worker/lib.ts +0 -9
- package/src/lib/service-worker/worker.ts +0 -45
- package/src/lib/service-worker.js +0 -36
- package/src/lib/trpc/TrpcAppProvider.tsx-- +0 -88
- package/src/lib/trpc/types.ts +0 -6
- package/src/lib/trpc-query/TrpcComponents/TrpcDehydrate.tsx +0 -14
- package/src/lib/trpc-query/TrpcComponents/WithLoadingGet.tsx-- +0 -42
- package/src/lib/url.ts +0 -93
- package/src/lib/useScript.ts +0 -107
- package/src/lib/useToastMessage.tsx +0 -45
- package/src/lib/utils.ts +0 -269
- package/src/lib/zod/common.z.ts +0 -66
- package/src/lib/zod/demo.z.ts +0 -15
- package/src/lib/zod/listView.z.ts +0 -196
- package/src/lib/zod/meta.ts +0 -29
- package/src/lib/zod/msg.z.ts +0 -10
- package/src/lib/zod/taskStatus.z.ts +0 -34
- package/src/lib/zustand.ts +0 -42
- package/src/misc/CustomErrorRetry.tsx +0 -22
- package/src/misc/ExampleErrorDemo.tsx +0 -26
- package/src/misc/MtErrorBoundary.stories.tsx +0 -54
- package/src/misc/MtErrorBoundary.tsx +0 -59
- package/src/misc/MtErrorBoundaryV2.stories.tsx +0 -42
- package/src/misc/MtErrorBoundaryV2.tsx +0 -22
- package/src/mtapp/History.tsx +0 -109
- package/src/mtapp/MtAppProvider.tsx +0 -132
- package/src/mtapp/ToastProvider.tsx +0 -70
- package/src/mtedtior/AiButtons.tsx +0 -30
- package/src/mtedtior/MtEditor.tsx +0 -258
- package/src/mtedtior/components/editor-bubble-item.tsx +0 -33
- package/src/mtedtior/components/editor-bubble.tsx +0 -71
- package/src/mtedtior/components/editor-command-item.tsx +0 -39
- package/src/mtedtior/components/editor-command.tsx +0 -92
- package/src/mtedtior/components/editor.tsx +0 -46
- package/src/mtedtior/components/index.ts +0 -9
- package/src/mtedtior/content.ts +0 -253
- package/src/mtedtior/extensions/ai-highlight.ts +0 -126
- package/src/mtedtior/extensions/custom-keymap.ts +0 -58
- package/src/mtedtior/extensions/drag-and-drop.tsx +0 -213
- package/src/mtedtior/extensions/image-resizer.tsx +0 -76
- package/src/mtedtior/extensions/index.ts +0 -81
- package/src/mtedtior/extensions/slash-command.tsx +0 -248
- package/src/mtedtior/extensions/updated-image.ts +0 -20
- package/src/mtedtior/generative/ai-completion-command.tsx +0 -71
- package/src/mtedtior/generative/ai-selector-commands.tsx +0 -88
- package/src/mtedtior/generative/ai-selector.tsx +0 -113
- package/src/mtedtior/generative/generative-menu-switch.tsx +0 -60
- package/src/mtedtior/mtextesions/DemoComponent.tsx +0 -40
- package/src/mtedtior/plugins/index.ts +0 -8
- package/src/mtedtior/plugins/upload-images.tsx +0 -135
- package/src/mtedtior/selectors/color-selector.tsx +0 -183
- package/src/mtedtior/selectors/link-selector.tsx +0 -97
- package/src/mtedtior/selectors/node-selector.tsx +0 -129
- package/src/mtedtior/selectors/text-buttons.tsx +0 -65
- package/src/mtedtior/tw_extensions.ts +0 -137
- package/src/mtedtior/utils/summary.ts +0 -16
- package/src/mtedtior/utils/utils.ts +0 -48
- package/src/mtedtior/utils.tsx +0 -50
- package/src/mtedtior/vamp-tiptap-example.tsx-- +0 -423
- package/src/scripts/build-registry.ts +0 -435
- package/src/service-worker/ServiceWorkerMain.tsx +0 -54
- package/src/service-worker/lib.ts +0 -9
- package/src/service-worker/sw.ts +0 -50
- package/src/stories/Configure.mdx-- +0 -446
- package/src/stories/Header.stories.ts +0 -32
- package/src/stories/Header.tsx +0 -55
- package/src/stories/MyServerComponent.stories.ts +0 -15
- package/src/stories/MyServerComponent.tsx +0 -7
- package/src/stories/Page.stories.ts +0 -31
- package/src/stories/Page.tsx +0 -73
- package/src/stories/StoryDemoButton.stories.ts +0 -52
- package/src/stories/StoryDemoButton.tsx +0 -54
- package/src/stories/StorybookDecorator.tsx-- +0 -20
- package/src/stories/assets/accessibility.png +0 -0
- package/src/stories/assets/addon-library.png +0 -0
- package/src/stories/assets/assets.png +0 -0
- package/src/stories/assets/avif-test-image.avif +0 -0
- package/src/stories/assets/context.png +0 -0
- package/src/stories/assets/docs.png +0 -0
- package/src/stories/assets/figma-plugin.png +0 -0
- package/src/stories/assets/share.png +0 -0
- package/src/stories/assets/styling.png +0 -0
- package/src/stories/assets/testing.png +0 -0
- package/src/stories/assets/theming.png +0 -0
- package/src/stories/button.css +0 -30
- package/src/stories/header.css +0 -32
- package/src/stories/page.css +0 -69
- package/src/styled-system/css/conditions.mjs +0 -34
- package/src/styled-system/css/css.d.ts +0 -22
- package/src/styled-system/css/css.mjs +0 -45
- package/src/styled-system/css/cva.d.ts +0 -6
- package/src/styled-system/css/cva.mjs +0 -87
- package/src/styled-system/css/cx.d.ts +0 -5
- package/src/styled-system/css/cx.mjs +0 -15
- package/src/styled-system/css/index.d.ts +0 -5
- package/src/styled-system/css/index.mjs +0 -4
- package/src/styled-system/css/sva.d.ts +0 -4
- package/src/styled-system/css/sva.mjs +0 -41
- package/src/styled-system/helpers.mjs +0 -314
- package/src/styled-system/patterns/aspect-ratio.d.ts +0 -21
- package/src/styled-system/patterns/aspect-ratio.mjs +0 -38
- package/src/styled-system/patterns/bleed.d.ts +0 -22
- package/src/styled-system/patterns/bleed.mjs +0 -24
- package/src/styled-system/patterns/box.d.ts +0 -21
- package/src/styled-system/patterns/box.mjs +0 -15
- package/src/styled-system/patterns/center.d.ts +0 -21
- package/src/styled-system/patterns/center.mjs +0 -21
- package/src/styled-system/patterns/circle.d.ts +0 -21
- package/src/styled-system/patterns/circle.mjs +0 -25
- package/src/styled-system/patterns/container.d.ts +0 -21
- package/src/styled-system/patterns/container.mjs +0 -21
- package/src/styled-system/patterns/cq.d.ts +0 -22
- package/src/styled-system/patterns/cq.mjs +0 -21
- package/src/styled-system/patterns/divider.d.ts +0 -23
- package/src/styled-system/patterns/divider.mjs +0 -25
- package/src/styled-system/patterns/flex.d.ts +0 -27
- package/src/styled-system/patterns/flex.mjs +0 -26
- package/src/styled-system/patterns/float.d.ts +0 -24
- package/src/styled-system/patterns/float.mjs +0 -52
- package/src/styled-system/patterns/grid-item.d.ts +0 -26
- package/src/styled-system/patterns/grid-item.mjs +0 -25
- package/src/styled-system/patterns/grid.d.ts +0 -25
- package/src/styled-system/patterns/grid.mjs +0 -27
- package/src/styled-system/patterns/hstack.d.ts +0 -22
- package/src/styled-system/patterns/hstack.mjs +0 -24
- package/src/styled-system/patterns/index.d.ts +0 -21
- package/src/styled-system/patterns/index.mjs +0 -20
- package/src/styled-system/patterns/link-overlay.d.ts +0 -21
- package/src/styled-system/patterns/link-overlay.mjs +0 -24
- package/src/styled-system/patterns/spacer.d.ts +0 -21
- package/src/styled-system/patterns/spacer.mjs +0 -21
- package/src/styled-system/patterns/square.d.ts +0 -21
- package/src/styled-system/patterns/square.mjs +0 -24
- package/src/styled-system/patterns/stack.d.ts +0 -24
- package/src/styled-system/patterns/stack.mjs +0 -24
- package/src/styled-system/patterns/visually-hidden.d.ts +0 -21
- package/src/styled-system/patterns/visually-hidden.mjs +0 -18
- package/src/styled-system/patterns/vstack.d.ts +0 -22
- package/src/styled-system/patterns/vstack.mjs +0 -24
- package/src/styled-system/patterns/wrap.d.ts +0 -25
- package/src/styled-system/patterns/wrap.mjs +0 -25
- package/src/styled-system/tokens/index.d.ts +0 -9
- package/src/styled-system/tokens/index.mjs +0 -1888
- package/src/styled-system/tokens/tokens.d.ts +0 -60
- package/src/styled-system/types/composition.d.ts +0 -138
- package/src/styled-system/types/conditions.d.ts +0 -274
- package/src/styled-system/types/csstype.d.ts +0 -21298
- package/src/styled-system/types/global.d.ts +0 -19
- package/src/styled-system/types/index.d.ts +0 -7
- package/src/styled-system/types/parts.d.ts +0 -8
- package/src/styled-system/types/pattern.d.ts +0 -78
- package/src/styled-system/types/prop-type.d.ts +0 -242
- package/src/styled-system/types/recipe.d.ts +0 -181
- package/src/styled-system/types/selectors.d.ts +0 -59
- package/src/styled-system/types/static-css.d.ts +0 -51
- package/src/styled-system/types/style-props.d.ts +0 -7467
- package/src/styled-system/types/system-types.d.ts +0 -88
- package/src/styles/index.css +0 -3
- package/src/styles/main.css +0 -12
- package/src/tailwind copy.cjs +0 -82
- package/src/tailwind.ts +0 -92
- package/src/types/common.ts +0 -13
- package/src/types/index.d.ts +0 -312
- package/src/ui/accordion.tsx +0 -61
- package/src/ui/alert-dialog.tsx +0 -133
- package/src/ui/alert.tsx +0 -60
- package/src/ui/aspect-ratio.tsx +0 -7
- package/src/ui/avatar.tsx +0 -51
- package/src/ui/badge.tsx +0 -36
- package/src/ui/breadcrumb.tsx +0 -112
- package/src/ui/button.tsx +0 -58
- package/src/ui/calendar.tsx +0 -72
- package/src/ui/card.tsx +0 -77
- package/src/ui/checkbox.tsx +0 -32
- package/src/ui/collapsible.tsx +0 -12
- package/src/ui/command.tsx +0 -147
- package/src/ui/context-menu.tsx +0 -194
- package/src/ui/dialog.tsx +0 -97
- package/src/ui/drawer.tsx +0 -110
- package/src/ui/dropdown-menu.tsx +0 -195
- package/src/ui/form.tsx +0 -173
- package/src/ui/hover-card.tsx +0 -30
- package/src/ui/input.tsx +0 -25
- package/src/ui/label.tsx +0 -26
- package/src/ui/menubar.tsx +0 -228
- package/src/ui/navigation-menu.tsx +0 -123
- package/src/ui/pagination.tsx +0 -117
- package/src/ui/popover.tsx +0 -32
- package/src/ui/progress.tsx +0 -29
- package/src/ui/radio-group.tsx +0 -44
- package/src/ui/resizable.tsx +0 -44
- package/src/ui/scroll-area.tsx +0 -53
- package/src/ui/select.tsx +0 -114
- package/src/ui/separator.tsx +0 -31
- package/src/ui/sheet.tsx +0 -133
- package/src/ui/skeleton.tsx +0 -16
- package/src/ui/slider.tsx +0 -28
- package/src/ui/sonner.tsx +0 -33
- package/src/ui/switch.tsx +0 -29
- package/src/ui/table.tsx +0 -112
- package/src/ui/tabs.tsx +0 -56
- package/src/ui/textarea.tsx +0 -24
- package/src/ui/toast.tsx +0 -120
- package/src/ui/toaster.tsx +0 -40
- package/src/ui/toggle.tsx +0 -45
- package/src/ui/tooltip.tsx +0 -31
- package/src/ui/use-toast.ts +0 -204
- package/src/ui-mt/Boundary.tsx +0 -37
- package/src/ui-mt/Button.tsx +0 -3
- package/src/ui-mt/DropdownMenuItemLink.tsx +0 -21
- package/src/ui-mt/ErrorMessage.tsx +0 -12
- package/src/ui-mt/ExampleTree.tsx +0 -99
- package/src/ui-mt/MtDialog copy.tsx-- +0 -14
- package/src/ui-mt/MtDialog.tsx +0 -70
- package/src/ui-mt/MtForm.tsx +0 -5
- package/src/ui-mt/NavTag.tsx +0 -87
- package/src/ui-mt/ScreenPanel.tsx +0 -24
- package/src/ui-mt/Separator.tsx +0 -4
- package/src/ui-mt/SimpleModel.tsx +0 -45
- package/src/ui-mt/SimpleTag.tsx +0 -16
- package/src/ui-mt/Slot.tsx +0 -4
- package/src/ui-mt/Tree.tsx +0 -279
- package/src/ui-mt/WithLinkIf.tsx +0 -14
- package/src/ui-mt/headline.tsx +0 -16
- package/src/ui-mt/input-field/InputField.tsx +0 -84
- package/src/ui-mt/input-field/RichEditorInput.tsx +0 -34
- package/src/ui-mt/input-field/SingleUploadForm.tsx +0 -151
- package/src/ui-mt/input-field/TextArea.tsx +0 -67
- package/src/ui-mt/input-field/TextFileInput.tsx +0 -85
- package/src/ui-mt/input-field/select/InputSelect.tsx +0 -114
- package/src/ui-mt/inputs/SearchInput.tsx +0 -41
- package/src/ui-mt/inputs/TaskStatusInput.tsx +0 -61
- package/src/ui-mt/inputs/UrlsInput.tsx +0 -21
- package/src/ui-mt/inputs/input.tsx +0 -3
- package/src/ui-mt/modal/MtModal.tsx +0 -99
- package/src/ui-mt/mt-tree-view/MtTreeViewExample.tsx +0 -82
- package/src/ui-mt/mt-tree-view/mt-tree-view-api.tsx +0 -398
- package/src/ui-mt/mt-tree-view/mt-treeview.tsx +0 -135
- package/src/ui-mt/pagination.tsx +0 -96
- package/src/ui-mt/skeleton/NewLoading.tsx +0 -34
- package/src/ui-mt/skeleton/SkeletonInput.tsx +0 -12
- package/src/ui-mt/skeleton/SkeletonLayout.tsx +0 -12
- package/src/ui-mt/skeleton/SkeletonLoading.tsx +0 -18
- package/src/ui-mt/skeleton/skeleton-card.tsx +0 -16
- package/src/ui-mt/skeleton/skeleton2.tsx +0 -10
- package/src/ui-mt/skeleton/skeletons.tsx +0 -20
- package/src/ui-mt/skeleton.tsx +0 -25
- package/src/ui-mt/types.tsx +0 -4
- package/src/ui-vamp/alert.tsx +0 -102
- package/src/ui-vamp/button.tsx +0 -45
- package/src/ui-vamp/card.tsx +0 -59
- package/src/ui-vamp/chip.tsx +0 -30
- package/src/ui-vamp/dropdown.tsx +0 -68
- package/src/ui-vamp/external-link.tsx +0 -21
- package/src/ui-vamp/input.tsx +0 -64
- package/src/ui-vamp/keyvalue.tsx +0 -51
- package/src/ui-vamp/mobile-nav-button.tsx +0 -23
- package/src/ui-vamp/modal.tsx +0 -49
- package/src/ui-vamp/textarea.tsx +0 -51
- package/src/ui-vamp/toggle-group.tsx +0 -32
- package/src/video-player/mt-video-player.tsx +0 -70
- package/src/video-player/video-player2/modal-video-player.tsx +0 -128
- /package/{src/common/TrpcQuery.tsx → dist/esm/common/TrpcQuery.d.ts} +0 -0
- /package/{src/ui-mt/skeleton/SkeletonDashboardShell.tsx → dist/esm/common/table/datatable-view-options.js} +0 -0
- /package/{src/icons/Cross2Icon.tsx → dist/esm/icons/Cross2Icon.d.ts} +0 -0
- /package/{src/icons/MixerHorizontal.tsx → dist/esm/icons/MixerHorizontal.d.ts} +0 -0
- /package/{src/icons/index.tsx → dist/esm/icons/index.d.ts} +0 -0
- /package/{src → dist}/styles/globals.css +0 -0
- /package/{src → dist}/styles/prosemirror.css +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
function s(e){let n=0;for(let t=1;t<=e;t+=4)n+=1/t-1/(t+2);return 4*n}addEventListener("message",e=>{postMessage(s(e.data))});var o=()=>{self.addEventListener("install",()=>{console.log("service worker installed")})};o();var c=()=>{self.addEventListener("activate",()=>{console.log("service worker activated")})};c();var a=()=>{console.log("setup service worker fetch event"),self.addEventListener("fetch",e=>{console.log("fetch event@serviceworker",e),e.respondWith(new Response("hello response"))})};a();
|
|
@@ -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.Element;
|
|
14
|
+
export declare const useDeleteConfirm: () => {
|
|
15
|
+
show: (props: {
|
|
16
|
+
callback: () => void;
|
|
17
|
+
}) => void;
|
|
18
|
+
};
|
|
19
|
+
export declare const DeleteConfirmDlg: () => import("react").JSX.Element;
|
|
20
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use client";var v=Object.defineProperty;var c=Object.getOwnPropertySymbols;var f=Object.prototype.hasOwnProperty,u=Object.prototype.propertyIsEnumerable;var p=(t,o,e)=>o in t?v(t,o,{enumerable:!0,configurable:!0,writable:!0,value:e}):t[o]=e,C=(t,o)=>{for(var e in o||(o={}))f.call(o,e)&&p(t,e,o[e]);if(c)for(var e of c(o))u.call(o,e)&&p(t,e,o[e]);return t};var D=(t,o)=>{var e={};for(var r in t)f.call(t,r)&&o.indexOf(r)<0&&(e[r]=t[r]);if(t!=null&&c)for(var r of c(t))o.indexOf(r)<0&&u.call(t,r)&&(e[r]=t[r]);return e};var b=(t,o,e)=>new Promise((r,i)=>{var x=n=>{try{s(e.next(n))}catch(m){i(m)}},g=n=>{try{s(e.throw(n))}catch(m){i(m)}},s=n=>n.done?r(n.value):Promise.resolve(n.value).then(x,g);s((e=e.apply(t,o)).next())});import{jsx as l,jsxs as S}from"react/jsx-runtime";import{createContext as y,useCallback as P,useContext as M,useMemo as h}from"react";import{createStore as F,useStore as T}from"zustand";import{immer as O}from"zustand/middleware/immer";import{MtButton as k}from"../ui-mt/Button";import{Dialog as w,DialogContent as B,DialogDescription as W,DialogTitle as E}from"../ui/dialog";const R=(t,o)=>({setOpen:e=>t({open:e}),setConfirmCallback:e=>t({confirmCallback:e})}),q=t=>F()(O((...o)=>C(C({},R(...o)),t))),d=y(null),L=t=>{const i=t,{children:o}=i,e=D(i,["children"]),r=h(()=>q(e),[e]);return S(d.Provider,{value:r,children:[o,l(z,{})]})};function a(t){const o=M(d);if(!o)throw new Error("useDeleteConfirm Missing MtxFormProvider");return T(o,t)}const N=()=>{const t=a(r=>r.setOpen),o=a(r=>r.setConfirmCallback);return{show:P(r=>{o(r.callback),t(!0)},[o,t])}},z=()=>{const t=a(r=>r.open),o=a(r=>r.setOpen),e=a(r=>r.confirmCallback);return l(w,{open:t,onOpenChange:o,children:S(B,{children:[l(E,{children:"delete confirm"}),l(W,{children:"will delete item, continue?"}),l(k,{variant:"destructive",onClick:()=>b(void 0,null,function*(){o(!1),e&&e()}),children:"Continue"}),l(k,{variant:"outline",onClick:()=>{o(!1),e&&e()},children:"Cancel"})]})})};export{z as DeleteConfirmDlg,L as DeleteConfirmProvider,R as createFormSlice,N as useDeleteConfirm};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use client";import{jsx as e}from"react/jsx-runtime";const s=l=>{const{children:i}=l;return e("div",{className:"flex h-full w-full items-center justify-center",children:e("div",{className:"flex-1",children:i})})};export{s as FullCenter};
|
|
@@ -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.Element;
|
|
10
|
+
export declare function useGlobalSearch<T>(selector: (state: GlobalSearchState) => T): T;
|
|
11
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use client";var p=Object.defineProperty;var a=Object.getOwnPropertySymbols;var s=Object.prototype.hasOwnProperty,S=Object.prototype.propertyIsEnumerable;var n=(e,r,t)=>r in e?p(e,r,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[r]=t,l=(e,r)=>{for(var t in r||(r={}))s.call(r,t)&&n(e,t,r[t]);if(a)for(var t of a(r))S.call(r,t)&&n(e,t,r[t]);return e};var i=(e,r)=>{var t={};for(var o in e)s.call(e,o)&&r.indexOf(o)<0&&(t[o]=e[o]);if(e!=null&&a)for(var o of a(e))r.indexOf(o)<0&&S.call(e,o)&&(t[o]=e[o]);return t};import{jsx as d}from"react/jsx-runtime";import{createContext as b,useContext as u,useMemo as G}from"react";import{createStore as f,useStore as m}from"zustand";const P=(e,r)=>({setQ:t=>e({q:t})}),C=e=>f()((...r)=>l(l({},P(...r)),e)),h=b(null),g=e=>{const c=e,{children:r}=c,t=i(c,["children"]),o=G(()=>C(t),[t]);return d(h.Provider,{value:o,children:r})};function T(e){const r=u(h);if(!r)throw new Error("useGlobalSearch Missing GlobalSearchProvider");return m(r,e)}export{g as GlobalSearchProvider,P as createFormSlice,T as useGlobalSearch};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var s=Object.defineProperty,g=Object.defineProperties;var i=Object.getOwnPropertyDescriptors;var t=Object.getOwnPropertySymbols;var d=Object.prototype.hasOwnProperty,c=Object.prototype.propertyIsEnumerable;var m=(e,o,r)=>o in e?s(e,o,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[o]=r,n=(e,o)=>{for(var r in o||(o={}))d.call(o,r)&&m(e,r,o[r]);if(t)for(var r of t(o))c.call(o,r)&&m(e,r,o[r]);return e},p=(e,o)=>g(e,i(o));import{jsx as h}from"react/jsx-runtime";import{isCloudflarePage as l}from"mtxlib/utils";import f from"next/image";const u=e=>e.startsWith("/")?e.slice(1):e,I=({src:e,width:o,quality:r})=>{const a=[`width=${o}`];return r&&a.push(`quality=${r}`),`https://cfgomtm.yuepa8.com/cdn-cgi/image/${a.join(",")}/${u(e)}`},L=({src:e,width:o,quality:r})=>`https://example.com/${e}?w=${o}&q=${r||75}`;function $(){if(l())return I}const z=e=>h(f,p(n({},e),{loader:$()}));export{z as MtImage};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use client";import{jsx as r}from"react/jsx-runtime";import{AppProgressBar as o}from"next-nprogress-bar";const e=()=>r(o,{height:"4px",color:"#4934eb",options:{showSpinner:!1},shallowRouting:!0});export{e as MtProgressBar};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use client";import{jsx as o,jsxs as e}from"react/jsx-runtime";import{useRouter as a}from"next/navigation";import{Button as c}from"../ui/button";const r=()=>{const t=a();return e("div",{className:"container flex flex-col",children:[o("div",{className:"mx-auto p-8",children:"not found"}),o(c,{className:"mx-auto p-8",onClick:()=>{t.back()},children:"Go back"})]})};export{r as NotFoundGoBack};
|
|
@@ -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
|
+
import{z as e}from"zod";const t=["default","list","detail"],o=e.object({id:e.string(),pid:e.string().optional(),label:e.string().optional(),icon:e.string().optional(),routeName:e.string().optional(),routeType:e.enum(t).optional()}),n=o.extend({children:e.lazy(()=>n.array()).optional()});export{n as treeNodeSchema};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use client";var v=Object.defineProperty;var i=Object.getOwnPropertySymbols;var m=Object.prototype.hasOwnProperty,u=Object.prototype.propertyIsEnumerable;var d=(t,o,e)=>o in t?v(t,o,{enumerable:!0,configurable:!0,writable:!0,value:e}):t[o]=e,f=(t,o)=>{for(var e in o||(o={}))m.call(o,e)&&d(t,e,o[e]);if(i)for(var e of i(o))u.call(o,e)&&d(t,e,o[e]);return t};var h=(t,o)=>{var e={};for(var a in t)m.call(t,a)&&o.indexOf(a)<0&&(e[a]=t[a]);if(t!=null&&i)for(var a of i(t))o.indexOf(a)<0&&u.call(t,a)&&(e[a]=t[a]);return e};import{jsx as s}from"react/jsx-runtime";import{urlJoinPaths as p}from"mtxlib/http/url";import{usePathname as g,useSelectedLayoutSegment as y,useSelectedLayoutSegments as N}from"next/navigation";import{cn as k}from"../../lib/utils";import{MtLink as P}from"../mtlink";import{useMenuTreeStore as S}from"./SlntTreeNode";const $=()=>{var r;const t=S(n=>n.menuNode),o=g(),e=N(),a=y(),b=o.slice(0,-e.join("/").length),L="/"+e.join("/");return s("div",{className:"flex gap-1 ",children:(r=t==null?void 0:t.children)==null?void 0:r.map((n,c)=>{let l=`${p(b,n.routeName||"")}`;return e!=null&&e.length||(l=p(o,n.routeName||"")),s(x,{activate:a==n.routeName,children:s(P,{variant:"ghost",href:l,children:n.label},c)},c)})})},x=t=>{const a=t,{activate:o}=a,e=h(a,["activate"]);return s("div",f({"data-state":o&&"active",className:k("ring-offset-background focus-visible:ring-ring data-[state=active]:bg-background data-[state=active]:text-foreground inline-flex items-center justify-center whitespace-nowrap rounded-md px-3 py-1 text-sm font-medium transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:shadow")},e))};export{$ as SlntChildrenTabs};
|
|
@@ -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.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.Element;
|
|
19
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use client";var N=Object.defineProperty;var a=Object.getOwnPropertySymbols;var p=Object.prototype.hasOwnProperty,S=Object.prototype.propertyIsEnumerable;var l=(e,t,r)=>t in e?N(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,c=(e,t)=>{for(var r in t||(t={}))p.call(t,r)&&l(e,r,t[r]);if(a)for(var r of a(t))S.call(t,r)&&l(e,r,t[r]);return e};var m=(e,t)=>{var r={};for(var o in e)p.call(e,o)&&t.indexOf(o)<0&&(r[o]=e[o]);if(e!=null&&a)for(var o of a(e))t.indexOf(o)<0&&S.call(e,o)&&(r[o]=e[o]);return r};import{jsx as P}from"react/jsx-runtime";import{useSelectedLayoutSegment as x,useSelectedLayoutSegments as L}from"next/navigation";import{createContext as y,useContext as g,useMemo as d}from"react";import{useStore as T}from"zustand";import{immer as v}from"zustand/middleware/immer";import{useShallow as C}from"zustand/react/shallow";import{createStore as D}from"zustand/vanilla";const w=e=>D()(v((t,r)=>c({},e))),f=y(null),W=e=>{const n=e,{children:t}=n,r=m(n,["children"]),o=d(()=>w(r),[r]);return P(f.Provider,{value:o,children:t})},E=!0;function I(e){const t=g(f);return t?e?T(t,E?C(e):e):T(t):null}const z=e=>{const{children:t,treeData:r}=e,o=I(s=>s==null?void 0:s.menuNode),n=x(),A=L(),u=o||r;if(!u)throw new Error("must within parentNodes or rootNodes ");const h=d(()=>{var i;const s=(i=u.children)==null?void 0:i.find(M=>M.routeName==n);return console.log({message:`(SlntTreeNode)${n}`,fined:s,parent:u}),s},[u,n]);return P(W,{menuNode:h,children:t})};export{E as DEFAULT_USE_SHALLOW,W as MenuTreeProvider,z as SlntTreeNode,f as slntContext,I as useMenuTreeStore};
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use client";import{jsx as t,jsxs as n}from"react/jsx-runtime";import{MtButton as i}from"../../ui-mt/Button";import{Dialog as r,DialogContent as s,DialogTrigger as g}from"../../ui/dialog";const c=a=>{const{title:l,data:e,className:o}=a;return n(r,{children:[t(g,{asChild:!0,children:t(i,{variant:"outline",className:o,children:l||"debug"})}),t(s,{className:"max-h-lvh w-full overflow-scroll bg-red-100",children:t("pre",{className:" text-xs",children:JSON.stringify(e,null,2)})})]})};export{c as DebugValue};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use client";import{Fragment as m,jsx as s,jsxs as p}from"react/jsx-runtime";import n from"next/dynamic";import{useHotkeys as u}from"react-hotkeys-hook";import{useMtapp as r}from"../../mtapp/MtAppProvider";import{TailwindIndicator as i}from"../tailwind-indicator";const l=n(()=>import("@tanstack/react-query-devtools/build/modern/production.js").then(o=>({default:o.ReactQueryDevtools})),{ssr:!1}),c="alt+.",f=()=>{const o=r(t=>t.debug),e=r(t=>t.setDebug);return u(c,()=>{console.log("debug2:%o",!o),e(!o)},[o,e]),o?p(m,{children:[s(l,{buttonPosition:"bottom-right"}),s(i,{})]}):null};export{f as DevTools,c as HOTKEY_Debug};
|
|
@@ -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): React.JSX.Element;
|
|
14
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use client";var d=Object.defineProperty,P=Object.defineProperties;var h=Object.getOwnPropertyDescriptors;var a=Object.getOwnPropertySymbols;var l=Object.prototype.hasOwnProperty,f=Object.prototype.propertyIsEnumerable;var m=(r,e,t)=>e in r?d(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t,i=(r,e)=>{for(var t in e||(e={}))l.call(e,t)&&m(r,t,e[t]);if(a)for(var t of a(e))f.call(e,t)&&m(r,t,e[t]);return r},c=(r,e)=>P(r,h(e));var p=(r,e)=>{var t={};for(var n in r)l.call(r,n)&&e.indexOf(n)<0&&(t[n]=r[n]);if(r!=null&&a)for(var n of a(r))e.indexOf(n)<0&&f.call(r,n)&&(t[n]=r[n]);return t};import{jsx as L}from"react/jsx-runtime";import{Slot as b}from"@radix-ui/react-slot";import u from"next/link";import C from"react";import{cn as k}from"../lib/utils";import{buttonVariants as E}from"../ui/button";const M=C.forwardRef((T,x)=>{var s=T,{className:r,variant:e,size:t,asChild:n=!1}=s,o=p(s,["className","variant","size","asChild"]);return L(n?b:u,i({className:k(e&&E({variant:e,className:r})),ref:x},o))});M.displayName="MtLink";function S(n){var o=n,{children:r,className:e}=o,t=p(o,["children","className"]);return L("a",c(i({className:k(e,"hover:text-brandtext-500 hover:underline hover:brightness-150"),rel:"noopener noreferrer"},t),{children:r}))}export{S as MtExternalLink,M as MtLink};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use client";import{Fragment as f,jsx as e,jsxs as t}from"react/jsx-runtime";import r from"mtxuilib/common/pip/ReactDocumentPictureInPicture";import{MtButton as i}from"mtxuilib/ui-mt/Button";import{useRef as u,useState as a}from"react";function d(){const o=u(null);return e(f,{children:e(r,{ref:o,width:"50%",height:"100%",buttonRenderer:({open:c,close:n,toggle:s,isOpen:l})=>t("div",{className:"flex gap-2",children:[t("b",{children:["Is ",l?"Open":"Closed"," "]}),e(i,{onClick:c,children:"Open"}),e(i,{onClick:n,children:"Close"}),e(i,{onClick:s,children:"Toggle"})]}),children:e(p,{pipWindowRef:o})})})}const p=o=>{const{pipWindowRef:c}=o,[n,s]=a("tet1");return t("div",{className:"prose",children:[e("h1",{children:"\u753B\u4E2D\u753B\u663E\u793A\uFF08\u8303\u4F8B\uFF09"}),t("div",{children:[e("button",{onClick:()=>{console.log("\u5173\u95ED"),s("ssssssssssssssss")},children:"sssss"}),t(i,{onClick:()=>{console.log("\u5173\u95ED"),s("ssssssssssssssss")},children:["\u5173\u95ED333 ",n]})]}),e("i",{children:"This text should be displayed in a Document Picture in Picture filling the maximum allow height and 50% of the width of the original window"})]})};export{d as default};
|
|
@@ -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 @@
|
|
|
1
|
+
"use client";var E=Object.defineProperty;var b=Object.getOwnPropertySymbols;var N=Object.prototype.hasOwnProperty,T=Object.prototype.propertyIsEnumerable;var P=(e,i,t)=>i in e?E(e,i,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[i]=t,g=(e,i)=>{for(var t in i||(i={}))N.call(i,t)&&P(e,t,i[t]);if(b)for(var t of b(i))T.call(i,t)&&P(e,t,i[t]);return e};var v=(e,i,t)=>new Promise((n,d)=>{var l=u=>{try{o(t.next(u))}catch(s){d(s)}},f=u=>{try{o(t.throw(u))}catch(s){d(s)}},o=u=>u.done?n(u.value):Promise.resolve(u.value).then(l,f);o((t=t.apply(e,i)).next())});import{jsx as x,jsxs as L}from"react/jsx-runtime";import{forwardRef as C,useCallback as R,useImperativeHandle as S,useMemo as _,useRef as y,useState as D}from"react";var W=(t=>(t.USING_UNSECURE_PROTOCOL="USING_UNSECURE_PROTOCOL",t.API_NOT_SUPPORTED="API_NOT_SUPPORTED",t))(W||{});const U=C((e,i)=>{const t=y(),n=y(),[d,l]=D(!1),f=_(()=>{if(typeof window!="undefined"){let a=500,r=400;return typeof e.width=="number"?a=e.width:typeof e.width=="string"&&(e.width.endsWith("px")?a=parseInt(e.width):e.width.endsWith("%")&&(a=(window==null?void 0:window.innerWidth)*(parseInt(e.width)/100))),typeof e.height=="number"?r=e.height:typeof e.height=="string"&&(e.height.endsWith("px")?r=parseInt(e.height):e.height.endsWith("%")&&(r=(window==null?void 0:window.innerHeight)*(parseInt(e.height)/100))),{width:a,height:r}}},[e.width,e.height]),o=R(()=>{var a;n.current!=null&&((a=n.current)==null||a.close(),l(!1),e.onClose&&e.onClose())},[t,n,l]),u=R(()=>v(void 0,null,function*(){if(t.current!=null&&typeof window!="undefined"){const a=t.current;n.current=yield window==null?void 0:window.documentPictureInPicture.requestWindow(g({},f)),e.shareStyles===!0&&[...document.styleSheets].forEach(r=>{var w;try{const m=[...r.cssRules].map(O=>O.cssText).join(""),c=document.createElement("style");c.textContent=m,n==null||n.current.document.head.appendChild(c)}catch(m){const c=document.createElement("link");c.rel="stylesheet",c.type=r.type,r.media.length>0&&(c.media=r.media.mediaText),c.href=r.href||"",(w=n.current)==null||w.document.head.appendChild(c)}}),n.current.document.body.append(a),n.current.addEventListener("pagehide",()=>o()),n.current.addEventListener("resize",r=>{e.onResize&&e.onResize(r.target.innerWidth,r.target.innerHeight)}),l(!0),e.onOpen&&e.onOpen()}}),[t,n,l,o,f,e.shareStyles]),s=R(()=>d?o():u(),[d]);S(i,()=>({window:()=>n.current,isOpen:d,close:o}),[n,d,o]);const h=(()=>{if(typeof window!="undefined"){if((window==null?void 0:window.location.protocol)==="https:"===!1)return"USING_UNSECURE_PROTOCOL";if("documentPictureInPicture"in window===!1)return"API_NOT_SUPPORTED"}return null})();if(h!=null&&e.featureUnavailableRenderer==null)return;if(h!=null)return typeof e.featureUnavailableRenderer=="function"?e.featureUnavailableRenderer(h):e.featureUnavailableRenderer;const I=typeof e.buttonRenderer=="function"?e.buttonRenderer({open:u,close:o,toggle:s,isOpen:d}):e.buttonRenderer;return L("div",{children:[I,x("div",{ref:t,style:{display:d?"block":"none",width:"100%",height:"100%"},children:e.children})]})});U.displayName="ReactDocumentPictureInPicture";var z=U;export{W as FeatureUnavailableReasonEnum,z as default};
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var o=Object.getOwnPropertySymbols;var l=Object.prototype.hasOwnProperty,s=Object.prototype.propertyIsEnumerable;var n=(e,t)=>{var a={};for(var r in e)l.call(e,r)&&t.indexOf(r)<0&&(a[r]=e[r]);if(e!=null&&o)for(var r of o(e))t.indexOf(r)<0&&s.call(e,r)&&(a[r]=e[r]);return a};import{jsx as i}from"react/jsx-runtime";import{Prism as c}from"react-syntax-highlighter";import{materialOceanic as m}from"react-syntax-highlighter/dist/cjs/styles/prism";const p=t=>{var e=n(t,[]);var a;return i(c,{language:(a=e.className)==null?void 0:a.replace(/(?:lang(?:uage)?-)/,""),style:m,wrapLines:!0,className:"not-prose rounded-md",children:e.children})},u=t=>{var e=n(t,[]);return i("div",{className:"not-prose",children:e.children})};export{p as CodeBlock,u as Pre};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{jsx as e}from"react/jsx-runtime";import{Button as t}from"../../ui/button";const o=({feedElement:n})=>e("header",{className:" flex gap-1 bg-[#253237]",children:[{name:"B",syntax:"**Bold**"},{name:"I",syntax:"*Italic*"},{name:"S",syntax:"~Strikethrough~"},{name:"H1",syntax:"# "}].map(a=>e(t,{className:"flex rounded-md",onClick:()=>n(a.syntax),children:a.name},a.syntax))});var r=o;export{r as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use client";import{jsx as e}from"react/jsx-runtime";import r from"react-markdown";import o from"rehype-external-links";import t from"rehype-sanitize";import i from"remark-gfm";import{CodeBlock as n,Pre as s}from"./Code";const d=()=>e("div",{className:"bg-slate-500",children:e("div",{className:"flex h-screen justify-between",children:e("article",{className:"w-full pl-6 pt-5",children:e(r,{className:"prose prose-invert min-w-full",remarkPlugins:[i],rehypePlugins:[t,[o,{content:{type:"text",value:"\u{1F517}"}}]],components:{code:n,pre:s}})})})});export{d as ReactMarkdownExample};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use client";var i=Object.defineProperty;var n=Object.getOwnPropertySymbols;var h=Object.prototype.hasOwnProperty,u=Object.prototype.propertyIsEnumerable;var c=(r,o,e)=>o in r?i(r,o,{enumerable:!0,configurable:!0,writable:!0,value:e}):r[o]=e,l=(r,o)=>{for(var e in o||(o={}))h.call(o,e)&&c(r,e,o[e]);if(n)for(var e of n(o))u.call(o,e)&&c(r,e,o[e]);return r};import{Fragment as s,jsx as m,jsxs as L}from"react/jsx-runtime";import{FormControl as d,FormDescription as b,FormField as f,FormItem as C,FormLabel as I,FormMessage as S}from"mtxuilib/ui/form";import{Input as y}from"mtxuilib/ui/input";import{useFormContext as D}from"react-hook-form";const z=r=>{var a;const{schema:o}=r,e=D();return m(s,{children:(a=o.fields)==null?void 0:a.map((t,p)=>m(f,{control:e.control,name:t.name,defaultValue:t.defaultValue||"",render:({field:F})=>L(C,{children:[t.label&&m(I,{children:t.label}),m(d,{children:m(s,{children:m(y,l({placeholder:t.placeholder},F))})}),t.description&&m(b,{children:t.description}),m(S,{})]})},p))})};export{z as SchemaFormFieldsRender};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import type { MaybePromise } from "../../types/common";
|
|
3
|
+
import type { SchemaForm } from "./schema-form.z";
|
|
4
|
+
type SchemaFormViewVaranit = "auto" | "modal" | "card";
|
|
5
|
+
export declare const SchemaFormView: (props: {
|
|
6
|
+
formSchema?: SchemaForm;
|
|
7
|
+
defaultValues?: any;
|
|
8
|
+
onSubmit: (values: any) => MaybePromise<void>;
|
|
9
|
+
onCancel?: () => void;
|
|
10
|
+
isLoading?: boolean;
|
|
11
|
+
variants?: SchemaFormViewVaranit;
|
|
12
|
+
}) => import("react").JSX.Element;
|
|
13
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use client";var d=Object.defineProperty,f=Object.defineProperties;var u=Object.getOwnPropertyDescriptors;var i=Object.getOwnPropertySymbols;var p=Object.prototype.hasOwnProperty,S=Object.prototype.propertyIsEnumerable;var n=(m,o,r)=>o in m?d(m,o,{enumerable:!0,configurable:!0,writable:!0,value:r}):m[o]=r,s=(m,o)=>{for(var r in o||(o={}))p.call(o,r)&&n(m,r,o[r]);if(i)for(var r of i(o))S.call(o,r)&&n(m,r,o[r]);return m},c=(m,o)=>f(m,u(o));import{Fragment as w,jsx as a,jsxs as P}from"react/jsx-runtime";import{useState as F}from"react";import{FormProvider as h,useForm as b}from"react-hook-form";import{EditFormToolbar as v}from"mtxuilib/form/EditFormToolbar";import{Card as y,CardContent as C}from"mtxuilib/ui/card";import{DialogFooter as V}from"mtxuilib/ui/dialog";import{SchemaFormFieldsRender as g}from"./SchemaFormFieldsRender";const q=m=>{const{formSchema:o,onSubmit:r,onCancel:e,variants:D}=m,[l,M]=F({}),t=b({defaultValues:l});return o?a(w,{children:a(h,c(s({},t),{children:a(y,{className:"p-2",children:a(C,{children:P("form",{onSubmit:t.handleSubmit(r),children:[a(g,{schema:o}),a(V,{children:a(v,{onCancel:()=>e&&e()})})]})})})}))}):a("div",{className:"border p-8",children:"missing formSchema params"})};export{q as SchemaFormView};
|
|
@@ -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 @@
|
|
|
1
|
+
import{z as t}from"zod";const o=t.enum(["string","number","date","email"]),a=t.object({name:t.string(),label:t.string().optional(),type:t.string().optional(),valueType:o.optional(),defaultValue:t.any().optional(),placeholder:t.string().optional(),description:t.string().optional()}),i=t.object({title:t.string().optional(),description:t.string().optional(),action:t.string().optional(),fields:a.array(),loadingDetailDataProcedure:t.string().optional(),loadingDetailDataParams:t.any().optional()});export{a as schemaField,o as schemaFieldValueType,i as schemaFormSchema};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use client";import{jsx as l,jsxs as u}from"react/jsx-runtime";import{flexRender as b}from"@tanstack/react-table";import{Table as n,TableBody as s,TableCell as m,TableHead as r,TableHeader as i,TableRow as o}from"../../ui/table";function y(T){var d;const{table:t}=T;return l("div",{className:"rounded-md border",children:u(n,{children:[l(i,{children:t.getHeaderGroups().map(a=>l(o,{children:a.headers.map(e=>l(r,{children:e.isPlaceholder?null:b(e.column.columnDef.header,e.getContext())},e.id))},a.id))}),l(s,{children:(d=t.getRowModel().rows)!=null&&d.length?t.getRowModel().rows.map(a=>l(o,{"data-state":a.getIsSelected()&&"selected",children:a.getVisibleCells().map(e=>l(m,{children:b(e.column.columnDef.cell,e.getContext())},e.id))},a.id)):l(o,{})})]})})}export{y as SimpleTable};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use client";import{jsx as t}from"react/jsx-runtime";import{ChevronRight as o}from"lucide-react";import{cn as n}from"../../../lib/utils";const C=e=>e.row.getCanExpand()?t("button",{className:"pointer",onClick:e.row.getToggleExpandedHandler(),children:t(o,{className:n(e.row.getIsExpanded()&&"rotate-90")})}):"\u{1F535}";export{C as ExpenderCell};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { CellContext } from "@tanstack/react-table";
|
|
2
|
+
import React from "react";
|
|
3
|
+
export declare const SelectCell: (info: CellContext<any, any>) => React.JSX.Element;
|
|
4
|
+
interface SelectCellItem {
|
|
5
|
+
label: string;
|
|
6
|
+
value: string;
|
|
7
|
+
}
|
|
8
|
+
interface NewSelectCellOptions {
|
|
9
|
+
placeholder?: string;
|
|
10
|
+
items: SelectCellItem[];
|
|
11
|
+
}
|
|
12
|
+
export declare const NewSelectCell: ({ placeholder, items }: NewSelectCellOptions) => (_info: CellContext<any, any>) => React.JSX.Element;
|
|
13
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use client";import{Fragment as g,jsx as e,jsxs as m}from"react/jsx-runtime";import a from"react";import{Select as u,SelectContent as s,SelectGroup as p,SelectItem as S,SelectTrigger as C,SelectValue as i}from"../../../ui/select";const y=n=>{const[l,o]=a.useState(n.cell.getValue());return e("div",{className:"flex w-full",children:e("input",{type:"number",value:l,onChange:t=>o(t.target.value),onBlur:()=>{const t=parseInt(l)},className:"grow"})})},N=({placeholder:n,items:l})=>r=>e(g,{children:m(u,{children:[e(C,{className:"w-[180px]",children:e(i,{placeholder:n||"--"})}),e(s,{children:e(p,{children:l==null?void 0:l.map((t,c)=>e(S,{value:t.value,children:t.label},c))})})]})});export{N as NewSelectCell,y as SelectCell};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { CellContext } from "@tanstack/react-table";
|
|
2
|
+
import React from "react";
|
|
3
|
+
interface NewTextCellOptions {
|
|
4
|
+
popup?: boolean;
|
|
5
|
+
enableEdit?: boolean;
|
|
6
|
+
placeholder?: string;
|
|
7
|
+
}
|
|
8
|
+
export declare const NewTextCell: ({ enableEdit, placeholder, popup }: NewTextCellOptions) => (info: CellContext<any, any>) => React.JSX.Element;
|
|
9
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use client";import{Fragment as a,jsx as p}from"react/jsx-runtime";import l from"react";const x=({enableEdit:i,placeholder:c,popup:r})=>t=>{const e=t.cell.getValue(),[o,n]=l.useState(e);l.useEffect(()=>{n(e)},[e]);const s=()=>{};return p(a,{children:o})};export{x as NewTextCell};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { CellContext } from "@tanstack/react-table";
|
|
2
|
+
import React from "react";
|
|
3
|
+
export declare const ViewLinkCell: (info: CellContext<any, any>) => React.JSX.Element;
|
|
4
|
+
interface SelectCellItem {
|
|
5
|
+
label: string;
|
|
6
|
+
value: string;
|
|
7
|
+
}
|
|
8
|
+
interface NewSelectCellOptions {
|
|
9
|
+
placeholder?: string;
|
|
10
|
+
items: SelectCellItem[];
|
|
11
|
+
}
|
|
12
|
+
export declare const NewSelectCell: ({ placeholder, items }: NewSelectCellOptions) => (info: CellContext<any, any>) => React.JSX.Element;
|
|
13
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use client";import{Fragment as c,jsx as e,jsxs as f}from"react/jsx-runtime";import a from"next/link";import u from"react";import{Select as S,SelectContent as i,SelectGroup as p,SelectItem as C,SelectTrigger as s,SelectValue as m}from"../../../ui/select";const I=t=>{const[l,o]=u.useState(t.cell.getValue()),n=()=>{const r=parseInt(l)};return e(c,{children:e(a,{href:"#",children:"res link"})})},V=({placeholder:t,items:l})=>o=>e(c,{children:f(S,{children:[e(s,{className:"w-[180px]",children:e(m,{placeholder:t||"--"})}),e(i,{children:e(p,{children:l==null?void 0:l.map((n,r)=>e(C,{value:n.value,children:n.label},r))})})]})});export{V as NewSelectCell,I as ViewLinkCell};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use client";import{jsx as r}from"react/jsx-runtime";const o=({children:e})=>r("div",{children:e});export{o as CellWrapper};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use client";import{jsx as t}from"react/jsx-runtime";import o from"react";const m=n=>{const[e,a]=o.useState(n.cell.getValue());return t("div",{className:"flex w-full",children:t("input",{type:"number",value:e,onChange:l=>a(l.target.value),onBlur:()=>{const l=parseInt(e)},className:"grow"})})};export{m as NumberCell};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use client";import{jsx as a}from"react/jsx-runtime";import o from"react";import{CellWrapper as n}from"./container/cellWrapper";const C=e=>{const l=e.cell.getValue(),[t,r]=o.useState(l),c=()=>{console.log("\u66F4\u65B0\u5355\u5143\u683C",e.row.index,e.column.id,t)};return o.useEffect(()=>{r(l)},[l]),a(n,{children:t})};export{C as StringCell};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import type { Table } from "@tanstack/react-table";
|
|
3
|
+
interface DataTablePaginationProps<TData> {
|
|
4
|
+
table: Table<TData>;
|
|
5
|
+
}
|
|
6
|
+
export declare function DataTablePagination<TData>({ table }: DataTablePaginationProps<TData>): import("react").JSX.Element;
|
|
7
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use client";import{jsx as a,jsxs as t}from"react/jsx-runtime";import{ChevronLeftIcon as o,ChevronRightIcon as i,DoubleArrowLeftIcon as l,DoubleArrowRightIcon as c}from"@radix-ui/react-icons";import{MtButton as n}from"../../ui-mt/Button";import{Select as r,SelectContent as g,SelectItem as m,SelectTrigger as p,SelectValue as d}from"../../ui/select";function v({table:e}){return t("div",{className:"flex items-center justify-between px-2",children:[t("div",{className:"text-muted-foreground flex-1 text-sm",children:[e.getFilteredSelectedRowModel().rows.length," of ",e.getFilteredRowModel().rows.length," row(s) selected."]}),t("div",{className:"flex items-center space-x-6 lg:space-x-8",children:[t("div",{className:"flex items-center space-x-2",children:[a("p",{className:"text-sm font-medium",children:"Rows per page"}),t(r,{value:`${e.getState().pagination.pageSize}`,onValueChange:s=>{e.setPageSize(Number(s))},children:[a(p,{className:"h-8 w-[70px]",children:a(d,{placeholder:e.getState().pagination.pageSize})}),a(g,{side:"top",children:[10,20,30,40,50].map(s=>a(m,{value:`${s}`,children:s},s))})]})]}),t("div",{className:"flex w-[100px] items-center justify-center text-sm font-medium",children:["Page ",e.getState().pagination.pageIndex+1," of ",e.getPageCount()]}),t("div",{className:"flex items-center space-x-2",children:[t(n,{variant:"outline",className:"hidden h-8 w-8 p-0 lg:flex",onClick:()=>e.setPageIndex(0),disabled:!e.getCanPreviousPage(),children:[a("span",{className:"sr-only",children:"Go to first page"}),a(l,{className:"h-4 w-4"})]}),t(n,{variant:"outline",className:"h-8 w-8 p-0",onClick:()=>e.previousPage(),disabled:!e.getCanPreviousPage(),children:[a("span",{className:"sr-only",children:"Go to previous page"}),a(o,{className:"h-4 w-4"})]}),t(n,{variant:"outline",className:"h-8 w-8 p-0",onClick:()=>e.nextPage(),disabled:!e.getCanNextPage(),children:[a("span",{className:"sr-only",children:"Go to next page"}),a(i,{className:"h-4 w-4"})]}),t(n,{variant:"outline",className:"hidden h-8 w-8 p-0 lg:flex",onClick:()=>e.setPageIndex(e.getPageCount()-1),disabled:!e.getCanNextPage(),children:[a("span",{className:"sr-only",children:"Go to last page"}),a(c,{className:"h-4 w-4"})]})]})]})]})}export{v as DataTablePagination};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import type { Table } from "@tanstack/react-table";
|
|
3
|
+
interface DataTableViewOptionsProps<TData> {
|
|
4
|
+
table: Table<TData>;
|
|
5
|
+
}
|
|
6
|
+
export declare function DataTableViewOptions<TData>({ table }: DataTableViewOptionsProps<TData>): import("react").JSX.Element;
|
|
7
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use client";import{jsx as o,jsxs as t}from"react/jsx-runtime";import{MixerHorizontalIcon as r}from"@radix-ui/react-icons";import{MtButton as i}from"../../ui-mt/Button";import{DropdownMenu as l,DropdownMenuCheckboxItem as p,DropdownMenuContent as s,DropdownMenuLabel as d,DropdownMenuSeparator as D,DropdownMenuTrigger as u}from"../../ui/dropdown-menu";function g({table:a}){return t(l,{children:[o(u,{asChild:!0,children:t(i,{variant:"outline",size:"sm",className:"ml-auto hidden h-8 lg:flex",children:[o(r,{className:"mr-2 h-4 w-4"}),"View"]})}),t(s,{align:"end",className:"w-[150px]",children:[o(d,{children:"Toggle columns"}),o(D,{}),a.getAllColumns().filter(e=>typeof e.accessorFn!="undefined"&&e.getCanHide()).map(e=>o(p,{className:"capitalize",checked:e.getIsVisible(),onCheckedChange:n=>e.toggleVisibility(!!n),children:e.id},e.id))]})]})}export{g as DataTableViewOptions};
|
|
@@ -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
|
+
"use client";import{jsx as a,jsxs as h}from"react/jsx-runtime";import{createColumnHelper as i,flexRender as m,getCoreRowModel as u,useReactTable as g}from"@tanstack/react-table";import{Table as p,TableBody as T,TableCell as c,TableHead as f,TableHeader as b,TableRow as r}from"../../../ui/table";const o=i(),D=[o.display({id:"actions"}),o.group({header:"Name",footer:e=>e.column.id,columns:[o.accessor("firstName",{cell:e=>e.getValue(),footer:e=>e.column.id}),o.accessor(e=>e.lastName,{id:"lastName",cell:e=>e.getValue(),header:()=>a("span",{children:"Last Name"}),footer:e=>e.column.id})]}),o.group({header:"Info",footer:e=>e.column.id,columns:[o.accessor("age",{header:()=>"Age",footer:e=>e.column.id}),o.group({header:"More Info",columns:[o.accessor("visits",{header:()=>a("span",{children:"Visits"}),footer:e=>e.column.id}),o.accessor("status",{header:"Status",footer:e=>e.column.id}),o.accessor("progress",{header:"Profile Progress",footer:e=>e.column.id})]})]})],N=[{status:"pending",firstName:"m@example.com",lastName:"firstName",age:11,visits:11,progress:22},{status:"pending",firstName:"m@example.com33",lastName:"firstName333",age:11,visits:11,progress:22}];function C({columns:e,data:d}){var n;const l=g({data:d,columns:e,getCoreRowModel:u()});return a("div",{className:"rounded-md border",children:h(p,{children:[a(b,{children:l.getHeaderGroups().map(s=>a(r,{children:s.headers.map(t=>a(f,{children:t.isPlaceholder?null:m(t.column.columnDef.header,t.getContext())},t.id))},s.id))}),a(T,{children:(n=l.getRowModel().rows)!=null&&n.length?l.getRowModel().rows.map(s=>a(r,{"data-state":s.getIsSelected()&&"selected",children:s.getVisibleCells().map(t=>a(c,{children:m(t.column.columnDef.cell,t.getContext())},t.id))},s.id)):a(r,{children:a(c,{colSpan:e.length,className:"h-24 text-center",children:"No results."})})})]})})}function w(){return a(C,{columns:D,data:N})}export{w as DataTableDemo1};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import type { HeaderContext } from "@tanstack/react-table";
|
|
3
|
+
import type { DataTableColumnHeaderProps } from "../types";
|
|
4
|
+
export declare function SimpleHeader<TData = any, TValue = unknown>(props: HeaderContext<TData, TValue>): import("react").JSX.Element;
|
|
5
|
+
export declare function SimpleHeaderRender<TData, TValue>({ column, title, className, }: DataTableColumnHeaderProps<TData, TValue>): import("react").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use client";import{jsx as e,jsxs as o}from"react/jsx-runtime";import{cn as s}from"../../../lib/utils";import{ArrowDownIcon as m,ArrowUpIcon as d,CaretSortIcon as l,EyeNoneIcon as i}from"@radix-ui/react-icons";import{DropdownMenu as p,DropdownMenuContent as u,DropdownMenuItem as n,DropdownMenuSeparator as c,DropdownMenuTrigger as g}from"mtxuilib/ui/dropdown-menu";import{Button as w}from"../../../ui/button";function I(t){const{column:r}=t;return e(D,{column:r,title:"Status"})}function D({column:t,title:r,className:a}){return t.getCanSort()?e("div",{className:s("flex items-center space-x-2",a),children:o(p,{children:[e(g,{asChild:!0,children:o(w,{variant:"ghost",size:"sm",className:"data-[state=open]:bg-accent -ml-3 h-8",children:[e("span",{children:r}),t.getIsSorted()==="desc"?e(m,{className:"ml-2 h-4 w-4"}):t.getIsSorted()==="asc"?e(d,{className:"ml-2 h-4 w-4"}):e(l,{className:"ml-2 h-4 w-4"})]})}),o(u,{align:"start",children:[o(n,{onClick:()=>t.toggleSorting(!1),children:[e(d,{className:"text-muted-foreground/70 mr-2 h-3.5 w-3.5"}),"Asc"]}),o(n,{onClick:()=>t.toggleSorting(!0),children:[e(m,{className:"text-muted-foreground/70 mr-2 h-3.5 w-3.5"}),"Desc"]}),e(c,{}),o(n,{onClick:()=>t.toggleVisibility(!1),children:[e(i,{className:"text-muted-foreground/70 mr-2 h-3.5 w-3.5"}),"Hide"]})]})]})}):e("div",{className:s(a),children:r})}export{I as SimpleHeader,D as SimpleHeaderRender};
|