@spark-web/text-link
Advanced tools
+13
-0
| # @spark-web/text-link | ||
| ## 5.3.3 | ||
| ### Patch Changes | ||
| - [#704](https://github.com/brighte-labs/spark-web/pull/704) | ||
| [`67ad8de`](https://github.com/brighte-labs/spark-web/commit/67ad8de8ce99bedb733293bbb23d554ae48a9f1f) | ||
| Thanks [@mkt-brighte](https://github.com/mkt-brighte)! - Support bravo theme | ||
| for button component | ||
| - Updated dependencies | ||
| [[`67ad8de`](https://github.com/brighte-labs/spark-web/commit/67ad8de8ce99bedb733293bbb23d554ae48a9f1f)]: | ||
| - @spark-web/theme@5.12.4 | ||
| ## 5.3.2 | ||
@@ -4,0 +17,0 @@ |
@@ -20,3 +20,3 @@ 'use strict'; | ||
| function useTextLink(tag, tone, weight, textDecoration) { | ||
| var _theme$components$tex; | ||
| var _theme$components$tex, _textLinkStyle$fontWe; | ||
| var textContext = text.useTextContext(); | ||
@@ -36,3 +36,3 @@ | ||
| textDecoration: textDecoration !== null && textDecoration !== void 0 ? textDecoration : textLinkStyle === null || textLinkStyle === void 0 ? void 0 : textLinkStyle.textDecoration, | ||
| fontWeight: weight ? theme$1.typography.fontWeight[weight] : textLinkStyle === null || textLinkStyle === void 0 ? void 0 : textLinkStyle.fontWeight, | ||
| fontWeight: weight ? theme$1.typography.fontWeight[weight] : theme$1.typography.fontWeight[(_textLinkStyle$fontWe = textLinkStyle === null || textLinkStyle === void 0 ? void 0 : textLinkStyle.fontWeight) !== null && _textLinkStyle$fontWe !== void 0 ? _textLinkStyle$fontWe : 'regular'], | ||
| '&:focus': textLinkStyle === null || textLinkStyle === void 0 ? void 0 : textLinkStyle.focus, | ||
@@ -39,0 +39,0 @@ '&:active': textLinkStyle === null || textLinkStyle === void 0 ? void 0 : textLinkStyle.active, |
@@ -20,3 +20,3 @@ 'use strict'; | ||
| function useTextLink(tag, tone, weight, textDecoration) { | ||
| var _theme$components$tex; | ||
| var _theme$components$tex, _textLinkStyle$fontWe; | ||
| var textContext = text.useTextContext(); | ||
@@ -36,3 +36,3 @@ | ||
| textDecoration: textDecoration !== null && textDecoration !== void 0 ? textDecoration : textLinkStyle === null || textLinkStyle === void 0 ? void 0 : textLinkStyle.textDecoration, | ||
| fontWeight: weight ? theme$1.typography.fontWeight[weight] : textLinkStyle === null || textLinkStyle === void 0 ? void 0 : textLinkStyle.fontWeight, | ||
| fontWeight: weight ? theme$1.typography.fontWeight[weight] : theme$1.typography.fontWeight[(_textLinkStyle$fontWe = textLinkStyle === null || textLinkStyle === void 0 ? void 0 : textLinkStyle.fontWeight) !== null && _textLinkStyle$fontWe !== void 0 ? _textLinkStyle$fontWe : 'regular'], | ||
| '&:focus': textLinkStyle === null || textLinkStyle === void 0 ? void 0 : textLinkStyle.focus, | ||
@@ -39,0 +39,0 @@ '&:active': textLinkStyle === null || textLinkStyle === void 0 ? void 0 : textLinkStyle.active, |
@@ -16,3 +16,3 @@ import _objectSpread from '@babel/runtime/helpers/esm/objectSpread2'; | ||
| function useTextLink(tag, tone, weight, textDecoration) { | ||
| var _theme$components$tex; | ||
| var _theme$components$tex, _textLinkStyle$fontWe; | ||
| var textContext = useTextContext(); | ||
@@ -32,3 +32,3 @@ | ||
| textDecoration: textDecoration !== null && textDecoration !== void 0 ? textDecoration : textLinkStyle === null || textLinkStyle === void 0 ? void 0 : textLinkStyle.textDecoration, | ||
| fontWeight: weight ? theme.typography.fontWeight[weight] : textLinkStyle === null || textLinkStyle === void 0 ? void 0 : textLinkStyle.fontWeight, | ||
| fontWeight: weight ? theme.typography.fontWeight[weight] : theme.typography.fontWeight[(_textLinkStyle$fontWe = textLinkStyle === null || textLinkStyle === void 0 ? void 0 : textLinkStyle.fontWeight) !== null && _textLinkStyle$fontWe !== void 0 ? _textLinkStyle$fontWe : 'regular'], | ||
| '&:focus': textLinkStyle === null || textLinkStyle === void 0 ? void 0 : textLinkStyle.focus, | ||
@@ -35,0 +35,0 @@ '&:active': textLinkStyle === null || textLinkStyle === void 0 ? void 0 : textLinkStyle.active, |
+2
-2
| { | ||
| "name": "@spark-web/text-link", | ||
| "version": "5.3.2", | ||
| "version": "5.3.3", | ||
| "homepage": "https://github.com/brighte-labs/spark-web#readme", | ||
@@ -24,3 +24,3 @@ "repository": { | ||
| "@spark-web/text": "^5.2.3", | ||
| "@spark-web/theme": "^5.12.1", | ||
| "@spark-web/theme": "^5.12.4", | ||
| "@spark-web/utils": "^5.0.0" | ||
@@ -27,0 +27,0 @@ }, |
45673
2.1%Updated