@lanaco/lnc-react-ui 4.0.170 → 4.0.172

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-BovNbKxB.js +54 -0
  146. package/dist/{skeleton-Ccd6EDeB.cjs → index-C5r__0lD.cjs} +4 -47
  147. package/dist/{index-DicTpiG0.cjs → index-CfT9e5O9.cjs} +2 -10
  148. package/dist/index-CsEmnNEh.cjs +307 -0
  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-DxwIu0Wn.js +84 -0
  155. package/dist/index-G6ucyCg3.js +744 -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-BU6DPCvJ.js +0 -652
  171. package/dist/suspense-product-card-detailed-BbvQuPOP.cjs +0 -329
  172. package/dist/suspense-product-card-simple-DJ8UYolb.cjs +0 -1
  173. package/dist/suspense-product-card-simple-ziy0XcLp.js +0 -26
@@ -1,17 +1,9 @@
1
1
  import { jsxs as r, jsx as s } from "react/jsx-runtime";
2
- import { forwardRef as b, useRef as x } from "react";
3
- import { s as c } from "./emotion-styled.browser.esm-BNN1dTl3.js";
4
- import { o as v, p as y, l as w, q as k, G as z } from "./utils-BdsZgOUE.js";
5
- import { P as C } from "./index-CF3HhgvN.js";
6
- const F = c.div`
7
- background-color: var(--gray-200, #dddfe4);
8
- border-radius: 0.75rem;
9
- min-width: 11.625rem;
10
- min-height: 11.625rem;
11
- max-width: 11.625rem;
12
- max-height: 11.625rem;
13
- ${v("-90deg")}
14
- `, N = c.div`
2
+ import { forwardRef as b, useRef as h } from "react";
3
+ import { s as x } from "./emotion-styled.browser.esm-BNN1dTl3.js";
4
+ import { o as y, l as v, p as w, G as k } from "./utils-DHfRApMf.js";
5
+ import { P as z } from "./index-BbltNcou.js";
6
+ const C = x.div`
15
7
  display: flex;
16
8
  flex-direction: column;
17
9
  justify-content: end;
@@ -90,39 +82,39 @@ const F = c.div`
90
82
  z-index: 1;
91
83
  }
92
84
  }
93
- `, I = b((l, j) => {
85
+ `, G = b((c, N) => {
94
86
  const {
95
- uuid: S,
96
- title: m,
87
+ uuid: j,
88
+ title: l,
97
89
  price: i = 0,
98
90
  currency: t,
99
91
  isNegotiable: o,
100
92
  isFree: a,
101
- image: p,
93
+ image: m,
102
94
  sellerUuid: P,
103
- onSelectCard: f = () => {
95
+ onSelectCard: p = () => {
104
96
  },
105
97
  imageComponent: n,
106
- negotiableText: g = "Negotiable",
107
- freeText: u = "Free",
98
+ negotiableText: f = "Negotiable",
99
+ freeText: g = "Free",
108
100
  metadata: e
109
- } = l, d = x();
101
+ } = c, d = h();
110
102
  return /* @__PURE__ */ r(
111
- N,
103
+ C,
112
104
  {
113
105
  ref: d,
114
106
  className: "simple-product-card",
115
107
  "data-accessor": e == null ? void 0 : e.accessor,
116
108
  name: e == null ? void 0 : e.name,
117
- onClick: (h) => f(h, d),
109
+ onClick: (u) => p(u, d),
118
110
  children: [
119
- w(n) ? n : /* @__PURE__ */ s(C, { src: p }),
111
+ v(n) ? n : /* @__PURE__ */ s(z, { src: m }),
120
112
  /* @__PURE__ */ r("div", { className: "text-block", children: [
121
- /* @__PURE__ */ s("div", { className: "title-simple-product-card", children: m }),
113
+ /* @__PURE__ */ s("div", { className: "title-simple-product-card", children: l }),
122
114
  /* @__PURE__ */ r("div", { className: "price-chip", children: [
123
- i > 0 && t && o !== !0 && a !== !0 && `${k(i)} ${z(t)}`,
124
- o && g,
125
- a && u
115
+ i > 0 && t && o !== !0 && a !== !0 && `${w(i)} ${k(t)}`,
116
+ o && f,
117
+ a && g
126
118
  ] })
127
119
  ] })
128
120
  ]
@@ -130,6 +122,5 @@ const F = c.div`
130
122
  );
131
123
  });
