@lanaco/lnc-react-ui 4.0.195 → 4.0.196
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/BannerNextSection.cjs +104 -0
- package/dist/BannerNextSection.js +148 -0
- package/dist/BannerSectionCarousel.js +1 -1
- package/dist/BannerSectionSimple.js +1 -1
- package/dist/BannerSectionWithList.js +1 -1
- package/dist/BlogCardsSponsoredSection.js +4 -4
- package/dist/BlogCategoryCardsSection.js +1 -1
- package/dist/BlogExploreSection.js +2 -2
- package/dist/BlogListSection.js +4 -4
- package/dist/BlogProductCardsSection.js +1 -1
- package/dist/BlogShopCardsSection.js +1 -1
- package/dist/BlogSingleSection.js +2 -2
- package/dist/BlogsSectionDetailed.js +4 -4
- package/dist/BlogsSectionLarge.js +7 -7
- package/dist/BlogsSectionSimple.js +4 -4
- package/dist/BlogsSectionSimpleCentered.js +6 -6
- package/dist/BlogsSectionWithFilters.js +5 -5
- package/dist/BrandHitsSection.js +2 -2
- 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-CEzArySG.js → CategorySimpleCard-Em84kZzQ.js} +4 -4
- 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-6WboE3g5.js → CustomStyles-DtWxboEM.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 +4 -4
- package/dist/DetailedProductsInfinitiveSection.js +80 -110
- package/dist/DetailedProductsSection.cjs +13 -4
- package/dist/DetailedProductsSection.js +104 -82
- 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.js +2 -2
- package/dist/FieldOfInterestsWithAvatarsCardsSection.js +15 -15
- package/dist/FieldOfInterestsWithTagsCardsSection.js +2 -2
- 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.js +2 -2
- package/dist/GiftCardsSection.js +3 -3
- 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.js +2 -2
- 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.js +1 -1
- package/dist/PasswordInput.js +1 -1
- package/dist/PopoverContent.js +1 -1
- package/dist/ProductsWithBannerSection.js +4 -4
- package/dist/ProgressBar.js +1 -1
- package/dist/QuattroCardsSection.js +2 -2
- package/dist/QuizSection.js +1 -1
- package/dist/RadioInput.js +1 -1
- package/dist/RangeSlider.js +1 -1
- package/dist/ReviewsSection.js +3 -3
- package/dist/SalesCampaignsSection.js +2 -2
- package/dist/Separator.js +1 -1
- package/dist/ShopCardsSection.js +3 -3
- package/dist/Sidebar.js +1 -1
- package/dist/SimpleCategoriesSection.js +13 -13
- package/dist/SimpleProductsSection.js +2 -2
- package/dist/Spinner.js +1 -1
- package/dist/StatsSection.js +1 -1
- 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.js +1 -1
- package/dist/index-4wvppFLx.js +38 -0
- package/dist/{index-C_NnINik.js → index-B22BZVBG.js} +1 -1
- package/dist/{index-Csxc_5p0.js → index-BASX-BjS.js} +3 -3
- package/dist/{index-BSpdEGFd.js → index-BC2PHcI1.js} +1 -1
- package/dist/{index-BovNbKxB.js → index-CBMsUFkS.js} +1 -1
- package/dist/{index-BGiZlEQt.js → index-CWALXP1T.js} +1 -1
- package/dist/{index-DMHtIdm-.js → index-Cm414y95.js} +2 -2
- package/dist/{index-9inVkeN6.js → index-D-86mDtn.js} +2 -2
- package/dist/{index-DxwIu0Wn.js → index-TIqKd2Dv.js} +1 -1
- package/dist/{index-8quQ_PZS.js → index-bihqNqQk.js} +1 -1
- package/dist/index-oYE1Pl7q.cjs +1 -0
- package/dist/{index-BB63Jo6p.js → index-u_XFwsvc.js} +2 -2
- package/dist/index.cjs +1 -1
- package/dist/index.js +7 -5
- package/dist/{style-CXMUA6cI.js → style-BwQ4djFC.js} +3 -3
- package/dist/{style-C7FUSHmS.js → style-Cmlod7oq.js} +1 -1
- package/dist/{utils-Dc5zIpaz.js → utils-DtEfC-TX.js} +3 -3
- package/package.json +3 -2
- package/vite.config.js +64 -60
package/dist/CheckBoxInput.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsxs as u, jsx as i, Fragment as B } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef as I } from "react";
|
|
3
3
|
import { s as j } from "./emotion-styled.browser.esm-BNN1dTl3.js";
|
|
4
|
-
import { d as k, c as L, b as t, a as N, e as x } from "./utils-
|
|
4
|
+
import { d as k, c as L, b as t, a as N, e as x } from "./utils-DtEfC-TX.js";
|
|
5
5
|
import { u as R } from "./emotion-element-f0de968e.browser.esm-CkCiQliQ.js";
|
|
6
6
|
const W = (e) => e == "left" ? "row-reverse" : "row", n = (e, h) => `calc(${e.components.Checkbox.default.enabled.sizes[h]} / 2)`, F = j.label`
|
|
7
7
|
-webkit-user-select: none;
|
package/dist/Chip.js
CHANGED
|
@@ -2,7 +2,7 @@ import { jsxs as u, jsx as c, Fragment as N } from "react/jsx-runtime";
|
|
|
2
2
|
import { forwardRef as j } from "react";
|
|
3
3
|
import { P as a } from "./index-CblbdqjE.js";
|
|
4
4
|
import { s as B } from "./emotion-styled.browser.esm-BNN1dTl3.js";
|
|
5
|
-
import { d as b, h as D, b as t, a as F, c as S, g as V, e as U } from "./utils-
|
|
5
|
+
import { d as b, h as D, b as t, a as F, c as S, g as V, e as U } from "./utils-DtEfC-TX.js";
|
|
6
6
|
import W from "./Avatar.js";
|
|
7
7
|
import { u as A } from "./emotion-element-f0de968e.browser.esm-CkCiQliQ.js";
|
|
8
8
|
const h = (e) => {
|
package/dist/ColorInput.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as a, jsxs as p } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef as q, useState as S, useCallback as G } from "react";
|
|
3
3
|
import { s as w } from "./emotion-styled.browser.esm-BNN1dTl3.js";
|
|
4
|
-
import { c as J, d as r, b as d, a as V, e as v, f as M, h as Q } from "./utils-
|
|
4
|
+
import { c as J, d as r, b as d, a as V, e as v, f as M, h as Q } from "./utils-DtEfC-TX.js";
|
|
5
5
|
import { d as X } from "./index-Dt62UGku.js";
|
|
6
6
|
import { u as Y } from "./emotion-element-f0de968e.browser.esm-CkCiQliQ.js";
|
|
7
7
|
import { u as Z } from "./useUpdateEffect-CuYWz7EA.js";
|
package/dist/ConfirmationForm.js
CHANGED
|
@@ -3,7 +3,7 @@ import { forwardRef as S, cloneElement as E } from "react";
|
|
|
3
3
|
import { P as r } from "./index-CblbdqjE.js";
|
|
4
4
|
import { s as f } from "./emotion-styled.browser.esm-BNN1dTl3.js";
|
|
5
5
|
import m from "./Icon.js";
|
|
6
|
-
import { b as d } from "./utils-
|
|
6
|
+
import { b as d } from "./utils-DtEfC-TX.js";
|
|
7
7
|
import M from "./Modal.js";
|
|
8
8
|
import { u as V } from "./emotion-element-f0de968e.browser.esm-CkCiQliQ.js";
|
|
9
9
|
const q = f.div`
|
|
@@ -2,7 +2,7 @@ import { jsxs as q, jsx as t } from "react/jsx-runtime";
|
|
|
2
2
|
import { forwardRef as z } from "react";
|
|
3
3
|
import { s as D } from "./emotion-styled.browser.esm-BNN1dTl3.js";
|
|
4
4
|
import { M as G } from "./consts-BuFChS64.js";
|
|
5
|
-
import { L as J } from "./index-
|
|
5
|
+
import { L as J } from "./index-bihqNqQk.js";
|
|
6
6
|
import K from "./LoanCalculatorSection.js";
|
|
7
7
|
const N = D.div`
|
|
8
8
|
display: flex;
|
|
@@ -7,7 +7,7 @@ import { _ as Zt } from "./objectWithoutPropertiesLoose-DhwSMsjf.js";
|
|
|
7
7
|
import { r as Pt } from "./index-B1vKwsDE.js";
|
|
8
8
|
import { a as Ht } from "./floating-ui.dom-B931An3C.js";
|
|
9
9
|
import { i as Ve } from "./use-isomorphic-layout-effect.browser.esm-DERp5kr6.js";
|
|
10
|
-
import { b as Z, a as ue, g as Nt, d as te,
|
|
10
|
+
import { b as Z, a as ue, g as Nt, d as te, n as Mt } from "./utils-DtEfC-TX.js";
|
|
11
11
|
function We(n, e) {
|
|
12
12
|
var i = Object.keys(n);
|
|
13
13
|
if (Object.getOwnPropertySymbols) {
|
package/dist/DateInput.js
CHANGED
|
@@ -4,7 +4,7 @@ import m, { createElement as $a, Component as Ba, createRef as ja, forwardRef as
|
|
|
4
4
|
import { P as J } from "./index-CblbdqjE.js";
|
|
5
5
|
import Qa from "./Icon.js";
|
|
6
6
|
import { s as Ka } from "./emotion-styled.browser.esm-BNN1dTl3.js";
|
|
7
|
-
import { c as hr, b as $ } from "./utils-
|
|
7
|
+
import { c as hr, b as $ } from "./utils-DtEfC-TX.js";
|
|
8
8
|
import { c as le } from "./index-fN7hCOo3.js";
|
|
9
9
|
import { c as wt, a as Va, d as R, e as L, g as Y, _, f as I } from "./defineProperty-DF3p0mVo.js";
|
|
10
10
|
import { a as x } from "./setPrototypeOf-CttqfWo1.js";
|
package/dist/DecimalInput.js
CHANGED
|
@@ -3,7 +3,7 @@ import { P as v } from "./index-CblbdqjE.js";
|
|
|
3
3
|
import k, { forwardRef as oe, useState as ne, useCallback as se } from "react";
|
|
4
4
|
import { d as fe } from "./index-Dt62UGku.js";
|
|
5
5
|
import { s as G } from "./emotion-styled.browser.esm-BNN1dTl3.js";
|
|
6
|
-
import { d as B, b as w, a as le, e as ue, h as W, c as ce } from "./utils-
|
|
6
|
+
import { d as B, b as w, a as le, e as ue, h as W, c as ce } from "./utils-DtEfC-TX.js";
|
|
7
7
|
import { u as pe } from "./emotion-element-f0de968e.browser.esm-CkCiQliQ.js";
|
|
8
8
|
function A() {
|
|
9
9
|
}
|
package/dist/DecimalInputV2.js
CHANGED
|
@@ -2,7 +2,7 @@ import { jsxs as Y, jsx as N } from "react/jsx-runtime";
|
|
|
2
2
|
import { P as l } from "./index-CblbdqjE.js";
|
|
3
3
|
import { forwardRef as Z, useState as P, useRef as _, useEffect as v } from "react";
|
|
4
4
|
import { s as O } from "./emotion-styled.browser.esm-BNN1dTl3.js";
|
|
5
|
-
import { d as f, b as c, a as R, e as A, h as W, c as ee } from "./utils-
|
|
5
|
+
import { d as f, b as c, a as R, e as A, h as W, c as ee } from "./utils-DtEfC-TX.js";
|
|
6
6
|
import { u as te } from "./emotion-element-f0de968e.browser.esm-CkCiQliQ.js";
|
|
7
7
|
const ne = O.div`
|
|
8
8
|
display: flex;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const t=require("react/jsx-runtime"),
|
|
1
|
+
"use strict";const t=require("react/jsx-runtime"),a=require("react"),V=require("./emotion-styled.browser.esm-BtEseadx.cjs"),K=require("./consts-goSZX3xP.cjs"),Q=require("./IconButton.cjs"),G=require("./Button.cjs"),n=require("./utils-RnrgDDZP.cjs"),X=require("./useDetectMobile-zkbzoOGV.cjs"),p=require("./index-CS4w87SW.cjs"),Z=require("./index-CSNxZFTX.cjs"),H=require("./index-oYE1Pl7q.cjs"),J=V.styled.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex-direction: column;
|
|
4
4
|
gap: 1.5rem;
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
|
|
33
33
|
& .section__items {
|
|
34
34
|
display: grid;
|
|
35
|
-
grid-template-columns: ${
|
|
35
|
+
grid-template-columns: ${s=>`repeat(${s.limit}, minmax(0, 1fr))`};
|
|
36
36
|
gap: 2rem;
|
|
37
37
|
}
|
|
38
38
|
|
|
@@ -56,7 +56,7 @@
|
|
|
56
56
|
white-space: nowrap;
|
|
57
57
|
}
|
|
58
58
|
|
|
59
|
-
@media (max-width: ${
|
|
59
|
+
@media (max-width: ${K.MOBILE_SIZE_PX+"px"}) {
|
|
60
60
|
gap: 1.25rem;
|
|
61
61
|
|
|
62
62
|
& .section__items {
|
|
@@ -79,4 +79,4 @@
|
|
|
79
79
|
}
|
|
80
80
|
}
|
|
81
81
|
}
|
|
82
|
-
`,
|
|
82
|
+
`,W=a.memo(p.DetailedProductCard),Y=a.forwardRef((s,g)=>{const{title:l,icon:c,items:o,limit:f=4,isLoading:r=!1,onSelectCard:b=()=>{},onLoadMore:h=()=>{},onButtonAction:_=()=>{},getImage:y=()=>{},viewAllbuttonLink:d,viewAllButonText:u="View all",negotiableText:S,freeText:w,loadMoreButtonIcon:v="angle-down",sponsoredText:k,onBookmark:C=()=>{},actionComponent:N,componentName:j,hasNextPage:q=!1,LinkComponent:P,urgentText:L,options:B=[],isLoadingOptions:O=!1,selectedOption:D,onSelectOption:M=()=>{},onRemoveOption:E=()=>{},allOptionsEnabled:I=!1,allOptionsLabel:T="All",onSelectAllOptions:R=()=>{},optionLabel:A="label",optionValue:z="value",optionCode:F="code"}=s,m=X.useDetectMobile(),$=a.useMemo(()=>o==null?void 0:o.map((e,i)=>t.jsx(W,{name:e==null?void 0:e.name,price:e==null?void 0:e.price,sellingPrice:e==null?void 0:e.sellingPrice,currency:e==null?void 0:e.currency,image:e==null?void 0:e.image,sellerUuid:e==null?void 0:e.sellerUuid,uuid:e==null?void 0:e.uuid,sponsored:e==null?void 0:e.sponsored,imageComponent:e==null?void 0:e.imageComponent,onSelectCard:(x,U)=>b({uuid:e==null?void 0:e.uuid,nameSlug:e==null?void 0:e.nameSlug,cardRef:U}),nameSlug:e==null?void 0:e.nameSlug,imageUrl:y(e==null?void 0:e.image,e==null?void 0:e.uuid,e==null?void 0:e.sellerUuid)||null,isFree:e==null?void 0:e.isFree,isNegotiable:e==null?void 0:e.isNegotiable,negotiableText:S,freeText:w,tags:e==null?void 0:e.tags,categoryCode:e==null?void 0:e.categoryCode,condition:e==null?void 0:e.condition,quantity:e==null?void 0:e.quantity,hasQuantities:e==null?void 0:e.hasQuantities,status:e==null?void 0:e.status,trade:e==null?void 0:e.trade,sponsoredText:k,onBookmark:C,actionComponent:N,bookmarked:e==null?void 0:e.bookmarked,bookmarkLists:e==null?void 0:e.bookmarkLists,metadata:{accessor:e==null?void 0:e.accessor,name:j},sellerName:e==null?void 0:e.sellerName,forCart:e==null?void 0:e.forCart,forOrder:e==null?void 0:e.forOrder,contactSeller:e==null?void 0:e.contactSeller,hasVariants:e==null?void 0:e.hasVariants,LinkComponent:P,activeSalesPackages:e==null?void 0:e.activeSalesPackages,urgentText:L,hasFreeShipping:e==null?void 0:e.hasFreeShipping},i)),[o]);return t.jsxs(J,{ref:g,limit:f,children:[t.jsxs("div",{className:"section__heading",children:[n.isDefinedNotEmptyString(l)&&t.jsxs("div",{className:"section__title",children:[n.isDefinedNotEmptyString(c)&&t.jsx("i",{className:c})," ",l]}),m&&n.isDefinedNotEmptyString(d)&&n.isDefinedNotEmptyString(u)&&!r&&t.jsx(G,{type:"button",btnType:"tinted",color:"neutral",onClick:e=>{var i;(i=e==null?void 0:e.target)==null||i.blur(),_(d)},borderRadius:"curved",className:"section__view-all",children:u})]}),t.jsx(H.SuspenseSelectBar,{isLoading:O,children:t.jsx(Z.SelectBar,{items:B,selectedIds:D,onRemove:E,onSelect:M,allButton:I,onSelectAll:R,labelKey:A,valueKey:z,codeKey:F,noMargin:!0,productsToolbarName:T,noGradient:!0,className:"section__options"})}),t.jsx(p.SuspenseDetailedProductCard,{isLoading:r,keyPrefix:"detailed-product-card-skeleton",children:t.jsx("div",{className:"section__items",children:$})}),!m&&!r&&q&&t.jsx(Q,{icon:v,borderRadius:"curved",btnType:"basic",color:"neutral",className:"section__show-more",onClick:h})]})});module.exports=Y;
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import { s as
|
|
4
|
-
import { M as
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import { k as
|
|
8
|
-
import { u as
|
|
9
|
-
import { D as
|
|
10
|
-
import { S as
|
|
11
|
-
import {
|
|
12
|
-
const
|
|
1
|
+
import { jsx as o, jsxs as s } from "react/jsx-runtime";
|
|
2
|
+
import { memo as j, forwardRef as K, useMemo as q } from "react";
|
|
3
|
+
import { s as Q } from "./emotion-styled.browser.esm-BNN1dTl3.js";
|
|
4
|
+
import { M as G } from "./consts-BuFChS64.js";
|
|
5
|
+
import X from "./IconButton.js";
|
|
6
|
+
import Z from "./Button.js";
|
|
7
|
+
import { k as a } from "./utils-DtEfC-TX.js";
|
|
8
|
+
import { u as H } from "./useDetectMobile-Bkvj0VMa.js";
|
|
9
|
+
import { D as J, S as W } from "./index-BASX-BjS.js";
|
|
10
|
+
import { S as Y } from "./index-CWALXP1T.js";
|
|
11
|
+
import { S as x } from "./index-4wvppFLx.js";
|
|
12
|
+
const ee = Q.div`
|
|
13
13
|
display: flex;
|
|
14
14
|
flex-direction: column;
|
|
15
15
|
gap: 1.5rem;
|
|
@@ -43,7 +43,7 @@ const ie = f.div`
|
|
|
43
43
|
|
|
44
44
|
& .section__items {
|
|
45
45
|
display: grid;
|
|
46
|
-
grid-template-columns: ${(
|
|
46
|
+
grid-template-columns: ${(n) => `repeat(${n.limit}, minmax(0, 1fr))`};
|
|
47
47
|
gap: 2rem;
|
|
48
48
|
}
|
|
49
49
|
|
|
@@ -67,7 +67,7 @@ const ie = f.div`
|
|
|
67
67
|
white-space: nowrap;
|
|
68
68
|
}
|
|
69
69
|
|
|
70
|
-
@media (max-width: ${
|
|
70
|
+
@media (max-width: ${G + "px"}) {
|
|
71
71
|
gap: 1.25rem;
|
|
72
72
|
|
|
73
73
|
& .section__items {
|
|
@@ -90,80 +90,50 @@ const ie = f.div`
|
|
|
90
90
|
}
|
|
91
91
|
}
|
|
92
92
|
}
|
|
93
|
-
`,
|
|
94
|
-
/* @__PURE__ */ o(
|
|
95
|
-
m,
|
|
96
|
-
{
|
|
97
|
-
width: "5rem",
|
|
98
|
-
borderRadius: "0.75rem"
|
|
99
|
-
},
|
|
100
|
-
`${t}-1`
|
|
101
|
-
),
|
|
102
|
-
/* @__PURE__ */ o(
|
|
103
|
-
m,
|
|
104
|
-
{
|
|
105
|
-
width: "5rem",
|
|
106
|
-
borderRadius: "0.75rem"
|
|
107
|
-
},
|
|
108
|
-
`${t}-2`
|
|
109
|
-
),
|
|
110
|
-
/* @__PURE__ */ o(
|
|
111
|
-
m,
|
|
112
|
-
{
|
|
113
|
-
width: "5rem",
|
|
114
|
-
borderRadius: "0.75rem"
|
|
115
|
-
},
|
|
116
|
-
`${t}-3`
|
|
117
|
-
)
|
|
118
|
-
] }), ae = ({
|
|
119
|
-
keyPrefix: t,
|
|
120
|
-
isLoading: c = !1,
|
|
121
|
-
fallbackComponent: i = /* @__PURE__ */ o(q, {}),
|
|
122
|
-
children: n
|
|
123
|
-
}) => /* @__PURE__ */ o(Q, { fallbackComponent: i, children: c === !0 ? /* @__PURE__ */ o(re, { keyPrefix: t }) : n }), se = G(x), _e = W((t, c) => {
|
|
93
|
+
`, oe = j(J), ge = K((n, p) => {
|
|
124
94
|
const {
|
|
125
|
-
title:
|
|
126
|
-
icon:
|
|
127
|
-
items:
|
|
128
|
-
limit:
|
|
129
|
-
isLoading:
|
|
130
|
-
onSelectCard:
|
|
95
|
+
title: l,
|
|
96
|
+
icon: c,
|
|
97
|
+
items: t,
|
|
98
|
+
limit: g = 4,
|
|
99
|
+
isLoading: r = !1,
|
|
100
|
+
onSelectCard: f = () => {
|
|
131
101
|
},
|
|
132
|
-
onLoadMore:
|
|
102
|
+
onLoadMore: b = () => {
|
|
133
103
|
},
|
|
134
|
-
onButtonAction:
|
|
104
|
+
onButtonAction: h = () => {
|
|
135
105
|
},
|
|
136
106
|
getImage: _ = () => {
|
|
137
107
|
},
|
|
138
|
-
viewAllbuttonLink:
|
|
139
|
-
viewAllButonText:
|
|
140
|
-
negotiableText:
|
|
141
|
-
freeText:
|
|
108
|
+
viewAllbuttonLink: m,
|
|
109
|
+
viewAllButonText: d = "View all",
|
|
110
|
+
negotiableText: S,
|
|
111
|
+
freeText: w,
|
|
142
112
|
loadMoreButtonIcon: y = "angle-down",
|
|
143
|
-
sponsoredText:
|
|
144
|
-
onBookmark:
|
|
113
|
+
sponsoredText: k,
|
|
114
|
+
onBookmark: v = () => {
|
|
145
115
|
},
|
|
146
|
-
actionComponent:
|
|
147
|
-
componentName:
|
|
116
|
+
actionComponent: C,
|
|
117
|
+
componentName: N,
|
|
148
118
|
hasNextPage: P = !1,
|
|
149
|
-
LinkComponent:
|
|
150
|
-
urgentText:
|
|
151
|
-
options:
|
|
152
|
-
isLoadingOptions:
|
|
153
|
-
selectedOption:
|
|
119
|
+
LinkComponent: L,
|
|
120
|
+
urgentText: B,
|
|
121
|
+
options: O = [],
|
|
122
|
+
isLoadingOptions: M = !1,
|
|
123
|
+
selectedOption: T,
|
|
154
124
|
onSelectOption: I = () => {
|
|
155
125
|
},
|
|
156
126
|
onRemoveOption: A = () => {
|
|
157
127
|
},
|
|
158
128
|
allOptionsEnabled: D = !1,
|
|
159
|
-
allOptionsLabel:
|
|
160
|
-
onSelectAllOptions:
|
|
129
|
+
allOptionsLabel: z = "All",
|
|
130
|
+
onSelectAllOptions: E = () => {
|
|
161
131
|
},
|
|
162
|
-
optionLabel:
|
|
163
|
-
optionValue:
|
|
164
|
-
optionCode:
|
|
165
|
-
} =
|
|
166
|
-
|
|
132
|
+
optionLabel: F = "label",
|
|
133
|
+
optionValue: R = "value",
|
|
134
|
+
optionCode: U = "code"
|
|
135
|
+
} = n, u = H(), V = q(() => t == null ? void 0 : t.map((e, i) => /* @__PURE__ */ o(
|
|
136
|
+
oe,
|
|
167
137
|
{
|
|
168
138
|
name: e == null ? void 0 : e.name,
|
|
169
139
|
price: e == null ? void 0 : e.price,
|
|
@@ -174,13 +144,13 @@ const ie = f.div`
|
|
|
174
144
|
uuid: e == null ? void 0 : e.uuid,
|
|
175
145
|
sponsored: e == null ? void 0 : e.sponsored,
|
|
176
146
|
imageComponent: e == null ? void 0 : e.imageComponent,
|
|
177
|
-
onSelectCard: (
|
|
147
|
+
onSelectCard: (te, $) => f({ uuid: e == null ? void 0 : e.uuid, nameSlug: e == null ? void 0 : e.nameSlug, cardRef: $ }),
|
|
178
148
|
nameSlug: e == null ? void 0 : e.nameSlug,
|
|
179
149
|
imageUrl: _(e == null ? void 0 : e.image, e == null ? void 0 : e.uuid, e == null ? void 0 : e.sellerUuid) || null,
|
|
180
150
|
isFree: e == null ? void 0 : e.isFree,
|
|
181
151
|
isNegotiable: e == null ? void 0 : e.isNegotiable,
|
|
182
|
-
negotiableText:
|
|
183
|
-
freeText:
|
|
152
|
+
negotiableText: S,
|
|
153
|
+
freeText: w,
|
|
184
154
|
tags: e == null ? void 0 : e.tags,
|
|
185
155
|
categoryCode: e == null ? void 0 : e.categoryCode,
|
|
186
156
|
condition: e == null ? void 0 : e.condition,
|
|
@@ -188,86 +158,86 @@ const ie = f.div`
|
|
|
188
158
|
hasQuantities: e == null ? void 0 : e.hasQuantities,
|
|
189
159
|
status: e == null ? void 0 : e.status,
|
|
190
160
|
trade: e == null ? void 0 : e.trade,
|
|
191
|
-
sponsoredText:
|
|
192
|
-
onBookmark:
|
|
193
|
-
actionComponent:
|
|
161
|
+
sponsoredText: k,
|
|
162
|
+
onBookmark: v,
|
|
163
|
+
actionComponent: C,
|
|
194
164
|
bookmarked: e == null ? void 0 : e.bookmarked,
|
|
195
165
|
bookmarkLists: e == null ? void 0 : e.bookmarkLists,
|
|
196
|
-
metadata: { accessor: e == null ? void 0 : e.accessor, name:
|
|
166
|
+
metadata: { accessor: e == null ? void 0 : e.accessor, name: N },
|
|
197
167
|
sellerName: e == null ? void 0 : e.sellerName,
|
|
198
168
|
forCart: e == null ? void 0 : e.forCart,
|
|
199
169
|
forOrder: e == null ? void 0 : e.forOrder,
|
|
200
170
|
contactSeller: e == null ? void 0 : e.contactSeller,
|
|
201
171
|
hasVariants: e == null ? void 0 : e.hasVariants,
|
|
202
|
-
LinkComponent:
|
|
172
|
+
LinkComponent: L,
|
|
203
173
|
activeSalesPackages: e == null ? void 0 : e.activeSalesPackages,
|
|
204
|
-
urgentText:
|
|
174
|
+
urgentText: B,
|
|
205
175
|
hasFreeShipping: e == null ? void 0 : e.hasFreeShipping
|
|
206
176
|
},
|
|
207
|
-
|
|
208
|
-
)), [
|
|
209
|
-
return /* @__PURE__ */
|
|
210
|
-
/* @__PURE__ */
|
|
211
|
-
|
|
212
|
-
|
|
177
|
+
i
|
|
178
|
+
)), [t]);
|
|
179
|
+
return /* @__PURE__ */ s(ee, { ref: p, limit: g, children: [
|
|
180
|
+
/* @__PURE__ */ s("div", { className: "section__heading", children: [
|
|
181
|
+
a(l) && /* @__PURE__ */ s("div", { className: "section__title", children: [
|
|
182
|
+
a(c) && /* @__PURE__ */ o("i", { className: c }),
|
|
213
183
|
" ",
|
|
214
|
-
|
|
184
|
+
l
|
|
215
185
|
] }),
|
|
216
|
-
|
|
217
|
-
|
|
186
|
+
u && a(m) && a(d) && !r && /* @__PURE__ */ o(
|
|
187
|
+
Z,
|
|
218
188
|
{
|
|
219
189
|
type: "button",
|
|
220
190
|
btnType: "tinted",
|
|
221
191
|
color: "neutral",
|
|
222
192
|
onClick: (e) => {
|
|
223
|
-
var
|
|
224
|
-
(
|
|
193
|
+
var i;
|
|
194
|
+
(i = e == null ? void 0 : e.target) == null || i.blur(), h(m);
|
|
225
195
|
},
|
|
226
196
|
borderRadius: "curved",
|
|
227
197
|
className: "section__view-all",
|
|
228
|
-
children:
|
|
198
|
+
children: d
|
|
229
199
|
}
|
|
230
200
|
)
|
|
231
201
|
] }),
|
|
232
|
-
/* @__PURE__ */ o(
|
|
233
|
-
|
|
202
|
+
/* @__PURE__ */ o(x, { isLoading: M, children: /* @__PURE__ */ o(
|
|
203
|
+
Y,
|
|
234
204
|
{
|
|
235
|
-
items:
|
|
236
|
-
selectedIds:
|
|
205
|
+
items: O,
|
|
206
|
+
selectedIds: T,
|
|
237
207
|
onRemove: A,
|
|
238
208
|
onSelect: I,
|
|
239
209
|
allButton: D,
|
|
240
|
-
onSelectAll:
|
|
241
|
-
labelKey:
|
|
242
|
-
valueKey:
|
|
243
|
-
codeKey:
|
|
210
|
+
onSelectAll: E,
|
|
211
|
+
labelKey: F,
|
|
212
|
+
valueKey: R,
|
|
213
|
+
codeKey: U,
|
|
244
214
|
noMargin: !0,
|
|
245
|
-
productsToolbarName:
|
|
215
|
+
productsToolbarName: z,
|
|
246
216
|
noGradient: !0,
|
|
247
217
|
className: "section__options"
|
|
248
218
|
}
|
|
249
219
|
) }),
|
|
250
220
|
/* @__PURE__ */ o(
|
|
251
|
-
|
|
221
|
+
W,
|
|
252
222
|
{
|
|
253
|
-
isLoading:
|
|
223
|
+
isLoading: r,
|
|
254
224
|
keyPrefix: "detailed-product-card-skeleton",
|
|
255
|
-
children: /* @__PURE__ */ o("div", { className: "section__items", children:
|
|
225
|
+
children: /* @__PURE__ */ o("div", { className: "section__items", children: V })
|
|
256
226
|
}
|
|
257
227
|
),
|
|
258
|
-
!
|
|
259
|
-
|
|
228
|
+
!u && !r && P && /* @__PURE__ */ o(
|
|
229
|
+
X,
|
|
260
230
|
{
|
|
261
231
|
icon: y,
|
|
262
232
|
borderRadius: "curved",
|
|
263
233
|
btnType: "basic",
|
|
264
234
|
color: "neutral",
|
|
265
235
|
className: "section__show-more",
|
|
266
|
-
onClick:
|
|
236
|
+
onClick: b
|
|
267
237
|
}
|
|
268
238
|
)
|
|
269
239
|
] });
|
|
270
240
|
});
|
|
271
241
|
export {
|
|
272
|
-
|
|
242
|
+
ge as default
|
|
273
243
|
};
|
|
@@ -1,13 +1,22 @@
|
|
|
1
|
-
"use strict";const t=require("react/jsx-runtime"),
|
|
1
|
+
"use strict";const t=require("react/jsx-runtime"),l=require("react"),Q=require("./emotion-styled.browser.esm-BtEseadx.cjs"),K=require("./consts-goSZX3xP.cjs"),W=require("./Button.cjs"),r=require("./utils-RnrgDDZP.cjs"),z=require("./useDetectMobile-zkbzoOGV.cjs"),G=require("./style-CkcozOY6.cjs"),P=require("./index-CS4w87SW.cjs"),V=require("./index-CSNxZFTX.cjs"),X=require("./index-oYE1Pl7q.cjs"),Z=Q.styled.div`
|
|
2
2
|
display: grid;
|
|
3
|
-
grid-template-columns: ${
|
|
3
|
+
grid-template-columns: ${a=>`repeat(${a.limit}, minmax(0, 1fr))`};
|
|
4
4
|
gap: 1.25rem;
|
|
5
5
|
|
|
6
6
|
& .button-link {
|
|
7
7
|
white-space: nowrap;
|
|
8
8
|
}
|
|
9
9
|
|
|
10
|
-
|
|
10
|
+
& .section__options {
|
|
11
|
+
& button {
|
|
12
|
+
&:focus {
|
|
13
|
+
outline: none;
|
|
14
|
+
outline-offset: 0;
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
@media (max-width: ${K.MOBILE_SIZE_PX+"px"}) {
|
|
11
20
|
display: flex;
|
|
12
21
|
gap: 1rem;
|
|
13
22
|
overflow-x: auto;
|
|
@@ -26,4 +35,4 @@
|
|
|
26
35
|
/* Safari and Chrome */
|
|
27
36
|
}
|
|
28
37
|
}
|
|
29
|
-
`,v=
|
|
38
|
+
`,v=l.memo(P.DetailedProductCard),H=l.forwardRef((a,j)=>{const{icon:c,title:w,buttonLink:u,items:i,buttonText:d,limit:n=4,onSelectCard:m=()=>{},onButtonAction:L=()=>{},isLoading:p=!1,getImage:g=()=>{},negotiableText:b,freeText:S,options:F=[],isLoadingOptions:O=!1,selectedOption:D,onSelectOption:T=()=>{},onRemoveOption:U=()=>{},allOptionsEnabled:_=!1,allOptionsLabel:B="All",onSelectAllOptions:E=()=>{},optionLabel:M="label",optionValue:R="value",optionCode:I="code",sponsoredText:k,onBookmark:y=()=>{},actionComponent:h,componentName:f,LinkComponent:C,urgentText:N}=a,q=z.useDetectMobile(),$=l.useMemo(()=>t.jsx(t.Fragment,{children:q===!0?i==null?void 0:i.map((e,o)=>t.jsx(v,{name:e==null?void 0:e.name,price:e==null?void 0:e.price,sellingPrice:e==null?void 0:e.sellingPrice,currency:e==null?void 0:e.currency,image:e==null?void 0:e.image,sellerUuid:e==null?void 0:e.sellerUuid,uuid:e==null?void 0:e.uuid,sponsored:e==null?void 0:e.sponsored,imageComponent:e==null?void 0:e.imageComponent,nameSlug:e==null?void 0:e.nameSlug,onSelectCard:(A,s)=>m({uuid:e==null?void 0:e.uuid,nameSlug:e==null?void 0:e.nameSlug,cardRef:s}),sellerName:e==null?void 0:e.sellerName,imageUrl:g(e==null?void 0:e.image,e==null?void 0:e.uuid,e==null?void 0:e.sellerUuid)||null,isFree:e==null?void 0:e.isFree,isNegotiable:e==null?void 0:e.isNegotiable,negotiableText:b,freeText:S,tags:e==null?void 0:e.tags,categoryCode:e==null?void 0:e.categoryCode,condition:e==null?void 0:e.condition,quantity:e==null?void 0:e.quantity,hasQuantities:e==null?void 0:e.hasQuantities,status:e==null?void 0:e.status,trade:e==null?void 0:e.trade,forCart:e==null?void 0:e.forCart,sponsoredText:k,onBookmark:y,actionComponent:h,bookmarked:e==null?void 0:e.bookmarked,bookmarkLists:e==null?void 0:e.bookmarkLists,metadata:{accessor:e==null?void 0:e.accessor,name:f},LinkComponent:C,activeSalesPackages:e==null?void 0:e.activeSalesPackages,urgentText:N,hasFreeShipping:e==null?void 0:e.hasFreeShipping},o)):i==null?void 0:i.slice(0,n).map((e,o)=>t.jsx(v,{name:e==null?void 0:e.name,price:e==null?void 0:e.price,sellingPrice:e==null?void 0:e.sellingPrice,currency:e==null?void 0:e.currency,image:e==null?void 0:e.image,sellerUuid:e==null?void 0:e.sellerUuid,uuid:e==null?void 0:e.uuid,location:e==null?void 0:e.location,sponsored:e==null?void 0:e.sponsored,imageComponent:e==null?void 0:e.imageComponent,onSelectCard:(A,s)=>m({uuid:e==null?void 0:e.uuid,nameSlug:e==null?void 0:e.nameSlug,cardRef:s}),nameSlug:e==null?void 0:e.nameSlug,imageUrl:g(e==null?void 0:e.image,e==null?void 0:e.uuid,e==null?void 0:e.sellerUuid)||null,isFree:e==null?void 0:e.isFree,isNegotiable:e==null?void 0:e.isNegotiable,negotiableText:b,freeText:S,tags:e==null?void 0:e.tags,categoryCode:e==null?void 0:e.categoryCode,condition:e==null?void 0:e.condition,quantity:e==null?void 0:e.quantity,hasQuantities:e==null?void 0:e.hasQuantities,status:e==null?void 0:e.status,trade:e==null?void 0:e.trade,forCart:e==null?void 0:e.forCart,sponsoredText:k,onBookmark:y,actionComponent:h,bookmarked:e==null?void 0:e.bookmarked,bookmarkLists:e==null?void 0:e.bookmarkLists,metadata:{accessor:e==null?void 0:e.accessor,name:f},sellerName:e==null?void 0:e.sellerName,LinkComponent:C,activeSalesPackages:e==null?void 0:e.activeSalesPackages,urgentText:N,hasFreeShipping:e==null?void 0:e.hasFreeShipping},o))}),[i,q,n]);return t.jsxs(G.TitleWithOptionsSectionWrapper,{ref:j,children:[t.jsxs("div",{className:"regular-title",children:[t.jsxs("div",{className:"regular-title-text",children:[r.isDefinedNotEmptyString(c)&&t.jsx("i",{className:c}),t.jsx("span",{children:w})]}),r.isDefinedNotEmptyString(u)&&r.isDefinedNotEmptyString(d)&&!p&&t.jsx(W,{type:"button",btnType:"tinted",color:"neutral",onClick:e=>{var o;(o=e==null?void 0:e.target)==null||o.blur(),L(u)},borderRadius:"curved",className:"button-link",children:d})]}),t.jsx(X.SuspenseSelectBar,{isLoading:O,children:t.jsx(V.SelectBar,{items:F,selectedIds:D,onRemove:U,onSelect:T,allButton:_,onSelectAll:E,labelKey:M,valueKey:R,codeKey:I,noMargin:!0,productsToolbarName:B,noGradient:!0,className:"section__options"})}),t.jsx(P.SuspenseDetailedProductCard,{isLoading:p,keyPrefix:"detailed-products-skeleton",children:t.jsx(Z,{limit:n,children:$})})]})});module.exports=H;
|