@react-aria/listbox 3.4.1-nightly.3085 → 3.4.1-nightly.3100

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 +11 -11
package/dist/main.js CHANGED
@@ -1,8 +1,8 @@
1
- var $3qqc2$reactariautils = require("@react-aria/utils");
2
- var $3qqc2$reactariainteractions = require("@react-aria/interactions");
3
- var $3qqc2$reactarialabel = require("@react-aria/label");
4
- var $3qqc2$reactariaselection = require("@react-aria/selection");
5
- var $3qqc2$reactstatelycollections = require("@react-stately/collections");
1
+ var $cCiqH$reactariautils = require("@react-aria/utils");
2
+ var $cCiqH$reactariainteractions = require("@react-aria/interactions");
3
+ var $cCiqH$reactarialabel = require("@react-aria/label");
4
+ var $cCiqH$reactariaselection = require("@react-aria/selection");
5
+ var $cCiqH$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 $53a4d916549839c6$exports = {};
26
+ var $791342f030d1fc2c$exports = {};
27
27
 
28
- $parcel$export($53a4d916549839c6$exports, "useListBox", () => $53a4d916549839c6$export$50eacbbf140a3141);
28
+ $parcel$export($791342f030d1fc2c$exports, "useListBox", () => $791342f030d1fc2c$export$50eacbbf140a3141);
29
29
 
30
- var $37e9f5eb92c9cd49$exports = {};
30
+ var $55ba9445af8053ba$exports = {};
31
31
 
