@kiva/kv-components 6.42.0 → 6.43.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.
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { default as r } from "./vue/KvAccordionItem.js";
1
+ import { default as t } from "./vue/KvAccordionItem.js";
2
2
  import { default as a } from "./vue/KvActivityRow.js";
3
3
  import { default as l } from "./vue/KvBorrowerImage.js";
4
4
  import { default as d } from "./vue/KvButton.js";
@@ -6,17 +6,17 @@ import { default as p } from "./vue/KvCardFrame.js";
6
6
  import { default as x } from "./vue/KvCarousel.js";
7
7
  import { default as K } from "./vue/KvCartModal.js";
8
8
  import { default as A } from "./vue/KvCartPill.js";
9
- import { default as i } from "./vue/KvCheckbox.js";
9
+ import { default as C } from "./vue/KvCheckbox.js";
10
10
  import { default as L } from "./vue/KvCheckoutReceipt.js";
11
11
  import { default as T } from "./vue/KvChip.js";
12
- import { KV_CLASSIC_LOAN_CARD_FRAGMENT as E, KV_CLASSIC_LOAN_CARD_USER_FRAGMET as R, default as O } from "./vue/KvClassicLoanCard.js";
12
+ import { KV_CLASSIC_LOAN_CARD_FRAGMENT as E, KV_CLASSIC_LOAN_CARD_USER_FRAGMET as R, default as M } from "./vue/KvClassicLoanCard.js";
13
13
  import { default as S } from "./vue/KvCommentsAdd.js";
14
- import { default as G } from "./vue/KvCommentsContainer.js";
14
+ import { default as g } from "./vue/KvCommentsContainer.js";
15
15
  import { default as P } from "./vue/KvCommentsHeartButton.js";
16
16
  import { default as F } from "./vue/KvCommentsList.js";
17
17
  import { default as B } from "./vue/KvCommentsListItem.js";
18
- import { default as D } from "./vue/KvCommentsReplyButton.js";
19
- import { default as y } from "./vue/KvContentfulImg.js";
18
+ import { default as k } from "./vue/KvCommentsReplyButton.js";
19
+ import { default as b } from "./vue/KvContentfulImg.js";
20
20
  import { default as w } from "./vue/KvCountdownTimer.js";
21
21
  import { default as H } from "./vue/KvExpandable.js";
22
22
  import { default as z } from "./vue/KvExpandableQuestion.js";
@@ -24,102 +24,104 @@ import { default as q } from "./vue/KvFlag.js";
24
24
  import { default as X } from "./vue/KvGrid.js";
25
25
  import { default as Z } from "./vue/KvImpactDashboardHeader.js";
26
26
  import { default as ee } from "./vue/KvInlineActivityCard.js";
27
- import { default as re } from "./vue/KvInlineActivityFeed.js";
27
+ import { default as te } from "./vue/KvInlineActivityFeed.js";
28
28
  import { KV_INTRODUCTION_LOAN_CARD_FRAGMENT as ae, KV_INTRODUCTION_LOAN_CARD_USER_FRAGMENT as fe, default as le } from "./vue/KvIntroductionLoanCard.js";
29
29
  import { default as de } from "./vue/KvLendAmountButton.js";
30
30
  import { KV_LEND_CTA_FRAGMENT as pe, KV_LEND_CTA_USER_FRAGMENT as ue, default as xe } from "./vue/KvLendCta.js";
31
31
  import { default as Ke } from "./vue/KvLightbox.js";
32
32
  import { default as Ae } from "./vue/KvLineGraph.js";
33
- import { KV_LOAN_ACTIVITIES_FRAGMENT as ie, default as _e } from "./vue/KvLoanActivities.js";
33
+ import { KV_LOAN_ACTIVITIES_FRAGMENT as Ce, default as _e } from "./vue/KvLoanActivities.js";
34
34
  import { KV_LOAN_BOOKMARK_FRAGMENT as Ne, default as Te } from "./vue/KvLoanBookmark.js";
35
35
  import { default as Ee } from "./vue/KvLoanCallouts.js";
