UNPKG

29.5 kBJavaScriptView Raw
1export const manifest = {
2 name: 'alert',
3 events: [
4 {
5 description: 'Event emitted for setting the modelValue',
6 name: 'update:modelValue'
7 }
8 ],
9 slots: [
10 {
11 description: 'Slot for default alert content',
12 name: 'default'
13 },
14 {
15 description: 'Slot for alert icon',
16 name: 'icon'
17 },
18 {
19 description: 'Slot for alert dismiss button',
20 name: 'dismiss'
21 }
22 ],
23 props: [
24 {
25 name: 'size',
26 type: [
27 'sm',
28 'md',
29 'lg'
30 ],
31 default: 'md',
32 description: 'The size variant of the alert'
33 },
34 {
35 name: 'color',
36 type: [
37 'info',
38 'success',
39 'warning',
40 'danger'
41 ],
42 default: 'info',
43 description: 'The color variant of the alert'
44 },
45 {
46 name: 'modelValue',
47 type: [
48 'Boolean'
49 ],
50 default: 'true',
51 description: 'Used to show or hide a dismissible alert'
52 },
53 {
54 name: 'dismissible',
55 type: [
56 'Boolean'
57 ],
58 default: 'false',
59 description: 'Shows a dismiss icon on the alert'
60 },
61 {
62 name: 'dismissAriaLabel',
63 type: [
64 'String'
65 ],
66 default: 'Dismiss',
67 description: 'The aria-label to use for the dismiss button'
68 }
69 ],
70 css: {
71 selector: '.alert',
72 defaults: {
73 size: 'md',
74 color: 'info'
75 },
76 variables: [
77 {
78 name: 'background',
79 type: 'color',
80 value: 'color(\'info\')',
81 description: 'The background of the alert component'
82 },
83 {
84 name: 'border-top-color',
85 type: 'color',
86 value: 'color(\'info-60\')',
87 description: 'The border top color of the alert component'
88 },
89 {
90 name: 'border-right-color',
91 type: 'color',
92 value: 'color(\'info-60\')',
93 description: 'The border right color of the alert component'
94 },
95 {
96 name: 'border-bottom-color',
97 type: 'color',
98 value: 'color(\'info-60\')',
99 description: 'The border bottom color of the alert component'
100 },
101 {
102 name: 'border-left-color',
103 type: 'color',
104 value: 'color(\'info-60\')',
105 description: 'The border left color of the alert component'
106 },
107 {
108 name: 'border-color',
109 type: '',
110 value: 'var(----border-top-color) var(----border-right-color) var(----border-bottom-color) var(----border-left-color)',
111 description: 'The border color of the alert component'
112 },
113 {
114 name: 'border-style',
115 type: '',
116 value: 'var(--border-style)',
117 description: 'The border style of the alert component'
118 },
119 {
120 name: 'border-top-width',
121 type: '',
122 value: 'var(--border-top-width)',
123 description: 'The border top width of the alert component'
124 },
125 {
126 name: 'border-right-width',
127 type: '',
128 value: 'var(--border-right-width)',
129 description: 'The border right width of the alert component'
130 },
131 {
132 name: 'border-bottom-width',
133 type: '',
134 value: 'var(--border-bottom-width)',
135 description: 'The border bottom width of the alert component'
136 },
137 {
138 name: 'border-left-width',
139 type: '',
140 value: 'var(--border-left-width)',
141 description: 'The border left width of the alert component'
142 },
143 {
144 name: 'border-width',
145 type: '',
146 value: 'var(----border-top-width) var(----border-right-width) var(----border-bottom-width) var(----border-left-width)',
147 description: 'The border width of the alert component'
148 },
149 {
150 name: 'border-top-left-radius',
151 type: 'size',
152 value: 'var(--border-top-left-radius)',
153 description: 'The border top left radius of the alert component'
154 },
155 {
156 name: 'border-top-right-radius',
157 type: 'size',
158 value: 'var(--border-top-right-radius)',
159 description: 'The border top right radius of the alert component'
160 },
161 {
162 name: 'border-bottom-right-radius',
163 type: 'size',
164 value: 'var(--border-bottom-right-radius)',
165 description: 'The border bottom right radius of the alert component'
166 },
167 {
168 name: 'border-bottom-left-radius',
169 type: 'size',
170 value: 'var(--border-bottom-left-radius)',
171 description: 'The border bottom left radius of the alert component'
172 },
173 {
174 name: 'border-radius',
175 type: '',
176 value: 'var(----border-top-left-radius) var(----border-top-right-radius) var(----border-bottom-right-radius) var(----border-bottom-left-radius)',
177 description: 'The border radius of the alert component'
178 },
179 {
180 name: 'box-shadow-offset-x',
181 type: '',
182 value: 'var(--box-shadow-offset-x)',
183 description: 'The box shadow horizontal offset of the alert component'
184 },
185 {
186 name: 'box-shadow-offset-y',
187 type: '',
188 value: 'var(--box-shadow-offset-y)',
189 description: 'The box shadow vertical offset of the alert component'
190 },
191 {
192 name: 'box-shadow-blur-radius',
193 type: '',
194 value: 'var(--box-shadow-blur-radius)',
195 description: 'The box shadow blur radius of the alert component'
196 },
197 {
198 name: 'box-shadow-spread-radius',
199 type: '',
200 value: 'var(--box-shadow-spread-radius)',
201 description: 'The box shadow spread radius of the alert component'
202 },
203 {
204 name: 'box-shadow-color',
205 type: '',
206 value: 'var(--box-shadow-color)',
207 description: 'The box shadow spread radius of the alert component'
208 },
209 {
210 name: 'box-shadow',
211 type: '',
212 value: 'var(----box-shadow-offset-x) var(----box-shadow-offset-y) var(----box-shadow-blur-radius) var(----box-shadow-spread-radius) var(----box-shadow-color)',
213 description: 'The box shadow of the alert component'
214 },
215 {
216 name: 'color',
217 type: 'color',
218 value: 'contrast-color($color-info)',
219 description: 'The text color of the alert component'
220 },
221 {
222 name: 'font-size',
223 type: 'size',
224 value: 'font-size()',
225 description: 'The font size of the alert component'
226 },
227 {
228 name: 'font-weight',
229 type: '',
230 value: 'font-weight(\'normal\')',
231 description: 'The font weight of the alert component'
232 },
233 {
234 name: 'line-height',
235 type: '',
236 value: 'var(--line-height)',
237 description: 'The line height of the alert component'
238 },
239 {
240 name: 'padding-top',
241 type: 'size',
242 value: 'var(--padding-top)',
243 description: 'The padding top of the alert component'
244 },
245 {
246 name: 'padding-right',
247 type: 'size',
248 value: 'var(--padding-right)',
249 description: 'The padding right of the alert component'
250 },
251 {
252 name: 'padding-bottom',
253 type: 'size',
254 value: 'var(--padding-bottom)',
255 description: 'The padding bottom of the alert component'
256 },
257 {
258 name: 'padding-left',
259 type: 'size',
260 value: 'var(--padding-left)',
261 description: 'The padding left of the alert component'
262 },
263 {
264 name: 'padding',
265 type: '',
266 value: 'var(----padding-top) var(----padding-right) var(----padding-bottom) var(----padding-left)',
267 description: 'The padding of the alert component'
268 },
269 {
270 name: 'code--color',
271 type: '',
272 value: 'var(----color)',
273 description: 'The code color of the alert component'
274 },
275 {
276 name: 'code--background',
277 type: 'color',
278 value: 'color(\'info-60\')',
279 description: 'The code background of the alert component'
280 },
281 {
282 name: 'dismiss--margin',
283 type: '',
284 value: 'var(----padding-right)',
285 description: 'The margin of the alert component dismiss icon'
286 },
287 {
288 name: 'dismiss--padding',
289 type: '',
290 value: 'calc(var(----padding-top) / 2)',
291 description: 'The padding of the alert component dismiss icon'
292 },
293 {
294 name: 'link--color',
295 type: '',
296 value: 'var(----color)',
297 description: 'The link color of the alert component'
298 }
299 ],
300 variants: [
301 {
302 name: 'info',
303 type: 'variant',
304 description: 'Variables for the info color variant',
305 variables: [
306 {
307 name: 'background',
308 type: '',
309 value: 'color(\'info\')',
310 description: 'The background of the alert component, for the info color variant'
311 },
312 {
313 name: 'border-top-color',
314 type: '',
315 value: 'color(\'info-60\')',
316 description: 'The border top color of the alert component, for the info color variant'
317 },
318 {
319 name: 'border-right-color',
320 type: '',
321 value: 'color(\'info-60\')',
322 description: 'The border right color of the alert component, for the info color variant'
323 },
324 {
325 name: 'border-bottom-color',
326 type: '',
327 value: 'color(\'info-60\')',
328 description: 'The border bottom color of the alert component, for the info color variant'
329 },
330 {
331 name: 'border-left-color',
332 type: '',
333 value: 'color(\'info-60\')',
334 description: 'The border left color of the alert component, for the info color variant'
335 },
336 {
337 name: 'color',
338 type: '',
339 value: 'contrast-color($color-info)',
340 description: 'The text color of the alert component, for the info color variant'
341 },
342 {
343 name: 'code--background',
344 type: '',
345 value: 'color(\'info-60\')',
346 description: 'The code background of the alert component, for the info color variant'
347 }
348 ]
349 },
350 {
351 name: 'success',
352 type: 'variant',
353 description: 'Variables for the success color variant',
354 variables: [
355 {
356 name: 'background',
357 type: '',
358 value: 'color(\'success\')',
359 description: 'The background of the alert component, for the success color variant'
360 },
361 {
362 name: 'border-top-color',
363 type: '',
364 value: 'color(\'success-60\')',
365 description: 'The border top color of the alert component, for the success color variant'
366 },
367 {
368 name: 'border-right-color',
369 type: '',
370 value: 'color(\'success-60\')',
371 description: 'The border right color of the alert component, for the success color variant'
372 },
373 {
374 name: 'border-bottom-color',
375 type: '',
376 value: 'color(\'success-60\')',
377 description: 'The border bottom color of the alert component, for the success color variant'
378 },
379 {
380 name: 'border-left-color',
381 type: '',
382 value: 'color(\'success-60\')',
383 description: 'The border left color of the alert component, for the success color variant'
384 },
385 {
386 name: 'color',
387 type: '',
388 value: 'contrast-color($color-success)',
389 description: 'The text color of the alert component, for the success color variant'
390 },
391 {
392 name: 'code--background',
393 type: '',
394 value: 'color(\'success-60\')',
395 description: 'The code background of the alert component, for the success color variant'
396 }
397 ]
398 },
399 {
400 name: 'warning',
401 type: 'variant',
402 description: 'Variables for the warning color variant',
403 variables: [
404 {
405 name: 'background',
406 type: '',
407 value: 'color(\'warning\')',
408 description: 'The background of the alert component, for the warning color variant'
409 },
410 {
411 name: 'border-top-color',
412 type: '',
413 value: 'color(\'warning-60\')',
414 description: 'The border top color of the alert component, for the warning color variant'
415 },
416 {
417 name: 'border-right-color',
418 type: '',
419 value: 'color(\'warning-60\')',
420 description: 'The border right color of the alert component, for the warning color variant'
421 },
422 {
423 name: 'border-bottom-color',
424 type: '',
425 value: 'color(\'warning-60\')',
426 description: 'The border bottom color of the alert component, for the warning color variant'
427 },
428 {
429 name: 'border-left-color',
430 type: '',
431 value: 'color(\'warning-60\')',
432 description: 'The border left color of the alert component, for the warning color variant'
433 },
434 {
435 name: 'color',
436 type: '',
437 value: 'contrast-color($color-warning)',
438 description: 'The text color of the alert component, for the warning color variant'
439 },
440 {
441 name: 'code--background',
442 type: '',
443 value: 'color(\'warning-60\')',
444 description: 'The code background of the alert component, for the warning color variant'
445 }
446 ]
447 },
448 {
449 name: 'danger',
450 type: 'variant',
451 description: 'Variables for the danger color variant',
452 variables: [
453 {
454 name: 'background',
455 type: '',
456 value: 'color(\'danger\')',
457 description: 'The background of the alert component, for the danger color variant'
458 },
459 {
460 name: 'border-top-color',
461 type: '',
462 value: 'color(\'danger-60\')',
463 description: 'The border top color of the alert component, for the danger color variant'
464 },
465 {
466 name: 'border-right-color',
467 type: '',
468 value: 'color(\'danger-60\')',
469 description: 'The border right color of the alert component, for the danger color variant'
470 },
471 {
472 name: 'border-bottom-color',
473 type: '',
474 value: 'color(\'danger-60\')',
475 description: 'The border bottom color of the alert component, for the danger color variant'
476 },
477 {
478 name: 'border-left-color',
479 type: '',
480 value: 'color(\'danger-60\')',
481 description: 'The border left color of the alert component, for the danger color variant'
482 },
483 {
484 name: 'color',
485 type: '',
486 value: 'contrast-color($color-danger)',
487 description: 'The text color of the alert component, for the danger color variant'
488 },
489 {
490 name: 'code--background',
491 type: '',
492 value: 'color(\'danger-60\')',
493 description: 'The code background of the alert component, for the danger color variant'
494 }
495 ]
496 },
497 {
498 name: 'sm',
499 type: 'variant',
500 description: 'Variables for the sm size variant',
501 variables: [
502 {
503 name: 'border-top-left-radius',
504 type: '',
505 value: 'calc(#{var(--border-top-left-radius)} * #{size-multiplier(\'sm\')})',
506 description: 'The border top left radius of the alert component, for the sm size variant'
507 },
508 {
509 name: 'border-top-right-radius',
510 type: '',
511 value: 'calc(#{var(--border-top-right-radius)} * #{size-multiplier(\'sm\')})',
512 description: 'The border top right radius of the alert component, for the sm size variant'
513 },
514 {
515 name: 'border-bottom-right-radius',
516 type: '',
517 value: 'calc(#{var(--border-bottom-right-radius)} * #{size-multiplier(\'sm\')})',
518 description: 'The border bottom right radius of the alert component, for the sm size variant'
519 },
520 {
521 name: 'border-bottom-left-radius',
522 type: '',
523 value: 'calc(#{var(--border-bottom-left-radius)} * #{size-multiplier(\'sm\')})',
524 description: 'The border bottom left radius of the alert component, for the sm size variant'
525 },
526 {
527 name: 'font-size',
528 type: '',
529 value: 'calc(#{font-size()} * #{size-multiplier(\'sm\')})',
530 description: 'The font size of the alert component, for the sm size variant'
531 },
532 {
533 name: 'padding-top',
534 type: '',
535 value: 'calc(#{var(--padding-top)} * #{size-multiplier(\'sm\')})',
536 description: 'The padding top of the alert component, for the sm size variant'
537 },
538 {
539 name: 'padding-right',
540 type: '',
541 value: 'calc(#{var(--padding-right)} * #{size-multiplier(\'sm\')})',
542 description: 'The padding right of the alert component, for the sm size variant'
543 },
544 {
545 name: 'padding-bottom',
546 type: '',
547 value: 'calc(#{var(--padding-bottom)} * #{size-multiplier(\'sm\')})',
548 description: 'The padding bottom of the alert component, for the sm size variant'
549 },
550 {
551 name: 'padding-left',
552 type: '',
553 value: 'calc(#{var(--padding-left)} * #{size-multiplier(\'sm\')})',
554 description: 'The padding left of the alert component, for the sm size variant'
555 }
556 ]
557 },
558 {
559 name: 'md',
560 type: 'variant',
561 description: 'Variables for the md size variant',
562 variables: [
563 {
564 name: 'border-top-left-radius',
565 type: '',
566 value: 'calc(#{var(--border-top-left-radius)} * #{size-multiplier(\'md\')})',
567 description: 'The border top left radius of the alert component, for the md size variant'
568 },
569 {
570 name: 'border-top-right-radius',
571 type: '',
572 value: 'calc(#{var(--border-top-right-radius)} * #{size-multiplier(\'md\')})',
573 description: 'The border top right radius of the alert component, for the md size variant'
574 },
575 {
576 name: 'border-bottom-right-radius',
577 type: '',
578 value: 'calc(#{var(--border-bottom-right-radius)} * #{size-multiplier(\'md\')})',
579 description: 'The border bottom right radius of the alert component, for the md size variant'
580 },
581 {
582 name: 'border-bottom-left-radius',
583 type: '',
584 value: 'calc(#{var(--border-bottom-left-radius)} * #{size-multiplier(\'md\')})',
585 description: 'The border bottom left radius of the alert component, for the md size variant'
586 },
587 {
588 name: 'font-size',
589 type: '',
590 value: 'calc(#{font-size()} * #{size-multiplier(\'md\')})',
591 description: 'The font size of the alert component, for the md size variant'
592 },
593 {
594 name: 'padding-top',
595 type: '',
596 value: 'calc(#{var(--padding-top)} * #{size-multiplier(\'md\')})',
597 description: 'The padding top of the alert component, for the md size variant'
598 },
599 {
600 name: 'padding-right',
601 type: '',
602 value: 'calc(#{var(--padding-right)} * #{size-multiplier(\'md\')})',
603 description: 'The padding right of the alert component, for the md size variant'
604 },
605 {
606 name: 'padding-bottom',
607 type: '',
608 value: 'calc(#{var(--padding-bottom)} * #{size-multiplier(\'md\')})',
609 description: 'The padding bottom of the alert component, for the md size variant'
610 },
611 {
612 name: 'padding-left',
613 type: '',
614 value: 'calc(#{var(--padding-left)} * #{size-multiplier(\'md\')})',
615 description: 'The padding left of the alert component, for the md size variant'
616 }
617 ]
618 },
619 {
620 name: 'lg',
621 type: 'variant',
622 description: 'Variables for the lg size variant',
623 variables: [
624 {
625 name: 'border-top-left-radius',
626 type: '',
627 value: 'calc(#{var(--border-top-left-radius)} * #{size-multiplier(\'lg\')})',
628 description: 'The border top left radius of the alert component, for the lg size variant'
629 },
630 {
631 name: 'border-top-right-radius',
632 type: '',
633 value: 'calc(#{var(--border-top-right-radius)} * #{size-multiplier(\'lg\')})',
634 description: 'The border top right radius of the alert component, for the lg size variant'
635 },
636 {
637 name: 'border-bottom-right-radius',
638 type: '',
639 value: 'calc(#{var(--border-bottom-right-radius)} * #{size-multiplier(\'lg\')})',
640 description: 'The border bottom right radius of the alert component, for the lg size variant'
641 },
642 {
643 name: 'border-bottom-left-radius',
644 type: '',
645 value: 'calc(#{var(--border-bottom-left-radius)} * #{size-multiplier(\'lg\')})',
646 description: 'The border bottom left radius of the alert component, for the lg size variant'
647 },
648 {
649 name: 'font-size',
650 type: '',
651 value: 'calc(#{font-size()} * #{size-multiplier(\'lg\')})',
652 description: 'The font size of the alert component, for the lg size variant'
653 },
654 {
655 name: 'padding-top',
656 type: '',
657 value: 'calc(#{var(--padding-top)} * #{size-multiplier(\'lg\')})',
658 description: 'The padding top of the alert component, for the lg size variant'
659 },
660 {
661 name: 'padding-right',
662 type: '',
663 value: 'calc(#{var(--padding-right)} * #{size-multiplier(\'lg\')})',
664 description: 'The padding right of the alert component, for the lg size variant'
665 },
666 {
667 name: 'padding-bottom',
668 type: '',
669 value: 'calc(#{var(--padding-bottom)} * #{size-multiplier(\'lg\')})',
670 description: 'The padding bottom of the alert component, for the lg size variant'
671 },
672 {
673 name: 'padding-left',
674 type: '',
675 value: 'calc(#{var(--padding-left)} * #{size-multiplier(\'lg\')})',
676 description: 'The padding left of the alert component, for the lg size variant'
677 }
678 ]
679 }
680 ]
681 }
682};
683export default manifest;
684//# sourceMappingURL=manifest.mjs.map
\No newline at end of file