@lanaco/lnc-react-ui 4.0.169 → 4.0.171
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.js +1 -1
- package/dist/AccordionSummary.js +1 -1
- package/dist/ActionsToolbar.js +1 -1
- package/dist/Alert.js +1 -1
- package/dist/Avatar.js +1 -1
- package/dist/Badge.js +1 -1
- package/dist/BannerSectionCarousel.cjs +9 -48
- package/dist/BannerSectionCarousel.js +208 -249
- package/dist/BannerSectionSimple.js +1 -1
- package/dist/BannerSectionWithList.js +1 -1
- package/dist/BlogCardsSponsoredSection.cjs +8 -8
- package/dist/BlogCardsSponsoredSection.js +67 -68
- package/dist/BlogCategoryCardsSection.cjs +1 -1
- package/dist/BlogCategoryCardsSection.js +22 -30
- package/dist/BlogExploreSection.js +9 -9
- package/dist/BlogListSection.cjs +11 -5
- package/dist/BlogListSection.js +187 -123
- package/dist/BlogProductCardsSection.cjs +1 -1
- package/dist/BlogProductCardsSection.js +28 -37
- package/dist/BlogShopCardsSection.cjs +1 -1
- package/dist/BlogShopCardsSection.js +40 -67
- package/dist/BlogSingleSection.cjs +16 -1
- package/dist/BlogSingleSection.js +47 -45
- package/dist/BlogsSectionDetailed.cjs +8 -27
- package/dist/BlogsSectionDetailed.js +111 -159
- package/dist/BlogsSectionLarge.cjs +19 -4
- package/dist/BlogsSectionLarge.js +73 -37
- package/dist/BlogsSectionSimple.cjs +9 -9
- package/dist/BlogsSectionSimple.js +81 -107
- package/dist/BlogsSectionSimpleCentered.cjs +25 -23
- package/dist/BlogsSectionSimpleCentered.js +103 -96
- package/dist/BlogsSectionWithFilters.cjs +31 -29
- package/dist/BlogsSectionWithFilters.js +173 -134
- package/dist/BrandHitsSection.cjs +10 -14
- package/dist/BrandHitsSection.js +93 -45
- package/dist/Breadcrumbs.js +1 -1
- package/dist/Button.js +1 -1
- package/dist/ButtonGroup.js +1 -1
- package/dist/CalorieCalculatorSection.js +1 -1
- package/dist/CategorySimpleCard-Qe5QStrs.cjs +47 -0
- package/dist/CategorySimpleCard-laAY-RUT.js +70 -0
- package/dist/CheckBoxInput.js +1 -1
- package/dist/Chip.js +1 -1
- package/dist/ColorInput.js +1 -1
- package/dist/ConfirmationForm.js +1 -1
- package/dist/CustomLoanMapSection.js +1 -1
- package/dist/{CustomStyles-SyQRnjuy.js → CustomStyles-ArAVZsIj.js} +1 -1
- package/dist/DateInput.js +1 -1
- package/dist/DecimalInput.js +1 -1
- package/dist/DecimalInputV2.js +1 -1
- package/dist/DetailedProductsInfinitiveSection.cjs +3 -3
- package/dist/DetailedProductsInfinitiveSection.js +35 -36
- package/dist/DetailedProductsSection.cjs +4 -4
- package/dist/DetailedProductsSection.js +62 -63
- package/dist/DetailsView.js +1 -1
- package/dist/DoubleRangeSlider.js +1 -1
- package/dist/DragAndDropFile.js +1 -1
- package/dist/DragDropFiles.js +1 -1
- package/dist/Drawer.js +1 -1
- package/dist/Dropdown.js +2 -2
- package/dist/DropdownItem.js +1 -1
- package/dist/DropdownLookup.js +1 -1
- package/dist/DropdownMenu.js +1 -1
- package/dist/EditableTable.js +1 -1
- package/dist/FeedbackSection.js +1 -1
- package/dist/FieldOfInterestsMasonrySection.cjs +20 -25
- package/dist/FieldOfInterestsMasonrySection.js +228 -154
- package/dist/FieldOfInterestsWithAvatarsCardsSection.cjs +33 -24
- package/dist/FieldOfInterestsWithAvatarsCardsSection.js +178 -113
- package/dist/FieldOfInterestsWithTagsCardsSection.cjs +6 -16
- package/dist/FieldOfInterestsWithTagsCardsSection.js +89 -93
- package/dist/FileInput.js +1 -1
- package/dist/FlexGridItem.js +1 -1
- package/dist/FormField.js +1 -1
- package/dist/FormView.js +1 -1
- package/dist/GeneralWithTagsCardsSection.cjs +11 -27
- package/dist/GeneralWithTagsCardsSection.js +87 -99
- package/dist/GiftCardsSection.cjs +18 -23
- package/dist/GiftCardsSection.js +146 -77
- package/dist/Icon.js +1 -1
- package/dist/IconButton.js +1 -1
- package/dist/Kanban.js +1 -1
- package/dist/KanbanActionsToolbar.js +1 -1
- package/dist/KanbanView.js +1 -1
- package/dist/Link.js +1 -1
- package/dist/LoanCalculatorSection.js +1 -1
- package/dist/LocationFinderSection.js +1 -1
- package/dist/LocationSearchSection.js +1 -1
- package/dist/MasonryGeneralCardsSection.cjs +33 -19
- package/dist/MasonryGeneralCardsSection.js +114 -68
- package/dist/MenuItem.js +1 -1
- package/dist/Modal.js +1 -1
- package/dist/MultiSelectDropdown.js +1 -1
- package/dist/MultiSelectDropdownLookup.js +1 -1
- package/dist/NestedDropdownItem.js +1 -1
- package/dist/NestedMenuItem.js +1 -1
- package/dist/NotificationContainer.js +1 -1
- package/dist/NotificationMessage.js +1 -1
- package/dist/NumberInput.js +1 -1
- package/dist/OverlayGeneralCardsSection.cjs +5 -5
- package/dist/OverlayGeneralCardsSection.js +54 -40
- package/dist/PasswordInput.js +1 -1
- package/dist/PopoverContent.js +1 -1
- package/dist/ProductsWithBannerSection.cjs +15 -20
- package/dist/ProductsWithBannerSection.js +176 -104
- package/dist/ProgressBar.js +1 -1
- package/dist/QuattroCardsSection.cjs +6 -6
- package/dist/QuattroCardsSection.js +42 -34
- package/dist/QuizSection.js +1 -1
- package/dist/RadioInput.js +1 -1
- package/dist/RangeSlider.js +1 -1
- package/dist/ReviewsSection.cjs +24 -30
- package/dist/ReviewsSection.js +170 -137
- package/dist/SalesCampaignsSection.cjs +46 -130
- package/dist/SalesCampaignsSection.js +354 -433
- package/dist/Separator.js +1 -1
- package/dist/ShopCardsSection.cjs +18 -5
- package/dist/ShopCardsSection.js +145 -88
- package/dist/Sidebar.js +1 -1
- package/dist/SimpleCategoriesSection.cjs +10 -4
- package/dist/SimpleCategoriesSection.js +79 -51
- package/dist/SimpleProductsSection.cjs +16 -3
- package/dist/SimpleProductsSection.js +172 -70
- package/dist/Spinner.js +1 -1
- package/dist/StatsSection.js +4 -4
- package/dist/Surface.js +1 -1
- package/dist/SwipeableDrawer.js +1 -1
- package/dist/TabItem.js +1 -1
- package/dist/Table.js +1 -1
- package/dist/TableView.js +1 -1
- package/dist/TextAreaInput.js +1 -1
- package/dist/TextInput.js +1 -1
- package/dist/ThemeProvider.js +1 -1
- package/dist/TimeInput.js +1 -1
- package/dist/Toggle.js +1 -1
- package/dist/TreeMenuSeparator.js +1 -1
- package/dist/UploadedFile.js +1 -1
- package/dist/UrgentSaleProductsSection.cjs +2 -2
- package/dist/UrgentSaleProductsSection.js +62 -61
- package/dist/index-BAJkosVg.cjs +11 -0
- package/dist/{index-dXWRbvgi.js → index-BMOLVn8O.js} +1 -1
- package/dist/{skeleton-5mO22c5S.js → index-BPntOicE.js} +55 -107
- package/dist/index-BSpdEGFd.js +42 -0
- package/dist/{index-CF3HhgvN.js → index-BbltNcou.js} +1 -1
- package/dist/index-BhBRZf4M.js +742 -0
- package/dist/index-BovNbKxB.js +54 -0
- package/dist/{skeleton-Ccd6EDeB.cjs → index-C5r__0lD.cjs} +4 -47
- package/dist/{index-DicTpiG0.cjs → index-CfT9e5O9.cjs} +2 -10
- package/dist/index-D-3I_Ppj.cjs +16 -0
- package/dist/index-D0IYt1s3.cjs +20 -0
- package/dist/{skeleton-CQPwIEP0.js → index-D69SKc-n.cjs} +7 -37
- package/dist/{index-C0SKNFzP.js → index-D8KPbcUf.js} +1 -1
- package/dist/index-DFdPWO4O.js +133 -0
- package/dist/index-DFyV_EK2.cjs +305 -0
- package/dist/index-DxwIu0Wn.js +84 -0
- package/dist/{index-y6sKgrZC.js → index-XYs5Cuh5.js} +21 -30
- package/dist/index.js +1 -1
- package/dist/style-BAcV7F53.cjs +64 -0
- package/dist/style-CXMUA6cI.js +74 -0
- package/dist/{style-DKAOBWn3.js → style-D3pIrH3v.js} +1 -1
- package/dist/{utils-BdsZgOUE.js → utils-DHfRApMf.js} +6 -6
- package/package.json +1 -1
- package/dist/index-1Dm1i6WK.js +0 -52
- package/dist/index-BGTtoLxz.cjs +0 -1
- package/dist/skeleton-BdbB-LdT.cjs +0 -97
- package/dist/suspense-categories-card-simple-BGj475Ca.js +0 -101
- package/dist/suspense-categories-card-simple-CjGtzfzp.cjs +0 -55
- package/dist/suspense-large-BMO7JH52.js +0 -26
- package/dist/suspense-large-CFmcSzX-.cjs +0 -1
- package/dist/suspense-product-card-detailed-CxiFuUOT.js +0 -653
- package/dist/suspense-product-card-detailed-IR4sh-l4.cjs +0 -330
- package/dist/suspense-product-card-simple-DJ8UYolb.cjs +0 -1
- package/dist/suspense-product-card-simple-ziy0XcLp.js +0 -26
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
"use strict";const
|
|
1
|
+
"use strict";const r=require("react/jsx-runtime"),h=require("react"),y=require("./useDetectMobile-zkbzoOGV.cjs"),v=require("./style-Db3VFbfP.cjs"),c=require("./utils-Dl9xPH4c.cjs"),C=require("./Button.cjs"),u=require("./emotion-styled.browser.esm-BtEseadx.cjs"),b=require("./consts-goSZX3xP.cjs"),t=require("./style-BAcV7F53.cjs"),R=u.styled.div`
|
|
2
2
|
display: grid;
|
|
3
|
-
grid-template-columns: ${
|
|
3
|
+
grid-template-columns: ${i=>`repeat(${i.limit}, minmax(0, 1fr))`};
|
|
4
4
|
gap: 1.25rem;
|
|
5
5
|
|
|
6
|
-
@media (max-width: ${
|
|
6
|
+
@media (max-width: ${b.MOBILE_SIZE_PX+"px"}) {
|
|
7
7
|
grid-template-columns: repeat(1, 1fr);
|
|
8
8
|
}
|
|
9
|
-
`,
|
|
9
|
+
`,G=u.styled.div`
|
|
10
10
|
display: flex;
|
|
11
11
|
flex-direction: column;
|
|
12
12
|
gap: 0.75rem;
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
transform: scale(1.1);
|
|
28
28
|
}
|
|
29
29
|
}
|
|
30
|
-
`,
|
|
30
|
+
`,L=u.styled.div`
|
|
31
31
|
width: 100%;
|
|
32
32
|
min-height: 11rem;
|
|
33
33
|
max-height: 11rem;
|
|
@@ -36,18 +36,6 @@
|
|
|
36
36
|
border: 1px solid var(--warning-500, #f59e0b);
|
|
37
37
|
overflow: hidden;
|
|
38
38
|
|
|
39
|
-
& .skeleton__card {
|
|
40
|
-
height: 100%;
|
|
41
|
-
width: 100%;
|
|
42
|
-
${o.linearGradientAnimation("-90deg")}
|
|
43
|
-
|
|
44
|
-
background: linear-gradient(
|
|
45
|
-
178deg,
|
|
46
|
-
rgba(0, 0, 0, 0) 1.5%,
|
|
47
|
-
rgba(0, 0, 0, 0.16) 8.95%,
|
|
48
|
-
#000 98.39%
|
|
49
|
-
);
|
|
50
|
-
}
|
|
51
39
|
& img {
|
|
52
40
|
min-height: 11rem;
|
|
53
41
|
max-height: 11rem;
|
|
@@ -76,9 +64,16 @@
|
|
|
76
64
|
-webkit-transform: rotate(315deg);
|
|
77
65
|
transform: rotate(315deg);
|
|
78
66
|
}
|
|
79
|
-
|
|
80
|
-
width:
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
67
|
+
`,j=h.forwardRef((i,l)=>{const{image:o,text:d,price:s,currency:n,onSelectGiftCard:m=()=>{}}=i;return r.jsxs(G,{ref:l,className:"simple-gift-card",onClick:()=>m(s),children:[r.jsxs(L,{children:[r.jsx("div",{className:"price-tag",children:s&&n&&`${c.formatPrice(s)} ${c.GetCurrencySymbol(n)}`}),r.jsx("img",{src:o})]}),r.jsx("div",{className:"text-wrap",children:d})]})}),$=u.styled(t.SkeletonRowWrapper)`
|
|
68
|
+
@media (max-width: ${b.MOBILE_SIZE_PX+"px"}) {
|
|
69
|
+
flex-direction: column;
|
|
70
|
+
|
|
71
|
+
& > div {
|
|
72
|
+
flex-direction: column;
|
|
73
|
+
|
|
74
|
+
& > div {
|
|
75
|
+
${t.skeletonGradientBackground}
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
`,I=({keyPrefix:i})=>r.jsxs($,{children:[r.jsxs(t.SkeletonColumnWrapper,{alignItems:"center",children:[r.jsx(t.SkeletonLinePlaceholder,{height:"11rem",borderRadius:"0.75rem"}),r.jsx(t.SkeletonLinePlaceholder,{height:"1.25rem",borderRadius:"0.75rem",width:"5rem"})]},`${i}-1`),r.jsxs(t.SkeletonColumnWrapper,{alignItems:"center",noGradient:!0,children:[r.jsx(t.SkeletonLinePlaceholder,{height:"11rem",borderRadius:"0.75rem"}),r.jsx(t.SkeletonLinePlaceholder,{height:"1.25rem",borderRadius:"0.75rem",width:"5rem"})]},`${i}-2`),r.jsxs(t.SkeletonColumnWrapper,{alignItems:"center",noGradient:!0,children:[r.jsx(t.SkeletonLinePlaceholder,{height:"11rem",borderRadius:"0.75rem"}),r.jsx(t.SkeletonLinePlaceholder,{height:"1.25rem",borderRadius:"0.75rem",width:"5rem"})]},`${i}-3`),r.jsxs(t.SkeletonColumnWrapper,{alignItems:"center",noGradient:!0,children:[r.jsx(t.SkeletonLinePlaceholder,{height:"11rem",borderRadius:"0.75rem"}),r.jsx(t.SkeletonLinePlaceholder,{height:"1.25rem",borderRadius:"0.75rem",width:"5rem"})]},`${i}-4`)]}),N=({keyPrefix:i,isLoading:l=!1,fallbackComponent:o=r.jsx(r.Fragment,{}),children:d})=>r.jsx(h.Suspense,{fallbackComponent:o,children:l===!0?r.jsx(I,{keyPrefix:i}):d}),q=h.forwardRef((i,l)=>{const{icon:o,title:d,buttonLink:s,items:n,isLoading:m=!1,buttonText:p,limit:g=4,onSelectCard:f=()=>{},onButtonAction:S=()=>{}}=i,w=y.useDetectMobile();return r.jsxs(v.RegulatTitleSectionWrapper,{ref:l,children:[r.jsxs("div",{className:"regular-title",children:[r.jsxs("div",{className:"regular-title-text",children:[c.isDefinedNotEmptyString(o)&&r.jsx("i",{className:o}),r.jsx("span",{children:d})]}),c.isDefinedNotEmptyString(p)&&c.isDefinedNotEmptyString(s)&&!m&&r.jsx(C,{type:"button",btnType:"tinted",color:"neutral",onClick:e=>{var a;(a=e==null?void 0:e.target)==null||a.blur(),S(s)},borderRadius:"curved",className:"button-link",children:p})]}),r.jsx(N,{isLoading:m,keyPrefix:"gift-cards-skeleton",children:r.jsx(R,{limit:g,children:w===!0?n==null?void 0:n.map((e,a)=>r.jsx(j,{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:k=>f(e)},a)):n==null?void 0:n.slice(0,g).map((e,a)=>r.jsx(j,{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:k=>f(e)},a))})})]})});module.exports=q;
|
package/dist/GiftCardsSection.js
CHANGED
|
@@ -1,20 +1,21 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { forwardRef as
|
|
3
|
-
import { u as
|
|
4
|
-
import { R as
|
|
5
|
-
import {
|
|
6
|
-
import
|
|
7
|
-
import { s as
|
|
8
|
-
import { M as
|
|
9
|
-
|
|
1
|
+
import { jsxs as i, jsx as r, Fragment as R } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as v, Suspense as k } from "react";
|
|
3
|
+
import { u as $ } from "./useDetectMobile-Bkvj0VMa.js";
|
|
4
|
+
import { R as I } from "./style-D3pIrH3v.js";
|
|
5
|
+
import { p as N, G as W, k as h } from "./utils-DHfRApMf.js";
|
|
6
|
+
import T from "./Button.js";
|
|
7
|
+
import { s as p } from "./emotion-styled.browser.esm-BNN1dTl3.js";
|
|
8
|
+
import { M as S } from "./consts-BuFChS64.js";
|
|
9
|
+
import { s as j, a as z, S as u, b as o } from "./style-CXMUA6cI.js";
|
|
10
|
+
const B = p.div`
|
|
10
11
|
display: grid;
|
|
11
|
-
grid-template-columns: ${(
|
|
12
|
+
grid-template-columns: ${(t) => `repeat(${t.limit}, minmax(0, 1fr))`};
|
|
12
13
|
gap: 1.25rem;
|
|
13
14
|
|
|
14
|
-
@media (max-width: ${
|
|
15
|
+
@media (max-width: ${S + "px"}) {
|
|
15
16
|
grid-template-columns: repeat(1, 1fr);
|
|
16
17
|
}
|
|
17
|
-
`,
|
|
18
|
+
`, E = p.div`
|
|
18
19
|
display: flex;
|
|
19
20
|
flex-direction: column;
|
|
20
21
|
gap: 0.75rem;
|
|
@@ -35,7 +36,7 @@ const T = c.div`
|
|
|
35
36
|
transform: scale(1.1);
|
|
36
37
|
}
|
|
37
38
|
}
|
|
38
|
-
`,
|
|
39
|
+
`, L = p.div`
|
|
39
40
|
width: 100%;
|
|
40
41
|
min-height: 11rem;
|
|
41
42
|
max-height: 11rem;
|
|
@@ -44,18 +45,6 @@ const T = c.div`
|
|
|
44
45
|
border: 1px solid var(--warning-500, #f59e0b);
|
|
45
46
|
overflow: hidden;
|
|
46
47
|
|
|
47
|
-
& .skeleton__card {
|
|
48
|
-
height: 100%;
|
|
49
|
-
width: 100%;
|
|
50
|
-
${b("-90deg")}
|
|
51
|
-
|
|
52
|
-
background: linear-gradient(
|
|
53
|
-
178deg,
|
|
54
|
-
rgba(0, 0, 0, 0) 1.5%,
|
|
55
|
-
rgba(0, 0, 0, 0.16) 8.95%,
|
|
56
|
-
#000 98.39%
|
|
57
|
-
);
|
|
58
|
-
}
|
|
59
48
|
& img {
|
|
60
49
|
min-height: 11rem;
|
|
61
50
|
max-height: 11rem;
|
|
@@ -84,97 +73,177 @@ const T = c.div`
|
|
|
84
73
|
-webkit-transform: rotate(315deg);
|
|
85
74
|
transform: rotate(315deg);
|
|
86
75
|
}
|
|
87
|
-
|
|
88
|
-
c.div`
|
|
89
|
-
width: 100%;
|
|
90
|
-
height: 11.5rem;
|
|
91
|
-
border-radius: 0.75rem;
|
|
92
|
-
background: ${b("-90deg")};
|
|
93
|
-
`;
|
|
94
|
-
const f = h((a, l) => {
|
|
76
|
+
`, w = v((t, m) => {
|
|
95
77
|
const {
|
|
96
|
-
image:
|
|
97
|
-
text:
|
|
98
|
-
price:
|
|
99
|
-
currency:
|
|
100
|
-
onSelectGiftCard:
|
|
78
|
+
image: a,
|
|
79
|
+
text: l,
|
|
80
|
+
price: d,
|
|
81
|
+
currency: n,
|
|
82
|
+
onSelectGiftCard: c = () => {
|
|
101
83
|
}
|
|
102
|
-
} =
|
|
103
|
-
return /* @__PURE__ */
|
|
104
|
-
|
|
84
|
+
} = t;
|
|
85
|
+
return /* @__PURE__ */ i(
|
|
86
|
+
E,
|
|
105
87
|
{
|
|
106
|
-
ref:
|
|
88
|
+
ref: m,
|
|
107
89
|
className: "simple-gift-card",
|
|
108
|
-
onClick: () =>
|
|
90
|
+
onClick: () => c(d),
|
|
109
91
|
children: [
|
|
110
|
-
/* @__PURE__ */
|
|
111
|
-
/* @__PURE__ */
|
|
112
|
-
/* @__PURE__ */
|
|
92
|
+
/* @__PURE__ */ i(L, { children: [
|
|
93
|
+
/* @__PURE__ */ r("div", { className: "price-tag", children: d && n && `${N(d)} ${W(n)}` }),
|
|
94
|
+
/* @__PURE__ */ r("img", { src: a })
|
|
113
95
|
] }),
|
|
114
|
-
/* @__PURE__ */
|
|
96
|
+
/* @__PURE__ */ r("div", { className: "text-wrap", children: l })
|
|
115
97
|
]
|
|
116
98
|
}
|
|
117
99
|
);
|
|
118
|
-
}),
|
|
100
|
+
}), M = p(z)`
|
|
101
|
+
@media (max-width: ${S + "px"}) {
|
|
102
|
+
flex-direction: column;
|
|
103
|
+
|
|
104
|
+
& > div {
|
|
105
|
+
flex-direction: column;
|
|
106
|
+
|
|
107
|
+
& > div {
|
|
108
|
+
${j}
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
`, D = ({ keyPrefix: t }) => /* @__PURE__ */ i(M, { children: [
|
|
113
|
+
/* @__PURE__ */ i(u, { alignItems: "center", children: [
|
|
114
|
+
/* @__PURE__ */ r(o, { height: "11rem", borderRadius: "0.75rem" }),
|
|
115
|
+
/* @__PURE__ */ r(
|
|
116
|
+
o,
|
|
117
|
+
{
|
|
118
|
+
height: "1.25rem",
|
|
119
|
+
borderRadius: "0.75rem",
|
|
120
|
+
width: "5rem"
|
|
121
|
+
}
|
|
122
|
+
)
|
|
123
|
+
] }, `${t}-1`),
|
|
124
|
+
/* @__PURE__ */ i(
|
|
125
|
+
u,
|
|
126
|
+
{
|
|
127
|
+
alignItems: "center",
|
|
128
|
+
noGradient: !0,
|
|
129
|
+
children: [
|
|
130
|
+
/* @__PURE__ */ r(o, { height: "11rem", borderRadius: "0.75rem" }),
|
|
131
|
+
/* @__PURE__ */ r(
|
|
132
|
+
o,
|
|
133
|
+
{
|
|
134
|
+
height: "1.25rem",
|
|
135
|
+
borderRadius: "0.75rem",
|
|
136
|
+
width: "5rem"
|
|
137
|
+
}
|
|
138
|
+
)
|
|
139
|
+
]
|
|
140
|
+
},
|
|
141
|
+
`${t}-2`
|
|
142
|
+
),
|
|
143
|
+
/* @__PURE__ */ i(
|
|
144
|
+
u,
|
|
145
|
+
{
|
|
146
|
+
alignItems: "center",
|
|
147
|
+
noGradient: !0,
|
|
148
|
+
children: [
|
|
149
|
+
/* @__PURE__ */ r(o, { height: "11rem", borderRadius: "0.75rem" }),
|
|
150
|
+
/* @__PURE__ */ r(
|
|
151
|
+
o,
|
|
152
|
+
{
|
|
153
|
+
height: "1.25rem",
|
|
154
|
+
borderRadius: "0.75rem",
|
|
155
|
+
width: "5rem"
|
|
156
|
+
}
|
|
157
|
+
)
|
|
158
|
+
]
|
|
159
|
+
},
|
|
160
|
+
`${t}-3`
|
|
161
|
+
),
|
|
162
|
+
/* @__PURE__ */ i(
|
|
163
|
+
u,
|
|
164
|
+
{
|
|
165
|
+
alignItems: "center",
|
|
166
|
+
noGradient: !0,
|
|
167
|
+
children: [
|
|
168
|
+
/* @__PURE__ */ r(o, { height: "11rem", borderRadius: "0.75rem" }),
|
|
169
|
+
/* @__PURE__ */ r(
|
|
170
|
+
o,
|
|
171
|
+
{
|
|
172
|
+
height: "1.25rem",
|
|
173
|
+
borderRadius: "0.75rem",
|
|
174
|
+
width: "5rem"
|
|
175
|
+
}
|
|
176
|
+
)
|
|
177
|
+
]
|
|
178
|
+
},
|
|
179
|
+
`${t}-4`
|
|
180
|
+
)
|
|
181
|
+
] }), U = ({
|
|
182
|
+
keyPrefix: t,
|
|
183
|
+
isLoading: m = !1,
|
|
184
|
+
fallbackComponent: a = /* @__PURE__ */ r(R, {}),
|
|
185
|
+
children: l
|
|
186
|
+
}) => /* @__PURE__ */ r(k, { fallbackComponent: a, children: m === !0 ? /* @__PURE__ */ r(D, { keyPrefix: t }) : l }), J = v((t, m) => {
|
|
119
187
|
const {
|
|
120
|
-
icon:
|
|
121
|
-
title:
|
|
122
|
-
buttonLink:
|
|
123
|
-
items:
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
188
|
+
icon: a,
|
|
189
|
+
title: l,
|
|
190
|
+
buttonLink: d,
|
|
191
|
+
items: n,
|
|
192
|
+
isLoading: c = !1,
|
|
193
|
+
buttonText: g,
|
|
194
|
+
limit: f = 4,
|
|
195
|
+
onSelectCard: b = () => {
|
|
127
196
|
},
|
|
128
|
-
onButtonAction:
|
|
197
|
+
onButtonAction: C = () => {
|
|
129
198
|
}
|
|
130
|
-
} =
|
|
131
|
-
return /* @__PURE__ */
|
|
132
|
-
/* @__PURE__ */
|
|
133
|
-
/* @__PURE__ */
|
|
134
|
-
|
|
135
|
-
/* @__PURE__ */
|
|
199
|
+
} = t, G = $();
|
|
200
|
+
return /* @__PURE__ */ i(I, { ref: m, children: [
|
|
201
|
+
/* @__PURE__ */ i("div", { className: "regular-title", children: [
|
|
202
|
+
/* @__PURE__ */ i("div", { className: "regular-title-text", children: [
|
|
203
|
+
h(a) && /* @__PURE__ */ r("i", { className: a }),
|
|
204
|
+
/* @__PURE__ */ r("span", { children: l })
|
|
136
205
|
] }),
|
|
137
|
-
|
|
138
|
-
|
|
206
|
+
h(g) && h(d) && !c && /* @__PURE__ */ r(
|
|
207
|
+
T,
|
|
139
208
|
{
|
|
140
209
|
type: "button",
|
|
141
210
|
btnType: "tinted",
|
|
142
211
|
color: "neutral",
|
|
143
212
|
onClick: (e) => {
|
|
144
|
-
var
|
|
145
|
-
(
|
|
213
|
+
var s;
|
|
214
|
+
(s = e == null ? void 0 : e.target) == null || s.blur(), C(d);
|
|
146
215
|
},
|
|
147
216
|
borderRadius: "curved",
|
|
148
217
|
className: "button-link",
|
|
149
|
-
children:
|
|
218
|
+
children: g
|
|
150
219
|
}
|
|
151
220
|
)
|
|
152
221
|
] }),
|
|
153
|
-
/* @__PURE__ */
|
|
154
|
-
|
|
222
|
+
/* @__PURE__ */ r(U, { isLoading: c, keyPrefix: "gift-cards-skeleton", children: /* @__PURE__ */ r(B, { limit: f, children: G === !0 ? n == null ? void 0 : n.map((e, s) => /* @__PURE__ */ r(
|
|
223
|
+
w,
|
|
155
224
|
{
|
|
156
225
|
text: e == null ? void 0 : e.text,
|
|
157
226
|
price: e == null ? void 0 : e.priceTo,
|
|
158
227
|
currency: e == null ? void 0 : e.currencyIsoCode,
|
|
159
228
|
image: e == null ? void 0 : e.imageUrl,
|
|
160
229
|
uuid: e == null ? void 0 : e.uuid,
|
|
161
|
-
onSelectGiftCard: (y) =>
|
|
230
|
+
onSelectGiftCard: (y) => b(e)
|
|
162
231
|
},
|
|
163
|
-
|
|
164
|
-
)) :
|
|
165
|
-
|
|
232
|
+
s
|
|
233
|
+
)) : n == null ? void 0 : n.slice(0, f).map((e, s) => /* @__PURE__ */ r(
|
|
234
|
+
w,
|
|
166
235
|
{
|
|
167
236
|
text: e == null ? void 0 : e.text,
|
|
168
237
|
price: e == null ? void 0 : e.priceTo,
|
|
169
238
|
currency: e == null ? void 0 : e.currencyIsoCode,
|
|
170
239
|
image: e == null ? void 0 : e.imageUrl,
|
|
171
240
|
uuid: e == null ? void 0 : e.uuid,
|
|
172
|
-
onSelectGiftCard: (y) =>
|
|
241
|
+
onSelectGiftCard: (y) => b(e)
|
|
173
242
|
},
|
|
174
|
-
|
|
175
|
-
)) })
|
|
243
|
+
s
|
|
244
|
+
)) }) })
|
|
176
245
|
] });
|
|
177
246
|
});
|
|
178
247
|
export {
|
|
179
|
-
|
|
248
|
+
J as default
|
|
180
249
|
};
|
package/dist/Icon.js
CHANGED
|
@@ -2,7 +2,7 @@ import { jsx as n } from "react/jsx-runtime";
|
|
|
2
2
|
import { forwardRef as z } from "react";
|
|
3
3
|
import { P as o } from "./index-CblbdqjE.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-DHfRApMf.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.js
CHANGED
|
@@ -2,7 +2,7 @@ import { jsx as i } from "react/jsx-runtime";
|
|
|
2
2
|
import { forwardRef as I, isValidElement as S } from "react";
|
|
3
3
|
import { P as n } from "./index-CblbdqjE.js";
|
|
4
4
|
import { s as g } from "./emotion-styled.browser.esm-BNN1dTl3.js";
|
|
5
|
-
import { c as f, b as t, d as c, e as k, h as y, a as V } from "./utils-
|
|
5
|
+
import { c as f, b as t, d as c, e as k, h as y, a as V } from "./utils-DHfRApMf.js";
|
|
6
6
|
import { u as j } from "./emotion-element-f0de968e.browser.esm-CkCiQliQ.js";
|
|
7
7
|
const x = (e) => `
|
|
8
8
|
outline: none;
|
package/dist/Kanban.js
CHANGED
|
@@ -2,7 +2,7 @@ import { jsx as xe, jsxs as Xn } from "react/jsx-runtime";
|
|
|
2
2
|
import ae, { useEffect as k, useLayoutEffect as vi, useRef as V, useMemo as Q, useCallback as Ne, useState as be, createContext as Cn, memo as Oo, useReducer as bi, useContext as Wt, forwardRef as er, cloneElement as yi } from "react";
|
|
3
3
|
import { r as on } from "./index-B1vKwsDE.js";
|
|
4
4
|
import { P as te } from "./index-CblbdqjE.js";
|
|
5
|
-
import { b as sn, r as nn, z as rn } from "./utils-
|
|
5
|
+
import { b as sn, r as nn, z as rn } from "./utils-DHfRApMf.js";
|
|
6
6
|
import { c as lo } from "./index-fN7hCOo3.js";
|
|
7
7
|
import { s as ln } from "./emotion-styled.browser.esm-BNN1dTl3.js";
|
|
8
8
|
import { u as Vr } from "./emotion-element-f0de968e.browser.esm-CkCiQliQ.js";
|
|
@@ -5,7 +5,7 @@ import { s as w } from "./emotion-styled.browser.esm-BNN1dTl3.js";
|
|
|
5
5
|
import A from "./DropdownMenu.js";
|
|
6
6
|
import N from "./DropdownItem.js";
|
|
7
7
|
import s from "./Button.js";
|
|
8
|
-
import { b as m } from "./utils-
|
|
8
|
+
import { b as m } from "./utils-DHfRApMf.js";
|
|
9
9
|
import { useTheme as O } from "./ThemeProvider.js";
|
|
10
10
|
const I = w.div`
|
|
11
11
|
display: flex;
|
package/dist/KanbanView.js
CHANGED
|
@@ -3,7 +3,7 @@ import { forwardRef as $ } from "react";
|
|
|
3
3
|
import { P as e } from "./index-CblbdqjE.js";
|
|
4
4
|
import { s as k } from "./emotion-styled.browser.esm-BNN1dTl3.js";
|
|
5
5
|
import P from "./KanbanActionsToolbar.js";
|
|
6
|
-
import { r as i, i as d } from "./utils-
|
|
6
|
+
import { r as i, i as d } from "./utils-DHfRApMf.js";
|
|
7
7
|
import ee from "./Kanban.js";
|
|
8
8
|
import { K as oe } from "./KanbanCard-68kSAXL6.js";
|
|
9
9
|
import ne from "./KanbanHeader.js";
|
package/dist/Link.js
CHANGED
|
@@ -2,7 +2,7 @@ import { jsx as d } from "react/jsx-runtime";
|
|
|
2
2
|
import { forwardRef as h } from "react";
|
|
3
3
|
import { P as o } from "./index-CblbdqjE.js";
|
|
4
4
|
import { s as f } from "./emotion-styled.browser.esm-BNN1dTl3.js";
|
|
5
|
-
import { c as y, b as t } from "./utils-
|
|
5
|
+
import { c as y, b as t } from "./utils-DHfRApMf.js";
|
|
6
6
|
import { u } from "./emotion-element-f0de968e.browser.esm-CkCiQliQ.js";
|
|
7
7
|
const g = f.a`
|
|
8
8
|
${(e) => y(
|
|
@@ -2,7 +2,7 @@ import { jsxs as e, jsx as A, Fragment as T } from "react/jsx-runtime";
|
|
|
2
2
|
import { forwardRef as K, useState as y, useRef as J } from "react";
|
|
3
3
|
import { s as i } from "./emotion-styled.browser.esm-BNN1dTl3.js";
|
|
4
4
|
import { M as k } from "./consts-BuFChS64.js";
|
|
5
|
-
import { t as m } from "./utils-
|
|
5
|
+
import { t as m } from "./utils-DHfRApMf.js";
|
|
6
6
|
import { u as _ } from "./useDetectMobile-Bkvj0VMa.js";
|
|
7
7
|
import Z from "./Button.js";
|
|
8
8
|
import $ from "./Modal.js";
|
|
@@ -2,7 +2,7 @@ import { jsxs as t, jsx as o } from "react/jsx-runtime";
|
|
|
2
2
|
import { forwardRef as w, Fragment as S } from "react";
|
|
3
3
|
import { s as l } from "./emotion-styled.browser.esm-BNN1dTl3.js";
|
|
4
4
|
import { M as p } from "./consts-BuFChS64.js";
|
|
5
|
-
import { S as N } from "./index-
|
|
5
|
+
import { S as N } from "./index-BMOLVn8O.js";
|
|
6
6
|
const C = l.div`
|
|
7
7
|
display: flex;
|
|
8
8
|
flex-direction: column;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const
|
|
1
|
+
"use strict";const e=require("react/jsx-runtime"),h=require("react"),_=require("./Button.cjs"),d=require("./emotion-styled.browser.esm-BtEseadx.cjs"),n=require("./utils-Dl9xPH4c.cjs"),c=require("./consts-goSZX3xP.cjs"),f=require("./emotion-element-f0de968e.browser.esm-B7k6i6lC.cjs"),i=require("./style-BAcV7F53.cjs"),w=d.styled.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex-direction: column;
|
|
4
4
|
align-items: flex-start;
|
|
@@ -7,12 +7,12 @@
|
|
|
7
7
|
box-shadow: 0px 1px 3px rgba(0, 0, 0, 0.1), 0px 1px 2px rgba(0, 0, 0, 0.06);
|
|
8
8
|
cursor: pointer;
|
|
9
9
|
|
|
10
|
-
grid-column: ${
|
|
11
|
-
${
|
|
12
|
-
grid-row: ${
|
|
13
|
-
${
|
|
10
|
+
grid-column: ${r=>{var t;return((t=r.position)==null?void 0:t.columnStart)||"1"}} /
|
|
11
|
+
${r=>{var t;return((t=r.position)==null?void 0:t.columnEnd)||"6"}};
|
|
12
|
+
grid-row: ${r=>{var t;return((t=r.position)==null?void 0:t.rowStart)||"1"}} /
|
|
13
|
+
${r=>{var t;return((t=r.position)==null?void 0:t.rowEnd)||"1"}};
|
|
14
14
|
|
|
15
|
-
background: ${
|
|
15
|
+
background: ${r=>r.backgroundColor||`linear-gradient(
|
|
16
16
|
178deg,
|
|
17
17
|
rgba(0, 0, 0, 0) 1.5%,
|
|
18
18
|
rgba(0, 0, 0, 0.16) 8.95%,
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
width: 24.5rem;
|
|
32
32
|
height: 30rem;
|
|
33
33
|
border-radius: 0.75rem;
|
|
34
|
-
background-color: ${
|
|
34
|
+
background-color: ${n.linearGradientAnimation("-90deg")};
|
|
35
35
|
}
|
|
36
36
|
|
|
37
37
|
& .wrapper__text {
|
|
@@ -51,7 +51,7 @@
|
|
|
51
51
|
font-style: normal;
|
|
52
52
|
font-weight: 500;
|
|
53
53
|
line-height: 1.5rem;
|
|
54
|
-
${
|
|
54
|
+
${n.truncateTextInRows(2)}
|
|
55
55
|
}
|
|
56
56
|
|
|
57
57
|
& .text__tag {
|
|
@@ -73,7 +73,7 @@
|
|
|
73
73
|
font-style: normal;
|
|
74
74
|
font-weight: 400;
|
|
75
75
|
line-height: 1.25rem;
|
|
76
|
-
${
|
|
76
|
+
${n.truncateTextInRows(2)}
|
|
77
77
|
}
|
|
78
78
|
|
|
79
79
|
& .text__action {
|
|
@@ -87,32 +87,32 @@
|
|
|
87
87
|
}
|
|
88
88
|
|
|
89
89
|
& .text__title--skeleton {
|
|
90
|
-
background-color: ${
|
|
90
|
+
background-color: ${n.linearGradientAnimation("-90deg")};
|
|
91
91
|
height: 1rem;
|
|
92
92
|
width: 9rem;
|
|
93
93
|
}
|
|
94
94
|
|
|
95
95
|
& .text__description--skeleton {
|
|
96
|
-
background-color: ${
|
|
96
|
+
background-color: ${n.linearGradientAnimation("-90deg")};
|
|
97
97
|
height: 1rem;
|
|
98
98
|
width: 12rem;
|
|
99
99
|
}
|
|
100
100
|
|
|
101
101
|
& .text__action--skeleton {
|
|
102
|
-
background-color: ${
|
|
102
|
+
background-color: ${n.linearGradientAnimation("-90deg")};
|
|
103
103
|
height: 2rem;
|
|
104
104
|
width: 9rem;
|
|
105
105
|
}
|
|
106
106
|
}
|
|
107
107
|
cursor: pointer;
|
|
108
108
|
|
|
109
|
-
@media (max-width: ${
|
|
109
|
+
@media (max-width: ${c.MOBILE_SIZE_PX+"px"}) {
|
|
110
110
|
& .wrapper__image {
|
|
111
111
|
height: 100%;
|
|
112
112
|
max-height: 14.5rem;
|
|
113
113
|
}
|
|
114
114
|
}
|
|
115
|
-
`,
|
|
115
|
+
`,j=h.forwardRef(({title:r,imageUrl:t,description:a,buttonText:o,onSelectCard:m=()=>{},className:g,position:l,tag:s,backgroundColor:p},x)=>{const u=f.useTheme();return e.jsx(e.Fragment,{children:e.jsxs(w,{ref:x,theme:u,className:g,position:l,backgroundColor:p,onClick:m,children:[e.jsx("img",{src:t,className:"wrapper__image"}),e.jsxs("div",{className:"wrapper__text",children:[s&&e.jsx("div",{className:"text__tag",children:s}),e.jsx("div",{className:"text__title",children:r}),n.isDefinedNotEmptyString(a)&&e.jsx("div",{className:"text__description",children:a}),n.isDefinedNotEmptyString(o)&&e.jsx(_,{text:o,className:"text__action"})]})]})})}),b=d.styled.div`
|
|
116
116
|
display: flex;
|
|
117
117
|
flex-direction: column;
|
|
118
118
|
gap: 1.5rem;
|
|
@@ -136,7 +136,7 @@
|
|
|
136
136
|
}
|
|
137
137
|
}
|
|
138
138
|
|
|
139
|
-
@media (max-width: ${
|
|
139
|
+
@media (max-width: ${c.MOBILE_SIZE_PX+"px"}) {
|
|
140
140
|
& .regular-title {
|
|
141
141
|
font-size: 1.375rem;
|
|
142
142
|
|
|
@@ -145,9 +145,9 @@
|
|
|
145
145
|
}
|
|
146
146
|
}
|
|
147
147
|
}
|
|
148
|
-
`,
|
|
148
|
+
`,k=d.styled.div`
|
|
149
149
|
display: grid;
|
|
150
|
-
grid-template-columns: ${
|
|
150
|
+
grid-template-columns: ${r=>"repeat(12, minmax(0, 1fr))"};
|
|
151
151
|
|
|
152
152
|
grid-template-rows: 15rem 15rem;
|
|
153
153
|
grid-column-gap: 1.25rem;
|
|
@@ -155,7 +155,7 @@
|
|
|
155
155
|
height: 30rem;
|
|
156
156
|
max-height: 30rem;
|
|
157
157
|
|
|
158
|
-
@media (max-width: ${
|
|
158
|
+
@media (max-width: ${c.MOBILE_SIZE_PX+"px"}) {
|
|
159
159
|
display: flex;
|
|
160
160
|
flex-direction: column;
|
|
161
161
|
gap: 1.25rem;
|
|
@@ -163,4 +163,18 @@
|
|
|
163
163
|
height: 100%;
|
|
164
164
|
max-height: 100%;
|
|
165
165
|
}
|
|
166
|
-
`,
|
|
166
|
+
`,y=d.styled(i.SkeletonRowWrapper)`
|
|
167
|
+
@media (max-width: ${c.MOBILE_SIZE_PX+"px"}) {
|
|
168
|
+
flex-direction: column;
|
|
169
|
+
|
|
170
|
+
& .skeleton__big {
|
|
171
|
+
width: 100%;
|
|
172
|
+
height: 100%;
|
|
173
|
+
aspect-ratio: 1 / 1;
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
& > div {
|
|
177
|
+
flex-direction: column;
|
|
178
|
+
}
|
|
179
|
+
}
|
|
180
|
+
`,S=({keyPrefix:r})=>e.jsxs(y,{children:[e.jsx(i.SkeletonColumnWrapper,{children:e.jsx(i.SkeletonLinePlaceholder,{height:"31.25rem",className:"skeleton__big"},`${r}-1`)}),e.jsxs(i.SkeletonColumnWrapper,{children:[e.jsxs(i.SkeletonRowWrapper,{noGradient:!0,children:[e.jsx(i.SkeletonLinePlaceholder,{height:"15rem"},`${r}-2`),e.jsx(i.SkeletonLinePlaceholder,{height:"15rem"},`${r}-3`)]}),e.jsxs(i.SkeletonRowWrapper,{noGradient:!0,children:[e.jsx(i.SkeletonLinePlaceholder,{height:"15rem"},`${r}-4`),e.jsx(i.SkeletonLinePlaceholder,{height:"15rem"},`${r}-5`)]})]})]}),v=({keyPrefix:r,isLoading:t=!1,fallbackComponent:a=e.jsx(e.Fragment,{}),children:o})=>e.jsx(h.Suspense,{fallbackComponent:a,children:t===!0?e.jsx(S,{keyPrefix:r}):o}),$=h.forwardRef(({title:r,items:t,isLoading:a=!1,limit:o=3,onSelectCard:m=()=>{}},g)=>e.jsxs(b,{ref:g,children:[e.jsx("div",{className:"regular-title",children:e.jsx("div",{className:"regular-title-text",children:e.jsx("span",{children:r})})}),e.jsx(v,{isLoading:a,keyPrefix:"masonry-general-cards-skeleton",children:e.jsx(k,{limit:o,children:t&&(t==null?void 0:t.map((l,s)=>e.jsx(j,{...l,onSelectCard:()=>m(l)},`landing-page-masonry-general-card__${s+1}`)))})})]}));module.exports=$;
|