@auth0/quantum-product 1.5.15 → 1.5.16
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.
|
@@ -61,6 +61,7 @@ var Root = (0, styled_1.styled)(link_1.Link, { name: breadcrumbs_item_classes_1.
|
|
|
61
61
|
return (_b = {
|
|
62
62
|
display: 'flex',
|
|
63
63
|
cursor: 'pointer',
|
|
64
|
+
textDecoration: 'none',
|
|
64
65
|
// easier react-router-dom integration
|
|
65
66
|
'&.active': {
|
|
66
67
|
color: theme.tokens.color_fg_bold,
|
|
@@ -32,6 +32,7 @@ var Root = styled(Link, { name: BreadcrumbsItemComponentName, slot: 'Root' })(fu
|
|
|
32
32
|
return (_b = {
|
|
33
33
|
display: 'flex',
|
|
34
34
|
cursor: 'pointer',
|
|
35
|
+
textDecoration: 'none',
|
|
35
36
|
// easier react-router-dom integration
|
|
36
37
|
'&.active': {
|
|
37
38
|
color: theme.tokens.color_fg_bold,
|
package/esm/link/link.js
CHANGED
|
@@ -72,7 +72,7 @@ var Root = styled(Text, { name: linkComponentName, slot: 'Root' })(function (_a)
|
|
|
72
72
|
},
|
|
73
73
|
};
|
|
74
74
|
var colorStyles = colorStyleMap[ownerState.color];
|
|
75
|
-
return __assign(__assign({ display: 'inline', alignItems: 'center', textDecoration: 'none', borderRadius: 2, outline: 'none', color: colorStyles.color, '&:focus-visible': colorStyles.focusStyles || theme.mixins.focusRing(), '&:hover': __assign({ textDecoration: ownerState.underline === 'hover' ? 'underline' : 'none' }, colorStyles.hoverStyles), '&:active': __assign({}, colorStyles.activeStyles) }, (ownerState.component === 'button' && {
|
|
75
|
+
return __assign(__assign({ display: 'inline', alignItems: 'center', textDecoration: ownerState.underline === 'none' ? 'none' : 'underline', borderRadius: 2, outline: 'none', color: colorStyles.color, '&:focus-visible': colorStyles.focusStyles || theme.mixins.focusRing(), '&:hover': __assign({ textDecoration: ownerState.underline === 'hover' ? 'underline' : 'none' }, colorStyles.hoverStyles), '&:active': __assign({}, colorStyles.activeStyles) }, (ownerState.component === 'button' && {
|
|
76
76
|
display: 'inline-flex',
|
|
77
77
|
verticalAlign: 'initial',
|
|
78
78
|
position: 'relative',
|
|
@@ -122,7 +122,7 @@ var EndIcon = styled('span', { name: linkComponentName, slot: 'EndIcon' })(funct
|
|
|
122
122
|
});
|
|
123
123
|
});
|
|
124
124
|
export var Link = React.forwardRef(function (props, ref) {
|
|
125
|
-
var className = props.className, children = props.children, startIcon = props.startIcon, endIcon = props.endIcon, _a = props.color, color = _a === void 0 ? 'primary' : _a, _b = props.component, component = _b === void 0 ? 'a' : _b, _c = props.underline, underline = _c === void 0 ? '
|
|
125
|
+
var className = props.className, children = props.children, startIcon = props.startIcon, endIcon = props.endIcon, _a = props.color, color = _a === void 0 ? 'primary' : _a, _b = props.component, component = _b === void 0 ? 'a' : _b, _c = props.underline, underline = _c === void 0 ? 'hover' : _c, _d = props.variant, variant = _d === void 0 ? 'inherit' : _d,
|
|
126
126
|
// remove to avoid forwarding
|
|
127
127
|
propClasses = props.classes, rootProps = __rest(props, ["className", "children", "startIcon", "endIcon", "color", "component", "underline", "variant", "classes"]);
|
|
128
128
|
var classes = useMergedClasses(linkClasses, getLinkUtilityClass, propClasses);
|
package/link/link.js
CHANGED
|
@@ -101,7 +101,7 @@ var Root = (0, styled_1.styled)(text_1.Text, { name: link_classes_1.linkComponen
|
|
|
101
101
|
},
|
|
102
102
|
};
|
|
103
103
|
var colorStyles = colorStyleMap[ownerState.color];
|
|
104
|
-
return __assign(__assign({ display: 'inline', alignItems: 'center', textDecoration: 'none', borderRadius: 2, outline: 'none', color: colorStyles.color, '&:focus-visible': colorStyles.focusStyles || theme.mixins.focusRing(), '&:hover': __assign({ textDecoration: ownerState.underline === 'hover' ? 'underline' : 'none' }, colorStyles.hoverStyles), '&:active': __assign({}, colorStyles.activeStyles) }, (ownerState.component === 'button' && {
|
|
104
|
+
return __assign(__assign({ display: 'inline', alignItems: 'center', textDecoration: ownerState.underline === 'none' ? 'none' : 'underline', borderRadius: 2, outline: 'none', color: colorStyles.color, '&:focus-visible': colorStyles.focusStyles || theme.mixins.focusRing(), '&:hover': __assign({ textDecoration: ownerState.underline === 'hover' ? 'underline' : 'none' }, colorStyles.hoverStyles), '&:active': __assign({}, colorStyles.activeStyles) }, (ownerState.component === 'button' && {
|
|
105
105
|
display: 'inline-flex',
|
|
106
106
|
verticalAlign: 'initial',
|
|
107
107
|
position: 'relative',
|
|
@@ -151,7 +151,7 @@ var EndIcon = (0, styled_1.styled)('span', { name: link_classes_1.linkComponentN
|
|
|
151
151
|
});
|
|
152
152
|
});
|
|
153
153
|
exports.Link = React.forwardRef(function (props, ref) {
|
|
154
|
-
var className = props.className, children = props.children, startIcon = props.startIcon, endIcon = props.endIcon, _a = props.color, color = _a === void 0 ? 'primary' : _a, _b = props.component, component = _b === void 0 ? 'a' : _b, _c = props.underline, underline = _c === void 0 ? '
|
|
154
|
+
var className = props.className, children = props.children, startIcon = props.startIcon, endIcon = props.endIcon, _a = props.color, color = _a === void 0 ? 'primary' : _a, _b = props.component, component = _b === void 0 ? 'a' : _b, _c = props.underline, underline = _c === void 0 ? 'hover' : _c, _d = props.variant, variant = _d === void 0 ? 'inherit' : _d,
|
|
155
155
|
// remove to avoid forwarding
|
|
156
156
|
propClasses = props.classes, rootProps = __rest(props, ["className", "children", "startIcon", "endIcon", "color", "component", "underline", "variant", "classes"]);
|
|
157
157
|
var classes = (0, classes_1.useMergedClasses)(link_classes_1.linkClasses, link_classes_1.getLinkUtilityClass, propClasses);
|