@lanaco/lnc-react-ui 4.0.30 → 4.0.32
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 +3 -3
- package/dist/AccordionDetails.js +1 -1
- package/dist/AccordionSummary.js +3 -3
- package/dist/ActionsToolbar.js +2 -2
- package/dist/Alert.js +2 -2
- package/dist/Avatar.js +7 -7
- package/dist/Badge.js +3 -3
- package/dist/BannerSectionBasic.cjs +56 -0
- package/dist/BannerSectionBasic.js +112 -0
- package/dist/BannerSectionCarousel.js +1 -1
- package/dist/BannerSectionGrid.js +2 -2
- package/dist/BannerSectionSimple.js +1 -1
- package/dist/BannerSectionWithList.js +13 -13
- package/dist/BannerSectionWithListImage.js +1 -1
- package/dist/BrandHitsSection.js +2 -2
- package/dist/Breadcrumbs.js +3 -3
- package/dist/Button.js +3 -3
- package/dist/ButtonGroup.js +3 -3
- package/dist/CheckBoxInput.js +3 -3
- package/dist/Chip.js +3 -3
- package/dist/ColorInput.js +3 -3
- package/dist/ConfirmationForm.js +3 -3
- package/dist/{CustomStyles-C7wXBd9m.js → CustomStyles-DuADCM-0.js} +4 -4
- package/dist/DataView.js +1 -1
- package/dist/DateInput.js +5 -5
- package/dist/DecimalInput.js +3 -3
- package/dist/DecimalInputV2.js +3 -3
- package/dist/DetailedProductsSection.js +7 -7
- package/dist/DetailsView.js +3 -3
- package/dist/DoubleRangeSlider.js +3 -3
- package/dist/DragAndDropFile.js +4 -4
- package/dist/DragDropFiles.js +3 -3
- package/dist/Drawer.js +3 -3
- package/dist/Dropdown.js +3 -3
- package/dist/DropdownItem.js +3 -3
- package/dist/DropdownLookup.js +3 -3
- package/dist/DropdownMenu.js +3 -3
- package/dist/EditableTable.js +3 -3
- package/dist/FieldOfInterestsMasonrySection.js +6 -6
- package/dist/FieldOfInterestsWithAvatarsCardsSection.js +5 -5
- package/dist/FieldOfInterestsWithTagsCardsSection.js +5 -5
- package/dist/FileInput.js +9 -9
- package/dist/FlexBox.js +1 -1
- package/dist/FlexGridItem.js +2 -2
- package/dist/FormField.js +3 -3
- package/dist/FormView.js +3 -3
- package/dist/GiftCardsSection.js +2 -2
- package/dist/Grid.js +1 -1
- package/dist/GridItem.js +1 -1
- package/dist/Icon.js +3 -3
- package/dist/IconButton.js +3 -3
- package/dist/Kanban.js +4 -4
- package/dist/KanbanActionsToolbar.js +2 -2
- package/dist/{KanbanCard-Du9Pc6tN.js → KanbanCard-BDyFaKYd.js} +2 -2
- package/dist/KanbanCard.js +3 -3
- package/dist/KanbanFooter.js +2 -2
- package/dist/KanbanHeader.js +2 -2
- package/dist/KanbanView.js +12 -12
- package/dist/Link.js +3 -3
- package/dist/MasonryGeneralCardsSection.js +3 -3
- package/dist/MenuItem.js +3 -3
- package/dist/Modal.js +5 -5
- package/dist/MultiSelectDropdown.js +2 -2
- package/dist/MultiSelectDropdownLookup.js +2 -2
- package/dist/NestedDropdownItem.js +5 -5
- package/dist/NestedMenuItem.js +5 -5
- package/dist/NotificationContainer.js +2 -2
- package/dist/NotificationMessage.js +3 -3
- package/dist/NumberInput.js +3 -3
- package/dist/PageLayout.js +2 -2
- package/dist/Pagination.js +2 -2
- package/dist/PasswordInput.js +3 -3
- package/dist/PopoverContent.js +4 -4
- package/dist/ProductsWithBannerSection.js +18 -18
- package/dist/ProgressBar.js +3 -3
- package/dist/RadioGroup.js +2 -2
- package/dist/RadioInput.js +3 -3
- package/dist/RangeSlider.js +3 -3
- package/dist/SearchBar.js +4 -4
- package/dist/Separator.js +3 -3
- package/dist/ShopCardsSection.cjs +234 -0
- package/dist/ShopCardsSection.js +359 -0
- package/dist/Sidebar.js +3 -3
- package/dist/SimpleProductsSection.js +3 -3
- package/dist/Spinner.js +4 -4
- package/dist/Surface.js +3 -3
- package/dist/SwipeableDrawer.js +3 -3
- package/dist/TabItem.js +3 -3
- package/dist/Table.js +3 -3
- package/dist/TableView.js +2 -2
- package/dist/Tabs.js +2 -2
- package/dist/TextAreaInput.js +24 -24
- package/dist/TextInput.js +3 -3
- package/dist/ThemeProvider.js +27 -27
- package/dist/TimeInput.js +10 -10
- package/dist/Toggle.js +7 -7
- package/dist/TreeMenu.js +1 -1
- package/dist/TreeMenuSeparator.js +3 -3
- package/dist/UploadedFile.js +3 -3
- package/dist/UrgentSaleProductsSection.js +2 -2
- package/dist/{defineProperty-BHpTtkhC.js → defineProperty-B5pLF6px.js} +8 -8
- package/dist/{emotion-element-5486c51c.browser.esm-CSejtOeT.js → emotion-element-5486c51c.browser.esm-Bb4VkP8U.js} +4 -4
- package/dist/{emotion-is-prop-valid.esm-BzFBwmJz.js → emotion-is-prop-valid.esm-DkbeH1Xy.js} +1 -1
- package/dist/{emotion-react.browser.esm-DAprMzO3.js → emotion-react.browser.esm-CN-s34fZ.js} +5 -5
- package/dist/{emotion-styled.browser.esm-BZSYYThs.js → emotion-styled.browser.esm-BiK8DcgW.js} +12 -12
- package/dist/{index-BLQWNy78.js → index-BUChtubz.js} +4 -4
- package/dist/{index--F2p-wtI.js → index-DGl-lSfF.js} +2 -2
- package/dist/{index-BqgD1XIq.js → index-DcYg32le.js} +1 -1
- package/dist/{index-Dt-3eIHg.js → index-jVpIwR2G.js} +4 -4
- package/dist/index.cjs +1 -56
- package/dist/index.js +216 -321
- package/dist/{motion-CtkUpWEn.js → motion-ecIGZGwI.js} +1 -1
- package/dist/{setPrototypeOf-a891FLQJ.js → setPrototypeOf-CttqfWo1.js} +2 -2
- package/dist/{style-D8LBrh3f.js → style-Ch-xOasu.js} +1 -1
- package/dist/{tslib.es6-ZNVz5r_T.js → tslib.es6-DQ-SzcmG.js} +5 -5
- package/dist/{utils-ROK9-zue.js → utils-DtEdJZWa.js} +17 -17
- package/package.json +3 -2
- package/vite.config.js +8 -0
|
@@ -0,0 +1,359 @@
|
|
|
1
|
+
import { jsxs as t, jsx as r } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as h, Fragment as y } from "react";
|
|
3
|
+
import u from "./Button.js";
|
|
4
|
+
import N from "./Icon.js";
|
|
5
|
+
import { t as x, m as v, l as b } from "./utils-DtEdJZWa.js";
|
|
6
|
+
import { n as c } from "./emotion-styled.browser.esm-BiK8DcgW.js";
|
|
7
|
+
import { M as k } from "./consts-DNVz1x1I.js";
|
|
8
|
+
const $ = c.div`
|
|
9
|
+
display: flex;
|
|
10
|
+
flex-direction: column;
|
|
11
|
+
align-items: center;
|
|
12
|
+
border-radius: 1.25rem;
|
|
13
|
+
border: 1px solid var(--neutral-9508, rgba(20, 22, 26, 0.08));
|
|
14
|
+
background: var(--Lanaco-Gray-white, #fff);
|
|
15
|
+
|
|
16
|
+
/* drop-shadow-sm */
|
|
17
|
+
box-shadow: 0px 1px 2px 0px rgba(0, 0, 0, 0.05);
|
|
18
|
+
|
|
19
|
+
& .wrapper__content {
|
|
20
|
+
display: flex;
|
|
21
|
+
padding: 1.25rem;
|
|
22
|
+
flex-direction: column;
|
|
23
|
+
align-items: center;
|
|
24
|
+
gap: 0.75rem;
|
|
25
|
+
align-self: strech;
|
|
26
|
+
|
|
27
|
+
& .wrapper__image {
|
|
28
|
+
object-fit: cover;
|
|
29
|
+
aspect-ratio: 1 / 1;
|
|
30
|
+
max-height: 4rem;
|
|
31
|
+
border-radius: 999px;
|
|
32
|
+
|
|
33
|
+
&:hover {
|
|
34
|
+
cursor: pointer;
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
& .wrapper__info {
|
|
40
|
+
display: flex;
|
|
41
|
+
flex-direction: column;
|
|
42
|
+
align-items: center;
|
|
43
|
+
gap: 0.375rem;
|
|
44
|
+
|
|
45
|
+
& .wrapper__title {
|
|
46
|
+
color: var(--gray-950, #14161a);
|
|
47
|
+
font-size: 1rem;
|
|
48
|
+
font-style: normal;
|
|
49
|
+
font-weight: 500;
|
|
50
|
+
line-height: 1.5rem;
|
|
51
|
+
letter-spacing: -0.0112rem;
|
|
52
|
+
${x(2)}
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
& .wrapper__subtitle {
|
|
56
|
+
color: var(--gray-600, #676e79);
|
|
57
|
+
text-align: center;
|
|
58
|
+
font-size: 0.875rem;
|
|
59
|
+
font-style: normal;
|
|
60
|
+
font-weight: 400;
|
|
61
|
+
line-height: 1.25rem;
|
|
62
|
+
letter-spacing: -0.0056rem;
|
|
63
|
+
${x(2)}
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
& .wrapper__badges {
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
& .wrapper__rating {
|
|
70
|
+
display: flex;
|
|
71
|
+
align-items: center;
|
|
72
|
+
gap: 0.25rem;
|
|
73
|
+
|
|
74
|
+
& .wrapper__star {
|
|
75
|
+
color: var(--gray-950, #14161a);
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
& .wrapper__review-count {
|
|
79
|
+
color: var(--gray-600, #676e79);
|
|
80
|
+
font-size: 0.75rem;
|
|
81
|
+
font-style: normal;
|
|
82
|
+
font-weight: 400;
|
|
83
|
+
line-height: 1rem;
|
|
84
|
+
letter-spacing: 0.01px;
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
& .wrapper__products {
|
|
90
|
+
display: flex;
|
|
91
|
+
align-items: flex-start;
|
|
92
|
+
column-gap: 1px;
|
|
93
|
+
width: 100%;
|
|
94
|
+
|
|
95
|
+
& .wrapper__product {
|
|
96
|
+
overflow: hidden;
|
|
97
|
+
cursor: pointer;
|
|
98
|
+
width: 100%;
|
|
99
|
+
max-height: 5.75rem;
|
|
100
|
+
|
|
101
|
+
&:first-child {
|
|
102
|
+
border-radius: 0 0 0 1.25rem;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
&:last-child {
|
|
106
|
+
border-radius: 0 0 1.25rem 0;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
& .product__image {
|
|
110
|
+
width: 100%;
|
|
111
|
+
aspect-ratio: 1 / 1;
|
|
112
|
+
height: calc(100% / 3);
|
|
113
|
+
max-height: 5.75rem;
|
|
114
|
+
object-fit: cover;
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
`, j = c.div`
|
|
119
|
+
display: flex;
|
|
120
|
+
flex-direction: column;
|
|
121
|
+
align-items: center;
|
|
122
|
+
flex: 1 0 0;
|
|
123
|
+
border-radius: 1.25rem;
|
|
124
|
+
border: 1px solid var(--neutral-9508, rgba(20, 22, 26, 0.08));
|
|
125
|
+
background: var(--Lanaco-Gray-white, #fff);
|
|
126
|
+
width: 100%;
|
|
127
|
+
|
|
128
|
+
/* drop-shadow-sm */
|
|
129
|
+
box-shadow: 0px 1px 2px 0px rgba(0, 0, 0, 0.05);
|
|
130
|
+
|
|
131
|
+
& .wrapper__content {
|
|
132
|
+
display: flex;
|
|
133
|
+
padding: 1.25rem;
|
|
134
|
+
flex-direction: column;
|
|
135
|
+
align-items: center;
|
|
136
|
+
gap: 0.75rem;
|
|
137
|
+
align-self: strech;
|
|
138
|
+
width: 100%;
|
|
139
|
+
|
|
140
|
+
& .wrapper__image {
|
|
141
|
+
width: 4rem;
|
|
142
|
+
height: 4rem;
|
|
143
|
+
border-radius: 999px;
|
|
144
|
+
background-color: ${v("-90deg")};
|
|
145
|
+
}
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
& .wrapper__info {
|
|
149
|
+
display: flex;
|
|
150
|
+
flex-direction: column;
|
|
151
|
+
align-items: center;
|
|
152
|
+
gap: 0.375rem;
|
|
153
|
+
width: 100%;
|
|
154
|
+
|
|
155
|
+
& .wrapper__info-item {
|
|
156
|
+
background-color: ${v("-90deg")};
|
|
157
|
+
height: 1rem;
|
|
158
|
+
width: 100%;
|
|
159
|
+
}
|
|
160
|
+
}
|
|
161
|
+
`, z = h(
|
|
162
|
+
({
|
|
163
|
+
image: a,
|
|
164
|
+
imageComponent: p,
|
|
165
|
+
title: n,
|
|
166
|
+
subtitle: _,
|
|
167
|
+
badges: g,
|
|
168
|
+
rating: o,
|
|
169
|
+
reviewCount: s,
|
|
170
|
+
products: l,
|
|
171
|
+
onSelectCard: d = () => {
|
|
172
|
+
}
|
|
173
|
+
}, w) => /* @__PURE__ */ t($, { onClick: d, children: [
|
|
174
|
+
/* @__PURE__ */ t("div", { className: "wrapper__content", children: [
|
|
175
|
+
b(p) ? p : /* @__PURE__ */ r("img", { src: a, className: "wrapper__image" }),
|
|
176
|
+
/* @__PURE__ */ t("div", { className: "wrapper__info", children: [
|
|
177
|
+
/* @__PURE__ */ r("div", { className: "wrapper__title", children: n }),
|
|
178
|
+
/* @__PURE__ */ r("div", { className: "wrapper__subtitle", children: _ }),
|
|
179
|
+
g && /* @__PURE__ */ r("div", { className: "wrapper__badges" }),
|
|
180
|
+
o && s && /* @__PURE__ */ t("div", { className: "wrapper__rating", children: [
|
|
181
|
+
/* @__PURE__ */ r("div", { className: "wrapper_stars", children: [...Array(5).keys()].map((i, m) => /* @__PURE__ */ r(
|
|
182
|
+
N,
|
|
183
|
+
{
|
|
184
|
+
icon: i < o ? " mng-lnc-star--filled" : " mng-lnc-star",
|
|
185
|
+
className: "wrapper__star"
|
|
186
|
+
},
|
|
187
|
+
`shop-card-rating-star__${m + 1}`
|
|
188
|
+
)) }),
|
|
189
|
+
/* @__PURE__ */ t("div", { className: "wrapper__review-count", children: [
|
|
190
|
+
"(",
|
|
191
|
+
s == null ? void 0 : s.toLocaleString(),
|
|
192
|
+
")"
|
|
193
|
+
] })
|
|
194
|
+
] })
|
|
195
|
+
] })
|
|
196
|
+
] }),
|
|
197
|
+
/* @__PURE__ */ r("div", { className: "wrapper__products", children: l && (l == null ? void 0 : l.map((i, m) => /* @__PURE__ */ r(y, { children: /* @__PURE__ */ r(
|
|
198
|
+
"div",
|
|
199
|
+
{
|
|
200
|
+
className: "wrapper__product",
|
|
201
|
+
onClick: () => {
|
|
202
|
+
var e;
|
|
203
|
+
return (e = i == null ? void 0 : i.onSelectProduct) == null ? void 0 : e.call(i, i == null ? void 0 : i.uuid);
|
|
204
|
+
},
|
|
205
|
+
children: b(i == null ? void 0 : i.imageComponent) ? i == null ? void 0 : i.imageComponent : /* @__PURE__ */ r("img", { src: i == null ? void 0 : i.image, className: "product__image" })
|
|
206
|
+
}
|
|
207
|
+
) }, m))) })
|
|
208
|
+
] })
|
|
209
|
+
), C = h(({}, a) => /* @__PURE__ */ r(j, { children: /* @__PURE__ */ t("div", { className: "wrapper__content", children: [
|
|
210
|
+
/* @__PURE__ */ r("div", { className: "wrapper__image" }),
|
|
211
|
+
/* @__PURE__ */ t("div", { className: "wrapper__info", children: [
|
|
212
|
+
/* @__PURE__ */ r("div", { className: "wrapper__info-item" }),
|
|
213
|
+
/* @__PURE__ */ r("div", { className: "wrapper__info-item" }),
|
|
214
|
+
/* @__PURE__ */ r("div", { className: "wrapper__info-item" }),
|
|
215
|
+
/* @__PURE__ */ r("div", { className: "wrapper__info-item" })
|
|
216
|
+
] })
|
|
217
|
+
] }) })), I = c.div`
|
|
218
|
+
display: flex;
|
|
219
|
+
flex-direction: column;
|
|
220
|
+
align-items: flex-start;
|
|
221
|
+
gap: 1.5rem;
|
|
222
|
+
|
|
223
|
+
& .wrapper__heading {
|
|
224
|
+
display: flex;
|
|
225
|
+
flex-direction: column;
|
|
226
|
+
gap: 1rem;
|
|
227
|
+
width: 100%;
|
|
228
|
+
|
|
229
|
+
& .wrapper__title {
|
|
230
|
+
display: flex;
|
|
231
|
+
justify-content: space-between;
|
|
232
|
+
|
|
233
|
+
& .title__text {
|
|
234
|
+
color: var(--gray-950, #14161a);
|
|
235
|
+
text-align: center;
|
|
236
|
+
font-size: 1.5rem;
|
|
237
|
+
font-style: normal;
|
|
238
|
+
font-weight: 600;
|
|
239
|
+
line-height: 2rem;
|
|
240
|
+
letter-spacing: -0.47px;
|
|
241
|
+
}
|
|
242
|
+
|
|
243
|
+
& .title__action {
|
|
244
|
+
color: var(--gray-950, #14161a);
|
|
245
|
+
background: var(--neutral-9504, rgba(20, 22, 26, 0.04));
|
|
246
|
+
|
|
247
|
+
&:hover {
|
|
248
|
+
background: var(--neutral-9504, rgba(20, 22, 26, 0.12));
|
|
249
|
+
}
|
|
250
|
+
|
|
251
|
+
&:focus {
|
|
252
|
+
outline: none;
|
|
253
|
+
}
|
|
254
|
+
}
|
|
255
|
+
}
|
|
256
|
+
|
|
257
|
+
& .wrapper__subtitle {
|
|
258
|
+
color: var(---gray-600, #676e79);
|
|
259
|
+
font-size: 0.875rem;
|
|
260
|
+
font-style: normal;
|
|
261
|
+
font-weight: 400;
|
|
262
|
+
line-height: 1.25rem;
|
|
263
|
+
letter-spacing: 0.25px;
|
|
264
|
+
}
|
|
265
|
+
}
|
|
266
|
+
|
|
267
|
+
& .wrapper__cards {
|
|
268
|
+
display: grid;
|
|
269
|
+
grid-template-columns: ${(a) => `repeat(${a == null ? void 0 : a.limitCards}, minmax(0, 1fr))`};
|
|
270
|
+
gap: 1.25rem;
|
|
271
|
+
justify-items: center;
|
|
272
|
+
align-items: center;
|
|
273
|
+
width: 100%;
|
|
274
|
+
}
|
|
275
|
+
|
|
276
|
+
@media (max-width: ${k + "px"}) {
|
|
277
|
+
& .wrapper__heading {
|
|
278
|
+
& .wrapper__title {
|
|
279
|
+
& .title__action {
|
|
280
|
+
display: none;
|
|
281
|
+
}
|
|
282
|
+
}
|
|
283
|
+
}
|
|
284
|
+
|
|
285
|
+
& .wrapper__cards {
|
|
286
|
+
grid-template-columns: ${(a) => `repeat(${a == null ? void 0 : a.limitCardsForMobile}, minmax(0, 1fr))`};
|
|
287
|
+
gap: 1rem;
|
|
288
|
+
}
|
|
289
|
+
}
|
|
290
|
+
|
|
291
|
+
@media (max-width: 400px) {
|
|
292
|
+
& .wrapper__cards {
|
|
293
|
+
grid-template-columns: repeat(1, minmax(0, 1fr));
|
|
294
|
+
gap: 1rem;
|
|
295
|
+
}
|
|
296
|
+
}
|
|
297
|
+
`, F = h(
|
|
298
|
+
({
|
|
299
|
+
title: a,
|
|
300
|
+
subtitle: p,
|
|
301
|
+
cards: n,
|
|
302
|
+
limitCards: _ = 4,
|
|
303
|
+
limitCardsForMobile: g = 2,
|
|
304
|
+
actionText: o,
|
|
305
|
+
onSelectCard: s = () => {
|
|
306
|
+
},
|
|
307
|
+
onShowMore: l
|
|
308
|
+
}, d) => {
|
|
309
|
+
var m;
|
|
310
|
+
const w = () => {
|
|
311
|
+
l == null || l();
|
|
312
|
+
}, i = (e) => {
|
|
313
|
+
s == null || s(e == null ? void 0 : e.uuid);
|
|
314
|
+
};
|
|
315
|
+
return /* @__PURE__ */ t(
|
|
316
|
+
I,
|
|
317
|
+
{
|
|
318
|
+
limitCards: _,
|
|
319
|
+
limitCardsForMobile: g,
|
|
320
|
+
children: [
|
|
321
|
+
/* @__PURE__ */ t("div", { className: "wrapper__heading", children: [
|
|
322
|
+
/* @__PURE__ */ t("div", { className: "wrapper__title", children: [
|
|
323
|
+
a && /* @__PURE__ */ r("div", { className: "title__text", children: a }),
|
|
324
|
+
o && l && /* @__PURE__ */ r(
|
|
325
|
+
u,
|
|
326
|
+
{
|
|
327
|
+
text: o,
|
|
328
|
+
borderRadius: "curved",
|
|
329
|
+
btnType: "tinted",
|
|
330
|
+
className: "title__action",
|
|
331
|
+
onClick: w
|
|
332
|
+
}
|
|
333
|
+
)
|
|
334
|
+
] }),
|
|
335
|
+
p && /* @__PURE__ */ r("div", { className: "wrapper__subtitle", children: p })
|
|
336
|
+
] }),
|
|
337
|
+
/* @__PURE__ */ r("div", { className: "wrapper__cards", children: n && (n == null ? void 0 : n.length) > 0 ? n == null ? void 0 : n.map((e, f) => /* @__PURE__ */ r(
|
|
338
|
+
z,
|
|
339
|
+
{
|
|
340
|
+
uuid: e == null ? void 0 : e.uuid,
|
|
341
|
+
title: e == null ? void 0 : e.title,
|
|
342
|
+
subtitle: e == null ? void 0 : e.subtitle,
|
|
343
|
+
image: e == null ? void 0 : e.image,
|
|
344
|
+
rating: e == null ? void 0 : e.rating,
|
|
345
|
+
reviewCount: e == null ? void 0 : e.reviewCount,
|
|
346
|
+
products: e == null ? void 0 : e.products,
|
|
347
|
+
imageComponent: e == null ? void 0 : e.imageComponent,
|
|
348
|
+
onSelectCard: () => i == null ? void 0 : i(e)
|
|
349
|
+
},
|
|
350
|
+
`shop-card__${f + 1}`
|
|
351
|
+
)) : (m = Array.from("1234")) == null ? void 0 : m.map((e, f) => /* @__PURE__ */ r(C, {}, `shop-card-skeleton__${f + 1}`)) })
|
|
352
|
+
]
|
|
353
|
+
}
|
|
354
|
+
);
|
|
355
|
+
}
|
|
356
|
+
);
|
|
357
|
+
export {
|
|
358
|
+
F as default
|
|
359
|
+
};
|
package/dist/Sidebar.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { jsxs as g, jsx as o } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef as S, useState as x, useEffect as C } from "react";
|
|
3
3
|
import { P as s } from "./index-S5Cd7WrG.js";
|
|
4
|
-
import { n as l } from "./emotion-styled.browser.esm-
|
|
4
|
+
import { n as l } from "./emotion-styled.browser.esm-BiK8DcgW.js";
|
|
5
5
|
import y from "./Icon.js";
|
|
6
|
-
import { u as $ } from "./utils-
|
|
7
|
-
import { u as _ } from "./emotion-element-5486c51c.browser.esm-
|
|
6
|
+
import { u as $ } from "./utils-DtEdJZWa.js";
|
|
7
|
+
import { u as _ } from "./emotion-element-5486c51c.browser.esm-Bb4VkP8U.js";
|
|
8
8
|
const v = l.aside`
|
|
9
9
|
direction: ${(e) => e.placement == "right" ? "rtl" : "ltr"};
|
|
10
10
|
position: relative;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { jsxs as w, jsx as u } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef as b } from "react";
|
|
3
|
-
import { n as h } from "./emotion-styled.browser.esm-
|
|
3
|
+
import { n as h } from "./emotion-styled.browser.esm-BiK8DcgW.js";
|
|
4
4
|
import { M as y } from "./consts-DNVz1x1I.js";
|
|
5
5
|
import { u as k } from "./useDetectMobile-BookNOsk.js";
|
|
6
|
-
import { S as m } from "./index
|
|
7
|
-
import { T as S } from "./index-
|
|
6
|
+
import { S as m } from "./index-DGl-lSfF.js";
|
|
7
|
+
import { T as S } from "./index-DcYg32le.js";
|
|
8
8
|
const v = h.div`
|
|
9
9
|
display: grid;
|
|
10
10
|
grid-template-columns: repeat(6, 1fr);
|
package/dist/Spinner.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { jsxs as c, jsx as o } from "react/jsx-runtime";
|
|
2
2
|
import { P as n } from "./index-S5Cd7WrG.js";
|
|
3
|
-
import { n as s } from "./emotion-styled.browser.esm-
|
|
4
|
-
import { k as p } from "./emotion-react.browser.esm-
|
|
5
|
-
import { g, a as i } from "./utils-
|
|
6
|
-
import { u as h } from "./emotion-element-5486c51c.browser.esm-
|
|
3
|
+
import { n as s } from "./emotion-styled.browser.esm-BiK8DcgW.js";
|
|
4
|
+
import { k as p } from "./emotion-react.browser.esm-CN-s34fZ.js";
|
|
5
|
+
import { g, a as i } from "./utils-DtEdJZWa.js";
|
|
6
|
+
import { u as h } from "./emotion-element-5486c51c.browser.esm-Bb4VkP8U.js";
|
|
7
7
|
const u = {
|
|
8
8
|
small: "0.6rem",
|
|
9
9
|
medium: "0.7rem",
|
package/dist/Surface.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsx as n } from "react/jsx-runtime";
|
|
2
|
-
import { n as x } from "./emotion-styled.browser.esm-
|
|
2
|
+
import { n as x } from "./emotion-styled.browser.esm-BiK8DcgW.js";
|
|
3
3
|
import { P as r } from "./index-S5Cd7WrG.js";
|
|
4
|
-
import {
|
|
5
|
-
import { u as p } from "./emotion-element-5486c51c.browser.esm-
|
|
4
|
+
import { j as u, b as f } from "./utils-DtEdJZWa.js";
|
|
5
|
+
import { u as p } from "./emotion-element-5486c51c.browser.esm-Bb4VkP8U.js";
|
|
6
6
|
const g = x.div`
|
|
7
7
|
padding: ${(e) => e.padding};
|
|
8
8
|
box-shadow: ${(e) => u(e.theme, e.boxShadow)};
|
package/dist/SwipeableDrawer.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { jsx as g, Fragment as Y } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef as V, useRef as q, useState as A, useImperativeHandle as B, useEffect as G } from "react";
|
|
3
3
|
import { P as t } from "./index-S5Cd7WrG.js";
|
|
4
|
-
import { n as y } from "./emotion-styled.browser.esm-
|
|
5
|
-
import { a as $, g as J } from "./utils-
|
|
6
|
-
import { u as K } from "./emotion-element-5486c51c.browser.esm-
|
|
4
|
+
import { n as y } from "./emotion-styled.browser.esm-BiK8DcgW.js";
|
|
5
|
+
import { a as $, g as J } from "./utils-DtEdJZWa.js";
|
|
6
|
+
import { u as K } from "./emotion-element-5486c51c.browser.esm-Bb4VkP8U.js";
|
|
7
7
|
const Q = (e, r, o, u, s) => {
|
|
8
8
|
if (e === "right" || e === "left" || r && o) return "height: 100%;";
|
|
9
9
|
if (!(r && s === !0))
|
package/dist/TabItem.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { jsx as j } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef as D, useState as H } from "react";
|
|
3
3
|
import { P as t } from "./index-S5Cd7WrG.js";
|
|
4
|
-
import { n as I } from "./emotion-styled.browser.esm-
|
|
5
|
-
import { h as S, g as A, a as i, b as o } from "./utils-
|
|
6
|
-
import { u as F } from "./emotion-element-5486c51c.browser.esm-
|
|
4
|
+
import { n as I } from "./emotion-styled.browser.esm-BiK8DcgW.js";
|
|
5
|
+
import { h as S, g as A, a as i, b as o } from "./utils-DtEdJZWa.js";
|
|
6
|
+
import { u as F } from "./emotion-element-5486c51c.browser.esm-Bb4VkP8U.js";
|
|
7
7
|
import { u as h } from "./useUpdateEffect-CuYWz7EA.js";
|
|
8
8
|
const K = (e) => e == "small" ? "3.125rem" : e == "medium" ? "3.375rem" : "3.625rem", V = I.div`
|
|
9
9
|
box-sizing: border-box;
|
package/dist/Table.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { jsx as m, jsxs as de, Fragment as x } from "react/jsx-runtime";
|
|
2
2
|
import { useLayoutEffect as Kr, useEffect as je, useState as Ht, useMemo as Xr, createElement as z, isValidElement as qr, forwardRef as Jr, useImperativeHandle as Zr } from "react";
|
|
3
|
-
import { n as v } from "./emotion-styled.browser.esm-
|
|
3
|
+
import { n as v } from "./emotion-styled.browser.esm-BiK8DcgW.js";
|
|
4
4
|
import { P as o } from "./index-S5Cd7WrG.js";
|
|
5
|
-
import {
|
|
5
|
+
import { v as jt, w as Qr, a as S, g as Ne, x as xt, u as en, y as U, r as P, i as B } from "./utils-DtEdJZWa.js";
|
|
6
6
|
import { c as F, g as De } from "./_commonjsHelpers-DaMA6jEr.js";
|
|
7
|
-
import { u as M } from "./emotion-element-5486c51c.browser.esm-
|
|
7
|
+
import { u as M } from "./emotion-element-5486c51c.browser.esm-Bb4VkP8U.js";
|
|
8
8
|
import { i as tn } from "./index-CvebWhtp.js";
|
|
9
9
|
import $t from "./CheckBoxInput.js";
|
|
10
10
|
import rn from "./Icon.js";
|
package/dist/TableView.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { jsxs as oe, jsx as C } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef as le, useState as te, useRef as ce } from "react";
|
|
3
3
|
import { P as e } from "./index-S5Cd7WrG.js";
|
|
4
|
-
import { n as re } from "./emotion-styled.browser.esm-
|
|
4
|
+
import { n as re } from "./emotion-styled.browser.esm-BiK8DcgW.js";
|
|
5
5
|
import ae from "./ActionsToolbar.js";
|
|
6
6
|
import ie from "./Pagination.js";
|
|
7
|
-
import { r as g,
|
|
7
|
+
import { r as g, i as w } from "./utils-DtEdJZWa.js";
|
|
8
8
|
import se from "./Table.js";
|
|
9
9
|
const me = re.div`
|
|
10
10
|
& .table-view-pagination-lnc {
|
package/dist/Tabs.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsx as T } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef as j, useState as v, Children as c, cloneElement as P } from "react";
|
|
3
3
|
import { P as e } from "./index-S5Cd7WrG.js";
|
|
4
|
-
import { n as W } from "./emotion-styled.browser.esm-
|
|
5
|
-
import { u as k } from "./emotion-element-5486c51c.browser.esm-
|
|
4
|
+
import { n as W } from "./emotion-styled.browser.esm-BiK8DcgW.js";
|
|
5
|
+
import { u as k } from "./emotion-element-5486c51c.browser.esm-Bb4VkP8U.js";
|
|
6
6
|
const w = W.div`
|
|
7
7
|
background: transparent;
|
|
8
8
|
display: flex;
|
package/dist/TextAreaInput.js
CHANGED
|
@@ -3,9 +3,9 @@ import { P as o } from "./index-S5Cd7WrG.js";
|
|
|
3
3
|
import * as v from "react";
|
|
4
4
|
import { useRef as Y, useCallback as A, forwardRef as D, useState as H, useEffect as $ } from "react";
|
|
5
5
|
import { d as X } from "./index-CNBqQrtK.js";
|
|
6
|
-
import { n as Z } from "./emotion-styled.browser.esm-
|
|
7
|
-
import { g as q,
|
|
8
|
-
import { _ as te, u as re } from "./emotion-element-5486c51c.browser.esm-
|
|
6
|
+
import { n as Z } from "./emotion-styled.browser.esm-BiK8DcgW.js";
|
|
7
|
+
import { g as q, d as J, a as z, b as K, e as Q, h as ee } from "./utils-DtEdJZWa.js";
|
|
8
|
+
import { _ as te, u as re } from "./emotion-element-5486c51c.browser.esm-Bb4VkP8U.js";
|
|
9
9
|
import { _ as ne } from "./objectWithoutPropertiesLoose-DwEN6RBQ.js";
|
|
10
10
|
import { i as ae } from "./use-isomorphic-layout-effect.browser.esm-DERp5kr6.js";
|
|
11
11
|
const oe = Z.div`
|
|
@@ -102,7 +102,7 @@ var ie = function(t) {
|
|
|
102
102
|
};
|
|
103
103
|
function se(e, t, r, n) {
|
|
104
104
|
r === void 0 && (r = 1), n === void 0 && (n = 1 / 0), d || (d = document.createElement("textarea"), d.setAttribute("tabindex", "-1"), d.setAttribute("aria-hidden", "true"), k(d)), d.parentNode === null && document.body.appendChild(d);
|
|
105
|
-
var a = e.paddingSize,
|
|
105
|
+
var a = e.paddingSize, f = e.borderSize, s = e.sizingStyle, S = s.boxSizing;
|
|
106
106
|
Object.keys(s).forEach(function(g) {
|
|
107
107
|
var m = g;
|
|
108
108
|
d.style[m] = s[m];
|
|
@@ -110,9 +110,9 @@ function se(e, t, r, n) {
|
|
|
110
110
|
var i = M(d, e);
|
|
111
111
|
d.value = t, i = M(d, e), d.value = "x";
|
|
112
112
|
var u = d.scrollHeight - a, l = u * r;
|
|
113
|
-
S === "border-box" && (l = l + a +
|
|
113
|
+
S === "border-box" && (l = l + a + f), i = Math.max(l, i);
|
|
114
114
|
var c = u * n;
|
|
115
|
-
return S === "border-box" && (c = c + a +
|
|
115
|
+
return S === "border-box" && (c = c + a + f), i = Math.min(c, i), [i, u];
|
|
116
116
|
}
|
|
117
117
|
var V = function() {
|
|
118
118
|
}, le = function(t, r) {
|
|
@@ -145,21 +145,21 @@ var V = function() {
|
|
|
145
145
|
"wordBreak",
|
|
146
146
|
"wordSpacing",
|
|
147
147
|
"scrollbarGutter"
|
|
148
|
-
],
|
|
148
|
+
], he = !!document.documentElement.currentStyle, fe = function(t) {
|
|
149
149
|
var r = window.getComputedStyle(t);
|
|
150
150
|
if (r === null)
|
|
151
151
|
return null;
|
|
152
152
|
var n = le(ce, r), a = n.boxSizing;
|
|
153
153
|
if (a === "")
|
|
154
154
|
return null;
|
|
155
|
-
|
|
156
|
-
var
|
|
155
|
+
he && a === "border-box" && (n.width = parseFloat(n.width) + parseFloat(n.borderRightWidth) + parseFloat(n.borderLeftWidth) + parseFloat(n.paddingRight) + parseFloat(n.paddingLeft) + "px");
|
|
156
|
+
var f = parseFloat(n.paddingBottom) + parseFloat(n.paddingTop), s = parseFloat(n.borderBottomWidth) + parseFloat(n.borderTopWidth);
|
|
157
157
|
return {
|
|
158
158
|
sizingStyle: n,
|
|
159
|
-
paddingSize:
|
|
159
|
+
paddingSize: f,
|
|
160
160
|
borderSize: s
|
|
161
161
|
};
|
|
162
|
-
}, ge =
|
|
162
|
+
}, ge = fe;
|
|
163
163
|
function N(e, t, r) {
|
|
164
164
|
var n = ie(r);
|
|
165
165
|
v.useLayoutEffect(function() {
|
|
@@ -177,11 +177,11 @@ var me = function(t) {
|
|
|
177
177
|
}, be = function(t) {
|
|
178
178
|
N(document.fonts, "loadingdone", t);
|
|
179
179
|
}, pe = ["cacheMeasurements", "maxRows", "minRows", "onChange", "onHeightChange"], ve = function(t, r) {
|
|
180
|
-
var n = t.cacheMeasurements, a = t.maxRows,
|
|
180
|
+
var n = t.cacheMeasurements, a = t.maxRows, f = t.minRows, s = t.onChange, S = s === void 0 ? V : s, i = t.onHeightChange, u = i === void 0 ? V : i, l = ne(t, pe), c = l.value !== void 0, g = v.useRef(null), m = de(g, r), C = v.useRef(0), R = v.useRef(), x = function() {
|
|
181
181
|
var b = g.current, y = n && R.current ? R.current : ge(b);
|
|
182
182
|
if (y) {
|
|
183
183
|
R.current = y;
|
|
184
|
-
var T = se(y, b.value || b.placeholder || "x",
|
|
184
|
+
var T = se(y, b.value || b.placeholder || "x", f, a), p = T[0], L = T[1];
|
|
185
185
|
C.current !== p && (C.current = p, b.style.setProperty("height", p + "px", "important"), u(p, {
|
|
186
186
|
rowHeight: L
|
|
187
187
|
}));
|
|
@@ -199,7 +199,7 @@ const ye = D((e, t) => {
|
|
|
199
199
|
disabled: r,
|
|
200
200
|
readOnly: n,
|
|
201
201
|
value: a,
|
|
202
|
-
defaultValue:
|
|
202
|
+
defaultValue: f,
|
|
203
203
|
debounceTime: s = 0,
|
|
204
204
|
type: S = "textarea",
|
|
205
205
|
collapseOnBlur: i = !1,
|
|
@@ -215,7 +215,7 @@ const ye = D((e, t) => {
|
|
|
215
215
|
size: x = "small",
|
|
216
216
|
color: I = "primary",
|
|
217
217
|
...E
|
|
218
|
-
} = e, [b, y] = H(a ||
|
|
218
|
+
} = e, [b, y] = H(a || f || ""), T = re(), [p, L] = H(!1), [_, j] = H(u), [P, w] = H(
|
|
219
219
|
i ? u : l
|
|
220
220
|
);
|
|
221
221
|
$(() => {
|
|
@@ -226,10 +226,10 @@ const ye = D((e, t) => {
|
|
|
226
226
|
w(i ? p === !0 ? l : u : l);
|
|
227
227
|
}, [i]);
|
|
228
228
|
const U = A(
|
|
229
|
-
X((
|
|
229
|
+
X((h, F) => G(h, F), s),
|
|
230
230
|
[c]
|
|
231
|
-
), G = (
|
|
232
|
-
c && (c == null || c(
|
|
231
|
+
), G = (h, F) => {
|
|
232
|
+
c && (c == null || c(h, F));
|
|
233
233
|
};
|
|
234
234
|
return /* @__PURE__ */ W(
|
|
235
235
|
oe,
|
|
@@ -252,14 +252,14 @@ const ye = D((e, t) => {
|
|
|
252
252
|
readOnly: n,
|
|
253
253
|
minRows: _,
|
|
254
254
|
maxRows: P,
|
|
255
|
-
onChange: (
|
|
256
|
-
y(
|
|
255
|
+
onChange: (h) => {
|
|
256
|
+
y(h.target.value), U(h, h.target.value);
|
|
257
257
|
},
|
|
258
|
-
onFocus: (
|
|
259
|
-
L(!0), i && w(l), m == null || m(
|
|
258
|
+
onFocus: (h) => {
|
|
259
|
+
L(!0), i && w(l), m == null || m(h);
|
|
260
260
|
},
|
|
261
|
-
onBlur: (
|
|
262
|
-
L(!1), i && w(u), g == null || g(
|
|
261
|
+
onBlur: (h) => {
|
|
262
|
+
L(!1), i && w(u), g == null || g(h);
|
|
263
263
|
},
|
|
264
264
|
...E
|
|
265
265
|
}
|
package/dist/TextInput.js
CHANGED
|
@@ -2,9 +2,9 @@ import { jsxs as W, jsx as b } from "react/jsx-runtime";
|
|
|
2
2
|
import { P as t } from "./index-S5Cd7WrG.js";
|
|
3
3
|
import { forwardRef as U, useState as C, useEffect as D, useCallback as E } from "react";
|
|
4
4
|
import { d as q } from "./index-CNBqQrtK.js";
|
|
5
|
-
import { n as u } from "./emotion-styled.browser.esm-
|
|
6
|
-
import {
|
|
7
|
-
import { u as J } from "./emotion-element-5486c51c.browser.esm-
|
|
5
|
+
import { n as u } from "./emotion-styled.browser.esm-BiK8DcgW.js";
|
|
6
|
+
import { d as s, a, b as A, e as G, h as O, g as H } from "./utils-DtEdJZWa.js";
|
|
7
|
+
import { u as J } from "./emotion-element-5486c51c.browser.esm-Bb4VkP8U.js";
|
|
8
8
|
const K = u.div`
|
|
9
9
|
display: flex;
|
|
10
10
|
align-items: center;
|