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.
Files changed (50) hide show
  1. package/README.md +49 -0
  2. package/dist/316236bc7a52233c.png +0 -0
  3. package/dist/lau-ecom-design-system.esm.css +8 -1
  4. package/dist/lau-ecom-design-system.esm.js +1657 -682
  5. package/dist/lau-ecom-design-system.min.css +8 -1
  6. package/dist/lau-ecom-design-system.min.js +1 -1
  7. package/dist/lau-ecom-design-system.ssr.css +8 -1
  8. package/dist/lau-ecom-design-system.ssr.js +1406 -470
  9. package/dist/style.css +290 -69
  10. package/package.json +81 -80
  11. package/src/components/LauEcomBannerCookies/LauEcomBannerCookies.vue +178 -168
  12. package/src/components/LauEcomBannerCookies/LauEcomBannerCookiesConfig.vue +160 -159
  13. package/src/components/LauEcomBannerCookies/LauEcomBannerCookiesConfigAccordion.vue +80 -76
  14. package/src/components/LauEcomButton/LauEcomButton.vue +137 -137
  15. package/src/components/LauEcomCheckbox/LauEcomCheckbox.vue +143 -143
  16. package/src/components/LauEcomDisclamer/LauEcomDisclamer.vue +79 -79
  17. package/src/components/LauEcomDropdown/LauEcomDropdown.vue +208 -203
  18. package/src/components/LauEcomFooter/LauEcomFooter.vue +24 -73
  19. package/src/components/LauEcomFooter/LauEcomSubFooter.vue +5 -31
  20. package/src/components/LauEcomFooter/LauEcomSubFooterCategory.vue +9 -48
  21. package/src/components/LauEcomIcon/LauEcomCoreIconBook.vue +26 -26
  22. package/src/components/LauEcomIcon/LauEcomCoreIconFileCode.vue +28 -28
  23. package/src/components/LauEcomIcon/LauEcomUpcIconArrowDown.vue +0 -7
  24. package/src/components/LauEcomIcon/LauEcomUpcIconCertificate.vue +28 -28
  25. package/src/components/LauEcomIcon/LauEcomUpcIconCheck.vue +26 -26
  26. package/src/components/LauEcomIcon/LauEcomUpcIconCheckCircle.vue +28 -28
  27. package/src/components/LauEcomIcon/LauEcomUpcIconCreditCard.vue +28 -28
  28. package/src/components/LauEcomIcon/LauEcomUpcIconExclamationCircle.vue +28 -28
  29. package/src/components/LauEcomIcon/LauEcomUpcIconExclamationTriangle.vue +28 -28
  30. package/src/components/LauEcomIcon/LauEcomUpcIconInfoCircle.vue +26 -26
  31. package/src/components/LauEcomIcon/LauEcomUpcIconNavArrow.vue +26 -26
  32. package/src/components/LauEcomIcon/LauEcomUpcIconNavBack.vue +25 -0
  33. package/src/components/LauEcomIcon/LauEcomUpcIconNavCheckmark.vue +26 -26
  34. package/src/components/LauEcomInput/LauEcomInput.vue +207 -207
  35. package/src/components/LauEcomInput2/LauEcomInput2.vue +207 -0
  36. package/src/components/LauEcomInputSearch/LauEcomInputSearch.vue +244 -0
  37. package/src/components/LauEcomLoaderPage/LauEcomLoaderPage.vue +16 -16
  38. package/src/components/LauEcomPaginator/LauEcomPaginator.vue +57 -0
  39. package/src/components/LauEcomPaginator/LauEcomPaginatorButton.vue +68 -0
  40. package/src/components/LauEcomRadioButton/LauEcomRadioButton.vue +103 -103
  41. package/src/components/LauEcomRtb/LauEcomRtb.vue +71 -71
  42. package/src/components/LauEcomStepbar/LauEcomStepbar.vue +43 -43
  43. package/src/components/LauEcomStepbar/LauEcomStepbarItem.vue +128 -128
  44. package/src/components/LauEcomSwitch/LauEcomSwitch.vue +110 -108
  45. package/src/components/LauEcomTab/LauEcomTab.vue +82 -82
  46. package/src/components/LauEcomTag/LauEcomTag.vue +56 -0
  47. package/src/components/LauEcomTextButton/LauEcomTextButton.vue +71 -71
  48. package/src/components/LauEcomTyPage/LauEcomSummary.vue +14 -0
  49. package/src/components/LauEcomTyPage/LauEcomSummaryItem.vue +22 -0
  50. package/src/components/LauEcomTyPage/LauEcomTyPage.vue +149 -0
