@lanaco/lnc-react-ui 4.0.226 → 4.0.228
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.cjs +1 -1
- package/dist/Accordion.js +1 -1
- package/dist/AccordionSummary.cjs +1 -1
- package/dist/AccordionSummary.js +1 -1
- package/dist/ActionsToolbar.cjs +1 -1
- package/dist/ActionsToolbar.js +1 -1
- package/dist/Alert.cjs +1 -1
- package/dist/Alert.js +1 -1
- package/dist/Avatar.cjs +1 -1
- package/dist/Avatar.js +1 -1
- package/dist/Badge.cjs +1 -1
- package/dist/Badge.js +1 -1
- package/dist/BannerNextSection.cjs +1 -1
- package/dist/BannerNextSection.js +1 -1
- package/dist/BannerSectionCarousel.cjs +3 -3
- package/dist/BannerSectionCarousel.js +19 -12
- package/dist/BannerSectionSimple.cjs +1 -1
- package/dist/BannerSectionSimple.js +1 -1
- package/dist/BannerSectionWithList.cjs +1 -1
- package/dist/BannerSectionWithList.js +1 -1
- package/dist/BlogCardsSponsoredSection.cjs +1 -1
- package/dist/BlogCardsSponsoredSection.js +4 -4
- package/dist/BlogCategoryCardsSection.cjs +1 -1
- package/dist/BlogCategoryCardsSection.js +1 -1
- package/dist/BlogExploreSection.cjs +1 -1
- package/dist/BlogExploreSection.js +2 -2
- package/dist/BlogListSection.cjs +7 -7
- package/dist/BlogListSection.js +157 -207
- package/dist/BlogProductCardsSection.cjs +1 -1
- package/dist/BlogProductCardsSection.js +1 -1
- package/dist/BlogShopCardsSection.cjs +1 -1
- package/dist/BlogShopCardsSection.js +1 -1
- package/dist/BlogSingleSection.cjs +2 -11
- package/dist/BlogSingleSection.js +20 -36
- package/dist/BlogsSectionDetailed.cjs +1 -1
- package/dist/BlogsSectionDetailed.js +4 -4
- package/dist/BlogsSectionLarge.cjs +8 -16
- package/dist/BlogsSectionLarge.js +41 -59
- package/dist/BlogsSectionSimple.cjs +1 -1
- package/dist/BlogsSectionSimple.js +4 -4
- package/dist/BlogsSectionSimpleCentered.cjs +12 -25
- package/dist/BlogsSectionSimpleCentered.js +64 -98
- package/dist/BlogsSectionWithFilters.cjs +10 -21
- package/dist/BlogsSectionWithFilters.js +106 -154
- package/dist/BrandHitsSection.cjs +7 -7
- package/dist/BrandHitsSection.js +41 -87
- package/dist/Breadcrumbs.cjs +1 -1
- package/dist/Breadcrumbs.js +1 -1
- package/dist/Button.cjs +1 -1
- package/dist/Button.js +1 -1
- package/dist/ButtonGroup.cjs +1 -1
- package/dist/ButtonGroup.js +1 -1
- package/dist/CalorieCalculatorSection.cjs +1 -1
- package/dist/CalorieCalculatorSection.js +1 -1
- package/dist/{CategorySimpleCard-TJRJ_2Sb.js → CategorySimpleCard-BE6F0PFT.js} +1 -1
- package/dist/{CategorySimpleCard-lIdzBNDa.cjs → CategorySimpleCard-Dr1FxIY9.cjs} +1 -1
- package/dist/CheckBoxInput.cjs +1 -1
- package/dist/CheckBoxInput.js +1 -1
- package/dist/Chip.cjs +1 -1
- package/dist/Chip.js +1 -1
- package/dist/ColorInput.cjs +1 -1
- package/dist/ColorInput.js +1 -1
- package/dist/ConfirmationForm.cjs +1 -1
- package/dist/ConfirmationForm.js +1 -1
- package/dist/CustomLoanMapSection.cjs +1 -1
- package/dist/CustomLoanMapSection.js +1 -1
- package/dist/{CustomStyles-B6uutenq.js → CustomStyles-YyM49BGx.js} +1 -1
- package/dist/{CustomStyles-dJQPJ4s4.cjs → CustomStyles-lzAjVMnI.cjs} +1 -1
- package/dist/DateInput.cjs +1 -1
- package/dist/DateInput.js +1 -1
- package/dist/DecimalInput.cjs +1 -1
- package/dist/DecimalInput.js +1 -1
- package/dist/DecimalInputV2.cjs +1 -1
- package/dist/DecimalInputV2.js +1 -1
- package/dist/DetailedProductsInfinitiveSection.cjs +1 -1
- package/dist/DetailedProductsInfinitiveSection.js +4 -4
- package/dist/DetailedProductsSection.cjs +1 -1
- package/dist/DetailedProductsSection.js +5 -5
- package/dist/DetailsView.cjs +1 -1
- package/dist/DetailsView.js +1 -1
- package/dist/DoubleRangeSlider.cjs +1 -1
- package/dist/DoubleRangeSlider.js +1 -1
- package/dist/DragAndDropFile.cjs +1 -1
- package/dist/DragAndDropFile.js +1 -1
- package/dist/DragDropFiles.cjs +1 -1
- package/dist/DragDropFiles.js +1 -1
- package/dist/Drawer.cjs +1 -1
- package/dist/Drawer.js +1 -1
- package/dist/Dropdown.cjs +1 -1
- package/dist/Dropdown.js +2 -2
- package/dist/DropdownItem.cjs +1 -1
- package/dist/DropdownItem.js +1 -1
- package/dist/DropdownLookup.cjs +1 -1
- package/dist/DropdownLookup.js +1 -1
- package/dist/DropdownMenu.cjs +1 -1
- package/dist/DropdownMenu.js +1 -1
- package/dist/EditableTable.cjs +1 -1
- package/dist/EditableTable.js +1 -1
- package/dist/FeedbackSection.cjs +1 -1
- package/dist/FeedbackSection.js +1 -1
- package/dist/FieldOfInterestsMasonrySection.cjs +13 -13
- package/dist/FieldOfInterestsMasonrySection.js +105 -159
- package/dist/FieldOfInterestsWithAvatarsCardsSection.cjs +8 -8
- package/dist/FieldOfInterestsWithAvatarsCardsSection.js +93 -124
- package/dist/FieldOfInterestsWithTagsCardsSection.cjs +1 -1
- package/dist/FieldOfInterestsWithTagsCardsSection.js +2 -2
- package/dist/FileInput.cjs +1 -1
- package/dist/FileInput.js +1 -1
- package/dist/FlexGridItem.cjs +1 -1
- package/dist/FlexGridItem.js +1 -1
- package/dist/FormField.cjs +1 -1
- package/dist/FormField.js +1 -1
- package/dist/FormView.cjs +1 -1
- package/dist/FormView.js +1 -1
- package/dist/GeneralWithTagsCardsSection.cjs +1 -1
- package/dist/GeneralWithTagsCardsSection.js +2 -2
- package/dist/GiftCardsSection.cjs +10 -14
- package/dist/GiftCardsSection.js +77 -147
- package/dist/Icon.cjs +1 -1
- package/dist/Icon.js +1 -1
- package/dist/IconButton.cjs +1 -1
- package/dist/IconButton.js +1 -1
- package/dist/Kanban.cjs +1 -1
- package/dist/Kanban.js +1 -1
- package/dist/KanbanActionsToolbar.cjs +1 -1
- package/dist/KanbanActionsToolbar.js +1 -1
- package/dist/KanbanView.cjs +1 -1
- package/dist/KanbanView.js +1 -1
- package/dist/Link.cjs +1 -1
- package/dist/Link.js +1 -1
- package/dist/LoanCalculatorSection.cjs +1 -1
- package/dist/LoanCalculatorSection.js +1 -1
- package/dist/LocationFinderSection.cjs +1 -1
- package/dist/LocationFinderSection.js +1 -1
- package/dist/LocationSearchSection.cjs +1 -1
- package/dist/LocationSearchSection.js +1 -1
- package/dist/MasonryGeneralCardsSection.cjs +10 -10
- package/dist/MasonryGeneralCardsSection.js +45 -44
- package/dist/MenuItem.cjs +1 -1
- package/dist/MenuItem.js +1 -1
- package/dist/Modal.cjs +1 -1
- package/dist/Modal.js +1 -1
- package/dist/MultiSelectDropdown.cjs +1 -1
- package/dist/MultiSelectDropdown.js +1 -1
- package/dist/MultiSelectDropdownLookup.cjs +1 -1
- package/dist/MultiSelectDropdownLookup.js +1 -1
- package/dist/NestedDropdownItem.cjs +1 -1
- package/dist/NestedDropdownItem.js +1 -1
- package/dist/NestedMenuItem.cjs +1 -1
- package/dist/NestedMenuItem.js +1 -1
- package/dist/NotificationContainer.cjs +1 -1
- package/dist/NotificationContainer.js +1 -1
- package/dist/NotificationMessage.cjs +1 -1
- package/dist/NotificationMessage.js +1 -1
- package/dist/NumberInput.cjs +1 -1
- package/dist/NumberInput.js +1 -1
- package/dist/OverlayGeneralCardsSection.cjs +1 -1
- package/dist/OverlayGeneralCardsSection.js +1 -1
- package/dist/PartnerBrandsSection.cjs +1 -1
- package/dist/PartnerBrandsSection.js +1 -1
- package/dist/PartnerCardsSection.cjs +1 -1
- package/dist/PartnerCardsSection.js +1 -1
- package/dist/PartnerStatsSection.cjs +1 -1
- package/dist/PartnerStatsSection.js +1 -1
- package/dist/PasswordInput.cjs +1 -1
- package/dist/PasswordInput.js +1 -1
- package/dist/PopoverContent.cjs +1 -1
- package/dist/PopoverContent.js +1 -1
- package/dist/ProductsWithBannerSection.cjs +13 -13
- package/dist/ProductsWithBannerSection.js +87 -168
- package/dist/ProgressBar.cjs +1 -1
- package/dist/ProgressBar.js +1 -1
- package/dist/QuattroCardsSection.cjs +1 -1
- package/dist/QuattroCardsSection.js +2 -2
- package/dist/QuizSection.cjs +1 -1
- package/dist/QuizSection.js +1 -1
- package/dist/RadioInput.cjs +1 -1
- package/dist/RadioInput.js +1 -1
- package/dist/RangeSlider.cjs +1 -1
- package/dist/RangeSlider.js +1 -1
- package/dist/ReviewsSection.cjs +18 -22
- package/dist/ReviewsSection.js +101 -163
- package/dist/SalesCampaignsSection.cjs +25 -25
- package/dist/SalesCampaignsSection.js +267 -306
- package/dist/Separator.cjs +1 -1
- package/dist/Separator.js +1 -1
- package/dist/ShopCardsSection.cjs +6 -19
- package/dist/ShopCardsSection.js +56 -102
- package/dist/Sidebar.cjs +1 -1
- package/dist/Sidebar.js +1 -1
- package/dist/SimpleCategoriesSection.cjs +3 -3
- package/dist/SimpleCategoriesSection.js +65 -68
- package/dist/SimpleProductsSection.cjs +7 -7
- package/dist/SimpleProductsSection.js +65 -138
- package/dist/Spinner.cjs +1 -1
- package/dist/Spinner.js +1 -1
- package/dist/StatsSection.cjs +1 -1
- package/dist/StatsSection.js +1 -1
- package/dist/Surface.cjs +1 -1
- package/dist/Surface.js +1 -1
- package/dist/SwipeableDrawer.cjs +1 -1
- package/dist/SwipeableDrawer.js +1 -1
- package/dist/TabItem.cjs +1 -1
- package/dist/TabItem.js +1 -1
- package/dist/Table.cjs +1 -1
- package/dist/Table.js +1 -1
- package/dist/TableView.cjs +1 -1
- package/dist/TableView.js +1 -1
- package/dist/TextAreaInput.cjs +1 -1
- package/dist/TextAreaInput.js +1 -1
- package/dist/TextInput.cjs +1 -1
- package/dist/TextInput.js +1 -1
- package/dist/ThemeProvider.cjs +1 -1
- package/dist/ThemeProvider.js +1 -1
- package/dist/TimeInput.cjs +1 -1
- package/dist/TimeInput.js +1 -1
- package/dist/Toggle.cjs +1 -1
- package/dist/Toggle.js +1 -1
- package/dist/TreeMenuSeparator.cjs +1 -1
- package/dist/TreeMenuSeparator.js +1 -1
- package/dist/UploadedFile.cjs +1 -1
- package/dist/UploadedFile.js +1 -1
- package/dist/UrgentSaleProductsSection.cjs +1 -1
- package/dist/UrgentSaleProductsSection.js +1 -1
- package/dist/index-B7fBsitY.js +45 -0
- package/dist/{index-BkztbBWe.cjs → index-B96icAp4.cjs} +1 -1
- package/dist/index-BMAvJQBG.cjs +9 -0
- package/dist/index-BUdvfHpp.cjs +5 -0
- package/dist/{index-tdg_Vmed.cjs → index-BXkL0HmX.cjs} +1 -1
- package/dist/index-C6amCwRZ.js +25 -0
- package/dist/index-C8R9lsWG.cjs +1 -0
- package/dist/{index-Djo0ZcRE.js → index-CCwfh-7A.js} +1 -1
- package/dist/{index-jGcy-5M_.js → index-CNUuIL97.js} +2 -2
- package/dist/index-CeQvy566.cjs +11 -0
- package/dist/{index-DsINTjQk.cjs → index-ChHUGfjn.cjs} +1 -1
- package/dist/index-Cyt4EUZ6.js +20 -0
- package/dist/{index-DEypPQRI.js → index-D6_3Q8lN.js} +1 -1
- package/dist/{index-D4-_TrSn.cjs → index-DnbzopIv.cjs} +1 -1
- package/dist/{index-rhYVjszT.js → index-DtVJCOWc.js} +2 -2
- package/dist/index-DueyY06i.cjs +368 -0
- package/dist/{index-D4OKsSqi.cjs → index-HzW6OHFF.cjs} +1 -1
- package/dist/{index-3GKF_7BJ.cjs → index-RrqW9QBJ.cjs} +1 -1
- package/dist/index-VTkAaA-n.js +18 -0
- package/dist/{index-CM6vzQBx.js → index-eOeAkUSU.js} +1 -1
- package/dist/{index-Dx2hfxCG.js → index-gHaK62BZ.js} +2 -2
- package/dist/index-zIt6TVeg.js +753 -0
- package/dist/index.cjs +1 -1
- package/dist/index.js +2 -2
- package/dist/style-BFPpppS9.js +73 -0
- package/dist/{style-D54KOzZj.js → style-CP_urKvc.js} +1 -1
- package/dist/style-CQdEALKR.cjs +59 -0
- package/dist/{style-Boz6dk5s.cjs → style-cJUZrJoG.cjs} +1 -1
- package/dist/{utils-CITgSxXe.cjs → utils-BK6B_Y9X.cjs} +2 -2
- package/dist/{utils-MoGhNMmj.js → utils-BUdHa0nB.js} +16 -23
- package/package.json +1 -1
- package/dist/index-BGNavrtB.cjs +0 -368
- package/dist/index-BHcrzV2G.js +0 -54
- package/dist/index-Bj1KWOV4.cjs +0 -11
- package/dist/index-BsAddfgC.cjs +0 -1
- package/dist/index-Cn4bq6ZX.js +0 -84
- package/dist/index-CuRcxKQH.js +0 -42
- package/dist/index-DB1J-G6Z.js +0 -38
- package/dist/index-DkPva6Gr.cjs +0 -20
- package/dist/index-fzBXDy05.cjs +0 -16
- package/dist/index-gFZSZLba.js +0 -882
- package/dist/style-DvkivBNg.js +0 -74
- package/dist/style-Ito6YFqi.cjs +0 -64
package/dist/GiftCardsSection.js
CHANGED
|
@@ -1,29 +1,29 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { forwardRef as
|
|
1
|
+
import { jsxs as s, jsx as t, Fragment as $ } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as w, Suspense as G } from "react";
|
|
3
3
|
import { u as N } from "./useDetectMobile-B0Jog4jQ.js";
|
|
4
|
-
import { R as A } from "./style-
|
|
5
|
-
import { p as
|
|
6
|
-
import
|
|
4
|
+
import { R as A } from "./style-CP_urKvc.js";
|
|
5
|
+
import { p as R, G as T, l as h } from "./utils-BUdHa0nB.js";
|
|
6
|
+
import j from "./Button.js";
|
|
7
7
|
import { s as f } from "./emotion-styled.browser.esm-DfbrHHed.js";
|
|
8
|
-
import { d as
|
|
9
|
-
import {
|
|
10
|
-
const
|
|
8
|
+
import { d as u } from "./breakpoints-BubDitvo.js";
|
|
9
|
+
import { S as z, e as L, a as C } from "./style-BFPpppS9.js";
|
|
10
|
+
const W = f.div`
|
|
11
11
|
display: grid;
|
|
12
|
-
grid-template-columns: ${(
|
|
12
|
+
grid-template-columns: ${(r) => `repeat(${r.limit}, minmax(0, 1fr))`};
|
|
13
13
|
gap: 1.25rem;
|
|
14
14
|
|
|
15
|
-
@media ${
|
|
15
|
+
@media ${u("M")} {
|
|
16
16
|
grid-template-columns: repeat(2, 1fr);
|
|
17
17
|
}
|
|
18
18
|
|
|
19
|
-
@media ${
|
|
19
|
+
@media ${u("S")} {
|
|
20
20
|
grid-template-columns: repeat(2, 1fr);
|
|
21
21
|
}
|
|
22
22
|
|
|
23
|
-
@media ${
|
|
23
|
+
@media ${u("XS")} {
|
|
24
24
|
grid-template-columns: repeat(1, 1fr);
|
|
25
25
|
}
|
|
26
|
-
`,
|
|
26
|
+
`, I = f.a`
|
|
27
27
|
text-decoration: none;
|
|
28
28
|
color: var(--gray-950);
|
|
29
29
|
display: flex;
|
|
@@ -83,163 +83,93 @@ const z = f.div`
|
|
|
83
83
|
-webkit-transform: rotate(315deg);
|
|
84
84
|
transform: rotate(315deg);
|
|
85
85
|
}
|
|
86
|
-
`,
|
|
86
|
+
`, v = w((r, o) => {
|
|
87
87
|
const {
|
|
88
|
-
image:
|
|
89
|
-
text:
|
|
90
|
-
price:
|
|
91
|
-
currency:
|
|
92
|
-
onSelectGiftCard:
|
|
88
|
+
image: n,
|
|
89
|
+
text: l,
|
|
90
|
+
price: a,
|
|
91
|
+
currency: i,
|
|
92
|
+
onSelectGiftCard: p = () => {
|
|
93
93
|
},
|
|
94
|
-
selectAction:
|
|
95
|
-
LinkComponent:
|
|
96
|
-
} =
|
|
97
|
-
return /* @__PURE__ */
|
|
98
|
-
|
|
94
|
+
selectAction: m,
|
|
95
|
+
LinkComponent: d
|
|
96
|
+
} = r;
|
|
97
|
+
return /* @__PURE__ */ s(
|
|
98
|
+
I,
|
|
99
99
|
{
|
|
100
|
-
ref:
|
|
100
|
+
ref: o,
|
|
101
101
|
className: "simple-gift-card",
|
|
102
|
-
onClick: () =>
|
|
103
|
-
as:
|
|
104
|
-
...
|
|
105
|
-
to: `${
|
|
102
|
+
onClick: () => p(a),
|
|
103
|
+
as: d || "a",
|
|
104
|
+
...d ? {
|
|
105
|
+
to: `${m}`
|
|
106
106
|
} : {
|
|
107
|
-
href: `${
|
|
107
|
+
href: `${m}`
|
|
108
108
|
},
|
|
109
109
|
children: [
|
|
110
|
-
/* @__PURE__ */
|
|
111
|
-
/* @__PURE__ */
|
|
112
|
-
/* @__PURE__ */
|
|
110
|
+
/* @__PURE__ */ s(M, { children: [
|
|
111
|
+
/* @__PURE__ */ t("div", { className: "price-tag", children: a && i && `${R(a)} ${T(i)}` }),
|
|
112
|
+
/* @__PURE__ */ t("img", { src: n })
|
|
113
113
|
] }),
|
|
114
|
-
/* @__PURE__ */
|
|
114
|
+
/* @__PURE__ */ t("div", { className: "text-wrap", children: l })
|
|
115
115
|
]
|
|
116
116
|
}
|
|
117
117
|
);
|
|
118
|
-
}),
|
|
119
|
-
@media ${
|
|
118
|
+
}), B = f(z)`
|
|
119
|
+
@media ${u("S")} {
|
|
120
120
|
flex-direction: column;
|
|
121
121
|
|
|
122
122
|
& > div {
|
|
123
123
|
flex-direction: column;
|
|
124
|
-
|
|
125
|
-
& > div {
|
|
126
|
-
${T}
|
|
127
|
-
}
|
|
128
124
|
}
|
|
129
125
|
}
|
|
130
|
-
`,
|
|
131
|
-
/* @__PURE__ */
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
}
|
|
140
|
-
)
|
|
141
|
-
] }, `${t}-1`),
|
|
142
|
-
/* @__PURE__ */ i(
|
|
143
|
-
h,
|
|
144
|
-
{
|
|
145
|
-
alignItems: "center",
|
|
146
|
-
noGradient: !0,
|
|
147
|
-
children: [
|
|
148
|
-
/* @__PURE__ */ r(o, { height: "11rem", borderRadius: "0.75rem" }),
|
|
149
|
-
/* @__PURE__ */ r(
|
|
150
|
-
o,
|
|
151
|
-
{
|
|
152
|
-
height: "1.25rem",
|
|
153
|
-
borderRadius: "0.75rem",
|
|
154
|
-
width: "5rem"
|
|
155
|
-
}
|
|
156
|
-
)
|
|
157
|
-
]
|
|
158
|
-
},
|
|
159
|
-
`${t}-2`
|
|
160
|
-
),
|
|
161
|
-
/* @__PURE__ */ i(
|
|
162
|
-
h,
|
|
163
|
-
{
|
|
164
|
-
alignItems: "center",
|
|
165
|
-
noGradient: !0,
|
|
166
|
-
children: [
|
|
167
|
-
/* @__PURE__ */ r(o, { height: "11rem", borderRadius: "0.75rem" }),
|
|
168
|
-
/* @__PURE__ */ r(
|
|
169
|
-
o,
|
|
170
|
-
{
|
|
171
|
-
height: "1.25rem",
|
|
172
|
-
borderRadius: "0.75rem",
|
|
173
|
-
width: "5rem"
|
|
174
|
-
}
|
|
175
|
-
)
|
|
176
|
-
]
|
|
177
|
-
},
|
|
178
|
-
`${t}-3`
|
|
179
|
-
),
|
|
180
|
-
/* @__PURE__ */ i(
|
|
181
|
-
h,
|
|
182
|
-
{
|
|
183
|
-
alignItems: "center",
|
|
184
|
-
noGradient: !0,
|
|
185
|
-
children: [
|
|
186
|
-
/* @__PURE__ */ r(o, { height: "11rem", borderRadius: "0.75rem" }),
|
|
187
|
-
/* @__PURE__ */ r(
|
|
188
|
-
o,
|
|
189
|
-
{
|
|
190
|
-
height: "1.25rem",
|
|
191
|
-
borderRadius: "0.75rem",
|
|
192
|
-
width: "5rem"
|
|
193
|
-
}
|
|
194
|
-
)
|
|
195
|
-
]
|
|
196
|
-
},
|
|
197
|
-
`${t}-4`
|
|
198
|
-
)
|
|
199
|
-
] }), U = ({
|
|
200
|
-
keyPrefix: t,
|
|
201
|
-
isLoading: c = !1,
|
|
202
|
-
fallbackComponent: a = /* @__PURE__ */ r(k, {}),
|
|
203
|
-
children: m
|
|
204
|
-
}) => /* @__PURE__ */ r(R, { fallbackComponent: a, children: c === !0 ? /* @__PURE__ */ r(E, { keyPrefix: t }) : m }), V = S((t, c) => {
|
|
126
|
+
`, D = ({ keyPrefix: r }) => /* @__PURE__ */ t(B, { children: [1, 2, 3, 4].map((o) => /* @__PURE__ */ s(L, { alignItems: "center", children: [
|
|
127
|
+
/* @__PURE__ */ t(C, { width: "100%", height: "11rem", borderRadius: "0.75rem" }),
|
|
128
|
+
/* @__PURE__ */ t(C, { height: "1.25rem", borderRadius: "0.75rem", width: "5rem" })
|
|
129
|
+
] }, `${r}-${o}`)) }), E = ({
|
|
130
|
+
keyPrefix: r,
|
|
131
|
+
isLoading: o = !1,
|
|
132
|
+
fallbackComponent: n = /* @__PURE__ */ t($, {}),
|
|
133
|
+
children: l
|
|
134
|
+
}) => /* @__PURE__ */ t(G, { fallbackComponent: n, children: o === !0 ? /* @__PURE__ */ t(D, { keyPrefix: r }) : l }), Q = w((r, o) => {
|
|
205
135
|
const {
|
|
206
|
-
icon:
|
|
207
|
-
title:
|
|
208
|
-
buttonLink:
|
|
209
|
-
items:
|
|
210
|
-
isLoading:
|
|
211
|
-
buttonText:
|
|
212
|
-
limit:
|
|
213
|
-
onSelectCard:
|
|
136
|
+
icon: n,
|
|
137
|
+
title: l,
|
|
138
|
+
buttonLink: a,
|
|
139
|
+
items: i,
|
|
140
|
+
isLoading: p = !1,
|
|
141
|
+
buttonText: m,
|
|
142
|
+
limit: d = 4,
|
|
143
|
+
onSelectCard: g = () => {
|
|
214
144
|
},
|
|
215
|
-
onButtonAction:
|
|
145
|
+
onButtonAction: S = () => {
|
|
216
146
|
},
|
|
217
|
-
LinkComponent:
|
|
218
|
-
} =
|
|
219
|
-
return /* @__PURE__ */
|
|
220
|
-
/* @__PURE__ */
|
|
221
|
-
/* @__PURE__ */
|
|
222
|
-
|
|
223
|
-
/* @__PURE__ */
|
|
147
|
+
LinkComponent: b
|
|
148
|
+
} = r, y = N();
|
|
149
|
+
return /* @__PURE__ */ s(A, { ref: o, children: [
|
|
150
|
+
/* @__PURE__ */ s("div", { className: "regular-title", children: [
|
|
151
|
+
/* @__PURE__ */ s("div", { className: "regular-title-text", children: [
|
|
152
|
+
h(n) && /* @__PURE__ */ t("i", { className: n }),
|
|
153
|
+
/* @__PURE__ */ t("span", { children: l })
|
|
224
154
|
] }),
|
|
225
|
-
|
|
226
|
-
|
|
155
|
+
h(m) && h(a) && !p && /* @__PURE__ */ t(
|
|
156
|
+
j,
|
|
227
157
|
{
|
|
228
158
|
type: "button",
|
|
229
159
|
btnType: "tinted",
|
|
230
160
|
color: "neutral",
|
|
231
161
|
onClick: (e) => {
|
|
232
|
-
var
|
|
233
|
-
(
|
|
162
|
+
var c;
|
|
163
|
+
(c = e == null ? void 0 : e.target) == null || c.blur(), S(a);
|
|
234
164
|
},
|
|
235
165
|
borderRadius: "curved",
|
|
236
166
|
className: "button-link",
|
|
237
|
-
children:
|
|
167
|
+
children: m
|
|
238
168
|
}
|
|
239
169
|
)
|
|
240
170
|
] }),
|
|
241
|
-
/* @__PURE__ */
|
|
242
|
-
|
|
171
|
+
/* @__PURE__ */ t(E, { isLoading: p, keyPrefix: "gift-cards-skeleton", children: /* @__PURE__ */ t(W, { limit: d, children: y === !0 ? i == null ? void 0 : i.map((e, c) => /* @__PURE__ */ t(
|
|
172
|
+
v,
|
|
243
173
|
{
|
|
244
174
|
text: e == null ? void 0 : e.text,
|
|
245
175
|
price: e == null ? void 0 : e.priceTo,
|
|
@@ -247,12 +177,12 @@ const z = f.div`
|
|
|
247
177
|
image: e == null ? void 0 : e.imageUrl,
|
|
248
178
|
uuid: e == null ? void 0 : e.uuid,
|
|
249
179
|
selectAction: e == null ? void 0 : e.selectAction,
|
|
250
|
-
onSelectGiftCard: (
|
|
251
|
-
LinkComponent:
|
|
180
|
+
onSelectGiftCard: (k) => g(e),
|
|
181
|
+
LinkComponent: b
|
|
252
182
|
},
|
|
253
|
-
|
|
254
|
-
)) :
|
|
255
|
-
|
|
183
|
+
c
|
|
184
|
+
)) : i == null ? void 0 : i.slice(0, d).map((e, c) => /* @__PURE__ */ t(
|
|
185
|
+
v,
|
|
256
186
|
{
|
|
257
187
|
text: e == null ? void 0 : e.text,
|
|
258
188
|
price: e == null ? void 0 : e.priceTo,
|
|
@@ -260,13 +190,13 @@ const z = f.div`
|
|
|
260
190
|
image: e == null ? void 0 : e.imageUrl,
|
|
261
191
|
uuid: e == null ? void 0 : e.uuid,
|
|
262
192
|
selectAction: e == null ? void 0 : e.selectAction,
|
|
263
|
-
onSelectGiftCard: (
|
|
264
|
-
LinkComponent:
|
|
193
|
+
onSelectGiftCard: (k) => g(e),
|
|
194
|
+
LinkComponent: b
|
|
265
195
|
},
|
|
266
|
-
|
|
196
|
+
c
|
|
267
197
|
)) }) })
|
|
268
198
|
] });
|
|
269
199
|
});
|
|
270
200
|
export {
|
|
271
|
-
|
|
201
|
+
Q as default
|
|
272
202
|
};
|
package/dist/Icon.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const t=require("react/jsx-runtime"),h=require("react"),z=require("./emotion-styled.browser.esm-DwHBgTPn.cjs"),n=require("./utils-
|
|
1
|
+
"use strict";const t=require("react/jsx-runtime"),h=require("react"),z=require("./emotion-styled.browser.esm-DwHBgTPn.cjs"),n=require("./utils-BK6B_Y9X.cjs"),I=require("./emotion-element-f0de968e.browser.esm-B7k6i6lC.cjs"),g=z.styled.span`
|
|
2
2
|
box-sizing: border-box;
|
|
3
3
|
${e=>e.sizeInUnits&&e.sizeInUnits!=""?`font-size: ${e.sizeInUnits}`:n.getComponentTypographyCss(e.theme,"Icon",e.size,"enabled")};
|
|
4
4
|
${e=>e.color&&`color: ${n.getColorRgbaValue(e.theme,"Icon",e.color,"enabled","icon")}`};
|
package/dist/Icon.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as t } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef as y } from "react";
|
|
3
3
|
import { s as z } from "./emotion-styled.browser.esm-DfbrHHed.js";
|
|
4
|
-
import { d as I, c as g } from "./utils-
|
|
4
|
+
import { d as I, c as g } from "./utils-BUdHa0nB.js";
|
|
5
5
|
import { u as b } from "./emotion-element-f0de968e.browser.esm-CkCiQliQ.js";
|
|
6
6
|
const $ = z.span`
|
|
7
7
|
box-sizing: border-box;
|
package/dist/IconButton.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const n=require("react/jsx-runtime"),C=require("react"),h=require("./emotion-styled.browser.esm-DwHBgTPn.cjs"),t=require("./utils-
|
|
1
|
+
"use strict";const n=require("react/jsx-runtime"),C=require("react"),h=require("./emotion-styled.browser.esm-DwHBgTPn.cjs"),t=require("./utils-BK6B_Y9X.cjs"),T=require("./emotion-element-f0de968e.browser.esm-B7k6i6lC.cjs"),$=e=>`
|
|
2
2
|
outline: none;
|
|
3
3
|
display: inline-flex;
|
|
4
4
|
flex-direction: row;
|
package/dist/IconButton.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as n } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef as R, isValidElement as S } from "react";
|
|
3
3
|
import { s as $ } from "./emotion-styled.browser.esm-DfbrHHed.js";
|
|
4
|
-
import { d as B, c as t, e as l, f as k, i as f, b as V } from "./utils-
|
|
4
|
+
import { d as B, c as t, e as l, f as k, i as f, b as V } from "./utils-BUdHa0nB.js";
|
|
5
5
|
import { u as I } from "./emotion-element-f0de968e.browser.esm-CkCiQliQ.js";
|
|
6
6
|
const y = (e) => `
|
|
7
7
|
outline: none;
|
package/dist/Kanban.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const ie=require("react/jsx-runtime"),d=require("react"),Jt=require("./index-7Jsjuf-Q.cjs"),we=require("./utils-
|
|
1
|
+
"use strict";const ie=require("react/jsx-runtime"),d=require("react"),Jt=require("./index-7Jsjuf-Q.cjs"),we=require("./utils-BK6B_Y9X.cjs"),Vr=require("./index-Bg5OOQN0.cjs"),Qt=require("./emotion-styled.browser.esm-DwHBgTPn.cjs"),Fr=require("./emotion-element-f0de968e.browser.esm-B7k6i6lC.cjs"),vo=require("./KanbanCard-9Pe_tjMt.cjs"),_t=require("./_commonjsHelpers-DwTZ_eVU.cjs"),ri=require("./KanbanHeader.cjs"),oi=require("./useUpdateEffect-BtMgpgIV.cjs");var ii=function(e){d.useEffect(e,[])};function si(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return d.useMemo(()=>o=>{t.forEach(s=>s(o))},t)}const Gn=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function en(e){const t=Object.prototype.toString.call(e);return t==="[object Window]"||t==="[object global]"}function zr(e){return"nodeType"in e}function Ge(e){var t,n;return e?en(e)?e:zr(e)&&(t=(n=e.ownerDocument)==null?void 0:n.defaultView)!=null?t:window:window}function Hr(e){const{Document:t}=Ge(e);return e instanceof t}function gn(e){return en(e)?!1:e instanceof Ge(e).HTMLElement}function bo(e){return e instanceof Ge(e).SVGElement}function tn(e){return e?en(e)?e.document:zr(e)?Hr(e)?e:gn(e)||bo(e)?e.ownerDocument:document:document:document}const gt=Gn?d.useLayoutEffect:d.useEffect;function Un(e){const t=d.useRef(e);return gt(()=>{t.current=e}),d.useCallback(function(){for(var n=arguments.length,o=new Array(n),s=0;s<n;s++)o[s]=arguments[s];return t.current==null?void 0:t.current(...o)},[])}function ai(){const e=d.useRef(null),t=d.useCallback((o,s)=>{e.current=setInterval(o,s)},[]),n=d.useCallback(()=>{e.current!==null&&(clearInterval(e.current),e.current=null)},[]);return[t,n]}function fn(e,t){t===void 0&&(t=[e]);const n=d.useRef(e);return gt(()=>{n.current!==e&&(n.current=e)},t),n}function hn(e,t){const n=d.useRef();return d.useMemo(()=>{const o=e(n.current);return n.current=o,o},[...t])}function Pn(e){const t=Un(e),n=d.useRef(null),o=d.useCallback(s=>{s!==n.current&&(t==null||t(s,n.current)),n.current=s},[]);return[n,o]}function jn(e){const t=d.useRef();return d.useEffect(()=>{t.current=e},[e]),t.current}let Ar={};function pn(e,t){return d.useMemo(()=>{if(t)return t;const n=Ar[e]==null?0:Ar[e]+1;return Ar[e]=n,e+"-"+n},[e,t])}function yo(e){return function(t){for(var n=arguments.length,o=new Array(n>1?n-1:0),s=1;s<n;s++)o[s-1]=arguments[s];return o.reduce((c,l)=>{const u=Object.entries(l);for(const[h,f]of u){const v=c[h];v!=null&&(c[h]=v+e*f)}return c},{...t})}}const Vt=yo(1),Bn=yo(-1);function ci(e){return"clientX"in e&&"clientY"in e}function kn(e){if(!e)return!1;const{KeyboardEvent:t}=Ge(e.target);return t&&e instanceof t}function li(e){if(!e)return!1;const{TouchEvent:t}=Ge(e.target);return t&&e instanceof t}function $n(e){if(li(e)){if(e.touches&&e.touches.length){const{clientX:t,clientY:n}=e.touches[0];return{x:t,y:n}}else if(e.changedTouches&&e.changedTouches.length){const{clientX:t,clientY:n}=e.changedTouches[0];return{x:t,y:n}}}return ci(e)?{x:e.clientX,y:e.clientY}:null}const Kt=Object.freeze({Translate:{toString(e){if(!e)return;const{x:t,y:n}=e;return"translate3d("+(t?Math.round(t):0)+"px, "+(n?Math.round(n):0)+"px, 0)"}},Scale:{toString(e){if(!e)return;const{scaleX:t,scaleY:n}=e;return"scaleX("+t+") scaleY("+n+")"}},Transform:{toString(e){if(e)return[Kt.Translate.toString(e),Kt.Scale.toString(e)].join(" ")}},Transition:{toString(e){let{property:t,duration:n,easing:o}=e;return t+" "+n+"ms "+o}}}),Zr="a,frame,iframe,input:not([type=hidden]):not(:disabled),select:not(:disabled),textarea:not(:disabled),button:not(:disabled),*[tabindex]";function ui(e){return e.matches(Zr)?e:e.querySelector(Zr)}const di={display:"none"};function fi(e){let{id:t,value:n}=e;return d.createElement("div",{id:t,style:di},n)}function gi(e){let{id:t,announcement:n,ariaLiveType:o="assertive"}=e;const s={position:"fixed",top:0,left:0,width:1,height:1,margin:-1,border:0,padding:0,overflow:"hidden",clip:"rect(0 0 0 0)",clipPath:"inset(100%)",whiteSpace:"nowrap"};return d.createElement("div",{id:t,style:s,role:"status","aria-live":o,"aria-atomic":!0},n)}function hi(){const[e,t]=d.useState("");return{announce:d.useCallback(o=>{o!=null&&t(o)},[]),announcement:e}}const mo=d.createContext(null);function pi(e){const t=d.useContext(mo);d.useEffect(()=>{if(!t)throw new Error("useDndMonitor must be used within a children of <DndContext>");return t(e)},[e,t])}function vi(){const[e]=d.useState(()=>new Set),t=d.useCallback(o=>(e.add(o),()=>e.delete(o)),[e]);return[d.useCallback(o=>{let{type:s,event:c}=o;e.forEach(l=>{var u;return(u=l[s])==null?void 0:u.call(l,c)})},[e]),t]}const bi={draggable:`
|
|
2
2
|
To pick up a draggable item, press the space bar.
|
|
3
3
|
While dragging, use the arrow keys to move the item.
|
|
4
4
|
Press space again to drop the item in its new position, or press escape to cancel.
|
package/dist/Kanban.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as we, jsxs as Gn } from "react/jsx-runtime";
|
|
2
2
|
import se, { useEffect as W, useRef as Q, useMemo as ee, useLayoutEffect as pi, useCallback as Ne, useState as he, createContext as xn, memo as Ro, useReducer as vi, useContext as Yt, cloneElement as bi, forwardRef as Qn } from "react";
|
|
3
3
|
import { r as rn } from "./index-B2yaYXE2.js";
|
|
4
|
-
import { c as an, r as tn,
|
|
4
|
+
import { c as an, r as tn, C as nn } from "./utils-BUdHa0nB.js";
|
|
5
5
|
import { c as co } from "./index-fN7hCOo3.js";
|
|
6
6
|
import { s as cn } from "./emotion-styled.browser.esm-DfbrHHed.js";
|
|
7
7
|
import { u as Jr } from "./emotion-element-f0de968e.browser.esm-CkCiQliQ.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const o=require("react/jsx-runtime"),w=require("react"),f=require("./emotion-styled.browser.esm-DwHBgTPn.cjs"),j=require("./DropdownMenu.cjs"),C=require("./DropdownItem.cjs"),i=require("./Button.cjs"),a=require("./utils-
|
|
1
|
+
"use strict";const o=require("react/jsx-runtime"),w=require("react"),f=require("./emotion-styled.browser.esm-DwHBgTPn.cjs"),j=require("./DropdownMenu.cjs"),C=require("./DropdownItem.cjs"),i=require("./Button.cjs"),a=require("./utils-BK6B_Y9X.cjs"),q=require("./ThemeProvider.cjs"),A=f.styled.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
align-items: center;
|
|
4
4
|
border-radius: 8px;
|
|
@@ -4,7 +4,7 @@ import { s as w } from "./emotion-styled.browser.esm-DfbrHHed.js";
|
|
|
4
4
|
import C from "./DropdownMenu.js";
|
|
5
5
|
import A from "./DropdownItem.js";
|
|
6
6
|
import i from "./Button.js";
|
|
7
|
-
import { c as d } from "./utils-
|
|
7
|
+
import { c as d } from "./utils-BUdHa0nB.js";
|
|
8
8
|
import { useTheme as N } from "./ThemeProvider.js";
|
|
9
9
|
const k = w.div`
|
|
10
10
|
display: flex;
|
package/dist/KanbanView.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const s=require("react/jsx-runtime"),Y=require("react"),Z=require("./emotion-styled.browser.esm-DwHBgTPn.cjs"),$=require("./KanbanActionsToolbar.cjs"),a=require("./utils-
|
|
1
|
+
"use strict";const s=require("react/jsx-runtime"),Y=require("react"),Z=require("./emotion-styled.browser.esm-DwHBgTPn.cjs"),$=require("./KanbanActionsToolbar.cjs"),a=require("./utils-BK6B_Y9X.cjs"),k=require("./Kanban.cjs"),p=require("./KanbanCard-9Pe_tjMt.cjs"),P=require("./KanbanHeader.cjs"),ee=require("./KanbanFooter.cjs"),ne=Z.styled.div`
|
|
2
2
|
& .kanban-view-footer-lnc {
|
|
3
3
|
padding: 0 0.625rem;
|
|
4
4
|
}
|
package/dist/KanbanView.js
CHANGED
|
@@ -2,7 +2,7 @@ import { jsxs as m, jsx as i } from "react/jsx-runtime";
|
|
|
2
2
|
import { forwardRef as Z } from "react";
|
|
3
3
|
import { s as $ } from "./emotion-styled.browser.esm-DfbrHHed.js";
|
|
4
4
|
import k from "./KanbanActionsToolbar.js";
|
|
5
|
-
import { r, j as s } from "./utils-
|
|
5
|
+
import { r, j as s } from "./utils-BUdHa0nB.js";
|
|
6
6
|
import p from "./Kanban.js";
|
|
7
7
|
import { K as P } from "./KanbanCard-ffmclwO4.js";
|
|
8
8
|
import ee from "./KanbanHeader.js";
|
package/dist/Link.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const m=require("react/jsx-runtime"),u=require("react"),h=require("./emotion-styled.browser.esm-DwHBgTPn.cjs"),t=require("./utils-
|
|
1
|
+
"use strict";const m=require("react/jsx-runtime"),u=require("react"),h=require("./emotion-styled.browser.esm-DwHBgTPn.cjs"),t=require("./utils-BK6B_Y9X.cjs"),d=require("./emotion-element-f0de968e.browser.esm-B7k6i6lC.cjs"),g=h.styled.a`
|
|
2
2
|
${e=>t.getComponentTypographyCss(e.theme,"Breadcrumbs",e.size,"enabled")};
|
|
3
3
|
color: ${e=>t.getColorRgbaValue(e.theme,"Link",e.color,"enabled","text")};
|
|
4
4
|
text-decoration: none;
|
package/dist/Link.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as n } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef as h } from "react";
|
|
3
3
|
import { s as d } from "./emotion-styled.browser.esm-DfbrHHed.js";
|
|
4
|
-
import { d as f, c as t } from "./utils-
|
|
4
|
+
import { d as f, c as t } from "./utils-BUdHa0nB.js";
|
|
5
5
|
import { u as k } from "./emotion-element-f0de968e.browser.esm-CkCiQliQ.js";
|
|
6
6
|
const u = d.a`
|
|
7
7
|
${(e) => f(
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const A=require("react/jsx-runtime"),D=require("react"),N=require("./emotion-styled.browser.esm-DwHBgTPn.cjs"),m=require("./breakpoints-CcVm-gVm.cjs"),Z=require("./utils-
|
|
1
|
+
"use strict";const A=require("react/jsx-runtime"),D=require("react"),N=require("./emotion-styled.browser.esm-DwHBgTPn.cjs"),m=require("./breakpoints-CcVm-gVm.cjs"),Z=require("./utils-BK6B_Y9X.cjs"),L=require("./useDetectMobile-DYV6V1yw.cjs"),q=require("./Button.cjs"),k=require("./Modal.cjs"),U=require("./TextInput.cjs"),G=require("./RangeSlider.cjs"),T=require("./IconButton.cjs"),J=N.styled.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
gap: 1.25rem;
|
|
4
4
|
padding: 1.5rem;
|
|
@@ -2,7 +2,7 @@ import { jsxs as e, jsx as A, Fragment as T } from "react/jsx-runtime";
|
|
|
2
2
|
import { forwardRef as K, useState as y, useRef as J } from "react";
|
|
3
3
|
import { s as x } from "./emotion-styled.browser.esm-DfbrHHed.js";
|
|
4
4
|
import { d as k } from "./breakpoints-BubDitvo.js";
|
|
5
|
-
import { t as m } from "./utils-
|
|
5
|
+
import { t as m } from "./utils-BUdHa0nB.js";
|
|
6
6
|
import { u as _ } from "./useDetectMobile-B0Jog4jQ.js";
|
|
7
7
|
import Z from "./Button.js";
|
|
8
8
|
import $ from "./Modal.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const s=require("react/jsx-runtime"),l=require("react"),p=require("./index-
|
|
1
|
+
"use strict";const s=require("react/jsx-runtime"),l=require("react"),p=require("./index-BXkL0HmX.cjs"),d=l.forwardRef((e,t)=>{const{locationFinderTitle:n,locationFinderPlaceholder:o,openMapText:i,onOpenMap:r=()=>{},mapFilters:c,inputComponent:a}=e;return s.jsx(p.LocationFinder,{ref:t,title:n,placeholderText:o,onOpenMap:r,openMapText:i,mapFilters:c,inputComponent:a})});module.exports=d;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const e=require("react/jsx-runtime"),d=require("react"),a=require("./emotion-styled.browser.esm-DwHBgTPn.cjs"),i=require("./breakpoints-CcVm-gVm.cjs"),j=require("./index-
|
|
1
|
+
"use strict";const e=require("react/jsx-runtime"),d=require("react"),a=require("./emotion-styled.browser.esm-DwHBgTPn.cjs"),i=require("./breakpoints-CcVm-gVm.cjs"),j=require("./index-RrqW9QBJ.cjs"),v=a.styled.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex-direction: column;
|
|
4
4
|
padding: 1.25rem;
|
|
@@ -2,7 +2,7 @@ import { jsxs as i, jsx as o } from "react/jsx-runtime";
|
|
|
2
2
|
import { forwardRef as x, Fragment as w } from "react";
|
|
3
3
|
import { s as d } from "./emotion-styled.browser.esm-DfbrHHed.js";
|
|
4
4
|
import { d as t } from "./breakpoints-BubDitvo.js";
|
|
5
|
-
import { S as N } from "./index-
|
|
5
|
+
import { S as N } from "./index-CCwfh-7A.js";
|
|
6
6
|
const C = d.div`
|
|
7
7
|
display: flex;
|
|
8
8
|
flex-direction: column;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const e=require("react/jsx-runtime"),
|
|
1
|
+
"use strict";const e=require("react/jsx-runtime"),x=require("react"),j=require("./Button.cjs"),l=require("./emotion-styled.browser.esm-DwHBgTPn.cjs"),i=require("./utils-BK6B_Y9X.cjs"),d=require("./breakpoints-CcVm-gVm.cjs"),y=require("./emotion-element-f0de968e.browser.esm-B7k6i6lC.cjs"),n=require("./style-CQdEALKR.cjs"),v=l.styled.a`
|
|
2
2
|
text-decoration: none;
|
|
3
3
|
display: flex;
|
|
4
4
|
flex-direction: column;
|
|
@@ -58,7 +58,7 @@
|
|
|
58
58
|
width: 24.5rem;
|
|
59
59
|
height: 30rem;
|
|
60
60
|
border-radius: 0.75rem;
|
|
61
|
-
background-color: ${
|
|
61
|
+
background-color: ${i.linearGradientAnimation("-90deg")};
|
|
62
62
|
}
|
|
63
63
|
|
|
64
64
|
& .wrapper__text {
|
|
@@ -78,7 +78,7 @@
|
|
|
78
78
|
font-style: normal;
|
|
79
79
|
font-weight: 500;
|
|
80
80
|
line-height: 1.5rem;
|
|
81
|
-
${
|
|
81
|
+
${i.truncateTextInRows(2)}
|
|
82
82
|
}
|
|
83
83
|
|
|
84
84
|
& .text__tag {
|
|
@@ -100,7 +100,7 @@
|
|
|
100
100
|
font-style: normal;
|
|
101
101
|
font-weight: 400;
|
|
102
102
|
line-height: 1.25rem;
|
|
103
|
-
${
|
|
103
|
+
${i.truncateTextInRows(2)}
|
|
104
104
|
}
|
|
105
105
|
|
|
106
106
|
& .text__action {
|
|
@@ -117,19 +117,19 @@
|
|
|
117
117
|
}
|
|
118
118
|
|
|
119
119
|
& .text__title--skeleton {
|
|
120
|
-
background-color: ${
|
|
120
|
+
background-color: ${i.linearGradientAnimation("-90deg")};
|
|
121
121
|
height: 1rem;
|
|
122
122
|
width: 9rem;
|
|
123
123
|
}
|
|
124
124
|
|
|
125
125
|
& .text__description--skeleton {
|
|
126
|
-
background-color: ${
|
|
126
|
+
background-color: ${i.linearGradientAnimation("-90deg")};
|
|
127
127
|
height: 1rem;
|
|
128
128
|
width: 12rem;
|
|
129
129
|
}
|
|
130
130
|
|
|
131
131
|
& .text__action--skeleton {
|
|
132
|
-
background-color: ${
|
|
132
|
+
background-color: ${i.linearGradientAnimation("-90deg")};
|
|
133
133
|
height: 2rem;
|
|
134
134
|
width: 9rem;
|
|
135
135
|
}
|
|
@@ -142,7 +142,7 @@
|
|
|
142
142
|
max-height: 14.5rem;
|
|
143
143
|
}
|
|
144
144
|
}
|
|
145
|
-
`,k=
|
|
145
|
+
`,k=x.forwardRef(({title:r,imageUrl:t,description:o,buttonText:a,onSelectCard:c=()=>{},className:m,position:g,tag:s,backgroundColor:h,borderColor:u,buttonLink:p,LinkComponent:f},w)=>{const _=f||"a",b=y.useTheme();return e.jsx(e.Fragment,{children:e.jsxs(v,{ref:w,theme:b,className:m,position:g,backgroundColor:h,onClick:c,as:_,borderColor:u,...f?{to:`/${p}`}:{href:`/${p}`},children:[e.jsx("img",{src:t,className:"wrapper__image",loading:"lazy"}),e.jsxs("div",{className:"wrapper__text",children:[s&&e.jsx("div",{className:"text__tag",children:s}),e.jsx("div",{className:"text__title",children:r}),i.isDefinedNotEmptyString(o)&&e.jsx("div",{className:"text__description",children:o}),i.isDefinedNotEmptyString(a)&&e.jsx(j,{text:a,className:"text__action",color:"gray"})]})]})})}),S=l.styled.div`
|
|
146
146
|
display: flex;
|
|
147
147
|
flex-direction: column;
|
|
148
148
|
gap: 1.5rem;
|
|
@@ -193,7 +193,7 @@
|
|
|
193
193
|
height: 100%;
|
|
194
194
|
max-height: 100%;
|
|
195
195
|
}
|
|
196
|
-
`,C=l.styled(n.
|
|
196
|
+
`,C=l.styled(n.SkeletonAnimationContainer)`
|
|
197
197
|
@media ${d.down("S")} {
|
|
198
198
|
flex-direction: column;
|
|
199
199
|
|
|
@@ -207,4 +207,4 @@
|
|
|
207
207
|
flex-direction: column;
|
|
208
208
|
}
|
|
209
209
|
}
|
|
210
|
-
`,
|
|
210
|
+
`,R=({keyPrefix:r})=>e.jsxs(C,{children:[e.jsx(n.SkeletonColumnContainer,{children:e.jsx(n.SkeletonRect,{height:"31.25rem",className:"skeleton__big",width:"100%"},`${r}-1`)}),e.jsxs(n.SkeletonColumnContainer,{children:[e.jsxs(n.SkeletonContainer,{children:[e.jsx(n.SkeletonRect,{width:"100%",height:"15rem"},`${r}-2`),e.jsx(n.SkeletonRect,{width:"100%",height:"15rem"},`${r}-3`)]}),e.jsxs(n.SkeletonContainer,{children:[e.jsx(n.SkeletonRect,{width:"100%",height:"15rem"},`${r}-4`),e.jsx(n.SkeletonRect,{width:"100%",height:"15rem"},`${r}-5`)]})]})]}),N=({keyPrefix:r,isLoading:t=!1,fallbackComponent:o=e.jsx(e.Fragment,{}),children:a})=>e.jsx(x.Suspense,{fallbackComponent:o,children:t===!0?e.jsx(R,{keyPrefix:r}):a}),G=x.forwardRef(({title:r,items:t,isLoading:o=!1,limit:a=3,onSelectCard:c=()=>{},LinkComponent:m},g)=>e.jsxs(S,{ref:g,children:[e.jsx("div",{className:"regular-title",children:e.jsx("div",{className:"regular-title-text",children:e.jsx("span",{children:r})})}),e.jsx(N,{isLoading:o,keyPrefix:"masonry-general-cards-skeleton",children:e.jsx($,{limit:a,children:t&&(t==null?void 0:t.map((s,h)=>e.jsx(k,{...s,onSelectCard:()=>c(s),LinkComponent:m},`landing-page-masonry-general-card__${h+1}`)))})})]}));module.exports=G;
|