@kiva/kv-components 6.9.0 → 6.9.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/KvExpandableQuestion.js +12 -12
- package/package.json +4 -4
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { toRefs as
|
|
1
|
+
import { toRefs as m, ref as p, computed as w, watch as _, onMounted as g, resolveComponent as s, openBlock as d, createElementBlock as u, createElementVNode as i, toDisplayString as h, createVNode as v, withModifiers as k, withCtx as x, withDirectives as C, renderSlot as b, createCommentVNode as y, vShow as F } from "vue";
|
|
2
2
|
import { mdiChevronDown as S, mdiChevronUp as M } from "@mdi/js";
|
|
3
|
-
import {
|
|
3
|
+
import { kebabCase as Q } from "change-case";
|
|
4
4
|
import A from "./KvExpandable.js";
|
|
5
5
|
import D from "./KvMaterialIcon.js";
|
|
6
6
|
import E from "../_virtual/_plugin-vue_export-helper.js";
|
|
@@ -45,11 +45,11 @@ const H = {
|
|
|
45
45
|
const {
|
|
46
46
|
title: n,
|
|
47
47
|
active: t
|
|
48
|
-
} =
|
|
48
|
+
} = m(o), e = p(t.value || !1), l = w(() => Q(n.value)), c = () => {
|
|
49
49
|
o.kvTrackFunction("faq", "toggle", l.value, e.value ? "expand" : "collapse"), e.value = !e.value, a("toggle", { title: l.value });
|
|
50
50
|
};
|
|
51
|
-
return _(t, (
|
|
52
|
-
e.value =
|
|
51
|
+
return _(t, (r) => {
|
|
52
|
+
e.value = r;
|
|
53
53
|
}), g(() => {
|
|
54
54
|
o.routeHash === `#${l.value}` && (e.value = !0);
|
|
55
55
|
}), {
|
|
@@ -57,33 +57,33 @@ const H = {
|
|
|
57
57
|
mdiChevronDown: S,
|
|
58
58
|
mdiChevronUp: M,
|
|
59
59
|
titleSlugified: l,
|
|
60
|
-
toggleFAQ:
|
|
60
|
+
toggleFAQ: c
|
|
61
61
|
};
|
|
62
62
|
}
|
|
63
63
|
}, T = { class: "tw-whitespace-normal" }, B = { class: "tw-text-subhead tw-text-left" }, K = { class: "tw-prose tw-pb-4 tw-pt-2" }, N = ["innerHTML"];
|
|
64
64
|
function V(o, a, n, t, e, l) {
|
|
65
|
-
const
|
|
65
|
+
const c = s("kv-material-icon"), r = s("kv-expandable");
|
|
66
66
|
return d(), u("div", T, [
|
|
67
67
|
i("button", {
|
|
68
68
|
class: "tw-w-full tw-py-2 tw-flex tw-justify-between tw-not-prose",
|
|
69
|
-
onClick: a[0] || (a[0] = (...
|
|
69
|
+
onClick: a[0] || (a[0] = (...f) => t.toggleFAQ && t.toggleFAQ(...f))
|
|
70
70
|
}, [
|
|
71
71
|
i("h3", B, h(n.title), 1),
|
|
72
|
-
v(
|
|
72
|
+
v(c, {
|
|
73
73
|
class: "tw-w-4 tw-h-4",
|
|
74
74
|
icon: t.open ? t.mdiChevronUp : t.mdiChevronDown,
|
|
75
75
|
onClick: k(t.toggleFAQ, ["stop"])
|
|
76
76
|
}, null, 8, ["icon", "onClick"])
|
|
77
77
|
]),
|
|
78
|
-
v(
|
|
78
|
+
v(r, { easing: "ease-in-out" }, {
|
|
79
79
|
default: x(() => [
|
|
80
80
|
C(i("div", null, [
|
|
81
81
|
i("div", K, [
|
|
82
|
-
|
|
82
|
+
b(o.$slots, "default"),
|
|
83
83
|
n.content !== "" ? (d(), u("div", {
|
|
84
84
|
key: 0,
|
|
85
85
|
innerHTML: n.content
|
|
86
|
-
}, null, 8, N)) :
|
|
86
|
+
}, null, 8, N)) : y("", !0)
|
|
87
87
|
])
|
|
88
88
|
], 512), [
|
|
89
89
|
[F, t.open]
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kiva/kv-components",
|
|
3
|
-
"version": "6.9.
|
|
3
|
+
"version": "6.9.1",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
"babel-core": "^7.0.0-bridge.0",
|
|
47
47
|
"babel-jest": "^27.0.6",
|
|
48
48
|
"babel-loader": "^8.2.2",
|
|
49
|
-
"change-case": "^4.
|
|
49
|
+
"change-case": "^5.4.4",
|
|
50
50
|
"chromatic": "^5.9.2",
|
|
51
51
|
"css-loader": "^6.0.0",
|
|
52
52
|
"date-fns": "^2.30.0",
|
|
@@ -93,7 +93,7 @@
|
|
|
93
93
|
"@kiva/kv-tokens": "3.x",
|
|
94
94
|
"@mdi/js": "7.x",
|
|
95
95
|
"@vueuse/integrations": "9.x",
|
|
96
|
-
"change-case": "4.
|
|
96
|
+
"change-case": "^5.4.4",
|
|
97
97
|
"date-fns": "2.x",
|
|
98
98
|
"focus-trap": "6.x",
|
|
99
99
|
"nanoid": "3.x",
|
|
@@ -107,5 +107,5 @@
|
|
|
107
107
|
"embla-carousel-fade",
|
|
108
108
|
"popper.js"
|
|
109
109
|
],
|
|
110
|
-
"gitHead": "
|
|
110
|
+
"gitHead": "dad6b80ddad74a9981a9fdf87a625a16d112fb2b"
|
|
111
111
|
}
|