buefy 3.0.3 → 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 (109) hide show
  1. package/dist/buefy.d.ts +18 -0
  2. package/dist/buefy.esm.js +134 -119
  3. package/dist/buefy.esm.min.js +2 -2
  4. package/dist/buefy.js +134 -119
  5. package/dist/buefy.min.js +2 -2
  6. package/dist/cjs/dialog.js +131 -116
  7. package/dist/components/autocomplete/index.js +1 -1
  8. package/dist/components/autocomplete/index.min.js +1 -1
  9. package/dist/components/breadcrumb/index.js +1 -1
  10. package/dist/components/breadcrumb/index.min.js +1 -1
  11. package/dist/components/button/index.js +1 -1
  12. package/dist/components/button/index.min.js +1 -1
  13. package/dist/components/carousel/index.js +1 -1
  14. package/dist/components/carousel/index.min.js +1 -1
  15. package/dist/components/checkbox/index.js +1 -1
  16. package/dist/components/checkbox/index.min.js +1 -1
  17. package/dist/components/clockpicker/index.js +1 -1
  18. package/dist/components/clockpicker/index.min.js +1 -1
  19. package/dist/components/collapse/index.js +1 -1
  20. package/dist/components/collapse/index.min.js +1 -1
  21. package/dist/components/colorpicker/index.js +1 -1
  22. package/dist/components/colorpicker/index.min.js +1 -1
  23. package/dist/components/datepicker/index.js +1 -1
  24. package/dist/components/datepicker/index.min.js +1 -1
  25. package/dist/components/datetimepicker/index.js +1 -1
  26. package/dist/components/datetimepicker/index.min.js +1 -1
  27. package/dist/components/dialog/index.js +132 -117
  28. package/dist/components/dialog/index.min.js +2 -2
  29. package/dist/components/dropdown/index.js +1 -1
  30. package/dist/components/dropdown/index.min.js +1 -1
  31. package/dist/components/field/index.js +1 -1
  32. package/dist/components/field/index.min.js +1 -1
  33. package/dist/components/icon/index.js +1 -1
  34. package/dist/components/icon/index.min.js +1 -1
  35. package/dist/components/image/index.js +1 -1
  36. package/dist/components/image/index.min.js +1 -1
  37. package/dist/components/input/index.js +1 -1
  38. package/dist/components/input/index.min.js +1 -1
  39. package/dist/components/loading/index.js +1 -1
  40. package/dist/components/loading/index.min.js +1 -1
  41. package/dist/components/menu/index.js +1 -1
  42. package/dist/components/menu/index.min.js +1 -1
  43. package/dist/components/message/index.js +1 -1
  44. package/dist/components/message/index.min.js +1 -1
  45. package/dist/components/modal/index.js +1 -1
  46. package/dist/components/modal/index.min.js +1 -1
  47. package/dist/components/navbar/index.js +1 -1
  48. package/dist/components/navbar/index.min.js +1 -1
  49. package/dist/components/notification/index.js +1 -1
  50. package/dist/components/notification/index.min.js +1 -1
  51. package/dist/components/numberinput/index.js +1 -1
  52. package/dist/components/numberinput/index.min.js +1 -1
  53. package/dist/components/pagination/index.js +1 -1
  54. package/dist/components/pagination/index.min.js +1 -1
  55. package/dist/components/progress/index.js +1 -1
  56. package/dist/components/progress/index.min.js +1 -1
  57. package/dist/components/radio/index.js +1 -1
  58. package/dist/components/radio/index.min.js +1 -1
  59. package/dist/components/rate/index.js +1 -1
  60. package/dist/components/rate/index.min.js +1 -1
  61. package/dist/components/select/index.js +1 -1
  62. package/dist/components/select/index.min.js +1 -1
  63. package/dist/components/sidebar/index.js +1 -1
  64. package/dist/components/sidebar/index.min.js +1 -1
  65. package/dist/components/skeleton/index.js +1 -1
  66. package/dist/components/skeleton/index.min.js +1 -1
  67. package/dist/components/slider/index.js +1 -1
  68. package/dist/components/slider/index.min.js +1 -1
  69. package/dist/components/snackbar/index.js +1 -1
  70. package/dist/components/snackbar/index.min.js +1 -1
  71. package/dist/components/steps/index.js +1 -1
  72. package/dist/components/steps/index.min.js +1 -1
  73. package/dist/components/switch/index.js +1 -1
  74. package/dist/components/switch/index.min.js +1 -1
  75. package/dist/components/table/index.js +1 -1
  76. package/dist/components/table/index.min.js +1 -1
  77. package/dist/components/tabs/index.js +1 -1
  78. package/dist/components/tabs/index.min.js +1 -1
  79. package/dist/components/tag/index.js +1 -1
  80. package/dist/components/tag/index.min.js +1 -1
  81. package/dist/components/taginput/index.js +1 -1
  82. package/dist/components/taginput/index.min.js +1 -1
  83. package/dist/components/timepicker/index.js +1 -1
  84. package/dist/components/timepicker/index.min.js +1 -1
  85. package/dist/components/toast/index.js +1 -1
  86. package/dist/components/toast/index.min.js +1 -1
  87. package/dist/components/tooltip/index.js +1 -1
  88. package/dist/components/tooltip/index.min.js +1 -1
  89. package/dist/components/upload/index.js +1 -1
  90. package/dist/components/upload/index.min.js +1 -1
  91. package/dist/css/buefy.css +67 -57
  92. package/dist/css/buefy.css.map +1 -1
  93. package/dist/css/buefy.min.css +1 -1
  94. package/dist/css/versions/buefy-no-reset.css +67 -57
  95. package/dist/css/versions/buefy-no-reset.css.map +1 -1
  96. package/dist/css/versions/buefy-no-reset.min.css +1 -1
  97. package/dist/css/versions/buefy-standalone.css +168 -52
  98. package/dist/css/versions/buefy-standalone.css.map +1 -1
  99. package/dist/css/versions/buefy-standalone.min.css +1 -1
  100. package/dist/esm/dialog.js +131 -116
  101. package/package.json +2 -2
  102. package/src/components/dialog/Dialog.vue +10 -2
  103. package/src/scss/components/_checkbox.scss +4 -4
  104. package/src/scss/components/_datepicker.scss +1 -1
  105. package/src/scss/components/_dropdown.scss +1 -0
  106. package/src/scss/components/_form.scss +31 -31
  107. package/src/scss/components/_radio.scss +9 -9
  108. package/src/scss/components/_switch.scss +28 -5
  109. package/src/scss/components/_table.scss +2 -1
