@elementor/editor-props 0.3.0 → 0.5.0

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