mtxuilib 0.1.87 → 0.1.90

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (44) hide show
  1. package/dist/common/HtmlChangesObserver.d.ts +0 -1
  2. package/dist/demos/suspense-ssr/ExampleProviderProviders.d.ts +0 -1
  3. package/dist/form/EditFormToolbar.d.ts +8 -8
  4. package/dist/form/ZodForm.d.ts +0 -1
  5. package/dist/hooks/use-router.d.ts +3 -3
  6. package/dist/icons/icons.d.ts +0 -1
  7. package/dist/lib/clientlib.d.ts +0 -1
  8. package/dist/lib/reactqueryGraphql/fetcher.d.ts +9 -0
  9. package/dist/lib/reactqueryGraphql/query-utils.d.ts +26 -0
  10. package/dist/lib/render.d.ts +0 -1
  11. package/dist/misc/ExampleErrorDemo.d.ts +0 -1
  12. package/dist/misc/MtErrorBoundaryV2.stories.d.ts +1 -4
  13. package/dist/mtapp/History.d.ts +0 -1
  14. package/dist/mtapp/MtAppProvider.d.ts +1 -2
  15. package/dist/mtedtior/LzMtEditor.d.ts +3 -4
  16. package/dist/mtedtior/components/editor-command-item.d.ts +4 -5
  17. package/dist/mtedtior/components/editor-command.d.ts +8 -8
  18. package/dist/mtedtior/components/editor.d.ts +2 -2
  19. package/dist/tailwind copy.d.cts +1 -1
  20. package/dist/types/common.d.ts +0 -1
  21. package/dist/ui/aspect-ratio.d.ts +0 -1
  22. package/dist/ui/breadcrumb.d.ts +1 -1
  23. package/dist/ui/collapsible.d.ts +0 -1
  24. package/dist/ui/command.d.ts +17 -17
  25. package/dist/ui/context-menu.d.ts +3 -3
  26. package/dist/ui/drawer.d.ts +1 -1
  27. package/dist/ui/dropdown-menu.d.ts +3 -3
  28. package/dist/ui/form.d.ts +1 -1
  29. package/dist/ui/menubar.d.ts +3 -3
  30. package/dist/ui/resizable.d.ts +0 -1
  31. package/dist/ui/skeleton.d.ts +0 -1
  32. package/dist/ui/sonner.d.ts +0 -1
  33. package/dist/ui-mt/Button.d.ts +0 -1
  34. package/dist/ui-mt/MtForm.d.ts +0 -1
  35. package/dist/ui-mt/Separator.d.ts +0 -1
  36. package/dist/ui-mt/SimpleModel.d.ts +0 -1
  37. package/dist/ui-mt/Tree.d.ts +5 -5
  38. package/dist/ui-mt/headline.d.ts +0 -1
  39. package/dist/ui-mt/inputs/input.d.ts +0 -1
  40. package/dist/ui-mt/modal/MtModal.d.ts +0 -1
  41. package/dist/ui-mt/mt-tree-view/mt-tree-view-api.d.ts +11 -11
  42. package/dist/ui-mt/mt-tree-view/mt-treeview.d.ts +2 -2
  43. package/dist/ui-mt/types.d.ts +0 -1
  44. package/package.json +1 -1
@@ -1,2 +1 @@
1
- /// <reference types="react" />
2
1
  export declare function HtmlChangesObserver({ children }: React.PropsWithChildren): import("react/jsx-runtime").JSX.Element;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  export declare function ExampleProviderProviders({ children }: {
3
2
  children: React.ReactNode;
4
3
  }): import("react/jsx-runtime").JSX.Element;
@@ -1,13 +1,13 @@
1
1
  import type React from "react";
2
2
  import type { AnyZodForm } from "./ZodForm";
3
3
  export declare const EditFormToolbar: React.ForwardRefExoticComponent<{
4
- onCancel?: (() => void) | undefined;
5
- form?: AnyZodForm | undefined;
6
- submitText?: string | undefined;
7
- enableCancelConform?: boolean | undefined;
8
- enableDeleteButton?: boolean | undefined;
9
- onDelete?: (() => void) | undefined;
10
- onSubmit?: ((values: any) => void) | undefined;
4
+ onCancel?: () => void;
5
+ form?: AnyZodForm;
6
+ submitText?: string;
7
+ enableCancelConform?: boolean;
8
+ enableDeleteButton?: boolean;
9
+ onDelete?: () => void;
10
+ onSubmit?: (values: any) => void;
11
11
  } & {
12
- children?: React.ReactNode;
12
+ children?: React.ReactNode | undefined;
13
13
  } & React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { type FieldValues, type SubmitHandler, type UseFormProps, type UseFormReturn } from "react-hook-form";
