@react-aria/toast 3.0.0-beta.6 → 3.0.0-beta.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/import.mjs +39 -38
- package/dist/main.js +40 -38
- package/dist/main.js.map +1 -1
- package/dist/module.js +39 -38
- package/dist/module.js.map +1 -1
- package/package.json +8 -8
package/dist/import.mjs
CHANGED
|
@@ -4,6 +4,7 @@ import {useLocalizedStringFormatter as $5bA4N$useLocalizedStringFormatter} from
|
|
|
4
4
|
import {useHover as $5bA4N$useHover, useFocusWithin as $5bA4N$useFocusWithin, getInteractionModality as $5bA4N$getInteractionModality} from "@react-aria/interactions";
|
|
5
5
|
import {useLandmark as $5bA4N$useLandmark} from "@react-aria/landmark";
|
|
6
6
|
|
|
7
|
+
|
|
7
8
|
function $parcel$interopDefault(a) {
|
|
8
9
|
return a && a.__esModule ? a.default : a;
|
|
9
10
|
}
|
|
@@ -30,43 +31,43 @@ function $parcel$interopDefault(a) {
|
|
|
30
31
|
*/ var $7853651519a70071$exports = {};
|
|
31
32
|
var $ff9177efc58547ad$exports = {};
|
|
32
33
|
$ff9177efc58547ad$exports = {
|
|
33
|
-
"close":
|
|
34
|
-
"notifications":
|
|
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}`
|
|
35
36
|
};
|
|
36
37
|
|
|
37
38
|
|
|
38
39
|
var $25eb7c0c0c45e544$exports = {};
|
|
39
40
|
$25eb7c0c0c45e544$exports = {
|
|
40
|
-
"close":
|
|
41
|
-
"notifications":
|
|
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}`
|
|
42
43
|
};
|
|
43
44
|
|
|
44
45
|
|
|
45
46
|
var $28feffc3d61a8691$exports = {};
|
|
46
47
|
$28feffc3d61a8691$exports = {
|
|
47
|
-
"close": `
|
|
48
|
-
"notifications": `
|
|
48
|
+
"close": `Zav\u{159}\xedt`,
|
|
49
|
+
"notifications": `Upozorn\u{11B}n\xed`
|
|
49
50
|
};
|
|
50
51
|
|
|
51
52
|
|
|
52
53
|
var $390d441203d25ff4$exports = {};
|
|
53
54
|
$390d441203d25ff4$exports = {
|
|
54
55
|
"close": `Luk`,
|
|
55
|
-
"notifications": `
|
|
56
|
+
"notifications": `P\xe5mindelser`
|
|
56
57
|
};
|
|
57
58
|
|
|
58
59
|
|
|
59
60
|
var $7063c2d0f14f979a$exports = {};
|
|
60
61
|
$7063c2d0f14f979a$exports = {
|
|
61
|
-
"close": `
|
|
62
|
+
"close": `Schlie\xdfen`,
|
|
62
63
|
"notifications": `Benachrichtigungen`
|
|
63
64
|
};
|
|
64
65
|
|
|
65
66
|
|
|
66
67
|
var $2dfc1dbb6590af88$exports = {};
|
|
67
68
|
$2dfc1dbb6590af88$exports = {
|
|
68
|
-
"close":
|
|
69
|
-
"notifications":
|
|
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}`
|
|
70
71
|
};
|
|
71
72
|
|
|
72
73
|
|
|
@@ -107,8 +108,8 @@ $888756784d832bd7$exports = {
|
|
|
107
108
|
|
|
108
109
|
var $6835949b68a1fabf$exports = {};
|
|
109
110
|
$6835949b68a1fabf$exports = {
|
|
110
|
-
"close":
|
|
111
|
-
"notifications":
|
|
111
|
+
"close": `\u{5E1}\u{5D2}\u{5D5}\u{5E8}`,
|
|
112
|
+
"notifications": `\u{5D4}\u{5EA}\u{5E8}\u{5D0}\u{5D5}\u{5EA}`
|
|
112
113
|
};
|
|
113
114
|
|
|
114
115
|
|
|
@@ -121,8 +122,8 @@ $87ffcbc0b651e40b$exports = {
|
|
|
121
122
|
|
|
122
123
|
var $dc6e3b2813600d69$exports = {};
|
|
123
124
|
$dc6e3b2813600d69$exports = {
|
|
124
|
-
"close": `
|
|
125
|
-
"notifications":
|
|
125
|
+
"close": `Bez\xe1r\xe1s`,
|
|
126
|
+
"notifications": `\xc9rtes\xedt\xe9sek`
|
|
126
127
|
};
|
|
127
128
|
|
|
128
129
|
|
|
@@ -135,29 +136,29 @@ $fe136bcbacfcfa14$exports = {
|
|
|
135
136
|
|
|
136
137
|
var $8fb53a929b46df83$exports = {};
|
|
137
138
|
$8fb53a929b46df83$exports = {
|
|
138
|
-
"close":
|
|
139
|
-
"notifications":
|
|
139
|
+
"close": `\u{9589}\u{3058}\u{308B}`,
|
|
140
|
+
"notifications": `\u{901A}\u{77E5}`
|
|
140
141
|
};
|
|
141
142
|
|
|
142
143
|
|
|
143
144
|
var $2c38dbfaf041a865$exports = {};
|
|
144
145
|
$2c38dbfaf041a865$exports = {
|
|
145
|
-
"close":
|
|
146
|
-
"notifications":
|
|
146
|
+
"close": `\u{B2EB}\u{AE30}`,
|
|
147
|
+
"notifications": `\u{C54C}\u{B9BC}`
|
|
147
148
|
};
|
|
148
149
|
|
|
149
150
|
|
|
150
151
|
var $48f3f33a29908d4c$exports = {};
|
|
151
152
|
$48f3f33a29908d4c$exports = {
|
|
152
|
-
"close": `
|
|
153
|
-
"notifications": `
|
|
153
|
+
"close": `U\u{17E}daryti`,
|
|
154
|
+
"notifications": `Prane\u{161}imai`
|
|
154
155
|
};
|
|
155
156
|
|
|
156
157
|
|
|
157
158
|
var $9867160d996455a0$exports = {};
|
|
158
159
|
$9867160d996455a0$exports = {
|
|
159
|
-
"close": `
|
|
160
|
-
"notifications": `
|
|
160
|
+
"close": `Aizv\u{113}rt`,
|
|
161
|
+
"notifications": `Pazi\u{146}ojumi`
|
|
161
162
|
};
|
|
162
163
|
|
|
163
164
|
|
|
@@ -185,35 +186,35 @@ $8189bed27add1ad3$exports = {
|
|
|
185
186
|
var $a361756a93b6e28c$exports = {};
|
|
186
187
|
$a361756a93b6e28c$exports = {
|
|
187
188
|
"close": `Fechar`,
|
|
188
|
-
"notifications": `
|
|
189
|
+
"notifications": `Notifica\xe7\xf5es`
|
|
189
190
|
};
|
|
190
191
|
|
|
191
192
|
|
|
192
193
|
var $034c7393857c8db0$exports = {};
|
|
193
194
|
$034c7393857c8db0$exports = {
|
|
194
195
|
"close": `Fechar`,
|
|
195
|
-
"notifications": `
|
|
196
|
+
"notifications": `Notifica\xe7\xf5es`
|
|
196
197
|
};
|
|
197
198
|
|
|
198
199
|
|
|
199
200
|
var $e33d3b3868478b04$exports = {};
|
|
200
201
|
$e33d3b3868478b04$exports = {
|
|
201
|
-
"close":
|
|
202
|
-
"notifications": `
|
|
202
|
+
"close": `\xcenchide\u{163}i`,
|
|
203
|
+
"notifications": `Notific\u{103}ri`
|
|
203
204
|
};
|
|
204
205
|
|
|
205
206
|
|
|
206
207
|
var $9a7dcb914b29cd9f$exports = {};
|
|
207
208
|
$9a7dcb914b29cd9f$exports = {
|
|
208
|
-
"close":
|
|
209
|
-
"notifications":
|
|
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}`
|
|
210
211
|
};
|
|
211
212
|
|
|
212
213
|
|
|
213
214
|
var $e43d964a0c7f1266$exports = {};
|
|
214
215
|
$e43d964a0c7f1266$exports = {
|
|
215
|
-
"close": `Zatvori
|
|
216
|
-
"notifications": `
|
|
216
|
+
"close": `Zatvori\u{165}`,
|
|
217
|
+
"notifications": `Ozn\xe1menia`
|
|
217
218
|
};
|
|
218
219
|
|
|
219
220
|
|
|
@@ -227,13 +228,13 @@ $0bc56cee3275bcaa$exports = {
|
|
|
227
228
|
var $7dbdd7289c10d2ba$exports = {};
|
|
228
229
|
$7dbdd7289c10d2ba$exports = {
|
|
229
230
|
"close": `Zatvori`,
|
|
230
|
-
"notifications": `
|
|
231
|
+
"notifications": `Obave\u{161}tenja`
|
|
231
232
|
};
|
|
232
233
|
|
|
233
234
|
|
|
234
235
|
var $ccbe6066c10b1e53$exports = {};
|
|
235
236
|
$ccbe6066c10b1e53$exports = {
|
|
236
|
-
"close": `
|
|
237
|
+
"close": `St\xe4ng`,
|
|
237
238
|
"notifications": `Aviseringar`
|
|
238
239
|
};
|
|
239
240
|
|
|
@@ -247,22 +248,22 @@ $9d503476b9d858b7$exports = {
|
|
|
247
248
|
|
|
248
249
|
var $32ee419c7b9b7a83$exports = {};
|
|
249
250
|
$32ee419c7b9b7a83$exports = {
|
|
250
|
-
"close":
|
|
251
|
-
"notifications":
|
|
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}`
|
|
252
253
|
};
|
|
253
254
|
|
|
254
255
|
|
|
255
256
|
var $122525af1cb737c7$exports = {};
|
|
256
257
|
$122525af1cb737c7$exports = {
|
|
257
|
-
"close":
|
|
258
|
-
"notifications":
|
|
258
|
+
"close": `\u{5173}\u{95ED}`,
|
|
259
|
+
"notifications": `\u{901A}\u{77E5}`
|
|
259
260
|
};
|
|
260
261
|
|
|
261
262
|
|
|
262
263
|
var $52e8b1b00094e5a3$exports = {};
|
|
263
264
|
$52e8b1b00094e5a3$exports = {
|
|
264
|
-
"close":
|
|
265
|
-
"notifications":
|
|
265
|
+
"close": `\u{95DC}\u{9589}`,
|
|
266
|
+
"notifications": `\u{901A}\u{77E5}`
|
|
266
267
|
};
|
|
267
268
|
|
|
268
269
|
|
package/dist/main.js
CHANGED
|
@@ -4,9 +4,11 @@ var $35jN2$reactariai18n = require("@react-aria/i18n");
|
|
|
4
4
|
var $35jN2$reactariainteractions = require("@react-aria/interactions");
|
|
5
5
|
var $35jN2$reactarialandmark = require("@react-aria/landmark");
|
|
6
6
|
|
|
7
|
+
|
|
7
8
|
function $parcel$export(e, n, v, s) {
|
|
8
9
|
Object.defineProperty(e, n, {get: v, set: s, enumerable: true, configurable: true});
|
|
9
10
|
}
|
|
11
|
+
|
|
10
12
|
function $parcel$interopDefault(a) {
|
|
11
13
|
return a && a.__esModule ? a.default : a;
|
|
12
14
|
}
|
|
@@ -36,43 +38,43 @@ $parcel$export(module.exports, "useToastRegion", () => $eda7c6204a682dd4$export$
|
|
|
36
38
|
*/ var $f49b2d6c91681304$exports = {};
|
|
37
39
|
var $3ba38fcbd805da3c$exports = {};
|
|
38
40
|
$3ba38fcbd805da3c$exports = {
|
|
39
|
-
"close":
|
|
40
|
-
"notifications":
|
|
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}`
|
|
41
43
|
};
|
|
42
44
|
|
|
43
45
|
|
|
44
46
|
var $06073da8a2e837af$exports = {};
|
|
45
47
|
$06073da8a2e837af$exports = {
|
|
46
|
-
"close":
|
|
47
|
-
"notifications":
|
|
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}`
|
|
48
50
|
};
|
|
49
51
|
|
|
50
52
|
|
|
51
53
|
var $f53ed7e9d51b5d55$exports = {};
|
|
52
54
|
$f53ed7e9d51b5d55$exports = {
|
|
53
|
-
"close": `
|
|
54
|
-
"notifications": `
|
|
55
|
+
"close": `Zav\u{159}\xedt`,
|
|
56
|
+
"notifications": `Upozorn\u{11B}n\xed`
|
|
55
57
|
};
|
|
56
58
|
|
|
57
59
|
|
|
58
60
|
var $a6b6afdb5a98f76c$exports = {};
|
|
59
61
|
$a6b6afdb5a98f76c$exports = {
|
|
60
62
|
"close": `Luk`,
|
|
61
|
-
"notifications": `
|
|
63
|
+
"notifications": `P\xe5mindelser`
|
|
62
64
|
};
|
|
63
65
|
|
|
64
66
|
|
|
65
67
|
var $52ad23060875775f$exports = {};
|
|
66
68
|
$52ad23060875775f$exports = {
|
|
67
|
-
"close": `
|
|
69
|
+
"close": `Schlie\xdfen`,
|
|
68
70
|
"notifications": `Benachrichtigungen`
|
|
69
71
|
};
|
|
70
72
|
|
|
71
73
|
|
|
72
74
|
var $08dcc76c0e5f63e1$exports = {};
|
|
73
75
|
$08dcc76c0e5f63e1$exports = {
|
|
74
|
-
"close":
|
|
75
|
-
"notifications":
|
|
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}`
|
|
76
78
|
};
|
|
77
79
|
|
|
78
80
|
|
|
@@ -113,8 +115,8 @@ $ccffda58861e52b2$exports = {
|
|
|
113
115
|
|
|
114
116
|
var $653260ae334153b4$exports = {};
|
|
115
117
|
$653260ae334153b4$exports = {
|
|
116
|
-
"close":
|
|
117
|
-
"notifications":
|
|
118
|
+
"close": `\u{5E1}\u{5D2}\u{5D5}\u{5E8}`,
|
|
119
|
+
"notifications": `\u{5D4}\u{5EA}\u{5E8}\u{5D0}\u{5D5}\u{5EA}`
|
|
118
120
|
};
|
|
119
121
|
|
|
120
122
|
|
|
@@ -127,8 +129,8 @@ $290423d4fc0aea87$exports = {
|
|
|
127
129
|
|
|
128
130
|
var $da81172046d02c49$exports = {};
|
|
129
131
|
$da81172046d02c49$exports = {
|
|
130
|
-
"close": `
|
|
131
|
-
"notifications":
|
|
132
|
+
"close": `Bez\xe1r\xe1s`,
|
|
133
|
+
"notifications": `\xc9rtes\xedt\xe9sek`
|
|
132
134
|
};
|
|
133
135
|
|
|
134
136
|
|
|
@@ -141,29 +143,29 @@ $e473b08597cfe1ba$exports = {
|
|
|
141
143
|
|
|
142
144
|
var $a922e1b461f17a4b$exports = {};
|
|
143
145
|
$a922e1b461f17a4b$exports = {
|
|
144
|
-
"close":
|
|
145
|
-
"notifications":
|
|
146
|
+
"close": `\u{9589}\u{3058}\u{308B}`,
|
|
147
|
+
"notifications": `\u{901A}\u{77E5}`
|
|
146
148
|
};
|
|
147
149
|
|
|
148
150
|
|
|
149
151
|
var $be1e07b486982d9f$exports = {};
|
|
150
152
|
$be1e07b486982d9f$exports = {
|
|
151
|
-
"close":
|
|
152
|
-
"notifications":
|
|
153
|
+
"close": `\u{B2EB}\u{AE30}`,
|
|
154
|
+
"notifications": `\u{C54C}\u{B9BC}`
|
|
153
155
|
};
|
|
154
156
|
|
|
155
157
|
|
|
156
158
|
var $8ce068abcf4f94c2$exports = {};
|
|
157
159
|
$8ce068abcf4f94c2$exports = {
|
|
158
|
-
"close": `
|
|
159
|
-
"notifications": `
|
|
160
|
+
"close": `U\u{17E}daryti`,
|
|
161
|
+
"notifications": `Prane\u{161}imai`
|
|
160
162
|
};
|
|
161
163
|
|
|
162
164
|
|
|
163
165
|
var $0f0bc08f611d7d33$exports = {};
|
|
164
166
|
$0f0bc08f611d7d33$exports = {
|
|
165
|
-
"close": `
|
|
166
|
-
"notifications": `
|
|
167
|
+
"close": `Aizv\u{113}rt`,
|
|
168
|
+
"notifications": `Pazi\u{146}ojumi`
|
|
167
169
|
};
|
|
168
170
|
|
|
169
171
|
|
|
@@ -191,35 +193,35 @@ $917614d5adb28d77$exports = {
|
|
|
191
193
|
var $23cdda07bb218e23$exports = {};
|
|
192
194
|
$23cdda07bb218e23$exports = {
|
|
193
195
|
"close": `Fechar`,
|
|
194
|
-
"notifications": `
|
|
196
|
+
"notifications": `Notifica\xe7\xf5es`
|
|
195
197
|
};
|
|
196
198
|
|
|
197
199
|
|
|
198
200
|
var $bb1b7d8bd48e0fee$exports = {};
|
|
199
201
|
$bb1b7d8bd48e0fee$exports = {
|
|
200
202
|
"close": `Fechar`,
|
|
201
|
-
"notifications": `
|
|
203
|
+
"notifications": `Notifica\xe7\xf5es`
|
|
202
204
|
};
|
|
203
205
|
|
|
204
206
|
|
|
205
207
|
var $969ad461d232c044$exports = {};
|
|
206
208
|
$969ad461d232c044$exports = {
|
|
207
|
-
"close":
|
|
208
|
-
"notifications": `
|
|
209
|
+
"close": `\xcenchide\u{163}i`,
|
|
210
|
+
"notifications": `Notific\u{103}ri`
|
|
209
211
|
};
|
|
210
212
|
|
|
211
213
|
|
|
212
214
|
var $fca911223f29355e$exports = {};
|
|
213
215
|
$fca911223f29355e$exports = {
|
|
214
|
-
"close":
|
|
215
|
-
"notifications":
|
|
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}`
|
|
216
218
|
};
|
|
217
219
|
|
|
218
220
|
|
|
219
221
|
var $19e9a28d44f83203$exports = {};
|
|
220
222
|
$19e9a28d44f83203$exports = {
|
|
221
|
-
"close": `Zatvori
|
|
222
|
-
"notifications": `
|
|
223
|
+
"close": `Zatvori\u{165}`,
|
|
224
|
+
"notifications": `Ozn\xe1menia`
|
|
223
225
|
};
|
|
224
226
|
|
|
225
227
|
|
|
@@ -233,13 +235,13 @@ $778cdcc7dbced5c1$exports = {
|
|
|
233
235
|
var $9359f9b7eac75ac1$exports = {};
|
|
234
236
|
$9359f9b7eac75ac1$exports = {
|
|
235
237
|
"close": `Zatvori`,
|
|
236
|
-
"notifications": `
|
|
238
|
+
"notifications": `Obave\u{161}tenja`
|
|
237
239
|
};
|
|
238
240
|
|
|
239
241
|
|
|
240
242
|
var $ac7ed8cd33134ccc$exports = {};
|
|
241
243
|
$ac7ed8cd33134ccc$exports = {
|
|
242
|
-
"close": `
|
|
244
|
+
"close": `St\xe4ng`,
|
|
243
245
|
"notifications": `Aviseringar`
|
|
244
246
|
};
|
|
245
247
|
|
|
@@ -253,22 +255,22 @@ $b55461bb5ab189cd$exports = {
|
|
|
253
255
|
|
|
254
256
|
var $e6a0bdd8a70a947a$exports = {};
|
|
255
257
|
$e6a0bdd8a70a947a$exports = {
|
|
256
|
-
"close":
|
|
257
|
-
"notifications":
|
|
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}`
|
|
258
260
|
};
|
|
259
261
|
|
|
260
262
|
|
|
261
263
|
var $c2f8abea7819ef8e$exports = {};
|
|
262
264
|
$c2f8abea7819ef8e$exports = {
|
|
263
|
-
"close":
|
|
264
|
-
"notifications":
|
|
265
|
+
"close": `\u{5173}\u{95ED}`,
|
|
266
|
+
"notifications": `\u{901A}\u{77E5}`
|
|
265
267
|
};
|
|
266
268
|
|
|
267
269
|
|
|
268
270
|
var $765deb5c0d35c4bc$exports = {};
|
|
269
271
|
$765deb5c0d35c4bc$exports = {
|
|
270
|
-
"close":
|
|
271
|
-
"notifications":
|
|
272
|
+
"close": `\u{95DC}\u{9589}`,
|
|
273
|
+
"notifications": `\u{901A}\u{77E5}`
|
|
272
274
|
};
|
|
273
275
|
|
|
274
276
|
|
package/dist/main.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"mappings":";;;;;;;;;;;;;;;AAAA;;;;;;;;;;ACAA;;;;;;;;;;;;AEAA,4BAAiB;IAAG,SAAS,CAAC,KAAK,CAAC;IAClC,iBAAiB,CAAC,OAAO,CAAC;AAC5B;;;;ACFA,4BAAiB;IAAG,SAAS,CAAC,OAAO,CAAC;IACpC,iBAAiB,CAAC,QAAQ,CAAC;AAC7B;;;;ACFA,4BAAiB;IAAG,SAAS,CAAC,MAAM,CAAC;IACnC,iBAAiB,CAAC,UA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;IACF;IAEA,6EAA6E;IAC7E,+CAA+C;IAC/C,oEAAoE;IACpE,4CAA4C;IAC5C,CAAA,GAAA,sBAAQ,EAAE;QACR,OAAO;YACL,IAAI,YAAY,WAAW,SAAS,KAAK,SAAS,YAAY;gBAC5D,IAAI,CAAA,GAAA,mDAAqB,QAAQ,WAC/B,CAAA,GAAA,2CAAoB,EAAE,YAAY;qBAElC,YAAY,QAAQ;;QAG1B;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);\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);\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;;;;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CAAC,aAAa,IAAI,gBAAgB,MAAM,CAAC;IAC9D,GAAG;IAEH,IAAI,cAAC,UAAU,EAAC,GAAG,CAAA,GAAA,qCAAO,EAAE;QAC1B,cAAc,MAAM,QAAQ;QAC5B,YAAY,MAAM,SAAS;IAC7B;IAEA,IAAI,cAAc,CAAA,GAAA,mBAAK,EAAE;IACzB,IAAI,oBAAC,gBAAgB,EAAC,GAAG,CAAA,GAAA,2CAAa,EAAE;QACtC,eAAe,CAAC;YACd,MAAM,QAAQ;YACd,YAAY,OAAO,GAAG,EAAE,aAAa;QACvC;QACA,cAAc;YACZ,MAAM,SAAS;YACf,YAAY,OAAO,GAAG;QACxB;IACF;IAEA,6EAA6E;IAC7E,+CAA+C;IAC/C,oEAAoE;IACpE,4CAA4C;IAC5C,CAAA,GAAA,sBAAQ,EAAE;QACR,OAAO;YACL,IAAI,YAAY,OAAO,IAAI,SAAS,IAAI,CAAC,QAAQ,CAAC,YAAY,OAAO;gBACnE,IAAI,CAAA,GAAA,mDAAqB,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);\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);\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"}
|
package/dist/module.js
CHANGED
|
@@ -4,6 +4,7 @@ import {useLocalizedStringFormatter as $5bA4N$useLocalizedStringFormatter} from
|
|
|
4
4
|
import {useHover as $5bA4N$useHover, useFocusWithin as $5bA4N$useFocusWithin, getInteractionModality as $5bA4N$getInteractionModality} from "@react-aria/interactions";
|
|
5
5
|
import {useLandmark as $5bA4N$useLandmark} from "@react-aria/landmark";
|
|
6
6
|
|
|
7
|
+
|
|
7
8
|
function $parcel$interopDefault(a) {
|
|
8
9
|
return a && a.__esModule ? a.default : a;
|
|
9
10
|
}
|
|
@@ -30,43 +31,43 @@ function $parcel$interopDefault(a) {
|
|
|
30
31
|
*/ var $7853651519a70071$exports = {};
|
|
31
32
|
var $ff9177efc58547ad$exports = {};
|
|
32
33
|
$ff9177efc58547ad$exports = {
|
|
33
|
-
"close":
|
|
34
|
-
"notifications":
|
|
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}`
|
|
35
36
|
};
|
|
36
37
|
|
|
37
38
|
|
|
38
39
|
var $25eb7c0c0c45e544$exports = {};
|
|
39
40
|
$25eb7c0c0c45e544$exports = {
|
|
40
|
-
"close":
|
|
41
|
-
"notifications":
|
|
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}`
|
|
42
43
|
};
|
|
43
44
|
|
|
44
45
|
|
|
45
46
|
var $28feffc3d61a8691$exports = {};
|
|
46
47
|
$28feffc3d61a8691$exports = {
|
|
47
|
-
"close": `
|
|
48
|
-
"notifications": `
|
|
48
|
+
"close": `Zav\u{159}\xedt`,
|
|
49
|
+
"notifications": `Upozorn\u{11B}n\xed`
|
|
49
50
|
};
|
|
50
51
|
|
|
51
52
|
|
|
52
53
|
var $390d441203d25ff4$exports = {};
|
|
53
54
|
$390d441203d25ff4$exports = {
|
|
54
55
|
"close": `Luk`,
|
|
55
|
-
"notifications": `
|
|
56
|
+
"notifications": `P\xe5mindelser`
|
|
56
57
|
};
|
|
57
58
|
|
|
58
59
|
|
|
59
60
|
var $7063c2d0f14f979a$exports = {};
|
|
60
61
|
$7063c2d0f14f979a$exports = {
|
|
61
|
-
"close": `
|
|
62
|
+
"close": `Schlie\xdfen`,
|
|
62
63
|
"notifications": `Benachrichtigungen`
|
|
63
64
|
};
|
|
64
65
|
|
|
65
66
|
|
|
66
67
|
var $2dfc1dbb6590af88$exports = {};
|
|
67
68
|
$2dfc1dbb6590af88$exports = {
|
|
68
|
-
"close":
|
|
69
|
-
"notifications":
|
|
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}`
|
|
70
71
|
};
|
|
71
72
|
|
|
72
73
|
|
|
@@ -107,8 +108,8 @@ $888756784d832bd7$exports = {
|
|
|
107
108
|
|
|
108
109
|
var $6835949b68a1fabf$exports = {};
|
|
109
110
|
$6835949b68a1fabf$exports = {
|
|
110
|
-
"close":
|
|
111
|
-
"notifications":
|
|
111
|
+
"close": `\u{5E1}\u{5D2}\u{5D5}\u{5E8}`,
|
|
112
|
+
"notifications": `\u{5D4}\u{5EA}\u{5E8}\u{5D0}\u{5D5}\u{5EA}`
|
|
112
113
|
};
|
|
113
114
|
|
|
114
115
|
|
|
@@ -121,8 +122,8 @@ $87ffcbc0b651e40b$exports = {
|
|
|
121
122
|
|
|
122
123
|
var $dc6e3b2813600d69$exports = {};
|
|
123
124
|
$dc6e3b2813600d69$exports = {
|
|
124
|
-
"close": `
|
|
125
|
-
"notifications":
|
|
125
|
+
"close": `Bez\xe1r\xe1s`,
|
|
126
|
+
"notifications": `\xc9rtes\xedt\xe9sek`
|
|
126
127
|
};
|
|
127
128
|
|
|
128
129
|
|
|
@@ -135,29 +136,29 @@ $fe136bcbacfcfa14$exports = {
|
|
|
135
136
|
|
|
136
137
|
var $8fb53a929b46df83$exports = {};
|
|
137
138
|
$8fb53a929b46df83$exports = {
|
|
138
|
-
"close":
|
|
139
|
-
"notifications":
|
|
139
|
+
"close": `\u{9589}\u{3058}\u{308B}`,
|
|
140
|
+
"notifications": `\u{901A}\u{77E5}`
|
|
140
141
|
};
|
|
141
142
|
|
|
142
143
|
|
|
143
144
|
var $2c38dbfaf041a865$exports = {};
|
|
144
145
|
$2c38dbfaf041a865$exports = {
|
|
145
|
-
"close":
|
|
146
|
-
"notifications":
|
|
146
|
+
"close": `\u{B2EB}\u{AE30}`,
|
|
147
|
+
"notifications": `\u{C54C}\u{B9BC}`
|
|
147
148
|
};
|
|
148
149
|
|
|
149
150
|
|
|
150
151
|
var $48f3f33a29908d4c$exports = {};
|
|
151
152
|
$48f3f33a29908d4c$exports = {
|
|
152
|
-
"close": `
|
|
153
|
-
"notifications": `
|
|
153
|
+
"close": `U\u{17E}daryti`,
|
|
154
|
+
"notifications": `Prane\u{161}imai`
|
|
154
155
|
};
|
|
155
156
|
|
|
156
157
|
|
|
157
158
|
var $9867160d996455a0$exports = {};
|
|
158
159
|
$9867160d996455a0$exports = {
|
|
159
|
-
"close": `
|
|
160
|
-
"notifications": `
|
|
160
|
+
"close": `Aizv\u{113}rt`,
|
|
161
|
+
"notifications": `Pazi\u{146}ojumi`
|
|
161
162
|
};
|
|
162
163
|
|
|
163
164
|
|
|
@@ -185,35 +186,35 @@ $8189bed27add1ad3$exports = {
|
|
|
185
186
|
var $a361756a93b6e28c$exports = {};
|
|
186
187
|
$a361756a93b6e28c$exports = {
|
|
187
188
|
"close": `Fechar`,
|
|
188
|
-
"notifications": `
|
|
189
|
+
"notifications": `Notifica\xe7\xf5es`
|
|
189
190
|
};
|
|
190
191
|
|
|
191
192
|
|
|
192
193
|
var $034c7393857c8db0$exports = {};
|
|
193
194
|
$034c7393857c8db0$exports = {
|
|
194
195
|
"close": `Fechar`,
|
|
195
|
-
"notifications": `
|
|
196
|
+
"notifications": `Notifica\xe7\xf5es`
|
|
196
197
|
};
|
|
197
198
|
|
|
198
199
|
|
|
199
200
|
var $e33d3b3868478b04$exports = {};
|
|
200
201
|
$e33d3b3868478b04$exports = {
|
|
201
|
-
"close":
|
|
202
|
-
"notifications": `
|
|
202
|
+
"close": `\xcenchide\u{163}i`,
|
|
203
|
+
"notifications": `Notific\u{103}ri`
|
|
203
204
|
};
|
|
204
205
|
|
|
205
206
|
|
|
206
207
|
var $9a7dcb914b29cd9f$exports = {};
|
|
207
208
|
$9a7dcb914b29cd9f$exports = {
|
|
208
|
-
"close":
|
|
209
|
-
"notifications":
|
|
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}`
|
|
210
211
|
};
|
|
211
212
|
|
|
212
213
|
|
|
213
214
|
var $e43d964a0c7f1266$exports = {};
|
|
214
215
|
$e43d964a0c7f1266$exports = {
|
|
215
|
-
"close": `Zatvori
|
|
216
|
-
"notifications": `
|
|
216
|
+
"close": `Zatvori\u{165}`,
|
|
217
|
+
"notifications": `Ozn\xe1menia`
|
|
217
218
|
};
|
|
218
219
|
|
|
219
220
|
|
|
@@ -227,13 +228,13 @@ $0bc56cee3275bcaa$exports = {
|
|
|
227
228
|
var $7dbdd7289c10d2ba$exports = {};
|
|
228
229
|
$7dbdd7289c10d2ba$exports = {
|
|
229
230
|
"close": `Zatvori`,
|
|
230
|
-
"notifications": `
|
|
231
|
+
"notifications": `Obave\u{161}tenja`
|
|
231
232
|
};
|
|
232
233
|
|
|
233
234
|
|
|
234
235
|
var $ccbe6066c10b1e53$exports = {};
|
|
235
236
|
$ccbe6066c10b1e53$exports = {
|
|
236
|
-
"close": `
|
|
237
|
+
"close": `St\xe4ng`,
|
|
237
238
|
"notifications": `Aviseringar`
|
|
238
239
|
};
|
|
239
240
|
|
|
@@ -247,22 +248,22 @@ $9d503476b9d858b7$exports = {
|
|
|
247
248
|
|
|
248
249
|
var $32ee419c7b9b7a83$exports = {};
|
|
249
250
|
$32ee419c7b9b7a83$exports = {
|
|
250
|
-
"close":
|
|
251
|
-
"notifications":
|
|
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}`
|
|
252
253
|
};
|
|
253
254
|
|
|
254
255
|
|
|
255
256
|
var $122525af1cb737c7$exports = {};
|
|
256
257
|
$122525af1cb737c7$exports = {
|
|
257
|
-
"close":
|
|
258
|
-
"notifications":
|
|
258
|
+
"close": `\u{5173}\u{95ED}`,
|
|
259
|
+
"notifications": `\u{901A}\u{77E5}`
|
|
259
260
|
};
|
|
260
261
|
|
|
261
262
|
|
|
262
263
|
var $52e8b1b00094e5a3$exports = {};
|
|
263
264
|
$52e8b1b00094e5a3$exports = {
|
|
264
|
-
"close":
|
|
265
|
-
"notifications":
|
|
265
|
+
"close": `\u{95DC}\u{9589}`,
|
|
266
|
+
"notifications": `\u{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BAAU,EAAE;QAChC,MAAM;QACN,cAAc,KAAK,CAAC,aAAa,IAAI,gBAAgB,OAAO;IAC9D,GAAG;IAEH,IAAI,cAAC,UAAU,EAAC,GAAG,CAAA,GAAA,eAAO,EAAE;QAC1B,cAAc,MAAM;QACpB,YAAY,MAAM;IACpB;IAEA,IAAI,cAAc,CAAA,GAAA,aAAK,EAAE;IACzB,IAAI,oBAAC,gBAAgB,EAAC,GAAG,CAAA,GAAA,qBAAa,EAAE;QACtC,eAAe,CAAC;YACd,MAAM;YACN,YAAY,UAAU,EAAE;QAC1B;QACA,cAAc;YACZ,MAAM;YACN,YAAY,UAAU;QACxB;IACF;IAEA,6EAA6E;IAC7E,+CAA+C;IAC/C,oEAAoE;IACpE,4CAA4C;IAC5C,CAAA,GAAA,gBAAQ,EAAE;QACR,OAAO;YACL,IAAI,YAAY,WAAW,SAAS,KAAK,SAAS,YAAY;gBAC5D,IAAI,CAAA,GAAA,6BAAqB,QAAQ,WAC/B,CAAA,GAAA,4BAAoB,EAAE,YAAY;qBAElC,YAAY,QAAQ;;QAG1B;IACF,GAAG;QAAC;KAAI;IAER,OAAO;QACL,aAAa,CAAA,GAAA,iBAAS,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);\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);\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":"module.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;;;;ACFA,4BAAiB;IAAG,SAAS,CAAC,MAAM,CAAC;IACnC,iBAAiB,CAAC,cAAc,CAAC;AACnC;;;;ACFA,4BAAiB;IAAG,SAAS,CAAC,IAAI,CAAC;IACjC,iBAAiB,CAAC,MAAM,CAAC;AAC3B;;;;ACFA,4BAAiB;IAAG,SAAS,CAAC,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,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);\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);\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":"module.js.map"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@react-aria/toast",
|
|
3
|
-
"version": "3.0.0-beta.
|
|
3
|
+
"version": "3.0.0-beta.7",
|
|
4
4
|
"description": "Spectrum UI components in React",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"main": "dist/main.js",
|
|
@@ -22,13 +22,13 @@
|
|
|
22
22
|
"url": "https://github.com/adobe/react-spectrum"
|
|
23
23
|
},
|
|
24
24
|
"dependencies": {
|
|
25
|
-
"@react-aria/i18n": "^3.
|
|
26
|
-
"@react-aria/interactions": "^3.
|
|
27
|
-
"@react-aria/landmark": "3.0.0-beta.
|
|
28
|
-
"@react-aria/utils": "^3.
|
|
25
|
+
"@react-aria/i18n": "^3.9.0",
|
|
26
|
+
"@react-aria/interactions": "^3.20.0",
|
|
27
|
+
"@react-aria/landmark": "3.0.0-beta.7",
|
|
28
|
+
"@react-aria/utils": "^3.22.0",
|
|
29
29
|
"@react-stately/toast": "3.0.0-beta.1",
|
|
30
|
-
"@react-types/button": "^3.9.
|
|
31
|
-
"@react-types/shared": "^3.
|
|
30
|
+
"@react-types/button": "^3.9.1",
|
|
31
|
+
"@react-types/shared": "^3.22.0",
|
|
32
32
|
"@swc/helpers": "^0.5.0"
|
|
33
33
|
},
|
|
34
34
|
"peerDependencies": {
|
|
@@ -37,5 +37,5 @@
|
|
|
37
37
|
"publishConfig": {
|
|
38
38
|
"access": "public"
|
|
39
39
|
},
|
|
40
|
-
"gitHead": "
|
|
40
|
+
"gitHead": "9ce2f674eab2cc8912800d3162dcf00a1ce94274"
|
|
41
41
|
}
|