@lanaco/lnc-react-ui 4.0.39 → 4.0.40
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/dist/BannerSectionBasic.cjs +9 -9
- package/dist/BannerSectionBasic.js +20 -20
- package/dist/BannerSectionCarousel.cjs +13 -5
- package/dist/BannerSectionCarousel.js +29 -21
- package/dist/BannerSectionGrid.cjs +1 -1
- package/dist/BannerSectionGrid.js +6 -6
- package/dist/BannerSectionSimple.cjs +4 -4
- package/dist/BannerSectionSimple.js +41 -38
- package/dist/BannerSectionWithList.cjs +4 -4
- package/dist/BannerSectionWithList.js +17 -17
- package/dist/BannerSectionWithListImage.cjs +5 -5
- package/dist/BannerSectionWithListImage.js +41 -38
- package/dist/BlogsSectionDetailed.cjs +10 -10
- package/dist/BlogsSectionDetailed.js +32 -33
- package/dist/BlogsSectionLarge.cjs +2 -2
- package/dist/BlogsSectionLarge.js +2 -2
- package/dist/BlogsSectionSimple.cjs +2 -2
- package/dist/BlogsSectionSimple.js +20 -20
- package/dist/BlogsSectionSimpleCentered.cjs +6 -6
- package/dist/BlogsSectionSimpleCentered.js +9 -9
- package/dist/BlogsSectionWithFilters.cjs +10 -10
- package/dist/BlogsSectionWithFilters.js +65 -64
- package/dist/BrandHitsSection.cjs +12 -7
- package/dist/BrandHitsSection.js +10 -5
- package/dist/CalorieCalculatorSection.cjs +7 -8
- package/dist/CalorieCalculatorSection.js +31 -32
- package/dist/CustomLoanMapSection.cjs +2 -2
- package/dist/CustomLoanMapSection.js +13 -13
- package/dist/DetailedProductsSection.cjs +1 -1
- package/dist/DetailedProductsSection.js +1 -1
- package/dist/FieldOfInterestsWithAvatarsCardsSection.cjs +8 -8
- package/dist/FieldOfInterestsWithAvatarsCardsSection.js +9 -8
- package/dist/FieldOfInterestsWithTagsCardsSection.cjs +14 -6
- package/dist/FieldOfInterestsWithTagsCardsSection.js +12 -4
- package/dist/GeneralWithTagsCardsSection.cjs +18 -6
- package/dist/GeneralWithTagsCardsSection.js +44 -31
- package/dist/GiftCardsSection.cjs +9 -5
- package/dist/GiftCardsSection.js +21 -17
- package/dist/LocationSearchSection.cjs +1 -1
- package/dist/LocationSearchSection.js +1 -1
- package/dist/MasonryGeneralCardsSection.cjs +21 -1
- package/dist/MasonryGeneralCardsSection.js +20 -0
- package/dist/OverlayGeneralCardsSection.cjs +52 -96
- package/dist/OverlayGeneralCardsSection.js +116 -165
- package/dist/ProductsWithBannerSection.cjs +5 -5
- package/dist/ProductsWithBannerSection.js +26 -26
- package/dist/SalesCampaignsSection.cjs +17 -17
- package/dist/SalesCampaignsSection.js +81 -81
- package/dist/ShopCardsSection.cjs +19 -9
- package/dist/ShopCardsSection.js +54 -40
- package/dist/SimpleCategoriesSection.cjs +1 -1
- package/dist/SimpleCategoriesSection.js +1 -1
- package/dist/SimpleProductsSection.cjs +1 -1
- package/dist/SimpleProductsSection.js +1 -1
- package/dist/{index-CT6_7UFb.js → index-5cttM4t7.js} +119 -124
- package/dist/{index-BN8qgFbe.js → index-BT55M3t6.js} +8 -7
- package/dist/{index-_Db92CJE.cjs → index-DHJmdMN8.cjs} +5 -4
- package/dist/index-Dn5tPLgP.cjs +95 -0
- package/dist/{style-6tSw9aqK.js → style-CiePxaJ_.js} +6 -6
- package/dist/{style-BR3tIhP1.cjs → style-DN1qT8BE.cjs} +6 -6
- package/package.json +1 -1
- package/dist/index-Q_i-aqsF.cjs +0 -95
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const r=require("react/jsx-runtime"),s=require("react"),h=require("./emotion-styled.browser.esm-Cle7tAM9.cjs"),j=require("./consts-CtNoHdBj.cjs"),w=require("./Button.cjs"),a=require("./utils-NZLCh-J5.cjs"),q=require("./useDetectMobile-D6d5LpdL.cjs"),D=require("./style-
|
|
1
|
+
"use strict";const r=require("react/jsx-runtime"),s=require("react"),h=require("./emotion-styled.browser.esm-Cle7tAM9.cjs"),j=require("./consts-CtNoHdBj.cjs"),w=require("./Button.cjs"),a=require("./utils-NZLCh-J5.cjs"),q=require("./useDetectMobile-D6d5LpdL.cjs"),D=require("./style-DN1qT8BE.cjs"),m=require("./suspense-product-card-detailed-DtzOxHaH.cjs"),P=h.newStyled.div`
|
|
2
2
|
display: grid;
|
|
3
3
|
grid-template-columns: ${i=>`repeat(${i.limit}, minmax(0, 1fr))`};
|
|
4
4
|
gap: 1.25rem;
|
|
@@ -5,7 +5,7 @@ import { M as P } from "./consts-C1uHV4xc.js";
|
|
|
5
5
|
import D from "./Button.js";
|
|
6
6
|
import { k as c } from "./utils-DtRLzzTZ.js";
|
|
7
7
|
import { u as M } from "./useDetectMobile-BC6EGaBc.js";
|
|
8
|
-
import { R as E } from "./style-
|
|
8
|
+
import { R as E } from "./style-CiePxaJ_.js";
|
|
9
9
|
import { D as N, S as R } from "./suspense-product-card-detailed-BETmfKMT.js";
|
|
10
10
|
const U = v.div`
|
|
11
11
|
display: grid;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
"use strict";const t=require("react/jsx-runtime"),f=require("react"),u=require("./emotion-styled.browser.esm-Cle7tAM9.cjs"),
|
|
1
|
+
"use strict";const t=require("react/jsx-runtime"),f=require("react"),u=require("./emotion-styled.browser.esm-Cle7tAM9.cjs"),d=require("./consts-CtNoHdBj.cjs"),y=require("./utils-NZLCh-J5.cjs"),$=require("./index-DHJmdMN8.cjs"),c=u.newStyled.div`
|
|
2
2
|
width: 100%;
|
|
3
3
|
height: 11.625rem;
|
|
4
4
|
border-radius: 0.75rem;
|
|
5
|
-
background: ${
|
|
5
|
+
background: ${y.linearGradientAnimation("-90deg")};
|
|
6
6
|
`,C=u.newStyled.div`
|
|
7
7
|
width: 100%;
|
|
8
8
|
height: auto;
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
border: var(--yellow-600, #d97706);
|
|
25
25
|
}
|
|
26
26
|
|
|
27
|
-
@media (max-width: ${
|
|
27
|
+
@media (max-width: ${d.MOBILE_SIZE_PX+"px"}) {
|
|
28
28
|
& .wrapper__image {
|
|
29
29
|
height: auto;
|
|
30
30
|
}
|
|
@@ -33,13 +33,13 @@
|
|
|
33
33
|
width: 9.875rem;
|
|
34
34
|
height: 9.875rem;
|
|
35
35
|
border-radius: 999px;
|
|
36
|
-
background: ${
|
|
36
|
+
background: ${y.linearGradientAnimation("-90deg")};
|
|
37
37
|
|
|
38
|
-
@media (max-width: ${
|
|
38
|
+
@media (max-width: ${d.MOBILE_SIZE_PX+"px"}) {
|
|
39
39
|
width: 4.5rem;
|
|
40
40
|
height: 4.5rem;
|
|
41
41
|
}
|
|
42
|
-
`,I=f.forwardRef(({},i)=>t.jsx(F,{})),A=f.forwardRef(({isActive:i,image:o,imageComponent:r,onSelectCard:l=()=>{}},_)=>t.jsx(C,{className:i?"active":"",onClick:l,children:
|
|
42
|
+
`,I=f.forwardRef(({},i)=>t.jsx(F,{})),A=f.forwardRef(({isActive:i,image:o,imageComponent:r,onSelectCard:l=()=>{}},_)=>t.jsx(C,{className:i?"active":"",onClick:l,children:y.isDefined(r)?r:t.jsx("img",{src:o,className:"wrapper__image"})})),N=f.forwardRef(({uuid:i,title:o,price:r,currency:l,isNegotiable:_,isFree:a,image:x,sellerUuid:s,onSelectCard:m=()=>{},imageComponent:p,negotiableText:w="Negotiable",freeText:g="Free"},h)=>t.jsx($.SimpleProductCard,{uuid:i,title:o,price:r,currency:l,isNegotiable:_,isFree:a,image:x,imageComponent:p,sellerUuid:s,onSelectCard:m,negotiableText:w,freeText:g})),k=f.forwardRef(({},i)=>t.jsx(c,{})),W=u.newStyled.div`
|
|
43
43
|
display: flex;
|
|
44
44
|
flex-direction: column;
|
|
45
45
|
align-items: center;
|
|
@@ -88,7 +88,7 @@
|
|
|
88
88
|
width: 100%;
|
|
89
89
|
}
|
|
90
90
|
|
|
91
|
-
@media (max-width: ${
|
|
91
|
+
@media (max-width: ${d.MOBILE_SIZE_PX+"px"}) {
|
|
92
92
|
& .wrapper__avatars {
|
|
93
93
|
grid-template-columns: ${i=>`repeat(${i==null?void 0:i.limitAvatarsForMobile}, minmax(0, 1fr))`};
|
|
94
94
|
gap: auto;
|
|
@@ -99,4 +99,4 @@
|
|
|
99
99
|
gap: 1rem;
|
|
100
100
|
}
|
|
101
101
|
}
|
|
102
|
-
`,O=f.forwardRef(({title:i,subtitle:o,avatars:r=[],limitAvatars:l=4,limit:_=6,limitAvatarsForMobile:a=4,limitForMobile:x=2,items:s=[],onSelectAvatar:m=()=>{},onSelectCard:p=()=>{}},
|
|
102
|
+
`,O=f.forwardRef(({title:i,subtitle:o,avatars:r=[],limitAvatars:l=4,limit:_=6,limitAvatarsForMobile:a=4,limitForMobile:x=2,items:s=[],onSelectAvatar:m=()=>{},onSelectCard:p=()=>{}},w)=>{var j,b;const g=e=>{m==null||m(e==null?void 0:e.uuid)},h=e=>{p==null||p(e==null?void 0:e.uuid)};return t.jsxs(W,{ref:w,limitAvatars:l,limitAvatarsForMobile:a,limitCards:_,limitCardsForMobile:x,children:[t.jsxs("div",{className:"wrapper__heading",children:[i&&t.jsx("div",{className:"wrapper__title",children:i}),o&&t.jsx("div",{className:"wrapper__subtitle",children:o})]}),t.jsx("div",{className:"wrapper__avatars",children:r&&(r==null?void 0:r.length)>0?r==null?void 0:r.map((e,n)=>t.jsx(A,{image:e==null?void 0:e.image,imageComponent:e==null?void 0:e.imageComponent,onSelectCard:()=>g==null?void 0:g(e)},`field-of-interests-with-avatars-card-avatar__${n+1}`)):(j=Array.from("1234"))==null?void 0:j.map((e,n)=>t.jsx(I,{},`field-of-interests-with-avatars-card-avatar-skeleton__${n+1}`))}),t.jsx("div",{className:"wrapper__cards",children:s&&(s==null?void 0:s.length)>0?s==null?void 0:s.map((e,n)=>t.jsx(N,{uuid:e==null?void 0:e.uuid,title:e==null?void 0:e.title,price:e==null?void 0:e.price,currency:e==null?void 0:e.currency,isNegotiable:e==null?void 0:e.isNegotiable,isFree:e==null?void 0:e.isFree,image:e==null?void 0:e.image,imageComponent:e==null?void 0:e.imageComponent,sellerUuid:e==null?void 0:e.sellerUuid,negotiableText:e==null?void 0:e.negotiableText,freeText:e==null?void 0:e.freeText,onSelectCard:()=>h==null?void 0:h(e)},`field-of-interests-with-avatars-card__${n+1}`)):(b=Array.from("123456"))==null?void 0:b.map((e,n)=>t.jsx(k,{},`field-of-interests-with-avatars-card-skeleton__${n+1}`))})]})});module.exports=O;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { jsx as t, jsxs as y } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef as f } from "react";
|
|
3
3
|
import { n as _ } from "./emotion-styled.browser.esm-CjCaF13H.js";
|
|
4
|
-
import { M as
|
|
4
|
+
import { M as x } from "./consts-C1uHV4xc.js";
|
|
5
5
|
import { m as C, l as F } from "./utils-DtRLzzTZ.js";
|
|
6
|
-
import { a as N } from "./index-
|
|
6
|
+
import { a as N } from "./index-BT55M3t6.js";
|
|
7
7
|
const k = _.div`
|
|
8
8
|
width: 100%;
|
|
9
9
|
height: 11.625rem;
|
|
@@ -30,7 +30,7 @@ const k = _.div`
|
|
|
30
30
|
border: var(--yellow-600, #d97706);
|
|
31
31
|
}
|
|
32
32
|
|
|
33
|
-
@media (max-width: ${
|
|
33
|
+
@media (max-width: ${x + "px"}) {
|
|
34
34
|
& .wrapper__image {
|
|
35
35
|
height: auto;
|
|
36
36
|
}
|
|
@@ -41,7 +41,7 @@ const k = _.div`
|
|
|
41
41
|
border-radius: 999px;
|
|
42
42
|
background: ${C("-90deg")};
|
|
43
43
|
|
|
44
|
-
@media (max-width: ${
|
|
44
|
+
@media (max-width: ${x + "px"}) {
|
|
45
45
|
width: 4.5rem;
|
|
46
46
|
height: 4.5rem;
|
|
47
47
|
}
|
|
@@ -68,7 +68,7 @@ const k = _.div`
|
|
|
68
68
|
onSelectCard: l = () => {
|
|
69
69
|
},
|
|
70
70
|
imageComponent: p,
|
|
71
|
-
negotiableText:
|
|
71
|
+
negotiableText: d = "Negotiable",
|
|
72
72
|
freeText: g = "Free"
|
|
73
73
|
}, a) => /* @__PURE__ */ t(
|
|
74
74
|
N,
|
|
@@ -83,7 +83,7 @@ const k = _.div`
|
|
|
83
83
|
imageComponent: p,
|
|
84
84
|
sellerUuid: n,
|
|
85
85
|
onSelectCard: l,
|
|
86
|
-
negotiableText:
|
|
86
|
+
negotiableText: d,
|
|
87
87
|
freeText: g
|
|
88
88
|
}
|
|
89
89
|
)
|
|
@@ -136,7 +136,7 @@ const k = _.div`
|
|
|
136
136
|
width: 100%;
|
|
137
137
|
}
|
|
138
138
|
|
|
139
|
-
@media (max-width: ${
|
|
139
|
+
@media (max-width: ${x + "px"}) {
|
|
140
140
|
& .wrapper__avatars {
|
|
141
141
|
grid-template-columns: ${(i) => `repeat(${i == null ? void 0 : i.limitAvatarsForMobile}, minmax(0, 1fr))`};
|
|
142
142
|
gap: auto;
|
|
@@ -161,7 +161,7 @@ const k = _.div`
|
|
|
161
161
|
},
|
|
162
162
|
onSelectCard: p = () => {
|
|
163
163
|
}
|
|
164
|
-
},
|
|
164
|
+
}, d) => {
|
|
165
165
|
var b, $;
|
|
166
166
|
const g = (e) => {
|
|
167
167
|
l == null || l(e == null ? void 0 : e.uuid);
|
|
@@ -171,6 +171,7 @@ const k = _.div`
|
|
|
171
171
|
return /* @__PURE__ */ y(
|
|
172
172
|
M,
|
|
173
173
|
{
|
|
174
|
+
ref: d,
|
|
174
175
|
limitAvatars: m,
|
|
175
176
|
limitAvatarsForMobile: u,
|
|
176
177
|
limitCards: h,
|
|
@@ -8,10 +8,6 @@
|
|
|
8
8
|
border: 1px solid var(--neutral-9508, rgba(20, 22, 26, 0.08));
|
|
9
9
|
background: var(--Lanaco-Gray-white, #fff);
|
|
10
10
|
|
|
11
|
-
&:hover {
|
|
12
|
-
cursor: pointer;
|
|
13
|
-
}
|
|
14
|
-
|
|
15
11
|
/* drop-shadow-sm */
|
|
16
12
|
box-shadow: 0px 1px 2px 0px rgba(0, 0, 0, 0.05);
|
|
17
13
|
|
|
@@ -30,8 +26,10 @@
|
|
|
30
26
|
align-items: flex-start;
|
|
31
27
|
gap: 0.25rem;
|
|
32
28
|
align-self: stretch;
|
|
29
|
+
transition: var(--transition, all 0.2s ease);
|
|
33
30
|
|
|
34
31
|
& .wrapper__title {
|
|
32
|
+
transition: var(--transition, all 0.2s ease);
|
|
35
33
|
color: var(--gray-950, #14161a);
|
|
36
34
|
font-size: 1rem;
|
|
37
35
|
font-style: normal;
|
|
@@ -50,6 +48,16 @@
|
|
|
50
48
|
${l.truncateTextInRows(2)}
|
|
51
49
|
}
|
|
52
50
|
}
|
|
51
|
+
|
|
52
|
+
&:hover {
|
|
53
|
+
cursor: pointer;
|
|
54
|
+
|
|
55
|
+
& .wrapper__content {
|
|
56
|
+
& .wrapper__title {
|
|
57
|
+
color: var(--primary-500, #e87722);
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
}
|
|
53
61
|
`,k=d.newStyled.div`
|
|
54
62
|
width: 100%;
|
|
55
63
|
height: 11.625rem;
|
|
@@ -104,7 +112,7 @@
|
|
|
104
112
|
height: 3rem;
|
|
105
113
|
border-radius: 999px;
|
|
106
114
|
background: ${l.linearGradientAnimation("-90deg")};
|
|
107
|
-
`,I=p.forwardRef(({},t)=>r.jsx(N,{})),C=p.forwardRef(({text:t,isActive:n,icon:i,onSelectCard:
|
|
115
|
+
`,I=p.forwardRef(({},t)=>r.jsx(N,{})),C=p.forwardRef(({text:t,isActive:n,icon:i,onSelectCard:o=()=>{}},c)=>r.jsxs($,{className:n?"active":"",onClick:o,children:[r.jsx(v,{icon:i,className:"wrapper__icon"}),r.jsx("div",{className:"wrapper__text",children:t})]})),W=p.forwardRef(({image:t,imageComponent:n,title:i,description:o,onSelectCard:c=()=>{}},x)=>{const{theme:m}=y.useTheme();return r.jsxs(j,{theme:m,onClick:c,children:[l.isDefined(n)?n:r.jsx("img",{src:t,className:"wrapper__image"}),r.jsxs("div",{className:"wrapper__content",children:[i&&r.jsx("div",{className:"wrapper__title",children:i}),o&&r.jsx("div",{className:"wrapper__description",children:o})]})]})}),F=p.forwardRef(({},t)=>r.jsx(k,{})),R=d.newStyled.div`
|
|
108
116
|
display: flex;
|
|
109
117
|
flex-direction: column;
|
|
110
118
|
align-items: center;
|
|
@@ -178,4 +186,4 @@
|
|
|
178
186
|
gap: 1rem;
|
|
179
187
|
}
|
|
180
188
|
}
|
|
181
|
-
`,q=p.forwardRef(({title:t,subtitle:n,tags:i=[],limitTags:
|
|
189
|
+
`,q=p.forwardRef(({title:t,subtitle:n,tags:i=[],limitTags:o=7,limitTagsForMobile:c=7,limit:x=3,limitForMobile:m=2,items:s=[],onSelectTag:f=()=>{},onSelectCard:w=()=>{}},T)=>{var g,u;const _=e=>{f==null||f(e==null?void 0:e.uuid)},h=e=>{w==null||w(e==null?void 0:e.uuid)};return r.jsxs(R,{limitTags:o,limitTagsForMobile:c,limitCards:x,limitCardsForMobile:m,children:[r.jsxs("div",{className:"wrapper__heading",children:[t&&r.jsx("div",{className:"wrapper__title",children:t}),n&&r.jsx("div",{className:"wrapper__subtitle",children:n})]}),r.jsx("div",{className:"wrapper__tags",children:i&&(i==null?void 0:i.length)>0?i==null?void 0:i.map((e,a)=>r.jsx(C,{icon:e==null?void 0:e.icon,text:e==null?void 0:e.text,onSelectCard:()=>_==null?void 0:_(e)},`field-of-interests-with-tags-card-tag__${a+1}`)):(g=Array.from("123"))==null?void 0:g.map((e,a)=>r.jsx(I,{},`field-of-interests-with-tags-card-tag-skeleton__${a+1}`))}),r.jsx("div",{className:"wrapper__cards",children:s&&(s==null?void 0:s.length)>0?s==null?void 0:s.map((e,a)=>r.jsx(W,{image:e==null?void 0:e.image,imageComponent:e==null?void 0:e.imageComponent,title:e==null?void 0:e.title,description:e==null?void 0:e.description,onSelectCard:()=>h==null?void 0:h(e==null?void 0:e.uuid)},`field-of-interests-with-tags-card__${a+1}`)):(u=Array.from("123"))==null?void 0:u.map((e,a)=>r.jsx(F,{},`field-of-interests-with-tags-card-skeleton__${a+1}`))})]})});module.exports=q;
|
|
@@ -15,10 +15,6 @@ const C = m.div`
|
|
|
15
15
|
border: 1px solid var(--neutral-9508, rgba(20, 22, 26, 0.08));
|
|
16
16
|
background: var(--Lanaco-Gray-white, #fff);
|
|
17
17
|
|
|
18
|
-
&:hover {
|
|
19
|
-
cursor: pointer;
|
|
20
|
-
}
|
|
21
|
-
|
|
22
18
|
/* drop-shadow-sm */
|
|
23
19
|
box-shadow: 0px 1px 2px 0px rgba(0, 0, 0, 0.05);
|
|
24
20
|
|
|
@@ -37,8 +33,10 @@ const C = m.div`
|
|
|
37
33
|
align-items: flex-start;
|
|
38
34
|
gap: 0.25rem;
|
|
39
35
|
align-self: stretch;
|
|
36
|
+
transition: var(--transition, all 0.2s ease);
|
|
40
37
|
|
|
41
38
|
& .wrapper__title {
|
|
39
|
+
transition: var(--transition, all 0.2s ease);
|
|
42
40
|
color: var(--gray-950, #14161a);
|
|
43
41
|
font-size: 1rem;
|
|
44
42
|
font-style: normal;
|
|
@@ -57,6 +55,16 @@ const C = m.div`
|
|
|
57
55
|
${v(2)}
|
|
58
56
|
}
|
|
59
57
|
}
|
|
58
|
+
|
|
59
|
+
&:hover {
|
|
60
|
+
cursor: pointer;
|
|
61
|
+
|
|
62
|
+
& .wrapper__content {
|
|
63
|
+
& .wrapper__title {
|
|
64
|
+
color: var(--primary-500, #e87722);
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
}
|
|
60
68
|
`, I = m.div`
|
|
61
69
|
width: 100%;
|
|
62
70
|
height: 11.625rem;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const r=require("react/jsx-runtime"),s=require("react"),l=require("./emotion-styled.browser.esm-Cle7tAM9.cjs"),d=require("./consts-CtNoHdBj.cjs"),m=require("./utils-NZLCh-J5.cjs"),
|
|
1
|
+
"use strict";const r=require("react/jsx-runtime"),s=require("react"),l=require("./emotion-styled.browser.esm-Cle7tAM9.cjs"),d=require("./consts-CtNoHdBj.cjs"),m=require("./utils-NZLCh-J5.cjs"),v=require("./Icon.cjs"),j=require("./emotion-element-f0de968e.browser.esm-B7k6i6lC.cjs"),k=l.newStyled.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex-direction: column;
|
|
4
4
|
align-items: flex-start;
|
|
@@ -38,8 +38,20 @@
|
|
|
38
38
|
font-weight: 500;
|
|
39
39
|
line-height: 1.5rem;
|
|
40
40
|
${m.truncateTextInRows(2)}
|
|
41
|
+
transition: var(--transition, all 0.2s ease);
|
|
41
42
|
}
|
|
42
43
|
}
|
|
44
|
+
|
|
45
|
+
&:hover {
|
|
46
|
+
cursor: pointer;
|
|
47
|
+
|
|
48
|
+
& .wrapper__content {
|
|
49
|
+
& .wrapper__title {
|
|
50
|
+
color: var(--primary-500, #e87722);
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
|
|
43
55
|
@media (max-width: ${d.MOBILE_SIZE_PX+"px"}) {
|
|
44
56
|
background: transparent;
|
|
45
57
|
border: none;
|
|
@@ -62,7 +74,7 @@
|
|
|
62
74
|
}
|
|
63
75
|
}
|
|
64
76
|
}
|
|
65
|
-
|
|
77
|
+
`,$=l.newStyled.div`
|
|
66
78
|
width: 100%;
|
|
67
79
|
height: 11.625rem;
|
|
68
80
|
border-radius: 0.75rem;
|
|
@@ -73,7 +85,7 @@
|
|
|
73
85
|
height: 5rem;
|
|
74
86
|
border-radius: 999px;
|
|
75
87
|
}
|
|
76
|
-
|
|
88
|
+
`,I=l.newStyled.div`
|
|
77
89
|
display: flex;
|
|
78
90
|
padding: 0 0.5rem 0 0;
|
|
79
91
|
align-items: center;
|
|
@@ -113,12 +125,12 @@
|
|
|
113
125
|
white-space: nowrap;
|
|
114
126
|
}
|
|
115
127
|
}
|
|
116
|
-
`,
|
|
128
|
+
`,C=l.newStyled.div`
|
|
117
129
|
width: 7rem;
|
|
118
130
|
height: 3rem;
|
|
119
131
|
border-radius: 999px;
|
|
120
132
|
background: ${m.linearGradientAnimation("-90deg")};
|
|
121
|
-
`,
|
|
133
|
+
`,E=s.forwardRef(({},i)=>r.jsx(C,{})),N=s.forwardRef(({text:i,icon:n,onSelectCard:t=()=>{}},p)=>r.jsxs(I,{onClick:t,children:[r.jsx(v,{icon:` ${n}`,className:"wrapper__icon"}),r.jsx("div",{className:"wrapper__text",children:i})]})),W=s.forwardRef(({image:i,imageComponent:n,title:t,onSelectCard:p=()=>{}},f)=>{const{theme:c}=j.useTheme();return r.jsxs(k,{theme:c,onClick:p,children:[m.isDefined(n)?n:r.jsx("img",{src:i,className:"wrapper__image"}),r.jsx("div",{className:"wrapper__content",children:r.jsx("div",{className:"wrapper__title",children:t})})]})}),G=s.forwardRef(({},i)=>r.jsx($,{})),R=l.newStyled.div`
|
|
122
134
|
display: flex;
|
|
123
135
|
flex-direction: column;
|
|
124
136
|
align-items: center;
|
|
@@ -195,4 +207,4 @@
|
|
|
195
207
|
gap: 1rem;
|
|
196
208
|
}
|
|
197
209
|
}
|
|
198
|
-
`,
|
|
210
|
+
`,S=s.forwardRef(({title:i,subtitle:n,tags:t=[],limitTags:p=7,limitTagsForMobile:f=2,limit:c=3,limitForMobile:b=3,items:a=[],onSelectTag:w=()=>{},onSelectCard:h=()=>{}},y)=>{var g,u;const _=e=>{w==null||w(e==null?void 0:e.uuid)},x=e=>{h==null||h(e==null?void 0:e.uuid)};return r.jsxs(R,{ref:y,limitTags:p,limitTagsForMobile:f,limitCards:c,limitCardsForMobile:b,children:[r.jsxs("div",{className:"wrapper__heading",children:[i&&r.jsx("div",{className:"wrapper__title",children:i}),n&&r.jsx("div",{className:"wrapper__subtitle",children:n})]}),r.jsx("div",{className:"wrapper__cards",children:a&&(a==null?void 0:a.length)>0?a==null?void 0:a.map((e,o)=>r.jsx(W,{image:e==null?void 0:e.image,imageComponent:e==null?void 0:e.imageComponent,title:e==null?void 0:e.title,onSelectCard:()=>x==null?void 0:x(e==null?void 0:e.uuid)},`general-with-tags-card__${o+1}`)):(g=Array.from("123"))==null?void 0:g.map((e,o)=>r.jsx(G,{},`general-with-tags-card-skeleton__${o+1}`))}),r.jsx("div",{className:"wrapper__tags",children:t&&(t==null?void 0:t.length)>0?t==null?void 0:t.map((e,o)=>r.jsx(N,{icon:e==null?void 0:e.icon,text:e==null?void 0:e.text,onSelectCard:()=>_==null?void 0:_(e)},`general-with-tags-card-tag__${o+1}`)):(u=Array.from("123"))==null?void 0:u.map((e,o)=>r.jsx(E,{},`general-with-tags-card-tag-skeleton__${o+1}`))})]})});module.exports=S;
|
|
@@ -2,10 +2,10 @@ import { jsx as i, jsxs as m } from "react/jsx-runtime";
|
|
|
2
2
|
import { forwardRef as l } from "react";
|
|
3
3
|
import { n as p } from "./emotion-styled.browser.esm-CjCaF13H.js";
|
|
4
4
|
import { M as d } from "./consts-C1uHV4xc.js";
|
|
5
|
-
import { t as
|
|
6
|
-
import
|
|
7
|
-
import { u as
|
|
8
|
-
const
|
|
5
|
+
import { t as k, m as b, l as $ } from "./utils-DtRLzzTZ.js";
|
|
6
|
+
import C from "./Icon.js";
|
|
7
|
+
import { u as N } from "./emotion-element-f0de968e.browser.esm-CkCiQliQ.js";
|
|
8
|
+
const W = p.div`
|
|
9
9
|
display: flex;
|
|
10
10
|
flex-direction: column;
|
|
11
11
|
align-items: flex-start;
|
|
@@ -44,9 +44,21 @@ const N = p.div`
|
|
|
44
44
|
font-style: normal;
|
|
45
45
|
font-weight: 500;
|
|
46
46
|
line-height: 1.5rem;
|
|
47
|
-
${
|
|
47
|
+
${k(2)}
|
|
48
|
+
transition: var(--transition, all 0.2s ease);
|
|
48
49
|
}
|
|
49
50
|
}
|
|
51
|
+
|
|
52
|
+
&:hover {
|
|
53
|
+
cursor: pointer;
|
|
54
|
+
|
|
55
|
+
& .wrapper__content {
|
|
56
|
+
& .wrapper__title {
|
|
57
|
+
color: var(--primary-500, #e87722);
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
|
|
50
62
|
@media (max-width: ${d + "px"}) {
|
|
51
63
|
background: transparent;
|
|
52
64
|
border: none;
|
|
@@ -69,7 +81,7 @@ const N = p.div`
|
|
|
69
81
|
}
|
|
70
82
|
}
|
|
71
83
|
}
|
|
72
|
-
`,
|
|
84
|
+
`, j = p.div`
|
|
73
85
|
width: 100%;
|
|
74
86
|
height: 11.625rem;
|
|
75
87
|
border-radius: 0.75rem;
|
|
@@ -80,7 +92,7 @@ const N = p.div`
|
|
|
80
92
|
height: 5rem;
|
|
81
93
|
border-radius: 999px;
|
|
82
94
|
}
|
|
83
|
-
`,
|
|
95
|
+
`, G = p.div`
|
|
84
96
|
display: flex;
|
|
85
97
|
padding: 0 0.5rem 0 0;
|
|
86
98
|
align-items: center;
|
|
@@ -120,27 +132,27 @@ const N = p.div`
|
|
|
120
132
|
white-space: nowrap;
|
|
121
133
|
}
|
|
122
134
|
}
|
|
123
|
-
`,
|
|
135
|
+
`, z = p.div`
|
|
124
136
|
width: 7rem;
|
|
125
137
|
height: 3rem;
|
|
126
138
|
border-radius: 999px;
|
|
127
139
|
background: ${b("-90deg")};
|
|
128
|
-
`,
|
|
140
|
+
`, T = l(({}, r) => /* @__PURE__ */ i(z, {})), I = l(
|
|
129
141
|
({ text: r, icon: a, onSelectCard: t = () => {
|
|
130
|
-
} }, s) => /* @__PURE__ */ m(
|
|
131
|
-
/* @__PURE__ */ i(
|
|
142
|
+
} }, s) => /* @__PURE__ */ m(G, { onClick: t, children: [
|
|
143
|
+
/* @__PURE__ */ i(C, { icon: ` ${a}`, className: "wrapper__icon" }),
|
|
132
144
|
/* @__PURE__ */ i("div", { className: "wrapper__text", children: r })
|
|
133
145
|
] })
|
|
134
|
-
),
|
|
146
|
+
), M = l(
|
|
135
147
|
({ image: r, imageComponent: a, title: t, onSelectCard: s = () => {
|
|
136
|
-
} },
|
|
137
|
-
const { theme: c } =
|
|
138
|
-
return /* @__PURE__ */ m(
|
|
139
|
-
|
|
148
|
+
} }, g) => {
|
|
149
|
+
const { theme: c } = N();
|
|
150
|
+
return /* @__PURE__ */ m(W, { theme: c, onClick: s, children: [
|
|
151
|
+
$(a) ? a : /* @__PURE__ */ i("img", { src: r, className: "wrapper__image" }),
|
|
140
152
|
/* @__PURE__ */ i("div", { className: "wrapper__content", children: /* @__PURE__ */ i("div", { className: "wrapper__title", children: t }) })
|
|
141
153
|
] });
|
|
142
154
|
}
|
|
143
|
-
),
|
|
155
|
+
), A = l(({}, r) => /* @__PURE__ */ i(j, {})), E = p.div`
|
|
144
156
|
display: flex;
|
|
145
157
|
flex-direction: column;
|
|
146
158
|
align-items: center;
|
|
@@ -223,26 +235,27 @@ const N = p.div`
|
|
|
223
235
|
subtitle: a,
|
|
224
236
|
tags: t = [],
|
|
225
237
|
limitTags: s = 7,
|
|
226
|
-
limitTagsForMobile:
|
|
238
|
+
limitTagsForMobile: g = 2,
|
|
227
239
|
limit: c = 3,
|
|
228
240
|
limitForMobile: v = 3,
|
|
229
241
|
items: n = [],
|
|
230
242
|
onSelectTag: h = () => {
|
|
231
243
|
},
|
|
232
|
-
onSelectCard:
|
|
244
|
+
onSelectCard: w = () => {
|
|
233
245
|
}
|
|
234
|
-
},
|
|
246
|
+
}, y) => {
|
|
235
247
|
var x, u;
|
|
236
|
-
const
|
|
248
|
+
const f = (e) => {
|
|
237
249
|
h == null || h(e == null ? void 0 : e.uuid);
|
|
238
|
-
},
|
|
239
|
-
|
|
250
|
+
}, _ = (e) => {
|
|
251
|
+
w == null || w(e == null ? void 0 : e.uuid);
|
|
240
252
|
};
|
|
241
253
|
return /* @__PURE__ */ m(
|
|
242
|
-
|
|
254
|
+
E,
|
|
243
255
|
{
|
|
256
|
+
ref: y,
|
|
244
257
|
limitTags: s,
|
|
245
|
-
limitTagsForMobile:
|
|
258
|
+
limitTagsForMobile: g,
|
|
246
259
|
limitCards: c,
|
|
247
260
|
limitCardsForMobile: v,
|
|
248
261
|
children: [
|
|
@@ -251,29 +264,29 @@ const N = p.div`
|
|
|
251
264
|
a && /* @__PURE__ */ i("div", { className: "wrapper__subtitle", children: a })
|
|
252
265
|
] }),
|
|
253
266
|
/* @__PURE__ */ i("div", { className: "wrapper__cards", children: n && (n == null ? void 0 : n.length) > 0 ? n == null ? void 0 : n.map((e, o) => /* @__PURE__ */ i(
|
|
254
|
-
|
|
267
|
+
M,
|
|
255
268
|
{
|
|
256
269
|
image: e == null ? void 0 : e.image,
|
|
257
270
|
imageComponent: e == null ? void 0 : e.imageComponent,
|
|
258
271
|
title: e == null ? void 0 : e.title,
|
|
259
|
-
onSelectCard: () =>
|
|
272
|
+
onSelectCard: () => _ == null ? void 0 : _(e == null ? void 0 : e.uuid)
|
|
260
273
|
},
|
|
261
274
|
`general-with-tags-card__${o + 1}`
|
|
262
275
|
)) : (x = Array.from("123")) == null ? void 0 : x.map((e, o) => /* @__PURE__ */ i(
|
|
263
|
-
|
|
276
|
+
A,
|
|
264
277
|
{},
|
|
265
278
|
`general-with-tags-card-skeleton__${o + 1}`
|
|
266
279
|
)) }),
|
|
267
280
|
/* @__PURE__ */ i("div", { className: "wrapper__tags", children: t && (t == null ? void 0 : t.length) > 0 ? t == null ? void 0 : t.map((e, o) => /* @__PURE__ */ i(
|
|
268
|
-
|
|
281
|
+
I,
|
|
269
282
|
{
|
|
270
283
|
icon: e == null ? void 0 : e.icon,
|
|
271
284
|
text: e == null ? void 0 : e.text,
|
|
272
|
-
onSelectCard: () =>
|
|
285
|
+
onSelectCard: () => f == null ? void 0 : f(e)
|
|
273
286
|
},
|
|
274
287
|
`general-with-tags-card-tag__${o + 1}`
|
|
275
288
|
)) : (u = Array.from("123")) == null ? void 0 : u.map((e, o) => /* @__PURE__ */ i(
|
|
276
|
-
|
|
289
|
+
T,
|
|
277
290
|
{},
|
|
278
291
|
`general-with-tags-card-tag-skeleton__${o + 1}`
|
|
279
292
|
)) })
|
|
@@ -3,10 +3,7 @@
|
|
|
3
3
|
flex-direction: column;
|
|
4
4
|
align-items: flex-start;
|
|
5
5
|
gap: 0.75rem;
|
|
6
|
-
|
|
7
|
-
&:hover {
|
|
8
|
-
cursor: pointer;
|
|
9
|
-
}
|
|
6
|
+
cursor: pointer;
|
|
10
7
|
|
|
11
8
|
& .wrapper__card {
|
|
12
9
|
width: 100%;
|
|
@@ -57,13 +54,20 @@
|
|
|
57
54
|
line-height: 1.5rem;
|
|
58
55
|
width: 100%;
|
|
59
56
|
${s.truncateTextInRows(2)}
|
|
57
|
+
transition: var(--transition, all 0.2s ease);
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
&:hover {
|
|
61
|
+
& .wrapper__text {
|
|
62
|
+
color: var(--primary-500, #f59e0b);
|
|
63
|
+
}
|
|
60
64
|
}
|
|
61
65
|
`,_=f.newStyled.div`
|
|
62
66
|
width: 100%;
|
|
63
67
|
height: 11.5rem;
|
|
64
68
|
border-radius: 0.75rem;
|
|
65
69
|
background: ${s.linearGradientAnimation("-90deg")};
|
|
66
|
-
`,h=d.forwardRef(({image:r,imageComponent:o,text:i,price:l,currency:p,onSelectCard:n=()=>{}},a)=>t.jsxs(w,{onClick:n,children:[t.jsxs("div",{className:"wrapper__card",children:[s.isDefined(o)?o:t.jsx("img",{src:r,className:"wrapper__image"}),t.jsx("div",{className:"wrapper__tag",children:`${s.formatPrice(l)} ${s.GetCurrencySymbol(p)}`})]}),t.jsx("div",{className:"wrapper__text",children:i})]})),c=d.forwardRef(({},r)=>t.jsx(_,{})),u=f.newStyled.div`
|
|
70
|
+
`,h=d.forwardRef(({image:r,imageComponent:o,text:i,price:l,currency:p,onSelectCard:n=()=>{}},a)=>t.jsxs(w,{ref:a,onClick:n,children:[t.jsxs("div",{className:"wrapper__card",children:[s.isDefined(o)?o:t.jsx("img",{src:r,className:"wrapper__image"}),t.jsx("div",{className:"wrapper__tag",children:`${s.formatPrice(l)} ${s.GetCurrencySymbol(p)}`})]}),t.jsx("div",{className:"wrapper__text",children:i})]})),c=d.forwardRef(({},r)=>t.jsx(_,{})),u=f.newStyled.div`
|
|
67
71
|
display: flex;
|
|
68
72
|
flex-direction: column;
|
|
69
73
|
align-items: center;
|
package/dist/GiftCardsSection.js
CHANGED
|
@@ -1,17 +1,14 @@
|
|
|
1
1
|
import { jsxs as l, jsx as i } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef as f } from "react";
|
|
3
|
-
import { t as
|
|
3
|
+
import { t as _, m as h, l as w, n as x, G as c } from "./utils-DtRLzzTZ.js";
|
|
4
4
|
import { n as g } from "./emotion-styled.browser.esm-CjCaF13H.js";
|
|
5
5
|
import { M as u } from "./consts-C1uHV4xc.js";
|
|
6
|
-
const
|
|
6
|
+
const v = g.div`
|
|
7
7
|
display: flex;
|
|
8
8
|
flex-direction: column;
|
|
9
9
|
align-items: flex-start;
|
|
10
10
|
gap: 0.75rem;
|
|
11
|
-
|
|
12
|
-
&:hover {
|
|
13
|
-
cursor: pointer;
|
|
14
|
-
}
|
|
11
|
+
cursor: pointer;
|
|
15
12
|
|
|
16
13
|
& .wrapper__card {
|
|
17
14
|
width: 100%;
|
|
@@ -61,25 +58,32 @@ const y = g.div`
|
|
|
61
58
|
font-weight: 500;
|
|
62
59
|
line-height: 1.5rem;
|
|
63
60
|
width: 100%;
|
|
64
|
-
${
|
|
61
|
+
${_(2)}
|
|
62
|
+
transition: var(--transition, all 0.2s ease);
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
&:hover {
|
|
66
|
+
& .wrapper__text {
|
|
67
|
+
color: var(--primary-500, #f59e0b);
|
|
68
|
+
}
|
|
65
69
|
}
|
|
66
|
-
`,
|
|
70
|
+
`, y = g.div`
|
|
67
71
|
width: 100%;
|
|
68
72
|
height: 11.5rem;
|
|
69
73
|
border-radius: 0.75rem;
|
|
70
|
-
background: ${
|
|
74
|
+
background: ${h("-90deg")};
|
|
71
75
|
`, b = f(
|
|
72
|
-
({ image: r, imageComponent:
|
|
73
|
-
} }, n) => /* @__PURE__ */ l(
|
|
76
|
+
({ image: r, imageComponent: a, text: t, price: s, currency: p, onSelectCard: o = () => {
|
|
77
|
+
} }, n) => /* @__PURE__ */ l(v, { ref: n, onClick: o, children: [
|
|
74
78
|
/* @__PURE__ */ l("div", { className: "wrapper__card", children: [
|
|
75
|
-
w(
|
|
79
|
+
w(a) ? a : /* @__PURE__ */ i("img", { src: r, className: "wrapper__image" }),
|
|
76
80
|
/* @__PURE__ */ i("div", { className: "wrapper__tag", children: `${x(
|
|
77
81
|
s
|
|
78
82
|
)} ${c(p)}` })
|
|
79
83
|
] }),
|
|
80
84
|
/* @__PURE__ */ i("div", { className: "wrapper__text", children: t })
|
|
81
85
|
] })
|
|
82
|
-
), $ = f(({}, r) => /* @__PURE__ */ i(
|
|
86
|
+
), $ = f(({}, r) => /* @__PURE__ */ i(y, {})), N = g.div`
|
|
83
87
|
display: flex;
|
|
84
88
|
flex-direction: column;
|
|
85
89
|
align-items: center;
|
|
@@ -128,16 +132,16 @@ const y = g.div`
|
|
|
128
132
|
`, M = f(
|
|
129
133
|
({
|
|
130
134
|
title: r,
|
|
131
|
-
subtitle:
|
|
135
|
+
subtitle: a,
|
|
132
136
|
items: t,
|
|
133
137
|
limit: s = 4,
|
|
134
138
|
limitForMobile: p = 1,
|
|
135
|
-
onSelectCard:
|
|
139
|
+
onSelectCard: o = () => {
|
|
136
140
|
}
|
|
137
141
|
}) => {
|
|
138
142
|
var d;
|
|
139
143
|
const n = (e) => {
|
|
140
|
-
|
|
144
|
+
o == null || o(e == null ? void 0 : e.uuid);
|
|
141
145
|
};
|
|
142
146
|
return /* @__PURE__ */ l(
|
|
143
147
|
N,
|
|
@@ -147,7 +151,7 @@ const y = g.div`
|
|
|
147
151
|
children: [
|
|
148
152
|
/* @__PURE__ */ l("div", { className: "wrapper__heading", children: [
|
|
149
153
|
r && /* @__PURE__ */ i("div", { className: "wrapper__title", children: r }),
|
|
150
|
-
|
|
154
|
+
a && /* @__PURE__ */ i("div", { className: "wrapper__subtitle", children: a })
|
|
151
155
|
] }),
|
|
152
156
|
/* @__PURE__ */ i("div", { className: "wrapper__cards", children: t && (t == null ? void 0 : t.length) > 0 ? t == null ? void 0 : t.map((e, m) => /* @__PURE__ */ i(
|
|
153
157
|
b,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const r=require("react/jsx-runtime"),l=require("react"),o=require("./emotion-styled.browser.esm-Cle7tAM9.cjs"),d=require("./consts-CtNoHdBj.cjs"),f=require("./index-
|
|
1
|
+
"use strict";const r=require("react/jsx-runtime"),l=require("react"),o=require("./emotion-styled.browser.esm-Cle7tAM9.cjs"),d=require("./consts-CtNoHdBj.cjs"),f=require("./index-Dn5tPLgP.cjs"),v=o.newStyled.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex-direction: column;
|
|
4
4
|
padding: 1.25rem;
|
|
@@ -2,7 +2,7 @@ import { jsxs as a, jsx as n } from "react/jsx-runtime";
|
|
|
2
2
|
import { forwardRef as u, Fragment as v } from "react";
|
|
3
3
|
import { n as t } from "./emotion-styled.browser.esm-CjCaF13H.js";
|
|
4
4
|
import { M as d } from "./consts-C1uHV4xc.js";
|
|
5
|
-
import { S as w } from "./index-
|
|
5
|
+
import { S as w } from "./index-5cttM4t7.js";
|
|
6
6
|
const S = t.div`
|
|
7
7
|
display: flex;
|
|
8
8
|
flex-direction: column;
|