@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.
Files changed (173) hide show
  1. package/dist/Accordion.js +1 -1
  2. package/dist/AccordionSummary.js +1 -1
  3. package/dist/ActionsToolbar.js +1 -1
  4. package/dist/Alert.js +1 -1
  5. package/dist/Avatar.js +1 -1
  6. package/dist/Badge.js +1 -1
  7. package/dist/BannerSectionCarousel.cjs +9 -48
  8. package/dist/BannerSectionCarousel.js +208 -249
  9. package/dist/BannerSectionSimple.js +1 -1
  10. package/dist/BannerSectionWithList.js +1 -1
  11. package/dist/BlogCardsSponsoredSection.cjs +8 -8
  12. package/dist/BlogCardsSponsoredSection.js +67 -68
  13. package/dist/BlogCategoryCardsSection.cjs +1 -1
  14. package/dist/BlogCategoryCardsSection.js +22 -30
  15. package/dist/BlogExploreSection.js +9 -9
  16. package/dist/BlogListSection.cjs +11 -5
  17. package/dist/BlogListSection.js +187 -123
  18. package/dist/BlogProductCardsSection.cjs +1 -1
  19. package/dist/BlogProductCardsSection.js +28 -37
  20. package/dist/BlogShopCardsSection.cjs +1 -1
  21. package/dist/BlogShopCardsSection.js +40 -67
  22. package/dist/BlogSingleSection.cjs +16 -1
  23. package/dist/BlogSingleSection.js +47 -45
  24. package/dist/BlogsSectionDetailed.cjs +8 -27
  25. package/dist/BlogsSectionDetailed.js +111 -159
  26. package/dist/BlogsSectionLarge.cjs +19 -4
  27. package/dist/BlogsSectionLarge.js +73 -37
  28. package/dist/BlogsSectionSimple.cjs +9 -9
  29. package/dist/BlogsSectionSimple.js +81 -107
  30. package/dist/BlogsSectionSimpleCentered.cjs +25 -23
  31. package/dist/BlogsSectionSimpleCentered.js +103 -96
  32. package/dist/BlogsSectionWithFilters.cjs +31 -29
  33. package/dist/BlogsSectionWithFilters.js +173 -134
  34. package/dist/BrandHitsSection.cjs +10 -14
  35. package/dist/BrandHitsSection.js +93 -45
  36. package/dist/Breadcrumbs.js +1 -1
  37. package/dist/Button.js +1 -1
  38. package/dist/ButtonGroup.js +1 -1
  39. package/dist/CalorieCalculatorSection.js +1 -1
  40. package/dist/CategorySimpleCard-Qe5QStrs.cjs +47 -0
  41. package/dist/CategorySimpleCard-laAY-RUT.js +70 -0
  42. package/dist/CheckBoxInput.js +1 -1
  43. package/dist/Chip.js +1 -1
  44. package/dist/ColorInput.js +1 -1
  45. package/dist/ConfirmationForm.js +1 -1
  46. package/dist/CustomLoanMapSection.js +1 -1
  47. package/dist/{CustomStyles-SyQRnjuy.js → CustomStyles-ArAVZsIj.js} +1 -1
  48. package/dist/DateInput.js +1 -1
  49. package/dist/DecimalInput.js +1 -1
  50. package/dist/DecimalInputV2.js +1 -1
  51. package/dist/DetailedProductsInfinitiveSection.cjs +3 -3
  52. package/dist/DetailedProductsInfinitiveSection.js +35 -36
  53. package/dist/DetailedProductsSection.cjs +4 -4
  54. package/dist/DetailedProductsSection.js +62 -63
  55. package/dist/DetailsView.js +1 -1
  56. package/dist/DoubleRangeSlider.js +1 -1
  57. package/dist/DragAndDropFile.js +1 -1
  58. package/dist/DragDropFiles.js +1 -1
  59. package/dist/Drawer.js +1 -1
  60. package/dist/Dropdown.js +2 -2
  61. package/dist/DropdownItem.js +1 -1
  62. package/dist/DropdownLookup.js +1 -1
  63. package/dist/DropdownMenu.js +1 -1
  64. package/dist/EditableTable.js +1 -1
  65. package/dist/FeedbackSection.js +1 -1
  66. package/dist/FieldOfInterestsMasonrySection.cjs +20 -25
  67. package/dist/FieldOfInterestsMasonrySection.js +228 -154
  68. package/dist/FieldOfInterestsWithAvatarsCardsSection.cjs +33 -24
  69. package/dist/FieldOfInterestsWithAvatarsCardsSection.js +178 -113
  70. package/dist/FieldOfInterestsWithTagsCardsSection.cjs +6 -16
  71. package/dist/FieldOfInterestsWithTagsCardsSection.js +89 -93
  72. package/dist/FileInput.js +1 -1
  73. package/dist/FlexGridItem.js +1 -1
  74. package/dist/FormField.js +1 -1
  75. package/dist/FormView.js +1 -1
  76. package/dist/GeneralWithTagsCardsSection.cjs +11 -27
  77. package/dist/GeneralWithTagsCardsSection.js +87 -99
  78. package/dist/GiftCardsSection.cjs +18 -23
  79. package/dist/GiftCardsSection.js +146 -77
  80. package/dist/Icon.js +1 -1
  81. package/dist/IconButton.js +1 -1
  82. package/dist/Kanban.js +1 -1
  83. package/dist/KanbanActionsToolbar.js +1 -1
  84. package/dist/KanbanView.js +1 -1
  85. package/dist/Link.js +1 -1
  86. package/dist/LoanCalculatorSection.js +1 -1
  87. package/dist/LocationFinderSection.js +1 -1
  88. package/dist/LocationSearchSection.js +1 -1
  89. package/dist/MasonryGeneralCardsSection.cjs +33 -19
  90. package/dist/MasonryGeneralCardsSection.js +114 -68
  91. package/dist/MenuItem.js +1 -1
  92. package/dist/Modal.js +1 -1
  93. package/dist/MultiSelectDropdown.js +1 -1
  94. package/dist/MultiSelectDropdownLookup.js +1 -1
  95. package/dist/NestedDropdownItem.js +1 -1
  96. package/dist/NestedMenuItem.js +1 -1
  97. package/dist/NotificationContainer.js +1 -1
  98. package/dist/NotificationMessage.js +1 -1
  99. package/dist/NumberInput.js +1 -1
  100. package/dist/OverlayGeneralCardsSection.cjs +5 -5
  101. package/dist/OverlayGeneralCardsSection.js +54 -40
  102. package/dist/PasswordInput.js +1 -1
  103. package/dist/PopoverContent.js +1 -1
  104. package/dist/ProductsWithBannerSection.cjs +15 -20
  105. package/dist/ProductsWithBannerSection.js +176 -104
  106. package/dist/ProgressBar.js +1 -1
  107. package/dist/QuattroCardsSection.cjs +6 -6
  108. package/dist/QuattroCardsSection.js +42 -34
  109. package/dist/QuizSection.js +1 -1
  110. package/dist/RadioInput.js +1 -1
  111. package/dist/RangeSlider.js +1 -1
  112. package/dist/ReviewsSection.cjs +24 -30
  113. package/dist/ReviewsSection.js +170 -137
  114. package/dist/SalesCampaignsSection.cjs +46 -130
  115. package/dist/SalesCampaignsSection.js +354 -433
  116. package/dist/Separator.js +1 -1
  117. package/dist/ShopCardsSection.cjs +18 -5
  118. package/dist/ShopCardsSection.js +145 -88
  119. package/dist/Sidebar.js +1 -1
  120. package/dist/SimpleCategoriesSection.cjs +10 -4
  121. package/dist/SimpleCategoriesSection.js +79 -51
  122. package/dist/SimpleProductsSection.cjs +16 -3
  123. package/dist/SimpleProductsSection.js +172 -70
  124. package/dist/Spinner.js +1 -1
  125. package/dist/StatsSection.js +4 -4
  126. package/dist/Surface.js +1 -1
  127. package/dist/SwipeableDrawer.js +1 -1
  128. package/dist/TabItem.js +1 -1
  129. package/dist/Table.js +1 -1
  130. package/dist/TableView.js +1 -1
  131. package/dist/TextAreaInput.js +1 -1
  132. package/dist/TextInput.js +1 -1
  133. package/dist/ThemeProvider.js +1 -1
  134. package/dist/TimeInput.js +1 -1
  135. package/dist/Toggle.js +1 -1
  136. package/dist/TreeMenuSeparator.js +1 -1
  137. package/dist/UploadedFile.js +1 -1
  138. package/dist/UrgentSaleProductsSection.cjs +2 -2
  139. package/dist/UrgentSaleProductsSection.js +62 -61
  140. package/dist/index-BAJkosVg.cjs +11 -0
  141. package/dist/{index-dXWRbvgi.js → index-BMOLVn8O.js} +1 -1
  142. package/dist/{skeleton-5mO22c5S.js → index-BPntOicE.js} +55 -107
  143. package/dist/index-BSpdEGFd.js +42 -0
  144. package/dist/{index-CF3HhgvN.js → index-BbltNcou.js} +1 -1
  145. package/dist/index-BhBRZf4M.js +742 -0
  146. package/dist/index-BovNbKxB.js +54 -0
  147. package/dist/{skeleton-Ccd6EDeB.cjs → index-C5r__0lD.cjs} +4 -47
  148. package/dist/{index-DicTpiG0.cjs → index-CfT9e5O9.cjs} +2 -10
  149. package/dist/index-D-3I_Ppj.cjs +16 -0
  150. package/dist/index-D0IYt1s3.cjs +20 -0
  151. package/dist/{skeleton-CQPwIEP0.js → index-D69SKc-n.cjs} +7 -37
  152. package/dist/{index-C0SKNFzP.js → index-D8KPbcUf.js} +1 -1
  153. package/dist/index-DFdPWO4O.js +133 -0
  154. package/dist/index-DFyV_EK2.cjs +305 -0
  155. package/dist/index-DxwIu0Wn.js +84 -0
  156. package/dist/{index-y6sKgrZC.js → index-XYs5Cuh5.js} +21 -30
  157. package/dist/index.js +1 -1
  158. package/dist/style-BAcV7F53.cjs +64 -0
  159. package/dist/style-CXMUA6cI.js +74 -0
  160. package/dist/{style-DKAOBWn3.js → style-D3pIrH3v.js} +1 -1
  161. package/dist/{utils-BdsZgOUE.js → utils-DHfRApMf.js} +6 -6
  162. package/package.json +1 -1
  163. package/dist/index-1Dm1i6WK.js +0 -52
  164. package/dist/index-BGTtoLxz.cjs +0 -1
  165. package/dist/skeleton-BdbB-LdT.cjs +0 -97
  166. package/dist/suspense-categories-card-simple-BGj475Ca.js +0 -101
  167. package/dist/suspense-categories-card-simple-CjGtzfzp.cjs +0 -55
  168. package/dist/suspense-large-BMO7JH52.js +0 -26
  169. package/dist/suspense-large-CFmcSzX-.cjs +0 -1
  170. package/dist/suspense-product-card-detailed-CxiFuUOT.js +0 -653
  171. package/dist/suspense-product-card-detailed-IR4sh-l4.cjs +0 -330
  172. package/dist/suspense-product-card-simple-DJ8UYolb.cjs +0 -1
  173. package/dist/suspense-product-card-simple-ziy0XcLp.js +0 -26
