@vcita/design-system 1.11.26 → 1.11.27
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/@vcita/design-system.esm.js +43 -8
- package/dist/@vcita/design-system.min.js +1 -1
- package/dist/@vcita/design-system.ssr.js +42 -9
- package/package.json +1 -1
- package/src/components/VcTabs/VcTabs.spec.js +52 -0
- package/src/components/VcTabs/VcTabs.stories.js +54 -0
- package/src/components/VcTabs/VcTabs.vue +66 -2
|
@@ -17136,6 +17136,7 @@ var __vue_component__$1g = __vue_component__$1f;
|
|
|
17136
17136
|
//
|
|
17137
17137
|
//
|
|
17138
17138
|
//
|
|
17139
|
+
//
|
|
17139
17140
|
var script$O = {
|
|
17140
17141
|
components: {
|
|
17141
17142
|
VTab: VTab,
|
|
@@ -17180,12 +17181,48 @@ var script$O = {
|
|
|
17180
17181
|
dataQa: {
|
|
17181
17182
|
type: String,
|
|
17182
17183
|
default: 'VcTabs'
|
|
17184
|
+
},
|
|
17185
|
+
transition: {
|
|
17186
|
+
type: Boolean,
|
|
17187
|
+
default: true
|
|
17188
|
+
},
|
|
17189
|
+
ripple: {
|
|
17190
|
+
type: Boolean,
|
|
17191
|
+
default: true
|
|
17192
|
+
},
|
|
17193
|
+
customTabHeight: {
|
|
17194
|
+
type: Number,
|
|
17195
|
+
required: false
|
|
17196
|
+
},
|
|
17197
|
+
topSlider: {
|
|
17198
|
+
type: Boolean,
|
|
17199
|
+
default: false
|
|
17200
|
+
},
|
|
17201
|
+
// use for complex custom tab header content
|
|
17202
|
+
zeroTabWidth: {
|
|
17203
|
+
type: Boolean,
|
|
17204
|
+
default: false
|
|
17183
17205
|
}
|
|
17184
17206
|
},
|
|
17185
17207
|
|
|
17186
17208
|
computed: {
|
|
17187
17209
|
safeCurrentIndex() {
|
|
17188
17210
|
return Math.max(0, Math.min(this.currentIndex, this.tabs.length - 1));
|
|
17211
|
+
},
|
|
17212
|
+
|
|
17213
|
+
tabHeight() {
|
|
17214
|
+
return this.customTabHeight ? this.customTabHeight : this.tabSize === 'M' ? 48 : 60;
|
|
17215
|
+
},
|
|
17216
|
+
|
|
17217
|
+
customClasses() {
|
|
17218
|
+
return {
|
|
17219
|
+
'separatorShadow': this.separatorStyle === 'shadow',
|
|
17220
|
+
'separatorDivider': this.separatorStyle === 'divider',
|
|
17221
|
+
'no-transition': !this.transition,
|
|
17222
|
+
'no-ripple': !this.ripple,
|
|
17223
|
+
'top-slider': this.topSlider,
|
|
17224
|
+
'zero-tab-width': this.zeroTabWidth
|
|
17225
|
+
};
|
|
17189
17226
|
}
|
|
17190
17227
|
|
|
17191
17228
|
}
|
|
@@ -17210,16 +17247,13 @@ var __vue_render__$K = function () {
|
|
|
17210
17247
|
}, [_c('v-tabs', {
|
|
17211
17248
|
ref: "tabsArea",
|
|
17212
17249
|
staticClass: "VcTabs--content",
|
|
17213
|
-
class:
|
|
17214
|
-
'separatorShadow': _vm.separatorStyle === 'shadow',
|
|
17215
|
-
'separatorDivider': _vm.separatorStyle === 'divider'
|
|
17216
|
-
},
|
|
17250
|
+
class: _vm.customClasses,
|
|
17217
17251
|
attrs: {
|
|
17218
17252
|
"value": _vm.safeCurrentIndex,
|
|
17219
17253
|
"background-color": "transparent",
|
|
17220
17254
|
"slider-color": "secondary",
|
|
17221
17255
|
"slider-size": "4",
|
|
17222
|
-
"height": _vm.
|
|
17256
|
+
"height": _vm.tabHeight,
|
|
17223
17257
|
"grow": _vm.distribution === 'grow',
|
|
17224
17258
|
"fixed-tabs": _vm.distribution === 'equal'
|
|
17225
17259
|
},
|
|
@@ -17261,6 +17295,7 @@ var __vue_render__$K = function () {
|
|
|
17261
17295
|
return _c('v-tab-item', {
|
|
17262
17296
|
key: "tab-content-" + index,
|
|
17263
17297
|
attrs: {
|
|
17298
|
+
"transition": _vm.transition ? undefined : false,
|
|
17264
17299
|
"data-qa": _vm.dataQa + "-tab-content-" + index
|
|
17265
17300
|
}
|
|
17266
17301
|
}, [_vm._t("tab-content-" + index, function () {
|
|
@@ -17276,8 +17311,8 @@ var __vue_staticRenderFns__$K = [];
|
|
|
17276
17311
|
|
|
17277
17312
|
const __vue_inject_styles__$O = function (inject) {
|
|
17278
17313
|
if (!inject) return;
|
|
17279
|
-
inject("data-v-
|
|
17280
|
-
source: ".VcTabs--wrapper[data-v-
|
|
17314
|
+
inject("data-v-4947bcbc_0", {
|
|
17315
|
+
source: ".VcTabs--wrapper[data-v-4947bcbc]{display:flex;flex-direction:column;height:100%}.VcTabs--wrapper .separatorShadow[data-v-4947bcbc]{border-bottom:1px solid var(--gray-lighten-1);box-shadow:var(--shadow-1)}.VcTabs--wrapper .separatorDivider[data-v-4947bcbc]{border-bottom:1px solid var(--gray-lighten-1)}.VcTabs--wrapper .no-transition[data-v-4947bcbc] .v-tabs-slider-wrapper{transition:none}.VcTabs--wrapper .top-slider[data-v-4947bcbc] .v-tabs-slider-wrapper{bottom:auto}.VcTabs--wrapper .no-ripple[data-v-4947bcbc] .v-ripple__container{display:none!important}.VcTabs--wrapper .zero-tab-width[data-v-4947bcbc] .VcTab{padding:0;min-width:auto}.VcTabs--content[data-v-4947bcbc]{flex:unset}.VcTab[data-v-4947bcbc]:focus{color:rgba(255,255,255,0)!important;box-shadow:inset 0 0 0 3px var(--v-secondary-lighten1);border-radius:2px}.VcTab:focus .VcTab-label[data-v-4947bcbc]{color:var(--gray-darken-4)}.VcTab:focus.VcTabDisabled[data-v-4947bcbc]{background:rgba(0,0,0,.04);color:var(--gray-darken-2)}.VcTabActive[data-v-4947bcbc]{color:var(--gray-darken-5)}.VcTab-label[data-v-4947bcbc]{font-size:var(--font-size-x-small);font-weight:var(--font-weight-medium2);line-height:var(--size-value4);letter-spacing:0;text-transform:initial}.VcTabsContent[data-v-4947bcbc]{background-color:transparent;overflow-y:auto}[data-v-4947bcbc] .v-slide-group__next,[data-v-4947bcbc] .v-slide-group__prev{display:none!important}[data-v-4947bcbc] .v-slide-group__wrapper{overflow-x:auto;overflow-y:hidden}",
|
|
17281
17316
|
map: undefined,
|
|
17282
17317
|
media: undefined
|
|
17283
17318
|
});
|
|
@@ -17285,7 +17320,7 @@ const __vue_inject_styles__$O = function (inject) {
|
|
|
17285
17320
|
/* scoped */
|
|
17286
17321
|
|
|
17287
17322
|
|
|
17288
|
-
const __vue_scope_id__$O = "data-v-
|
|
17323
|
+
const __vue_scope_id__$O = "data-v-4947bcbc";
|
|
17289
17324
|
/* module identifier */
|
|
17290
17325
|
|
|
17291
17326
|
const __vue_module_identifier__$O = undefined;
|