@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.cjs
CHANGED
|
@@ -467,11 +467,11 @@ var attributes$9 = {
|
|
|
467
467
|
},
|
|
468
468
|
iconLeft: {
|
|
469
469
|
type: "string",
|
|
470
|
-
description: "Icon
|
|
470
|
+
description: "Icon on the left with variant prefix (e.g., 'filled_circle', 'outlined_circle')"
|
|
471
471
|
},
|
|
472
472
|
iconRight: {
|
|
473
473
|
type: "string",
|
|
474
|
-
description: "Icon
|
|
474
|
+
description: "Icon on the right with variant prefix (e.g., 'filled_circle', 'outlined_circle')"
|
|
475
475
|
},
|
|
476
476
|
ariaLabel: {
|
|
477
477
|
type: "string",
|
|
@@ -1085,7 +1085,22 @@ var render$5 = "file:./render.php";
|
|
|
1085
1085
|
var attributes$5 = {
|
|
1086
1086
|
iconName: {
|
|
1087
1087
|
type: "string",
|
|
1088
|
-
"default": ""
|
|
1088
|
+
"default": "",
|
|
1089
|
+
description: "Icon name with variant prefix (e.g., 'filled_accessibility', 'outlined_accessibility')"
|
|
1090
|
+
},
|
|
1091
|
+
iconSize: {
|
|
1092
|
+
type: "string",
|
|
1093
|
+
"enum": [
|
|
1094
|
+
"2xsmall",
|
|
1095
|
+
"xsmall",
|
|
1096
|
+
"small",
|
|
1097
|
+
"medium",
|
|
1098
|
+
"large",
|
|
1099
|
+
"xlarge",
|
|
1100
|
+
"2xlarge"
|
|
1101
|
+
],
|
|
1102
|
+
"default": "medium",
|
|
1103
|
+
description: "Size of the icon"
|
|
1089
1104
|
},
|
|
1090
1105
|
round: {
|
|
1091
1106
|
type: "boolean",
|
|
@@ -1344,11 +1359,13 @@ var attributes$4 = {
|
|
|
1344
1359
|
},
|
|
1345
1360
|
iconLeft: {
|
|
1346
1361
|
type: "string",
|
|
1347
|
-
"default": ""
|
|
1362
|
+
"default": "",
|
|
1363
|
+
description: "Icon on the left with variant prefix (e.g., 'filled_circle')"
|
|
1348
1364
|
},
|
|
1349
1365
|
iconRight: {
|
|
1350
1366
|
type: "string",
|
|
1351
|
-
"default": ""
|
|
1367
|
+
"default": "",
|
|
1368
|
+
description: "Icon on the right with variant prefix (e.g., 'outlined_circle')"
|
|
1352
1369
|
},
|
|
1353
1370
|
ariaLabel: {
|
|
1354
1371
|
type: "string",
|
|
@@ -1597,11 +1614,13 @@ var attributes$3 = {
|
|
|
1597
1614
|
},
|
|
1598
1615
|
iconLeft: {
|
|
1599
1616
|
type: "string",
|
|
1600
|
-
"default": ""
|
|
1617
|
+
"default": "",
|
|
1618
|
+
description: "Icon on the left with variant prefix (e.g., 'filled_check')"
|
|
1601
1619
|
},
|
|
1602
1620
|
iconRight: {
|
|
1603
1621
|
type: "string",
|
|
1604
|
-
"default": ""
|
|
1622
|
+
"default": "",
|
|
1623
|
+
description: "Icon on the right with variant prefix (e.g., 'outlined_check')"
|
|
1605
1624
|
},
|
|
1606
1625
|
ariaLabel: {
|
|
1607
1626
|
type: "string",
|
|
@@ -2068,11 +2087,13 @@ var attributes$1 = {
|
|
|
2068
2087
|
},
|
|
2069
2088
|
iconLeft: {
|
|
2070
2089
|
type: "string",
|
|
2071
|
-
"default": ""
|
|
2090
|
+
"default": "",
|
|
2091
|
+
description: "Icon on the left with variant prefix (e.g., 'filled_external-link')"
|
|
2072
2092
|
},
|
|
2073
2093
|
iconRight: {
|
|
2074
2094
|
type: "string",
|
|
2075
|
-
"default": ""
|
|
2095
|
+
"default": "",
|
|
2096
|
+
description: "Icon on the right with variant prefix (e.g., 'outlined_external-link')"
|
|
2076
2097
|
},
|
|
2077
2098
|
inline: {
|
|
2078
2099
|
type: "boolean",
|