mtxuilib 0.1.520 → 0.1.522

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.
@@ -1,19 +0,0 @@
1
- export type ServerActionResult<Result> = Promise<Result | {
2
- error: string;
3
- }>;
4
- export interface Session {
5
- user: {
6
- id: string;
7
- email: string;
8
- };
9
- }
10
- export interface AuthResult {
11
- type: string;
12
- message: string;
13
- }
14
- export interface User extends Record<string, unknown> {
15
- id: string;
16
- email: string;
17
- password: string;
18
- salt: string;
19
- }
package/dist/lib/types.js CHANGED
@@ -1 +1 @@
1
- export {};
1
+ "use strict";
@@ -2,45 +2,77 @@ import type { DialogProps } from "@radix-ui/react-dialog";
2
2
  import * as React from "react";
3
3
  declare const Command: React.ForwardRefExoticComponent<Omit<{
4
4
  children?: React.ReactNode;
5
- } & React.HTMLAttributes<HTMLDivElement> & {
5
+ } & Pick<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React.HTMLAttributes<HTMLDivElement>> & {
6
+ ref?: React.Ref<HTMLDivElement>;
7
+ } & {
8
+ asChild?: boolean;
9
+ }, "asChild" | "key" | keyof React.HTMLAttributes<HTMLDivElement>> & {
6
10
  label?: string;
7
11
  shouldFilter?: boolean;
8
- filter?: (value: string, search: string) => number;
12
+ filter?: (value: string, search: string, keywords?: string[]) => number;
9
13
  defaultValue?: string;
10
14
  value?: string;
11
15
  onValueChange?: (value: string) => void;
12
16
  loop?: boolean;
17
+ disablePointerSelection?: boolean;
13
18
  vimBindings?: boolean;
14
19
  } & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
15
20
  interface CommandDialogProps extends DialogProps {
16
21
  }
17
22
  declare const CommandDialog: ({ children, ...props }: CommandDialogProps) => import("react/jsx-runtime").JSX.Element;
18
- declare const CommandInput: React.ForwardRefExoticComponent<Omit<Omit<React.InputHTMLAttributes<HTMLInputElement>, "type" | "value" | "onChange"> & {
23
+ declare const CommandInput: React.ForwardRefExoticComponent<Omit<Omit<Pick<Pick<React.DetailedHTMLProps<React.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "key" | keyof React.InputHTMLAttributes<HTMLInputElement>> & {
24
+ ref?: React.Ref<HTMLInputElement>;
25
+ } & {
26
+ asChild?: boolean;
27
+ }, "asChild" | "key" | keyof React.InputHTMLAttributes<HTMLInputElement>>, "type" | "value" | "onChange"> & {
19
28
  value?: string;
20
29
  onValueChange?: (search: string) => void;
21
30
  } & React.RefAttributes<HTMLInputElement>, "ref"> & React.RefAttributes<HTMLInputElement>>;
22
31
  declare const CommandList: React.ForwardRefExoticComponent<Omit<{
23
32
  children?: React.ReactNode;
24
- } & React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
33
+ } & Pick<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React.HTMLAttributes<HTMLDivElement>> & {
34
+ ref?: React.Ref<HTMLDivElement>;
35
+ } & {
36
+ asChild?: boolean;
37
+ }, "asChild" | "key" | keyof React.HTMLAttributes<HTMLDivElement>> & {
38
+ label?: string;
39
+ } & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
25
40
  declare const CommandEmpty: React.ForwardRefExoticComponent<Omit<{
26
41
  children?: React.ReactNode;
27
- } & React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
42
+ } & Pick<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React.HTMLAttributes<HTMLDivElement>> & {
43
+ ref?: React.Ref<HTMLDivElement>;
44
+ } & {
45
+ asChild?: boolean;
46
+ }, "asChild" | "key" | keyof React.HTMLAttributes<HTMLDivElement>> & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
28
47
  declare const CommandGroup: React.ForwardRefExoticComponent<Omit<{
29
48
  children?: React.ReactNode;
30
- } & Omit<React.HTMLAttributes<HTMLDivElement>, "value" | "heading"> & {
49
+ } & Omit<Pick<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React.HTMLAttributes<HTMLDivElement>> & {
50
+ ref?: React.Ref<HTMLDivElement>;
51
+ } & {
52
+ asChild?: boolean;
53
+ }, "asChild" | "key" | keyof React.HTMLAttributes<HTMLDivElement>>, "value" | "heading"> & {
31
54
  heading?: React.ReactNode;
32
55
  value?: string;
33
56
  forceMount?: boolean;
34
57
  } & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
