@vcita/design-system 0.5.1-beta.13 → 0.5.1-beta.14
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/CHANGELOG.MD +4 -0
- package/dist/@vcita/design-system.esm.js +1086 -917
- package/dist/@vcita/design-system.min.js +1 -1
- package/dist/@vcita/design-system.ssr.js +947 -785
- package/init/SvgIcons.js +2 -1
- package/init/svgImages.js +2 -1
- package/package.json +1 -1
- package/src/components/VcTextField/VcTextField.spec.js +67 -1
- package/src/components/VcTextField/VcTextField.stories.js +45 -1
- package/src/components/VcTextField/VcTextField.vue +23 -2
- package/src/components/VcUpsellBlock/VcUpsellBlock.spec.js +104 -0
- package/src/components/VcUpsellBlock/VcUpsellBlock.stories.js +124 -0
- package/src/components/VcUpsellBlock/VcUpsellBlock.vue +285 -0
- package/src/components/index.js +3 -1
- package/src/components/listBox/VcListbox/VcListbox.vue +5 -8
- package/src/components/modal/elements/VcModalContainer.vue +2 -1
- package/src/stories/assets/pics/upsellPage.png +0 -0
|
@@ -0,0 +1,285 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<VcLayout class="VcUpsellBlock justify-space-between align-md-center" :class="isDialog ? 'pt-2 dialog-height' : ''" :data-qa="dataQa">
|
|
3
|
+
<div class="text-container flex-column pa-6 pb-0">
|
|
4
|
+
<div class="title-text mb-4">{{titleText}}</div>
|
|
5
|
+
<div class="sub-text mb-6">{{subtitleText}}</div>
|
|
6
|
+
<div v-if="bulletsText.length > 0" v-for="(item, index) in bulletsText" :key="index" class="bullets-text d-flex mb-3">
|
|
7
|
+
<div v-if="icon" class="align-self-start bullets-icon">
|
|
8
|
+
<VcIcon size="16">{{icon}}</VcIcon>
|
|
9
|
+
</div>
|
|
10
|
+
<span class="bullets-span">{{item}}</span>
|
|
11
|
+
</div>
|
|
12
|
+
<div v-if="linkText || buttonText" class="cta-container d-flex mt-md-6" :class="isDialog ? 'cta-container-dialog' : ''">
|
|
13
|
+
<VcButton v-if="buttonText" class="primary-cta" :pill="true" @click="$emit('buttonClick')">{{buttonText}}</VcButton>
|
|
14
|
+
<VcLink v-if="linkText" class="secondary-cta justify-center" :url="linkUrl" :label="linkText"></VcLink>
|
|
15
|
+
</div>
|
|
16
|
+
</div>
|
|
17
|
+
<VcLayout class="images-container">
|
|
18
|
+
<VcSvg class="background-stain" :svg="$svgImages.background_stain" />
|
|
19
|
+
<VcImage class="upsell-image" :image="imageUrl"></VcImage>
|
|
20
|
+
</VcLayout>
|
|
21
|
+
</VcLayout>
|
|
22
|
+
</template>
|
|
23
|
+
|
|
24
|
+
<script>
|
|
25
|
+
import VcLayout from "@/components/VcLayout/VcLayout.vue";
|
|
26
|
+
import VcButton from "@/components/VcButton/VcButton.vue";
|
|
27
|
+
import VcLink from "@/components/VcLink/VcLink.vue";
|
|
28
|
+
import VcImage from "@/components/VcImage/VcImage.vue";
|
|
29
|
+
import VcIcon from "@/components/VcIcon/VcIcon.vue";
|
|
30
|
+
import VcSvg from "@/components/VcSvg/VcSvg.vue";
|
|
31
|
+
export default {
|
|
32
|
+
name: "VcUpsellBlock",
|
|
33
|
+
components: {VcSvg, VcImage, VcLink, VcButton, VcLayout, VcIcon},
|
|
34
|
+
props:{
|
|
35
|
+
titleText:{
|
|
36
|
+
type: String,
|
|
37
|
+
default: ""
|
|
38
|
+
},
|
|
39
|
+
subtitleText:{
|
|
40
|
+
type: String,
|
|
41
|
+
default: ""
|
|
42
|
+
},
|
|
43
|
+
bulletsText:{
|
|
44
|
+
type: Array,
|
|
45
|
+
default: () => []
|
|
46
|
+
},
|
|
47
|
+
buttonText: {
|
|
48
|
+
type: String,
|
|
49
|
+
default: ''
|
|
50
|
+
},
|
|
51
|
+
linkText:{
|
|
52
|
+
type: String,
|
|
53
|
+
default: ''
|
|
54
|
+
},
|
|
55
|
+
imageUrl: {
|
|
56
|
+
type: [String, Object],
|
|
57
|
+
default: ''
|
|
58
|
+
},
|
|
59
|
+
linkUrl:{
|
|
60
|
+
type: String,
|
|
61
|
+
default: ''
|
|
62
|
+
},
|
|
63
|
+
mode: {
|
|
64
|
+
type: String,
|
|
65
|
+
default: 'page',
|
|
66
|
+
validator: prop => ['page', 'dialog'].includes(prop)
|
|
67
|
+
},
|
|
68
|
+
dataQa:{
|
|
69
|
+
type:String,
|
|
70
|
+
default: 'VcUpsellBlock'
|
|
71
|
+
},
|
|
72
|
+
icon:{
|
|
73
|
+
type:String,
|
|
74
|
+
default:''
|
|
75
|
+
}
|
|
76
|
+
},
|
|
77
|
+
computed:{
|
|
78
|
+
isDialog(){
|
|
79
|
+
return this.mode === 'dialog'
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
</script>
|
|
84
|
+
|
|
85
|
+
<style lang="scss">
|
|
86
|
+
@import "../../scss/mixins.scss";
|
|
87
|
+
.VcUpsellBlock{
|
|
88
|
+
flex-flow: row wrap;
|
|
89
|
+
width: 100%;
|
|
90
|
+
height: 100vh;
|
|
91
|
+
max-width: 960px;
|
|
92
|
+
margin: auto;
|
|
93
|
+
overflow-x: hidden;
|
|
94
|
+
font-style: normal;
|
|
95
|
+
@include md-and-up{
|
|
96
|
+
overflow-x: visible;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
&.dialog-height{
|
|
100
|
+
height: 100%;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
.text-container {
|
|
104
|
+
flex: 0 0 100%;
|
|
105
|
+
margin: 0 auto;
|
|
106
|
+
@include md-and-up {
|
|
107
|
+
flex: 0 0 55%;
|
|
108
|
+
max-width: 444px;
|
|
109
|
+
overflow: hidden;
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
.title-text {
|
|
113
|
+
font-weight: var(--font-weight-large2);
|
|
114
|
+
font-size: var(--font-size-medium2);
|
|
115
|
+
line-height: 32px;
|
|
116
|
+
letter-spacing: 0.01em;
|
|
117
|
+
@include md-and-up{
|
|
118
|
+
font-size: var(--font-size-large);
|
|
119
|
+
line-height: 40px;
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
.sub-text {
|
|
124
|
+
font-weight: var(--font-weight-large);
|
|
125
|
+
font-size: var(--font-size-medium);
|
|
126
|
+
line-height: 28px;
|
|
127
|
+
letter-spacing: var(--letter-spacing);
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
.bullets-text {
|
|
131
|
+
font-weight: var(--font-weight-medium2);
|
|
132
|
+
font-size: var(--font-size-small2);
|
|
133
|
+
line-height: 20px;
|
|
134
|
+
|
|
135
|
+
.bullets-icon {
|
|
136
|
+
margin-inline-end: 12px;
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
.bullets-span{
|
|
140
|
+
font-weight: var(--font-weight-medium2);
|
|
141
|
+
font-size: var(--font-size-small2);
|
|
142
|
+
line-height: 20px;
|
|
143
|
+
color: #000000;
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
.cta-container{
|
|
148
|
+
flex: 1 1 auto;
|
|
149
|
+
flex-flow: row wrap;
|
|
150
|
+
align-items: center;
|
|
151
|
+
margin: 32px auto 0;
|
|
152
|
+
|
|
153
|
+
.primary-cta {
|
|
154
|
+
flex: 0 0 100%;
|
|
155
|
+
width: auto;
|
|
156
|
+
margin: 0 auto;
|
|
157
|
+
max-width: 214px;
|
|
158
|
+
line-height: 48px;
|
|
159
|
+
min-height: 48px;
|
|
160
|
+
font-weight: var(--font-weight-large);
|
|
161
|
+
font-size: var(--font-size-small2);
|
|
162
|
+
@include md-and-up{
|
|
163
|
+
flex: 0 0 45%;
|
|
164
|
+
margin: 0;
|
|
165
|
+
height: 48px;
|
|
166
|
+
}
|
|
167
|
+
.v-btn__content {
|
|
168
|
+
flex-flow: row wrap;
|
|
169
|
+
width: 100%;
|
|
170
|
+
white-space: break-spaces;
|
|
171
|
+
}
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
.secondary-cta{
|
|
175
|
+
flex: 0 0 100%;
|
|
176
|
+
text-align: center;
|
|
177
|
+
font-weight: var(--font-weight-large);
|
|
178
|
+
font-size: var(--font-size-small2);
|
|
179
|
+
line-height: 48px;
|
|
180
|
+
height: 48px;
|
|
181
|
+
color: var(--gray-darken-5);
|
|
182
|
+
margin: 0;
|
|
183
|
+
@include md-and-up{
|
|
184
|
+
flex: 0 0 45%;
|
|
185
|
+
color: var(--blue);
|
|
186
|
+
font-weight: var(--font-weight-large2);
|
|
187
|
+
}
|
|
188
|
+
}
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
.cta-container-dialog {
|
|
192
|
+
width: 100%;
|
|
193
|
+
z-index:1;
|
|
194
|
+
position: absolute;
|
|
195
|
+
justify-content: space-between;
|
|
196
|
+
background: white;
|
|
197
|
+
bottom: 0;
|
|
198
|
+
left: 0;
|
|
199
|
+
right:0;
|
|
200
|
+
margin: 0;
|
|
201
|
+
height: 72px;
|
|
202
|
+
padding: 0 24px;
|
|
203
|
+
@include md-and-up{
|
|
204
|
+
position: static;
|
|
205
|
+
justify-content: flex-start;
|
|
206
|
+
padding: 0;
|
|
207
|
+
}
|
|
208
|
+
|
|
209
|
+
.primary-cta {
|
|
210
|
+
flex: 0 0 55%;
|
|
211
|
+
margin: 0;
|
|
212
|
+
order: 2;
|
|
213
|
+
@include md-and-up{
|
|
214
|
+
flex: 0 0 45%;
|
|
215
|
+
order:0;
|
|
216
|
+
}
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
.secondary-cta{
|
|
220
|
+
flex: 1 0 35%;
|
|
221
|
+
padding-top: 0;
|
|
222
|
+
@include md-and-up{
|
|
223
|
+
flex: 0 0 45%;
|
|
224
|
+
}
|
|
225
|
+
}
|
|
226
|
+
}
|
|
227
|
+
}
|
|
228
|
+
|
|
229
|
+
.images-container {
|
|
230
|
+
position: relative;
|
|
231
|
+
flex: 1 0 100%;
|
|
232
|
+
margin: 0 auto;
|
|
233
|
+
min-height: 40%;
|
|
234
|
+
overflow: hidden;
|
|
235
|
+
|
|
236
|
+
@include md-and-up {
|
|
237
|
+
flex: 0 0 45%;
|
|
238
|
+
min-height: 0;
|
|
239
|
+
overflow: visible;
|
|
240
|
+
}
|
|
241
|
+
|
|
242
|
+
.background-stain{
|
|
243
|
+
position: absolute;
|
|
244
|
+
opacity: 15%;
|
|
245
|
+
width: 600px;
|
|
246
|
+
height: 380px;
|
|
247
|
+
left: 80px;
|
|
248
|
+
overflow: hidden;
|
|
249
|
+
#app[dir="rtl"] &{
|
|
250
|
+
transform: scaleX(-1);
|
|
251
|
+
width: inherit;
|
|
252
|
+
left:auto;
|
|
253
|
+
}
|
|
254
|
+
|
|
255
|
+
@include md-and-up{
|
|
256
|
+
width: 1400px;
|
|
257
|
+
height: 800px;
|
|
258
|
+
left: -15px;
|
|
259
|
+
top: -360px;
|
|
260
|
+
}
|
|
261
|
+
|
|
262
|
+
#background_stain{
|
|
263
|
+
fill: var(--v-secondary-base);
|
|
264
|
+
}
|
|
265
|
+
}
|
|
266
|
+
|
|
267
|
+
.upsell-image {
|
|
268
|
+
position: absolute;
|
|
269
|
+
width: 320px;
|
|
270
|
+
height: 380px;
|
|
271
|
+
display: block;
|
|
272
|
+
right: 0;
|
|
273
|
+
left:0;
|
|
274
|
+
margin: 0 auto;
|
|
275
|
+
@include md-and-up {
|
|
276
|
+
height: 580px;
|
|
277
|
+
width: 466px;
|
|
278
|
+
top: -300px;
|
|
279
|
+
right: -30px;
|
|
280
|
+
}
|
|
281
|
+
}
|
|
282
|
+
}
|
|
283
|
+
}
|
|
284
|
+
|
|
285
|
+
</style>
|
package/src/components/index.js
CHANGED
|
@@ -17,9 +17,9 @@ export {default as VcChecklistItem} from './listBox/VcChecklistItem/VcChecklistI
|
|
|
17
17
|
export {default as VcListbox} from './listBox/VcListbox/VcListbox.vue';
|
|
18
18
|
export {default as VcBottomSheet} from './VcBottomSheet/VcBottomSheet.vue';
|
|
19
19
|
export {default as VcInputBottomSheet} from './VcInputBottomSheet/VcInputBottomSheet.vue';
|
|
20
|
-
export {default as VcChip} from './VcChip/VcChip.vue';
|
|
21
20
|
export {default as VcPopover} from './VcPopover/VcPopover.vue';
|
|
22
21
|
export {default as VcInputPopover} from './VcInputPopover/VcInputPopover.vue';
|
|
22
|
+
export {default as VcChip} from './VcChip/VcChip.vue';
|
|
23
23
|
// export {default as VcAutoComplete} from './VcAutoComplete/VcAutoComplete.vue';
|
|
24
24
|
export {default as VcButton} from './VcButton/VcButton.vue';
|
|
25
25
|
export {default as VcButtonGroup} from './VcButtonGroup/VcButtonGroup.vue';
|
|
@@ -48,3 +48,5 @@ export {default as VcWizardCtaContainer} from './wizard/VcWizardCtaContainer/VcW
|
|
|
48
48
|
export {default as VcWizard} from './wizard/VcWizard/VcWizard.vue';
|
|
49
49
|
export {default as VcImage} from './VcImage/VcImage.vue';
|
|
50
50
|
export {default as VcBadge} from './VcBadge/VcBadge.vue';
|
|
51
|
+
export {default as VcUpsellBlock} from './VcUpsellBlock/VcUpsellBlock.vue';
|
|
52
|
+
export {default as VcModalContainer} from './modal/elements/VcModalContainer.vue';
|
|
@@ -79,15 +79,12 @@ export default {
|
|
|
79
79
|
data: () => ({
|
|
80
80
|
confirmedArray: []
|
|
81
81
|
}),
|
|
82
|
-
|
|
83
|
-
items
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
handler(values) {
|
|
87
|
-
console.log('confirmedArray has changed')
|
|
88
|
-
this.confirmedArray = values.filter((item) => item.checked)
|
|
82
|
+
created() {
|
|
83
|
+
this.items.forEach((item) => {
|
|
84
|
+
if (item.checked) {
|
|
85
|
+
this.confirmedArray.push(item)
|
|
89
86
|
}
|
|
90
|
-
}
|
|
87
|
+
})
|
|
91
88
|
},
|
|
92
89
|
computed: {
|
|
93
90
|
getAddAnotherLabel() {
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
<div class="VcModalContainerContent">
|
|
22
22
|
<slot name="content"/>
|
|
23
23
|
</div>
|
|
24
|
-
<footer :class="{'showDivider': showFooterDivider}">
|
|
24
|
+
<footer v-if="!!$slots.footer" :class="{'showDivider': showFooterDivider}">
|
|
25
25
|
<slot name="footer"/>
|
|
26
26
|
</footer>
|
|
27
27
|
</v-layout>
|
|
@@ -119,6 +119,7 @@ export default {
|
|
|
119
119
|
|
|
120
120
|
.VcModalCloseButton {
|
|
121
121
|
position: absolute;
|
|
122
|
+
z-index: 1;
|
|
122
123
|
right: 5px;
|
|
123
124
|
top: var(--size-value2);
|
|
124
125
|
|
|
Binary file
|