@react-aria/overlays 3.0.0-nightly.1662 → 3.0.0-nightly.1673
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.js +115 -83
- package/dist/main.js.map +1 -1
- package/dist/module.js +105 -65
- package/dist/module.js.map +1 -1
- package/dist/types.d.ts.map +1 -1
- package/package.json +11 -11
- package/src/DismissButton.tsx +3 -3
- package/src/index.ts +7 -8
package/dist/main.js
CHANGED
|
@@ -6,31 +6,24 @@ var $6Zb2x$reactdom = require("react-dom");
|
|
|
6
6
|
var $6Zb2x$reactariassr = require("@react-aria/ssr");
|
|
7
7
|
var $6Zb2x$reactariavisuallyhidden = require("@react-aria/visually-hidden");
|
|
8
8
|
|
|
9
|
-
function $parcel$exportWildcard(dest, source) {
|
|
10
|
-
Object.keys(source).forEach(function(key) {
|
|
11
|
-
if (key === 'default' || key === '__esModule' || dest.hasOwnProperty(key)) {
|
|
12
|
-
return;
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
Object.defineProperty(dest, key, {
|
|
16
|
-
enumerable: true,
|
|
17
|
-
get: function get() {
|
|
18
|
-
return source[key];
|
|
19
|
-
}
|
|
20
|
-
});
|
|
21
|
-
});
|
|
22
|
-
|
|
23
|
-
return dest;
|
|
24
|
-
}
|
|
25
9
|
function $parcel$export(e, n, v, s) {
|
|
26
10
|
Object.defineProperty(e, n, {get: v, set: s, enumerable: true, configurable: true});
|
|
27
11
|
}
|
|
28
12
|
function $parcel$interopDefault(a) {
|
|
29
13
|
return a && a.__esModule ? a.default : a;
|
|
30
14
|
}
|
|
31
|
-
var $cd94b4896dd97759$exports = {};
|
|
32
15
|
|
|
33
|
-
$parcel$export(
|
|
16
|
+
$parcel$export(module.exports, "useOverlayPosition", () => $cd94b4896dd97759$export$d39e1813b3bdd0e1);
|
|
17
|
+
$parcel$export(module.exports, "useOverlay", () => $82711f9cb668ecdb$export$ea8f71083e90600f);
|
|
18
|
+
$parcel$export(module.exports, "useOverlayTrigger", () => $b4878eb6316f670a$export$f9d5c8beee7d008d);
|
|
19
|
+
$parcel$export(module.exports, "usePreventScroll", () => $5c2f5cd01815d369$export$ee0f7cc6afcd1c18);
|
|
20
|
+
$parcel$export(module.exports, "ModalProvider", () => $0775ea8ea6a0565e$export$178405afcd8c5eb);
|
|
21
|
+
$parcel$export(module.exports, "useModalProvider", () => $0775ea8ea6a0565e$export$d9aaed4c3ece1bc0);
|
|
22
|
+
$parcel$export(module.exports, "OverlayProvider", () => $0775ea8ea6a0565e$export$bf688221f59024e5);
|
|
23
|
+
$parcel$export(module.exports, "OverlayContainer", () => $0775ea8ea6a0565e$export$b47c3594eab58386);
|
|
24
|
+
$parcel$export(module.exports, "useModal", () => $0775ea8ea6a0565e$export$33ffd74ebf07f060);
|
|
25
|
+
$parcel$export(module.exports, "DismissButton", () => $f69bb3e6457495cc$export$2317d149ed6f78c4);
|
|
26
|
+
$parcel$export(module.exports, "ariaHideOutside", () => $08ef1685902b6011$export$1c3ebcada18427bf);
|
|
34
27
|
const $5935ba4d7da2c103$var$AXIS = {
|
|
35
28
|
top: 'top',
|
|
36
29
|
bottom: 'top',
|
|
@@ -406,9 +399,6 @@ function $cd94b4896dd97759$var$translateRTL(position, direction) {
|
|
|
406
399
|
}
|
|
407
400
|
|
|
408
401
|
|
|
409
|
-
var $82711f9cb668ecdb$exports = {};
|
|
410
|
-
|
|
411
|
-
$parcel$export($82711f9cb668ecdb$exports, "useOverlay", () => $82711f9cb668ecdb$export$ea8f71083e90600f);
|
|
412
402
|
|
|
413
403
|
|
|
414
404
|
const $82711f9cb668ecdb$var$visibleOverlays = [];
|
|
@@ -482,9 +472,6 @@ function $82711f9cb668ecdb$export$ea8f71083e90600f(props, ref) {
|
|
|
482
472
|
}
|
|
483
473
|
|
|
484
474
|
|
|
485
|
-
var $b4878eb6316f670a$exports = {};
|
|
486
|
-
|
|
487
|
-
$parcel$export($b4878eb6316f670a$exports, "useOverlayTrigger", () => $b4878eb6316f670a$export$f9d5c8beee7d008d);
|
|
488
475
|
|
|
489
476
|
|
|
490
477
|
|
|
@@ -518,9 +505,6 @@ function $b4878eb6316f670a$export$f9d5c8beee7d008d(props, state, ref) {
|
|
|
518
505
|
}
|
|
519
506
|
|
|
520
507
|
|
|
521
|
-
var $5c2f5cd01815d369$exports = {};
|
|
522
|
-
|
|
523
|
-
$parcel$export($5c2f5cd01815d369$exports, "usePreventScroll", () => $5c2f5cd01815d369$export$ee0f7cc6afcd1c18);
|
|
524
508
|
|
|
525
509
|
// @ts-ignore
|
|
526
510
|
const $5c2f5cd01815d369$var$visualViewport = typeof window !== 'undefined' && window.visualViewport;
|
|
@@ -709,13 +693,6 @@ function $5c2f5cd01815d369$var$willOpenKeyboard(target) {
|
|
|
709
693
|
}
|
|
710
694
|
|
|
711
695
|
|
|
712
|
-
var $0775ea8ea6a0565e$exports = {};
|
|
713
|
-
|
|
714
|
-
$parcel$export($0775ea8ea6a0565e$exports, "ModalProvider", () => $0775ea8ea6a0565e$export$178405afcd8c5eb);
|
|
715
|
-
$parcel$export($0775ea8ea6a0565e$exports, "useModalProvider", () => $0775ea8ea6a0565e$export$d9aaed4c3ece1bc0);
|
|
716
|
-
$parcel$export($0775ea8ea6a0565e$exports, "OverlayProvider", () => $0775ea8ea6a0565e$export$bf688221f59024e5);
|
|
717
|
-
$parcel$export($0775ea8ea6a0565e$exports, "OverlayContainer", () => $0775ea8ea6a0565e$export$b47c3594eab58386);
|
|
718
|
-
$parcel$export($0775ea8ea6a0565e$exports, "useModal", () => $0775ea8ea6a0565e$export$33ffd74ebf07f060);
|
|
719
696
|
|
|
720
697
|
|
|
721
698
|
|
|
@@ -804,144 +781,209 @@ function $0775ea8ea6a0565e$export$33ffd74ebf07f060(options) {
|
|
|
804
781
|
}
|
|
805
782
|
|
|
806
783
|
|
|
807
|
-
var $f69bb3e6457495cc$exports = {};
|
|
808
|
-
|
|
809
|
-
$parcel$export($f69bb3e6457495cc$exports, "DismissButton", () => $f69bb3e6457495cc$export$2317d149ed6f78c4);
|
|
810
784
|
var $18d014414048a7ba$exports = {};
|
|
811
785
|
var $4393d9b86d3ad278$exports = {};
|
|
812
|
-
$4393d9b86d3ad278$exports =
|
|
786
|
+
$4393d9b86d3ad278$exports = {
|
|
787
|
+
"dismiss": `تجاهل`
|
|
788
|
+
};
|
|
813
789
|
|
|
814
790
|
|
|
815
791
|
var $254224013ae06959$exports = {};
|
|
816
|
-
$254224013ae06959$exports =
|
|
792
|
+
$254224013ae06959$exports = {
|
|
793
|
+
"dismiss": `Отхвърляне`
|
|
794
|
+
};
|
|
817
795
|
|
|
818
796
|
|
|
819
797
|
var $55d3567b59d09782$exports = {};
|
|
820
|
-
$55d3567b59d09782$exports =
|
|
798
|
+
$55d3567b59d09782$exports = {
|
|
799
|
+
"dismiss": `Odstranit`
|
|
800
|
+
};
|
|
821
801
|
|
|
822
802
|
|
|
823
803
|
var $0e419a7be7773c16$exports = {};
|
|
824
|
-
$0e419a7be7773c16$exports =
|
|
804
|
+
$0e419a7be7773c16$exports = {
|
|
805
|
+
"dismiss": `Luk`
|
|
806
|
+
};
|
|
825
807
|
|
|
826
808
|
|
|
827
809
|
var $be606513c8356c34$exports = {};
|
|
828
|
-
$be606513c8356c34$exports =
|
|
810
|
+
$be606513c8356c34$exports = {
|
|
811
|
+
"dismiss": `Schließen`
|
|
812
|
+
};
|
|
829
813
|
|
|
830
814
|
|
|
831
815
|
var $7d99787e5bd26f87$exports = {};
|
|
832
|
-
$7d99787e5bd26f87$exports =
|
|
816
|
+
$7d99787e5bd26f87$exports = {
|
|
817
|
+
"dismiss": `Απόρριψη`
|
|
818
|
+
};
|
|
833
819
|
|
|
834
820
|
|
|
835
821
|
var $0360f2a6534752c1$exports = {};
|
|
836
|
-
$0360f2a6534752c1$exports =
|
|
822
|
+
$0360f2a6534752c1$exports = {
|
|
823
|
+
"dismiss": `Dismiss`
|
|
824
|
+
};
|
|
837
825
|
|
|
838
826
|
|
|
839
827
|
var $92bf4fdecfeb6a61$exports = {};
|
|
840
|
-
$92bf4fdecfeb6a61$exports =
|
|
828
|
+
$92bf4fdecfeb6a61$exports = {
|
|
829
|
+
"dismiss": `Descartar`
|
|
830
|
+
};
|
|
841
831
|
|
|
842
832
|
|
|
843
833
|
var $7c02fa9b9c598043$exports = {};
|
|
844
|
-
$7c02fa9b9c598043$exports =
|
|
834
|
+
$7c02fa9b9c598043$exports = {
|
|
835
|
+
"dismiss": `Lõpeta`
|
|
836
|
+
};
|
|
845
837
|
|
|
846
838
|
|
|
847
839
|
var $ba53535dcca59343$exports = {};
|
|
848
|
-
$ba53535dcca59343$exports =
|
|
840
|
+
$ba53535dcca59343$exports = {
|
|
841
|
+
"dismiss": `Hylkää`
|
|
842
|
+
};
|
|
849
843
|
|
|
850
844
|
|
|
851
845
|
var $2fbbcddf7d252cb7$exports = {};
|
|
852
|
-
$2fbbcddf7d252cb7$exports =
|
|
846
|
+
$2fbbcddf7d252cb7$exports = {
|
|
847
|
+
"dismiss": `Rejeter`
|
|
848
|
+
};
|
|
853
849
|
|
|
854
850
|
|
|
855
851
|
var $0a1f0520e07d3596$exports = {};
|
|
856
|
-
$0a1f0520e07d3596$exports =
|
|
852
|
+
$0a1f0520e07d3596$exports = {
|
|
853
|
+
"dismiss": `התעלם`
|
|
854
|
+
};
|
|
857
855
|
|
|
858
856
|
|
|
859
857
|
var $f7be5df1487823a9$exports = {};
|
|
860
|
-
$f7be5df1487823a9$exports =
|
|
858
|
+
$f7be5df1487823a9$exports = {
|
|
859
|
+
"dismiss": `Odbaci`
|
|
860
|
+
};
|
|
861
861
|
|
|
862
862
|
|
|
863
863
|
var $8dbe4363bfbba3f9$exports = {};
|
|
864
|
-
$8dbe4363bfbba3f9$exports =
|
|
864
|
+
$8dbe4363bfbba3f9$exports = {
|
|
865
|
+
"dismiss": `Elutasítás`
|
|
866
|
+
};
|
|
865
867
|
|
|
866
868
|
|
|
867
869
|
var $90a445da1ad273e7$exports = {};
|
|
868
|
-
$90a445da1ad273e7$exports =
|
|
870
|
+
$90a445da1ad273e7$exports = {
|
|
871
|
+
"dismiss": `Ignora`
|
|
872
|
+
};
|
|
869
873
|
|
|
870
874
|
|
|
871
875
|
var $e1ebf18259c9b1ee$exports = {};
|
|
872
|
-
$e1ebf18259c9b1ee$exports =
|
|
876
|
+
$e1ebf18259c9b1ee$exports = {
|
|
877
|
+
"dismiss": `閉じる`
|
|
878
|
+
};
|
|
873
879
|
|
|
874
880
|
|
|
875
881
|
var $765893642f3b4f72$exports = {};
|
|
876
|
-
$765893642f3b4f72$exports =
|
|
882
|
+
$765893642f3b4f72$exports = {
|
|
883
|
+
"dismiss": `무시`
|
|
884
|
+
};
|
|
877
885
|
|
|
878
886
|
|
|
879
887
|
var $af73ba24f63febd1$exports = {};
|
|
880
|
-
$af73ba24f63febd1$exports =
|
|
888
|
+
$af73ba24f63febd1$exports = {
|
|
889
|
+
"dismiss": `Atmesti`
|
|
890
|
+
};
|
|
881
891
|
|
|
882
892
|
|
|
883
893
|
var $97aac9f6740ee412$exports = {};
|
|
884
|
-
$97aac9f6740ee412$exports =
|
|
894
|
+
$97aac9f6740ee412$exports = {
|
|
895
|
+
"dismiss": `Nerādīt`
|
|
896
|
+
};
|
|
885
897
|
|
|
886
898
|
|
|
887
899
|
var $92fbe76e196d7e0a$exports = {};
|
|
888
|
-
$92fbe76e196d7e0a$exports =
|
|
900
|
+
$92fbe76e196d7e0a$exports = {
|
|
901
|
+
"dismiss": `Lukk`
|
|
902
|
+
};
|
|
889
903
|
|
|
890
904
|
|
|
891
905
|
var $44399897afb701ce$exports = {};
|
|
892
|
-
$44399897afb701ce$exports =
|
|
906
|
+
$44399897afb701ce$exports = {
|
|
907
|
+
"dismiss": `Negeren`
|
|
908
|
+
};
|
|
893
909
|
|
|
894
910
|
|
|
895
911
|
var $d679e258664d7384$exports = {};
|
|
896
|
-
$d679e258664d7384$exports =
|
|
912
|
+
$d679e258664d7384$exports = {
|
|
913
|
+
"dismiss": `Zignoruj`
|
|
914
|
+
};
|
|
897
915
|
|
|
898
916
|
|
|
899
917
|
var $b51fc2992648966b$exports = {};
|
|
900
|
-
$b51fc2992648966b$exports =
|
|
918
|
+
$b51fc2992648966b$exports = {
|
|
919
|
+
"dismiss": `Descartar`
|
|
920
|
+
};
|
|
901
921
|
|
|
902
922
|
|
|
903
923
|
var $6abbc540dcd5f78c$exports = {};
|
|
904
|
-
$6abbc540dcd5f78c$exports =
|
|
924
|
+
$6abbc540dcd5f78c$exports = {
|
|
925
|
+
"dismiss": `Dispensar`
|
|
926
|
+
};
|
|
905
927
|
|
|
906
928
|
|
|
907
929
|
var $6cbc0c9bf574473b$exports = {};
|
|
908
|
-
$6cbc0c9bf574473b$exports =
|
|
930
|
+
$6cbc0c9bf574473b$exports = {
|
|
931
|
+
"dismiss": `Revocare`
|
|
932
|
+
};
|
|
909
933
|
|
|
910
934
|
|
|
911
935
|
var $009edbe58be6525b$exports = {};
|
|
912
|
-
$009edbe58be6525b$exports =
|
|
936
|
+
$009edbe58be6525b$exports = {
|
|
937
|
+
"dismiss": `Пропустить`
|
|
938
|
+
};
|
|
913
939
|
|
|
914
940
|
|
|
915
941
|
var $01cf6095489e78f7$exports = {};
|
|
916
|
-
$01cf6095489e78f7$exports =
|
|
942
|
+
$01cf6095489e78f7$exports = {
|
|
943
|
+
"dismiss": `Zrušiť`
|
|
944
|
+
};
|
|
917
945
|
|
|
918
946
|
|
|
919
947
|
var $33fd5a1a3753e83f$exports = {};
|
|
920
|
-
$33fd5a1a3753e83f$exports =
|
|
948
|
+
$33fd5a1a3753e83f$exports = {
|
|
949
|
+
"dismiss": `Opusti`
|
|
950
|
+
};
|
|
921
951
|
|
|
922
952
|
|
|
923
953
|
var $6b9373a558e74e84$exports = {};
|
|
924
|
-
$6b9373a558e74e84$exports =
|
|
954
|
+
$6b9373a558e74e84$exports = {
|
|
955
|
+
"dismiss": `Odbaci`
|
|
956
|
+
};
|
|
925
957
|
|
|
926
958
|
|
|
927
959
|
var $90008194c3db7fce$exports = {};
|
|
928
|
-
$90008194c3db7fce$exports =
|
|
960
|
+
$90008194c3db7fce$exports = {
|
|
961
|
+
"dismiss": `Avvisa`
|
|
962
|
+
};
|
|
929
963
|
|
|
930
964
|
|
|
931
965
|
var $e29d21290b4ce15c$exports = {};
|
|
932
|
-
$e29d21290b4ce15c$exports =
|
|
966
|
+
$e29d21290b4ce15c$exports = {
|
|
967
|
+
"dismiss": `Kapat`
|
|
968
|
+
};
|
|
933
969
|
|
|
934
970
|
|
|
935
971
|
var $96139c59e8ba3f85$exports = {};
|
|
936
|
-
$96139c59e8ba3f85$exports =
|
|
972
|
+
$96139c59e8ba3f85$exports = {
|
|
973
|
+
"dismiss": `Скасувати`
|
|
974
|
+
};
|
|
937
975
|
|
|
938
976
|
|
|
939
977
|
var $052554192ea8e826$exports = {};
|
|
940
|
-
$052554192ea8e826$exports =
|
|
978
|
+
$052554192ea8e826$exports = {
|
|
979
|
+
"dismiss": `取消`
|
|
980
|
+
};
|
|
941
981
|
|
|
942
982
|
|
|
943
983
|
var $3f3b5d798a5abdbc$exports = {};
|
|
944
|
-
$3f3b5d798a5abdbc$exports =
|
|
984
|
+
$3f3b5d798a5abdbc$exports = {
|
|
985
|
+
"dismiss": `關閉`
|
|
986
|
+
};
|
|
945
987
|
|
|
946
988
|
|
|
947
989
|
$18d014414048a7ba$exports = {
|
|
@@ -988,8 +1030,8 @@ $18d014414048a7ba$exports = {
|
|
|
988
1030
|
|
|
989
1031
|
function $f69bb3e6457495cc$export$2317d149ed6f78c4(props) {
|
|
990
1032
|
let { onDismiss: onDismiss , ...otherProps } = props;
|
|
991
|
-
let
|
|
992
|
-
let labels = $6Zb2x$reactariautils.useLabels(otherProps,
|
|
1033
|
+
let stringFormatter = $6Zb2x$reactariai18n.useLocalizedStringFormatter((/*@__PURE__*/$parcel$interopDefault($18d014414048a7ba$exports)));
|
|
1034
|
+
let labels = $6Zb2x$reactariautils.useLabels(otherProps, stringFormatter.format('dismiss'));
|
|
993
1035
|
let onClick = ()=>{
|
|
994
1036
|
if (onDismiss) onDismiss();
|
|
995
1037
|
};
|
|
@@ -1001,9 +1043,6 @@ function $f69bb3e6457495cc$export$2317d149ed6f78c4(props) {
|
|
|
1001
1043
|
}
|
|
1002
1044
|
|
|
1003
1045
|
|
|
1004
|
-
var $08ef1685902b6011$exports = {};
|
|
1005
|
-
|
|
1006
|
-
$parcel$export($08ef1685902b6011$exports, "ariaHideOutside", () => $08ef1685902b6011$export$1c3ebcada18427bf);
|
|
1007
1046
|
/*
|
|
1008
1047
|
* Copyright 2020 Adobe. All rights reserved.
|
|
1009
1048
|
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
|
@@ -1083,13 +1122,6 @@ function $08ef1685902b6011$export$1c3ebcada18427bf(targets, root = document.body
|
|
|
1083
1122
|
}
|
|
1084
1123
|
|
|
1085
1124
|
|
|
1086
|
-
$parcel$exportWildcard(module.exports, $cd94b4896dd97759$exports);
|
|
1087
|
-
$parcel$exportWildcard(module.exports, $82711f9cb668ecdb$exports);
|
|
1088
|
-
$parcel$exportWildcard(module.exports, $b4878eb6316f670a$exports);
|
|
1089
|
-
$parcel$exportWildcard(module.exports, $5c2f5cd01815d369$exports);
|
|
1090
|
-
$parcel$exportWildcard(module.exports, $0775ea8ea6a0565e$exports);
|
|
1091
|
-
$parcel$exportWildcard(module.exports, $f69bb3e6457495cc$exports);
|
|
1092
|
-
$parcel$exportWildcard(module.exports, $08ef1685902b6011$exports);
|
|
1093
1125
|
|
|
1094
1126
|
|
|
1095
1127
|
//# sourceMappingURL=main.js.map
|