@kiva/kv-components 9.2.0 → 10.0.0
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.
|
@@ -1 +1 @@
|
|
|
1
|
-
.kv-secondary-nav-holder[data-v-
|
|
1
|
+
.kv-secondary-nav-holder[data-v-230060bf]{height:62px}.kv-secondary-nav[data-v-230060bf]{min-height:62px}
|
|
@@ -1,14 +1,11 @@
|
|
|
1
1
|
import x from "./KvSecondaryNav2.js";
|
|
2
|
-
import { resolveComponent as l, openBlock as i, createBlock as d, withCtx as o, createElementVNode as r, normalizeClass as a, createVNode as
|
|
2
|
+
import { resolveComponent as l, openBlock as i, createBlock as d, withCtx as o, createElementVNode as r, normalizeClass as a, createVNode as v, createElementBlock as c, resolveDynamicComponent as s, createTextVNode as m, toDisplayString as _, createCommentVNode as u, Fragment as y, renderList as b } from "vue";
|
|
3
3
|
import "./KvSecondaryNav.css";
|
|
4
4
|
import C from "../_virtual/_plugin-vue_export-helper.js";
|
|
5
5
|
const L = { class: "kv-secondary-nav__links tw-flex tw-flex-col md:tw-flex-row tw-items-center tw-gap-3" };
|
|
6
6
|
function N(p, w, t, e, E, A) {
|
|
7
7
|
const g = l("kv-material-icon"), h = l("kv-page-container"), k = l("kv-theme-provider");
|
|
8
|
-
return i(), d(k, {
|
|
9
|
-
theme: e.themeStyle,
|
|
10
|
-
class: "kv-tailwind"
|
|
11
|
-
}, {
|
|
8
|
+
return i(), d(k, { theme: e.themeStyle }, {
|
|
12
9
|
default: o(() => [
|
|
13
10
|
r("div", {
|
|
14
11
|
class: a(["tw-z-1 tw-w-full kv-secondary-nav-holder relative tw-text-primary", e.bgClass])
|
|
@@ -16,7 +13,7 @@ function N(p, w, t, e, E, A) {
|
|
|
16
13
|
r("div", {
|
|
17
14
|
class: a(["tw-w-full tw-overflow-x-auto kv-secondary-nav tw-absolute tw-top-0 tw-left-0 tw-right-0", e.bgClass])
|
|
18
15
|
}, [
|
|
19
|
-
|
|
16
|
+
v(h, null, {
|
|
20
17
|
default: o(() => [
|
|
21
18
|
r("div", {
|
|
22
19
|
ref: "navInner",
|
|
@@ -26,7 +23,7 @@ function N(p, w, t, e, E, A) {
|
|
|
26
23
|
key: 0,
|
|
27
24
|
class: a(["kv-secondary-nav__heading-container", { "tw-block md:tw-hidden": t.linkAlignment === "left" || t.linkAlignment === "center" }])
|
|
28
25
|
}, [
|
|
29
|
-
(i(), d(
|
|
26
|
+
(i(), d(s(e.hasHeadingLink ? t.headingLink.isExternal ? "a" : "router-link" : "div"), {
|
|
30
27
|
to: e.hasHeadingLink ? t.headingLink.isExternal ? void 0 : t.headingLink.href : void 0,
|
|
31
28
|
href: e.hasHeadingLink && t.headingLink.isExternal ? t.headingLink.href : void 0,
|
|
32
29
|
class: a(["kv-secondary-nav__heading tw-text-h3 tw-text-primary tw-bg-transparent tw-border-none tw-no-underline", {
|
|
@@ -43,7 +40,7 @@ function N(p, w, t, e, E, A) {
|
|
|
43
40
|
class: "kv-secondary-nav__toggle tw-flex md:tw-hidden tw-text-primary tw-bg-transparent tw-border-none tw-cursor-pointer",
|
|
44
41
|
onClick: w[0] || (w[0] = (...n) => e.toggleSubNavigation && e.toggleSubNavigation(...n))
|
|
45
42
|
}, [
|
|
46
|
-
|
|
43
|
+
v(g, {
|
|
47
44
|
icon: e.subNavigationOpen ? e.mdiChevronUp : e.mdiChevronDown
|
|
48
45
|
}, null, 8, ["icon"])
|
|
49
46
|
]),
|
|
@@ -56,7 +53,7 @@ function N(p, w, t, e, E, A) {
|
|
|
56
53
|
key: f,
|
|
57
54
|
class: "kv-secondary-nav__link-item tw-w-full md:tw-w-auto"
|
|
58
55
|
}, [
|
|
59
|
-
(i(), d(
|
|
56
|
+
(i(), d(s(n.isExternal ? "a" : "router-link"), {
|
|
60
57
|
to: n.isExternal ? void 0 : n.href,
|
|
61
58
|
href: n.isExternal ? n.href : void 0,
|
|
62
59
|
class: a([{
|
|
@@ -83,7 +80,7 @@ function N(p, w, t, e, E, A) {
|
|
|
83
80
|
_: 1
|
|
84
81
|
}, 8, ["theme"]);
|
|
85
82
|
}
|
|
86
|
-
const z = /* @__PURE__ */ C(x, [["render", N], ["__scopeId", "data-v-
|
|
83
|
+
const z = /* @__PURE__ */ C(x, [["render", N], ["__scopeId", "data-v-230060bf"]]);
|
|
87
84
|
export {
|
|
88
85
|
z as default
|
|
89
86
|
};
|
package/dist/vue/KvTextLink.js
CHANGED
|
@@ -7,7 +7,7 @@ function u(a, _, t, e, k, x) {
|
|
|
7
7
|
ref: "buttonRef",
|
|
8
8
|
to: t.to,
|
|
9
9
|
disabled: t.state === "disabled",
|
|
10
|
-
class: s(["tw-text-
|
|
10
|
+
class: s(["tw-text-label tw-text-link", {
|
|
11
11
|
"tw-opacity-low tw-pointer-events-none": t.state === "disabled",
|
|
12
12
|
"tw-group tw-inline-flex tw-items-center tw-gap-x-0.5": t.icon
|
|
13
13
|
}]),
|
|
@@ -24,7 +24,7 @@ function u(a, _, t, e, k, x) {
|
|
|
24
24
|
_: 3
|
|
25
25
|
}, 8, ["to", "disabled", "class", "onClick"]);
|
|
26
26
|
}
|
|
27
|
-
const
|
|
27
|
+
const g = /* @__PURE__ */ f(r, [["render", u]]);
|
|
28
28
|
export {
|
|
29
|
-
|
|
29
|
+
g as default
|
|
30
30
|
};
|
package/dist/vue/KvTooltip.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.tooltip-pane[data-v-
|
|
1
|
+
.tooltip-pane[data-v-46d2c93a],.tooltip-arrow[data-v-46d2c93a]{box-shadow:0 4px 12px #00000014}.tooltip-arrow[data-v-46d2c93a]{margin:.5rem}.tooltip-pane--light .tooltip-arrow[data-v-46d2c93a]{border-color:#fff}.tooltip-pane--dark .tooltip-arrow[data-v-46d2c93a]{border-color:#212121}.tooltip-pane--dark[data-v-46d2c93a] .tw-text-link{color:#78c79f}.tooltip-pane--dark[data-v-46d2c93a] .tw-text-link:hover,.tooltip-pane--dark[data-v-46d2c93a] .tw-text-link:focus{color:#fff}.tooltip-pane[x-placement^=top][data-v-46d2c93a]{margin-bottom:.5rem}.tooltip-pane[x-placement^=top] .tooltip-arrow[data-v-46d2c93a]{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-46d2c93a]{margin-top:.5rem}.tooltip-pane[x-placement^=bottom] .tooltip-arrow[data-v-46d2c93a]{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-46d2c93a]{margin-left:.5rem}.tooltip-pane[x-placement^=right] .tooltip-arrow[data-v-46d2c93a]{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-46d2c93a]{margin-right:.5rem}.tooltip-pane[x-placement^=left] .tooltip-arrow[data-v-46d2c93a]{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
|
@@ -46,7 +46,7 @@ function b(e, t, r, o, C, h) {
|
|
|
46
46
|
_: 3
|
|
47
47
|
}, 8, ["controller", "popper-modifiers", "popper-placement", "persistent", "class"]);
|
|
48
48
|
}
|
|
49
|
-
const K = /* @__PURE__ */ k(f, [["render", b], ["__scopeId", "data-v-
|
|
49
|
+
const K = /* @__PURE__ */ k(f, [["render", b], ["__scopeId", "data-v-46d2c93a"]]);
|
|
50
50
|
export {
|
|
51
51
|
K as default
|
|
52
52
|
};
|
package/dist/vue/KvTooltip2.js
CHANGED
|
@@ -1,16 +1,10 @@
|
|
|
1
|
-
import { toRefs as
|
|
2
|
-
import { defaultTheme as
|
|
3
|
-
import
|
|
4
|
-
const
|
|
5
|
-
default: "light",
|
|
6
|
-
ecoGreenLight: "light",
|
|
7
|
-
ecoGreenDark: "dark",
|
|
8
|
-
ecoLightMarigold: "light",
|
|
9
|
-
ecoStoneLight: "light"
|
|
10
|
-
}, L = {
|
|
1
|
+
import { toRefs as g, computed as s, ref as w, watch as y } from "vue";
|
|
2
|
+
import { defaultTheme as h } from "@kiva/kv-tokens";
|
|
3
|
+
import b from "./KvPopper.js";
|
|
4
|
+
const T = ["light", "dark"], S = {
|
|
11
5
|
name: "KvTooltip",
|
|
12
6
|
components: {
|
|
13
|
-
KvPopper:
|
|
7
|
+
KvPopper: b
|
|
14
8
|
},
|
|
15
9
|
props: {
|
|
16
10
|
controller: {
|
|
@@ -37,68 +31,55 @@ const x = ["light", "dark"], p = {
|
|
|
37
31
|
default: !1
|
|
38
32
|
},
|
|
39
33
|
/**
|
|
40
|
-
* Fixed neutral color of the tooltip.
|
|
34
|
+
* Fixed neutral color of the tooltip.
|
|
41
35
|
* Use `dark` over light surfaces and `light` over dark surfaces.
|
|
42
36
|
*/
|
|
43
37
|
variant: {
|
|
44
38
|
type: String,
|
|
45
|
-
default:
|
|
39
|
+
default: "light",
|
|
46
40
|
validator(e) {
|
|
47
|
-
return
|
|
48
|
-
}
|
|
49
|
-
},
|
|
50
|
-
/**
|
|
51
|
-
* @deprecated Use `variant` instead. Themed tooltips are being removed:
|
|
52
|
-
* `ecoGreenDark` maps to `dark`, every other value maps to `light`.
|
|
53
|
-
*/
|
|
54
|
-
theme: {
|
|
55
|
-
type: String,
|
|
56
|
-
default: void 0,
|
|
57
|
-
validator(e) {
|
|
58
|
-
return Object.keys(p).indexOf(e) !== -1;
|
|
41
|
+
return T.indexOf(e) !== -1;
|
|
59
42
|
}
|
|
60
43
|
}
|
|
61
44
|
},
|
|
62
45
|
emits: ["tool-tip-visible", "dismiss"],
|
|
63
|
-
setup(e, { emit:
|
|
46
|
+
setup(e, { emit: n }) {
|
|
64
47
|
const {
|
|
65
|
-
modifiers:
|
|
66
|
-
showTooltip:
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
...s.value,
|
|
48
|
+
modifiers: l,
|
|
49
|
+
showTooltip: a,
|
|
50
|
+
variant: p
|
|
51
|
+
} = g(e), u = s(() => ({
|
|
52
|
+
...l.value,
|
|
71
53
|
preventOverflow: {
|
|
72
|
-
...
|
|
54
|
+
...l.value.preventOverflow,
|
|
73
55
|
padding: 10
|
|
74
56
|
}
|
|
75
|
-
})), r =
|
|
76
|
-
|
|
77
|
-
},
|
|
78
|
-
const o =
|
|
57
|
+
})), r = w(null), d = () => typeof e.controller == "string" ? document.getElementById(e.controller) : e.controller, f = (t) => {
|
|
58
|
+
n("tool-tip-visible", t);
|
|
59
|
+
}, m = (t = !0) => {
|
|
60
|
+
const o = d();
|
|
79
61
|
if (o) {
|
|
80
62
|
const i = t ? "mouseover" : "mouseout";
|
|
81
63
|
o.dispatchEvent(new MouseEvent(i, { bubbles: !0 }));
|
|
82
64
|
}
|
|
83
|
-
},
|
|
65
|
+
}, c = () => {
|
|
84
66
|
var t;
|
|
85
|
-
(t = r.value) == null || t.dismiss(),
|
|
86
|
-
},
|
|
87
|
-
return
|
|
67
|
+
(t = r.value) == null || t.dismiss(), n("dismiss");
|
|
68
|
+
}, v = s(() => p.value === "dark" ? "tooltip-pane--dark tw-bg-gray-800 tw-text-white" : "tooltip-pane--light tw-bg-white tw-text-gray-800");
|
|
69
|
+
return y(a, (t) => {
|
|
88
70
|
var o, i;
|
|
89
71
|
t ? (o = r.value) == null || o.open() : (i = r.value) == null || i.dismiss();
|
|
90
72
|
}), {
|
|
91
|
-
defaultTheme:
|
|
92
|
-
dismiss:
|
|
93
|
-
handleKvPopperVisibility:
|
|
94
|
-
paneClass:
|
|
95
|
-
popperModifiers:
|
|
73
|
+
defaultTheme: h,
|
|
74
|
+
dismiss: c,
|
|
75
|
+
handleKvPopperVisibility: f,
|
|
76
|
+
paneClass: v,
|
|
77
|
+
popperModifiers: u,
|
|
96
78
|
popperRef: r,
|
|
97
|
-
|
|
98
|
-
triggerHover: g
|
|
79
|
+
triggerHover: m
|
|
99
80
|
};
|
|
100
81
|
}
|
|
101
82
|
};
|
|
102
83
|
export {
|
|
103
|
-
|
|
84
|
+
S as default
|
|
104
85
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kiva/kv-components",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "10.0.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
@@ -112,5 +112,5 @@
|
|
|
112
112
|
"dependencies": {
|
|
113
113
|
"fuse.js": "^7.1.0"
|
|
114
114
|
},
|
|
115
|
-
"gitHead": "
|
|
115
|
+
"gitHead": "9d71c196ea2984bc7070275550eb2edecec9df7f"
|
|
116
116
|
}
|