@elementor/editor-props 0.4.0 → 0.5.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/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { ZodTypeAny, z, ZodType } from '@elementor/schema';
1
+ import { ZodType, z } from '@elementor/schema';
2
2
 
3
3
  type PropTypeKey = string;
4
4
  type BasePropType = {
@@ -13,7 +13,7 @@ type PlainPropType = BasePropType & {
13
13
  type ArrayPropType = BasePropType & {
14
14
  kind: 'array';
15
15
  key: PropTypeKey;
16
- item_prop_type: PropType | null;
16
+ item_prop_type: PropType;
17
17
  };
18
18
  type ObjectPropType = BasePropType & {
19
19
  kind: 'object';
@@ -43,6 +43,7 @@ type CreateOptions = {
43
43
  base?: unknown;
44
44
  disabled?: boolean;
45
45
  };
46
+ type PropTypeUtil<TKey extends string, TValue extends PropValue> = ReturnType<typeof createPropUtils<TKey, TValue>>;
46
47
  /**
47
48
  * Usage example:
48
49
  *
@@ -57,60 +58,40 @@ type CreateOptions = {
57
58
  *
58
59
  * ```
59
60
  */
60
- type PropTypeUtil<TKey extends string, TValue extends PropValue> = ReturnType<typeof createPropUtils<TKey, ZodType<TValue>>>;
61
- declare function createPropUtils<TKey extends string, TValue extends ZodTypeAny>(key: TKey, valueSchema: TValue): {
62
- extract: (prop: unknown) => z.TypeOf<TValue> | null;
63
- isValid: (prop: unknown) => prop is { [k in keyof z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
61
+ declare function createPropUtils<TKey extends string, TValue extends PropValue>(key: TKey, valueSchema: ZodType<TValue>): {
62
+ extract: (prop: unknown) => TValue | null;
63
+ isValid: (prop: unknown) => prop is TransformablePropValue$1<TKey, TValue>;
64
+ create: {
65
+ (value: TValue): TransformablePropValue$1<TKey, TValue>;
66
+ (value: TValue, createOptions?: CreateOptions): TransformablePropValue$1<TKey, TValue>;
67
+ (value: Updater<TValue>, createOptions: CreateOptions): TransformablePropValue$1<TKey, TValue>;
68
+ };
69
+ schema: z.ZodObject<{
64
70
  $$type: z.ZodLiteral<TKey>;
65
- value: TValue;
71
+ value: z.ZodType<TValue, z.ZodTypeDef, TValue>;
66
72
  disabled: z.ZodOptional<z.ZodBoolean>;
67
- }>, any>]: z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
73
+ }, "strict", z.ZodTypeAny, z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
68
74
  $$type: z.ZodLiteral<TKey>;
69
- value: TValue;
75
+ value: z.ZodType<TValue, z.ZodTypeDef, TValue>;
70
76
  disabled: z.ZodOptional<z.ZodBoolean>;
71
- }>, any>[k]; };
72
- create: {
73
- (value: z.TypeOf<TValue>): { [k in keyof z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
74
- $$type: z.ZodLiteral<TKey>;
75
- value: TValue;
76
- disabled: z.ZodOptional<z.ZodBoolean>;
77
- }>, any>]: z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
78
- $$type: z.ZodLiteral<TKey>;
79
- value: TValue;
80
- disabled: z.ZodOptional<z.ZodBoolean>;
81
- }>, any>[k]; };
82
- (value: z.TypeOf<TValue>, createOptions?: CreateOptions): { [k in keyof z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
83
- $$type: z.ZodLiteral<TKey>;
84
- value: TValue;
85
- disabled: z.ZodOptional<z.ZodBoolean>;
86
- }>, any>]: z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
87
- $$type: z.ZodLiteral<TKey>;
88
- value: TValue;
89
- disabled: z.ZodOptional<z.ZodBoolean>;
90
- }>, any>[k]; };
91
- (value: Updater<z.TypeOf<TValue>>, createOptions: CreateOptions): { [k in keyof z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
92
- $$type: z.ZodLiteral<TKey>;
93
- value: TValue;
94
- disabled: z.ZodOptional<z.ZodBoolean>;
95
- }>, any>]: z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
96
- $$type: z.ZodLiteral<TKey>;
97
- value: TValue;
98
- disabled: z.ZodOptional<z.ZodBoolean>;
99
- }>, any>[k]; };
100
- };
101
- schema: ZodType<{ [k in keyof z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
77
+ }>, any> extends infer T ? { [k in keyof T]: z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
102
78
  $$type: z.ZodLiteral<TKey>;
103
- value: TValue;
79
+ value: z.ZodType<TValue, z.ZodTypeDef, TValue>;
104
80
  disabled: z.ZodOptional<z.ZodBoolean>;
105
- }>, any>]: z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
81
+ }>, any>[k]; } : never, z.baseObjectInputType<{
106
82
  $$type: z.ZodLiteral<TKey>;
107
- value: TValue;
83
+ value: z.ZodType<TValue, z.ZodTypeDef, TValue>;
108
84
  disabled: z.ZodOptional<z.ZodBoolean>;
109
- }>, any>[k]; }>;
85
+ }> extends infer T_1 ? { [k_1 in keyof T_1]: z.baseObjectInputType<{
86
+ $$type: z.ZodLiteral<TKey>;
87
+ value: z.ZodType<TValue, z.ZodTypeDef, TValue>;
88
+ disabled: z.ZodOptional<z.ZodBoolean>;
89
+ }>[k_1]; } : never>;
110
90
  };
111
91
 
112
92
  declare const boxShadowPropTypeUtil: {
113
93
  extract: (prop: unknown) => {
94
+ $$type: "shadow";
114
95
  value: {
115
96
  position?: any;
116
97
  hOffset?: any;
@@ -119,11 +100,23 @@ declare const boxShadowPropTypeUtil: {
119
100
  spread?: any;
120
101
  color?: any;
121
102
  };
122
- $$type: "shadow";
123
103
  disabled?: boolean | undefined;
124
104
  }[] | null;
125
- isValid: (prop: unknown) => prop is {
105
+ isValid: (prop: unknown) => prop is TransformablePropValue$1<"box-shadow", {
106
+ $$type: "shadow";
126
107
  value: {
108
+ position?: any;
109
+ hOffset?: any;
110
+ vOffset?: any;
111
+ blur?: any;
112
+ spread?: any;
113
+ color?: any;
114
+ };
115
+ disabled?: boolean | undefined;
116
+ }[]>;
117
+ create: {
118
+ (value: {
119
+ $$type: "shadow";
127
120
  value: {
128
121
  position?: any;
129
122
  hOffset?: any;
@@ -132,14 +125,21 @@ declare const boxShadowPropTypeUtil: {
132
125
  spread?: any;
133
126
  color?: any;
134
127
  };
128
+ disabled?: boolean | undefined;
129
+ }[]): TransformablePropValue$1<"box-shadow", {
135
130
  $$type: "shadow";
131
+ value: {
132
+ position?: any;
133
+ hOffset?: any;
134
+ vOffset?: any;
135
+ blur?: any;
136
+ spread?: any;
137
+ color?: any;
138
+ };
136
139
  disabled?: boolean | undefined;
137
- }[];
138
- $$type: "box-shadow";
139
- disabled?: boolean | undefined;
140
- };
141
- create: {
140
+ }[]>;
142
141
  (value: {
142
+ $$type: "shadow";
143
143
  value: {
144
144
  position?: any;
145
145
  hOffset?: any;
@@ -148,25 +148,21 @@ declare const boxShadowPropTypeUtil: {
148
148
  spread?: any;
149
149
  color?: any;
150
150
  };
151
- $$type: "shadow";
152
151
  disabled?: boolean | undefined;
153
- }[]): {
152
+ }[], createOptions?: CreateOptions): TransformablePropValue$1<"box-shadow", {
153
+ $$type: "shadow";
154
154
  value: {
155
- value: {
156
- position?: any;
157
- hOffset?: any;
158
- vOffset?: any;
159
- blur?: any;
160
- spread?: any;
161
- color?: any;
162
- };
163
- $$type: "shadow";
164
- disabled?: boolean | undefined;
165
- }[];
166
- $$type: "box-shadow";
155
+ position?: any;
156
+ hOffset?: any;
157
+ vOffset?: any;
158
+ blur?: any;
159
+ spread?: any;
160
+ color?: any;
161
+ };
167
162
  disabled?: boolean | undefined;
168
- };
169
- (value: {
163
+ }[]>;
164
+ (value: (prev?: {
165
+ $$type: "shadow";
170
166
  value: {
171
167
  position?: any;
172
168
  hOffset?: any;
@@ -175,25 +171,20 @@ declare const boxShadowPropTypeUtil: {
175
171
  spread?: any;
176
172
  color?: any;
177
173
  };
178
- $$type: "shadow";
179
174
  disabled?: boolean | undefined;
180
- }[], createOptions?: CreateOptions): {
175
+ }[] | undefined) => {
176
+ $$type: "shadow";
181
177
  value: {
182
- value: {
183
- position?: any;
184
- hOffset?: any;
185
- vOffset?: any;
186
- blur?: any;
187
- spread?: any;
188
- color?: any;
189
- };
190
- $$type: "shadow";
191
- disabled?: boolean | undefined;
192
- }[];
193
- $$type: "box-shadow";
178
+ position?: any;
179
+ hOffset?: any;
180
+ vOffset?: any;
181
+ blur?: any;
182
+ spread?: any;
183
+ color?: any;
184
+ };
194
185
  disabled?: boolean | undefined;
195
- };
196
- (value: (prev?: {
186
+ }[], createOptions: CreateOptions): TransformablePropValue$1<"box-shadow", {
187
+ $$type: "shadow";
197
188
  value: {
198
189
  position?: any;
199
190
  hOffset?: any;
@@ -202,9 +193,24 @@ declare const boxShadowPropTypeUtil: {
202
193
  spread?: any;
203
194
  color?: any;
204
195
  };
196
+ disabled?: boolean | undefined;
197
+ }[]>;
198
+ };
199
+ schema: z.ZodObject<{
200
+ $$type: z.ZodLiteral<"box-shadow">;
201
+ value: z.ZodType<{
205
202
  $$type: "shadow";
203
+ value: {
204
+ position?: any;
205
+ hOffset?: any;
206
+ vOffset?: any;
207
+ blur?: any;
208
+ spread?: any;
209
+ color?: any;
210
+ };
206
211
  disabled?: boolean | undefined;
207
- }[] | undefined) => {
212
+ }[], z.ZodTypeDef, {
213
+ $$type: "shadow";
208
214
  value: {
209
215
  position?: any;
210
216
  hOffset?: any;
@@ -213,34 +219,40 @@ declare const boxShadowPropTypeUtil: {
213
219
  spread?: any;
214
220
  color?: any;
215
221
  };
222
+ disabled?: boolean | undefined;
223
+ }[]>;
224
+ disabled: z.ZodOptional<z.ZodBoolean>;
225
+ }, "strict", z.ZodTypeAny, {
226
+ $$type: "box-shadow";
227
+ value: {
216
228
  $$type: "shadow";
229
+ value: {
230
+ position?: any;
231
+ hOffset?: any;
232
+ vOffset?: any;
233
+ blur?: any;
234
+ spread?: any;
235
+ color?: any;
236
+ };
217
237
  disabled?: boolean | undefined;
218
- }[], createOptions: CreateOptions): {
238
+ }[];
239
+ disabled?: boolean | undefined;
240
+ }, {
241
+ $$type: "box-shadow";
242
+ value: {
243
+ $$type: "shadow";
219
244
  value: {
220
- value: {
221
- position?: any;
222
- hOffset?: any;
223
- vOffset?: any;
224
- blur?: any;
225
- spread?: any;
226
- color?: any;
227
- };
228
- $$type: "shadow";
229
- disabled?: boolean | undefined;
230
- }[];
231
- $$type: "box-shadow";
245
+ position?: any;
246
+ hOffset?: any;
247
+ vOffset?: any;
248
+ blur?: any;
249
+ spread?: any;
250
+ color?: any;
251
+ };
232
252
  disabled?: boolean | undefined;
233
- };
234
- };
235
- schema: z.ZodType<{ [k in keyof z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
236
- $$type: z.ZodLiteral<TKey>;
237
- value: TValue;
238
- disabled: z.ZodOptional<z.ZodBoolean>;
239
- }>, any>]: z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
240
- $$type: z.ZodLiteral<TKey>;
241
- value: TValue;
242
- disabled: z.ZodOptional<z.ZodBoolean>;
243
- }>, any>[k]; }>;
253
+ }[];
254
+ disabled?: boolean | undefined;
255
+ }>;
244
256
  };
