@react-aria/toast 3.0.0-beta.1 → 3.0.0-beta.11

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 (193) hide show
  1. package/dist/ar-AE.main.js +7 -0
  2. package/dist/ar-AE.main.js.map +1 -0
  3. package/dist/ar-AE.mjs +9 -0
  4. package/dist/ar-AE.module.js +9 -0
  5. package/dist/ar-AE.module.js.map +1 -0
  6. package/dist/bg-BG.main.js +7 -0
  7. package/dist/bg-BG.main.js.map +1 -0
  8. package/dist/bg-BG.mjs +9 -0
  9. package/dist/bg-BG.module.js +9 -0
  10. package/dist/bg-BG.module.js.map +1 -0
  11. package/dist/cs-CZ.main.js +7 -0
  12. package/dist/cs-CZ.main.js.map +1 -0
  13. package/dist/cs-CZ.mjs +9 -0
  14. package/dist/cs-CZ.module.js +9 -0
  15. package/dist/cs-CZ.module.js.map +1 -0
  16. package/dist/da-DK.main.js +7 -0
  17. package/dist/da-DK.main.js.map +1 -0
  18. package/dist/da-DK.mjs +9 -0
  19. package/dist/da-DK.module.js +9 -0
  20. package/dist/da-DK.module.js.map +1 -0
  21. package/dist/de-DE.main.js +7 -0
  22. package/dist/de-DE.main.js.map +1 -0
  23. package/dist/de-DE.mjs +9 -0
  24. package/dist/de-DE.module.js +9 -0
  25. package/dist/de-DE.module.js.map +1 -0
  26. package/dist/el-GR.main.js +7 -0
  27. package/dist/el-GR.main.js.map +1 -0
  28. package/dist/el-GR.mjs +9 -0
  29. package/dist/el-GR.module.js +9 -0
  30. package/dist/el-GR.module.js.map +1 -0
  31. package/dist/en-US.main.js +7 -0
  32. package/dist/en-US.main.js.map +1 -0
  33. package/dist/en-US.mjs +9 -0
  34. package/dist/en-US.module.js +9 -0
  35. package/dist/en-US.module.js.map +1 -0
  36. package/dist/es-ES.main.js +7 -0
  37. package/dist/es-ES.main.js.map +1 -0
  38. package/dist/es-ES.mjs +9 -0
  39. package/dist/es-ES.module.js +9 -0
  40. package/dist/es-ES.module.js.map +1 -0
  41. package/dist/et-EE.main.js +7 -0
  42. package/dist/et-EE.main.js.map +1 -0
  43. package/dist/et-EE.mjs +9 -0
  44. package/dist/et-EE.module.js +9 -0
  45. package/dist/et-EE.module.js.map +1 -0
  46. package/dist/fi-FI.main.js +7 -0
  47. package/dist/fi-FI.main.js.map +1 -0
  48. package/dist/fi-FI.mjs +9 -0
  49. package/dist/fi-FI.module.js +9 -0
  50. package/dist/fi-FI.module.js.map +1 -0
  51. package/dist/fr-FR.main.js +7 -0
  52. package/dist/fr-FR.main.js.map +1 -0
  53. package/dist/fr-FR.mjs +9 -0
  54. package/dist/fr-FR.module.js +9 -0
  55. package/dist/fr-FR.module.js.map +1 -0
  56. package/dist/he-IL.main.js +7 -0
  57. package/dist/he-IL.main.js.map +1 -0
  58. package/dist/he-IL.mjs +9 -0
  59. package/dist/he-IL.module.js +9 -0
  60. package/dist/he-IL.module.js.map +1 -0
  61. package/dist/hr-HR.main.js +7 -0
  62. package/dist/hr-HR.main.js.map +1 -0
  63. package/dist/hr-HR.mjs +9 -0
  64. package/dist/hr-HR.module.js +9 -0
  65. package/dist/hr-HR.module.js.map +1 -0
  66. package/dist/hu-HU.main.js +7 -0
  67. package/dist/hu-HU.main.js.map +1 -0
  68. package/dist/hu-HU.mjs +9 -0
  69. package/dist/hu-HU.module.js +9 -0
  70. package/dist/hu-HU.module.js.map +1 -0
  71. package/dist/import.mjs +3 -414
  72. package/dist/intlStrings.main.js +108 -0
  73. package/dist/intlStrings.main.js.map +1 -0
  74. package/dist/intlStrings.mjs +110 -0
  75. package/dist/intlStrings.module.js +110 -0
  76. package/dist/intlStrings.module.js.map +1 -0
  77. package/dist/it-IT.main.js +7 -0
  78. package/dist/it-IT.main.js.map +1 -0
  79. package/dist/it-IT.mjs +9 -0
  80. package/dist/it-IT.module.js +9 -0
  81. package/dist/it-IT.module.js.map +1 -0
  82. package/dist/ja-JP.main.js +7 -0
  83. package/dist/ja-JP.main.js.map +1 -0
  84. package/dist/ja-JP.mjs +9 -0
  85. package/dist/ja-JP.module.js +9 -0
  86. package/dist/ja-JP.module.js.map +1 -0
  87. package/dist/ko-KR.main.js +7 -0
  88. package/dist/ko-KR.main.js.map +1 -0
  89. package/dist/ko-KR.mjs +9 -0
  90. package/dist/ko-KR.module.js +9 -0
  91. package/dist/ko-KR.module.js.map +1 -0
  92. package/dist/lt-LT.main.js +7 -0
  93. package/dist/lt-LT.main.js.map +1 -0
  94. package/dist/lt-LT.mjs +9 -0
  95. package/dist/lt-LT.module.js +9 -0
  96. package/dist/lt-LT.module.js.map +1 -0
  97. package/dist/lv-LV.main.js +7 -0
  98. package/dist/lv-LV.main.js.map +1 -0
  99. package/dist/lv-LV.mjs +9 -0
  100. package/dist/lv-LV.module.js +9 -0
  101. package/dist/lv-LV.module.js.map +1 -0
  102. package/dist/main.js +6 -416
  103. package/dist/main.js.map +1 -1
  104. package/dist/module.js +3 -414
  105. package/dist/module.js.map +1 -1
  106. package/dist/nb-NO.main.js +7 -0
  107. package/dist/nb-NO.main.js.map +1 -0
  108. package/dist/nb-NO.mjs +9 -0
  109. package/dist/nb-NO.module.js +9 -0
  110. package/dist/nb-NO.module.js.map +1 -0
  111. package/dist/nl-NL.main.js +7 -0
  112. package/dist/nl-NL.main.js.map +1 -0
  113. package/dist/nl-NL.mjs +9 -0
  114. package/dist/nl-NL.module.js +9 -0
  115. package/dist/nl-NL.module.js.map +1 -0
  116. package/dist/pl-PL.main.js +7 -0
  117. package/dist/pl-PL.main.js.map +1 -0
  118. package/dist/pl-PL.mjs +9 -0
  119. package/dist/pl-PL.module.js +9 -0
  120. package/dist/pl-PL.module.js.map +1 -0
  121. package/dist/pt-BR.main.js +7 -0
  122. package/dist/pt-BR.main.js.map +1 -0
  123. package/dist/pt-BR.mjs +9 -0
  124. package/dist/pt-BR.module.js +9 -0
  125. package/dist/pt-BR.module.js.map +1 -0
  126. package/dist/pt-PT.main.js +7 -0
  127. package/dist/pt-PT.main.js.map +1 -0
  128. package/dist/pt-PT.mjs +9 -0
  129. package/dist/pt-PT.module.js +9 -0
  130. package/dist/pt-PT.module.js.map +1 -0
  131. package/dist/ro-RO.main.js +7 -0
  132. package/dist/ro-RO.main.js.map +1 -0
  133. package/dist/ro-RO.mjs +9 -0
  134. package/dist/ro-RO.module.js +9 -0
  135. package/dist/ro-RO.module.js.map +1 -0
  136. package/dist/ru-RU.main.js +7 -0
  137. package/dist/ru-RU.main.js.map +1 -0
  138. package/dist/ru-RU.mjs +9 -0
  139. package/dist/ru-RU.module.js +9 -0
  140. package/dist/ru-RU.module.js.map +1 -0
  141. package/dist/sk-SK.main.js +7 -0
  142. package/dist/sk-SK.main.js.map +1 -0
  143. package/dist/sk-SK.mjs +9 -0
  144. package/dist/sk-SK.module.js +9 -0
  145. package/dist/sk-SK.module.js.map +1 -0
  146. package/dist/sl-SI.main.js +7 -0
  147. package/dist/sl-SI.main.js.map +1 -0
  148. package/dist/sl-SI.mjs +9 -0
  149. package/dist/sl-SI.module.js +9 -0
  150. package/dist/sl-SI.module.js.map +1 -0
  151. package/dist/sr-SP.main.js +7 -0
  152. package/dist/sr-SP.main.js.map +1 -0
  153. package/dist/sr-SP.mjs +9 -0
  154. package/dist/sr-SP.module.js +9 -0
  155. package/dist/sr-SP.module.js.map +1 -0
  156. package/dist/sv-SE.main.js +7 -0
  157. package/dist/sv-SE.main.js.map +1 -0
  158. package/dist/sv-SE.mjs +9 -0
  159. package/dist/sv-SE.module.js +9 -0
  160. package/dist/sv-SE.module.js.map +1 -0
  161. package/dist/tr-TR.main.js +7 -0
  162. package/dist/tr-TR.main.js.map +1 -0
  163. package/dist/tr-TR.mjs +9 -0
  164. package/dist/tr-TR.module.js +9 -0
  165. package/dist/tr-TR.module.js.map +1 -0
  166. package/dist/uk-UA.main.js +7 -0
  167. package/dist/uk-UA.main.js.map +1 -0
  168. package/dist/uk-UA.mjs +9 -0
  169. package/dist/uk-UA.module.js +9 -0
  170. package/dist/uk-UA.module.js.map +1 -0
  171. package/dist/useToast.main.js +92 -0
  172. package/dist/useToast.main.js.map +1 -0
  173. package/dist/useToast.mjs +87 -0
  174. package/dist/useToast.module.js +87 -0
  175. package/dist/useToast.module.js.map +1 -0
  176. package/dist/useToastRegion.main.js +73 -0
  177. package/dist/useToastRegion.main.js.map +1 -0
  178. package/dist/useToastRegion.mjs +68 -0
  179. package/dist/useToastRegion.module.js +68 -0
  180. package/dist/useToastRegion.module.js.map +1 -0
  181. package/dist/zh-CN.main.js +7 -0
  182. package/dist/zh-CN.main.js.map +1 -0
  183. package/dist/zh-CN.mjs +9 -0
  184. package/dist/zh-CN.module.js +9 -0
  185. package/dist/zh-CN.module.js.map +1 -0
  186. package/dist/zh-TW.main.js +7 -0
  187. package/dist/zh-TW.main.js.map +1 -0
  188. package/dist/zh-TW.mjs +9 -0
  189. package/dist/zh-TW.module.js +9 -0
  190. package/dist/zh-TW.module.js.map +1 -0
  191. package/package.json +10 -10
  192. package/src/useToast.ts +1 -1
  193. package/src/useToastRegion.ts +1 -1
