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,159 +1,160 @@
|
|
1
|
-
<script lang="ts" setup>
|
2
|
-
import { ref } from "vue";
|
3
|
-
import LauEcomButton from "../LauEcomButton/LauEcomButton.vue";
|
4
|
-
import { LauEcomButtonType } from "../LauEcomButton/types";
|
5
|
-
import { LauEcomCoreIconNavClose } from "../LauEcomIcon";
|
6
|
-
import LauEcomBannerCookiesConfigAccordion from "./LauEcomBannerCookiesConfigAccordion.vue";
|
7
|
-
import { CategoryCookie } from "./types";
|
8
|
-
import {
|
9
|
-
acceptAllCookies,
|
10
|
-
acceptCookiesSelected,
|
11
|
-
CookieItemKey,
|
12
|
-
CookieOption,
|
13
|
-
rejectCookies,
|
14
|
-
} from "../../utils";
|
15
|
-
|
16
|
-
interface Props {
|
17
|
-
categoryCookies?: CategoryCookie[] | null;
|
18
|
-
}
|
19
|
-
|
20
|
-
const props = withDefaults(defineProps<Props>(), {
|
21
|
-
categoryCookies: null,
|
22
|
-
});
|
23
|
-
|
24
|
-
const items = ref(props.categoryCookies);
|
25
|
-
|
26
|
-
const emit = defineEmits([
|
27
|
-
"onClose",
|
28
|
-
"onReject",
|
29
|
-
"onAcceptSelected",
|
30
|
-
"onAcceptAll",
|
31
|
-
]);
|
32
|
-
|
33
|
-
const handleCloseConfig = () => {
|
34
|
-
emit("onClose");
|
35
|
-
};
|
36
|
-
|
37
|
-
const handleReject = () => {
|
38
|
-
rejectCookies();
|
39
|
-
emit("onReject");
|
40
|
-
};
|
41
|
-
|
42
|
-
const handleAcceptSelected = () => {
|
43
|
-
let analyticsStorageOption;
|
44
|
-
let adStorageOption;
|
45
|
-
|
46
|
-
const analyticsStorageIndex = items.value?.findIndex(
|
47
|
-
(item) => item.id === CookieItemKey.statistics,
|
48
|
-
);
|
49
|
-
if (analyticsStorageIndex) {
|
50
|
-
analyticsStorageOption = items.value![analyticsStorageIndex].isChecked
|
51
|
-
? CookieOption.granted
|
52
|
-
: CookieOption.denied;
|
53
|
-
}
|
54
|
-
|
55
|
-
const adStorageIndex = items.value?.findIndex(
|
56
|
-
(item) => item.id === CookieItemKey.marketing,
|
57
|
-
);
|
58
|
-
if (adStorageIndex) {
|
59
|
-
adStorageOption = items.value![adStorageIndex].isChecked
|
60
|
-
? CookieOption.granted
|
61
|
-
: CookieOption.denied;
|
62
|
-
}
|
63
|
-
|
64
|
-
acceptCookiesSelected(analyticsStorageOption!, adStorageOption!);
|
65
|
-
emit("onAcceptSelected");
|
66
|
-
};
|
67
|
-
|
68
|
-
const handleAcceptAll = () => {
|
69
|
-
acceptAllCookies();
|
70
|
-
emit("onAcceptAll");
|
71
|
-
};
|
72
|
-
</script>
|
73
|
-
|
74
|
-
<template>
|
75
|
-
<div
|
76
|
-
class="lau-ecom-banner-cookies-config lau-ecom-banner-cookies-config--upc"
|
77
|
-
>
|
78
|
-
<div class="lau-ecom-config-head lau-ecom-config-head--upc">
|
79
|
-
<p class="upc-font-subtitle-03-20px">Configuracion de cookies</p>
|
80
|
-
<button @click="handleCloseConfig">
|
81
|
-
<span><LauEcomCoreIconNavClose /></span>
|
82
|
-
</button>
|
83
|
-
</div>
|
84
|
-
<div>
|
85
|
-
<LauEcomBannerCookiesConfigAccordion
|
86
|
-
v-for="(item, index) in items"
|
87
|
-
:key="`cookie-config-${index + 1}`"
|
88
|
-
v-model="item.isChecked"
|
89
|
-
:category-cookie="item"
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
</
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
dsEcom-
|
122
|
-
dsEcom-
|
123
|
-
dsEcom-
|
124
|
-
dsEcom-
|
125
|
-
dsEcom-
|
126
|
-
|
127
|
-
-dsEcom-translate-
|
128
|
-
dsEcom-
|
129
|
-
dsEcom-
|
130
|
-
dsEcom-
|
131
|
-
dsEcom-
|
132
|
-
dsEcom-
|
133
|
-
dsEcom-
|
134
|
-
|
135
|
-
mobiles:dsEcom-
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
-
|
144
|
-
|
145
|
-
dsEcom-
|
146
|
-
|
147
|
-
|
148
|
-
|
149
|
-
|
150
|
-
|
151
|
-
|
152
|
-
|
153
|
-
|
154
|
-
|
155
|
-
dsEcom-
|
156
|
-
dsEcom-
|
157
|
-
|
158
|
-
|
159
|
-
|
1
|
+
<script lang="ts" setup>
|
2
|
+
import { ref } from "vue";
|
3
|
+
import LauEcomButton from "../LauEcomButton/LauEcomButton.vue";
|
4
|
+
import { LauEcomButtonType } from "../LauEcomButton/types";
|
5
|
+
import { LauEcomCoreIconNavClose } from "../LauEcomIcon";
|
6
|
+
import LauEcomBannerCookiesConfigAccordion from "./LauEcomBannerCookiesConfigAccordion.vue";
|
7
|
+
import { CategoryCookie } from "./types";
|
8
|
+
import {
|
9
|
+
acceptAllCookies,
|
10
|
+
acceptCookiesSelected,
|
11
|
+
CookieItemKey,
|
12
|
+
CookieOption,
|
13
|
+
rejectCookies,
|
14
|
+
} from "../../utils";
|
15
|
+
|
16
|
+
interface Props {
|
17
|
+
categoryCookies?: CategoryCookie[] | null;
|
18
|
+
}
|
19
|
+
|
20
|
+
const props = withDefaults(defineProps<Props>(), {
|
21
|
+
categoryCookies: null,
|
22
|
+
});
|
23
|
+
|
24
|
+
const items = ref(props.categoryCookies);
|
25
|
+
|
26
|
+
const emit = defineEmits([
|
27
|
+
"onClose",
|
28
|
+
"onReject",
|
29
|
+
"onAcceptSelected",
|
30
|
+
"onAcceptAll",
|
31
|
+
]);
|
32
|
+
|
33
|
+
const handleCloseConfig = () => {
|
34
|
+
emit("onClose");
|
35
|
+
};
|
36
|
+
|
37
|
+
const handleReject = () => {
|
38
|
+
rejectCookies();
|
39
|
+
emit("onReject");
|
40
|
+
};
|
41
|
+
|
42
|
+
const handleAcceptSelected = () => {
|
43
|
+
let analyticsStorageOption;
|
44
|
+
let adStorageOption;
|
45
|
+
|
46
|
+
const analyticsStorageIndex = items.value?.findIndex(
|
47
|
+
(item) => item.id === CookieItemKey.statistics,
|
48
|
+
);
|
49
|
+
if (analyticsStorageIndex) {
|
50
|
+
analyticsStorageOption = items.value![analyticsStorageIndex].isChecked
|
51
|
+
? CookieOption.granted
|
52
|
+
: CookieOption.denied;
|
53
|
+
}
|
54
|
+
|
55
|
+
const adStorageIndex = items.value?.findIndex(
|
56
|
+
(item) => item.id === CookieItemKey.marketing,
|
57
|
+
);
|
58
|
+
if (adStorageIndex) {
|
59
|
+
adStorageOption = items.value![adStorageIndex].isChecked
|
60
|
+
? CookieOption.granted
|
61
|
+
: CookieOption.denied;
|
62
|
+
}
|
63
|
+
|
64
|
+
acceptCookiesSelected(analyticsStorageOption!, adStorageOption!);
|
65
|
+
emit("onAcceptSelected");
|
66
|
+
};
|
67
|
+
|
68
|
+
const handleAcceptAll = () => {
|
69
|
+
acceptAllCookies();
|
70
|
+
emit("onAcceptAll");
|
71
|
+
};
|
72
|
+
</script>
|
73
|
+
|
74
|
+
<template>
|
75
|
+
<div
|
76
|
+
class="lau-ecom-banner-cookies-config lau-ecom-banner-cookies-config--upc"
|
77
|
+
>
|
78
|
+
<div class="lau-ecom-config-head lau-ecom-config-head--upc">
|
79
|
+
<p class="upc-font-subtitle-03-20px">Configuracion de cookies</p>
|
80
|
+
<button @click="handleCloseConfig">
|
81
|
+
<span><LauEcomCoreIconNavClose /></span>
|
82
|
+
</button>
|
83
|
+
</div>
|
84
|
+
<div>
|
85
|
+
<LauEcomBannerCookiesConfigAccordion
|
86
|
+
v-for="(item, index) in items"
|
87
|
+
:key="`cookie-config-${index + 1}`"
|
88
|
+
v-model="item.isChecked"
|
89
|
+
:category-cookie="item"
|
90
|
+
@on-toggle="item.onToggle"
|
91
|
+
/>
|
92
|
+
</div>
|
93
|
+
<div class="lau-ecom-banner-cookies-buttons">
|
94
|
+
<LauEcomButton
|
95
|
+
class="!dsEcom-w-full mobiles:dsEcom-order-last"
|
96
|
+
:type="LauEcomButtonType.Secondary"
|
97
|
+
@on-click="handleReject"
|
98
|
+
>
|
99
|
+
Rechazar
|
100
|
+
</LauEcomButton>
|
101
|
+
<LauEcomButton
|
102
|
+
class="!dsEcom-w-full"
|
103
|
+
:type="LauEcomButtonType.Secondary"
|
104
|
+
@on-click="handleAcceptSelected"
|
105
|
+
>
|
106
|
+
Aceptar seleccionadas
|
107
|
+
</LauEcomButton>
|
108
|
+
<LauEcomButton
|
109
|
+
class="!dsEcom-w-full mobiles:dsEcom-order-first"
|
110
|
+
@on-click="handleAcceptAll"
|
111
|
+
>
|
112
|
+
Aceptar todas
|
113
|
+
</LauEcomButton>
|
114
|
+
</div>
|
115
|
+
</div>
|
116
|
+
</template>
|
117
|
+
|
118
|
+
<style scoped>
|
119
|
+
.lau-ecom-banner-cookies-config {
|
120
|
+
@apply dsEcom-flex
|
121
|
+
dsEcom-flex-col
|
122
|
+
dsEcom-gap-10
|
123
|
+
dsEcom-absolute
|
124
|
+
dsEcom-top-1/2
|
125
|
+
dsEcom-left-1/2
|
126
|
+
dsEcom-transform
|
127
|
+
-dsEcom-translate-x-1/2
|
128
|
+
-dsEcom-translate-y-1/2
|
129
|
+
dsEcom-pt-6
|
130
|
+
dsEcom-pb-8
|
131
|
+
dsEcom-px-6
|
132
|
+
dsEcom-w-[584px]
|
133
|
+
dsEcom-h-auto
|
134
|
+
dsEcom-shadow-upc-shadow-prominent
|
135
|
+
mobiles:dsEcom-gap-8
|
136
|
+
mobiles:dsEcom-w-[360px];
|
137
|
+
}
|
138
|
+
|
139
|
+
.lau-ecom-banner-cookies-config--upc {
|
140
|
+
@apply dsEcom-text-neutral-100;
|
141
|
+
}
|
142
|
+
|
143
|
+
.lau-ecom-config-head {
|
144
|
+
@apply dsEcom-flex
|
145
|
+
dsEcom-justify-between
|
146
|
+
dsEcom-items-center;
|
147
|
+
}
|
148
|
+
|
149
|
+
.lau-ecom-config-head--upc {
|
150
|
+
@apply dsEcom-text-secondary-60;
|
151
|
+
}
|
152
|
+
|
153
|
+
.lau-ecom-banner-cookies-buttons {
|
154
|
+
@apply dsEcom-flex
|
155
|
+
dsEcom-justify-between
|
156
|
+
dsEcom-items-center
|
157
|
+
dsEcom-gap-4
|
158
|
+
mobiles:dsEcom-flex-col;
|
159
|
+
}
|
160
|
+
</style>
|
@@ -1,76 +1,80 @@
|
|
1
|
-
<script lang="ts" setup>
|
2
|
-
import { computed, ref } from "vue";
|
3
|
-
import LauEcomUpcIconNavArrow from "../LauEcomIcon/LauEcomUpcIconNavArrow.vue";
|
4
|
-
import LauEcomSwitch from "../LauEcomSwitch/LauEcomSwitch.vue";
|
5
|
-
import { CategoryCookie } from "./types";
|
6
|
-
|
7
|
-
interface Props {
|
8
|
-
categoryCookie: CategoryCookie;
|
9
|
-
}
|
10
|
-
|
11
|
-
withDefaults(defineProps<Props>(), {
|
12
|
-
categoryCookie: () => {
|
13
|
-
return {
|
14
|
-
title: "Cookie",
|
15
|
-
description: "lorem ipsum dolor sit amet, consectetur",
|
16
|
-
};
|
17
|
-
},
|
18
|
-
});
|
19
|
-
|
20
|
-
const isOpen = ref(false);
|
21
|
-
const isChecked = defineModel<boolean>();
|
22
|
-
|
23
|
-
const emit = defineEmits
|
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
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
1
|
+
<script lang="ts" setup>
|
2
|
+
import { computed, ref } from "vue";
|
3
|
+
import LauEcomUpcIconNavArrow from "../LauEcomIcon/LauEcomUpcIconNavArrow.vue";
|
4
|
+
import LauEcomSwitch from "../LauEcomSwitch/LauEcomSwitch.vue";
|
5
|
+
import { CategoryCookie } from "./types";
|
6
|
+
|
7
|
+
interface Props {
|
8
|
+
categoryCookie: CategoryCookie;
|
9
|
+
}
|
10
|
+
|
11
|
+
withDefaults(defineProps<Props>(), {
|
12
|
+
categoryCookie: () => {
|
13
|
+
return {
|
14
|
+
title: "Cookie",
|
15
|
+
description: "lorem ipsum dolor sit amet, consectetur",
|
16
|
+
};
|
17
|
+
},
|
18
|
+
});
|
19
|
+
|
20
|
+
const isOpen = ref(false);
|
21
|
+
const isChecked = defineModel<boolean>();
|
22
|
+
|
23
|
+
const emit = defineEmits<{
|
24
|
+
(e: "onToggle", value: boolean): void;
|
25
|
+
}>();
|
26
|
+
|
27
|
+
const handleClickAccordion = () => {
|
28
|
+
isOpen.value = !isOpen.value;
|
29
|
+
};
|
30
|
+
|
31
|
+
const handleToggle = (value: boolean) => {
|
32
|
+
emit("onToggle", value);
|
33
|
+
};
|
34
|
+
|
35
|
+
const iconClass = computed(() => {
|
36
|
+
return isOpen.value ? "dsEcom-rotate-0" : "dsEcom-rotate-180";
|
37
|
+
});
|
38
|
+
</script>
|
39
|
+
|
40
|
+
<template>
|
41
|
+
<div class="dsEcom-mb-4">
|
42
|
+
<div class="lau-ecom-config-accordion-head">
|
43
|
+
<div
|
44
|
+
class="dsEcom-flex dsEcom-items-center dsEcom-gap-2"
|
45
|
+
@click="handleClickAccordion"
|
46
|
+
>
|
47
|
+
<span :class="iconClass"
|
48
|
+
><LauEcomUpcIconNavArrow class="dsEcom-fill-neutral-100"
|
49
|
+
/></span>
|
50
|
+
<p class="upc-font-subtitle-03-20px">
|
51
|
+
{{ categoryCookie.title }}
|
52
|
+
</p>
|
53
|
+
</div>
|
54
|
+
<LauEcomSwitch
|
55
|
+
v-model="isChecked"
|
56
|
+
:isDisabled="categoryCookie.isDisabled"
|
57
|
+
@on-toggle="handleToggle"
|
58
|
+
/>
|
59
|
+
</div>
|
60
|
+
<div v-show="isOpen" class="lau-ecom-config-accordion-content">
|
61
|
+
<p class="core-font-body-reg-05-14px">
|
62
|
+
{{ categoryCookie.description }}
|
63
|
+
</p>
|
64
|
+
</div>
|
65
|
+
</div>
|
66
|
+
</template>
|
67
|
+
|
68
|
+
<style scoped>
|
69
|
+
.lau-ecom-config-accordion-head {
|
70
|
+
@apply dsEcom-flex
|
71
|
+
dsEcom-justify-between
|
72
|
+
dsEcom-pb-4
|
73
|
+
dsEcom-border-b-2;
|
74
|
+
}
|
75
|
+
|
76
|
+
.lau-ecom-config-accordion-content {
|
77
|
+
@apply dsEcom-py-2
|
78
|
+
dsEcom-px-8;
|
79
|
+
}
|
80
|
+
</style>
|