@react-types/shared
Advanced tools
Comparing version 3.0.0 to 3.0.1
{ | ||
"name": "@react-types/shared", | ||
"version": "3.0.0", | ||
"version": "3.0.1", | ||
"description": "Spectrum UI components in React", | ||
@@ -9,3 +9,3 @@ "license": "Apache-2.0", | ||
"type": "git", | ||
"url": "https://github.com/adobe-private/react-spectrum-v3" | ||
"url": "https://github.com/adobe/react-spectrum" | ||
}, | ||
@@ -18,3 +18,3 @@ "peerDependencies": { | ||
}, | ||
"gitHead": "a32224fdf009d69cf594f32ad18ac86d7ebb8a52" | ||
"gitHead": "ac0b7a7ba0edccd1c9ab4f849022ad6d2ccd19ed" | ||
} |
# @react-types/shared | ||
This package is part of [react-spectrum](https://github.com/adobe-private/react-spectrum-v3). See the repo for more details. | ||
This package is part of [react-spectrum](https://github.com/adobe/react-spectrum). See the repo for more details. |
@@ -49,3 +49,3 @@ /* | ||
/** | ||
* The element's unique identifier. | ||
* The element's unique identifier. See [MDN](https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/id). | ||
*/ | ||
@@ -84,3 +84,3 @@ id?: string | ||
/** | ||
* Name of the input control. See [MDN](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#htmlattrdefname). | ||
* The name of the input element, used when submitting an HTML form. See [MDN](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#htmlattrdefname). | ||
*/ | ||
@@ -95,3 +95,3 @@ name?: string, | ||
/** | ||
* Content that appears in the input when the input is empty. See [MDN](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#htmlattrdefplaceholder). | ||
* Content that appears in the input when it is empty. See [MDN](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#htmlattrdefplaceholder). | ||
*/ | ||
@@ -101,6 +101,6 @@ placeholder?: string, | ||
/** | ||
* The type of input control to render. See [MDN](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#htmlattrdeftype). | ||
* The type of input to render. See [MDN](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#htmlattrdeftype). | ||
*/ | ||
type?: 'text' | 'search' | 'url' | 'tel' | 'email' | 'password' | string, | ||
/** | ||
@@ -113,3 +113,3 @@ * Hints at the type of data that might be entered by the user while editing the element or its contents. See [MDN](https://html.spec.whatwg.org/multipage/interaction.html#input-modalities:-the-inputmode-attribute). | ||
/** | ||
* Handler that is called when the user attempts to copy text. See [MDN](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/oncopy). | ||
* Handler that is called when the user copies text. See [MDN](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/oncopy). | ||
*/ | ||
@@ -119,3 +119,3 @@ onCopy?: ClipboardEventHandler<HTMLInputElement>, | ||
/** | ||
* Handler that is called when the user attempts to cut text. See [MDN](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/oncut). | ||
* Handler that is called when the user cuts text. See [MDN](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/oncut). | ||
*/ | ||
@@ -125,3 +125,3 @@ onCut?: ClipboardEventHandler<HTMLInputElement>, | ||
/** | ||
* Handler that is called when the user attempts to paste text. See [MDN](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/onpaste). | ||
* Handler that is called when the user pastes text. See [MDN](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/onpaste). | ||
*/ | ||
@@ -148,3 +148,3 @@ onPaste?: ClipboardEventHandler<HTMLInputElement>, | ||
/** | ||
* Handler that fires when some text in the input has been selected. See [MDN](https://developer.mozilla.org/en-US/docs/Web/API/Element/select_event). | ||
* Handler that is called when text in the input is selected. See [MDN](https://developer.mozilla.org/en-US/docs/Web/API/Element/select_event). | ||
*/ | ||
@@ -155,9 +155,9 @@ onSelect?: ReactEventHandler<HTMLInputElement>, | ||
/** | ||
* Handler that fires when the input value is about to be modified. See [MDN](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/beforeinput_event). | ||
* Handler that is called when the input value is about to be modified. See [MDN](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/beforeinput_event). | ||
*/ | ||
onBeforeInput?: FormEventHandler<HTMLInputElement>, | ||
/** | ||
* Handler that fires when the input value is modified. See [MDN](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/input_event). | ||
* Handler that is called when the input value is modified. See [MDN](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/input_event). | ||
*/ | ||
onInput?: FormEventHandler<HTMLInputElement> | ||
} |
@@ -100,4 +100,4 @@ /* | ||
export interface FocusableProps extends FocusEvents, KeyboardEvents { | ||
/** Whether the element should receive focus on render */ | ||
/** 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
66324