buefy 3.0.5 → 3.0.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (241) hide show
  1. package/dist/buefy.d.ts +63 -3
  2. package/dist/buefy.esm.js +209 -46
  3. package/dist/buefy.esm.min.js +2 -2
  4. package/dist/buefy.js +209 -44
  5. package/dist/buefy.min.js +2 -2
  6. package/dist/cjs/{Autocomplete-DEUs3z7g.js → Autocomplete-b0JUESTO.js} +3 -3
  7. package/dist/cjs/{Button-Cq7yqI8p.js → Button-Dw6VG6n7.js} +2 -2
  8. package/dist/cjs/{Checkbox-GPzAMQqM.js → Checkbox-cujzPKDl.js} +31 -3
  9. package/dist/cjs/{CompatFallthroughMixin-hhK0Gkhr.js → CompatFallthroughMixin-DI5L88ey.js} +1 -1
  10. package/dist/cjs/{Datepicker-DhsJpauU.js → Datepicker-DVB975q3.js} +9 -9
  11. package/dist/cjs/{Dropdown-BAXMPUCZ.js → Dropdown-CFh_lLvm.js} +1 -1
  12. package/dist/cjs/{DropdownItem-BOAAPdrW.js → DropdownItem-D2Ky1QIH.js} +1 -1
  13. package/dist/cjs/{Field-19ZCJFF8.js → Field-Dy73xhhY.js} +1 -1
  14. package/dist/cjs/{FormElementMixin-DavX4iOv.js → FormElementMixin-17PQ7TPR.js} +1 -1
  15. package/dist/cjs/{Icon-lsDKE2wQ.js → Icon-DrFLI3Zg.js} +48 -6
  16. package/dist/cjs/{Image-CocPwU3n.js → Image-D4AGl_2Z.js} +1 -1
  17. package/dist/cjs/{Input-BcloGeZ3.js → Input-z4Vlmbj8.js} +4 -4
  18. package/dist/cjs/{Modal-D1aZUehE.js → Modal-CVyLPawO.js} +1 -1
  19. package/dist/cjs/{NoticeMixin--3RjH43z.js → NoticeMixin-BlwAiMRV.js} +1 -1
  20. package/dist/cjs/{Pagination-D1MVdiLp.js → Pagination-54NHaQvi.js} +2 -2
  21. package/dist/cjs/{Progress-DT9Qc8Id.js → Progress-BlXLJ3zb.js} +1 -1
  22. package/dist/cjs/{Select-DayPKwCY.js → Select-DRXaEjlP.js} +3 -3
  23. package/dist/cjs/{TabbedChildMixin-B3JUUwcf.js → TabbedChildMixin-BFHsIyg6.js} +1 -1
  24. package/dist/cjs/{Tag-BprnwJJ1.js → Tag-BdL2uH8x.js} +1 -1
  25. package/dist/cjs/{Timepicker-DDYkLeNV.js → Timepicker-ujQPxzDF.js} +6 -6
  26. package/dist/cjs/{TimepickerMixin-C9WVvcUL.js → TimepickerMixin-C9OA8jWF.js} +3 -3
  27. package/dist/cjs/{Tooltip-Cgighv0j.js → Tooltip-j_3eF7QD.js} +1 -1
  28. package/dist/cjs/autocomplete.js +7 -6
  29. package/dist/cjs/breadcrumb.js +2 -2
  30. package/dist/cjs/button.js +4 -3
  31. package/dist/cjs/carousel.js +4 -3
  32. package/dist/cjs/checkbox.js +3 -1
  33. package/dist/cjs/clockpicker.js +8 -7
  34. package/dist/cjs/colorpicker.js +12 -11
  35. package/dist/cjs/{config-DR826Ki2.js → config-CXSF5Vky.js} +2 -1
  36. package/dist/cjs/config.js +1 -1
  37. package/dist/cjs/datepicker.js +11 -10
  38. package/dist/cjs/datetimepicker.js +13 -12
  39. package/dist/cjs/dialog.js +5 -4
  40. package/dist/cjs/dropdown.js +3 -3
  41. package/dist/cjs/field.js +2 -2
  42. package/dist/cjs/icon.js +5 -2
  43. package/dist/cjs/iconAliases-DoayKo0q.js +100 -0
  44. package/dist/cjs/image.js +2 -2
  45. package/dist/cjs/{index-BkFyTNWp.js → index-N35FRTpu.js} +8 -8
  46. package/dist/cjs/index.js +27 -24
  47. package/dist/cjs/input.js +6 -5
  48. package/dist/cjs/menu.js +4 -3
  49. package/dist/cjs/message.js +4 -3
  50. package/dist/cjs/modal.js +2 -2
  51. package/dist/cjs/navbar.js +2 -2
  52. package/dist/cjs/notification.js +5 -4
  53. package/dist/cjs/numberinput.js +6 -5
  54. package/dist/cjs/pagination.js +4 -3
  55. package/dist/cjs/progress.js +2 -2
  56. package/dist/cjs/rate.js +3 -2
  57. package/dist/cjs/select.js +6 -5
  58. package/dist/cjs/sidebar.js +1 -1
  59. package/dist/cjs/slider.js +3 -3
  60. package/dist/cjs/snackbar.js +2 -2
  61. package/dist/cjs/steps.js +4 -3
  62. package/dist/cjs/switch.js +1 -1
  63. package/dist/cjs/table.js +9 -8
  64. package/dist/cjs/tabs.js +4 -3
  65. package/dist/cjs/tag.js +4 -3
  66. package/dist/cjs/taginput.js +8 -7
  67. package/dist/cjs/timepicker.js +12 -11
  68. package/dist/cjs/toast.js +2 -2
  69. package/dist/cjs/tooltip.js +2 -2
  70. package/dist/cjs/upload.js +3 -3
  71. package/dist/components/autocomplete/index.js +122 -6
  72. package/dist/components/autocomplete/index.min.js +2 -2
  73. package/dist/components/breadcrumb/index.js +1 -1
  74. package/dist/components/breadcrumb/index.min.js +1 -1
  75. package/dist/components/button/index.js +122 -6
  76. package/dist/components/button/index.min.js +2 -2
  77. package/dist/components/carousel/index.js +122 -6
  78. package/dist/components/carousel/index.min.js +2 -2
  79. package/dist/components/checkbox/index.js +106 -4
  80. package/dist/components/checkbox/index.min.js +2 -2
  81. package/dist/components/clockpicker/index.js +126 -10
  82. package/dist/components/clockpicker/index.min.js +2 -2
  83. package/dist/components/collapse/index.js +1 -1
  84. package/dist/components/collapse/index.min.js +1 -1
  85. package/dist/components/colorpicker/index.js +126 -10
  86. package/dist/components/colorpicker/index.min.js +2 -2
  87. package/dist/components/datepicker/index.js +134 -18
  88. package/dist/components/datepicker/index.min.js +2 -2
  89. package/dist/components/datetimepicker/index.js +126 -10
  90. package/dist/components/datetimepicker/index.min.js +2 -2
  91. package/dist/components/dialog/index.js +122 -6
  92. package/dist/components/dialog/index.min.js +2 -2
  93. package/dist/components/dropdown/index.js +1 -1
  94. package/dist/components/dropdown/index.min.js +1 -1
  95. package/dist/components/field/index.js +1 -1
  96. package/dist/components/field/index.min.js +1 -1
  97. package/dist/components/icon/index.js +124 -6
  98. package/dist/components/icon/index.min.js +2 -2
  99. package/dist/components/image/index.js +1 -1
  100. package/dist/components/image/index.min.js +1 -1
  101. package/dist/components/input/index.js +122 -6
  102. package/dist/components/input/index.min.js +2 -2
  103. package/dist/components/loading/index.js +1 -1
  104. package/dist/components/loading/index.min.js +1 -1
  105. package/dist/components/menu/index.js +124 -8
  106. package/dist/components/menu/index.min.js +2 -2
  107. package/dist/components/message/index.js +122 -6
  108. package/dist/components/message/index.min.js +2 -2
  109. package/dist/components/modal/index.js +1 -1
  110. package/dist/components/modal/index.min.js +1 -1
  111. package/dist/components/navbar/index.js +1 -1
  112. package/dist/components/navbar/index.min.js +1 -1
  113. package/dist/components/notification/index.js +122 -6
  114. package/dist/components/notification/index.min.js +2 -2
  115. package/dist/components/numberinput/index.js +122 -6
  116. package/dist/components/numberinput/index.min.js +2 -2
  117. package/dist/components/pagination/index.js +122 -6
  118. package/dist/components/pagination/index.min.js +2 -2
  119. package/dist/components/progress/index.js +1 -1
  120. package/dist/components/progress/index.min.js +1 -1
  121. package/dist/components/radio/index.js +1 -1
  122. package/dist/components/radio/index.min.js +1 -1
  123. package/dist/components/rate/index.js +122 -6
  124. package/dist/components/rate/index.min.js +2 -2
  125. package/dist/components/select/index.js +122 -6
  126. package/dist/components/select/index.min.js +2 -2
  127. package/dist/components/sidebar/index.js +1 -1
  128. package/dist/components/sidebar/index.min.js +1 -1
  129. package/dist/components/skeleton/index.js +1 -1
  130. package/dist/components/skeleton/index.min.js +1 -1
  131. package/dist/components/slider/index.js +1 -1
  132. package/dist/components/slider/index.min.js +1 -1
  133. package/dist/components/snackbar/index.js +1 -1
  134. package/dist/components/snackbar/index.min.js +1 -1
  135. package/dist/components/steps/index.js +122 -6
  136. package/dist/components/steps/index.min.js +2 -2
  137. package/dist/components/switch/index.js +1 -1
  138. package/dist/components/switch/index.min.js +1 -1
  139. package/dist/components/table/index.js +156 -13
  140. package/dist/components/table/index.min.js +2 -2
  141. package/dist/components/tabs/index.js +122 -6
  142. package/dist/components/tabs/index.min.js +2 -2
  143. package/dist/components/tag/index.js +122 -6
  144. package/dist/components/tag/index.min.js +2 -2
  145. package/dist/components/taginput/index.js +122 -6
  146. package/dist/components/taginput/index.min.js +2 -2
  147. package/dist/components/timepicker/index.js +134 -18
  148. package/dist/components/timepicker/index.min.js +2 -2
  149. package/dist/components/toast/index.js +1 -1
  150. package/dist/components/toast/index.min.js +1 -1
  151. package/dist/components/tooltip/index.js +1 -1
  152. package/dist/components/tooltip/index.min.js +1 -1
  153. package/dist/components/upload/index.js +1 -1
  154. package/dist/components/upload/index.min.js +1 -1
  155. package/dist/css/buefy.css +21 -38
  156. package/dist/css/buefy.css.map +1 -1
  157. package/dist/css/buefy.min.css +1 -1
  158. package/dist/css/versions/buefy-no-reset.css +21 -38
  159. package/dist/css/versions/buefy-no-reset.css.map +1 -1
  160. package/dist/css/versions/buefy-no-reset.min.css +1 -1
  161. package/dist/css/versions/buefy-standalone.css +21 -38
  162. package/dist/css/versions/buefy-standalone.css.map +1 -1
  163. package/dist/css/versions/buefy-standalone.min.css +1 -1
  164. package/dist/esm/{Autocomplete-HsHD-6pc.js → Autocomplete-BsBIH0Mj.js} +3 -3
  165. package/dist/esm/{Button-Bvib75up.js → Button-BTP__-p5.js} +2 -2
  166. package/dist/esm/{Checkbox-u861Rije.js → Checkbox-C6pO3IzG.js} +31 -3
  167. package/dist/esm/{CompatFallthroughMixin-C8LPuwDr.js → CompatFallthroughMixin-LfFRwwlz.js} +1 -1
  168. package/dist/esm/{Datepicker-BZ5ORu0F.js → Datepicker-CrVKrZBF.js} +9 -9
  169. package/dist/esm/{Dropdown-BLadix4L.js → Dropdown-GHauDDcD.js} +1 -1
  170. package/dist/esm/{DropdownItem-Crhb4RQp.js → DropdownItem-By3tSZk2.js} +1 -1
  171. package/dist/esm/{Field-DZCOQuRO.js → Field-CU8ZBgMh.js} +1 -1
  172. package/dist/esm/{FormElementMixin-Dd_wkBN5.js → FormElementMixin-CKI7b4I4.js} +1 -1
  173. package/dist/esm/{Icon-iqPKMem5.js → Icon-pQAdaqZb.js} +49 -7
  174. package/dist/esm/{Image-By9o7ryD.js → Image-COmzg-EK.js} +1 -1
  175. package/dist/esm/{Input-JL4LWKyL.js → Input-CErQ1Jyw.js} +4 -4
  176. package/dist/esm/{Modal-BF2kchNd.js → Modal-C13NJijf.js} +1 -1
  177. package/dist/esm/{NoticeMixin-ByNlva3T.js → NoticeMixin-TQEF1Kx6.js} +1 -1
  178. package/dist/esm/{Pagination-BWFVCGiz.js → Pagination-DvgzxH87.js} +2 -2
  179. package/dist/esm/{Progress-BxT2PFEw.js → Progress-AeKn1Ttq.js} +1 -1
  180. package/dist/esm/{Select-dYTVc9W4.js → Select-CbkuxvSQ.js} +3 -3
  181. package/dist/esm/{TabbedChildMixin-BsuDQmWE.js → TabbedChildMixin-Bdu5A4iY.js} +1 -1
  182. package/dist/esm/{Tag-BFgiw0Ac.js → Tag-Dx_-Tavp.js} +1 -1
  183. package/dist/esm/{Timepicker-CYqyLHE9.js → Timepicker-0ojuPkqd.js} +6 -6
  184. package/dist/esm/{TimepickerMixin-Bikh6_Fg.js → TimepickerMixin-oNahYGFZ.js} +3 -3
  185. package/dist/esm/{Tooltip-Ds5fe3ZP.js → Tooltip-BnzQFdnQ.js} +1 -1
  186. package/dist/esm/autocomplete.js +7 -6
  187. package/dist/esm/breadcrumb.js +2 -2
  188. package/dist/esm/button.js +4 -3
  189. package/dist/esm/carousel.js +4 -3
  190. package/dist/esm/checkbox.js +3 -1
  191. package/dist/esm/clockpicker.js +8 -7
  192. package/dist/esm/colorpicker.js +12 -11
  193. package/dist/esm/{config-CKuo-p6e.js → config-f4Dyy8TN.js} +2 -1
  194. package/dist/esm/config.js +1 -1
  195. package/dist/esm/datepicker.js +11 -10
  196. package/dist/esm/datetimepicker.js +13 -12
  197. package/dist/esm/dialog.js +5 -4
  198. package/dist/esm/dropdown.js +3 -3
  199. package/dist/esm/field.js +2 -2
  200. package/dist/esm/icon.js +3 -2
  201. package/dist/esm/iconAliases-B-CydxNj.js +97 -0
  202. package/dist/esm/image.js +2 -2
  203. package/dist/esm/{index-mnzTDKh9.js → index-BYVep8cv.js} +8 -8
  204. package/dist/esm/index.js +26 -25
  205. package/dist/esm/input.js +6 -5
  206. package/dist/esm/menu.js +4 -3
  207. package/dist/esm/message.js +4 -3
  208. package/dist/esm/modal.js +2 -2
  209. package/dist/esm/navbar.js +2 -2
  210. package/dist/esm/notification.js +5 -4
  211. package/dist/esm/numberinput.js +6 -5
  212. package/dist/esm/pagination.js +4 -3
  213. package/dist/esm/progress.js +2 -2
  214. package/dist/esm/rate.js +3 -2
  215. package/dist/esm/select.js +6 -5
  216. package/dist/esm/sidebar.js +1 -1
  217. package/dist/esm/slider.js +3 -3
  218. package/dist/esm/snackbar.js +2 -2
  219. package/dist/esm/steps.js +4 -3
  220. package/dist/esm/switch.js +1 -1
  221. package/dist/esm/table.js +9 -8
  222. package/dist/esm/tabs.js +4 -3
  223. package/dist/esm/tag.js +4 -3
  224. package/dist/esm/taginput.js +8 -7
  225. package/dist/esm/timepicker.js +12 -11
  226. package/dist/esm/toast.js +2 -2
  227. package/dist/esm/tooltip.js +2 -2
  228. package/dist/esm/upload.js +3 -3
  229. package/package.json +2 -2
  230. package/src/components/checkbox/Checkbox.spec.ts +56 -26
  231. package/src/components/checkbox/Checkbox.vue +25 -1
  232. package/src/components/checkbox/__snapshots__/Checkbox.spec.ts.snap +1 -1
  233. package/src/components/datepicker/__snapshots__/Datepicker.spec.ts.snap +2 -2
  234. package/src/components/icon/Icon.spec.ts +67 -0
  235. package/src/components/icon/Icon.vue +40 -5
  236. package/src/components/icon/__snapshots__/Icon.spec.ts.snap +1 -1
  237. package/src/components/icon/index.ts +10 -0
  238. package/src/components/table/__snapshots__/TableMobileSort.spec.ts.snap +1 -1
  239. package/src/scss/components/_checkbox.scss +13 -15
  240. package/src/utils/config.ts +104 -2
  241. package/src/utils/iconAliases.ts +86 -0
