@react-types/tabs
Advanced tools
Comparing version 3.0.0-nightly.2771 to 3.0.0-nightly-086ad3115-240911
{ | ||
"name": "@react-types/tabs", | ||
"version": "3.0.0-nightly.2771+756016d40", | ||
"version": "3.0.0-nightly-086ad3115-240911", | ||
"description": "Spectrum UI components in React", | ||
@@ -12,6 +12,6 @@ "license": "Apache-2.0", | ||
"dependencies": { | ||
"@react-types/shared": "3.0.0-nightly.1086+756016d40" | ||
"@react-types/shared": "^3.0.0-nightly-086ad3115-240911" | ||
}, | ||
"peerDependencies": { | ||
"react": "^16.8.0 || ^17.0.0-rc.1" | ||
"react": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 || ^19.0.0" | ||
}, | ||
@@ -21,3 +21,3 @@ "publishConfig": { | ||
}, | ||
"gitHead": "756016d40d65de089987df04d087cba8a2d26185" | ||
} | ||
"stableVersion": "3.3.9" | ||
} |
@@ -14,6 +14,6 @@ /* | ||
import { | ||
AriaLabelingProps, | ||
CollectionBase, | ||
AriaLabelingProps, CollectionBase, | ||
CollectionChildren, | ||
DOMProps, | ||
Key, | ||
Orientation, | ||
@@ -23,14 +23,22 @@ SingleSelection, | ||
} from '@react-types/shared'; | ||
import {Key, ReactNode} from 'react'; | ||
import {ReactNode} from 'react'; | ||
export interface AriaTabProps { | ||
export interface AriaTabProps extends AriaLabelingProps { | ||
/** The key of the tab. */ | ||
key: Key, | ||
/** Whether the tab should be disabled. */ | ||
isDisabled?: boolean, | ||
/** Whether the tab selection should occur on press up instead of press down. */ | ||
shouldSelectOnPressUp?: boolean | ||
} | ||
export interface TabListProps<T> extends CollectionBase<T>, Omit<SingleSelection, 'disallowEmptySelection'> { | ||
/** | ||
* Whether the TabList is disabled. | ||
* Shows that a selection exists, but is not available in that circumstance. | ||
*/ | ||
isDisabled?: boolean | ||
} | ||
export interface TabListProps<T> extends CollectionBase<T>, Omit<SingleSelection, 'disallowEmptySelection'> {} | ||
interface AriaTabListBase { | ||
interface AriaTabListBase extends AriaLabelingProps { | ||
/** | ||
@@ -45,8 +53,3 @@ * Whether tabs are activated automatically on focus or manually. | ||
*/ | ||
orientation?: Orientation, | ||
/** | ||
* Whether the Tabs are disabled. | ||
* Shows that a selection exists, but is not available in that circumstance. | ||
*/ | ||
isDisabled?: boolean | ||
orientation?: Orientation | ||
} | ||
@@ -59,3 +62,3 @@ | ||
export interface SpectrumTabsProps<T> extends AriaTabListBase, SingleSelection, DOMProps, StyleProps { | ||
/** The children of the <Tabs> element. Should include `<TabList>` and `<TabPanels>` elements. */ | ||
/** The children of the `<Tabs>` element. Should include `<TabList>` and `<TabPanels>` elements. */ | ||
children: ReactNode, | ||
@@ -66,4 +69,8 @@ /** The item objects for each tab, for dynamic collections. */ | ||
disabledKeys?: Iterable<Key>, | ||
/** Whether the Tabs are disabled. */ | ||
isDisabled?: boolean, | ||
/** Whether the tabs are displayed in a quiet style. */ | ||
isQuiet?: boolean, | ||
/** Whether the tabs are displayed in an emphasized style. */ | ||
isEmphasized?: boolean, | ||
/** The amount of space between the tabs. */ | ||
@@ -70,0 +77,0 @@ density?: 'compact' | 'regular' |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
74
0
3801
3
+ Added@react-types/shared@3.26.0(transitive)
+ Addedreact@19.0.0(transitive)
- Removedjs-tokens@4.0.0(transitive)
- Removedloose-envify@1.4.0(transitive)
- Removedobject-assign@4.1.1(transitive)
- Removedreact@17.0.2(transitive)