@lanaco/lnc-react-ui 4.0.31 → 4.0.33

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 (186) hide show
  1. package/dist/Accordion.cjs +1 -1
  2. package/dist/Accordion.js +1 -1
  3. package/dist/AccordionSummary.cjs +1 -1
  4. package/dist/AccordionSummary.js +1 -1
  5. package/dist/ActionsToolbar.cjs +1 -1
  6. package/dist/ActionsToolbar.js +1 -1
  7. package/dist/Alert.cjs +1 -1
  8. package/dist/Alert.js +1 -1
  9. package/dist/Avatar.cjs +1 -1
  10. package/dist/Avatar.js +1 -1
  11. package/dist/Badge.cjs +1 -1
  12. package/dist/Badge.js +1 -1
  13. package/dist/BannerSectionWithList.cjs +1 -1
  14. package/dist/BannerSectionWithList.js +1 -1
  15. package/dist/BlogsSectionDetailed.cjs +111 -0
  16. package/dist/BlogsSectionDetailed.js +224 -0
  17. package/dist/BlogsSectionLarge.cjs +101 -0
  18. package/dist/BlogsSectionLarge.js +177 -0
  19. package/dist/BlogsSectionSimple.cjs +71 -0
  20. package/dist/BlogsSectionSimple.js +158 -0
  21. package/dist/BlogsSectionSimpleCentered.cjs +78 -0
  22. package/dist/BlogsSectionSimpleCentered.js +149 -0
  23. package/dist/BlogsSectionWithFilters.cjs +173 -0
  24. package/dist/BlogsSectionWithFilters.js +559 -0
  25. package/dist/BrandHitsSection.cjs +11 -7
  26. package/dist/BrandHitsSection.js +9 -5
  27. package/dist/Breadcrumbs.cjs +1 -1
  28. package/dist/Breadcrumbs.js +1 -1
  29. package/dist/Button.cjs +1 -1
  30. package/dist/Button.js +1 -1
  31. package/dist/ButtonGroup.cjs +1 -1
  32. package/dist/ButtonGroup.js +1 -1
  33. package/dist/CheckBoxInput.cjs +1 -1
  34. package/dist/CheckBoxInput.js +1 -1
  35. package/dist/Chip.cjs +1 -1
  36. package/dist/Chip.js +1 -1
  37. package/dist/ColorInput.cjs +1 -1
  38. package/dist/ColorInput.js +1 -1
  39. package/dist/ConfirmationForm.cjs +1 -1
  40. package/dist/ConfirmationForm.js +1 -1
  41. package/dist/CustomLoanMapSection.cjs +240 -0
  42. package/dist/CustomLoanMapSection.js +410 -0
  43. package/dist/{CustomStyles-DuADCM-0.js → CustomStyles-C45a_Y92.js} +1 -1
  44. package/dist/{CustomStyles-CBON9fD-.cjs → CustomStyles-jdvxQvK1.cjs} +1 -1
  45. package/dist/DateInput.cjs +1 -1
  46. package/dist/DateInput.js +1 -1
  47. package/dist/DecimalInput.cjs +1 -1
  48. package/dist/DecimalInput.js +1 -1
  49. package/dist/DecimalInputV2.cjs +1 -1
  50. package/dist/DecimalInputV2.js +1 -1
  51. package/dist/DetailedProductsSection.cjs +1 -1
  52. package/dist/DetailedProductsSection.js +3 -3
  53. package/dist/DetailsView.cjs +1 -1
  54. package/dist/DetailsView.js +1 -1
  55. package/dist/DoubleRangeSlider.cjs +1 -1
  56. package/dist/DoubleRangeSlider.js +1 -1
  57. package/dist/DragAndDropFile.cjs +1 -1
  58. package/dist/DragAndDropFile.js +1 -1
  59. package/dist/DragDropFiles.cjs +1 -1
  60. package/dist/DragDropFiles.js +1 -1
  61. package/dist/Drawer.cjs +1 -1
  62. package/dist/Drawer.js +1 -1
  63. package/dist/Dropdown.cjs +1 -1
  64. package/dist/Dropdown.js +2 -2
  65. package/dist/DropdownItem.cjs +1 -1
  66. package/dist/DropdownItem.js +1 -1
  67. package/dist/DropdownLookup.cjs +1 -1
  68. package/dist/DropdownLookup.js +1 -1
  69. package/dist/DropdownMenu.cjs +1 -1
  70. package/dist/DropdownMenu.js +1 -1
  71. package/dist/EditableTable.cjs +1 -1
  72. package/dist/EditableTable.js +1 -1
  73. package/dist/FieldOfInterestsMasonrySection.cjs +7 -7
  74. package/dist/FieldOfInterestsMasonrySection.js +23 -23
  75. package/dist/FieldOfInterestsWithAvatarsCardsSection.cjs +11 -7
  76. package/dist/FieldOfInterestsWithAvatarsCardsSection.js +62 -58
  77. package/dist/FieldOfInterestsWithTagsCardsSection.cjs +37 -17
  78. package/dist/FieldOfInterestsWithTagsCardsSection.js +68 -48
  79. package/dist/FileInput.cjs +1 -1
  80. package/dist/FileInput.js +1 -1
  81. package/dist/FlexGridItem.cjs +1 -1
  82. package/dist/FlexGridItem.js +1 -1
  83. package/dist/FormField.cjs +1 -1
  84. package/dist/FormField.js +1 -1
  85. package/dist/FormView.cjs +1 -1
  86. package/dist/FormView.js +1 -1
  87. package/dist/GeneralWithTagsCardsSection.cjs +198 -0
  88. package/dist/GeneralWithTagsCardsSection.js +287 -0
  89. package/dist/GiftCardsSection.cjs +11 -7
  90. package/dist/GiftCardsSection.js +34 -30
  91. package/dist/Icon.cjs +1 -1
  92. package/dist/Icon.js +1 -1
  93. package/dist/IconButton.cjs +1 -1
  94. package/dist/IconButton.js +1 -1
  95. package/dist/Kanban.cjs +1 -1
  96. package/dist/Kanban.js +1 -1
  97. package/dist/KanbanActionsToolbar.cjs +1 -1
  98. package/dist/KanbanActionsToolbar.js +1 -1
  99. package/dist/KanbanView.cjs +1 -1
  100. package/dist/KanbanView.js +1 -1
  101. package/dist/Link.cjs +1 -1
  102. package/dist/Link.js +1 -1
  103. package/dist/MasonryGeneralCardsSection.cjs +6 -6
  104. package/dist/MasonryGeneralCardsSection.js +38 -36
  105. package/dist/MenuItem.cjs +1 -1
  106. package/dist/MenuItem.js +1 -1
  107. package/dist/Modal.cjs +1 -1
  108. package/dist/Modal.js +1 -1
  109. package/dist/MultiSelectDropdown.cjs +1 -1
  110. package/dist/MultiSelectDropdown.js +1 -1
  111. package/dist/MultiSelectDropdownLookup.cjs +1 -1
  112. package/dist/MultiSelectDropdownLookup.js +1 -1
  113. package/dist/NestedDropdownItem.cjs +1 -1
  114. package/dist/NestedDropdownItem.js +1 -1
  115. package/dist/NestedMenuItem.cjs +1 -1
  116. package/dist/NestedMenuItem.js +1 -1
  117. package/dist/NotificationContainer.cjs +1 -1
  118. package/dist/NotificationContainer.js +1 -1
  119. package/dist/NotificationMessage.cjs +1 -1
  120. package/dist/NotificationMessage.js +1 -1
  121. package/dist/NumberInput.cjs +1 -1
  122. package/dist/NumberInput.js +1 -1
  123. package/dist/OverlayGeneralCardsSection.cjs +127 -0
  124. package/dist/OverlayGeneralCardsSection.js +183 -0
  125. package/dist/PasswordInput.cjs +1 -1
  126. package/dist/PasswordInput.js +1 -1
  127. package/dist/PopoverContent.cjs +1 -1
  128. package/dist/PopoverContent.js +1 -1
  129. package/dist/ProductsWithBannerSection.cjs +1 -1
  130. package/dist/ProductsWithBannerSection.js +2 -2
  131. package/dist/ProgressBar.cjs +1 -1
  132. package/dist/ProgressBar.js +1 -1
  133. package/dist/RadioInput.cjs +1 -1
  134. package/dist/RadioInput.js +1 -1
  135. package/dist/RangeSlider.cjs +1 -1
  136. package/dist/RangeSlider.js +1 -1
  137. package/dist/Separator.cjs +1 -1
  138. package/dist/Separator.js +1 -1
  139. package/dist/ShopCardsSection.cjs +8 -8
  140. package/dist/ShopCardsSection.js +49 -49
  141. package/dist/Sidebar.cjs +1 -1
  142. package/dist/Sidebar.js +1 -1
  143. package/dist/SimpleCategoriesSection.cjs +81 -0
  144. package/dist/SimpleCategoriesSection.js +153 -0
  145. package/dist/SimpleProductsSection.cjs +1 -1
  146. package/dist/SimpleProductsSection.js +1 -1
  147. package/dist/Spinner.cjs +1 -1
  148. package/dist/Spinner.js +1 -1
  149. package/dist/Surface.cjs +1 -1
  150. package/dist/Surface.js +1 -1
  151. package/dist/SwipeableDrawer.cjs +1 -1
  152. package/dist/SwipeableDrawer.js +1 -1
  153. package/dist/TabItem.cjs +1 -1
  154. package/dist/TabItem.js +1 -1
  155. package/dist/Table.cjs +1 -1
  156. package/dist/Table.js +1 -1
  157. package/dist/TableView.cjs +1 -1
  158. package/dist/TableView.js +1 -1
  159. package/dist/TextAreaInput.cjs +1 -1
  160. package/dist/TextAreaInput.js +1 -1
  161. package/dist/TextInput.cjs +1 -1
  162. package/dist/TextInput.js +1 -1
  163. package/dist/ThemeProvider.cjs +1 -1
  164. package/dist/ThemeProvider.js +1 -1
  165. package/dist/TimeInput.cjs +1 -1
  166. package/dist/TimeInput.js +1 -1
  167. package/dist/Toggle.cjs +1 -1
  168. package/dist/Toggle.js +1 -1
  169. package/dist/TreeMenuSeparator.cjs +1 -1
  170. package/dist/TreeMenuSeparator.js +1 -1
  171. package/dist/UploadedFile.cjs +1 -1
  172. package/dist/UploadedFile.js +1 -1
  173. package/dist/UrgentSaleProductsSection.cjs +1 -1
  174. package/dist/UrgentSaleProductsSection.js +1 -1
  175. package/dist/{index-jVpIwR2G.js → index-BfOdDcQF.js} +1 -1
  176. package/dist/{index-BlV3tdJ8.cjs → index-CC_hdGKn.cjs} +1 -1
  177. package/dist/{index-DGl-lSfF.js → index-DZxSlQJQ.js} +1 -1
  178. package/dist/{index-LdP7U1Yl.cjs → index-Dld_cRbm.cjs} +1 -1
  179. package/dist/index.cjs +1 -1
  180. package/dist/index.js +25 -23
  181. package/dist/{style-C3OB0uad.cjs → style-CeMnBJ6v.cjs} +4 -4
  182. package/dist/{style-Ch-xOasu.js → style-D6sNCRwG.js} +6 -7
  183. package/dist/{utils-CE6bljYe.cjs → utils-UJt-R-G3.cjs} +7 -7
  184. package/dist/{utils-DtEdJZWa.js → utils-xpQsPsCa.js} +33 -33
  185. package/package.json +13 -3
  186. package/vite.config.js +36 -0