package/dist/buefy.d.ts CHANGED
@@ -3553,6 +3553,14 @@ datetimeCreator: DatetimeCreator;
3553
3553
  }, {}>;
3554
3554
 
3555
3555
  export declare const BDialog: DefineComponent< {
3556
+ customClass: {
3557
+ type: StringConstructor;
3558
+ default: string;
3559
+ };
3560
+ customContentClass: {
3561
+ type: StringConstructor;
3562
+ default: string;
3563
+ };
3556
3564
  title: StringConstructor;
3557
3565
  message: (ArrayConstructor | StringConstructor)[];
3558
3566
  icon: StringConstructor;
@@ -3796,6 +3804,14 @@ renderOnMounted: boolean;
3796
3804
  }, {}>, {
3797
3805
  confirm: (value: string, dialog: any) => true;
3798
3806
  }, string, PublicProps, Readonly<ExtractPropTypes< {
3807
+ customClass: {
3808
+ type: StringConstructor;
3809
+ default: string;
3810
+ };
3811
+ customContentClass: {
3812
+ type: StringConstructor;
3813
+ default: string;
3814
+ };
3799
3815
  title: StringConstructor;
3800
3816
  message: (ArrayConstructor | StringConstructor)[];
3801
3817
  icon: StringConstructor;
@@ -3839,6 +3855,8 @@ default: string;
3839
3855
  onConfirm?: ((value: string, dialog: any) => any) | undefined;
3840
3856
  }, {
3841
3857
  type: string;
3858
+ customClass: string;
3859
+ customContentClass: string;
3842
3860
  hasIcon: boolean;
3843
3861
  confirmText: string;
3844
3862
  cancelText: string;
package/dist/buefy.esm.js CHANGED
@@ -1,4 +1,4 @@
1
- /*! Buefy v3.0.3 | MIT License | github.com/buefy/buefy */
1
+ /*! Buefy v3.0.4 | MIT License | github.com/buefy/buefy */
2
2
  import { Fragment, Comment, Text, Static, inject, defineComponent, h, resolveComponent, createElementBlock, openBlock, normalizeClass, createBlock, renderSlot, createCommentVNode, createTextVNode, toDisplayString, withCtx, createVNode, renderList, resolveDynamicComponent, mergeProps, withDirectives, vModelDynamic, vModelText, withKeys, withModifiers, Transition, createElementVNode, normalizeStyle, vShow, normalizeProps, guardReactiveProps, vModelCheckbox, resolveDirective, createSlots, vModelSelect, toHandlers, createApp, vModelRadio, toHandlerKey, camelize, toRaw } from 'vue';
3
3
 
4
4
  var __defProp$d = Object.defineProperty;
@@ -6845,7 +6845,7 @@ const _hoisted_9$4 = ["id"];
6845
6845
  const _hoisted_10$3 = ["d"];
6846
6846
  const _hoisted_11$3 = { class: "colorpicker-triangle-slider-hue" };
6847
6847
  const _hoisted_12$3 = ["width", "height", "clip-path"];
6848
- const _hoisted_13$2 = ["x", "height"];
6848
+ const _hoisted_13$1 = ["x", "height"];
6849
6849
  const _hoisted_14$1 = ["aria-valuenow"];
6850
6850
  const _hoisted_15$1 = ["d", "fill"];
6851
6851
  const _hoisted_16$1 = ["d", "fill"];
@@ -6936,7 +6936,7 @@ function _sfc_render$L(_ctx, _cache, $props, $setup, $data, $options) {
6936
6936
  onMousedown: _cache[5] || (_cache[5] = withModifiers((...args) => _ctx.startMouseCapture && _ctx.startMouseCapture(...args), ["prevent"])),
6937
6937
  onTouchstart: _cache[6] || (_cache[6] = withModifiers((...args) => _ctx.startMouseCapture && _ctx.startMouseCapture(...args), ["prevent"]))
6938
6938
  }, null, 44, _hoisted_14$1)
