downshift 9.2.0 → 9.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -46,9 +46,8 @@ list below.
46
46
 
47
47
  - [useSelect][useselect-readme] for a custom select component.
48
48
  - [useCombobox][combobox-readme] for a combobox or autocomplete input.
49
- - [useMultipleSelection][multiple-selection-readme] for selecting multiple items
50
- in a select or a combobox, as well as deleting items from selection or
51
- navigating between the selected items.
49
+ - [useTagGroup][tag-group-readme] for a tag group component. Also useful to
50
+ build a multiple selection combobox or select component with tags.
52
51
 
53
52
  The second solution is the `Downshift` component, which can also be used to
54
53
  create accessible combobox and select components, providing the logic in the
@@ -734,8 +733,8 @@ check could fail even if the ref is correctly forwarded to the root DOM
734
733
  component. In these cases, you can provide the object
735
734
  `{suppressRefError : true}` as the second argument to `getRootProps` to
736
735
  completely bypass the check.\
737
- **Please use it with extreme care and only if you are absolutely sure that the ref
738
- is correctly forwarded otherwise `Downshift` will unexpectedly fail.**\
736
+ **Please use it with extreme care and only if you are absolutely sure that the
737
+ ref is correctly forwarded otherwise `Downshift` will unexpectedly fail.**\
739
738
  See [#235](https://github.com/downshift-js/downshift/issues/235) for the
740
739
  discussion that lead to this.
741
740
 
@@ -1516,8 +1515,8 @@ MIT
1516
1515
  https://github.com/downshift-js/downshift/blob/master/src/hooks/useSelect
1517
1516
  [combobox-readme]:
1518
1517
  https://github.com/downshift-js/downshift/tree/master/src/hooks/useCombobox
1519
- [multiple-selection-readme]:
1520
- https://github.com/downshift-js/downshift/tree/master/src/hooks/useMultipleSelection
1518
+ [tag-group-readme]:
1519
+ https://github.com/downshift-js/downshift/tree/master/src/hooks/useTagGroup
1521
1520
  [bundle-phobia-link]: https://bundlephobia.com/result?p=downshift@3.4.8
1522
1521
  [aria]: https://www.w3.org/TR/wai-aria-practices/
1523
1522
  [combobox-aria-example]:
@@ -250,11 +250,11 @@
250
250
  return reactIs_development$1;
251
251
  }
252
252
 
253
- var hasRequiredReactIs;
253
+ var hasRequiredReactIs$1;
254
254
 
255
- function requireReactIs () {
256
- if (hasRequiredReactIs) return reactIs$1.exports;
257
- hasRequiredReactIs = 1;
255
+ function requireReactIs$1 () {
256
+ if (hasRequiredReactIs$1) return reactIs$1.exports;
257
+ hasRequiredReactIs$1 = 1;
258
258
 
259
259
  {
260
260
  reactIs$1.exports = requireReactIs_development$1();
@@ -407,9 +407,9 @@
407
407
  var printWarning = function() {};
408
408
 
409
409
  {
410
- var ReactPropTypesSecret = requireReactPropTypesSecret();
410
+ var ReactPropTypesSecret = /*@__PURE__*/ requireReactPropTypesSecret();
411
411
  var loggedTypeFailures = {};
412
- var has = requireHas();
412
+ var has = /*@__PURE__*/ requireHas();
413
413
 
414
414
  printWarning = function(text) {
415
415
  var message = 'Warning: ' + text;
@@ -515,12 +515,12 @@
515
515
  if (hasRequiredFactoryWithTypeCheckers) return factoryWithTypeCheckers;
516
516
  hasRequiredFactoryWithTypeCheckers = 1;
517
517
 
518
- var ReactIs = requireReactIs();
518
+ var ReactIs = requireReactIs$1();
519
519
  var assign = requireObjectAssign();
520
520
 
521
- var ReactPropTypesSecret = requireReactPropTypesSecret();
522
- var has = requireHas();
523
- var checkPropTypes = requireCheckPropTypes();
521
+ var ReactPropTypesSecret = /*@__PURE__*/ requireReactPropTypesSecret();
522
+ var has = /*@__PURE__*/ requireHas();
523
+ var checkPropTypes = /*@__PURE__*/ requireCheckPropTypes();
524
524
 
525
525
  var printWarning = function() {};
526
526
 
@@ -1126,16 +1126,23 @@
1126
1126
  * LICENSE file in the root directory of this source tree.
1127
1127
  */
1128
1128
 
1129
- {
1130
- var ReactIs = requireReactIs();
1129
+ var hasRequiredPropTypes;
1131
1130
 
1132
- // By explicitly using `prop-types` you are opting into new development behavior.
1133
- // http://fb.me/prop-types-in-prod
1134
- var throwOnDirectAccess = true;
1135
- propTypes$6.exports = requireFactoryWithTypeCheckers()(ReactIs.isElement, throwOnDirectAccess);
1131
+ function requirePropTypes () {
1132
+ if (hasRequiredPropTypes) return propTypes$6.exports;
1133
+ hasRequiredPropTypes = 1;
1134
+ {
1135
+ var ReactIs = requireReactIs$1();
1136
+
1137
+ // By explicitly using `prop-types` you are opting into new development behavior.
1138
+ // http://fb.me/prop-types-in-prod
1139
+ var throwOnDirectAccess = true;
1140
+ propTypes$6.exports = /*@__PURE__*/ requireFactoryWithTypeCheckers()(ReactIs.isElement, throwOnDirectAccess);
1141
+ }
1142
+ return propTypes$6.exports;
1136
1143
  }
1137
1144
 
1138
- var propTypesExports = propTypes$6.exports;
1145
+ var propTypesExports = /*@__PURE__*/ requirePropTypes();
1139
1146
  var PropTypes = /*@__PURE__*/getDefaultExportFromCjs(propTypesExports);
1140
1147
 
1141
1148
  var reactIs = {exports: {}};
@@ -1369,11 +1376,19 @@
1369
1376
  return reactIs_development;
1370
1377
  }
1371
1378
 
1372
- {
1373
- reactIs.exports = requireReactIs_development();
1379
+ var hasRequiredReactIs;
1380
+
1381
+ function requireReactIs () {
1382
+ if (hasRequiredReactIs) return reactIs.exports;
1383
+ hasRequiredReactIs = 1;
1384
+
1385
+ {
1386
+ reactIs.exports = requireReactIs_development();
1387
+ }
1388
+ return reactIs.exports;
1374
1389
  }
1375
1390
 
1376
- var reactIsExports = reactIs.exports;
1391
+ var reactIsExports = requireReactIs();
1377
1392
 
1378
1393
  var unknown = '__autocomplete_unknown__' ;
1379
1394
  var mouseUp = '__autocomplete_mouseup__' ;