@lanaco/lnc-react-ui 4.0.169 → 4.0.171
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/Accordion.js +1 -1
- package/dist/AccordionSummary.js +1 -1
- package/dist/ActionsToolbar.js +1 -1
- package/dist/Alert.js +1 -1
- package/dist/Avatar.js +1 -1
- package/dist/Badge.js +1 -1
- package/dist/BannerSectionCarousel.cjs +9 -48
- package/dist/BannerSectionCarousel.js +208 -249
- package/dist/BannerSectionSimple.js +1 -1
- package/dist/BannerSectionWithList.js +1 -1
- package/dist/BlogCardsSponsoredSection.cjs +8 -8
- package/dist/BlogCardsSponsoredSection.js +67 -68
- package/dist/BlogCategoryCardsSection.cjs +1 -1
- package/dist/BlogCategoryCardsSection.js +22 -30
- package/dist/BlogExploreSection.js +9 -9
- package/dist/BlogListSection.cjs +11 -5
- package/dist/BlogListSection.js +187 -123
- package/dist/BlogProductCardsSection.cjs +1 -1
- package/dist/BlogProductCardsSection.js +28 -37
- package/dist/BlogShopCardsSection.cjs +1 -1
- package/dist/BlogShopCardsSection.js +40 -67
- package/dist/BlogSingleSection.cjs +16 -1
- package/dist/BlogSingleSection.js +47 -45
- package/dist/BlogsSectionDetailed.cjs +8 -27
- package/dist/BlogsSectionDetailed.js +111 -159
- package/dist/BlogsSectionLarge.cjs +19 -4
- package/dist/BlogsSectionLarge.js +73 -37
- package/dist/BlogsSectionSimple.cjs +9 -9
- package/dist/BlogsSectionSimple.js +81 -107
- package/dist/BlogsSectionSimpleCentered.cjs +25 -23
- package/dist/BlogsSectionSimpleCentered.js +103 -96
- package/dist/BlogsSectionWithFilters.cjs +31 -29
- package/dist/BlogsSectionWithFilters.js +173 -134
- package/dist/BrandHitsSection.cjs +10 -14
- package/dist/BrandHitsSection.js +93 -45
- package/dist/Breadcrumbs.js +1 -1
- package/dist/Button.js +1 -1
- package/dist/ButtonGroup.js +1 -1
- package/dist/CalorieCalculatorSection.js +1 -1
- package/dist/CategorySimpleCard-Qe5QStrs.cjs +47 -0
- package/dist/CategorySimpleCard-laAY-RUT.js +70 -0
- package/dist/CheckBoxInput.js +1 -1
- package/dist/Chip.js +1 -1
- package/dist/ColorInput.js +1 -1
- package/dist/ConfirmationForm.js +1 -1
- package/dist/CustomLoanMapSection.js +1 -1
- package/dist/{CustomStyles-SyQRnjuy.js → CustomStyles-ArAVZsIj.js} +1 -1
- package/dist/DateInput.js +1 -1
- package/dist/DecimalInput.js +1 -1
- package/dist/DecimalInputV2.js +1 -1
- package/dist/DetailedProductsInfinitiveSection.cjs +3 -3
- package/dist/DetailedProductsInfinitiveSection.js +35 -36
- package/dist/DetailedProductsSection.cjs +4 -4
- package/dist/DetailedProductsSection.js +62 -63
- package/dist/DetailsView.js +1 -1
- package/dist/DoubleRangeSlider.js +1 -1
- package/dist/DragAndDropFile.js +1 -1
- package/dist/DragDropFiles.js +1 -1
- package/dist/Drawer.js +1 -1
- package/dist/Dropdown.js +2 -2
- package/dist/DropdownItem.js +1 -1
- package/dist/DropdownLookup.js +1 -1
- package/dist/DropdownMenu.js +1 -1
- package/dist/EditableTable.js +1 -1
- package/dist/FeedbackSection.js +1 -1
- package/dist/FieldOfInterestsMasonrySection.cjs +20 -25
- package/dist/FieldOfInterestsMasonrySection.js +228 -154
- package/dist/FieldOfInterestsWithAvatarsCardsSection.cjs +33 -24
- package/dist/FieldOfInterestsWithAvatarsCardsSection.js +178 -113
- package/dist/FieldOfInterestsWithTagsCardsSection.cjs +6 -16
- package/dist/FieldOfInterestsWithTagsCardsSection.js +89 -93
- package/dist/FileInput.js +1 -1
- package/dist/FlexGridItem.js +1 -1
- package/dist/FormField.js +1 -1
- package/dist/FormView.js +1 -1
- package/dist/GeneralWithTagsCardsSection.cjs +11 -27
- package/dist/GeneralWithTagsCardsSection.js +87 -99
- package/dist/GiftCardsSection.cjs +18 -23
- package/dist/GiftCardsSection.js +146 -77
- package/dist/Icon.js +1 -1
- package/dist/IconButton.js +1 -1
- package/dist/Kanban.js +1 -1
- package/dist/KanbanActionsToolbar.js +1 -1
- package/dist/KanbanView.js +1 -1
- package/dist/Link.js +1 -1
- package/dist/LoanCalculatorSection.js +1 -1
- package/dist/LocationFinderSection.js +1 -1
- package/dist/LocationSearchSection.js +1 -1
- package/dist/MasonryGeneralCardsSection.cjs +33 -19
- package/dist/MasonryGeneralCardsSection.js +114 -68
- package/dist/MenuItem.js +1 -1
- package/dist/Modal.js +1 -1
- package/dist/MultiSelectDropdown.js +1 -1
- package/dist/MultiSelectDropdownLookup.js +1 -1
- package/dist/NestedDropdownItem.js +1 -1
- package/dist/NestedMenuItem.js +1 -1
- package/dist/NotificationContainer.js +1 -1
- package/dist/NotificationMessage.js +1 -1
- package/dist/NumberInput.js +1 -1
- package/dist/OverlayGeneralCardsSection.cjs +5 -5
- package/dist/OverlayGeneralCardsSection.js +54 -40
- package/dist/PasswordInput.js +1 -1
- package/dist/PopoverContent.js +1 -1
- package/dist/ProductsWithBannerSection.cjs +15 -20
- package/dist/ProductsWithBannerSection.js +176 -104
- package/dist/ProgressBar.js +1 -1
- package/dist/QuattroCardsSection.cjs +6 -6
- package/dist/QuattroCardsSection.js +42 -34
- package/dist/QuizSection.js +1 -1
- package/dist/RadioInput.js +1 -1
- package/dist/RangeSlider.js +1 -1
- package/dist/ReviewsSection.cjs +24 -30
- package/dist/ReviewsSection.js +170 -137
- package/dist/SalesCampaignsSection.cjs +46 -130
- package/dist/SalesCampaignsSection.js +354 -433
- package/dist/Separator.js +1 -1
- package/dist/ShopCardsSection.cjs +18 -5
- package/dist/ShopCardsSection.js +145 -88
- package/dist/Sidebar.js +1 -1
- package/dist/SimpleCategoriesSection.cjs +10 -4
- package/dist/SimpleCategoriesSection.js +79 -51
- package/dist/SimpleProductsSection.cjs +16 -3
- package/dist/SimpleProductsSection.js +172 -70
- package/dist/Spinner.js +1 -1
- package/dist/StatsSection.js +4 -4
- package/dist/Surface.js +1 -1
- package/dist/SwipeableDrawer.js +1 -1
- package/dist/TabItem.js +1 -1
- package/dist/Table.js +1 -1
- package/dist/TableView.js +1 -1
- package/dist/TextAreaInput.js +1 -1
- package/dist/TextInput.js +1 -1
- package/dist/ThemeProvider.js +1 -1
- package/dist/TimeInput.js +1 -1
- package/dist/Toggle.js +1 -1
- package/dist/TreeMenuSeparator.js +1 -1
- package/dist/UploadedFile.js +1 -1
- package/dist/UrgentSaleProductsSection.cjs +2 -2
- package/dist/UrgentSaleProductsSection.js +62 -61
- package/dist/index-BAJkosVg.cjs +11 -0
- package/dist/{index-dXWRbvgi.js → index-BMOLVn8O.js} +1 -1
- package/dist/{skeleton-5mO22c5S.js → index-BPntOicE.js} +55 -107
- package/dist/index-BSpdEGFd.js +42 -0
- package/dist/{index-CF3HhgvN.js → index-BbltNcou.js} +1 -1
- package/dist/index-BhBRZf4M.js +742 -0
- package/dist/index-BovNbKxB.js +54 -0
- package/dist/{skeleton-Ccd6EDeB.cjs → index-C5r__0lD.cjs} +4 -47
- package/dist/{index-DicTpiG0.cjs → index-CfT9e5O9.cjs} +2 -10
- package/dist/index-D-3I_Ppj.cjs +16 -0
- package/dist/index-D0IYt1s3.cjs +20 -0
- package/dist/{skeleton-CQPwIEP0.js → index-D69SKc-n.cjs} +7 -37
- package/dist/{index-C0SKNFzP.js → index-D8KPbcUf.js} +1 -1
- package/dist/index-DFdPWO4O.js +133 -0
- package/dist/index-DFyV_EK2.cjs +305 -0
- package/dist/index-DxwIu0Wn.js +84 -0
- package/dist/{index-y6sKgrZC.js → index-XYs5Cuh5.js} +21 -30
- package/dist/index.js +1 -1
- package/dist/style-BAcV7F53.cjs +64 -0
- package/dist/style-CXMUA6cI.js +74 -0
- package/dist/{style-DKAOBWn3.js → style-D3pIrH3v.js} +1 -1
- package/dist/{utils-BdsZgOUE.js → utils-DHfRApMf.js} +6 -6
- package/package.json +1 -1
- package/dist/index-1Dm1i6WK.js +0 -52
- package/dist/index-BGTtoLxz.cjs +0 -1
- package/dist/skeleton-BdbB-LdT.cjs +0 -97
- package/dist/suspense-categories-card-simple-BGj475Ca.js +0 -101
- package/dist/suspense-categories-card-simple-CjGtzfzp.cjs +0 -55
- package/dist/suspense-large-BMO7JH52.js +0 -26
- package/dist/suspense-large-CFmcSzX-.cjs +0 -1
- package/dist/suspense-product-card-detailed-CxiFuUOT.js +0 -653
- package/dist/suspense-product-card-detailed-IR4sh-l4.cjs +0 -330
- package/dist/suspense-product-card-simple-DJ8UYolb.cjs +0 -1
- package/dist/suspense-product-card-simple-ziy0XcLp.js +0 -26
|
@@ -1 +1,16 @@
|
|
|
1
|
-
"use strict";const r=require("react/jsx-runtime"),
|
|
1
|
+
"use strict";const r=require("react/jsx-runtime"),s=require("react"),u=require("./index-D69SKc-n.cjs"),l=require("./style-BAcV7F53.cjs"),g=require("./emotion-styled.browser.esm-BtEseadx.cjs"),c=require("./consts-goSZX3xP.cjs"),d=g.styled(l.SkeletonColumnWrapper)`
|
|
2
|
+
@media (max-width: ${c.MOBILE_SIZE_PX+"px"}) {
|
|
3
|
+
& > div {
|
|
4
|
+
height: 13.25rem;
|
|
5
|
+
|
|
6
|
+
background: linear-gradient(
|
|
7
|
+
to right,
|
|
8
|
+
transparent 0%,
|
|
9
|
+
#f4f6fb 40%,
|
|
10
|
+
#f4f6fb 100%
|
|
11
|
+
);
|
|
12
|
+
|
|
13
|
+
box-shadow: none;
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
`,x=({keyPrefix:n})=>r.jsx(d,{children:r.jsx(l.SkeletonLinePlaceholder,{height:"11.25rem",borderRadius:"0.75rem"},`${n}-1`)}),S=({keyPrefix:n,isLoading:t=!1,fallbackComponent:o=r.jsx(r.Fragment,{}),children:e})=>r.jsx(s.Suspense,{fallbackComponent:o,children:t===!0?r.jsx(x,{keyPrefix:n}):e}),h=s.forwardRef((n,t)=>{const{isLoading:o,item:e,onSelectCard:i=()=>{},getImage:a=()=>{}}=n;return r.jsx(S,{isLoading:o,keyPrefix:"blogs-single-skeleton",children:r.jsx(u.BlogCardLarge,{ref:t,title:e==null?void 0:e.title,imageUrl:a(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:()=>i(e==null?void 0:e.titleSlug)})})});module.exports=h;
|
|
@@ -1,56 +1,58 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { Suspense as
|
|
3
|
-
import { B as d } from "./index-
|
|
4
|
-
import {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
1
|
+
import { jsx as r, Fragment as s } from "react/jsx-runtime";
|
|
2
|
+
import { Suspense as i, forwardRef as g } from "react";
|
|
3
|
+
import { B as d } from "./index-DFdPWO4O.js";
|
|
4
|
+
import { S as u, b as f } from "./style-CXMUA6cI.js";
|
|
5
|
+
import { s as c } from "./emotion-styled.browser.esm-BNN1dTl3.js";
|
|
6
|
+
import { M as p } from "./consts-BuFChS64.js";
|
|
7
|
+
const S = c(u)`
|
|
8
|
+
@media (max-width: ${p + "px"}) {
|
|
9
|
+
& > div {
|
|
10
|
+
height: 13.25rem;
|
|
11
|
+
|
|
12
|
+
background: linear-gradient(
|
|
13
|
+
to right,
|
|
14
|
+
transparent 0%,
|
|
15
|
+
#f4f6fb 40%,
|
|
16
|
+
#f4f6fb 100%
|
|
17
|
+
);
|
|
18
|
+
|
|
19
|
+
box-shadow: none;
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
`, h = ({ keyPrefix: o }) => /* @__PURE__ */ r(S, { children: /* @__PURE__ */ r(
|
|
18
23
|
f,
|
|
19
24
|
{
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
}
|
|
24
|
-
)
|
|
25
|
+
height: "11.25rem",
|
|
26
|
+
borderRadius: "0.75rem"
|
|
27
|
+
},
|
|
28
|
+
`${o}-1`
|
|
29
|
+
) }), b = ({
|
|
30
|
+
keyPrefix: o,
|
|
31
|
+
isLoading: t = !1,
|
|
32
|
+
fallbackComponent: n = /* @__PURE__ */ r(s, {}),
|
|
33
|
+
children: e
|
|
34
|
+
}) => /* @__PURE__ */ r(i, { fallbackComponent: n, children: t === !0 ? /* @__PURE__ */ r(h, { keyPrefix: o }) : e }), w = g((o, t) => {
|
|
25
35
|
const {
|
|
26
|
-
isLoading:
|
|
27
|
-
item:
|
|
28
|
-
onSelectCard:
|
|
36
|
+
isLoading: n,
|
|
37
|
+
item: e,
|
|
38
|
+
onSelectCard: l = () => {
|
|
29
39
|
},
|
|
30
|
-
getImage:
|
|
40
|
+
getImage: a = () => {
|
|
31
41
|
}
|
|
32
42
|
} = o;
|
|
33
|
-
return /* @__PURE__ */
|
|
34
|
-
|
|
43
|
+
return /* @__PURE__ */ r(b, { isLoading: n, keyPrefix: "blogs-single-skeleton", children: /* @__PURE__ */ r(
|
|
44
|
+
d,
|
|
35
45
|
{
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
title: r == null ? void 0 : r.title,
|
|
44
|
-
imageUrl: g(r == null ? void 0 : r.imageUrl, r == null ? void 0 : r.uuid) || null,
|
|
45
|
-
text: r == null ? void 0 : r.description,
|
|
46
|
-
titleSlug: r == null ? void 0 : r.titleSlug,
|
|
47
|
-
buttonText: r == null ? void 0 : r.buttonText,
|
|
48
|
-
onCardClick: () => n(r == null ? void 0 : r.titleSlug)
|
|
49
|
-
}
|
|
50
|
-
)
|
|
46
|
+
ref: t,
|
|
47
|
+
title: e == null ? void 0 : e.title,
|
|
48
|
+
imageUrl: a(e == null ? void 0 : e.imageUrl, e == null ? void 0 : e.uuid) || null,
|
|
49
|
+
text: e == null ? void 0 : e.description,
|
|
50
|
+
titleSlug: e == null ? void 0 : e.titleSlug,
|
|
51
|
+
buttonText: e == null ? void 0 : e.buttonText,
|
|
52
|
+
onCardClick: () => l(e == null ? void 0 : e.titleSlug)
|
|
51
53
|
}
|
|
52
|
-
);
|
|
54
|
+
) });
|
|
53
55
|
});
|
|
54
56
|
export {
|
|
55
|
-
|
|
57
|
+
w as default
|
|
56
58
|
};
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
"use strict";const t=require("react/jsx-runtime"),
|
|
1
|
+
"use strict";const t=require("react/jsx-runtime"),u=require("react"),N=require("./emotion-styled.browser.esm-BtEseadx.cjs"),R=require("./consts-goSZX3xP.cjs"),T=require("./useDetectMobile-zkbzoOGV.cjs"),a=require("./utils-Dl9xPH4c.cjs"),C=require("./style-Db3VFbfP.cjs"),O=require("./Button.cjs"),q=require("./index-BueKsXT8.cjs"),L=require("./index-D-3I_Ppj.cjs"),B=N.styled.div`
|
|
2
2
|
display: grid;
|
|
3
|
-
grid-template-columns: ${
|
|
3
|
+
grid-template-columns: ${o=>`repeat(${o.limit}, minmax(0, 1fr))`};
|
|
4
4
|
gap: 1.25rem;
|
|
5
5
|
|
|
6
|
-
@media (max-width: ${
|
|
6
|
+
@media (max-width: ${R.MOBILE_SIZE_PX+"px"}) {
|
|
7
7
|
grid-template-columns: repeat(1, 1fr);
|
|
8
8
|
}
|
|
9
|
-
`,
|
|
9
|
+
`,D=N.styled.div`
|
|
10
10
|
display: flex;
|
|
11
11
|
flex-direction: column;
|
|
12
12
|
width: 100%;
|
|
@@ -37,24 +37,17 @@
|
|
|
37
37
|
width: 100%;
|
|
38
38
|
}
|
|
39
39
|
|
|
40
|
-
& .skeleton-img {
|
|
41
|
-
width: 100%;
|
|
42
|
-
max-height: 12.5rem;
|
|
43
|
-
min-height: 12.5rem;
|
|
44
|
-
background-color: ${i.linearGradientAnimation("-90deg")};
|
|
45
|
-
}
|
|
46
|
-
|
|
47
40
|
& .tags-wr {
|
|
48
41
|
display: flex;
|
|
49
42
|
flex-wrap: wrap;
|
|
50
43
|
gap: 0.5rem;
|
|
51
44
|
}
|
|
52
45
|
|
|
53
|
-
@media (max-width: ${
|
|
46
|
+
@media (max-width: ${R.MOBILE_SIZE_PX+"px"}) {
|
|
54
47
|
max-height: 100%;
|
|
55
48
|
min-height: 100%;
|
|
56
49
|
}
|
|
57
|
-
`,
|
|
50
|
+
`,A=N.styled.div`
|
|
58
51
|
display: flex;
|
|
59
52
|
flex-direction: column;
|
|
60
53
|
gap: 0;
|
|
@@ -65,24 +58,12 @@
|
|
|
65
58
|
font-size: 1rem;
|
|
66
59
|
}
|
|
67
60
|
|
|
68
|
-
& .info-wr-skeleton {
|
|
69
|
-
background-color: ${i.linearGradientAnimation("-90deg")};
|
|
70
|
-
height: 1rem;
|
|
71
|
-
width: 100%;
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
& .skeleton-title {
|
|
75
|
-
background-color: ${i.linearGradientAnimation("-90deg")};
|
|
76
|
-
height: 1.5rem;
|
|
77
|
-
width: 70%;
|
|
78
|
-
}
|
|
79
|
-
|
|
80
61
|
& .text-wr {
|
|
81
62
|
font-weight: 400;
|
|
82
63
|
font-size: 0.875rem;
|
|
83
64
|
flex: 1;
|
|
84
65
|
color: var(--gray-700, #4e555f);
|
|
85
|
-
${
|
|
66
|
+
${a.truncateTextInRows(2)}
|
|
86
67
|
}
|
|
87
68
|
|
|
88
69
|
& .info-wr {
|
|
@@ -111,4 +92,4 @@
|
|
|
111
92
|
align-items: center;
|
|
112
93
|
gap: 1rem;
|
|
113
94
|
}
|
|
114
|
-
`,
|
|
95
|
+
`,E=u.forwardRef((o,v)=>{const{title:p,imageUrl:b,text:j,numberOfLikes:i,numberOfComments:f,timeToRead:c,publishedAt:d,tags:n,onCardClick:h,timeToReadText:m="{0} min read",metadata:s}=o,g=u.useRef();return t.jsxs(D,{ref:g,className:"blog-card","data-accessor":s==null?void 0:s.accessor,name:s==null?void 0:s.name,onClick:r=>h(r,g),children:[t.jsx(q.ProductImageWrapper,{src:b}),t.jsxs("div",{className:"blog-card-content",children:[t.jsxs(A,{children:[t.jsxs("div",{className:"info-wr",children:[t.jsxs("div",{className:"info-wr-1",children:[t.jsxs("span",{children:[a.formatLocaleDateString(d)," "]}),t.jsx("span",{className:"small-dot",children:"●"}),c&&m?`${a.formatString(m,c)}`:"N/A"]}),t.jsxs("div",{className:"info-wr-2",children:[t.jsxs("span",{className:"info-wr-1",children:[t.jsx("i",{className:"mng mng-lnc-thumbs-up--filled"}),t.jsx("span",{children:a.getRoundedNumber(i)})]}),t.jsxs("span",{className:"info-wr-1",children:[t.jsx("i",{className:"mng mng-lnc-messages-filled"}),t.jsx("span",{children:a.getRoundedNumber(f)})]})]})]}),t.jsx("div",{className:"text-wr-title",children:p}),t.jsx("div",{className:"text-wr",children:j})]}),n&&t.jsx("div",{className:"tags-wr",children:n==null?void 0:n.map((r,w)=>t.jsx(C.BlogTag,{color:r==null?void 0:r.color,children:r==null?void 0:r.name},w))})]})]})}),S=u.memo(E),I=u.forwardRef((o,v)=>{const{icon:p,title:b,onButtonAction:j,items:i,buttonText:f,timeToReadText:c,limit:d=3,onSelectCard:n=()=>{},isLoading:h=!1,buttonLink:m,getImage:s=()=>{},componentName:g}=o,r=T.useDetectMobile(),w=u.useMemo(()=>t.jsx(t.Fragment,{children:r===!0?i==null?void 0:i.map((e,l)=>t.jsx(S,{title:e==null?void 0:e.title,text:e==null?void 0:e.description,titleSlug:e==null?void 0:e.titleSlug,numberOfLikes:e==null?void 0:e.numberOfLikes,numberOfComments:e==null?void 0:e.numberOfComments,publishedAt:e==null?void 0:e.publishedAt,timeToRead:e==null?void 0:e.timeToRead,timeToReadText:c,tags:e==null?void 0:e.tags,onCardClick:(k,y)=>n(e==null?void 0:e.titleSlug,y),imageUrl:s(e==null?void 0:e.imageUrl,e==null?void 0:e.uuid)||null,metadata:{name:g,accessor:e==null?void 0:e.accessor}},l)):i==null?void 0:i.slice(0,d).map((e,l)=>t.jsx(S,{title:e==null?void 0:e.title,imageUrl:s(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,tags:e==null?void 0:e.tags,numberOfLikes:e==null?void 0:e.numberOfLikes,numberOfComments:e==null?void 0:e.numberOfComments,publishedAt:e==null?void 0:e.publishedAt,timeToRead:e==null?void 0:e.timeToRead,timeToReadText:c,onCardClick:(k,y)=>n(e==null?void 0:e.titleSlug,y),metadata:{name:g,accessor:e==null?void 0:e.accessor}},l))}),[i,r,d,n]);return t.jsxs(C.RegulatTitleSectionWrapper,{ref:v,children:[t.jsxs("div",{className:"regular-title",children:[t.jsxs("div",{className:"regular-title-text",children:[a.isDefinedNotEmptyString(p)&&t.jsx("i",{className:p}),t.jsx("span",{children:b})]}),a.isDefinedNotEmptyString(f)&&a.isDefinedNotEmptyString(m)&&!h&&t.jsx(O,{type:"button",btnType:"tinted",color:"neutral",onClick:e=>{var l;(l=e==null?void 0:e.target)==null||l.blur(),j(m)},borderRadius:"curved",className:"button-link",children:f})]}),t.jsx(L.SuspenseBlogsSectionDetailed,{isLoading:h,keyPrefix:"blogs-detailed-skeleton",children:t.jsx(B,{limit:d,children:w})})]})});module.exports=I;
|
|
@@ -1,21 +1,22 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { forwardRef as
|
|
3
|
-
import { s as
|
|
4
|
-
import { M as
|
|
5
|
-
import { u as
|
|
6
|
-
import { o as
|
|
7
|
-
import { B as
|
|
8
|
-
import
|
|
9
|
-
import { P as
|
|
10
|
-
|
|
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 z } from "react";
|
|
3
|
+
import { s as N } from "./emotion-styled.browser.esm-BNN1dTl3.js";
|
|
4
|
+
import { M as T } from "./consts-BuFChS64.js";
|
|
5
|
+
import { u as D } from "./useDetectMobile-Bkvj0VMa.js";
|
|
6
|
+
import { o as M, s as $, q as j, v as C, k as y } from "./utils-DHfRApMf.js";
|
|
7
|
+
import { B as I, R as P } from "./style-D3pIrH3v.js";
|
|
8
|
+
import U from "./Button.js";
|
|
9
|
+
import { P as W } from "./index-BbltNcou.js";
|
|
10
|
+
import { S as E } from "./index-BovNbKxB.js";
|
|
11
|
+
const _ = N.div`
|
|
11
12
|
display: grid;
|
|
12
|
-
grid-template-columns: ${(
|
|
13
|
+
grid-template-columns: ${(s) => `repeat(${s.limit}, minmax(0, 1fr))`};
|
|
13
14
|
gap: 1.25rem;
|
|
14
15
|
|
|
15
|
-
@media (max-width: ${
|
|
16
|
+
@media (max-width: ${T + "px"}) {
|
|
16
17
|
grid-template-columns: repeat(1, 1fr);
|
|
17
18
|
}
|
|
18
|
-
`,
|
|
19
|
+
`, q = N.div`
|
|
19
20
|
display: flex;
|
|
20
21
|
flex-direction: column;
|
|
21
22
|
width: 100%;
|
|
@@ -46,24 +47,17 @@ const X = R.div`
|
|
|
46
47
|
width: 100%;
|
|
47
48
|
}
|
|
48
49
|
|
|
49
|
-
& .skeleton-img {
|
|
50
|
-
width: 100%;
|
|
51
|
-
max-height: 12.5rem;
|
|
52
|
-
min-height: 12.5rem;
|
|
53
|
-
background-color: ${y("-90deg")};
|
|
54
|
-
}
|
|
55
|
-
|
|
56
50
|
& .tags-wr {
|
|
57
51
|
display: flex;
|
|
58
52
|
flex-wrap: wrap;
|
|
59
53
|
gap: 0.5rem;
|
|
60
54
|
}
|
|
61
55
|
|
|
62
|
-
@media (max-width: ${
|
|
56
|
+
@media (max-width: ${T + "px"}) {
|
|
63
57
|
max-height: 100%;
|
|
64
58
|
min-height: 100%;
|
|
65
59
|
}
|
|
66
|
-
`,
|
|
60
|
+
`, F = N.div`
|
|
67
61
|
display: flex;
|
|
68
62
|
flex-direction: column;
|
|
69
63
|
gap: 0;
|
|
@@ -74,24 +68,12 @@ const X = R.div`
|
|
|
74
68
|
font-size: 1rem;
|
|
75
69
|
}
|
|
76
70
|
|
|
77
|
-
& .info-wr-skeleton {
|
|
78
|
-
background-color: ${y("-90deg")};
|
|
79
|
-
height: 1rem;
|
|
80
|
-
width: 100%;
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
& .skeleton-title {
|
|
84
|
-
background-color: ${y("-90deg")};
|
|
85
|
-
height: 1.5rem;
|
|
86
|
-
width: 70%;
|
|
87
|
-
}
|
|
88
|
-
|
|
89
71
|
& .text-wr {
|
|
90
72
|
font-weight: 400;
|
|
91
73
|
font-size: 0.875rem;
|
|
92
74
|
flex: 1;
|
|
93
75
|
color: var(--gray-700, #4e555f);
|
|
94
|
-
${
|
|
76
|
+
${M(2)}
|
|
95
77
|
}
|
|
96
78
|
|
|
97
79
|
& .info-wr {
|
|
@@ -120,107 +102,78 @@ const X = R.div`
|
|
|
120
102
|
align-items: center;
|
|
121
103
|
gap: 1rem;
|
|
122
104
|
}
|
|
123
|
-
`,
|
|
105
|
+
`, G = R((s, k) => {
|
|
124
106
|
const {
|
|
125
|
-
title:
|
|
126
|
-
imageUrl:
|
|
127
|
-
text:
|
|
128
|
-
numberOfLikes:
|
|
129
|
-
numberOfComments:
|
|
130
|
-
timeToRead:
|
|
131
|
-
publishedAt:
|
|
132
|
-
tags:
|
|
133
|
-
onCardClick:
|
|
134
|
-
timeToReadText:
|
|
135
|
-
metadata:
|
|
136
|
-
} =
|
|
137
|
-
return (
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
children: [
|
|
148
|
-
/* @__PURE__ */ r(F, {
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
W(g),
|
|
155
|
-
" "
|
|
156
|
-
] }),
|
|
157
|
-
/* @__PURE__ */ r("span", { className: "small-dot", children: "●" }),
|
|
158
|
-
f && u ? `${U(u, f)}` : "N/A"
|
|
107
|
+
title: g,
|
|
108
|
+
imageUrl: h,
|
|
109
|
+
text: b,
|
|
110
|
+
numberOfLikes: a,
|
|
111
|
+
numberOfComments: f,
|
|
112
|
+
timeToRead: m,
|
|
113
|
+
publishedAt: c,
|
|
114
|
+
tags: n,
|
|
115
|
+
onCardClick: u,
|
|
116
|
+
timeToReadText: d = "{0} min read",
|
|
117
|
+
metadata: l
|
|
118
|
+
} = s, p = L();
|
|
119
|
+
return /* @__PURE__ */ r(
|
|
120
|
+
q,
|
|
121
|
+
{
|
|
122
|
+
ref: p,
|
|
123
|
+
className: "blog-card",
|
|
124
|
+
"data-accessor": l == null ? void 0 : l.accessor,
|
|
125
|
+
name: l == null ? void 0 : l.name,
|
|
126
|
+
onClick: (i) => u(i, p),
|
|
127
|
+
children: [
|
|
128
|
+
/* @__PURE__ */ t(W, { src: h }),
|
|
129
|
+
/* @__PURE__ */ r("div", { className: "blog-card-content", children: [
|
|
130
|
+
/* @__PURE__ */ r(F, { children: [
|
|
131
|
+
/* @__PURE__ */ r("div", { className: "info-wr", children: [
|
|
132
|
+
/* @__PURE__ */ r("div", { className: "info-wr-1", children: [
|
|
133
|
+
/* @__PURE__ */ r("span", { children: [
|
|
134
|
+
j(c),
|
|
135
|
+
" "
|
|
159
136
|
] }),
|
|
160
|
-
/* @__PURE__ */ t("
|
|
161
|
-
|
|
162
|
-
/* @__PURE__ */ r("i", { className: "mng mng-lnc-thumbs-up--filled" }),
|
|
163
|
-
/* @__PURE__ */ r("span", { children: T(l) })
|
|
164
|
-
] }),
|
|
165
|
-
/* @__PURE__ */ t("span", { className: "info-wr-1", children: [
|
|
166
|
-
/* @__PURE__ */ r("i", { className: "mng mng-lnc-messages-filled" }),
|
|
167
|
-
/* @__PURE__ */ r("span", { children: T(b) })
|
|
168
|
-
] })
|
|
169
|
-
] })
|
|
137
|
+
/* @__PURE__ */ t("span", { className: "small-dot", children: "●" }),
|
|
138
|
+
m && d ? `${$(d, m)}` : "N/A"
|
|
170
139
|
] }),
|
|
171
|
-
/* @__PURE__ */ r("div", { className: "
|
|
172
|
-
|
|
140
|
+
/* @__PURE__ */ r("div", { className: "info-wr-2", children: [
|
|
141
|
+
/* @__PURE__ */ r("span", { className: "info-wr-1", children: [
|
|
142
|
+
/* @__PURE__ */ t("i", { className: "mng mng-lnc-thumbs-up--filled" }),
|
|
143
|
+
/* @__PURE__ */ t("span", { children: C(a) })
|
|
144
|
+
] }),
|
|
145
|
+
/* @__PURE__ */ r("span", { className: "info-wr-1", children: [
|
|
146
|
+
/* @__PURE__ */ t("i", { className: "mng mng-lnc-messages-filled" }),
|
|
147
|
+
/* @__PURE__ */ t("span", { children: C(f) })
|
|
148
|
+
] })
|
|
149
|
+
] })
|
|
173
150
|
] }),
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
151
|
+
/* @__PURE__ */ t("div", { className: "text-wr-title", children: g }),
|
|
152
|
+
/* @__PURE__ */ t("div", { className: "text-wr", children: b })
|
|
153
|
+
] }),
|
|
154
|
+
n && /* @__PURE__ */ t("div", { className: "tags-wr", children: n == null ? void 0 : n.map((i, w) => /* @__PURE__ */ t(I, { color: i == null ? void 0 : i.color, children: i == null ? void 0 : i.name }, w)) })
|
|
155
|
+
] })
|
|
156
|
+
]
|
|
157
|
+
}
|
|
179
158
|
);
|
|
180
|
-
}),
|
|
181
|
-
/* @__PURE__ */ r("div", { className: "skeleton-img" }),
|
|
182
|
-
/* @__PURE__ */ t(A, { children: [
|
|
183
|
-
/* @__PURE__ */ r("div", { className: "info-wr" }),
|
|
184
|
-
/* @__PURE__ */ r("div", { className: "skeleton-title" }),
|
|
185
|
-
/* @__PURE__ */ r("div", { className: "info-wr-skeleton" })
|
|
186
|
-
] })
|
|
187
|
-
] })), H = ({ limit: a = 3, isLoading: c = !1, keyPrefix: n }) => /* @__PURE__ */ r(C, { children: Array.from({ length: a }, (d, m) => /* @__PURE__ */ r(
|
|
188
|
-
q,
|
|
189
|
-
{
|
|
190
|
-
isLoading: c
|
|
191
|
-
},
|
|
192
|
-
`${n}-skeleton-product-card-${m}`
|
|
193
|
-
)) }), J = ({
|
|
194
|
-
children: a,
|
|
195
|
-
fallbackComponent: c = /* @__PURE__ */ r(C, {}),
|
|
196
|
-
isLoading: n = !1,
|
|
197
|
-
limit: d,
|
|
198
|
-
keyPrefix: m
|
|
199
|
-
}) => /* @__PURE__ */ r(z, { fallbackComponent: c, children: n === !0 ? /* @__PURE__ */ r(
|
|
200
|
-
H,
|
|
201
|
-
{
|
|
202
|
-
isLoading: n,
|
|
203
|
-
limit: d,
|
|
204
|
-
keyPrefix: m
|
|
205
|
-
}
|
|
206
|
-
) : a }), O = M(Z), ae = S((a, c) => {
|
|
159
|
+
}), S = A(G), te = R((s, k) => {
|
|
207
160
|
const {
|
|
208
|
-
icon:
|
|
209
|
-
title:
|
|
210
|
-
onButtonAction:
|
|
211
|
-
items:
|
|
212
|
-
buttonText:
|
|
213
|
-
timeToReadText:
|
|
214
|
-
limit:
|
|
215
|
-
onSelectCard:
|
|
161
|
+
icon: g,
|
|
162
|
+
title: h,
|
|
163
|
+
onButtonAction: b,
|
|
164
|
+
items: a,
|
|
165
|
+
buttonText: f,
|
|
166
|
+
timeToReadText: m,
|
|
167
|
+
limit: c = 3,
|
|
168
|
+
onSelectCard: n = () => {
|
|
216
169
|
},
|
|
217
|
-
isLoading:
|
|
218
|
-
buttonLink:
|
|
219
|
-
getImage:
|
|
170
|
+
isLoading: u = !1,
|
|
171
|
+
buttonLink: d,
|
|
172
|
+
getImage: l = () => {
|
|
220
173
|
},
|
|
221
|
-
componentName:
|
|
222
|
-
} =
|
|
223
|
-
|
|
174
|
+
componentName: p
|
|
175
|
+
} = s, i = D(), w = z(() => /* @__PURE__ */ t(B, { children: i === !0 ? a == null ? void 0 : a.map((e, o) => /* @__PURE__ */ t(
|
|
176
|
+
S,
|
|
224
177
|
{
|
|
225
178
|
title: e == null ? void 0 : e.title,
|
|
226
179
|
text: e == null ? void 0 : e.description,
|
|
@@ -229,18 +182,18 @@ const X = R.div`
|
|
|
229
182
|
numberOfComments: e == null ? void 0 : e.numberOfComments,
|
|
230
183
|
publishedAt: e == null ? void 0 : e.publishedAt,
|
|
231
184
|
timeToRead: e == null ? void 0 : e.timeToRead,
|
|
232
|
-
timeToReadText:
|
|
185
|
+
timeToReadText: m,
|
|
233
186
|
tags: e == null ? void 0 : e.tags,
|
|
234
|
-
onCardClick: (
|
|
235
|
-
imageUrl:
|
|
236
|
-
metadata: { name:
|
|
187
|
+
onCardClick: (O, v) => n(e == null ? void 0 : e.titleSlug, v),
|
|
188
|
+
imageUrl: l(e == null ? void 0 : e.imageUrl, e == null ? void 0 : e.uuid) || null,
|
|
189
|
+
metadata: { name: p, accessor: e == null ? void 0 : e.accessor }
|
|
237
190
|
},
|
|
238
|
-
|
|
239
|
-
)) :
|
|
240
|
-
|
|
191
|
+
o
|
|
192
|
+
)) : a == null ? void 0 : a.slice(0, c).map((e, o) => /* @__PURE__ */ t(
|
|
193
|
+
S,
|
|
241
194
|
{
|
|
242
195
|
title: e == null ? void 0 : e.title,
|
|
243
|
-
imageUrl:
|
|
196
|
+
imageUrl: l(e == null ? void 0 : e.imageUrl, e == null ? void 0 : e.uuid) || null,
|
|
244
197
|
text: e == null ? void 0 : e.description,
|
|
245
198
|
titleSlug: e == null ? void 0 : e.titleSlug,
|
|
246
199
|
tags: e == null ? void 0 : e.tags,
|
|
@@ -248,45 +201,44 @@ const X = R.div`
|
|
|
248
201
|
numberOfComments: e == null ? void 0 : e.numberOfComments,
|
|
249
202
|
publishedAt: e == null ? void 0 : e.publishedAt,
|
|
250
203
|
timeToRead: e == null ? void 0 : e.timeToRead,
|
|
251
|
-
timeToReadText:
|
|
252
|
-
onCardClick: (
|
|
253
|
-
metadata: { name:
|
|
204
|
+
timeToReadText: m,
|
|
205
|
+
onCardClick: (O, v) => n(e == null ? void 0 : e.titleSlug, v),
|
|
206
|
+
metadata: { name: p, accessor: e == null ? void 0 : e.accessor }
|
|
254
207
|
},
|
|
255
|
-
|
|
256
|
-
)) }), [
|
|
257
|
-
return /* @__PURE__ */
|
|
258
|
-
/* @__PURE__ */
|
|
259
|
-
/* @__PURE__ */
|
|
260
|
-
|
|
261
|
-
/* @__PURE__ */
|
|
208
|
+
o
|
|
209
|
+
)) }), [a, i, c, n]);
|
|
210
|
+
return /* @__PURE__ */ r(P, { ref: k, children: [
|
|
211
|
+
/* @__PURE__ */ r("div", { className: "regular-title", children: [
|
|
212
|
+
/* @__PURE__ */ r("div", { className: "regular-title-text", children: [
|
|
213
|
+
y(g) && /* @__PURE__ */ t("i", { className: g }),
|
|
214
|
+
/* @__PURE__ */ t("span", { children: h })
|
|
262
215
|
] }),
|
|
263
|
-
|
|
264
|
-
|
|
216
|
+
y(f) && y(d) && !u && /* @__PURE__ */ t(
|
|
217
|
+
U,
|
|
265
218
|
{
|
|
266
219
|
type: "button",
|
|
267
220
|
btnType: "tinted",
|
|
268
221
|
color: "neutral",
|
|
269
222
|
onClick: (e) => {
|
|
270
|
-
var
|
|
271
|
-
(
|
|
223
|
+
var o;
|
|
224
|
+
(o = e == null ? void 0 : e.target) == null || o.blur(), b(d);
|
|
272
225
|
},
|
|
273
226
|
borderRadius: "curved",
|
|
274
227
|
className: "button-link",
|
|
275
|
-
children:
|
|
228
|
+
children: f
|
|
276
229
|
}
|
|
277
230
|
)
|
|
278
231
|
] }),
|
|
279
|
-
/* @__PURE__ */
|
|
280
|
-
|
|
232
|
+
/* @__PURE__ */ t(
|
|
233
|
+
E,
|
|
281
234
|
{
|
|
282
|
-
isLoading:
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
children: k
|
|
235
|
+
isLoading: u,
|
|
236
|
+
keyPrefix: "blogs-detailed-skeleton",
|
|
237
|
+
children: /* @__PURE__ */ t(_, { limit: c, children: w })
|
|
286
238
|
}
|
|
287
|
-
)
|
|
239
|
+
)
|
|
288
240
|
] });
|
|
289
241
|
});
|
|
290
242
|
export {
|
|
291
|
-
|
|
243
|
+
te as default
|
|
292
244
|
};
|
|
@@ -1,9 +1,24 @@
|
|
|
1
|
-
"use strict";const
|
|
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-D69SKc-n.cjs"),d=require("./style-BAcV7F53.cjs"),C=S.styled.div`
|
|
2
2
|
display: grid;
|
|
3
|
-
grid-template-columns: ${
|
|
3
|
+
grid-template-columns: ${i=>`repeat(${i.limit}, minmax(0, 1fr))`};
|
|
4
4
|
gap: 1.25rem;
|
|
5
5
|
|
|
6
|
-
@media (max-width: ${
|
|
6
|
+
@media (max-width: ${b.MOBILE_SIZE_PX+"px"}) {
|
|
7
7
|
grid-template-columns: repeat(1, 1fr);
|
|
8
8
|
}
|
|
9
|
-
`,
|
|
9
|
+
`,q=S.styled(d.SkeletonRowWrapper)`
|
|
10
|
+
@media (max-width: ${b.MOBILE_SIZE_PX+"px"}) {
|
|
11
|
+
flex-direction: column;
|
|
12
|
+
|
|
13
|
+
& > div {
|
|
14
|
+
background: linear-gradient(
|
|
15
|
+
to right,
|
|
16
|
+
transparent 0%,
|
|
17
|
+
#f4f6fb 40%,
|
|
18
|
+
#f4f6fb 100%
|
|
19
|
+
);
|
|
20
|
+
|
|
21
|
+
box-shadow: none;
|
|
22
|
+
}
|
|
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,o]);return t.jsx(M,{isLoading:h,keyPrefix:"blogs-large-skeleton",children:t.jsx(C,{ref:s,limit:l,children:f})})});module.exports=w;
|