@@ -1,4 +1,4 @@
1
- "use strict";const g=require("react/jsx-runtime"),t=require("react"),o=require("./index-BPVoEhTF.cjs"),x=require("./emotion-styled.browser.esm-Cbp_XsK4.cjs"),l=require("./utils-CE6bljYe.cjs"),R=require("./emotion-element-5486c51c.browser.esm-QRQ5FSjv.cjs"),S=require("./useUpdateEffect-BtMgpgIV.cjs"),N=x.newStyled.div`
1
+ "use strict";const g=require("react/jsx-runtime"),t=require("react"),o=require("./index-BPVoEhTF.cjs"),x=require("./emotion-styled.browser.esm-Cbp_XsK4.cjs"),l=require("./utils-UJt-R-G3.cjs"),R=require("./emotion-element-5486c51c.browser.esm-QRQ5FSjv.cjs"),S=require("./useUpdateEffect-BtMgpgIV.cjs"),N=x.newStyled.div`
2
2
  color: ${s=>!s.disabled&&l.getColorRgbaValue(s.theme,"Accordion","primary","enabled","text")};
3
3
  background-color: transparent;
4
4
  ${s=>l.getComponentTypographyCss(s.theme,"Accordion",s.size,"enabled")};
package/dist/Accordion.js CHANGED
@@ -2,7 +2,7 @@ import { jsxs as N } from "react/jsx-runtime";
2
2
  import { forwardRef as O, useState as S, Children as i, isValidElement as c, cloneElement as f } from "react";
