@react-spectrum/autocomplete 3.0.0-alpha.10 → 3.0.0-alpha.12
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/main.css +1 -1
- package/dist/main.js +41 -61
- package/dist/main.js.map +1 -1
- package/dist/module.js +41 -61
- package/dist/module.js.map +1 -1
- package/dist/types.d.ts.map +1 -1
- package/package.json +27 -27
- package/src/MobileSearchAutocomplete.tsx +16 -14
- package/src/SearchAutocomplete.tsx +19 -33
- package/src/searchautocomplete.css +11 -4
package/dist/module.js
CHANGED
|
@@ -2,7 +2,6 @@ import "./main.css";
|
|
|
2
2
|
import {Item as $dc667e3abdbeb6b2$re_export$Item, Section as $dc667e3abdbeb6b2$re_export$Section} from "@react-stately/collections";
|
|
3
3
|
import {useIsMobileDevice as $aQREU$useIsMobileDevice, useUnwrapDOMRef as $aQREU$useUnwrapDOMRef, useFocusableRef as $aQREU$useFocusableRef, useResizeObserver as $aQREU$useResizeObserver, classNames as $aQREU$classNames} from "@react-spectrum/utils";
|
|
4
4
|
import {ClearButton as $aQREU$ClearButton} from "@react-spectrum/button";
|
|
5
|
-
import {useOverlayPosition as $aQREU$useOverlayPosition, DismissButton as $aQREU$DismissButton, useOverlayTrigger as $aQREU$useOverlayTrigger} from "@react-aria/overlays";
|
|
6
5
|
import {Field as $aQREU$Field} from "@react-spectrum/label";
|
|
7
6
|
import {FocusRing as $aQREU$FocusRing, useFocusRing as $aQREU$useFocusRing, focusSafely as $aQREU$focusSafely, FocusScope as $aQREU$FocusScope} from "@react-aria/focus";
|
|
8
7
|
import {useListBoxLayout as $aQREU$useListBoxLayout, ListBoxBase as $aQREU$ListBoxBase} from "@react-spectrum/listbox";
|
|
@@ -19,6 +18,7 @@ import {useProviderProps as $aQREU$useProviderProps, useProvider as $aQREU$usePr
|
|
|
19
18
|
import {useSearchAutocomplete as $aQREU$useSearchAutocomplete} from "@react-aria/autocomplete";
|
|
20
19
|
import $aQREU$spectrumiconsuiAlertMedium from "@spectrum-icons/ui/AlertMedium";
|
|
21
20
|
import $aQREU$spectrumiconsuiCheckmarkMedium from "@spectrum-icons/ui/CheckmarkMedium";
|
|
21
|
+
import {useOverlayTrigger as $aQREU$useOverlayTrigger, DismissButton as $aQREU$DismissButton} from "@react-aria/overlays";
|
|
22
22
|
import {useButton as $aQREU$useButton} from "@react-aria/button";
|
|
23
23
|
import {useDialog as $aQREU$useDialog} from "@react-aria/dialog";
|
|
24
24
|
import {useLabel as $aQREU$useLabel} from "@react-aria/label";
|
|
@@ -33,7 +33,6 @@ function $parcel$export(e, n, v, s) {
|
|
|
33
33
|
|
|
34
34
|
|
|
35
35
|
|
|
36
|
-
|
|
37
36
|
var $06f6e8ce74a28744$exports = {};
|
|
38
37
|
var $024cf3aa492e9082$exports = {};
|
|
39
38
|
$024cf3aa492e9082$exports = {
|
|
@@ -399,6 +398,7 @@ $06f6e8ce74a28744$exports = {
|
|
|
399
398
|
var $f6bdc9f20ce7ef93$exports = {};
|
|
400
399
|
|
|
401
400
|
$parcel$export($f6bdc9f20ce7ef93$exports, "no-results", () => $f6bdc9f20ce7ef93$export$5b1939da91820a47, (v) => $f6bdc9f20ce7ef93$export$5b1939da91820a47 = v);
|
|
401
|
+
$parcel$export($f6bdc9f20ce7ef93$exports, "searchautocomplete", () => $f6bdc9f20ce7ef93$export$5096a212edbce2e8, (v) => $f6bdc9f20ce7ef93$export$5096a212edbce2e8 = v);
|
|
402
402
|
$parcel$export($f6bdc9f20ce7ef93$exports, "mobile-searchautocomplete", () => $f6bdc9f20ce7ef93$export$3117ea626976198e, (v) => $f6bdc9f20ce7ef93$export$3117ea626976198e = v);
|
|
403
403
|
$parcel$export($f6bdc9f20ce7ef93$exports, "mobile-input", () => $f6bdc9f20ce7ef93$export$bededa1c0ac414c5, (v) => $f6bdc9f20ce7ef93$export$bededa1c0ac414c5 = v);
|
|
404
404
|
$parcel$export($f6bdc9f20ce7ef93$exports, "mobile-value", () => $f6bdc9f20ce7ef93$export$e32ca2bb9f795355, (v) => $f6bdc9f20ce7ef93$export$e32ca2bb9f795355 = v);
|
|
@@ -408,6 +408,7 @@ $parcel$export($f6bdc9f20ce7ef93$exports, "has-label", () => $f6bdc9f20ce7ef93$e
|
|
|
408
408
|
$parcel$export($f6bdc9f20ce7ef93$exports, "tray-textfield-input", () => $f6bdc9f20ce7ef93$export$feb70b7bc717e2b8, (v) => $f6bdc9f20ce7ef93$export$feb70b7bc717e2b8 = v);
|
|
409
409
|
$parcel$export($f6bdc9f20ce7ef93$exports, "tray-listbox", () => $f6bdc9f20ce7ef93$export$7281dc54d38d4bed, (v) => $f6bdc9f20ce7ef93$export$7281dc54d38d4bed = v);
|
|
410
410
|
var $f6bdc9f20ce7ef93$export$5b1939da91820a47;
|
|
411
|
+
var $f6bdc9f20ce7ef93$export$5096a212edbce2e8;
|
|
411
412
|
var $f6bdc9f20ce7ef93$export$3117ea626976198e;
|
|
412
413
|
var $f6bdc9f20ce7ef93$export$bededa1c0ac414c5;
|
|
413
414
|
var $f6bdc9f20ce7ef93$export$e32ca2bb9f795355;
|
|
@@ -417,6 +418,7 @@ var $f6bdc9f20ce7ef93$export$b8e014ff9ad5e5e2;
|
|
|
417
418
|
var $f6bdc9f20ce7ef93$export$feb70b7bc717e2b8;
|
|
418
419
|
var $f6bdc9f20ce7ef93$export$7281dc54d38d4bed;
|
|
419
420
|
$f6bdc9f20ce7ef93$export$5b1939da91820a47 = "no-results_83bf62";
|
|
421
|
+
$f6bdc9f20ce7ef93$export$5096a212edbce2e8 = "searchautocomplete_83bf62";
|
|
420
422
|
$f6bdc9f20ce7ef93$export$3117ea626976198e = "mobile-searchautocomplete_83bf62";
|
|
421
423
|
$f6bdc9f20ce7ef93$export$bededa1c0ac414c5 = "mobile-input_83bf62";
|
|
422
424
|
$f6bdc9f20ce7ef93$export$e32ca2bb9f795355 = "mobile-value_83bf62";
|
|
@@ -465,10 +467,11 @@ $5589e2270a5c2f51$export$2c8a10299d8b3418 = "spectrum-Textfield_d3c0f3";
|
|
|
465
467
|
var $8fb52a80fe52b1c7$exports = {};
|
|
466
468
|
|
|
467
469
|
$parcel$export($8fb52a80fe52b1c7$exports, "spectrum-InputGroup", () => $8fb52a80fe52b1c7$export$5be359c1227eedcb, (v) => $8fb52a80fe52b1c7$export$5be359c1227eedcb = v);
|
|
470
|
+
$parcel$export($8fb52a80fe52b1c7$exports, "focus-ring", () => $8fb52a80fe52b1c7$export$f39a09f249340e2a, (v) => $8fb52a80fe52b1c7$export$f39a09f249340e2a = v);
|
|
471
|
+
$parcel$export($8fb52a80fe52b1c7$exports, "spectrum-InputGroup--quiet", () => $8fb52a80fe52b1c7$export$ebf265ffc062029b, (v) => $8fb52a80fe52b1c7$export$ebf265ffc062029b = v);
|
|
468
472
|
$parcel$export($8fb52a80fe52b1c7$exports, "spectrum-FieldButton", () => $8fb52a80fe52b1c7$export$a024c99ecf6b5741, (v) => $8fb52a80fe52b1c7$export$a024c99ecf6b5741 = v);
|
|
469
473
|
$parcel$export($8fb52a80fe52b1c7$exports, "is-disabled", () => $8fb52a80fe52b1c7$export$d35bc1e505d1ebbf, (v) => $8fb52a80fe52b1c7$export$d35bc1e505d1ebbf = v);
|
|
470
474
|
$parcel$export($8fb52a80fe52b1c7$exports, "spectrum-InputGroup--invalid", () => $8fb52a80fe52b1c7$export$3b48509739a9cda0, (v) => $8fb52a80fe52b1c7$export$3b48509739a9cda0 = v);
|
|
471
|
-
$parcel$export($8fb52a80fe52b1c7$exports, "spectrum-InputGroup--quiet", () => $8fb52a80fe52b1c7$export$ebf265ffc062029b, (v) => $8fb52a80fe52b1c7$export$ebf265ffc062029b = v);
|
|
472
475
|
$parcel$export($8fb52a80fe52b1c7$exports, "spectrum-InputGroup-field", () => $8fb52a80fe52b1c7$export$ea77459595e26bec, (v) => $8fb52a80fe52b1c7$export$ea77459595e26bec = v);
|
|
473
476
|
$parcel$export($8fb52a80fe52b1c7$exports, "spectrum-InputGroup-input-validationIcon", () => $8fb52a80fe52b1c7$export$f7ab13ee113f4884, (v) => $8fb52a80fe52b1c7$export$f7ab13ee113f4884 = v);
|
|
474
477
|
$parcel$export($8fb52a80fe52b1c7$exports, "spectrum-InputGroup-input-circleLoader", () => $8fb52a80fe52b1c7$export$dcc9e00cdad967fa, (v) => $8fb52a80fe52b1c7$export$dcc9e00cdad967fa = v);
|
|
@@ -483,14 +486,14 @@ $parcel$export($8fb52a80fe52b1c7$exports, "spectrum-Datepicker--rangeDash", () =
|
|
|
483
486
|
$parcel$export($8fb52a80fe52b1c7$exports, "is-focused", () => $8fb52a80fe52b1c7$export$e7dc768d35940237, (v) => $8fb52a80fe52b1c7$export$e7dc768d35940237 = v);
|
|
484
487
|
$parcel$export($8fb52a80fe52b1c7$exports, "spectrum-Datepicker-focusRing", () => $8fb52a80fe52b1c7$export$eb262b15b9261fde, (v) => $8fb52a80fe52b1c7$export$eb262b15b9261fde = v);
|
|
485
488
|
$parcel$export($8fb52a80fe52b1c7$exports, "is-hovered", () => $8fb52a80fe52b1c7$export$b8813cd5d7824ce7, (v) => $8fb52a80fe52b1c7$export$b8813cd5d7824ce7 = v);
|
|
486
|
-
$parcel$export($8fb52a80fe52b1c7$exports, "focus-ring", () => $8fb52a80fe52b1c7$export$f39a09f249340e2a, (v) => $8fb52a80fe52b1c7$export$f39a09f249340e2a = v);
|
|
487
489
|
$parcel$export($8fb52a80fe52b1c7$exports, "is-selected", () => $8fb52a80fe52b1c7$export$1e0fb04f31d3c22a, (v) => $8fb52a80fe52b1c7$export$1e0fb04f31d3c22a = v);
|
|
488
490
|
$parcel$export($8fb52a80fe52b1c7$exports, "spectrum-FieldButton--invalid", () => $8fb52a80fe52b1c7$export$c9f503f672e8a3c1, (v) => $8fb52a80fe52b1c7$export$c9f503f672e8a3c1 = v);
|
|
489
491
|
var $8fb52a80fe52b1c7$export$5be359c1227eedcb;
|
|
492
|
+
var $8fb52a80fe52b1c7$export$f39a09f249340e2a;
|
|
493
|
+
var $8fb52a80fe52b1c7$export$ebf265ffc062029b;
|
|
490
494
|
var $8fb52a80fe52b1c7$export$a024c99ecf6b5741;
|
|
491
495
|
var $8fb52a80fe52b1c7$export$d35bc1e505d1ebbf;
|
|
492
496
|
var $8fb52a80fe52b1c7$export$3b48509739a9cda0;
|
|
493
|
-
var $8fb52a80fe52b1c7$export$ebf265ffc062029b;
|
|
494
497
|
var $8fb52a80fe52b1c7$export$ea77459595e26bec;
|
|
495
498
|
var $8fb52a80fe52b1c7$export$f7ab13ee113f4884;
|
|
496
499
|
var $8fb52a80fe52b1c7$export$dcc9e00cdad967fa;
|
|
@@ -505,14 +508,14 @@ var $8fb52a80fe52b1c7$export$202113e883898dc;
|
|
|
505
508
|
var $8fb52a80fe52b1c7$export$e7dc768d35940237;
|
|
506
509
|
var $8fb52a80fe52b1c7$export$eb262b15b9261fde;
|
|
507
510
|
var $8fb52a80fe52b1c7$export$b8813cd5d7824ce7;
|
|
508
|
-
var $8fb52a80fe52b1c7$export$f39a09f249340e2a;
|
|
509
511
|
var $8fb52a80fe52b1c7$export$1e0fb04f31d3c22a;
|
|
510
512
|
var $8fb52a80fe52b1c7$export$c9f503f672e8a3c1;
|
|
511
513
|
$8fb52a80fe52b1c7$export$5be359c1227eedcb = "spectrum-InputGroup_a0942f";
|
|
514
|
+
$8fb52a80fe52b1c7$export$f39a09f249340e2a = "focus-ring_a0942f";
|
|
515
|
+
$8fb52a80fe52b1c7$export$ebf265ffc062029b = "spectrum-InputGroup--quiet_a0942f";
|
|
512
516
|
$8fb52a80fe52b1c7$export$a024c99ecf6b5741 = "spectrum-FieldButton_a0942f";
|
|
513
517
|
$8fb52a80fe52b1c7$export$d35bc1e505d1ebbf = "is-disabled_a0942f";
|
|
514
518
|
$8fb52a80fe52b1c7$export$3b48509739a9cda0 = "spectrum-InputGroup--invalid_a0942f";
|
|
515
|
-
$8fb52a80fe52b1c7$export$ebf265ffc062029b = "spectrum-InputGroup--quiet_a0942f";
|
|
516
519
|
$8fb52a80fe52b1c7$export$ea77459595e26bec = "spectrum-InputGroup-field_a0942f";
|
|
517
520
|
$8fb52a80fe52b1c7$export$f7ab13ee113f4884 = "spectrum-InputGroup-input-validationIcon_a0942f";
|
|
518
521
|
$8fb52a80fe52b1c7$export$dcc9e00cdad967fa = "spectrum-InputGroup-input-circleLoader_a0942f";
|
|
@@ -527,7 +530,6 @@ $8fb52a80fe52b1c7$export$202113e883898dc = "spectrum-Datepicker--rangeDash_a0942
|
|
|
527
530
|
$8fb52a80fe52b1c7$export$e7dc768d35940237 = "is-focused_a0942f";
|
|
528
531
|
$8fb52a80fe52b1c7$export$eb262b15b9261fde = "spectrum-Datepicker-focusRing_a0942f";
|
|
529
532
|
$8fb52a80fe52b1c7$export$b8813cd5d7824ce7 = "is-hovered_a0942f";
|
|
530
|
-
$8fb52a80fe52b1c7$export$f39a09f249340e2a = "focus-ring_a0942f";
|
|
531
533
|
$8fb52a80fe52b1c7$export$1e0fb04f31d3c22a = "is-selected_a0942f";
|
|
532
534
|
$8fb52a80fe52b1c7$export$c9f503f672e8a3c1 = "spectrum-FieldButton--invalid_a0942f";
|
|
533
535
|
|
|
@@ -537,6 +539,7 @@ var $c14528ddc146317f$exports = {};
|
|
|
537
539
|
|
|
538
540
|
$parcel$export($c14528ddc146317f$exports, "spectrum-Textfield-input", () => $c14528ddc146317f$export$1ac009feb2b0bd0c, (v) => $c14528ddc146317f$export$1ac009feb2b0bd0c = v);
|
|
539
541
|
$parcel$export($c14528ddc146317f$exports, "spectrum-Textfield", () => $c14528ddc146317f$export$2c8a10299d8b3418, (v) => $c14528ddc146317f$export$2c8a10299d8b3418 = v);
|
|
542
|
+
$parcel$export($c14528ddc146317f$exports, "focus-ring", () => $c14528ddc146317f$export$f39a09f249340e2a, (v) => $c14528ddc146317f$export$f39a09f249340e2a = v);
|
|
540
543
|
$parcel$export($c14528ddc146317f$exports, "spectrum-Textfield--quiet", () => $c14528ddc146317f$export$bffd5e3d61a81737, (v) => $c14528ddc146317f$export$bffd5e3d61a81737 = v);
|
|
541
544
|
$parcel$export($c14528ddc146317f$exports, "spectrum-Textfield--multiline", () => $c14528ddc146317f$export$9699f1c538a448a0, (v) => $c14528ddc146317f$export$9699f1c538a448a0 = v);
|
|
542
545
|
$parcel$export($c14528ddc146317f$exports, "is-placeholder", () => $c14528ddc146317f$export$e5b2f5233e4e5194, (v) => $c14528ddc146317f$export$e5b2f5233e4e5194 = v);
|
|
@@ -545,15 +548,16 @@ $parcel$export($c14528ddc146317f$exports, "spectrum-Textfield--valid", () => $c1
|
|
|
545
548
|
$parcel$export($c14528ddc146317f$exports, "spectrum-Textfield--invalid", () => $c14528ddc146317f$export$58e50b10d30123df, (v) => $c14528ddc146317f$export$58e50b10d30123df = v);
|
|
546
549
|
$parcel$export($c14528ddc146317f$exports, "spectrum-Textfield--loadable", () => $c14528ddc146317f$export$14fd30fea6f1348c, (v) => $c14528ddc146317f$export$14fd30fea6f1348c = v);
|
|
547
550
|
$parcel$export($c14528ddc146317f$exports, "spectrum-Textfield-wrapper", () => $c14528ddc146317f$export$dd1165e0e6012973, (v) => $c14528ddc146317f$export$dd1165e0e6012973 = v);
|
|
551
|
+
$parcel$export($c14528ddc146317f$exports, "spectrum-Textfield-wrapper--quiet", () => $c14528ddc146317f$export$9fcb3d6af94a9d12, (v) => $c14528ddc146317f$export$9fcb3d6af94a9d12 = v);
|
|
548
552
|
$parcel$export($c14528ddc146317f$exports, "spectrum-Textfield-validationIcon", () => $c14528ddc146317f$export$cf0ead5b44db0da3, (v) => $c14528ddc146317f$export$cf0ead5b44db0da3 = v);
|
|
549
553
|
$parcel$export($c14528ddc146317f$exports, "spectrum-Textfield-icon", () => $c14528ddc146317f$export$222d1ccd1870be1d, (v) => $c14528ddc146317f$export$222d1ccd1870be1d = v);
|
|
550
554
|
$parcel$export($c14528ddc146317f$exports, "spectrum-Textfield-inputIcon", () => $c14528ddc146317f$export$c1cdcaa5fe76a871, (v) => $c14528ddc146317f$export$c1cdcaa5fe76a871 = v);
|
|
551
555
|
$parcel$export($c14528ddc146317f$exports, "spectrum-Textfield-circleLoader", () => $c14528ddc146317f$export$82a249fb4d6127, (v) => $c14528ddc146317f$export$82a249fb4d6127 = v);
|
|
552
556
|
$parcel$export($c14528ddc146317f$exports, "is-focused", () => $c14528ddc146317f$export$e7dc768d35940237, (v) => $c14528ddc146317f$export$e7dc768d35940237 = v);
|
|
553
|
-
$parcel$export($c14528ddc146317f$exports, "focus-ring", () => $c14528ddc146317f$export$f39a09f249340e2a, (v) => $c14528ddc146317f$export$f39a09f249340e2a = v);
|
|
554
557
|
$parcel$export($c14528ddc146317f$exports, "is-disabled", () => $c14528ddc146317f$export$d35bc1e505d1ebbf, (v) => $c14528ddc146317f$export$d35bc1e505d1ebbf = v);
|
|
555
558
|
var $c14528ddc146317f$export$1ac009feb2b0bd0c;
|
|
556
559
|
var $c14528ddc146317f$export$2c8a10299d8b3418;
|
|
560
|
+
var $c14528ddc146317f$export$f39a09f249340e2a;
|
|
557
561
|
var $c14528ddc146317f$export$bffd5e3d61a81737;
|
|
558
562
|
var $c14528ddc146317f$export$9699f1c538a448a0;
|
|
559
563
|
var $c14528ddc146317f$export$e5b2f5233e4e5194;
|
|
@@ -562,15 +566,16 @@ var $c14528ddc146317f$export$c2abbc3f970170b7;
|
|
|
562
566
|
var $c14528ddc146317f$export$58e50b10d30123df;
|
|
563
567
|
var $c14528ddc146317f$export$14fd30fea6f1348c;
|
|
564
568
|
var $c14528ddc146317f$export$dd1165e0e6012973;
|
|
569
|
+
var $c14528ddc146317f$export$9fcb3d6af94a9d12;
|
|
565
570
|
var $c14528ddc146317f$export$cf0ead5b44db0da3;
|
|
566
571
|
var $c14528ddc146317f$export$222d1ccd1870be1d;
|
|
567
572
|
var $c14528ddc146317f$export$c1cdcaa5fe76a871;
|
|
568
573
|
var $c14528ddc146317f$export$82a249fb4d6127;
|
|
569
574
|
var $c14528ddc146317f$export$e7dc768d35940237;
|
|
570
|
-
var $c14528ddc146317f$export$f39a09f249340e2a;
|
|
571
575
|
var $c14528ddc146317f$export$d35bc1e505d1ebbf;
|
|
572
576
|
$c14528ddc146317f$export$1ac009feb2b0bd0c = "spectrum-Textfield-input_73bc77";
|
|
573
577
|
$c14528ddc146317f$export$2c8a10299d8b3418 = "spectrum-Textfield_73bc77";
|
|
578
|
+
$c14528ddc146317f$export$f39a09f249340e2a = "focus-ring_73bc77";
|
|
574
579
|
$c14528ddc146317f$export$bffd5e3d61a81737 = "spectrum-Textfield--quiet_73bc77";
|
|
575
580
|
$c14528ddc146317f$export$9699f1c538a448a0 = "spectrum-Textfield--multiline_73bc77";
|
|
576
581
|
$c14528ddc146317f$export$e5b2f5233e4e5194 = "is-placeholder_73bc77";
|
|
@@ -579,12 +584,12 @@ $c14528ddc146317f$export$c2abbc3f970170b7 = "spectrum-Textfield--valid_73bc77";
|
|
|
579
584
|
$c14528ddc146317f$export$58e50b10d30123df = "spectrum-Textfield--invalid_73bc77";
|
|
580
585
|
$c14528ddc146317f$export$14fd30fea6f1348c = "spectrum-Textfield--loadable_73bc77";
|
|
581
586
|
$c14528ddc146317f$export$dd1165e0e6012973 = "spectrum-Textfield-wrapper_73bc77";
|
|
587
|
+
$c14528ddc146317f$export$9fcb3d6af94a9d12 = "spectrum-Textfield-wrapper--quiet_73bc77";
|
|
582
588
|
$c14528ddc146317f$export$cf0ead5b44db0da3 = "spectrum-Textfield-validationIcon_73bc77";
|
|
583
589
|
$c14528ddc146317f$export$222d1ccd1870be1d = "spectrum-Textfield-icon_73bc77";
|
|
584
590
|
$c14528ddc146317f$export$c1cdcaa5fe76a871 = "spectrum-Textfield-inputIcon_73bc77";
|
|
585
591
|
$c14528ddc146317f$export$82a249fb4d6127 = "spectrum-Textfield-circleLoader_73bc77";
|
|
586
592
|
$c14528ddc146317f$export$e7dc768d35940237 = "is-focused_73bc77";
|
|
587
|
-
$c14528ddc146317f$export$f39a09f249340e2a = "focus-ring_73bc77";
|
|
588
593
|
$c14528ddc146317f$export$d35bc1e505d1ebbf = "is-disabled_73bc77";
|
|
589
594
|
|
|
590
595
|
|
|
@@ -634,8 +639,6 @@ const $c940f54e16bafef5$export$e7a90f7d6b078162 = /*#__PURE__*/ $aQREU$react.for
|
|
|
634
639
|
$aQREU$setInteractionModality('keyboard');
|
|
635
640
|
}
|
|
636
641
|
};
|
|
637
|
-
let onClose = ()=>state.commit()
|
|
638
|
-
;
|
|
639
642
|
return(/*#__PURE__*/ $aQREU$react.createElement($aQREU$react.Fragment, null, /*#__PURE__*/ $aQREU$react.createElement($aQREU$Field, {
|
|
640
643
|
...props,
|
|
641
644
|
labelProps: labelProps,
|
|
@@ -658,14 +661,12 @@ const $c940f54e16bafef5$export$e7a90f7d6b078162 = /*#__PURE__*/ $aQREU$react.for
|
|
|
658
661
|
,
|
|
659
662
|
onPress: ()=>!isReadOnly && state.open(null, 'manual')
|
|
660
663
|
}, state.inputValue || props.placeholder || '')), /*#__PURE__*/ $aQREU$react.createElement($aQREU$Tray, {
|
|
661
|
-
|
|
662
|
-
onClose: onClose,
|
|
664
|
+
state: state,
|
|
663
665
|
isFixedHeight: true,
|
|
664
|
-
isNonModal: true,
|
|
665
666
|
...overlayProps
|
|
666
667
|
}, /*#__PURE__*/ $aQREU$react.createElement($c940f54e16bafef5$var$SearchAutocompleteTray, {
|
|
667
668
|
...props,
|
|
668
|
-
onClose:
|
|
669
|
+
onClose: state.close,
|
|
669
670
|
overlayProps: overlayProps,
|
|
670
671
|
state: state
|
|
671
672
|
}))));
|
|
@@ -724,21 +725,21 @@ const $c940f54e16bafef5$var$SearchAutocompleteButton = /*#__PURE__*/ $aQREU$reac
|
|
|
724
725
|
className: $aQREU$classNames((/*@__PURE__*/$parcel$interopDefault($8fb52a80fe52b1c7$exports)), 'spectrum-InputGroup', {
|
|
725
726
|
'spectrum-InputGroup--quiet': isQuiet,
|
|
726
727
|
'is-disabled': isDisabled,
|
|
727
|
-
'spectrum-InputGroup--invalid': validationState === 'invalid',
|
|
728
|
+
'spectrum-InputGroup--invalid': validationState === 'invalid' && !isDisabled,
|
|
728
729
|
'is-hovered': isHovered,
|
|
729
730
|
'is-focused': isFocused,
|
|
730
731
|
'focus-ring': isFocusVisible
|
|
731
|
-
}, $aQREU$classNames((/*@__PURE__*/$parcel$interopDefault($f6bdc9f20ce7ef93$exports)), 'mobile-searchautocomplete'), className)
|
|
732
|
+
}, $aQREU$classNames((/*@__PURE__*/$parcel$interopDefault($f6bdc9f20ce7ef93$exports)), 'searchautocomplete', 'mobile-searchautocomplete'), className)
|
|
732
733
|
}, /*#__PURE__*/ $aQREU$react.createElement("div", {
|
|
733
734
|
className: $aQREU$classNames((/*@__PURE__*/$parcel$interopDefault($c14528ddc146317f$exports)), 'spectrum-Textfield', {
|
|
734
|
-
'spectrum-Textfield--invalid': validationState === 'invalid',
|
|
735
|
-
'spectrum-Textfield--valid': validationState === 'valid',
|
|
735
|
+
'spectrum-Textfield--invalid': validationState === 'invalid' && !isDisabled,
|
|
736
|
+
'spectrum-Textfield--valid': validationState === 'valid' && !isDisabled,
|
|
736
737
|
'spectrum-Textfield--quiet': isQuiet
|
|
737
738
|
}, $aQREU$classNames((/*@__PURE__*/$parcel$interopDefault($5589e2270a5c2f51$exports)), 'spectrum-Search', {
|
|
738
739
|
'is-disabled': isDisabled,
|
|
739
740
|
'is-quiet': isQuiet,
|
|
740
|
-
'spectrum-Search--invalid': validationState === 'invalid',
|
|
741
|
-
'spectrum-Search--valid': validationState === 'valid'
|
|
741
|
+
'spectrum-Search--invalid': validationState === 'invalid' && !isDisabled,
|
|
742
|
+
'spectrum-Search--valid': validationState === 'valid' && !isDisabled
|
|
742
743
|
}))
|
|
743
744
|
}, /*#__PURE__*/ $aQREU$react.createElement("div", {
|
|
744
745
|
className: $aQREU$classNames((/*@__PURE__*/$parcel$interopDefault($c14528ddc146317f$exports)), 'spectrum-Textfield-input', {
|
|
@@ -747,13 +748,12 @@ const $c940f54e16bafef5$var$SearchAutocompleteButton = /*#__PURE__*/ $aQREU$reac
|
|
|
747
748
|
'is-placeholder': isPlaceholder,
|
|
748
749
|
'is-disabled': isDisabled,
|
|
749
750
|
'is-quiet': isQuiet,
|
|
750
|
-
'is-focused': isFocused
|
|
751
|
-
|
|
752
|
-
}, $aQREU$classNames((/*@__PURE__*/$parcel$interopDefault($5589e2270a5c2f51$exports)), 'spectrum-Search-input'))
|
|
751
|
+
'is-focused': isFocused
|
|
752
|
+
}, $aQREU$classNames((/*@__PURE__*/$parcel$interopDefault($5589e2270a5c2f51$exports)), 'spectrum-Search-input'), $aQREU$classNames((/*@__PURE__*/$parcel$interopDefault($f6bdc9f20ce7ef93$exports)), 'mobile-input'))
|
|
753
753
|
}, icon, /*#__PURE__*/ $aQREU$react.createElement("span", {
|
|
754
754
|
id: valueId,
|
|
755
755
|
className: $aQREU$classNames((/*@__PURE__*/$parcel$interopDefault($f6bdc9f20ce7ef93$exports)), 'mobile-value')
|
|
756
|
-
}, children)), validationState ? validation : null, (inputValue !== '' || validationState != null) && !isReadOnly && clearButton)));
|
|
756
|
+
}, children)), validationState && !isDisabled ? validation : null, (inputValue !== '' || validationState != null) && !isReadOnly && clearButton)));
|
|
757
757
|
});
|
|
758
758
|
function $c940f54e16bafef5$var$SearchAutocompleteTray(props) {
|
|
759
759
|
let searchIcon = /*#__PURE__*/ $aQREU$react.createElement($aQREU$spectrumiconsuiMagnifier, {
|
|
@@ -891,8 +891,8 @@ function $c940f54e16bafef5$var$SearchAutocompleteTray(props) {
|
|
|
891
891
|
wrapperChildren: (state.inputValue !== '' || loadingState === 'filtering' || validationState != null) && !props.isReadOnly && clearButton,
|
|
892
892
|
icon: icon,
|
|
893
893
|
UNSAFE_className: $aQREU$classNames((/*@__PURE__*/$parcel$interopDefault($5589e2270a5c2f51$exports)), 'spectrum-Search', 'spectrum-Textfield', 'spectrum-Search--loadable', {
|
|
894
|
-
'spectrum-Search--invalid': validationState === 'invalid',
|
|
895
|
-
'spectrum-Search--valid': validationState === 'valid'
|
|
894
|
+
'spectrum-Search--invalid': validationState === 'invalid' && !isDisabled,
|
|
895
|
+
'spectrum-Search--valid': validationState === 'valid' && !isDisabled
|
|
896
896
|
}, $aQREU$classNames((/*@__PURE__*/$parcel$interopDefault($f6bdc9f20ce7ef93$exports)), 'tray-textfield', {
|
|
897
897
|
'has-label': !!props.label
|
|
898
898
|
})),
|
|
@@ -938,6 +938,7 @@ function $c940f54e16bafef5$var$SearchAutocompleteTray(props) {
|
|
|
938
938
|
|
|
939
939
|
|
|
940
940
|
|
|
941
|
+
|
|
941
942
|
function $f3f3b62273a2d260$var$SearchAutocomplete(props, ref) {
|
|
942
943
|
props = $aQREU$useProviderProps(props);
|
|
943
944
|
if (props.placeholder) console.warn('Placeholders are deprecated due to accessibility issues. Please use help text instead.');
|
|
@@ -986,15 +987,6 @@ const $f3f3b62273a2d260$var$SearchAutocompleteBase = /*#__PURE__*/ $aQREU$react.
|
|
|
986
987
|
inputRef: inputRef,
|
|
987
988
|
menuTrigger: menuTrigger
|
|
988
989
|
}, state);
|
|
989
|
-
let { overlayProps: overlayProps , placement: placement , updatePosition: updatePosition } = $aQREU$useOverlayPosition({
|
|
990
|
-
targetRef: inputRef,
|
|
991
|
-
overlayRef: unwrappedPopoverRef,
|
|
992
|
-
scrollRef: listBoxRef,
|
|
993
|
-
placement: `${direction} end`,
|
|
994
|
-
shouldFlip: shouldFlip,
|
|
995
|
-
isOpen: state.isOpen,
|
|
996
|
-
onClose: state.close
|
|
997
|
-
});
|
|
998
990
|
// Measure the width of the inputfield to inform the width of the menu (below).
|
|
999
991
|
let [menuWidth, setMenuWidth] = $aQREU$useState(null);
|
|
1000
992
|
let { scale: scale } = $aQREU$useProvider();
|
|
@@ -1015,19 +1007,7 @@ const $f3f3b62273a2d260$var$SearchAutocompleteBase = /*#__PURE__*/ $aQREU$react.
|
|
|
1015
1007
|
scale,
|
|
1016
1008
|
onResize
|
|
1017
1009
|
]);
|
|
1018
|
-
// Update position once the ListBox has rendered. This ensures that
|
|
1019
|
-
// it flips properly when it doesn't fit in the available space.
|
|
1020
|
-
// TODO: add ResizeObserver to useOverlayPosition so we don't need this.
|
|
1021
|
-
$aQREU$useLayoutEffect(()=>{
|
|
1022
|
-
if (state.isOpen) requestAnimationFrame(()=>{
|
|
1023
|
-
updatePosition();
|
|
1024
|
-
});
|
|
1025
|
-
}, [
|
|
1026
|
-
state.isOpen,
|
|
1027
|
-
updatePosition
|
|
1028
|
-
]);
|
|
1029
1010
|
let style = {
|
|
1030
|
-
...overlayProps.style,
|
|
1031
1011
|
width: isQuiet ? null : menuWidth,
|
|
1032
1012
|
minWidth: isQuiet ? `calc(${menuWidth}px + calc(2 * var(--spectrum-dropdown-quiet-offset)))` : menuWidth
|
|
1033
1013
|
};
|
|
@@ -1043,16 +1023,17 @@ const $f3f3b62273a2d260$var$SearchAutocompleteBase = /*#__PURE__*/ $aQREU$react.
|
|
|
1043
1023
|
inputRef: inputRef,
|
|
1044
1024
|
clearButtonProps: clearButtonProps
|
|
1045
1025
|
})), /*#__PURE__*/ $aQREU$react.createElement($aQREU$Popover, {
|
|
1046
|
-
|
|
1026
|
+
state: state,
|
|
1047
1027
|
UNSAFE_style: style,
|
|
1048
1028
|
UNSAFE_className: $aQREU$classNames((/*@__PURE__*/$parcel$interopDefault($8fb52a80fe52b1c7$exports)), 'spectrum-InputGroup-popover', {
|
|
1049
1029
|
'spectrum-InputGroup-popover--quiet': isQuiet
|
|
1050
1030
|
}),
|
|
1051
1031
|
ref: popoverRef,
|
|
1052
|
-
|
|
1032
|
+
triggerRef: inputRef,
|
|
1033
|
+
placement: `${direction} end`,
|
|
1053
1034
|
hideArrow: true,
|
|
1054
1035
|
isNonModal: true,
|
|
1055
|
-
|
|
1036
|
+
shouldFlip: shouldFlip
|
|
1056
1037
|
}, /*#__PURE__*/ $aQREU$react.createElement($aQREU$ListBoxBase, {
|
|
1057
1038
|
...listBoxProps,
|
|
1058
1039
|
ref: listBoxRef,
|
|
@@ -1066,8 +1047,6 @@ const $f3f3b62273a2d260$var$SearchAutocompleteBase = /*#__PURE__*/ $aQREU$react.
|
|
|
1066
1047
|
isLoading: loadingState === 'loadingMore',
|
|
1067
1048
|
onLoadMore: onLoadMore,
|
|
1068
1049
|
renderEmptyState: ()=>isAsync && /*#__PURE__*/ $aQREU$react.createElement("span", null, stringFormatter.format('noResults'))
|
|
1069
|
-
}), /*#__PURE__*/ $aQREU$react.createElement($aQREU$DismissButton, {
|
|
1070
|
-
onDismiss: ()=>state.close()
|
|
1071
1050
|
}))));
|
|
1072
1051
|
});
|
|
1073
1052
|
const $f3f3b62273a2d260$var$SearchAutocompleteInput = /*#__PURE__*/ $aQREU$react.forwardRef(function SearchAutocompleteInput(props, ref) {
|
|
@@ -1132,18 +1111,18 @@ const $f3f3b62273a2d260$var$SearchAutocompleteInput = /*#__PURE__*/ $aQREU$react
|
|
|
1132
1111
|
className: $aQREU$classNames((/*@__PURE__*/$parcel$interopDefault($8fb52a80fe52b1c7$exports)), 'spectrum-InputGroup', {
|
|
1133
1112
|
'spectrum-InputGroup--quiet': isQuiet,
|
|
1134
1113
|
'is-disabled': isDisabled,
|
|
1135
|
-
'spectrum-InputGroup--invalid': validationState === 'invalid',
|
|
1114
|
+
'spectrum-InputGroup--invalid': validationState === 'invalid' && !isDisabled,
|
|
1136
1115
|
'is-hovered': isHovered
|
|
1137
|
-
}, className)
|
|
1116
|
+
}, $aQREU$classNames((/*@__PURE__*/$parcel$interopDefault($f6bdc9f20ce7ef93$exports)), 'searchautocomplete'), className)
|
|
1138
1117
|
}, /*#__PURE__*/ $aQREU$react.createElement($aQREU$TextFieldBase, {
|
|
1139
1118
|
inputProps: inputProps,
|
|
1140
1119
|
inputRef: inputRef,
|
|
1141
1120
|
UNSAFE_className: $aQREU$classNames((/*@__PURE__*/$parcel$interopDefault($5589e2270a5c2f51$exports)), 'spectrum-Search', 'spectrum-Textfield', {
|
|
1142
1121
|
'is-disabled': isDisabled,
|
|
1143
1122
|
'is-quiet': isQuiet,
|
|
1144
|
-
'spectrum-Search--invalid': validationState === 'invalid',
|
|
1145
|
-
'spectrum-Search--valid': validationState === 'valid'
|
|
1146
|
-
}),
|
|
1123
|
+
'spectrum-Search--invalid': validationState === 'invalid' && !isDisabled,
|
|
1124
|
+
'spectrum-Search--valid': validationState === 'valid' && !isDisabled
|
|
1125
|
+
}, $aQREU$classNames((/*@__PURE__*/$parcel$interopDefault($8fb52a80fe52b1c7$exports)), 'spectrum-InputGroup-field')),
|
|
1147
1126
|
inputClassName: $aQREU$classNames((/*@__PURE__*/$parcel$interopDefault($5589e2270a5c2f51$exports)), 'spectrum-Search-input'),
|
|
1148
1127
|
isDisabled: isDisabled,
|
|
1149
1128
|
isQuiet: isQuiet,
|
|
@@ -1151,7 +1130,8 @@ const $f3f3b62273a2d260$var$SearchAutocompleteInput = /*#__PURE__*/ $aQREU$react
|
|
|
1151
1130
|
isLoading: showLoading && (isOpen || menuTrigger === 'manual' || loadingState === 'loading'),
|
|
1152
1131
|
loadingIndicator: loadingState != null && loadingCircle,
|
|
1153
1132
|
icon: icon,
|
|
1154
|
-
wrapperChildren: inputValue !== '' && !isReadOnly && clearButton
|
|
1133
|
+
wrapperChildren: inputValue !== '' && !isReadOnly && clearButton,
|
|
1134
|
+
disableFocusRing: true
|
|
1155
1135
|
}))));
|
|
1156
1136
|
});
|
|
1157
1137
|
/**
|