@lanaco/lnc-react-ui 4.0.87 → 4.0.89
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.cjs +1 -1
- package/dist/Accordion.js +1 -1
- package/dist/AccordionSummary.cjs +1 -1
- package/dist/AccordionSummary.js +1 -1
- package/dist/ActionsToolbar.cjs +1 -1
- package/dist/ActionsToolbar.js +1 -1
- package/dist/Alert.cjs +1 -1
- package/dist/Alert.js +1 -1
- package/dist/Avatar.cjs +1 -1
- package/dist/Avatar.js +1 -1
- package/dist/Badge.cjs +1 -1
- package/dist/Badge.js +1 -1
- package/dist/BannerSectionCarousel.cjs +2 -2
- package/dist/BannerSectionCarousel.js +5 -2
- package/dist/BannerSectionSimple.cjs +7 -7
- package/dist/BannerSectionSimple.js +54 -51
- package/dist/BannerSectionWithList.cjs +7 -7
- package/dist/BannerSectionWithList.js +33 -30
- package/dist/BannerSectionWithListImage.cjs +9 -9
- package/dist/BannerSectionWithListImage.js +44 -41
- package/dist/BlogCardsSponsoredSection.cjs +3 -3
- package/dist/BlogCardsSponsoredSection.js +38 -35
- package/dist/BlogCategoryCardsSection.cjs +1 -1
- package/dist/BlogCategoryCardsSection.js +1 -1
- package/dist/BlogListSection.cjs +3 -3
- package/dist/BlogListSection.js +16 -16
- package/dist/BlogProductCardsSection.cjs +1 -1
- package/dist/BlogProductCardsSection.js +2 -2
- package/dist/BlogShopCardsSection.cjs +1 -1
- package/dist/BlogShopCardsSection.js +1 -1
- package/dist/BlogSingleSection.cjs +1 -1
- package/dist/BlogSingleSection.js +2 -2
- package/dist/BlogsSectionDetailed.cjs +2 -2
- package/dist/BlogsSectionDetailed.js +29 -26
- package/dist/BlogsSectionLarge.cjs +1 -1
- package/dist/BlogsSectionLarge.js +2 -2
- package/dist/BlogsSectionSimple.cjs +6 -6
- package/dist/BlogsSectionSimple.js +32 -29
- package/dist/BlogsSectionSimpleCentered.cjs +1 -1
- package/dist/BlogsSectionSimpleCentered.js +2 -2
- package/dist/BlogsSectionWithFilters.cjs +10 -10
- package/dist/BlogsSectionWithFilters.js +109 -101
- package/dist/BrandHitsSection.cjs +1 -1
- package/dist/BrandHitsSection.js +1 -1
- package/dist/Breadcrumbs.cjs +1 -1
- package/dist/Breadcrumbs.js +1 -1
- package/dist/Button.cjs +1 -1
- package/dist/Button.js +1 -1
- package/dist/ButtonGroup.cjs +1 -1
- package/dist/ButtonGroup.js +1 -1
- package/dist/CalorieCalculatorSection.cjs +1 -1
- package/dist/CalorieCalculatorSection.js +1 -1
- package/dist/CheckBoxInput.cjs +1 -1
- package/dist/CheckBoxInput.js +1 -1
- package/dist/Chip.cjs +1 -1
- package/dist/Chip.js +1 -1
- package/dist/ColorInput.cjs +1 -1
- package/dist/ColorInput.js +1 -1
- package/dist/ConfirmationForm.cjs +1 -1
- package/dist/ConfirmationForm.js +1 -1
- package/dist/CustomLoanMapSection.cjs +1 -1
- package/dist/CustomLoanMapSection.js +1 -1
- package/dist/{CustomStyles-DSaRbYZg.js → CustomStyles-CQawr7oF.js} +1 -1
- package/dist/{CustomStyles-DzChCA5c.cjs → CustomStyles-Uqkz9jDo.cjs} +1 -1
- package/dist/DateInput.cjs +1 -1
- package/dist/DateInput.js +1 -1
- package/dist/DecimalInput.cjs +1 -1
- package/dist/DecimalInput.js +1 -1
- package/dist/DecimalInputV2.cjs +1 -1
- package/dist/DecimalInputV2.js +1 -1
- package/dist/DetailedProductsSection.cjs +4 -4
- package/dist/DetailedProductsSection.js +28 -25
- package/dist/DetailsView.cjs +1 -1
- package/dist/DetailsView.js +1 -1
- package/dist/DoubleRangeSlider.cjs +1 -1
- package/dist/DoubleRangeSlider.js +1 -1
- package/dist/DragAndDropFile.cjs +1 -1
- package/dist/DragAndDropFile.js +1 -1
- package/dist/DragDropFiles.cjs +1 -1
- package/dist/DragDropFiles.js +1 -1
- package/dist/Drawer.cjs +1 -1
- package/dist/Drawer.js +1 -1
- package/dist/Dropdown.cjs +1 -1
- package/dist/Dropdown.js +2 -2
- package/dist/DropdownItem.cjs +1 -1
- package/dist/DropdownItem.js +1 -1
- package/dist/DropdownLookup.cjs +1 -1
- package/dist/DropdownLookup.js +1 -1
- package/dist/DropdownMenu.cjs +1 -1
- package/dist/DropdownMenu.js +1 -1
- package/dist/EditableTable.cjs +1 -1
- package/dist/EditableTable.js +1 -1
- package/dist/FieldOfInterestsMasonrySection.cjs +27 -16
- package/dist/FieldOfInterestsMasonrySection.js +72 -62
- package/dist/FieldOfInterestsWithAvatarsCardsSection.cjs +1 -1
- package/dist/FieldOfInterestsWithAvatarsCardsSection.js +2 -2
- package/dist/FieldOfInterestsWithTagsCardsSection.cjs +2 -1
- package/dist/FieldOfInterestsWithTagsCardsSection.js +2 -1
- package/dist/FileInput.cjs +1 -1
- package/dist/FileInput.js +1 -1
- package/dist/FlexGridItem.cjs +1 -1
- package/dist/FlexGridItem.js +1 -1
- package/dist/FormField.cjs +1 -1
- package/dist/FormField.js +1 -1
- package/dist/FormView.cjs +1 -1
- package/dist/FormView.js +1 -1
- package/dist/GeneralWithTagsCardsSection.cjs +4 -4
- package/dist/GeneralWithTagsCardsSection.js +5 -5
- package/dist/GiftCardsSection.cjs +8 -8
- package/dist/GiftCardsSection.js +54 -51
- package/dist/Icon.cjs +1 -1
- package/dist/Icon.js +1 -1
- package/dist/IconButton.cjs +1 -1
- package/dist/IconButton.js +1 -1
- package/dist/Kanban.cjs +2 -2
- package/dist/Kanban.js +84 -82
- package/dist/KanbanActionsToolbar.cjs +1 -1
- package/dist/KanbanActionsToolbar.js +1 -1
- package/dist/KanbanView.cjs +1 -1
- package/dist/KanbanView.js +1 -1
- package/dist/Link.cjs +1 -1
- package/dist/Link.js +1 -1
- package/dist/LoanCalculatorSection.cjs +1 -1
- package/dist/LoanCalculatorSection.js +1 -1
- package/dist/LocationFinderSection.cjs +1 -1
- package/dist/LocationFinderSection.js +1 -1
- package/dist/LocationSearchSection.cjs +1 -1
- package/dist/LocationSearchSection.js +1 -1
- package/dist/MasonryGeneralCardsSection.cjs +1 -1
- package/dist/MasonryGeneralCardsSection.js +1 -1
- package/dist/MenuItem.cjs +1 -1
- package/dist/MenuItem.js +1 -1
- package/dist/Modal.cjs +1 -1
- package/dist/Modal.js +1 -1
- package/dist/MultiSelectDropdown.cjs +1 -1
- package/dist/MultiSelectDropdown.js +1 -1
- package/dist/MultiSelectDropdownLookup.cjs +1 -1
- package/dist/MultiSelectDropdownLookup.js +1 -1
- package/dist/NestedDropdownItem.cjs +1 -1
- package/dist/NestedDropdownItem.js +1 -1
- package/dist/NestedMenuItem.cjs +1 -1
- package/dist/NestedMenuItem.js +1 -1
- package/dist/NotificationContainer.cjs +1 -1
- package/dist/NotificationContainer.js +1 -1
- package/dist/NotificationMessage.cjs +1 -1
- package/dist/NotificationMessage.js +1 -1
- package/dist/NumberInput.cjs +1 -1
- package/dist/NumberInput.js +1 -1
- package/dist/OverlayGeneralCardsSection.cjs +1 -1
- package/dist/OverlayGeneralCardsSection.js +2 -2
- package/dist/PasswordInput.cjs +1 -1
- package/dist/PasswordInput.js +1 -1
- package/dist/PopoverContent.cjs +1 -1
- package/dist/PopoverContent.js +1 -1
- package/dist/ProductsWithBannerSection.cjs +1 -1
- package/dist/ProductsWithBannerSection.js +3 -3
- package/dist/ProgressBar.cjs +1 -1
- package/dist/ProgressBar.js +1 -1
- package/dist/QuizSection.cjs +1 -1
- package/dist/QuizSection.js +1 -1
- package/dist/RadioInput.cjs +1 -1
- package/dist/RadioInput.js +1 -1
- package/dist/RangeSlider.cjs +1 -1
- package/dist/RangeSlider.js +1 -1
- package/dist/ReviewsSection.cjs +1 -1
- package/dist/ReviewsSection.js +23 -23
- package/dist/SalesCampaignsSection.cjs +1 -1
- package/dist/SalesCampaignsSection.js +1 -1
- package/dist/Separator.cjs +1 -1
- package/dist/Separator.js +1 -1
- package/dist/ShopCardsSection.cjs +1 -1
- package/dist/ShopCardsSection.js +2 -2
- package/dist/Sidebar.cjs +1 -1
- package/dist/Sidebar.js +1 -1
- package/dist/SimpleCategoriesSection.cjs +2 -2
- package/dist/SimpleCategoriesSection.js +18 -15
- package/dist/SimpleProductsSection.cjs +1 -1
- package/dist/SimpleProductsSection.js +2 -2
- package/dist/Spinner.cjs +1 -1
- package/dist/Spinner.js +1 -1
- package/dist/Surface.cjs +1 -1
- package/dist/Surface.js +1 -1
- package/dist/SwipeableDrawer.cjs +1 -1
- package/dist/SwipeableDrawer.js +1 -1
- package/dist/TabItem.cjs +1 -1
- package/dist/TabItem.js +1 -1
- package/dist/Table.cjs +1 -1
- package/dist/Table.js +1 -1
- package/dist/TableView.cjs +1 -1
- package/dist/TableView.js +1 -1
- package/dist/TextAreaInput.cjs +1 -1
- package/dist/TextAreaInput.js +1 -1
- package/dist/TextInput.cjs +1 -1
- package/dist/TextInput.js +1 -1
- package/dist/ThemeProvider.cjs +1 -1
- package/dist/ThemeProvider.js +1 -1
- package/dist/TimeInput.cjs +1 -1
- package/dist/TimeInput.js +1 -1
- package/dist/Toggle.cjs +1 -1
- package/dist/Toggle.js +1 -1
- package/dist/TreeMenuSeparator.cjs +1 -1
- package/dist/TreeMenuSeparator.js +1 -1
- package/dist/UploadedFile.cjs +1 -1
- package/dist/UploadedFile.js +1 -1
- package/dist/UrgentSaleProductsSection.cjs +2 -2
- package/dist/UrgentSaleProductsSection.js +34 -31
- package/dist/{index-DG7qQq8L.cjs → index-66FyQgVV.cjs} +1 -1
- package/dist/{index-Yh18uk_f.js → index-B68jh2kW.js} +2 -2
- package/dist/{index-BVaZWq6y.cjs → index-BRgZcjpI.cjs} +1 -1
- package/dist/{index-BBPnKoi6.js → index-BT4FT6f0.js} +2 -2
- package/dist/{index-Db8wvLXS.js → index-Chju-CHz.js} +1 -1
- package/dist/{index-Ca38iPjf.js → index-Cpd68IKh.js} +1 -1
- package/dist/{index-B9HSHvhH.cjs → index-D8lR_JKg.cjs} +1 -1
- package/dist/{index-iSD5jNBk.js → index-DHQc2df3.js} +98 -46
- package/dist/{index-Ccw8sLnK.cjs → index-DMysapsB.cjs} +1 -1
- package/dist/{index-Cx4KvZ9L.cjs → index-DZDz9qZP.cjs} +47 -9
- package/dist/index.cjs +1 -1
- package/dist/index.js +1 -1
- package/dist/{skeleton-DALCB1S7.js → skeleton-BbYMdJpz.js} +1 -1
- package/dist/{skeleton-BBSBZ4JV.cjs → skeleton-BcaMeKFQ.cjs} +1 -1
- package/dist/{skeleton-C_Jypl8r.cjs → skeleton-DwZzdFei.cjs} +5 -5
- package/dist/{skeleton-wfDIalr3.js → skeleton-oa1ux_Zp.js} +6 -6
- package/dist/{style-xvwWn3Zv.cjs → style-B8wrlDzY.cjs} +13 -7
- package/dist/{style-sLF37aOA.js → style-R2KgPcrd.js} +17 -10
- package/dist/{suspense-categories-card-simple-5JZtz7wj.cjs → suspense-categories-card-simple-B2swGa6t.cjs} +1 -1
- package/dist/{suspense-categories-card-simple-BTFqzXyn.js → suspense-categories-card-simple-Dkm0oojD.js} +1 -1
- package/dist/{suspense-large-DFlSJhGG.js → suspense-large-B2lY_x-y.js} +1 -1
- package/dist/{suspense-large-BtfvnzWh.cjs → suspense-large-DMhn-lIG.cjs} +1 -1
- package/dist/{suspense-product-card-detailed-CwdbxJrY.js → suspense-product-card-detailed-5A3zYKqj.js} +2 -2
- package/dist/{suspense-product-card-detailed-DBNlkFiP.cjs → suspense-product-card-detailed-CuExvgd_.cjs} +1 -1
- package/dist/{suspense-product-card-simple--ExcEpD-.js → suspense-product-card-simple-C4qtjWg_.js} +1 -1
- package/dist/{suspense-product-card-simple-0x5sc47a.cjs → suspense-product-card-simple-zYdZVLRz.cjs} +1 -1
- package/dist/{utils-DhRHf5Ed.cjs → utils-BWzf4vLl.cjs} +1 -1
- package/dist/{utils-BE-UlkKf.js → utils-BhG1dImS.js} +4 -4
- package/package.json +1 -1
- package/dist/useEffectOnce-DFrzfNzT.cjs +0 -1
- package/dist/useEffectOnce-guOKBPuL.js +0 -7
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const r=require("react/jsx-runtime"),
|
|
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`
|
|
2
2
|
display: flex;
|
|
3
3
|
width: 100%;
|
|
4
4
|
height: fit-content;
|
|
@@ -10,6 +10,10 @@
|
|
|
10
10
|
border: 1px solid var(--neutral-9508, rgba(20, 22, 26, 0.08));
|
|
11
11
|
background: var(--Lanaco-Gray-white, #fff);
|
|
12
12
|
|
|
13
|
+
&:hover {
|
|
14
|
+
cursor: pointer;
|
|
15
|
+
}
|
|
16
|
+
|
|
13
17
|
/* drop-shadow-sm */
|
|
14
18
|
box-shadow: 0px 1px 2px 0px rgba(0, 0, 0, 0.05);
|
|
15
19
|
|
|
@@ -33,7 +37,7 @@
|
|
|
33
37
|
font-style: normal;
|
|
34
38
|
font-weight: 500;
|
|
35
39
|
line-height: 1.5rem;
|
|
36
|
-
${
|
|
40
|
+
${l.truncateTextInRows(2)}
|
|
37
41
|
}
|
|
38
42
|
|
|
39
43
|
& .wrapper__description {
|
|
@@ -43,20 +47,24 @@
|
|
|
43
47
|
font-weight: 400;
|
|
44
48
|
line-height: 1rem;
|
|
45
49
|
letter-spacing: 0.025rem;
|
|
46
|
-
${
|
|
50
|
+
${l.truncateTextInRows(2)}
|
|
47
51
|
}
|
|
48
52
|
}
|
|
49
|
-
`,
|
|
53
|
+
`,M=d.styled.div`
|
|
50
54
|
width: 100%;
|
|
51
55
|
height: 11.625rem;
|
|
52
56
|
border-radius: 0.75rem;
|
|
53
|
-
background: ${
|
|
54
|
-
`,
|
|
57
|
+
background: ${l.linearGradientAnimation("-90deg")};
|
|
58
|
+
`,R=d.styled.div`
|
|
55
59
|
display: flex;
|
|
56
60
|
flex-direction: column;
|
|
57
61
|
align-items: center;
|
|
58
62
|
gap: 0.75rem;
|
|
59
63
|
|
|
64
|
+
&:hover {
|
|
65
|
+
cursor: pointer;
|
|
66
|
+
}
|
|
67
|
+
|
|
60
68
|
& .wrapper__icon {
|
|
61
69
|
display: flex;
|
|
62
70
|
width: 2.75rem;
|
|
@@ -65,9 +73,13 @@
|
|
|
65
73
|
align-items: center;
|
|
66
74
|
font-size: 1.75rem;
|
|
67
75
|
color: var(--gray-950, #14161a);
|
|
68
|
-
background: var(--neutral-
|
|
76
|
+
background: var(--neutral-95004, rgba(20, 22, 26, 0.04));
|
|
69
77
|
border-radius: 999px;
|
|
70
78
|
|
|
79
|
+
&:hover {
|
|
80
|
+
background: var(--neutral-95008, rgba(20, 22, 26, 0.08));
|
|
81
|
+
}
|
|
82
|
+
|
|
71
83
|
& i {
|
|
72
84
|
width: auto;
|
|
73
85
|
}
|
|
@@ -83,20 +95,19 @@
|
|
|
83
95
|
}
|
|
84
96
|
|
|
85
97
|
&.active {
|
|
86
|
-
background: var(--gray-950, #14161a);
|
|
87
|
-
|
|
88
98
|
& .wrapper__icon {
|
|
99
|
+
background: var(--gray-950, #14161a);
|
|
89
100
|
color: var(--white, #fff);
|
|
90
101
|
}
|
|
91
102
|
}
|
|
92
103
|
|
|
93
|
-
@media (max-width: ${
|
|
104
|
+
@media (max-width: ${x.MOBILE_SIZE_PX+"px"}) {
|
|
94
105
|
flex-direction: row;
|
|
95
106
|
align-items: center;
|
|
96
107
|
gap: 0.25rem;
|
|
97
108
|
border-radius: 999px;
|
|
98
109
|
width: 100%;
|
|
99
|
-
background: var(--neutral-
|
|
110
|
+
background: var(--neutral-95004, rgba(20, 22, 26, 0.04));
|
|
100
111
|
padding: 0 0.75rem;
|
|
101
112
|
|
|
102
113
|
& .wrapper__icon {
|
|
@@ -121,13 +132,13 @@
|
|
|
121
132
|
width: 7.5rem;
|
|
122
133
|
width: 7.5rem;
|
|
123
134
|
border-radius: 999px;
|
|
124
|
-
background: ${
|
|
135
|
+
background: ${l.linearGradientAnimation("-90deg")};
|
|
125
136
|
|
|
126
|
-
@media (max-width: ${
|
|
137
|
+
@media (max-width: ${x.MOBILE_SIZE_PX+"px"}) {
|
|
127
138
|
width: 7.5rem;
|
|
128
139
|
height: 2.5rem;
|
|
129
140
|
}
|
|
130
|
-
`,
|
|
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`
|
|
131
142
|
display: flex;
|
|
132
143
|
flex-direction: column;
|
|
133
144
|
align-items: center;
|
|
@@ -179,7 +190,7 @@
|
|
|
179
190
|
}
|
|
180
191
|
}
|
|
181
192
|
|
|
182
|
-
@media (max-width: ${
|
|
193
|
+
@media (max-width: ${x.MOBILE_SIZE_PX+"px"}) {
|
|
183
194
|
& .wrapper__tags {
|
|
184
195
|
display: flex;
|
|
185
196
|
overflow-x: scroll;
|
|
@@ -191,4 +202,4 @@
|
|
|
191
202
|
grid-template-columns: ${i=>`repeat(${i==null?void 0:i.limitCardsForMobile}, minmax(0, 1fr))`};
|
|
192
203
|
}
|
|
193
204
|
}
|
|
194
|
-
`,
|
|
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;
|
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
import { jsx as i, jsxs as s } from "react/jsx-runtime";
|
|
2
|
-
import { forwardRef as l } from "react";
|
|
3
|
-
import { s as
|
|
2
|
+
import { forwardRef as l, useLayoutEffect as E } from "react";
|
|
3
|
+
import { s as d } from "./emotion-styled.browser.esm-BNN1dTl3.js";
|
|
4
4
|
import { M as u } from "./consts-BuFChS64.js";
|
|
5
|
-
import {
|
|
6
|
-
import
|
|
7
|
-
import { u as
|
|
8
|
-
|
|
9
|
-
const O = p.div`
|
|
5
|
+
import { n as $, m as k, l as I } from "./utils-BhG1dImS.js";
|
|
6
|
+
import F from "./Icon.js";
|
|
7
|
+
import { u as L } from "./emotion-element-f0de968e.browser.esm-CkCiQliQ.js";
|
|
8
|
+
const A = d.div`
|
|
10
9
|
display: flex;
|
|
11
10
|
width: 100%;
|
|
12
11
|
height: fit-content;
|
|
@@ -18,6 +17,10 @@ const O = p.div`
|
|
|
18
17
|
border: 1px solid var(--neutral-9508, rgba(20, 22, 26, 0.08));
|
|
19
18
|
background: var(--Lanaco-Gray-white, #fff);
|
|
20
19
|
|
|
20
|
+
&:hover {
|
|
21
|
+
cursor: pointer;
|
|
22
|
+
}
|
|
23
|
+
|
|
21
24
|
/* drop-shadow-sm */
|
|
22
25
|
box-shadow: 0px 1px 2px 0px rgba(0, 0, 0, 0.05);
|
|
23
26
|
|
|
@@ -54,17 +57,21 @@ const O = p.div`
|
|
|
54
57
|
${$(2)}
|
|
55
58
|
}
|
|
56
59
|
}
|
|
57
|
-
`,
|
|
60
|
+
`, O = d.div`
|
|
58
61
|
width: 100%;
|
|
59
62
|
height: 11.625rem;
|
|
60
63
|
border-radius: 0.75rem;
|
|
61
|
-
background: ${
|
|
62
|
-
`,
|
|
64
|
+
background: ${k("-90deg")};
|
|
65
|
+
`, W = d.div`
|
|
63
66
|
display: flex;
|
|
64
67
|
flex-direction: column;
|
|
65
68
|
align-items: center;
|
|
66
69
|
gap: 0.75rem;
|
|
67
70
|
|
|
71
|
+
&:hover {
|
|
72
|
+
cursor: pointer;
|
|
73
|
+
}
|
|
74
|
+
|
|
68
75
|
& .wrapper__icon {
|
|
69
76
|
display: flex;
|
|
70
77
|
width: 2.75rem;
|
|
@@ -73,9 +80,13 @@ const O = p.div`
|
|
|
73
80
|
align-items: center;
|
|
74
81
|
font-size: 1.75rem;
|
|
75
82
|
color: var(--gray-950, #14161a);
|
|
76
|
-
background: var(--neutral-
|
|
83
|
+
background: var(--neutral-95004, rgba(20, 22, 26, 0.04));
|
|
77
84
|
border-radius: 999px;
|
|
78
85
|
|
|
86
|
+
&:hover {
|
|
87
|
+
background: var(--neutral-95008, rgba(20, 22, 26, 0.08));
|
|
88
|
+
}
|
|
89
|
+
|
|
79
90
|
& i {
|
|
80
91
|
width: auto;
|
|
81
92
|
}
|
|
@@ -91,9 +102,8 @@ const O = p.div`
|
|
|
91
102
|
}
|
|
92
103
|
|
|
93
104
|
&.active {
|
|
94
|
-
background: var(--gray-950, #14161a);
|
|
95
|
-
|
|
96
105
|
& .wrapper__icon {
|
|
106
|
+
background: var(--gray-950, #14161a);
|
|
97
107
|
color: var(--white, #fff);
|
|
98
108
|
}
|
|
99
109
|
}
|
|
@@ -104,7 +114,7 @@ const O = p.div`
|
|
|
104
114
|
gap: 0.25rem;
|
|
105
115
|
border-radius: 999px;
|
|
106
116
|
width: 100%;
|
|
107
|
-
background: var(--neutral-
|
|
117
|
+
background: var(--neutral-95004, rgba(20, 22, 26, 0.04));
|
|
108
118
|
padding: 0 0.75rem;
|
|
109
119
|
|
|
110
120
|
& .wrapper__icon {
|
|
@@ -125,34 +135,34 @@ const O = p.div`
|
|
|
125
135
|
white-space: nowrap;
|
|
126
136
|
}
|
|
127
137
|
}
|
|
128
|
-
`,
|
|
138
|
+
`, S = d.div`
|
|
129
139
|
width: 7.5rem;
|
|
130
140
|
width: 7.5rem;
|
|
131
141
|
border-radius: 999px;
|
|
132
|
-
background: ${
|
|
142
|
+
background: ${k("-90deg")};
|
|
133
143
|
|
|
134
144
|
@media (max-width: ${u + "px"}) {
|
|
135
145
|
width: 7.5rem;
|
|
136
146
|
height: 2.5rem;
|
|
137
147
|
}
|
|
138
|
-
`,
|
|
139
|
-
({ text: r, isActive: o, icon: t, onSelectCard: a = () => {
|
|
140
|
-
} },
|
|
141
|
-
/* @__PURE__ */ i(
|
|
148
|
+
`, j = l(({}, r) => /* @__PURE__ */ i(S, {})), q = l(
|
|
149
|
+
({ text: r, isActive: o = !1, icon: t, onSelectCard: a = () => {
|
|
150
|
+
} }, p) => /* @__PURE__ */ s(W, { className: o ? "active" : "", onClick: a, children: [
|
|
151
|
+
/* @__PURE__ */ i(F, { icon: t, className: "wrapper__icon" }),
|
|
142
152
|
/* @__PURE__ */ i("div", { className: "wrapper__text", children: r })
|
|
143
153
|
] })
|
|
144
|
-
),
|
|
154
|
+
), R = l(
|
|
145
155
|
({
|
|
146
156
|
image: r,
|
|
147
157
|
imageComponent: o,
|
|
148
158
|
title: t,
|
|
149
159
|
description: a,
|
|
150
|
-
className:
|
|
151
|
-
onSelectCard:
|
|
160
|
+
className: p,
|
|
161
|
+
onSelectCard: f = () => {
|
|
152
162
|
}
|
|
153
163
|
}, x) => {
|
|
154
|
-
const { theme:
|
|
155
|
-
return /* @__PURE__ */ s(
|
|
164
|
+
const { theme: h } = L();
|
|
165
|
+
return /* @__PURE__ */ s(A, { theme: h, className: p, onClick: f, children: [
|
|
156
166
|
I(o) ? o : /* @__PURE__ */ i("img", { src: r, className: "wrapper__image" }),
|
|
157
167
|
/* @__PURE__ */ s("div", { className: "wrapper__content", children: [
|
|
158
168
|
t && /* @__PURE__ */ i("div", { className: "wrapper__title", children: t }),
|
|
@@ -160,13 +170,13 @@ const O = p.div`
|
|
|
160
170
|
] })
|
|
161
171
|
] });
|
|
162
172
|
}
|
|
163
|
-
),
|
|
173
|
+
), T = l(({}, r) => /* @__PURE__ */ s(O, { children: [
|
|
164
174
|
/* @__PURE__ */ i("div", { className: "wrapper__image" }),
|
|
165
175
|
/* @__PURE__ */ s("div", { className: "wrapper__content", children: [
|
|
166
176
|
/* @__PURE__ */ i("div", { className: "wrapper__title" }),
|
|
167
177
|
/* @__PURE__ */ i("div", { className: "wrapper__description" })
|
|
168
178
|
] })
|
|
169
|
-
] })),
|
|
179
|
+
] })), B = d.div`
|
|
170
180
|
display: flex;
|
|
171
181
|
flex-direction: column;
|
|
172
182
|
align-items: center;
|
|
@@ -230,78 +240,78 @@ const O = p.div`
|
|
|
230
240
|
grid-template-columns: ${(r) => `repeat(${r == null ? void 0 : r.limitCardsForMobile}, minmax(0, 1fr))`};
|
|
231
241
|
}
|
|
232
242
|
}
|
|
233
|
-
`,
|
|
243
|
+
`, Q = l(
|
|
234
244
|
({
|
|
235
245
|
title: r,
|
|
236
246
|
subtitle: o,
|
|
237
247
|
tags: t = [],
|
|
238
248
|
items: a = [],
|
|
239
|
-
limitTags:
|
|
240
|
-
limitTagsForMobile:
|
|
249
|
+
limitTags: p = 5,
|
|
250
|
+
limitTagsForMobile: f = 5,
|
|
241
251
|
limit: x = 3,
|
|
242
|
-
limitForMobile:
|
|
243
|
-
selectedTag:
|
|
252
|
+
limitForMobile: h = 2,
|
|
253
|
+
selectedTag: N,
|
|
244
254
|
onSelectTag: _ = () => {
|
|
245
255
|
},
|
|
246
|
-
onSelectCard:
|
|
256
|
+
onSelectCard: g = () => {
|
|
247
257
|
}
|
|
248
|
-
},
|
|
249
|
-
var
|
|
250
|
-
|
|
251
|
-
_ == null || _(e);
|
|
252
|
-
}, g = (e) => {
|
|
253
|
-
h == null || h(e);
|
|
254
|
-
};
|
|
255
|
-
return F(() => {
|
|
258
|
+
}, z) => {
|
|
259
|
+
var v, y;
|
|
260
|
+
return E(() => {
|
|
256
261
|
const e = () => {
|
|
257
262
|
document.querySelector(".wrapper__cards").querySelectorAll(".wrapper__card").forEach((b) => {
|
|
258
|
-
const
|
|
259
|
-
b.style.gridRowEnd = `span ${
|
|
263
|
+
const M = b.getBoundingClientRect().height, C = Math.ceil((M + 10) / 20);
|
|
264
|
+
b.style.gridRowEnd = `span ${C}`;
|
|
260
265
|
});
|
|
261
|
-
};
|
|
262
|
-
|
|
266
|
+
}, m = document.querySelector(".wrapper__cards").querySelectorAll(".wrapper__image");
|
|
267
|
+
let c = 0;
|
|
268
|
+
return m.length === 0 ? e() : (m.forEach((w) => {
|
|
269
|
+
w.complete ? c++ : w.addEventListener("load", () => {
|
|
270
|
+
c++, c === m.length && e();
|
|
271
|
+
});
|
|
272
|
+
}), c === m.length && e()), window.addEventListener("resize", e), () => {
|
|
263
273
|
window.removeEventListener("resize", e);
|
|
264
274
|
};
|
|
265
|
-
}), /* @__PURE__ */ s(
|
|
266
|
-
|
|
275
|
+
}, []), /* @__PURE__ */ s(
|
|
276
|
+
B,
|
|
267
277
|
{
|
|
268
|
-
ref:
|
|
269
|
-
limitTags:
|
|
270
|
-
limitTagsForMobile:
|
|
278
|
+
ref: z,
|
|
279
|
+
limitTags: p,
|
|
280
|
+
limitTagsForMobile: f,
|
|
271
281
|
limitCards: x,
|
|
272
|
-
limitCardsForMobile:
|
|
282
|
+
limitCardsForMobile: h,
|
|
273
283
|
children: [
|
|
274
284
|
/* @__PURE__ */ s("div", { className: "wrapper__heading", children: [
|
|
275
285
|
r && /* @__PURE__ */ i("div", { className: "wrapper__title", children: r }),
|
|
276
286
|
o && /* @__PURE__ */ i("div", { className: "wrapper__subtitle", children: o })
|
|
277
287
|
] }),
|
|
278
288
|
/* @__PURE__ */ i("div", { className: "wrapper__tags", children: t && (t == null ? void 0 : t.length) > 0 ? t == null ? void 0 : t.map((e, n) => /* @__PURE__ */ i(
|
|
279
|
-
|
|
289
|
+
q,
|
|
280
290
|
{
|
|
281
291
|
icon: e == null ? void 0 : e.icon,
|
|
282
|
-
text: e == null ? void 0 : e.
|
|
283
|
-
isActive: (e == null ? void 0 : e.
|
|
284
|
-
onSelectCard: () =>
|
|
292
|
+
text: e == null ? void 0 : e.title,
|
|
293
|
+
isActive: (e == null ? void 0 : e.code) === N,
|
|
294
|
+
onSelectCard: () => _ == null ? void 0 : _(e)
|
|
285
295
|
},
|
|
286
296
|
`field-of-interests-masonry-tag__${n + 1}`
|
|
287
|
-
)) : (
|
|
288
|
-
|
|
297
|
+
)) : (v = Array.from("12345")) == null ? void 0 : v.map((e, n) => /* @__PURE__ */ i(
|
|
298
|
+
j,
|
|
289
299
|
{},
|
|
290
300
|
`field-of-interests-masonry-tag-skeleton__${n + 1}`
|
|
291
301
|
)) }),
|
|
292
302
|
/* @__PURE__ */ i("div", { className: "wrapper__cards", children: a && (a == null ? void 0 : a.length) > 0 ? a == null ? void 0 : a.map((e, n) => /* @__PURE__ */ i(
|
|
293
|
-
|
|
303
|
+
R,
|
|
294
304
|
{
|
|
295
305
|
image: e == null ? void 0 : e.image,
|
|
296
306
|
imageComponent: e == null ? void 0 : e.imageComponent,
|
|
297
307
|
title: e == null ? void 0 : e.title,
|
|
298
308
|
description: e == null ? void 0 : e.description,
|
|
299
|
-
onSelectCard: () => g == null ? void 0 : g(e
|
|
309
|
+
onSelectCard: () => g == null ? void 0 : g(e),
|
|
300
310
|
className: "wrapper__card"
|
|
301
311
|
},
|
|
302
312
|
`field-of-interests-with-tags-card__${n + 1}`
|
|
303
|
-
)) : (
|
|
304
|
-
|
|
313
|
+
)) : (y = Array.from("12345")) == null ? void 0 : y.map((e, n) => /* @__PURE__ */ i(
|
|
314
|
+
T,
|
|
305
315
|
{},
|
|
306
316
|
`field-of-interests-with-tags-card-skeleton__${n + 1}`
|
|
307
317
|
)) })
|
|
@@ -311,5 +321,5 @@ const O = p.div`
|
|
|
311
321
|
}
|
|
312
322
|
);
|
|
313
323
|
export {
|
|
314
|
-
|
|
324
|
+
Q as default
|
|
315
325
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const t=require("react/jsx-runtime"),g=require("react"),h=require("./emotion-styled.browser.esm-BtEseadx.cjs"),w=require("./consts-goSZX3xP.cjs"),y=require("./utils-
|
|
1
|
+
"use strict";const t=require("react/jsx-runtime"),g=require("react"),h=require("./emotion-styled.browser.esm-BtEseadx.cjs"),w=require("./consts-goSZX3xP.cjs"),y=require("./utils-BWzf4vLl.cjs"),$=require("./index-D8lR_JKg.cjs"),c=h.styled.div`
|
|
2
2
|
width: 100%;
|
|
3
3
|
height: 11.625rem;
|
|
4
4
|
border-radius: 0.75rem;
|
|
@@ -2,8 +2,8 @@ import { jsx as t, jsxs as y } from "react/jsx-runtime";
|
|
|
2
2
|
import { forwardRef as g } from "react";
|
|
3
3
|
import { s as _ } from "./emotion-styled.browser.esm-BNN1dTl3.js";
|
|
4
4
|
import { M as x } from "./consts-BuFChS64.js";
|
|
5
|
-
import { m as v, l as C } from "./utils-
|
|
6
|
-
import { S as F } from "./index-
|
|
5
|
+
import { m as v, l as C } from "./utils-BhG1dImS.js";
|
|
6
|
+
import { S as F } from "./index-BT4FT6f0.js";
|
|
7
7
|
const N = _.div`
|
|
8
8
|
width: 100%;
|
|
9
9
|
height: 11.625rem;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const r=require("react/jsx-runtime"),l=require("react"),p=require("./emotion-styled.browser.esm-BtEseadx.cjs"),o=require("./utils-
|
|
1
|
+
"use strict";const r=require("react/jsx-runtime"),l=require("react"),p=require("./emotion-styled.browser.esm-BtEseadx.cjs"),o=require("./utils-BWzf4vLl.cjs"),k=require("./Icon.cjs"),$=require("./emotion-element-f0de968e.browser.esm-B7k6i6lC.cjs"),N=require("./consts-goSZX3xP.cjs"),I=p.styled.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex-direction: column;
|
|
4
4
|
align-items: flex-start;
|
|
@@ -75,6 +75,7 @@
|
|
|
75
75
|
|
|
76
76
|
&:hover {
|
|
77
77
|
cursor: pointer;
|
|
78
|
+
background: var(--neutral-95008, rgba(20, 22, 26, 0.08));
|
|
78
79
|
}
|
|
79
80
|
|
|
80
81
|
& .wrapper__icon {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as i, jsxs as s } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef as l } from "react";
|
|
3
3
|
import { s as p } from "./emotion-styled.browser.esm-BNN1dTl3.js";
|
|
4
|
-
import {
|
|
4
|
+
import { n as y, m as b, k as C, l as I } from "./utils-BhG1dImS.js";
|
|
5
5
|
import W from "./Icon.js";
|
|
6
6
|
import { u as F } from "./emotion-element-f0de968e.browser.esm-CkCiQliQ.js";
|
|
7
7
|
import { M as j } from "./consts-BuFChS64.js";
|
|
@@ -82,6 +82,7 @@ const z = p.div`
|
|
|
82
82
|
|
|
83
83
|
&:hover {
|
|
84
84
|
cursor: pointer;
|
|
85
|
+
background: var(--neutral-95008, rgba(20, 22, 26, 0.08));
|
|
85
86
|
}
|
|
86
87
|
|
|
87
88
|
& .wrapper__icon {
|
package/dist/FileInput.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const c=require("react/jsx-runtime"),g=require("react"),b=require("./emotion-styled.browser.esm-BtEseadx.cjs"),t=require("./index-BPVoEhTF.cjs"),r=require("./utils-
|
|
1
|
+
"use strict";const c=require("react/jsx-runtime"),g=require("react"),b=require("./emotion-styled.browser.esm-BtEseadx.cjs"),t=require("./index-BPVoEhTF.cjs"),r=require("./utils-BWzf4vLl.cjs"),k=require("./emotion-element-f0de968e.browser.esm-B7k6i6lC.cjs"),q=b.styled.label`
|
|
2
2
|
display: inline-flex;
|
|
3
3
|
box-sizing: border-box;
|
|
4
4
|
width: 100%;
|
package/dist/FileInput.js
CHANGED
|
@@ -2,7 +2,7 @@ import { jsxs as R, jsx as m } from "react/jsx-runtime";
|
|
|
2
2
|
import { forwardRef as S, useState as g } from "react";
|
|
3
3
|
import { s as c } from "./emotion-styled.browser.esm-BNN1dTl3.js";
|
|
4
4
|
import { P as t } from "./index-S5Cd7WrG.js";
|
|
5
|
-
import { d as y, b as r, e as V, c as x, h as p } from "./utils-
|
|
5
|
+
import { d as y, b as r, e as V, c as x, h as p } from "./utils-BhG1dImS.js";
|
|
6
6
|
import { u as B } from "./emotion-element-f0de968e.browser.esm-CkCiQliQ.js";
|
|
7
7
|
const D = c.label`
|
|
8
8
|
display: inline-flex;
|
package/dist/FlexGridItem.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const X=require("react/jsx-runtime"),i=require("react"),n=require("./index-BPVoEhTF.cjs"),g=require("./emotion-styled.browser.esm-BtEseadx.cjs"),q=require("./utils-
|
|
1
|
+
"use strict";const X=require("react/jsx-runtime"),i=require("react"),n=require("./index-BPVoEhTF.cjs"),g=require("./emotion-styled.browser.esm-BtEseadx.cjs"),q=require("./utils-BWzf4vLl.cjs"),$=g.styled.div`
|
|
2
2
|
${s=>s.width>0?"":"flex: 1;"}
|
|
3
3
|
min-width: ${s=>100/s.columns}%;
|
|
4
4
|
width: ${s=>s.width}%;
|
package/dist/FlexGridItem.js
CHANGED
|
@@ -2,7 +2,7 @@ import { jsx as y } from "react/jsx-runtime";
|
|
|
2
2
|
import { forwardRef as N, useState as S, useEffect as b } from "react";
|
|
3
3
|
import { P as i } from "./index-S5Cd7WrG.js";
|
|
4
4
|
import { s as I } from "./emotion-styled.browser.esm-BNN1dTl3.js";
|
|
5
|
-
import { u as M } from "./utils-
|
|
5
|
+
import { u as M } from "./utils-BhG1dImS.js";
|
|
6
6
|
const W = I.div`
|
|
7
7
|
${(t) => t.width > 0 ? "" : "flex: 1;"}
|
|
8
8
|
min-width: ${(t) => 100 / t.columns}%;
|
package/dist/FormField.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const o=require("react/jsx-runtime"),r=require("./index-BPVoEhTF.cjs"),a=require("./emotion-styled.browser.esm-BtEseadx.cjs"),s=require("./utils-
|
|
1
|
+
"use strict";const o=require("react/jsx-runtime"),r=require("./index-BPVoEhTF.cjs"),a=require("./emotion-styled.browser.esm-BtEseadx.cjs"),s=require("./utils-BWzf4vLl.cjs"),b=require("./emotion-element-f0de968e.browser.esm-B7k6i6lC.cjs"),g=a.styled.label`
|
|
2
2
|
display: block;
|
|
3
3
|
margin-bottom: 4px;
|
|
4
4
|
${e=>s.getComponentTypographyCss(e.theme,"FormField",e.size,"enabled")}
|
package/dist/FormField.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsxs as b, jsx as a } from "react/jsx-runtime";
|
|
2
2
|
import { P as l } from "./index-S5Cd7WrG.js";
|
|
3
3
|
import { s as m } from "./emotion-styled.browser.esm-BNN1dTl3.js";
|
|
4
|
-
import { c as i, b as n } from "./utils-
|
|
4
|
+
import { c as i, b as n } from "./utils-BhG1dImS.js";
|
|
5
5
|
import { u as g } from "./emotion-element-f0de968e.browser.esm-CkCiQliQ.js";
|
|
6
6
|
const f = m.label`
|
|
7
7
|
display: block;
|
package/dist/FormView.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const e=require("react/jsx-runtime"),W=require("react"),r=require("./index-BPVoEhTF.cjs"),g=require("./emotion-styled.browser.esm-BtEseadx.cjs"),$=require("./FlexGrid.cjs"),M=require("./FlexGridItem.cjs"),b=require("./Button.cjs"),m=require("./IconButton.cjs"),Y=require("./TextInput.cjs"),U=require("./CheckBoxInput.cjs"),H=require("./RadioGroup.cjs"),J=require("./NumberInput.cjs"),K=require("./DecimalInput.cjs"),L=require("./PasswordInput.cjs"),Q=require("./TextAreaInput.cjs"),X=require("./TimeInput.cjs"),Z=require("./ColorInput.cjs"),z=require("./FileInput.cjs"),ee=require("./RangeSlider.cjs"),x=require("./utils-
|
|
1
|
+
"use strict";const e=require("react/jsx-runtime"),W=require("react"),r=require("./index-BPVoEhTF.cjs"),g=require("./emotion-styled.browser.esm-BtEseadx.cjs"),$=require("./FlexGrid.cjs"),M=require("./FlexGridItem.cjs"),b=require("./Button.cjs"),m=require("./IconButton.cjs"),Y=require("./TextInput.cjs"),U=require("./CheckBoxInput.cjs"),H=require("./RadioGroup.cjs"),J=require("./NumberInput.cjs"),K=require("./DecimalInput.cjs"),L=require("./PasswordInput.cjs"),Q=require("./TextAreaInput.cjs"),X=require("./TimeInput.cjs"),Z=require("./ColorInput.cjs"),z=require("./FileInput.cjs"),ee=require("./RangeSlider.cjs"),x=require("./utils-BWzf4vLl.cjs"),re=require("./FormField.cjs"),te=require("./emotion-element-f0de968e.browser.esm-B7k6i6lC.cjs"),oe=g.styled.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
justify-content: space-between;
|
|
4
4
|
`,se=g.styled.form`
|
package/dist/FormView.js
CHANGED
|
@@ -17,7 +17,7 @@ import X from "./TimeInput.js";
|
|
|
17
17
|
import Z from "./ColorInput.js";
|
|
18
18
|
import z from "./FileInput.js";
|
|
19
19
|
import ee from "./RangeSlider.js";
|
|
20
|
-
import { g as re, a as te, b as oe } from "./utils-
|
|
20
|
+
import { g as re, a as te, b as oe } from "./utils-BhG1dImS.js";
|
|
21
21
|
import ae from "./FormField.js";
|
|
22
22
|
import { u as ne } from "./emotion-element-f0de968e.browser.esm-CkCiQliQ.js";
|
|
23
23
|
const ie = y.div`
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
"use strict";const r=require("react/jsx-runtime"),
|
|
1
|
+
"use strict";const r=require("react/jsx-runtime"),s=require("react"),o=require("./emotion-styled.browser.esm-BtEseadx.cjs"),m=require("./consts-goSZX3xP.cjs"),d=require("./utils-BWzf4vLl.cjs"),y=require("./Icon.cjs"),v=require("./emotion-element-f0de968e.browser.esm-B7k6i6lC.cjs"),j=o.styled.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex-direction: column;
|
|
4
4
|
align-items: flex-start;
|
|
5
|
-
width: fit-content;
|
|
6
5
|
border-radius: 0.75rem;
|
|
7
6
|
border: 1px solid var(--neutral-9508, rgba(20, 22, 26, 0.08));
|
|
8
7
|
background: var(--Lanaco-Gray-white, #fff);
|
|
@@ -96,6 +95,7 @@
|
|
|
96
95
|
|
|
97
96
|
&:hover {
|
|
98
97
|
cursor: pointer;
|
|
98
|
+
background: var(--neutral-95004, rgba(20, 22, 26, 0.04));
|
|
99
99
|
}
|
|
100
100
|
|
|
101
101
|
& .wrapper__icon {
|
|
@@ -134,7 +134,7 @@
|
|
|
134
134
|
height: 3rem;
|
|
135
135
|
border-radius: 999px;
|
|
136
136
|
background: ${d.linearGradientAnimation("-90deg")};
|
|
137
|
-
`,C=
|
|
137
|
+
`,C=s.forwardRef(({},a)=>r.jsx(N,{})),E=s.forwardRef(({title:a,icon:i,onSelectCard:t=()=>{}},p)=>r.jsxs($,{onClick:t,children:[d.isDefinedNotEmptyString(i)&&r.jsx(y,{icon:i,className:"wrapper__icon"}),r.jsx("div",{className:"wrapper__text",children:a})]})),I=s.forwardRef(({imageUrl:a,imageComponent:i,title:t,onSelectCard:p=()=>{}},c)=>{const{theme:g}=v.useTheme();return r.jsxs(j,{ref:c,theme:g,onClick:p,children:[d.isDefined(i)?i:r.jsx("img",{src:a,className:"wrapper__image"}),r.jsx("div",{className:"wrapper__content",children:r.jsx("div",{className:"wrapper__title",children:t})})]})}),W=s.forwardRef(({},a)=>r.jsx(k,{})),G=o.styled.div`
|
|
138
138
|
display: flex;
|
|
139
139
|
flex-direction: column;
|
|
140
140
|
align-items: center;
|
|
@@ -210,4 +210,4 @@
|
|
|
210
210
|
gap: 1rem;
|
|
211
211
|
}
|
|
212
212
|
}
|
|
213
|
-
`,R=
|
|
213
|
+
`,R=s.forwardRef(({title:a,subtitle:i,options:t=[],limitTags:p=7,limitTagsForMobile:c=2,limit:g=3,limitForMobile:f=3,items:n=[],onSelectTag:_=()=>{},onSelectCard:h=()=>{},isLoading:u},b)=>{var w,x;return r.jsxs(G,{ref:b,limitTags:p,limitTagsForMobile:c,limitCards:g,limitCardsForMobile:f,children:[r.jsxs("div",{className:"wrapper__heading",children:[a&&r.jsx("div",{className:"wrapper__title",children:a}),i&&r.jsx("div",{className:"wrapper__subtitle",children:i})]}),r.jsx("div",{className:"wrapper__cards",children:n&&(n==null?void 0:n.length)>0?n==null?void 0:n.map((e,l)=>r.jsx(I,{imageUrl:e==null?void 0:e.imageUrl,imageComponent:e==null?void 0:e.imageComponent,title:e==null?void 0:e.title,onSelectCard:()=>{h==null||h(e)}},`general-with-tags-card__${l+1}`)):(w=Array.from("123"))==null?void 0:w.map((e,l)=>r.jsx(W,{},`general-with-tags-card-skeleton__${l+1}`))}),(t==null?void 0:t.length)>0&&r.jsx("div",{className:"wrapper__tags",children:t==null?void 0:t.map((e,l)=>r.jsx(E,{icon:e==null?void 0:e.icon,title:e==null?void 0:e.title,onSelectCard:()=>_==null?void 0:_(e)},`general-with-tags-card-tag__${l+1}`))}),u===!0&&!((t==null?void 0:t.length)>0)&&r.jsx("div",{className:"wrapper__tags",children:(x=Array.from("123"))==null?void 0:x.map((e,l)=>r.jsx(C,{},`general-with-tags-card-tag-skeleton__${l+1}`))})]})});module.exports=R;
|
|
@@ -2,14 +2,13 @@ import { jsx as a, jsxs as m } from "react/jsx-runtime";
|
|
|
2
2
|
import { forwardRef as o } from "react";
|
|
3
3
|
import { s } from "./emotion-styled.browser.esm-BNN1dTl3.js";
|
|
4
4
|
import { M as d } from "./consts-BuFChS64.js";
|
|
5
|
-
import {
|
|
5
|
+
import { n as y, m as x, k, l as $ } from "./utils-BhG1dImS.js";
|
|
6
6
|
import N from "./Icon.js";
|
|
7
7
|
import { u as C } from "./emotion-element-f0de968e.browser.esm-CkCiQliQ.js";
|
|
8
8
|
const W = s.div`
|
|
9
9
|
display: flex;
|
|
10
10
|
flex-direction: column;
|
|
11
11
|
align-items: flex-start;
|
|
12
|
-
width: fit-content;
|
|
13
12
|
border-radius: 0.75rem;
|
|
14
13
|
border: 1px solid var(--neutral-9508, rgba(20, 22, 26, 0.08));
|
|
15
14
|
background: var(--Lanaco-Gray-white, #fff);
|
|
@@ -103,6 +102,7 @@ const W = s.div`
|
|
|
103
102
|
|
|
104
103
|
&:hover {
|
|
105
104
|
cursor: pointer;
|
|
105
|
+
background: var(--neutral-95004, rgba(20, 22, 26, 0.04));
|
|
106
106
|
}
|
|
107
107
|
|
|
108
108
|
& .wrapper__icon {
|
|
@@ -249,7 +249,7 @@ const W = s.div`
|
|
|
249
249
|
},
|
|
250
250
|
isLoading: b
|
|
251
251
|
}, v) => {
|
|
252
|
-
var
|
|
252
|
+
var _, f;
|
|
253
253
|
return /* @__PURE__ */ m(
|
|
254
254
|
A,
|
|
255
255
|
{
|
|
@@ -274,7 +274,7 @@ const W = s.div`
|
|
|
274
274
|
}
|
|
275
275
|
},
|
|
276
276
|
`general-with-tags-card__${l + 1}`
|
|
277
|
-
)) : (
|
|
277
|
+
)) : (_ = Array.from("123")) == null ? void 0 : _.map((e, l) => /* @__PURE__ */ a(
|
|
278
278
|
M,
|
|
279
279
|
{},
|
|
280
280
|
`general-with-tags-card-skeleton__${l + 1}`
|
|
@@ -288,7 +288,7 @@ const W = s.div`
|
|
|
288
288
|
},
|
|
289
289
|
`general-with-tags-card-tag__${l + 1}`
|
|
290
290
|
)) }),
|
|
291
|
-
b === !0 && !((t == null ? void 0 : t.length) > 0) && /* @__PURE__ */ a("div", { className: "wrapper__tags", children: (
|
|
291
|
+
b === !0 && !((t == null ? void 0 : t.length) > 0) && /* @__PURE__ */ a("div", { className: "wrapper__tags", children: (f = Array.from("123")) == null ? void 0 : f.map((e, l) => /* @__PURE__ */ a(
|
|
292
292
|
z,
|
|
293
293
|
{},
|
|
294
294
|
`general-with-tags-card-tag-skeleton__${l + 1}`
|