mtxuilib 0.0.685 → 0.0.687

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.
@@ -7,6 +7,10 @@ export declare function getBlock(name: string, style?: Style["name"]): Promise<{
7
7
  name: string;
8
8
  files: string[];
9
9
  highlightedCode: string;
10
+ container?: {
11
+ className?: string | null | undefined;
12
+ height?: string | undefined;
13
+ } | undefined;
10
14
  description?: string | undefined;
11
15
  category?: string | undefined;
12
16
  subcategory?: string | undefined;
@@ -14,8 +18,4 @@ export declare function getBlock(name: string, style?: Style["name"]): Promise<{
14
18
  devDependencies?: string[] | undefined;
15
19
  registryDependencies?: string[] | undefined;
16
20
  component?: any;
17
- container?: {
18
- height?: string | undefined;
19
- className?: string | null | undefined;
20
- } | undefined;
21
21
  }>;
@@ -14,21 +14,21 @@ export declare const registryEntrySchema: z.ZodObject<{
14
14
  name: string;
15
15
  files: string[];
16
16
  description?: string | undefined;
17
+ category?: string | undefined;
18
+ subcategory?: string | undefined;
17
19
  dependencies?: string[] | undefined;
18
20
  devDependencies?: string[] | undefined;
19
21
  registryDependencies?: string[] | undefined;
20
- category?: string | undefined;
21
- subcategory?: string | undefined;
22
22
  }, {
23
23
  type: "components:ui" | "components:component" | "components:example" | "components:block";
24
24
  name: string;
25
25
  files: string[];
26
26
  description?: string | undefined;
27
+ category?: string | undefined;
28
+ subcategory?: string | undefined;
27
29
  dependencies?: string[] | undefined;
28
30
  devDependencies?: string[] | undefined;
29
31
  registryDependencies?: string[] | undefined;
30
- category?: string | undefined;
31
- subcategory?: string | undefined;
32
32
  }>;
33
33
  export declare const registrySchema: z.ZodArray<z.ZodObject<{
34
34
  name: z.ZodString;
@@ -45,33 +45,35 @@ export declare const registrySchema: z.ZodArray<z.ZodObject<{
45
45
  name: string;
46
46
  files: string[];
47
47
  description?: string | undefined;
48
+ category?: string | undefined;
49
+ subcategory?: string | undefined;
48
50
  dependencies?: string[] | undefined;
49
51
  devDependencies?: string[] | undefined;
50
52
  registryDependencies?: string[] | undefined;
51
- category?: string | undefined;
52
- subcategory?: string | undefined;
53
53
  }, {
54
54
  type: "components:ui" | "components:component" | "components:example" | "components:block";
55
55
  name: string;
56
56
  files: string[];
57
57
  description?: string | undefined;
58
+ category?: string | undefined;
59
+ subcategory?: string | undefined;
58
60
  dependencies?: string[] | undefined;
59
61
  devDependencies?: string[] | undefined;
60
62
  registryDependencies?: string[] | undefined;
61
- category?: string | undefined;
62
- subcategory?: string | undefined;
63
63
  }>, "many">;
64
64
  export type RegistryEntry = z.infer<typeof registryEntrySchema>;
65
65
  export type Registry = z.infer<typeof registrySchema>;
66
- export declare const blockSchema: z.ZodObject<{
66
+ export declare const blockSchema: z.ZodObject<z.objectUtil.extendShape<{
67
67
  name: z.ZodString;
68
68
  description: z.ZodOptional<z.ZodString>;
69
- category: z.ZodOptional<z.ZodString>;
70
- subcategory: z.ZodOptional<z.ZodString>;
71
69
  dependencies: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
72
70
  devDependencies: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
73
71
  registryDependencies: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
74
72
  files: z.ZodArray<z.ZodString, "many">;
73
+ type: z.ZodEnum<["components:ui", "components:component", "components:example", "components:block"]>;
74
+ category: z.ZodOptional<z.ZodString>;
75
+ subcategory: z.ZodOptional<z.ZodString>;
76
+ }, {
75
77
  type: z.ZodLiteral<"components:block">;
76
78
  style: z.ZodEnum<["default", "new-york"]>;
77
79
  component: z.ZodAny;
@@ -79,21 +81,25 @@ export declare const blockSchema: z.ZodObject<{
79
81
  height: z.ZodOptional<z.ZodString>;
80
82
  className: z.ZodOptional<z.ZodNullable<z.ZodString>>;
81
83
  }, "strip", z.ZodTypeAny, {
82
- height?: string | undefined;
83
84
  className?: string | null | undefined;
84
- }, {
85
85
  height?: string | undefined;
86
+ }, {
86
87
  className?: string | null | undefined;
88
+ height?: string | undefined;
87
89
  }>>;
88
90
  code: z.ZodString;
89
91
  highlightedCode: z.ZodString;
90
- }, "strip", z.ZodTypeAny, {
92
+ }>, "strip", z.ZodTypeAny, {
91
93
  code: string;
92
94
  style: "default" | "new-york";
93
95
  type: "components:block";
94
96
  name: string;
95
97
  files: string[];
96
98
  highlightedCode: string;
99
+ container?: {
100
+ className?: string | null | undefined;
101
+ height?: string | undefined;
102
+ } | undefined;
97
103
  description?: string | undefined;
98
104
  category?: string | undefined;
99
105
  subcategory?: string | undefined;
@@ -101,10 +107,6 @@ export declare const blockSchema: z.ZodObject<{
101
107
  devDependencies?: string[] | undefined;
102
108
  registryDependencies?: string[] | undefined;
103
109
  component?: any;
104
- container?: {
105
- height?: string | undefined;
106
- className?: string | null | undefined;
107
- } | undefined;
108
110
  }, {
109
111
  code: string;
110
112
  style: "default" | "new-york";
@@ -112,6 +114,10 @@ export declare const blockSchema: z.ZodObject<{
112
114
  name: string;
113
115
  files: string[];
114
116
  highlightedCode: string;
117
+ container?: {
118
+ className?: string | null | undefined;
119
+ height?: string | undefined;
120
+ } | undefined;
115
121
  description?: string | undefined;
116
122
  category?: string | undefined;
117
123
  subcategory?: string | undefined;
@@ -119,9 +125,5 @@ export declare const blockSchema: z.ZodObject<{
119
125
  devDependencies?: string[] | undefined;
120
126
  registryDependencies?: string[] | undefined;
121
127
  component?: any;
122
- container?: {
123
- height?: string | undefined;
124
- className?: string | null | undefined;
125
- } | undefined;
126
128
  }>;
127
129
  export type Block = z.infer<typeof blockSchema>;
@@ -1 +1 @@
1
- import{jsx as o}from"react/jsx-runtime";import{useRef as t}from"react";import{cn as s}from"../../lib/utils";const f=l=>{const{className:e,children:r}=l,n=t(null);return o("div",{ref:n,className:s("fixed left-0 top-0 z-30 mx-auto max-h-full min-h-full w-full overflow-auto ",e),children:o("div",{className:"relative mx-auto",children:r})})},d=l=>{const{children:e}=l;return o("div",{className:"flex h-full flex-col p-2",children:e})};export{f as FullScreenPanel,d as FullScreenPanelContent};
1
+ import{jsx as o}from"react/jsx-runtime";import{useRef as n}from"react";import{cn as s}from"../../lib/utils";const f=l=>{const{className:e,children:r}=l,t=n(null);return o("div",{ref:t,className:s("fixed left-0 top-0 z-30 mx-auto max-h-full min-h-full w-full overflow-auto bg-slate-500",e),children:o("div",{className:"relative mx-auto",children:r})})},d=l=>{const{children:e}=l;return o("div",{className:"flex h-full flex-col p-2",children:e})};export{f as FullScreenPanel,d as FullScreenPanelContent};