@lanaco/lnc-react-ui 4.0.132 → 4.0.134

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 (48) hide show
  1. package/dist/BannerSectionCarousel.cjs +110 -86
  2. package/dist/BannerSectionCarousel.js +124 -99
  3. package/dist/BlogCardsSponsoredSection.cjs +6 -4
  4. package/dist/BlogCardsSponsoredSection.js +12 -10
  5. package/dist/BlogExploreSection.js +1 -1
  6. package/dist/BlogListSection.cjs +3 -1
  7. package/dist/BlogListSection.js +16 -14
  8. package/dist/BlogProductCardsSection.js +2 -2
  9. package/dist/BlogShopCardsSection.cjs +1 -1
  10. package/dist/BlogShopCardsSection.js +1 -1
  11. package/dist/BlogSingleSection.js +1 -1
  12. package/dist/BlogsSectionDetailed.cjs +1 -1
  13. package/dist/BlogsSectionDetailed.js +2 -2
  14. package/dist/BlogsSectionLarge.js +1 -1
  15. package/dist/BlogsSectionSimple.cjs +1 -1
  16. package/dist/BlogsSectionSimple.js +2 -2
  17. package/dist/BlogsSectionSimpleCentered.js +1 -1
  18. package/dist/BlogsSectionWithFilters.cjs +1 -1
  19. package/dist/BlogsSectionWithFilters.js +2 -2
  20. package/dist/DetailedProductsSection.cjs +1 -1
  21. package/dist/DetailedProductsSection.js +2 -2
  22. package/dist/FieldOfInterestsWithAvatarsCardsSection.js +1 -1
  23. package/dist/GiftCardsSection.cjs +1 -1
  24. package/dist/GiftCardsSection.js +1 -1
  25. package/dist/ProductsWithBannerSection.cjs +1 -1
  26. package/dist/ProductsWithBannerSection.js +2 -2
  27. package/dist/ReviewsSection.js +1 -1
  28. package/dist/SalesCampaignsSection.cjs +27 -27
  29. package/dist/SalesCampaignsSection.js +346 -343
  30. package/dist/ShopAvatar-4-fCYGEc.js +4 -0
  31. package/dist/ShopAvatar-CV3lj34D.cjs +1 -0
  32. package/dist/ShopCardsSection.cjs +1 -1
  33. package/dist/ShopCardsSection.js +1 -1
  34. package/dist/SimpleCategoriesSection.cjs +1 -1
  35. package/dist/SimpleCategoriesSection.js +1 -1
  36. package/dist/SimpleProductsSection.js +2 -2
  37. package/dist/UrgentSaleProductsSection.js +1 -1
  38. package/dist/{index-CU0KClNt.js → index-B7pgRoP5.js} +1 -1
  39. package/dist/{index-3TFXgZHA.js → index-DRP1yTKe.js} +13 -18
  40. package/dist/{index-DJ545v7b.js → index-DiPwx53C.js} +1 -1
  41. package/dist/{skeleton-fVxknFUi.js → skeleton-ChyJLfsR.js} +36 -35
  42. package/dist/skeleton-Dw2U9XhS.cjs +168 -0
  43. package/dist/{style-XXDQBreL.js → style-DAn9Ifqe.js} +9 -7
  44. package/dist/{style-C_BRvopE.cjs → style-DaT7Beup.cjs} +7 -5
  45. package/dist/{suspense-product-card-detailed-BP1opdKD.js → suspense-product-card-detailed-CFZchhUK.js} +1 -1
  46. package/dist/{suspense-product-card-simple-BT5gv-kY.js → suspense-product-card-simple-BuJtwiwA.js} +1 -1
  47. package/package.json +1 -1
  48. package/dist/skeleton-Bl1q9Yqe.cjs +0 -168
