mdi.mjs 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. // Composables
  2. import { VClassIcon } from "../composables/icons.mjs"; // Utilities
  3. import { h } from 'vue';
  4. // Types
  5. const aliases = {
  6. collapse: 'mdi-chevron-up',
  7. complete: 'mdi-check',
  8. cancel: 'mdi-close-circle',
  9. close: 'mdi-close',
  10. delete: 'mdi-close-circle',
  11. // delete (e.g. v-chip close)
  12. clear: 'mdi-close-circle',
  13. success: 'mdi-check-circle',
  14. info: 'mdi-information',
  15. warning: 'mdi-alert-circle',
  16. error: 'mdi-close-circle',
  17. prev: 'mdi-chevron-left',
  18. next: 'mdi-chevron-right',
  19. checkboxOn: 'mdi-checkbox-marked',
  20. checkboxOff: 'mdi-checkbox-blank-outline',
  21. checkboxIndeterminate: 'mdi-minus-box',
  22. delimiter: 'mdi-circle',
  23. // for carousel
  24. sortAsc: 'mdi-arrow-up',
  25. sortDesc: 'mdi-arrow-down',
  26. expand: 'mdi-chevron-down',
  27. menu: 'mdi-menu',
  28. subgroup: 'mdi-menu-down',
  29. dropdown: 'mdi-menu-down',
  30. radioOn: 'mdi-radiobox-marked',
  31. radioOff: 'mdi-radiobox-blank',
  32. edit: 'mdi-pencil',
  33. ratingEmpty: 'mdi-star-outline',
  34. ratingFull: 'mdi-star',
  35. ratingHalf: 'mdi-star-half-full',
  36. loading: 'mdi-cached',
  37. first: 'mdi-page-first',
  38. last: 'mdi-page-last',
  39. unfold: 'mdi-unfold-more-horizontal',
  40. file: 'mdi-paperclip',
  41. plus: 'mdi-plus',
  42. minus: 'mdi-minus',
  43. calendar: 'mdi-calendar'
  44. };
  45. const mdi = {
  46. // Not using mergeProps here, functional components merge props by default (?)
  47. component: props => h(VClassIcon, {
  48. ...props,
  49. class: 'mdi'
  50. })
  51. };
  52. export { aliases, mdi };
  53. //# sourceMappingURL=mdi.mjs.map