@react-types/shared
Advanced tools
Comparing version
{ | ||
"name": "@react-types/shared", | ||
"version": "3.0.0-nightly-9bd8a5f19-250304", | ||
"version": "3.0.0-nightly-9c6057f3f-250708", | ||
"description": "Spectrum UI components in React", | ||
@@ -5,0 +5,0 @@ "license": "Apache-2.0", |
@@ -221,6 +221,14 @@ /* | ||
/** | ||
* Handler that is called when items are reordered via drag in the source collection. | ||
* Handler that is called when items are reordered within the collection. | ||
* This handler only allows dropping between items, not on items. | ||
* It does not allow moving items to a different parent item within a tree. | ||
*/ | ||
onReorder?: (e: DroppableCollectionReorderEvent) => void, | ||
/** | ||
* Handler that is called when items are moved within the source collection. | ||
* This handler allows dropping both on or between items, and items may be | ||
* moved to a different parent item within a tree. | ||
*/ | ||
onMove?: (e: DroppableCollectionReorderEvent) => void, | ||
/** | ||
* A function returning whether a given target in the droppable collection is a valid "on" drop target for the current drag types. | ||
@@ -236,3 +244,2 @@ */ | ||
* Handler that is called after a valid drag is held over a drop target for a period of time. | ||
* @private | ||
*/ | ||
@@ -239,0 +246,0 @@ onDropActivate?: (e: DroppableCollectionActivateEvent) => void, |
@@ -130,3 +130,9 @@ /* | ||
*/ | ||
name?: string | ||
name?: string, | ||
/** | ||
* The `<form>` element to associate the input with. | ||
* The value of this attribute must be the id of a `<form>` in the same document. | ||
* See [MDN](https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/input#form). | ||
*/ | ||
form?: string | ||
} | ||
@@ -133,0 +139,0 @@ |
@@ -13,4 +13,6 @@ /* | ||
import {FocusableElement} from './dom'; | ||
import { | ||
FocusEvent, | ||
MouseEvent, | ||
KeyboardEvent as ReactKeyboardEvent, | ||
@@ -116,3 +118,9 @@ SyntheticEvent | ||
*/ | ||
onPressUp?: (e: PressEvent) => void | ||
onPressUp?: (e: PressEvent) => void, | ||
/** | ||
* **Not recommended – use `onPress` instead.** `onClick` is an alias for `onPress` | ||
* provided for compatibility with other libraries. `onPress` provides | ||
* additional event details for non-mouse interactions. | ||
*/ | ||
onClick?: (e: MouseEvent<FocusableElement>) => void | ||
} | ||
@@ -119,0 +127,0 @@ |
@@ -23,3 +23,3 @@ /* | ||
/** Handler that is called when the selection changes. */ | ||
onSelectionChange?: (key: Key) => void | ||
onSelectionChange?: (key: Key | null) => void | ||
} | ||
@@ -26,0 +26,0 @@ |
@@ -212,16 +212,7 @@ /* | ||
export interface BoxAlignmentStyleProps { | ||
/** | ||
* The distribution of space around items along the main axis. See [MDN](https://developer.mozilla.org/en-US/docs/Web/CSS/justify-content). | ||
* @default 'stretch' | ||
*/ | ||
/** The distribution of space around items along the main axis. See [MDN](https://developer.mozilla.org/en-US/docs/Web/CSS/justify-content). */ | ||
justifyContent?: Responsive<'start' | 'end' | 'center' | 'left' | 'right' | 'space-between' | 'space-around' | 'space-evenly' | 'stretch' | 'baseline' | 'first baseline' | 'last baseline' | 'safe center' | 'unsafe center'>, | ||
/** | ||
* The distribution of space around child items along the cross axis. See [MDN](https://developer.mozilla.org/en-US/docs/Web/CSS/align-content). | ||
* @default 'start' | ||
*/ | ||
/** The distribution of space around child items along the cross axis. See [MDN](https://developer.mozilla.org/en-US/docs/Web/CSS/align-content).*/ | ||
alignContent?: Responsive<'start' | 'end' | 'center' | 'space-between' | 'space-around' | 'space-evenly' | 'stretch' | 'baseline' | 'first baseline' | 'last baseline' | 'safe center' | 'unsafe center'>, | ||
/** | ||
* The alignment of children within their container. See [MDN](https://developer.mozilla.org/en-US/docs/Web/CSS/align-items). | ||
* @default 'stretch' | ||
*/ | ||
/** The alignment of children within their container. See [MDN](https://developer.mozilla.org/en-US/docs/Web/CSS/align-items). */ | ||
alignItems?: Responsive<'start' | 'end' | 'center' | 'stretch' | 'self-start' | 'self-end' | 'baseline' | 'first baseline' | 'last baseline' | 'safe center' | 'unsafe center'>, | ||
@@ -228,0 +219,0 @@ /** The space to display between both rows and columns. See [MDN](https://developer.mozilla.org/en-US/docs/Web/CSS/gap). */ |
76551
1.21%1827
0.66%