36
- import { default as Oe } from "./vue/KvLoanProgressGroup.js";
36
+ import { default as Me } from "./vue/KvLoanProgressGroup.js";
37
37
  import { KV_LOAN_TAG_FRAGMENT as Se, default as Ie } from "./vue/KvLoanTag.js";
38
- import { default as ge } from "./vue/KvLoanTeamPick.js";
38
+ import { default as Ge } from "./vue/KvLoanTeamPick.js";
39
39
  import { KV_LOAN_USE_FRAGMENT as he, default as Fe } from "./vue/KvLoanUse.js";
40
40
  import { default as Be } from "./vue/KvLoadingPlaceholder.js";
41
- import { default as De } from "./vue/KvLoadingSpinner.js";
42
- import { default as ye } from "./vue/KvMap.js";
41
+ import { default as ke } from "./vue/KvLoadingSpinner.js";
42
+ import { default as be } from "./vue/KvMap.js";
43
43
  import { default as we } from "./vue/KvMaterialIcon.js";
44
44
  import { default as He } from "./vue/KvPageContainer.js";
45
45
  import { default as ze } from "./vue/KvPagination.js";
46
46
  import { default as qe } from "./vue/KvPieChart.js";
47
47
  import { default as Xe } from "./vue/KvPopper.js";
48
48
  import { default as Ze } from "./vue/KvProgressBar.js";
