@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.
@@ -0,0 +1 @@
1
+ .container[data-v-57d55c25]{position:relative;width:100%}.container>select[data-v-57d55c25]{border-radius:8px}
@@ -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 h, renderSlot as V, vModelSelect as y, createVNode as _ } from "vue";
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: "tw-relative tw-w-full" }, D = ["id", "disabled"];
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", h({ id: o.id }, e.inputAttrs, {
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-rounded-sm 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-opacity-low": o.disabled }],
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
- V(a.$slots, "default")
79
+ h(a.$slots, "default", {}, void 0, !0)
79
80
  ], 16, D), [
80
- [y, e.inputValue]
81
+ [V, e.inputValue]
81
82
  ]),
82
- _(r, {
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 I = /* @__PURE__ */ x(A, [["render", N]]);
90
+ const L = /* @__PURE__ */ x(A, [["render", N], ["__scopeId", "data-v-57d55c25"]]);
90
91
  export {
91
- I as default
92
+ L as default
92
93
  };
@@ -1 +1 @@
1
- .tooltip-pane[data-v-94f9be6e],.tooltip-arrow[data-v-94f9be6e]{box-shadow:0 4px 12px #00000014}.tooltip-arrow[data-v-94f9be6e]{margin:.5rem;--tw-border-opacity: 1;border-color:rgb(255 255 255 / var(--tw-border-opacity, 1))}.tooltip-pane[x-placement^=top][data-v-94f9be6e]{margin-bottom:.5rem}.tooltip-pane[x-placement^=top] .tooltip-arrow[data-v-94f9be6e]{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-94f9be6e]{margin-top:.5rem}.tooltip-pane[x-placement^=bottom] .tooltip-arrow[data-v-94f9be6e]{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-94f9be6e]{margin-left:.5rem}.tooltip-pane[x-placement^=right] .tooltip-arrow[data-v-94f9be6e]{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-94f9be6e]{margin-right:.5rem}.tooltip-pane[x-placement^=left] .tooltip-arrow[data-v-94f9be6e]{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}
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}
@@ -1,14 +1,14 @@
1
- import { toRefs as u, ref as v, computed as w, resolveComponent as p, openBlock as i, createBlock as _, withCtx as d, createVNode as h, createElementVNode as n, createElementBlock as k, renderSlot as s, createCommentVNode as y } from "vue";
2
- import { darkTheme as l, mintTheme as a } from "@kiva/kv-tokens";
3
- import x from "./KvPopper.js";
4
- import T from "./KvThemeProvider.js";
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 b from "../_virtual/_plugin-vue_export-helper.js";
7
- const M = {
6
+ import E from "../_virtual/_plugin-vue_export-helper.js";
7
+ const G = {
8
8
  name: "KvTooltip",
9
9
  components: {
10
- KvPopper: x,
11
- KvThemeProvider: T
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 ["default", "mint", "dark"].indexOf(e) !== -1;
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
- } = u(e), r = v({
41
+ } = g(e), r = T({
33
42
  preventOverflow: {
34
43
  padding: 10
35
44
  }
36
- }), o = w(() => ({
37
- mint: a,
38
- dark: l
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
- darkTheme: l,
42
- mintTheme: a,
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
- }, g = {
68
+ }, K = {
48
69
  class: "tw-p-2.5",
49
70
  style: { "max-width": "250px" }
50
- }, E = {
71
+ }, $ = {
51
72
  key: 0,
52
73
  class: "tw-text-primary tw-font-medium tw-mb-1.5"
53
- }, K = { class: "tw-text-primary" };
54
- function S(e, t, r, o, m, $) {
55
- const f = p("kv-popper"), c = p("kv-theme-provider");
56
- return i(), _(c, {
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
- h(f, {
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", g, [
70
- e.$slots.title ? (i(), k("div", E, [
71
- s(e.$slots, "title", {}, void 0, !0)
72
- ])) : y("", !0),
73
- n("div", K, [
74
- s(e.$slots, "default", {}, void 0, !0)
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 O = /* @__PURE__ */ b(M, [["render", S], ["__scopeId", "data-v-94f9be6e"]]);
109
+ const I = /* @__PURE__ */ E(G, [["render", C], ["__scopeId", "data-v-d21ce029"]]);
89
110
  export {
90
- O as default
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.30.1",
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": "6e0f2ffccae6ce65d12657719f2381c0f142408f"
114
+ "gitHead": "ade611094ba3c7a917f99986e6c568b412564648"
115
115
  }