buefy 3.0.5 → 3.0.6

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 +1 -1
  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.6 | 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) :
@@ -427,8 +427,8 @@
427
427
  return target;
428
428
  };
429
429
 
430
- const _hoisted_1$8 = ["for"];
431
- const _hoisted_2$8 = ["for"];
430
+ const _hoisted_1$9 = ["for"];
431
+ const _hoisted_2$9 = ["for"];
432
432
  const _hoisted_3$6 = {
433
433
  key: 3,
434
434
  class: "field-body"
@@ -467,7 +467,7 @@
467
467
  64
468
468
  /* STABLE_FRAGMENT */
469
469
  ))
470
- ], 10, _hoisted_1$8)) : vue.createCommentVNode("v-if", true)
470
+ ], 10, _hoisted_1$9)) : vue.createCommentVNode("v-if", true)
471
471
  ],
472
472
  2
473
473
  /* CLASS */
@@ -493,7 +493,7 @@
493
493
  64
494
494
  /* STABLE_FRAGMENT */
495
495
  ))
496
- ], 10, _hoisted_2$8)) : vue.createCommentVNode("v-if", true)
496
+ ], 10, _hoisted_2$9)) : vue.createCommentVNode("v-if", true)
497
497
  ],
498
498
  64
499
499
  /* STABLE_FRAGMENT */
@@ -1162,8 +1162,8 @@
1162
1162
  }
1163
1163
  });
1164
1164
 
1165
- const _hoisted_1$7 = ["tabindex"];
1166
- const _hoisted_2$7 = ["aria-hidden"];
1165
+ const _hoisted_1$8 = ["tabindex"];
1166
+ const _hoisted_2$8 = ["aria-hidden"];
1167
1167
  const _hoisted_3$5 = ["aria-hidden"];
1168
1168
  const _hoisted_4$4 = ["role", "aria-modal"];
1169
1169
  function _sfc_render$8(_ctx, _cache, $props, $setup, $data, $options) {
@@ -1191,14 +1191,14 @@
1191
1191
  "aria-haspopup": "true"
1192
1192
  }, [
1193
1193
  vue.renderSlot(_ctx.$slots, "trigger", { active: _ctx.isActive })
1194
- ], 40, _hoisted_1$7)) : vue.createCommentVNode("v-if", true),
1194
+ ], 40, _hoisted_1$8)) : vue.createCommentVNode("v-if", true),
1195
1195
  vue.createVNode(vue.Transition, { name: _ctx.animation }, {
1196
1196
  default: vue.withCtx(() => [
1197
1197
  _ctx.isMobileModal ? vue.withDirectives((vue.openBlock(), vue.createElementBlock("div", {
1198
1198
  key: 0,
1199
1199
  class: "background",
1200
1200
  "aria-hidden": !_ctx.isActive
1201
- }, null, 8, _hoisted_2$7)), [
1201
+ }, null, 8, _hoisted_2$8)), [
1202
1202
  [vue.vShow, _ctx.isActive]
1203
1203
  ]) : vue.createCommentVNode("v-if", true)
1204
1204
  ]),
@@ -1315,14 +1315,14 @@
1315
1315
  }
1316
1316
  });
1317
1317
 
