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