@react-spectrum/inlinealert 3.0.0-nightly.3993
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/LICENSE +201 -0
- package/README.md +3 -0
- package/dist/import.mjs +477 -0
- package/dist/main.css +1 -0
- package/dist/main.js +478 -0
- package/dist/main.js.map +1 -0
- package/dist/module.js +477 -0
- package/dist/module.js.map +1 -0
- package/dist/types.d.ts +9 -0
- package/dist/types.d.ts.map +1 -0
- package/package.json +59 -0
- package/src/InlineAlert.tsx +86 -0
- package/src/index.ts +15 -0
package/dist/module.js
ADDED
|
@@ -0,0 +1,477 @@
|
|
|
1
|
+
import "./main.css";
|
|
2
|
+
import $d32NX$spectrumiconsuiAlertMedium from "@spectrum-icons/ui/AlertMedium";
|
|
3
|
+
import {useStyleProps as $d32NX$useStyleProps, useDOMRef as $d32NX$useDOMRef, classNames as $d32NX$classNames, SlotProvider as $d32NX$SlotProvider} from "@react-spectrum/utils";
|
|
4
|
+
import {filterDOMProps as $d32NX$filterDOMProps} from "@react-aria/utils";
|
|
5
|
+
import {Grid as $d32NX$Grid} from "@react-spectrum/layout";
|
|
6
|
+
import $d32NX$spectrumiconsuiInfoMedium from "@spectrum-icons/ui/InfoMedium";
|
|
7
|
+
import $d32NX$react from "react";
|
|
8
|
+
import $d32NX$spectrumiconsuiSuccessMedium from "@spectrum-icons/ui/SuccessMedium";
|
|
9
|
+
import {useLocalizedStringFormatter as $d32NX$useLocalizedStringFormatter} from "@react-aria/i18n";
|
|
10
|
+
import {useProviderProps as $d32NX$useProviderProps} from "@react-spectrum/provider";
|
|
11
|
+
|
|
12
|
+
function $parcel$interopDefault(a) {
|
|
13
|
+
return a && a.__esModule ? a.default : a;
|
|
14
|
+
}
|
|
15
|
+
function $parcel$export(e, n, v, s) {
|
|
16
|
+
Object.defineProperty(e, n, {get: v, set: s, enumerable: true, configurable: true});
|
|
17
|
+
}
|
|
18
|
+
/*
|
|
19
|
+
* Copyright 2023 Adobe. All rights reserved.
|
|
20
|
+
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
|
21
|
+
* you may not use this file except in compliance with the License. You may obtain a copy
|
|
22
|
+
* of the License at http://www.apache.org/licenses/LICENSE-2.0
|
|
23
|
+
*
|
|
24
|
+
* Unless required by applicable law or agreed to in writing, software distributed under
|
|
25
|
+
* the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
|
|
26
|
+
* OF ANY KIND, either express or implied. See the License for the specific language
|
|
27
|
+
* governing permissions and limitations under the License.
|
|
28
|
+
*/ /// <reference types="css-module-types" />
|
|
29
|
+
/*
|
|
30
|
+
* Copyright 2023 Adobe. All rights reserved.
|
|
31
|
+
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
|
32
|
+
* you may not use this file except in compliance with the License. You may obtain a copy
|
|
33
|
+
* of the License at http://www.apache.org/licenses/LICENSE-2.0
|
|
34
|
+
*
|
|
35
|
+
* Unless required by applicable law or agreed to in writing, software distributed under
|
|
36
|
+
* the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
|
|
37
|
+
* OF ANY KIND, either express or implied. See the License for the specific language
|
|
38
|
+
* governing permissions and limitations under the License.
|
|
39
|
+
*/
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
var $a0360622247416a9$exports = {};
|
|
45
|
+
var $7c06d136a7db332f$exports = {};
|
|
46
|
+
$7c06d136a7db332f$exports = {
|
|
47
|
+
"negative": `خطأ`,
|
|
48
|
+
"info": `معلومات`,
|
|
49
|
+
"positive": `تم بنجاح`,
|
|
50
|
+
"notice": `تحذير`
|
|
51
|
+
};
|
|
52
|
+
|
|
53
|
+
|
|
54
|
+
var $7572fcde1b201200$exports = {};
|
|
55
|
+
$7572fcde1b201200$exports = {
|
|
56
|
+
"negative": `Грешка`,
|
|
57
|
+
"info": `Информация`,
|
|
58
|
+
"positive": `Успех`,
|
|
59
|
+
"notice": `Предупреждение`
|
|
60
|
+
};
|
|
61
|
+
|
|
62
|
+
|
|
63
|
+
var $4baaa05e7e36c8d5$exports = {};
|
|
64
|
+
$4baaa05e7e36c8d5$exports = {
|
|
65
|
+
"negative": `Chyba`,
|
|
66
|
+
"info": `Informace`,
|
|
67
|
+
"positive": `Úspěch`,
|
|
68
|
+
"notice": `Upozornění`
|
|
69
|
+
};
|
|
70
|
+
|
|
71
|
+
|
|
72
|
+
var $67391f9ec3919bbd$exports = {};
|
|
73
|
+
$67391f9ec3919bbd$exports = {
|
|
74
|
+
"negative": `Fejl`,
|
|
75
|
+
"info": `Oplysninger`,
|
|
76
|
+
"positive": `Fuldført`,
|
|
77
|
+
"notice": `Advarsel`
|
|
78
|
+
};
|
|
79
|
+
|
|
80
|
+
|
|
81
|
+
var $ba4d55b7a25dbd70$exports = {};
|
|
82
|
+
$ba4d55b7a25dbd70$exports = {
|
|
83
|
+
"negative": `Fehler`,
|
|
84
|
+
"info": `Informationen`,
|
|
85
|
+
"positive": `Erfolg`,
|
|
86
|
+
"notice": `Warnung`
|
|
87
|
+
};
|
|
88
|
+
|
|
89
|
+
|
|
90
|
+
var $8f11cbfb87576513$exports = {};
|
|
91
|
+
$8f11cbfb87576513$exports = {
|
|
92
|
+
"negative": `Σφάλμα`,
|
|
93
|
+
"info": `Πληροφορίες`,
|
|
94
|
+
"positive": `Επιτυχία`,
|
|
95
|
+
"notice": `Προειδοποίηση`
|
|
96
|
+
};
|
|
97
|
+
|
|
98
|
+
|
|
99
|
+
var $a5983f3344cffe9c$exports = {};
|
|
100
|
+
$a5983f3344cffe9c$exports = {
|
|
101
|
+
"negative": `Error`,
|
|
102
|
+
"notice": `Warning`,
|
|
103
|
+
"info": `Information`,
|
|
104
|
+
"positive": `Success`
|
|
105
|
+
};
|
|
106
|
+
|
|
107
|
+
|
|
108
|
+
var $5b00f4541c9c46ff$exports = {};
|
|
109
|
+
$5b00f4541c9c46ff$exports = {
|
|
110
|
+
"negative": `Error`,
|
|
111
|
+
"info": `Información`,
|
|
112
|
+
"positive": `Éxito`,
|
|
113
|
+
"notice": `Advertencia`
|
|
114
|
+
};
|
|
115
|
+
|
|
116
|
+
|
|
117
|
+
var $aa360d77330765aa$exports = {};
|
|
118
|
+
$aa360d77330765aa$exports = {
|
|
119
|
+
"negative": `Viga`,
|
|
120
|
+
"info": `Teave`,
|
|
121
|
+
"positive": `Valmis`,
|
|
122
|
+
"notice": `Hoiatus`
|
|
123
|
+
};
|
|
124
|
+
|
|
125
|
+
|
|
126
|
+
var $03e931e04f228c9f$exports = {};
|
|
127
|
+
$03e931e04f228c9f$exports = {
|
|
128
|
+
"negative": `Virhe`,
|
|
129
|
+
"info": `Tiedot`,
|
|
130
|
+
"positive": `Onnistui`,
|
|
131
|
+
"notice": `Varoitus`
|
|
132
|
+
};
|
|
133
|
+
|
|
134
|
+
|
|
135
|
+
var $9d5074a25853ca6e$exports = {};
|
|
136
|
+
$9d5074a25853ca6e$exports = {
|
|
137
|
+
"negative": `Erreur`,
|
|
138
|
+
"info": `Informations`,
|
|
139
|
+
"positive": `Succès`,
|
|
140
|
+
"notice": `Avertissement`
|
|
141
|
+
};
|
|
142
|
+
|
|
143
|
+
|
|
144
|
+
var $2c2676389f361ece$exports = {};
|
|
145
|
+
$2c2676389f361ece$exports = {
|
|
146
|
+
"negative": `שגיאה`,
|
|
147
|
+
"info": `מידע`,
|
|
148
|
+
"positive": `הצלחה`,
|
|
149
|
+
"notice": `אזהרה`
|
|
150
|
+
};
|
|
151
|
+
|
|
152
|
+
|
|
153
|
+
var $5fdda27174ef2fc7$exports = {};
|
|
154
|
+
$5fdda27174ef2fc7$exports = {
|
|
155
|
+
"negative": `Pogreška`,
|
|
156
|
+
"info": `Informacije`,
|
|
157
|
+
"positive": `Uspješno`,
|
|
158
|
+
"notice": `Upozorenje`
|
|
159
|
+
};
|
|
160
|
+
|
|
161
|
+
|
|
162
|
+
var $dc458e3abea04ded$exports = {};
|
|
163
|
+
$dc458e3abea04ded$exports = {
|
|
164
|
+
"negative": `Hiba`,
|
|
165
|
+
"info": `Információ`,
|
|
166
|
+
"positive": `Siker`,
|
|
167
|
+
"notice": `Figyelmeztetés`
|
|
168
|
+
};
|
|
169
|
+
|
|
170
|
+
|
|
171
|
+
var $2ebc0e35fdc040b7$exports = {};
|
|
172
|
+
$2ebc0e35fdc040b7$exports = {
|
|
173
|
+
"negative": `Errore`,
|
|
174
|
+
"info": `Informazioni`,
|
|
175
|
+
"positive": `Operazione riuscita`,
|
|
176
|
+
"notice": `Avvertenza`
|
|
177
|
+
};
|
|
178
|
+
|
|
179
|
+
|
|
180
|
+
var $44f02920600efced$exports = {};
|
|
181
|
+
$44f02920600efced$exports = {
|
|
182
|
+
"negative": `エラー`,
|
|
183
|
+
"info": `情報`,
|
|
184
|
+
"positive": `成功`,
|
|
185
|
+
"notice": `警告`
|
|
186
|
+
};
|
|
187
|
+
|
|
188
|
+
|
|
189
|
+
var $eeee9839fa747b1b$exports = {};
|
|
190
|
+
$eeee9839fa747b1b$exports = {
|
|
191
|
+
"negative": `오류`,
|
|
192
|
+
"info": `정보`,
|
|
193
|
+
"positive": `성공`,
|
|
194
|
+
"notice": `경고`
|
|
195
|
+
};
|
|
196
|
+
|
|
197
|
+
|
|
198
|
+
var $7889661aab511c26$exports = {};
|
|
199
|
+
$7889661aab511c26$exports = {
|
|
200
|
+
"negative": `Klaida`,
|
|
201
|
+
"info": `Informacija`,
|
|
202
|
+
"positive": `Sėkmingai`,
|
|
203
|
+
"notice": `Įspėjimas`
|
|
204
|
+
};
|
|
205
|
+
|
|
206
|
+
|
|
207
|
+
var $f73d040d5b290afc$exports = {};
|
|
208
|
+
$f73d040d5b290afc$exports = {
|
|
209
|
+
"negative": `Kļūda`,
|
|
210
|
+
"info": `Informācija`,
|
|
211
|
+
"positive": `Izdevās`,
|
|
212
|
+
"notice": `Brīdinājums`
|
|
213
|
+
};
|
|
214
|
+
|
|
215
|
+
|
|
216
|
+
var $eae0cb6abb6f7592$exports = {};
|
|
217
|
+
$eae0cb6abb6f7592$exports = {
|
|
218
|
+
"negative": `Feil`,
|
|
219
|
+
"info": `Informasjon`,
|
|
220
|
+
"positive": `Vellykket`,
|
|
221
|
+
"notice": `Advarsel`
|
|
222
|
+
};
|
|
223
|
+
|
|
224
|
+
|
|
225
|
+
var $1e0495a2c0782298$exports = {};
|
|
226
|
+
$1e0495a2c0782298$exports = {
|
|
227
|
+
"negative": `Fout`,
|
|
228
|
+
"info": `Informatie`,
|
|
229
|
+
"positive": `Geslaagd`,
|
|
230
|
+
"notice": `Waarschuwing`
|
|
231
|
+
};
|
|
232
|
+
|
|
233
|
+
|
|
234
|
+
var $06b952e4a8b5ac61$exports = {};
|
|
235
|
+
$06b952e4a8b5ac61$exports = {
|
|
236
|
+
"negative": `Błąd`,
|
|
237
|
+
"info": `Informacja`,
|
|
238
|
+
"positive": `Powodzenie`,
|
|
239
|
+
"notice": `Ostrzeżenie`
|
|
240
|
+
};
|
|
241
|
+
|
|
242
|
+
|
|
243
|
+
var $d6a05b7bb1801915$exports = {};
|
|
244
|
+
$d6a05b7bb1801915$exports = {
|
|
245
|
+
"negative": `Erro`,
|
|
246
|
+
"info": `Informações`,
|
|
247
|
+
"positive": `Sucesso`,
|
|
248
|
+
"notice": `Aviso`
|
|
249
|
+
};
|
|
250
|
+
|
|
251
|
+
|
|
252
|
+
var $83d519ea719f843b$exports = {};
|
|
253
|
+
$83d519ea719f843b$exports = {
|
|
254
|
+
"negative": `Erro`,
|
|
255
|
+
"info": `Informação`,
|
|
256
|
+
"positive": `Sucesso`,
|
|
257
|
+
"notice": `Aviso`
|
|
258
|
+
};
|
|
259
|
+
|
|
260
|
+
|
|
261
|
+
var $3fde5b55008eef3f$exports = {};
|
|
262
|
+
$3fde5b55008eef3f$exports = {
|
|
263
|
+
"negative": `Eroare`,
|
|
264
|
+
"info": `Informaţii`,
|
|
265
|
+
"positive": `Succes`,
|
|
266
|
+
"notice": `Avertisment`
|
|
267
|
+
};
|
|
268
|
+
|
|
269
|
+
|
|
270
|
+
var $96d433eefb3f8906$exports = {};
|
|
271
|
+
$96d433eefb3f8906$exports = {
|
|
272
|
+
"negative": `Ошибка`,
|
|
273
|
+
"info": `Информация`,
|
|
274
|
+
"positive": `Успешно`,
|
|
275
|
+
"notice": `Предупреждение`
|
|
276
|
+
};
|
|
277
|
+
|
|
278
|
+
|
|
279
|
+
var $0893538688618f33$exports = {};
|
|
280
|
+
$0893538688618f33$exports = {
|
|
281
|
+
"negative": `Chyba`,
|
|
282
|
+
"info": `Informácie`,
|
|
283
|
+
"positive": `Úspech`,
|
|
284
|
+
"notice": `Upozornenie`
|
|
285
|
+
};
|
|
286
|
+
|
|
287
|
+
|
|
288
|
+
var $254b6c961e4f0e80$exports = {};
|
|
289
|
+
$254b6c961e4f0e80$exports = {
|
|
290
|
+
"negative": `Napaka`,
|
|
291
|
+
"info": `Informacije`,
|
|
292
|
+
"positive": `Uspešno`,
|
|
293
|
+
"notice": `Opozorilo`
|
|
294
|
+
};
|
|
295
|
+
|
|
296
|
+
|
|
297
|
+
var $680d309814a11fc5$exports = {};
|
|
298
|
+
$680d309814a11fc5$exports = {
|
|
299
|
+
"negative": `Greška`,
|
|
300
|
+
"info": `Informacije`,
|
|
301
|
+
"positive": `Uspešno`,
|
|
302
|
+
"notice": `Upozorenje`
|
|
303
|
+
};
|
|
304
|
+
|
|
305
|
+
|
|
306
|
+
var $f9418595c1e772cf$exports = {};
|
|
307
|
+
$f9418595c1e772cf$exports = {
|
|
308
|
+
"negative": `Fel`,
|
|
309
|
+
"info": `Information`,
|
|
310
|
+
"positive": `Lyckades`,
|
|
311
|
+
"notice": `Varning`
|
|
312
|
+
};
|
|
313
|
+
|
|
314
|
+
|
|
315
|
+
var $f7b3644c5b6100d7$exports = {};
|
|
316
|
+
$f7b3644c5b6100d7$exports = {
|
|
317
|
+
"negative": `Hata`,
|
|
318
|
+
"info": `Bilgiler`,
|
|
319
|
+
"positive": `Başarılı`,
|
|
320
|
+
"notice": `Uyarı`
|
|
321
|
+
};
|
|
322
|
+
|
|
323
|
+
|
|
324
|
+
var $74a01294f8d465f8$exports = {};
|
|
325
|
+
$74a01294f8d465f8$exports = {
|
|
326
|
+
"negative": `Помилка`,
|
|
327
|
+
"info": `Інформація`,
|
|
328
|
+
"positive": `Успішно`,
|
|
329
|
+
"notice": `Попередження`
|
|
330
|
+
};
|
|
331
|
+
|
|
332
|
+
|
|
333
|
+
var $a1438ca118687381$exports = {};
|
|
334
|
+
$a1438ca118687381$exports = {
|
|
335
|
+
"negative": `错误`,
|
|
336
|
+
"info": `信息`,
|
|
337
|
+
"positive": `成功`,
|
|
338
|
+
"notice": `警告`
|
|
339
|
+
};
|
|
340
|
+
|
|
341
|
+
|
|
342
|
+
var $948f0650714aa894$exports = {};
|
|
343
|
+
$948f0650714aa894$exports = {
|
|
344
|
+
"negative": `錯誤`,
|
|
345
|
+
"info": `資訊`,
|
|
346
|
+
"positive": `成功`,
|
|
347
|
+
"notice": `警告`
|
|
348
|
+
};
|
|
349
|
+
|
|
350
|
+
|
|
351
|
+
$a0360622247416a9$exports = {
|
|
352
|
+
"ar-AE": $7c06d136a7db332f$exports,
|
|
353
|
+
"bg-BG": $7572fcde1b201200$exports,
|
|
354
|
+
"cs-CZ": $4baaa05e7e36c8d5$exports,
|
|
355
|
+
"da-DK": $67391f9ec3919bbd$exports,
|
|
356
|
+
"de-DE": $ba4d55b7a25dbd70$exports,
|
|
357
|
+
"el-GR": $8f11cbfb87576513$exports,
|
|
358
|
+
"en-US": $a5983f3344cffe9c$exports,
|
|
359
|
+
"es-ES": $5b00f4541c9c46ff$exports,
|
|
360
|
+
"et-EE": $aa360d77330765aa$exports,
|
|
361
|
+
"fi-FI": $03e931e04f228c9f$exports,
|
|
362
|
+
"fr-FR": $9d5074a25853ca6e$exports,
|
|
363
|
+
"he-IL": $2c2676389f361ece$exports,
|
|
364
|
+
"hr-HR": $5fdda27174ef2fc7$exports,
|
|
365
|
+
"hu-HU": $dc458e3abea04ded$exports,
|
|
366
|
+
"it-IT": $2ebc0e35fdc040b7$exports,
|
|
367
|
+
"ja-JP": $44f02920600efced$exports,
|
|
368
|
+
"ko-KR": $eeee9839fa747b1b$exports,
|
|
369
|
+
"lt-LT": $7889661aab511c26$exports,
|
|
370
|
+
"lv-LV": $f73d040d5b290afc$exports,
|
|
371
|
+
"nb-NO": $eae0cb6abb6f7592$exports,
|
|
372
|
+
"nl-NL": $1e0495a2c0782298$exports,
|
|
373
|
+
"pl-PL": $06b952e4a8b5ac61$exports,
|
|
374
|
+
"pt-BR": $d6a05b7bb1801915$exports,
|
|
375
|
+
"pt-PT": $83d519ea719f843b$exports,
|
|
376
|
+
"ro-RO": $3fde5b55008eef3f$exports,
|
|
377
|
+
"ru-RU": $96d433eefb3f8906$exports,
|
|
378
|
+
"sk-SK": $0893538688618f33$exports,
|
|
379
|
+
"sl-SI": $254b6c961e4f0e80$exports,
|
|
380
|
+
"sr-SP": $680d309814a11fc5$exports,
|
|
381
|
+
"sv-SE": $f9418595c1e772cf$exports,
|
|
382
|
+
"tr-TR": $f7b3644c5b6100d7$exports,
|
|
383
|
+
"uk-UA": $74a01294f8d465f8$exports,
|
|
384
|
+
"zh-CN": $a1438ca118687381$exports,
|
|
385
|
+
"zh-TW": $948f0650714aa894$exports
|
|
386
|
+
};
|
|
387
|
+
|
|
388
|
+
|
|
389
|
+
|
|
390
|
+
var $48fe1f4c438508c0$exports = {};
|
|
391
|
+
|
|
392
|
+
$parcel$export($48fe1f4c438508c0$exports, "spectrum-InLineAlert", () => $48fe1f4c438508c0$export$73769bb5d26d9ff7, (v) => $48fe1f4c438508c0$export$73769bb5d26d9ff7 = v);
|
|
393
|
+
$parcel$export($48fe1f4c438508c0$exports, "spectrum-InLineAlert-grid", () => $48fe1f4c438508c0$export$c31ea092819cec48, (v) => $48fe1f4c438508c0$export$c31ea092819cec48 = v);
|
|
394
|
+
$parcel$export($48fe1f4c438508c0$exports, "spectrum-InLineAlert--neutral", () => $48fe1f4c438508c0$export$1d6dd31283ff6c5c, (v) => $48fe1f4c438508c0$export$1d6dd31283ff6c5c = v);
|
|
395
|
+
$parcel$export($48fe1f4c438508c0$exports, "spectrum-InLineAlert-icon", () => $48fe1f4c438508c0$export$3be02ea40f92bdfc, (v) => $48fe1f4c438508c0$export$3be02ea40f92bdfc = v);
|
|
396
|
+
$parcel$export($48fe1f4c438508c0$exports, "spectrum-InLineAlert-header", () => $48fe1f4c438508c0$export$9403ef3645255d4a, (v) => $48fe1f4c438508c0$export$9403ef3645255d4a = v);
|
|
397
|
+
$parcel$export($48fe1f4c438508c0$exports, "spectrum-InLineAlert-content", () => $48fe1f4c438508c0$export$b9bc26a202328584, (v) => $48fe1f4c438508c0$export$b9bc26a202328584 = v);
|
|
398
|
+
$parcel$export($48fe1f4c438508c0$exports, "spectrum-InLineAlert--info", () => $48fe1f4c438508c0$export$71c1df0099076ffd, (v) => $48fe1f4c438508c0$export$71c1df0099076ffd = v);
|
|
399
|
+
$parcel$export($48fe1f4c438508c0$exports, "spectrum-InLineAlert--notice", () => $48fe1f4c438508c0$export$29b25aea79cc7183, (v) => $48fe1f4c438508c0$export$29b25aea79cc7183 = v);
|
|
400
|
+
$parcel$export($48fe1f4c438508c0$exports, "spectrum-InLineAlert--positive", () => $48fe1f4c438508c0$export$fe577b621f09240b, (v) => $48fe1f4c438508c0$export$fe577b621f09240b = v);
|
|
401
|
+
$parcel$export($48fe1f4c438508c0$exports, "spectrum-InLineAlert--negative", () => $48fe1f4c438508c0$export$22162c465dd1f294, (v) => $48fe1f4c438508c0$export$22162c465dd1f294 = v);
|
|
402
|
+
var $48fe1f4c438508c0$export$73769bb5d26d9ff7;
|
|
403
|
+
var $48fe1f4c438508c0$export$c31ea092819cec48;
|
|
404
|
+
var $48fe1f4c438508c0$export$1d6dd31283ff6c5c;
|
|
405
|
+
var $48fe1f4c438508c0$export$3be02ea40f92bdfc;
|
|
406
|
+
var $48fe1f4c438508c0$export$9403ef3645255d4a;
|
|
407
|
+
var $48fe1f4c438508c0$export$b9bc26a202328584;
|
|
408
|
+
var $48fe1f4c438508c0$export$71c1df0099076ffd;
|
|
409
|
+
var $48fe1f4c438508c0$export$29b25aea79cc7183;
|
|
410
|
+
var $48fe1f4c438508c0$export$fe577b621f09240b;
|
|
411
|
+
var $48fe1f4c438508c0$export$22162c465dd1f294;
|
|
412
|
+
$48fe1f4c438508c0$export$73769bb5d26d9ff7 = "spectrum-InLineAlert_479995";
|
|
413
|
+
$48fe1f4c438508c0$export$c31ea092819cec48 = "spectrum-InLineAlert-grid_479995";
|
|
414
|
+
$48fe1f4c438508c0$export$1d6dd31283ff6c5c = "spectrum-InLineAlert--neutral_479995";
|
|
415
|
+
$48fe1f4c438508c0$export$3be02ea40f92bdfc = "spectrum-InLineAlert-icon_479995";
|
|
416
|
+
$48fe1f4c438508c0$export$9403ef3645255d4a = "spectrum-InLineAlert-header_479995";
|
|
417
|
+
$48fe1f4c438508c0$export$b9bc26a202328584 = "spectrum-InLineAlert-content_479995";
|
|
418
|
+
$48fe1f4c438508c0$export$71c1df0099076ffd = "spectrum-InLineAlert--info_479995";
|
|
419
|
+
$48fe1f4c438508c0$export$29b25aea79cc7183 = "spectrum-InLineAlert--notice_479995";
|
|
420
|
+
$48fe1f4c438508c0$export$fe577b621f09240b = "spectrum-InLineAlert--positive_479995";
|
|
421
|
+
$48fe1f4c438508c0$export$22162c465dd1f294 = "spectrum-InLineAlert--negative_479995";
|
|
422
|
+
|
|
423
|
+
|
|
424
|
+
|
|
425
|
+
|
|
426
|
+
|
|
427
|
+
let $abf1e6290496dda5$var$ICONS = {
|
|
428
|
+
info: (0, $d32NX$spectrumiconsuiInfoMedium),
|
|
429
|
+
positive: (0, $d32NX$spectrumiconsuiSuccessMedium),
|
|
430
|
+
notice: (0, $d32NX$spectrumiconsuiAlertMedium),
|
|
431
|
+
negative: (0, $d32NX$spectrumiconsuiAlertMedium)
|
|
432
|
+
};
|
|
433
|
+
function $abf1e6290496dda5$var$InlineAlert(props, ref) {
|
|
434
|
+
props = (0, $d32NX$useProviderProps)(props);
|
|
435
|
+
let { children: children , variant: variant = "neutral" , ...otherProps } = props;
|
|
436
|
+
let { styleProps: styleProps } = (0, $d32NX$useStyleProps)(otherProps);
|
|
437
|
+
let domRef = (0, $d32NX$useDOMRef)(ref);
|
|
438
|
+
let slots = {
|
|
439
|
+
header: {
|
|
440
|
+
UNSAFE_className: (0, (/*@__PURE__*/$parcel$interopDefault($48fe1f4c438508c0$exports)))["spectrum-InLineAlert-header"]
|
|
441
|
+
},
|
|
442
|
+
content: {
|
|
443
|
+
UNSAFE_className: (0, (/*@__PURE__*/$parcel$interopDefault($48fe1f4c438508c0$exports)))["spectrum-InLineAlert-content"]
|
|
444
|
+
}
|
|
445
|
+
};
|
|
446
|
+
let stringFormatter = (0, $d32NX$useLocalizedStringFormatter)((0, (/*@__PURE__*/$parcel$interopDefault($a0360622247416a9$exports))));
|
|
447
|
+
let Icon = null;
|
|
448
|
+
let iconAlt;
|
|
449
|
+
if (variant in $abf1e6290496dda5$var$ICONS) {
|
|
450
|
+
Icon = $abf1e6290496dda5$var$ICONS[variant];
|
|
451
|
+
iconAlt = stringFormatter.format(variant);
|
|
452
|
+
}
|
|
453
|
+
return /*#__PURE__*/ (0, $d32NX$react).createElement("div", {
|
|
454
|
+
...(0, $d32NX$filterDOMProps)(props),
|
|
455
|
+
...styleProps,
|
|
456
|
+
ref: domRef,
|
|
457
|
+
className: (0, $d32NX$classNames)((0, (/*@__PURE__*/$parcel$interopDefault($48fe1f4c438508c0$exports))), "spectrum-InLineAlert", `spectrum-InLineAlert--${variant}`, styleProps.className),
|
|
458
|
+
role: "alert"
|
|
459
|
+
}, /*#__PURE__*/ (0, $d32NX$react).createElement((0, $d32NX$Grid), {
|
|
460
|
+
UNSAFE_className: (0, (/*@__PURE__*/$parcel$interopDefault($48fe1f4c438508c0$exports)))["spectrum-InLineAlert-grid"]
|
|
461
|
+
}, /*#__PURE__*/ (0, $d32NX$react).createElement((0, $d32NX$SlotProvider), {
|
|
462
|
+
slots: slots
|
|
463
|
+
}, Icon && /*#__PURE__*/ (0, $d32NX$react).createElement(Icon, {
|
|
464
|
+
UNSAFE_className: (0, (/*@__PURE__*/$parcel$interopDefault($48fe1f4c438508c0$exports)))["spectrum-InLineAlert-icon"],
|
|
465
|
+
"aria-label": iconAlt
|
|
466
|
+
}), children)));
|
|
467
|
+
}
|
|
468
|
+
/**
|
|
469
|
+
* Inline alerts display a non-modal message associated with objects in a view.
|
|
470
|
+
* These are often used in form validation, providing a place to aggregate feedback related to multiple fields.
|
|
471
|
+
*/ const $abf1e6290496dda5$export$a3b2c96db9b0eb71 = /*#__PURE__*/ (0, $d32NX$react).forwardRef($abf1e6290496dda5$var$InlineAlert);
|
|
472
|
+
|
|
473
|
+
|
|
474
|
+
|
|
475
|
+
|
|
476
|
+
export {$abf1e6290496dda5$export$a3b2c96db9b0eb71 as InlineAlert};
|
|
477
|
+
//# sourceMappingURL=module.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"mappings":";;;;;;;;;;;;;;;;;AAAA;;;;;;;;;;CAUC,GAED,0CAA0C;ACZ1C;;;;;;;;;;CAUC;;;;;;;AEVD,4BAAiB;IAAG,YAAY,CAAC,GAAG,CAAC;IACnC,QAAQ,CAAC,OAAO,CAAC;IACjB,YAAY,CAAC,QAAQ,CAAC;IACtB,UAAU,CAAC,KAAK,CAAC;AACnB;;;;ACJA,4BAAiB;IAAG,YAAY,CAAC,MAAM,CAAC;IACtC,QAAQ,CAAC,UAAU,CAAC;IACpB,YAAY,CAAC,KAAK,CAAC;IACnB,UAAU,CAAC,cAAc,CAAC;AAC5B;;;;ACJA,4BAAiB;IAAG,YAAY,CAAC,KAAK,CAAC;IACrC,QAAQ,CAAC,SAAS,CAAC;IACnB,YAAY,CAAC,MAAM,CAAC;IACpB,UAAU,CAAC,UAAU,CAAC;AACxB;;;;ACJA,4BAAiB;IAAG,YAAY,CAAC,IAAI,CAAC;IACpC,QAAQ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AAkB,CAAA,GAAA,gEAAK,CAAC,CAAC,4BAA4B;qBACzD,gCAAC,CAAA,GAAA,mBAAW;QAAE,OAAO;OAClB,sBAAQ,gCAAC;QAAK,kBAAkB,CAAA,GAAA,gEAAK,CAAC,CAAC,4BAA4B;QAAE,cAAY;QACjF;AAKX;AAEA;;;CAGC,GACD,MAAM,0DAAe,CAAA,GAAA,YAAI,EAAE,WAAW;","sources":["packages/@react-spectrum/inlinealert/src/index.ts","packages/@react-spectrum/inlinealert/src/InlineAlert.tsx","packages/@react-spectrum/inlinealert/src/*.js","packages/@react-spectrum/inlinealert/intl/ar-AE.json","packages/@react-spectrum/inlinealert/intl/bg-BG.json","packages/@react-spectrum/inlinealert/intl/cs-CZ.json","packages/@react-spectrum/inlinealert/intl/da-DK.json","packages/@react-spectrum/inlinealert/intl/de-DE.json","packages/@react-spectrum/inlinealert/intl/el-GR.json","packages/@react-spectrum/inlinealert/intl/en-US.json","packages/@react-spectrum/inlinealert/intl/es-ES.json","packages/@react-spectrum/inlinealert/intl/et-EE.json","packages/@react-spectrum/inlinealert/intl/fi-FI.json","packages/@react-spectrum/inlinealert/intl/fr-FR.json","packages/@react-spectrum/inlinealert/intl/he-IL.json","packages/@react-spectrum/inlinealert/intl/hr-HR.json","packages/@react-spectrum/inlinealert/intl/hu-HU.json","packages/@react-spectrum/inlinealert/intl/it-IT.json","packages/@react-spectrum/inlinealert/intl/ja-JP.json","packages/@react-spectrum/inlinealert/intl/ko-KR.json","packages/@react-spectrum/inlinealert/intl/lt-LT.json","packages/@react-spectrum/inlinealert/intl/lv-LV.json","packages/@react-spectrum/inlinealert/intl/nb-NO.json","packages/@react-spectrum/inlinealert/intl/nl-NL.json","packages/@react-spectrum/inlinealert/intl/pl-PL.json","packages/@react-spectrum/inlinealert/intl/pt-BR.json","packages/@react-spectrum/inlinealert/intl/pt-PT.json","packages/@react-spectrum/inlinealert/intl/ro-RO.json","packages/@react-spectrum/inlinealert/intl/ru-RU.json","packages/@react-spectrum/inlinealert/intl/sk-SK.json","packages/@react-spectrum/inlinealert/intl/sl-SI.json","packages/@react-spectrum/inlinealert/intl/sr-SP.json","packages/@react-spectrum/inlinealert/intl/sv-SE.json","packages/@react-spectrum/inlinealert/intl/tr-TR.json","packages/@react-spectrum/inlinealert/intl/uk-UA.json","packages/@react-spectrum/inlinealert/intl/zh-CN.json","packages/@react-spectrum/inlinealert/intl/zh-TW.json","packages/@adobe/spectrum-css-temp/components/inlinealert/vars.css"],"sourcesContent":["/*\n * Copyright 2023 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\n/// <reference types=\"css-module-types\" />\n\nexport {InlineAlert} from './InlineAlert';\n","/*\n * Copyright 2023 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 AlertMedium from '@spectrum-icons/ui/AlertMedium';\nimport {classNames, SlotProvider, useDOMRef, useStyleProps} from '@react-spectrum/utils';\nimport {DOMRef} from '@react-types/shared';\nimport {filterDOMProps} from '@react-aria/utils';\nimport {Grid} from '@react-spectrum/layout';\nimport InfoMedium from '@spectrum-icons/ui/InfoMedium';\n// @ts-ignore\nimport intlMessages from '../intl/*.json';\nimport React from 'react';\nimport {SpectrumInlineAlertProps} from '@react-types/inlinealert';\nimport styles from '@adobe/spectrum-css-temp/components/inlinealert/vars.css';\nimport SuccessMedium from '@spectrum-icons/ui/SuccessMedium';\nimport {useLocalizedStringFormatter} from '@react-aria/i18n';\nimport {useProviderProps} from '@react-spectrum/provider';\n\nlet ICONS = {\n info: InfoMedium,\n positive: SuccessMedium,\n notice: AlertMedium,\n negative: AlertMedium\n};\n\nfunction InlineAlert(props: SpectrumInlineAlertProps, ref: DOMRef<HTMLDivElement>) {\n props = useProviderProps(props);\n let {\n children,\n variant = 'neutral',\n ...otherProps\n } = props;\n\n let {styleProps} = useStyleProps(otherProps);\n let domRef = useDOMRef(ref);\n\n let slots = {\n header: {UNSAFE_className: styles['spectrum-InLineAlert-header']},\n content: {UNSAFE_className: styles['spectrum-InLineAlert-content']}\n };\n\n let stringFormatter = useLocalizedStringFormatter(intlMessages);\n let Icon = null;\n let iconAlt: string;\n if (variant in ICONS) {\n Icon = ICONS[variant];\n iconAlt = stringFormatter.format(variant);\n }\n\n return (\n <div\n {...filterDOMProps(props)}\n {...styleProps}\n ref={domRef}\n className={classNames(\n styles,\n 'spectrum-InLineAlert',\n `spectrum-InLineAlert--${variant}`,\n styleProps.className\n )}\n role=\"alert\">\n <Grid UNSAFE_className={styles['spectrum-InLineAlert-grid']}>\n <SlotProvider slots={slots}>\n {Icon && <Icon UNSAFE_className={styles['spectrum-InLineAlert-icon']} aria-label={iconAlt} />}\n {children}\n </SlotProvider>\n </Grid>\n </div>\n );\n}\n\n/**\n * Inline alerts display a non-modal message associated with objects in a view.\n * These are often used in form validation, providing a place to aggregate feedback related to multiple fields.\n */\nconst _InlineAlert = React.forwardRef(InlineAlert);\nexport {_InlineAlert as InlineAlert};\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 \"negative\": \"خطأ\",\n \"info\": \"معلومات\",\n \"positive\": \"تم بنجاح\",\n \"notice\": \"تحذير\"\n}\n","{\n \"negative\": \"Грешка\",\n \"info\": \"Информация\",\n \"positive\": \"Успех\",\n \"notice\": \"Предупреждение\"\n}\n","{\n \"negative\": \"Chyba\",\n \"info\": \"Informace\",\n \"positive\": \"Úspěch\",\n \"notice\": \"Upozornění\"\n}\n","{\n \"negative\": \"Fejl\",\n \"info\": \"Oplysninger\",\n \"positive\": \"Fuldført\",\n \"notice\": \"Advarsel\"\n}\n","{\n \"negative\": \"Fehler\",\n \"info\": \"Informationen\",\n \"positive\": \"Erfolg\",\n \"notice\": \"Warnung\"\n}\n","{\n \"negative\": \"Σφάλμα\",\n \"info\": \"Πληροφορίες\",\n \"positive\": \"Επιτυχία\",\n \"notice\": \"Προειδοποίηση\"\n}\n","{\n \"negative\": \"Error\",\n \"notice\": \"Warning\",\n \"info\": \"Information\",\n \"positive\": \"Success\"\n}\n","{\n \"negative\": \"Error\",\n \"info\": \"Información\",\n \"positive\": \"Éxito\",\n \"notice\": \"Advertencia\"\n}\n","{\n \"negative\": \"Viga\",\n \"info\": \"Teave\",\n \"positive\": \"Valmis\",\n \"notice\": \"Hoiatus\"\n}\n","{\n \"negative\": \"Virhe\",\n \"info\": \"Tiedot\",\n \"positive\": \"Onnistui\",\n \"notice\": \"Varoitus\"\n}\n","{\n \"negative\": \"Erreur\",\n \"info\": \"Informations\",\n \"positive\": \"Succès\",\n \"notice\": \"Avertissement\"\n}\n","{\n \"negative\": \"שגיאה\",\n \"info\": \"מידע\",\n \"positive\": \"הצלחה\",\n \"notice\": \"אזהרה\"\n}\n","{\n \"negative\": \"Pogreška\",\n \"info\": \"Informacije\",\n \"positive\": \"Uspješno\",\n \"notice\": \"Upozorenje\"\n}\n","{\n \"negative\": \"Hiba\",\n \"info\": \"Információ\",\n \"positive\": \"Siker\",\n \"notice\": \"Figyelmeztetés\"\n}\n","{\n \"negative\": \"Errore\",\n \"info\": \"Informazioni\",\n \"positive\": \"Operazione riuscita\",\n \"notice\": \"Avvertenza\"\n}\n","{\n \"negative\": \"エラー\",\n \"info\": \"情報\",\n \"positive\": \"成功\",\n \"notice\": \"警告\"\n}\n","{\n \"negative\": \"오류\",\n \"info\": \"정보\",\n \"positive\": \"성공\",\n \"notice\": \"경고\"\n}\n","{\n \"negative\": \"Klaida\",\n \"info\": \"Informacija\",\n \"positive\": \"Sėkmingai\",\n \"notice\": \"Įspėjimas\"\n}\n","{\n \"negative\": \"Kļūda\",\n \"info\": \"Informācija\",\n \"positive\": \"Izdevās\",\n \"notice\": \"Brīdinājums\"\n}\n","{\n \"negative\": \"Feil\",\n \"info\": \"Informasjon\",\n \"positive\": \"Vellykket\",\n \"notice\": \"Advarsel\"\n}\n","{\n \"negative\": \"Fout\",\n \"info\": \"Informatie\",\n \"positive\": \"Geslaagd\",\n \"notice\": \"Waarschuwing\"\n}\n","{\n \"negative\": \"Błąd\",\n \"info\": \"Informacja\",\n \"positive\": \"Powodzenie\",\n \"notice\": \"Ostrzeżenie\"\n}\n","{\n \"negative\": \"Erro\",\n \"info\": \"Informações\",\n \"positive\": \"Sucesso\",\n \"notice\": \"Aviso\"\n}\n","{\n \"negative\": \"Erro\",\n \"info\": \"Informação\",\n \"positive\": \"Sucesso\",\n \"notice\": \"Aviso\"\n}\n","{\n \"negative\": \"Eroare\",\n \"info\": \"Informaţii\",\n \"positive\": \"Succes\",\n \"notice\": \"Avertisment\"\n}\n","{\n \"negative\": \"Ошибка\",\n \"info\": \"Информация\",\n \"positive\": \"Успешно\",\n \"notice\": \"Предупреждение\"\n}\n","{\n \"negative\": \"Chyba\",\n \"info\": \"Informácie\",\n \"positive\": \"Úspech\",\n \"notice\": \"Upozornenie\"\n}\n","{\n \"negative\": \"Napaka\",\n \"info\": \"Informacije\",\n \"positive\": \"Uspešno\",\n \"notice\": \"Opozorilo\"\n}\n","{\n \"negative\": \"Greška\",\n \"info\": \"Informacije\",\n \"positive\": \"Uspešno\",\n \"notice\": \"Upozorenje\"\n}\n","{\n \"negative\": \"Fel\",\n \"info\": \"Information\",\n \"positive\": \"Lyckades\",\n \"notice\": \"Varning\"\n}\n","{\n \"negative\": \"Hata\",\n \"info\": \"Bilgiler\",\n \"positive\": \"Başarılı\",\n \"notice\": \"Uyarı\"\n}\n","{\n \"negative\": \"Помилка\",\n \"info\": \"Інформація\",\n \"positive\": \"Успішно\",\n \"notice\": \"Попередження\"\n}\n","{\n \"negative\": \"错误\",\n \"info\": \"信息\",\n \"positive\": \"成功\",\n \"notice\": \"警告\"\n}\n","{\n \"negative\": \"錯誤\",\n \"info\": \"資訊\",\n \"positive\": \"成功\",\n \"notice\": \"警告\"\n}\n","/*\nCopyright 2023 Adobe. All rights reserved.\nThis file is licensed to you under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License. You may obtain a copy\nof the License at http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software distributed under\nthe License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\nOF ANY KIND, either express or implied. See the License for the specific language\ngoverning permissions and limitations under the License.\n*/\n\n@import './index.css';\n@import './skin.css';\n"],"names":[],"version":3,"file":"module.js.map"}
|
package/dist/types.d.ts
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { SpectrumInlineAlertProps } from "@react-types/inlinealert";
|
|
3
|
+
/**
|
|
4
|
+
* Inline alerts display a non-modal message associated with objects in a view.
|
|
5
|
+
* These are often used in form validation, providing a place to aggregate feedback related to multiple fields.
|
|
6
|
+
*/
|
|
7
|
+
export const InlineAlert: React.ForwardRefExoticComponent<SpectrumInlineAlertProps & React.RefAttributes<import("@react-types/shared").DOMRefValue<HTMLDivElement>>>;
|
|
8
|
+
|
|
9
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"mappings":";;AAgFA;;;GAGG;AACH,OAAA,MAAM,uJAA4C,CAAC","sources":["packages/@react-spectrum/inlinealert/src/packages/@react-spectrum/inlinealert/src/InlineAlert.tsx","packages/@react-spectrum/inlinealert/src/packages/@react-spectrum/inlinealert/src/index.ts","packages/@react-spectrum/inlinealert/src/index.ts"],"sourcesContent":[null,null,"/*\n * Copyright 2023 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\n/// <reference types=\"css-module-types\" />\n\nexport {InlineAlert} from './InlineAlert';\n"],"names":[],"version":3,"file":"types.d.ts.map"}
|
package/package.json
ADDED
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@react-spectrum/inlinealert",
|
|
3
|
+
"version": "3.0.0-nightly.3993+bf8fac4cf",
|
|
4
|
+
"description": "Spectrum UI components in React",
|
|
5
|
+
"license": "Apache-2.0",
|
|
6
|
+
"main": "dist/main.js",
|
|
7
|
+
"module": "dist/module.js",
|
|
8
|
+
"types": "dist/types.d.ts",
|
|
9
|
+
"exports": {
|
|
10
|
+
"types": "./dist/types.d.ts",
|
|
11
|
+
"import": "./dist/import.mjs",
|
|
12
|
+
"require": "./dist/main.js"
|
|
13
|
+
},
|
|
14
|
+
"source": "src/index.ts",
|
|
15
|
+
"files": [
|
|
16
|
+
"dist",
|
|
17
|
+
"src"
|
|
18
|
+
],
|
|
19
|
+
"sideEffects": [
|
|
20
|
+
"*.css"
|
|
21
|
+
],
|
|
22
|
+
"targets": {
|
|
23
|
+
"main": {
|
|
24
|
+
"includeNodeModules": [
|
|
25
|
+
"@adobe/spectrum-css-temp"
|
|
26
|
+
]
|
|
27
|
+
},
|
|
28
|
+
"module": {
|
|
29
|
+
"includeNodeModules": [
|
|
30
|
+
"@adobe/spectrum-css-temp"
|
|
31
|
+
]
|
|
32
|
+
}
|
|
33
|
+
},
|
|
34
|
+
"repository": {
|
|
35
|
+
"type": "git",
|
|
36
|
+
"url": "https://github.com/adobe/react-spectrum"
|
|
37
|
+
},
|
|
38
|
+
"dependencies": {
|
|
39
|
+
"@react-aria/i18n": "3.0.0-nightly.2291+bf8fac4cf",
|
|
40
|
+
"@react-aria/utils": "3.0.0-nightly.2291+bf8fac4cf",
|
|
41
|
+
"@react-spectrum/layout": "3.5.3-nightly.3993+bf8fac4cf",
|
|
42
|
+
"@react-spectrum/utils": "3.0.0-nightly.2291+bf8fac4cf",
|
|
43
|
+
"@react-types/inlinealert": "3.0.0-nightly.3993+bf8fac4cf",
|
|
44
|
+
"@react-types/shared": "3.0.0-nightly.2291+bf8fac4cf",
|
|
45
|
+
"@spectrum-icons/ui": "3.0.0-nightly.2291+bf8fac4cf",
|
|
46
|
+
"@swc/helpers": "^0.5.0"
|
|
47
|
+
},
|
|
48
|
+
"devDependencies": {
|
|
49
|
+
"@adobe/spectrum-css-temp": "3.0.0-nightly.2291+bf8fac4cf"
|
|
50
|
+
},
|
|
51
|
+
"peerDependencies": {
|
|
52
|
+
"@react-spectrum/provider": "^3.0.0",
|
|
53
|
+
"react": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0"
|
|
54
|
+
},
|
|
55
|
+
"publishConfig": {
|
|
56
|
+
"access": "public"
|
|
57
|
+
},
|
|
58
|
+
"gitHead": "bf8fac4cf85da695bf3bcaa4fed721f398aa19ba"
|
|
59
|
+
}
|