@kiva/kv-components 6.31.0 → 6.31.1
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/vue/KvTooltip.css +1 -1
- package/dist/vue/KvTooltip.js +51 -30
- package/package.json +2 -2
package/dist/vue/KvTooltip.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.tooltip-pane[data-v-
|
|
1
|
+
.tooltip-pane[data-v-d21ce029],.tooltip-arrow[data-v-d21ce029]{box-shadow:0 4px 12px #00000014}.tooltip-arrow[data-v-d21ce029]{margin:.5rem;border-color:rgba(var(--bg-primary),var(--tw-bg-opacity, 1))}.tooltip-pane[x-placement^=top][data-v-d21ce029]{margin-bottom:.5rem}.tooltip-pane[x-placement^=top] .tooltip-arrow[data-v-d21ce029]{border-width:8px 8px 0 8px;border-left-color:transparent;border-right-color:transparent;border-bottom-color:transparent;left:calc(50% - 8px);bottom:-.5rem;margin-top:0;margin-bottom:0}.tooltip-pane[x-placement^=bottom][data-v-d21ce029]{margin-top:.5rem}.tooltip-pane[x-placement^=bottom] .tooltip-arrow[data-v-d21ce029]{border-width:0 8px 8px 8px;border-left-color:transparent;border-right-color:transparent;border-top-color:transparent;left:calc(50% - 8px);top:-.5rem;margin-bottom:0;margin-top:0}.tooltip-pane[x-placement^=right][data-v-d21ce029]{margin-left:.5rem}.tooltip-pane[x-placement^=right] .tooltip-arrow[data-v-d21ce029]{border-width:8px 8px 8px 0;border-left-color:transparent;border-top-color:transparent;border-bottom-color:transparent;top:calc(50% - 8px);left:-.5rem;margin-left:0;margin-right:0}.tooltip-pane[x-placement^=left][data-v-d21ce029]{margin-right:.5rem}.tooltip-pane[x-placement^=left] .tooltip-arrow[data-v-d21ce029]{border-width:8px 0 8px 8px;border-top-color:transparent;border-right-color:transparent;border-bottom-color:transparent;top:calc(50% - 8px);right:-.5rem;margin-left:0;margin-right:0}
|
package/dist/vue/KvTooltip.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { toRefs as
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
4
|
-
import
|
|
1
|
+
import { toRefs as g, ref as T, computed as y, resolveComponent as i, openBlock as p, createBlock as L, withCtx as d, createVNode as M, createElementVNode as n, createElementBlock as S, renderSlot as a, createCommentVNode as x } from "vue";
|
|
2
|
+
import { defaultTheme as l, greenLightTheme as m, greenDarkTheme as s, marigoldLightTheme as c, stoneLightTheme as f, stoneDarkTheme as h, mintTheme as u, darkTheme as v } from "@kiva/kv-tokens";
|
|
3
|
+
import D from "./KvPopper.js";
|
|
4
|
+
import b from "./KvThemeProvider.js";
|
|
5
5
|
import "./KvTooltip.css";
|
|
6
|
-
import
|
|
7
|
-
const
|
|
6
|
+
import E from "../_virtual/_plugin-vue_export-helper.js";
|
|
7
|
+
const G = {
|
|
8
8
|
name: "KvTooltip",
|
|
9
9
|
components: {
|
|
10
|
-
KvPopper:
|
|
11
|
-
KvThemeProvider:
|
|
10
|
+
KvPopper: D,
|
|
11
|
+
KvThemeProvider: b
|
|
12
12
|
},
|
|
13
13
|
// TODO: Add prop for tooltip placement, Currently defaults to 'top' but will flip to bottom when constrained
|
|
14
14
|
props: {
|
|
@@ -22,43 +22,64 @@ const M = {
|
|
|
22
22
|
type: String,
|
|
23
23
|
default: "default",
|
|
24
24
|
validator(e) {
|
|
25
|
-
return [
|
|
25
|
+
return [
|
|
26
|
+
"default",
|
|
27
|
+
"ecoGreenLight",
|
|
28
|
+
"ecoGreenDark",
|
|
29
|
+
"ecoLightMarigold",
|
|
30
|
+
"ecoStoneLight",
|
|
31
|
+
"ecoStoneDark",
|
|
32
|
+
"mint",
|
|
33
|
+
"dark"
|
|
34
|
+
].indexOf(e) !== -1;
|
|
26
35
|
}
|
|
27
36
|
}
|
|
28
37
|
},
|
|
29
38
|
setup(e) {
|
|
30
39
|
const {
|
|
31
40
|
theme: t
|
|
32
|
-
} =
|
|
41
|
+
} = g(e), r = T({
|
|
33
42
|
preventOverflow: {
|
|
34
43
|
padding: 10
|
|
35
44
|
}
|
|
36
|
-
}), o =
|
|
37
|
-
|
|
38
|
-
|
|
45
|
+
}), o = y(() => ({
|
|
46
|
+
default: l,
|
|
47
|
+
ecoGreenLight: m,
|
|
48
|
+
ecoGreenDark: s,
|
|
49
|
+
ecoLightMarigold: c,
|
|
50
|
+
ecoStoneLight: f,
|
|
51
|
+
ecoStoneDark: h,
|
|
52
|
+
mint: u,
|
|
53
|
+
dark: v
|
|
39
54
|
})[t.value]);
|
|
40
55
|
return {
|
|
41
|
-
|
|
42
|
-
|
|
56
|
+
defaultTheme: l,
|
|
57
|
+
greenLightTheme: m,
|
|
58
|
+
greenDarkTheme: s,
|
|
59
|
+
marigoldLightTheme: c,
|
|
60
|
+
stoneLightTheme: f,
|
|
61
|
+
stoneDarkTheme: h,
|
|
62
|
+
mintTheme: u,
|
|
63
|
+
darkTheme: v,
|
|
43
64
|
popperModifiers: r,
|
|
44
65
|
themeStyle: o
|
|
45
66
|
};
|
|
46
67
|
}
|
|
47
|
-
},
|
|
68
|
+
}, K = {
|
|
48
69
|
class: "tw-p-2.5",
|
|
49
70
|
style: { "max-width": "250px" }
|
|
50
|
-
},
|
|
71
|
+
}, $ = {
|
|
51
72
|
key: 0,
|
|
52
73
|
class: "tw-text-primary tw-font-medium tw-mb-1.5"
|
|
53
|
-
},
|
|
54
|
-
function
|
|
55
|
-
const
|
|
56
|
-
return
|
|
74
|
+
}, B = { class: "tw-text-primary" };
|
|
75
|
+
function C(e, t, r, o, w, N) {
|
|
76
|
+
const _ = i("kv-popper"), k = i("kv-theme-provider");
|
|
77
|
+
return p(), L(k, {
|
|
57
78
|
theme: o.themeStyle,
|
|
58
79
|
class: "kv-tailwind"
|
|
59
80
|
}, {
|
|
60
81
|
default: d(() => [
|
|
61
|
-
|
|
82
|
+
M(_, {
|
|
62
83
|
controller: r.controller,
|
|
63
84
|
"popper-modifiers": o.popperModifiers,
|
|
64
85
|
"popper-placement": "top",
|
|
@@ -66,12 +87,12 @@ function S(e, t, r, o, m, $) {
|
|
|
66
87
|
class: "tooltip-pane tw-absolute tw-bg-primary tw-rounded tw-z-popover"
|
|
67
88
|
}, {
|
|
68
89
|
default: d(() => [
|
|
69
|
-
n("div",
|
|
70
|
-
e.$slots.title ? (
|
|
71
|
-
|
|
72
|
-
])) :
|
|
73
|
-
n("div",
|
|
74
|
-
|
|
90
|
+
n("div", K, [
|
|
91
|
+
e.$slots.title ? (p(), S("div", $, [
|
|
92
|
+
a(e.$slots, "title", {}, void 0, !0)
|
|
93
|
+
])) : x("", !0),
|
|
94
|
+
n("div", B, [
|
|
95
|
+
a(e.$slots, "default", {}, void 0, !0)
|
|
75
96
|
])
|
|
76
97
|
]),
|
|
77
98
|
t[0] || (t[0] = n("div", {
|
|
@@ -85,7 +106,7 @@ function S(e, t, r, o, m, $) {
|
|
|
85
106
|
_: 3
|
|
86
107
|
}, 8, ["theme"]);
|
|
87
108
|
}
|
|
88
|
-
const
|
|
109
|
+
const I = /* @__PURE__ */ E(G, [["render", C], ["__scopeId", "data-v-d21ce029"]]);
|
|
89
110
|
export {
|
|
90
|
-
|
|
111
|
+
I as default
|
|
91
112
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kiva/kv-components",
|
|
3
|
-
"version": "6.31.
|
|
3
|
+
"version": "6.31.1",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
@@ -111,5 +111,5 @@
|
|
|
111
111
|
"embla-carousel-fade",
|
|
112
112
|
"popper.js"
|
|
113
113
|
],
|
|
114
|
-
"gitHead": "
|
|
114
|
+
"gitHead": "ade611094ba3c7a917f99986e6c568b412564648"
|
|
115
115
|
}
|