bge-ui 1.3.3 → 1.3.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.
package/dist/index.js CHANGED
@@ -8116,7 +8116,7 @@ const usePopper = function(triggerReference, suppliedOptions = {}) {
8116
8116
  h(
8117
8117
  "div",
8118
8118
  {
8119
- class: `bge-popper-wrapper ${options.customClass}`,
8119
+ class: `bge-popper-wrapper${options.customClass ? " " + options.customClass : ""}`,
8120
8120
  ref: tooltipReference,
8121
8121
  style: createTooltipStyle.value,
8122
8122
  onMouseleave: () => {
@@ -10536,6 +10536,10 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
10536
10536
  type: Boolean,
10537
10537
  default: true
10538
10538
  },
10539
+ tooltipCustomClass: {
10540
+ type: String,
10541
+ default: ""
10542
+ },
10539
10543
  formatTooltip: {
10540
10544
  type: Function,
10541
10545
  default: void 0
@@ -10675,7 +10679,7 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
10675
10679
  ref: tooltip,
10676
10680
  placement: "top",
10677
10681
  size: "mini",
10678
- class: "asdasd"
10682
+ customClass: __props.tooltipCustomClass
10679
10683
  }, {
10680
10684
  content: withCtx(() => [
10681
10685
  createTextVNode(toDisplayString(__props.formatTooltip ? __props.formatTooltip(__props.modelValue) : `${__props.modelValue}%`), 1)
@@ -10688,7 +10692,7 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
10688
10692
  }, null, 32)
10689
10693
  ]),
10690
10694
  _: 1
10691
- }, 512)) : (openBlock(), createElementBlock("div", {
10695
+ }, 8, ["customClass"])) : (openBlock(), createElementBlock("div", {
10692
10696
  key: 1,
10693
10697
  class: "slider-button",
10694
10698
  onMouseover: _cache[2] || (_cache[2] = ($event) => state.hovering = true),
@@ -11,6 +11,10 @@ declare const _default: import("vue").DefineComponent<{
11
11
  type: BooleanConstructor;
12
12
  default: boolean;
13
13
  };
14
+ tooltipCustomClass: {
15
+ type: StringConstructor;
16
+ default: string;
17
+ };
14
18
  formatTooltip: {
15
19
  type: FunctionConstructor;
16
20
  default: undefined;
@@ -33,6 +37,10 @@ declare const _default: import("vue").DefineComponent<{
33
37
  type: BooleanConstructor;
34
38
  default: boolean;
35
39
  };
40
+ tooltipCustomClass: {
41
+ type: StringConstructor;
42
+ default: string;
43
+ };
36
44
  formatTooltip: {
37
45
  type: FunctionConstructor;
38
46
  default: undefined;
@@ -46,6 +54,7 @@ declare const _default: import("vue").DefineComponent<{
46
54
  modelValue: number;
47
55
  showToolTip: boolean;
48
56
  marks: Record<string, any>;
57
+ tooltipCustomClass: string;
49
58
  formatTooltip: Function;
50
59
  }, {}>;
51
60
  export default _default;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bge-ui",
3
- "version": "1.3.3",
3
+ "version": "1.3.4",
4
4
  "description": "",
5
5
  "type": "module",
6
6
  "main": "./src/index.ts",
@@ -6,7 +6,7 @@
6
6
  @touchstart="onButtonDown"
7
7
  @mousedown="onButtonDown"
8
8
  >
9
- <ui-tooltip v-if="showToolTip" ref="tooltip" placement="top" size="mini" class="asdasd">
9
+ <ui-tooltip v-if="showToolTip" ref="tooltip" placement="top" size="mini" :customClass="tooltipCustomClass">
10
10
  <template #content>
11
11
  {{ formatTooltip ? formatTooltip(modelValue) : `${modelValue}%` }}
12
12
  </template>
@@ -41,6 +41,10 @@ const props = defineProps({
41
41
  type: Boolean,
42
42
  default: true
43
43
  },
44
+ tooltipCustomClass: {
45
+ type: String,
46
+ default: ''
47
+ },
44
48
  formatTooltip: {
45
49
  type: Function,
46
50
  default: undefined
@@ -432,7 +432,7 @@ const usePopper = function (triggerReference, suppliedOptions: Options = {}) {
432
432
  h(
433
433
  'div',
434
434
  {
435
- class: `bge-popper-wrapper ${options.customClass}`,
435
+ class: `bge-popper-wrapper${options.customClass ? ' ' + options.customClass : ''}`,
436
436
  ref: tooltipReference,
437
437
  style: createTooltipStyle.value,
438
438
  onMouseleave: () => {