@react-aria/tag 3.2.1 → 3.3.1

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 (180) 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 +37 -206
  72. package/dist/it-IT.main.js +7 -0
  73. package/dist/it-IT.main.js.map +1 -0
  74. package/dist/it-IT.mjs +9 -0
  75. package/dist/it-IT.module.js +9 -0
  76. package/dist/it-IT.module.js.map +1 -0
  77. package/dist/ja-JP.main.js +7 -0
  78. package/dist/ja-JP.main.js.map +1 -0
  79. package/dist/ja-JP.mjs +9 -0
  80. package/dist/ja-JP.module.js +9 -0
  81. package/dist/ja-JP.module.js.map +1 -0
  82. package/dist/ko-KR.main.js +7 -0
  83. package/dist/ko-KR.main.js.map +1 -0
  84. package/dist/ko-KR.mjs +9 -0
  85. package/dist/ko-KR.module.js +9 -0
  86. package/dist/ko-KR.module.js.map +1 -0
  87. package/dist/lt-LT.main.js +7 -0
  88. package/dist/lt-LT.main.js.map +1 -0
  89. package/dist/lt-LT.mjs +9 -0
  90. package/dist/lt-LT.module.js +9 -0
  91. package/dist/lt-LT.module.js.map +1 -0
  92. package/dist/lv-LV.main.js +7 -0
  93. package/dist/lv-LV.main.js.map +1 -0
  94. package/dist/lv-LV.mjs +9 -0
  95. package/dist/lv-LV.module.js +9 -0
  96. package/dist/lv-LV.module.js.map +1 -0
  97. package/dist/main.js +38 -206
  98. package/dist/main.js.map +1 -1
  99. package/dist/module.js +37 -206
  100. package/dist/module.js.map +1 -1
  101. package/dist/nb-NO.main.js +7 -0
  102. package/dist/nb-NO.main.js.map +1 -0
  103. package/dist/nb-NO.mjs +9 -0
  104. package/dist/nb-NO.module.js +9 -0
  105. package/dist/nb-NO.module.js.map +1 -0
  106. package/dist/nl-NL.main.js +7 -0
  107. package/dist/nl-NL.main.js.map +1 -0
  108. package/dist/nl-NL.mjs +9 -0
  109. package/dist/nl-NL.module.js +9 -0
  110. package/dist/nl-NL.module.js.map +1 -0
  111. package/dist/pl-PL.main.js +7 -0
  112. package/dist/pl-PL.main.js.map +1 -0
  113. package/dist/pl-PL.mjs +9 -0
  114. package/dist/pl-PL.module.js +9 -0
  115. package/dist/pl-PL.module.js.map +1 -0
  116. package/dist/pt-BR.main.js +7 -0
  117. package/dist/pt-BR.main.js.map +1 -0
  118. package/dist/pt-BR.mjs +9 -0
  119. package/dist/pt-BR.module.js +9 -0
  120. package/dist/pt-BR.module.js.map +1 -0
  121. package/dist/pt-PT.main.js +7 -0
  122. package/dist/pt-PT.main.js.map +1 -0
  123. package/dist/pt-PT.mjs +9 -0
  124. package/dist/pt-PT.module.js +9 -0
  125. package/dist/pt-PT.module.js.map +1 -0
  126. package/dist/ro-RO.main.js +7 -0
  127. package/dist/ro-RO.main.js.map +1 -0
  128. package/dist/ro-RO.mjs +9 -0
  129. package/dist/ro-RO.module.js +9 -0
  130. package/dist/ro-RO.module.js.map +1 -0
  131. package/dist/ru-RU.main.js +7 -0
  132. package/dist/ru-RU.main.js.map +1 -0
  133. package/dist/ru-RU.mjs +9 -0
  134. package/dist/ru-RU.module.js +9 -0
  135. package/dist/ru-RU.module.js.map +1 -0
  136. package/dist/sk-SK.main.js +7 -0
  137. package/dist/sk-SK.main.js.map +1 -0
  138. package/dist/sk-SK.mjs +9 -0
  139. package/dist/sk-SK.module.js +9 -0
  140. package/dist/sk-SK.module.js.map +1 -0
  141. package/dist/sl-SI.main.js +7 -0
  142. package/dist/sl-SI.main.js.map +1 -0
  143. package/dist/sl-SI.mjs +9 -0
  144. package/dist/sl-SI.module.js +9 -0
  145. package/dist/sl-SI.module.js.map +1 -0
  146. package/dist/sr-SP.main.js +7 -0
  147. package/dist/sr-SP.main.js.map +1 -0
  148. package/dist/sr-SP.mjs +9 -0
  149. package/dist/sr-SP.module.js +9 -0
  150. package/dist/sr-SP.module.js.map +1 -0
  151. package/dist/sv-SE.main.js +7 -0
  152. package/dist/sv-SE.main.js.map +1 -0
  153. package/dist/sv-SE.mjs +9 -0
  154. package/dist/sv-SE.module.js +9 -0
  155. package/dist/sv-SE.module.js.map +1 -0
  156. package/dist/tr-TR.main.js +7 -0
  157. package/dist/tr-TR.main.js.map +1 -0
  158. package/dist/tr-TR.mjs +9 -0
  159. package/dist/tr-TR.module.js +9 -0
  160. package/dist/tr-TR.module.js.map +1 -0
  161. package/dist/types.d.ts +5 -3
  162. package/dist/types.d.ts.map +1 -1
  163. package/dist/uk-UA.main.js +7 -0
  164. package/dist/uk-UA.main.js.map +1 -0
  165. package/dist/uk-UA.mjs +9 -0
  166. package/dist/uk-UA.module.js +9 -0
  167. package/dist/uk-UA.module.js.map +1 -0
  168. package/dist/zh-CN.main.js +7 -0
  169. package/dist/zh-CN.main.js.map +1 -0
  170. package/dist/zh-CN.mjs +9 -0
  171. package/dist/zh-CN.module.js +9 -0
  172. package/dist/zh-CN.module.js.map +1 -0
  173. package/dist/zh-TW.main.js +7 -0
  174. package/dist/zh-TW.main.js.map +1 -0
  175. package/dist/zh-TW.mjs +9 -0
  176. package/dist/zh-TW.module.js +9 -0
  177. package/dist/zh-TW.module.js.map +1 -0
  178. package/package.json +11 -11
  179. package/src/useTag.ts +1 -1
  180. package/src/useTagGroup.ts +6 -4
package/dist/module.js CHANGED
@@ -1,11 +1,46 @@
1
+ import $84925f526f90eebd$exports from "./ar-AE.module.js";
2
+ import $c0650163dc1b6f9d$exports from "./bg-BG.module.js";
3
+ import $b2b55661291de587$exports from "./cs-CZ.module.js";
4
+ import $deb83970956f6d5b$exports from "./da-DK.module.js";
5
+ import $aea1cb4c7ec97e1c$exports from "./de-DE.module.js";
6
+ import $3618d917e503a8d3$exports from "./el-GR.module.js";
7
+ import $9eb56bbbe8e31294$exports from "./en-US.module.js";
8
+ import $361c604b0fc269a3$exports from "./es-ES.module.js";
9
+ import $2f00170f4ee3ca01$exports from "./et-EE.module.js";
10
+ import $80ee16b64fab9fb5$exports from "./fi-FI.module.js";
11
+ import $be9d354476c08087$exports from "./fr-FR.module.js";
12
+ import $ffeb903ba092eb35$exports from "./he-IL.module.js";
13
+ import $1df6722c6f19728b$exports from "./hr-HR.module.js";
14
+ import $093d57e325bc9071$exports from "./hu-HU.module.js";
15
+ import $609dbdfbcad85bdb$exports from "./it-IT.module.js";
16
+ import $c08e84f882644048$exports from "./ja-JP.module.js";
17
+ import $5cd130489822fa21$exports from "./ko-KR.module.js";
18
+ import $ab5183739b6c5e7e$exports from "./lt-LT.module.js";
19
+ import $dd84a0b574be3f23$exports from "./lv-LV.module.js";
20
+ import $85eee97d14eef7b5$exports from "./nb-NO.module.js";
21
+ import $18781839f93b0314$exports from "./nl-NL.module.js";
22
+ import $1c40ffbbfe9f3bda$exports from "./pl-PL.module.js";
23
+ import $156880e329b1c717$exports from "./pt-BR.module.js";
24
+ import $b6d50b1d20768ce4$exports from "./pt-PT.module.js";
25
+ import $d8c38c691b006187$exports from "./ro-RO.module.js";
26
+ import $ed9b4bf7ce1fb1d7$exports from "./ru-RU.module.js";
27
+ import $51d8721afda4d678$exports from "./sk-SK.module.js";
28
+ import $fd37a27baae493e8$exports from "./sl-SI.module.js";
29
+ import $5505a1ca71ffd6f4$exports from "./sr-SP.module.js";
30
+ import $33670e148c84ad02$exports from "./sv-SE.module.js";
31
+ import $0bf46fdcdd7cb5f6$exports from "./tr-TR.module.js";
32
+ import $9d9765222bc08ca2$exports from "./uk-UA.module.js";
33
+ import $d737296cedcdee9f$exports from "./zh-CN.module.js";
34
+ import $09cd168ab18773f4$exports from "./zh-TW.module.js";
1
35
  import {useId as $aIvin$useId, useDescription as $aIvin$useDescription, filterDOMProps as $aIvin$filterDOMProps, getSyntheticLinkProps as $aIvin$getSyntheticLinkProps, mergeProps as $aIvin$mergeProps} from "@react-aria/utils";
