@reach/listbox
Advanced tools
Comparing version 0.16.0 to 0.16.1
@@ -293,2 +293,6 @@ /** | ||
/** | ||
* TODO: Document this! | ||
*/ | ||
index?: number; | ||
/** | ||
* The option's human-readable label. This prop is optional but highly | ||
@@ -295,0 +299,0 @@ * encouraged if your option has multiple text nodes that may or may not |
@@ -717,3 +717,3 @@ 'use strict'; | ||
_excluded6 = ["as"], | ||
_excluded7 = ["as", "children", "disabled", "onClick", "onMouseDown", "onMouseEnter", "onMouseLeave", "onMouseMove", "onMouseUp", "onTouchStart", "value", "label"], | ||
_excluded7 = ["as", "children", "disabled", "index", "label", "onClick", "onMouseDown", "onMouseEnter", "onMouseLeave", "onMouseMove", "onMouseUp", "onTouchStart", "value"], | ||
_excluded8 = ["as", "label", "children"], | ||
@@ -1301,2 +1301,4 @@ _excluded9 = ["as"]; | ||
disabled = _ref8.disabled, | ||
indexProp = _ref8.index, | ||
labelProp = _ref8.label, | ||
onClick = _ref8.onClick, | ||
@@ -1310,3 +1312,2 @@ onMouseDown = _ref8.onMouseDown, | ||
value = _ref8.value, | ||
labelProp = _ref8.label, | ||
props = _objectWithoutPropertiesLoose(_ref8, _excluded7); | ||
@@ -1344,3 +1345,3 @@ | ||
}, [disabled, element, label, value]); | ||
descendants.useDescendant(descendant, ListboxDescendantContext); // After the ref is mounted to the DOM node, we check to see if we have an | ||
descendants.useDescendant(descendant, ListboxDescendantContext, indexProp); // After the ref is mounted to the DOM node, we check to see if we have an | ||
// explicit label prop before looking for the node's textContent for | ||
@@ -1347,0 +1348,0 @@ // typeahead functionality. |
@@ -713,3 +713,3 @@ import { forwardRef, useRef, useMemo, useEffect, createElement, Fragment, useContext, memo, useState, useCallback } from 'react'; | ||
_excluded6 = ["as"], | ||
_excluded7 = ["as", "children", "disabled", "onClick", "onMouseDown", "onMouseEnter", "onMouseLeave", "onMouseMove", "onMouseUp", "onTouchStart", "value", "label"], | ||
_excluded7 = ["as", "children", "disabled", "index", "label", "onClick", "onMouseDown", "onMouseEnter", "onMouseLeave", "onMouseMove", "onMouseUp", "onTouchStart", "value"], | ||
_excluded8 = ["as", "label", "children"], | ||
@@ -1349,2 +1349,4 @@ _excluded9 = ["as"]; | ||
disabled = _ref8.disabled, | ||
indexProp = _ref8.index, | ||
labelProp = _ref8.label, | ||
onClick = _ref8.onClick, | ||
@@ -1358,3 +1360,2 @@ onMouseDown = _ref8.onMouseDown, | ||
value = _ref8.value, | ||
labelProp = _ref8.label, | ||
props = _objectWithoutPropertiesLoose(_ref8, _excluded7); | ||
@@ -1396,3 +1397,3 @@ | ||
}, [disabled, element, label, value]); | ||
useDescendant(descendant, ListboxDescendantContext); // After the ref is mounted to the DOM node, we check to see if we have an | ||
useDescendant(descendant, ListboxDescendantContext, indexProp); // After the ref is mounted to the DOM node, we check to see if we have an | ||
// explicit label prop before looking for the node's textContent for | ||
@@ -1399,0 +1400,0 @@ // typeahead functionality. |
{ | ||
"name": "@reach/listbox", | ||
"version": "0.16.0", | ||
"version": "0.16.1", | ||
"description": "Accessible React listbox input.", | ||
@@ -17,3 +17,3 @@ "author": "React Training <hello@reacttraining.com>", | ||
"@reach/auto-id": "0.16.0", | ||
"@reach/descendants": "0.16.0", | ||
"@reach/descendants": "0.16.1", | ||
"@reach/machine": "0.16.0", | ||
@@ -44,3 +44,3 @@ "@reach/popover": "0.16.0", | ||
], | ||
"gitHead": "e4c6093db14e3cc24c26794a002dbd8c866c0387" | ||
"gitHead": "def3e4a96c6bc184ff78725e37854e542225d371" | ||
} |
Sorry, the diff of this file is too big to display
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
214985
5411
21
+ Added@reach/descendants@0.16.1(transitive)
- Removed@reach/descendants@0.16.0(transitive)
Updated@reach/descendants@0.16.1