Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@react-types/tabs

Package Overview
Dependencies
Maintainers
2
Versions
831
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@react-types/tabs - npm Package Compare versions

Comparing version 3.0.0-nightly.2771 to 3.0.0-nightly-641446f65-240905

10

package.json
{
"name": "@react-types/tabs",
"version": "3.0.0-nightly.2771+756016d40",
"version": "3.0.0-nightly-641446f65-240905",
"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-641446f65-240905"
},
"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'

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc