@servicetitan/json-render-react 0.1.1
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/catalog/core/catalog-prompt.md +281 -0
- package/dist/catalog/core/schema.json +63 -0
- package/dist/catalog/marketing/catalog-prompt.md +282 -0
- package/dist/catalog/marketing/schema.json +64 -0
- package/dist/core/actions.d.ts +20 -0
- package/dist/core/catalog/alert.catalog.d.ts +15 -0
- package/dist/core/catalog/alert.d.ts +9 -0
- package/dist/core/catalog/badge.catalog.d.ts +12 -0
- package/dist/core/catalog/badge.d.ts +8 -0
- package/dist/core/catalog/bar-chart.catalog.d.ts +22 -0
- package/dist/core/catalog/bar-chart.d.ts +6 -0
- package/dist/core/catalog/button.catalog.d.ts +21 -0
- package/dist/core/catalog/button.d.ts +7 -0
- package/dist/core/catalog/card.catalog.d.ts +18 -0
- package/dist/core/catalog/card.d.ts +8 -0
- package/dist/core/catalog/catalog-def.d.ts +394 -0
- package/dist/core/catalog/chart-utils.d.ts +2 -0
- package/dist/core/catalog/checkbox.catalog.d.ts +10 -0
- package/dist/core/catalog/checkbox.d.ts +8 -0
- package/dist/core/catalog/chip.catalog.d.ts +19 -0
- package/dist/core/catalog/chip.d.ts +7 -0
- package/dist/core/catalog/divider.catalog.d.ts +25 -0
- package/dist/core/catalog/divider.d.ts +6 -0
- package/dist/core/catalog/donut-chart.catalog.d.ts +19 -0
- package/dist/core/catalog/donut-chart.d.ts +6 -0
- package/dist/core/catalog/flex.catalog.d.ts +42 -0
- package/dist/core/catalog/flex.d.ts +8 -0
- package/dist/core/catalog/grid.catalog.d.ts +17 -0
- package/dist/core/catalog/grid.d.ts +8 -0
- package/dist/core/catalog/icon.catalog.d.ts +19 -0
- package/dist/core/catalog/icon.d.ts +6 -0
- package/dist/core/catalog/index.d.ts +7 -0
- package/dist/core/catalog/input.catalog.d.ts +19 -0
- package/dist/core/catalog/input.d.ts +8 -0
- package/dist/core/catalog/line-chart.catalog.d.ts +18 -0
- package/dist/core/catalog/line-chart.d.ts +6 -0
- package/dist/core/catalog/link.catalog.d.ts +18 -0
- package/dist/core/catalog/link.d.ts +7 -0
- package/dist/core/catalog/listbox.catalog.d.ts +14 -0
- package/dist/core/catalog/listbox.d.ts +8 -0
- package/dist/core/catalog/progress-bar.catalog.d.ts +11 -0
- package/dist/core/catalog/progress-bar.d.ts +6 -0
- package/dist/core/catalog/radio-group.catalog.d.ts +14 -0
- package/dist/core/catalog/radio-group.d.ts +8 -0
- package/dist/core/catalog/schemas.d.ts +353 -0
- package/dist/core/catalog/switch.catalog.d.ts +10 -0
- package/dist/core/catalog/switch.d.ts +8 -0
- package/dist/core/catalog/text.catalog.d.ts +28 -0
- package/dist/core/catalog/text.d.ts +6 -0
- package/dist/generate.d.ts +9 -0
- package/dist/index.d.ts +6 -0
- package/dist/json-render-react.js +11132 -0
- package/dist/json-render-react.js.map +1 -0
- package/dist/marketing/catalog/catalog.d.ts +1 -0
- package/dist/marketing/catalog/components/index.d.ts +14 -0
- package/dist/marketing/catalog/components/revenue-card.catalog.d.ts +15 -0
- package/dist/marketing/catalog/components/revenue-card.d.ts +6 -0
- package/dist/marketing/catalog/index.d.ts +6 -0
- package/dist/marketing/catalog/teams.d.ts +4 -0
- package/dist/registry-utils.d.ts +6 -0
- package/dist/registry.d.ts +8 -0
- package/dist/renderers/internal/enrichments/button-actions.d.ts +7 -0
- package/dist/renderers/internal/enrichments/useEnrichedSpec.d.ts +3 -0
- package/dist/renderers/spec-renderer.d.ts +15 -0
- package/dist/renderers/types.d.ts +3 -0
- package/dist/team-catalog.d.ts +26 -0
- package/dist/types.d.ts +14 -0
- package/dist/utils/defined-props.d.ts +6 -0
- package/package.json +80 -0
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const lineChartCatalog: {
|
|
3
|
+
props: z.ZodObject<{
|
|
4
|
+
data: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>>;
|
|
5
|
+
series: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
6
|
+
theme: z.ZodOptional<z.ZodEnum<{
|
|
7
|
+
monochrome: "monochrome";
|
|
8
|
+
categorical: "categorical";
|
|
9
|
+
semantic: "semantic";
|
|
10
|
+
}>>;
|
|
11
|
+
showLegend: z.ZodOptional<z.ZodBoolean>;
|
|
12
|
+
showDots: z.ZodOptional<z.ZodBoolean>;
|
|
13
|
+
height: z.ZodOptional<z.ZodNumber>;
|
|
14
|
+
unit: z.ZodOptional<z.ZodString>;
|
|
15
|
+
}, z.core.$strip>;
|
|
16
|
+
slots: never[];
|
|
17
|
+
description: string;
|
|
18
|
+
};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const linkCatalog: {
|
|
3
|
+
props: z.ZodObject<{
|
|
4
|
+
label: z.ZodString;
|
|
5
|
+
href: z.ZodString;
|
|
6
|
+
appearance: z.ZodOptional<z.ZodEnum<{
|
|
7
|
+
primary: "primary";
|
|
8
|
+
secondary: "secondary";
|
|
9
|
+
}>>;
|
|
10
|
+
target: z.ZodOptional<z.ZodEnum<{
|
|
11
|
+
_blank: "_blank";
|
|
12
|
+
_self: "_self";
|
|
13
|
+
}>>;
|
|
14
|
+
ghost: z.ZodOptional<z.ZodBoolean>;
|
|
15
|
+
}, z.core.$strip>;
|
|
16
|
+
slots: never[];
|
|
17
|
+
description: string;
|
|
18
|
+
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { linkCatalog } from './link.catalog';
|
|
3
|
+
export { linkCatalog };
|
|
4
|
+
export declare const LinkRenderer: ({ props, emit, }: {
|
|
5
|
+
props: z.infer<typeof linkCatalog.props>;
|
|
6
|
+
emit: (event: string) => void;
|
|
7
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const listboxCatalog: {
|
|
3
|
+
props: z.ZodObject<{
|
|
4
|
+
label: z.ZodString;
|
|
5
|
+
options: z.ZodArray<z.ZodObject<{
|
|
6
|
+
value: z.ZodString;
|
|
7
|
+
label: z.ZodString;
|
|
8
|
+
}, z.core.$strip>>;
|
|
9
|
+
value: z.ZodOptional<z.ZodString>;
|
|
10
|
+
disabled: z.ZodOptional<z.ZodBoolean>;
|
|
11
|
+
}, z.core.$strip>;
|
|
12
|
+
slots: never[];
|
|
13
|
+
description: string;
|
|
14
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { listboxCatalog } from './listbox.catalog';
|
|
3
|
+
export { listboxCatalog };
|
|
4
|
+
export declare const ListboxRenderer: ({ props, bindings, emit, }: {
|
|
5
|
+
props: z.infer<typeof listboxCatalog.props>;
|
|
6
|
+
bindings?: Record<string, string>;
|
|
7
|
+
emit: (event: string) => void;
|
|
8
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const progressBarCatalog: {
|
|
3
|
+
props: z.ZodObject<{
|
|
4
|
+
label: z.ZodString;
|
|
5
|
+
value: z.ZodOptional<z.ZodNumber>;
|
|
6
|
+
description: z.ZodOptional<z.ZodString>;
|
|
7
|
+
indeterminate: z.ZodOptional<z.ZodBoolean>;
|
|
8
|
+
}, z.core.$strip>;
|
|
9
|
+
slots: never[];
|
|
10
|
+
description: string;
|
|
11
|
+
};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { progressBarCatalog } from './progress-bar.catalog';
|
|
3
|
+
export { progressBarCatalog };
|
|
4
|
+
export declare const ProgressBarRenderer: ({ props, }: {
|
|
5
|
+
props: z.infer<typeof progressBarCatalog.props>;
|
|
6
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const radioGroupCatalog: {
|
|
3
|
+
props: z.ZodObject<{
|
|
4
|
+
label: z.ZodString;
|
|
5
|
+
options: z.ZodArray<z.ZodObject<{
|
|
6
|
+
value: z.ZodString;
|
|
7
|
+
label: z.ZodString;
|
|
8
|
+
}, z.core.$strip>>;
|
|
9
|
+
value: z.ZodOptional<z.ZodString>;
|
|
10
|
+
disabled: z.ZodOptional<z.ZodBoolean>;
|
|
11
|
+
}, z.core.$strip>;
|
|
12
|
+
slots: never[];
|
|
13
|
+
description: string;
|
|
14
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { radioGroupCatalog } from './radio-group.catalog';
|
|
3
|
+
export { radioGroupCatalog };
|
|
4
|
+
export declare const RadioGroupRenderer: ({ props, bindings, emit, }: {
|
|
5
|
+
props: z.infer<typeof radioGroupCatalog.props>;
|
|
6
|
+
bindings?: Record<string, string>;
|
|
7
|
+
emit: (event: string) => void;
|
|
8
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,353 @@
|
|
|
1
|
+
export declare const baseComponents: {
|
|
2
|
+
Text: {
|
|
3
|
+
props: import('zod').ZodObject<{
|
|
4
|
+
content: import('zod').ZodString;
|
|
5
|
+
variant: import('zod').ZodOptional<import('zod').ZodEnum<{
|
|
6
|
+
headline: "headline";
|
|
7
|
+
body: "body";
|
|
8
|
+
eyebrow: "eyebrow";
|
|
9
|
+
}>>;
|
|
10
|
+
size: import('zod').ZodOptional<import('zod').ZodEnum<{
|
|
11
|
+
small: "small";
|
|
12
|
+
medium: "medium";
|
|
13
|
+
large: "large";
|
|
14
|
+
xlarge: "xlarge";
|
|
15
|
+
}>>;
|
|
16
|
+
subdued: import('zod').ZodOptional<import('zod').ZodBoolean>;
|
|
17
|
+
el: import('zod').ZodOptional<import('zod').ZodEnum<{
|
|
18
|
+
h1: "h1";
|
|
19
|
+
h2: "h2";
|
|
20
|
+
h3: "h3";
|
|
21
|
+
h4: "h4";
|
|
22
|
+
h5: "h5";
|
|
23
|
+
h6: "h6";
|
|
24
|
+
}>>;
|
|
25
|
+
}, import('zod/v4/core').$strip>;
|
|
26
|
+
slots: never[];
|
|
27
|
+
description: string;
|
|
28
|
+
};
|
|
29
|
+
Card: {
|
|
30
|
+
props: import('zod').ZodObject<{
|
|
31
|
+
background: import('zod').ZodOptional<import('zod').ZodEnum<{
|
|
32
|
+
strong: "strong";
|
|
33
|
+
stronger: "stronger";
|
|
34
|
+
}>>;
|
|
35
|
+
padding: import('zod').ZodOptional<import('zod').ZodEnum<{
|
|
36
|
+
0: "0";
|
|
37
|
+
xsmall: "xsmall";
|
|
38
|
+
small: "small";
|
|
39
|
+
medium: "medium";
|
|
40
|
+
large: "large";
|
|
41
|
+
}>>;
|
|
42
|
+
}, import('zod/v4/core').$strip>;
|
|
43
|
+
slots: string[];
|
|
44
|
+
description: string;
|
|
45
|
+
};
|
|
46
|
+
Flex: {
|
|
47
|
+
props: import('zod').ZodObject<{
|
|
48
|
+
direction: import('zod').ZodOptional<import('zod').ZodEnum<{
|
|
49
|
+
row: "row";
|
|
50
|
+
column: "column";
|
|
51
|
+
}>>;
|
|
52
|
+
gap: import('zod').ZodOptional<import('zod').ZodEnum<{
|
|
53
|
+
1: "1";
|
|
54
|
+
2: "2";
|
|
55
|
+
3: "3";
|
|
56
|
+
4: "4";
|
|
57
|
+
5: "5";
|
|
58
|
+
6: "6";
|
|
59
|
+
}>>;
|
|
60
|
+
alignItems: import('zod').ZodOptional<import('zod').ZodEnum<{
|
|
61
|
+
center: "center";
|
|
62
|
+
"flex-start": "flex-start";
|
|
63
|
+
"flex-end": "flex-end";
|
|
64
|
+
stretch: "stretch";
|
|
65
|
+
baseline: "baseline";
|
|
66
|
+
}>>;
|
|
67
|
+
justifyContent: import('zod').ZodOptional<import('zod').ZodEnum<{
|
|
68
|
+
center: "center";
|
|
69
|
+
"flex-start": "flex-start";
|
|
70
|
+
"flex-end": "flex-end";
|
|
71
|
+
"space-between": "space-between";
|
|
72
|
+
"space-around": "space-around";
|
|
73
|
+
"space-evenly": "space-evenly";
|
|
74
|
+
}>>;
|
|
75
|
+
wrap: import('zod').ZodOptional<import('zod').ZodEnum<{
|
|
76
|
+
wrap: "wrap";
|
|
77
|
+
nowrap: "nowrap";
|
|
78
|
+
"wrap-reverse": "wrap-reverse";
|
|
79
|
+
}>>;
|
|
80
|
+
grow: import('zod').ZodOptional<import('zod').ZodNumber>;
|
|
81
|
+
shrink: import('zod').ZodOptional<import('zod').ZodNumber>;
|
|
82
|
+
inline: import('zod').ZodOptional<import('zod').ZodBoolean>;
|
|
83
|
+
}, import('zod/v4/core').$strip>;
|
|
84
|
+
slots: string[];
|
|
85
|
+
description: string;
|
|
86
|
+
};
|
|
87
|
+
Grid: {
|
|
88
|
+
props: import('zod').ZodObject<{
|
|
89
|
+
templateColumns: import('zod').ZodOptional<import('zod').ZodString>;
|
|
90
|
+
gap: import('zod').ZodOptional<import('zod').ZodEnum<{
|
|
91
|
+
1: "1";
|
|
92
|
+
2: "2";
|
|
93
|
+
3: "3";
|
|
94
|
+
4: "4";
|
|
95
|
+
5: "5";
|
|
96
|
+
6: "6";
|
|
97
|
+
}>>;
|
|
98
|
+
bordered: import('zod').ZodOptional<import('zod').ZodBoolean>;
|
|
99
|
+
}, import('zod/v4/core').$strip>;
|
|
100
|
+
slots: string[];
|
|
101
|
+
description: string;
|
|
102
|
+
};
|
|
103
|
+
Alert: {
|
|
104
|
+
props: import('zod').ZodObject<{
|
|
105
|
+
title: import('zod').ZodString;
|
|
106
|
+
status: import('zod').ZodOptional<import('zod').ZodEnum<{
|
|
107
|
+
success: "success";
|
|
108
|
+
info: "info";
|
|
109
|
+
warning: "warning";
|
|
110
|
+
danger: "danger";
|
|
111
|
+
}>>;
|
|
112
|
+
dismissible: import('zod').ZodOptional<import('zod').ZodBoolean>;
|
|
113
|
+
}, import('zod/v4/core').$strip>;
|
|
114
|
+
slots: string[];
|
|
115
|
+
description: string;
|
|
116
|
+
};
|
|
117
|
+
Divider: {
|
|
118
|
+
props: import('zod').ZodObject<{
|
|
119
|
+
vertical: import('zod').ZodOptional<import('zod').ZodBoolean>;
|
|
120
|
+
spacing: import('zod').ZodOptional<import('zod').ZodEnum<{
|
|
121
|
+
0: "0";
|
|
122
|
+
1: "1";
|
|
123
|
+
2: "2";
|
|
124
|
+
3: "3";
|
|
125
|
+
4: "4";
|
|
126
|
+
half: "half";
|
|
127
|
+
5: "5";
|
|
128
|
+
6: "6";
|
|
129
|
+
8: "8";
|
|
130
|
+
12: "12";
|
|
131
|
+
}>>;
|
|
132
|
+
alignContent: import('zod').ZodOptional<import('zod').ZodEnum<{
|
|
133
|
+
start: "start";
|
|
134
|
+
center: "center";
|
|
135
|
+
end: "end";
|
|
136
|
+
}>>;
|
|
137
|
+
}, import('zod/v4/core').$strip>;
|
|
138
|
+
slots: never[];
|
|
139
|
+
description: string;
|
|
140
|
+
};
|
|
141
|
+
Icon: {
|
|
142
|
+
props: import('zod').ZodObject<{
|
|
143
|
+
name: import('zod').ZodEnum<{
|
|
144
|
+
"check-circle": "check-circle";
|
|
145
|
+
"in-progress": "in-progress";
|
|
146
|
+
"radio-button-unchecked": "radio-button-unchecked";
|
|
147
|
+
}>;
|
|
148
|
+
size: import('zod').ZodOptional<import('zod').ZodEnum<{
|
|
149
|
+
small: "small";
|
|
150
|
+
medium: "medium";
|
|
151
|
+
large: "large";
|
|
152
|
+
xlarge: "xlarge";
|
|
153
|
+
}>>;
|
|
154
|
+
color: import('zod').ZodOptional<import('zod').ZodString>;
|
|
155
|
+
}, import('zod/v4/core').$strip>;
|
|
156
|
+
slots: never[];
|
|
157
|
+
description: string;
|
|
158
|
+
};
|
|
159
|
+
Badge: {
|
|
160
|
+
props: import('zod').ZodObject<{
|
|
161
|
+
content: import('zod').ZodOptional<import('zod').ZodString>;
|
|
162
|
+
offset: import('zod').ZodOptional<import('zod').ZodObject<{
|
|
163
|
+
x: import('zod').ZodOptional<import('zod').ZodString>;
|
|
164
|
+
y: import('zod').ZodOptional<import('zod').ZodString>;
|
|
165
|
+
}, import('zod/v4/core').$strip>>;
|
|
166
|
+
}, import('zod/v4/core').$strip>;
|
|
167
|
+
slots: string[];
|
|
168
|
+
description: string;
|
|
169
|
+
};
|
|
170
|
+
Chip: {
|
|
171
|
+
props: import('zod').ZodObject<{
|
|
172
|
+
label: import('zod').ZodString;
|
|
173
|
+
size: import('zod').ZodOptional<import('zod').ZodEnum<{
|
|
174
|
+
small: "small";
|
|
175
|
+
medium: "medium";
|
|
176
|
+
}>>;
|
|
177
|
+
color: import('zod').ZodOptional<import('zod').ZodString>;
|
|
178
|
+
icon: import('zod').ZodOptional<import('zod').ZodEnum<{
|
|
179
|
+
"check-circle": "check-circle";
|
|
180
|
+
"in-progress": "in-progress";
|
|
181
|
+
"radio-button-unchecked": "radio-button-unchecked";
|
|
182
|
+
}>>;
|
|
183
|
+
removable: import('zod').ZodOptional<import('zod').ZodBoolean>;
|
|
184
|
+
}, import('zod/v4/core').$strip>;
|
|
185
|
+
slots: never[];
|
|
186
|
+
description: string;
|
|
187
|
+
};
|
|
188
|
+
Link: {
|
|
189
|
+
props: import('zod').ZodObject<{
|
|
190
|
+
label: import('zod').ZodString;
|
|
191
|
+
href: import('zod').ZodString;
|
|
192
|
+
appearance: import('zod').ZodOptional<import('zod').ZodEnum<{
|
|
193
|
+
primary: "primary";
|
|
194
|
+
secondary: "secondary";
|
|
195
|
+
}>>;
|
|
196
|
+
target: import('zod').ZodOptional<import('zod').ZodEnum<{
|
|
197
|
+
_blank: "_blank";
|
|
198
|
+
_self: "_self";
|
|
199
|
+
}>>;
|
|
200
|
+
ghost: import('zod').ZodOptional<import('zod').ZodBoolean>;
|
|
201
|
+
}, import('zod/v4/core').$strip>;
|
|
202
|
+
slots: never[];
|
|
203
|
+
description: string;
|
|
204
|
+
};
|
|
205
|
+
ProgressBar: {
|
|
206
|
+
props: import('zod').ZodObject<{
|
|
207
|
+
label: import('zod').ZodString;
|
|
208
|
+
value: import('zod').ZodOptional<import('zod').ZodNumber>;
|
|
209
|
+
description: import('zod').ZodOptional<import('zod').ZodString>;
|
|
210
|
+
indeterminate: import('zod').ZodOptional<import('zod').ZodBoolean>;
|
|
211
|
+
}, import('zod/v4/core').$strip>;
|
|
212
|
+
slots: never[];
|
|
213
|
+
description: string;
|
|
214
|
+
};
|
|
215
|
+
BarChart: {
|
|
216
|
+
props: import('zod').ZodObject<{
|
|
217
|
+
data: import('zod').ZodArray<import('zod').ZodObject<{
|
|
218
|
+
category: import('zod').ZodString;
|
|
219
|
+
value: import('zod').ZodNumber;
|
|
220
|
+
}, import('zod/v4/core').$strip>>;
|
|
221
|
+
orientation: import('zod').ZodOptional<import('zod').ZodEnum<{
|
|
222
|
+
vertical: "vertical";
|
|
223
|
+
horizontal: "horizontal";
|
|
224
|
+
}>>;
|
|
225
|
+
theme: import('zod').ZodOptional<import('zod').ZodEnum<{
|
|
226
|
+
monochrome: "monochrome";
|
|
227
|
+
categorical: "categorical";
|
|
228
|
+
semantic: "semantic";
|
|
229
|
+
}>>;
|
|
230
|
+
height: import('zod').ZodOptional<import('zod').ZodNumber>;
|
|
231
|
+
unit: import('zod').ZodOptional<import('zod').ZodString>;
|
|
232
|
+
}, import('zod/v4/core').$strip>;
|
|
233
|
+
slots: never[];
|
|
234
|
+
description: string;
|
|
235
|
+
};
|
|
236
|
+
DonutChart: {
|
|
237
|
+
props: import('zod').ZodObject<{
|
|
238
|
+
data: import('zod').ZodArray<import('zod').ZodObject<{
|
|
239
|
+
category: import('zod').ZodString;
|
|
240
|
+
value: import('zod').ZodNumber;
|
|
241
|
+
}, import('zod/v4/core').$strip>>;
|
|
242
|
+
theme: import('zod').ZodOptional<import('zod').ZodEnum<{
|
|
243
|
+
monochrome: "monochrome";
|
|
244
|
+
categorical: "categorical";
|
|
245
|
+
semantic: "semantic";
|
|
246
|
+
}>>;
|
|
247
|
+
showLegend: import('zod').ZodOptional<import('zod').ZodBoolean>;
|
|
248
|
+
height: import('zod').ZodOptional<import('zod').ZodNumber>;
|
|
249
|
+
unit: import('zod').ZodOptional<import('zod').ZodString>;
|
|
250
|
+
}, import('zod/v4/core').$strip>;
|
|
251
|
+
slots: never[];
|
|
252
|
+
description: string;
|
|
253
|
+
};
|
|
254
|
+
LineChart: {
|
|
255
|
+
props: import('zod').ZodObject<{
|
|
256
|
+
data: import('zod').ZodArray<import('zod').ZodRecord<import('zod').ZodString, import('zod').ZodUnion<readonly [import('zod').ZodString, import('zod').ZodNumber]>>>;
|
|
257
|
+
series: import('zod').ZodOptional<import('zod').ZodArray<import('zod').ZodString>>;
|
|
258
|
+
theme: import('zod').ZodOptional<import('zod').ZodEnum<{
|
|
259
|
+
monochrome: "monochrome";
|
|
260
|
+
categorical: "categorical";
|
|
261
|
+
semantic: "semantic";
|
|
262
|
+
}>>;
|
|
263
|
+
showLegend: import('zod').ZodOptional<import('zod').ZodBoolean>;
|
|
264
|
+
showDots: import('zod').ZodOptional<import('zod').ZodBoolean>;
|
|
265
|
+
height: import('zod').ZodOptional<import('zod').ZodNumber>;
|
|
266
|
+
unit: import('zod').ZodOptional<import('zod').ZodString>;
|
|
267
|
+
}, import('zod/v4/core').$strip>;
|
|
268
|
+
slots: never[];
|
|
269
|
+
description: string;
|
|
270
|
+
};
|
|
271
|
+
Button: {
|
|
272
|
+
props: import('zod').ZodObject<{
|
|
273
|
+
label: import('zod').ZodString;
|
|
274
|
+
appearance: import('zod').ZodOptional<import('zod').ZodEnum<{
|
|
275
|
+
primary: "primary";
|
|
276
|
+
secondary: "secondary";
|
|
277
|
+
ghost: "ghost";
|
|
278
|
+
}>>;
|
|
279
|
+
size: import('zod').ZodOptional<import('zod').ZodEnum<{
|
|
280
|
+
xsmall: "xsmall";
|
|
281
|
+
small: "small";
|
|
282
|
+
medium: "medium";
|
|
283
|
+
large: "large";
|
|
284
|
+
}>>;
|
|
285
|
+
loading: import('zod').ZodOptional<import('zod').ZodBoolean>;
|
|
286
|
+
disabled: import('zod').ZodOptional<import('zod').ZodBoolean>;
|
|
287
|
+
}, import('zod/v4/core').$strip>;
|
|
288
|
+
slots: never[];
|
|
289
|
+
description: string;
|
|
290
|
+
};
|
|
291
|
+
Checkbox: {
|
|
292
|
+
props: import('zod').ZodObject<{
|
|
293
|
+
label: import('zod').ZodString;
|
|
294
|
+
checked: import('zod').ZodOptional<import('zod').ZodBoolean>;
|
|
295
|
+
disabled: import('zod').ZodOptional<import('zod').ZodBoolean>;
|
|
296
|
+
}, import('zod/v4/core').$strip>;
|
|
297
|
+
slots: never[];
|
|
298
|
+
description: string;
|
|
299
|
+
};
|
|
300
|
+
Input: {
|
|
301
|
+
props: import('zod').ZodObject<{
|
|
302
|
+
label: import('zod').ZodString;
|
|
303
|
+
placeholder: import('zod').ZodOptional<import('zod').ZodString>;
|
|
304
|
+
type: import('zod').ZodOptional<import('zod').ZodEnum<{
|
|
305
|
+
number: "number";
|
|
306
|
+
url: "url";
|
|
307
|
+
text: "text";
|
|
308
|
+
password: "password";
|
|
309
|
+
email: "email";
|
|
310
|
+
tel: "tel";
|
|
311
|
+
}>>;
|
|
312
|
+
value: import('zod').ZodOptional<import('zod').ZodString>;
|
|
313
|
+
disabled: import('zod').ZodOptional<import('zod').ZodBoolean>;
|
|
314
|
+
}, import('zod/v4/core').$strip>;
|
|
315
|
+
slots: never[];
|
|
316
|
+
description: string;
|
|
317
|
+
};
|
|
318
|
+
Listbox: {
|
|
319
|
+
props: import('zod').ZodObject<{
|
|
320
|
+
label: import('zod').ZodString;
|
|
321
|
+
options: import('zod').ZodArray<import('zod').ZodObject<{
|
|
322
|
+
value: import('zod').ZodString;
|
|
323
|
+
label: import('zod').ZodString;
|
|
324
|
+
}, import('zod/v4/core').$strip>>;
|
|
325
|
+
value: import('zod').ZodOptional<import('zod').ZodString>;
|
|
326
|
+
disabled: import('zod').ZodOptional<import('zod').ZodBoolean>;
|
|
327
|
+
}, import('zod/v4/core').$strip>;
|
|
328
|
+
slots: never[];
|
|
329
|
+
description: string;
|
|
330
|
+
};
|
|
331
|
+
RadioGroup: {
|
|
332
|
+
props: import('zod').ZodObject<{
|
|
333
|
+
label: import('zod').ZodString;
|
|
334
|
+
options: import('zod').ZodArray<import('zod').ZodObject<{
|
|
335
|
+
value: import('zod').ZodString;
|
|
336
|
+
label: import('zod').ZodString;
|
|
337
|
+
}, import('zod/v4/core').$strip>>;
|
|
338
|
+
value: import('zod').ZodOptional<import('zod').ZodString>;
|
|
339
|
+
disabled: import('zod').ZodOptional<import('zod').ZodBoolean>;
|
|
340
|
+
}, import('zod/v4/core').$strip>;
|
|
341
|
+
slots: never[];
|
|
342
|
+
description: string;
|
|
343
|
+
};
|
|
344
|
+
Switch: {
|
|
345
|
+
props: import('zod').ZodObject<{
|
|
346
|
+
label: import('zod').ZodString;
|
|
347
|
+
checked: import('zod').ZodOptional<import('zod').ZodBoolean>;
|
|
348
|
+
disabled: import('zod').ZodOptional<import('zod').ZodBoolean>;
|
|
349
|
+
}, import('zod/v4/core').$strip>;
|
|
350
|
+
slots: never[];
|
|
351
|
+
description: string;
|
|
352
|
+
};
|
|
353
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { switchCatalog } from './switch.catalog';
|
|
3
|
+
export { switchCatalog };
|
|
4
|
+
export declare const SwitchRenderer: ({ props, bindings, emit, }: {
|
|
5
|
+
props: z.infer<typeof switchCatalog.props>;
|
|
6
|
+
bindings?: Record<string, string>;
|
|
7
|
+
emit: (event: string) => void;
|
|
8
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const textCatalog: {
|
|
3
|
+
props: z.ZodObject<{
|
|
4
|
+
content: z.ZodString;
|
|
5
|
+
variant: z.ZodOptional<z.ZodEnum<{
|
|
6
|
+
headline: "headline";
|
|
7
|
+
body: "body";
|
|
8
|
+
eyebrow: "eyebrow";
|
|
9
|
+
}>>;
|
|
10
|
+
size: z.ZodOptional<z.ZodEnum<{
|
|
11
|
+
small: "small";
|
|
12
|
+
medium: "medium";
|
|
13
|
+
large: "large";
|
|
14
|
+
xlarge: "xlarge";
|
|
15
|
+
}>>;
|
|
16
|
+
subdued: z.ZodOptional<z.ZodBoolean>;
|
|
17
|
+
el: z.ZodOptional<z.ZodEnum<{
|
|
18
|
+
h1: "h1";
|
|
19
|
+
h2: "h2";
|
|
20
|
+
h3: "h3";
|
|
21
|
+
h4: "h4";
|
|
22
|
+
h5: "h5";
|
|
23
|
+
h6: "h6";
|
|
24
|
+
}>>;
|
|
25
|
+
}, z.core.$strip>;
|
|
26
|
+
slots: never[];
|
|
27
|
+
description: string;
|
|
28
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { MergedCatalog } from './team-catalog';
|
|
2
|
+
export { mergeCatalogs } from './team-catalog';
|
|
3
|
+
export interface GenerateArtifactsOptions {
|
|
4
|
+
teamName: string;
|
|
5
|
+
catalog: MergedCatalog;
|
|
6
|
+
baseRules: string;
|
|
7
|
+
outDir: string;
|
|
8
|
+
}
|
|
9
|
+
export declare function generateArtifacts({ teamName, catalog, baseRules, outDir, }: GenerateArtifactsOptions): void;
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export type { Catalog, Spec } from '@json-render/core';
|
|
2
|
+
export { catalog, executeAction, getRegistry, handlers, registry } from './registry';
|
|
3
|
+
export { SpecRenderer, type SpecRendererProps } from './renderers/spec-renderer';
|
|
4
|
+
export type { ActionCatalogDef, ComponentCatalogDef, MergedCatalog, TeamCatalogDef, } from './team-catalog';
|
|
5
|
+
export { createTeamCatalog, mergeCatalogs } from './team-catalog';
|
|
6
|
+
export type { RendererContext } from './types';
|