245
257
  type BoxShadowPropValue = z.infer<typeof boxShadowPropTypeUtil.schema>;
246
258
 
@@ -251,47 +263,35 @@ declare const borderRadiusPropTypeUtil: {
251
263
  'bottom-right'?: any;
252
264
  'bottom-left'?: any;
253
265
  } | null;
254
- isValid: (prop: unknown) => prop is {
255
- value: {
266
+ isValid: (prop: unknown) => prop is TransformablePropValue$1<"border-radius", {
267
+ 'top-left'?: any;
268
+ 'top-right'?: any;
269
+ 'bottom-right'?: any;
270
+ 'bottom-left'?: any;
271
+ }>;
272
+ create: {
273
+ (value: {
256
274
  'top-left'?: any;
257
275
  'top-right'?: any;
258
276
  'bottom-right'?: any;
259
277
  'bottom-left'?: any;
260
- };
261
- $$type: "border-radius";
262
- disabled?: boolean | undefined;
263
- };
264
- create: {
265
- (value: {
278
+ }): TransformablePropValue$1<"border-radius", {
266
279
  'top-left'?: any;
267
280
  'top-right'?: any;
268
281
  'bottom-right'?: any;
269
282
  'bottom-left'?: any;
270
- }): {
271
- value: {
272
- 'top-left'?: any;
273
- 'top-right'?: any;
274
- 'bottom-right'?: any;
275
- 'bottom-left'?: any;
276
- };
277
- $$type: "border-radius";
278
- disabled?: boolean | undefined;
279
- };
283
+ }>;
280
284
  (value: {
281
285
  'top-left'?: any;
282
286
  'top-right'?: any;
283
287
  'bottom-right'?: any;
284
288
  'bottom-left'?: any;
285
- }, createOptions?: CreateOptions): {
286
- value: {
287
- 'top-left'?: any;
288
- 'top-right'?: any;
289
- 'bottom-right'?: any;
290
- 'bottom-left'?: any;
291
- };
292
- $$type: "border-radius";
293
- disabled?: boolean | undefined;
294
- };
289
+ }, createOptions?: CreateOptions): TransformablePropValue$1<"border-radius", {
290
+ 'top-left'?: any;
291
+ 'top-right'?: any;
292
+ 'bottom-right'?: any;
293
+ 'bottom-left'?: any;
294
+ }>;
295
295
  (value: (prev?: {
296
296
  'top-left'?: any;
297
297
  'top-right'?: any;
@@ -302,26 +302,46 @@ declare const borderRadiusPropTypeUtil: {
302
302
  'top-right'?: any;
303
303
  'bottom-right'?: any;
304
304
  'bottom-left'?: any;
305
- }, createOptions: CreateOptions): {
306
- value: {
307
- 'top-left'?: any;
308
- 'top-right'?: any;
309
- 'bottom-right'?: any;
310
- 'bottom-left'?: any;
311
- };
312
- $$type: "border-radius";
313
- disabled?: boolean | undefined;
314
- };
305
+ }, createOptions: CreateOptions): TransformablePropValue$1<"border-radius", {
306
+ 'top-left'?: any;
307
+ 'top-right'?: any;
308
+ 'bottom-right'?: any;
309
+ 'bottom-left'?: any;
310
+ }>;
315
311
  };
316
- schema: z.ZodType<{ [k in keyof z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
317
- $$type: z.ZodLiteral<TKey>;
318
- value: TValue;
319
- disabled: z.ZodOptional<z.ZodBoolean>;
320
- }>, any>]: z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
321
- $$type: z.ZodLiteral<TKey>;
322
- value: TValue;
312
+ schema: z.ZodObject<{
313
+ $$type: z.ZodLiteral<"border-radius">;
314
+ value: z.ZodType<{
315
+ 'top-left'?: any;
316
+ 'top-right'?: any;
317
+ 'bottom-right'?: any;
318
+ 'bottom-left'?: any;
319
+ }, z.ZodTypeDef, {
320
+ 'top-left'?: any;
321
+ 'top-right'?: any;
322
+ 'bottom-right'?: any;
323
+ 'bottom-left'?: any;
324
+ }>;
323
325
  disabled: z.ZodOptional<z.ZodBoolean>;
324
- }>, any>[k]; }>;
326
+ }, "strict", z.ZodTypeAny, {
327
+ $$type: "border-radius";
328
+ value: {
329
+ 'top-left'?: any;
330
+ 'top-right'?: any;
331
+ 'bottom-right'?: any;
332
+ 'bottom-left'?: any;
333
+ };
334
+ disabled?: boolean | undefined;
335
+ }, {
336
+ $$type: "border-radius";
337
+ value: {
338
+ 'top-left'?: any;
339
+ 'top-right'?: any;
340
+ 'bottom-right'?: any;
341
+ 'bottom-left'?: any;
342
+ };
343
+ disabled?: boolean | undefined;
344
+ }>;
325
345
  };
326
346
  type BorderRadiusPropValue = z.infer<typeof borderRadiusPropTypeUtil.schema>;
327
347
 
@@ -332,47 +352,35 @@ declare const borderWidthPropTypeUtil: {
332
352
  bottom?: any;
333
353
  left?: any;
334
354
  } | null;
335
- isValid: (prop: unknown) => prop is {
336
- value: {
355
+ isValid: (prop: unknown) => prop is TransformablePropValue$1<"border-width", {
356
+ top?: any;
357
+ right?: any;
358
+ bottom?: any;
359
+ left?: any;
360
+ }>;
361
+ create: {
362
+ (value: {
337
363
  top?: any;
338
364
  right?: any;
339
365
  bottom?: any;
340
366
  left?: any;
341
- };
342
- $$type: "border-width";
343
- disabled?: boolean | undefined;
344
- };
345
- create: {
346
- (value: {
367
+ }): TransformablePropValue$1<"border-width", {
347
368
  top?: any;
348
369
  right?: any;
349
370
  bottom?: any;
350
371
  left?: any;
351
- }): {
352
- value: {
353
- top?: any;
354
- right?: any;
355
- bottom?: any;
356
- left?: any;
357
- };
358
- $$type: "border-width";
359
- disabled?: boolean | undefined;
360
- };
372
+ }>;
361
373
  (value: {
362
374
  top?: any;
363
375
  right?: any;
364
376
  bottom?: any;
365
377
  left?: any;
366
- }, createOptions?: CreateOptions): {
367
- value: {
368
- top?: any;
369
- right?: any;
370
- bottom?: any;
371
- left?: any;
372
- };
373
- $$type: "border-width";
374
- disabled?: boolean | undefined;
375
- };
378
+ }, createOptions?: CreateOptions): TransformablePropValue$1<"border-width", {
379
+ top?: any;
380
+ right?: any;
381
+ bottom?: any;
382
+ left?: any;
383
+ }>;
376
384
  (value: (prev?: {
377
385
  top?: any;
378
386
  right?: any;
@@ -383,98 +391,94 @@ declare const borderWidthPropTypeUtil: {
383
391
  right?: any;
384
392
  bottom?: any;
385
393
  left?: any;
386
- }, createOptions: CreateOptions): {
387
- value: {
388
- top?: any;
389
- right?: any;
390
- bottom?: any;
391
- left?: any;
392
- };
393
- $$type: "border-width";
394
- disabled?: boolean | undefined;
395
- };
394
+ }, createOptions: CreateOptions): TransformablePropValue$1<"border-width", {
395
+ top?: any;
396
+ right?: any;
397
+ bottom?: any;
398
+ left?: any;
399
+ }>;
396
400
  };
397
- schema: z.ZodType<{ [k in keyof z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
398
- $$type: z.ZodLiteral<TKey>;
399
- value: TValue;
400
- disabled: z.ZodOptional<z.ZodBoolean>;
401
- }>, any>]: z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
402
- $$type: z.ZodLiteral<TKey>;
403
- value: TValue;
401
+ schema: z.ZodObject<{
402
+ $$type: z.ZodLiteral<"border-width">;
403
+ value: z.ZodType<{
404
+ top?: any;
405
+ right?: any;
406
+ bottom?: any;
407
+ left?: any;
408
+ }, z.ZodTypeDef, {
409
+ top?: any;
410
+ right?: any;
411
+ bottom?: any;
412
+ left?: any;
413
+ }>;
404
414
  disabled: z.ZodOptional<z.ZodBoolean>;
405
- }>, any>[k]; }>;
415
+ }, "strict", z.ZodTypeAny, {
416
+ $$type: "border-width";
417
+ value: {
418
+ top?: any;
419
+ right?: any;
420
+ bottom?: any;
421
+ left?: any;
422
+ };
423
+ disabled?: boolean | undefined;
424
+ }, {
425
+ $$type: "border-width";
426
+ value: {
427
+ top?: any;
428
+ right?: any;
429
+ bottom?: any;
430
+ left?: any;
431
+ };
432
+ disabled?: boolean | undefined;
433
+ }>;
406
434
  };
407
435
  type BorderWidthPropValue = z.infer<typeof borderWidthPropTypeUtil.schema>;
408
436
 
