@spark-web/button 1.5.2 → 1.5.3
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/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,14 @@
|
|
|
1
1
|
# @spark-web/button
|
|
2
2
|
|
|
3
|
+
## 1.5.3
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#511](https://github.com/brighte-labs/spark-web/pull/511)
|
|
8
|
+
[`a2b6d91`](https://github.com/brighte-labs/spark-web/commit/a2b6d9160b7e50c6a3a9747cddc6a2891ce99ec5)
|
|
9
|
+
Thanks [@michtntbrighte](https://github.com/michtntbrighte)! - Add target to
|
|
10
|
+
ButtonLink props to support opening on new tab.
|
|
11
|
+
|
|
3
12
|
## 1.5.2
|
|
4
13
|
|
|
5
14
|
### Patch Changes
|
|
@@ -442,11 +442,12 @@ function Loading(_ref2) {
|
|
|
442
442
|
});
|
|
443
443
|
}
|
|
444
444
|
|
|
445
|
-
var _excluded = ["data", "href", "id", "prominence", "size", "tone"];
|
|
445
|
+
var _excluded = ["data", "href", "target", "id", "prominence", "size", "tone"];
|
|
446
446
|
/** The appearance of a `Button`, with the semantics of a link. */
|
|
447
447
|
var ButtonLink = ts.forwardRefWithAs(function (_ref, forwardedRef) {
|
|
448
448
|
var data = _ref.data,
|
|
449
449
|
href = _ref.href,
|
|
450
|
+
target = _ref.target,
|
|
450
451
|
id = _ref.id,
|
|
451
452
|
_ref$prominence = _ref.prominence,
|
|
452
453
|
prominence = _ref$prominence === void 0 ? 'high' : _ref$prominence,
|
|
@@ -474,6 +475,7 @@ var ButtonLink = ts.forwardRefWithAs(function (_ref, forwardedRef) {
|
|
|
474
475
|
data: data,
|
|
475
476
|
href: href,
|
|
476
477
|
id: id,
|
|
478
|
+
target: target,
|
|
477
479
|
ref: forwardedRef,
|
|
478
480
|
children: resolveButtonChildren(_objectSpread(_objectSpread({}, consumerProps), {}, {
|
|
479
481
|
isLoading: false,
|
|
@@ -442,11 +442,12 @@ function Loading(_ref2) {
|
|
|
442
442
|
});
|
|
443
443
|
}
|
|
444
444
|
|
|
445
|
-
var _excluded = ["data", "href", "id", "prominence", "size", "tone"];
|
|
445
|
+
var _excluded = ["data", "href", "target", "id", "prominence", "size", "tone"];
|
|
446
446
|
/** The appearance of a `Button`, with the semantics of a link. */
|
|
447
447
|
var ButtonLink = ts.forwardRefWithAs(function (_ref, forwardedRef) {
|
|
448
448
|
var data = _ref.data,
|
|
449
449
|
href = _ref.href,
|
|
450
|
+
target = _ref.target,
|
|
450
451
|
id = _ref.id,
|
|
451
452
|
_ref$prominence = _ref.prominence,
|
|
452
453
|
prominence = _ref$prominence === void 0 ? 'high' : _ref$prominence,
|
|
@@ -474,6 +475,7 @@ var ButtonLink = ts.forwardRefWithAs(function (_ref, forwardedRef) {
|
|
|
474
475
|
data: data,
|
|
475
476
|
href: href,
|
|
476
477
|
id: id,
|
|
478
|
+
target: target,
|
|
477
479
|
ref: forwardedRef,
|
|
478
480
|
children: resolveButtonChildren(_objectSpread(_objectSpread({}, consumerProps), {}, {
|
|
479
481
|
isLoading: false,
|
|
@@ -438,11 +438,12 @@ function Loading(_ref2) {
|
|
|
438
438
|
});
|
|
439
439
|
}
|
|
440
440
|
|
|
441
|
-
var _excluded = ["data", "href", "id", "prominence", "size", "tone"];
|
|
441
|
+
var _excluded = ["data", "href", "target", "id", "prominence", "size", "tone"];
|
|
442
442
|
/** The appearance of a `Button`, with the semantics of a link. */
|
|
443
443
|
var ButtonLink = forwardRefWithAs(function (_ref, forwardedRef) {
|
|
444
444
|
var data = _ref.data,
|
|
445
445
|
href = _ref.href,
|
|
446
|
+
target = _ref.target,
|
|
446
447
|
id = _ref.id,
|
|
447
448
|
_ref$prominence = _ref.prominence,
|
|
448
449
|
prominence = _ref$prominence === void 0 ? 'high' : _ref$prominence,
|
|
@@ -470,6 +471,7 @@ var ButtonLink = forwardRefWithAs(function (_ref, forwardedRef) {
|
|
|
470
471
|
data: data,
|
|
471
472
|
href: href,
|
|
472
473
|
id: id,
|
|
474
|
+
target: target,
|
|
473
475
|
ref: forwardedRef,
|
|
474
476
|
children: resolveButtonChildren(_objectSpread(_objectSpread({}, consumerProps), {}, {
|
|
475
477
|
isLoading: false,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@spark-web/button",
|
|
3
|
-
"version": "1.5.
|
|
3
|
+
"version": "1.5.3",
|
|
4
4
|
"homepage": "https://github.com/brighte-labs/spark-web#readme",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
"README.md"
|
|
16
16
|
],
|
|
17
17
|
"dependencies": {
|
|
18
|
-
"@babel/runtime": "^7.
|
|
18
|
+
"@babel/runtime": "^7.25.0",
|
|
19
19
|
"@emotion/css": "^11.11.2",
|
|
20
20
|
"@spark-web/a11y": "^1.4.0",
|
|
21
21
|
"@spark-web/box": "^1.2.0",
|