@lanaco/lnc-react-ui 4.0.32 → 4.0.34

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 (206) 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/BannerSectionBasic.cjs +1 -1
  14. package/dist/BannerSectionBasic.js +1 -1
  15. package/dist/BannerSectionCarousel.cjs +1 -1
  16. package/dist/BannerSectionCarousel.js +2 -2
  17. package/dist/BannerSectionGrid.cjs +1 -1
  18. package/dist/BannerSectionGrid.js +3 -3
  19. package/dist/BannerSectionSimple.cjs +1 -1
  20. package/dist/BannerSectionSimple.js +2 -2
  21. package/dist/BannerSectionWithList.cjs +1 -1
  22. package/dist/BannerSectionWithList.js +2 -2
  23. package/dist/BannerSectionWithListImage.cjs +1 -1
  24. package/dist/BannerSectionWithListImage.js +1 -1
  25. package/dist/BlogsSectionDetailed.cjs +111 -0
  26. package/dist/BlogsSectionDetailed.js +224 -0
  27. package/dist/BlogsSectionLarge.cjs +101 -0
  28. package/dist/BlogsSectionLarge.js +177 -0
  29. package/dist/BlogsSectionSimple.cjs +71 -0
  30. package/dist/BlogsSectionSimple.js +158 -0
  31. package/dist/BlogsSectionSimpleCentered.cjs +78 -0
  32. package/dist/BlogsSectionSimpleCentered.js +149 -0
  33. package/dist/BlogsSectionWithFilters.cjs +173 -0
  34. package/dist/BlogsSectionWithFilters.js +559 -0
  35. package/dist/BrandHitsSection.cjs +11 -7
  36. package/dist/BrandHitsSection.js +10 -6
  37. package/dist/Breadcrumbs.cjs +1 -1
  38. package/dist/Breadcrumbs.js +1 -1
  39. package/dist/Button.cjs +1 -1
  40. package/dist/Button.js +1 -1
  41. package/dist/ButtonGroup.cjs +1 -1
  42. package/dist/ButtonGroup.js +1 -1
  43. package/dist/CheckBoxInput.cjs +1 -1
  44. package/dist/CheckBoxInput.js +1 -1
  45. package/dist/Chip.cjs +1 -1
  46. package/dist/Chip.js +1 -1
  47. package/dist/ColorInput.cjs +1 -1
  48. package/dist/ColorInput.js +1 -1
  49. package/dist/ConfirmationForm.cjs +1 -1
  50. package/dist/ConfirmationForm.js +1 -1
  51. package/dist/CustomLoanMapSection.cjs +240 -0
  52. package/dist/CustomLoanMapSection.js +410 -0
  53. package/dist/{CustomStyles-DuADCM-0.js → CustomStyles-BWOJ2IOk.js} +1 -1
  54. package/dist/{CustomStyles-CBON9fD-.cjs → CustomStyles-DyqGX2oY.cjs} +1 -1
  55. package/dist/DateInput.cjs +1 -1
  56. package/dist/DateInput.js +1 -1
  57. package/dist/DecimalInput.cjs +1 -1
  58. package/dist/DecimalInput.js +1 -1
  59. package/dist/DecimalInputV2.cjs +1 -1
  60. package/dist/DecimalInputV2.js +1 -1
  61. package/dist/DetailedProductsSection.cjs +1 -1
  62. package/dist/DetailedProductsSection.js +5 -5
  63. package/dist/DetailsView.cjs +1 -1
  64. package/dist/DetailsView.js +1 -1
  65. package/dist/DoubleRangeSlider.cjs +1 -1
  66. package/dist/DoubleRangeSlider.js +1 -1
  67. package/dist/DragAndDropFile.cjs +1 -1
  68. package/dist/DragAndDropFile.js +1 -1
  69. package/dist/DragDropFiles.cjs +1 -1
  70. package/dist/DragDropFiles.js +1 -1
  71. package/dist/Drawer.cjs +1 -1
  72. package/dist/Drawer.js +1 -1
  73. package/dist/Dropdown.cjs +1 -1
  74. package/dist/Dropdown.js +2 -2
  75. package/dist/DropdownItem.cjs +1 -1
  76. package/dist/DropdownItem.js +1 -1
  77. package/dist/DropdownLookup.cjs +1 -1
  78. package/dist/DropdownLookup.js +1 -1
  79. package/dist/DropdownMenu.cjs +1 -1
  80. package/dist/DropdownMenu.js +1 -1
  81. package/dist/EditableTable.cjs +1 -1
  82. package/dist/EditableTable.js +1 -1
  83. package/dist/FieldOfInterestsMasonrySection.cjs +7 -7
  84. package/dist/FieldOfInterestsMasonrySection.js +24 -24
  85. package/dist/FieldOfInterestsWithAvatarsCardsSection.cjs +11 -7
  86. package/dist/FieldOfInterestsWithAvatarsCardsSection.js +62 -58
  87. package/dist/FieldOfInterestsWithTagsCardsSection.cjs +37 -17
  88. package/dist/FieldOfInterestsWithTagsCardsSection.js +69 -49
  89. package/dist/FileInput.cjs +1 -1
  90. package/dist/FileInput.js +1 -1
  91. package/dist/FlexGridItem.cjs +1 -1
  92. package/dist/FlexGridItem.js +1 -1
  93. package/dist/FormField.cjs +1 -1
  94. package/dist/FormField.js +1 -1
  95. package/dist/FormView.cjs +1 -1
  96. package/dist/FormView.js +1 -1
  97. package/dist/GeneralWithTagsCardsSection.cjs +198 -0
  98. package/dist/GeneralWithTagsCardsSection.js +287 -0
  99. package/dist/GiftCardsSection.cjs +11 -7
  100. package/dist/GiftCardsSection.js +34 -30
  101. package/dist/Icon.cjs +1 -1
  102. package/dist/Icon.js +1 -1
  103. package/dist/IconButton.cjs +1 -1
  104. package/dist/IconButton.js +1 -1
  105. package/dist/Kanban.cjs +1 -1
  106. package/dist/Kanban.js +1 -1
  107. package/dist/KanbanActionsToolbar.cjs +1 -1
  108. package/dist/KanbanActionsToolbar.js +1 -1
  109. package/dist/KanbanView.cjs +1 -1
  110. package/dist/KanbanView.js +1 -1
  111. package/dist/Link.cjs +1 -1
  112. package/dist/Link.js +1 -1
  113. package/dist/MasonryGeneralCardsSection.cjs +6 -6
  114. package/dist/MasonryGeneralCardsSection.js +38 -36
  115. package/dist/MenuItem.cjs +1 -1
  116. package/dist/MenuItem.js +1 -1
  117. package/dist/Modal.cjs +1 -1
  118. package/dist/Modal.js +1 -1
  119. package/dist/MultiSelectDropdown.cjs +1 -1
  120. package/dist/MultiSelectDropdown.js +1 -1
  121. package/dist/MultiSelectDropdownLookup.cjs +1 -1
  122. package/dist/MultiSelectDropdownLookup.js +1 -1
  123. package/dist/NestedDropdownItem.cjs +1 -1
  124. package/dist/NestedDropdownItem.js +1 -1
  125. package/dist/NestedMenuItem.cjs +1 -1
  126. package/dist/NestedMenuItem.js +1 -1
  127. package/dist/NotificationContainer.cjs +1 -1
  128. package/dist/NotificationContainer.js +1 -1
  129. package/dist/NotificationMessage.cjs +1 -1
  130. package/dist/NotificationMessage.js +1 -1
  131. package/dist/NumberInput.cjs +1 -1
  132. package/dist/NumberInput.js +1 -1
  133. package/dist/OverlayGeneralCardsSection.cjs +127 -0
  134. package/dist/OverlayGeneralCardsSection.js +183 -0
  135. package/dist/PasswordInput.cjs +1 -1
  136. package/dist/PasswordInput.js +1 -1
  137. package/dist/PopoverContent.cjs +1 -1
  138. package/dist/PopoverContent.js +1 -1
  139. package/dist/ProductsWithBannerSection.cjs +1 -1
  140. package/dist/ProductsWithBannerSection.js +4 -4
  141. package/dist/ProgressBar.cjs +1 -1
  142. package/dist/ProgressBar.js +1 -1
  143. package/dist/QuizSection.cjs +387 -0
  144. package/dist/QuizSection.js +697 -0
  145. package/dist/RadioInput.cjs +1 -1
  146. package/dist/RadioInput.js +1 -1
  147. package/dist/RangeSlider.cjs +1 -1
  148. package/dist/RangeSlider.js +1 -1
  149. package/dist/Separator.cjs +1 -1
  150. package/dist/Separator.js +1 -1
  151. package/dist/ShopCardsSection.cjs +8 -8
  152. package/dist/ShopCardsSection.js +50 -50
  153. package/dist/Sidebar.cjs +1 -1
  154. package/dist/Sidebar.js +1 -1
  155. package/dist/SimpleCategoriesSection.cjs +81 -0
  156. package/dist/SimpleCategoriesSection.js +153 -0
  157. package/dist/SimpleProductsSection.cjs +1 -1
  158. package/dist/SimpleProductsSection.js +4 -4
  159. package/dist/Spinner.cjs +1 -1
  160. package/dist/Spinner.js +1 -1
  161. package/dist/Surface.cjs +1 -1
  162. package/dist/Surface.js +1 -1
  163. package/dist/SwipeableDrawer.cjs +1 -1
  164. package/dist/SwipeableDrawer.js +1 -1
  165. package/dist/TabItem.cjs +1 -1
  166. package/dist/TabItem.js +1 -1
  167. package/dist/Table.cjs +1 -1
  168. package/dist/Table.js +1 -1
  169. package/dist/TableView.cjs +1 -1
  170. package/dist/TableView.js +1 -1
  171. package/dist/TextAreaInput.cjs +1 -1
  172. package/dist/TextAreaInput.js +1 -1
  173. package/dist/TextInput.cjs +1 -1
  174. package/dist/TextInput.js +1 -1
  175. package/dist/ThemeProvider.cjs +1 -1
  176. package/dist/ThemeProvider.js +25 -25
  177. package/dist/TimeInput.cjs +1 -1
  178. package/dist/TimeInput.js +1 -1
  179. package/dist/Toggle.cjs +1 -1
  180. package/dist/Toggle.js +1 -1
  181. package/dist/TreeMenuSeparator.cjs +1 -1
  182. package/dist/TreeMenuSeparator.js +1 -1
  183. package/dist/UploadedFile.cjs +1 -1
  184. package/dist/UploadedFile.js +1 -1
  185. package/dist/UrgentSaleProductsSection.cjs +1 -1
  186. package/dist/UrgentSaleProductsSection.js +3 -3
  187. package/dist/consts-C1uHV4xc.js +6 -0
  188. package/dist/consts-CtNoHdBj.cjs +1 -0
  189. package/dist/{index-jVpIwR2G.js → index-7XMd1kAv.js} +2 -2
  190. package/dist/{index-C2M7QHPq.cjs → index-B67WqHGh.cjs} +1 -1
  191. package/dist/{index-BlV3tdJ8.cjs → index-B6kVbS_M.cjs} +1 -1
  192. package/dist/{index-DcYg32le.js → index-CTJZaJ_S.js} +1 -1
  193. package/dist/{index-DGl-lSfF.js → index-HV_Ku4ub.js} +1 -1
  194. package/dist/{index-LdP7U1Yl.cjs → index-mIxT8eNX.cjs} +1 -1
  195. package/dist/index.cjs +1 -1
  196. package/dist/index.js +51 -47
  197. package/dist/{style-C3OB0uad.cjs → style-BEUISPP7.cjs} +5 -5
  198. package/dist/{style-Ch-xOasu.js → style-BGQ1B_dp.js} +7 -8
  199. package/dist/{useDetectMobile-BookNOsk.js → useDetectMobile-BC6EGaBc.js} +1 -1
  200. package/dist/{useDetectMobile-rBe0FiP2.cjs → useDetectMobile-D6d5LpdL.cjs} +1 -1
  201. package/dist/{utils-CE6bljYe.cjs → utils-C0YSTwcn.cjs} +7 -7
  202. package/dist/{utils-DtEdJZWa.js → utils-CqvISfv9.js} +43 -36
  203. package/package.json +12 -1
  204. package/vite.config.js +40 -0
  205. package/dist/consts-DNVz1x1I.js +0 -4
  206. package/dist/consts-dNz9tpt4.cjs +0 -1
