@react-aria/toast 3.0.0-beta.8 → 3.0.0-beta.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (176) hide show
  1. package/dist/import.mjs +204 -34
  2. package/dist/main.js +204 -34
  3. package/dist/main.js.map +1 -1
  4. package/dist/module.js +204 -34
  5. package/dist/module.js.map +1 -1
  6. package/package.json +6 -6
  7. package/dist/ar-AE.main.js +0 -7
  8. package/dist/ar-AE.main.js.map +0 -1
  9. package/dist/ar-AE.mjs +0 -9
  10. package/dist/ar-AE.module.js +0 -9
  11. package/dist/ar-AE.module.js.map +0 -1
  12. package/dist/bg-BG.main.js +0 -7
  13. package/dist/bg-BG.main.js.map +0 -1
  14. package/dist/bg-BG.mjs +0 -9
  15. package/dist/bg-BG.module.js +0 -9
  16. package/dist/bg-BG.module.js.map +0 -1
  17. package/dist/cs-CZ.main.js +0 -7
  18. package/dist/cs-CZ.main.js.map +0 -1
  19. package/dist/cs-CZ.mjs +0 -9
  20. package/dist/cs-CZ.module.js +0 -9
  21. package/dist/cs-CZ.module.js.map +0 -1
  22. package/dist/da-DK.main.js +0 -7
  23. package/dist/da-DK.main.js.map +0 -1
  24. package/dist/da-DK.mjs +0 -9
  25. package/dist/da-DK.module.js +0 -9
  26. package/dist/da-DK.module.js.map +0 -1
  27. package/dist/de-DE.main.js +0 -7
  28. package/dist/de-DE.main.js.map +0 -1
  29. package/dist/de-DE.mjs +0 -9
  30. package/dist/de-DE.module.js +0 -9
  31. package/dist/de-DE.module.js.map +0 -1
  32. package/dist/el-GR.main.js +0 -7
  33. package/dist/el-GR.main.js.map +0 -1
  34. package/dist/el-GR.mjs +0 -9
  35. package/dist/el-GR.module.js +0 -9
  36. package/dist/el-GR.module.js.map +0 -1
  37. package/dist/en-US.main.js +0 -7
  38. package/dist/en-US.main.js.map +0 -1
  39. package/dist/en-US.mjs +0 -9
  40. package/dist/en-US.module.js +0 -9
  41. package/dist/en-US.module.js.map +0 -1
  42. package/dist/es-ES.main.js +0 -7
  43. package/dist/es-ES.main.js.map +0 -1
  44. package/dist/es-ES.mjs +0 -9
  45. package/dist/es-ES.module.js +0 -9
  46. package/dist/es-ES.module.js.map +0 -1
  47. package/dist/et-EE.main.js +0 -7
  48. package/dist/et-EE.main.js.map +0 -1
  49. package/dist/et-EE.mjs +0 -9
  50. package/dist/et-EE.module.js +0 -9
  51. package/dist/et-EE.module.js.map +0 -1
  52. package/dist/fi-FI.main.js +0 -7
  53. package/dist/fi-FI.main.js.map +0 -1
  54. package/dist/fi-FI.mjs +0 -9
  55. package/dist/fi-FI.module.js +0 -9
  56. package/dist/fi-FI.module.js.map +0 -1
  57. package/dist/fr-FR.main.js +0 -7
  58. package/dist/fr-FR.main.js.map +0 -1
  59. package/dist/fr-FR.mjs +0 -9
  60. package/dist/fr-FR.module.js +0 -9
  61. package/dist/fr-FR.module.js.map +0 -1
  62. package/dist/he-IL.main.js +0 -7
  63. package/dist/he-IL.main.js.map +0 -1
  64. package/dist/he-IL.mjs +0 -9
  65. package/dist/he-IL.module.js +0 -9
  66. package/dist/he-IL.module.js.map +0 -1
  67. package/dist/hr-HR.main.js +0 -7
  68. package/dist/hr-HR.main.js.map +0 -1
  69. package/dist/hr-HR.mjs +0 -9
  70. package/dist/hr-HR.module.js +0 -9
  71. package/dist/hr-HR.module.js.map +0 -1
  72. package/dist/hu-HU.main.js +0 -7
  73. package/dist/hu-HU.main.js.map +0 -1
  74. package/dist/hu-HU.mjs +0 -9
  75. package/dist/hu-HU.module.js +0 -9
  76. package/dist/hu-HU.module.js.map +0 -1
  77. package/dist/it-IT.main.js +0 -7
  78. package/dist/it-IT.main.js.map +0 -1
  79. package/dist/it-IT.mjs +0 -9
  80. package/dist/it-IT.module.js +0 -9
  81. package/dist/it-IT.module.js.map +0 -1
  82. package/dist/ja-JP.main.js +0 -7
  83. package/dist/ja-JP.main.js.map +0 -1
  84. package/dist/ja-JP.mjs +0 -9
  85. package/dist/ja-JP.module.js +0 -9
  86. package/dist/ja-JP.module.js.map +0 -1
  87. package/dist/ko-KR.main.js +0 -7
  88. package/dist/ko-KR.main.js.map +0 -1
  89. package/dist/ko-KR.mjs +0 -9
  90. package/dist/ko-KR.module.js +0 -9
  91. package/dist/ko-KR.module.js.map +0 -1
  92. package/dist/lt-LT.main.js +0 -7
  93. package/dist/lt-LT.main.js.map +0 -1
  94. package/dist/lt-LT.mjs +0 -9
  95. package/dist/lt-LT.module.js +0 -9
  96. package/dist/lt-LT.module.js.map +0 -1
  97. package/dist/lv-LV.main.js +0 -7
  98. package/dist/lv-LV.main.js.map +0 -1
  99. package/dist/lv-LV.mjs +0 -9
  100. package/dist/lv-LV.module.js +0 -9
  101. package/dist/lv-LV.module.js.map +0 -1
  102. package/dist/nb-NO.main.js +0 -7
  103. package/dist/nb-NO.main.js.map +0 -1
  104. package/dist/nb-NO.mjs +0 -9
  105. package/dist/nb-NO.module.js +0 -9
  106. package/dist/nb-NO.module.js.map +0 -1
  107. package/dist/nl-NL.main.js +0 -7
  108. package/dist/nl-NL.main.js.map +0 -1
  109. package/dist/nl-NL.mjs +0 -9
  110. package/dist/nl-NL.module.js +0 -9
  111. package/dist/nl-NL.module.js.map +0 -1
  112. package/dist/pl-PL.main.js +0 -7
  113. package/dist/pl-PL.main.js.map +0 -1
  114. package/dist/pl-PL.mjs +0 -9
  115. package/dist/pl-PL.module.js +0 -9
  116. package/dist/pl-PL.module.js.map +0 -1
  117. package/dist/pt-BR.main.js +0 -7
  118. package/dist/pt-BR.main.js.map +0 -1
  119. package/dist/pt-BR.mjs +0 -9
  120. package/dist/pt-BR.module.js +0 -9
  121. package/dist/pt-BR.module.js.map +0 -1
  122. package/dist/pt-PT.main.js +0 -7
  123. package/dist/pt-PT.main.js.map +0 -1
  124. package/dist/pt-PT.mjs +0 -9
  125. package/dist/pt-PT.module.js +0 -9
  126. package/dist/pt-PT.module.js.map +0 -1
  127. package/dist/ro-RO.main.js +0 -7
  128. package/dist/ro-RO.main.js.map +0 -1
  129. package/dist/ro-RO.mjs +0 -9
  130. package/dist/ro-RO.module.js +0 -9
  131. package/dist/ro-RO.module.js.map +0 -1
  132. package/dist/ru-RU.main.js +0 -7
  133. package/dist/ru-RU.main.js.map +0 -1
  134. package/dist/ru-RU.mjs +0 -9
  135. package/dist/ru-RU.module.js +0 -9
  136. package/dist/ru-RU.module.js.map +0 -1
  137. package/dist/sk-SK.main.js +0 -7
  138. package/dist/sk-SK.main.js.map +0 -1
  139. package/dist/sk-SK.mjs +0 -9
  140. package/dist/sk-SK.module.js +0 -9
  141. package/dist/sk-SK.module.js.map +0 -1
  142. package/dist/sl-SI.main.js +0 -7
  143. package/dist/sl-SI.main.js.map +0 -1
  144. package/dist/sl-SI.mjs +0 -9
  145. package/dist/sl-SI.module.js +0 -9
  146. package/dist/sl-SI.module.js.map +0 -1
  147. package/dist/sr-SP.main.js +0 -7
  148. package/dist/sr-SP.main.js.map +0 -1
  149. package/dist/sr-SP.mjs +0 -9
  150. package/dist/sr-SP.module.js +0 -9
  151. package/dist/sr-SP.module.js.map +0 -1
  152. package/dist/sv-SE.main.js +0 -7
  153. package/dist/sv-SE.main.js.map +0 -1
  154. package/dist/sv-SE.mjs +0 -9
  155. package/dist/sv-SE.module.js +0 -9
  156. package/dist/sv-SE.module.js.map +0 -1
  157. package/dist/tr-TR.main.js +0 -7
  158. package/dist/tr-TR.main.js.map +0 -1
  159. package/dist/tr-TR.mjs +0 -9
  160. package/dist/tr-TR.module.js +0 -9
  161. package/dist/tr-TR.module.js.map +0 -1
  162. package/dist/uk-UA.main.js +0 -7
  163. package/dist/uk-UA.main.js.map +0 -1
  164. package/dist/uk-UA.mjs +0 -9
  165. package/dist/uk-UA.module.js +0 -9
  166. package/dist/uk-UA.module.js.map +0 -1
  167. package/dist/zh-CN.main.js +0 -7
  168. package/dist/zh-CN.main.js.map +0 -1
  169. package/dist/zh-CN.mjs +0 -9
  170. package/dist/zh-CN.module.js +0 -9
  171. package/dist/zh-CN.module.js.map +0 -1
  172. package/dist/zh-TW.main.js +0 -7
  173. package/dist/zh-TW.main.js.map +0 -1
  174. package/dist/zh-TW.mjs +0 -9
  175. package/dist/zh-TW.module.js +0 -9
  176. package/dist/zh-TW.module.js.map +0 -1