32
- $parcel$export($37e9f5eb92c9cd49$exports, "listData", () => $37e9f5eb92c9cd49$export$3585ede4d035bf14);
33
- $parcel$export($37e9f5eb92c9cd49$exports, "getItemId", () => $37e9f5eb92c9cd49$export$9145995848b05025);
34
- const $37e9f5eb92c9cd49$export$3585ede4d035bf14 = new WeakMap();
35
- function $37e9f5eb92c9cd49$var$normalizeKey(key) {
32
+ $parcel$export($55ba9445af8053ba$exports, "listData", () => $55ba9445af8053ba$export$3585ede4d035bf14);
33
+ $parcel$export($55ba9445af8053ba$exports, "getItemId", () => $55ba9445af8053ba$export$9145995848b05025);
34
+ const $55ba9445af8053ba$export$3585ede4d035bf14 = new WeakMap();
35
+ function $55ba9445af8053ba$var$normalizeKey(key) {
36
36
  if (typeof key === 'string') return key.replace(/\s*/g, '');
37
37
  return '' + key;
38
38
  }
39
- function $37e9f5eb92c9cd49$export$9145995848b05025(state, itemKey) {
40
- let data = $37e9f5eb92c9cd49$export$3585ede4d035bf14.get(state);
39
+ function $55ba9445af8053ba$export$9145995848b05025(state, itemKey) {
40
+ let data = $55ba9445af8053ba$export$3585ede4d035bf14.get(state);
41
41
  if (!data) throw new Error('Unknown list');
42
- return `${data.id}-option-${$37e9f5eb92c9cd49$var$normalizeKey(itemKey)}`;
42
+ return `${data.id}-option-${$55ba9445af8053ba$var$normalizeKey(itemKey)}`;
43
43
  }
44
44
 
45
45
 
@@ -47,32 +47,32 @@ function $37e9f5eb92c9cd49$export$9145995848b05025(state, itemKey) {
47
47
 
48
48
 
49
49
 
50
- function $53a4d916549839c6$export$50eacbbf140a3141(props, state, ref) {
51
- let domProps = $3qqc2$reactariautils.filterDOMProps(props, {
50
+ function $791342f030d1fc2c$export$50eacbbf140a3141(props, state, ref) {
51
+ let domProps = $cCiqH$reactariautils.filterDOMProps(props, {
52
52
  labelable: true
53
53
  });
54
- let { listProps: listProps } = $3qqc2$reactariaselection.useSelectableList({
54
+ let { listProps: listProps } = $cCiqH$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 } = $3qqc2$reactariainteractions.useFocusWithin({
61
+ let { focusWithinProps: focusWithinProps } = $cCiqH$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 = $3qqc2$reactariautils.useId(props.id);
68
- $37e9f5eb92c9cd49$export$3585ede4d035bf14.set(state, {
67
+ let id = $cCiqH$reactariautils.useId(props.id);
68
+ $55ba9445af8053ba$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 } = $3qqc2$reactarialabel.useLabel({
75
+ let { labelProps: labelProps , fieldProps: fieldProps } = $cCiqH$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 $53a4d916549839c6$export$50eacbbf140a3141(props, state, ref) {
81
81
  });
82
82
  return {
83
83
  labelProps: labelProps,
84
- listBoxProps: $3qqc2$reactariautils.mergeProps(domProps, focusWithinProps, state.selectionManager.selectionMode === 'multiple' ? {
84
+ listBoxProps: $cCiqH$reactariautils.mergeProps(domProps, focusWithinProps, state.selectionManager.selectionMode === 'multiple' ? {
85
85
  'aria-multiselectable': 'true'
86
86
  } : {
87
87
  }, {
88
88
  role: 'listbox',
89
- ...$3qqc2$reactariautils.mergeProps(fieldProps, listProps)
89
+ ...$cCiqH$reactariautils.mergeProps(fieldProps, listProps)
90
90
  })
91
91
  };
92
92
  }
93
93
 
94
94
 
95
- var $eb4e3b1392b9d051$exports = {};
95
+ var $379f8fed3835a355$exports = {};
96
96
 
97
- $parcel$export($eb4e3b1392b9d051$exports, "useOption", () => $eb4e3b1392b9d051$export$497855f14858aa34);
97
+ $parcel$export($379f8fed3835a355$exports, "useOption", () => $379f8fed3835a355$export$497855f14858aa34);
98
98
 
99
99
 
100
100
 
101
101
 
102
102
 
103
- function $eb4e3b1392b9d051$export$497855f14858aa34(props, state, ref) {
103
+ function $379f8fed3835a355$export$497855f14858aa34(props, state, ref) {
104
104
  let { key: key } = props;
105
- let data = $37e9f5eb92c9cd49$export$3585ede4d035bf14.get(state);
105
+ let data = $55ba9445af8053ba$export$3585ede4d035bf14.get(state);
106
106
  let isDisabled = props.isDisabled ?? state.disabledKeys.has(key);
107
107
  let isSelected = props.isSelected ?? state.selectionManager.isSelected(key);
108
108
  let isFocused = state.selectionManager.focusedKey === key;
@@ -110,8 +110,8 @@ function $eb4e3b1392b9d051$export$497855f14858aa34(props, state, ref) {
110
110
  let shouldFocusOnHover = props.shouldFocusOnHover ?? data.shouldFocusOnHover;
111
111
  let shouldUseVirtualFocus = props.shouldUseVirtualFocus ?? data.shouldUseVirtualFocus;
112
112
  let isVirtualized = props.isVirtualized ?? data.isVirtualized;
113
- let labelId = $3qqc2$reactariautils.useSlotId();
114
- let descriptionId = $3qqc2$reactariautils.useSlotId();
113
+ let labelId = $cCiqH$reactariautils.useSlotId();
114
+ let descriptionId = $cCiqH$reactariautils.useSlotId();
115
115
  let optionProps = {
116
116
  role: 'option',
117
117
  'aria-disabled': isDisabled,
@@ -120,16 +120,16 @@ function $eb4e3b1392b9d051$export$497855f14858aa34(props, state, ref) {
120
120
  // Safari with VoiceOver on macOS misreads options with aria-labelledby or aria-label as simply "text".
121
121
  // We should not map slots to the label and description on Safari and instead just have VoiceOver read the textContent.
122
122
  // https://bugs.webkit.org/show_bug.cgi?id=209279
123
- if (!($3qqc2$reactariautils.isMac() && $3qqc2$reactariautils.isWebKit())) {
123
+ if (!($cCiqH$reactariautils.isMac() && $cCiqH$reactariautils.isWebKit())) {
124
124
  optionProps['aria-label'] = props['aria-label'];
125
125
  optionProps['aria-labelledby'] = labelId;
126
126
  optionProps['aria-describedby'] = descriptionId;
127
127
  }
128
128
  if (isVirtualized) {
129
129
  optionProps['aria-posinset'] = state.collection.getItem(key).index + 1;
130
- optionProps['aria-setsize'] = $3qqc2$reactstatelycollections.getItemCount(state.collection);
130
+ optionProps['aria-setsize'] = $cCiqH$reactstatelycollections.getItemCount(state.collection);
131
131
  }
132
- let { itemProps: itemProps , isPressed: isPressed } = $3qqc2$reactariaselection.useSelectableItem({
132
+ let { itemProps: itemProps , isPressed: isPressed } = $cCiqH$reactariaselection.useSelectableItem({
133
133
  selectionManager: state.selectionManager,
134
134
  key: key,
135
135
  ref: ref,
@@ -138,10 +138,10 @@ function $eb4e3b1392b9d051$export$497855f14858aa34(props, state, ref) {
138
138
  shouldUseVirtualFocus: shouldUseVirtualFocus,
139
139
  isDisabled: isDisabled
140
140
  });
141
- let { hoverProps: hoverProps } = $3qqc2$reactariainteractions.useHover({
141
+ let { hoverProps: hoverProps } = $cCiqH$reactariainteractions.useHover({
142
142
  isDisabled: isDisabled || !shouldFocusOnHover,
143
143
  onHoverStart () {
144
- if (!$3qqc2$reactariainteractions.isFocusVisible()) {
144
+ if (!$cCiqH$reactariainteractions.isFocusVisible()) {
145
145
  state.selectionManager.setFocused(true);
146
146
  state.selectionManager.setFocusedKey(key);
147
147
  }
@@ -150,8 +150,8 @@ function $eb4e3b1392b9d051$export$497855f14858aa34(props, state, ref) {
150
150
  return {
151
151
  optionProps: {
152
152
  ...optionProps,
153
- ...$3qqc2$reactariautils.mergeProps(itemProps, hoverProps),
154
- id: $37e9f5eb92c9cd49$export$9145995848b05025(state, key)
153
+ ...$cCiqH$reactariautils.mergeProps(itemProps, hoverProps),
154
+ id: $55ba9445af8053ba$export$9145995848b05025(state, key)
155
155
  },
156
156
  labelProps: {
157
157
  id: labelId
@@ -167,13 +167,13 @@ function $eb4e3b1392b9d051$export$497855f14858aa34(props, state, ref) {
167
167
  }
168
168
 
169
169
 
170
- var $7f215c4024f2e672$exports = {};
170
+ var $701722104b57f7b1$exports = {};
171
171
 
172
- $parcel$export($7f215c4024f2e672$exports, "useListBoxSection", () => $7f215c4024f2e672$export$c3f9f39876e4bc7);
172
+ $parcel$export($701722104b57f7b1$exports, "useListBoxSection", () => $701722104b57f7b1$export$c3f9f39876e4bc7);
173
173
 
174
- function $7f215c4024f2e672$export$c3f9f39876e4bc7(props) {
174
+ function $701722104b57f7b1$export$c3f9f39876e4bc7(props) {
175
175
  let { heading: heading , 'aria-label': ariaLabel } = props;
176
- let headingId = $3qqc2$reactariautils.useId();
176
+ let headingId = $cCiqH$reactariautils.useId();
177
177
  return {
178
178
  itemProps: {
179
179
  role: 'presentation'
@@ -196,10 +196,10 @@ function $7f215c4024f2e672$export$c3f9f39876e4bc7(props) {
196
196
 
197
197
 
198
198
 
199
- $parcel$exportWildcard(module.exports, $53a4d916549839c6$exports);
200
- $parcel$exportWildcard(module.exports, $eb4e3b1392b9d051$exports);
201
- $parcel$exportWildcard(module.exports, $7f215c4024f2e672$exports);
202
- $parcel$exportWildcard(module.exports, $37e9f5eb92c9cd49$exports);
199
+ $parcel$exportWildcard(module.exports, $791342f030d1fc2c$exports);
200
+ $parcel$exportWildcard(module.exports, $379f8fed3835a355$exports);
201
+ $parcel$exportWildcard(module.exports, $701722104b57f7b1$exports);
202
+ $parcel$exportWildcard(module.exports, $55ba9445af8053ba$exports);
203
203
 
204
204
 
205
205
  //# sourceMappingURL=main.js.map
package/dist/module.js CHANGED
@@ -1,29 +1,29 @@
1
- import {filterDOMProps as $2xADA$filterDOMProps, useId as $2xADA$useId, mergeProps as $2xADA$mergeProps, useSlotId as $2xADA$useSlotId, isMac as $2xADA$isMac, isWebKit as $2xADA$isWebKit} from "@react-aria/utils";
2
- import {useFocusWithin as $2xADA$useFocusWithin, useHover as $2xADA$useHover, isFocusVisible as $2xADA$isFocusVisible} from "@react-aria/interactions";
3
- import {useLabel as $2xADA$useLabel} from "@react-aria/label";
4
- import {useSelectableList as $2xADA$useSelectableList, useSelectableItem as $2xADA$useSelectableItem} from "@react-aria/selection";
5
- import {getItemCount as $2xADA$getItemCount} from "@react-stately/collections";
1
+ import {filterDOMProps as $7Yq4N$filterDOMProps, useId as $7Yq4N$useId, mergeProps as $7Yq4N$mergeProps, useSlotId as $7Yq4N$useSlotId, isMac as $7Yq4N$isMac, isWebKit as $7Yq4N$isWebKit} from "@react-aria/utils";
2
+ import {useFocusWithin as $7Yq4N$useFocusWithin, useHover as $7Yq4N$useHover, isFocusVisible as $7Yq4N$isFocusVisible} from "@react-aria/interactions";
3
+ import {useLabel as $7Yq4N$useLabel} from "@react-aria/label";
4
+ import {useSelectableList as $7Yq4N$useSelectableList, useSelectableItem as $7Yq4N$useSelectableItem} from "@react-aria/selection";
5
+ import {getItemCount as $7Yq4N$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 $a88263fde148e1a2$exports = {};
10
+ var $b6a6a3879de3c160$exports = {};
11
11
 
12
- $parcel$export($a88263fde148e1a2$exports, "useListBox", () => $a88263fde148e1a2$export$50eacbbf140a3141);
12
+ $parcel$export($b6a6a3879de3c160$exports, "useListBox", () => $b6a6a3879de3c160$export$50eacbbf140a3141);
13
13
 
14
- var $d67ea16022cad274$exports = {};
14
+ var $d786742a15de2e64$exports = {};
15
15
 
16
- $parcel$export($d67ea16022cad274$exports, "listData", () => $d67ea16022cad274$export$3585ede4d035bf14);
17
- $parcel$export($d67ea16022cad274$exports, "getItemId", () => $d67ea16022cad274$export$9145995848b05025);
18
- const $d67ea16022cad274$export$3585ede4d035bf14 = new WeakMap();
19
- function $d67ea16022cad274$var$normalizeKey(key) {
16
+ $parcel$export($d786742a15de2e64$exports, "listData", () => $d786742a15de2e64$export$3585ede4d035bf14);
17
+ $parcel$export($d786742a15de2e64$exports, "getItemId", () => $d786742a15de2e64$export$9145995848b05025);
18
+ const $d786742a15de2e64$export$3585ede4d035bf14 = new WeakMap();
19
+ function $d786742a15de2e64$var$normalizeKey(key) {
20
20
  if (typeof key === 'string') return key.replace(/\s*/g, '');
21
21
  return '' + key;
22
22
  }
23
- function $d67ea16022cad274$export$9145995848b05025(state, itemKey) {
24
- let data = $d67ea16022cad274$export$3585ede4d035bf14.get(state);
23
+ function $d786742a15de2e64$export$9145995848b05025(state, itemKey) {
24
+ let data = $d786742a15de2e64$export$3585ede4d035bf14.get(state);
25
25
  if (!data) throw new Error('Unknown list');
26
- return `${data.id}-option-${$d67ea16022cad274$var$normalizeKey(itemKey)}`;
26
+ return `${data.id}-option-${$d786742a15de2e64$var$normalizeKey(itemKey)}`;
27
27
  }
28
28
 
29
29
 
@@ -31,32 +31,32 @@ function $d67ea16022cad274$export$9145995848b05025(state, itemKey) {
31
31
 
32
32
 
33
33
 
34
- function $a88263fde148e1a2$export$50eacbbf140a3141(props, state, ref) {
35
- let domProps = $2xADA$filterDOMProps(props, {
34
+ function $b6a6a3879de3c160$export$50eacbbf140a3141(props, state, ref) {
35
+ let domProps = $7Yq4N$filterDOMProps(props, {
36
36
  labelable: true
37
37
  });
38
- let { listProps: listProps } = $2xADA$useSelectableList({
38
+ let { listProps: listProps } = $7Yq4N$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 } = $2xADA$useFocusWithin({
45
+ let { focusWithinProps: focusWithinProps } = $7Yq4N$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 = $2xADA$useId(props.id);
52
- $d67ea16022cad274$export$3585ede4d035bf14.set(state, {
51
+ let id = $7Yq4N$useId(props.id);
52
+ $d786742a15de2e64$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 } = $2xADA$useLabel({
59
+ let { labelProps: labelProps , fieldProps: fieldProps } = $7Yq4N$useLabel({
60
60
  ...props,
61
61
  id: id,
62
62
  // listbox is not an HTML input element so it
@@ -65,28 +65,28 @@ function $a88263fde148e1a2$export$50eacbbf140a3141(props, state, ref) {
65
65
  });
66
66
  return {
67
67
  labelProps: labelProps,
68
- listBoxProps: $2xADA$mergeProps(domProps, focusWithinProps, state.selectionManager.selectionMode === 'multiple' ? {
68
+ listBoxProps: $7Yq4N$mergeProps(domProps, focusWithinProps, state.selectionManager.selectionMode === 'multiple' ? {
69
69
  'aria-multiselectable': 'true'
70
70
  } : {
71
71
  }, {
72
72
  role: 'listbox',
73
- ...$2xADA$mergeProps(fieldProps, listProps)
73
+ ...$7Yq4N$mergeProps(fieldProps, listProps)
74
74
  })
75
75
  };
76
76
  }
77
77
 
78
78
 
79
- var $408857500f80c2ac$exports = {};
79
+ var $ffbe2720d8d792ce$exports = {};
80
80
 
81
- $parcel$export($408857500f80c2ac$exports, "useOption", () => $408857500f80c2ac$export$497855f14858aa34);
81
+ $parcel$export($ffbe2720d8d792ce$exports, "useOption", () => $ffbe2720d8d792ce$export$497855f14858aa34);
82
82
 
83
83
 
84
84
 
85
85
 
86
86
 
87
- function $408857500f80c2ac$export$497855f14858aa34(props, state, ref) {
87
+ function $ffbe2720d8d792ce$export$497855f14858aa34(props, state, ref) {
88
88
  let { key: key } = props;
89
- let data = $d67ea16022cad274$export$3585ede4d035bf14.get(state);
89
+ let data = $d786742a15de2e64$export$3585ede4d035bf14.get(state);
90
90
  let isDisabled = props.isDisabled ?? state.disabledKeys.has(key);
91
91
  let isSelected = props.isSelected ?? state.selectionManager.isSelected(key);
92
92
  let isFocused = state.selectionManager.focusedKey === key;
@@ -94,8 +94,8 @@ function $408857500f80c2ac$export$497855f14858aa34(props, state, ref) {
94
94
  let shouldFocusOnHover = props.shouldFocusOnHover ?? data.shouldFocusOnHover;
95
95
  let shouldUseVirtualFocus = props.shouldUseVirtualFocus ?? data.shouldUseVirtualFocus;
96
96
  let isVirtualized = props.isVirtualized ?? data.isVirtualized;
97
- let labelId = $2xADA$useSlotId();
98
- let descriptionId = $2xADA$useSlotId();
97
+ let labelId = $7Yq4N$useSlotId();
98
+ let descriptionId = $7Yq4N$useSlotId();
99
99
  let optionProps = {
100
100
  role: 'option',
101
101
  'aria-disabled': isDisabled,
@@ -104,16 +104,16 @@ function $408857500f80c2ac$export$497855f14858aa34(props, state, ref) {
104
104
  // Safari with VoiceOver on macOS misreads options with aria-labelledby or aria-label as simply "text".
105
105
  // We should not map slots to the label and description on Safari and instead just have VoiceOver read the textContent.
106
106
  // https://bugs.webkit.org/show_bug.cgi?id=209279
107
- if (!($2xADA$isMac() && $2xADA$isWebKit())) {
107
+ if (!($7Yq4N$isMac() && $7Yq4N$isWebKit())) {
108
108
  optionProps['aria-label'] = props['aria-label'];
109
109
  optionProps['aria-labelledby'] = labelId;
110
110
  optionProps['aria-describedby'] = descriptionId;
111
111
  }
112
112
  if (isVirtualized) {
113
113
  optionProps['aria-posinset'] = state.collection.getItem(key).index + 1;
114
- optionProps['aria-setsize'] = $2xADA$getItemCount(state.collection);
114
+ optionProps['aria-setsize'] = $7Yq4N$getItemCount(state.collection);
115
115
  }
116
- let { itemProps: itemProps , isPressed: isPressed } = $2xADA$useSelectableItem({
116
+ let { itemProps: itemProps , isPressed: isPressed } = $7Yq4N$useSelectableItem({
117
117
  selectionManager: state.selectionManager,
118
118
  key: key,
119
119
  ref: ref,
@@ -122,10 +122,10 @@ function $408857500f80c2ac$export$497855f14858aa34(props, state, ref) {
122
122
  shouldUseVirtualFocus: shouldUseVirtualFocus,
123
123
  isDisabled: isDisabled
124
124
  });
125
- let { hoverProps: hoverProps } = $2xADA$useHover({
125
+ let { hoverProps: hoverProps } = $7Yq4N$useHover({
126
126
  isDisabled: isDisabled || !shouldFocusOnHover,
127
127
  onHoverStart () {
128
- if (!$2xADA$isFocusVisible()) {
128
+ if (!$7Yq4N$isFocusVisible()) {
129
129
  state.selectionManager.setFocused(true);
130
130
  state.selectionManager.setFocusedKey(key);
131
131
  }
@@ -134,8 +134,8 @@ function $408857500f80c2ac$export$497855f14858aa34(props, state, ref) {
134
134
  return {
135
135
  optionProps: {
136
136
  ...optionProps,
137
- ...$2xADA$mergeProps(itemProps, hoverProps),
138
- id: $d67ea16022cad274$export$9145995848b05025(state, key)
137
+ ...$7Yq4N$mergeProps(itemProps, hoverProps),
138
+ id: $d786742a15de2e64$export$9145995848b05025(state, key)
139
139
  },
140
140
  labelProps: {
141
141
  id: labelId
@@ -151,13 +151,13 @@ function $408857500f80c2ac$export$497855f14858aa34(props, state, ref) {
151
151
  }
152
152
 
153
153
 
154
- var $4e02d605eb96f219$exports = {};
154
+ var $60eb9482f3936d5e$exports = {};
155
155
 
156
- $parcel$export($4e02d605eb96f219$exports, "useListBoxSection", () => $4e02d605eb96f219$export$c3f9f39876e4bc7);
156
+ $parcel$export($60eb9482f3936d5e$exports, "useListBoxSection", () => $60eb9482f3936d5e$export$c3f9f39876e4bc7);
157
157
 
158
- function $4e02d605eb96f219$export$c3f9f39876e4bc7(props) {
158
+ function $60eb9482f3936d5e$export$c3f9f39876e4bc7(props) {
159
159
  let { heading: heading , 'aria-label': ariaLabel } = props;
160
- let headingId = $2xADA$useId();
160
+ let headingId = $7Yq4N$useId();
161
161
  return {
162
162
  itemProps: {
163
163
  role: 'presentation'
@@ -182,5 +182,5 @@ function $4e02d605eb96f219$export$c3f9f39876e4bc7(props) {
182
182
 
183
183
 
184
184
 
185
- export {$a88263fde148e1a2$export$50eacbbf140a3141 as useListBox, $408857500f80c2ac$export$497855f14858aa34 as useOption, $4e02d605eb96f219$export$c3f9f39876e4bc7 as useListBoxSection, $d67ea16022cad274$export$3585ede4d035bf14 as listData, $d67ea16022cad274$export$9145995848b05025 as getItemId};
185
+ export {$b6a6a3879de3c160$export$50eacbbf140a3141 as useListBox, $ffbe2720d8d792ce$export$497855f14858aa34 as useOption, $60eb9482f3936d5e$export$c3f9f39876e4bc7 as useListBoxSection, $d786742a15de2e64$export$3585ede4d035bf14 as listData, $d786742a15de2e64$export$9145995848b05025 as getItemId};
186
186
  //# sourceMappingURL=module.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@react-aria/listbox",
3
- "version": "3.4.1-nightly.3085+dfe72ee07",
3
+ "version": "3.4.1-nightly.3100+da2aa7467",
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.0.0-nightly.1394+dfe72ee07",
22
- "@react-aria/interactions": "3.0.0-nightly.1394+dfe72ee07",
23
- "@react-aria/label": "3.0.0-nightly.1394+dfe72ee07",
24
- "@react-aria/selection": "3.0.0-nightly.1394+dfe72ee07",
25
- "@react-aria/utils": "3.0.0-nightly.1394+dfe72ee07",
26
- "@react-stately/collections": "3.0.0-nightly.1394+dfe72ee07",
27
- "@react-stately/list": "3.4.2-nightly.3085+dfe72ee07",
28
- "@react-types/listbox": "3.2.2-nightly.3085+dfe72ee07",
29
- "@react-types/shared": "3.0.0-nightly.1394+dfe72ee07"
21
+ "@react-aria/focus": "3.0.0-nightly.1409+da2aa7467",
22
+ "@react-aria/interactions": "3.0.0-nightly.1409+da2aa7467",
23
+ "@react-aria/label": "3.0.0-nightly.1409+da2aa7467",
24
+ "@react-aria/selection": "3.0.0-nightly.1409+da2aa7467",
25
+ "@react-aria/utils": "3.0.0-nightly.1409+da2aa7467",
26
+ "@react-stately/collections": "3.0.0-nightly.1409+da2aa7467",
27
+ "@react-stately/list": "3.4.2-nightly.3100+da2aa7467",
28
+ "@react-types/listbox": "3.2.2-nightly.3100+da2aa7467",
29
+ "@react-types/shared": "3.0.0-nightly.1409+da2aa7467"
30
30
  },
31
31
  "peerDependencies": {
32
32
  "react": "^16.8.0 || ^17.0.0-rc.1"
@@ -34,5 +34,5 @@
34
34
  "publishConfig": {
35
35
  "access": "public"
36
36
  },
37
- "gitHead": "dfe72ee076f7ca27728d0b6b4c1ef86e11191ece"
37
+ "gitHead": "da2aa74670fbd93335ff01401ca53826b3602777"
38
38
  }