3
3
  import { P as s } from "./index-S5Cd7WrG.js";
4
4
  import { n as x } from "./emotion-styled.browser.esm-BiK8DcgW.js";
5
- import { a as D, g as R, h as T } from "./utils-DtEdJZWa.js";
5
+ import { a as D, g as R, h as T } from "./utils-xpQsPsCa.js";
6
6
  import { u as I } from "./emotion-element-5486c51c.browser.esm-Bb4VkP8U.js";
7
7
  import { u as P } from "./useUpdateEffect-CuYWz7EA.js";
8
8
  const M = x.div`
@@ -1,4 +1,4 @@
1
- "use strict";const o=require("react/jsx-runtime"),f=require("react"),s=require("./index-BPVoEhTF.cjs"),x=require("./emotion-styled.browser.esm-Cbp_XsK4.cjs"),g=require("./Icon.cjs"),C=require("./utils-CE6bljYe.cjs"),P=require("./emotion-element-5486c51c.browser.esm-QRQ5FSjv.cjs"),h={small:"0.6rem 1rem",medium:"0.8rem 1.25rem",large:"1rem 1.5rem"},R=x.newStyled.div`
1
+ "use strict";const o=require("react/jsx-runtime"),f=require("react"),s=require("./index-BPVoEhTF.cjs"),x=require("./emotion-styled.browser.esm-Cbp_XsK4.cjs"),g=require("./Icon.cjs"),C=require("./utils-UJt-R-G3.cjs"),P=require("./emotion-element-5486c51c.browser.esm-QRQ5FSjv.cjs"),h={small:"0.6rem 1rem",medium:"0.8rem 1.25rem",large:"1rem 1.5rem"},R=x.newStyled.div`
2
2
  display: flex;
3
3
  justify-content: space-between;
4
4
  cursor: pointer;
@@ -3,7 +3,7 @@ import { forwardRef as C } from "react";
3
3
  import { P as o } from "./index-S5Cd7WrG.js";
4
4
  import { n as g } from "./emotion-styled.browser.esm-BiK8DcgW.js";
5
5
  import h from "./Icon.js";
6
- import { a as x } from "./utils-DtEdJZWa.js";
6
+ import { a as x } from "./utils-xpQsPsCa.js";
7
7
  import { u as A } from "./emotion-element-5486c51c.browser.esm-Bb4VkP8U.js";
8
8
  const N = {
9
9
  small: "0.6rem 1rem",
@@ -1,4 +1,4 @@
1
- "use strict";const o=require("react/jsx-runtime"),B=require("react"),e=require("./index-BPVoEhTF.cjs"),V=require("./emotion-styled.browser.esm-Cbp_XsK4.cjs"),Y=require("./DropdownMenu.cjs"),i=require("./DropdownItem.cjs"),M=require("./Separator.cjs"),y=require("./Button.cjs"),b=require("./utils-CE6bljYe.cjs"),Z=require("./ThemeProvider.cjs"),F=V.newStyled.div`
1
+ "use strict";const o=require("react/jsx-runtime"),B=require("react"),e=require("./index-BPVoEhTF.cjs"),V=require("./emotion-styled.browser.esm-Cbp_XsK4.cjs"),Y=require("./DropdownMenu.cjs"),i=require("./DropdownItem.cjs"),M=require("./Separator.cjs"),y=require("./Button.cjs"),b=require("./utils-UJt-R-G3.cjs"),Z=require("./ThemeProvider.cjs"),F=V.newStyled.div`
2
2
  display: flex;
3
3
  align-items: center;
4
4
  border-radius: 8px;
@@ -6,7 +6,7 @@ import Z from "./DropdownMenu.js";
6
6
  import i from "./DropdownItem.js";
7
7
  import q from "./Separator.js";
8
8
  import b from "./Button.js";
9
- import { a as m } from "./utils-DtEdJZWa.js";
9
+ import { a as m } from "./utils-xpQsPsCa.js";
10
10
  import { useTheme as F } from "./ThemeProvider.js";
11
11
  const G = V.div`
12
12
  display: flex;
