lau-ecom-design-system 1.0.17 → 1.0.19

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 (35) hide show
  1. package/dist/lau-ecom-design-system.esm.css +13 -1
  2. package/dist/lau-ecom-design-system.esm.js +1577 -258
  3. package/dist/lau-ecom-design-system.min.css +13 -1
  4. package/dist/lau-ecom-design-system.min.js +1 -1
  5. package/dist/lau-ecom-design-system.ssr.css +13 -1
  6. package/dist/lau-ecom-design-system.ssr.js +1491 -211
  7. package/dist/style.css +194 -19
  8. package/package.json +80 -80
  9. package/src/components/LauEcomBannerCookies/LauEcomBannerCookies.vue +8 -39
  10. package/src/components/LauEcomBannerCookies/LauEcomBannerCookiesConfig.vue +8 -46
  11. package/src/components/LauEcomBannerCookies/LauEcomBannerCookiesConfigAccordion.vue +2 -13
  12. package/src/components/LauEcomButton/LauEcomButton.vue +137 -150
  13. package/src/components/LauEcomCheckbox/LauEcomCheckbox.vue +143 -148
  14. package/src/components/LauEcomDisclamer/LauEcomDisclamer.vue +79 -82
  15. package/src/components/LauEcomDropdown/LauEcomDropdown.vue +203 -203
  16. package/src/components/LauEcomIcon/LauEcomCoreIconBook.vue +26 -29
  17. package/src/components/LauEcomIcon/LauEcomCoreIconFileCode.vue +28 -31
  18. package/src/components/LauEcomIcon/LauEcomUpcIconCertificate.vue +28 -31
  19. package/src/components/LauEcomIcon/LauEcomUpcIconCheck.vue +26 -29
  20. package/src/components/LauEcomIcon/LauEcomUpcIconCheckCircle.vue +28 -31
  21. package/src/components/LauEcomIcon/LauEcomUpcIconCreditCard.vue +28 -31
  22. package/src/components/LauEcomIcon/LauEcomUpcIconExclamationCircle.vue +28 -31
  23. package/src/components/LauEcomIcon/LauEcomUpcIconExclamationTriangle.vue +28 -31
  24. package/src/components/LauEcomIcon/LauEcomUpcIconInfoCircle.vue +26 -29
  25. package/src/components/LauEcomIcon/LauEcomUpcIconNavArrow.vue +26 -28
  26. package/src/components/LauEcomIcon/LauEcomUpcIconNavCheckmark.vue +26 -29
  27. package/src/components/LauEcomInput/LauEcomInput.vue +207 -208
  28. package/src/components/LauEcomLoaderPage/LauEcomLoaderPage.vue +2 -28
  29. package/src/components/LauEcomRadioButton/LauEcomRadioButton.vue +103 -115
  30. package/src/components/LauEcomRtb/LauEcomRtb.vue +71 -92
  31. package/src/components/LauEcomStepbar/LauEcomStepbar.vue +43 -49
  32. package/src/components/LauEcomStepbar/LauEcomStepbarItem.vue +128 -172
  33. package/src/components/LauEcomSwitch/LauEcomSwitch.vue +9 -20
  34. package/src/components/LauEcomTab/LauEcomTab.vue +82 -113
  35. package/src/components/LauEcomTextButton/LauEcomTextButton.vue +13 -75
package/dist/style.css CHANGED
@@ -1123,6 +1123,11 @@ video {
1123
1123
  --feedback-informative-60: #1762ca;
1124
1124
  --social-whatsapp-60: #00ba37;
1125
1125
  --social-pink-70: #ff4b4b;
1126
+ --stroke-secondary-60: #482783;
1127
+ --stroke-secondary-70: #422377;
1128
+ --stroke-secondary-80: #331c5d;
1129
+ --link-60: #0042e9;
1130
+ --link-80: #0011af;
1126
1131
  }
1127
1132
 
