@fragno-dev/jsonforms-shadcn-renderers 0.0.0 → 0.0.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/README.md CHANGED
@@ -131,10 +131,10 @@ function MyDynamicForm() {
131
131
 
132
132
  ### Additional Renderers
133
133
 
134
- | Feature | Shadcn | Status |
135
- | -------------- | ------ | ------ |
136
- | Label | - | |
137
- | ListWithDetail | - | ❌ |
134
+ | Feature | Shadcn | Status |
135
+ | -------------- | ------------------- | ------ |
136
+ | Label | ShadcnLabelRenderer | |
137
+ | ListWithDetail | - | ❌ |
138
138
 
139
139
  ### Cells (for tables/arrays)
140
140
 
package/dist/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import * as _jsonforms_core0 from "@jsonforms/core";
2
- import { CellProps, ControlProps, EnumCellProps, EnumOption, JsonFormsCellRendererRegistryEntry, JsonFormsRendererRegistryEntry, LayoutProps, OwnPropsOfEnum, RankedTester, StatePropsOfControlWithDetail, WithClassname } from "@jsonforms/core";
2
+ import { CellProps, ControlProps, EnumCellProps, EnumOption, JsonFormsCellRendererRegistryEntry, JsonFormsRendererRegistryEntry, LabelProps, LayoutProps, OwnPropsOfEnum, RankedTester, StatePropsOfControlWithDetail, WithClassname } from "@jsonforms/core";
3
3
  import * as react0 from "react";
4
4
  import * as react_jsx_runtime0 from "react/jsx-runtime";
5
5
 
@@ -17,7 +17,8 @@ declare const ShadcnBooleanControl: ({
17
17
  errors,
18
18
  path,
19
19
  config,
20
- description
20
+ description,
21
+ required
21
22
  }: ControlProps) => react_jsx_runtime0.JSX.Element | null;
22
23
  declare const shadcnBooleanControlTester: RankedTester;
23
24
  declare const ShadcnBooleanControlContext: react0.ComponentType<_jsonforms_core0.OwnPropsOfControl>;
@@ -36,7 +37,8 @@ declare const ShadcnBooleanToggleControl: ({
36
37
  errors,
37
38
  path,
38
39
  config,
39
- description
40
+ description,
41
+ required
40
42
  }: ControlProps) => react_jsx_runtime0.JSX.Element | null;
41
43
  declare const shadcnBooleanToggleControlTester: RankedTester;
42
44
  declare const ShadcnBooleanToggleControlContext: react0.ComponentType<_jsonforms_core0.OwnPropsOfControl>;
@@ -52,7 +54,9 @@ declare const ShadcnTextControl: ({
52
54
  handleChange,
53
55
  errors,
54
56
  path,
55
- description
57
+ description,
58
+ uischema,
59
+ required
56
60
  }: ControlProps) => react_jsx_runtime0.JSX.Element | null;
57
61
  declare const shadcnTextControlTester: RankedTester;
58
62
  declare const ShadcnTextControlContext: react0.ComponentType<_jsonforms_core0.OwnPropsOfControl>;
@@ -71,7 +75,8 @@ declare const ShadcnTextAreaControl: ({
71
75
  errors,
72
76
  path,
73
77
  config,
74
- description
78
+ description,
79
+ required
75
80
  }: ControlProps) => react_jsx_runtime0.JSX.Element | null;
76
81
  declare const shadcnTextAreaControlTester: RankedTester;
77
82
  declare const ShadcnTextAreaControlContext: react0.ComponentType<_jsonforms_core0.OwnPropsOfControl>;
@@ -90,7 +95,8 @@ declare const ShadcnDateControl: ({
90
95
  errors,
91
96
  path,
92
97
  config,
93
- description
98
+ description,
99
+ required
94
100
  }: ControlProps) => react_jsx_runtime0.JSX.Element | null;
95
101
  declare const shadcnDateControlTester: RankedTester;
96
102
  declare const ShadcnDateControlContext: react0.ComponentType<_jsonforms_core0.OwnPropsOfControl>;
@@ -109,7 +115,8 @@ declare const ShadcnTimeControl: ({
109
115
  errors,
110
116
  path,
111
117
  config,
112
- description
118
+ description,
119
+ required
113
120
  }: ControlProps) => react_jsx_runtime0.JSX.Element | null;
114
121
  declare const shadcnTimeControlTester: RankedTester;
115
122
  declare const ShadcnTimeControlContext: react0.ComponentType<_jsonforms_core0.OwnPropsOfControl>;
@@ -128,7 +135,8 @@ declare const ShadcnDateTimeControl: ({
128
135
  errors,
129
136
  path,
130
137
  config,
131
- description
138
+ description,
139
+ required
132
140
  }: ControlProps) => react_jsx_runtime0.JSX.Element | null;
133
141
  declare const shadcnDateTimeControlTester: RankedTester;
134
142
  declare const ShadcnDateTimeControlContext: react0.ComponentType<_jsonforms_core0.OwnPropsOfControl>;
@@ -147,7 +155,8 @@ declare const ShadcnIntegerControl: ({
147
155
  errors,
148
156
  path,
149
157
  config,
150
- description
158
+ description,
159
+ required
151
160
  }: ControlProps) => react_jsx_runtime0.JSX.Element | null;
152
161
  declare const shadcnIntegerControlTester: RankedTester;
153
162
  declare const ShadcnIntegerControlContext: react0.ComponentType<_jsonforms_core0.OwnPropsOfControl>;
@@ -166,7 +175,8 @@ declare const ShadcnNumberControl: ({
166
175
  errors,
167
176
  path,
168
177
  config,
169
- description
178
+ description,
179
+ required
170
180
  }: ControlProps) => react_jsx_runtime0.JSX.Element | null;
171
181
  declare const shadcnNumberControlTester: RankedTester;
172
182
  declare const ShadcnNumberControlContext: react0.ComponentType<_jsonforms_core0.OwnPropsOfControl>;
@@ -186,7 +196,8 @@ declare const ShadcnEnumControl: ({
186
196
  path,
187
197
  config,
188
198
  description,
189
- options
199
+ options,
200
+ required
190
201
  }: ControlProps & OwnPropsOfEnum) => react_jsx_runtime0.JSX.Element | null;
191
202
  declare const shadcnEnumControlTester: RankedTester;
192
203
  declare const ShadcnEnumControlContext: react0.ComponentType<_jsonforms_core0.OwnPropsOfControl & OwnPropsOfEnum>;
@@ -206,7 +217,8 @@ declare const ShadcnEnumRadioControl: ({
206
217
  path,
207
218
  config,
208
219
  description,
209
- options
220
+ options,
221
+ required
210
222
  }: ControlProps & OwnPropsOfEnum) => react_jsx_runtime0.JSX.Element | null;
211
223
  declare const shadcnEnumRadioControlTester: RankedTester;
212
224
  declare const ShadcnEnumRadioControlContext: react0.ComponentType<_jsonforms_core0.OwnPropsOfControl & OwnPropsOfEnum>;
@@ -226,7 +238,8 @@ declare const ShadcnOneOfEnumControl: ({
226
238
  path,
227
239
  config,
228
240
  description,
229
- options
241
+ options,
242
+ required
230
243
  }: ControlProps & OwnPropsOfEnum) => react_jsx_runtime0.JSX.Element | null;
231
244
  declare const shadcnOneOfEnumControlTester: RankedTester;
232
245
  declare const ShadcnOneOfEnumControlContext: react0.ComponentType<_jsonforms_core0.OwnPropsOfControl & OwnPropsOfEnum>;
@@ -245,7 +258,8 @@ declare const ShadcnSliderControl: ({
245
258
  errors,
246
259
  path,
247
260
  config,
248
- description
261
+ description,
262
+ required
249
263
  }: ControlProps) => react_jsx_runtime0.JSX.Element | null;
250
264
  declare const shadcnSliderControlTester: RankedTester;
251
265
  declare const ShadcnSliderControlContext: react0.ComponentType<_jsonforms_core0.OwnPropsOfControl>;
@@ -392,6 +406,21 @@ declare const ShadcnCategorizationStepperLayout: ({
392
406
  declare const shadcnCategorizationStepperLayoutTester: RankedTester;
393
407
  declare const ShadcnCategorizationStepperLayoutContext: react0.ComponentType<LayoutProps & _jsonforms_core0.OwnPropsOfLayout>;
394
408
  //#endregion
409
+ //#region src/additional/ShadcnLabelRenderer.d.ts
410
+ /**
411
+ * Default tester for a label.
412
+ */
413
+ declare const shadcnLabelRendererTester: RankedTester;
414
+ /**
415
+ * Default renderer for a label.
416
+ * Renders static text without any associated data field.
417
+ */
418
+ declare const ShadcnLabelRenderer: ({
419
+ text,
420
+ visible
421
+ }: LabelProps) => react_jsx_runtime0.JSX.Element | null;
422
+ declare const ShadcnLabelRendererContext: react0.ComponentType<_jsonforms_core0.OwnPropsOfLabel>;
423
+ //#endregion
395
424
  //#region src/shadcn-controls/ShadcnCheckbox.d.ts
396
425
  type ShadcnCheckboxProps = CellProps & WithClassname;
397
426
  declare const ShadcnCheckbox: react0.NamedExoticComponent<ShadcnCheckboxProps>;
@@ -401,11 +430,15 @@ type ShadcnSwitchProps = CellProps & WithClassname;
401
430
  declare const ShadcnSwitch: react0.NamedExoticComponent<ShadcnSwitchProps>;
402
431
  //#endregion
403
432
  //#region src/shadcn-controls/ShadcnInput.d.ts
404
- type ShadcnInputProps = Pick<CellProps, "data" | "id" | "enabled" | "path" | "handleChange" | "schema"> & WithClassname;
433
+ type ShadcnInputProps = Pick<CellProps, "data" | "id" | "enabled" | "path" | "handleChange" | "schema"> & WithClassname & {
434
+ placeholder?: string;
435
+ };
405
436
  declare const ShadcnInput: react0.NamedExoticComponent<ShadcnInputProps>;
406
437
  //#endregion
407
438
  //#region src/shadcn-controls/ShadcnTextarea.d.ts
408
- type ShadcnTextareaProps = CellProps & WithClassname;
439
+ type ShadcnTextareaProps = CellProps & WithClassname & {
440
+ placeholder?: string;
441
+ };
409
442
  declare const ShadcnTextarea: react0.NamedExoticComponent<ShadcnTextareaProps>;
410
443
  //#endregion
411
444
  //#region src/shadcn-controls/ShadcnNumberInput.d.ts
@@ -442,6 +475,23 @@ declare const ShadcnRadioGroup: react0.NamedExoticComponent<ShadcnRadioGroupProp
442
475
  type ShadcnSliderProps = CellProps & WithClassname;
443
476
  declare const ShadcnSlider: react0.NamedExoticComponent<ShadcnSliderProps>;
444
477
  //#endregion
478
+ //#region src/hooks/useTouched.d.ts
479
+ /**
480
+ * Hook to track whether a field has been touched and should show errors.
481
+ *
482
+ * Errors should be shown if:
483
+ * - The field has been touched (user changed the value at least once)
484
+ * - OR the field has a value (handles pre-filled/auto-filled forms)
485
+ *
486
+ * @param data - The current field value
487
+ * @returns showErrors - Whether to display validation errors
488
+ * @returns markTouched - Callback to mark the field as touched
489
+ */
490
+ declare function useTouched<T>(data: T): {
491
+ showErrors: boolean;
492
+ markTouched: () => void;
493
+ };
494
+ //#endregion
445
495
  //#region src/index.d.ts
446
496
  /**
447
497
  * Shadcn renderers for JSON Forms.
@@ -451,5 +501,5 @@ declare const shadcnRenderers: JsonFormsRendererRegistryEntry[];
451
501
  /** Shadcn cells for JSON Forms (lightweight renderers for tables/arrays). */
452
502
  declare const shadcnCells: JsonFormsCellRendererRegistryEntry[];
453
503
  //#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 };
504
+ 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, ShadcnLabelRenderer, ShadcnLabelRendererContext, 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, shadcnLabelRendererTester, shadcnNumberCellTester, shadcnNumberControlTester, shadcnObjectControlTester, shadcnOneOfEnumCellTester, shadcnOneOfEnumControlTester, shadcnRenderers, shadcnSliderCellTester, shadcnSliderControlTester, shadcnTextAreaControlTester, shadcnTextCellTester, shadcnTextControlTester, shadcnTimeCellTester, shadcnTimeControlTester, shadcnVerticalLayoutTester, useTouched };
455
505
  //# sourceMappingURL=index.d.ts.map
@@ -1 +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,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A;;;cCrEjC;;;;;;;;GAQV,gBAAW,kBAAA,CAAA,GAAA,CAAA,OAAA;cAiGD,yCAAyC;cAKzC,0CAAwC,MAAA,CAAA,cAAA,cAAA,gBAAA,CAAA;;;KClHhD,mBAAA,GAAsB,YAAY;cAE1B,gBAAc,MAAA,CAAA,qBAAA;;;KCFtB,iBAAA,GAAoB,YAAY;cAExB,cAAY,MAAA,CAAA,qBAAA;;;KCFpB,gBAAA,GAAmB,KACtB,6EAGA;cAEW,aAAW,MAAA,CAAA,qBAAA;;;KCNnB,mBAAA,GAAsB,YAAY;cAE1B,gBAAc,MAAA,CAAA,qBAAA;;;KCFtB,sBAAA,GAAyB,YAC5B;;;cAIW,mBAAiB,MAAA,CAAA,qBAAA;;;KCAzB,qBAAA,GAAwB,YAAY;cAE5B,kBAAgB,MAAA,CAAA,qBAAA;;;KCLxB,qBAAA,GAAwB,YAAY;cAE5B,kBAAgB,MAAA,CAAA,qBAAA;;;KCExB,yBAAA,GAA4B,YAAY;cA8BhC,sBAAoB,MAAA,CAAA,qBAAA;;;KC7B5B,iBAAA,GAAoB,YACvB;WACW;;cAGA,cAAY,MAAA,CAAA,qBAAA;;;KCVpB,qBAAA,GAAwB,YAC3B;WACW;;cAGA,kBAAgB,MAAA,CAAA,qBAAA;;;KCPxB,iBAAA,GAAoB,YAAY;cAExB,cAAY,MAAA,CAAA,qBAAA;;;;AzCMzB;;;AAAqC,c0CyExB,e1CzEwB,E0CyEP,8B1CzEO,EAAA;;AAAA,c0CmGxB,W1CnGwB,E0CmGX,kC1CnGW,EAAA"}
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/additional/ShadcnLabelRenderer.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/hooks/useTouched.ts","../src/index.ts"],"sourcesContent":[],"mappings":";;;;;;cAaa;;;;;;;;;;;;;;;GAeV,iBAAY,kBAAA,CAAA,GAAA,CAAA,OAAA;cA6CF,4BAA4B;cAE5B,6BAA2B,MAAA,CAAA,cAAkD,gBAAA,CAAlD,iBAAA;;;cC9D3B;;;;;;;;;;;;;;;GAeV,iBAAY,kBAAA,CAAA,GA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