@times-design-system/components-wordpress 1.16.7 → 1.16.9-alpha.4

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.
@@ -2,7 +2,7 @@
2
2
 
3
3
  Auto-generated mapping of blocks to WordPress style handles.
4
4
 
5
- **Generated:** 2026-09-29T10:07:24.593Z
5
+ **Generated:** 2026-09-30T13:41:26.752Z
6
6
 
7
7
  ## Style Handle Registration
8
8
 
@@ -20,7 +20,7 @@
20
20
  "attributes": {
21
21
  "label": {
22
22
  "type": "string",
23
- "default": "Button label",
23
+ "default": "",
24
24
  "description": "The text label displayed inside the button"
25
25
  },
26
26
  "intent": {
@@ -14,7 +14,12 @@ require_once __DIR__ . '/../../utils/sanitize-data-attributes.php';
14
14
  require_once __DIR__ . '/../../utils/sanitize-aria-attributes.php';
15
15
  require_once __DIR__ . '/../../utils/render-icon.php';
16
16
 
17
- $label = isset($attributes['label']) ? sanitize_text_field($attributes['label']) : 'Button label';
17
+ // Use inner content if available, otherwise fall back to label attribute (matching React children behavior)
18
+ if (!empty($content)) {
19
+ $label = wp_kses_post($content);
20
+ } else {
21
+ $label = isset($attributes['label']) ? sanitize_text_field($attributes['label']) : 'Button label';
22
+ }
18
23
  $intent = isset($attributes['intent']) ? sanitize_text_field($attributes['intent']) : 'primary';
19
24
  $size = isset($attributes['size']) ? sanitize_text_field($attributes['size']) : 'large';
20
25
  $behaviour = isset($attributes['behaviour']) ? sanitize_text_field($attributes['behaviour']) : 'hug';
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "_metadata": {
3
- "generatedAt": "2026-09-29T10:06:43.267Z",
3
+ "generatedAt": "2026-09-30T13:40:32.603Z",
4
4
  "sizeMap": {
5
5
  "2xsmall": {
6
6
  "width": 12,
package/dist/index.cjs CHANGED
@@ -387,7 +387,7 @@ var render$f = "file:./render.php";
387
387
  var attributes$f = {
388
388
  label: {
389
389
  type: "string",
390
- "default": "Button label",
390
+ "default": "",
391
391
  description: "The text label displayed inside the button"
392
392
  },
393
393
  intent: {
package/dist/index.js CHANGED
@@ -385,7 +385,7 @@ var render$f = "file:./render.php";
385
385
  var attributes$f = {
386
386
  label: {
387
387
  type: "string",
388
- "default": "Button label",
388
+ "default": "",
389
389
  description: "The text label displayed inside the button"
390
390
  },
391
391
  intent: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@times-design-system/components-wordpress",
3
- "version": "1.16.7",
3
+ "version": "1.16.9-alpha.4+d2de84b9",
4
4
  "type": "module",
5
5
  "description": "Times Design System Gutenberg blocks for WordPress Full Site Editing",
6
6
  "keywords": [
@@ -70,7 +70,7 @@
70
70
  "access": "public"
71
71
  },
72
72
  "dependencies": {
73
- "@times-design-system/theme-scss": "^2.11.3",
73
+ "@times-design-system/theme-scss": "^2.11.5-alpha.4+d2de84b9",
74
74
  "@wordpress/block-editor": "^12.0.0",
75
75
  "@wordpress/blocks": "^12.0.0",
76
76
  "@wordpress/components": "^25.0.0",
@@ -88,7 +88,7 @@
88
88
  "@testing-library/jest-dom": "^6.1.5",
89
89
  "@testing-library/react": "^14.1.2",
90
90
  "@testing-library/user-event": "^14.5.1",
91
- "@times-design-system/icons": "^1.2.8",
91
+ "@times-design-system/icons": "^1.2.10-alpha.4+d2de84b9",
92
92
  "@types/react": "19.2.5",
93
93
  "@vitest/ui": "^1.0.4",
94
94
  "jsdom": "^23.0.0",
@@ -101,5 +101,5 @@
101
101
  "typescript": "^5.0.0",
102
102
  "vitest": "^1.0.4"
103
103
  },
104
- "gitHead": "ad1a3cd64165966242298dd15d09ed66e8ff9e4d"
104
+ "gitHead": "d2de84b98adf918d4ed7e465d00a8880b04a3e0c"
105
105
  }