@lanaco/lnc-react-ui 4.0.169 → 4.0.171
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/Accordion.js +1 -1
- package/dist/AccordionSummary.js +1 -1
- package/dist/ActionsToolbar.js +1 -1
- package/dist/Alert.js +1 -1
- package/dist/Avatar.js +1 -1
- package/dist/Badge.js +1 -1
- package/dist/BannerSectionCarousel.cjs +9 -48
- package/dist/BannerSectionCarousel.js +208 -249
- package/dist/BannerSectionSimple.js +1 -1
- package/dist/BannerSectionWithList.js +1 -1
- package/dist/BlogCardsSponsoredSection.cjs +8 -8
- package/dist/BlogCardsSponsoredSection.js +67 -68
- package/dist/BlogCategoryCardsSection.cjs +1 -1
- package/dist/BlogCategoryCardsSection.js +22 -30
- package/dist/BlogExploreSection.js +9 -9
- package/dist/BlogListSection.cjs +11 -5
- package/dist/BlogListSection.js +187 -123
- package/dist/BlogProductCardsSection.cjs +1 -1
- package/dist/BlogProductCardsSection.js +28 -37
- package/dist/BlogShopCardsSection.cjs +1 -1
- package/dist/BlogShopCardsSection.js +40 -67
- package/dist/BlogSingleSection.cjs +16 -1
- package/dist/BlogSingleSection.js +47 -45
- package/dist/BlogsSectionDetailed.cjs +8 -27
- package/dist/BlogsSectionDetailed.js +111 -159
- package/dist/BlogsSectionLarge.cjs +19 -4
- package/dist/BlogsSectionLarge.js +73 -37
- package/dist/BlogsSectionSimple.cjs +9 -9
- package/dist/BlogsSectionSimple.js +81 -107
- package/dist/BlogsSectionSimpleCentered.cjs +25 -23
- package/dist/BlogsSectionSimpleCentered.js +103 -96
- package/dist/BlogsSectionWithFilters.cjs +31 -29
- package/dist/BlogsSectionWithFilters.js +173 -134
- package/dist/BrandHitsSection.cjs +10 -14
- package/dist/BrandHitsSection.js +93 -45
- package/dist/Breadcrumbs.js +1 -1
- package/dist/Button.js +1 -1
- package/dist/ButtonGroup.js +1 -1
- package/dist/CalorieCalculatorSection.js +1 -1
- package/dist/CategorySimpleCard-Qe5QStrs.cjs +47 -0
- package/dist/CategorySimpleCard-laAY-RUT.js +70 -0
- package/dist/CheckBoxInput.js +1 -1
- package/dist/Chip.js +1 -1
- package/dist/ColorInput.js +1 -1
- package/dist/ConfirmationForm.js +1 -1
- package/dist/CustomLoanMapSection.js +1 -1
- package/dist/{CustomStyles-SyQRnjuy.js → CustomStyles-ArAVZsIj.js} +1 -1
- package/dist/DateInput.js +1 -1
- package/dist/DecimalInput.js +1 -1
- package/dist/DecimalInputV2.js +1 -1
- package/dist/DetailedProductsInfinitiveSection.cjs +3 -3
- package/dist/DetailedProductsInfinitiveSection.js +35 -36
- package/dist/DetailedProductsSection.cjs +4 -4
- package/dist/DetailedProductsSection.js +62 -63
- package/dist/DetailsView.js +1 -1
- package/dist/DoubleRangeSlider.js +1 -1
- package/dist/DragAndDropFile.js +1 -1
- package/dist/DragDropFiles.js +1 -1
- package/dist/Drawer.js +1 -1
- package/dist/Dropdown.js +2 -2
- package/dist/DropdownItem.js +1 -1
- package/dist/DropdownLookup.js +1 -1
- package/dist/DropdownMenu.js +1 -1
- package/dist/EditableTable.js +1 -1
- package/dist/FeedbackSection.js +1 -1
- package/dist/FieldOfInterestsMasonrySection.cjs +20 -25
- package/dist/FieldOfInterestsMasonrySection.js +228 -154
- package/dist/FieldOfInterestsWithAvatarsCardsSection.cjs +33 -24
- package/dist/FieldOfInterestsWithAvatarsCardsSection.js +178 -113
- package/dist/FieldOfInterestsWithTagsCardsSection.cjs +6 -16
- package/dist/FieldOfInterestsWithTagsCardsSection.js +89 -93
- package/dist/FileInput.js +1 -1
- package/dist/FlexGridItem.js +1 -1
- package/dist/FormField.js +1 -1
- package/dist/FormView.js +1 -1
- package/dist/GeneralWithTagsCardsSection.cjs +11 -27
- package/dist/GeneralWithTagsCardsSection.js +87 -99
- package/dist/GiftCardsSection.cjs +18 -23
- package/dist/GiftCardsSection.js +146 -77
- package/dist/Icon.js +1 -1
- package/dist/IconButton.js +1 -1
- package/dist/Kanban.js +1 -1
- package/dist/KanbanActionsToolbar.js +1 -1
- package/dist/KanbanView.js +1 -1
- package/dist/Link.js +1 -1
- package/dist/LoanCalculatorSection.js +1 -1
- package/dist/LocationFinderSection.js +1 -1
- package/dist/LocationSearchSection.js +1 -1
- package/dist/MasonryGeneralCardsSection.cjs +33 -19
- package/dist/MasonryGeneralCardsSection.js +114 -68
- package/dist/MenuItem.js +1 -1
- package/dist/Modal.js +1 -1
- package/dist/MultiSelectDropdown.js +1 -1
- package/dist/MultiSelectDropdownLookup.js +1 -1
- package/dist/NestedDropdownItem.js +1 -1
- package/dist/NestedMenuItem.js +1 -1
- package/dist/NotificationContainer.js +1 -1
- package/dist/NotificationMessage.js +1 -1
- package/dist/NumberInput.js +1 -1
- package/dist/OverlayGeneralCardsSection.cjs +5 -5
- package/dist/OverlayGeneralCardsSection.js +54 -40
- package/dist/PasswordInput.js +1 -1
- package/dist/PopoverContent.js +1 -1
- package/dist/ProductsWithBannerSection.cjs +15 -20
- package/dist/ProductsWithBannerSection.js +176 -104
- package/dist/ProgressBar.js +1 -1
- package/dist/QuattroCardsSection.cjs +6 -6
- package/dist/QuattroCardsSection.js +42 -34
- package/dist/QuizSection.js +1 -1
- package/dist/RadioInput.js +1 -1
- package/dist/RangeSlider.js +1 -1
- package/dist/ReviewsSection.cjs +24 -30
- package/dist/ReviewsSection.js +170 -137
- package/dist/SalesCampaignsSection.cjs +46 -130
- package/dist/SalesCampaignsSection.js +354 -433
- package/dist/Separator.js +1 -1
- package/dist/ShopCardsSection.cjs +18 -5
- package/dist/ShopCardsSection.js +145 -88
- package/dist/Sidebar.js +1 -1
- package/dist/SimpleCategoriesSection.cjs +10 -4
- package/dist/SimpleCategoriesSection.js +79 -51
- package/dist/SimpleProductsSection.cjs +16 -3
- package/dist/SimpleProductsSection.js +172 -70
- package/dist/Spinner.js +1 -1
- package/dist/StatsSection.js +4 -4
- package/dist/Surface.js +1 -1
- package/dist/SwipeableDrawer.js +1 -1
- package/dist/TabItem.js +1 -1
- package/dist/Table.js +1 -1
- package/dist/TableView.js +1 -1
- package/dist/TextAreaInput.js +1 -1
- package/dist/TextInput.js +1 -1
- package/dist/ThemeProvider.js +1 -1
- package/dist/TimeInput.js +1 -1
- package/dist/Toggle.js +1 -1
- package/dist/TreeMenuSeparator.js +1 -1
- package/dist/UploadedFile.js +1 -1
- package/dist/UrgentSaleProductsSection.cjs +2 -2
- package/dist/UrgentSaleProductsSection.js +62 -61
- package/dist/index-BAJkosVg.cjs +11 -0
- package/dist/{index-dXWRbvgi.js → index-BMOLVn8O.js} +1 -1
- package/dist/{skeleton-5mO22c5S.js → index-BPntOicE.js} +55 -107
- package/dist/index-BSpdEGFd.js +42 -0
- package/dist/{index-CF3HhgvN.js → index-BbltNcou.js} +1 -1
- package/dist/index-BhBRZf4M.js +742 -0
- package/dist/index-BovNbKxB.js +54 -0
- package/dist/{skeleton-Ccd6EDeB.cjs → index-C5r__0lD.cjs} +4 -47
- package/dist/{index-DicTpiG0.cjs → index-CfT9e5O9.cjs} +2 -10
- package/dist/index-D-3I_Ppj.cjs +16 -0
- package/dist/index-D0IYt1s3.cjs +20 -0
- package/dist/{skeleton-CQPwIEP0.js → index-D69SKc-n.cjs} +7 -37
- package/dist/{index-C0SKNFzP.js → index-D8KPbcUf.js} +1 -1
- package/dist/index-DFdPWO4O.js +133 -0
- package/dist/index-DFyV_EK2.cjs +305 -0
- package/dist/index-DxwIu0Wn.js +84 -0
- package/dist/{index-y6sKgrZC.js → index-XYs5Cuh5.js} +21 -30
- package/dist/index.js +1 -1
- package/dist/style-BAcV7F53.cjs +64 -0
- package/dist/style-CXMUA6cI.js +74 -0
- package/dist/{style-DKAOBWn3.js → style-D3pIrH3v.js} +1 -1
- package/dist/{utils-BdsZgOUE.js → utils-DHfRApMf.js} +6 -6
- package/package.json +1 -1
- package/dist/index-1Dm1i6WK.js +0 -52
- package/dist/index-BGTtoLxz.cjs +0 -1
- package/dist/skeleton-BdbB-LdT.cjs +0 -97
- package/dist/suspense-categories-card-simple-BGj475Ca.js +0 -101
- package/dist/suspense-categories-card-simple-CjGtzfzp.cjs +0 -55
- package/dist/suspense-large-BMO7JH52.js +0 -26
- package/dist/suspense-large-CFmcSzX-.cjs +0 -1
- package/dist/suspense-product-card-detailed-CxiFuUOT.js +0 -653
- package/dist/suspense-product-card-detailed-IR4sh-l4.cjs +0 -330
- package/dist/suspense-product-card-simple-DJ8UYolb.cjs +0 -1
- package/dist/suspense-product-card-simple-ziy0XcLp.js +0 -26
package/dist/index-1Dm1i6WK.js
DELETED
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
import { jsxs as s, jsx as r } from "react/jsx-runtime";
|
|
2
|
-
import { forwardRef as d, useRef as f } from "react";
|
|
3
|
-
import { W as b, T as x } from "./skeleton-CQPwIEP0.js";
|
|
4
|
-
import { u as g } from "./useDetectMobile-Bkvj0VMa.js";
|
|
5
|
-
import n from "./Button.js";
|
|
6
|
-
import { P as h } from "./index-CF3HhgvN.js";
|
|
7
|
-
const B = d((l, y) => {
|
|
8
|
-
const { title: a, imageUrl: m, text: p, onCardClick: o, buttonText: t, metadata: e } = l, i = g(), c = f();
|
|
9
|
-
return /* @__PURE__ */ s(
|
|
10
|
-
b,
|
|
11
|
-
{
|
|
12
|
-
ref: c,
|
|
13
|
-
className: "blog-card",
|
|
14
|
-
"data-accessor": e == null ? void 0 : e.accessor,
|
|
15
|
-
name: e == null ? void 0 : e.name,
|
|
16
|
-
onClick: (u) => o(u, c),
|
|
17
|
-
children: [
|
|
18
|
-
/* @__PURE__ */ r(h, { src: m }),
|
|
19
|
-
/* @__PURE__ */ s(x, { children: [
|
|
20
|
-
/* @__PURE__ */ r("div", { className: "text-wr-title", children: a }),
|
|
21
|
-
/* @__PURE__ */ r("div", { className: "text-wr", children: p }),
|
|
22
|
-
i !== !0 && /* @__PURE__ */ r(
|
|
23
|
-
n,
|
|
24
|
-
{
|
|
25
|
-
type: "button",
|
|
26
|
-
btnType: "outline",
|
|
27
|
-
size: "medium",
|
|
28
|
-
color: "gray",
|
|
29
|
-
onClick: o,
|
|
30
|
-
children: t
|
|
31
|
-
}
|
|
32
|
-
)
|
|
33
|
-
] }),
|
|
34
|
-
i === !0 && /* @__PURE__ */ r(
|
|
35
|
-
n,
|
|
36
|
-
{
|
|
37
|
-
className: "action",
|
|
38
|
-
type: "button",
|
|
39
|
-
btnType: "outline",
|
|
40
|
-
size: "medium",
|
|
41
|
-
color: "gray",
|
|
42
|
-
onClick: o,
|
|
43
|
-
children: t
|
|
44
|
-
}
|
|
45
|
-
)
|
|
46
|
-
]
|
|
47
|
-
}
|
|
48
|
-
);
|
|
49
|
-
});
|
|
50
|
-
export {
|
|
51
|
-
B
|
|
52
|
-
};
|
package/dist/index-BGTtoLxz.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const e=require("react/jsx-runtime"),i=require("react"),n=require("./skeleton-BdbB-LdT.cjs"),p=require("./useDetectMobile-zkbzoOGV.cjs"),l=require("./Button.cjs"),b=require("./index-BueKsXT8.cjs"),g=i.forwardRef((u,j)=>{const{title:a,imageUrl:d,text:x,onCardClick:t,buttonText:s,metadata:r}=u,c=p.useDetectMobile(),o=i.useRef();return e.jsxs(n.Wrapper,{ref:o,className:"blog-card","data-accessor":r==null?void 0:r.accessor,name:r==null?void 0:r.name,onClick:m=>t(m,o),children:[e.jsx(b.ProductImageWrapper,{src:d}),e.jsxs(n.TextWrapper,{children:[e.jsx("div",{className:"text-wr-title",children:a}),e.jsx("div",{className:"text-wr",children:x}),c!==!0&&e.jsx(l,{type:"button",btnType:"outline",size:"medium",color:"gray",onClick:t,children:s})]}),c===!0&&e.jsx(l,{className:"action",type:"button",btnType:"outline",size:"medium",color:"gray",onClick:t,children:s})]})});exports.BlogCardLarge=g;
|
|
@@ -1,97 +0,0 @@
|
|
|
1
|
-
"use strict";const e=require("react/jsx-runtime"),m=require("react"),t=require("./emotion-styled.browser.esm-BtEseadx.cjs"),i=require("./consts-goSZX3xP.cjs"),r=require("./utils-Dl9xPH4c.cjs"),o=t.styled.div`
|
|
2
|
-
display: flex;
|
|
3
|
-
width: 100%;
|
|
4
|
-
gap: 1.25rem;
|
|
5
|
-
box-shadow: 0px 1px 3px 0px rgba(0, 0, 0, 0.1),
|
|
6
|
-
0px 1px 2px 0px rgba(0, 0, 0, 0.06);
|
|
7
|
-
background-color: var(--white);
|
|
8
|
-
border-radius: 0.75rem;
|
|
9
|
-
border: 1px solid var(--gray-95008);
|
|
10
|
-
overflow: hidden;
|
|
11
|
-
max-height: 11.25rem;
|
|
12
|
-
min-height: 11.25rem;
|
|
13
|
-
|
|
14
|
-
&:hover {
|
|
15
|
-
cursor: pointer;
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
& img {
|
|
19
|
-
max-height: 11.25rem;
|
|
20
|
-
min-height: 11.25rem;
|
|
21
|
-
min-width: 11.25rem;
|
|
22
|
-
max-width: 11.25rem;
|
|
23
|
-
object-fit: cover;
|
|
24
|
-
width: 100%;
|
|
25
|
-
border-radius: 0.75rem 0 0 0.75rem;
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
& .skeleton-img {
|
|
29
|
-
width: 100%;
|
|
30
|
-
max-height: 11.25rem;
|
|
31
|
-
min-height: 12.25rem;
|
|
32
|
-
min-width: 11.25rem;
|
|
33
|
-
max-width: 11.25rem;
|
|
34
|
-
background-color: ${r.linearGradientAnimation("-90deg")};
|
|
35
|
-
border-radius: 0.75rem 0 0 0.75rem;
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
@media (max-width: ${i.MOBILE_SIZE_PX+"px"}) {
|
|
39
|
-
padding: 1rem;
|
|
40
|
-
column-gap: 1.5rem;
|
|
41
|
-
row-gap: 1rem;
|
|
42
|
-
display: grid;
|
|
43
|
-
grid-template-columns: repeat(2, auto);
|
|
44
|
-
max-height: 100%;
|
|
45
|
-
min-height: 100%;
|
|
46
|
-
& .action {
|
|
47
|
-
grid-column: 1 / 3;
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
& img,
|
|
51
|
-
.skeleton-img {
|
|
52
|
-
max-height: 7.75rem;
|
|
53
|
-
min-height: 7.75rem;
|
|
54
|
-
min-width: 7.75rem;
|
|
55
|
-
max-width: 7.75rem;
|
|
56
|
-
border-radius: 0.75rem;
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
& button {
|
|
60
|
-
width: 100%;
|
|
61
|
-
margin-top: auto;
|
|
62
|
-
}
|
|
63
|
-
}
|
|
64
|
-
`,a=t.styled.div`
|
|
65
|
-
padding: 1rem;
|
|
66
|
-
display: flex;
|
|
67
|
-
flex-direction: column;
|
|
68
|
-
gap: 0.25rem;
|
|
69
|
-
color: var(--gray-950, #14161a);
|
|
70
|
-
|
|
71
|
-
& .text-wr-title {
|
|
72
|
-
font-weight: 600;
|
|
73
|
-
font-size: 1.25rem;
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
& .text-wr {
|
|
77
|
-
font-weight: 400;
|
|
78
|
-
font-size: 0.875rem;
|
|
79
|
-
color: var(--gray-700, #4e555f);
|
|
80
|
-
${r.truncateTextInRows(3)}
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
& button {
|
|
84
|
-
width: fit-content;
|
|
85
|
-
margin-top: auto;
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
& .skeleton-title {
|
|
89
|
-
height: 1.75rem;
|
|
90
|
-
width: 80%;
|
|
91
|
-
background-color: ${r.linearGradientAnimation("-90deg")};
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
@media (max-width: ${i.MOBILE_SIZE_PX+"px"}) {
|
|
95
|
-
padding: 0;
|
|
96
|
-
}
|
|
97
|
-
`,n=m.forwardRef(({},d)=>e.jsxs(o,{className:"blog-card",children:[e.jsx("div",{className:"skeleton-img"}),e.jsx(a,{children:e.jsx("div",{className:"skeleton-title"})})]}));exports.BlogCardLargeSkeleton=n;exports.TextWrapper=a;exports.Wrapper=o;
|
|
@@ -1,101 +0,0 @@
|
|
|
1
|
-
import { jsxs as m, jsx as e, Fragment as s } from "react/jsx-runtime";
|
|
2
|
-
import { forwardRef as d, Suspense as h } from "react";
|
|
3
|
-
import { s as g } from "./emotion-styled.browser.esm-BNN1dTl3.js";
|
|
4
|
-
import { p as n, o as p } from "./utils-BdsZgOUE.js";
|
|
5
|
-
import { M as f } from "./consts-BuFChS64.js";
|
|
6
|
-
const c = g.div`
|
|
7
|
-
display: flex;
|
|
8
|
-
flex-direction: column;
|
|
9
|
-
gap: 0;
|
|
10
|
-
font-size: 0.875rem;
|
|
11
|
-
font-weight: 500;
|
|
12
|
-
color: var(--gray-950, #14161a);
|
|
13
|
-
min-height: 12.25rem;
|
|
14
|
-
max-height: 12.25rem;
|
|
15
|
-
border-radius: 0.75rem;
|
|
16
|
-
border: 1px solid var(--gray-95008, rgba(20, 22, 26, 0.08));
|
|
17
|
-
background: var(--white, #fff);
|
|
18
|
-
cursor: pointer;
|
|
19
|
-
|
|
20
|
-
transition: var(--transition);
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
/* drop-shadow-sm */
|
|
24
|
-
box-shadow: 0px 1px 2px 0px rgba(0, 0, 0, 0.05);
|
|
25
|
-
overflow: hidden;
|
|
26
|
-
|
|
27
|
-
& .card-content {
|
|
28
|
-
padding: 0.75rem;
|
|
29
|
-
${n(2)}
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
& .card-content-2 {
|
|
33
|
-
${n(2)}
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
& img {
|
|
37
|
-
width: 100%;
|
|
38
|
-
object-fit: cover;
|
|
39
|
-
min-height: 8.25rem;
|
|
40
|
-
max-height: 8.25rem;
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
& .skeleton-img {
|
|
44
|
-
width: 100%;
|
|
45
|
-
min-height: 8.25rem;
|
|
46
|
-
max-height: 8.25rem;
|
|
47
|
-
${p("-90deg")}
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
@media (max-width: ${f + "px"}) {
|
|
51
|
-
min-width: 8.75rem;
|
|
52
|
-
max-width: 8.75rem;
|
|
53
|
-
|
|
54
|
-
& .img,
|
|
55
|
-
.skeleton-img {
|
|
56
|
-
min-height: 5.375rem;
|
|
57
|
-
max-height: 5.375rem;
|
|
58
|
-
}
|
|
59
|
-
}
|
|
60
|
-
`, k = d((r, a) => {
|
|
61
|
-
const { uuid: t, image: o, name: i, onSelectCard: l = () => {
|
|
62
|
-
} } = r;
|
|
63
|
-
return /* @__PURE__ */ m(
|
|
64
|
-
c,
|
|
65
|
-
{
|
|
66
|
-
ref: a,
|
|
67
|
-
className: "simple-category-card",
|
|
68
|
-
onClick: () => l(t),
|
|
69
|
-
children: [
|
|
70
|
-
/* @__PURE__ */ e("img", { src: o }),
|
|
71
|
-
/* @__PURE__ */ e("div", { className: "card-content", children: /* @__PURE__ */ e("div", { className: "card-content-2", children: i }) })
|
|
72
|
-
]
|
|
73
|
-
}
|
|
74
|
-
);
|
|
75
|
-
}), x = d(({}, r) => /* @__PURE__ */ m(c, { className: "simple-category-card", children: [
|
|
76
|
-
/* @__PURE__ */ e("div", { className: "skeleton-img" }),
|
|
77
|
-
/* @__PURE__ */ e("div", { className: "card-content" })
|
|
78
|
-
] })), u = ({ limit: r = 12, isLoading: a = !1, keyPrefix: t }) => /* @__PURE__ */ e(s, { children: Array.from({ length: r }, (o, i) => /* @__PURE__ */ e(
|
|
79
|
-
x,
|
|
80
|
-
{
|
|
81
|
-
isLoading: a
|
|
82
|
-
},
|
|
83
|
-
`${t}-skeleton-category-card-${i}`
|
|
84
|
-
)) }), b = ({
|
|
85
|
-
children: r,
|
|
86
|
-
fallbackComponent: a = /* @__PURE__ */ e(s, {}),
|
|
87
|
-
isLoading: t = !1,
|
|
88
|
-
limit: o,
|
|
89
|
-
keyPrefix: i
|
|
90
|
-
}) => /* @__PURE__ */ e(h, { fallbackComponent: a, children: t === !0 ? /* @__PURE__ */ e(
|
|
91
|
-
u,
|
|
92
|
-
{
|
|
93
|
-
isLoading: t,
|
|
94
|
-
limit: o,
|
|
95
|
-
keyPrefix: i
|
|
96
|
-
}
|
|
97
|
-
) : r });
|
|
98
|
-
export {
|
|
99
|
-
k as C,
|
|
100
|
-
b as S
|
|
101
|
-
};
|
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
"use strict";const e=require("react/jsx-runtime"),o=require("react"),d=require("./emotion-styled.browser.esm-BtEseadx.cjs"),s=require("./utils-Dl9xPH4c.cjs"),l=require("./consts-goSZX3xP.cjs"),c=d.styled.div`
|
|
2
|
-
display: flex;
|
|
3
|
-
flex-direction: column;
|
|
4
|
-
gap: 0;
|
|
5
|
-
font-size: 0.875rem;
|
|
6
|
-
font-weight: 500;
|
|
7
|
-
color: var(--gray-950, #14161a);
|
|
8
|
-
min-height: 12.25rem;
|
|
9
|
-
max-height: 12.25rem;
|
|
10
|
-
border-radius: 0.75rem;
|
|
11
|
-
border: 1px solid var(--gray-95008, rgba(20, 22, 26, 0.08));
|
|
12
|
-
background: var(--white, #fff);
|
|
13
|
-
cursor: pointer;
|
|
14
|
-
|
|
15
|
-
transition: var(--transition);
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
/* drop-shadow-sm */
|
|
19
|
-
box-shadow: 0px 1px 2px 0px rgba(0, 0, 0, 0.05);
|
|
20
|
-
overflow: hidden;
|
|
21
|
-
|
|
22
|
-
& .card-content {
|
|
23
|
-
padding: 0.75rem;
|
|
24
|
-
${s.truncateTextInRows(2)}
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
& .card-content-2 {
|
|
28
|
-
${s.truncateTextInRows(2)}
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
& img {
|
|
32
|
-
width: 100%;
|
|
33
|
-
object-fit: cover;
|
|
34
|
-
min-height: 8.25rem;
|
|
35
|
-
max-height: 8.25rem;
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
& .skeleton-img {
|
|
39
|
-
width: 100%;
|
|
40
|
-
min-height: 8.25rem;
|
|
41
|
-
max-height: 8.25rem;
|
|
42
|
-
${s.linearGradientAnimation("-90deg")}
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
@media (max-width: ${l.MOBILE_SIZE_PX+"px"}) {
|
|
46
|
-
min-width: 8.75rem;
|
|
47
|
-
max-width: 8.75rem;
|
|
48
|
-
|
|
49
|
-
& .img,
|
|
50
|
-
.skeleton-img {
|
|
51
|
-
min-height: 5.375rem;
|
|
52
|
-
max-height: 5.375rem;
|
|
53
|
-
}
|
|
54
|
-
}
|
|
55
|
-
`,g=o.forwardRef((r,a)=>{const{uuid:t,image:n,name:i,onSelectCard:m=()=>{}}=r;return e.jsxs(c,{ref:a,className:"simple-category-card",onClick:()=>m(t),children:[e.jsx("img",{src:n}),e.jsx("div",{className:"card-content",children:e.jsx("div",{className:"card-content-2",children:i})})]})}),h=o.forwardRef(({},r)=>e.jsxs(c,{className:"simple-category-card",children:[e.jsx("div",{className:"skeleton-img"}),e.jsx("div",{className:"card-content"})]})),x=({limit:r=12,isLoading:a=!1,keyPrefix:t})=>e.jsx(e.Fragment,{children:Array.from({length:r},(n,i)=>e.jsx(h,{isLoading:a},`${t}-skeleton-category-card-${i}`))}),u=({children:r,fallbackComponent:a=e.jsx(e.Fragment,{}),isLoading:t=!1,limit:n,keyPrefix:i})=>e.jsx(o.Suspense,{fallbackComponent:a,children:t===!0?e.jsx(x,{isLoading:t,limit:n,keyPrefix:i}):r});exports.CategorySimpleCard=g;exports.SuspenseSimpleCategoryCard=u;
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { jsx as r, Fragment as l } from "react/jsx-runtime";
|
|
2
|
-
import { Suspense as a } from "react";
|
|
3
|
-
import { B as m } from "./skeleton-CQPwIEP0.js";
|
|
4
|
-
const p = ({ limit: o = 2, isLoading: t = !1, keyPrefix: e }) => /* @__PURE__ */ r(l, { children: Array.from({ length: o }, (s, n) => /* @__PURE__ */ r(
|
|
5
|
-
m,
|
|
6
|
-
{
|
|
7
|
-
isLoading: t
|
|
8
|
-
},
|
|
9
|
-
`${e}-skeleton-product-card-${n}`
|
|
10
|
-
)) }), u = ({
|
|
11
|
-
children: o,
|
|
12
|
-
fallbackComponent: t = /* @__PURE__ */ r(l, {}),
|
|
13
|
-
isLoading: e = !1,
|
|
14
|
-
limit: s,
|
|
15
|
-
keyPrefix: n
|
|
16
|
-
}) => /* @__PURE__ */ r(a, { fallbackComponent: t, children: e === !0 ? /* @__PURE__ */ r(
|
|
17
|
-
p,
|
|
18
|
-
{
|
|
19
|
-
isLoading: e,
|
|
20
|
-
limit: s,
|
|
21
|
-
keyPrefix: n
|
|
22
|
-
}
|
|
23
|
-
) : o });
|
|
24
|
-
export {
|
|
25
|
-
u as S
|
|
26
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const e=require("react/jsx-runtime"),l=require("react"),u=require("./skeleton-BdbB-LdT.cjs"),c=({limit:s=2,isLoading:t=!1,keyPrefix:r})=>e.jsx(e.Fragment,{children:Array.from({length:s},(o,n)=>e.jsx(u.BlogCardLargeSkeleton,{isLoading:t},`${r}-skeleton-product-card-${n}`))}),a=({children:s,fallbackComponent:t=e.jsx(e.Fragment,{}),isLoading:r=!1,limit:o,keyPrefix:n})=>e.jsx(l.Suspense,{fallbackComponent:t,children:r===!0?e.jsx(c,{isLoading:r,limit:o,keyPrefix:n}):s});exports.SuspenseBlogLarge=a;
|