@lanaco/lnc-react-ui 4.0.23 → 4.0.26

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 (228) hide show
  1. package/dist/Accordion.cjs +1 -1
  2. package/dist/Accordion.js +2 -2
  3. package/dist/AccordionDetails.cjs +1 -1
  4. package/dist/AccordionDetails.js +1 -1
  5. package/dist/AccordionSummary.cjs +1 -1
  6. package/dist/AccordionSummary.js +2 -2
  7. package/dist/ActionsToolbar.cjs +1 -1
  8. package/dist/ActionsToolbar.js +2 -2
  9. package/dist/Alert.cjs +1 -1
  10. package/dist/Alert.js +2 -2
  11. package/dist/Avatar.cjs +1 -1
  12. package/dist/Avatar.js +2 -2
  13. package/dist/Badge.cjs +1 -1
  14. package/dist/Badge.js +2 -2
  15. package/dist/Breadcrumbs.cjs +1 -1
  16. package/dist/Breadcrumbs.js +2 -2
  17. package/dist/Button.cjs +1 -1
  18. package/dist/Button.js +2 -2
  19. package/dist/ButtonGroup.cjs +1 -1
  20. package/dist/ButtonGroup.js +2 -2
  21. package/dist/CheckBoxInput.cjs +1 -1
  22. package/dist/CheckBoxInput.js +2 -2
  23. package/dist/Chip.cjs +1 -1
  24. package/dist/Chip.js +2 -2
  25. package/dist/ColorInput.cjs +1 -1
  26. package/dist/ColorInput.js +2 -2
  27. package/dist/ConfirmationForm.cjs +1 -1
  28. package/dist/ConfirmationForm.js +2 -2
  29. package/dist/Content.cjs +1 -1
  30. package/dist/Content.js +1 -1
  31. package/dist/{CustomStyles-Dlqxic2X.cjs → CustomStyles-CBON9fD-.cjs} +1 -1
  32. package/dist/{CustomStyles-BUSJ8bZt.js → CustomStyles-DuADCM-0.js} +1 -1
  33. package/dist/DataView.cjs +1 -1
  34. package/dist/DataView.js +1 -1
  35. package/dist/DateInput.cjs +1 -1
  36. package/dist/DateInput.js +3 -3
  37. package/dist/DecimalInput.cjs +1 -1
  38. package/dist/DecimalInput.js +2 -2
  39. package/dist/DecimalInputV2.cjs +1 -1
  40. package/dist/DecimalInputV2.js +2 -2
  41. package/dist/DetailsView.cjs +1 -1
  42. package/dist/DetailsView.js +2 -2
  43. package/dist/DoubleRangeSlider.cjs +1 -1
  44. package/dist/DoubleRangeSlider.js +2 -2
  45. package/dist/DragAndDropFile.cjs +1 -1
  46. package/dist/DragAndDropFile.js +2 -2
  47. package/dist/DragDropFiles.cjs +1 -1
  48. package/dist/DragDropFiles.js +2 -2
  49. package/dist/Drawer.cjs +1 -1
  50. package/dist/Drawer.js +2 -2
  51. package/dist/Dropdown.cjs +1 -1
  52. package/dist/Dropdown.js +3 -3
  53. package/dist/DropdownItem.cjs +1 -1
  54. package/dist/DropdownItem.js +2 -2
  55. package/dist/DropdownLookup.cjs +1 -1
  56. package/dist/DropdownLookup.js +2 -2
  57. package/dist/DropdownMenu.cjs +1 -1
  58. package/dist/DropdownMenu.js +2 -2
  59. package/dist/EditableTable.cjs +1 -1
  60. package/dist/EditableTable.js +2 -2
  61. package/dist/FileInput.cjs +1 -1
  62. package/dist/FileInput.js +2 -2
  63. package/dist/FlexBox.cjs +1 -1
  64. package/dist/FlexBox.js +1 -1
  65. package/dist/FlexGrid.cjs +1 -1
  66. package/dist/FlexGrid.js +1 -1
  67. package/dist/FlexGridItem.cjs +1 -1
  68. package/dist/FlexGridItem.js +2 -2
  69. package/dist/Footer.cjs +1 -1
  70. package/dist/Footer.js +1 -1
  71. package/dist/FormField.cjs +1 -1
  72. package/dist/FormField.js +2 -2
  73. package/dist/FormView.cjs +1 -1
  74. package/dist/FormView.js +2 -2
  75. package/dist/Grid.cjs +1 -1
  76. package/dist/Grid.js +1 -1
  77. package/dist/GridItem.cjs +1 -1
  78. package/dist/GridItem.js +1 -1
  79. package/dist/Header.cjs +1 -1
  80. package/dist/Header.js +1 -1
  81. package/dist/Icon.cjs +1 -1
  82. package/dist/Icon.js +2 -2
  83. package/dist/IconButton.cjs +1 -1
  84. package/dist/IconButton.js +2 -2
  85. package/dist/Kanban.cjs +2 -2
  86. package/dist/Kanban.js +85 -87
  87. package/dist/KanbanActionsToolbar.cjs +1 -1
  88. package/dist/KanbanActionsToolbar.js +2 -2
  89. package/dist/{KanbanCard-CHZ_C9kk.js → KanbanCard-BDyFaKYd.js} +2 -2
  90. package/dist/{KanbanCard-DV3VnSUi.cjs → KanbanCard-CofqdTrO.cjs} +1 -1
  91. package/dist/KanbanCard.cjs +1 -1
  92. package/dist/KanbanCard.js +2 -2
  93. package/dist/KanbanFooter.cjs +1 -1
  94. package/dist/KanbanFooter.js +1 -1
  95. package/dist/KanbanHeader.cjs +1 -1
  96. package/dist/KanbanHeader.js +1 -1
  97. package/dist/KanbanView.cjs +1 -1
  98. package/dist/KanbanView.js +3 -3
  99. package/dist/Link.cjs +1 -1
  100. package/dist/Link.js +2 -2
  101. package/dist/MenuItem.cjs +1 -1
  102. package/dist/MenuItem.js +2 -2
  103. package/dist/Modal.cjs +1 -1
  104. package/dist/Modal.js +2 -2
  105. package/dist/MultiSelectDropdown.cjs +1 -1
  106. package/dist/MultiSelectDropdown.js +2 -2
  107. package/dist/MultiSelectDropdownLookup.cjs +1 -1
  108. package/dist/MultiSelectDropdownLookup.js +2 -2
  109. package/dist/NestedDropdownItem.cjs +1 -1
  110. package/dist/NestedDropdownItem.js +2 -2
  111. package/dist/NestedMenuItem.cjs +1 -1
  112. package/dist/NestedMenuItem.js +2 -2
  113. package/dist/NotificationContainer.cjs +1 -1
  114. package/dist/NotificationContainer.js +2 -2
  115. package/dist/NotificationMessage.cjs +1 -1
  116. package/dist/NotificationMessage.js +2 -2
  117. package/dist/NumberInput.cjs +1 -1
  118. package/dist/NumberInput.js +2 -2
  119. package/dist/PageLayout.cjs +1 -1
  120. package/dist/PageLayout.js +1 -1
  121. package/dist/Pagination.cjs +1 -1
  122. package/dist/Pagination.js +1 -1
  123. package/dist/PasswordInput.cjs +1 -1
  124. package/dist/PasswordInput.js +2 -2
  125. package/dist/Popover.cjs +1 -1
  126. package/dist/Popover.js +1 -1
  127. package/dist/PopoverContent.cjs +1 -1
  128. package/dist/PopoverContent.js +2 -2
  129. package/dist/PopoverTrigger.cjs +1 -1
  130. package/dist/PopoverTrigger.js +1 -1
  131. package/dist/ProgressBar.cjs +1 -1
  132. package/dist/ProgressBar.js +2 -2
  133. package/dist/RadioGroup.cjs +1 -1
  134. package/dist/RadioGroup.js +1 -1
  135. package/dist/RadioInput.cjs +1 -1
  136. package/dist/RadioInput.js +2 -2
  137. package/dist/RangeSlider.cjs +1 -1
  138. package/dist/RangeSlider.js +2 -2
  139. package/dist/SearchBar.cjs +1 -1
  140. package/dist/SearchBar.js +1 -1
  141. package/dist/Separator.cjs +1 -1
  142. package/dist/Separator.js +2 -2
  143. package/dist/Sidebar.cjs +1 -1
  144. package/dist/Sidebar.js +2 -2
  145. package/dist/Spinner.cjs +1 -1
  146. package/dist/Spinner.js +2 -2
  147. package/dist/Surface.cjs +1 -1
  148. package/dist/Surface.js +2 -2
  149. package/dist/SwipeableDrawer.cjs +1 -1
  150. package/dist/SwipeableDrawer.js +2 -2
  151. package/dist/TabItem.cjs +1 -1
  152. package/dist/TabItem.js +2 -2
  153. package/dist/Table.cjs +1 -1
  154. package/dist/Table.js +2 -2
  155. package/dist/TableView.cjs +1 -1
  156. package/dist/TableView.js +2 -2
  157. package/dist/Tabs.cjs +1 -1
  158. package/dist/Tabs.js +1 -1
  159. package/dist/TextAreaInput.cjs +1 -1
  160. package/dist/TextAreaInput.js +2 -2
  161. package/dist/TextInput.cjs +1 -1
  162. package/dist/TextInput.js +2 -2
  163. package/dist/ThemeProvider.cjs +1 -1
  164. package/dist/ThemeProvider.js +26 -26
  165. package/dist/TimeInput.cjs +1 -1
  166. package/dist/TimeInput.js +2 -2
  167. package/dist/Toggle.cjs +1 -1
  168. package/dist/Toggle.js +2 -2
  169. package/dist/TreeMenu.cjs +1 -1
  170. package/dist/TreeMenu.js +1 -1
  171. package/dist/TreeMenuSeparator.cjs +1 -1
  172. package/dist/TreeMenuSeparator.js +2 -2
  173. package/dist/UploadedFile.cjs +1 -1
  174. package/dist/UploadedFile.js +2 -2
  175. package/dist/consts-DNVz1x1I.js +4 -0
  176. package/dist/consts-dNz9tpt4.cjs +1 -0
  177. package/dist/{index-BIlhCoy2.cjs → index-BPVoEhTF.cjs} +5 -5
  178. package/dist/index-BlV3tdJ8.cjs +87 -0
  179. package/dist/{index-Cu0xwYjD.js → index-Bq3leL2e.js} +5 -4
  180. package/dist/index-C2M7QHPq.cjs +40 -0
  181. package/dist/index-DGl-lSfF.js +122 -0
  182. package/dist/index-DcYg32le.js +69 -0
  183. package/dist/index-LdP7U1Yl.cjs +114 -0
  184. package/dist/{index-BYnWp42a.js → index-S5Cd7WrG.js} +74 -73
  185. package/dist/index-gY9e_8LL.cjs +5 -0
  186. package/dist/index-jVpIwR2G.js +159 -0
  187. package/dist/index.cjs +1 -1
  188. package/dist/index.js +156 -128
  189. package/dist/index10.cjs +90 -0
  190. package/dist/index10.js +152 -0
  191. package/dist/index11.cjs +85 -0
  192. package/dist/index11.js +125 -0
  193. package/dist/index12.cjs +194 -0
  194. package/dist/index12.js +312 -0
  195. package/dist/index13.cjs +98 -0
  196. package/dist/index13.js +221 -0
  197. package/dist/index14.cjs +161 -0
  198. package/dist/index14.js +254 -0
  199. package/dist/index15.cjs +135 -0
  200. package/dist/index15.js +1534 -0
  201. package/dist/index2.cjs +25 -0
  202. package/dist/index2.js +99 -0
  203. package/dist/index3.cjs +31 -0
  204. package/dist/index3.js +94 -0
  205. package/dist/index4.cjs +68 -0
  206. package/dist/index4.js +135 -0
  207. package/dist/index5.cjs +48 -0
  208. package/dist/index5.js +100 -0
  209. package/dist/index6.cjs +81 -0
  210. package/dist/index6.js +144 -0
  211. package/dist/index7.cjs +65 -0
  212. package/dist/index7.js +104 -0
  213. package/dist/index8.cjs +82 -0
  214. package/dist/index8.js +138 -0
  215. package/dist/index9.cjs +150 -0
  216. package/dist/index9.js +222 -0
  217. package/dist/style-C3OB0uad.cjs +76 -0
  218. package/dist/style-Ch-xOasu.js +84 -0
  219. package/dist/style.css +1 -1
  220. package/dist/useDetectMobile-BookNOsk.js +13 -0
  221. package/dist/useDetectMobile-rBe0FiP2.cjs +1 -0
  222. package/dist/useEffectOnce-DFrzfNzT.cjs +1 -0
  223. package/dist/useEffectOnce-guOKBPuL.js +7 -0
  224. package/dist/{utils-DTAPpJXU.cjs → utils-CE6bljYe.cjs} +43 -5
  225. package/dist/{utils-C52T57HO.js → utils-DtEdJZWa.js} +121 -32
  226. package/package.json +16 -2
  227. package/vite.config.js +60 -1
  228. package/dist/index-CSXL784P.cjs +0 -5