409
437
  declare const classesPropTypeUtil: {
410
438
  extract: (prop: unknown) => string[] | null;
411
- isValid: (prop: unknown) => prop is {
412
- value: string[];
413
- $$type: "classes";
414
- disabled?: boolean | undefined;
415
- };
439
+ isValid: (prop: unknown) => prop is TransformablePropValue$1<"classes", string[]>;
416
440
  create: {
417
- (value: string[]): {
418
- value: string[];
419
- $$type: "classes";
420
- disabled?: boolean | undefined;
421
- };
422
- (value: string[], createOptions?: CreateOptions): {
423
- value: string[];
424
- $$type: "classes";
425
- disabled?: boolean | undefined;
426
- };
427
- (value: (prev?: string[] | undefined) => string[], createOptions: CreateOptions): {
428
- value: string[];
429
- $$type: "classes";
430
- disabled?: boolean | undefined;
431
- };
441
+ (value: string[]): TransformablePropValue$1<"classes", string[]>;
442
+ (value: string[], createOptions?: CreateOptions): TransformablePropValue$1<"classes", string[]>;
443
+ (value: (prev?: string[] | undefined) => string[], createOptions: CreateOptions): TransformablePropValue$1<"classes", string[]>;
432
444
  };
433
- schema: z.ZodType<{ [k in keyof z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
434
- $$type: z.ZodLiteral<TKey>;
435
- value: TValue;
436
- disabled: z.ZodOptional<z.ZodBoolean>;
437
- }>, any>]: z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
438
- $$type: z.ZodLiteral<TKey>;
439
- value: TValue;
445
+ schema: z.ZodObject<{
446
+ $$type: z.ZodLiteral<"classes">;
447
+ value: z.ZodType<string[], z.ZodTypeDef, string[]>;
440
448
  disabled: z.ZodOptional<z.ZodBoolean>;
441
- }>, any>[k]; }>;
449
+ }, "strict", z.ZodTypeAny, {
450
+ $$type: "classes";
451
+ value: string[];
452
+ disabled?: boolean | undefined;
453
+ }, {
454
+ $$type: "classes";
455
+ value: string[];
456
+ disabled?: boolean | undefined;
457
+ }>;
442
458
  };
443
459
  type ClassesPropValue = z.infer<typeof classesPropTypeUtil.schema>;
444
460
 
445
461
  declare const colorPropTypeUtil: {
446
462
  extract: (prop: unknown) => string | null;
447
- isValid: (prop: unknown) => prop is {
463
+ isValid: (prop: unknown) => prop is TransformablePropValue$1<"color", string>;
464
+ create: {
465
+ (value: string): TransformablePropValue$1<"color", string>;
466
+ (value: string, createOptions?: CreateOptions): TransformablePropValue$1<"color", string>;
467
+ (value: (prev?: string | undefined) => string, createOptions: CreateOptions): TransformablePropValue$1<"color", string>;
468
+ };
469
+ schema: z.ZodObject<{
470
+ $$type: z.ZodLiteral<"color">;
471
+ value: z.ZodType<string, z.ZodTypeDef, string>;
472
+ disabled: z.ZodOptional<z.ZodBoolean>;
473
+ }, "strict", z.ZodTypeAny, {
474
+ $$type: "color";
448
475
  value: string;
476
+ disabled?: boolean | undefined;
477
+ }, {
449
478
  $$type: "color";
479
+ value: string;
450
480
  disabled?: boolean | undefined;
451
- };
452
- create: {
453
- (value: string): {
454
- value: string;
455
- $$type: "color";
456
- disabled?: boolean | undefined;
457
- };
458
- (value: string, createOptions?: CreateOptions): {
459
- value: string;
460
- $$type: "color";
461
- disabled?: boolean | undefined;
462
- };
463
- (value: (prev?: string | undefined) => string, createOptions: CreateOptions): {
464
- value: string;
465
- $$type: "color";
466
- disabled?: boolean | undefined;
467
- };
468
- };
469
- schema: z.ZodType<{ [k in keyof z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
470
- $$type: z.ZodLiteral<TKey>;
471
- value: TValue;
472
- disabled: z.ZodOptional<z.ZodBoolean>;
473
- }>, any>]: z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
474
- $$type: z.ZodLiteral<TKey>;
475
- value: TValue;
476
- disabled: z.ZodOptional<z.ZodBoolean>;
477
- }>, any>[k]; }>;
481
+ }>;
478
482
  };
479
483
  type ColorPropValue = z.infer<typeof colorPropTypeUtil.schema>;
480
484
 
@@ -483,97 +487,85 @@ declare const imagePropTypeUtil: {
483
487
  src?: any;
484
488
  size?: any;
485
489
  } | null;
486
- isValid: (prop: unknown) => prop is {
487
- value: {
488
- src?: any;
489
- size?: any;
490
- };
491
- $$type: "image";
492
- disabled?: boolean | undefined;
493
- };
490
+ isValid: (prop: unknown) => prop is TransformablePropValue$1<"image", {
491
+ src?: any;
492
+ size?: any;
493
+ }>;
494
494
  create: {
495
495
  (value: {
496
496
  src?: any;
497
497
  size?: any;
498
- }): {
499
- value: {
500
- src?: any;
501
- size?: any;
502
- };
503
- $$type: "image";
504
- disabled?: boolean | undefined;
505
- };
498
+ }): TransformablePropValue$1<"image", {
499
+ src?: any;
500
+ size?: any;
501
+ }>;
506
502
  (value: {
507
503
  src?: any;
508
504
  size?: any;
509
- }, createOptions?: CreateOptions): {
510
- value: {
511
- src?: any;
512
- size?: any;
513
- };
514
- $$type: "image";
515
- disabled?: boolean | undefined;
516
- };
505
+ }, createOptions?: CreateOptions): TransformablePropValue$1<"image", {
506
+ src?: any;
507
+ size?: any;
508
+ }>;
517
509
  (value: (prev?: {
518
510
  src?: any;
519
511
  size?: any;
520
512
  } | undefined) => {
521
513
  src?: any;
522
514
  size?: any;
523
- }, createOptions: CreateOptions): {
524
- value: {
525
- src?: any;
526
- size?: any;
527
- };
528
- $$type: "image";
529
- disabled?: boolean | undefined;
530
- };
515
+ }, createOptions: CreateOptions): TransformablePropValue$1<"image", {
516
+ src?: any;
517
+ size?: any;
518
+ }>;
531
519
  };
532
- schema: z.ZodType<{ [k in keyof z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
533
- $$type: z.ZodLiteral<TKey>;
534
- value: TValue;
535
- disabled: z.ZodOptional<z.ZodBoolean>;
536
- }>, any>]: z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
537
- $$type: z.ZodLiteral<TKey>;
538
- value: TValue;
520
+ schema: z.ZodObject<{
521
+ $$type: z.ZodLiteral<"image">;
522
+ value: z.ZodType<{
523
+ src?: any;
524
+ size?: any;
525
+ }, z.ZodTypeDef, {
526
+ src?: any;
527
+ size?: any;
528
+ }>;
539
529
  disabled: z.ZodOptional<z.ZodBoolean>;
540
- }>, any>[k]; }>;
530
+ }, "strict", z.ZodTypeAny, {
531
+ $$type: "image";
532
+ value: {
533
+ src?: any;
534
+ size?: any;
535
+ };
536
+ disabled?: boolean | undefined;
537
+ }, {
538
+ $$type: "image";
539
+ value: {
540
+ src?: any;
541
+ size?: any;
542
+ };
543
+ disabled?: boolean | undefined;
544
+ }>;
541
545
  };
542
546
  type ImagePropValue = z.infer<typeof imagePropTypeUtil.schema>;
543
547
 
544
548
  declare const imageAttachmentIdPropType: {
545
549
  extract: (prop: unknown) => number | null;
546
- isValid: (prop: unknown) => prop is {
547
- value: number;
548
- $$type: "image-attachment-id";
549
- disabled?: boolean | undefined;
550
- };
550
+ isValid: (prop: unknown) => prop is TransformablePropValue$1<"image-attachment-id", number>;
551
551
  create: {
552
- (value: number): {
553
- value: number;
554
- $$type: "image-attachment-id";
555
- disabled?: boolean | undefined;
556
- };
557
- (value: number, createOptions?: CreateOptions): {
558
- value: number;
559
- $$type: "image-attachment-id";
560
- disabled?: boolean | undefined;
561
- };
562
- (value: (prev?: number | undefined) => number, createOptions: CreateOptions): {
563
- value: number;
564
- $$type: "image-attachment-id";
565
- disabled?: boolean | undefined;
566
- };
552
+ (value: number): TransformablePropValue$1<"image-attachment-id", number>;
553
+ (value: number, createOptions?: CreateOptions): TransformablePropValue$1<"image-attachment-id", number>;
554
+ (value: (prev?: number | undefined) => number, createOptions: CreateOptions): TransformablePropValue$1<"image-attachment-id", number>;
567
555
  };
568
- schema: z.ZodType<{ [k in keyof z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
569
- $$type: z.ZodLiteral<TKey>;
570
- value: TValue;
571
- disabled: z.ZodOptional<z.ZodBoolean>;
572
- }>, any>]: z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
573
- $$type: z.ZodLiteral<TKey>;
574
- value: TValue;
556
+ schema: z.ZodObject<{
557
+ $$type: z.ZodLiteral<"image-attachment-id">;
558
+ value: z.ZodType<number, z.ZodTypeDef, number>;
575
559
  disabled: z.ZodOptional<z.ZodBoolean>;
576
- }>, any>[k]; }>;
560
+ }, "strict", z.ZodTypeAny, {
561
+ $$type: "image-attachment-id";
562
+ value: number;
563
+ disabled?: boolean | undefined;
564
+ }, {
565
+ $$type: "image-attachment-id";
566
+ value: number;
567
+ disabled?: boolean | undefined;
568
+ }>;
577
569
  };
578
570
  type ImageAttachmentIdPropValue = z.infer<typeof imageAttachmentIdPropType.schema>;
579
571
 
@@ -585,52 +577,40 @@ declare const imageSrcPropTypeUtil: {
585
577
  id: null;
586
578
  url?: any;
587
579
  } | null;
588
- isValid: (prop: unknown) => prop is {
589
- value: {
580
+ isValid: (prop: unknown) => prop is TransformablePropValue$1<"image-src", {
581
+ url: null;
582
+ id?: any;
583
+ } | {
584
+ id: null;
585
+ url?: any;
586
+ }>;
587
+ create: {
588
+ (value: {
590
589
  url: null;
591
590
  id?: any;
592
591
  } | {
593
592
  id: null;
594
593
  url?: any;
595
- };
596
- $$type: "image-src";
597
- disabled?: boolean | undefined;
598
- };
599
- create: {
600
- (value: {
594
+ }): TransformablePropValue$1<"image-src", {
601
595
  url: null;
602
596
  id?: any;
603
597
  } | {
604
598
  id: null;
605
599
  url?: any;
606
- }): {
607
- value: {
608
- url: null;
609
- id?: any;
610
- } | {
611
- id: null;
612
- url?: any;
613
- };
614
- $$type: "image-src";
615
- disabled?: boolean | undefined;
616
- };
600
+ }>;
617
601
  (value: {
618
602
  url: null;
619
603
  id?: any;
620
604
  } | {
621
605
  id: null;
622
606
  url?: any;
623
- }, createOptions?: CreateOptions): {
624
- value: {
625
- url: null;
626
- id?: any;
627
- } | {
628
- id: null;
629
- url?: any;
630
- };
631
- $$type: "image-src";
632
- disabled?: boolean | undefined;
633
- };
607
+ }, createOptions?: CreateOptions): TransformablePropValue$1<"image-src", {
608
+ url: null;
609
+ id?: any;
610
+ } | {
611
+ id: null;
612
+ url?: any;
613
+ }>;
634
614
  (value: (prev?: {
635
615
  url: null;
636
616
  id?: any;
@@ -643,27 +623,51 @@ declare const imageSrcPropTypeUtil: {
643
623
  } | {
644
624
  id: null;
645
625
  url?: any;
646
- }, createOptions: CreateOptions): {
647
- value: {
648
- url: null;
649
- id?: any;
650
- } | {
651
- id: null;
652
- url?: any;
653
- };
654
- $$type: "image-src";
655
- disabled?: boolean | undefined;
656
- };
626
+ }, createOptions: CreateOptions): TransformablePropValue$1<"image-src", {
627
+ url: null;
628
+ id?: any;
629
+ } | {
630
+ id: null;
631
+ url?: any;
632
+ }>;
657
633
  };
