@lanaco/lnc-react-ui 4.0.183 → 4.0.185
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/BlogCardsSponsoredSection.cjs +5 -3
- package/dist/BlogCardsSponsoredSection.js +68 -64
- package/dist/BlogCategoryCardsSection.cjs +1 -1
- package/dist/BlogCategoryCardsSection.js +1 -1
- package/dist/BlogListSection.cjs +8 -6
- package/dist/BlogListSection.js +122 -114
- package/dist/BlogProductCardsSection.cjs +1 -1
- package/dist/BlogProductCardsSection.js +1 -1
- package/dist/BlogShopCardsSection.cjs +1 -1
- package/dist/BlogShopCardsSection.js +1 -1
- package/dist/BlogSingleSection.cjs +1 -1
- package/dist/BlogSingleSection.js +1 -1
- package/dist/BlogsSectionDetailed.cjs +5 -3
- package/dist/BlogsSectionDetailed.js +53 -49
- package/dist/BlogsSectionLarge.cjs +2 -2
- package/dist/BlogsSectionLarge.js +2 -2
- package/dist/BlogsSectionSimple.cjs +9 -7
- package/dist/BlogsSectionSimple.js +53 -47
- package/dist/BlogsSectionSimpleCentered.cjs +7 -5
- package/dist/BlogsSectionSimpleCentered.js +31 -26
- package/dist/BlogsSectionWithFilters.cjs +9 -7
- package/dist/BlogsSectionWithFilters.js +47 -42
- package/dist/BrandHitsSection.cjs +9 -7
- package/dist/BrandHitsSection.js +40 -35
- package/dist/{CategorySimpleCard-BNYjZQTH.cjs → CategorySimpleCard-D5N8cx0Z.cjs} +4 -3
- package/dist/{CategorySimpleCard-BA0S7TaN.js → CategorySimpleCard-DRQuoxXu.js} +17 -15
- package/dist/CheckBoxInput.cjs +27 -27
- package/dist/CheckBoxInput.js +61 -98
- package/dist/ColorInput.cjs +26 -26
- package/dist/ColorInput.js +127 -162
- package/dist/DetailedProductsInfinitiveSection.cjs +2 -2
- package/dist/DetailedProductsInfinitiveSection.js +6 -5
- package/dist/DetailedProductsSection.cjs +2 -2
- package/dist/DetailedProductsSection.js +12 -10
- package/dist/FieldOfInterestsMasonrySection.cjs +5 -3
- package/dist/FieldOfInterestsMasonrySection.js +90 -85
- package/dist/FieldOfInterestsWithAvatarsCardsSection.cjs +4 -4
- package/dist/FieldOfInterestsWithAvatarsCardsSection.js +49 -46
- package/dist/FieldOfInterestsWithTagsCardsSection.cjs +8 -6
- package/dist/FieldOfInterestsWithTagsCardsSection.js +44 -40
- package/dist/GeneralWithTagsCardsSection.cjs +12 -8
- package/dist/GeneralWithTagsCardsSection.js +50 -44
- package/dist/GiftCardsSection.cjs +7 -5
- package/dist/GiftCardsSection.js +46 -40
- package/dist/MasonryGeneralCardsSection.cjs +6 -5
- package/dist/MasonryGeneralCardsSection.js +26 -23
- package/dist/Modal.cjs +14 -13
- package/dist/Modal.js +88 -86
- package/dist/OverlayGeneralCardsSection.cjs +7 -5
- package/dist/OverlayGeneralCardsSection.js +30 -35
- package/dist/ProductsWithBannerSection.cjs +8 -6
- package/dist/ProductsWithBannerSection.js +71 -77
- package/dist/QuattroCardsSection.cjs +8 -6
- package/dist/QuattroCardsSection.js +31 -28
- package/dist/ReviewsSection.cjs +11 -9
- package/dist/ReviewsSection.js +38 -36
- package/dist/SalesCampaignsSection.cjs +22 -19
- package/dist/SalesCampaignsSection.js +299 -300
- package/dist/ShopCardsSection.cjs +1 -1
- package/dist/ShopCardsSection.js +1 -1
- package/dist/SimpleCategoriesSection.cjs +2 -2
- package/dist/SimpleCategoriesSection.js +7 -3
- package/dist/SimpleProductsSection.cjs +5 -5
- package/dist/SimpleProductsSection.js +62 -72
- package/dist/UrgentSaleProductsSection.cjs +6 -6
- package/dist/UrgentSaleProductsSection.js +9 -7
- package/dist/{index-DoKMLSVY.cjs → index-0p_3g3pT.cjs} +4 -2
- package/dist/{index-Bhfq_YpE.js → index-BipuzfLW.js} +28 -25
- package/dist/{index-CaAhRJ2-.cjs → index-Bmr3IeZ_.cjs} +12 -11
- package/dist/{index-DWLKvVyZ.js → index-C8QkdNHi.js} +27 -23
- package/dist/{index-B8I1mHMA.js → index-CA59z2ge.js} +29 -26
- package/dist/{index-BnYqZk-h.cjs → index-DHV9awrE.cjs} +4 -2
- package/dist/{index-DxZ71UZ1.js → index-DZ8515cZ.js} +144 -137
- package/dist/{index-D55MR8tU.cjs → index-MiN854X_.cjs} +6 -4
- package/package.json +1 -1
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { jsxs as r, jsx as t, Fragment as B } from "react/jsx-runtime";
|
|
2
|
-
import { forwardRef as R, useRef as L, memo as A, useMemo as
|
|
2
|
+
import { forwardRef as R, useRef as L, memo as A, useMemo as $ } from "react";
|
|
3
3
|
import { s as N } from "./emotion-styled.browser.esm-BNN1dTl3.js";
|
|
4
4
|
import { M as T } from "./consts-BuFChS64.js";
|
|
5
|
-
import { u as
|
|
6
|
-
import { o as
|
|
5
|
+
import { u as z } from "./useDetectMobile-Bkvj0VMa.js";
|
|
6
|
+
import { o as D, s as M, q as j, v as k, k as y } from "./utils-Dc5zIpaz.js";
|
|
7
7
|
import { B as I, R as P } from "./style-C7FUSHmS.js";
|
|
8
8
|
import U from "./Button.js";
|
|
9
9
|
import { P as W } from "./index-C_NnINik.js";
|
|
@@ -16,7 +16,9 @@ const _ = N.div`
|
|
|
16
16
|
@media (max-width: ${T + "px"}) {
|
|
17
17
|
grid-template-columns: repeat(1, 1fr);
|
|
18
18
|
}
|
|
19
|
-
`, q = N.
|
|
19
|
+
`, q = N.a`
|
|
20
|
+
text-decoration: none;
|
|
21
|
+
color: var(--gray-950);
|
|
20
22
|
display: flex;
|
|
21
23
|
flex-direction: column;
|
|
22
24
|
width: 100%;
|
|
@@ -73,7 +75,7 @@ const _ = N.div`
|
|
|
73
75
|
font-size: 0.875rem;
|
|
74
76
|
flex: 1;
|
|
75
77
|
color: var(--gray-700, #4e555f);
|
|
76
|
-
${
|
|
78
|
+
${D(2)}
|
|
77
79
|
}
|
|
78
80
|
|
|
79
81
|
& .info-wr {
|
|
@@ -102,30 +104,32 @@ const _ = N.div`
|
|
|
102
104
|
align-items: center;
|
|
103
105
|
gap: 1rem;
|
|
104
106
|
}
|
|
105
|
-
`, G = R((s,
|
|
107
|
+
`, G = R((s, S) => {
|
|
106
108
|
const {
|
|
107
|
-
title:
|
|
108
|
-
imageUrl:
|
|
109
|
-
text:
|
|
109
|
+
title: p,
|
|
110
|
+
imageUrl: b,
|
|
111
|
+
text: w,
|
|
110
112
|
numberOfLikes: a,
|
|
111
113
|
numberOfComments: f,
|
|
112
114
|
timeToRead: m,
|
|
113
115
|
publishedAt: c,
|
|
114
|
-
tags:
|
|
116
|
+
tags: l,
|
|
115
117
|
onCardClick: u,
|
|
116
118
|
timeToReadText: d = "{0} min read",
|
|
117
|
-
metadata:
|
|
118
|
-
|
|
119
|
+
metadata: o,
|
|
120
|
+
titleSlug: h
|
|
121
|
+
} = s, g = L();
|
|
119
122
|
return /* @__PURE__ */ r(
|
|
120
123
|
q,
|
|
121
124
|
{
|
|
122
|
-
ref:
|
|
125
|
+
ref: g,
|
|
123
126
|
className: "blog-card",
|
|
124
|
-
"data-accessor":
|
|
125
|
-
name:
|
|
126
|
-
onClick: (i) => u(i,
|
|
127
|
+
"data-accessor": o == null ? void 0 : o.accessor,
|
|
128
|
+
name: o == null ? void 0 : o.name,
|
|
129
|
+
onClick: (i) => u(i, g),
|
|
130
|
+
href: `/blog/${h}`,
|
|
127
131
|
children: [
|
|
128
|
-
/* @__PURE__ */ t(W, { src:
|
|
132
|
+
/* @__PURE__ */ t(W, { src: b }),
|
|
129
133
|
/* @__PURE__ */ r("div", { className: "blog-card-content", children: [
|
|
130
134
|
/* @__PURE__ */ r(F, { children: [
|
|
131
135
|
/* @__PURE__ */ r("div", { className: "info-wr", children: [
|
|
@@ -135,45 +139,45 @@ const _ = N.div`
|
|
|
135
139
|
" "
|
|
136
140
|
] }),
|
|
137
141
|
/* @__PURE__ */ t("span", { className: "small-dot", children: "●" }),
|
|
138
|
-
m && d ? `${
|
|
142
|
+
m && d ? `${M(d, m)}` : "N/A"
|
|
139
143
|
] }),
|
|
140
144
|
/* @__PURE__ */ r("div", { className: "info-wr-2", children: [
|
|
141
145
|
/* @__PURE__ */ r("span", { className: "info-wr-1", children: [
|
|
142
146
|
/* @__PURE__ */ t("i", { className: "mng mng-lnc-thumbs-up--filled" }),
|
|
143
|
-
/* @__PURE__ */ t("span", { children:
|
|
147
|
+
/* @__PURE__ */ t("span", { children: k(a) })
|
|
144
148
|
] }),
|
|
145
149
|
/* @__PURE__ */ r("span", { className: "info-wr-1", children: [
|
|
146
150
|
/* @__PURE__ */ t("i", { className: "mng mng-lnc-messages-filled" }),
|
|
147
|
-
/* @__PURE__ */ t("span", { children:
|
|
151
|
+
/* @__PURE__ */ t("span", { children: k(f) })
|
|
148
152
|
] })
|
|
149
153
|
] })
|
|
150
154
|
] }),
|
|
151
|
-
/* @__PURE__ */ t("div", { className: "text-wr-title", children:
|
|
152
|
-
/* @__PURE__ */ t("div", { className: "text-wr", children:
|
|
155
|
+
/* @__PURE__ */ t("div", { className: "text-wr-title", children: p }),
|
|
156
|
+
/* @__PURE__ */ t("div", { className: "text-wr", children: w })
|
|
153
157
|
] }),
|
|
154
|
-
|
|
158
|
+
l && /* @__PURE__ */ t("div", { className: "tags-wr", children: l == null ? void 0 : l.map((i, e) => /* @__PURE__ */ t(I, { color: i == null ? void 0 : i.color, children: i == null ? void 0 : i.name }, e)) })
|
|
155
159
|
] })
|
|
156
160
|
]
|
|
157
161
|
}
|
|
158
162
|
);
|
|
159
|
-
}),
|
|
163
|
+
}), C = A(G), te = R((s, S) => {
|
|
160
164
|
const {
|
|
161
|
-
icon:
|
|
162
|
-
title:
|
|
163
|
-
onButtonAction:
|
|
165
|
+
icon: p,
|
|
166
|
+
title: b,
|
|
167
|
+
onButtonAction: w,
|
|
164
168
|
items: a,
|
|
165
169
|
buttonText: f,
|
|
166
170
|
timeToReadText: m,
|
|
167
171
|
limit: c = 3,
|
|
168
|
-
onSelectCard:
|
|
172
|
+
onSelectCard: l = () => {
|
|
169
173
|
},
|
|
170
174
|
isLoading: u = !1,
|
|
171
175
|
buttonLink: d,
|
|
172
|
-
getImage:
|
|
176
|
+
getImage: o = () => {
|
|
173
177
|
},
|
|
174
|
-
componentName:
|
|
175
|
-
} = s,
|
|
176
|
-
|
|
178
|
+
componentName: h
|
|
179
|
+
} = s, g = z(), i = $(() => /* @__PURE__ */ t(B, { children: g === !0 ? a == null ? void 0 : a.map((e, n) => /* @__PURE__ */ t(
|
|
180
|
+
C,
|
|
177
181
|
{
|
|
178
182
|
title: e == null ? void 0 : e.title,
|
|
179
183
|
text: e == null ? void 0 : e.description,
|
|
@@ -184,16 +188,16 @@ const _ = N.div`
|
|
|
184
188
|
timeToRead: e == null ? void 0 : e.timeToRead,
|
|
185
189
|
timeToReadText: m,
|
|
186
190
|
tags: e == null ? void 0 : e.tags,
|
|
187
|
-
onCardClick: (O, v) =>
|
|
188
|
-
imageUrl:
|
|
189
|
-
metadata: { name:
|
|
191
|
+
onCardClick: (O, v) => l(e == null ? void 0 : e.titleSlug, v),
|
|
192
|
+
imageUrl: o(e == null ? void 0 : e.imageUrl, e == null ? void 0 : e.uuid) || null,
|
|
193
|
+
metadata: { name: h, accessor: e == null ? void 0 : e.accessor }
|
|
190
194
|
},
|
|
191
|
-
|
|
192
|
-
)) : a == null ? void 0 : a.slice(0, c).map((e,
|
|
193
|
-
|
|
195
|
+
n
|
|
196
|
+
)) : a == null ? void 0 : a.slice(0, c).map((e, n) => /* @__PURE__ */ t(
|
|
197
|
+
C,
|
|
194
198
|
{
|
|
195
199
|
title: e == null ? void 0 : e.title,
|
|
196
|
-
imageUrl:
|
|
200
|
+
imageUrl: o(e == null ? void 0 : e.imageUrl, e == null ? void 0 : e.uuid) || null,
|
|
197
201
|
text: e == null ? void 0 : e.description,
|
|
198
202
|
titleSlug: e == null ? void 0 : e.titleSlug,
|
|
199
203
|
tags: e == null ? void 0 : e.tags,
|
|
@@ -202,16 +206,16 @@ const _ = N.div`
|
|
|
202
206
|
publishedAt: e == null ? void 0 : e.publishedAt,
|
|
203
207
|
timeToRead: e == null ? void 0 : e.timeToRead,
|
|
204
208
|
timeToReadText: m,
|
|
205
|
-
onCardClick: (O, v) =>
|
|
206
|
-
metadata: { name:
|
|
209
|
+
onCardClick: (O, v) => l(e == null ? void 0 : e.titleSlug, v),
|
|
210
|
+
metadata: { name: h, accessor: e == null ? void 0 : e.accessor }
|
|
207
211
|
},
|
|
208
|
-
|
|
209
|
-
)) }), [a,
|
|
210
|
-
return /* @__PURE__ */ r(P, { ref:
|
|
212
|
+
n
|
|
213
|
+
)) }), [a, g, c, l]);
|
|
214
|
+
return /* @__PURE__ */ r(P, { ref: S, children: [
|
|
211
215
|
/* @__PURE__ */ r("div", { className: "regular-title", children: [
|
|
212
216
|
/* @__PURE__ */ r("div", { className: "regular-title-text", children: [
|
|
213
|
-
y(
|
|
214
|
-
/* @__PURE__ */ t("span", { children:
|
|
217
|
+
y(p) && /* @__PURE__ */ t("i", { className: p }),
|
|
218
|
+
/* @__PURE__ */ t("span", { children: b })
|
|
215
219
|
] }),
|
|
216
220
|
y(f) && y(d) && !u && /* @__PURE__ */ t(
|
|
217
221
|
U,
|
|
@@ -220,8 +224,8 @@ const _ = N.div`
|
|
|
220
224
|
btnType: "tinted",
|
|
221
225
|
color: "neutral",
|
|
222
226
|
onClick: (e) => {
|
|
223
|
-
var
|
|
224
|
-
(
|
|
227
|
+
var n;
|
|
228
|
+
(n = e == null ? void 0 : e.target) == null || n.blur(), w(d);
|
|
225
229
|
},
|
|
226
230
|
borderRadius: "curved",
|
|
227
231
|
className: "button-link",
|
|
@@ -234,7 +238,7 @@ const _ = N.div`
|
|
|
234
238
|
{
|
|
235
239
|
isLoading: u,
|
|
236
240
|
keyPrefix: "blogs-detailed-skeleton",
|
|
237
|
-
children: /* @__PURE__ */ t(_, { limit: c, children:
|
|
241
|
+
children: /* @__PURE__ */ t(_, { limit: c, children: i })
|
|
238
242
|
}
|
|
239
243
|
)
|
|
240
244
|
] });
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const t=require("react/jsx-runtime"),n=require("react"),S=require("./emotion-styled.browser.esm-BtEseadx.cjs"),b=require("./consts-goSZX3xP.cjs"),L=require("./useDetectMobile-zkbzoOGV.cjs"),k=require("./index-
|
|
1
|
+
"use strict";const t=require("react/jsx-runtime"),n=require("react"),S=require("./emotion-styled.browser.esm-BtEseadx.cjs"),b=require("./consts-goSZX3xP.cjs"),L=require("./useDetectMobile-zkbzoOGV.cjs"),k=require("./index-MiN854X_.cjs"),d=require("./style-BAcV7F53.cjs"),C=S.styled.div`
|
|
2
2
|
display: grid;
|
|
3
3
|
grid-template-columns: ${i=>`repeat(${i.limit}, minmax(0, 1fr))`};
|
|
4
4
|
gap: 1.25rem;
|
|
@@ -21,4 +21,4 @@
|
|
|
21
21
|
box-shadow: none;
|
|
22
22
|
}
|
|
23
23
|
}
|
|
24
|
-
`,B=({keyPrefix:i})=>t.jsxs(q,{children:[t.jsx(d.SkeletonLinePlaceholder,{height:"11.25rem",borderRadius:"0.75rem"},`${i}-1`),t.jsx(d.SkeletonLinePlaceholder,{height:"11.25rem",borderRadius:"0.75rem"},`${i}-2`)]}),M=({keyPrefix:i,isLoading:s=!1,fallbackComponent:r=t.jsx(t.Fragment,{}),children:o})=>t.jsx(n.Suspense,{fallbackComponent:r,children:s===!0?t.jsx(B,{keyPrefix:i}):o}),p=n.memo(k.BlogCardLarge),w=n.forwardRef((i,s)=>{const{items:r,onSelectCard:o=()=>{},limit:l=2,isLoading:h=!1,getImage:u=()=>{},componentName:m}=i,g=L.useDetectMobile(),f=n.useMemo(()=>t.jsx(t.Fragment,{children:g===!0?r==null?void 0:r.map((e,a)=>t.jsx(p,{title:e==null?void 0:e.title,imageUrl:u(e==null?void 0:e.imageUrl,e==null?void 0:e.uuid)||null,text:e==null?void 0:e.description,titleSlug:e==null?void 0:e.titleSlug,buttonText:e==null?void 0:e.buttonText,onCardClick:(j,c)=>o(e==null?void 0:e.titleSlug,c),metadata:{name:m,accessor:e==null?void 0:e.accessor}},a)):r==null?void 0:r.slice(0,l).map((e,a)=>t.jsx(p,{title:e==null?void 0:e.title,imageUrl:u(e==null?void 0:e.imageUrl,e==null?void 0:e.uuid)||null,text:e==null?void 0:e.description,titleSlug:e==null?void 0:e.titleSlug,buttonText:e==null?void 0:e.buttonText,onCardClick:(j,c)=>o(e==null?void 0:e.titleSlug,c),metadata:{name:m,accessor:e==null?void 0:e.accessor}},a))}),[r,g,l
|
|
24
|
+
`,B=({keyPrefix:i})=>t.jsxs(q,{children:[t.jsx(d.SkeletonLinePlaceholder,{height:"11.25rem",borderRadius:"0.75rem"},`${i}-1`),t.jsx(d.SkeletonLinePlaceholder,{height:"11.25rem",borderRadius:"0.75rem"},`${i}-2`)]}),M=({keyPrefix:i,isLoading:s=!1,fallbackComponent:r=t.jsx(t.Fragment,{}),children:o})=>t.jsx(n.Suspense,{fallbackComponent:r,children:s===!0?t.jsx(B,{keyPrefix:i}):o}),p=n.memo(k.BlogCardLarge),w=n.forwardRef((i,s)=>{const{items:r,onSelectCard:o=()=>{},limit:l=2,isLoading:h=!1,getImage:u=()=>{},componentName:m}=i,g=L.useDetectMobile(),f=n.useMemo(()=>t.jsx(t.Fragment,{children:g===!0?r==null?void 0:r.map((e,a)=>t.jsx(p,{title:e==null?void 0:e.title,imageUrl:u(e==null?void 0:e.imageUrl,e==null?void 0:e.uuid)||null,text:e==null?void 0:e.description,titleSlug:e==null?void 0:e.titleSlug,buttonText:e==null?void 0:e.buttonText,onCardClick:(j,c)=>o(e==null?void 0:e.titleSlug,c),metadata:{name:m,accessor:e==null?void 0:e.accessor}},a)):r==null?void 0:r.slice(0,l).map((e,a)=>t.jsx(p,{title:e==null?void 0:e.title,imageUrl:u(e==null?void 0:e.imageUrl,e==null?void 0:e.uuid)||null,text:e==null?void 0:e.description,titleSlug:e==null?void 0:e.titleSlug,buttonText:e==null?void 0:e.buttonText,onCardClick:(j,c)=>o(e==null?void 0:e.titleSlug,c),metadata:{name:m,accessor:e==null?void 0:e.accessor}},a))}),[r,g,l]);return t.jsx(M,{isLoading:h,keyPrefix:"blogs-large-skeleton",children:t.jsx(C,{ref:s,limit:l,children:f})})});module.exports=w;
|
|
@@ -3,7 +3,7 @@ import { Suspense as B, memo as L, forwardRef as M, useMemo as $ } from "react";
|
|
|
3
3
|
import { s as f } from "./emotion-styled.browser.esm-BNN1dTl3.js";
|
|
4
4
|
import { M as S } from "./consts-BuFChS64.js";
|
|
5
5
|
import { u as w } from "./useDetectMobile-Bkvj0VMa.js";
|
|
6
|
-
import { B as R } from "./index-
|
|
6
|
+
import { B as R } from "./index-BipuzfLW.js";
|
|
7
7
|
import { a as T, b as u } from "./style-CXMUA6cI.js";
|
|
8
8
|
const U = f.div`
|
|
9
9
|
display: grid;
|
|
@@ -84,7 +84,7 @@ const U = f.div`
|
|
|
84
84
|
metadata: { name: d, accessor: e == null ? void 0 : e.accessor }
|
|
85
85
|
},
|
|
86
86
|
n
|
|
87
|
-
)) }), [r, c, l
|
|
87
|
+
)) }), [r, c, l]);
|
|
88
88
|
return /* @__PURE__ */ t(
|
|
89
89
|
j,
|
|
90
90
|
{
|
|
@@ -1,12 +1,14 @@
|
|
|
1
|
-
"use strict";const r=require("react/jsx-runtime"),m=require("react"),
|
|
1
|
+
"use strict";const r=require("react/jsx-runtime"),m=require("react"),b=require("./emotion-styled.browser.esm-BtEseadx.cjs"),v=require("./consts-goSZX3xP.cjs"),B=require("./useDetectMobile-zkbzoOGV.cjs"),d=require("./utils-RnrgDDZP.cjs"),k=require("./style-CkcozOY6.cjs"),R=require("./Button.cjs"),M=require("./Link.cjs"),T=require("./index-uwl7BjRF.cjs"),$=require("./index-D-3I_Ppj.cjs"),E=b.styled.div`
|
|
2
2
|
display: grid;
|
|
3
|
-
grid-template-columns: ${
|
|
3
|
+
grid-template-columns: ${s=>`repeat(${s.limit}, minmax(0, 1fr))`};
|
|
4
4
|
gap: 1.25rem;
|
|
5
5
|
|
|
6
|
-
@media (max-width: ${
|
|
6
|
+
@media (max-width: ${v.MOBILE_SIZE_PX+"px"}) {
|
|
7
7
|
grid-template-columns: repeat(1, 1fr);
|
|
8
8
|
}
|
|
9
|
-
|
|
9
|
+
`,I=b.styled.a`
|
|
10
|
+
text-decoration: none;
|
|
11
|
+
color: var(--gray-950);
|
|
10
12
|
display: flex;
|
|
11
13
|
flex-direction: column;
|
|
12
14
|
width: 100%;
|
|
@@ -56,9 +58,9 @@
|
|
|
56
58
|
padding: 1rem;
|
|
57
59
|
}
|
|
58
60
|
|
|
59
|
-
@media (max-width: ${
|
|
61
|
+
@media (max-width: ${v.MOBILE_SIZE_PX+"px"}) {
|
|
60
62
|
}
|
|
61
|
-
`,D=
|
|
63
|
+
`,D=b.styled.div`
|
|
62
64
|
padding: 1rem 1rem 0 1rem;
|
|
63
65
|
display: flex;
|
|
64
66
|
flex-direction: column;
|
|
@@ -78,4 +80,4 @@
|
|
|
78
80
|
color: var(--gray-700, #4e555f);
|
|
79
81
|
${d.truncateTextInRows(3)}
|
|
80
82
|
}
|
|
81
|
-
`,
|
|
83
|
+
`,_=m.forwardRef((s,w)=>{const{title:g,imageUrl:h,text:f,options:l,onCardClick:a,readMoreText:i="Read more",metadata:o,titleSlug:u}=s,c=m.useRef();return r.jsxs(I,{ref:c,name:o==null?void 0:o.name,"data-accessor":o==null?void 0:o.name,className:"blog-card",onClick:t=>a(t,c),href:`/blog/${u}`,children:[r.jsx(T.ProductImageWrapper,{src:h}),r.jsxs(D,{children:[r.jsx("div",{className:"text-wr-title",children:g}),r.jsx("div",{className:"text-wr",children:f})]}),l&&r.jsx("div",{className:"tags-wr",children:l==null?void 0:l.map((t,p)=>r.jsx(k.BlogTag,{color:t==null?void 0:t.color,children:t==null?void 0:t.name},p))}),r.jsx(M,{className:"action",color:"gray",onClick:a,children:i})]})}),S=m.memo(_),L=m.forwardRef((s,w)=>{const{icon:g,title:h,onButtonAction:f=()=>{},onSelectCard:l=()=>{},buttonLink:a,items:i,buttonText:o,limit:u=3,isLoading:c=!1,getImage:t=()=>{},readMoreText:p="Read more",componentName:j}=s,N=B.useDetectMobile(),C=m.useMemo(()=>r.jsx(r.Fragment,{children:N===!0?i==null?void 0:i.map((e,n)=>r.jsx(S,{isBlog:!0,title:e==null?void 0:e.title,imageUrl:t(e==null?void 0:e.imageUrl,e==null?void 0:e.uuid)||null,text:e==null?void 0:e.description,titleSlug:e==null?void 0:e.titleSlug,readMoreText:p,options:e==null?void 0:e.options,onCardClick:(q,y)=>l(e==null?void 0:e.titleSlug,y),metadata:{name:j,accessor:e==null?void 0:e.accessor}},n)):i==null?void 0:i.slice(0,u).map((e,n)=>r.jsx(S,{isBlog:!0,title:e==null?void 0:e.title,imageUrl:t(e==null?void 0:e.imageUrl,e==null?void 0:e.uuid)||null,text:e==null?void 0:e.description,titleSlug:e==null?void 0:e.titleSlug,readMoreText:p,options:e==null?void 0:e.options,onCardClick:(q,y)=>l(e==null?void 0:e.titleSlug,y),metadata:{name:j,accessor:e==null?void 0:e.accessor}},n))}),[i]);return r.jsxs(k.RegulatTitleSectionWrapper,{ref:w,children:[r.jsxs("div",{className:"regular-title",children:[r.jsxs("div",{className:"regular-title-text",children:[d.isDefinedNotEmptyString(g)&&r.jsx("i",{className:g}),r.jsx("span",{children:h})]}),d.isDefinedNotEmptyString(o)&&d.isDefinedNotEmptyString(a)&&!c&&r.jsx(R,{type:"button",btnType:"tinted",color:"neutral",onClick:e=>{var n;(n=e==null?void 0:e.target)==null||n.blur(),f(a)},borderRadius:"curved",className:"button-link",children:o})]}),r.jsx($.SuspenseBlogsSectionDetailed,{isLoading:c,keyPrefix:"blogs-simple-skeleton",children:r.jsx(E,{limit:u,children:C})})]})});module.exports=L;
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { jsxs as c, jsx as r, Fragment as M } from "react/jsx-runtime";
|
|
2
|
-
import { forwardRef as k, useRef as T, memo as
|
|
3
|
-
import { s as
|
|
2
|
+
import { forwardRef as k, useRef as T, memo as $, useMemo as I } from "react";
|
|
3
|
+
import { s as b } from "./emotion-styled.browser.esm-BNN1dTl3.js";
|
|
4
4
|
import { M as C } from "./consts-BuFChS64.js";
|
|
5
|
-
import { u as
|
|
6
|
-
import { w as
|
|
7
|
-
import { B as
|
|
5
|
+
import { u as P } from "./useDetectMobile-Bkvj0VMa.js";
|
|
6
|
+
import { w as U, o as W, k as w } from "./utils-Dc5zIpaz.js";
|
|
7
|
+
import { B as z, R as L } from "./style-C7FUSHmS.js";
|
|
8
8
|
import j from "./Button.js";
|
|
9
9
|
import D from "./Link.js";
|
|
10
10
|
import { P as E } from "./index-C_NnINik.js";
|
|
11
11
|
import { S as A } from "./index-BovNbKxB.js";
|
|
12
|
-
const G =
|
|
12
|
+
const G = b.div`
|
|
13
13
|
display: grid;
|
|
14
14
|
grid-template-columns: ${(n) => `repeat(${n.limit}, minmax(0, 1fr))`};
|
|
15
15
|
gap: 1.25rem;
|
|
@@ -17,7 +17,9 @@ const G = w.div`
|
|
|
17
17
|
@media (max-width: ${C + "px"}) {
|
|
18
18
|
grid-template-columns: repeat(1, 1fr);
|
|
19
19
|
}
|
|
20
|
-
`, _ =
|
|
20
|
+
`, _ = b.a`
|
|
21
|
+
text-decoration: none;
|
|
22
|
+
color: var(--gray-950);
|
|
21
23
|
display: flex;
|
|
22
24
|
flex-direction: column;
|
|
23
25
|
width: 100%;
|
|
@@ -41,7 +43,7 @@ const G = w.div`
|
|
|
41
43
|
width: 100%;
|
|
42
44
|
max-height: 12.5625rem;
|
|
43
45
|
min-height: 12.5625rem;
|
|
44
|
-
background-color: ${
|
|
46
|
+
background-color: ${U("-90deg")};
|
|
45
47
|
}
|
|
46
48
|
|
|
47
49
|
& .action {
|
|
@@ -69,7 +71,7 @@ const G = w.div`
|
|
|
69
71
|
|
|
70
72
|
@media (max-width: ${C + "px"}) {
|
|
71
73
|
}
|
|
72
|
-
`, F =
|
|
74
|
+
`, F = b.div`
|
|
73
75
|
padding: 1rem 1rem 0 1rem;
|
|
74
76
|
display: flex;
|
|
75
77
|
flex-direction: column;
|
|
@@ -87,88 +89,92 @@ const G = w.div`
|
|
|
87
89
|
font-size: 0.875rem;
|
|
88
90
|
flex: 1;
|
|
89
91
|
color: var(--gray-700, #4e555f);
|
|
90
|
-
${
|
|
92
|
+
${W(3)}
|
|
91
93
|
}
|
|
92
|
-
`, O = k((n,
|
|
94
|
+
`, O = k((n, v) => {
|
|
93
95
|
const {
|
|
94
96
|
title: d,
|
|
95
|
-
imageUrl:
|
|
96
|
-
text:
|
|
97
|
+
imageUrl: u,
|
|
98
|
+
text: f,
|
|
97
99
|
options: a,
|
|
98
100
|
onCardClick: m,
|
|
99
|
-
readMoreText:
|
|
100
|
-
metadata:
|
|
101
|
+
readMoreText: o = "Read more",
|
|
102
|
+
metadata: i,
|
|
103
|
+
titleSlug: p
|
|
101
104
|
} = n, s = T();
|
|
102
105
|
return /* @__PURE__ */ c(
|
|
103
106
|
_,
|
|
104
107
|
{
|
|
105
108
|
ref: s,
|
|
106
|
-
name:
|
|
107
|
-
"data-accessor":
|
|
109
|
+
name: i == null ? void 0 : i.name,
|
|
110
|
+
"data-accessor": i == null ? void 0 : i.name,
|
|
108
111
|
className: "blog-card",
|
|
109
112
|
onClick: (t) => m(t, s),
|
|
113
|
+
href: `/blog/${p}`,
|
|
110
114
|
children: [
|
|
111
|
-
/* @__PURE__ */ r(E, { src:
|
|
115
|
+
/* @__PURE__ */ r(E, { src: u }),
|
|
112
116
|
/* @__PURE__ */ c(F, { children: [
|
|
113
117
|
/* @__PURE__ */ r("div", { className: "text-wr-title", children: d }),
|
|
114
|
-
/* @__PURE__ */ r("div", { className: "text-wr", children:
|
|
118
|
+
/* @__PURE__ */ r("div", { className: "text-wr", children: f })
|
|
115
119
|
] }),
|
|
116
|
-
a && /* @__PURE__ */ r("div", { className: "tags-wr", children: a == null ? void 0 : a.map((t,
|
|
117
|
-
/* @__PURE__ */ r(D, { className: "action", color: "gray", onClick: m, children:
|
|
120
|
+
a && /* @__PURE__ */ r("div", { className: "tags-wr", children: a == null ? void 0 : a.map((t, g) => /* @__PURE__ */ r(z, { color: t == null ? void 0 : t.color, children: t == null ? void 0 : t.name }, g)) }),
|
|
121
|
+
/* @__PURE__ */ r(D, { className: "action", color: "gray", onClick: m, children: o })
|
|
118
122
|
]
|
|
119
123
|
}
|
|
120
124
|
);
|
|
121
|
-
}), S =
|
|
125
|
+
}), S = $(O), re = k((n, v) => {
|
|
122
126
|
const {
|
|
123
127
|
icon: d,
|
|
124
|
-
title:
|
|
125
|
-
onButtonAction:
|
|
128
|
+
title: u,
|
|
129
|
+
onButtonAction: f = () => {
|
|
126
130
|
},
|
|
127
131
|
onSelectCard: a = () => {
|
|
128
132
|
},
|
|
129
133
|
buttonLink: m,
|
|
130
|
-
items:
|
|
131
|
-
buttonText:
|
|
132
|
-
limit:
|
|
133
|
-
isLoading:
|
|
134
|
-
getImage:
|
|
134
|
+
items: o,
|
|
135
|
+
buttonText: i,
|
|
136
|
+
limit: p = 3,
|
|
137
|
+
isLoading: s = !1,
|
|
138
|
+
getImage: t = () => {
|
|
135
139
|
},
|
|
136
|
-
readMoreText:
|
|
140
|
+
readMoreText: g = "Read more",
|
|
137
141
|
componentName: y
|
|
138
|
-
} = n,
|
|
142
|
+
} = n, B = P(), N = I(() => /* @__PURE__ */ r(M, { children: B === !0 ? o == null ? void 0 : o.map((e, l) => /* @__PURE__ */ r(
|
|
139
143
|
S,
|
|
140
144
|
{
|
|
145
|
+
isBlog: !0,
|
|
141
146
|
title: e == null ? void 0 : e.title,
|
|
142
|
-
imageUrl:
|
|
147
|
+
imageUrl: t(e == null ? void 0 : e.imageUrl, e == null ? void 0 : e.uuid) || null,
|
|
143
148
|
text: e == null ? void 0 : e.description,
|
|
144
149
|
titleSlug: e == null ? void 0 : e.titleSlug,
|
|
145
|
-
readMoreText:
|
|
150
|
+
readMoreText: g,
|
|
146
151
|
options: e == null ? void 0 : e.options,
|
|
147
|
-
onCardClick: (
|
|
152
|
+
onCardClick: (R, h) => a(e == null ? void 0 : e.titleSlug, h),
|
|
148
153
|
metadata: { name: y, accessor: e == null ? void 0 : e.accessor }
|
|
149
154
|
},
|
|
150
155
|
l
|
|
151
|
-
)) :
|
|
156
|
+
)) : o == null ? void 0 : o.slice(0, p).map((e, l) => /* @__PURE__ */ r(
|
|
152
157
|
S,
|
|
153
158
|
{
|
|
159
|
+
isBlog: !0,
|
|
154
160
|
title: e == null ? void 0 : e.title,
|
|
155
|
-
imageUrl:
|
|
161
|
+
imageUrl: t(e == null ? void 0 : e.imageUrl, e == null ? void 0 : e.uuid) || null,
|
|
156
162
|
text: e == null ? void 0 : e.description,
|
|
157
163
|
titleSlug: e == null ? void 0 : e.titleSlug,
|
|
158
|
-
readMoreText:
|
|
164
|
+
readMoreText: g,
|
|
159
165
|
options: e == null ? void 0 : e.options,
|
|
160
|
-
onCardClick: (
|
|
166
|
+
onCardClick: (R, h) => a(e == null ? void 0 : e.titleSlug, h),
|
|
161
167
|
metadata: { name: y, accessor: e == null ? void 0 : e.accessor }
|
|
162
168
|
},
|
|
163
169
|
l
|
|
164
|
-
)) }), [
|
|
165
|
-
return /* @__PURE__ */ c(L, { ref:
|
|
170
|
+
)) }), [o]);
|
|
171
|
+
return /* @__PURE__ */ c(L, { ref: v, children: [
|
|
166
172
|
/* @__PURE__ */ c("div", { className: "regular-title", children: [
|
|
167
173
|
/* @__PURE__ */ c("div", { className: "regular-title-text", children: [
|
|
168
|
-
|
|
169
|
-
/* @__PURE__ */ r("span", { children:
|
|
174
|
+
w(d) && /* @__PURE__ */ r("i", { className: d }),
|
|
175
|
+
/* @__PURE__ */ r("span", { children: u })
|
|
170
176
|
] }),
|
|
171
|
-
|
|
177
|
+
w(i) && w(m) && !s && /* @__PURE__ */ r(
|
|
172
178
|
j,
|
|
173
179
|
{
|
|
174
180
|
type: "button",
|
|
@@ -176,20 +182,20 @@ const G = w.div`
|
|
|
176
182
|
color: "neutral",
|
|
177
183
|
onClick: (e) => {
|
|
178
184
|
var l;
|
|
179
|
-
(l = e == null ? void 0 : e.target) == null || l.blur(),
|
|
185
|
+
(l = e == null ? void 0 : e.target) == null || l.blur(), f(m);
|
|
180
186
|
},
|
|
181
187
|
borderRadius: "curved",
|
|
182
188
|
className: "button-link",
|
|
183
|
-
children:
|
|
189
|
+
children: i
|
|
184
190
|
}
|
|
185
191
|
)
|
|
186
192
|
] }),
|
|
187
193
|
/* @__PURE__ */ r(
|
|
188
194
|
A,
|
|
189
195
|
{
|
|
190
|
-
isLoading:
|
|
196
|
+
isLoading: s,
|
|
191
197
|
keyPrefix: "blogs-simple-skeleton",
|
|
192
|
-
children: /* @__PURE__ */ r(G, { limit:
|
|
198
|
+
children: /* @__PURE__ */ r(G, { limit: p, children: N })
|
|
193
199
|
}
|
|
194
200
|
)
|
|
195
201
|
] });
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const t=require("react/jsx-runtime"),
|
|
1
|
+
"use strict";const t=require("react/jsx-runtime"),u=require("react"),g=require("./emotion-styled.browser.esm-BtEseadx.cjs"),f=require("./consts-goSZX3xP.cjs"),w=require("./useDetectMobile-zkbzoOGV.cjs"),j=require("./utils-RnrgDDZP.cjs"),y=require("./Button.cjs"),S=require("./index-uwl7BjRF.cjs"),h=require("./style-BAcV7F53.cjs"),C=g.styled.div`
|
|
2
2
|
display: grid;
|
|
3
3
|
grid-template-columns: ${r=>`repeat(${r.limit}, minmax(0, 1fr))`};
|
|
4
4
|
gap: 1.25rem;
|
|
@@ -7,7 +7,9 @@
|
|
|
7
7
|
@media (max-width: ${f.MOBILE_SIZE_PX+"px"}) {
|
|
8
8
|
grid-template-columns: repeat(1, 1fr);
|
|
9
9
|
}
|
|
10
|
-
`,
|
|
10
|
+
`,k=g.styled.a`
|
|
11
|
+
text-decoration: none;
|
|
12
|
+
color: var(--gray-950);
|
|
11
13
|
display: flex;
|
|
12
14
|
flex-direction: column;
|
|
13
15
|
width: 100%;
|
|
@@ -46,7 +48,7 @@
|
|
|
46
48
|
@media (max-width: ${f.MOBILE_SIZE_PX+"px"}) {
|
|
47
49
|
max-width: unset;
|
|
48
50
|
}
|
|
49
|
-
`,v=
|
|
51
|
+
`,v=g.styled.div`
|
|
50
52
|
text-align: center;
|
|
51
53
|
display: flex;
|
|
52
54
|
flex-direction: column;
|
|
@@ -69,7 +71,7 @@
|
|
|
69
71
|
letter-spacing: 0.0156rem;
|
|
70
72
|
${j.truncateTextInRows(3)}
|
|
71
73
|
}
|
|
72
|
-
`,b=
|
|
74
|
+
`,b=u.forwardRef((r,l)=>{const{title:n,image:o,text:c,buttonText:p,onCardClick:d,metadata:i,link:e}=r,s=u.useRef(),m=a=>{d(a,s)};return t.jsxs(k,{ref:s,name:i==null?void 0:i.name,"data-accessor":i==null?void 0:i.accessor,className:"blog-card",onClick:m,href:`/${e}`,children:[t.jsx(S.ProductImageWrapper,{src:o}),t.jsxs(v,{children:[t.jsx("div",{className:"text-wr-title",children:n}),t.jsx("div",{className:"text-wr",children:c})]}),t.jsx(y,{borderRadius:"curved",color:"gray",type:"button",btnType:"outline",onClick:m,size:"medium",children:p})]})}),R=g.styled(h.SkeletonRowWrapper)`
|
|
73
75
|
@media (max-width: ${f.MOBILE_SIZE_PX+"px"}) {
|
|
74
76
|
flex-direction: column;
|
|
75
77
|
|
|
@@ -86,4 +88,4 @@
|
|
|
86
88
|
box-shadow: none;
|
|
87
89
|
}
|
|
88
90
|
}
|
|
89
|
-
|
|
91
|
+
`,$=({keyPrefix:r})=>t.jsxs(R,{justifyContent:"center",alignItems:"center",children:[t.jsx(h.SkeletonLinePlaceholder,{height:"24.75rem",width:"18.5rem",borderRadius:"0.75rem"},`${r}-1`),t.jsx(h.SkeletonLinePlaceholder,{height:"24.75rem",width:"18.5rem",borderRadius:"0.75rem"},`${r}-2`),t.jsx(h.SkeletonLinePlaceholder,{height:"24.75rem",width:"18.5rem",borderRadius:"0.75rem"},`${r}-3`)]}),q=({keyPrefix:r,isLoading:l=!1,fallbackComponent:n=t.jsx(t.Fragment,{}),children:o})=>t.jsx(u.Suspense,{fallbackComponent:n,children:l===!0?t.jsx($,{keyPrefix:r}):o}),I=u.forwardRef((r,l)=>{const{items:n,limit:o=3,onSelectCard:c=()=>{},isLoading:p=!1,componentName:d}=r,i=w.useDetectMobile();return t.jsx(q,{isLoading:p,keyPrefix:"blogs-simple-centered-skeleton",children:t.jsx(C,{ref:l,limit:o,children:t.jsx(t.Fragment,{children:i===!0?n==null?void 0:n.map((e,s)=>t.jsx(b,{title:e==null?void 0:e.title,image:(e==null?void 0:e.image)||null,text:e==null?void 0:e.text,buttonText:e==null?void 0:e.buttonText,onCardClick:(m,a)=>c(e,a),metadata:{name:d,accessor:e==null?void 0:e.accessor},link:e==null?void 0:e.link},s)):n==null?void 0:n.slice(0,o).map((e,s)=>t.jsx(b,{title:e==null?void 0:e.title,image:(e==null?void 0:e.image)||null,text:e==null?void 0:e.text,buttonText:e==null?void 0:e.buttonText,onCardClick:(m,a)=>c(e,a),metadata:{name:d,accessor:e==null?void 0:e.accessor},link:e==null?void 0:e.link},s))})})})});module.exports=I;
|