@kiva/kv-components 8.11.3 → 8.12.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/data/allCountriesISOMap.d.ts +1 -0
- package/dist/data/allCountriesISOMap.js +249 -0
- package/dist/data/simpleMapCentroids.d.ts +8 -0
- package/dist/data/simpleMapCentroids.js +1265 -0
- package/dist/data/simpleMapCountryPaths.d.ts +6 -0
- package/dist/data/simpleMapCountryPaths.js +215 -0
- package/dist/data/simpleMapPaths.d.ts +214 -0
- package/dist/data/simpleMapPaths.js +216 -0
- package/dist/index.js +209 -207
- package/dist/utils/useMapTourCycle.d.ts +20 -0
- package/dist/utils/useMapTourCycle.js +73 -0
- package/dist/vue/KvAtbModal.css +1 -1
- package/dist/vue/KvAtbModal.js +5 -5
- package/dist/vue/KvCheckoutReceipt.css +1 -1
- package/dist/vue/KvCheckoutReceipt.js +31 -31
- package/dist/vue/KvIntroductionLoanCard.css +1 -1
- package/dist/vue/KvIntroductionLoanCard.js +15 -15
- package/dist/vue/KvLoanActivities.css +1 -1
- package/dist/vue/KvLoanActivities.js +19 -19
- package/dist/vue/KvLoanTeamPick.js +1 -1
- package/dist/vue/KvPieChartV2.vue.d.ts +2 -2
- package/dist/vue/KvPill.js +1 -1
- package/dist/vue/KvProgressCircle.vue.d.ts +1 -1
- package/dist/vue/KvSecondaryNav.vue.d.ts +1 -1
- package/dist/vue/KvSideSheet.js +15 -12
- package/dist/vue/KvSimpleMap.css +1 -0
- package/dist/vue/KvSimpleMap.js +7 -0
- package/dist/vue/KvSimpleMap.vue.d.ts +270 -0
- package/dist/vue/KvSimpleMap2.js +529 -0
- package/dist/vue/KvVotingCard.css +1 -1
- package/dist/vue/KvVotingCard.js +14 -14
- package/dist/vue/KvVotingCardV2.js +23 -23
- package/dist/vue/KvWideLoanCard.css +1 -1
- package/dist/vue/KvWideLoanCard.js +2 -2
- package/dist/vue/index.d.ts +2 -0
- package/docs/make-to-vue.md +74 -22
- package/package.json +3 -3
package/dist/vue/KvSideSheet.js
CHANGED
|
@@ -1,12 +1,15 @@
|
|
|
1
1
|
import y from "./KvSideSheet2.js";
|
|
2
|
-
import { resolveComponent as m, openBlock as n, createElementBlock as w, normalizeClass as
|
|
2
|
+
import { resolveComponent as m, openBlock as n, createElementBlock as w, normalizeClass as a, withModifiers as g, createElementVNode as o, normalizeStyle as d, createVNode as f, createCommentVNode as r, toDisplayString as S, renderSlot as h } from "vue";
|
|
3
3
|
import b from "../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const k = { class: "tw-flex tw-gap-1.5" }, v = {
|
|
4
|
+
const k = { class: "tw-flex tw-gap-1.5" }, v = {
|
|
5
|
+
key: 1,
|
|
6
|
+
class: "tw-text-title"
|
|
7
|
+
}, x = { class: "tw-flex tw-gap-1.5" };
|
|
5
8
|
function u(s, e, l, t, C, _) {
|
|
6
9
|
const c = m("kv-material-icon");
|
|
7
10
|
return l.visible ? (n(), w("div", {
|
|
8
11
|
key: 0,
|
|
9
|
-
class:
|
|
12
|
+
class: a(["tw-block lg:tw-mt-0 tw-fixed tw-inset-0 tw-bg-black tw-transition-all md:tw-duration-150 tw-z-modal", {
|
|
10
13
|
"tw-bg-opacity-0 tw-delay-300": !t.open,
|
|
11
14
|
"tw-bg-opacity-low": t.open
|
|
12
15
|
}]),
|
|
@@ -14,7 +17,7 @@ function u(s, e, l, t, C, _) {
|
|
|
14
17
|
}, [
|
|
15
18
|
o("div", {
|
|
16
19
|
ref: "sideSheetRef",
|
|
17
|
-
class:
|
|
20
|
+
class: a(["tw-fixed tw-right-0 tw-transition-all tw-duration-300 tw-bg-white", {
|
|
18
21
|
"tw-translate-x-full": !t.open,
|
|
19
22
|
"tw-translate-x-0": t.open,
|
|
20
23
|
"tw-h-full": s.$slots.controls
|
|
@@ -27,7 +30,7 @@ function u(s, e, l, t, C, _) {
|
|
|
27
30
|
}, [
|
|
28
31
|
o("div", {
|
|
29
32
|
ref: "headlineRef",
|
|
30
|
-
class:
|
|
33
|
+
class: a(["tw-flex tw-justify-between tw-transition-opacity tw-duration-200 tw-px-3 tw-py-2 tw-border-tertiary tw-gap-1.5", {
|
|
31
34
|
"tw-opacity-0": !t.open,
|
|
32
35
|
"tw-opacity-full": t.open,
|
|
33
36
|
"tw-border-b": l.showHeadlineBorder
|
|
@@ -43,8 +46,8 @@ function u(s, e, l, t, C, _) {
|
|
|
43
46
|
class: "tw-w-3 tw-h-3",
|
|
44
47
|
icon: t.mdiArrowLeft
|
|
45
48
|
}, null, 8, ["icon"])
|
|
46
|
-
])) :
|
|
47
|
-
l.headline ? (n(), w("h3", v, S(l.headline), 1)) :
|
|
49
|
+
])) : r("", !0),
|
|
50
|
+
l.headline ? (n(), w("h3", v, S(l.headline), 1)) : r("", !0)
|
|
48
51
|
]),
|
|
49
52
|
o("div", x, [
|
|
50
53
|
l.showGoToLink ? (n(), w("button", {
|
|
@@ -56,7 +59,7 @@ function u(s, e, l, t, C, _) {
|
|
|
56
59
|
class: "tw-w-3 tw-h-3",
|
|
57
60
|
icon: t.mdiOpenInNew
|
|
58
61
|
}, null, 8, ["icon"])
|
|
59
|
-
])) :
|
|
62
|
+
])) : r("", !0),
|
|
60
63
|
o("button", {
|
|
61
64
|
class: "hover:tw-text-action-highlight tw-flex tw-items-center tw-justify-center",
|
|
62
65
|
onClick: e[2] || (e[2] = (...i) => t.closeSideSheet && t.closeSideSheet(...i))
|
|
@@ -77,7 +80,7 @@ function u(s, e, l, t, C, _) {
|
|
|
77
80
|
])
|
|
78
81
|
}, [
|
|
79
82
|
o("div", {
|
|
80
|
-
class:
|
|
83
|
+
class: a(["tw-px-2 tw-transition-opacity tw-duration-200", {
|
|
81
84
|
"tw-opacity-0": !t.open,
|
|
82
85
|
"tw-opacity-full": t.open
|
|
83
86
|
}])
|
|
@@ -88,17 +91,17 @@ function u(s, e, l, t, C, _) {
|
|
|
88
91
|
s.$slots.controls ? (n(), w("div", {
|
|
89
92
|
key: 0,
|
|
90
93
|
ref: "controlsRef",
|
|
91
|
-
class:
|
|
94
|
+
class: a(["tw-absolute tw-bottom-0 tw-w-full tw-border-t tw-border-tertiary tw-bg-white tw-transition-opacity tw-duration-200", {
|
|
92
95
|
"tw-opacity-0": !t.open,
|
|
93
96
|
"tw-opacity-full": t.open
|
|
94
97
|
}]),
|
|
95
98
|
style: { "z-index": "999" }
|
|
96
99
|
}, [
|
|
97
100
|
h(s.$slots, "controls")
|
|
98
|
-
], 2)) :
|
|
101
|
+
], 2)) : r("", !0)
|
|
99
102
|
], 4)
|
|
100
103
|
], 6)
|
|
101
|
-
], 2)) :
|
|
104
|
+
], 2)) : r("", !0);
|
|
102
105
|
}
|
|
103
106
|
const z = /* @__PURE__ */ b(y, [["render", u]]);
|
|
104
107
|
export {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.kv-simple-map__pan-layer[data-v-49496ad7]{transform-origin:0 0}.kv-simple-map__control-btn[data-v-49496ad7]{display:flex;height:2rem;width:2rem;cursor:pointer;align-items:center;justify-content:center;border-radius:.25rem;border-width:.0625rem;--tw-border-opacity: 1;border-color:rgba(var(--border-tertiary),var(--tw-border-opacity, 1));--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity, 1));--tw-shadow: 0 1px 4px 0 rgb(0 0 0 / .08);--tw-shadow-colored: 0 1px 4px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.kv-simple-map__control-btn[data-v-49496ad7]:disabled{cursor:default;opacity:.3}.kv-simple-map__control-btn[data-v-49496ad7]:hover:not(:disabled){--tw-bg-opacity: 1;background-color:rgba(var(--bg-secondary),var(--tw-bg-opacity, 1))}.kv-simple-map__play-btn[data-v-49496ad7]{border-radius:500rem}.kv-simple-map__default-popup[data-v-49496ad7]{white-space:nowrap;border-radius:.5rem;--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity, 1));padding:.5rem 1.5rem;text-align:center;--tw-shadow: 0 1px 4px 0 rgb(0 0 0 / .08);--tw-shadow-colored: 0 1px 4px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow);min-width:80px}.kv-simple-map__popup[data-v-49496ad7]{height:0;width:0}.kv-simple-map__popup-content[data-v-49496ad7]{position:absolute;white-space:nowrap}.kv-simple-map__popup--top>.kv-simple-map__popup-content[data-v-49496ad7]{bottom:var(--kv-simple-map-popup-offset, 4px);left:0;transform:translate(-50%)}.kv-simple-map__popup--bottom>.kv-simple-map__popup-content[data-v-49496ad7]{top:var(--kv-simple-map-popup-offset, 4px);left:0;transform:translate(-50%)}.kv-simple-map__popup--bottom-right>.kv-simple-map__popup-content[data-v-49496ad7]{top:var(--kv-simple-map-popup-offset, 4px);left:var(--kv-simple-map-popup-offset, 4px)}.kv-simple-map-popup-enter-active[data-v-49496ad7],.kv-simple-map-popup-leave-active[data-v-49496ad7]{transition:opacity .18s ease-out}.kv-simple-map-popup-enter-from[data-v-49496ad7],.kv-simple-map-popup-leave-to[data-v-49496ad7]{opacity:0}.kv-simple-map-popup-enter-to[data-v-49496ad7],.kv-simple-map-popup-leave-from[data-v-49496ad7]{opacity:1}
|
|
@@ -0,0 +1,270 @@
|
|
|
1
|
+
import { PropType } from 'vue';
|
|
2
|
+
export interface SimpleMapCountry {
|
|
3
|
+
id: string;
|
|
4
|
+
name?: string;
|
|
5
|
+
loanCount?: number;
|
|
6
|
+
cx?: number;
|
|
7
|
+
cy?: number;
|
|
8
|
+
}
|
|
9
|
+
declare function __VLS_template(): {
|
|
10
|
+
attrs: Partial<{}>;
|
|
11
|
+
slots: {
|
|
12
|
+
popup?(_: {
|
|
13
|
+
country: SimpleMapCountry;
|
|
14
|
+
}): any;
|
|
15
|
+
};
|
|
16
|
+
refs: {
|
|
17
|
+
rootRef: HTMLDivElement;
|
|
18
|
+
};
|
|
19
|
+
rootEl: HTMLDivElement;
|
|
20
|
+
};
|
|
21
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
22
|
+
declare const __VLS_component: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
23
|
+
countries: {
|
|
24
|
+
type: PropType<SimpleMapCountry[]>;
|
|
25
|
+
default: () => any[];
|
|
26
|
+
};
|
|
27
|
+
aspectRatio: {
|
|
28
|
+
type: NumberConstructor;
|
|
29
|
+
default: number;
|
|
30
|
+
};
|
|
31
|
+
height: {
|
|
32
|
+
type: NumberConstructor;
|
|
33
|
+
default: any;
|
|
34
|
+
};
|
|
35
|
+
width: {
|
|
36
|
+
type: NumberConstructor;
|
|
37
|
+
default: any;
|
|
38
|
+
};
|
|
39
|
+
autoplay: {
|
|
40
|
+
type: BooleanConstructor;
|
|
41
|
+
default: boolean;
|
|
42
|
+
};
|
|
43
|
+
loop: {
|
|
44
|
+
type: BooleanConstructor;
|
|
45
|
+
default: boolean;
|
|
46
|
+
};
|
|
47
|
+
allowDragging: {
|
|
48
|
+
type: BooleanConstructor;
|
|
49
|
+
default: boolean;
|
|
50
|
+
};
|
|
51
|
+
showZoomControls: {
|
|
52
|
+
type: BooleanConstructor;
|
|
53
|
+
default: boolean;
|
|
54
|
+
};
|
|
55
|
+
zoomFactor: {
|
|
56
|
+
type: NumberConstructor;
|
|
57
|
+
default: number;
|
|
58
|
+
};
|
|
59
|
+
minZoom: {
|
|
60
|
+
type: NumberConstructor;
|
|
61
|
+
default: number;
|
|
62
|
+
};
|
|
63
|
+
maxZoom: {
|
|
64
|
+
type: NumberConstructor;
|
|
65
|
+
default: number;
|
|
66
|
+
};
|
|
67
|
+
zoomStep: {
|
|
68
|
+
type: NumberConstructor;
|
|
69
|
+
default: number;
|
|
70
|
+
};
|
|
71
|
+
highlightColor: {
|
|
72
|
+
type: StringConstructor;
|
|
73
|
+
default: any;
|
|
74
|
+
};
|
|
75
|
+
baseColor: {
|
|
76
|
+
type: StringConstructor;
|
|
77
|
+
default: any;
|
|
78
|
+
};
|
|
79
|
+
loanCountTiers: {
|
|
80
|
+
type: PropType<[number, number, number, number]>;
|
|
81
|
+
default: () => number[];
|
|
82
|
+
};
|
|
83
|
+
oceanColor: {
|
|
84
|
+
type: StringConstructor;
|
|
85
|
+
default: string;
|
|
86
|
+
};
|
|
87
|
+
popupPlacement: {
|
|
88
|
+
type: PropType<"top" | "bottom-right">;
|
|
89
|
+
default: string;
|
|
90
|
+
validator: (v: string) => boolean;
|
|
91
|
+
};
|
|
92
|
+
popupOffset: {
|
|
93
|
+
type: NumberConstructor;
|
|
94
|
+
default: number;
|
|
95
|
+
};
|
|
96
|
+
fitToCountries: {
|
|
97
|
+
type: BooleanConstructor;
|
|
98
|
+
default: boolean;
|
|
99
|
+
};
|
|
100
|
+
fitPadding: {
|
|
101
|
+
type: NumberConstructor;
|
|
102
|
+
default: number;
|
|
103
|
+
};
|
|
104
|
+
initialDelay: {
|
|
105
|
+
type: NumberConstructor;
|
|
106
|
+
default: number;
|
|
107
|
+
};
|
|
108
|
+
panDuration: {
|
|
109
|
+
type: NumberConstructor;
|
|
110
|
+
default: number;
|
|
111
|
+
};
|
|
112
|
+
holdPerStep: {
|
|
113
|
+
type: NumberConstructor;
|
|
114
|
+
default: number;
|
|
115
|
+
};
|
|
116
|
+
popupHideBefore: {
|
|
117
|
+
type: NumberConstructor;
|
|
118
|
+
default: number;
|
|
119
|
+
};
|
|
120
|
+
holdAll: {
|
|
121
|
+
type: NumberConstructor;
|
|
122
|
+
default: number;
|
|
123
|
+
};
|
|
124
|
+
fadeDuration: {
|
|
125
|
+
type: NumberConstructor;
|
|
126
|
+
default: number;
|
|
127
|
+
};
|
|
128
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
129
|
+
countries: {
|
|
130
|
+
type: PropType<SimpleMapCountry[]>;
|
|
131
|
+
default: () => any[];
|
|
132
|
+
};
|
|
133
|
+
aspectRatio: {
|
|
134
|
+
type: NumberConstructor;
|
|
135
|
+
default: number;
|
|
136
|
+
};
|
|
137
|
+
height: {
|
|
138
|
+
type: NumberConstructor;
|
|
139
|
+
default: any;
|
|
140
|
+
};
|
|
141
|
+
width: {
|
|
142
|
+
type: NumberConstructor;
|
|
143
|
+
default: any;
|
|
144
|
+
};
|
|
145
|
+
autoplay: {
|
|
146
|
+
type: BooleanConstructor;
|
|
147
|
+
default: boolean;
|
|
148
|
+
};
|
|
149
|
+
loop: {
|
|
150
|
+
type: BooleanConstructor;
|
|
151
|
+
default: boolean;
|
|
152
|
+
};
|
|
153
|
+
allowDragging: {
|
|
154
|
+
type: BooleanConstructor;
|
|
155
|
+
default: boolean;
|
|
156
|
+
};
|
|
157
|
+
showZoomControls: {
|
|
158
|
+
type: BooleanConstructor;
|
|
159
|
+
default: boolean;
|
|
160
|
+
};
|
|
161
|
+
zoomFactor: {
|
|
162
|
+
type: NumberConstructor;
|
|
163
|
+
default: number;
|
|
164
|
+
};
|
|
165
|
+
minZoom: {
|
|
166
|
+
type: NumberConstructor;
|
|
167
|
+
default: number;
|
|
168
|
+
};
|
|
169
|
+
maxZoom: {
|
|
170
|
+
type: NumberConstructor;
|
|
171
|
+
default: number;
|
|
172
|
+
};
|
|
173
|
+
zoomStep: {
|
|
174
|
+
type: NumberConstructor;
|
|
175
|
+
default: number;
|
|
176
|
+
};
|
|
177
|
+
highlightColor: {
|
|
178
|
+
type: StringConstructor;
|
|
179
|
+
default: any;
|
|
180
|
+
};
|
|
181
|
+
baseColor: {
|
|
182
|
+
type: StringConstructor;
|
|
183
|
+
default: any;
|
|
184
|
+
};
|
|
185
|
+
loanCountTiers: {
|
|
186
|
+
type: PropType<[number, number, number, number]>;
|
|
187
|
+
default: () => number[];
|
|
188
|
+
};
|
|
189
|
+
oceanColor: {
|
|
190
|
+
type: StringConstructor;
|
|
191
|
+
default: string;
|
|
192
|
+
};
|
|
193
|
+
popupPlacement: {
|
|
194
|
+
type: PropType<"top" | "bottom-right">;
|
|
195
|
+
default: string;
|
|
196
|
+
validator: (v: string) => boolean;
|
|
197
|
+
};
|
|
198
|
+
popupOffset: {
|
|
199
|
+
type: NumberConstructor;
|
|
200
|
+
default: number;
|
|
201
|
+
};
|
|
202
|
+
fitToCountries: {
|
|
203
|
+
type: BooleanConstructor;
|
|
204
|
+
default: boolean;
|
|
205
|
+
};
|
|
206
|
+
fitPadding: {
|
|
207
|
+
type: NumberConstructor;
|
|
208
|
+
default: number;
|
|
209
|
+
};
|
|
210
|
+
initialDelay: {
|
|
211
|
+
type: NumberConstructor;
|
|
212
|
+
default: number;
|
|
213
|
+
};
|
|
214
|
+
panDuration: {
|
|
215
|
+
type: NumberConstructor;
|
|
216
|
+
default: number;
|
|
217
|
+
};
|
|
218
|
+
holdPerStep: {
|
|
219
|
+
type: NumberConstructor;
|
|
220
|
+
default: number;
|
|
221
|
+
};
|
|
222
|
+
popupHideBefore: {
|
|
223
|
+
type: NumberConstructor;
|
|
224
|
+
default: number;
|
|
225
|
+
};
|
|
226
|
+
holdAll: {
|
|
227
|
+
type: NumberConstructor;
|
|
228
|
+
default: number;
|
|
229
|
+
};
|
|
230
|
+
fadeDuration: {
|
|
231
|
+
type: NumberConstructor;
|
|
232
|
+
default: number;
|
|
233
|
+
};
|
|
234
|
+
}>> & Readonly<{}>, {
|
|
235
|
+
height: number;
|
|
236
|
+
width: number;
|
|
237
|
+
aspectRatio: number;
|
|
238
|
+
loop: boolean;
|
|
239
|
+
autoplay: boolean;
|
|
240
|
+
allowDragging: boolean;
|
|
241
|
+
initialDelay: number;
|
|
242
|
+
panDuration: number;
|
|
243
|
+
holdPerStep: number;
|
|
244
|
+
popupHideBefore: number;
|
|
245
|
+
holdAll: number;
|
|
246
|
+
fadeDuration: number;
|
|
247
|
+
countries: SimpleMapCountry[];
|
|
248
|
+
showZoomControls: boolean;
|
|
249
|
+
zoomFactor: number;
|
|
250
|
+
minZoom: number;
|
|
251
|
+
maxZoom: number;
|
|
252
|
+
zoomStep: number;
|
|
253
|
+
highlightColor: string;
|
|
254
|
+
baseColor: string;
|
|
255
|
+
loanCountTiers: [number, number, number, number];
|
|
256
|
+
oceanColor: string;
|
|
257
|
+
popupPlacement: "top" | "bottom-right";
|
|
258
|
+
popupOffset: number;
|
|
259
|
+
fitToCountries: boolean;
|
|
260
|
+
fitPadding: number;
|
|
261
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {
|
|
262
|
+
rootRef: HTMLDivElement;
|
|
263
|
+
}, HTMLDivElement>;
|
|
264
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
265
|
+
export default _default;
|
|
266
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
267
|
+
new (): {
|
|
268
|
+
$slots: S;
|
|
269
|
+
};
|
|
270
|
+
};
|