658
- schema: z.ZodType<{ [k in keyof z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
659
- $$type: z.ZodLiteral<TKey>;
660
- value: TValue;
661
- disabled: z.ZodOptional<z.ZodBoolean>;
662
- }>, any>]: z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
663
- $$type: z.ZodLiteral<TKey>;
664
- value: TValue;
634
+ schema: z.ZodObject<{
635
+ $$type: z.ZodLiteral<"image-src">;
636
+ value: z.ZodType<{
637
+ url: null;
638
+ id?: any;
639
+ } | {
640
+ id: null;
641
+ url?: any;
642
+ }, z.ZodTypeDef, {
643
+ url: null;
644
+ id?: any;
645
+ } | {
646
+ id: null;
647
+ url?: any;
648
+ }>;
665
649
  disabled: z.ZodOptional<z.ZodBoolean>;
666
- }>, any>[k]; }>;
650
+ }, "strict", z.ZodTypeAny, {
651
+ $$type: "image-src";
652
+ value: {
653
+ url: null;
654
+ id?: any;
655
+ } | {
656
+ id: null;
657
+ url?: any;
658
+ };
659
+ disabled?: boolean | undefined;
660
+ }, {
661
+ $$type: "image-src";
662
+ value: {
663
+ url: null;
664
+ id?: any;
665
+ } | {
666
+ id: null;
667
+ url?: any;
668
+ };
669
+ disabled?: boolean | undefined;
670
+ }>;
667
671
  };
668
672
  type ImageSrcPropValue = z.infer<typeof imageSrcPropTypeUtil.schema>;
669
673
 
@@ -675,52 +679,40 @@ declare const linkedDimensionsPropTypeUtil: {
675
679
  left?: any;
676
680
  isLinked?: any;
677
681
  } | null;
678
- isValid: (prop: unknown) => prop is {
679
- value: {
682
+ isValid: (prop: unknown) => prop is TransformablePropValue$1<"linked-dimensions", {
683
+ top?: any;
684
+ right?: any;
685
+ bottom?: any;
686
+ left?: any;
687
+ isLinked?: any;
688
+ }>;
689
+ create: {
690
+ (value: {
680
691
  top?: any;
681
692
  right?: any;
682
693
  bottom?: any;
683
694
  left?: any;
684
695
  isLinked?: any;
685
- };
686
- $$type: "linked-dimensions";
687
- disabled?: boolean | undefined;
688
- };
689
- create: {
690
- (value: {
696
+ }): TransformablePropValue$1<"linked-dimensions", {
691
697
  top?: any;
692
698
  right?: any;
693
699
  bottom?: any;
694
700
  left?: any;
695
701
  isLinked?: any;
696
- }): {
697
- value: {
698
- top?: any;
699
- right?: any;
700
- bottom?: any;
701
- left?: any;
702
- isLinked?: any;
703
- };
704
- $$type: "linked-dimensions";
705
- disabled?: boolean | undefined;
706
- };
702
+ }>;
707
703
  (value: {
708
704
  top?: any;
709
705
  right?: any;
710
706
  bottom?: any;
711
707
  left?: any;
712
708
  isLinked?: any;
713
- }, createOptions?: CreateOptions): {
714
- value: {
715
- top?: any;
716
- right?: any;
717
- bottom?: any;
718
- left?: any;
719
- isLinked?: any;
720
- };
721
- $$type: "linked-dimensions";
722
- disabled?: boolean | undefined;
723
- };
709
+ }, createOptions?: CreateOptions): TransformablePropValue$1<"linked-dimensions", {
710
+ top?: any;
711
+ right?: any;
712
+ bottom?: any;
713
+ left?: any;
714
+ isLinked?: any;
715
+ }>;
724
716
  (value: (prev?: {
725
717
  top?: any;
726
718
  right?: any;
@@ -733,63 +725,75 @@ declare const linkedDimensionsPropTypeUtil: {
733
725
  bottom?: any;
734
726
  left?: any;
735
727
  isLinked?: any;
736
- }, createOptions: CreateOptions): {
737
- value: {
738
- top?: any;
739
- right?: any;
740
- bottom?: any;
741
- left?: any;
742
- isLinked?: any;
743
- };
744
- $$type: "linked-dimensions";
745
- disabled?: boolean | undefined;
746
- };
728
+ }, createOptions: CreateOptions): TransformablePropValue$1<"linked-dimensions", {
729
+ top?: any;
730
+ right?: any;
731
+ bottom?: any;
732
+ left?: any;
733
+ isLinked?: any;
734
+ }>;
747
735
  };
748
- schema: z.ZodType<{ [k in keyof z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
749
- $$type: z.ZodLiteral<TKey>;
750
- value: TValue;
751
- disabled: z.ZodOptional<z.ZodBoolean>;
752
- }>, any>]: z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
753
- $$type: z.ZodLiteral<TKey>;
754
- value: TValue;
736
+ schema: z.ZodObject<{
737
+ $$type: z.ZodLiteral<"linked-dimensions">;
738
+ value: z.ZodType<{
739
+ top?: any;
740
+ right?: any;
741
+ bottom?: any;
742
+ left?: any;
743
+ isLinked?: any;
744
+ }, z.ZodTypeDef, {
745
+ top?: any;
746
+ right?: any;
747
+ bottom?: any;
748
+ left?: any;
749
+ isLinked?: any;
750
+ }>;
755
751
  disabled: z.ZodOptional<z.ZodBoolean>;
756
- }>, any>[k]; }>;
752
+ }, "strict", z.ZodTypeAny, {
753
+ $$type: "linked-dimensions";
754
+ value: {
755
+ top?: any;
756
+ right?: any;
757
+ bottom?: any;
758
+ left?: any;
759
+ isLinked?: any;
760
+ };
761
+ disabled?: boolean | undefined;
762
+ }, {
763
+ $$type: "linked-dimensions";
764
+ value: {
765
+ top?: any;
766
+ right?: any;
767
+ bottom?: any;
768
+ left?: any;
769
+ isLinked?: any;
770
+ };
771
+ disabled?: boolean | undefined;
772
+ }>;
757
773
  };
758
774
  type LinkedDimensionsPropValue = z.infer<typeof linkedDimensionsPropTypeUtil.schema>;
759
775
 
760
776
  declare const numberPropTypeUtil: {
761
777
  extract: (prop: unknown) => number | null;
762
- isValid: (prop: unknown) => prop is {
763
- value: number;
764
- $$type: "number";
765
- disabled?: boolean | undefined;
766
- };
778
+ isValid: (prop: unknown) => prop is TransformablePropValue$1<"number", number>;
767
779
  create: {
768
- (value: number): {
769
- value: number;
770
- $$type: "number";
771
- disabled?: boolean | undefined;
772
- };
773
- (value: number, createOptions?: CreateOptions): {
774
- value: number;
775
- $$type: "number";
776
- disabled?: boolean | undefined;
777
- };
778
- (value: (prev?: number | undefined) => number, createOptions: CreateOptions): {
779
- value: number;
780
- $$type: "number";
781
- disabled?: boolean | undefined;
782
- };
780
+ (value: number): TransformablePropValue$1<"number", number>;
781
+ (value: number, createOptions?: CreateOptions): TransformablePropValue$1<"number", number>;
782
+ (value: (prev?: number | undefined) => number, createOptions: CreateOptions): TransformablePropValue$1<"number", number>;
783
783
  };
784
- schema: z.ZodType<{ [k in keyof z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
785
- $$type: z.ZodLiteral<TKey>;
786
- value: TValue;
787
- disabled: z.ZodOptional<z.ZodBoolean>;
788
- }>, any>]: z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
789
- $$type: z.ZodLiteral<TKey>;
790
- value: TValue;
784
+ schema: z.ZodObject<{
785
+ $$type: z.ZodLiteral<"number">;
786
+ value: z.ZodType<number, z.ZodTypeDef, number>;
791
787
  disabled: z.ZodOptional<z.ZodBoolean>;
792
- }>, any>[k]; }>;
788
+ }, "strict", z.ZodTypeAny, {
789
+ $$type: "number";
790
+ value: number;
791
+ disabled?: boolean | undefined;
792
+ }, {
793
+ $$type: "number";
794
+ value: number;
795
+ disabled?: boolean | undefined;
796
+ }>;
793
797
  };
794
798
  type NumberPropValue = z.infer<typeof numberPropTypeUtil.schema>;
795
799
 
@@ -802,19 +806,30 @@ declare const shadowPropTypeUtil: {
802
806
  spread?: any;
803
807
  color?: any;
804
808
  } | null;
805
- isValid: (prop: unknown) => prop is {
806
- value: {
809
+ isValid: (prop: unknown) => prop is TransformablePropValue$1<"shadow", {
810
+ position?: any;
811
+ hOffset?: any;
812
+ vOffset?: any;
813
+ blur?: any;
814
+ spread?: any;
815
+ color?: any;
816
+ }>;
817
+ create: {
818
+ (value: {
807
819
  position?: any;
808
820
  hOffset?: any;
809
821
  vOffset?: any;
810
822
  blur?: any;
811
823
  spread?: any;
812
824
  color?: any;
813
- };
814
- $$type: "shadow";
815
- disabled?: boolean | undefined;
816
- };
817
- create: {
825
+ }): TransformablePropValue$1<"shadow", {
826
+ position?: any;
827
+ hOffset?: any;
828
+ vOffset?: any;
829
+ blur?: any;
830
+ spread?: any;
831
+ color?: any;
832
+ }>;
818
833
  (value: {
819
834
  position?: any;
820
835
  hOffset?: any;
@@ -822,37 +837,14 @@ declare const shadowPropTypeUtil: {
822
837
  blur?: any;
823
838
  spread?: any;
824
839
  color?: any;
825
- }): {
826
- value: {
827
- position?: any;
828
- hOffset?: any;
829
- vOffset?: any;
830
- blur?: any;
831
- spread?: any;
832
- color?: any;
833
- };
834
- $$type: "shadow";
835
- disabled?: boolean | undefined;
836
- };
837
- (value: {
840
+ }, createOptions?: CreateOptions): TransformablePropValue$1<"shadow", {
838
841
  position?: any;
839
842
  hOffset?: any;
840
843
  vOffset?: any;
841
844
  blur?: any;
842
845
  spread?: any;
843
846
  color?: any;
844
- }, createOptions?: CreateOptions): {
845
- value: {
846
- position?: any;
847
- hOffset?: any;
848
- vOffset?: any;
849
- blur?: any;
850
- spread?: any;
851
- color?: any;
852
- };
853
- $$type: "shadow";
854
- disabled?: boolean | undefined;
855
- };
847
+ }>;
856
848
  (value: (prev?: {
857
849
  position?: any;
858
850
  hOffset?: any;
@@ -867,28 +859,56 @@ declare const shadowPropTypeUtil: {
867
859
  blur?: any;
868
860
  spread?: any;
869
861
  color?: any;
870
- }, createOptions: CreateOptions): {
871
- value: {
872
- position?: any;
873
- hOffset?: any;
874
- vOffset?: any;
875
- blur?: any;
876
- spread?: any;
877
- color?: any;
878
- };
879
- $$type: "shadow";
880
- disabled?: boolean | undefined;
881
- };
862
+ }, createOptions: CreateOptions): TransformablePropValue$1<"shadow", {
863
+ position?: any;
864
+ hOffset?: any;
865
+ vOffset?: any;
866
+ blur?: any;
867
+ spread?: any;
868
+ color?: any;
869
+ }>;
882
870
  };
