@react-aria/listbox 3.4.2 → 3.4.3-nightly.3113

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.
Files changed (3) hide show
  1. package/dist/main.js +45 -45
  2. package/dist/module.js +42 -42
  3. package/package.json +10 -10
package/dist/main.js CHANGED
@@ -1,8 +1,8 @@
1
- var $2DMzk$reactariautils = require("@react-aria/utils");
2
- var $2DMzk$reactariainteractions = require("@react-aria/interactions");
3
- var $2DMzk$reactarialabel = require("@react-aria/label");
4
- var $2DMzk$reactariaselection = require("@react-aria/selection");
5
- var $2DMzk$reactstatelycollections = require("@react-stately/collections");
1
+ var $eFCLV$reactariautils = require("@react-aria/utils");
2
+ var $eFCLV$reactariainteractions = require("@react-aria/interactions");
3
+ var $eFCLV$reactarialabel = require("@react-aria/label");
4
+ var $eFCLV$reactariaselection = require("@react-aria/selection");
5
+ var $eFCLV$reactstatelycollections = require("@react-stately/collections");
6
6
 
7
7
  function $parcel$exportWildcard(dest, source) {
8
8
  Object.keys(source).forEach(function(key) {
@@ -23,23 +23,23 @@ function $parcel$exportWildcard(dest, source) {
23
23
  function $parcel$export(e, n, v, s) {
24
24
  Object.defineProperty(e, n, {get: v, set: s, enumerable: true, configurable: true});
25
25
  }
26
- var $50e07b4958ef8269$exports = {};
26
+ var $a3ce5bb3074610af$exports = {};
27
27
 
28
- $parcel$export($50e07b4958ef8269$exports, "useListBox", () => $50e07b4958ef8269$export$50eacbbf140a3141);
28
+ $parcel$export($a3ce5bb3074610af$exports, "useListBox", () => $a3ce5bb3074610af$export$50eacbbf140a3141);
29
29
 
30
- var $29f6a4f44d3a6168$exports = {};
30
+ var $87beb89ab4a308fd$exports = {};
31
31
 
32
- $parcel$export($29f6a4f44d3a6168$exports, "listData", () => $29f6a4f44d3a6168$export$3585ede4d035bf14);
33
- $parcel$export($29f6a4f44d3a6168$exports, "getItemId", () => $29f6a4f44d3a6168$export$9145995848b05025);
34
- const $29f6a4f44d3a6168$export$3585ede4d035bf14 = new WeakMap();
35
- function $29f6a4f44d3a6168$var$normalizeKey(key) {
32
+ $parcel$export($87beb89ab4a308fd$exports, "listData", () => $87beb89ab4a308fd$export$3585ede4d035bf14);
33
+ $parcel$export($87beb89ab4a308fd$exports, "getItemId", () => $87beb89ab4a308fd$export$9145995848b05025);
34
+ const $87beb89ab4a308fd$export$3585ede4d035bf14 = new WeakMap();
35
+ function $87beb89ab4a308fd$var$normalizeKey(key) {
36
36
  if (typeof key === 'string') return key.replace(/\s*/g, '');
37
37
  return '' + key;
38
38
  }
39
- function $29f6a4f44d3a6168$export$9145995848b05025(state, itemKey) {
40
- let data = $29f6a4f44d3a6168$export$3585ede4d035bf14.get(state);
39
+ function $87beb89ab4a308fd$export$9145995848b05025(state, itemKey) {
40
+ let data = $87beb89ab4a308fd$export$3585ede4d035bf14.get(state);
41
41
  if (!data) throw new Error('Unknown list');
42
- return `${data.id}-option-${$29f6a4f44d3a6168$var$normalizeKey(itemKey)}`;
42
+ return `${data.id}-option-${$87beb89ab4a308fd$var$normalizeKey(itemKey)}`;
43
43
  }
44
44
 
45
45
 
@@ -47,32 +47,32 @@ function $29f6a4f44d3a6168$export$9145995848b05025(state, itemKey) {
47
47
 
48
48
 
49
49
 
50
- function $50e07b4958ef8269$export$50eacbbf140a3141(props, state, ref) {
51
- let domProps = $2DMzk$reactariautils.filterDOMProps(props, {
50
+ function $a3ce5bb3074610af$export$50eacbbf140a3141(props, state, ref) {
51
+ let domProps = $eFCLV$reactariautils.filterDOMProps(props, {
52
52
  labelable: true
53
53
  });
54
- let { listProps: listProps } = $2DMzk$reactariaselection.useSelectableList({
54
+ let { listProps: listProps } = $eFCLV$reactariaselection.useSelectableList({
55
55
  ...props,
56
56
  ref: ref,
57
57
  selectionManager: state.selectionManager,
58
58
  collection: state.collection,
59
59
  disabledKeys: state.disabledKeys
60
60
  });
61
- let { focusWithinProps: focusWithinProps } = $2DMzk$reactariainteractions.useFocusWithin({
61
+ let { focusWithinProps: focusWithinProps } = $eFCLV$reactariainteractions.useFocusWithin({
62
62
  onFocusWithin: props.onFocus,
63
63
  onBlurWithin: props.onBlur,
64
64
  onFocusWithinChange: props.onFocusChange
65
65
  });
66
66
  // Share list id and some props with child options.
67
- let id = $2DMzk$reactariautils.useId(props.id);
68
- $29f6a4f44d3a6168$export$3585ede4d035bf14.set(state, {
67
+ let id = $eFCLV$reactariautils.useId(props.id);
68
+ $87beb89ab4a308fd$export$3585ede4d035bf14.set(state, {
69
69
  id: id,
70
70
  shouldUseVirtualFocus: props.shouldUseVirtualFocus,
71
71
  shouldSelectOnPressUp: props.shouldSelectOnPressUp,
72
72
  shouldFocusOnHover: props.shouldFocusOnHover,
73
73
  isVirtualized: props.isVirtualized
74
74
  });
75
- let { labelProps: labelProps , fieldProps: fieldProps } = $2DMzk$reactarialabel.useLabel({
75
+ let { labelProps: labelProps , fieldProps: fieldProps } = $eFCLV$reactarialabel.useLabel({
76
76
  ...props,
77
77
  id: id,
78
78
  // listbox is not an HTML input element so it
@@ -81,28 +81,28 @@ function $50e07b4958ef8269$export$50eacbbf140a3141(props, state, ref) {
81
81
  });
82
82
  return {
83
83
  labelProps: labelProps,
84
- listBoxProps: $2DMzk$reactariautils.mergeProps(domProps, focusWithinProps, state.selectionManager.selectionMode === 'multiple' ? {
84
+ listBoxProps: $eFCLV$reactariautils.mergeProps(domProps, focusWithinProps, state.selectionManager.selectionMode === 'multiple' ? {
85
85
  'aria-multiselectable': 'true'
86
86
  } : {
87
87
  }, {
88
88
  role: 'listbox',
89
- ...$2DMzk$reactariautils.mergeProps(fieldProps, listProps)
89
+ ...$eFCLV$reactariautils.mergeProps(fieldProps, listProps)
90
90
  })
91
91
  };
92
92
  }
93
93
 
94
94
 
95
- var $29933ad53619f82f$exports = {};
95
+ var $c164f9f79f4cef2d$exports = {};
96
96
 
97
- $parcel$export($29933ad53619f82f$exports, "useOption", () => $29933ad53619f82f$export$497855f14858aa34);
97
+ $parcel$export($c164f9f79f4cef2d$exports, "useOption", () => $c164f9f79f4cef2d$export$497855f14858aa34);
98
98
 
99
99
 
100
100
 
101
101
 
102
102
 
103
- function $29933ad53619f82f$export$497855f14858aa34(props, state, ref) {
103
+ function $c164f9f79f4cef2d$export$497855f14858aa34(props, state, ref) {
104
104
  let { key: key } = props;
105
- let data = $29f6a4f44d3a6168$export$3585ede4d035bf14.get(state);
105
+ let data = $87beb89ab4a308fd$export$3585ede4d035bf14.get(state);
106
106
  var _isDisabled;
107
107
  let isDisabled = (_isDisabled = props.isDisabled) !== null && _isDisabled !== void 0 ? _isDisabled : state.disabledKeys.has(key);
108
108
  var _isSelected;
@@ -116,8 +116,8 @@ function $29933ad53619f82f$export$497855f14858aa34(props, state, ref) {
116
116
  let shouldUseVirtualFocus = (_shouldUseVirtualFocus = props.shouldUseVirtualFocus) !== null && _shouldUseVirtualFocus !== void 0 ? _shouldUseVirtualFocus : data.shouldUseVirtualFocus;
117
117
  var _isVirtualized;
118
118
  let isVirtualized = (_isVirtualized = props.isVirtualized) !== null && _isVirtualized !== void 0 ? _isVirtualized : data.isVirtualized;
119
- let labelId = $2DMzk$reactariautils.useSlotId();
120
- let descriptionId = $2DMzk$reactariautils.useSlotId();
119
+ let labelId = $eFCLV$reactariautils.useSlotId();
120
+ let descriptionId = $eFCLV$reactariautils.useSlotId();
121
121
  let optionProps = {
122
122
  role: 'option',
123
123
  'aria-disabled': isDisabled,
@@ -126,16 +126,16 @@ function $29933ad53619f82f$export$497855f14858aa34(props, state, ref) {
126
126
  // Safari with VoiceOver on macOS misreads options with aria-labelledby or aria-label as simply "text".
127
127
  // We should not map slots to the label and description on Safari and instead just have VoiceOver read the textContent.
128
128
  // https://bugs.webkit.org/show_bug.cgi?id=209279
129
- if (!($2DMzk$reactariautils.isMac() && $2DMzk$reactariautils.isWebKit())) {
129
+ if (!($eFCLV$reactariautils.isMac() && $eFCLV$reactariautils.isWebKit())) {
130
130
  optionProps['aria-label'] = props['aria-label'];
131
131
  optionProps['aria-labelledby'] = labelId;
132
132
  optionProps['aria-describedby'] = descriptionId;
133
133
  }
134
134
  if (isVirtualized) {
135
135
  optionProps['aria-posinset'] = state.collection.getItem(key).index + 1;
136
- optionProps['aria-setsize'] = $2DMzk$reactstatelycollections.getItemCount(state.collection);
136
+ optionProps['aria-setsize'] = $eFCLV$reactstatelycollections.getItemCount(state.collection);
137
137
  }
138
- let { itemProps: itemProps , isPressed: isPressed } = $2DMzk$reactariaselection.useSelectableItem({
138
+ let { itemProps: itemProps , isPressed: isPressed } = $eFCLV$reactariaselection.useSelectableItem({
139
139
  selectionManager: state.selectionManager,
140
140
  key: key,
141
141
  ref: ref,
@@ -144,10 +144,10 @@ function $29933ad53619f82f$export$497855f14858aa34(props, state, ref) {
144
144
  shouldUseVirtualFocus: shouldUseVirtualFocus,
145
145
  isDisabled: isDisabled
146
146
  });
147
- let { hoverProps: hoverProps } = $2DMzk$reactariainteractions.useHover({
147
+ let { hoverProps: hoverProps } = $eFCLV$reactariainteractions.useHover({
148
148
  isDisabled: isDisabled || !shouldFocusOnHover,
149
149
  onHoverStart () {
150
- if (!$2DMzk$reactariainteractions.isFocusVisible()) {
150
+ if (!$eFCLV$reactariainteractions.isFocusVisible()) {
151
151
  state.selectionManager.setFocused(true);
152
152
  state.selectionManager.setFocusedKey(key);
153
153
  }
@@ -156,8 +156,8 @@ function $29933ad53619f82f$export$497855f14858aa34(props, state, ref) {
156
156
  return {
157
157
  optionProps: {
158
158
  ...optionProps,
159
- ...$2DMzk$reactariautils.mergeProps(itemProps, hoverProps),
160
- id: $29f6a4f44d3a6168$export$9145995848b05025(state, key)
159
+ ...$eFCLV$reactariautils.mergeProps(itemProps, hoverProps),
160
+ id: $87beb89ab4a308fd$export$9145995848b05025(state, key)
161
161
  },
162
162
  labelProps: {
163
163
  id: labelId
@@ -173,13 +173,13 @@ function $29933ad53619f82f$export$497855f14858aa34(props, state, ref) {
173
173
  }
174
174
 
175
175
 
176
- var $8262af1bc01e22eb$exports = {};
176
+ var $f32afd5f225c3320$exports = {};
177
177
 
178
- $parcel$export($8262af1bc01e22eb$exports, "useListBoxSection", () => $8262af1bc01e22eb$export$c3f9f39876e4bc7);
178
+ $parcel$export($f32afd5f225c3320$exports, "useListBoxSection", () => $f32afd5f225c3320$export$c3f9f39876e4bc7);
179
179
 
180
- function $8262af1bc01e22eb$export$c3f9f39876e4bc7(props) {
180
+ function $f32afd5f225c3320$export$c3f9f39876e4bc7(props) {
181
181
  let { heading: heading , 'aria-label': ariaLabel } = props;
182
- let headingId = $2DMzk$reactariautils.useId();
182
+ let headingId = $eFCLV$reactariautils.useId();
183
183
  return {
184
184
  itemProps: {
185
185
  role: 'presentation'
@@ -202,10 +202,10 @@ function $8262af1bc01e22eb$export$c3f9f39876e4bc7(props) {
202
202
 
203
203
 
204
204
 
205
- $parcel$exportWildcard(module.exports, $50e07b4958ef8269$exports);
206
- $parcel$exportWildcard(module.exports, $29933ad53619f82f$exports);
207
- $parcel$exportWildcard(module.exports, $8262af1bc01e22eb$exports);
208
- $parcel$exportWildcard(module.exports, $29f6a4f44d3a6168$exports);
205
+ $parcel$exportWildcard(module.exports, $a3ce5bb3074610af$exports);
206
+ $parcel$exportWildcard(module.exports, $c164f9f79f4cef2d$exports);
207
+ $parcel$exportWildcard(module.exports, $f32afd5f225c3320$exports);
208
+ $parcel$exportWildcard(module.exports, $87beb89ab4a308fd$exports);
209
209
 
210
210
 
211
211
  //# sourceMappingURL=main.js.map
package/dist/module.js CHANGED
@@ -1,29 +1,29 @@
1
- import {filterDOMProps as $9XpHW$filterDOMProps, useId as $9XpHW$useId, mergeProps as $9XpHW$mergeProps, useSlotId as $9XpHW$useSlotId, isMac as $9XpHW$isMac, isWebKit as $9XpHW$isWebKit} from "@react-aria/utils";
2
- import {useFocusWithin as $9XpHW$useFocusWithin, useHover as $9XpHW$useHover, isFocusVisible as $9XpHW$isFocusVisible} from "@react-aria/interactions";
3
- import {useLabel as $9XpHW$useLabel} from "@react-aria/label";
4
- import {useSelectableList as $9XpHW$useSelectableList, useSelectableItem as $9XpHW$useSelectableItem} from "@react-aria/selection";
5
- import {getItemCount as $9XpHW$getItemCount} from "@react-stately/collections";
1
+ import {filterDOMProps as $frWMC$filterDOMProps, useId as $frWMC$useId, mergeProps as $frWMC$mergeProps, useSlotId as $frWMC$useSlotId, isMac as $frWMC$isMac, isWebKit as $frWMC$isWebKit} from "@react-aria/utils";
2
+ import {useFocusWithin as $frWMC$useFocusWithin, useHover as $frWMC$useHover, isFocusVisible as $frWMC$isFocusVisible} from "@react-aria/interactions";
3
+ import {useLabel as $frWMC$useLabel} from "@react-aria/label";
4
+ import {useSelectableList as $frWMC$useSelectableList, useSelectableItem as $frWMC$useSelectableItem} from "@react-aria/selection";
5
+ import {getItemCount as $frWMC$getItemCount} from "@react-stately/collections";
6
6
 
7
7
  function $parcel$export(e, n, v, s) {
8
8
  Object.defineProperty(e, n, {get: v, set: s, enumerable: true, configurable: true});
9
9
  }
10
- var $4599f731efac101a$exports = {};
10
+ var $c132121280ec012d$exports = {};
11
11
 
12
- $parcel$export($4599f731efac101a$exports, "useListBox", () => $4599f731efac101a$export$50eacbbf140a3141);
12
+ $parcel$export($c132121280ec012d$exports, "useListBox", () => $c132121280ec012d$export$50eacbbf140a3141);
13
13
 
14
- var $fc40a93251bc17d1$exports = {};
14
+ var $b1f0cad8af73213b$exports = {};
15
15
 
16
- $parcel$export($fc40a93251bc17d1$exports, "listData", () => $fc40a93251bc17d1$export$3585ede4d035bf14);
17
- $parcel$export($fc40a93251bc17d1$exports, "getItemId", () => $fc40a93251bc17d1$export$9145995848b05025);
18
- const $fc40a93251bc17d1$export$3585ede4d035bf14 = new WeakMap();
19
- function $fc40a93251bc17d1$var$normalizeKey(key) {
16
+ $parcel$export($b1f0cad8af73213b$exports, "listData", () => $b1f0cad8af73213b$export$3585ede4d035bf14);
17
+ $parcel$export($b1f0cad8af73213b$exports, "getItemId", () => $b1f0cad8af73213b$export$9145995848b05025);
18
+ const $b1f0cad8af73213b$export$3585ede4d035bf14 = new WeakMap();
19
+ function $b1f0cad8af73213b$var$normalizeKey(key) {
20
20
  if (typeof key === 'string') return key.replace(/\s*/g, '');
21
21
  return '' + key;
22
22
  }
23
- function $fc40a93251bc17d1$export$9145995848b05025(state, itemKey) {
24
- let data = $fc40a93251bc17d1$export$3585ede4d035bf14.get(state);
23
+ function $b1f0cad8af73213b$export$9145995848b05025(state, itemKey) {
24
+ let data = $b1f0cad8af73213b$export$3585ede4d035bf14.get(state);
25
25
  if (!data) throw new Error('Unknown list');
26
- return `${data.id}-option-${$fc40a93251bc17d1$var$normalizeKey(itemKey)}`;
26
+ return `${data.id}-option-${$b1f0cad8af73213b$var$normalizeKey(itemKey)}`;
27
27
  }
28
28
 
29
29
 
@@ -31,32 +31,32 @@ function $fc40a93251bc17d1$export$9145995848b05025(state, itemKey) {
31
31
 
32
32
 
33
33
 
34
- function $4599f731efac101a$export$50eacbbf140a3141(props, state, ref) {
35
- let domProps = $9XpHW$filterDOMProps(props, {
34
+ function $c132121280ec012d$export$50eacbbf140a3141(props, state, ref) {
35
+ let domProps = $frWMC$filterDOMProps(props, {
36
36
  labelable: true
37
37
  });
38
- let { listProps: listProps } = $9XpHW$useSelectableList({
38
+ let { listProps: listProps } = $frWMC$useSelectableList({
39
39
  ...props,
40
40
  ref: ref,
41
41
  selectionManager: state.selectionManager,
42
42
  collection: state.collection,
43
43
  disabledKeys: state.disabledKeys
44
44
  });
45
- let { focusWithinProps: focusWithinProps } = $9XpHW$useFocusWithin({
45
+ let { focusWithinProps: focusWithinProps } = $frWMC$useFocusWithin({
46
46
  onFocusWithin: props.onFocus,
47
47
  onBlurWithin: props.onBlur,
48
48
  onFocusWithinChange: props.onFocusChange
49
49
  });
50
50
  // Share list id and some props with child options.
51
- let id = $9XpHW$useId(props.id);
52
- $fc40a93251bc17d1$export$3585ede4d035bf14.set(state, {
51
+ let id = $frWMC$useId(props.id);
52
+ $b1f0cad8af73213b$export$3585ede4d035bf14.set(state, {
53
53
  id: id,
54
54
  shouldUseVirtualFocus: props.shouldUseVirtualFocus,
55
55
  shouldSelectOnPressUp: props.shouldSelectOnPressUp,
56
56
  shouldFocusOnHover: props.shouldFocusOnHover,
57
57
  isVirtualized: props.isVirtualized
58
58
  });
59
- let { labelProps: labelProps , fieldProps: fieldProps } = $9XpHW$useLabel({
59
+ let { labelProps: labelProps , fieldProps: fieldProps } = $frWMC$useLabel({
60
60
  ...props,
61
61
  id: id,
62
62
  // listbox is not an HTML input element so it
@@ -65,28 +65,28 @@ function $4599f731efac101a$export$50eacbbf140a3141(props, state, ref) {
65
65
  });
66
66
  return {
67
67
  labelProps: labelProps,
68
- listBoxProps: $9XpHW$mergeProps(domProps, focusWithinProps, state.selectionManager.selectionMode === 'multiple' ? {
68
+ listBoxProps: $frWMC$mergeProps(domProps, focusWithinProps, state.selectionManager.selectionMode === 'multiple' ? {
69
69
  'aria-multiselectable': 'true'
70
70
  } : {
71
71
  }, {
72
72
  role: 'listbox',
73
- ...$9XpHW$mergeProps(fieldProps, listProps)
73
+ ...$frWMC$mergeProps(fieldProps, listProps)
74
74
  })
75
75
  };
76
76
  }
77
77
 
78
78
 
79
- var $320d38f7a0623e79$exports = {};
79
+ var $293f70390ea03370$exports = {};
80
80
 
81
- $parcel$export($320d38f7a0623e79$exports, "useOption", () => $320d38f7a0623e79$export$497855f14858aa34);
81
+ $parcel$export($293f70390ea03370$exports, "useOption", () => $293f70390ea03370$export$497855f14858aa34);
82
82
 
83
83
 
84
84
 
85
85
 
86
86
 
87
- function $320d38f7a0623e79$export$497855f14858aa34(props, state, ref) {
87
+ function $293f70390ea03370$export$497855f14858aa34(props, state, ref) {
88
88
  let { key: key } = props;
89
- let data = $fc40a93251bc17d1$export$3585ede4d035bf14.get(state);
89
+ let data = $b1f0cad8af73213b$export$3585ede4d035bf14.get(state);
90
90
  var _isDisabled;
91
91
  let isDisabled = (_isDisabled = props.isDisabled) !== null && _isDisabled !== void 0 ? _isDisabled : state.disabledKeys.has(key);
92
92
  var _isSelected;
@@ -100,8 +100,8 @@ function $320d38f7a0623e79$export$497855f14858aa34(props, state, ref) {
100
100
  let shouldUseVirtualFocus = (_shouldUseVirtualFocus = props.shouldUseVirtualFocus) !== null && _shouldUseVirtualFocus !== void 0 ? _shouldUseVirtualFocus : data.shouldUseVirtualFocus;
101
101
  var _isVirtualized;
102
102
  let isVirtualized = (_isVirtualized = props.isVirtualized) !== null && _isVirtualized !== void 0 ? _isVirtualized : data.isVirtualized;
103
- let labelId = $9XpHW$useSlotId();
104
- let descriptionId = $9XpHW$useSlotId();
103
+ let labelId = $frWMC$useSlotId();
104
+ let descriptionId = $frWMC$useSlotId();
105
105
  let optionProps = {
106
106
  role: 'option',
107
107
  'aria-disabled': isDisabled,
@@ -110,16 +110,16 @@ function $320d38f7a0623e79$export$497855f14858aa34(props, state, ref) {
110
110
  // Safari with VoiceOver on macOS misreads options with aria-labelledby or aria-label as simply "text".
111
111
  // We should not map slots to the label and description on Safari and instead just have VoiceOver read the textContent.
112
112
  // https://bugs.webkit.org/show_bug.cgi?id=209279
113
- if (!($9XpHW$isMac() && $9XpHW$isWebKit())) {
113
+ if (!($frWMC$isMac() && $frWMC$isWebKit())) {
114
114
  optionProps['aria-label'] = props['aria-label'];
115
115
  optionProps['aria-labelledby'] = labelId;
116
116
  optionProps['aria-describedby'] = descriptionId;
117
117
  }
118
118
  if (isVirtualized) {
119
119
  optionProps['aria-posinset'] = state.collection.getItem(key).index + 1;
120
- optionProps['aria-setsize'] = $9XpHW$getItemCount(state.collection);
120
+ optionProps['aria-setsize'] = $frWMC$getItemCount(state.collection);
121
121
  }
122
- let { itemProps: itemProps , isPressed: isPressed } = $9XpHW$useSelectableItem({
122
+ let { itemProps: itemProps , isPressed: isPressed } = $frWMC$useSelectableItem({
123
123
  selectionManager: state.selectionManager,
124
124
  key: key,
125
125
  ref: ref,
@@ -128,10 +128,10 @@ function $320d38f7a0623e79$export$497855f14858aa34(props, state, ref) {
128
128
  shouldUseVirtualFocus: shouldUseVirtualFocus,
129
129
  isDisabled: isDisabled
130
130
  });
131
- let { hoverProps: hoverProps } = $9XpHW$useHover({
131
+ let { hoverProps: hoverProps } = $frWMC$useHover({
132
132
  isDisabled: isDisabled || !shouldFocusOnHover,
133
133
  onHoverStart () {
134
- if (!$9XpHW$isFocusVisible()) {
134
+ if (!$frWMC$isFocusVisible()) {
135
135
  state.selectionManager.setFocused(true);
136
136
  state.selectionManager.setFocusedKey(key);
137
137
  }
@@ -140,8 +140,8 @@ function $320d38f7a0623e79$export$497855f14858aa34(props, state, ref) {
140
140
  return {
141
141
  optionProps: {
142
142
  ...optionProps,
143
- ...$9XpHW$mergeProps(itemProps, hoverProps),
144
- id: $fc40a93251bc17d1$export$9145995848b05025(state, key)
143
+ ...$frWMC$mergeProps(itemProps, hoverProps),
144
+ id: $b1f0cad8af73213b$export$9145995848b05025(state, key)
145
145
  },
146
146
  labelProps: {
147
147
  id: labelId
@@ -157,13 +157,13 @@ function $320d38f7a0623e79$export$497855f14858aa34(props, state, ref) {
157
157
  }
158
158
 
159
159
 
160
- var $da55f015385fe4fc$exports = {};
160
+ var $af383d3bef1cfdc9$exports = {};
161
161
 
162
- $parcel$export($da55f015385fe4fc$exports, "useListBoxSection", () => $da55f015385fe4fc$export$c3f9f39876e4bc7);
162
+ $parcel$export($af383d3bef1cfdc9$exports, "useListBoxSection", () => $af383d3bef1cfdc9$export$c3f9f39876e4bc7);
163
163
 
164
- function $da55f015385fe4fc$export$c3f9f39876e4bc7(props) {
164
+ function $af383d3bef1cfdc9$export$c3f9f39876e4bc7(props) {
165
165
  let { heading: heading , 'aria-label': ariaLabel } = props;
166
- let headingId = $9XpHW$useId();
166
+ let headingId = $frWMC$useId();
167
167
  return {
168
168
  itemProps: {
169
169
  role: 'presentation'
@@ -188,5 +188,5 @@ function $da55f015385fe4fc$export$c3f9f39876e4bc7(props) {
188
188
 
189
189
 
190
190
 
191
- export {$4599f731efac101a$export$50eacbbf140a3141 as useListBox, $320d38f7a0623e79$export$497855f14858aa34 as useOption, $da55f015385fe4fc$export$c3f9f39876e4bc7 as useListBoxSection, $fc40a93251bc17d1$export$3585ede4d035bf14 as listData, $fc40a93251bc17d1$export$9145995848b05025 as getItemId};
191
+ export {$c132121280ec012d$export$50eacbbf140a3141 as useListBox, $293f70390ea03370$export$497855f14858aa34 as useOption, $af383d3bef1cfdc9$export$c3f9f39876e4bc7 as useListBoxSection, $b1f0cad8af73213b$export$3585ede4d035bf14 as listData, $b1f0cad8af73213b$export$9145995848b05025 as getItemId};
192
192
  //# sourceMappingURL=module.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@react-aria/listbox",
3
- "version": "3.4.2",
3
+ "version": "3.4.3-nightly.3113+404d41859",
4
4
  "description": "Spectrum UI components in React",
5
5
  "license": "Apache-2.0",
6
6
  "main": "dist/main.js",
@@ -18,15 +18,15 @@
18
18
  },
19
19
  "dependencies": {
20
20
  "@babel/runtime": "^7.6.2",
21
- "@react-aria/focus": "^3.5.2",
22
- "@react-aria/interactions": "^3.8.1",
23
- "@react-aria/label": "^3.2.3",
24
- "@react-aria/selection": "^3.7.3",
25
- "@react-aria/utils": "^3.11.2",
26
- "@react-stately/collections": "^3.3.6",
27
- "@react-stately/list": "^3.4.3",
28
- "@react-types/listbox": "^3.2.3",
29
- "@react-types/shared": "^3.11.1"
21
+ "@react-aria/focus": "3.0.0-nightly.1417+404d41859",
22
+ "@react-aria/interactions": "3.0.0-nightly.1417+404d41859",
23
+ "@react-aria/label": "3.0.0-nightly.1417+404d41859",
24
+ "@react-aria/selection": "3.0.0-nightly.1417+404d41859",
25
+ "@react-aria/utils": "3.0.0-nightly.1417+404d41859",
26
+ "@react-stately/collections": "3.0.0-nightly.1417+404d41859",
27
+ "@react-stately/list": "3.4.4-nightly.3113+404d41859",
28
+ "@react-types/listbox": "3.2.4-nightly.3113+404d41859",
29
+ "@react-types/shared": "3.0.0-nightly.1417+404d41859"
30
30
  },
31
31
  "peerDependencies": {
32
32
  "react": "^16.8.0 || ^17.0.0-rc.1"