@@ -1,12 +1,12 @@
1
- "use strict";const t=require("react/jsx-runtime"),f=require("react"),w=require("./useDetectMobile-zkbzoOGV.cjs"),v=require("./style-Db3VFbfP.cjs"),o=require("./utils-Dl9xPH4c.cjs"),j=require("./Button.cjs"),c=require("./emotion-styled.browser.esm-BtEseadx.cjs"),C=require("./consts-goSZX3xP.cjs"),S=c.styled.div`
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: ${a=>`repeat(${a.limit}, minmax(0, 1fr))`};
3
+ grid-template-columns: ${i=>`repeat(${i.limit}, minmax(0, 1fr))`};
4
4
  gap: 1.25rem;
5
5
 
6
- @media (max-width: ${C.MOBILE_SIZE_PX+"px"}) {
6
+ @media (max-width: ${b.MOBILE_SIZE_PX+"px"}) {
7
7
  grid-template-columns: repeat(1, 1fr);
8
8
  }
9
- `,k=c.styled.div`
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
- `,G=c.styled.div`
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
- `;c.styled.div`
80
- width: 100%;
81
- height: 11.5rem;
82
- border-radius: 0.75rem;
83
- background: ${o.linearGradientAnimation("-90deg")};
84
- `;const p=f.forwardRef((a,d)=>{const{image:s,text:l,price:i,currency:r,onSelectGiftCard:m=()=>{}}=a;return t.jsxs(k,{ref:d,className:"simple-gift-card",onClick:()=>m(i),children:[t.jsxs(G,{children:[t.jsx("div",{className:"price-tag",children:i&&r&&`${o.formatPrice(i)} ${o.GetCurrencySymbol(r)}`}),t.jsx("img",{src:s})]}),t.jsx("div",{className:"text-wrap",children:l})]})}),N=f.forwardRef((a,d)=>{const{icon:s,title:l,buttonLink:i,items:r,buttonText:m,limit:u=4,onSelectCard:g=()=>{},onButtonAction:h=()=>{}}=a,b=w.useDetectMobile();return t.jsxs(v.RegulatTitleSectionWrapper,{ref:d,children:[t.jsxs("div",{className:"regular-title",children:[t.jsxs("div",{className:"regular-title-text",children:[o.isDefinedNotEmptyString(s)&&t.jsx("i",{className:s}),t.jsx("span",{children:l})]}),o.isDefinedNotEmptyString(i)&&t.jsx(j,{type:"button",btnType:"tinted",color:"neutral",onClick:e=>{var n;(n=e==null?void 0:e.target)==null||n.blur(),h(i)},borderRadius:"curved",className:"button-link",children:m})]}),t.jsx(S,{limit:u,children:b===!0?r==null?void 0:r.map((e,n)=>t.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)):r==null?void 0:r.slice(0,u).map((e,n)=>t.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=N;
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;
@@ -1,20 +1,21 @@
1
- import { jsxs as n, jsx as t } from "react/jsx-runtime";
2
- import { forwardRef as h } from "react";
3
- import { u as C } from "./useDetectMobile-Bkvj0VMa.js";
4
- import { R as k } from "./style-DKAOBWn3.js";
5
- import { o as b, q as G, G as S, k as u } from "./utils-BdsZgOUE.js";
6
- import N from "./Button.js";
7
- import { s as c } from "./emotion-styled.browser.esm-BNN1dTl3.js";
8
- import { M as $ } from "./consts-BuFChS64.js";
9
- const T = c.div`
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: ${(a) => `repeat(${a.limit}, minmax(0, 1fr))`};
12
+ grid-template-columns: ${(t) => `repeat(${t.limit}, minmax(0, 1fr))`};
12
13
  gap: 1.25rem;
13
14
 
14
- @media (max-width: ${$ + "px"}) {
15
+ @media (max-width: ${S + "px"}) {
15
16
  grid-template-columns: repeat(1, 1fr);
16
17
  }
17
- `, j = c.div`
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
- `, z = c.div`
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: d,
97
- text: s,
98
- price: i,
99
- currency: r,
100
- onSelectGiftCard: m = () => {
78
+ image: a,
79
+ text: l,
80
+ price: d,
81
+ currency: n,
82
+ onSelectGiftCard: c = () => {
101
83
  }
102
- } = a;
103
- return /* @__PURE__ */ n(
104
- j,
84
+ } = t;
85
+ return /* @__PURE__ */ i(
86
+ E,
105
87
  {
106
- ref: l,
88
+ ref: m,
107
89
  className: "simple-gift-card",
108
- onClick: () => m(i),
90
+ onClick: () => c(d),
109
91
  children: [
110
- /* @__PURE__ */ n(z, { children: [
111
- /* @__PURE__ */ t("div", { className: "price-tag", children: i && r && `${G(i)} ${S(r)}` }),
112
- /* @__PURE__ */ t("img", { src: d })
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__ */ t("div", { className: "text-wrap", children: s })
96
+ /* @__PURE__ */ r("div", { className: "text-wrap", children: l })
115
97
  ]
116
98
  }
117
99
  );
118
- }), D = h((a, l) => {
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: d,
121
- title: s,
122
- buttonLink: i,
123
- items: r,
124
- buttonText: m,
125
- limit: p = 4,
126
- onSelectCard: g = () => {
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: v = () => {
197
+ onButtonAction: C = () => {
129
198
  }
130
- } = a, w = C();
131
- return /* @__PURE__ */ n(k, { ref: l, children: [
132
- /* @__PURE__ */ n("div", { className: "regular-title", children: [
133
- /* @__PURE__ */ n("div", { className: "regular-title-text", children: [
134
- u(d) && /* @__PURE__ */ t("i", { className: d }),
135
- /* @__PURE__ */ t("span", { children: s })
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
- u(i) && /* @__PURE__ */ t(
138
- N,
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 o;
145
- (o = e == null ? void 0 : e.target) == null || o.blur(), v(i);
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: m
218
+ children: g
150
219
  }
151
220
  )
152
221
  ] }),
153
- /* @__PURE__ */ t(T, { limit: p, children: w === !0 ? r == null ? void 0 : r.map((e, o) => /* @__PURE__ */ t(
154
- f,
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) => g(e)
230
+ onSelectGiftCard: (y) => b(e)
162
231
  },
163
- o
164
- )) : r == null ? void 0 : r.slice(0, p).map((e, o) => /* @__PURE__ */ t(
165
- f,
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) => g(e)
241
+ onSelectGiftCard: (y) => b(e)
173
242
  },
174
- o
175
- )) })
243
+ s
244
+ )) }) })
176
245
  ] });
177
246
  });
178
247
  export {
179
- D as default
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-BdsZgOUE.js";
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;
@@ -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-BdsZgOUE.js";
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-BdsZgOUE.js";
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-BdsZgOUE.js";
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;
@@ -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-BdsZgOUE.js";
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-BdsZgOUE.js";
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-BdsZgOUE.js";
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";
@@ -1,6 +1,6 @@
1
1
  import { jsx as l } from "react/jsx-runtime";
2
2
  import { forwardRef as c } from "react";
3
- import { L as d } from "./index-C0SKNFzP.js";
3
+ import { L as d } from "./index-D8KPbcUf.js";
4
4
  const F = c((o, e) => {
5
5
  const {
6
6
  locationFinderTitle: t,
@@ -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-dXWRbvgi.js";
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 r=require("react/jsx-runtime"),g=require("react"),f=require("./Button.cjs"),d=require("./emotion-styled.browser.esm-BtEseadx.cjs"),i=require("./utils-Dl9xPH4c.cjs"),m=require("./consts-goSZX3xP.cjs"),u=require("./emotion-element-f0de968e.browser.esm-B7k6i6lC.cjs"),_=d.styled.div`
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: ${t=>{var e;return((e=t.position)==null?void 0:e.columnStart)||"1"}} /
11
- ${t=>{var e;return((e=t.position)==null?void 0:e.columnEnd)||"6"}};
12
- grid-row: ${t=>{var e;return((e=t.position)==null?void 0:e.rowStart)||"1"}} /
13
- ${t=>{var e;return((e=t.position)==null?void 0:e.rowEnd)||"1"}};
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: ${t=>t.backgroundColor||`linear-gradient(
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: ${i.linearGradientAnimation("-90deg")};
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
- ${i.truncateTextInRows(2)}
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
- ${i.truncateTextInRows(2)}
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: ${i.linearGradientAnimation("-90deg")};
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: ${i.linearGradientAnimation("-90deg")};
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: ${i.linearGradientAnimation("-90deg")};
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: ${m.MOBILE_SIZE_PX+"px"}) {
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
- `,w=g.forwardRef(({title:t,imageUrl:e,description:n,buttonText:a,onSelectCard:l=()=>{},className:o,position:s,tag:c,backgroundColor:p},x)=>{const h=u.useTheme();return r.jsx(r.Fragment,{children:r.jsxs(_,{ref:x,theme:h,className:o,position:s,backgroundColor:p,onClick:l,children:[r.jsx("img",{src:e,className:"wrapper__image"}),r.jsxs("div",{className:"wrapper__text",children:[c&&r.jsx("div",{className:"text__tag",children:c}),r.jsx("div",{className:"text__title",children:t}),i.isDefinedNotEmptyString(n)&&r.jsx("div",{className:"text__description",children:n}),i.isDefinedNotEmptyString(a)&&r.jsx(f,{text:a,className:"text__action"})]})]})})}),b=d.styled.div`
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: ${m.MOBILE_SIZE_PX+"px"}) {
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
- `,y=d.styled.div`
148
+ `,k=d.styled.div`
149
149
  display: grid;
150
- grid-template-columns: ${t=>"repeat(12, minmax(0, 1fr))"};
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: ${m.MOBILE_SIZE_PX+"px"}) {
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
- `,v=g.forwardRef(({title:t,items:e,limit:n=3,onSelectCard:a=()=>{}},l)=>r.jsxs(b,{ref:l,children:[r.jsx("div",{className:"regular-title",children:r.jsx("div",{className:"regular-title-text",children:r.jsx("span",{children:t})})}),r.jsx(y,{limit:n,children:e&&(e==null?void 0:e.map((o,s)=>r.jsx(w,{...o,onSelectCard:()=>a(o)},`landing-page-masonry-general-card__${s+1}`)))})]}));module.exports=v;
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=$;