@vcita/design-system 0.2.2 → 0.2.3
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 +58 -82
- package/dist/@vcita/design-system.min.js +1 -1
- package/dist/@vcita/design-system.ssr.js +61 -84
- package/init/DesignSystem.js +5 -1
- package/package.json +1 -1
- package/src/assets/logo.png +0 -0
- package/src/assets/logo.svg +1 -0
- package/src/components/VcButton/VcButton.stories.mdx.old +40 -0
- package/src/components/VcExpansionPanels/VcExpansionPanels.stories.js +36 -0
- package/src/components/VcExpansionPanels/VcExpansionPanels.vue +26 -0
- package/src/components/VcHourInput/VcHourInput.stories.js +36 -0
- package/src/components/VcHourInput/VcHourInput.vue +134 -0
- package/src/components/VcTextField/VcTextField.spec.js +13 -95
- package/src/components/VcTextField/VcTextField.stories.js +60 -41
- package/src/components/VcTextField/VcTextField.vue +78 -155
- package/src/components/Wizard/VcMobileWizardProgress/VcMobileWizardProgress.vue +2 -2
- package/src/components/Wizard/VcSteperContant/VcStepperContent.spec.js +163 -0
- package/src/components/Wizard/VcSteperContant/VcStepperContent.stories.js +118 -0
- package/src/components/Wizard/VcSteperContant/VcStepperContent.vue +153 -0
- package/src/stories/assets/colors.svg +1 -0
- package/src/stories/assets/comments.svg +1 -0
- package/src/stories/assets/direction.svg +1 -0
- package/src/stories/assets/plugin.svg +1 -0
- package/src/stories/assets/repo.svg +1 -0
- package/src/stories/assets/stackalt.svg +1 -0
- package/src/stories/colors.stories.mdx +78 -0
- package/CHANGELOG.MD +0 -51
- package/src/.DS_Store +0 -0
|
@@ -2979,15 +2979,19 @@ var script$e = {
|
|
|
2979
2979
|
},
|
|
2980
2980
|
|
|
2981
2981
|
currentStepName() {
|
|
2982
|
-
|
|
2982
|
+
var _this$steps;
|
|
2983
|
+
|
|
2984
|
+
return (_this$steps = this.steps[this.currentStep - 1]) === null || _this$steps === void 0 ? void 0 : _this$steps.name;
|
|
2983
2985
|
},
|
|
2984
2986
|
|
|
2985
2987
|
nextStepName() {
|
|
2988
|
+
var _this$steps$this$curr;
|
|
2989
|
+
|
|
2986
2990
|
if (this.currentStep >= this.numOfSteps) {
|
|
2987
2991
|
return;
|
|
2988
2992
|
}
|
|
2989
2993
|
|
|
2990
|
-
return `${this.$dst("ds.progress_circular.next")} ${this.steps[this.currentStep]
|
|
2994
|
+
return `${this.$dst("ds.progress_circular.next")} ${(_this$steps$this$curr = this.steps[this.currentStep]) === null || _this$steps$this$curr === void 0 ? void 0 : _this$steps$this$curr.name}`;
|
|
2991
2995
|
},
|
|
2992
2996
|
|
|
2993
2997
|
numOfSteps() {
|
|
@@ -3042,8 +3046,8 @@ var __vue_staticRenderFns__$e = [];
|
|
|
3042
3046
|
|
|
3043
3047
|
const __vue_inject_styles__$e = function (inject) {
|
|
3044
3048
|
if (!inject) return;
|
|
3045
|
-
inject("data-v-
|
|
3046
|
-
source: "[data-v-
|
|
3049
|
+
inject("data-v-47502eba_0", {
|
|
3050
|
+
source: "[data-v-47502eba]: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-medium:18px;--font-size-medium1:22px;--font-size-medium2:24px;--font-size-large:28px;--font-weight-medium:400;--font-weight-medium2:500;--font-weight-large:600;--font-weight-large2:700;--font-weight-xl:800;--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;--modal-desktop-offset:-112px;--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;--avatar-x-sm:24px;--avatar-sm:32px;--avatar-md:40px;--avatar-lg:48px;--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)}.vc-mobile-wizard-progress .titles-container[data-v-47502eba]{margin:var(--size-value0) var(--size-value4)}.vc-mobile-wizard-progress .titles-container .current-step[data-v-47502eba]{font-weight:var(--font-weight-large2);font-size:var(--font-size-small2)}.vc-mobile-wizard-progress .titles-container .next-step[data-v-47502eba]{font-size:var(--font-size-x-small);color:var(--gray-darken-4)}",
|
|
3047
3051
|
map: undefined,
|
|
3048
3052
|
media: undefined
|
|
3049
3053
|
});
|
|
@@ -3051,7 +3055,7 @@ const __vue_inject_styles__$e = function (inject) {
|
|
|
3051
3055
|
/* scoped */
|
|
3052
3056
|
|
|
3053
3057
|
|
|
3054
|
-
const __vue_scope_id__$e = "data-v-
|
|
3058
|
+
const __vue_scope_id__$e = "data-v-47502eba";
|
|
3055
3059
|
/* module identifier */
|
|
3056
3060
|
|
|
3057
3061
|
const __vue_module_identifier__$e = undefined;
|
|
@@ -3454,60 +3458,69 @@ const __vue_component__$b = /*#__PURE__*/normalizeComponent({
|
|
|
3454
3458
|
staticRenderFns: __vue_staticRenderFns__$b
|
|
3455
3459
|
}, __vue_inject_styles__$b, __vue_script__$b, __vue_scope_id__$b, __vue_is_functional_template__$b, __vue_module_identifier__$b, false, createInjector, undefined, undefined);
|
|
3456
3460
|
|
|
3461
|
+
//
|
|
3462
|
+
//
|
|
3463
|
+
//
|
|
3464
|
+
//
|
|
3465
|
+
//
|
|
3466
|
+
//
|
|
3467
|
+
//
|
|
3468
|
+
//
|
|
3469
|
+
//
|
|
3470
|
+
//
|
|
3471
|
+
//
|
|
3472
|
+
//
|
|
3473
|
+
//
|
|
3474
|
+
//
|
|
3475
|
+
//
|
|
3476
|
+
//
|
|
3477
|
+
//
|
|
3478
|
+
//
|
|
3479
|
+
//
|
|
3457
3480
|
var script$a = {
|
|
3458
|
-
name: 'VcTextField',
|
|
3459
3481
|
components: {
|
|
3460
|
-
VcLayout: __vue_component__$u,
|
|
3461
|
-
VcButton: __vue_component__$w,
|
|
3462
|
-
VcIcon: __vue_component__$x,
|
|
3463
3482
|
VTextField: VTextField
|
|
3464
3483
|
},
|
|
3484
|
+
|
|
3485
|
+
name: 'VcTextField',
|
|
3486
|
+
|
|
3465
3487
|
props: {
|
|
3466
3488
|
type: {
|
|
3467
3489
|
type: String,
|
|
3468
3490
|
default: 'text',
|
|
3469
3491
|
validator: prop => ['text', 'number'].includes(prop)
|
|
3470
3492
|
},
|
|
3471
|
-
|
|
3493
|
+
dataQa: {
|
|
3472
3494
|
type: String,
|
|
3473
|
-
default: ''
|
|
3495
|
+
default: 'vc-text-field'
|
|
3474
3496
|
},
|
|
3475
|
-
|
|
3497
|
+
label: {
|
|
3476
3498
|
type: String,
|
|
3477
|
-
default: '
|
|
3499
|
+
default: ''
|
|
3478
3500
|
},
|
|
3479
3501
|
value: {
|
|
3480
3502
|
type: [Number, String],
|
|
3481
3503
|
default: ''
|
|
3482
3504
|
},
|
|
3483
|
-
|
|
3484
|
-
type: Number,
|
|
3485
|
-
default:
|
|
3505
|
+
counter: {
|
|
3506
|
+
type: [Number, Boolean],
|
|
3507
|
+
default: false
|
|
3486
3508
|
},
|
|
3487
|
-
|
|
3509
|
+
maxlength: {
|
|
3488
3510
|
type: Number,
|
|
3489
|
-
default:
|
|
3511
|
+
default: 100
|
|
3490
3512
|
},
|
|
3491
3513
|
rules: {
|
|
3492
3514
|
type: Array
|
|
3493
3515
|
},
|
|
3494
|
-
|
|
3516
|
+
disabled: {
|
|
3517
|
+
type: Boolean,
|
|
3518
|
+
default: false
|
|
3519
|
+
},
|
|
3520
|
+
hint: {
|
|
3495
3521
|
type: String,
|
|
3496
|
-
default: '
|
|
3497
|
-
}
|
|
3498
|
-
},
|
|
3499
|
-
methods: {
|
|
3500
|
-
updateValue(num) {
|
|
3501
|
-
let currVal = parseFloat(this.value);
|
|
3502
|
-
currVal = parseFloat((currVal + num).toPrecision(this.step.length + 1));
|
|
3503
|
-
|
|
3504
|
-
if (currVal < parseFloat(this.min) || currVal > parseFloat(this.max)) {
|
|
3505
|
-
return;
|
|
3506
|
-
}
|
|
3507
|
-
|
|
3508
|
-
this.$emit('input', currVal.toString());
|
|
3522
|
+
default: ''
|
|
3509
3523
|
}
|
|
3510
|
-
|
|
3511
3524
|
}
|
|
3512
3525
|
};
|
|
3513
3526
|
|
|
@@ -3526,58 +3539,25 @@ var __vue_render__$a = function () {
|
|
|
3526
3539
|
staticClass: "VcTextInput",
|
|
3527
3540
|
attrs: {
|
|
3528
3541
|
"dense": "",
|
|
3542
|
+
"data-qa": _vm.dataQa,
|
|
3529
3543
|
"label": _vm.label,
|
|
3530
3544
|
"rules": _vm.rules,
|
|
3545
|
+
"disabled": _vm.disabled,
|
|
3531
3546
|
"type": _vm.type,
|
|
3547
|
+
"error": _vm.counter && _vm.maxlength && _vm.value.length > _vm.maxlength,
|
|
3532
3548
|
"value": _vm.value,
|
|
3533
|
-
"
|
|
3534
|
-
"
|
|
3549
|
+
"hint": _vm.hint,
|
|
3550
|
+
"counter": _vm.counter,
|
|
3551
|
+
"maxlength": _vm.maxlength,
|
|
3552
|
+
"persistent-hint": "",
|
|
3535
3553
|
"hide-details": "auto"
|
|
3536
3554
|
},
|
|
3537
3555
|
on: {
|
|
3538
3556
|
"input": function (data) {
|
|
3539
3557
|
return _vm.$emit('input', data);
|
|
3540
3558
|
}
|
|
3541
|
-
}
|
|
3542
|
-
|
|
3543
|
-
key: "append",
|
|
3544
|
-
fn: function () {
|
|
3545
|
-
return [_c('VcLayout', {
|
|
3546
|
-
staticClass: "number-counter",
|
|
3547
|
-
attrs: {
|
|
3548
|
-
"column": ""
|
|
3549
|
-
}
|
|
3550
|
-
}, [_c('VcButton', {
|
|
3551
|
-
attrs: {
|
|
3552
|
-
"icon": "",
|
|
3553
|
-
"data-qa": "VcTextFieldButtonUp",
|
|
3554
|
-
"ripple": false,
|
|
3555
|
-
"min-width": "44px",
|
|
3556
|
-
"max-height": "25px"
|
|
3557
|
-
},
|
|
3558
|
-
on: {
|
|
3559
|
-
"click": function ($event) {
|
|
3560
|
-
_vm.updateValue(parseFloat(_vm.step));
|
|
3561
|
-
}
|
|
3562
|
-
}
|
|
3563
|
-
}, [_c('VcIcon', [_vm._v("icon-caret-down fa-rotate-180")])], 1), _vm._v(" "), _c('VcButton', {
|
|
3564
|
-
attrs: {
|
|
3565
|
-
"icon": "",
|
|
3566
|
-
"data-qa": "VcTextFieldButtonDown",
|
|
3567
|
-
"ripple": false,
|
|
3568
|
-
"min-width": "44px",
|
|
3569
|
-
"max-height": "25px"
|
|
3570
|
-
},
|
|
3571
|
-
on: {
|
|
3572
|
-
"click": function ($event) {
|
|
3573
|
-
_vm.updateValue(-parseFloat(_vm.step));
|
|
3574
|
-
}
|
|
3575
|
-
}
|
|
3576
|
-
}, [_c('VcIcon', [_vm._v("icon-caret-down")])], 1)], 1)];
|
|
3577
|
-
},
|
|
3578
|
-
proxy: true
|
|
3579
|
-
} : null], null, true)
|
|
3580
|
-
}, [_vm._v(" "), _vm._t("default")], 2);
|
|
3559
|
+
}
|
|
3560
|
+
});
|
|
3581
3561
|
};
|
|
3582
3562
|
|
|
3583
3563
|
var __vue_staticRenderFns__$a = [];
|
|
@@ -3585,12 +3565,8 @@ var __vue_staticRenderFns__$a = [];
|
|
|
3585
3565
|
|
|
3586
3566
|
const __vue_inject_styles__$a = function (inject) {
|
|
3587
3567
|
if (!inject) return;
|
|
3588
|
-
inject("data-v-
|
|
3589
|
-
source: ".
|
|
3590
|
-
map: undefined,
|
|
3591
|
-
media: undefined
|
|
3592
|
-
}), inject("data-v-31ca7c6a_1", {
|
|
3593
|
-
source: ".VcTextInput.v-text-field{margin:0;padding:0}.VcTextInput.v-text-field label{letter-spacing:-.3px;font-size:15px;color:rgba(0,0,0,.4)}.VcTextInput.v-text-field .v-text-field__slot:first-child{margin:0 12px}.VcTextInput.v-text-field[prepend-inner-icon] .v-text-field__slot{padding:0}.VcTextInput.v-text-field.v-input--is-focused label,.VcTextInput.v-text-field.v-input--is-label-active label{font-size:14px;font-weight:400;font-stretch:normal;font-style:normal;line-height:1.17;letter-spacing:-.3px;color:rgba(0,0,0,.62)!important;transform:translateY(-100%) scale(.85);top:8px}.VcTextInput.v-text-field:not(.v-text-field--outlined) .v-text-field__slot{transition:margin-bottom .1s}.VcTextInput.v-text-field:not(.v-text-field--outlined).v-input--is-focused .v-text-field__slot,.VcTextInput.v-text-field:not(.v-text-field--outlined).v-input--is-label-active .v-text-field__slot{margin-bottom:-20px}.VcTextInput.v-text-field.v-input--is-focused .v-input__slot{border-color:currentColor}.VcTextInput.v-text-field .v-input__slot{min-height:52px!important;border-radius:6px;background-color:#fff!important;position:relative!important;border:solid 1px rgba(0,0,0,.12);transition:border-color,background-color .1s!important}.VcTextInput.v-text-field .v-input__slot:hover{border-color:currentColor}.VcTextInput.v-text-field .v-input__slot:after,.VcTextInput.v-text-field .v-input__slot:before{display:none}.VcTextInput.v-text-field.v-input--is-disabled .v-input__slot{background-color:rgba(0,0,0,.03)!important}.VcTextInput.v-text-field input{font-size:15px!important;font-weight:500}.VcTextInput.v-text-field .v-text-field__prefix{color:rgba(0,0,0,.54)!important}.VcTextInput.v-text-field .v-input__append-inner,.VcTextInput.v-text-field .v-input__prepend-inner{color:rgba(0,0,0,.4);margin:auto 12px auto 12px!important;max-width:20px;max-height:20px;padding:0!important}.VcTextInput.v-text-field .v-input__append-inner .v-input__icon,.VcTextInput.v-text-field .v-input__prepend-inner .v-input__icon{height:100%;max-width:100%;min-width:100%;max-height:100%;min-height:100%}.VcTextInput.v-text-field .v-input__append-inner i,.VcTextInput.v-text-field .v-input__prepend-inner i{color:rgba(0,0,0,.4)}.VcTextInput.v-text-field.error--text .v-input__slot{border:1px solid #f2514a}",
|
|
3568
|
+
inject("data-v-027a8ee5_0", {
|
|
3569
|
+
source: ".VcTextInput.v-text-field[data-v-027a8ee5]{font-family:var(--primary-font-family)}.VcTextInput.v-text-field[data-v-027a8ee5] .v-input__slot{padding:0 var(--size-value3);height:var(--size-value13);background:#fff;border:1px solid var(--gray-lighten-1);box-sizing:border-box;border-radius:6px}.VcTextInput.v-text-field[data-v-027a8ee5] .v-input__slot label{font-size:var(--font-size-small2);line-height:var(--size-value5);color:var(--gray-darken-3);font-weight:var(--font-weight-medium)}.VcTextInput.v-text-field[data-v-027a8ee5] .v-input__slot input{font-weight:var(--font-weight-medium2);font-size:var(--font-size-small2);line-height:var(--size-value5);color:var(--gray-darken-5)}.VcTextInput.v-text-field[data-v-027a8ee5] .v-input__slot:after,.VcTextInput.v-text-field[data-v-027a8ee5] .v-input__slot:before{display:none}.VcTextInput.v-text-field[data-v-027a8ee5] .v-input__slot:hover{border-color:var(--gray-darken-3)}.VcTextInput.v-text-field[data-v-027a8ee5] .v-input__slot:active,.VcTextInput.v-text-field[data-v-027a8ee5] .v-input__slot:focus,.VcTextInput.v-text-field[data-v-027a8ee5] .v-input__slot:focus-within{border:1px solid var(--v-secondary-base);box-shadow:0 0 0 3px var(--v-secondary-lighten1)}.VcTextInput.v-text-field[data-v-027a8ee5] .v-input__slot:active input,.VcTextInput.v-text-field[data-v-027a8ee5] .v-input__slot:focus input,.VcTextInput.v-text-field[data-v-027a8ee5] .v-input__slot:focus-within input{color:var(--gray-darken-3)}.VcTextInput.v-text-field[data-v-027a8ee5].error--text .v-input__slot{border-color:var(--red);color:unset;box-shadow:unset;font-size:var(--font-size-xx-small);line-height:var(--size-value4)}.VcTextInput.v-text-field[data-v-027a8ee5].v-input--is-focused label,.VcTextInput.v-text-field[data-v-027a8ee5].v-input--is-label-active label{font-size:var(--font-size-small);line-height:1.17;letter-spacing:-.3px;color:var(--gray-darken-4)!important;transform:translateY(-100%) scale(.85);top:var(--size-value2)}.VcTextInput.v-text-field[data-v-027a8ee5].v-input--is-focused .v-text-field__slot,.VcTextInput.v-text-field[data-v-027a8ee5].v-input--is-label-active .v-text-field__slot{margin-bottom:-14px}.VcTextInput.v-text-field[data-v-027a8ee5].v-input--is-disabled .v-input__slot{background:var(--gray-lighten-3);border:1px solid var(--gray-lighten-1)}.VcTextInput.v-text-field[data-v-027a8ee5].v-input--is-disabled .v-input__slot input,.VcTextInput.v-text-field[data-v-027a8ee5].v-input--is-disabled .v-input__slot label{color:var(--gray-darken-2)}.VcTextInput.v-text-field[data-v-027a8ee5]:not(.v-input--is-label-active):not(.v-input--is-focused) input{padding:var(--size-value2) 0}.VcTextInput.v-text-field[data-v-027a8ee5] .v-messages__message{line-height:var(--size-value4)}",
|
|
3594
3570
|
map: undefined,
|
|
3595
3571
|
media: undefined
|
|
3596
3572
|
});
|
|
@@ -3598,7 +3574,7 @@ const __vue_inject_styles__$a = function (inject) {
|
|
|
3598
3574
|
/* scoped */
|
|
3599
3575
|
|
|
3600
3576
|
|
|
3601
|
-
const __vue_scope_id__$a = "data-v-
|
|
3577
|
+
const __vue_scope_id__$a = "data-v-027a8ee5";
|
|
3602
3578
|
/* module identifier */
|
|
3603
3579
|
|
|
3604
3580
|
const __vue_module_identifier__$a = undefined;
|