lau-ecom-design-system 1.0.16 → 1.0.18
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/lau-ecom-design-system.esm.css +13 -1
- package/dist/lau-ecom-design-system.esm.js +1582 -265
- package/dist/lau-ecom-design-system.min.css +13 -1
- package/dist/lau-ecom-design-system.min.js +1 -1
- package/dist/lau-ecom-design-system.ssr.css +13 -1
- package/dist/lau-ecom-design-system.ssr.js +1496 -218
- package/dist/style.css +190 -19
- package/package.json +80 -80
- package/src/components/LauEcomBannerCookies/LauEcomBannerCookies.vue +8 -39
- package/src/components/LauEcomBannerCookies/LauEcomBannerCookiesConfig.vue +8 -46
- package/src/components/LauEcomBannerCookies/LauEcomBannerCookiesConfigAccordion.vue +2 -13
- package/src/components/LauEcomButton/LauEcomButton.vue +137 -149
- package/src/components/LauEcomCheckbox/LauEcomCheckbox.vue +143 -148
- package/src/components/LauEcomDisclamer/LauEcomDisclamer.vue +79 -82
- package/src/components/LauEcomDropdown/LauEcomDropdown.vue +203 -203
- package/src/components/LauEcomIcon/LauEcomCoreIconBook.vue +26 -29
- package/src/components/LauEcomIcon/LauEcomCoreIconFileCode.vue +28 -31
- package/src/components/LauEcomIcon/LauEcomUpcIconCertificate.vue +28 -31
- package/src/components/LauEcomIcon/LauEcomUpcIconCheck.vue +26 -29
- package/src/components/LauEcomIcon/LauEcomUpcIconCheckCircle.vue +28 -31
- package/src/components/LauEcomIcon/LauEcomUpcIconCreditCard.vue +28 -31
- package/src/components/LauEcomIcon/LauEcomUpcIconExclamationCircle.vue +28 -31
- package/src/components/LauEcomIcon/LauEcomUpcIconExclamationTriangle.vue +28 -31
- package/src/components/LauEcomIcon/LauEcomUpcIconInfoCircle.vue +26 -29
- package/src/components/LauEcomIcon/LauEcomUpcIconNavArrow.vue +26 -28
- package/src/components/LauEcomIcon/LauEcomUpcIconNavCheckmark.vue +26 -29
- package/src/components/LauEcomInput/LauEcomInput.vue +207 -208
- package/src/components/LauEcomLoaderPage/LauEcomLoaderPage.vue +2 -28
- package/src/components/LauEcomRadioButton/LauEcomRadioButton.vue +103 -115
- package/src/components/LauEcomRtb/LauEcomRtb.vue +71 -92
- package/src/components/LauEcomStepbar/LauEcomStepbar.vue +43 -49
- package/src/components/LauEcomStepbar/LauEcomStepbarItem.vue +128 -172
- package/src/components/LauEcomSwitch/LauEcomSwitch.vue +9 -20
- package/src/components/LauEcomTab/LauEcomTab.vue +82 -113
- package/src/components/LauEcomTextButton/LauEcomTextButton.vue +13 -75
@@ -1,172 +1,128 @@
|
|
1
|
-
<script lang="ts" setup>
|
2
|
-
import { computed, toRefs } from "vue";
|
3
|
-
import { Step } from "./types";
|
4
|
-
import { LauEcomUpcIconCheck } from "../LauEcomIcon";
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
{
|
43
|
-
"lau-ecom-step--completed-upc":
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
dsEcom-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
}
|
120
|
-
|
121
|
-
.lau-ecom-step--
|
122
|
-
@apply
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
!dsEcom-bg-cbt-color-apple-green-60-base
|
130
|
-
dsEcom-border-cbt-color-apple-green-60-base;
|
131
|
-
}
|
132
|
-
|
133
|
-
.lau-ecom-step--current-upc {
|
134
|
-
@apply !dsEcom-text-upc-color-red-60-base
|
135
|
-
dsEcom-border-upc-color-red-60-base;
|
136
|
-
}
|
137
|
-
|
138
|
-
.lau-ecom-step--current-cbt {
|
139
|
-
@apply !dsEcom-text-cbt-color-apple-green-60-base
|
140
|
-
dsEcom-border-cbt-color-apple-green-60-base;
|
141
|
-
}
|
142
|
-
|
143
|
-
.lau-ecom-step-trail {
|
144
|
-
@apply dsEcom-bg-upc-color-neutral-70
|
145
|
-
dsEcom-grow
|
146
|
-
!dsEcom-h-[1px];
|
147
|
-
}
|
148
|
-
|
149
|
-
.lau-ecom-step-trail--completed-upc {
|
150
|
-
@apply !dsEcom-bg-upc-color-red-60-base;
|
151
|
-
}
|
152
|
-
|
153
|
-
.lau-ecom-step-trail--completed-cbt {
|
154
|
-
@apply !dsEcom-bg-cbt-color-apple-green-60-base;
|
155
|
-
}
|
156
|
-
|
157
|
-
.lau-ecom-step-label--upc {
|
158
|
-
@apply dsEcom-text-upc-color-red-60-base;
|
159
|
-
}
|
160
|
-
|
161
|
-
.lau-ecom-step-label--cbt {
|
162
|
-
@apply dsEcom-text-cbt-color-apple-green-60-base;
|
163
|
-
}
|
164
|
-
|
165
|
-
.lau-ecom-step-label--current {
|
166
|
-
@apply dsEcom-font-bold;
|
167
|
-
}
|
168
|
-
|
169
|
-
.lau-ecom-step-label--disabled {
|
170
|
-
@apply dsEcom-text-upc-color-neutral-70;
|
171
|
-
}
|
172
|
-
</style>
|
1
|
+
<script lang="ts" setup>
|
2
|
+
import { computed, toRefs } from "vue";
|
3
|
+
import { Step } from "./types";
|
4
|
+
import { LauEcomUpcIconCheck } from "../LauEcomIcon";
|
5
|
+
|
6
|
+
interface Props {
|
7
|
+
step: Step;
|
8
|
+
totalSteps: number;
|
9
|
+
isCurrentStep: boolean;
|
10
|
+
isCompleted: boolean;
|
11
|
+
isLastItem: boolean;
|
12
|
+
}
|
13
|
+
|
14
|
+
const props = withDefaults(defineProps<Props>(), {
|
15
|
+
step: () => ({
|
16
|
+
numberStep: 1,
|
17
|
+
label: "Step,",
|
18
|
+
}),
|
19
|
+
totalSteps: 10,
|
20
|
+
isCurrentStep: false,
|
21
|
+
isCompleted: false,
|
22
|
+
isLastItem: false,
|
23
|
+
});
|
24
|
+
|
25
|
+
const { numberStep, label } = toRefs(props.step);
|
26
|
+
|
27
|
+
const stepbarItemClasses = computed(() => {
|
28
|
+
return [
|
29
|
+
"lau-ecom-step upc-font-body-reg-05-14px",
|
30
|
+
{
|
31
|
+
"lau-ecom-step--current-upc": props.isCurrentStep,
|
32
|
+
},
|
33
|
+
{
|
34
|
+
"lau-ecom-step--completed-upc": props.isCompleted,
|
35
|
+
},
|
36
|
+
];
|
37
|
+
});
|
38
|
+
|
39
|
+
const stepTrailClasses = computed(() => {
|
40
|
+
return [
|
41
|
+
"lau-ecom-step-trail",
|
42
|
+
{
|
43
|
+
"lau-ecom-step-trail--completed-upc": props.isCompleted,
|
44
|
+
},
|
45
|
+
];
|
46
|
+
});
|
47
|
+
|
48
|
+
const stepLabelClasses = computed(() => {
|
49
|
+
return [
|
50
|
+
"lau-ecom-step-label core-font-body-reg-06-12px lau-ecom-step-label--upc",
|
51
|
+
{
|
52
|
+
"lau-ecom-step-label--disabled":
|
53
|
+
!props.isCompleted && !props.isCurrentStep,
|
54
|
+
},
|
55
|
+
{
|
56
|
+
"lau-ecom-step-label--current": props.isCurrentStep,
|
57
|
+
},
|
58
|
+
];
|
59
|
+
});
|
60
|
+
</script>
|
61
|
+
|
62
|
+
<template>
|
63
|
+
<div class="dsEcom-w-full">
|
64
|
+
<div class="dsEcom-flex dsEcom-items-center dsEcom-w-full">
|
65
|
+
<div :class="stepbarItemClasses">
|
66
|
+
<span v-if="!props.isCompleted">
|
67
|
+
{{ `${numberStep < 10 && "0"}${numberStep}` }}
|
68
|
+
</span>
|
69
|
+
<LauEcomUpcIconCheck
|
70
|
+
v-else
|
71
|
+
class="dsEcom-fill-neutral-10"
|
72
|
+
width="24"
|
73
|
+
height="24"
|
74
|
+
/>
|
75
|
+
</div>
|
76
|
+
<span v-if="!isLastItem" :class="stepTrailClasses" />
|
77
|
+
</div>
|
78
|
+
<span :class="stepLabelClasses">{{ label }}</span>
|
79
|
+
</div>
|
80
|
+
</template>
|
81
|
+
|
82
|
+
<style scoped>
|
83
|
+
.lau-ecom-step {
|
84
|
+
@apply dsEcom-flex
|
85
|
+
dsEcom-items-center
|
86
|
+
dsEcom-justify-center
|
87
|
+
dsEcom-border
|
88
|
+
dsEcom-border-neutral-70
|
89
|
+
dsEcom-text-neutral-70
|
90
|
+
dsEcom-bg-neutral-10
|
91
|
+
dsEcom-w-8
|
92
|
+
dsEcom-h-8
|
93
|
+
dsEcom-rounded-full;
|
94
|
+
}
|
95
|
+
|
96
|
+
.lau-ecom-step--completed-upc {
|
97
|
+
@apply !dsEcom-text-neutral-10
|
98
|
+
!dsEcom-bg-primary-60
|
99
|
+
dsEcom-border-primary-60;
|
100
|
+
}
|
101
|
+
|
102
|
+
.lau-ecom-step--current-upc {
|
103
|
+
@apply !dsEcom-text-primary-60
|
104
|
+
dsEcom-border-primary-60;
|
105
|
+
}
|
106
|
+
|
107
|
+
.lau-ecom-step-trail {
|
108
|
+
@apply dsEcom-bg-neutral-70
|
109
|
+
dsEcom-grow
|
110
|
+
!dsEcom-h-[1px];
|
111
|
+
}
|
112
|
+
|
113
|
+
.lau-ecom-step-trail--completed-upc {
|
114
|
+
@apply !dsEcom-bg-primary-60;
|
115
|
+
}
|
116
|
+
|
117
|
+
.lau-ecom-step-label--upc {
|
118
|
+
@apply dsEcom-text-primary-60;
|
119
|
+
}
|
120
|
+
|
121
|
+
.lau-ecom-step-label--current {
|
122
|
+
@apply dsEcom-font-bold;
|
123
|
+
}
|
124
|
+
|
125
|
+
.lau-ecom-step-label--disabled {
|
126
|
+
@apply dsEcom-text-neutral-70;
|
127
|
+
}
|
128
|
+
</style>
|
@@ -1,9 +1,7 @@
|
|
1
1
|
<script lang="ts" setup>
|
2
2
|
import { computed, watch } from "vue";
|
3
|
-
import { LauEcomInstance } from "../../enums";
|
4
3
|
|
5
4
|
interface Props {
|
6
|
-
instance?: LauEcomInstance;
|
7
5
|
currentClass?: string;
|
8
6
|
isDisabled?: boolean;
|
9
7
|
isChecked?: boolean;
|
@@ -13,7 +11,6 @@ interface Props {
|
|
13
11
|
}
|
14
12
|
|
15
13
|
const props = withDefaults(defineProps<Props>(), {
|
16
|
-
instance: LauEcomInstance.Upc,
|
17
14
|
currentClass: "",
|
18
15
|
isDisabled: false,
|
19
16
|
isChecked: false,
|
@@ -29,9 +26,7 @@ const emit = defineEmits(["onToggle"]);
|
|
29
26
|
|
30
27
|
const lauEcomSwitchClasses = computed(() => {
|
31
28
|
return {
|
32
|
-
"dsEcom-peer lau-ecom-switch": true,
|
33
|
-
"lau-ecom-switch--upc": props.instance === LauEcomInstance.Upc,
|
34
|
-
"lau-ecom-switch--cbt": props.instance === LauEcomInstance.Cibertec,
|
29
|
+
"dsEcom-peer lau-ecom-switch lau-ecom-switch--upc": true,
|
35
30
|
"lau-ecom-switch--disabled": props.isDisabled,
|
36
31
|
};
|
37
32
|
});
|
@@ -77,24 +72,18 @@ watch(model, (newValue) => {
|
|
77
72
|
dsEcom-duration-[0.3s]
|
78
73
|
checked:dsEcom-p-1
|
79
74
|
checked:dsEcom-cursor-pointer
|
80
|
-
checked:disabled:!dsEcom-bg-
|
81
|
-
checked:disabled:!dsEcom-border-
|
75
|
+
checked:disabled:!dsEcom-bg-neutral-60
|
76
|
+
checked:disabled:!dsEcom-border-neutral-60;
|
82
77
|
}
|
83
78
|
|
84
79
|
.lau-ecom-switch--upc {
|
85
|
-
@apply dsEcom-border-
|
86
|
-
checked:dsEcom-bg-
|
87
|
-
checked:dsEcom-border-
|
88
|
-
}
|
89
|
-
|
90
|
-
.lau-ecom-switch--cbt {
|
91
|
-
@apply dsEcom-border-color-cbt-color-neutral-90
|
92
|
-
checked:dsEcom-bg-cbt-color-apple-green-60-base
|
93
|
-
checked:dsEcom-border-cbt-color-apple-green-60-base;
|
80
|
+
@apply dsEcom-border-neutral-90
|
81
|
+
checked:dsEcom-bg-primary-60
|
82
|
+
checked:dsEcom-border-primary-60;
|
94
83
|
}
|
95
84
|
|
96
85
|
.lau-ecom-switch--disabled {
|
97
|
-
@apply dsEcom-border-
|
86
|
+
@apply dsEcom-border-neutral-60
|
98
87
|
dsEcom-pointer-events-none;
|
99
88
|
}
|
100
89
|
|
@@ -104,7 +93,7 @@ watch(model, (newValue) => {
|
|
104
93
|
dsEcom-w-4
|
105
94
|
dsEcom-h-4
|
106
95
|
dsEcom-ml-1
|
107
|
-
dsEcom-bg-
|
96
|
+
dsEcom-bg-neutral-90
|
108
97
|
dsEcom-rounded-full
|
109
98
|
dsEcom-pointer-events-none
|
110
99
|
dsEcom-transition-all
|
@@ -114,6 +103,6 @@ watch(model, (newValue) => {
|
|
114
103
|
}
|
115
104
|
|
116
105
|
.lau-ecom-switch-button--disabled {
|
117
|
-
@apply dsEcom-bg-
|
106
|
+
@apply dsEcom-bg-neutral-60;
|
118
107
|
}
|
119
108
|
</style>
|
@@ -1,113 +1,82 @@
|
|
1
|
-
<script lang="ts" setup>
|
2
|
-
import { computed } from "vue";
|
3
|
-
import {
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
"
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
dsEcom-
|
71
|
-
dsEcom-
|
72
|
-
dsEcom-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
dsEcom-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
@apply dsEcom-text-upc-epg-color-purple-60-base
|
84
|
-
hover:dsEcom-bg-upc-color-neutral-20;
|
85
|
-
}
|
86
|
-
|
87
|
-
.lau-ecom-tab--upc-active {
|
88
|
-
@apply dsEcom-border-b-4
|
89
|
-
dsEcom-border-upc-epg-color-purple-60-base
|
90
|
-
dsEcom-rounded-b-[2px]
|
91
|
-
hover:dsEcom-bg-upc-color-neutral-10;
|
92
|
-
}
|
93
|
-
|
94
|
-
.lau-ecom-tab--cbt {
|
95
|
-
@apply dsEcom-text-cbt-astro-blue-80
|
96
|
-
hover:dsEcom-bg-color-cbt-color-neutral-20;
|
97
|
-
}
|
98
|
-
|
99
|
-
.lau-ecom-tab--cbt-active {
|
100
|
-
@apply dsEcom-border-b-4
|
101
|
-
dsEcom-border-cbt-astro-blue-80
|
102
|
-
dsEcom-rounded-b-[2px]
|
103
|
-
hover:dsEcom-bg-color-cbt-color-neutral-10;
|
104
|
-
}
|
105
|
-
|
106
|
-
.lau-ecom-tab-line {
|
107
|
-
@apply dsEcom-w-full
|
108
|
-
dsEcom-mt-4
|
109
|
-
dsEcom-h-[4px]
|
110
|
-
dsEcom-rounded-[2px]
|
111
|
-
dsEcom-bg-upc-epg-color-purple-60-base;
|
112
|
-
}
|
113
|
-
</style>
|
1
|
+
<script lang="ts" setup>
|
2
|
+
import { computed } from "vue";
|
3
|
+
import { LauEcomSize } from "../../enums";
|
4
|
+
|
5
|
+
interface Props {
|
6
|
+
size?: LauEcomSize;
|
7
|
+
isDisabled?: boolean;
|
8
|
+
isActive?: boolean;
|
9
|
+
title?: string;
|
10
|
+
}
|
11
|
+
|
12
|
+
const props = withDefaults(defineProps<Props>(), {
|
13
|
+
size: LauEcomSize.md,
|
14
|
+
isDisabled: false,
|
15
|
+
isActive: false,
|
16
|
+
title: "item",
|
17
|
+
});
|
18
|
+
|
19
|
+
const lauEcomTabClasses = computed(() => {
|
20
|
+
return {
|
21
|
+
"lau-ecom-tab lau-ecom-tab--upc upc-font-button-16px": true,
|
22
|
+
"lau-ecom-tab--disabled": props.isDisabled,
|
23
|
+
"lau-ecom-tab--upc-active": props.isActive,
|
24
|
+
};
|
25
|
+
});
|
26
|
+
|
27
|
+
const iconClasses = computed(() => {
|
28
|
+
return {
|
29
|
+
"dsEcom-fill-secondary-60": true,
|
30
|
+
"dsEcom-fill-neutral-70": props.isDisabled,
|
31
|
+
};
|
32
|
+
});
|
33
|
+
</script>
|
34
|
+
|
35
|
+
<template>
|
36
|
+
<div class="dsEcom-flex">
|
37
|
+
<div :class="lauEcomTabClasses">
|
38
|
+
<slot name="icon" :classIcon="iconClasses"></slot>
|
39
|
+
<p>{{ title }}</p>
|
40
|
+
</div>
|
41
|
+
</div>
|
42
|
+
</template>
|
43
|
+
|
44
|
+
<style scoped>
|
45
|
+
.lau-ecom-tab {
|
46
|
+
@apply dsEcom-flex
|
47
|
+
dsEcom-flex-col
|
48
|
+
dsEcom-justify-center
|
49
|
+
dsEcom-items-center
|
50
|
+
dsEcom-pt-2
|
51
|
+
dsEcom-pb-1
|
52
|
+
dsEcom-px-5
|
53
|
+
dsEcom-cursor-pointer
|
54
|
+
dsEcom-rounded-[4px];
|
55
|
+
}
|
56
|
+
|
57
|
+
.lau-ecom-tab--disabled {
|
58
|
+
@apply !dsEcom-text-neutral-70
|
59
|
+
dsEcom-cursor-not-allowed
|
60
|
+
hover:!dsEcom-bg-neutral-10;
|
61
|
+
}
|
62
|
+
|
63
|
+
.lau-ecom-tab--upc {
|
64
|
+
@apply dsEcom-text-secondary-60
|
65
|
+
hover:dsEcom-bg-neutral-20;
|
66
|
+
}
|
67
|
+
|
68
|
+
.lau-ecom-tab--upc-active {
|
69
|
+
@apply dsEcom-border-b-4
|
70
|
+
dsEcom-border-secondary-60
|
71
|
+
dsEcom-rounded-b-[2px]
|
72
|
+
hover:dsEcom-bg-neutral-10;
|
73
|
+
}
|
74
|
+
|
75
|
+
.lau-ecom-tab-line {
|
76
|
+
@apply dsEcom-w-full
|
77
|
+
dsEcom-mt-4
|
78
|
+
dsEcom-h-[4px]
|
79
|
+
dsEcom-rounded-[2px]
|
80
|
+
dsEcom-bg-secondary-60;
|
81
|
+
}
|
82
|
+
</style>
|