package/dist/Alert.cjs CHANGED
@@ -1,4 +1,4 @@
1
- "use strict";const o=require("react/jsx-runtime"),c=require("react"),r=require("./index-BPVoEhTF.cjs"),x=require("./emotion-styled.browser.esm-Cbp_XsK4.cjs"),T=require("./ThemeProvider.cjs"),t=require("./utils-CE6bljYe.cjs"),s=require("./Icon.cjs"),P=x.newStyled.div`
1
+ "use strict";const o=require("react/jsx-runtime"),c=require("react"),r=require("./index-BPVoEhTF.cjs"),x=require("./emotion-styled.browser.esm-Cbp_XsK4.cjs"),T=require("./ThemeProvider.cjs"),t=require("./utils-UJt-R-G3.cjs"),s=require("./Icon.cjs"),P=x.newStyled.div`
2
2
  min-height: 3rem;
3
3
  ${e=>t.getComponentTypographyCss(e.theme,"Alert",e.size,"enabled")};
4
4
  line-height: 1.25rem;
package/dist/Alert.js CHANGED
@@ -3,7 +3,7 @@ import { forwardRef as y, cloneElement as x } from "react";
3
3
  import { P as r } from "./index-S5Cd7WrG.js";
4
4
  import { n as w } from "./emotion-styled.browser.esm-BiK8DcgW.js";
5
5
  import { useTheme as N } from "./ThemeProvider.js";
6
- import { g as A, b as $, a as o, c as m } from "./utils-DtEdJZWa.js";
6
+ import { g as A, b as $, a as o, c as m } from "./utils-xpQsPsCa.js";
7
7
  import s from "./Icon.js";
8
8
  const T = w.div`
9
9
  min-height: 3rem;
package/dist/Avatar.cjs CHANGED
@@ -1,4 +1,4 @@
1
- "use strict";const n=require("react/jsx-runtime"),T=require("react"),i=require("./index-BPVoEhTF.cjs"),P=require("./emotion-styled.browser.esm-Cbp_XsK4.cjs"),s=require("./utils-CE6bljYe.cjs"),I=require("./Icon.cjs"),f=require("./emotion-element-5486c51c.browser.esm-QRQ5FSjv.cjs"),w=P.newStyled.div`
1
+ "use strict";const n=require("react/jsx-runtime"),T=require("react"),i=require("./index-BPVoEhTF.cjs"),P=require("./emotion-styled.browser.esm-Cbp_XsK4.cjs"),s=require("./utils-UJt-R-G3.cjs"),I=require("./Icon.cjs"),f=require("./emotion-element-5486c51c.browser.esm-QRQ5FSjv.cjs"),w=P.newStyled.div`
2
2
  border-radius: ${e=>s.getBorderRadiusValueWithUnits(e.theme,e.borderRadius)};
3
3
  color: white;
4
4
  display: inline-flex;
package/dist/Avatar.js CHANGED
@@ -2,7 +2,7 @@ import { jsx as s } from "react/jsx-runtime";
2
2
  import { forwardRef as I } from "react";
3
3
  import { P as i } from "./index-S5Cd7WrG.js";
4
4
  import { n as U } from "./emotion-styled.browser.esm-BiK8DcgW.js";
5
- import { b as y, d as t, h as $, a as v } from "./utils-DtEdJZWa.js";
5
+ import { b as y, d as t, h as $, a as v } from "./utils-xpQsPsCa.js";
6
6
  import w from "./Icon.js";
7
7
  import { u as R } from "./emotion-element-5486c51c.browser.esm-Bb4VkP8U.js";
8
8
  const x = U.div`
package/dist/Badge.cjs CHANGED
@@ -1,4 +1,4 @@
1
- "use strict";const h=require("react/jsx-runtime"),p=require("react"),r=require("./index-BPVoEhTF.cjs"),f=require("./emotion-styled.browser.esm-Cbp_XsK4.cjs"),s=require("./utils-CE6bljYe.cjs"),z=require("./emotion-element-5486c51c.browser.esm-QRQ5FSjv.cjs"),t=e=>e=="large"?"2rem":e=="medium"?"1.75rem":"1.5rem",R=f.newStyled.div`
1
+ "use strict";const h=require("react/jsx-runtime"),p=require("react"),r=require("./index-BPVoEhTF.cjs"),f=require("./emotion-styled.browser.esm-Cbp_XsK4.cjs"),s=require("./utils-UJt-R-G3.cjs"),z=require("./emotion-element-5486c51c.browser.esm-QRQ5FSjv.cjs"),t=e=>e=="large"?"2rem":e=="medium"?"1.75rem":"1.5rem",R=f.newStyled.div`
2
2
  ${e=>s.getComponentTypographyCss(e.theme,"Badge",e.size,"enabled")};
3
3
  background-color: ${e=>s.getColorRgbaValue(e.theme,"Badge",e.color,"enabled","background","backgroundOpacity")};
4
4
  color: ${e=>s.getColorRgbaValue(e.theme,"Badge",e.color,"enabled","text")};
package/dist/Badge.js CHANGED
@@ -2,7 +2,7 @@ import { jsx as h } from "react/jsx-runtime";
2
2
  import { forwardRef as y } from "react";
3
3
  import { P as r } from "./index-S5Cd7WrG.js";
4
4
  import { n as b } from "./emotion-styled.browser.esm-BiK8DcgW.js";
5
- import { g as p, a as o, b as z } from "./utils-DtEdJZWa.js";
5
+ import { g as p, a as o, b as z } from "./utils-xpQsPsCa.js";
6
6
  import { u as $ } from "./emotion-element-5486c51c.browser.esm-Bb4VkP8U.js";
