@lanaco/lnc-react-ui 4.0.89 → 4.0.90
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.
- package/dist/Accordion.js +1 -1
- package/dist/AccordionSummary.js +1 -1
- package/dist/ActionsToolbar.js +1 -1
- package/dist/AdBannerSection.cjs +37 -0
- package/dist/AdBannerSection.js +68 -0
- package/dist/Alert.js +1 -1
- package/dist/Avatar.js +1 -1
- package/dist/Badge.js +1 -1
- package/dist/BannerSectionCarousel.js +1 -1
- package/dist/BannerSectionWithList.js +1 -1
- package/dist/BlogCardsSponsoredSection.js +10 -10
- package/dist/BlogCategoryCardsSection.js +1 -1
- package/dist/BlogListSection.js +3 -3
- package/dist/BlogProductCardsSection.js +2 -2
- package/dist/BlogShopCardsSection.js +1 -1
- package/dist/BlogSingleSection.js +2 -2
- package/dist/BlogsSectionDetailed.js +7 -7
- package/dist/BlogsSectionLarge.js +2 -2
- package/dist/BlogsSectionSimple.js +16 -16
- package/dist/BlogsSectionSimpleCentered.js +2 -2
- package/dist/BlogsSectionWithFilters.js +4 -4
- package/dist/BrandHitsSection.js +7 -7
- package/dist/Breadcrumbs.js +1 -1
- package/dist/Button.js +1 -1
- package/dist/ButtonGroup.js +1 -1
- package/dist/CalorieCalculatorSection.js +1 -1
- package/dist/CheckBoxInput.js +1 -1
- package/dist/Chip.js +1 -1
- package/dist/ColorInput.js +1 -1
- package/dist/ConfirmationForm.js +1 -1
- package/dist/CustomLoanMapSection.js +1 -1
- package/dist/{CustomStyles-CQawr7oF.js → CustomStyles-DYULk9y7.js} +1 -1
- package/dist/DateInput.js +1 -1
- package/dist/DecimalInput.js +1 -1
- package/dist/DecimalInputV2.js +1 -1
- package/dist/DetailedProductsSection.js +4 -4
- package/dist/DetailsView.js +1 -1
- package/dist/DoubleRangeSlider.js +1 -1
- package/dist/DragAndDropFile.js +1 -1
- package/dist/DragDropFiles.js +1 -1
- package/dist/Drawer.js +1 -1
- package/dist/Dropdown.js +2 -2
- package/dist/DropdownItem.js +1 -1
- package/dist/DropdownLookup.js +1 -1
- package/dist/DropdownMenu.js +1 -1
- package/dist/EditableTable.js +1 -1
- package/dist/FeedbackSection.cjs +51 -0
- package/dist/FeedbackSection.js +82 -0
- package/dist/FieldOfInterestsMasonrySection.cjs +17 -16
- package/dist/FieldOfInterestsMasonrySection.js +73 -66
- package/dist/FieldOfInterestsWithAvatarsCardsSection.js +2 -2
- package/dist/FieldOfInterestsWithTagsCardsSection.js +1 -1
- package/dist/FileInput.js +1 -1
- package/dist/FlexGridItem.js +1 -1
- package/dist/FormField.js +1 -1
- package/dist/FormView.js +1 -1
- package/dist/GeneralWithTagsCardsSection.js +1 -1
- package/dist/GiftCardsSection.js +2 -2
- package/dist/Icon.js +1 -1
- package/dist/IconButton.js +1 -1
- package/dist/Kanban.js +1 -1
- package/dist/KanbanActionsToolbar.js +1 -1
- package/dist/KanbanView.js +1 -1
- package/dist/Link.js +1 -1
- package/dist/LoanCalculatorSection.js +1 -1
- package/dist/LocationFinderSection.js +1 -1
- package/dist/LocationSearchSection.js +1 -1
- package/dist/MasonryGeneralCardsSection.js +1 -1
- package/dist/MenuItem.js +1 -1
- package/dist/Modal.js +1 -1
- package/dist/MultiSelectDropdown.js +1 -1
- package/dist/MultiSelectDropdownLookup.js +1 -1
- package/dist/NestedDropdownItem.js +1 -1
- package/dist/NestedMenuItem.js +1 -1
- package/dist/NotificationContainer.js +1 -1
- package/dist/NotificationMessage.js +1 -1
- package/dist/NumberInput.js +1 -1
- package/dist/OverlayGeneralCardsSection.js +2 -2
- package/dist/PasswordInput.js +1 -1
- package/dist/PopoverContent.js +1 -1
- package/dist/ProductsWithBannerSection.js +3 -3
- package/dist/ProgressBar.js +1 -1
- package/dist/QuattroCardsSection.cjs +163 -0
- package/dist/QuattroCardsSection.js +203 -0
- package/dist/QuizSection.js +1 -1
- package/dist/RadioInput.js +1 -1
- package/dist/RangeSlider.js +1 -1
- package/dist/ReviewsSection.js +23 -23
- package/dist/SalesCampaignsSection.js +1 -1
- package/dist/Separator.js +1 -1
- package/dist/ShopCardsSection.js +2 -2
- package/dist/Sidebar.js +1 -1
- package/dist/SimpleCategoriesSection.js +3 -3
- package/dist/SimpleProductsSection.js +2 -2
- package/dist/Spinner.js +1 -1
- package/dist/Surface.js +1 -1
- package/dist/SwipeableDrawer.js +1 -1
- package/dist/TabItem.js +1 -1
- package/dist/Table.js +1 -1
- package/dist/TableView.js +1 -1
- package/dist/TextAreaInput.js +1 -1
- package/dist/TextInput.js +1 -1
- package/dist/ThemeProvider.cjs +16 -91
- package/dist/ThemeProvider.js +48 -1233
- package/dist/TimeInput.js +1 -1
- package/dist/Toggle.js +1 -1
- package/dist/TreeMenuSeparator.js +1 -1
- package/dist/UploadedFile.js +1 -1
- package/dist/UrgentSaleProductsSection.js +1 -1
- package/dist/{index-B68jh2kW.js → index-Cru8Sd2q.js} +2 -2
- package/dist/{index-Cpd68IKh.js → index-D86vS9UF.js} +1 -1
- package/dist/{index-BT4FT6f0.js → index-DfHm_Mv1.js} +2 -2
- package/dist/{index-Chju-CHz.js → index-DpdPtPbo.js} +1 -1
- package/dist/{index-DHQc2df3.js → index-Kx8irvHH.js} +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.js +59 -53
- package/dist/{skeleton-oa1ux_Zp.js → skeleton-BrUEdt6Z.js} +2 -2
- package/dist/{skeleton-BbYMdJpz.js → skeleton-TrselJrj.js} +1 -1
- package/dist/{style-R2KgPcrd.js → style-C3-67TPD.js} +1 -1
- package/dist/styled-components.browser.esm-C9FYANiy.js +1190 -0
- package/dist/styled-components.browser.esm-CMTEDJ_5.cjs +76 -0
- package/dist/{suspense-categories-card-simple-Dkm0oojD.js → suspense-categories-card-simple-BCn3U1cz.js} +1 -1
- package/dist/{suspense-large-B2lY_x-y.js → suspense-large-DgzTM-qh.js} +1 -1
- package/dist/{suspense-product-card-detailed-5A3zYKqj.js → suspense-product-card-detailed-D7hKisw1.js} +2 -2
- package/dist/{suspense-product-card-simple-C4qtjWg_.js → suspense-product-card-simple-BIVIVybi.js} +1 -1
- package/dist/{utils-BhG1dImS.js → utils-BXCGNjIy.js} +10 -10
- package/package.json +5 -2
- 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-
|
|
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";
|
package/dist/DecimalInput.js
CHANGED
|
@@ -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-
|
|
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
|
}
|
package/dist/DecimalInputV2.js
CHANGED
|
@@ -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-
|
|
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-
|
|
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-
|
|
9
|
-
import { D as L, S as O } from "./suspense-product-card-detailed-
|
|
10
|
-
import { S as R } from "./index-
|
|
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))`};
|
package/dist/DetailsView.js
CHANGED
|
@@ -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-
|
|
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-
|
|
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);
|
package/dist/DragAndDropFile.js
CHANGED
|
@@ -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-
|
|
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
|
package/dist/DragDropFiles.js
CHANGED
|
@@ -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-
|
|
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-
|
|
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-
|
|
6
|
-
import { c as H } from "./CustomStyles-
|
|
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";
|
package/dist/DropdownItem.js
CHANGED
|
@@ -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-
|
|
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;
|
package/dist/DropdownLookup.js
CHANGED
|
@@ -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-
|
|
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";
|
package/dist/DropdownMenu.js
CHANGED
|
@@ -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-
|
|
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";
|
package/dist/EditableTable.js
CHANGED
|
@@ -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-
|
|
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"),
|
|
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
|
-
${
|
|
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
|
-
${
|
|
50
|
+
${p.truncateTextInRows(2)}
|
|
51
51
|
}
|
|
52
52
|
}
|
|
53
|
-
`,
|
|
53
|
+
`,z=c.styled.div`
|
|
54
54
|
width: 100%;
|
|
55
55
|
height: 11.625rem;
|
|
56
56
|
border-radius: 0.75rem;
|
|
57
|
-
background: ${
|
|
58
|
-
`,
|
|
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: ${
|
|
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
|
-
`,
|
|
131
|
+
`,L=c.styled.div`
|
|
132
132
|
width: 7.5rem;
|
|
133
133
|
width: 7.5rem;
|
|
134
134
|
border-radius: 999px;
|
|
135
|
-
background: ${
|
|
135
|
+
background: ${p.linearGradientAnimation("-90deg")};
|
|
136
136
|
|
|
137
|
-
@media (max-width: ${
|
|
137
|
+
@media (max-width: ${v.MOBILE_SIZE_PX+"px"}) {
|
|
138
138
|
width: 7.5rem;
|
|
139
139
|
height: 2.5rem;
|
|
140
140
|
}
|
|
141
|
-
`,
|
|
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: ${
|
|
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: ${
|
|
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: ${
|
|
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: ${
|
|
203
|
+
grid-template-columns: ${t=>`repeat(${t==null?void 0:t.limitCardsForMobile}, minmax(0, 1fr))`};
|
|
203
204
|
}
|
|
204
205
|
}
|
|
205
|
-
`,
|
|
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;
|