@react-types/shared 3.0.0-nightly.2539 → 3.0.0-nightly.2545
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 +2 -2
- package/src/collections.d.ts +2 -1
- package/src/dnd.d.ts +2 -1
- package/src/index.d.ts +1 -0
- package/src/key.d.ts +13 -0
- package/src/selection.d.ts +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@react-types/shared",
|
|
3
|
-
"version": "3.0.0-nightly.
|
|
3
|
+
"version": "3.0.0-nightly.2545+4dede01e2",
|
|
4
4
|
"description": "Spectrum UI components in React",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"types": "src/index.d.ts",
|
|
@@ -14,5 +14,5 @@
|
|
|
14
14
|
"publishConfig": {
|
|
15
15
|
"access": "public"
|
|
16
16
|
},
|
|
17
|
-
"gitHead": "
|
|
17
|
+
"gitHead": "4dede01e242937311970bd495319a89bb48e33a5"
|
|
18
18
|
}
|
package/src/collections.d.ts
CHANGED
|
@@ -10,8 +10,9 @@
|
|
|
10
10
|
* governing permissions and limitations under the License.
|
|
11
11
|
*/
|
|
12
12
|
|
|
13
|
-
import {Key
|
|
13
|
+
import {Key} from '@react-types/shared';
|
|
14
14
|
import {LinkDOMProps} from './dom';
|
|
15
|
+
import {ReactElement, ReactNode} from 'react';
|
|
15
16
|
|
|
16
17
|
export interface ItemProps<T> extends LinkDOMProps {
|
|
17
18
|
/** Rendered contents of the item or child items. */
|
package/src/dnd.d.ts
CHANGED
|
@@ -10,7 +10,8 @@
|
|
|
10
10
|
* governing permissions and limitations under the License.
|
|
11
11
|
*/
|
|
12
12
|
|
|
13
|
-
import {Key
|
|
13
|
+
import {Key} from '@react-types/shared';
|
|
14
|
+
import {RefObject} from 'react';
|
|
14
15
|
|
|
15
16
|
export interface DragDropEvent {
|
|
16
17
|
/** The x coordinate of the event, relative to the target element. */
|
package/src/index.d.ts
CHANGED
package/src/key.d.ts
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright 2023 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
|
+
*/
|
|
12
|
+
|
|
13
|
+
export type Key = string | number;
|
package/src/selection.d.ts
CHANGED