mtxuilib 0.1.12 → 0.1.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/common/DeleteComfirm.d.ts +20 -0
- package/dist/common/FullCenter.d.ts +2 -0
- package/dist/common/GlobalSearch.d.ts +11 -0
- package/dist/common/MtImage.d.ts +5 -0
- package/dist/common/MtProgressBar.d.ts +1 -0
- package/dist/common/NotFoundGoBack.d.ts +1 -0
- package/dist/common/SlntTree/Slnt.z.d.ts +28 -0
- package/dist/common/SlntTree/SlntChildrenTabs.d.ts +1 -0
- package/dist/common/SlntTree/SlntTreeNode.d.ts +19 -0
- package/dist/common/TrpcQuery.d.ts +0 -0
- package/dist/common/devtools/DebugValue.d.ts +5 -0
- package/dist/common/devtools/DevTools.d.ts +2 -0
- package/dist/common/mtlink.d.ts +14 -0
- package/dist/common/pip/PipExamplePage.d.ts +1 -0
- package/dist/common/pip/ReactDocumentPictureInPicture.d.ts +28 -0
- package/dist/common/react-markdown/Code.d.ts +6 -0
- package/dist/common/react-markdown/MarkdownToolbar.d.ts +4 -0
- package/dist/common/react-markdown/ReactMarkdownExample.d.ts +1 -0
- package/dist/common/schema-form/SchemaFormFieldsRender.d.ts +4 -0
- package/dist/common/schema-form/SchemaFormView.d.ts +12 -0
- package/dist/common/schema-form/schema-form.z.d.ts +90 -0
- package/dist/common/table/SimpleTable.d.ts +4 -0
- package/dist/common/table/cells/ExpenderCell.d.ts +2 -0
- package/dist/common/table/cells/SelectCell.d.ts +12 -0
- package/dist/common/table/cells/Text.d.ts +8 -0
- package/dist/common/table/cells/ViewLink.d.ts +12 -0
- package/dist/common/table/cells/container/cellWrapper.d.ts +6 -0
- package/dist/common/table/cells/number.d.ts +2 -0
- package/dist/common/table/cells/string.d.ts +2 -0
- package/dist/common/table/data-table-pagination.d.ts +6 -0
- package/dist/common/table/data-table-view-options.d.ts +6 -0
- package/dist/common/table/datatable-view-options.d.ts +12 -0
- package/dist/common/table/example/ExampleTable.d.ts +1 -0
- package/dist/common/table/header/SimpleHeader.d.ts +4 -0
- package/dist/common/table/header/header.d.ts +5 -0
- package/dist/common/table/table.z.d.ts +189 -0
- package/dist/common/tailwind-indicator.d.ts +1 -0
- package/dist/common/theme/mode-toggle.d.ts +1 -0
- package/dist/common/theme/theme-toggle.d.ts +1 -0
- package/dist/common/tiptap/MenuBar.d.ts +1 -0
- package/dist/common/tiptap/TiptapEditor.d.ts +5 -0
- package/dist/common/tiptap/examples/Demo-Default.d.ts +1 -0
- package/dist/common/tiptap/examples/Demo-Tiptap.d.ts +1 -0
- package/dist/demos/bigcode/BigCode.d.ts +4 -0
- package/dist/demos/condition-type/serialize.d.ts +3 -0
- package/dist/demos/demo-react-use.d.ts +1 -0
- package/dist/demos/lib.d.ts +3 -0
- package/dist/demos/scrollarea/LongListDemo.d.ts +1 -0
- package/dist/demos/scrollarea/ScrollAreaDemo.d.ts +1 -0
- package/dist/demos/suspense-ssr/ExampleOg.d.ts +4 -0
- package/dist/demos/suspense-ssr/ExamplePage.d.ts +3 -0
- package/dist/demos/suspense-ssr/ExampleProviderProviders.d.ts +4 -0
- package/dist/demos/suspense-ssr/ReadMe.d.ts +1 -0
- package/dist/demos/suspense-ssr/examplesPostDetail.d.ts +3 -0
- package/dist/demos/suspense-ssr/examplesPosts.d.ts +1 -0
- package/dist/form/EditFormToolbar.d.ts +13 -0
- package/dist/form/ZodForm.d.ts +14 -0
- package/dist/form/deleteConform.d.ts +8 -0
- package/dist/hooks/use-config.d.ts +5 -0
- package/dist/hooks/use-local-storage.d.ts +2 -0
- package/dist/hooks/use-lock-body.d.ts +1 -0
- package/dist/hooks/use-media-query.d.ts +7 -0
- package/dist/hooks/use-mutation-observer.d.ts +7 -0
- package/dist/hooks/use-router.d.ts +18 -0
- package/dist/hooks/useIsIntersecting.d.ts +2 -0
- package/dist/hooks/useLayoutPath.d.ts +2 -0
- package/dist/hooks/useMounted.d.ts +1 -0
- package/dist/hooks/useScript.d.ts +3 -0
- package/dist/icons/Cross2Icon.d.ts +1 -0
- package/dist/icons/DotsHorizontalIcon.d.ts +1 -0
- package/dist/icons/MixerHorizontal.d.ts +1 -0
- package/dist/icons/crazy-spinner.d.ts +2 -0
- package/dist/icons/font-default.d.ts +3 -0
- package/dist/icons/font-mono.d.ts +3 -0
- package/dist/icons/font-serif.d.ts +3 -0
- package/dist/icons/github.d.ts +3 -0
- package/dist/icons/icons.d.ts +133 -0
- package/dist/icons/index.d.ts +4 -0
- package/dist/icons/loading-circle.d.ts +3 -0
- package/dist/icons/magic.d.ts +3 -0
- package/dist/index.d.ts +1 -0
- package/dist/lib/111.test.d.ts +1 -0
- package/dist/lib/clientlib/clientlib.d.ts +6 -0
- package/dist/lib/clientlib/domutils.d.ts +2 -0
- package/dist/lib/clientlib/selectPath.d.ts +4 -0
- package/dist/lib/componentHelper.d.ts +7 -0
- package/dist/lib/errors.d.ts +4 -0
- package/dist/lib/fetch-proxy/fetch-proxy.d.ts +1 -0
- package/dist/lib/highlight-code.d.ts +1 -0
- package/dist/lib/htmlparse/components/ItemActionButton.d.ts +2 -0
- package/dist/lib/htmlparse/htmlParse.d.ts +2 -0
- package/dist/lib/react-query/ReactQueryProvider.d.ts +4 -0
- package/dist/lib/render.d.ts +4 -0
- package/dist/lib/service-worker/ServiceWorkerMain.d.ts +1 -0
- package/dist/lib/service-worker/lib.d.ts +1 -0
- package/dist/lib/service-worker/worker.d.ts +1 -0
- package/dist/lib/service-worker.d.ts +5 -0
- package/dist/lib/trpc/types.d.ts +6 -0
- package/dist/lib/trpc-query/TrpcComponents/TrpcDehydrate.d.ts +5 -0
- package/dist/lib/url.d.ts +2 -0
- package/dist/lib/useScript.d.ts +3 -0
- package/dist/lib/utils.d.ts +27 -0
- package/dist/lib/zod/common.z.d.ts +71 -0
- package/dist/lib/zod/demo.z.d.ts +1 -0
- package/dist/lib/zod/listView.z.d.ts +7688 -0
- package/dist/lib/zod/meta.d.ts +51 -0
- package/dist/lib/zod/msg.z.d.ts +9 -0
- package/dist/lib/zod/taskStatus.z.d.ts +17 -0
- package/dist/lib/zustand.d.ts +5 -0
- package/dist/misc/CustomErrorRetry.d.ts +4 -0
- package/dist/misc/ExampleErrorDemo.d.ts +4 -0
- package/dist/misc/MtErrorBoundary.d.ts +16 -0
- package/dist/misc/MtErrorBoundary.stories.d.ts +15 -0
- package/dist/misc/MtErrorBoundaryV2.d.ts +2 -0
- package/dist/misc/MtErrorBoundaryV2.stories.d.ts +17 -0
- package/dist/mtapp/History.d.ts +24 -0
- package/dist/mtapp/MtAppProvider.d.ts +58 -0
- package/dist/mtedtior/AiButtons.d.ts +10 -0
- package/dist/mtedtior/MtEditor.d.ts +29 -0
- package/dist/mtedtior/components/editor-bubble-item.d.ts +9 -0
- package/dist/mtedtior/components/editor-bubble.d.ts +7 -0
- package/dist/mtedtior/components/editor-command-item.d.ts +20 -0
- package/dist/mtedtior/components/editor-command.d.ts +29 -0
- package/dist/mtedtior/components/editor.d.ts +21 -0
- package/dist/mtedtior/components/index.d.ts +8 -0
- package/dist/mtedtior/content.d.ts +132 -0
- package/dist/mtedtior/extensions/ai-highlight.d.ts +22 -0
- package/dist/mtedtior/extensions/custom-keymap.d.ts +10 -0
- package/dist/mtedtior/extensions/drag-and-drop.d.ts +6 -0
- package/dist/mtedtior/extensions/image-resizer.d.ts +2 -0
- package/dist/mtedtior/extensions/index.d.ts +12 -0
- package/dist/mtedtior/extensions/slash-command.d.ts +33 -0
- package/dist/mtedtior/extensions/updated-image.d.ts +2 -0
- package/dist/mtedtior/generative/ai-completion-command.d.ts +5 -0
- package/dist/mtedtior/generative/ai-selector-commands.d.ts +5 -0
- package/dist/mtedtior/generative/ai-selector.d.ts +6 -0
- package/dist/mtedtior/generative/generative-menu-switch.d.ts +8 -0
- package/dist/mtedtior/mtextesions/DemoComponent.d.ts +2 -0
- package/dist/mtedtior/plugins/index.d.ts +1 -0
- package/dist/mtedtior/plugins/upload-images.d.ts +13 -0
- package/dist/mtedtior/selectors/color-selector.d.ts +8 -0
- package/dist/mtedtior/selectors/link-selector.d.ts +8 -0
- package/dist/mtedtior/selectors/node-selector.d.ts +14 -0
- package/dist/mtedtior/selectors/text-buttons.d.ts +1 -0
- package/dist/mtedtior/tw_extensions.d.ts +1 -0
- package/dist/mtedtior/utils/summary.d.ts +1 -0
- package/dist/mtedtior/utils/utils.d.ts +9 -0
- package/dist/mtedtior/utils.d.ts +9 -0
- package/dist/scripts/build-registry.d.ts +3 -0
- package/dist/service-worker/ServiceWorkerMain.d.ts +1 -0
- package/dist/service-worker/lib.d.ts +1 -0
- package/dist/service-worker/sw.d.ts +1 -0
- package/dist/styled-system/css/conditions.d.mts +3 -0
- package/dist/styled-system/css/css.d.mts +6 -0
- package/dist/styled-system/css/cva.d.mts +14 -0
- package/dist/styled-system/css/cx.d.mts +1 -0
- package/dist/styled-system/css/index.d.mts +4 -0
- package/dist/styled-system/css/sva.d.mts +10 -0
- package/dist/styled-system/helpers.d.mts +39 -0
- package/dist/styled-system/patterns/aspect-ratio.d.mts +5 -0
- package/dist/styled-system/patterns/bleed.d.mts +5 -0
- package/dist/styled-system/patterns/box.d.mts +5 -0
- package/dist/styled-system/patterns/center.d.mts +5 -0
- package/dist/styled-system/patterns/circle.d.mts +5 -0
- package/dist/styled-system/patterns/container.d.mts +5 -0
- package/dist/styled-system/patterns/cq.d.mts +5 -0
- package/dist/styled-system/patterns/divider.d.mts +5 -0
- package/dist/styled-system/patterns/flex.d.mts +5 -0
- package/dist/styled-system/patterns/float.d.mts +5 -0
- package/dist/styled-system/patterns/grid-item.d.mts +5 -0
- package/dist/styled-system/patterns/grid.d.mts +5 -0
- package/dist/styled-system/patterns/hstack.d.mts +5 -0
- package/dist/styled-system/patterns/index.d.mts +20 -0
- package/dist/styled-system/patterns/link-overlay.d.mts +5 -0
- package/dist/styled-system/patterns/spacer.d.mts +5 -0
- package/dist/styled-system/patterns/square.d.mts +5 -0
- package/dist/styled-system/patterns/stack.d.mts +5 -0
- package/dist/styled-system/patterns/visually-hidden.d.mts +5 -0
- package/dist/styled-system/patterns/vstack.d.mts +5 -0
- package/dist/styled-system/patterns/wrap.d.mts +5 -0
- package/dist/styled-system/tokens/index.d.mts +6 -0
- package/dist/tailwind copy.d.cts +2 -0
- package/dist/tailwind.d.ts +3 -0
- package/dist/types/common.d.ts +16 -0
- package/dist/ui/accordion.d.ts +7 -0
- package/dist/ui/alert-dialog.d.ts +20 -0
- package/dist/ui/alert.d.ts +8 -0
- package/dist/ui/aspect-ratio.d.ts +4 -0
- package/dist/ui/avatar.d.ts +6 -0
- package/dist/ui/badge.d.ts +9 -0
- package/dist/ui/breadcrumb.d.ts +19 -0
- package/dist/ui/button.d.ts +11 -0
- package/dist/ui/calendar.d.ts +8 -0
- package/dist/ui/card.d.ts +8 -0
- package/dist/ui/checkbox.d.ts +4 -0
- package/dist/ui/collapsible.d.ts +6 -0
- package/dist/ui/command.d.ts +50 -0
- package/dist/ui/context-menu.d.ts +27 -0
- package/dist/ui/dialog.d.ts +19 -0
- package/dist/ui/drawer.d.ts +24 -0
- package/dist/ui/dropdown-menu.d.ts +27 -0
- package/dist/ui/form.d.ts +23 -0
- package/dist/ui/hover-card.d.ts +6 -0
- package/dist/ui/input.d.ts +5 -0
- package/dist/ui/label.d.ts +5 -0
- package/dist/ui/menubar.d.ts +31 -0
- package/dist/ui/navigation-menu.d.ts +12 -0
- package/dist/ui/pagination.d.ts +28 -0
- package/dist/ui/popover.d.ts +6 -0
- package/dist/ui/progress.d.ts +4 -0
- package/dist/ui/radio-group.d.ts +5 -0
- package/dist/ui/resizable.d.ts +24 -0
- package/dist/ui/scroll-area.d.ts +5 -0
- package/dist/ui/select.d.ts +11 -0
- package/dist/ui/separator.d.ts +4 -0
- package/dist/ui/sheet.d.ts +25 -0
- package/dist/ui/skeleton.d.ts +2 -0
- package/dist/ui/slider.d.ts +4 -0
- package/dist/ui/sonner.d.ts +5 -0
- package/dist/ui/switch.d.ts +4 -0
- package/dist/ui/table.d.ts +10 -0
- package/dist/ui/tabs.d.ts +7 -0
- package/dist/ui/textarea.d.ts +5 -0
- package/dist/ui/toast.d.ts +15 -0
- package/dist/ui/toaster.d.ts +1 -0
- package/dist/ui/toggle.d.ts +12 -0
- package/dist/ui/tooltip.d.ts +7 -0
- package/dist/ui/use-toast.d.ts +44 -0
- package/dist/ui-mt/Boundary.d.ts +9 -0
- package/dist/ui-mt/Button.d.ts +2 -0
- package/dist/ui-mt/DropdownMenuItemLink.d.ts +7 -0
- package/dist/ui-mt/ErrorMessage.d.ts +2 -0
- package/dist/ui-mt/ExampleTree.d.ts +1 -0
- package/dist/ui-mt/MtDialog.d.ts +19 -0
- package/dist/ui-mt/MtForm.d.ts +2 -0
- package/dist/ui-mt/NavTag.d.ts +10 -0
- package/dist/ui-mt/ScreenPanel.d.ts +4 -0
- package/dist/ui-mt/Separator.d.ts +2 -0
- package/dist/ui-mt/SimpleModel.d.ts +4 -0
- package/dist/ui-mt/SimpleTag.d.ts +5 -0
- package/dist/ui-mt/Slot.d.ts +1 -0
- package/dist/ui-mt/Tree.d.ts +14 -0
- package/dist/ui-mt/WithLinkIf.d.ts +4 -0
- package/dist/ui-mt/headline.d.ts +8 -0
- package/dist/ui-mt/input-field/InputField.d.ts +4 -0
- package/dist/ui-mt/input-field/RichEditorInput.d.ts +6 -0
- package/dist/ui-mt/input-field/SingleUploadForm.d.ts +2 -0
- package/dist/ui-mt/input-field/TextArea.d.ts +4 -0
- package/dist/ui-mt/input-field/TextFileInput.d.ts +8 -0
- package/dist/ui-mt/input-field/select/InputSelect.d.ts +8 -0
- package/dist/ui-mt/inputs/SearchInput.d.ts +2 -0
- package/dist/ui-mt/inputs/TaskStatusInput.d.ts +2 -0
- package/dist/ui-mt/inputs/UrlsInput.d.ts +2 -0
- package/dist/ui-mt/inputs/input.d.ts +2 -0
- package/dist/ui-mt/modal/MtModal.d.ts +30 -0
- package/dist/ui-mt/mt-tree-view/MtTreeViewExample.d.ts +1 -0
- package/dist/ui-mt/mt-tree-view/mt-tree-view-api.d.ts +38 -0
- package/dist/ui-mt/mt-tree-view/mt-treeview.d.ts +24 -0
- package/dist/ui-mt/pagination.d.ts +7 -0
- package/dist/ui-mt/skeleton/NewLoading.d.ts +1 -0
- package/dist/ui-mt/skeleton/SkeletonDashboardShell.d.ts +0 -0
- package/dist/ui-mt/skeleton/SkeletonInput.d.ts +1 -0
- package/dist/ui-mt/skeleton/SkeletonLayout.d.ts +1 -0
- package/dist/ui-mt/skeleton/SkeletonLoading.d.ts +3 -0
- package/dist/ui-mt/skeleton/skeleton-card.d.ts +3 -0
- package/dist/ui-mt/skeleton/skeleton2.d.ts +1 -0
- package/dist/ui-mt/skeleton/skeletons.d.ts +6 -0
- package/dist/ui-mt/skeleton.d.ts +5 -0
- package/dist/ui-mt/types.d.ts +5 -0
- package/dist/ui-vamp/alert.d.ts +17 -0
- package/dist/ui-vamp/button.d.ts +13 -0
- package/dist/ui-vamp/card.d.ts +23 -0
- package/dist/ui-vamp/chip.d.ts +11 -0
- package/dist/ui-vamp/dropdown.d.ts +12 -0
- package/dist/ui-vamp/external-link.d.ts +7 -0
- package/dist/ui-vamp/input.d.ts +13 -0
- package/dist/ui-vamp/keyvalue.d.ts +7 -0
- package/dist/ui-vamp/mobile-nav-button.d.ts +1 -0
- package/dist/ui-vamp/modal.d.ts +11 -0
- package/dist/ui-vamp/textarea.d.ts +12 -0
- package/dist/ui-vamp/toggle-group.d.ts +8 -0
- package/dist/video-player/mt-video-player.d.ts +6 -0
- package/dist/video-player/video-player2/modal-video-player.d.ts +12 -0
- package/package.json +1 -1
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type React from "react";
|
|
2
|
+
interface RichTextInputProps extends Omit<React.InputHTMLAttributes<HTMLInputElement>, "name"> {
|
|
3
|
+
name: string;
|
|
4
|
+
}
|
|
5
|
+
export declare const RichTextInput: (props: RichTextInputProps) => import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
interface TextFileInputProps extends Omit<React.InputHTMLAttributes<HTMLInputElement>, 'name'> {
|
|
3
|
+
onOpenFile?: (data: any) => void;
|
|
4
|
+
asChild?: boolean;
|
|
5
|
+
name: string;
|
|
6
|
+
}
|
|
7
|
+
export declare const TextFileInput: ({ onOpenFile, name, asChild, ...props }: TextFileInputProps) => import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
export interface InputProps extends React.InputHTMLAttributes<HTMLInputElement> {
|
|
3
|
+
name: string;
|
|
4
|
+
label?: string;
|
|
5
|
+
kind?: string;
|
|
6
|
+
}
|
|
7
|
+
declare const InputSelectField: React.ForwardRefExoticComponent<InputProps & React.RefAttributes<HTMLInputElement>>;
|
|
8
|
+
export { InputSelectField };
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { type Renderable } from "mtxuilib/lib/render";
|
|
3
|
+
import { type StateCreator } from "zustand/vanilla";
|
|
4
|
+
export type ModalSliceProps = {
|
|
5
|
+
open?: boolean;
|
|
6
|
+
};
|
|
7
|
+
export interface ModalSliceState extends ModalSliceProps {
|
|
8
|
+
_hasHydrated?: boolean;
|
|
9
|
+
setHasHydrated: (_hasHydrated: boolean) => void;
|
|
10
|
+
modalComp?: Renderable<unknown>;
|
|
11
|
+
openModal: (modalComp: Renderable<unknown>) => void;
|
|
12
|
+
setOpen: (open: boolean) => void;
|
|
13
|
+
}
|
|
14
|
+
export declare const createModalSlice: StateCreator<ModalSliceState, [], [], ModalSliceState>;
|
|
15
|
+
type MainState = ModalSliceState;
|
|
16
|
+
export declare const modalContext: import("react").Context<(Omit<Omit<import("zustand").StoreApi<ModalSliceState>, "setState"> & {
|
|
17
|
+
setState<A extends string | {
|
|
18
|
+
type: string;
|
|
19
|
+
}>(partial: ModalSliceState | Partial<ModalSliceState> | ((state: ModalSliceState) => ModalSliceState | Partial<ModalSliceState>), replace?: boolean | undefined, action?: A | undefined): void;
|
|
20
|
+
}, "setState"> & {
|
|
21
|
+
setState(nextStateOrUpdater: ModalSliceState | Partial<ModalSliceState> | ((state: import("immer").WritableDraft<ModalSliceState>) => void), shouldReplace?: boolean | undefined, action?: string | {
|
|
22
|
+
type: string;
|
|
23
|
+
} | undefined): void;
|
|
24
|
+
}) | null>;
|
|
25
|
+
type ModalProviderProps = React.PropsWithChildren<ModalSliceProps>;
|
|
26
|
+
export declare const ModalProvider: (props: ModalProviderProps) => import("react/jsx-runtime").JSX.Element;
|
|
27
|
+
export declare const DEFAULT_USE_SHALLOW = true;
|
|
28
|
+
export declare function useModal(): MainState;
|
|
29
|
+
export declare function useModal<T>(selector: (state: MainState) => T): T;
|
|
30
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import * as AccordionPrimitive from "@radix-ui/react-accordion";
|
|
2
|
+
import React, { ReactNode } from "react";
|
|
3
|
+
type TreeViewElement = {
|
|
4
|
+
id: string;
|
|
5
|
+
name: string;
|
|
6
|
+
isSelectable?: boolean;
|
|
7
|
+
children?: TreeViewElement[];
|
|
8
|
+
};
|
|
9
|
+
interface TreeViewComponentProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
10
|
+
}
|
|
11
|
+
declare const Tree: React.ForwardRefExoticComponent<{
|
|
12
|
+
initialSelectedId?: string | undefined;
|
|
13
|
+
indicator?: boolean | undefined;
|
|
14
|
+
elements?: TreeViewElement[] | undefined;
|
|
15
|
+
initialExpendedItems?: string[] | undefined;
|
|
16
|
+
openIcon?: React.ReactNode;
|
|
17
|
+
closeIcon?: React.ReactNode;
|
|
18
|
+
} & TreeViewComponentProps & React.RefAttributes<HTMLDivElement>>;
|
|
19
|
+
interface FolderComponentProps extends React.ComponentPropsWithoutRef<typeof AccordionPrimitive.Item> {
|
|
20
|
+
}
|
|
21
|
+
declare const Folder: React.ForwardRefExoticComponent<{
|
|
22
|
+
expendedItems?: string[] | undefined;
|
|
23
|
+
element: ReactNode;
|
|
24
|
+
isSelectable?: boolean | undefined;
|
|
25
|
+
isSelect?: boolean | undefined;
|
|
26
|
+
} & FolderComponentProps & React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
27
|
+
declare const File: React.ForwardRefExoticComponent<{
|
|
28
|
+
value: string;
|
|
29
|
+
handleSelect?: ((id: string) => void) | undefined;
|
|
30
|
+
isSelectable?: boolean | undefined;
|
|
31
|
+
isSelect?: boolean | undefined;
|
|
32
|
+
fileIcon?: React.ReactNode;
|
|
33
|
+
} & Omit<AccordionPrimitive.AccordionTriggerProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
34
|
+
declare const CollapseButton: React.ForwardRefExoticComponent<{
|
|
35
|
+
elements: TreeViewElement[];
|
|
36
|
+
expandAll?: boolean | undefined;
|
|
37
|
+
} & React.HTMLAttributes<HTMLButtonElement> & React.RefAttributes<HTMLButtonElement>>;
|
|
38
|
+
export { Tree, Folder, File, CollapseButton, type TreeViewElement };
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { TreeViewElement } from "./mt-tree-view-api";
|
|
3
|
+
interface TreeViewComponentProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
4
|
+
}
|
|
5
|
+
type TreeViewProps = {
|
|
6
|
+
initialSelectedId?: string;
|
|
7
|
+
elements: TreeViewElement[];
|
|
8
|
+
indicator?: boolean;
|
|
9
|
+
} & ({
|
|
10
|
+
initialExpendedItems?: string[];
|
|
11
|
+
expandAll?: false;
|
|
12
|
+
} | {
|
|
13
|
+
initialExpendedItems?: undefined;
|
|
14
|
+
expandAll: true;
|
|
15
|
+
}) & TreeViewComponentProps;
|
|
16
|
+
export declare const TreeView: {
|
|
17
|
+
({ elements, className, initialSelectedId, initialExpendedItems, expandAll, indicator, }: TreeViewProps): import("react/jsx-runtime").JSX.Element;
|
|
18
|
+
displayName: string;
|
|
19
|
+
};
|
|
20
|
+
export declare const TreeItem: React.ForwardRefExoticComponent<{
|
|
21
|
+
elements?: TreeViewElement[] | undefined;
|
|
22
|
+
indicator?: boolean | undefined;
|
|
23
|
+
} & React.HTMLAttributes<HTMLUListElement> & React.RefAttributes<HTMLUListElement>>;
|
|
24
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default function NewLoading(): import("react/jsx-runtime").JSX.Element;
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function SkeletonInput(): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const SkeletonLayout: () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function ItemSkeleton(): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import * as AlertDialogPrimitives from "@radix-ui/react-alert-dialog";
|
|
2
|
+
import * as React from "react";
|
|
3
|
+
type AlertProps = AlertDialogPrimitives.AlertDialogProps;
|
|
4
|
+
export declare function Alert({ ...props }: AlertProps): import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
export declare namespace Alert {
|
|
6
|
+
var Trigger: React.ForwardRefExoticComponent<AlertDialogPrimitives.AlertDialogTriggerProps & React.RefAttributes<HTMLButtonElement>>;
|
|
7
|
+
var Portal: React.FC<AlertDialogPrimitives.AlertDialogPortalProps>;
|
|
8
|
+
var Content: React.ForwardRefExoticComponent<AlertDialogPrimitives.AlertDialogContentProps & React.RefAttributes<HTMLDivElement>>;
|
|
9
|
+
var Header: ({ className, ...props }: AlertHeaderProps) => import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
var Title: React.ForwardRefExoticComponent<AlertDialogPrimitives.AlertDialogTitleProps & React.RefAttributes<HTMLHeadingElement>>;
|
|
11
|
+
var Description: React.ForwardRefExoticComponent<AlertDialogPrimitives.AlertDialogDescriptionProps & React.RefAttributes<HTMLParagraphElement>>;
|
|
12
|
+
var Footer: ({ className, ...props }: AlertHeaderProps) => import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
var Cancel: React.ForwardRefExoticComponent<AlertDialogPrimitives.AlertDialogCancelProps & React.RefAttributes<HTMLButtonElement>>;
|
|
14
|
+
var Action: React.ForwardRefExoticComponent<AlertDialogPrimitives.AlertDialogActionProps & React.RefAttributes<HTMLButtonElement>>;
|
|
15
|
+
}
|
|
16
|
+
type AlertHeaderProps = React.HTMLAttributes<HTMLDivElement>;
|
|
17
|
+
export {};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { type VariantProps } from "class-variance-authority";
|
|
2
|
+
import type { ComponentProps } from "react";
|
|
3
|
+
type ButtonProps = ComponentProps<"button">;
|
|
4
|
+
declare const buttonStyles: (props?: ({
|
|
5
|
+
intent?: "primary" | "secondary" | "outline" | "text" | "tertiary" | "danger" | null | undefined;
|
|
6
|
+
fullWidth?: boolean | null | undefined;
|
|
7
|
+
size?: "small" | "noPadding" | "regular" | null | undefined;
|
|
8
|
+
borderRadius?: "lg" | "full" | null | undefined;
|
|
9
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
10
|
+
export interface TButtonProps extends ButtonProps, VariantProps<typeof buttonStyles> {
|
|
11
|
+
}
|
|
12
|
+
export declare function Button({ intent, borderRadius, size, fullWidth, className, ...props }: TButtonProps): import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
export {};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import type * as React from "react";
|
|
2
|
+
interface CardProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
3
|
+
}
|
|
4
|
+
export declare function Card({ className, ...props }: CardProps): import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
export declare namespace Card {
|
|
6
|
+
var Header: ({ className, ...props }: CardHeaderProps) => import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
var Content: ({ className, ...props }: CardContentProps) => import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
var Footer: ({ className, ...props }: CardFooterProps) => import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
var Title: ({ className, ...props }: CardTitleProps) => import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
var Description: ({ className, ...props }: CardDescriptionProps) => import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
var Skeleton: () => import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
}
|
|
13
|
+
interface CardHeaderProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
14
|
+
}
|
|
15
|
+
interface CardContentProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
16
|
+
}
|
|
17
|
+
interface CardFooterProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
18
|
+
}
|
|
19
|
+
interface CardTitleProps extends React.HTMLAttributes<HTMLHeadingElement> {
|
|
20
|
+
}
|
|
21
|
+
interface CardDescriptionProps extends React.HTMLAttributes<HTMLParagraphElement> {
|
|
22
|
+
}
|
|
23
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { type VariantProps } from "class-variance-authority";
|
|
2
|
+
import type { ComponentProps } from "react";
|
|
3
|
+
type ChipProps = ComponentProps<"span">;
|
|
4
|
+
declare const chipStyles: (props?: ({
|
|
5
|
+
intent?: "default" | "green" | "purple" | "rose" | null | undefined;
|
|
6
|
+
size?: "small" | "regular" | null | undefined;
|
|
7
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
8
|
+
export interface TChipProps extends ChipProps, VariantProps<typeof chipStyles> {
|
|
9
|
+
}
|
|
10
|
+
export declare function Chip({ intent, size, className, ...props }: TChipProps): import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import * as DropdownMenuPrimitive from "@radix-ui/react-dropdown-menu";
|
|
2
|
+
import * as React from "react";
|
|
3
|
+
type DropdownMenuProps = DropdownMenuPrimitive.DropdownMenuProps;
|
|
4
|
+
export declare function DropdownMenu({ ...props }: DropdownMenuProps): import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
export declare namespace DropdownMenu {
|
|
6
|
+
var Trigger: React.ForwardRefExoticComponent<DropdownMenuPrimitive.DropdownMenuTriggerProps & React.RefAttributes<HTMLButtonElement>>;
|
|
7
|
+
var Portal: React.FC<DropdownMenuPrimitive.DropdownMenuPortalProps>;
|
|
8
|
+
var Content: React.ForwardRefExoticComponent<Pick<import("@radix-ui/react-menu").MenuContentProps & React.RefAttributes<HTMLDivElement>, "prefix" | "translate" | "content" | "popover" | "style" | "slot" | "title" | "className" | "asChild" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "autoFocus" | "contentEditable" | "contextMenu" | "draggable" | "hidden" | "id" | "lang" | "nonce" | "spellCheck" | "tabIndex" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "property" | "rel" | "resource" | "rev" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "popoverTargetAction" | "popoverTarget" | "onToggle" | "onBeforeToggle" | "inert" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-braillelabel" | "aria-brailleroledescription" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colindextext" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-description" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowindextext" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "children" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onResize" | "onResizeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerLeave" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "onTransitionCancel" | "onTransitionCancelCapture" | "onTransitionRun" | "onTransitionRunCapture" | "onTransitionStart" | "onTransitionStartCapture" | "key" | "forceMount" | "loop" | "align" | "onEscapeKeyDown" | "onPointerDownOutside" | "onFocusOutside" | "onInteractOutside" | "onCloseAutoFocus" | "side" | "sideOffset" | "alignOffset" | "arrowPadding" | "collisionBoundary" | "collisionPadding" | "sticky" | "hideWhenDetached" | "avoidCollisions" | "onEntryFocus" | "updatePositionStrategy"> & React.RefAttributes<HTMLDivElement>>;
|
|
9
|
+
var Item: React.ForwardRefExoticComponent<DropdownMenuPrimitive.DropdownMenuItemProps & React.RefAttributes<HTMLDivElement>>;
|
|
10
|
+
var Separator: React.ForwardRefExoticComponent<DropdownMenuPrimitive.DropdownMenuSeparatorProps & React.RefAttributes<HTMLDivElement>>;
|
|
11
|
+
}
|
|
12
|
+
export {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { ComponentProps } from "react";
|
|
2
|
+
type ExternalLinkProps = ComponentProps<"a">;
|
|
3
|
+
interface TExternalLink extends ExternalLinkProps {
|
|
4
|
+
children?: React.ReactNode;
|
|
5
|
+
}
|
|
6
|
+
export declare function ExternalLink({ children, className, ...props }: TExternalLink): import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export {};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { type VariantProps } from "class-variance-authority";
|
|
2
|
+
import type { ComponentProps } from "react";
|
|
3
|
+
type InputProps = ComponentProps<"input">;
|
|
4
|
+
declare const inputStyles: (props?: ({
|
|
5
|
+
intent?: "primary" | "search" | null | undefined;
|
|
6
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
7
|
+
export interface Props extends InputProps, VariantProps<typeof inputStyles> {
|
|
8
|
+
id: string;
|
|
9
|
+
label?: string;
|
|
10
|
+
isPending?: boolean;
|
|
11
|
+
}
|
|
12
|
+
export declare function Input({ intent, className, name, label, id, isPending, ...props }: Props): import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
export {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { ReactNode } from "react";
|
|
2
|
+
interface KeyValueProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
3
|
+
label: string;
|
|
4
|
+
value: string | ReactNode;
|
|
5
|
+
}
|
|
6
|
+
export declare function KeyValue({ className, label, value, ...props }: KeyValueProps): import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function MobileNavButton(): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import * as Dialog from "@radix-ui/react-dialog";
|
|
2
|
+
import * as React from "react";
|
|
3
|
+
type ModalProps = Dialog.DialogProps;
|
|
4
|
+
export declare function Modal({ ...props }: ModalProps): import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
export declare namespace Modal {
|
|
6
|
+
var Trigger: React.ForwardRefExoticComponent<Dialog.DialogTriggerProps & React.RefAttributes<HTMLButtonElement>>;
|
|
7
|
+
var Portal: React.FC<Dialog.DialogPortalProps>;
|
|
8
|
+
var Title: React.ForwardRefExoticComponent<Dialog.DialogTitleProps & React.RefAttributes<HTMLDivElement>>;
|
|
9
|
+
var Content: React.ForwardRefExoticComponent<Dialog.DialogContentProps & React.RefAttributes<HTMLDivElement>>;
|
|
10
|
+
}
|
|
11
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { type VariantProps } from "class-variance-authority";
|
|
2
|
+
import type { ComponentProps } from "react";
|
|
3
|
+
type TextAreaProps = ComponentProps<"textarea">;
|
|
4
|
+
declare const textAreaStyles: (props?: ({
|
|
5
|
+
intent?: "primary" | null | undefined;
|
|
6
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
7
|
+
export interface Props extends TextAreaProps, VariantProps<typeof textAreaStyles> {
|
|
8
|
+
id: string;
|
|
9
|
+
label?: string;
|
|
10
|
+
}
|
|
11
|
+
export declare function TextArea({ intent, id, name, label, ...props }: Props): import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import * as ToggleGroupPrimitive from "@radix-ui/react-toggle-group";
|
|
2
|
+
import * as React from "react";
|
|
3
|
+
type ToggleGroupProps = ToggleGroupPrimitive.ToggleGroupSingleProps;
|
|
4
|
+
export declare function ToggleGroup({ ...props }: ToggleGroupProps): import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
export declare namespace ToggleGroup {
|
|
6
|
+
var Item: React.ForwardRefExoticComponent<ToggleGroupPrimitive.ToggleGroupItemProps & React.RefAttributes<HTMLButtonElement>>;
|
|
7
|
+
}
|
|
8
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { StaticImageData } from "next/image";
|
|
2
|
+
interface ModalVideoProps {
|
|
3
|
+
thumb: StaticImageData;
|
|
4
|
+
thumbWidth: number;
|
|
5
|
+
thumbHeight: number;
|
|
6
|
+
thumbAlt: string;
|
|
7
|
+
video: string;
|
|
8
|
+
videoWidth: number;
|
|
9
|
+
videoHeight: number;
|
|
10
|
+
}
|
|
11
|
+
export default function ModalVideo({ thumb, thumbWidth, thumbHeight, thumbAlt, video, videoWidth, videoHeight, }: ModalVideoProps): import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
export {};
|