@react-stately/list 3.13.4 → 3.14.0

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/import.mjs CHANGED
@@ -1,6 +1,6 @@
1
- import {UNSTABLE_useFilteredListState as $e72dd72e1c76a225$export$ba9d38c0f1bf2b36, useListState as $e72dd72e1c76a225$export$2f645645f7bca764} from "./useListState.mjs";
2
- import {useSingleSelectListState as $a0d645289fe9b86b$export$e7f05e985daf4b5f} from "./useSingleSelectListState.mjs";
3
- import {ListCollection as $a02d57049d202695$export$d085fb9e920b5ca7} from "./ListCollection.mjs";
1
+ import {useListState as $18b0e4a365a1442c$re_export$useListState, UNSTABLE_useFilteredListState as $18b0e4a365a1442c$re_export$UNSTABLE_useFilteredListState} from "react-stately/useListState";
2
+ import {useSingleSelectListState as $18b0e4a365a1442c$re_export$useSingleSelectListState} from "react-stately/useSingleSelectListState";
3
+ import {ListCollection as $18b0e4a365a1442c$re_export$ListCollection} from "react-stately/private/list/ListCollection";
4
4
 
5
5
  /*
6
6
  * Copyright 2020 Adobe. All rights reserved.
@@ -17,5 +17,5 @@ import {ListCollection as $a02d57049d202695$export$d085fb9e920b5ca7} from "./Lis
17
17
 
18
18
 
19
19
 
20
- export {$e72dd72e1c76a225$export$2f645645f7bca764 as useListState, $e72dd72e1c76a225$export$ba9d38c0f1bf2b36 as UNSTABLE_useFilteredListState, $a0d645289fe9b86b$export$e7f05e985daf4b5f as useSingleSelectListState, $a02d57049d202695$export$d085fb9e920b5ca7 as ListCollection};
20
+ export {$18b0e4a365a1442c$re_export$useListState as useListState, $18b0e4a365a1442c$re_export$UNSTABLE_useFilteredListState as UNSTABLE_useFilteredListState, $18b0e4a365a1442c$re_export$useSingleSelectListState as useSingleSelectListState, $18b0e4a365a1442c$re_export$ListCollection as ListCollection};
21
21
  //# sourceMappingURL=module.js.map
package/dist/main.js CHANGED
@@ -1,16 +1,16 @@
1
- var $5450691d3629f6ea$exports = require("./useListState.main.js");
2
- var $b9e99587a092d199$exports = require("./useSingleSelectListState.main.js");
3
- var $c9aa5a224613c979$exports = require("./ListCollection.main.js");
1
+ var $kLH7z$reactstatelyuseListState = require("react-stately/useListState");
2
+ var $kLH7z$reactstatelyuseSingleSelectListState = require("react-stately/useSingleSelectListState");
3
+ var $kLH7z$reactstatelyprivatelistListCollection = require("react-stately/private/list/ListCollection");
4
4
 
5
5
 
6
6
  function $parcel$export(e, n, v, s) {
7
7
  Object.defineProperty(e, n, {get: v, set: s, enumerable: true, configurable: true});
8
8
  }
9
9
 
10
- $parcel$export(module.exports, "useListState", () => $5450691d3629f6ea$exports.useListState);
11
- $parcel$export(module.exports, "UNSTABLE_useFilteredListState", () => $5450691d3629f6ea$exports.UNSTABLE_useFilteredListState);
12
- $parcel$export(module.exports, "useSingleSelectListState", () => $b9e99587a092d199$exports.useSingleSelectListState);
13
- $parcel$export(module.exports, "ListCollection", () => $c9aa5a224613c979$exports.ListCollection);
10
+ $parcel$export(module.exports, "useListState", function () { return $kLH7z$reactstatelyuseListState.useListState; });
11
+ $parcel$export(module.exports, "UNSTABLE_useFilteredListState", function () { return $kLH7z$reactstatelyuseListState.UNSTABLE_useFilteredListState; });
12
+ $parcel$export(module.exports, "useSingleSelectListState", function () { return $kLH7z$reactstatelyuseSingleSelectListState.useSingleSelectListState; });
13
+ $parcel$export(module.exports, "ListCollection", function () { return $kLH7z$reactstatelyprivatelistListCollection.ListCollection; });
14
14
  /*
15
15
  * Copyright 2020 Adobe. All rights reserved.
16
16
  * This file is licensed to you under the Apache License, Version 2.0 (the "License");
package/dist/main.js.map CHANGED
@@ -1 +1 @@
1
- {"mappings":";;;;;;;;;;;;;AAAA;;;;;;;;;;CAUC","sources":["packages/@react-stately/list/src/index.ts"],"sourcesContent":["/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\nexport type {ListProps, ListState} from './useListState';\nexport type {SingleSelectListProps, SingleSelectListState} from './useSingleSelectListState';\nexport {useListState, UNSTABLE_useFilteredListState} from './useListState';\nexport {useSingleSelectListState} from './useSingleSelectListState';\nexport {ListCollection} from './ListCollection';\n"],"names":[],"version":3,"file":"main.js.map"}
1
+ {"mappings":";;;;;;;;;;;;;AAAA;;;;;;;;;;CAUC","sources":["packages/@react-stately/list/src/index.ts"],"sourcesContent":["/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\nexport {useListState, UNSTABLE_useFilteredListState} from 'react-stately/useListState';\n\nexport {useSingleSelectListState} from 'react-stately/useSingleSelectListState';\nexport {ListCollection} from 'react-stately/private/list/ListCollection';\nexport type {ListProps, ListState} from 'react-stately/useListState';\nexport type {SingleSelectListProps, SingleSelectListState} from 'react-stately/useSingleSelectListState';\n"],"names":[],"version":3,"file":"main.js.map"}
package/dist/module.js CHANGED
@@ -1,6 +1,6 @@
1
- import {UNSTABLE_useFilteredListState as $e72dd72e1c76a225$export$ba9d38c0f1bf2b36, useListState as $e72dd72e1c76a225$export$2f645645f7bca764} from "./useListState.module.js";
2
- import {useSingleSelectListState as $a0d645289fe9b86b$export$e7f05e985daf4b5f} from "./useSingleSelectListState.module.js";
3
- import {ListCollection as $a02d57049d202695$export$d085fb9e920b5ca7} from "./ListCollection.module.js";
1
+ import {useListState as $18b0e4a365a1442c$re_export$useListState, UNSTABLE_useFilteredListState as $18b0e4a365a1442c$re_export$UNSTABLE_useFilteredListState} from "react-stately/useListState";
2
+ import {useSingleSelectListState as $18b0e4a365a1442c$re_export$useSingleSelectListState} from "react-stately/useSingleSelectListState";
3
+ import {ListCollection as $18b0e4a365a1442c$re_export$ListCollection} from "react-stately/private/list/ListCollection";
4
4
 
5
5
  /*
6
6
  * Copyright 2020 Adobe. All rights reserved.
@@ -17,5 +17,5 @@ import {ListCollection as $a02d57049d202695$export$d085fb9e920b5ca7} from "./Lis
17
17
 
18
18
 
19
19
 
20
- export {$e72dd72e1c76a225$export$2f645645f7bca764 as useListState, $e72dd72e1c76a225$export$ba9d38c0f1bf2b36 as UNSTABLE_useFilteredListState, $a0d645289fe9b86b$export$e7f05e985daf4b5f as useSingleSelectListState, $a02d57049d202695$export$d085fb9e920b5ca7 as ListCollection};
20
+ export {$18b0e4a365a1442c$re_export$useListState as useListState, $18b0e4a365a1442c$re_export$UNSTABLE_useFilteredListState as UNSTABLE_useFilteredListState, $18b0e4a365a1442c$re_export$useSingleSelectListState as useSingleSelectListState, $18b0e4a365a1442c$re_export$ListCollection as ListCollection};
21
21
  //# sourceMappingURL=module.js.map
@@ -1 +1 @@
1
- {"mappings":";;;;AAAA;;;;;;;;;;CAUC","sources":["packages/@react-stately/list/src/index.ts"],"sourcesContent":["/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\nexport type {ListProps, ListState} from './useListState';\nexport type {SingleSelectListProps, SingleSelectListState} from './useSingleSelectListState';\nexport {useListState, UNSTABLE_useFilteredListState} from './useListState';\nexport {useSingleSelectListState} from './useSingleSelectListState';\nexport {ListCollection} from './ListCollection';\n"],"names":[],"version":3,"file":"module.js.map"}
1
+ {"mappings":";;;;AAAA;;;;;;;;;;CAUC","sources":["packages/@react-stately/list/src/index.ts"],"sourcesContent":["/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\nexport {useListState, UNSTABLE_useFilteredListState} from 'react-stately/useListState';\n\nexport {useSingleSelectListState} from 'react-stately/useSingleSelectListState';\nexport {ListCollection} from 'react-stately/private/list/ListCollection';\nexport type {ListProps, ListState} from 'react-stately/useListState';\nexport type {SingleSelectListProps, SingleSelectListState} from 'react-stately/useSingleSelectListState';\n"],"names":[],"version":3,"file":"module.js.map"}
@@ -0,0 +1,5 @@
1
+ export { useListState, UNSTABLE_useFilteredListState } from 'react-stately/useListState';
2
+ export { useSingleSelectListState } from 'react-stately/useSingleSelectListState';
3
+ export { ListCollection } from 'react-stately/private/list/ListCollection';
4
+ export type { ListProps, ListState } from 'react-stately/useListState';
5
+ export type { SingleSelectListProps, SingleSelectListState } from 'react-stately/useSingleSelectListState';
package/package.json CHANGED
@@ -1,20 +1,20 @@
1
1
  {
2
2
  "name": "@react-stately/list",
3
- "version": "3.13.4",
3
+ "version": "3.14.0",
4
4
  "description": "Spectrum UI components in React",
5
5
  "license": "Apache-2.0",
6
6
  "main": "dist/main.js",
7
7
  "module": "dist/module.js",
8
8
  "exports": {
9
- "source": "./src/index.ts",
10
- "types": [
11
- "./dist/types.d.ts",
12
- "./src/index.ts"
13
- ],
14
- "import": "./dist/import.mjs",
15
- "require": "./dist/main.js"
9
+ ".": {
10
+ "source": "./src/index.ts",
11
+ "types": "./dist/types/src/index.d.ts",
12
+ "import": "./dist/import.mjs",
13
+ "require": "./dist/main.js"
14
+ },
15
+ "./package.json": "./package.json"
16
16
  },
17
- "types": "dist/types.d.ts",
17
+ "types": "dist/types/src/index.d.ts",
18
18
  "source": "src/index.ts",
19
19
  "files": [
20
20
  "dist",
@@ -26,17 +26,18 @@
26
26
  "url": "https://github.com/adobe/react-spectrum"
27
27
  },
28
28
  "dependencies": {
29
- "@react-stately/collections": "^3.12.10",
30
- "@react-stately/selection": "^3.20.9",
31
- "@react-stately/utils": "^3.11.0",
32
- "@react-types/shared": "^3.33.1",
33
- "@swc/helpers": "^0.5.0"
29
+ "@swc/helpers": "^0.5.0",
30
+ "react-stately": "3.46.0"
34
31
  },
35
32
  "peerDependencies": {
36
- "react": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 || ^19.0.0-rc.1"
33
+ "react": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 || ^19.0.0-rc.1",
34
+ "react-dom": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 || ^19.0.0-rc.1"
37
35
  },
38
36
  "publishConfig": {
39
37
  "access": "public"
40
38
  },
41
- "gitHead": "8df187370053aa35f553cb388ad670f65e1ab371"
39
+ "targets": {
40
+ "types": false
41
+ },
42
+ "gitHead": "a6999bdf494a2e9c0381a5881908328bdd22ddae"
42
43
  }
package/src/index.ts CHANGED
@@ -10,8 +10,9 @@
10
10
  * governing permissions and limitations under the License.
11
11
  */
