@lanaco/lnc-react-ui 4.0.170 → 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-BU6DPCvJ.js +0 -652
- package/dist/suspense-product-card-detailed-BbvQuPOP.cjs +0 -329
- package/dist/suspense-product-card-simple-DJ8UYolb.cjs +0 -1
- package/dist/suspense-product-card-simple-ziy0XcLp.js +0 -26
|
@@ -1,63 +1,99 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { memo as
|
|
3
|
-
import { s as
|
|
4
|
-
import { M as
|
|
5
|
-
import { u as
|
|
6
|
-
import { B as
|
|
7
|
-
import {
|
|
8
|
-
const
|
|
1
|
+
import { jsxs as k, jsx as t, Fragment as p } from "react/jsx-runtime";
|
|
2
|
+
import { Suspense as B, memo as L, forwardRef as M, useMemo as $ } from "react";
|
|
3
|
+
import { s as f } from "./emotion-styled.browser.esm-BNN1dTl3.js";
|
|
4
|
+
import { M as S } from "./consts-BuFChS64.js";
|
|
5
|
+
import { u as w } from "./useDetectMobile-Bkvj0VMa.js";
|
|
6
|
+
import { B as R } from "./index-DFdPWO4O.js";
|
|
7
|
+
import { a as T, b as u } from "./style-CXMUA6cI.js";
|
|
8
|
+
const U = f.div`
|
|
9
9
|
display: grid;
|
|
10
10
|
grid-template-columns: ${(o) => `repeat(${o.limit}, minmax(0, 1fr))`};
|
|
11
11
|
gap: 1.25rem;
|
|
12
12
|
|
|
13
|
-
@media (max-width: ${
|
|
13
|
+
@media (max-width: ${S + "px"}) {
|
|
14
14
|
grid-template-columns: repeat(1, 1fr);
|
|
15
15
|
}
|
|
16
|
-
`,
|
|
16
|
+
`, I = f(T)`
|
|
17
|
+
@media (max-width: ${S + "px"}) {
|
|
18
|
+
flex-direction: column;
|
|
19
|
+
|
|
20
|
+
& > div {
|
|
21
|
+
background: linear-gradient(
|
|
22
|
+
to right,
|
|
23
|
+
transparent 0%,
|
|
24
|
+
#f4f6fb 40%,
|
|
25
|
+
#f4f6fb 100%
|
|
26
|
+
);
|
|
27
|
+
|
|
28
|
+
box-shadow: none;
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
`, P = ({ keyPrefix: o }) => /* @__PURE__ */ k(I, { children: [
|
|
32
|
+
/* @__PURE__ */ t(
|
|
33
|
+
u,
|
|
34
|
+
{
|
|
35
|
+
height: "11.25rem",
|
|
36
|
+
borderRadius: "0.75rem"
|
|
37
|
+
},
|
|
38
|
+
`${o}-1`
|
|
39
|
+
),
|
|
40
|
+
/* @__PURE__ */ t(
|
|
41
|
+
u,
|
|
42
|
+
{
|
|
43
|
+
height: "11.25rem",
|
|
44
|
+
borderRadius: "0.75rem"
|
|
45
|
+
},
|
|
46
|
+
`${o}-2`
|
|
47
|
+
)
|
|
48
|
+
] }), j = ({
|
|
49
|
+
keyPrefix: o,
|
|
50
|
+
isLoading: a = !1,
|
|
51
|
+
fallbackComponent: r = /* @__PURE__ */ t(p, {}),
|
|
52
|
+
children: i
|
|
53
|
+
}) => /* @__PURE__ */ t(B, { fallbackComponent: r, children: a === !0 ? /* @__PURE__ */ t(P, { keyPrefix: o }) : i }), g = L(R), F = M((o, a) => {
|
|
17
54
|
const {
|
|
18
|
-
items:
|
|
19
|
-
onSelectCard:
|
|
55
|
+
items: r,
|
|
56
|
+
onSelectCard: i = () => {
|
|
20
57
|
},
|
|
21
|
-
limit:
|
|
22
|
-
isLoading:
|
|
23
|
-
getImage:
|
|
58
|
+
limit: l = 2,
|
|
59
|
+
isLoading: b = !1,
|
|
60
|
+
getImage: m = () => {
|
|
24
61
|
},
|
|
25
|
-
componentName:
|
|
26
|
-
} = o,
|
|
27
|
-
|
|
62
|
+
componentName: d
|
|
63
|
+
} = o, c = w(), h = $(() => /* @__PURE__ */ t(p, { children: c === !0 ? r == null ? void 0 : r.map((e, n) => /* @__PURE__ */ t(
|
|
64
|
+
g,
|
|
28
65
|
{
|
|
29
66
|
title: e == null ? void 0 : e.title,
|
|
30
|
-
imageUrl:
|
|
67
|
+
imageUrl: m(e == null ? void 0 : e.imageUrl, e == null ? void 0 : e.uuid) || null,
|
|
31
68
|
text: e == null ? void 0 : e.description,
|
|
32
69
|
titleSlug: e == null ? void 0 : e.titleSlug,
|
|
33
70
|
buttonText: e == null ? void 0 : e.buttonText,
|
|
34
|
-
onCardClick: (
|
|
35
|
-
metadata: { name:
|
|
71
|
+
onCardClick: (C, s) => i(e == null ? void 0 : e.titleSlug, s),
|
|
72
|
+
metadata: { name: d, accessor: e == null ? void 0 : e.accessor }
|
|
36
73
|
},
|
|
37
|
-
|
|
38
|
-
)) :
|
|
39
|
-
|
|
74
|
+
n
|
|
75
|
+
)) : r == null ? void 0 : r.slice(0, l).map((e, n) => /* @__PURE__ */ t(
|
|
76
|
+
g,
|
|
40
77
|
{
|
|
41
78
|
title: e == null ? void 0 : e.title,
|
|
42
|
-
imageUrl:
|
|
79
|
+
imageUrl: m(e == null ? void 0 : e.imageUrl, e == null ? void 0 : e.uuid) || null,
|
|
43
80
|
text: e == null ? void 0 : e.description,
|
|
44
81
|
titleSlug: e == null ? void 0 : e.titleSlug,
|
|
45
82
|
buttonText: e == null ? void 0 : e.buttonText,
|
|
46
|
-
onCardClick: (
|
|
47
|
-
metadata: { name:
|
|
83
|
+
onCardClick: (C, s) => i(e == null ? void 0 : e.titleSlug, s),
|
|
84
|
+
metadata: { name: d, accessor: e == null ? void 0 : e.accessor }
|
|
48
85
|
},
|
|
49
|
-
|
|
50
|
-
)) }), [
|
|
51
|
-
return /* @__PURE__ */
|
|
52
|
-
|
|
86
|
+
n
|
|
87
|
+
)) }), [r, c, l, i]);
|
|
88
|
+
return /* @__PURE__ */ t(
|
|
89
|
+
j,
|
|
53
90
|
{
|
|
54
|
-
isLoading:
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
children: p
|
|
91
|
+
isLoading: b,
|
|
92
|
+
keyPrefix: "blogs-large-skeleton",
|
|
93
|
+
children: /* @__PURE__ */ t(U, { ref: a, limit: l, children: h })
|
|
58
94
|
}
|
|
59
|
-
)
|
|
95
|
+
);
|
|
60
96
|
});
|
|
61
97
|
export {
|
|
62
|
-
|
|
98
|
+
F as default
|
|
63
99
|
};
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
"use strict";const r=require("react/jsx-runtime"),
|
|
1
|
+
"use strict";const r=require("react/jsx-runtime"),m=require("react"),w=require("./emotion-styled.browser.esm-BtEseadx.cjs"),S=require("./consts-goSZX3xP.cjs"),R=require("./useDetectMobile-zkbzoOGV.cjs"),d=require("./utils-Dl9xPH4c.cjs"),k=require("./style-Db3VFbfP.cjs"),M=require("./Button.cjs"),B=require("./Link.cjs"),T=require("./index-BueKsXT8.cjs"),E=require("./index-D-3I_Ppj.cjs"),I=w.styled.div`
|
|
2
2
|
display: grid;
|
|
3
|
-
grid-template-columns: ${
|
|
3
|
+
grid-template-columns: ${l=>`repeat(${l.limit}, minmax(0, 1fr))`};
|
|
4
4
|
gap: 1.25rem;
|
|
5
5
|
|
|
6
|
-
@media (max-width: ${
|
|
6
|
+
@media (max-width: ${S.MOBILE_SIZE_PX+"px"}) {
|
|
7
7
|
grid-template-columns: repeat(1, 1fr);
|
|
8
8
|
}
|
|
9
|
-
|
|
9
|
+
`,$=w.styled.div`
|
|
10
10
|
display: flex;
|
|
11
11
|
flex-direction: column;
|
|
12
12
|
width: 100%;
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
width: 100%;
|
|
31
31
|
max-height: 12.5625rem;
|
|
32
32
|
min-height: 12.5625rem;
|
|
33
|
-
background-color: ${
|
|
33
|
+
background-color: ${d.linearGradientAnimation("-90deg")};
|
|
34
34
|
}
|
|
35
35
|
|
|
36
36
|
& .action {
|
|
@@ -56,9 +56,9 @@
|
|
|
56
56
|
padding: 1rem;
|
|
57
57
|
}
|
|
58
58
|
|
|
59
|
-
@media (max-width: ${
|
|
59
|
+
@media (max-width: ${S.MOBILE_SIZE_PX+"px"}) {
|
|
60
60
|
}
|
|
61
|
-
`,
|
|
61
|
+
`,D=w.styled.div`
|
|
62
62
|
padding: 1rem 1rem 0 1rem;
|
|
63
63
|
display: flex;
|
|
64
64
|
flex-direction: column;
|
|
@@ -76,6 +76,6 @@
|
|
|
76
76
|
font-size: 0.875rem;
|
|
77
77
|
flex: 1;
|
|
78
78
|
color: var(--gray-700, #4e555f);
|
|
79
|
-
${
|
|
79
|
+
${d.truncateTextInRows(3)}
|
|
80
80
|
}
|
|
81
|
-
`,
|
|
81
|
+
`,P=m.forwardRef((l,y)=>{const{title:g,imageUrl:u,text:h,options:n,onCardClick:a,readMoreText:i="Read more",metadata:o}=l,c=m.useRef();return r.jsxs($,{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),children:[r.jsx(T.ProductImageWrapper,{src:u}),r.jsxs(D,{children:[r.jsx("div",{className:"text-wr-title",children:g}),r.jsx("div",{className:"text-wr",children:h})]}),n&&r.jsx("div",{className:"tags-wr",children:n==null?void 0:n.map((t,p)=>r.jsx(k.BlogTag,{color:t==null?void 0:t.color,children:t==null?void 0:t.name},p))}),r.jsx(B,{className:"action",color:"gray",onClick:a,children:i})]})}),v=m.memo(P),_=m.forwardRef((l,y)=>{const{icon:g,title:u,onButtonAction:h=()=>{},onSelectCard:n=()=>{},buttonLink:a,items:i,buttonText:o,limit:c=3,isLoading:t=!1,getImage:p=()=>{},readMoreText:b="Read more",componentName:j}=l,N=R.useDetectMobile(),C=m.useMemo(()=>r.jsx(r.Fragment,{children:N===!0?i==null?void 0:i.map((e,s)=>r.jsx(v,{title:e==null?void 0:e.title,imageUrl:p(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:b,options:e==null?void 0:e.options,onCardClick:(q,f)=>n(e==null?void 0:e.titleSlug,f),metadata:{name:j,accessor:e==null?void 0:e.accessor}},s)):i==null?void 0:i.slice(0,c).map((e,s)=>r.jsx(v,{title:e==null?void 0:e.title,imageUrl:p(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:b,options:e==null?void 0:e.options,onCardClick:(q,f)=>n(e==null?void 0:e.titleSlug,f),metadata:{name:j,accessor:e==null?void 0:e.accessor}},s))}),[i]);return r.jsxs(k.RegulatTitleSectionWrapper,{ref:y,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:u})]}),d.isDefinedNotEmptyString(o)&&d.isDefinedNotEmptyString(a)&&!t&&r.jsx(M,{type:"button",btnType:"tinted",color:"neutral",onClick:e=>{var s;(s=e==null?void 0:e.target)==null||s.blur(),h(a)},borderRadius:"curved",className:"button-link",children:o})]}),r.jsx(E.SuspenseBlogsSectionDetailed,{isLoading:t,keyPrefix:"blogs-simple-skeleton",children:r.jsx(I,{limit:c,children:C})})]})});module.exports=_;
|
|
@@ -1,22 +1,23 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { forwardRef as
|
|
3
|
-
import { s as
|
|
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 P, useMemo as $ } from "react";
|
|
3
|
+
import { s as w } from "./emotion-styled.browser.esm-BNN1dTl3.js";
|
|
4
4
|
import { M as C } from "./consts-BuFChS64.js";
|
|
5
|
-
import { u as
|
|
6
|
-
import {
|
|
7
|
-
import { B as
|
|
8
|
-
import
|
|
5
|
+
import { u as z } from "./useDetectMobile-Bkvj0VMa.js";
|
|
6
|
+
import { w as I, o as U, k as h } from "./utils-DHfRApMf.js";
|
|
7
|
+
import { B as W, R as L } from "./style-D3pIrH3v.js";
|
|
8
|
+
import j from "./Button.js";
|
|
9
9
|
import D from "./Link.js";
|
|
10
|
-
import { P as
|
|
11
|
-
|
|
10
|
+
import { P as E } from "./index-BbltNcou.js";
|
|
11
|
+
import { S as A } from "./index-BovNbKxB.js";
|
|
12
|
+
const G = w.div`
|
|
12
13
|
display: grid;
|
|
13
|
-
grid-template-columns: ${(
|
|
14
|
+
grid-template-columns: ${(n) => `repeat(${n.limit}, minmax(0, 1fr))`};
|
|
14
15
|
gap: 1.25rem;
|
|
15
16
|
|
|
16
17
|
@media (max-width: ${C + "px"}) {
|
|
17
18
|
grid-template-columns: repeat(1, 1fr);
|
|
18
19
|
}
|
|
19
|
-
`,
|
|
20
|
+
`, _ = w.div`
|
|
20
21
|
display: flex;
|
|
21
22
|
flex-direction: column;
|
|
22
23
|
width: 100%;
|
|
@@ -40,7 +41,7 @@ const F = b.div`
|
|
|
40
41
|
width: 100%;
|
|
41
42
|
max-height: 12.5625rem;
|
|
42
43
|
min-height: 12.5625rem;
|
|
43
|
-
background-color: ${
|
|
44
|
+
background-color: ${I("-90deg")};
|
|
44
45
|
}
|
|
45
46
|
|
|
46
47
|
& .action {
|
|
@@ -68,7 +69,7 @@ const F = b.div`
|
|
|
68
69
|
|
|
69
70
|
@media (max-width: ${C + "px"}) {
|
|
70
71
|
}
|
|
71
|
-
`,
|
|
72
|
+
`, F = w.div`
|
|
72
73
|
padding: 1rem 1rem 0 1rem;
|
|
73
74
|
display: flex;
|
|
74
75
|
flex-direction: column;
|
|
@@ -86,140 +87,113 @@ const F = b.div`
|
|
|
86
87
|
font-size: 0.875rem;
|
|
87
88
|
flex: 1;
|
|
88
89
|
color: var(--gray-700, #4e555f);
|
|
89
|
-
${
|
|
90
|
+
${U(3)}
|
|
90
91
|
}
|
|
91
|
-
`, O =
|
|
92
|
+
`, O = k((n, b) => {
|
|
92
93
|
const {
|
|
93
|
-
title:
|
|
94
|
-
imageUrl:
|
|
95
|
-
text:
|
|
96
|
-
options:
|
|
97
|
-
onCardClick:
|
|
98
|
-
readMoreText:
|
|
99
|
-
metadata:
|
|
100
|
-
} =
|
|
101
|
-
return /* @__PURE__ */
|
|
102
|
-
|
|
94
|
+
title: d,
|
|
95
|
+
imageUrl: g,
|
|
96
|
+
text: u,
|
|
97
|
+
options: a,
|
|
98
|
+
onCardClick: m,
|
|
99
|
+
readMoreText: i = "Read more",
|
|
100
|
+
metadata: o
|
|
101
|
+
} = n, s = T();
|
|
102
|
+
return /* @__PURE__ */ c(
|
|
103
|
+
_,
|
|
103
104
|
{
|
|
104
|
-
ref:
|
|
105
|
-
name:
|
|
106
|
-
"data-accessor":
|
|
105
|
+
ref: s,
|
|
106
|
+
name: o == null ? void 0 : o.name,
|
|
107
|
+
"data-accessor": o == null ? void 0 : o.name,
|
|
107
108
|
className: "blog-card",
|
|
108
|
-
onClick: (
|
|
109
|
+
onClick: (t) => m(t, s),
|
|
109
110
|
children: [
|
|
110
|
-
/* @__PURE__ */ r(
|
|
111
|
-
/* @__PURE__ */
|
|
112
|
-
/* @__PURE__ */ r("div", { className: "text-wr-title", children:
|
|
113
|
-
/* @__PURE__ */ r("div", { className: "text-wr", children:
|
|
111
|
+
/* @__PURE__ */ r(E, { src: g }),
|
|
112
|
+
/* @__PURE__ */ c(F, { children: [
|
|
113
|
+
/* @__PURE__ */ r("div", { className: "text-wr-title", children: d }),
|
|
114
|
+
/* @__PURE__ */ r("div", { className: "text-wr", children: u })
|
|
114
115
|
] }),
|
|
115
|
-
|
|
116
|
-
/* @__PURE__ */ r(D, { className: "action", color: "gray", onClick:
|
|
116
|
+
a && /* @__PURE__ */ r("div", { className: "tags-wr", children: a == null ? void 0 : a.map((t, p) => /* @__PURE__ */ r(W, { color: t == null ? void 0 : t.color, children: t == null ? void 0 : t.name }, p)) }),
|
|
117
|
+
/* @__PURE__ */ r(D, { className: "action", color: "gray", onClick: m, children: i })
|
|
117
118
|
]
|
|
118
119
|
}
|
|
119
120
|
);
|
|
120
|
-
}),
|
|
121
|
-
// <LandingPageClearProductCardSkeleton />
|
|
122
|
-
/* @__PURE__ */ g(B, { className: "product-card", children: [
|
|
123
|
-
/* @__PURE__ */ r("div", { className: "skeleton-img" }),
|
|
124
|
-
/* @__PURE__ */ r("div", { className: "card-title" }),
|
|
125
|
-
/* @__PURE__ */ r(R, {})
|
|
126
|
-
] })
|
|
127
|
-
)), Z = ({ limit: t = 3, isLoading: m = !1, keyPrefix: o }) => /* @__PURE__ */ r(v, { children: Array.from({ length: t }, (s, n) => /* @__PURE__ */ r(
|
|
128
|
-
X,
|
|
129
|
-
{
|
|
130
|
-
isLoading: m
|
|
131
|
-
},
|
|
132
|
-
`${o}-skeleton-product-card-${n}`
|
|
133
|
-
)) }), q = ({
|
|
134
|
-
children: t,
|
|
135
|
-
fallbackComponent: m = /* @__PURE__ */ r(v, {}),
|
|
136
|
-
isLoading: o = !1,
|
|
137
|
-
limit: s,
|
|
138
|
-
keyPrefix: n
|
|
139
|
-
}) => /* @__PURE__ */ r(z, { fallbackComponent: m, children: o === !0 ? /* @__PURE__ */ r(
|
|
140
|
-
Z,
|
|
141
|
-
{
|
|
142
|
-
isLoading: o,
|
|
143
|
-
limit: s,
|
|
144
|
-
keyPrefix: n
|
|
145
|
-
}
|
|
146
|
-
) : t }), N = I(O), ie = w((t, m) => {
|
|
121
|
+
}), S = P(O), re = k((n, b) => {
|
|
147
122
|
const {
|
|
148
|
-
icon:
|
|
149
|
-
title:
|
|
150
|
-
onButtonAction:
|
|
123
|
+
icon: d,
|
|
124
|
+
title: g,
|
|
125
|
+
onButtonAction: u = () => {
|
|
151
126
|
},
|
|
152
|
-
onSelectCard:
|
|
127
|
+
onSelectCard: a = () => {
|
|
153
128
|
},
|
|
154
|
-
buttonLink:
|
|
155
|
-
items:
|
|
156
|
-
buttonText:
|
|
157
|
-
limit:
|
|
158
|
-
isLoading:
|
|
159
|
-
getImage:
|
|
129
|
+
buttonLink: m,
|
|
130
|
+
items: i,
|
|
131
|
+
buttonText: o,
|
|
132
|
+
limit: s = 3,
|
|
133
|
+
isLoading: t = !1,
|
|
134
|
+
getImage: p = () => {
|
|
160
135
|
},
|
|
161
|
-
readMoreText:
|
|
162
|
-
componentName:
|
|
163
|
-
} =
|
|
164
|
-
|
|
136
|
+
readMoreText: v = "Read more",
|
|
137
|
+
componentName: y
|
|
138
|
+
} = n, N = z(), R = $(() => /* @__PURE__ */ r(M, { children: N === !0 ? i == null ? void 0 : i.map((e, l) => /* @__PURE__ */ r(
|
|
139
|
+
S,
|
|
165
140
|
{
|
|
166
141
|
title: e == null ? void 0 : e.title,
|
|
167
|
-
imageUrl:
|
|
142
|
+
imageUrl: p(e == null ? void 0 : e.imageUrl, e == null ? void 0 : e.uuid) || null,
|
|
168
143
|
text: e == null ? void 0 : e.description,
|
|
169
144
|
titleSlug: e == null ? void 0 : e.titleSlug,
|
|
170
|
-
readMoreText:
|
|
145
|
+
readMoreText: v,
|
|
171
146
|
options: e == null ? void 0 : e.options,
|
|
172
|
-
onCardClick: (
|
|
173
|
-
metadata: { name:
|
|
147
|
+
onCardClick: (B, f) => a(e == null ? void 0 : e.titleSlug, f),
|
|
148
|
+
metadata: { name: y, accessor: e == null ? void 0 : e.accessor }
|
|
174
149
|
},
|
|
175
|
-
|
|
176
|
-
)) :
|
|
177
|
-
|
|
150
|
+
l
|
|
151
|
+
)) : i == null ? void 0 : i.slice(0, s).map((e, l) => /* @__PURE__ */ r(
|
|
152
|
+
S,
|
|
178
153
|
{
|
|
179
154
|
title: e == null ? void 0 : e.title,
|
|
180
|
-
imageUrl:
|
|
155
|
+
imageUrl: p(e == null ? void 0 : e.imageUrl, e == null ? void 0 : e.uuid) || null,
|
|
181
156
|
text: e == null ? void 0 : e.description,
|
|
182
157
|
titleSlug: e == null ? void 0 : e.titleSlug,
|
|
183
|
-
readMoreText:
|
|
158
|
+
readMoreText: v,
|
|
184
159
|
options: e == null ? void 0 : e.options,
|
|
185
|
-
onCardClick: (
|
|
186
|
-
metadata: { name:
|
|
160
|
+
onCardClick: (B, f) => a(e == null ? void 0 : e.titleSlug, f),
|
|
161
|
+
metadata: { name: y, accessor: e == null ? void 0 : e.accessor }
|
|
187
162
|
},
|
|
188
|
-
|
|
189
|
-
)) }), [
|
|
190
|
-
return /* @__PURE__ */
|
|
191
|
-
/* @__PURE__ */
|
|
192
|
-
/* @__PURE__ */
|
|
193
|
-
|
|
194
|
-
/* @__PURE__ */ r("span", { children:
|
|
163
|
+
l
|
|
164
|
+
)) }), [i]);
|
|
165
|
+
return /* @__PURE__ */ c(L, { ref: b, children: [
|
|
166
|
+
/* @__PURE__ */ c("div", { className: "regular-title", children: [
|
|
167
|
+
/* @__PURE__ */ c("div", { className: "regular-title-text", children: [
|
|
168
|
+
h(d) && /* @__PURE__ */ r("i", { className: d }),
|
|
169
|
+
/* @__PURE__ */ r("span", { children: g })
|
|
195
170
|
] }),
|
|
196
|
-
|
|
197
|
-
|
|
171
|
+
h(o) && h(m) && !t && /* @__PURE__ */ r(
|
|
172
|
+
j,
|
|
198
173
|
{
|
|
199
174
|
type: "button",
|
|
200
175
|
btnType: "tinted",
|
|
201
176
|
color: "neutral",
|
|
202
177
|
onClick: (e) => {
|
|
203
|
-
var
|
|
204
|
-
(
|
|
178
|
+
var l;
|
|
179
|
+
(l = e == null ? void 0 : e.target) == null || l.blur(), u(m);
|
|
205
180
|
},
|
|
206
181
|
borderRadius: "curved",
|
|
207
182
|
className: "button-link",
|
|
208
|
-
children:
|
|
183
|
+
children: o
|
|
209
184
|
}
|
|
210
185
|
)
|
|
211
186
|
] }),
|
|
212
|
-
/* @__PURE__ */ r(
|
|
213
|
-
|
|
187
|
+
/* @__PURE__ */ r(
|
|
188
|
+
A,
|
|
214
189
|
{
|
|
215
|
-
isLoading:
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
children: T
|
|
190
|
+
isLoading: t,
|
|
191
|
+
keyPrefix: "blogs-simple-skeleton",
|
|
192
|
+
children: /* @__PURE__ */ r(G, { limit: s, children: R })
|
|
219
193
|
}
|
|
220
|
-
)
|
|
194
|
+
)
|
|
221
195
|
] });
|
|
222
196
|
});
|
|
223
197
|
export {
|
|
224
|
-
|
|
198
|
+
re as default
|
|
225
199
|
};
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
"use strict";const t=require("react/jsx-runtime"),
|
|
1
|
+
"use strict";const t=require("react/jsx-runtime"),m=require("react"),u=require("./emotion-styled.browser.esm-BtEseadx.cjs"),f=require("./consts-goSZX3xP.cjs"),w=require("./useDetectMobile-zkbzoOGV.cjs"),j=require("./utils-Dl9xPH4c.cjs"),S=require("./Button.cjs"),y=require("./index-BueKsXT8.cjs"),d=require("./style-BAcV7F53.cjs"),C=u.styled.div`
|
|
2
2
|
display: grid;
|
|
3
|
-
grid-template-columns: ${
|
|
3
|
+
grid-template-columns: ${r=>`repeat(${r.limit}, minmax(0, 1fr))`};
|
|
4
4
|
gap: 1.25rem;
|
|
5
5
|
margin: auto;
|
|
6
6
|
width: fit-content;
|
|
7
|
-
@media (max-width: ${
|
|
7
|
+
@media (max-width: ${f.MOBILE_SIZE_PX+"px"}) {
|
|
8
8
|
grid-template-columns: repeat(1, 1fr);
|
|
9
9
|
}
|
|
10
|
-
`,
|
|
10
|
+
`,x=u.styled.div`
|
|
11
11
|
display: flex;
|
|
12
12
|
flex-direction: column;
|
|
13
13
|
width: 100%;
|
|
@@ -43,19 +43,10 @@
|
|
|
43
43
|
object-fit: cover;
|
|
44
44
|
}
|
|
45
45
|
|
|
46
|
-
|
|
47
|
-
max-width: 6rem;
|
|
48
|
-
min-width: 6rem;
|
|
49
|
-
min-height: 6rem;
|
|
50
|
-
max-height: 6rem;
|
|
51
|
-
border-radius: 0.75rem;
|
|
52
|
-
background-color: ${h.linearGradientAnimation("-90deg")};
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
@media (max-width: ${w.MOBILE_SIZE_PX+"px"}) {
|
|
46
|
+
@media (max-width: ${f.MOBILE_SIZE_PX+"px"}) {
|
|
56
47
|
max-width: unset;
|
|
57
48
|
}
|
|
58
|
-
`,
|
|
49
|
+
`,v=u.styled.div`
|
|
59
50
|
text-align: center;
|
|
60
51
|
display: flex;
|
|
61
52
|
flex-direction: column;
|
|
@@ -70,18 +61,29 @@
|
|
|
70
61
|
line-height: 1.75rem;
|
|
71
62
|
}
|
|
72
63
|
|
|
73
|
-
& .skeleton-title {
|
|
74
|
-
height: 1.75rem;
|
|
75
|
-
width: 80%;
|
|
76
|
-
background-color: ${h.linearGradientAnimation("-90deg")};
|
|
77
|
-
}
|
|
78
|
-
|
|
79
64
|
& .text-wr {
|
|
80
65
|
font-size: 0.875rem;
|
|
81
66
|
font-style: normal;
|
|
82
67
|
font-weight: 400;
|
|
83
68
|
line-height: 1.25rem;
|
|
84
69
|
letter-spacing: 0.0156rem;
|
|
85
|
-
${
|
|
70
|
+
${j.truncateTextInRows(3)}
|
|
71
|
+
}
|
|
72
|
+
`,b=m.forwardRef((r,a)=>{const{title:i,image:o,text:l,buttonText:h,onCardClick:c,metadata:n}=r,e=m.useRef(),s=g=>{c(g,e)};return t.jsxs(x,{ref:e,name:n==null?void 0:n.name,"data-accessor":n==null?void 0:n.accessor,className:"blog-card",onClick:s,children:[t.jsx(y.ProductImageWrapper,{src:o}),t.jsxs(v,{children:[t.jsx("div",{className:"text-wr-title",children:i}),t.jsx("div",{className:"text-wr",children:l})]}),t.jsx(S,{borderRadius:"curved",color:"gray",type:"button",btnType:"outline",onClick:s,size:"medium",children:h})]})}),k=u.styled(d.SkeletonRowWrapper)`
|
|
73
|
+
@media (max-width: ${f.MOBILE_SIZE_PX+"px"}) {
|
|
74
|
+
flex-direction: column;
|
|
75
|
+
|
|
76
|
+
& > div {
|
|
77
|
+
width: 100%;
|
|
78
|
+
|
|
79
|
+
background: linear-gradient(
|
|
80
|
+
to right,
|
|
81
|
+
transparent 0%,
|
|
82
|
+
#f4f6fb 40%,
|
|
83
|
+
#f4f6fb 100%
|
|
84
|
+
);
|
|
85
|
+
|
|
86
|
+
box-shadow: none;
|
|
87
|
+
}
|
|
86
88
|
}
|
|
87
|
-
`,
|
|
89
|
+
`,R=({keyPrefix:r})=>t.jsxs(k,{justifyContent:"center",alignItems:"center",children:[t.jsx(d.SkeletonLinePlaceholder,{height:"24.75rem",width:"18.5rem",borderRadius:"0.75rem"},`${r}-1`),t.jsx(d.SkeletonLinePlaceholder,{height:"24.75rem",width:"18.5rem",borderRadius:"0.75rem"},`${r}-2`),t.jsx(d.SkeletonLinePlaceholder,{height:"24.75rem",width:"18.5rem",borderRadius:"0.75rem"},`${r}-3`)]}),$=({keyPrefix:r,isLoading:a=!1,fallbackComponent:i=t.jsx(t.Fragment,{}),children:o})=>t.jsx(m.Suspense,{fallbackComponent:i,children:a===!0?t.jsx(R,{keyPrefix:r}):o}),q=m.forwardRef((r,a)=>{const{items:i,limit:o=3,onSelectCard:l=()=>{},isLoading:h=!1,componentName:c}=r,n=w.useDetectMobile();return t.jsx($,{isLoading:h,keyPrefix:"blogs-simple-centered-skeleton",children:t.jsx(C,{ref:a,limit:o,children:t.jsx(t.Fragment,{children:n===!0?i==null?void 0:i.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:(g,p)=>l(e,p),metadata:{name:c,accessor:e==null?void 0:e.accessor}},s)):i==null?void 0:i.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:(g,p)=>l(e,p),metadata:{name:c,accessor:e==null?void 0:e.accessor}},s))})})})});module.exports=q;
|