@elementor/editor-props 4.2.0-beta1 → 4.2.3
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 +29 -29
- package/dist/index.d.ts +29 -29
- package/dist/index.js +3 -3
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +3 -3
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
- package/src/prop-types/border-radius.ts +1 -1
- package/src/prop-types/border-width.ts +1 -1
- package/src/prop-types/size.ts +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -351,7 +351,7 @@ declare const borderRadiusPropTypeUtil: {
|
|
|
351
351
|
'end-start'?: any;
|
|
352
352
|
'end-end'?: any;
|
|
353
353
|
} | null;
|
|
354
|
-
isValid: (prop: unknown) => prop is TransformablePropValue$1<"border-radius", {
|
|
354
|
+
isValid: (prop: unknown) => prop is TransformablePropValue$1<"border-radius-v2", {
|
|
355
355
|
'start-start'?: any;
|
|
356
356
|
'start-end'?: any;
|
|
357
357
|
'end-start'?: any;
|
|
@@ -363,7 +363,7 @@ declare const borderRadiusPropTypeUtil: {
|
|
|
363
363
|
'start-end'?: any;
|
|
364
364
|
'end-start'?: any;
|
|
365
365
|
'end-end'?: any;
|
|
366
|
-
}): TransformablePropValue$1<"border-radius", {
|
|
366
|
+
}): TransformablePropValue$1<"border-radius-v2", {
|
|
367
367
|
'start-start'?: any;
|
|
368
368
|
'start-end'?: any;
|
|
369
369
|
'end-start'?: any;
|
|
@@ -374,7 +374,7 @@ declare const borderRadiusPropTypeUtil: {
|
|
|
374
374
|
'start-end'?: any;
|
|
375
375
|
'end-start'?: any;
|
|
376
376
|
'end-end'?: any;
|
|
377
|
-
}, createOptions?: CreateOptions): TransformablePropValue$1<"border-radius", {
|
|
377
|
+
}, createOptions?: CreateOptions): TransformablePropValue$1<"border-radius-v2", {
|
|
378
378
|
'start-start'?: any;
|
|
379
379
|
'start-end'?: any;
|
|
380
380
|
'end-start'?: any;
|
|
@@ -390,7 +390,7 @@ declare const borderRadiusPropTypeUtil: {
|
|
|
390
390
|
'start-end'?: any;
|
|
391
391
|
'end-start'?: any;
|
|
392
392
|
'end-end'?: any;
|
|
393
|
-
}, createOptions: CreateOptions): TransformablePropValue$1<"border-radius", {
|
|
393
|
+
}, createOptions: CreateOptions): TransformablePropValue$1<"border-radius-v2", {
|
|
394
394
|
'start-start'?: any;
|
|
395
395
|
'start-end'?: any;
|
|
396
396
|
'end-start'?: any;
|
|
@@ -398,7 +398,7 @@ declare const borderRadiusPropTypeUtil: {
|
|
|
398
398
|
}>;
|
|
399
399
|
};
|
|
400
400
|
schema: z.ZodObject<{
|
|
401
|
-
$$type: z.ZodLiteral<"border-radius">;
|
|
401
|
+
$$type: z.ZodLiteral<"border-radius-v2">;
|
|
402
402
|
value: z.ZodType<{
|
|
403
403
|
'start-start'?: any;
|
|
404
404
|
'start-end'?: any;
|
|
@@ -412,7 +412,7 @@ declare const borderRadiusPropTypeUtil: {
|
|
|
412
412
|
}>;
|
|
413
413
|
disabled: z.ZodOptional<z.ZodBoolean>;
|
|
414
414
|
}, "strict", z.ZodTypeAny, {
|
|
415
|
-
$$type: "border-radius";
|
|
415
|
+
$$type: "border-radius-v2";
|
|
416
416
|
value: {
|
|
417
417
|
'start-start'?: any;
|
|
418
418
|
'start-end'?: any;
|
|
@@ -421,7 +421,7 @@ declare const borderRadiusPropTypeUtil: {
|
|
|
421
421
|
};
|
|
422
422
|
disabled?: boolean | undefined;
|
|
423
423
|
}, {
|
|
424
|
-
$$type: "border-radius";
|
|
424
|
+
$$type: "border-radius-v2";
|
|
425
425
|
value: {
|
|
426
426
|
'start-start'?: any;
|
|
427
427
|
'start-end'?: any;
|
|
@@ -430,7 +430,7 @@ declare const borderRadiusPropTypeUtil: {
|
|
|
430
430
|
};
|
|
431
431
|
disabled?: boolean | undefined;
|
|
432
432
|
}>;
|
|
433
|
-
key: "border-radius";
|
|
433
|
+
key: "border-radius-v2";
|
|
434
434
|
};
|
|
435
435
|
type BorderRadiusPropValue = z.infer<typeof borderRadiusPropTypeUtil.schema>;
|
|
436
436
|
|
|
@@ -441,7 +441,7 @@ declare const borderWidthPropTypeUtil: {
|
|
|
441
441
|
'inline-start'?: any;
|
|
442
442
|
'inline-end'?: any;
|
|
443
443
|
} | null;
|
|
444
|
-
isValid: (prop: unknown) => prop is TransformablePropValue$1<"border-width", {
|
|
444
|
+
isValid: (prop: unknown) => prop is TransformablePropValue$1<"border-width-v2", {
|
|
445
445
|
'block-start'?: any;
|
|
446
446
|
'block-end'?: any;
|
|
447
447
|
'inline-start'?: any;
|
|
@@ -453,7 +453,7 @@ declare const borderWidthPropTypeUtil: {
|
|
|
453
453
|
'block-end'?: any;
|
|
454
454
|
'inline-start'?: any;
|
|
455
455
|
'inline-end'?: any;
|
|
456
|
-
}): TransformablePropValue$1<"border-width", {
|
|
456
|
+
}): TransformablePropValue$1<"border-width-v2", {
|
|
457
457
|
'block-start'?: any;
|
|
458
458
|
'block-end'?: any;
|
|
459
459
|
'inline-start'?: any;
|
|
@@ -464,7 +464,7 @@ declare const borderWidthPropTypeUtil: {
|
|
|
464
464
|
'block-end'?: any;
|
|
465
465
|
'inline-start'?: any;
|
|
466
466
|
'inline-end'?: any;
|
|
467
|
-
}, createOptions?: CreateOptions): TransformablePropValue$1<"border-width", {
|
|
467
|
+
}, createOptions?: CreateOptions): TransformablePropValue$1<"border-width-v2", {
|
|
468
468
|
'block-start'?: any;
|
|
469
469
|
'block-end'?: any;
|
|
470
470
|
'inline-start'?: any;
|
|
@@ -480,7 +480,7 @@ declare const borderWidthPropTypeUtil: {
|
|
|
480
480
|
'block-end'?: any;
|
|
481
481
|
'inline-start'?: any;
|
|
482
482
|
'inline-end'?: any;
|
|
483
|
-
}, createOptions: CreateOptions): TransformablePropValue$1<"border-width", {
|
|
483
|
+
}, createOptions: CreateOptions): TransformablePropValue$1<"border-width-v2", {
|
|
484
484
|
'block-start'?: any;
|
|
485
485
|
'block-end'?: any;
|
|
486
486
|
'inline-start'?: any;
|
|
@@ -488,7 +488,7 @@ declare const borderWidthPropTypeUtil: {
|
|
|
488
488
|
}>;
|
|
489
489
|
};
|
|
490
490
|
schema: z.ZodObject<{
|
|
491
|
-
$$type: z.ZodLiteral<"border-width">;
|
|
491
|
+
$$type: z.ZodLiteral<"border-width-v2">;
|
|
492
492
|
value: z.ZodType<{
|
|
493
493
|
'block-start'?: any;
|
|
494
494
|
'block-end'?: any;
|
|
@@ -502,7 +502,7 @@ declare const borderWidthPropTypeUtil: {
|
|
|
502
502
|
}>;
|
|
503
503
|
disabled: z.ZodOptional<z.ZodBoolean>;
|
|
504
504
|
}, "strict", z.ZodTypeAny, {
|
|
505
|
-
$$type: "border-width";
|
|
505
|
+
$$type: "border-width-v2";
|
|
506
506
|
value: {
|
|
507
507
|
'block-start'?: any;
|
|
508
508
|
'block-end'?: any;
|
|
@@ -511,7 +511,7 @@ declare const borderWidthPropTypeUtil: {
|
|
|
511
511
|
};
|
|
512
512
|
disabled?: boolean | undefined;
|
|
513
513
|
}, {
|
|
514
|
-
$$type: "border-width";
|
|
514
|
+
$$type: "border-width-v2";
|
|
515
515
|
value: {
|
|
516
516
|
'block-start'?: any;
|
|
517
517
|
'block-end'?: any;
|
|
@@ -520,7 +520,7 @@ declare const borderWidthPropTypeUtil: {
|
|
|
520
520
|
};
|
|
521
521
|
disabled?: boolean | undefined;
|
|
522
522
|
}>;
|
|
523
|
-
key: "border-width";
|
|
523
|
+
key: "border-width-v2";
|
|
524
524
|
};
|
|
525
525
|
type BorderWidthPropValue = z.infer<typeof borderWidthPropTypeUtil.schema>;
|
|
526
526
|
|
|
@@ -1429,7 +1429,7 @@ type ShadowPropValue = z.infer<typeof shadowPropTypeUtil.schema>;
|
|
|
1429
1429
|
declare const sizePropTypeUtil: {
|
|
1430
1430
|
extract: (prop: unknown) => {
|
|
1431
1431
|
size: number | "";
|
|
1432
|
-
unit: "px" | "em" | "rem" | "%" | "vw" | "vh" | "ch";
|
|
1432
|
+
unit: "px" | "em" | "rem" | "%" | "vw" | "vh" | "ch" | "fr";
|
|
1433
1433
|
} | {
|
|
1434
1434
|
size: number | "";
|
|
1435
1435
|
unit: "deg" | "rad" | "grad" | "turn";
|
|
@@ -1445,7 +1445,7 @@ declare const sizePropTypeUtil: {
|
|
|
1445
1445
|
} | null;
|
|
1446
1446
|
isValid: (prop: unknown) => prop is TransformablePropValue$1<"size", {
|
|
1447
1447
|
size: number | "";
|
|
1448
|
-
unit: "px" | "em" | "rem" | "%" | "vw" | "vh" | "ch";
|
|
1448
|
+
unit: "px" | "em" | "rem" | "%" | "vw" | "vh" | "ch" | "fr";
|
|
1449
1449
|
} | {
|
|
1450
1450
|
size: number | "";
|
|
1451
1451
|
unit: "deg" | "rad" | "grad" | "turn";
|
|
@@ -1462,7 +1462,7 @@ declare const sizePropTypeUtil: {
|
|
|
1462
1462
|
create: {
|
|
1463
1463
|
(value: {
|
|
1464
1464
|
size: number | "";
|
|
1465
|
-
unit: "px" | "em" | "rem" | "%" | "vw" | "vh" | "ch";
|
|
1465
|
+
unit: "px" | "em" | "rem" | "%" | "vw" | "vh" | "ch" | "fr";
|
|
1466
1466
|
} | {
|
|
1467
1467
|
size: number | "";
|
|
1468
1468
|
unit: "deg" | "rad" | "grad" | "turn";
|
|
@@ -1477,7 +1477,7 @@ declare const sizePropTypeUtil: {
|
|
|
1477
1477
|
unit: "custom";
|
|
1478
1478
|
}): TransformablePropValue$1<"size", {
|
|
1479
1479
|
size: number | "";
|
|
1480
|
-
unit: "px" | "em" | "rem" | "%" | "vw" | "vh" | "ch";
|
|
1480
|
+
unit: "px" | "em" | "rem" | "%" | "vw" | "vh" | "ch" | "fr";
|
|
1481
1481
|
} | {
|
|
1482
1482
|
size: number | "";
|
|
1483
1483
|
unit: "deg" | "rad" | "grad" | "turn";
|
|
@@ -1493,7 +1493,7 @@ declare const sizePropTypeUtil: {
|
|
|
1493
1493
|
}>;
|
|
1494
1494
|
(value: {
|
|
1495
1495
|
size: number | "";
|
|
1496
|
-
unit: "px" | "em" | "rem" | "%" | "vw" | "vh" | "ch";
|
|
1496
|
+
unit: "px" | "em" | "rem" | "%" | "vw" | "vh" | "ch" | "fr";
|
|
1497
1497
|
} | {
|
|
1498
1498
|
size: number | "";
|
|
1499
1499
|
unit: "deg" | "rad" | "grad" | "turn";
|
|
@@ -1508,7 +1508,7 @@ declare const sizePropTypeUtil: {
|
|
|
1508
1508
|
unit: "custom";
|
|
1509
1509
|
}, createOptions?: CreateOptions): TransformablePropValue$1<"size", {
|
|
1510
1510
|
size: number | "";
|
|
1511
|
-
unit: "px" | "em" | "rem" | "%" | "vw" | "vh" | "ch";
|
|
1511
|
+
unit: "px" | "em" | "rem" | "%" | "vw" | "vh" | "ch" | "fr";
|
|
1512
1512
|
} | {
|
|
1513
1513
|
size: number | "";
|
|
1514
1514
|
unit: "deg" | "rad" | "grad" | "turn";
|
|
@@ -1524,7 +1524,7 @@ declare const sizePropTypeUtil: {
|
|
|
1524
1524
|
}>;
|
|
1525
1525
|
(value: (prev?: {
|
|
1526
1526
|
size: number | "";
|
|
1527
|
-
unit: "px" | "em" | "rem" | "%" | "vw" | "vh" | "ch";
|
|
1527
|
+
unit: "px" | "em" | "rem" | "%" | "vw" | "vh" | "ch" | "fr";
|
|
1528
1528
|
} | {
|
|
1529
1529
|
size: number | "";
|
|
1530
1530
|
unit: "deg" | "rad" | "grad" | "turn";
|
|
@@ -1539,7 +1539,7 @@ declare const sizePropTypeUtil: {
|
|
|
1539
1539
|
unit: "custom";
|
|
1540
1540
|
} | undefined) => {
|
|
1541
1541
|
size: number | "";
|
|
1542
|
-
unit: "px" | "em" | "rem" | "%" | "vw" | "vh" | "ch";
|
|
1542
|
+
unit: "px" | "em" | "rem" | "%" | "vw" | "vh" | "ch" | "fr";
|
|
1543
1543
|
} | {
|
|
1544
1544
|
size: number | "";
|
|
1545
1545
|
unit: "deg" | "rad" | "grad" | "turn";
|
|
@@ -1554,7 +1554,7 @@ declare const sizePropTypeUtil: {
|
|
|
1554
1554
|
unit: "custom";
|
|
1555
1555
|
}, createOptions: CreateOptions): TransformablePropValue$1<"size", {
|
|
1556
1556
|
size: number | "";
|
|
1557
|
-
unit: "px" | "em" | "rem" | "%" | "vw" | "vh" | "ch";
|
|
1557
|
+
unit: "px" | "em" | "rem" | "%" | "vw" | "vh" | "ch" | "fr";
|
|
1558
1558
|
} | {
|
|
1559
1559
|
size: number | "";
|
|
1560
1560
|
unit: "deg" | "rad" | "grad" | "turn";
|
|
@@ -1573,7 +1573,7 @@ declare const sizePropTypeUtil: {
|
|
|
1573
1573
|
$$type: z.ZodLiteral<"size">;
|
|
1574
1574
|
value: z.ZodType<{
|
|
1575
1575
|
size: number | "";
|
|
1576
|
-
unit: "px" | "em" | "rem" | "%" | "vw" | "vh" | "ch";
|
|
1576
|
+
unit: "px" | "em" | "rem" | "%" | "vw" | "vh" | "ch" | "fr";
|
|
1577
1577
|
} | {
|
|
1578
1578
|
size: number | "";
|
|
1579
1579
|
unit: "deg" | "rad" | "grad" | "turn";
|
|
@@ -1588,7 +1588,7 @@ declare const sizePropTypeUtil: {
|
|
|
1588
1588
|
unit: "custom";
|
|
1589
1589
|
}, z.ZodTypeDef, {
|
|
1590
1590
|
size: number | "";
|
|
1591
|
-
unit: "px" | "em" | "rem" | "%" | "vw" | "vh" | "ch";
|
|
1591
|
+
unit: "px" | "em" | "rem" | "%" | "vw" | "vh" | "ch" | "fr";
|
|
1592
1592
|
} | {
|
|
1593
1593
|
size: number | "";
|
|
1594
1594
|
unit: "deg" | "rad" | "grad" | "turn";
|
|
@@ -1607,7 +1607,7 @@ declare const sizePropTypeUtil: {
|
|
|
1607
1607
|
$$type: "size";
|
|
1608
1608
|
value: {
|
|
1609
1609
|
size: number | "";
|
|
1610
|
-
unit: "px" | "em" | "rem" | "%" | "vw" | "vh" | "ch";
|
|
1610
|
+
unit: "px" | "em" | "rem" | "%" | "vw" | "vh" | "ch" | "fr";
|
|
1611
1611
|
} | {
|
|
1612
1612
|
size: number | "";
|
|
1613
1613
|
unit: "deg" | "rad" | "grad" | "turn";
|
|
@@ -1626,7 +1626,7 @@ declare const sizePropTypeUtil: {
|
|
|
1626
1626
|
$$type: "size";
|
|
1627
1627
|
value: {
|
|
1628
1628
|
size: number | "";
|
|
1629
|
-
unit: "px" | "em" | "rem" | "%" | "vw" | "vh" | "ch";
|
|
1629
|
+
unit: "px" | "em" | "rem" | "%" | "vw" | "vh" | "ch" | "fr";
|
|
1630
1630
|
} | {
|
|
1631
1631
|
size: number | "";
|
|
1632
1632
|
unit: "deg" | "rad" | "grad" | "turn";
|
package/dist/index.d.ts
CHANGED
|
@@ -351,7 +351,7 @@ declare const borderRadiusPropTypeUtil: {
|
|
|
351
351
|
'end-start'?: any;
|
|
352
352
|
'end-end'?: any;
|
|
353
353
|
} | null;
|
|
354
|
-
isValid: (prop: unknown) => prop is TransformablePropValue$1<"border-radius", {
|
|
354
|
+
isValid: (prop: unknown) => prop is TransformablePropValue$1<"border-radius-v2", {
|
|
355
355
|
'start-start'?: any;
|
|
356
356
|
'start-end'?: any;
|
|
357
357
|
'end-start'?: any;
|
|
@@ -363,7 +363,7 @@ declare const borderRadiusPropTypeUtil: {
|
|
|
363
363
|
'start-end'?: any;
|
|
364
364
|
'end-start'?: any;
|
|
365
365
|
'end-end'?: any;
|
|
366
|
-
}): TransformablePropValue$1<"border-radius", {
|
|
366
|
+
}): TransformablePropValue$1<"border-radius-v2", {
|
|
367
367
|
'start-start'?: any;
|
|
368
368
|
'start-end'?: any;
|
|
369
369
|
'end-start'?: any;
|
|
@@ -374,7 +374,7 @@ declare const borderRadiusPropTypeUtil: {
|
|
|
374
374
|
'start-end'?: any;
|
|
375
375
|
'end-start'?: any;
|
|
376
376
|
'end-end'?: any;
|
|
377
|
-
}, createOptions?: CreateOptions): TransformablePropValue$1<"border-radius", {
|
|
377
|
+
}, createOptions?: CreateOptions): TransformablePropValue$1<"border-radius-v2", {
|
|
378
378
|
'start-start'?: any;
|
|
379
379
|
'start-end'?: any;
|
|
380
380
|
'end-start'?: any;
|
|
@@ -390,7 +390,7 @@ declare const borderRadiusPropTypeUtil: {
|
|
|
390
390
|
'start-end'?: any;
|
|
391
391
|
'end-start'?: any;
|
|
392
392
|
'end-end'?: any;
|
|
393
|
-
}, createOptions: CreateOptions): TransformablePropValue$1<"border-radius", {
|
|
393
|
+
}, createOptions: CreateOptions): TransformablePropValue$1<"border-radius-v2", {
|
|
394
394
|
'start-start'?: any;
|
|
395
395
|
'start-end'?: any;
|
|
396
396
|
'end-start'?: any;
|
|
@@ -398,7 +398,7 @@ declare const borderRadiusPropTypeUtil: {
|
|
|
398
398
|
}>;
|
|
399
399
|
};
|
|
400
400
|
schema: z.ZodObject<{
|
|
401
|
-
$$type: z.ZodLiteral<"border-radius">;
|
|
401
|
+
$$type: z.ZodLiteral<"border-radius-v2">;
|
|
402
402
|
value: z.ZodType<{
|
|
403
403
|
'start-start'?: any;
|
|
404
404
|
'start-end'?: any;
|
|
@@ -412,7 +412,7 @@ declare const borderRadiusPropTypeUtil: {
|
|
|
412
412
|
}>;
|
|
413
413
|
disabled: z.ZodOptional<z.ZodBoolean>;
|
|
414
414
|
}, "strict", z.ZodTypeAny, {
|
|
415
|
-
$$type: "border-radius";
|
|
415
|
+
$$type: "border-radius-v2";
|
|
416
416
|
value: {
|
|
417
417
|
'start-start'?: any;
|
|
418
418
|
'start-end'?: any;
|
|
@@ -421,7 +421,7 @@ declare const borderRadiusPropTypeUtil: {
|
|
|
421
421
|
};
|
|
422
422
|
disabled?: boolean | undefined;
|
|
423
423
|
}, {
|
|
424
|
-
$$type: "border-radius";
|
|
424
|
+
$$type: "border-radius-v2";
|
|
425
425
|
value: {
|
|
426
426
|
'start-start'?: any;
|
|
427
427
|
'start-end'?: any;
|
|
@@ -430,7 +430,7 @@ declare const borderRadiusPropTypeUtil: {
|
|
|
430
430
|
};
|
|
431
431
|
disabled?: boolean | undefined;
|
|
432
432
|
}>;
|
|
433
|
-
key: "border-radius";
|
|
433
|
+
key: "border-radius-v2";
|
|
434
434
|
};
|
|
435
435
|
type BorderRadiusPropValue = z.infer<typeof borderRadiusPropTypeUtil.schema>;
|
|
436
436
|
|
|
@@ -441,7 +441,7 @@ declare const borderWidthPropTypeUtil: {
|
|
|
441
441
|
'inline-start'?: any;
|
|
442
442
|
'inline-end'?: any;
|
|
443
443
|
} | null;
|
|
444
|
-
isValid: (prop: unknown) => prop is TransformablePropValue$1<"border-width", {
|
|
444
|
+
isValid: (prop: unknown) => prop is TransformablePropValue$1<"border-width-v2", {
|
|
445
445
|
'block-start'?: any;
|
|
446
446
|
'block-end'?: any;
|
|
447
447
|
'inline-start'?: any;
|
|
@@ -453,7 +453,7 @@ declare const borderWidthPropTypeUtil: {
|
|
|
453
453
|
'block-end'?: any;
|
|
454
454
|
'inline-start'?: any;
|
|
455
455
|
'inline-end'?: any;
|
|
456
|
-
}): TransformablePropValue$1<"border-width", {
|
|
456
|
+
}): TransformablePropValue$1<"border-width-v2", {
|
|
457
457
|
'block-start'?: any;
|
|
458
458
|
'block-end'?: any;
|
|
459
459
|
'inline-start'?: any;
|
|
@@ -464,7 +464,7 @@ declare const borderWidthPropTypeUtil: {
|
|
|
464
464
|
'block-end'?: any;
|
|
465
465
|
'inline-start'?: any;
|
|
466
466
|
'inline-end'?: any;
|
|
467
|
-
}, createOptions?: CreateOptions): TransformablePropValue$1<"border-width", {
|
|
467
|
+
}, createOptions?: CreateOptions): TransformablePropValue$1<"border-width-v2", {
|
|
468
468
|
'block-start'?: any;
|
|
469
469
|
'block-end'?: any;
|
|
470
470
|
'inline-start'?: any;
|
|
@@ -480,7 +480,7 @@ declare const borderWidthPropTypeUtil: {
|
|
|
480
480
|
'block-end'?: any;
|
|
481
481
|
'inline-start'?: any;
|
|
482
482
|
'inline-end'?: any;
|
|
483
|
-
}, createOptions: CreateOptions): TransformablePropValue$1<"border-width", {
|
|
483
|
+
}, createOptions: CreateOptions): TransformablePropValue$1<"border-width-v2", {
|
|
484
484
|
'block-start'?: any;
|
|
485
485
|
'block-end'?: any;
|
|
486
486
|
'inline-start'?: any;
|
|
@@ -488,7 +488,7 @@ declare const borderWidthPropTypeUtil: {
|
|
|
488
488
|
}>;
|
|
489
489
|
};
|
|
490
490
|
schema: z.ZodObject<{
|
|
491
|
-
$$type: z.ZodLiteral<"border-width">;
|
|
491
|
+
$$type: z.ZodLiteral<"border-width-v2">;
|
|
492
492
|
value: z.ZodType<{
|
|
493
493
|
'block-start'?: any;
|
|
494
494
|
'block-end'?: any;
|
|
@@ -502,7 +502,7 @@ declare const borderWidthPropTypeUtil: {
|
|
|
502
502
|
}>;
|
|
503
503
|
disabled: z.ZodOptional<z.ZodBoolean>;
|
|
504
504
|
}, "strict", z.ZodTypeAny, {
|
|
505
|
-
$$type: "border-width";
|
|
505
|
+
$$type: "border-width-v2";
|
|
506
506
|
value: {
|
|
507
507
|
'block-start'?: any;
|
|
508
508
|
'block-end'?: any;
|
|
@@ -511,7 +511,7 @@ declare const borderWidthPropTypeUtil: {
|
|
|
511
511
|
};
|
|
512
512
|
disabled?: boolean | undefined;
|
|
513
513
|
}, {
|
|
514
|
-
$$type: "border-width";
|
|
514
|
+
$$type: "border-width-v2";
|
|
515
515
|
value: {
|
|
516
516
|
'block-start'?: any;
|
|
517
517
|
'block-end'?: any;
|
|
@@ -520,7 +520,7 @@ declare const borderWidthPropTypeUtil: {
|
|
|
520
520
|
};
|
|
521
521
|
disabled?: boolean | undefined;
|
|
522
522
|
}>;
|
|
523
|
-
key: "border-width";
|
|
523
|
+
key: "border-width-v2";
|
|
524
524
|
};
|
|
525
525
|
type BorderWidthPropValue = z.infer<typeof borderWidthPropTypeUtil.schema>;
|
|
526
526
|
|
|
@@ -1429,7 +1429,7 @@ type ShadowPropValue = z.infer<typeof shadowPropTypeUtil.schema>;
|
|
|
1429
1429
|
declare const sizePropTypeUtil: {
|
|
1430
1430
|
extract: (prop: unknown) => {
|
|
1431
1431
|
size: number | "";
|
|
1432
|
-
unit: "px" | "em" | "rem" | "%" | "vw" | "vh" | "ch";
|
|
1432
|
+
unit: "px" | "em" | "rem" | "%" | "vw" | "vh" | "ch" | "fr";
|
|
1433
1433
|
} | {
|
|
1434
1434
|
size: number | "";
|
|
1435
1435
|
unit: "deg" | "rad" | "grad" | "turn";
|
|
@@ -1445,7 +1445,7 @@ declare const sizePropTypeUtil: {
|
|
|
1445
1445
|
} | null;
|
|
1446
1446
|
isValid: (prop: unknown) => prop is TransformablePropValue$1<"size", {
|
|
1447
1447
|
size: number | "";
|
|
1448
|
-
unit: "px" | "em" | "rem" | "%" | "vw" | "vh" | "ch";
|
|
1448
|
+
unit: "px" | "em" | "rem" | "%" | "vw" | "vh" | "ch" | "fr";
|
|
1449
1449
|
} | {
|
|
1450
1450
|
size: number | "";
|
|
1451
1451
|
unit: "deg" | "rad" | "grad" | "turn";
|
|
@@ -1462,7 +1462,7 @@ declare const sizePropTypeUtil: {
|
|
|
1462
1462
|
create: {
|
|
1463
1463
|
(value: {
|
|
1464
1464
|
size: number | "";
|
|
1465
|
-
unit: "px" | "em" | "rem" | "%" | "vw" | "vh" | "ch";
|
|
1465
|
+
unit: "px" | "em" | "rem" | "%" | "vw" | "vh" | "ch" | "fr";
|
|
1466
1466
|
} | {
|
|
1467
1467
|
size: number | "";
|
|
1468
1468
|
unit: "deg" | "rad" | "grad" | "turn";
|
|
@@ -1477,7 +1477,7 @@ declare const sizePropTypeUtil: {
|
|
|
1477
1477
|
unit: "custom";
|
|
1478
1478
|
}): TransformablePropValue$1<"size", {
|
|
1479
1479
|
size: number | "";
|
|
1480
|
-
unit: "px" | "em" | "rem" | "%" | "vw" | "vh" | "ch";
|
|
1480
|
+
unit: "px" | "em" | "rem" | "%" | "vw" | "vh" | "ch" | "fr";
|
|
1481
1481
|
} | {
|
|
1482
1482
|
size: number | "";
|
|
1483
1483
|
unit: "deg" | "rad" | "grad" | "turn";
|
|
@@ -1493,7 +1493,7 @@ declare const sizePropTypeUtil: {
|
|
|
1493
1493
|
}>;
|
|
1494
1494
|
(value: {
|
|
1495
1495
|
size: number | "";
|
|
1496
|
-
unit: "px" | "em" | "rem" | "%" | "vw" | "vh" | "ch";
|
|
1496
|
+
unit: "px" | "em" | "rem" | "%" | "vw" | "vh" | "ch" | "fr";
|
|
1497
1497
|
} | {
|
|
1498
1498
|
size: number | "";
|
|
1499
1499
|
unit: "deg" | "rad" | "grad" | "turn";
|
|
@@ -1508,7 +1508,7 @@ declare const sizePropTypeUtil: {
|
|
|
1508
1508
|
unit: "custom";
|
|
1509
1509
|
}, createOptions?: CreateOptions): TransformablePropValue$1<"size", {
|
|
1510
1510
|
size: number | "";
|
|
1511
|
-
unit: "px" | "em" | "rem" | "%" | "vw" | "vh" | "ch";
|
|
1511
|
+
unit: "px" | "em" | "rem" | "%" | "vw" | "vh" | "ch" | "fr";
|
|
1512
1512
|
} | {
|
|
1513
1513
|
size: number | "";
|
|
1514
1514
|
unit: "deg" | "rad" | "grad" | "turn";
|
|
@@ -1524,7 +1524,7 @@ declare const sizePropTypeUtil: {
|
|
|
1524
1524
|
}>;
|
|
1525
1525
|
(value: (prev?: {
|
|
1526
1526
|
size: number | "";
|
|
1527
|
-
unit: "px" | "em" | "rem" | "%" | "vw" | "vh" | "ch";
|
|
1527
|
+
unit: "px" | "em" | "rem" | "%" | "vw" | "vh" | "ch" | "fr";
|
|
1528
1528
|
} | {
|
|
1529
1529
|
size: number | "";
|
|
1530
1530
|
unit: "deg" | "rad" | "grad" | "turn";
|
|
@@ -1539,7 +1539,7 @@ declare const sizePropTypeUtil: {
|
|
|
1539
1539
|
unit: "custom";
|
|
1540
1540
|
} | undefined) => {
|
|
1541
1541
|
size: number | "";
|
|
1542
|
-
unit: "px" | "em" | "rem" | "%" | "vw" | "vh" | "ch";
|
|
1542
|
+
unit: "px" | "em" | "rem" | "%" | "vw" | "vh" | "ch" | "fr";
|
|
1543
1543
|
} | {
|
|
1544
1544
|
size: number | "";
|
|
1545
1545
|
unit: "deg" | "rad" | "grad" | "turn";
|
|
@@ -1554,7 +1554,7 @@ declare const sizePropTypeUtil: {
|
|
|
1554
1554
|
unit: "custom";
|
|
1555
1555
|
}, createOptions: CreateOptions): TransformablePropValue$1<"size", {
|
|
1556
1556
|
size: number | "";
|
|
1557
|
-
unit: "px" | "em" | "rem" | "%" | "vw" | "vh" | "ch";
|
|
1557
|
+
unit: "px" | "em" | "rem" | "%" | "vw" | "vh" | "ch" | "fr";
|
|
1558
1558
|
} | {
|
|
1559
1559
|
size: number | "";
|
|
1560
1560
|
unit: "deg" | "rad" | "grad" | "turn";
|
|
@@ -1573,7 +1573,7 @@ declare const sizePropTypeUtil: {
|
|
|
1573
1573
|
$$type: z.ZodLiteral<"size">;
|
|
1574
1574
|
value: z.ZodType<{
|
|
1575
1575
|
size: number | "";
|
|
1576
|
-
unit: "px" | "em" | "rem" | "%" | "vw" | "vh" | "ch";
|
|
1576
|
+
unit: "px" | "em" | "rem" | "%" | "vw" | "vh" | "ch" | "fr";
|
|
1577
1577
|
} | {
|
|
1578
1578
|
size: number | "";
|
|
1579
1579
|
unit: "deg" | "rad" | "grad" | "turn";
|
|
@@ -1588,7 +1588,7 @@ declare const sizePropTypeUtil: {
|
|
|
1588
1588
|
unit: "custom";
|
|
1589
1589
|
}, z.ZodTypeDef, {
|
|
1590
1590
|
size: number | "";
|
|
1591
|
-
unit: "px" | "em" | "rem" | "%" | "vw" | "vh" | "ch";
|
|
1591
|
+
unit: "px" | "em" | "rem" | "%" | "vw" | "vh" | "ch" | "fr";
|
|
1592
1592
|
} | {
|
|
1593
1593
|
size: number | "";
|
|
1594
1594
|
unit: "deg" | "rad" | "grad" | "turn";
|
|
@@ -1607,7 +1607,7 @@ declare const sizePropTypeUtil: {
|
|
|
1607
1607
|
$$type: "size";
|
|
1608
1608
|
value: {
|
|
1609
1609
|
size: number | "";
|
|
1610
|
-
unit: "px" | "em" | "rem" | "%" | "vw" | "vh" | "ch";
|
|
1610
|
+
unit: "px" | "em" | "rem" | "%" | "vw" | "vh" | "ch" | "fr";
|
|
1611
1611
|
} | {
|
|
1612
1612
|
size: number | "";
|
|
1613
1613
|
unit: "deg" | "rad" | "grad" | "turn";
|
|
@@ -1626,7 +1626,7 @@ declare const sizePropTypeUtil: {
|
|
|
1626
1626
|
$$type: "size";
|
|
1627
1627
|
value: {
|
|
1628
1628
|
size: number | "";
|
|
1629
|
-
unit: "px" | "em" | "rem" | "%" | "vw" | "vh" | "ch";
|
|
1629
|
+
unit: "px" | "em" | "rem" | "%" | "vw" | "vh" | "ch" | "fr";
|
|
1630
1630
|
} | {
|
|
1631
1631
|
size: number | "";
|
|
1632
1632
|
unit: "deg" | "rad" | "grad" | "turn";
|
package/dist/index.js
CHANGED
|
@@ -191,7 +191,7 @@ var boxShadowPropTypeUtil = createPropUtils("box-shadow", import_schema4.z.array
|
|
|
191
191
|
// src/prop-types/border-radius.ts
|
|
192
192
|
var import_schema5 = require("@elementor/schema");
|
|
193
193
|
var borderRadiusPropTypeUtil = createPropUtils(
|
|
194
|
-
"border-radius",
|
|
194
|
+
"border-radius-v2",
|
|
195
195
|
import_schema5.z.strictObject({
|
|
196
196
|
"start-start": unknownChildrenSchema,
|
|
197
197
|
"start-end": unknownChildrenSchema,
|
|
@@ -203,7 +203,7 @@ var borderRadiusPropTypeUtil = createPropUtils(
|
|
|
203
203
|
// src/prop-types/border-width.ts
|
|
204
204
|
var import_schema6 = require("@elementor/schema");
|
|
205
205
|
var borderWidthPropTypeUtil = createPropUtils(
|
|
206
|
-
"border-width",
|
|
206
|
+
"border-width-v2",
|
|
207
207
|
import_schema6.z.strictObject({
|
|
208
208
|
"block-start": unknownChildrenSchema,
|
|
209
209
|
"block-end": unknownChildrenSchema,
|
|
@@ -338,7 +338,7 @@ var sizeNumberOrEmpty = import_schema19.z.union([import_schema19.z.number(), imp
|
|
|
338
338
|
var sizePropTypeUtil = createPropUtils(
|
|
339
339
|
"size",
|
|
340
340
|
import_schema19.z.strictObject({
|
|
341
|
-
unit: import_schema19.z.enum(["px", "em", "rem", "%", "vw", "vh", "ch"]),
|
|
341
|
+
unit: import_schema19.z.enum(["px", "em", "rem", "%", "vw", "vh", "ch", "fr"]),
|
|
342
342
|
size: sizeNumberOrEmpty
|
|
343
343
|
}).or(
|
|
344
344
|
import_schema19.z.strictObject({
|