@kiva/kv-components 8.29.2 → 9.0.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.
@@ -1,9 +1,9 @@
1
1
  import { computed as r } from "vue";
2
- import { defaultTheme as t, stoneDarkTheme as a, stoneLightTheme as n, marigoldLightTheme as o, greenLightTheme as s, greenDarkTheme as l } from "@kiva/kv-tokens";
3
- import i from "./KvThemeProvider.js";
4
- const h = {
2
+ import { defaultTheme as t, stoneLightTheme as a, marigoldLightTheme as o, greenLightTheme as n, greenDarkTheme as l } from "@kiva/kv-tokens";
3
+ import s from "./KvThemeProvider.js";
4
+ const m = {
5
5
  components: {
6
- KvThemeProvider: i
6
+ KvThemeProvider: s
7
7
  },
8
8
  props: {
9
9
  allowOverflow: {
@@ -35,8 +35,7 @@ const h = {
35
35
  "greenLight",
36
36
  "greenDark",
37
37
  "marigoldLight",
38
- "stoneLight",
39
- "stoneDark"
38
+ "stoneLight"
40
39
  ].includes(e);
41
40
  }
42
41
  }
@@ -49,12 +48,10 @@ const h = {
49
48
  case "greenDark":
50
49
  return l;
51
50
  case "greenLight":
52
- return s;
51
+ return n;
53
52
  case "marigoldLight":
54
53
  return o;
55
54
  case "stoneLight":
56
- return n;
57
- case "stoneDark":
58
55
  return a;
59
56
  default:
60
57
  return t;
@@ -63,5 +60,5 @@ const h = {
63
60
  }
64
61
  };
65
62
  export {
66
- h as default
63
+ m as default
67
64
  };
@@ -1 +1 @@
1
- .section[data-v-63dc5a55]{border-bottom-width:.0625rem;border-top-width:0px;--tw-border-opacity: 1;border-color:rgba(var(--border-tertiary),var(--tw-border-opacity, 1));padding:.5rem;display:block;overflow:hidden}@media print{.section[data-v-63dc5a55]{page-break-inside:avoid}}.section--lender-info[data-v-63dc5a55]{padding-top:0}.section--print[data-v-63dc5a55]{border-bottom:0}.checkout-receipt__headline[data-v-63dc5a55]{text-align:center;margin-bottom:1.5rem}.checkout-receipt__item-list[data-v-63dc5a55]{list-style:none;margin:0;width:100%}.loan__name[data-v-63dc5a55]{margin-bottom:.5rem}.loan__name--inline[data-v-63dc5a55]{display:inline-block}.loan__amount[data-v-63dc5a55]{text-align:right}.total[data-v-63dc5a55]{display:flex;align-items:baseline}.total__header[data-v-63dc5a55],.total__amount[data-v-63dc5a55]{text-align:right;flex:1}.total__amount[data-v-63dc5a55]{flex-grow:.33}.payments[data-v-63dc5a55]{border-bottom:none}.payments__type[data-v-63dc5a55]{display:flex;text-align:right}.payments__type-title[data-v-63dc5a55],.payments__type-amount[data-v-63dc5a55]{flex:1}.print[data-v-63dc5a55]{margin:0 auto}
1
+ .section[data-v-1d721061]{border-bottom-width:.0625rem;border-top-width:0px;--tw-border-opacity: 1;border-color:rgba(var(--border-tertiary),var(--tw-border-opacity, 1));padding:.5rem;display:block;overflow:hidden}@media print{.section[data-v-1d721061]{page-break-inside:avoid}}.section--lender-info[data-v-1d721061]{padding-top:0}.section--print[data-v-1d721061]{border-bottom:0}.checkout-receipt__headline[data-v-1d721061]{text-align:center;margin-bottom:1.5rem}.checkout-receipt__item-list[data-v-1d721061]{list-style:none;margin:0;width:100%}.loan__name[data-v-1d721061]{margin-bottom:.5rem}.loan__name--inline[data-v-1d721061]{display:inline-block}.loan__amount[data-v-1d721061]{text-align:right}.total[data-v-1d721061]{display:flex;align-items:baseline}.total__header[data-v-1d721061],.total__amount[data-v-1d721061]{text-align:right;flex:1}.total__amount[data-v-1d721061]{flex-grow:.33}.payments[data-v-1d721061]{border-bottom:none}.payments__type[data-v-1d721061]{display:flex;text-align:right}.payments__type-title[data-v-1d721061],.payments__type-amount[data-v-1d721061]{flex:1}.print[data-v-1d721061]{margin:0 auto}
@@ -1,5 +1,5 @@
1
1
  import C from "./KvCheckoutReceipt2.js";
2
- import { resolveComponent as m, resolveDirective as f, openBlock as s, createElementBlock as o, createElementVNode as e, toDisplayString as i, createCommentVNode as d, Fragment as c, renderList as k, createTextVNode as l, createVNode as p, withCtx as v, withDirectives as b } from "vue";
2
+ import { resolveComponent as _, resolveDirective as f, openBlock as s, createElementBlock as o, createElementVNode as e, toDisplayString as i, createCommentVNode as d, Fragment as c, renderList as k, createTextVNode as l, createVNode as p, withCtx as v, withDirectives as b } from "vue";
3
3
  import "./KvCheckoutReceipt.css";
4
4
  import x from "../_virtual/_plugin-vue_export-helper.js";
5
5
  const g = { class: "checkout-receipt" }, T = { class: "checkout-receipt__wrapper tw-bg-primary tw-p-4 tw-rounded-xs tw-border tw-border-tertiary" }, j = {
@@ -33,24 +33,24 @@ const g = { class: "checkout-receipt" }, T = { class: "checkout-receipt__wrapper
33
33
  }, B = {
34
34
  "data-testid": "kcard",
35
35
  class: "loan kcard"
36
- }, U = {
36
+ }, L = {
37
37
  class: "loan__details data-hj-suppress",
38
38
  "data-testid": "kcard-details"
39
- }, q = {
39
+ }, U = {
40
40
  key: 0,
41
41
  "data-testid": "kcard-details",
42
42
  class: "loan__details data-hj-suppress"
43
- }, z = {
43
+ }, q = {
44
44
  class: "loan__details data-hj-suppress",
45
45
  "data-testid": "kcard-details"
46
- }, L = {
46
+ }, z = {
47
47
  class: "loan__amount tw-text-title",
48
48
  "data-testid": "kcard-amount"
49
- }, S = {
49
+ }, G = {
50
50
  key: 0,
51
51
  "data-testid": "kcard-portfolio",
52
52
  class: "section tw-text-center print:!tw-hidden"
53
- }, W = { href: "/portfolio/kiva-cards" }, Y = { class: "checkout-receipt__item-list" }, G = { class: "section" }, H = {
53
+ }, S = { href: "/portfolio/kiva-cards" }, W = { class: "checkout-receipt__item-list" }, Y = { class: "section" }, H = {
54
54
  class: "loan",
55
55
  "data-testid": "donation"
56
56
  }, J = {
@@ -102,8 +102,8 @@ const g = { class: "checkout-receipt" }, T = { class: "checkout-receipt__wrapper
102
102
  class: "total__amount tw-text-title",
103
103
  "data-testid": "amount-charged-payment-amount"
104
104
  }, ct = { class: "section section--print print:!tw-hidden" };
105
- function pt(mt, t, n, _, _t, r) {
106
- const u = m("kv-material-icon"), y = m("kv-tooltip"), w = m("kv-button"), h = f("kv-track-event");
105
+ function pt(_t, t, n, m, mt, r) {
106
+ const u = _("kv-material-icon"), y = _("kv-tooltip"), w = _("kv-button"), h = f("kv-track-event");
107
107
  return s(), o("div", g, [
108
108
  t[25] || (t[25] = e("h2", { class: "checkout-receipt__headline" }, " Order Confirmation ", -1)),
109
109
  e("div", T, [
@@ -160,7 +160,7 @@ function pt(mt, t, n, _, _t, r) {
160
160
  }, " Print-it-yourself Kiva Card ", -1)),
161
161
  p(u, {
162
162
  id: `print-card-${a.id}`,
163
- icon: _.infoIcon,
163
+ icon: m.infoIcon,
164
164
  "data-testid": "kcard-tool-tip-control",
165
165
  name: "question",
166
166
  class: "tw-fill-current tw-text-tertiary tw-h-2.5 tw-w-2.5 tw-ml-0.5"
@@ -168,7 +168,7 @@ function pt(mt, t, n, _, _t, r) {
168
168
  p(y, {
169
169
  "data-testid": "kcard-tool-tip-text",
170
170
  controller: `print-card-${a.id}`,
171
- theme: "mint"
171
+ theme: "ecoGreenLight"
172
172
  }, {
173
173
  default: v(() => t[2] || (t[2] = [
174
174
  l(" You can print this card now. We'll also send it to you in an email so you can print it later. ")
@@ -193,7 +193,7 @@ function pt(mt, t, n, _, _t, r) {
193
193
  class: "loan__name tw-text-title",
194
194
  "data-testid": "kcard-type-postal"
195
195
  }, " Postal delivery Kiva Card ", -1)),
196
- e("div", U, [
196
+ e("div", L, [
197
197
  l(" For: " + i(a.kivaCardObject.mailingInfo.firstName) + " " + i(a.kivaCardObject.mailingInfo.lastName), 1),
198
198
  t[6] || (t[6] = e("br", null, null, -1)),
199
199
  l(" " + i(a.kivaCardObject.mailingInfo.address), 1),
@@ -209,13 +209,13 @@ function pt(mt, t, n, _, _t, r) {
209
209
  class: "loan__name tw-text-title",
210
210
  "data-testid": "kcard-type-lender"
211
211
  }, " Kiva Card ", -1)),
212
- a.kivaCardObject.recipient.name ? (s(), o("div", q, " For: " + i(a.kivaCardObject.recipient.name), 1)) : d("", !0)
212
+ a.kivaCardObject.recipient.name ? (s(), o("div", U, " For: " + i(a.kivaCardObject.recipient.name), 1)) : d("", !0)
213
213
  ], 64)) : a.kivaCardObject.deliveryType === "email" ? (s(), o(c, { key: 3 }, [
214
214
  t[11] || (t[11] = e("h3", {
215
215
  class: "loan__name tw-text-title",
216
216
  "data-testid": "kcard-type-email"
217
217
  }, " Email delivery Kiva Card ", -1)),
218
- e("div", z, [
218
+ e("div", q, [
219
219
  t[10] || (t[10] = l(" For: ")),
220
220
  a.kivaCardObject.recipient.name ? (s(), o(c, { key: 0 }, [
221
221
  l(i(a.kivaCardObject.recipient.name) + " – ", 1)
@@ -223,12 +223,12 @@ function pt(mt, t, n, _, _t, r) {
223
223
  l(" " + i(a.kivaCardObject.recipient.email), 1)
224
224
  ])
225
225
  ], 64)) : d("", !0),
226
- e("div", L, " $" + i(a.price), 1)
226
+ e("div", z, " $" + i(a.price), 1)
227
227
  ])
228
228
  ]))), 128)),
229
- r.kivaCards.length > 0 ? (s(), o("li", S, [
229
+ r.kivaCards.length > 0 ? (s(), o("li", G, [
230
230
  t[13] || (t[13] = l(" For more details about all your Kiva Card purchases, please visit your ")),
231
- b((s(), o("a", W, t[12] || (t[12] = [
231
+ b((s(), o("a", S, t[12] || (t[12] = [
232
232
  l(" Kiva portfolio ")
233
233
  ]))), [
234
234
  [h, ["Thanks", "click", "kiva-card-portfolio"]]
@@ -238,8 +238,8 @@ function pt(mt, t, n, _, _t, r) {
238
238
  ])
239
239
  ]),
240
240
  e("section", null, [
241
- e("ul", Y, [
242
- e("li", G, [
241
+ e("ul", W, [
242
+ e("li", Y, [
243
243
  e("div", H, [
244
244
  t[15] || (t[15] = e("h3", { class: "loan__name tw-text-title" }, " Donation to Kiva ", -1)),
245
245
  n.receipt.totals.donationTotal > 0 ? (s(), o("a", {
@@ -297,7 +297,7 @@ function pt(mt, t, n, _, _t, r) {
297
297
  onClick: t[1] || (t[1] = (...a) => r.printReceipt && r.printReceipt(...a))
298
298
  }, [
299
299
  p(u, {
300
- icon: _.printIcon,
300
+ icon: m.printIcon,
301
301
  name: "print",
302
302
  class: "tw-h-2.5 tw-w-2.5 tw-ml-0.5"
303
303
  }, null, 8, ["icon"]),
@@ -307,7 +307,7 @@ function pt(mt, t, n, _, _t, r) {
307
307
  ])
308
308
  ]);
309
309
  }
310
- const wt = /* @__PURE__ */ x(C, [["render", pt], ["__scopeId", "data-v-63dc5a55"]]);
310
+ const wt = /* @__PURE__ */ x(C, [["render", pt], ["__scopeId", "data-v-1d721061"]]);
311
311
  export {
312
312
  wt as default
313
313
  };
@@ -1,12 +1,12 @@
1
1
  import { computed as r } from "vue";
2
2
  import a from "@vuepic/vue-datepicker";
3
3
  import "@vuepic/vue-datepicker/dist/main.css";
4
- import { defaultTheme as t, stoneDarkTheme as n, stoneLightTheme as m, marigoldLightTheme as i, greenLightTheme as h, greenDarkTheme as o } from "@kiva/kv-tokens";
5
- import s from "./KvThemeProvider.js";
6
- const f = {
4
+ import { defaultTheme as t, stoneLightTheme as i, marigoldLightTheme as m, greenLightTheme as n, greenDarkTheme as h } from "@kiva/kv-tokens";
5
+ import l from "./KvThemeProvider.js";
6
+ const p = {
7
7
  name: "KvDatePicker",
8
8
  components: {
9
- KvThemeProvider: s,
9
+ KvThemeProvider: l,
10
10
  VueDatePicker: a
11
11
  },
12
12
  inheritAttrs: !1,
@@ -24,8 +24,7 @@ const f = {
24
24
  "greenLight",
25
25
  "greenDark",
26
26
  "marigoldLight",
27
- "stoneLight",
28
- "stoneDark"
27
+ "stoneLight"
29
28
  ].includes(e);
30
29
  }
31
30
  }
@@ -40,15 +39,13 @@ const f = {
40
39
  case "default":
41
40
  return t;
42
41
  case "greenDark":
43
- return o;
44
- case "greenLight":
45
42
  return h;
43
+ case "greenLight":
44
+ return n;
46
45
  case "marigoldLight":
47
- return i;
48
- case "stoneLight":
49
46
  return m;
50
- case "stoneDark":
51
- return n;
47
+ case "stoneLight":
48
+ return i;
52
49
  default:
53
50
  return t;
54
51
  }
@@ -74,5 +71,5 @@ const f = {
74
71
  }
75
72
  };
76
73
  export {
77
- f as default
74
+ p as default
78
75
  };
@@ -1 +1 @@
1
- .kv-secondary-nav-holder[data-v-4543890b]{height:62px}.kv-secondary-nav[data-v-4543890b]{min-height:62px}
1
+ .kv-secondary-nav-holder[data-v-dcf22089]{height:62px}.kv-secondary-nav[data-v-dcf22089]{min-height:62px}
@@ -83,7 +83,7 @@ function N(p, w, t, e, E, A) {
83
83
  _: 1
84
84
  }, 8, ["theme"]);
85
85
  }
86
- const z = /* @__PURE__ */ C(x, [["render", N], ["__scopeId", "data-v-4543890b"]]);
86
+ const z = /* @__PURE__ */ C(x, [["render", N], ["__scopeId", "data-v-dcf22089"]]);
87
87
  export {
88
88
  z as default
89
89
  };
@@ -1,13 +1,13 @@
1
1
  import { toRefs as c, ref as g, computed as n } from "vue";
2
- import { stoneLightTheme as p, marigoldLightTheme as b, greenDarkTheme as u, greenLightTheme as v, defaultTheme as w } from "@kiva/kv-tokens";
3
- import { mdiChevronDown as k, mdiChevronUp as C } from "@mdi/js";
4
- import L from "./KvThemeProvider.js";
2
+ import { stoneLightTheme as y, marigoldLightTheme as p, greenDarkTheme as b, greenLightTheme as v, defaultTheme as w } from "@kiva/kv-tokens";
3
+ import { mdiChevronDown as k, mdiChevronUp as L } from "@mdi/js";
4
+ import C from "./KvThemeProvider.js";
5
5
  import j from "./KvMaterialIcon.js";
6
6
  import O from "./KvPageContainer.js";
7
7
  const _ = {
8
8
  name: "KvSecondaryNav",
9
9
  components: {
10
- KvThemeProvider: L,
10
+ KvThemeProvider: C,
11
11
  KvMaterialIcon: j,
12
12
  KvPageContainer: O
13
13
  },
@@ -46,7 +46,6 @@ const _ = {
46
46
  validator(e) {
47
47
  return [
48
48
  "default",
49
- "dark",
50
49
  "greenLight",
51
50
  "greenDark",
52
51
  "marigoldLight",
@@ -63,14 +62,13 @@ const _ = {
63
62
  heading: l,
64
63
  linkAlignment: a,
65
64
  theme: s
66
- } = c(e), d = g(null), i = g(!1), m = n(() => e.headingLink && e.headingLink.href), h = n(() => a.value === "right" ? l.value && l.value.length > 0 ? "tw-justify-between" : "tw-justify-between md:tw-justify-end" : a.value === "left" ? "tw-justify-between md:tw-justify-start" : a.value === "center" ? "tw-justify-between md:tw-justify-center" : ""), o = {
65
+ } = c(e), u = g(null), i = g(!1), m = n(() => e.headingLink && e.headingLink.href), d = n(() => a.value === "right" ? l.value && l.value.length > 0 ? "tw-justify-between" : "tw-justify-between md:tw-justify-end" : a.value === "left" ? "tw-justify-between md:tw-justify-start" : a.value === "center" ? "tw-justify-between md:tw-justify-center" : ""), o = {
67
66
  default: { style: w, bgClass: "tw-bg-secondary" },
68
- dark: { style: u, bgClass: "tw-bg-primary" },
69
67
  greenLight: { style: v, bgClass: "tw-bg-secondary" },
70
- greenDark: { style: u, bgClass: "tw-bg-primary" },
71
- marigoldLight: { style: b, bgClass: "tw-bg-primary" },
72
- stoneLight: { style: p, bgClass: "tw-bg-primary" }
73
- }, y = n(() => {
68
+ greenDark: { style: b, bgClass: "tw-bg-primary" },
69
+ marigoldLight: { style: p, bgClass: "tw-bg-primary" },
70
+ stoneLight: { style: y, bgClass: "tw-bg-primary" }
71
+ }, h = n(() => {
74
72
  var t;
75
73
  return (t = o[s.value]) == null ? void 0 : t.style;
76
74
  }), f = n(() => {
@@ -79,15 +77,15 @@ const _ = {
79
77
  });
80
78
  return {
81
79
  hasHeadingLink: m,
82
- navAlignmentClass: h,
80
+ navAlignmentClass: d,
83
81
  toggleSubNavigation: () => {
84
82
  i.value = !i.value;
85
83
  },
86
84
  subNavigationOpen: i,
87
- mdiChevronUp: C,
85
+ mdiChevronUp: L,
88
86
  mdiChevronDown: k,
89
- subNavigation: d,
90
- themeStyle: y,
87
+ subNavigation: u,
88
+ themeStyle: h,
91
89
  bgClass: f,
92
90
  handleLinkClick: (t) => {
93
91
  r("subnavLinkClicked", t);
@@ -1 +1 @@
1
- .tooltip-pane[data-v-5fd76cc8],.tooltip-arrow[data-v-5fd76cc8]{box-shadow:0 4px 12px #00000014}.tooltip-arrow[data-v-5fd76cc8]{margin:.5rem;border-color:rgba(var(--bg-primary),var(--tw-bg-opacity, 1))}.tooltip-pane[x-placement^=top][data-v-5fd76cc8]{margin-bottom:.5rem}.tooltip-pane[x-placement^=top] .tooltip-arrow[data-v-5fd76cc8]{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-5fd76cc8]{margin-top:.5rem}.tooltip-pane[x-placement^=bottom] .tooltip-arrow[data-v-5fd76cc8]{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-5fd76cc8]{margin-left:.5rem}.tooltip-pane[x-placement^=right] .tooltip-arrow[data-v-5fd76cc8]{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-5fd76cc8]{margin-right:.5rem}.tooltip-pane[x-placement^=left] .tooltip-arrow[data-v-5fd76cc8]{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-d5f691f8],.tooltip-arrow[data-v-d5f691f8]{box-shadow:0 4px 12px #00000014}.tooltip-arrow[data-v-d5f691f8]{margin:.5rem;border-color:rgba(var(--bg-primary),var(--tw-bg-opacity, 1))}.tooltip-pane[x-placement^=top][data-v-d5f691f8]{margin-bottom:.5rem}.tooltip-pane[x-placement^=top] .tooltip-arrow[data-v-d5f691f8]{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-d5f691f8]{margin-top:.5rem}.tooltip-pane[x-placement^=bottom] .tooltip-arrow[data-v-d5f691f8]{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-d5f691f8]{margin-left:.5rem}.tooltip-pane[x-placement^=right] .tooltip-arrow[data-v-d5f691f8]{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-d5f691f8]{margin-right:.5rem}.tooltip-pane[x-placement^=left] .tooltip-arrow[data-v-d5f691f8]{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,5 +1,5 @@
1
- import c from "./KvTooltip2.js";
2
- import { resolveComponent as l, openBlock as p, createBlock as v, withCtx as n, createVNode as f, createElementVNode as i, normalizeStyle as w, createElementBlock as _, renderSlot as d, createCommentVNode as u } from "vue";
1
+ import f from "./KvTooltip2.js";
2
+ import { resolveComponent as l, openBlock as p, createBlock as v, withCtx as n, createVNode as c, createElementVNode as i, normalizeStyle as w, createElementBlock as _, renderSlot as d, createCommentVNode as u } from "vue";
3
3
  import "./KvTooltip.css";
4
4
  import k from "../_virtual/_plugin-vue_export-helper.js";
5
5
  const y = {
@@ -13,7 +13,7 @@ function b(o, e, r, t, x, V) {
13
13
  class: "kv-tailwind"
14
14
  }, {
15
15
  default: n(() => [
16
- f(s, {
16
+ c(s, {
17
17
  ref: "popperRef",
18
18
  controller: r.controller,
19
19
  "popper-modifiers": t.popperModifiers,
@@ -46,7 +46,7 @@ function b(o, e, r, t, x, V) {
46
46
  _: 3
47
47
  }, 8, ["theme"]);
48
48
  }
49
- const N = /* @__PURE__ */ k(c, [["render", b], ["__scopeId", "data-v-5fd76cc8"]]);
49
+ const N = /* @__PURE__ */ k(f, [["render", b], ["__scopeId", "data-v-d5f691f8"]]);
50
50
  export {
51
51
  N as default
52
52
  };
@@ -1,12 +1,12 @@
1
- import { toRefs as S, computed as i, ref as b, watch as M } from "vue";
2
- import { darkTheme as l, mintTheme as a, stoneDarkTheme as m, stoneLightTheme as p, marigoldLightTheme as f, greenDarkTheme as s, greenLightTheme as u, defaultTheme as d } from "@kiva/kv-tokens";
3
- import D from "./KvPopper.js";
4
- import E from "./KvThemeProvider.js";
5
- const H = {
1
+ import { toRefs as L, computed as i, ref as w, watch as b } from "vue";
2
+ import { stoneLightTheme as l, marigoldLightTheme as p, greenDarkTheme as a, greenLightTheme as f, defaultTheme as m } from "@kiva/kv-tokens";
3
+ import M from "./KvPopper.js";
4
+ import S from "./KvThemeProvider.js";
5
+ const K = {
6
6
  name: "KvTooltip",
7
7
  components: {
8
- KvPopper: D,
9
- KvThemeProvider: E
8
+ KvPopper: M,
9
+ KvThemeProvider: S
10
10
  },
11
11
  props: {
12
12
  controller: {
@@ -41,63 +41,54 @@ const H = {
41
41
  "ecoGreenLight",
42
42
  "ecoGreenDark",
43
43
  "ecoLightMarigold",
44
- "ecoStoneLight",
45
- "ecoStoneDark",
46
- "mint",
47
- "dark"
44
+ "ecoStoneLight"
48
45
  ].indexOf(e) !== -1;
49
46
  }
50
47
  }
51
48
  },
52
49
  emits: ["tool-tip-visible"],
53
- setup(e, { emit: c }) {
50
+ setup(e, { emit: u }) {
54
51
  const {
55
52
  modifiers: r,
56
- showTooltip: h,
57
- theme: g
58
- } = S(e), v = i(() => ({
53
+ showTooltip: s,
54
+ theme: c
55
+ } = L(e), d = i(() => ({
59
56
  ...r.value,
60
57
  preventOverflow: {
61
58
  ...r.value.preventOverflow,
62
59
  padding: 10
63
60
  }
64
- })), T = b(null), y = () => typeof e.controller == "string" ? document.getElementById(e.controller) : e.controller, L = (t) => {
65
- c("tool-tip-visible", t);
61
+ })), h = w(null), g = () => typeof e.controller == "string" ? document.getElementById(e.controller) : e.controller, v = (t) => {
62
+ u("tool-tip-visible", t);
66
63
  }, o = (t = !0) => {
67
- const n = y();
64
+ const n = g();
68
65
  if (n) {
69
- const k = t ? "mouseover" : "mouseout";
70
- n.dispatchEvent(new MouseEvent(k, { bubbles: !0 }));
66
+ const T = t ? "mouseover" : "mouseout";
67
+ n.dispatchEvent(new MouseEvent(T, { bubbles: !0 }));
71
68
  }
72
- }, w = i(() => ({
73
- default: d,
74
- ecoGreenLight: u,
75
- ecoGreenDark: s,
76
- ecoLightMarigold: f,
77
- ecoStoneLight: p,
78
- ecoStoneDark: m,
79
- mint: a,
80
- dark: l
81
- })[g.value]);
82
- return M(h, (t) => {
69
+ }, y = i(() => ({
70
+ default: m,
71
+ ecoGreenLight: f,
72
+ ecoGreenDark: a,
73
+ ecoLightMarigold: p,
74
+ ecoStoneLight: l
75
+ })[c.value]);
76
+ return b(s, (t) => {
83
77
  o(!!t);
84
78
  }), {
85
- defaultTheme: d,
86
- greenLightTheme: u,
87
- greenDarkTheme: s,
88
- marigoldLightTheme: f,
89
- stoneLightTheme: p,
90
- stoneDarkTheme: m,
91
- mintTheme: a,
92
- darkTheme: l,
93
- handleKvPopperVisibility: L,
94
- popperModifiers: v,
95
- popperRef: T,
96
- themeStyle: w,
79
+ defaultTheme: m,
80
+ greenLightTheme: f,
81
+ greenDarkTheme: a,
82
+ marigoldLightTheme: p,
83
+ stoneLightTheme: l,
84
+ handleKvPopperVisibility: v,
85
+ popperModifiers: d,
86
+ popperRef: h,
87
+ themeStyle: y,
97
88
  triggerHover: o
98
89
  };
99
90
  }
100
91
  };
101
92
  export {
102
- H as default
93
+ K as default
103
94
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kiva/kv-components",
3
- "version": "8.29.2",
3
+ "version": "9.0.1",
4
4
  "type": "module",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -33,7 +33,7 @@
33
33
  "@babel/preset-react": "^7.24.7",
34
34
  "@babel/preset-typescript": "^7.24.7",
35
35
  "@figma/code-connect": "^1.4.9",
36
- "@kiva/kv-tokens": "^4.4.1",
36
+ "@kiva/kv-tokens": "^5.0.0",
37
37
  "@kiva/vite-plugin-vue-lib-css": "^2.0.0",
38
38
  "@laynezh/vite-plugin-lib-assets": "^0.6.1",
39
39
  "@mdi/js": "^7.4.47",
@@ -91,7 +91,7 @@
91
91
  },
92
92
  "peerDependencies": {
93
93
  "@apollo/client": "3.x",
94
- "@kiva/kv-tokens": "4.x",
94
+ "@kiva/kv-tokens": "4.x || 5.x",
95
95
  "@mdi/js": "7.x",
96
96
  "@vuepic/vue-datepicker": "^11.0.2",
97
97
  "@vueuse/integrations": "14.x",
@@ -113,5 +113,5 @@
113
113
  "dependencies": {
114
114
  "fuse.js": "^7.1.0"
115
115
  },
116
- "gitHead": "f66324e85b8e2c3265606c8aecd3bc2b5e0b74a8"
116
+ "gitHead": "69683ca43b93c2774b73feb9b7337ff30f19b836"
117
117
  }