@react-spectrum/listbox 3.12.2-nightly.4252 → 3.12.2-nightly.4256
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/dist/import.mjs +134 -173
- package/dist/main.js +132 -171
- package/dist/main.js.map +1 -1
- package/dist/module.js +134 -173
- package/dist/module.js.map +1 -1
- package/package.json +21 -21
package/dist/main.js
CHANGED
|
@@ -25,162 +25,6 @@ function $parcel$interopDefault(a) {
|
|
|
25
25
|
return a && a.__esModule ? a.default : a;
|
|
26
26
|
}
|
|
27
27
|
|
|
28
|
-
var $parcel$global = globalThis;
|
|
29
|
-
|
|
30
|
-
var $parcel$modules = {};
|
|
31
|
-
var $parcel$inits = {};
|
|
32
|
-
|
|
33
|
-
var parcelRequire = $parcel$global["parcelRequire7f0c"];
|
|
34
|
-
|
|
35
|
-
if (parcelRequire == null) {
|
|
36
|
-
parcelRequire = function(id) {
|
|
37
|
-
if (id in $parcel$modules) {
|
|
38
|
-
return $parcel$modules[id].exports;
|
|
39
|
-
}
|
|
40
|
-
if (id in $parcel$inits) {
|
|
41
|
-
var init = $parcel$inits[id];
|
|
42
|
-
delete $parcel$inits[id];
|
|
43
|
-
var module = {id: id, exports: {}};
|
|
44
|
-
$parcel$modules[id] = module;
|
|
45
|
-
init.call(module.exports, module, module.exports);
|
|
46
|
-
return module.exports;
|
|
47
|
-
}
|
|
48
|
-
var err = new Error("Cannot find module '" + id + "'");
|
|
49
|
-
err.code = 'MODULE_NOT_FOUND';
|
|
50
|
-
throw err;
|
|
51
|
-
};
|
|
52
|
-
|
|
53
|
-
parcelRequire.register = function register(id, init) {
|
|
54
|
-
$parcel$inits[id] = init;
|
|
55
|
-
};
|
|
56
|
-
|
|
57
|
-
$parcel$global["parcelRequire7f0c"] = parcelRequire;
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
var parcelRegister = parcelRequire.register;
|
|
61
|
-
parcelRegister("5jFrT", function(module, exports) {
|
|
62
|
-
|
|
63
|
-
$parcel$export(module.exports, "checkmark", () => $3deee0fd2b46e64f$export$292abbf31ed842a, (v) => $3deee0fd2b46e64f$export$292abbf31ed842a = v);
|
|
64
|
-
$parcel$export(module.exports, "description", () => $3deee0fd2b46e64f$export$6d59db4903f20f7d, (v) => $3deee0fd2b46e64f$export$6d59db4903f20f7d = v);
|
|
65
|
-
$parcel$export(module.exports, "end", () => $3deee0fd2b46e64f$export$bd5df0f255a350f8, (v) => $3deee0fd2b46e64f$export$bd5df0f255a350f8 = v);
|
|
66
|
-
$parcel$export(module.exports, "focus-ring", () => $3deee0fd2b46e64f$export$f39a09f249340e2a, (v) => $3deee0fd2b46e64f$export$f39a09f249340e2a = v);
|
|
67
|
-
$parcel$export(module.exports, "i18nFontFamily", () => $3deee0fd2b46e64f$export$8c4ee2c50c22c514, (v) => $3deee0fd2b46e64f$export$8c4ee2c50c22c514 = v);
|
|
68
|
-
$parcel$export(module.exports, "icon", () => $3deee0fd2b46e64f$export$1ca1ec8b29a4ce27, (v) => $3deee0fd2b46e64f$export$1ca1ec8b29a4ce27 = v);
|
|
69
|
-
$parcel$export(module.exports, "is-active", () => $3deee0fd2b46e64f$export$20fd0f7cd4e6112f, (v) => $3deee0fd2b46e64f$export$20fd0f7cd4e6112f = v);
|
|
70
|
-
$parcel$export(module.exports, "is-disabled", () => $3deee0fd2b46e64f$export$d35bc1e505d1ebbf, (v) => $3deee0fd2b46e64f$export$d35bc1e505d1ebbf = v);
|
|
71
|
-
$parcel$export(module.exports, "is-focused", () => $3deee0fd2b46e64f$export$e7dc768d35940237, (v) => $3deee0fd2b46e64f$export$e7dc768d35940237 = v);
|
|
72
|
-
$parcel$export(module.exports, "is-highlighted", () => $3deee0fd2b46e64f$export$451c613d0772eb99, (v) => $3deee0fd2b46e64f$export$451c613d0772eb99 = v);
|
|
73
|
-
$parcel$export(module.exports, "is-hovered", () => $3deee0fd2b46e64f$export$b8813cd5d7824ce7, (v) => $3deee0fd2b46e64f$export$b8813cd5d7824ce7 = v);
|
|
74
|
-
$parcel$export(module.exports, "is-open", () => $3deee0fd2b46e64f$export$a9781837241c946d, (v) => $3deee0fd2b46e64f$export$a9781837241c946d = v);
|
|
75
|
-
$parcel$export(module.exports, "is-selectable", () => $3deee0fd2b46e64f$export$fbd22ba224473193, (v) => $3deee0fd2b46e64f$export$fbd22ba224473193 = v);
|
|
76
|
-
$parcel$export(module.exports, "is-selected", () => $3deee0fd2b46e64f$export$1e0fb04f31d3c22a, (v) => $3deee0fd2b46e64f$export$1e0fb04f31d3c22a = v);
|
|
77
|
-
$parcel$export(module.exports, "keyboard", () => $3deee0fd2b46e64f$export$cfdd767f5a513509, (v) => $3deee0fd2b46e64f$export$cfdd767f5a513509 = v);
|
|
78
|
-
$parcel$export(module.exports, "spectrum-FocusRing-ring", () => $3deee0fd2b46e64f$export$4109102f950813a6, (v) => $3deee0fd2b46e64f$export$4109102f950813a6 = v);
|
|
79
|
-
$parcel$export(module.exports, "spectrum-FocusRing", () => $3deee0fd2b46e64f$export$24c7f46a6e3605dd, (v) => $3deee0fd2b46e64f$export$24c7f46a6e3605dd = v);
|
|
80
|
-
$parcel$export(module.exports, "spectrum-FocusRing--quiet", () => $3deee0fd2b46e64f$export$2927016961429360, (v) => $3deee0fd2b46e64f$export$2927016961429360 = v);
|
|
81
|
-
$parcel$export(module.exports, "spectrum-Icon", () => $3deee0fd2b46e64f$export$d374b04f30360026, (v) => $3deee0fd2b46e64f$export$d374b04f30360026 = v);
|
|
82
|
-
$parcel$export(module.exports, "spectrum-Menu", () => $3deee0fd2b46e64f$export$fae6af6decd50ac5, (v) => $3deee0fd2b46e64f$export$fae6af6decd50ac5 = v);
|
|
83
|
-
$parcel$export(module.exports, "spectrum-Menu-checkmark", () => $3deee0fd2b46e64f$export$8e15a726e4f7e62d, (v) => $3deee0fd2b46e64f$export$8e15a726e4f7e62d = v);
|
|
84
|
-
$parcel$export(module.exports, "spectrum-Menu-description", () => $3deee0fd2b46e64f$export$36f1275051e39ead, (v) => $3deee0fd2b46e64f$export$36f1275051e39ead = v);
|
|
85
|
-
$parcel$export(module.exports, "spectrum-Menu-divider", () => $3deee0fd2b46e64f$export$e892026f534efed8, (v) => $3deee0fd2b46e64f$export$e892026f534efed8 = v);
|
|
86
|
-
$parcel$export(module.exports, "spectrum-Menu-end", () => $3deee0fd2b46e64f$export$926a1bb74ed65667, (v) => $3deee0fd2b46e64f$export$926a1bb74ed65667 = v);
|
|
87
|
-
$parcel$export(module.exports, "spectrum-Menu-icon", () => $3deee0fd2b46e64f$export$cbbae63ef9e44c7a, (v) => $3deee0fd2b46e64f$export$cbbae63ef9e44c7a = v);
|
|
88
|
-
$parcel$export(module.exports, "spectrum-Menu-item", () => $3deee0fd2b46e64f$export$45faad328e6c532b, (v) => $3deee0fd2b46e64f$export$45faad328e6c532b = v);
|
|
89
|
-
$parcel$export(module.exports, "spectrum-Menu-itemGrid", () => $3deee0fd2b46e64f$export$ee5f52784f57f9c8, (v) => $3deee0fd2b46e64f$export$ee5f52784f57f9c8 = v);
|
|
90
|
-
$parcel$export(module.exports, "spectrum-Menu-itemIcon", () => $3deee0fd2b46e64f$export$f431001e1bb54633, (v) => $3deee0fd2b46e64f$export$f431001e1bb54633 = v);
|
|
91
|
-
$parcel$export(module.exports, "spectrum-Menu-itemLabel", () => $3deee0fd2b46e64f$export$1aa6419c5c650567, (v) => $3deee0fd2b46e64f$export$1aa6419c5c650567 = v);
|
|
92
|
-
$parcel$export(module.exports, "spectrum-Menu-itemLabel--wrapping", () => $3deee0fd2b46e64f$export$465092164a8e1d98, (v) => $3deee0fd2b46e64f$export$465092164a8e1d98 = v);
|
|
93
|
-
$parcel$export(module.exports, "spectrum-Menu-keyboard", () => $3deee0fd2b46e64f$export$4f9817a7dff6ba0f, (v) => $3deee0fd2b46e64f$export$4f9817a7dff6ba0f = v);
|
|
94
|
-
$parcel$export(module.exports, "spectrum-Menu-popover", () => $3deee0fd2b46e64f$export$d959f30786125b, (v) => $3deee0fd2b46e64f$export$d959f30786125b = v);
|
|
95
|
-
$parcel$export(module.exports, "spectrum-Menu-section--isFirst", () => $3deee0fd2b46e64f$export$dae331c15950f1e, (v) => $3deee0fd2b46e64f$export$dae331c15950f1e = v);
|
|
96
|
-
$parcel$export(module.exports, "spectrum-Menu-section--isLast", () => $3deee0fd2b46e64f$export$9778864c5b622fbc, (v) => $3deee0fd2b46e64f$export$9778864c5b622fbc = v);
|
|
97
|
-
$parcel$export(module.exports, "spectrum-Menu-section--noHeading", () => $3deee0fd2b46e64f$export$8b61ec49b96ad17e, (v) => $3deee0fd2b46e64f$export$8b61ec49b96ad17e = v);
|
|
98
|
-
$parcel$export(module.exports, "spectrum-Menu-sectionHeading", () => $3deee0fd2b46e64f$export$c20ea4b35020fbdd, (v) => $3deee0fd2b46e64f$export$c20ea4b35020fbdd = v);
|
|
99
|
-
$parcel$export(module.exports, "spectrum-Menu-subdialog", () => $3deee0fd2b46e64f$export$d7e47bfca92b5744, (v) => $3deee0fd2b46e64f$export$d7e47bfca92b5744 = v);
|
|
100
|
-
$parcel$export(module.exports, "spectrum-Menu-wrapper", () => $3deee0fd2b46e64f$export$76d36e55740ad742, (v) => $3deee0fd2b46e64f$export$76d36e55740ad742 = v);
|
|
101
|
-
$parcel$export(module.exports, "text", () => $3deee0fd2b46e64f$export$6f093cfa640b7166, (v) => $3deee0fd2b46e64f$export$6f093cfa640b7166 = v);
|
|
102
|
-
var $3deee0fd2b46e64f$export$292abbf31ed842a;
|
|
103
|
-
var $3deee0fd2b46e64f$export$6d59db4903f20f7d;
|
|
104
|
-
var $3deee0fd2b46e64f$export$bd5df0f255a350f8;
|
|
105
|
-
var $3deee0fd2b46e64f$export$f39a09f249340e2a;
|
|
106
|
-
var $3deee0fd2b46e64f$export$8c4ee2c50c22c514;
|
|
107
|
-
var $3deee0fd2b46e64f$export$1ca1ec8b29a4ce27;
|
|
108
|
-
var $3deee0fd2b46e64f$export$20fd0f7cd4e6112f;
|
|
109
|
-
var $3deee0fd2b46e64f$export$d35bc1e505d1ebbf;
|
|
110
|
-
var $3deee0fd2b46e64f$export$e7dc768d35940237;
|
|
111
|
-
var $3deee0fd2b46e64f$export$451c613d0772eb99;
|
|
112
|
-
var $3deee0fd2b46e64f$export$b8813cd5d7824ce7;
|
|
113
|
-
var $3deee0fd2b46e64f$export$a9781837241c946d;
|
|
114
|
-
var $3deee0fd2b46e64f$export$fbd22ba224473193;
|
|
115
|
-
var $3deee0fd2b46e64f$export$1e0fb04f31d3c22a;
|
|
116
|
-
var $3deee0fd2b46e64f$export$cfdd767f5a513509;
|
|
117
|
-
var $3deee0fd2b46e64f$export$4109102f950813a6;
|
|
118
|
-
var $3deee0fd2b46e64f$export$24c7f46a6e3605dd;
|
|
119
|
-
var $3deee0fd2b46e64f$export$2927016961429360;
|
|
120
|
-
var $3deee0fd2b46e64f$export$d374b04f30360026;
|
|
121
|
-
var $3deee0fd2b46e64f$export$fae6af6decd50ac5;
|
|
122
|
-
var $3deee0fd2b46e64f$export$8e15a726e4f7e62d;
|
|
123
|
-
var $3deee0fd2b46e64f$export$36f1275051e39ead;
|
|
124
|
-
var $3deee0fd2b46e64f$export$e892026f534efed8;
|
|
125
|
-
var $3deee0fd2b46e64f$export$926a1bb74ed65667;
|
|
126
|
-
var $3deee0fd2b46e64f$export$cbbae63ef9e44c7a;
|
|
127
|
-
var $3deee0fd2b46e64f$export$45faad328e6c532b;
|
|
128
|
-
var $3deee0fd2b46e64f$export$ee5f52784f57f9c8;
|
|
129
|
-
var $3deee0fd2b46e64f$export$f431001e1bb54633;
|
|
130
|
-
var $3deee0fd2b46e64f$export$1aa6419c5c650567;
|
|
131
|
-
var $3deee0fd2b46e64f$export$465092164a8e1d98;
|
|
132
|
-
var $3deee0fd2b46e64f$export$4f9817a7dff6ba0f;
|
|
133
|
-
var $3deee0fd2b46e64f$export$d959f30786125b;
|
|
134
|
-
var $3deee0fd2b46e64f$export$dae331c15950f1e;
|
|
135
|
-
var $3deee0fd2b46e64f$export$9778864c5b622fbc;
|
|
136
|
-
var $3deee0fd2b46e64f$export$8b61ec49b96ad17e;
|
|
137
|
-
var $3deee0fd2b46e64f$export$c20ea4b35020fbdd;
|
|
138
|
-
var $3deee0fd2b46e64f$export$d7e47bfca92b5744;
|
|
139
|
-
var $3deee0fd2b46e64f$export$76d36e55740ad742;
|
|
140
|
-
var $3deee0fd2b46e64f$export$6f093cfa640b7166;
|
|
141
|
-
$3deee0fd2b46e64f$export$292abbf31ed842a = `Q7FggG_checkmark`;
|
|
142
|
-
$3deee0fd2b46e64f$export$6d59db4903f20f7d = `Q7FggG_description`;
|
|
143
|
-
$3deee0fd2b46e64f$export$bd5df0f255a350f8 = `Q7FggG_end`;
|
|
144
|
-
$3deee0fd2b46e64f$export$f39a09f249340e2a = `Q7FggG_focus-ring`;
|
|
145
|
-
$3deee0fd2b46e64f$export$8c4ee2c50c22c514 = `Q7FggG_i18nFontFamily`;
|
|
146
|
-
$3deee0fd2b46e64f$export$1ca1ec8b29a4ce27 = `Q7FggG_icon`;
|
|
147
|
-
$3deee0fd2b46e64f$export$20fd0f7cd4e6112f = `Q7FggG_is-active`;
|
|
148
|
-
$3deee0fd2b46e64f$export$d35bc1e505d1ebbf = `Q7FggG_is-disabled`;
|
|
149
|
-
$3deee0fd2b46e64f$export$e7dc768d35940237 = `Q7FggG_is-focused`;
|
|
150
|
-
$3deee0fd2b46e64f$export$451c613d0772eb99 = `Q7FggG_is-highlighted`;
|
|
151
|
-
$3deee0fd2b46e64f$export$b8813cd5d7824ce7 = `Q7FggG_is-hovered`;
|
|
152
|
-
$3deee0fd2b46e64f$export$a9781837241c946d = `Q7FggG_is-open`;
|
|
153
|
-
$3deee0fd2b46e64f$export$fbd22ba224473193 = `Q7FggG_is-selectable`;
|
|
154
|
-
$3deee0fd2b46e64f$export$1e0fb04f31d3c22a = `Q7FggG_is-selected`;
|
|
155
|
-
$3deee0fd2b46e64f$export$cfdd767f5a513509 = `Q7FggG_keyboard`;
|
|
156
|
-
$3deee0fd2b46e64f$export$4109102f950813a6 = `Q7FggG_spectrum-FocusRing-ring`;
|
|
157
|
-
$3deee0fd2b46e64f$export$24c7f46a6e3605dd = `Q7FggG_spectrum-FocusRing ${$3deee0fd2b46e64f$export$4109102f950813a6}`;
|
|
158
|
-
$3deee0fd2b46e64f$export$2927016961429360 = `Q7FggG_spectrum-FocusRing--quiet`;
|
|
159
|
-
$3deee0fd2b46e64f$export$d374b04f30360026 = `Q7FggG_spectrum-Icon`;
|
|
160
|
-
$3deee0fd2b46e64f$export$fae6af6decd50ac5 = `Q7FggG_spectrum-Menu`;
|
|
161
|
-
$3deee0fd2b46e64f$export$8e15a726e4f7e62d = `Q7FggG_spectrum-Menu-checkmark`;
|
|
162
|
-
$3deee0fd2b46e64f$export$36f1275051e39ead = `Q7FggG_spectrum-Menu-description`;
|
|
163
|
-
$3deee0fd2b46e64f$export$e892026f534efed8 = `Q7FggG_spectrum-Menu-divider`;
|
|
164
|
-
$3deee0fd2b46e64f$export$926a1bb74ed65667 = `Q7FggG_spectrum-Menu-end`;
|
|
165
|
-
$3deee0fd2b46e64f$export$cbbae63ef9e44c7a = `Q7FggG_spectrum-Menu-icon`;
|
|
166
|
-
$3deee0fd2b46e64f$export$45faad328e6c532b = `Q7FggG_spectrum-Menu-item`;
|
|
167
|
-
$3deee0fd2b46e64f$export$ee5f52784f57f9c8 = `Q7FggG_spectrum-Menu-itemGrid`;
|
|
168
|
-
$3deee0fd2b46e64f$export$f431001e1bb54633 = `Q7FggG_spectrum-Menu-itemIcon`;
|
|
169
|
-
$3deee0fd2b46e64f$export$1aa6419c5c650567 = `Q7FggG_spectrum-Menu-itemLabel`;
|
|
170
|
-
$3deee0fd2b46e64f$export$465092164a8e1d98 = `Q7FggG_spectrum-Menu-itemLabel--wrapping`;
|
|
171
|
-
$3deee0fd2b46e64f$export$4f9817a7dff6ba0f = `Q7FggG_spectrum-Menu-keyboard`;
|
|
172
|
-
$3deee0fd2b46e64f$export$d959f30786125b = `Q7FggG_spectrum-Menu-popover`;
|
|
173
|
-
$3deee0fd2b46e64f$export$dae331c15950f1e = `Q7FggG_spectrum-Menu-section--isFirst`;
|
|
174
|
-
$3deee0fd2b46e64f$export$9778864c5b622fbc = `Q7FggG_spectrum-Menu-section--isLast`;
|
|
175
|
-
$3deee0fd2b46e64f$export$8b61ec49b96ad17e = `Q7FggG_spectrum-Menu-section--noHeading`;
|
|
176
|
-
$3deee0fd2b46e64f$export$c20ea4b35020fbdd = `Q7FggG_spectrum-Menu-sectionHeading`;
|
|
177
|
-
$3deee0fd2b46e64f$export$d7e47bfca92b5744 = `Q7FggG_spectrum-Menu-subdialog`;
|
|
178
|
-
$3deee0fd2b46e64f$export$76d36e55740ad742 = `Q7FggG_spectrum-Menu-wrapper`;
|
|
179
|
-
$3deee0fd2b46e64f$export$6f093cfa640b7166 = `Q7FggG_text`;
|
|
180
|
-
|
|
181
|
-
});
|
|
182
|
-
|
|
183
|
-
|
|
184
28
|
$parcel$export(module.exports, "ListBox", () => $582d86e45be55635$export$41f133550aa26f48);
|
|
185
29
|
$parcel$export(module.exports, "useListBoxLayout", () => $60eb4b34c53310cb$export$25768ea656ae32a7);
|
|
186
30
|
$parcel$export(module.exports, "ListBoxBase", () => $60eb4b34c53310cb$export$1afdcf349979fb7e);
|
|
@@ -529,8 +373,127 @@ const $611e93c7b7c0413c$export$7ff8f37d2d81a48d = (0, ($parcel$interopDefault($3
|
|
|
529
373
|
|
|
530
374
|
|
|
531
375
|
|
|
376
|
+
var $3deee0fd2b46e64f$exports = {};
|
|
377
|
+
|
|
378
|
+
$parcel$export($3deee0fd2b46e64f$exports, "checkmark", () => $3deee0fd2b46e64f$export$292abbf31ed842a, (v) => $3deee0fd2b46e64f$export$292abbf31ed842a = v);
|
|
379
|
+
$parcel$export($3deee0fd2b46e64f$exports, "description", () => $3deee0fd2b46e64f$export$6d59db4903f20f7d, (v) => $3deee0fd2b46e64f$export$6d59db4903f20f7d = v);
|
|
380
|
+
$parcel$export($3deee0fd2b46e64f$exports, "end", () => $3deee0fd2b46e64f$export$bd5df0f255a350f8, (v) => $3deee0fd2b46e64f$export$bd5df0f255a350f8 = v);
|
|
381
|
+
$parcel$export($3deee0fd2b46e64f$exports, "focus-ring", () => $3deee0fd2b46e64f$export$f39a09f249340e2a, (v) => $3deee0fd2b46e64f$export$f39a09f249340e2a = v);
|
|
382
|
+
$parcel$export($3deee0fd2b46e64f$exports, "i18nFontFamily", () => $3deee0fd2b46e64f$export$8c4ee2c50c22c514, (v) => $3deee0fd2b46e64f$export$8c4ee2c50c22c514 = v);
|
|
383
|
+
$parcel$export($3deee0fd2b46e64f$exports, "icon", () => $3deee0fd2b46e64f$export$1ca1ec8b29a4ce27, (v) => $3deee0fd2b46e64f$export$1ca1ec8b29a4ce27 = v);
|
|
384
|
+
$parcel$export($3deee0fd2b46e64f$exports, "is-active", () => $3deee0fd2b46e64f$export$20fd0f7cd4e6112f, (v) => $3deee0fd2b46e64f$export$20fd0f7cd4e6112f = v);
|
|
385
|
+
$parcel$export($3deee0fd2b46e64f$exports, "is-disabled", () => $3deee0fd2b46e64f$export$d35bc1e505d1ebbf, (v) => $3deee0fd2b46e64f$export$d35bc1e505d1ebbf = v);
|
|
386
|
+
$parcel$export($3deee0fd2b46e64f$exports, "is-focused", () => $3deee0fd2b46e64f$export$e7dc768d35940237, (v) => $3deee0fd2b46e64f$export$e7dc768d35940237 = v);
|
|
387
|
+
$parcel$export($3deee0fd2b46e64f$exports, "is-highlighted", () => $3deee0fd2b46e64f$export$451c613d0772eb99, (v) => $3deee0fd2b46e64f$export$451c613d0772eb99 = v);
|
|
388
|
+
$parcel$export($3deee0fd2b46e64f$exports, "is-hovered", () => $3deee0fd2b46e64f$export$b8813cd5d7824ce7, (v) => $3deee0fd2b46e64f$export$b8813cd5d7824ce7 = v);
|
|
389
|
+
$parcel$export($3deee0fd2b46e64f$exports, "is-open", () => $3deee0fd2b46e64f$export$a9781837241c946d, (v) => $3deee0fd2b46e64f$export$a9781837241c946d = v);
|
|
390
|
+
$parcel$export($3deee0fd2b46e64f$exports, "is-selectable", () => $3deee0fd2b46e64f$export$fbd22ba224473193, (v) => $3deee0fd2b46e64f$export$fbd22ba224473193 = v);
|
|
391
|
+
$parcel$export($3deee0fd2b46e64f$exports, "is-selected", () => $3deee0fd2b46e64f$export$1e0fb04f31d3c22a, (v) => $3deee0fd2b46e64f$export$1e0fb04f31d3c22a = v);
|
|
392
|
+
$parcel$export($3deee0fd2b46e64f$exports, "keyboard", () => $3deee0fd2b46e64f$export$cfdd767f5a513509, (v) => $3deee0fd2b46e64f$export$cfdd767f5a513509 = v);
|
|
393
|
+
$parcel$export($3deee0fd2b46e64f$exports, "spectrum-FocusRing-ring", () => $3deee0fd2b46e64f$export$4109102f950813a6, (v) => $3deee0fd2b46e64f$export$4109102f950813a6 = v);
|
|
394
|
+
$parcel$export($3deee0fd2b46e64f$exports, "spectrum-FocusRing", () => $3deee0fd2b46e64f$export$24c7f46a6e3605dd, (v) => $3deee0fd2b46e64f$export$24c7f46a6e3605dd = v);
|
|
395
|
+
$parcel$export($3deee0fd2b46e64f$exports, "spectrum-FocusRing--quiet", () => $3deee0fd2b46e64f$export$2927016961429360, (v) => $3deee0fd2b46e64f$export$2927016961429360 = v);
|
|
396
|
+
$parcel$export($3deee0fd2b46e64f$exports, "spectrum-Icon", () => $3deee0fd2b46e64f$export$d374b04f30360026, (v) => $3deee0fd2b46e64f$export$d374b04f30360026 = v);
|
|
397
|
+
$parcel$export($3deee0fd2b46e64f$exports, "spectrum-Menu", () => $3deee0fd2b46e64f$export$fae6af6decd50ac5, (v) => $3deee0fd2b46e64f$export$fae6af6decd50ac5 = v);
|
|
398
|
+
$parcel$export($3deee0fd2b46e64f$exports, "spectrum-Menu-checkmark", () => $3deee0fd2b46e64f$export$8e15a726e4f7e62d, (v) => $3deee0fd2b46e64f$export$8e15a726e4f7e62d = v);
|
|
399
|
+
$parcel$export($3deee0fd2b46e64f$exports, "spectrum-Menu-description", () => $3deee0fd2b46e64f$export$36f1275051e39ead, (v) => $3deee0fd2b46e64f$export$36f1275051e39ead = v);
|
|
400
|
+
$parcel$export($3deee0fd2b46e64f$exports, "spectrum-Menu-divider", () => $3deee0fd2b46e64f$export$e892026f534efed8, (v) => $3deee0fd2b46e64f$export$e892026f534efed8 = v);
|
|
401
|
+
$parcel$export($3deee0fd2b46e64f$exports, "spectrum-Menu-end", () => $3deee0fd2b46e64f$export$926a1bb74ed65667, (v) => $3deee0fd2b46e64f$export$926a1bb74ed65667 = v);
|
|
402
|
+
$parcel$export($3deee0fd2b46e64f$exports, "spectrum-Menu-icon", () => $3deee0fd2b46e64f$export$cbbae63ef9e44c7a, (v) => $3deee0fd2b46e64f$export$cbbae63ef9e44c7a = v);
|
|
403
|
+
$parcel$export($3deee0fd2b46e64f$exports, "spectrum-Menu-item", () => $3deee0fd2b46e64f$export$45faad328e6c532b, (v) => $3deee0fd2b46e64f$export$45faad328e6c532b = v);
|
|
404
|
+
$parcel$export($3deee0fd2b46e64f$exports, "spectrum-Menu-itemGrid", () => $3deee0fd2b46e64f$export$ee5f52784f57f9c8, (v) => $3deee0fd2b46e64f$export$ee5f52784f57f9c8 = v);
|
|
405
|
+
$parcel$export($3deee0fd2b46e64f$exports, "spectrum-Menu-itemIcon", () => $3deee0fd2b46e64f$export$f431001e1bb54633, (v) => $3deee0fd2b46e64f$export$f431001e1bb54633 = v);
|
|
406
|
+
$parcel$export($3deee0fd2b46e64f$exports, "spectrum-Menu-itemLabel", () => $3deee0fd2b46e64f$export$1aa6419c5c650567, (v) => $3deee0fd2b46e64f$export$1aa6419c5c650567 = v);
|
|
407
|
+
$parcel$export($3deee0fd2b46e64f$exports, "spectrum-Menu-itemLabel--wrapping", () => $3deee0fd2b46e64f$export$465092164a8e1d98, (v) => $3deee0fd2b46e64f$export$465092164a8e1d98 = v);
|
|
408
|
+
$parcel$export($3deee0fd2b46e64f$exports, "spectrum-Menu-keyboard", () => $3deee0fd2b46e64f$export$4f9817a7dff6ba0f, (v) => $3deee0fd2b46e64f$export$4f9817a7dff6ba0f = v);
|
|
409
|
+
$parcel$export($3deee0fd2b46e64f$exports, "spectrum-Menu-popover", () => $3deee0fd2b46e64f$export$d959f30786125b, (v) => $3deee0fd2b46e64f$export$d959f30786125b = v);
|
|
410
|
+
$parcel$export($3deee0fd2b46e64f$exports, "spectrum-Menu-section--isFirst", () => $3deee0fd2b46e64f$export$dae331c15950f1e, (v) => $3deee0fd2b46e64f$export$dae331c15950f1e = v);
|
|
411
|
+
$parcel$export($3deee0fd2b46e64f$exports, "spectrum-Menu-section--isLast", () => $3deee0fd2b46e64f$export$9778864c5b622fbc, (v) => $3deee0fd2b46e64f$export$9778864c5b622fbc = v);
|
|
412
|
+
$parcel$export($3deee0fd2b46e64f$exports, "spectrum-Menu-section--noHeading", () => $3deee0fd2b46e64f$export$8b61ec49b96ad17e, (v) => $3deee0fd2b46e64f$export$8b61ec49b96ad17e = v);
|
|
413
|
+
$parcel$export($3deee0fd2b46e64f$exports, "spectrum-Menu-sectionHeading", () => $3deee0fd2b46e64f$export$c20ea4b35020fbdd, (v) => $3deee0fd2b46e64f$export$c20ea4b35020fbdd = v);
|
|
414
|
+
$parcel$export($3deee0fd2b46e64f$exports, "spectrum-Menu-subdialog", () => $3deee0fd2b46e64f$export$d7e47bfca92b5744, (v) => $3deee0fd2b46e64f$export$d7e47bfca92b5744 = v);
|
|
415
|
+
$parcel$export($3deee0fd2b46e64f$exports, "spectrum-Menu-wrapper", () => $3deee0fd2b46e64f$export$76d36e55740ad742, (v) => $3deee0fd2b46e64f$export$76d36e55740ad742 = v);
|
|
416
|
+
$parcel$export($3deee0fd2b46e64f$exports, "text", () => $3deee0fd2b46e64f$export$6f093cfa640b7166, (v) => $3deee0fd2b46e64f$export$6f093cfa640b7166 = v);
|
|
417
|
+
var $3deee0fd2b46e64f$export$292abbf31ed842a;
|
|
418
|
+
var $3deee0fd2b46e64f$export$6d59db4903f20f7d;
|
|
419
|
+
var $3deee0fd2b46e64f$export$bd5df0f255a350f8;
|
|
420
|
+
var $3deee0fd2b46e64f$export$f39a09f249340e2a;
|
|
421
|
+
var $3deee0fd2b46e64f$export$8c4ee2c50c22c514;
|
|
422
|
+
var $3deee0fd2b46e64f$export$1ca1ec8b29a4ce27;
|
|
423
|
+
var $3deee0fd2b46e64f$export$20fd0f7cd4e6112f;
|
|
424
|
+
var $3deee0fd2b46e64f$export$d35bc1e505d1ebbf;
|
|
425
|
+
var $3deee0fd2b46e64f$export$e7dc768d35940237;
|
|
426
|
+
var $3deee0fd2b46e64f$export$451c613d0772eb99;
|
|
427
|
+
var $3deee0fd2b46e64f$export$b8813cd5d7824ce7;
|
|
428
|
+
var $3deee0fd2b46e64f$export$a9781837241c946d;
|
|
429
|
+
var $3deee0fd2b46e64f$export$fbd22ba224473193;
|
|
430
|
+
var $3deee0fd2b46e64f$export$1e0fb04f31d3c22a;
|
|
431
|
+
var $3deee0fd2b46e64f$export$cfdd767f5a513509;
|
|
432
|
+
var $3deee0fd2b46e64f$export$4109102f950813a6;
|
|
433
|
+
var $3deee0fd2b46e64f$export$24c7f46a6e3605dd;
|
|
434
|
+
var $3deee0fd2b46e64f$export$2927016961429360;
|
|
435
|
+
var $3deee0fd2b46e64f$export$d374b04f30360026;
|
|
436
|
+
var $3deee0fd2b46e64f$export$fae6af6decd50ac5;
|
|
437
|
+
var $3deee0fd2b46e64f$export$8e15a726e4f7e62d;
|
|
438
|
+
var $3deee0fd2b46e64f$export$36f1275051e39ead;
|
|
439
|
+
var $3deee0fd2b46e64f$export$e892026f534efed8;
|
|
440
|
+
var $3deee0fd2b46e64f$export$926a1bb74ed65667;
|
|
441
|
+
var $3deee0fd2b46e64f$export$cbbae63ef9e44c7a;
|
|
442
|
+
var $3deee0fd2b46e64f$export$45faad328e6c532b;
|
|
443
|
+
var $3deee0fd2b46e64f$export$ee5f52784f57f9c8;
|
|
444
|
+
var $3deee0fd2b46e64f$export$f431001e1bb54633;
|
|
445
|
+
var $3deee0fd2b46e64f$export$1aa6419c5c650567;
|
|
446
|
+
var $3deee0fd2b46e64f$export$465092164a8e1d98;
|
|
447
|
+
var $3deee0fd2b46e64f$export$4f9817a7dff6ba0f;
|
|
448
|
+
var $3deee0fd2b46e64f$export$d959f30786125b;
|
|
449
|
+
var $3deee0fd2b46e64f$export$dae331c15950f1e;
|
|
450
|
+
var $3deee0fd2b46e64f$export$9778864c5b622fbc;
|
|
451
|
+
var $3deee0fd2b46e64f$export$8b61ec49b96ad17e;
|
|
452
|
+
var $3deee0fd2b46e64f$export$c20ea4b35020fbdd;
|
|
453
|
+
var $3deee0fd2b46e64f$export$d7e47bfca92b5744;
|
|
454
|
+
var $3deee0fd2b46e64f$export$76d36e55740ad742;
|
|
455
|
+
var $3deee0fd2b46e64f$export$6f093cfa640b7166;
|
|
456
|
+
$3deee0fd2b46e64f$export$292abbf31ed842a = `Q7FggG_checkmark`;
|
|
457
|
+
$3deee0fd2b46e64f$export$6d59db4903f20f7d = `Q7FggG_description`;
|
|
458
|
+
$3deee0fd2b46e64f$export$bd5df0f255a350f8 = `Q7FggG_end`;
|
|
459
|
+
$3deee0fd2b46e64f$export$f39a09f249340e2a = `Q7FggG_focus-ring`;
|
|
460
|
+
$3deee0fd2b46e64f$export$8c4ee2c50c22c514 = `Q7FggG_i18nFontFamily`;
|
|
461
|
+
$3deee0fd2b46e64f$export$1ca1ec8b29a4ce27 = `Q7FggG_icon`;
|
|
462
|
+
$3deee0fd2b46e64f$export$20fd0f7cd4e6112f = `Q7FggG_is-active`;
|
|
463
|
+
$3deee0fd2b46e64f$export$d35bc1e505d1ebbf = `Q7FggG_is-disabled`;
|
|
464
|
+
$3deee0fd2b46e64f$export$e7dc768d35940237 = `Q7FggG_is-focused`;
|
|
465
|
+
$3deee0fd2b46e64f$export$451c613d0772eb99 = `Q7FggG_is-highlighted`;
|
|
466
|
+
$3deee0fd2b46e64f$export$b8813cd5d7824ce7 = `Q7FggG_is-hovered`;
|
|
467
|
+
$3deee0fd2b46e64f$export$a9781837241c946d = `Q7FggG_is-open`;
|
|
468
|
+
$3deee0fd2b46e64f$export$fbd22ba224473193 = `Q7FggG_is-selectable`;
|
|
469
|
+
$3deee0fd2b46e64f$export$1e0fb04f31d3c22a = `Q7FggG_is-selected`;
|
|
470
|
+
$3deee0fd2b46e64f$export$cfdd767f5a513509 = `Q7FggG_keyboard`;
|
|
471
|
+
$3deee0fd2b46e64f$export$4109102f950813a6 = `Q7FggG_spectrum-FocusRing-ring`;
|
|
472
|
+
$3deee0fd2b46e64f$export$24c7f46a6e3605dd = `Q7FggG_spectrum-FocusRing ${$3deee0fd2b46e64f$export$4109102f950813a6}`;
|
|
473
|
+
$3deee0fd2b46e64f$export$2927016961429360 = `Q7FggG_spectrum-FocusRing--quiet`;
|
|
474
|
+
$3deee0fd2b46e64f$export$d374b04f30360026 = `Q7FggG_spectrum-Icon`;
|
|
475
|
+
$3deee0fd2b46e64f$export$fae6af6decd50ac5 = `Q7FggG_spectrum-Menu`;
|
|
476
|
+
$3deee0fd2b46e64f$export$8e15a726e4f7e62d = `Q7FggG_spectrum-Menu-checkmark`;
|
|
477
|
+
$3deee0fd2b46e64f$export$36f1275051e39ead = `Q7FggG_spectrum-Menu-description`;
|
|
478
|
+
$3deee0fd2b46e64f$export$e892026f534efed8 = `Q7FggG_spectrum-Menu-divider`;
|
|
479
|
+
$3deee0fd2b46e64f$export$926a1bb74ed65667 = `Q7FggG_spectrum-Menu-end`;
|
|
480
|
+
$3deee0fd2b46e64f$export$cbbae63ef9e44c7a = `Q7FggG_spectrum-Menu-icon`;
|
|
481
|
+
$3deee0fd2b46e64f$export$45faad328e6c532b = `Q7FggG_spectrum-Menu-item`;
|
|
482
|
+
$3deee0fd2b46e64f$export$ee5f52784f57f9c8 = `Q7FggG_spectrum-Menu-itemGrid`;
|
|
483
|
+
$3deee0fd2b46e64f$export$f431001e1bb54633 = `Q7FggG_spectrum-Menu-itemIcon`;
|
|
484
|
+
$3deee0fd2b46e64f$export$1aa6419c5c650567 = `Q7FggG_spectrum-Menu-itemLabel`;
|
|
485
|
+
$3deee0fd2b46e64f$export$465092164a8e1d98 = `Q7FggG_spectrum-Menu-itemLabel--wrapping`;
|
|
486
|
+
$3deee0fd2b46e64f$export$4f9817a7dff6ba0f = `Q7FggG_spectrum-Menu-keyboard`;
|
|
487
|
+
$3deee0fd2b46e64f$export$d959f30786125b = `Q7FggG_spectrum-Menu-popover`;
|
|
488
|
+
$3deee0fd2b46e64f$export$dae331c15950f1e = `Q7FggG_spectrum-Menu-section--isFirst`;
|
|
489
|
+
$3deee0fd2b46e64f$export$9778864c5b622fbc = `Q7FggG_spectrum-Menu-section--isLast`;
|
|
490
|
+
$3deee0fd2b46e64f$export$8b61ec49b96ad17e = `Q7FggG_spectrum-Menu-section--noHeading`;
|
|
491
|
+
$3deee0fd2b46e64f$export$c20ea4b35020fbdd = `Q7FggG_spectrum-Menu-sectionHeading`;
|
|
492
|
+
$3deee0fd2b46e64f$export$d7e47bfca92b5744 = `Q7FggG_spectrum-Menu-subdialog`;
|
|
493
|
+
$3deee0fd2b46e64f$export$76d36e55740ad742 = `Q7FggG_spectrum-Menu-wrapper`;
|
|
494
|
+
$3deee0fd2b46e64f$export$6f093cfa640b7166 = `Q7FggG_text`;
|
|
495
|
+
|
|
532
496
|
|
|
533
|
-
var $5jFrT = parcelRequire("5jFrT");
|
|
534
497
|
|
|
535
498
|
|
|
536
499
|
function $2205d250ee1cb1ac$export$feb3b6b552c14a12(props) {
|
|
@@ -554,11 +517,11 @@ function $2205d250ee1cb1ac$export$feb3b6b552c14a12(props) {
|
|
|
554
517
|
let contents = typeof rendered === "string" ? /*#__PURE__*/ (0, ($parcel$interopDefault($3Fwf2$react))).createElement((0, $3Fwf2$reactspectrumtext.Text), null, rendered) : rendered;
|
|
555
518
|
let isKeyboardModality = (0, $3Fwf2$reactariainteractions.isFocusVisible)();
|
|
556
519
|
return /*#__PURE__*/ (0, ($parcel$interopDefault($3Fwf2$react))).createElement((0, $3Fwf2$reactariafocus.FocusRing), {
|
|
557
|
-
focusRingClass: (0, $3Fwf2$reactspectrumutils.classNames)((0, (/*@__PURE__*/$parcel$interopDefault($
|
|
520
|
+
focusRingClass: (0, $3Fwf2$reactspectrumutils.classNames)((0, (/*@__PURE__*/$parcel$interopDefault($3deee0fd2b46e64f$exports))), "focus-ring")
|
|
558
521
|
}, /*#__PURE__*/ (0, ($parcel$interopDefault($3Fwf2$react))).createElement(ElementType, {
|
|
559
522
|
...(0, $3Fwf2$reactariautils.mergeProps)(optionProps, shouldFocusOnHover ? {} : hoverProps),
|
|
560
523
|
ref: ref,
|
|
561
|
-
className: (0, $3Fwf2$reactspectrumutils.classNames)((0, (/*@__PURE__*/$parcel$interopDefault($
|
|
524
|
+
className: (0, $3Fwf2$reactspectrumutils.classNames)((0, (/*@__PURE__*/$parcel$interopDefault($3deee0fd2b46e64f$exports))), "spectrum-Menu-item", {
|
|
562
525
|
// If using virtual focus, apply focused styles to the item when the user is interacting with keyboard modality
|
|
563
526
|
"is-focused": shouldUseVirtualFocus && isFocused && isKeyboardModality,
|
|
564
527
|
"is-disabled": isDisabled,
|
|
@@ -569,25 +532,25 @@ function $2205d250ee1cb1ac$export$feb3b6b552c14a12(props) {
|
|
|
569
532
|
"is-hovered": isHovered && !shouldFocusOnHover || isFocused && !isKeyboardModality
|
|
570
533
|
})
|
|
571
534
|
}, /*#__PURE__*/ (0, ($parcel$interopDefault($3Fwf2$react))).createElement((0, $3Fwf2$reactspectrumlayout.Grid), {
|
|
572
|
-
UNSAFE_className: (0, $3Fwf2$reactspectrumutils.classNames)((0, (/*@__PURE__*/$parcel$interopDefault($
|
|
535
|
+
UNSAFE_className: (0, $3Fwf2$reactspectrumutils.classNames)((0, (/*@__PURE__*/$parcel$interopDefault($3deee0fd2b46e64f$exports))), "spectrum-Menu-itemGrid")
|
|
573
536
|
}, /*#__PURE__*/ (0, ($parcel$interopDefault($3Fwf2$react))).createElement((0, $3Fwf2$reactspectrumutils.ClearSlots), null, /*#__PURE__*/ (0, ($parcel$interopDefault($3Fwf2$react))).createElement((0, $3Fwf2$reactspectrumutils.SlotProvider), {
|
|
574
537
|
slots: {
|
|
575
538
|
text: {
|
|
576
|
-
UNSAFE_className: (0, (/*@__PURE__*/$parcel$interopDefault($
|
|
539
|
+
UNSAFE_className: (0, (/*@__PURE__*/$parcel$interopDefault($3deee0fd2b46e64f$exports)))["spectrum-Menu-itemLabel"],
|
|
577
540
|
...labelProps
|
|
578
541
|
},
|
|
579
542
|
icon: {
|
|
580
543
|
size: "S",
|
|
581
|
-
UNSAFE_className: (0, (/*@__PURE__*/$parcel$interopDefault($
|
|
544
|
+
UNSAFE_className: (0, (/*@__PURE__*/$parcel$interopDefault($3deee0fd2b46e64f$exports)))["spectrum-Menu-icon"]
|
|
582
545
|
},
|
|
583
546
|
description: {
|
|
584
|
-
UNSAFE_className: (0, (/*@__PURE__*/$parcel$interopDefault($
|
|
547
|
+
UNSAFE_className: (0, (/*@__PURE__*/$parcel$interopDefault($3deee0fd2b46e64f$exports)))["spectrum-Menu-description"],
|
|
585
548
|
...descriptionProps
|
|
586
549
|
}
|
|
587
550
|
}
|
|
588
551
|
}, contents, isSelected && /*#__PURE__*/ (0, ($parcel$interopDefault($3Fwf2$react))).createElement((0, ($parcel$interopDefault($3Fwf2$spectrumiconsuiCheckmarkMedium))), {
|
|
589
552
|
slot: "checkmark",
|
|
590
|
-
UNSAFE_className: (0, $3Fwf2$reactspectrumutils.classNames)((0, (/*@__PURE__*/$parcel$interopDefault($
|
|
553
|
+
UNSAFE_className: (0, $3Fwf2$reactspectrumutils.classNames)((0, (/*@__PURE__*/$parcel$interopDefault($3deee0fd2b46e64f$exports))), "spectrum-Menu-checkmark")
|
|
591
554
|
}))))));
|
|
592
555
|
}
|
|
593
556
|
|
|
@@ -607,7 +570,6 @@ function $2205d250ee1cb1ac$export$feb3b6b552c14a12(props) {
|
|
|
607
570
|
|
|
608
571
|
|
|
609
572
|
|
|
610
|
-
var $5jFrT = parcelRequire("5jFrT");
|
|
611
573
|
|
|
612
574
|
|
|
613
575
|
function $0f5fd8483f48ef09$export$dca12b0bb56e4fc(props) {
|
|
@@ -630,14 +592,14 @@ function $0f5fd8483f48ef09$export$dca12b0bb56e4fc(props) {
|
|
|
630
592
|
style: (0, $3Fwf2$reactariavirtualizer.layoutInfoToStyle)(headerLayoutInfo, direction)
|
|
631
593
|
}, item.key !== state.collection.getFirstKey() && /*#__PURE__*/ (0, ($parcel$interopDefault($3Fwf2$react))).createElement("div", {
|
|
632
594
|
role: "presentation",
|
|
633
|
-
className: (0, $3Fwf2$reactspectrumutils.classNames)((0, (/*@__PURE__*/$parcel$interopDefault($
|
|
595
|
+
className: (0, $3Fwf2$reactspectrumutils.classNames)((0, (/*@__PURE__*/$parcel$interopDefault($3deee0fd2b46e64f$exports))), "spectrum-Menu-divider")
|
|
634
596
|
}), item.rendered && /*#__PURE__*/ (0, ($parcel$interopDefault($3Fwf2$react))).createElement("div", {
|
|
635
597
|
...headingProps,
|
|
636
|
-
className: (0, $3Fwf2$reactspectrumutils.classNames)((0, (/*@__PURE__*/$parcel$interopDefault($
|
|
598
|
+
className: (0, $3Fwf2$reactspectrumutils.classNames)((0, (/*@__PURE__*/$parcel$interopDefault($3deee0fd2b46e64f$exports))), "spectrum-Menu-sectionHeading")
|
|
637
599
|
}, item.rendered)), /*#__PURE__*/ (0, ($parcel$interopDefault($3Fwf2$react))).createElement("div", {
|
|
638
600
|
...groupProps,
|
|
639
601
|
style: (0, $3Fwf2$reactariavirtualizer.layoutInfoToStyle)(layoutInfo, direction),
|
|
640
|
-
className: (0, $3Fwf2$reactspectrumutils.classNames)((0, (/*@__PURE__*/$parcel$interopDefault($
|
|
602
|
+
className: (0, $3Fwf2$reactspectrumutils.classNames)((0, (/*@__PURE__*/$parcel$interopDefault($3deee0fd2b46e64f$exports))), "spectrum-Menu")
|
|
641
603
|
}, children));
|
|
642
604
|
}
|
|
643
605
|
|
|
@@ -647,7 +609,6 @@ function $0f5fd8483f48ef09$export$dca12b0bb56e4fc(props) {
|
|
|
647
609
|
|
|
648
610
|
|
|
649
611
|
|
|
650
|
-
var $5jFrT = parcelRequire("5jFrT");
|
|
651
612
|
|
|
652
613
|
|
|
653
614
|
|
|
@@ -717,7 +678,7 @@ function $60eb4b34c53310cb$export$25768ea656ae32a7(state, isLoading) {
|
|
|
717
678
|
autoFocus: !!props.autoFocus,
|
|
718
679
|
sizeToFit: "height",
|
|
719
680
|
scrollDirection: "vertical",
|
|
720
|
-
className: (0, $3Fwf2$reactspectrumutils.classNames)((0, (/*@__PURE__*/$parcel$interopDefault($
|
|
681
|
+
className: (0, $3Fwf2$reactspectrumutils.classNames)((0, (/*@__PURE__*/$parcel$interopDefault($3deee0fd2b46e64f$exports))), "spectrum-Menu", styleProps.className),
|
|
721
682
|
layout: layout,
|
|
722
683
|
collection: state.collection,
|
|
723
684
|
renderWrapper: renderWrapper,
|
|
@@ -747,7 +708,7 @@ function $60eb4b34c53310cb$export$25768ea656ae32a7(state, isLoading) {
|
|
|
747
708
|
isIndeterminate: true,
|
|
748
709
|
size: "S",
|
|
749
710
|
"aria-label": state.collection.size > 0 ? stringFormatter.format("loadingMore") : stringFormatter.format("loading"),
|
|
750
|
-
UNSAFE_className: (0, $3Fwf2$reactspectrumutils.classNames)((0, (/*@__PURE__*/$parcel$interopDefault($
|
|
711
|
+
UNSAFE_className: (0, $3Fwf2$reactspectrumutils.classNames)((0, (/*@__PURE__*/$parcel$interopDefault($3deee0fd2b46e64f$exports))), "spectrum-Dropdown-progressCircle")
|
|
751
712
|
})));
|
|
752
713
|
else if (type === "placeholder") {
|
|
753
714
|
let emptyState = props.renderEmptyState ? props.renderEmptyState() : null;
|
package/dist/main.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,IAAA;AACA,IA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E,0DAAC;gBACC,uEAAuE;gBACvE,iEAAiE;gBACjE,MAAK;eACJ;QAGP;IACF;AAKV;AAEA,wFAAwF;AACxF,2GAA2G;AAC3G,MAAM,0DAAe,CAAA,GAAA,sCAAI,EAAE,UAAU,CAAC;;CDjLrC;;;;AASD,SAAS,8BAA0B,KAA8B,EAAE,GAA2B;IAC5F,IAAI,QAAQ,CAAA,GAAA,oCAAW,EAAE;IACzB,IAAI,SAAS,CAAA,GAAA,yCAAe,EAAE,OAAO,MAAM,SAAS;IACpD,IAAI,SAAS,CAAA,GAAA,mCAAQ,EAAE;IAEvB,qBACE,0DAAC,CAAA,GAAA,yCAAU;QACR,GAAG,KAAK;QACT,KAAK;QACL,OAAO;QACP,QAAQ;;AAEd;AAEA,wFAAwF;AACxF,2GAA2G;AAG3G;;CAEC,GACD,MAAM,0DAAW,CAAA,GAAA,sCAAI,EAAE,UAAU,CAAC;","sources":["packages/@adobe/spectrum-css-temp/components/menu/vars.css","packages/@react-spectrum/listbox/src/index.ts","packages/@react-spectrum/listbox/src/ListBox.tsx","packages/@react-spectrum/listbox/src/ListBoxBase.tsx","packages/@react-spectrum/listbox/src/*.js","packages/@react-spectrum/listbox/intl/ar-AE.json","packages/@react-spectrum/listbox/intl/bg-BG.json","packages/@react-spectrum/listbox/intl/cs-CZ.json","packages/@react-spectrum/listbox/intl/da-DK.json","packages/@react-spectrum/listbox/intl/de-DE.json","packages/@react-spectrum/listbox/intl/el-GR.json","packages/@react-spectrum/listbox/intl/en-US.json","packages/@react-spectrum/listbox/intl/es-ES.json","packages/@react-spectrum/listbox/intl/et-EE.json","packages/@react-spectrum/listbox/intl/fi-FI.json","packages/@react-spectrum/listbox/intl/fr-FR.json","packages/@react-spectrum/listbox/intl/he-IL.json","packages/@react-spectrum/listbox/intl/hr-HR.json","packages/@react-spectrum/listbox/intl/hu-HU.json","packages/@react-spectrum/listbox/intl/it-IT.json","packages/@react-spectrum/listbox/intl/ja-JP.json","packages/@react-spectrum/listbox/intl/ko-KR.json","packages/@react-spectrum/listbox/intl/lt-LT.json","packages/@react-spectrum/listbox/intl/lv-LV.json","packages/@react-spectrum/listbox/intl/nb-NO.json","packages/@react-spectrum/listbox/intl/nl-NL.json","packages/@react-spectrum/listbox/intl/pl-PL.json","packages/@react-spectrum/listbox/intl/pt-BR.json","packages/@react-spectrum/listbox/intl/pt-PT.json","packages/@react-spectrum/listbox/intl/ro-RO.json","packages/@react-spectrum/listbox/intl/ru-RU.json","packages/@react-spectrum/listbox/intl/sk-SK.json","packages/@react-spectrum/listbox/intl/sl-SI.json","packages/@react-spectrum/listbox/intl/sr-SP.json","packages/@react-spectrum/listbox/intl/sv-SE.json","packages/@react-spectrum/listbox/intl/tr-TR.json","packages/@react-spectrum/listbox/intl/uk-UA.json","packages/@react-spectrum/listbox/intl/zh-CN.json","packages/@react-spectrum/listbox/intl/zh-TW.json","packages/@react-spectrum/listbox/src/ListBoxContext.ts","packages/@react-spectrum/listbox/src/ListBoxOption.tsx","packages/@react-spectrum/listbox/src/ListBoxSection.tsx"],"sourcesContent":["/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\n@import './index.css';\n@import './skin.css';\n","/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\n/// <reference types=\"css-module-types\" />\n\nexport {ListBox} from './ListBox';\nexport {useListBoxLayout, ListBoxBase} from './ListBoxBase';\nexport {Item, Section} from '@react-stately/collections';\nexport type {SpectrumListBoxProps} from '@react-types/listbox';\n","/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\nimport {DOMRef} from '@react-types/shared';\nimport {ListBoxBase, useListBoxLayout} from './ListBoxBase';\nimport React, {ReactElement} from 'react';\nimport {SpectrumListBoxProps} from '@react-types/listbox';\nimport {useDOMRef} from '@react-spectrum/utils';\nimport {useListState} from '@react-stately/list';\n\nfunction ListBox<T extends object>(props: SpectrumListBoxProps<T>, ref: DOMRef<HTMLDivElement>) {\n let state = useListState(props);\n let layout = useListBoxLayout(state, props.isLoading);\n let domRef = useDOMRef(ref);\n\n return (\n <ListBoxBase\n {...props}\n ref={domRef}\n state={state}\n layout={layout} />\n );\n}\n\n// forwardRef doesn't support generic parameters, so cast the result to the correct type\n// https://stackoverflow.com/questions/58469229/react-with-typescript-generics-while-using-react-forwardref\n\n\n/**\n * A list of options that can allow selection of one or more.\n */\nconst _ListBox = React.forwardRef(ListBox) as <T>(props: SpectrumListBoxProps<T> & {ref?: DOMRef<HTMLDivElement>}) => ReactElement;\nexport {_ListBox as ListBox};\n","/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\nimport {AriaLabelingProps, DOMProps, FocusStrategy, Node, StyleProps} from '@react-types/shared';\nimport {AriaListBoxOptions, useListBox} from '@react-aria/listbox';\nimport {classNames, useStyleProps} from '@react-spectrum/utils';\nimport {FocusScope} from '@react-aria/focus';\n// @ts-ignore\nimport intlMessages from '../intl/*.json';\nimport {ListBoxContext} from './ListBoxContext';\nimport {ListBoxOption} from './ListBoxOption';\nimport {ListBoxSection} from './ListBoxSection';\nimport {ListLayout} from '@react-stately/layout';\nimport {ListState} from '@react-stately/list';\nimport {mergeProps, useLayoutEffect} from '@react-aria/utils';\nimport {ProgressCircle} from '@react-spectrum/progress';\nimport React, {HTMLAttributes, ReactElement, ReactNode, RefObject, useMemo} from 'react';\nimport {ReusableView} from '@react-stately/virtualizer';\nimport styles from '@adobe/spectrum-css-temp/components/menu/vars.css';\nimport {useCollator, useLocalizedStringFormatter} from '@react-aria/i18n';\nimport {useProvider} from '@react-spectrum/provider';\nimport {Virtualizer, VirtualizerItem} from '@react-aria/virtualizer';\n\ninterface ListBoxBaseProps<T> extends AriaListBoxOptions<T>, DOMProps, AriaLabelingProps, StyleProps {\n layout: ListLayout<T>,\n state: ListState<T>,\n autoFocus?: boolean | FocusStrategy,\n shouldFocusWrap?: boolean,\n shouldSelectOnPressUp?: boolean,\n focusOnPointerEnter?: boolean,\n domProps?: HTMLAttributes<HTMLElement>,\n disallowEmptySelection?: boolean,\n shouldUseVirtualFocus?: boolean,\n transitionDuration?: number,\n isLoading?: boolean,\n onLoadMore?: () => void,\n renderEmptyState?: () => ReactNode,\n onScroll?: () => void\n}\n\n/** @private */\nexport function useListBoxLayout<T>(state: ListState<T>, isLoading: boolean): ListLayout<T> {\n let {scale} = useProvider();\n let collator = useCollator({usage: 'search', sensitivity: 'base'});\n let layout = useMemo(() =>\n new ListLayout<T>({\n estimatedRowHeight: scale === 'large' ? 48 : 32,\n estimatedHeadingHeight: scale === 'large' ? 33 : 26,\n padding: scale === 'large' ? 5 : 4, // TODO: get from DNA\n loaderHeight: 40,\n placeholderHeight: scale === 'large' ? 48 : 32,\n collator\n })\n , [collator, scale]);\n\n layout.collection = state.collection;\n layout.disabledKeys = state.disabledKeys;\n\n useLayoutEffect(() => {\n // Sync loading state into the layout.\n if (layout.isLoading !== isLoading) {\n layout.isLoading = isLoading;\n layout.virtualizer?.relayoutNow();\n }\n }, [layout, isLoading]);\n return layout;\n}\n\n/** @private */\nfunction ListBoxBase<T>(props: ListBoxBaseProps<T>, ref: RefObject<HTMLDivElement>) {\n let {layout, state, shouldSelectOnPressUp, focusOnPointerEnter, shouldUseVirtualFocus, domProps = {}, transitionDuration = 0, onScroll} = props;\n let {listBoxProps} = useListBox({\n ...props,\n keyboardDelegate: layout,\n isVirtualized: true\n }, state, ref);\n let {styleProps} = useStyleProps(props);\n let stringFormatter = useLocalizedStringFormatter(intlMessages);\n\n // This overrides collection view's renderWrapper to support heirarchy of items in sections.\n // The header is extracted from the children so it can receive ARIA labeling properties.\n type View = ReusableView<Node<T>, ReactNode>;\n let renderWrapper = (parent: View, reusableView: View, children: View[], renderChildren: (views: View[]) => ReactElement[]) => {\n if (reusableView.viewType === 'section') {\n return (\n <ListBoxSection\n key={reusableView.key}\n item={reusableView.content}\n layoutInfo={reusableView.layoutInfo}\n virtualizer={reusableView.virtualizer}\n headerLayoutInfo={children.find(c => c.viewType === 'header').layoutInfo}>\n {renderChildren(children.filter(c => c.viewType === 'item'))}\n </ListBoxSection>\n );\n }\n\n return (\n <VirtualizerItem\n key={reusableView.key}\n layoutInfo={reusableView.layoutInfo}\n virtualizer={reusableView.virtualizer}\n parent={parent?.layoutInfo}>\n {reusableView.rendered}\n </VirtualizerItem>\n );\n };\n\n return (\n <ListBoxContext.Provider value={state}>\n <FocusScope>\n <Virtualizer\n {...styleProps}\n {...mergeProps(listBoxProps, domProps)}\n ref={ref}\n focusedKey={state.selectionManager.focusedKey}\n autoFocus={!!props.autoFocus}\n sizeToFit=\"height\"\n scrollDirection=\"vertical\"\n className={\n classNames(\n styles,\n 'spectrum-Menu',\n styleProps.className\n )\n }\n layout={layout}\n collection={state.collection}\n renderWrapper={renderWrapper}\n transitionDuration={transitionDuration}\n isLoading={props.isLoading}\n onLoadMore={props.onLoadMore}\n shouldUseVirtualFocus={shouldUseVirtualFocus}\n onScroll={onScroll}>\n {(type, item: Node<T>) => {\n if (type === 'item') {\n return (\n <ListBoxOption\n item={item}\n shouldSelectOnPressUp={shouldSelectOnPressUp}\n shouldFocusOnHover={focusOnPointerEnter}\n shouldUseVirtualFocus={shouldUseVirtualFocus} />\n );\n } else if (type === 'loader') {\n return (\n // aria-selected isn't needed here since this option is not selectable.\n // eslint-disable-next-line jsx-a11y/role-has-required-aria-props\n <div role=\"option\" style={{display: 'flex', alignItems: 'center', justifyContent: 'center', height: '100%'}}>\n <ProgressCircle\n isIndeterminate\n size=\"S\"\n aria-label={state.collection.size > 0 ? stringFormatter.format('loadingMore') : stringFormatter.format('loading')}\n UNSAFE_className={classNames(styles, 'spectrum-Dropdown-progressCircle')} />\n </div>\n );\n } else if (type === 'placeholder') {\n let emptyState = props.renderEmptyState ? props.renderEmptyState() : null;\n if (emptyState == null) {\n return null;\n }\n\n return (\n <div\n // aria-selected isn't needed here since this option is not selectable.\n // eslint-disable-next-line jsx-a11y/role-has-required-aria-props\n role=\"option\">\n {emptyState}\n </div>\n );\n }\n }}\n </Virtualizer>\n </FocusScope>\n </ListBoxContext.Provider>\n );\n}\n\n// forwardRef doesn't support generic parameters, so cast the result to the correct type\n// https://stackoverflow.com/questions/58469229/react-with-typescript-generics-while-using-react-forwardref\nconst _ListBoxBase = React.forwardRef(ListBoxBase) as <T>(props: ListBoxBaseProps<T> & {ref?: RefObject<HTMLDivElement>}) => ReactElement;\nexport {_ListBoxBase as ListBoxBase};\n","const _temp0 = require(\"../intl/ar-AE.json\");\nconst _temp1 = require(\"../intl/bg-BG.json\");\nconst _temp2 = require(\"../intl/cs-CZ.json\");\nconst _temp3 = require(\"../intl/da-DK.json\");\nconst _temp4 = require(\"../intl/de-DE.json\");\nconst _temp5 = require(\"../intl/el-GR.json\");\nconst _temp6 = require(\"../intl/en-US.json\");\nconst _temp7 = require(\"../intl/es-ES.json\");\nconst _temp8 = require(\"../intl/et-EE.json\");\nconst _temp9 = require(\"../intl/fi-FI.json\");\nconst _temp10 = require(\"../intl/fr-FR.json\");\nconst _temp11 = require(\"../intl/he-IL.json\");\nconst _temp12 = require(\"../intl/hr-HR.json\");\nconst _temp13 = require(\"../intl/hu-HU.json\");\nconst _temp14 = require(\"../intl/it-IT.json\");\nconst _temp15 = require(\"../intl/ja-JP.json\");\nconst _temp16 = require(\"../intl/ko-KR.json\");\nconst _temp17 = require(\"../intl/lt-LT.json\");\nconst _temp18 = require(\"../intl/lv-LV.json\");\nconst _temp19 = require(\"../intl/nb-NO.json\");\nconst _temp20 = require(\"../intl/nl-NL.json\");\nconst _temp21 = require(\"../intl/pl-PL.json\");\nconst _temp22 = require(\"../intl/pt-BR.json\");\nconst _temp23 = require(\"../intl/pt-PT.json\");\nconst _temp24 = require(\"../intl/ro-RO.json\");\nconst _temp25 = require(\"../intl/ru-RU.json\");\nconst _temp26 = require(\"../intl/sk-SK.json\");\nconst _temp27 = require(\"../intl/sl-SI.json\");\nconst _temp28 = require(\"../intl/sr-SP.json\");\nconst _temp29 = require(\"../intl/sv-SE.json\");\nconst _temp30 = require(\"../intl/tr-TR.json\");\nconst _temp31 = require(\"../intl/uk-UA.json\");\nconst _temp32 = require(\"../intl/zh-CN.json\");\nconst _temp33 = require(\"../intl/zh-TW.json\");\nmodule.exports = {\n \"ar-AE\": _temp0,\n \"bg-BG\": _temp1,\n \"cs-CZ\": _temp2,\n \"da-DK\": _temp3,\n \"de-DE\": _temp4,\n \"el-GR\": _temp5,\n \"en-US\": _temp6,\n \"es-ES\": _temp7,\n \"et-EE\": _temp8,\n \"fi-FI\": _temp9,\n \"fr-FR\": _temp10,\n \"he-IL\": _temp11,\n \"hr-HR\": _temp12,\n \"hu-HU\": _temp13,\n \"it-IT\": _temp14,\n \"ja-JP\": _temp15,\n \"ko-KR\": _temp16,\n \"lt-LT\": _temp17,\n \"lv-LV\": _temp18,\n \"nb-NO\": _temp19,\n \"nl-NL\": _temp20,\n \"pl-PL\": _temp21,\n \"pt-BR\": _temp22,\n \"pt-PT\": _temp23,\n \"ro-RO\": _temp24,\n \"ru-RU\": _temp25,\n \"sk-SK\": _temp26,\n \"sl-SI\": _temp27,\n \"sr-SP\": _temp28,\n \"sv-SE\": _temp29,\n \"tr-TR\": _temp30,\n \"uk-UA\": _temp31,\n \"zh-CN\": _temp32,\n \"zh-TW\": _temp33\n}","{\n \"loading\": \"جارٍ التحميل...\",\n \"loadingMore\": \"جارٍ تحميل المزيد...\"\n}\n","{\n \"loading\": \"Зареждане...\",\n \"loadingMore\": \"Зареждане на още...\"\n}\n","{\n \"loading\": \"Načítání...\",\n \"loadingMore\": \"Načítání dalších...\"\n}\n","{\n \"loading\": \"Indlæser ...\",\n \"loadingMore\": \"Indlæser flere ...\"\n}\n","{\n \"loading\": \"Laden...\",\n \"loadingMore\": \"Mehr laden ...\"\n}\n","{\n \"loading\": \"Φόρτωση...\",\n \"loadingMore\": \"Φόρτωση περισσότερων...\"\n}\n","{\n \"loading\": \"Loading…\",\n \"loadingMore\": \"Loading more…\"\n}\n","{\n \"loading\": \"Cargando…\",\n \"loadingMore\": \"Cargando más…\"\n}\n","{\n \"loading\": \"Laadimine...\",\n \"loadingMore\": \"Laadi rohkem...\"\n}\n","{\n \"loading\": \"Ladataan…\",\n \"loadingMore\": \"Ladataan lisää…\"\n}\n","{\n \"loading\": \"Chargement...\",\n \"loadingMore\": \"Chargement supplémentaire...\"\n}\n","{\n \"loading\": \"טוען...\",\n \"loadingMore\": \"טוען עוד...\"\n}\n","{\n \"loading\": \"Učitavam...\",\n \"loadingMore\": \"Učitavam još...\"\n}\n","{\n \"loading\": \"Betöltés folyamatban…\",\n \"loadingMore\": \"Továbbiak betöltése folyamatban…\"\n}\n","{\n \"loading\": \"Caricamento...\",\n \"loadingMore\": \"Caricamento altri...\"\n}\n","{\n \"loading\": \"読み込み中...\",\n \"loadingMore\": \"さらに読み込み中...\"\n}\n","{\n \"loading\": \"로드 중\",\n \"loadingMore\": \"추가 로드 중\"\n}\n","{\n \"loading\": \"Įkeliama...\",\n \"loadingMore\": \"Įkeliama daugiau...\"\n}\n","{\n \"loading\": \"Notiek ielāde...\",\n \"loadingMore\": \"Tiek ielādēts vēl...\"\n}\n","{\n \"loading\": \"Laster inn ...\",\n \"loadingMore\": \"Laster inn flere ...\"\n}\n","{\n \"loading\": \"Laden...\",\n \"loadingMore\": \"Meer laden...\"\n}\n","{\n \"loading\": \"Ładowanie...\",\n \"loadingMore\": \"Wczytywanie większej liczby...\"\n}\n","{\n \"loading\": \"Carregando...\",\n \"loadingMore\": \"Carregando mais...\"\n}\n","{\n \"loading\": \"A carregar...\",\n \"loadingMore\": \"A carregar mais...\"\n}\n","{\n \"loading\": \"Se încarcă...\",\n \"loadingMore\": \"Se încarcă mai multe...\"\n}\n","{\n \"loading\": \"Загрузка...\",\n \"loadingMore\": \"Дополнительная загрузка...\"\n}\n","{\n \"loading\": \"Načítava sa...\",\n \"loadingMore\": \"Načítava sa viac...\"\n}\n","{\n \"loading\": \"Nalaganje...\",\n \"loadingMore\": \"Nalaganje več vsebine...\"\n}\n","{\n \"loading\": \"Učitavam...\",\n \"loadingMore\": \"Učitavam još...\"\n}\n","{\n \"loading\": \"Läser in...\",\n \"loadingMore\": \"Läser in mer...\"\n}\n","{\n \"loading\": \"Yükleniyor...\",\n \"loadingMore\": \"Daha fazla yükleniyor...\"\n}\n","{\n \"loading\": \"Завантаження…\",\n \"loadingMore\": \"Завантаження інших об’єктів...\"\n}\n","{\n \"loading\": \"正在加载...\",\n \"loadingMore\": \"正在加载更多...\"\n}\n","{\n \"loading\": \"正在載入\",\n \"loadingMore\": \"正在載入更多…\"\n}\n","/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\nimport {ListState} from '@react-stately/list';\nimport React from 'react';\n\nexport const ListBoxContext = React.createContext<ListState<unknown>>(null);\n","/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\nimport CheckmarkMedium from '@spectrum-icons/ui/CheckmarkMedium';\nimport {classNames, ClearSlots, SlotProvider} from '@react-spectrum/utils';\nimport {FocusRing} from '@react-aria/focus';\nimport {Grid} from '@react-spectrum/layout';\nimport {isFocusVisible, useHover} from '@react-aria/interactions';\nimport {ListBoxContext} from './ListBoxContext';\nimport {mergeProps} from '@react-aria/utils';\nimport {Node} from '@react-types/shared';\nimport React, {useContext, useRef} from 'react';\nimport styles from '@adobe/spectrum-css-temp/components/menu/vars.css';\nimport {Text} from '@react-spectrum/text';\nimport {useOption} from '@react-aria/listbox';\n\ninterface OptionProps<T> {\n item: Node<T>,\n shouldSelectOnPressUp?: boolean,\n shouldFocusOnHover?: boolean,\n shouldUseVirtualFocus?: boolean\n}\n\n/** @private */\nexport function ListBoxOption<T>(props: OptionProps<T>) {\n let {\n item,\n shouldSelectOnPressUp,\n shouldFocusOnHover,\n shouldUseVirtualFocus\n } = props;\n\n let {\n rendered,\n key\n } = item;\n let ElementType: React.ElementType = item.props.href ? 'a' : 'div';\n let state = useContext(ListBoxContext);\n\n let ref = useRef<any>();\n let {optionProps, labelProps, descriptionProps, isSelected, isDisabled, isFocused} = useOption(\n {\n 'aria-label': item['aria-label'],\n key,\n shouldSelectOnPressUp,\n shouldFocusOnHover,\n isVirtualized: true,\n shouldUseVirtualFocus\n },\n state,\n ref\n );\n let {hoverProps, isHovered} = useHover({\n ...props,\n isDisabled\n });\n\n let contents = typeof rendered === 'string'\n ? <Text>{rendered}</Text>\n : rendered;\n\n let isKeyboardModality = isFocusVisible();\n\n return (\n <FocusRing focusRingClass={classNames(styles, 'focus-ring')}>\n <ElementType\n {...mergeProps(optionProps, shouldFocusOnHover ? {} : hoverProps)}\n ref={ref}\n className={classNames(\n styles,\n 'spectrum-Menu-item',\n {\n // If using virtual focus, apply focused styles to the item when the user is interacting with keyboard modality\n 'is-focused': shouldUseVirtualFocus && isFocused && isKeyboardModality,\n 'is-disabled': isDisabled,\n 'is-selected': isSelected,\n 'is-selectable': state.selectionManager.selectionMode !== 'none',\n // When shouldFocusOnHover is false, apply hover styles both when hovered with the mouse.\n // Otherwise, apply hover styles when focused using non-keyboard modality.\n 'is-hovered': (isHovered && !shouldFocusOnHover) || (isFocused && !isKeyboardModality)\n }\n )}>\n <Grid\n UNSAFE_className={\n classNames(\n styles,\n 'spectrum-Menu-itemGrid'\n )\n }>\n <ClearSlots>\n <SlotProvider\n slots={{\n text: {UNSAFE_className: styles['spectrum-Menu-itemLabel'], ...labelProps},\n icon: {size: 'S', UNSAFE_className: styles['spectrum-Menu-icon']},\n description: {UNSAFE_className: styles['spectrum-Menu-description'], ...descriptionProps}\n }}>\n {contents}\n {isSelected &&\n <CheckmarkMedium\n slot=\"checkmark\"\n UNSAFE_className={\n classNames(\n styles,\n 'spectrum-Menu-checkmark'\n )\n } />\n }\n </SlotProvider>\n </ClearSlots>\n </Grid>\n </ElementType>\n </FocusRing>\n );\n}\n","/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\nimport {classNames} from '@react-spectrum/utils';\nimport {LayoutInfo} from '@react-stately/virtualizer';\nimport {layoutInfoToStyle, useVirtualizerItem, VirtualizerItemOptions} from '@react-aria/virtualizer';\nimport {ListBoxContext} from './ListBoxContext';\nimport {Node} from '@react-types/shared';\nimport React, {Fragment, ReactNode, useContext, useRef} from 'react';\nimport styles from '@adobe/spectrum-css-temp/components/menu/vars.css';\nimport {useListBoxSection} from '@react-aria/listbox';\nimport {useLocale} from '@react-aria/i18n';\n\ninterface ListBoxSectionProps<T> extends Omit<VirtualizerItemOptions, 'ref'> {\n headerLayoutInfo: LayoutInfo,\n item: Node<T>,\n children?: ReactNode\n}\n\n/** @private */\nexport function ListBoxSection<T>(props: ListBoxSectionProps<T>) {\n let {children, layoutInfo, headerLayoutInfo, virtualizer, item} = props;\n let {headingProps, groupProps} = useListBoxSection({\n heading: item.rendered,\n 'aria-label': item['aria-label']\n });\n\n let headerRef = useRef();\n useVirtualizerItem({\n layoutInfo: headerLayoutInfo,\n virtualizer,\n ref: headerRef\n });\n\n let {direction} = useLocale();\n let state = useContext(ListBoxContext);\n\n return (\n <Fragment>\n <div role=\"presentation\" ref={headerRef} style={layoutInfoToStyle(headerLayoutInfo, direction)}>\n {item.key !== state.collection.getFirstKey() &&\n <div\n role=\"presentation\"\n className={classNames(\n styles,\n 'spectrum-Menu-divider'\n )} />\n }\n {item.rendered &&\n <div\n {...headingProps}\n className={\n classNames(\n styles,\n 'spectrum-Menu-sectionHeading'\n )\n }>\n {item.rendered}\n </div>\n }\n </div>\n <div\n {...groupProps}\n style={layoutInfoToStyle(layoutInfo, direction)}\n className={\n classNames(\n styles,\n 'spectrum-Menu'\n )\n }>\n {children}\n </div>\n </Fragment>\n );\n}\n"],"names":[],"version":3,"file":"main.js.map"}
|
|
1
|
+
{"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;;;;;;;;;CAUC,GAED,0CAA0C;ACZ1C;;;;;;;;;;ACAA;;;;;;;;;;CAUC;;;;;AEVD,4BAAiB;IAAG,WAAW,CAAC,iFAAe,CAAC;IAC9C,eAAe,CAAC,8GAAoB,CAAC;AACvC;;;;ACFA,4BAAiB;IAAG,WAAW,CAAC,kEAAY,CAAC;IAC3C,eAAe,CAAC,uGAAmB,CAAC;AACtC;;;;ACFA,4BAAiB;IAAG,WAAW,CAAC,0BAAW,CAAC;IAC1C,eAAe,CAAC,2CAAmB,CAAC;AACtC;;;;ACFA,4BAAiB;IAAG,WAAW,CAAC,eAAY,CAAC;IAC3C,eAAe,CAAC,qBAAkB,CAAC;AACrC;;;;ACFA,4BAAiB;IAAG,WAAW,CAAC,QAAQ,CAAC;IACvC,eAAe,CAAC,cAAc,CAAC;AACjC;;;;ACFA,4BAAiB;IAAG,WAAW,CAAC,oDAAU,CAAC;IACzC,eAAe,CAAC,yIAAuB,CAAC;AAC1C;;;;ACFA,4BAAiB;IAAG,WAAW,CAAC,eAAQ,CAAC;IACvC,eAAe,CAAC,oBAAa,CAAC;AAChC;;;;ACFA,4BAAiB;IAAG,WAAW,CAAC,gBAAS,CAAC;IACxC,eAAe,CAAC,uBAAa,CAAC;AAChC;;;;ACFA,4BAAiB;IAAG,WAAW,CAAC,YAAY,CAAC;IAC3C,eAAe,CAAC,eAAe,CAAC;AAClC;;;;ACFA,4BAAiB;IAAG,WAAW,CAAC,gBAAS,CAAC;IACxC,eAAe,CAAC,4BAAe,CAAC;AAClC;;;;ACFA,4BAAiB;IA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YACZ,iBAAA;YACA,MAAK;YACL,cAAY,MAAM,UAAU,CAAC,IAAI,GAAG,IAAI,gBAAgB,MAAM,CAAC,iBAAiB,gBAAgB,MAAM,CAAC;YACvG,kBAAkB,CAAA,GAAA,oCAAS,EAAE,CAAA,GAAA,gEAAK,GAAG;;aAGtC,IAAI,SAAS,eAAe;YACjC,IAAI,aAAa,MAAM,gBAAgB,GAAG,MAAM,gBAAgB,KAAK;YACrE,IAAI,cAAc,MAChB,OAAO;YAGT,qBACE,0DAAC;gBACC,uEAAuE;gBACvE,iEAAiE;gBACjE,MAAK;eACJ;QAGP;IACF;AAKV;AAEA,wFAAwF;AACxF,2GAA2G;AAC3G,MAAM,0DAAe,CAAA,GAAA,sCAAI,EAAE,UAAU,CAAC;;CDjLrC;;;;AASD,SAAS,8BAA0B,KAA8B,EAAE,GAA2B;IAC5F,IAAI,QAAQ,CAAA,GAAA,oCAAW,EAAE;IACzB,IAAI,SAAS,CAAA,GAAA,yCAAe,EAAE,OAAO,MAAM,SAAS;IACpD,IAAI,SAAS,CAAA,GAAA,mCAAQ,EAAE;IAEvB,qBACE,0DAAC,CAAA,GAAA,yCAAU;QACR,GAAG,KAAK;QACT,KAAK;QACL,OAAO;QACP,QAAQ;;AAEd;AAEA,wFAAwF;AACxF,2GAA2G;AAG3G;;CAEC,GACD,MAAM,0DAAW,CAAA,GAAA,sCAAI,EAAE,UAAU,CAAC;","sources":["packages/@react-spectrum/listbox/src/index.ts","packages/@react-spectrum/listbox/src/ListBox.tsx","packages/@react-spectrum/listbox/src/ListBoxBase.tsx","packages/@react-spectrum/listbox/src/*.js","packages/@react-spectrum/listbox/intl/ar-AE.json","packages/@react-spectrum/listbox/intl/bg-BG.json","packages/@react-spectrum/listbox/intl/cs-CZ.json","packages/@react-spectrum/listbox/intl/da-DK.json","packages/@react-spectrum/listbox/intl/de-DE.json","packages/@react-spectrum/listbox/intl/el-GR.json","packages/@react-spectrum/listbox/intl/en-US.json","packages/@react-spectrum/listbox/intl/es-ES.json","packages/@react-spectrum/listbox/intl/et-EE.json","packages/@react-spectrum/listbox/intl/fi-FI.json","packages/@react-spectrum/listbox/intl/fr-FR.json","packages/@react-spectrum/listbox/intl/he-IL.json","packages/@react-spectrum/listbox/intl/hr-HR.json","packages/@react-spectrum/listbox/intl/hu-HU.json","packages/@react-spectrum/listbox/intl/it-IT.json","packages/@react-spectrum/listbox/intl/ja-JP.json","packages/@react-spectrum/listbox/intl/ko-KR.json","packages/@react-spectrum/listbox/intl/lt-LT.json","packages/@react-spectrum/listbox/intl/lv-LV.json","packages/@react-spectrum/listbox/intl/nb-NO.json","packages/@react-spectrum/listbox/intl/nl-NL.json","packages/@react-spectrum/listbox/intl/pl-PL.json","packages/@react-spectrum/listbox/intl/pt-BR.json","packages/@react-spectrum/listbox/intl/pt-PT.json","packages/@react-spectrum/listbox/intl/ro-RO.json","packages/@react-spectrum/listbox/intl/ru-RU.json","packages/@react-spectrum/listbox/intl/sk-SK.json","packages/@react-spectrum/listbox/intl/sl-SI.json","packages/@react-spectrum/listbox/intl/sr-SP.json","packages/@react-spectrum/listbox/intl/sv-SE.json","packages/@react-spectrum/listbox/intl/tr-TR.json","packages/@react-spectrum/listbox/intl/uk-UA.json","packages/@react-spectrum/listbox/intl/zh-CN.json","packages/@react-spectrum/listbox/intl/zh-TW.json","packages/@react-spectrum/listbox/src/ListBoxContext.ts","packages/@react-spectrum/listbox/src/ListBoxOption.tsx","packages/@adobe/spectrum-css-temp/components/menu/vars.css","packages/@react-spectrum/listbox/src/ListBoxSection.tsx"],"sourcesContent":["/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\n/// <reference types=\"css-module-types\" />\n\nexport {ListBox} from './ListBox';\nexport {useListBoxLayout, ListBoxBase} from './ListBoxBase';\nexport {Item, Section} from '@react-stately/collections';\nexport type {SpectrumListBoxProps} from '@react-types/listbox';\n","/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\nimport {DOMRef} from '@react-types/shared';\nimport {ListBoxBase, useListBoxLayout} from './ListBoxBase';\nimport React, {ReactElement} from 'react';\nimport {SpectrumListBoxProps} from '@react-types/listbox';\nimport {useDOMRef} from '@react-spectrum/utils';\nimport {useListState} from '@react-stately/list';\n\nfunction ListBox<T extends object>(props: SpectrumListBoxProps<T>, ref: DOMRef<HTMLDivElement>) {\n let state = useListState(props);\n let layout = useListBoxLayout(state, props.isLoading);\n let domRef = useDOMRef(ref);\n\n return (\n <ListBoxBase\n {...props}\n ref={domRef}\n state={state}\n layout={layout} />\n );\n}\n\n// forwardRef doesn't support generic parameters, so cast the result to the correct type\n// https://stackoverflow.com/questions/58469229/react-with-typescript-generics-while-using-react-forwardref\n\n\n/**\n * A list of options that can allow selection of one or more.\n */\nconst _ListBox = React.forwardRef(ListBox) as <T>(props: SpectrumListBoxProps<T> & {ref?: DOMRef<HTMLDivElement>}) => ReactElement;\nexport {_ListBox as ListBox};\n","/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\nimport {AriaLabelingProps, DOMProps, FocusStrategy, Node, StyleProps} from '@react-types/shared';\nimport {AriaListBoxOptions, useListBox} from '@react-aria/listbox';\nimport {classNames, useStyleProps} from '@react-spectrum/utils';\nimport {FocusScope} from '@react-aria/focus';\n// @ts-ignore\nimport intlMessages from '../intl/*.json';\nimport {ListBoxContext} from './ListBoxContext';\nimport {ListBoxOption} from './ListBoxOption';\nimport {ListBoxSection} from './ListBoxSection';\nimport {ListLayout} from '@react-stately/layout';\nimport {ListState} from '@react-stately/list';\nimport {mergeProps, useLayoutEffect} from '@react-aria/utils';\nimport {ProgressCircle} from '@react-spectrum/progress';\nimport React, {HTMLAttributes, ReactElement, ReactNode, RefObject, useMemo} from 'react';\nimport {ReusableView} from '@react-stately/virtualizer';\nimport styles from '@adobe/spectrum-css-temp/components/menu/vars.css';\nimport {useCollator, useLocalizedStringFormatter} from '@react-aria/i18n';\nimport {useProvider} from '@react-spectrum/provider';\nimport {Virtualizer, VirtualizerItem} from '@react-aria/virtualizer';\n\ninterface ListBoxBaseProps<T> extends AriaListBoxOptions<T>, DOMProps, AriaLabelingProps, StyleProps {\n layout: ListLayout<T>,\n state: ListState<T>,\n autoFocus?: boolean | FocusStrategy,\n shouldFocusWrap?: boolean,\n shouldSelectOnPressUp?: boolean,\n focusOnPointerEnter?: boolean,\n domProps?: HTMLAttributes<HTMLElement>,\n disallowEmptySelection?: boolean,\n shouldUseVirtualFocus?: boolean,\n transitionDuration?: number,\n isLoading?: boolean,\n onLoadMore?: () => void,\n renderEmptyState?: () => ReactNode,\n onScroll?: () => void\n}\n\n/** @private */\nexport function useListBoxLayout<T>(state: ListState<T>, isLoading: boolean): ListLayout<T> {\n let {scale} = useProvider();\n let collator = useCollator({usage: 'search', sensitivity: 'base'});\n let layout = useMemo(() =>\n new ListLayout<T>({\n estimatedRowHeight: scale === 'large' ? 48 : 32,\n estimatedHeadingHeight: scale === 'large' ? 33 : 26,\n padding: scale === 'large' ? 5 : 4, // TODO: get from DNA\n loaderHeight: 40,\n placeholderHeight: scale === 'large' ? 48 : 32,\n collator\n })\n , [collator, scale]);\n\n layout.collection = state.collection;\n layout.disabledKeys = state.disabledKeys;\n\n useLayoutEffect(() => {\n // Sync loading state into the layout.\n if (layout.isLoading !== isLoading) {\n layout.isLoading = isLoading;\n layout.virtualizer?.relayoutNow();\n }\n }, [layout, isLoading]);\n return layout;\n}\n\n/** @private */\nfunction ListBoxBase<T>(props: ListBoxBaseProps<T>, ref: RefObject<HTMLDivElement>) {\n let {layout, state, shouldSelectOnPressUp, focusOnPointerEnter, shouldUseVirtualFocus, domProps = {}, transitionDuration = 0, onScroll} = props;\n let {listBoxProps} = useListBox({\n ...props,\n keyboardDelegate: layout,\n isVirtualized: true\n }, state, ref);\n let {styleProps} = useStyleProps(props);\n let stringFormatter = useLocalizedStringFormatter(intlMessages);\n\n // This overrides collection view's renderWrapper to support heirarchy of items in sections.\n // The header is extracted from the children so it can receive ARIA labeling properties.\n type View = ReusableView<Node<T>, ReactNode>;\n let renderWrapper = (parent: View, reusableView: View, children: View[], renderChildren: (views: View[]) => ReactElement[]) => {\n if (reusableView.viewType === 'section') {\n return (\n <ListBoxSection\n key={reusableView.key}\n item={reusableView.content}\n layoutInfo={reusableView.layoutInfo}\n virtualizer={reusableView.virtualizer}\n headerLayoutInfo={children.find(c => c.viewType === 'header').layoutInfo}>\n {renderChildren(children.filter(c => c.viewType === 'item'))}\n </ListBoxSection>\n );\n }\n\n return (\n <VirtualizerItem\n key={reusableView.key}\n layoutInfo={reusableView.layoutInfo}\n virtualizer={reusableView.virtualizer}\n parent={parent?.layoutInfo}>\n {reusableView.rendered}\n </VirtualizerItem>\n );\n };\n\n return (\n <ListBoxContext.Provider value={state}>\n <FocusScope>\n <Virtualizer\n {...styleProps}\n {...mergeProps(listBoxProps, domProps)}\n ref={ref}\n focusedKey={state.selectionManager.focusedKey}\n autoFocus={!!props.autoFocus}\n sizeToFit=\"height\"\n scrollDirection=\"vertical\"\n className={\n classNames(\n styles,\n 'spectrum-Menu',\n styleProps.className\n )\n }\n layout={layout}\n collection={state.collection}\n renderWrapper={renderWrapper}\n transitionDuration={transitionDuration}\n isLoading={props.isLoading}\n onLoadMore={props.onLoadMore}\n shouldUseVirtualFocus={shouldUseVirtualFocus}\n onScroll={onScroll}>\n {(type, item: Node<T>) => {\n if (type === 'item') {\n return (\n <ListBoxOption\n item={item}\n shouldSelectOnPressUp={shouldSelectOnPressUp}\n shouldFocusOnHover={focusOnPointerEnter}\n shouldUseVirtualFocus={shouldUseVirtualFocus} />\n );\n } else if (type === 'loader') {\n return (\n // aria-selected isn't needed here since this option is not selectable.\n // eslint-disable-next-line jsx-a11y/role-has-required-aria-props\n <div role=\"option\" style={{display: 'flex', alignItems: 'center', justifyContent: 'center', height: '100%'}}>\n <ProgressCircle\n isIndeterminate\n size=\"S\"\n aria-label={state.collection.size > 0 ? stringFormatter.format('loadingMore') : stringFormatter.format('loading')}\n UNSAFE_className={classNames(styles, 'spectrum-Dropdown-progressCircle')} />\n </div>\n );\n } else if (type === 'placeholder') {\n let emptyState = props.renderEmptyState ? props.renderEmptyState() : null;\n if (emptyState == null) {\n return null;\n }\n\n return (\n <div\n // aria-selected isn't needed here since this option is not selectable.\n // eslint-disable-next-line jsx-a11y/role-has-required-aria-props\n role=\"option\">\n {emptyState}\n </div>\n );\n }\n }}\n </Virtualizer>\n </FocusScope>\n </ListBoxContext.Provider>\n );\n}\n\n// forwardRef doesn't support generic parameters, so cast the result to the correct type\n// https://stackoverflow.com/questions/58469229/react-with-typescript-generics-while-using-react-forwardref\nconst _ListBoxBase = React.forwardRef(ListBoxBase) as <T>(props: ListBoxBaseProps<T> & {ref?: RefObject<HTMLDivElement>}) => ReactElement;\nexport {_ListBoxBase as ListBoxBase};\n","const _temp0 = require(\"../intl/ar-AE.json\");\nconst _temp1 = require(\"../intl/bg-BG.json\");\nconst _temp2 = require(\"../intl/cs-CZ.json\");\nconst _temp3 = require(\"../intl/da-DK.json\");\nconst _temp4 = require(\"../intl/de-DE.json\");\nconst _temp5 = require(\"../intl/el-GR.json\");\nconst _temp6 = require(\"../intl/en-US.json\");\nconst _temp7 = require(\"../intl/es-ES.json\");\nconst _temp8 = require(\"../intl/et-EE.json\");\nconst _temp9 = require(\"../intl/fi-FI.json\");\nconst _temp10 = require(\"../intl/fr-FR.json\");\nconst _temp11 = require(\"../intl/he-IL.json\");\nconst _temp12 = require(\"../intl/hr-HR.json\");\nconst _temp13 = require(\"../intl/hu-HU.json\");\nconst _temp14 = require(\"../intl/it-IT.json\");\nconst _temp15 = require(\"../intl/ja-JP.json\");\nconst _temp16 = require(\"../intl/ko-KR.json\");\nconst _temp17 = require(\"../intl/lt-LT.json\");\nconst _temp18 = require(\"../intl/lv-LV.json\");\nconst _temp19 = require(\"../intl/nb-NO.json\");\nconst _temp20 = require(\"../intl/nl-NL.json\");\nconst _temp21 = require(\"../intl/pl-PL.json\");\nconst _temp22 = require(\"../intl/pt-BR.json\");\nconst _temp23 = require(\"../intl/pt-PT.json\");\nconst _temp24 = require(\"../intl/ro-RO.json\");\nconst _temp25 = require(\"../intl/ru-RU.json\");\nconst _temp26 = require(\"../intl/sk-SK.json\");\nconst _temp27 = require(\"../intl/sl-SI.json\");\nconst _temp28 = require(\"../intl/sr-SP.json\");\nconst _temp29 = require(\"../intl/sv-SE.json\");\nconst _temp30 = require(\"../intl/tr-TR.json\");\nconst _temp31 = require(\"../intl/uk-UA.json\");\nconst _temp32 = require(\"../intl/zh-CN.json\");\nconst _temp33 = require(\"../intl/zh-TW.json\");\nmodule.exports = {\n \"ar-AE\": _temp0,\n \"bg-BG\": _temp1,\n \"cs-CZ\": _temp2,\n \"da-DK\": _temp3,\n \"de-DE\": _temp4,\n \"el-GR\": _temp5,\n \"en-US\": _temp6,\n \"es-ES\": _temp7,\n \"et-EE\": _temp8,\n \"fi-FI\": _temp9,\n \"fr-FR\": _temp10,\n \"he-IL\": _temp11,\n \"hr-HR\": _temp12,\n \"hu-HU\": _temp13,\n \"it-IT\": _temp14,\n \"ja-JP\": _temp15,\n \"ko-KR\": _temp16,\n \"lt-LT\": _temp17,\n \"lv-LV\": _temp18,\n \"nb-NO\": _temp19,\n \"nl-NL\": _temp20,\n \"pl-PL\": _temp21,\n \"pt-BR\": _temp22,\n \"pt-PT\": _temp23,\n \"ro-RO\": _temp24,\n \"ru-RU\": _temp25,\n \"sk-SK\": _temp26,\n \"sl-SI\": _temp27,\n \"sr-SP\": _temp28,\n \"sv-SE\": _temp29,\n \"tr-TR\": _temp30,\n \"uk-UA\": _temp31,\n \"zh-CN\": _temp32,\n \"zh-TW\": _temp33\n}","{\n \"loading\": \"جارٍ التحميل...\",\n \"loadingMore\": \"جارٍ تحميل المزيد...\"\n}\n","{\n \"loading\": \"Зареждане...\",\n \"loadingMore\": \"Зареждане на още...\"\n}\n","{\n \"loading\": \"Načítání...\",\n \"loadingMore\": \"Načítání dalších...\"\n}\n","{\n \"loading\": \"Indlæser ...\",\n \"loadingMore\": \"Indlæser flere ...\"\n}\n","{\n \"loading\": \"Laden...\",\n \"loadingMore\": \"Mehr laden ...\"\n}\n","{\n \"loading\": \"Φόρτωση...\",\n \"loadingMore\": \"Φόρτωση περισσότερων...\"\n}\n","{\n \"loading\": \"Loading…\",\n \"loadingMore\": \"Loading more…\"\n}\n","{\n \"loading\": \"Cargando…\",\n \"loadingMore\": \"Cargando más…\"\n}\n","{\n \"loading\": \"Laadimine...\",\n \"loadingMore\": \"Laadi rohkem...\"\n}\n","{\n \"loading\": \"Ladataan…\",\n \"loadingMore\": \"Ladataan lisää…\"\n}\n","{\n \"loading\": \"Chargement...\",\n \"loadingMore\": \"Chargement supplémentaire...\"\n}\n","{\n \"loading\": \"טוען...\",\n \"loadingMore\": \"טוען עוד...\"\n}\n","{\n \"loading\": \"Učitavam...\",\n \"loadingMore\": \"Učitavam još...\"\n}\n","{\n \"loading\": \"Betöltés folyamatban…\",\n \"loadingMore\": \"Továbbiak betöltése folyamatban…\"\n}\n","{\n \"loading\": \"Caricamento...\",\n \"loadingMore\": \"Caricamento altri...\"\n}\n","{\n \"loading\": \"読み込み中...\",\n \"loadingMore\": \"さらに読み込み中...\"\n}\n","{\n \"loading\": \"로드 중\",\n \"loadingMore\": \"추가 로드 중\"\n}\n","{\n \"loading\": \"Įkeliama...\",\n \"loadingMore\": \"Įkeliama daugiau...\"\n}\n","{\n \"loading\": \"Notiek ielāde...\",\n \"loadingMore\": \"Tiek ielādēts vēl...\"\n}\n","{\n \"loading\": \"Laster inn ...\",\n \"loadingMore\": \"Laster inn flere ...\"\n}\n","{\n \"loading\": \"Laden...\",\n \"loadingMore\": \"Meer laden...\"\n}\n","{\n \"loading\": \"Ładowanie...\",\n \"loadingMore\": \"Wczytywanie większej liczby...\"\n}\n","{\n \"loading\": \"Carregando...\",\n \"loadingMore\": \"Carregando mais...\"\n}\n","{\n \"loading\": \"A carregar...\",\n \"loadingMore\": \"A carregar mais...\"\n}\n","{\n \"loading\": \"Se încarcă...\",\n \"loadingMore\": \"Se încarcă mai multe...\"\n}\n","{\n \"loading\": \"Загрузка...\",\n \"loadingMore\": \"Дополнительная загрузка...\"\n}\n","{\n \"loading\": \"Načítava sa...\",\n \"loadingMore\": \"Načítava sa viac...\"\n}\n","{\n \"loading\": \"Nalaganje...\",\n \"loadingMore\": \"Nalaganje več vsebine...\"\n}\n","{\n \"loading\": \"Učitavam...\",\n \"loadingMore\": \"Učitavam još...\"\n}\n","{\n \"loading\": \"Läser in...\",\n \"loadingMore\": \"Läser in mer...\"\n}\n","{\n \"loading\": \"Yükleniyor...\",\n \"loadingMore\": \"Daha fazla yükleniyor...\"\n}\n","{\n \"loading\": \"Завантаження…\",\n \"loadingMore\": \"Завантаження інших об’єктів...\"\n}\n","{\n \"loading\": \"正在加载...\",\n \"loadingMore\": \"正在加载更多...\"\n}\n","{\n \"loading\": \"正在載入\",\n \"loadingMore\": \"正在載入更多…\"\n}\n","/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\nimport {ListState} from '@react-stately/list';\nimport React from 'react';\n\nexport const ListBoxContext = React.createContext<ListState<unknown>>(null);\n","/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\nimport CheckmarkMedium from '@spectrum-icons/ui/CheckmarkMedium';\nimport {classNames, ClearSlots, SlotProvider} from '@react-spectrum/utils';\nimport {FocusRing} from '@react-aria/focus';\nimport {Grid} from '@react-spectrum/layout';\nimport {isFocusVisible, useHover} from '@react-aria/interactions';\nimport {ListBoxContext} from './ListBoxContext';\nimport {mergeProps} from '@react-aria/utils';\nimport {Node} from '@react-types/shared';\nimport React, {useContext, useRef} from 'react';\nimport styles from '@adobe/spectrum-css-temp/components/menu/vars.css';\nimport {Text} from '@react-spectrum/text';\nimport {useOption} from '@react-aria/listbox';\n\ninterface OptionProps<T> {\n item: Node<T>,\n shouldSelectOnPressUp?: boolean,\n shouldFocusOnHover?: boolean,\n shouldUseVirtualFocus?: boolean\n}\n\n/** @private */\nexport function ListBoxOption<T>(props: OptionProps<T>) {\n let {\n item,\n shouldSelectOnPressUp,\n shouldFocusOnHover,\n shouldUseVirtualFocus\n } = props;\n\n let {\n rendered,\n key\n } = item;\n let ElementType: React.ElementType = item.props.href ? 'a' : 'div';\n let state = useContext(ListBoxContext);\n\n let ref = useRef<any>();\n let {optionProps, labelProps, descriptionProps, isSelected, isDisabled, isFocused} = useOption(\n {\n 'aria-label': item['aria-label'],\n key,\n shouldSelectOnPressUp,\n shouldFocusOnHover,\n isVirtualized: true,\n shouldUseVirtualFocus\n },\n state,\n ref\n );\n let {hoverProps, isHovered} = useHover({\n ...props,\n isDisabled\n });\n\n let contents = typeof rendered === 'string'\n ? <Text>{rendered}</Text>\n : rendered;\n\n let isKeyboardModality = isFocusVisible();\n\n return (\n <FocusRing focusRingClass={classNames(styles, 'focus-ring')}>\n <ElementType\n {...mergeProps(optionProps, shouldFocusOnHover ? {} : hoverProps)}\n ref={ref}\n className={classNames(\n styles,\n 'spectrum-Menu-item',\n {\n // If using virtual focus, apply focused styles to the item when the user is interacting with keyboard modality\n 'is-focused': shouldUseVirtualFocus && isFocused && isKeyboardModality,\n 'is-disabled': isDisabled,\n 'is-selected': isSelected,\n 'is-selectable': state.selectionManager.selectionMode !== 'none',\n // When shouldFocusOnHover is false, apply hover styles both when hovered with the mouse.\n // Otherwise, apply hover styles when focused using non-keyboard modality.\n 'is-hovered': (isHovered && !shouldFocusOnHover) || (isFocused && !isKeyboardModality)\n }\n )}>\n <Grid\n UNSAFE_className={\n classNames(\n styles,\n 'spectrum-Menu-itemGrid'\n )\n }>\n <ClearSlots>\n <SlotProvider\n slots={{\n text: {UNSAFE_className: styles['spectrum-Menu-itemLabel'], ...labelProps},\n icon: {size: 'S', UNSAFE_className: styles['spectrum-Menu-icon']},\n description: {UNSAFE_className: styles['spectrum-Menu-description'], ...descriptionProps}\n }}>\n {contents}\n {isSelected &&\n <CheckmarkMedium\n slot=\"checkmark\"\n UNSAFE_className={\n classNames(\n styles,\n 'spectrum-Menu-checkmark'\n )\n } />\n }\n </SlotProvider>\n </ClearSlots>\n </Grid>\n </ElementType>\n </FocusRing>\n );\n}\n","/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\n@import './index.css';\n@import './skin.css';\n","/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\nimport {classNames} from '@react-spectrum/utils';\nimport {LayoutInfo} from '@react-stately/virtualizer';\nimport {layoutInfoToStyle, useVirtualizerItem, VirtualizerItemOptions} from '@react-aria/virtualizer';\nimport {ListBoxContext} from './ListBoxContext';\nimport {Node} from '@react-types/shared';\nimport React, {Fragment, ReactNode, useContext, useRef} from 'react';\nimport styles from '@adobe/spectrum-css-temp/components/menu/vars.css';\nimport {useListBoxSection} from '@react-aria/listbox';\nimport {useLocale} from '@react-aria/i18n';\n\ninterface ListBoxSectionProps<T> extends Omit<VirtualizerItemOptions, 'ref'> {\n headerLayoutInfo: LayoutInfo,\n item: Node<T>,\n children?: ReactNode\n}\n\n/** @private */\nexport function ListBoxSection<T>(props: ListBoxSectionProps<T>) {\n let {children, layoutInfo, headerLayoutInfo, virtualizer, item} = props;\n let {headingProps, groupProps} = useListBoxSection({\n heading: item.rendered,\n 'aria-label': item['aria-label']\n });\n\n let headerRef = useRef();\n useVirtualizerItem({\n layoutInfo: headerLayoutInfo,\n virtualizer,\n ref: headerRef\n });\n\n let {direction} = useLocale();\n let state = useContext(ListBoxContext);\n\n return (\n <Fragment>\n <div role=\"presentation\" ref={headerRef} style={layoutInfoToStyle(headerLayoutInfo, direction)}>\n {item.key !== state.collection.getFirstKey() &&\n <div\n role=\"presentation\"\n className={classNames(\n styles,\n 'spectrum-Menu-divider'\n )} />\n }\n {item.rendered &&\n <div\n {...headingProps}\n className={\n classNames(\n styles,\n 'spectrum-Menu-sectionHeading'\n )\n }>\n {item.rendered}\n </div>\n }\n </div>\n <div\n {...groupProps}\n style={layoutInfoToStyle(layoutInfo, direction)}\n className={\n classNames(\n styles,\n 'spectrum-Menu'\n )\n }>\n {children}\n </div>\n </Fragment>\n );\n}\n"],"names":[],"version":3,"file":"main.js.map"}
|