@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,22 +1,30 @@
|
|
|
1
|
-
import { jsxs as r, jsx as t, Fragment as
|
|
2
|
-
import { forwardRef as
|
|
3
|
-
import { s as
|
|
4
|
-
import {
|
|
5
|
-
import { u as D } from "./useDetectMobile-
|
|
6
|
-
import {
|
|
7
|
-
import { B as
|
|
8
|
-
import
|
|
9
|
-
import { P as
|
|
10
|
-
import { S as
|
|
11
|
-
const
|
|
1
|
+
import { jsxs as r, jsx as t, Fragment as $ } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as L, useRef as B, memo as A, useMemo as z } 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 j, s as M, q as U, v as R, l as C } from "./utils-B2fsQ6PS.js";
|
|
7
|
+
import { B as W, R as P } from "./style-BUyFad_y.js";
|
|
8
|
+
import I from "./Button.js";
|
|
9
|
+
import { P as q } from "./index-BvMY2TbK.js";
|
|
10
|
+
import { S as E } from "./index-hC-E71GE.js";
|
|
11
|
+
const F = S.div`
|
|
12
12
|
display: grid;
|
|
13
13
|
grid-template-columns: ${(l) => `repeat(${l.limit}, minmax(0, 1fr))`};
|
|
14
14
|
gap: 1.25rem;
|
|
15
15
|
|
|
16
|
-
@media
|
|
16
|
+
@media ${w("M")} {
|
|
17
|
+
grid-template-columns: repeat(2, 1fr);
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
@media ${w("S")} {
|
|
21
|
+
grid-template-columns: repeat(2, 1fr);
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
@media ${w("XS")} {
|
|
17
25
|
grid-template-columns: repeat(1, 1fr);
|
|
18
26
|
}
|
|
19
|
-
`,
|
|
27
|
+
`, G = S.a`
|
|
20
28
|
text-decoration: none;
|
|
21
29
|
color: var(--gray-950);
|
|
22
30
|
display: flex;
|
|
@@ -55,11 +63,11 @@ const q = C.div`
|
|
|
55
63
|
gap: 0.5rem;
|
|
56
64
|
}
|
|
57
65
|
|
|
58
|
-
@media
|
|
66
|
+
@media ${w("S")} {
|
|
59
67
|
max-height: 100%;
|
|
60
68
|
min-height: 100%;
|
|
61
69
|
}
|
|
62
|
-
`,
|
|
70
|
+
`, X = S.div`
|
|
63
71
|
display: flex;
|
|
64
72
|
flex-direction: column;
|
|
65
73
|
gap: 0;
|
|
@@ -75,7 +83,7 @@ const q = C.div`
|
|
|
75
83
|
font-size: 0.875rem;
|
|
76
84
|
flex: 1;
|
|
77
85
|
color: var(--gray-700, #4e555f);
|
|
78
|
-
${
|
|
86
|
+
${j(2)}
|
|
79
87
|
}
|
|
80
88
|
|
|
81
89
|
& .info-wr {
|
|
@@ -104,11 +112,11 @@ const q = C.div`
|
|
|
104
112
|
align-items: center;
|
|
105
113
|
gap: 1rem;
|
|
106
114
|
}
|
|
107
|
-
`,
|
|
115
|
+
`, H = L((l, k) => {
|
|
108
116
|
const {
|
|
109
117
|
title: g,
|
|
110
|
-
imageUrl:
|
|
111
|
-
text:
|
|
118
|
+
imageUrl: v,
|
|
119
|
+
text: y,
|
|
112
120
|
numberOfLikes: i,
|
|
113
121
|
numberOfComments: f,
|
|
114
122
|
timeToRead: s,
|
|
@@ -119,9 +127,9 @@ const q = C.div`
|
|
|
119
127
|
metadata: a,
|
|
120
128
|
titleSlug: d,
|
|
121
129
|
LinkComponent: p
|
|
122
|
-
} = l, h = p || "a", b =
|
|
130
|
+
} = l, h = p || "a", b = B();
|
|
123
131
|
return /* @__PURE__ */ r(
|
|
124
|
-
|
|
132
|
+
G,
|
|
125
133
|
{
|
|
126
134
|
ref: b,
|
|
127
135
|
className: "blog-card",
|
|
@@ -131,42 +139,42 @@ const q = C.div`
|
|
|
131
139
|
as: h,
|
|
132
140
|
...p ? { to: `/blog/${d}` } : { href: `/blog/${d}` },
|
|
133
141
|
children: [
|
|
134
|
-
/* @__PURE__ */ t(
|
|
142
|
+
/* @__PURE__ */ t(q, { src: v }),
|
|
135
143
|
/* @__PURE__ */ r("div", { className: "blog-card-content", children: [
|
|
136
|
-
/* @__PURE__ */ r(
|
|
144
|
+
/* @__PURE__ */ r(X, { children: [
|
|
137
145
|
/* @__PURE__ */ r("div", { className: "info-wr", children: [
|
|
138
146
|
/* @__PURE__ */ r("div", { className: "info-wr-1", children: [
|
|
139
147
|
/* @__PURE__ */ r("span", { children: [
|
|
140
|
-
|
|
148
|
+
U(m),
|
|
141
149
|
" "
|
|
142
150
|
] }),
|
|
143
151
|
/* @__PURE__ */ t("span", { className: "small-dot", children: "●" }),
|
|
144
|
-
s && c ? `${
|
|
152
|
+
s && c ? `${M(c, s)}` : "N/A"
|
|
145
153
|
] }),
|
|
146
154
|
/* @__PURE__ */ r("div", { className: "info-wr-2", children: [
|
|
147
155
|
/* @__PURE__ */ r("span", { className: "info-wr-1", children: [
|
|
148
156
|
/* @__PURE__ */ t("i", { className: "mng mng-lnc-thumbs-up--filled" }),
|
|
149
|
-
/* @__PURE__ */ t("span", { children:
|
|
157
|
+
/* @__PURE__ */ t("span", { children: R(i) })
|
|
150
158
|
] }),
|
|
151
159
|
/* @__PURE__ */ r("span", { className: "info-wr-1", children: [
|
|
152
160
|
/* @__PURE__ */ t("i", { className: "mng mng-lnc-messages-filled" }),
|
|
153
|
-
/* @__PURE__ */ t("span", { children:
|
|
161
|
+
/* @__PURE__ */ t("span", { children: R(f) })
|
|
154
162
|
] })
|
|
155
163
|
] })
|
|
156
164
|
] }),
|
|
157
165
|
/* @__PURE__ */ t("div", { className: "text-wr-title", children: g }),
|
|
158
|
-
/* @__PURE__ */ t("div", { className: "text-wr", children:
|
|
166
|
+
/* @__PURE__ */ t("div", { className: "text-wr", children: y })
|
|
159
167
|
] }),
|
|
160
|
-
o && /* @__PURE__ */ t("div", { className: "tags-wr", children: o == null ? void 0 : o.map((e, n) => /* @__PURE__ */ t(
|
|
168
|
+
o && /* @__PURE__ */ t("div", { className: "tags-wr", children: o == null ? void 0 : o.map((e, n) => /* @__PURE__ */ t(W, { color: e == null ? void 0 : e.color, children: e == null ? void 0 : e.name }, n)) })
|
|
161
169
|
] })
|
|
162
170
|
]
|
|
163
171
|
}
|
|
164
172
|
);
|
|
165
|
-
}),
|
|
173
|
+
}), T = A(H), re = L((l, k) => {
|
|
166
174
|
const {
|
|
167
175
|
icon: g,
|
|
168
|
-
title:
|
|
169
|
-
onButtonAction:
|
|
176
|
+
title: v,
|
|
177
|
+
onButtonAction: y,
|
|
170
178
|
items: i,
|
|
171
179
|
buttonText: f,
|
|
172
180
|
timeToReadText: s,
|
|
@@ -179,8 +187,8 @@ const q = C.div`
|
|
|
179
187
|
},
|
|
180
188
|
componentName: d,
|
|
181
189
|
LinkComponent: p
|
|
182
|
-
} = l, h = D(), b = z(() => /* @__PURE__ */ t(
|
|
183
|
-
|
|
190
|
+
} = l, h = D(), b = z(() => /* @__PURE__ */ t($, { children: h === !0 ? i == null ? void 0 : i.map((e, n) => /* @__PURE__ */ t(
|
|
191
|
+
T,
|
|
184
192
|
{
|
|
185
193
|
title: e == null ? void 0 : e.title,
|
|
186
194
|
text: e == null ? void 0 : e.description,
|
|
@@ -191,14 +199,14 @@ const q = C.div`
|
|
|
191
199
|
timeToRead: e == null ? void 0 : e.timeToRead,
|
|
192
200
|
timeToReadText: s,
|
|
193
201
|
tags: e == null ? void 0 : e.tags,
|
|
194
|
-
onCardClick: (O,
|
|
202
|
+
onCardClick: (O, N) => o(e == null ? void 0 : e.titleSlug, N),
|
|
195
203
|
imageUrl: a(e == null ? void 0 : e.imageUrl, e == null ? void 0 : e.uuid) || null,
|
|
196
204
|
metadata: { name: d, accessor: e == null ? void 0 : e.accessor },
|
|
197
205
|
LinkComponent: p
|
|
198
206
|
},
|
|
199
207
|
n
|
|
200
208
|
)) : i == null ? void 0 : i.slice(0, m).map((e, n) => /* @__PURE__ */ t(
|
|
201
|
-
|
|
209
|
+
T,
|
|
202
210
|
{
|
|
203
211
|
title: e == null ? void 0 : e.title,
|
|
204
212
|
imageUrl: a(e == null ? void 0 : e.imageUrl, e == null ? void 0 : e.uuid) || null,
|
|
@@ -210,27 +218,27 @@ const q = C.div`
|
|
|
210
218
|
publishedAt: e == null ? void 0 : e.publishedAt,
|
|
211
219
|
timeToRead: e == null ? void 0 : e.timeToRead,
|
|
212
220
|
timeToReadText: s,
|
|
213
|
-
onCardClick: (O,
|
|
221
|
+
onCardClick: (O, N) => o(e == null ? void 0 : e.titleSlug, N),
|
|
214
222
|
metadata: { name: d, accessor: e == null ? void 0 : e.accessor },
|
|
215
223
|
LinkComponent: p
|
|
216
224
|
},
|
|
217
225
|
n
|
|
218
226
|
)) }), [i, h, m, o]);
|
|
219
|
-
return /* @__PURE__ */ r(
|
|
227
|
+
return /* @__PURE__ */ r(P, { ref: k, children: [
|
|
220
228
|
/* @__PURE__ */ r("div", { className: "regular-title", children: [
|
|
221
229
|
/* @__PURE__ */ r("div", { className: "regular-title-text", children: [
|
|
222
|
-
|
|
223
|
-
/* @__PURE__ */ t("span", { children:
|
|
230
|
+
C(g) && /* @__PURE__ */ t("i", { className: g }),
|
|
231
|
+
/* @__PURE__ */ t("span", { children: v })
|
|
224
232
|
] }),
|
|
225
|
-
|
|
226
|
-
|
|
233
|
+
C(f) && C(c) && !u && /* @__PURE__ */ t(
|
|
234
|
+
I,
|
|
227
235
|
{
|
|
228
236
|
type: "button",
|
|
229
237
|
btnType: "tinted",
|
|
230
238
|
color: "neutral",
|
|
231
239
|
onClick: (e) => {
|
|
232
240
|
var n;
|
|
233
|
-
(n = e == null ? void 0 : e.target) == null || n.blur(),
|
|
241
|
+
(n = e == null ? void 0 : e.target) == null || n.blur(), y(c);
|
|
234
242
|
},
|
|
235
243
|
borderRadius: "curved",
|
|
236
244
|
className: "button-link",
|
|
@@ -239,11 +247,11 @@ const q = C.div`
|
|
|
239
247
|
)
|
|
240
248
|
] }),
|
|
241
249
|
/* @__PURE__ */ t(
|
|
242
|
-
|
|
250
|
+
E,
|
|
243
251
|
{
|
|
244
252
|
isLoading: u,
|
|
245
253
|
keyPrefix: "blogs-detailed-skeleton",
|
|
246
|
-
children: /* @__PURE__ */ t(
|
|
254
|
+
children: /* @__PURE__ */ t(F, { limit: m, children: b })
|
|
247
255
|
}
|
|
248
256
|
)
|
|
249
257
|
] });
|
|
@@ -1,13 +1,21 @@
|
|
|
1
|
-
"use strict";const t=require("react/jsx-runtime"),
|
|
1
|
+
"use strict";const t=require("react/jsx-runtime"),l=require("react"),f=require("./emotion-styled.browser.esm-BtEseadx.cjs"),i=require("./breakpoints-CcVm-gVm.cjs"),C=require("./useDetectMobile-DYV6V1yw.cjs"),w=require("./index-CBZ-jNah.cjs"),u=require("./style-BAcV7F53.cjs"),L=f.styled.div`
|
|
2
2
|
display: grid;
|
|
3
3
|
grid-template-columns: ${o=>`repeat(${o.limit}, minmax(0, 1fr))`};
|
|
4
4
|
gap: 1.25rem;
|
|
5
5
|
|
|
6
|
-
@media
|
|
6
|
+
@media ${i.down("M")} {
|
|
7
|
+
grid-template-columns: repeat(2, 1fr);
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
@media ${i.down("S")} {
|
|
11
|
+
grid-template-columns: repeat(2, 1fr);
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
@media ${i.down("XS")} {
|
|
7
15
|
grid-template-columns: repeat(1, 1fr);
|
|
8
16
|
}
|
|
9
|
-
|
|
10
|
-
@media
|
|
17
|
+
`,$=f.styled(u.SkeletonRowWrapper)`
|
|
18
|
+
@media ${i.down("S")} {
|
|
11
19
|
flex-direction: column;
|
|
12
20
|
|
|
13
21
|
& > div {
|
|
@@ -21,4 +29,4 @@
|
|
|
21
29
|
box-shadow: none;
|
|
22
30
|
}
|
|
23
31
|
}
|
|
24
|
-
`,
|
|
32
|
+
`,q=({keyPrefix:o})=>t.jsxs($,{children:[t.jsx(u.SkeletonLinePlaceholder,{height:"11.25rem",borderRadius:"0.75rem"},`${o}-1`),t.jsx(u.SkeletonLinePlaceholder,{height:"11.25rem",borderRadius:"0.75rem"},`${o}-2`)]}),M=({keyPrefix:o,isLoading:s=!1,fallbackComponent:r=t.jsx(t.Fragment,{}),children:n})=>t.jsx(l.Suspense,{fallbackComponent:r,children:s===!0?t.jsx(q,{keyPrefix:o}):n}),b=l.memo(w.BlogCardLarge),R=l.forwardRef((o,s)=>{const{items:r,onSelectCard:n=()=>{},limit:a=2,isLoading:h=!1,getImage:m=()=>{},componentName:g,LinkComponent:p}=o,S=C.useDetectMobile(),j=l.useMemo(()=>t.jsx(t.Fragment,{children:S===!0?r==null?void 0:r.map((e,c)=>t.jsx(b,{title:e==null?void 0:e.title,imageUrl:m(e==null?void 0:e.imageUrl,e==null?void 0:e.uuid)||null,text:e==null?void 0:e.description,titleSlug:e==null?void 0:e.titleSlug,buttonText:e==null?void 0:e.buttonText,onCardClick:(k,d)=>n(e==null?void 0:e.titleSlug,d),metadata:{name:g,accessor:e==null?void 0:e.accessor},LinkComponent:p},c)):r==null?void 0:r.slice(0,a).map((e,c)=>t.jsx(b,{title:e==null?void 0:e.title,imageUrl:m(e==null?void 0:e.imageUrl,e==null?void 0:e.uuid)||null,text:e==null?void 0:e.description,titleSlug:e==null?void 0:e.titleSlug,buttonText:e==null?void 0:e.buttonText,onCardClick:(k,d)=>n(e==null?void 0:e.titleSlug,d),metadata:{name:g,accessor:e==null?void 0:e.accessor},LinkComponent:p},c))}),[r,S,a]);return t.jsx(M,{isLoading:h,keyPrefix:"blogs-large-skeleton",children:t.jsx(L,{ref:s,limit:a,children:j})})});module.exports=R;
|
|
@@ -1,20 +1,28 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { Suspense as
|
|
3
|
-
import { s as
|
|
4
|
-
import {
|
|
5
|
-
import { u as R } from "./useDetectMobile-
|
|
6
|
-
import { B as T } from "./index-
|
|
7
|
-
import { S as U, a as
|
|
8
|
-
const
|
|
1
|
+
import { jsxs as $, jsx as t, Fragment as S } from "react/jsx-runtime";
|
|
2
|
+
import { Suspense as L, memo as B, forwardRef as M, useMemo as w } from "react";
|
|
3
|
+
import { s as b } from "./emotion-styled.browser.esm-BNN1dTl3.js";
|
|
4
|
+
import { d as a } from "./breakpoints-ff0SIcV3.js";
|
|
5
|
+
import { u as R } from "./useDetectMobile-CcVo3PNi.js";
|
|
6
|
+
import { B as T } from "./index-L_Va5-wK.js";
|
|
7
|
+
import { S as U, a as p } from "./style-BwQ4djFC.js";
|
|
8
|
+
const j = b.div`
|
|
9
9
|
display: grid;
|
|
10
10
|
grid-template-columns: ${(o) => `repeat(${o.limit}, minmax(0, 1fr))`};
|
|
11
11
|
gap: 1.25rem;
|
|
12
12
|
|
|
13
|
-
@media
|
|
13
|
+
@media ${a("M")} {
|
|
14
|
+
grid-template-columns: repeat(2, 1fr);
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
@media ${a("S")} {
|
|
18
|
+
grid-template-columns: repeat(2, 1fr);
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
@media ${a("XS")} {
|
|
14
22
|
grid-template-columns: repeat(1, 1fr);
|
|
15
23
|
}
|
|
16
|
-
`,
|
|
17
|
-
@media
|
|
24
|
+
`, v = b(U)`
|
|
25
|
+
@media ${a("S")} {
|
|
18
26
|
flex-direction: column;
|
|
19
27
|
|
|
20
28
|
& > div {
|
|
@@ -28,9 +36,9 @@ const I = S.div`
|
|
|
28
36
|
box-shadow: none;
|
|
29
37
|
}
|
|
30
38
|
}
|
|
31
|
-
`,
|
|
39
|
+
`, y = ({ keyPrefix: o }) => /* @__PURE__ */ $(v, { children: [
|
|
32
40
|
/* @__PURE__ */ t(
|
|
33
|
-
|
|
41
|
+
p,
|
|
34
42
|
{
|
|
35
43
|
height: "11.25rem",
|
|
36
44
|
borderRadius: "0.75rem"
|
|
@@ -38,65 +46,65 @@ const I = S.div`
|
|
|
38
46
|
`${o}-1`
|
|
39
47
|
),
|
|
40
48
|
/* @__PURE__ */ t(
|
|
41
|
-
|
|
49
|
+
p,
|
|
42
50
|
{
|
|
43
51
|
height: "11.25rem",
|
|
44
52
|
borderRadius: "0.75rem"
|
|
45
53
|
},
|
|
46
54
|
`${o}-2`
|
|
47
55
|
)
|
|
48
|
-
] }),
|
|
56
|
+
] }), z = ({
|
|
49
57
|
keyPrefix: o,
|
|
50
|
-
isLoading:
|
|
51
|
-
fallbackComponent: r = /* @__PURE__ */ t(
|
|
58
|
+
isLoading: l = !1,
|
|
59
|
+
fallbackComponent: r = /* @__PURE__ */ t(S, {}),
|
|
52
60
|
children: i
|
|
53
|
-
}) => /* @__PURE__ */ t(
|
|
61
|
+
}) => /* @__PURE__ */ t(L, { fallbackComponent: r, children: l === !0 ? /* @__PURE__ */ t(y, { keyPrefix: o }) : i }), f = B(T), X = M((o, l) => {
|
|
54
62
|
const {
|
|
55
63
|
items: r,
|
|
56
64
|
onSelectCard: i = () => {
|
|
57
65
|
},
|
|
58
|
-
limit:
|
|
59
|
-
isLoading:
|
|
60
|
-
getImage:
|
|
66
|
+
limit: n = 2,
|
|
67
|
+
isLoading: h = !1,
|
|
68
|
+
getImage: d = () => {
|
|
61
69
|
},
|
|
62
|
-
componentName:
|
|
63
|
-
LinkComponent:
|
|
64
|
-
} = o,
|
|
65
|
-
|
|
70
|
+
componentName: c,
|
|
71
|
+
LinkComponent: u
|
|
72
|
+
} = o, g = R(), C = w(() => /* @__PURE__ */ t(S, { children: g === !0 ? r == null ? void 0 : r.map((e, m) => /* @__PURE__ */ t(
|
|
73
|
+
f,
|
|
66
74
|
{
|
|
67
75
|
title: e == null ? void 0 : e.title,
|
|
68
|
-
imageUrl:
|
|
76
|
+
imageUrl: d(e == null ? void 0 : e.imageUrl, e == null ? void 0 : e.uuid) || null,
|
|
69
77
|
text: e == null ? void 0 : e.description,
|
|
70
78
|
titleSlug: e == null ? void 0 : e.titleSlug,
|
|
71
79
|
buttonText: e == null ? void 0 : e.buttonText,
|
|
72
80
|
onCardClick: (k, s) => i(e == null ? void 0 : e.titleSlug, s),
|
|
73
|
-
metadata: { name:
|
|
74
|
-
LinkComponent:
|
|
81
|
+
metadata: { name: c, accessor: e == null ? void 0 : e.accessor },
|
|
82
|
+
LinkComponent: u
|
|
75
83
|
},
|
|
76
|
-
|
|
77
|
-
)) : r == null ? void 0 : r.slice(0,
|
|
78
|
-
|
|
84
|
+
m
|
|
85
|
+
)) : r == null ? void 0 : r.slice(0, n).map((e, m) => /* @__PURE__ */ t(
|
|
86
|
+
f,
|
|
79
87
|
{
|
|
80
88
|
title: e == null ? void 0 : e.title,
|
|
81
|
-
imageUrl:
|
|
89
|
+
imageUrl: d(e == null ? void 0 : e.imageUrl, e == null ? void 0 : e.uuid) || null,
|
|
82
90
|
text: e == null ? void 0 : e.description,
|
|
83
91
|
titleSlug: e == null ? void 0 : e.titleSlug,
|
|
84
92
|
buttonText: e == null ? void 0 : e.buttonText,
|
|
85
93
|
onCardClick: (k, s) => i(e == null ? void 0 : e.titleSlug, s),
|
|
86
|
-
metadata: { name:
|
|
87
|
-
LinkComponent:
|
|
94
|
+
metadata: { name: c, accessor: e == null ? void 0 : e.accessor },
|
|
95
|
+
LinkComponent: u
|
|
88
96
|
},
|
|
89
|
-
|
|
90
|
-
)) }), [r,
|
|
97
|
+
m
|
|
98
|
+
)) }), [r, g, n]);
|
|
91
99
|
return /* @__PURE__ */ t(
|
|
92
|
-
|
|
100
|
+
z,
|
|
93
101
|
{
|
|
94
|
-
isLoading:
|
|
102
|
+
isLoading: h,
|
|
95
103
|
keyPrefix: "blogs-large-skeleton",
|
|
96
|
-
children: /* @__PURE__ */ t(
|
|
104
|
+
children: /* @__PURE__ */ t(j, { ref: l, limit: n, children: C })
|
|
97
105
|
}
|
|
98
106
|
);
|
|
99
107
|
});
|
|
100
108
|
export {
|
|
101
|
-
|
|
109
|
+
X as default
|
|
102
110
|
};
|
|
@@ -1,12 +1,20 @@
|
|
|
1
|
-
"use strict";const r=require("react/jsx-runtime"),p=require("react"),
|
|
1
|
+
"use strict";const r=require("react/jsx-runtime"),p=require("react"),S=require("./emotion-styled.browser.esm-BtEseadx.cjs"),j=require("./breakpoints-CcVm-gVm.cjs"),$=require("./useDetectMobile-DYV6V1yw.cjs"),g=require("./utils-CITgSxXe.cjs"),C=require("./style-DC05rdyx.cjs"),B=require("./Button.cjs"),M=require("./Link.cjs"),T=require("./index-DsINTjQk.cjs"),D=require("./index-B_ilx3wM.cjs"),L=S.styled.div`
|
|
2
2
|
display: grid;
|
|
3
|
-
grid-template-columns: ${
|
|
3
|
+
grid-template-columns: ${a=>`repeat(${a.limit}, minmax(0, 1fr))`};
|
|
4
4
|
gap: 1.25rem;
|
|
5
5
|
|
|
6
|
-
@media
|
|
6
|
+
@media ${j.down("M")} {
|
|
7
|
+
grid-template-columns: repeat(2, 1fr);
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
@media ${j.down("S")} {
|
|
11
|
+
grid-template-columns: repeat(2, 1fr);
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
@media ${j.down("XS")} {
|
|
7
15
|
grid-template-columns: repeat(1, 1fr);
|
|
8
16
|
}
|
|
9
|
-
`,
|
|
17
|
+
`,U=S.styled.a`
|
|
10
18
|
text-decoration: none;
|
|
11
19
|
color: var(--gray-950);
|
|
12
20
|
display: flex;
|
|
@@ -57,10 +65,7 @@
|
|
|
57
65
|
gap: 0.5rem;
|
|
58
66
|
padding: 1rem;
|
|
59
67
|
}
|
|
60
|
-
|
|
61
|
-
@media (max-width: ${k.MOBILE_SIZE_PX+"px"}) {
|
|
62
|
-
}
|
|
63
|
-
`,D=j.styled.div`
|
|
68
|
+
`,W=S.styled.div`
|
|
64
69
|
padding: 1rem 1rem 0 1rem;
|
|
65
70
|
display: flex;
|
|
66
71
|
flex-direction: column;
|
|
@@ -80,4 +85,4 @@
|
|
|
80
85
|
color: var(--gray-700, #4e555f);
|
|
81
86
|
${g.truncateTextInRows(3)}
|
|
82
87
|
}
|
|
83
|
-
`,
|
|
88
|
+
`,z=p.forwardRef((a,v)=>{const{title:u,imageUrl:b,text:w,options:n,onCardClick:s,readMoreText:i="Read more",metadata:o,titleSlug:c,LinkComponent:d}=a,h=d||"a",m=p.useRef();return r.jsxs(U,{ref:m,name:o==null?void 0:o.name,"data-accessor":o==null?void 0:o.name,className:"blog-card",onClick:t=>s(t,m),as:h,...d?{to:`/blog/${c}`}:{href:`/blog/${c}`},children:[r.jsx(T.ProductImageWrapper,{src:b}),r.jsxs(W,{children:[r.jsx("div",{className:"text-wr-title",children:u}),r.jsx("div",{className:"text-wr",children:w})]}),n&&r.jsx("div",{className:"tags-wr",children:n==null?void 0:n.map((t,f)=>r.jsx(C.BlogTag,{color:t==null?void 0:t.color,children:t==null?void 0:t.name},f))}),r.jsx(M,{className:"action",color:"gray",onClick:s,children:i})]})}),k=p.memo(z),E=p.forwardRef((a,v)=>{const{icon:u,title:b,onButtonAction:w=()=>{},onSelectCard:n=()=>{},buttonLink:s,items:i,buttonText:o,limit:c=3,isLoading:d=!1,getImage:h=()=>{},readMoreText:m="Read more",componentName:t,LinkComponent:f}=a,N=$.useDetectMobile(),q=p.useMemo(()=>r.jsx(r.Fragment,{children:N===!0?i==null?void 0:i.map((e,l)=>r.jsx(k,{isBlog:!0,title:e==null?void 0:e.title,imageUrl:h(e==null?void 0:e.imageUrl,e==null?void 0:e.uuid)||null,text:e==null?void 0:e.description,titleSlug:e==null?void 0:e.titleSlug,readMoreText:m,options:e==null?void 0:e.options,onCardClick:(R,y)=>n(e==null?void 0:e.titleSlug,y),metadata:{name:t,accessor:e==null?void 0:e.accessor},LinkComponent:f},l)):i==null?void 0:i.slice(0,c).map((e,l)=>r.jsx(k,{isBlog:!0,title:e==null?void 0:e.title,imageUrl:h(e==null?void 0:e.imageUrl,e==null?void 0:e.uuid)||null,text:e==null?void 0:e.description,titleSlug:e==null?void 0:e.titleSlug,readMoreText:m,options:e==null?void 0:e.options,onCardClick:(R,y)=>n(e==null?void 0:e.titleSlug,y),metadata:{name:t,accessor:e==null?void 0:e.accessor},LinkComponent:f},l))}),[i]);return r.jsxs(C.RegulatTitleSectionWrapper,{ref:v,children:[r.jsxs("div",{className:"regular-title",children:[r.jsxs("div",{className:"regular-title-text",children:[g.isDefinedNotEmptyString(u)&&r.jsx("i",{className:u}),r.jsx("span",{children:b})]}),g.isDefinedNotEmptyString(o)&&g.isDefinedNotEmptyString(s)&&!d&&r.jsx(B,{type:"button",btnType:"tinted",color:"neutral",onClick:e=>{var l;(l=e==null?void 0:e.target)==null||l.blur(),w(s)},borderRadius:"curved",className:"button-link",children:o})]}),r.jsx(D.SuspenseBlogsSectionDetailed,{isLoading:d,keyPrefix:"blogs-simple-skeleton",children:r.jsx(L,{limit:c,children:q})})]})});module.exports=E;
|
|
@@ -1,23 +1,31 @@
|
|
|
1
1
|
import { jsxs as p, jsx as r, Fragment as T } from "react/jsx-runtime";
|
|
2
|
-
import { forwardRef as
|
|
3
|
-
import { s as
|
|
4
|
-
import {
|
|
5
|
-
import { u as
|
|
6
|
-
import { w as
|
|
7
|
-
import { B as
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import { P as
|
|
11
|
-
import { S as
|
|
12
|
-
const
|
|
2
|
+
import { forwardRef as N, useRef as M, memo as L, useMemo as U } from "react";
|
|
3
|
+
import { s as S } from "./emotion-styled.browser.esm-BNN1dTl3.js";
|
|
4
|
+
import { d as v } from "./breakpoints-ff0SIcV3.js";
|
|
5
|
+
import { u as W } from "./useDetectMobile-CcVo3PNi.js";
|
|
6
|
+
import { w as z, n as P, l as y } from "./utils-B2fsQ6PS.js";
|
|
7
|
+
import { B as j, R as D } from "./style-BUyFad_y.js";
|
|
8
|
+
import I from "./Button.js";
|
|
9
|
+
import A from "./Link.js";
|
|
10
|
+
import { P as G } from "./index-BvMY2TbK.js";
|
|
11
|
+
import { S as E } from "./index-hC-E71GE.js";
|
|
12
|
+
const F = S.div`
|
|
13
13
|
display: grid;
|
|
14
14
|
grid-template-columns: ${(n) => `repeat(${n.limit}, minmax(0, 1fr))`};
|
|
15
15
|
gap: 1.25rem;
|
|
16
16
|
|
|
17
|
-
@media
|
|
17
|
+
@media ${v("M")} {
|
|
18
|
+
grid-template-columns: repeat(2, 1fr);
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
@media ${v("S")} {
|
|
22
|
+
grid-template-columns: repeat(2, 1fr);
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
@media ${v("XS")} {
|
|
18
26
|
grid-template-columns: repeat(1, 1fr);
|
|
19
27
|
}
|
|
20
|
-
`,
|
|
28
|
+
`, X = S.a`
|
|
21
29
|
text-decoration: none;
|
|
22
30
|
color: var(--gray-950);
|
|
23
31
|
display: flex;
|
|
@@ -43,7 +51,7 @@ const _ = y.div`
|
|
|
43
51
|
width: 100%;
|
|
44
52
|
max-height: 12.5625rem;
|
|
45
53
|
min-height: 12.5625rem;
|
|
46
|
-
background-color: ${
|
|
54
|
+
background-color: ${z("-90deg")};
|
|
47
55
|
}
|
|
48
56
|
|
|
49
57
|
& .action {
|
|
@@ -68,10 +76,7 @@ const _ = y.div`
|
|
|
68
76
|
gap: 0.5rem;
|
|
69
77
|
padding: 1rem;
|
|
70
78
|
}
|
|
71
|
-
|
|
72
|
-
@media (max-width: ${B + "px"}) {
|
|
73
|
-
}
|
|
74
|
-
`, O = y.div`
|
|
79
|
+
`, q = S.div`
|
|
75
80
|
padding: 1rem 1rem 0 1rem;
|
|
76
81
|
display: flex;
|
|
77
82
|
flex-direction: column;
|
|
@@ -89,9 +94,9 @@ const _ = y.div`
|
|
|
89
94
|
font-size: 0.875rem;
|
|
90
95
|
flex: 1;
|
|
91
96
|
color: var(--gray-700, #4e555f);
|
|
92
|
-
${
|
|
97
|
+
${P(3)}
|
|
93
98
|
}
|
|
94
|
-
`,
|
|
99
|
+
`, H = N((n, k) => {
|
|
95
100
|
const {
|
|
96
101
|
title: g,
|
|
97
102
|
imageUrl: h,
|
|
@@ -102,9 +107,9 @@ const _ = y.div`
|
|
|
102
107
|
metadata: i,
|
|
103
108
|
titleSlug: s,
|
|
104
109
|
LinkComponent: c
|
|
105
|
-
} = n, u = c || "a", d =
|
|
110
|
+
} = n, u = c || "a", d = M();
|
|
106
111
|
return /* @__PURE__ */ p(
|
|
107
|
-
|
|
112
|
+
X,
|
|
108
113
|
{
|
|
109
114
|
ref: d,
|
|
110
115
|
name: i == null ? void 0 : i.name,
|
|
@@ -114,17 +119,17 @@ const _ = y.div`
|
|
|
114
119
|
as: u,
|
|
115
120
|
...c ? { to: `/blog/${s}` } : { href: `/blog/${s}` },
|
|
116
121
|
children: [
|
|
117
|
-
/* @__PURE__ */ r(
|
|
118
|
-
/* @__PURE__ */ p(
|
|
122
|
+
/* @__PURE__ */ r(G, { src: h }),
|
|
123
|
+
/* @__PURE__ */ p(q, { children: [
|
|
119
124
|
/* @__PURE__ */ r("div", { className: "text-wr-title", children: g }),
|
|
120
125
|
/* @__PURE__ */ r("div", { className: "text-wr", children: b })
|
|
121
126
|
] }),
|
|
122
|
-
a && /* @__PURE__ */ r("div", { className: "tags-wr", children: a == null ? void 0 : a.map((t, f) => /* @__PURE__ */ r(
|
|
123
|
-
/* @__PURE__ */ r(
|
|
127
|
+
a && /* @__PURE__ */ r("div", { className: "tags-wr", children: a == null ? void 0 : a.map((t, f) => /* @__PURE__ */ r(j, { color: t == null ? void 0 : t.color, children: t == null ? void 0 : t.name }, f)) }),
|
|
128
|
+
/* @__PURE__ */ r(A, { className: "action", color: "gray", onClick: m, children: o })
|
|
124
129
|
]
|
|
125
130
|
}
|
|
126
131
|
);
|
|
127
|
-
}),
|
|
132
|
+
}), C = L(H), te = N((n, k) => {
|
|
128
133
|
const {
|
|
129
134
|
icon: g,
|
|
130
135
|
title: h,
|
|
@@ -142,8 +147,8 @@ const _ = y.div`
|
|
|
142
147
|
readMoreText: d = "Read more",
|
|
143
148
|
componentName: t,
|
|
144
149
|
LinkComponent: f
|
|
145
|
-
} = n,
|
|
146
|
-
|
|
150
|
+
} = n, B = W(), R = U(() => /* @__PURE__ */ r(T, { children: B === !0 ? o == null ? void 0 : o.map((e, l) => /* @__PURE__ */ r(
|
|
151
|
+
C,
|
|
147
152
|
{
|
|
148
153
|
isBlog: !0,
|
|
149
154
|
title: e == null ? void 0 : e.title,
|
|
@@ -152,13 +157,13 @@ const _ = y.div`
|
|
|
152
157
|
titleSlug: e == null ? void 0 : e.titleSlug,
|
|
153
158
|
readMoreText: d,
|
|
154
159
|
options: e == null ? void 0 : e.options,
|
|
155
|
-
onCardClick: (
|
|
160
|
+
onCardClick: ($, w) => a(e == null ? void 0 : e.titleSlug, w),
|
|
156
161
|
metadata: { name: t, accessor: e == null ? void 0 : e.accessor },
|
|
157
162
|
LinkComponent: f
|
|
158
163
|
},
|
|
159
164
|
l
|
|
160
165
|
)) : o == null ? void 0 : o.slice(0, s).map((e, l) => /* @__PURE__ */ r(
|
|
161
|
-
|
|
166
|
+
C,
|
|
162
167
|
{
|
|
163
168
|
isBlog: !0,
|
|
164
169
|
title: e == null ? void 0 : e.title,
|
|
@@ -167,20 +172,20 @@ const _ = y.div`
|
|
|
167
172
|
titleSlug: e == null ? void 0 : e.titleSlug,
|
|
168
173
|
readMoreText: d,
|
|
169
174
|
options: e == null ? void 0 : e.options,
|
|
170
|
-
onCardClick: (
|
|
175
|
+
onCardClick: ($, w) => a(e == null ? void 0 : e.titleSlug, w),
|
|
171
176
|
metadata: { name: t, accessor: e == null ? void 0 : e.accessor },
|
|
172
177
|
LinkComponent: f
|
|
173
178
|
},
|
|
174
179
|
l
|
|
175
180
|
)) }), [o]);
|
|
176
|
-
return /* @__PURE__ */ p(
|
|
181
|
+
return /* @__PURE__ */ p(D, { ref: k, children: [
|
|
177
182
|
/* @__PURE__ */ p("div", { className: "regular-title", children: [
|
|
178
183
|
/* @__PURE__ */ p("div", { className: "regular-title-text", children: [
|
|
179
|
-
|
|
184
|
+
y(g) && /* @__PURE__ */ r("i", { className: g }),
|
|
180
185
|
/* @__PURE__ */ r("span", { children: h })
|
|
181
186
|
] }),
|
|
182
|
-
|
|
183
|
-
|
|
187
|
+
y(i) && y(m) && !c && /* @__PURE__ */ r(
|
|
188
|
+
I,
|
|
184
189
|
{
|
|
185
190
|
type: "button",
|
|
186
191
|
btnType: "tinted",
|
|
@@ -196,11 +201,11 @@ const _ = y.div`
|
|
|
196
201
|
)
|
|
197
202
|
] }),
|
|
198
203
|
/* @__PURE__ */ r(
|
|
199
|
-
|
|
204
|
+
E,
|
|
200
205
|
{
|
|
201
206
|
isLoading: c,
|
|
202
207
|
keyPrefix: "blogs-simple-skeleton",
|
|
203
|
-
children: /* @__PURE__ */ r(
|
|
208
|
+
children: /* @__PURE__ */ r(F, { limit: s, children: R })
|
|
204
209
|
}
|
|
205
210
|
)
|
|
206
211
|
] });
|