@lanaco/lnc-react-ui 4.0.88 → 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.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/AdBannerSection.cjs +37 -0
- package/dist/AdBannerSection.js +68 -0
- 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 +1 -1
- package/dist/BannerSectionCarousel.js +1 -1
- package/dist/BannerSectionWithList.cjs +1 -1
- package/dist/BannerSectionWithList.js +1 -1
- package/dist/BlogCardsSponsoredSection.cjs +4 -4
- package/dist/BlogCardsSponsoredSection.js +15 -15
- 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 +1 -1
- package/dist/BlogsSectionDetailed.js +7 -7
- package/dist/BlogsSectionLarge.cjs +1 -1
- package/dist/BlogsSectionLarge.js +2 -2
- package/dist/BlogsSectionSimple.cjs +1 -1
- package/dist/BlogsSectionSimple.js +16 -16
- package/dist/BlogsSectionSimpleCentered.cjs +1 -1
- package/dist/BlogsSectionSimpleCentered.js +2 -2
- package/dist/BlogsSectionWithFilters.cjs +6 -6
- package/dist/BlogsSectionWithFilters.js +102 -97
- package/dist/BrandHitsSection.cjs +1 -1
- package/dist/BrandHitsSection.js +7 -7
- 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-DYULk9y7.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 +2 -2
- package/dist/DetailedProductsSection.js +5 -5
- 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/FeedbackSection.cjs +51 -0
- package/dist/FeedbackSection.js +82 -0
- package/dist/FieldOfInterestsMasonrySection.cjs +17 -16
- package/dist/FieldOfInterestsMasonrySection.js +75 -64
- package/dist/FieldOfInterestsWithAvatarsCardsSection.cjs +1 -1
- package/dist/FieldOfInterestsWithAvatarsCardsSection.js +2 -2
- package/dist/FieldOfInterestsWithTagsCardsSection.cjs +1 -1
- package/dist/FieldOfInterestsWithTagsCardsSection.js +1 -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 +2 -3
- package/dist/GeneralWithTagsCardsSection.js +4 -5
- package/dist/GiftCardsSection.cjs +1 -1
- package/dist/GiftCardsSection.js +2 -2
- 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/QuattroCardsSection.cjs +163 -0
- package/dist/QuattroCardsSection.js +203 -0
- 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 +2 -2
- 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 +1 -1
- package/dist/SimpleCategoriesSection.js +3 -3
- 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 +16 -91
- package/dist/ThemeProvider.js +48 -1233
- 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 +1 -1
- package/dist/UrgentSaleProductsSection.js +1 -1
- package/dist/{index-DG7qQq8L.cjs → index-66FyQgVV.cjs} +1 -1
- package/dist/{index-BVaZWq6y.cjs → index-BRgZcjpI.cjs} +1 -1
- package/dist/{index-Yh18uk_f.js → index-Cru8Sd2q.js} +2 -2
- package/dist/{index-Ca38iPjf.js → index-D86vS9UF.js} +1 -1
- package/dist/{index-B9HSHvhH.cjs → index-D8lR_JKg.cjs} +1 -1
- package/dist/{index-Ccw8sLnK.cjs → index-DMysapsB.cjs} +1 -1
- package/dist/{index-Cx4KvZ9L.cjs → index-DZDz9qZP.cjs} +47 -9
- package/dist/{index-BBPnKoi6.js → index-DfHm_Mv1.js} +2 -2
- package/dist/{index-Db8wvLXS.js → index-DpdPtPbo.js} +1 -1
- package/dist/{index-iSD5jNBk.js → index-Kx8irvHH.js} +98 -46
- package/dist/index.cjs +1 -1
- package/dist/index.js +59 -53
- package/dist/{skeleton-BBSBZ4JV.cjs → skeleton-BcaMeKFQ.cjs} +1 -1
- package/dist/{skeleton-wfDIalr3.js → skeleton-BrUEdt6Z.js} +6 -6
- package/dist/{skeleton-C_Jypl8r.cjs → skeleton-DwZzdFei.cjs} +5 -5
- package/dist/{skeleton-DALCB1S7.js → skeleton-TrselJrj.js} +1 -1
- package/dist/{style-xvwWn3Zv.cjs → style-B8wrlDzY.cjs} +13 -7
- package/dist/{style-sLF37aOA.js → style-C3-67TPD.js} +17 -10
- 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-5JZtz7wj.cjs → suspense-categories-card-simple-B2swGa6t.cjs} +1 -1
- package/dist/{suspense-categories-card-simple-BTFqzXyn.js → suspense-categories-card-simple-BCn3U1cz.js} +1 -1
- package/dist/{suspense-large-BtfvnzWh.cjs → suspense-large-DMhn-lIG.cjs} +1 -1
- package/dist/{suspense-large-DFlSJhGG.js → suspense-large-DgzTM-qh.js} +1 -1
- package/dist/{suspense-product-card-detailed-DBNlkFiP.cjs → suspense-product-card-detailed-CuExvgd_.cjs} +1 -1
- package/dist/{suspense-product-card-detailed-CwdbxJrY.js → suspense-product-card-detailed-D7hKisw1.js} +2 -2
- package/dist/{suspense-product-card-simple--ExcEpD-.js → suspense-product-card-simple-BIVIVybi.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-BXCGNjIy.js} +12 -12
- package/package.json +5 -2
- package/vite.config.js +12 -0
- package/dist/useEffectOnce-DFrzfNzT.cjs +0 -1
- package/dist/useEffectOnce-guOKBPuL.js +0 -7
package/dist/Dropdown.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const g=require("react/jsx-runtime"),e=require("./index-BPVoEhTF.cjs"),n=require("react"),t=require("./CustomStyles-
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const g=require("react/jsx-runtime"),e=require("./index-BPVoEhTF.cjs"),n=require("react"),t=require("./CustomStyles-Uqkz9jDo.cjs"),l=require("./emotion-element-f0de968e.browser.esm-B7k6i6lC.cjs");require("./index-EeoArxOx.cjs");const O=require("./index-DaiUAQVF.cjs");function S(o){const s=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(o){for(const r in o)if(r!=="default"){const p=Object.getOwnPropertyDescriptor(o,r);Object.defineProperty(s,r,p.get?p:{enumerable:!0,get:()=>o[r]})}}return s.default=o,Object.freeze(s)}const M=S(n);var h=n.forwardRef(function(o,s){var r=t.useStateManager(o);return M.createElement(t.Select,l._extends({ref:s},r))}),j=h;const a=n.forwardRef((o,s)=>{const{styles:r,debounceTime:p=0,name:C,isSearchable:u=!0,isClearable:c=!0,size:i="small",color:y="primary",className:T="",style:P={},...b}=o,m=l.useTheme();return n.useCallback(O.debounce((f,d)=>{onInputChange==null||onInputChange(f,d)},p)),g.jsx(j,{ref:s,styles:r||t.customStyles,size:i,color:y,theme:m,isSearchable:u,isClearable:c,className:T,style:P,...b})});a.propTypes={options:e.PropTypes.array,styles:e.PropTypes.object,debounceTime:e.PropTypes.number,name:e.PropTypes.string,value:e.PropTypes.any,tabIndex:e.PropTypes.number,isSearchable:e.PropTypes.bool,isClearable:e.PropTypes.bool,isLoading:e.PropTypes.bool,isRtl:e.PropTypes.bool,isDisabled:e.PropTypes.bool,readOnly:e.PropTypes.bool,closeMenuOnSelect:e.PropTypes.bool,closeMenuOnScroll:e.PropTypes.oneOfType([e.PropTypes.bool,e.PropTypes.func]),escapeClearsValue:e.PropTypes.bool,filterOption:e.PropTypes.func,formatGroupLabel:e.PropTypes.func,formatOptionLabel:e.PropTypes.func,getOptionLabel:e.PropTypes.func,getOptionValue:e.PropTypes.func,hideSelectedOptions:e.PropTypes.bool,id:e.PropTypes.string,inputId:e.PropTypes.string,isOptionDisabled:e.PropTypes.func,isOptionSelected:e.PropTypes.func,loadingMessage:e.PropTypes.func,minMenuHeight:e.PropTypes.number,maxMenuHeight:e.PropTypes.number,menuPlacement:e.PropTypes.oneOf(["bottom","auto","top"]),menuPosition:e.PropTypes.oneOf(["absolute","fixed"]),menuShouldBlockScroll:e.PropTypes.bool,menuShouldScrollIntoView:e.PropTypes.bool,openMenuOnFocus:e.PropTypes.bool,openMenuOnClick:e.PropTypes.bool,autoFocus:e.PropTypes.bool,placeholder:e.PropTypes.any,noOptionsMessage:e.PropTypes.string,menuIsOpen:e.PropTypes.bool,components:e.PropTypes.object,defaultValue:e.PropTypes.any,defaultInputValue:e.PropTypes.string,defaultMenuIsOpen:e.PropTypes.bool,delimiter:e.PropTypes.string,onChange:e.PropTypes.func,onInputChange:e.PropTypes.func,onMenuOpen:e.PropTypes.func,onMenuClose:e.PropTypes.func,onFocus:e.PropTypes.func,onBlur:e.PropTypes.func,className:e.PropTypes.string,style:e.PropTypes.object,color:e.PropTypes.oneOf(["primary","secondary","success","warning","danger","information","neutral","gray"]),size:e.PropTypes.oneOf(["small","medium","large"])};exports.components=t.components;exports.default=a;
|
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.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const c=require("react/jsx-runtime"),d=require("react"),s=require("./index-BPVoEhTF.cjs"),G=require("./emotion-styled.browser.esm-BtEseadx.cjs"),w=require("./Icon.cjs"),l=require("./utils-
|
|
1
|
+
"use strict";const c=require("react/jsx-runtime"),d=require("react"),s=require("./index-BPVoEhTF.cjs"),G=require("./emotion-styled.browser.esm-BtEseadx.cjs"),w=require("./Icon.cjs"),l=require("./utils-BWzf4vLl.cjs"),H=require("./emotion-element-f0de968e.browser.esm-B7k6i6lC.cjs"),J=G.styled.div`
|
|
2
2
|
box-sizing: border-box;
|
|
3
3
|
cursor: ${o=>o.disabled==!1?"pointer":"context-menu"};
|
|
4
4
|
width: 100%;
|
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.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const le=require("react/jsx-runtime"),e=require("./index-BPVoEhTF.cjs"),t=require("react"),B=require("./emotion-element-f0de968e.browser.esm-B7k6i6lC.cjs"),n=require("./CustomStyles-
|
|
1
|
+
"use strict";const le=require("react/jsx-runtime"),e=require("./index-BPVoEhTF.cjs"),t=require("react"),B=require("./emotion-element-f0de968e.browser.esm-B7k6i6lC.cjs"),n=require("./CustomStyles-Uqkz9jDo.cjs"),ce=require("./defineProperty-CqVRDJI8.cjs");require("./index-EeoArxOx.cjs");const fe=require("./index-DaiUAQVF.cjs");function de(o){const p=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(o){for(const s in o)if(s!=="default"){const a=Object.getOwnPropertyDescriptor(o,s);Object.defineProperty(p,s,a.get?a:{enumerable:!0,get:()=>o[s]})}}return p.default=o,Object.freeze(p)}const ye=de(t);var Te=["defaultOptions","cacheOptions","loadOptions","options","isLoading","onInputChange","filterOption"];function Pe(o){var p=o.defaultOptions,s=p===void 0?!1:p,a=o.cacheOptions,i=a===void 0?!1:a,y=o.loadOptions;o.options;var l=o.isLoading,h=l===void 0?!1:l,S=o.onInputChange,m=o.filterOption,C=m===void 0?null:m,g=n._objectWithoutProperties(o,Te),_=g.inputValue,u=t.useRef(void 0),c=t.useRef(!1),T=t.useState(Array.isArray(s)?s:void 0),f=n._slicedToArray(T,2),G=f[0],x=f[1],W=t.useState(typeof _<"u"?_:""),q=n._slicedToArray(W,2),D=q[0],I=q[1],J=t.useState(s===!0),R=n._slicedToArray(J,2),K=R[0],P=R[1],Q=t.useState(void 0),w=n._slicedToArray(Q,2),A=w[0],L=w[1],U=t.useState([]),E=n._slicedToArray(U,2),X=E[0],j=E[1],Y=t.useState(!1),$=n._slicedToArray(Y,2),Z=$[0],v=$[1],ee=t.useState({}),k=n._slicedToArray(ee,2),O=k[0],F=k[1],te=t.useState(void 0),z=n._slicedToArray(te,2),oe=z[0],se=z[1],ne=t.useState(void 0),N=n._slicedToArray(ne,2),re=N[0],pe=N[1];i!==re&&(F({}),pe(i)),s!==oe&&(x(Array.isArray(s)?s:void 0),se(s)),t.useEffect(function(){return c.current=!0,function(){c.current=!1}},[]);var M=t.useCallback(function(b,d){if(!y)return d();var r=y(b,d);r&&typeof r.then=="function"&&r.then(d,function(){return d()})},[y]);t.useEffect(function(){s===!0&&M(D,function(b){c.current&&(x(b||[]),P(!!u.current))})},[]);var ae=t.useCallback(function(b,d){var r=n.handleInputChange(b,d,S);if(!r){u.current=void 0,I(""),L(""),j([]),P(!1),v(!1);return}if(i&&O[r])I(r),L(r),j(O[r]),P(!1),v(!1);else{var ie=u.current={};I(r),P(!0),v(!A),M(r,function(V){c&&ie===u.current&&(u.current=void 0,P(!1),L(r),j(V||[]),v(!1),F(V?n._objectSpread2(n._objectSpread2({},O),{},ce._defineProperty({},r,V)):O))})}},[i,M,A,O,S]),ue=Z?[]:D&&A?X:G||[];return n._objectSpread2(n._objectSpread2({},g),{},{options:ue,isLoading:K||h,onInputChange:ae,filterOption:C})}var Oe=t.forwardRef(function(o,p){var s=Pe(o),a=n.useStateManager(s);return ye.createElement(n.Select,B._extends({ref:p},a))}),be=Oe;const H=t.forwardRef((o,p)=>{const{styles:s,debounceTime:a=0,isSearchable:i=!0,isClearable:y=!0,onInputChange:l,size:h="small",color:S="primary",className:m="",style:C={},...g}=o,_=B.useTheme(),u=t.useCallback(fe.debounce((T,f)=>{l==null||l(T,f)},a)),c=(T,f)=>{u(T,f)};return le.jsx(be,{ref:p,styles:s||n.customStyles,size:h,color:S,theme:_,isSearchable:i,isClearable:y,onInputChange:c,className:m,style:C,...g})});H.propTypes={defaultOptions:e.PropTypes.oneOfType([e.PropTypes.bool,e.PropTypes.array]),cacheOptions:e.PropTypes.any,loadOptions:e.PropTypes.func,styles:e.PropTypes.object,debounceTime:e.PropTypes.number,name:e.PropTypes.string,value:e.PropTypes.any,tabIndex:e.PropTypes.number,isSearchable:e.PropTypes.bool,isClearable:e.PropTypes.bool,isLoading:e.PropTypes.bool,isRtl:e.PropTypes.bool,isDisabled:e.PropTypes.bool,readOnly:e.PropTypes.bool,closeMenuOnSelect:e.PropTypes.bool,closeMenuOnScroll:e.PropTypes.oneOfType([e.PropTypes.bool,e.PropTypes.func]),escapeClearsValue:e.PropTypes.bool,filterOption:e.PropTypes.func,formatGroupLabel:e.PropTypes.func,formatOptionLabel:e.PropTypes.func,getOptionLabel:e.PropTypes.func,getOptionValue:e.PropTypes.func,hideSelectedOptions:e.PropTypes.bool,id:e.PropTypes.string,inputId:e.PropTypes.string,isOptionDisabled:e.PropTypes.func,isOptionSelected:e.PropTypes.func,loadingMessage:e.PropTypes.func,minMenuHeight:e.PropTypes.number,maxMenuHeight:e.PropTypes.number,menuPlacement:e.PropTypes.oneOf(["bottom","auto","top"]),menuPosition:e.PropTypes.oneOf(["absolute","fixed"]),menuShouldBlockScroll:e.PropTypes.bool,menuShouldScrollIntoView:e.PropTypes.bool,openMenuOnFocus:e.PropTypes.bool,openMenuOnClick:e.PropTypes.bool,autoFocus:e.PropTypes.bool,placeholder:e.PropTypes.any,noOptionsMessage:e.PropTypes.string,menuIsOpen:e.PropTypes.bool,components:e.PropTypes.object,defaultValue:e.PropTypes.string,defaultInputValue:e.PropTypes.string,defaultMenuIsOpen:e.PropTypes.bool,delimiter:e.PropTypes.string,onChange:e.PropTypes.func,onInputChange:e.PropTypes.func,onMenuOpen:e.PropTypes.func,onMenuClose:e.PropTypes.func,onFocus:e.PropTypes.func,onBlur:e.PropTypes.func,className:e.PropTypes.string,style:e.PropTypes.object,color:e.PropTypes.oneOf(["primary","secondary","success","warning","danger","information","neutral","gray"]),size:e.PropTypes.oneOf(["small","medium","large"])};module.exports=H;
|
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.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const r=require("react/jsx-runtime"),t=require("react"),o=require("./index-BPVoEhTF.cjs"),I=require("./emotion-styled.browser.esm-BtEseadx.cjs"),B=require("./Button.cjs"),K=require("./utils-
|
|
1
|
+
"use strict";const r=require("react/jsx-runtime"),t=require("react"),o=require("./index-BPVoEhTF.cjs"),I=require("./emotion-styled.browser.esm-BtEseadx.cjs"),B=require("./Button.cjs"),K=require("./utils-BWzf4vLl.cjs"),L=require("./ThemeProvider.cjs"),U=require("./Popover.cjs"),Y=require("./PopoverTrigger.cjs"),$=require("./PopoverContent.cjs"),A=require("./motion-B_VPZaJq.cjs"),G=I.styled.div``,H=I.styled(A.motion.div)`
|
|
2
2
|
gap: 0.25rem;
|
|
3
3
|
display: flex;
|
|
4
4
|
flex-direction: column;
|
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.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const c=require("react/jsx-runtime"),i=require("react"),r=require("./index-BPVoEhTF.cjs"),w=require("./utils-
|
|
1
|
+
"use strict";const c=require("react/jsx-runtime"),i=require("react"),r=require("./index-BPVoEhTF.cjs"),w=require("./utils-BWzf4vLl.cjs"),H=require("./Table.cjs"),$=require("./emotion-styled.browser.esm-BtEseadx.cjs"),B=require("./TextInput.cjs"),W=require("./NumberInput.cjs"),J=require("./DecimalInput.cjs"),Q=require("./CheckBoxInput.cjs"),U=require("./Dropdown.cjs"),X=require("./DecimalInputV2.cjs"),Z=require("./emotion-element-f0de968e.browser.esm-B7k6i6lC.cjs"),C={BOOLEAN:"BOOLEAN",STRING:"STRING",INTEGER:"INTEGER",DECIMAL:"DECIMAL",DECIMAL2:"DECIMAL2",DATE:"DATE",SELECT:"SELECT"},ee=$.styled.td`
|
|
2
2
|
white-space: nowrap;
|
|
3
3
|
overflow: hidden;
|
|
4
4
|
text-overflow: ellipsis;
|
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"),
|
|
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;
|
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
import { jsx as i, jsxs as s } from "react/jsx-runtime";
|
|
2
|
-
import { forwardRef as
|
|
3
|
-
import { s as
|
|
4
|
-
import { M as
|
|
5
|
-
import {
|
|
6
|
-
import
|
|
7
|
-
import { u as
|
|
8
|
-
|
|
9
|
-
const E = p.div`
|
|
2
|
+
import { forwardRef as d, useLayoutEffect as F } from "react";
|
|
3
|
+
import { s as m } from "./emotion-styled.browser.esm-BNN1dTl3.js";
|
|
4
|
+
import { M as y } from "./consts-BuFChS64.js";
|
|
5
|
+
import { p as N, o as z, l as L } from "./utils-BXCGNjIy.js";
|
|
6
|
+
import A from "./Icon.js";
|
|
7
|
+
import { u as O } from "./emotion-element-f0de968e.browser.esm-CkCiQliQ.js";
|
|
8
|
+
const W = m.div`
|
|
10
9
|
display: flex;
|
|
11
10
|
width: 100%;
|
|
12
11
|
height: fit-content;
|
|
@@ -45,7 +44,7 @@ const E = p.div`
|
|
|
45
44
|
font-style: normal;
|
|
46
45
|
font-weight: 500;
|
|
47
46
|
line-height: 1.5rem;
|
|
48
|
-
${
|
|
47
|
+
${N(2)}
|
|
49
48
|
}
|
|
50
49
|
|
|
51
50
|
& .wrapper__description {
|
|
@@ -55,15 +54,15 @@ const E = p.div`
|
|
|
55
54
|
font-weight: 400;
|
|
56
55
|
line-height: 1rem;
|
|
57
56
|
letter-spacing: 0.025rem;
|
|
58
|
-
${
|
|
57
|
+
${N(2)}
|
|
59
58
|
}
|
|
60
59
|
}
|
|
61
|
-
`,
|
|
60
|
+
`, S = m.div`
|
|
62
61
|
width: 100%;
|
|
63
62
|
height: 11.625rem;
|
|
64
63
|
border-radius: 0.75rem;
|
|
65
|
-
background: ${
|
|
66
|
-
`,
|
|
64
|
+
background: ${z("-90deg")};
|
|
65
|
+
`, T = m.div`
|
|
67
66
|
display: flex;
|
|
68
67
|
flex-direction: column;
|
|
69
68
|
align-items: center;
|
|
@@ -109,7 +108,7 @@ const E = p.div`
|
|
|
109
108
|
}
|
|
110
109
|
}
|
|
111
110
|
|
|
112
|
-
@media (max-width: ${
|
|
111
|
+
@media (max-width: ${y + "px"}) {
|
|
113
112
|
flex-direction: row;
|
|
114
113
|
align-items: center;
|
|
115
114
|
gap: 0.25rem;
|
|
@@ -136,48 +135,48 @@ const E = p.div`
|
|
|
136
135
|
white-space: nowrap;
|
|
137
136
|
}
|
|
138
137
|
}
|
|
139
|
-
`,
|
|
138
|
+
`, j = m.div`
|
|
140
139
|
width: 7.5rem;
|
|
141
140
|
width: 7.5rem;
|
|
142
141
|
border-radius: 999px;
|
|
143
|
-
background: ${
|
|
142
|
+
background: ${z("-90deg")};
|
|
144
143
|
|
|
145
|
-
@media (max-width: ${
|
|
144
|
+
@media (max-width: ${y + "px"}) {
|
|
146
145
|
width: 7.5rem;
|
|
147
146
|
height: 2.5rem;
|
|
148
147
|
}
|
|
149
|
-
`,
|
|
148
|
+
`, q = d(({}, r) => /* @__PURE__ */ i(j, {})), R = d(
|
|
150
149
|
({ text: r, isActive: o = !1, icon: t, onSelectCard: a = () => {
|
|
151
|
-
} },
|
|
152
|
-
/* @__PURE__ */ i(
|
|
150
|
+
} }, c) => /* @__PURE__ */ s(T, { className: o ? "active" : "", onClick: a, children: [
|
|
151
|
+
/* @__PURE__ */ i(A, { icon: t, className: "wrapper__icon" }),
|
|
153
152
|
/* @__PURE__ */ i("div", { className: "wrapper__text", children: r })
|
|
154
153
|
] })
|
|
155
|
-
),
|
|
154
|
+
), B = d(
|
|
156
155
|
({
|
|
157
156
|
image: r,
|
|
158
157
|
imageComponent: o,
|
|
159
158
|
title: t,
|
|
160
159
|
description: a,
|
|
161
|
-
className:
|
|
162
|
-
onSelectCard:
|
|
160
|
+
className: c,
|
|
161
|
+
onSelectCard: g = () => {
|
|
163
162
|
}
|
|
164
|
-
},
|
|
165
|
-
const { theme:
|
|
166
|
-
return /* @__PURE__ */ s(
|
|
167
|
-
|
|
163
|
+
}, b) => {
|
|
164
|
+
const { theme: w } = O();
|
|
165
|
+
return /* @__PURE__ */ s(W, { theme: w, className: c, onClick: g, children: [
|
|
166
|
+
L(o) ? o : /* @__PURE__ */ i("img", { src: r, className: "wrapper__image" }),
|
|
168
167
|
/* @__PURE__ */ s("div", { className: "wrapper__content", children: [
|
|
169
168
|
t && /* @__PURE__ */ i("div", { className: "wrapper__title", children: t }),
|
|
170
169
|
a && /* @__PURE__ */ i("div", { className: "wrapper__description", children: a })
|
|
171
170
|
] })
|
|
172
171
|
] });
|
|
173
172
|
}
|
|
174
|
-
),
|
|
173
|
+
), G = d(({}, r) => /* @__PURE__ */ s(S, { children: [
|
|
175
174
|
/* @__PURE__ */ i("div", { className: "wrapper__image" }),
|
|
176
175
|
/* @__PURE__ */ s("div", { className: "wrapper__content", children: [
|
|
177
176
|
/* @__PURE__ */ i("div", { className: "wrapper__title" }),
|
|
178
177
|
/* @__PURE__ */ i("div", { className: "wrapper__description" })
|
|
179
178
|
] })
|
|
180
|
-
] })),
|
|
179
|
+
] })), H = m.div`
|
|
181
180
|
display: flex;
|
|
182
181
|
flex-direction: column;
|
|
183
182
|
align-items: center;
|
|
@@ -219,17 +218,18 @@ const E = p.div`
|
|
|
219
218
|
|
|
220
219
|
& .wrapper__cards {
|
|
221
220
|
display: grid;
|
|
222
|
-
grid-template-columns: ${(r) => `repeat(${r == null ? void 0 : r.limitCards}, minmax(
|
|
221
|
+
grid-template-columns: ${(r) => `repeat(${r == null ? void 0 : r.limitCards}, minmax(12.5rem, 1fr))`};
|
|
223
222
|
grid-auto-rows: 0.625rem;
|
|
224
223
|
gap: 0.625rem;
|
|
225
224
|
width: 100%;
|
|
225
|
+
position: relative;
|
|
226
226
|
|
|
227
227
|
& .wrapper__card {
|
|
228
228
|
overflow: hidden;
|
|
229
229
|
}
|
|
230
230
|
}
|
|
231
231
|
|
|
232
|
-
@media (max-width: ${
|
|
232
|
+
@media (max-width: ${y + "px"}) {
|
|
233
233
|
& .wrapper__tags {
|
|
234
234
|
display: flex;
|
|
235
235
|
overflow-x: scroll;
|
|
@@ -241,73 +241,84 @@ const E = p.div`
|
|
|
241
241
|
grid-template-columns: ${(r) => `repeat(${r == null ? void 0 : r.limitCardsForMobile}, minmax(0, 1fr))`};
|
|
242
242
|
}
|
|
243
243
|
}
|
|
244
|
-
`,
|
|
244
|
+
`, U = d(
|
|
245
245
|
({
|
|
246
246
|
title: r,
|
|
247
247
|
subtitle: o,
|
|
248
248
|
tags: t = [],
|
|
249
249
|
items: a = [],
|
|
250
|
-
limitTags:
|
|
251
|
-
limitTagsForMobile:
|
|
252
|
-
limit:
|
|
253
|
-
limitForMobile:
|
|
254
|
-
selectedTag:
|
|
255
|
-
onSelectTag:
|
|
250
|
+
limitTags: c = 5,
|
|
251
|
+
limitTagsForMobile: g = 5,
|
|
252
|
+
limit: b = 3,
|
|
253
|
+
limitForMobile: w = 2,
|
|
254
|
+
selectedTag: I,
|
|
255
|
+
onSelectTag: u = () => {
|
|
256
256
|
},
|
|
257
|
-
onSelectCard:
|
|
257
|
+
onSelectCard: x = () => {
|
|
258
258
|
}
|
|
259
|
-
},
|
|
260
|
-
var
|
|
261
|
-
return
|
|
259
|
+
}, M) => {
|
|
260
|
+
var $, k;
|
|
261
|
+
return F(() => {
|
|
262
262
|
const e = () => {
|
|
263
|
-
document.querySelector(".wrapper__cards").querySelectorAll(".wrapper__card")
|
|
264
|
-
|
|
265
|
-
|
|
263
|
+
const l = document.querySelector(".wrapper__cards"), p = l.querySelectorAll(".wrapper__card");
|
|
264
|
+
p.forEach((_) => {
|
|
265
|
+
const C = _.getBoundingClientRect().height, E = Math.ceil((C + 10) / 20);
|
|
266
|
+
_.style.gridRowEnd = `span ${E}`;
|
|
266
267
|
});
|
|
267
|
-
|
|
268
|
-
|
|
268
|
+
const v = p == null ? void 0 : p[p.length - 1];
|
|
269
|
+
if (v) {
|
|
270
|
+
const _ = v.offsetTop + v.offsetHeight;
|
|
271
|
+
l.style.height = `${_}px`;
|
|
272
|
+
}
|
|
273
|
+
}, f = document.querySelector(".wrapper__cards").querySelectorAll(".wrapper__image");
|
|
274
|
+
let h = 0;
|
|
275
|
+
return f.length === 0 ? e() : (f.forEach((l) => {
|
|
276
|
+
l.complete ? h++ : l.addEventListener("load", () => {
|
|
277
|
+
h++, h === f.length && e();
|
|
278
|
+
});
|
|
279
|
+
}), h === f.length && e()), window.addEventListener("resize", e), () => {
|
|
269
280
|
window.removeEventListener("resize", e);
|
|
270
281
|
};
|
|
271
|
-
}), /* @__PURE__ */ s(
|
|
272
|
-
|
|
282
|
+
}, []), /* @__PURE__ */ s(
|
|
283
|
+
H,
|
|
273
284
|
{
|
|
274
|
-
ref:
|
|
275
|
-
limitTags:
|
|
276
|
-
limitTagsForMobile:
|
|
277
|
-
limitCards:
|
|
278
|
-
limitCardsForMobile:
|
|
285
|
+
ref: M,
|
|
286
|
+
limitTags: c,
|
|
287
|
+
limitTagsForMobile: g,
|
|
288
|
+
limitCards: b,
|
|
289
|
+
limitCardsForMobile: w,
|
|
279
290
|
children: [
|
|
280
291
|
/* @__PURE__ */ s("div", { className: "wrapper__heading", children: [
|
|
281
292
|
r && /* @__PURE__ */ i("div", { className: "wrapper__title", children: r }),
|
|
282
293
|
o && /* @__PURE__ */ i("div", { className: "wrapper__subtitle", children: o })
|
|
283
294
|
] }),
|
|
284
295
|
/* @__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(
|
|
285
|
-
|
|
296
|
+
R,
|
|
286
297
|
{
|
|
287
298
|
icon: e == null ? void 0 : e.icon,
|
|
288
299
|
text: e == null ? void 0 : e.title,
|
|
289
|
-
isActive: (e == null ? void 0 : e.code) ===
|
|
290
|
-
onSelectCard: () =>
|
|
300
|
+
isActive: (e == null ? void 0 : e.code) === I,
|
|
301
|
+
onSelectCard: () => u == null ? void 0 : u(e)
|
|
291
302
|
},
|
|
292
303
|
`field-of-interests-masonry-tag__${n + 1}`
|
|
293
|
-
)) : (
|
|
294
|
-
|
|
304
|
+
)) : ($ = Array.from("12345")) == null ? void 0 : $.map((e, n) => /* @__PURE__ */ i(
|
|
305
|
+
q,
|
|
295
306
|
{},
|
|
296
307
|
`field-of-interests-masonry-tag-skeleton__${n + 1}`
|
|
297
308
|
)) }),
|
|
298
309
|
/* @__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(
|
|
299
|
-
|
|
310
|
+
B,
|
|
300
311
|
{
|
|
301
312
|
image: e == null ? void 0 : e.image,
|
|
302
313
|
imageComponent: e == null ? void 0 : e.imageComponent,
|
|
303
314
|
title: e == null ? void 0 : e.title,
|
|
304
315
|
description: e == null ? void 0 : e.description,
|
|
305
|
-
onSelectCard: () =>
|
|
316
|
+
onSelectCard: () => x == null ? void 0 : x(e),
|
|
306
317
|
className: "wrapper__card"
|
|
307
318
|
},
|
|
308
319
|
`field-of-interests-with-tags-card__${n + 1}`
|
|
309
|
-
)) : (
|
|
310
|
-
|
|
320
|
+
)) : (k = Array.from("12345")) == null ? void 0 : k.map((e, n) => /* @__PURE__ */ i(
|
|
321
|
+
G,
|
|
311
322
|
{},
|
|
312
323
|
`field-of-interests-with-tags-card-skeleton__${n + 1}`
|
|
313
324
|
)) })
|
|
@@ -317,5 +328,5 @@ const E = p.div`
|
|
|
317
328
|
}
|
|
318
329
|
);
|
|
319
330
|
export {
|
|
320
|
-
|
|
331
|
+
U as default
|
|
321
332
|
};
|