@@ -1,168 +0,0 @@
1
- "use strict";const r=require("react/jsx-runtime"),t=require("react"),p=require("./Icon.cjs"),n=require("./utils-DmMdPm9O.cjs"),u=require("./index-DiIeF_76.cjs"),_=require("./emotion-styled.browser.esm-BtEseadx.cjs"),S=_.styled.div`
2
- display: flex;
3
- flex-direction: column;
4
- align-items: center;
5
- border-radius: 1.25rem;
6
- border: 1px solid var(--neutral-9508, rgba(20, 22, 26, 0.08));
7
- background: var(--Lanaco-Gray-white, #fff);
8
- width: 100%;
9
- height: 100%;
10
- justify-content: space-between;
11
- /* drop-shadow-sm */
12
- box-shadow: 0px 1px 2px 0px rgba(0, 0, 0, 0.05);
13
-
14
- &:hover {
15
- cursor: pointer;
16
- }
17
-
18
- & .wrapper__content {
19
- display: flex;
20
- padding: 1.25rem;
21
- flex-direction: column;
22
- align-items: center;
23
- gap: 0.75rem;
24
- align-self: strech;
25
-
26
- & .wrapper__image {
27
- object-fit: cover;
28
- aspect-ratio: 1 / 1;
29
- max-height: 4rem;
30
- border-radius: 999px;
31
- }
32
- }
33
-
34
- & .wrapper__info {
35
- display: flex;
36
- flex-direction: column;
37
- align-items: center;
38
- gap: 0.375rem;
39
-
40
- & .wrapper__title {
41
- display: flex;
42
- align-items: center;
43
- gap: 0.75rem;
44
- color: var(--gray-950, #14161a);
45
- font-size: 1rem;
46
- font-style: normal;
47
- font-weight: 500;
48
- line-height: 1.5rem;
49
- letter-spacing: -0.0112rem;
50
- ${n.truncateTextInRows(2)}
51
- text-align: center;
52
- }
53
-
54
- & .wrapper__subtitle {
55
- color: var(--gray-600, #676e79);
56
- text-align: center;
57
- font-size: 0.875rem;
58
- font-style: normal;
59
- font-weight: 400;
60
- line-height: 1.25rem;
61
- letter-spacing: -0.0056rem;
62
- ${n.truncateTextInRows(2)}
63
- }
64
-
65
- & .wrapper__badges {
66
- }
67
-
68
- & .wrapper__rating {
69
- display: flex;
70
- align-items: center;
71
- gap: 0.25rem;
72
-
73
- & .wrapper__star {
74
- & i {
75
- color: var(--warning-500);
76
- }
77
-
78
- & .gold-star {
79
- & i {
80
- color: var(--gray-500);
81
- }
82
- }
83
- }
84
-
85
- & .wrapper__review-count {
86
- color: var(--gray-600, #676e79);
87
- font-size: 0.75rem;
88
- font-style: normal;
89
- font-weight: 400;
90
- line-height: 1rem;
91
- letter-spacing: 0.01px;
92
- }
93
- }
94
- }
95
-
96
- & .wrapper__products {
97
- display: flex;
98
- align-items: flex-start;
99
- column-gap: 1px;
100
- width: 100%;
101
-
102
- & .wrapper__product {
103
- overflow: hidden;
104
- cursor: pointer;
105
- width: 100%;
106
- max-height: 5.75rem;
107
-
108
- &:first-child {
109
- border-radius: 0 0 0 1.25rem;
110
- }
111
-
112
- &:last-child {
113
- border-radius: 0 0 1.25rem 0;
114
- }
115
-
116
- & .product__image {
117
- width: 100%;
118
- aspect-ratio: 1 / 1;
119
- height: calc(100% / 3);
120
- max-height: 5.75rem;
121
- object-fit: cover;
122
- }
123
- }
124
- }
125
- `,k=_.styled.div`
126
- display: flex;
127
- flex-direction: column;
128
- align-items: center;
129
- flex: 1 0 0;
130
- border-radius: 1.25rem;
131
- border: 1px solid var(--neutral-9508, rgba(20, 22, 26, 0.08));
132
- background: var(--Lanaco-Gray-white, #fff);
133
- width: 100%;
134
-
135
- /* drop-shadow-sm */
136
- box-shadow: 0px 1px 2px 0px rgba(0, 0, 0, 0.05);
137
-
138
- & .wrapper__content {
139
- display: flex;
140
- padding: 1.25rem;
141
- flex-direction: column;
142
- align-items: center;
143
- gap: 0.75rem;
144
- align-self: strech;
145
- width: 100%;
146
-
147
- & .wrapper__image {
148
- width: 4rem;
149
- height: 4rem;
150
- border-radius: 999px;
151
- background-color: ${n.linearGradientAnimation("-90deg")};
152
- }
153
- }
154
-
155
- & .wrapper__info {
156
- display: flex;
157
- flex-direction: column;
158
- align-items: center;
159
- gap: 0.375rem;
160
- width: 100%;
161
-
162
- & .wrapper__info-item {
163
- background-color: ${n.linearGradientAnimation("-90deg")};
164
- height: 1rem;
165
- width: 100%;
166
- }
167
- }
168
- `,g="data:image/svg+xml,%3csvg%20width='80'%20height='80'%20viewBox='0%200%2080%2080'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M40%200C62.0914%200%2080%2017.9086%2080%2040C80%2062.0914%2062.0914%2080%2040%2080C17.9086%2080%200%2062.0914%200%2040C0%2017.9086%2017.9086%200%2040%200ZM29.7148%2020C29.1939%2019.9981%2028.5387%2019.9954%2027.9199%2020.1973C27.3848%2020.3719%2026.8918%2020.6581%2026.4746%2021.0361C25.9923%2021.4732%2025.6689%2022.0429%2025.4121%2022.4961C25.3881%2022.5384%2025.3647%2022.58%2025.3418%2022.6201L18.2637%2035.0078C17.91%2035.6268%2017.9127%2036.3873%2018.2705%2037.0039C18.6284%2037.6204%2019.2871%2038%2020%2038H22V53.2725C22%2054.0504%2022.0003%2054.7505%2022.0479%2055.333C22.0988%2055.9568%2022.214%2056.6198%2022.5449%2057.2695C23.0243%2058.2103%2023.7897%2058.9757%2024.7305%2059.4551C25.3802%2059.786%2026.0432%2059.9012%2026.667%2059.9521C27.2495%2059.9997%2027.9496%2060%2028.7275%2060H39.2725C40.0504%2060%2040.7505%2059.9997%2041.333%2059.9521C41.9568%2059.9012%2042.6198%2059.786%2043.2695%2059.4551C44.2103%2058.9757%2044.9757%2058.2103%2045.4551%2057.2695C45.786%2056.6198%2045.9012%2055.9568%2045.9521%2055.333C45.9997%2054.7505%2046%2054.0504%2046%2053.2725V38H54V58C54%2059.1046%2054.8954%2060%2056%2060C57.1046%2060%2058%2059.1046%2058%2058V38H60C60.7129%2038%2061.3716%2037.6204%2061.7295%2037.0039C62.0873%2036.3873%2062.09%2035.6268%2061.7363%2035.0078L54.6582%2022.6201C54.6353%2022.58%2054.6119%2022.5384%2054.5879%2022.4961C54.3311%2022.0429%2054.0077%2021.4732%2053.5254%2021.0361C53.1082%2020.6581%2052.6152%2020.3719%2052.0801%2020.1973C51.4613%2019.9954%2050.8061%2019.9981%2050.2852%2020H29.7148ZM42%2038V48H26V38H42Z'%20fill='%2387C6FA'/%3e%3c/svg%3e",H=t.forwardRef(({uuid:c,image:m,imageComponent:d,title:x,subtitle:h,badges:w,rating:f,reviewCount:o,products:l,onSelectCard:v=()=>{},getProductImage:C=()=>{},canAcceptPayments:j,hideProducts:b=!1,showRating:y=!0},N)=>{const i=t.useRef();return t.useEffect(()=>{var s;const e=a=>{a.target.src=g,a.onerror=null};return(s=i==null?void 0:i.current)==null||s.addEventListener("error",e),()=>{var a;(a=i==null?void 0:i.current)==null||a.removeEventListener("error",e)}},[]),r.jsxs(S,{ref:N,onClick:v,children:[r.jsxs("div",{className:"wrapper__content",children:[n.isDefined(d)?d:m?r.jsx("img",{ref:i,src:m,className:"wrapper__image"}):r.jsx("img",{src:g}),r.jsxs("div",{className:"wrapper__info",children:[r.jsxs("div",{className:"wrapper__title",children:[x," ",j&&r.jsx(p,{color:"secondary",icon:"credit-card",className:"card"})]}),r.jsx("div",{className:"wrapper__subtitle",children:h}),w&&r.jsx("div",{className:"wrapper__badges"}),y&&r.jsxs("div",{className:"wrapper__rating",children:[r.jsx("div",{className:"wrapper_stars",children:[...Array(5).keys()].map((e,s)=>r.jsx(p,{icon:" mng-lnc-star--filled",className:`wrapper__star ${e>=f?"gold-star":""}`},`shop-card-rating-star__${s+1}`))}),r.jsxs("div",{className:"wrapper__review-count",children:["(",o==null?void 0:o.toLocaleString(),")"]})]})]})]}),b!==!0&&r.jsx("div",{className:"wrapper__products",children:l&&(l==null?void 0:l.map((e,s)=>r.jsx(t.Fragment,{children:r.jsx("div",{className:"wrapper__product",onClick:()=>{var a;return(a=e==null?void 0:e.onSelectProduct)==null?void 0:a.call(e,e==null?void 0:e.uuid)},children:n.isDefined(e==null?void 0:e.imageComponent)?e==null?void 0:e.imageComponent:r.jsx(u.ProductImageWrapper,{src:C(e==null?void 0:e.image,e==null?void 0:e.uuid,c),className:"product__image"})})},s)))})]})}),L=t.forwardRef(({},c)=>r.jsx(k,{children:r.jsxs("div",{className:"wrapper__content",children:[r.jsx("div",{className:"wrapper__image"}),r.jsxs("div",{className:"wrapper__info",children:[r.jsx("div",{className:"wrapper__info-item"}),r.jsx("div",{className:"wrapper__info-item"}),r.jsx("div",{className:"wrapper__info-item"}),r.jsx("div",{className:"wrapper__info-item"})]})]})}));exports.ShopCard=H;exports.ShopCardSkeleton=L;