@react-types/shared
Advanced tools
Comparing version 3.0.2 to 3.1.0
{ | ||
"name": "@react-types/shared", | ||
"version": "3.0.2", | ||
"version": "3.1.0", | ||
"description": "Spectrum UI components in React", | ||
@@ -17,3 +17,3 @@ "license": "Apache-2.0", | ||
}, | ||
"gitHead": "05003506f02a0ec173f3448f1801cbdf12b47bc7" | ||
"gitHead": "211099972fe75ee581892efd01a7f89dfb9cdf69" | ||
} |
@@ -27,3 +27,3 @@ /* | ||
/** Whether this item has children, even if not loaded yet. */ | ||
hasChildItems?: boolean, | ||
hasChildItems?: boolean | ||
} | ||
@@ -125,3 +125,3 @@ | ||
/** The number of items in the collection. */ | ||
readonly size: number; | ||
readonly size: number, | ||
@@ -128,0 +128,0 @@ /** Iterate over all keys in the collection. */ |
@@ -45,6 +45,6 @@ /* | ||
export interface DragTarget { | ||
/** The type of view being dragged */ | ||
/** The type of view being dragged. */ | ||
type: string, | ||
/** The key of the view being dragged */ | ||
/** The key of the view being dragged. */ | ||
key: Key | ||
@@ -57,7 +57,7 @@ } | ||
/** | ||
* The key of the view being dropped on or between. | ||
/** | ||
* The key of the view being dropped on or between. | ||
* If null, it represents the entire collection view. | ||
*/ | ||
key: Key | null | ||
key: Key | null, | ||
@@ -64,0 +64,0 @@ dropPosition: DropPosition |
@@ -22,3 +22,3 @@ /* | ||
export type BaseEvent<T extends SyntheticEvent> = T & { | ||
/** @deprecated use continuePropagation */ | ||
/** @deprecated Use continuePropagation. */ | ||
stopPropagation(): void, | ||
@@ -25,0 +25,0 @@ continuePropagation(): void |
@@ -17,3 +17,3 @@ /* | ||
/** Whether the input should display its "valid" or "invalid" visual styling. */ | ||
validationState?: ValidationState | ||
validationState?: ValidationState, | ||
/** | ||
@@ -23,3 +23,3 @@ * Whether user input is required on the input before form submission. | ||
*/ | ||
isRequired?: boolean, | ||
isRequired?: boolean | ||
} | ||
@@ -40,3 +40,3 @@ | ||
/** Handler that is called when the value changes. */ | ||
onChange?: (value: T) => void, | ||
onChange?: (value: T) => void | ||
} | ||
@@ -43,0 +43,0 @@ |
@@ -27,3 +27,3 @@ /* | ||
primarySize?: number, | ||
defaultPrimarySize?: number, | ||
defaultPrimarySize?: number | ||
} | ||
@@ -34,3 +34,3 @@ | ||
dragging: boolean, | ||
hovered: boolean | ||
hovered: boolean, | ||
setOffset: (value: number) => void, | ||
@@ -37,0 +37,0 @@ setDragging: (value: boolean) => void, |
@@ -71,3 +71,3 @@ /* | ||
/** When used in a grid layout, specifies the named grid area that the element should be placed in within the grid. See [MDN](https://developer.mozilla.org/en-US/docs/Web/CSS/grid-area). */ | ||
gridArea?: string | ||
gridArea?: string, | ||
/** When used in a grid layout, specifies the column the element should be placed in within the grid. See [MDN](https://developer.mozilla.org/en-US/docs/Web/CSS/grid-column). */ | ||
@@ -180,3 +180,3 @@ gridColumn?: string, | ||
/** Species what to do when the element's content is too long to fit its size. See [MDN](https://developer.mozilla.org/en-US/docs/Web/CSS/overflow). */ | ||
overflow?: string, | ||
overflow?: string | ||
// ... | ||
@@ -193,3 +193,3 @@ // shadows? | ||
justifyContent?: '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). | ||
@@ -196,0 +196,0 @@ * @default 'start' |
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
65627
18
1199