883
- schema: z.ZodType<{ [k in keyof z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
884
- $$type: z.ZodLiteral<TKey>;
885
- value: TValue;
886
- disabled: z.ZodOptional<z.ZodBoolean>;
887
- }>, any>]: z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
888
- $$type: z.ZodLiteral<TKey>;
889
- value: TValue;
871
+ schema: z.ZodObject<{
872
+ $$type: z.ZodLiteral<"shadow">;
873
+ value: z.ZodType<{
874
+ position?: any;
875
+ hOffset?: any;
876
+ vOffset?: any;
877
+ blur?: any;
878
+ spread?: any;
879
+ color?: any;
880
+ }, z.ZodTypeDef, {
881
+ position?: any;
882
+ hOffset?: any;
883
+ vOffset?: any;
884
+ blur?: any;
885
+ spread?: any;
886
+ color?: any;
887
+ }>;
890
888
  disabled: z.ZodOptional<z.ZodBoolean>;
891
- }>, any>[k]; }>;
889
+ }, "strict", z.ZodTypeAny, {
890
+ $$type: "shadow";
891
+ value: {
892
+ position?: any;
893
+ hOffset?: any;
894
+ vOffset?: any;
895
+ blur?: any;
896
+ spread?: any;
897
+ color?: any;
898
+ };
899
+ disabled?: boolean | undefined;
900
+ }, {
901
+ $$type: "shadow";
902
+ value: {
903
+ position?: any;
904
+ hOffset?: any;
905
+ vOffset?: any;
906
+ blur?: any;
907
+ spread?: any;
908
+ color?: any;
909
+ };
910
+ disabled?: boolean | undefined;
911
+ }>;
892
912
  };
893
913
  type ShadowPropValue = z.infer<typeof shadowPropTypeUtil.schema>;
894
914
 
@@ -897,97 +917,85 @@ declare const sizePropTypeUtil: {
897
917
  size: number;
898
918
  unit: "px" | "em" | "rem" | "%" | "vw" | "vh";
899
919
  } | null;
900
- isValid: (prop: unknown) => prop is {
901
- value: {
902
- size: number;
903
- unit: "px" | "em" | "rem" | "%" | "vw" | "vh";
904
- };
905
- $$type: "size";
906
- disabled?: boolean | undefined;
907
- };
920
+ isValid: (prop: unknown) => prop is TransformablePropValue$1<"size", {
921
+ size: number;
922
+ unit: "px" | "em" | "rem" | "%" | "vw" | "vh";
923
+ }>;
908
924
  create: {
909
925
  (value: {
910
926
  size: number;
911
927
  unit: "px" | "em" | "rem" | "%" | "vw" | "vh";
912
- }): {
913
- value: {
914
- size: number;
915
- unit: "px" | "em" | "rem" | "%" | "vw" | "vh";
916
- };
917
- $$type: "size";
918
- disabled?: boolean | undefined;
919
- };
928
+ }): TransformablePropValue$1<"size", {
929
+ size: number;
930
+ unit: "px" | "em" | "rem" | "%" | "vw" | "vh";
931
+ }>;
920
932
  (value: {
921
933
  size: number;
922
934
  unit: "px" | "em" | "rem" | "%" | "vw" | "vh";
923
- }, createOptions?: CreateOptions): {
924
- value: {
925
- size: number;
926
- unit: "px" | "em" | "rem" | "%" | "vw" | "vh";
927
- };
928
- $$type: "size";
929
- disabled?: boolean | undefined;
930
- };
935
+ }, createOptions?: CreateOptions): TransformablePropValue$1<"size", {
936
+ size: number;
937
+ unit: "px" | "em" | "rem" | "%" | "vw" | "vh";
938
+ }>;
931
939
  (value: (prev?: {
932
940
  size: number;
933
941
  unit: "px" | "em" | "rem" | "%" | "vw" | "vh";
934
942
  } | undefined) => {
935
943
  size: number;
936
944
  unit: "px" | "em" | "rem" | "%" | "vw" | "vh";
937
- }, createOptions: CreateOptions): {
938
- value: {
939
- size: number;
940
- unit: "px" | "em" | "rem" | "%" | "vw" | "vh";
941
- };
942
- $$type: "size";
943
- disabled?: boolean | undefined;
944
- };
945
+ }, createOptions: CreateOptions): TransformablePropValue$1<"size", {
946
+ size: number;
947
+ unit: "px" | "em" | "rem" | "%" | "vw" | "vh";
948
+ }>;
945
949
  };
946
- schema: z.ZodType<{ [k in keyof z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
947
- $$type: z.ZodLiteral<TKey>;
948
- value: TValue;
949
- disabled: z.ZodOptional<z.ZodBoolean>;
950
- }>, any>]: z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
951
- $$type: z.ZodLiteral<TKey>;
952
- value: TValue;
950
+ schema: z.ZodObject<{
951
+ $$type: z.ZodLiteral<"size">;
952
+ value: z.ZodType<{
953
+ size: number;
954
+ unit: "px" | "em" | "rem" | "%" | "vw" | "vh";
955
+ }, z.ZodTypeDef, {
956
+ size: number;
957
+ unit: "px" | "em" | "rem" | "%" | "vw" | "vh";
958
+ }>;
953
959
  disabled: z.ZodOptional<z.ZodBoolean>;
954
- }>, any>[k]; }>;
960
+ }, "strict", z.ZodTypeAny, {
961
+ $$type: "size";
962
+ value: {
963
+ size: number;
964
+ unit: "px" | "em" | "rem" | "%" | "vw" | "vh";
965
+ };
966
+ disabled?: boolean | undefined;
967
+ }, {
968
+ $$type: "size";
969
+ value: {
970
+ size: number;
971
+ unit: "px" | "em" | "rem" | "%" | "vw" | "vh";
972
+ };
973
+ disabled?: boolean | undefined;
974
+ }>;
955
975
  };
956
976
  type SizePropValue = z.infer<typeof sizePropTypeUtil.schema>;
957
977
 
958
978
  declare const stringPropTypeUtil: {
959
979
  extract: (prop: unknown) => string | null;
960
- isValid: (prop: unknown) => prop is {
961
- value: string | null;
962
- $$type: "string";
963
- disabled?: boolean | undefined;
964
- };
980
+ isValid: (prop: unknown) => prop is TransformablePropValue$1<"string", string | null>;
965
981
  create: {
966
- (value: string | null): {
967
- value: string | null;
968
- $$type: "string";
969
- disabled?: boolean | undefined;
970
- };
971
- (value: string | null, createOptions?: CreateOptions): {
972
- value: string | null;
973
- $$type: "string";
974
- disabled?: boolean | undefined;
975
- };
976
- (value: (prev?: string | null | undefined) => string | null, createOptions: CreateOptions): {
977
- value: string | null;
978
- $$type: "string";
979
- disabled?: boolean | undefined;
980
- };
982
+ (value: string | null): TransformablePropValue$1<"string", string | null>;
983
+ (value: string | null, createOptions?: CreateOptions): TransformablePropValue$1<"string", string | null>;
984
+ (value: (prev?: string | null | undefined) => string | null, createOptions: CreateOptions): TransformablePropValue$1<"string", string | null>;
981
985
  };
982
- schema: z.ZodType<{ [k in keyof z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
983
- $$type: z.ZodLiteral<TKey>;
984
- value: TValue;
985
- disabled: z.ZodOptional<z.ZodBoolean>;
986
- }>, any>]: z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
987
- $$type: z.ZodLiteral<TKey>;
988
- value: TValue;
986
+ schema: z.ZodObject<{
987
+ $$type: z.ZodLiteral<"string">;
988
+ value: z.ZodType<string | null, z.ZodTypeDef, string | null>;
989
989
  disabled: z.ZodOptional<z.ZodBoolean>;
990
- }>, any>[k]; }>;
990
+ }, "strict", z.ZodTypeAny, {
991
+ $$type: "string";
992
+ value: string | null;
993
+ disabled?: boolean | undefined;
994
+ }, {
995
+ $$type: "string";
996
+ value: string | null;
997
+ disabled?: boolean | undefined;
998
+ }>;
991
999
  };
992
1000
  type StringPropValue = z.infer<typeof stringPropTypeUtil.schema>;
993
1001
 
@@ -996,363 +1004,611 @@ declare const strokePropTypeUtil: {
996
1004
  color?: any;
997
1005
  width?: any;
998
1006
  } | null;
999
- isValid: (prop: unknown) => prop is {
1000
- value: {
1001
- color?: any;
1002
- width?: any;
1003
- };
1004
- $$type: "stroke";
1005
- disabled?: boolean | undefined;
1006
- };
1007
+ isValid: (prop: unknown) => prop is TransformablePropValue$1<"stroke", {
1008
+ color?: any;
1009
+ width?: any;
1010
+ }>;
1007
1011
  create: {
1008
1012
  (value: {
1009
1013
  color?: any;
1010
1014
  width?: any;
1011
- }): {
1012
- value: {
1013
- color?: any;
1014
- width?: any;
1015
- };
1016
- $$type: "stroke";
1017
- disabled?: boolean | undefined;
1018
- };
1015
+ }): TransformablePropValue$1<"stroke", {
1016
+ color?: any;
1017
+ width?: any;
1018
+ }>;
1019
1019
  (value: {
1020
1020
  color?: any;
1021
1021
  width?: any;
1022
- }, createOptions?: CreateOptions): {
1023
- value: {
1024
- color?: any;
1025
- width?: any;
1026
- };
1027
- $$type: "stroke";
1028
- disabled?: boolean | undefined;
1029
- };
1022
+ }, createOptions?: CreateOptions): TransformablePropValue$1<"stroke", {
1023
+ color?: any;
1024
+ width?: any;
1025
+ }>;
1030
1026
  (value: (prev?: {
1031
1027
  color?: any;
1032
1028
  width?: any;
1033
1029
  } | undefined) => {
1034
1030
  color?: any;
1035
1031
  width?: any;
1036
- }, createOptions: CreateOptions): {
1037
- value: {
1038
- color?: any;
1039
- width?: any;
1040
- };
1041
- $$type: "stroke";
1042
- disabled?: boolean | undefined;
1043
- };
1032
+ }, createOptions: CreateOptions): TransformablePropValue$1<"stroke", {
1033
+ color?: any;
1034
+ width?: any;
1035
+ }>;
1044
1036
  };
