@react-aria/gridlist
Advanced tools
Comparing version 3.0.0-nightly.3420 to 3.0.0-nightly.3426
@@ -31,3 +31,3 @@ var $dSFus$reactariautils = require("@react-aria/utils"); | ||
function $acf209ae814f1c93$export$664f9155035607eb(props, state, ref) { | ||
let { isVirtualized: isVirtualized , keyboardDelegate: keyboardDelegate , getRowText: getRowText , onAction: onAction } = props; | ||
let { isVirtualized: isVirtualized , keyboardDelegate: keyboardDelegate , onAction: onAction } = props; | ||
if (!props['aria-label'] && !props['aria-labelledby']) console.warn('An aria-label or aria-labelledby prop is required for accessibility.'); | ||
@@ -65,3 +65,2 @@ let { listProps: listProps } = $dSFus$reactariaselection.useSelectableList({ | ||
$dSFus$reactariagrid.useGridSelectionAnnouncement({ | ||
getRowText: getRowText | ||
}, state); | ||
@@ -68,0 +67,0 @@ return { |
@@ -24,3 +24,3 @@ import {useId as $13Gtr$useId, filterDOMProps as $13Gtr$filterDOMProps, mergeProps as $13Gtr$mergeProps, useSlotId as $13Gtr$useSlotId} from "@react-aria/utils"; | ||
function $f47efb0c3a859cf2$export$664f9155035607eb(props, state, ref) { | ||
let { isVirtualized: isVirtualized , keyboardDelegate: keyboardDelegate , getRowText: getRowText , onAction: onAction } = props; | ||
let { isVirtualized: isVirtualized , keyboardDelegate: keyboardDelegate , onAction: onAction } = props; | ||
if (!props['aria-label'] && !props['aria-labelledby']) console.warn('An aria-label or aria-labelledby prop is required for accessibility.'); | ||
@@ -58,3 +58,2 @@ let { listProps: listProps } = $13Gtr$useSelectableList({ | ||
$13Gtr$useGridSelectionAnnouncement({ | ||
getRowText: getRowText | ||
}, state); | ||
@@ -61,0 +60,0 @@ return { |
import { AriaGridListProps } from "@react-types/list"; | ||
import { DOMAttributes, KeyboardDelegate, FocusableElement, Node } from "@react-types/shared"; | ||
import { Key, RefObject } from "react"; | ||
import { ListState } from "@react-stately/list"; | ||
import { RefObject } from "react"; | ||
import { SelectableItemStates } from "@react-aria/selection"; | ||
@@ -15,7 +15,2 @@ import { AriaGridSelectionCheckboxProps, GridSelectionCheckboxAria } from "@react-aria/grid"; | ||
keyboardDelegate?: KeyboardDelegate; | ||
/** | ||
* A function that returns the text that should be announced by assistive technology when a row is added or removed from selection. | ||
* @default (key) => state.collection.getItem(key)?.textValue | ||
*/ | ||
getRowText?: (key: Key) => string; | ||
} | ||
@@ -22,0 +17,0 @@ export interface GridListAria { |
{ | ||
"name": "@react-aria/gridlist", | ||
"version": "3.0.0-nightly.3420+af06f65c9", | ||
"version": "3.0.0-nightly.3426+c03dc85b8", | ||
"description": "Spectrum UI components in React", | ||
@@ -21,12 +21,12 @@ "license": "Apache-2.0", | ||
"@babel/runtime": "^7.6.2", | ||
"@react-aria/focus": "3.0.0-nightly.1720+af06f65c9", | ||
"@react-aria/grid": "3.4.1-nightly.3420+af06f65c9", | ||
"@react-aria/i18n": "3.0.0-nightly.1720+af06f65c9", | ||
"@react-aria/interactions": "3.0.0-nightly.1720+af06f65c9", | ||
"@react-aria/selection": "3.0.0-nightly.1720+af06f65c9", | ||
"@react-aria/utils": "3.0.0-nightly.1720+af06f65c9", | ||
"@react-stately/list": "3.5.3-nightly.3420+af06f65c9", | ||
"@react-types/checkbox": "3.0.0-nightly.1720+af06f65c9", | ||
"@react-types/list": "3.0.0-nightly.3420+af06f65c9", | ||
"@react-types/shared": "3.0.0-nightly.1720+af06f65c9" | ||
"@react-aria/focus": "3.0.0-nightly.1726+c03dc85b8", | ||
"@react-aria/grid": "3.4.1-nightly.3426+c03dc85b8", | ||
"@react-aria/i18n": "3.0.0-nightly.1726+c03dc85b8", | ||
"@react-aria/interactions": "3.0.0-nightly.1726+c03dc85b8", | ||
"@react-aria/selection": "3.0.0-nightly.1726+c03dc85b8", | ||
"@react-aria/utils": "3.0.0-nightly.1726+c03dc85b8", | ||
"@react-stately/list": "3.5.3-nightly.3426+c03dc85b8", | ||
"@react-types/checkbox": "3.0.0-nightly.1726+c03dc85b8", | ||
"@react-types/list": "3.0.0-nightly.3426+c03dc85b8", | ||
"@react-types/shared": "3.0.0-nightly.1726+c03dc85b8" | ||
}, | ||
@@ -39,3 +39,3 @@ "peerDependencies": { | ||
}, | ||
"gitHead": "af06f65c95414c83f7d9d5dc3740f98dad2e10ad" | ||
"gitHead": "c03dc85b859e335eafcd32087c7ab8b3f49afc23" | ||
} |
@@ -16,5 +16,5 @@ /* | ||
import {filterDOMProps, mergeProps, useId} from '@react-aria/utils'; | ||
import {Key, RefObject} from 'react'; | ||
import {listMap} from './utils'; | ||
import {ListState} from '@react-stately/list'; | ||
import {RefObject} from 'react'; | ||
import {useGridSelectionAnnouncement, useHighlightSelectionDescription} from '@react-aria/grid'; | ||
@@ -30,8 +30,3 @@ import {useSelectableList} from '@react-aria/selection'; | ||
*/ | ||
keyboardDelegate?: KeyboardDelegate, | ||
/** | ||
* A function that returns the text that should be announced by assistive technology when a row is added or removed from selection. | ||
* @default (key) => state.collection.getItem(key)?.textValue | ||
*/ | ||
getRowText?: (key: Key) => string | ||
keyboardDelegate?: KeyboardDelegate | ||
} | ||
@@ -55,3 +50,2 @@ | ||
keyboardDelegate, | ||
getRowText, | ||
onAction | ||
@@ -99,3 +93,3 @@ } = props; | ||
useGridSelectionAnnouncement({getRowText}, state); | ||
useGridSelectionAnnouncement({}, state); | ||
@@ -102,0 +96,0 @@ return { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
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
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
92558
796