lau-ecom-design-system 1.0.19 → 1.0.21
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/README.md +49 -0
- package/dist/316236bc7a52233c.png +0 -0
- package/dist/lau-ecom-design-system.esm.css +8 -1
- package/dist/lau-ecom-design-system.esm.js +1657 -682
- package/dist/lau-ecom-design-system.min.css +8 -1
- package/dist/lau-ecom-design-system.min.js +1 -1
- package/dist/lau-ecom-design-system.ssr.css +8 -1
- package/dist/lau-ecom-design-system.ssr.js +1406 -470
- package/dist/style.css +290 -69
- package/package.json +81 -80
- package/src/components/LauEcomBannerCookies/LauEcomBannerCookies.vue +178 -168
- package/src/components/LauEcomBannerCookies/LauEcomBannerCookiesConfig.vue +160 -159
- package/src/components/LauEcomBannerCookies/LauEcomBannerCookiesConfigAccordion.vue +80 -76
- package/src/components/LauEcomButton/LauEcomButton.vue +137 -137
- package/src/components/LauEcomCheckbox/LauEcomCheckbox.vue +143 -143
- package/src/components/LauEcomDisclamer/LauEcomDisclamer.vue +79 -79
- package/src/components/LauEcomDropdown/LauEcomDropdown.vue +208 -203
- package/src/components/LauEcomFooter/LauEcomFooter.vue +24 -73
- package/src/components/LauEcomFooter/LauEcomSubFooter.vue +5 -31
- package/src/components/LauEcomFooter/LauEcomSubFooterCategory.vue +9 -48
- package/src/components/LauEcomIcon/LauEcomCoreIconBook.vue +26 -26
- package/src/components/LauEcomIcon/LauEcomCoreIconFileCode.vue +28 -28
- package/src/components/LauEcomIcon/LauEcomUpcIconArrowDown.vue +0 -7
- package/src/components/LauEcomIcon/LauEcomUpcIconCertificate.vue +28 -28
- package/src/components/LauEcomIcon/LauEcomUpcIconCheck.vue +26 -26
- package/src/components/LauEcomIcon/LauEcomUpcIconCheckCircle.vue +28 -28
- package/src/components/LauEcomIcon/LauEcomUpcIconCreditCard.vue +28 -28
- package/src/components/LauEcomIcon/LauEcomUpcIconExclamationCircle.vue +28 -28
- package/src/components/LauEcomIcon/LauEcomUpcIconExclamationTriangle.vue +28 -28
- package/src/components/LauEcomIcon/LauEcomUpcIconInfoCircle.vue +26 -26
- package/src/components/LauEcomIcon/LauEcomUpcIconNavArrow.vue +26 -26
- package/src/components/LauEcomIcon/LauEcomUpcIconNavBack.vue +25 -0
- package/src/components/LauEcomIcon/LauEcomUpcIconNavCheckmark.vue +26 -26
- package/src/components/LauEcomInput/LauEcomInput.vue +207 -207
- package/src/components/LauEcomInput2/LauEcomInput2.vue +207 -0
- package/src/components/LauEcomInputSearch/LauEcomInputSearch.vue +244 -0
- package/src/components/LauEcomLoaderPage/LauEcomLoaderPage.vue +16 -16
- package/src/components/LauEcomPaginator/LauEcomPaginator.vue +57 -0
- package/src/components/LauEcomPaginator/LauEcomPaginatorButton.vue +68 -0
- package/src/components/LauEcomRadioButton/LauEcomRadioButton.vue +103 -103
- package/src/components/LauEcomRtb/LauEcomRtb.vue +71 -71
- package/src/components/LauEcomStepbar/LauEcomStepbar.vue +43 -43
- package/src/components/LauEcomStepbar/LauEcomStepbarItem.vue +128 -128
- package/src/components/LauEcomSwitch/LauEcomSwitch.vue +110 -108
- package/src/components/LauEcomTab/LauEcomTab.vue +82 -82
- package/src/components/LauEcomTag/LauEcomTag.vue +56 -0
- package/src/components/LauEcomTextButton/LauEcomTextButton.vue +71 -71
- package/src/components/LauEcomTyPage/LauEcomSummary.vue +14 -0
- package/src/components/LauEcomTyPage/LauEcomSummaryItem.vue +22 -0
- package/src/components/LauEcomTyPage/LauEcomTyPage.vue +149 -0
@@ -1,108 +1,110 @@
|
|
1
|
-
<script lang="ts" setup>
|
2
|
-
import { computed, watch } from "vue";
|
3
|
-
|
4
|
-
interface Props {
|
5
|
-
currentClass?: string;
|
6
|
-
isDisabled?: boolean;
|
7
|
-
isChecked?: boolean;
|
8
|
-
id?: string;
|
9
|
-
name?: string;
|
10
|
-
label?: string;
|
11
|
-
}
|
12
|
-
|
13
|
-
const props = withDefaults(defineProps<Props>(), {
|
14
|
-
currentClass: "",
|
15
|
-
isDisabled: false,
|
16
|
-
isChecked: false,
|
17
|
-
id: "",
|
18
|
-
name: "",
|
19
|
-
label: "",
|
20
|
-
errorMessage: "",
|
21
|
-
});
|
22
|
-
|
23
|
-
const model = defineModel<boolean>();
|
24
|
-
|
25
|
-
const emit = defineEmits
|
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
|
-
dsEcom-
|
66
|
-
dsEcom-
|
67
|
-
dsEcom-
|
68
|
-
dsEcom-
|
69
|
-
dsEcom-
|
70
|
-
dsEcom-
|
71
|
-
dsEcom-
|
72
|
-
dsEcom-
|
73
|
-
|
74
|
-
|
75
|
-
checked:
|
76
|
-
checked:
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
dsEcom-
|
95
|
-
dsEcom-
|
96
|
-
dsEcom-
|
97
|
-
dsEcom-
|
98
|
-
dsEcom-
|
99
|
-
dsEcom-
|
100
|
-
dsEcom-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
1
|
+
<script lang="ts" setup>
|
2
|
+
import { computed, watch } from "vue";
|
3
|
+
|
4
|
+
interface Props {
|
5
|
+
currentClass?: string;
|
6
|
+
isDisabled?: boolean;
|
7
|
+
isChecked?: boolean;
|
8
|
+
id?: string;
|
9
|
+
name?: string;
|
10
|
+
label?: string;
|
11
|
+
}
|
12
|
+
|
13
|
+
const props = withDefaults(defineProps<Props>(), {
|
14
|
+
currentClass: "",
|
15
|
+
isDisabled: false,
|
16
|
+
isChecked: false,
|
17
|
+
id: "",
|
18
|
+
name: "",
|
19
|
+
label: "",
|
20
|
+
errorMessage: "",
|
21
|
+
});
|
22
|
+
|
23
|
+
const model = defineModel<boolean>();
|
24
|
+
|
25
|
+
const emit = defineEmits<{
|
26
|
+
(e: "onToggle", value: boolean): void;
|
27
|
+
}>();
|
28
|
+
|
29
|
+
const lauEcomSwitchClasses = computed(() => {
|
30
|
+
return {
|
31
|
+
"dsEcom-peer lau-ecom-switch lau-ecom-switch--upc": true,
|
32
|
+
"lau-ecom-switch--disabled": props.isDisabled,
|
33
|
+
};
|
34
|
+
});
|
35
|
+
|
36
|
+
const lauEcomSwitchButtonClasses = computed(() => {
|
37
|
+
return {
|
38
|
+
"lau-ecom-switch-button": true,
|
39
|
+
"lau-ecom-switch-button--disabled": props.isDisabled,
|
40
|
+
};
|
41
|
+
});
|
42
|
+
|
43
|
+
watch(model, (newValue) => {
|
44
|
+
if (newValue) emit("onToggle", newValue);
|
45
|
+
});
|
46
|
+
</script>
|
47
|
+
|
48
|
+
<template>
|
49
|
+
<div class="dsEcom-relative">
|
50
|
+
<input
|
51
|
+
:id="id"
|
52
|
+
v-model="model"
|
53
|
+
type="checkbox"
|
54
|
+
:name="name"
|
55
|
+
:disabled="isDisabled"
|
56
|
+
:class="lauEcomSwitchClasses"
|
57
|
+
/>
|
58
|
+
<div :class="lauEcomSwitchButtonClasses" />
|
59
|
+
</div>
|
60
|
+
</template>
|
61
|
+
|
62
|
+
<style scoped>
|
63
|
+
.lau-ecom-switch {
|
64
|
+
@apply dsEcom-relative
|
65
|
+
dsEcom-cursor-pointer
|
66
|
+
dsEcom-shrink-0
|
67
|
+
dsEcom-appearance-none
|
68
|
+
dsEcom-w-10
|
69
|
+
dsEcom-h-6
|
70
|
+
dsEcom-border
|
71
|
+
dsEcom-rounded-full
|
72
|
+
dsEcom-bg-white
|
73
|
+
dsEcom-transition-all
|
74
|
+
dsEcom-duration-[0.3s]
|
75
|
+
checked:dsEcom-p-1
|
76
|
+
checked:dsEcom-cursor-pointer
|
77
|
+
checked:disabled:!dsEcom-bg-neutral-60
|
78
|
+
checked:disabled:!dsEcom-border-neutral-60;
|
79
|
+
}
|
80
|
+
|
81
|
+
.lau-ecom-switch--upc {
|
82
|
+
@apply dsEcom-border-neutral-90
|
83
|
+
checked:dsEcom-bg-primary-60
|
84
|
+
checked:dsEcom-border-primary-60;
|
85
|
+
}
|
86
|
+
|
87
|
+
.lau-ecom-switch--disabled {
|
88
|
+
@apply dsEcom-border-neutral-60
|
89
|
+
dsEcom-pointer-events-none;
|
90
|
+
}
|
91
|
+
|
92
|
+
.lau-ecom-switch-button {
|
93
|
+
@apply dsEcom-absolute
|
94
|
+
dsEcom-top-1
|
95
|
+
dsEcom-w-4
|
96
|
+
dsEcom-h-4
|
97
|
+
dsEcom-ml-1
|
98
|
+
dsEcom-bg-neutral-90
|
99
|
+
dsEcom-rounded-full
|
100
|
+
dsEcom-pointer-events-none
|
101
|
+
dsEcom-transition-all
|
102
|
+
dsEcom-duration-[0.3s]
|
103
|
+
peer-checked:dsEcom-ml-5
|
104
|
+
peer-checked:dsEcom-bg-white;
|
105
|
+
}
|
106
|
+
|
107
|
+
.lau-ecom-switch-button--disabled {
|
108
|
+
@apply dsEcom-bg-neutral-60;
|
109
|
+
}
|
110
|
+
</style>
|
@@ -1,82 +1,82 @@
|
|
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>
|
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>
|
@@ -0,0 +1,56 @@
|
|
1
|
+
<script lang="ts" setup>
|
2
|
+
import { computed } from "vue";
|
3
|
+
import { LauEcomTagType, LauEcomTagSize } from "./types";
|
4
|
+
|
5
|
+
interface Props {
|
6
|
+
size?: LauEcomTagSize;
|
7
|
+
type?: LauEcomTagType;
|
8
|
+
}
|
9
|
+
|
10
|
+
const props = withDefaults(defineProps<Props>(), {
|
11
|
+
size: LauEcomTagSize.Big,
|
12
|
+
type: LauEcomTagType.Intense,
|
13
|
+
});
|
14
|
+
|
15
|
+
const tagClasses = computed(() => {
|
16
|
+
return {
|
17
|
+
"lau-ecom-tag": true,
|
18
|
+
"lau-ecom-tag--intense": props.type === LauEcomTagType.Intense,
|
19
|
+
"lau-ecom-tag--soft-secondary": props.type === LauEcomTagType.SoftSecondary,
|
20
|
+
"lau-ecom-tag--soft-tertiary": props.type === LauEcomTagType.SoftTertiary,
|
21
|
+
"core-font-body-bold-05-14px": props.size === LauEcomTagSize.Big,
|
22
|
+
"core-font-body-bold-07-10px": props.size === LauEcomTagSize.Small,
|
23
|
+
};
|
24
|
+
});
|
25
|
+
</script>
|
26
|
+
|
27
|
+
<template>
|
28
|
+
<div :class="tagClasses">
|
29
|
+
<slot></slot>
|
30
|
+
</div>
|
31
|
+
</template>
|
32
|
+
|
33
|
+
<style scoped>
|
34
|
+
.lau-ecom-tag {
|
35
|
+
@apply dsEcom-uppercase
|
36
|
+
dsEcom-w-fit
|
37
|
+
dsEcom-px-2
|
38
|
+
dsEcom-py-1
|
39
|
+
dsEcom-rounded-core-border-radius-4px;
|
40
|
+
}
|
41
|
+
|
42
|
+
.lau-ecom-tag--soft-secondary {
|
43
|
+
@apply dsEcom-text-secondary-60
|
44
|
+
dsEcom-bg-secondary-10;
|
45
|
+
}
|
46
|
+
|
47
|
+
.lau-ecom-tag--soft-tertiary {
|
48
|
+
@apply dsEcom-text-tertiary-80
|
49
|
+
dsEcom-bg-tertiary-10;
|
50
|
+
}
|
51
|
+
|
52
|
+
.lau-ecom-tag--intense {
|
53
|
+
@apply dsEcom-text-neutral-10
|
54
|
+
dsEcom-bg-social-pink-70;
|
55
|
+
}
|
56
|
+
</style>
|
@@ -1,71 +1,71 @@
|
|
1
|
-
<script lang="ts" setup>
|
2
|
-
import { computed } from "vue";
|
3
|
-
import { LauEcomUpcIconNavArrow } from "../LauEcomIcon";
|
4
|
-
|
5
|
-
interface Props {
|
6
|
-
size?: string;
|
7
|
-
isDisabled?: boolean;
|
8
|
-
type?: string;
|
9
|
-
hasArrow?: boolean;
|
10
|
-
}
|
11
|
-
|
12
|
-
const props = withDefaults(defineProps<Props>(), {
|
13
|
-
size: "medium",
|
14
|
-
isDisabled: false,
|
15
|
-
type: "button",
|
16
|
-
hasArrow: false,
|
17
|
-
});
|
18
|
-
|
19
|
-
const emit = defineEmits(["onClick"]);
|
20
|
-
|
21
|
-
const handleClick = () => {
|
22
|
-
emit("onClick");
|
23
|
-
};
|
24
|
-
|
25
|
-
const lauEcomButtonTextClasses = computed(() => {
|
26
|
-
return {
|
27
|
-
"lau-ecom-text-button lau-ecom-text-button--upc upc-font-button-16px": true,
|
28
|
-
"lau-ecom-text-button--disabled": props.isDisabled,
|
29
|
-
};
|
30
|
-
});
|
31
|
-
</script>
|
32
|
-
|
33
|
-
<template>
|
34
|
-
<button
|
35
|
-
:class="lauEcomButtonTextClasses"
|
36
|
-
:disabled="isDisabled"
|
37
|
-
@click="handleClick"
|
38
|
-
>
|
39
|
-
<slot></slot>
|
40
|
-
<LauEcomUpcIconNavArrow
|
41
|
-
v-if="hasArrow"
|
42
|
-
class="dsEcom-rotate-90 lau-ecom-icon-text-button"
|
43
|
-
width="16"
|
44
|
-
height="16"
|
45
|
-
/>
|
46
|
-
</button>
|
47
|
-
</template>
|
48
|
-
|
49
|
-
<style scoped>
|
50
|
-
.lau-ecom-text-button {
|
51
|
-
@apply dsEcom-flex
|
52
|
-
dsEcom-items-center
|
53
|
-
dsEcom-gap-2;
|
54
|
-
}
|
55
|
-
|
56
|
-
.lau-ecom-text-button--upc {
|
57
|
-
@apply dsEcom-text-primary-60
|
58
|
-
hover:dsEcom-text-primary-70
|
59
|
-
active:dsEcom-text-primary-80;
|
60
|
-
}
|
61
|
-
|
62
|
-
.lau-ecom-text-button--disabled {
|
63
|
-
@apply dsEcom-text-neutral-70;
|
64
|
-
}
|
65
|
-
|
66
|
-
.lau-ecom-icon-text-button {
|
67
|
-
@apply dsEcom-fill-primary-60
|
68
|
-
hover:dsEcom-fill-primary-70
|
69
|
-
active:dsEcom-fill-primary-80;
|
70
|
-
}
|
71
|
-
</style>
|
1
|
+
<script lang="ts" setup>
|
2
|
+
import { computed } from "vue";
|
3
|
+
import { LauEcomUpcIconNavArrow } from "../LauEcomIcon";
|
4
|
+
|
5
|
+
interface Props {
|
6
|
+
size?: string;
|
7
|
+
isDisabled?: boolean;
|
8
|
+
type?: string;
|
9
|
+
hasArrow?: boolean;
|
10
|
+
}
|
11
|
+
|
12
|
+
const props = withDefaults(defineProps<Props>(), {
|
13
|
+
size: "medium",
|
14
|
+
isDisabled: false,
|
15
|
+
type: "button",
|
16
|
+
hasArrow: false,
|
17
|
+
});
|
18
|
+
|
19
|
+
const emit = defineEmits(["onClick"]);
|
20
|
+
|
21
|
+
const handleClick = () => {
|
22
|
+
emit("onClick");
|
23
|
+
};
|
24
|
+
|
25
|
+
const lauEcomButtonTextClasses = computed(() => {
|
26
|
+
return {
|
27
|
+
"lau-ecom-text-button lau-ecom-text-button--upc upc-font-button-16px": true,
|
28
|
+
"lau-ecom-text-button--disabled": props.isDisabled,
|
29
|
+
};
|
30
|
+
});
|
31
|
+
</script>
|
32
|
+
|
33
|
+
<template>
|
34
|
+
<button
|
35
|
+
:class="lauEcomButtonTextClasses"
|
36
|
+
:disabled="isDisabled"
|
37
|
+
@click="handleClick"
|
38
|
+
>
|
39
|
+
<slot></slot>
|
40
|
+
<LauEcomUpcIconNavArrow
|
41
|
+
v-if="hasArrow"
|
42
|
+
class="dsEcom-rotate-90 lau-ecom-icon-text-button"
|
43
|
+
width="16"
|
44
|
+
height="16"
|
45
|
+
/>
|
46
|
+
</button>
|
47
|
+
</template>
|
48
|
+
|
49
|
+
<style scoped>
|
50
|
+
.lau-ecom-text-button {
|
51
|
+
@apply dsEcom-flex
|
52
|
+
dsEcom-items-center
|
53
|
+
dsEcom-gap-2;
|
54
|
+
}
|
55
|
+
|
56
|
+
.lau-ecom-text-button--upc {
|
57
|
+
@apply dsEcom-text-primary-60
|
58
|
+
hover:dsEcom-text-primary-70
|
59
|
+
active:dsEcom-text-primary-80;
|
60
|
+
}
|
61
|
+
|
62
|
+
.lau-ecom-text-button--disabled {
|
63
|
+
@apply dsEcom-text-neutral-70;
|
64
|
+
}
|
65
|
+
|
66
|
+
.lau-ecom-icon-text-button {
|
67
|
+
@apply dsEcom-fill-primary-60
|
68
|
+
hover:dsEcom-fill-primary-70
|
69
|
+
active:dsEcom-fill-primary-80;
|
70
|
+
}
|
71
|
+
</style>
|
@@ -0,0 +1,14 @@
|
|
1
|
+
<script setup lang="ts">
|
2
|
+
import LauEcomSummaryItem from "./LauEcomSummaryItem.vue";
|
3
|
+
</script>
|
4
|
+
|
5
|
+
<template>
|
6
|
+
<div>
|
7
|
+
<p class="button-bold-05-20px dsEcom-text-secondary-60">
|
8
|
+
Detalles del curso
|
9
|
+
</p>
|
10
|
+
<ul>
|
11
|
+
<LauEcomSummaryItem />
|
12
|
+
</ul>
|
13
|
+
</div>
|
14
|
+
</template>
|
@@ -0,0 +1,22 @@
|
|
1
|
+
<script setup lang="ts">
|
2
|
+
interface Props {
|
3
|
+
title?: string;
|
4
|
+
content?: string;
|
5
|
+
}
|
6
|
+
|
7
|
+
withDefaults(defineProps<Props>(), {
|
8
|
+
title: "",
|
9
|
+
content: "", // Default values for title and content
|
10
|
+
});
|
11
|
+
</script>
|
12
|
+
|
13
|
+
<template>
|
14
|
+
<li class="dsEcom-grid dsEcom-grid-cols-4 dsEcom-mb-4">
|
15
|
+
<span class="button-bold-06-16px dsEcom-text-secondary-60 dsEcom-col-span-2"
|
16
|
+
>{{ title }}:</span
|
17
|
+
>
|
18
|
+
<p class="core-font-body-reg-04-16px dsEcom-text-neutral-100">
|
19
|
+
{{ content }}
|
20
|
+
</p>
|
21
|
+
</li>
|
22
|
+
</template>
|