@react-types/tabs 3.1.2-nightly.3368 → 3.1.2-nightly.3373
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 +3 -3
- package/src/index.d.ts +8 -7
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@react-types/tabs",
|
|
3
|
-
"version": "3.1.2-nightly.
|
|
3
|
+
"version": "3.1.2-nightly.3373+8defd74c9",
|
|
4
4
|
"description": "Spectrum UI components in React",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"types": "src/index.d.ts",
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
"url": "https://github.com/adobe/react-spectrum"
|
|
10
10
|
},
|
|
11
11
|
"dependencies": {
|
|
12
|
-
"@react-types/shared": "3.0.0-nightly.
|
|
12
|
+
"@react-types/shared": "3.0.0-nightly.1673+8defd74c9"
|
|
13
13
|
},
|
|
14
14
|
"peerDependencies": {
|
|
15
15
|
"react": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0"
|
|
@@ -17,5 +17,5 @@
|
|
|
17
17
|
"publishConfig": {
|
|
18
18
|
"access": "public"
|
|
19
19
|
},
|
|
20
|
-
"gitHead": "
|
|
20
|
+
"gitHead": "8defd74c9698b4dda32fd20bcfc579b123cd98e7"
|
|
21
21
|
}
|
package/src/index.d.ts
CHANGED
|
@@ -28,7 +28,13 @@ export interface AriaTabProps {
|
|
|
28
28
|
isDisabled?: boolean
|
|
29
29
|
}
|
|
30
30
|
|
|
31
|
-
export interface TabListProps<T> extends CollectionBase<T>, Omit<SingleSelection, 'disallowEmptySelection'> {
|
|
31
|
+
export interface TabListProps<T> extends CollectionBase<T>, Omit<SingleSelection, 'disallowEmptySelection'> {
|
|
32
|
+
/**
|
|
33
|
+
* Whether the Tabs are disabled.
|
|
34
|
+
* Shows that a selection exists, but is not available in that circumstance.
|
|
35
|
+
*/
|
|
36
|
+
isDisabled?: boolean
|
|
37
|
+
}
|
|
32
38
|
|
|
33
39
|
interface AriaTabListBase {
|
|
34
40
|
/**
|
|
@@ -40,12 +46,7 @@ interface AriaTabListBase {
|
|
|
40
46
|
* The orientation of the tabs.
|
|
41
47
|
* @default 'horizontal'
|
|
42
48
|
*/
|
|
43
|
-
orientation?: Orientation
|
|
44
|
-
/**
|
|
45
|
-
* Whether the Tabs are disabled.
|
|
46
|
-
* Shows that a selection exists, but is not available in that circumstance.
|
|
47
|
-
*/
|
|
48
|
-
isDisabled?: boolean
|
|
49
|
+
orientation?: Orientation
|
|
49
50
|
}
|
|
50
51
|
|
|
51
52
|
export interface AriaTabListProps<T> extends TabListProps<T>, AriaTabListBase, DOMProps, AriaLabelingProps {}
|