@spark-web/button 5.0.2 → 5.0.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,18 @@
|
|
|
1
1
|
# @spark-web/button
|
|
2
2
|
|
|
3
|
+
## 5.0.3
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#546](https://github.com/brighte-labs/spark-web/pull/546)
|
|
8
|
+
[`a805c87`](https://github.com/brighte-labs/spark-web/commit/a805c87c9ffc2776f0235a0203de232092464aa3)
|
|
9
|
+
Thanks [@peterp-brighte](https://github.com/peterp-brighte)! - update theme
|
|
10
|
+
and pass extra props
|
|
11
|
+
|
|
12
|
+
- Updated dependencies
|
|
13
|
+
[[`a805c87`](https://github.com/brighte-labs/spark-web/commit/a805c87c9ffc2776f0235a0203de232092464aa3)]:
|
|
14
|
+
- @spark-web/theme@5.3.1
|
|
15
|
+
|
|
3
16
|
## 5.0.2
|
|
4
17
|
|
|
5
18
|
### Patch Changes
|
|
@@ -5,5 +5,5 @@ export declare type ButtonLinkProps = LinkComponentProps & CommonButtonProps;
|
|
|
5
5
|
/** The appearance of a `Button`, with the semantics of a link. */
|
|
6
6
|
export declare const ButtonLink: <Comp extends import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> = "a">(props: {
|
|
7
7
|
as?: Comp | undefined;
|
|
8
|
-
ref?: import("react").Ref<Comp extends "symbol" | "svg" | "animate" | "animateMotion" | "animateTransform" | "circle" | "
|
|
8
|
+
ref?: import("react").Ref<Comp extends "symbol" | "clipPath" | "filter" | "mask" | "marker" | "svg" | "animate" | "animateMotion" | "animateTransform" | "circle" | "defs" | "desc" | "ellipse" | "feBlend" | "feColorMatrix" | "feComponentTransfer" | "feComposite" | "feConvolveMatrix" | "feDiffuseLighting" | "feDisplacementMap" | "feDistantLight" | "feDropShadow" | "feFlood" | "feFuncA" | "feFuncB" | "feFuncG" | "feFuncR" | "feGaussianBlur" | "feImage" | "feMerge" | "feMergeNode" | "feMorphology" | "feOffset" | "fePointLight" | "feSpecularLighting" | "feSpotLight" | "feTile" | "feTurbulence" | "foreignObject" | "g" | "image" | "line" | "linearGradient" | "metadata" | "mpath" | "path" | "pattern" | "polygon" | "polyline" | "radialGradient" | "rect" | "set" | "stop" | "switch" | "text" | "textPath" | "tspan" | "use" | "view" | keyof HTMLElementTagNameMap ? (HTMLElementTagNameMap & Pick<SVGElementTagNameMap, "symbol" | "clipPath" | "filter" | "mask" | "marker" | "svg" | "animate" | "animateMotion" | "animateTransform" | "circle" | "defs" | "desc" | "ellipse" | "feBlend" | "feColorMatrix" | "feComponentTransfer" | "feComposite" | "feConvolveMatrix" | "feDiffuseLighting" | "feDisplacementMap" | "feDistantLight" | "feDropShadow" | "feFlood" | "feFuncA" | "feFuncB" | "feFuncG" | "feFuncR" | "feGaussianBlur" | "feImage" | "feMerge" | "feMergeNode" | "feMorphology" | "feOffset" | "fePointLight" | "feSpecularLighting" | "feSpotLight" | "feTile" | "feTurbulence" | "foreignObject" | "g" | "image" | "line" | "linearGradient" | "metadata" | "mpath" | "path" | "pattern" | "polygon" | "polyline" | "radialGradient" | "rect" | "set" | "stop" | "switch" | "text" | "textPath" | "tspan" | "use" | "view">)[Comp] : Comp extends new (...args: any) => any ? InstanceType<Comp> : undefined> | undefined;
|
|
9
9
|
} & Omit<import("react").PropsWithoutRef<import("react").ComponentProps<Comp>>, "as"> & ButtonLinkProps) => import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>;
|
|
@@ -478,7 +478,7 @@ var ButtonLink = ts.forwardRefWithAs(function (_ref, forwardedRef) {
|
|
|
478
478
|
_useButtonStyles2 = _slicedToArray(_useButtonStyles, 2),
|
|
479
479
|
boxProps = _useButtonStyles2[0],
|
|
480
480
|
buttonStyles = _useButtonStyles2[1];
|
|
481
|
-
return jsxRuntime.jsx(box.Box, _objectSpread(_objectSpread({}, boxProps), {}, {
|
|
481
|
+
return jsxRuntime.jsx(box.Box, _objectSpread(_objectSpread(_objectSpread({}, boxProps), {}, {
|
|
482
482
|
"aria-label": consumerProps.label,
|
|
483
483
|
as: LinkComponent,
|
|
484
484
|
asElement: "a",
|
|
@@ -487,7 +487,8 @@ var ButtonLink = ts.forwardRefWithAs(function (_ref, forwardedRef) {
|
|
|
487
487
|
href: href,
|
|
488
488
|
id: id,
|
|
489
489
|
target: target,
|
|
490
|
-
ref: forwardedRef
|
|
490
|
+
ref: forwardedRef
|
|
491
|
+
}, consumerProps), {}, {
|
|
491
492
|
children: resolveButtonChildren(_objectSpread(_objectSpread({}, consumerProps), {}, {
|
|
492
493
|
isLoading: false,
|
|
493
494
|
prominence: prominence,
|
|
@@ -478,7 +478,7 @@ var ButtonLink = ts.forwardRefWithAs(function (_ref, forwardedRef) {
|
|
|
478
478
|
_useButtonStyles2 = _slicedToArray(_useButtonStyles, 2),
|
|
479
479
|
boxProps = _useButtonStyles2[0],
|
|
480
480
|
buttonStyles = _useButtonStyles2[1];
|
|
481
|
-
return jsxRuntime.jsx(box.Box, _objectSpread(_objectSpread({}, boxProps), {}, {
|
|
481
|
+
return jsxRuntime.jsx(box.Box, _objectSpread(_objectSpread(_objectSpread({}, boxProps), {}, {
|
|
482
482
|
"aria-label": consumerProps.label,
|
|
483
483
|
as: LinkComponent,
|
|
484
484
|
asElement: "a",
|
|
@@ -487,7 +487,8 @@ var ButtonLink = ts.forwardRefWithAs(function (_ref, forwardedRef) {
|
|
|
487
487
|
href: href,
|
|
488
488
|
id: id,
|
|
489
489
|
target: target,
|
|
490
|
-
ref: forwardedRef
|
|
490
|
+
ref: forwardedRef
|
|
491
|
+
}, consumerProps), {}, {
|
|
491
492
|
children: resolveButtonChildren(_objectSpread(_objectSpread({}, consumerProps), {}, {
|
|
492
493
|
isLoading: false,
|
|
493
494
|
prominence: prominence,
|
|
@@ -474,7 +474,7 @@ var ButtonLink = forwardRefWithAs(function (_ref, forwardedRef) {
|
|
|
474
474
|
_useButtonStyles2 = _slicedToArray(_useButtonStyles, 2),
|
|
475
475
|
boxProps = _useButtonStyles2[0],
|
|
476
476
|
buttonStyles = _useButtonStyles2[1];
|
|
477
|
-
return jsx(Box, _objectSpread(_objectSpread({}, boxProps), {}, {
|
|
477
|
+
return jsx(Box, _objectSpread(_objectSpread(_objectSpread({}, boxProps), {}, {
|
|
478
478
|
"aria-label": consumerProps.label,
|
|
479
479
|
as: LinkComponent,
|
|
480
480
|
asElement: "a",
|
|
@@ -483,7 +483,8 @@ var ButtonLink = forwardRefWithAs(function (_ref, forwardedRef) {
|
|
|
483
483
|
href: href,
|
|
484
484
|
id: id,
|
|
485
485
|
target: target,
|
|
486
|
-
ref: forwardedRef
|
|
486
|
+
ref: forwardedRef
|
|
487
|
+
}, consumerProps), {}, {
|
|
487
488
|
children: resolveButtonChildren(_objectSpread(_objectSpread({}, consumerProps), {}, {
|
|
488
489
|
isLoading: false,
|
|
489
490
|
prominence: prominence,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@spark-web/button",
|
|
3
|
-
"version": "5.0.
|
|
3
|
+
"version": "5.0.3",
|
|
4
4
|
"homepage": "https://github.com/brighte-labs/spark-web#readme",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
"@spark-web/link": "^5.0.0",
|
|
24
24
|
"@spark-web/spinner": "^5.0.0",
|
|
25
25
|
"@spark-web/text": "^5.1.0",
|
|
26
|
-
"@spark-web/theme": "^5.
|
|
26
|
+
"@spark-web/theme": "^5.3.1",
|
|
27
27
|
"@spark-web/utils": "^5.0.0"
|
|
28
28
|
},
|
|
29
29
|
"devDependencies": {
|