1life-strata 0.1.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.
@@ -0,0 +1,5 @@
1
+ import { d as a } from "./index-CmUVo9rb.js";
2
+ var o = a;
3
+ export {
4
+ o as default
5
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-CC5U6XKX.cjs");exports.StrataCheckboxComponent=e.StrataCheckboxComponent;exports.StrataCheckboxGroupComponent=e.StrataCheckboxGroupComponent;exports.StrataDatePickerComponent=e.StrataDatePickerComponent;exports.StrataDateTimePickerComponent=e.StrataDateTimePickerComponent;exports.StrataFormBuilderComponentRenderer=e.StrataFormBuilderComponentRenderer;exports.StrataNumberInputComponent=e.StrataNumberInputComponent;exports.StrataRadioGroupComponent=e.StrataRadioGroupComponent;exports.StrataSelectComponent=e.StrataSelectComponent;exports.StrataTextAreaComponent=e.StrataTextAreaComponent;exports.StrataTextInputComponent=e.StrataTextInputComponent;exports.checkboxComponentSchema=e.checkboxComponentSchema;exports.checkboxGroupComponentSchema=e.checkboxGroupComponentSchema;exports.checklistComponentSchema=e.checklistComponentSchema;exports.componentSchema=e.componentSchema;exports.dataTableComponentSchema=e.dataTableComponentSchema;exports.dateComponentSchema=e.dateComponentSchema;exports.dateTimeComponentSchema=e.dateTimeComponentSchema;exports.fileUploadComponentSchema=e.fileUploadComponentSchema;exports.numberComponentSchema=e.numberComponentSchema;exports.radioComponentSchema=e.radioComponentSchema;exports.richTextAreaComponentSchema=e.richTextAreaComponentSchema;exports.selectComponentSchema=e.selectComponentSchema;exports.strataBaseSchema=e.strataBaseSchema;exports.textAreaComponentSchema=e.textAreaComponentSchema;exports.textComponentSchema=e.textComponentSchema;
@@ -0,0 +1,623 @@
1
+ import { CheckboxGroupProps } from '@heroui/react';
2
+ import { CheckboxProps } from '@heroui/react';
3
+ import { DatePickerProps } from '@heroui/react';
4
+ import { default as default_2 } from 'zod';
5
+ import { InputProps } from '@heroui/react';
6
+ import { JSX } from 'react/jsx-runtime';
7
+ import { NumberInputProps } from '@heroui/react';
8
+ import { RadioGroupProps } from '@heroui/react';
9
+ import { SelectProps } from '@heroui/react';
10
+ import { TextAreaProps } from '@heroui/react';
11
+
12
+ export declare const checkboxComponentSchema: default_2.ZodObject<{
13
+ id: default_2.ZodString;
14
+ key: default_2.ZodString;
15
+ label: default_2.ZodString;
16
+ placeholder: default_2.ZodOptional<default_2.ZodNullable<default_2.ZodString>>;
17
+ disabled: default_2.ZodOptional<default_2.ZodBoolean>;
18
+ readonly: default_2.ZodOptional<default_2.ZodBoolean>;
19
+ validate: default_2.ZodObject<{
20
+ required: default_2.ZodBoolean;
21
+ maxLength: default_2.ZodOptional<default_2.ZodNumber>;
22
+ }, default_2.core.$strip>;
23
+ type: default_2.ZodLiteral<"checkbox">;
24
+ defaultValue: default_2.ZodOptional<default_2.ZodBoolean>;
25
+ }, default_2.core.$strip>;
26
+
27
+ export declare const checkboxGroupComponentSchema: default_2.ZodObject<{
28
+ id: default_2.ZodString;
29
+ key: default_2.ZodString;
30
+ label: default_2.ZodString;
31
+ placeholder: default_2.ZodOptional<default_2.ZodNullable<default_2.ZodString>>;
32
+ disabled: default_2.ZodOptional<default_2.ZodBoolean>;
33
+ readonly: default_2.ZodOptional<default_2.ZodBoolean>;
34
+ validate: default_2.ZodObject<{
35
+ required: default_2.ZodBoolean;
36
+ maxLength: default_2.ZodOptional<default_2.ZodNumber>;
37
+ }, default_2.core.$strip>;
38
+ type: default_2.ZodLiteral<"checkboxGroup">;
39
+ options: default_2.ZodArray<default_2.ZodObject<{
40
+ id: default_2.ZodOptional<default_2.ZodString>;
41
+ label: default_2.ZodString;
42
+ value: default_2.ZodString;
43
+ }, default_2.core.$strip>>;
44
+ defaultValue: default_2.ZodOptional<default_2.ZodArray<default_2.ZodString>>;
45
+ }, default_2.core.$strip>;
46
+
47
+ export declare const checklistComponentSchema: default_2.ZodObject<{
48
+ id: default_2.ZodString;
49
+ key: default_2.ZodString;
50
+ label: default_2.ZodString;
51
+ placeholder: default_2.ZodOptional<default_2.ZodNullable<default_2.ZodString>>;
52
+ disabled: default_2.ZodOptional<default_2.ZodBoolean>;
53
+ readonly: default_2.ZodOptional<default_2.ZodBoolean>;
54
+ validate: default_2.ZodObject<{
55
+ required: default_2.ZodBoolean;
56
+ maxLength: default_2.ZodOptional<default_2.ZodNumber>;
57
+ }, default_2.core.$strip>;
58
+ type: default_2.ZodLiteral<"checklist">;
59
+ defaultValue: default_2.ZodOptional<default_2.ZodArray<default_2.ZodString>>;
60
+ }, default_2.core.$strip>;
61
+
62
+ export declare type ComponentSchema = default_2.output<typeof componentSchema>;
63
+
64
+ export declare const componentSchema: default_2.ZodUnion<readonly [default_2.ZodObject<{
65
+ id: default_2.ZodString;
66
+ key: default_2.ZodString;
67
+ label: default_2.ZodString;
68
+ placeholder: default_2.ZodOptional<default_2.ZodNullable<default_2.ZodString>>;
69
+ disabled: default_2.ZodOptional<default_2.ZodBoolean>;
70
+ readonly: default_2.ZodOptional<default_2.ZodBoolean>;
71
+ validate: default_2.ZodObject<{
72
+ required: default_2.ZodBoolean;
73
+ maxLength: default_2.ZodOptional<default_2.ZodNumber>;
74
+ }, default_2.core.$strip>;
75
+ type: default_2.ZodLiteral<"text">;
76
+ }, default_2.core.$strip>, default_2.ZodObject<{
77
+ id: default_2.ZodString;
78
+ key: default_2.ZodString;
79
+ label: default_2.ZodString;
80
+ placeholder: default_2.ZodOptional<default_2.ZodNullable<default_2.ZodString>>;
81
+ disabled: default_2.ZodOptional<default_2.ZodBoolean>;
82
+ readonly: default_2.ZodOptional<default_2.ZodBoolean>;
83
+ validate: default_2.ZodObject<{
84
+ required: default_2.ZodBoolean;
85
+ maxLength: default_2.ZodOptional<default_2.ZodNumber>;
86
+ }, default_2.core.$strip>;
87
+ type: default_2.ZodLiteral<"textarea">;
88
+ }, default_2.core.$strip>, default_2.ZodObject<{
89
+ id: default_2.ZodString;
90
+ key: default_2.ZodString;
91
+ label: default_2.ZodString;
92
+ placeholder: default_2.ZodOptional<default_2.ZodNullable<default_2.ZodString>>;
93
+ disabled: default_2.ZodOptional<default_2.ZodBoolean>;
94
+ readonly: default_2.ZodOptional<default_2.ZodBoolean>;
95
+ validate: default_2.ZodObject<{
96
+ required: default_2.ZodBoolean;
97
+ maxLength: default_2.ZodOptional<default_2.ZodNumber>;
98
+ }, default_2.core.$strip>;
99
+ type: default_2.ZodLiteral<"richtextarea">;
100
+ }, default_2.core.$strip>, default_2.ZodObject<{
101
+ id: default_2.ZodString;
102
+ key: default_2.ZodString;
103
+ label: default_2.ZodString;
104
+ placeholder: default_2.ZodOptional<default_2.ZodNullable<default_2.ZodString>>;
105
+ disabled: default_2.ZodOptional<default_2.ZodBoolean>;
106
+ readonly: default_2.ZodOptional<default_2.ZodBoolean>;
107
+ validate: default_2.ZodObject<{
108
+ required: default_2.ZodBoolean;
109
+ maxLength: default_2.ZodOptional<default_2.ZodNumber>;
110
+ }, default_2.core.$strip>;
111
+ type: default_2.ZodLiteral<"number">;
112
+ }, default_2.core.$strip>, default_2.ZodObject<{
113
+ id: default_2.ZodString;
114
+ key: default_2.ZodString;
115
+ label: default_2.ZodString;
116
+ placeholder: default_2.ZodOptional<default_2.ZodNullable<default_2.ZodString>>;
117
+ disabled: default_2.ZodOptional<default_2.ZodBoolean>;
118
+ readonly: default_2.ZodOptional<default_2.ZodBoolean>;
119
+ validate: default_2.ZodObject<{
120
+ required: default_2.ZodBoolean;
121
+ maxLength: default_2.ZodOptional<default_2.ZodNumber>;
122
+ }, default_2.core.$strip>;
123
+ type: default_2.ZodLiteral<"date">;
124
+ }, default_2.core.$strip>, default_2.ZodObject<{
125
+ id: default_2.ZodString;
126
+ key: default_2.ZodString;
127
+ label: default_2.ZodString;
128
+ placeholder: default_2.ZodOptional<default_2.ZodNullable<default_2.ZodString>>;
129
+ disabled: default_2.ZodOptional<default_2.ZodBoolean>;
130
+ readonly: default_2.ZodOptional<default_2.ZodBoolean>;
131
+ validate: default_2.ZodObject<{
132
+ required: default_2.ZodBoolean;
133
+ maxLength: default_2.ZodOptional<default_2.ZodNumber>;
134
+ }, default_2.core.$strip>;
135
+ type: default_2.ZodLiteral<"datetime">;
136
+ }, default_2.core.$strip>, default_2.ZodObject<{
137
+ id: default_2.ZodString;
138
+ key: default_2.ZodString;
139
+ label: default_2.ZodString;
140
+ placeholder: default_2.ZodOptional<default_2.ZodNullable<default_2.ZodString>>;
141
+ disabled: default_2.ZodOptional<default_2.ZodBoolean>;
142
+ readonly: default_2.ZodOptional<default_2.ZodBoolean>;
143
+ validate: default_2.ZodObject<{
144
+ required: default_2.ZodBoolean;
145
+ maxLength: default_2.ZodOptional<default_2.ZodNumber>;
146
+ }, default_2.core.$strip>;
147
+ type: default_2.ZodLiteral<"checkbox">;
148
+ defaultValue: default_2.ZodOptional<default_2.ZodBoolean>;
149
+ }, default_2.core.$strip>, default_2.ZodObject<{
150
+ id: default_2.ZodString;
151
+ key: default_2.ZodString;
152
+ label: default_2.ZodString;
153
+ placeholder: default_2.ZodOptional<default_2.ZodNullable<default_2.ZodString>>;
154
+ disabled: default_2.ZodOptional<default_2.ZodBoolean>;
155
+ readonly: default_2.ZodOptional<default_2.ZodBoolean>;
156
+ validate: default_2.ZodObject<{
157
+ required: default_2.ZodBoolean;
158
+ maxLength: default_2.ZodOptional<default_2.ZodNumber>;
159
+ }, default_2.core.$strip>;
160
+ type: default_2.ZodLiteral<"checkboxGroup">;
161
+ options: default_2.ZodArray<default_2.ZodObject<{
162
+ id: default_2.ZodOptional<default_2.ZodString>;
163
+ label: default_2.ZodString;
164
+ value: default_2.ZodString;
165
+ }, default_2.core.$strip>>;
166
+ defaultValue: default_2.ZodOptional<default_2.ZodArray<default_2.ZodString>>;
167
+ }, default_2.core.$strip>, default_2.ZodObject<{
168
+ id: default_2.ZodString;
169
+ key: default_2.ZodString;
170
+ label: default_2.ZodString;
171
+ placeholder: default_2.ZodOptional<default_2.ZodNullable<default_2.ZodString>>;
172
+ disabled: default_2.ZodOptional<default_2.ZodBoolean>;
173
+ readonly: default_2.ZodOptional<default_2.ZodBoolean>;
174
+ validate: default_2.ZodObject<{
175
+ required: default_2.ZodBoolean;
176
+ maxLength: default_2.ZodOptional<default_2.ZodNumber>;
177
+ }, default_2.core.$strip>;
178
+ type: default_2.ZodLiteral<"radio">;
179
+ options: default_2.ZodArray<default_2.ZodObject<{
180
+ id: default_2.ZodOptional<default_2.ZodString>;
181
+ label: default_2.ZodString;
182
+ value: default_2.ZodString;
183
+ }, default_2.core.$strip>>;
184
+ }, default_2.core.$strip>, default_2.ZodObject<{
185
+ id: default_2.ZodString;
186
+ key: default_2.ZodString;
187
+ label: default_2.ZodString;
188
+ placeholder: default_2.ZodOptional<default_2.ZodNullable<default_2.ZodString>>;
189
+ disabled: default_2.ZodOptional<default_2.ZodBoolean>;
190
+ readonly: default_2.ZodOptional<default_2.ZodBoolean>;
191
+ validate: default_2.ZodObject<{
192
+ required: default_2.ZodBoolean;
193
+ maxLength: default_2.ZodOptional<default_2.ZodNumber>;
194
+ }, default_2.core.$strip>;
195
+ type: default_2.ZodLiteral<"checklist">;
196
+ defaultValue: default_2.ZodOptional<default_2.ZodArray<default_2.ZodString>>;
197
+ }, default_2.core.$strip>, default_2.ZodObject<{
198
+ id: default_2.ZodString;
199
+ key: default_2.ZodString;
200
+ label: default_2.ZodString;
201
+ placeholder: default_2.ZodOptional<default_2.ZodNullable<default_2.ZodString>>;
202
+ disabled: default_2.ZodOptional<default_2.ZodBoolean>;
203
+ readonly: default_2.ZodOptional<default_2.ZodBoolean>;
204
+ validate: default_2.ZodObject<{
205
+ required: default_2.ZodBoolean;
206
+ maxLength: default_2.ZodOptional<default_2.ZodNumber>;
207
+ }, default_2.core.$strip>;
208
+ type: default_2.ZodLiteral<"select">;
209
+ options: default_2.ZodOptional<default_2.ZodArray<default_2.ZodObject<{
210
+ id: default_2.ZodOptional<default_2.ZodString>;
211
+ label: default_2.ZodString;
212
+ value: default_2.ZodString;
213
+ }, default_2.core.$strip>>>;
214
+ }, default_2.core.$strip>, default_2.ZodObject<{
215
+ id: default_2.ZodString;
216
+ key: default_2.ZodString;
217
+ label: default_2.ZodString;
218
+ placeholder: default_2.ZodOptional<default_2.ZodNullable<default_2.ZodString>>;
219
+ disabled: default_2.ZodOptional<default_2.ZodBoolean>;
220
+ readonly: default_2.ZodOptional<default_2.ZodBoolean>;
221
+ validate: default_2.ZodObject<{
222
+ required: default_2.ZodBoolean;
223
+ maxLength: default_2.ZodOptional<default_2.ZodNumber>;
224
+ }, default_2.core.$strip>;
225
+ type: default_2.ZodLiteral<"fileUpload">;
226
+ fileUpload: default_2.ZodObject<{
227
+ allowedKinds: default_2.ZodArray<default_2.ZodString>;
228
+ multiple: default_2.ZodBoolean;
229
+ }, default_2.core.$strip>;
230
+ defaultValue: default_2.ZodOptional<default_2.ZodNullable<default_2.ZodFile>>;
231
+ }, default_2.core.$strip>, default_2.ZodObject<{
232
+ id: default_2.ZodString;
233
+ key: default_2.ZodString;
234
+ label: default_2.ZodString;
235
+ placeholder: default_2.ZodOptional<default_2.ZodNullable<default_2.ZodString>>;
236
+ disabled: default_2.ZodOptional<default_2.ZodBoolean>;
237
+ readonly: default_2.ZodOptional<default_2.ZodBoolean>;
238
+ validate: default_2.ZodObject<{
239
+ required: default_2.ZodBoolean;
240
+ maxLength: default_2.ZodOptional<default_2.ZodNumber>;
241
+ }, default_2.core.$strip>;
242
+ type: default_2.ZodLiteral<"dataTable">;
243
+ dataTable: default_2.ZodObject<{
244
+ linkedModuleCode: default_2.ZodNullable<default_2.ZodString>;
245
+ columns: default_2.ZodArray<default_2.ZodAny>;
246
+ }, default_2.core.$strip>;
247
+ }, default_2.core.$strip>]>;
248
+
249
+ export declare const dataTableComponentSchema: default_2.ZodObject<{
250
+ id: default_2.ZodString;
251
+ key: default_2.ZodString;
252
+ label: default_2.ZodString;
253
+ placeholder: default_2.ZodOptional<default_2.ZodNullable<default_2.ZodString>>;
254
+ disabled: default_2.ZodOptional<default_2.ZodBoolean>;
255
+ readonly: default_2.ZodOptional<default_2.ZodBoolean>;
256
+ validate: default_2.ZodObject<{
257
+ required: default_2.ZodBoolean;
258
+ maxLength: default_2.ZodOptional<default_2.ZodNumber>;
259
+ }, default_2.core.$strip>;
260
+ type: default_2.ZodLiteral<"dataTable">;
261
+ dataTable: default_2.ZodObject<{
262
+ linkedModuleCode: default_2.ZodNullable<default_2.ZodString>;
263
+ columns: default_2.ZodArray<default_2.ZodAny>;
264
+ }, default_2.core.$strip>;
265
+ }, default_2.core.$strip>;
266
+
267
+ export declare const dateComponentSchema: default_2.ZodObject<{
268
+ id: default_2.ZodString;
269
+ key: default_2.ZodString;
270
+ label: default_2.ZodString;
271
+ placeholder: default_2.ZodOptional<default_2.ZodNullable<default_2.ZodString>>;
272
+ disabled: default_2.ZodOptional<default_2.ZodBoolean>;
273
+ readonly: default_2.ZodOptional<default_2.ZodBoolean>;
274
+ validate: default_2.ZodObject<{
275
+ required: default_2.ZodBoolean;
276
+ maxLength: default_2.ZodOptional<default_2.ZodNumber>;
277
+ }, default_2.core.$strip>;
278
+ type: default_2.ZodLiteral<"date">;
279
+ }, default_2.core.$strip>;
280
+
281
+ export declare const dateTimeComponentSchema: default_2.ZodObject<{
282
+ id: default_2.ZodString;
283
+ key: default_2.ZodString;
284
+ label: default_2.ZodString;
285
+ placeholder: default_2.ZodOptional<default_2.ZodNullable<default_2.ZodString>>;
286
+ disabled: default_2.ZodOptional<default_2.ZodBoolean>;
287
+ readonly: default_2.ZodOptional<default_2.ZodBoolean>;
288
+ validate: default_2.ZodObject<{
289
+ required: default_2.ZodBoolean;
290
+ maxLength: default_2.ZodOptional<default_2.ZodNumber>;
291
+ }, default_2.core.$strip>;
292
+ type: default_2.ZodLiteral<"datetime">;
293
+ }, default_2.core.$strip>;
294
+
295
+ export declare const fileUploadComponentSchema: default_2.ZodObject<{
296
+ id: default_2.ZodString;
297
+ key: default_2.ZodString;
298
+ label: default_2.ZodString;
299
+ placeholder: default_2.ZodOptional<default_2.ZodNullable<default_2.ZodString>>;
300
+ disabled: default_2.ZodOptional<default_2.ZodBoolean>;
301
+ readonly: default_2.ZodOptional<default_2.ZodBoolean>;
302
+ validate: default_2.ZodObject<{
303
+ required: default_2.ZodBoolean;
304
+ maxLength: default_2.ZodOptional<default_2.ZodNumber>;
305
+ }, default_2.core.$strip>;
306
+ type: default_2.ZodLiteral<"fileUpload">;
307
+ fileUpload: default_2.ZodObject<{
308
+ allowedKinds: default_2.ZodArray<default_2.ZodString>;
309
+ multiple: default_2.ZodBoolean;
310
+ }, default_2.core.$strip>;
311
+ defaultValue: default_2.ZodOptional<default_2.ZodNullable<default_2.ZodFile>>;
312
+ }, default_2.core.$strip>;
313
+
314
+ export declare const numberComponentSchema: default_2.ZodObject<{
315
+ id: default_2.ZodString;
316
+ key: default_2.ZodString;
317
+ label: default_2.ZodString;
318
+ placeholder: default_2.ZodOptional<default_2.ZodNullable<default_2.ZodString>>;
319
+ disabled: default_2.ZodOptional<default_2.ZodBoolean>;
320
+ readonly: default_2.ZodOptional<default_2.ZodBoolean>;
321
+ validate: default_2.ZodObject<{
322
+ required: default_2.ZodBoolean;
323
+ maxLength: default_2.ZodOptional<default_2.ZodNumber>;
324
+ }, default_2.core.$strip>;
325
+ type: default_2.ZodLiteral<"number">;
326
+ }, default_2.core.$strip>;
327
+
328
+ export declare const radioComponentSchema: default_2.ZodObject<{
329
+ id: default_2.ZodString;
330
+ key: default_2.ZodString;
331
+ label: default_2.ZodString;
332
+ placeholder: default_2.ZodOptional<default_2.ZodNullable<default_2.ZodString>>;
333
+ disabled: default_2.ZodOptional<default_2.ZodBoolean>;
334
+ readonly: default_2.ZodOptional<default_2.ZodBoolean>;
335
+ validate: default_2.ZodObject<{
336
+ required: default_2.ZodBoolean;
337
+ maxLength: default_2.ZodOptional<default_2.ZodNumber>;
338
+ }, default_2.core.$strip>;
339
+ type: default_2.ZodLiteral<"radio">;
340
+ options: default_2.ZodArray<default_2.ZodObject<{
341
+ id: default_2.ZodOptional<default_2.ZodString>;
342
+ label: default_2.ZodString;
343
+ value: default_2.ZodString;
344
+ }, default_2.core.$strip>>;
345
+ }, default_2.core.$strip>;
346
+
347
+ export declare const richTextAreaComponentSchema: default_2.ZodObject<{
348
+ id: default_2.ZodString;
349
+ key: default_2.ZodString;
350
+ label: default_2.ZodString;
351
+ placeholder: default_2.ZodOptional<default_2.ZodNullable<default_2.ZodString>>;
352
+ disabled: default_2.ZodOptional<default_2.ZodBoolean>;
353
+ readonly: default_2.ZodOptional<default_2.ZodBoolean>;
354
+ validate: default_2.ZodObject<{
355
+ required: default_2.ZodBoolean;
356
+ maxLength: default_2.ZodOptional<default_2.ZodNumber>;
357
+ }, default_2.core.$strip>;
358
+ type: default_2.ZodLiteral<"richtextarea">;
359
+ }, default_2.core.$strip>;
360
+
361
+ export declare const selectComponentSchema: default_2.ZodObject<{
362
+ id: default_2.ZodString;
363
+ key: default_2.ZodString;
364
+ label: default_2.ZodString;
365
+ placeholder: default_2.ZodOptional<default_2.ZodNullable<default_2.ZodString>>;
366
+ disabled: default_2.ZodOptional<default_2.ZodBoolean>;
367
+ readonly: default_2.ZodOptional<default_2.ZodBoolean>;
368
+ validate: default_2.ZodObject<{
369
+ required: default_2.ZodBoolean;
370
+ maxLength: default_2.ZodOptional<default_2.ZodNumber>;
371
+ }, default_2.core.$strip>;
372
+ type: default_2.ZodLiteral<"select">;
373
+ options: default_2.ZodOptional<default_2.ZodArray<default_2.ZodObject<{
374
+ id: default_2.ZodOptional<default_2.ZodString>;
375
+ label: default_2.ZodString;
376
+ value: default_2.ZodString;
377
+ }, default_2.core.$strip>>>;
378
+ }, default_2.core.$strip>;
379
+
380
+ export declare type StrataBaseSchema = default_2.output<typeof strataBaseSchema>;
381
+
382
+ export declare const strataBaseSchema: default_2.ZodObject<{
383
+ id: default_2.ZodString;
384
+ name: default_2.ZodString;
385
+ version: default_2.ZodNumber;
386
+ components: default_2.ZodArray<default_2.ZodUnion<readonly [default_2.ZodObject<{
387
+ id: default_2.ZodString;
388
+ key: default_2.ZodString;
389
+ label: default_2.ZodString;
390
+ placeholder: default_2.ZodOptional<default_2.ZodNullable<default_2.ZodString>>;
391
+ disabled: default_2.ZodOptional<default_2.ZodBoolean>;
392
+ readonly: default_2.ZodOptional<default_2.ZodBoolean>;
393
+ validate: default_2.ZodObject<{
394
+ required: default_2.ZodBoolean;
395
+ maxLength: default_2.ZodOptional<default_2.ZodNumber>;
396
+ }, default_2.core.$strip>;
397
+ type: default_2.ZodLiteral<"text">;
398
+ }, default_2.core.$strip>, default_2.ZodObject<{
399
+ id: default_2.ZodString;
400
+ key: default_2.ZodString;
401
+ label: default_2.ZodString;
402
+ placeholder: default_2.ZodOptional<default_2.ZodNullable<default_2.ZodString>>;
403
+ disabled: default_2.ZodOptional<default_2.ZodBoolean>;
404
+ readonly: default_2.ZodOptional<default_2.ZodBoolean>;
405
+ validate: default_2.ZodObject<{
406
+ required: default_2.ZodBoolean;
407
+ maxLength: default_2.ZodOptional<default_2.ZodNumber>;
408
+ }, default_2.core.$strip>;
409
+ type: default_2.ZodLiteral<"textarea">;
410
+ }, default_2.core.$strip>, default_2.ZodObject<{
411
+ id: default_2.ZodString;
412
+ key: default_2.ZodString;
413
+ label: default_2.ZodString;
414
+ placeholder: default_2.ZodOptional<default_2.ZodNullable<default_2.ZodString>>;
415
+ disabled: default_2.ZodOptional<default_2.ZodBoolean>;
416
+ readonly: default_2.ZodOptional<default_2.ZodBoolean>;
417
+ validate: default_2.ZodObject<{
418
+ required: default_2.ZodBoolean;
419
+ maxLength: default_2.ZodOptional<default_2.ZodNumber>;
420
+ }, default_2.core.$strip>;
421
+ type: default_2.ZodLiteral<"richtextarea">;
422
+ }, default_2.core.$strip>, default_2.ZodObject<{
423
+ id: default_2.ZodString;
424
+ key: default_2.ZodString;
425
+ label: default_2.ZodString;
426
+ placeholder: default_2.ZodOptional<default_2.ZodNullable<default_2.ZodString>>;
427
+ disabled: default_2.ZodOptional<default_2.ZodBoolean>;
428
+ readonly: default_2.ZodOptional<default_2.ZodBoolean>;
429
+ validate: default_2.ZodObject<{
430
+ required: default_2.ZodBoolean;
431
+ maxLength: default_2.ZodOptional<default_2.ZodNumber>;
432
+ }, default_2.core.$strip>;
433
+ type: default_2.ZodLiteral<"number">;
434
+ }, default_2.core.$strip>, default_2.ZodObject<{
435
+ id: default_2.ZodString;
436
+ key: default_2.ZodString;
437
+ label: default_2.ZodString;
438
+ placeholder: default_2.ZodOptional<default_2.ZodNullable<default_2.ZodString>>;
439
+ disabled: default_2.ZodOptional<default_2.ZodBoolean>;
440
+ readonly: default_2.ZodOptional<default_2.ZodBoolean>;
441
+ validate: default_2.ZodObject<{
442
+ required: default_2.ZodBoolean;
443
+ maxLength: default_2.ZodOptional<default_2.ZodNumber>;
444
+ }, default_2.core.$strip>;
445
+ type: default_2.ZodLiteral<"date">;
446
+ }, default_2.core.$strip>, default_2.ZodObject<{
447
+ id: default_2.ZodString;
448
+ key: default_2.ZodString;
449
+ label: default_2.ZodString;
450
+ placeholder: default_2.ZodOptional<default_2.ZodNullable<default_2.ZodString>>;
451
+ disabled: default_2.ZodOptional<default_2.ZodBoolean>;
452
+ readonly: default_2.ZodOptional<default_2.ZodBoolean>;
453
+ validate: default_2.ZodObject<{
454
+ required: default_2.ZodBoolean;
455
+ maxLength: default_2.ZodOptional<default_2.ZodNumber>;
456
+ }, default_2.core.$strip>;
457
+ type: default_2.ZodLiteral<"datetime">;
458
+ }, default_2.core.$strip>, default_2.ZodObject<{
459
+ id: default_2.ZodString;
460
+ key: default_2.ZodString;
461
+ label: default_2.ZodString;
462
+ placeholder: default_2.ZodOptional<default_2.ZodNullable<default_2.ZodString>>;
463
+ disabled: default_2.ZodOptional<default_2.ZodBoolean>;
464
+ readonly: default_2.ZodOptional<default_2.ZodBoolean>;
465
+ validate: default_2.ZodObject<{
466
+ required: default_2.ZodBoolean;
467
+ maxLength: default_2.ZodOptional<default_2.ZodNumber>;
468
+ }, default_2.core.$strip>;
469
+ type: default_2.ZodLiteral<"checkbox">;
470
+ defaultValue: default_2.ZodOptional<default_2.ZodBoolean>;
471
+ }, default_2.core.$strip>, default_2.ZodObject<{
472
+ id: default_2.ZodString;
473
+ key: default_2.ZodString;
474
+ label: default_2.ZodString;
475
+ placeholder: default_2.ZodOptional<default_2.ZodNullable<default_2.ZodString>>;
476
+ disabled: default_2.ZodOptional<default_2.ZodBoolean>;
477
+ readonly: default_2.ZodOptional<default_2.ZodBoolean>;
478
+ validate: default_2.ZodObject<{
479
+ required: default_2.ZodBoolean;
480
+ maxLength: default_2.ZodOptional<default_2.ZodNumber>;
481
+ }, default_2.core.$strip>;
482
+ type: default_2.ZodLiteral<"checkboxGroup">;
483
+ options: default_2.ZodArray<default_2.ZodObject<{
484
+ id: default_2.ZodOptional<default_2.ZodString>;
485
+ label: default_2.ZodString;
486
+ value: default_2.ZodString;
487
+ }, default_2.core.$strip>>;
488
+ defaultValue: default_2.ZodOptional<default_2.ZodArray<default_2.ZodString>>;
489
+ }, default_2.core.$strip>, default_2.ZodObject<{
490
+ id: default_2.ZodString;
491
+ key: default_2.ZodString;
492
+ label: default_2.ZodString;
493
+ placeholder: default_2.ZodOptional<default_2.ZodNullable<default_2.ZodString>>;
494
+ disabled: default_2.ZodOptional<default_2.ZodBoolean>;
495
+ readonly: default_2.ZodOptional<default_2.ZodBoolean>;
496
+ validate: default_2.ZodObject<{
497
+ required: default_2.ZodBoolean;
498
+ maxLength: default_2.ZodOptional<default_2.ZodNumber>;
499
+ }, default_2.core.$strip>;
500
+ type: default_2.ZodLiteral<"radio">;
501
+ options: default_2.ZodArray<default_2.ZodObject<{
502
+ id: default_2.ZodOptional<default_2.ZodString>;
503
+ label: default_2.ZodString;
504
+ value: default_2.ZodString;
505
+ }, default_2.core.$strip>>;
506
+ }, default_2.core.$strip>, default_2.ZodObject<{
507
+ id: default_2.ZodString;
508
+ key: default_2.ZodString;
509
+ label: default_2.ZodString;
510
+ placeholder: default_2.ZodOptional<default_2.ZodNullable<default_2.ZodString>>;
511
+ disabled: default_2.ZodOptional<default_2.ZodBoolean>;
512
+ readonly: default_2.ZodOptional<default_2.ZodBoolean>;
513
+ validate: default_2.ZodObject<{
514
+ required: default_2.ZodBoolean;
515
+ maxLength: default_2.ZodOptional<default_2.ZodNumber>;
516
+ }, default_2.core.$strip>;
517
+ type: default_2.ZodLiteral<"checklist">;
518
+ defaultValue: default_2.ZodOptional<default_2.ZodArray<default_2.ZodString>>;
519
+ }, default_2.core.$strip>, default_2.ZodObject<{
520
+ id: default_2.ZodString;
521
+ key: default_2.ZodString;
522
+ label: default_2.ZodString;
523
+ placeholder: default_2.ZodOptional<default_2.ZodNullable<default_2.ZodString>>;
524
+ disabled: default_2.ZodOptional<default_2.ZodBoolean>;
525
+ readonly: default_2.ZodOptional<default_2.ZodBoolean>;
526
+ validate: default_2.ZodObject<{
527
+ required: default_2.ZodBoolean;
528
+ maxLength: default_2.ZodOptional<default_2.ZodNumber>;
529
+ }, default_2.core.$strip>;
530
+ type: default_2.ZodLiteral<"select">;
531
+ options: default_2.ZodOptional<default_2.ZodArray<default_2.ZodObject<{
532
+ id: default_2.ZodOptional<default_2.ZodString>;
533
+ label: default_2.ZodString;
534
+ value: default_2.ZodString;
535
+ }, default_2.core.$strip>>>;
536
+ }, default_2.core.$strip>, default_2.ZodObject<{
537
+ id: default_2.ZodString;
538
+ key: default_2.ZodString;
539
+ label: default_2.ZodString;
540
+ placeholder: default_2.ZodOptional<default_2.ZodNullable<default_2.ZodString>>;
541
+ disabled: default_2.ZodOptional<default_2.ZodBoolean>;
542
+ readonly: default_2.ZodOptional<default_2.ZodBoolean>;
543
+ validate: default_2.ZodObject<{
544
+ required: default_2.ZodBoolean;
545
+ maxLength: default_2.ZodOptional<default_2.ZodNumber>;
546
+ }, default_2.core.$strip>;
547
+ type: default_2.ZodLiteral<"fileUpload">;
548
+ fileUpload: default_2.ZodObject<{
549
+ allowedKinds: default_2.ZodArray<default_2.ZodString>;
550
+ multiple: default_2.ZodBoolean;
551
+ }, default_2.core.$strip>;
552
+ defaultValue: default_2.ZodOptional<default_2.ZodNullable<default_2.ZodFile>>;
553
+ }, default_2.core.$strip>, default_2.ZodObject<{
554
+ id: default_2.ZodString;
555
+ key: default_2.ZodString;
556
+ label: default_2.ZodString;
557
+ placeholder: default_2.ZodOptional<default_2.ZodNullable<default_2.ZodString>>;
558
+ disabled: default_2.ZodOptional<default_2.ZodBoolean>;
559
+ readonly: default_2.ZodOptional<default_2.ZodBoolean>;
560
+ validate: default_2.ZodObject<{
561
+ required: default_2.ZodBoolean;
562
+ maxLength: default_2.ZodOptional<default_2.ZodNumber>;
563
+ }, default_2.core.$strip>;
564
+ type: default_2.ZodLiteral<"dataTable">;
565
+ dataTable: default_2.ZodObject<{
566
+ linkedModuleCode: default_2.ZodNullable<default_2.ZodString>;
567
+ columns: default_2.ZodArray<default_2.ZodAny>;
568
+ }, default_2.core.$strip>;
569
+ }, default_2.core.$strip>]>>;
570
+ listView: default_2.ZodOptional<default_2.ZodObject<{
571
+ columns: default_2.ZodArray<default_2.ZodAny>;
572
+ }, default_2.core.$strip>>;
573
+ }, default_2.core.$strip>;
574
+
575
+ export declare const StrataCheckboxComponent: (props: Omit<CheckboxProps, keyof ComponentSchema | "isRequired" | "isReadOnly" | "isDisabled" | "defaultSelected"> & ComponentSchema) => JSX.Element;
576
+
577
+ export declare const StrataCheckboxGroupComponent: (props: Omit<CheckboxGroupProps, keyof ComponentSchema | "isRequired" | "isReadOnly" | "isDisabled"> & ComponentSchema) => JSX.Element;
578
+
579
+ export declare const StrataDatePickerComponent: (props: Omit<DatePickerProps, keyof ComponentSchema | "isRequired" | "isReadOnly" | "isDisabled"> & ComponentSchema) => JSX.Element;
580
+
581
+ export declare const StrataDateTimePickerComponent: (props: Omit<DatePickerProps, keyof ComponentSchema | "isRequired" | "isReadOnly" | "isDisabled"> & ComponentSchema) => JSX.Element;
582
+
583
+ export declare const StrataFormBuilderComponentRenderer: (props: ComponentSchema) => JSX.Element;
584
+
585
+ export declare const StrataNumberInputComponent: (props: Omit<NumberInputProps, keyof ComponentSchema | "isRequired" | "isReadOnly" | "isDisabled"> & ComponentSchema) => JSX.Element;
586
+
587
+ export declare const StrataRadioGroupComponent: (props: Omit<RadioGroupProps, keyof ComponentSchema | "isRequired" | "isReadOnly" | "isDisabled"> & ComponentSchema) => JSX.Element;
588
+
589
+ export declare const StrataSelectComponent: (props: Omit<SelectProps, keyof ComponentSchema | "isRequired" | "isReadOnly" | "isDisabled" | "items" | "children"> & ComponentSchema) => JSX.Element;
590
+
591
+ export declare const StrataTextAreaComponent: (props: Omit<TextAreaProps, keyof ComponentSchema | "isRequired" | "isReadOnly" | "isDisabled"> & ComponentSchema) => JSX.Element;
592
+
593
+ export declare const StrataTextInputComponent: (props: Omit<InputProps, keyof ComponentSchema | "isRequired" | "isReadOnly" | "isDisabled"> & ComponentSchema) => JSX.Element;
594
+
595
+ export declare const textAreaComponentSchema: default_2.ZodObject<{
596
+ id: default_2.ZodString;
597
+ key: default_2.ZodString;
598
+ label: default_2.ZodString;
599
+ placeholder: default_2.ZodOptional<default_2.ZodNullable<default_2.ZodString>>;
600
+ disabled: default_2.ZodOptional<default_2.ZodBoolean>;
601
+ readonly: default_2.ZodOptional<default_2.ZodBoolean>;
602
+ validate: default_2.ZodObject<{
603
+ required: default_2.ZodBoolean;
604
+ maxLength: default_2.ZodOptional<default_2.ZodNumber>;
605
+ }, default_2.core.$strip>;
606
+ type: default_2.ZodLiteral<"textarea">;
607
+ }, default_2.core.$strip>;
608
+
609
+ export declare const textComponentSchema: default_2.ZodObject<{
610
+ id: default_2.ZodString;
611
+ key: default_2.ZodString;
612
+ label: default_2.ZodString;
613
+ placeholder: default_2.ZodOptional<default_2.ZodNullable<default_2.ZodString>>;
614
+ disabled: default_2.ZodOptional<default_2.ZodBoolean>;
615
+ readonly: default_2.ZodOptional<default_2.ZodBoolean>;
616
+ validate: default_2.ZodObject<{
617
+ required: default_2.ZodBoolean;
618
+ maxLength: default_2.ZodOptional<default_2.ZodNumber>;
619
+ }, default_2.core.$strip>;
620
+ type: default_2.ZodLiteral<"text">;
621
+ }, default_2.core.$strip>;
622
+
623
+ export { }
@@ -0,0 +1,28 @@
1
+ import { S as t, a as o, b as n, c as m, e as p, f as c, g as r, h as s, i as S, j as C, k as h, l as i, m as x, n as u, o as b, p as d, q as k, r as l, s as T, t as f, u as A, v as G, w as B, x as D, y as I } from "./index-CmUVo9rb.js";
2
+ export {
3
+ t as StrataCheckboxComponent,
4
+ o as StrataCheckboxGroupComponent,
5
+ n as StrataDatePickerComponent,
6
+ m as StrataDateTimePickerComponent,
7
+ p as StrataFormBuilderComponentRenderer,
8
+ c as StrataNumberInputComponent,
9
+ r as StrataRadioGroupComponent,
10
+ s as StrataSelectComponent,
11
+ S as StrataTextAreaComponent,
12
+ C as StrataTextInputComponent,
13
+ h as checkboxComponentSchema,
14
+ i as checkboxGroupComponentSchema,
15
+ x as checklistComponentSchema,
16
+ u as componentSchema,
17
+ b as dataTableComponentSchema,
18
+ d as dateComponentSchema,
19
+ k as dateTimeComponentSchema,
20
+ l as fileUploadComponentSchema,
21
+ T as numberComponentSchema,
22
+ f as radioComponentSchema,
23
+ A as richTextAreaComponentSchema,
24
+ G as selectComponentSchema,
25
+ B as strataBaseSchema,
26
+ D as textAreaComponentSchema,
27
+ I as textComponentSchema
28
+ };
package/dist/vite.svg ADDED
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" class="iconify iconify--logos" width="31.88" height="32" preserveAspectRatio="xMidYMid meet" viewBox="0 0 256 257"><defs><linearGradient id="IconifyId1813088fe1fbc01fb466" x1="-.828%" x2="57.636%" y1="7.652%" y2="78.411%"><stop offset="0%" stop-color="#41D1FF"></stop><stop offset="100%" stop-color="#BD34FE"></stop></linearGradient><linearGradient id="IconifyId1813088fe1fbc01fb467" x1="43.376%" x2="50.316%" y1="2.242%" y2="89.03%"><stop offset="0%" stop-color="#FFEA83"></stop><stop offset="8.333%" stop-color="#FFDD35"></stop><stop offset="100%" stop-color="#FFA800"></stop></linearGradient></defs><path fill="url(#IconifyId1813088fe1fbc01fb466)" d="M255.153 37.938L134.897 252.976c-2.483 4.44-8.862 4.466-11.382.048L.875 37.958c-2.746-4.814 1.371-10.646 6.827-9.67l120.385 21.517a6.537 6.537 0 0 0 2.322-.004l117.867-21.483c5.438-.991 9.574 4.796 6.877 9.62Z"></path><path fill="url(#IconifyId1813088fe1fbc01fb467)" d="M185.432.063L96.44 17.501a3.268 3.268 0 0 0-2.634 3.014l-5.474 92.456a3.268 3.268 0 0 0 3.997 3.378l24.777-5.718c2.318-.535 4.413 1.507 3.936 3.838l-7.361 36.047c-.495 2.426 1.782 4.5 4.151 3.78l15.304-4.649c2.372-.72 4.652 1.36 4.15 3.788l-11.698 56.621c-.732 3.542 3.979 5.473 5.943 2.437l1.313-2.028l72.516-144.72c1.215-2.423-.88-5.186-3.54-4.672l-25.505 4.922c-2.396.462-4.435-1.77-3.759-4.114l16.646-57.705c.677-2.35-1.37-4.583-3.769-4.113Z"></path></svg>