package/dist/import.mjs CHANGED
@@ -1,12 +1,6 @@
1
- import {useEffect as $5bA4N$useEffect, useRef as $5bA4N$useRef} from "react";
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";
3
- import {useLocalizedStringFormatter as $5bA4N$useLocalizedStringFormatter} from "@react-aria/i18n";
4
- import {useHover as $5bA4N$useHover, useFocusWithin as $5bA4N$useFocusWithin, getInteractionModality as $5bA4N$getInteractionModality} from "@react-aria/interactions";
5
- import {useLandmark as $5bA4N$useLandmark} from "@react-aria/landmark";
1
+ import {useToast as $d6542812f0669241$export$a407b657d3044108} from "./useToast.mjs";
2
+ import {useToastRegion as $6cc546b19ee7130a$export$b8cbbb20a51697de} from "./useToastRegion.mjs";
6
3
 
7
- function $parcel$interopDefault(a) {
8
- return a && a.__esModule ? a.default : a;
9
- }
10
4
  /*
11
5
  * Copyright 2020 Adobe. All rights reserved.
12
6
  * This file is licensed to you under the Apache License, Version 2.0 (the "License");
@@ -17,412 +11,7 @@ function $parcel$interopDefault(a) {
17
11
  * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
18
12
  * OF ANY KIND, either express or implied. See the License for the specific language
19
13
  * governing permissions and limitations under the License.
20
- */ /*
21
- * Copyright 2020 Adobe. All rights reserved.
22
- * This file is licensed to you under the Apache License, Version 2.0 (the "License");
23
- * you may not use this file except in compliance with the License. You may obtain a copy
24
- * of the License at http://www.apache.org/licenses/LICENSE-2.0
25
- *
26
- * Unless required by applicable law or agreed to in writing, software distributed under
27
- * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
28
- * OF ANY KIND, either express or implied. See the License for the specific language
29
- * governing permissions and limitations under the License.
30
- */ var $ebf9e0ddd819695a$exports = {};
31
- var $ff9177efc58547ad$exports = {};
32
- $ff9177efc58547ad$exports = {
33
- "close": `إغلاق`,
34
- "notifications": `إشعارات`
35
- };
36
-
37
-
38
- var $25eb7c0c0c45e544$exports = {};
39
- $25eb7c0c0c45e544$exports = {
40
- "close": `Затвори`,
41
- "notifications": `Известия`
42
- };
43
-
44
-
45
- var $28feffc3d61a8691$exports = {};
46
- $28feffc3d61a8691$exports = {
47
- "close": `Zavřít`,
48
- "notifications": `Upozornění`
49
- };
50
-
51
-
52
- var $390d441203d25ff4$exports = {};
53
- $390d441203d25ff4$exports = {
54
- "close": `Luk`,
55
- "notifications": `Påmindelser`
56
- };
57
-
58
-
59
- var $7063c2d0f14f979a$exports = {};
60
- $7063c2d0f14f979a$exports = {
61
- "close": `Schließen`,
62
- "notifications": `Benachrichtigungen`
63
- };
64
-
65
-
66
- var $2dfc1dbb6590af88$exports = {};
67
- $2dfc1dbb6590af88$exports = {
68
- "close": `Κλείσιμο`,
69
- "notifications": `Ειδοποιήσεις`
70
- };
71
-
72
-
73
- var $9a12ff1caae5a7a5$exports = {};
74
- $9a12ff1caae5a7a5$exports = {
75
- "close": `Close`,
76
- "notifications": `Notifications`
77
- };
78
-
79
-
80
- var $f4095fb5a72adbe6$exports = {};
81
- $f4095fb5a72adbe6$exports = {
82
- "close": `Cerrar`,
83
- "notifications": `Notificaciones`
84
- };
85
-
86
-
87
- var $75bc5191b9d7826a$exports = {};
88
- $75bc5191b9d7826a$exports = {
89
- "close": `Sule`,
90
- "notifications": `Teated`
91
- };
92
-
93
-
94
- var $e4b9aef18b0db8dc$exports = {};
95
- $e4b9aef18b0db8dc$exports = {
96
- "close": `Sulje`,
97
- "notifications": `Ilmoitukset`
98
- };
99
-
100
-
101
- var $888756784d832bd7$exports = {};
102
- $888756784d832bd7$exports = {
103
- "close": `Fermer`,
104
- "notifications": `Notifications`
105
- };
106
-
107
-
108
- var $6835949b68a1fabf$exports = {};
109
- $6835949b68a1fabf$exports = {
110
- "close": `סגור`,
111
- "notifications": `התראות`
112
- };
113
-
114
-
115
- var $87ffcbc0b651e40b$exports = {};
116
- $87ffcbc0b651e40b$exports = {
117
- "close": `Zatvori`,
118
- "notifications": `Obavijesti`
119
- };
120
-
121
-
122
- var $dc6e3b2813600d69$exports = {};
123
- $dc6e3b2813600d69$exports = {
124
- "close": `Bezárás`,
125
- "notifications": `Értesítések`
126
- };
127
-
128
-
129
- var $fe136bcbacfcfa14$exports = {};
130
- $fe136bcbacfcfa14$exports = {
131
- "close": `Chiudi`,
132
- "notifications": `Notifiche`
133
- };
134
-
135
-
136
- var $8fb53a929b46df83$exports = {};
137
- $8fb53a929b46df83$exports = {
138
- "close": `閉じる`,
139
- "notifications": `通知`
140
- };
141
-
142
-
143
- var $2c38dbfaf041a865$exports = {};
144
- $2c38dbfaf041a865$exports = {
145
- "close": `닫기`,
146
- "notifications": `알림`
147
- };
148
-
149
-
150
- var $48f3f33a29908d4c$exports = {};
151
- $48f3f33a29908d4c$exports = {
152
- "close": `Uždaryti`,
153
- "notifications": `Pranešimai`
154
- };
155
-
156
-
157
- var $9867160d996455a0$exports = {};
158
- $9867160d996455a0$exports = {
159
- "close": `Aizvērt`,
160
- "notifications": `Paziņojumi`
161
- };
162
-
163
-
164
- var $196258ea25c96487$exports = {};
165
- $196258ea25c96487$exports = {
166
- "close": `Lukk`,
167
- "notifications": `Varsler`
168
- };
169
-
170
-
171
- var $949061cb954e8000$exports = {};
172
- $949061cb954e8000$exports = {
173
- "close": `Sluiten`,
174
- "notifications": `Meldingen`
175
- };
176
-
177
-
178
- var $8189bed27add1ad3$exports = {};
179
- $8189bed27add1ad3$exports = {
180
- "close": `Zamknij`,
181
- "notifications": `Powiadomienia`
182
- };
183
-
184
-
185
- var $a361756a93b6e28c$exports = {};
186
- $a361756a93b6e28c$exports = {
187
- "close": `Fechar`,
188
- "notifications": `Notificações`
189
- };
190
-
191
-
192
- var $034c7393857c8db0$exports = {};
193
- $034c7393857c8db0$exports = {
194
- "close": `Fechar`,
195
- "notifications": `Notificações`
196
- };
197
-
198
-
199
- var $e33d3b3868478b04$exports = {};
200
- $e33d3b3868478b04$exports = {
201
- "close": `Închideţi`,
202
- "notifications": `Notificări`
203
- };
204
-
205
-
206
- var $9a7dcb914b29cd9f$exports = {};
207
- $9a7dcb914b29cd9f$exports = {
208
- "close": `Закрыть`,
209
- "notifications": `Уведомления`
210
- };
211
-
212
-
213
- var $e43d964a0c7f1266$exports = {};
214
- $e43d964a0c7f1266$exports = {
215
- "close": `Zatvoriť`,
216
- "notifications": `Oznámenia`
217
- };
218
-
219
-
220
- var $0bc56cee3275bcaa$exports = {};
221
- $0bc56cee3275bcaa$exports = {
222
- "close": `Zapri`,
223
- "notifications": `Obvestila`
224
- };
225
-
226
-
227
- var $7dbdd7289c10d2ba$exports = {};
228
- $7dbdd7289c10d2ba$exports = {
229
- "close": `Zatvori`,
230
- "notifications": `Obaveštenja`
231
- };
232
-
233
-
234
- var $ccbe6066c10b1e53$exports = {};
235
- $ccbe6066c10b1e53$exports = {
236
- "close": `Stäng`,
237
- "notifications": `Aviseringar`
238
- };
239
-
240
-
241
- var $9d503476b9d858b7$exports = {};
242
- $9d503476b9d858b7$exports = {
243
- "close": `Kapat`,
244
- "notifications": `Bildirimler`
245
- };
246
-
247
-
248
- var $32ee419c7b9b7a83$exports = {};
249
- $32ee419c7b9b7a83$exports = {
250
- "close": `Закрити`,
251
- "notifications": `Сповіщення`
252
- };
253
-
254
-
255
- var $122525af1cb737c7$exports = {};
256
- $122525af1cb737c7$exports = {
257
- "close": `关闭`,
258
- "notifications": `通知`
259
- };
260
-
261
-
262
- var $52e8b1b00094e5a3$exports = {};
263
- $52e8b1b00094e5a3$exports = {
264
- "close": `關閉`,
265
- "notifications": `通知`
266
- };
267
-
268
-
269
- $ebf9e0ddd819695a$exports = {
270
- "ar-AE": $ff9177efc58547ad$exports,
271
- "bg-BG": $25eb7c0c0c45e544$exports,
272
- "cs-CZ": $28feffc3d61a8691$exports,
273
- "da-DK": $390d441203d25ff4$exports,
274
- "de-DE": $7063c2d0f14f979a$exports,
275
- "el-GR": $2dfc1dbb6590af88$exports,
276
- "en-US": $9a12ff1caae5a7a5$exports,
277
- "es-ES": $f4095fb5a72adbe6$exports,
278
- "et-EE": $75bc5191b9d7826a$exports,
279
- "fi-FI": $e4b9aef18b0db8dc$exports,
280
- "fr-FR": $888756784d832bd7$exports,
281
- "he-IL": $6835949b68a1fabf$exports,
282
- "hr-HR": $87ffcbc0b651e40b$exports,
283
- "hu-HU": $dc6e3b2813600d69$exports,
284
- "it-IT": $fe136bcbacfcfa14$exports,
285
- "ja-JP": $8fb53a929b46df83$exports,
286
- "ko-KR": $2c38dbfaf041a865$exports,
287
- "lt-LT": $48f3f33a29908d4c$exports,
288
- "lv-LV": $9867160d996455a0$exports,
289
- "nb-NO": $196258ea25c96487$exports,
290
- "nl-NL": $949061cb954e8000$exports,
291
- "pl-PL": $8189bed27add1ad3$exports,
292
- "pt-BR": $a361756a93b6e28c$exports,
293
- "pt-PT": $034c7393857c8db0$exports,
294
- "ro-RO": $e33d3b3868478b04$exports,
295
- "ru-RU": $9a7dcb914b29cd9f$exports,
296
- "sk-SK": $e43d964a0c7f1266$exports,
297
- "sl-SI": $0bc56cee3275bcaa$exports,
298
- "sr-SP": $7dbdd7289c10d2ba$exports,
299
- "sv-SE": $ccbe6066c10b1e53$exports,
300
- "tr-TR": $9d503476b9d858b7$exports,
301
- "uk-UA": $32ee419c7b9b7a83$exports,
302
- "zh-CN": $122525af1cb737c7$exports,
303
- "zh-TW": $52e8b1b00094e5a3$exports
304
- };
305
-
306
-
307
-
308
-
309
-
310
- function $d6542812f0669241$export$a407b657d3044108(props, state, ref) {
311
- let { key: key , timer: timer , timeout: timeout , animation: animation } = props.toast;
312
- (0, $5bA4N$useEffect)(()=>{
313
- if (!timer) return;
314
- timer.reset(timeout);
315
- return ()=>{
316
- timer.pause();
317
- };
318
- }, [
319
- timer,
320
- timeout
321
- ]);
322
- // Restore focus to the toast container on unmount.
323
- // If there are no more toasts, the container will be unmounted
324
- // and will restore focus to wherever focus was before the user
325
- // focused the toast region.
326
- let focusOnUnmount = (0, $5bA4N$useRef)(null);
327
- (0, $5bA4N$useLayoutEffect)(()=>{
328
- let container = ref.current.closest("[role=region]");
329
- return ()=>{
330
- if (container && container.contains(document.activeElement)) // Focus must be delayed for focus ring to appear, but we can't wait
331
- // until useEffect cleanup to check if focus was inside the container.
332
- focusOnUnmount.current = container;
333
- };
334
- }, [
335
- ref
336
- ]);
337
- // eslint-disable-next-line
338
- (0, $5bA4N$useEffect)(()=>{
339
- return ()=>{
340
- if (focusOnUnmount.current) focusOnUnmount.current.focus();
341
- };
342
- }, [
343
- ref
344
- ]);
345
- let titleId = (0, $5bA4N$useId)();
346
- let descriptionId = (0, $5bA4N$useSlotId)();
347
- let stringFormatter = (0, $5bA4N$useLocalizedStringFormatter)((0, (/*@__PURE__*/$parcel$interopDefault($ebf9e0ddd819695a$exports))));
348
- return {
349
- toastProps: {
350
- role: "alert",
351
- "aria-label": props["aria-label"],
352
- "aria-labelledby": props["aria-labelledby"] || titleId,
353
- "aria-describedby": props["aria-describedby"] || descriptionId,
354
- "aria-details": props["aria-details"],
355
- // Hide toasts that are animating out so VoiceOver doesn't announce them.
356
- "aria-hidden": animation === "exiting" ? "true" : undefined
357
- },
358
- titleProps: {
359
- id: titleId
360
- },
361
- descriptionProps: {
362
- id: descriptionId
363
- },
364
- closeButtonProps: {
365
- "aria-label": stringFormatter.format("close"),
366
- onPress: ()=>state.close(key)
367
- }
368
- };
369
- }
370
-
371
-
372
-
373
-
374
-
375
-
376
-
377
-
378
- function $6cc546b19ee7130a$export$b8cbbb20a51697de(props, state, ref) {
379
- let stringFormatter = (0, $5bA4N$useLocalizedStringFormatter)((0, (/*@__PURE__*/$parcel$interopDefault($ebf9e0ddd819695a$exports))));
380
- let { landmarkProps: landmarkProps } = (0, $5bA4N$useLandmark)({
381
- role: "region",
382
- "aria-label": props["aria-label"] || stringFormatter.format("notifications")
383
- }, ref);
384
- let { hoverProps: hoverProps } = (0, $5bA4N$useHover)({
385
- onHoverStart: state.pauseAll,
386
- onHoverEnd: state.resumeAll
387
- });
388
- let lastFocused = (0, $5bA4N$useRef)(null);
389
- let { focusWithinProps: focusWithinProps } = (0, $5bA4N$useFocusWithin)({
390
- onFocusWithin: (e)=>{
391
- state.pauseAll();
392
- lastFocused.current = e.relatedTarget;
393
- },
394
- onBlurWithin: ()=>{
395
- state.resumeAll();
396
- lastFocused.current = null;
397
- }
398
- });
399
- // When the region unmounts, restore focus to the last element that had focus
400
- // before the user moved focus into the region.
401
- // TODO: handle when the element has unmounted like FocusScope does?
402
- // eslint-disable-next-line arrow-body-style
403
- (0, $5bA4N$useEffect)(()=>{
404
- return ()=>{
405
- if (lastFocused.current && document.body.contains(lastFocused.current)) {
406
- if ((0, $5bA4N$getInteractionModality)() === "pointer") (0, $5bA4N$focusWithoutScrolling)(lastFocused.current);
407
- else lastFocused.current.focus();
408
- }
409
- };
410
- }, [
411
- ref
412
- ]);
413
- return {
414
- regionProps: (0, $5bA4N$mergeProps)(landmarkProps, hoverProps, focusWithinProps, {
415
- tabIndex: -1,
416
- // Mark the toast region as a "top layer", so that it:
417
- // - is not aria-hidden when opening an overlay
418
- // - allows focus even outside a containing focus scope
419
- // - doesn’t dismiss overlays when clicking on it, even though it is outside
420
- // @ts-ignore
421
- "data-react-aria-top-layer": true
422
- })
423
- };
424
- }
425
-
14
+ */
426
15
 
