@times-design-system/components-wordpress 1.7.0 → 1.8.1-alpha.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/README.md +3 -0
- package/dist/blocks/button/block.json +2 -2
- package/dist/blocks/button/render.php +20 -10
- package/dist/blocks/chip/block.json +4 -2
- package/dist/blocks/chip/render.php +10 -2
- package/dist/blocks/chip/style.css +21 -0
- package/dist/blocks/flag/block.json +4 -2
- package/dist/blocks/flag/render.php +11 -2
- package/dist/blocks/flag/style.css +21 -0
- package/dist/blocks/icon/block.json +17 -2
- package/dist/blocks/icon/render.php +32 -17
- package/dist/blocks/icon-button/block.json +16 -1
- package/dist/blocks/icon-button/render.php +4 -2
- package/dist/blocks/link/block.json +4 -2
- package/dist/blocks/link/render.php +12 -2
- package/dist/icon-data.json +3932 -0
- package/dist/index.cjs +30 -9
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +30 -9
- package/dist/index.js.map +1 -1
- package/dist/utils/render-icon.php +209 -0
- package/package.json +6 -4
package/dist/index.js
CHANGED
|
@@ -465,11 +465,11 @@ var attributes$9 = {
|
|
|
465
465
|
},
|
|
466
466
|
iconLeft: {
|
|
467
467
|
type: "string",
|
|
468
|
-
description: "Icon
|
|
468
|
+
description: "Icon on the left with variant prefix (e.g., 'filled_circle', 'outlined_circle')"
|
|
469
469
|
},
|
|
470
470
|
iconRight: {
|
|
471
471
|
type: "string",
|
|
472
|
-
description: "Icon
|
|
472
|
+
description: "Icon on the right with variant prefix (e.g., 'filled_circle', 'outlined_circle')"
|
|
473
473
|
},
|
|
474
474
|
ariaLabel: {
|
|
475
475
|
type: "string",
|
|
@@ -1083,7 +1083,22 @@ var render$5 = "file:./render.php";
|
|
|
1083
1083
|
var attributes$5 = {
|
|
1084
1084
|
iconName: {
|
|
1085
1085
|
type: "string",
|
|
1086
|
-
"default": ""
|
|
1086
|
+
"default": "",
|
|
1087
|
+
description: "Icon name with variant prefix (e.g., 'filled_accessibility', 'outlined_accessibility')"
|
|
1088
|
+
},
|
|
1089
|
+
iconSize: {
|
|
1090
|
+
type: "string",
|
|
1091
|
+
"enum": [
|
|
1092
|
+
"2xsmall",
|
|
1093
|
+
"xsmall",
|
|
1094
|
+
"small",
|
|
1095
|
+
"medium",
|
|
1096
|
+
"large",
|
|
1097
|
+
"xlarge",
|
|
1098
|
+
"2xlarge"
|
|
1099
|
+
],
|
|
1100
|
+
"default": "medium",
|
|
1101
|
+
description: "Size of the icon"
|
|
1087
1102
|
},
|
|
1088
1103
|
round: {
|
|
1089
1104
|
type: "boolean",
|
|
@@ -1342,11 +1357,13 @@ var attributes$4 = {
|
|
|
1342
1357
|
},
|
|
1343
1358
|
iconLeft: {
|
|
1344
1359
|
type: "string",
|
|
1345
|
-
"default": ""
|
|
1360
|
+
"default": "",
|
|
1361
|
+
description: "Icon on the left with variant prefix (e.g., 'filled_circle')"
|
|
1346
1362
|
},
|
|
1347
1363
|
iconRight: {
|
|
1348
1364
|
type: "string",
|
|
1349
|
-
"default": ""
|
|
1365
|
+
"default": "",
|
|
1366
|
+
description: "Icon on the right with variant prefix (e.g., 'outlined_circle')"
|
|
1350
1367
|
},
|
|
1351
1368
|
ariaLabel: {
|
|
1352
1369
|
type: "string",
|
|
@@ -1595,11 +1612,13 @@ var attributes$3 = {
|
|
|
1595
1612
|
},
|
|
1596
1613
|
iconLeft: {
|
|
1597
1614
|
type: "string",
|
|
1598
|
-
"default": ""
|
|
1615
|
+
"default": "",
|
|
1616
|
+
description: "Icon on the left with variant prefix (e.g., 'filled_check')"
|
|
1599
1617
|
},
|
|
1600
1618
|
iconRight: {
|
|
1601
1619
|
type: "string",
|
|
1602
|
-
"default": ""
|
|
1620
|
+
"default": "",
|
|
1621
|
+
description: "Icon on the right with variant prefix (e.g., 'outlined_check')"
|
|
1603
1622
|
},
|
|
1604
1623
|
ariaLabel: {
|
|
1605
1624
|
type: "string",
|
|
@@ -2066,11 +2085,13 @@ var attributes$1 = {
|
|
|
2066
2085
|
},
|
|
2067
2086
|
iconLeft: {
|
|
2068
2087
|
type: "string",
|
|
2069
|
-
"default": ""
|
|
2088
|
+
"default": "",
|
|
2089
|
+
description: "Icon on the left with variant prefix (e.g., 'filled_external-link')"
|
|
2070
2090
|
},
|
|
2071
2091
|
iconRight: {
|
|
2072
2092
|
type: "string",
|
|
2073
|
-
"default": ""
|
|
2093
|
+
"default": "",
|
|
2094
|
+
description: "Icon on the right with variant prefix (e.g., 'outlined_external-link')"
|
|
2074
2095
|
},
|
|
2075
2096
|
inline: {
|
|
2076
2097
|
type: "boolean",
|