@@ -1,4 +1,4 @@
1
- /*! Buefy v3.0.5 | MIT License | github.com/buefy/buefy */
1
+ /*! Buefy v3.0.7 | MIT License | github.com/buefy/buefy */
2
2
  (function (global, factory) {
3
3
  typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('vue')) :
4
4
  typeof define === 'function' && define.amd ? define(['exports', 'vue'], factory) :
@@ -1,2 +1,2 @@
1
- /*! Buefy v3.0.5 | MIT License | github.com/buefy/buefy */
1
+ /*! Buefy v3.0.7 | MIT License | github.com/buefy/buefy */
2
2
  !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("vue")):"function"==typeof define&&define.amd?define(["exports","vue"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).Collapse={},e.Vue)}(this,(function(e,t){"use strict";const i=["is-top","is-bottom"];var s=t.defineComponent({name:"BCollapse",props:{modelValue:{type:Boolean,default:!0},animation:{type:String,default:"fade"},ariaId:{type:String,default:""},position:{type:String,default:"is-top",validator:e=>i.indexOf(e)>-1}},emits:{close:()=>!0,open:()=>!0,"update:modelValue":e=>!0},data(){return{isOpen:this.modelValue}},watch:{modelValue(e){this.isOpen=e}},methods:{toggle(){this.isOpen=!this.isOpen,this.$emit("update:modelValue",this.isOpen),this.isOpen?this.$emit("open"):this.$emit("close")}},render(){const e=t.h("div",{class:"collapse-trigger",onClick:this.toggle},this.$slots.trigger?this.$slots.trigger({open:this.isOpen}):void 0),i=t.withDirectives(t.h(t.Transition,{name:this.animation},(()=>[t.h("div",{class:"collapse-content",id:this.ariaId},this.$slots)])),[[t.vShow,this.isOpen]]);return t.h("div",{class:"collapse"},"is-top"===this.position?[e,i]:[i,e])}});const o={install(e){((e,t)=>{const i=t.name;if(null==i)throw new Error("Buefy.registerComponent: missing component name");e.component(i,t)})(e,s)}};e.BCollapse=s,e.default=o,Object.defineProperty(e,"__esModule",{value:!0})}));
