@lanaco/lnc-react-ui 4.0.87 → 4.0.89
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 +1 -1
- package/dist/Accordion.js +1 -1
- package/dist/AccordionSummary.cjs +1 -1
- package/dist/AccordionSummary.js +1 -1
- package/dist/ActionsToolbar.cjs +1 -1
- package/dist/ActionsToolbar.js +1 -1
- package/dist/Alert.cjs +1 -1
- package/dist/Alert.js +1 -1
- package/dist/Avatar.cjs +1 -1
- package/dist/Avatar.js +1 -1
- package/dist/Badge.cjs +1 -1
- package/dist/Badge.js +1 -1
- package/dist/BannerSectionCarousel.cjs +2 -2
- package/dist/BannerSectionCarousel.js +5 -2
- package/dist/BannerSectionSimple.cjs +7 -7
- package/dist/BannerSectionSimple.js +54 -51
- package/dist/BannerSectionWithList.cjs +7 -7
- package/dist/BannerSectionWithList.js +33 -30
- package/dist/BannerSectionWithListImage.cjs +9 -9
- package/dist/BannerSectionWithListImage.js +44 -41
- package/dist/BlogCardsSponsoredSection.cjs +3 -3
- package/dist/BlogCardsSponsoredSection.js +38 -35
- package/dist/BlogCategoryCardsSection.cjs +1 -1
- package/dist/BlogCategoryCardsSection.js +1 -1
- package/dist/BlogListSection.cjs +3 -3
- package/dist/BlogListSection.js +16 -16
- package/dist/BlogProductCardsSection.cjs +1 -1
- package/dist/BlogProductCardsSection.js +2 -2
- package/dist/BlogShopCardsSection.cjs +1 -1
- package/dist/BlogShopCardsSection.js +1 -1
- package/dist/BlogSingleSection.cjs +1 -1
- package/dist/BlogSingleSection.js +2 -2
- package/dist/BlogsSectionDetailed.cjs +2 -2
- package/dist/BlogsSectionDetailed.js +29 -26
- package/dist/BlogsSectionLarge.cjs +1 -1
- package/dist/BlogsSectionLarge.js +2 -2
- package/dist/BlogsSectionSimple.cjs +6 -6
- package/dist/BlogsSectionSimple.js +32 -29
- package/dist/BlogsSectionSimpleCentered.cjs +1 -1
- package/dist/BlogsSectionSimpleCentered.js +2 -2
- package/dist/BlogsSectionWithFilters.cjs +10 -10
- package/dist/BlogsSectionWithFilters.js +109 -101
- package/dist/BrandHitsSection.cjs +1 -1
- package/dist/BrandHitsSection.js +1 -1
- package/dist/Breadcrumbs.cjs +1 -1
- package/dist/Breadcrumbs.js +1 -1
- 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 +1 -1
- package/dist/CalorieCalculatorSection.js +1 -1
- 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 +1 -1
- package/dist/ConfirmationForm.cjs +1 -1
- package/dist/ConfirmationForm.js +1 -1
- package/dist/CustomLoanMapSection.cjs +1 -1
- package/dist/CustomLoanMapSection.js +1 -1
- package/dist/{CustomStyles-DSaRbYZg.js → CustomStyles-CQawr7oF.js} +1 -1
- package/dist/{CustomStyles-DzChCA5c.cjs → CustomStyles-Uqkz9jDo.cjs} +1 -1
- package/dist/DateInput.cjs +1 -1
- package/dist/DateInput.js +1 -1
- 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/DetailedProductsSection.cjs +4 -4
- package/dist/DetailedProductsSection.js +28 -25
- 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 +1 -1
- 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 +1 -1
- package/dist/EditableTable.cjs +1 -1
- package/dist/EditableTable.js +1 -1
- package/dist/FieldOfInterestsMasonrySection.cjs +27 -16
- package/dist/FieldOfInterestsMasonrySection.js +72 -62
- package/dist/FieldOfInterestsWithAvatarsCardsSection.cjs +1 -1
- package/dist/FieldOfInterestsWithAvatarsCardsSection.js +2 -2
- package/dist/FieldOfInterestsWithTagsCardsSection.cjs +2 -1
- package/dist/FieldOfInterestsWithTagsCardsSection.js +2 -1
- package/dist/FileInput.cjs +1 -1
- package/dist/FileInput.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 +4 -4
- package/dist/GeneralWithTagsCardsSection.js +5 -5
- package/dist/GiftCardsSection.cjs +8 -8
- package/dist/GiftCardsSection.js +54 -51
- package/dist/Icon.cjs +1 -1
- package/dist/Icon.js +1 -1
- package/dist/IconButton.cjs +1 -1
- package/dist/IconButton.js +1 -1
- package/dist/Kanban.cjs +2 -2
- package/dist/Kanban.js +84 -82
- package/dist/KanbanActionsToolbar.cjs +1 -1
- package/dist/KanbanActionsToolbar.js +1 -1
- package/dist/KanbanView.cjs +1 -1
- package/dist/KanbanView.js +1 -1
- package/dist/Link.cjs +1 -1
- package/dist/Link.js +1 -1
- package/dist/LoanCalculatorSection.cjs +1 -1
- package/dist/LoanCalculatorSection.js +1 -1
- package/dist/LocationFinderSection.cjs +1 -1
- package/dist/LocationFinderSection.js +1 -1
- package/dist/LocationSearchSection.cjs +1 -1
- package/dist/LocationSearchSection.js +1 -1
- package/dist/MasonryGeneralCardsSection.cjs +1 -1
- package/dist/MasonryGeneralCardsSection.js +1 -1
- package/dist/MenuItem.cjs +1 -1
- package/dist/MenuItem.js +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/NestedDropdownItem.cjs +1 -1
- package/dist/NestedDropdownItem.js +1 -1
- package/dist/NestedMenuItem.cjs +1 -1
- package/dist/NestedMenuItem.js +1 -1
- package/dist/NotificationContainer.cjs +1 -1
- package/dist/NotificationContainer.js +1 -1
- package/dist/NotificationMessage.cjs +1 -1
- package/dist/NotificationMessage.js +1 -1
- package/dist/NumberInput.cjs +1 -1
- package/dist/NumberInput.js +1 -1
- package/dist/OverlayGeneralCardsSection.cjs +1 -1
- package/dist/OverlayGeneralCardsSection.js +2 -2
- package/dist/PasswordInput.cjs +1 -1
- package/dist/PasswordInput.js +1 -1
- package/dist/PopoverContent.cjs +1 -1
- package/dist/PopoverContent.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 +1 -1
- package/dist/QuizSection.cjs +1 -1
- package/dist/QuizSection.js +1 -1
- 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 +1 -1
- package/dist/ReviewsSection.js +23 -23
- package/dist/SalesCampaignsSection.cjs +1 -1
- package/dist/SalesCampaignsSection.js +1 -1
- package/dist/Separator.cjs +1 -1
- package/dist/Separator.js +1 -1
- package/dist/ShopCardsSection.cjs +1 -1
- package/dist/ShopCardsSection.js +2 -2
- package/dist/Sidebar.cjs +1 -1
- package/dist/Sidebar.js +1 -1
- package/dist/SimpleCategoriesSection.cjs +2 -2
- package/dist/SimpleCategoriesSection.js +18 -15
- package/dist/SimpleProductsSection.cjs +1 -1
- package/dist/SimpleProductsSection.js +2 -2
- package/dist/Spinner.cjs +1 -1
- package/dist/Spinner.js +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 +1 -1
- package/dist/Table.js +1 -1
- package/dist/TableView.cjs +1 -1
- package/dist/TableView.js +1 -1
- 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 +1 -1
- package/dist/ThemeProvider.js +1 -1
- 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/TreeMenuSeparator.cjs +1 -1
- package/dist/TreeMenuSeparator.js +1 -1
- package/dist/UploadedFile.cjs +1 -1
- package/dist/UploadedFile.js +1 -1
- package/dist/UrgentSaleProductsSection.cjs +2 -2
- package/dist/UrgentSaleProductsSection.js +34 -31
- package/dist/{index-DG7qQq8L.cjs → index-66FyQgVV.cjs} +1 -1
- package/dist/{index-Yh18uk_f.js → index-B68jh2kW.js} +2 -2
- package/dist/{index-BVaZWq6y.cjs → index-BRgZcjpI.cjs} +1 -1
- package/dist/{index-BBPnKoi6.js → index-BT4FT6f0.js} +2 -2
- package/dist/{index-Db8wvLXS.js → index-Chju-CHz.js} +1 -1
- package/dist/{index-Ca38iPjf.js → index-Cpd68IKh.js} +1 -1
- package/dist/{index-B9HSHvhH.cjs → index-D8lR_JKg.cjs} +1 -1
- package/dist/{index-iSD5jNBk.js → index-DHQc2df3.js} +98 -46
- package/dist/{index-Ccw8sLnK.cjs → index-DMysapsB.cjs} +1 -1
- package/dist/{index-Cx4KvZ9L.cjs → index-DZDz9qZP.cjs} +47 -9
- package/dist/index.cjs +1 -1
- package/dist/index.js +1 -1
- package/dist/{skeleton-DALCB1S7.js → skeleton-BbYMdJpz.js} +1 -1
- package/dist/{skeleton-BBSBZ4JV.cjs → skeleton-BcaMeKFQ.cjs} +1 -1
- package/dist/{skeleton-C_Jypl8r.cjs → skeleton-DwZzdFei.cjs} +5 -5
- package/dist/{skeleton-wfDIalr3.js → skeleton-oa1ux_Zp.js} +6 -6
- package/dist/{style-xvwWn3Zv.cjs → style-B8wrlDzY.cjs} +13 -7
- package/dist/{style-sLF37aOA.js → style-R2KgPcrd.js} +17 -10
- package/dist/{suspense-categories-card-simple-5JZtz7wj.cjs → suspense-categories-card-simple-B2swGa6t.cjs} +1 -1
- package/dist/{suspense-categories-card-simple-BTFqzXyn.js → suspense-categories-card-simple-Dkm0oojD.js} +1 -1
- package/dist/{suspense-large-DFlSJhGG.js → suspense-large-B2lY_x-y.js} +1 -1
- package/dist/{suspense-large-BtfvnzWh.cjs → suspense-large-DMhn-lIG.cjs} +1 -1
- package/dist/{suspense-product-card-detailed-CwdbxJrY.js → suspense-product-card-detailed-5A3zYKqj.js} +2 -2
- package/dist/{suspense-product-card-detailed-DBNlkFiP.cjs → suspense-product-card-detailed-CuExvgd_.cjs} +1 -1
- package/dist/{suspense-product-card-simple--ExcEpD-.js → suspense-product-card-simple-C4qtjWg_.js} +1 -1
- package/dist/{suspense-product-card-simple-0x5sc47a.cjs → suspense-product-card-simple-zYdZVLRz.cjs} +1 -1
- package/dist/{utils-DhRHf5Ed.cjs → utils-BWzf4vLl.cjs} +1 -1
- package/dist/{utils-BE-UlkKf.js → utils-BhG1dImS.js} +4 -4
- package/package.json +1 -1
- package/dist/useEffectOnce-DFrzfNzT.cjs +0 -1
- package/dist/useEffectOnce-guOKBPuL.js +0 -7
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
"use strict";const r=require("react/jsx-runtime"),f=require("react"),w=require("./useDetectMobile-zkbzoOGV.cjs"),v=require("./style-
|
|
1
|
+
"use strict";const r=require("react/jsx-runtime"),f=require("react"),w=require("./useDetectMobile-zkbzoOGV.cjs"),v=require("./style-B8wrlDzY.cjs"),o=require("./utils-BWzf4vLl.cjs"),j=require("./Button.cjs"),c=require("./emotion-styled.browser.esm-BtEseadx.cjs"),C=require("./consts-goSZX3xP.cjs"),S=c.styled.div`
|
|
2
2
|
display: grid;
|
|
3
|
-
grid-template-columns: ${
|
|
3
|
+
grid-template-columns: ${a=>`repeat(${a.limit}, minmax(0, 1fr))`};
|
|
4
4
|
gap: 1.25rem;
|
|
5
5
|
|
|
6
6
|
@media (max-width: ${C.MOBILE_SIZE_PX+"px"}) {
|
|
7
7
|
grid-template-columns: repeat(1, 1fr);
|
|
8
8
|
}
|
|
9
|
-
`,G=
|
|
9
|
+
`,G=c.styled.div`
|
|
10
10
|
display: flex;
|
|
11
11
|
flex-direction: column;
|
|
12
12
|
gap: 0.75rem;
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
& .text-wrap {
|
|
22
22
|
text-align: center;
|
|
23
23
|
}
|
|
24
|
-
`,k=
|
|
24
|
+
`,k=c.styled.div`
|
|
25
25
|
width: 100%;
|
|
26
26
|
min-height: 11rem;
|
|
27
27
|
max-height: 11rem;
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
& .skeleton__card {
|
|
34
34
|
height: 100%;
|
|
35
35
|
width: 100%;
|
|
36
|
-
${
|
|
36
|
+
${o.linearGradientAnimation("-90deg")}
|
|
37
37
|
|
|
38
38
|
background: linear-gradient(
|
|
39
39
|
178deg,
|
|
@@ -69,9 +69,9 @@
|
|
|
69
69
|
-webkit-transform: rotate(315deg);
|
|
70
70
|
transform: rotate(315deg);
|
|
71
71
|
}
|
|
72
|
-
`;
|
|
72
|
+
`;c.styled.div`
|
|
73
73
|
width: 100%;
|
|
74
74
|
height: 11.5rem;
|
|
75
75
|
border-radius: 0.75rem;
|
|
76
|
-
background: ${
|
|
77
|
-
`;const p=f.forwardRef((
|
|
76
|
+
background: ${o.linearGradientAnimation("-90deg")};
|
|
77
|
+
`;const p=f.forwardRef((a,d)=>{const{image:s,text:l,price:i,currency:t,onSelectGiftCard:m=()=>{}}=a;return r.jsxs(G,{ref:d,className:"simple-gift-card",onClick:()=>m(i),children:[r.jsxs(k,{children:[r.jsx("div",{className:"price-tag",children:i&&t&&`${o.formatPrice(i)} ${o.GetCurrencySymbol(t)}`}),r.jsx("img",{src:s})]}),r.jsx("div",{className:"text-wrap",children:l})]})}),q=f.forwardRef((a,d)=>{const{icon:s,title:l,buttonLink:i,items:t,buttonText:m,limit:u=4,onSelectCard:g=()=>{},onButtonAction:h=()=>{}}=a,b=w.useDetectMobile();return r.jsxs(v.RegulatTitleSectionWrapper,{ref:d,children:[r.jsxs("div",{className:"regular-title",children:[r.jsxs("div",{className:"regular-title-text",children:[o.isDefinedNotEmptyString(s)&&r.jsx("i",{className:s}),r.jsx("span",{children:l})]}),o.isDefinedNotEmptyString(i)&&r.jsx(j,{type:"button",btnType:"tinted",color:"gray",onClick:e=>{var n;(n=e==null?void 0:e.target)==null||n.blur(),h(i)},borderRadius:"curved",children:m})]}),r.jsx(S,{limit:u,children:b===!0?t==null?void 0:t.map((e,n)=>r.jsx(p,{text:e==null?void 0:e.text,price:e==null?void 0:e.priceTo,currency:e==null?void 0:e.currencyIsoCode,image:e==null?void 0:e.imageUrl,uuid:e==null?void 0:e.uuid,onSelectGiftCard:y=>g(e)},n)):t==null?void 0:t.slice(0,u).map((e,n)=>r.jsx(p,{text:e==null?void 0:e.text,price:e==null?void 0:e.priceTo,currency:e==null?void 0:e.currencyIsoCode,image:e==null?void 0:e.imageUrl,uuid:e==null?void 0:e.uuid,onSelectGiftCard:y=>g(e)},n))})]})});module.exports=q;
|
package/dist/GiftCardsSection.js
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import { jsxs as
|
|
1
|
+
import { jsxs as n, jsx as t } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef as h } from "react";
|
|
3
3
|
import { u as C } from "./useDetectMobile-Bkvj0VMa.js";
|
|
4
|
-
import { R as k } from "./style-
|
|
5
|
-
import { m as b,
|
|
4
|
+
import { R as k } from "./style-R2KgPcrd.js";
|
|
5
|
+
import { m as b, o as G, G as S, k as u } from "./utils-BhG1dImS.js";
|
|
6
6
|
import N from "./Button.js";
|
|
7
|
-
import { s as
|
|
7
|
+
import { s as c } from "./emotion-styled.browser.esm-BNN1dTl3.js";
|
|
8
8
|
import { M as $ } from "./consts-BuFChS64.js";
|
|
9
|
-
const T =
|
|
9
|
+
const T = c.div`
|
|
10
10
|
display: grid;
|
|
11
|
-
grid-template-columns: ${(
|
|
11
|
+
grid-template-columns: ${(a) => `repeat(${a.limit}, minmax(0, 1fr))`};
|
|
12
12
|
gap: 1.25rem;
|
|
13
13
|
|
|
14
14
|
@media (max-width: ${$ + "px"}) {
|
|
15
15
|
grid-template-columns: repeat(1, 1fr);
|
|
16
16
|
}
|
|
17
|
-
`, j =
|
|
17
|
+
`, j = c.div`
|
|
18
18
|
display: flex;
|
|
19
19
|
flex-direction: column;
|
|
20
20
|
gap: 0.75rem;
|
|
@@ -29,7 +29,7 @@ const T = d.div`
|
|
|
29
29
|
& .text-wrap {
|
|
30
30
|
text-align: center;
|
|
31
31
|
}
|
|
32
|
-
`, E =
|
|
32
|
+
`, E = c.div`
|
|
33
33
|
width: 100%;
|
|
34
34
|
min-height: 11rem;
|
|
35
35
|
max-height: 11rem;
|
|
@@ -78,54 +78,54 @@ const T = d.div`
|
|
|
78
78
|
transform: rotate(315deg);
|
|
79
79
|
}
|
|
80
80
|
`;
|
|
81
|
-
|
|
81
|
+
c.div`
|
|
82
82
|
width: 100%;
|
|
83
83
|
height: 11.5rem;
|
|
84
84
|
border-radius: 0.75rem;
|
|
85
85
|
background: ${b("-90deg")};
|
|
86
86
|
`;
|
|
87
|
-
const f = h((
|
|
87
|
+
const f = h((a, m) => {
|
|
88
88
|
const {
|
|
89
|
-
image:
|
|
90
|
-
text:
|
|
89
|
+
image: d,
|
|
90
|
+
text: l,
|
|
91
91
|
price: i,
|
|
92
|
-
currency:
|
|
93
|
-
onSelectGiftCard:
|
|
92
|
+
currency: e,
|
|
93
|
+
onSelectGiftCard: s = () => {
|
|
94
94
|
}
|
|
95
|
-
} =
|
|
96
|
-
return /* @__PURE__ */
|
|
95
|
+
} = a;
|
|
96
|
+
return /* @__PURE__ */ n(
|
|
97
97
|
j,
|
|
98
98
|
{
|
|
99
|
-
ref:
|
|
99
|
+
ref: m,
|
|
100
100
|
className: "simple-gift-card",
|
|
101
|
-
onClick: () =>
|
|
101
|
+
onClick: () => s(i),
|
|
102
102
|
children: [
|
|
103
|
-
/* @__PURE__ */
|
|
104
|
-
/* @__PURE__ */ t("div", { className: "price-tag", children: i &&
|
|
105
|
-
/* @__PURE__ */ t("img", { src:
|
|
103
|
+
/* @__PURE__ */ n(E, { children: [
|
|
104
|
+
/* @__PURE__ */ t("div", { className: "price-tag", children: i && e && `${G(i)} ${S(e)}` }),
|
|
105
|
+
/* @__PURE__ */ t("img", { src: d })
|
|
106
106
|
] }),
|
|
107
|
-
/* @__PURE__ */ t("div", { className: "text-wrap", children:
|
|
107
|
+
/* @__PURE__ */ t("div", { className: "text-wrap", children: l })
|
|
108
108
|
]
|
|
109
109
|
}
|
|
110
110
|
);
|
|
111
|
-
}), D = h((
|
|
111
|
+
}), D = h((a, m) => {
|
|
112
112
|
const {
|
|
113
|
-
icon:
|
|
114
|
-
title:
|
|
113
|
+
icon: d,
|
|
114
|
+
title: l,
|
|
115
115
|
buttonLink: i,
|
|
116
|
-
items:
|
|
117
|
-
buttonText:
|
|
116
|
+
items: e,
|
|
117
|
+
buttonText: s,
|
|
118
118
|
limit: p = 4,
|
|
119
119
|
onSelectCard: g = () => {
|
|
120
120
|
},
|
|
121
121
|
onButtonAction: v = () => {
|
|
122
122
|
}
|
|
123
|
-
} =
|
|
124
|
-
return /* @__PURE__ */
|
|
125
|
-
/* @__PURE__ */
|
|
126
|
-
/* @__PURE__ */
|
|
127
|
-
u(
|
|
128
|
-
/* @__PURE__ */ t("span", { children:
|
|
123
|
+
} = a, w = C();
|
|
124
|
+
return /* @__PURE__ */ n(k, { ref: m, children: [
|
|
125
|
+
/* @__PURE__ */ n("div", { className: "regular-title", children: [
|
|
126
|
+
/* @__PURE__ */ n("div", { className: "regular-title-text", children: [
|
|
127
|
+
u(d) && /* @__PURE__ */ t("i", { className: d }),
|
|
128
|
+
/* @__PURE__ */ t("span", { children: l })
|
|
129
129
|
] }),
|
|
130
130
|
u(i) && /* @__PURE__ */ t(
|
|
131
131
|
N,
|
|
@@ -133,34 +133,37 @@ const f = h((o, c) => {
|
|
|
133
133
|
type: "button",
|
|
134
134
|
btnType: "tinted",
|
|
135
135
|
color: "gray",
|
|
136
|
-
onClick: () =>
|
|
136
|
+
onClick: (r) => {
|
|
137
|
+
var o;
|
|
138
|
+
(o = r == null ? void 0 : r.target) == null || o.blur(), v(i);
|
|
139
|
+
},
|
|
137
140
|
borderRadius: "curved",
|
|
138
|
-
children:
|
|
141
|
+
children: s
|
|
139
142
|
}
|
|
140
143
|
)
|
|
141
144
|
] }),
|
|
142
|
-
/* @__PURE__ */ t(T, { limit: p, children: w === !0 ?
|
|
145
|
+
/* @__PURE__ */ t(T, { limit: p, children: w === !0 ? e == null ? void 0 : e.map((r, o) => /* @__PURE__ */ t(
|
|
143
146
|
f,
|
|
144
147
|
{
|
|
145
|
-
text:
|
|
146
|
-
price:
|
|
147
|
-
currency:
|
|
148
|
-
image:
|
|
149
|
-
uuid:
|
|
150
|
-
onSelectGiftCard: (y) => g(
|
|
148
|
+
text: r == null ? void 0 : r.text,
|
|
149
|
+
price: r == null ? void 0 : r.priceTo,
|
|
150
|
+
currency: r == null ? void 0 : r.currencyIsoCode,
|
|
151
|
+
image: r == null ? void 0 : r.imageUrl,
|
|
152
|
+
uuid: r == null ? void 0 : r.uuid,
|
|
153
|
+
onSelectGiftCard: (y) => g(r)
|
|
151
154
|
},
|
|
152
|
-
|
|
153
|
-
)) :
|
|
155
|
+
o
|
|
156
|
+
)) : e == null ? void 0 : e.slice(0, p).map((r, o) => /* @__PURE__ */ t(
|
|
154
157
|
f,
|
|
155
158
|
{
|
|
156
|
-
text:
|
|
157
|
-
price:
|
|
158
|
-
currency:
|
|
159
|
-
image:
|
|
160
|
-
uuid:
|
|
161
|
-
onSelectGiftCard: (y) => g(
|
|
159
|
+
text: r == null ? void 0 : r.text,
|
|
160
|
+
price: r == null ? void 0 : r.priceTo,
|
|
161
|
+
currency: r == null ? void 0 : r.currencyIsoCode,
|
|
162
|
+
image: r == null ? void 0 : r.imageUrl,
|
|
163
|
+
uuid: r == null ? void 0 : r.uuid,
|
|
164
|
+
onSelectGiftCard: (y) => g(r)
|
|
162
165
|
},
|
|
163
|
-
|
|
166
|
+
o
|
|
164
167
|
)) })
|
|
165
168
|
] });
|
|
166
169
|
});
|
package/dist/Icon.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const n=require("react/jsx-runtime"),z=require("react"),s=require("./index-BPVoEhTF.cjs"),P=require("./emotion-styled.browser.esm-BtEseadx.cjs"),o=require("./utils-
|
|
1
|
+
"use strict";const n=require("react/jsx-runtime"),z=require("react"),s=require("./index-BPVoEhTF.cjs"),P=require("./emotion-styled.browser.esm-BtEseadx.cjs"),o=require("./utils-BWzf4vLl.cjs"),b=require("./emotion-element-f0de968e.browser.esm-B7k6i6lC.cjs"),I=P.styled.span`
|
|
2
2
|
box-sizing: border-box;
|
|
3
3
|
${e=>e.sizeInUnits&&e.sizeInUnits!=""?`font-size: ${e.sizeInUnits}`:o.getComponentTypographyCss(e.theme,"Icon",e.size,"enabled")};
|
|
4
4
|
${e=>e.color&&`color: ${o.getColorRgbaValue(e.theme,"Icon",e.color,"enabled","icon")}`};
|
package/dist/Icon.js
CHANGED
|
@@ -2,7 +2,7 @@ import { jsx as s } from "react/jsx-runtime";
|
|
|
2
2
|
import { forwardRef as z } from "react";
|
|
3
3
|
import { P as o } from "./index-S5Cd7WrG.js";
|
|
4
4
|
import { s as I } from "./emotion-styled.browser.esm-BNN1dTl3.js";
|
|
5
|
-
import { c as b, b as h } from "./utils-
|
|
5
|
+
import { c as b, b as h } from "./utils-BhG1dImS.js";
|
|
6
6
|
import { u as p } from "./emotion-element-f0de968e.browser.esm-CkCiQliQ.js";
|
|
7
7
|
const $ = I.span`
|
|
8
8
|
box-sizing: border-box;
|
package/dist/IconButton.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const a=require("react/jsx-runtime"),$=require("react"),o=require("./index-BPVoEhTF.cjs"),b=require("./emotion-styled.browser.esm-BtEseadx.cjs"),t=require("./utils-
|
|
1
|
+
"use strict";const a=require("react/jsx-runtime"),$=require("react"),o=require("./index-BPVoEhTF.cjs"),b=require("./emotion-styled.browser.esm-BtEseadx.cjs"),t=require("./utils-BWzf4vLl.cjs"),P=require("./emotion-element-f0de968e.browser.esm-B7k6i6lC.cjs"),m=e=>`
|
|
2
2
|
outline: none;
|
|
3
3
|
display: inline-flex;
|
|
4
4
|
flex-direction: row;
|
package/dist/IconButton.js
CHANGED
|
@@ -2,7 +2,7 @@ import { jsx as a } from "react/jsx-runtime";
|
|
|
2
2
|
import { forwardRef as S, isValidElement as N } from "react";
|
|
3
3
|
import { P as o } from "./index-S5Cd7WrG.js";
|
|
4
4
|
import { s as h } from "./emotion-styled.browser.esm-BNN1dTl3.js";
|
|
5
|
-
import { c as $, b as t, d as n, e as B, h as f, a as V } from "./utils-
|
|
5
|
+
import { c as $, b as t, d as n, e as B, h as f, a as V } from "./utils-BhG1dImS.js";
|
|
6
6
|
import { u as j } from "./emotion-element-f0de968e.browser.esm-CkCiQliQ.js";
|
|
7
7
|
const k = (e) => `
|
|
8
8
|
outline: none;
|
package/dist/Kanban.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const oe=require("react/jsx-runtime"),d=require("react"),Vt=require("./index-EeoArxOx.cjs"),Q=require("./index-BPVoEhTF.cjs"),we=require("./utils-
|
|
1
|
+
"use strict";const oe=require("react/jsx-runtime"),d=require("react"),Vt=require("./index-EeoArxOx.cjs"),Q=require("./index-BPVoEhTF.cjs"),we=require("./utils-BWzf4vLl.cjs"),Zr=require("./index-gY9e_8LL.cjs"),en=require("./emotion-styled.browser.esm-BtEseadx.cjs"),zr=require("./emotion-element-f0de968e.browser.esm-B7k6i6lC.cjs"),bo=require("./KanbanCard-CXRQQu4S.cjs"),Dt=require("./_commonjsHelpers-DKOUU3wS.cjs"),ii=require("./KanbanHeader.cjs"),si=require("./useUpdateEffect-BtMgpgIV.cjs");var ai=function(e){d.useEffect(e,[])};function ci(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return d.useMemo(()=>o=>{t.forEach(s=>s(o))},t)}const Un=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function tn(e){const t=Object.prototype.toString.call(e);return t==="[object Window]"||t==="[object global]"}function Hr(e){return"nodeType"in e}function Ke(e){var t,n;return e?tn(e)?e:Hr(e)&&(t=(n=e.ownerDocument)==null?void 0:n.defaultView)!=null?t:window:window}function Kr(e){const{Document:t}=Ke(e);return e instanceof t}function hn(e){return tn(e)?!1:e instanceof Ke(e).HTMLElement}function yo(e){return e instanceof Ke(e).SVGElement}function nn(e){return e?tn(e)?e.document:Hr(e)?Kr(e)?e:hn(e)||yo(e)?e.ownerDocument:document:document:document}const bt=Un?d.useLayoutEffect:d.useEffect;function kn(e){const t=d.useRef(e);return bt(()=>{t.current=e}),d.useCallback(function(){for(var n=arguments.length,o=new Array(n),s=0;s<n;s++)o[s]=arguments[s];return t.current==null?void 0:t.current(...o)},[])}function li(){const e=d.useRef(null),t=d.useCallback((o,s)=>{e.current=setInterval(o,s)},[]),n=d.useCallback(()=>{e.current!==null&&(clearInterval(e.current),e.current=null)},[]);return[t,n]}function gn(e,t){t===void 0&&(t=[e]);const n=d.useRef(e);return bt(()=>{n.current!==e&&(n.current=e)},t),n}function pn(e,t){const n=d.useRef();return d.useMemo(()=>{const o=e(n.current);return n.current=o,o},[...t])}function jn(e){const t=kn(e),n=d.useRef(null),o=d.useCallback(s=>{s!==n.current&&(t==null||t(s,n.current)),n.current=s},[]);return[n,o]}function $n(e){const t=d.useRef();return d.useEffect(()=>{t.current=e},[e]),t.current}let Tr={};function vn(e,t){return d.useMemo(()=>{if(t)return t;const n=Tr[e]==null?0:Tr[e]+1;return Tr[e]=n,e+"-"+n},[e,t])}function mo(e){return function(t){for(var n=arguments.length,o=new Array(n>1?n-1:0),s=1;s<n;s++)o[s-1]=arguments[s];return o.reduce((c,l)=>{const u=Object.entries(l);for(const[h,f]of u){const b=c[h];b!=null&&(c[h]=b+e*f)}return c},{...t})}}const Zt=mo(1),Bn=mo(-1);function ui(e){return"clientX"in e&&"clientY"in e}function Xn(e){if(!e)return!1;const{KeyboardEvent:t}=Ke(e.target);return t&&e instanceof t}function di(e){if(!e)return!1;const{TouchEvent:t}=Ke(e.target);return t&&e instanceof t}function Fn(e){if(di(e)){if(e.touches&&e.touches.length){const{clientX:t,clientY:n}=e.touches[0];return{x:t,y:n}}else if(e.changedTouches&&e.changedTouches.length){const{clientX:t,clientY:n}=e.changedTouches[0];return{x:t,y:n}}}return ui(e)?{x:e.clientX,y:e.clientY}:null}const Gt=Object.freeze({Translate:{toString(e){if(!e)return;const{x:t,y:n}=e;return"translate3d("+(t?Math.round(t):0)+"px, "+(n?Math.round(n):0)+"px, 0)"}},Scale:{toString(e){if(!e)return;const{scaleX:t,scaleY:n}=e;return"scaleX("+t+") scaleY("+n+")"}},Transform:{toString(e){if(e)return[Gt.Translate.toString(e),Gt.Scale.toString(e)].join(" ")}},Transition:{toString(e){let{property:t,duration:n,easing:o}=e;return t+" "+n+"ms "+o}}}),Qr="a,frame,iframe,input:not([type=hidden]):not(:disabled),select:not(:disabled),textarea:not(:disabled),button:not(:disabled),*[tabindex]";function fi(e){return e.matches(Qr)?e:e.querySelector(Qr)}const gi={display:"none"};function hi(e){let{id:t,value:n}=e;return d.createElement("div",{id:t,style:gi},n)}function pi(e){let{id:t,announcement:n,ariaLiveType:o="assertive"}=e;const s={position:"fixed",top:0,left:0,width:1,height:1,margin:-1,border:0,padding:0,overflow:"hidden",clip:"rect(0 0 0 0)",clipPath:"inset(100%)",whiteSpace:"nowrap"};return d.createElement("div",{id:t,style:s,role:"status","aria-live":o,"aria-atomic":!0},n)}function vi(){const[e,t]=d.useState("");return{announce:d.useCallback(o=>{o!=null&&t(o)},[]),announcement:e}}const xo=d.createContext(null);function bi(e){const t=d.useContext(xo);d.useEffect(()=>{if(!t)throw new Error("useDndMonitor must be used within a children of <DndContext>");return t(e)},[e,t])}function yi(){const[e]=d.useState(()=>new Set),t=d.useCallback(o=>(e.add(o),()=>e.delete(o)),[e]);return[d.useCallback(o=>{let{type:s,event:c}=o;e.forEach(l=>{var u;return(u=l[s])==null?void 0:u.call(l,c)})},[e]),t]}const mi={draggable:`
|
|
2
2
|
To pick up a draggable item, press the space bar.
|
|
3
3
|
While dragging, use the arrow keys to move the item.
|
|
4
4
|
Press space again to drop the item in its new position, or press escape to cancel.
|
|
@@ -82,4 +82,4 @@
|
|
|
82
82
|
flex-direction: ${e=>e.verticalDisplay?"column":"row"};
|
|
83
83
|
${e=>e.horizontalDisplay==!1&&"flex-wrap: wrap;"}
|
|
84
84
|
overflow: auto;
|
|
85
|
-
`,va=e=>ko({...e,wasDragging:!0}),ba={sideEffects:Ho({styles:{active:{opacity:"0.5"}}})},ya=()=>{const[e,t]=d.useState(!1);return d.useEffect(()=>{const n=setTimeout(()=>t(!0),500);return()=>clearTimeout(n)},[]),e},Fr=(e,t)=>{if(e)return we.getColorRgbaValue(t,"KanbanCard",e,"enabled","highlight")},ma=({children:e,containerId:t,columns:n=1,disabled:o,id:s,items:c,className:l,renderFooterContent:u,maxContainerHeight:h,style:f,...b})=>{var O;const{active:v,attributes:_,isDragging:w,listeners:I,over:x,setNodeRef:D,transition:A,transform:M}=Yo({id:s,data:{type:"container",children:c},animateLayoutChanges:va}),T=x?s===x.id&&((O=v==null?void 0:v.data.current)==null?void 0:O.type)!=="container"||c.includes(x.id):!1;return oe.jsx(Wo,{ref:o?void 0:D,style:{...f,transition:A,transform:Gt.Translate.toString(M),opacity:w?.5:void 0},className:l,hover:T,handleProps:{..._,...I},containerId:t,renderFooterContent:u,maxContainerHeight:h,...b,children:e})},xa=({disabled:e,id:t,item:n,index:o,renderItem:s,style:c={},containerId:l,getIndex:u,wrapperStyle:h,cardProps:f,theme:b,renderContent:v,color:_})=>{const{setNodeRef:w,setActivatorNodeRef:I,listeners:x,isDragging:D,isSorting:A,over:M,overIndex:T,transform:O,transition:L,attributes:N}=Yo({id:t}),P=ya(),$=D&&!P;return oe.jsx(Br,{ref:e?void 0:w,cardProps:f,value:t,dragging:D,sorting:A,handle:(f==null?void 0:f.handle)!==!1,handleProps:{...N,...x},index:o,wrapperStyle:h({index:o}),style:{...c,index:o,value:t,isDragging:D,isSorting:A,overIndex:M?u(M.id):T,containerId:l},color:Fr(n==null?void 0:n.color,b),transition:L,transform:O,fadeIn:$,listeners:x,renderItem:s,children:v(n==null?void 0:n.content,t,{...f,handleProps:{...N,...x},item:n,containerId:l})})},qo=d.forwardRef((e,t)=>{const{horizontalDisplay:n=!1,verticalDisplay:o=!1,adjustScale:s=!1,itemCount:c=5,cancelDrop:l,columns:u,handle:h=!1,containerStyle:f,coordinateGetter:b=Vs,getItemStyles:v=m=>({...m}),wrapperStyle:_=m=>({...m}),minimal:w=!1,modifiers:I,renderItem:x,strategy:D=ho,scrollable:A,maxContainerHeight:M,cardProps:T,headerProps:O,footerProps:L,data:N=[],columnInfo:P={},onColumnMoved:$=()=>{},onCardMoved:Y=()=>{},onCardChangedColumns:W=()=>{},color:K="primary",size:ie="small",children:ee,...Se}=e,Ge=zr.useTheme(),[k,te]=d.useState(()=>N??{A:vo(c,m=>`A${m+1}`),B:vo(c,m=>`B${m+1}`)}),[Ue,_e]=d.useState(Object.keys(N)),[B,ke]=d.useState(null),ne=d.useRef(null),Z=d.useRef(!1),Xe=B?Ue.includes(B):!1,nt=d.useCallback(m=>{var U;if(B&&B in k)return to({...m,droppableContainers:m.droppableContainers.filter(re=>re.id in k)});const C=Ai(m),F=C.length>0?C:wo(m);let V=kr(F,"id");if(V!=null){if(V in k){const re=k[V];re.length>0&&(V=(U=to({...m,droppableContainers:m.droppableContainers.filter(ae=>ae.id!==V&&re.map(ce=>ce.id).includes(ae.id))})[0])==null?void 0:U.id)}return ne.current=V,[{id:V}]}return Z.current&&(ne.current=B),ne.current?[{id:ne.current}]:[]},[B,k]),[se,dt]=d.useState([]),Ye=Ci(Or(No),Or(Po),Or(Wr,{coordinateGetter:b}));
|
|
85
|
+
`,va=e=>ko({...e,wasDragging:!0}),ba={sideEffects:Ho({styles:{active:{opacity:"0.5"}}})},ya=()=>{const[e,t]=d.useState(!1);return d.useEffect(()=>{const n=setTimeout(()=>t(!0),500);return()=>clearTimeout(n)},[]),e},Fr=(e,t)=>{if(e)return we.getColorRgbaValue(t,"KanbanCard",e,"enabled","highlight")},ma=({children:e,containerId:t,columns:n=1,disabled:o,id:s,items:c,className:l,renderFooterContent:u,maxContainerHeight:h,style:f,...b})=>{var O;const{active:v,attributes:_,isDragging:w,listeners:I,over:x,setNodeRef:D,transition:A,transform:M}=Yo({id:s,data:{type:"container",children:c},animateLayoutChanges:va}),T=x?s===x.id&&((O=v==null?void 0:v.data.current)==null?void 0:O.type)!=="container"||c.includes(x.id):!1;return oe.jsx(Wo,{ref:o?void 0:D,style:{...f,transition:A,transform:Gt.Translate.toString(M),opacity:w?.5:void 0},className:l,hover:T,handleProps:{..._,...I},containerId:t,renderFooterContent:u,maxContainerHeight:h,...b,children:e})},xa=({disabled:e,id:t,item:n,index:o,renderItem:s,style:c={},containerId:l,getIndex:u,wrapperStyle:h,cardProps:f,theme:b,renderContent:v,color:_})=>{const{setNodeRef:w,setActivatorNodeRef:I,listeners:x,isDragging:D,isSorting:A,over:M,overIndex:T,transform:O,transition:L,attributes:N}=Yo({id:t}),P=ya(),$=D&&!P;return oe.jsx(Br,{ref:e?void 0:w,cardProps:f,value:t,dragging:D,sorting:A,handle:(f==null?void 0:f.handle)!==!1,handleProps:{...N,...x},index:o,wrapperStyle:h({index:o}),style:{...c,index:o,value:t,isDragging:D,isSorting:A,overIndex:M?u(M.id):T,containerId:l},color:Fr(n==null?void 0:n.color,b),transition:L,transform:O,fadeIn:$,listeners:x,renderItem:s,children:v(n==null?void 0:n.content,t,{...f,handleProps:{...N,...x},item:n,containerId:l})})},qo=d.forwardRef((e,t)=>{const{horizontalDisplay:n=!1,verticalDisplay:o=!1,adjustScale:s=!1,itemCount:c=5,cancelDrop:l,columns:u,handle:h=!1,containerStyle:f,coordinateGetter:b=Vs,getItemStyles:v=m=>({...m}),wrapperStyle:_=m=>({...m}),minimal:w=!1,modifiers:I,renderItem:x,strategy:D=ho,scrollable:A,maxContainerHeight:M,cardProps:T,headerProps:O,footerProps:L,data:N=[],columnInfo:P={},onColumnMoved:$=()=>{},onCardMoved:Y=()=>{},onCardChangedColumns:W=()=>{},color:K="primary",size:ie="small",children:ee,...Se}=e,Ge=zr.useTheme(),[k,te]=d.useState(()=>N??{A:vo(c,m=>`A${m+1}`),B:vo(c,m=>`B${m+1}`)}),[Ue,_e]=d.useState(Object.keys(N)),[B,ke]=d.useState(null),ne=d.useRef(null),Z=d.useRef(!1),Xe=B?Ue.includes(B):!1,nt=d.useCallback(m=>{var U;if(B&&B in k)return to({...m,droppableContainers:m.droppableContainers.filter(re=>re.id in k)});const C=Ai(m),F=C.length>0?C:wo(m);let V=kr(F,"id");if(V!=null){if(V in k){const re=k[V];re.length>0&&(V=(U=to({...m,droppableContainers:m.droppableContainers.filter(ae=>ae.id!==V&&re.map(ce=>ce.id).includes(ae.id))})[0])==null?void 0:U.id)}return ne.current=V,[{id:V}]}return Z.current&&(ne.current=B),ne.current?[{id:ne.current}]:[]},[B,k]),[se,dt]=d.useState([]),Ye=Ci(Or(No),Or(Po),Or(Wr,{coordinateGetter:b}));ai(()=>{te(N),_e(Object.keys(N))}),si.useUpdateEffect(()=>{te(N),_e(Object.keys(N))},[N]),d.useEffect(()=>{requestAnimationFrame(()=>{Z.current=!1})},[k]);const fe=m=>m in k?m:Object.keys(k).find(C=>k[C].map(F=>F.id).includes(m)),G=m=>{const C=fe(m);return C?Xt(k[C],F=>F.id==m):-1},rt=()=>{se&&te(se),ke(null),dt(null)},Te=m=>{ke(m.active.id),dt(k)},ot=m=>{const{active:C,over:F}=m,V=F==null?void 0:F.id;if(V==null||C.id in k)return;const U=fe(V),re=fe(C.id);!U||!re||re!==U&&te(ae=>{const ce=ae[re],ge=ae[U],pe=Xt(ge,je=>je.id==V),ft=Xt(ce,je=>je.id==C.id);let le;if(V in ae)le=ge.length+1;else{const Rt=F&&C.rect.current.translated&&C.rect.current.translated.top>F.rect.top+F.rect.height?1:0;le=pe>=0?pe+Rt:ge.length+1}return W(C.id),Z.current=!0,{...ae,[re]:ae[re].filter(je=>je.id!=C.id),[U]:[...ae[U].slice(0,le),ae[re][ft],...ae[U].slice(le,ae[U].length)]}})},z=m=>{const{active:C,over:F}=m;var V=!1,U=fa(k);C.id in k&&(F!=null&&F.id)&&_e(ue=>{V=!0;const de=ue.indexOf(C.id),$e=ue.indexOf(F.id);var Ze=fn(ue,de,$e);return C.id!==F.id&&$(m,Ze),Ze});const re=fe(C.id);if(!re){ke(null);return}const ae=F==null?void 0:F.id;if(ae==null){ke(null);return}const ce=fe(ae);if(ce){const ue=Xt(k[re],$e=>$e.id==C.id),de=Xt(k[ce],$e=>$e.id==ae);ue!==de&&(U={...U,[ce]:fn(U[ce],ue,de)},te($e=>({...$e,[ce]:fn($e[ce],ue,de)})))}if(!V){var ge,pe=null,ft,le=-1,je=Object.keys(se),Rt=Object.keys(U);je.forEach(ue=>{if(se[ue].map(de=>de.id.toString()).includes(C.id.toString())){ge=ue,ft=Xt(se[ue],de=>de.id==C.id);return}}),Rt.forEach(ue=>{if(U[ue].map(de=>de.id.toString()).includes(C.id.toString())){pe=ue,le=Xt(U[ue],de=>de.id==C.id);return}}),ge===pe&&ft!==le&&Y(m,U,pe),ge!==pe&&W(m,U,pe,ge)}ke(null)},Ve=m=>{var C=null;return Ue.forEach(F=>{k[F].forEach(V=>{if(V.id==m){C=V;return}})}),oe.jsx(Br,{value:m,handle:h,cardProps:T,style:v({containerId:fe(m),overIndex:-1,index:G(m),value:m,isSorting:!0,isDragging:!0,isDragOverlay:!0}),color:Fr(C==null?void 0:C.color,Ge),wrapperStyle:_({index:0}),renderItem:x,dragOverlay:!0,children:it(C==null?void 0:C.content,m,{...T,item:C})||{name:m}})},Le=m=>oe.jsx(Wo,{label:mt(m),columns:u,style:{height:"100%"},shadow:!0,unstyled:!1,containerId:m,renderFooterContent:Oe,children:k[m].map((C,F)=>oe.jsx(Br,{cardProps:T,value:C.id,handle:h,style:v({containerId:m,overIndex:-1,index:G(C),value:C,isDragging:!1,isSorting:!1,isDragOverlay:!1}),color:Fr(C==null?void 0:C.color,Ge),wrapperStyle:_({index:F}),renderItem:x,children:it(C==null?void 0:C.content,C==null?void 0:C.id,{...T,item:C,containerId:m})},C.id))}),mt=m=>{let C=u==null?void 0:u.find(F=>F.id==(m==null?void 0:m.toString()));return we.renderCustomElement(we.getCustomRenderById("KANBAN_HEADER",m,ee),{...O,item:{[m]:k[m]},column:C},C==null?void 0:C.header,!0)||we.renderCustomElement(we.getCustomRenderById("KANBAN_HEADER",null,ee),{...O,item:{[m]:k[m]},column:C},C==null?void 0:C.header,!0)||oe.jsx(ii,{id:m,color:K,size:ie,item:{[m]:k[m]},column:C,...O,children:C==null?void 0:C.header})},Oe=m=>we.renderCustomElement(we.getCustomRenderById("KANBAN_FOOTER",m,ee),{...L,id:m},null)||we.renderCustomElement(we.getCustomRenderById("KANBAN_FOOTER",null,ee),{...L,id:m},null),it=(m,C,F)=>we.renderCustomElement(we.getCustomRenderById("KANBAN_CARD",C,ee),{...F},m,!0)||we.renderCustomElement(we.getCustomRenderById("KANBAN_CARD",null,ee),{...F},m,!0)||oe.jsx(bo.KanbanCard,{color:K,size:ie,...F,children:m});return oe.jsx(ha,{ref:t,...Se,children:oe.jsxs(ys,{measuring:{droppable:{strategy:Qt.Always}},sensors:Ye,collisionDetection:nt,modifiers:I,cancelDrop:l,onDragCancel:rt,onDragStart:Te,onDragOver:ot,onDragEnd:z,children:[oe.jsx(pa,{horizontalDisplay:n,verticalDisplay:o,children:oe.jsx(po,{items:[...Ue],strategy:o?ho:zs,children:Ue.map(m=>oe.jsx(ma,{id:m,label:w?void 0:mt(m),items:k[m],color:K,scrollable:A,style:f,unstyled:w,containerId:m,renderFooterContent:Oe,maxContainerHeight:M,...O,children:oe.jsx(po,{items:k[m],strategy:D,children:k[m].map((C,F)=>oe.jsx(xa,{disabled:Xe||(C==null?void 0:C.disabled),id:C.id,item:C,index:F,style:v,wrapperStyle:_,renderItem:x,containerId:m,getIndex:G,cardProps:T,theme:Ge,renderContent:it},C.id))})},m))})}),Vt.reactDomExports.createPortal(oe.jsx(js,{adjustScale:s,dropAnimation:ba,children:B?Ue.includes(B)?Le(B):Ve(B):null}),document.body)]})})});qo.propTypes={horizontalDisplay:Q.PropTypes.bool,verticalDisplay:Q.PropTypes.bool,adjustScale:Q.PropTypes.bool,itemCount:Q.PropTypes.bool,cancelDrop:Q.PropTypes.func,columns:Q.PropTypes.array,handle:Q.PropTypes.bool,getItemStyles:Q.PropTypes.func,wrapperStyle:Q.PropTypes.func,minimal:Q.PropTypes.bool,renderItem:Q.PropTypes.func,scrollable:Q.PropTypes.bool,cardProps:Q.PropTypes.any,headerProps:Q.PropTypes.any,footerProps:Q.PropTypes.any,data:Q.PropTypes.object,columnInfo:Q.PropTypes.object,onColumnMoved:Q.PropTypes.func,onCardMoved:Q.PropTypes.func,onCardChangedColumns:Q.PropTypes.func,maxContainerHeight:Q.PropTypes.string,className:Q.PropTypes.string,style:Q.PropTypes.object,color:Q.PropTypes.oneOf(["primary","secondary","success","warning","danger","information","neutral","gray"]),size:Q.PropTypes.oneOf(["small","medium","large"])};module.exports=qo;
|