@react-spectrum/link 3.2.1 → 3.2.2
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/main.js +44 -44
- package/dist/module.js +44 -44
- package/package.json +8 -8
package/dist/main.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
require("./main.css");
|
|
2
|
-
var $
|
|
3
|
-
var $
|
|
4
|
-
var $
|
|
5
|
-
var $
|
|
6
|
-
var $
|
|
7
|
-
var $
|
|
8
|
-
var $
|
|
2
|
+
var $1vAVm$reactspectrumutils = require("@react-spectrum/utils");
|
|
3
|
+
var $1vAVm$reactariafocus = require("@react-aria/focus");
|
|
4
|
+
var $1vAVm$reactariautils = require("@react-aria/utils");
|
|
5
|
+
var $1vAVm$react = require("react");
|
|
6
|
+
var $1vAVm$reactariainteractions = require("@react-aria/interactions");
|
|
7
|
+
var $1vAVm$reactarialink = require("@react-aria/link");
|
|
8
|
+
var $1vAVm$reactspectrumprovider = require("@react-spectrum/provider");
|
|
9
9
|
|
|
10
10
|
function $parcel$exportWildcard(dest, source) {
|
|
11
11
|
Object.keys(source).forEach(function(key) {
|
|
@@ -29,62 +29,62 @@ function $parcel$interopDefault(a) {
|
|
|
29
29
|
function $parcel$export(e, n, v, s) {
|
|
30
30
|
Object.defineProperty(e, n, {get: v, set: s, enumerable: true, configurable: true});
|
|
31
31
|
}
|
|
32
|
-
var $
|
|
32
|
+
var $c813c9dd9e1d28bf$exports = {};
|
|
33
33
|
|
|
34
|
-
$parcel$export($
|
|
34
|
+
$parcel$export($c813c9dd9e1d28bf$exports, "Link", () => $c813c9dd9e1d28bf$export$a6c7ac8248d6e38a);
|
|
35
35
|
|
|
36
36
|
|
|
37
37
|
|
|
38
38
|
|
|
39
|
-
var $
|
|
39
|
+
var $451aaf8155691d97$exports = {};
|
|
40
40
|
|
|
41
|
-
$parcel$export($
|
|
42
|
-
$parcel$export($
|
|
43
|
-
$parcel$export($
|
|
44
|
-
$parcel$export($
|
|
45
|
-
$parcel$export($
|
|
46
|
-
$parcel$export($
|
|
47
|
-
$parcel$export($
|
|
48
|
-
var $
|
|
49
|
-
var $
|
|
50
|
-
var $
|
|
51
|
-
var $
|
|
52
|
-
var $
|
|
53
|
-
var $
|
|
54
|
-
var $
|
|
55
|
-
$
|
|
56
|
-
$
|
|
57
|
-
$
|
|
58
|
-
$
|
|
59
|
-
$
|
|
60
|
-
$
|
|
61
|
-
$
|
|
41
|
+
$parcel$export($451aaf8155691d97$exports, "spectrum-Link", () => $451aaf8155691d97$export$d85dd8b94975f388, (v) => $451aaf8155691d97$export$d85dd8b94975f388 = v);
|
|
42
|
+
$parcel$export($451aaf8155691d97$exports, "is-hovered", () => $451aaf8155691d97$export$b8813cd5d7824ce7, (v) => $451aaf8155691d97$export$b8813cd5d7824ce7 = v);
|
|
43
|
+
$parcel$export($451aaf8155691d97$exports, "focus-ring", () => $451aaf8155691d97$export$f39a09f249340e2a, (v) => $451aaf8155691d97$export$f39a09f249340e2a = v);
|
|
44
|
+
$parcel$export($451aaf8155691d97$exports, "is-disabled", () => $451aaf8155691d97$export$d35bc1e505d1ebbf, (v) => $451aaf8155691d97$export$d35bc1e505d1ebbf = v);
|
|
45
|
+
$parcel$export($451aaf8155691d97$exports, "spectrum-Link--secondary", () => $451aaf8155691d97$export$ab09ed292dcb9a79, (v) => $451aaf8155691d97$export$ab09ed292dcb9a79 = v);
|
|
46
|
+
$parcel$export($451aaf8155691d97$exports, "spectrum-Link--overBackground", () => $451aaf8155691d97$export$679b6267148797da, (v) => $451aaf8155691d97$export$679b6267148797da = v);
|
|
47
|
+
$parcel$export($451aaf8155691d97$exports, "spectrum-Link--quiet", () => $451aaf8155691d97$export$81921ea93435e997, (v) => $451aaf8155691d97$export$81921ea93435e997 = v);
|
|
48
|
+
var $451aaf8155691d97$export$d85dd8b94975f388;
|
|
49
|
+
var $451aaf8155691d97$export$b8813cd5d7824ce7;
|
|
50
|
+
var $451aaf8155691d97$export$f39a09f249340e2a;
|
|
51
|
+
var $451aaf8155691d97$export$d35bc1e505d1ebbf;
|
|
52
|
+
var $451aaf8155691d97$export$ab09ed292dcb9a79;
|
|
53
|
+
var $451aaf8155691d97$export$679b6267148797da;
|
|
54
|
+
var $451aaf8155691d97$export$81921ea93435e997;
|
|
55
|
+
$451aaf8155691d97$export$d85dd8b94975f388 = "spectrum-Link_5a03c7";
|
|
56
|
+
$451aaf8155691d97$export$b8813cd5d7824ce7 = "is-hovered_5a03c7";
|
|
57
|
+
$451aaf8155691d97$export$f39a09f249340e2a = "focus-ring_5a03c7";
|
|
58
|
+
$451aaf8155691d97$export$d35bc1e505d1ebbf = "is-disabled_5a03c7";
|
|
59
|
+
$451aaf8155691d97$export$ab09ed292dcb9a79 = "spectrum-Link--secondary_5a03c7";
|
|
60
|
+
$451aaf8155691d97$export$679b6267148797da = "spectrum-Link--overBackground_5a03c7";
|
|
61
|
+
$451aaf8155691d97$export$81921ea93435e997 = "spectrum-Link--quiet_5a03c7";
|
|
62
62
|
|
|
63
63
|
|
|
64
64
|
|
|
65
65
|
|
|
66
66
|
|
|
67
|
-
function $
|
|
68
|
-
props = $
|
|
69
|
-
props = $
|
|
67
|
+
function $c813c9dd9e1d28bf$export$a6c7ac8248d6e38a(props) {
|
|
68
|
+
props = $1vAVm$reactspectrumprovider.useProviderProps(props);
|
|
69
|
+
props = $1vAVm$reactspectrumutils.useSlotProps(props, 'link');
|
|
70
70
|
let { variant: variant = 'primary' , isQuiet: isQuiet , children: children , href: // @ts-ignore
|
|
71
71
|
href } = props;
|
|
72
|
-
let { styleProps: styleProps } = $
|
|
73
|
-
let { hoverProps: hoverProps , isHovered: isHovered } = $
|
|
72
|
+
let { styleProps: styleProps } = $1vAVm$reactspectrumutils.useStyleProps(props);
|
|
73
|
+
let { hoverProps: hoverProps , isHovered: isHovered } = $1vAVm$reactariainteractions.useHover({
|
|
74
74
|
});
|
|
75
75
|
if (href) console.warn('href is deprecated, please use an anchor element as children');
|
|
76
|
-
let ref = $
|
|
77
|
-
let { linkProps: linkProps } = $
|
|
76
|
+
let ref = $1vAVm$react.useRef();
|
|
77
|
+
let { linkProps: linkProps } = $1vAVm$reactarialink.useLink({
|
|
78
78
|
...props,
|
|
79
79
|
elementType: typeof children === 'string' ? 'span' : 'a'
|
|
80
80
|
}, ref);
|
|
81
|
-
return(/*#__PURE__*/ ($parcel$interopDefault($
|
|
82
|
-
focusRingClass: $
|
|
83
|
-
}, /*#__PURE__*/ ($parcel$interopDefault($
|
|
81
|
+
return(/*#__PURE__*/ ($parcel$interopDefault($1vAVm$react)).createElement($1vAVm$reactariafocus.FocusRing, {
|
|
82
|
+
focusRingClass: $1vAVm$reactspectrumutils.classNames((/*@__PURE__*/$parcel$interopDefault($451aaf8155691d97$exports)), 'focus-ring')
|
|
83
|
+
}, /*#__PURE__*/ ($parcel$interopDefault($1vAVm$react)).cloneElement($1vAVm$reactspectrumutils.getWrappedElement(children), {
|
|
84
84
|
...styleProps,
|
|
85
|
-
...$
|
|
85
|
+
...$1vAVm$reactariautils.mergeProps(linkProps, hoverProps),
|
|
86
86
|
ref: ref,
|
|
87
|
-
className: $
|
|
87
|
+
className: $1vAVm$reactspectrumutils.classNames((/*@__PURE__*/$parcel$interopDefault($451aaf8155691d97$exports)), 'spectrum-Link', {
|
|
88
88
|
'spectrum-Link--quiet': isQuiet,
|
|
89
89
|
[`spectrum-Link--${variant}`]: variant,
|
|
90
90
|
'is-hovered': isHovered
|
|
@@ -93,7 +93,7 @@ function $d7a9466b5d41752d$export$a6c7ac8248d6e38a(props) {
|
|
|
93
93
|
}
|
|
94
94
|
|
|
95
95
|
|
|
96
|
-
$parcel$exportWildcard(module.exports, $
|
|
96
|
+
$parcel$exportWildcard(module.exports, $c813c9dd9e1d28bf$exports);
|
|
97
97
|
|
|
98
98
|
|
|
99
99
|
//# sourceMappingURL=main.js.map
|
package/dist/module.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import "./main.css";
|
|
2
|
-
import {useSlotProps as $
|
|
3
|
-
import {FocusRing as $
|
|
4
|
-
import {mergeProps as $
|
|
5
|
-
import $
|
|
6
|
-
import {useHover as $
|
|
7
|
-
import {useLink as $
|
|
8
|
-
import {useProviderProps as $
|
|
2
|
+
import {useSlotProps as $iIJLa$useSlotProps, useStyleProps as $iIJLa$useStyleProps, classNames as $iIJLa$classNames, getWrappedElement as $iIJLa$getWrappedElement} from "@react-spectrum/utils";
|
|
3
|
+
import {FocusRing as $iIJLa$FocusRing} from "@react-aria/focus";
|
|
4
|
+
import {mergeProps as $iIJLa$mergeProps} from "@react-aria/utils";
|
|
5
|
+
import $iIJLa$react, {useRef as $iIJLa$useRef} from "react";
|
|
6
|
+
import {useHover as $iIJLa$useHover} from "@react-aria/interactions";
|
|
7
|
+
import {useLink as $iIJLa$useLink} from "@react-aria/link";
|
|
8
|
+
import {useProviderProps as $iIJLa$useProviderProps} from "@react-spectrum/provider";
|
|
9
9
|
|
|
10
10
|
function $parcel$interopDefault(a) {
|
|
11
11
|
return a && a.__esModule ? a.default : a;
|
|
@@ -13,62 +13,62 @@ function $parcel$interopDefault(a) {
|
|
|
13
13
|
function $parcel$export(e, n, v, s) {
|
|
14
14
|
Object.defineProperty(e, n, {get: v, set: s, enumerable: true, configurable: true});
|
|
15
15
|
}
|
|
16
|
-
var $
|
|
16
|
+
var $679ffbd705ba6cf7$exports = {};
|
|
17
17
|
|
|
18
|
-
$parcel$export($
|
|
18
|
+
$parcel$export($679ffbd705ba6cf7$exports, "Link", () => $679ffbd705ba6cf7$export$a6c7ac8248d6e38a);
|
|
19
19
|
|
|
20
20
|
|
|
21
21
|
|
|
22
22
|
|
|
23
|
-
var $
|
|
23
|
+
var $c9f2f68a832cd862$exports = {};
|
|
24
24
|
|
|
25
|
-
$parcel$export($
|
|
26
|
-
$parcel$export($
|
|
27
|
-
$parcel$export($
|
|
28
|
-
$parcel$export($
|
|
29
|
-
$parcel$export($
|
|
30
|
-
$parcel$export($
|
|
31
|
-
$parcel$export($
|
|
32
|
-
var $
|
|
33
|
-
var $
|
|
34
|
-
var $
|
|
35
|
-
var $
|
|
36
|
-
var $
|
|
37
|
-
var $
|
|
38
|
-
var $
|
|
39
|
-
$
|
|
40
|
-
$
|
|
41
|
-
$
|
|
42
|
-
$
|
|
43
|
-
$
|
|
44
|
-
$
|
|
45
|
-
$
|
|
25
|
+
$parcel$export($c9f2f68a832cd862$exports, "spectrum-Link", () => $c9f2f68a832cd862$export$d85dd8b94975f388, (v) => $c9f2f68a832cd862$export$d85dd8b94975f388 = v);
|
|
26
|
+
$parcel$export($c9f2f68a832cd862$exports, "is-hovered", () => $c9f2f68a832cd862$export$b8813cd5d7824ce7, (v) => $c9f2f68a832cd862$export$b8813cd5d7824ce7 = v);
|
|
27
|
+
$parcel$export($c9f2f68a832cd862$exports, "focus-ring", () => $c9f2f68a832cd862$export$f39a09f249340e2a, (v) => $c9f2f68a832cd862$export$f39a09f249340e2a = v);
|
|
28
|
+
$parcel$export($c9f2f68a832cd862$exports, "is-disabled", () => $c9f2f68a832cd862$export$d35bc1e505d1ebbf, (v) => $c9f2f68a832cd862$export$d35bc1e505d1ebbf = v);
|
|
29
|
+
$parcel$export($c9f2f68a832cd862$exports, "spectrum-Link--secondary", () => $c9f2f68a832cd862$export$ab09ed292dcb9a79, (v) => $c9f2f68a832cd862$export$ab09ed292dcb9a79 = v);
|
|
30
|
+
$parcel$export($c9f2f68a832cd862$exports, "spectrum-Link--overBackground", () => $c9f2f68a832cd862$export$679b6267148797da, (v) => $c9f2f68a832cd862$export$679b6267148797da = v);
|
|
31
|
+
$parcel$export($c9f2f68a832cd862$exports, "spectrum-Link--quiet", () => $c9f2f68a832cd862$export$81921ea93435e997, (v) => $c9f2f68a832cd862$export$81921ea93435e997 = v);
|
|
32
|
+
var $c9f2f68a832cd862$export$d85dd8b94975f388;
|
|
33
|
+
var $c9f2f68a832cd862$export$b8813cd5d7824ce7;
|
|
34
|
+
var $c9f2f68a832cd862$export$f39a09f249340e2a;
|
|
35
|
+
var $c9f2f68a832cd862$export$d35bc1e505d1ebbf;
|
|
36
|
+
var $c9f2f68a832cd862$export$ab09ed292dcb9a79;
|
|
37
|
+
var $c9f2f68a832cd862$export$679b6267148797da;
|
|
38
|
+
var $c9f2f68a832cd862$export$81921ea93435e997;
|
|
39
|
+
$c9f2f68a832cd862$export$d85dd8b94975f388 = "spectrum-Link_5a03c7";
|
|
40
|
+
$c9f2f68a832cd862$export$b8813cd5d7824ce7 = "is-hovered_5a03c7";
|
|
41
|
+
$c9f2f68a832cd862$export$f39a09f249340e2a = "focus-ring_5a03c7";
|
|
42
|
+
$c9f2f68a832cd862$export$d35bc1e505d1ebbf = "is-disabled_5a03c7";
|
|
43
|
+
$c9f2f68a832cd862$export$ab09ed292dcb9a79 = "spectrum-Link--secondary_5a03c7";
|
|
44
|
+
$c9f2f68a832cd862$export$679b6267148797da = "spectrum-Link--overBackground_5a03c7";
|
|
45
|
+
$c9f2f68a832cd862$export$81921ea93435e997 = "spectrum-Link--quiet_5a03c7";
|
|
46
46
|
|
|
47
47
|
|
|
48
48
|
|
|
49
49
|
|
|
50
50
|
|
|
51
|
-
function $
|
|
52
|
-
props = $
|
|
53
|
-
props = $
|
|
51
|
+
function $679ffbd705ba6cf7$export$a6c7ac8248d6e38a(props) {
|
|
52
|
+
props = $iIJLa$useProviderProps(props);
|
|
53
|
+
props = $iIJLa$useSlotProps(props, 'link');
|
|
54
54
|
let { variant: variant = 'primary' , isQuiet: isQuiet , children: children , href: // @ts-ignore
|
|
55
55
|
href } = props;
|
|
56
|
-
let { styleProps: styleProps } = $
|
|
57
|
-
let { hoverProps: hoverProps , isHovered: isHovered } = $
|
|
56
|
+
let { styleProps: styleProps } = $iIJLa$useStyleProps(props);
|
|
57
|
+
let { hoverProps: hoverProps , isHovered: isHovered } = $iIJLa$useHover({
|
|
58
58
|
});
|
|
59
59
|
if (href) console.warn('href is deprecated, please use an anchor element as children');
|
|
60
|
-
let ref = $
|
|
61
|
-
let { linkProps: linkProps } = $
|
|
60
|
+
let ref = $iIJLa$useRef();
|
|
61
|
+
let { linkProps: linkProps } = $iIJLa$useLink({
|
|
62
62
|
...props,
|
|
63
63
|
elementType: typeof children === 'string' ? 'span' : 'a'
|
|
64
64
|
}, ref);
|
|
65
|
-
return(/*#__PURE__*/ $
|
|
66
|
-
focusRingClass: $
|
|
67
|
-
}, /*#__PURE__*/ $
|
|
65
|
+
return(/*#__PURE__*/ $iIJLa$react.createElement($iIJLa$FocusRing, {
|
|
66
|
+
focusRingClass: $iIJLa$classNames((/*@__PURE__*/$parcel$interopDefault($c9f2f68a832cd862$exports)), 'focus-ring')
|
|
67
|
+
}, /*#__PURE__*/ $iIJLa$react.cloneElement($iIJLa$getWrappedElement(children), {
|
|
68
68
|
...styleProps,
|
|
69
|
-
...$
|
|
69
|
+
...$iIJLa$mergeProps(linkProps, hoverProps),
|
|
70
70
|
ref: ref,
|
|
71
|
-
className: $
|
|
71
|
+
className: $iIJLa$classNames((/*@__PURE__*/$parcel$interopDefault($c9f2f68a832cd862$exports)), 'spectrum-Link', {
|
|
72
72
|
'spectrum-Link--quiet': isQuiet,
|
|
73
73
|
[`spectrum-Link--${variant}`]: variant,
|
|
74
74
|
'is-hovered': isHovered
|
|
@@ -79,5 +79,5 @@ function $cad7a8e22b47dfbf$export$a6c7ac8248d6e38a(props) {
|
|
|
79
79
|
|
|
80
80
|
|
|
81
81
|
|
|
82
|
-
export {$
|
|
82
|
+
export {$679ffbd705ba6cf7$export$a6c7ac8248d6e38a as Link};
|
|
83
83
|
//# sourceMappingURL=module.js.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@react-spectrum/link",
|
|
3
|
-
"version": "3.2.
|
|
3
|
+
"version": "3.2.2",
|
|
4
4
|
"description": "Spectrum UI components in React",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"main": "dist/main.js",
|
|
@@ -32,12 +32,12 @@
|
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
34
|
"@babel/runtime": "^7.6.2",
|
|
35
|
-
"@react-aria/focus": "^3.5.
|
|
36
|
-
"@react-aria/interactions": "^3.8.
|
|
37
|
-
"@react-aria/link": "^3.2.
|
|
38
|
-
"@react-aria/utils": "^3.11.
|
|
39
|
-
"@react-spectrum/utils": "^3.6.
|
|
40
|
-
"@react-types/link": "^3.2.
|
|
35
|
+
"@react-aria/focus": "^3.5.2",
|
|
36
|
+
"@react-aria/interactions": "^3.8.1",
|
|
37
|
+
"@react-aria/link": "^3.2.2",
|
|
38
|
+
"@react-aria/utils": "^3.11.2",
|
|
39
|
+
"@react-spectrum/utils": "^3.6.5",
|
|
40
|
+
"@react-types/link": "^3.2.2"
|
|
41
41
|
},
|
|
42
42
|
"devDependencies": {
|
|
43
43
|
"@adobe/spectrum-css-temp": "3.0.0-alpha.1"
|
|
@@ -49,5 +49,5 @@
|
|
|
49
49
|
"publishConfig": {
|
|
50
50
|
"access": "public"
|
|
51
51
|
},
|
|
52
|
-
"gitHead": "
|
|
52
|
+
"gitHead": "404d41859b7d6f56201d7fc01bd9f22ae3512937"
|
|
53
53
|
}
|