@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,4 +1,4 @@
|
|
|
1
|
-
"use strict";const r=require("react/jsx-runtime"),o=require("react"),
|
|
1
|
+
"use strict";const r=require("react/jsx-runtime"),o=require("react"),g=require("./emotion-styled.browser.esm-BtEseadx.cjs"),p=require("./consts-goSZX3xP.cjs"),f=require("./useDetectMobile-zkbzoOGV.cjs"),W=require("./style-Db3VFbfP.cjs"),b=require("./utils-Dl9xPH4c.cjs"),C=require("./index-BueKsXT8.cjs"),i=require("./style-BAcV7F53.cjs"),_=g.styled.div`
|
|
2
2
|
width: 100%;
|
|
3
3
|
height: 22.5rem;
|
|
4
4
|
min-height: 22.5rem;
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
object-fit: cover;
|
|
17
17
|
}
|
|
18
18
|
|
|
19
|
-
@media (max-width: ${
|
|
19
|
+
@media (max-width: ${p.MOBILE_SIZE_PX+"px"}) {
|
|
20
20
|
height: 100%;
|
|
21
21
|
min-height: 100%;
|
|
22
22
|
max-height: 100%;
|
|
@@ -31,15 +31,15 @@
|
|
|
31
31
|
}
|
|
32
32
|
}
|
|
33
33
|
}
|
|
34
|
-
`,
|
|
34
|
+
`,q=g.styled.div`
|
|
35
35
|
display: grid;
|
|
36
36
|
grid-template-columns: ${t=>`repeat(${t.limit}, minmax(0, 1fr))`};
|
|
37
37
|
gap: 1.25rem;
|
|
38
38
|
|
|
39
|
-
@media (max-width: ${
|
|
39
|
+
@media (max-width: ${p.MOBILE_SIZE_PX+"px"}) {
|
|
40
40
|
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
41
41
|
}
|
|
42
|
-
|
|
42
|
+
`,$=g.styled.div`
|
|
43
43
|
display: flex;
|
|
44
44
|
flex-direction: column;
|
|
45
45
|
gap: 0.5rem;
|
|
@@ -55,22 +55,10 @@
|
|
|
55
55
|
& .card-title {
|
|
56
56
|
font-size: 0.875rem;
|
|
57
57
|
font-weight: 600;
|
|
58
|
-
|
|
58
|
+
${b.truncateTextInRows(2)}
|
|
59
59
|
}
|
|
60
60
|
|
|
61
|
-
|
|
62
|
-
background-color: ${c.linearGradientAnimation("-90deg")};
|
|
63
|
-
border-radius: 0.75rem;
|
|
64
|
-
border: 1px solid white;
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
& .skeleton-title {
|
|
68
|
-
background-color: ${c.linearGradientAnimation("-90deg")};
|
|
69
|
-
width: 100%;
|
|
70
|
-
height: 1.25rem;
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
@media (max-width: ${j.MOBILE_SIZE_PX+"px"}) {
|
|
61
|
+
@media (max-width: ${p.MOBILE_SIZE_PX+"px"}) {
|
|
74
62
|
& img {
|
|
75
63
|
width: 8.875rem;
|
|
76
64
|
height: 8.875rem;
|
|
@@ -81,4 +69,11 @@
|
|
|
81
69
|
object-fit: cover;
|
|
82
70
|
}
|
|
83
71
|
}
|
|
84
|
-
`,
|
|
72
|
+
`,v=o.forwardRef((t,a)=>{const{uuid:d,title:n,image:l,sellerUuid:k,onSelectCard:m=()=>{},imageComponent:h,metadata:s}=t,c=o.useRef(null);return r.jsxs($,{ref:c,className:"product-card",name:s==null?void 0:s.name,"data-accessor":s==null?void 0:s.accessor,onClick:u=>m(u,a),children:[b.isDefined(h)?h:r.jsx(C.ProductImageWrapper,{src:l}),r.jsx("div",{className:"card-title",children:n})]})}),I=g.styled(i.SkeletonColumnWrapper)`
|
|
73
|
+
@media (max-width: ${p.MOBILE_SIZE_PX+"px"}) {
|
|
74
|
+
& .skeleton__banner {
|
|
75
|
+
height: 100%;
|
|
76
|
+
aspect-ratio: 1 / 1;
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
`,y=({keyPrefix:t})=>r.jsxs(I,{children:[r.jsx(i.SkeletonLinePlaceholder,{height:"22.5rem",className:"skeleton__banner"}),r.jsxs(i.SkeletonRowWrapper,{children:[r.jsxs(i.SkeletonColumnWrapper,{gap:"0.5rem",children:[r.jsx(i.SkeletonSquarePlaceholder,{height:"100%",width:"100%",borderRadius:"0.75rem"}),r.jsx(i.SkeletonColumnWrapper,{height:"1rem",children:r.jsx(i.SkeletonLinePlaceholder,{height:"1rem",borderRadius:"0.75rem"})}),r.jsxs(i.SkeletonRowWrapper,{gap:"0.5rem",children:[r.jsx(i.SkeletonLinePlaceholder,{height:"1.5rem",borderRadius:"0.75rem"}),r.jsx(i.SkeletonLinePlaceholder,{height:"1.5rem",borderRadius:"0.75rem"})]}),r.jsx(i.SkeletonColumnWrapper,{height:"2rem",children:r.jsx(i.SkeletonLinePlaceholder,{height:"2rem",borderRadius:"0.75rem"})})]},`${t}-1`),r.jsxs(i.SkeletonColumnWrapper,{gap:"0.5rem",noGradient:!0,children:[r.jsx(i.SkeletonSquarePlaceholder,{height:"100%",width:"100%",borderRadius:"0.75rem"}),r.jsx(i.SkeletonLinePlaceholder,{height:"1rem",borderRadius:"0.75rem"}),r.jsxs(i.SkeletonRowWrapper,{gap:"0.5rem",noGradient:!0,children:[r.jsx(i.SkeletonLinePlaceholder,{height:"1.5rem",borderRadius:"0.75rem"}),r.jsx(i.SkeletonLinePlaceholder,{height:"1.5rem",borderRadius:"0.75rem"})]}),r.jsx(i.SkeletonLinePlaceholder,{height:"2rem",borderRadius:"0.75rem"})]},`${t}-2`),r.jsxs(i.SkeletonColumnWrapper,{gap:"0.5rem",noGradient:!0,children:[r.jsx(i.SkeletonSquarePlaceholder,{height:"100%",width:"100%",borderRadius:"0.75rem"}),r.jsx(i.SkeletonLinePlaceholder,{height:"1rem",borderRadius:"0.75rem"}),r.jsxs(i.SkeletonRowWrapper,{gap:"0.5rem",noGradient:!0,children:[r.jsx(i.SkeletonLinePlaceholder,{height:"1.5rem",borderRadius:"0.75rem"}),r.jsx(i.SkeletonLinePlaceholder,{height:"1.5rem",borderRadius:"0.75rem"})]}),r.jsx(i.SkeletonLinePlaceholder,{height:"2rem",borderRadius:"0.75rem"})]},`${t}-3`),r.jsxs(i.SkeletonColumnWrapper,{gap:"0.5rem",noGradient:!0,children:[r.jsx(i.SkeletonSquarePlaceholder,{height:"100%",width:"100%",borderRadius:"0.75rem"}),r.jsx(i.SkeletonLinePlaceholder,{height:"1rem",borderRadius:"0.75rem"}),r.jsxs(i.SkeletonRowWrapper,{gap:"0.5rem",noGradient:!0,children:[r.jsx(i.SkeletonLinePlaceholder,{height:"1.5rem",borderRadius:"0.75rem"}),r.jsx(i.SkeletonLinePlaceholder,{height:"1.5rem",borderRadius:"0.75rem"})]}),r.jsx(i.SkeletonLinePlaceholder,{height:"2rem",borderRadius:"0.75rem"})]},`${t}-4`)]})]}),E=({keyPrefix:t,isLoading:a=!1,fallbackComponent:d=r.jsx(r.Fragment,{}),children:n})=>r.jsx(o.Suspense,{fallbackComponent:d,children:a===!0?r.jsx(y,{keyPrefix:t}):n}),P=o.memo(v),M=o.forwardRef((t,a)=>{const{icon:d,items:n,limit:l=4,imageUrl:k,onSelectCard:m=()=>{},title:h="Season inspiration",isLoading:s=!1,getImage:c=()=>{},componentName:u}=t,R=f.useDetectMobile(),w=o.useMemo(()=>r.jsx(r.Fragment,{children:R===!0?n==null?void 0:n.map((e,S)=>r.jsx(P,{title:e==null?void 0:e.name,sellerUuid:e==null?void 0:e.sellerUuid,uuid:e==null?void 0:e.uuid,onSelectCard:(L,j)=>m({uuid:e==null?void 0:e.uuid,nameSlug:e==null?void 0:e.nameSlug,cardRef:j}),image:c(e==null?void 0:e.image,e==null?void 0:e.uuid,e==null?void 0:e.sellerUuid)||null,metadata:{name:u,accessor:e==null?void 0:e.accessor}},S)):n==null?void 0:n.slice(0,l).map((e,S)=>r.jsx(P,{title:e==null?void 0:e.name,sellerUuid:e==null?void 0:e.sellerUuid,uuid:e==null?void 0:e.uuid,onSelectCard:(L,j)=>m({uuid:e==null?void 0:e.uuid,nameSlug:e==null?void 0:e.nameSlug,cardRef:j}),image:c(e==null?void 0:e.image,e==null?void 0:e.uuid,e==null?void 0:e.sellerUuid)||null,metadata:{name:u,accessor:e==null?void 0:e.accessor}},S))}),[n,R,l]);return r.jsxs(W.RegulatTitleSectionWrapper,{ref:a,children:[r.jsx("div",{className:"regular-title",children:r.jsxs("div",{className:"regular-title-text",children:[b.isDefinedNotEmptyString(d)&&r.jsx("i",{className:d}),r.jsx("span",{children:h})]})}),r.jsxs(E,{isLoading:s,keyPrefix:"products-with-banner-skeleton",children:[r.jsx(_,{className:"products-banner",children:r.jsx("img",{src:k})}),r.jsx(q,{limit:l,children:w})]})]})});module.exports=M;
|
|
@@ -1,12 +1,13 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { forwardRef as
|
|
3
|
-
import { s as
|
|
4
|
-
import { M as
|
|
5
|
-
import { u as
|
|
6
|
-
import { R as
|
|
7
|
-
import {
|
|
8
|
-
import { P as D } from "./index-
|
|
9
|
-
|
|
1
|
+
import { jsxs as t, jsx as r, Fragment as P } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as W, useRef as U, Suspense as G, memo as M, useMemo as _ } from "react";
|
|
3
|
+
import { s as f } from "./emotion-styled.browser.esm-BNN1dTl3.js";
|
|
4
|
+
import { M as R } from "./consts-BuFChS64.js";
|
|
5
|
+
import { u as j } from "./useDetectMobile-Bkvj0VMa.js";
|
|
6
|
+
import { R as B } from "./style-D3pIrH3v.js";
|
|
7
|
+
import { o as I, l as y, k as z } from "./utils-DHfRApMf.js";
|
|
8
|
+
import { P as D } from "./index-BbltNcou.js";
|
|
9
|
+
import { S as o, b as i, a as l, c as b } from "./style-CXMUA6cI.js";
|
|
10
|
+
const E = f.div`
|
|
10
11
|
width: 100%;
|
|
11
12
|
height: 22.5rem;
|
|
12
13
|
min-height: 22.5rem;
|
|
@@ -24,7 +25,7 @@ const E = w.div`
|
|
|
24
25
|
object-fit: cover;
|
|
25
26
|
}
|
|
26
27
|
|
|
27
|
-
@media (max-width: ${
|
|
28
|
+
@media (max-width: ${R + "px"}) {
|
|
28
29
|
height: 100%;
|
|
29
30
|
min-height: 100%;
|
|
30
31
|
max-height: 100%;
|
|
@@ -39,15 +40,15 @@ const E = w.div`
|
|
|
39
40
|
}
|
|
40
41
|
}
|
|
41
42
|
}
|
|
42
|
-
`,
|
|
43
|
+
`, L = f.div`
|
|
43
44
|
display: grid;
|
|
44
|
-
grid-template-columns: ${(
|
|
45
|
+
grid-template-columns: ${(a) => `repeat(${a.limit}, minmax(0, 1fr))`};
|
|
45
46
|
gap: 1.25rem;
|
|
46
47
|
|
|
47
|
-
@media (max-width: ${
|
|
48
|
+
@media (max-width: ${R + "px"}) {
|
|
48
49
|
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
49
50
|
}
|
|
50
|
-
`,
|
|
51
|
+
`, T = f.div`
|
|
51
52
|
display: flex;
|
|
52
53
|
flex-direction: column;
|
|
53
54
|
gap: 0.5rem;
|
|
@@ -63,22 +64,10 @@ const E = w.div`
|
|
|
63
64
|
& .card-title {
|
|
64
65
|
font-size: 0.875rem;
|
|
65
66
|
font-weight: 600;
|
|
66
|
-
|
|
67
|
+
${I(2)}
|
|
67
68
|
}
|
|
68
69
|
|
|
69
|
-
|
|
70
|
-
background-color: ${k("-90deg")};
|
|
71
|
-
border-radius: 0.75rem;
|
|
72
|
-
border: 1px solid white;
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
& .skeleton-title {
|
|
76
|
-
background-color: ${k("-90deg")};
|
|
77
|
-
width: 100%;
|
|
78
|
-
height: 1.25rem;
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
@media (max-width: ${b + "px"}) {
|
|
70
|
+
@media (max-width: ${R + "px"}) {
|
|
82
71
|
& img {
|
|
83
72
|
width: 8.875rem;
|
|
84
73
|
height: 8.875rem;
|
|
@@ -89,114 +78,197 @@ const E = w.div`
|
|
|
89
78
|
object-fit: cover;
|
|
90
79
|
}
|
|
91
80
|
}
|
|
92
|
-
`,
|
|
81
|
+
`, q = W((a, n) => {
|
|
93
82
|
const {
|
|
94
|
-
uuid:
|
|
95
|
-
title:
|
|
96
|
-
image:
|
|
97
|
-
sellerUuid:
|
|
98
|
-
onSelectCard:
|
|
83
|
+
uuid: s,
|
|
84
|
+
title: d,
|
|
85
|
+
image: h,
|
|
86
|
+
sellerUuid: C,
|
|
87
|
+
onSelectCard: c = () => {
|
|
99
88
|
},
|
|
100
|
-
imageComponent:
|
|
101
|
-
metadata:
|
|
102
|
-
} =
|
|
103
|
-
return /* @__PURE__ */
|
|
104
|
-
|
|
89
|
+
imageComponent: u,
|
|
90
|
+
metadata: m
|
|
91
|
+
} = a, g = U(null);
|
|
92
|
+
return /* @__PURE__ */ t(
|
|
93
|
+
T,
|
|
105
94
|
{
|
|
106
|
-
ref:
|
|
95
|
+
ref: g,
|
|
107
96
|
className: "product-card",
|
|
108
|
-
name:
|
|
109
|
-
"data-accessor":
|
|
110
|
-
onClick: (
|
|
97
|
+
name: m == null ? void 0 : m.name,
|
|
98
|
+
"data-accessor": m == null ? void 0 : m.accessor,
|
|
99
|
+
onClick: (p) => c(p, n),
|
|
111
100
|
children: [
|
|
112
|
-
|
|
113
|
-
/* @__PURE__ */ r("div", { className: "card-title", children:
|
|
101
|
+
y(u) ? u : /* @__PURE__ */ r(D, { src: h }),
|
|
102
|
+
/* @__PURE__ */ r("div", { className: "card-title", children: d })
|
|
114
103
|
]
|
|
115
104
|
}
|
|
116
105
|
);
|
|
117
|
-
}),
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
isLoading: n
|
|
124
|
-
},
|
|
125
|
-
`${o}-skeleton-product-card-${a}`
|
|
126
|
-
)) }), F = ({
|
|
127
|
-
children: t,
|
|
128
|
-
fallbackComponent: n = /* @__PURE__ */ r(h, {}),
|
|
129
|
-
isLoading: o = !1,
|
|
130
|
-
limit: i,
|
|
131
|
-
keyPrefix: a
|
|
132
|
-
}) => /* @__PURE__ */ r(y, { fallbackComponent: n, children: o === !0 ? /* @__PURE__ */ r(
|
|
133
|
-
T,
|
|
134
|
-
{
|
|
135
|
-
isLoading: o,
|
|
136
|
-
limit: i,
|
|
137
|
-
keyPrefix: a
|
|
106
|
+
}), F = f(o)`
|
|
107
|
+
@media (max-width: ${R + "px"}) {
|
|
108
|
+
& .skeleton__banner {
|
|
109
|
+
height: 100%;
|
|
110
|
+
aspect-ratio: 1 / 1;
|
|
111
|
+
}
|
|
138
112
|
}
|
|
139
|
-
|
|
113
|
+
`, O = ({ keyPrefix: a }) => /* @__PURE__ */ t(F, { children: [
|
|
114
|
+
/* @__PURE__ */ r(i, { height: "22.5rem", className: "skeleton__banner" }),
|
|
115
|
+
/* @__PURE__ */ t(l, { children: [
|
|
116
|
+
/* @__PURE__ */ t(o, { gap: "0.5rem", children: [
|
|
117
|
+
/* @__PURE__ */ r(
|
|
118
|
+
b,
|
|
119
|
+
{
|
|
120
|
+
height: "100%",
|
|
121
|
+
width: "100%",
|
|
122
|
+
borderRadius: "0.75rem"
|
|
123
|
+
}
|
|
124
|
+
),
|
|
125
|
+
/* @__PURE__ */ r(o, { height: "1rem", children: /* @__PURE__ */ r(i, { height: "1rem", borderRadius: "0.75rem" }) }),
|
|
126
|
+
/* @__PURE__ */ t(l, { gap: "0.5rem", children: [
|
|
127
|
+
/* @__PURE__ */ r(i, { height: "1.5rem", borderRadius: "0.75rem" }),
|
|
128
|
+
/* @__PURE__ */ r(i, { height: "1.5rem", borderRadius: "0.75rem" })
|
|
129
|
+
] }),
|
|
130
|
+
/* @__PURE__ */ r(o, { height: "2rem", children: /* @__PURE__ */ r(i, { height: "2rem", borderRadius: "0.75rem" }) })
|
|
131
|
+
] }, `${a}-1`),
|
|
132
|
+
/* @__PURE__ */ t(
|
|
133
|
+
o,
|
|
134
|
+
{
|
|
135
|
+
gap: "0.5rem",
|
|
136
|
+
noGradient: !0,
|
|
137
|
+
children: [
|
|
138
|
+
/* @__PURE__ */ r(
|
|
139
|
+
b,
|
|
140
|
+
{
|
|
141
|
+
height: "100%",
|
|
142
|
+
width: "100%",
|
|
143
|
+
borderRadius: "0.75rem"
|
|
144
|
+
}
|
|
145
|
+
),
|
|
146
|
+
/* @__PURE__ */ r(i, { height: "1rem", borderRadius: "0.75rem" }),
|
|
147
|
+
/* @__PURE__ */ t(l, { gap: "0.5rem", noGradient: !0, children: [
|
|
148
|
+
/* @__PURE__ */ r(i, { height: "1.5rem", borderRadius: "0.75rem" }),
|
|
149
|
+
/* @__PURE__ */ r(i, { height: "1.5rem", borderRadius: "0.75rem" })
|
|
150
|
+
] }),
|
|
151
|
+
/* @__PURE__ */ r(i, { height: "2rem", borderRadius: "0.75rem" })
|
|
152
|
+
]
|
|
153
|
+
},
|
|
154
|
+
`${a}-2`
|
|
155
|
+
),
|
|
156
|
+
/* @__PURE__ */ t(
|
|
157
|
+
o,
|
|
158
|
+
{
|
|
159
|
+
gap: "0.5rem",
|
|
160
|
+
noGradient: !0,
|
|
161
|
+
children: [
|
|
162
|
+
/* @__PURE__ */ r(
|
|
163
|
+
b,
|
|
164
|
+
{
|
|
165
|
+
height: "100%",
|
|
166
|
+
width: "100%",
|
|
167
|
+
borderRadius: "0.75rem"
|
|
168
|
+
}
|
|
169
|
+
),
|
|
170
|
+
/* @__PURE__ */ r(i, { height: "1rem", borderRadius: "0.75rem" }),
|
|
171
|
+
/* @__PURE__ */ t(l, { gap: "0.5rem", noGradient: !0, children: [
|
|
172
|
+
/* @__PURE__ */ r(i, { height: "1.5rem", borderRadius: "0.75rem" }),
|
|
173
|
+
/* @__PURE__ */ r(i, { height: "1.5rem", borderRadius: "0.75rem" })
|
|
174
|
+
] }),
|
|
175
|
+
/* @__PURE__ */ r(i, { height: "2rem", borderRadius: "0.75rem" })
|
|
176
|
+
]
|
|
177
|
+
},
|
|
178
|
+
`${a}-3`
|
|
179
|
+
),
|
|
180
|
+
/* @__PURE__ */ t(
|
|
181
|
+
o,
|
|
182
|
+
{
|
|
183
|
+
gap: "0.5rem",
|
|
184
|
+
noGradient: !0,
|
|
185
|
+
children: [
|
|
186
|
+
/* @__PURE__ */ r(
|
|
187
|
+
b,
|
|
188
|
+
{
|
|
189
|
+
height: "100%",
|
|
190
|
+
width: "100%",
|
|
191
|
+
borderRadius: "0.75rem"
|
|
192
|
+
}
|
|
193
|
+
),
|
|
194
|
+
/* @__PURE__ */ r(i, { height: "1rem", borderRadius: "0.75rem" }),
|
|
195
|
+
/* @__PURE__ */ t(l, { gap: "0.5rem", noGradient: !0, children: [
|
|
196
|
+
/* @__PURE__ */ r(i, { height: "1.5rem", borderRadius: "0.75rem" }),
|
|
197
|
+
/* @__PURE__ */ r(i, { height: "1.5rem", borderRadius: "0.75rem" })
|
|
198
|
+
] }),
|
|
199
|
+
/* @__PURE__ */ r(i, { height: "2rem", borderRadius: "0.75rem" })
|
|
200
|
+
]
|
|
201
|
+
},
|
|
202
|
+
`${a}-4`
|
|
203
|
+
)
|
|
204
|
+
] })
|
|
205
|
+
] }), X = ({
|
|
206
|
+
keyPrefix: a,
|
|
207
|
+
isLoading: n = !1,
|
|
208
|
+
fallbackComponent: s = /* @__PURE__ */ r(P, {}),
|
|
209
|
+
children: d
|
|
210
|
+
}) => /* @__PURE__ */ r(G, { fallbackComponent: s, children: n === !0 ? /* @__PURE__ */ r(O, { keyPrefix: a }) : d }), $ = M(q), ee = W((a, n) => {
|
|
140
211
|
const {
|
|
141
|
-
icon:
|
|
142
|
-
items:
|
|
143
|
-
limit:
|
|
144
|
-
imageUrl:
|
|
145
|
-
onSelectCard:
|
|
212
|
+
icon: s,
|
|
213
|
+
items: d,
|
|
214
|
+
limit: h = 4,
|
|
215
|
+
imageUrl: C,
|
|
216
|
+
onSelectCard: c = () => {
|
|
146
217
|
},
|
|
147
|
-
title:
|
|
148
|
-
isLoading:
|
|
149
|
-
getImage:
|
|
218
|
+
title: u = "Season inspiration",
|
|
219
|
+
isLoading: m = !1,
|
|
220
|
+
getImage: g = () => {
|
|
150
221
|
},
|
|
151
|
-
componentName:
|
|
152
|
-
} =
|
|
153
|
-
|
|
222
|
+
componentName: p
|
|
223
|
+
} = a, v = j(), k = _(() => /* @__PURE__ */ r(P, { children: v === !0 ? d == null ? void 0 : d.map((e, w) => /* @__PURE__ */ r(
|
|
224
|
+
$,
|
|
154
225
|
{
|
|
155
226
|
title: e == null ? void 0 : e.name,
|
|
156
227
|
sellerUuid: e == null ? void 0 : e.sellerUuid,
|
|
157
228
|
uuid: e == null ? void 0 : e.uuid,
|
|
158
|
-
onSelectCard: (
|
|
229
|
+
onSelectCard: (N, S) => c({
|
|
159
230
|
uuid: e == null ? void 0 : e.uuid,
|
|
160
231
|
nameSlug: e == null ? void 0 : e.nameSlug,
|
|
161
|
-
cardRef:
|
|
232
|
+
cardRef: S
|
|
162
233
|
}),
|
|
163
|
-
image:
|
|
164
|
-
metadata: { name:
|
|
234
|
+
image: g(e == null ? void 0 : e.image, e == null ? void 0 : e.uuid, e == null ? void 0 : e.sellerUuid) || null,
|
|
235
|
+
metadata: { name: p, accessor: e == null ? void 0 : e.accessor }
|
|
165
236
|
},
|
|
166
|
-
|
|
167
|
-
)) :
|
|
168
|
-
|
|
237
|
+
w
|
|
238
|
+
)) : d == null ? void 0 : d.slice(0, h).map((e, w) => /* @__PURE__ */ r(
|
|
239
|
+
$,
|
|
169
240
|
{
|
|
170
241
|
title: e == null ? void 0 : e.name,
|
|
171
242
|
sellerUuid: e == null ? void 0 : e.sellerUuid,
|
|
172
243
|
uuid: e == null ? void 0 : e.uuid,
|
|
173
|
-
onSelectCard: (
|
|
244
|
+
onSelectCard: (N, S) => c({
|
|
174
245
|
uuid: e == null ? void 0 : e.uuid,
|
|
175
246
|
nameSlug: e == null ? void 0 : e.nameSlug,
|
|
176
|
-
cardRef:
|
|
247
|
+
cardRef: S
|
|
177
248
|
}),
|
|
178
|
-
image:
|
|
179
|
-
metadata: { name:
|
|
249
|
+
image: g(e == null ? void 0 : e.image, e == null ? void 0 : e.uuid, e == null ? void 0 : e.sellerUuid) || null,
|
|
250
|
+
metadata: { name: p, accessor: e == null ? void 0 : e.accessor }
|
|
180
251
|
},
|
|
181
|
-
|
|
182
|
-
)) }), [
|
|
183
|
-
return /* @__PURE__ */
|
|
184
|
-
/* @__PURE__ */ r("div", { className: "regular-title", children: /* @__PURE__ */
|
|
185
|
-
|
|
186
|
-
/* @__PURE__ */ r("span", { children:
|
|
252
|
+
w
|
|
253
|
+
)) }), [d, v, h]);
|
|
254
|
+
return /* @__PURE__ */ t(B, { ref: n, children: [
|
|
255
|
+
/* @__PURE__ */ r("div", { className: "regular-title", children: /* @__PURE__ */ t("div", { className: "regular-title-text", children: [
|
|
256
|
+
z(s) && /* @__PURE__ */ r("i", { className: s }),
|
|
257
|
+
/* @__PURE__ */ r("span", { children: u })
|
|
187
258
|
] }) }),
|
|
188
|
-
/* @__PURE__ */
|
|
189
|
-
|
|
190
|
-
F,
|
|
259
|
+
/* @__PURE__ */ t(
|
|
260
|
+
X,
|
|
191
261
|
{
|
|
192
|
-
isLoading:
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
262
|
+
isLoading: m,
|
|
263
|
+
keyPrefix: "products-with-banner-skeleton",
|
|
264
|
+
children: [
|
|
265
|
+
/* @__PURE__ */ r(E, { className: "products-banner", children: /* @__PURE__ */ r("img", { src: C }) }),
|
|
266
|
+
/* @__PURE__ */ r(L, { limit: h, children: k })
|
|
267
|
+
]
|
|
196
268
|
}
|
|
197
|
-
)
|
|
269
|
+
)
|
|
198
270
|
] });
|
|
199
271
|
});
|
|
200
272
|
export {
|
|
201
|
-
|
|
273
|
+
ee as default
|
|
202
274
|
};
|
package/dist/ProgressBar.js
CHANGED
|
@@ -2,7 +2,7 @@ import { jsxs as m, jsx as h } from "react/jsx-runtime";
|
|
|
2
2
|
import { forwardRef as f, isValidElement as P, cloneElement as y } from "react";
|
|
3
3
|
import { P as r } from "./index-CblbdqjE.js";
|
|
4
4
|
import { s as t } from "./emotion-styled.browser.esm-BNN1dTl3.js";
|
|
5
|
-
import { b as n, c as x } from "./utils-
|
|
5
|
+
import { b as n, c as x } from "./utils-DHfRApMf.js";
|
|
6
6
|
import { u as $ } from "./emotion-element-f0de968e.browser.esm-CkCiQliQ.js";
|
|
7
7
|
const w = t.div`
|
|
8
8
|
width: 100%;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const e=require("react/jsx-runtime"),n=require("react"),l=require("./utils-Dl9xPH4c.cjs"),
|
|
1
|
+
"use strict";const e=require("react/jsx-runtime"),n=require("react"),l=require("./utils-Dl9xPH4c.cjs"),m=require("./emotion-styled.browser.esm-BtEseadx.cjs"),p=require("./consts-goSZX3xP.cjs"),u=require("./emotion-element-f0de968e.browser.esm-B7k6i6lC.cjs"),_=require("./styled-components.browser.esm-CvykQBGY.cjs"),f=require("./index-D0IYt1s3.cjs"),h=m.styled.div`
|
|
2
2
|
position: absolute;
|
|
3
3
|
top: 0;
|
|
4
4
|
left: 0;
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#a6000000', endColorstr='#00000000',GradientType=0 );
|
|
42
42
|
border-radius: 0.75rem;
|
|
43
43
|
z-index: 2;
|
|
44
|
-
`,
|
|
44
|
+
`,b=m.styled.div`
|
|
45
45
|
cursor: pointer;
|
|
46
46
|
position: relative;
|
|
47
47
|
border-radius: 0.75rem;
|
|
@@ -91,7 +91,7 @@
|
|
|
91
91
|
}
|
|
92
92
|
}
|
|
93
93
|
|
|
94
|
-
@media (max-width: ${
|
|
94
|
+
@media (max-width: ${p.MOBILE_SIZE_PX+"px"}) {
|
|
95
95
|
width: 100%;
|
|
96
96
|
|
|
97
97
|
img {
|
|
@@ -108,7 +108,7 @@
|
|
|
108
108
|
display: block;
|
|
109
109
|
}
|
|
110
110
|
}
|
|
111
|
-
`,
|
|
111
|
+
`,w=n.forwardRef(({title:a,description:r,imageUrl:s,onSelectCard:i=()=>{}},d)=>{const{theme:o}=u.useTheme();return e.jsxs(b,{ref:d,theme:o,onClick:i,children:[e.jsx("img",{loading:"lazy",src:s}),e.jsx(h,{theme:o,className:"quattro-card__gradient",children:e.jsxs("div",{className:"quattro-card__text",children:[e.jsx("div",{className:"quattro-card__title",children:a}),e.jsx("div",{className:"quattro-card__description",children:r})]})})]})}),x=_.qe.div`
|
|
112
112
|
display: flex;
|
|
113
113
|
flex-direction: column;
|
|
114
114
|
align-items: flex-start;
|
|
@@ -154,7 +154,7 @@
|
|
|
154
154
|
width: 100%;
|
|
155
155
|
}
|
|
156
156
|
|
|
157
|
-
@media (max-width: ${
|
|
157
|
+
@media (max-width: ${p.MOBILE_SIZE_PX+"px"}) {
|
|
158
158
|
gap: 1.25rem;
|
|
159
159
|
|
|
160
160
|
& .wrapper__cards {
|
|
@@ -162,4 +162,4 @@
|
|
|
162
162
|
gap: 1rem;
|
|
163
163
|
}
|
|
164
164
|
}
|
|
165
|
-
`,
|
|
165
|
+
`,y=n.memo(w),q=n.forwardRef(({title:a,items:r,isLoading:s=!1,onSelectCard:i=()=>{}},d)=>{const o=n.useMemo(()=>{var c;return(c=r==null?void 0:r.slice(0,4))==null?void 0:c.map((t,g)=>e.jsx(y,{title:t==null?void 0:t.title,description:t==null?void 0:t.description,imageUrl:t==null?void 0:t.imageUrl,onSelectCard:()=>i==null?void 0:i(t)},`quattro-card__${g+1}`))},[r]);return e.jsxs(x,{ref:d,children:[e.jsx("div",{className:"wrapper__heading",children:e.jsx("div",{className:"wrapper__title",children:l.isDefinedNotEmptyString(a)&&e.jsx("div",{className:"title__text",children:e.jsx("span",{children:a})})})}),e.jsx(f.SuspenseBlogCardsSponsored,{isLoading:s,keyPrefix:"quattro-cards-skeleton",children:e.jsx("div",{className:"wrapper__cards",children:o})})]})});module.exports=q;
|
|
@@ -1,11 +1,12 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { forwardRef as
|
|
3
|
-
import { t as h,
|
|
4
|
-
import { s as
|
|
5
|
-
import { M as
|
|
6
|
-
import { u as
|
|
7
|
-
import { q as
|
|
8
|
-
|
|
1
|
+
import { jsxs as d, jsx as r } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as c, memo as f, useMemo as u } from "react";
|
|
3
|
+
import { t as h, o as _, k as b } from "./utils-DHfRApMf.js";
|
|
4
|
+
import { s as m } from "./emotion-styled.browser.esm-BNN1dTl3.js";
|
|
5
|
+
import { M as p } from "./consts-BuFChS64.js";
|
|
6
|
+
import { u as w } from "./emotion-element-f0de968e.browser.esm-CkCiQliQ.js";
|
|
7
|
+
import { q as y } from "./styled-components.browser.esm-D-n22PJk.js";
|
|
8
|
+
import { S as v } from "./index-BSpdEGFd.js";
|
|
9
|
+
const x = m.div`
|
|
9
10
|
position: absolute;
|
|
10
11
|
top: 0;
|
|
11
12
|
left: 0;
|
|
@@ -48,7 +49,7 @@ const y = c.div`
|
|
|
48
49
|
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#a6000000', endColorstr='#00000000',GradientType=0 );
|
|
49
50
|
border-radius: 0.75rem;
|
|
50
51
|
z-index: 2;
|
|
51
|
-
`,
|
|
52
|
+
`, q = m.div`
|
|
52
53
|
cursor: pointer;
|
|
53
54
|
position: relative;
|
|
54
55
|
border-radius: 0.75rem;
|
|
@@ -94,11 +95,11 @@ const y = c.div`
|
|
|
94
95
|
font-style: normal;
|
|
95
96
|
font-weight: 500;
|
|
96
97
|
line-height: 1.25rem;
|
|
97
|
-
${
|
|
98
|
+
${_(2)}
|
|
98
99
|
}
|
|
99
100
|
}
|
|
100
101
|
|
|
101
|
-
@media (max-width: ${
|
|
102
|
+
@media (max-width: ${p + "px"}) {
|
|
102
103
|
width: 100%;
|
|
103
104
|
|
|
104
105
|
img {
|
|
@@ -115,19 +116,19 @@ const y = c.div`
|
|
|
115
116
|
display: block;
|
|
116
117
|
}
|
|
117
118
|
}
|
|
118
|
-
`,
|
|
119
|
-
({ title:
|
|
120
|
-
} },
|
|
121
|
-
const { theme:
|
|
122
|
-
return /* @__PURE__ */
|
|
123
|
-
/* @__PURE__ */ r("img", { loading: "lazy", src:
|
|
124
|
-
/* @__PURE__ */ r(
|
|
125
|
-
/* @__PURE__ */ r("div", { className: "quattro-card__title", children:
|
|
119
|
+
`, k = c(
|
|
120
|
+
({ title: i, description: e, imageUrl: n, onSelectCard: a = () => {
|
|
121
|
+
} }, s) => {
|
|
122
|
+
const { theme: o } = w();
|
|
123
|
+
return /* @__PURE__ */ d(q, { ref: s, theme: o, onClick: a, children: [
|
|
124
|
+
/* @__PURE__ */ r("img", { loading: "lazy", src: n }),
|
|
125
|
+
/* @__PURE__ */ r(x, { theme: o, className: "quattro-card__gradient", children: /* @__PURE__ */ d("div", { className: "quattro-card__text", children: [
|
|
126
|
+
/* @__PURE__ */ r("div", { className: "quattro-card__title", children: i }),
|
|
126
127
|
/* @__PURE__ */ r("div", { className: "quattro-card__description", children: e })
|
|
127
128
|
] }) })
|
|
128
129
|
] });
|
|
129
130
|
}
|
|
130
|
-
),
|
|
131
|
+
), z = y.div`
|
|
131
132
|
display: flex;
|
|
132
133
|
flex-direction: column;
|
|
133
134
|
align-items: flex-start;
|
|
@@ -173,7 +174,7 @@ const y = c.div`
|
|
|
173
174
|
width: 100%;
|
|
174
175
|
}
|
|
175
176
|
|
|
176
|
-
@media (max-width: ${
|
|
177
|
+
@media (max-width: ${p + "px"}) {
|
|
177
178
|
gap: 1.25rem;
|
|
178
179
|
|
|
179
180
|
& .wrapper__cards {
|
|
@@ -181,28 +182,35 @@ const y = c.div`
|
|
|
181
182
|
gap: 1rem;
|
|
182
183
|
}
|
|
183
184
|
}
|
|
184
|
-
`,
|
|
185
|
-
({ title:
|
|
186
|
-
} },
|
|
187
|
-
const
|
|
188
|
-
var
|
|
189
|
-
return (
|
|
190
|
-
|
|
185
|
+
`, N = f(k), S = c(
|
|
186
|
+
({ title: i, items: e, isLoading: n = !1, onSelectCard: a = () => {
|
|
187
|
+
} }, s) => {
|
|
188
|
+
const o = u(() => {
|
|
189
|
+
var l;
|
|
190
|
+
return (l = e == null ? void 0 : e.slice(0, 4)) == null ? void 0 : l.map((t, g) => /* @__PURE__ */ r(
|
|
191
|
+
N,
|
|
191
192
|
{
|
|
192
193
|
title: t == null ? void 0 : t.title,
|
|
193
194
|
description: t == null ? void 0 : t.description,
|
|
194
195
|
imageUrl: t == null ? void 0 : t.imageUrl,
|
|
195
|
-
onSelectCard: () =>
|
|
196
|
+
onSelectCard: () => a == null ? void 0 : a(t)
|
|
196
197
|
},
|
|
197
|
-
`quattro-card__${
|
|
198
|
+
`quattro-card__${g + 1}`
|
|
198
199
|
));
|
|
199
200
|
}, [e]);
|
|
200
|
-
return /* @__PURE__ */
|
|
201
|
-
/* @__PURE__ */ r("div", { className: "wrapper__heading", children: /* @__PURE__ */ r("div", { className: "wrapper__title", children:
|
|
202
|
-
/* @__PURE__ */ r(
|
|
201
|
+
return /* @__PURE__ */ d(z, { ref: s, children: [
|
|
202
|
+
/* @__PURE__ */ r("div", { className: "wrapper__heading", children: /* @__PURE__ */ r("div", { className: "wrapper__title", children: b(i) && /* @__PURE__ */ r("div", { className: "title__text", children: /* @__PURE__ */ r("span", { children: i }) }) }) }),
|
|
203
|
+
/* @__PURE__ */ r(
|
|
204
|
+
v,
|
|
205
|
+
{
|
|
206
|
+
isLoading: n,
|
|
207
|
+
keyPrefix: "quattro-cards-skeleton",
|
|
208
|
+
children: /* @__PURE__ */ r("div", { className: "wrapper__cards", children: o })
|
|
209
|
+
}
|
|
210
|
+
)
|
|
203
211
|
] });
|
|
204
212
|
}
|
|
205
213
|
);
|
|
206
214
|
export {
|
|
207
|
-
|
|
215
|
+
S as default
|
|
208
216
|
};
|
package/dist/QuizSection.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsxs as t, jsx as r } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef as I, useState as w, useRef as B, useEffect as re } from "react";
|
|
3
|
-
import { x as ae, k as te, l as G,
|
|
3
|
+
import { x as ae, k as te, l as G, s as ie } from "./utils-DHfRApMf.js";
|
|
4
4
|
import z from "./Button.js";
|
|
5
5
|
import { s as E } from "./emotion-styled.browser.esm-BNN1dTl3.js";
|
|
6
6
|
import { M as U, C as H, a as P } from "./consts-BuFChS64.js";
|
package/dist/RadioInput.js
CHANGED
|
@@ -2,7 +2,7 @@ import { jsxs as b, jsx as r } from "react/jsx-runtime";
|
|
|
2
2
|
import { forwardRef as P, useState as j } from "react";
|
|
3
3
|
import { s as g } from "./emotion-styled.browser.esm-BNN1dTl3.js";
|
|
4
4
|
import { P as i } from "./index-CblbdqjE.js";
|
|
5
|
-
import { d as f, c as N, e as T, b as t } from "./utils-
|
|
5
|
+
import { d as f, c as N, e as T, b as t } from "./utils-DHfRApMf.js";
|
|
6
6
|
import { u as F } from "./emotion-element-f0de968e.browser.esm-CkCiQliQ.js";
|
|
7
7
|
const I = (e) => e == "left" ? "row-reverse" : "row", D = g.label`
|
|
8
8
|
min-height: ${(e) => f(e.theme, e.size)};
|