1045
- schema: z.ZodType<{ [k in keyof z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
1046
- $$type: z.ZodLiteral<TKey>;
1047
- value: TValue;
1048
- disabled: z.ZodOptional<z.ZodBoolean>;
1049
- }>, any>]: z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
1050
- $$type: z.ZodLiteral<TKey>;
1051
- value: TValue;
1037
+ schema: z.ZodObject<{
1038
+ $$type: z.ZodLiteral<"stroke">;
1039
+ value: z.ZodType<{
1040
+ color?: any;
1041
+ width?: any;
1042
+ }, z.ZodTypeDef, {
1043
+ color?: any;
1044
+ width?: any;
1045
+ }>;
1052
1046
  disabled: z.ZodOptional<z.ZodBoolean>;
1053
- }>, any>[k]; }>;
1047
+ }, "strict", z.ZodTypeAny, {
1048
+ $$type: "stroke";
1049
+ value: {
1050
+ color?: any;
1051
+ width?: any;
1052
+ };
1053
+ disabled?: boolean | undefined;
1054
+ }, {
1055
+ $$type: "stroke";
1056
+ value: {
1057
+ color?: any;
1058
+ width?: any;
1059
+ };
1060
+ disabled?: boolean | undefined;
1061
+ }>;
1054
1062
  };
1055
1063
  type StrokePropValue = z.infer<typeof strokePropTypeUtil.schema>;
1056
1064
 
1057
1065
  declare const urlPropTypeUtil: {
1058
1066
  extract: (prop: unknown) => string | null;
1059
- isValid: (prop: unknown) => prop is {
1067
+ isValid: (prop: unknown) => prop is TransformablePropValue$1<"url", string | null>;
1068
+ create: {
1069
+ (value: string | null): TransformablePropValue$1<"url", string | null>;
1070
+ (value: string | null, createOptions?: CreateOptions): TransformablePropValue$1<"url", string | null>;
1071
+ (value: (prev?: string | null | undefined) => string | null, createOptions: CreateOptions): TransformablePropValue$1<"url", string | null>;
1072
+ };
1073
+ schema: z.ZodObject<{
1074
+ $$type: z.ZodLiteral<"url">;
1075
+ value: z.ZodType<string | null, z.ZodTypeDef, string | null>;
1076
+ disabled: z.ZodOptional<z.ZodBoolean>;
1077
+ }, "strict", z.ZodTypeAny, {
1078
+ $$type: "url";
1060
1079
  value: string | null;
1080
+ disabled?: boolean | undefined;
1081
+ }, {
1061
1082
  $$type: "url";
1083
+ value: string | null;
1062
1084
  disabled?: boolean | undefined;
1063
- };
1064
- create: {
1065
- (value: string | null): {
1066
- value: string | null;
1085
+ }>;
1086
+ };
1087
+ type UrlPropValue = z.infer<typeof urlPropTypeUtil.schema>;
1088
+
1089
+ declare const linkPropTypeUtil: {
1090
+ extract: (prop: unknown) => {
1091
+ enabled: boolean;
1092
+ href: {
1067
1093
  $$type: "url";
1068
- disabled?: boolean | undefined;
1069
- };
1070
- (value: string | null, createOptions?: CreateOptions): {
1071
1094
  value: string | null;
1072
- $$type: "url";
1073
1095
  disabled?: boolean | undefined;
1074
1096
  };
1075
- (value: (prev?: string | null | undefined) => string | null, createOptions: CreateOptions): {
1076
- value: string | null;
1097
+ isTargetBlank: boolean;
1098
+ } | null;
1099
+ isValid: (prop: unknown) => prop is TransformablePropValue$1<"link", {
1100
+ enabled: boolean;
1101
+ href: {
1077
1102
  $$type: "url";
1103
+ value: string | null;
1078
1104
  disabled?: boolean | undefined;
1079
1105
  };
1080
- };
1081
- schema: z.ZodType<{ [k in keyof z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
1082
- $$type: z.ZodLiteral<TKey>;
1083
- value: TValue;
1084
- disabled: z.ZodOptional<z.ZodBoolean>;
1085
- }>, any>]: z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
1086
- $$type: z.ZodLiteral<TKey>;
1087
- value: TValue;
1088
- disabled: z.ZodOptional<z.ZodBoolean>;
1089
- }>, any>[k]; }>;
1090
- };
1091
- type UrlPropValue = z.infer<typeof urlPropTypeUtil.schema>;
1092
-
1093
- declare const colorGradientPropTypeUtil: {
1094
- extract: (prop: unknown) => {
1095
- color?: any;
1096
- } | null;
1097
- isValid: (prop: unknown) => prop is {
1098
- value: {
1099
- color?: any;
1100
- };
1101
- $$type: "background-overlay";
1102
- disabled?: boolean | undefined;
1103
- };
1106
+ isTargetBlank: boolean;
1107
+ }>;
1104
1108
  create: {
1105
1109
  (value: {
1106
- color?: any;
1107
- }): {
1108
- value: {
1109
- color?: any;
1110
+ enabled: boolean;
1111
+ href: {
1112
+ $$type: "url";
1113
+ value: string | null;
1114
+ disabled?: boolean | undefined;
1110
1115
  };
1111
- $$type: "background-overlay";
1112
- disabled?: boolean | undefined;
1113
- };
1116
+ isTargetBlank: boolean;
1117
+ }): TransformablePropValue$1<"link", {
1118
+ enabled: boolean;
1119
+ href: {
1120
+ $$type: "url";
1121
+ value: string | null;
1122
+ disabled?: boolean | undefined;
1123
+ };
1124
+ isTargetBlank: boolean;
1125
+ }>;
1114
1126
  (value: {
1115
- color?: any;
1116
- }, createOptions?: CreateOptions): {
1117
- value: {
1118
- color?: any;
1127
+ enabled: boolean;
1128
+ href: {
1129
+ $$type: "url";
1130
+ value: string | null;
1131
+ disabled?: boolean | undefined;
1119
1132
  };
1120
- $$type: "background-overlay";
1121
- disabled?: boolean | undefined;
1122
- };
1123
- (value: (prev?: {
1124
- color?: any;
1125
- } | undefined) => {
1126
- color?: any;
1127
- }, createOptions: CreateOptions): {
1128
- value: {
1129
- color?: any;
1130
- };
1131
- $$type: "background-overlay";
1132
- disabled?: boolean | undefined;
1133
- };
1134
- };
1135
- schema: z.ZodType<{ [k in keyof z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
1136
- $$type: z.ZodLiteral<TKey>;
1137
- value: TValue;
1138
- disabled: z.ZodOptional<z.ZodBoolean>;
1139
- }>, any>]: z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
1140
- $$type: z.ZodLiteral<TKey>;
1141
- value: TValue;
1142
- disabled: z.ZodOptional<z.ZodBoolean>;
1143
- }>, any>[k]; }>;
1144
- };
1145
- type ColorGradientPropValue = z.infer<typeof colorGradientPropTypeUtil.schema>;
1146
-
1147
- declare const backgroundImagePropTypeUtil: {
1148
- extract: (prop: unknown) => {
1149
- value: {
1150
- color?: any;
1151
- };
1152
- $$type: "background-overlay";
1153
- disabled?: boolean | undefined;
1154
- }[] | null;
1155
- isValid: (prop: unknown) => prop is {
1156
- value: {
1157
- value: {
1158
- color?: any;
1159
- };
1160
- $$type: "background-overlay";
1161
- disabled?: boolean | undefined;
1162
- }[];
1163
- $$type: "background-image";
1164
- disabled?: boolean | undefined;
1165
- };
1166
- create: {
1167
- (value: {
1168
- value: {
1169
- color?: any;
1170
- };
1171
- $$type: "background-overlay";
1172
- disabled?: boolean | undefined;
1173
- }[]): {
1174
- value: {
1175
- value: {
1176
- color?: any;
1177
- };
1178
- $$type: "background-overlay";
1133
+ isTargetBlank: boolean;
1134
+ }, createOptions?: CreateOptions): TransformablePropValue$1<"link", {
1135
+ enabled: boolean;
1136
+ href: {
1137
+ $$type: "url";
1138
+ value: string | null;
1179
1139
  disabled?: boolean | undefined;
1180
- }[];
1181
- $$type: "background-image";
1182
- disabled?: boolean | undefined;
1183
- };
1184
- (value: {
1185
- value: {
1186
- color?: any;
1187
1140
  };
1188
- $$type: "background-overlay";
1189
- disabled?: boolean | undefined;
1190
- }[], createOptions?: CreateOptions): {
1191
- value: {
1192
- value: {
1193
- color?: any;
1194
- };
1195
- $$type: "background-overlay";
1196
- disabled?: boolean | undefined;
1197
- }[];
1198
- $$type: "background-image";
1199
- disabled?: boolean | undefined;
1200
- };
1141
+ isTargetBlank: boolean;
1142
+ }>;
1201
1143
  (value: (prev?: {
1202
- value: {
1203
- color?: any;
1204
- };
1205
- $$type: "background-overlay";
1206
- disabled?: boolean | undefined;
1207
- }[] | undefined) => {
1208
- value: {
1209
- color?: any;
1210
- };
1211
- $$type: "background-overlay";
1212
- disabled?: boolean | undefined;
1213
- }[], createOptions: CreateOptions): {
1214
- value: {
1215
- value: {
1216
- color?: any;
1217
- };
1218
- $$type: "background-overlay";
1144
+ enabled: boolean;
1145
+ href: {
1146
+ $$type: "url";
1147
+ value: string | null;
1219
1148
  disabled?: boolean | undefined;
1220
- }[];
1221
- $$type: "background-image";
1222
- disabled?: boolean | undefined;
1223
- };
1224
- };
1225
- schema: z.ZodType<{ [k in keyof z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
1226
- $$type: z.ZodLiteral<TKey>;
1227
- value: TValue;
1228
- disabled: z.ZodOptional<z.ZodBoolean>;
1229
- }>, any>]: z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
1230
- $$type: z.ZodLiteral<TKey>;
1231
- value: TValue;
1232
- disabled: z.ZodOptional<z.ZodBoolean>;
1233
- }>, any>[k]; }>;
1234
- };
1235
- type backgroundImageTypePropValue = z.infer<typeof backgroundImagePropTypeUtil.schema>;
1236
-
1237
- declare const linkPropTypeUtil: {
1238
- extract: (prop: unknown) => {
1239
- enabled: boolean;
1240
- href: {
1241
- value: string | null;
1242
- $$type: "url";
1243
- disabled?: boolean | undefined;
1244
- };
1245
- isTargetBlank: boolean;
1246
- } | null;
1247
- isValid: (prop: unknown) => prop is {
1248
- value: {
1149
+ };
1150
+ isTargetBlank: boolean;
1151
+ } | undefined) => {
1249
1152
  enabled: boolean;
1250
1153
  href: {
1154
+ $$type: "url";
1251
1155
  value: string | null;
1156
+ disabled?: boolean | undefined;
1157
+ };
1158
+ isTargetBlank: boolean;
1159
+ }, createOptions: CreateOptions): TransformablePropValue$1<"link", {
1160
+ enabled: boolean;
1161
+ href: {
1252
1162
  $$type: "url";
1163
+ value: string | null;
1253
1164
  disabled?: boolean | undefined;
1254
1165
  };
1255
1166
  isTargetBlank: boolean;
1256
- };
1257
- $$type: "link";
1258
- disabled?: boolean | undefined;
1167
+ }>;
1259
1168
  };