7
7
  const a = (e) => e == "large" ? "2rem" : e == "medium" ? "1.75rem" : "1.5rem", B = b.div`
8
8
  ${(e) => p(e.theme, "Badge", e.size, "enabled")};
@@ -1,4 +1,4 @@
1
- "use strict";const e=require("react/jsx-runtime"),o=require("react"),s=require("./emotion-styled.browser.esm-Cbp_XsK4.cjs"),c=require("./consts-dNz9tpt4.cjs"),u=require("./Button.cjs"),t=require("./utils-CE6bljYe.cjs"),h=s.newStyled.div`
1
+ "use strict";const e=require("react/jsx-runtime"),o=require("react"),s=require("./emotion-styled.browser.esm-Cbp_XsK4.cjs"),c=require("./consts-dNz9tpt4.cjs"),u=require("./Button.cjs"),t=require("./utils-UJt-R-G3.cjs"),h=s.newStyled.div`
2
2
  padding-bottom: 1.38rem;
3
3
  text-align: center;
4
4
  display: flex;
@@ -3,7 +3,7 @@ import { forwardRef as h, Fragment as x } from "react";
3
3
  import { n as o } from "./emotion-styled.browser.esm-BiK8DcgW.js";
4
4
  import { M as a } from "./consts-DNVz1x1I.js";
5
5
  import g from "./Button.js";
6
- import { l as t } from "./utils-DtEdJZWa.js";
6
+ import { l as t } from "./utils-xpQsPsCa.js";
7
7
  const u = o.div`
8
8
  padding-bottom: 1.38rem;
9
9
  text-align: center;
