@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
|
@@ -1,23 +1,24 @@
|
|
|
1
|
-
import { jsxs as n, jsx as t, Fragment as
|
|
2
|
-
import { forwardRef as
|
|
3
|
-
import { s as
|
|
4
|
-
import { M as
|
|
5
|
-
import { u as
|
|
6
|
-
import { o as
|
|
7
|
-
import { T as D } from "./style-
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import { P as
|
|
11
|
-
import { S as
|
|
12
|
-
|
|
1
|
+
import { jsxs as n, jsx as t, Fragment as B } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as _, useRef as F, Suspense as O, memo as j, useMemo as A } from "react";
|
|
3
|
+
import { s as f } from "./emotion-styled.browser.esm-BNN1dTl3.js";
|
|
4
|
+
import { M as k } from "./consts-BuFChS64.js";
|
|
5
|
+
import { u as E } from "./useDetectMobile-Bkvj0VMa.js";
|
|
6
|
+
import { o as U, k as v } from "./utils-DHfRApMf.js";
|
|
7
|
+
import { T as D } from "./style-D3pIrH3v.js";
|
|
8
|
+
import K from "./Button.js";
|
|
9
|
+
import G from "./Link.js";
|
|
10
|
+
import { P as H } from "./index-BbltNcou.js";
|
|
11
|
+
import { S as P } from "./index-BMOLVn8O.js";
|
|
12
|
+
import { S as X, a as N, b as s } from "./style-CXMUA6cI.js";
|
|
13
|
+
const Z = f.div`
|
|
13
14
|
display: grid;
|
|
14
|
-
grid-template-columns: ${(
|
|
15
|
+
grid-template-columns: ${(r) => `repeat(${r.limit}, minmax(0, 1fr))`};
|
|
15
16
|
gap: 1.25rem;
|
|
16
17
|
|
|
17
|
-
@media (max-width: ${
|
|
18
|
+
@media (max-width: ${k + "px"}) {
|
|
18
19
|
grid-template-columns: repeat(1, 1fr);
|
|
19
20
|
}
|
|
20
|
-
`,
|
|
21
|
+
`, q = f.div`
|
|
21
22
|
display: flex;
|
|
22
23
|
width: 100%;
|
|
23
24
|
box-shadow: 0px 1px 3px 0px rgba(0, 0, 0, 0.1),
|
|
@@ -44,22 +45,13 @@ const Z = S.div`
|
|
|
44
45
|
object-fit: cover;
|
|
45
46
|
}
|
|
46
47
|
|
|
47
|
-
& .skeleton-img {
|
|
48
|
-
max-width: 3.3125rem;
|
|
49
|
-
min-width: 3.3125rem;
|
|
50
|
-
min-height: 3.3125rem;
|
|
51
|
-
max-height: 3.3125rem;
|
|
52
|
-
border-radius: 0.75rem;
|
|
53
|
-
background-color: ${k("-90deg")};
|
|
54
|
-
}
|
|
55
|
-
|
|
56
48
|
& a {
|
|
57
49
|
margin-top: auto;
|
|
58
50
|
}
|
|
59
51
|
|
|
60
|
-
@media (max-width: ${
|
|
52
|
+
@media (max-width: ${k + "px"}) {
|
|
61
53
|
}
|
|
62
|
-
`,
|
|
54
|
+
`, J = f.div`
|
|
63
55
|
display: flex;
|
|
64
56
|
flex-direction: column;
|
|
65
57
|
gap: 0.5rem;
|
|
@@ -70,171 +62,218 @@ const Z = S.div`
|
|
|
70
62
|
font-size: 1rem;
|
|
71
63
|
}
|
|
72
64
|
|
|
73
|
-
& .skeleton-title {
|
|
74
|
-
height: 1.5rem;
|
|
75
|
-
width: 80%;
|
|
76
|
-
background-color: ${k("-90deg")};
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
& .skeleton-action {
|
|
80
|
-
height: 1.25rem;
|
|
81
|
-
width: 20%;
|
|
82
|
-
background-color: ${k("-90deg")};
|
|
83
|
-
}
|
|
84
|
-
|
|
85
65
|
& .text-wr {
|
|
86
66
|
font-weight: 400;
|
|
87
67
|
font-size: 0.875rem;
|
|
88
68
|
color: var(--gray-700, #4e555f);
|
|
89
|
-
${
|
|
69
|
+
${U(3)}
|
|
90
70
|
}
|
|
91
|
-
`,
|
|
92
|
-
const { title: l, imageUrl:
|
|
93
|
-
m(g,
|
|
71
|
+
`, Q = _((r, c) => {
|
|
72
|
+
const { title: l, imageUrl: d, text: a, buttonText: p, onCardClick: m, metadata: o } = r, h = F(), u = (g) => {
|
|
73
|
+
m(g, h);
|
|
94
74
|
};
|
|
95
75
|
return /* @__PURE__ */ n(
|
|
96
|
-
|
|
76
|
+
q,
|
|
97
77
|
{
|
|
98
|
-
ref:
|
|
78
|
+
ref: h,
|
|
99
79
|
name: o == null ? void 0 : o.name,
|
|
100
80
|
"data-accessor": o == null ? void 0 : o.accessor,
|
|
101
81
|
className: "blog-card",
|
|
102
|
-
onClick:
|
|
82
|
+
onClick: u,
|
|
103
83
|
children: [
|
|
104
|
-
/* @__PURE__ */ n(
|
|
84
|
+
/* @__PURE__ */ n(J, { children: [
|
|
105
85
|
/* @__PURE__ */ t("div", { className: "text-wr-title", children: l }),
|
|
106
|
-
/* @__PURE__ */ t("div", { className: "text-wr", children:
|
|
107
|
-
/* @__PURE__ */ t(
|
|
86
|
+
/* @__PURE__ */ t("div", { className: "text-wr", children: a }),
|
|
87
|
+
/* @__PURE__ */ t(G, { color: "gray", onClick: u, children: p })
|
|
108
88
|
] }),
|
|
109
|
-
/* @__PURE__ */ t(
|
|
89
|
+
/* @__PURE__ */ t(H, { src: d })
|
|
110
90
|
]
|
|
111
91
|
}
|
|
112
92
|
);
|
|
113
|
-
}),
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
isLoading: l,
|
|
136
|
-
limit: s,
|
|
137
|
-
keyPrefix: r
|
|
93
|
+
}), V = f(X)`
|
|
94
|
+
@media (max-width: ${k + "px"}) {
|
|
95
|
+
& .skeleton__tags {
|
|
96
|
+
& > div {
|
|
97
|
+
width: 100%;
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
& .skeleton__cards {
|
|
102
|
+
flex-direction: column;
|
|
103
|
+
|
|
104
|
+
& > div {
|
|
105
|
+
background: linear-gradient(
|
|
106
|
+
to right,
|
|
107
|
+
transparent 0%,
|
|
108
|
+
#f4f6fb 40%,
|
|
109
|
+
#f4f6fb 100%
|
|
110
|
+
);
|
|
111
|
+
|
|
112
|
+
box-shadow: none;
|
|
113
|
+
}
|
|
114
|
+
}
|
|
138
115
|
}
|
|
139
|
-
|
|
116
|
+
`, Y = ({ keyPrefix: r }) => /* @__PURE__ */ n(V, { children: [
|
|
117
|
+
/* @__PURE__ */ n(N, { className: "skeleton__tags", children: [
|
|
118
|
+
/* @__PURE__ */ t(
|
|
119
|
+
s,
|
|
120
|
+
{
|
|
121
|
+
height: "2.25rem",
|
|
122
|
+
width: "128px",
|
|
123
|
+
borderRadius: "1rem"
|
|
124
|
+
},
|
|
125
|
+
`${r}-1`
|
|
126
|
+
),
|
|
127
|
+
/* @__PURE__ */ t(
|
|
128
|
+
s,
|
|
129
|
+
{
|
|
130
|
+
height: "2.25rem",
|
|
131
|
+
width: "128px",
|
|
132
|
+
borderRadius: "1rem"
|
|
133
|
+
},
|
|
134
|
+
`${r}-2`
|
|
135
|
+
),
|
|
136
|
+
/* @__PURE__ */ t(
|
|
137
|
+
s,
|
|
138
|
+
{
|
|
139
|
+
height: "2.25rem",
|
|
140
|
+
width: "128px",
|
|
141
|
+
borderRadius: "1rem"
|
|
142
|
+
},
|
|
143
|
+
`${r}-3`
|
|
144
|
+
)
|
|
145
|
+
] }),
|
|
146
|
+
/* @__PURE__ */ n(N, { className: "skeleton__cards", children: [
|
|
147
|
+
/* @__PURE__ */ t(
|
|
148
|
+
s,
|
|
149
|
+
{
|
|
150
|
+
height: "10.375rem",
|
|
151
|
+
borderRadius: "0.75rem"
|
|
152
|
+
},
|
|
153
|
+
`${r}-4`
|
|
154
|
+
),
|
|
155
|
+
/* @__PURE__ */ t(
|
|
156
|
+
s,
|
|
157
|
+
{
|
|
158
|
+
height: "10.375rem",
|
|
159
|
+
borderRadius: "0.75rem"
|
|
160
|
+
},
|
|
161
|
+
`${r}-5`
|
|
162
|
+
),
|
|
163
|
+
/* @__PURE__ */ t(
|
|
164
|
+
s,
|
|
165
|
+
{
|
|
166
|
+
height: "10.375rem",
|
|
167
|
+
borderRadius: "0.75rem"
|
|
168
|
+
},
|
|
169
|
+
`${r}-6`
|
|
170
|
+
)
|
|
171
|
+
] })
|
|
172
|
+
] }), x = ({
|
|
173
|
+
keyPrefix: r,
|
|
174
|
+
isLoading: c = !1,
|
|
175
|
+
fallbackComponent: l = /* @__PURE__ */ t(B, {}),
|
|
176
|
+
children: d
|
|
177
|
+
}) => /* @__PURE__ */ t(O, { fallbackComponent: l, children: c === !0 ? /* @__PURE__ */ t(Y, { keyPrefix: r }) : d }), W = j(Q), pe = _((r, c) => {
|
|
140
178
|
const {
|
|
141
179
|
icon: l,
|
|
142
|
-
title:
|
|
143
|
-
items:
|
|
144
|
-
buttonText:
|
|
180
|
+
title: d,
|
|
181
|
+
items: a,
|
|
182
|
+
buttonText: p,
|
|
145
183
|
limit: m = 3,
|
|
146
184
|
options: o,
|
|
147
|
-
selectedOption:
|
|
148
|
-
onButtonAction:
|
|
185
|
+
selectedOption: h = [],
|
|
186
|
+
onButtonAction: u = () => {
|
|
149
187
|
},
|
|
150
188
|
buttonLink: g,
|
|
151
|
-
onSelectOption:
|
|
189
|
+
onSelectOption: C = () => {
|
|
152
190
|
},
|
|
153
|
-
onSelectAll:
|
|
191
|
+
onSelectAll: y = () => {
|
|
154
192
|
},
|
|
155
|
-
isLoading:
|
|
156
|
-
onSelectCard:
|
|
193
|
+
isLoading: R = !1,
|
|
194
|
+
onSelectCard: b = () => {
|
|
157
195
|
},
|
|
158
|
-
productsToolbarName:
|
|
159
|
-
allButton:
|
|
160
|
-
componentName:
|
|
161
|
-
} =
|
|
162
|
-
var
|
|
163
|
-
return /* @__PURE__ */ t(
|
|
164
|
-
|
|
196
|
+
productsToolbarName: M = "All",
|
|
197
|
+
allButton: z = !1,
|
|
198
|
+
componentName: T
|
|
199
|
+
} = r, $ = E(), I = A(() => {
|
|
200
|
+
var i;
|
|
201
|
+
return /* @__PURE__ */ t(B, { children: $ === !0 ? a == null ? void 0 : a.map((e, w) => /* @__PURE__ */ t(
|
|
202
|
+
W,
|
|
165
203
|
{
|
|
166
204
|
title: e == null ? void 0 : e.title,
|
|
167
205
|
imageUrl: (e == null ? void 0 : e.image) || null,
|
|
168
206
|
text: e == null ? void 0 : e.text,
|
|
169
207
|
buttonText: e == null ? void 0 : e.buttonText,
|
|
170
|
-
onCardClick: (
|
|
171
|
-
metadata: { name:
|
|
208
|
+
onCardClick: (L, S) => b(e, S),
|
|
209
|
+
metadata: { name: T, accessor: e == null ? void 0 : e.accessor }
|
|
172
210
|
},
|
|
173
|
-
|
|
174
|
-
)) : (
|
|
175
|
-
|
|
211
|
+
w
|
|
212
|
+
)) : (i = a == null ? void 0 : a.slice(0, m)) == null ? void 0 : i.map((e, w) => /* @__PURE__ */ t(
|
|
213
|
+
W,
|
|
176
214
|
{
|
|
177
215
|
title: e == null ? void 0 : e.title,
|
|
178
216
|
imageUrl: (e == null ? void 0 : e.image) || null,
|
|
179
217
|
text: e == null ? void 0 : e.text,
|
|
180
218
|
buttonText: e == null ? void 0 : e.buttonText,
|
|
181
|
-
onCardClick: (
|
|
182
|
-
metadata: { name:
|
|
219
|
+
onCardClick: (L, S) => b(e, S),
|
|
220
|
+
metadata: { name: T, accessor: e == null ? void 0 : e.accessor }
|
|
183
221
|
},
|
|
184
|
-
|
|
222
|
+
w
|
|
185
223
|
)) });
|
|
186
|
-
}, [
|
|
224
|
+
}, [a, $, m, b]);
|
|
187
225
|
return /* @__PURE__ */ n(D, { ref: c, children: [
|
|
188
226
|
/* @__PURE__ */ n("div", { className: "regular-title", children: [
|
|
189
227
|
/* @__PURE__ */ n("div", { className: "regular-title-text", children: [
|
|
190
|
-
|
|
191
|
-
/* @__PURE__ */ t("span", { children:
|
|
228
|
+
v(l) && /* @__PURE__ */ t("i", { className: l }),
|
|
229
|
+
/* @__PURE__ */ t("span", { children: d })
|
|
192
230
|
] }),
|
|
193
|
-
|
|
194
|
-
|
|
231
|
+
v(p) && v(g) && !R && /* @__PURE__ */ t(
|
|
232
|
+
K,
|
|
195
233
|
{
|
|
196
234
|
type: "button",
|
|
197
235
|
btnType: "tinted",
|
|
198
236
|
color: "neutral",
|
|
199
|
-
onClick: (
|
|
237
|
+
onClick: (i) => {
|
|
200
238
|
var e;
|
|
201
|
-
(e =
|
|
239
|
+
(e = i == null ? void 0 : i.target) == null || e.blur(), u(g);
|
|
202
240
|
},
|
|
203
241
|
borderRadius: "curved",
|
|
204
|
-
children:
|
|
242
|
+
children: p
|
|
205
243
|
}
|
|
206
244
|
)
|
|
207
245
|
] }),
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
{
|
|
211
|
-
items: o,
|
|
212
|
-
selectedIds: d,
|
|
213
|
-
onRemove: (a) => {
|
|
214
|
-
y(a);
|
|
215
|
-
},
|
|
216
|
-
onSelect: (a) => {
|
|
217
|
-
y(a);
|
|
218
|
-
},
|
|
219
|
-
onSelectAll: z,
|
|
220
|
-
labelKey: "name",
|
|
221
|
-
valueKey: "code",
|
|
222
|
-
noMargin: !0,
|
|
223
|
-
productsToolbarName: R,
|
|
224
|
-
allButton: A
|
|
225
|
-
}
|
|
226
|
-
),
|
|
227
|
-
/* @__PURE__ */ t(Z, { limit: m, children: /* @__PURE__ */ t(
|
|
228
|
-
V,
|
|
246
|
+
/* @__PURE__ */ n(
|
|
247
|
+
x,
|
|
229
248
|
{
|
|
230
|
-
isLoading:
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
249
|
+
isLoading: R,
|
|
250
|
+
keyPrefix: "blogs-with-filters-skeleton",
|
|
251
|
+
children: [
|
|
252
|
+
(o == null ? void 0 : o.length) > 0 && /* @__PURE__ */ t(
|
|
253
|
+
P,
|
|
254
|
+
{
|
|
255
|
+
items: o,
|
|
256
|
+
selectedIds: h,
|
|
257
|
+
onRemove: (i) => {
|
|
258
|
+
C(i);
|
|
259
|
+
},
|
|
260
|
+
onSelect: (i) => {
|
|
261
|
+
C(i);
|
|
262
|
+
},
|
|
263
|
+
onSelectAll: y,
|
|
264
|
+
labelKey: "name",
|
|
265
|
+
valueKey: "code",
|
|
266
|
+
noMargin: !0,
|
|
267
|
+
productsToolbarName: M,
|
|
268
|
+
allButton: z
|
|
269
|
+
}
|
|
270
|
+
),
|
|
271
|
+
/* @__PURE__ */ t(Z, { limit: m, children: I })
|
|
272
|
+
]
|
|
234
273
|
}
|
|
235
|
-
)
|
|
274
|
+
)
|
|
236
275
|
] });
|
|
237
276
|
});
|
|
238
277
|
export {
|
|
239
|
-
|
|
278
|
+
pe as default
|
|
240
279
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const e=require("react/jsx-runtime"),o=require("react"),m=require("./utils-Dl9xPH4c.cjs"),d=require("./emotion-styled.browser.esm-BtEseadx.cjs"),
|
|
1
|
+
"use strict";const e=require("react/jsx-runtime"),o=require("react"),m=require("./utils-Dl9xPH4c.cjs"),d=require("./emotion-styled.browser.esm-BtEseadx.cjs"),h=require("./consts-goSZX3xP.cjs"),n=require("./style-BAcV7F53.cjs"),g=d.styled.div`
|
|
2
2
|
width: 7.5rem;
|
|
3
3
|
height: auto;
|
|
4
4
|
max-height: 7.5rem;
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
height: auto;
|
|
13
13
|
}
|
|
14
14
|
|
|
15
|
-
@media (max-width: ${
|
|
15
|
+
@media (max-width: ${h.MOBILE_SIZE_PX+"px"}) {
|
|
16
16
|
width: 4.5rem;
|
|
17
17
|
height: auto;
|
|
18
18
|
max-height: 4.5rem;
|
|
@@ -22,16 +22,7 @@
|
|
|
22
22
|
height: auto;
|
|
23
23
|
}
|
|
24
24
|
}
|
|
25
|
-
`,g=d.styled.div`
|
|
26
|
-
width: 7.5rem;
|
|
27
|
-
height: 3.5rem;
|
|
28
|
-
background: ${m.linearGradientAnimation("-90deg")};
|
|
29
|
-
|
|
30
|
-
@media (max-width: ${l.MOBILE_SIZE_PX+"px"}) {
|
|
31
|
-
width: 4.5rem;
|
|
32
|
-
height: 4.5rem;
|
|
33
|
-
}
|
|
34
|
-
`,w=o.forwardRef(({imageComponent:t,image:i,onSelectCard:a},n)=>e.jsx(_,{ref:n,children:m.isDefined(t)?t:e.jsx("img",{src:i,className:"wrapper__image",onClick:a})})),x=o.forwardRef(({},t)=>e.jsx(g,{})),f=d.styled.div`
|
|
25
|
+
`,w=o.forwardRef(({imageComponent:r,image:i,onSelectCard:t},s)=>e.jsx(g,{ref:s,children:m.isDefined(r)?r:e.jsx("img",{src:i,className:"wrapper__image",onClick:t})})),_=d.styled.div`
|
|
35
26
|
display: flex;
|
|
36
27
|
flex-direction: column;
|
|
37
28
|
align-items: flex-start;
|
|
@@ -80,7 +71,7 @@
|
|
|
80
71
|
}
|
|
81
72
|
}
|
|
82
73
|
|
|
83
|
-
@media (max-width: ${
|
|
74
|
+
@media (max-width: ${h.MOBILE_SIZE_PX+"px"}) {
|
|
84
75
|
& .wrapper__content {
|
|
85
76
|
align-content: center;
|
|
86
77
|
gap: 1rem;
|
|
@@ -91,4 +82,9 @@
|
|
|
91
82
|
}
|
|
92
83
|
}
|
|
93
84
|
}
|
|
94
|
-
`,
|
|
85
|
+
`,x=d.styled(n.SkeletonRowWrapper)`
|
|
86
|
+
@media (max-width: ${h.MOBILE_SIZE_PX+"px"}) {
|
|
87
|
+
gap: 1rem;
|
|
88
|
+
flex-wrap: wrap;
|
|
89
|
+
}
|
|
90
|
+
`,u=({keyPrefix:r})=>e.jsxs(x,{justifyContent:"center",alignItems:"center",gap:"3rem",children:[e.jsx(n.SkeletonLinePlaceholder,{height:"4rem",width:"7.5rem",borderRadius:"0.75rem"},`${r}-1`),e.jsx(n.SkeletonLinePlaceholder,{height:"4rem",width:"7.5rem",borderRadius:"0.75rem"},`${r}-2`),e.jsx(n.SkeletonLinePlaceholder,{height:"4rem",width:"7.5rem",borderRadius:"0.75rem"},`${r}-3`),e.jsx(n.SkeletonLinePlaceholder,{height:"4rem",width:"7.5rem",borderRadius:"0.75rem"},`${r}-4`),e.jsx(n.SkeletonLinePlaceholder,{height:"4rem",width:"7.5rem",borderRadius:"0.75rem"},`${r}-5`)]}),f=({keyPrefix:r,isLoading:i=!1,fallbackComponent:t=e.jsx(e.Fragment,{}),children:s})=>e.jsx(o.Suspense,{fallbackComponent:t,children:i===!0?e.jsx(u,{keyPrefix:r}):s}),j=o.forwardRef(({title:r,subtitle:i,items:t=[],isLoading:s=!1,onSelectCard:l=()=>{}},p)=>e.jsxs(_,{ref:p,children:[e.jsxs("div",{className:"wrapper__heading",children:[r&&e.jsx("div",{className:"wrapper__title",children:r}),i&&e.jsx("div",{className:"wrapper__subtitle",children:i})]}),e.jsx(f,{isLoading:s,keyPrefix:"brand-hits-skeleton",children:e.jsx("div",{className:"wrapper__content",children:t==null?void 0:t.map((a,c)=>e.jsx(w,{image:a==null?void 0:a.image,imageComponent:a==null?void 0:a.imageComponent,onSelectCard:()=>l==null?void 0:l(a),className:"wrapper__item"},`brand-hit-card__${c+1}`))})})]}));module.exports=j;
|
package/dist/BrandHitsSection.js
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { forwardRef as
|
|
3
|
-
import {
|
|
4
|
-
import { s
|
|
5
|
-
import { M as
|
|
6
|
-
|
|
1
|
+
import { jsx as e, jsxs as o, Fragment as g } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as h, Suspense as w } from "react";
|
|
3
|
+
import { l as _ } from "./utils-DHfRApMf.js";
|
|
4
|
+
import { s } from "./emotion-styled.browser.esm-BNN1dTl3.js";
|
|
5
|
+
import { M as d } from "./consts-BuFChS64.js";
|
|
6
|
+
import { a as f, b as m } from "./style-CXMUA6cI.js";
|
|
7
|
+
const u = s.div`
|
|
7
8
|
width: 7.5rem;
|
|
8
9
|
height: auto;
|
|
9
10
|
max-height: 7.5rem;
|
|
@@ -17,7 +18,7 @@ const w = d.div`
|
|
|
17
18
|
height: auto;
|
|
18
19
|
}
|
|
19
20
|
|
|
20
|
-
@media (max-width: ${
|
|
21
|
+
@media (max-width: ${d + "px"}) {
|
|
21
22
|
width: 4.5rem;
|
|
22
23
|
height: auto;
|
|
23
24
|
max-height: 4.5rem;
|
|
@@ -27,18 +28,9 @@ const w = d.div`
|
|
|
27
28
|
height: auto;
|
|
28
29
|
}
|
|
29
30
|
}
|
|
30
|
-
`,
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
background: ${_("-90deg")};
|
|
34
|
-
|
|
35
|
-
@media (max-width: ${l + "px"}) {
|
|
36
|
-
width: 4.5rem;
|
|
37
|
-
height: 4.5rem;
|
|
38
|
-
}
|
|
39
|
-
`, x = o(
|
|
40
|
-
({ imageComponent: a, image: i, onSelectCard: t }, n) => /* @__PURE__ */ r(w, { ref: n, children: g(a) ? a : /* @__PURE__ */ r("img", { src: i, className: "wrapper__image", onClick: t }) })
|
|
41
|
-
), u = o(({}, a) => /* @__PURE__ */ r(f, {})), v = d.div`
|
|
31
|
+
`, x = h(
|
|
32
|
+
({ imageComponent: r, image: i, onSelectCard: a }, n) => /* @__PURE__ */ e(u, { ref: n, children: _(r) ? r : /* @__PURE__ */ e("img", { src: i, className: "wrapper__image", onClick: a }) })
|
|
33
|
+
), v = s.div`
|
|
42
34
|
display: flex;
|
|
43
35
|
flex-direction: column;
|
|
44
36
|
align-items: flex-start;
|
|
@@ -87,7 +79,7 @@ const w = d.div`
|
|
|
87
79
|
}
|
|
88
80
|
}
|
|
89
81
|
|
|
90
|
-
@media (max-width: ${
|
|
82
|
+
@media (max-width: ${d + "px"}) {
|
|
91
83
|
& .wrapper__content {
|
|
92
84
|
align-content: center;
|
|
93
85
|
gap: 1rem;
|
|
@@ -98,32 +90,88 @@ const w = d.div`
|
|
|
98
90
|
}
|
|
99
91
|
}
|
|
100
92
|
}
|
|
101
|
-
`,
|
|
102
|
-
(
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
return /* @__PURE__ */ h(v, { ref: c, children: [
|
|
106
|
-
/* @__PURE__ */ h("div", { className: "wrapper__heading", children: [
|
|
107
|
-
a && /* @__PURE__ */ r("div", { className: "wrapper__title", children: a }),
|
|
108
|
-
i && /* @__PURE__ */ r("div", { className: "wrapper__subtitle", children: i })
|
|
109
|
-
] }),
|
|
110
|
-
/* @__PURE__ */ r("div", { className: "wrapper__content", children: n ? (s = Array.from("12345")) == null ? void 0 : s.map((e, m) => /* @__PURE__ */ r(
|
|
111
|
-
u,
|
|
112
|
-
{},
|
|
113
|
-
`brand-hit-card-skeleton__${m + 1}`
|
|
114
|
-
)) : t == null ? void 0 : t.map((e, m) => /* @__PURE__ */ r(
|
|
115
|
-
x,
|
|
116
|
-
{
|
|
117
|
-
image: e == null ? void 0 : e.image,
|
|
118
|
-
imageComponent: e == null ? void 0 : e.imageComponent,
|
|
119
|
-
onSelectCard: () => p == null ? void 0 : p(e),
|
|
120
|
-
className: "wrapper__item"
|
|
121
|
-
},
|
|
122
|
-
`brand-hit-card__${m + 1}`
|
|
123
|
-
)) })
|
|
124
|
-
] });
|
|
93
|
+
`, b = s(f)`
|
|
94
|
+
@media (max-width: ${d + "px"}) {
|
|
95
|
+
gap: 1rem;
|
|
96
|
+
flex-wrap: wrap;
|
|
125
97
|
}
|
|
98
|
+
`, $ = ({ keyPrefix: r }) => /* @__PURE__ */ o(b, { justifyContent: "center", alignItems: "center", gap: "3rem", children: [
|
|
99
|
+
/* @__PURE__ */ e(
|
|
100
|
+
m,
|
|
101
|
+
{
|
|
102
|
+
height: "4rem",
|
|
103
|
+
width: "7.5rem",
|
|
104
|
+
borderRadius: "0.75rem"
|
|
105
|
+
},
|
|
106
|
+
`${r}-1`
|
|
107
|
+
),
|
|
108
|
+
/* @__PURE__ */ e(
|
|
109
|
+
m,
|
|
110
|
+
{
|
|
111
|
+
height: "4rem",
|
|
112
|
+
width: "7.5rem",
|
|
113
|
+
borderRadius: "0.75rem"
|
|
114
|
+
},
|
|
115
|
+
`${r}-2`
|
|
116
|
+
),
|
|
117
|
+
/* @__PURE__ */ e(
|
|
118
|
+
m,
|
|
119
|
+
{
|
|
120
|
+
height: "4rem",
|
|
121
|
+
width: "7.5rem",
|
|
122
|
+
borderRadius: "0.75rem"
|
|
123
|
+
},
|
|
124
|
+
`${r}-3`
|
|
125
|
+
),
|
|
126
|
+
/* @__PURE__ */ e(
|
|
127
|
+
m,
|
|
128
|
+
{
|
|
129
|
+
height: "4rem",
|
|
130
|
+
width: "7.5rem",
|
|
131
|
+
borderRadius: "0.75rem"
|
|
132
|
+
},
|
|
133
|
+
`${r}-4`
|
|
134
|
+
),
|
|
135
|
+
/* @__PURE__ */ e(
|
|
136
|
+
m,
|
|
137
|
+
{
|
|
138
|
+
height: "4rem",
|
|
139
|
+
width: "7.5rem",
|
|
140
|
+
borderRadius: "0.75rem"
|
|
141
|
+
},
|
|
142
|
+
`${r}-5`
|
|
143
|
+
)
|
|
144
|
+
] }), y = ({
|
|
145
|
+
keyPrefix: r,
|
|
146
|
+
isLoading: i = !1,
|
|
147
|
+
fallbackComponent: a = /* @__PURE__ */ e(g, {}),
|
|
148
|
+
children: n
|
|
149
|
+
}) => /* @__PURE__ */ e(w, { fallbackComponent: a, children: i === !0 ? /* @__PURE__ */ e($, { keyPrefix: r }) : n }), I = h(
|
|
150
|
+
({ title: r, subtitle: i, items: a = [], isLoading: n = !1, onSelectCard: p = () => {
|
|
151
|
+
} }, l) => /* @__PURE__ */ o(v, { ref: l, children: [
|
|
152
|
+
/* @__PURE__ */ o("div", { className: "wrapper__heading", children: [
|
|
153
|
+
r && /* @__PURE__ */ e("div", { className: "wrapper__title", children: r }),
|
|
154
|
+
i && /* @__PURE__ */ e("div", { className: "wrapper__subtitle", children: i })
|
|
155
|
+
] }),
|
|
156
|
+
/* @__PURE__ */ e(
|
|
157
|
+
y,
|
|
158
|
+
{
|
|
159
|
+
isLoading: n,
|
|
160
|
+
keyPrefix: "brand-hits-skeleton",
|
|
161
|
+
children: /* @__PURE__ */ e("div", { className: "wrapper__content", children: a == null ? void 0 : a.map((t, c) => /* @__PURE__ */ e(
|
|
162
|
+
x,
|
|
163
|
+
{
|
|
164
|
+
image: t == null ? void 0 : t.image,
|
|
165
|
+
imageComponent: t == null ? void 0 : t.imageComponent,
|
|
166
|
+
onSelectCard: () => p == null ? void 0 : p(t),
|
|
167
|
+
className: "wrapper__item"
|
|
168
|
+
},
|
|
169
|
+
`brand-hit-card__${c + 1}`
|
|
170
|
+
)) })
|
|
171
|
+
}
|
|
172
|
+
)
|
|
173
|
+
] })
|
|
126
174
|
);
|
|
127
175
|
export {
|
|
128
|
-
|
|
176
|
+
I as default
|
|
129
177
|
};
|
package/dist/Breadcrumbs.js
CHANGED
|
@@ -2,7 +2,7 @@ import { jsx as o, jsxs as u, Fragment as A } from "react/jsx-runtime";
|
|
|
2
2
|
import { forwardRef as N, useState as O } from "react";
|
|
3
3
|
import { P as t } from "./index-CblbdqjE.js";
|
|
4
4
|
import { s as c } from "./emotion-styled.browser.esm-BNN1dTl3.js";
|
|
5
|
-
import { c as P, b as S } from "./utils-
|
|
5
|
+
import { c as P, b as S } from "./utils-DHfRApMf.js";
|
|
6
6
|
import v from "./Icon.js";
|
|
7
7
|
import { u as R } from "./emotion-element-f0de968e.browser.esm-CkCiQliQ.js";
|
|
8
8
|
const $ = c.div`
|
package/dist/Button.js
CHANGED
|
@@ -3,7 +3,7 @@ import { forwardRef as q } from "react";
|
|
|
3
3
|
import { P as n } from "./index-CblbdqjE.js";
|
|
4
4
|
import { i as T } from "./index-6RFrSPs_.js";
|
|
5
5
|
import { s as u } from "./emotion-styled.browser.esm-BNN1dTl3.js";
|
|
6
|
-
import { c as O, b as t, d as r, h as z, e as I, a as A } from "./utils-
|
|
6
|
+
import { c as O, b as t, d as r, h as z, e as I, a as A } from "./utils-DHfRApMf.js";
|
|
7
7
|
import w from "./Icon.js";
|
|
8
8
|
import { u as G } from "./emotion-element-f0de968e.browser.esm-CkCiQliQ.js";
|
|
9
9
|
const x = {
|
package/dist/ButtonGroup.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as u } from "react/jsx-runtime";
|
|
2
2
|
import { s as i } from "./emotion-styled.browser.esm-BNN1dTl3.js";
|
|
3
3
|
import { P as t } from "./index-CblbdqjE.js";
|
|
4
|
-
import { b as o, a as b } from "./utils-
|
|
4
|
+
import { b as o, a as b } from "./utils-DHfRApMf.js";
|
|
5
5
|
import { u as l } from "./emotion-element-f0de968e.browser.esm-CkCiQliQ.js";
|
|
6
6
|
const s = i.div`
|
|
7
7
|
display: inline-flex;
|
|
@@ -9,7 +9,7 @@ import _ from "./DropdownItem.js";
|
|
|
9
9
|
import K from "./DropdownMenu.js";
|
|
10
10
|
import X from "./IconButton.js";
|
|
11
11
|
import Z from "./BannerSectionWithList.js";
|
|
12
|
-
import { y as q } from "./utils-
|
|
12
|
+
import { y as q } from "./utils-DHfRApMf.js";
|
|
13
13
|
const J = y.div`
|
|
14
14
|
display: flex;
|
|
15
15
|
flex-direction: column;
|