package/dist/import.mjs CHANGED
@@ -1,37 +1,3 @@
1
- import $ff9177efc58547ad$exports from "./ar-AE.mjs";
2
- import $25eb7c0c0c45e544$exports from "./bg-BG.mjs";
3
- import $28feffc3d61a8691$exports from "./cs-CZ.mjs";
4
- import $390d441203d25ff4$exports from "./da-DK.mjs";
5
- import $7063c2d0f14f979a$exports from "./de-DE.mjs";
6
- import $2dfc1dbb6590af88$exports from "./el-GR.mjs";
7
- import $9a12ff1caae5a7a5$exports from "./en-US.mjs";
8
- import $f4095fb5a72adbe6$exports from "./es-ES.mjs";
9
- import $75bc5191b9d7826a$exports from "./et-EE.mjs";
10
- import $e4b9aef18b0db8dc$exports from "./fi-FI.mjs";
11
- import $888756784d832bd7$exports from "./fr-FR.mjs";
12
- import $6835949b68a1fabf$exports from "./he-IL.mjs";
13
- import $87ffcbc0b651e40b$exports from "./hr-HR.mjs";
14
- import $dc6e3b2813600d69$exports from "./hu-HU.mjs";
15
- import $fe136bcbacfcfa14$exports from "./it-IT.mjs";
16
- import $8fb53a929b46df83$exports from "./ja-JP.mjs";
17
- import $2c38dbfaf041a865$exports from "./ko-KR.mjs";
18
- import $48f3f33a29908d4c$exports from "./lt-LT.mjs";
19
- import $9867160d996455a0$exports from "./lv-LV.mjs";
20
- import $196258ea25c96487$exports from "./nb-NO.mjs";
21
- import $949061cb954e8000$exports from "./nl-NL.mjs";
22
- import $8189bed27add1ad3$exports from "./pl-PL.mjs";
23
- import $a361756a93b6e28c$exports from "./pt-BR.mjs";
24
- import $034c7393857c8db0$exports from "./pt-PT.mjs";
25
- import $e33d3b3868478b04$exports from "./ro-RO.mjs";
26
- import $9a7dcb914b29cd9f$exports from "./ru-RU.mjs";
27
- import $e43d964a0c7f1266$exports from "./sk-SK.mjs";
28
- import $0bc56cee3275bcaa$exports from "./sl-SI.mjs";
29
- import $7dbdd7289c10d2ba$exports from "./sr-SP.mjs";
30
- import $ccbe6066c10b1e53$exports from "./sv-SE.mjs";
31
- import $9d503476b9d858b7$exports from "./tr-TR.mjs";
32
- import $32ee419c7b9b7a83$exports from "./uk-UA.mjs";
33
- import $122525af1cb737c7$exports from "./zh-CN.mjs";
34
- import $52e8b1b00094e5a3$exports from "./zh-TW.mjs";
35
1
  import {useEffect as $5bA4N$useEffect, useRef as $5bA4N$useRef} from "react";
36
2
  import {useLayoutEffect as $5bA4N$useLayoutEffect, useId as $5bA4N$useId, useSlotId as $5bA4N$useSlotId, focusWithoutScrolling as $5bA4N$focusWithoutScrolling, mergeProps as $5bA4N$mergeProps} from "@react-aria/utils";
37
3
  import {useLocalizedStringFormatter as $5bA4N$useLocalizedStringFormatter} from "@react-aria/i18n";