@@ -1,4 +1,4 @@
1
- /*! Buefy v3.0.5 | MIT License | github.com/buefy/buefy */
1
+ /*! Buefy v3.0.7 | MIT License | github.com/buefy/buefy */
2
2
  (function (global, factory) {
3
3
  typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('vue')) :
4
4
  typeof define === 'function' && define.amd ? define(['exports', 'vue'], factory) :
@@ -759,8 +759,8 @@
759
759
  return target;
760
760
  };
761
761
 
762
- const _hoisted_1$8 = ["for"];
763
- const _hoisted_2$6 = ["for"];
762
+ const _hoisted_1$9 = ["for"];
763
+ const _hoisted_2$7 = ["for"];
764
764
  const _hoisted_3$5 = {
765
765
  key: 3,
766
766
  class: "field-body"
@@ -799,7 +799,7 @@
799
799
  64
800
800
  /* STABLE_FRAGMENT */
801
801
  ))
802
- ], 10, _hoisted_1$8)) : vue.createCommentVNode("v-if", true)
802
+ ], 10, _hoisted_1$9)) : vue.createCommentVNode("v-if", true)
803
803
  ],
804
804
  2
805
805
  /* CLASS */
@@ -825,7 +825,7 @@
825
825
  64
826
826
  /* STABLE_FRAGMENT */