1318
- const _hoisted_1$6 = {
1318
+ const _hoisted_1$7 = {
1319
1319
  key: 0,
1320
1320
  class: "dropdown-divider"
1321
1321
  };
1322
- const _hoisted_2$6 = ["role", "tabindex"];
1322
+ const _hoisted_2$7 = ["role", "tabindex"];
1323
1323
  const _hoisted_3$4 = ["role", "tabindex"];
1324
1324
  function _sfc_render$7(_ctx, _cache, $props, $setup, $data, $options) {
1325
- return _ctx.separator ? (vue.openBlock(), vue.createElementBlock("hr", _hoisted_1$6)) : !_ctx.custom && !_ctx.hasLink ? (vue.openBlock(), vue.createElementBlock("a", {
1325
+ return _ctx.separator ? (vue.openBlock(), vue.createElementBlock("hr", _hoisted_1$7)) : !_ctx.custom && !_ctx.hasLink ? (vue.openBlock(), vue.createElementBlock("a", {
1326
1326
  key: 1,
1327
1327
  class: vue.normalizeClass(["dropdown-item", _ctx.anchorClasses]),
1328
1328
  onClick: _cache[0] || (_cache[0] = (...args) => _ctx.selectItem && _ctx.selectItem(...args)),
@@ -1330,7 +1330,7 @@
1330
1330
  tabindex: _ctx.isFocusable ? 0 : void 0
1331
1331
  }, [
1332
1332
  vue.renderSlot(_ctx.$slots, "default")
1333
- ], 10, _hoisted_2$6)) : (vue.openBlock(), vue.createElementBlock("div", {
1333
+ ], 10, _hoisted_2$7)) : (vue.openBlock(), vue.createElementBlock("div", {
1334
1334
  key: 2,
1335
1335
  class: vue.normalizeClass(_ctx.itemClasses),
1336
1336
  onClick: _cache[1] || (_cache[1] = (...args) => _ctx.selectItem && _ctx.selectItem(...args)),
@@ -1394,6 +1394,81 @@
1394
1394
  return icons;
1395
1395
  };
1396
1396
 
1397
+ const defaultIconAliases = {
1398
+ checkboxOn: {
1399
+ type: "svg",
1400
+ viewBox: "0 0 1 1",
1401
+ 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"
1402
+ },
1403
+ checkboxIndeterminate: {
1404
+ type: "svg",
1405
+ viewBox: "0 0 1 1",
1406
+ path: "M 0.15,0.4 L 0.85,0.4 L 0.85,0.6 L 0.15,0.6 Z"
1407
+ },
1408
+ chevronLeft: {
1409
+ type: "svg",
1410
+ path: "M15.41,16.58L10.83,12L15.41,7.41L14,6L8,12L14,18L15.41,16.58Z"
1411
+ },
1412
+ chevronRight: {
1413
+ type: "svg",
1414
+ path: "M8.59,16.58L13.17,12L8.59,7.41L10,6L16,12L10,18L8.59,16.58Z"
1415
+ },
1416
+ chevronDown: {
1417
+ type: "svg",
1418
+ path: "M7.41,8.58L12,13.17L16.59,8.58L18,10L12,16L6,10L7.41,8.58Z"
1419
+ },
1420
+ chevronUp: {
1421
+ type: "svg",
1422
+ path: "M7.41,15.41L12,10.83L16.59,15.41L18,14L12,8L6,14L7.41,15.41Z"
1423
+ },
1424
+ menuDown: {
1425
+ type: "svg",
1426
+ path: "M7,10L12,15L17,10H7Z"
1427
+ },
1428
+ menuUp: {
1429
+ type: "svg",
1430
+ path: "M7,14L12,9L17,14H7Z"
1431
+ },
1432
+ check: {
1433
+ type: "svg",
1434
+ path: "M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z"
1435
+ },
1436
+ alertCircle: {
1437
+ type: "svg",
1438
+ 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"
1439
+ },
1440
+ alert: {
1441
+ type: "svg",
1442
+ path: "M13,14H11V10H13M13,18H11V16H13M1,21H23L12,2L1,21Z"
1443
+ },
1444
+ information: {
1445
+ type: "svg",
1446
+ 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"
1447
+ },
1448
+ close: {
1449
+ type: "svg",
1450
+ 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"
1451
+ },
1452
+ closeCircle: {
1453
+ type: "svg",
1454
+ 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"
1455
+ },
1456
+ eye: {
1457
+ type: "svg",
1458
+ 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"
1459
+ },
1460
+ eyeOff: {
1461
+ type: "svg",
1462
+ 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"
1463
+ }
1464
+ };
1465
+ function getIconAliases() {
1466
+ return defaultIconAliases;
1467
+ }
1468
+ function resolveAlias(name) {
1469
+ return getIconAliases()[name];
1470
+ }
1471
+
1397
1472
  var _sfc_main$6 = vue.defineComponent({
1398
1473
  name: "BIcon",
1399
1474
  props: {
@@ -1402,8 +1477,11 @@
1402
1477
  pack: String,
1403
1478
  icon: {
1404
1479
  type: String,
1405
- required: true
1480
+ required: false,
1481
+ default: void 0
1406
1482
  },
1483
+ /** Key into IconAliases (e.g. "chevronLeft"). Takes precedence over icon/pack. */
1484
+ alias: String,
1407
1485
  size: String,
1408
1486
  customSize: String,
1409
1487
  customClass: String,
@@ -1411,6 +1489,26 @@
1411
1489
  // This is used internally to show both MDI and FA icon
1412
1490
  },
1413
1491
  computed: {
1492
+ resolvedAlias() {
1493
+ var _a;
1494
+ if (!this.alias) return null;
1495
+ return (_a = resolveAlias(this.alias)) != null ? _a : null;
1496
+ },
1497
+ isSvgAlias() {
1498
+ var _a;
1499
+ return ((_a = this.resolvedAlias) == null ? void 0 : _a.type) === "svg";
1500
+ },
1501
+ isComponentAlias() {
1502
+ var _a;
1503
+ return ((_a = this.resolvedAlias) == null ? void 0 : _a.type) === "component";
1504
+ },
1505
+ // Typed accessors used in the template
1506
+ resolvedAliasSvg() {
1507
+ return this.resolvedAlias;
1508
+ },
1509
+ resolvedAliasComponent() {
1510
+ return this.resolvedAlias;
1511
+ },
1414
1512
  iconConfig() {
1415
1513
  const allIcons = getIcons();
1416
1514
  return allIcons[this.newPack];
@@ -1427,7 +1525,8 @@
1427
1525
  * internal icons are always MDI.
1428
1526
  */
1429
1527
  newIcon() {
1430
- return `${this.iconPrefix}${this.getEquivalentIconOf(this.icon)}`;
1528
+ var _a;
1529
+ return `${this.iconPrefix}${this.getEquivalentIconOf((_a = this.icon) != null ? _a : "")}`;
1431
1530
  },
1432
1531
  newPack() {
1433
1532
  return this.pack || config.defaultIconPack;
@@ -1486,6 +1585,8 @@
1486
1585
  }
1487
1586
  });
1488
1587
 
1588
+ const _hoisted_1$6 = ["viewBox"];
1589
+ const _hoisted_2$6 = ["d"];
1489
1590
  function _sfc_render$6(_ctx, _cache, $props, $setup, $data, $options) {
1490
1591
  return vue.openBlock(), vue.createElementBlock(
1491
1592
  "span",
@@ -1493,17 +1594,32 @@
1493
1594
  class: vue.normalizeClass(["icon", [_ctx.newType, _ctx.size]])
1494
1595
  },
1495
1596
  [
1496
- !_ctx.useIconComponent ? (vue.openBlock(), vue.createElementBlock(
1597
+ _ctx.isSvgAlias ? (vue.openBlock(), vue.createElementBlock("svg", {
1598
+ key: 0,
1599
+ viewBox: _ctx.resolvedAliasSvg.viewBox || "0 0 24 24",
1600
+ xmlns: "http://www.w3.org/2000/svg",
1601
+ class: vue.normalizeClass(_ctx.customClass),
1602
+ "aria-hidden": "true"
1603
+ }, [
1604
+ vue.createElementVNode("path", {
1605
+ fill: "currentColor",
1606
+ d: _ctx.resolvedAliasSvg.path
1607
+ }, null, 8, _hoisted_2$6)
1608
+ ], 10, _hoisted_1$6)) : _ctx.isComponentAlias ? (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(_ctx.resolvedAliasComponent.component), {
1609
+ key: 1,
1610
+ icon: _ctx.resolvedAliasComponent.icon,
1611
+ class: vue.normalizeClass(_ctx.customClass)
1612
+ }, null, 8, ["icon", "class"])) : !_ctx.useIconComponent ? (vue.openBlock(), vue.createElementBlock(
1497
1613
  "i",
1498
1614
  {
1499
- key: 0,
1615
+ key: 2,
1500
1616
  class: vue.normalizeClass([_ctx.newPack, _ctx.newIcon, _ctx.newCustomSize, _ctx.customClass])
1501
1617
  },
1502
1618
  null,
1503
1619
  2
1504
1620
  /* CLASS */
1505
1621
  )) : (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(_ctx.useIconComponent), {
1506
- key: 1,
1622
+ key: 3,
1507
1623
  icon: [_ctx.newPack, _ctx.newIcon],
1508
1624
  size: _ctx.newCustomSize,
1509
1625
  class: vue.normalizeClass([_ctx.customClass])