mtxuilib 0.0.411 → 0.0.412
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/esm/lib/blocks.d.ts +20 -2
- package/dist/esm/registry/default/ui/carousel.d.ts +2 -2
- package/dist/esm/registry/default/ui/toggle-group.d.ts +8 -2
- package/dist/esm/registry/default/ui/use-toast.d.ts +1 -1
- package/dist/esm/registry/new-york/ui/carousel.d.ts +2 -2
- package/dist/esm/registry/new-york/ui/toggle-group.d.ts +8 -2
- package/dist/esm/registry/new-york/ui/use-toast.d.ts +1 -1
- package/dist/esm/registry/schema.d.ts +11 -11
- package/dist/tsconfig.type.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/dist/esm/registry/default/example/calendar-react-hook-form.d.ts +0 -2
- package/dist/esm/registry/default/ui/toaster.d.ts +0 -2
- package/dist/esm/registry/new-york/ui/toaster.d.ts +0 -2
- package/dist/esm/scripts/build-registry.js +0 -161
package/dist/esm/lib/blocks.d.ts
CHANGED
|
@@ -1,3 +1,21 @@
|
|
|
1
1
|
import { Style } from "@/registry/styles";
|
|
2
|
-
export declare function getAllBlockIds(style?: Style["name"]): Promise<
|
|
3
|
-
export declare function getBlock(name: string, style?: Style["name"]): Promise<
|
|
2
|
+
export declare function getAllBlockIds(style?: Style["name"]): Promise<string[]>;
|
|
3
|
+
export declare function getBlock(name: string, style?: Style["name"]): Promise<{
|
|
4
|
+
code: string;
|
|
5
|
+
style: "default" | "new-york";
|
|
6
|
+
name: string;
|
|
7
|
+
type: "components:block";
|
|
8
|
+
files: string[];
|
|
9
|
+
highlightedCode: string;
|
|
10
|
+
description?: string | undefined;
|
|
11
|
+
category?: string | undefined;
|
|
12
|
+
subcategory?: string | undefined;
|
|
13
|
+
dependencies?: string[] | undefined;
|
|
14
|
+
devDependencies?: string[] | undefined;
|
|
15
|
+
registryDependencies?: string[] | undefined;
|
|
16
|
+
component?: any;
|
|
17
|
+
container?: {
|
|
18
|
+
height?: string | undefined;
|
|
19
|
+
className?: string | null | undefined;
|
|
20
|
+
} | undefined;
|
|
21
|
+
}>;
|
|
@@ -14,6 +14,6 @@ type CarouselProps = {
|
|
|
14
14
|
declare const Carousel: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & CarouselProps & React.RefAttributes<HTMLDivElement>>;
|
|
15
15
|
declare const CarouselContent: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
16
16
|
declare const CarouselItem: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
17
|
-
declare const CarouselPrevious: React.ForwardRefExoticComponent<
|
|
18
|
-
declare const CarouselNext: React.ForwardRefExoticComponent<
|
|
17
|
+
declare const CarouselPrevious: React.ForwardRefExoticComponent<Omit<import("@/registry/default/ui/button").ButtonProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
18
|
+
declare const CarouselNext: React.ForwardRefExoticComponent<Omit<import("@/registry/default/ui/button").ButtonProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
19
19
|
export { type CarouselApi, Carousel, CarouselContent, CarouselItem, CarouselPrevious, CarouselNext, };
|
|
@@ -1,6 +1,12 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
2
|
import * as ToggleGroupPrimitive from "@radix-ui/react-toggle-group";
|
|
3
3
|
import { VariantProps } from "class-variance-authority";
|
|
4
|
-
declare const ToggleGroup: React.ForwardRefExoticComponent<(Omit<
|
|
5
|
-
|
|
4
|
+
declare const ToggleGroup: React.ForwardRefExoticComponent<((Omit<ToggleGroupPrimitive.ToggleGroupSingleProps & React.RefAttributes<HTMLDivElement>, "ref"> | Omit<ToggleGroupPrimitive.ToggleGroupMultipleProps & React.RefAttributes<HTMLDivElement>, "ref">) & VariantProps<(props?: ({
|
|
5
|
+
variant?: "default" | "outline" | null | undefined;
|
|
6
|
+
size?: "default" | "sm" | "lg" | null | undefined;
|
|
7
|
+
} & import("class-variance-authority/dist/types").ClassProp) | undefined) => string>) & React.RefAttributes<HTMLDivElement>>;
|
|
8
|
+
declare const ToggleGroupItem: React.ForwardRefExoticComponent<Omit<ToggleGroupPrimitive.ToggleGroupItemProps & React.RefAttributes<HTMLButtonElement>, "ref"> & VariantProps<(props?: ({
|
|
9
|
+
variant?: "default" | "outline" | null | undefined;
|
|
10
|
+
size?: "default" | "sm" | "lg" | null | undefined;
|
|
11
|
+
} & import("class-variance-authority/dist/types").ClassProp) | undefined) => string> & React.RefAttributes<HTMLButtonElement>>;
|
|
6
12
|
export { ToggleGroup, ToggleGroupItem };
|
|
@@ -14,6 +14,6 @@ type CarouselProps = {
|
|
|
14
14
|
declare const Carousel: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & CarouselProps & React.RefAttributes<HTMLDivElement>>;
|
|
15
15
|
declare const CarouselContent: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
16
16
|
declare const CarouselItem: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
17
|
-
declare const CarouselPrevious: React.ForwardRefExoticComponent<
|
|
18
|
-
declare const CarouselNext: React.ForwardRefExoticComponent<
|
|
17
|
+
declare const CarouselPrevious: React.ForwardRefExoticComponent<Omit<import("@/registry/new-york/ui/button").ButtonProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
18
|
+
declare const CarouselNext: React.ForwardRefExoticComponent<Omit<import("@/registry/new-york/ui/button").ButtonProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
19
19
|
export { type CarouselApi, Carousel, CarouselContent, CarouselItem, CarouselPrevious, CarouselNext, };
|
|
@@ -1,6 +1,12 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
2
|
import * as ToggleGroupPrimitive from "@radix-ui/react-toggle-group";
|
|
3
3
|
import { VariantProps } from "class-variance-authority";
|
|
4
|
-
declare const ToggleGroup: React.ForwardRefExoticComponent<(Omit<
|
|
5
|
-
|
|
4
|
+
declare const ToggleGroup: React.ForwardRefExoticComponent<((Omit<ToggleGroupPrimitive.ToggleGroupSingleProps & React.RefAttributes<HTMLDivElement>, "ref"> | Omit<ToggleGroupPrimitive.ToggleGroupMultipleProps & React.RefAttributes<HTMLDivElement>, "ref">) & VariantProps<(props?: ({
|
|
5
|
+
variant?: "default" | "outline" | null | undefined;
|
|
6
|
+
size?: "default" | "sm" | "lg" | null | undefined;
|
|
7
|
+
} & import("class-variance-authority/dist/types").ClassProp) | undefined) => string>) & React.RefAttributes<HTMLDivElement>>;
|
|
8
|
+
declare const ToggleGroupItem: React.ForwardRefExoticComponent<Omit<ToggleGroupPrimitive.ToggleGroupItemProps & React.RefAttributes<HTMLButtonElement>, "ref"> & VariantProps<(props?: ({
|
|
9
|
+
variant?: "default" | "outline" | null | undefined;
|
|
10
|
+
size?: "default" | "sm" | "lg" | null | undefined;
|
|
11
|
+
} & import("class-variance-authority/dist/types").ClassProp) | undefined) => string> & React.RefAttributes<HTMLButtonElement>>;
|
|
6
12
|
export { ToggleGroup, ToggleGroupItem };
|
|
@@ -11,7 +11,7 @@ export declare const registryEntrySchema: z.ZodObject<{
|
|
|
11
11
|
subcategory: z.ZodOptional<z.ZodString>;
|
|
12
12
|
}, "strip", z.ZodTypeAny, {
|
|
13
13
|
name: string;
|
|
14
|
-
type: "components:
|
|
14
|
+
type: "components:ui" | "components:component" | "components:example" | "components:block";
|
|
15
15
|
files: string[];
|
|
16
16
|
description?: string | undefined;
|
|
17
17
|
dependencies?: string[] | undefined;
|
|
@@ -21,7 +21,7 @@ export declare const registryEntrySchema: z.ZodObject<{
|
|
|
21
21
|
subcategory?: string | undefined;
|
|
22
22
|
}, {
|
|
23
23
|
name: string;
|
|
24
|
-
type: "components:
|
|
24
|
+
type: "components:ui" | "components:component" | "components:example" | "components:block";
|
|
25
25
|
files: string[];
|
|
26
26
|
description?: string | undefined;
|
|
27
27
|
dependencies?: string[] | undefined;
|
|
@@ -42,7 +42,7 @@ export declare const registrySchema: z.ZodArray<z.ZodObject<{
|
|
|
42
42
|
subcategory: z.ZodOptional<z.ZodString>;
|
|
43
43
|
}, "strip", z.ZodTypeAny, {
|
|
44
44
|
name: string;
|
|
45
|
-
type: "components:
|
|
45
|
+
type: "components:ui" | "components:component" | "components:example" | "components:block";
|
|
46
46
|
files: string[];
|
|
47
47
|
description?: string | undefined;
|
|
48
48
|
dependencies?: string[] | undefined;
|
|
@@ -52,7 +52,7 @@ export declare const registrySchema: z.ZodArray<z.ZodObject<{
|
|
|
52
52
|
subcategory?: string | undefined;
|
|
53
53
|
}, {
|
|
54
54
|
name: string;
|
|
55
|
-
type: "components:
|
|
55
|
+
type: "components:ui" | "components:component" | "components:example" | "components:block";
|
|
56
56
|
files: string[];
|
|
57
57
|
description?: string | undefined;
|
|
58
58
|
dependencies?: string[] | undefined;
|
|
@@ -67,11 +67,11 @@ export declare const blockSchema: z.ZodObject<{
|
|
|
67
67
|
name: z.ZodString;
|
|
68
68
|
description: z.ZodOptional<z.ZodString>;
|
|
69
69
|
category: z.ZodOptional<z.ZodString>;
|
|
70
|
-
|
|
70
|
+
subcategory: z.ZodOptional<z.ZodString>;
|
|
71
71
|
dependencies: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
72
|
-
registryDependencies: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
73
72
|
devDependencies: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
74
|
-
|
|
73
|
+
registryDependencies: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
74
|
+
files: z.ZodArray<z.ZodString, "many">;
|
|
75
75
|
type: z.ZodLiteral<"components:block">;
|
|
76
76
|
style: z.ZodEnum<["default", "new-york"]>;
|
|
77
77
|
component: z.ZodAny;
|
|
@@ -96,10 +96,10 @@ export declare const blockSchema: z.ZodObject<{
|
|
|
96
96
|
highlightedCode: string;
|
|
97
97
|
description?: string | undefined;
|
|
98
98
|
category?: string | undefined;
|
|
99
|
+
subcategory?: string | undefined;
|
|
99
100
|
dependencies?: string[] | undefined;
|
|
100
|
-
registryDependencies?: string[] | undefined;
|
|
101
101
|
devDependencies?: string[] | undefined;
|
|
102
|
-
|
|
102
|
+
registryDependencies?: string[] | undefined;
|
|
103
103
|
component?: any;
|
|
104
104
|
container?: {
|
|
105
105
|
height?: string | undefined;
|
|
@@ -114,10 +114,10 @@ export declare const blockSchema: z.ZodObject<{
|
|
|
114
114
|
highlightedCode: string;
|
|
115
115
|
description?: string | undefined;
|
|
116
116
|
category?: string | undefined;
|
|
117
|
+
subcategory?: string | undefined;
|
|
117
118
|
dependencies?: string[] | undefined;
|
|
118
|
-
registryDependencies?: string[] | undefined;
|
|
119
119
|
devDependencies?: string[] | undefined;
|
|
120
|
-
|
|
120
|
+
registryDependencies?: string[] | undefined;
|
|
121
121
|
component?: any;
|
|
122
122
|
container?: {
|
|
123
123
|
height?: string | undefined;
|