49
- import { default as eo } from "./vue/KvRadio.js";
50
- import { default as ro } from "./vue/KvSelect.js";
51
- import { default as ao } from "./vue/KvSideSheet.js";
52
- import { default as lo } from "./vue/KvSwitch.js";
53
- import { default as mo } from "./vue/KvTab.js";
54
- import { default as uo } from "./vue/KvTabPanel.js";
55
- import { default as no } from "./vue/KvTabs.js";
56
- import { default as vo } from "./vue/KvTextInput.js";
57
- import { default as Co } from "./vue/KvTextLink.js";
58
- import { default as _o } from "./vue/KvThemeProvider.js";
59
- import { default as No } from "./vue/KvToast.js";
60
- import { default as co } from "./vue/KvTooltip.js";
61
- import { default as Ro } from "./vue/KvTreeMapChart.js";
62
- import { default as Mo } from "./vue/KvUserAvatar.js";
63
- import { default as Io } from "./vue/KvVerticalCarousel.js";
64
- import { default as go } from "./vue/KvVotingCard.js";
65
- import { default as ho } from "./vue/KvVotingCardV2.js";
66
- import { KV_WIDE_LOAN_CARD_FRAGMENT as Vo, KV_WIDE_LOAN_CARD_USER_FRAGMENT as Bo, default as ko } from "./vue/KvWideLoanCard.js";
67
- import { default as bo } from "./vue/KvAtbModal.js";
68
- import { default as Uo } from "./vue/KvSecondaryNav.js";
69
- import { default as Wo } from "./vue/KvWwwHeader.js";
70
- import { default as jo, Mash as zo } from "./utils/Alea.js";
71
- import { useAttrs as qo } from "./utils/attrs.js";
72
- import { carouselUtil as Xo } from "./utils/carousels.js";
73
- import { collapse as Zo, expand as $o } from "./utils/expander.js";
74
- import { isLegacyPlaceholderAvatar as or, randomizedUserAvatarClass as rr } from "./utils/imageUtils.js";
75
- import { LOAN_CALLOUTS_FRAGMENT as ar, LOAN_GEOCODE_FRAGMENT as fr, LOAN_PROGRESS_FRAGMENT as lr, loanCardComputedProperties as sr, loanCardMethods as dr } from "./utils/loanCard.js";
76
- import { BALANCE_CAMPAIGN as pr, BASE_CAMPAIGN as ur, ERL_COOKIE_NAME as xr, NO_BALANCE_CAMPAIGN as nr, TOP_UP_CAMPAIGN as Kr, getDropdownPriceArray as vr, getLendCtaSelectedOption as Ar, isBetween25And50 as Cr, isLessThan25 as ir } from "./utils/loanUtils.js";
77
- import { animationCoordinator as Lr, generateMapMarkers as Nr, getCoordinatesBetween as Tr, getCountryColor as cr, getLoansIntervals as Er } from "./utils/mapUtils.js";
78
- import { lockPrintSingleEl as Or, unlockPrintSingleEl as Mr } from "./utils/printing.js";
79
- import { lockScroll as Ir, lockScrollSmallOnly as Gr, unlockScroll as gr, unlockScrollSmallOnly as Pr } from "./utils/scrollLock.js";
80
- import { buildTailwindClassName as Fr, headerNumberCase as Vr, kebabCase as Br, removeObjectProperty as kr } from "./utils/themeUtils.js";
81
- import { throttle as br } from "./utils/throttle.js";
82
- import { isTargetElement as Ur, offBodyTouchstart as wr, onBodyTouchstart as Wr } from "./utils/touchEvents.js";
83
- import { getTreemap as jr } from "./utils/treemap.js";
84
- import { KvBlueskyIcon as Qr } from "./assets/icons/bluesky.js";
49
+ import { default as eo } from "./vue/KvPulsingDot.js";
50
+ import { default as to } from "./vue/KvRadio.js";
51
+ import { default as ao } from "./vue/KvSelect.js";
52
+ import { default as lo } from "./vue/KvSideSheet.js";
53
+ import { default as mo } from "./vue/KvSwitch.js";
54
+ import { default as uo } from "./vue/KvTab.js";
55
+ import { default as no } from "./vue/KvTabPanel.js";
56
+ import { default as vo } from "./vue/KvTabs.js";
57
+ import { default as io } from "./vue/KvTextInput.js";
58
+ import { default as _o } from "./vue/KvTextLink.js";
59
+ import { default as No } from "./vue/KvThemeProvider.js";
60
+ import { default as co } from "./vue/KvToast.js";
61
+ import { default as Ro } from "./vue/KvTooltip.js";
62
+ import { default as Oo } from "./vue/KvTreeMapChart.js";
63
+ import { default as Io } from "./vue/KvUserAvatar.js";
64
+ import { default as Go } from "./vue/KvUtilityMenu.js";
65
+ import { default as ho } from "./vue/KvVerticalCarousel.js";
66
+ import { default as Vo } from "./vue/KvVotingCard.js";
67
+ import { default as Do } from "./vue/KvVotingCardV2.js";
68
+ import { KV_WIDE_LOAN_CARD_FRAGMENT as yo, KV_WIDE_LOAN_CARD_USER_FRAGMENT as bo, default as Uo } from "./vue/KvWideLoanCard.js";
69
+ import { default as Wo } from "./vue/KvAtbModal.js";
70
+ import { default as jo } from "./vue/KvSecondaryNav.js";
71
+ import { default as Qo } from "./vue/KvWwwHeader.js";
72
+ import { default as Jo, Mash as Xo } from "./utils/Alea.js";
73
+ import { useAttrs as Zo } from "./utils/attrs.js";
74
+ import { carouselUtil as et } from "./utils/carousels.js";
75
+ import { collapse as tt, expand as rt } from "./utils/expander.js";
76
+ import { isLegacyPlaceholderAvatar as ft, randomizedUserAvatarClass as lt } from "./utils/imageUtils.js";
77
+ import { LOAN_CALLOUTS_FRAGMENT as dt, LOAN_GEOCODE_FRAGMENT as mt, LOAN_PROGRESS_FRAGMENT as pt, loanCardComputedProperties as ut, loanCardMethods as xt } from "./utils/loanCard.js";
78
+ import { BALANCE_CAMPAIGN as Kt, BASE_CAMPAIGN as vt, ERL_COOKIE_NAME as At, NO_BALANCE_CAMPAIGN as it, TOP_UP_CAMPAIGN as Ct, getDropdownPriceArray as _t, getLendCtaSelectedOption as Lt, isBetween25And50 as Nt, isLessThan25 as Tt } from "./utils/loanUtils.js";
79
+ import { animationCoordinator as Et, generateMapMarkers as Rt, getCoordinatesBetween as Mt, getCountryColor as Ot, getLoansIntervals as St } from "./utils/mapUtils.js";
80
+ import { lockPrintSingleEl as gt, unlockPrintSingleEl as Gt } from "./utils/printing.js";
81
+ import { lockScroll as ht, lockScrollSmallOnly as Ft, unlockScroll as Vt, unlockScrollSmallOnly as Bt } from "./utils/scrollLock.js";
82
+ import { buildTailwindClassName as kt, headerNumberCase as yt, kebabCase as bt, removeObjectProperty as Ut } from "./utils/themeUtils.js";
83
+ import { throttle as Wt } from "./utils/throttle.js";
84
+ import { isTargetElement as jt, offBodyTouchstart as zt, onBodyTouchstart as Qt } from "./utils/touchEvents.js";
85
+ import { getTreemap as Jt } from "./utils/treemap.js";
86
+ import { KvBlueskyIcon as Yt } from "./assets/icons/bluesky.js";
85
87
  export {
86
- jo as Alea,
87
- pr as BALANCE_CAMPAIGN,
88
- ur as BASE_CAMPAIGN,
89
- xr as ERL_COOKIE_NAME,
88
+ Jo as Alea,
89
+ Kt as BALANCE_CAMPAIGN,
90
+ vt as BASE_CAMPAIGN,
91
+ At as ERL_COOKIE_NAME,
90
92
  E as KV_CLASSIC_LOAN_CARD_FRAGMENT,
91
93
  R as KV_CLASSIC_LOAN_CARD_USER_FRAGMET,
92
94
  ae as KV_INTRODUCTION_LOAN_CARD_FRAGMENT,
93
95
  fe as KV_INTRODUCTION_LOAN_CARD_USER_FRAGMENT,
94
96
  pe as KV_LEND_CTA_FRAGMENT,
95
97
  ue as KV_LEND_CTA_USER_FRAGMENT,
96
- ie as KV_LOAN_ACTIVITIES_FRAGMENT,
98
+ Ce as KV_LOAN_ACTIVITIES_FRAGMENT,
97
99
  Ne as KV_LOAN_BOOKMARK_FRAGMENT,
98
100
  Se as KV_LOAN_TAG_FRAGMENT,
99
101
  he as KV_LOAN_USE_FRAGMENT,
100
- Vo as KV_WIDE_LOAN_CARD_FRAGMENT,
101
- Bo as KV_WIDE_LOAN_CARD_USER_FRAGMENT,
102
- r as KvAccordionItem,
102
+ yo as KV_WIDE_LOAN_CARD_FRAGMENT,
103
+ bo as KV_WIDE_LOAN_CARD_USER_FRAGMENT,
104
+ t as KvAccordionItem,
103
105
  a as KvActivityRow,
104
- bo as KvAtbModal,
105
- Qr as KvBlueskyIcon,
106
+ Wo as KvAtbModal,
107
+ Yt as KvBlueskyIcon,
106
108
  l as KvBorrowerImage,
107
109
  d as KvButton,
108
110
  p as KvCardFrame,
109
111
  x as KvCarousel,
110
112
  K as KvCartModal,
111
113
  A as KvCartPill,
112
- i as KvCheckbox,
114
+ C as KvCheckbox,
113
115
  L as KvCheckoutReceipt,
114
116
  T as KvChip,
115
- O as KvClassicLoanCard,
117
+ M as KvClassicLoanCard,
116
118
  S as KvCommentsAdd,
117
- G as KvCommentsContainer,
119
+ g as KvCommentsContainer,
118
120
  P as KvCommentsHeartButton,
119
121
  F as KvCommentsList,
120
122
  B as KvCommentsListItem,
121
- D as KvCommentsReplyButton,
122
- y as KvContentfulImg,
123
+ k as KvCommentsReplyButton,
124
+ b as KvContentfulImg,
123
125
  w as KvCountdownTimer,
124
126
  H as KvExpandable,
125
127
  z as KvExpandableQuestion,
@@ -127,84 +129,86 @@ export {
127
129
  X as KvGrid,
128
130
  Z as KvImpactDashboardHeader,
129
131
  ee as KvInlineActivityCard,
130
- re as KvInlineActivityFeed,
132
+ te as KvInlineActivityFeed,
131
133
  le as KvIntroductionLoanCard,
132
134
  de as KvLendAmountButton,
133
135
  xe as KvLendCta,
134
136
  Ke as KvLightbox,
135
137
  Ae as KvLineGraph,
136
138
  Be as KvLoadingPlaceholder,
137
- De as KvLoadingSpinner,
139
+ ke as KvLoadingSpinner,
138
140
  _e as KvLoanActivities,
139
141
  Te as KvLoanBookmark,
140
142
  Ee as KvLoanCallouts,
141
- Oe as KvLoanProgressGroup,
143
+ Me as KvLoanProgressGroup,
142
144
  Ie as KvLoanTag,
143
- ge as KvLoanTeamPick,
145
+ Ge as KvLoanTeamPick,
144
146
  Fe as KvLoanUse,
145
- ye as KvMap,
147
+ be as KvMap,
146
148
  we as KvMaterialIcon,
147
149
  He as KvPageContainer,
148
150
  ze as KvPagination,
149
151
  qe as KvPieChart,
150
152
  Xe as KvPopper,
151
153
  Ze as KvProgressBar,
152
- eo as KvRadio,
153
- Uo as KvSecondaryNav,
154
- ro as KvSelect,
155
- ao as KvSideSheet,
156
- lo as KvSwitch,
157
- mo as KvTab,
158
- uo as KvTabPanel,
159
- no as KvTabs,
160
- vo as KvTextInput,
161
- Co as KvTextLink,
162
- _o as KvThemeProvider,
163
- No as KvToast,
164
- co as KvTooltip,
165
- Ro as KvTreeMapChart,
166
- Mo as KvUserAvatar,
167
- Io as KvVerticalCarousel,
168
- go as KvVotingCard,
169
- ho as KvVotingCardV2,
170
- ko as KvWideLoanCard,
171
- Wo as KvWwwHeader,
172
- ar as LOAN_CALLOUTS_FRAGMENT,
173
- fr as LOAN_GEOCODE_FRAGMENT,
174
- lr as LOAN_PROGRESS_FRAGMENT,
175
- zo as Mash,
176
- nr as NO_BALANCE_CAMPAIGN,
177
- Kr as TOP_UP_CAMPAIGN,
178
- Lr as animationCoordinator,
179
- Fr as buildTailwindClassName,
180
- Xo as carouselUtil,
181
- Zo as collapse,
182
- $o as expand,
183
- Nr as generateMapMarkers,
184
- Tr as getCoordinatesBetween,
185
- cr as getCountryColor,
186
- vr as getDropdownPriceArray,
187
- Ar as getLendCtaSelectedOption,
188
- Er as getLoansIntervals,
189
- jr as getTreemap,
190
- Vr as headerNumberCase,
191
- Cr as isBetween25And50,
192
- or as isLegacyPlaceholderAvatar,
193
- ir as isLessThan25,
194
- Ur as isTargetElement,
195
- Br as kebabCase,
196
- sr as loanCardComputedProperties,
197
- dr as loanCardMethods,
198
- Or as lockPrintSingleEl,
199
- Ir as lockScroll,
200
- Gr as lockScrollSmallOnly,
201
- wr as offBodyTouchstart,
202
- Wr as onBodyTouchstart,
203
- rr as randomizedUserAvatarClass,
204
- kr as removeObjectProperty,
205
- br as throttle,
206
- Mr as unlockPrintSingleEl,
207
- gr as unlockScroll,
208
- Pr as unlockScrollSmallOnly,
209
- qo as useAttrs
154
+ eo as KvPulsingDot,
155
+ to as KvRadio,
156
+ jo as KvSecondaryNav,
157
+ ao as KvSelect,
158
+ lo as KvSideSheet,
159
+ mo as KvSwitch,
160
+ uo as KvTab,
161
+ no as KvTabPanel,
162
+ vo as KvTabs,
163
+ io as KvTextInput,
164
+ _o as KvTextLink,
165
+ No as KvThemeProvider,
166
+ co as KvToast,
167
+ Ro as KvTooltip,
168
+ Oo as KvTreeMapChart,
169
+ Io as KvUserAvatar,
170
+ Go as KvUtilityMenu,
171
+ ho as KvVerticalCarousel,
172
+ Vo as KvVotingCard,
173
+ Do as KvVotingCardV2,
174
+ Uo as KvWideLoanCard,
175
+ Qo as KvWwwHeader,
176
+ dt as LOAN_CALLOUTS_FRAGMENT,
177
+ mt as LOAN_GEOCODE_FRAGMENT,
178
+ pt as LOAN_PROGRESS_FRAGMENT,
179
+ Xo as Mash,
180
+ it as NO_BALANCE_CAMPAIGN,
181
+ Ct as TOP_UP_CAMPAIGN,
182
+ Et as animationCoordinator,
183
+ kt as buildTailwindClassName,
184
+ et as carouselUtil,
185
+ tt as collapse,
186
+ rt as expand,
187
+ Rt as generateMapMarkers,
188
+ Mt as getCoordinatesBetween,
189
+ Ot as getCountryColor,
190
+ _t as getDropdownPriceArray,
191
+ Lt as getLendCtaSelectedOption,
192
+ St as getLoansIntervals,
193
+ Jt as getTreemap,
194
+ yt as headerNumberCase,
195
+ Nt as isBetween25And50,
196
+ ft as isLegacyPlaceholderAvatar,
197
+ Tt as isLessThan25,
198
+ jt as isTargetElement,
199
+ bt as kebabCase,
200
+ ut as loanCardComputedProperties,
201
+ xt as loanCardMethods,
202
+ gt as lockPrintSingleEl,
203
+ ht as lockScroll,
204
+ Ft as lockScrollSmallOnly,
205
+ zt as offBodyTouchstart,
206
+ Qt as onBodyTouchstart,
207
+ lt as randomizedUserAvatarClass,
208
+ Ut as removeObjectProperty,
209
+ Wt as throttle,
210
+ Gt as unlockPrintSingleEl,
211
+ Vt as unlockScroll,
212
+ Bt as unlockScrollSmallOnly,
213
+ Zo as useAttrs
210
214
  };
@@ -1,12 +1,16 @@
1
- import { computed as n, resolveComponent as d, openBlock as l, createBlock as m, withCtx as i, createElementVNode as h, normalizeClass as u, renderSlot as c } from "vue";
2
- import { defaultTheme as r, stoneDarkTheme as g, stoneLightTheme as f, marigoldLightTheme as p, greenLightTheme as v, greenDarkTheme as C } from "@kiva/kv-tokens";
3
- import k from "./KvThemeProvider.js";
4
- import _ from "../_virtual/_plugin-vue_export-helper.js";
5
- const w = {
1
+ import { computed as l, resolveComponent as n, openBlock as d, createBlock as m, withCtx as i, createElementVNode as h, normalizeClass as u, renderSlot as c } from "vue";
2
+ import { defaultTheme as r, stoneDarkTheme as f, stoneLightTheme as g, marigoldLightTheme as p, greenLightTheme as v, greenDarkTheme as w } from "@kiva/kv-tokens";
3
+ import C from "./KvThemeProvider.js";
4
+ import k from "../_virtual/_plugin-vue_export-helper.js";
5
+ const _ = {
6
6
  components: {
7
- KvThemeProvider: k
7
+ KvThemeProvider: C
8
8
  },
9
9
  props: {
10
+ allowOverflow: {
11
+ type: Boolean,
12
+ default: !0
13
+ },
10
14
  bgColorClass: {
11
15
  type: String,
12
16
  default: "tw-bg-primary"
@@ -39,20 +43,20 @@ const w = {
39
43
  }
40
44
  },
41
45
  setup(e) {
42
- return { themeStyle: n(() => {
46
+ return { themeStyle: l(() => {
43
47
  switch (e.theme) {
44
48
  case "default":
45
49
  return r;
46
50
  case "greenDark":
47
- return C;
51
+ return w;
48
52
  case "greenLight":
49
53
  return v;
50
54
  case "marigoldLight":
51
55
  return p;
52
56
  case "stoneLight":
53
- return f;
54
- case "stoneDark":
55
57
  return g;
58
+ case "stoneDark":
59
+ return f;
56
60
  default:
57
61
  return r;
58
62
  }
@@ -60,14 +64,21 @@ const w = {
60
64
  }
61
65
  };
62
66
  function y(e, a, t, o, L, S) {
63
- const s = d("kv-theme-provider");
64
- return l(), m(s, {
67
+ const s = n("kv-theme-provider");
68
+ return d(), m(s, {
65
69
  theme: o.themeStyle,
66
70
  class: "kv-card-frame-theme-provider"
67
71
  }, {
68
72
  default: i(() => [
69
73
  h("div", {
70
- class: u(["kv-card-frame tw-overflow-hidden", t.bgColorClass, t.radiusClass, t.shadowClass, t.borderClass])
74
+ class: u([
75
+ "kv-card-frame",
76
+ t.bgColorClass,
77
+ t.radiusClass,
78
+ t.shadowClass,
79
+ t.borderClass,
80
+ { "tw-overflow-hidden": !t.allowOverflow }
81
+ ])
71
82
  }, [
72
83
  c(e.$slots, "default")
73
84
  ], 2)
@@ -75,7 +86,7 @@ function y(e, a, t, o, L, S) {
75
86
  _: 3
76
87
  }, 8, ["theme"]);
77
88
  }
78
- const B = /* @__PURE__ */ _(w, [["render", y]]);
89
+ const B = /* @__PURE__ */ k(_, [["render", y]]);
79
90
  export {
80
91
  B as default
81
92
  };
@@ -0,0 +1 @@
1
+ .pulsing-dot[data-v-51110652]{position:relative}.pulsing-dot__circle[data-v-51110652]{height:.5rem;width:.5rem;border-radius:500rem}.pulsing-dot__ring[data-v-51110652]{border-width:2px;border-style:solid;position:absolute;height:.75rem;width:.75rem;border-radius:500rem;left:-2px;top:-2px;animation:pulsate-51110652 1s ease-out;animation-iteration-count:infinite;opacity:0}@keyframes pulsate-51110652{0%{transform:scale(.1);opacity:0}50%{opacity:1}to{transform:scale(1.2);opacity:0}}
@@ -0,0 +1,33 @@
1
+ import { openBlock as e, createElementBlock as l, createElementVNode as o, normalizeClass as s } from "vue";
2
+ import "./KvPulsingDot.css";
3
+ import r from "../_virtual/_plugin-vue_export-helper.js";
4
+ const n = {
5
+ name: "KvPulsingDot",
6
+ props: {
7
+ dotColorClass: {
8
+ type: String,
9
+ default: "tw-bg-brand"
10
+ },
11
+ pulseColorClass: {
12
+ type: String,
13
+ default: "tw-border-brand"
14
+ }
15
+ },
16
+ setup() {
17
+ return {};
18
+ }
19
+ }, a = { class: "pulsing-dot" };
20
+ function d(c, i, t, p, u, _) {
21
+ return e(), l("div", a, [
22
+ o("div", {
23
+ class: s(["pulsing-dot__ring", t.pulseColorClass])
24
+ }, null, 2),
25
+ o("div", {
26
+ class: s(["pulsing-dot__circle", t.dotColorClass])
27
+ }, null, 2)
28
+ ]);
29
+ }
30
+ const C = /* @__PURE__ */ r(n, [["render", d], ["__scopeId", "data-v-51110652"]]);
31
+ export {
32
+ C as default
33
+ };
@@ -0,0 +1,107 @@
1
+ import { ref as a, onMounted as f, onBeforeUnmount as g, resolveComponent as h, resolveDirective as y, openBlock as s, createElementBlock as d, normalizeClass as u, withDirectives as m, withModifiers as k, createVNode as p, createElementVNode as b, normalizeStyle as C, renderSlot as M, vShow as S } from "vue";
2
+ import { mdiDotsVertical as w } from "@mdi/js";
3
+ import _ from "./KvMaterialIcon.js";
4
+ import z from "../_virtual/_plugin-vue_export-helper.js";
5
+ const A = {
6
+ name: "KvUtilityMenu",
7
+ components: {
8
+ KvMaterialIcon: _
9
+ },
10
+ props: {
11
+ analyticsCategory: {
12
+ type: String,
13
+ default: "event-tracking"
14
+ },
15
+ buttonBorderClass: {
16
+ type: String,
17
+ default: ""
18
+ },
19
+ buttonRadiusClass: {
20
+ type: String,
21
+ default: "tw-rounded"
22
+ },
23
+ buttonSize: {
24
+ type: String,
25
+ default: "medium",
26
+ validator(n) {
27
+ return [
28
+ "small",
29
+ "medium"
30
+ ].includes(n);
31
+ }
32
+ },
33
+ icon: {
34
+ type: String,
35
+ default: w
36
+ },
37
+ menuPosition: {
38
+ type: String,
39
+ default: "left-aligned",
40
+ validator(n) {
41
+ return [
42
+ "left-aligned",
43
+ "right-aligned"
44
+ ].includes(n);
45
+ }
46
+ }
47
+ },
48
+ emits: [
49
+ "kv-utility-menu-clicked"
50
+ ],
51
+ setup(n, { emit: i }) {
52
+ const t = a(null), e = a(!1), c = a(null), o = (r) => {
53
+ t.value && !t.value.contains(r.target) && (e.value = !1);
54
+ }, l = () => {
55
+ e.value = !e.value, i("kv-utility-menu-clicked", { open: e.value });
56
+ };
57
+ return f(() => {
58
+ document.addEventListener("click", o);
59
+ }), g(() => {
60
+ document.removeEventListener("click", o);
61
+ }), {
62
+ handleMenuClickOutside: o,
63
+ handleMenuAnchorClick: l,
64
+ mdiDotsVertical: w,
65
+ menuAnchor: t,
66
+ menuOpen: e,
67
+ optionsMenu: c
68
+ };
69
+ }
70
+ };
71
+ function B(n, i, t, e, c, o) {
72
+ const l = h("KvMaterialIcon"), r = y("kv-track-event");
73
+ return s(), d("div", {
74
+ class: u(["tw-relative utitlity-menu-wrapper", [
75
+ t.buttonSize === "small" ? "tw-w-4 tw-h-4" : "tw-w-6 tw-h-6"
76
+ ]])
77
+ }, [
78
+ m((s(), d("button", {
79
+ ref: "menuAnchor",
80
+ class: u(["tw-absolute tw-bg-white tw-flex tw-items-center tw-justify-center menu-trigger", [
81
+ t.buttonBorderClass,
82
+ t.buttonRadiusClass,
83
+ t.buttonSize === "small" ? "tw-w-4 tw-h-4" : "tw-w-6 tw-h-6"
84
+ ]]),
85
+ onClick: i[0] || (i[0] = k((...v) => e.handleMenuAnchorClick && e.handleMenuAnchorClick(...v), ["stop"]))
86
+ }, [
87
+ p(l, { icon: t.icon }, null, 8, ["icon"])
88
+ ], 2)), [
89
+ [r, ["`${analyticsCategory}`", "click", "utility-menu"]]
90
+ ]),
91
+ m(b("div", {
92
+ ref: "optionsMenu",
93
+ class: u(["tw-absolute tw-rounded tw-border tw-border-tertiary tw-bg-white tw-z-1 tw-shadow-lg vertical-menu", [{
94
+ "tw-right-0": t.menuPosition === "right-aligned"
95
+ }]]),
96
+ style: C(`width: 236px; top: ${t.buttonSize === "small" ? "2.5rem" : "3.5rem"};`)
97
+ }, [
98
+ M(n.$slots, "default")
99
+ ], 6), [
100
+ [S, e.menuOpen]
101
+ ])
102
+ ], 2);
103
+ }
104
+ const I = /* @__PURE__ */ z(A, [["render", B]]);
105
+ export {
106
+ I as default
107
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kiva/kv-components",
3
- "version": "6.42.0",
3
+ "version": "6.43.0",
4
4
  "type": "module",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -114,5 +114,5 @@
114
114
  "embla-carousel-fade",
115
115
  "popper.js"
116
116
  ],
117
- "gitHead": "5a5772e9484adec6dffc2867ed9496db570ca57d"
117
+ "gitHead": "c153687be5fd01c127a6c117eb061899d3da5105"
118
118
  }