@elementor/editor-props 0.5.0 → 0.6.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/CHANGELOG.md +12 -0
- package/dist/index.d.mts +408 -333
- package/dist/index.d.ts +408 -333
- package/dist/index.js +84 -78
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +82 -76
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/prop-types/background-prop-types/background-color-overlay.ts +7 -0
- package/src/prop-types/background-prop-types/background-gradient-overlay.ts +11 -0
- package/src/prop-types/background-prop-types/background-image-overlay.ts +8 -0
- package/src/prop-types/background-prop-types/background-overlay.ts +15 -0
- package/src/prop-types/background-prop-types/background.ts +14 -0
- package/src/prop-types/index.ts +3 -3
- package/src/prop-types/link.ts +4 -4
- package/src/prop-types/number.ts +1 -1
- package/src/types.ts +12 -6
- package/src/utils/create-prop-utils.ts +1 -0
- package/src/prop-types/background-image.ts +0 -11
- package/src/prop-types/background-overlay.ts +0 -13
- package/src/prop-types/color-gradient.ts +0 -13
package/dist/index.d.ts
CHANGED
|
@@ -1,37 +1,40 @@
|
|
|
1
1
|
import { ZodType, z } from '@elementor/schema';
|
|
2
2
|
|
|
3
3
|
type PropTypeKey = string;
|
|
4
|
-
type BasePropType = {
|
|
5
|
-
default
|
|
4
|
+
type BasePropType<TValue> = {
|
|
5
|
+
default?: TValue | null;
|
|
6
6
|
settings: Record<string, unknown>;
|
|
7
7
|
meta: Record<string, unknown>;
|
|
8
8
|
};
|
|
9
|
-
type PlainPropType = BasePropType & {
|
|
9
|
+
type PlainPropType = BasePropType<PlainPropValue> & {
|
|
10
10
|
kind: 'plain';
|
|
11
11
|
key: PropTypeKey;
|
|
12
12
|
};
|
|
13
|
-
type ArrayPropType = BasePropType & {
|
|
13
|
+
type ArrayPropType = BasePropType<ArrayPropValue> & {
|
|
14
14
|
kind: 'array';
|
|
15
15
|
key: PropTypeKey;
|
|
16
16
|
item_prop_type: PropType;
|
|
17
17
|
};
|
|
18
|
-
type ObjectPropType = BasePropType & {
|
|
18
|
+
type ObjectPropType = BasePropType<ObjectPropValue> & {
|
|
19
19
|
kind: 'object';
|
|
20
20
|
key: PropTypeKey;
|
|
21
21
|
shape: Record<string, PropType>;
|
|
22
22
|
};
|
|
23
23
|
type TransformablePropType = PlainPropType | ArrayPropType | ObjectPropType;
|
|
24
|
-
type UnionPropType = BasePropType & {
|
|
24
|
+
type UnionPropType = BasePropType<PropValue> & {
|
|
25
25
|
kind: 'union';
|
|
26
26
|
prop_types: Record<string, TransformablePropType>;
|
|
27
27
|
};
|
|
28
28
|
type PropType = TransformablePropType | UnionPropType;
|
|
29
|
+
type PropsSchema = Record<string, PropType>;
|
|
29
30
|
type MaybeArray<T> = T | T[];
|
|
30
31
|
type TransformablePropValue$1<Type extends string, Value = unknown> = {
|
|
31
32
|
$$type: Type;
|
|
32
33
|
value: Value;
|
|
33
34
|
disabled?: boolean;
|
|
34
35
|
};
|
|
36
|
+
type ArrayPropValue = TransformablePropValue$1<string, PropValue[]>;
|
|
37
|
+
type ObjectPropValue = TransformablePropValue$1<string, Record<string, PropValue>>;
|
|
35
38
|
type PlainPropValue = MaybeArray<string | number | boolean | object | null | undefined>;
|
|
36
39
|
type PropValue = PlainPropValue | TransformablePropValue$1<string>;
|
|
37
40
|
type PropKey = string;
|
|
@@ -87,80 +90,31 @@ declare function createPropUtils<TKey extends string, TValue extends PropValue>(
|
|
|
87
90
|
value: z.ZodType<TValue, z.ZodTypeDef, TValue>;
|
|
88
91
|
disabled: z.ZodOptional<z.ZodBoolean>;
|
|
89
92
|
}>[k_1]; } : never>;
|
|
93
|
+
key: TKey;
|
|
90
94
|
};
|
|
91
95
|
|
|
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
|
-
|
|
142
96
|
declare const boxShadowPropTypeUtil: {
|
|
143
97
|
extract: (prop: unknown) => {
|
|
144
98
|
$$type: "shadow";
|
|
145
99
|
value: {
|
|
146
|
-
color?: any;
|
|
147
100
|
position?: any;
|
|
148
101
|
hOffset?: any;
|
|
149
102
|
vOffset?: any;
|
|
150
103
|
blur?: any;
|
|
151
104
|
spread?: any;
|
|
105
|
+
color?: any;
|
|
152
106
|
};
|
|
153
107
|
disabled?: boolean | undefined;
|
|
154
108
|
}[] | null;
|
|
155
109
|
isValid: (prop: unknown) => prop is TransformablePropValue$1<"box-shadow", {
|
|
156
110
|
$$type: "shadow";
|
|
157
111
|
value: {
|
|
158
|
-
color?: any;
|
|
159
112
|
position?: any;
|
|
160
113
|
hOffset?: any;
|
|
161
114
|
vOffset?: any;
|
|
162
115
|
blur?: any;
|
|
163
116
|
spread?: any;
|
|
117
|
+
color?: any;
|
|
164
118
|
};
|
|
165
119
|
disabled?: boolean | undefined;
|
|
166
120
|
}[]>;
|
|
@@ -168,80 +122,80 @@ declare const boxShadowPropTypeUtil: {
|
|
|
168
122
|
(value: {
|
|
169
123
|
$$type: "shadow";
|
|
170
124
|
value: {
|
|
171
|
-
color?: any;
|
|
172
125
|
position?: any;
|
|
173
126
|
hOffset?: any;
|
|
174
127
|
vOffset?: any;
|
|
175
128
|
blur?: any;
|
|
176
129
|
spread?: any;
|
|
130
|
+
color?: any;
|
|
177
131
|
};
|
|
178
132
|
disabled?: boolean | undefined;
|
|
179
133
|
}[]): TransformablePropValue$1<"box-shadow", {
|
|
180
134
|
$$type: "shadow";
|
|
181
135
|
value: {
|
|
182
|
-
color?: any;
|
|
183
136
|
position?: any;
|
|
184
137
|
hOffset?: any;
|
|
185
138
|
vOffset?: any;
|
|
186
139
|
blur?: any;
|
|
187
140
|
spread?: any;
|
|
141
|
+
color?: any;
|
|
188
142
|
};
|
|
189
143
|
disabled?: boolean | undefined;
|
|
190
144
|
}[]>;
|
|
191
145
|
(value: {
|
|
192
146
|
$$type: "shadow";
|
|
193
147
|
value: {
|
|
194
|
-
color?: any;
|
|
195
148
|
position?: any;
|
|
196
149
|
hOffset?: any;
|
|
197
150
|
vOffset?: any;
|
|
198
151
|
blur?: any;
|
|
199
152
|
spread?: any;
|
|
153
|
+
color?: any;
|
|
200
154
|
};
|
|
201
155
|
disabled?: boolean | undefined;
|
|
202
156
|
}[], createOptions?: CreateOptions): TransformablePropValue$1<"box-shadow", {
|
|
203
157
|
$$type: "shadow";
|
|
204
158
|
value: {
|
|
205
|
-
color?: any;
|
|
206
159
|
position?: any;
|
|
207
160
|
hOffset?: any;
|
|
208
161
|
vOffset?: any;
|
|
209
162
|
blur?: any;
|
|
210
163
|
spread?: any;
|
|
164
|
+
color?: any;
|
|
211
165
|
};
|
|
212
166
|
disabled?: boolean | undefined;
|
|
213
167
|
}[]>;
|
|
214
168
|
(value: (prev?: {
|
|
215
169
|
$$type: "shadow";
|
|
216
170
|
value: {
|
|
217
|
-
color?: any;
|
|
218
171
|
position?: any;
|
|
219
172
|
hOffset?: any;
|
|
220
173
|
vOffset?: any;
|
|
221
174
|
blur?: any;
|
|
222
175
|
spread?: any;
|
|
176
|
+
color?: any;
|
|
223
177
|
};
|
|
224
178
|
disabled?: boolean | undefined;
|
|
225
179
|
}[] | undefined) => {
|
|
226
180
|
$$type: "shadow";
|
|
227
181
|
value: {
|
|
228
|
-
color?: any;
|
|
229
182
|
position?: any;
|
|
230
183
|
hOffset?: any;
|
|
231
184
|
vOffset?: any;
|
|
232
185
|
blur?: any;
|
|
233
186
|
spread?: any;
|
|
187
|
+
color?: any;
|
|
234
188
|
};
|
|
235
189
|
disabled?: boolean | undefined;
|
|
236
190
|
}[], createOptions: CreateOptions): TransformablePropValue$1<"box-shadow", {
|
|
237
191
|
$$type: "shadow";
|
|
238
192
|
value: {
|
|
239
|
-
color?: any;
|
|
240
193
|
position?: any;
|
|
241
194
|
hOffset?: any;
|
|
242
195
|
vOffset?: any;
|
|
243
196
|
blur?: any;
|
|
244
197
|
spread?: any;
|
|
198
|
+
color?: any;
|
|
245
199
|
};
|
|
246
200
|
disabled?: boolean | undefined;
|
|
247
201
|
}[]>;
|
|
@@ -251,23 +205,23 @@ declare const boxShadowPropTypeUtil: {
|
|
|
251
205
|
value: z.ZodType<{
|
|
252
206
|
$$type: "shadow";
|
|
253
207
|
value: {
|
|
254
|
-
color?: any;
|
|
255
208
|
position?: any;
|
|
256
209
|
hOffset?: any;
|
|
257
210
|
vOffset?: any;
|
|
258
211
|
blur?: any;
|
|
259
212
|
spread?: any;
|
|
213
|
+
color?: any;
|
|
260
214
|
};
|
|
261
215
|
disabled?: boolean | undefined;
|
|
262
216
|
}[], z.ZodTypeDef, {
|
|
263
217
|
$$type: "shadow";
|
|
264
218
|
value: {
|
|
265
|
-
color?: any;
|
|
266
219
|
position?: any;
|
|
267
220
|
hOffset?: any;
|
|
268
221
|
vOffset?: any;
|
|
269
222
|
blur?: any;
|
|
270
223
|
spread?: any;
|
|
224
|
+
color?: any;
|
|
271
225
|
};
|
|
272
226
|
disabled?: boolean | undefined;
|
|
273
227
|
}[]>;
|
|
@@ -277,12 +231,12 @@ declare const boxShadowPropTypeUtil: {
|
|
|
277
231
|
value: {
|
|
278
232
|
$$type: "shadow";
|
|
279
233
|
value: {
|
|
280
|
-
color?: any;
|
|
281
234
|
position?: any;
|
|
282
235
|
hOffset?: any;
|
|
283
236
|
vOffset?: any;
|
|
284
237
|
blur?: any;
|
|
285
238
|
spread?: any;
|
|
239
|
+
color?: any;
|
|
286
240
|
};
|
|
287
241
|
disabled?: boolean | undefined;
|
|
288
242
|
}[];
|
|
@@ -292,17 +246,18 @@ declare const boxShadowPropTypeUtil: {
|
|
|
292
246
|
value: {
|
|
293
247
|
$$type: "shadow";
|
|
294
248
|
value: {
|
|
295
|
-
color?: any;
|
|
296
249
|
position?: any;
|
|
297
250
|
hOffset?: any;
|
|
298
251
|
vOffset?: any;
|
|
299
252
|
blur?: any;
|
|
300
253
|
spread?: any;
|
|
254
|
+
color?: any;
|
|
301
255
|
};
|
|
302
256
|
disabled?: boolean | undefined;
|
|
303
257
|
}[];
|
|
304
258
|
disabled?: boolean | undefined;
|
|
305
259
|
}>;
|
|
260
|
+
key: TKey;
|
|
306
261
|
};
|
|
307
262
|
type BoxShadowPropValue = z.infer<typeof boxShadowPropTypeUtil.schema>;
|
|
308
263
|
|
|
@@ -392,6 +347,7 @@ declare const borderRadiusPropTypeUtil: {
|
|
|
392
347
|
};
|
|
393
348
|
disabled?: boolean | undefined;
|
|
394
349
|
}>;
|
|
350
|
+
key: TKey;
|
|
395
351
|
};
|
|
396
352
|
type BorderRadiusPropValue = z.infer<typeof borderRadiusPropTypeUtil.schema>;
|
|
397
353
|
|
|
@@ -481,6 +437,7 @@ declare const borderWidthPropTypeUtil: {
|
|
|
481
437
|
};
|
|
482
438
|
disabled?: boolean | undefined;
|
|
483
439
|
}>;
|
|
440
|
+
key: TKey;
|
|
484
441
|
};
|
|
485
442
|
type BorderWidthPropValue = z.infer<typeof borderWidthPropTypeUtil.schema>;
|
|
486
443
|
|
|
@@ -505,6 +462,7 @@ declare const classesPropTypeUtil: {
|
|
|
505
462
|
value: string[];
|
|
506
463
|
disabled?: boolean | undefined;
|
|
507
464
|
}>;
|
|
465
|
+
key: TKey;
|
|
508
466
|
};
|
|
509
467
|
type ClassesPropValue = z.infer<typeof classesPropTypeUtil.schema>;
|
|
510
468
|
|
|
@@ -529,6 +487,7 @@ declare const colorPropTypeUtil: {
|
|
|
529
487
|
value: string;
|
|
530
488
|
disabled?: boolean | undefined;
|
|
531
489
|
}>;
|
|
490
|
+
key: TKey;
|
|
532
491
|
};
|
|
533
492
|
type ColorPropValue = z.infer<typeof colorPropTypeUtil.schema>;
|
|
534
493
|
|
|
@@ -592,6 +551,7 @@ declare const imagePropTypeUtil: {
|
|
|
592
551
|
};
|
|
593
552
|
disabled?: boolean | undefined;
|
|
594
553
|
}>;
|
|
554
|
+
key: TKey;
|
|
595
555
|
};
|
|
596
556
|
type ImagePropValue = z.infer<typeof imagePropTypeUtil.schema>;
|
|
597
557
|
|
|
@@ -616,6 +576,7 @@ declare const imageAttachmentIdPropType: {
|
|
|
616
576
|
value: number;
|
|
617
577
|
disabled?: boolean | undefined;
|
|
618
578
|
}>;
|
|
579
|
+
key: TKey;
|
|
619
580
|
};
|
|
620
581
|
type ImageAttachmentIdPropValue = z.infer<typeof imageAttachmentIdPropType.schema>;
|
|
621
582
|
|
|
@@ -718,6 +679,7 @@ declare const imageSrcPropTypeUtil: {
|
|
|
718
679
|
};
|
|
719
680
|
disabled?: boolean | undefined;
|
|
720
681
|
}>;
|
|
682
|
+
key: TKey;
|
|
721
683
|
};
|
|
722
684
|
type ImageSrcPropValue = z.infer<typeof imageSrcPropTypeUtil.schema>;
|
|
723
685
|
|
|
@@ -820,145 +782,148 @@ declare const linkedDimensionsPropTypeUtil: {
|
|
|
820
782
|
};
|
|
821
783
|
disabled?: boolean | undefined;
|
|
822
784
|
}>;
|
|
785
|
+
key: TKey;
|
|
823
786
|
};
|
|
824
787
|
type LinkedDimensionsPropValue = z.infer<typeof linkedDimensionsPropTypeUtil.schema>;
|
|
825
788
|
|
|
826
789
|
declare const numberPropTypeUtil: {
|
|
827
790
|
extract: (prop: unknown) => number | null;
|
|
828
|
-
isValid: (prop: unknown) => prop is TransformablePropValue$1<"number", number>;
|
|
791
|
+
isValid: (prop: unknown) => prop is TransformablePropValue$1<"number", number | null>;
|
|
829
792
|
create: {
|
|
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>;
|
|
793
|
+
(value: number | null): TransformablePropValue$1<"number", number | null>;
|
|
794
|
+
(value: number | null, createOptions?: CreateOptions): TransformablePropValue$1<"number", number | null>;
|
|
795
|
+
(value: (prev?: number | null | undefined) => number | null, createOptions: CreateOptions): TransformablePropValue$1<"number", number | null>;
|
|
833
796
|
};
|
|
834
797
|
schema: z.ZodObject<{
|
|
835
798
|
$$type: z.ZodLiteral<"number">;
|
|
836
|
-
value: z.ZodType<number, z.ZodTypeDef, number>;
|
|
799
|
+
value: z.ZodType<number | null, z.ZodTypeDef, number | null>;
|
|
837
800
|
disabled: z.ZodOptional<z.ZodBoolean>;
|
|
838
801
|
}, "strict", z.ZodTypeAny, {
|
|
839
802
|
$$type: "number";
|
|
840
|
-
value: number;
|
|
803
|
+
value: number | null;
|
|
841
804
|
disabled?: boolean | undefined;
|
|
842
805
|
}, {
|
|
843
806
|
$$type: "number";
|
|
844
|
-
value: number;
|
|
807
|
+
value: number | null;
|
|
845
808
|
disabled?: boolean | undefined;
|
|
846
809
|
}>;
|
|
810
|
+
key: TKey;
|
|
847
811
|
};
|
|
848
812
|
type NumberPropValue = z.infer<typeof numberPropTypeUtil.schema>;
|
|
849
813
|
|
|
850
814
|
declare const shadowPropTypeUtil: {
|
|
851
815
|
extract: (prop: unknown) => {
|
|
852
|
-
color?: any;
|
|
853
816
|
position?: any;
|
|
854
817
|
hOffset?: any;
|
|
855
818
|
vOffset?: any;
|
|
856
819
|
blur?: any;
|
|
857
820
|
spread?: any;
|
|
821
|
+
color?: any;
|
|
858
822
|
} | null;
|
|
859
823
|
isValid: (prop: unknown) => prop is TransformablePropValue$1<"shadow", {
|
|
860
|
-
color?: any;
|
|
861
824
|
position?: any;
|
|
862
825
|
hOffset?: any;
|
|
863
826
|
vOffset?: any;
|
|
864
827
|
blur?: any;
|
|
865
828
|
spread?: any;
|
|
829
|
+
color?: any;
|
|
866
830
|
}>;
|
|
867
831
|
create: {
|
|
868
832
|
(value: {
|
|
869
|
-
color?: any;
|
|
870
833
|
position?: any;
|
|
871
834
|
hOffset?: any;
|
|
872
835
|
vOffset?: any;
|
|
873
836
|
blur?: any;
|
|
874
837
|
spread?: any;
|
|
875
|
-
}): TransformablePropValue$1<"shadow", {
|
|
876
838
|
color?: any;
|
|
839
|
+
}): TransformablePropValue$1<"shadow", {
|
|
877
840
|
position?: any;
|
|
878
841
|
hOffset?: any;
|
|
879
842
|
vOffset?: any;
|
|
880
843
|
blur?: any;
|
|
881
844
|
spread?: any;
|
|
845
|
+
color?: any;
|
|
882
846
|
}>;
|
|
883
847
|
(value: {
|
|
884
|
-
color?: any;
|
|
885
848
|
position?: any;
|
|
886
849
|
hOffset?: any;
|
|
887
850
|
vOffset?: any;
|
|
888
851
|
blur?: any;
|
|
889
852
|
spread?: any;
|
|
890
|
-
}, createOptions?: CreateOptions): TransformablePropValue$1<"shadow", {
|
|
891
853
|
color?: any;
|
|
854
|
+
}, createOptions?: CreateOptions): TransformablePropValue$1<"shadow", {
|
|
892
855
|
position?: any;
|
|
893
856
|
hOffset?: any;
|
|
894
857
|
vOffset?: any;
|
|
895
858
|
blur?: any;
|
|
896
859
|
spread?: any;
|
|
860
|
+
color?: any;
|
|
897
861
|
}>;
|
|
898
862
|
(value: (prev?: {
|
|
899
|
-
color?: any;
|
|
900
863
|
position?: any;
|
|
901
864
|
hOffset?: any;
|
|
902
865
|
vOffset?: any;
|
|
903
866
|
blur?: any;
|
|
904
867
|
spread?: any;
|
|
905
|
-
} | undefined) => {
|
|
906
868
|
color?: any;
|
|
869
|
+
} | undefined) => {
|
|
907
870
|
position?: any;
|
|
908
871
|
hOffset?: any;
|
|
909
872
|
vOffset?: any;
|
|
910
873
|
blur?: any;
|
|
911
874
|
spread?: any;
|
|
912
|
-
}, createOptions: CreateOptions): TransformablePropValue$1<"shadow", {
|
|
913
875
|
color?: any;
|
|
876
|
+
}, createOptions: CreateOptions): TransformablePropValue$1<"shadow", {
|
|
914
877
|
position?: any;
|
|
915
878
|
hOffset?: any;
|
|
916
879
|
vOffset?: any;
|
|
917
880
|
blur?: any;
|
|
918
881
|
spread?: any;
|
|
882
|
+
color?: any;
|
|
919
883
|
}>;
|
|
920
884
|
};
|
|
921
885
|
schema: z.ZodObject<{
|
|
922
886
|
$$type: z.ZodLiteral<"shadow">;
|
|
923
887
|
value: z.ZodType<{
|
|
924
|
-
color?: any;
|
|
925
888
|
position?: any;
|
|
926
889
|
hOffset?: any;
|
|
927
890
|
vOffset?: any;
|
|
928
891
|
blur?: any;
|
|
929
892
|
spread?: any;
|
|
930
|
-
}, z.ZodTypeDef, {
|
|
931
893
|
color?: any;
|
|
894
|
+
}, z.ZodTypeDef, {
|
|
932
895
|
position?: any;
|
|
933
896
|
hOffset?: any;
|
|
934
897
|
vOffset?: any;
|
|
935
898
|
blur?: any;
|
|
936
899
|
spread?: any;
|
|
900
|
+
color?: any;
|
|
937
901
|
}>;
|
|
938
902
|
disabled: z.ZodOptional<z.ZodBoolean>;
|
|
939
903
|
}, "strict", z.ZodTypeAny, {
|
|
940
904
|
$$type: "shadow";
|
|
941
905
|
value: {
|
|
942
|
-
color?: any;
|
|
943
906
|
position?: any;
|
|
944
907
|
hOffset?: any;
|
|
945
908
|
vOffset?: any;
|
|
946
909
|
blur?: any;
|
|
947
910
|
spread?: any;
|
|
911
|
+
color?: any;
|
|
948
912
|
};
|
|
949
913
|
disabled?: boolean | undefined;
|
|
950
914
|
}, {
|
|
951
915
|
$$type: "shadow";
|
|
952
916
|
value: {
|
|
953
|
-
color?: any;
|
|
954
917
|
position?: any;
|
|
955
918
|
hOffset?: any;
|
|
956
919
|
vOffset?: any;
|
|
957
920
|
blur?: any;
|
|
958
921
|
spread?: any;
|
|
922
|
+
color?: any;
|
|
959
923
|
};
|
|
960
924
|
disabled?: boolean | undefined;
|
|
961
925
|
}>;
|
|
926
|
+
key: TKey;
|
|
962
927
|
};
|
|
963
928
|
type ShadowPropValue = z.infer<typeof shadowPropTypeUtil.schema>;
|
|
964
929
|
|
|
@@ -1022,6 +987,7 @@ declare const sizePropTypeUtil: {
|
|
|
1022
987
|
};
|
|
1023
988
|
disabled?: boolean | undefined;
|
|
1024
989
|
}>;
|
|
990
|
+
key: TKey;
|
|
1025
991
|
};
|
|
1026
992
|
type SizePropValue = z.infer<typeof sizePropTypeUtil.schema>;
|
|
1027
993
|
|
|
@@ -1046,6 +1012,7 @@ declare const stringPropTypeUtil: {
|
|
|
1046
1012
|
value: string | null;
|
|
1047
1013
|
disabled?: boolean | undefined;
|
|
1048
1014
|
}>;
|
|
1015
|
+
key: TKey;
|
|
1049
1016
|
};
|
|
1050
1017
|
type StringPropValue = z.infer<typeof stringPropTypeUtil.schema>;
|
|
1051
1018
|
|
|
@@ -1109,6 +1076,7 @@ declare const strokePropTypeUtil: {
|
|
|
1109
1076
|
};
|
|
1110
1077
|
disabled?: boolean | undefined;
|
|
1111
1078
|
}>;
|
|
1079
|
+
key: TKey;
|
|
1112
1080
|
};
|
|
1113
1081
|
type StrokePropValue = z.infer<typeof strokePropTypeUtil.schema>;
|
|
1114
1082
|
|
|
@@ -1133,286 +1101,84 @@ declare const urlPropTypeUtil: {
|
|
|
1133
1101
|
value: string | null;
|
|
1134
1102
|
disabled?: boolean | undefined;
|
|
1135
1103
|
}>;
|
|
1104
|
+
key: TKey;
|
|
1136
1105
|
};
|
|
1137
1106
|
type UrlPropValue = z.infer<typeof urlPropTypeUtil.schema>;
|
|
1138
1107
|
|
|
1139
|
-
declare const colorGradientPropTypeUtil: {
|
|
1140
|
-
extract: (prop: unknown) => {
|
|
1141
|
-
color?: any;
|
|
1142
|
-
} | null;
|
|
1143
|
-
isValid: (prop: unknown) => prop is TransformablePropValue$1<"background-overlay", {
|
|
1144
|
-
color?: any;
|
|
1145
|
-
}>;
|
|
1146
|
-
create: {
|
|
1147
|
-
(value: {
|
|
1148
|
-
color?: any;
|
|
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
|
-
}>;
|
|
1157
|
-
(value: (prev?: {
|
|
1158
|
-
color?: any;
|
|
1159
|
-
} | undefined) => {
|
|
1160
|
-
color?: any;
|
|
1161
|
-
}, createOptions: CreateOptions): TransformablePropValue$1<"background-overlay", {
|
|
1162
|
-
color?: any;
|
|
1163
|
-
}>;
|
|
1164
|
-
};
|
|
1165
|
-
schema: z.ZodObject<{
|
|
1166
|
-
$$type: z.ZodLiteral<"background-overlay">;
|
|
1167
|
-
value: z.ZodType<{
|
|
1168
|
-
color?: any;
|
|
1169
|
-
}, z.ZodTypeDef, {
|
|
1170
|
-
color?: any;
|
|
1171
|
-
}>;
|
|
1172
|
-
disabled: z.ZodOptional<z.ZodBoolean>;
|
|
1173
|
-
}, "strict", z.ZodTypeAny, {
|
|
1174
|
-
$$type: "background-overlay";
|
|
1175
|
-
value: {
|
|
1176
|
-
color?: any;
|
|
1177
|
-
};
|
|
1178
|
-
disabled?: boolean | undefined;
|
|
1179
|
-
}, {
|
|
1180
|
-
$$type: "background-overlay";
|
|
1181
|
-
value: {
|
|
1182
|
-
color?: any;
|
|
1183
|
-
};
|
|
1184
|
-
disabled?: boolean | undefined;
|
|
1185
|
-
}>;
|
|
1186
|
-
};
|
|
1187
|
-
type ColorGradientPropValue = z.infer<typeof colorGradientPropTypeUtil.schema>;
|
|
1188
|
-
|
|
1189
|
-
declare const backgroundImagePropTypeUtil: {
|
|
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";
|
|
1199
|
-
value: {
|
|
1200
|
-
color?: any;
|
|
1201
|
-
};
|
|
1202
|
-
disabled?: boolean | undefined;
|
|
1203
|
-
}[]>;
|
|
1204
|
-
create: {
|
|
1205
|
-
(value: {
|
|
1206
|
-
$$type: "background-overlay";
|
|
1207
|
-
value: {
|
|
1208
|
-
color?: any;
|
|
1209
|
-
};
|
|
1210
|
-
disabled?: boolean | undefined;
|
|
1211
|
-
}[]): TransformablePropValue$1<"background-image", {
|
|
1212
|
-
$$type: "background-overlay";
|
|
1213
|
-
value: {
|
|
1214
|
-
color?: any;
|
|
1215
|
-
};
|
|
1216
|
-
disabled?: boolean | undefined;
|
|
1217
|
-
}[]>;
|
|
1218
|
-
(value: {
|
|
1219
|
-
$$type: "background-overlay";
|
|
1220
|
-
value: {
|
|
1221
|
-
color?: any;
|
|
1222
|
-
};
|
|
1223
|
-
disabled?: boolean | undefined;
|
|
1224
|
-
}[], createOptions?: CreateOptions): TransformablePropValue$1<"background-image", {
|
|
1225
|
-
$$type: "background-overlay";
|
|
1226
|
-
value: {
|
|
1227
|
-
color?: any;
|
|
1228
|
-
};
|
|
1229
|
-
disabled?: boolean | undefined;
|
|
1230
|
-
}[]>;
|
|
1231
|
-
(value: (prev?: {
|
|
1232
|
-
$$type: "background-overlay";
|
|
1233
|
-
value: {
|
|
1234
|
-
color?: any;
|
|
1235
|
-
};
|
|
1236
|
-
disabled?: boolean | undefined;
|
|
1237
|
-
}[] | undefined) => {
|
|
1238
|
-
$$type: "background-overlay";
|
|
1239
|
-
value: {
|
|
1240
|
-
color?: any;
|
|
1241
|
-
};
|
|
1242
|
-
disabled?: boolean | undefined;
|
|
1243
|
-
}[], createOptions: CreateOptions): TransformablePropValue$1<"background-image", {
|
|
1244
|
-
$$type: "background-overlay";
|
|
1245
|
-
value: {
|
|
1246
|
-
color?: any;
|
|
1247
|
-
};
|
|
1248
|
-
disabled?: boolean | undefined;
|
|
1249
|
-
}[]>;
|
|
1250
|
-
};
|
|
1251
|
-
schema: z.ZodObject<{
|
|
1252
|
-
$$type: z.ZodLiteral<"background-image">;
|
|
1253
|
-
value: z.ZodType<{
|
|
1254
|
-
$$type: "background-overlay";
|
|
1255
|
-
value: {
|
|
1256
|
-
color?: any;
|
|
1257
|
-
};
|
|
1258
|
-
disabled?: boolean | undefined;
|
|
1259
|
-
}[], z.ZodTypeDef, {
|
|
1260
|
-
$$type: "background-overlay";
|
|
1261
|
-
value: {
|
|
1262
|
-
color?: any;
|
|
1263
|
-
};
|
|
1264
|
-
disabled?: boolean | undefined;
|
|
1265
|
-
}[]>;
|
|
1266
|
-
disabled: z.ZodOptional<z.ZodBoolean>;
|
|
1267
|
-
}, "strict", z.ZodTypeAny, {
|
|
1268
|
-
$$type: "background-image";
|
|
1269
|
-
value: {
|
|
1270
|
-
$$type: "background-overlay";
|
|
1271
|
-
value: {
|
|
1272
|
-
color?: any;
|
|
1273
|
-
};
|
|
1274
|
-
disabled?: boolean | undefined;
|
|
1275
|
-
}[];
|
|
1276
|
-
disabled?: boolean | undefined;
|
|
1277
|
-
}, {
|
|
1278
|
-
$$type: "background-image";
|
|
1279
|
-
value: {
|
|
1280
|
-
$$type: "background-overlay";
|
|
1281
|
-
value: {
|
|
1282
|
-
color?: any;
|
|
1283
|
-
};
|
|
1284
|
-
disabled?: boolean | undefined;
|
|
1285
|
-
}[];
|
|
1286
|
-
disabled?: boolean | undefined;
|
|
1287
|
-
}>;
|
|
1288
|
-
};
|
|
1289
|
-
type backgroundImageTypePropValue = z.infer<typeof backgroundImagePropTypeUtil.schema>;
|
|
1290
|
-
|
|
1291
1108
|
declare const linkPropTypeUtil: {
|
|
1292
1109
|
extract: (prop: unknown) => {
|
|
1293
|
-
enabled
|
|
1294
|
-
href
|
|
1295
|
-
|
|
1296
|
-
value: string | null;
|
|
1297
|
-
disabled?: boolean | undefined;
|
|
1298
|
-
};
|
|
1299
|
-
isTargetBlank: boolean;
|
|
1110
|
+
enabled?: any;
|
|
1111
|
+
href?: any;
|
|
1112
|
+
isTargetBlank?: any;
|
|
1300
1113
|
} | null;
|
|
1301
1114
|
isValid: (prop: unknown) => prop is TransformablePropValue$1<"link", {
|
|
1302
|
-
enabled
|
|
1303
|
-
href
|
|
1304
|
-
|
|
1305
|
-
value: string | null;
|
|
1306
|
-
disabled?: boolean | undefined;
|
|
1307
|
-
};
|
|
1308
|
-
isTargetBlank: boolean;
|
|
1115
|
+
enabled?: any;
|
|
1116
|
+
href?: any;
|
|
1117
|
+
isTargetBlank?: any;
|
|
1309
1118
|
}>;
|
|
1310
1119
|
create: {
|
|
1311
1120
|
(value: {
|
|
1312
|
-
enabled
|
|
1313
|
-
href
|
|
1314
|
-
|
|
1315
|
-
value: string | null;
|
|
1316
|
-
disabled?: boolean | undefined;
|
|
1317
|
-
};
|
|
1318
|
-
isTargetBlank: boolean;
|
|
1121
|
+
enabled?: any;
|
|
1122
|
+
href?: any;
|
|
1123
|
+
isTargetBlank?: any;
|
|
1319
1124
|
}): TransformablePropValue$1<"link", {
|
|
1320
|
-
enabled
|
|
1321
|
-
href
|
|
1322
|
-
|
|
1323
|
-
value: string | null;
|
|
1324
|
-
disabled?: boolean | undefined;
|
|
1325
|
-
};
|
|
1326
|
-
isTargetBlank: boolean;
|
|
1125
|
+
enabled?: any;
|
|
1126
|
+
href?: any;
|
|
1127
|
+
isTargetBlank?: any;
|
|
1327
1128
|
}>;
|
|
1328
1129
|
(value: {
|
|
1329
|
-
enabled
|
|
1330
|
-
href
|
|
1331
|
-
|
|
1332
|
-
value: string | null;
|
|
1333
|
-
disabled?: boolean | undefined;
|
|
1334
|
-
};
|
|
1335
|
-
isTargetBlank: boolean;
|
|
1130
|
+
enabled?: any;
|
|
1131
|
+
href?: any;
|
|
1132
|
+
isTargetBlank?: any;
|
|
1336
1133
|
}, createOptions?: CreateOptions): TransformablePropValue$1<"link", {
|
|
1337
|
-
enabled
|
|
1338
|
-
href
|
|
1339
|
-
|
|
1340
|
-
value: string | null;
|
|
1341
|
-
disabled?: boolean | undefined;
|
|
1342
|
-
};
|
|
1343
|
-
isTargetBlank: boolean;
|
|
1134
|
+
enabled?: any;
|
|
1135
|
+
href?: any;
|
|
1136
|
+
isTargetBlank?: any;
|
|
1344
1137
|
}>;
|
|
1345
1138
|
(value: (prev?: {
|
|
1346
|
-
enabled
|
|
1347
|
-
href
|
|
1348
|
-
|
|
1349
|
-
value: string | null;
|
|
1350
|
-
disabled?: boolean | undefined;
|
|
1351
|
-
};
|
|
1352
|
-
isTargetBlank: boolean;
|
|
1139
|
+
enabled?: any;
|
|
1140
|
+
href?: any;
|
|
1141
|
+
isTargetBlank?: any;
|
|
1353
1142
|
} | undefined) => {
|
|
1354
|
-
enabled
|
|
1355
|
-
href
|
|
1356
|
-
|
|
1357
|
-
value: string | null;
|
|
1358
|
-
disabled?: boolean | undefined;
|
|
1359
|
-
};
|
|
1360
|
-
isTargetBlank: boolean;
|
|
1143
|
+
enabled?: any;
|
|
1144
|
+
href?: any;
|
|
1145
|
+
isTargetBlank?: any;
|
|
1361
1146
|
}, createOptions: CreateOptions): TransformablePropValue$1<"link", {
|
|
1362
|
-
enabled
|
|
1363
|
-
href
|
|
1364
|
-
|
|
1365
|
-
value: string | null;
|
|
1366
|
-
disabled?: boolean | undefined;
|
|
1367
|
-
};
|
|
1368
|
-
isTargetBlank: boolean;
|
|
1147
|
+
enabled?: any;
|
|
1148
|
+
href?: any;
|
|
1149
|
+
isTargetBlank?: any;
|
|
1369
1150
|
}>;
|
|
1370
1151
|
};
|
|
1371
1152
|
schema: z.ZodObject<{
|
|
1372
1153
|
$$type: z.ZodLiteral<"link">;
|
|
1373
1154
|
value: z.ZodType<{
|
|
1374
|
-
enabled
|
|
1375
|
-
href
|
|
1376
|
-
|
|
1377
|
-
value: string | null;
|
|
1378
|
-
disabled?: boolean | undefined;
|
|
1379
|
-
};
|
|
1380
|
-
isTargetBlank: boolean;
|
|
1155
|
+
enabled?: any;
|
|
1156
|
+
href?: any;
|
|
1157
|
+
isTargetBlank?: any;
|
|
1381
1158
|
}, z.ZodTypeDef, {
|
|
1382
|
-
enabled
|
|
1383
|
-
href
|
|
1384
|
-
|
|
1385
|
-
value: string | null;
|
|
1386
|
-
disabled?: boolean | undefined;
|
|
1387
|
-
};
|
|
1388
|
-
isTargetBlank: boolean;
|
|
1159
|
+
enabled?: any;
|
|
1160
|
+
href?: any;
|
|
1161
|
+
isTargetBlank?: any;
|
|
1389
1162
|
}>;
|
|
1390
1163
|
disabled: z.ZodOptional<z.ZodBoolean>;
|
|
1391
1164
|
}, "strict", z.ZodTypeAny, {
|
|
1392
1165
|
$$type: "link";
|
|
1393
1166
|
value: {
|
|
1394
|
-
enabled
|
|
1395
|
-
href
|
|
1396
|
-
|
|
1397
|
-
value: string | null;
|
|
1398
|
-
disabled?: boolean | undefined;
|
|
1399
|
-
};
|
|
1400
|
-
isTargetBlank: boolean;
|
|
1167
|
+
enabled?: any;
|
|
1168
|
+
href?: any;
|
|
1169
|
+
isTargetBlank?: any;
|
|
1401
1170
|
};
|
|
1402
1171
|
disabled?: boolean | undefined;
|
|
1403
1172
|
}, {
|
|
1404
1173
|
$$type: "link";
|
|
1405
1174
|
value: {
|
|
1406
|
-
enabled
|
|
1407
|
-
href
|
|
1408
|
-
|
|
1409
|
-
value: string | null;
|
|
1410
|
-
disabled?: boolean | undefined;
|
|
1411
|
-
};
|
|
1412
|
-
isTargetBlank: boolean;
|
|
1175
|
+
enabled?: any;
|
|
1176
|
+
href?: any;
|
|
1177
|
+
isTargetBlank?: any;
|
|
1413
1178
|
};
|
|
1414
1179
|
disabled?: boolean | undefined;
|
|
1415
1180
|
}>;
|
|
1181
|
+
key: TKey;
|
|
1416
1182
|
};
|
|
1417
1183
|
type LinkPropValue = z.infer<typeof linkPropTypeUtil.schema>;
|
|
1418
1184
|
|
|
@@ -1489,9 +1255,318 @@ declare const gapPropTypeUtil: {
|
|
|
1489
1255
|
};
|
|
1490
1256
|
disabled?: boolean | undefined;
|
|
1491
1257
|
}>;
|
|
1258
|
+
key: TKey;
|
|
1492
1259
|
};
|
|
1493
1260
|
type GapPropValue = z.infer<typeof gapPropTypeUtil.schema>;
|
|
1494
1261
|
|
|
1262
|
+
declare const backgroundPropTypeUtil: {
|
|
1263
|
+
extract: (prop: unknown) => {
|
|
1264
|
+
color?: any;
|
|
1265
|
+
'background-overlay'?: any;
|
|
1266
|
+
} | null;
|
|
1267
|
+
isValid: (prop: unknown) => prop is TransformablePropValue$1<"background", {
|
|
1268
|
+
color?: any;
|
|
1269
|
+
'background-overlay'?: any;
|
|
1270
|
+
}>;
|
|
1271
|
+
create: {
|
|
1272
|
+
(value: {
|
|
1273
|
+
color?: any;
|
|
1274
|
+
'background-overlay'?: any;
|
|
1275
|
+
}): TransformablePropValue$1<"background", {
|
|
1276
|
+
color?: any;
|
|
1277
|
+
'background-overlay'?: any;
|
|
1278
|
+
}>;
|
|
1279
|
+
(value: {
|
|
1280
|
+
color?: any;
|
|
1281
|
+
'background-overlay'?: any;
|
|
1282
|
+
}, createOptions?: CreateOptions): TransformablePropValue$1<"background", {
|
|
1283
|
+
color?: any;
|
|
1284
|
+
'background-overlay'?: any;
|
|
1285
|
+
}>;
|
|
1286
|
+
(value: (prev?: {
|
|
1287
|
+
color?: any;
|
|
1288
|
+
'background-overlay'?: any;
|
|
1289
|
+
} | undefined) => {
|
|
1290
|
+
color?: any;
|
|
1291
|
+
'background-overlay'?: any;
|
|
1292
|
+
}, createOptions: CreateOptions): TransformablePropValue$1<"background", {
|
|
1293
|
+
color?: any;
|
|
1294
|
+
'background-overlay'?: any;
|
|
1295
|
+
}>;
|
|
1296
|
+
};
|
|
1297
|
+
schema: z.ZodObject<{
|
|
1298
|
+
$$type: z.ZodLiteral<"background">;
|
|
1299
|
+
value: z.ZodType<{
|
|
1300
|
+
color?: any;
|
|
1301
|
+
'background-overlay'?: any;
|
|
1302
|
+
}, z.ZodTypeDef, {
|
|
1303
|
+
color?: any;
|
|
1304
|
+
'background-overlay'?: any;
|
|
1305
|
+
}>;
|
|
1306
|
+
disabled: z.ZodOptional<z.ZodBoolean>;
|
|
1307
|
+
}, "strict", z.ZodTypeAny, {
|
|
1308
|
+
$$type: "background";
|
|
1309
|
+
value: {
|
|
1310
|
+
color?: any;
|
|
1311
|
+
'background-overlay'?: any;
|
|
1312
|
+
};
|
|
1313
|
+
disabled?: boolean | undefined;
|
|
1314
|
+
}, {
|
|
1315
|
+
$$type: "background";
|
|
1316
|
+
value: {
|
|
1317
|
+
color?: any;
|
|
1318
|
+
'background-overlay'?: any;
|
|
1319
|
+
};
|
|
1320
|
+
disabled?: boolean | undefined;
|
|
1321
|
+
}>;
|
|
1322
|
+
key: TKey;
|
|
1323
|
+
};
|
|
1324
|
+
type BackgroundPropValue = z.infer<typeof backgroundPropTypeUtil.schema>;
|
|
1325
|
+
|
|
1326
|
+
declare const backgroundOverlayItem: z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
|
|
1327
|
+
$$type: z.ZodLiteral<"background-color-overlay">;
|
|
1328
|
+
value: z.ZodType<string, z.ZodTypeDef, string>;
|
|
1329
|
+
disabled: z.ZodOptional<z.ZodBoolean>;
|
|
1330
|
+
}, "strict", z.ZodTypeAny, {
|
|
1331
|
+
$$type: "background-color-overlay";
|
|
1332
|
+
value: string;
|
|
1333
|
+
disabled?: boolean | undefined;
|
|
1334
|
+
}, {
|
|
1335
|
+
$$type: "background-color-overlay";
|
|
1336
|
+
value: string;
|
|
1337
|
+
disabled?: boolean | undefined;
|
|
1338
|
+
}>, z.ZodObject<{
|
|
1339
|
+
$$type: z.ZodLiteral<"background-gradient-overlay">;
|
|
1340
|
+
value: z.ZodType<any, z.ZodTypeDef, any>;
|
|
1341
|
+
disabled: z.ZodOptional<z.ZodBoolean>;
|
|
1342
|
+
}, "strict", z.ZodTypeAny, {
|
|
1343
|
+
$$type: "background-gradient-overlay";
|
|
1344
|
+
value?: any;
|
|
1345
|
+
disabled?: boolean | undefined;
|
|
1346
|
+
}, {
|
|
1347
|
+
$$type: "background-gradient-overlay";
|
|
1348
|
+
value?: any;
|
|
1349
|
+
disabled?: boolean | undefined;
|
|
1350
|
+
}>]>, z.ZodObject<{
|
|
1351
|
+
$$type: z.ZodLiteral<"background-image-overlay">;
|
|
1352
|
+
value: z.ZodType<any, z.ZodTypeDef, any>;
|
|
1353
|
+
disabled: z.ZodOptional<z.ZodBoolean>;
|
|
1354
|
+
}, "strict", z.ZodTypeAny, {
|
|
1355
|
+
$$type: "background-image-overlay";
|
|
1356
|
+
value?: any;
|
|
1357
|
+
disabled?: boolean | undefined;
|
|
1358
|
+
}, {
|
|
1359
|
+
$$type: "background-image-overlay";
|
|
1360
|
+
value?: any;
|
|
1361
|
+
disabled?: boolean | undefined;
|
|
1362
|
+
}>]>;
|
|
1363
|
+
declare const backgroundOverlayPropTypeUtil: {
|
|
1364
|
+
extract: (prop: unknown) => ({
|
|
1365
|
+
$$type: "background-color-overlay";
|
|
1366
|
+
value: string;
|
|
1367
|
+
disabled?: boolean | undefined;
|
|
1368
|
+
} | {
|
|
1369
|
+
$$type: "background-gradient-overlay";
|
|
1370
|
+
value?: any;
|
|
1371
|
+
disabled?: boolean | undefined;
|
|
1372
|
+
} | {
|
|
1373
|
+
$$type: "background-image-overlay";
|
|
1374
|
+
value?: any;
|
|
1375
|
+
disabled?: boolean | undefined;
|
|
1376
|
+
})[] | null;
|
|
1377
|
+
isValid: (prop: unknown) => prop is TransformablePropValue$1<"background-overlay", ({
|
|
1378
|
+
$$type: "background-color-overlay";
|
|
1379
|
+
value: string;
|
|
1380
|
+
disabled?: boolean | undefined;
|
|
1381
|
+
} | {
|
|
1382
|
+
$$type: "background-gradient-overlay";
|
|
1383
|
+
value?: any;
|
|
1384
|
+
disabled?: boolean | undefined;
|
|
1385
|
+
} | {
|
|
1386
|
+
$$type: "background-image-overlay";
|
|
1387
|
+
value?: any;
|
|
1388
|
+
disabled?: boolean | undefined;
|
|
1389
|
+
})[]>;
|
|
1390
|
+
create: {
|
|
1391
|
+
(value: ({
|
|
1392
|
+
$$type: "background-color-overlay";
|
|
1393
|
+
value: string;
|
|
1394
|
+
disabled?: boolean | undefined;
|
|
1395
|
+
} | {
|
|
1396
|
+
$$type: "background-gradient-overlay";
|
|
1397
|
+
value?: any;
|
|
1398
|
+
disabled?: boolean | undefined;
|
|
1399
|
+
} | {
|
|
1400
|
+
$$type: "background-image-overlay";
|
|
1401
|
+
value?: any;
|
|
1402
|
+
disabled?: boolean | undefined;
|
|
1403
|
+
})[]): TransformablePropValue$1<"background-overlay", ({
|
|
1404
|
+
$$type: "background-color-overlay";
|
|
1405
|
+
value: string;
|
|
1406
|
+
disabled?: boolean | undefined;
|
|
1407
|
+
} | {
|
|
1408
|
+
$$type: "background-gradient-overlay";
|
|
1409
|
+
value?: any;
|
|
1410
|
+
disabled?: boolean | undefined;
|
|
1411
|
+
} | {
|
|
1412
|
+
$$type: "background-image-overlay";
|
|
1413
|
+
value?: any;
|
|
1414
|
+
disabled?: boolean | undefined;
|
|
1415
|
+
})[]>;
|
|
1416
|
+
(value: ({
|
|
1417
|
+
$$type: "background-color-overlay";
|
|
1418
|
+
value: string;
|
|
1419
|
+
disabled?: boolean | undefined;
|
|
1420
|
+
} | {
|
|
1421
|
+
$$type: "background-gradient-overlay";
|
|
1422
|
+
value?: any;
|
|
1423
|
+
disabled?: boolean | undefined;
|
|
1424
|
+
} | {
|
|
1425
|
+
$$type: "background-image-overlay";
|
|
1426
|
+
value?: any;
|
|
1427
|
+
disabled?: boolean | undefined;
|
|
1428
|
+
})[], createOptions?: CreateOptions): TransformablePropValue$1<"background-overlay", ({
|
|
1429
|
+
$$type: "background-color-overlay";
|
|
1430
|
+
value: string;
|
|
1431
|
+
disabled?: boolean | undefined;
|
|
1432
|
+
} | {
|
|
1433
|
+
$$type: "background-gradient-overlay";
|
|
1434
|
+
value?: any;
|
|
1435
|
+
disabled?: boolean | undefined;
|
|
1436
|
+
} | {
|
|
1437
|
+
$$type: "background-image-overlay";
|
|
1438
|
+
value?: any;
|
|
1439
|
+
disabled?: boolean | undefined;
|
|
1440
|
+
})[]>;
|
|
1441
|
+
(value: (prev?: ({
|
|
1442
|
+
$$type: "background-color-overlay";
|
|
1443
|
+
value: string;
|
|
1444
|
+
disabled?: boolean | undefined;
|
|
1445
|
+
} | {
|
|
1446
|
+
$$type: "background-gradient-overlay";
|
|
1447
|
+
value?: any;
|
|
1448
|
+
disabled?: boolean | undefined;
|
|
1449
|
+
} | {
|
|
1450
|
+
$$type: "background-image-overlay";
|
|
1451
|
+
value?: any;
|
|
1452
|
+
disabled?: boolean | undefined;
|
|
1453
|
+
})[] | undefined) => ({
|
|
1454
|
+
$$type: "background-color-overlay";
|
|
1455
|
+
value: string;
|
|
1456
|
+
disabled?: boolean | undefined;
|
|
1457
|
+
} | {
|
|
1458
|
+
$$type: "background-gradient-overlay";
|
|
1459
|
+
value?: any;
|
|
1460
|
+
disabled?: boolean | undefined;
|
|
1461
|
+
} | {
|
|
1462
|
+
$$type: "background-image-overlay";
|
|
1463
|
+
value?: any;
|
|
1464
|
+
disabled?: boolean | undefined;
|
|
1465
|
+
})[], createOptions: CreateOptions): TransformablePropValue$1<"background-overlay", ({
|
|
1466
|
+
$$type: "background-color-overlay";
|
|
1467
|
+
value: string;
|
|
1468
|
+
disabled?: boolean | undefined;
|
|
1469
|
+
} | {
|
|
1470
|
+
$$type: "background-gradient-overlay";
|
|
1471
|
+
value?: any;
|
|
1472
|
+
disabled?: boolean | undefined;
|
|
1473
|
+
} | {
|
|
1474
|
+
$$type: "background-image-overlay";
|
|
1475
|
+
value?: any;
|
|
1476
|
+
disabled?: boolean | undefined;
|
|
1477
|
+
})[]>;
|
|
1478
|
+
};
|
|
1479
|
+
schema: z.ZodObject<{
|
|
1480
|
+
$$type: z.ZodLiteral<"background-overlay">;
|
|
1481
|
+
value: z.ZodType<({
|
|
1482
|
+
$$type: "background-color-overlay";
|
|
1483
|
+
value: string;
|
|
1484
|
+
disabled?: boolean | undefined;
|
|
1485
|
+
} | {
|
|
1486
|
+
$$type: "background-gradient-overlay";
|
|
1487
|
+
value?: any;
|
|
1488
|
+
disabled?: boolean | undefined;
|
|
1489
|
+
} | {
|
|
1490
|
+
$$type: "background-image-overlay";
|
|
1491
|
+
value?: any;
|
|
1492
|
+
disabled?: boolean | undefined;
|
|
1493
|
+
})[], z.ZodTypeDef, ({
|
|
1494
|
+
$$type: "background-color-overlay";
|
|
1495
|
+
value: string;
|
|
1496
|
+
disabled?: boolean | undefined;
|
|
1497
|
+
} | {
|
|
1498
|
+
$$type: "background-gradient-overlay";
|
|
1499
|
+
value?: any;
|
|
1500
|
+
disabled?: boolean | undefined;
|
|
1501
|
+
} | {
|
|
1502
|
+
$$type: "background-image-overlay";
|
|
1503
|
+
value?: any;
|
|
1504
|
+
disabled?: boolean | undefined;
|
|
1505
|
+
})[]>;
|
|
1506
|
+
disabled: z.ZodOptional<z.ZodBoolean>;
|
|
1507
|
+
}, "strict", z.ZodTypeAny, {
|
|
1508
|
+
$$type: "background-overlay";
|
|
1509
|
+
value: ({
|
|
1510
|
+
$$type: "background-color-overlay";
|
|
1511
|
+
value: string;
|
|
1512
|
+
disabled?: boolean | undefined;
|
|
1513
|
+
} | {
|
|
1514
|
+
$$type: "background-gradient-overlay";
|
|
1515
|
+
value?: any;
|
|
1516
|
+
disabled?: boolean | undefined;
|
|
1517
|
+
} | {
|
|
1518
|
+
$$type: "background-image-overlay";
|
|
1519
|
+
value?: any;
|
|
1520
|
+
disabled?: boolean | undefined;
|
|
1521
|
+
})[];
|
|
1522
|
+
disabled?: boolean | undefined;
|
|
1523
|
+
}, {
|
|
1524
|
+
$$type: "background-overlay";
|
|
1525
|
+
value: ({
|
|
1526
|
+
$$type: "background-color-overlay";
|
|
1527
|
+
value: string;
|
|
1528
|
+
disabled?: boolean | undefined;
|
|
1529
|
+
} | {
|
|
1530
|
+
$$type: "background-gradient-overlay";
|
|
1531
|
+
value?: any;
|
|
1532
|
+
disabled?: boolean | undefined;
|
|
1533
|
+
} | {
|
|
1534
|
+
$$type: "background-image-overlay";
|
|
1535
|
+
value?: any;
|
|
1536
|
+
disabled?: boolean | undefined;
|
|
1537
|
+
})[];
|
|
1538
|
+
disabled?: boolean | undefined;
|
|
1539
|
+
}>;
|
|
1540
|
+
key: TKey;
|
|
1541
|
+
};
|
|
1542
|
+
type BackgroundOverlayPropValue = z.infer<typeof backgroundOverlayPropTypeUtil.schema>;
|
|
1543
|
+
type BackgroundOverlayItemPropValue = z.infer<typeof backgroundOverlayItem>;
|
|
1544
|
+
|
|
1545
|
+
declare const backgroundColorOverlayPropTypeUtil: {
|
|
1546
|
+
extract: (prop: unknown) => string | null;
|
|
1547
|
+
isValid: (prop: unknown) => prop is TransformablePropValue$1<"background-color-overlay", string>;
|
|
1548
|
+
create: {
|
|
1549
|
+
(value: string): TransformablePropValue$1<"background-color-overlay", string>;
|
|
1550
|
+
(value: string, createOptions?: CreateOptions): TransformablePropValue$1<"background-color-overlay", string>;
|
|
1551
|
+
(value: (prev?: string | undefined) => string, createOptions: CreateOptions): TransformablePropValue$1<"background-color-overlay", string>;
|
|
1552
|
+
};
|
|
1553
|
+
schema: z.ZodObject<{
|
|
1554
|
+
$$type: z.ZodLiteral<"background-color-overlay">;
|
|
1555
|
+
value: z.ZodType<string, z.ZodTypeDef, string>;
|
|
1556
|
+
disabled: z.ZodOptional<z.ZodBoolean>;
|
|
1557
|
+
}, "strict", z.ZodTypeAny, {
|
|
1558
|
+
$$type: "background-color-overlay";
|
|
1559
|
+
value: string;
|
|
1560
|
+
disabled?: boolean | undefined;
|
|
1561
|
+
}, {
|
|
1562
|
+
$$type: "background-color-overlay";
|
|
1563
|
+
value: string;
|
|
1564
|
+
disabled?: boolean | undefined;
|
|
1565
|
+
}>;
|
|
1566
|
+
key: TKey;
|
|
1567
|
+
};
|
|
1568
|
+
type BackgroundColorOverlayPropValue = z.infer<typeof backgroundColorOverlayPropTypeUtil.schema>;
|
|
1569
|
+
|
|
1495
1570
|
declare const transformableSchema: z.ZodObject<{
|
|
1496
1571
|
$$type: z.ZodString;
|
|
1497
1572
|
value: z.ZodAny;
|
|
@@ -1508,4 +1583,4 @@ declare const transformableSchema: z.ZodObject<{
|
|
|
1508
1583
|
type TransformablePropValue = z.infer<typeof transformableSchema>;
|
|
1509
1584
|
declare const isTransformable: (value: unknown) => value is TransformablePropValue;
|
|
1510
1585
|
|
|
1511
|
-
export { type ArrayPropType, type
|
|
1586
|
+
export { type ArrayPropType, type ArrayPropValue, 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 ObjectPropValue, type PlainPropType, type PlainPropValue, type PlainProps, type PropKey, type PropType, type PropTypeUtil, type PropValue, type Props, type PropsSchema, 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 };
|