@react-aria/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 +12 -12
- package/dist/module.js +12 -12
- package/package.json +7 -7
package/dist/main.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
var $
|
|
2
|
-
var $
|
|
3
|
-
var $
|
|
1
|
+
var $gi03o$reactariautils = require("@react-aria/utils");
|
|
2
|
+
var $gi03o$reactariafocus = require("@react-aria/focus");
|
|
3
|
+
var $gi03o$reactariainteractions = require("@react-aria/interactions");
|
|
4
4
|
|
|
5
5
|
function $parcel$exportWildcard(dest, source) {
|
|
6
6
|
Object.keys(source).forEach(function(key) {
|
|
@@ -21,13 +21,13 @@ function $parcel$exportWildcard(dest, source) {
|
|
|
21
21
|
function $parcel$export(e, n, v, s) {
|
|
22
22
|
Object.defineProperty(e, n, {get: v, set: s, enumerable: true, configurable: true});
|
|
23
23
|
}
|
|
24
|
-
var $
|
|
24
|
+
var $bdb64ee24c162605$exports = {};
|
|
25
25
|
|
|
26
|
-
$parcel$export($
|
|
26
|
+
$parcel$export($bdb64ee24c162605$exports, "useLink", () => $bdb64ee24c162605$export$dcf14c9974fe2767);
|
|
27
27
|
|
|
28
28
|
|
|
29
29
|
|
|
30
|
-
function $
|
|
30
|
+
function $bdb64ee24c162605$export$dcf14c9974fe2767(props, ref) {
|
|
31
31
|
let { elementType: elementType = 'a' , onPress: onPress , onPressStart: onPressStart , onPressEnd: onPressEnd , // @ts-ignore
|
|
32
32
|
onClick: deprecatedOnClick , isDisabled: isDisabled , ...otherProps } = props;
|
|
33
33
|
let linkProps;
|
|
@@ -35,21 +35,21 @@ function $1c3f31ac5a459110$export$dcf14c9974fe2767(props, ref) {
|
|
|
35
35
|
role: 'link',
|
|
36
36
|
tabIndex: !isDisabled ? 0 : undefined
|
|
37
37
|
};
|
|
38
|
-
let { focusableProps: focusableProps } = $
|
|
39
|
-
let { pressProps: pressProps , isPressed: isPressed } = $
|
|
38
|
+
let { focusableProps: focusableProps } = $gi03o$reactariafocus.useFocusable(props, ref);
|
|
39
|
+
let { pressProps: pressProps , isPressed: isPressed } = $gi03o$reactariainteractions.usePress({
|
|
40
40
|
onPress: onPress,
|
|
41
41
|
onPressStart: onPressStart,
|
|
42
42
|
onPressEnd: onPressEnd,
|
|
43
43
|
isDisabled: isDisabled,
|
|
44
44
|
ref: ref
|
|
45
45
|
});
|
|
46
|
-
let domProps = $
|
|
46
|
+
let domProps = $gi03o$reactariautils.filterDOMProps(otherProps, {
|
|
47
47
|
labelable: true
|
|
48
48
|
});
|
|
49
|
-
let interactionHandlers = $
|
|
49
|
+
let interactionHandlers = $gi03o$reactariautils.mergeProps(focusableProps, pressProps);
|
|
50
50
|
return {
|
|
51
51
|
isPressed: isPressed,
|
|
52
|
-
linkProps: $
|
|
52
|
+
linkProps: $gi03o$reactariautils.mergeProps(domProps, {
|
|
53
53
|
...interactionHandlers,
|
|
54
54
|
...linkProps,
|
|
55
55
|
'aria-disabled': isDisabled || undefined,
|
|
@@ -65,7 +65,7 @@ function $1c3f31ac5a459110$export$dcf14c9974fe2767(props, ref) {
|
|
|
65
65
|
}
|
|
66
66
|
|
|
67
67
|
|
|
68
|
-
$parcel$exportWildcard(module.exports, $
|
|
68
|
+
$parcel$exportWildcard(module.exports, $bdb64ee24c162605$exports);
|
|
69
69
|
|
|
70
70
|
|
|
71
71
|
//# sourceMappingURL=main.js.map
|
package/dist/module.js
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import {filterDOMProps as $
|
|
2
|
-
import {useFocusable as $
|
|
3
|
-
import {usePress as $
|
|
1
|
+
import {filterDOMProps as $k1pim$filterDOMProps, mergeProps as $k1pim$mergeProps} from "@react-aria/utils";
|
|
2
|
+
import {useFocusable as $k1pim$useFocusable} from "@react-aria/focus";
|
|
3
|
+
import {usePress as $k1pim$usePress} from "@react-aria/interactions";
|
|
4
4
|
|
|
5
5
|
function $parcel$export(e, n, v, s) {
|
|
6
6
|
Object.defineProperty(e, n, {get: v, set: s, enumerable: true, configurable: true});
|
|
7
7
|
}
|
|
8
|
-
var $
|
|
8
|
+
var $c80650969d556788$exports = {};
|
|
9
9
|
|
|
10
|
-
$parcel$export($
|
|
10
|
+
$parcel$export($c80650969d556788$exports, "useLink", () => $c80650969d556788$export$dcf14c9974fe2767);
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
|
|
14
|
-
function $
|
|
14
|
+
function $c80650969d556788$export$dcf14c9974fe2767(props, ref) {
|
|
15
15
|
let { elementType: elementType = 'a' , onPress: onPress , onPressStart: onPressStart , onPressEnd: onPressEnd , // @ts-ignore
|
|
16
16
|
onClick: deprecatedOnClick , isDisabled: isDisabled , ...otherProps } = props;
|
|
17
17
|
let linkProps;
|
|
@@ -19,21 +19,21 @@ function $2858f9968d365d88$export$dcf14c9974fe2767(props, ref) {
|
|
|
19
19
|
role: 'link',
|
|
20
20
|
tabIndex: !isDisabled ? 0 : undefined
|
|
21
21
|
};
|
|
22
|
-
let { focusableProps: focusableProps } = $
|
|
23
|
-
let { pressProps: pressProps , isPressed: isPressed } = $
|
|
22
|
+
let { focusableProps: focusableProps } = $k1pim$useFocusable(props, ref);
|
|
23
|
+
let { pressProps: pressProps , isPressed: isPressed } = $k1pim$usePress({
|
|
24
24
|
onPress: onPress,
|
|
25
25
|
onPressStart: onPressStart,
|
|
26
26
|
onPressEnd: onPressEnd,
|
|
27
27
|
isDisabled: isDisabled,
|
|
28
28
|
ref: ref
|
|
29
29
|
});
|
|
30
|
-
let domProps = $
|
|
30
|
+
let domProps = $k1pim$filterDOMProps(otherProps, {
|
|
31
31
|
labelable: true
|
|
32
32
|
});
|
|
33
|
-
let interactionHandlers = $
|
|
33
|
+
let interactionHandlers = $k1pim$mergeProps(focusableProps, pressProps);
|
|
34
34
|
return {
|
|
35
35
|
isPressed: isPressed,
|
|
36
|
-
linkProps: $
|
|
36
|
+
linkProps: $k1pim$mergeProps(domProps, {
|
|
37
37
|
...interactionHandlers,
|
|
38
38
|
...linkProps,
|
|
39
39
|
'aria-disabled': isDisabled || undefined,
|
|
@@ -51,5 +51,5 @@ function $2858f9968d365d88$export$dcf14c9974fe2767(props, ref) {
|
|
|
51
51
|
|
|
52
52
|
|
|
53
53
|
|
|
54
|
-
export {$
|
|
54
|
+
export {$c80650969d556788$export$dcf14c9974fe2767 as useLink};
|
|
55
55
|
//# sourceMappingURL=module.js.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@react-aria/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",
|
|
@@ -18,11 +18,11 @@
|
|
|
18
18
|
},
|
|
19
19
|
"dependencies": {
|
|
20
20
|
"@babel/runtime": "^7.6.2",
|
|
21
|
-
"@react-aria/focus": "^3.5.
|
|
22
|
-
"@react-aria/interactions": "^3.8.
|
|
23
|
-
"@react-aria/utils": "^3.11.
|
|
24
|
-
"@react-types/link": "^3.2.
|
|
25
|
-
"@react-types/shared": "^3.11.
|
|
21
|
+
"@react-aria/focus": "^3.5.2",
|
|
22
|
+
"@react-aria/interactions": "^3.8.1",
|
|
23
|
+
"@react-aria/utils": "^3.11.2",
|
|
24
|
+
"@react-types/link": "^3.2.2",
|
|
25
|
+
"@react-types/shared": "^3.11.1"
|
|
26
26
|
},
|
|
27
27
|
"peerDependencies": {
|
|
28
28
|
"react": "^16.8.0 || ^17.0.0-rc.1"
|
|
@@ -30,5 +30,5 @@
|
|
|
30
30
|
"publishConfig": {
|
|
31
31
|
"access": "public"
|
|
32
32
|
},
|
|
33
|
-
"gitHead": "
|
|
33
|
+
"gitHead": "404d41859b7d6f56201d7fc01bd9f22ae3512937"
|
|
34
34
|
}
|