@lanaco/lnc-react-ui 4.0.206 → 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 +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 +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
package/dist/SearchSection.js
CHANGED
package/dist/Separator.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const n=require("react/jsx-runtime"),c=require("react"),i=require("./emotion-styled.browser.esm-BtEseadx.cjs"),m=require("./utils-
|
|
1
|
+
"use strict";const n=require("react/jsx-runtime"),c=require("react"),i=require("./emotion-styled.browser.esm-BtEseadx.cjs"),m=require("./utils-CITgSxXe.cjs"),l=require("./emotion-element-f0de968e.browser.esm-B7k6i6lC.cjs"),u=i.styled.div`
|
|
2
2
|
height: 1px;
|
|
3
3
|
background-color: ${e=>m.getColorRgbaValue(e.theme,"MenuItem","default","enabled","separator")};
|
|
4
4
|
margin-left: -0.25rem;
|
package/dist/Separator.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { jsx as s } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef as l } from "react";
|
|
3
3
|
import { s as n } from "./emotion-styled.browser.esm-BNN1dTl3.js";
|
|
4
|
-
import {
|
|
4
|
+
import { c as p } from "./utils-B2fsQ6PS.js";
|
|
5
5
|
import { u as i } from "./emotion-element-f0de968e.browser.esm-CkCiQliQ.js";
|
|
6
|
-
const
|
|
6
|
+
const c = n.div`
|
|
7
7
|
height: 1px;
|
|
8
8
|
background-color: ${(r) => p(
|
|
9
9
|
r.theme,
|
|
@@ -17,7 +17,7 @@ const d = n.div`
|
|
|
17
17
|
`, b = l((r, e) => {
|
|
18
18
|
const { className: t = "", style: o = {}, ...a } = r, m = i();
|
|
19
19
|
return /* @__PURE__ */ s(
|
|
20
|
-
|
|
20
|
+
c,
|
|
21
21
|
{
|
|
22
22
|
ref: e,
|
|
23
23
|
theme: m,
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
"use strict";const r=require("react/jsx-runtime"),t=require("react"),
|
|
1
|
+
"use strict";const r=require("react/jsx-runtime"),t=require("react"),o=require("./emotion-styled.browser.esm-BtEseadx.cjs"),s=require("./breakpoints-CcVm-gVm.cjs"),a=o.styled.div`
|
|
2
2
|
width: 100%;
|
|
3
3
|
height: 0.125rem;
|
|
4
4
|
background-color: var(--gray-95008, rgba(20, 22, 26, 0.08));
|
|
5
5
|
|
|
6
|
-
@media
|
|
6
|
+
@media ${s.down("S")} {
|
|
7
7
|
height: 0.5rem;
|
|
8
8
|
}
|
|
9
|
-
`,
|
|
9
|
+
`,i=t.forwardRef(({},e)=>r.jsx(a,{ref:e,className:"separator-section-lnc"}));module.exports=i;
|
package/dist/SeparatorSection.js
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { jsx as o } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef as a } from "react";
|
|
3
3
|
import { s as t } from "./emotion-styled.browser.esm-BNN1dTl3.js";
|
|
4
|
-
import {
|
|
4
|
+
import { d as e } from "./breakpoints-ff0SIcV3.js";
|
|
5
5
|
const m = t.div`
|
|
6
6
|
width: 100%;
|
|
7
7
|
height: 0.125rem;
|
|
8
8
|
background-color: var(--gray-95008, rgba(20, 22, 26, 0.08));
|
|
9
9
|
|
|
10
|
-
@media
|
|
10
|
+
@media ${e("S")} {
|
|
11
11
|
height: 0.5rem;
|
|
12
12
|
}
|
|
13
|
-
`,
|
|
13
|
+
`, c = a(({}, r) => /* @__PURE__ */ o(m, { ref: r, className: "separator-section-lnc" }));
|
|
14
14
|
export {
|
|
15
|
-
|
|
15
|
+
c as default
|
|
16
16
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const t=require("react/jsx-runtime"),
|
|
1
|
+
"use strict";const t=require("react/jsx-runtime"),g=require("react"),h=require("./Button.cjs"),$=require("./index-CUaeb_TU.cjs"),R=require("./utils-CITgSxXe.cjs"),f=require("./emotion-styled.browser.esm-BtEseadx.cjs"),p=require("./breakpoints-CcVm-gVm.cjs"),s=require("./style-BAcV7F53.cjs"),N=f.styled.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex-direction: column;
|
|
4
4
|
align-items: flex-start;
|
|
@@ -67,6 +67,12 @@
|
|
|
67
67
|
width: 100%;
|
|
68
68
|
}
|
|
69
69
|
|
|
70
|
+
@media ${p.down("M")} {
|
|
71
|
+
& .wrapper__cards {
|
|
72
|
+
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
|
|
70
76
|
& .wrapper__view-all {
|
|
71
77
|
align-self: center;
|
|
72
78
|
color: var(--neutral-600, #0f2a46);
|
|
@@ -83,7 +89,7 @@
|
|
|
83
89
|
display: none;
|
|
84
90
|
}
|
|
85
91
|
|
|
86
|
-
@media
|
|
92
|
+
@media ${p.down("S")} {
|
|
87
93
|
gap: 1.25rem;
|
|
88
94
|
|
|
89
95
|
& .wrapper__view-all {
|
|
@@ -128,8 +134,8 @@
|
|
|
128
134
|
}`}
|
|
129
135
|
}
|
|
130
136
|
}
|
|
131
|
-
`,q=
|
|
132
|
-
@media
|
|
137
|
+
`,q=f.styled(s.SkeletonRowWrapper)`
|
|
138
|
+
@media ${p.down("S")} {
|
|
133
139
|
& > div {
|
|
134
140
|
background: linear-gradient(
|
|
135
141
|
to right,
|
|
@@ -141,4 +147,4 @@
|
|
|
141
147
|
box-shadow: none;
|
|
142
148
|
}
|
|
143
149
|
}
|
|
144
|
-
`,
|
|
150
|
+
`,z=({keyPrefix:r})=>t.jsxs(q,{children:[t.jsx(s.SkeletonLinePlaceholder,{height:"18rem",borderRadius:"0.75rem"},`${r}-1`),t.jsx(s.SkeletonLinePlaceholder,{height:"18rem",borderRadius:"0.75rem"},`${r}-2`),t.jsx(s.SkeletonLinePlaceholder,{height:"18rem",borderRadius:"0.75rem"},`${r}-3`),t.jsx(s.SkeletonLinePlaceholder,{height:"18rem",borderRadius:"0.75rem"},`${r}-4`)]}),M=({keyPrefix:r,isLoading:l=!1,fallbackComponent:i=t.jsx(t.Fragment,{}),children:n})=>t.jsx(g.Suspense,{fallbackComponent:i,children:l===!0?t.jsx(z,{keyPrefix:r}):n}),P=g.forwardRef(({title:r,subtitle:l,items:i,isLoading:n=!1,limit:w=4,limitForMobile:_=2,buttonText:m="Show More",onSelectCard:x=()=>{},onButtonAction:o=()=>{},icon:u,getImage:c=()=>{},getProductImage:d=()=>{},hideProducts:b=!1,showRating:y=!0,gridView:a=!1,componentName:v,LinkComponent:j},S)=>t.jsxs(N,{ref:S,limitCards:w,limitCardsForMobile:_,gridView:a,children:[t.jsxs("div",{className:"wrapper__heading",children:[t.jsxs("div",{className:"wrapper__title",children:[r&&t.jsxs("div",{className:"title__text",children:[R.isDefinedNotEmptyString(u)&&t.jsx("i",{className:u}),t.jsx("span",{children:r})]}),o&&!n&&t.jsx(h,{text:m,color:"neutral",borderRadius:"curved",btnType:"tinted",className:`title__action ${a?"grid":""}`,onClick:o})]}),l&&t.jsx("div",{className:"wrapper__subtitle",children:l})]}),t.jsx(M,{isLoading:n,keyPrefix:"shop-cards-skeleton",children:t.jsx("div",{className:"wrapper__cards",children:i==null?void 0:i.map((e,k)=>t.jsx($.ShopCard,{showRating:y,uuid:e==null?void 0:e.uuid,title:e==null?void 0:e.name,subtitle:e==null?void 0:e.shortDescription,rating:e==null?void 0:e.ratingArithmeticMean,reviewCount:e==null?void 0:e.reviewCount,products:e==null?void 0:e.products,imageComponent:e==null?void 0:e.imageComponent,onSelectCard:(F,C)=>x(e==null?void 0:e.uuid,C),image:c(e==null?void 0:e.profileImage,e==null?void 0:e.uuid)||null,getProductImage:d,canAcceptPayments:e==null?void 0:e.canAcceptPayments,hideProducts:b,metadata:{name:v,accessor:e==null?void 0:e.accessor},LinkComponent:j},`shop-card__${k+1}`))})}),a&&o&&!n&&t.jsx(h,{text:m,borderRadius:"curved",btnType:"basic",color:"neutral",className:"wrapper__view-all",onClick:o})]}));module.exports=P;
|
package/dist/ShopCardsSection.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { jsxs as l, jsx as r, Fragment as N } from "react/jsx-runtime";
|
|
2
|
-
import { Suspense as R, forwardRef as
|
|
3
|
-
import
|
|
4
|
-
import { S as
|
|
5
|
-
import {
|
|
6
|
-
import { s as
|
|
7
|
-
import {
|
|
8
|
-
import { S as
|
|
9
|
-
const
|
|
2
|
+
import { Suspense as R, forwardRef as j } from "react";
|
|
3
|
+
import u from "./Button.js";
|
|
4
|
+
import { S as z } from "./index-yARaIaLj.js";
|
|
5
|
+
import { l as M } from "./utils-B2fsQ6PS.js";
|
|
6
|
+
import { s as g } from "./emotion-styled.browser.esm-BNN1dTl3.js";
|
|
7
|
+
import { d as m } from "./breakpoints-ff0SIcV3.js";
|
|
8
|
+
import { S as F, a as s } from "./style-BwQ4djFC.js";
|
|
9
|
+
const D = g.div`
|
|
10
10
|
display: flex;
|
|
11
11
|
flex-direction: column;
|
|
12
12
|
align-items: flex-start;
|
|
@@ -75,6 +75,12 @@ const I = u.div`
|
|
|
75
75
|
width: 100%;
|
|
76
76
|
}
|
|
77
77
|
|
|
78
|
+
@media ${m("M")} {
|
|
79
|
+
& .wrapper__cards {
|
|
80
|
+
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
|
|
78
84
|
& .wrapper__view-all {
|
|
79
85
|
align-self: center;
|
|
80
86
|
color: var(--neutral-600, #0f2a46);
|
|
@@ -91,7 +97,7 @@ const I = u.div`
|
|
|
91
97
|
display: none;
|
|
92
98
|
}
|
|
93
99
|
|
|
94
|
-
@media
|
|
100
|
+
@media ${m("S")} {
|
|
95
101
|
gap: 1.25rem;
|
|
96
102
|
|
|
97
103
|
& .wrapper__view-all {
|
|
@@ -136,8 +142,8 @@ const I = u.div`
|
|
|
136
142
|
}`}
|
|
137
143
|
}
|
|
138
144
|
}
|
|
139
|
-
`,
|
|
140
|
-
@media
|
|
145
|
+
`, E = g(F)`
|
|
146
|
+
@media ${m("S")} {
|
|
141
147
|
& > div {
|
|
142
148
|
background: linear-gradient(
|
|
143
149
|
to right,
|
|
@@ -149,7 +155,7 @@ const I = u.div`
|
|
|
149
155
|
box-shadow: none;
|
|
150
156
|
}
|
|
151
157
|
}
|
|
152
|
-
`,
|
|
158
|
+
`, I = ({ keyPrefix: t }) => /* @__PURE__ */ l(E, { children: [
|
|
153
159
|
/* @__PURE__ */ r(
|
|
154
160
|
s,
|
|
155
161
|
{
|
|
@@ -182,12 +188,12 @@ const I = u.div`
|
|
|
182
188
|
},
|
|
183
189
|
`${t}-4`
|
|
184
190
|
)
|
|
185
|
-
] }),
|
|
191
|
+
] }), W = ({
|
|
186
192
|
keyPrefix: t,
|
|
187
193
|
isLoading: o = !1,
|
|
188
194
|
fallbackComponent: i = /* @__PURE__ */ r(N, {}),
|
|
189
195
|
children: n
|
|
190
|
-
}) => /* @__PURE__ */ r(R, { fallbackComponent: i, children: o === !0 ? /* @__PURE__ */ r(
|
|
196
|
+
}) => /* @__PURE__ */ r(R, { fallbackComponent: i, children: o === !0 ? /* @__PURE__ */ r(I, { keyPrefix: t }) : n }), Q = j(
|
|
191
197
|
({
|
|
192
198
|
title: t,
|
|
193
199
|
subtitle: o,
|
|
@@ -195,23 +201,23 @@ const I = u.div`
|
|
|
195
201
|
isLoading: n = !1,
|
|
196
202
|
limit: w = 4,
|
|
197
203
|
limitForMobile: _ = 2,
|
|
198
|
-
buttonText:
|
|
204
|
+
buttonText: f = "Show More",
|
|
199
205
|
onSelectCard: d = () => {
|
|
200
206
|
},
|
|
201
207
|
onButtonAction: a = () => {
|
|
202
208
|
},
|
|
203
|
-
icon:
|
|
209
|
+
icon: h,
|
|
204
210
|
getImage: b = () => {
|
|
205
211
|
},
|
|
206
|
-
getProductImage:
|
|
212
|
+
getProductImage: c = () => {
|
|
207
213
|
},
|
|
208
|
-
hideProducts:
|
|
209
|
-
showRating:
|
|
214
|
+
hideProducts: v = !1,
|
|
215
|
+
showRating: y = !0,
|
|
210
216
|
gridView: p = !1,
|
|
211
|
-
componentName:
|
|
217
|
+
componentName: x,
|
|
212
218
|
LinkComponent: S
|
|
213
219
|
}, C) => /* @__PURE__ */ l(
|
|
214
|
-
|
|
220
|
+
D,
|
|
215
221
|
{
|
|
216
222
|
ref: C,
|
|
217
223
|
limitCards: w,
|
|
@@ -221,13 +227,13 @@ const I = u.div`
|
|
|
221
227
|
/* @__PURE__ */ l("div", { className: "wrapper__heading", children: [
|
|
222
228
|
/* @__PURE__ */ l("div", { className: "wrapper__title", children: [
|
|
223
229
|
t && /* @__PURE__ */ l("div", { className: "title__text", children: [
|
|
224
|
-
|
|
230
|
+
M(h) && /* @__PURE__ */ r("i", { className: h }),
|
|
225
231
|
/* @__PURE__ */ r("span", { children: t })
|
|
226
232
|
] }),
|
|
227
233
|
a && !n && /* @__PURE__ */ r(
|
|
228
|
-
|
|
234
|
+
u,
|
|
229
235
|
{
|
|
230
|
-
text:
|
|
236
|
+
text: f,
|
|
231
237
|
color: "neutral",
|
|
232
238
|
borderRadius: "curved",
|
|
233
239
|
btnType: "tinted",
|
|
@@ -239,14 +245,14 @@ const I = u.div`
|
|
|
239
245
|
o && /* @__PURE__ */ r("div", { className: "wrapper__subtitle", children: o })
|
|
240
246
|
] }),
|
|
241
247
|
/* @__PURE__ */ r(
|
|
242
|
-
|
|
248
|
+
W,
|
|
243
249
|
{
|
|
244
250
|
isLoading: n,
|
|
245
251
|
keyPrefix: "shop-cards-skeleton",
|
|
246
252
|
children: /* @__PURE__ */ r("div", { className: "wrapper__cards", children: i == null ? void 0 : i.map((e, k) => /* @__PURE__ */ r(
|
|
247
|
-
|
|
253
|
+
z,
|
|
248
254
|
{
|
|
249
|
-
showRating:
|
|
255
|
+
showRating: y,
|
|
250
256
|
uuid: e == null ? void 0 : e.uuid,
|
|
251
257
|
title: e == null ? void 0 : e.name,
|
|
252
258
|
subtitle: e == null ? void 0 : e.shortDescription,
|
|
@@ -254,12 +260,12 @@ const I = u.div`
|
|
|
254
260
|
reviewCount: e == null ? void 0 : e.reviewCount,
|
|
255
261
|
products: e == null ? void 0 : e.products,
|
|
256
262
|
imageComponent: e == null ? void 0 : e.imageComponent,
|
|
257
|
-
onSelectCard: (
|
|
263
|
+
onSelectCard: (P, $) => d(e == null ? void 0 : e.uuid, $),
|
|
258
264
|
image: b(e == null ? void 0 : e.profileImage, e == null ? void 0 : e.uuid) || null,
|
|
259
|
-
getProductImage:
|
|
265
|
+
getProductImage: c,
|
|
260
266
|
canAcceptPayments: e == null ? void 0 : e.canAcceptPayments,
|
|
261
|
-
hideProducts:
|
|
262
|
-
metadata: { name:
|
|
267
|
+
hideProducts: v,
|
|
268
|
+
metadata: { name: x, accessor: e == null ? void 0 : e.accessor },
|
|
263
269
|
LinkComponent: S
|
|
264
270
|
},
|
|
265
271
|
`shop-card__${k + 1}`
|
|
@@ -267,9 +273,9 @@ const I = u.div`
|
|
|
267
273
|
}
|
|
268
274
|
),
|
|
269
275
|
p && a && !n && /* @__PURE__ */ r(
|
|
270
|
-
|
|
276
|
+
u,
|
|
271
277
|
{
|
|
272
|
-
text:
|
|
278
|
+
text: f,
|
|
273
279
|
borderRadius: "curved",
|
|
274
280
|
btnType: "basic",
|
|
275
281
|
color: "neutral",
|
|
@@ -282,5 +288,5 @@ const I = u.div`
|
|
|
282
288
|
)
|
|
283
289
|
);
|
|
284
290
|
export {
|
|
285
|
-
|
|
291
|
+
Q as default
|
|
286
292
|
};
|
package/dist/Sidebar.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const t=require("react/jsx-runtime"),o=require("react"),a=require("./emotion-styled.browser.esm-BtEseadx.cjs"),x=require("./Icon.cjs"),S=require("./utils-
|
|
1
|
+
"use strict";const t=require("react/jsx-runtime"),o=require("react"),a=require("./emotion-styled.browser.esm-BtEseadx.cjs"),x=require("./Icon.cjs"),S=require("./utils-CITgSxXe.cjs"),g=require("./emotion-element-f0de968e.browser.esm-B7k6i6lC.cjs"),y=a.styled.aside`
|
|
2
2
|
direction: ${e=>e.placement=="right"?"rtl":"ltr"};
|
|
3
3
|
position: relative;
|
|
4
4
|
&& {
|
package/dist/Sidebar.js
CHANGED
|
@@ -2,7 +2,7 @@ import { jsxs as u, jsx as s } from "react/jsx-runtime";
|
|
|
2
2
|
import { forwardRef as b, useState as g, useEffect as S } from "react";
|
|
3
3
|
import { s as o } from "./emotion-styled.browser.esm-BNN1dTl3.js";
|
|
4
4
|
import x from "./Icon.js";
|
|
5
|
-
import { u as C } from "./utils-
|
|
5
|
+
import { u as C } from "./utils-B2fsQ6PS.js";
|
|
6
6
|
import { u as $ } from "./emotion-element-f0de968e.browser.esm-CkCiQliQ.js";
|
|
7
7
|
const v = o.aside`
|
|
8
8
|
direction: ${(e) => e.placement == "right" ? "rtl" : "ltr"};
|
|
@@ -1,9 +1,13 @@
|
|
|
1
|
-
"use strict";const
|
|
1
|
+
"use strict";const r=require("react/jsx-runtime"),a=require("react"),b=require("./emotion-styled.browser.esm-BtEseadx.cjs"),m=require("./breakpoints-CcVm-gVm.cjs"),y=require("./useDetectMobile-DYV6V1yw.cjs"),u=require("./utils-CITgSxXe.cjs"),N=require("./style-DC05rdyx.cjs"),v=require("./Button.cjs"),R=require("./CategorySimpleCard-CIBvknos.cjs"),o=require("./style-BAcV7F53.cjs"),_=b.styled.div`
|
|
2
2
|
display: grid;
|
|
3
3
|
grid-template-columns: ${()=>"repeat(6, minmax(0, 1fr))"};
|
|
4
4
|
gap: 2rem;
|
|
5
5
|
|
|
6
|
-
@media
|
|
6
|
+
@media ${m.down("M")} {
|
|
7
|
+
grid-template-columns: repeat(3, minmax(0, 1fr));
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
@media ${m.down("S")} {
|
|
7
11
|
display: flex;
|
|
8
12
|
gap: 1rem;
|
|
9
13
|
overflow-x: auto;
|
|
@@ -22,10 +26,10 @@
|
|
|
22
26
|
/* Safari and Chrome */
|
|
23
27
|
}
|
|
24
28
|
}
|
|
25
|
-
`,
|
|
26
|
-
@media
|
|
29
|
+
`,f=b.styled(o.SkeletonColumnWrapper)`
|
|
30
|
+
@media ${m.down("S")} {
|
|
27
31
|
& .skeleton__cards {
|
|
28
32
|
overflow-x: hidden;
|
|
29
33
|
}
|
|
30
34
|
}
|
|
31
|
-
`,M=({keyPrefix:
|
|
35
|
+
`,M=({keyPrefix:t})=>r.jsxs(f,{children:[r.jsxs(o.SkeletonRowWrapper,{className:"skeleton__cards",children:[r.jsx(o.SkeletonSquarePlaceholder,{height:"8.25rem"},`${t}-1`),r.jsx(o.SkeletonSquarePlaceholder,{height:"8.25rem"},`${t}-2`),r.jsx(o.SkeletonSquarePlaceholder,{height:"8.25rem"},`${t}-3`),r.jsx(o.SkeletonSquarePlaceholder,{height:"8.25rem"},`${t}-4`),r.jsx(o.SkeletonSquarePlaceholder,{height:"8.25rem"},`${t}-5`),r.jsx(o.SkeletonSquarePlaceholder,{height:"8.25rem"},`${t}-6`)]}),r.jsx(o.SkeletonRowWrapper,{children:r.jsxs(o.SkeletonRowWrapper,{className:"skeleton__cards",children:[r.jsx(o.SkeletonSquarePlaceholder,{height:"8.25rem"},`${t}-7`),r.jsx(o.SkeletonSquarePlaceholder,{height:"8.25rem"},`${t}-8`),r.jsx(o.SkeletonSquarePlaceholder,{height:"8.25rem"},`${t}-9`),r.jsx(o.SkeletonSquarePlaceholder,{height:"8.25rem"},`${t}-10`),r.jsx(o.SkeletonSquarePlaceholder,{height:"8.25rem"},`${t}-11`),r.jsx(o.SkeletonSquarePlaceholder,{height:"8.25rem"},`${t}-12`)]})})]}),W=({keyPrefix:t,isLoading:c=!1,fallbackComponent:i=r.jsx(r.Fragment,{}),children:d})=>r.jsx(a.Suspense,{fallbackComponent:i,children:c===!0?r.jsx(M,{keyPrefix:t}):d}),k=a.memo(R.CategorySimpleCard),D=a.forwardRef((t,c)=>{const{icon:i,title:d="Shop by category",items:n,buttonText:h="Shop now",buttonLink:S,limit:p=12,onButtonAction:w=()=>{},onSelectCard:l=()=>{},isLoading:g=!1,getImage:j=()=>{},LinkComponent:q}=t,$=y.useDetectMobile(),C=a.useMemo(()=>r.jsx(r.Fragment,{children:$===!0?n==null?void 0:n.map((e,s)=>r.jsx(k,{uuid:e==null?void 0:e.uuid,image:j(e==null?void 0:e.image)||null,name:e==null?void 0:e.name,code:e==null?void 0:e.code,onSelectCard:()=>l==null?void 0:l(e==null?void 0:e.uuid),LinkComponent:q,...e},s)):n==null?void 0:n.slice(0,p).map((e,s)=>r.jsx(k,{uuid:e==null?void 0:e.uuid,image:j(e==null?void 0:e.image)||null,name:e==null?void 0:e.name,code:e==null?void 0:e.code,onSelectCard:()=>l==null?void 0:l(e==null?void 0:e.uuid),LinkComponent:q,...e},s))}),[n]);return r.jsxs(N.RegulatTitleSectionWrapper,{ref:c,children:[r.jsxs("div",{className:"regular-title",children:[r.jsxs("div",{className:"regular-title-text",children:[u.isDefinedNotEmptyString(i)&&r.jsx("i",{className:i}),r.jsx("span",{children:d})]}),u.isDefinedNotEmptyString(h)&&u.isDefinedNotEmptyString(S)&&!g&&r.jsx(v,{type:"button",btnType:"tinted",color:"neutral",onClick:e=>{var s;(s=e==null?void 0:e.target)==null||s.blur(),w(S)},borderRadius:"curved",className:"button-link",children:h})]}),r.jsx(W,{isLoading:g,keyPrefix:"simple-categories-skeleton",children:r.jsx(_,{limit:p,children:C})})]})});module.exports=D;
|
|
@@ -1,19 +1,23 @@
|
|
|
1
|
-
import { jsxs as l, jsx as
|
|
2
|
-
import { Suspense as M, memo as R, forwardRef as
|
|
3
|
-
import { s as
|
|
4
|
-
import {
|
|
5
|
-
import { u as
|
|
6
|
-
import {
|
|
7
|
-
import { R as
|
|
8
|
-
import
|
|
9
|
-
import { C as
|
|
10
|
-
import { b as
|
|
11
|
-
const
|
|
1
|
+
import { jsxs as l, jsx as r, Fragment as C } from "react/jsx-runtime";
|
|
2
|
+
import { Suspense as M, memo as R, forwardRef as W, useMemo as L } from "react";
|
|
3
|
+
import { s as v } from "./emotion-styled.browser.esm-BNN1dTl3.js";
|
|
4
|
+
import { d as u } from "./breakpoints-ff0SIcV3.js";
|
|
5
|
+
import { u as T } from "./useDetectMobile-CcVo3PNi.js";
|
|
6
|
+
import { l as c } from "./utils-B2fsQ6PS.js";
|
|
7
|
+
import { R as j } from "./style-BUyFad_y.js";
|
|
8
|
+
import y from "./Button.js";
|
|
9
|
+
import { C as z } from "./CategorySimpleCard-CkSwvJRw.js";
|
|
10
|
+
import { b as B, S as p, c as o } from "./style-BwQ4djFC.js";
|
|
11
|
+
const D = v.div`
|
|
12
12
|
display: grid;
|
|
13
13
|
grid-template-columns: ${() => "repeat(6, minmax(0, 1fr))"};
|
|
14
14
|
gap: 2rem;
|
|
15
15
|
|
|
16
|
-
@media
|
|
16
|
+
@media ${u("M")} {
|
|
17
|
+
grid-template-columns: repeat(3, minmax(0, 1fr));
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
@media ${u("S")} {
|
|
17
21
|
display: flex;
|
|
18
22
|
gap: 1rem;
|
|
19
23
|
overflow-x: auto;
|
|
@@ -32,90 +36,90 @@ const y = C.div`
|
|
|
32
36
|
/* Safari and Chrome */
|
|
33
37
|
}
|
|
34
38
|
}
|
|
35
|
-
`,
|
|
36
|
-
@media
|
|
39
|
+
`, E = v(B)`
|
|
40
|
+
@media ${u("S")} {
|
|
37
41
|
& .skeleton__cards {
|
|
38
42
|
overflow-x: hidden;
|
|
39
43
|
}
|
|
40
44
|
}
|
|
41
|
-
`,
|
|
45
|
+
`, F = ({ keyPrefix: t }) => /* @__PURE__ */ l(E, { children: [
|
|
42
46
|
/* @__PURE__ */ l(p, { className: "skeleton__cards", children: [
|
|
43
|
-
/* @__PURE__ */
|
|
44
|
-
/* @__PURE__ */
|
|
45
|
-
/* @__PURE__ */
|
|
46
|
-
/* @__PURE__ */
|
|
47
|
-
/* @__PURE__ */
|
|
48
|
-
/* @__PURE__ */
|
|
47
|
+
/* @__PURE__ */ r(o, { height: "8.25rem" }, `${t}-1`),
|
|
48
|
+
/* @__PURE__ */ r(o, { height: "8.25rem" }, `${t}-2`),
|
|
49
|
+
/* @__PURE__ */ r(o, { height: "8.25rem" }, `${t}-3`),
|
|
50
|
+
/* @__PURE__ */ r(o, { height: "8.25rem" }, `${t}-4`),
|
|
51
|
+
/* @__PURE__ */ r(o, { height: "8.25rem" }, `${t}-5`),
|
|
52
|
+
/* @__PURE__ */ r(o, { height: "8.25rem" }, `${t}-6`)
|
|
49
53
|
] }),
|
|
50
|
-
/* @__PURE__ */
|
|
51
|
-
/* @__PURE__ */
|
|
52
|
-
/* @__PURE__ */
|
|
53
|
-
/* @__PURE__ */
|
|
54
|
-
/* @__PURE__ */
|
|
55
|
-
/* @__PURE__ */
|
|
56
|
-
/* @__PURE__ */
|
|
54
|
+
/* @__PURE__ */ r(p, { children: /* @__PURE__ */ l(p, { className: "skeleton__cards", children: [
|
|
55
|
+
/* @__PURE__ */ r(o, { height: "8.25rem" }, `${t}-7`),
|
|
56
|
+
/* @__PURE__ */ r(o, { height: "8.25rem" }, `${t}-8`),
|
|
57
|
+
/* @__PURE__ */ r(o, { height: "8.25rem" }, `${t}-9`),
|
|
58
|
+
/* @__PURE__ */ r(o, { height: "8.25rem" }, `${t}-10`),
|
|
59
|
+
/* @__PURE__ */ r(o, { height: "8.25rem" }, `${t}-11`),
|
|
60
|
+
/* @__PURE__ */ r(o, { height: "8.25rem" }, `${t}-12`)
|
|
57
61
|
] }) })
|
|
58
|
-
] }),
|
|
59
|
-
keyPrefix:
|
|
62
|
+
] }), I = ({
|
|
63
|
+
keyPrefix: t,
|
|
60
64
|
isLoading: s = !1,
|
|
61
|
-
fallbackComponent: m = /* @__PURE__ */
|
|
65
|
+
fallbackComponent: m = /* @__PURE__ */ r(C, {}),
|
|
62
66
|
children: d
|
|
63
|
-
}) => /* @__PURE__ */
|
|
67
|
+
}) => /* @__PURE__ */ r(M, { fallbackComponent: m, children: s === !0 ? /* @__PURE__ */ r(F, { keyPrefix: t }) : d }), w = R(z), X = W((t, s) => {
|
|
64
68
|
const {
|
|
65
69
|
icon: m,
|
|
66
70
|
title: d = "Shop by category",
|
|
67
71
|
items: i,
|
|
68
72
|
buttonText: h = "Shop now",
|
|
69
|
-
buttonLink:
|
|
70
|
-
limit:
|
|
71
|
-
onButtonAction:
|
|
73
|
+
buttonLink: g,
|
|
74
|
+
limit: S = 12,
|
|
75
|
+
onButtonAction: k = () => {
|
|
72
76
|
},
|
|
73
77
|
onSelectCard: n = () => {
|
|
74
78
|
},
|
|
75
|
-
isLoading:
|
|
76
|
-
getImage:
|
|
79
|
+
isLoading: b = !1,
|
|
80
|
+
getImage: $ = () => {
|
|
77
81
|
},
|
|
78
|
-
LinkComponent:
|
|
79
|
-
} =
|
|
80
|
-
|
|
82
|
+
LinkComponent: f
|
|
83
|
+
} = t, N = T(), _ = L(() => /* @__PURE__ */ r(C, { children: N === !0 ? i == null ? void 0 : i.map((e, a) => /* @__PURE__ */ r(
|
|
84
|
+
w,
|
|
81
85
|
{
|
|
82
86
|
uuid: e == null ? void 0 : e.uuid,
|
|
83
|
-
image:
|
|
87
|
+
image: $(e == null ? void 0 : e.image) || null,
|
|
84
88
|
name: e == null ? void 0 : e.name,
|
|
85
89
|
code: e == null ? void 0 : e.code,
|
|
86
90
|
onSelectCard: () => n == null ? void 0 : n(e == null ? void 0 : e.uuid),
|
|
87
|
-
LinkComponent:
|
|
91
|
+
LinkComponent: f,
|
|
88
92
|
...e
|
|
89
93
|
},
|
|
90
94
|
a
|
|
91
|
-
)) : i == null ? void 0 : i.slice(0,
|
|
92
|
-
|
|
95
|
+
)) : i == null ? void 0 : i.slice(0, S).map((e, a) => /* @__PURE__ */ r(
|
|
96
|
+
w,
|
|
93
97
|
{
|
|
94
98
|
uuid: e == null ? void 0 : e.uuid,
|
|
95
|
-
image:
|
|
99
|
+
image: $(e == null ? void 0 : e.image) || null,
|
|
96
100
|
name: e == null ? void 0 : e.name,
|
|
97
101
|
code: e == null ? void 0 : e.code,
|
|
98
102
|
onSelectCard: () => n == null ? void 0 : n(e == null ? void 0 : e.uuid),
|
|
99
|
-
LinkComponent:
|
|
103
|
+
LinkComponent: f,
|
|
100
104
|
...e
|
|
101
105
|
},
|
|
102
106
|
a
|
|
103
107
|
)) }), [i]);
|
|
104
|
-
return /* @__PURE__ */ l(
|
|
108
|
+
return /* @__PURE__ */ l(j, { ref: s, children: [
|
|
105
109
|
/* @__PURE__ */ l("div", { className: "regular-title", children: [
|
|
106
110
|
/* @__PURE__ */ l("div", { className: "regular-title-text", children: [
|
|
107
|
-
c(m) && /* @__PURE__ */
|
|
108
|
-
/* @__PURE__ */
|
|
111
|
+
c(m) && /* @__PURE__ */ r("i", { className: m }),
|
|
112
|
+
/* @__PURE__ */ r("span", { children: d })
|
|
109
113
|
] }),
|
|
110
|
-
c(h) && c(
|
|
111
|
-
|
|
114
|
+
c(h) && c(g) && !b && /* @__PURE__ */ r(
|
|
115
|
+
y,
|
|
112
116
|
{
|
|
113
117
|
type: "button",
|
|
114
118
|
btnType: "tinted",
|
|
115
119
|
color: "neutral",
|
|
116
120
|
onClick: (e) => {
|
|
117
121
|
var a;
|
|
118
|
-
(a = e == null ? void 0 : e.target) == null || a.blur(),
|
|
122
|
+
(a = e == null ? void 0 : e.target) == null || a.blur(), k(g);
|
|
119
123
|
},
|
|
120
124
|
borderRadius: "curved",
|
|
121
125
|
className: "button-link",
|
|
@@ -123,16 +127,16 @@ const y = C.div`
|
|
|
123
127
|
}
|
|
124
128
|
)
|
|
125
129
|
] }),
|
|
126
|
-
/* @__PURE__ */
|
|
127
|
-
|
|
130
|
+
/* @__PURE__ */ r(
|
|
131
|
+
I,
|
|
128
132
|
{
|
|
129
|
-
isLoading:
|
|
133
|
+
isLoading: b,
|
|
130
134
|
keyPrefix: "simple-categories-skeleton",
|
|
131
|
-
children: /* @__PURE__ */
|
|
135
|
+
children: /* @__PURE__ */ r(D, { limit: S, children: _ })
|
|
132
136
|
}
|
|
133
137
|
)
|
|
134
138
|
] });
|
|
135
139
|
});
|
|
136
140
|
export {
|
|
137
|
-
|
|
141
|
+
X as default
|
|
138
142
|
};
|