35
- declare const CommandSeparator: React.ForwardRefExoticComponent<Omit<React.HTMLAttributes<HTMLDivElement> & {
58
+ declare const CommandSeparator: React.ForwardRefExoticComponent<Omit<Pick<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React.HTMLAttributes<HTMLDivElement>> & {
59
+ ref?: React.Ref<HTMLDivElement>;
60
+ } & {
61
+ asChild?: boolean;
62
+ }, "asChild" | "key" | keyof React.HTMLAttributes<HTMLDivElement>> & {
36
63
  alwaysRender?: boolean;
37
64
  } & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
38
65
  declare const CommandItem: React.ForwardRefExoticComponent<Omit<{
39
66
  children?: React.ReactNode;
40
- } & Omit<React.HTMLAttributes<HTMLDivElement>, "disabled" | "value" | "onSelect"> & {
67
+ } & Omit<Pick<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React.HTMLAttributes<HTMLDivElement>> & {
68
+ ref?: React.Ref<HTMLDivElement>;
69
+ } & {
70
+ asChild?: boolean;
71
+ }, "asChild" | "key" | keyof React.HTMLAttributes<HTMLDivElement>>, "disabled" | "value" | "onSelect"> & {
41
72
  disabled?: boolean;
42
73
  onSelect?: (value: string) => void;
43
74
  value?: string;
75
+ keywords?: string[];
44
76
  forceMount?: boolean;
45
77
  } & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
46
78
  declare const CommandShortcut: {
@@ -4,11 +4,15 @@ declare const Drawer: {
4
4
  ({ shouldScaleBackground, ...props }: React.ComponentProps<typeof DrawerPrimitive.Root>): import("react/jsx-runtime").JSX.Element;
5
5
  displayName: string;
6
6
  };
7
- declare const DrawerTrigger: React.ForwardRefExoticComponent<import("@radix-ui/react-dialog").DialogTriggerProps & React.RefAttributes<HTMLButtonElement>>;
7
+ declare const DrawerTrigger: typeof DrawerPrimitive.Trigger;
8
8
  declare const DrawerPortal: typeof import("vaul").Portal;
9
- declare const DrawerClose: React.ForwardRefExoticComponent<import("@radix-ui/react-dialog").DialogCloseProps & React.RefAttributes<HTMLButtonElement>>;
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
- declare const DrawerContent: React.ForwardRefExoticComponent<Omit<Omit<import("@radix-ui/react-dialog").DialogContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
9
+ declare const DrawerClose: typeof DrawerPrimitive.Close;
10
+ type DrawerOverlayElement = React.ElementRef<typeof DrawerPrimitive.Overlay>;
11
+ type DrawerOverlayProps = React.ComponentPropsWithoutRef<typeof DrawerPrimitive.Overlay>;
12
+ declare const DrawerOverlay: React.ForwardRefExoticComponent<DrawerOverlayProps & React.RefAttributes<DrawerOverlayElement>>;
13
+ type DrawerContentElement = React.ElementRef<typeof DrawerPrimitive.Content>;
14
+ type DrawerContentProps = React.ComponentPropsWithoutRef<typeof DrawerPrimitive.Content>;
15
+ declare const DrawerContent: React.ForwardRefExoticComponent<DrawerContentProps & React.RefAttributes<DrawerContentElement>>;
12
16
  declare const DrawerHeader: {
13
17
  ({ className, ...props }: React.HTMLAttributes<HTMLDivElement>): import("react/jsx-runtime").JSX.Element;
14
18
  displayName: string;
@@ -17,6 +21,10 @@ declare const DrawerFooter: {
17
21
  ({ className, ...props }: React.HTMLAttributes<HTMLDivElement>): import("react/jsx-runtime").JSX.Element;
18
22
  displayName: string;
19
23
  };
20
- declare const DrawerTitle: React.ForwardRefExoticComponent<Omit<import("@radix-ui/react-dialog").DialogTitleProps & React.RefAttributes<HTMLHeadingElement>, "ref"> & React.RefAttributes<HTMLHeadingElement>>;
21
- declare const DrawerDescription: React.ForwardRefExoticComponent<Omit<import("@radix-ui/react-dialog").DialogDescriptionProps & React.RefAttributes<HTMLParagraphElement>, "ref"> & React.RefAttributes<HTMLParagraphElement>>;
22
- export { Drawer, DrawerClose, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerOverlay, DrawerPortal, DrawerTitle, DrawerTrigger };
24
+ type DrawerTitleElement = React.ElementRef<typeof DrawerPrimitive.Title>;
25
+ type DrawerTitleProps = React.ComponentPropsWithoutRef<typeof DrawerPrimitive.Title>;
26
+ declare const DrawerTitle: React.ForwardRefExoticComponent<DrawerTitleProps & React.RefAttributes<DrawerTitleElement>>;
27
+ type DrawerDescriptionElement = React.ElementRef<typeof DrawerPrimitive.Description>;
28
+ type DrawerDescriptionProps = React.ComponentPropsWithoutRef<typeof DrawerPrimitive.Description>;
29
+ declare const DrawerDescription: React.ForwardRefExoticComponent<DrawerDescriptionProps & React.RefAttributes<DrawerDescriptionElement>>;
30
+ export { Drawer, DrawerClose, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerOverlay, DrawerPortal, DrawerTitle, DrawerTrigger, };
package/dist/ui/drawer.js CHANGED
@@ -20,4 +20,4 @@ const DrawerTitle = React.forwardRef(({ className, ...props }, ref) => (_jsx(Dra
20
20
  DrawerTitle.displayName = DrawerPrimitive.Title.displayName;
21
21
  const DrawerDescription = React.forwardRef(({ className, ...props }, ref) => (_jsx(DrawerPrimitive.Description, { ref: ref, className: cn("text-muted-foreground text-sm", className), ...props })));
22
22
  DrawerDescription.displayName = DrawerPrimitive.Description.displayName;
23
- export { Drawer, DrawerClose, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerOverlay, DrawerPortal, DrawerTitle, DrawerTrigger };
23
+ export { Drawer, DrawerClose, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerOverlay, DrawerPortal, DrawerTitle, DrawerTrigger, };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "mtxuilib",
3
3
  "private": false,
4
- "version": "0.1.520",
4
+ "version": "0.1.522",
5
5
  "publishConfig": {
6
6
  "access": "public"
7
7
  },
@@ -93,7 +93,7 @@
93
93
  "@radix-ui/react-checkbox": "^1.1.1",
94
94
  "@radix-ui/react-collapsible": "^1.1.0",
95
95
  "@radix-ui/react-context-menu": "^2.2.1",
96
- "@radix-ui/react-dialog": "^1.1.1",
96
+ "@radix-ui/react-dialog": "^1.1.2",
97
97
  "@radix-ui/react-dropdown-menu": "^2.1.1",
98
98
  "@radix-ui/react-hover-card": "^1.1.1",
99
99
  "@radix-ui/react-icons": "^1.3.0",
@@ -118,10 +118,10 @@
118
118
  "@tanstack/react-query": "^5.51.23",
119
119
  "@tanstack/react-query-devtools": "^5.51.23",
120
120
  "@tanstack/react-query-next-experimental": "^5.51.23",
121
- "ai": "^3.4.9",
121
+ "ai": "^3.4.23",
122
122
  "class-variance-authority": "^0.7.0",
123
123
  "clsx": "^2.1.1",
124
- "cmdk": "0.2.1",
124
+ "cmdk": "^1.0.0",
125
125
  "compression": "^1.7.4",
126
126
  "date-fns": "^3.6.0",
127
127
  "embla-carousel-autoplay": "^8.1.8",