@lanaco/lnc-react-ui 4.0.35 → 4.0.37
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/dist/Accordion.cjs +5 -5
- package/dist/Accordion.js +11 -11
- package/dist/AccordionDetails.cjs +1 -1
- package/dist/AccordionDetails.js +1 -1
- package/dist/AccordionSummary.cjs +1 -1
- package/dist/AccordionSummary.js +3 -3
- package/dist/ActionsToolbar.cjs +1 -1
- package/dist/ActionsToolbar.js +2 -2
- package/dist/Alert.cjs +1 -1
- package/dist/Alert.js +2 -2
- package/dist/Avatar.cjs +1 -1
- package/dist/Avatar.js +3 -3
- package/dist/Badge.cjs +2 -2
- package/dist/Badge.js +3 -3
- package/dist/BannerSectionBasic.cjs +1 -1
- package/dist/BannerSectionBasic.js +1 -1
- package/dist/BannerSectionCarousel.cjs +2 -2
- package/dist/BannerSectionCarousel.js +63 -63
- package/dist/BannerSectionGrid.cjs +3 -3
- package/dist/BannerSectionGrid.js +43 -39
- package/dist/BannerSectionSimple.cjs +1 -1
- package/dist/BannerSectionSimple.js +1 -1
- package/dist/BannerSectionWithList.cjs +1 -1
- package/dist/BannerSectionWithList.js +2 -2
- package/dist/BannerSectionWithListImage.cjs +1 -1
- package/dist/BannerSectionWithListImage.js +1 -1
- package/dist/BlogsSectionDetailed.cjs +1 -1
- package/dist/BlogsSectionDetailed.js +3 -3
- package/dist/BlogsSectionLarge.cjs +1 -1
- package/dist/BlogsSectionLarge.js +2 -2
- package/dist/BlogsSectionSimple.cjs +1 -1
- package/dist/BlogsSectionSimple.js +3 -3
- package/dist/BlogsSectionSimpleCentered.cjs +1 -1
- package/dist/BlogsSectionSimpleCentered.js +2 -2
- package/dist/BlogsSectionWithFilters.cjs +11 -108
- package/dist/BlogsSectionWithFilters.js +59 -437
- package/dist/BrandHitsSection.cjs +1 -1
- package/dist/BrandHitsSection.js +2 -2
- package/dist/Breadcrumbs.cjs +3 -3
- package/dist/Breadcrumbs.js +12 -12
- package/dist/Button.cjs +1 -1
- package/dist/Button.js +4 -4
- package/dist/ButtonGroup.cjs +1 -1
- package/dist/ButtonGroup.js +3 -3
- package/dist/CalorieCalculatorSection.cjs +333 -0
- package/dist/CalorieCalculatorSection.js +851 -0
- package/dist/CheckBoxInput.cjs +1 -1
- package/dist/CheckBoxInput.js +3 -3
- package/dist/Chip.cjs +2 -2
- package/dist/Chip.js +3 -3
- package/dist/ColorInput.cjs +1 -1
- package/dist/ColorInput.js +4 -4
- package/dist/ConfirmationForm.cjs +2 -2
- package/dist/ConfirmationForm.js +3 -3
- package/dist/CustomLoanMapSection.cjs +1 -1
- package/dist/CustomLoanMapSection.js +2 -2
- package/dist/{CustomStyles-BMY2-z7P.js → CustomStyles-BwnfUVvi.js} +8 -8
- package/dist/{CustomStyles-zroEcINq.cjs → CustomStyles-DUDHRSkh.cjs} +2 -2
- package/dist/DataView.cjs +1 -1
- package/dist/DataView.js +1 -1
- package/dist/DateInput.cjs +4 -4
- package/dist/DateInput.js +76 -80
- package/dist/DecimalInput.cjs +3 -3
- package/dist/DecimalInput.js +4 -4
- package/dist/DecimalInputV2.cjs +2 -2
- package/dist/DecimalInputV2.js +3 -3
- package/dist/DetailedProductsSection.cjs +1 -1
- package/dist/DetailedProductsSection.js +4 -4
- package/dist/DetailsView.cjs +2 -2
- package/dist/DetailsView.js +3 -3
- package/dist/DoubleRangeSlider.cjs +1 -1
- package/dist/DoubleRangeSlider.js +3 -3
- package/dist/DragAndDropFile.cjs +6 -6
- package/dist/DragAndDropFile.js +4 -4
- package/dist/DragDropFiles.cjs +1 -1
- package/dist/DragDropFiles.js +3 -3
- package/dist/Drawer.cjs +1 -1
- package/dist/Drawer.js +12 -12
- package/dist/Dropdown.cjs +1 -1
- package/dist/Dropdown.js +5 -5
- package/dist/DropdownItem.cjs +1 -1
- package/dist/DropdownItem.js +10 -10
- package/dist/DropdownLookup.cjs +1 -1
- package/dist/DropdownLookup.js +5 -5
- package/dist/DropdownMenu.cjs +1 -1
- package/dist/DropdownMenu.js +6 -6
- package/dist/EditableTable.cjs +1 -1
- package/dist/EditableTable.js +3 -3
- package/dist/FieldOfInterestsMasonrySection.cjs +6 -6
- package/dist/FieldOfInterestsMasonrySection.js +43 -42
- package/dist/FieldOfInterestsWithAvatarsCardsSection.cjs +1 -1
- package/dist/FieldOfInterestsWithAvatarsCardsSection.js +3 -3
- package/dist/FieldOfInterestsWithTagsCardsSection.cjs +3 -3
- package/dist/FieldOfInterestsWithTagsCardsSection.js +3 -3
- package/dist/FileInput.cjs +2 -2
- package/dist/FileInput.js +3 -3
- package/dist/FlexBox.cjs +1 -1
- package/dist/FlexBox.js +1 -1
- package/dist/FlexGridItem.cjs +1 -1
- package/dist/FlexGridItem.js +2 -2
- package/dist/FormField.cjs +1 -1
- package/dist/FormField.js +7 -7
- package/dist/FormView.cjs +2 -2
- package/dist/FormView.js +15 -15
- package/dist/GeneralWithTagsCardsSection.cjs +1 -1
- package/dist/GeneralWithTagsCardsSection.js +3 -3
- package/dist/GiftCardsSection.cjs +1 -1
- package/dist/GiftCardsSection.js +2 -2
- package/dist/Grid.cjs +1 -1
- package/dist/Grid.js +1 -1
- package/dist/GridItem.cjs +1 -1
- package/dist/GridItem.js +1 -1
- package/dist/Icon.cjs +2 -2
- package/dist/Icon.js +6 -6
- package/dist/IconButton.cjs +1 -1
- package/dist/IconButton.js +3 -3
- package/dist/Kanban.cjs +7 -7
- package/dist/Kanban.js +37 -41
- package/dist/KanbanActionsToolbar.cjs +1 -1
- package/dist/KanbanActionsToolbar.js +2 -2
- package/dist/{KanbanCard-BDyFaKYd.js → KanbanCard-BDRSqfVD.js} +2 -2
- package/dist/{KanbanCard-CofqdTrO.cjs → KanbanCard-CLOKZFYP.cjs} +1 -1
- package/dist/KanbanCard.cjs +1 -1
- package/dist/KanbanCard.js +3 -3
- package/dist/KanbanFooter.cjs +1 -1
- package/dist/KanbanFooter.js +2 -2
- package/dist/KanbanHeader.cjs +2 -2
- package/dist/KanbanHeader.js +2 -2
- package/dist/KanbanView.cjs +1 -1
- package/dist/KanbanView.js +3 -3
- package/dist/Link.cjs +2 -2
- package/dist/Link.js +6 -6
- package/dist/LocationSearchSection.cjs +53 -0
- package/dist/LocationSearchSection.js +108 -0
- package/dist/MasonryGeneralCardsSection.cjs +1 -1
- package/dist/MasonryGeneralCardsSection.js +3 -3
- package/dist/MenuItem.cjs +2 -2
- package/dist/MenuItem.js +3 -3
- package/dist/Modal.cjs +1 -1
- package/dist/Modal.js +6 -6
- package/dist/MultiSelectDropdown.cjs +1 -1
- package/dist/MultiSelectDropdown.js +3 -3
- package/dist/MultiSelectDropdownLookup.cjs +1 -1
- package/dist/MultiSelectDropdownLookup.js +3 -3
- package/dist/NestedDropdownItem.cjs +1 -1
- package/dist/NestedDropdownItem.js +9 -9
- package/dist/NestedMenuItem.cjs +2 -2
- package/dist/NestedMenuItem.js +8 -8
- package/dist/Notification.cjs +1 -1
- package/dist/Notification.js +1 -1
- package/dist/NotificationContainer.cjs +1 -1
- package/dist/NotificationContainer.js +3 -3
- package/dist/NotificationMessage.cjs +1 -1
- package/dist/NotificationMessage.js +3 -3
- package/dist/NumberInput.cjs +2 -2
- package/dist/NumberInput.js +4 -4
- package/dist/OverlayGeneralCardsSection.cjs +1 -1
- package/dist/OverlayGeneralCardsSection.js +3 -3
- package/dist/PageLayout.cjs +2 -2
- package/dist/PageLayout.js +2 -2
- package/dist/Pagination.cjs +2 -2
- package/dist/Pagination.js +2 -2
- package/dist/PasswordInput.cjs +2 -2
- package/dist/PasswordInput.js +4 -4
- package/dist/PopoverContent.cjs +1 -1
- package/dist/PopoverContent.js +5 -5
- package/dist/PopoverDescription.cjs +1 -1
- package/dist/PopoverDescription.js +1 -1
- package/dist/PopoverHeading.cjs +1 -1
- package/dist/PopoverHeading.js +1 -1
- package/dist/PopoverTrigger.cjs +1 -1
- package/dist/PopoverTrigger.js +1 -1
- package/dist/ProductsWithBannerSection.cjs +1 -1
- package/dist/ProductsWithBannerSection.js +3 -3
- package/dist/ProgressBar.cjs +1 -1
- package/dist/ProgressBar.js +8 -8
- package/dist/QuizSection.cjs +1 -1
- package/dist/QuizSection.js +2 -2
- package/dist/RadioGroup.cjs +1 -1
- package/dist/RadioGroup.js +2 -2
- package/dist/RadioInput.cjs +1 -1
- package/dist/RadioInput.js +3 -3
- package/dist/RangeSlider.cjs +2 -2
- package/dist/RangeSlider.js +3 -3
- package/dist/SalesCampaignsSection.cjs +423 -0
- package/dist/SalesCampaignsSection.js +967 -0
- package/dist/SearchBar.cjs +1 -1
- package/dist/SearchBar.js +6 -6
- package/dist/Separator.cjs +1 -1
- package/dist/Separator.js +3 -3
- package/dist/ShopCardsSection.cjs +1 -1
- package/dist/ShopCardsSection.js +2 -2
- package/dist/Sidebar.cjs +1 -1
- package/dist/Sidebar.js +3 -3
- package/dist/SimpleCategoriesSection.cjs +9 -9
- package/dist/SimpleCategoriesSection.js +48 -44
- package/dist/SimpleProductsSection.cjs +1 -1
- package/dist/SimpleProductsSection.js +3 -3
- package/dist/Spinner.cjs +1 -1
- package/dist/Spinner.js +12 -12
- package/dist/Surface.cjs +2 -2
- package/dist/Surface.js +3 -3
- package/dist/SwipeableDrawer.cjs +2 -2
- package/dist/SwipeableDrawer.js +3 -3
- package/dist/TabItem.cjs +1 -1
- package/dist/TabItem.js +11 -11
- package/dist/Table.cjs +7 -7
- package/dist/Table.js +4 -4
- package/dist/TableView.cjs +1 -1
- package/dist/TableView.js +2 -2
- package/dist/Tabs.cjs +2 -2
- package/dist/Tabs.js +2 -2
- package/dist/TextAreaInput.cjs +12 -12
- package/dist/TextAreaInput.js +124 -112
- package/dist/TextInput.cjs +2 -2
- package/dist/TextInput.js +4 -4
- package/dist/ThemeProvider.cjs +10 -10
- package/dist/ThemeProvider.js +189 -187
- package/dist/TimeInput.cjs +2 -2
- package/dist/TimeInput.js +4 -4
- package/dist/Toggle.cjs +15 -15
- package/dist/Toggle.js +40 -50
- package/dist/TreeMenu.cjs +1 -1
- package/dist/TreeMenu.js +1 -1
- package/dist/TreeMenuSeparator.cjs +1 -1
- package/dist/TreeMenuSeparator.js +3 -3
- package/dist/UploadedFile.cjs +2 -2
- package/dist/UploadedFile.js +16 -16
- package/dist/UrgentSaleProductsSection.cjs +1 -1
- package/dist/UrgentSaleProductsSection.js +2 -2
- package/dist/{defineProperty-DHvxLH8G.cjs → defineProperty-CqVRDJI8.cjs} +1 -1
- package/dist/{defineProperty-B5pLF6px.js → defineProperty-DF3p0mVo.js} +5 -5
- package/dist/emotion-element-f0de968e.browser.esm-B7k6i6lC.cjs +1 -0
- package/dist/emotion-element-f0de968e.browser.esm-CkCiQliQ.js +877 -0
- package/dist/{emotion-is-prop-valid.esm-CMrshNb7.cjs → emotion-is-prop-valid.esm-BNsx9k19.cjs} +1 -1
- package/dist/{emotion-is-prop-valid.esm-DkbeH1Xy.js → emotion-is-prop-valid.esm-CbWxtx4i.js} +1 -1
- package/dist/emotion-react.browser.esm-1R69UXoj.cjs +1 -0
- package/dist/emotion-react.browser.esm-C6iWxXPG.js +95 -0
- package/dist/{emotion-styled.browser.esm-BiK8DcgW.js → emotion-styled.browser.esm-CjCaF13H.js} +55 -53
- package/dist/emotion-styled.browser.esm-Cle7tAM9.cjs +1 -0
- package/dist/floating-ui.dom-CFbLeFcw.cjs +1 -0
- package/dist/floating-ui.dom-vNhdy5RI.js +947 -0
- package/dist/{floating-ui.react.esm-C4vrBVJU.cjs → floating-ui.react.esm-7Yt4LHw6.cjs} +1 -1
- package/dist/{floating-ui.react.esm-72DKnou_.js → floating-ui.react.esm-umB-tMXa.js} +3 -3
- package/dist/{index--Kmch3aI.js → index-64mXPFBC.js} +6724 -6724
- package/dist/{index-CvebWhtp.js → index-BlxaTV-D.js} +1 -1
- package/dist/{index-CkPex_K5.js → index-CHkb_Sj6.js} +2 -2
- package/dist/index-CT6_7UFb.js +350 -0
- package/dist/index-Cb_AeN9A.cjs +4 -0
- package/dist/{index-CNBqQrtK.js → index-CkWvbrVT.js} +1 -1
- package/dist/{index-BUChtubz.js → index-D-c5IxDk.js} +1 -1
- package/dist/{index-DKztZfzw.js → index-D6g5ZqyJ.js} +2 -2
- package/dist/{index-BP5r5zGN.cjs → index-DZoWlChs.cjs} +1 -1
- package/dist/{index-B67WqHGh.cjs → index-Dit169OA.cjs} +1 -1
- package/dist/{index-BmobrEkT.cjs → index-Dj5wZCVs.cjs} +1 -1
- package/dist/{index-CTJZaJ_S.js → index-DxdBg_r_.js} +1 -1
- package/dist/index-EeoArxOx.cjs +174 -0
- package/dist/index-Q_i-aqsF.cjs +95 -0
- package/dist/{index-C5vAqIS6.cjs → index-vXmvgZ2Y.cjs} +1 -1
- package/dist/index-wy-PXQR9.js +47 -0
- package/dist/index.cjs +1 -1
- package/dist/index.js +96 -92
- package/dist/{motion-Oud-wpUz.cjs → motion-B_VPZaJq.cjs} +1 -1
- package/dist/{motion-ecIGZGwI.js → motion-Ckekul_K.js} +1 -1
- package/dist/objectWithoutPropertiesLoose-BLga_MQA.cjs +1 -0
- package/dist/{objectWithoutPropertiesLoose-DwEN6RBQ.js → objectWithoutPropertiesLoose-DhwSMsjf.js} +1 -1
- package/dist/{react-toastify.esm-CkXGwKXL.js → react-toastify.esm--2awuizG.js} +1 -1
- package/dist/{react-toastify.esm-Dqcb4SQT.cjs → react-toastify.esm-Dq1k28O7.cjs} +1 -1
- package/dist/{style-BGQ1B_dp.js → style-6tSw9aqK.js} +1 -1
- package/dist/{style-BEUISPP7.cjs → style-BR3tIhP1.cjs} +1 -1
- package/dist/usePopover.cjs +1 -1
- package/dist/usePopover.js +6 -6
- package/dist/{utils-jiuifwtJ.js → utils-DtRLzzTZ.js} +224 -73
- package/dist/utils-NZLCh-J5.cjs +51 -0
- package/package.json +5 -2
- package/vite.config.js +12 -1
- package/dist/emotion-element-5486c51c.browser.esm-Bb4VkP8U.js +0 -886
- package/dist/emotion-element-5486c51c.browser.esm-QRQ5FSjv.cjs +0 -1
- package/dist/emotion-react.browser.esm-CN-s34fZ.js +0 -94
- package/dist/emotion-react.browser.esm-D7h2t2Bz.cjs +0 -1
- package/dist/emotion-styled.browser.esm-Cbp_XsK4.cjs +0 -1
- package/dist/floating-ui.dom-1F2mTXOe.cjs +0 -1
- package/dist/floating-ui.dom-BdUovkEr.js +0 -938
- package/dist/index-Ct1N7fF4.cjs +0 -174
- package/dist/objectWithoutPropertiesLoose-Bz3hwpmU.cjs +0 -1
- package/dist/utils-scuIeOqU.cjs +0 -51
|
@@ -1,27 +1,22 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import
|
|
3
|
-
import { n as
|
|
4
|
-
import { M as
|
|
5
|
-
import { u as
|
|
6
|
-
import { m as
|
|
7
|
-
import { T
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import {
|
|
11
|
-
|
|
12
|
-
import L from "./IconButton.js";
|
|
13
|
-
import { useTheme as se } from "./ThemeProvider.js";
|
|
14
|
-
import { u as ce } from "./useUpdateEffect-CuYWz7EA.js";
|
|
15
|
-
import de from "./Icon.js";
|
|
16
|
-
const me = I.div`
|
|
1
|
+
import { jsxs as i, jsx as t } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as g } from "react";
|
|
3
|
+
import { n as p } from "./emotion-styled.browser.esm-CjCaF13H.js";
|
|
4
|
+
import { M as b } from "./consts-C1uHV4xc.js";
|
|
5
|
+
import { u as C } from "./useDetectMobile-BC6EGaBc.js";
|
|
6
|
+
import { m as s, t as N, k as u } from "./utils-DtRLzzTZ.js";
|
|
7
|
+
import { T } from "./style-6tSw9aqK.js";
|
|
8
|
+
import $ from "./Button.js";
|
|
9
|
+
import W from "./Link.js";
|
|
10
|
+
import { S as B } from "./index-CT6_7UFb.js";
|
|
11
|
+
const M = p.div`
|
|
17
12
|
display: grid;
|
|
18
|
-
grid-template-columns: ${(
|
|
13
|
+
grid-template-columns: ${(o) => `repeat(${o.limit}, minmax(0, 1fr))`};
|
|
19
14
|
gap: 1.25rem;
|
|
20
15
|
|
|
21
|
-
@media (max-width: ${
|
|
16
|
+
@media (max-width: ${b + "px"}) {
|
|
22
17
|
grid-template-columns: repeat(1, 1fr);
|
|
23
18
|
}
|
|
24
|
-
`,
|
|
19
|
+
`, w = p.div`
|
|
25
20
|
display: flex;
|
|
26
21
|
width: 100%;
|
|
27
22
|
box-shadow: 0px 1px 3px 0px rgba(0, 0, 0, 0.1),
|
|
@@ -50,16 +45,16 @@ const me = I.div`
|
|
|
50
45
|
min-height: 3.3125rem;
|
|
51
46
|
max-height: 3.3125rem;
|
|
52
47
|
border-radius: 0.75rem;
|
|
53
|
-
background-color: ${
|
|
48
|
+
background-color: ${s("-90deg")};
|
|
54
49
|
}
|
|
55
50
|
|
|
56
51
|
& a {
|
|
57
52
|
margin-top: auto;
|
|
58
53
|
}
|
|
59
54
|
|
|
60
|
-
@media (max-width: ${
|
|
55
|
+
@media (max-width: ${b + "px"}) {
|
|
61
56
|
}
|
|
62
|
-
`,
|
|
57
|
+
`, k = p.div`
|
|
63
58
|
display: flex;
|
|
64
59
|
flex-direction: column;
|
|
65
60
|
gap: 0.5rem;
|
|
@@ -73,464 +68,91 @@ const me = I.div`
|
|
|
73
68
|
& .skeleton-title {
|
|
74
69
|
height: 1.5rem;
|
|
75
70
|
width: 80%;
|
|
76
|
-
background-color: ${
|
|
71
|
+
background-color: ${s("-90deg")};
|
|
77
72
|
}
|
|
78
73
|
|
|
79
74
|
& .skeleton-action {
|
|
80
75
|
height: 1.25rem;
|
|
81
76
|
width: 20%;
|
|
82
|
-
background-color: ${
|
|
77
|
+
background-color: ${s("-90deg")};
|
|
83
78
|
}
|
|
84
79
|
|
|
85
80
|
& .text-wr {
|
|
86
81
|
font-weight: 400;
|
|
87
82
|
font-size: 0.875rem;
|
|
88
83
|
color: var(--gray-700, #4e555f);
|
|
89
|
-
${
|
|
84
|
+
${N(3)}
|
|
90
85
|
}
|
|
91
86
|
`;
|
|
92
|
-
|
|
93
|
-
/* @__PURE__ */
|
|
87
|
+
g(({}, o) => /* @__PURE__ */ i(w, { className: "blog-card", children: [
|
|
88
|
+
/* @__PURE__ */ i(k, { children: [
|
|
94
89
|
/* @__PURE__ */ t("div", { className: "skeleton-title" }),
|
|
95
90
|
/* @__PURE__ */ t("div", { className: "text-wr" }),
|
|
96
91
|
/* @__PURE__ */ t("div", { className: "skeleton-action" })
|
|
97
92
|
] }),
|
|
98
93
|
/* @__PURE__ */ t("div", { className: "skeleton-img" })
|
|
99
94
|
] }));
|
|
100
|
-
const
|
|
101
|
-
const { title:
|
|
95
|
+
const f = g((o, v) => {
|
|
96
|
+
const { title: l, image: m, text: r, buttonText: d, onCardClick: a } = o;
|
|
102
97
|
return (
|
|
103
98
|
// <SimpleBlogCardHorizontalSkeleton />
|
|
104
|
-
/* @__PURE__ */
|
|
105
|
-
/* @__PURE__ */
|
|
106
|
-
/* @__PURE__ */ t("div", { className: "text-wr-title", children:
|
|
107
|
-
/* @__PURE__ */ t("div", { className: "text-wr", children:
|
|
108
|
-
/* @__PURE__ */ t(
|
|
99
|
+
/* @__PURE__ */ i(w, { className: "blog-card", onClick: a, children: [
|
|
100
|
+
/* @__PURE__ */ i(k, { children: [
|
|
101
|
+
/* @__PURE__ */ t("div", { className: "text-wr-title", children: l }),
|
|
102
|
+
/* @__PURE__ */ t("div", { className: "text-wr", children: r }),
|
|
103
|
+
/* @__PURE__ */ t(W, { color: "gray", onClick: a, children: d })
|
|
109
104
|
] }),
|
|
110
|
-
/* @__PURE__ */ t("img", { src:
|
|
105
|
+
/* @__PURE__ */ t("img", { src: m })
|
|
111
106
|
] })
|
|
112
107
|
);
|
|
113
|
-
}),
|
|
114
|
-
position: relative;
|
|
115
|
-
padding: ${(r) => r.padding};
|
|
116
|
-
|
|
117
|
-
& button {
|
|
118
|
-
white-space: nowrap;
|
|
119
|
-
}
|
|
120
|
-
|
|
121
|
-
& .badge-button {
|
|
122
|
-
${(r) => r.showTimesBtn === !0 && "padding-left: 0.5rem; padding-right: 0.5rem;"}
|
|
123
|
-
}
|
|
124
|
-
|
|
125
|
-
& .gradient {
|
|
126
|
-
position: absolute;
|
|
127
|
-
top: 50%;
|
|
128
|
-
transform: translate(0, -50%);
|
|
129
|
-
z-index: 4;
|
|
130
|
-
transition: ${"0.3s"};
|
|
131
|
-
right: ${(r) => r.noArrows !== !0 ? "6rem" : "0"};
|
|
132
|
-
width: 2rem;
|
|
133
|
-
background: #fff;
|
|
134
|
-
height: 100%;
|
|
135
|
-
-webkit-mask-image: linear-gradient(to left, black 10%, transparent 50%);
|
|
136
|
-
mask-image: linear-gradient(to left, black 10%, transparent 50%);
|
|
137
|
-
}
|
|
138
|
-
|
|
139
|
-
& .scrollable-container {
|
|
140
|
-
max-width: -webkit-fill-available;
|
|
141
|
-
max-width: -moz-available; /* WebKit-based browsers will ignore this. */
|
|
142
|
-
max-width: fill-available;
|
|
143
|
-
|
|
144
|
-
${(r) => r.rightAlignArrows === !0 && r.noArrows !== !0 && "margin-right: 6rem"};
|
|
145
|
-
scroll-behavior: smooth;
|
|
146
|
-
overflow: hidden;
|
|
147
|
-
-webkit-overflow-scrolling: touch;
|
|
148
|
-
::-webkit-scrollbar {
|
|
149
|
-
-webkit-appearance: none;
|
|
150
|
-
}
|
|
151
|
-
-ms-overflow-style: none;
|
|
152
|
-
/* Internet Explorer 10+ */
|
|
153
|
-
scrollbar-width: none;
|
|
154
|
-
/* Firefox */
|
|
155
|
-
|
|
156
|
-
&::-webkit-scrollbar {
|
|
157
|
-
display: none;
|
|
158
|
-
/* Safari and Chrome */
|
|
159
|
-
}
|
|
160
|
-
|
|
161
|
-
@media (max-width: ${R + "px"}) {
|
|
162
|
-
margin-right: 0;
|
|
163
|
-
}
|
|
164
|
-
}
|
|
165
|
-
& .scroll-arrow-right,
|
|
166
|
-
& .scroll-arrow-left {
|
|
167
|
-
position: absolute;
|
|
168
|
-
top: 50%;
|
|
169
|
-
transform: translate(0, -50%);
|
|
170
|
-
display: flex;
|
|
171
|
-
justify-content: center;
|
|
172
|
-
align-items: center;
|
|
173
|
-
cursor: pointer;
|
|
174
|
-
|
|
175
|
-
visibility: ${(r) => r.arrowsVisibleOnHover === !1 && r.hasOverflow ? "visible" : "hidden"};
|
|
176
|
-
z-index: 4;
|
|
177
|
-
transition: ${"0.3s"};
|
|
178
|
-
}
|
|
179
|
-
& .scroll-arrow-right {
|
|
180
|
-
${(r) => r.rightAlignArrows === !0 ? "right: 0" : "right: 0.7rem"};
|
|
181
|
-
}
|
|
182
|
-
& .scroll-arrow-left {
|
|
183
|
-
${(r) => r.rightAlignArrows === !0 ? "right: 2.625rem" : "left: 0.7rem"};
|
|
184
|
-
}
|
|
185
|
-
& .scrollable-container:hover > .scroll-arrow-left,
|
|
186
|
-
& .scrollable-container:hover > .scroll-arrow-right {
|
|
187
|
-
visibility: ${(r) => r.hasOverflow ? "visible" : "hidden"};
|
|
188
|
-
}
|
|
189
|
-
|
|
190
|
-
@media (max-width: ${R + "px"}) {
|
|
191
|
-
& .scrollable-container {
|
|
192
|
-
overflow: auto;
|
|
193
|
-
}
|
|
194
|
-
& .scroll-arrow-left,
|
|
195
|
-
& .scroll-arrow-right {
|
|
196
|
-
display: none;
|
|
197
|
-
}
|
|
198
|
-
|
|
199
|
-
& .gradient {
|
|
200
|
-
right: 0;
|
|
201
|
-
}
|
|
202
|
-
|
|
203
|
-
& .scrollable-container button:nth-of-type(3) {
|
|
204
|
-
${(r) => r.noMargin !== !0 && "margin-left: 1rem"};
|
|
205
|
-
}
|
|
206
|
-
}
|
|
207
|
-
`, ge = (r) => {
|
|
208
|
-
const [b, a] = $(!1), n = re(
|
|
209
|
-
() => new IntersectionObserver(
|
|
210
|
-
([i]) => a(i.isIntersecting)
|
|
211
|
-
),
|
|
212
|
-
[]
|
|
213
|
-
);
|
|
214
|
-
return j(() => (n.observe(r.current), () => {
|
|
215
|
-
n.disconnect();
|
|
216
|
-
}), [r, n]), b;
|
|
217
|
-
}, he = I.div`
|
|
218
|
-
min-height: 1px;
|
|
219
|
-
${(r) => r.isHorizontal === !0 ? "min-width: 1px; width: 1px;" : "width: 100%;"}
|
|
220
|
-
`, K = C((r, b) => {
|
|
221
|
-
const {
|
|
222
|
-
onIsVisible: a = () => {
|
|
223
|
-
},
|
|
224
|
-
onIsNotVisible: n,
|
|
225
|
-
isHorizontal: i = !1,
|
|
226
|
-
className: u = ""
|
|
227
|
-
} = r, s = x(null), d = ge(s);
|
|
228
|
-
return ce(() => {
|
|
229
|
-
d ? a() : n == null || n();
|
|
230
|
-
}, [d]), /* @__PURE__ */ t(
|
|
231
|
-
he,
|
|
232
|
-
{
|
|
233
|
-
ref: s,
|
|
234
|
-
className: `scroller-element ${u}`,
|
|
235
|
-
isHorizontal: i
|
|
236
|
-
}
|
|
237
|
-
);
|
|
238
|
-
});
|
|
239
|
-
K.propTypes = {
|
|
240
|
-
onIsVisible: o.func,
|
|
241
|
-
/**
|
|
242
|
-
* For horizontal scroll InfiniteScrollEndElement has to have some widh otherwise it won't ever be visible and trigger onIsVisible callback
|
|
243
|
-
*/
|
|
244
|
-
isHorizontal: o.bool
|
|
245
|
-
};
|
|
246
|
-
const Z = ee.forwardRef(
|
|
247
|
-
({
|
|
248
|
-
columnGap: r = "2rem",
|
|
249
|
-
rowGap: b = "1.25rem",
|
|
250
|
-
scrollBySize: a = 300,
|
|
251
|
-
wrapForMobile: n = !1,
|
|
252
|
-
wrap: i = !1,
|
|
253
|
-
children: u,
|
|
254
|
-
methodsRef: s,
|
|
255
|
-
arrowsVisibleOnHover: d = !0,
|
|
256
|
-
rightAlignArrows: S = !1,
|
|
257
|
-
padding: p = "0",
|
|
258
|
-
showTimesBtn: w,
|
|
259
|
-
noArrows: e,
|
|
260
|
-
noGradient: h = !1,
|
|
261
|
-
hideDisabledArrows: v = !1,
|
|
262
|
-
noMargin: k = !1,
|
|
263
|
-
...A
|
|
264
|
-
}, B) => {
|
|
265
|
-
const W = P(), { theme: l } = se(), [g, N] = $(!1), [y, T] = $(!1), [J, O] = $(!0), m = x(), E = () => {
|
|
266
|
-
var f;
|
|
267
|
-
(f = m.current) == null || f.scrollBy(a, 0);
|
|
268
|
-
}, V = () => {
|
|
269
|
-
var f;
|
|
270
|
-
(f = m.current) == null || f.scrollBy(-a, 0);
|
|
271
|
-
}, [M, Q] = $(!1);
|
|
272
|
-
j(() => {
|
|
273
|
-
var f, D;
|
|
274
|
-
Q(
|
|
275
|
-
((f = m == null ? void 0 : m.current) == null ? void 0 : f.scrollWidth) > ((D = m == null ? void 0 : m.current) == null ? void 0 : D.clientWidth)
|
|
276
|
-
);
|
|
277
|
-
}, [u]), te(s, () => ({
|
|
278
|
-
scrollToEnd() {
|
|
279
|
-
Y();
|
|
280
|
-
},
|
|
281
|
-
scrollLeft() {
|
|
282
|
-
V();
|
|
283
|
-
},
|
|
284
|
-
scrollRight() {
|
|
285
|
-
E();
|
|
286
|
-
}
|
|
287
|
-
}));
|
|
288
|
-
const Y = () => {
|
|
289
|
-
m.current.scrollLeft = m.current.scrollWidth;
|
|
290
|
-
};
|
|
291
|
-
return /* @__PURE__ */ t(
|
|
292
|
-
ue,
|
|
293
|
-
{
|
|
294
|
-
ref: B,
|
|
295
|
-
arrowsVisibleOnHover: d,
|
|
296
|
-
hasOverflow: M,
|
|
297
|
-
noArrows: e,
|
|
298
|
-
padding: p,
|
|
299
|
-
rightAlignArrows: S,
|
|
300
|
-
showTimesBtn: w,
|
|
301
|
-
theme: l,
|
|
302
|
-
noMargin: k,
|
|
303
|
-
...A,
|
|
304
|
-
children: /* @__PURE__ */ c(
|
|
305
|
-
ae,
|
|
306
|
-
{
|
|
307
|
-
ref: m,
|
|
308
|
-
className: "scrollable-container",
|
|
309
|
-
columnGap: r,
|
|
310
|
-
rowGap: b,
|
|
311
|
-
wrap: i || n && W ? "Wrap" : "NoWrap",
|
|
312
|
-
children: [
|
|
313
|
-
e !== !0 && /* @__PURE__ */ c(_, { children: [
|
|
314
|
-
!(v === !0 && y === !0) && /* @__PURE__ */ t(
|
|
315
|
-
L,
|
|
316
|
-
{
|
|
317
|
-
borderRadius: "curved",
|
|
318
|
-
btnType: "tinted",
|
|
319
|
-
className: "scroll-arrow-left",
|
|
320
|
-
color: "neutral",
|
|
321
|
-
disabled: y,
|
|
322
|
-
icon: "angle-left",
|
|
323
|
-
onClick: V
|
|
324
|
-
}
|
|
325
|
-
),
|
|
326
|
-
!(v === !0 && g === !0) && /* @__PURE__ */ t(
|
|
327
|
-
L,
|
|
328
|
-
{
|
|
329
|
-
borderRadius: "curved",
|
|
330
|
-
btnType: "tinted",
|
|
331
|
-
className: "scroll-arrow-right",
|
|
332
|
-
color: "neutral",
|
|
333
|
-
disabled: g,
|
|
334
|
-
icon: "angle-right",
|
|
335
|
-
onClick: E
|
|
336
|
-
}
|
|
337
|
-
)
|
|
338
|
-
] }),
|
|
339
|
-
/* @__PURE__ */ t(
|
|
340
|
-
K,
|
|
341
|
-
{
|
|
342
|
-
isHorizontal: !0,
|
|
343
|
-
onIsNotVisible: () => {
|
|
344
|
-
y === !0 && T(!1);
|
|
345
|
-
},
|
|
346
|
-
onIsVisible: () => {
|
|
347
|
-
y === !1 && T(!0);
|
|
348
|
-
}
|
|
349
|
-
}
|
|
350
|
-
),
|
|
351
|
-
u,
|
|
352
|
-
/* @__PURE__ */ t(
|
|
353
|
-
K,
|
|
354
|
-
{
|
|
355
|
-
className: "right-scroller",
|
|
356
|
-
isHorizontal: !0,
|
|
357
|
-
onIsNotVisible: () => {
|
|
358
|
-
g === !0 && N(!1), O(!0);
|
|
359
|
-
},
|
|
360
|
-
onIsVisible: () => {
|
|
361
|
-
g === !1 && N(!0), O(!1);
|
|
362
|
-
}
|
|
363
|
-
}
|
|
364
|
-
),
|
|
365
|
-
J && M && h !== !0 && /* @__PURE__ */ t("div", { className: "gradient" })
|
|
366
|
-
]
|
|
367
|
-
}
|
|
368
|
-
)
|
|
369
|
-
}
|
|
370
|
-
);
|
|
371
|
-
}
|
|
372
|
-
);
|
|
373
|
-
Z.propTypes = {
|
|
374
|
-
title: o.string,
|
|
375
|
-
rowGap: o.string,
|
|
376
|
-
columnGap: o.string,
|
|
377
|
-
scrollBySize: o.number,
|
|
378
|
-
wrapForMobile: o.bool,
|
|
379
|
-
wrap: o.bool,
|
|
380
|
-
methodsRef: o.any,
|
|
381
|
-
arrowsVisibleOnHover: o.bool,
|
|
382
|
-
rightAlignArrows: o.bool,
|
|
383
|
-
padding: o.string
|
|
384
|
-
};
|
|
385
|
-
const q = C((r, b) => {
|
|
386
|
-
const {
|
|
387
|
-
allButton: a = !0,
|
|
388
|
-
items: n = [],
|
|
389
|
-
selectedIds: i = [],
|
|
390
|
-
onSelect: u = () => {
|
|
391
|
-
},
|
|
392
|
-
onRemove: s = () => {
|
|
393
|
-
},
|
|
394
|
-
onSelectAll: d = () => {
|
|
395
|
-
},
|
|
396
|
-
className: S,
|
|
397
|
-
showTimesBtn: p = !1,
|
|
398
|
-
labelKey: w = "label",
|
|
399
|
-
valueKey: e = "value",
|
|
400
|
-
codeKey: h = "code",
|
|
401
|
-
uniqueKey: v,
|
|
402
|
-
typeKey: k,
|
|
403
|
-
productsToolbarName: A = "All",
|
|
404
|
-
...B
|
|
405
|
-
} = r, W = (l, g, N, y, T) => {
|
|
406
|
-
i != null && i.includes(l) ? s(l, g, N, y, T) : u(l, g, N, y, T);
|
|
407
|
-
};
|
|
408
|
-
return /* @__PURE__ */ c(
|
|
409
|
-
Z,
|
|
410
|
-
{
|
|
411
|
-
arrowsVisibleOnHover: !1,
|
|
412
|
-
className: S,
|
|
413
|
-
columnGap: "0.75rem",
|
|
414
|
-
padding: "0.25rem 0",
|
|
415
|
-
rightAlignArrows: !0,
|
|
416
|
-
showTimesBtn: p,
|
|
417
|
-
...B,
|
|
418
|
-
children: [
|
|
419
|
-
a && /* @__PURE__ */ t(
|
|
420
|
-
H,
|
|
421
|
-
{
|
|
422
|
-
borderRadius: "curved",
|
|
423
|
-
btnType: i.length === 0 ? "filled" : "tinted",
|
|
424
|
-
className: "badge-button",
|
|
425
|
-
color: "neutral",
|
|
426
|
-
onClick: d,
|
|
427
|
-
children: A
|
|
428
|
-
}
|
|
429
|
-
),
|
|
430
|
-
n.map((l, g) => /* @__PURE__ */ c(
|
|
431
|
-
H,
|
|
432
|
-
{
|
|
433
|
-
borderRadius: "curved",
|
|
434
|
-
btnType: i.includes(l.uuid) ? "filled" : "tinted",
|
|
435
|
-
className: "badge-button",
|
|
436
|
-
color: "neutral",
|
|
437
|
-
onClick: () => W(
|
|
438
|
-
l[e],
|
|
439
|
-
l[w],
|
|
440
|
-
l[h],
|
|
441
|
-
v ? l[v] : null,
|
|
442
|
-
k ? l[k] : null
|
|
443
|
-
),
|
|
444
|
-
children: [
|
|
445
|
-
oe(l == null ? void 0 : l.icon) && /* @__PURE__ */ c(_, { children: [
|
|
446
|
-
/* @__PURE__ */ t("i", { className: l == null ? void 0 : l.icon }),
|
|
447
|
-
" "
|
|
448
|
-
] }),
|
|
449
|
-
l[w],
|
|
450
|
-
p === !0 && /* @__PURE__ */ t(
|
|
451
|
-
de,
|
|
452
|
-
{
|
|
453
|
-
className: "times-btn",
|
|
454
|
-
icon: "times",
|
|
455
|
-
sizeInUnits: "0.75rem",
|
|
456
|
-
onClick: () => s(
|
|
457
|
-
l[e],
|
|
458
|
-
l[w],
|
|
459
|
-
l[h],
|
|
460
|
-
v ? l[v] : null,
|
|
461
|
-
k ? l[k] : null
|
|
462
|
-
)
|
|
463
|
-
}
|
|
464
|
-
)
|
|
465
|
-
]
|
|
466
|
-
},
|
|
467
|
-
g
|
|
468
|
-
))
|
|
469
|
-
]
|
|
470
|
-
}
|
|
471
|
-
);
|
|
472
|
-
});
|
|
473
|
-
q.propTypes = {
|
|
474
|
-
allButton: o.bool,
|
|
475
|
-
items: o.array,
|
|
476
|
-
selectedIds: o.array,
|
|
477
|
-
onSelect: o.func,
|
|
478
|
-
onRemove: o.func,
|
|
479
|
-
onSelectAll: o.func,
|
|
480
|
-
className: o.string,
|
|
481
|
-
showTimesBtn: o.bool,
|
|
482
|
-
valuKey: o.string,
|
|
483
|
-
labelKey: o.string,
|
|
484
|
-
codeKey: o.string
|
|
485
|
-
};
|
|
486
|
-
const Be = C((r, b) => {
|
|
108
|
+
}), L = g((o, v) => {
|
|
487
109
|
const {
|
|
488
|
-
icon:
|
|
489
|
-
title:
|
|
490
|
-
items:
|
|
491
|
-
buttonText:
|
|
492
|
-
limit:
|
|
493
|
-
options:
|
|
110
|
+
icon: l,
|
|
111
|
+
title: m,
|
|
112
|
+
items: r,
|
|
113
|
+
buttonText: d,
|
|
114
|
+
limit: a = 3,
|
|
115
|
+
options: n,
|
|
494
116
|
onActionClick: S = () => {
|
|
495
117
|
},
|
|
496
|
-
onSelectOption:
|
|
118
|
+
onSelectOption: h = () => {
|
|
497
119
|
}
|
|
498
|
-
} =
|
|
499
|
-
return /* @__PURE__ */
|
|
500
|
-
/* @__PURE__ */
|
|
501
|
-
/* @__PURE__ */
|
|
502
|
-
|
|
503
|
-
/* @__PURE__ */ t("span", { children:
|
|
120
|
+
} = o, y = C();
|
|
121
|
+
return /* @__PURE__ */ i(T, { children: [
|
|
122
|
+
/* @__PURE__ */ i("div", { className: "regular-title", children: [
|
|
123
|
+
/* @__PURE__ */ i("div", { className: "regular-title-text", children: [
|
|
124
|
+
u(l) && /* @__PURE__ */ t("i", { className: l }),
|
|
125
|
+
/* @__PURE__ */ t("span", { children: m })
|
|
504
126
|
] }),
|
|
505
|
-
|
|
506
|
-
|
|
127
|
+
u(onSectionClick) && /* @__PURE__ */ t(
|
|
128
|
+
$,
|
|
507
129
|
{
|
|
508
130
|
type: "button",
|
|
509
131
|
btnType: "tinted",
|
|
510
132
|
color: "gray",
|
|
511
133
|
onClick: S,
|
|
512
134
|
borderRadius: "curved",
|
|
513
|
-
children:
|
|
135
|
+
children: d
|
|
514
136
|
}
|
|
515
137
|
)
|
|
516
138
|
] }),
|
|
517
|
-
(
|
|
518
|
-
|
|
139
|
+
(n == null ? void 0 : n.length) > 0 && /* @__PURE__ */ t(
|
|
140
|
+
B,
|
|
519
141
|
{
|
|
520
|
-
items:
|
|
142
|
+
items: n,
|
|
521
143
|
onRemove: (e) => {
|
|
522
|
-
|
|
144
|
+
h(e);
|
|
523
145
|
},
|
|
524
146
|
onSelect: (e) => {
|
|
525
|
-
|
|
147
|
+
h(e);
|
|
526
148
|
},
|
|
527
149
|
labelKey: "name",
|
|
528
150
|
valueKey: "code",
|
|
529
151
|
noMargin: !0
|
|
530
152
|
}
|
|
531
153
|
),
|
|
532
|
-
/* @__PURE__ */ t(
|
|
533
|
-
|
|
154
|
+
/* @__PURE__ */ t(M, { limit: a, children: y === !0 ? r == null ? void 0 : r.map((e, c) => /* @__PURE__ */ t(
|
|
155
|
+
f,
|
|
534
156
|
{
|
|
535
157
|
title: e == null ? void 0 : e.title,
|
|
536
158
|
image: e == null ? void 0 : e.image,
|
|
@@ -539,9 +161,9 @@ const Be = C((r, b) => {
|
|
|
539
161
|
buttonText: e == null ? void 0 : e.buttonText,
|
|
540
162
|
onCardClick: () => onSelectCard(e == null ? void 0 : e.uuid)
|
|
541
163
|
},
|
|
542
|
-
|
|
543
|
-
)) :
|
|
544
|
-
|
|
164
|
+
c
|
|
165
|
+
)) : r == null ? void 0 : r.slice(0, a).map((e, c) => /* @__PURE__ */ t(
|
|
166
|
+
f,
|
|
545
167
|
{
|
|
546
168
|
title: e == null ? void 0 : e.title,
|
|
547
169
|
image: e == null ? void 0 : e.image,
|
|
@@ -550,10 +172,10 @@ const Be = C((r, b) => {
|
|
|
550
172
|
buttonText: e == null ? void 0 : e.buttonText,
|
|
551
173
|
onCardClick: () => onSelectCard(e == null ? void 0 : e.uuid)
|
|
552
174
|
},
|
|
553
|
-
|
|
175
|
+
c
|
|
554
176
|
)) })
|
|
555
177
|
] });
|
|
556
178
|
});
|
|
557
179
|
export {
|
|
558
|
-
|
|
180
|
+
L as default
|
|
559
181
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const r=require("react/jsx-runtime"),s=require("react"),c=require("./utils-
|
|
1
|
+
"use strict";const r=require("react/jsx-runtime"),s=require("react"),c=require("./utils-NZLCh-J5.cjs"),o=require("./emotion-styled.browser.esm-Cle7tAM9.cjs"),d=require("./consts-CtNoHdBj.cjs"),h=o.newStyled.div`
|
|
2
2
|
width: 7.5rem;
|
|
3
3
|
height: auto;
|
|
4
4
|
max-height: 7.5rem;
|
package/dist/BrandHitsSection.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as a, jsxs as m } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef as o } from "react";
|
|
3
|
-
import { m as c, l as g } from "./utils-
|
|
4
|
-
import { n as d } from "./emotion-styled.browser.esm-
|
|
3
|
+
import { m as c, l as g } from "./utils-DtRLzzTZ.js";
|
|
4
|
+
import { n as d } from "./emotion-styled.browser.esm-CjCaF13H.js";
|
|
5
5
|
import { M as l } from "./consts-C1uHV4xc.js";
|
|
6
6
|
const s = d.div`
|
|
7
7
|
width: 7.5rem;
|
package/dist/Breadcrumbs.cjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
"use strict";const s=require("react/jsx-runtime"),i=require("react"),t=require("./index-BPVoEhTF.cjs"),
|
|
1
|
+
"use strict";const s=require("react/jsx-runtime"),i=require("react"),t=require("./index-BPVoEhTF.cjs"),u=require("./emotion-styled.browser.esm-Cle7tAM9.cjs"),g=require("./utils-NZLCh-J5.cjs"),R=require("./Icon.cjs"),_=require("./emotion-element-f0de968e.browser.esm-B7k6i6lC.cjs"),z=u.newStyled.div`
|
|
2
2
|
display: inline-flex;
|
|
3
3
|
flex-wrap: wrap;
|
|
4
4
|
${o=>g.getComponentTypographyCss(o.theme,"Breadcrumbs",o.size,"enabled")};
|
|
5
5
|
color: ${o=>g.getColorRgbaValue(o.theme,"Breadcrumbs",o.color,"enabled","text")};
|
|
6
|
-
`,A=
|
|
6
|
+
`,A=u.newStyled.div`
|
|
7
7
|
cursor: pointer;
|
|
8
|
-
`,N=
|
|
8
|
+
`,N=u.newStyled.span``,b=i.forwardRef((o,f)=>{const{separator:a="/",maxItems:T=8,itemsAfterCollapse:x=1,itemsBeforeCollapse:j=1,className:C="",style:P={},color:w="neutral",size:d="small",children:q,...B}=o,I={theme:_.useTheme(),size:d,color:w,className:"lnc-ui-breadcrumbs "+C,style:P},[c,S]=i.useState(!0),h=({maxItems:m,itemsAfterCollapse:p,itemsBeforeCollapse:n,children:e})=>typeof(e==null?void 0:e.map)!="function"?s.jsx(l,{index:0,length:e.length,separator:a,child:e}):e==null?void 0:e.map((y,r)=>m<=e.length&&c==!0?n-1>=r||e.length-p<=r?s.jsx(l,{index:r,length:e.length,separator:a,child:y},r):n==r&&s.jsxs(A,{onClick:v=>S(!c),children:[s.jsx(R,{icon:"ellipsis"}),a," "]},r):s.jsx(l,{index:r,length:e.length,separator:a,child:y},r)),l=({index:m,length:p,separator:n,child:e})=>s.jsxs(N,{children:[e,m+1!==p&&s.jsxs(s.Fragment,{children:[" ",n," "]})]});return s.jsx(z,{ref:f,...I,...B,children:s.jsx(h,{maxItems:T,itemsAfterCollapse:x,itemsBeforeCollapse:j,children:q})})});b.propTypes={separator:t.PropTypes.oneOfType([t.PropTypes.string,t.PropTypes.element]),maxItems:t.PropTypes.number,itemsAfterCollapse:t.PropTypes.number,itemsBeforeCollapse:t.PropTypes.number,className:t.PropTypes.string,style:t.PropTypes.object,color:t.PropTypes.oneOf(["primary","secondary","success","warning","danger","information","neutral","gray"]),size:t.PropTypes.oneOf(["small","medium","large"])};module.exports=b;
|
package/dist/Breadcrumbs.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { jsx as o, jsxs as u, Fragment as z } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef as A, useState as N } from "react";
|
|
3
3
|
import { P as t } from "./index-S5Cd7WrG.js";
|
|
4
|
-
import { n as c } from "./emotion-styled.browser.esm-
|
|
5
|
-
import {
|
|
4
|
+
import { n as c } from "./emotion-styled.browser.esm-CjCaF13H.js";
|
|
5
|
+
import { c as O, b as P } from "./utils-DtRLzzTZ.js";
|
|
6
6
|
import v from "./Icon.js";
|
|
7
|
-
import { u as R } from "./emotion-element-
|
|
7
|
+
import { u as R } from "./emotion-element-f0de968e.browser.esm-CkCiQliQ.js";
|
|
8
8
|
const $ = c.div`
|
|
9
9
|
display: inline-flex;
|
|
10
10
|
flex-wrap: wrap;
|
|
@@ -23,11 +23,11 @@ const $ = c.div`
|
|
|
23
23
|
)};
|
|
24
24
|
`, k = c.div`
|
|
25
25
|
cursor: pointer;
|
|
26
|
-
`, F = c.span``, V = A((r,
|
|
26
|
+
`, F = c.span``, V = A((r, g) => {
|
|
27
27
|
const {
|
|
28
28
|
separator: a = "/",
|
|
29
|
-
maxItems:
|
|
30
|
-
itemsAfterCollapse:
|
|
29
|
+
maxItems: b = 8,
|
|
30
|
+
itemsAfterCollapse: y = 1,
|
|
31
31
|
itemsBeforeCollapse: C = 1,
|
|
32
32
|
//----------------
|
|
33
33
|
className: B = "",
|
|
@@ -56,13 +56,13 @@ const $ = c.div`
|
|
|
56
56
|
child: e
|
|
57
57
|
}
|
|
58
58
|
) : e == null ? void 0 : e.map(
|
|
59
|
-
(
|
|
59
|
+
(i, s) => n <= e.length && f == !0 ? m - 1 >= s || e.length - p <= s ? /* @__PURE__ */ o(
|
|
60
60
|
l,
|
|
61
61
|
{
|
|
62
62
|
index: s,
|
|
63
63
|
length: e.length,
|
|
64
64
|
separator: a,
|
|
65
|
-
child:
|
|
65
|
+
child: i
|
|
66
66
|
},
|
|
67
67
|
s
|
|
68
68
|
) : m == s && /* @__PURE__ */ u(k, { onClick: (D) => j(!f), children: [
|
|
@@ -75,7 +75,7 @@ const $ = c.div`
|
|
|
75
75
|
index: s,
|
|
76
76
|
length: e.length,
|
|
77
77
|
separator: a,
|
|
78
|
-
child:
|
|
78
|
+
child: i
|
|
79
79
|
},
|
|
80
80
|
s
|
|
81
81
|
)
|
|
@@ -87,11 +87,11 @@ const $ = c.div`
|
|
|
87
87
|
" "
|
|
88
88
|
] })
|
|
89
89
|
] });
|
|
90
|
-
return /* @__PURE__ */ o($, { ref:
|
|
90
|
+
return /* @__PURE__ */ o($, { ref: g, ...S, ...d, children: /* @__PURE__ */ o(
|
|
91
91
|
x,
|
|
92
92
|
{
|
|
93
|
-
maxItems:
|
|
94
|
-
itemsAfterCollapse:
|
|
93
|
+
maxItems: b,
|
|
94
|
+
itemsAfterCollapse: y,
|
|
95
95
|
itemsBeforeCollapse: C,
|
|
96
96
|
children: T
|
|
97
97
|
}
|