6939
- ], 8, _hoisted_13$2))
6939
+ ], 8, _hoisted_13$1))
6940
6940
  ],
6941
6941
  4
6942
6942
  /* STYLE */
@@ -11715,6 +11715,14 @@ const Dialog$1 = defineComponent({
11715
11715
  },
11716
11716
  extends: Modal,
11717
11717
  props: {
11718
+ customClass: {
11719
+ type: String,
11720
+ default: ""
11721
+ },
11722
+ customContentClass: {
11723
+ type: String,
11724
+ default: ""
11725
+ },
11718
11726
  title: String,
11719
11727
  message: [String, Array],
11720
11728
  icon: String,
@@ -11885,27 +11893,26 @@ const Dialog$1 = defineComponent({
11885
11893
  });
11886
11894
 
11887
11895
  const _hoisted_1$t = ["role", "aria-modal"];
11888
- const _hoisted_2$o = { class: "modal-card animation-content" };
11889
- const _hoisted_3$d = {
11896
+ const _hoisted_2$o = {
11890
11897
  key: 0,
11891
11898
  class: "modal-card-head"
11892
11899
  };
11893
- const _hoisted_4$9 = { class: "modal-card-title" };
11894
- const _hoisted_5$7 = { class: "media" };
11895
- const _hoisted_6$5 = {
11900
+ const _hoisted_3$d = { class: "modal-card-title" };
11901
+ const _hoisted_4$9 = { class: "media" };
11902
+ const _hoisted_5$7 = {
11896
11903
  key: 0,
11897
11904
  class: "media-left"
11898
11905
  };
11899
- const _hoisted_7$4 = { class: "media-content" };
11900
- const _hoisted_8$4 = ["innerHTML"];
11901
- const _hoisted_9$3 = {
11906
+ const _hoisted_6$5 = { class: "media-content" };
11907
+ const _hoisted_7$4 = ["innerHTML"];
11908
+ const _hoisted_8$4 = {
11902
11909
  key: 0,
11903
11910
  class: "field"
11904
11911
  };
11905
- const _hoisted_10$2 = { class: "control" };
11906
- const _hoisted_11$2 = { class: "help is-danger" };
11907
- const _hoisted_12$2 = { class: "modal-card-foot" };
11908
- const _hoisted_13$1 = { class: "buttons" };
11912
+ const _hoisted_9$3 = { class: "control" };
11913
+ const _hoisted_10$2 = { class: "help is-danger" };
11914
+ const _hoisted_11$2 = { class: "modal-card-foot" };
11915
+ const _hoisted_12$2 = { class: "buttons" };
11909
11916
  function _sfc_render$y(_ctx, _cache, $props, $setup, $data, $options) {
11910
11917
  const _component_b_icon = resolveComponent("b-icon");
11911
11918
  const _component_b_button = resolveComponent("b-button");
@@ -11914,7 +11921,7 @@ function _sfc_render$y(_ctx, _cache, $props, $setup, $data, $options) {
11914
11921
  default: withCtx(() => [
11915
11922
  _ctx.isActive ? withDirectives((openBlock(), createElementBlock("div", {
11916
11923
  key: 0,
11917
- class: normalizeClass(["dialog modal is-active", _ctx.dialogClass]),
11924
+ class: normalizeClass(["dialog modal is-active", [_ctx.dialogClass, _ctx.customClass]]),
11918
11925
  role: _ctx.ariaRole,
11919
11926
  "aria-modal": _ctx.ariaModal
11920
11927
  }, [
@@ -11922,116 +11929,124 @@ function _sfc_render$y(_ctx, _cache, $props, $setup, $data, $options) {
11922
11929
  class: "modal-background",
11923
11930
  onClick: _cache[0] || (_cache[0] = ($event) => _ctx.cancel("outside"))
11924
11931
  }),
11925
- createElementVNode("div", _hoisted_2$o, [
11926
- _ctx.title ? (openBlock(), createElementBlock("header", _hoisted_3$d, [
11932
+ createElementVNode(
11933
+ "div",
11934
+ {
11935
+ class: normalizeClass(["modal-card animation-content", _ctx.customContentClass])
11936
+ },
11937
+ [
11938
+ _ctx.title ? (openBlock(), createElementBlock("header", _hoisted_2$o, [
11939
+ createElementVNode(
11940
+ "p",
11941
+ _hoisted_3$d,
11942
+ toDisplayString(_ctx.title),
11943
+ 1
11944
+ /* TEXT */
11945
+ )
11946
+ ])) : createCommentVNode("v-if", true),
11927
11947
  createElementVNode(
11928
- "p",
11929
- _hoisted_4$9,
11930
- toDisplayString(_ctx.title),
11931
- 1
11932
- /* TEXT */
11933
- )
11934
- ])) : createCommentVNode("v-if", true),
11935
- createElementVNode(
11936
- "section",
11937
- {
11938
- class: normalizeClass(["modal-card-body", { "is-titleless": !_ctx.title, "is-flex": _ctx.hasIcon }])
11939
- },
11940
- [
11941
- createElementVNode("div", _hoisted_5$7, [
11942
- _ctx.hasIcon && (_ctx.icon || _ctx.iconByType) ? (openBlock(), createElementBlock("div", _hoisted_6$5, [
11943
- createVNode(_component_b_icon, {
11944
- icon: _ctx.icon ? _ctx.icon : _ctx.iconByType,
11945
- pack: _ctx.iconPack,
11946
- type: _ctx.type,
11947
- both: !_ctx.icon,
11948
- size: "is-large"
11949
- }, null, 8, ["icon", "pack", "type", "both"])
11950
- ])) : createCommentVNode("v-if", true),
11951
- createElementVNode("div", _hoisted_7$4, [
11952
- createElementVNode("p", null, [
11953
- _ctx.$slots.default ? renderSlot(_ctx.$slots, "default", { key: 0 }) : (openBlock(), createElementBlock(
11954
- Fragment,
11955
- { key: 1 },
11956
- [
11957
- createCommentVNode(" eslint-disable-next-line vue/no-v-html "),
11958
- createElementVNode("div", { innerHTML: _ctx.message }, null, 8, _hoisted_8$4)
11959
- ],
11960
- 64
11961
- /* STABLE_FRAGMENT */
11962
- ))
11963
- ]),
11964
- _ctx.hasInput ? (openBlock(), createElementBlock("div", _hoisted_9$3, [
11965
- createElementVNode("div", _hoisted_10$2, [
11966
- withDirectives(createElementVNode(
11967
- "input",
11968
- mergeProps({
11969
- "onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => _ctx.prompt = $event),
11970
- class: ["input", { "is-danger": _ctx.validationMessage }],
11971
- ref: "input"
11972
- }, _ctx.safeInputAttrs, {
11973
- onCompositionstart: _cache[2] || (_cache[2] = ($event) => _ctx.isCompositing = true),
11974
- onCompositionend: _cache[3] || (_cache[3] = ($event) => _ctx.isCompositing = false),
11975
- onKeydown: _cache[4] || (_cache[4] = withKeys((...args) => _ctx.confirm && _ctx.confirm(...args), ["enter"]))
11976
- }),
11977
- null,
11978
- 16
11979
- /* FULL_PROPS */
11980
- ), [
11981
- [vModelDynamic, _ctx.prompt]
11982
- ])
11948
+ "section",
11949
+ {
11950
+ class: normalizeClass(["modal-card-body", { "is-titleless": !_ctx.title, "is-flex": _ctx.hasIcon }])
11951
+ },
11952
+ [
11953
+ createElementVNode("div", _hoisted_4$9, [
11954
+ _ctx.hasIcon && (_ctx.icon || _ctx.iconByType) ? (openBlock(), createElementBlock("div", _hoisted_5$7, [
11955
+ createVNode(_component_b_icon, {
11956
+ icon: _ctx.icon ? _ctx.icon : _ctx.iconByType,
11957
+ pack: _ctx.iconPack,
11958
+ type: _ctx.type,
11959
+ both: !_ctx.icon,
11960
+ size: "is-large"
11961
+ }, null, 8, ["icon", "pack", "type", "both"])
11962
+ ])) : createCommentVNode("v-if", true),
11963
+ createElementVNode("div", _hoisted_6$5, [
11964
+ createElementVNode("p", null, [
11965
+ _ctx.$slots.default ? renderSlot(_ctx.$slots, "default", { key: 0 }) : (openBlock(), createElementBlock(
11966
+ Fragment,
11967
+ { key: 1 },
11968
+ [
11969
+ createCommentVNode(" eslint-disable-next-line vue/no-v-html "),
11970
+ createElementVNode("div", { innerHTML: _ctx.message }, null, 8, _hoisted_7$4)
11971
+ ],
11972
+ 64
11973
+ /* STABLE_FRAGMENT */
11974
+ ))
11983
11975
  ]),
11984
- createElementVNode(
11985
- "p",
11986
- _hoisted_11$2,
11987
- toDisplayString(_ctx.validationMessage),
11976
+ _ctx.hasInput ? (openBlock(), createElementBlock("div", _hoisted_8$4, [
11977
+ createElementVNode("div", _hoisted_9$3, [
11978
+ withDirectives(createElementVNode(
11979
+ "input",
11980
+ mergeProps({
11981
+ "onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => _ctx.prompt = $event),
11982
+ class: ["input", { "is-danger": _ctx.validationMessage }],
11983
+ ref: "input"
11984
+ }, _ctx.safeInputAttrs, {
11985
+ onCompositionstart: _cache[2] || (_cache[2] = ($event) => _ctx.isCompositing = true),
11986
+ onCompositionend: _cache[3] || (_cache[3] = ($event) => _ctx.isCompositing = false),
11987
+ onKeydown: _cache[4] || (_cache[4] = withKeys((...args) => _ctx.confirm && _ctx.confirm(...args), ["enter"]))
11988
+ }),
11989
+ null,
11990
+ 16
11991
+ /* FULL_PROPS */
11992
+ ), [
11993
+ [vModelDynamic, _ctx.prompt]
11994
+ ])
11995
+ ]),
11996
+ createElementVNode(
11997
+ "p",
11998
+ _hoisted_10$2,
11999
+ toDisplayString(_ctx.validationMessage),
12000
+ 1
12001
+ /* TEXT */
12002
+ )
12003
+ ])) : createCommentVNode("v-if", true)
12004
+ ])
12005
+ ])
12006
+ ],
12007
+ 2
12008
+ /* CLASS */
12009
+ ),
12010
+ createElementVNode("footer", _hoisted_11$2, [
12011
+ createElementVNode("div", _hoisted_12$2, [
12012
+ _ctx.showCancel ? (openBlock(), createBlock(_component_b_button, {
12013
+ key: 0,
12014
+ ref: "cancelButton",
12015
+ disabled: _ctx.isLoading,
12016
+ onClick: _cache[5] || (_cache[5] = ($event) => _ctx.cancel("button"))
12017
+ }, {
12018
+ default: withCtx(() => [
12019
+ createTextVNode(
12020
+ toDisplayString(_ctx.cancelText),
11988
12021
  1
11989
12022
  /* TEXT */
11990
12023
  )
11991
- ])) : createCommentVNode("v-if", true)
11992
- ])
12024
+ ]),
12025
+ _: 1
12026
+ /* STABLE */
12027
+ }, 8, ["disabled"])) : createCommentVNode("v-if", true),
12028
+ createVNode(_component_b_button, {
12029
+ type: _ctx.type,
12030
+ ref: "confirmButton",
12031
+ loading: _ctx.isLoading,
12032
+ onClick: _ctx.confirm
12033
+ }, {
12034
+ default: withCtx(() => [
12035
+ createTextVNode(
12036
+ toDisplayString(_ctx.confirmText),
12037
+ 1
12038
+ /* TEXT */
12039
+ )
12040
+ ]),
12041
+ _: 1
12042
+ /* STABLE */
12043
+ }, 8, ["type", "loading", "onClick"])
11993
12044
  ])
11994
- ],
11995
- 2
11996
- /* CLASS */
11997
- ),
11998
- createElementVNode("footer", _hoisted_12$2, [
11999
- createElementVNode("div", _hoisted_13$1, [
12000
- _ctx.showCancel ? (openBlock(), createBlock(_component_b_button, {
12001
- key: 0,
12002
- ref: "cancelButton",
12003
- disabled: _ctx.isLoading,
12004
- onClick: _cache[5] || (_cache[5] = ($event) => _ctx.cancel("button"))
12005
- }, {
12006
- default: withCtx(() => [
12007
- createTextVNode(
12008
- toDisplayString(_ctx.cancelText),
12009
- 1
12010
- /* TEXT */
12011
- )
12012
- ]),
12013
- _: 1
12014
- /* STABLE */
12015
- }, 8, ["disabled"])) : createCommentVNode("v-if", true),
12016
- createVNode(_component_b_button, {
12017
- type: _ctx.type,
12018
- ref: "confirmButton",
12019
- loading: _ctx.isLoading,
12020
- onClick: _ctx.confirm
12021
- }, {
12022
- default: withCtx(() => [
12023
- createTextVNode(
12024
- toDisplayString(_ctx.confirmText),
12025
- 1
12026
- /* TEXT */
12027
- )
12028
- ]),
12029
- _: 1
12030
- /* STABLE */
12031
- }, 8, ["type", "loading", "onClick"])
12032
12045
  ])
12033
- ])
12034
- ])
12046
+ ],
12047
+ 2
12048
+ /* CLASS */
12049
+ )
12035
12050
  ], 10, _hoisted_1$t)), [
12036
12051
  [_directive_trap_focus, _ctx.trapFocus]
12037
12052
  ]) : createCommentVNode("v-if", true)