1128
1133
  .dsEcom-pointer-events-none {
@@ -1259,10 +1264,6 @@ video {
1259
1264
  height: 2rem;
1260
1265
  }
1261
1266
 
1262
- .dsEcom-h-\[292px\] {
1263
- height: 292px;
1264
- }
1265
-
1266
1267
  .dsEcom-h-\[2px\] {
1267
1268
  height: 2px;
1268
1269
  }
@@ -1315,10 +1316,6 @@ video {
1315
1316
  width: 284px;
1316
1317
  }
1317
1318
 
1318
- .dsEcom-w-\[384px\] {
1319
- width: 384px;
1320
- }
1321
-
1322
1319
  .dsEcom-w-\[584px\] {
1323
1320
  width: 584px;
1324
1321
  }
@@ -1440,10 +1437,6 @@ video {
1440
1437
  border-radius: 0.25rem;
1441
1438
  }
1442
1439
 
1443
- .dsEcom-rounded-\[16px\] {
1444
- border-radius: 16px;
1445
- }
1446
-
1447
1440
  .dsEcom-rounded-\[2px\] {
1448
1441
  border-radius: 2px;
1449
1442
  }
@@ -1489,14 +1482,50 @@ video {
1489
1482
  border-style: solid;
1490
1483
  }
1491
1484
 
1485
+ .\!dsEcom-border-feedback-success-60 {
1486
+ border-color: var(--feedback-success-60) !important;
1487
+ }
1488
+
1489
+ .\!dsEcom-border-neutral-50 {
1490
+ border-color: var(--neutral-50) !important;
1491
+ }
1492
+
1493
+ .\!dsEcom-border-neutral-60 {
1494
+ border-color: var(--neutral-60) !important;
1495
+ }
1496
+
1497
+ .\!dsEcom-border-neutral-70 {
1498
+ border-color: var(--neutral-70) !important;
1499
+ }
1500
+
1501
+ .dsEcom-border-neutral-60 {
1502
+ border-color: var(--neutral-60);
1503
+ }
1504
+
1492
1505
  .dsEcom-border-neutral-70 {
1493
1506
  border-color: var(--neutral-70);
1494
1507
  }
1495
1508
 
1509
+ .dsEcom-border-neutral-80 {
1510
+ border-color: var(--neutral-80);
1511
+ }
1512
+
1513
+ .dsEcom-border-neutral-90 {
1514
+ border-color: var(--neutral-90);
1515
+ }
1516
+
1496
1517
  .dsEcom-border-primary-60 {
1497
1518
  border-color: var(--primary-60);
1498
1519
  }
1499
1520
 
1521
+ .dsEcom-border-secondary-60 {
1522
+ border-color: var(--secondary-60);
1523
+ }
1524
+
1525
+ .\!dsEcom-bg-primary-60 {
1526
+ background-color: var(--primary-60) !important;
1527
+ }
1528
+
1500
1529
  .dsEcom-bg-neutral-10 {
1501
1530
  background-color: var(--neutral-10);
1502
1531
  }
@@ -1505,6 +1534,14 @@ video {
1505
1534
  background-color: var(--neutral-70);
1506
1535
  }
1507
1536
 
1537
+ .dsEcom-bg-neutral-80 {
1538
+ background-color: var(--neutral-80);
1539
+ }
1540
+
1541
+ .dsEcom-bg-neutral-90 {
1542
+ background-color: var(--neutral-90);
1543
+ }
1544
+
1508
1545
  .dsEcom-bg-primary-60 {
1509
1546
  background-color: var(--primary-60);
1510
1547
  }
@@ -1518,14 +1555,42 @@ video {
1518
1555
  --tw-bg-opacity: 0.7;
1519
1556
  }
1520
1557
 
1558
+ .dsEcom-fill-feedback-critical-60 {
1559
+ fill: var(--feedback-critical-60);
1560
+ }
1561
+
1562
+ .dsEcom-fill-feedback-error-60 {
1563
+ fill: var(--feedback-error-60);
1564
+ }
1565
+
1566
+ .dsEcom-fill-feedback-informative-60 {
1567
+ fill: var(--feedback-informative-60);
1568
+ }
1569
+
1570
+ .dsEcom-fill-feedback-success-60 {
1571
+ fill: var(--feedback-success-60);
1572
+ }
1573
+
1521
1574
  .dsEcom-fill-neutral-10 {
1522
1575
  fill: var(--neutral-10);
1523
1576
  }
1524
1577
 
1578
+ .dsEcom-fill-neutral-70 {
1579
+ fill: var(--neutral-70);
1580
+ }
1581
+
1525
1582
  .dsEcom-fill-primary-60 {
1526
1583
  fill: var(--primary-60);
1527
1584
  }
1528
1585
 
1586
+ .dsEcom-fill-secondary-60 {
1587
+ fill: var(--secondary-60);
1588
+ }
1589
+
1590
+ .dsEcom-fill-white {
1591
+ fill: #fff;
1592
+ }
1593
+
1529
1594
  .dsEcom-p-4 {
1530
1595
  padding: 1rem;
1531
1596
  }
@@ -1666,18 +1731,46 @@ video {
1666
1731
  line-height: 18px;
1667
1732
  }
1668
1733
 
1734
+ .\!dsEcom-text-neutral-10 {
1735
+ color: var(--neutral-10) !important;
1736
+ }
1737
+
1738
+ .\!dsEcom-text-neutral-70 {
1739
+ color: var(--neutral-70) !important;
1740
+ }
1741
+
1742
+ .\!dsEcom-text-primary-60 {
1743
+ color: var(--primary-60) !important;
1744
+ }
1745
+
1746
+ .dsEcom-text-link-60 {
1747
+ color: var(--link-60);
1748
+ }
1749
+
1669
1750
  .dsEcom-text-neutral-10 {
1670
1751
  color: var(--neutral-10);
1671
1752
  }
1672
1753
 
1754
+ .dsEcom-text-neutral-100 {
1755
+ color: var(--neutral-100);
1756
+ }
1757
+
1673
1758
  .dsEcom-text-neutral-70 {
1674
1759
  color: var(--neutral-70);
1675
1760
  }
1676
1761
 
1762
+ .dsEcom-text-neutral-90 {
1763
+ color: var(--neutral-90);
1764
+ }
1765
+
1677
1766
  .dsEcom-text-primary-60 {
1678
1767
  color: var(--primary-60);
1679
1768
  }
1680
1769
 
1770
+ .dsEcom-text-secondary-60 {
1771
+ color: var(--secondary-60);
1772
+ }
1773
+
1681
1774
  .dsEcom-text-white {
1682
1775
  --tw-text-opacity: 1;
1683
1776
  color: rgb(255 255 255 / var(--tw-text-opacity, 1));
@@ -1744,7 +1837,7 @@ video {
1744
1837
  @font-face {
1745
1838
  font-family: "upn-font-family-sharp-grotesk";
1746
1839
 
1747
- src: url("../src/assets/fonts/Grotesk/SharpGrotesk-Bold15.otf")
1840
+ src: url("../src/assets/fonts/Grotesk/SharpGrotesk-Bold15.otf")
1748
1841
  format("opentype");
1749
1842
 
1750
1843
  font-display: swap;
@@ -1775,12 +1868,28 @@ video {
1775
1868
 
1776
1869
  font-weight: 800;
1777
1870
 
1778
- src: url("../src/assets/fonts/Sans/PublicSans-ExtraBold.ttf")
1871
+ src: url("../src/assets/fonts/Sans/PublicSans-ExtraBold.ttf")
1779
1872
  format("opentype");
1780
1873
 
1781
1874
  font-display: swap;
1782
1875
  }
1783
1876
 
1877
+ .placeholder\:\!dsEcom-text-neutral-100:-ms-input-placeholder {
1878
+ color: var(--neutral-100) !important;
1879
+ }
1880
+
1881
+ .placeholder\:\!dsEcom-text-neutral-100::placeholder {
1882
+ color: var(--neutral-100) !important;
1883
+ }
1884
+
1885
+ .placeholder\:\!dsEcom-text-neutral-80:-ms-input-placeholder {
1886
+ color: var(--neutral-80) !important;
1887
+ }
1888
+
1889
+ .placeholder\:\!dsEcom-text-neutral-80::placeholder {
1890
+ color: var(--neutral-80) !important;
1891
+ }
1892
+
1784
1893
  .after\:dsEcom-absolute::after {
1785
1894
  content: var(--tw-content);
1786
1895
  position: absolute;
@@ -1810,6 +1919,22 @@ video {
1810
1919
  cursor: pointer;
1811
1920
  }
1812
1921
 
1922
+ .checked\:\!dsEcom-border-neutral-60:checked {
1923
+ border-color: var(--neutral-60) !important;
1924
+ }
1925
+
1926
+ .checked\:\!dsEcom-border-primary-60:checked {
1927
+ border-color: var(--primary-60) !important;
1928
+ }
1929
+
1930
+ .checked\:dsEcom-border-primary-60:checked {
1931
+ border-color: var(--primary-60);
1932
+ }
1933
+
1934
+ .checked\:dsEcom-bg-primary-60:checked {
1935
+ background-color: var(--primary-60);
1936
+ }
1937
+
1813
1938
  .checked\:dsEcom-p-1:checked {
1814
1939
  padding: 0.25rem;
1815
1940
  }
@@ -1849,6 +1974,16 @@ video {
1849
1974
  border-radius: 9999px;
1850
1975
  }
1851
1976
 
1977
+ .checked\:after\:dsEcom-bg-neutral-50:checked::after {
1978
+ content: var(--tw-content);
1979
+ background-color: var(--neutral-50);
1980
+ }
1981
+
1982
+ .checked\:after\:dsEcom-bg-primary-60:checked::after {
1983
+ content: var(--tw-content);
1984
+ background-color: var(--primary-60);
1985
+ }
1986
+
1852
1987
  .checked\:after\:dsEcom-content-\[\'\'\]:checked::after {
1853
1988
  --tw-content: '';
1854
1989
  content: var(--tw-content);
@@ -1863,14 +1998,30 @@ video {
1863
1998
  border-color: var(--neutral-70);
1864
1999
  }
1865
2000
 
2001
+ .hover\:dsEcom-border-primary-60:hover {
2002
+ border-color: var(--primary-60);
2003
+ }
2004
+
1866
2005
  .hover\:dsEcom-border-primary-70:hover {
1867
2006
  border-color: var(--primary-70);
1868
2007
  }
1869
2008
 
2009
+ .hover\:dsEcom-border-primary-80:hover {
2010
+ border-color: var(--primary-80);
2011
+ }
2012
+
2013
+ .hover\:dsEcom-border-stroke-secondary-60:hover {
2014
+ border-color: var(--stroke-secondary-60);
2015
+ }
2016
+
1870
2017
  .hover\:dsEcom-bg-neutral-10:hover {
1871
2018
  background-color: var(--neutral-10);
1872
2019
  }
1873
2020
 
2021
+ .hover\:dsEcom-bg-neutral-30:hover {
2022
+ background-color: var(--neutral-30);
2023
+ }
2024
+
1874
2025
  .hover\:dsEcom-bg-neutral-70:hover {
1875
2026
  background-color: var(--neutral-70);
1876
2027
  }
@@ -1891,6 +2042,14 @@ video {
1891
2042
  color: var(--primary-70);
1892
2043
  }
1893
2044
 
2045
+ .focus\:dsEcom-border-stroke-secondary-60:focus {
2046
+ border-color: var(--stroke-secondary-60);
2047
+ }
2048
+
2049
+ .focus\:\!dsEcom-text-neutral-100:focus {
2050
+ color: var(--neutral-100) !important;
2051
+ }
2052
+
1894
2053
  .focus-visible\:dsEcom-outline-none:focus-visible {
1895
2054
  outline: 2px solid transparent;
1896
2055
  outline-offset: 2px;
@@ -1900,6 +2059,10 @@ video {
1900
2059
  border-color: var(--neutral-70);
1901
2060
  }
1902
2061
 
2062
+ .active\:dsEcom-bg-neutral-40:active {
2063
+ background-color: var(--neutral-40);
2064
+ }
2065
+
1903
2066
  .active\:dsEcom-bg-neutral-70:active {
1904
2067
  background-color: var(--neutral-70);
1905
2068
  }
@@ -1908,14 +2071,26 @@ video {
1908
2071
  background-color: var(--primary-80);
1909
2072
  }
1910
2073
 
1911
- .active\:dsEcom-fill-primary-80:active {
1912
- fill: var(--primary-80);
1913
- }
1914
-
1915
2074
  .active\:dsEcom-text-primary-80:active {
1916
2075
  color: var(--primary-80);
1917
2076
  }
1918
2077
 
2078
+ .disabled\:dsEcom-bg-neutral-20:disabled {
2079
+ background-color: var(--neutral-20);
2080
+ }
2081
+
2082
+ .disabled\:placeholder\:dsEcom-text-neutral-70:disabled:-ms-input-placeholder {
2083
+ color: var(--neutral-70);
2084
+ }
2085
+
2086
+ .disabled\:placeholder\:dsEcom-text-neutral-70:disabled::placeholder {
2087
+ color: var(--neutral-70);
2088
+ }
2089
+
2090
+ .checked\:disabled\:\!dsEcom-bg-neutral-60:disabled:checked {
2091
+ background-color: var(--neutral-60) !important;
2092
+ }
2093
+
1919
2094
  .dsEcom-peer:checked ~ .peer-checked\:dsEcom-ml-5 {
1920
2095
  margin-left: 1.25rem;
1921
2096
  }
@@ -2044,4 +2219,4 @@ video {
2044
2219
  .mobiles\:dsEcom-text-center {
2045
2220
  text-align: center;
2046
2221
  }
2047
- }
2222
+ }
package/package.json CHANGED
@@ -1,80 +1,80 @@
1
- {
2
- "name": "lau-ecom-design-system",
3
- "private": false,
4
- "version": "1.0.17",
5
- "sourceType": "module",
6
- "sideEffects": false,
7
- "main": "dist/lau-ecom-design-system.ssr.js",
8
- "module": "dist/lau-ecom-design-system.esm.js",
9
- "browser": "dist/lau-ecom-design-system.esm.js",
10
- "unpkg": "dist/pe-lau-ecom-design-system.min.js",
11
- "files": [
12
- "dist/*",
13
- "dist/types/",
14
- "src/**/*.vue",
15
- "src/**/*.otf",
16
- "src/**/*.ttf",
17
- "src/enums/*.ts"
18
- ],
19
- "scripts": {
20
- "dev": "vite",
21
- "build": "rollup --bundleConfigAsCjs --config ./rollup.config.js && npm run start ",
22
- "build:ssr": "rollup --config ./rollup.config.js --format cjs",
23
- "build:es": "rollup --config ./rollup.config.js --format es",
24
- "build:unpkg": "rollup --config ./rollup.config.js --format iife",
25
- "start": "npx tailwindcss -i ./src/main.css -o ./dist/style.css",
26
- "preview": "vite preview",
27
- "storybook": "storybook dev -p 6006",
28
- "build-storybook": "storybook build",
29
- "prepare": "husky"
30
- },
31
- "dependencies": {
32
- "vue": "^3.5.12"
33
- },
34
- "devDependencies": {
35
- "@babel/core": "^7.25.9",
36
- "@babel/preset-env": "^7.25.9",
37
- "@babel/preset-typescript": "^7.25.9",
38
- "@chromatic-com/storybook": "1.9.0",
39
- "@eslint/js": "^9.13.0",
40
- "@rollup/plugin-alias": "^5.1.1",
41
- "@rollup/plugin-babel": "^6.0.4",
42
- "@rollup/plugin-commonjs": "^28.0.1",
43
- "@rollup/plugin-node-resolve": "^15.3.0",
44
- "@rollup/plugin-replace": "^6.0.1",
45
- "@rollup/plugin-typescript": "^12.1.1",
46
- "@rollup/plugin-url": "^8.0.2",
47
- "@storybook/addon-essentials": "8.3.6",
48
- "@storybook/addon-interactions": "8.3.6",
49
- "@storybook/addon-links": "8.3.6",
50
- "@storybook/addon-onboarding": "8.3.6",
51
- "@storybook/addon-styling-webpack": "1.0.0",
52
- "@storybook/blocks": "8.3.6",
53
- "@storybook/test": "8.3.6",
54
- "@storybook/vue3": "8.3.6",
55
- "@storybook/vue3-vite": "8.3.6",
56
- "@vitejs/plugin-vue": "^5.1.4",
57
- "autoprefixer": "^10.4.20",
58
- "cssnano": "^7.0.6",
59
- "eslint": "^8.45.0",
60
- "eslint-config-prettier": "^9.1.0",
61
- "eslint-plugin-prettier": "^5.2.1",
62
- "eslint-plugin-vue": "^9.15.1",
63
- "globals": "^15.11.0",
64
- "husky": "^9.1.6",
65
- "lint-staged": "^15.2.10",
66
- "minimist": "^1.2.8",
67
- "postcss": "^8.4.47",
68
- "prettier": "^3.3.3",
69
- "pretty-quick": "^4.0.0",
70
- "rollup-plugin-postcss": "^4.0.2",
71
- "rollup-plugin-terser": "^7.0.2",
72
- "rollup-plugin-vue": "^6.0.0",
73
- "storybook": "8.3.6",
74
- "tailwindcss": "^3.4.14",
75
- "typescript": "~5.6.2",
76
- "typescript-eslint": "^8.11.0",
77
- "vite": "^5.4.9",
78
- "vue-tsc": "^2.1.6"
79
- }
80
- }
1
+ {
2
+ "name": "lau-ecom-design-system",
3
+ "private": false,
4
+ "version": "1.0.19",
5
+ "sourceType": "module",
6
+ "sideEffects": false,
7
+ "main": "dist/lau-ecom-design-system.ssr.js",
8
+ "module": "dist/lau-ecom-design-system.esm.js",
9
+ "browser": "dist/lau-ecom-design-system.esm.js",
10
+ "unpkg": "dist/pe-lau-ecom-design-system.min.js",
11
+ "files": [
12
+ "dist/*",
13
+ "dist/types/",
14
+ "src/**/*.vue",
15
+ "src/**/*.otf",
16
+ "src/**/*.ttf",
17
+ "src/enums/*.ts"
18
+ ],
19
+ "scripts": {
20
+ "dev": "vite",
21
+ "build": "rollup --bundleConfigAsCjs --config ./rollup.config.js && npm run start ",
22
+ "build:ssr": "rollup --config ./rollup.config.js --format cjs",
23
+ "build:es": "rollup --config ./rollup.config.js --format es",
24
+ "build:unpkg": "rollup --config ./rollup.config.js --format iife",
25
+ "start": "npx tailwindcss -i ./src/main.css -o ./dist/style.css",
26
+ "preview": "vite preview",
27
+ "storybook": "storybook dev -p 6006",
28
+ "build-storybook": "storybook build",
29
+ "prepare": "husky"
30
+ },
31
+ "dependencies": {
32
+ "vue": "^3.5.12"
33
+ },
34
+ "devDependencies": {
35
+ "@babel/core": "^7.25.9",
36
+ "@babel/preset-env": "^7.25.9",
37
+ "@babel/preset-typescript": "^7.25.9",
38
+ "@chromatic-com/storybook": "1.9.0",
39
+ "@eslint/js": "^9.13.0",
40
+ "@rollup/plugin-alias": "^5.1.1",
41
+ "@rollup/plugin-babel": "^6.0.4",
42
+ "@rollup/plugin-commonjs": "^28.0.1",
43
+ "@rollup/plugin-node-resolve": "^15.3.0",
44
+ "@rollup/plugin-replace": "^6.0.1",
45
+ "@rollup/plugin-typescript": "^12.1.1",
46
+ "@rollup/plugin-url": "^8.0.2",
47
+ "@storybook/addon-essentials": "8.3.6",
48
+ "@storybook/addon-interactions": "8.3.6",
49
+ "@storybook/addon-links": "8.3.6",
50
+ "@storybook/addon-onboarding": "8.3.6",
51
+ "@storybook/addon-styling-webpack": "1.0.0",
52
+ "@storybook/blocks": "8.3.6",
53
+ "@storybook/test": "8.3.6",
54
+ "@storybook/vue3": "8.3.6",
55
+ "@storybook/vue3-vite": "8.3.6",
56
+ "@vitejs/plugin-vue": "^5.1.4",
57
+ "autoprefixer": "^10.4.20",
58
+ "cssnano": "^7.0.6",
59
+ "eslint": "^8.45.0",
60
+ "eslint-config-prettier": "^9.1.0",
61
+ "eslint-plugin-prettier": "^5.2.1",
62
+ "eslint-plugin-vue": "^9.15.1",
63
+ "globals": "^15.11.0",
64
+ "husky": "^9.1.6",
65
+ "lint-staged": "^15.2.10",
66
+ "minimist": "^1.2.8",
67
+ "postcss": "^8.4.47",
68
+ "prettier": "^3.3.3",
69
+ "pretty-quick": "^4.0.0",
70
+ "rollup-plugin-postcss": "^4.0.2",
71
+ "rollup-plugin-terser": "^7.0.2",
72
+ "rollup-plugin-vue": "^6.0.0",
73
+ "storybook": "8.3.6",
74
+ "tailwindcss": "^3.4.14",
75
+ "typescript": "~5.6.2",
76
+ "typescript-eslint": "^8.11.0",
77
+ "vite": "^5.4.9",
78
+ "vue-tsc": "^2.1.6"
79
+ }
80
+ }
@@ -1,21 +1,18 @@
1
1
  <script lang="ts" setup>
2
- import { computed, onBeforeMount, ref } from "vue";
2
+ import { onBeforeMount, ref } from "vue";
3
3
  import LauEcomButton from "../LauEcomButton/LauEcomButton.vue";
4
4
  import LauEcomTextButton from "../LauEcomTextButton/LauEcomTextButton.vue";
5
- import { LauEcomInstance } from "../../enums";
6
5
  import { getCookie, acceptAllCookies } from "../../utils/Cookies";
7
6
  import LauEcomBannerCookiesConfig from "./LauEcomBannerCookiesConfig.vue";
8
7
  import { CategoryCookie } from "./types";
9
8
  import { COOKIE_CONSENT, CookieItemKey } from "../../utils";
10
9
 
11
10
  interface Props {
12
- instance?: LauEcomInstance;
13
11
  isVisible?: boolean;
14
12
  categoryCookies?: CategoryCookie[] | null;
15
13
  }
16
14
 
17
15
  const props = withDefaults(defineProps<Props>(), {
18
- instance: LauEcomInstance.Upc,
19
16
  isVisible: true,
20
17
  categoryCookies: () => {
21
18
  return [
@@ -82,22 +79,6 @@ const handleAccept = () => {
82
79
  isBannerVisible.value = false;
83
80
  };
84
81
 
85
- const lauEcomBannerCookiesClasses = computed(() => {
86
- return {
87
- "lau-ecom-cookies": true,
88
- "lau-ecom-cookies--upc": props.instance === LauEcomInstance.Upc,
89
- "lau-ecom-cookies--cib": props.instance === LauEcomInstance.Cibertec,
90
- };
91
- });
92
-
93
- const lauEcomBannerCookiesTextClasses = computed(() => {
94
- return {
95
- "lau-ecom-text core-font-body-reg-04-16px": true,
96
- "lau-ecom-text--upc": props.instance === LauEcomInstance.Upc,
97
- "lau-ecom-text--cib": props.instance === LauEcomInstance.Cibertec,
98
- };
99
- });
100
-
101
82
  const handleConfigClose = () => {
102
83
  emit("onClose");
103
84
  isConfigOpen.value = false;
@@ -126,22 +107,18 @@ const handleAcceptAll = () => {
126
107
 
127
108
  <template>
128
109
  <div v-if="isBannerVisible">
129
- <div v-if="!isConfigOpen" :class="lauEcomBannerCookiesClasses">
130
- <p :class="lauEcomBannerCookiesTextClasses">
110
+ <div v-if="!isConfigOpen" class="lau-ecom-cookies lau-ecom-cookies--upc">
111
+ <p class="lau-ecom-text lau-ecom-text--upc core-font-body-reg-04-16px">
131
112
  Este sitio web utiliza cookies gracias a esto podemos personalizar los
132
113
  ingresos a la web en futuras visitas y brindarte una mejor experiencia
133
114
  dentro de nuestro sitio.
134
- <a class="core-font-link-02-16px dsEcom-text-core-color-blue-60-base"
135
- >Conoce más</a
136
- >
115
+ <a class="core-font-link-02-16px dsEcom-text-link-60">Conoce más</a>
137
116
  </p>
138
117
  <div class="lau-ecom-buttons">
139
- <LauEcomTextButton :instance="instance" @on-click="handleConfigCookies">
118
+ <LauEcomTextButton @on-click="handleConfigCookies">
140
119
  Configurar cookies
141
120
  </LauEcomTextButton>
142
- <LauEcomButton :instance="instance" @on-click="handleAccept">
143
- Aceptar
144
- </LauEcomButton>
121
+ <LauEcomButton @on-click="handleAccept"> Aceptar </LauEcomButton>
145
122
  </div>
146
123
  </div>
147
124
  <LauEcomBannerCookiesConfig
@@ -170,11 +147,7 @@ const handleAcceptAll = () => {
170
147
  }
171
148
 
172
149
  .lau-ecom-cookies--upc {
173
- @apply dsEcom-text-upc-color-neutral-20;
174
- }
175
-
176
- .lau-ecom-cookies--cib {
177
- @apply dsEcom-text-color-cbt-color-neutral-20;
150
+ @apply dsEcom-text-neutral-20;
178
151
  }
179
152
 
180
153
  .lau-ecom-text {
@@ -184,11 +157,7 @@ const handleAcceptAll = () => {
184
157
  }
185
158
 
186
159
  .lau-ecom-text--upc {
187
- @apply dsEcom-text-upc-color-neutral-90;
188
- }
189
-
190
- .lau-ecom-text--cib {
191
- @apply dsEcom-text-color-cbt-color-neutral-80;
160
+ @apply dsEcom-text-neutral-90;
192
161
  }
193
162
 
194
163
  .lau-ecom-buttons {