@lanaco/lnc-react-ui 4.0.88 → 4.0.90
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.cjs +1 -1
- package/dist/Accordion.js +1 -1
- package/dist/AccordionSummary.cjs +1 -1
- package/dist/AccordionSummary.js +1 -1
- package/dist/ActionsToolbar.cjs +1 -1
- package/dist/ActionsToolbar.js +1 -1
- package/dist/AdBannerSection.cjs +37 -0
- package/dist/AdBannerSection.js +68 -0
- package/dist/Alert.cjs +1 -1
- package/dist/Alert.js +1 -1
- package/dist/Avatar.cjs +1 -1
- package/dist/Avatar.js +1 -1
- package/dist/Badge.cjs +1 -1
- package/dist/Badge.js +1 -1
- package/dist/BannerSectionCarousel.cjs +1 -1
- package/dist/BannerSectionCarousel.js +1 -1
- package/dist/BannerSectionWithList.cjs +1 -1
- package/dist/BannerSectionWithList.js +1 -1
- package/dist/BlogCardsSponsoredSection.cjs +4 -4
- package/dist/BlogCardsSponsoredSection.js +15 -15
- package/dist/BlogCategoryCardsSection.cjs +1 -1
- package/dist/BlogCategoryCardsSection.js +1 -1
- package/dist/BlogListSection.cjs +3 -3
- package/dist/BlogListSection.js +16 -16
- package/dist/BlogProductCardsSection.cjs +1 -1
- package/dist/BlogProductCardsSection.js +2 -2
- package/dist/BlogShopCardsSection.cjs +1 -1
- package/dist/BlogShopCardsSection.js +1 -1
- package/dist/BlogSingleSection.cjs +1 -1
- package/dist/BlogSingleSection.js +2 -2
- package/dist/BlogsSectionDetailed.cjs +1 -1
- package/dist/BlogsSectionDetailed.js +7 -7
- package/dist/BlogsSectionLarge.cjs +1 -1
- package/dist/BlogsSectionLarge.js +2 -2
- package/dist/BlogsSectionSimple.cjs +1 -1
- package/dist/BlogsSectionSimple.js +16 -16
- package/dist/BlogsSectionSimpleCentered.cjs +1 -1
- package/dist/BlogsSectionSimpleCentered.js +2 -2
- package/dist/BlogsSectionWithFilters.cjs +6 -6
- package/dist/BlogsSectionWithFilters.js +102 -97
- package/dist/BrandHitsSection.cjs +1 -1
- package/dist/BrandHitsSection.js +7 -7
- package/dist/Breadcrumbs.cjs +1 -1
- package/dist/Breadcrumbs.js +1 -1
- package/dist/Button.cjs +1 -1
- package/dist/Button.js +1 -1
- package/dist/ButtonGroup.cjs +1 -1
- package/dist/ButtonGroup.js +1 -1
- package/dist/CalorieCalculatorSection.cjs +1 -1
- package/dist/CalorieCalculatorSection.js +1 -1
- package/dist/CheckBoxInput.cjs +1 -1
- package/dist/CheckBoxInput.js +1 -1
- package/dist/Chip.cjs +1 -1
- package/dist/Chip.js +1 -1
- package/dist/ColorInput.cjs +1 -1
- package/dist/ColorInput.js +1 -1
- package/dist/ConfirmationForm.cjs +1 -1
- package/dist/ConfirmationForm.js +1 -1
- package/dist/CustomLoanMapSection.cjs +1 -1
- package/dist/CustomLoanMapSection.js +1 -1
- package/dist/{CustomStyles-DSaRbYZg.js → CustomStyles-DYULk9y7.js} +1 -1
- package/dist/{CustomStyles-DzChCA5c.cjs → CustomStyles-Uqkz9jDo.cjs} +1 -1
- package/dist/DateInput.cjs +1 -1
- package/dist/DateInput.js +1 -1
- package/dist/DecimalInput.cjs +1 -1
- package/dist/DecimalInput.js +1 -1
- package/dist/DecimalInputV2.cjs +1 -1
- package/dist/DecimalInputV2.js +1 -1
- package/dist/DetailedProductsSection.cjs +2 -2
- package/dist/DetailedProductsSection.js +5 -5
- package/dist/DetailsView.cjs +1 -1
- package/dist/DetailsView.js +1 -1
- package/dist/DoubleRangeSlider.cjs +1 -1
- package/dist/DoubleRangeSlider.js +1 -1
- package/dist/DragAndDropFile.cjs +1 -1
- package/dist/DragAndDropFile.js +1 -1
- package/dist/DragDropFiles.cjs +1 -1
- package/dist/DragDropFiles.js +1 -1
- package/dist/Drawer.cjs +1 -1
- package/dist/Drawer.js +1 -1
- package/dist/Dropdown.cjs +1 -1
- package/dist/Dropdown.js +2 -2
- package/dist/DropdownItem.cjs +1 -1
- package/dist/DropdownItem.js +1 -1
- package/dist/DropdownLookup.cjs +1 -1
- package/dist/DropdownLookup.js +1 -1
- package/dist/DropdownMenu.cjs +1 -1
- package/dist/DropdownMenu.js +1 -1
- package/dist/EditableTable.cjs +1 -1
- package/dist/EditableTable.js +1 -1
- package/dist/FeedbackSection.cjs +51 -0
- package/dist/FeedbackSection.js +82 -0
- package/dist/FieldOfInterestsMasonrySection.cjs +17 -16
- package/dist/FieldOfInterestsMasonrySection.js +75 -64
- package/dist/FieldOfInterestsWithAvatarsCardsSection.cjs +1 -1
- package/dist/FieldOfInterestsWithAvatarsCardsSection.js +2 -2
- package/dist/FieldOfInterestsWithTagsCardsSection.cjs +1 -1
- package/dist/FieldOfInterestsWithTagsCardsSection.js +1 -1
- package/dist/FileInput.cjs +1 -1
- package/dist/FileInput.js +1 -1
- package/dist/FlexGridItem.cjs +1 -1
- package/dist/FlexGridItem.js +1 -1
- package/dist/FormField.cjs +1 -1
- package/dist/FormField.js +1 -1
- package/dist/FormView.cjs +1 -1
- package/dist/FormView.js +1 -1
- package/dist/GeneralWithTagsCardsSection.cjs +2 -3
- package/dist/GeneralWithTagsCardsSection.js +4 -5
- package/dist/GiftCardsSection.cjs +1 -1
- package/dist/GiftCardsSection.js +2 -2
- package/dist/Icon.cjs +1 -1
- package/dist/Icon.js +1 -1
- package/dist/IconButton.cjs +1 -1
- package/dist/IconButton.js +1 -1
- package/dist/Kanban.cjs +2 -2
- package/dist/Kanban.js +84 -82
- package/dist/KanbanActionsToolbar.cjs +1 -1
- package/dist/KanbanActionsToolbar.js +1 -1
- package/dist/KanbanView.cjs +1 -1
- package/dist/KanbanView.js +1 -1
- package/dist/Link.cjs +1 -1
- package/dist/Link.js +1 -1
- package/dist/LoanCalculatorSection.cjs +1 -1
- package/dist/LoanCalculatorSection.js +1 -1
- package/dist/LocationFinderSection.cjs +1 -1
- package/dist/LocationFinderSection.js +1 -1
- package/dist/LocationSearchSection.cjs +1 -1
- package/dist/LocationSearchSection.js +1 -1
- package/dist/MasonryGeneralCardsSection.cjs +1 -1
- package/dist/MasonryGeneralCardsSection.js +1 -1
- package/dist/MenuItem.cjs +1 -1
- package/dist/MenuItem.js +1 -1
- package/dist/Modal.cjs +1 -1
- package/dist/Modal.js +1 -1
- package/dist/MultiSelectDropdown.cjs +1 -1
- package/dist/MultiSelectDropdown.js +1 -1
- package/dist/MultiSelectDropdownLookup.cjs +1 -1
- package/dist/MultiSelectDropdownLookup.js +1 -1
- package/dist/NestedDropdownItem.cjs +1 -1
- package/dist/NestedDropdownItem.js +1 -1
- package/dist/NestedMenuItem.cjs +1 -1
- package/dist/NestedMenuItem.js +1 -1
- package/dist/NotificationContainer.cjs +1 -1
- package/dist/NotificationContainer.js +1 -1
- package/dist/NotificationMessage.cjs +1 -1
- package/dist/NotificationMessage.js +1 -1
- package/dist/NumberInput.cjs +1 -1
- package/dist/NumberInput.js +1 -1
- package/dist/OverlayGeneralCardsSection.cjs +1 -1
- package/dist/OverlayGeneralCardsSection.js +2 -2
- package/dist/PasswordInput.cjs +1 -1
- package/dist/PasswordInput.js +1 -1
- package/dist/PopoverContent.cjs +1 -1
- package/dist/PopoverContent.js +1 -1
- package/dist/ProductsWithBannerSection.cjs +1 -1
- package/dist/ProductsWithBannerSection.js +3 -3
- package/dist/ProgressBar.cjs +1 -1
- package/dist/ProgressBar.js +1 -1
- package/dist/QuattroCardsSection.cjs +163 -0
- package/dist/QuattroCardsSection.js +203 -0
- package/dist/QuizSection.cjs +1 -1
- package/dist/QuizSection.js +1 -1
- package/dist/RadioInput.cjs +1 -1
- package/dist/RadioInput.js +1 -1
- package/dist/RangeSlider.cjs +1 -1
- package/dist/RangeSlider.js +1 -1
- package/dist/ReviewsSection.cjs +1 -1
- package/dist/ReviewsSection.js +2 -2
- package/dist/SalesCampaignsSection.cjs +1 -1
- package/dist/SalesCampaignsSection.js +1 -1
- package/dist/Separator.cjs +1 -1
- package/dist/Separator.js +1 -1
- package/dist/ShopCardsSection.cjs +1 -1
- package/dist/ShopCardsSection.js +2 -2
- package/dist/Sidebar.cjs +1 -1
- package/dist/Sidebar.js +1 -1
- package/dist/SimpleCategoriesSection.cjs +1 -1
- package/dist/SimpleCategoriesSection.js +3 -3
- package/dist/SimpleProductsSection.cjs +1 -1
- package/dist/SimpleProductsSection.js +2 -2
- package/dist/Spinner.cjs +1 -1
- package/dist/Spinner.js +1 -1
- package/dist/Surface.cjs +1 -1
- package/dist/Surface.js +1 -1
- package/dist/SwipeableDrawer.cjs +1 -1
- package/dist/SwipeableDrawer.js +1 -1
- package/dist/TabItem.cjs +1 -1
- package/dist/TabItem.js +1 -1
- package/dist/Table.cjs +1 -1
- package/dist/Table.js +1 -1
- package/dist/TableView.cjs +1 -1
- package/dist/TableView.js +1 -1
- package/dist/TextAreaInput.cjs +1 -1
- package/dist/TextAreaInput.js +1 -1
- package/dist/TextInput.cjs +1 -1
- package/dist/TextInput.js +1 -1
- package/dist/ThemeProvider.cjs +16 -91
- package/dist/ThemeProvider.js +48 -1233
- package/dist/TimeInput.cjs +1 -1
- package/dist/TimeInput.js +1 -1
- package/dist/Toggle.cjs +1 -1
- package/dist/Toggle.js +1 -1
- package/dist/TreeMenuSeparator.cjs +1 -1
- package/dist/TreeMenuSeparator.js +1 -1
- package/dist/UploadedFile.cjs +1 -1
- package/dist/UploadedFile.js +1 -1
- package/dist/UrgentSaleProductsSection.cjs +1 -1
- package/dist/UrgentSaleProductsSection.js +1 -1
- package/dist/{index-DG7qQq8L.cjs → index-66FyQgVV.cjs} +1 -1
- package/dist/{index-BVaZWq6y.cjs → index-BRgZcjpI.cjs} +1 -1
- package/dist/{index-Yh18uk_f.js → index-Cru8Sd2q.js} +2 -2
- package/dist/{index-Ca38iPjf.js → index-D86vS9UF.js} +1 -1
- package/dist/{index-B9HSHvhH.cjs → index-D8lR_JKg.cjs} +1 -1
- package/dist/{index-Ccw8sLnK.cjs → index-DMysapsB.cjs} +1 -1
- package/dist/{index-Cx4KvZ9L.cjs → index-DZDz9qZP.cjs} +47 -9
- package/dist/{index-BBPnKoi6.js → index-DfHm_Mv1.js} +2 -2
- package/dist/{index-Db8wvLXS.js → index-DpdPtPbo.js} +1 -1
- package/dist/{index-iSD5jNBk.js → index-Kx8irvHH.js} +98 -46
- package/dist/index.cjs +1 -1
- package/dist/index.js +59 -53
- package/dist/{skeleton-BBSBZ4JV.cjs → skeleton-BcaMeKFQ.cjs} +1 -1
- package/dist/{skeleton-wfDIalr3.js → skeleton-BrUEdt6Z.js} +6 -6
- package/dist/{skeleton-C_Jypl8r.cjs → skeleton-DwZzdFei.cjs} +5 -5
- package/dist/{skeleton-DALCB1S7.js → skeleton-TrselJrj.js} +1 -1
- package/dist/{style-xvwWn3Zv.cjs → style-B8wrlDzY.cjs} +13 -7
- package/dist/{style-sLF37aOA.js → style-C3-67TPD.js} +17 -10
- package/dist/styled-components.browser.esm-C9FYANiy.js +1190 -0
- package/dist/styled-components.browser.esm-CMTEDJ_5.cjs +76 -0
- package/dist/{suspense-categories-card-simple-5JZtz7wj.cjs → suspense-categories-card-simple-B2swGa6t.cjs} +1 -1
- package/dist/{suspense-categories-card-simple-BTFqzXyn.js → suspense-categories-card-simple-BCn3U1cz.js} +1 -1
- package/dist/{suspense-large-BtfvnzWh.cjs → suspense-large-DMhn-lIG.cjs} +1 -1
- package/dist/{suspense-large-DFlSJhGG.js → suspense-large-DgzTM-qh.js} +1 -1
- package/dist/{suspense-product-card-detailed-DBNlkFiP.cjs → suspense-product-card-detailed-CuExvgd_.cjs} +1 -1
- package/dist/{suspense-product-card-detailed-CwdbxJrY.js → suspense-product-card-detailed-D7hKisw1.js} +2 -2
- package/dist/{suspense-product-card-simple--ExcEpD-.js → suspense-product-card-simple-BIVIVybi.js} +1 -1
- package/dist/{suspense-product-card-simple-0x5sc47a.cjs → suspense-product-card-simple-zYdZVLRz.cjs} +1 -1
- package/dist/{utils-DhRHf5Ed.cjs → utils-BWzf4vLl.cjs} +1 -1
- package/dist/{utils-BE-UlkKf.js → utils-BXCGNjIy.js} +12 -12
- package/package.json +5 -2
- package/vite.config.js +12 -0
- package/dist/useEffectOnce-DFrzfNzT.cjs +0 -1
- package/dist/useEffectOnce-guOKBPuL.js +0 -7
package/dist/BlogListSection.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const r=require("react/jsx-runtime"),o=require("react"),b=require("./Icon.cjs"),w=require("./IconButton.cjs"),v=require("./Chip.cjs"),c=require("./utils-
|
|
1
|
+
"use strict";const r=require("react/jsx-runtime"),o=require("react"),b=require("./Icon.cjs"),w=require("./IconButton.cjs"),v=require("./Chip.cjs"),c=require("./utils-BWzf4vLl.cjs"),N=require("./index-BRgZcjpI.cjs"),y=require("./emotion-styled.browser.esm-BtEseadx.cjs"),R=require("./suspense-large-DMhn-lIG.cjs"),q=y.styled.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
padding: 1rem;
|
|
4
4
|
align-items: center;
|
|
@@ -117,7 +117,7 @@
|
|
|
117
117
|
}
|
|
118
118
|
}
|
|
119
119
|
}
|
|
120
|
-
`,I=o.forwardRef(({title:d,imageUrl:s,options:i,publishedAt:a,timeToReadText:n="{0} min read",timeToRead:l=0,numberOfLikes:m=0,numberOfComments:p=0,onSelectCard:g=()=>{},onSelectOption:_=()=>{},onBookmark:
|
|
120
|
+
`,I=o.forwardRef(({title:d,imageUrl:s,options:i,publishedAt:a,timeToReadText:n="{0} min read",timeToRead:l=0,numberOfLikes:m=0,numberOfComments:p=0,onSelectCard:g=()=>{},onSelectOption:_=()=>{},onBookmark:f=()=>{},onShare:e=()=>{}},h)=>r.jsxs(q,{onClick:g,children:[r.jsx(N.ProductImageWrapper,{src:s,className:"wrapper__image"}),r.jsxs("div",{className:"wrapper__content",children:[r.jsxs("div",{className:"wrapper__subcontent",children:[r.jsx("div",{className:"wrapper__title",children:d}),r.jsx("div",{className:"wrapper__tags",children:i&&(i==null?void 0:i.map((t,j)=>r.jsx(v,{label:t==null?void 0:t.name,color:t==null?void 0:t.color,className:"wrapper__tag",onClick:u=>{u==null||u.stopPropagation(),_(t==null?void 0:t.code)}},`blog-card-sponsored-option__${j+1}`)))})]}),r.jsxs("div",{className:"wrapper__info",children:[r.jsxs("div",{className:"info__content",children:[r.jsx("div",{className:"info__text",children:`${c.formatLocaleDateString(a)} • ${c.formatString(n,l)}`}),r.jsxs("div",{className:"info__text",children:[r.jsxs("div",{children:[r.jsx(b,{icon:" mng-lnc-thumbs-up",sizeInUnits:"1rem"}),c.getRoundedNumber(m)]}),r.jsxs("div",{children:[r.jsx(b,{icon:" mng-lnc-messages",sizeInUnits:"1rem"}),c.getRoundedNumber(p)]})]})]}),r.jsxs("div",{className:"info__content",children:[r.jsx(w,{icon:" mng-lnc-bookmark",borderRadius:"curved",btnType:"basic",color:"neutral",onClick:t=>{t==null||t.stopPropagation(),f()}}),r.jsx(w,{icon:" mng-lnc-share",borderRadius:"curved",btnType:"basic",color:"neutral",onClick:t=>{t==null||t.stopPropagation(),e()}})]})]})]})]})),z=y.styled.div`
|
|
121
121
|
display: flex;
|
|
122
122
|
flex-direction: column;
|
|
123
123
|
align-items: flex-start;
|
|
@@ -139,4 +139,4 @@
|
|
|
139
139
|
bottom: -0.75rem;
|
|
140
140
|
}
|
|
141
141
|
}
|
|
142
|
-
`,k=o.memo(I),C=o.forwardRef(({timeToReadText:d="{0} min read",items:s,onSelectCard:i=()=>{},onSelectOption:a=()=>{},onShare:n=()=>{},onBookmark:l=()=>{},isLoading:m=!1,getImage:p=()=>{},isSeparated:g=!0},_)=>{const
|
|
142
|
+
`,k=o.memo(I),C=o.forwardRef(({timeToReadText:d="{0} min read",items:s,onSelectCard:i=()=>{},onSelectOption:a=()=>{},onShare:n=()=>{},onBookmark:l=()=>{},isLoading:m=!1,getImage:p=()=>{},isSeparated:g=!0},_)=>{const f=o.useMemo(()=>s==null?void 0:s.map((e,h)=>r.jsx(k,{title:e==null?void 0:e.title,titleSlug:e==null?void 0:e.titleSlug,options:e==null?void 0:e.options,publishedAt:e==null?void 0:e.publishedAt,timeToReadText:d,timeToRead:e==null?void 0:e.timeToRead,numberOfLikes:e==null?void 0:e.numberOfLikes,numberOfComments:e==null?void 0:e.numberOfComments,isSponsored:e==null?void 0:e.isSponsored,onSelectCard:()=>i==null?void 0:i(e),onSelectOption:t=>a==null?void 0:a(t),onShare:()=>n==null?void 0:n(e),onBookmark:()=>l==null?void 0:l(e),imageUrl:p(e==null?void 0:e.imageUrl,e==null?void 0:e.uuid)||null},`blog-card-item__${h+1}`)),[s]);return r.jsx(z,{className:g?"separated":"",children:r.jsx(R.SuspenseBlogLarge,{isLoading:m,limit:5,keyPrefix:"blog-section",children:f})})});module.exports=C;
|
package/dist/BlogListSection.js
CHANGED
|
@@ -3,10 +3,10 @@ import { forwardRef as v, memo as z, useMemo as I } from "react";
|
|
|
3
3
|
import h from "./Icon.js";
|
|
4
4
|
import b from "./IconButton.js";
|
|
5
5
|
import R from "./Chip.js";
|
|
6
|
-
import {
|
|
7
|
-
import { P } from "./index-
|
|
6
|
+
import { p as j, s as k, v as C, w } from "./utils-BXCGNjIy.js";
|
|
7
|
+
import { P } from "./index-D86vS9UF.js";
|
|
8
8
|
import { s as y } from "./emotion-styled.browser.esm-BNN1dTl3.js";
|
|
9
|
-
import { S as $ } from "./suspense-large-
|
|
9
|
+
import { S as $ } from "./suspense-large-DgzTM-qh.js";
|
|
10
10
|
const L = y.div`
|
|
11
11
|
display: flex;
|
|
12
12
|
padding: 1rem;
|
|
@@ -134,8 +134,8 @@ const L = y.div`
|
|
|
134
134
|
publishedAt: l,
|
|
135
135
|
timeToReadText: s = "{0} min read",
|
|
136
136
|
timeToRead: o = 0,
|
|
137
|
-
numberOfLikes:
|
|
138
|
-
numberOfComments:
|
|
137
|
+
numberOfLikes: c = 0,
|
|
138
|
+
numberOfComments: d = 0,
|
|
139
139
|
onSelectCard: p = () => {
|
|
140
140
|
},
|
|
141
141
|
onSelectOption: u = () => {
|
|
@@ -170,11 +170,11 @@ const L = y.div`
|
|
|
170
170
|
/* @__PURE__ */ i("div", { className: "info__text", children: [
|
|
171
171
|
/* @__PURE__ */ i("div", { children: [
|
|
172
172
|
/* @__PURE__ */ t(h, { icon: " mng-lnc-thumbs-up", sizeInUnits: "1rem" }),
|
|
173
|
-
w(
|
|
173
|
+
w(c)
|
|
174
174
|
] }),
|
|
175
175
|
/* @__PURE__ */ i("div", { children: [
|
|
176
176
|
/* @__PURE__ */ t(h, { icon: " mng-lnc-messages", sizeInUnits: "1rem" }),
|
|
177
|
-
w(
|
|
177
|
+
w(d)
|
|
178
178
|
] })
|
|
179
179
|
] })
|
|
180
180
|
] }),
|
|
@@ -229,7 +229,7 @@ const L = y.div`
|
|
|
229
229
|
bottom: -0.75rem;
|
|
230
230
|
}
|
|
231
231
|
}
|
|
232
|
-
`, B = z(T),
|
|
232
|
+
`, B = z(T), H = v(
|
|
233
233
|
({
|
|
234
234
|
timeToReadText: m = "{0} min read",
|
|
235
235
|
items: n,
|
|
@@ -241,8 +241,8 @@ const L = y.div`
|
|
|
241
241
|
},
|
|
242
242
|
onBookmark: o = () => {
|
|
243
243
|
},
|
|
244
|
-
isLoading:
|
|
245
|
-
getImage:
|
|
244
|
+
isLoading: c = !1,
|
|
245
|
+
getImage: d = () => {
|
|
246
246
|
},
|
|
247
247
|
isSeparated: p = !0
|
|
248
248
|
}, u) => {
|
|
@@ -258,18 +258,18 @@ const L = y.div`
|
|
|
258
258
|
numberOfLikes: e == null ? void 0 : e.numberOfLikes,
|
|
259
259
|
numberOfComments: e == null ? void 0 : e.numberOfComments,
|
|
260
260
|
isSponsored: e == null ? void 0 : e.isSponsored,
|
|
261
|
-
onSelectCard: () => a == null ? void 0 : a(e
|
|
261
|
+
onSelectCard: () => a == null ? void 0 : a(e),
|
|
262
262
|
onSelectOption: (r) => l == null ? void 0 : l(r),
|
|
263
|
-
onShare: () => s == null ? void 0 : s(e
|
|
264
|
-
onBookmark: () => o == null ? void 0 : o(e
|
|
265
|
-
imageUrl:
|
|
263
|
+
onShare: () => s == null ? void 0 : s(e),
|
|
264
|
+
onBookmark: () => o == null ? void 0 : o(e),
|
|
265
|
+
imageUrl: d(e == null ? void 0 : e.imageUrl, e == null ? void 0 : e.uuid) || null
|
|
266
266
|
},
|
|
267
267
|
`blog-card-item__${_ + 1}`
|
|
268
268
|
)), [n]);
|
|
269
269
|
return /* @__PURE__ */ t(U, { className: p ? "separated" : "", children: /* @__PURE__ */ t(
|
|
270
270
|
$,
|
|
271
271
|
{
|
|
272
|
-
isLoading:
|
|
272
|
+
isLoading: c,
|
|
273
273
|
limit: 5,
|
|
274
274
|
keyPrefix: "blog-section",
|
|
275
275
|
children: f
|
|
@@ -278,5 +278,5 @@ const L = y.div`
|
|
|
278
278
|
}
|
|
279
279
|
);
|
|
280
280
|
export {
|
|
281
|
-
|
|
281
|
+
H as default
|
|
282
282
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const r=require("react/jsx-runtime"),u=require("react"),q=require("./useDetectMobile-zkbzoOGV.cjs"),P=require("./index-
|
|
1
|
+
"use strict";const r=require("react/jsx-runtime"),u=require("react"),q=require("./useDetectMobile-zkbzoOGV.cjs"),P=require("./index-D8lR_JKg.cjs"),f=require("./suspense-product-card-simple-zYdZVLRz.cjs"),h=require("./Button.cjs"),j=require("./style-BTTXJFJN.cjs"),y=u.memo(P.SimpleProductCard),M=u.forwardRef(({buttonText:o,buttonLink:t,items:i,onButtonAction:l=()=>{},onSelectCard:s=()=>{},isLoading:n=!1,limit:d=4,getImage:a=()=>{},isHighlight:p=!1},N)=>{const m=q.useDetectMobile(),b=u.useMemo(()=>{var c;return(c=i==null?void 0:i.slice(0,4))==null?void 0:c.map((e,g)=>r.jsx(y,{title:e==null?void 0:e.name,price:e==null?void 0:e.price,isFree:e==null?void 0:e.isFree,isNegotiable:e==null?void 0:e.isNegotiable,currency:e==null?void 0:e.currency,sellerUuid:e==null?void 0:e.sellerUuid,uuid:e==null?void 0:e.uuid,onSelectCard:()=>s==null?void 0:s(e==null?void 0:e.uuid),image:a(e==null?void 0:e.image,e==null?void 0:e.uuid,e==null?void 0:e.sellerUuid)||null},g))},[i]);return r.jsxs(j.Wrapper,{className:p?"highlight":"",children:[r.jsx("div",{className:"wrapper__grid",children:r.jsx(f.SuspenseSimpleProductCard,{isLoading:n,limit:d,keyPrefix:"blog-section",children:b})}),r.jsx(h,{text:o,borderRadius:"curved",btnType:m?"basic":"outline",color:"neutral",className:"wrapper__action",onClick:()=>l(t)})]})});module.exports=M;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsx as i, jsxs as g } from "react/jsx-runtime";
|
|
2
2
|
import { memo as b, forwardRef as h, useMemo as P } from "react";
|
|
3
3
|
import { u as N } from "./useDetectMobile-Bkvj0VMa.js";
|
|
4
|
-
import { S as y } from "./index-
|
|
5
|
-
import { S as M } from "./suspense-product-card-simple
|
|
4
|
+
import { S as y } from "./index-DfHm_Mv1.js";
|
|
5
|
+
import { S as M } from "./suspense-product-card-simple-BIVIVybi.js";
|
|
6
6
|
import S from "./Button.js";
|
|
7
7
|
import { W as _ } from "./style-tw6KjI2J.js";
|
|
8
8
|
const w = b(y), R = h(
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const r=require("react/jsx-runtime"),u=require("react"),f=require("./useDetectMobile-zkbzoOGV.cjs"),a=require("./skeleton-
|
|
1
|
+
"use strict";const r=require("react/jsx-runtime"),u=require("react"),f=require("./useDetectMobile-zkbzoOGV.cjs"),a=require("./skeleton-DwZzdFei.cjs"),S=require("./Button.cjs"),b=require("./style-BTTXJFJN.cjs"),_=({limit:o=4,isLoading:n=!1,keyPrefix:s})=>r.jsx(r.Fragment,{children:Array.from({length:o},(i,t)=>r.jsx(a.ShopCardSkeleton,{isLoading:n},`${s}-skeleton-shop-card-${t}`))}),k=({children:o,fallbackComponent:n=r.jsx(r.Fragment,{}),isLoading:s=!1,limit:i,keyPrefix:t})=>r.jsx(u.Suspense,{fallbackComponent:n,children:s===!0?r.jsx(_,{isLoading:s,limit:i,keyPrefix:t}):o}),q=u.memo(a.ShopCard),C=u.forwardRef(({buttonText:o,buttonLink:n,items:s,onButtonAction:i=()=>{},onSelectCard:t=()=>{},isLoading:l=!1,limit:d=4,getImage:p=()=>{},isHighlight:h=!1},w)=>{const m=f.useDetectMobile(),g=u.useMemo(()=>{var c;return(c=s==null?void 0:s.slice(0,4))==null?void 0:c.map((e,j)=>r.jsx(q,{uuid:e==null?void 0:e.uuid,title:e==null?void 0:e.name,subtitle:e==null?void 0:e.shortDescription,rating:e==null?void 0:e.rating,reviewCount:e==null?void 0:e.reviewCount,onSelectCard:()=>t==null?void 0:t(e==null?void 0:e.uuid),image:p(e==null?void 0:e.profileImage,e==null?void 0:e.uuid)||null,hideProducts:!0},`shop-card__${j+1}`))},[s]);return r.jsxs(b.Wrapper,{className:h?"highlight":"",children:[r.jsx("div",{className:"wrapper__grid",children:r.jsx(k,{isLoading:l,limit:d,keyPrefix:"blog-section",children:g})}),r.jsx(S,{text:o,borderRadius:"curved",btnType:m?"basic":"outline",color:"neutral",className:"wrapper__action",onClick:()=>i(n)})]})});module.exports=C;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as o, Fragment as u, jsxs as g } from "react/jsx-runtime";
|
|
2
2
|
import { Suspense as S, memo as b, forwardRef as _, useMemo as C } from "react";
|
|
3
3
|
import { u as k } from "./useDetectMobile-Bkvj0VMa.js";
|
|
4
|
-
import { a as w, S as v } from "./skeleton-
|
|
4
|
+
import { a as w, S as v } from "./skeleton-BrUEdt6Z.js";
|
|
5
5
|
import M from "./Button.js";
|
|
6
6
|
import { W as y } from "./style-tw6KjI2J.js";
|
|
7
7
|
const N = ({ limit: s = 4, isLoading: a = !1, keyPrefix: r }) => /* @__PURE__ */ o(u, { children: Array.from({ length: s }, (i, t) => /* @__PURE__ */ o(
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const r=require("react/jsx-runtime"),o=require("react"),g=require("./index-
|
|
1
|
+
"use strict";const r=require("react/jsx-runtime"),o=require("react"),g=require("./index-DMysapsB.cjs"),a=require("./skeleton-BcaMeKFQ.cjs"),c=({limit:t=1,isLoading:l=!1,keyPrefix:n})=>r.jsx(r.Fragment,{children:Array.from({length:t},(e,s)=>r.jsx(a.BlogCardLargeSkeleton,{isLoading:l},`${n}-skeleton-product-card-${s}`))}),x=({children:t,fallbackComponent:l=r.jsx(r.Fragment,{}),isLoading:n=!1,limit:e,keyPrefix:s})=>r.jsx(o.Suspense,{fallbackComponent:l,children:n===!0?r.jsx(c,{isLoading:n,limit:e,keyPrefix:s}):t}),d=o.forwardRef((t,l)=>{const{isLoading:n,item:e,onSelectCard:s=()=>{},getImage:u=()=>{}}=t;return r.jsx(x,{isLoading:n,limit:1,keyPrefix:"explore-landing",children:r.jsx(g.BlogCardLarge,{ref:l,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:()=>s(e==null?void 0:e.titleSlug)})})});module.exports=d;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as e, Fragment as a } from "react/jsx-runtime";
|
|
2
2
|
import { Suspense as s, forwardRef as u } from "react";
|
|
3
|
-
import { B as d } from "./index-
|
|
4
|
-
import { B as c } from "./skeleton-
|
|
3
|
+
import { B as d } from "./index-Cru8Sd2q.js";
|
|
4
|
+
import { B as c } from "./skeleton-TrselJrj.js";
|
|
5
5
|
const f = ({ limit: o = 1, isLoading: t = !1, keyPrefix: l }) => /* @__PURE__ */ e(a, { children: Array.from({ length: o }, (r, n) => /* @__PURE__ */ e(
|
|
6
6
|
c,
|
|
7
7
|
{
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const t=require("react/jsx-runtime"),u=require("react"),w=require("./emotion-styled.browser.esm-BtEseadx.cjs"),y=require("./consts-goSZX3xP.cjs"),R=require("./useDetectMobile-zkbzoOGV.cjs"),r=require("./utils-
|
|
1
|
+
"use strict";const t=require("react/jsx-runtime"),u=require("react"),w=require("./emotion-styled.browser.esm-BtEseadx.cjs"),y=require("./consts-goSZX3xP.cjs"),R=require("./useDetectMobile-zkbzoOGV.cjs"),r=require("./utils-BWzf4vLl.cjs"),N=require("./style-B8wrlDzY.cjs"),T=require("./Button.cjs"),O=require("./index-BRgZcjpI.cjs"),A=w.styled.div`
|
|
2
2
|
display: grid;
|
|
3
3
|
grid-template-columns: ${i=>`repeat(${i.limit}, minmax(0, 1fr))`};
|
|
4
4
|
gap: 1.25rem;
|
|
@@ -3,10 +3,10 @@ import { forwardRef as N, Suspense as A, memo as B, useMemo as L } from "react";
|
|
|
3
3
|
import { s as y } from "./emotion-styled.browser.esm-BNN1dTl3.js";
|
|
4
4
|
import { M as T } from "./consts-BuFChS64.js";
|
|
5
5
|
import { u as D } from "./useDetectMobile-Bkvj0VMa.js";
|
|
6
|
-
import {
|
|
7
|
-
import { B as I, R as U } from "./style-
|
|
6
|
+
import { o as v, p as P, v as z, s as M, w as C, k as w } from "./utils-BXCGNjIy.js";
|
|
7
|
+
import { B as I, R as U } from "./style-C3-67TPD.js";
|
|
8
8
|
import W from "./Button.js";
|
|
9
|
-
import { P as j } from "./index-
|
|
9
|
+
import { P as j } from "./index-D86vS9UF.js";
|
|
10
10
|
const E = y.div`
|
|
11
11
|
display: grid;
|
|
12
12
|
grid-template-columns: ${(i) => `repeat(${i.limit}, minmax(0, 1fr))`};
|
|
@@ -168,20 +168,20 @@ const E = y.div`
|
|
|
168
168
|
/* @__PURE__ */ r("div", { className: "skeleton-title" }),
|
|
169
169
|
/* @__PURE__ */ r("div", { className: "info-wr-skeleton" })
|
|
170
170
|
] })
|
|
171
|
-
] })),
|
|
171
|
+
] })), F = ({ limit: i = 3, isLoading: o = !1, keyPrefix: a }) => /* @__PURE__ */ r(k, { children: Array.from({ length: i }, (d, s) => /* @__PURE__ */ r(
|
|
172
172
|
G,
|
|
173
173
|
{
|
|
174
174
|
isLoading: o
|
|
175
175
|
},
|
|
176
176
|
`${a}-skeleton-product-card-${s}`
|
|
177
|
-
)) }),
|
|
177
|
+
)) }), X = ({
|
|
178
178
|
children: i,
|
|
179
179
|
fallbackComponent: o = /* @__PURE__ */ r(k, {}),
|
|
180
180
|
isLoading: a = !1,
|
|
181
181
|
limit: d,
|
|
182
182
|
keyPrefix: s
|
|
183
183
|
}) => /* @__PURE__ */ r(A, { fallbackComponent: o, children: a === !0 ? /* @__PURE__ */ r(
|
|
184
|
-
|
|
184
|
+
F,
|
|
185
185
|
{
|
|
186
186
|
isLoading: a,
|
|
187
187
|
limit: d,
|
|
@@ -257,7 +257,7 @@ const E = y.div`
|
|
|
257
257
|
)
|
|
258
258
|
] }),
|
|
259
259
|
/* @__PURE__ */ r(E, { limit: c, children: /* @__PURE__ */ r(
|
|
260
|
-
|
|
260
|
+
X,
|
|
261
261
|
{
|
|
262
262
|
isLoading: b,
|
|
263
263
|
limit: c,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const i=require("react/jsx-runtime"),s=require("react"),p=require("./emotion-styled.browser.esm-BtEseadx.cjs"),S=require("./consts-goSZX3xP.cjs"),b=require("./useDetectMobile-zkbzoOGV.cjs"),q=require("./index-
|
|
1
|
+
"use strict";const i=require("react/jsx-runtime"),s=require("react"),p=require("./emotion-styled.browser.esm-BtEseadx.cjs"),S=require("./consts-goSZX3xP.cjs"),b=require("./useDetectMobile-zkbzoOGV.cjs"),q=require("./index-DMysapsB.cjs"),C=require("./suspense-large-DMhn-lIG.cjs"),f=p.styled.div`
|
|
2
2
|
display: grid;
|
|
3
3
|
grid-template-columns: ${l=>`repeat(${l.limit}, minmax(0, 1fr))`};
|
|
4
4
|
gap: 1.25rem;
|
|
@@ -3,8 +3,8 @@ import { memo as c, forwardRef as f, useMemo as S } from "react";
|
|
|
3
3
|
import { s as C } from "./emotion-styled.browser.esm-BNN1dTl3.js";
|
|
4
4
|
import { M as b } from "./consts-BuFChS64.js";
|
|
5
5
|
import { u as B } from "./useDetectMobile-Bkvj0VMa.js";
|
|
6
|
-
import { B as M } from "./index-
|
|
7
|
-
import { S as L } from "./suspense-large-
|
|
6
|
+
import { B as M } from "./index-Cru8Sd2q.js";
|
|
7
|
+
import { S as L } from "./suspense-large-DgzTM-qh.js";
|
|
8
8
|
const h = C.div`
|
|
9
9
|
display: grid;
|
|
10
10
|
grid-template-columns: ${(l) => `repeat(${l.limit}, minmax(0, 1fr))`};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const r=require("react/jsx-runtime"),c=require("react"),p=require("./emotion-styled.browser.esm-BtEseadx.cjs"),S=require("./consts-goSZX3xP.cjs"),N=require("./useDetectMobile-zkbzoOGV.cjs"),u=require("./utils-
|
|
1
|
+
"use strict";const r=require("react/jsx-runtime"),c=require("react"),p=require("./emotion-styled.browser.esm-BtEseadx.cjs"),S=require("./consts-goSZX3xP.cjs"),N=require("./useDetectMobile-zkbzoOGV.cjs"),u=require("./utils-BWzf4vLl.cjs"),x=require("./style-B8wrlDzY.cjs"),q=require("./Button.cjs"),R=require("./Link.cjs"),M=require("./index-BRgZcjpI.cjs"),B=p.styled.div`
|
|
2
2
|
display: grid;
|
|
3
3
|
grid-template-columns: ${t=>`repeat(${t.limit}, minmax(0, 1fr))`};
|
|
4
4
|
gap: 1.25rem;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { jsxs as
|
|
1
|
+
import { jsxs as m, jsx as r, Fragment as g } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef as u, Suspense as B, memo as P, useMemo as R } from "react";
|
|
3
3
|
import { s as h } from "./emotion-styled.browser.esm-BNN1dTl3.js";
|
|
4
4
|
import { M as k } from "./consts-BuFChS64.js";
|
|
5
5
|
import { u as T } from "./useDetectMobile-Bkvj0VMa.js";
|
|
6
|
-
import {
|
|
7
|
-
import { R as W } from "./style-
|
|
6
|
+
import { o as I, p as U, k as b } from "./utils-BXCGNjIy.js";
|
|
7
|
+
import { R as W } from "./style-C3-67TPD.js";
|
|
8
8
|
import z from "./Button.js";
|
|
9
9
|
import j from "./Link.js";
|
|
10
|
-
import { P as A } from "./index-
|
|
10
|
+
import { P as A } from "./index-D86vS9UF.js";
|
|
11
11
|
const E = h.div`
|
|
12
12
|
display: grid;
|
|
13
13
|
grid-template-columns: ${(t) => `repeat(${t.limit}, minmax(0, 1fr))`};
|
|
@@ -80,9 +80,9 @@ const E = h.div`
|
|
|
80
80
|
}
|
|
81
81
|
`, L = u((t, o) => {
|
|
82
82
|
const { title: i, imageUrl: n, text: l, onCardClick: c, readMoreText: s = "Read more" } = t;
|
|
83
|
-
return /* @__PURE__ */
|
|
83
|
+
return /* @__PURE__ */ m(w, { ref: o, className: "blog-card", onClick: c, children: [
|
|
84
84
|
/* @__PURE__ */ r(A, { src: n }),
|
|
85
|
-
/* @__PURE__ */
|
|
85
|
+
/* @__PURE__ */ m(y, { children: [
|
|
86
86
|
/* @__PURE__ */ r("div", { className: "text-wr-title", children: i }),
|
|
87
87
|
/* @__PURE__ */ r("div", { className: "text-wr", children: l })
|
|
88
88
|
] }),
|
|
@@ -90,7 +90,7 @@ const E = h.div`
|
|
|
90
90
|
] });
|
|
91
91
|
}), _ = u(({}, t) => (
|
|
92
92
|
// <LandingPageClearProductCardSkeleton />
|
|
93
|
-
/* @__PURE__ */
|
|
93
|
+
/* @__PURE__ */ m(w, { className: "product-card", children: [
|
|
94
94
|
/* @__PURE__ */ r("div", { className: "skeleton-img" }),
|
|
95
95
|
/* @__PURE__ */ r("div", { className: "card-title" }),
|
|
96
96
|
/* @__PURE__ */ r(y, {})
|
|
@@ -130,7 +130,7 @@ const E = h.div`
|
|
|
130
130
|
getImage: f = () => {
|
|
131
131
|
},
|
|
132
132
|
readMoreText: v = "Read more"
|
|
133
|
-
} = t, M = T(), $ = R(() => /* @__PURE__ */ r(g, { children: M === !0 ? a == null ? void 0 : a.map((e,
|
|
133
|
+
} = t, M = T(), $ = R(() => /* @__PURE__ */ r(g, { children: M === !0 ? a == null ? void 0 : a.map((e, d) => /* @__PURE__ */ r(
|
|
134
134
|
S,
|
|
135
135
|
{
|
|
136
136
|
title: e == null ? void 0 : e.title,
|
|
@@ -140,8 +140,8 @@ const E = h.div`
|
|
|
140
140
|
readMoreText: v,
|
|
141
141
|
onCardClick: () => c(e == null ? void 0 : e.titleSlug)
|
|
142
142
|
},
|
|
143
|
-
|
|
144
|
-
)) : a == null ? void 0 : a.slice(0, p).map((e,
|
|
143
|
+
d
|
|
144
|
+
)) : a == null ? void 0 : a.slice(0, p).map((e, d) => /* @__PURE__ */ r(
|
|
145
145
|
S,
|
|
146
146
|
{
|
|
147
147
|
title: e == null ? void 0 : e.title,
|
|
@@ -151,11 +151,11 @@ const E = h.div`
|
|
|
151
151
|
readMoreText: v,
|
|
152
152
|
onCardClick: () => c(e == null ? void 0 : e.titleSlug)
|
|
153
153
|
},
|
|
154
|
-
|
|
154
|
+
d
|
|
155
155
|
)) }), [a]);
|
|
156
|
-
return /* @__PURE__ */
|
|
157
|
-
/* @__PURE__ */
|
|
158
|
-
/* @__PURE__ */
|
|
156
|
+
return /* @__PURE__ */ m(W, { ref: o, children: [
|
|
157
|
+
/* @__PURE__ */ m("div", { className: "regular-title", children: [
|
|
158
|
+
/* @__PURE__ */ m("div", { className: "regular-title-text", children: [
|
|
159
159
|
b(i) && /* @__PURE__ */ r("i", { className: i }),
|
|
160
160
|
/* @__PURE__ */ r("span", { children: n })
|
|
161
161
|
] }),
|
|
@@ -166,8 +166,8 @@ const E = h.div`
|
|
|
166
166
|
btnType: "tinted",
|
|
167
167
|
color: "gray",
|
|
168
168
|
onClick: (e) => {
|
|
169
|
-
var
|
|
170
|
-
(
|
|
169
|
+
var d;
|
|
170
|
+
(d = e == null ? void 0 : e.target) == null || d.blur(), l(s);
|
|
171
171
|
},
|
|
172
172
|
borderRadius: "curved",
|
|
173
173
|
children: C
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const t=require("react/jsx-runtime"),l=require("react"),u=require("./emotion-styled.browser.esm-BtEseadx.cjs"),p=require("./consts-goSZX3xP.cjs"),x=require("./useDetectMobile-zkbzoOGV.cjs"),m=require("./utils-
|
|
1
|
+
"use strict";const t=require("react/jsx-runtime"),l=require("react"),u=require("./emotion-styled.browser.esm-BtEseadx.cjs"),p=require("./consts-goSZX3xP.cjs"),x=require("./useDetectMobile-zkbzoOGV.cjs"),m=require("./utils-BWzf4vLl.cjs"),w=require("./Button.cjs"),b=require("./index-BRgZcjpI.cjs"),j=u.styled.div`
|
|
2
2
|
display: grid;
|
|
3
3
|
grid-template-columns: ${i=>`repeat(${i.limit}, minmax(0, 1fr))`};
|
|
4
4
|
gap: 1.25rem;
|
|
@@ -3,9 +3,9 @@ import { forwardRef as p, Suspense as k } from "react";
|
|
|
3
3
|
import { s as g } from "./emotion-styled.browser.esm-BNN1dTl3.js";
|
|
4
4
|
import { M as h } from "./consts-BuFChS64.js";
|
|
5
5
|
import { u as C } from "./useDetectMobile-Bkvj0VMa.js";
|
|
6
|
-
import {
|
|
6
|
+
import { o as f, p as v } from "./utils-BXCGNjIy.js";
|
|
7
7
|
import y from "./Button.js";
|
|
8
|
-
import { P as S } from "./index-
|
|
8
|
+
import { P as S } from "./index-D86vS9UF.js";
|
|
9
9
|
const $ = g.div`
|
|
10
10
|
display: grid;
|
|
11
11
|
grid-template-columns: ${(i) => `repeat(${i.limit}, minmax(0, 1fr))`};
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
"use strict";const
|
|
1
|
+
"use strict";const e=require("react/jsx-runtime"),d=require("react"),p=require("./emotion-styled.browser.esm-BtEseadx.cjs"),w=require("./consts-goSZX3xP.cjs"),B=require("./useDetectMobile-zkbzoOGV.cjs"),c=require("./utils-BWzf4vLl.cjs"),M=require("./style-B8wrlDzY.cjs"),R=require("./Button.cjs"),W=require("./Link.cjs"),A=require("./index-BRgZcjpI.cjs"),I=require("./index-66FyQgVV.cjs"),P=p.styled.div`
|
|
2
2
|
display: grid;
|
|
3
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: ${w.MOBILE_SIZE_PX+"px"}) {
|
|
7
7
|
grid-template-columns: repeat(1, 1fr);
|
|
8
8
|
}
|
|
9
|
-
`,
|
|
9
|
+
`,k=p.styled.div`
|
|
10
10
|
display: flex;
|
|
11
11
|
width: 100%;
|
|
12
12
|
box-shadow: 0px 1px 3px 0px rgba(0, 0, 0, 0.1),
|
|
@@ -46,9 +46,9 @@
|
|
|
46
46
|
margin-top: auto;
|
|
47
47
|
}
|
|
48
48
|
|
|
49
|
-
@media (max-width: ${
|
|
49
|
+
@media (max-width: ${w.MOBILE_SIZE_PX+"px"}) {
|
|
50
50
|
}
|
|
51
|
-
`,
|
|
51
|
+
`,v=p.styled.div`
|
|
52
52
|
display: flex;
|
|
53
53
|
flex-direction: column;
|
|
54
54
|
gap: 0.5rem;
|
|
@@ -77,4 +77,4 @@
|
|
|
77
77
|
color: var(--gray-700, #4e555f);
|
|
78
78
|
${c.truncateTextInRows(3)}
|
|
79
79
|
}
|
|
80
|
-
`,
|
|
80
|
+
`,_=d.forwardRef((i,s)=>{const{title:o,imageUrl:a,text:r,buttonText:u,onCardClick:l}=i;return e.jsxs(k,{ref:s,className:"blog-card",onClick:l,children:[e.jsxs(v,{children:[e.jsx("div",{className:"text-wr-title",children:o}),e.jsx("div",{className:"text-wr",children:r}),e.jsx(W,{color:"gray",onClick:l,children:u})]}),e.jsx(A.ProductImageWrapper,{src:a})]})}),z=d.forwardRef(({},i)=>e.jsxs(k,{className:"blog-card",children:[e.jsxs(v,{children:[e.jsx("div",{className:"skeleton-title"}),e.jsx("div",{className:"text-wr"}),e.jsx("div",{className:"skeleton-action"})]}),e.jsx("div",{className:"skeleton-img"})]})),E=({limit:i=3,isLoading:s=!1,keyPrefix:o})=>e.jsx(e.Fragment,{children:Array.from({length:i},(a,r)=>e.jsx(z,{isLoading:s},`${o}-skeleton-product-card-${r}`))}),F=({children:i,fallbackComponent:s=e.jsx(e.Fragment,{}),isLoading:o=!1,limit:a,keyPrefix:r})=>e.jsx(d.Suspense,{fallbackComponent:s,children:o===!0?e.jsx(E,{isLoading:o,limit:a,keyPrefix:r}):i}),f=d.memo(_),O=d.forwardRef((i,s)=>{const{icon:o,title:a,items:r,buttonText:u,limit:l=3,options:m,selectedOption:y=[],onButtonAction:S=()=>{},buttonLink:x,onSelectOption:b=()=>{},onSelectAll:N=()=>{},isLoading:C=!1,onSelectCard:g=()=>{},productsToolbarName:q="All",allButton:T=!1}=i,j=B.useDetectMobile(),$=d.useMemo(()=>{var n;return e.jsx(e.Fragment,{children:j===!0?r==null?void 0:r.map((t,h)=>e.jsx(f,{title:t==null?void 0:t.title,imageUrl:(t==null?void 0:t.image)||null,text:t==null?void 0:t.text,buttonText:t==null?void 0:t.buttonText,onCardClick:()=>g(t)},h)):(n=r==null?void 0:r.slice(0,l))==null?void 0:n.map((t,h)=>e.jsx(f,{title:t==null?void 0:t.title,imageUrl:(t==null?void 0:t.image)||null,text:t==null?void 0:t.text,buttonText:t==null?void 0:t.buttonText,onCardClick:()=>g(t)},h))})},[r,j,l,g]);return e.jsxs(M.TitleWithOptionsSectionWrapper,{ref:s,children:[e.jsxs("div",{className:"regular-title",children:[e.jsxs("div",{className:"regular-title-text",children:[c.isDefinedNotEmptyString(o)&&e.jsx("i",{className:o}),e.jsx("span",{children:a})]}),c.isDefinedNotEmptyString(x)&&e.jsx(R,{type:"button",btnType:"tinted",color:"gray",onClick:n=>{var t;(t=n==null?void 0:n.target)==null||t.blur(),S(x)},borderRadius:"curved",children:u})]}),(m==null?void 0:m.length)>0&&e.jsx(I.SelectBar,{items:m,selectedIds:y,onRemove:n=>{b(n)},onSelect:n=>{b(n)},onSelectAll:N,labelKey:"name",valueKey:"code",noMargin:!0,productsToolbarName:q,allButton:T}),e.jsx(P,{limit:l,children:e.jsx(F,{isLoading:C,limit:l,keyPrefix:"explore-landing",children:$})})]})});module.exports=O;
|