🚀 Socket Launch Week 🚀 Day 5: Introducing Socket Fix.Learn More
Socket
Sign inDemoInstall
Socket

@react-types/shared

Package Overview
Dependencies
Maintainers
2
Versions
990
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@react-types/shared - npm Package Compare versions

Comparing version

to
3.0.0-nightly-2d8e30f4f-250415

2

package.json
{
"name": "@react-types/shared",
"version": "3.0.0-nightly-2a1c28b83-250122",
"version": "3.0.0-nightly-2d8e30f4f-250415",
"description": "Spectrum UI components in React",

@@ -5,0 +5,0 @@ "license": "Apache-2.0",

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

/** Returns a string representation of the item's contents. */
getTextValue?(key: Key): string
getTextValue?(key: Key): string,
/** Filters the collection using the given function. */
UNSTABLE_filter?(filterFn: (nodeValue: string) => boolean): Collection<T>
}

@@ -186,0 +189,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 @@

@@ -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). */