@react-aria/switch 3.1.5 → 3.1.6
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 +6 -6
- package/dist/module.js +6 -6
- package/package.json +5 -5
package/dist/main.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var $
|
|
1
|
+
var $3VG2V$reactariatoggle = require("@react-aria/toggle");
|
|
2
2
|
|
|
3
3
|
function $parcel$exportWildcard(dest, source) {
|
|
4
4
|
Object.keys(source).forEach(function(key) {
|
|
@@ -19,12 +19,12 @@ function $parcel$exportWildcard(dest, source) {
|
|
|
19
19
|
function $parcel$export(e, n, v, s) {
|
|
20
20
|
Object.defineProperty(e, n, {get: v, set: s, enumerable: true, configurable: true});
|
|
21
21
|
}
|
|
22
|
-
var $
|
|
22
|
+
var $e64bc6eb3aa7bd8d$exports = {};
|
|
23
23
|
|
|
24
|
-
$parcel$export($
|
|
24
|
+
$parcel$export($e64bc6eb3aa7bd8d$exports, "useSwitch", () => $e64bc6eb3aa7bd8d$export$d853f7095ae95f88);
|
|
25
25
|
|
|
26
|
-
function $
|
|
27
|
-
let { inputProps: inputProps } = $
|
|
26
|
+
function $e64bc6eb3aa7bd8d$export$d853f7095ae95f88(props, state, ref) {
|
|
27
|
+
let { inputProps: inputProps } = $3VG2V$reactariatoggle.useToggle(props, state, ref);
|
|
28
28
|
let { isSelected: isSelected } = state;
|
|
29
29
|
return {
|
|
30
30
|
inputProps: {
|
|
@@ -37,7 +37,7 @@ function $cf111c4345e32a06$export$d853f7095ae95f88(props, state, ref) {
|
|
|
37
37
|
}
|
|
38
38
|
|
|
39
39
|
|
|
40
|
-
$parcel$exportWildcard(module.exports, $
|
|
40
|
+
$parcel$exportWildcard(module.exports, $e64bc6eb3aa7bd8d$exports);
|
|
41
41
|
|
|
42
42
|
|
|
43
43
|
//# sourceMappingURL=main.js.map
|
package/dist/module.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import {useToggle as $
|
|
1
|
+
import {useToggle as $7KNc0$useToggle} from "@react-aria/toggle";
|
|
2
2
|
|
|
3
3
|
function $parcel$export(e, n, v, s) {
|
|
4
4
|
Object.defineProperty(e, n, {get: v, set: s, enumerable: true, configurable: true});
|
|
5
5
|
}
|
|
6
|
-
var $
|
|
6
|
+
var $b418ec0c85c52f27$exports = {};
|
|
7
7
|
|
|
8
|
-
$parcel$export($
|
|
8
|
+
$parcel$export($b418ec0c85c52f27$exports, "useSwitch", () => $b418ec0c85c52f27$export$d853f7095ae95f88);
|
|
9
9
|
|
|
10
|
-
function $
|
|
11
|
-
let { inputProps: inputProps } = $
|
|
10
|
+
function $b418ec0c85c52f27$export$d853f7095ae95f88(props, state, ref) {
|
|
11
|
+
let { inputProps: inputProps } = $7KNc0$useToggle(props, state, ref);
|
|
12
12
|
let { isSelected: isSelected } = state;
|
|
13
13
|
return {
|
|
14
14
|
inputProps: {
|
|
@@ -23,5 +23,5 @@ function $122358c88747068d$export$d853f7095ae95f88(props, state, ref) {
|
|
|
23
23
|
|
|
24
24
|
|
|
25
25
|
|
|
26
|
-
export {$
|
|
26
|
+
export {$b418ec0c85c52f27$export$d853f7095ae95f88 as useSwitch};
|
|
27
27
|
//# sourceMappingURL=module.js.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@react-aria/switch",
|
|
3
|
-
"version": "3.1.
|
|
3
|
+
"version": "3.1.6",
|
|
4
4
|
"description": "Spectrum UI components in React",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"main": "dist/main.js",
|
|
@@ -18,9 +18,9 @@
|
|
|
18
18
|
},
|
|
19
19
|
"dependencies": {
|
|
20
20
|
"@babel/runtime": "^7.6.2",
|
|
21
|
-
"@react-aria/toggle": "^3.2.
|
|
22
|
-
"@react-stately/toggle": "^3.2.
|
|
23
|
-
"@react-types/switch": "^3.1.
|
|
21
|
+
"@react-aria/toggle": "^3.2.2",
|
|
22
|
+
"@react-stately/toggle": "^3.2.6",
|
|
23
|
+
"@react-types/switch": "^3.1.5"
|
|
24
24
|
},
|
|
25
25
|
"peerDependencies": {
|
|
26
26
|
"react": "^16.8.0 || ^17.0.0-rc.1"
|
|
@@ -28,5 +28,5 @@
|
|
|
28
28
|
"publishConfig": {
|
|
29
29
|
"access": "public"
|
|
30
30
|
},
|
|
31
|
-
"gitHead": "
|
|
31
|
+
"gitHead": "ed8d8d984c2f7f2c31e8b18795b97858a95e4729"
|
|
32
32
|
}
|