2
36
  import {useGridListItem as $aIvin$useGridListItem, useGridList as $aIvin$useGridList} from "@react-aria/gridlist";
3
37
  import {useInteractionModality as $aIvin$useInteractionModality, useFocusWithin as $aIvin$useFocusWithin} from "@react-aria/interactions";
4
38
  import {useLocalizedStringFormatter as $aIvin$useLocalizedStringFormatter, useLocale as $aIvin$useLocale} from "@react-aria/i18n";
5
- import {useState as $aIvin$useState, useRef as $aIvin$useRef, useEffect as $aIvin$useEffect} from "react";
6
39
  import {ListKeyboardDelegate as $aIvin$ListKeyboardDelegate} from "@react-aria/selection";
40
+ import {useState as $aIvin$useState, useRef as $aIvin$useRef, useEffect as $aIvin$useEffect} from "react";
7
41
  import {useField as $aIvin$useField} from "@react-aria/label";
8
42
 
43
+
9
44
  function $parcel$interopDefault(a) {
10
45
  return a && a.__esModule ? a.default : a;
11
46
  }
@@ -103,243 +138,39 @@ function $d7323bca8d074eeb$export$4f8b5cda58b7e8ff(props, state, ref) {
103
138
 
104
139
 
105
140
  var $3bb15cc24d006ec5$exports = {};
106
- var $84925f526f90eebd$exports = {};
107
- $84925f526f90eebd$exports = {
108
- "removeButtonLabel": `إزالة`,
109
- "removeDescription": `اضغط على مفتاح DELETE لإزالة علامة.`
110
- };
111
-
112
-
113
- var $c0650163dc1b6f9d$exports = {};
114
- $c0650163dc1b6f9d$exports = {
115
- "removeButtonLabel": `Премахване`,
116
- "removeDescription": `Натиснете Delete, за да премахнете маркера.`
117
- };
118
-
119
-
120
- var $b2b55661291de587$exports = {};
121
- $b2b55661291de587$exports = {
122
- "removeButtonLabel": `Odebrat`,
123
- "removeDescription": `Stisknutím klávesy Delete odeberete značku.`
124
- };
125
-
126
-
127
- var $deb83970956f6d5b$exports = {};
128
- $deb83970956f6d5b$exports = {
129
- "removeButtonLabel": `Fjern`,
130
- "removeDescription": `Tryk på Slet for at fjerne tag.`
131
- };
132
-
133
-
134
- var $aea1cb4c7ec97e1c$exports = {};
135
- $aea1cb4c7ec97e1c$exports = {
136
- "removeButtonLabel": `Entfernen`,
137
- "removeDescription": `Auf „Löschen“ drücken, um das Tag zu entfernen.`
138
- };
139
-
140
-
141
- var $3618d917e503a8d3$exports = {};
142
- $3618d917e503a8d3$exports = {
143
- "removeButtonLabel": `Κατάργηση`,
144
- "removeDescription": `Πατήστε Διαγραφή για να καταργήσετε την ετικέτα.`
145
- };
146
141
 
147
142
 
148
- var $9eb56bbbe8e31294$exports = {};
149
- $9eb56bbbe8e31294$exports = {
150
- "removeDescription": `Press Delete to remove tag.`,
151
- "removeButtonLabel": `Remove`
152
- };
153
143
 
154
144
 
155
- var $361c604b0fc269a3$exports = {};
156
- $361c604b0fc269a3$exports = {
157
- "removeButtonLabel": `Quitar`,
158
- "removeDescription": `Pulse Eliminar para quitar la etiqueta.`
159
- };
160
145
 
161
146
 
162
- var $2f00170f4ee3ca01$exports = {};
163
- $2f00170f4ee3ca01$exports = {
164
- "removeButtonLabel": `Eemalda`,
165
- "removeDescription": `Sildi eemaldamiseks vajutage kustutusklahvi Delete.`
166
- };
167
147
 
168
148
 
169
- var $80ee16b64fab9fb5$exports = {};
170
- $80ee16b64fab9fb5$exports = {
171
- "removeButtonLabel": `Poista`,
172
- "removeDescription": `Poista tunniste painamalla Poista-painiketta.`
173
- };
174
149
 
175
150
 
176
- var $be9d354476c08087$exports = {};
177
- $be9d354476c08087$exports = {
178
- "removeButtonLabel": `Supprimer`,
179
- "removeDescription": `Appuyez sur Supprimer pour supprimer l’étiquette.`
180
- };
181
-
182
151
 
183
- var $ffeb903ba092eb35$exports = {};
184
- $ffeb903ba092eb35$exports = {
185
- "removeButtonLabel": `הסר`,
186
- "removeDescription": `לחץ על מחק כדי להסיר תג.`
187
- };
188
152
 
189
153
 
190
- var $1df6722c6f19728b$exports = {};
191
- $1df6722c6f19728b$exports = {
192
- "removeButtonLabel": `Ukloni`,
193
- "removeDescription": `Pritisnite Delete za uklanjanje oznake.`
194
- };
195
154
 
196
155
 
197
- var $093d57e325bc9071$exports = {};
198
- $093d57e325bc9071$exports = {
199
- "removeButtonLabel": `Eltávolítás`,
200
- "removeDescription": `Nyomja meg a Delete billentyűt a címke eltávolításához.`
201
- };
202
156
 
203
157
 
204
- var $609dbdfbcad85bdb$exports = {};
205
- $609dbdfbcad85bdb$exports = {
206
- "removeButtonLabel": `Rimuovi`,
207
- "removeDescription": `Premi Elimina per rimuovere il tag.`
208
- };
209
158
 
210
159
 
211
- var $c08e84f882644048$exports = {};
212
- $c08e84f882644048$exports = {
213
- "removeButtonLabel": `削除`,
214
- "removeDescription": `タグを削除するには、Delete キーを押します。`
215
- };
216
160
 
217
161
 
218
- var $5cd130489822fa21$exports = {};
219
- $5cd130489822fa21$exports = {
220
- "removeButtonLabel": `제거`,
221
- "removeDescription": `태그를 제거하려면 Delete 키를 누르십시오.`
222
- };
223
162
 
224
163
 
225
- var $ab5183739b6c5e7e$exports = {};
226
- $ab5183739b6c5e7e$exports = {
227
- "removeButtonLabel": `Pašalinti`,
228
- "removeDescription": `Norėdami pašalinti žymą, paspauskite „Delete“ klavišą.`
229
- };
230
164
 
231
165
 
232
- var $dd84a0b574be3f23$exports = {};
233
- $dd84a0b574be3f23$exports = {
234
- "removeButtonLabel": `Noņemt`,
235
- "removeDescription": `Nospiediet Delete [Dzēst], lai noņemtu tagu.`
236
- };
237
166
 
238
167
 
239
- var $85eee97d14eef7b5$exports = {};
240
- $85eee97d14eef7b5$exports = {
241
- "removeButtonLabel": `Fjern`,
242
- "removeDescription": `Trykk på Slett for å fjerne taggen.`
243
- };
244
168
 
245
169
 
246
- var $18781839f93b0314$exports = {};
247
- $18781839f93b0314$exports = {
248
- "removeButtonLabel": `Verwijderen`,
249
- "removeDescription": `Druk op Verwijderen om de tag te verwijderen.`
250
- };
251
170
 
252
171
 
253
- var $1c40ffbbfe9f3bda$exports = {};
254
- $1c40ffbbfe9f3bda$exports = {
255
- "removeButtonLabel": `Usuń`,
256
- "removeDescription": `Naciśnij Usuń, aby usunąć znacznik.`
257
- };
258
172
 
259
173
 
260
- var $156880e329b1c717$exports = {};
261
- $156880e329b1c717$exports = {
262
- "removeButtonLabel": `Remover`,
263
- "removeDescription": `Pressione Delete para remover a tag.`
264
- };
265
-
266
-
267
- var $b6d50b1d20768ce4$exports = {};
268
- $b6d50b1d20768ce4$exports = {
269
- "removeButtonLabel": `Eliminar`,
270
- "removeDescription": `Prima Delete para eliminar a tag.`
271
- };
272
-
273
-
274
- var $d8c38c691b006187$exports = {};
275
- $d8c38c691b006187$exports = {
276
- "removeButtonLabel": `Îndepărtaţi`,
277
- "removeDescription": `Apăsați pe Delete (Ștergere) pentru a elimina eticheta.`
278
- };
279
-
280
-
281
- var $ed9b4bf7ce1fb1d7$exports = {};
282
- $ed9b4bf7ce1fb1d7$exports = {
283
- "removeButtonLabel": `Удалить`,
284
- "removeDescription": `Нажмите DELETE, чтобы удалить тег.`
285
- };
286
-
287
-
288
- var $51d8721afda4d678$exports = {};
289
- $51d8721afda4d678$exports = {
290
- "removeButtonLabel": `Odstrániť`,
291
- "removeDescription": `Ak chcete odstrániť značku, stlačte kláves Delete.`
292
- };
293
-
294
-
295
- var $fd37a27baae493e8$exports = {};
296
- $fd37a27baae493e8$exports = {
297
- "removeButtonLabel": `Odstrani`,
298
- "removeDescription": `Pritisnite Delete, da odstranite oznako.`
299
- };
300
-
301
-
302
- var $5505a1ca71ffd6f4$exports = {};
303
- $5505a1ca71ffd6f4$exports = {
304
- "removeButtonLabel": `Ukloni`,
305
- "removeDescription": `Pritisnite Obriši da biste uklonili oznaku.`
306
- };
307
-
308
-
309
- var $33670e148c84ad02$exports = {};
310
- $33670e148c84ad02$exports = {
311
- "removeButtonLabel": `Ta bort`,
312
- "removeDescription": `Tryck på Radera för att ta bort taggen.`
313
- };
314
-
315
-
316
- var $0bf46fdcdd7cb5f6$exports = {};
317
- $0bf46fdcdd7cb5f6$exports = {
318
- "removeButtonLabel": `Kaldır`,
319
- "removeDescription": `Etiketi kaldırmak için Sil tuşuna basın.`
320
- };
321
-
322
-
323
- var $9d9765222bc08ca2$exports = {};
324
- $9d9765222bc08ca2$exports = {
325
- "removeButtonLabel": `Вилучити`,
326
- "removeDescription": `Натисніть Delete, щоб вилучити тег.`
327
- };
328
-
329
-
330
- var $d737296cedcdee9f$exports = {};
331
- $d737296cedcdee9f$exports = {
332
- "removeButtonLabel": `删除`,
333
- "removeDescription": `按下“删除”以删除标记。`
334
- };
335
-
336
-
337
- var $09cd168ab18773f4$exports = {};
338
- $09cd168ab18773f4$exports = {
339
- "removeButtonLabel": `移除`,
340
- "removeDescription": `按 Delete 鍵以移除標記。`
341
- };
342
-
343
174
 
344
175
  $3bb15cc24d006ec5$exports = {
345
176
  "ar-AE": $84925f526f90eebd$exports,
@@ -384,7 +215,7 @@ $3bb15cc24d006ec5$exports = {
384
215
 
385
216
  function $fc6126c82a4601f1$export$3f568fff7dff2f03(props, state, ref) {
386
217
  let { item: item } = props;
387
- let stringFormatter = (0, $aIvin$useLocalizedStringFormatter)((0, (/*@__PURE__*/$parcel$interopDefault($3bb15cc24d006ec5$exports))));
218
+ let stringFormatter = (0, $aIvin$useLocalizedStringFormatter)((0, (/*@__PURE__*/$parcel$interopDefault($3bb15cc24d006ec5$exports))), "@react-aria/tag");
388
219
  let buttonId = (0, $aIvin$useId)();
389
220
  let { onRemove: onRemove } = (0, $d7323bca8d074eeb$export$653eddfc964b0f8a).get(state) || {};
390
221
  let { rowProps: rowProps, gridCellProps: gridCellProps, ...states } = (0, $aIvin$useGridListItem)({
@@ -1 +1 @@
1
- {"mappings":";;;;;;;;;;;AAAA;;;;;;;;;;ACAA;;;;;;;;;;CAUC;ACVD;;;;;;;;;;CAUC;;;;;;;AA0CM,MAAM,4CAAW,IAAI;AASrB,SAAS,0CAAe,KAA6B,EAAE,KAAmB,EAAE,GAA2B;IAC5G,IAAI,aAAC,SAAS,EAAC,GAAG,CAAA,GAAA,gBAAQ;IAC1B,IAAI,mBAAmB,MAAM,oBAAoB,IAAI,CAAA,GAAA,2BAAmB,EAAE;QACxE,YAAY,MAAM;aAClB;QACA,aAAa;mBACb;QACA,cAAc,MAAM;IACtB;IACA,IAAI,cAAC,UAAU,cAAE,UAAU,oBAAE,gBAAgB,qBAAE,iBAAiB,EAAC,GAAG,CAAA,GAAA,eAAO,EAAE;QAC3E,GAAG,KAAK;QACR,kBAAkB;IACpB;IACA,IAAI,aAAC,SAAS,EAAC,GAAG,CAAA,GAAA,kBAAU,EAAE;QAC5B,GAAG,KAAK;QACR,GAAG,UAAU;0BACb;QACA,iBAAiB;QACjB,cAAc;IAChB,GAAG,OAAO;IAEV,IAAI,CAAC,eAAe,eAAe,GAAG,CAAA,GAAA,eAAO,EAAE;IAC/C,IAAI,oBAAC,gBAAgB,EAAC,GAAG,CAAA,GAAA,qBAAa,EAAE;QACtC,qBAAqB;IACvB;IACA,IAAI,WAAW,CAAA,GAAA,qBAAa,EAAE;IAE9B,mDAAmD;IACnD,IAAI,YAAY,CAAA,GAAA,aAAK,EAAE,MAAM,WAAW;IACxC,CAAA,GAAA,gBAAQ,EAAE;QACR,IAAI,UAAU,UAAU,KAAK,MAAM,WAAW,SAAS,KAAK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I,YAAY,CAAA,GAAA,4BAAoB,EAAE,KAAK;IAC3C,OAAO;QACL,mBAAmB;YACjB,cAAc,gBAAgB,OAAO;YACrC,mBAAmB,CAAC,EAAE,SAAS,CAAC,EAAE,SAAS,GAAG,CAAC;YAC/C,IAAI;YACJ,SAAS,IAAM,WAAW,SAAS,IAAI,IAAI;oBAAC,KAAK;iBAAI,KAAK;YAC1D,qBAAqB;QACvB;QACA,UAAU,CAAA,GAAA,iBAAS,EAAE,UAAU,UAAU,WAAW;YAClD,UAAU,AAAC,aAAa,MAAM,iBAAiB,cAAc,OAAQ,IAAI;YACzE,WAAW,WAAW,YAAY;YAClC,oBAAoB,SAAS,CAAC,mBAAmB;QACnD;QACA,eAAe,CAAA,GAAA,iBAAS,EAAE,eAAe;YACvC,qBAAqB,KAAK,CAAC,oBAAoB;YAC/C,cAAc,KAAK,CAAC,aAAa;QACnC;QACA,GAAG,MAAM;QACT,gBAAgB,CAAC,CAAC;IACpB;AACF;;CD9FC","sources":["packages/@react-aria/tag/src/index.ts","packages/@react-aria/tag/src/useTag.ts","packages/@react-aria/tag/src/useTagGroup.ts","packages/@react-aria/tag/src/*.js","packages/@react-aria/tag/intl/ar-AE.json","packages/@react-aria/tag/intl/bg-BG.json","packages/@react-aria/tag/intl/cs-CZ.json","packages/@react-aria/tag/intl/da-DK.json","packages/@react-aria/tag/intl/de-DE.json","packages/@react-aria/tag/intl/el-GR.json","packages/@react-aria/tag/intl/en-US.json","packages/@react-aria/tag/intl/es-ES.json","packages/@react-aria/tag/intl/et-EE.json","packages/@react-aria/tag/intl/fi-FI.json","packages/@react-aria/tag/intl/fr-FR.json","packages/@react-aria/tag/intl/he-IL.json","packages/@react-aria/tag/intl/hr-HR.json","packages/@react-aria/tag/intl/hu-HU.json","packages/@react-aria/tag/intl/it-IT.json","packages/@react-aria/tag/intl/ja-JP.json","packages/@react-aria/tag/intl/ko-KR.json","packages/@react-aria/tag/intl/lt-LT.json","packages/@react-aria/tag/intl/lv-LV.json","packages/@react-aria/tag/intl/nb-NO.json","packages/@react-aria/tag/intl/nl-NL.json","packages/@react-aria/tag/intl/pl-PL.json","packages/@react-aria/tag/intl/pt-BR.json","packages/@react-aria/tag/intl/pt-PT.json","packages/@react-aria/tag/intl/ro-RO.json","packages/@react-aria/tag/intl/ru-RU.json","packages/@react-aria/tag/intl/sk-SK.json","packages/@react-aria/tag/intl/sl-SI.json","packages/@react-aria/tag/intl/sr-SP.json","packages/@react-aria/tag/intl/sv-SE.json","packages/@react-aria/tag/intl/tr-TR.json","packages/@react-aria/tag/intl/uk-UA.json","packages/@react-aria/tag/intl/zh-CN.json","packages/@react-aria/tag/intl/zh-TW.json"],"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 */\n\nexport {useTag} from './useTag';\nexport {useTagGroup} from './useTagGroup';\n\nexport type {TagGroupAria, AriaTagGroupProps} from './useTagGroup';\nexport type {AriaTagProps, TagAria} from './useTag';\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 {DOMAttributes, FocusableElement, Node} from '@react-types/shared';\nimport {filterDOMProps, getSyntheticLinkProps, mergeProps, useDescription, useId} from '@react-aria/utils';\nimport {hookData} from './useTagGroup';\n// @ts-ignore\nimport intlMessages from '../intl/*.json';\nimport {KeyboardEvent, RefObject} from 'react';\nimport type {ListState} from '@react-stately/list';\nimport {SelectableItemStates} from '@react-aria/selection';\nimport {useGridListItem} from '@react-aria/gridlist';\nimport {useInteractionModality} from '@react-aria/interactions';\nimport {useLocalizedStringFormatter} from '@react-aria/i18n';\n\n\nexport interface TagAria extends Omit<SelectableItemStates, 'hasAction'> {\n /** Props for the tag row element. */\n rowProps: DOMAttributes,\n /** Props for the tag cell element. */\n gridCellProps: DOMAttributes,\n /** Props for the tag remove button. */\n removeButtonProps: AriaButtonProps,\n /** Whether the tag can be removed. */\n allowsRemoving: boolean\n}\n\nexport interface AriaTagProps<T> {\n /** An object representing the tag. Contains all the relevant information that makes up the tag. */\n item: Node<T>\n}\n\n/**\n * Provides the behavior and accessibility implementation for a tag component.\n * @param props - Props to be applied to the tag.\n * @param state - State for the tag group, as returned by `useListState`.\n * @param ref - A ref to a DOM element for the tag.\n */\nexport function useTag<T>(props: AriaTagProps<T>, state: ListState<T>, ref: RefObject<FocusableElement>): TagAria {\n let {item} = props;\n let stringFormatter = useLocalizedStringFormatter(intlMessages);\n let buttonId = useId();\n\n let {onRemove} = hookData.get(state) || {};\n let {rowProps, gridCellProps, ...states} = useGridListItem({\n node: item\n }, state, ref);\n\n // We want the group to handle keyboard navigation between tags.\n delete rowProps.onKeyDownCapture;\n delete states.descriptionProps;\n\n let onKeyDown = (e: KeyboardEvent) => {\n if (e.key === 'Delete' || e.key === 'Backspace') {\n e.preventDefault();\n if (state.selectionManager.isSelected(item.key)) {\n onRemove(new Set(state.selectionManager.selectedKeys));\n } else {\n onRemove(new Set([item.key]));\n }\n }\n };\n\n let modality: string = useInteractionModality();\n if (modality === 'virtual' && (typeof window !== 'undefined' && 'ontouchstart' in window)) {\n modality = 'touch';\n }\n let description = onRemove && (modality === 'keyboard' || modality === 'virtual') ? stringFormatter.format('removeDescription') : '';\n let descProps = useDescription(description);\n\n let isFocused = item.key === state.selectionManager.focusedKey;\n // @ts-ignore - data attributes are ok but TS doesn't know about them.\n let domProps = filterDOMProps(item.props);\n let linkProps = getSyntheticLinkProps(item.props);\n return {\n removeButtonProps: {\n 'aria-label': stringFormatter.format('removeButtonLabel'),\n 'aria-labelledby': `${buttonId} ${rowProps.id}`,\n id: buttonId,\n onPress: () => onRemove ? onRemove(new Set([item.key])) : null,\n excludeFromTabOrder: true\n },\n rowProps: mergeProps(rowProps, domProps, linkProps, {\n tabIndex: (isFocused || state.selectionManager.focusedKey == null) ? 0 : -1,\n onKeyDown: onRemove ? onKeyDown : undefined,\n 'aria-describedby': descProps['aria-describedby']\n }),\n gridCellProps: mergeProps(gridCellProps, {\n 'aria-errormessage': props['aria-errormessage'],\n 'aria-label': props['aria-label']\n }),\n ...states,\n allowsRemoving: !!onRemove\n };\n}\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 {AriaLabelingProps, CollectionBase, DOMAttributes, DOMProps, HelpTextProps, KeyboardDelegate, LabelableProps, MultipleSelection, SelectionBehavior} from '@react-types/shared';\nimport {filterDOMProps, mergeProps} from '@react-aria/utils';\nimport {Key, RefObject, useEffect, useRef, useState} from 'react';\nimport {ListKeyboardDelegate} from '@react-aria/selection';\nimport type {ListState} from '@react-stately/list';\nimport {useField} from '@react-aria/label';\nimport {useFocusWithin} from '@react-aria/interactions';\nimport {useGridList} from '@react-aria/gridlist';\nimport {useLocale} from '@react-aria/i18n';\n\nexport interface TagGroupAria {\n /** Props for the tag grouping element. */\n gridProps: DOMAttributes,\n /** Props for the tag group's visible label (if any). */\n labelProps: DOMAttributes,\n /** Props for the tag group description element, if any. */\n descriptionProps: DOMAttributes,\n /** Props for the tag group error message element, if any. */\n errorMessageProps: DOMAttributes\n}\n\nexport interface AriaTagGroupProps<T> extends CollectionBase<T>, MultipleSelection, DOMProps, LabelableProps, AriaLabelingProps, HelpTextProps {\n /** How multiple selection should behave in the collection. */\n selectionBehavior?: SelectionBehavior,\n /** Handler that is called when a user deletes a tag. */\n onRemove?: (keys: Set<Key>) => void\n}\n\nexport interface AriaTagGroupOptions<T> extends Omit<AriaTagGroupProps<T>, 'children'> {\n /**\n * An optional keyboard delegate to handle arrow key navigation,\n * to override the default.\n */\n keyboardDelegate?: KeyboardDelegate\n}\n\ninterface HookData {\n onRemove?: (keys: Set<Key>) => void\n}\n\nexport const hookData = new WeakMap<ListState<any>, HookData>();\n\n/**\n * Provides the behavior and accessibility implementation for a tag group component.\n * A tag group is a focusable list of labels, categories, keywords, filters, or other items, with support for keyboard navigation, selection, and removal.\n * @param props - Props to be applied to the tag group.\n * @param state - State for the tag group, as returned by `useListState`.\n * @param ref - A ref to a DOM element for the tag group.\n */\nexport function useTagGroup<T>(props: AriaTagGroupOptions<T>, state: ListState<T>, ref: RefObject<HTMLElement>): TagGroupAria {\n let {direction} = useLocale();\n let keyboardDelegate = props.keyboardDelegate || new ListKeyboardDelegate({\n collection: state.collection,\n ref,\n orientation: 'horizontal',\n direction,\n disabledKeys: state.disabledKeys\n });\n let {labelProps, fieldProps, descriptionProps, errorMessageProps} = useField({\n ...props,\n labelElementType: 'span'\n });\n let {gridProps} = useGridList({\n ...props,\n ...fieldProps,\n keyboardDelegate,\n shouldFocusWrap: true,\n linkBehavior: 'override'\n }, state, ref);\n\n let [isFocusWithin, setFocusWithin] = useState(false);\n let {focusWithinProps} = useFocusWithin({\n onFocusWithinChange: setFocusWithin\n });\n let domProps = filterDOMProps(props);\n\n // If the last tag is removed, focus the container.\n let prevCount = useRef(state.collection.size);\n useEffect(() => {\n if (prevCount.current > 0 && state.collection.size === 0 && isFocusWithin) {\n ref.current.focus();\n }\n prevCount.current = state.collection.size;\n }, [state.collection.size, isFocusWithin, ref]);\n\n hookData.set(state, {onRemove: props.onRemove});\n\n return {\n gridProps: mergeProps(gridProps, domProps, {\n role: state.collection.size ? 'grid' : null,\n 'aria-atomic': false,\n 'aria-relevant': 'additions',\n 'aria-live': isFocusWithin ? 'polite' : 'off',\n ...focusWithinProps,\n ...fieldProps\n }),\n labelProps,\n descriptionProps,\n errorMessageProps\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 \"removeButtonLabel\": \"إزالة\",\n \"removeDescription\": \"اضغط على مفتاح DELETE لإزالة علامة.\"\n}\n","{\n \"removeButtonLabel\": \"Премахване\",\n \"removeDescription\": \"Натиснете Delete, за да премахнете маркера.\"\n}\n","{\n \"removeButtonLabel\": \"Odebrat\",\n \"removeDescription\": \"Stisknutím klávesy Delete odeberete značku.\"\n}\n","{\n \"removeButtonLabel\": \"Fjern\",\n \"removeDescription\": \"Tryk på Slet for at fjerne tag.\"\n}\n","{\n \"removeButtonLabel\": \"Entfernen\",\n \"removeDescription\": \"Auf „Löschen“ drücken, um das Tag zu entfernen.\"\n}\n","{\n \"removeButtonLabel\": \"Κατάργηση\",\n \"removeDescription\": \"Πατήστε Διαγραφή για να καταργήσετε την ετικέτα.\"\n}\n","{ \n \"removeDescription\": \"Press Delete to remove tag.\",\n \"removeButtonLabel\": \"Remove\"\n}\n","{\n \"removeButtonLabel\": \"Quitar\",\n \"removeDescription\": \"Pulse Eliminar para quitar la etiqueta.\"\n}\n","{\n \"removeButtonLabel\": \"Eemalda\",\n \"removeDescription\": \"Sildi eemaldamiseks vajutage kustutusklahvi Delete.\"\n}\n","{\n \"removeButtonLabel\": \"Poista\",\n \"removeDescription\": \"Poista tunniste painamalla Poista-painiketta.\"\n}\n","{\n \"removeButtonLabel\": \"Supprimer\",\n \"removeDescription\": \"Appuyez sur Supprimer pour supprimer l’étiquette.\"\n}\n","{\n \"removeButtonLabel\": \"הסר\",\n \"removeDescription\": \"לחץ על מחק כדי להסיר תג.\"\n}\n","{\n \"removeButtonLabel\": \"Ukloni\",\n \"removeDescription\": \"Pritisnite Delete za uklanjanje oznake.\"\n}\n","{\n \"removeButtonLabel\": \"Eltávolítás\",\n \"removeDescription\": \"Nyomja meg a Delete billentyűt a címke eltávolításához.\"\n}\n","{\n \"removeButtonLabel\": \"Rimuovi\",\n \"removeDescription\": \"Premi Elimina per rimuovere il tag.\"\n}\n","{\n \"removeButtonLabel\": \"削除\",\n \"removeDescription\": \"タグを削除するには、Delete キーを押します。\"\n}\n","{\n \"removeButtonLabel\": \"제거\",\n \"removeDescription\": \"태그를 제거하려면 Delete 키를 누르십시오.\"\n}\n","{\n \"removeButtonLabel\": \"Pašalinti\",\n \"removeDescription\": \"Norėdami pašalinti žymą, paspauskite „Delete“ klavišą.\"\n}\n","{\n \"removeButtonLabel\": \"Noņemt\",\n \"removeDescription\": \"Nospiediet Delete [Dzēst], lai noņemtu tagu.\"\n}\n","{\n \"removeButtonLabel\": \"Fjern\",\n \"removeDescription\": \"Trykk på Slett for å fjerne taggen.\"\n}\n","{\n \"removeButtonLabel\": \"Verwijderen\",\n \"removeDescription\": \"Druk op Verwijderen om de tag te verwijderen.\"\n}\n","{\n \"removeButtonLabel\": \"Usuń\",\n \"removeDescription\": \"Naciśnij Usuń, aby usunąć znacznik.\"\n}\n","{\n \"removeButtonLabel\": \"Remover\",\n \"removeDescription\": \"Pressione Delete para remover a tag.\"\n}\n","{\n \"removeButtonLabel\": \"Eliminar\",\n \"removeDescription\": \"Prima Delete para eliminar a tag.\"\n}\n","{\n \"removeButtonLabel\": \"Îndepărtaţi\",\n \"removeDescription\": \"Apăsați pe Delete (Ștergere) pentru a elimina eticheta.\"\n}\n","{\n \"removeButtonLabel\": \"Удалить\",\n \"removeDescription\": \"Нажмите DELETE, чтобы удалить тег.\"\n}\n","{\n \"removeButtonLabel\": \"Odstrániť\",\n \"removeDescription\": \"Ak chcete odstrániť značku, stlačte kláves Delete.\"\n}\n","{\n \"removeButtonLabel\": \"Odstrani\",\n \"removeDescription\": \"Pritisnite Delete, da odstranite oznako.\"\n}\n","{\n \"removeButtonLabel\": \"Ukloni\",\n \"removeDescription\": \"Pritisnite Obriši da biste uklonili oznaku.\"\n}\n","{\n \"removeButtonLabel\": \"Ta bort\",\n \"removeDescription\": \"Tryck på Radera för att ta bort taggen.\"\n}\n","{\n \"removeButtonLabel\": \"Kaldır\",\n \"removeDescription\": \"Etiketi kaldırmak için Sil tuşuna basın.\"\n}\n","{\n \"removeButtonLabel\": \"Вилучити\",\n \"removeDescription\": \"Натисніть Delete, щоб вилучити тег.\"\n}\n","{\n \"removeButtonLabel\": \"删除\",\n \"removeDescription\": \"按下“删除”以删除标记。\"\n}\n","{\n \"removeButtonLabel\": \"移除\",\n \"removeDescription\": \"按 Delete 鍵以移除標記。\"\n}\n"],"names":[],"version":3,"file":"module.js.map"}
1
+ {"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;;;;;;;;;ACAA;;;;;;;;;;CAUC;ACVD;;;;;;;;;;CAUC;;;;;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,SAAS,IAAI,IAAI,MAAM,gBAAgB,CAAC,YAAY;iBAEpD,SAAS,IAAI,IAAI;gBAAC,KAAK,GAAG;aAAC;QAE/B;IACF;IAEA,IAAI,WAAmB,CAAA,GAAA,6BAAqB;IAC5C,IAAI,aAAa,aAAe,OAAO,WAAW,eAAe,kBAAkB,QACjF,WAAW;IAEb,IAAI,cAAc,YAAa,CAAA,aAAa,cAAc,aAAa,SAAQ,IAAK,gBAAgB,MAAM,CAAC,uBAAuB;IAClI,IAAI,YAAY,CAAA,GAAA,qBAAa,EAAE;IAE/B,IAAI,YAAY,KAAK,GAAG,KAAK,MAAM,gBAAgB,CAAC,UAAU;IAC9D,sEAAsE;IACtE,IAAI,WAAW,CAAA,GAAA,qBAAa,EAAE,KAAK,KAAK;IACxC,IAAI,YAAY,CAAA,GAAA,4BAAoB,EAAE,KAAK,KAAK;IAChD,OAAO;QACL,mBAAmB;YACjB,cAAc,gBAAgB,MAAM,CAAC;YACrC,mBAAmB,CAAC,EAAE,SAAS,CAAC,EAAE,SAAS,EAAE,CAAC,CAAC;YAC/C,IAAI;YACJ,SAAS,IAAM,WAAW,SAAS,IAAI,IAAI;oBAAC,KAAK,GAAG;iBAAC,KAAK;YAC1D,qBAAqB;QACvB;QACA,UAAU,CAAA,GAAA,iBAAS,EAAE,UAAU,UAAU,WAAW;YAClD,UAAU,AAAC,aAAa,MAAM,gBAAgB,CAAC,UAAU,IAAI,OAAQ,IAAI;YACzE,WAAW,WAAW,YAAY;YAClC,oBAAoB,SAAS,CAAC,mBAAmB;QACnD;QACA,eAAe,CAAA,GAAA,iBAAS,EAAE,eAAe;YACvC,qBAAqB,KAAK,CAAC,oBAAoB;YAC/C,cAAc,KAAK,CAAC,aAAa;QACnC;QACA,GAAG,MAAM;QACT,gBAAgB,CAAC,CAAC;IACpB;AACF;;CD9FC","sources":["packages/@react-aria/tag/src/index.ts","packages/@react-aria/tag/src/useTag.ts","packages/@react-aria/tag/src/useTagGroup.ts","packages/@react-aria/tag/src/*.js"],"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 */\n\nexport {useTag} from './useTag';\nexport {useTagGroup} from './useTagGroup';\n\nexport type {TagGroupAria, AriaTagGroupProps} from './useTagGroup';\nexport type {AriaTagProps, TagAria} from './useTag';\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 {DOMAttributes, FocusableElement, Node} from '@react-types/shared';\nimport {filterDOMProps, getSyntheticLinkProps, mergeProps, useDescription, useId} from '@react-aria/utils';\nimport {hookData} from './useTagGroup';\n// @ts-ignore\nimport intlMessages from '../intl/*.json';\nimport {KeyboardEvent, RefObject} from 'react';\nimport type {ListState} from '@react-stately/list';\nimport {SelectableItemStates} from '@react-aria/selection';\nimport {useGridListItem} from '@react-aria/gridlist';\nimport {useInteractionModality} from '@react-aria/interactions';\nimport {useLocalizedStringFormatter} from '@react-aria/i18n';\n\n\nexport interface TagAria extends Omit<SelectableItemStates, 'hasAction'> {\n /** Props for the tag row element. */\n rowProps: DOMAttributes,\n /** Props for the tag cell element. */\n gridCellProps: DOMAttributes,\n /** Props for the tag remove button. */\n removeButtonProps: AriaButtonProps,\n /** Whether the tag can be removed. */\n allowsRemoving: boolean\n}\n\nexport interface AriaTagProps<T> {\n /** An object representing the tag. Contains all the relevant information that makes up the tag. */\n item: Node<T>\n}\n\n/**\n * Provides the behavior and accessibility implementation for a tag component.\n * @param props - Props to be applied to the tag.\n * @param state - State for the tag group, as returned by `useListState`.\n * @param ref - A ref to a DOM element for the tag.\n */\nexport function useTag<T>(props: AriaTagProps<T>, state: ListState<T>, ref: RefObject<FocusableElement>): TagAria {\n let {item} = props;\n let stringFormatter = useLocalizedStringFormatter(intlMessages, '@react-aria/tag');\n let buttonId = useId();\n\n let {onRemove} = hookData.get(state) || {};\n let {rowProps, gridCellProps, ...states} = useGridListItem({\n node: item\n }, state, ref);\n\n // We want the group to handle keyboard navigation between tags.\n delete rowProps.onKeyDownCapture;\n delete states.descriptionProps;\n\n let onKeyDown = (e: KeyboardEvent) => {\n if (e.key === 'Delete' || e.key === 'Backspace') {\n e.preventDefault();\n if (state.selectionManager.isSelected(item.key)) {\n onRemove(new Set(state.selectionManager.selectedKeys));\n } else {\n onRemove(new Set([item.key]));\n }\n }\n };\n\n let modality: string = useInteractionModality();\n if (modality === 'virtual' && (typeof window !== 'undefined' && 'ontouchstart' in window)) {\n modality = 'touch';\n }\n let description = onRemove && (modality === 'keyboard' || modality === 'virtual') ? stringFormatter.format('removeDescription') : '';\n let descProps = useDescription(description);\n\n let isFocused = item.key === state.selectionManager.focusedKey;\n // @ts-ignore - data attributes are ok but TS doesn't know about them.\n let domProps = filterDOMProps(item.props);\n let linkProps = getSyntheticLinkProps(item.props);\n return {\n removeButtonProps: {\n 'aria-label': stringFormatter.format('removeButtonLabel'),\n 'aria-labelledby': `${buttonId} ${rowProps.id}`,\n id: buttonId,\n onPress: () => onRemove ? onRemove(new Set([item.key])) : null,\n excludeFromTabOrder: true\n },\n rowProps: mergeProps(rowProps, domProps, linkProps, {\n tabIndex: (isFocused || state.selectionManager.focusedKey == null) ? 0 : -1,\n onKeyDown: onRemove ? onKeyDown : undefined,\n 'aria-describedby': descProps['aria-describedby']\n }),\n gridCellProps: mergeProps(gridCellProps, {\n 'aria-errormessage': props['aria-errormessage'],\n 'aria-label': props['aria-label']\n }),\n ...states,\n allowsRemoving: !!onRemove\n };\n}\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 {AriaLabelingProps, CollectionBase, DOMAttributes, DOMProps, HelpTextProps, Key, KeyboardDelegate, LabelableProps, MultipleSelection, SelectionBehavior} from '@react-types/shared';\nimport {filterDOMProps, mergeProps} from '@react-aria/utils';\nimport {ListKeyboardDelegate} from '@react-aria/selection';\nimport type {ListState} from '@react-stately/list';\nimport {ReactNode, RefObject, useEffect, useRef, useState} from 'react';\nimport {useField} from '@react-aria/label';\nimport {useFocusWithin} from '@react-aria/interactions';\nimport {useGridList} from '@react-aria/gridlist';\nimport {useLocale} from '@react-aria/i18n';\n\nexport interface TagGroupAria {\n /** Props for the tag grouping element. */\n gridProps: DOMAttributes,\n /** Props for the tag group's visible label (if any). */\n labelProps: DOMAttributes,\n /** Props for the tag group description element, if any. */\n descriptionProps: DOMAttributes,\n /** Props for the tag group error message element, if any. */\n errorMessageProps: DOMAttributes\n}\n\nexport interface AriaTagGroupProps<T> extends CollectionBase<T>, MultipleSelection, DOMProps, LabelableProps, AriaLabelingProps, Omit<HelpTextProps, 'errorMessage'> {\n /** How multiple selection should behave in the collection. */\n selectionBehavior?: SelectionBehavior,\n /** Handler that is called when a user deletes a tag. */\n onRemove?: (keys: Set<Key>) => void,\n /** An error message for the field. */\n errorMessage?: ReactNode\n}\n\nexport interface AriaTagGroupOptions<T> extends Omit<AriaTagGroupProps<T>, 'children'> {\n /**\n * An optional keyboard delegate to handle arrow key navigation,\n * to override the default.\n */\n keyboardDelegate?: KeyboardDelegate\n}\n\ninterface HookData {\n onRemove?: (keys: Set<Key>) => void\n}\n\nexport const hookData = new WeakMap<ListState<any>, HookData>();\n\n/**\n * Provides the behavior and accessibility implementation for a tag group component.\n * A tag group is a focusable list of labels, categories, keywords, filters, or other items, with support for keyboard navigation, selection, and removal.\n * @param props - Props to be applied to the tag group.\n * @param state - State for the tag group, as returned by `useListState`.\n * @param ref - A ref to a DOM element for the tag group.\n */\nexport function useTagGroup<T>(props: AriaTagGroupOptions<T>, state: ListState<T>, ref: RefObject<HTMLElement>): TagGroupAria {\n let {direction} = useLocale();\n let keyboardDelegate = props.keyboardDelegate || new ListKeyboardDelegate({\n collection: state.collection,\n ref,\n orientation: 'horizontal',\n direction,\n disabledKeys: state.disabledKeys\n });\n let {labelProps, fieldProps, descriptionProps, errorMessageProps} = useField({\n ...props,\n labelElementType: 'span'\n });\n let {gridProps} = useGridList({\n ...props,\n ...fieldProps,\n keyboardDelegate,\n shouldFocusWrap: true,\n linkBehavior: 'override'\n }, state, ref);\n\n let [isFocusWithin, setFocusWithin] = useState(false);\n let {focusWithinProps} = useFocusWithin({\n onFocusWithinChange: setFocusWithin\n });\n let domProps = filterDOMProps(props);\n\n // If the last tag is removed, focus the container.\n let prevCount = useRef(state.collection.size);\n useEffect(() => {\n if (prevCount.current > 0 && state.collection.size === 0 && isFocusWithin) {\n ref.current.focus();\n }\n prevCount.current = state.collection.size;\n }, [state.collection.size, isFocusWithin, ref]);\n\n hookData.set(state, {onRemove: props.onRemove});\n\n return {\n gridProps: mergeProps(gridProps, domProps, {\n role: state.collection.size ? 'grid' : null,\n 'aria-atomic': false,\n 'aria-relevant': 'additions',\n 'aria-live': isFocusWithin ? 'polite' : 'off',\n ...focusWithinProps,\n ...fieldProps\n }),\n labelProps,\n descriptionProps,\n errorMessageProps\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}"],"names":[],"version":3,"file":"module.js.map"}
@@ -0,0 +1,7 @@
1
+ module.exports = {
2
+ "removeButtonLabel": `Fjern`,
3
+ "removeDescription": `Trykk p\xe5 Slett for \xe5 fjerne taggen.`
4
+ };
5
+
6
+
7
+ //# sourceMappingURL=nb-NO.main.js.map
@@ -0,0 +1 @@
1
+ {"mappings":"AAAA,iBAAiB;IAAG,qBAAqB,CAAC,KAAK,CAAC;IAC9C,qBAAqB,CAAC,yCAAmC,CAAC;AAC5D","sources":["packages/@react-aria/tag/intl/nb-NO.json"],"sourcesContent":["{\n \"removeButtonLabel\": \"Fjern\",\n \"removeDescription\": \"Trykk på Slett for å fjerne taggen.\"\n}\n"],"names":[],"version":3,"file":"nb-NO.main.js.map"}
package/dist/nb-NO.mjs ADDED
@@ -0,0 +1,9 @@
1
+ var $85eee97d14eef7b5$exports = {};
2
+ $85eee97d14eef7b5$exports = {
3
+ "removeButtonLabel": `Fjern`,
4
+ "removeDescription": `Trykk p\xe5 Slett for \xe5 fjerne taggen.`
5
+ };
6
+
7
+
8
+ export {$85eee97d14eef7b5$exports as default};
9
+ //# sourceMappingURL=nb-NO.module.js.map
@@ -0,0 +1,9 @@
1
+ var $85eee97d14eef7b5$exports = {};
2
+ $85eee97d14eef7b5$exports = {
3
+ "removeButtonLabel": `Fjern`,
4
+ "removeDescription": `Trykk p\xe5 Slett for \xe5 fjerne taggen.`
5
+ };
6
+
7
+
8
+ export {$85eee97d14eef7b5$exports as default};
9
+ //# sourceMappingURL=nb-NO.module.js.map
@@ -0,0 +1 @@
1
+ {"mappings":";AAAA,4BAAiB;IAAG,qBAAqB,CAAC,KAAK,CAAC;IAC9C,qBAAqB,CAAC,yCAAmC,CAAC;AAC5D","sources":["packages/@react-aria/tag/intl/nb-NO.json"],"sourcesContent":["{\n \"removeButtonLabel\": \"Fjern\",\n \"removeDescription\": \"Trykk på Slett for å fjerne taggen.\"\n}\n"],"names":[],"version":3,"file":"nb-NO.module.js.map"}
@@ -0,0 +1,7 @@
1
+ module.exports = {
2
+ "removeButtonLabel": `Verwijderen`,
3
+ "removeDescription": `Druk op Verwijderen om de tag te verwijderen.`
4
+ };
5
+
6
+
7
+ //# sourceMappingURL=nl-NL.main.js.map
@@ -0,0 +1 @@
1
+ {"mappings":"AAAA,iBAAiB;IAAG,qBAAqB,CAAC,WAAW,CAAC;IACpD,qBAAqB,CAAC,6CAA6C,CAAC;AACtE","sources":["packages/@react-aria/tag/intl/nl-NL.json"],"sourcesContent":["{\n \"removeButtonLabel\": \"Verwijderen\",\n \"removeDescription\": \"Druk op Verwijderen om de tag te verwijderen.\"\n}\n"],"names":[],"version":3,"file":"nl-NL.main.js.map"}
package/dist/nl-NL.mjs ADDED
@@ -0,0 +1,9 @@
1
+ var $18781839f93b0314$exports = {};
2
+ $18781839f93b0314$exports = {
3
+ "removeButtonLabel": `Verwijderen`,
4
+ "removeDescription": `Druk op Verwijderen om de tag te verwijderen.`
5
+ };
6
+
7
+
8
+ export {$18781839f93b0314$exports as default};
9
+ //# sourceMappingURL=nl-NL.module.js.map
@@ -0,0 +1,9 @@
1
+ var $18781839f93b0314$exports = {};
2
+ $18781839f93b0314$exports = {
3
+ "removeButtonLabel": `Verwijderen`,
4
+ "removeDescription": `Druk op Verwijderen om de tag te verwijderen.`
5
+ };
6
+
7
+
8
+ export {$18781839f93b0314$exports as default};
9
+ //# sourceMappingURL=nl-NL.module.js.map
@@ -0,0 +1 @@
1
+ {"mappings":";AAAA,4BAAiB;IAAG,qBAAqB,CAAC,WAAW,CAAC;IACpD,qBAAqB,CAAC,6CAA6C,CAAC;AACtE","sources":["packages/@react-aria/tag/intl/nl-NL.json"],"sourcesContent":["{\n \"removeButtonLabel\": \"Verwijderen\",\n \"removeDescription\": \"Druk op Verwijderen om de tag te verwijderen.\"\n}\n"],"names":[],"version":3,"file":"nl-NL.module.js.map"}
@@ -0,0 +1,7 @@
1
+ module.exports = {
2
+ "removeButtonLabel": `Usu\u{144}`,
3
+ "removeDescription": `Naci\u{15B}nij Usu\u{144}, aby usun\u{105}\u{107} znacznik.`
4
+ };
5
+
6
+
7
+ //# sourceMappingURL=pl-PL.main.js.map
@@ -0,0 +1 @@
1
+ {"mappings":"AAAA,iBAAiB;IAAG,qBAAqB,CAAC,UAAI,CAAC;IAC7C,qBAAqB,CAAC,2DAAmC,CAAC;AAC5D","sources":["packages/@react-aria/tag/intl/pl-PL.json"],"sourcesContent":["{\n \"removeButtonLabel\": \"Usuń\",\n \"removeDescription\": \"Naciśnij Usuń, aby usunąć znacznik.\"\n}\n"],"names":[],"version":3,"file":"pl-PL.main.js.map"}
package/dist/pl-PL.mjs ADDED
@@ -0,0 +1,9 @@
1
+ var $1c40ffbbfe9f3bda$exports = {};
2
+ $1c40ffbbfe9f3bda$exports = {
3
+ "removeButtonLabel": `Usu\u{144}`,
4
+ "removeDescription": `Naci\u{15B}nij Usu\u{144}, aby usun\u{105}\u{107} znacznik.`
5
+ };
6
+
7
+
8
+ export {$1c40ffbbfe9f3bda$exports as default};
9
+ //# sourceMappingURL=pl-PL.module.js.map
@@ -0,0 +1,9 @@
1
+ var $1c40ffbbfe9f3bda$exports = {};
2
+ $1c40ffbbfe9f3bda$exports = {
3
+ "removeButtonLabel": `Usu\u{144}`,
4
+ "removeDescription": `Naci\u{15B}nij Usu\u{144}, aby usun\u{105}\u{107} znacznik.`
5
+ };
6
+
7
+
8
+ export {$1c40ffbbfe9f3bda$exports as default};
9
+ //# sourceMappingURL=pl-PL.module.js.map
@@ -0,0 +1 @@
1
+ {"mappings":";AAAA,4BAAiB;IAAG,qBAAqB,CAAC,UAAI,CAAC;IAC7C,qBAAqB,CAAC,2DAAmC,CAAC;AAC5D","sources":["packages/@react-aria/tag/intl/pl-PL.json"],"sourcesContent":["{\n \"removeButtonLabel\": \"Usuń\",\n \"removeDescription\": \"Naciśnij Usuń, aby usunąć znacznik.\"\n}\n"],"names":[],"version":3,"file":"pl-PL.module.js.map"}
@@ -0,0 +1,7 @@
1
+ module.exports = {
2
+ "removeButtonLabel": `Remover`,
3
+ "removeDescription": `Pressione Delete para remover a tag.`
4
+ };
5
+
6
+
7
+ //# sourceMappingURL=pt-BR.main.js.map
@@ -0,0 +1 @@
1
+ {"mappings":"AAAA,iBAAiB;IAAG,qBAAqB,CAAC,OAAO,CAAC;IAChD,qBAAqB,CAAC,oCAAoC,CAAC;AAC7D","sources":["packages/@react-aria/tag/intl/pt-BR.json"],"sourcesContent":["{\n \"removeButtonLabel\": \"Remover\",\n \"removeDescription\": \"Pressione Delete para remover a tag.\"\n}\n"],"names":[],"version":3,"file":"pt-BR.main.js.map"}
package/dist/pt-BR.mjs ADDED
@@ -0,0 +1,9 @@
1
+ var $156880e329b1c717$exports = {};
2
+ $156880e329b1c717$exports = {
3
+ "removeButtonLabel": `Remover`,
4
+ "removeDescription": `Pressione Delete para remover a tag.`
5
+ };
6
+
7
+
8
+ export {$156880e329b1c717$exports as default};
9
+ //# sourceMappingURL=pt-BR.module.js.map
@@ -0,0 +1,9 @@
1
+ var $156880e329b1c717$exports = {};
2
+ $156880e329b1c717$exports = {
3
+ "removeButtonLabel": `Remover`,
4
+ "removeDescription": `Pressione Delete para remover a tag.`
5
+ };
6
+
7
+
8
+ export {$156880e329b1c717$exports as default};
9
+ //# sourceMappingURL=pt-BR.module.js.map
@@ -0,0 +1 @@
1
+ {"mappings":";AAAA,4BAAiB;IAAG,qBAAqB,CAAC,OAAO,CAAC;IAChD,qBAAqB,CAAC,oCAAoC,CAAC;AAC7D","sources":["packages/@react-aria/tag/intl/pt-BR.json"],"sourcesContent":["{\n \"removeButtonLabel\": \"Remover\",\n \"removeDescription\": \"Pressione Delete para remover a tag.\"\n}\n"],"names":[],"version":3,"file":"pt-BR.module.js.map"}
@@ -0,0 +1,7 @@
1
+ module.exports = {
2
+ "removeButtonLabel": `Eliminar`,
3
+ "removeDescription": `Prima Delete para eliminar a tag.`
4
+ };
5
+
6
+
7
+ //# sourceMappingURL=pt-PT.main.js.map
@@ -0,0 +1 @@
1
+ {"mappings":"AAAA,iBAAiB;IAAG,qBAAqB,CAAC,QAAQ,CAAC;IACjD,qBAAqB,CAAC,iCAAiC,CAAC;AAC1D","sources":["packages/@react-aria/tag/intl/pt-PT.json"],"sourcesContent":["{\n \"removeButtonLabel\": \"Eliminar\",\n \"removeDescription\": \"Prima Delete para eliminar a tag.\"\n}\n"],"names":[],"version":3,"file":"pt-PT.main.js.map"}
package/dist/pt-PT.mjs ADDED
@@ -0,0 +1,9 @@
1
+ var $b6d50b1d20768ce4$exports = {};
2
+ $b6d50b1d20768ce4$exports = {
3
+ "removeButtonLabel": `Eliminar`,
4
+ "removeDescription": `Prima Delete para eliminar a tag.`
5
+ };
6
+
7
+
8
+ export {$b6d50b1d20768ce4$exports as default};
9
+ //# sourceMappingURL=pt-PT.module.js.map
@@ -0,0 +1,9 @@
1
+ var $b6d50b1d20768ce4$exports = {};
2
+ $b6d50b1d20768ce4$exports = {
3
+ "removeButtonLabel": `Eliminar`,
4
+ "removeDescription": `Prima Delete para eliminar a tag.`
5
+ };
6
+
7
+
8
+ export {$b6d50b1d20768ce4$exports as default};
9
+ //# sourceMappingURL=pt-PT.module.js.map
@@ -0,0 +1 @@
1
+ {"mappings":";AAAA,4BAAiB;IAAG,qBAAqB,CAAC,QAAQ,CAAC;IACjD,qBAAqB,CAAC,iCAAiC,CAAC;AAC1D","sources":["packages/@react-aria/tag/intl/pt-PT.json"],"sourcesContent":["{\n \"removeButtonLabel\": \"Eliminar\",\n \"removeDescription\": \"Prima Delete para eliminar a tag.\"\n}\n"],"names":[],"version":3,"file":"pt-PT.module.js.map"}
@@ -0,0 +1,7 @@
1
+ module.exports = {
2
+ "removeButtonLabel": `\xcendep\u{103}rta\u{163}i`,
3
+ "removeDescription": `Ap\u{103}sa\u{21B}i pe Delete (\u{218}tergere) pentru a elimina eticheta.`
4
+ };
5
+
6
+
7
+ //# sourceMappingURL=ro-RO.main.js.map
@@ -0,0 +1 @@
1
+ {"mappings":"AAAA,iBAAiB;IAAG,qBAAqB,CAAC,0BAAW,CAAC;IACpD,qBAAqB,CAAC,yEAAuD,CAAC;AAChF","sources":["packages/@react-aria/tag/intl/ro-RO.json"],"sourcesContent":["{\n \"removeButtonLabel\": \"Îndepărtaţi\",\n \"removeDescription\": \"Apăsați pe Delete (Ștergere) pentru a elimina eticheta.\"\n}\n"],"names":[],"version":3,"file":"ro-RO.main.js.map"}
package/dist/ro-RO.mjs ADDED
@@ -0,0 +1,9 @@
1
+ var $d8c38c691b006187$exports = {};
2
+ $d8c38c691b006187$exports = {
3
+ "removeButtonLabel": `\xcendep\u{103}rta\u{163}i`,
4
+ "removeDescription": `Ap\u{103}sa\u{21B}i pe Delete (\u{218}tergere) pentru a elimina eticheta.`
5
+ };
6
+
7
+
8
+ export {$d8c38c691b006187$exports as default};
9
+ //# sourceMappingURL=ro-RO.module.js.map
@@ -0,0 +1,9 @@
1
+ var $d8c38c691b006187$exports = {};
2
+ $d8c38c691b006187$exports = {
3
+ "removeButtonLabel": `\xcendep\u{103}rta\u{163}i`,
4
+ "removeDescription": `Ap\u{103}sa\u{21B}i pe Delete (\u{218}tergere) pentru a elimina eticheta.`
5
+ };
6
+
7
+
8
+ export {$d8c38c691b006187$exports as default};
9
+ //# sourceMappingURL=ro-RO.module.js.map
@@ -0,0 +1 @@
1
+ {"mappings":";AAAA,4BAAiB;IAAG,qBAAqB,CAAC,0BAAW,CAAC;IACpD,qBAAqB,CAAC,yEAAuD,CAAC;AAChF","sources":["packages/@react-aria/tag/intl/ro-RO.json"],"sourcesContent":["{\n \"removeButtonLabel\": \"Îndepărtaţi\",\n \"removeDescription\": \"Apăsați pe Delete (Ștergere) pentru a elimina eticheta.\"\n}\n"],"names":[],"version":3,"file":"ro-RO.module.js.map"}