@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,10 +1,10 @@
|
|
|
1
|
-
"use strict";const t=require("react/jsx-runtime"),
|
|
1
|
+
"use strict";const t=require("react/jsx-runtime"),j=require("react"),n=require("./emotion-styled.browser.esm-BtEseadx.cjs"),o=require("./breakpoints-CcVm-gVm.cjs"),z=require("./Button.cjs"),M=require("./useDetectMobile-DYV6V1yw.cjs"),k=require("./utils-CITgSxXe.cjs"),q=n.styled.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
border-radius: 0.75rem;
|
|
4
4
|
background-color: ${e=>e.bgcolor||"transparent"};
|
|
5
5
|
overflow: hidden;
|
|
6
|
-
max-height: ${e
|
|
7
|
-
min-height: ${e
|
|
6
|
+
max-height: ${e=>e.height!=null?`${e.height}px`:"22.5rem"};
|
|
7
|
+
min-height: ${e=>e.height!=null?`${e.height}px`:"22.5rem"};
|
|
8
8
|
background-color: ${e=>e.bgcolor||"transparent"};
|
|
9
9
|
position: relative;
|
|
10
10
|
|
|
@@ -14,10 +14,10 @@
|
|
|
14
14
|
|
|
15
15
|
& img {
|
|
16
16
|
object-fit: cover;
|
|
17
|
-
max-width: ${e
|
|
18
|
-
min-width: ${e
|
|
19
|
-
max-height: ${e
|
|
20
|
-
min-height: ${e
|
|
17
|
+
max-width: ${e=>e.imgW!=null?`${e.imgW}px`:"22.5rem"};
|
|
18
|
+
min-width: ${e=>e.imgW!=null?`${e.imgW}px`:"22.5rem"};
|
|
19
|
+
max-height: ${e=>e.height!=null?`${e.height}px`:"22.5rem"};
|
|
20
|
+
min-height: ${e=>e.height!=null?`${e.height}px`:"22.5rem"};
|
|
21
21
|
}
|
|
22
22
|
|
|
23
23
|
& .header-image {
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
|
|
34
34
|
`}
|
|
35
35
|
|
|
36
|
-
@media
|
|
36
|
+
@media ${o.down("S")} {
|
|
37
37
|
gap: 1.5rem;
|
|
38
38
|
flex-direction: column;
|
|
39
39
|
min-height: unset;
|
|
@@ -48,8 +48,8 @@
|
|
|
48
48
|
& img {
|
|
49
49
|
max-width: 100%;
|
|
50
50
|
min-width: 100%;
|
|
51
|
-
max-height: ${e
|
|
52
|
-
min-height: ${e
|
|
51
|
+
max-height: ${e=>e.imgHMob!=null?`${e.imgHMob}px`:"12.1rem"};
|
|
52
|
+
min-height: ${e=>e.imgHMob!=null?`${e.imgHMob}px`:"12.1rem"};
|
|
53
53
|
}
|
|
54
54
|
|
|
55
55
|
& .header-image {
|
|
@@ -59,7 +59,7 @@
|
|
|
59
59
|
left: 0;
|
|
60
60
|
}
|
|
61
61
|
}
|
|
62
|
-
`,
|
|
62
|
+
`,C=n.styled.div`
|
|
63
63
|
padding: ${e=>e.smallPadding===!0?"2rem":"4rem 5rem"};
|
|
64
64
|
display: flex;
|
|
65
65
|
gap: 2rem;
|
|
@@ -84,13 +84,13 @@
|
|
|
84
84
|
}
|
|
85
85
|
}
|
|
86
86
|
|
|
87
|
-
@media
|
|
87
|
+
@media ${o.down("S")} {
|
|
88
88
|
padding: 0;
|
|
89
89
|
flex-direction: column;
|
|
90
90
|
|
|
91
91
|
${e=>e!=null&&e.hasHeaderImage?"padding: 3.5rem 3.5rem 0 3.5rem;":""}
|
|
92
92
|
}
|
|
93
|
-
`,
|
|
93
|
+
`,W=n.styled.div`
|
|
94
94
|
display: flex;
|
|
95
95
|
flex-direction: column;
|
|
96
96
|
gap: 0.25rem;
|
|
@@ -113,7 +113,7 @@
|
|
|
113
113
|
letter-spacing: -0.0112rem;
|
|
114
114
|
}
|
|
115
115
|
|
|
116
|
-
@media
|
|
116
|
+
@media ${o.down("S")} {
|
|
117
117
|
flex-direction: column;
|
|
118
118
|
|
|
119
119
|
& .header-title {
|
|
@@ -129,4 +129,4 @@
|
|
|
129
129
|
letter-spacing: -0.0112rem;
|
|
130
130
|
}
|
|
131
131
|
}
|
|
132
|
-
`,
|
|
132
|
+
`,N=j.forwardRef((e,g)=>{const{title:d,subtitle:c,buttonText:u,buttonLink:x,onButtonAction:b=()=>{},imageUrl:a,imagePosition:l="right",hideImageForMobile:m=!1,sectionHeight:f="12.65625rem",imageWidth:p,imageHeightMobile:$,smallPadding:w=!1,isHorizontalContent:y=!1,backgroundColor:v,hasBorder:H=!1,headerImageUrl:i}=e,s=M.useDetectMobile();return t.jsxs(q,{ref:g,bgcolor:v,height:f,imgW:p,imgHMob:$,hasBorder:H,children:[i&&t.jsx("img",{src:i,className:"header-image",alt:"Header image"}),l!=="right"&&!(m===!0&&s===!0)&&t.jsx("img",{src:a,className:"banner-image"}),t.jsxs(C,{isHorizontalContent:y,smallPadding:w,hasHeaderImage:k.isDefined(i),children:[t.jsxs(W,{children:[t.jsx("div",{className:"header-title",children:d}),t.jsx("div",{className:"header-subitle",children:c})]}),t.jsx(z,{size:"medium",color:"neutral",type:"button",className:"header-button",onClick:r=>{var h;(h=r==null?void 0:r.target)==null||h.blur(),b(x)},children:u})]}),l==="right"&&!(m===!0&&s===!0)&&t.jsx("img",{src:a,className:"banner-image"})]})});module.exports=N;
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { jsxs as
|
|
1
|
+
import { jsxs as o, jsx as t } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef as M } from "react";
|
|
3
|
-
import { s as
|
|
4
|
-
import {
|
|
3
|
+
import { s as a } from "./emotion-styled.browser.esm-BNN1dTl3.js";
|
|
4
|
+
import { d as n } from "./breakpoints-ff0SIcV3.js";
|
|
5
5
|
import k from "./Button.js";
|
|
6
|
-
import { u as C } from "./useDetectMobile-
|
|
7
|
-
import {
|
|
8
|
-
const
|
|
6
|
+
import { u as C } from "./useDetectMobile-CcVo3PNi.js";
|
|
7
|
+
import { m as W } from "./utils-B2fsQ6PS.js";
|
|
8
|
+
const N = a.div`
|
|
9
9
|
display: flex;
|
|
10
10
|
border-radius: 0.75rem;
|
|
11
11
|
background-color: ${(e) => e.bgcolor || "transparent"};
|
|
12
12
|
overflow: hidden;
|
|
13
|
-
max-height: ${(e) => `${e.height}px`
|
|
14
|
-
min-height: ${(e) => `${e.height}px`
|
|
13
|
+
max-height: ${(e) => e.height != null ? `${e.height}px` : "22.5rem"};
|
|
14
|
+
min-height: ${(e) => e.height != null ? `${e.height}px` : "22.5rem"};
|
|
15
15
|
background-color: ${(e) => e.bgcolor || "transparent"};
|
|
16
16
|
position: relative;
|
|
17
17
|
|
|
@@ -21,10 +21,10 @@ const I = o.div`
|
|
|
21
21
|
|
|
22
22
|
& img {
|
|
23
23
|
object-fit: cover;
|
|
24
|
-
max-width: ${(e) => `${e.imgW}px`
|
|
25
|
-
min-width: ${(e) => `${e.imgW}px`
|
|
26
|
-
max-height: ${(e) => `${e.height}px`
|
|
27
|
-
min-height: ${(e) => `${e.height}px`
|
|
24
|
+
max-width: ${(e) => e.imgW != null ? `${e.imgW}px` : "22.5rem"};
|
|
25
|
+
min-width: ${(e) => e.imgW != null ? `${e.imgW}px` : "22.5rem"};
|
|
26
|
+
max-height: ${(e) => e.height != null ? `${e.height}px` : "22.5rem"};
|
|
27
|
+
min-height: ${(e) => e.height != null ? `${e.height}px` : "22.5rem"};
|
|
28
28
|
}
|
|
29
29
|
|
|
30
30
|
& .header-image {
|
|
@@ -40,7 +40,7 @@ const I = o.div`
|
|
|
40
40
|
|
|
41
41
|
`}
|
|
42
42
|
|
|
43
|
-
@media
|
|
43
|
+
@media ${n("S")} {
|
|
44
44
|
gap: 1.5rem;
|
|
45
45
|
flex-direction: column;
|
|
46
46
|
min-height: unset;
|
|
@@ -55,8 +55,8 @@ const I = o.div`
|
|
|
55
55
|
& img {
|
|
56
56
|
max-width: 100%;
|
|
57
57
|
min-width: 100%;
|
|
58
|
-
max-height: ${(e) => `${e.imgHMob}px`
|
|
59
|
-
min-height: ${(e) => `${e.imgHMob}px`
|
|
58
|
+
max-height: ${(e) => e.imgHMob != null ? `${e.imgHMob}px` : "12.1rem"};
|
|
59
|
+
min-height: ${(e) => e.imgHMob != null ? `${e.imgHMob}px` : "12.1rem"};
|
|
60
60
|
}
|
|
61
61
|
|
|
62
62
|
& .header-image {
|
|
@@ -66,7 +66,7 @@ const I = o.div`
|
|
|
66
66
|
left: 0;
|
|
67
67
|
}
|
|
68
68
|
}
|
|
69
|
-
`,
|
|
69
|
+
`, B = a.div`
|
|
70
70
|
padding: ${(e) => e.smallPadding === !0 ? "2rem" : "4rem 5rem"};
|
|
71
71
|
display: flex;
|
|
72
72
|
gap: 2rem;
|
|
@@ -91,13 +91,13 @@ const I = o.div`
|
|
|
91
91
|
}
|
|
92
92
|
}
|
|
93
93
|
|
|
94
|
-
@media
|
|
94
|
+
@media ${n("S")} {
|
|
95
95
|
padding: 0;
|
|
96
96
|
flex-direction: column;
|
|
97
97
|
|
|
98
98
|
${(e) => e != null && e.hasHeaderImage ? "padding: 3.5rem 3.5rem 0 3.5rem;" : ""}
|
|
99
99
|
}
|
|
100
|
-
`,
|
|
100
|
+
`, S = a.div`
|
|
101
101
|
display: flex;
|
|
102
102
|
flex-direction: column;
|
|
103
103
|
gap: 0.25rem;
|
|
@@ -120,7 +120,7 @@ const I = o.div`
|
|
|
120
120
|
letter-spacing: -0.0112rem;
|
|
121
121
|
}
|
|
122
122
|
|
|
123
|
-
@media
|
|
123
|
+
@media ${n("S")} {
|
|
124
124
|
flex-direction: column;
|
|
125
125
|
|
|
126
126
|
& .header-title {
|
|
@@ -136,18 +136,18 @@ const I = o.div`
|
|
|
136
136
|
letter-spacing: -0.0112rem;
|
|
137
137
|
}
|
|
138
138
|
}
|
|
139
|
-
`,
|
|
139
|
+
`, L = M((e, s) => {
|
|
140
140
|
const {
|
|
141
141
|
title: c,
|
|
142
|
-
subtitle:
|
|
143
|
-
buttonText:
|
|
144
|
-
buttonLink:
|
|
145
|
-
onButtonAction:
|
|
142
|
+
subtitle: u,
|
|
143
|
+
buttonText: f,
|
|
144
|
+
buttonLink: b,
|
|
145
|
+
onButtonAction: x = () => {
|
|
146
146
|
},
|
|
147
147
|
imageUrl: m,
|
|
148
148
|
imagePosition: l = "right",
|
|
149
149
|
hideImageForMobile: h = !1,
|
|
150
|
-
sectionHeight:
|
|
150
|
+
sectionHeight: p = "12.65625rem",
|
|
151
151
|
imageWidth: $,
|
|
152
152
|
imageHeightMobile: w,
|
|
153
153
|
smallPadding: v = !1,
|
|
@@ -155,29 +155,29 @@ const I = o.div`
|
|
|
155
155
|
backgroundColor: H,
|
|
156
156
|
hasBorder: z = !1,
|
|
157
157
|
headerImageUrl: i
|
|
158
|
-
} = e,
|
|
159
|
-
return /* @__PURE__ */
|
|
160
|
-
|
|
158
|
+
} = e, g = C();
|
|
159
|
+
return /* @__PURE__ */ o(
|
|
160
|
+
N,
|
|
161
161
|
{
|
|
162
162
|
ref: s,
|
|
163
163
|
bgcolor: H,
|
|
164
|
-
height:
|
|
164
|
+
height: p,
|
|
165
165
|
imgW: $,
|
|
166
166
|
imgHMob: w,
|
|
167
167
|
hasBorder: z,
|
|
168
168
|
children: [
|
|
169
169
|
i && /* @__PURE__ */ t("img", { src: i, className: "header-image", alt: "Header image" }),
|
|
170
|
-
l !== "right" && !(h === !0 &&
|
|
171
|
-
/* @__PURE__ */
|
|
172
|
-
|
|
170
|
+
l !== "right" && !(h === !0 && g === !0) && /* @__PURE__ */ t("img", { src: m, className: "banner-image" }),
|
|
171
|
+
/* @__PURE__ */ o(
|
|
172
|
+
B,
|
|
173
173
|
{
|
|
174
174
|
isHorizontalContent: y,
|
|
175
175
|
smallPadding: v,
|
|
176
|
-
hasHeaderImage:
|
|
176
|
+
hasHeaderImage: W(i),
|
|
177
177
|
children: [
|
|
178
|
-
/* @__PURE__ */
|
|
178
|
+
/* @__PURE__ */ o(S, { children: [
|
|
179
179
|
/* @__PURE__ */ t("div", { className: "header-title", children: c }),
|
|
180
|
-
/* @__PURE__ */ t("div", { className: "header-subitle", children:
|
|
180
|
+
/* @__PURE__ */ t("div", { className: "header-subitle", children: u })
|
|
181
181
|
] }),
|
|
182
182
|
/* @__PURE__ */ t(
|
|
183
183
|
k,
|
|
@@ -187,20 +187,20 @@ const I = o.div`
|
|
|
187
187
|
type: "button",
|
|
188
188
|
className: "header-button",
|
|
189
189
|
onClick: (r) => {
|
|
190
|
-
var
|
|
191
|
-
(
|
|
190
|
+
var d;
|
|
191
|
+
(d = r == null ? void 0 : r.target) == null || d.blur(), x(b);
|
|
192
192
|
},
|
|
193
|
-
children:
|
|
193
|
+
children: f
|
|
194
194
|
}
|
|
195
195
|
)
|
|
196
196
|
]
|
|
197
197
|
}
|
|
198
198
|
),
|
|
199
|
-
l === "right" && !(h === !0 &&
|
|
199
|
+
l === "right" && !(h === !0 && g === !0) && /* @__PURE__ */ t("img", { src: m, className: "banner-image" })
|
|
200
200
|
]
|
|
201
201
|
}
|
|
202
202
|
);
|
|
203
203
|
});
|
|
204
204
|
export {
|
|
205
|
-
|
|
205
|
+
L as default
|
|
206
206
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const e=require("react/jsx-runtime"),c=require("react"),
|
|
1
|
+
"use strict";const e=require("react/jsx-runtime"),c=require("react"),l=require("./emotion-styled.browser.esm-BtEseadx.cjs"),a=require("./breakpoints-CcVm-gVm.cjs"),u=require("./Button.cjs"),i=require("./utils-CITgSxXe.cjs"),x=l.styled.div`
|
|
2
2
|
padding-bottom: 1.38rem;
|
|
3
3
|
text-align: center;
|
|
4
4
|
display: flex;
|
|
@@ -22,10 +22,10 @@
|
|
|
22
22
|
}
|
|
23
23
|
}
|
|
24
24
|
|
|
25
|
-
@media
|
|
25
|
+
@media ${a.down("S")} {
|
|
26
26
|
padding-bottom: 0;
|
|
27
27
|
}
|
|
28
|
-
`,
|
|
28
|
+
`,y=l.styled.div`
|
|
29
29
|
text-align: center;
|
|
30
30
|
display: flex;
|
|
31
31
|
justify-content: center;
|
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
line-height: 1.5rem;
|
|
51
51
|
}
|
|
52
52
|
|
|
53
|
-
@media
|
|
53
|
+
@media ${a.down("S")} {
|
|
54
54
|
& .header-title {
|
|
55
55
|
font-size: 1.375rem;
|
|
56
56
|
line-height: 1.75rem;
|
|
@@ -62,7 +62,7 @@
|
|
|
62
62
|
line-height: 1.25rem;
|
|
63
63
|
}
|
|
64
64
|
}
|
|
65
|
-
`,
|
|
65
|
+
`,p=l.styled.div`
|
|
66
66
|
text-align: center;
|
|
67
67
|
display: flex;
|
|
68
68
|
flex-direction: column;
|
|
@@ -88,7 +88,7 @@
|
|
|
88
88
|
}
|
|
89
89
|
}
|
|
90
90
|
|
|
91
|
-
@media
|
|
91
|
+
@media ${a.down("S")} {
|
|
92
92
|
& .list-item {
|
|
93
93
|
flex-direction: column;
|
|
94
94
|
text-align: center;
|
|
@@ -96,4 +96,4 @@
|
|
|
96
96
|
gap: 0;
|
|
97
97
|
}
|
|
98
98
|
}
|
|
99
|
-
`,b=c.forwardRef((m,d)=>{const{title:r,subtitle:
|
|
99
|
+
`,b=c.forwardRef((m,d)=>{const{title:r,subtitle:o,buttonText:g,list:s,buttonLink:f,onButtonAction:h=()=>{}}=m;return e.jsxs(x,{ref:d,children:[(i.isDefined(r)||i.isDefined(o))&&e.jsxs(y,{children:[i.isDefined(r)&&e.jsx("div",{className:"header-title",children:r}),i.isDefined(o)&&e.jsx("div",{className:"header-subitle",children:o})]}),e.jsx(p,{children:s==null?void 0:s.map((t,n)=>e.jsx(c.Fragment,{children:e.jsxs("div",{className:"list-item",children:[e.jsx("i",{className:"mng mng-lnc-checkmark--filled"}),e.jsx("span",{children:t})]})},n))}),e.jsx(u,{size:"medium",color:"neutral",type:"button",className:"header-button",onClick:t=>{var n;(n=t==null?void 0:t.target)==null||n.blur(),h(f)},children:g})]})});module.exports=b;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { jsxs as l, jsx as e } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef as p, Fragment as u } from "react";
|
|
3
3
|
import { s as m } from "./emotion-styled.browser.esm-BNN1dTl3.js";
|
|
4
|
-
import {
|
|
5
|
-
import
|
|
6
|
-
import {
|
|
7
|
-
const
|
|
4
|
+
import { d as s } from "./breakpoints-ff0SIcV3.js";
|
|
5
|
+
import y from "./Button.js";
|
|
6
|
+
import { m as i } from "./utils-B2fsQ6PS.js";
|
|
7
|
+
const x = m.div`
|
|
8
8
|
padding-bottom: 1.38rem;
|
|
9
9
|
text-align: center;
|
|
10
10
|
display: flex;
|
|
@@ -28,7 +28,7 @@ const y = m.div`
|
|
|
28
28
|
}
|
|
29
29
|
}
|
|
30
30
|
|
|
31
|
-
@media
|
|
31
|
+
@media ${s("S")} {
|
|
32
32
|
padding-bottom: 0;
|
|
33
33
|
}
|
|
34
34
|
`, b = m.div`
|
|
@@ -56,7 +56,7 @@ const y = m.div`
|
|
|
56
56
|
line-height: 1.5rem;
|
|
57
57
|
}
|
|
58
58
|
|
|
59
|
-
@media
|
|
59
|
+
@media ${s("S")} {
|
|
60
60
|
& .header-title {
|
|
61
61
|
font-size: 1.375rem;
|
|
62
62
|
line-height: 1.75rem;
|
|
@@ -94,7 +94,7 @@ const y = m.div`
|
|
|
94
94
|
}
|
|
95
95
|
}
|
|
96
96
|
|
|
97
|
-
@media
|
|
97
|
+
@media ${s("S")} {
|
|
98
98
|
& .list-item {
|
|
99
99
|
flex-direction: column;
|
|
100
100
|
text-align: center;
|
|
@@ -102,35 +102,35 @@ const y = m.div`
|
|
|
102
102
|
gap: 0;
|
|
103
103
|
}
|
|
104
104
|
}
|
|
105
|
-
`,
|
|
105
|
+
`, B = p((c, d) => {
|
|
106
106
|
const {
|
|
107
107
|
title: r,
|
|
108
108
|
subtitle: o,
|
|
109
109
|
buttonText: f,
|
|
110
110
|
list: a,
|
|
111
|
-
buttonLink:
|
|
112
|
-
onButtonAction:
|
|
111
|
+
buttonLink: g,
|
|
112
|
+
onButtonAction: h = () => {
|
|
113
113
|
}
|
|
114
114
|
} = c;
|
|
115
|
-
return /* @__PURE__ */ l(
|
|
116
|
-
(
|
|
117
|
-
|
|
118
|
-
|
|
115
|
+
return /* @__PURE__ */ l(x, { ref: d, children: [
|
|
116
|
+
(i(r) || i(o)) && /* @__PURE__ */ l(b, { children: [
|
|
117
|
+
i(r) && /* @__PURE__ */ e("div", { className: "header-title", children: r }),
|
|
118
|
+
i(o) && /* @__PURE__ */ e("div", { className: "header-subitle", children: o })
|
|
119
119
|
] }),
|
|
120
|
-
/* @__PURE__ */ e(v, { children: a == null ? void 0 : a.map((t,
|
|
120
|
+
/* @__PURE__ */ e(v, { children: a == null ? void 0 : a.map((t, n) => /* @__PURE__ */ e(u, { children: /* @__PURE__ */ l("div", { className: "list-item", children: [
|
|
121
121
|
/* @__PURE__ */ e("i", { className: "mng mng-lnc-checkmark--filled" }),
|
|
122
122
|
/* @__PURE__ */ e("span", { children: t })
|
|
123
|
-
] }) },
|
|
123
|
+
] }) }, n)) }),
|
|
124
124
|
/* @__PURE__ */ e(
|
|
125
|
-
|
|
125
|
+
y,
|
|
126
126
|
{
|
|
127
127
|
size: "medium",
|
|
128
128
|
color: "neutral",
|
|
129
129
|
type: "button",
|
|
130
130
|
className: "header-button",
|
|
131
131
|
onClick: (t) => {
|
|
132
|
-
var
|
|
133
|
-
(
|
|
132
|
+
var n;
|
|
133
|
+
(n = t == null ? void 0 : t.target) == null || n.blur(), h(g);
|
|
134
134
|
},
|
|
135
135
|
children: f
|
|
136
136
|
}
|
|
@@ -138,5 +138,5 @@ const y = m.div`
|
|
|
138
138
|
] });
|
|
139
139
|
});
|
|
140
140
|
export {
|
|
141
|
-
|
|
141
|
+
B as default
|
|
142
142
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const i=require("react/jsx-runtime"),s=require("react"),n=require("./emotion-styled.browser.esm-BtEseadx.cjs"),
|
|
1
|
+
"use strict";const i=require("react/jsx-runtime"),s=require("react"),n=require("./emotion-styled.browser.esm-BtEseadx.cjs"),a=require("./breakpoints-CcVm-gVm.cjs"),w=require("./Button.cjs"),j=n.styled.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
border-radius: 0.75rem;
|
|
4
4
|
background-color: ${e=>(e==null?void 0:e.bgColor)||"transparent"};
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
|
|
22
22
|
`}
|
|
23
23
|
|
|
24
|
-
@media
|
|
24
|
+
@media ${a.down("S")} {
|
|
25
25
|
flex-direction: column;
|
|
26
26
|
border-radius: 0;
|
|
27
27
|
border: none;
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
flex: 1;
|
|
43
43
|
flex-direction: column;
|
|
44
44
|
|
|
45
|
-
@media
|
|
45
|
+
@media ${a.down("S")} {
|
|
46
46
|
padding: 0 0 1.25rem 0;
|
|
47
47
|
}
|
|
48
48
|
`,$=n.styled.div`
|
|
@@ -68,10 +68,10 @@
|
|
|
68
68
|
letter-spacing: -0.0112rem;
|
|
69
69
|
}
|
|
70
70
|
|
|
71
|
-
@media
|
|
71
|
+
@media ${a.down("S")} {
|
|
72
72
|
flex-direction: column;
|
|
73
73
|
}
|
|
74
|
-
`,
|
|
74
|
+
`,H=n.styled.div`
|
|
75
75
|
display: flex;
|
|
76
76
|
flex-direction: column;
|
|
77
77
|
gap: 0.75rem;
|
|
@@ -93,7 +93,4 @@
|
|
|
93
93
|
color: var(--info-600, #6d28d9);
|
|
94
94
|
}
|
|
95
95
|
}
|
|
96
|
-
|
|
97
|
-
@media (max-width: ${o.MOBILE_SIZE_PX+"px"}) {
|
|
98
|
-
}
|
|
99
|
-
`,B=s.forwardRef((e,m)=>{const{title:l,subtitle:d,buttonText:c,list:a,imageUrl:g,imageHeight:h,imageWidth:x,imageHeightMobile:p,hasBorder:u=!0,backgroundColor:f="transparent",onButtonAction:b=()=>{},buttonLink:y}=e;return i.jsxs(j,{ref:m,imgH:h,imgW:x,imgHMob:p,hasBorder:u,bgColor:f,children:[i.jsxs(v,{children:[i.jsxs($,{children:[i.jsx("div",{className:"header-title",children:l}),i.jsx("div",{className:"header-subitle",children:d})]}),i.jsx(_,{children:a==null?void 0:a.map((t,r)=>i.jsx(s.Fragment,{children:i.jsxs("div",{className:"list-item",children:[i.jsx("i",{className:"mng mng-lnc-checkmark--filled"}),i.jsx("span",{children:t})]})},r))}),i.jsx(w,{size:"medium",color:"neutral",type:"button",btnType:"outline",onClick:t=>{var r;(r=t==null?void 0:t.target)==null||r.blur(),b(y)},children:c})]}),i.jsx("img",{src:g})]})});module.exports=B;
|
|
96
|
+
`,k=s.forwardRef((e,l)=>{const{title:m,subtitle:d,buttonText:c,list:o,imageUrl:g,imageHeight:h,imageWidth:x,imageHeightMobile:u,hasBorder:p=!0,backgroundColor:f="transparent",onButtonAction:b=()=>{},buttonLink:y}=e;return i.jsxs(j,{ref:l,imgH:h,imgW:x,imgHMob:u,hasBorder:p,bgColor:f,children:[i.jsxs(v,{children:[i.jsxs($,{children:[i.jsx("div",{className:"header-title",children:m}),i.jsx("div",{className:"header-subitle",children:d})]}),i.jsx(H,{children:o==null?void 0:o.map((r,t)=>i.jsx(s.Fragment,{children:i.jsxs("div",{className:"list-item",children:[i.jsx("i",{className:"mng mng-lnc-checkmark--filled"}),i.jsx("span",{children:r})]})},t))}),i.jsx(w,{size:"medium",color:"neutral",type:"button",btnType:"outline",onClick:r=>{var t;(t=r==null?void 0:r.target)==null||t.blur(),b(y)},children:c})]}),i.jsx("img",{src:g})]})});module.exports=k;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsxs as o, jsx as i } from "react/jsx-runtime";
|
|
2
|
-
import { forwardRef as
|
|
2
|
+
import { forwardRef as w, Fragment as v } from "react";
|
|
3
3
|
import { s as n } from "./emotion-styled.browser.esm-BNN1dTl3.js";
|
|
4
|
-
import {
|
|
4
|
+
import { d as m } from "./breakpoints-ff0SIcV3.js";
|
|
5
5
|
import $ from "./Button.js";
|
|
6
6
|
const H = n.div`
|
|
7
7
|
display: flex;
|
|
@@ -26,7 +26,7 @@ const H = n.div`
|
|
|
26
26
|
|
|
27
27
|
`}
|
|
28
28
|
|
|
29
|
-
@media
|
|
29
|
+
@media ${m("S")} {
|
|
30
30
|
flex-direction: column;
|
|
31
31
|
border-radius: 0;
|
|
32
32
|
border: none;
|
|
@@ -47,7 +47,7 @@ const H = n.div`
|
|
|
47
47
|
flex: 1;
|
|
48
48
|
flex-direction: column;
|
|
49
49
|
|
|
50
|
-
@media
|
|
50
|
+
@media ${m("S")} {
|
|
51
51
|
padding: 0 0 1.25rem 0;
|
|
52
52
|
}
|
|
53
53
|
`, k = n.div`
|
|
@@ -73,7 +73,7 @@ const H = n.div`
|
|
|
73
73
|
letter-spacing: -0.0112rem;
|
|
74
74
|
}
|
|
75
75
|
|
|
76
|
-
@media
|
|
76
|
+
@media ${m("S")} {
|
|
77
77
|
flex-direction: column;
|
|
78
78
|
}
|
|
79
79
|
`, z = n.div`
|
|
@@ -98,33 +98,30 @@ const H = n.div`
|
|
|
98
98
|
color: var(--info-600, #6d28d9);
|
|
99
99
|
}
|
|
100
100
|
}
|
|
101
|
-
|
|
102
|
-
@media (max-width: ${a + "px"}) {
|
|
103
|
-
}
|
|
104
|
-
`, N = y((e, l) => {
|
|
101
|
+
`, S = w((e, l) => {
|
|
105
102
|
const {
|
|
106
103
|
title: d,
|
|
107
104
|
subtitle: s,
|
|
108
105
|
buttonText: g,
|
|
109
|
-
list:
|
|
106
|
+
list: a,
|
|
110
107
|
imageUrl: c,
|
|
111
108
|
imageHeight: h,
|
|
112
|
-
imageWidth:
|
|
113
|
-
imageHeightMobile:
|
|
114
|
-
hasBorder:
|
|
109
|
+
imageWidth: f,
|
|
110
|
+
imageHeightMobile: p,
|
|
111
|
+
hasBorder: x = !0,
|
|
115
112
|
backgroundColor: b = "transparent",
|
|
116
113
|
onButtonAction: u = () => {
|
|
117
114
|
},
|
|
118
|
-
buttonLink:
|
|
115
|
+
buttonLink: y
|
|
119
116
|
} = e;
|
|
120
117
|
return /* @__PURE__ */ o(
|
|
121
118
|
H,
|
|
122
119
|
{
|
|
123
120
|
ref: l,
|
|
124
121
|
imgH: h,
|
|
125
|
-
imgW:
|
|
126
|
-
imgHMob:
|
|
127
|
-
hasBorder:
|
|
122
|
+
imgW: f,
|
|
123
|
+
imgHMob: p,
|
|
124
|
+
hasBorder: x,
|
|
128
125
|
bgColor: b,
|
|
129
126
|
children: [
|
|
130
127
|
/* @__PURE__ */ o(W, { children: [
|
|
@@ -132,7 +129,7 @@ const H = n.div`
|
|
|
132
129
|
/* @__PURE__ */ i("div", { className: "header-title", children: d }),
|
|
133
130
|
/* @__PURE__ */ i("div", { className: "header-subitle", children: s })
|
|
134
131
|
] }),
|
|
135
|
-
/* @__PURE__ */ i(z, { children:
|
|
132
|
+
/* @__PURE__ */ i(z, { children: a == null ? void 0 : a.map((r, t) => /* @__PURE__ */ i(v, { children: /* @__PURE__ */ o("div", { className: "list-item", children: [
|
|
136
133
|
/* @__PURE__ */ i("i", { className: "mng mng-lnc-checkmark--filled" }),
|
|
137
134
|
/* @__PURE__ */ i("span", { children: r })
|
|
138
135
|
] }) }, t)) }),
|
|
@@ -145,7 +142,7 @@ const H = n.div`
|
|
|
145
142
|
btnType: "outline",
|
|
146
143
|
onClick: (r) => {
|
|
147
144
|
var t;
|
|
148
|
-
(t = r == null ? void 0 : r.target) == null || t.blur(), u(
|
|
145
|
+
(t = r == null ? void 0 : r.target) == null || t.blur(), u(y);
|
|
149
146
|
},
|
|
150
147
|
children: g
|
|
151
148
|
}
|
|
@@ -157,5 +154,5 @@ const H = n.div`
|
|
|
157
154
|
);
|
|
158
155
|
});
|
|
159
156
|
export {
|
|
160
|
-
|
|
157
|
+
S as default
|
|
161
158
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const r=require("react/jsx-runtime"),d=require("react"),s=require("./utils-
|
|
1
|
+
"use strict";const r=require("react/jsx-runtime"),d=require("react"),s=require("./utils-CITgSxXe.cjs"),y=require("./Icon.cjs"),R=require("./style-DC05rdyx.cjs"),$=require("./index-DsINTjQk.cjs"),N=require("./emotion-styled.browser.esm-BtEseadx.cjs"),v=require("./breakpoints-CcVm-gVm.cjs"),z=require("./Button.cjs"),q=require("./index-uCWKRzoS.cjs"),k=N.styled.a`
|
|
2
2
|
text-decoration: none;
|
|
3
3
|
color: var(--gray-950);
|
|
4
4
|
display: flex;
|
|
@@ -97,7 +97,7 @@
|
|
|
97
97
|
}
|
|
98
98
|
}
|
|
99
99
|
|
|
100
|
-
@media
|
|
100
|
+
@media ${v.down("S")} {
|
|
101
101
|
flex-direction: column;
|
|
102
102
|
padding: 0;
|
|
103
103
|
|
|
@@ -123,7 +123,7 @@
|
|
|
123
123
|
}
|
|
124
124
|
}
|
|
125
125
|
}
|
|
126
|
-
`,
|
|
126
|
+
`,x=d.forwardRef(({title:t,imageUrl:p,options:n,publishedAt:m,timeToReadText:g="{0} min read",timeToRead:h=0,numberOfLikes:o=0,numberOfComments:c=0,isSponsored:l=!1,onSelectCard:f=()=>{},metadata:a,titleSlug:_,LinkComponent:u},j)=>{const w=u||"a",i=d.useRef();return r.jsxs(k,{ref:i,isSponsored:l,"data-accessor":a==null?void 0:a.accessor,name:a==null?void 0:a.name,onClick:e=>f(e,i),as:w,...u?{to:`/blog/${_}`}:{href:`/blog/${_}`},children:[l&&r.jsx("div",{className:"wrapper__sponsored",children:r.jsx(y,{icon:" mng-lnc-paw",sizeInUnits:"1.5rem"})}),r.jsx($.ProductImageWrapper,{src:p,className:"wrapper__image"}),r.jsxs("div",{className:"wrapper__content",children:[r.jsxs("div",{className:"wrapper__subcontent",children:[r.jsx("div",{className:"wrapper__title",children:t}),r.jsx("div",{className:"wrapper__tags",children:n&&(n==null?void 0:n.map((e,b)=>r.jsx(R.BlogTag,{color:e==null?void 0:e.color,children:e==null?void 0:e.name},b)))})]}),r.jsxs("div",{className:"wrapper__info",children:[r.jsx("div",{className:"info__text",children:`${s.formatLocaleDateString(m)} • ${s.formatString(g,h)}`}),r.jsxs("div",{className:"info__text",children:[r.jsxs("div",{children:[r.jsx(y,{icon:" mng-lnc-thumbs-up--filled",sizeInUnits:"1rem"}),s.getRoundedNumber(o)]}),r.jsxs("div",{children:[r.jsx(y,{icon:" mng-lnc-messages-filled",sizeInUnits:"1rem"}),s.getRoundedNumber(c)]})]})]})]})]})}),I=N.styled.div`
|
|
127
127
|
display: flex;
|
|
128
128
|
flex-direction: column;
|
|
129
129
|
align-items: flex-start;
|
|
@@ -193,7 +193,7 @@
|
|
|
193
193
|
width: 100%;
|
|
194
194
|
}
|
|
195
195
|
|
|
196
|
-
@media
|
|
196
|
+
@media ${v.down("S")} {
|
|
197
197
|
gap: 1.25rem;
|
|
198
198
|
|
|
199
199
|
& .wrapper__title {
|
|
@@ -201,10 +201,12 @@
|
|
|
201
201
|
font-size: 1.375rem;
|
|
202
202
|
}
|
|
203
203
|
}
|
|
204
|
+
}
|
|
204
205
|
|
|
206
|
+
@media ${v.down("XS")} {
|
|
205
207
|
& .wrapper__cards {
|
|
206
208
|
grid-template-columns: repeat(1, minmax(0, 1fr));
|
|
207
209
|
gap: 1.5rem;
|
|
208
210
|
}
|
|
209
211
|
}
|
|
210
|
-
`,
|
|
212
|
+
`,C=d.memo(x),T=d.forwardRef(({title:t,subtitle:p,icon:n,buttonText:m,buttonLink:g,timeToReadText:h="{0} min read",items:o,onButtonAction:c=()=>{},onSelectCard:l=()=>{},isLoading:f=!1,getImage:a=()=>{},componentName:_,LinkComponent:u},j)=>{const w=d.useMemo(()=>{var i;return(i=o==null?void 0:o.slice(0,4))==null?void 0:i.map((e,b)=>r.jsx(C,{title:e==null?void 0:e.title,titleSlug:e==null?void 0:e.titleSlug,options:e==null?void 0:e.options,publishedAt:e==null?void 0:e.publishedAt,timeToReadText:h,timeToRead:e==null?void 0:e.timeToRead,numberOfLikes:e==null?void 0:e.numberOfLikes,numberOfComments:e==null?void 0:e.numberOfComments,isSponsored:e==null?void 0:e.isSponsored,onSelectCard:(U,S)=>l==null?void 0:l(e,S),imageUrl:a(e==null?void 0:e.imageUrl,e==null?void 0:e.uuid)||null,metadata:{name:_,accessor:e==null?void 0:e.accessor},LinkComponent:u},`blog-card-sponsored__${b+1}`))},[o]);return r.jsxs(I,{ref:j,children:[r.jsxs("div",{className:"wrapper__heading",children:[r.jsxs("div",{className:"wrapper__title",children:[t&&r.jsxs("div",{className:"title__text",children:[s.isDefinedNotEmptyString(n)&&r.jsx("i",{className:n}),r.jsx("span",{children:t})]}),s.isDefinedNotEmptyString(m)&&s.isDefinedNotEmptyString(g)&&!f&&r.jsx(z,{text:m,borderRadius:"curved",btnType:"tinted",className:"title__action",color:"neutral",onClick:i=>{var e;(e=i==null?void 0:i.target)==null||e.blur(),c==null||c(g)}})]}),p&&r.jsx("div",{className:"wrapper__subtitle",children:p})]}),r.jsx(q.SuspenseBlogCardsSponsored,{isLoading:f,keyPrefix:"blog-cards-sponsored-skeleton",children:r.jsx("div",{className:"wrapper__cards",children:w})})]})});module.exports=T;
|