@@ -0,0 +1,125 @@
1
+ import { jsx as a, jsxs as m } from "react/jsx-runtime";
2
+ import { forwardRef as o } from "react";
3
+ import { m as c, l as g } from "./utils-DtEdJZWa.js";
4
+ import { n as d } from "./emotion-styled.browser.esm-BiK8DcgW.js";
5
+ import { M as l } from "./consts-DNVz1x1I.js";
6
+ const _ = d.div`
7
+ width: 7.5rem;
8
+ height: auto;
9
+ max-height: 7.5rem;
10
+
11
+ & .wrapper__image {
12
+ width: 7.5rem;
13
+ height: auto;
14
+ }
15
+
16
+ @media (max-width: ${l + "px"}) {
17
+ width: 4.5rem;
18
+ height: auto;
19
+ max-height: 4.5rem;
20
+
21
+ & .wrapper__image {
22
+ width: 4.5rem;
23
+ height: auto;
24
+ }
25
+ }
26
+ `, s = d.div`
27
+ width: 7.5rem;
28
+ height: 7.5rem;
29
+ background: ${c("-90deg")};
30
+
31
+ @media (max-width: ${l + "px"}) {
32
+ width: 4.5rem;
33
+ height: 4.5rem;
34
+ }
35
+ `, w = o(
36
+ ({ imageComponent: t, image: n, onSelectCard: e }, i) => /* @__PURE__ */ a(_, { children: g(t) ? t : /* @__PURE__ */ a(
37
+ "img",
38
+ {
39
+ src: n,
40
+ className: "wrapper__image",
41
+ onSelectCard: e
42
+ }
43
+ ) })
44
+ ), f = o(({}, t) => /* @__PURE__ */ a(s, {})), x = d.div`
45
+ display: flex;
46
+ flex-direction: column;
47
+ align-items: flex-start;
48
+ gap: 2rem;
49
+
50
+ & .wrapper__heading {
51
+ display: flex;
52
+ flex-direction: column;
53
+ gap: 1rem;
54
+ text-align: center;
55
+
56
+ & .wrapper__title {
57
+ color: var(--gray-950, #14161a);
58
+ text-align: center;
59
+ font-size: 1.5rem;
60
+ font-style: normal;
61
+ font-weight: 600;
62
+ line-height: 2rem;
63
+ letter-spacing: -0.47px;
64
+ }
65
+
66
+ & .wrapper__subtitle {
67
+ color: var(---gray-600, #676e79);
68
+ font-size: 0.875rem;
69
+ font-style: normal;
70
+ font-weight: 400;
71
+ line-height: 1.25rem;
72
+ letter-spacing: 0.25px;
73
+ }
74
+ }
75
+
76
+ & .wrapper__content {
77
+ display: flex;
78
+ justify-content: center;
79
+ align-items: center;
80
+ gap: 3rem;
81
+ align-self: stretch;
82
+
83
+ & .wrapper__item {
84
+ max-width: 7.5rem;
85
+ }
86
+ }
87
+
88
+ @media (max-width: ${l + "px"}) {
89
+ & .wrapper__content {
90
+ align-content: center;
91
+ gap: 1rem;
92
+ flex-wrap: wrap;
93
+
94
+ & .wrapper__item {
95
+ max-width: 4 0.5rem;
96
+ }
97
+ }
98
+ }
99
+ `, k = o(
100
+ ({ title: t, subtitle: n, items: e = [], onSelectCard: i = () => {
101
+ } }, u) => {
102
+ var h;
103
+ return /* @__PURE__ */ a(x, { children: /* @__PURE__ */ m("div", { className: "wrapper__heading", children: [
104
+ t && /* @__PURE__ */ a("div", { className: "wrapper__title", children: t }),
105
+ n && /* @__PURE__ */ a("div", { className: "wrapper__subtitle", children: n }),
106
+ /* @__PURE__ */ a("div", { className: "wrapper__content", children: e && (e == null ? void 0 : e.length) > 0 ? e == null ? void 0 : e.map((r, p) => /* @__PURE__ */ a(
107
+ w,
108
+ {
109
+ image: r == null ? void 0 : r.image,
110
+ imageComponent: r == null ? void 0 : r.imageComponent,
111
+ onSelectCard: () => i == null ? void 0 : i(r == null ? void 0 : r.uuid),
112
+ className: "wrapper__item"
113
+ },
114
+ `brand-hit-card__${p + 1}`
115
+ )) : (h = Array.from("12345")) == null ? void 0 : h.map((r, p) => /* @__PURE__ */ a(
116
+ f,
117
+ {},
118
+ `brand-hit-card-skeleton__${p + 1}`
119
+ )) })
120
+ ] }) });
121
+ }
122
+ );
123
+ export {
124
+ k as default
125
+ };
@@ -0,0 +1,194 @@
1
+ "use strict";const r=require("react/jsx-runtime"),l=require("react"),p=require("./emotion-styled.browser.esm-Cbp_XsK4.cjs"),x=require("./consts-dNz9tpt4.cjs"),o=require("./utils-CE6bljYe.cjs"),$=require("./Icon.cjs"),N=require("./emotion-element-5486c51c.browser.esm-QRQ5FSjv.cjs"),k=require("./useEffectOnce-DFrzfNzT.cjs"),I=p.newStyled.div`
2
+ display: flex;
3
+ width: 100%;
4
+ height: fit-content;
5
+ flex-direction: column;
6
+ align-items: flex-start;
7
+ flex-shrink: 0;
8
+ align-self: stretch;
9
+ border-radius: 0.75rem;
10
+ border: 1px solid var(--neutral-9508, rgba(20, 22, 26, 0.08));
11
+ background: var(--Lanaco-Gray-white, #fff);
12
+
13
+ /* drop-shadow-sm */
14
+ box-shadow: 0px 1px 2px 0px rgba(0, 0, 0, 0.05);
15
+
16
+ & .wrapper__image {
17
+ width: 100%;
18
+ height: auto;
19
+ border-radius: 0.75rem 0.75rem 0 0;
20
+ }
21
+
22
+ & .wrapper__content {
23
+ display: flex;
24
+ padding: 0.75rem;
25
+ flex-direction: column;
26
+ align-items: flex-start;
27
+ gap: 0.25rem;
28
+ align-self: stretch;
29
+
30
+ & .wrapper__title {
31
+ color: var(--gray-950);
32
+ font-size: 1rem;
33
+ font-style: normal;
34
+ font-weight: 500;
35
+ line-height: 1.5rem;
36
+ ${o.truncateTextInRows(2)}
37
+ }
38
+
39
+ & .wrapper__description {
40
+ color: var(--gray-600);
41
+ font-size: 0.75rem;
42
+ font-style: normal;
43
+ font-weight: 400;
44
+ line-height: 1rem;
45
+ letter-spacing: 0.025rem;
46
+ ${o.truncateTextInRows(2)}
47
+ }
48
+ }
49
+ `,E=p.newStyled.div`
50
+ width: 100%;
51
+ height: 11.625rem;
52
+ border-radius: 0.75rem;
53
+ background: ${o.linearGradientAnimation("-90deg")};
54
+ `,R=p.newStyled.div`
55
+ display: flex;
56
+ flex-direction: column;
57
+ align-items: center;
58
+ gap: 0.75rem;
59
+
60
+ & .wrapper__icon {
61
+ display: flex;
62
+ width: 2.75rem;
63
+ height: 2.75rem;
64
+ padding: 0.5rem;
65
+ align-items: center;
66
+ font-size: 1.75rem;
67
+ color: var(--gray-950, #14161a);
68
+ background: var(--neutral-9504, rgba(20, 22, 26, 0.04));
69
+ border-radius: 999px;
70
+
71
+ & i {
72
+ width: auto;
73
+ }
74
+ }
75
+
76
+ & .wrapper__text {
77
+ color: var(--gray-950, #14161a);
78
+ text-align: center;
79
+ font-size: 1rem;
80
+ font-style: normal;
81
+ font-weight: 400;
82
+ line-height: 1.5rem;
83
+ }
84
+
85
+ &.active {
86
+ background: var(--gray-950, #14161a);
87
+
88
+ & .wrapper__icon {
89
+ color: var(--white, #fff);
90
+ }
91
+ }
92
+
93
+ @media (max-width: ${x.MOBILE_SIZE_PX+"px"}) {
94
+ flex-direction: row;
95
+ align-items: center;
96
+ gap: 0.25rem;
97
+ border-radius: 999px;
98
+ width: 100%;
99
+ background: var(--neutral-9504, rgba(20, 22, 26, 0.04));
100
+ padding: 0 0.75rem;
101
+
102
+ & .wrapper__icon {
103
+ display: flex;
104
+ width: 1.25rem;
105
+ width: 1.25rem;
106
+ padding: 0;
107
+ align-items: center;
108
+ font-size: 1.25rem;
109
+ color: var(--gray-950, #14161a);
110
+ background: transparent;
111
+ border-radius: 0;
112
+ }
113
+
114
+ & .wrapper__text {
115
+ font-size: 0.875rem;
116
+ line-height: 1.25rem;
117
+ white-space: nowrap;
118
+ }
119
+ }
120
+ `,q=p.newStyled.div`
121
+ width: 7.5rem;
122
+ width: 7.5rem;
123
+ border-radius: 999px;
124
+ background: ${o.linearGradientAnimation("-90deg")};
125
+
126
+ @media (max-width: ${x.MOBILE_SIZE_PX+"px"}) {
127
+ width: 7.5rem;
128
+ height: 2.5rem;
129
+ }
130
+ `,z=l.forwardRef(({},i)=>r.jsx(q,{})),M=l.forwardRef(({text:i,isActive:a,icon:t,onSelectCard:n=()=>{}},m)=>r.jsxs(R,{className:a?"active":"",onClick:n,children:[r.jsx($,{icon:t,className:"wrapper__icon"}),r.jsx("div",{className:"wrapper__text",children:i})]})),O=l.forwardRef(({image:i,imageComponent:a,title:t,description:n,className:m,onSelectCard:d=()=>{}},g)=>{const{theme:c}=N.useTheme();return r.jsxs(I,{theme:c,className:m,onClick:d,children:[o.isDefined(a)?a:r.jsx("img",{src:i,className:"wrapper__image"}),r.jsxs("div",{className:"wrapper__content",children:[t&&r.jsx("div",{className:"wrapper__title",children:t}),n&&r.jsx("div",{className:"wrapper__description",children:n})]})]})}),S=l.forwardRef(({},i)=>r.jsxs(E,{children:[r.jsx("div",{className:"wrapper__image"}),r.jsxs("div",{className:"wrapper__content",children:[r.jsx("div",{className:"wrapper__title"}),r.jsx("div",{className:"wrapper__description"})]})]})),C=p.newStyled.div`
131
+ display: flex;
132
+ flex-direction: column;
133
+ align-items: center;
134
+ gap: 1.5rem;
135
+
136
+ & .wrapper__heading {
137
+ display: flex;
138
+ flex-direction: column;
139
+ gap: 1rem;
140
+ text-align: center;
141
+
142
+ & .wrapper__title {
143
+ color: var(--gray-950, #14161a);
144
+ text-align: center;
145
+ font-size: 1.5rem;
146
+ font-style: normal;
147
+ font-weight: 600;
148
+ line-height: 2rem;
149
+ letter-spacing: -0.47px;
150
+ }
151
+
152
+ & .wrapper__subtitle {
153
+ color: var(---gray-600, #676e79);
154
+ font-size: 0.875rem;
155
+ font-style: normal;
156
+ font-weight: 400;
157
+ line-height: 1.25rem;
158
+ letter-spacing: 0.25px;
159
+ }
160
+ }
161
+
162
+ & .wrapper__tags {
163
+ display: grid;
164
+ grid-template-columns: ${i=>`repeat(${i==null?void 0:i.limitTags}, minmax(0, 1fr))`};
165
+ justify-content: center;
166
+ align-items: center;
167
+ gap: 0.75rem;
168
+ }
169
+
170
+ & .wrapper__cards {
171
+ display: grid;
172
+ grid-template-columns: ${i=>`repeat(${i==null?void 0:i.limitCards}, minmax(0, 1fr))`};
173
+ grid-auto-rows: 0.625rem;
174
+ gap: 0.625rem;
175
+ width: 100%;
176
+
177
+ & .wrapper__card {
178
+ overflow: hidden;
179
+ }
180
+ }
181
+
182
+ @media (max-width: ${x.MOBILE_SIZE_PX+"px"}) {
183
+ & .wrapper__tags {
184
+ display: flex;
185
+ overflow-x: scroll;
186
+ justify-content: flex-start;
187
+ width: 100%;
188
+ }
189
+
190
+ & .wrapper__cards {
191
+ grid-template-columns: ${i=>`repeat(${i==null?void 0:i.limitCardsForMobile}, minmax(0, 1fr))`};
192
+ }
193
+ }
194
+ `,F=l.forwardRef(({title:i,subtitle:a,tags:t=[],cards:n=[],limitTags:m=5,limitTagsForMobile:d=5,limitCards:g=3,limitCardsForMobile:c=2,onSelectTag:_=()=>{},onSelectCard:f=()=>{}},L)=>{var u,y;const w=e=>{_==null||_(e==null?void 0:e.uuid)},h=e=>{f==null||f(e==null?void 0:e.uuid)};return k.useEffectOnce(()=>{const e=()=>{document.querySelector(".wrapper__cards").querySelectorAll(".wrapper__card").forEach(v=>{const j=v.getBoundingClientRect().height,b=Math.ceil((j+10)/20);v.style.gridRowEnd=`span ${b}`})};return e(),window.addEventListener("resize",e),()=>{window.removeEventListener("resize",e)}}),r.jsxs(C,{limitTags:m,limitTagsForMobile:d,limitCards:g,limitCardsForMobile:c,children:[r.jsxs("div",{className:"wrapper__heading",children:[i&&r.jsx("div",{className:"wrapper__title",children:i}),a&&r.jsx("div",{className:"wrapper__subtitle",children:a})]}),r.jsx("div",{className:"wrapper__tags",children:t&&(t==null?void 0:t.length)>0?t==null?void 0:t.map((e,s)=>r.jsx(M,{icon:e==null?void 0:e.icon,text:e==null?void 0:e.text,onSelectCard:()=>w==null?void 0:w(e)},`field-of-interests-masonry-tag__${s+1}`)):(u=Array.from("12345"))==null?void 0:u.map((e,s)=>r.jsx(z,{},`field-of-interests-masonry-tag-skeleton__${s+1}`))}),r.jsx("div",{className:"wrapper__cards",children:n&&(n==null?void 0:n.length)>0?n==null?void 0:n.map((e,s)=>r.jsx(O,{image:e==null?void 0:e.image,imageComponent:e==null?void 0:e.imageComponent,title:e==null?void 0:e.title,description:e==null?void 0:e.description,onSelectCard:()=>h==null?void 0:h(e==null?void 0:e.uuid),className:"wrapper__card"},`field-of-interests-with-tags-card__${s+1}`)):(y=Array.from("12345"))==null?void 0:y.map((e,s)=>r.jsx(S,{},`field-of-interests-with-tags-card-skeleton__${s+1}`))})]})});module.exports=F;
@@ -0,0 +1,312 @@
1
+ import { jsx as i, jsxs as s } from "react/jsx-runtime";
2
+ import { forwardRef as l } from "react";
3
+ import { n as p } from "./emotion-styled.browser.esm-BiK8DcgW.js";
4
+ import { M as g } from "./consts-DNVz1x1I.js";
5
+ import { t as b, m as $, l as z } from "./utils-DtEdJZWa.js";
6
+ import I from "./Icon.js";
7
+ import { u as M } from "./emotion-element-5486c51c.browser.esm-Bb4VkP8U.js";
8
+ import { u as E } from "./useEffectOnce-guOKBPuL.js";
9
+ const O = p.div`
10
+ display: flex;
11
+ width: 100%;
12
+ height: fit-content;
13
+ flex-direction: column;
14
+ align-items: flex-start;
15
+ flex-shrink: 0;
16
+ align-self: stretch;
17
+ border-radius: 0.75rem;
18
+ border: 1px solid var(--neutral-9508, rgba(20, 22, 26, 0.08));
19
+ background: var(--Lanaco-Gray-white, #fff);
20
+
21
+ /* drop-shadow-sm */
22
+ box-shadow: 0px 1px 2px 0px rgba(0, 0, 0, 0.05);
23
+
24
+ & .wrapper__image {
25
+ width: 100%;
26
+ height: auto;
27
+ border-radius: 0.75rem 0.75rem 0 0;
28
+ }
29
+
30
+ & .wrapper__content {
31
+ display: flex;
32
+ padding: 0.75rem;
33
+ flex-direction: column;
34
+ align-items: flex-start;
35
+ gap: 0.25rem;
36
+ align-self: stretch;
37
+
38
+ & .wrapper__title {
39
+ color: var(--gray-950);
40
+ font-size: 1rem;
41
+ font-style: normal;
42
+ font-weight: 500;
43
+ line-height: 1.5rem;
44
+ ${b(2)}
45
+ }
46
+
47
+ & .wrapper__description {
48
+ color: var(--gray-600);
49
+ font-size: 0.75rem;
50
+ font-style: normal;
51
+ font-weight: 400;
52
+ line-height: 1rem;
53
+ letter-spacing: 0.025rem;
54
+ ${b(2)}
55
+ }
56
+ }
57
+ `, C = p.div`
58
+ width: 100%;
59
+ height: 11.625rem;
60
+ border-radius: 0.75rem;
61
+ background: ${$("-90deg")};
62
+ `, F = p.div`
63
+ display: flex;
64
+ flex-direction: column;
65
+ align-items: center;
66
+ gap: 0.75rem;
67
+
68
+ & .wrapper__icon {
69
+ display: flex;
70
+ width: 2.75rem;
71
+ height: 2.75rem;
72
+ padding: 0.5rem;
73
+ align-items: center;
74
+ font-size: 1.75rem;
75
+ color: var(--gray-950, #14161a);
76
+ background: var(--neutral-9504, rgba(20, 22, 26, 0.04));
77
+ border-radius: 999px;
78
+
79
+ & i {
80
+ width: auto;
81
+ }
82
+ }
83
+
84
+ & .wrapper__text {
85
+ color: var(--gray-950, #14161a);
86
+ text-align: center;
87
+ font-size: 1rem;
88
+ font-style: normal;
89
+ font-weight: 400;
90
+ line-height: 1.5rem;
91
+ }
92
+
93
+ &.active {
94
+ background: var(--gray-950, #14161a);
95
+
96
+ & .wrapper__icon {
97
+ color: var(--white, #fff);
98
+ }
99
+ }
100
+
101
+ @media (max-width: ${g + "px"}) {
102
+ flex-direction: row;
103
+ align-items: center;
104
+ gap: 0.25rem;
105
+ border-radius: 999px;
106
+ width: 100%;
107
+ background: var(--neutral-9504, rgba(20, 22, 26, 0.04));
108
+ padding: 0 0.75rem;
109
+
110
+ & .wrapper__icon {
111
+ display: flex;
112
+ width: 1.25rem;
113
+ width: 1.25rem;
114
+ padding: 0;
115
+ align-items: center;
116
+ font-size: 1.25rem;
117
+ color: var(--gray-950, #14161a);
118
+ background: transparent;
119
+ border-radius: 0;
120
+ }
121
+
122
+ & .wrapper__text {
123
+ font-size: 0.875rem;
124
+ line-height: 1.25rem;
125
+ white-space: nowrap;
126
+ }
127
+ }
128
+ `, W = p.div`
129
+ width: 7.5rem;
130
+ width: 7.5rem;
131
+ border-radius: 999px;
132
+ background: ${$("-90deg")};
133
+
134
+ @media (max-width: ${g + "px"}) {
135
+ width: 7.5rem;
136
+ height: 2.5rem;
137
+ }
138
+ `, j = l(({}, r) => /* @__PURE__ */ i(W, {})), A = l(
139
+ ({ text: r, isActive: o, icon: t, onSelectCard: n = () => {
140
+ } }, m) => /* @__PURE__ */ s(F, { className: o ? "active" : "", onClick: n, children: [
141
+ /* @__PURE__ */ i(I, { icon: t, className: "wrapper__icon" }),
142
+ /* @__PURE__ */ i("div", { className: "wrapper__text", children: r })
143
+ ] })
144
+ ), L = l(
145
+ ({
146
+ image: r,
147
+ imageComponent: o,
148
+ title: t,
149
+ description: n,
150
+ className: m,
151
+ onSelectCard: d = () => {
152
+ }
153
+ }, u) => {
154
+ const { theme: c } = M();
155
+ return /* @__PURE__ */ s(O, { theme: c, className: m, onClick: d, children: [
156
+ z(o) ? o : /* @__PURE__ */ i("img", { src: r, className: "wrapper__image" }),
157
+ /* @__PURE__ */ s("div", { className: "wrapper__content", children: [
158
+ t && /* @__PURE__ */ i("div", { className: "wrapper__title", children: t }),
159
+ n && /* @__PURE__ */ i("div", { className: "wrapper__description", children: n })
160
+ ] })
161
+ ] });
162
+ }
163
+ ), R = l(({}, r) => /* @__PURE__ */ s(C, { children: [
164
+ /* @__PURE__ */ i("div", { className: "wrapper__image" }),
165
+ /* @__PURE__ */ s("div", { className: "wrapper__content", children: [
166
+ /* @__PURE__ */ i("div", { className: "wrapper__title" }),
167
+ /* @__PURE__ */ i("div", { className: "wrapper__description" })
168
+ ] })
169
+ ] })), T = p.div`
170
+ display: flex;
171
+ flex-direction: column;
172
+ align-items: center;
173
+ gap: 1.5rem;
174
+
175
+ & .wrapper__heading {
176
+ display: flex;
177
+ flex-direction: column;
178
+ gap: 1rem;
179
+ text-align: center;
180
+
181
+ & .wrapper__title {
182
+ color: var(--gray-950, #14161a);
183
+ text-align: center;
184
+ font-size: 1.5rem;
185
+ font-style: normal;
186
+ font-weight: 600;
187
+ line-height: 2rem;
188
+ letter-spacing: -0.47px;
189
+ }
190
+
191
+ & .wrapper__subtitle {
192
+ color: var(---gray-600, #676e79);
193
+ font-size: 0.875rem;
194
+ font-style: normal;
195
+ font-weight: 400;
196
+ line-height: 1.25rem;
197
+ letter-spacing: 0.25px;
198
+ }
199
+ }
200
+
201
+ & .wrapper__tags {
202
+ display: grid;
203
+ grid-template-columns: ${(r) => `repeat(${r == null ? void 0 : r.limitTags}, minmax(0, 1fr))`};
204
+ justify-content: center;
205
+ align-items: center;
206
+ gap: 0.75rem;
207
+ }
208
+
209
+ & .wrapper__cards {
210
+ display: grid;
211
+ grid-template-columns: ${(r) => `repeat(${r == null ? void 0 : r.limitCards}, minmax(0, 1fr))`};
212
+ grid-auto-rows: 0.625rem;
213
+ gap: 0.625rem;
214
+ width: 100%;
215
+
216
+ & .wrapper__card {
217
+ overflow: hidden;
218
+ }
219
+ }
220
+
221
+ @media (max-width: ${g + "px"}) {
222
+ & .wrapper__tags {
223
+ display: flex;
224
+ overflow-x: scroll;
225
+ justify-content: flex-start;
226
+ width: 100%;
227
+ }
228
+
229
+ & .wrapper__cards {
230
+ grid-template-columns: ${(r) => `repeat(${r == null ? void 0 : r.limitCardsForMobile}, minmax(0, 1fr))`};
231
+ }
232
+ }
233
+ `, K = l(
234
+ ({
235
+ title: r,
236
+ subtitle: o,
237
+ tags: t = [],
238
+ cards: n = [],
239
+ limitTags: m = 5,
240
+ limitTagsForMobile: d = 5,
241
+ limitCards: u = 3,
242
+ limitCardsForMobile: c = 2,
243
+ onSelectTag: f = () => {
244
+ },
245
+ onSelectCard: _ = () => {
246
+ }
247
+ }, q) => {
248
+ var x, y;
249
+ const h = (e) => {
250
+ f == null || f(e == null ? void 0 : e.uuid);
251
+ }, w = (e) => {
252
+ _ == null || _(e == null ? void 0 : e.uuid);
253
+ };
254
+ return E(() => {
255
+ const e = () => {
256
+ document.querySelector(".wrapper__cards").querySelectorAll(".wrapper__card").forEach((v) => {
257
+ const N = v.getBoundingClientRect().height, k = Math.ceil((N + 10) / 20);
258
+ v.style.gridRowEnd = `span ${k}`;
259
+ });
260
+ };
261
+ return e(), window.addEventListener("resize", e), () => {
262
+ window.removeEventListener("resize", e);
263
+ };
264
+ }), /* @__PURE__ */ s(
265
+ T,
266
+ {
267
+ limitTags: m,
268
+ limitTagsForMobile: d,
269
+ limitCards: u,
270
+ limitCardsForMobile: c,
271
+ children: [
272
+ /* @__PURE__ */ s("div", { className: "wrapper__heading", children: [
273
+ r && /* @__PURE__ */ i("div", { className: "wrapper__title", children: r }),
274
+ o && /* @__PURE__ */ i("div", { className: "wrapper__subtitle", children: o })
275
+ ] }),
276
+ /* @__PURE__ */ i("div", { className: "wrapper__tags", children: t && (t == null ? void 0 : t.length) > 0 ? t == null ? void 0 : t.map((e, a) => /* @__PURE__ */ i(
277
+ A,
278
+ {
279
+ icon: e == null ? void 0 : e.icon,
280
+ text: e == null ? void 0 : e.text,
281
+ onSelectCard: () => h == null ? void 0 : h(e)
282
+ },
283
+ `field-of-interests-masonry-tag__${a + 1}`
284
+ )) : (x = Array.from("12345")) == null ? void 0 : x.map((e, a) => /* @__PURE__ */ i(
285
+ j,
286
+ {},
287
+ `field-of-interests-masonry-tag-skeleton__${a + 1}`
288
+ )) }),
289
+ /* @__PURE__ */ i("div", { className: "wrapper__cards", children: n && (n == null ? void 0 : n.length) > 0 ? n == null ? void 0 : n.map((e, a) => /* @__PURE__ */ i(
290
+ L,
291
+ {
292
+ image: e == null ? void 0 : e.image,
293
+ imageComponent: e == null ? void 0 : e.imageComponent,
294
+ title: e == null ? void 0 : e.title,
295
+ description: e == null ? void 0 : e.description,
296
+ onSelectCard: () => w == null ? void 0 : w(e == null ? void 0 : e.uuid),
297
+ className: "wrapper__card"
298
+ },
299
+ `field-of-interests-with-tags-card__${a + 1}`
300
+ )) : (y = Array.from("12345")) == null ? void 0 : y.map((e, a) => /* @__PURE__ */ i(
301
+ R,
302
+ {},
303
+ `field-of-interests-with-tags-card-skeleton__${a + 1}`
304
+ )) })
305
+ ]
306
+ }
307
+ );
308
+ }
309
+ );
310
+ export {
311
+ K as default
312
+ };