3
2
  import { z } from "zod";
4
3
  export type UseZodForm<TInput extends FieldValues> = UseFormReturn<TInput> & {
@@ -1,7 +1,7 @@
1
1
  export declare const useMtRouter: () => {
2
- push: (href: string, options?: import("next/dist/shared/lib/app-router-context.shared-runtime").NavigateOptions | undefined, NProgressOptions?: import("next-nprogress-bar").RouterNProgressOptions | undefined) => void;
3
- replace: (href: string, options?: import("next/dist/shared/lib/app-router-context.shared-runtime").NavigateOptions | undefined, NProgressOptions?: import("next-nprogress-bar").RouterNProgressOptions | undefined) => void;
4
- back: (NProgressOptions?: import("next-nprogress-bar").RouterNProgressOptions | undefined) => void;
2
+ push: (href: string, options?: import("next/dist/shared/lib/app-router-context.shared-runtime").NavigateOptions, NProgressOptions?: import("next-nprogress-bar").RouterNProgressOptions) => void;
3
+ replace: (href: string, options?: import("next/dist/shared/lib/app-router-context.shared-runtime").NavigateOptions, NProgressOptions?: import("next-nprogress-bar").RouterNProgressOptions) => void;
4
+ back: (NProgressOptions?: import("next-nprogress-bar").RouterNProgressOptions) => void;
5
5
  forward(): void;
6
6
  refresh(): void;
7
7
  prefetch(href: string, options?: import("next/dist/shared/lib/app-router-context.shared-runtime").PrefetchOptions | undefined): void;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  type IconProps = React.HTMLAttributes<SVGElement>;
3
2
  import { LucideProps } from "lucide-react";
4
3
  import type { LucideIcon } from "lucide-react";
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  export declare function mergeRefs<T = any>(refs: Array<React.MutableRefObject<T> | React.LegacyRef<T>>): React.RefCallback<T>;
3
2
  export declare function getCookie(name: string): string | undefined;
4
3
  export declare function deleteCookie(name: string): void;
@@ -0,0 +1,9 @@
1
+ type FetchOptions = {
2
+ cache?: RequestCache;
3
+ next?: NextFetchRequestConfig;
4
+ };
5
+ type RequestInit = {
6
+ headers: (HeadersInit & FetchOptions) | FetchOptions;
7
+ };
8
+ export declare const useGqlFetcher: <TData, TVariables>(query: string, options?: RequestInit["headers"]) => ((variables?: TVariables) => Promise<TData>);
9
+ export {};
@@ -0,0 +1,26 @@
1
+ import { QueryKey, UseQueryOptions, UseQueryResult } from "@tanstack/react-query";
2
+ type Exact<T extends {
3
+ [key: string]: unknown;
4
+ }> = {
5
+ [K in keyof T]: T[K];
6
+ };
7
+ interface QueryWithKey<TData = any, TVariables = any> {
8
+ (variables?: TVariables, options?: Omit<UseQueryOptions<TData, unknown, TData>, "queryKey"> & {
9
+ queryKey?: UseQueryOptions<TData, unknown, TData>["queryKey"];
10
+ }): UseQueryResult<TData, unknown>;
11
+ getKey: (variables?: any) => QueryKey;
12
+ fetcher: (variables?: any, options?: any) => () => Promise<TData>;
13
+ }
14
+ export type ServerFetchOptions<TQuery extends QueryWithKey> = Parameters<TQuery>[0] extends Exact<{
15
+ [key: string]: never;
16
+ }> | undefined ? {
17
+ next?: NextFetchRequestConfig;
18
+ cache?: RequestCache;
19
+ } : {
20
+ variables?: Parameters<TQuery>[0];
21
+ next?: NextFetchRequestConfig;
22
+ cache?: RequestCache;
23
+ };
24
+ export declare const serverPreFetch: <TQuery extends QueryWithKey>(useQuery: TQuery, queryOptions?: ServerFetchOptions<TQuery>) => Promise<any>;
25
+ export declare const serverFetch: <TQuery extends QueryWithKey>(useQuery: TQuery, queryOptions?: ServerFetchOptions<TQuery>) => Promise<any>;
26
+ export {};
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  export type Renderable<TProps> = React.ReactNode | React.ComponentType<TProps>;
3
2
  export declare function flexRender<TProps extends object>(Comp: Renderable<TProps>, props: TProps): React.ReactNode | JSX.Element;
4
3
  export declare function isReactComponent<TProps>(component: unknown): component is React.ComponentType<TProps>;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  export declare const ExampleError2: () => import("react/jsx-runtime").JSX.Element;
3
2
  export declare const ExampleError1: () => never;
4
3
  export declare const WiehErrorExample: import("react").ForwardRefExoticComponent<object & import("react").RefAttributes<any>>;
@@ -1,10 +1,7 @@
1
- /// <reference types="react" />
2
1
  import type { StoryObj } from '@storybook/react';
3
2
  declare const meta: {
4
3
  title: string;
5
- component: (props: {
6
- children?: import("react").ReactNode;
7
- }) => import("react/jsx-runtime").JSX.Element;
4
+ component: (props: {} & import("react").PropsWithChildren) => import("react/jsx-runtime").JSX.Element;
8
5
  parameters: {
9
6
  layout: string;
10
7
  };
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { type StateCreator } from "zustand/vanilla";
3
2
  export type HisSliceProps = {};
4
3
  export interface HisSliceState extends HisSliceProps {
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { type StateCreator } from "zustand";
3
2
  export interface AppSliceProps {
4
3
  debug?: boolean;
@@ -32,7 +31,7 @@ export declare const gomtmContext: import("react").Context<(Omit<Omit<Omit<impor
32
31
  [k: string]: unknown;
33
32
  }>>) => void;
34
33
  clearStorage: () => void;
35
- rehydrate: () => void | Promise<void>;
34
+ rehydrate: () => Promise<void> | void;
36
35
  hasHydrated: () => boolean;
37
36
  onHydrate: (fn: (state: AppSliceState) => void) => () => void;
38
37
  onFinishHydration: (fn: (state: AppSliceState) => void) => () => void;
@@ -1,7 +1,6 @@
1
- /// <reference types="react" />
2
1
  export declare const LzMtEditor: import("react").ComponentType<{
3
- content?: string | import("@tiptap/core").JSONContent | undefined;
2
+ content?: string | import("@tiptap/core").JSONContent;
4
3
  } & import("./MtEditor").MtEditorProps & {
5
- onValueChange?: ((content: any) => void) | undefined;
6
- content?: import("@tiptap/core").JSONContent | null | undefined;
4
+ onValueChange?: (content: any) => void;
5
+ content?: import("@tiptap/core").JSONContent | null;
7
6
  }>;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import type { Editor, Range } from "@tiptap/core";
3
2
  interface EditorCommandItemProps {
4
3
  readonly onCommand: ({ editor, range, }: {
@@ -9,10 +8,10 @@ interface EditorCommandItemProps {
9
8
  export declare const EditorCommandItem: import("react").ForwardRefExoticComponent<EditorCommandItemProps & Omit<Omit<{
10
9
  children?: import("react").ReactNode;
11
10
  } & Omit<import("react").HTMLAttributes<HTMLDivElement>, "disabled" | "value" | "onSelect"> & {
12
- disabled?: boolean | undefined;
13
- onSelect?: ((value: string) => void) | undefined;
14
- value?: string | undefined;
15
- forceMount?: boolean | undefined;
11
+ disabled?: boolean;
12
+ onSelect?: (value: string) => void;
13
+ value?: string;
14
+ forceMount?: boolean;
16
15
  } & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
17
16
  export declare const EditorCommandEmpty: import("react").ForwardRefExoticComponent<Omit<{
18
17
  children?: import("react").ReactNode;
@@ -14,14 +14,14 @@ export declare const EditorCommandOut: FC<EditorCommandOutProps>;
14
14
  export declare const EditorCommand: import("react").ForwardRefExoticComponent<Omit<{
15
15
  children?: import("react").ReactNode;
16
16
  } & import("react").HTMLAttributes<HTMLDivElement> & {
17
- label?: string | undefined;
18
- shouldFilter?: boolean | undefined;
19
- filter?: ((value: string, search: string) => number) | undefined;
20
- defaultValue?: string | undefined;
21
- value?: string | undefined;
22
- onValueChange?: ((value: string) => void) | undefined;
23
- loop?: boolean | undefined;
24
- vimBindings?: boolean | undefined;
17
+ label?: string;
18
+ shouldFilter?: boolean;
19
+ filter?: (value: string, search: string) => number;
20
+ defaultValue?: string;
21
+ value?: string;
22
+ onValueChange?: (value: string) => void;
23
+ loop?: boolean;
24
+ vimBindings?: boolean;
25
25
  } & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
26
26
  export declare const EditorCommandList: import("react").ForwardRefExoticComponent<{
27
27
  children?: import("react").ReactNode;
@@ -15,7 +15,7 @@ export type EditorContentProps = Omit<EditorProviderProps, "content"> & {
15
15
  };
16
16
  export declare const EditorContent: import("react").ForwardRefExoticComponent<Omit<EditorProviderProps, "content"> & {
17
17
  readonly children?: ReactNode;
18
- readonly className?: string | undefined;
19
- readonly initialContent?: JSONContent | undefined;
18
+ readonly className?: string;
19
+ readonly initialContent?: JSONContent;
20
20
  } & import("react").RefAttributes<HTMLDivElement>>;
21
21
  export {};
@@ -1,2 +1,2 @@
1
- declare const _exports: import('tailwindcss').Config;
1
+ declare const _exports: import("tailwindcss").Config;
2
2
  export = _exports;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import type { DialogProps } from "@radix-ui/react-dialog";
3
2
  export interface InputProps extends React.InputHTMLAttributes<HTMLInputElement> {
4
3
  }
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import * as AspectRatioPrimitive from "@radix-ui/react-aspect-ratio";
3
2
  declare const AspectRatio: import("react").ForwardRefExoticComponent<AspectRatioPrimitive.AspectRatioProps & import("react").RefAttributes<HTMLDivElement>>;
4
3
  export { AspectRatio };
@@ -5,7 +5,7 @@ declare const Breadcrumb: React.ForwardRefExoticComponent<Omit<React.DetailedHTM
5
5
  declare const BreadcrumbList: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.OlHTMLAttributes<HTMLOListElement>, HTMLOListElement>, "ref"> & React.RefAttributes<HTMLOListElement>>;
6
6
  declare const BreadcrumbItem: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.LiHTMLAttributes<HTMLLIElement>, HTMLLIElement>, "ref"> & React.RefAttributes<HTMLLIElement>>;
7
7
  declare const BreadcrumbLink: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.AnchorHTMLAttributes<HTMLAnchorElement>, HTMLAnchorElement>, "ref"> & {
8
- asChild?: boolean | undefined;
8
+ asChild?: boolean;
9
9
  } & React.RefAttributes<HTMLAnchorElement>>;
10
10
  declare const BreadcrumbPage: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "ref"> & React.RefAttributes<HTMLSpanElement>>;
11
11
  declare const BreadcrumbSeparator: {
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import * as CollapsiblePrimitive from "@radix-ui/react-collapsible";
3
2
  declare const Collapsible: import("react").ForwardRefExoticComponent<CollapsiblePrimitive.CollapsibleProps & import("react").RefAttributes<HTMLDivElement>>;
4
3
  declare const CollapsibleTrigger: import("react").ForwardRefExoticComponent<CollapsiblePrimitive.CollapsibleTriggerProps & import("react").RefAttributes<HTMLButtonElement>>;
@@ -3,21 +3,21 @@ import * as React from "react";
3
3
  declare const Command: React.ForwardRefExoticComponent<Omit<{
4
4
  children?: React.ReactNode;
5
5
  } & React.HTMLAttributes<HTMLDivElement> & {
6
- label?: string | undefined;
7
- shouldFilter?: boolean | undefined;
8
- filter?: ((value: string, search: string) => number) | undefined;
9
- defaultValue?: string | undefined;
10
- value?: string | undefined;
11
- onValueChange?: ((value: string) => void) | undefined;
12
- loop?: boolean | undefined;
13
- vimBindings?: boolean | undefined;
6
+ label?: string;
7
+ shouldFilter?: boolean;
8
+ filter?: (value: string, search: string) => number;
9
+ defaultValue?: string;
10
+ value?: string;
11
+ onValueChange?: (value: string) => void;
12
+ loop?: boolean;
13
+ vimBindings?: boolean;
14
14
  } & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
15
15
  interface CommandDialogProps extends DialogProps {
16
16
  }
17
17
  declare const CommandDialog: ({ children, ...props }: CommandDialogProps) => import("react/jsx-runtime").JSX.Element;
18
18
  declare const CommandInput: React.ForwardRefExoticComponent<Omit<Omit<React.InputHTMLAttributes<HTMLInputElement>, "type" | "value" | "onChange"> & {
19
- value?: string | undefined;
20
- onValueChange?: ((search: string) => void) | undefined;
19
+ value?: string;
20
+ onValueChange?: (search: string) => void;
21
21
  } & React.RefAttributes<HTMLInputElement>, "ref"> & React.RefAttributes<HTMLInputElement>>;
22
22
  declare const CommandList: React.ForwardRefExoticComponent<Omit<{
23
23
  children?: React.ReactNode;
@@ -29,19 +29,19 @@ declare const CommandGroup: React.ForwardRefExoticComponent<Omit<{
29
29
  children?: React.ReactNode;
30
30
  } & Omit<React.HTMLAttributes<HTMLDivElement>, "value" | "heading"> & {
31
31
  heading?: React.ReactNode;
32
- value?: string | undefined;
33
- forceMount?: boolean | undefined;
32
+ value?: string;
33
+ forceMount?: boolean;
34
34
  } & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
35
35
  declare const CommandSeparator: React.ForwardRefExoticComponent<Omit<React.HTMLAttributes<HTMLDivElement> & {
36
- alwaysRender?: boolean | undefined;
36
+ alwaysRender?: boolean;
37
37
  } & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
38
38
  declare const CommandItem: React.ForwardRefExoticComponent<Omit<{
39
39
  children?: React.ReactNode;
40
40
  } & Omit<React.HTMLAttributes<HTMLDivElement>, "disabled" | "value" | "onSelect"> & {
41
- disabled?: boolean | undefined;
42
- onSelect?: ((value: string) => void) | undefined;
43
- value?: string | undefined;
44
- forceMount?: boolean | undefined;
41
+ disabled?: boolean;
42
+ onSelect?: (value: string) => void;
43
+ value?: string;
44
+ forceMount?: boolean;
45
45
  } & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
46
46
  declare const CommandShortcut: {
47
47
  ({ className, ...props }: React.HTMLAttributes<HTMLSpanElement>): import("react/jsx-runtime").JSX.Element;
@@ -7,17 +7,17 @@ declare const ContextMenuPortal: React.FC<ContextMenuPrimitive.ContextMenuPortal
7
7
  declare const ContextMenuSub: React.FC<ContextMenuPrimitive.ContextMenuSubProps>;
8
8
  declare const ContextMenuRadioGroup: React.ForwardRefExoticComponent<ContextMenuPrimitive.ContextMenuRadioGroupProps & React.RefAttributes<HTMLDivElement>>;
9
9
  declare const ContextMenuSubTrigger: React.ForwardRefExoticComponent<Omit<ContextMenuPrimitive.ContextMenuSubTriggerProps & React.RefAttributes<HTMLDivElement>, "ref"> & {
10
- inset?: boolean | undefined;
10
+ inset?: boolean;
11
11
  } & React.RefAttributes<HTMLDivElement>>;
12
12
  declare const ContextMenuSubContent: React.ForwardRefExoticComponent<Omit<ContextMenuPrimitive.ContextMenuSubContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
13
13
  declare const ContextMenuContent: React.ForwardRefExoticComponent<Omit<ContextMenuPrimitive.ContextMenuContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
14
14
  declare const ContextMenuItem: React.ForwardRefExoticComponent<Omit<ContextMenuPrimitive.ContextMenuItemProps & React.RefAttributes<HTMLDivElement>, "ref"> & {
15
- inset?: boolean | undefined;
15
+ inset?: boolean;
16
16
  } & React.RefAttributes<HTMLDivElement>>;
17
17
  declare const ContextMenuCheckboxItem: React.ForwardRefExoticComponent<Omit<ContextMenuPrimitive.ContextMenuCheckboxItemProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
18
18
  declare const ContextMenuRadioItem: React.ForwardRefExoticComponent<Omit<ContextMenuPrimitive.ContextMenuRadioItemProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
19
19
  declare const ContextMenuLabel: React.ForwardRefExoticComponent<Omit<ContextMenuPrimitive.ContextMenuLabelProps & React.RefAttributes<HTMLDivElement>, "ref"> & {
20
- inset?: boolean | undefined;
20
+ inset?: boolean;
21
21
  } & React.RefAttributes<HTMLDivElement>>;
22
22
  declare const ContextMenuSeparator: React.ForwardRefExoticComponent<Omit<ContextMenuPrimitive.ContextMenuSeparatorProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
23
23
  declare const ContextMenuShortcut: {
@@ -9,7 +9,7 @@ declare const DrawerPortal: React.FC<import("@radix-ui/react-dialog").DialogPort
9
9
  declare const DrawerClose: React.ForwardRefExoticComponent<import("@radix-ui/react-dialog").DialogCloseProps & React.RefAttributes<HTMLButtonElement>>;
10
10
  declare const DrawerOverlay: React.ForwardRefExoticComponent<Omit<Omit<import("@radix-ui/react-dialog").DialogOverlayProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
11
11
  declare const DrawerContent: React.ForwardRefExoticComponent<Omit<Omit<import("@radix-ui/react-dialog").DialogContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & {
12
- onAnimationEnd?: ((open: boolean) => void) | undefined;
12
+ onAnimationEnd?: (open: boolean) => void;
13
13
  } & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
14
14
  declare const DrawerHeader: {
15
15
  ({ className, ...props }: React.HTMLAttributes<HTMLDivElement>): import("react/jsx-runtime").JSX.Element;
@@ -7,17 +7,17 @@ declare const DropdownMenuPortal: React.FC<DropdownMenuPrimitive.DropdownMenuPor
7
7
  declare const DropdownMenuSub: React.FC<DropdownMenuPrimitive.DropdownMenuSubProps>;
8
8
  declare const DropdownMenuRadioGroup: React.ForwardRefExoticComponent<DropdownMenuPrimitive.DropdownMenuRadioGroupProps & React.RefAttributes<HTMLDivElement>>;
9
9
  declare const DropdownMenuSubTrigger: React.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuSubTriggerProps & React.RefAttributes<HTMLDivElement>, "ref"> & {
10
- inset?: boolean | undefined;
10
+ inset?: boolean;
11
11
  } & React.RefAttributes<HTMLDivElement>>;
12
12
  declare const DropdownMenuSubContent: React.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuSubContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
13
13
  declare const DropdownMenuContent: React.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
14
14
  declare const DropdownMenuItem: React.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuItemProps & React.RefAttributes<HTMLDivElement>, "ref"> & {
15
- inset?: boolean | undefined;
15
+ inset?: boolean;
16
16
  } & React.RefAttributes<HTMLDivElement>>;
17
17
  declare const DropdownMenuCheckboxItem: React.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuCheckboxItemProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
18
18
  declare const DropdownMenuRadioItem: React.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuRadioItemProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
19
19
  declare const DropdownMenuLabel: React.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuLabelProps & React.RefAttributes<HTMLDivElement>, "ref"> & {
20
- inset?: boolean | undefined;
20
+ inset?: boolean;
21
21
  } & React.RefAttributes<HTMLDivElement>>;
22
22
  declare const DropdownMenuSeparator: React.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuSeparatorProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
23
23
  declare const DropdownMenuShortcut: {
package/dist/ui/form.d.ts CHANGED
@@ -8,7 +8,7 @@ declare const useFormField: () => {
8
8
  isDirty: boolean;
9
9
  isTouched: boolean;
10
10
  isValidating: boolean;
11
- error?: import("react-hook-form").FieldError | undefined;
11
+ error?: import("react-hook-form").FieldError;
12
12
  id: string;
13
13
  name: string;
14
14
  formItemId: string;
@@ -11,17 +11,17 @@ declare const MenubarRadioGroup: React.ForwardRefExoticComponent<MenubarPrimitiv
11
11
  declare const Menubar: React.ForwardRefExoticComponent<Omit<MenubarPrimitive.MenubarProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
12
12
  declare const MenubarTrigger: React.ForwardRefExoticComponent<Omit<MenubarPrimitive.MenubarTriggerProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
13
13
  declare const MenubarSubTrigger: React.ForwardRefExoticComponent<Omit<MenubarPrimitive.MenubarSubTriggerProps & React.RefAttributes<HTMLDivElement>, "ref"> & {
14
- inset?: boolean | undefined;
14
+ inset?: boolean;
15
15
  } & React.RefAttributes<HTMLDivElement>>;
16
16
  declare const MenubarSubContent: React.ForwardRefExoticComponent<Omit<MenubarPrimitive.MenubarSubContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
17
17
  declare const MenubarContent: React.ForwardRefExoticComponent<Omit<MenubarPrimitive.MenubarContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
18
18
  declare const MenubarItem: React.ForwardRefExoticComponent<Omit<MenubarPrimitive.MenubarItemProps & React.RefAttributes<HTMLDivElement>, "ref"> & {
19
- inset?: boolean | undefined;
19
+ inset?: boolean;
20
20
  } & React.RefAttributes<HTMLDivElement>>;
21
21
  declare const MenubarCheckboxItem: React.ForwardRefExoticComponent<Omit<MenubarPrimitive.MenubarCheckboxItemProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
22
22
  declare const MenubarRadioItem: React.ForwardRefExoticComponent<Omit<MenubarPrimitive.MenubarRadioItemProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
23
23
  declare const MenubarLabel: React.ForwardRefExoticComponent<Omit<MenubarPrimitive.MenubarLabelProps & React.RefAttributes<HTMLDivElement>, "ref"> & {
24
- inset?: boolean | undefined;
24
+ inset?: boolean;
25
25
  } & React.RefAttributes<HTMLDivElement>>;
26
26
  declare const MenubarSeparator: React.ForwardRefExoticComponent<Omit<MenubarPrimitive.MenubarSeparatorProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
27
27
  declare const MenubarShortcut: {
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import * as ResizablePrimitive from "react-resizable-panels";
3
2
  declare const ResizablePanelGroup: ({ className, ...props }: React.ComponentProps<typeof ResizablePrimitive.PanelGroup>) => import("react/jsx-runtime").JSX.Element;
4
3
  declare const ResizablePanel: import("react").ForwardRefExoticComponent<Omit<import("react").HTMLAttributes<keyof HTMLElementTagNameMap>, "id" | "onResize"> & {
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare function Skeleton({ className, ...props }: React.HTMLAttributes<HTMLDivElement>): import("react/jsx-runtime").JSX.Element;
3
2
  export { Skeleton };
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { Toaster as Sonner } from "sonner";
3
2
  type ToasterProps = React.ComponentProps<typeof Sonner>;
4
3
  declare const Toaster: ({ ...props }: ToasterProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,2 +1 @@
1
- /// <reference types="react" />
2
1
  export declare const MtButton: import("react").ForwardRefExoticComponent<import("../ui/button").ButtonProps & import("react").RefAttributes<HTMLButtonElement>>;
@@ -1,2 +1 @@
1
- /// <reference types="react" />
2
1
  export declare const MtForm: <TFieldValues extends import("react-hook-form").FieldValues, TContext = any, TTransformedValues extends import("react-hook-form").FieldValues | undefined = undefined>(props: import("react-hook-form").FormProviderProps<TFieldValues, TContext, TTransformedValues>) => import("react").JSX.Element;
@@ -1,2 +1 @@
1
- /// <reference types="react" />
2
1
  export declare const MtSeparator: import("react").ForwardRefExoticComponent<Omit<import("@radix-ui/react-separator").SeparatorProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  export default function SimpleModel({ children }: {
3
2
  children: React.ReactNode;
4
3
  }): import("react/jsx-runtime").JSX.Element;
@@ -5,10 +5,10 @@ interface TreeDataItemType extends TreeItemBase {
5
5
  }
6
6
  export declare const Tree: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & {
7
7
  data: TreeDataItemType;
8
- initialSlelectedItemId?: string | undefined;
9
- onSelectChange?: ((item: TreeDataItemType) => void) | undefined;
10
- expandAll?: boolean | undefined;
11
- folderIcon?: LucideIcon | undefined;
12
- itemIcon?: LucideIcon | undefined;
8
+ initialSlelectedItemId?: string;
9
+ onSelectChange?: (item: TreeDataItemType) => void;
10
+ expandAll?: boolean;
11
+ folderIcon?: LucideIcon;
12
+ itemIcon?: LucideIcon;
13
13
  } & React.RefAttributes<HTMLDivElement>>;
14
14
  export {};
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  interface HeadlineProps {
3
2
  heading: string;
4
3
  text?: string;
@@ -1,2 +1 @@
1
- /// <reference types="react" />
2
1
  export declare const MtInput: import("react").ForwardRefExoticComponent<import("../../ui/input").InputProps & import("react").RefAttributes<HTMLInputElement>>;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { type Renderable } from "mtxuilib/lib/render";
3
2
  import { type StateCreator } from "zustand/vanilla";
4
3
  export type ModalSliceProps = {
@@ -9,30 +9,30 @@ type TreeViewElement = {
9
9
  interface TreeViewComponentProps extends React.HTMLAttributes<HTMLDivElement> {
10
10
  }
11
11
  declare const Tree: React.ForwardRefExoticComponent<{
12
- initialSelectedId?: string | undefined;
13
- indicator?: boolean | undefined;
14
- elements?: TreeViewElement[] | undefined;
15
- initialExpendedItems?: string[] | undefined;
12
+ initialSelectedId?: string;
13
+ indicator?: boolean;
14
+ elements?: TreeViewElement[];
15
+ initialExpendedItems?: string[];
16
16
  openIcon?: React.ReactNode;
17
17
  closeIcon?: React.ReactNode;
18
18
  } & TreeViewComponentProps & React.RefAttributes<HTMLDivElement>>;
19
19
  interface FolderComponentProps extends React.ComponentPropsWithoutRef<typeof AccordionPrimitive.Item> {
20
20
  }
21
21
  declare const Folder: React.ForwardRefExoticComponent<{
22
- expendedItems?: string[] | undefined;
22
+ expendedItems?: string[];
23
23
  element: ReactNode;
24
- isSelectable?: boolean | undefined;
25
- isSelect?: boolean | undefined;
24
+ isSelectable?: boolean;
25
+ isSelect?: boolean;
26
26
  } & FolderComponentProps & React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
27
27
  declare const File: React.ForwardRefExoticComponent<{
28
28
  value: string;
29
- handleSelect?: ((id: string) => void) | undefined;
30
- isSelectable?: boolean | undefined;
31
- isSelect?: boolean | undefined;
29
+ handleSelect?: (id: string) => void;
30
+ isSelectable?: boolean;
31
+ isSelect?: boolean;
32
32
  fileIcon?: React.ReactNode;
33
33
  } & Omit<AccordionPrimitive.AccordionTriggerProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
34
34
  declare const CollapseButton: React.ForwardRefExoticComponent<{
35
35
  elements: TreeViewElement[];
36
- expandAll?: boolean | undefined;
36
+ expandAll?: boolean;
37
37
  } & React.HTMLAttributes<HTMLButtonElement> & React.RefAttributes<HTMLButtonElement>>;
38
38
  export { Tree, Folder, File, CollapseButton, type TreeViewElement };
@@ -18,7 +18,7 @@ export declare const TreeView: {
18
18
  displayName: string;
19
19
  };
20
20
  export declare const TreeItem: React.ForwardRefExoticComponent<{
21
- elements?: TreeViewElement[] | undefined;
22
- indicator?: boolean | undefined;
21
+ elements?: TreeViewElement[];
22
+ indicator?: boolean;
23
23
  } & React.HTMLAttributes<HTMLUListElement> & React.RefAttributes<HTMLUListElement>>;
24
24
  export {};
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  export interface InputProps extends React.InputHTMLAttributes<HTMLInputElement> {
3
2
  label?: string;
4
3
  name: string;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "mtxuilib",
3
3
  "private": false,
4
- "version": "0.1.87",
4
+ "version": "0.1.90",
5
5
  "publishConfig": {
6
6
  "access": "public"
7
7
  },