@react-stately/checkbox 3.0.4-nightly.3100 → 3.0.5
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 $dqtyy$reactstatelyutils = require("@react-stately/utils");
|
|
2
2
|
|
|
3
3
|
function $parcel$exportWildcard(dest, source) {
|
|
4
4
|
Object.keys(source).forEach(function(key) {
|
|
@@ -19,13 +19,13 @@ 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 $479a98da8aaf16c4$exports = {};
|
|
23
23
|
|
|
24
|
-
$parcel$export($
|
|
24
|
+
$parcel$export($479a98da8aaf16c4$exports, "useCheckboxGroupState", () => $479a98da8aaf16c4$export$daff6da51032a415);
|
|
25
25
|
|
|
26
|
-
function $
|
|
26
|
+
function $479a98da8aaf16c4$export$daff6da51032a415(props = {
|
|
27
27
|
}) {
|
|
28
|
-
let [selectedValues, setValue] = $
|
|
28
|
+
let [selectedValues, setValue] = $dqtyy$reactstatelyutils.useControlledState(props.value, props.defaultValue || [], props.onChange);
|
|
29
29
|
const state = {
|
|
30
30
|
value: selectedValues,
|
|
31
31
|
setValue (value) {
|
|
@@ -57,7 +57,7 @@ function $d25c8348b5d3944a$export$daff6da51032a415(props = {
|
|
|
57
57
|
}
|
|
58
58
|
|
|
59
59
|
|
|
60
|
-
$parcel$exportWildcard(module.exports, $
|
|
60
|
+
$parcel$exportWildcard(module.exports, $479a98da8aaf16c4$exports);
|
|
61
61
|
|
|
62
62
|
|
|
63
63
|
//# sourceMappingURL=main.js.map
|
package/dist/module.js
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import {useControlledState as $
|
|
1
|
+
import {useControlledState as $bk5pn$useControlledState} from "@react-stately/utils";
|
|
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 $a67f6fc5ad4ce17c$exports = {};
|
|
7
7
|
|
|
8
|
-
$parcel$export($
|
|
8
|
+
$parcel$export($a67f6fc5ad4ce17c$exports, "useCheckboxGroupState", () => $a67f6fc5ad4ce17c$export$daff6da51032a415);
|
|
9
9
|
|
|
10
|
-
function $
|
|
10
|
+
function $a67f6fc5ad4ce17c$export$daff6da51032a415(props = {
|
|
11
11
|
}) {
|
|
12
|
-
let [selectedValues, setValue] = $
|
|
12
|
+
let [selectedValues, setValue] = $bk5pn$useControlledState(props.value, props.defaultValue || [], props.onChange);
|
|
13
13
|
const state = {
|
|
14
14
|
value: selectedValues,
|
|
15
15
|
setValue (value) {
|
|
@@ -43,5 +43,5 @@ function $bc37996ff2234e7b$export$daff6da51032a415(props = {
|
|
|
43
43
|
|
|
44
44
|
|
|
45
45
|
|
|
46
|
-
export {$
|
|
46
|
+
export {$a67f6fc5ad4ce17c$export$daff6da51032a415 as useCheckboxGroupState};
|
|
47
47
|
//# sourceMappingURL=module.js.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@react-stately/checkbox",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.5",
|
|
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-stately/toggle": "3.
|
|
22
|
-
"@react-stately/utils": "3.
|
|
23
|
-
"@react-types/checkbox": "3.
|
|
21
|
+
"@react-stately/toggle": "^3.2.5",
|
|
22
|
+
"@react-stately/utils": "^3.4.1",
|
|
23
|
+
"@react-types/checkbox": "^3.2.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": "404d41859b7d6f56201d7fc01bd9f22ae3512937"
|
|
32
32
|
}
|