@elementor/editor-props 4.3.0-964 → 4.3.0-966
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 +13 -13
- package/dist/index.d.ts +13 -13
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
- package/src/prop-types/size.ts +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -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
|
@@ -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
|
@@ -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({
|