buefy 3.0.2 → 3.0.4

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 (209) hide show
  1. package/dist/buefy.d.ts +37 -4
  2. package/dist/buefy.esm.js +173 -129
  3. package/dist/buefy.esm.min.js +2 -2
  4. package/dist/buefy.js +178 -127
  5. package/dist/buefy.min.js +2 -2
  6. package/dist/cjs/autocomplete.js +1 -1
  7. package/dist/cjs/breadcrumb.js +1 -1
  8. package/dist/cjs/button.js +1 -1
  9. package/dist/cjs/carousel.js +1 -1
  10. package/dist/cjs/checkbox.js +1 -1
  11. package/dist/cjs/clockpicker.js +1 -1
  12. package/dist/cjs/collapse.js +1 -1
  13. package/dist/cjs/colorpicker.js +2 -2
  14. package/dist/cjs/config.js +7 -1
  15. package/dist/cjs/datepicker.js +1 -1
  16. package/dist/cjs/datetimepicker.js +1 -1
  17. package/dist/cjs/dialog.js +138 -118
  18. package/dist/cjs/dropdown.js +1 -1
  19. package/dist/cjs/field.js +1 -1
  20. package/dist/cjs/icon.js +1 -1
  21. package/dist/cjs/image.js +1 -1
  22. package/dist/cjs/{index-DiQy3SCb.js → index-SLOXD6k3.js} +1 -1
  23. package/dist/cjs/index.js +10 -3
  24. package/dist/cjs/input.js +1 -1
  25. package/dist/cjs/loading.js +7 -2
  26. package/dist/cjs/menu.js +1 -1
  27. package/dist/cjs/message.js +1 -1
  28. package/dist/cjs/modal.js +7 -2
  29. package/dist/cjs/navbar.js +1 -1
  30. package/dist/cjs/notification.js +7 -2
  31. package/dist/cjs/numberinput.js +1 -1
  32. package/dist/cjs/pagination.js +1 -1
  33. package/dist/cjs/{plugins-DbyYGVpp.js → plugins-BWKpXmCr.js} +2 -1
  34. package/dist/cjs/progress.js +1 -1
  35. package/dist/cjs/radio.js +1 -1
  36. package/dist/cjs/rate.js +1 -1
  37. package/dist/cjs/select.js +1 -1
  38. package/dist/cjs/sidebar.js +1 -1
  39. package/dist/cjs/skeleton.js +1 -1
  40. package/dist/cjs/slider.js +1 -1
  41. package/dist/cjs/snackbar.js +7 -2
  42. package/dist/cjs/steps.js +1 -1
  43. package/dist/cjs/switch.js +1 -1
  44. package/dist/cjs/table.js +1 -1
  45. package/dist/cjs/tabs.js +1 -1
  46. package/dist/cjs/tag.js +1 -1
  47. package/dist/cjs/taginput.js +1 -1
  48. package/dist/cjs/timepicker.js +1 -1
  49. package/dist/cjs/toast.js +7 -2
  50. package/dist/cjs/tooltip.js +1 -1
  51. package/dist/cjs/upload.js +1 -1
  52. package/dist/components/autocomplete/index.js +1 -1
  53. package/dist/components/autocomplete/index.min.js +1 -1
  54. package/dist/components/breadcrumb/index.js +1 -1
  55. package/dist/components/breadcrumb/index.min.js +1 -1
  56. package/dist/components/button/index.js +1 -1
  57. package/dist/components/button/index.min.js +1 -1
  58. package/dist/components/carousel/index.js +1 -1
  59. package/dist/components/carousel/index.min.js +1 -1
  60. package/dist/components/checkbox/index.js +1 -1
  61. package/dist/components/checkbox/index.min.js +1 -1
  62. package/dist/components/clockpicker/index.js +1 -1
  63. package/dist/components/clockpicker/index.min.js +1 -1
  64. package/dist/components/collapse/index.js +1 -1
  65. package/dist/components/collapse/index.min.js +1 -1
  66. package/dist/components/colorpicker/index.js +1 -1
  67. package/dist/components/colorpicker/index.min.js +1 -1
  68. package/dist/components/datepicker/index.js +1 -1
  69. package/dist/components/datepicker/index.min.js +1 -1
  70. package/dist/components/datetimepicker/index.js +1 -1
  71. package/dist/components/datetimepicker/index.min.js +1 -1
  72. package/dist/components/dialog/index.js +140 -119
  73. package/dist/components/dialog/index.min.js +2 -2
  74. package/dist/components/dropdown/index.js +1 -1
  75. package/dist/components/dropdown/index.min.js +1 -1
  76. package/dist/components/field/index.js +1 -1
  77. package/dist/components/field/index.min.js +1 -1
  78. package/dist/components/icon/index.js +1 -1
  79. package/dist/components/icon/index.min.js +1 -1
  80. package/dist/components/image/index.js +1 -1
  81. package/dist/components/image/index.min.js +1 -1
  82. package/dist/components/input/index.js +1 -1
  83. package/dist/components/input/index.min.js +1 -1
  84. package/dist/components/loading/index.js +9 -3
  85. package/dist/components/loading/index.min.js +2 -2
  86. package/dist/components/menu/index.js +1 -1
  87. package/dist/components/menu/index.min.js +1 -1
  88. package/dist/components/message/index.js +1 -1
  89. package/dist/components/message/index.min.js +1 -1
  90. package/dist/components/modal/index.js +9 -3
  91. package/dist/components/modal/index.min.js +2 -2
  92. package/dist/components/navbar/index.js +1 -1
  93. package/dist/components/navbar/index.min.js +1 -1
  94. package/dist/components/notification/index.js +9 -3
  95. package/dist/components/notification/index.min.js +2 -2
  96. package/dist/components/numberinput/index.js +1 -1
  97. package/dist/components/numberinput/index.min.js +1 -1
  98. package/dist/components/pagination/index.js +1 -1
  99. package/dist/components/pagination/index.min.js +1 -1
  100. package/dist/components/progress/index.js +1 -1
  101. package/dist/components/progress/index.min.js +1 -1
  102. package/dist/components/radio/index.js +1 -1
  103. package/dist/components/radio/index.min.js +1 -1
  104. package/dist/components/rate/index.js +1 -1
  105. package/dist/components/rate/index.min.js +1 -1
  106. package/dist/components/select/index.js +1 -1
  107. package/dist/components/select/index.min.js +1 -1
  108. package/dist/components/sidebar/index.js +1 -1
  109. package/dist/components/sidebar/index.min.js +1 -1
  110. package/dist/components/skeleton/index.js +1 -1
  111. package/dist/components/skeleton/index.min.js +1 -1
  112. package/dist/components/slider/index.js +1 -1
  113. package/dist/components/slider/index.min.js +1 -1
  114. package/dist/components/snackbar/index.js +9 -3
  115. package/dist/components/snackbar/index.min.js +2 -2
  116. package/dist/components/steps/index.js +1 -1
  117. package/dist/components/steps/index.min.js +1 -1
  118. package/dist/components/switch/index.js +1 -1
  119. package/dist/components/switch/index.min.js +1 -1
  120. package/dist/components/table/index.js +1 -1
  121. package/dist/components/table/index.min.js +1 -1
  122. package/dist/components/tabs/index.js +1 -1
  123. package/dist/components/tabs/index.min.js +1 -1
  124. package/dist/components/tag/index.js +1 -1
  125. package/dist/components/tag/index.min.js +1 -1
  126. package/dist/components/taginput/index.js +1 -1
  127. package/dist/components/taginput/index.min.js +1 -1
  128. package/dist/components/timepicker/index.js +1 -1
  129. package/dist/components/timepicker/index.min.js +1 -1
  130. package/dist/components/toast/index.js +9 -3
  131. package/dist/components/toast/index.min.js +2 -2
  132. package/dist/components/tooltip/index.js +1 -1
  133. package/dist/components/tooltip/index.min.js +1 -1
  134. package/dist/components/upload/index.js +1 -1
  135. package/dist/components/upload/index.min.js +1 -1
  136. package/dist/css/buefy.css +70 -61
  137. package/dist/css/buefy.css.map +1 -1
  138. package/dist/css/buefy.min.css +1 -1
  139. package/dist/css/versions/buefy-no-reset.css +70 -61
  140. package/dist/css/versions/buefy-no-reset.css.map +1 -1
  141. package/dist/css/versions/buefy-no-reset.min.css +1 -1
  142. package/dist/css/versions/buefy-standalone.css +171 -56
  143. package/dist/css/versions/buefy-standalone.css.map +1 -1
  144. package/dist/css/versions/buefy-standalone.min.css +1 -1
  145. package/dist/esm/autocomplete.js +1 -1
  146. package/dist/esm/breadcrumb.js +1 -1
  147. package/dist/esm/button.js +1 -1
  148. package/dist/esm/carousel.js +1 -1
  149. package/dist/esm/checkbox.js +1 -1
  150. package/dist/esm/clockpicker.js +1 -1
  151. package/dist/esm/collapse.js +1 -1
  152. package/dist/esm/colorpicker.js +2 -2
  153. package/dist/esm/config.js +6 -2
  154. package/dist/esm/datepicker.js +1 -1
  155. package/dist/esm/datetimepicker.js +1 -1
  156. package/dist/esm/dialog.js +139 -120
  157. package/dist/esm/dropdown.js +1 -1
  158. package/dist/esm/field.js +1 -1
  159. package/dist/esm/icon.js +1 -1
  160. package/dist/esm/image.js +1 -1
  161. package/dist/esm/{index-CQegEsxK.js → index-BE58-KfV.js} +1 -1
  162. package/dist/esm/index.js +12 -11
  163. package/dist/esm/input.js +1 -1
  164. package/dist/esm/loading.js +8 -4
  165. package/dist/esm/menu.js +1 -1
  166. package/dist/esm/message.js +1 -1
  167. package/dist/esm/modal.js +8 -4
  168. package/dist/esm/navbar.js +1 -1
  169. package/dist/esm/notification.js +8 -4
  170. package/dist/esm/numberinput.js +1 -1
  171. package/dist/esm/pagination.js +1 -1
  172. package/dist/esm/{plugins-B172kuKE.js → plugins-1tLsuIZF.js} +2 -1
  173. package/dist/esm/progress.js +1 -1
  174. package/dist/esm/radio.js +1 -1
  175. package/dist/esm/rate.js +1 -1
  176. package/dist/esm/select.js +1 -1
  177. package/dist/esm/sidebar.js +1 -1
  178. package/dist/esm/skeleton.js +1 -1
  179. package/dist/esm/slider.js +1 -1
  180. package/dist/esm/snackbar.js +8 -4
  181. package/dist/esm/steps.js +1 -1
  182. package/dist/esm/switch.js +1 -1
  183. package/dist/esm/table.js +1 -1
  184. package/dist/esm/tabs.js +1 -1
  185. package/dist/esm/tag.js +1 -1
  186. package/dist/esm/taginput.js +1 -1
  187. package/dist/esm/timepicker.js +1 -1
  188. package/dist/esm/toast.js +8 -4
  189. package/dist/esm/tooltip.js +1 -1
  190. package/dist/esm/upload.js +1 -1
  191. package/package.json +1 -2
  192. package/src/components/dialog/Dialog.vue +10 -2
  193. package/src/components/dialog/index.ts +9 -3
  194. package/src/components/loading/index.ts +9 -3
  195. package/src/components/modal/index.ts +9 -3
  196. package/src/components/notification/index.ts +9 -3
  197. package/src/components/snackbar/index.ts +9 -3
  198. package/src/components/toast/index.ts +9 -3
  199. package/src/index.ts +9 -9
  200. package/src/scss/buefy.scss +0 -1
  201. package/src/scss/components/_checkbox.scss +4 -4
  202. package/src/scss/components/_datepicker.scss +1 -1
  203. package/src/scss/components/_dropdown.scss +7 -6
  204. package/src/scss/components/_form.scss +31 -31
  205. package/src/scss/components/_radio.scss +9 -9
  206. package/src/scss/components/_switch.scss +28 -5
  207. package/src/scss/components/_table.scss +2 -1
  208. package/src/utils/ConfigComponent.ts +13 -1
  209. package/src/utils/plugins.ts +3 -2
