@lanaco/lnc-react-ui 4.0.89 → 4.0.91

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 (128) 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/AdBannerSection.cjs +37 -0
  5. package/dist/AdBannerSection.js +68 -0
  6. package/dist/Alert.js +1 -1
  7. package/dist/Avatar.js +1 -1
  8. package/dist/Badge.js +1 -1
  9. package/dist/BannerSectionCarousel.js +1 -1
  10. package/dist/BannerSectionWithList.js +1 -1
  11. package/dist/BlogCardsSponsoredSection.js +10 -10
  12. package/dist/BlogCategoryCardsSection.js +1 -1
  13. package/dist/BlogListSection.js +3 -3
  14. package/dist/BlogProductCardsSection.js +2 -2
  15. package/dist/BlogShopCardsSection.js +1 -1
  16. package/dist/BlogSingleSection.js +2 -2
  17. package/dist/BlogsSectionDetailed.js +7 -7
  18. package/dist/BlogsSectionLarge.js +2 -2
  19. package/dist/BlogsSectionSimple.js +16 -16
  20. package/dist/BlogsSectionSimpleCentered.js +2 -2
  21. package/dist/BlogsSectionWithFilters.js +4 -4
  22. package/dist/BrandHitsSection.js +7 -7
  23. package/dist/Breadcrumbs.js +1 -1
  24. package/dist/Button.js +1 -1
  25. package/dist/ButtonGroup.js +1 -1
  26. package/dist/CalorieCalculatorSection.js +1 -1
  27. package/dist/CheckBoxInput.js +1 -1
  28. package/dist/Chip.js +1 -1
  29. package/dist/ColorInput.js +1 -1
  30. package/dist/ConfirmationForm.js +1 -1
  31. package/dist/CustomLoanMapSection.js +1 -1
  32. package/dist/{CustomStyles-CQawr7oF.js → CustomStyles-DYULk9y7.js} +1 -1
  33. package/dist/DateInput.js +1 -1
  34. package/dist/DecimalInput.js +1 -1
  35. package/dist/DecimalInputV2.js +1 -1
  36. package/dist/DetailedProductsSection.js +4 -4
  37. package/dist/DetailsView.js +1 -1
  38. package/dist/DoubleRangeSlider.js +1 -1
  39. package/dist/DragAndDropFile.js +1 -1
  40. package/dist/DragDropFiles.js +1 -1
  41. package/dist/Drawer.js +1 -1
  42. package/dist/Dropdown.js +2 -2
  43. package/dist/DropdownItem.js +1 -1
  44. package/dist/DropdownLookup.js +1 -1
  45. package/dist/DropdownMenu.js +1 -1
  46. package/dist/EditableTable.js +1 -1
  47. package/dist/FeedbackSection.cjs +51 -0
  48. package/dist/FeedbackSection.js +82 -0
  49. package/dist/FieldOfInterestsMasonrySection.cjs +17 -16
  50. package/dist/FieldOfInterestsMasonrySection.js +73 -66
  51. package/dist/FieldOfInterestsWithAvatarsCardsSection.js +2 -2
  52. package/dist/FieldOfInterestsWithTagsCardsSection.js +1 -1
  53. package/dist/FileInput.js +1 -1
  54. package/dist/FlexGridItem.js +1 -1
  55. package/dist/FormField.js +1 -1
  56. package/dist/FormView.js +1 -1
  57. package/dist/GeneralWithTagsCardsSection.js +1 -1
  58. package/dist/GiftCardsSection.js +2 -2
  59. package/dist/Icon.js +1 -1
  60. package/dist/IconButton.js +1 -1
  61. package/dist/Kanban.js +1 -1
  62. package/dist/KanbanActionsToolbar.js +1 -1
  63. package/dist/KanbanView.js +1 -1
  64. package/dist/Link.js +1 -1
  65. package/dist/LoanCalculatorSection.js +1 -1
  66. package/dist/LocationFinderSection.js +1 -1
  67. package/dist/LocationSearchSection.js +1 -1
  68. package/dist/MasonryGeneralCardsSection.js +1 -1
  69. package/dist/MenuItem.js +1 -1
  70. package/dist/Modal.js +1 -1
  71. package/dist/MultiSelectDropdown.js +1 -1
  72. package/dist/MultiSelectDropdownLookup.js +1 -1
  73. package/dist/NestedDropdownItem.js +1 -1
  74. package/dist/NestedMenuItem.js +1 -1
  75. package/dist/NotificationContainer.js +1 -1
  76. package/dist/NotificationMessage.js +1 -1
  77. package/dist/NumberInput.js +1 -1
  78. package/dist/OverlayGeneralCardsSection.js +2 -2
  79. package/dist/PasswordInput.js +1 -1
  80. package/dist/PopoverContent.js +1 -1
  81. package/dist/ProductsWithBannerSection.js +3 -3
  82. package/dist/ProgressBar.js +1 -1
  83. package/dist/QuattroCardsSection.cjs +163 -0
  84. package/dist/QuattroCardsSection.js +206 -0
  85. package/dist/QuizSection.js +1 -1
  86. package/dist/RadioInput.js +1 -1
  87. package/dist/RangeSlider.js +1 -1
  88. package/dist/ReviewsSection.js +23 -23
  89. package/dist/SalesCampaignsSection.js +1 -1
  90. package/dist/Separator.js +1 -1
  91. package/dist/ShopCardsSection.js +2 -2
  92. package/dist/Sidebar.js +1 -1
  93. package/dist/SimpleCategoriesSection.js +3 -3
  94. package/dist/SimpleProductsSection.js +2 -2
  95. package/dist/Spinner.js +1 -1
  96. package/dist/Surface.js +1 -1
  97. package/dist/SwipeableDrawer.js +1 -1
  98. package/dist/TabItem.js +1 -1
  99. package/dist/Table.js +1 -1
  100. package/dist/TableView.js +1 -1
  101. package/dist/TextAreaInput.js +1 -1
  102. package/dist/TextInput.js +1 -1
  103. package/dist/ThemeProvider.cjs +16 -91
  104. package/dist/ThemeProvider.js +48 -1233
  105. package/dist/TimeInput.js +1 -1
  106. package/dist/Toggle.js +1 -1
  107. package/dist/TreeMenuSeparator.js +1 -1
  108. package/dist/UploadedFile.js +1 -1
  109. package/dist/UrgentSaleProductsSection.js +1 -1
  110. package/dist/{index-B68jh2kW.js → index-Cru8Sd2q.js} +2 -2
  111. package/dist/{index-Cpd68IKh.js → index-D86vS9UF.js} +1 -1
  112. package/dist/{index-BT4FT6f0.js → index-DfHm_Mv1.js} +2 -2
  113. package/dist/{index-Chju-CHz.js → index-DpdPtPbo.js} +1 -1
  114. package/dist/{index-DHQc2df3.js → index-Kx8irvHH.js} +1 -1
  115. package/dist/index.cjs +1 -1
  116. package/dist/index.js +59 -53
  117. package/dist/{skeleton-oa1ux_Zp.js → skeleton-BrUEdt6Z.js} +2 -2
  118. package/dist/{skeleton-BbYMdJpz.js → skeleton-TrselJrj.js} +1 -1
  119. package/dist/{style-R2KgPcrd.js → style-C3-67TPD.js} +1 -1
  120. package/dist/styled-components.browser.esm-C9FYANiy.js +1190 -0
  121. package/dist/styled-components.browser.esm-CMTEDJ_5.cjs +76 -0
  122. package/dist/{suspense-categories-card-simple-Dkm0oojD.js → suspense-categories-card-simple-BCn3U1cz.js} +1 -1
  123. package/dist/{suspense-large-B2lY_x-y.js → suspense-large-DgzTM-qh.js} +1 -1
  124. package/dist/{suspense-product-card-detailed-5A3zYKqj.js → suspense-product-card-detailed-D7hKisw1.js} +2 -2
  125. package/dist/{suspense-product-card-simple-C4qtjWg_.js → suspense-product-card-simple-BIVIVybi.js} +1 -1
  126. package/dist/{utils-BhG1dImS.js → utils-BXCGNjIy.js} +10 -10
  127. package/package.json +5 -2
  128. package/vite.config.js +12 -0
