@elementor/editor-props 0.13.0 → 0.15.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,10 +1,24 @@
1
1
  import { ZodType, z } from '@elementor/schema';
2
2
 
3
3
  type PropTypeKey = string;
4
+ type DependencyEffect = 'disable' | 'hide';
5
+ type DependencyOperator = 'lt' | 'lte' | 'eq' | 'ne' | 'gte' | 'gt' | 'exists' | 'not_exist' | 'in' | 'nin' | 'contains' | 'ncontains';
6
+ type DependencyTerm<THasActualValue extends boolean = false> = {
7
+ operator: DependencyOperator;
8
+ path: string[];
9
+ value: PropValue;
10
+ actualValue: THasActualValue extends true ? PropValue : never;
11
+ };
12
+ type Dependency<THasActualValue extends boolean = false> = {
13
+ effect: DependencyEffect;
14
+ relation: 'or' | 'and';
15
+ terms: (DependencyTerm<THasActualValue> | Dependency<THasActualValue>)[];
16
+ };
4
17
  type BasePropType<TValue> = {
5
18
  default?: TValue | null;
6
19
  settings: Record<string, unknown>;
7
20
  meta: Record<string, unknown>;
21
+ dependencies?: Dependency[];
8
22
  };
9
23
  type PlainPropType = BasePropType<PlainPropValue> & {
10
24
  kind: 'plain';
@@ -108,6 +122,37 @@ declare function createPropUtils<TKey extends string, TValue extends PropValue>(
108
122
  }>[k_1]; } : never>;
109
123
  key: TKey;
110
124
  };
125
+ declare function createArrayPropUtils<TKey extends string, TValue extends PropValue>(key: TKey, valueSchema: ZodType<TValue>): {
126
+ extract: (prop: unknown) => TValue[] | null;
127
+ isValid: (prop: unknown) => prop is TransformablePropValue$1<`${TKey}-array`, TValue[]>;
128
+ create: {
129
+ (value: TValue[]): TransformablePropValue$1<`${TKey}-array`, TValue[]>;
130
+ (value: TValue[], createOptions?: CreateOptions): TransformablePropValue$1<`${TKey}-array`, TValue[]>;
131
+ (value: Updater<TValue[]>, createOptions: CreateOptions): TransformablePropValue$1<`${TKey}-array`, TValue[]>;
132
+ };
133
+ schema: z.ZodObject<{
134
+ $$type: z.ZodLiteral<`${TKey}-array`>;
135
+ value: z.ZodType<TValue[], z.ZodTypeDef, TValue[]>;
136
+ disabled: z.ZodOptional<z.ZodBoolean>;
137
+ }, "strict", z.ZodTypeAny, z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
138
+ $$type: z.ZodLiteral<`${TKey}-array`>;
139
+ value: z.ZodType<TValue[], z.ZodTypeDef, TValue[]>;
140
+ disabled: z.ZodOptional<z.ZodBoolean>;
141
+ }>, any> extends infer T ? { [k in keyof T]: z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
142
+ $$type: z.ZodLiteral<`${TKey}-array`>;
143
+ value: z.ZodType<TValue[], z.ZodTypeDef, TValue[]>;
144
+ disabled: z.ZodOptional<z.ZodBoolean>;
145
+ }>, any>[k]; } : never, z.baseObjectInputType<{
146
+ $$type: z.ZodLiteral<`${TKey}-array`>;
147
+ value: z.ZodType<TValue[], z.ZodTypeDef, TValue[]>;
148
+ disabled: z.ZodOptional<z.ZodBoolean>;
149
+ }> extends infer T_1 ? { [k_1 in keyof T_1]: z.baseObjectInputType<{
150
+ $$type: z.ZodLiteral<`${TKey}-array`>;
151
+ value: z.ZodType<TValue[], z.ZodTypeDef, TValue[]>;
152
+ disabled: z.ZodOptional<z.ZodBoolean>;
153
+ }>[k_1]; } : never>;
154
+ key: `${TKey}-array`;
155
+ };
111
156
 
