@fragno-dev/jsonforms-shadcn-renderers 0.0.0

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/LICENSE.md ADDED
@@ -0,0 +1,16 @@
1
+ Copyright 2025 - present "ReJot Nederland B.V.", and individual contributors.
2
+
3
+ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and
4
+ associated documentation files (the “Software”), to deal in the Software without restriction,
5
+ including without limitation the rights to use, copy, modify, merge, publish, distribute,
6
+ sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is
7
+ furnished to do so, subject to the following conditions:
8
+
9
+ The above copyright notice and this permission notice shall be included in all copies or substantial
10
+ portions of the Software.
11
+
12
+ THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT
13
+ NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
14
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES
15
+ OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
16
+ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,155 @@
1
+ # JSONForms ShadCN Renderer
2
+
3
+ ## Install
4
+
5
+ ```npm
6
+ pnpm add @fragno-dev/jsonforms-shadcn-renderers \
7
+ @jsonforms/react
8
+ ```
9
+
10
+ Make sure you have all of these shadcn components added to your project:
11
+
12
+ ```bash
13
+ pnpm dlx shadcn@latest add button \
14
+ calendar \
15
+ card \
16
+ checkbox \
17
+ field \
18
+ input \
19
+ label \
20
+ popover \
21
+ radio-group \
22
+ select \
23
+ slider \
24
+ switch \
25
+ tabs \
26
+ textarea
27
+ ```
28
+
29
+ ## Configure
30
+
31
+ ### Vite:
32
+
33
+ Because you need to bring your own ShadCN components, these imports must be resolvable in Vite.
34
+
35
+ If you get this error, it means vite cannot find your components.
36
+
37
+ ```
38
+ [vite] Internal server error: Failed to resolve import "@/components/ui/slider" from "jsonforms-shadcn-renderers/src/shadcn-controls/ShadcnSlider.tsx". Does the file exist?
39
+ ```
40
+
41
+ ```ts
42
+ import { defineConfig } from "vite";
43
+ import path from "path";
44
+
45
+ const config = defineConfig({
46
+ resolve: {
47
+ alias: {
48
+ "@/components": path.resolve(__dirname, "./src/components"),
49
+ "@/lib": path.resolve(__dirname, "./src/lib"),
50
+ },
51
+ },
52
+ });
53
+
54
+ export default config;
55
+ ```
56
+
57
+ ### Tailwind
58
+
59
+ Be sure to include this library as a tailwind source, otherwise it will not include the classes used
60
+ in your final build!
61
+
62
+ https://tailwindcss.com/docs/detecting-classes-in-source-files#explicitly-registering-sources
63
+
64
+ ```css
65
+ @source "../node_modules/@fragno-dev/jsonforms-shadcn-renderers";
66
+ ```
67
+
68
+ ## Usage
69
+
70
+ ```ts
71
+ import { JsonForms } from "@jsonforms/react";
72
+ import {
73
+ shadcnRenderers,
74
+ shadcnCells,
75
+ } from "@fragno-dev/jsonforms-shadcn-renderers";
76
+
77
+ function MyDynamicForm() {
78
+ return (
79
+ <JsonForms
80
+ schema={schema}
81
+ uischema={uiSchema}
82
+ data={data}
83
+ renderers={shadcnRenderers}
84
+ cells={shadcnCells}
85
+ onChange={({ data }) => setData(data)}
86
+ />
87
+ );
88
+ }
89
+ ```
90
+
91
+ ## Features
92
+
93
+ ### Controls
94
+
95
+ | Feature | Shadcn | Status |
96
+ | ------------------------- | -------------------------- | ------ |
97
+ | Boolean (checkbox) | ShadcnBooleanControl | ✅ |
98
+ | Boolean (toggle/switch) | ShadcnBooleanToggleControl | ✅ |
99
+ | Text | ShadcnTextControl | ✅ |
100
+ | Textarea (multi-line) | ShadcnTextAreaControl | ✅ |
101
+ | Integer | ShadcnIntegerControl | ✅ |
102
+ | Number | ShadcnNumberControl | ✅ |
103
+ | Slider | ShadcnSliderControl | ✅ |
104
+ | Date | ShadcnDateControl | ✅ |
105
+ | Time | ShadcnTimeControl | ✅ |
106
+ | DateTime | ShadcnDateTimeControl | ✅ |
107
+ | Enum (select) | ShadcnEnumControl | ✅ |
108
+ | Enum (radio) | ShadcnEnumRadioControl | ✅ |
109
+ | OneOf Enum (select) | ShadcnOneOfEnumControl | ✅ |
110
+ | OneOf Enum (radio) | - | ❌ |
111
+ | Object (nested) | ShadcnObjectControl | ✅ |
112
+ | Array (table) | - | ❌ |
113
+ | Array (expandable panels) | - | ❌ |
114
+ | AllOf | - | ❌ |
115
+ | AnyOf | - | ❌ |
116
+ | OneOf (polymorphic) | - | ❌ |
117
+ | Enum Array (multi-select) | - | ❌ |
118
+ | AnyOf String/Enum | - | ❌ |
119
+ | Native inputs | - | ❌ |
120
+
121
+ ### Layouts
122
+
123
+ | Feature | Shadcn | Status |
124
+ | ------------------------ | --------------------------------- | ------ |
125
+ | Vertical | ShadcnVerticalLayout | ✅ |
126
+ | Horizontal | ShadcnHorizontalLayout | ✅ |
127
+ | Group | ShadcnGroupLayout | ✅ |
128
+ | Categorization (tabs) | ShadcnCategorizationLayout | ✅ |
129
+ | Categorization (stepper) | ShadcnCategorizationStepperLayout | ✅ |
130
+ | Array Layout | - | ❌ |
131
+
132
+ ### Additional Renderers
133
+
134
+ | Feature | Shadcn | Status |
135
+ | -------------- | ------ | ------ |
136
+ | Label | - | ❌ |
137
+ | ListWithDetail | - | ❌ |
138
+
139
+ ### Cells (for tables/arrays)
140
+
141
+ | Feature | Shadcn | Status |
142
+ | -------------- | ----------------------- | ------ |
143
+ | Boolean | ShadcnBooleanCell | ✅ |
144
+ | Boolean Toggle | ShadcnBooleanToggleCell | ✅ |
145
+ | Text | ShadcnTextCell | ✅ |
146
+ | Integer | ShadcnIntegerCell | ✅ |
147
+ | Number | ShadcnNumberCell | ✅ |
148
+ | Number Format | - | ❌ |
149
+ | Date | ShadcnDateCell | ✅ |
150
+ | Time | ShadcnTimeCell | ✅ |
151
+ | DateTime | ShadcnDateTimeCell | ✅ |
152
+ | Enum | ShadcnEnumCell | ✅ |
153
+ | Enum Radio | ShadcnEnumRadioCell | ✅ |
154
+ | OneOf Enum | ShadcnOneOfEnumCell | ✅ |
155
+ | Slider | ShadcnSliderCell | ✅ |
@@ -0,0 +1,455 @@
1
+ import * as _jsonforms_core0 from "@jsonforms/core";
2
+ import { CellProps, ControlProps, EnumCellProps, EnumOption, JsonFormsCellRendererRegistryEntry, JsonFormsRendererRegistryEntry, LayoutProps, OwnPropsOfEnum, RankedTester, StatePropsOfControlWithDetail, WithClassname } from "@jsonforms/core";
3
+ import * as react0 from "react";
4
+ import * as react_jsx_runtime0 from "react/jsx-runtime";
5
+
6
+ //#region src/controls/ShadcnBooleanControl.d.ts
7
+ declare const ShadcnBooleanControl: ({
8
+ data,
9
+ visible,
10
+ label,
11
+ id,
12
+ enabled,
13
+ uischema,
14
+ schema,
15
+ rootSchema,
16
+ handleChange,
17
+ errors,
18
+ path,
19
+ config,
20
+ description
21
+ }: ControlProps) => react_jsx_runtime0.JSX.Element | null;
22
+ declare const shadcnBooleanControlTester: RankedTester;
23
+ declare const ShadcnBooleanControlContext: react0.ComponentType<_jsonforms_core0.OwnPropsOfControl>;
24
+ //#endregion
25
+ //#region src/controls/ShadcnBooleanToggleControl.d.ts
26
+ declare const ShadcnBooleanToggleControl: ({
27
+ data,
28
+ visible,
29
+ label,
30
+ id,
31
+ enabled,
32
+ uischema,
33
+ schema,
34
+ rootSchema,
35
+ handleChange,
36
+ errors,
37
+ path,
38
+ config,
39
+ description
40
+ }: ControlProps) => react_jsx_runtime0.JSX.Element | null;
41
+ declare const shadcnBooleanToggleControlTester: RankedTester;
42
+ declare const ShadcnBooleanToggleControlContext: react0.ComponentType<_jsonforms_core0.OwnPropsOfControl>;
43
+ //#endregion
44
+ //#region src/controls/ShadcnTextControl.d.ts
45
+ declare const ShadcnTextControl: ({
46
+ data,
47
+ visible,
48
+ label,
49
+ id,
50
+ enabled,
51
+ schema,
52
+ handleChange,
53
+ errors,
54
+ path,
55
+ description
56
+ }: ControlProps) => react_jsx_runtime0.JSX.Element | null;
57
+ declare const shadcnTextControlTester: RankedTester;
58
+ declare const ShadcnTextControlContext: react0.ComponentType<_jsonforms_core0.OwnPropsOfControl>;
59
+ //#endregion
60
+ //#region src/controls/ShadcnTextAreaControl.d.ts
61
+ declare const ShadcnTextAreaControl: ({
62
+ data,
63
+ visible,
64
+ label,
65
+ id,
66
+ enabled,
67
+ uischema,
68
+ schema,
69
+ rootSchema,
70
+ handleChange,
71
+ errors,
72
+ path,
73
+ config,
74
+ description
75
+ }: ControlProps) => react_jsx_runtime0.JSX.Element | null;
76
+ declare const shadcnTextAreaControlTester: RankedTester;
77
+ declare const ShadcnTextAreaControlContext: react0.ComponentType<_jsonforms_core0.OwnPropsOfControl>;
78
+ //#endregion
79
+ //#region src/controls/ShadcnDateControl.d.ts
80
+ declare const ShadcnDateControl: ({
81
+ data,
82
+ visible,
83
+ label,
84
+ id,
85
+ enabled,
86
+ uischema,
87
+ schema,
88
+ rootSchema,
89
+ handleChange,
90
+ errors,
91
+ path,
92
+ config,
93
+ description
94
+ }: ControlProps) => react_jsx_runtime0.JSX.Element | null;
95
+ declare const shadcnDateControlTester: RankedTester;
96
+ declare const ShadcnDateControlContext: react0.ComponentType<_jsonforms_core0.OwnPropsOfControl>;
97
+ //#endregion
98
+ //#region src/controls/ShadcnTimeControl.d.ts
99
+ declare const ShadcnTimeControl: ({
100
+ data,
101
+ visible,
102
+ label,
103
+ id,
104
+ enabled,
105
+ uischema,
106
+ schema,
107
+ rootSchema,
108
+ handleChange,
109
+ errors,
110
+ path,
111
+ config,
112
+ description
113
+ }: ControlProps) => react_jsx_runtime0.JSX.Element | null;
114
+ declare const shadcnTimeControlTester: RankedTester;
115
+ declare const ShadcnTimeControlContext: react0.ComponentType<_jsonforms_core0.OwnPropsOfControl>;
116
+ //#endregion
117
+ //#region src/controls/ShadcnDateTimeControl.d.ts
118
+ declare const ShadcnDateTimeControl: ({
119
+ data,
120
+ visible,
121
+ label,
122
+ id,
123
+ enabled,
124
+ uischema,
125
+ schema,
126
+ rootSchema,
127
+ handleChange,
128
+ errors,
129
+ path,
130
+ config,
131
+ description
132
+ }: ControlProps) => react_jsx_runtime0.JSX.Element | null;
133
+ declare const shadcnDateTimeControlTester: RankedTester;
134
+ declare const ShadcnDateTimeControlContext: react0.ComponentType<_jsonforms_core0.OwnPropsOfControl>;
135
+ //#endregion
136
+ //#region src/controls/ShadcnIntegerControl.d.ts
137
+ declare const ShadcnIntegerControl: ({
138
+ data,
139
+ visible,
140
+ label,
141
+ id,
142
+ enabled,
143
+ uischema,
144
+ schema,
145
+ rootSchema,
146
+ handleChange,
147
+ errors,
148
+ path,
149
+ config,
150
+ description
151
+ }: ControlProps) => react_jsx_runtime0.JSX.Element | null;
152
+ declare const shadcnIntegerControlTester: RankedTester;
153
+ declare const ShadcnIntegerControlContext: react0.ComponentType<_jsonforms_core0.OwnPropsOfControl>;
154
+ //#endregion
155
+ //#region src/controls/ShadcnNumberControl.d.ts
156
+ declare const ShadcnNumberControl: ({
157
+ data,
158
+ visible,
159
+ label,
160
+ id,
161
+ enabled,
162
+ uischema,
163
+ schema,
164
+ rootSchema,
165
+ handleChange,
166
+ errors,
167
+ path,
168
+ config,
169
+ description
170
+ }: ControlProps) => react_jsx_runtime0.JSX.Element | null;
171
+ declare const shadcnNumberControlTester: RankedTester;
172
+ declare const ShadcnNumberControlContext: react0.ComponentType<_jsonforms_core0.OwnPropsOfControl>;
173
+ //#endregion
174
+ //#region src/controls/ShadcnEnumControl.d.ts
175
+ declare const ShadcnEnumControl: ({
176
+ data,
177
+ visible,
178
+ label,
179
+ id,
180
+ enabled,
181
+ uischema,
182
+ schema,
183
+ rootSchema,
184
+ handleChange,
185
+ errors,
186
+ path,
187
+ config,
188
+ description,
189
+ options
190
+ }: ControlProps & OwnPropsOfEnum) => react_jsx_runtime0.JSX.Element | null;
191
+ declare const shadcnEnumControlTester: RankedTester;
192
+ declare const ShadcnEnumControlContext: react0.ComponentType<_jsonforms_core0.OwnPropsOfControl & OwnPropsOfEnum>;
193
+ //#endregion
194
+ //#region src/controls/ShadcnEnumRadioControl.d.ts
195
+ declare const ShadcnEnumRadioControl: ({
196
+ data,
197
+ visible,
198
+ label,
199
+ id,
200
+ enabled,
201
+ uischema,
202
+ schema,
203
+ rootSchema,
204
+ handleChange,
205
+ errors,
206
+ path,
207
+ config,
208
+ description,
209
+ options
210
+ }: ControlProps & OwnPropsOfEnum) => react_jsx_runtime0.JSX.Element | null;
211
+ declare const shadcnEnumRadioControlTester: RankedTester;
212
+ declare const ShadcnEnumRadioControlContext: react0.ComponentType<_jsonforms_core0.OwnPropsOfControl & OwnPropsOfEnum>;
213
+ //#endregion
214
+ //#region src/controls/ShadcnOneOfEnumControl.d.ts
215
+ declare const ShadcnOneOfEnumControl: ({
216
+ data,
217
+ visible,
218
+ label,
219
+ id,
220
+ enabled,
221
+ uischema,
222
+ schema,
223
+ rootSchema,
224
+ handleChange,
225
+ errors,
226
+ path,
227
+ config,
228
+ description,
229
+ options
230
+ }: ControlProps & OwnPropsOfEnum) => react_jsx_runtime0.JSX.Element | null;
231
+ declare const shadcnOneOfEnumControlTester: RankedTester;
232
+ declare const ShadcnOneOfEnumControlContext: react0.ComponentType<_jsonforms_core0.OwnPropsOfControl & OwnPropsOfEnum>;
233
+ //#endregion
234
+ //#region src/controls/ShadcnSliderControl.d.ts
235
+ declare const ShadcnSliderControl: ({
236
+ data,
237
+ visible,
238
+ label,
239
+ id,
240
+ enabled,
241
+ uischema,
242
+ schema,
243
+ rootSchema,
244
+ handleChange,
245
+ errors,
246
+ path,
247
+ config,
248
+ description
249
+ }: ControlProps) => react_jsx_runtime0.JSX.Element | null;
250
+ declare const shadcnSliderControlTester: RankedTester;
251
+ declare const ShadcnSliderControlContext: react0.ComponentType<_jsonforms_core0.OwnPropsOfControl>;
252
+ //#endregion
253
+ //#region src/controls/ShadcnObjectControl.d.ts
254
+ declare const ShadcnObjectControl: ({
255
+ renderers,
256
+ cells,
257
+ uischemas,
258
+ schema,
259
+ label,
260
+ path,
261
+ visible,
262
+ enabled,
263
+ uischema,
264
+ rootSchema
265
+ }: StatePropsOfControlWithDetail) => react_jsx_runtime0.JSX.Element | null;
266
+ declare const shadcnObjectControlTester: RankedTester;
267
+ declare const ShadcnObjectControlContext: react0.ComponentType<_jsonforms_core0.OwnPropsOfControl>;
268
+ //#endregion
269
+ //#region src/cells/ShadcnBooleanCell.d.ts
270
+ declare const ShadcnBooleanCell: (props: CellProps & WithClassname) => react_jsx_runtime0.JSX.Element;
271
+ declare const shadcnBooleanCellTester: RankedTester;
272
+ declare const ShadcnBooleanCellContext: react0.ComponentType<_jsonforms_core0.OwnPropsOfCell>;
273
+ //#endregion
274
+ //#region src/cells/ShadcnBooleanToggleCell.d.ts
275
+ declare const ShadcnBooleanToggleCell: (props: CellProps & WithClassname) => react_jsx_runtime0.JSX.Element;
276
+ declare const shadcnBooleanToggleCellTester: RankedTester;
277
+ declare const ShadcnBooleanToggleCellContext: react0.ComponentType<_jsonforms_core0.OwnPropsOfCell>;
278
+ //#endregion
279
+ //#region src/cells/ShadcnTextCell.d.ts
280
+ declare const ShadcnTextCell: (props: CellProps & WithClassname) => react_jsx_runtime0.JSX.Element;
281
+ declare const shadcnTextCellTester: RankedTester;
282
+ declare const ShadcnTextCellContext: react0.ComponentType<_jsonforms_core0.OwnPropsOfCell>;
283
+ //#endregion
284
+ //#region src/cells/ShadcnDateCell.d.ts
285
+ declare const ShadcnDateCell: (props: CellProps & WithClassname) => react_jsx_runtime0.JSX.Element;
286
+ declare const shadcnDateCellTester: RankedTester;
287
+ declare const ShadcnDateCellContext: react0.ComponentType<_jsonforms_core0.OwnPropsOfCell>;
288
+ //#endregion
289
+ //#region src/cells/ShadcnTimeCell.d.ts
290
+ declare const ShadcnTimeCell: (props: CellProps & WithClassname) => react_jsx_runtime0.JSX.Element;
291
+ declare const shadcnTimeCellTester: RankedTester;
292
+ declare const ShadcnTimeCellContext: react0.ComponentType<_jsonforms_core0.OwnPropsOfCell>;
293
+ //#endregion
294
+ //#region src/cells/ShadcnDateTimeCell.d.ts
295
+ declare const ShadcnDateTimeCell: (props: CellProps & WithClassname) => react_jsx_runtime0.JSX.Element;
296
+ declare const shadcnDateTimeCellTester: RankedTester;
297
+ declare const ShadcnDateTimeCellContext: react0.ComponentType<_jsonforms_core0.OwnPropsOfCell>;
298
+ //#endregion
299
+ //#region src/cells/ShadcnIntegerCell.d.ts
300
+ declare const ShadcnIntegerCell: (props: CellProps & WithClassname) => react_jsx_runtime0.JSX.Element;
301
+ declare const shadcnIntegerCellTester: RankedTester;
302
+ declare const ShadcnIntegerCellContext: react0.ComponentType<_jsonforms_core0.OwnPropsOfCell>;
303
+ //#endregion
304
+ //#region src/cells/ShadcnNumberCell.d.ts
305
+ declare const ShadcnNumberCell: (props: CellProps & WithClassname) => react_jsx_runtime0.JSX.Element;
306
+ declare const shadcnNumberCellTester: RankedTester;
307
+ declare const ShadcnNumberCellContext: react0.ComponentType<_jsonforms_core0.OwnPropsOfCell>;
308
+ //#endregion
309
+ //#region src/cells/ShadcnEnumCell.d.ts
310
+ declare const ShadcnEnumCell: (props: EnumCellProps & WithClassname) => react_jsx_runtime0.JSX.Element;
311
+ declare const shadcnEnumCellTester: RankedTester;
312
+ declare const ShadcnEnumCellContext: react0.ComponentType<_jsonforms_core0.OwnPropsOfEnumCell>;
313
+ //#endregion
314
+ //#region src/cells/ShadcnEnumRadioCell.d.ts
315
+ declare const ShadcnEnumRadioCell: (props: EnumCellProps & WithClassname) => react_jsx_runtime0.JSX.Element;
316
+ declare const shadcnEnumRadioCellTester: RankedTester;
317
+ declare const ShadcnEnumRadioCellContext: react0.ComponentType<_jsonforms_core0.OwnPropsOfEnumCell>;
318
+ //#endregion
319
+ //#region src/cells/ShadcnOneOfEnumCell.d.ts
320
+ declare const ShadcnOneOfEnumCell: (props: EnumCellProps & WithClassname) => react_jsx_runtime0.JSX.Element;
321
+ declare const shadcnOneOfEnumCellTester: RankedTester;
322
+ declare const ShadcnOneOfEnumCellContext: react0.ComponentType<_jsonforms_core0.OwnPropsOfEnumCell>;
323
+ //#endregion
324
+ //#region src/cells/ShadcnSliderCell.d.ts
325
+ declare const ShadcnSliderCell: (props: CellProps) => react_jsx_runtime0.JSX.Element | null;
326
+ declare const shadcnSliderCellTester: RankedTester;
327
+ declare const ShadcnSliderCellContext: react0.ComponentType<_jsonforms_core0.OwnPropsOfCell>;
328
+ //#endregion
329
+ //#region src/layouts/ShadcnVerticalLayout.d.ts
330
+ declare const ShadcnVerticalLayout: ({
331
+ uischema,
332
+ schema,
333
+ path,
334
+ enabled,
335
+ visible,
336
+ renderers,
337
+ cells
338
+ }: LayoutProps) => react_jsx_runtime0.JSX.Element | null;
339
+ declare const shadcnVerticalLayoutTester: RankedTester;
340
+ declare const ShadcnVerticalLayoutContext: react0.ComponentType<LayoutProps & _jsonforms_core0.OwnPropsOfLayout>;
341
+ //#endregion
342
+ //#region src/layouts/ShadcnHorizontalLayout.d.ts
343
+ declare const ShadcnHorizontalLayout: ({
344
+ uischema,
345
+ schema,
346
+ path,
347
+ enabled,
348
+ visible,
349
+ renderers,
350
+ cells
351
+ }: LayoutProps) => react_jsx_runtime0.JSX.Element | null;
352
+ declare const shadcnHorizontalLayoutTester: RankedTester;
353
+ declare const ShadcnHorizontalLayoutContext: react0.ComponentType<LayoutProps & _jsonforms_core0.OwnPropsOfLayout>;
354
+ //#endregion
355
+ //#region src/layouts/ShadcnGroupLayout.d.ts
356
+ declare const ShadcnGroupLayout: ({
357
+ uischema,
358
+ schema,
359
+ path,
360
+ enabled,
361
+ visible,
362
+ renderers,
363
+ cells,
364
+ label
365
+ }: LayoutProps) => react_jsx_runtime0.JSX.Element | null;
366
+ declare const shadcnGroupLayoutTester: RankedTester;
367
+ declare const ShadcnGroupLayoutContext: react0.ComponentType<LayoutProps & _jsonforms_core0.OwnPropsOfLayout>;
368
+ //#endregion
369
+ //#region src/layouts/ShadcnCategorizationLayout.d.ts
370
+ declare const ShadcnCategorizationLayout: ({
371
+ uischema,
372
+ schema,
373
+ path,
374
+ enabled,
375
+ visible,
376
+ renderers,
377
+ cells
378
+ }: LayoutProps) => react_jsx_runtime0.JSX.Element | null;
379
+ declare const shadcnCategorizationLayoutTester: RankedTester;
380
+ declare const ShadcnCategorizationLayoutContext: react0.ComponentType<LayoutProps & _jsonforms_core0.OwnPropsOfLayout>;
381
+ //#endregion
382
+ //#region src/layouts/ShadcnCategorizationStepperLayout.d.ts
383
+ declare const ShadcnCategorizationStepperLayout: ({
384
+ uischema,
385
+ schema,
386
+ path,
387
+ enabled,
388
+ visible,
389
+ renderers,
390
+ cells
391
+ }: LayoutProps) => react_jsx_runtime0.JSX.Element | null;
392
+ declare const shadcnCategorizationStepperLayoutTester: RankedTester;
393
+ declare const ShadcnCategorizationStepperLayoutContext: react0.ComponentType<LayoutProps & _jsonforms_core0.OwnPropsOfLayout>;
394
+ //#endregion
395
+ //#region src/shadcn-controls/ShadcnCheckbox.d.ts
396
+ type ShadcnCheckboxProps = CellProps & WithClassname;
397
+ declare const ShadcnCheckbox: react0.NamedExoticComponent<ShadcnCheckboxProps>;
398
+ //#endregion
399
+ //#region src/shadcn-controls/ShadcnSwitch.d.ts
400
+ type ShadcnSwitchProps = CellProps & WithClassname;
401
+ declare const ShadcnSwitch: react0.NamedExoticComponent<ShadcnSwitchProps>;
402
+ //#endregion
403
+ //#region src/shadcn-controls/ShadcnInput.d.ts
404
+ type ShadcnInputProps = Pick<CellProps, "data" | "id" | "enabled" | "path" | "handleChange" | "schema"> & WithClassname;
405
+ declare const ShadcnInput: react0.NamedExoticComponent<ShadcnInputProps>;
406
+ //#endregion
407
+ //#region src/shadcn-controls/ShadcnTextarea.d.ts
408
+ type ShadcnTextareaProps = CellProps & WithClassname;
409
+ declare const ShadcnTextarea: react0.NamedExoticComponent<ShadcnTextareaProps>;
410
+ //#endregion
411
+ //#region src/shadcn-controls/ShadcnNumberInput.d.ts
412
+ type ShadcnNumberInputProps = CellProps & WithClassname & {
413
+ step?: string;
414
+ };
415
+ declare const ShadcnNumberInput: react0.NamedExoticComponent<ShadcnNumberInputProps>;
416
+ //#endregion
417
+ //#region src/shadcn-controls/ShadcnDatePicker.d.ts
418
+ type ShadcnDatePickerProps = CellProps & WithClassname;
419
+ declare const ShadcnDatePicker: react0.NamedExoticComponent<ShadcnDatePickerProps>;
420
+ //#endregion
421
+ //#region src/shadcn-controls/ShadcnTimePicker.d.ts
422
+ type ShadcnTimePickerProps = CellProps & WithClassname;
423
+ declare const ShadcnTimePicker: react0.NamedExoticComponent<ShadcnTimePickerProps>;
424
+ //#endregion
425
+ //#region src/shadcn-controls/ShadcnDateTimePicker.d.ts
426
+ type ShadcnDateTimePickerProps = CellProps & WithClassname;
427
+ declare const ShadcnDateTimePicker: react0.NamedExoticComponent<ShadcnDateTimePickerProps>;
428
+ //#endregion
429
+ //#region src/shadcn-controls/ShadcnSelect.d.ts
430
+ type ShadcnSelectProps = CellProps & WithClassname & {
431
+ options: EnumOption[];
432
+ };
433
+ declare const ShadcnSelect: react0.NamedExoticComponent<ShadcnSelectProps>;
434
+ //#endregion
435
+ //#region src/shadcn-controls/ShadcnRadioGroup.d.ts
436
+ type ShadcnRadioGroupProps = CellProps & WithClassname & {
437
+ options: EnumOption[];
438
+ };
439
+ declare const ShadcnRadioGroup: react0.NamedExoticComponent<ShadcnRadioGroupProps>;
440
+ //#endregion
441
+ //#region src/shadcn-controls/ShadcnSlider.d.ts
442
+ type ShadcnSliderProps = CellProps & WithClassname;
443
+ declare const ShadcnSlider: react0.NamedExoticComponent<ShadcnSliderProps>;
444
+ //#endregion
445
+ //#region src/index.d.ts
446
+ /**
447
+ * Shadcn renderers for JSON Forms.
448
+ * Register these with JSON Forms to use shadcn/ui components for form rendering.
449
+ */
450
+ declare const shadcnRenderers: JsonFormsRendererRegistryEntry[];
451
+ /** Shadcn cells for JSON Forms (lightweight renderers for tables/arrays). */
452
+ declare const shadcnCells: JsonFormsCellRendererRegistryEntry[];
453
+ //#endregion
454
+ export { ShadcnBooleanCell, ShadcnBooleanCellContext, ShadcnBooleanControl, ShadcnBooleanControlContext, ShadcnBooleanToggleCell, ShadcnBooleanToggleCellContext, ShadcnBooleanToggleControl, ShadcnBooleanToggleControlContext, ShadcnCategorizationLayout, ShadcnCategorizationLayoutContext, ShadcnCategorizationStepperLayout, ShadcnCategorizationStepperLayoutContext, ShadcnCheckbox, ShadcnDateCell, ShadcnDateCellContext, ShadcnDateControl, ShadcnDateControlContext, ShadcnDatePicker, ShadcnDateTimeCell, ShadcnDateTimeCellContext, ShadcnDateTimeControl, ShadcnDateTimeControlContext, ShadcnDateTimePicker, ShadcnEnumCell, ShadcnEnumCellContext, ShadcnEnumControl, ShadcnEnumControlContext, ShadcnEnumRadioCell, ShadcnEnumRadioCellContext, ShadcnEnumRadioControl, ShadcnEnumRadioControlContext, ShadcnGroupLayout, ShadcnGroupLayoutContext, ShadcnHorizontalLayout, ShadcnHorizontalLayoutContext, ShadcnInput, ShadcnIntegerCell, ShadcnIntegerCellContext, ShadcnIntegerControl, ShadcnIntegerControlContext, ShadcnNumberCell, ShadcnNumberCellContext, ShadcnNumberControl, ShadcnNumberControlContext, ShadcnNumberInput, ShadcnObjectControl, ShadcnObjectControlContext, ShadcnOneOfEnumCell, ShadcnOneOfEnumCellContext, ShadcnOneOfEnumControl, ShadcnOneOfEnumControlContext, ShadcnRadioGroup, ShadcnSelect, ShadcnSlider, ShadcnSliderCell, ShadcnSliderCellContext, ShadcnSliderControl, ShadcnSliderControlContext, ShadcnSwitch, ShadcnTextAreaControl, ShadcnTextAreaControlContext, ShadcnTextCell, ShadcnTextCellContext, ShadcnTextControl, ShadcnTextControlContext, ShadcnTextarea, ShadcnTimeCell, ShadcnTimeCellContext, ShadcnTimeControl, ShadcnTimeControlContext, ShadcnTimePicker, ShadcnVerticalLayout, ShadcnVerticalLayoutContext, shadcnBooleanCellTester, shadcnBooleanControlTester, shadcnBooleanToggleCellTester, shadcnBooleanToggleControlTester, shadcnCategorizationLayoutTester, shadcnCategorizationStepperLayoutTester, shadcnCells, shadcnDateCellTester, shadcnDateControlTester, shadcnDateTimeCellTester, shadcnDateTimeControlTester, shadcnEnumCellTester, shadcnEnumControlTester, shadcnEnumRadioCellTester, shadcnEnumRadioControlTester, shadcnGroupLayoutTester, shadcnHorizontalLayoutTester, shadcnIntegerCellTester, shadcnIntegerControlTester, shadcnNumberCellTester, shadcnNumberControlTester, shadcnObjectControlTester, shadcnOneOfEnumCellTester, shadcnOneOfEnumControlTester, shadcnRenderers, shadcnSliderCellTester, shadcnSliderControlTester, shadcnTextAreaControlTester, shadcnTextCellTester, shadcnTextControlTester, shadcnTimeCellTester, shadcnTimeControlTester, shadcnVerticalLayoutTester };
455
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","names":[],"sources":["../src/controls/ShadcnBooleanControl.tsx","../src/controls/ShadcnBooleanToggleControl.tsx","../src/controls/ShadcnTextControl.tsx","../src/controls/ShadcnTextAreaControl.tsx","../src/controls/ShadcnDateControl.tsx","../src/controls/ShadcnTimeControl.tsx","../src/controls/ShadcnDateTimeControl.tsx","../src/controls/ShadcnIntegerControl.tsx","../src/controls/ShadcnNumberControl.tsx","../src/controls/ShadcnEnumControl.tsx","../src/controls/ShadcnEnumRadioControl.tsx","../src/controls/ShadcnOneOfEnumControl.tsx","../src/controls/ShadcnSliderControl.tsx","../src/controls/ShadcnObjectControl.tsx","../src/cells/ShadcnBooleanCell.tsx","../src/cells/ShadcnBooleanToggleCell.tsx","../src/cells/ShadcnTextCell.tsx","../src/cells/ShadcnDateCell.tsx","../src/cells/ShadcnTimeCell.tsx","../src/cells/ShadcnDateTimeCell.tsx","../src/cells/ShadcnIntegerCell.tsx","../src/cells/ShadcnNumberCell.tsx","../src/cells/ShadcnEnumCell.tsx","../src/cells/ShadcnEnumRadioCell.tsx","../src/cells/ShadcnOneOfEnumCell.tsx","../src/cells/ShadcnSliderCell.tsx","../src/layouts/ShadcnVerticalLayout.tsx","../src/layouts/ShadcnHorizontalLayout.tsx","../src/layouts/ShadcnGroupLayout.tsx","../src/layouts/ShadcnCategorizationLayout.tsx","../src/layouts/ShadcnCategorizationStepperLayout.tsx","../src/shadcn-controls/ShadcnCheckbox.tsx","../src/shadcn-controls/ShadcnSwitch.tsx","../src/shadcn-controls/ShadcnInput.tsx","../src/shadcn-controls/ShadcnTextarea.tsx","../src/shadcn-controls/ShadcnNumberInput.tsx","../src/shadcn-controls/ShadcnDatePicker.tsx","../src/shadcn-controls/ShadcnTimePicker.tsx","../src/shadcn-controls/ShadcnDateTimePicker.tsx","../src/shadcn-controls/ShadcnSelect.tsx","../src/shadcn-controls/ShadcnRadioGroup.tsx","../src/shadcn-controls/ShadcnSlider.tsx","../src/index.ts"],"sourcesContent":[],"mappings":";;;;;;cAYa;;;;;;;;;;;;;;GAcV,iBAAY,kBAAA,CAAA,GAAA,CAAA,OAAA;cAoCF,4BAA4B;cAE5B,6BAA2B,MAAA,CAAA,cAAkD,gBAAA,CAAlD,iBAAA;;;cCpD3B;;;;;;;;;;;;;;GAcV,iBAAY,kBAAA,CAAA,GAAA,CAAA,OAAA;cAoCF,kCAAkC;cAKlC,mCAAiC,MAAA,CAAA,cAE7C,gBAAA,CAF6C,iBAAA;;;cC7DjC;;;;;;;;;;;GAWV,iBAAY,kBAAA,CAAA,GAAA,CAAA,OAAA;cAwBF,yBAAyB;cAEzB,0BAAwB,MAAA,CAAA,cAA+C,gBAAA,CAA/C,iBAAA;;;cCrCxB;;;;;;;;;;;;;;GAcV,iBAAY,kBAAA,CAAA,GAAA,CAAA,OAAA;cA8BF,6BAA6B;cAK7B,8BAA4B,MAAA,CAAA,cAAmD,gBAAA,CAAnD,iBAAA;;;cCjD5B;;;;;;;;;;;;;;GAcV,iBAAY,kBAAA,CAAA,GAAA,CAAA,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