1260
- create: {
1261
- (value: {
1169
+ schema: z.ZodObject<{
1170
+ $$type: z.ZodLiteral<"link">;
1171
+ value: z.ZodType<{
1262
1172
  enabled: boolean;
1263
1173
  href: {
1264
- value: string | null;
1265
1174
  $$type: "url";
1175
+ value: string | null;
1266
1176
  disabled?: boolean | undefined;
1267
1177
  };
1268
1178
  isTargetBlank: boolean;
1269
- }): {
1270
- value: {
1271
- enabled: boolean;
1272
- href: {
1273
- value: string | null;
1274
- $$type: "url";
1275
- disabled?: boolean | undefined;
1276
- };
1277
- isTargetBlank: boolean;
1278
- };
1279
- $$type: "link";
1280
- disabled?: boolean | undefined;
1281
- };
1282
- (value: {
1179
+ }, z.ZodTypeDef, {
1283
1180
  enabled: boolean;
1284
1181
  href: {
1285
- value: string | null;
1286
1182
  $$type: "url";
1183
+ value: string | null;
1287
1184
  disabled?: boolean | undefined;
1288
1185
  };
1289
1186
  isTargetBlank: boolean;
1290
- }, createOptions?: CreateOptions): {
1291
- value: {
1292
- enabled: boolean;
1293
- href: {
1294
- value: string | null;
1295
- $$type: "url";
1296
- disabled?: boolean | undefined;
1297
- };
1298
- isTargetBlank: boolean;
1299
- };
1300
- $$type: "link";
1301
- disabled?: boolean | undefined;
1302
- };
1303
- (value: (prev?: {
1187
+ }>;
1188
+ disabled: z.ZodOptional<z.ZodBoolean>;
1189
+ }, "strict", z.ZodTypeAny, {
1190
+ $$type: "link";
1191
+ value: {
1304
1192
  enabled: boolean;
1305
1193
  href: {
1306
- value: string | null;
1307
1194
  $$type: "url";
1195
+ value: string | null;
1308
1196
  disabled?: boolean | undefined;
1309
1197
  };
1310
1198
  isTargetBlank: boolean;
1311
- } | undefined) => {
1199
+ };
1200
+ disabled?: boolean | undefined;
1201
+ }, {
1202
+ $$type: "link";
1203
+ value: {
1312
1204
  enabled: boolean;
1313
1205
  href: {
1314
- value: string | null;
1315
1206
  $$type: "url";
1207
+ value: string | null;
1316
1208
  disabled?: boolean | undefined;
1317
1209
  };
1318
1210
  isTargetBlank: boolean;
1319
- }, createOptions: CreateOptions): {
1320
- value: {
1321
- enabled: boolean;
1322
- href: {
1323
- value: string | null;
1324
- $$type: "url";
1325
- disabled?: boolean | undefined;
1326
- };
1327
- isTargetBlank: boolean;
1328
- };
1329
- $$type: "link";
1330
- disabled?: boolean | undefined;
1331
1211
  };
1212
+ disabled?: boolean | undefined;
1213
+ }>;
1214
+ };
1215
+ type LinkPropValue = z.infer<typeof linkPropTypeUtil.schema>;
1216
+
1217
+ declare const gapPropTypeUtil: {
1218
+ extract: (prop: unknown) => {
1219
+ isLinked: boolean;
1220
+ row?: any;
1221
+ column?: any;
1222
+ } | null;
1223
+ isValid: (prop: unknown) => prop is TransformablePropValue$1<"gap", {
1224
+ isLinked: boolean;
1225
+ row?: any;
1226
+ column?: any;
1227
+ }>;
1228
+ create: {
1229
+ (value: {
1230
+ isLinked: boolean;
1231
+ row?: any;
1232
+ column?: any;
1233
+ }): TransformablePropValue$1<"gap", {
1234
+ isLinked: boolean;
1235
+ row?: any;
1236
+ column?: any;
1237
+ }>;
1238
+ (value: {
1239
+ isLinked: boolean;
1240
+ row?: any;
1241
+ column?: any;
1242
+ }, createOptions?: CreateOptions): TransformablePropValue$1<"gap", {
1243
+ isLinked: boolean;
1244
+ row?: any;
1245
+ column?: any;
1246
+ }>;
1247
+ (value: (prev?: {
1248
+ isLinked: boolean;
1249
+ row?: any;
1250
+ column?: any;
1251
+ } | undefined) => {
1252
+ isLinked: boolean;
1253
+ row?: any;
1254
+ column?: any;
1255
+ }, createOptions: CreateOptions): TransformablePropValue$1<"gap", {
1256
+ isLinked: boolean;
1257
+ row?: any;
1258
+ column?: any;
1259
+ }>;
1332
1260
  };
1333
- schema: z.ZodType<{ [k in keyof z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
1334
- $$type: z.ZodLiteral<TKey>;
1335
- value: TValue;
1261
+ schema: z.ZodObject<{
1262
+ $$type: z.ZodLiteral<"gap">;
1263
+ value: z.ZodType<{
1264
+ isLinked: boolean;
1265
+ row?: any;
1266
+ column?: any;
1267
+ }, z.ZodTypeDef, {
1268
+ isLinked: boolean;
1269
+ row?: any;
1270
+ column?: any;
1271
+ }>;
1336
1272
  disabled: z.ZodOptional<z.ZodBoolean>;
1337
- }>, any>]: z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
1338
- $$type: z.ZodLiteral<TKey>;
1339
- value: TValue;
1273
+ }, "strict", z.ZodTypeAny, {
1274
+ $$type: "gap";
1275
+ value: {
1276
+ isLinked: boolean;
1277
+ row?: any;
1278
+ column?: any;
1279
+ };
1280
+ disabled?: boolean | undefined;
1281
+ }, {
1282
+ $$type: "gap";
1283
+ value: {
1284
+ isLinked: boolean;
1285
+ row?: any;
1286
+ column?: any;
1287
+ };
1288
+ disabled?: boolean | undefined;
1289
+ }>;
1290
+ };
1291
+ type GapPropValue = z.infer<typeof gapPropTypeUtil.schema>;
1292
+
1293
+ declare const backgroundPropTypeUtil: {
1294
+ extract: (prop: unknown) => {
1295
+ color?: any;
1296
+ 'background-overlay'?: any;
1297
+ } | null;
1298
+ isValid: (prop: unknown) => prop is TransformablePropValue$1<"background", {
1299
+ color?: any;
1300
+ 'background-overlay'?: any;
1301
+ }>;
1302
+ create: {
1303
+ (value: {
1304
+ color?: any;
1305
+ 'background-overlay'?: any;
1306
+ }): TransformablePropValue$1<"background", {
1307
+ color?: any;
1308
+ 'background-overlay'?: any;
1309
+ }>;
1310
+ (value: {
1311
+ color?: any;
1312
+ 'background-overlay'?: any;
1313
+ }, createOptions?: CreateOptions): TransformablePropValue$1<"background", {
1314
+ color?: any;
1315
+ 'background-overlay'?: any;
1316
+ }>;
1317
+ (value: (prev?: {
1318
+ color?: any;
1319
+ 'background-overlay'?: any;
1320
+ } | undefined) => {
1321
+ color?: any;
1322
+ 'background-overlay'?: any;
1323
+ }, createOptions: CreateOptions): TransformablePropValue$1<"background", {
1324
+ color?: any;
1325
+ 'background-overlay'?: any;
1326
+ }>;
1327
+ };
1328
+ schema: z.ZodObject<{
1329
+ $$type: z.ZodLiteral<"background">;
1330
+ value: z.ZodType<{
1331
+ color?: any;
1332
+ 'background-overlay'?: any;
1333
+ }, z.ZodTypeDef, {
1334
+ color?: any;
1335
+ 'background-overlay'?: any;
1336
+ }>;
1340
1337
  disabled: z.ZodOptional<z.ZodBoolean>;
1341
- }>, any>[k]; }>;
1338
+ }, "strict", z.ZodTypeAny, {
1339
+ $$type: "background";
1340
+ value: {
1341
+ color?: any;
1342
+ 'background-overlay'?: any;
1343
+ };
1344
+ disabled?: boolean | undefined;
1345
+ }, {
1346
+ $$type: "background";
1347
+ value: {
1348
+ color?: any;
1349
+ 'background-overlay'?: any;
1350
+ };
1351
+ disabled?: boolean | undefined;
1352
+ }>;
1342
1353
  };