112
157
  declare const boxShadowPropTypeUtil: {
113
158
  extract: (prop: unknown) => {
@@ -1941,8 +1986,682 @@ declare const gradientColorStopPropTypeUtil: {
1941
1986
  };
1942
1987
  type GradientColorStopPropValue = z.infer<typeof gradientColorStopPropTypeUtil.schema>;
1943
1988
 
1989
+ declare const keyValuePropTypeUtil: {
1990
+ extract: (prop: unknown) => {
1991
+ value?: any;
1992
+ key?: any;
1993
+ } | null;
1994
+ isValid: (prop: unknown) => prop is TransformablePropValue$1<"key-value", {
1995
+ value?: any;
1996
+ key?: any;
1997
+ }>;
1998
+ create: {
1999
+ (value: {
2000
+ value?: any;
2001
+ key?: any;
2002
+ }): TransformablePropValue$1<"key-value", {
2003
+ value?: any;
2004
+ key?: any;
2005
+ }>;
2006
+ (value: {
2007
+ value?: any;
2008
+ key?: any;
2009
+ }, createOptions?: CreateOptions): TransformablePropValue$1<"key-value", {
2010
+ value?: any;
2011
+ key?: any;
2012
+ }>;
2013
+ (value: (prev?: {
2014
+ value?: any;
2015
+ key?: any;
2016
+ } | undefined) => {
2017
+ value?: any;
2018
+ key?: any;
2019
+ }, createOptions: CreateOptions): TransformablePropValue$1<"key-value", {
2020
+ value?: any;
2021
+ key?: any;
2022
+ }>;
2023
+ };
2024
+ schema: z.ZodObject<{
2025
+ $$type: z.ZodLiteral<"key-value">;
2026
+ value: z.ZodType<{
2027
+ value?: any;
2028
+ key?: any;
2029
+ }, z.ZodTypeDef, {
2030
+ value?: any;
2031
+ key?: any;
2032
+ }>;
2033
+ disabled: z.ZodOptional<z.ZodBoolean>;
2034
+ }, "strict", z.ZodTypeAny, {
2035
+ $$type: "key-value";
2036
+ value: {
2037
+ value?: any;
2038
+ key?: any;
2039
+ };
2040
+ disabled?: boolean | undefined;
2041
+ }, {
2042
+ $$type: "key-value";
2043
+ value: {
2044
+ value?: any;
2045
+ key?: any;
2046
+ };
2047
+ disabled?: boolean | undefined;
2048
+ }>;
2049
+ key: "key-value";
2050
+ };
2051
+ type KeyValuePropValue = z.infer<typeof keyValuePropTypeUtil.schema>;
2052
+
2053
+ declare const positionPropTypeUtil: {
2054
+ extract: (prop: unknown) => {
2055
+ x: {
2056
+ $$type: "size";
2057
+ value: {
2058
+ size: number;
2059
+ unit: "px" | "em" | "rem" | "%" | "vw" | "vh";
2060
+ } | {
2061
+ size: "";
2062
+ unit: "auto";
2063
+ } | {
2064
+ size: string;
2065
+ unit: "custom";
2066
+ };
2067
+ disabled?: boolean | undefined;
2068
+ } | null;
2069
+ y: {
2070
+ $$type: "size";
2071
+ value: {
2072
+ size: number;
2073
+ unit: "px" | "em" | "rem" | "%" | "vw" | "vh";
2074
+ } | {
2075
+ size: "";
2076
+ unit: "auto";
2077
+ } | {
2078
+ size: string;
2079
+ unit: "custom";
2080
+ };
2081
+ disabled?: boolean | undefined;
2082
+ } | null;
2083
+ } | null;
2084
+ isValid: (prop: unknown) => prop is TransformablePropValue$1<"object-position", {
2085
+ x: {
2086
+ $$type: "size";
2087
+ value: {
2088
+ size: number;
2089
+ unit: "px" | "em" | "rem" | "%" | "vw" | "vh";
2090
+ } | {
2091
+ size: "";
2092
+ unit: "auto";
2093
+ } | {
2094
+ size: string;
2095
+ unit: "custom";
2096
+ };
2097
+ disabled?: boolean | undefined;
2098
+ } | null;
2099
+ y: {
2100
+ $$type: "size";
2101
+ value: {
2102
+ size: number;
2103
+ unit: "px" | "em" | "rem" | "%" | "vw" | "vh";
2104
+ } | {
2105
+ size: "";
2106
+ unit: "auto";
2107
+ } | {
2108
+ size: string;
2109
+ unit: "custom";
2110
+ };
2111
+ disabled?: boolean | undefined;
2112
+ } | null;
2113
+ }>;
2114
+ create: {
2115
+ (value: {
2116
+ x: {
2117
+ $$type: "size";
2118
+ value: {
2119
+ size: number;
2120
+ unit: "px" | "em" | "rem" | "%" | "vw" | "vh";
2121
+ } | {
2122
+ size: "";
2123
+ unit: "auto";
2124
+ } | {
2125
+ size: string;
2126
+ unit: "custom";
2127
+ };
2128
+ disabled?: boolean | undefined;
2129
+ } | null;
2130
+ y: {
2131
+ $$type: "size";
2132
+ value: {
2133
+ size: number;
2134
+ unit: "px" | "em" | "rem" | "%" | "vw" | "vh";
2135
+ } | {
2136
+ size: "";
2137
+ unit: "auto";
2138
+ } | {
2139
+ size: string;
2140
+ unit: "custom";
2141
+ };
2142
+ disabled?: boolean | undefined;
2143
+ } | null;
2144
+ }): TransformablePropValue$1<"object-position", {
2145
+ x: {
2146
+ $$type: "size";
2147
+ value: {
2148
+ size: number;
2149
+ unit: "px" | "em" | "rem" | "%" | "vw" | "vh";
2150
+ } | {
2151
+ size: "";
2152
+ unit: "auto";
2153
+ } | {
2154
+ size: string;
2155
+ unit: "custom";
2156
+ };
2157
+ disabled?: boolean | undefined;
2158
+ } | null;
2159
+ y: {
2160
+ $$type: "size";
2161
+ value: {
2162
+ size: number;
2163
+ unit: "px" | "em" | "rem" | "%" | "vw" | "vh";
2164
+ } | {
2165
+ size: "";
2166
+ unit: "auto";
2167
+ } | {
2168
+ size: string;
2169
+ unit: "custom";
2170
+ };
2171
+ disabled?: boolean | undefined;
2172
+ } | null;
2173
+ }>;
2174
+ (value: {
2175
+ x: {
2176
+ $$type: "size";
2177
+ value: {
2178
+ size: number;
2179
+ unit: "px" | "em" | "rem" | "%" | "vw" | "vh";
2180
+ } | {
2181
+ size: "";
2182
+ unit: "auto";
2183
+ } | {
2184
+ size: string;
2185
+ unit: "custom";
2186
+ };
2187
+ disabled?: boolean | undefined;
2188
+ } | null;
2189
+ y: {
2190
+ $$type: "size";
2191
+ value: {
2192
+ size: number;
2193
+ unit: "px" | "em" | "rem" | "%" | "vw" | "vh";
2194
+ } | {
2195
+ size: "";
2196
+ unit: "auto";
2197
+ } | {
2198
+ size: string;
2199
+ unit: "custom";
2200
+ };
2201
+ disabled?: boolean | undefined;
2202
+ } | null;
2203
+ }, createOptions?: CreateOptions): TransformablePropValue$1<"object-position", {
2204
+ x: {
2205
+ $$type: "size";
2206
+ value: {
2207
+ size: number;
2208
+ unit: "px" | "em" | "rem" | "%" | "vw" | "vh";
2209
+ } | {
2210
+ size: "";
2211
+ unit: "auto";
2212
+ } | {
2213
+ size: string;
2214
+ unit: "custom";
2215
+ };
2216
+ disabled?: boolean | undefined;
2217
+ } | null;
2218
+ y: {
2219
+ $$type: "size";
2220
+ value: {
2221
+ size: number;
2222
+ unit: "px" | "em" | "rem" | "%" | "vw" | "vh";
2223
+ } | {
2224
+ size: "";
2225
+ unit: "auto";
2226
+ } | {
2227
+ size: string;
2228
+ unit: "custom";
2229
+ };
2230
+ disabled?: boolean | undefined;
2231
+ } | null;
2232
+ }>;
2233
+ (value: (prev?: {
2234
+ x: {
2235
+ $$type: "size";
2236
+ value: {
2237
+ size: number;
2238
+ unit: "px" | "em" | "rem" | "%" | "vw" | "vh";
2239
+ } | {
2240
+ size: "";
2241
+ unit: "auto";
2242
+ } | {
2243
+ size: string;
2244
+ unit: "custom";
2245
+ };
2246
+ disabled?: boolean | undefined;
2247
+ } | null;
2248
+ y: {
2249
+ $$type: "size";
2250
+ value: {
2251
+ size: number;
2252
+ unit: "px" | "em" | "rem" | "%" | "vw" | "vh";
2253
+ } | {
2254
+ size: "";
2255
+ unit: "auto";
2256
+ } | {
2257
+ size: string;
2258
+ unit: "custom";
2259
+ };
2260
+ disabled?: boolean | undefined;
2261
+ } | null;
2262
+ } | undefined) => {
2263
+ x: {
2264
+ $$type: "size";
2265
+ value: {
2266
+ size: number;
2267
+ unit: "px" | "em" | "rem" | "%" | "vw" | "vh";
2268
+ } | {
2269
+ size: "";
2270
+ unit: "auto";
2271
+ } | {
2272
+ size: string;
2273
+ unit: "custom";
2274
+ };
2275
+ disabled?: boolean | undefined;
2276
+ } | null;
2277
+ y: {
2278
+ $$type: "size";
2279
+ value: {
2280
+ size: number;
2281
+ unit: "px" | "em" | "rem" | "%" | "vw" | "vh";
2282
+ } | {
2283
+ size: "";
2284
+ unit: "auto";
2285
+ } | {
2286
+ size: string;
2287
+ unit: "custom";
2288
+ };
2289
+ disabled?: boolean | undefined;
2290
+ } | null;
2291
+ }, createOptions: CreateOptions): TransformablePropValue$1<"object-position", {
2292
+ x: {
2293
+ $$type: "size";
2294
+ value: {
2295
+ size: number;
2296
+ unit: "px" | "em" | "rem" | "%" | "vw" | "vh";
2297
+ } | {
2298
+ size: "";
2299
+ unit: "auto";
2300
+ } | {
2301
+ size: string;
2302
+ unit: "custom";
2303
+ };
2304
+ disabled?: boolean | undefined;
2305
+ } | null;
2306
+ y: {
2307
+ $$type: "size";
2308
+ value: {
2309
+ size: number;
2310
+ unit: "px" | "em" | "rem" | "%" | "vw" | "vh";
2311
+ } | {
2312
+ size: "";
2313
+ unit: "auto";
2314
+ } | {
2315
+ size: string;
2316
+ unit: "custom";
2317
+ };
2318
+ disabled?: boolean | undefined;
2319
+ } | null;
2320
+ }>;
2321
+ };
2322
+ schema: z.ZodObject<{
2323
+ $$type: z.ZodLiteral<"object-position">;
2324
+ value: z.ZodType<{
2325
+ x: {
2326
+ $$type: "size";
2327
+ value: {
2328
+ size: number;
2329
+ unit: "px" | "em" | "rem" | "%" | "vw" | "vh";
2330
+ } | {
2331
+ size: "";
2332
+ unit: "auto";
2333
+ } | {
2334
+ size: string;
2335
+ unit: "custom";
2336
+ };
2337
+ disabled?: boolean | undefined;
2338
+ } | null;
2339
+ y: {
2340
+ $$type: "size";
2341
+ value: {
2342
+ size: number;
2343
+ unit: "px" | "em" | "rem" | "%" | "vw" | "vh";
2344
+ } | {
2345
+ size: "";
2346
+ unit: "auto";
2347
+ } | {
2348
+ size: string;
2349
+ unit: "custom";
2350
+ };
2351
+ disabled?: boolean | undefined;
2352
+ } | null;
2353
+ }, z.ZodTypeDef, {
2354
+ x: {
2355
+ $$type: "size";
2356
+ value: {
2357
+ size: number;
2358
+ unit: "px" | "em" | "rem" | "%" | "vw" | "vh";
2359
+ } | {
2360
+ size: "";
2361
+ unit: "auto";
2362
+ } | {
2363
+ size: string;
2364
+ unit: "custom";
2365
+ };
2366
+ disabled?: boolean | undefined;
2367
+ } | null;
2368
+ y: {
2369
+ $$type: "size";
2370
+ value: {
2371
+ size: number;
2372
+ unit: "px" | "em" | "rem" | "%" | "vw" | "vh";
2373
+ } | {
2374
+ size: "";
2375
+ unit: "auto";
2376
+ } | {
2377
+ size: string;
2378
+ unit: "custom";
2379
+ };
2380
+ disabled?: boolean | undefined;
2381
+ } | null;
2382
+ }>;
2383
+ disabled: z.ZodOptional<z.ZodBoolean>;
2384
+ }, "strict", z.ZodTypeAny, {
2385
+ $$type: "object-position";
2386
+ value: {
2387
+ x: {
2388
+ $$type: "size";
2389
+ value: {
2390
+ size: number;
2391
+ unit: "px" | "em" | "rem" | "%" | "vw" | "vh";
2392
+ } | {
2393
+ size: "";
2394
+ unit: "auto";
2395
+ } | {
2396
+ size: string;
2397
+ unit: "custom";
2398
+ };
2399
+ disabled?: boolean | undefined;
2400
+ } | null;
2401
+ y: {
2402
+ $$type: "size";
2403
+ value: {
2404
+ size: number;
2405
+ unit: "px" | "em" | "rem" | "%" | "vw" | "vh";
2406
+ } | {
2407
+ size: "";
2408
+ unit: "auto";
2409
+ } | {
2410
+ size: string;
2411
+ unit: "custom";
2412
+ };
2413
+ disabled?: boolean | undefined;
2414
+ } | null;
2415
+ };
2416
+ disabled?: boolean | undefined;
2417
+ }, {
2418
+ $$type: "object-position";
2419
+ value: {
2420
+ x: {
2421
+ $$type: "size";
2422
+ value: {
2423
+ size: number;
2424
+ unit: "px" | "em" | "rem" | "%" | "vw" | "vh";
2425
+ } | {
2426
+ size: "";
2427
+ unit: "auto";
2428
+ } | {
2429
+ size: string;
2430
+ unit: "custom";
2431
+ };
2432
+ disabled?: boolean | undefined;
2433
+ } | null;
2434
+ y: {
2435
+ $$type: "size";
2436
+ value: {
2437
+ size: number;
2438
+ unit: "px" | "em" | "rem" | "%" | "vw" | "vh";
2439
+ } | {
2440
+ size: "";
2441
+ unit: "auto";
2442
+ } | {
2443
+ size: string;
2444
+ unit: "custom";
2445
+ };
2446
+ disabled?: boolean | undefined;
2447
+ } | null;
2448
+ };
2449
+ disabled?: boolean | undefined;
2450
+ }>;
2451
+ key: "object-position";
2452
+ };
2453
+ type PositionPropTypeValue = z.infer<typeof positionPropTypeUtil.schema>;
2454
+
2455
+ declare const filterTypes: z.ZodUnion<[z.ZodObject<{
2456
+ $$type: z.ZodLiteral<"blur">;
2457
+ value: z.ZodType<any, z.ZodTypeDef, any>;
2458
+ disabled: z.ZodOptional<z.ZodBoolean>;
2459
+ }, "strict", z.ZodTypeAny, {
2460
+ $$type: "blur";
2461
+ value?: any;
2462
+ disabled?: boolean | undefined;
2463
+ }, {
2464
+ $$type: "blur";
2465
+ value?: any;
2466
+ disabled?: boolean | undefined;
2467
+ }>, z.ZodObject<{
2468
+ $$type: z.ZodLiteral<"brightness">;
2469
+ value: z.ZodType<any, z.ZodTypeDef, any>;
2470
+ disabled: z.ZodOptional<z.ZodBoolean>;
2471
+ }, "strict", z.ZodTypeAny, {
2472
+ $$type: "brightness";
2473
+ value?: any;
2474
+ disabled?: boolean | undefined;
2475
+ }, {
2476
+ $$type: "brightness";
2477
+ value?: any;
2478
+ disabled?: boolean | undefined;
2479
+ }>]>;
2480
+ declare const filterPropTypeUtil: {
2481
+ extract: (prop: unknown) => ({
2482
+ $$type: "blur";
2483
+ value?: any;
2484
+ disabled?: boolean | undefined;
2485
+ } | {
2486
+ $$type: "brightness";
2487
+ value?: any;
2488
+ disabled?: boolean | undefined;
2489
+ })[] | null;
2490
+ isValid: (prop: unknown) => prop is TransformablePropValue$1<"filter", ({
2491
+ $$type: "blur";
2492
+ value?: any;
2493
+ disabled?: boolean | undefined;
2494
+ } | {
2495
+ $$type: "brightness";
2496
+ value?: any;
2497
+ disabled?: boolean | undefined;
2498
+ })[]>;
2499
+ create: {
2500
+ (value: ({
2501
+ $$type: "blur";
2502
+ value?: any;
2503
+ disabled?: boolean | undefined;
2504
+ } | {
2505
+ $$type: "brightness";
2506
+ value?: any;
2507
+ disabled?: boolean | undefined;
2508
+ })[]): TransformablePropValue$1<"filter", ({
2509
+ $$type: "blur";
2510
+ value?: any;
2511
+ disabled?: boolean | undefined;
2512
+ } | {
2513
+ $$type: "brightness";
2514
+ value?: any;
2515
+ disabled?: boolean | undefined;
2516
+ })[]>;
2517
+ (value: ({
2518
+ $$type: "blur";
2519
+ value?: any;
2520
+ disabled?: boolean | undefined;
2521
+ } | {
2522
+ $$type: "brightness";
2523
+ value?: any;
2524
+ disabled?: boolean | undefined;
2525
+ })[], createOptions?: CreateOptions): TransformablePropValue$1<"filter", ({
2526
+ $$type: "blur";
2527
+ value?: any;
2528
+ disabled?: boolean | undefined;
2529
+ } | {
2530
+ $$type: "brightness";
2531
+ value?: any;
2532
+ disabled?: boolean | undefined;
2533
+ })[]>;
2534
+ (value: (prev?: ({
2535
+ $$type: "blur";
2536
+ value?: any;
2537
+ disabled?: boolean | undefined;
2538
+ } | {
2539
+ $$type: "brightness";
2540
+ value?: any;
2541
+ disabled?: boolean | undefined;
2542
+ })[] | undefined) => ({
2543
+ $$type: "blur";
2544
+ value?: any;
2545
+ disabled?: boolean | undefined;
2546
+ } | {
2547
+ $$type: "brightness";
2548
+ value?: any;
2549
+ disabled?: boolean | undefined;
2550
+ })[], createOptions: CreateOptions): TransformablePropValue$1<"filter", ({
2551
+ $$type: "blur";
2552
+ value?: any;
2553
+ disabled?: boolean | undefined;
2554
+ } | {
2555
+ $$type: "brightness";
2556
+ value?: any;
2557
+ disabled?: boolean | undefined;
2558
+ })[]>;
2559
+ };
2560
+ schema: z.ZodObject<{
2561
+ $$type: z.ZodLiteral<"filter">;
2562
+ value: z.ZodType<({
2563
+ $$type: "blur";
2564
+ value?: any;
2565
+ disabled?: boolean | undefined;
2566
+ } | {
2567
+ $$type: "brightness";
2568
+ value?: any;
2569
+ disabled?: boolean | undefined;
2570
+ })[], z.ZodTypeDef, ({
2571
+ $$type: "blur";
2572
+ value?: any;
2573
+ disabled?: boolean | undefined;
2574
+ } | {
2575
+ $$type: "brightness";
2576
+ value?: any;
2577
+ disabled?: boolean | undefined;
2578
+ })[]>;
2579
+ disabled: z.ZodOptional<z.ZodBoolean>;
2580
+ }, "strict", z.ZodTypeAny, {
2581
+ $$type: "filter";
2582
+ value: ({
2583
+ $$type: "blur";
2584
+ value?: any;
2585
+ disabled?: boolean | undefined;
2586
+ } | {
2587
+ $$type: "brightness";
2588
+ value?: any;
2589
+ disabled?: boolean | undefined;
2590
+ })[];
2591
+ disabled?: boolean | undefined;
2592
+ }, {
2593
+ $$type: "filter";
2594
+ value: ({
2595
+ $$type: "blur";
2596
+ value?: any;
2597
+ disabled?: boolean | undefined;
2598
+ } | {
2599
+ $$type: "brightness";
2600
+ value?: any;
2601
+ disabled?: boolean | undefined;
2602
+ })[];
2603
+ disabled?: boolean | undefined;
2604
+ }>;
2605
+ key: "filter";
2606
+ };
2607
+ type FilterPropValue = z.infer<typeof filterPropTypeUtil.schema>;
2608
+ type FilterItemPropValue = z.infer<typeof filterTypes>;
2609
+
2610
+ declare const blurFilterPropTypeUtil: {
2611
+ extract: (prop: unknown) => any;
2612
+ isValid: (prop: unknown) => prop is TransformablePropValue$1<"blur", any>;
2613
+ create: {
2614
+ (value: any): TransformablePropValue$1<"blur", any>;
2615
+ (value: any, createOptions?: CreateOptions): TransformablePropValue$1<"blur", any>;
2616
+ (value: (prev?: any) => any, createOptions: CreateOptions): TransformablePropValue$1<"blur", any>;
2617
+ };
2618
+ schema: z.ZodObject<{
2619
+ $$type: z.ZodLiteral<"blur">;
2620
+ value: z.ZodType<any, z.ZodTypeDef, any>;
2621
+ disabled: z.ZodOptional<z.ZodBoolean>;
2622
+ }, "strict", z.ZodTypeAny, {
2623
+ $$type: "blur";
2624
+ value?: any;
2625
+ disabled?: boolean | undefined;
2626
+ }, {
2627
+ $$type: "blur";
2628
+ value?: any;
2629
+ disabled?: boolean | undefined;
2630
+ }>;
2631
+ key: "blur";
2632
+ };
2633
+ type BlurFilterPropValue = z.infer<typeof blurFilterPropTypeUtil.schema>;
2634
+
2635
+ declare const brightnessFilterPropTypeUtil: {
2636
+ extract: (prop: unknown) => any;
2637
+ isValid: (prop: unknown) => prop is TransformablePropValue$1<"brightness", any>;
2638
+ create: {
2639
+ (value: any): TransformablePropValue$1<"brightness", any>;
2640
+ (value: any, createOptions?: CreateOptions): TransformablePropValue$1<"brightness", any>;
2641
+ (value: (prev?: any) => any, createOptions: CreateOptions): TransformablePropValue$1<"brightness", any>;
2642
+ };
2643
+ schema: z.ZodObject<{
2644
+ $$type: z.ZodLiteral<"brightness">;
2645
+ value: z.ZodType<any, z.ZodTypeDef, any>;
2646
+ disabled: z.ZodOptional<z.ZodBoolean>;
2647
+ }, "strict", z.ZodTypeAny, {
2648
+ $$type: "brightness";
2649
+ value?: any;
2650
+ disabled?: boolean | undefined;
2651
+ }, {
2652
+ $$type: "brightness";
2653
+ value?: any;
2654
+ disabled?: boolean | undefined;
2655
+ }>;
2656
+ key: "brightness";
2657
+ };
2658
+ type BrightnessFilterPropValue = z.infer<typeof brightnessFilterPropTypeUtil.schema>;
2659
+
1944
2660
  declare function mergeProps(current: Props, updates: Props): Props;
1945
2661
 
2662
+ declare function shouldApplyEffect({ relation, terms }: Dependency<true>): boolean;
2663
+ declare function evaluateTerm(term: DependencyTerm<true>, actualValue: PropValue): boolean;
2664
+
1946
2665
  declare const transformableSchema: z.ZodObject<{
1947
2666
  $$type: z.ZodString;
1948
2667
  value: z.ZodAny;
@@ -1963,4 +2682,4 @@ declare const filterEmptyValues: <TValue extends PropValue>(value: TValue) => TV
1963
2682
  type Nullish = null | undefined | '';
1964
2683
  declare const isEmpty: (value: PropValue) => value is Nullish;
1965
2684
 
1966
- export { type AnyTransformable, type ArrayPropType, type ArrayPropValue, type BackgroundColorOverlayPropValue, type BackgroundGradientOverlayPropValue, type BackgroundImageOverlayPropValue, type BackgroundImagePositionOffsetPropValue, type BackgroundImageSizeScalePropValue, type BackgroundOverlayImagePropType, type BackgroundOverlayItemPropValue, type BackgroundOverlayPropType, type BackgroundOverlayPropValue, type BackgroundPropValue, type BooleanPropValue, type BorderRadiusPropValue, type BorderWidthPropValue, type BoxShadowPropValue, CLASSES_PROP_KEY, type ClassesPropValue, type ColorPropValue, type ColorStopPropValue, type CreateOptions, type DimensionsPropValue, type GradientColorStopPropValue, type ImageAttachmentIdPropValue, type ImagePropValue, type ImageSrcPropValue, type LayoutDirectionPropValue, type LinkPropValue, type NumberPropValue, type ObjectPropType, type ObjectPropValue, type PlainPropType, type PlainPropValue, type PropKey, type PropType, type PropTypeKey, 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, backgroundGradientOverlayPropTypeUtil, backgroundImageOverlayPropTypeUtil, backgroundImagePositionOffsetPropTypeUtil, backgroundImageSizeScalePropTypeUtil, backgroundOverlayPropTypeUtil, backgroundPropTypeUtil, booleanPropTypeUtil, borderRadiusPropTypeUtil, borderWidthPropTypeUtil, boxShadowPropTypeUtil, classesPropTypeUtil, colorPropTypeUtil, colorStopPropTypeUtil, createPropUtils, dimensionsPropTypeUtil, filterEmptyValues, gradientColorStopPropTypeUtil, imageAttachmentIdPropType, imagePropTypeUtil, imageSrcPropTypeUtil, isEmpty, isTransformable, layoutDirectionPropTypeUtil, linkPropTypeUtil, mergeProps, numberPropTypeUtil, shadowPropTypeUtil, sizePropTypeUtil, stringPropTypeUtil, strokePropTypeUtil, urlPropTypeUtil };
2685
+ export { type AnyTransformable, type ArrayPropType, type ArrayPropValue, type BackgroundColorOverlayPropValue, type BackgroundGradientOverlayPropValue, type BackgroundImageOverlayPropValue, type BackgroundImagePositionOffsetPropValue, type BackgroundImageSizeScalePropValue, type BackgroundOverlayImagePropType, type BackgroundOverlayItemPropValue, type BackgroundOverlayPropType, type BackgroundOverlayPropValue, type BackgroundPropValue, type BlurFilterPropValue, type BooleanPropValue, type BorderRadiusPropValue, type BorderWidthPropValue, type BoxShadowPropValue, type BrightnessFilterPropValue, CLASSES_PROP_KEY, type ClassesPropValue, type ColorPropValue, type ColorStopPropValue, type CreateOptions, type Dependency, type DependencyEffect, type DependencyOperator, type DependencyTerm, type DimensionsPropValue, type FilterItemPropValue, type FilterPropValue, type GradientColorStopPropValue, type ImageAttachmentIdPropValue, type ImagePropValue, type ImageSrcPropValue, type KeyValuePropValue, type LayoutDirectionPropValue, type LinkPropValue, type NumberPropValue, type ObjectPropType, type ObjectPropValue, type PlainPropType, type PlainPropValue, type PositionPropTypeValue, type PropKey, type PropType, type PropTypeKey, 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, backgroundGradientOverlayPropTypeUtil, backgroundImageOverlayPropTypeUtil, backgroundImagePositionOffsetPropTypeUtil, backgroundImageSizeScalePropTypeUtil, backgroundOverlayPropTypeUtil, backgroundPropTypeUtil, blurFilterPropTypeUtil, booleanPropTypeUtil, borderRadiusPropTypeUtil, borderWidthPropTypeUtil, boxShadowPropTypeUtil, brightnessFilterPropTypeUtil, classesPropTypeUtil, colorPropTypeUtil, colorStopPropTypeUtil, createArrayPropUtils, createPropUtils, dimensionsPropTypeUtil, evaluateTerm, filterEmptyValues, filterPropTypeUtil, gradientColorStopPropTypeUtil, imageAttachmentIdPropType, imagePropTypeUtil, imageSrcPropTypeUtil, isEmpty, isTransformable, keyValuePropTypeUtil, layoutDirectionPropTypeUtil, linkPropTypeUtil, mergeProps, numberPropTypeUtil, positionPropTypeUtil, shadowPropTypeUtil, shouldApplyEffect, sizePropTypeUtil, stringPropTypeUtil, strokePropTypeUtil, urlPropTypeUtil };