@@ -63,38 +29,242 @@ function $parcel$interopDefault(a) {
63
29
  * OF ANY KIND, either express or implied. See the License for the specific language
64
30
  * governing permissions and limitations under the License.
65
31
  */ var $7853651519a70071$exports = {};
32
+ var $ff9177efc58547ad$exports = {};
33
+ $ff9177efc58547ad$exports = {
34
+ "close": `\u{625}\u{63A}\u{644}\u{627}\u{642}`,
35
+ "notifications": `\u{625}\u{634}\u{639}\u{627}\u{631}\u{627}\u{62A}`
36
+ };
37
+
38
+
39
+ var $25eb7c0c0c45e544$exports = {};
40
+ $25eb7c0c0c45e544$exports = {
41
+ "close": `\u{417}\u{430}\u{442}\u{432}\u{43E}\u{440}\u{438}`,
42
+ "notifications": `\u{418}\u{437}\u{432}\u{435}\u{441}\u{442}\u{438}\u{44F}`
43
+ };
44
+
45
+
46
+ var $28feffc3d61a8691$exports = {};
47
+ $28feffc3d61a8691$exports = {
48
+ "close": `Zav\u{159}\xedt`,
49
+ "notifications": `Upozorn\u{11B}n\xed`
50
+ };
51
+
52
+
53
+ var $390d441203d25ff4$exports = {};
54
+ $390d441203d25ff4$exports = {
55
+ "close": `Luk`,
56
+ "notifications": `P\xe5mindelser`
57
+ };
58
+
59
+
60
+ var $7063c2d0f14f979a$exports = {};
61
+ $7063c2d0f14f979a$exports = {
62
+ "close": `Schlie\xdfen`,
63
+ "notifications": `Benachrichtigungen`
64
+ };
65
+
66
+
67
+ var $2dfc1dbb6590af88$exports = {};
68
+ $2dfc1dbb6590af88$exports = {
69
+ "close": `\u{39A}\u{3BB}\u{3B5}\u{3AF}\u{3C3}\u{3B9}\u{3BC}\u{3BF}`,
70
+ "notifications": `\u{395}\u{3B9}\u{3B4}\u{3BF}\u{3C0}\u{3BF}\u{3B9}\u{3AE}\u{3C3}\u{3B5}\u{3B9}\u{3C2}`
71
+ };
72
+
73
+
74
+ var $9a12ff1caae5a7a5$exports = {};
75
+ $9a12ff1caae5a7a5$exports = {
76
+ "close": `Close`,
77
+ "notifications": `Notifications`
78
+ };
79
+
80
+
81
+ var $f4095fb5a72adbe6$exports = {};
82
+ $f4095fb5a72adbe6$exports = {
83
+ "close": `Cerrar`,
84
+ "notifications": `Notificaciones`
85
+ };
86
+
87
+
88
+ var $75bc5191b9d7826a$exports = {};
89
+ $75bc5191b9d7826a$exports = {
90
+ "close": `Sule`,
91
+ "notifications": `Teated`
92
+ };
93
+
94
+
95
+ var $e4b9aef18b0db8dc$exports = {};
96
+ $e4b9aef18b0db8dc$exports = {
97
+ "close": `Sulje`,
98
+ "notifications": `Ilmoitukset`
99
+ };
100
+
101
+
102
+ var $888756784d832bd7$exports = {};
103
+ $888756784d832bd7$exports = {
104
+ "close": `Fermer`,
105
+ "notifications": `Notifications`
106
+ };
107
+
108
+
109
+ var $6835949b68a1fabf$exports = {};
110
+ $6835949b68a1fabf$exports = {
111
+ "close": `\u{5E1}\u{5D2}\u{5D5}\u{5E8}`,
112
+ "notifications": `\u{5D4}\u{5EA}\u{5E8}\u{5D0}\u{5D5}\u{5EA}`
113
+ };
66
114
 
67
115
 
116
+ var $87ffcbc0b651e40b$exports = {};
117
+ $87ffcbc0b651e40b$exports = {
118
+ "close": `Zatvori`,
119
+ "notifications": `Obavijesti`
120
+ };
121
+
122
+
123
+ var $dc6e3b2813600d69$exports = {};
124
+ $dc6e3b2813600d69$exports = {
125
+ "close": `Bez\xe1r\xe1s`,
126
+ "notifications": `\xc9rtes\xedt\xe9sek`
127
+ };
128
+
129
+
130
+ var $fe136bcbacfcfa14$exports = {};
131
+ $fe136bcbacfcfa14$exports = {
132
+ "close": `Chiudi`,
133
+ "notifications": `Notifiche`
134
+ };
135
+
136
+
137
+ var $8fb53a929b46df83$exports = {};
138
+ $8fb53a929b46df83$exports = {
139
+ "close": `\u{9589}\u{3058}\u{308B}`,
140
+ "notifications": `\u{901A}\u{77E5}`
141
+ };
142
+
143
+
144
+ var $2c38dbfaf041a865$exports = {};
145
+ $2c38dbfaf041a865$exports = {
146
+ "close": `\u{B2EB}\u{AE30}`,
147
+ "notifications": `\u{C54C}\u{B9BC}`
148
+ };
149
+
150
+
151
+ var $48f3f33a29908d4c$exports = {};
152
+ $48f3f33a29908d4c$exports = {
153
+ "close": `U\u{17E}daryti`,
154
+ "notifications": `Prane\u{161}imai`
155
+ };
156
+
68
157
 
158
+ var $9867160d996455a0$exports = {};
159
+ $9867160d996455a0$exports = {
160
+ "close": `Aizv\u{113}rt`,
161
+ "notifications": `Pazi\u{146}ojumi`
162
+ };
69
163
 
70
164
 
165
+ var $196258ea25c96487$exports = {};
166
+ $196258ea25c96487$exports = {
167
+ "close": `Lukk`,
168
+ "notifications": `Varsler`
169
+ };
71
170
 
72
171
 
172
+ var $949061cb954e8000$exports = {};
173
+ $949061cb954e8000$exports = {
174
+ "close": `Sluiten`,
175
+ "notifications": `Meldingen`
176
+ };
73
177
 
74
178
 
179
+ var $8189bed27add1ad3$exports = {};
180
+ $8189bed27add1ad3$exports = {
181
+ "close": `Zamknij`,
182
+ "notifications": `Powiadomienia`
183
+ };
75
184
 
76
185
 
186
+ var $a361756a93b6e28c$exports = {};
187
+ $a361756a93b6e28c$exports = {
188
+ "close": `Fechar`,
189
+ "notifications": `Notifica\xe7\xf5es`
190
+ };
77
191
 
78
192
 
193
+ var $034c7393857c8db0$exports = {};
194
+ $034c7393857c8db0$exports = {
195
+ "close": `Fechar`,
196
+ "notifications": `Notifica\xe7\xf5es`
197
+ };
79
198
 
80
199
 
200
+ var $e33d3b3868478b04$exports = {};
201
+ $e33d3b3868478b04$exports = {
202
+ "close": `\xcenchide\u{163}i`,
203
+ "notifications": `Notific\u{103}ri`
204
+ };
81
205
 
82
206
 
207
+ var $9a7dcb914b29cd9f$exports = {};
208
+ $9a7dcb914b29cd9f$exports = {
209
+ "close": `\u{417}\u{430}\u{43A}\u{440}\u{44B}\u{442}\u{44C}`,
210
+ "notifications": `\u{423}\u{432}\u{435}\u{434}\u{43E}\u{43C}\u{43B}\u{435}\u{43D}\u{438}\u{44F}`
211
+ };
83
212
 
84
213
 
214
+ var $e43d964a0c7f1266$exports = {};
215
+ $e43d964a0c7f1266$exports = {
216
+ "close": `Zatvori\u{165}`,
217
+ "notifications": `Ozn\xe1menia`
218
+ };
85
219
 
86
220
 
221
+ var $0bc56cee3275bcaa$exports = {};
222
+ $0bc56cee3275bcaa$exports = {
223
+ "close": `Zapri`,
224
+ "notifications": `Obvestila`
225
+ };
226
+
87
227
 
228
+ var $7dbdd7289c10d2ba$exports = {};
229
+ $7dbdd7289c10d2ba$exports = {
230
+ "close": `Zatvori`,
231
+ "notifications": `Obave\u{161}tenja`
232
+ };
88
233
 
89
234
 
235
+ var $ccbe6066c10b1e53$exports = {};
236
+ $ccbe6066c10b1e53$exports = {
237
+ "close": `St\xe4ng`,
238
+ "notifications": `Aviseringar`
239
+ };
90
240
 
91
241
 
242
+ var $9d503476b9d858b7$exports = {};
243
+ $9d503476b9d858b7$exports = {
244
+ "close": `Kapat`,
245
+ "notifications": `Bildirimler`
246
+ };
92
247
 
93
248
 
249
+ var $32ee419c7b9b7a83$exports = {};
250
+ $32ee419c7b9b7a83$exports = {
251
+ "close": `\u{417}\u{430}\u{43A}\u{440}\u{438}\u{442}\u{438}`,
252
+ "notifications": `\u{421}\u{43F}\u{43E}\u{432}\u{456}\u{449}\u{435}\u{43D}\u{43D}\u{44F}`
253
+ };
94
254
 
95
255
 
256
+ var $122525af1cb737c7$exports = {};
257
+ $122525af1cb737c7$exports = {
258
+ "close": `\u{5173}\u{95ED}`,
259
+ "notifications": `\u{901A}\u{77E5}`
260
+ };
96
261
 
97
262
 
263
+ var $52e8b1b00094e5a3$exports = {};
264
+ $52e8b1b00094e5a3$exports = {
265
+ "close": `\u{95DC}\u{9589}`,
266
+ "notifications": `\u{901A}\u{77E5}`
267
+ };
98
268
 
99
269
 
100
270
  $7853651519a70071$exports = {
package/dist/main.js CHANGED
@@ -1,37 +1,3 @@
1
- var $3ba38fcbd805da3c$exports = require("./ar-AE.main.js");
2
- var $06073da8a2e837af$exports = require("./bg-BG.main.js");
3
- var $f53ed7e9d51b5d55$exports = require("./cs-CZ.main.js");
4
- var $a6b6afdb5a98f76c$exports = require("./da-DK.main.js");
5
- var $52ad23060875775f$exports = require("./de-DE.main.js");
6
- var $08dcc76c0e5f63e1$exports = require("./el-GR.main.js");
7
- var $ac3044aff017d368$exports = require("./en-US.main.js");
8
- var $0299c089dcae9213$exports = require("./es-ES.main.js");
9
- var $6e794080ab3e230e$exports = require("./et-EE.main.js");
10
- var $0e8addbb92e8793c$exports = require("./fi-FI.main.js");
11
- var $ccffda58861e52b2$exports = require("./fr-FR.main.js");
12
- var $653260ae334153b4$exports = require("./he-IL.main.js");
13
- var $290423d4fc0aea87$exports = require("./hr-HR.main.js");
14
- var $da81172046d02c49$exports = require("./hu-HU.main.js");
15
- var $e473b08597cfe1ba$exports = require("./it-IT.main.js");
16
- var $a922e1b461f17a4b$exports = require("./ja-JP.main.js");
17
- var $be1e07b486982d9f$exports = require("./ko-KR.main.js");
18
- var $8ce068abcf4f94c2$exports = require("./lt-LT.main.js");
19
- var $0f0bc08f611d7d33$exports = require("./lv-LV.main.js");
20
- var $5166d11eab257c28$exports = require("./nb-NO.main.js");
21
- var $cb220a55cf7a5fab$exports = require("./nl-NL.main.js");
22
- var $917614d5adb28d77$exports = require("./pl-PL.main.js");
23
- var $23cdda07bb218e23$exports = require("./pt-BR.main.js");
24
- var $bb1b7d8bd48e0fee$exports = require("./pt-PT.main.js");
25
- var $969ad461d232c044$exports = require("./ro-RO.main.js");
26
- var $fca911223f29355e$exports = require("./ru-RU.main.js");
27
- var $19e9a28d44f83203$exports = require("./sk-SK.main.js");
28
- var $778cdcc7dbced5c1$exports = require("./sl-SI.main.js");
29
- var $9359f9b7eac75ac1$exports = require("./sr-SP.main.js");
30
- var $ac7ed8cd33134ccc$exports = require("./sv-SE.main.js");
31
- var $b55461bb5ab189cd$exports = require("./tr-TR.main.js");
32
- var $e6a0bdd8a70a947a$exports = require("./uk-UA.main.js");
33
- var $c2f8abea7819ef8e$exports = require("./zh-CN.main.js");
34
- var $765deb5c0d35c4bc$exports = require("./zh-TW.main.js");
35
1
  var $35jN2$react = require("react");
36
2
  var $35jN2$reactariautils = require("@react-aria/utils");
37
3
  var $35jN2$reactariai18n = require("@react-aria/i18n");
@@ -70,38 +36,242 @@ $parcel$export(module.exports, "useToastRegion", () => $eda7c6204a682dd4$export$
70
36
  * OF ANY KIND, either express or implied. See the License for the specific language
71
37
  * governing permissions and limitations under the License.
72
38
  */ var $f49b2d6c91681304$exports = {};
39
+ var $3ba38fcbd805da3c$exports = {};
40
+ $3ba38fcbd805da3c$exports = {
41
+ "close": `\u{625}\u{63A}\u{644}\u{627}\u{642}`,
42
+ "notifications": `\u{625}\u{634}\u{639}\u{627}\u{631}\u{627}\u{62A}`
43
+ };
44
+
45
+
46
+ var $06073da8a2e837af$exports = {};
47
+ $06073da8a2e837af$exports = {
48
+ "close": `\u{417}\u{430}\u{442}\u{432}\u{43E}\u{440}\u{438}`,
49
+ "notifications": `\u{418}\u{437}\u{432}\u{435}\u{441}\u{442}\u{438}\u{44F}`
50
+ };
51
+
52
+
53
+ var $f53ed7e9d51b5d55$exports = {};
54
+ $f53ed7e9d51b5d55$exports = {
55
+ "close": `Zav\u{159}\xedt`,
56
+ "notifications": `Upozorn\u{11B}n\xed`
57
+ };
58
+
59
+
60
+ var $a6b6afdb5a98f76c$exports = {};
61
+ $a6b6afdb5a98f76c$exports = {
62
+ "close": `Luk`,
63
+ "notifications": `P\xe5mindelser`
64
+ };
65
+
66
+
67
+ var $52ad23060875775f$exports = {};
68
+ $52ad23060875775f$exports = {
69
+ "close": `Schlie\xdfen`,
70
+ "notifications": `Benachrichtigungen`
71
+ };
72
+
73
+
74
+ var $08dcc76c0e5f63e1$exports = {};
75
+ $08dcc76c0e5f63e1$exports = {
76
+ "close": `\u{39A}\u{3BB}\u{3B5}\u{3AF}\u{3C3}\u{3B9}\u{3BC}\u{3BF}`,
77
+ "notifications": `\u{395}\u{3B9}\u{3B4}\u{3BF}\u{3C0}\u{3BF}\u{3B9}\u{3AE}\u{3C3}\u{3B5}\u{3B9}\u{3C2}`
78
+ };
79
+
80
+
81
+ var $ac3044aff017d368$exports = {};
82
+ $ac3044aff017d368$exports = {
83
+ "close": `Close`,
84
+ "notifications": `Notifications`
85
+ };
86
+
87
+
88
+ var $0299c089dcae9213$exports = {};
89
+ $0299c089dcae9213$exports = {
90
+ "close": `Cerrar`,
91
+ "notifications": `Notificaciones`
92
+ };
93
+
94
+
95
+ var $6e794080ab3e230e$exports = {};
96
+ $6e794080ab3e230e$exports = {
97
+ "close": `Sule`,
98
+ "notifications": `Teated`
99
+ };
100
+
101
+
102
+ var $0e8addbb92e8793c$exports = {};
103
+ $0e8addbb92e8793c$exports = {
104
+ "close": `Sulje`,
105
+ "notifications": `Ilmoitukset`
106
+ };
107
+
108
+
109
+ var $ccffda58861e52b2$exports = {};
110
+ $ccffda58861e52b2$exports = {
111
+ "close": `Fermer`,
112
+ "notifications": `Notifications`
113
+ };
114
+
115
+
116
+ var $653260ae334153b4$exports = {};
117
+ $653260ae334153b4$exports = {
118
+ "close": `\u{5E1}\u{5D2}\u{5D5}\u{5E8}`,
119
+ "notifications": `\u{5D4}\u{5EA}\u{5E8}\u{5D0}\u{5D5}\u{5EA}`
120
+ };
73
121
 
74
122
 
123
+ var $290423d4fc0aea87$exports = {};
124
+ $290423d4fc0aea87$exports = {
125
+ "close": `Zatvori`,
126
+ "notifications": `Obavijesti`
127
+ };
128
+
129
+
130
+ var $da81172046d02c49$exports = {};
131
+ $da81172046d02c49$exports = {
132
+ "close": `Bez\xe1r\xe1s`,
133
+ "notifications": `\xc9rtes\xedt\xe9sek`
134
+ };
135
+
136
+
137
+ var $e473b08597cfe1ba$exports = {};
138
+ $e473b08597cfe1ba$exports = {
139
+ "close": `Chiudi`,
140
+ "notifications": `Notifiche`
141
+ };
142
+
143
+
144
+ var $a922e1b461f17a4b$exports = {};
145
+ $a922e1b461f17a4b$exports = {
146
+ "close": `\u{9589}\u{3058}\u{308B}`,
147
+ "notifications": `\u{901A}\u{77E5}`
148
+ };
149
+
150
+
151
+ var $be1e07b486982d9f$exports = {};
152
+ $be1e07b486982d9f$exports = {
153
+ "close": `\u{B2EB}\u{AE30}`,
154
+ "notifications": `\u{C54C}\u{B9BC}`
155
+ };
156
+
157
+
158
+ var $8ce068abcf4f94c2$exports = {};
159
+ $8ce068abcf4f94c2$exports = {
160
+ "close": `U\u{17E}daryti`,
161
+ "notifications": `Prane\u{161}imai`
162
+ };
163
+
75
164
 
165
+ var $0f0bc08f611d7d33$exports = {};
166
+ $0f0bc08f611d7d33$exports = {
167
+ "close": `Aizv\u{113}rt`,
168
+ "notifications": `Pazi\u{146}ojumi`
169
+ };
76
170
 
77
171
 
172
+ var $5166d11eab257c28$exports = {};
173
+ $5166d11eab257c28$exports = {
174
+ "close": `Lukk`,
175
+ "notifications": `Varsler`
176
+ };
78
177
 
79
178
 
179
+ var $cb220a55cf7a5fab$exports = {};
180
+ $cb220a55cf7a5fab$exports = {
181
+ "close": `Sluiten`,
182
+ "notifications": `Meldingen`
183
+ };
80
184
 
81
185
 
186
+ var $917614d5adb28d77$exports = {};
187
+ $917614d5adb28d77$exports = {
188
+ "close": `Zamknij`,
189
+ "notifications": `Powiadomienia`
190
+ };
82
191
 
83
192
 
193
+ var $23cdda07bb218e23$exports = {};
194
+ $23cdda07bb218e23$exports = {
195
+ "close": `Fechar`,
196
+ "notifications": `Notifica\xe7\xf5es`
197
+ };
84
198
 
85
199
 
200
+ var $bb1b7d8bd48e0fee$exports = {};
201
+ $bb1b7d8bd48e0fee$exports = {
202
+ "close": `Fechar`,
203
+ "notifications": `Notifica\xe7\xf5es`
204
+ };
86
205
 
87
206
 
207
+ var $969ad461d232c044$exports = {};
208
+ $969ad461d232c044$exports = {
209
+ "close": `\xcenchide\u{163}i`,
210
+ "notifications": `Notific\u{103}ri`
211
+ };
88
212
 
89
213
 
214
+ var $fca911223f29355e$exports = {};
215
+ $fca911223f29355e$exports = {
216
+ "close": `\u{417}\u{430}\u{43A}\u{440}\u{44B}\u{442}\u{44C}`,
217
+ "notifications": `\u{423}\u{432}\u{435}\u{434}\u{43E}\u{43C}\u{43B}\u{435}\u{43D}\u{438}\u{44F}`
218
+ };
90
219
 
91
220
 
221
+ var $19e9a28d44f83203$exports = {};
222
+ $19e9a28d44f83203$exports = {
223
+ "close": `Zatvori\u{165}`,
224
+ "notifications": `Ozn\xe1menia`
225
+ };
92
226
 
93
227
 
228
+ var $778cdcc7dbced5c1$exports = {};
229
+ $778cdcc7dbced5c1$exports = {
230
+ "close": `Zapri`,
231
+ "notifications": `Obvestila`
232
+ };
233
+
94
234
 
235
+ var $9359f9b7eac75ac1$exports = {};
236
+ $9359f9b7eac75ac1$exports = {
237
+ "close": `Zatvori`,
238
+ "notifications": `Obave\u{161}tenja`
239
+ };
95
240
 
96
241
 
242
+ var $ac7ed8cd33134ccc$exports = {};
243
+ $ac7ed8cd33134ccc$exports = {
244
+ "close": `St\xe4ng`,
245
+ "notifications": `Aviseringar`
246
+ };
97
247
 
98
248
 
249
+ var $b55461bb5ab189cd$exports = {};
250
+ $b55461bb5ab189cd$exports = {
251
+ "close": `Kapat`,
252
+ "notifications": `Bildirimler`
253
+ };
99
254
 
100
255
 
256
+ var $e6a0bdd8a70a947a$exports = {};
257
+ $e6a0bdd8a70a947a$exports = {
258
+ "close": `\u{417}\u{430}\u{43A}\u{440}\u{438}\u{442}\u{438}`,
259
+ "notifications": `\u{421}\u{43F}\u{43E}\u{432}\u{456}\u{449}\u{435}\u{43D}\u{43D}\u{44F}`
260
+ };
101
261
 
102
262
 
263
+ var $c2f8abea7819ef8e$exports = {};
264
+ $c2f8abea7819ef8e$exports = {
265
+ "close": `\u{5173}\u{95ED}`,
266
+ "notifications": `\u{901A}\u{77E5}`
267
+ };
103
268
 
104
269
 
270
+ var $765deb5c0d35c4bc$exports = {};
271
+ $765deb5c0d35c4bc$exports = {
272
+ "close": `\u{95DC}\u{9589}`,
273
+ "notifications": `\u{901A}\u{77E5}`
274
+ };
105
275
 
106
276
 
107
277
  $f49b2d6c91681304$exports = {
package/dist/main.js.map CHANGED
@@ -1 +1 @@
1
- {"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;;;;;;;;;ACAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;ACkCA,4BAAiB;IACf,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;AACX;;CD3DC;;;;AA+BM,SAAS,0CAAY,KAAwB,EAAE,KAAoB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react-aria/toast/src/*.js","packages/@react-aria/toast/src/useToastRegion.ts"],"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 */\nexport {useToast} from './useToast';\nexport {useToastRegion} from './useToastRegion';\n\nexport type {AriaToastRegionProps, ToastRegionAria} from './useToastRegion';\nexport type {AriaToastProps, ToastAria} from './useToast';\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 {AriaButtonProps} from '@react-types/button';\nimport {AriaLabelingProps, DOMAttributes, FocusableElement} from '@react-types/shared';\n// @ts-ignore\nimport intlMessages from '../intl/*.json';\nimport {QueuedToast, ToastState} from '@react-stately/toast';\nimport {RefObject, useEffect, useRef} from 'react';\nimport {useId, useLayoutEffect, useSlotId} from '@react-aria/utils';\nimport {useLocalizedStringFormatter} from '@react-aria/i18n';\n\nexport interface AriaToastProps<T> extends AriaLabelingProps {\n /** The toast object. */\n toast: QueuedToast<T>\n}\n\nexport interface ToastAria {\n /** Props for the toast container element. */\n toastProps: DOMAttributes,\n /** Props for the toast title element. */\n titleProps: DOMAttributes,\n /** Props for the toast description element, if any. */\n descriptionProps: DOMAttributes,\n /** Props for the toast close button. */\n closeButtonProps: AriaButtonProps\n}\n\n/**\n * Provides the behavior and accessibility implementation for a toast component.\n * Toasts display brief, temporary notifications of actions, errors, or other events in an application.\n */\nexport function useToast<T>(props: AriaToastProps<T>, state: ToastState<T>, ref: RefObject<FocusableElement>): ToastAria {\n let {\n key,\n timer,\n timeout,\n animation\n } = props.toast;\n\n useEffect(() => {\n if (!timer) {\n return;\n }\n\n timer.reset(timeout);\n return () => {\n timer.pause();\n };\n }, [timer, timeout]);\n\n // Restore focus to the toast container on unmount.\n // If there are no more toasts, the container will be unmounted\n // and will restore focus to wherever focus was before the user\n // focused the toast region.\n let focusOnUnmount = useRef(null);\n useLayoutEffect(() => {\n let container = ref.current.closest('[role=region]') as HTMLElement;\n return () => {\n if (container && container.contains(document.activeElement)) {\n // Focus must be delayed for focus ring to appear, but we can't wait\n // until useEffect cleanup to check if focus was inside the container.\n focusOnUnmount.current = container;\n }\n };\n }, [ref]);\n\n // eslint-disable-next-line\n useEffect(() => {\n return () => {\n if (focusOnUnmount.current) {\n focusOnUnmount.current.focus();\n }\n };\n }, [ref]);\n\n let titleId = useId();\n let descriptionId = useSlotId();\n let stringFormatter = useLocalizedStringFormatter(intlMessages, '@react-aria/toast');\n\n return {\n toastProps: {\n role: 'alert',\n 'aria-label': props['aria-label'],\n 'aria-labelledby': props['aria-labelledby'] || titleId,\n 'aria-describedby': props['aria-describedby'] || descriptionId,\n 'aria-details': props['aria-details'],\n // Hide toasts that are animating out so VoiceOver doesn't announce them.\n 'aria-hidden': animation === 'exiting' ? 'true' : undefined\n },\n titleProps: {\n id: titleId\n },\n descriptionProps: {\n id: descriptionId\n },\n closeButtonProps: {\n 'aria-label': stringFormatter.format('close'),\n onPress: () => state.close(key)\n }\n };\n}\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}","import {AriaLabelingProps, DOMAttributes} from '@react-types/shared';\nimport {focusWithoutScrolling, mergeProps} from '@react-aria/utils';\nimport {getInteractionModality, useFocusWithin, useHover} from '@react-aria/interactions';\n// @ts-ignore\nimport intlMessages from '../intl/*.json';\nimport {RefObject, useEffect, useRef} from 'react';\nimport {ToastState} from '@react-stately/toast';\nimport {useLandmark} from '@react-aria/landmark';\nimport {useLocalizedStringFormatter} from '@react-aria/i18n';\n\nexport interface AriaToastRegionProps extends AriaLabelingProps {\n /**\n * An accessibility label for the toast region.\n * @default \"Notifications\"\n */\n 'aria-label'?: string\n}\n\nexport interface ToastRegionAria {\n /** Props for the landmark region element. */\n regionProps: DOMAttributes\n}\n\n/**\n * Provides the behavior and accessibility implementation for a toast region containing one or more toasts.\n * Toasts display brief, temporary notifications of actions, errors, or other events in an application.\n */\nexport function useToastRegion<T>(props: AriaToastRegionProps, state: ToastState<T>, ref: RefObject<HTMLElement>): ToastRegionAria {\n let stringFormatter = useLocalizedStringFormatter(intlMessages, '@react-aria/toast');\n let {landmarkProps} = useLandmark({\n role: 'region',\n 'aria-label': props['aria-label'] || stringFormatter.format('notifications')\n }, ref);\n\n let {hoverProps} = useHover({\n onHoverStart: state.pauseAll,\n onHoverEnd: state.resumeAll\n });\n\n let lastFocused = useRef(null);\n let {focusWithinProps} = useFocusWithin({\n onFocusWithin: (e) => {\n state.pauseAll();\n lastFocused.current = e.relatedTarget;\n },\n onBlurWithin: () => {\n state.resumeAll();\n lastFocused.current = null;\n }\n });\n\n // When the region unmounts, restore focus to the last element that had focus\n // before the user moved focus into the region.\n // TODO: handle when the element has unmounted like FocusScope does?\n // eslint-disable-next-line arrow-body-style\n useEffect(() => {\n return () => {\n if (lastFocused.current && document.body.contains(lastFocused.current)) {\n if (getInteractionModality() === 'pointer') {\n focusWithoutScrolling(lastFocused.current);\n } else {\n lastFocused.current.focus();\n }\n }\n };\n }, [ref]);\n\n return {\n regionProps: mergeProps(landmarkProps, hoverProps, focusWithinProps, {\n tabIndex: -1,\n // Mark the toast region as a \"top layer\", so that it:\n // - is not aria-hidden when opening an overlay\n // - allows focus even outside a containing focus scope\n // - doesn’t dismiss overlays when clicking on it, even though it is outside\n // @ts-ignore\n 'data-react-aria-top-layer': true\n })\n };\n}\n"],"names":[],"version":3,"file":"main.js.map"}
1
+ {"mappings":";;;;;;;;;;;;;;;;;AAAA;;;;;;;;;;ACAA;;;;;;;;;;;;AEAA,4BAAiB;IAAG,SAAS,CAAC,mCAAK,CAAC;IAClC,iBAAiB,CAAC,iDAAO,CAAC;AAC5B;;;;ACFA,4BAAiB;IAAG,SAAS,CAAC,iDAAO,CAAC;IACpC,iBAAiB,CAAC,wDAAQ,CAAC;AAC7B;;;;ACFA,4BAAiB;IAAG,SAAS,CAAC,eAAM,CAAC;IACnC,iBAAiB,CAAC,mBAAU,CAAC;AAC/B;;;;ACFA,4BAAiB;IAAG,SAAS,CAAC,GAAG,CAAC;IAChC,iBAAiB,CAAC,cAAW,CAAC;AAChC;;;;ACFA,4BAAiB;IAAG,SAAS,CAAC,YAAS,CAAC;IACtC,iBAAiB,CAAC,kBAAkB,CAAC;AACvC;;;;ACFA,4BAAiB;IAAG,SAAS,CAAC,wDAAQ,CAAC;IACrC,iBAAiB,CAAC,oFAAY,CAAC;AACjC;;;;ACFA,4BAAiB;IAAG,SAAS,CAAC,KAAK,CAAC;IAClC,iBAAiB,CAAC,aAAa,CAAC;AAClC;;;;ACF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AqB,QAAQ,WAC/B,CAAA,GAAA,2CAAoB,EAAE,YAAY,OAAO;qBAEzC,YAAY,OAAO,CAAC,KAAK;;QAG/B;IACF,GAAG;QAAC;KAAI;IAER,OAAO;QACL,aAAa,CAAA,GAAA,gCAAS,EAAE,eAAe,YAAY,kBAAkB;YACnE,UAAU;YACV,sDAAsD;YACtD,iDAAiD;YACjD,yDAAyD;YACzD,8EAA8E;YAC9E,aAAa;YACb,6BAA6B;QAC/B;IACF;AACF;","sources":["packages/@react-aria/toast/src/index.ts","packages/@react-aria/toast/src/useToast.ts","packages/@react-aria/toast/src/*.js","packages/@react-aria/toast/intl/ar-AE.json","packages/@react-aria/toast/intl/bg-BG.json","packages/@react-aria/toast/intl/cs-CZ.json","packages/@react-aria/toast/intl/da-DK.json","packages/@react-aria/toast/intl/de-DE.json","packages/@react-aria/toast/intl/el-GR.json","packages/@react-aria/toast/intl/en-US.json","packages/@react-aria/toast/intl/es-ES.json","packages/@react-aria/toast/intl/et-EE.json","packages/@react-aria/toast/intl/fi-FI.json","packages/@react-aria/toast/intl/fr-FR.json","packages/@react-aria/toast/intl/he-IL.json","packages/@react-aria/toast/intl/hr-HR.json","packages/@react-aria/toast/intl/hu-HU.json","packages/@react-aria/toast/intl/it-IT.json","packages/@react-aria/toast/intl/ja-JP.json","packages/@react-aria/toast/intl/ko-KR.json","packages/@react-aria/toast/intl/lt-LT.json","packages/@react-aria/toast/intl/lv-LV.json","packages/@react-aria/toast/intl/nb-NO.json","packages/@react-aria/toast/intl/nl-NL.json","packages/@react-aria/toast/intl/pl-PL.json","packages/@react-aria/toast/intl/pt-BR.json","packages/@react-aria/toast/intl/pt-PT.json","packages/@react-aria/toast/intl/ro-RO.json","packages/@react-aria/toast/intl/ru-RU.json","packages/@react-aria/toast/intl/sk-SK.json","packages/@react-aria/toast/intl/sl-SI.json","packages/@react-aria/toast/intl/sr-SP.json","packages/@react-aria/toast/intl/sv-SE.json","packages/@react-aria/toast/intl/tr-TR.json","packages/@react-aria/toast/intl/uk-UA.json","packages/@react-aria/toast/intl/zh-CN.json","packages/@react-aria/toast/intl/zh-TW.json","packages/@react-aria/toast/src/useToastRegion.ts"],"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 */\nexport {useToast} from './useToast';\nexport {useToastRegion} from './useToastRegion';\n\nexport type {AriaToastRegionProps, ToastRegionAria} from './useToastRegion';\nexport type {AriaToastProps, ToastAria} from './useToast';\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 {AriaButtonProps} from '@react-types/button';\nimport {AriaLabelingProps, DOMAttributes, FocusableElement} from '@react-types/shared';\n// @ts-ignore\nimport intlMessages from '../intl/*.json';\nimport {QueuedToast, ToastState} from '@react-stately/toast';\nimport {RefObject, useEffect, useRef} from 'react';\nimport {useId, useLayoutEffect, useSlotId} from '@react-aria/utils';\nimport {useLocalizedStringFormatter} from '@react-aria/i18n';\n\nexport interface AriaToastProps<T> extends AriaLabelingProps {\n /** The toast object. */\n toast: QueuedToast<T>\n}\n\nexport interface ToastAria {\n /** Props for the toast container element. */\n toastProps: DOMAttributes,\n /** Props for the toast title element. */\n titleProps: DOMAttributes,\n /** Props for the toast description element, if any. */\n descriptionProps: DOMAttributes,\n /** Props for the toast close button. */\n closeButtonProps: AriaButtonProps\n}\n\n/**\n * Provides the behavior and accessibility implementation for a toast component.\n * Toasts display brief, temporary notifications of actions, errors, or other events in an application.\n */\nexport function useToast<T>(props: AriaToastProps<T>, state: ToastState<T>, ref: RefObject<FocusableElement>): ToastAria {\n let {\n key,\n timer,\n timeout,\n animation\n } = props.toast;\n\n useEffect(() => {\n if (!timer) {\n return;\n }\n\n timer.reset(timeout);\n return () => {\n timer.pause();\n };\n }, [timer, timeout]);\n\n // Restore focus to the toast container on unmount.\n // If there are no more toasts, the container will be unmounted\n // and will restore focus to wherever focus was before the user\n // focused the toast region.\n let focusOnUnmount = useRef(null);\n useLayoutEffect(() => {\n let container = ref.current.closest('[role=region]') as HTMLElement;\n return () => {\n if (container && container.contains(document.activeElement)) {\n // Focus must be delayed for focus ring to appear, but we can't wait\n // until useEffect cleanup to check if focus was inside the container.\n focusOnUnmount.current = container;\n }\n };\n }, [ref]);\n\n // eslint-disable-next-line\n useEffect(() => {\n return () => {\n if (focusOnUnmount.current) {\n focusOnUnmount.current.focus();\n }\n };\n }, [ref]);\n\n let titleId = useId();\n let descriptionId = useSlotId();\n let stringFormatter = useLocalizedStringFormatter(intlMessages, '@react-aria/toast');\n\n return {\n toastProps: {\n role: 'alert',\n 'aria-label': props['aria-label'],\n 'aria-labelledby': props['aria-labelledby'] || titleId,\n 'aria-describedby': props['aria-describedby'] || descriptionId,\n 'aria-details': props['aria-details'],\n // Hide toasts that are animating out so VoiceOver doesn't announce them.\n 'aria-hidden': animation === 'exiting' ? 'true' : undefined\n },\n titleProps: {\n id: titleId\n },\n descriptionProps: {\n id: descriptionId\n },\n closeButtonProps: {\n 'aria-label': stringFormatter.format('close'),\n onPress: () => state.close(key)\n }\n };\n}\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 \"close\": \"إغلاق\",\n \"notifications\": \"إشعارات\"\n}\n","{\n \"close\": \"Затвори\",\n \"notifications\": \"Известия\"\n}\n","{\n \"close\": \"Zavřít\",\n \"notifications\": \"Upozornění\"\n}\n","{\n \"close\": \"Luk\",\n \"notifications\": \"Påmindelser\"\n}\n","{\n \"close\": \"Schließen\",\n \"notifications\": \"Benachrichtigungen\"\n}\n","{\n \"close\": \"Κλείσιμο\",\n \"notifications\": \"Ειδοποιήσεις\"\n}\n","{\n \"close\": \"Close\",\n \"notifications\": \"Notifications\"\n}\n","{\n \"close\": \"Cerrar\",\n \"notifications\": \"Notificaciones\"\n}\n","{\n \"close\": \"Sule\",\n \"notifications\": \"Teated\"\n}\n","{\n \"close\": \"Sulje\",\n \"notifications\": \"Ilmoitukset\"\n}\n","{\n \"close\": \"Fermer\",\n \"notifications\": \"Notifications\"\n}\n","{\n \"close\": \"סגור\",\n \"notifications\": \"התראות\"\n}\n","{\n \"close\": \"Zatvori\",\n \"notifications\": \"Obavijesti\"\n}\n","{\n \"close\": \"Bezárás\",\n \"notifications\": \"Értesítések\"\n}\n","{\n \"close\": \"Chiudi\",\n \"notifications\": \"Notifiche\"\n}\n","{\n \"close\": \"閉じる\",\n \"notifications\": \"通知\"\n}\n","{\n \"close\": \"닫기\",\n \"notifications\": \"알림\"\n}\n","{\n \"close\": \"Uždaryti\",\n \"notifications\": \"Pranešimai\"\n}\n","{\n \"close\": \"Aizvērt\",\n \"notifications\": \"Paziņojumi\"\n}\n","{\n \"close\": \"Lukk\",\n \"notifications\": \"Varsler\"\n}\n","{\n \"close\": \"Sluiten\",\n \"notifications\": \"Meldingen\"\n}\n","{\n \"close\": \"Zamknij\",\n \"notifications\": \"Powiadomienia\"\n}\n","{\n \"close\": \"Fechar\",\n \"notifications\": \"Notificações\"\n}\n","{\n \"close\": \"Fechar\",\n \"notifications\": \"Notificações\"\n}\n","{\n \"close\": \"Închideţi\",\n \"notifications\": \"Notificări\"\n}\n","{\n \"close\": \"Закрыть\",\n \"notifications\": \"Уведомления\"\n}\n","{\n \"close\": \"Zatvoriť\",\n \"notifications\": \"Oznámenia\"\n}\n","{\n \"close\": \"Zapri\",\n \"notifications\": \"Obvestila\"\n}\n","{\n \"close\": \"Zatvori\",\n \"notifications\": \"Obaveštenja\"\n}\n","{\n \"close\": \"Stäng\",\n \"notifications\": \"Aviseringar\"\n}\n","{\n \"close\": \"Kapat\",\n \"notifications\": \"Bildirimler\"\n}\n","{\n \"close\": \"Закрити\",\n \"notifications\": \"Сповіщення\"\n}\n","{\n \"close\": \"关闭\",\n \"notifications\": \"通知\"\n}\n","{\n \"close\": \"關閉\",\n \"notifications\": \"通知\"\n}\n","import {AriaLabelingProps, DOMAttributes} from '@react-types/shared';\nimport {focusWithoutScrolling, mergeProps} from '@react-aria/utils';\nimport {getInteractionModality, useFocusWithin, useHover} from '@react-aria/interactions';\n// @ts-ignore\nimport intlMessages from '../intl/*.json';\nimport {RefObject, useEffect, useRef} from 'react';\nimport {ToastState} from '@react-stately/toast';\nimport {useLandmark} from '@react-aria/landmark';\nimport {useLocalizedStringFormatter} from '@react-aria/i18n';\n\nexport interface AriaToastRegionProps extends AriaLabelingProps {\n /**\n * An accessibility label for the toast region.\n * @default \"Notifications\"\n */\n 'aria-label'?: string\n}\n\nexport interface ToastRegionAria {\n /** Props for the landmark region element. */\n regionProps: DOMAttributes\n}\n\n/**\n * Provides the behavior and accessibility implementation for a toast region containing one or more toasts.\n * Toasts display brief, temporary notifications of actions, errors, or other events in an application.\n */\nexport function useToastRegion<T>(props: AriaToastRegionProps, state: ToastState<T>, ref: RefObject<HTMLElement>): ToastRegionAria {\n let stringFormatter = useLocalizedStringFormatter(intlMessages, '@react-aria/toast');\n let {landmarkProps} = useLandmark({\n role: 'region',\n 'aria-label': props['aria-label'] || stringFormatter.format('notifications')\n }, ref);\n\n let {hoverProps} = useHover({\n onHoverStart: state.pauseAll,\n onHoverEnd: state.resumeAll\n });\n\n let lastFocused = useRef(null);\n let {focusWithinProps} = useFocusWithin({\n onFocusWithin: (e) => {\n state.pauseAll();\n lastFocused.current = e.relatedTarget;\n },\n onBlurWithin: () => {\n state.resumeAll();\n lastFocused.current = null;\n }\n });\n\n // When the region unmounts, restore focus to the last element that had focus\n // before the user moved focus into the region.\n // TODO: handle when the element has unmounted like FocusScope does?\n // eslint-disable-next-line arrow-body-style\n useEffect(() => {\n return () => {\n if (lastFocused.current && document.body.contains(lastFocused.current)) {\n if (getInteractionModality() === 'pointer') {\n focusWithoutScrolling(lastFocused.current);\n } else {\n lastFocused.current.focus();\n }\n }\n };\n }, [ref]);\n\n return {\n regionProps: mergeProps(landmarkProps, hoverProps, focusWithinProps, {\n tabIndex: -1,\n // Mark the toast region as a \"top layer\", so that it:\n // - is not aria-hidden when opening an overlay\n // - allows focus even outside a containing focus scope\n // - doesn’t dismiss overlays when clicking on it, even though it is outside\n // @ts-ignore\n 'data-react-aria-top-layer': true\n })\n };\n}\n"],"names":[],"version":3,"file":"main.js.map"}