@react-types/tabs
Advanced tools
Comparing version 3.0.0-nightly.2665 to 3.0.0-nightly.2672
{ | ||
"name": "@react-types/tabs", | ||
"version": "3.0.0-nightly.2665+887fff79", | ||
"version": "3.0.0-nightly.2672+d1844573", | ||
"description": "Spectrum UI components in React", | ||
@@ -12,3 +12,3 @@ "license": "Apache-2.0", | ||
"dependencies": { | ||
"@react-types/shared": "3.0.0-nightly.985+887fff79" | ||
"@react-types/shared": "3.0.0-nightly.992+d1844573" | ||
}, | ||
@@ -21,3 +21,3 @@ "peerDependencies": { | ||
}, | ||
"gitHead": "887fff79e8f33c0f8953dc38955419feddd56b6a" | ||
"gitHead": "d1844573fa992f7a34285ebafdc08cb407829095" | ||
} |
@@ -16,4 +16,4 @@ /* | ||
CollectionBase, | ||
CollectionChildren, | ||
DOMProps, | ||
Node, | ||
Orientation, | ||
@@ -25,5 +25,5 @@ SingleSelection, | ||
export interface AriaTabProps<T> { | ||
/** Collection node for the tab. */ | ||
item: Node<T>, | ||
export interface AriaTabProps { | ||
/** The key of the tab. */ | ||
key: Key, | ||
/** Whether the tab should be disabled. */ | ||
@@ -33,5 +33,5 @@ isDisabled?: boolean | ||
export interface TabsProps<T> extends CollectionBase<T>, SingleSelection {} | ||
export interface TabListProps<T> extends CollectionBase<T>, SingleSelection {} | ||
export interface AriaTabsProps<T> extends TabsProps<T>, DOMProps, AriaLabelingProps { | ||
export interface AriaTabListProps<T> extends TabListProps<T>, DOMProps, AriaLabelingProps { | ||
/** | ||
@@ -54,20 +54,21 @@ * Whether tabs are activated automatically on focus or manually. | ||
export interface SpectrumTabsProps<T> extends AriaTabsProps<T>, StyleProps { | ||
/** Whether the Tabs should be displayed with a quiet style. */ | ||
export interface AriaTabPanelProps extends DOMProps, AriaLabelingProps {} | ||
interface SpectrumTabsProps<T> extends SingleSelection, DOMProps, StyleProps { | ||
items?: Iterable<T>, | ||
keyboardActivation?: 'automatic' | 'manual', | ||
orientation?: Orientation, | ||
isDisabled?: boolean, | ||
disabledKeys?: Iterable<Key>, | ||
isQuiet?: boolean, | ||
/** | ||
* Sets the amount of space between the Tab and the Tab rail. | ||
* @default 'regular' | ||
*/ | ||
density?: 'compact' | 'regular', | ||
// overflowMode?: 'dropdown' | 'scrolling', | ||
// isEmphasized?: boolean, | ||
/** Whether Tabs are disabled. */ | ||
isDisabled?: boolean, | ||
/** Handler that is called when the tab selection changes. */ | ||
onSelectionChange?: (selectedItem: Key) => void, | ||
/** The currently selected Tab key in the collection (controlled). */ | ||
selectedKey?: Key, | ||
/** The initial selected Tab key in the collection (uncontrolled). */ | ||
defaultSelectedKey?: Key | ||
children: any | ||
} | ||
export interface SpectrumTabListProps<T> extends DOMProps, StyleProps { | ||
children: CollectionChildren<T> | ||
} | ||
export interface SpectrumTabPanelsProps<T> extends DOMProps, StyleProps { | ||
children: CollectionChildren<T> | ||
} |
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
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
14141
62