@@ -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-C1uHV4xc.js";
5
+ import { u as N } from "./useDetectMobile-BC6EGaBc.js";
6
+ import { m as f, t as C, k as h } from "./utils-CqvISfv9.js";
7
+ import { B as O, R as S } from "./style-BGQ1B_dp.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-CtNoHdBj.cjs"),h=require("./useDetectMobile-D6d5LpdL.cjs"),l=require("./utils-C0YSTwcn.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;
@@ -0,0 +1,177 @@
1
+ import { jsxs as l, jsx as t } from "react/jsx-runtime";
2
+ import { forwardRef as d } from "react";
3
+ import { n as g } from "./emotion-styled.browser.esm-BiK8DcgW.js";
4
+ import { M as c } from "./consts-C1uHV4xc.js";
5
+ import { u as h } from "./useDetectMobile-BC6EGaBc.js";
6
+ import { m as u, t as k } from "./utils-CqvISfv9.js";
7
+ import s from "./Button.js";
8
+ const y = g.div`
9
+ display: grid;
10
+ grid-template-columns: ${(i) => `repeat(${i.limit}, minmax(0, 1fr))`};
11
+ gap: 1.25rem;
12
+
13
+ @media (max-width: ${c + "px"}) {
14
+ grid-template-columns: repeat(1, 1fr);
15
+ }
16
+ `, b = g.div`
17
+ display: flex;
18
+ width: 100%;
19
+ gap: 1.25rem;
20
+ box-shadow: 0px 1px 3px 0px rgba(0, 0, 0, 0.1),
21
+ 0px 1px 2px 0px rgba(0, 0, 0, 0.06);
22
+ background-color: var(--white);
23
+ border-radius: 0.75rem;
24
+ border: 1px solid var(--gray-95008);
25
+ overflow: hidden;
26
+ max-height: 11.25rem;
27
+ min-height: 11.25rem;
28
+
29
+ & img {
30
+ max-height: 11.25rem;
31
+ min-height: 11.25rem;
32
+ min-width: 11.25rem;
33
+ max-width: 11.25rem;
34
+ object-fit: cover;
35
+ width: 100%;
36
+ border-radius: 0.75rem 0 0 0.75rem;
37
+ }
38
+
39
+ & .skeleton-img {
40
+ width: 100%;
41
+ max-height: 11.25rem;
42
+ min-height: 12.25rem;
43
+ min-width: 11.25rem;
44
+ max-width: 11.25rem;
45
+ background-color: ${u("-90deg")};
46
+ border-radius: 0.75rem 0 0 0.75rem;
47
+ }
48
+
49
+ @media (max-width: ${c + "px"}) {
50
+ padding: 1rem;
51
+ column-gap: 1.5rem;
52
+ row-gap: 1rem;
53
+ display: grid;
54
+ grid-template-columns: repeat(2, auto);
55
+ max-height: 13.25rem;
56
+ min-height: 13.25rem;
57
+ & .action {
58
+ grid-column: 1 / 3;
59
+ }
60
+
61
+ & img,
62
+ .skeleton-img {
63
+ max-height: 7.75rem;
64
+ min-height: 7.75rem;
65
+ min-width: 7.75rem;
66
+ max-width: 7.75rem;
67
+ border-radius: 0.75rem;
68
+ }
69
+
70
+ & button {
71
+ width: 100%;
72
+ margin-top: auto;
73
+ }
74
+ }
75
+ `, w = g.div`
76
+ padding: 1rem;
77
+ display: flex;
78
+ flex-direction: column;
79
+ gap: 0.25rem;
80
+ color: var(--gray-950, #14161a);
81
+
82
+ & .text-wr-title {
83
+ font-weight: 600;
84
+ font-size: 1.25rem;
85
+ }
86
+
87
+ & .text-wr {
88
+ font-weight: 400;
89
+ font-size: 0.875rem;
90
+ color: var(--gray-700, #4e555f);
91
+ ${k(3)}
92
+ }
93
+
94
+ & button {
95
+ width: fit-content;
96
+ margin-top: auto;
97
+ }
98
+
99
+ & .skeleton-title {
100
+ height: 1.75rem;
101
+ width: 80%;
102
+ background-color: ${u("-90deg")};
103
+ }
104
+
105
+ @media (max-width: ${c + "px"}) {
106
+ padding: 0;
107
+ }
108
+ `;
109
+ d(({}, i) => /* @__PURE__ */ l(b, { className: "blog-card", children: [
110
+ /* @__PURE__ */ t("div", { className: "skeleton-img" }),
111
+ /* @__PURE__ */ t(w, { children: /* @__PURE__ */ t("div", { className: "skeleton-title" }) })
112
+ ] }));
113
+ const p = d((i, f) => {
114
+ const { title: r, image: a, text: n, onCardClick: m, buttonText: e } = i, o = h();
115
+ return (
116
+ // <BlogCardLargeSkeleton />
117
+ /* @__PURE__ */ l(b, { className: "blog-card", onClick: m, children: [
118
+ /* @__PURE__ */ t("img", { src: a }),
119
+ /* @__PURE__ */ l(w, { children: [
120
+ /* @__PURE__ */ t("div", { className: "text-wr-title", children: r }),
121
+ /* @__PURE__ */ t("div", { className: "text-wr", children: n }),
122
+ o !== !0 && /* @__PURE__ */ t(
123
+ s,
124
+ {
125
+ type: "button",
126
+ btnType: "outline",
127
+ size: "medium",
128
+ color: "gray",
129
+ onClick: m,
130
+ children: e
131
+ }
132
+ )
133
+ ] }),
134
+ o === !0 && /* @__PURE__ */ t(
135
+ s,
136
+ {
137
+ className: "action",
138
+ type: "button",
139
+ btnType: "outline",
140
+ size: "medium",
141
+ color: "gray",
142
+ onClick: m,
143
+ children: e
144
+ }
145
+ )
146
+ ] })
147
+ );
148
+ }), z = d((i, f) => {
149
+ const { items: r, onSelectCard: a = () => {
150
+ }, limit: n = 2 } = i, m = h();
151
+ return /* @__PURE__ */ t(y, { limit: n, children: m === !0 ? r == null ? void 0 : r.map((e, o) => /* @__PURE__ */ t(
152
+ p,
153
+ {
154
+ title: e == null ? void 0 : e.title,
155
+ image: e == null ? void 0 : e.image,
156
+ text: e == null ? void 0 : e.text,
157
+ titleSlug: e == null ? void 0 : e.titleSlug,
158
+ buttonText: e == null ? void 0 : e.buttonText,
159
+ onCardClick: () => a(e)
160
+ },
161
+ o
162
+ )) : r == null ? void 0 : r.slice(0, n).map((e, o) => /* @__PURE__ */ t(
163
+ p,
164
+ {
165
+ title: e == null ? void 0 : e.title,
166
+ image: e == null ? void 0 : e.image,
167
+ text: e == null ? void 0 : e.text,
168
+ titleSlug: e == null ? void 0 : e.titleSlug,
169
+ buttonText: e == null ? void 0 : e.buttonText,
170
+ onCardClick: () => a(e)
171
+ },
172
+ o
173
+ )) });
174
+ });
175
+ export {
176
+ z as default
177
+ };
@@ -0,0 +1,71 @@
1
+ "use strict";const t=require("react/jsx-runtime"),m=require("react"),g=require("./emotion-styled.browser.esm-Cbp_XsK4.cjs"),h=require("./consts-CtNoHdBj.cjs"),y=require("./useDetectMobile-D6d5LpdL.cjs"),l=require("./utils-C0YSTwcn.cjs"),S=require("./style-BEUISPP7.cjs"),k=require("./Button.cjs"),x=require("./Link.cjs"),N=g.newStyled.div`
2
+ display: grid;
3
+ grid-template-columns: ${r=>`repeat(${r.limit}, minmax(0, 1fr))`};
4
+ gap: 1.25rem;
5
+
6
+ @media (max-width: ${h.MOBILE_SIZE_PX+"px"}) {
7
+ grid-template-columns: repeat(1, 1fr);
8
+ }
9
+ `,f=g.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
+
23
+ &:hover {
24
+ & .text-wr-title {
25
+ color: var(--primary-500, #f59e0b);
26
+ transition: var(--transition);
27
+ }
28
+ }
29
+
30
+ & img {
31
+ max-height: 12.5625rem;
32
+ min-height: 12.5625rem;
33
+ object-fit: cover;
34
+ width: 100%;
35
+ }
36
+
37
+ & .skeleton-img {
38
+ width: 100%;
39
+ max-height: 12.5625rem;
40
+ min-height: 12.5625rem;
41
+ background-color: ${l.linearGradientAnimation("-90deg")};
42
+ }
43
+
44
+ & .action {
45
+ padding: 0 1rem 1rem 1rem;
46
+ margin-top: auto;
47
+ }
48
+
49
+ @media (max-width: ${h.MOBILE_SIZE_PX+"px"}) {
50
+ }
51
+ `,w=g.newStyled.div`
52
+ padding: 1rem 1rem 0 1rem;
53
+ display: flex;
54
+ flex-direction: column;
55
+ gap: 0.25rem;
56
+ color: var(--gray-950, #14161a);
57
+ border-top: 1px solid var(--gray-95008);
58
+
59
+ & .text-wr-title {
60
+ font-weight: 600;
61
+ font-size: 1rem;
62
+ }
63
+
64
+ & .text-wr {
65
+ font-weight: 400;
66
+ font-size: 0.875rem;
67
+ flex: 1;
68
+ color: var(--gray-700, #4e555f);
69
+ ${l.truncateTextInRows(3)}
70
+ }
71
+ `;m.forwardRef(({},r)=>t.jsxs(f,{className:"product-card",children:[t.jsx("div",{className:"skeleton-img"}),t.jsx("div",{className:"card-title"}),t.jsx(w,{})]}));const p=m.forwardRef((r,j)=>{const{title:a,image:s,text:c,onCardClick:o,readMoreText:n="Read more"}=r;return t.jsxs(f,{className:"blog-card",onClick:o,children:[t.jsx("img",{src:s}),t.jsxs(w,{children:[t.jsx("div",{className:"text-wr-title",children:a}),t.jsx("div",{className:"text-wr",children:c})]}),t.jsx(x,{className:"action",color:"gray",onClick:o,children:n})]})}),C=m.forwardRef((r,j)=>{const{icon:a,title:s,onButtonAction:c=()=>{},onSelectCard:o=()=>{},buttonLink:n,items:i,buttonText:b,limit:u=3}=r,v=y.useDetectMobile();return t.jsxs(S.RegulatTitleSectionWrapper,{children:[t.jsxs("div",{className:"regular-title",children:[t.jsxs("div",{className:"regular-title-text",children:[l.isDefinedNotEmptyString(a)&&t.jsx("i",{className:a}),t.jsx("span",{children:s})]}),l.isDefinedNotEmptyString(n)&&t.jsx(k,{type:"button",btnType:"tinted",color:"gray",onClick:()=>c(n),borderRadius:"curved",children:b})]}),t.jsx(N,{limit:u,children:v===!0?i==null?void 0:i.map((e,d)=>t.jsx(p,{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,onCardClick:()=>o(e==null?void 0:e.uuid)},d)):i==null?void 0:i.slice(0,u).map((e,d)=>t.jsx(p,{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,onCardClick:()=>o(e==null?void 0:e.uuid)},d))})]})});module.exports=C;