@react-types/select
Advanced tools
Comparing version 3.0.0-alpha.1 to 3.0.0-nightly-4980928d3-240906
{ | ||
"name": "@react-types/select", | ||
"version": "3.0.0-alpha.1", | ||
"version": "3.0.0-nightly-4980928d3-240906", | ||
"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-4980928d3-240906" | ||
}, | ||
"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 | ||
} |
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
No README
QualityPackage does not have a README. This may indicate a failed publish or a low quality package.
Found 1 instance in 1 package
70
0
3
3370
+ Addedreact@18.3.1(transitive)
- Removedobject-assign@4.1.1(transitive)
- Removedprop-types@15.8.1(transitive)
- Removedreact@16.14.0(transitive)
- Removedreact-is@16.13.1(transitive)