1343
- type LinkPropValue = z.infer<typeof linkPropTypeUtil.schema>;
1354
+ type BackgroundPropValue = z.infer<typeof backgroundPropTypeUtil.schema>;
1355
+
1356
+ declare const backgroundOverlayItem: z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
1357
+ $$type: z.ZodLiteral<"background-color-overlay">;
1358
+ value: z.ZodType<string, z.ZodTypeDef, string>;
1359
+ disabled: z.ZodOptional<z.ZodBoolean>;
1360
+ }, "strict", z.ZodTypeAny, {
1361
+ $$type: "background-color-overlay";
1362
+ value: string;
1363
+ disabled?: boolean | undefined;
1364
+ }, {
1365
+ $$type: "background-color-overlay";
1366
+ value: string;
1367
+ disabled?: boolean | undefined;
1368
+ }>, z.ZodObject<{
1369
+ $$type: z.ZodLiteral<"background-gradient-overlay">;
1370
+ value: z.ZodType<any, z.ZodTypeDef, any>;
1371
+ disabled: z.ZodOptional<z.ZodBoolean>;
1372
+ }, "strict", z.ZodTypeAny, {
1373
+ $$type: "background-gradient-overlay";
1374
+ value?: any;
1375
+ disabled?: boolean | undefined;
1376
+ }, {
1377
+ $$type: "background-gradient-overlay";
1378
+ value?: any;
1379
+ disabled?: boolean | undefined;
1380
+ }>]>, z.ZodObject<{
1381
+ $$type: z.ZodLiteral<"background-image-overlay">;
1382
+ value: z.ZodType<any, z.ZodTypeDef, any>;
1383
+ disabled: z.ZodOptional<z.ZodBoolean>;
1384
+ }, "strict", z.ZodTypeAny, {
1385
+ $$type: "background-image-overlay";
1386
+ value?: any;
1387
+ disabled?: boolean | undefined;
1388
+ }, {
1389
+ $$type: "background-image-overlay";
1390
+ value?: any;
1391
+ disabled?: boolean | undefined;
1392
+ }>]>;
1393
+ declare const backgroundOverlayPropTypeUtil: {
1394
+ extract: (prop: unknown) => ({
1395
+ $$type: "background-color-overlay";
1396
+ value: string;
1397
+ disabled?: boolean | undefined;
1398
+ } | {
1399
+ $$type: "background-gradient-overlay";
1400
+ value?: any;
1401
+ disabled?: boolean | undefined;
1402
+ } | {
1403
+ $$type: "background-image-overlay";
1404
+ value?: any;
1405
+ disabled?: boolean | undefined;
1406
+ })[] | null;
1407
+ isValid: (prop: unknown) => prop is TransformablePropValue$1<"background-overlay", ({
1408
+ $$type: "background-color-overlay";
1409
+ value: string;
1410
+ disabled?: boolean | undefined;
1411
+ } | {
1412
+ $$type: "background-gradient-overlay";
1413
+ value?: any;
1414
+ disabled?: boolean | undefined;
1415
+ } | {
1416
+ $$type: "background-image-overlay";
1417
+ value?: any;
1418
+ disabled?: boolean | undefined;
1419
+ })[]>;
1420
+ create: {
1421
+ (value: ({
1422
+ $$type: "background-color-overlay";
1423
+ value: string;
1424
+ disabled?: boolean | undefined;
1425
+ } | {
1426
+ $$type: "background-gradient-overlay";
1427
+ value?: any;
1428
+ disabled?: boolean | undefined;
1429
+ } | {
1430
+ $$type: "background-image-overlay";
1431
+ value?: any;
1432
+ disabled?: boolean | undefined;
1433
+ })[]): TransformablePropValue$1<"background-overlay", ({
1434
+ $$type: "background-color-overlay";
1435
+ value: string;
1436
+ disabled?: boolean | undefined;
1437
+ } | {
1438
+ $$type: "background-gradient-overlay";
1439
+ value?: any;
1440
+ disabled?: boolean | undefined;
1441
+ } | {
1442
+ $$type: "background-image-overlay";
1443
+ value?: any;
1444
+ disabled?: boolean | undefined;
1445
+ })[]>;
1446
+ (value: ({
1447
+ $$type: "background-color-overlay";
1448
+ value: string;
1449
+ disabled?: boolean | undefined;
1450
+ } | {
1451
+ $$type: "background-gradient-overlay";
1452
+ value?: any;
1453
+ disabled?: boolean | undefined;
1454
+ } | {
1455
+ $$type: "background-image-overlay";
1456
+ value?: any;
1457
+ disabled?: boolean | undefined;
1458
+ })[], createOptions?: CreateOptions): TransformablePropValue$1<"background-overlay", ({
1459
+ $$type: "background-color-overlay";
1460
+ value: string;
1461
+ disabled?: boolean | undefined;
1462
+ } | {
1463
+ $$type: "background-gradient-overlay";
1464
+ value?: any;
1465
+ disabled?: boolean | undefined;
1466
+ } | {
1467
+ $$type: "background-image-overlay";
1468
+ value?: any;
1469
+ disabled?: boolean | undefined;
1470
+ })[]>;
1471
+ (value: (prev?: ({
1472
+ $$type: "background-color-overlay";
1473
+ value: string;
1474
+ disabled?: boolean | undefined;
1475
+ } | {
1476
+ $$type: "background-gradient-overlay";
1477
+ value?: any;
1478
+ disabled?: boolean | undefined;
1479
+ } | {
1480
+ $$type: "background-image-overlay";
1481
+ value?: any;
1482
+ disabled?: boolean | undefined;
1483
+ })[] | undefined) => ({
1484
+ $$type: "background-color-overlay";
1485
+ value: string;
1486
+ disabled?: boolean | undefined;
1487
+ } | {
1488
+ $$type: "background-gradient-overlay";
1489
+ value?: any;
1490
+ disabled?: boolean | undefined;
1491
+ } | {
1492
+ $$type: "background-image-overlay";
1493
+ value?: any;
1494
+ disabled?: boolean | undefined;
1495
+ })[], createOptions: CreateOptions): TransformablePropValue$1<"background-overlay", ({
1496
+ $$type: "background-color-overlay";
1497
+ value: string;
1498
+ disabled?: boolean | undefined;
1499
+ } | {
1500
+ $$type: "background-gradient-overlay";
1501
+ value?: any;
1502
+ disabled?: boolean | undefined;
1503
+ } | {
1504
+ $$type: "background-image-overlay";
1505
+ value?: any;
1506
+ disabled?: boolean | undefined;
1507
+ })[]>;
1508
+ };
1509
+ schema: z.ZodObject<{
1510
+ $$type: z.ZodLiteral<"background-overlay">;
1511
+ value: z.ZodType<({
1512
+ $$type: "background-color-overlay";
1513
+ value: string;
1514
+ disabled?: boolean | undefined;
1515
+ } | {
1516
+ $$type: "background-gradient-overlay";
1517
+ value?: any;
1518
+ disabled?: boolean | undefined;
1519
+ } | {
1520
+ $$type: "background-image-overlay";
1521
+ value?: any;
1522
+ disabled?: boolean | undefined;
1523
+ })[], z.ZodTypeDef, ({
1524
+ $$type: "background-color-overlay";
1525
+ value: string;
1526
+ disabled?: boolean | undefined;
1527
+ } | {
1528
+ $$type: "background-gradient-overlay";
1529
+ value?: any;
1530
+ disabled?: boolean | undefined;
1531
+ } | {
1532
+ $$type: "background-image-overlay";
1533
+ value?: any;
1534
+ disabled?: boolean | undefined;
1535
+ })[]>;
1536
+ disabled: z.ZodOptional<z.ZodBoolean>;
1537
+ }, "strict", z.ZodTypeAny, {
1538
+ $$type: "background-overlay";
1539
+ value: ({
1540
+ $$type: "background-color-overlay";
1541
+ value: string;
1542
+ disabled?: boolean | undefined;
1543
+ } | {
1544
+ $$type: "background-gradient-overlay";
1545
+ value?: any;
1546
+ disabled?: boolean | undefined;
1547
+ } | {
1548
+ $$type: "background-image-overlay";
1549
+ value?: any;
1550
+ disabled?: boolean | undefined;
1551
+ })[];
1552
+ disabled?: boolean | undefined;
1553
+ }, {
1554
+ $$type: "background-overlay";
1555
+ value: ({
1556
+ $$type: "background-color-overlay";
1557
+ value: string;
1558
+ disabled?: boolean | undefined;
1559
+ } | {
1560
+ $$type: "background-gradient-overlay";
1561
+ value?: any;
1562
+ disabled?: boolean | undefined;
1563
+ } | {
1564
+ $$type: "background-image-overlay";
1565
+ value?: any;
1566
+ disabled?: boolean | undefined;
1567
+ })[];
1568
+ disabled?: boolean | undefined;
1569
+ }>;
1570
+ };
1571
+ type BackgroundOverlayPropValue = z.infer<typeof backgroundOverlayPropTypeUtil.schema>;
1572
+ type BackgroundOverlayItemPropValue = z.infer<typeof backgroundOverlayItem>;
1573
+
1574
+ declare const backgroundColorOverlayPropTypeUtil: {
1575
+ extract: (prop: unknown) => string | null;
1576
+ isValid: (prop: unknown) => prop is TransformablePropValue$1<"background-color-overlay", string>;
1577
+ create: {
1578
+ (value: string): TransformablePropValue$1<"background-color-overlay", string>;
1579
+ (value: string, createOptions?: CreateOptions): TransformablePropValue$1<"background-color-overlay", string>;
1580
+ (value: (prev?: string | undefined) => string, createOptions: CreateOptions): TransformablePropValue$1<"background-color-overlay", string>;
1581
+ };
1582
+ schema: z.ZodObject<{
1583
+ $$type: z.ZodLiteral<"background-color-overlay">;
1584
+ value: z.ZodType<string, z.ZodTypeDef, string>;
1585
+ disabled: z.ZodOptional<z.ZodBoolean>;
1586
+ }, "strict", z.ZodTypeAny, {
1587
+ $$type: "background-color-overlay";
1588
+ value: string;
1589
+ disabled?: boolean | undefined;
1590
+ }, {
1591
+ $$type: "background-color-overlay";
1592
+ value: string;
1593
+ disabled?: boolean | undefined;
1594
+ }>;
1595
+ };
1596
+ type BackgroundColorOverlayPropValue = z.infer<typeof backgroundColorOverlayPropTypeUtil.schema>;
1344
1597
 
1345
1598
  declare const transformableSchema: z.ZodObject<{
1346
1599
  $$type: z.ZodString;
1347
1600
  value: z.ZodAny;
1601
+ disabled: z.ZodOptional<z.ZodBoolean>;
1348
1602
  }, "strip", z.ZodTypeAny, {
1349
1603
  $$type: string;
1350
1604
  value?: any;
1605
+ disabled?: boolean | undefined;
1351
1606
  }, {
1352
1607
  $$type: string;
1353
1608
  value?: any;
1609
+ disabled?: boolean | undefined;
1354
1610
  }>;
1355
1611
  type TransformablePropValue = z.infer<typeof transformableSchema>;
1356
1612
  declare const isTransformable: (value: unknown) => value is TransformablePropValue;
1357
1613
 
1358
- export { type ArrayPropType, type BorderRadiusPropValue, type BorderWidthPropValue, type BoxShadowPropValue, type ClassesPropValue, type ColorGradientPropValue, type ColorPropValue, type CreateOptions, type ImageAttachmentIdPropValue, type ImagePropValue, type ImageSrcPropValue, type LinkPropValue, type LinkedDimensionsPropValue, type NumberPropValue, type ObjectPropType, type PlainPropType, type PlainPropValue, type PlainProps, type PropKey, type PropType, type PropTypeUtil, type PropValue, type Props, type ShadowPropValue, type SizePropValue, type StringPropValue, type StrokePropValue, type TransformablePropType, type TransformablePropValue$1 as TransformablePropValue, type UnionPropType, type UrlPropValue, backgroundImagePropTypeUtil, type backgroundImageTypePropValue, borderRadiusPropTypeUtil, borderWidthPropTypeUtil, boxShadowPropTypeUtil, classesPropTypeUtil, colorGradientPropTypeUtil, colorPropTypeUtil, createPropUtils, imageAttachmentIdPropType, imagePropTypeUtil, imageSrcPropTypeUtil, isTransformable, linkPropTypeUtil, linkedDimensionsPropTypeUtil, numberPropTypeUtil, shadowPropTypeUtil, sizePropTypeUtil, stringPropTypeUtil, strokePropTypeUtil, urlPropTypeUtil };
1614
+ export { type ArrayPropType, type BackgroundColorOverlayPropValue, type BackgroundOverlayItemPropValue, type BackgroundOverlayPropValue, type BackgroundPropValue, type BorderRadiusPropValue, type BorderWidthPropValue, type BoxShadowPropValue, type ClassesPropValue, type ColorPropValue, type CreateOptions, type GapPropValue, type ImageAttachmentIdPropValue, type ImagePropValue, type ImageSrcPropValue, type LinkPropValue, type LinkedDimensionsPropValue, type NumberPropValue, type ObjectPropType, type PlainPropType, type PlainPropValue, type PlainProps, type PropKey, type PropType, type PropTypeUtil, type PropValue, type Props, type ShadowPropValue, type SizePropValue, type StringPropValue, type StrokePropValue, type TransformablePropType, type TransformablePropValue$1 as TransformablePropValue, type UnionPropType, type UrlPropValue, backgroundColorOverlayPropTypeUtil, backgroundOverlayPropTypeUtil, backgroundPropTypeUtil, borderRadiusPropTypeUtil, borderWidthPropTypeUtil, boxShadowPropTypeUtil, classesPropTypeUtil, colorPropTypeUtil, createPropUtils, gapPropTypeUtil, imageAttachmentIdPropType, imagePropTypeUtil, imageSrcPropTypeUtil, isTransformable, linkPropTypeUtil, linkedDimensionsPropTypeUtil, numberPropTypeUtil, shadowPropTypeUtil, sizePropTypeUtil, stringPropTypeUtil, strokePropTypeUtil, urlPropTypeUtil };