@kiva/kv-components 6.30.1 → 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/KvSelect.css +1 -0
- package/dist/vue/KvSelect.js +10 -9
- package/dist/vue/KvTooltip.css +1 -1
- package/dist/vue/KvTooltip.js +51 -30
- package/package.json +2 -2
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.container[data-v-57d55c25]{position:relative;width:100%}.container>select[data-v-57d55c25]{border-radius:8px}
|
package/dist/vue/KvSelect.js
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import { ref as m, watch as w, resolveComponent as p, openBlock as f, createElementBlock as g, normalizeClass as d, normalizeStyle as v, createElementVNode as c, withDirectives as b, mergeProps as
|
|
1
|
+
import { ref as m, watch as w, resolveComponent as p, openBlock as f, createElementBlock as g, normalizeClass as d, normalizeStyle as v, createElementVNode as c, withDirectives as b, mergeProps as _, renderSlot as h, vModelSelect as V, createVNode as y } from "vue";
|
|
2
2
|
import { mdiChevronDown as C } from "@mdi/js";
|
|
3
3
|
import { useAttrs as S } from "../utils/attrs.js";
|
|
4
4
|
import k from "./KvMaterialIcon.js";
|
|
5
|
+
import "./KvSelect.css";
|
|
5
6
|
import x from "../_virtual/_plugin-vue_export-helper.js";
|
|
6
7
|
const u = [
|
|
7
8
|
"change",
|
|
@@ -61,7 +62,7 @@ const u = [
|
|
|
61
62
|
inputValue: n
|
|
62
63
|
};
|
|
63
64
|
}
|
|
64
|
-
}, B = { class: "
|
|
65
|
+
}, B = { class: "container" }, D = ["id", "disabled"];
|
|
65
66
|
function N(a, t, o, e, i, s) {
|
|
66
67
|
const r = p("kv-material-icon");
|
|
67
68
|
return f(), g("div", {
|
|
@@ -69,24 +70,24 @@ function N(a, t, o, e, i, s) {
|
|
|
69
70
|
style: v(e.styles)
|
|
70
71
|
}, [
|
|
71
72
|
c("div", B, [
|
|
72
|
-
b(c("select",
|
|
73
|
+
b(c("select", _({ id: o.id }, e.inputAttrs, {
|
|
73
74
|
"onUpdate:modelValue": t[0] || (t[0] = (n) => e.inputValue = n),
|
|
74
75
|
disabled: o.disabled,
|
|
75
|
-
class: ["tw-text-base tw-bg-primary tw-h-6 tw-pr-4 tw-pl-2 tw-border tw-border-tertiary tw-
|
|
76
|
+
class: ["tw-text-base tw-bg-primary tw-h-6 tw-pr-4 tw-pl-2 tw-border tw-border-tertiary tw-appearance-none tw-w-full tw-ring-inset focus:tw-outline-none focus:tw-ring-2 focus:tw-ring-action focus:tw-border-transparent tw-text-ellipsis", { "tw-opacity-low": o.disabled }],
|
|
76
77
|
onChange: t[1] || (t[1] = (...n) => e.onChange && e.onChange(...n))
|
|
77
78
|
}), [
|
|
78
|
-
|
|
79
|
+
h(a.$slots, "default", {}, void 0, !0)
|
|
79
80
|
], 16, D), [
|
|
80
|
-
[
|
|
81
|
+
[V, e.inputValue]
|
|
81
82
|
]),
|
|
82
|
-
|
|
83
|
+
y(r, {
|
|
83
84
|
icon: e.mdiChevronDown,
|
|
84
85
|
class: d(["tw-w-4 tw-absolute tw-top-0 tw-right-0 tw-pt-1.5 tw-pr-1 tw-pointer-events-none", { "tw-opacity-low": o.disabled }])
|
|
85
86
|
}, null, 8, ["icon", "class"])
|
|
86
87
|
])
|
|
87
88
|
], 6);
|
|
88
89
|
}
|
|
89
|
-
const
|
|
90
|
+
const L = /* @__PURE__ */ x(A, [["render", N], ["__scopeId", "data-v-57d55c25"]]);
|
|
90
91
|
export {
|
|
91
|
-
|
|
92
|
+
L as default
|
|
92
93
|
};
|
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.
|
|
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
|
}
|