@elementor/editor-props 0.5.0 → 0.5.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +6 -0
- package/dist/index.d.mts +332 -229
- package/dist/index.d.ts +332 -229
- package/dist/index.js +81 -76
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +79 -74
- 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/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
|
@@ -89,78 +89,28 @@ declare function createPropUtils<TKey extends string, TValue extends PropValue>(
|
|
|
89
89
|
}>[k_1]; } : never>;
|
|
90
90
|
};
|
|
91
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
|
-
|
|
142
92
|
declare const boxShadowPropTypeUtil: {
|
|
143
93
|
extract: (prop: unknown) => {
|
|
144
94
|
$$type: "shadow";
|
|
145
95
|
value: {
|
|
146
|
-
color?: any;
|
|
147
96
|
position?: any;
|
|
148
97
|
hOffset?: any;
|
|
149
98
|
vOffset?: any;
|
|
150
99
|
blur?: any;
|
|
151
100
|
spread?: any;
|
|
101
|
+
color?: any;
|
|
152
102
|
};
|
|
153
103
|
disabled?: boolean | undefined;
|
|
154
104
|
}[] | null;
|
|
155
105
|
isValid: (prop: unknown) => prop is TransformablePropValue$1<"box-shadow", {
|
|
156
106
|
$$type: "shadow";
|
|
157
107
|
value: {
|
|
158
|
-
color?: any;
|
|
159
108
|
position?: any;
|
|
160
109
|
hOffset?: any;
|
|
161
110
|
vOffset?: any;
|
|
162
111
|
blur?: any;
|
|
163
112
|
spread?: any;
|
|
113
|
+
color?: any;
|
|
164
114
|
};
|
|
165
115
|
disabled?: boolean | undefined;
|
|
166
116
|
}[]>;
|
|
@@ -168,80 +118,80 @@ declare const boxShadowPropTypeUtil: {
|
|
|
168
118
|
(value: {
|
|
169
119
|
$$type: "shadow";
|
|
170
120
|
value: {
|
|
171
|
-
color?: any;
|
|
172
121
|
position?: any;
|
|
173
122
|
hOffset?: any;
|
|
174
123
|
vOffset?: any;
|
|
175
124
|
blur?: any;
|
|
176
125
|
spread?: any;
|
|
126
|
+
color?: any;
|
|
177
127
|
};
|
|
178
128
|
disabled?: boolean | undefined;
|
|
179
129
|
}[]): TransformablePropValue$1<"box-shadow", {
|
|
180
130
|
$$type: "shadow";
|
|
181
131
|
value: {
|
|
182
|
-
color?: any;
|
|
183
132
|
position?: any;
|
|
184
133
|
hOffset?: any;
|
|
185
134
|
vOffset?: any;
|
|
186
135
|
blur?: any;
|
|
187
136
|
spread?: any;
|
|
137
|
+
color?: any;
|
|
188
138
|
};
|
|
189
139
|
disabled?: boolean | undefined;
|
|
190
140
|
}[]>;
|
|
191
141
|
(value: {
|
|
192
142
|
$$type: "shadow";
|
|
193
143
|
value: {
|
|
194
|
-
color?: any;
|
|
195
144
|
position?: any;
|
|
196
145
|
hOffset?: any;
|
|
197
146
|
vOffset?: any;
|
|
198
147
|
blur?: any;
|
|
199
148
|
spread?: any;
|
|
149
|
+
color?: any;
|
|
200
150
|
};
|
|
201
151
|
disabled?: boolean | undefined;
|
|
202
152
|
}[], createOptions?: CreateOptions): TransformablePropValue$1<"box-shadow", {
|
|
203
153
|
$$type: "shadow";
|
|
204
154
|
value: {
|
|
205
|
-
color?: any;
|
|
206
155
|
position?: any;
|
|
207
156
|
hOffset?: any;
|
|
208
157
|
vOffset?: any;
|
|
209
158
|
blur?: any;
|
|
210
159
|
spread?: any;
|
|
160
|
+
color?: any;
|
|
211
161
|
};
|
|
212
162
|
disabled?: boolean | undefined;
|
|
213
163
|
}[]>;
|
|
214
164
|
(value: (prev?: {
|
|
215
165
|
$$type: "shadow";
|
|
216
166
|
value: {
|
|
217
|
-
color?: any;
|
|
218
167
|
position?: any;
|
|
219
168
|
hOffset?: any;
|
|
220
169
|
vOffset?: any;
|
|
221
170
|
blur?: any;
|
|
222
171
|
spread?: any;
|
|
172
|
+
color?: any;
|
|
223
173
|
};
|
|
224
174
|
disabled?: boolean | undefined;
|
|
225
175
|
}[] | undefined) => {
|
|
226
176
|
$$type: "shadow";
|
|
227
177
|
value: {
|
|
228
|
-
color?: any;
|
|
229
178
|
position?: any;
|
|
230
179
|
hOffset?: any;
|
|
231
180
|
vOffset?: any;
|
|
232
181
|
blur?: any;
|
|
233
182
|
spread?: any;
|
|
183
|
+
color?: any;
|
|
234
184
|
};
|
|
235
185
|
disabled?: boolean | undefined;
|
|
236
186
|
}[], createOptions: CreateOptions): TransformablePropValue$1<"box-shadow", {
|
|
237
187
|
$$type: "shadow";
|
|
238
188
|
value: {
|
|
239
|
-
color?: any;
|
|
240
189
|
position?: any;
|
|
241
190
|
hOffset?: any;
|
|
242
191
|
vOffset?: any;
|
|
243
192
|
blur?: any;
|
|
244
193
|
spread?: any;
|
|
194
|
+
color?: any;
|
|
245
195
|
};
|
|
246
196
|
disabled?: boolean | undefined;
|
|
247
197
|
}[]>;
|
|
@@ -251,23 +201,23 @@ declare const boxShadowPropTypeUtil: {
|
|
|
251
201
|
value: z.ZodType<{
|
|
252
202
|
$$type: "shadow";
|
|
253
203
|
value: {
|
|
254
|
-
color?: any;
|
|
255
204
|
position?: any;
|
|
256
205
|
hOffset?: any;
|
|
257
206
|
vOffset?: any;
|
|
258
207
|
blur?: any;
|
|
259
208
|
spread?: any;
|
|
209
|
+
color?: any;
|
|
260
210
|
};
|
|
261
211
|
disabled?: boolean | undefined;
|
|
262
212
|
}[], z.ZodTypeDef, {
|
|
263
213
|
$$type: "shadow";
|
|
264
214
|
value: {
|
|
265
|
-
color?: any;
|
|
266
215
|
position?: any;
|
|
267
216
|
hOffset?: any;
|
|
268
217
|
vOffset?: any;
|
|
269
218
|
blur?: any;
|
|
270
219
|
spread?: any;
|
|
220
|
+
color?: any;
|
|
271
221
|
};
|
|
272
222
|
disabled?: boolean | undefined;
|
|
273
223
|
}[]>;
|
|
@@ -277,12 +227,12 @@ declare const boxShadowPropTypeUtil: {
|
|
|
277
227
|
value: {
|
|
278
228
|
$$type: "shadow";
|
|
279
229
|
value: {
|
|
280
|
-
color?: any;
|
|
281
230
|
position?: any;
|
|
282
231
|
hOffset?: any;
|
|
283
232
|
vOffset?: any;
|
|
284
233
|
blur?: any;
|
|
285
234
|
spread?: any;
|
|
235
|
+
color?: any;
|
|
286
236
|
};
|
|
287
237
|
disabled?: boolean | undefined;
|
|
288
238
|
}[];
|
|
@@ -292,12 +242,12 @@ declare const boxShadowPropTypeUtil: {
|
|
|
292
242
|
value: {
|
|
293
243
|
$$type: "shadow";
|
|
294
244
|
value: {
|
|
295
|
-
color?: any;
|
|
296
245
|
position?: any;
|
|
297
246
|
hOffset?: any;
|
|
298
247
|
vOffset?: any;
|
|
299
248
|
blur?: any;
|
|
300
249
|
spread?: any;
|
|
250
|
+
color?: any;
|
|
301
251
|
};
|
|
302
252
|
disabled?: boolean | undefined;
|
|
303
253
|
}[];
|
|
@@ -849,113 +799,113 @@ type NumberPropValue = z.infer<typeof numberPropTypeUtil.schema>;
|
|
|
849
799
|
|
|
850
800
|
declare const shadowPropTypeUtil: {
|
|
851
801
|
extract: (prop: unknown) => {
|
|
852
|
-
color?: any;
|
|
853
802
|
position?: any;
|
|
854
803
|
hOffset?: any;
|
|
855
804
|
vOffset?: any;
|
|
856
805
|
blur?: any;
|
|
857
806
|
spread?: any;
|
|
807
|
+
color?: any;
|
|
858
808
|
} | null;
|
|
859
809
|
isValid: (prop: unknown) => prop is TransformablePropValue$1<"shadow", {
|
|
860
|
-
color?: any;
|
|
861
810
|
position?: any;
|
|
862
811
|
hOffset?: any;
|
|
863
812
|
vOffset?: any;
|
|
864
813
|
blur?: any;
|
|
865
814
|
spread?: any;
|
|
815
|
+
color?: any;
|
|
866
816
|
}>;
|
|
867
817
|
create: {
|
|
868
818
|
(value: {
|
|
869
|
-
color?: any;
|
|
870
819
|
position?: any;
|
|
871
820
|
hOffset?: any;
|
|
872
821
|
vOffset?: any;
|
|
873
822
|
blur?: any;
|
|
874
823
|
spread?: any;
|
|
875
|
-
}): TransformablePropValue$1<"shadow", {
|
|
876
824
|
color?: any;
|
|
825
|
+
}): TransformablePropValue$1<"shadow", {
|
|
877
826
|
position?: any;
|
|
878
827
|
hOffset?: any;
|
|
879
828
|
vOffset?: any;
|
|
880
829
|
blur?: any;
|
|
881
830
|
spread?: any;
|
|
831
|
+
color?: any;
|
|
882
832
|
}>;
|
|
883
833
|
(value: {
|
|
884
|
-
color?: any;
|
|
885
834
|
position?: any;
|
|
886
835
|
hOffset?: any;
|
|
887
836
|
vOffset?: any;
|
|
888
837
|
blur?: any;
|
|
889
838
|
spread?: any;
|
|
890
|
-
}, createOptions?: CreateOptions): TransformablePropValue$1<"shadow", {
|
|
891
839
|
color?: any;
|
|
840
|
+
}, createOptions?: CreateOptions): TransformablePropValue$1<"shadow", {
|
|
892
841
|
position?: any;
|
|
893
842
|
hOffset?: any;
|
|
894
843
|
vOffset?: any;
|
|
895
844
|
blur?: any;
|
|
896
845
|
spread?: any;
|
|
846
|
+
color?: any;
|
|
897
847
|
}>;
|
|
898
848
|
(value: (prev?: {
|
|
899
|
-
color?: any;
|
|
900
849
|
position?: any;
|
|
901
850
|
hOffset?: any;
|
|
902
851
|
vOffset?: any;
|
|
903
852
|
blur?: any;
|
|
904
853
|
spread?: any;
|
|
905
|
-
} | undefined) => {
|
|
906
854
|
color?: any;
|
|
855
|
+
} | undefined) => {
|
|
907
856
|
position?: any;
|
|
908
857
|
hOffset?: any;
|
|
909
858
|
vOffset?: any;
|
|
910
859
|
blur?: any;
|
|
911
860
|
spread?: any;
|
|
912
|
-
}, createOptions: CreateOptions): TransformablePropValue$1<"shadow", {
|
|
913
861
|
color?: any;
|
|
862
|
+
}, createOptions: CreateOptions): TransformablePropValue$1<"shadow", {
|
|
914
863
|
position?: any;
|
|
915
864
|
hOffset?: any;
|
|
916
865
|
vOffset?: any;
|
|
917
866
|
blur?: any;
|
|
918
867
|
spread?: any;
|
|
868
|
+
color?: any;
|
|
919
869
|
}>;
|
|
920
870
|
};
|
|
921
871
|
schema: z.ZodObject<{
|
|
922
872
|
$$type: z.ZodLiteral<"shadow">;
|
|
923
873
|
value: z.ZodType<{
|
|
924
|
-
color?: any;
|
|
925
874
|
position?: any;
|
|
926
875
|
hOffset?: any;
|
|
927
876
|
vOffset?: any;
|
|
928
877
|
blur?: any;
|
|
929
878
|
spread?: any;
|
|
930
|
-
}, z.ZodTypeDef, {
|
|
931
879
|
color?: any;
|
|
880
|
+
}, z.ZodTypeDef, {
|
|
932
881
|
position?: any;
|
|
933
882
|
hOffset?: any;
|
|
934
883
|
vOffset?: any;
|
|
935
884
|
blur?: any;
|
|
936
885
|
spread?: any;
|
|
886
|
+
color?: any;
|
|
937
887
|
}>;
|
|
938
888
|
disabled: z.ZodOptional<z.ZodBoolean>;
|
|
939
889
|
}, "strict", z.ZodTypeAny, {
|
|
940
890
|
$$type: "shadow";
|
|
941
891
|
value: {
|
|
942
|
-
color?: any;
|
|
943
892
|
position?: any;
|
|
944
893
|
hOffset?: any;
|
|
945
894
|
vOffset?: any;
|
|
946
895
|
blur?: any;
|
|
947
896
|
spread?: any;
|
|
897
|
+
color?: any;
|
|
948
898
|
};
|
|
949
899
|
disabled?: boolean | undefined;
|
|
950
900
|
}, {
|
|
951
901
|
$$type: "shadow";
|
|
952
902
|
value: {
|
|
953
|
-
color?: any;
|
|
954
903
|
position?: any;
|
|
955
904
|
hOffset?: any;
|
|
956
905
|
vOffset?: any;
|
|
957
906
|
blur?: any;
|
|
958
907
|
spread?: any;
|
|
908
|
+
color?: any;
|
|
959
909
|
};
|
|
960
910
|
disabled?: boolean | undefined;
|
|
961
911
|
}>;
|
|
@@ -1136,158 +1086,6 @@ declare const urlPropTypeUtil: {
|
|
|
1136
1086
|
};
|
|
1137
1087
|
type UrlPropValue = z.infer<typeof urlPropTypeUtil.schema>;
|
|
1138
1088
|
|
|
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
1089
|
declare const linkPropTypeUtil: {
|
|
1292
1090
|
extract: (prop: unknown) => {
|
|
1293
1091
|
enabled: boolean;
|
|
@@ -1492,6 +1290,311 @@ declare const gapPropTypeUtil: {
|
|
|
1492
1290
|
};
|
|
1493
1291
|
type GapPropValue = z.infer<typeof gapPropTypeUtil.schema>;
|
|
1494
1292
|
|
|
1293
|
+
declare const backgroundPropTypeUtil: {
|
|
1294
|
+
extract: (prop: unknown) => {
|
|
1295
|
+
color?: any;
|
|
1296
|
+
'background-overlay'?: any;
|
|
1297
|
+
} | null;
|
|
1298
|
+
isValid: (prop: unknown) => prop is TransformablePropValue$1<"background", {
|
|
1299
|
+
color?: any;
|
|
1300
|
+
'background-overlay'?: any;
|
|
1301
|
+
}>;
|
|
1302
|
+
create: {
|
|
1303
|
+
(value: {
|
|
1304
|
+
color?: any;
|
|
1305
|
+
'background-overlay'?: any;
|
|
1306
|
+
}): TransformablePropValue$1<"background", {
|
|
1307
|
+
color?: any;
|
|
1308
|
+
'background-overlay'?: any;
|
|
1309
|
+
}>;
|
|
1310
|
+
(value: {
|
|
1311
|
+
color?: any;
|
|
1312
|
+
'background-overlay'?: any;
|
|
1313
|
+
}, createOptions?: CreateOptions): TransformablePropValue$1<"background", {
|
|
1314
|
+
color?: any;
|
|
1315
|
+
'background-overlay'?: any;
|
|
1316
|
+
}>;
|
|
1317
|
+
(value: (prev?: {
|
|
1318
|
+
color?: any;
|
|
1319
|
+
'background-overlay'?: any;
|
|
1320
|
+
} | undefined) => {
|
|
1321
|
+
color?: any;
|
|
1322
|
+
'background-overlay'?: any;
|
|
1323
|
+
}, createOptions: CreateOptions): TransformablePropValue$1<"background", {
|
|
1324
|
+
color?: any;
|
|
1325
|
+
'background-overlay'?: any;
|
|
1326
|
+
}>;
|
|
1327
|
+
};
|
|
1328
|
+
schema: z.ZodObject<{
|
|
1329
|
+
$$type: z.ZodLiteral<"background">;
|
|
1330
|
+
value: z.ZodType<{
|
|
1331
|
+
color?: any;
|
|
1332
|
+
'background-overlay'?: any;
|
|
1333
|
+
}, z.ZodTypeDef, {
|
|
1334
|
+
color?: any;
|
|
1335
|
+
'background-overlay'?: any;
|
|
1336
|
+
}>;
|
|
1337
|
+
disabled: z.ZodOptional<z.ZodBoolean>;
|
|
1338
|
+
}, "strict", z.ZodTypeAny, {
|
|
1339
|
+
$$type: "background";
|
|
1340
|
+
value: {
|
|
1341
|
+
color?: any;
|
|
1342
|
+
'background-overlay'?: any;
|
|
1343
|
+
};
|
|
1344
|
+
disabled?: boolean | undefined;
|
|
1345
|
+
}, {
|
|
1346
|
+
$$type: "background";
|
|
1347
|
+
value: {
|
|
1348
|
+
color?: any;
|
|
1349
|
+
'background-overlay'?: any;
|
|
1350
|
+
};
|
|
1351
|
+
disabled?: boolean | undefined;
|
|
1352
|
+
}>;
|
|
1353
|
+
};
|
|
1354
|
+
type BackgroundPropValue = z.infer<typeof backgroundPropTypeUtil.schema>;
|
|
1355
|
+
|
|
1356
|
+
declare const backgroundOverlayItem: z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
|
|
1357
|
+
$$type: z.ZodLiteral<"background-color-overlay">;
|
|
1358
|
+
value: z.ZodType<string, z.ZodTypeDef, string>;
|
|
1359
|
+
disabled: z.ZodOptional<z.ZodBoolean>;
|
|
1360
|
+
}, "strict", z.ZodTypeAny, {
|
|
1361
|
+
$$type: "background-color-overlay";
|
|
1362
|
+
value: string;
|
|
1363
|
+
disabled?: boolean | undefined;
|
|
1364
|
+
}, {
|
|
1365
|
+
$$type: "background-color-overlay";
|
|
1366
|
+
value: string;
|
|
1367
|
+
disabled?: boolean | undefined;
|
|
1368
|
+
}>, z.ZodObject<{
|
|
1369
|
+
$$type: z.ZodLiteral<"background-gradient-overlay">;
|
|
1370
|
+
value: z.ZodType<any, z.ZodTypeDef, any>;
|
|
1371
|
+
disabled: z.ZodOptional<z.ZodBoolean>;
|
|
1372
|
+
}, "strict", z.ZodTypeAny, {
|
|
1373
|
+
$$type: "background-gradient-overlay";
|
|
1374
|
+
value?: any;
|
|
1375
|
+
disabled?: boolean | undefined;
|
|
1376
|
+
}, {
|
|
1377
|
+
$$type: "background-gradient-overlay";
|
|
1378
|
+
value?: any;
|
|
1379
|
+
disabled?: boolean | undefined;
|
|
1380
|
+
}>]>, z.ZodObject<{
|
|
1381
|
+
$$type: z.ZodLiteral<"background-image-overlay">;
|
|
1382
|
+
value: z.ZodType<any, z.ZodTypeDef, any>;
|
|
1383
|
+
disabled: z.ZodOptional<z.ZodBoolean>;
|
|
1384
|
+
}, "strict", z.ZodTypeAny, {
|
|
1385
|
+
$$type: "background-image-overlay";
|
|
1386
|
+
value?: any;
|
|
1387
|
+
disabled?: boolean | undefined;
|
|
1388
|
+
}, {
|
|
1389
|
+
$$type: "background-image-overlay";
|
|
1390
|
+
value?: any;
|
|
1391
|
+
disabled?: boolean | undefined;
|
|
1392
|
+
}>]>;
|
|
1393
|
+
declare const backgroundOverlayPropTypeUtil: {
|
|
1394
|
+
extract: (prop: unknown) => ({
|
|
1395
|
+
$$type: "background-color-overlay";
|
|
1396
|
+
value: string;
|
|
1397
|
+
disabled?: boolean | undefined;
|
|
1398
|
+
} | {
|
|
1399
|
+
$$type: "background-gradient-overlay";
|
|
1400
|
+
value?: any;
|
|
1401
|
+
disabled?: boolean | undefined;
|
|
1402
|
+
} | {
|
|
1403
|
+
$$type: "background-image-overlay";
|
|
1404
|
+
value?: any;
|
|
1405
|
+
disabled?: boolean | undefined;
|
|
1406
|
+
})[] | null;
|
|
1407
|
+
isValid: (prop: unknown) => prop is TransformablePropValue$1<"background-overlay", ({
|
|
1408
|
+
$$type: "background-color-overlay";
|
|
1409
|
+
value: string;
|
|
1410
|
+
disabled?: boolean | undefined;
|
|
1411
|
+
} | {
|
|
1412
|
+
$$type: "background-gradient-overlay";
|
|
1413
|
+
value?: any;
|
|
1414
|
+
disabled?: boolean | undefined;
|
|
1415
|
+
} | {
|
|
1416
|
+
$$type: "background-image-overlay";
|
|
1417
|
+
value?: any;
|
|
1418
|
+
disabled?: boolean | undefined;
|
|
1419
|
+
})[]>;
|
|
1420
|
+
create: {
|
|
1421
|
+
(value: ({
|
|
1422
|
+
$$type: "background-color-overlay";
|
|
1423
|
+
value: string;
|
|
1424
|
+
disabled?: boolean | undefined;
|
|
1425
|
+
} | {
|
|
1426
|
+
$$type: "background-gradient-overlay";
|
|
1427
|
+
value?: any;
|
|
1428
|
+
disabled?: boolean | undefined;
|
|
1429
|
+
} | {
|
|
1430
|
+
$$type: "background-image-overlay";
|
|
1431
|
+
value?: any;
|
|
1432
|
+
disabled?: boolean | undefined;
|
|
1433
|
+
})[]): TransformablePropValue$1<"background-overlay", ({
|
|
1434
|
+
$$type: "background-color-overlay";
|
|
1435
|
+
value: string;
|
|
1436
|
+
disabled?: boolean | undefined;
|
|
1437
|
+
} | {
|
|
1438
|
+
$$type: "background-gradient-overlay";
|
|
1439
|
+
value?: any;
|
|
1440
|
+
disabled?: boolean | undefined;
|
|
1441
|
+
} | {
|
|
1442
|
+
$$type: "background-image-overlay";
|
|
1443
|
+
value?: any;
|
|
1444
|
+
disabled?: boolean | undefined;
|
|
1445
|
+
})[]>;
|
|
1446
|
+
(value: ({
|
|
1447
|
+
$$type: "background-color-overlay";
|
|
1448
|
+
value: string;
|
|
1449
|
+
disabled?: boolean | undefined;
|
|
1450
|
+
} | {
|
|
1451
|
+
$$type: "background-gradient-overlay";
|
|
1452
|
+
value?: any;
|
|
1453
|
+
disabled?: boolean | undefined;
|
|
1454
|
+
} | {
|
|
1455
|
+
$$type: "background-image-overlay";
|
|
1456
|
+
value?: any;
|
|
1457
|
+
disabled?: boolean | undefined;
|
|
1458
|
+
})[], createOptions?: CreateOptions): TransformablePropValue$1<"background-overlay", ({
|
|
1459
|
+
$$type: "background-color-overlay";
|
|
1460
|
+
value: string;
|
|
1461
|
+
disabled?: boolean | undefined;
|
|
1462
|
+
} | {
|
|
1463
|
+
$$type: "background-gradient-overlay";
|
|
1464
|
+
value?: any;
|
|
1465
|
+
disabled?: boolean | undefined;
|
|
1466
|
+
} | {
|
|
1467
|
+
$$type: "background-image-overlay";
|
|
1468
|
+
value?: any;
|
|
1469
|
+
disabled?: boolean | undefined;
|
|
1470
|
+
})[]>;
|
|
1471
|
+
(value: (prev?: ({
|
|
1472
|
+
$$type: "background-color-overlay";
|
|
1473
|
+
value: string;
|
|
1474
|
+
disabled?: boolean | undefined;
|
|
1475
|
+
} | {
|
|
1476
|
+
$$type: "background-gradient-overlay";
|
|
1477
|
+
value?: any;
|
|
1478
|
+
disabled?: boolean | undefined;
|
|
1479
|
+
} | {
|
|
1480
|
+
$$type: "background-image-overlay";
|
|
1481
|
+
value?: any;
|
|
1482
|
+
disabled?: boolean | undefined;
|
|
1483
|
+
})[] | undefined) => ({
|
|
1484
|
+
$$type: "background-color-overlay";
|
|
1485
|
+
value: string;
|
|
1486
|
+
disabled?: boolean | undefined;
|
|
1487
|
+
} | {
|
|
1488
|
+
$$type: "background-gradient-overlay";
|
|
1489
|
+
value?: any;
|
|
1490
|
+
disabled?: boolean | undefined;
|
|
1491
|
+
} | {
|
|
1492
|
+
$$type: "background-image-overlay";
|
|
1493
|
+
value?: any;
|
|
1494
|
+
disabled?: boolean | undefined;
|
|
1495
|
+
})[], createOptions: CreateOptions): TransformablePropValue$1<"background-overlay", ({
|
|
1496
|
+
$$type: "background-color-overlay";
|
|
1497
|
+
value: string;
|
|
1498
|
+
disabled?: boolean | undefined;
|
|
1499
|
+
} | {
|
|
1500
|
+
$$type: "background-gradient-overlay";
|
|
1501
|
+
value?: any;
|
|
1502
|
+
disabled?: boolean | undefined;
|
|
1503
|
+
} | {
|
|
1504
|
+
$$type: "background-image-overlay";
|
|
1505
|
+
value?: any;
|
|
1506
|
+
disabled?: boolean | undefined;
|
|
1507
|
+
})[]>;
|
|
1508
|
+
};
|
|
1509
|
+
schema: z.ZodObject<{
|
|
1510
|
+
$$type: z.ZodLiteral<"background-overlay">;
|
|
1511
|
+
value: z.ZodType<({
|
|
1512
|
+
$$type: "background-color-overlay";
|
|
1513
|
+
value: string;
|
|
1514
|
+
disabled?: boolean | undefined;
|
|
1515
|
+
} | {
|
|
1516
|
+
$$type: "background-gradient-overlay";
|
|
1517
|
+
value?: any;
|
|
1518
|
+
disabled?: boolean | undefined;
|
|
1519
|
+
} | {
|
|
1520
|
+
$$type: "background-image-overlay";
|
|
1521
|
+
value?: any;
|
|
1522
|
+
disabled?: boolean | undefined;
|
|
1523
|
+
})[], z.ZodTypeDef, ({
|
|
1524
|
+
$$type: "background-color-overlay";
|
|
1525
|
+
value: string;
|
|
1526
|
+
disabled?: boolean | undefined;
|
|
1527
|
+
} | {
|
|
1528
|
+
$$type: "background-gradient-overlay";
|
|
1529
|
+
value?: any;
|
|
1530
|
+
disabled?: boolean | undefined;
|
|
1531
|
+
} | {
|
|
1532
|
+
$$type: "background-image-overlay";
|
|
1533
|
+
value?: any;
|
|
1534
|
+
disabled?: boolean | undefined;
|
|
1535
|
+
})[]>;
|
|
1536
|
+
disabled: z.ZodOptional<z.ZodBoolean>;
|
|
1537
|
+
}, "strict", z.ZodTypeAny, {
|
|
1538
|
+
$$type: "background-overlay";
|
|
1539
|
+
value: ({
|
|
1540
|
+
$$type: "background-color-overlay";
|
|
1541
|
+
value: string;
|
|
1542
|
+
disabled?: boolean | undefined;
|
|
1543
|
+
} | {
|
|
1544
|
+
$$type: "background-gradient-overlay";
|
|
1545
|
+
value?: any;
|
|
1546
|
+
disabled?: boolean | undefined;
|
|
1547
|
+
} | {
|
|
1548
|
+
$$type: "background-image-overlay";
|
|
1549
|
+
value?: any;
|
|
1550
|
+
disabled?: boolean | undefined;
|
|
1551
|
+
})[];
|
|
1552
|
+
disabled?: boolean | undefined;
|
|
1553
|
+
}, {
|
|
1554
|
+
$$type: "background-overlay";
|
|
1555
|
+
value: ({
|
|
1556
|
+
$$type: "background-color-overlay";
|
|
1557
|
+
value: string;
|
|
1558
|
+
disabled?: boolean | undefined;
|
|
1559
|
+
} | {
|
|
1560
|
+
$$type: "background-gradient-overlay";
|
|
1561
|
+
value?: any;
|
|
1562
|
+
disabled?: boolean | undefined;
|
|
1563
|
+
} | {
|
|
1564
|
+
$$type: "background-image-overlay";
|
|
1565
|
+
value?: any;
|
|
1566
|
+
disabled?: boolean | undefined;
|
|
1567
|
+
})[];
|
|
1568
|
+
disabled?: boolean | undefined;
|
|
1569
|
+
}>;
|
|
1570
|
+
};
|
|
1571
|
+
type BackgroundOverlayPropValue = z.infer<typeof backgroundOverlayPropTypeUtil.schema>;
|
|
1572
|
+
type BackgroundOverlayItemPropValue = z.infer<typeof backgroundOverlayItem>;
|
|
1573
|
+
|
|
1574
|
+
declare const backgroundColorOverlayPropTypeUtil: {
|
|
1575
|
+
extract: (prop: unknown) => string | null;
|
|
1576
|
+
isValid: (prop: unknown) => prop is TransformablePropValue$1<"background-color-overlay", string>;
|
|
1577
|
+
create: {
|
|
1578
|
+
(value: string): TransformablePropValue$1<"background-color-overlay", string>;
|
|
1579
|
+
(value: string, createOptions?: CreateOptions): TransformablePropValue$1<"background-color-overlay", string>;
|
|
1580
|
+
(value: (prev?: string | undefined) => string, createOptions: CreateOptions): TransformablePropValue$1<"background-color-overlay", string>;
|
|
1581
|
+
};
|
|
1582
|
+
schema: z.ZodObject<{
|
|
1583
|
+
$$type: z.ZodLiteral<"background-color-overlay">;
|
|
1584
|
+
value: z.ZodType<string, z.ZodTypeDef, string>;
|
|
1585
|
+
disabled: z.ZodOptional<z.ZodBoolean>;
|
|
1586
|
+
}, "strict", z.ZodTypeAny, {
|
|
1587
|
+
$$type: "background-color-overlay";
|
|
1588
|
+
value: string;
|
|
1589
|
+
disabled?: boolean | undefined;
|
|
1590
|
+
}, {
|
|
1591
|
+
$$type: "background-color-overlay";
|
|
1592
|
+
value: string;
|
|
1593
|
+
disabled?: boolean | undefined;
|
|
1594
|
+
}>;
|
|
1595
|
+
};
|
|
1596
|
+
type BackgroundColorOverlayPropValue = z.infer<typeof backgroundColorOverlayPropTypeUtil.schema>;
|
|
1597
|
+
|
|
1495
1598
|
declare const transformableSchema: z.ZodObject<{
|
|
1496
1599
|
$$type: z.ZodString;
|
|
1497
1600
|
value: z.ZodAny;
|
|
@@ -1508,4 +1611,4 @@ declare const transformableSchema: z.ZodObject<{
|
|
|
1508
1611
|
type TransformablePropValue = z.infer<typeof transformableSchema>;
|
|
1509
1612
|
declare const isTransformable: (value: unknown) => value is TransformablePropValue;
|
|
1510
1613
|
|
|
1511
|
-
export { type ArrayPropType, type
|
|
1614
|
+
export { type ArrayPropType, type BackgroundColorOverlayPropValue, type BackgroundOverlayItemPropValue, type BackgroundOverlayPropValue, type BackgroundPropValue, type BorderRadiusPropValue, type BorderWidthPropValue, type BoxShadowPropValue, type ClassesPropValue, type ColorPropValue, type CreateOptions, type GapPropValue, type ImageAttachmentIdPropValue, type ImagePropValue, type ImageSrcPropValue, type LinkPropValue, type LinkedDimensionsPropValue, type NumberPropValue, type ObjectPropType, type PlainPropType, type PlainPropValue, type PlainProps, type PropKey, type PropType, type PropTypeUtil, type PropValue, type Props, type ShadowPropValue, type SizePropValue, type StringPropValue, type StrokePropValue, type TransformablePropType, type TransformablePropValue$1 as TransformablePropValue, type UnionPropType, type UrlPropValue, backgroundColorOverlayPropTypeUtil, backgroundOverlayPropTypeUtil, backgroundPropTypeUtil, borderRadiusPropTypeUtil, borderWidthPropTypeUtil, boxShadowPropTypeUtil, classesPropTypeUtil, colorPropTypeUtil, createPropUtils, gapPropTypeUtil, imageAttachmentIdPropType, imagePropTypeUtil, imageSrcPropTypeUtil, isTransformable, linkPropTypeUtil, linkedDimensionsPropTypeUtil, numberPropTypeUtil, shadowPropTypeUtil, sizePropTypeUtil, stringPropTypeUtil, strokePropTypeUtil, urlPropTypeUtil };
|