12
12
 
13
- export type {ListProps, ListState} from './useListState';
14
- export type {SingleSelectListProps, SingleSelectListState} from './useSingleSelectListState';
15
- export {useListState, UNSTABLE_useFilteredListState} from './useListState';
16
- export {useSingleSelectListState} from './useSingleSelectListState';
17
- export {ListCollection} from './ListCollection';
13
+ export {useListState, UNSTABLE_useFilteredListState} from 'react-stately/useListState';
14
+
15
+ export {useSingleSelectListState} from 'react-stately/useSingleSelectListState';
16
+ export {ListCollection} from 'react-stately/private/list/ListCollection';
17
+ export type {ListProps, ListState} from 'react-stately/useListState';
18
+ export type {SingleSelectListProps, SingleSelectListState} from 'react-stately/useSingleSelectListState';
@@ -1,94 +0,0 @@
1
-
2
- function $parcel$export(e, n, v, s) {
3
- Object.defineProperty(e, n, {get: v, set: s, enumerable: true, configurable: true});
4
- }
5
-
6
- $parcel$export(module.exports, "ListCollection", () => $c9aa5a224613c979$export$d085fb9e920b5ca7);
7
- /*
8
- * Copyright 2020 Adobe. All rights reserved.
9
- * This file is licensed to you under the Apache License, Version 2.0 (the "License");
10
- * you may not use this file except in compliance with the License. You may obtain a copy
11
- * of the License at http://www.apache.org/licenses/LICENSE-2.0
12
- *
13
- * Unless required by applicable law or agreed to in writing, software distributed under
14
- * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
15
- * OF ANY KIND, either express or implied. See the License for the specific language
16
- * governing permissions and limitations under the License.
17
- */ class $c9aa5a224613c979$export$d085fb9e920b5ca7 {
18
- *[Symbol.iterator]() {
19
- yield* this.iterable;
20
- }
21
- get size() {
22
- return this._size;
23
- }
24
- getKeys() {
25
- return this.keyMap.keys();
26
- }
27
- getKeyBefore(key) {
28
- let node = this.keyMap.get(key);
29
- var _node_prevKey;
30
- return node ? (_node_prevKey = node.prevKey) !== null && _node_prevKey !== void 0 ? _node_prevKey : null : null;
31
- }
32
- getKeyAfter(key) {
33
- let node = this.keyMap.get(key);
34
- var _node_nextKey;
35
- return node ? (_node_nextKey = node.nextKey) !== null && _node_nextKey !== void 0 ? _node_nextKey : null : null;
36
- }
37
- getFirstKey() {
38
- return this.firstKey;
39
- }
40
- getLastKey() {
41
- return this.lastKey;
42
- }
43
- getItem(key) {
44
- var _this_keyMap_get;
45
- return (_this_keyMap_get = this.keyMap.get(key)) !== null && _this_keyMap_get !== void 0 ? _this_keyMap_get : null;
46
- }
47
- at(idx) {
48
- const keys = [
49
- ...this.getKeys()
50
- ];
51
- return this.getItem(keys[idx]);
52
- }
53
- getChildren(key) {
54
- let node = this.keyMap.get(key);
55
- return (node === null || node === void 0 ? void 0 : node.childNodes) || [];
56
- }
57
- constructor(nodes){
58
- this.keyMap = new Map();
59
- this.firstKey = null;
60
- this.lastKey = null;
61
- this.iterable = nodes;
62
- let visit = (node)=>{
63
- this.keyMap.set(node.key, node);
64
- if (node.childNodes && node.type === 'section') for (let child of node.childNodes)visit(child);
65
- };
66
- for (let node of nodes)visit(node);
67
- let last = null;
68
- let index = 0;
69
- let size = 0;
70
- for (let [key, node] of this.keyMap){
71
- if (last) {
72
- last.nextKey = key;
73
- node.prevKey = last.key;
74
- } else {
75
- this.firstKey = key;
76
- node.prevKey = undefined;
77
- }
78
- if (node.type === 'item') node.index = index++;
79
- // Only count sections and items when determining size so that
80
- // loaders and separators in RAC/S2 don't influence the emptyState determination
81
- if (node.type === 'section' || node.type === 'item') size++;
82
- last = node;
83
- // Set nextKey as undefined since this might be the last node
84
- // If it isn't the last node, last.nextKey will properly set at start of new loop
85
- last.nextKey = undefined;
86
- }
87
- this._size = size;
88
- var _last_key;
89
- this.lastKey = (_last_key = last === null || last === void 0 ? void 0 : last.key) !== null && _last_key !== void 0 ? _last_key : null;
90
- }
91
- }
92
-
93
-
94
- //# sourceMappingURL=ListCollection.main.js.map
@@ -1 +0,0 @@
1
- {"mappings":";;;;;;AAAA;;;;;;;;;;CAUC,GAIM,MAAM;IAwDX,CAAC,CAAC,OAAO,QAAQ,CAAC,GAA8B;QAC9C,OAAO,IAAI,CAAC,QAAQ;IACtB;IAEA,IAAI,OAAe;QACjB,OAAO,IAAI,CAAC,KAAK;IACnB;IAEA,UAAiC;QAC/B,OAAO,IAAI,CAAC,MAAM,CAAC,IAAI;IACzB;IAEA,aAAa,GAAQ,EAAc;QACjC,IAAI,OAAO,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC;YACb;QAAd,OAAO,OAAO,CAAA,gBAAA,KAAK,OAAO,cAA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AG;YACzB,OAAO;gBACL,IAAI,CAAC,QAAQ,GAAG;gBAChB,KAAK,OAAO,GAAG;YACjB;YAEA,IAAI,KAAK,IAAI,KAAK,QAChB,KAAK,KAAK,GAAG;YAGf,8DAA8D;YAC9D,gFAAgF;YAChF,IAAI,KAAK,IAAI,KAAK,aAAa,KAAK,IAAI,KAAK,QAC3C;YAGF,OAAO;YAEP,6DAA6D;YAC7D,iFAAiF;YACjF,KAAK,OAAO,GAAG;QACjB;QACA,IAAI,CAAC,KAAK,GAAG;YACE;QAAf,IAAI,CAAC,OAAO,GAAG,CAAA,YAAA,iBAAA,2BAAA,KAAM,GAAG,cAAT,uBAAA,YAAa;IAC9B;AA6CF","sources":["packages/@react-stately/list/src/ListCollection.ts"],"sourcesContent":["/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\nimport {Collection, Key, Node} from '@react-types/shared';\n\nexport class ListCollection<T> implements Collection<Node<T>> {\n private keyMap: Map<Key, Node<T>> = new Map();\n private iterable: Iterable<Node<T>>;\n private firstKey: Key | null = null;\n private lastKey: Key | null = null;\n private _size: number;\n\n constructor(nodes: Iterable<Node<T>>) {\n this.iterable = nodes;\n\n let visit = (node: Node<T>) => {\n this.keyMap.set(node.key, node);\n\n if (node.childNodes && node.type === 'section') {\n for (let child of node.childNodes) {\n visit(child);\n }\n }\n };\n\n for (let node of nodes) {\n visit(node);\n }\n\n let last: Node<T> | null = null;\n let index = 0;\n let size = 0;\n for (let [key, node] of this.keyMap) {\n if (last) {\n last.nextKey = key;\n node.prevKey = last.key;\n } else {\n this.firstKey = key;\n node.prevKey = undefined;\n }\n\n if (node.type === 'item') {\n node.index = index++;\n }\n\n // Only count sections and items when determining size so that\n // loaders and separators in RAC/S2 don't influence the emptyState determination\n if (node.type === 'section' || node.type === 'item') {\n size++;\n }\n\n last = node;\n\n // Set nextKey as undefined since this might be the last node\n // If it isn't the last node, last.nextKey will properly set at start of new loop\n last.nextKey = undefined;\n }\n this._size = size;\n this.lastKey = last?.key ?? null;\n }\n\n *[Symbol.iterator](): IterableIterator<Node<T>> {\n yield* this.iterable;\n }\n\n get size(): number {\n return this._size;\n }\n\n getKeys(): IterableIterator<Key> {\n return this.keyMap.keys();\n }\n\n getKeyBefore(key: Key): Key | null {\n let node = this.keyMap.get(key);\n return node ? node.prevKey ?? null : null;\n }\n\n getKeyAfter(key: Key): Key | null {\n let node = this.keyMap.get(key);\n return node ? node.nextKey ?? null : null;\n }\n\n getFirstKey(): Key | null {\n return this.firstKey;\n }\n\n getLastKey(): Key | null {\n return this.lastKey;\n }\n\n getItem(key: Key): Node<T> | null {\n return this.keyMap.get(key) ?? null;\n }\n\n at(idx: number): Node<T> | null {\n const keys = [...this.getKeys()];\n return this.getItem(keys[idx]);\n }\n\n getChildren(key: Key): Iterable<Node<T>> {\n let node = this.keyMap.get(key);\n return node?.childNodes || [];\n }\n}\n"],"names":[],"version":3,"file":"ListCollection.main.js.map"}
@@ -1,89 +0,0 @@
1
- /*
2
- * Copyright 2020 Adobe. All rights reserved.
3
- * This file is licensed to you under the Apache License, Version 2.0 (the "License");
4
- * you may not use this file except in compliance with the License. You may obtain a copy
5
- * of the License at http://www.apache.org/licenses/LICENSE-2.0
6
- *
7
- * Unless required by applicable law or agreed to in writing, software distributed under
8
- * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
9
- * OF ANY KIND, either express or implied. See the License for the specific language
10
- * governing permissions and limitations under the License.
11
- */ class $a02d57049d202695$export$d085fb9e920b5ca7 {
12
- *[Symbol.iterator]() {
13
- yield* this.iterable;
14
- }
15
- get size() {
16
- return this._size;
17
- }
18
- getKeys() {
19
- return this.keyMap.keys();
20
- }
21
- getKeyBefore(key) {
22
- let node = this.keyMap.get(key);
23
- var _node_prevKey;
24
- return node ? (_node_prevKey = node.prevKey) !== null && _node_prevKey !== void 0 ? _node_prevKey : null : null;
25
- }
26
- getKeyAfter(key) {
27
- let node = this.keyMap.get(key);
28
- var _node_nextKey;
29
- return node ? (_node_nextKey = node.nextKey) !== null && _node_nextKey !== void 0 ? _node_nextKey : null : null;
30
- }
31
- getFirstKey() {
32
- return this.firstKey;
33
- }
34
- getLastKey() {
35
- return this.lastKey;
36
- }
37
- getItem(key) {
38
- var _this_keyMap_get;
39
- return (_this_keyMap_get = this.keyMap.get(key)) !== null && _this_keyMap_get !== void 0 ? _this_keyMap_get : null;
40
- }
41
- at(idx) {
42
- const keys = [
43
- ...this.getKeys()
44
- ];
45
- return this.getItem(keys[idx]);
46
- }
47
- getChildren(key) {
48
- let node = this.keyMap.get(key);
49
- return (node === null || node === void 0 ? void 0 : node.childNodes) || [];
50
- }
51
- constructor(nodes){
52
- this.keyMap = new Map();
53
- this.firstKey = null;
54
- this.lastKey = null;
55
- this.iterable = nodes;
56
- let visit = (node)=>{
57
- this.keyMap.set(node.key, node);
58
- if (node.childNodes && node.type === 'section') for (let child of node.childNodes)visit(child);
59
- };
60
- for (let node of nodes)visit(node);
61
- let last = null;
62
- let index = 0;
63
- let size = 0;
64
- for (let [key, node] of this.keyMap){
65
- if (last) {
66
- last.nextKey = key;
67
- node.prevKey = last.key;
68
- } else {
69
- this.firstKey = key;
70
- node.prevKey = undefined;
71
- }
72
- if (node.type === 'item') node.index = index++;
73
- // Only count sections and items when determining size so that
74
- // loaders and separators in RAC/S2 don't influence the emptyState determination
75
- if (node.type === 'section' || node.type === 'item') size++;
76
- last = node;
77
- // Set nextKey as undefined since this might be the last node
78
- // If it isn't the last node, last.nextKey will properly set at start of new loop
79
- last.nextKey = undefined;
80
- }
81
- this._size = size;
82
- var _last_key;
83
- this.lastKey = (_last_key = last === null || last === void 0 ? void 0 : last.key) !== null && _last_key !== void 0 ? _last_key : null;
84
- }
85
- }
86
-
87
-
88
- export {$a02d57049d202695$export$d085fb9e920b5ca7 as ListCollection};
89
- //# sourceMappingURL=ListCollection.module.js.map
@@ -1,89 +0,0 @@
1
- /*
2
- * Copyright 2020 Adobe. All rights reserved.
3
- * This file is licensed to you under the Apache License, Version 2.0 (the "License");
4
- * you may not use this file except in compliance with the License. You may obtain a copy
5
- * of the License at http://www.apache.org/licenses/LICENSE-2.0
6
- *
7
- * Unless required by applicable law or agreed to in writing, software distributed under
8
- * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
9
- * OF ANY KIND, either express or implied. See the License for the specific language
10
- * governing permissions and limitations under the License.
11
- */ class $a02d57049d202695$export$d085fb9e920b5ca7 {
12
- *[Symbol.iterator]() {
13
- yield* this.iterable;
14
- }
15
- get size() {
16
- return this._size;
17
- }
18
- getKeys() {
19
- return this.keyMap.keys();
20
- }
21
- getKeyBefore(key) {
22
- let node = this.keyMap.get(key);
23
- var _node_prevKey;
24
- return node ? (_node_prevKey = node.prevKey) !== null && _node_prevKey !== void 0 ? _node_prevKey : null : null;
25
- }
26
- getKeyAfter(key) {
27
- let node = this.keyMap.get(key);
28
- var _node_nextKey;
29
- return node ? (_node_nextKey = node.nextKey) !== null && _node_nextKey !== void 0 ? _node_nextKey : null : null;
30
- }
31
- getFirstKey() {
32
- return this.firstKey;
33
- }
34
- getLastKey() {
35
- return this.lastKey;
36
- }
37
- getItem(key) {
38
- var _this_keyMap_get;
39
- return (_this_keyMap_get = this.keyMap.get(key)) !== null && _this_keyMap_get !== void 0 ? _this_keyMap_get : null;
40
- }
41
- at(idx) {
42
- const keys = [
43
- ...this.getKeys()
44
- ];
45
- return this.getItem(keys[idx]);
46
- }
47
- getChildren(key) {
48
- let node = this.keyMap.get(key);
49
- return (node === null || node === void 0 ? void 0 : node.childNodes) || [];
50
- }
51
- constructor(nodes){
52
- this.keyMap = new Map();
53
- this.firstKey = null;
54
- this.lastKey = null;
55
- this.iterable = nodes;
56
- let visit = (node)=>{
57
- this.keyMap.set(node.key, node);
58
- if (node.childNodes && node.type === 'section') for (let child of node.childNodes)visit(child);
59
- };
60
- for (let node of nodes)visit(node);
61
- let last = null;
62
- let index = 0;
63
- let size = 0;
64
- for (let [key, node] of this.keyMap){
65
- if (last) {
66
- last.nextKey = key;
67
- node.prevKey = last.key;
68
- } else {
69
- this.firstKey = key;
70
- node.prevKey = undefined;
71
- }
72
- if (node.type === 'item') node.index = index++;
73
- // Only count sections and items when determining size so that
74
- // loaders and separators in RAC/S2 don't influence the emptyState determination
75
- if (node.type === 'section' || node.type === 'item') size++;
76
- last = node;
77
- // Set nextKey as undefined since this might be the last node
78
- // If it isn't the last node, last.nextKey will properly set at start of new loop
79
- last.nextKey = undefined;
80
- }
81
- this._size = size;
82
- var _last_key;
83
- this.lastKey = (_last_key = last === null || last === void 0 ? void 0 : last.key) !== null && _last_key !== void 0 ? _last_key : null;
84
- }
85
- }
86
-
87
-
88
- export {$a02d57049d202695$export$d085fb9e920b5ca7 as ListCollection};
89
- //# sourceMappingURL=ListCollection.module.js.map
@@ -1 +0,0 @@
1
- {"mappings":"AAAA;;;;;;;;;;CAUC,GAIM,MAAM;IAwDX,CAAC,CAAC,OAAO,QAAQ,CAAC,GAA8B;QAC9C,OAAO,IAAI,CAAC,QAAQ;IACtB;IAEA,IAAI,OAAe;QACjB,OAAO,IAAI,CAAC,KAAK;IACnB;IAEA,UAAiC;QAC/B,OAAO,IAAI,CAAC,MAAM,CAAC,IAAI;IACzB;IAEA,aAAa,GAAQ,EAAc;QACjC,IAAI,OAAO,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC;YACb;QAAd,OAAO,OAAO,CAAA,gBAAA,KAAK,OAAO,cAAZ,2BAAA,gBAAgB,OAAO;IACvC;IAEA,YAAY,GAAQ,EAAc;QAChC,IAAI,OAAO,IAAI,CAAC,MAAM,CAAC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AAI,KAAK,QAChB,KAAK,KAAK,GAAG;YAGf,8DAA8D;YAC9D,gFAAgF;YAChF,IAAI,KAAK,IAAI,KAAK,aAAa,KAAK,IAAI,KAAK,QAC3C;YAGF,OAAO;YAEP,6DAA6D;YAC7D,iFAAiF;YACjF,KAAK,OAAO,GAAG;QACjB;QACA,IAAI,CAAC,KAAK,GAAG;YACE;QAAf,IAAI,CAAC,OAAO,GAAG,CAAA,YAAA,iBAAA,2BAAA,KAAM,GAAG,cAAT,uBAAA,YAAa;IAC9B;AA6CF","sources":["packages/@react-stately/list/src/ListCollection.ts"],"sourcesContent":["/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\nimport {Collection, Key, Node} from '@react-types/shared';\n\nexport class ListCollection<T> implements Collection<Node<T>> {\n private keyMap: Map<Key, Node<T>> = new Map();\n private iterable: Iterable<Node<T>>;\n private firstKey: Key | null = null;\n private lastKey: Key | null = null;\n private _size: number;\n\n constructor(nodes: Iterable<Node<T>>) {\n this.iterable = nodes;\n\n let visit = (node: Node<T>) => {\n this.keyMap.set(node.key, node);\n\n if (node.childNodes && node.type === 'section') {\n for (let child of node.childNodes) {\n visit(child);\n }\n }\n };\n\n for (let node of nodes) {\n visit(node);\n }\n\n let last: Node<T> | null = null;\n let index = 0;\n let size = 0;\n for (let [key, node] of this.keyMap) {\n if (last) {\n last.nextKey = key;\n node.prevKey = last.key;\n } else {\n this.firstKey = key;\n node.prevKey = undefined;\n }\n\n if (node.type === 'item') {\n node.index = index++;\n }\n\n // Only count sections and items when determining size so that\n // loaders and separators in RAC/S2 don't influence the emptyState determination\n if (node.type === 'section' || node.type === 'item') {\n size++;\n }\n\n last = node;\n\n // Set nextKey as undefined since this might be the last node\n // If it isn't the last node, last.nextKey will properly set at start of new loop\n last.nextKey = undefined;\n }\n this._size = size;\n this.lastKey = last?.key ?? null;\n }\n\n *[Symbol.iterator](): IterableIterator<Node<T>> {\n yield* this.iterable;\n }\n\n get size(): number {\n return this._size;\n }\n\n getKeys(): IterableIterator<Key> {\n return this.keyMap.keys();\n }\n\n getKeyBefore(key: Key): Key | null {\n let node = this.keyMap.get(key);\n return node ? node.prevKey ?? null : null;\n }\n\n getKeyAfter(key: Key): Key | null {\n let node = this.keyMap.get(key);\n return node ? node.nextKey ?? null : null;\n }\n\n getFirstKey(): Key | null {\n return this.firstKey;\n }\n\n getLastKey(): Key | null {\n return this.lastKey;\n }\n\n getItem(key: Key): Node<T> | null {\n return this.keyMap.get(key) ?? null;\n }\n\n at(idx: number): Node<T> | null {\n const keys = [...this.getKeys()];\n return this.getItem(keys[idx]);\n }\n\n getChildren(key: Key): Iterable<Node<T>> {\n let node = this.keyMap.get(key);\n return node?.childNodes || [];\n }\n}\n"],"names":[],"version":3,"file":"ListCollection.module.js.map"}
package/dist/types.d.ts DELETED
@@ -1,64 +0,0 @@
1
- import { Collection, Key, Node, CollectionStateBase, LayoutDelegate, SingleSelection } from "@react-types/shared";
2
- import { MultipleSelectionStateProps, SelectionManager } from "@react-stately/selection";
3
- export class ListCollection<T> implements Collection<Node<T>> {
4
- constructor(nodes: Iterable<Node<T>>);
5
- [Symbol.iterator](): IterableIterator<Node<T>>;
6
- get size(): number;
7
- getKeys(): IterableIterator<Key>;
8
- getKeyBefore(key: Key): Key | null;
9
- getKeyAfter(key: Key): Key | null;
10
- getFirstKey(): Key | null;
11
- getLastKey(): Key | null;
12
- getItem(key: Key): Node<T> | null;
13
- at(idx: number): Node<T> | null;
14
- getChildren(key: Key): Iterable<Node<T>>;
15
- }
16
- export interface ListProps<T> extends CollectionStateBase<T>, MultipleSelectionStateProps {
17
- /** Filter function to generate a filtered list of nodes. */
18
- filter?: (nodes: Iterable<Node<T>>) => Iterable<Node<T>>;
19
- /** @private */
20
- suppressTextValueWarning?: boolean;
21
- /**
22
- * A delegate object that provides layout information for items in the collection.
23
- * This can be used to override the behavior of shift selection.
24
- */
25
- layoutDelegate?: LayoutDelegate;
26
- }
27
- export interface ListState<T> {
28
- /** A collection of items in the list. */
29
- collection: Collection<Node<T>>;
30
- /** A set of items that are disabled. */
31
- disabledKeys: Set<Key>;
32
- /** A selection manager to read and update multiple selection state. */
33
- selectionManager: SelectionManager;
34
- }
35
- /**
36
- * Provides state management for list-like components. Handles building a collection
37
- * of items from props, and manages multiple selection state.
38
- */
39
- export function useListState<T extends object>(props: ListProps<T>): ListState<T>;
40
- /**
41
- * Filters a collection using the provided filter function and returns a new ListState.
42
- */
43
- export function UNSTABLE_useFilteredListState<T extends object>(state: ListState<T>, filterFn: ((nodeValue: string, node: Node<T>) => boolean) | null | undefined): ListState<T>;
44
- export interface SingleSelectListProps<T> extends CollectionStateBase<T>, Omit<SingleSelection, 'disallowEmptySelection'> {
45
- /** Filter function to generate a filtered list of nodes. */
46
- filter?: (nodes: Iterable<Node<T>>) => Iterable<Node<T>>;
47
- /** @private */
48
- suppressTextValueWarning?: boolean;
49
- }
50
- export interface SingleSelectListState<T> extends ListState<T> {
51
- /** The key for the currently selected item. */
52
- readonly selectedKey: Key | null;
53
- /** Sets the selected key. */
54
- setSelectedKey(key: Key | null): void;
55
- /** The value of the currently selected item. */
56
- readonly selectedItem: Node<T> | null;
57
- }
58
- /**
59
- * Provides state management for list-like components with single selection.
60
- * Handles building a collection of items from props, and manages selection state.
61
- */
62
- export function useSingleSelectListState<T extends object>(props: SingleSelectListProps<T>): SingleSelectListState<T>;
63
-
64
- //# sourceMappingURL=types.d.ts.map
@@ -1 +0,0 @@
1
- {"mappings":";;AAcA,4BAA4B,CAAC,CAAE,YAAW,WAAW,KAAK,CAAC,CAAC,CAAC;gBAO/C,KAAK,EAAE,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CAAC,CAAC,GAAG,UAAU,CAAC,CAAC,CAyBhF;AAED;;GAEG;AACH,8CAA8C,CAAC,SAAS,MAAM,EAAE,KAAK,EAAE,UAAU,CAAC,CAAC,EAAE,QAAQ,EAAE,CAAC,CAAC,SAAS,EAAE,MAAM,EAAE,IAAI,EAAE,KAAK,CAAC,CAAC,KAAK,OAAO,CAAC,GAAG,IAAI,GAAG,SAAS,GAAG,UAAU,CAAC,CAAC,CAS/K;ACnED,uCAAuC,CAAC,CAAE,SAAQ,oBAAoB,CAAC,CAAC,EAAE,IAAI,CAAC,eAAe,EAAE,wBAAwB,CAAC;IACvH,4DAA4D;IAC5D,MAAM,CAAC,EAAE,CAAC,KAAK,EAAE,QAAQ,CAAC,KAAK,CAAC,CAAC,CAAC,KAAK,QAAQ,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;IACzD,eAAe;IACf,wBAAwB,CAAC,EAAE,OAAO,CAAA;CACnC;AAED,uCAAuC,CAAC,CAAE,SAAQ,UAAU,CAAC,CAAC;IAC5D,+CAA+C;IAC/C,QAAQ,CAAC,WAAW,EAAE,GAAG,GAAG,IAAI,CAAC;IAEjC,6BAA6B;IAC7B,cAAc,CAAC,GAAG,EAAE,GAAG,GAAG,IAAI,GAAG,IAAI,CAAC;IAEtC,gDAAgD;IAChD,QAAQ,CAAC,YAAY,EAAE,KAAK,CAAC,CAAC,GAAG,IAAI,CAAA;CACtC;AAED;;;GAGG;AACH,yCAAyC,CAAC,SAAS,MAAM,EAAE,KAAK,EAAE,sBAAsB,CAAC,CAAC,GAAG,sBAAsB,CAAC,CAAC,CAsCpH","sources":["packages/@react-stately/list/src/packages/@react-stately/list/src/ListCollection.ts","packages/@react-stately/list/src/packages/@react-stately/list/src/useListState.ts","packages/@react-stately/list/src/packages/@react-stately/list/src/useSingleSelectListState.ts","packages/@react-stately/list/src/packages/@react-stately/list/src/index.ts","packages/@react-stately/list/src/index.ts"],"sourcesContent":[null,null,null,null,"/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\nexport type {ListProps, ListState} from './useListState';\nexport type {SingleSelectListProps, SingleSelectListState} from './useSingleSelectListState';\nexport {useListState, UNSTABLE_useFilteredListState} from './useListState';\nexport {useSingleSelectListState} from './useSingleSelectListState';\nexport {ListCollection} from './ListCollection';\n"],"names":[],"version":3,"file":"types.d.ts.map"}