@@ -0,0 +1,111 @@
1
+ "use strict";const t=require("react/jsx-runtime"),f=require("react"),p=require("./emotion-styled.browser.esm-Cbp_XsK4.cjs"),b=require("./consts-dNz9tpt4.cjs"),v=require("./useDetectMobile-rBe0FiP2.cjs"),a=require("./utils-UJt-R-G3.cjs"),w=require("./style-CeMnBJ6v.cjs"),k=require("./Button.cjs"),N=p.newStyled.div`
2
+ display: grid;
3
+ grid-template-columns: ${s=>`repeat(${s.limit}, minmax(0, 1fr))`};
4
+ gap: 1.25rem;
5
+
6
+ @media (max-width: ${b.MOBILE_SIZE_PX+"px"}) {
7
+ grid-template-columns: repeat(1, 1fr);
8
+ }
9
+ `,C=p.newStyled.div`
10
+ display: flex;
11
+ flex-direction: column;
12
+ width: 100%;
13
+ box-shadow: 0px 1px 3px 0px rgba(0, 0, 0, 0.1),
14
+ 0px 1px 2px 0px rgba(0, 0, 0, 0.06);
15
+ background-color: var(--white);
16
+ border-radius: 0.75rem;
17
+ border: 1px solid var(--gray-95008);
18
+ overflow: hidden;
19
+ max-height: 21.5625rem;
20
+ min-height: 21.5625rem;
21
+ cursor: pointer;
22
+ &:hover {
23
+ & .text-wr-title {
24
+ color: var(--primary-500, #f59e0b);
25
+ transition: var(--transition);
26
+ }
27
+ }
28
+
29
+ & img {
30
+ max-height: 11.0625rem;
31
+ min-height: 11.0625rem;
32
+ object-fit: cover;
33
+ width: 100%;
34
+ }
35
+
36
+ & .skeleton-img {
37
+ width: 100%;
38
+ max-height: 11.0625rem;
39
+ min-height: 11.0625rem;
40
+ background-color: ${a.linearGradientAnimation("-90deg")};
41
+ }
42
+
43
+ & .tags-wr {
44
+ margin-top: auto;
45
+ display: flex;
46
+ gap: 0.5rem;
47
+ padding: 0 1rem 1rem 1rem;
48
+ }
49
+
50
+ @media (max-width: ${b.MOBILE_SIZE_PX+"px"}) {
51
+ }
52
+ `,S=p.newStyled.div`
53
+ padding: 1rem 1rem 0 1rem;
54
+ display: flex;
55
+ flex-direction: column;
56
+ gap: 0;
57
+ color: var(--gray-950, #14161a);
58
+ border-top: 1px solid var(--gray-95008);
59
+
60
+ & .text-wr-title {
61
+ font-weight: 600;
62
+ font-size: 1rem;
63
+ }
64
+
65
+ & .info-wr-skeleton {
66
+ background-color: ${a.linearGradientAnimation("-90deg")};
67
+ height: 1rem;
68
+ width: 100%;
69
+ }
70
+
71
+ & .skeleton-title {
72
+ background-color: ${a.linearGradientAnimation("-90deg")};
73
+ height: 1.5rem;
74
+ width: 70%;
75
+ }
76
+
77
+ & .text-wr {
78
+ font-weight: 400;
79
+ font-size: 0.875rem;
80
+ flex: 1;
81
+ color: var(--gray-700, #4e555f);
82
+ ${a.truncateTextInRows(2)}
83
+ }
84
+
85
+ & .info-wr {
86
+ display: flex;
87
+ align-items: center;
88
+ gap: 0.25rem;
89
+ justify-content: space-between;
90
+ color: var(--gray-600, #676e79);
91
+ font-size: 0.75rem;
92
+ font-weight: 400;
93
+
94
+ & .mng {
95
+ font-size: 0.875rem;
96
+ color: var(--gray-300);
97
+ }
98
+ }
99
+
100
+ & .info-wr-1 {
101
+ display: flex;
102
+ align-items: center;
103
+ gap: 0.25rem;
104
+ }
105
+
106
+ & .info-wr-2 {
107
+ display: flex;
108
+ align-items: center;
109
+ gap: 1rem;
110
+ }
111
+ `,h=f.forwardRef((s,j)=>{const{title:d,image:c,text:g,numberOfLikes:r,numberOfComments:u,readDuration:l,datePublished:m,tags:o,onCardClick:e,timeToReadText:i="read"}=s;return t.jsxs(C,{className:"blog-card",onClick:e,children:[t.jsx("img",{src:c}),t.jsxs(S,{children:[t.jsxs("div",{className:"info-wr",children:[t.jsxs("div",{className:"info-wr-1",children:[t.jsx("span",{children:m}),t.jsx("span",{className:"small-dot",children:"●"}),l&&i?`${l} ${i}`:"N/A"]}),t.jsxs("div",{className:"info-wr-2",children:[t.jsxs("span",{className:"info-wr-1",children:[t.jsx("i",{className:"mng mng-lnc-thumbs-up--filled"}),t.jsx("span",{children:r})]}),t.jsxs("span",{className:"info-wr-1",children:[t.jsx("i",{className:"mng mng-lnc-messages-filled"}),t.jsx("span",{children:u})]})]})]}),t.jsx("div",{className:"text-wr-title",children:d}),t.jsx("div",{className:"text-wr",children:g})]}),t.jsx("div",{className:"tags-wr",children:o==null?void 0:o.map((n,y)=>t.jsx(w.BlogTag,{color:n==null?void 0:n.color,children:n==null?void 0:n.name},y))})]})}),O=f.forwardRef((s,j)=>{const{icon:d,title:c,onButtonAction:g,items:r,buttonText:u,limit:l=3,onSelectCard:m=()=>{}}=s,o=v.useDetectMobile();return t.jsxs(w.RegulatTitleSectionWrapper,{children:[t.jsxs("div",{className:"regular-title",children:[t.jsxs("div",{className:"regular-title-text",children:[a.isDefinedNotEmptyString(d)&&t.jsx("i",{className:d}),t.jsx("span",{children:c})]}),a.isDefinedNotEmptyString(onSectionClick)&&t.jsx(k,{type:"button",btnType:"tinted",color:"gray",onClick:()=>g(buttonLink),borderRadius:"curved",children:u})]}),t.jsx(N,{limit:l,children:o===!0?r==null?void 0:r.map((e,i)=>t.jsx(h,{title:e==null?void 0:e.title,image:e==null?void 0:e.image,text:e==null?void 0:e.text,titleSlug:e==null?void 0:e.titleSlug,numberOfLikes:e==null?void 0:e.numberOfLikes,numberOfComments:e==null?void 0:e.numberOfComments,datePublished:e==null?void 0:e.date,readDuration:e==null?void 0:e.readDuration,tags:e==null?void 0:e.tags,onCardClick:()=>m(e==null?void 0:e.uuid)},i)):r==null?void 0:r.slice(0,l).map((e,i)=>t.jsx(h,{title:e==null?void 0:e.title,image:e==null?void 0:e.image,text:e==null?void 0:e.text,titleSlug:e==null?void 0:e.titleSlug,tags:e==null?void 0:e.tags,numberOfLikes:e==null?void 0:e.numberOfLikes,numberOfComments:e==null?void 0:e.numberOfComments,datePublished:e==null?void 0:e.date,readDuration:e==null?void 0:e.readDuration,onCardClick:()=>m(e==null?void 0:e.uuid)},i))})]})});module.exports=O;
@@ -0,0 +1,224 @@
1
+ import { jsxs as t, jsx as r } from "react/jsx-runtime";
2
+ import { forwardRef as w } from "react";
3
+ import { n as u } from "./emotion-styled.browser.esm-BiK8DcgW.js";
4
+ import { M as v } from "./consts-DNVz1x1I.js";
5
+ import { u as N } from "./useDetectMobile-BookNOsk.js";
6
+ import { m as f, t as C, k as h } from "./utils-xpQsPsCa.js";
7
+ import { B as O, R as S } from "./style-D6sNCRwG.js";
8
+ import $ from "./Button.js";
9
+ const D = u.div`
10
+ display: grid;
11
+ grid-template-columns: ${(o) => `repeat(${o.limit}, minmax(0, 1fr))`};
12
+ gap: 1.25rem;
13
+
14
+ @media (max-width: ${v + "px"}) {
15
+ grid-template-columns: repeat(1, 1fr);
16
+ }
17
+ `, T = u.div`
18
+ display: flex;
19
+ flex-direction: column;
20
+ width: 100%;
21
+ box-shadow: 0px 1px 3px 0px rgba(0, 0, 0, 0.1),
22
+ 0px 1px 2px 0px rgba(0, 0, 0, 0.06);
23
+ background-color: var(--white);
24
+ border-radius: 0.75rem;
25
+ border: 1px solid var(--gray-95008);
26
+ overflow: hidden;
27
+ max-height: 21.5625rem;
28
+ min-height: 21.5625rem;
29
+ cursor: pointer;
30
+ &:hover {
31
+ & .text-wr-title {
32
+ color: var(--primary-500, #f59e0b);
33
+ transition: var(--transition);
34
+ }
35
+ }
36
+
37
+ & img {
38
+ max-height: 11.0625rem;
39
+ min-height: 11.0625rem;
40
+ object-fit: cover;
41
+ width: 100%;
42
+ }
43
+
44
+ & .skeleton-img {
45
+ width: 100%;
46
+ max-height: 11.0625rem;
47
+ min-height: 11.0625rem;
48
+ background-color: ${f("-90deg")};
49
+ }
50
+
51
+ & .tags-wr {
52
+ margin-top: auto;
53
+ display: flex;
54
+ gap: 0.5rem;
55
+ padding: 0 1rem 1rem 1rem;
56
+ }
57
+
58
+ @media (max-width: ${v + "px"}) {
59
+ }
60
+ `, B = u.div`
61
+ padding: 1rem 1rem 0 1rem;
62
+ display: flex;
63
+ flex-direction: column;
64
+ gap: 0;
65
+ color: var(--gray-950, #14161a);
66
+ border-top: 1px solid var(--gray-95008);
67
+
68
+ & .text-wr-title {
69
+ font-weight: 600;
70
+ font-size: 1rem;
71
+ }
72
+
73
+ & .info-wr-skeleton {
74
+ background-color: ${f("-90deg")};
75
+ height: 1rem;
76
+ width: 100%;
77
+ }
78
+
79
+ & .skeleton-title {
80
+ background-color: ${f("-90deg")};
81
+ height: 1.5rem;
82
+ width: 70%;
83
+ }
84
+
85
+ & .text-wr {
86
+ font-weight: 400;
87
+ font-size: 0.875rem;
88
+ flex: 1;
89
+ color: var(--gray-700, #4e555f);
90
+ ${C(2)}
91
+ }
92
+
93
+ & .info-wr {
94
+ display: flex;
95
+ align-items: center;
96
+ gap: 0.25rem;
97
+ justify-content: space-between;
98
+ color: var(--gray-600, #676e79);
99
+ font-size: 0.75rem;
100
+ font-weight: 400;
101
+
102
+ & .mng {
103
+ font-size: 0.875rem;
104
+ color: var(--gray-300);
105
+ }
106
+ }
107
+
108
+ & .info-wr-1 {
109
+ display: flex;
110
+ align-items: center;
111
+ gap: 0.25rem;
112
+ }
113
+
114
+ & .info-wr-2 {
115
+ display: flex;
116
+ align-items: center;
117
+ gap: 1rem;
118
+ }
119
+ `, b = w((o, k) => {
120
+ const {
121
+ title: s,
122
+ image: c,
123
+ text: g,
124
+ numberOfLikes: i,
125
+ numberOfComments: p,
126
+ readDuration: l,
127
+ datePublished: d,
128
+ tags: m,
129
+ onCardClick: e,
130
+ timeToReadText: a = "read"
131
+ } = o;
132
+ return (
133
+ // <BlogCardDetailedSkeleton />
134
+ /* @__PURE__ */ t(T, { className: "blog-card", onClick: e, children: [
135
+ /* @__PURE__ */ r("img", { src: c }),
136
+ /* @__PURE__ */ t(B, { children: [
137
+ /* @__PURE__ */ t("div", { className: "info-wr", children: [
138
+ /* @__PURE__ */ t("div", { className: "info-wr-1", children: [
139
+ /* @__PURE__ */ r("span", { children: d }),
140
+ /* @__PURE__ */ r("span", { className: "small-dot", children: "●" }),
141
+ l && a ? `${l} ${a}` : "N/A"
142
+ ] }),
143
+ /* @__PURE__ */ t("div", { className: "info-wr-2", children: [
144
+ /* @__PURE__ */ t("span", { className: "info-wr-1", children: [
145
+ /* @__PURE__ */ r("i", { className: "mng mng-lnc-thumbs-up--filled" }),
146
+ /* @__PURE__ */ r("span", { children: i })
147
+ ] }),
148
+ /* @__PURE__ */ t("span", { className: "info-wr-1", children: [
149
+ /* @__PURE__ */ r("i", { className: "mng mng-lnc-messages-filled" }),
150
+ /* @__PURE__ */ r("span", { children: p })
151
+ ] })
152
+ ] })
153
+ ] }),
154
+ /* @__PURE__ */ r("div", { className: "text-wr-title", children: s }),
155
+ /* @__PURE__ */ r("div", { className: "text-wr", children: g })
156
+ ] }),
157
+ /* @__PURE__ */ r("div", { className: "tags-wr", children: m == null ? void 0 : m.map((n, y) => /* @__PURE__ */ r(O, { color: n == null ? void 0 : n.color, children: n == null ? void 0 : n.name }, y)) })
158
+ ] })
159
+ );
160
+ }), E = w((o, k) => {
161
+ const {
162
+ icon: s,
163
+ title: c,
164
+ onButtonAction: g,
165
+ items: i,
166
+ buttonText: p,
167
+ limit: l = 3,
168
+ onSelectCard: d = () => {
169
+ }
170
+ } = o, m = N();
171
+ return /* @__PURE__ */ t(S, { children: [
172
+ /* @__PURE__ */ t("div", { className: "regular-title", children: [
173
+ /* @__PURE__ */ t("div", { className: "regular-title-text", children: [
174
+ h(s) && /* @__PURE__ */ r("i", { className: s }),
175
+ /* @__PURE__ */ r("span", { children: c })
176
+ ] }),
177
+ h(onSectionClick) && /* @__PURE__ */ r(
178
+ $,
179
+ {
180
+ type: "button",
181
+ btnType: "tinted",
182
+ color: "gray",
183
+ onClick: () => g(buttonLink),
184
+ borderRadius: "curved",
185
+ children: p
186
+ }
187
+ )
188
+ ] }),
189
+ /* @__PURE__ */ r(D, { limit: l, children: m === !0 ? i == null ? void 0 : i.map((e, a) => /* @__PURE__ */ r(
190
+ b,
191
+ {
192
+ title: e == null ? void 0 : e.title,
193
+ image: e == null ? void 0 : e.image,
194
+ text: e == null ? void 0 : e.text,
195
+ titleSlug: e == null ? void 0 : e.titleSlug,
196
+ numberOfLikes: e == null ? void 0 : e.numberOfLikes,
197
+ numberOfComments: e == null ? void 0 : e.numberOfComments,
198
+ datePublished: e == null ? void 0 : e.date,
199
+ readDuration: e == null ? void 0 : e.readDuration,
200
+ tags: e == null ? void 0 : e.tags,
201
+ onCardClick: () => d(e == null ? void 0 : e.uuid)
202
+ },
203
+ a
204
+ )) : i == null ? void 0 : i.slice(0, l).map((e, a) => /* @__PURE__ */ r(
205
+ b,
206
+ {
207
+ title: e == null ? void 0 : e.title,
208
+ image: e == null ? void 0 : e.image,
209
+ text: e == null ? void 0 : e.text,
210
+ titleSlug: e == null ? void 0 : e.titleSlug,
211
+ tags: e == null ? void 0 : e.tags,
212
+ numberOfLikes: e == null ? void 0 : e.numberOfLikes,
213
+ numberOfComments: e == null ? void 0 : e.numberOfComments,
214
+ datePublished: e == null ? void 0 : e.date,
215
+ readDuration: e == null ? void 0 : e.readDuration,
216
+ onCardClick: () => d(e == null ? void 0 : e.uuid)
217
+ },
218
+ a
219
+ )) })
220
+ ] });
221
+ });
222
+ export {
223
+ E as default
224
+ };
@@ -0,0 +1,101 @@
1
+ "use strict";const t=require("react/jsx-runtime"),d=require("react"),s=require("./emotion-styled.browser.esm-Cbp_XsK4.cjs"),c=require("./consts-dNz9tpt4.cjs"),h=require("./useDetectMobile-rBe0FiP2.cjs"),l=require("./utils-UJt-R-G3.cjs"),g=require("./Button.cjs"),f=s.newStyled.div`
2
+ display: grid;
3
+ grid-template-columns: ${i=>`repeat(${i.limit}, minmax(0, 1fr))`};
4
+ gap: 1.25rem;
5
+
6
+ @media (max-width: ${c.MOBILE_SIZE_PX+"px"}) {
7
+ grid-template-columns: repeat(1, 1fr);
8
+ }
9
+ `,p=s.newStyled.div`
10
+ display: flex;
11
+ width: 100%;
12
+ gap: 1.25rem;
13
+ box-shadow: 0px 1px 3px 0px rgba(0, 0, 0, 0.1),
14
+ 0px 1px 2px 0px rgba(0, 0, 0, 0.06);
15
+ background-color: var(--white);
16
+ border-radius: 0.75rem;
17
+ border: 1px solid var(--gray-95008);
18
+ overflow: hidden;
19
+ max-height: 11.25rem;
20
+ min-height: 11.25rem;
21
+
22
+ & img {
23
+ max-height: 11.25rem;
24
+ min-height: 11.25rem;
25
+ min-width: 11.25rem;
26
+ max-width: 11.25rem;
27
+ object-fit: cover;
28
+ width: 100%;
29
+ border-radius: 0.75rem 0 0 0.75rem;
30
+ }
31
+
32
+ & .skeleton-img {
33
+ width: 100%;
34
+ max-height: 11.25rem;
35
+ min-height: 12.25rem;
36
+ min-width: 11.25rem;
37
+ max-width: 11.25rem;
38
+ background-color: ${l.linearGradientAnimation("-90deg")};
39
+ border-radius: 0.75rem 0 0 0.75rem;
40
+ }
41
+
42
+ @media (max-width: ${c.MOBILE_SIZE_PX+"px"}) {
43
+ padding: 1rem;
44
+ column-gap: 1.5rem;
45
+ row-gap: 1rem;
46
+ display: grid;
47
+ grid-template-columns: repeat(2, auto);
48
+ max-height: 13.25rem;
49
+ min-height: 13.25rem;
50
+ & .action {
51
+ grid-column: 1 / 3;
52
+ }
53
+
54
+ & img,
55
+ .skeleton-img {
56
+ max-height: 7.75rem;
57
+ min-height: 7.75rem;
58
+ min-width: 7.75rem;
59
+ max-width: 7.75rem;
60
+ border-radius: 0.75rem;
61
+ }
62
+
63
+ & button {
64
+ width: 100%;
65
+ margin-top: auto;
66
+ }
67
+ }
68
+ `,w=s.newStyled.div`
69
+ padding: 1rem;
70
+ display: flex;
71
+ flex-direction: column;
72
+ gap: 0.25rem;
73
+ color: var(--gray-950, #14161a);
74
+
75
+ & .text-wr-title {
76
+ font-weight: 600;
77
+ font-size: 1.25rem;
78
+ }
79
+
80
+ & .text-wr {
81
+ font-weight: 400;
82
+ font-size: 0.875rem;
83
+ color: var(--gray-700, #4e555f);
84
+ ${l.truncateTextInRows(3)}
85
+ }
86
+
87
+ & button {
88
+ width: fit-content;
89
+ margin-top: auto;
90
+ }
91
+
92
+ & .skeleton-title {
93
+ height: 1.75rem;
94
+ width: 80%;
95
+ background-color: ${l.linearGradientAnimation("-90deg")};
96
+ }
97
+
98
+ @media (max-width: ${c.MOBILE_SIZE_PX+"px"}) {
99
+ padding: 0;
100
+ }
101
+ `;d.forwardRef(({},i)=>t.jsxs(p,{className:"blog-card",children:[t.jsx("div",{className:"skeleton-img"}),t.jsx(w,{children:t.jsx("div",{className:"skeleton-title"})})]}));const u=d.forwardRef((i,b)=>{const{title:r,image:n,text:m,onCardClick:a,buttonText:e}=i,o=h.useDetectMobile();return t.jsxs(p,{className:"blog-card",onClick:a,children:[t.jsx("img",{src:n}),t.jsxs(w,{children:[t.jsx("div",{className:"text-wr-title",children:r}),t.jsx("div",{className:"text-wr",children:m}),o!==!0&&t.jsx(g,{type:"button",btnType:"outline",size:"medium",color:"gray",onClick:a,children:e})]}),o===!0&&t.jsx(g,{className:"action",type:"button",btnType:"outline",size:"medium",color:"gray",onClick:a,children:e})]})}),y=d.forwardRef((i,b)=>{const{items:r,onSelectCard:n=()=>{},limit:m=2}=i,a=h.useDetectMobile();return t.jsx(f,{limit:m,children:a===!0?r==null?void 0:r.map((e,o)=>t.jsx(u,{title:e==null?void 0:e.title,image:e==null?void 0:e.image,text:e==null?void 0:e.text,titleSlug:e==null?void 0:e.titleSlug,buttonText:e==null?void 0:e.buttonText,onCardClick:()=>n(e)},o)):r==null?void 0:r.slice(0,m).map((e,o)=>t.jsx(u,{title:e==null?void 0:e.title,image:e==null?void 0:e.image,text:e==null?void 0:e.text,titleSlug:e==null?void 0:e.titleSlug,buttonText:e==null?void 0:e.buttonText,onCardClick:()=>n(e)},o))})});module.exports=y;