@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,7 +1,7 @@
|
|
|
1
1
|
import { jsxs as e, jsx as o } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef as f } from "react";
|
|
3
|
-
import { n as a } from "./emotion-styled.browser.esm-
|
|
4
|
-
import { m as u, l as h, n as b, G as x } from "./utils-
|
|
3
|
+
import { n as a } from "./emotion-styled.browser.esm-CjCaF13H.js";
|
|
4
|
+
import { m as u, l as h, n as b, G as x } from "./utils-DtRLzzTZ.js";
|
|
5
5
|
a.div`
|
|
6
6
|
background-color: var(--gray-200, #dddfe4);
|
|
7
7
|
border-radius: 0.75rem;
|
|
@@ -0,0 +1,350 @@
|
|
|
1
|
+
import { jsx as s, jsxs as h, Fragment as z } from "react/jsx-runtime";
|
|
2
|
+
import _, { useState as S, useRef as F, useEffect as j, useImperativeHandle as P, forwardRef as U } from "react";
|
|
3
|
+
import { P as l } from "./index-S5Cd7WrG.js";
|
|
4
|
+
import X from "./FlexBox.js";
|
|
5
|
+
import W from "./IconButton.js";
|
|
6
|
+
import { useTheme as Z } from "./ThemeProvider.js";
|
|
7
|
+
import { n as q } from "./emotion-styled.browser.esm-CjCaF13H.js";
|
|
8
|
+
import { M as C } from "./consts-C1uHV4xc.js";
|
|
9
|
+
import { u as J } from "./useDetectMobile-BC6EGaBc.js";
|
|
10
|
+
import { I as H } from "./index-wy-PXQR9.js";
|
|
11
|
+
import V from "./Button.js";
|
|
12
|
+
import Q from "./Icon.js";
|
|
13
|
+
import { l as Y } from "./utils-DtRLzzTZ.js";
|
|
14
|
+
const rr = q.div`
|
|
15
|
+
position: relative;
|
|
16
|
+
padding: ${(e) => e.padding};
|
|
17
|
+
|
|
18
|
+
& button {
|
|
19
|
+
white-space: nowrap;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
& .badge-button {
|
|
23
|
+
${(e) => e.showTimesBtn === !0 && "padding-left: 0.5rem; padding-right: 0.5rem;"}
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
& .gradient {
|
|
27
|
+
position: absolute;
|
|
28
|
+
top: 50%;
|
|
29
|
+
transform: translate(0, -50%);
|
|
30
|
+
z-index: 4;
|
|
31
|
+
transition: ${"0.3s"};
|
|
32
|
+
right: ${(e) => e.noArrows !== !0 ? "6rem" : "0"};
|
|
33
|
+
width: 2rem;
|
|
34
|
+
background: #fff;
|
|
35
|
+
height: 100%;
|
|
36
|
+
-webkit-mask-image: linear-gradient(to left, black 10%, transparent 50%);
|
|
37
|
+
mask-image: linear-gradient(to left, black 10%, transparent 50%);
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
& .scrollable-container {
|
|
41
|
+
max-width: -webkit-fill-available;
|
|
42
|
+
max-width: -moz-available; /* WebKit-based browsers will ignore this. */
|
|
43
|
+
max-width: fill-available;
|
|
44
|
+
|
|
45
|
+
${(e) => e.rightAlignArrows === !0 && e.noArrows !== !0 && "margin-right: 6rem"};
|
|
46
|
+
scroll-behavior: smooth;
|
|
47
|
+
overflow: hidden;
|
|
48
|
+
-webkit-overflow-scrolling: touch;
|
|
49
|
+
::-webkit-scrollbar {
|
|
50
|
+
-webkit-appearance: none;
|
|
51
|
+
}
|
|
52
|
+
-ms-overflow-style: none;
|
|
53
|
+
/* Internet Explorer 10+ */
|
|
54
|
+
scrollbar-width: none;
|
|
55
|
+
/* Firefox */
|
|
56
|
+
|
|
57
|
+
&::-webkit-scrollbar {
|
|
58
|
+
display: none;
|
|
59
|
+
/* Safari and Chrome */
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
@media (max-width: ${C + "px"}) {
|
|
63
|
+
margin-right: 0;
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
& .scroll-arrow-right,
|
|
67
|
+
& .scroll-arrow-left {
|
|
68
|
+
position: absolute;
|
|
69
|
+
top: 50%;
|
|
70
|
+
transform: translate(0, -50%);
|
|
71
|
+
display: flex;
|
|
72
|
+
justify-content: center;
|
|
73
|
+
align-items: center;
|
|
74
|
+
cursor: pointer;
|
|
75
|
+
|
|
76
|
+
visibility: ${(e) => e.arrowsVisibleOnHover === !1 && e.hasOverflow ? "visible" : "hidden"};
|
|
77
|
+
z-index: 4;
|
|
78
|
+
transition: ${"0.3s"};
|
|
79
|
+
}
|
|
80
|
+
& .scroll-arrow-right {
|
|
81
|
+
${(e) => e.rightAlignArrows === !0 ? "right: 0" : "right: 0.7rem"};
|
|
82
|
+
}
|
|
83
|
+
& .scroll-arrow-left {
|
|
84
|
+
${(e) => e.rightAlignArrows === !0 ? "right: 2.625rem" : "left: 0.7rem"};
|
|
85
|
+
}
|
|
86
|
+
& .scrollable-container:hover > .scroll-arrow-left,
|
|
87
|
+
& .scrollable-container:hover > .scroll-arrow-right {
|
|
88
|
+
visibility: ${(e) => e.hasOverflow ? "visible" : "hidden"};
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
@media (max-width: ${C + "px"}) {
|
|
92
|
+
& .scrollable-container {
|
|
93
|
+
overflow: auto;
|
|
94
|
+
}
|
|
95
|
+
& .scroll-arrow-left,
|
|
96
|
+
& .scroll-arrow-right {
|
|
97
|
+
display: none;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
& .gradient {
|
|
101
|
+
right: 0;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
& .scrollable-container button:nth-of-type(3) {
|
|
105
|
+
${(e) => e.noMargin !== !0 && "margin-left: 1rem"};
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
`, L = _.forwardRef(
|
|
109
|
+
({
|
|
110
|
+
columnGap: e = "2rem",
|
|
111
|
+
rowGap: B = "1.25rem",
|
|
112
|
+
scrollBySize: g = 300,
|
|
113
|
+
wrapForMobile: k = !1,
|
|
114
|
+
wrap: n = !1,
|
|
115
|
+
children: p,
|
|
116
|
+
methodsRef: w,
|
|
117
|
+
arrowsVisibleOnHover: x = !0,
|
|
118
|
+
rightAlignArrows: N = !1,
|
|
119
|
+
padding: v = "0",
|
|
120
|
+
showTimesBtn: f,
|
|
121
|
+
noArrows: u,
|
|
122
|
+
noGradient: y = !1,
|
|
123
|
+
hideDisabledArrows: a = !1,
|
|
124
|
+
noMargin: d = !1,
|
|
125
|
+
...T
|
|
126
|
+
}, $) => {
|
|
127
|
+
const A = J(), { theme: r } = Z(), [t, b] = S(!1), [c, m] = S(!1), [M, I] = S(!0), o = F(), R = () => {
|
|
128
|
+
var i;
|
|
129
|
+
(i = o.current) == null || i.scrollBy(g, 0);
|
|
130
|
+
}, K = () => {
|
|
131
|
+
var i;
|
|
132
|
+
(i = o.current) == null || i.scrollBy(-g, 0);
|
|
133
|
+
}, [E, D] = S(!1);
|
|
134
|
+
j(() => {
|
|
135
|
+
var i, O;
|
|
136
|
+
D(
|
|
137
|
+
((i = o == null ? void 0 : o.current) == null ? void 0 : i.scrollWidth) > ((O = o == null ? void 0 : o.current) == null ? void 0 : O.clientWidth)
|
|
138
|
+
);
|
|
139
|
+
}, [p]), P(w, () => ({
|
|
140
|
+
scrollToEnd() {
|
|
141
|
+
G();
|
|
142
|
+
},
|
|
143
|
+
scrollLeft() {
|
|
144
|
+
K();
|
|
145
|
+
},
|
|
146
|
+
scrollRight() {
|
|
147
|
+
R();
|
|
148
|
+
}
|
|
149
|
+
}));
|
|
150
|
+
const G = () => {
|
|
151
|
+
o.current.scrollLeft = o.current.scrollWidth;
|
|
152
|
+
};
|
|
153
|
+
return /* @__PURE__ */ s(
|
|
154
|
+
rr,
|
|
155
|
+
{
|
|
156
|
+
ref: $,
|
|
157
|
+
arrowsVisibleOnHover: x,
|
|
158
|
+
hasOverflow: E,
|
|
159
|
+
noArrows: u,
|
|
160
|
+
padding: v,
|
|
161
|
+
rightAlignArrows: N,
|
|
162
|
+
showTimesBtn: f,
|
|
163
|
+
theme: r,
|
|
164
|
+
noMargin: d,
|
|
165
|
+
...T,
|
|
166
|
+
children: /* @__PURE__ */ h(
|
|
167
|
+
X,
|
|
168
|
+
{
|
|
169
|
+
ref: o,
|
|
170
|
+
className: "scrollable-container",
|
|
171
|
+
columnGap: e,
|
|
172
|
+
rowGap: B,
|
|
173
|
+
wrap: n || k && A ? "Wrap" : "NoWrap",
|
|
174
|
+
children: [
|
|
175
|
+
u !== !0 && /* @__PURE__ */ h(z, { children: [
|
|
176
|
+
!(a === !0 && c === !0) && /* @__PURE__ */ s(
|
|
177
|
+
W,
|
|
178
|
+
{
|
|
179
|
+
borderRadius: "curved",
|
|
180
|
+
btnType: "tinted",
|
|
181
|
+
className: "scroll-arrow-left",
|
|
182
|
+
color: "neutral",
|
|
183
|
+
disabled: c,
|
|
184
|
+
icon: "angle-left",
|
|
185
|
+
onClick: K
|
|
186
|
+
}
|
|
187
|
+
),
|
|
188
|
+
!(a === !0 && t === !0) && /* @__PURE__ */ s(
|
|
189
|
+
W,
|
|
190
|
+
{
|
|
191
|
+
borderRadius: "curved",
|
|
192
|
+
btnType: "tinted",
|
|
193
|
+
className: "scroll-arrow-right",
|
|
194
|
+
color: "neutral",
|
|
195
|
+
disabled: t,
|
|
196
|
+
icon: "angle-right",
|
|
197
|
+
onClick: R
|
|
198
|
+
}
|
|
199
|
+
)
|
|
200
|
+
] }),
|
|
201
|
+
/* @__PURE__ */ s(
|
|
202
|
+
H,
|
|
203
|
+
{
|
|
204
|
+
isHorizontal: !0,
|
|
205
|
+
onIsNotVisible: () => {
|
|
206
|
+
c === !0 && m(!1);
|
|
207
|
+
},
|
|
208
|
+
onIsVisible: () => {
|
|
209
|
+
c === !1 && m(!0);
|
|
210
|
+
}
|
|
211
|
+
}
|
|
212
|
+
),
|
|
213
|
+
p,
|
|
214
|
+
/* @__PURE__ */ s(
|
|
215
|
+
H,
|
|
216
|
+
{
|
|
217
|
+
className: "right-scroller",
|
|
218
|
+
isHorizontal: !0,
|
|
219
|
+
onIsNotVisible: () => {
|
|
220
|
+
t === !0 && b(!1), I(!0);
|
|
221
|
+
},
|
|
222
|
+
onIsVisible: () => {
|
|
223
|
+
t === !1 && b(!0), I(!1);
|
|
224
|
+
}
|
|
225
|
+
}
|
|
226
|
+
),
|
|
227
|
+
M && E && y !== !0 && /* @__PURE__ */ s("div", { className: "gradient" })
|
|
228
|
+
]
|
|
229
|
+
}
|
|
230
|
+
)
|
|
231
|
+
}
|
|
232
|
+
);
|
|
233
|
+
}
|
|
234
|
+
);
|
|
235
|
+
L.propTypes = {
|
|
236
|
+
title: l.string,
|
|
237
|
+
rowGap: l.string,
|
|
238
|
+
columnGap: l.string,
|
|
239
|
+
scrollBySize: l.number,
|
|
240
|
+
wrapForMobile: l.bool,
|
|
241
|
+
wrap: l.bool,
|
|
242
|
+
methodsRef: l.any,
|
|
243
|
+
arrowsVisibleOnHover: l.bool,
|
|
244
|
+
rightAlignArrows: l.bool,
|
|
245
|
+
padding: l.string
|
|
246
|
+
};
|
|
247
|
+
const er = U((e, B) => {
|
|
248
|
+
const {
|
|
249
|
+
allButton: g = !0,
|
|
250
|
+
items: k = [],
|
|
251
|
+
selectedIds: n = [],
|
|
252
|
+
onSelect: p = () => {
|
|
253
|
+
},
|
|
254
|
+
onRemove: w = () => {
|
|
255
|
+
},
|
|
256
|
+
onSelectAll: x = () => {
|
|
257
|
+
},
|
|
258
|
+
className: N,
|
|
259
|
+
showTimesBtn: v = !1,
|
|
260
|
+
labelKey: f = "label",
|
|
261
|
+
valueKey: u = "value",
|
|
262
|
+
codeKey: y = "code",
|
|
263
|
+
uniqueKey: a,
|
|
264
|
+
typeKey: d,
|
|
265
|
+
productsToolbarName: T = "All",
|
|
266
|
+
...$
|
|
267
|
+
} = e, A = (r, t, b, c, m) => {
|
|
268
|
+
n != null && n.includes(r) ? w(r, t, b, c, m) : p(r, t, b, c, m);
|
|
269
|
+
};
|
|
270
|
+
return /* @__PURE__ */ h(
|
|
271
|
+
L,
|
|
272
|
+
{
|
|
273
|
+
arrowsVisibleOnHover: !1,
|
|
274
|
+
className: N,
|
|
275
|
+
columnGap: "0.75rem",
|
|
276
|
+
padding: "0.25rem 0",
|
|
277
|
+
rightAlignArrows: !0,
|
|
278
|
+
showTimesBtn: v,
|
|
279
|
+
...$,
|
|
280
|
+
children: [
|
|
281
|
+
g && /* @__PURE__ */ s(
|
|
282
|
+
V,
|
|
283
|
+
{
|
|
284
|
+
borderRadius: "curved",
|
|
285
|
+
btnType: n.length === 0 ? "filled" : "tinted",
|
|
286
|
+
className: "badge-button",
|
|
287
|
+
color: "neutral",
|
|
288
|
+
onClick: x,
|
|
289
|
+
children: T
|
|
290
|
+
}
|
|
291
|
+
),
|
|
292
|
+
k.map((r, t) => /* @__PURE__ */ h(
|
|
293
|
+
V,
|
|
294
|
+
{
|
|
295
|
+
borderRadius: "curved",
|
|
296
|
+
btnType: n.includes(r.uuid) ? "filled" : "tinted",
|
|
297
|
+
className: "badge-button",
|
|
298
|
+
color: "neutral",
|
|
299
|
+
onClick: () => A(
|
|
300
|
+
r[u],
|
|
301
|
+
r[f],
|
|
302
|
+
r[y],
|
|
303
|
+
a ? r[a] : null,
|
|
304
|
+
d ? r[d] : null
|
|
305
|
+
),
|
|
306
|
+
children: [
|
|
307
|
+
Y(r == null ? void 0 : r.icon) && /* @__PURE__ */ h(z, { children: [
|
|
308
|
+
/* @__PURE__ */ s("i", { className: r == null ? void 0 : r.icon }),
|
|
309
|
+
" "
|
|
310
|
+
] }),
|
|
311
|
+
r[f],
|
|
312
|
+
v === !0 && /* @__PURE__ */ s(
|
|
313
|
+
Q,
|
|
314
|
+
{
|
|
315
|
+
className: "times-btn",
|
|
316
|
+
icon: "times",
|
|
317
|
+
sizeInUnits: "0.75rem",
|
|
318
|
+
onClick: () => w(
|
|
319
|
+
r[u],
|
|
320
|
+
r[f],
|
|
321
|
+
r[y],
|
|
322
|
+
a ? r[a] : null,
|
|
323
|
+
d ? r[d] : null
|
|
324
|
+
)
|
|
325
|
+
}
|
|
326
|
+
)
|
|
327
|
+
]
|
|
328
|
+
},
|
|
329
|
+
t
|
|
330
|
+
))
|
|
331
|
+
]
|
|
332
|
+
}
|
|
333
|
+
);
|
|
334
|
+
});
|
|
335
|
+
er.propTypes = {
|
|
336
|
+
allButton: l.bool,
|
|
337
|
+
items: l.array,
|
|
338
|
+
selectedIds: l.array,
|
|
339
|
+
onSelect: l.func,
|
|
340
|
+
onRemove: l.func,
|
|
341
|
+
onSelectAll: l.func,
|
|
342
|
+
className: l.string,
|
|
343
|
+
showTimesBtn: l.bool,
|
|
344
|
+
valuKey: l.string,
|
|
345
|
+
labelKey: l.string,
|
|
346
|
+
codeKey: l.string
|
|
347
|
+
};
|
|
348
|
+
export {
|
|
349
|
+
er as S
|
|
350
|
+
};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
"use strict";const d=require("react/jsx-runtime"),t=require("react"),l=require("./index-BPVoEhTF.cjs"),a=require("./emotion-styled.browser.esm-Cle7tAM9.cjs"),p=require("./useUpdateEffect-BtMgpgIV.cjs"),m=s=>{const[i,n]=t.useState(!1),e=t.useMemo(()=>new IntersectionObserver(([r])=>n(r.isIntersecting)),[]);return t.useEffect(()=>(e.observe(s.current),()=>{e.disconnect()}),[s,e]),i},I=a.newStyled.div`
|
|
2
|
+
min-height: 1px;
|
|
3
|
+
${s=>s.isHorizontal===!0?"min-width: 1px; width: 1px;":"width: 100%;"}
|
|
4
|
+
`,u=t.forwardRef((s,i)=>{const{onIsVisible:n=()=>{},onIsNotVisible:e,isHorizontal:r=!1,className:f=""}=s,o=t.useRef(null),c=m(o);return p.useUpdateEffect(()=>{c?n():e==null||e()},[c]),d.jsx(I,{ref:o,className:`scroller-element ${f}`,isHorizontal:r})});u.propTypes={onIsVisible:l.PropTypes.func,isHorizontal:l.PropTypes.bool};exports.InfiniteScrollEndElement=u;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { c as g, g as F } from "./_commonjsHelpers-DaMA6jEr.js";
|
|
2
2
|
var M = "Expected a function", S = NaN, N = "[object Symbol]", W = /^\s+|\s+$/g, A = /^[-+]0x[0-9a-f]+$/i, B = /^0b[01]+$/i, R = /^0o[0-7]+$/i, _ = parseInt, D = typeof g == "object" && g && g.Object === Object && g, G = typeof self == "object" && self && self.Object === Object && self, P = D || G || Function("return this")(), H = Object.prototype, U = H.toString, X = Math.max, q = Math.min, T = function() {
|
|
3
3
|
return P.Date.now();
|
|
4
4
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { _ as I, a as V } from "./tslib.es6-DQ-SzcmG.js";
|
|
2
2
|
import * as a from "react";
|
|
3
3
|
import { useRef as h, useState as B, useCallback as D, useMemo as N, useContext as K, cloneElement as U, Children as q, isValidElement as T } from "react";
|
|
4
|
-
import { u as _, a as O, P as Y, S as j, i as G } from "./motion-
|
|
4
|
+
import { u as _, a as O, P as Y, S as j, i as G } from "./motion-Ckekul_K.js";
|
|
5
5
|
function H() {
|
|
6
6
|
var e = h(!1), o = I(B(0), 2), t = o[0], r = o[1];
|
|
7
7
|
return _(function() {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsxs as i, jsx as e } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef as s } from "react";
|
|
3
|
-
import { n as l } from "./emotion-styled.browser.esm-
|
|
3
|
+
import { n as l } from "./emotion-styled.browser.esm-CjCaF13H.js";
|
|
4
4
|
import { M as v } from "./consts-C1uHV4xc.js";
|
|
5
|
-
import { t as k, o as d, m as r, l as y, n as $, G as N } from "./utils-
|
|
5
|
+
import { t as k, o as d, m as r, l as y, n as $, G as N } from "./utils-DtRLzzTZ.js";
|
|
6
6
|
const S = l.div`
|
|
7
7
|
display: flex;
|
|
8
8
|
flex-direction: column;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const w=require("./tslib.es6-fPwcSa2V.cjs"),u=require("react"),m=require("./motion-
|
|
1
|
+
"use strict";const w=require("./tslib.es6-fPwcSa2V.cjs"),u=require("react"),m=require("./motion-B_VPZaJq.cjs");function z(e){const i=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const n=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(i,t,n.get?n:{enumerable:!0,get:()=>e[t]})}}return i.default=e,Object.freeze(i)}const a=z(u);function D(){var e=u.useRef(!1),i=w.__read(u.useState(0),2),t=i[0],n=i[1];return m.useUnmountEffect(function(){return e.current=!0}),u.useCallback(function(){!e.current&&n(t+1)},[t])}var N=0;function I(){var e=N;return N++,e}var O=function(e){var i=e.children,t=e.initial,n=e.isPresent,o=e.onExitComplete,x=e.custom,y=e.presenceAffectsLayout,s=m.useConstant(j),E=m.useConstant(I),g=u.useMemo(function(){return{id:E,initial:t,isPresent:n,custom:x,onExitComplete:function(c){s.set(c,!0);var p=!0;s.forEach(function(f){f||(p=!1)}),p&&(o==null||o())},register:function(c){return s.set(c,!1),function(){return s.delete(c)}}}},y?void 0:[n]);return u.useMemo(function(){s.forEach(function(c,p){return s.set(p,!1)})},[n]),a.useEffect(function(){!n&&!s.size&&(o==null||o())},[n]),a.createElement(m.PresenceContext.Provider,{value:g},i)};function j(){return new Map}function v(e){return e.key||""}function F(e,i){var t=process.env.NODE_ENV!=="production"?new Set:null;e.forEach(function(n){var o=v(n);process.env.NODE_ENV!=="production"&&t&&(t.has(o)&&console.warn('Children of AnimatePresence require unique keys. "'+o+'" is a duplicate.'),t.add(o)),i.set(o,n)})}function V(e){var i=[];return u.Children.forEach(e,function(t){u.isValidElement(t)&&i.push(t)}),i}var B=function(e){var i=e.children,t=e.custom,n=e.initial,o=n===void 0?!0:n,x=e.onExitComplete,y=e.exitBeforeEnter,s=e.presenceAffectsLayout,E=s===void 0?!0:s,g=D(),c=u.useContext(m.SharedLayoutContext);m.isSharedLayout(c)&&(g=c.forceUpdate);var p=u.useRef(!0),f=V(i),C=u.useRef(f),P=u.useRef(new Map).current,l=u.useRef(new Set).current;if(F(f,P),p.current)return p.current=!1,a.createElement(a.Fragment,null,f.map(function(r){return a.createElement(O,{key:v(r),isPresent:!0,initial:o?void 0:!1,presenceAffectsLayout:E},r)}));for(var d=w.__spreadArray([],w.__read(f)),R=C.current.map(v),L=f.map(v),S=R.length,A=0;A<S;A++){var b=R[A];L.indexOf(b)===-1?l.add(b):l.delete(b)}return y&&l.size&&(d=[]),l.forEach(function(r){if(L.indexOf(r)===-1){var h=P.get(r);if(h){var _=R.indexOf(r),M=function(){P.delete(r),l.delete(r);var k=C.current.findIndex(function(q){return q.key===r});C.current.splice(k,1),l.size||(C.current=f,g(),x&&x())};d.splice(_,0,a.createElement(O,{key:v(h),isPresent:!1,onExitComplete:M,custom:t,presenceAffectsLayout:E},h))}}}),d=d.map(function(r){var h=r.key;return l.has(h)?r:a.createElement(O,{key:v(r),isPresent:!0,presenceAffectsLayout:E},r)}),C.current=d,process.env.NODE_ENV!=="production"&&y&&d.length>1&&console.warn("You're attempting to animate multiple children within AnimatePresence, but its exitBeforeEnter prop is set to true. This will lead to odd visual behaviour."),a.createElement(a.Fragment,null,l.size?d:d.map(function(r){return u.cloneElement(r)}))};exports.AnimatePresence=B;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const t=require("react/jsx-runtime"),a=require("react"),d=require("./emotion-styled.browser.esm-
|
|
1
|
+
"use strict";const t=require("react/jsx-runtime"),a=require("react"),d=require("./emotion-styled.browser.esm-Cle7tAM9.cjs"),u=require("./consts-CtNoHdBj.cjs"),x=require("./Button.cjs"),b=d.newStyled.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex-direction: column;
|
|
4
4
|
gap: 1.25rem;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const e=require("react/jsx-runtime"),p=require("react"),a=require("./emotion-styled.browser.esm-
|
|
1
|
+
"use strict";const e=require("react/jsx-runtime"),p=require("react"),a=require("./emotion-styled.browser.esm-Cle7tAM9.cjs"),r=require("./utils-NZLCh-J5.cjs");a.newStyled.div`
|
|
2
2
|
background-color: var(--gray-200, #dddfe4);
|
|
3
3
|
border-radius: 0.75rem;
|
|
4
4
|
min-width: 11.625rem;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsxs as o, jsx as t } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef as d } from "react";
|
|
3
|
-
import { n as m } from "./emotion-styled.browser.esm-
|
|
3
|
+
import { n as m } from "./emotion-styled.browser.esm-CjCaF13H.js";
|
|
4
4
|
import { M as f } from "./consts-C1uHV4xc.js";
|
|
5
5
|
import p from "./Button.js";
|
|
6
6
|
const u = m.div`
|