@times-design-system/components-wordpress 1.16.9-alpha.4 → 1.16.12-alpha.2.sha-bf3b9f21

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-30T13:41:26.752Z
5
+ **Generated:** 2026-10-16T13:30:33.332Z
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": "",
23
+ "default": "Button label",
24
24
  "description": "The text label displayed inside the button"
25
25
  },
26
26
  "intent": {
@@ -14,12 +14,7 @@ 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
- // 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
- }
17
+ $label = isset($attributes['label']) ? sanitize_text_field($attributes['label']) : 'Button label';
23
18
  $intent = isset($attributes['intent']) ? sanitize_text_field($attributes['intent']) : 'primary';
24
19
  $size = isset($attributes['size']) ? sanitize_text_field($attributes['size']) : 'large';
25
20
  $behaviour = isset($attributes['behaviour']) ? sanitize_text_field($attributes['behaviour']) : 'hug';
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "_metadata": {
3
- "generatedAt": "2026-09-30T13:40:32.603Z",
3
+ "generatedAt": "2026-10-16T13:29:53.031Z",
4
4
  "sizeMap": {
5
5
  "2xsmall": {
6
6
  "width": 12,
package/dist/index.cjs CHANGED
@@ -7,9 +7,9 @@ var components = require('@wordpress/components');
7
7
  function _defineProperty(e, r, t) {
8
8
  return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
9
9
  value: t,
10
- enumerable: !0,
11
- configurable: !0,
12
- writable: !0
10
+ enumerable: true,
11
+ configurable: true,
12
+ writable: true
13
13
  }) : e[r] = t, e;
14
14
  }
15
15
  function _extends() {
@@ -34,7 +34,7 @@ function ownKeys(e, r) {
34
34
  function _objectSpread2(e) {
35
35
  for (var r = 1; r < arguments.length; r++) {
36
36
  var t = null != arguments[r] ? arguments[r] : {};
37
- r % 2 ? ownKeys(Object(t), !0).forEach(function (r) {
37
+ r % 2 ? ownKeys(Object(t), true).forEach(function (r) {
38
38
  _defineProperty(e, r, t[r]);
39
39
  }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) {
40
40
  Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r));
@@ -46,7 +46,7 @@ function _toPrimitive(t, r) {
46
46
  if ("object" != typeof t || !t) return t;
47
47
  var e = t[Symbol.toPrimitive];
48
48
  if (void 0 !== e) {
49
- var i = e.call(t, r || "default");
49
+ var i = e.call(t, r);
50
50
  if ("object" != typeof i) return i;
51
51
  throw new TypeError("@@toPrimitive must return a primitive value.");
52
52
  }
@@ -387,7 +387,7 @@ var render$f = "file:./render.php";
387
387
  var attributes$f = {
388
388
  label: {
389
389
  type: "string",
390
- "default": "",
390
+ "default": "Button label",
391
391
  description: "The text label displayed inside the button"
392
392
  },
393
393
  intent: {