827
827
  ))
828
- ], 10, _hoisted_2$6)) : vue.createCommentVNode("v-if", true)
828
+ ], 10, _hoisted_2$7)) : vue.createCommentVNode("v-if", true)
829
829
  ],
830
830
  64
831
831
  /* STABLE_FRAGMENT */
@@ -1112,6 +1112,81 @@
1112
1112
  return icons;
1113
1113
  };
1114
1114
 
1115
+ const defaultIconAliases = {
1116
+ checkboxOn: {
1117
+ type: "svg",
1118
+ viewBox: "0 0 1 1",
1119
+ path: "M 0.04038059,0.6267767 0.14644661,0.52071068 0.42928932,0.80355339 0.3232233,0.90961941 z M 0.21715729,0.80355339 0.85355339,0.16715729 0.95961941,0.2732233 0.3232233,0.90961941 z"
1120
+ },
1121
+ checkboxIndeterminate: {
1122
+ type: "svg",
1123
+ viewBox: "0 0 1 1",
1124
+ path: "M 0.15,0.4 L 0.85,0.4 L 0.85,0.6 L 0.15,0.6 Z"
1125
+ },
1126
+ chevronLeft: {
1127
+ type: "svg",
1128
+ path: "M15.41,16.58L10.83,12L15.41,7.41L14,6L8,12L14,18L15.41,16.58Z"
1129
+ },
1130
+ chevronRight: {
1131
+ type: "svg",
1132
+ path: "M8.59,16.58L13.17,12L8.59,7.41L10,6L16,12L10,18L8.59,16.58Z"
1133
+ },
1134
+ chevronDown: {
1135
+ type: "svg",
1136
+ path: "M7.41,8.58L12,13.17L16.59,8.58L18,10L12,16L6,10L7.41,8.58Z"
1137
+ },
1138
+ chevronUp: {
1139
+ type: "svg",
1140
+ path: "M7.41,15.41L12,10.83L16.59,15.41L18,14L12,8L6,14L7.41,15.41Z"
1141
+ },
1142
+ menuDown: {
1143
+ type: "svg",
1144
+ path: "M7,10L12,15L17,10H7Z"
1145
+ },
1146
+ menuUp: {
1147
+ type: "svg",
1148
+ path: "M7,14L12,9L17,14H7Z"
1149
+ },
1150
+ check: {
1151
+ type: "svg",
1152
+ path: "M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z"
1153
+ },
1154
+ alertCircle: {
1155
+ type: "svg",
1156
+ path: "M13,13H11V7H13M13,17H11V15H13M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2Z"
1157
+ },
1158
+ alert: {
1159
+ type: "svg",
1160
+ path: "M13,14H11V10H13M13,18H11V16H13M1,21H23L12,2L1,21Z"
1161
+ },
1162
+ information: {
1163
+ type: "svg",
1164
+ path: "M13,9H11V7H13M13,17H11V11H13M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2Z"
1165
+ },
1166
+ close: {
1167
+ type: "svg",
1168
+ path: "M19,6.41L17.59,5L12,10.59L6.41,5L5,6.41L10.59,12L5,17.59L6.41,19L12,13.41L17.59,19L19,17.59L13.41,12L19,6.41Z"
1169
+ },
1170
+ closeCircle: {
1171
+ type: "svg",
1172
+ path: "M12,2C17.53,2 22,6.47 22,12C22,17.53 17.53,22 12,22C6.47,22 2,17.53 2,12C2,6.47 6.47,2 12,2M15.59,7L12,10.59L8.41,7L7,8.41L10.59,12L7,15.59L8.41,17L12,13.41L15.59,17L17,15.59L13.41,12L17,8.41L15.59,7Z"
1173
+ },
1174
+ eye: {
1175
+ type: "svg",
1176
+ path: "M12,9A3,3 0 0,0 9,12A3,3 0 0,0 12,15A3,3 0 0,0 15,12A3,3 0 0,0 12,9M12,17A5,5 0 0,1 7,12A5,5 0 0,1 12,7A5,5 0 0,1 17,12A5,5 0 0,1 12,17M12,4.5C7,4.5 2.73,7.61 1,12C2.73,16.39 7,19.5 12,19.5C17,19.5 21.27,16.39 23,12C21.27,7.61 17,4.5 12,4.5Z"
1177
+ },
1178
+ eyeOff: {
1179
+ type: "svg",
1180
+ path: "M11.83,9L15,12.16C15,12.11 15,12.05 15,12A3,3 0 0,0 12,9C11.94,9 11.89,9 11.83,9M7.53,9.8L9.08,11.35C9.03,11.56 9,11.77 9,12A3,3 0 0,0 12,15C12.22,15 12.44,14.97 12.65,14.92L14.2,16.47C13.53,16.8 12.79,17 12,17A5,5 0 0,1 7,12C7,11.21 7.2,10.47 7.53,9.8M2,4.27L4.28,6.55L4.73,7C3.08,8.3 1.78,10 1,12C2.73,16.39 7,19.5 12,19.5C13.55,19.5 15.03,19.18 16.38,18.6L16.81,19L19.73,22L21,20.73L3.27,3M12,7A5,5 0 0,1 17,12C17,12.64 16.87,13.26 16.64,13.82L19.57,16.75C21.07,15.5 22.27,13.86 23,12C21.27,7.61 17,4.5 12,4.5C10.6,4.5 9.26,4.75 8,5.2L10.17,7.35C10.74,7.13 11.35,7 12,7Z"
1181
+ }
1182
+ };
1183
+ function getIconAliases() {
1184
+ return defaultIconAliases;
1185
+ }
1186
+ function resolveAlias(name) {
1187
+ return getIconAliases()[name];
1188
+ }
1189
+
1115
1190
  var _sfc_main$9 = vue.defineComponent({
1116
1191
  name: "BIcon",
1117
1192
  props: {
@@ -1120,8 +1195,11 @@
1120
1195
  pack: String,
1121
1196
  icon: {
1122
1197
  type: String,
1123
- required: true
1198
+ required: false,
1199
+ default: void 0
1124
1200
  },
1201
+ /** Key into IconAliases (e.g. "chevronLeft"). Takes precedence over icon/pack. */
1202
+ alias: String,
1125
1203
  size: String,
1126
1204
  customSize: String,
1127
1205
  customClass: String,
@@ -1129,6 +1207,26 @@
1129
1207
  // This is used internally to show both MDI and FA icon
1130
1208
  },
1131
1209
  computed: {
1210
+ resolvedAlias() {
1211
+ var _a;
1212
+ if (!this.alias) return null;
1213
+ return (_a = resolveAlias(this.alias)) != null ? _a : null;
1214
+ },
1215
+ isSvgAlias() {
1216
+ var _a;
1217
+ return ((_a = this.resolvedAlias) == null ? void 0 : _a.type) === "svg";
1218
+ },
1219
+ isComponentAlias() {
1220
+ var _a;
1221
+ return ((_a = this.resolvedAlias) == null ? void 0 : _a.type) === "component";
1222
+ },
1223
+ // Typed accessors used in the template
1224
+ resolvedAliasSvg() {
1225
+ return this.resolvedAlias;
1226
+ },
1227
+ resolvedAliasComponent() {
1228
+ return this.resolvedAlias;
1229
+ },
1132
1230
  iconConfig() {
1133
1231
  const allIcons = getIcons();
1134
1232
  return allIcons[this.newPack];
@@ -1145,7 +1243,8 @@
1145
1243
  * internal icons are always MDI.
1146
1244
  */
1147
1245
  newIcon() {
1148
- return `${this.iconPrefix}${this.getEquivalentIconOf(this.icon)}`;
1246
+ var _a;
1247
+ return `${this.iconPrefix}${this.getEquivalentIconOf((_a = this.icon) != null ? _a : "")}`;
1149
1248
  },
1150
1249
  newPack() {
1151
1250
  return this.pack || config.defaultIconPack;
@@ -1204,6 +1303,8 @@
1204
1303
  }
1205
1304
  });
1206
1305
 
1306
+ const _hoisted_1$8 = ["viewBox"];
1307
+ const _hoisted_2$6 = ["d"];
1207
1308
  function _sfc_render$9(_ctx, _cache, $props, $setup, $data, $options) {
1208
1309
  return vue.openBlock(), vue.createElementBlock(
1209
1310
  "span",
@@ -1211,17 +1312,32 @@
1211
1312
  class: vue.normalizeClass(["icon", [_ctx.newType, _ctx.size]])
1212
1313
  },
1213
1314
  [
1214
- !_ctx.useIconComponent ? (vue.openBlock(), vue.createElementBlock(
1315
+ _ctx.isSvgAlias ? (vue.openBlock(), vue.createElementBlock("svg", {
1316
+ key: 0,
1317
+ viewBox: _ctx.resolvedAliasSvg.viewBox || "0 0 24 24",
1318
+ xmlns: "http://www.w3.org/2000/svg",
1319
+ class: vue.normalizeClass(_ctx.customClass),
1320
+ "aria-hidden": "true"
1321
+ }, [
1322
+ vue.createElementVNode("path", {
1323
+ fill: "currentColor",
1324
+ d: _ctx.resolvedAliasSvg.path
1325
+ }, null, 8, _hoisted_2$6)
1326
+ ], 10, _hoisted_1$8)) : _ctx.isComponentAlias ? (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(_ctx.resolvedAliasComponent.component), {
1327
+ key: 1,
1328
+ icon: _ctx.resolvedAliasComponent.icon,
1329
+ class: vue.normalizeClass(_ctx.customClass)
1330
+ }, null, 8, ["icon", "class"])) : !_ctx.useIconComponent ? (vue.openBlock(), vue.createElementBlock(
1215
1331
  "i",
1216
1332
  {
1217
- key: 0,
1333
+ key: 2,
1218
1334
  class: vue.normalizeClass([_ctx.newPack, _ctx.newIcon, _ctx.newCustomSize, _ctx.customClass])
1219
1335
  },
1220
1336
  null,
1221
1337
  2
1222
1338
  /* CLASS */
1223
1339
  )) : (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(_ctx.useIconComponent), {
1224
- key: 1,
1340
+ key: 3,
1225
1341
  icon: [_ctx.newPack, _ctx.newIcon],
1226
1342
  size: _ctx.newCustomSize,
1227
1343
  class: vue.normalizeClass([_ctx.customClass])