package/dist/DateInput.js CHANGED
@@ -4,7 +4,7 @@ import m, { createElement as ja, Component as qa, createRef as Qa, forwardRef as
4
4
  import { P as J } from "./index-S5Cd7WrG.js";
5
5
  import Va from "./Icon.js";
6
6
  import { s as Xa } from "./emotion-styled.browser.esm-BNN1dTl3.js";
7
- import { c as mr, b as $ } from "./utils-BhG1dImS.js";
7
+ import { c as mr, b as $ } from "./utils-BXCGNjIy.js";
8
8
  import { c as le } from "./index-Bq3leL2e.js";
9
9
  import { c as wt, a as za, d as R, e as L, g as Y, _, f as I } from "./defineProperty-DF3p0mVo.js";
10
10
  import { a as x } from "./setPrototypeOf-CttqfWo1.js";
@@ -3,7 +3,7 @@ import { P as v } from "./index-S5Cd7WrG.js";
3
3
  import B, { forwardRef as oe, useState as ne, useCallback as se } from "react";
4
4
  import { d as fe } from "./index-CkWvbrVT.js";
5
5
  import { s as G } from "./emotion-styled.browser.esm-BNN1dTl3.js";
6
- import { d as M, b as R, a as le, e as ue, h as W, c as ce } from "./utils-BhG1dImS.js";
6
+ import { d as M, b as R, a as le, e as ue, h as W, c as ce } from "./utils-BXCGNjIy.js";
7
7
  import { u as pe } from "./emotion-element-f0de968e.browser.esm-CkCiQliQ.js";
8
8
  function E() {
9
9
  }
@@ -2,7 +2,7 @@ import { jsxs as Y, jsx as N } from "react/jsx-runtime";
2
2
  import { P as l } from "./index-S5Cd7WrG.js";
3
3
  import { forwardRef as Z, useState as F, useRef as _, useEffect as v } from "react";
4
4
  import { s as k } from "./emotion-styled.browser.esm-BNN1dTl3.js";
5
- import { d as m, b as u, a as R, e as A, h as P, c as ee } from "./utils-BhG1dImS.js";
5
+ import { d as m, b as u, a as R, e as A, h as P, c as ee } from "./utils-BXCGNjIy.js";
6
6
  import { u as te } from "./emotion-element-f0de968e.browser.esm-CkCiQliQ.js";
7
7
  const ne = k.div`
8
8
  display: flex;
@@ -3,11 +3,11 @@ import { memo as M, forwardRef as P, useMemo as T } from "react";
3
3
  import { s as D } from "./emotion-styled.browser.esm-BNN1dTl3.js";
4
4
  import { M as F } from "./consts-BuFChS64.js";
5
5
  import B from "./Button.js";
6
- import { k as f } from "./utils-BhG1dImS.js";
6
+ import { k as f } from "./utils-BXCGNjIy.js";
7
7
  import { u as E } from "./useDetectMobile-Bkvj0VMa.js";
8
- import { T as I } from "./style-R2KgPcrd.js";
9
- import { D as L, S as O } from "./suspense-product-card-detailed-5A3zYKqj.js";
10
- import { S as R } from "./index-Chju-CHz.js";
8
+ import { T as I } from "./style-C3-67TPD.js";
9
+ import { D as L, S as O } from "./suspense-product-card-detailed-D7hKisw1.js";
10
+ import { S as R } from "./index-DpdPtPbo.js";
11
11
  const W = D.div`
12
12
  display: grid;
13
13
  grid-template-columns: ${(a) => `repeat(${a.limit}, minmax(0, 1fr))`};
@@ -4,7 +4,7 @@ import { P as e } from "./index-S5Cd7WrG.js";
4
4
  import { s as f } from "./emotion-styled.browser.esm-BNN1dTl3.js";
5
5
  import W from "./FlexGrid.js";
6
6
  import A from "./FlexGridItem.js";
7
- import { c as Y, b as B, g as U, a as q } from "./utils-BhG1dImS.js";
7
+ import { c as Y, b as B, g as U, a as q } from "./utils-BXCGNjIy.js";
8
8
  import { u as E } from "./emotion-element-f0de968e.browser.esm-CkCiQliQ.js";
9
9
  import H from "./Button.js";
10
10
  import c from "./IconButton.js";
@@ -2,7 +2,7 @@ import { jsxs as f, jsx as r, Fragment as V } from "react/jsx-runtime";
2
2
  import { forwardRef as F, useState as w, useEffect as x, useRef as T, useCallback as j } from "react";
3
3
  import { s as $ } from "./emotion-styled.browser.esm-BNN1dTl3.js";
4
4
  import { P as i } from "./index-S5Cd7WrG.js";
5
- import { b as u, a as R, c as E, d as O } from "./utils-BhG1dImS.js";
5
+ import { b as u, a as R, c as E, d as O } from "./utils-BXCGNjIy.js";
6
6
  import { u as D } from "./emotion-element-f0de968e.browser.esm-CkCiQliQ.js";
7
7
  const L = ({ theme: e, size: k }) => {
8
8
  var s = O(e, k);
@@ -5,7 +5,7 @@ import { s as Ia } from "./emotion-styled.browser.esm-BNN1dTl3.js";
5
5
  import Na from "./Icon.js";
6
6
  import { b as R } from "./tslib.es6-DQ-SzcmG.js";
7
7
  import Ei from "./Button.js";
8
- import { b as Ua } from "./utils-BhG1dImS.js";
8
+ import { b as Ua } from "./utils-BXCGNjIy.js";
9
9
  import { u as Fi } from "./emotion-element-f0de968e.browser.esm-CkCiQliQ.js";
10
10
  const Ai = /* @__PURE__ */ new Map([
11
11
  // https://github.com/guzzle/psr7/blob/2d9260799e713f1c475d3c5fdc3d6561ff7441b2/src/MimeType.php
@@ -4,7 +4,7 @@ import { P as e } from "./index-S5Cd7WrG.js";
4
4
  import { s as V } from "./emotion-styled.browser.esm-BNN1dTl3.js";
5
5
  import E from "./DragAndDropFile.js";
6
6
  import W from "./UploadedFile.js";
7
- import { b as q, a as H } from "./utils-BhG1dImS.js";
7
+ import { b as q, a as H } from "./utils-BXCGNjIy.js";
8
8
  import J from "./FlexGrid.js";
9
9
  import h from "./FlexGridItem.js";
10
10
  import { u as K } from "./emotion-element-f0de968e.browser.esm-CkCiQliQ.js";
package/dist/Drawer.js CHANGED
@@ -2,7 +2,7 @@ import { jsx as I } from "react/jsx-runtime";
2
2
  import b, { useRef as T, useEffect as j, useMemo as B, forwardRef as M, useState as q, useImperativeHandle as F } from "react";
3
3
  import { P as r } from "./index-S5Cd7WrG.js";
4
4
  import { C as H } from "./emotion-react.browser.esm-C6iWxXPG.js";
5
- import { b as Z, c as V } from "./utils-BhG1dImS.js";
5
+ import { b as Z, c as V } from "./utils-BXCGNjIy.js";
6
6
  import { u as A } from "./emotion-element-f0de968e.browser.esm-CkCiQliQ.js";
7
7
  function $() {
8
8
  return $ = Object.assign || function(n) {
package/dist/Dropdown.js CHANGED
@@ -2,8 +2,8 @@ import { jsx as g } from "react/jsx-runtime";
2
2
  import { P as e } from "./index-S5Cd7WrG.js";
3
3
  import * as O from "react";
4
4
  import { forwardRef as a, useCallback as S } from "react";
5
- import { u as y, S as M, a as h } from "./CustomStyles-CQawr7oF.js";
6
- import { c as H } from "./CustomStyles-CQawr7oF.js";
5
+ import { u as y, S as M, a as h } from "./CustomStyles-DYULk9y7.js";
6
+ import { c as H } from "./CustomStyles-DYULk9y7.js";
7
7
  import { _ as C, u as I } from "./emotion-element-f0de968e.browser.esm-CkCiQliQ.js";
8
8
  import "./index-64mXPFBC.js";
9
9
  import { d as x } from "./index-CkWvbrVT.js";
@@ -3,7 +3,7 @@ import { forwardRef as J, useRef as Q, useState as W, useEffect as X } from "rea
3
3
  import { P as l } from "./index-S5Cd7WrG.js";
4
4
  import { s as Z } from "./emotion-styled.browser.esm-BNN1dTl3.js";
5
5
  import M from "./Icon.js";
6
- import { b as t, c as I, h as N } from "./utils-BhG1dImS.js";
6
+ import { b as t, c as I, h as N } from "./utils-BXCGNjIy.js";
7
7
  import { u as ee } from "./emotion-element-f0de968e.browser.esm-CkCiQliQ.js";
8
8
  const ne = Z.div`
9
9
  box-sizing: border-box;
@@ -3,7 +3,7 @@ import { P as e } from "./index-S5Cd7WrG.js";
3
3
  import * as Oe from "react";
4
4
  import { useRef as G, useState as a, useEffect as W, useCallback as j, forwardRef as J } from "react";
5
5
  import { _ as me, u as be } from "./emotion-element-f0de968e.browser.esm-CkCiQliQ.js";
6
- import { _ as ge, b as s, h as Se, d as C, u as he, S as ve, a as ye } from "./CustomStyles-CQawr7oF.js";
6
+ import { _ as ge, b as s, h as Se, d as C, u as he, S as ve, a as ye } from "./CustomStyles-DYULk9y7.js";
7
7
  import { _ as _e } from "./defineProperty-DF3p0mVo.js";
8
8
  import "./index-64mXPFBC.js";
9
9
  import { d as Ie } from "./index-CkWvbrVT.js";
@@ -3,7 +3,7 @@ import { forwardRef as K, useRef as l, useState as L, Children as U, isValidElem
3
3
  import { P as o } from "./index-S5Cd7WrG.js";
4
4
  import { s as T } from "./emotion-styled.browser.esm-BNN1dTl3.js";
5
5
  import $ from "./Button.js";
6
- import { b as q } from "./utils-BhG1dImS.js";
6
+ import { b as q } from "./utils-BXCGNjIy.js";
7
7
  import { useTheme as A } from "./ThemeProvider.js";
8
8
  import G from "./Popover.js";
9
9
  import H from "./PopoverTrigger.js";
@@ -1,7 +1,7 @@
1
1
  import { jsx as l, Fragment as $, jsxs as U } from "react/jsx-runtime";
2
2
  import { useState as X, useRef as A, useEffect as F, createElement as Z, forwardRef as ee, useImperativeHandle as re } from "react";
3
3
  import { P as r } from "./index-S5Cd7WrG.js";
4
- import { c as z, r as G, i as V } from "./utils-BhG1dImS.js";
4
+ import { c as z, r as G, i as V } from "./utils-BXCGNjIy.js";
5
5
  import te from "./Table.js";
6
6
  import { s as Y } from "./emotion-styled.browser.esm-BNN1dTl3.js";
7
7
  import N from "./TextInput.js";
@@ -0,0 +1,51 @@
1
+ "use strict";const e=require("react/jsx-runtime"),l=require("react"),n=require("./utils-BWzf4vLl.cjs"),o=require("./Button.cjs"),d=require("./styled-components.browser.esm-CMTEDJ_5.cjs"),f=require("./consts-goSZX3xP.cjs"),m=d.qe.div`
2
+ display: flex;
3
+ flex-direction: column;
4
+ align-items: center;
5
+ gap: 1.5rem;
6
+ align-self: stretch;
7
+
8
+ & .feedback__content {
9
+ display: flex;
10
+ flex-direction: column;
11
+ justify-content: center;
12
+ align-items: center;
13
+ gap: 0.5rem;
14
+
15
+ & .feedback__title {
16
+ color: var(--gray-950, #14161a);
17
+ font-size: 1.5rem;
18
+ font-style: normal;
19
+ font-weight: 600;
20
+ line-height: 2rem;
21
+ }
22
+
23
+ & .feedback__description {
24
+ color: var(--gray-600, #676e79);
25
+ text-align: center;
26
+ font-size: 1rem;
27
+ font-style: normal;
28
+ font-weight: 500;
29
+ line-height: 1.5rem;
30
+ }
31
+ }
32
+
33
+ & .feedback__action {
34
+ color: var(--gray-950, #14161a);
35
+ font-size: 0.875rem;
36
+ font-style: normal;
37
+ font-weight: 500;
38
+ line-height: 1.25rem;
39
+ letter-spacing: -0.09px;
40
+ background: var(--neutral-95004, rgba(20, 22, 26, 0.04));
41
+
42
+ &:hover {
43
+ color: var(--gray-950, #14161a);
44
+ background: var(--neutral-95008, rgba(20, 22, 26, 0.08));
45
+ }
46
+ }
47
+
48
+ @media (max-width: ${f.MOBILE_SIZE_PX+"px"}) {
49
+ text-align: center;
50
+ }
51
+ `,g=l.forwardRef(({title:i,description:a,buttonText:s,onButtonAction:r=()=>{}},_)=>e.jsxs(m,{children:[e.jsxs("div",{className:"feedback__content",children:[n.isDefinedNotEmptyString(i)&&e.jsx("div",{className:"feedback__title",children:e.jsx("span",{children:i})}),n.isDefinedNotEmptyString(a)&&e.jsx("div",{className:"feedback__description",children:e.jsx("span",{children:a})})]}),n.isDefinedNotEmptyString(s)&&e.jsx(o,{text:s,borderRadius:"curved",btnType:"tinted",color:"neutral",className:"feedback__action",onClick:t=>{var c;(c=t==null?void 0:t.target)==null||c.blur(),r==null||r()}})]}));module.exports=g;
@@ -0,0 +1,82 @@
1
+ import { jsxs as o, jsx as e } from "react/jsx-runtime";
2
+ import { forwardRef as s } from "react";
3
+ import { k as t } from "./utils-BXCGNjIy.js";
4
+ import d from "./Button.js";
5
+ import { q as f } from "./styled-components.browser.esm-C9FYANiy.js";
6
+ import { M as m } from "./consts-BuFChS64.js";
7
+ const g = f.div`
8
+ display: flex;
9
+ flex-direction: column;
10
+ align-items: center;
11
+ gap: 1.5rem;
12
+ align-self: stretch;
13
+
14
+ & .feedback__content {
15
+ display: flex;
16
+ flex-direction: column;
17
+ justify-content: center;
18
+ align-items: center;
19
+ gap: 0.5rem;
20
+
21
+ & .feedback__title {
22
+ color: var(--gray-950, #14161a);
23
+ font-size: 1.5rem;
24
+ font-style: normal;
25
+ font-weight: 600;
26
+ line-height: 2rem;
27
+ }
28
+
29
+ & .feedback__description {
30
+ color: var(--gray-600, #676e79);
31
+ text-align: center;
32
+ font-size: 1rem;
33
+ font-style: normal;
34
+ font-weight: 500;
35
+ line-height: 1.5rem;
36
+ }
37
+ }
38
+
39
+ & .feedback__action {
40
+ color: var(--gray-950, #14161a);
41
+ font-size: 0.875rem;
42
+ font-style: normal;
43
+ font-weight: 500;
44
+ line-height: 1.25rem;
45
+ letter-spacing: -0.09px;
46
+ background: var(--neutral-95004, rgba(20, 22, 26, 0.04));
47
+
48
+ &:hover {
49
+ color: var(--gray-950, #14161a);
50
+ background: var(--neutral-95008, rgba(20, 22, 26, 0.08));
51
+ }
52
+ }
53
+
54
+ @media (max-width: ${m + "px"}) {
55
+ text-align: center;
56
+ }
57
+ `, y = s(
58
+ ({ title: i, description: n, buttonText: l, onButtonAction: r = () => {
59
+ } }, p) => /* @__PURE__ */ o(g, { children: [
60
+ /* @__PURE__ */ o("div", { className: "feedback__content", children: [
61
+ t(i) && /* @__PURE__ */ e("div", { className: "feedback__title", children: /* @__PURE__ */ e("span", { children: i }) }),
62
+ t(n) && /* @__PURE__ */ e("div", { className: "feedback__description", children: /* @__PURE__ */ e("span", { children: n }) })
63
+ ] }),
64
+ t(l) && /* @__PURE__ */ e(
65
+ d,
66
+ {
67
+ text: l,
68
+ borderRadius: "curved",
69
+ btnType: "tinted",
70
+ color: "neutral",
71
+ className: "feedback__action",
72
+ onClick: (a) => {
73
+ var c;
74
+ (c = a == null ? void 0 : a.target) == null || c.blur(), r == null || r();
75
+ }
76
+ }
77
+ )
78
+ ] })
79
+ );
80
+ export {
81
+ y as default
82
+ };
@@ -1,4 +1,4 @@
1
- "use strict";const r=require("react/jsx-runtime"),o=require("react"),d=require("./emotion-styled.browser.esm-BtEseadx.cjs"),x=require("./consts-goSZX3xP.cjs"),l=require("./utils-BWzf4vLl.cjs"),E=require("./Icon.cjs"),I=require("./emotion-element-f0de968e.browser.esm-B7k6i6lC.cjs"),q=d.styled.div`
1
+ "use strict";const r=require("react/jsx-runtime"),o=require("react"),c=require("./emotion-styled.browser.esm-BtEseadx.cjs"),v=require("./consts-goSZX3xP.cjs"),p=require("./utils-BWzf4vLl.cjs"),q=require("./Icon.cjs"),M=require("./emotion-element-f0de968e.browser.esm-B7k6i6lC.cjs"),R=c.styled.div`
2
2
  display: flex;
3
3
  width: 100%;
4
4
  height: fit-content;
@@ -37,7 +37,7 @@
37
37
  font-style: normal;
38
38
  font-weight: 500;
39
39
  line-height: 1.5rem;
40
- ${l.truncateTextInRows(2)}
40
+ ${p.truncateTextInRows(2)}
41
41
  }
42
42
 
43
43
  & .wrapper__description {
@@ -47,15 +47,15 @@
47
47
  font-weight: 400;
48
48
  line-height: 1rem;
49
49
  letter-spacing: 0.025rem;
50
- ${l.truncateTextInRows(2)}
50
+ ${p.truncateTextInRows(2)}
51
51
  }
52
52
  }
53
- `,M=d.styled.div`
53
+ `,z=c.styled.div`
54
54
  width: 100%;
55
55
  height: 11.625rem;
56
56
  border-radius: 0.75rem;
57
- background: ${l.linearGradientAnimation("-90deg")};
58
- `,R=d.styled.div`
57
+ background: ${p.linearGradientAnimation("-90deg")};
58
+ `,C=c.styled.div`
59
59
  display: flex;
60
60
  flex-direction: column;
61
61
  align-items: center;
@@ -101,7 +101,7 @@
101
101
  }
102
102
  }
103
103
 
104
- @media (max-width: ${x.MOBILE_SIZE_PX+"px"}) {
104
+ @media (max-width: ${v.MOBILE_SIZE_PX+"px"}) {
105
105
  flex-direction: row;
106
106
  align-items: center;
107
107
  gap: 0.25rem;
@@ -128,17 +128,17 @@
128
128
  white-space: nowrap;
129
129
  }
130
130
  }
131
- `,z=d.styled.div`
131
+ `,L=c.styled.div`
132
132
  width: 7.5rem;
133
133
  width: 7.5rem;
134
134
  border-radius: 999px;
135
- background: ${l.linearGradientAnimation("-90deg")};
135
+ background: ${p.linearGradientAnimation("-90deg")};
136
136
 
137
- @media (max-width: ${x.MOBILE_SIZE_PX+"px"}) {
137
+ @media (max-width: ${v.MOBILE_SIZE_PX+"px"}) {
138
138
  width: 7.5rem;
139
139
  height: 2.5rem;
140
140
  }
141
- `,C=o.forwardRef(({},i)=>r.jsx(z,{})),L=o.forwardRef(({text:i,isActive:s=!1,icon:t,onSelectCard:a=()=>{}},p)=>r.jsxs(R,{className:s?"active":"",onClick:a,children:[r.jsx(E,{icon:t,className:"wrapper__icon"}),r.jsx("div",{className:"wrapper__text",children:i})]})),F=o.forwardRef(({image:i,imageComponent:s,title:t,description:a,className:p,onSelectCard:_=()=>{}},u)=>{const{theme:f}=I.useTheme();return r.jsxs(q,{theme:f,className:p,onClick:_,children:[l.isDefined(s)?s:r.jsx("img",{src:i,className:"wrapper__image"}),r.jsxs("div",{className:"wrapper__content",children:[t&&r.jsx("div",{className:"wrapper__title",children:t}),a&&r.jsx("div",{className:"wrapper__description",children:a})]})]})}),O=o.forwardRef(({},i)=>r.jsxs(M,{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"})]})]})),S=d.styled.div`
141
+ `,F=o.forwardRef(({},t)=>r.jsx(L,{})),O=o.forwardRef(({text:t,isActive:s=!1,icon:i,onSelectCard:a=()=>{}},m)=>r.jsxs(C,{className:s?"active":"",onClick:a,children:[r.jsx(q,{icon:i,className:"wrapper__icon"}),r.jsx("div",{className:"wrapper__text",children:t})]})),S=o.forwardRef(({image:t,imageComponent:s,title:i,description:a,className:m,onSelectCard:w=()=>{}},b)=>{const{theme:g}=M.useTheme();return r.jsxs(R,{theme:g,className:m,onClick:w,children:[p.isDefined(s)?s:r.jsx("img",{src:t,className:"wrapper__image"}),r.jsxs("div",{className:"wrapper__content",children:[i&&r.jsx("div",{className:"wrapper__title",children:i}),a&&r.jsx("div",{className:"wrapper__description",children:a})]})]})}),A=o.forwardRef(({},t)=>r.jsxs(z,{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"})]})]})),T=c.styled.div`
142
142
  display: flex;
143
143
  flex-direction: column;
144
144
  align-items: center;
@@ -172,7 +172,7 @@
172
172
 
173
173
  & .wrapper__tags {
174
174
  display: grid;
175
- grid-template-columns: ${i=>`repeat(${i==null?void 0:i.limitTags}, minmax(0, 1fr))`};
175
+ grid-template-columns: ${t=>`repeat(${t==null?void 0:t.limitTags}, minmax(0, 1fr))`};
176
176
  justify-content: center;
177
177
  align-items: center;
178
178
  gap: 0.75rem;
@@ -180,17 +180,18 @@
180
180
 
181
181
  & .wrapper__cards {
182
182
  display: grid;
183
- grid-template-columns: ${i=>`repeat(${i==null?void 0:i.limitCards}, minmax(0, 1fr))`};
183
+ grid-template-columns: ${t=>`repeat(${t==null?void 0:t.limitCards}, minmax(12.5rem, 1fr))`};
184
184
  grid-auto-rows: 0.625rem;
185
185
  gap: 0.625rem;
186
186
  width: 100%;
187
+ position: relative;
187
188
 
188
189
  & .wrapper__card {
189
190
  overflow: hidden;
190
191
  }
191
192
  }
192
193
 
193
- @media (max-width: ${x.MOBILE_SIZE_PX+"px"}) {
194
+ @media (max-width: ${v.MOBILE_SIZE_PX+"px"}) {
194
195
  & .wrapper__tags {
195
196
  display: flex;
196
197
  overflow-x: scroll;
@@ -199,7 +200,7 @@
199
200
  }
200
201
 
201
202
  & .wrapper__cards {
202
- grid-template-columns: ${i=>`repeat(${i==null?void 0:i.limitCardsForMobile}, minmax(0, 1fr))`};
203
+ grid-template-columns: ${t=>`repeat(${t==null?void 0:t.limitCardsForMobile}, minmax(0, 1fr))`};
203
204
  }
204
205
  }
205
- `,A=o.forwardRef(({title:i,subtitle:s,tags:t=[],items:a=[],limitTags:p=5,limitTagsForMobile:_=5,limit:u=3,limitForMobile:f=2,selectedTag:j,onSelectTag:h=()=>{},onSelectCard:w=()=>{}},$)=>{var y,v;return o.useLayoutEffect(()=>{const e=()=>{document.querySelector(".wrapper__cards").querySelectorAll(".wrapper__card").forEach(b=>{const k=b.getBoundingClientRect().height,N=Math.ceil((k+10)/20);b.style.gridRowEnd=`span ${N}`})},c=document.querySelector(".wrapper__cards").querySelectorAll(".wrapper__image");let m=0;return c.length===0?e():(c.forEach(g=>{g.complete?m++:g.addEventListener("load",()=>{m++,m===c.length&&e()})}),m===c.length&&e()),window.addEventListener("resize",e),()=>{window.removeEventListener("resize",e)}},[]),r.jsxs(S,{ref:$,limitTags:p,limitTagsForMobile:_,limitCards:u,limitCardsForMobile:f,children:[r.jsxs("div",{className:"wrapper__heading",children:[i&&r.jsx("div",{className:"wrapper__title",children:i}),s&&r.jsx("div",{className:"wrapper__subtitle",children:s})]}),r.jsx("div",{className:"wrapper__tags",children:t&&(t==null?void 0:t.length)>0?t==null?void 0:t.map((e,n)=>r.jsx(L,{icon:e==null?void 0:e.icon,text:e==null?void 0:e.title,isActive:(e==null?void 0:e.code)===j,onSelectCard:()=>h==null?void 0:h(e)},`field-of-interests-masonry-tag__${n+1}`)):(y=Array.from("12345"))==null?void 0:y.map((e,n)=>r.jsx(C,{},`field-of-interests-masonry-tag-skeleton__${n+1}`))}),r.jsx("div",{className:"wrapper__cards",children:a&&(a==null?void 0:a.length)>0?a==null?void 0:a.map((e,n)=>r.jsx(F,{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:()=>w==null?void 0:w(e),className:"wrapper__card"},`field-of-interests-with-tags-card__${n+1}`)):(v=Array.from("12345"))==null?void 0:v.map((e,n)=>r.jsx(O,{},`field-of-interests-with-tags-card-skeleton__${n+1}`))})]})});module.exports=A;
206
+ `,W=o.forwardRef(({title:t,subtitle:s,tags:i=[],items:a=[],limitTags:m=5,limitTagsForMobile:w=5,limit:b=3,limitForMobile:g=2,selectedTag:k,onSelectTag:x=()=>{},onSelectCard:u=()=>{}},N)=>{var j,$;return o.useLayoutEffect(()=>{const e=()=>{const l=document.querySelector(".wrapper__cards"),d=l.querySelectorAll(".wrapper__card");d.forEach(h=>{const I=h.getBoundingClientRect().height,E=Math.ceil((I+10)/20);h.style.gridRowEnd=`span ${E}`});const y=d==null?void 0:d[d.length-1];if(y){const h=y.offsetTop+y.offsetHeight;l.style.height=`${h}px`}},f=document.querySelector(".wrapper__cards").querySelectorAll(".wrapper__image");let _=0;return f.length===0?e():(f.forEach(l=>{l.complete?_++:l.addEventListener("load",()=>{_++,_===f.length&&e()})}),_===f.length&&e()),window.addEventListener("resize",e),()=>{window.removeEventListener("resize",e)}},[]),r.jsxs(T,{ref:N,limitTags:m,limitTagsForMobile:w,limitCards:b,limitCardsForMobile:g,children:[r.jsxs("div",{className:"wrapper__heading",children:[t&&r.jsx("div",{className:"wrapper__title",children:t}),s&&r.jsx("div",{className:"wrapper__subtitle",children:s})]}),r.jsx("div",{className:"wrapper__tags",children:i&&(i==null?void 0:i.length)>0?i==null?void 0:i.map((e,n)=>r.jsx(O,{icon:e==null?void 0:e.icon,text:e==null?void 0:e.title,isActive:(e==null?void 0:e.code)===k,onSelectCard:()=>x==null?void 0:x(e)},`field-of-interests-masonry-tag__${n+1}`)):(j=Array.from("12345"))==null?void 0:j.map((e,n)=>r.jsx(F,{},`field-of-interests-masonry-tag-skeleton__${n+1}`))}),r.jsx("div",{className:"wrapper__cards",children:a&&(a==null?void 0:a.length)>0?a==null?void 0:a.map((e,n)=>r.jsx(S,{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:()=>u==null?void 0:u(e),className:"wrapper__card"},`field-of-interests-with-tags-card__${n+1}`)):($=Array.from("12345"))==null?void 0:$.map((e,n)=>r.jsx(A,{},`field-of-interests-with-tags-card-skeleton__${n+1}`))})]})});module.exports=W;