@@ -1,5 +1,5 @@
1
1
  import { B as BAutocomplete } from './Autocomplete-CZ8DmXsB.js';
2
- import { a as registerComponent } from './plugins-B172kuKE.js';
2
+ import { a as registerComponent } from './plugins-1tLsuIZF.js';
3
3
  import 'vue';
4
4
  import './helpers.js';
5
5
  import './CompatFallthroughMixin-C8LPuwDr.js';
@@ -2,7 +2,7 @@ import { defineComponent, createElementBlock, openBlock, normalizeClass, createE
2
2
  import { c as config } from './config-CKuo-p6e.js';
3
3
  import { _ as _export_sfc } from './_plugin-vue_export-helper-OJRSZE6i.js';
4
4
  import { C as CompatFallthroughMixin } from './CompatFallthroughMixin-C8LPuwDr.js';
5
- import { a as registerComponent } from './plugins-B172kuKE.js';
5
+ import { a as registerComponent } from './plugins-1tLsuIZF.js';
6
6
 
7
7
  var _sfc_main$1 = defineComponent({
8
8
  name: "BBreadcrumb",
@@ -1,5 +1,5 @@
1
1
  import { B as BButton } from './Button-DyUYShTZ.js';
2
- import { a as registerComponent } from './plugins-B172kuKE.js';
2
+ import { a as registerComponent } from './plugins-1tLsuIZF.js';
3
3
  import 'vue';
4
4
  import './Icon-DPyGDeRK.js';
5
5
  import './config-CKuo-p6e.js';
@@ -5,7 +5,7 @@ import { P as ProviderParentMixin, S as Sorted, I as InjectedChildMixin, a as So
5
5
  import { mod, bound, sign } from './helpers.js';
6
6
  import { _ as _export_sfc } from './_plugin-vue_export-helper-OJRSZE6i.js';
7
7
  import { I as Image } from './Image-DhX-4hlV.js';
8
- import { a as registerComponent } from './plugins-B172kuKE.js';
8
+ import { a as registerComponent } from './plugins-1tLsuIZF.js';
9
9
 
10
10
  var _sfc_main$2 = defineComponent({
11
11
  name: "BCarousel",
@@ -2,7 +2,7 @@ import { B as BCheckbox } from './Checkbox-KUMz0sfA.js';
2
2
  import { defineComponent, createElementBlock, openBlock, normalizeClass, createElementVNode, withKeys, withModifiers, renderSlot, withDirectives, vModelCheckbox } from 'vue';
3
3
  import { C as CheckRadioMixin } from './CheckRadioMixin-DSD_rjC8.js';
4
4
  import { _ as _export_sfc } from './_plugin-vue_export-helper-OJRSZE6i.js';
5
- import { a as registerComponent } from './plugins-B172kuKE.js';
5
+ import { a as registerComponent } from './plugins-1tLsuIZF.js';
6
6
 
7
7
  var _sfc_main = defineComponent({
8
8
  name: "BCheckboxButton",
@@ -4,7 +4,7 @@ import { c as config } from './config-CKuo-p6e.js';
4
4
  import { B as BDropdown } from './Dropdown-CGTYVyoL.js';
5
5
  import { B as BInput } from './Input-C4L520az.js';
6
6
  import { _ as _export_sfc } from './_plugin-vue_export-helper-OJRSZE6i.js';
7
- import { a as registerComponent } from './plugins-B172kuKE.js';
7
+ import { a as registerComponent } from './plugins-1tLsuIZF.js';
8
8
  import './CompatFallthroughMixin-C8LPuwDr.js';
9
9
  import './FormElementMixin-Dd_wkBN5.js';
10
10
  import './helpers.js';
@@ -1,5 +1,5 @@
1
1
  import { defineComponent, h, withDirectives, Transition, vShow } from 'vue';
2
- import { a as registerComponent } from './plugins-B172kuKE.js';
2
+ import { a as registerComponent } from './plugins-1tLsuIZF.js';
3
3
 
4
4
  const COLLAPSE_POSITIONS = ["is-top", "is-bottom"];
5
5
  var _sfc_main = defineComponent({
@@ -1,5 +1,5 @@
1
- export { a as BColorpicker, P as default } from './index-CQegEsxK.js';
2
- import './plugins-B172kuKE.js';
1
+ export { a as BColorpicker, P as default } from './index-BE58-KfV.js';
2
+ import './plugins-1tLsuIZF.js';
3
3
  import 'vue';
4
4
  import './FormElementMixin-Dd_wkBN5.js';
5
5
  import './config-CKuo-p6e.js';
@@ -1,7 +1,11 @@
1
1
  import { s as setOptions, c as config } from './config-CKuo-p6e.js';
2
2
  import { merge } from './helpers.js';
3
- import 'vue';
3
+ import { inject } from 'vue';
4
4
 
5
+ const configInjectionKey = Symbol("Buefy Config Component");
6
+ function useConfigComponent() {
7
+ return inject(configInjectionKey);
8
+ }
5
9
  var ConfigComponent = {
6
10
  getOptions() {
7
11
  return config;
@@ -11,4 +15,4 @@ var ConfigComponent = {
11
15
  }
12
16
  };
13
17
 
14
- export { ConfigComponent as default };
18
+ export { configInjectionKey, ConfigComponent as default, useConfigComponent };
@@ -1,5 +1,5 @@
1
1
  import { B as BDatepicker } from './Datepicker-Bl8Wfdkn.js';
2
- import { a as registerComponent } from './plugins-B172kuKE.js';
2
+ import { a as registerComponent } from './plugins-1tLsuIZF.js';
3
3
  import 'vue';
4
4
  import './CompatFallthroughMixin-C8LPuwDr.js';
5
5
  import './config-CKuo-p6e.js';
@@ -6,7 +6,7 @@ import { B as BInput } from './Input-C4L520az.js';
6
6
  import { B as BDatepicker } from './Datepicker-Bl8Wfdkn.js';
7
7
  import { T as Timepicker } from './Timepicker-DnkqnOBT.js';
8
8
  import { _ as _export_sfc } from './_plugin-vue_export-helper-OJRSZE6i.js';
9
- import { a as registerComponent } from './plugins-B172kuKE.js';
9
+ import { a as registerComponent } from './plugins-1tLsuIZF.js';
10
10
  import './Icon-DPyGDeRK.js';
11
11
  import './CompatFallthroughMixin-C8LPuwDr.js';
12
12
  import './Dropdown-CGTYVyoL.js';
@@ -1,4 +1,4 @@
1
- import { defineComponent, resolveComponent, resolveDirective, createBlock, openBlock, Transition, withCtx, withDirectives, createCommentVNode, createElementBlock, normalizeClass, createElementVNode, toDisplayString, createVNode, renderSlot, Fragment, mergeProps, withKeys, vModelDynamic, createTextVNode, createApp, h } from 'vue';
1
+ import { defineComponent, resolveComponent, resolveDirective, createBlock, openBlock, Transition, withCtx, withDirectives, createCommentVNode, createElementBlock, normalizeClass, createElementVNode, toDisplayString, createVNode, renderSlot, Fragment, mergeProps, withKeys, vModelDynamic, createTextVNode, inject, createApp, h } from 'vue';
2
2
  import { d as directive } from './trapFocus-KHP_kCNE.js';
3
3
  import { B as BIcon } from './Icon-DPyGDeRK.js';
4
4
  import { M as Modal } from './Modal-EiR_KNGZ.js';
@@ -6,7 +6,7 @@ import { B as BButton } from './Button-DyUYShTZ.js';
6
6
  import { c as config } from './config-CKuo-p6e.js';
7
7
  import { removeElement, getComponentFromVNode, copyAppContext } from './helpers.js';
8
8
  import { _ as _export_sfc } from './_plugin-vue_export-helper-OJRSZE6i.js';
9
- import { a as registerComponent, r as registerComponentProgrammatic } from './plugins-B172kuKE.js';
9
+ import { a as registerComponent, r as registerComponentProgrammatic } from './plugins-1tLsuIZF.js';
10
10
 
11
11
  var __defProp$1 = Object.defineProperty;
12
12
  var __getOwnPropSymbols$1 = Object.getOwnPropertySymbols;
@@ -35,6 +35,14 @@ const Dialog$1 = defineComponent({
35
35
  },
36
36
  extends: Modal,
37
37
  props: {
38
+ customClass: {
39
+ type: String,
40
+ default: ""
41
+ },
42
+ customContentClass: {
43
+ type: String,
44
+ default: ""
45
+ },
38
46
  title: String,
39
47
  message: [String, Array],
40
48
  icon: String,
@@ -205,27 +213,26 @@ const Dialog$1 = defineComponent({
205
213
  });
206
214
 
207
215
  const _hoisted_1 = ["role", "aria-modal"];
208
- const _hoisted_2 = { class: "modal-card animation-content" };
209
- const _hoisted_3 = {
216
+ const _hoisted_2 = {
210
217
  key: 0,
211
218
  class: "modal-card-head"
212
219
  };
213
- const _hoisted_4 = { class: "modal-card-title" };
214
- const _hoisted_5 = { class: "media" };
215
- const _hoisted_6 = {
220
+ const _hoisted_3 = { class: "modal-card-title" };
221
+ const _hoisted_4 = { class: "media" };
222
+ const _hoisted_5 = {
216
223
  key: 0,
217
224
  class: "media-left"
218
225
  };
219
- const _hoisted_7 = { class: "media-content" };
220
- const _hoisted_8 = ["innerHTML"];
221
- const _hoisted_9 = {
226
+ const _hoisted_6 = { class: "media-content" };
227
+ const _hoisted_7 = ["innerHTML"];
228
+ const _hoisted_8 = {
222
229
  key: 0,
223
230
  class: "field"
224
231
  };
225
- const _hoisted_10 = { class: "control" };
226
- const _hoisted_11 = { class: "help is-danger" };
227
- const _hoisted_12 = { class: "modal-card-foot" };
228
- const _hoisted_13 = { class: "buttons" };
232
+ const _hoisted_9 = { class: "control" };
233
+ const _hoisted_10 = { class: "help is-danger" };
234
+ const _hoisted_11 = { class: "modal-card-foot" };
235
+ const _hoisted_12 = { class: "buttons" };
229
236
  function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
230
237
  const _component_b_icon = resolveComponent("b-icon");
231
238
  const _component_b_button = resolveComponent("b-button");
@@ -234,7 +241,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
234
241
  default: withCtx(() => [
235
242
  _ctx.isActive ? withDirectives((openBlock(), createElementBlock("div", {
236
243
  key: 0,
237
- class: normalizeClass(["dialog modal is-active", _ctx.dialogClass]),
244
+ class: normalizeClass(["dialog modal is-active", [_ctx.dialogClass, _ctx.customClass]]),
238
245
  role: _ctx.ariaRole,
239
246
  "aria-modal": _ctx.ariaModal
240
247
  }, [
@@ -242,116 +249,124 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
242
249
  class: "modal-background",
243
250
  onClick: _cache[0] || (_cache[0] = ($event) => _ctx.cancel("outside"))
244
251
  }),
245
- createElementVNode("div", _hoisted_2, [
246
- _ctx.title ? (openBlock(), createElementBlock("header", _hoisted_3, [
252
+ createElementVNode(
253
+ "div",
254
+ {
255
+ class: normalizeClass(["modal-card animation-content", _ctx.customContentClass])
256
+ },
257
+ [
258
+ _ctx.title ? (openBlock(), createElementBlock("header", _hoisted_2, [
259
+ createElementVNode(
260
+ "p",
261
+ _hoisted_3,
262
+ toDisplayString(_ctx.title),
263
+ 1
264
+ /* TEXT */
265
+ )
266
+ ])) : createCommentVNode("v-if", true),
247
267
  createElementVNode(
248
- "p",
249
- _hoisted_4,
250
- toDisplayString(_ctx.title),
251
- 1
252
- /* TEXT */
253
- )
254
- ])) : createCommentVNode("v-if", true),
255
- createElementVNode(
256
- "section",
257
- {
258
- class: normalizeClass(["modal-card-body", { "is-titleless": !_ctx.title, "is-flex": _ctx.hasIcon }])
259
- },
260
- [
261
- createElementVNode("div", _hoisted_5, [
262
- _ctx.hasIcon && (_ctx.icon || _ctx.iconByType) ? (openBlock(), createElementBlock("div", _hoisted_6, [
263
- createVNode(_component_b_icon, {
264
- icon: _ctx.icon ? _ctx.icon : _ctx.iconByType,
265
- pack: _ctx.iconPack,
266
- type: _ctx.type,
267
- both: !_ctx.icon,
268
- size: "is-large"
269
- }, null, 8, ["icon", "pack", "type", "both"])
270
- ])) : createCommentVNode("v-if", true),
271
- createElementVNode("div", _hoisted_7, [
272
- createElementVNode("p", null, [
273
- _ctx.$slots.default ? renderSlot(_ctx.$slots, "default", { key: 0 }) : (openBlock(), createElementBlock(
274
- Fragment,
275
- { key: 1 },
276
- [
277
- createCommentVNode(" eslint-disable-next-line vue/no-v-html "),
278
- createElementVNode("div", { innerHTML: _ctx.message }, null, 8, _hoisted_8)
279
- ],
280
- 64
281
- /* STABLE_FRAGMENT */
282
- ))
283
- ]),
284
- _ctx.hasInput ? (openBlock(), createElementBlock("div", _hoisted_9, [
285
- createElementVNode("div", _hoisted_10, [
286
- withDirectives(createElementVNode(
287
- "input",
288
- mergeProps({
289
- "onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => _ctx.prompt = $event),
290
- class: ["input", { "is-danger": _ctx.validationMessage }],
291
- ref: "input"
292
- }, _ctx.safeInputAttrs, {
293
- onCompositionstart: _cache[2] || (_cache[2] = ($event) => _ctx.isCompositing = true),
294
- onCompositionend: _cache[3] || (_cache[3] = ($event) => _ctx.isCompositing = false),
295
- onKeydown: _cache[4] || (_cache[4] = withKeys((...args) => _ctx.confirm && _ctx.confirm(...args), ["enter"]))
296
- }),
297
- null,
298
- 16
299
- /* FULL_PROPS */
300
- ), [
301
- [vModelDynamic, _ctx.prompt]
302
- ])
268
+ "section",
269
+ {
270
+ class: normalizeClass(["modal-card-body", { "is-titleless": !_ctx.title, "is-flex": _ctx.hasIcon }])
271
+ },
272
+ [
273
+ createElementVNode("div", _hoisted_4, [
274
+ _ctx.hasIcon && (_ctx.icon || _ctx.iconByType) ? (openBlock(), createElementBlock("div", _hoisted_5, [
275
+ createVNode(_component_b_icon, {
276
+ icon: _ctx.icon ? _ctx.icon : _ctx.iconByType,
277
+ pack: _ctx.iconPack,
278
+ type: _ctx.type,
279
+ both: !_ctx.icon,
280
+ size: "is-large"
281
+ }, null, 8, ["icon", "pack", "type", "both"])
282
+ ])) : createCommentVNode("v-if", true),
283
+ createElementVNode("div", _hoisted_6, [
284
+ createElementVNode("p", null, [
285
+ _ctx.$slots.default ? renderSlot(_ctx.$slots, "default", { key: 0 }) : (openBlock(), createElementBlock(
286
+ Fragment,
287
+ { key: 1 },
288
+ [
289
+ createCommentVNode(" eslint-disable-next-line vue/no-v-html "),
290
+ createElementVNode("div", { innerHTML: _ctx.message }, null, 8, _hoisted_7)
291
+ ],
292
+ 64
293
+ /* STABLE_FRAGMENT */
294
+ ))
303
295
  ]),
304
- createElementVNode(
305
- "p",
306
- _hoisted_11,
307
- toDisplayString(_ctx.validationMessage),
296
+ _ctx.hasInput ? (openBlock(), createElementBlock("div", _hoisted_8, [
297
+ createElementVNode("div", _hoisted_9, [
298
+ withDirectives(createElementVNode(
299
+ "input",
300
+ mergeProps({
301
+ "onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => _ctx.prompt = $event),
302
+ class: ["input", { "is-danger": _ctx.validationMessage }],
303
+ ref: "input"
304
+ }, _ctx.safeInputAttrs, {
305
+ onCompositionstart: _cache[2] || (_cache[2] = ($event) => _ctx.isCompositing = true),
306
+ onCompositionend: _cache[3] || (_cache[3] = ($event) => _ctx.isCompositing = false),
307
+ onKeydown: _cache[4] || (_cache[4] = withKeys((...args) => _ctx.confirm && _ctx.confirm(...args), ["enter"]))
308
+ }),
309
+ null,
310
+ 16
311
+ /* FULL_PROPS */
312
+ ), [
313
+ [vModelDynamic, _ctx.prompt]
314
+ ])
315
+ ]),
316
+ createElementVNode(
317
+ "p",
318
+ _hoisted_10,
319
+ toDisplayString(_ctx.validationMessage),
320
+ 1
321
+ /* TEXT */
322
+ )
323
+ ])) : createCommentVNode("v-if", true)
324
+ ])
325
+ ])
326
+ ],
327
+ 2
328
+ /* CLASS */
329
+ ),
330
+ createElementVNode("footer", _hoisted_11, [
331
+ createElementVNode("div", _hoisted_12, [
332
+ _ctx.showCancel ? (openBlock(), createBlock(_component_b_button, {
333
+ key: 0,
334
+ ref: "cancelButton",
335
+ disabled: _ctx.isLoading,
336
+ onClick: _cache[5] || (_cache[5] = ($event) => _ctx.cancel("button"))
337
+ }, {
338
+ default: withCtx(() => [
339
+ createTextVNode(
340
+ toDisplayString(_ctx.cancelText),
308
341
  1
309
342
  /* TEXT */
310
343
  )
311
- ])) : createCommentVNode("v-if", true)
312
- ])
344
+ ]),
345
+ _: 1
346
+ /* STABLE */
347
+ }, 8, ["disabled"])) : createCommentVNode("v-if", true),
348
+ createVNode(_component_b_button, {
349
+ type: _ctx.type,
350
+ ref: "confirmButton",
351
+ loading: _ctx.isLoading,
352
+ onClick: _ctx.confirm
353
+ }, {
354
+ default: withCtx(() => [
355
+ createTextVNode(
356
+ toDisplayString(_ctx.confirmText),
357
+ 1
358
+ /* TEXT */
359
+ )
360
+ ]),
361
+ _: 1
362
+ /* STABLE */
363
+ }, 8, ["type", "loading", "onClick"])
313
364
  ])
314
- ],
315
- 2
316
- /* CLASS */
317
- ),
318
- createElementVNode("footer", _hoisted_12, [
319
- createElementVNode("div", _hoisted_13, [
320
- _ctx.showCancel ? (openBlock(), createBlock(_component_b_button, {
321
- key: 0,
322
- ref: "cancelButton",
323
- disabled: _ctx.isLoading,
324
- onClick: _cache[5] || (_cache[5] = ($event) => _ctx.cancel("button"))
325
- }, {
326
- default: withCtx(() => [
327
- createTextVNode(
328
- toDisplayString(_ctx.cancelText),
329
- 1
330
- /* TEXT */
331
- )
332
- ]),
333
- _: 1
334
- /* STABLE */
335
- }, 8, ["disabled"])) : createCommentVNode("v-if", true),
336
- createVNode(_component_b_button, {
337
- type: _ctx.type,
338
- ref: "confirmButton",
339
- loading: _ctx.isLoading,
340
- onClick: _ctx.confirm
341
- }, {
342
- default: withCtx(() => [
343
- createTextVNode(
344
- toDisplayString(_ctx.confirmText),
345
- 1
346
- /* TEXT */
347
- )
348
- ]),
349
- _: 1
350
- /* STABLE */
351
- }, 8, ["type", "loading", "onClick"])
352
365
  ])
353
- ])
354
- ])
366
+ ],
367
+ 2
368
+ /* CLASS */
369
+ )
355
370
  ], 10, _hoisted_1)), [
356
371
  [_directive_trap_focus, _ctx.trapFocus]
357
372
  ]) : createCommentVNode("v-if", true)
@@ -493,11 +508,15 @@ class DialogProgrammatic {
493
508
  return open(__spreadValues({ hasInput: true }, params), this.app);
494
509
  }
495
510
  }
511
+ const dialogInjectionKey = Symbol("Buefy Dialog");
512
+ function useDialog() {
513
+ return inject(dialogInjectionKey);
514
+ }
496
515
  const Plugin = {
497
516
  install(Vue) {
498
517
  registerComponent(Vue, Dialog);
499
- registerComponentProgrammatic(Vue, "dialog", new DialogProgrammatic(Vue));
518
+ registerComponentProgrammatic(Vue, "dialog", new DialogProgrammatic(Vue), dialogInjectionKey);
500
519
  }
501
520
  };
502
521
 
503
- export { Dialog as BDialog, DialogProgrammatic, Plugin as default };
522
+ export { Dialog as BDialog, DialogProgrammatic, Plugin as default, useDialog };
@@ -1,6 +1,6 @@
1
1
  import { B as BDropdown } from './Dropdown-CGTYVyoL.js';
2
2
  import { B as BDropdownItem } from './DropdownItem-Cn3nM0A3.js';
3
- import { a as registerComponent } from './plugins-B172kuKE.js';
3
+ import { a as registerComponent } from './plugins-1tLsuIZF.js';
4
4
  import 'vue';
5
5
  import './trapFocus-KHP_kCNE.js';
6
6
  import './config-CKuo-p6e.js';
package/dist/esm/field.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { F as Field } from './Field-B7bX_uUg.js';
2
- import { a as registerComponent } from './plugins-B172kuKE.js';
2
+ import { a as registerComponent } from './plugins-1tLsuIZF.js';
3
3
  import 'vue';
4
4
  import './config-CKuo-p6e.js';
5
5
  import './helpers.js';
package/dist/esm/icon.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { B as BIcon } from './Icon-DPyGDeRK.js';
2
- import { a as registerComponent } from './plugins-B172kuKE.js';
2
+ import { a as registerComponent } from './plugins-1tLsuIZF.js';
3
3
  import 'vue';
4
4
  import './config-CKuo-p6e.js';
5
5
  import './helpers.js';
package/dist/esm/image.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { I as Image } from './Image-DhX-4hlV.js';
2
- import { a as registerComponent } from './plugins-B172kuKE.js';
2
+ import { a as registerComponent } from './plugins-1tLsuIZF.js';
3
3
  import 'vue';
4
4
  import './config-CKuo-p6e.js';
5
5
  import './helpers.js';
@@ -9,7 +9,7 @@ import { B as BInput } from './Input-C4L520az.js';
9
9
  import { F as Field } from './Field-B7bX_uUg.js';
10
10
  import { _ as _export_sfc } from './_plugin-vue_export-helper-OJRSZE6i.js';
11
11
  import { T as Tooltip } from './Tooltip-CtDSXAqa.js';
12
- import { a as registerComponent } from './plugins-B172kuKE.js';
12
+ import { a as registerComponent } from './plugins-1tLsuIZF.js';
13
13
 
14
14
  var __defProp = Object.defineProperty;
15
15
  var __pow = Math.pow;
package/dist/esm/index.js CHANGED
@@ -1,5 +1,6 @@
1
1
  import 'vue';
2
- import ConfigComponent from './config.js';
2
+ import ConfigComponent, { configInjectionKey } from './config.js';
3
+ export { useConfigComponent } from './config.js';
3
4
  import Plugin from './autocomplete.js';
4
5
  import Plugin$1 from './breadcrumb.js';
5
6
  export { BBreadcrumb, BBreadcrumbItem } from './breadcrumb.js';
@@ -12,28 +13,28 @@ import Plugin$6 from './collapse.js';
12
13
  export { BCollapse } from './collapse.js';
13
14
  import Plugin$5 from './clockpicker.js';
14
15
  export { BClockpicker } from './clockpicker.js';
15
- import { P as Plugin$7 } from './index-CQegEsxK.js';
16
- export { a as BColorpicker, C as Color } from './index-CQegEsxK.js';
16
+ import { P as Plugin$7 } from './index-BE58-KfV.js';
17
+ export { a as BColorpicker, C as Color } from './index-BE58-KfV.js';
17
18
  import Plugin$8 from './datepicker.js';
18
19
  import Plugin$9 from './datetimepicker.js';
19
20
  export { BDatetimepicker } from './datetimepicker.js';
20
21
  import Plugin$a from './dialog.js';
21
- export { BDialog, DialogProgrammatic } from './dialog.js';
22
+ export { BDialog, DialogProgrammatic, useDialog } from './dialog.js';
22
23
  import Plugin$b from './dropdown.js';
23
24
  import Plugin$c from './field.js';
24
25
  import Plugin$d from './icon.js';
25
26
  import Plugin$e from './image.js';
26
27
  import Plugin$f from './input.js';
27
28
  import Plugin$g from './loading.js';
28
- export { LoadingProgrammatic } from './loading.js';
29
+ export { LoadingProgrammatic, useLoading } from './loading.js';
29
30
  import Plugin$h from './menu.js';
30
31
  export { BMenu, BMenuItem, BMenuList } from './menu.js';
31
32
  import Plugin$i from './message.js';
32
33
  export { BMessage } from './message.js';
33
34
  import Plugin$j from './modal.js';
34
- export { ModalProgrammatic } from './modal.js';
35
+ export { ModalProgrammatic, useModal } from './modal.js';
35
36
  import Plugin$l from './notification.js';
36
- export { BNotification, NotificationProgrammatic } from './notification.js';
37
+ export { BNotification, NotificationProgrammatic, useNotification } from './notification.js';
37
38
  import Plugin$k from './navbar.js';
38
39
  export { BNavbar, BNavbarDropdown, BNavbarItem } from './navbar.js';
39
40
  import Plugin$m from './numberinput.js';
@@ -53,7 +54,7 @@ export { BSidebar } from './sidebar.js';
53
54
  import Plugin$u from './slider.js';
54
55
  export { BSlider, BSliderTick } from './slider.js';
55
56
  import Plugin$v from './snackbar.js';
56
- export { BSnackbar, SnackbarProgrammatic } from './snackbar.js';
57
+ export { BSnackbar, SnackbarProgrammatic, useSnackbar } from './snackbar.js';
57
58
  import Plugin$w from './steps.js';
58
59
  export { BStepItem, BSteps } from './steps.js';
59
60
  import Plugin$x from './switch.js';
@@ -68,14 +69,14 @@ import Plugin$B from './taginput.js';
68
69
  export { BTaginput } from './taginput.js';
69
70
  import Plugin$C from './timepicker.js';
70
71
  import Plugin$D from './toast.js';
71
- export { BToast, ToastProgrammatic } from './toast.js';
72
+ export { BToast, ToastProgrammatic, useToast } from './toast.js';
72
73
  import Plugin$E from './tooltip.js';
73
74
  import Plugin$F from './upload.js';
74
75
  export { BUpload } from './upload.js';
75
76
  import { merge } from './helpers.js';
76
77
  export { bound, copyAppContext, createAbsoluteElement, createNewEvent, escapeRegExpChars, getComponentFromVNode, getMonthNames, getValueByPath, getWeekdayNames, hasFlag, indexOf, isCustomElement, isDefined, isFragment, isMobile, isNil, isTag, isVueComponent, isWebpSupported, matchWithGroups, mod, multiColumnSort, removeDiacriticsFromString, removeElement, sign, toCssWidth, translateTouchAsDragEvent } from './helpers.js';
77
78
  import { s as setOptions, c as config } from './config-CKuo-p6e.js';
78
- import { r as registerComponentProgrammatic } from './plugins-B172kuKE.js';
79
+ import { r as registerComponentProgrammatic } from './plugins-1tLsuIZF.js';
79
80
  export { B as BAutocomplete } from './Autocomplete-CZ8DmXsB.js';
80
81
  export { B as BButton } from './Button-DyUYShTZ.js';
81
82
  export { B as BCheckbox } from './Checkbox-KUMz0sfA.js';
@@ -156,7 +157,7 @@ const Buefy = {
156
157
  install(Vue, options = {}) {
157
158
  setOptions(merge(config, options, true));
158
159
  allComponents.forEach((component) => Vue.use(component));
159
- registerComponentProgrammatic(Vue, "config", ConfigComponent);
160
+ registerComponentProgrammatic(Vue, "config", ConfigComponent, configInjectionKey);
160
161
  Vue.config.globalProperties.$buefy.globalNoticeInterval = void 0;
161
162
  }
162
163
  };
package/dist/esm/input.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { B as BInput } from './Input-C4L520az.js';
2
- import { a as registerComponent } from './plugins-B172kuKE.js';
2
+ import { a as registerComponent } from './plugins-1tLsuIZF.js';
3
3
  import 'vue';
4
4
  import './Icon-DPyGDeRK.js';
5
5
  import './config-CKuo-p6e.js';
@@ -1,7 +1,7 @@
1
- import { createApp, h } from 'vue';
1
+ import { createApp, h, inject } from 'vue';
2
2
  import { B as BLoading } from './Loading-tuQoo6TU.js';
3
3
  import { getComponentFromVNode, copyAppContext } from './helpers.js';
4
- import { a as registerComponent, r as registerComponentProgrammatic } from './plugins-B172kuKE.js';
4
+ import { a as registerComponent, r as registerComponentProgrammatic } from './plugins-1tLsuIZF.js';
5
5
  import './ssr-C7yEpGLm.js';
6
6
  import './_plugin-vue_export-helper-OJRSZE6i.js';
7
7
 
@@ -71,11 +71,15 @@ class LoadingProgrammatic {
71
71
  return vueInstance.mount(container);
72
72
  }
73
73
  }
74
+ const loadingInjectionKey = Symbol("Buefy Loading");
75
+ function useLoading() {
76
+ return inject(loadingInjectionKey);
77
+ }
74
78
  const Plugin = {
75
79
  install(Vue) {
76
80
  registerComponent(Vue, BLoading);
77
- registerComponentProgrammatic(Vue, "loading", new LoadingProgrammatic(Vue));
81
+ registerComponentProgrammatic(Vue, "loading", new LoadingProgrammatic(Vue), loadingInjectionKey);
78
82
  }
79
83
  };
80
84
 
81
- export { BLoading, LoadingProgrammatic, Plugin as default };
85
+ export { BLoading, LoadingProgrammatic, Plugin as default, useLoading };
package/dist/esm/menu.js CHANGED
@@ -3,7 +3,7 @@ import { _ as _export_sfc } from './_plugin-vue_export-helper-OJRSZE6i.js';
3
3
  import { B as BIcon } from './Icon-DPyGDeRK.js';
4
4
  import { c as config } from './config-CKuo-p6e.js';
5
5
  import { C as CompatFallthroughMixin } from './CompatFallthroughMixin-C8LPuwDr.js';
6
- import { a as registerComponent } from './plugins-B172kuKE.js';
6
+ import { a as registerComponent } from './plugins-1tLsuIZF.js';
7
7
  import './helpers.js';
8
8
 
9
9
  var MenuItemContainerMixin = defineComponent({
@@ -3,7 +3,7 @@ import { M as MessageMixin } from './MessageMixin-CQ7LIdvq.js';
3
3
  import { B as BIcon } from './Icon-DPyGDeRK.js';
4
4
  import { P as Progress } from './Progress-BPGTVZgr.js';
5
5
  import { _ as _export_sfc } from './_plugin-vue_export-helper-OJRSZE6i.js';
6
- import { a as registerComponent } from './plugins-B172kuKE.js';
6
+ import { a as registerComponent } from './plugins-1tLsuIZF.js';
7
7
  import './config-CKuo-p6e.js';
8
8
  import './helpers.js';
9
9
 
package/dist/esm/modal.js CHANGED
@@ -1,7 +1,7 @@
1
- import { createApp, h } from 'vue';
1
+ import { createApp, h, inject } from 'vue';
2
2
  import { M as Modal } from './Modal-EiR_KNGZ.js';
3
3
  import { getComponentFromVNode, copyAppContext } from './helpers.js';
4
- import { a as registerComponent, r as registerComponentProgrammatic } from './plugins-B172kuKE.js';
4
+ import { a as registerComponent, r as registerComponentProgrammatic } from './plugins-1tLsuIZF.js';
5
5
  import './trapFocus-KHP_kCNE.js';
6
6
  import './config-CKuo-p6e.js';
7
7
  import './_plugin-vue_export-helper-OJRSZE6i.js';
@@ -87,11 +87,15 @@ class ModalProgrammatic {
87
87
  return vueInstance.mount(container);
88
88
  }
89
89
  }
90
+ const modalInjectionKey = Symbol("Buefy Modal");
91
+ function useModal() {
92
+ return inject(modalInjectionKey);
93
+ }
90
94
  const Plugin = {
91
95
  install(Vue) {
92
96
  registerComponent(Vue, Modal);
93
- registerComponentProgrammatic(Vue, "modal", new ModalProgrammatic(Vue));
97
+ registerComponentProgrammatic(Vue, "modal", new ModalProgrammatic(Vue), modalInjectionKey);
94
98
  }
95
99
  };
96
100
 
97
- export { Modal as BModal, ModalProgrammatic, Plugin as default };
101
+ export { Modal as BModal, ModalProgrammatic, Plugin as default, useModal };