132
124
  export {
133
- I as S,
134
- F as a
125
+ G as S
135
126
  };
package/dist/index.js CHANGED
@@ -124,7 +124,7 @@ import { default as Lr } from "./StatsSection.js";
124
124
  import { default as Nr } from "./ToggleSection.js";
125
125
  import { default as Wr } from "./BlogExploreSection.js";
126
126
  import { default as yr, useTheme as Hr } from "./ThemeProvider.js";
127
- import { c as Or } from "./CustomStyles-SyQRnjuy.js";
127
+ import { c as Or } from "./CustomStyles-ArAVZsIj.js";
128
128
  export {
129
129
  wo as Accordion,
130
130
  vo as AccordionDetails,
@@ -0,0 +1,64 @@
1
+ "use strict";const t=require("./emotion-styled.browser.esm-BtEseadx.cjs"),i=require("./emotion-react.browser.esm-Cvnp-zmB.cjs"),o=i.css`
2
+ background: #f4f6fb;
3
+
4
+ /* drop-shadow-sm */
5
+ box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
6
+ `,r=i.css`
7
+ ${o}
8
+
9
+ &:first-of-type {
10
+ background: linear-gradient(
11
+ to right,
12
+ transparent 0%,
13
+ #f4f6fb 40%,
14
+ #f4f6fb 100%
15
+ );
16
+
17
+ box-shadow: none;
18
+ }
19
+ `,n=t.styled.div`
20
+ display: flex;
21
+ gap: ${e=>(e==null?void 0:e.gap)||"1.25rem"};
22
+ width: ${e=>(e==null?void 0:e.width)||"100%"};
23
+ align-items: ${e=>(e==null?void 0:e.alignItems)||"normal"};
24
+ justify-content: ${e=>(e==null?void 0:e.justifyContent)||"normal"};
25
+
26
+ & > div {
27
+ &:first-of-type {
28
+ ${e=>(e==null?void 0:e.noGradient)&&o}
29
+ }
30
+ }
31
+ `,d=t.styled.div`
32
+ display: flex;
33
+ flex-direction: column;
34
+ gap: ${e=>(e==null?void 0:e.gap)||"1.25rem"};
35
+ width: ${e=>(e==null?void 0:e.width)||"100%"};
36
+ align-items: ${e=>(e==null?void 0:e.alignItems)||"normal"};
37
+ justify-content: ${e=>(e==null?void 0:e.justifyContent)||"normal"};
38
+ height: ${e=>(e==null?void 0:e.height)||"100%"};
39
+
40
+ & > div {
41
+ &:first-of-type {
42
+ ${e=>(e==null?void 0:e.noGradient)&&o}
43
+ }
44
+ }
45
+ `,a=t.styled.div`
46
+ border-radius: ${e=>(e==null?void 0:e.borderRadius)||"0.5rem"};
47
+ height: ${e=>(e==null?void 0:e.height)||"11rem"};
48
+ width: ${e=>(e==null?void 0:e.width)||"11rem"};
49
+ aspect-ratio: 1 / 1;
50
+
51
+ ${r}
52
+ `,l=t.styled.div`
53
+ border-radius: 999px;
54
+ height: ${e=>(e==null?void 0:e.height)||"11rem"};
55
+ width: ${e=>(e==null?void 0:e.width)||"11rem"};
56
+
57
+ ${r}
58
+ `,s=t.styled.div`
59
+ border-radius: ${e=>(e==null?void 0:e.borderRadius)||"0.5rem"};
60
+ width: ${e=>(e==null?void 0:e.width)||"100%"};
61
+ height: ${e=>(e==null?void 0:e.height)||"2rem"};
62
+
63
+ ${r}
64
+ `;exports.SkeletonCirclePlaceholder=l;exports.SkeletonColumnWrapper=d;exports.SkeletonLinePlaceholder=s;exports.SkeletonRowWrapper=n;exports.SkeletonSquarePlaceholder=a;exports.skeletonGradientBackground=r;
@@ -0,0 +1,74 @@
1
+ import { s as t } from "./emotion-styled.browser.esm-BNN1dTl3.js";
2
+ import { c as o } from "./emotion-react.browser.esm-DUVZ5oEL.js";
3
+ const i = o`
4
+ background: #f4f6fb;
5
+
6
+ /* drop-shadow-sm */
7
+ box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
8
+ `, r = o`
9
+ ${i}
10
+
11
+ &:first-of-type {
12
+ background: linear-gradient(
13
+ to right,
14
+ transparent 0%,
15
+ #f4f6fb 40%,
16
+ #f4f6fb 100%
17
+ );
18
+
19
+ box-shadow: none;
20
+ }
21
+ `, d = t.div`
22
+ display: flex;
23
+ gap: ${(e) => (e == null ? void 0 : e.gap) || "1.25rem"};
24
+ width: ${(e) => (e == null ? void 0 : e.width) || "100%"};
25
+ align-items: ${(e) => (e == null ? void 0 : e.alignItems) || "normal"};
26
+ justify-content: ${(e) => (e == null ? void 0 : e.justifyContent) || "normal"};
27
+
28
+ & > div {
29
+ &:first-of-type {
30
+ ${(e) => (e == null ? void 0 : e.noGradient) && i}
31
+ }
32
+ }
33
+ `, s = t.div`
34
+ display: flex;
35
+ flex-direction: column;
36
+ gap: ${(e) => (e == null ? void 0 : e.gap) || "1.25rem"};
37
+ width: ${(e) => (e == null ? void 0 : e.width) || "100%"};
38
+ align-items: ${(e) => (e == null ? void 0 : e.alignItems) || "normal"};
39
+ justify-content: ${(e) => (e == null ? void 0 : e.justifyContent) || "normal"};
40
+ height: ${(e) => (e == null ? void 0 : e.height) || "100%"};
41
+
42
+ & > div {
43
+ &:first-of-type {
44
+ ${(e) => (e == null ? void 0 : e.noGradient) && i}
45
+ }
46
+ }
47
+ `, h = t.div`
48
+ border-radius: ${(e) => (e == null ? void 0 : e.borderRadius) || "0.5rem"};
49
+ height: ${(e) => (e == null ? void 0 : e.height) || "11rem"};
50
+ width: ${(e) => (e == null ? void 0 : e.width) || "11rem"};
51
+ aspect-ratio: 1 / 1;
52
+
53
+ ${r}
54
+ `, l = t.div`
55
+ border-radius: 999px;
56
+ height: ${(e) => (e == null ? void 0 : e.height) || "11rem"};
57
+ width: ${(e) => (e == null ? void 0 : e.width) || "11rem"};
58
+
59
+ ${r}
60
+ `, f = t.div`
61
+ border-radius: ${(e) => (e == null ? void 0 : e.borderRadius) || "0.5rem"};
62
+ width: ${(e) => (e == null ? void 0 : e.width) || "100%"};
63
+ height: ${(e) => (e == null ? void 0 : e.height) || "2rem"};
64
+
65
+ ${r}
66
+ `;
67
+ export {
68
+ s as S,
69
+ d as a,
70
+ f as b,
71
+ h as c,
72
+ l as d,
73
+ r as s
74
+ };
@@ -1,6 +1,6 @@
1
1
  import { s as a } from "./emotion-styled.browser.esm-BNN1dTl3.js";
2
2
  import { M as t } from "./consts-BuFChS64.js";
3
- import { t as r } from "./utils-BdsZgOUE.js";
3
+ import { t as r } from "./utils-DHfRApMf.js";
4
4
  const o = a.div`
5
5
  display: flex;
6
6
  flex-direction: column;
@@ -10544,15 +10544,15 @@ export {
10544
10544
  n0 as l,
10545
10545
  p as m,
10546
10546
  N as n,
10547
- a0 as o,
10548
- t0 as p,
10549
- r0 as q,
10547
+ t0 as o,
10548
+ r0 as p,
10549
+ u0 as q,
10550
10550
  G as r,
10551
- u0 as s,
10551
+ g0 as s,
10552
10552
  z as t,
10553
10553
  _ as u,
10554
- g0 as v,
10555
- i0 as w,
10554
+ i0 as v,
10555
+ a0 as w,
10556
10556
  b0 as x,
10557
10557
  c0 as y,
10558
10558
  U as z
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lanaco/lnc-react-ui",
3
- "version": "4.0.170",
3
+ "version": "4.0.172",
4
4
  "description": "React component library",
5
5
  "type": "module",
6
6
  "keywords": [
@@ -1,52 +0,0 @@
1
- import { jsxs as s, jsx as r } from "react/jsx-runtime";
2
- import { forwardRef as d, useRef as f } from "react";
3
- import { W as b, T as x } from "./skeleton-CQPwIEP0.js";
4
- import { u as g } from "./useDetectMobile-Bkvj0VMa.js";
5
- import n from "./Button.js";
6
- import { P as h } from "./index-CF3HhgvN.js";
7
- const B = d((l, y) => {
8
- const { title: a, imageUrl: m, text: p, onCardClick: o, buttonText: t, metadata: e } = l, i = g(), c = f();
9
- return /* @__PURE__ */ s(
10
- b,
11
- {
12
- ref: c,
13
- className: "blog-card",
14
- "data-accessor": e == null ? void 0 : e.accessor,
15
- name: e == null ? void 0 : e.name,
16
- onClick: (u) => o(u, c),
17
- children: [
18
- /* @__PURE__ */ r(h, { src: m }),
19
- /* @__PURE__ */ s(x, { children: [
20
- /* @__PURE__ */ r("div", { className: "text-wr-title", children: a }),
21
- /* @__PURE__ */ r("div", { className: "text-wr", children: p }),
22
- i !== !0 && /* @__PURE__ */ r(
23
- n,
24
- {
25
- type: "button",
26
- btnType: "outline",
27
- size: "medium",
28
- color: "gray",
29
- onClick: o,
30
- children: t
31
- }
32
- )
33
- ] }),
34
- i === !0 && /* @__PURE__ */ r(
35
- n,
36
- {
37
- className: "action",
38
- type: "button",
39
- btnType: "outline",
40
- size: "medium",
41
- color: "gray",
42
- onClick: o,
43
- children: t
44
- }
45
- )
46
- ]
47
- }
48
- );
49
- });
50
- export {
51
- B
52
- };
@@ -1 +0,0 @@
1
- "use strict";const e=require("react/jsx-runtime"),i=require("react"),n=require("./skeleton-BdbB-LdT.cjs"),p=require("./useDetectMobile-zkbzoOGV.cjs"),l=require("./Button.cjs"),b=require("./index-BueKsXT8.cjs"),g=i.forwardRef((u,j)=>{const{title:a,imageUrl:d,text:x,onCardClick:t,buttonText:s,metadata:r}=u,c=p.useDetectMobile(),o=i.useRef();return e.jsxs(n.Wrapper,{ref:o,className:"blog-card","data-accessor":r==null?void 0:r.accessor,name:r==null?void 0:r.name,onClick:m=>t(m,o),children:[e.jsx(b.ProductImageWrapper,{src:d}),e.jsxs(n.TextWrapper,{children:[e.jsx("div",{className:"text-wr-title",children:a}),e.jsx("div",{className:"text-wr",children:x}),c!==!0&&e.jsx(l,{type:"button",btnType:"outline",size:"medium",color:"gray",onClick:t,children:s})]}),c===!0&&e.jsx(l,{className:"action",type:"button",btnType:"outline",size:"medium",color:"gray",onClick:t,children:s})]})});exports.BlogCardLarge=g;
@@ -1,97 +0,0 @@
1
- "use strict";const e=require("react/jsx-runtime"),m=require("react"),t=require("./emotion-styled.browser.esm-BtEseadx.cjs"),i=require("./consts-goSZX3xP.cjs"),r=require("./utils-Dl9xPH4c.cjs"),o=t.styled.div`
2
- display: flex;
3
- width: 100%;
4
- gap: 1.25rem;
5
- box-shadow: 0px 1px 3px 0px rgba(0, 0, 0, 0.1),
6
- 0px 1px 2px 0px rgba(0, 0, 0, 0.06);
7
- background-color: var(--white);
8
- border-radius: 0.75rem;
9
- border: 1px solid var(--gray-95008);
10
- overflow: hidden;
11
- max-height: 11.25rem;
12
- min-height: 11.25rem;
13
-
14
- &:hover {
15
- cursor: pointer;
16
- }
17
-
18
- & img {
19
- max-height: 11.25rem;
20
- min-height: 11.25rem;
21
- min-width: 11.25rem;
22
- max-width: 11.25rem;
23
- object-fit: cover;
24
- width: 100%;
25
- border-radius: 0.75rem 0 0 0.75rem;
26
- }
27
-
28
- & .skeleton-img {
29
- width: 100%;
30
- max-height: 11.25rem;
31
- min-height: 12.25rem;
32
- min-width: 11.25rem;
33
- max-width: 11.25rem;
34
- background-color: ${r.linearGradientAnimation("-90deg")};
35
- border-radius: 0.75rem 0 0 0.75rem;
36
- }
37
-
38
- @media (max-width: ${i.MOBILE_SIZE_PX+"px"}) {
39
- padding: 1rem;
40
- column-gap: 1.5rem;
41
- row-gap: 1rem;
42
- display: grid;
43
- grid-template-columns: repeat(2, auto);
44
- max-height: 100%;
45
- min-height: 100%;
46
- & .action {
47
- grid-column: 1 / 3;
48
- }
49
-
50
- & img,
51
- .skeleton-img {
52
- max-height: 7.75rem;
53
- min-height: 7.75rem;
54
- min-width: 7.75rem;
55
- max-width: 7.75rem;
56
- border-radius: 0.75rem;
57
- }
58
-
59
- & button {
60
- width: 100%;
61
- margin-top: auto;
62
- }
63
- }
64
- `,a=t.styled.div`
65
- padding: 1rem;
66
- display: flex;
67
- flex-direction: column;
68
- gap: 0.25rem;
69
- color: var(--gray-950, #14161a);
70
-
71
- & .text-wr-title {
72
- font-weight: 600;
73
- font-size: 1.25rem;
74
- }
75
-
76
- & .text-wr {
77
- font-weight: 400;
78
- font-size: 0.875rem;
79
- color: var(--gray-700, #4e555f);
80
- ${r.truncateTextInRows(3)}
81
- }
82
-
83
- & button {
84
- width: fit-content;
85
- margin-top: auto;
86
- }
87
-
88
- & .skeleton-title {
89
- height: 1.75rem;
90
- width: 80%;
91
- background-color: ${r.linearGradientAnimation("-90deg")};
92
- }
93
-
94
- @media (max-width: ${i.MOBILE_SIZE_PX+"px"}) {
95
- padding: 0;
96
- }
97
- `,n=m.forwardRef(({},d)=>e.jsxs(o,{className:"blog-card",children:[e.jsx("div",{className:"skeleton-img"}),e.jsx(a,{children:e.jsx("div",{className:"skeleton-title"})})]}));exports.BlogCardLargeSkeleton=n;exports.TextWrapper=a;exports.Wrapper=o;
@@ -1,101 +0,0 @@
1
- import { jsxs as m, jsx as e, Fragment as s } from "react/jsx-runtime";
2
- import { forwardRef as d, Suspense as h } from "react";
3
- import { s as g } from "./emotion-styled.browser.esm-BNN1dTl3.js";
4
- import { p as n, o as p } from "./utils-BdsZgOUE.js";
5
- import { M as f } from "./consts-BuFChS64.js";
6
- const c = g.div`
7
- display: flex;
8
- flex-direction: column;
9
- gap: 0;
10
- font-size: 0.875rem;
11
- font-weight: 500;
12
- color: var(--gray-950, #14161a);
13
- min-height: 12.25rem;
14
- max-height: 12.25rem;
15
- border-radius: 0.75rem;
16
- border: 1px solid var(--gray-95008, rgba(20, 22, 26, 0.08));
17
- background: var(--white, #fff);
18
- cursor: pointer;
19
-
20
- transition: var(--transition);
21
-
22
-
23
- /* drop-shadow-sm */
24
- box-shadow: 0px 1px 2px 0px rgba(0, 0, 0, 0.05);
25
- overflow: hidden;
26
-
27
- & .card-content {
28
- padding: 0.75rem;
29
- ${n(2)}
30
- }
31
-
32
- & .card-content-2 {
33
- ${n(2)}
34
- }
35
-
36
- & img {
37
- width: 100%;
38
- object-fit: cover;
39
- min-height: 8.25rem;
40
- max-height: 8.25rem;
41
- }
42
-
43
- & .skeleton-img {
44
- width: 100%;
45
- min-height: 8.25rem;
46
- max-height: 8.25rem;
47
- ${p("-90deg")}
48
- }
49
-
50
- @media (max-width: ${f + "px"}) {
51
- min-width: 8.75rem;
52
- max-width: 8.75rem;
53
-
54
- & .img,
55
- .skeleton-img {
56
- min-height: 5.375rem;
57
- max-height: 5.375rem;
58
- }
59
- }
60
- `, k = d((r, a) => {
61
- const { uuid: t, image: o, name: i, onSelectCard: l = () => {
62
- } } = r;
63
- return /* @__PURE__ */ m(
64
- c,
65
- {
66
- ref: a,
67
- className: "simple-category-card",
68
- onClick: () => l(t),
69
- children: [
70
- /* @__PURE__ */ e("img", { src: o }),
71
- /* @__PURE__ */ e("div", { className: "card-content", children: /* @__PURE__ */ e("div", { className: "card-content-2", children: i }) })
72
- ]
73
- }
74
- );
75
- }), x = d(({}, r) => /* @__PURE__ */ m(c, { className: "simple-category-card", children: [
76
- /* @__PURE__ */ e("div", { className: "skeleton-img" }),
77
- /* @__PURE__ */ e("div", { className: "card-content" })
78
- ] })), u = ({ limit: r = 12, isLoading: a = !1, keyPrefix: t }) => /* @__PURE__ */ e(s, { children: Array.from({ length: r }, (o, i) => /* @__PURE__ */ e(
79
- x,
80
- {
81
- isLoading: a
82
- },
83
- `${t}-skeleton-category-card-${i}`
84
- )) }), b = ({
85
- children: r,
86
- fallbackComponent: a = /* @__PURE__ */ e(s, {}),
87
- isLoading: t = !1,
88
- limit: o,
89
- keyPrefix: i
90
- }) => /* @__PURE__ */ e(h, { fallbackComponent: a, children: t === !0 ? /* @__PURE__ */ e(
91
- u,
92
- {
93
- isLoading: t,
94
- limit: o,
95
- keyPrefix: i
96
- }
97
- ) : r });
98
- export {
99
- k as C,
100
- b as S
101
- };
@@ -1,55 +0,0 @@
1
- "use strict";const e=require("react/jsx-runtime"),o=require("react"),d=require("./emotion-styled.browser.esm-BtEseadx.cjs"),s=require("./utils-Dl9xPH4c.cjs"),l=require("./consts-goSZX3xP.cjs"),c=d.styled.div`
2
- display: flex;
3
- flex-direction: column;
4
- gap: 0;
5
- font-size: 0.875rem;
6
- font-weight: 500;
7
- color: var(--gray-950, #14161a);
8
- min-height: 12.25rem;
9
- max-height: 12.25rem;
10
- border-radius: 0.75rem;
11
- border: 1px solid var(--gray-95008, rgba(20, 22, 26, 0.08));
12
- background: var(--white, #fff);
13
- cursor: pointer;
14
-
15
- transition: var(--transition);
16
-
17
-
18
- /* drop-shadow-sm */
19
- box-shadow: 0px 1px 2px 0px rgba(0, 0, 0, 0.05);
20
- overflow: hidden;
21
-
22
- & .card-content {
23
- padding: 0.75rem;
24
- ${s.truncateTextInRows(2)}
25
- }
26
-
27
- & .card-content-2 {
28
- ${s.truncateTextInRows(2)}
29
- }
30
-
31
- & img {
32
- width: 100%;
33
- object-fit: cover;
34
- min-height: 8.25rem;
35
- max-height: 8.25rem;
36
- }
37
-
38
- & .skeleton-img {
39
- width: 100%;
40
- min-height: 8.25rem;
41
- max-height: 8.25rem;
42
- ${s.linearGradientAnimation("-90deg")}
43
- }
44
-
45
- @media (max-width: ${l.MOBILE_SIZE_PX+"px"}) {
46
- min-width: 8.75rem;
47
- max-width: 8.75rem;
48
-
49
- & .img,
50
- .skeleton-img {
51
- min-height: 5.375rem;
52
- max-height: 5.375rem;
53
- }
54
- }
55
- `,g=o.forwardRef((r,a)=>{const{uuid:t,image:n,name:i,onSelectCard:m=()=>{}}=r;return e.jsxs(c,{ref:a,className:"simple-category-card",onClick:()=>m(t),children:[e.jsx("img",{src:n}),e.jsx("div",{className:"card-content",children:e.jsx("div",{className:"card-content-2",children:i})})]})}),h=o.forwardRef(({},r)=>e.jsxs(c,{className:"simple-category-card",children:[e.jsx("div",{className:"skeleton-img"}),e.jsx("div",{className:"card-content"})]})),x=({limit:r=12,isLoading:a=!1,keyPrefix:t})=>e.jsx(e.Fragment,{children:Array.from({length:r},(n,i)=>e.jsx(h,{isLoading:a},`${t}-skeleton-category-card-${i}`))}),u=({children:r,fallbackComponent:a=e.jsx(e.Fragment,{}),isLoading:t=!1,limit:n,keyPrefix:i})=>e.jsx(o.Suspense,{fallbackComponent:a,children:t===!0?e.jsx(x,{isLoading:t,limit:n,keyPrefix:i}):r});exports.CategorySimpleCard=g;exports.SuspenseSimpleCategoryCard=u;
@@ -1,26 +0,0 @@
1
- import { jsx as r, Fragment as l } from "react/jsx-runtime";
2
- import { Suspense as a } from "react";
3
- import { B as m } from "./skeleton-CQPwIEP0.js";
4
- const p = ({ limit: o = 2, isLoading: t = !1, keyPrefix: e }) => /* @__PURE__ */ r(l, { children: Array.from({ length: o }, (s, n) => /* @__PURE__ */ r(
5
- m,
6
- {
7
- isLoading: t
8
- },
9
- `${e}-skeleton-product-card-${n}`
10
- )) }), u = ({
11
- children: o,
12
- fallbackComponent: t = /* @__PURE__ */ r(l, {}),
13
- isLoading: e = !1,
14
- limit: s,
15
- keyPrefix: n
16
- }) => /* @__PURE__ */ r(a, { fallbackComponent: t, children: e === !0 ? /* @__PURE__ */ r(
17
- p,
18
- {
19
- isLoading: e,
20
- limit: s,
21
- keyPrefix: n
22
- }
23
- ) : o });
24
- export {
25
- u as S
26
- };
@@ -1 +0,0 @@
1
- "use strict";const e=require("react/jsx-runtime"),l=require("react"),u=require("./skeleton-BdbB-LdT.cjs"),c=({limit:s=2,isLoading:t=!1,keyPrefix:r})=>e.jsx(e.Fragment,{children:Array.from({length:s},(o,n)=>e.jsx(u.BlogCardLargeSkeleton,{isLoading:t},`${r}-skeleton-product-card-${n}`))}),a=({children:s,fallbackComponent:t=e.jsx(e.Fragment,{}),isLoading:r=!1,limit:o,keyPrefix:n})=>e.jsx(l.Suspense,{fallbackComponent:t,children:r===!0?e.jsx(c,{isLoading:r,limit:o,keyPrefix:n}):s});exports.SuspenseBlogLarge=a;