Socket
Socket
Sign inDemoInstall

@react-types/select

Package Overview
Dependencies
Maintainers
2
Versions
747
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@react-types/select - npm Package Compare versions

Comparing version 3.0.0-alpha.1 to 3.0.0-nightly-641446f65-240905

README.md

12

package.json
{
"name": "@react-types/select",
"version": "3.0.0-alpha.1",
"version": "3.0.0-nightly-641446f65-240905",
"description": "Spectrum UI components in React",

@@ -9,9 +9,9 @@ "license": "Apache-2.0",

"type": "git",
"url": "https://github.com/adobe-private/react-spectrum-v3"
"url": "https://github.com/adobe/react-spectrum"
},
"dependencies": {
"@react-types/shared": "^3.0.0-rc.2"
"@react-types/shared": "^3.0.0-nightly-641446f65-240905"
},
"peerDependencies": {
"react": "^16.8.0"
"react": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 || ^19.0.0"
},

@@ -21,3 +21,3 @@ "publishConfig": {

},
"gitHead": "207e6ee9076905c96638a7f81a367758872e1410"
}
"stableVersion": "3.9.6"
}

@@ -6,3 +6,3 @@ /*

* of the License at http://www.apache.org/licenses/LICENSE-2.0
*
*
* Unless required by applicable law or agreed to in writing, software distributed under

@@ -14,17 +14,63 @@ * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS

import {Alignment, CollectionBase, DimensionValue, DOMProps, InputBase, LabelableProps, SingleSelection, SpectrumLabelableProps, StyleProps, TextInputBase} from '@react-types/shared';
import {
Alignment,
AriaLabelingProps,
AsyncLoadable,
CollectionBase,
DimensionValue,
DOMProps,
FocusableDOMProps,
FocusableProps,
HelpTextProps,
InputBase,
Key,
LabelableProps,
SingleSelection,
SpectrumLabelableProps,
StyleProps,
TextInputBase,
Validation
} from '@react-types/shared';
export interface SelectProps<T> extends CollectionBase<T>, InputBase, LabelableProps, TextInputBase, SingleSelection {
export interface SelectProps<T> extends CollectionBase<T>, Omit<InputBase, 'isReadOnly'>, Validation<Key>, HelpTextProps, LabelableProps, TextInputBase, Omit<SingleSelection, 'disallowEmptySelection'>, FocusableProps {
/** Sets the open state of the menu. */
isOpen?: boolean,
/** Sets the default open state of the menu. */
defaultOpen?: boolean,
onOpenChange?: (isOpen: boolean) => void,
shouldFlip?: boolean
/** Method that is called when the open state of the menu changes. */
onOpenChange?: (isOpen: boolean) => void
}
export interface SpectrumPickerProps<T> extends SelectProps<T>, SpectrumLabelableProps, DOMProps, StyleProps {
export interface AriaSelectProps<T> extends SelectProps<T>, DOMProps, AriaLabelingProps, FocusableDOMProps {
/**
* Describes the type of autocomplete functionality the input should provide if any. See [MDN](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#htmlattrdefautocomplete).
*/
autoComplete?: string,
/**
* The name of the input, used when submitting an HTML form.
*/
name?: string
}
export interface SpectrumPickerProps<T> extends AriaSelectProps<T>, AsyncLoadable, SpectrumLabelableProps, StyleProps {
/** Whether the textfield should be displayed with a quiet style. */
isQuiet?: boolean,
/** Alignment of the menu relative to the input target.
* @default 'start'
*/
align?: Alignment,
/**
* Direction the menu will render relative to the Picker.
* @default 'bottom'
*/
direction?: 'bottom' | 'top',
/**
* Whether the menu should automatically flip direction when space is limited.
* @default true
*/
shouldFlip?: boolean,
/** Width of the menu. By default, matches width of the trigger. Note that the minimum width of the dropdown is always equal to the trigger's width. */
menuWidth?: DimensionValue,
name?: string
/** Whether the element should receive focus on render. */
autoFocus?: boolean
}
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