@react-stately/tabs 3.0.2 → 3.0.3
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 +8 -8
- package/dist/module.js +8 -8
- package/package.json +5 -5
package/dist/main.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
var $
|
|
2
|
-
var $
|
|
1
|
+
var $2jh56$reactstatelylist = require("@react-stately/list");
|
|
2
|
+
var $2jh56$react = require("react");
|
|
3
3
|
|
|
4
4
|
function $parcel$exportWildcard(dest, source) {
|
|
5
5
|
Object.keys(source).forEach(function(key) {
|
|
@@ -20,17 +20,17 @@ function $parcel$exportWildcard(dest, source) {
|
|
|
20
20
|
function $parcel$export(e, n, v, s) {
|
|
21
21
|
Object.defineProperty(e, n, {get: v, set: s, enumerable: true, configurable: true});
|
|
22
22
|
}
|
|
23
|
-
var $
|
|
23
|
+
var $c990352501f33d9e$exports = {};
|
|
24
24
|
|
|
25
|
-
$parcel$export($
|
|
25
|
+
$parcel$export($c990352501f33d9e$exports, "useTabListState", () => $c990352501f33d9e$export$4ba071daf4e486);
|
|
26
26
|
|
|
27
27
|
|
|
28
|
-
function $
|
|
29
|
-
let state = $
|
|
28
|
+
function $c990352501f33d9e$export$4ba071daf4e486(props) {
|
|
29
|
+
let state = $2jh56$reactstatelylist.useSingleSelectListState({
|
|
30
30
|
...props,
|
|
31
31
|
suppressTextValueWarning: true
|
|
32
32
|
});
|
|
33
|
-
$
|
|
33
|
+
$2jh56$react.useEffect(()=>{
|
|
34
34
|
// Ensure a tab is always selected (in case no selected key was specified or if selected item was deleted from collection)
|
|
35
35
|
let selectedKey = state.selectedKey;
|
|
36
36
|
if (state.selectionManager.isEmpty || !state.collection.getItem(selectedKey)) {
|
|
@@ -47,7 +47,7 @@ function $7f137f5c44359e91$export$4ba071daf4e486(props) {
|
|
|
47
47
|
}
|
|
48
48
|
|
|
49
49
|
|
|
50
|
-
$parcel$exportWildcard(module.exports, $
|
|
50
|
+
$parcel$exportWildcard(module.exports, $c990352501f33d9e$exports);
|
|
51
51
|
|
|
52
52
|
|
|
53
53
|
//# sourceMappingURL=main.js.map
|
package/dist/module.js
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import {useSingleSelectListState as $
|
|
2
|
-
import {useEffect as $
|
|
1
|
+
import {useSingleSelectListState as $a9c3b$useSingleSelectListState} from "@react-stately/list";
|
|
2
|
+
import {useEffect as $a9c3b$useEffect} from "react";
|
|
3
3
|
|
|
4
4
|
function $parcel$export(e, n, v, s) {
|
|
5
5
|
Object.defineProperty(e, n, {get: v, set: s, enumerable: true, configurable: true});
|
|
6
6
|
}
|
|
7
|
-
var $
|
|
7
|
+
var $ead76093e5740fb6$exports = {};
|
|
8
8
|
|
|
9
|
-
$parcel$export($
|
|
9
|
+
$parcel$export($ead76093e5740fb6$exports, "useTabListState", () => $ead76093e5740fb6$export$4ba071daf4e486);
|
|
10
10
|
|
|
11
11
|
|
|
12
|
-
function $
|
|
13
|
-
let state = $
|
|
12
|
+
function $ead76093e5740fb6$export$4ba071daf4e486(props) {
|
|
13
|
+
let state = $a9c3b$useSingleSelectListState({
|
|
14
14
|
...props,
|
|
15
15
|
suppressTextValueWarning: true
|
|
16
16
|
});
|
|
17
|
-
$
|
|
17
|
+
$a9c3b$useEffect(()=>{
|
|
18
18
|
// Ensure a tab is always selected (in case no selected key was specified or if selected item was deleted from collection)
|
|
19
19
|
let selectedKey = state.selectedKey;
|
|
20
20
|
if (state.selectionManager.isEmpty || !state.collection.getItem(selectedKey)) {
|
|
@@ -33,5 +33,5 @@ function $82ea4f494cc084e3$export$4ba071daf4e486(props) {
|
|
|
33
33
|
|
|
34
34
|
|
|
35
35
|
|
|
36
|
-
export {$
|
|
36
|
+
export {$ead76093e5740fb6$export$4ba071daf4e486 as useTabListState};
|
|
37
37
|
//# sourceMappingURL=module.js.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@react-stately/tabs",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.3",
|
|
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/list": "^3.4.
|
|
22
|
-
"@react-stately/utils": "^3.4.
|
|
23
|
-
"@react-types/tabs": "^3.0.
|
|
21
|
+
"@react-stately/list": "^3.4.3",
|
|
22
|
+
"@react-stately/utils": "^3.4.1",
|
|
23
|
+
"@react-types/tabs": "^3.0.3"
|
|
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
|
}
|