427
16
 
428
17
 
@@ -0,0 +1,108 @@
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
+
36
+
37
+
38
+
39
+
40
+
41
+
42
+
43
+
44
+
45
+
46
+
47
+
48
+
49
+
50
+
51
+
52
+
53
+
54
+
55
+
56
+
57
+
58
+
59
+
60
+
61
+
62
+
63
+
64
+
65
+
66
+
67
+
68
+
69
+
70
+ module.exports = {
71
+ "ar-AE": $3ba38fcbd805da3c$exports,
72
+ "bg-BG": $06073da8a2e837af$exports,
73
+ "cs-CZ": $f53ed7e9d51b5d55$exports,
74
+ "da-DK": $a6b6afdb5a98f76c$exports,
75
+ "de-DE": $52ad23060875775f$exports,
76
+ "el-GR": $08dcc76c0e5f63e1$exports,
77
+ "en-US": $ac3044aff017d368$exports,
78
+ "es-ES": $0299c089dcae9213$exports,
79
+ "et-EE": $6e794080ab3e230e$exports,
80
+ "fi-FI": $0e8addbb92e8793c$exports,
81
+ "fr-FR": $ccffda58861e52b2$exports,
82
+ "he-IL": $653260ae334153b4$exports,
83
+ "hr-HR": $290423d4fc0aea87$exports,
84
+ "hu-HU": $da81172046d02c49$exports,
85
+ "it-IT": $e473b08597cfe1ba$exports,
86
+ "ja-JP": $a922e1b461f17a4b$exports,
87
+ "ko-KR": $be1e07b486982d9f$exports,
88
+ "lt-LT": $8ce068abcf4f94c2$exports,
89
+ "lv-LV": $0f0bc08f611d7d33$exports,
90
+ "nb-NO": $5166d11eab257c28$exports,
91
+ "nl-NL": $cb220a55cf7a5fab$exports,
92
+ "pl-PL": $917614d5adb28d77$exports,
93
+ "pt-BR": $23cdda07bb218e23$exports,
94
+ "pt-PT": $bb1b7d8bd48e0fee$exports,
95
+ "ro-RO": $969ad461d232c044$exports,
96
+ "ru-RU": $fca911223f29355e$exports,
97
+ "sk-SK": $19e9a28d44f83203$exports,
98
+ "sl-SI": $778cdcc7dbced5c1$exports,
99
+ "sr-SP": $9359f9b7eac75ac1$exports,
100
+ "sv-SE": $ac7ed8cd33134ccc$exports,
101
+ "tr-TR": $b55461bb5ab189cd$exports,
102
+ "uk-UA": $e6a0bdd8a70a947a$exports,
103
+ "zh-CN": $c2f8abea7819ef8e$exports,
104
+ "zh-TW": $765deb5c0d35c4bc$exports
105
+ };
106
+
107
+
108
+ //# sourceMappingURL=intlStrings.main.js.map
@@ -0,0 +1 @@
1
+ {"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAkCA,iBAAiB;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","sources":["packages/@react-aria/toast/src/*.js"],"sourcesContent":["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}"],"names":[],"version":3,"file":"intlStrings.main.js.map"}
@@ -0,0 +1,110 @@
1
+ import $aTebn$arAEmodulejs from "./ar-AE.mjs";
2
+ import $aTebn$bgBGmodulejs from "./bg-BG.mjs";
3
+ import $aTebn$csCZmodulejs from "./cs-CZ.mjs";
4
+ import $aTebn$daDKmodulejs from "./da-DK.mjs";
5
+ import $aTebn$deDEmodulejs from "./de-DE.mjs";
6
+ import $aTebn$elGRmodulejs from "./el-GR.mjs";
7
+ import $aTebn$enUSmodulejs from "./en-US.mjs";
8
+ import $aTebn$esESmodulejs from "./es-ES.mjs";
9
+ import $aTebn$etEEmodulejs from "./et-EE.mjs";
10
+ import $aTebn$fiFImodulejs from "./fi-FI.mjs";
11
+ import $aTebn$frFRmodulejs from "./fr-FR.mjs";
12
+ import $aTebn$heILmodulejs from "./he-IL.mjs";
13
+ import $aTebn$hrHRmodulejs from "./hr-HR.mjs";
14
+ import $aTebn$huHUmodulejs from "./hu-HU.mjs";
15
+ import $aTebn$itITmodulejs from "./it-IT.mjs";
16
+ import $aTebn$jaJPmodulejs from "./ja-JP.mjs";
17
+ import $aTebn$koKRmodulejs from "./ko-KR.mjs";
18
+ import $aTebn$ltLTmodulejs from "./lt-LT.mjs";
19
+ import $aTebn$lvLVmodulejs from "./lv-LV.mjs";
20
+ import $aTebn$nbNOmodulejs from "./nb-NO.mjs";
21
+ import $aTebn$nlNLmodulejs from "./nl-NL.mjs";
22
+ import $aTebn$plPLmodulejs from "./pl-PL.mjs";
23
+ import $aTebn$ptBRmodulejs from "./pt-BR.mjs";
24
+ import $aTebn$ptPTmodulejs from "./pt-PT.mjs";
25
+ import $aTebn$roROmodulejs from "./ro-RO.mjs";
26
+ import $aTebn$ruRUmodulejs from "./ru-RU.mjs";
27
+ import $aTebn$skSKmodulejs from "./sk-SK.mjs";
28
+ import $aTebn$slSImodulejs from "./sl-SI.mjs";
29
+ import $aTebn$srSPmodulejs from "./sr-SP.mjs";
30
+ import $aTebn$svSEmodulejs from "./sv-SE.mjs";
31
+ import $aTebn$trTRmodulejs from "./tr-TR.mjs";
32
+ import $aTebn$ukUAmodulejs from "./uk-UA.mjs";
33
+ import $aTebn$zhCNmodulejs from "./zh-CN.mjs";
34
+ import $aTebn$zhTWmodulejs from "./zh-TW.mjs";
35
+
36
+ var $7853651519a70071$exports = {};
37
+
38
+
39
+
40
+
41
+
42
+
43
+
44
+
45
+
46
+
47
+
48
+
49
+
50
+
51
+
52
+
53
+
54
+
55
+
56
+
57
+
58
+
59
+
60
+
61
+
62
+
63
+
64
+
65
+
66
+
67
+
68
+
69
+
70
+
71
+ $7853651519a70071$exports = {
72
+ "ar-AE": $aTebn$arAEmodulejs,
73
+ "bg-BG": $aTebn$bgBGmodulejs,
74
+ "cs-CZ": $aTebn$csCZmodulejs,
75
+ "da-DK": $aTebn$daDKmodulejs,
76
+ "de-DE": $aTebn$deDEmodulejs,
77
+ "el-GR": $aTebn$elGRmodulejs,
78
+ "en-US": $aTebn$enUSmodulejs,
79
+ "es-ES": $aTebn$esESmodulejs,
80
+ "et-EE": $aTebn$etEEmodulejs,
81
+ "fi-FI": $aTebn$fiFImodulejs,
82
+ "fr-FR": $aTebn$frFRmodulejs,
83
+ "he-IL": $aTebn$heILmodulejs,
84
+ "hr-HR": $aTebn$hrHRmodulejs,
85
+ "hu-HU": $aTebn$huHUmodulejs,
86
+ "it-IT": $aTebn$itITmodulejs,
87
+ "ja-JP": $aTebn$jaJPmodulejs,
88
+ "ko-KR": $aTebn$koKRmodulejs,
89
+ "lt-LT": $aTebn$ltLTmodulejs,
90
+ "lv-LV": $aTebn$lvLVmodulejs,
91
+ "nb-NO": $aTebn$nbNOmodulejs,
92
+ "nl-NL": $aTebn$nlNLmodulejs,
93
+ "pl-PL": $aTebn$plPLmodulejs,
94
+ "pt-BR": $aTebn$ptBRmodulejs,
95
+ "pt-PT": $aTebn$ptPTmodulejs,
96
+ "ro-RO": $aTebn$roROmodulejs,
97
+ "ru-RU": $aTebn$ruRUmodulejs,
98
+ "sk-SK": $aTebn$skSKmodulejs,
99
+ "sl-SI": $aTebn$slSImodulejs,
100
+ "sr-SP": $aTebn$srSPmodulejs,
101
+ "sv-SE": $aTebn$svSEmodulejs,
102
+ "tr-TR": $aTebn$trTRmodulejs,
103
+ "uk-UA": $aTebn$ukUAmodulejs,
104
+ "zh-CN": $aTebn$zhCNmodulejs,
105
+ "zh-TW": $aTebn$zhTWmodulejs
106
+ };
107
+
108
+
109
+ export {$7853651519a70071$exports as default};
110
+ //# sourceMappingURL=intlStrings.mjs.map