@react-spectrum/link 3.6.6 → 3.6.7
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/Link.main.js +7 -7
- package/dist/Link.mjs +8 -8
- package/dist/Link.module.js +7 -7
- package/dist/link_vars_css.mjs +1 -1
- package/package.json +8 -8
package/dist/Link.main.js
CHANGED
|
@@ -38,24 +38,24 @@ $parcel$export(module.exports, "Link", () => $1148fb7fc40f1ce2$export$a6c7ac8248
|
|
|
38
38
|
|
|
39
39
|
function $1148fb7fc40f1ce2$export$a6c7ac8248d6e38a(props) {
|
|
40
40
|
props = (0, $jQffG$reactspectrumprovider.useProviderProps)(props);
|
|
41
|
-
props = (0, $jQffG$reactspectrumutils.useSlotProps)(props,
|
|
42
|
-
let { variant: variant =
|
|
41
|
+
props = (0, $jQffG$reactspectrumutils.useSlotProps)(props, 'link');
|
|
42
|
+
let { variant: variant = 'primary', isQuiet: isQuiet, children: children, href: // @ts-ignore
|
|
43
43
|
href } = props;
|
|
44
44
|
let { styleProps: styleProps } = (0, $jQffG$reactspectrumutils.useStyleProps)(props);
|
|
45
45
|
let { hoverProps: hoverProps, isHovered: isHovered } = (0, $jQffG$reactariainteractions.useHover)({});
|
|
46
46
|
let ref = (0, $jQffG$react.useRef)(null);
|
|
47
47
|
let { linkProps: linkProps } = (0, $jQffG$reactarialink.useLink)({
|
|
48
48
|
...props,
|
|
49
|
-
elementType: !href && typeof children ===
|
|
49
|
+
elementType: !href && typeof children === 'string' ? 'span' : 'a'
|
|
50
50
|
}, ref);
|
|
51
51
|
let domProps = {
|
|
52
52
|
...styleProps,
|
|
53
53
|
...(0, $jQffG$reactariautils.mergeProps)(linkProps, hoverProps),
|
|
54
54
|
ref: ref,
|
|
55
|
-
className: (0, $jQffG$reactspectrumutils.classNames)((0, ($parcel$interopDefault($094ce2289235a9fa$exports))),
|
|
56
|
-
|
|
55
|
+
className: (0, $jQffG$reactspectrumutils.classNames)((0, ($parcel$interopDefault($094ce2289235a9fa$exports))), 'spectrum-Link', {
|
|
56
|
+
'spectrum-Link--quiet': isQuiet,
|
|
57
57
|
[`spectrum-Link--${variant}`]: variant,
|
|
58
|
-
|
|
58
|
+
'is-hovered': isHovered
|
|
59
59
|
}, styleProps.className)
|
|
60
60
|
};
|
|
61
61
|
let link;
|
|
@@ -70,7 +70,7 @@ function $1148fb7fc40f1ce2$export$a6c7ac8248d6e38a(props) {
|
|
|
70
70
|
});
|
|
71
71
|
}
|
|
72
72
|
return /*#__PURE__*/ (0, ($parcel$interopDefault($jQffG$react))).createElement((0, $jQffG$reactariafocus.FocusRing), {
|
|
73
|
-
focusRingClass: (0, $jQffG$reactspectrumutils.classNames)((0, ($parcel$interopDefault($094ce2289235a9fa$exports))),
|
|
73
|
+
focusRingClass: (0, $jQffG$reactspectrumutils.classNames)((0, ($parcel$interopDefault($094ce2289235a9fa$exports))), 'focus-ring')
|
|
74
74
|
}, link);
|
|
75
75
|
}
|
|
76
76
|
|
package/dist/Link.mjs
CHANGED
|
@@ -32,24 +32,24 @@ function $parcel$interopDefault(a) {
|
|
|
32
32
|
|
|
33
33
|
function $3c5235ac12f2c9bb$export$a6c7ac8248d6e38a(props) {
|
|
34
34
|
props = (0, $35Vau$useProviderProps)(props);
|
|
35
|
-
props = (0, $35Vau$useSlotProps)(props,
|
|
36
|
-
let { variant: variant =
|
|
35
|
+
props = (0, $35Vau$useSlotProps)(props, 'link');
|
|
36
|
+
let { variant: variant = 'primary', isQuiet: isQuiet, children: children, href: // @ts-ignore
|
|
37
37
|
href } = props;
|
|
38
38
|
let { styleProps: styleProps } = (0, $35Vau$useStyleProps)(props);
|
|
39
39
|
let { hoverProps: hoverProps, isHovered: isHovered } = (0, $35Vau$useHover)({});
|
|
40
40
|
let ref = (0, $35Vau$useRef)(null);
|
|
41
41
|
let { linkProps: linkProps } = (0, $35Vau$useLink)({
|
|
42
42
|
...props,
|
|
43
|
-
elementType: !href && typeof children ===
|
|
43
|
+
elementType: !href && typeof children === 'string' ? 'span' : 'a'
|
|
44
44
|
}, ref);
|
|
45
45
|
let domProps = {
|
|
46
46
|
...styleProps,
|
|
47
47
|
...(0, $35Vau$mergeProps)(linkProps, hoverProps),
|
|
48
48
|
ref: ref,
|
|
49
|
-
className: (0, $35Vau$classNames)((0, ($parcel$interopDefault($35Vau$link_vars_cssmodulejs))),
|
|
50
|
-
|
|
49
|
+
className: (0, $35Vau$classNames)((0, ($parcel$interopDefault($35Vau$link_vars_cssmodulejs))), 'spectrum-Link', {
|
|
50
|
+
'spectrum-Link--quiet': isQuiet,
|
|
51
51
|
[`spectrum-Link--${variant}`]: variant,
|
|
52
|
-
|
|
52
|
+
'is-hovered': isHovered
|
|
53
53
|
}, styleProps.className)
|
|
54
54
|
};
|
|
55
55
|
let link;
|
|
@@ -64,10 +64,10 @@ function $3c5235ac12f2c9bb$export$a6c7ac8248d6e38a(props) {
|
|
|
64
64
|
});
|
|
65
65
|
}
|
|
66
66
|
return /*#__PURE__*/ (0, $35Vau$react).createElement((0, $35Vau$FocusRing), {
|
|
67
|
-
focusRingClass: (0, $35Vau$classNames)((0, ($parcel$interopDefault($35Vau$link_vars_cssmodulejs))),
|
|
67
|
+
focusRingClass: (0, $35Vau$classNames)((0, ($parcel$interopDefault($35Vau$link_vars_cssmodulejs))), 'focus-ring')
|
|
68
68
|
}, link);
|
|
69
69
|
}
|
|
70
70
|
|
|
71
71
|
|
|
72
72
|
export {$3c5235ac12f2c9bb$export$a6c7ac8248d6e38a as Link};
|
|
73
|
-
//# sourceMappingURL=Link.
|
|
73
|
+
//# sourceMappingURL=Link.module.js.map
|
package/dist/Link.module.js
CHANGED
|
@@ -32,24 +32,24 @@ function $parcel$interopDefault(a) {
|
|
|
32
32
|
|
|
33
33
|
function $3c5235ac12f2c9bb$export$a6c7ac8248d6e38a(props) {
|
|
34
34
|
props = (0, $35Vau$useProviderProps)(props);
|
|
35
|
-
props = (0, $35Vau$useSlotProps)(props,
|
|
36
|
-
let { variant: variant =
|
|
35
|
+
props = (0, $35Vau$useSlotProps)(props, 'link');
|
|
36
|
+
let { variant: variant = 'primary', isQuiet: isQuiet, children: children, href: // @ts-ignore
|
|
37
37
|
href } = props;
|
|
38
38
|
let { styleProps: styleProps } = (0, $35Vau$useStyleProps)(props);
|
|
39
39
|
let { hoverProps: hoverProps, isHovered: isHovered } = (0, $35Vau$useHover)({});
|
|
40
40
|
let ref = (0, $35Vau$useRef)(null);
|
|
41
41
|
let { linkProps: linkProps } = (0, $35Vau$useLink)({
|
|
42
42
|
...props,
|
|
43
|
-
elementType: !href && typeof children ===
|
|
43
|
+
elementType: !href && typeof children === 'string' ? 'span' : 'a'
|
|
44
44
|
}, ref);
|
|
45
45
|
let domProps = {
|
|
46
46
|
...styleProps,
|
|
47
47
|
...(0, $35Vau$mergeProps)(linkProps, hoverProps),
|
|
48
48
|
ref: ref,
|
|
49
|
-
className: (0, $35Vau$classNames)((0, ($parcel$interopDefault($35Vau$link_vars_cssmodulejs))),
|
|
50
|
-
|
|
49
|
+
className: (0, $35Vau$classNames)((0, ($parcel$interopDefault($35Vau$link_vars_cssmodulejs))), 'spectrum-Link', {
|
|
50
|
+
'spectrum-Link--quiet': isQuiet,
|
|
51
51
|
[`spectrum-Link--${variant}`]: variant,
|
|
52
|
-
|
|
52
|
+
'is-hovered': isHovered
|
|
53
53
|
}, styleProps.className)
|
|
54
54
|
};
|
|
55
55
|
let link;
|
|
@@ -64,7 +64,7 @@ function $3c5235ac12f2c9bb$export$a6c7ac8248d6e38a(props) {
|
|
|
64
64
|
});
|
|
65
65
|
}
|
|
66
66
|
return /*#__PURE__*/ (0, $35Vau$react).createElement((0, $35Vau$FocusRing), {
|
|
67
|
-
focusRingClass: (0, $35Vau$classNames)((0, ($parcel$interopDefault($35Vau$link_vars_cssmodulejs))),
|
|
67
|
+
focusRingClass: (0, $35Vau$classNames)((0, ($parcel$interopDefault($35Vau$link_vars_cssmodulejs))), 'focus-ring')
|
|
68
68
|
}, link);
|
|
69
69
|
}
|
|
70
70
|
|
package/dist/link_vars_css.mjs
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@react-spectrum/link",
|
|
3
|
-
"version": "3.6.
|
|
3
|
+
"version": "3.6.7",
|
|
4
4
|
"description": "Spectrum UI components in React",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"main": "dist/main.js",
|
|
@@ -36,12 +36,12 @@
|
|
|
36
36
|
"url": "https://github.com/adobe/react-spectrum"
|
|
37
37
|
},
|
|
38
38
|
"dependencies": {
|
|
39
|
-
"@react-aria/focus": "^3.17.
|
|
40
|
-
"@react-aria/interactions": "^3.21.
|
|
41
|
-
"@react-aria/link": "^3.7.
|
|
42
|
-
"@react-aria/utils": "^3.24.
|
|
43
|
-
"@react-spectrum/utils": "^3.11.
|
|
44
|
-
"@react-types/link": "^3.5.
|
|
39
|
+
"@react-aria/focus": "^3.17.1",
|
|
40
|
+
"@react-aria/interactions": "^3.21.3",
|
|
41
|
+
"@react-aria/link": "^3.7.1",
|
|
42
|
+
"@react-aria/utils": "^3.24.1",
|
|
43
|
+
"@react-spectrum/utils": "^3.11.7",
|
|
44
|
+
"@react-types/link": "^3.5.5",
|
|
45
45
|
"@swc/helpers": "^0.5.0"
|
|
46
46
|
},
|
|
47
47
|
"devDependencies": {
|
|
@@ -54,5 +54,5 @@
|
|
|
54
54
|
"publishConfig": {
|
|
55
55
|
"access": "public"
|
|
56
56
|
},
|
|
57
|
-
"gitHead": "
|
|
57
|
+
"gitHead": "b77d7d594dff4dcfb5359bffbcfd18142b146433"
|
|
58
58
|
}
|