@lanaco/lnc-react-ui 4.0.205 → 4.0.207
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/BREAKPOINTS.md +148 -0
- package/dist/Accordion.cjs +1 -1
- package/dist/Accordion.js +6 -6
- package/dist/AccordionSummary.cjs +1 -1
- package/dist/AccordionSummary.js +8 -8
- package/dist/ActionsToolbar.cjs +15 -4
- package/dist/ActionsToolbar.js +58 -46
- package/dist/AdBannerSection.cjs +4 -4
- package/dist/AdBannerSection.js +5 -5
- package/dist/Alert.cjs +1 -1
- package/dist/Alert.js +1 -1
- package/dist/Avatar.cjs +1 -1
- package/dist/Avatar.js +12 -12
- package/dist/Badge.cjs +1 -1
- package/dist/Badge.js +5 -5
- package/dist/BannerNextSection.cjs +2 -2
- package/dist/BannerNextSection.js +13 -13
- package/dist/BannerSectionBasic.cjs +4 -4
- package/dist/BannerSectionBasic.js +22 -22
- package/dist/BannerSectionCarousel.cjs +27 -6
- package/dist/BannerSectionCarousel.js +71 -50
- package/dist/BannerSectionGrid.cjs +3 -3
- package/dist/BannerSectionGrid.js +13 -13
- package/dist/BannerSectionSimple.cjs +15 -15
- package/dist/BannerSectionSimple.js +40 -40
- package/dist/BannerSectionWithList.cjs +7 -7
- package/dist/BannerSectionWithList.js +20 -20
- package/dist/BannerSectionWithListImage.cjs +6 -9
- package/dist/BannerSectionWithListImage.js +17 -20
- package/dist/BlogCardsSponsoredSection.cjs +7 -5
- package/dist/BlogCardsSponsoredSection.js +32 -30
- package/dist/BlogCategoryCardsSection.cjs +1 -1
- package/dist/BlogCategoryCardsSection.js +2 -2
- package/dist/BlogExploreSection.cjs +4 -4
- package/dist/BlogExploreSection.js +60 -60
- package/dist/BlogImagePathSection.cjs +3 -14
- package/dist/BlogImagePathSection.js +27 -39
- package/dist/BlogListSection.cjs +6 -6
- package/dist/BlogListSection.js +32 -32
- package/dist/BlogProductCardsSection.cjs +1 -1
- package/dist/BlogProductCardsSection.js +3 -3
- package/dist/BlogShopCardsSection.cjs +1 -1
- package/dist/BlogShopCardsSection.js +3 -3
- package/dist/BlogSingleSection.cjs +3 -3
- package/dist/BlogSingleSection.js +12 -12
- package/dist/BlogsSectionDetailed.cjs +14 -6
- package/dist/BlogsSectionDetailed.js +53 -45
- package/dist/BlogsSectionLarge.cjs +13 -5
- package/dist/BlogsSectionLarge.js +48 -40
- package/dist/BlogsSectionSimple.cjs +14 -9
- package/dist/BlogsSectionSimple.js +43 -38
- package/dist/BlogsSectionSimpleCentered.cjs +17 -8
- package/dist/BlogsSectionSimpleCentered.js +68 -59
- package/dist/BlogsSectionWithFilters.cjs +16 -11
- package/dist/BlogsSectionWithFilters.js +43 -38
- package/dist/BrandHitsSection.cjs +7 -7
- package/dist/BrandHitsSection.js +13 -13
- package/dist/Breadcrumbs.cjs +1 -1
- package/dist/Breadcrumbs.js +16 -16
- 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 +15 -15
- package/dist/CalorieCalculatorSection.js +84 -84
- package/dist/{CategorySimpleCard-COGlTj06.cjs → CategorySimpleCard-CIBvknos.cjs} +3 -3
- package/dist/{CategorySimpleCard-Em84kZzQ.js → CategorySimpleCard-CkSwvJRw.js} +8 -8
- 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 +14 -14
- package/dist/ConfirmationForm.cjs +1 -1
- package/dist/ConfirmationForm.js +5 -5
- package/dist/ContactSection.cjs +4 -4
- package/dist/ContactSection.js +72 -72
- package/dist/CustomLoanMapSection.cjs +3 -3
- package/dist/CustomLoanMapSection.js +67 -67
- package/dist/{CustomStyles-C86XQqBE.cjs → CustomStyles-2TQQSwtU.cjs} +1 -1
- package/dist/{CustomStyles-DtWxboEM.js → CustomStyles-DR4WuDUN.js} +1 -1
- package/dist/{DailyMotion-CpZExcrg.cjs → DailyMotion-BPdBW5Yv.cjs} +1 -1
- package/dist/{DailyMotion-BBcJkMo_.js → DailyMotion-P9S-WhTX.js} +1 -1
- package/dist/DateInput.cjs +6 -6
- package/dist/DateInput.js +646 -645
- 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 +10 -4
- package/dist/DetailedProductsInfinitiveSection.js +71 -65
- package/dist/DetailedProductsSection.cjs +7 -3
- package/dist/DetailedProductsSection.js +55 -51
- 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 +13 -13
- 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 +7 -7
- package/dist/EditableTable.cjs +1 -1
- package/dist/EditableTable.js +8 -8
- package/dist/{Facebook-DoKw-XxT.cjs → Facebook-C8L2KR4O.cjs} +1 -1
- package/dist/{Facebook-BSWPEXjA.js → Facebook-vhbBr0rd.js} +1 -1
- package/dist/FaqSection.cjs +3 -3
- package/dist/FaqSection.js +52 -52
- package/dist/FeedbackSection.cjs +3 -3
- package/dist/FeedbackSection.js +15 -15
- package/dist/FieldOfInterestsMasonrySection.cjs +18 -12
- package/dist/FieldOfInterestsMasonrySection.js +107 -117
- package/dist/FieldOfInterestsWithAvatarsCardsSection.cjs +13 -7
- package/dist/FieldOfInterestsWithAvatarsCardsSection.js +64 -58
- package/dist/FieldOfInterestsWithTagsCardsSection.cjs +15 -9
- package/dist/FieldOfInterestsWithTagsCardsSection.js +42 -36
- package/dist/FileInput.cjs +1 -1
- package/dist/FileInput.js +1 -1
- package/dist/{FilePlayer-D9az_lc_.cjs → FilePlayer-BVFgHY_f.cjs} +1 -1
- package/dist/{FilePlayer-BtGpIWnK.js → FilePlayer-CXTLAokk.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 +14 -8
- package/dist/GeneralWithTagsCardsSection.js +31 -25
- package/dist/GiftCardsSection.cjs +15 -7
- package/dist/GiftCardsSection.js +44 -36
- package/dist/HelpBannerSection.cjs +3 -3
- package/dist/HelpBannerSection.js +4 -4
- package/dist/Icon.cjs +1 -1
- package/dist/Icon.js +4 -4
- package/dist/IconButton.cjs +1 -1
- package/dist/IconButton.js +1 -1
- package/dist/{Kaltura-CK6JHUZC.cjs → Kaltura-C2fRoaEg.cjs} +1 -1
- package/dist/{Kaltura-BDqlEQpd.js → Kaltura-CRGK2EP7.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 +5 -5
- package/dist/KanbanView.cjs +1 -1
- package/dist/KanbanView.js +9 -9
- package/dist/Link.cjs +1 -1
- package/dist/Link.js +1 -1
- package/dist/LoanCalculatorSection.cjs +3 -3
- package/dist/LoanCalculatorSection.js +17 -17
- package/dist/LocationFinderSection.cjs +1 -1
- package/dist/LocationFinderSection.js +1 -1
- package/dist/LocationSearchSection.cjs +13 -6
- package/dist/LocationSearchSection.js +34 -27
- package/dist/MasonryGeneralCardsSection.cjs +13 -9
- package/dist/MasonryGeneralCardsSection.js +34 -30
- package/dist/MenuItem.cjs +1 -1
- package/dist/MenuItem.js +14 -14
- package/dist/{Mixcloud-zAh6j7Ha.js → Mixcloud-Cn5M-EIT.js} +1 -1
- package/dist/{Mixcloud-C1Boh2Bm.cjs → Mixcloud-D09BQNOt.cjs} +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/{Mux-C6TwZeaq.cjs → Mux-C-xD7crc.cjs} +1 -1
- package/dist/{Mux-BGTG_Tvc.js → Mux-C6szci3w.js} +1 -1
- package/dist/NestedDropdownItem.cjs +1 -1
- package/dist/NestedDropdownItem.js +9 -9
- package/dist/NestedMenuItem.cjs +1 -1
- package/dist/NestedMenuItem.js +7 -7
- package/dist/NotificationContainer.cjs +1 -1
- package/dist/NotificationContainer.js +1 -1
- package/dist/NotificationMessage.cjs +1 -1
- package/dist/NotificationMessage.js +5 -5
- package/dist/NumberInput.cjs +1 -1
- package/dist/NumberInput.js +8 -8
- package/dist/OverlayGeneralCardsSection.cjs +19 -31
- package/dist/OverlayGeneralCardsSection.js +51 -63
- package/dist/PartnerBannerSection.cjs +2 -2
- package/dist/PartnerBannerSection.js +2 -2
- package/dist/PartnerBrandsSection.cjs +2 -2
- package/dist/PartnerBrandsSection.js +24 -17
- package/dist/PartnerCardsSection.cjs +3 -3
- package/dist/PartnerCardsSection.js +18 -18
- package/dist/PartnerStatsSection.cjs +2 -2
- package/dist/PartnerStatsSection.js +3 -3
- package/dist/PasswordInput.cjs +1 -1
- package/dist/PasswordInput.js +19 -19
- package/dist/PopoverContent.cjs +1 -1
- package/dist/PopoverContent.js +1 -1
- package/dist/ProductsWithBannerSection.cjs +20 -10
- package/dist/ProductsWithBannerSection.js +79 -69
- package/dist/ProgressBar.cjs +1 -1
- package/dist/ProgressBar.js +5 -5
- package/dist/QuattroCardsSection.cjs +8 -6
- package/dist/QuattroCardsSection.js +19 -17
- package/dist/QuizSection.cjs +9 -9
- package/dist/QuizSection.js +56 -56
- 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 +24 -16
- package/dist/ReviewsSection.js +56 -48
- package/dist/SalesCampaignsSection.cjs +25 -21
- package/dist/SalesCampaignsSection.js +248 -241
- package/dist/{SearchSection-DAaMecR4.js → SearchSection-BEYnWPSr.js} +69 -69
- package/dist/{SearchSection-B94YN_6P.cjs → SearchSection-DUY61r3k.cjs} +6 -6
- package/dist/SearchSection.cjs +1 -1
- package/dist/SearchSection.js +1 -1
- package/dist/Separator.cjs +1 -1
- package/dist/Separator.js +3 -3
- package/dist/SeparatorSection.cjs +3 -3
- package/dist/SeparatorSection.js +4 -4
- package/dist/ShopCardsSection.cjs +11 -5
- package/dist/ShopCardsSection.js +40 -34
- package/dist/Sidebar.cjs +1 -1
- package/dist/Sidebar.js +1 -1
- package/dist/SimpleCategoriesSection.cjs +9 -5
- package/dist/SimpleCategoriesSection.js +61 -57
- package/dist/SimpleProductsSection.cjs +44 -11
- package/dist/SimpleProductsSection.js +100 -67
- package/dist/{SoundCloud-C6R6E6Zc.cjs → SoundCloud-BsL6Onq6.cjs} +1 -1
- package/dist/{SoundCloud-lO8wg_0s.js → SoundCloud-Cfaj1Ze1.js} +1 -1
- package/dist/Spinner.cjs +1 -1
- package/dist/Spinner.js +1 -1
- package/dist/StatsSection.cjs +3 -3
- package/dist/StatsSection.js +11 -11
- package/dist/{Streamable-Dwa5ZEK4.js → Streamable-CG8_-_w7.js} +1 -1
- package/dist/{Streamable-DZO95CiT.cjs → Streamable-DFtyk9Dt.cjs} +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 +54 -49
- package/dist/Table.js +417 -401
- package/dist/TableView.cjs +10 -2
- package/dist/TableView.js +84 -75
- 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 +4 -4
- package/dist/ThemeProvider.js +11 -10
- 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/ToggleSection.cjs +7 -7
- package/dist/ToggleSection.js +38 -38
- package/dist/TreeMenuSeparator.cjs +1 -1
- package/dist/TreeMenuSeparator.js +3 -3
- package/dist/{Twitch-B17oKtD0.cjs → Twitch-BIUEEDiE.cjs} +1 -1
- package/dist/{Twitch-C73-dwWo.js → Twitch-CbU_0Tx9.js} +1 -1
- package/dist/UploadedFile.cjs +1 -1
- package/dist/UploadedFile.js +7 -7
- package/dist/UrgentSaleProductsSection.cjs +10 -4
- package/dist/UrgentSaleProductsSection.js +67 -61
- package/dist/{Vidyard-s1MMcaRm.cjs → Vidyard-QkjVIros.cjs} +1 -1
- package/dist/{Vidyard-B6GdBHsM.js → Vidyard-S6Fl_F78.js} +1 -1
- package/dist/{Vimeo-kzHz4Gco.js → Vimeo-5bkeYCV4.js} +1 -1
- package/dist/{Vimeo-J1l_SU2E.cjs → Vimeo-B5jsifNT.cjs} +1 -1
- package/dist/{Wistia-CudQyDHM.cjs → Wistia-dpbMmx23.cjs} +1 -1
- package/dist/{Wistia-w4jnqd7y.js → Wistia-gOZBV0XZ.js} +1 -1
- package/dist/{YouTube-BAYKouHS.cjs → YouTube-BfZRCB6O.cjs} +1 -1
- package/dist/{YouTube-BKyipPZx.js → YouTube-XoIB4ATQ.js} +1 -1
- package/dist/breakpoints-CcVm-gVm.cjs +1 -0
- package/dist/breakpoints-ff0SIcV3.js +91 -0
- package/dist/{index-u_XFwsvc.js → index-9KyU46J0.js} +11 -9
- package/dist/{index-CSgGox95.cjs → index-B9c6y2J5.cjs} +3 -3
- package/dist/{index-CS4w87SW.cjs → index-BEgD9vNo.cjs} +9 -9
- package/dist/{index-BC2PHcI1.js → index-BWeXujWl.js} +10 -10
- package/dist/index-B_ilx3wM.cjs +16 -0
- package/dist/{index-B22BZVBG.js → index-BvMY2TbK.js} +1 -1
- package/dist/{index-CwMCk9wV.js → index-BzSWu-7v.js} +67 -67
- package/dist/{index-TIqKd2Dv.js → index-C-uOIDDa.js} +2 -2
- package/dist/{index-bihqNqQk.js → index-C4HycAPS.js} +6 -6
- package/dist/{index-BWE-RCPy.cjs → index-CBZ-jNah.cjs} +4 -4
- package/dist/{index-D_5jNP-o.cjs → index-CUaeb_TU.cjs} +5 -5
- package/dist/{index-DK8dqEUQ.js → index-CoQ9APCD.js} +11 -11
- package/dist/{index-BAJkosVg.cjs → index-CsTfXxpp.cjs} +2 -2
- package/dist/{index-D0JDnm9b.cjs → index-Dc0EEBRW.cjs} +4 -4
- package/dist/{index-uwl7BjRF.cjs → index-DsINTjQk.cjs} +1 -1
- package/dist/{index-Cm414y95.js → index-L_Va5-wK.js} +13 -13
- package/dist/{index-CBMsUFkS.js → index-hC-E71GE.js} +11 -11
- package/dist/{index-BFc3nxYZ.cjs → index-of6WydGq.cjs} +4 -2
- package/dist/{index-BASX-BjS.js → index-rYUwBlpp.js} +63 -63
- package/dist/{index-D0IYt1s3.cjs → index-uCWKRzoS.cjs} +2 -2
- package/dist/{index-CRk3vcd4.cjs → index-vQOR22Py.cjs} +4 -4
- package/dist/{index-D-86mDtn.js → index-yARaIaLj.js} +29 -29
- package/dist/index.cjs +1 -1
- package/dist/index.js +213 -194
- package/dist/{style-BTTXJFJN.cjs → style-AYc9hnFj.cjs} +14 -2
- package/dist/{style-neMbLWE6.js → style-BUyFad_y.js} +4 -4
- package/dist/{style-tw6KjI2J.js → style-Bq3rMbnN.js} +16 -4
- package/dist/{style-B4kAj6YU.cjs → style-DC05rdyx.cjs} +5 -5
- package/dist/{tag-Dm8CW4TM.js → tag-Bi8gg6hJ.js} +12 -12
- package/dist/{tag-UQjq2_Ba.cjs → tag-DSnhWWHE.cjs} +5 -5
- package/dist/{utils-DtEfC-TX.js → theme-Befg4g_L.js} +19 -378
- package/dist/theme-Q3WOGKWQ.cjs +1 -0
- package/dist/{useDetectMobile-Bkvj0VMa.js → useDetectMobile-CcVo3PNi.js} +1 -1
- package/dist/useDetectMobile-DYV6V1yw.cjs +1 -0
- package/dist/utils-B2fsQ6PS.js +334 -0
- package/dist/utils-CITgSxXe.cjs +51 -0
- package/package.json +1 -1
- package/dist/consts-BuFChS64.js +0 -7
- package/dist/consts-goSZX3xP.cjs +0 -1
- package/dist/index-D-3I_Ppj.cjs +0 -16
- package/dist/useDetectMobile-zkbzoOGV.cjs +0 -1
- package/dist/utils-RnrgDDZP.cjs +0 -51
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { jsxs as o, jsx as r, Fragment as
|
|
2
|
-
import { forwardRef as
|
|
3
|
-
import {
|
|
4
|
-
import
|
|
1
|
+
import { jsxs as o, jsx as r, Fragment as O } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as z, Suspense as G, useLayoutEffect as R } from "react";
|
|
3
|
+
import { n as N, m as W, l as q } from "./utils-B2fsQ6PS.js";
|
|
4
|
+
import T from "./Icon.js";
|
|
5
5
|
import { s as $ } from "./emotion-styled.browser.esm-BNN1dTl3.js";
|
|
6
|
-
import {
|
|
7
|
-
import { u as
|
|
8
|
-
import { S as
|
|
9
|
-
const
|
|
6
|
+
import { d as u } from "./breakpoints-ff0SIcV3.js";
|
|
7
|
+
import { u as j } from "./emotion-element-f0de968e.browser.esm-CkCiQliQ.js";
|
|
8
|
+
import { S as A, b as w, d as _, a as g } from "./style-BwQ4djFC.js";
|
|
9
|
+
const D = $.a`
|
|
10
10
|
text-decoration: none;
|
|
11
11
|
color: var(--gray-950);
|
|
12
12
|
display: flex;
|
|
@@ -61,7 +61,7 @@ const H = $.a`
|
|
|
61
61
|
}
|
|
62
62
|
}
|
|
63
63
|
|
|
64
|
-
@media
|
|
64
|
+
@media ${u("S")} {
|
|
65
65
|
& .wrapper__content {
|
|
66
66
|
& .wrapper__title {
|
|
67
67
|
font-size: 0.875rem;
|
|
@@ -73,7 +73,7 @@ const H = $.a`
|
|
|
73
73
|
}
|
|
74
74
|
}
|
|
75
75
|
}
|
|
76
|
-
`,
|
|
76
|
+
`, H = $.div`
|
|
77
77
|
display: flex;
|
|
78
78
|
flex-direction: column;
|
|
79
79
|
align-items: center;
|
|
@@ -124,7 +124,7 @@ const H = $.a`
|
|
|
124
124
|
}
|
|
125
125
|
}
|
|
126
126
|
|
|
127
|
-
@media
|
|
127
|
+
@media ${u("S")} {
|
|
128
128
|
max-width: unset;
|
|
129
129
|
min-width: unset;
|
|
130
130
|
flex-direction: row;
|
|
@@ -164,47 +164,47 @@ const H = $.a`
|
|
|
164
164
|
max-width: unset;
|
|
165
165
|
}
|
|
166
166
|
}
|
|
167
|
-
`,
|
|
168
|
-
({ text: t, isActive: l = !1, icon: i, onSelectCard:
|
|
169
|
-
} },
|
|
170
|
-
|
|
167
|
+
`, B = z(
|
|
168
|
+
({ text: t, isActive: l = !1, icon: i, onSelectCard: a = () => {
|
|
169
|
+
} }, d) => /* @__PURE__ */ o(
|
|
170
|
+
H,
|
|
171
171
|
{
|
|
172
|
-
ref:
|
|
172
|
+
ref: d,
|
|
173
173
|
className: l ? "active" : "",
|
|
174
|
-
onClick:
|
|
174
|
+
onClick: a,
|
|
175
175
|
children: [
|
|
176
|
-
/* @__PURE__ */ r(
|
|
176
|
+
/* @__PURE__ */ r(T, { icon: i, className: "wrapper__icon" }),
|
|
177
177
|
/* @__PURE__ */ r("div", { className: "wrapper__text", children: t })
|
|
178
178
|
]
|
|
179
179
|
}
|
|
180
180
|
)
|
|
181
|
-
), J =
|
|
181
|
+
), J = z(
|
|
182
182
|
({
|
|
183
183
|
image: t,
|
|
184
184
|
imageComponent: l,
|
|
185
185
|
title: i,
|
|
186
|
-
description:
|
|
187
|
-
className:
|
|
186
|
+
description: a,
|
|
187
|
+
className: d,
|
|
188
188
|
onSelectCard: k = () => {
|
|
189
189
|
},
|
|
190
|
-
link:
|
|
191
|
-
LinkComponent:
|
|
190
|
+
link: x,
|
|
191
|
+
LinkComponent: v
|
|
192
192
|
}, I) => {
|
|
193
|
-
const c =
|
|
193
|
+
const c = v || "a", { theme: h } = j();
|
|
194
194
|
return /* @__PURE__ */ o(
|
|
195
|
-
|
|
195
|
+
D,
|
|
196
196
|
{
|
|
197
197
|
ref: I,
|
|
198
|
-
theme:
|
|
199
|
-
className:
|
|
198
|
+
theme: h,
|
|
199
|
+
className: d,
|
|
200
200
|
onClick: k,
|
|
201
201
|
as: c,
|
|
202
|
-
...
|
|
202
|
+
...v ? { to: `/${x}` } : { href: `/${x}` },
|
|
203
203
|
children: [
|
|
204
|
-
|
|
204
|
+
W(l) ? l : /* @__PURE__ */ r("img", { src: t, className: "wrapper__image" }),
|
|
205
205
|
/* @__PURE__ */ o("div", { className: "wrapper__content", children: [
|
|
206
206
|
i && /* @__PURE__ */ r("div", { className: "wrapper__title", children: i }),
|
|
207
|
-
|
|
207
|
+
a && /* @__PURE__ */ r("div", { className: "wrapper__description", children: a })
|
|
208
208
|
] })
|
|
209
209
|
]
|
|
210
210
|
}
|
|
@@ -266,153 +266,150 @@ const H = $.a`
|
|
|
266
266
|
}
|
|
267
267
|
}
|
|
268
268
|
|
|
269
|
-
@media
|
|
269
|
+
@media ${u("M")} {
|
|
270
|
+
& .wrapper__cards {
|
|
271
|
+
grid-template-columns: repeat(2, minmax(12.5rem, 1fr));
|
|
272
|
+
}
|
|
273
|
+
}
|
|
274
|
+
|
|
275
|
+
@media ${u("S")} {
|
|
270
276
|
gap: 1rem;
|
|
271
277
|
|
|
272
278
|
& .wrapper__cards {
|
|
273
279
|
grid-template-columns: ${(t) => `repeat(${t == null ? void 0 : t.limitCardsForMobile}, minmax(0, 1fr))`};
|
|
274
280
|
}
|
|
275
281
|
}
|
|
276
|
-
`,
|
|
282
|
+
`, Q = $(A)`
|
|
277
283
|
&.skeleton__tags {
|
|
278
284
|
max-width: 50rem;
|
|
279
285
|
}
|
|
280
286
|
|
|
281
|
-
@media
|
|
287
|
+
@media ${u("S")} {
|
|
282
288
|
&.skeleton__tags {
|
|
283
289
|
overflow-x: hidden;
|
|
284
290
|
}
|
|
285
291
|
}
|
|
286
|
-
`,
|
|
292
|
+
`, U = ({ keyPrefix: t }) => /* @__PURE__ */ o(Q, { className: "skeleton__tags", children: [
|
|
287
293
|
/* @__PURE__ */ o(
|
|
288
|
-
|
|
294
|
+
w,
|
|
289
295
|
{
|
|
290
296
|
alignItems: "center",
|
|
291
297
|
gap: "0.5rem",
|
|
292
298
|
children: [
|
|
293
|
-
/* @__PURE__ */ r(
|
|
294
|
-
/* @__PURE__ */ r(
|
|
299
|
+
/* @__PURE__ */ r(_, { width: "2.75rem", height: "2.75rem" }),
|
|
300
|
+
/* @__PURE__ */ r(g, { height: "1.5rem", width: "8rem" })
|
|
295
301
|
]
|
|
296
302
|
},
|
|
297
303
|
`${t}-1`
|
|
298
304
|
),
|
|
299
305
|
/* @__PURE__ */ o(
|
|
300
|
-
|
|
306
|
+
w,
|
|
301
307
|
{
|
|
302
308
|
alignItems: "center",
|
|
303
309
|
gap: "0.5rem",
|
|
304
310
|
noGradient: !0,
|
|
305
311
|
children: [
|
|
306
|
-
/* @__PURE__ */ r(
|
|
307
|
-
/* @__PURE__ */ r(
|
|
312
|
+
/* @__PURE__ */ r(_, { width: "2.75rem", height: "2.75rem" }),
|
|
313
|
+
/* @__PURE__ */ r(g, { height: "1.5rem", width: "8rem" })
|
|
308
314
|
]
|
|
309
315
|
},
|
|
310
316
|
`${t}-2`
|
|
311
317
|
),
|
|
312
318
|
/* @__PURE__ */ o(
|
|
313
|
-
|
|
319
|
+
w,
|
|
314
320
|
{
|
|
315
321
|
alignItems: "center",
|
|
316
322
|
gap: "0.5rem",
|
|
317
323
|
noGradient: !0,
|
|
318
324
|
children: [
|
|
319
|
-
/* @__PURE__ */ r(
|
|
320
|
-
/* @__PURE__ */ r(
|
|
325
|
+
/* @__PURE__ */ r(_, { width: "2.75rem", height: "2.75rem" }),
|
|
326
|
+
/* @__PURE__ */ r(g, { height: "1.5rem", width: "8rem" })
|
|
321
327
|
]
|
|
322
328
|
},
|
|
323
329
|
`${t}-3`
|
|
324
330
|
),
|
|
325
331
|
/* @__PURE__ */ o(
|
|
326
|
-
|
|
332
|
+
w,
|
|
327
333
|
{
|
|
328
334
|
alignItems: "center",
|
|
329
335
|
gap: "0.5rem",
|
|
330
336
|
noGradient: !0,
|
|
331
337
|
children: [
|
|
332
|
-
/* @__PURE__ */ r(
|
|
333
|
-
/* @__PURE__ */ r(
|
|
338
|
+
/* @__PURE__ */ r(_, { width: "2.75rem", height: "2.75rem" }),
|
|
339
|
+
/* @__PURE__ */ r(g, { height: "1.5rem", width: "8rem" })
|
|
334
340
|
]
|
|
335
341
|
},
|
|
336
342
|
`${t}-4`
|
|
337
343
|
),
|
|
338
344
|
/* @__PURE__ */ o(
|
|
339
|
-
|
|
345
|
+
w,
|
|
340
346
|
{
|
|
341
347
|
alignItems: "center",
|
|
342
348
|
gap: "0.5rem",
|
|
343
349
|
noGradient: !0,
|
|
344
350
|
children: [
|
|
345
|
-
/* @__PURE__ */ r(
|
|
346
|
-
/* @__PURE__ */ r(
|
|
351
|
+
/* @__PURE__ */ r(_, { width: "2.75rem", height: "2.75rem" }),
|
|
352
|
+
/* @__PURE__ */ r(g, { height: "1.5rem", width: "8rem" })
|
|
347
353
|
]
|
|
348
354
|
},
|
|
349
355
|
`${t}-5`
|
|
350
356
|
)
|
|
351
|
-
] }),
|
|
352
|
-
keyPrefix: t,
|
|
353
|
-
isLoading: l = !1,
|
|
354
|
-
fallbackComponent: i = /* @__PURE__ */ r(C, {}),
|
|
355
|
-
children: n
|
|
356
|
-
}) => /* @__PURE__ */ r(E, { fallbackComponent: i, children: l === !0 ? /* @__PURE__ */ r(Q, { keyPrefix: t }) : n }), V = ({ keyPrefix: t }) => /* @__PURE__ */ o(F, { className: "skeleton__cards", children: [
|
|
357
|
-
/* @__PURE__ */ r(p, { height: "13.75rem" }, `${t}-1`),
|
|
358
|
-
/* @__PURE__ */ r(p, { height: "13.75rem" }, `${t}-2`),
|
|
359
|
-
/* @__PURE__ */ r(p, { height: "13.75rem" }, `${t}-3`)
|
|
360
|
-
] }), Y = ({
|
|
357
|
+
] }), V = ({
|
|
361
358
|
keyPrefix: t,
|
|
362
359
|
isLoading: l = !1,
|
|
363
|
-
fallbackComponent: i = /* @__PURE__ */ r(
|
|
364
|
-
children:
|
|
365
|
-
}) => /* @__PURE__ */ r(
|
|
360
|
+
fallbackComponent: i = /* @__PURE__ */ r(O, {}),
|
|
361
|
+
children: a
|
|
362
|
+
}) => /* @__PURE__ */ r(G, { fallbackComponent: i, children: l === !0 ? /* @__PURE__ */ r(U, { keyPrefix: t }) : a }), ne = z(
|
|
366
363
|
({
|
|
367
364
|
title: t,
|
|
368
365
|
subtitle: l,
|
|
369
366
|
tags: i = [],
|
|
370
|
-
items:
|
|
371
|
-
limitTags:
|
|
367
|
+
items: a = [],
|
|
368
|
+
limitTags: d = 5,
|
|
372
369
|
limitTagsForMobile: k = 5,
|
|
373
|
-
limit:
|
|
374
|
-
limitForMobile:
|
|
370
|
+
limit: x = 3,
|
|
371
|
+
limitForMobile: v = 2,
|
|
375
372
|
selectedTag: I,
|
|
376
373
|
onSelectTag: c = () => {
|
|
377
374
|
},
|
|
378
|
-
onSelectCard:
|
|
375
|
+
onSelectCard: h = () => {
|
|
379
376
|
},
|
|
380
|
-
className:
|
|
381
|
-
isLoadingTags:
|
|
382
|
-
isLoadingCards
|
|
383
|
-
LinkComponent:
|
|
384
|
-
},
|
|
385
|
-
if (!
|
|
377
|
+
className: f,
|
|
378
|
+
isLoadingTags: C = !1,
|
|
379
|
+
// isLoadingCards = false,
|
|
380
|
+
LinkComponent: M
|
|
381
|
+
}, E) => (R(() => {
|
|
382
|
+
if (!q(f))
|
|
386
383
|
return;
|
|
387
384
|
const e = () => {
|
|
388
|
-
const m = document == null ? void 0 : document.querySelector(`.${
|
|
389
|
-
s == null || s.forEach((
|
|
390
|
-
const
|
|
391
|
-
|
|
385
|
+
const m = document == null ? void 0 : document.querySelector(`.${f} .wrapper__cards`), s = m == null ? void 0 : m.querySelectorAll(".wrapper__card");
|
|
386
|
+
s == null || s.forEach((b) => {
|
|
387
|
+
const F = b.getBoundingClientRect().height, L = Math.ceil((F + 10) / 20);
|
|
388
|
+
b.style.gridRowEnd = `span ${L}`;
|
|
392
389
|
});
|
|
393
|
-
const
|
|
394
|
-
if (
|
|
395
|
-
const
|
|
396
|
-
m.style.height = `${
|
|
390
|
+
const S = s == null ? void 0 : s[(s == null ? void 0 : s.length) - 1];
|
|
391
|
+
if (S) {
|
|
392
|
+
const b = S.offsetTop + S.offsetHeight;
|
|
393
|
+
m.style.height = `${b}px`;
|
|
397
394
|
}
|
|
398
|
-
},
|
|
395
|
+
}, p = document == null ? void 0 : document.querySelector(`.${f} .wrapper__cards`), n = p == null ? void 0 : p.querySelectorAll(".wrapper__image");
|
|
399
396
|
let y = 0;
|
|
400
|
-
return (
|
|
397
|
+
return (n == null ? void 0 : n.length) === 0 ? e() : (n == null || n.forEach((m) => {
|
|
401
398
|
m.complete ? y++ : m.addEventListener("load", () => {
|
|
402
|
-
y++, y === (
|
|
399
|
+
y++, y === (n == null ? void 0 : n.length) && e();
|
|
403
400
|
});
|
|
404
|
-
}), y === (
|
|
401
|
+
}), y === (n == null ? void 0 : n.length) && e()), window.addEventListener("resize", e), () => {
|
|
405
402
|
window.removeEventListener("resize", e);
|
|
406
403
|
};
|
|
407
|
-
}, [
|
|
404
|
+
}, [f, a]), /* @__PURE__ */ o(
|
|
408
405
|
K,
|
|
409
406
|
{
|
|
410
|
-
ref:
|
|
411
|
-
limitTags:
|
|
407
|
+
ref: E,
|
|
408
|
+
limitTags: d,
|
|
412
409
|
limitTagsForMobile: k,
|
|
413
|
-
limitCards:
|
|
414
|
-
limitCardsForMobile:
|
|
415
|
-
className:
|
|
410
|
+
limitCards: x,
|
|
411
|
+
limitCardsForMobile: v,
|
|
412
|
+
className: f,
|
|
416
413
|
numberOfTags: i == null ? void 0 : i.length,
|
|
417
414
|
children: [
|
|
418
415
|
/* @__PURE__ */ o("div", { className: "wrapper__heading", children: [
|
|
@@ -420,47 +417,40 @@ const H = $.a`
|
|
|
420
417
|
l && /* @__PURE__ */ r("div", { className: "wrapper__subtitle", children: l })
|
|
421
418
|
] }),
|
|
422
419
|
/* @__PURE__ */ r(
|
|
423
|
-
|
|
420
|
+
V,
|
|
424
421
|
{
|
|
425
|
-
isLoading:
|
|
422
|
+
isLoading: C,
|
|
426
423
|
keyPrefix: "field-of-interests-masonry-tag",
|
|
427
|
-
children: /* @__PURE__ */ r("div", { className: "wrapper__tags__external", children: /* @__PURE__ */ r("div", { className: "wrapper__tags", children: i == null ? void 0 : i.map((e,
|
|
428
|
-
|
|
424
|
+
children: /* @__PURE__ */ r("div", { className: "wrapper__tags__external", children: /* @__PURE__ */ r("div", { className: "wrapper__tags", children: i == null ? void 0 : i.map((e, p) => /* @__PURE__ */ r(
|
|
425
|
+
B,
|
|
429
426
|
{
|
|
430
427
|
icon: e == null ? void 0 : e.icon,
|
|
431
428
|
text: e == null ? void 0 : e.title,
|
|
432
429
|
isActive: (e == null ? void 0 : e.code) === I,
|
|
433
430
|
onSelectCard: () => c == null ? void 0 : c(e)
|
|
434
431
|
},
|
|
435
|
-
`field-of-interests-masonry-tag__${
|
|
432
|
+
`field-of-interests-masonry-tag__${p + 1}`
|
|
436
433
|
)) }) })
|
|
437
434
|
}
|
|
438
435
|
),
|
|
439
|
-
/* @__PURE__ */ r(
|
|
440
|
-
|
|
436
|
+
/* @__PURE__ */ r("div", { className: "wrapper__cards", children: a == null ? void 0 : a.map((e, p) => /* @__PURE__ */ r(
|
|
437
|
+
J,
|
|
441
438
|
{
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
link: e == null ? void 0 : e.link,
|
|
454
|
-
LinkComponent: L
|
|
455
|
-
},
|
|
456
|
-
`field-of-interests-with-tags-card__${d + 1}`
|
|
457
|
-
)) })
|
|
458
|
-
}
|
|
459
|
-
)
|
|
439
|
+
image: e == null ? void 0 : e.image,
|
|
440
|
+
imageComponent: e == null ? void 0 : e.imageComponent,
|
|
441
|
+
title: e == null ? void 0 : e.title,
|
|
442
|
+
description: e == null ? void 0 : e.description,
|
|
443
|
+
onSelectCard: () => h == null ? void 0 : h(e),
|
|
444
|
+
className: "wrapper__card",
|
|
445
|
+
link: e == null ? void 0 : e.link,
|
|
446
|
+
LinkComponent: M
|
|
447
|
+
},
|
|
448
|
+
`field-of-interests-with-tags-card__${p + 1}`
|
|
449
|
+
)) })
|
|
460
450
|
]
|
|
461
451
|
}
|
|
462
452
|
))
|
|
463
453
|
);
|
|
464
454
|
export {
|
|
465
|
-
|
|
455
|
+
ne as default
|
|
466
456
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const i=require("react/jsx-runtime"),p=require("react"),y=require("./utils-
|
|
1
|
+
"use strict";const i=require("react/jsx-runtime"),p=require("react"),y=require("./utils-CITgSxXe.cjs"),C=require("./emotion-styled.browser.esm-BtEseadx.cjs"),d=require("./breakpoints-CcVm-gVm.cjs"),b=require("./index-of6WydGq.cjs"),l=require("./style-BAcV7F53.cjs"),F=C.styled.div`
|
|
2
2
|
width: 100%;
|
|
3
3
|
height: auto;
|
|
4
4
|
border-radius: 999px;
|
|
@@ -19,12 +19,12 @@
|
|
|
19
19
|
border: var(--yellow-600, #d97706);
|
|
20
20
|
}
|
|
21
21
|
|
|
22
|
-
@media
|
|
22
|
+
@media ${d.down("S")} {
|
|
23
23
|
& .wrapper__image {
|
|
24
24
|
height: auto;
|
|
25
25
|
}
|
|
26
26
|
}
|
|
27
|
-
`,
|
|
27
|
+
`,S=p.forwardRef(({isActive:t,image:r,imageComponent:s,onSelectCard:n=()=>{}},o)=>i.jsx(F,{ref:o,className:t?"active":"",onClick:n,children:y.isDefined(s)?s:i.jsx("img",{src:r,className:"wrapper__image"})})),k=p.forwardRef(({uuid:t,title:r,price:s,currency:n,isNegotiable:o,isFree:u,image:x,sellerUuid:m,onSelectCard:a=()=>{},imageComponent:h,negotiableText:_="Negotiable",freeText:f="Free",nameSlug:w,LinkComponent:c},g)=>i.jsx(b.SimpleProductCard,{ref:g,uuid:t,title:r,price:s,currency:n,isNegotiable:o,isFree:u,image:x,imageComponent:h,sellerUuid:m,onSelectCard:a,negotiableText:_,freeText:f,nameSlug:w,LinkComponent:c})),N=C.styled.div`
|
|
28
28
|
display: flex;
|
|
29
29
|
flex-direction: column;
|
|
30
30
|
align-items: center;
|
|
@@ -73,7 +73,13 @@
|
|
|
73
73
|
width: 100%;
|
|
74
74
|
}
|
|
75
75
|
|
|
76
|
-
@media
|
|
76
|
+
@media ${d.down("M")} {
|
|
77
|
+
& .wrapper__cards {
|
|
78
|
+
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
@media ${d.down("S")} {
|
|
77
83
|
& .wrapper__avatars {
|
|
78
84
|
grid-template-columns: ${t=>`repeat(${t==null?void 0:t.limitAvatarsForMobile}, minmax(0, 1fr))`};
|
|
79
85
|
gap: auto;
|
|
@@ -84,12 +90,12 @@
|
|
|
84
90
|
gap: 1rem;
|
|
85
91
|
}
|
|
86
92
|
}
|
|
87
|
-
`,v
|
|
93
|
+
`,v=C.styled(l.SkeletonRowWrapper)`
|
|
88
94
|
&.skeleton__tags {
|
|
89
95
|
max-width: 50rem;
|
|
90
96
|
}
|
|
91
97
|
|
|
92
|
-
@media
|
|
98
|
+
@media ${d.down("S")} {
|
|
93
99
|
&.skeleton__tags {
|
|
94
100
|
overflow-x: hidden;
|
|
95
101
|
|
|
@@ -108,4 +114,4 @@
|
|
|
108
114
|
}
|
|
109
115
|
}
|
|
110
116
|
}
|
|
111
|
-
`,
|
|
117
|
+
`,W=({keyPrefix:t})=>i.jsxs(v,{className:"skeleton__tags",justifyContent:"center",children:[i.jsx(l.SkeletonCirclePlaceholder,{width:"9.875rem",height:"9.875rem"},`${t}-1`),i.jsx(l.SkeletonCirclePlaceholder,{width:"9.875rem",height:"9.875rem"},`${t}-2`),i.jsx(l.SkeletonCirclePlaceholder,{width:"9.875rem",height:"9.875rem"},`${t}-3`),i.jsx(l.SkeletonCirclePlaceholder,{width:"9.875rem",height:"9.875rem"},`${t}-4`)]}),q=({keyPrefix:t,isLoading:r=!1,fallbackComponent:s=i.jsx(i.Fragment,{}),children:n})=>i.jsx(p.Suspense,{fallbackComponent:s,children:r===!0?i.jsx(W,{keyPrefix:t}):n}),I=({keyPrefix:t})=>i.jsxs(v,{className:"skeleton__cards",justifyContent:"center",children:[i.jsx(l.SkeletonLinePlaceholder,{height:"13.75rem"},`${t}-1`),i.jsx(l.SkeletonLinePlaceholder,{height:"13.75rem"},`${t}-2`),i.jsx(l.SkeletonLinePlaceholder,{height:"13.75rem"},`${t}-3`),i.jsx(l.SkeletonLinePlaceholder,{height:"13.75rem"},`${t}-3`)]}),O=({keyPrefix:t,isLoading:r=!1,fallbackComponent:s=i.jsx(i.Fragment,{}),children:n})=>i.jsx(p.Suspense,{fallbackComponent:s,children:r===!0?i.jsx(I,{keyPrefix:t}):n}),A=p.forwardRef(({title:t,subtitle:r,avatars:s=[],limitAvatars:n=4,limit:o=6,limitAvatarsForMobile:u=4,limitForMobile:x=2,items:m=[],onSelectAvatar:a=()=>{},onSelectCard:h=()=>{},isLoadingTags:_=!1,isLoadingCards:f=!1,LinkComponent:w},c)=>{const g=e=>{a==null||a(e)},j=e=>{h==null||h(e)};return i.jsxs(N,{ref:c,limitAvatars:n,limitAvatarsForMobile:u,limitCards:o,limitCardsForMobile:x,children:[i.jsxs("div",{className:"wrapper__heading",children:[t&&i.jsx("div",{className:"wrapper__title",children:t}),r&&i.jsx("div",{className:"wrapper__subtitle",children:r})]}),i.jsx(q,{isLoading:_,keyPrefix:"field-of-interests-with-avatars-tag",children:i.jsx("div",{className:"wrapper__avatars",children:s==null?void 0:s.map((e,$)=>i.jsx(S,{image:e==null?void 0:e.image,imageComponent:e==null?void 0:e.imageComponent,onSelectCard:()=>g==null?void 0:g(e)},`field-of-interests-with-avatars-card-avatar__${$+1}`))})}),i.jsx(O,{isLoading:f,keyPrefix:"field-of-interests-with-avatars-card",children:i.jsx("div",{className:"wrapper__cards",children:m==null?void 0:m.map((e,$)=>i.jsx(k,{uuid:e==null?void 0:e.uuid,title:e==null?void 0:e.title,price:e==null?void 0:e.price,currency:e==null?void 0:e.currency,isNegotiable:e==null?void 0:e.isNegotiable,isFree:e==null?void 0:e.isFree,image:e==null?void 0:e.image,imageComponent:e==null?void 0:e.imageComponent,sellerUuid:e==null?void 0:e.sellerUuid,negotiableText:e==null?void 0:e.negotiableText,freeText:e==null?void 0:e.freeText,onSelectCard:()=>j==null?void 0:j(e),nameSlug:e==null?void 0:e.nameSlug,LinkComponent:w},`field-of-interests-with-avatars-card__${$+1}`))})})]})});module.exports=A;
|