@react-types/card 3.0.0-alpha.40 → 3.0.0-alpha.42
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/package.json +5 -5
- package/src/index.d.ts +2 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@react-types/card",
|
|
3
|
-
"version": "3.0.0-alpha.
|
|
3
|
+
"version": "3.0.0-alpha.42",
|
|
4
4
|
"description": "Spectrum UI components in React",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"types": "src/index.d.ts",
|
|
@@ -9,9 +9,9 @@
|
|
|
9
9
|
"url": "https://github.com/adobe/react-spectrum"
|
|
10
10
|
},
|
|
11
11
|
"dependencies": {
|
|
12
|
-
"@react-stately/virtualizer": "^4.4.
|
|
13
|
-
"@react-types/provider": "^3.8.
|
|
14
|
-
"@react-types/shared": "^3.
|
|
12
|
+
"@react-stately/virtualizer": "^4.4.5",
|
|
13
|
+
"@react-types/provider": "^3.8.14",
|
|
14
|
+
"@react-types/shared": "^3.33.0"
|
|
15
15
|
},
|
|
16
16
|
"peerDependencies": {
|
|
17
17
|
"react": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 || ^19.0.0-rc.1",
|
|
@@ -20,5 +20,5 @@
|
|
|
20
20
|
"publishConfig": {
|
|
21
21
|
"access": "public"
|
|
22
22
|
},
|
|
23
|
-
"gitHead": "
|
|
23
|
+
"gitHead": "66e51757606b43a89ed02c574ca24517323a2ab9"
|
|
24
24
|
}
|
package/src/index.d.ts
CHANGED
|
@@ -32,7 +32,7 @@ interface LayoutOptions {
|
|
|
32
32
|
collator?: Intl.Collator,
|
|
33
33
|
// TODO: is this valid or is scale a spectrum specific thing that should be left out of the layouts?
|
|
34
34
|
// Added here so we can keep the default item padding options within the layouts instead of having to
|
|
35
|
-
// do extra work in CardView to
|
|
35
|
+
// do extra work in CardView to accommodate different sizing for scales
|
|
36
36
|
scale?: Scale
|
|
37
37
|
}
|
|
38
38
|
|
|
@@ -51,7 +51,7 @@ export interface CardViewLayoutConstructor<T> {
|
|
|
51
51
|
}
|
|
52
52
|
|
|
53
53
|
interface CardViewProps<T> extends CollectionBase<T>, MultipleSelection, Omit<AsyncLoadable, 'isLoading'> {
|
|
54
|
-
// TODO: Does
|
|
54
|
+
// TODO: Does LayoutConstructor and Layout give enough info for a user to know what to put in their own custom layout?
|
|
55
55
|
// Replaced with CardViewLayout so that they know they need to have keyboardDelegate stuff as well as collection, disabledKeys, etc
|
|
56
56
|
layout: CardViewLayoutConstructor<T> | CardViewLayout<T>,
|
|
57
57
|
// TODO: readd size when we get updated designs from spectrum
|