@@ -1,71 +1,71 @@
1
- <script lang="ts" setup>
2
- import { computed } from "vue";
3
- import {
4
- LauEcomUpcIconCertificate,
5
- LauEcomUpcIconCreditCard,
6
- LauEcomUpcIconVirtualClass,
7
- } from "../LauEcomIcon";
8
- import { RtbType } from "./types";
9
-
10
- interface Props {
11
- type?: RtbType;
12
- title?: string;
13
- text?: string;
14
- }
15
-
16
- const props = withDefaults(defineProps<Props>(), {
17
- type: RtbType.modalidad,
18
- title: "Aprenderas Haciendo",
19
- text: "Resolverás casos reales, a través de clases prácticas. Obtendrás conocimiento para aplicarla en tu trabajo o proyecto personal.",
20
- });
21
-
22
- const isModalidadType = computed(() => {
23
- return props.type === RtbType.modalidad;
24
- });
25
-
26
- const isCertificacionType = computed(() => {
27
- return props.type === RtbType.certificacion;
28
- });
29
-
30
- const isMetodopagoType = computed(() => {
31
- return props.type === RtbType.metodopago;
32
- });
33
- </script>
34
-
35
- <template>
36
- <div
37
- v-if="isModalidadType"
38
- class="core-font-body-reg-05-14px dsEcom-flex dsEcom-items-center dsEcom-gap-2"
39
- >
40
- <LauEcomUpcIconVirtualClass
41
- class="dsEcom-fill-secondary-60"
42
- width="32"
43
- height="32"
44
- />
45
- Virtual en vivo
46
- </div>
47
- <div
48
- v-if="isCertificacionType"
49
- class="core-font-body-reg-05-14px dsEcom-flex dsEcom-items-center dsEcom-gap-2"
50
- >
51
- <LauEcomUpcIconCertificate
52
- class="dsEcom-fill-secondary-60"
53
- width="32"
54
- height="32"
55
- />
56
- Certificado de EPG | UPC
57
- </div>
58
- <div
59
- v-if="isMetodopagoType"
60
- class="core-font-body-reg-05-14px dsEcom-flex dsEcom-items-center dsEcom-gap-2"
61
- >
62
- <LauEcomUpcIconCreditCard
63
- class="dsEcom-fill-secondary-60"
64
- width="32"
65
- height="32"
66
- />
67
- Hasta 12 cuotas sin intereses en TC Dinners y BBVA
68
- </div>
69
- </template>
70
-
71
- <style scoped></style>
1
+ <script lang="ts" setup>
2
+ import { computed } from "vue";
3
+ import {
4
+ LauEcomUpcIconCertificate,
5
+ LauEcomUpcIconCreditCard,
6
+ LauEcomUpcIconVirtualClass,
7
+ } from "../LauEcomIcon";
8
+ import { RtbType } from "./types";
9
+
10
+ interface Props {
11
+ type?: RtbType;
12
+ title?: string;
13
+ text?: string;
14
+ }
15
+
16
+ const props = withDefaults(defineProps<Props>(), {
17
+ type: RtbType.modalidad,
18
+ title: "Aprenderas Haciendo",
19
+ text: "Resolverás casos reales, a través de clases prácticas. Obtendrás conocimiento para aplicarla en tu trabajo o proyecto personal.",
20
+ });
21
+
22
+ const isModalidadType = computed(() => {
23
+ return props.type === RtbType.modalidad;
24
+ });
25
+
26
+ const isCertificacionType = computed(() => {
27
+ return props.type === RtbType.certificacion;
28
+ });
29
+
30
+ const isMetodopagoType = computed(() => {
31
+ return props.type === RtbType.metodopago;
32
+ });
33
+ </script>
34
+
35
+ <template>
36
+ <div
37
+ v-if="isModalidadType"
38
+ class="core-font-body-reg-05-14px dsEcom-flex dsEcom-items-center dsEcom-gap-2"
39
+ >
40
+ <LauEcomUpcIconVirtualClass
41
+ class="dsEcom-fill-secondary-60"
42
+ width="32"
43
+ height="32"
44
+ />
45
+ Virtual en vivo
46
+ </div>
47
+ <div
48
+ v-if="isCertificacionType"
49
+ class="core-font-body-reg-05-14px dsEcom-flex dsEcom-items-center dsEcom-gap-2"
50
+ >
51
+ <LauEcomUpcIconCertificate
52
+ class="dsEcom-fill-secondary-60"
53
+ width="32"
54
+ height="32"
55
+ />
56
+ Certificado de EPG | UPC
57
+ </div>
58
+ <div
59
+ v-if="isMetodopagoType"
60
+ class="core-font-body-reg-05-14px dsEcom-flex dsEcom-items-center dsEcom-gap-2"
61
+ >
62
+ <LauEcomUpcIconCreditCard
63
+ class="dsEcom-fill-secondary-60"
64
+ width="32"
65
+ height="32"
66
+ />
67
+ Hasta 12 cuotas sin intereses en TC Dinners y BBVA
68
+ </div>
69
+ </template>
70
+
71
+ <style scoped></style>
@@ -1,43 +1,43 @@
1
- <script lang="ts" setup>
2
- import { Step } from "./types";
3
- import LauEcomStepbarItem from "./LauEcomStepbarItem.vue";
4
- interface Props {
5
- steps: Step[];
6
- currentStep: number;
7
- }
8
- withDefaults(defineProps<Props>(), {
9
- steps: () => [
10
- {
11
- numberStep: 1,
12
- label: "Step",
13
- },
14
- {
15
- numberStep: 2,
16
- label: "Step",
17
- },
18
- {
19
- numberStep: 3,
20
- label: "Step",
21
- },
22
- {
23
- numberStep: 4,
24
- label: "Step",
25
- },
26
- ],
27
- currentStep: 1,
28
- });
29
- </script>
30
-
31
- <template>
32
- <div class="dsEcom-flex dsEcom-w-full">
33
- <LauEcomStepbarItem
34
- v-for="(step, index) in steps"
35
- :key="`lau-ecom-stepbar-item-${index + 1}`"
36
- :step="step"
37
- :is-completed="currentStep > index + 1"
38
- :is-current-step="currentStep === index + 1"
39
- :is-last-item="index === steps.length - 1"
40
- :total-steps="steps.length"
41
- />
42
- </div>
43
- </template>
1
+ <script lang="ts" setup>
2
+ import { Step } from "./types";
3
+ import LauEcomStepbarItem from "./LauEcomStepbarItem.vue";
4
+ interface Props {
5
+ steps: Step[];
6
+ currentStep: number;
7
+ }
8
+ withDefaults(defineProps<Props>(), {
9
+ steps: () => [
10
+ {
11
+ numberStep: 1,
12
+ label: "Step",
13
+ },
14
+ {
15
+ numberStep: 2,
16
+ label: "Step",
17
+ },
18
+ {
19
+ numberStep: 3,
20
+ label: "Step",
21
+ },
22
+ {
23
+ numberStep: 4,
24
+ label: "Step",
25
+ },
26
+ ],
27
+ currentStep: 1,
28
+ });
29
+ </script>
30
+
31
+ <template>
32
+ <div class="dsEcom-flex dsEcom-w-full">
33
+ <LauEcomStepbarItem
34
+ v-for="(step, index) in steps"
35
+ :key="`lau-ecom-stepbar-item-${index + 1}`"
36
+ :step="step"
37
+ :is-completed="currentStep > index + 1"
38
+ :is-current-step="currentStep === index + 1"
39
+ :is-last-item="index === steps.length - 1"
40
+ :total-steps="steps.length"
41
+ />
42
+ </div>
43
+ </template>
@@ -1,128 +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
- 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
+ <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>