@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.
- package/dist/STYLE_HANDLES.md +1 -1
- package/dist/blocks/button/block.json +1 -1
- package/dist/blocks/button/render.php +1 -6
- package/dist/icon-data.json +1 -1
- package/dist/index.cjs +6 -6
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +6 -6
- package/dist/index.js.map +1 -1
- package/dist/vitest.config.d.ts +1 -1
- package/package.json +9 -31
package/dist/STYLE_HANDLES.md
CHANGED
|
@@ -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
|
-
|
|
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';
|
package/dist/icon-data.json
CHANGED
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:
|
|
11
|
-
configurable:
|
|
12
|
-
writable:
|
|
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),
|
|
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
|
|
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: {
|