@vcita/design-system 1.3.1 → 1.3.2
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 +40 -21
- package/dist/@vcita/design-system.min.js +2 -2
- package/dist/@vcita/design-system.ssr.js +46 -27
- package/package.json +1 -1
- package/src/components/VcChip/VcChip.spec.js +16 -0
- package/src/components/VcChip/VcChip.stories.js +5 -1
- package/src/components/VcChip/VcChip.vue +35 -11
- package/src/components/VcGalleryItem/VcGalleryItem.spec.js +12 -2
- package/src/components/VcGalleryItem/VcGalleryItem.vue +6 -10
package/CHANGELOG.md
CHANGED
|
@@ -6,6 +6,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
6
6
|
|
|
7
7
|
### Unreleased changes
|
|
8
8
|
|
|
9
|
+
### v1.3.2(2022-11-06)
|
|
10
|
+
- VcGalleryItem - fix ui on small desktop
|
|
11
|
+
- VcChip - added 'selected' state
|
|
12
|
+
|
|
9
13
|
### v1.3.1(2022-10-30)
|
|
10
14
|
- VcGalleryItem - add 'selected' indication
|
|
11
15
|
- VcGalleryItem - add ability to disable
|
|
@@ -5258,6 +5258,10 @@ var script$D = {
|
|
|
5258
5258
|
isRipple: {
|
|
5259
5259
|
type: Boolean,
|
|
5260
5260
|
default: true
|
|
5261
|
+
},
|
|
5262
|
+
selected: {
|
|
5263
|
+
type: Boolean,
|
|
5264
|
+
default: false
|
|
5261
5265
|
}
|
|
5262
5266
|
}
|
|
5263
5267
|
};
|
|
@@ -5277,7 +5281,8 @@ var __vue_render__$D = function () {
|
|
|
5277
5281
|
staticClass: "VcChip",
|
|
5278
5282
|
class: {
|
|
5279
5283
|
'vc-invalid': _vm.invalid,
|
|
5280
|
-
'vc-avatar': !!_vm.avatar
|
|
5284
|
+
'vc-avatar': !!_vm.avatar,
|
|
5285
|
+
'vc-selected': _vm.selected
|
|
5281
5286
|
},
|
|
5282
5287
|
attrs: {
|
|
5283
5288
|
"close": _vm.closeButton,
|
|
@@ -5287,23 +5292,36 @@ var __vue_render__$D = function () {
|
|
|
5287
5292
|
"data-qa": _vm.dataQa
|
|
5288
5293
|
},
|
|
5289
5294
|
on: {
|
|
5295
|
+
"click": function ($event) {
|
|
5296
|
+
return _vm.$emit('onChipClick');
|
|
5297
|
+
},
|
|
5290
5298
|
"click:close": function ($event) {
|
|
5291
5299
|
return _vm.$emit('input', false);
|
|
5292
5300
|
}
|
|
5293
5301
|
}
|
|
5294
|
-
}, [
|
|
5295
|
-
|
|
5296
|
-
|
|
5297
|
-
|
|
5298
|
-
|
|
5299
|
-
|
|
5300
|
-
|
|
5301
|
-
|
|
5302
|
-
|
|
5303
|
-
|
|
5304
|
-
|
|
5305
|
-
|
|
5306
|
-
|
|
5302
|
+
}, [_vm._t("chip-avatar", function () {
|
|
5303
|
+
return [!!_vm.avatar ? _c('div', {
|
|
5304
|
+
staticClass: "vc-avatar-wrapper"
|
|
5305
|
+
}, [!_vm.invalid ? _c('VcAvatar', _vm._b({
|
|
5306
|
+
attrs: {
|
|
5307
|
+
"name": _vm.label,
|
|
5308
|
+
"show-border": false,
|
|
5309
|
+
"size": "x-sm"
|
|
5310
|
+
}
|
|
5311
|
+
}, 'VcAvatar', _vm.avatar, false)) : _c('VcIcon', {
|
|
5312
|
+
attrs: {
|
|
5313
|
+
"data-qa": _vm.dataQa + "-invalid-icon"
|
|
5314
|
+
}
|
|
5315
|
+
}, [_vm._v("$attention_fill")])], 1) : _vm.selected ? _c('div', {
|
|
5316
|
+
staticClass: "vc-avatar-wrapper"
|
|
5317
|
+
}, [_c('VcIcon', {
|
|
5318
|
+
attrs: {
|
|
5319
|
+
"data-qa": _vm.dataQa + "-check-icon",
|
|
5320
|
+
"size": "12",
|
|
5321
|
+
"color": "currentColor"
|
|
5322
|
+
}
|
|
5323
|
+
}, [_vm._v("$check_button")])], 1) : _vm._e()];
|
|
5324
|
+
}), _vm._v(" "), _vm._t("default", function () {
|
|
5307
5325
|
return [_c('span', [_vm._v(_vm._s(_vm.label))])];
|
|
5308
5326
|
})], 2);
|
|
5309
5327
|
};
|
|
@@ -5313,8 +5331,8 @@ var __vue_staticRenderFns__$D = [];
|
|
|
5313
5331
|
|
|
5314
5332
|
const __vue_inject_styles__$D = function (inject) {
|
|
5315
5333
|
if (!inject) return;
|
|
5316
|
-
inject("data-v-
|
|
5317
|
-
source: "[data-v-
|
|
5334
|
+
inject("data-v-508905ad_0", {
|
|
5335
|
+
source: "[data-v-508905ad]:root{--primary-font-family:Montserrat;--font-size-xxx-small:9px;--font-size-xx-small:12px;--font-size-x-small:13px;--font-size-small:14px;--font-size-small2:15px;--font-size-small3:17px;--font-size-medium:18px;--font-size-medium0:20px;--font-size-medium1:22px;--font-size-medium2:24px;--font-size-large:28px;--font-weight-light:300;--font-weight-medium:400;--font-weight-medium2:500;--font-weight-large:600;--font-weight-large2:700;--font-weight-xl:800;--letter-spacing:0.003em;--size-value0:0px;--size-value1:4px;--size-value2:8px;--size-value3:12px;--size-value4:16px;--size-value5:20px;--size-value6:24px;--size-value7:28px;--size-value8:32px;--size-value9:36px;--size-value10:40px;--size-value11:44px;--size-value12:48px;--size-value13:52px;--size-value14:56px;--size-value15:60px;--size-value16:64px;--size-value17:68px;--size-value18:72px;--size-value19:76px;--size-value20:80px;--border-radius:6px;--border-frame:1px solid #e0e0e0;--border-focused-frame:1px solid var(--v-secondary-base);--shadow-focused-frame:0px 0px 0px 3px var(--v-secondary-lighten1);--centered-layout-min-width:708px;--centered-layout-max-width:1316px;--popover-width:360px;--popover-max-height:464px;--popover-border-radius:10px;--modal-desktop-offset:0;--modal-bg-color:#ffffff;--modal-box-shadow:0px 7px 8px -4px rgba(0, 0, 0, 0.2),2px 13px 19px 2px rgba(0, 0, 0, 0.14),0px 5px 24px rgba(0, 0, 0, 0.12);--modal-border-radius:10px;--modal-width-small:384px;--modal-width-medium:576px;--modal-width-large:816px;--modal-width-x-large:972px;--avatar-x-sm:24px;--avatar-sm:32px;--avatar-md:40px;--avatar-lg:48px;--dropzone-active-border-color:#1e93b7;--dropzone-active-second-border-color:#95cddb;--select-field-height:52px;--gray-darken-5:#212121;--gray-darken-4:#616161;--gray-darken-3:#757575;--gray-darken-2:#999999;--gray-darken-1:#b3b3b3;--gray:#cccccc;--gray-lighten-1:#e0e0e0;--gray-lighten-2:#ededed;--gray-lighten-3:#f7f7f7;--gray-lighten-4:#fafafa;--neutral:#586E8C;--neutral-lighten-1:#D6DBE6;--neutral-lighten-2:#EAEDF2;--neutral-lighten-3:#F8F9FB;--red:#F2514A;--red-lighten-1:#F79792;--red-lighten-2:#FBCBC9;--red-lighten-3:#FDE8E7;--yellow:#FFC511;--yellow-lighten-1:#FFDC70;--yellow-lighten-2:#FFEDB8;--yellow-lighten-3:#FFF7E0;--green:#54D28C;--green-lighten-1:#98E4BA;--green-lighten-2:#CFF8E1;--green-lighten-3:#EAFCF2;--blue:#478FFF;--blue-lighten-1:#91BCFF;--blue-lighten-2:#C8DDFF;--blue-lighten-3:#E7F0FF;--orange:#FF8F00;--orange-lighten-1:#FCB965;--orange-lighten-2:#FAD9B0;--orange-lighten-3:#F9EBDA;--shadow-1:0px 1px 4px rgba(0, 0, 0, 0.11);--shadow-2:0px 2px 5px rgba(0, 0, 0, 0.1),0px 2px 2px rgba(0, 0, 0, 0.06),0px 3px 1px -2px rgba(0, 0, 0, 0.06);--shadow-3:0px 3px 2px rgba(0, 0, 0, 0.101961);--shadow-4:0px 1px 1px rgba(0, 0, 0, 0.06),0px 3px 8px rgba(0, 0, 0, 0.15);--shadow-5:0px 4px 18px rgba(0, 0, 0, 0.1);--shadow-6:0px 1px 10px rgba(0, 0, 0, 0.12),0px 4px 7px rgba(0, 0, 0, 0.14),0px 2px 4px -1px rgba(0, 0, 0, 0.2);--shadow-7:0px 3px 5px -1px rgba(0, 0, 0, 0.2),0px 6px 10px rgba(0, 0, 0, 0.14),0px 1px 18px rgba(0, 0, 0, 0.12);--shadow-8:0px 5px 7px 3px rgba(0, 0, 0, 0.26);--shadow-9:0px 7px 8px -4px rgba(0, 0, 0, 0.2),2px 13px 19px 2px rgba(0, 0, 0, 0.14),0px 5px 24px rgba(0, 0, 0, 0.12);--shadow-10:0px 4px 8px #cccccc}.VcChip[data-v-508905ad]{max-width:fit-content;border:1px solid var(--neutral-lighten-1)}.VcChip.v-chip[data-v-508905ad]{background-color:var(--modal-bg-color)}.VcChip.v-chip[data-v-508905ad] .v-chip__content{font-weight:var(--font-weight-medium2);font-size:var(--font-size-x-small);line-height:var(--size-value5);color:var(--gray-darken-5)}.VcChip.v-chip[data-v-508905ad] .v-chip__content .vc-avatar-wrapper{margin-inline-end:var(--size-value2)}.VcChip.v-chip[data-v-508905ad] .v-chip__content .vc-avatar-wrapper .vc-attention-fill{fill:var(--yellow)}.VcChip.v-chip[data-v-508905ad] .v-chip__content .v-chip__close{direction:inherit;margin-inline:var(--size-value1) var(--size-value0);color:var(--gray)}.VcChip.v-chip[data-v-508905ad] .v-chip__content .v-chip__close:hover{opacity:unset}.VcChip.v-chip.vc-avatar[data-v-508905ad]{padding-inline:var(--size-value1) var(--size-value3)}.VcChip.v-chip--disabled[data-v-508905ad]{background-color:var(--gray-lighten-2);border:1px solid var(--gray-lighten-2)}.VcChip.v-chip--disabled[data-v-508905ad] .v-chip__content{color:var(--gray-darken-1)}.VcChip.vc-invalid[data-v-508905ad]{background-color:var(--yellow-lighten-3);border:1px solid var(--yellow)}.VcChip.vc-invalid[data-v-508905ad]:hover{background-color:var(--yellow-lighten-2)}.VcChip.vc-selected[data-v-508905ad]{background-color:var(--v-secondary-lighten3);border:1px solid var(--v-secondary-base)}.VcChip.vc-selected[data-v-508905ad]:hover{background-color:var(--v-secondary-lighten3)}.VcChip.vc-selected[data-v-508905ad] .v-chip__content{font-weight:var(--font-weight-large);color:var(--v-secondary-base)}.VcChip[data-v-508905ad]:hover{background-color:var(--gray-lighten-3)}.VcChip[data-v-508905ad]:hover:before{opacity:0}.VcChip[data-v-508905ad]:focus{box-shadow:0 0 0 3px var(--v-secondary-lighten1)}.VcChip[data-v-508905ad]:focus:before{opacity:0}",
|
|
5318
5336
|
map: undefined,
|
|
5319
5337
|
media: undefined
|
|
5320
5338
|
});
|
|
@@ -5322,7 +5340,7 @@ const __vue_inject_styles__$D = function (inject) {
|
|
|
5322
5340
|
/* scoped */
|
|
5323
5341
|
|
|
5324
5342
|
|
|
5325
|
-
const __vue_scope_id__$D = "data-v-
|
|
5343
|
+
const __vue_scope_id__$D = "data-v-508905ad";
|
|
5326
5344
|
/* module identifier */
|
|
5327
5345
|
|
|
5328
5346
|
const __vue_module_identifier__$D = undefined;
|
|
@@ -16587,7 +16605,8 @@ var __vue_render__$3 = function () {
|
|
|
16587
16605
|
class: {
|
|
16588
16606
|
'vc-gallery-item--is-create': _vm.isCreate,
|
|
16589
16607
|
'vc-gallery-item--selected': _vm.selected,
|
|
16590
|
-
'vc-gallery-item--disabled': _vm.disabled
|
|
16608
|
+
'vc-gallery-item--disabled': _vm.disabled,
|
|
16609
|
+
'desktop-view': !_vm.isMobile
|
|
16591
16610
|
},
|
|
16592
16611
|
attrs: {
|
|
16593
16612
|
"data-qa": _vm.dataQa
|
|
@@ -16694,8 +16713,8 @@ var __vue_staticRenderFns__$3 = [];
|
|
|
16694
16713
|
|
|
16695
16714
|
const __vue_inject_styles__$3 = function (inject) {
|
|
16696
16715
|
if (!inject) return;
|
|
16697
|
-
inject("data-v-
|
|
16698
|
-
source: ".vc-gallery-item[data-v-
|
|
16716
|
+
inject("data-v-a79f5ee0_0", {
|
|
16717
|
+
source: ".vc-gallery-item[data-v-a79f5ee0]{max-width:252px;margin-bottom:var(--size-value4)}@media screen and (min-width:600px){.vc-gallery-item[data-v-a79f5ee0]{min-width:200px}}.vc-gallery-item .VcButton.secondary__text[data-v-a79f5ee0]{background-color:var(--v-secondary-lighten2);color:var(--v-secondary-base)!important}.vc-gallery-item__thumbnail[data-v-a79f5ee0]{position:relative;height:0;padding-bottom:136%;border-radius:var(--border-radius);box-shadow:var(--shadow-4);margin-bottom:var(--size-value3);overflow:hidden}.vc-gallery-item--is-create .vc-gallery-item__thumbnail[data-v-a79f5ee0]{background:var(--v-secondary-lighten3);border:1px dashed var(--v-secondary-base)}.vc-gallery-item--disabled .vc-gallery-item__thumbnail[data-v-a79f5ee0]{filter:grayscale(100%)}.vc-gallery-item__image[data-v-a79f5ee0]{padding-bottom:inherit;width:100%;height:100%;background-size:cover;background-repeat:no-repeat;background-position:top center;border-radius:var(--border-radius)}.vc-gallery-item--selected .vc-gallery-item__image[data-v-a79f5ee0]{box-shadow:inset 0 0 0 2px var(--v-secondary-base)}.vc-gallery-item--selected.vc-gallery-item--disabled .vc-gallery-item__image[data-v-a79f5ee0]{box-shadow:inset 0 0 0 2px var(--gray-darken-1)}.desktop-view .vc-gallery-item__thumbnail:hover .vc-gallery-item__image[data-v-a79f5ee0]{filter:blur(5px);transition:filter .3s ease-out}.vc-gallery-item__label[data-v-a79f5ee0]{font-weight:var(--font-weight-medium2);font-size:var(--font-size-small);line-height:1.5;text-align:center;color:var(--gray-darken-5)}.vc-gallery-item--is-create .vc-gallery-item__label[data-v-a79f5ee0]{color:var(--v-secondary-base)}.buttons[data-v-a79f5ee0]{position:absolute;width:100%;height:100%;left:0;top:0;background-color:rgba(0,0,0,.7);display:none}.vc-gallery-item--is-create .buttons[data-v-a79f5ee0]{display:flex;background-color:var(--neutral-lighten-3);cursor:pointer}.desktop-view .vc-gallery-item__thumbnail:hover .buttons[data-v-a79f5ee0]{display:flex}.buttons__select[data-v-a79f5ee0]{margin-bottom:var(--size-value4)}.selected-indicator[data-v-a79f5ee0]{position:absolute;top:0;inset-inline-end:0;background:var(--v-secondary-base);border-radius:0 0 0 var(--border-radius);width:var(--size-value6);height:var(--size-value6)}.vc-gallery-item--disabled .selected-indicator[data-v-a79f5ee0]{background:var(--gray-darken-1)}",
|
|
16699
16718
|
map: undefined,
|
|
16700
16719
|
media: undefined
|
|
16701
16720
|
});
|
|
@@ -16703,7 +16722,7 @@ const __vue_inject_styles__$3 = function (inject) {
|
|
|
16703
16722
|
/* scoped */
|
|
16704
16723
|
|
|
16705
16724
|
|
|
16706
|
-
const __vue_scope_id__$3 = "data-v-
|
|
16725
|
+
const __vue_scope_id__$3 = "data-v-a79f5ee0";
|
|
16707
16726
|
/* module identifier */
|
|
16708
16727
|
|
|
16709
16728
|
const __vue_module_identifier__$3 = undefined;
|