@lanaco/lnc-react-ui 4.0.111 → 4.0.113
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/AccordionDetails.cjs +1 -1
- package/dist/AccordionDetails.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 +1 -1
- package/dist/BannerSectionCarousel.js +3 -3
- package/dist/BlogCardsSponsoredSection.cjs +25 -14
- package/dist/BlogCardsSponsoredSection.js +58 -47
- package/dist/BlogListSection.cjs +37 -9
- package/dist/BlogListSection.js +127 -70
- package/dist/BlogsSectionDetailed.cjs +7 -2
- package/dist/BlogsSectionDetailed.js +6 -1
- package/dist/BlogsSectionSimpleCentered.cjs +3 -2
- package/dist/BlogsSectionSimpleCentered.js +1 -0
- package/dist/BlogsSectionWithFilters.cjs +1 -1
- package/dist/BlogsSectionWithFilters.js +1 -1
- package/dist/BrandHitsSection.cjs +11 -11
- package/dist/BrandHitsSection.js +40 -38
- package/dist/Breadcrumbs.cjs +1 -1
- package/dist/Breadcrumbs.js +1 -1
- package/dist/Button.cjs +1 -1
- package/dist/Button.js +2 -2
- 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 +2 -2
- package/dist/ConfirmationForm.cjs +1 -1
- package/dist/ConfirmationForm.js +1 -1
- package/dist/ContactSection.cjs +303 -0
- package/dist/ContactSection.js +1614 -0
- package/dist/Content.cjs +1 -1
- package/dist/Content.js +1 -1
- package/dist/{CustomStyles-DtKDPOdk.cjs → CustomStyles-D3JePSNK.cjs} +1 -1
- package/dist/{CustomStyles-Dd8IsVV6.js → CustomStyles-DpKzWczC.js} +2 -2
- package/dist/DailyMotion-CUHIuSln.js +136 -0
- package/dist/DailyMotion-D46sLmkS.cjs +1 -0
- package/dist/DataView.cjs +1 -1
- package/dist/DataView.js +1 -1
- package/dist/DateInput.cjs +4 -4
- package/dist/DateInput.js +496 -552
- package/dist/DecimalInput.cjs +1 -1
- package/dist/DecimalInput.js +2 -2
- package/dist/DecimalInputV2.cjs +1 -1
- package/dist/DecimalInputV2.js +1 -1
- package/dist/DetailedProductsSection.cjs +1 -1
- package/dist/DetailedProductsSection.js +1 -1
- 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 +2 -2
- package/dist/Dropdown.cjs +1 -1
- package/dist/Dropdown.js +5 -5
- package/dist/DropdownItem.cjs +1 -1
- package/dist/DropdownItem.js +1 -1
- package/dist/DropdownLookup.cjs +1 -1
- package/dist/DropdownLookup.js +4 -4
- 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/Facebook-R53Rry9l.cjs +1 -0
- package/dist/Facebook-aEQQxj-r.js +121 -0
- package/dist/FaqSection.cjs +219 -0
- package/dist/FaqSection.js +481 -0
- package/dist/FeedbackSection.cjs +1 -1
- package/dist/FeedbackSection.js +1 -1
- package/dist/FileInput.cjs +1 -1
- package/dist/FileInput.js +1 -1
- package/dist/FilePlayer-9FdL9kM0.js +202 -0
- package/dist/FilePlayer-D9up8eWZ.cjs +1 -0
- package/dist/FlexBox.cjs +1 -1
- package/dist/FlexBox.js +1 -1
- package/dist/FlexGrid.cjs +1 -1
- package/dist/FlexGrid.js +1 -1
- package/dist/FlexGridItem.cjs +1 -1
- package/dist/FlexGridItem.js +1 -1
- package/dist/Footer.cjs +1 -1
- package/dist/Footer.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/Grid.cjs +1 -1
- package/dist/Grid.js +1 -1
- package/dist/GridItem.cjs +1 -1
- package/dist/GridItem.js +1 -1
- package/dist/Header.cjs +1 -1
- package/dist/Header.js +1 -1
- package/dist/HelpBannerSection.cjs +62 -0
- package/dist/HelpBannerSection.js +81 -0
- 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/Kaltura-C170sgeD.cjs +1 -0
- package/dist/Kaltura-Dziqci9-.js +121 -0
- package/dist/Kanban.cjs +1 -1
- package/dist/Kanban.js +5 -5
- package/dist/KanbanActionsToolbar.cjs +1 -1
- package/dist/KanbanActionsToolbar.js +1 -1
- package/dist/{KanbanCard-CXRQQu4S.cjs → KanbanCard-CP60mpJO.cjs} +1 -1
- package/dist/{KanbanCard-CIscpYlR.js → KanbanCard-Crf-cTxA.js} +2 -2
- package/dist/KanbanCard.cjs +1 -1
- package/dist/KanbanCard.js +2 -2
- package/dist/KanbanFooter.cjs +1 -1
- package/dist/KanbanFooter.js +1 -1
- package/dist/KanbanHeader.cjs +1 -1
- package/dist/KanbanHeader.js +1 -1
- package/dist/KanbanView.cjs +1 -1
- package/dist/KanbanView.js +2 -2
- package/dist/Link.cjs +1 -1
- package/dist/Link.js +1 -1
- package/dist/LocationSearchSection.cjs +1 -1
- package/dist/LocationSearchSection.js +1 -1
- package/dist/MenuItem.cjs +1 -1
- package/dist/MenuItem.js +1 -1
- package/dist/Mixcloud-Cfn28kqf.js +113 -0
- package/dist/Mixcloud-Towpm_ct.cjs +1 -0
- package/dist/Modal.cjs +1 -1
- package/dist/Modal.js +2 -2
- package/dist/MultiSelectDropdown.cjs +1 -1
- package/dist/MultiSelectDropdown.js +3 -3
- package/dist/MultiSelectDropdownLookup.cjs +1 -1
- package/dist/MultiSelectDropdownLookup.js +3 -3
- package/dist/Mux-D0MPDKkM.js +165 -0
- package/dist/Mux-yqNOmuss.cjs +1 -0
- 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/Notification.cjs +1 -1
- package/dist/Notification.js +1 -1
- package/dist/NotificationContainer.cjs +1 -1
- package/dist/NotificationContainer.js +2 -2
- package/dist/NotificationMessage.cjs +1 -1
- package/dist/NotificationMessage.js +1 -1
- package/dist/NumberInput.cjs +1 -1
- package/dist/NumberInput.js +2 -2
- package/dist/PageLayout.cjs +1 -1
- package/dist/PageLayout.js +1 -1
- package/dist/Pagination.cjs +1 -1
- package/dist/Pagination.js +1 -1
- package/dist/PasswordInput.cjs +1 -1
- package/dist/PasswordInput.js +2 -2
- package/dist/Popover.cjs +1 -1
- package/dist/Popover.js +1 -1
- package/dist/PopoverContent.cjs +1 -1
- package/dist/PopoverContent.js +2 -2
- package/dist/PopoverDescription.cjs +1 -1
- package/dist/PopoverDescription.js +1 -1
- package/dist/PopoverHeading.cjs +1 -1
- package/dist/PopoverHeading.js +1 -1
- package/dist/PopoverTrigger.cjs +1 -1
- package/dist/PopoverTrigger.js +2 -2
- package/dist/Preview-B8HyPnfR.cjs +1 -0
- package/dist/Preview-CO6WSP5f.js +127 -0
- package/dist/ProgressBar.cjs +1 -1
- package/dist/ProgressBar.js +1 -1
- package/dist/QuattroCardsSection.cjs +1 -1
- package/dist/QuattroCardsSection.js +1 -1
- package/dist/RadioGroup.cjs +1 -1
- package/dist/RadioGroup.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 +1 -1
- package/dist/SalesCampaignsSection.cjs +47 -42
- package/dist/SalesCampaignsSection.js +353 -290
- package/dist/SearchBar.cjs +1 -1
- package/dist/SearchBar.js +3 -3
- package/dist/SearchSection-BUD-hnQA.cjs +161 -0
- package/dist/SearchSection-xe0nvARV.js +1214 -0
- package/dist/SearchSection.cjs +1 -0
- package/dist/SearchSection.js +9 -0
- package/dist/Separator.cjs +1 -1
- package/dist/Separator.js +1 -1
- package/dist/Sidebar.cjs +1 -1
- package/dist/Sidebar.js +1 -1
- package/dist/SoundCloud-D85Da68L.js +123 -0
- package/dist/SoundCloud-YZlcPffr.cjs +1 -0
- package/dist/Spinner.cjs +1 -1
- package/dist/Spinner.js +2 -2
- package/dist/StatsSection.cjs +117 -0
- package/dist/StatsSection.js +154 -0
- package/dist/Streamable-CJQf8evZ.cjs +1 -0
- package/dist/Streamable-Zj4FOeBP.js +115 -0
- 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 +3 -3
- package/dist/TableView.cjs +1 -1
- package/dist/TableView.js +1 -1
- package/dist/Tabs.cjs +1 -1
- package/dist/Tabs.js +1 -1
- package/dist/TextAreaInput.cjs +1 -1
- package/dist/TextAreaInput.js +2 -2
- package/dist/TextInput.cjs +1 -1
- package/dist/TextInput.js +2 -2
- package/dist/ThemeProvider.cjs +1 -1
- package/dist/ThemeProvider.js +2 -2
- package/dist/TimeInput.cjs +1 -1
- package/dist/TimeInput.js +2 -2
- package/dist/Toggle.cjs +1 -1
- package/dist/Toggle.js +1 -1
- package/dist/TreeMenu.cjs +1 -1
- package/dist/TreeMenu.js +1 -1
- package/dist/TreeMenuSeparator.cjs +1 -1
- package/dist/TreeMenuSeparator.js +1 -1
- package/dist/Twitch-Ba2O5gTX.cjs +1 -0
- package/dist/Twitch-DC97YrR8.js +117 -0
- package/dist/UploadedFile.cjs +1 -1
- package/dist/UploadedFile.js +1 -1
- package/dist/Vidyard-BdNB5Wka.cjs +1 -0
- package/dist/Vidyard-D9vYqvNv.js +113 -0
- package/dist/Vimeo-23LnW4uS.js +146 -0
- package/dist/Vimeo-DatJiKS5.cjs +1 -0
- package/dist/Wistia-D--UDN6c.cjs +1 -0
- package/dist/Wistia-d2TQ3m-s.js +124 -0
- package/dist/YouTube-BEkcZxN7.cjs +1 -0
- package/dist/YouTube-x5-hc3s6.js +176 -0
- package/dist/_commonjsHelpers-BkfeUUK-.js +28 -0
- package/dist/_commonjsHelpers-DwTZ_eVU.cjs +1 -0
- package/dist/{emotion-react.browser.esm-1R69UXoj.cjs → emotion-react.browser.esm-Cvnp-zmB.cjs} +1 -1
- package/dist/{emotion-react.browser.esm-C6iWxXPG.js → emotion-react.browser.esm-DUVZ5oEL.js} +1 -1
- package/dist/{floating-ui.react.esm-h3qa3pb9.js → floating-ui.react.esm-CfpRzwmn.js} +1 -1
- package/dist/{floating-ui.react.esm-Bb1ww976.cjs → floating-ui.react.esm-CiYofNnh.cjs} +1 -1
- package/dist/{hoist-non-react-statics.cjs-Dr-ytKVG.cjs → hoist-non-react-statics.cjs-DGqlkKoS.cjs} +1 -1
- package/dist/{hoist-non-react-statics.cjs-CAHiRNzQ.js → hoist-non-react-statics.cjs-NQME298B.js} +1 -1
- package/dist/{index-EeoArxOx.cjs → index-41nUb2kP.cjs} +1 -1
- package/dist/{index-BlxaTV-D.js → index-6RFrSPs_.js} +1 -1
- package/dist/{index-64mXPFBC.js → index-B1vKwsDE.js} +1 -1
- package/dist/{index-Bq3leL2e.js → index-BXrmgzsU.js} +1 -1
- package/dist/{index-gY9e_8LL.cjs → index-BZnmT78f.cjs} +1 -1
- package/dist/{index-CQLF61YV.js → index-BgRyIsRu.js} +1 -1
- package/dist/{index-BPVoEhTF.cjs → index-BpbMKBf_.cjs} +1 -1
- package/dist/index-CDGmG-qk.cjs +1 -0
- package/dist/{index-S5Cd7WrG.js → index-CblbdqjE.js} +1 -1
- package/dist/{index-DaiUAQVF.cjs → index-Cp66dWMi.cjs} +1 -1
- package/dist/{index-DAOBjHnD.cjs → index-DA7SIHV1.cjs} +1 -1
- package/dist/{index-C1DkD2ug.cjs → index-DCFJmN23.cjs} +1 -1
- package/dist/{index-CkWvbrVT.js → index-Dt62UGku.js} +1 -1
- package/dist/index-wlx30R-h.js +62 -0
- package/dist/index.cjs +1 -1
- package/dist/index.js +60 -50
- package/dist/{react-toastify.esm--2awuizG.js → react-toastify.esm-BLQznunb.js} +1 -1
- package/dist/{react-toastify.esm-Dq1k28O7.cjs → react-toastify.esm-BoMuFZcq.cjs} +1 -1
- package/dist/{styled-components.browser.esm-CMTEDJ_5.cjs → styled-components.browser.esm-CvykQBGY.cjs} +1 -1
- package/dist/{styled-components.browser.esm-C9FYANiy.js → styled-components.browser.esm-D-n22PJk.js} +1 -1
- package/dist/usePopover.cjs +1 -1
- package/dist/usePopover.js +1 -1
- package/package.json +8 -2
- package/vite.config.js +14 -0
- package/dist/_commonjsHelpers-DKOUU3wS.cjs +0 -1
- package/dist/_commonjsHelpers-DaMA6jEr.js +0 -8
package/dist/DropdownItem.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as d, Fragment as G, jsxs as H } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef as J, useRef as Q, useState as W, useEffect as X } from "react";
|
|
3
|
-
import { P as l } from "./index-
|
|
3
|
+
import { P as l } from "./index-CblbdqjE.js";
|
|
4
4
|
import { s as Z } from "./emotion-styled.browser.esm-BNN1dTl3.js";
|
|
5
5
|
import M from "./Icon.js";
|
|
6
6
|
import { b as t, c as I, h as N } from "./utils-BbgAIA9N.js";
|
package/dist/DropdownLookup.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const le=require("react/jsx-runtime"),e=require("./index-
|
|
1
|
+
"use strict";const le=require("react/jsx-runtime"),e=require("./index-BpbMKBf_.cjs"),t=require("react"),B=require("./emotion-element-f0de968e.browser.esm-B7k6i6lC.cjs"),s=require("./CustomStyles-D3JePSNK.cjs"),ce=require("./defineProperty-CqVRDJI8.cjs");require("./index-41nUb2kP.cjs");const fe=require("./index-Cp66dWMi.cjs");function de(o){const p=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(o){for(const n in o)if(n!=="default"){const a=Object.getOwnPropertyDescriptor(o,n);Object.defineProperty(p,n,a.get?a:{enumerable:!0,get:()=>o[n]})}}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,n=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=s._objectWithoutProperties(o,Te),_=g.inputValue,u=t.useRef(void 0),c=t.useRef(!1),T=t.useState(Array.isArray(n)?n:void 0),f=s._slicedToArray(T,2),G=f[0],x=f[1],W=t.useState(typeof _<"u"?_:""),q=s._slicedToArray(W,2),D=q[0],I=q[1],J=t.useState(n===!0),R=s._slicedToArray(J,2),K=R[0],P=R[1],Q=t.useState(void 0),w=s._slicedToArray(Q,2),A=w[0],L=w[1],U=t.useState([]),E=s._slicedToArray(U,2),X=E[0],j=E[1],Y=t.useState(!1),$=s._slicedToArray(Y,2),Z=$[0],v=$[1],ee=t.useState({}),k=s._slicedToArray(ee,2),O=k[0],F=k[1],te=t.useState(void 0),z=s._slicedToArray(te,2),oe=z[0],ne=z[1],se=t.useState(void 0),N=s._slicedToArray(se,2),re=N[0],pe=N[1];i!==re&&(F({}),pe(i)),n!==oe&&(x(Array.isArray(n)?n:void 0),ne(n)),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(){n===!0&&M(D,function(b){c.current&&(x(b||[]),P(!!u.current))})},[]);var ae=t.useCallback(function(b,d){var r=s.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?s._objectSpread2(s._objectSpread2({},O),{},ce._defineProperty({},r,V)):O))})}},[i,M,A,O,S]),ue=Z?[]:D&&A?X:G||[];return s._objectSpread2(s._objectSpread2({},g),{},{options:ue,isLoading:K||h,onInputChange:ae,filterOption:C})}var Oe=t.forwardRef(function(o,p){var n=Pe(o),a=s.useStateManager(n);return ye.createElement(s.Select,B._extends({ref:p},a))}),be=Oe;const H=t.forwardRef((o,p)=>{const{styles:n,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:n||s.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.any,inputid:e.PropTypes.any,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
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { jsx as de } from "react/jsx-runtime";
|
|
2
|
-
import { P as e } from "./index-
|
|
2
|
+
import { P as e } from "./index-CblbdqjE.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 Se, b as s, h as ge, d as C, u as he, S as ve, a as ye } from "./CustomStyles-
|
|
6
|
+
import { _ as Se, b as s, h as ge, d as C, u as he, S as ve, a as ye } from "./CustomStyles-DpKzWczC.js";
|
|
7
7
|
import { _ as _e } from "./defineProperty-DF3p0mVo.js";
|
|
8
|
-
import "./index-
|
|
9
|
-
import { d as Ie } from "./index-
|
|
8
|
+
import "./index-B1vKwsDE.js";
|
|
9
|
+
import { d as Ie } from "./index-Dt62UGku.js";
|
|
10
10
|
var Ce = ["defaultOptions", "cacheOptions", "loadOptions", "options", "isLoading", "onInputChange", "filterOption"];
|
|
11
11
|
function Le(o) {
|
|
12
12
|
var r = o.defaultOptions, t = r === void 0 ? !1 : r, i = o.cacheOptions, l = i === void 0 ? !1 : i, d = o.loadOptions;
|
package/dist/DropdownMenu.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const r=require("react/jsx-runtime"),t=require("react"),o=require("./index-
|
|
1
|
+
"use strict";const r=require("react/jsx-runtime"),t=require("react"),o=require("./index-BpbMKBf_.cjs"),I=require("./emotion-styled.browser.esm-BtEseadx.cjs"),B=require("./Button.cjs"),K=require("./utils-CZynEOC_.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
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as r, jsxs as B } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef as K, useRef as l, useState as L, Children as U, isValidElement as Y, cloneElement as f } from "react";
|
|
3
|
-
import { P as o } from "./index-
|
|
3
|
+
import { P as o } from "./index-CblbdqjE.js";
|
|
4
4
|
import { s as T } from "./emotion-styled.browser.esm-BNN1dTl3.js";
|
|
5
5
|
import $ from "./Button.js";
|
|
6
6
|
import { b as q } from "./utils-BbgAIA9N.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-
|
|
1
|
+
"use strict";const c=require("react/jsx-runtime"),i=require("react"),r=require("./index-BpbMKBf_.cjs"),w=require("./utils-CZynEOC_.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,6 +1,6 @@
|
|
|
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
|
-
import { P as r } from "./index-
|
|
3
|
+
import { P as r } from "./index-CblbdqjE.js";
|
|
4
4
|
import { c as z, r as G, i as V } from "./utils-BbgAIA9N.js";
|
|
5
5
|
import te from "./Table.js";
|
|
6
6
|
import { s as Y } from "./emotion-styled.browser.esm-BNN1dTl3.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const P=require("./_commonjsHelpers-DwTZ_eVU.cjs"),g=require("react"),h=require("./SearchSection-BUD-hnQA.cjs");function m(t,e){for(var r=0;r<e.length;r++){const o=e[r];if(typeof o!="string"&&!Array.isArray(o)){for(const s in o)if(s!=="default"&&!(s in t)){const p=Object.getOwnPropertyDescriptor(o,s);p&&Object.defineProperty(t,s,p.get?p:{enumerable:!0,get:()=>o[s]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}var v=Object.create,i=Object.defineProperty,O=Object.getOwnPropertyDescriptor,D=Object.getOwnPropertyNames,S=Object.getPrototypeOf,E=Object.prototype.hasOwnProperty,j=(t,e,r)=>e in t?i(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,k=(t,e)=>{for(var r in e)i(t,r,{get:e[r],enumerable:!0})},b=(t,e,r,o)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of D(e))!E.call(t,s)&&s!==r&&i(t,s,{get:()=>e[s],enumerable:!(o=O(e,s))||o.enumerable});return t},I=(t,e,r)=>(r=t!=null?v(S(t)):{},b(!t||!t.__esModule?i(r,"default",{value:t,enumerable:!0}):r,t)),w=t=>b(i({},"__esModule",{value:!0}),t),a=(t,e,r)=>(j(t,typeof e!="symbol"?e+"":e,r),r),d={};k(d,{default:()=>l});var _=w(d),u=I(g),n=h.utils,F=h.patterns;const c="https://connect.facebook.net/en_US/sdk.js",y="FB",f="fbAsyncInit",L="facebook-player-";class l extends u.Component{constructor(){super(...arguments),a(this,"callPlayer",n.callPlayer),a(this,"playerID",this.props.config.playerId||`${L}${(0,n.randomString)()}`),a(this,"mute",()=>{this.callPlayer("mute")}),a(this,"unmute",()=>{this.callPlayer("unmute")})}componentDidMount(){this.props.onMount&&this.props.onMount(this)}load(e,r){if(r){(0,n.getSDK)(c,y,f).then(o=>o.XFBML.parse());return}(0,n.getSDK)(c,y,f).then(o=>{o.init({appId:this.props.config.appId,xfbml:!0,version:this.props.config.version}),o.Event.subscribe("xfbml.render",s=>{this.props.onLoaded()}),o.Event.subscribe("xfbml.ready",s=>{s.type==="video"&&s.id===this.playerID&&(this.player=s.instance,this.player.subscribe("startedPlaying",this.props.onPlay),this.player.subscribe("paused",this.props.onPause),this.player.subscribe("finishedPlaying",this.props.onEnded),this.player.subscribe("startedBuffering",this.props.onBuffer),this.player.subscribe("finishedBuffering",this.props.onBufferEnd),this.player.subscribe("error",this.props.onError),this.props.muted?this.callPlayer("mute"):this.callPlayer("unmute"),this.props.onReady(),document.getElementById(this.playerID).querySelector("iframe").style.visibility="visible")})})}play(){this.callPlayer("play")}pause(){this.callPlayer("pause")}stop(){}seekTo(e,r=!0){this.callPlayer("seek",e),r||this.pause()}setVolume(e){this.callPlayer("setVolume",e)}getDuration(){return this.callPlayer("getDuration")}getCurrentTime(){return this.callPlayer("getCurrentPosition")}getSecondsLoaded(){return null}render(){const{attributes:e}=this.props.config,r={width:"100%",height:"100%"};return u.default.createElement("div",{style:r,id:this.playerID,className:"fb-video","data-href":this.props.url,"data-autoplay":this.props.playing?"true":"false","data-allowfullscreen":"true","data-controls":this.props.controls?"true":"false",...e})}}a(l,"displayName","Facebook");a(l,"canPlay",F.canPlay.facebook);a(l,"loopOnEnded",!0);const M=P.getDefaultExportFromCjs(_),x=m({__proto__:null,default:M},[_]);exports.Facebook=x;
|
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
import { g as _ } from "./_commonjsHelpers-BkfeUUK-.js";
|
|
2
|
+
import g from "react";
|
|
3
|
+
import { u as P, p as m } from "./SearchSection-xe0nvARV.js";
|
|
4
|
+
function v(t, e) {
|
|
5
|
+
for (var r = 0; r < e.length; r++) {
|
|
6
|
+
const o = e[r];
|
|
7
|
+
if (typeof o != "string" && !Array.isArray(o)) {
|
|
8
|
+
for (const s in o)
|
|
9
|
+
if (s !== "default" && !(s in t)) {
|
|
10
|
+
const p = Object.getOwnPropertyDescriptor(o, s);
|
|
11
|
+
p && Object.defineProperty(t, s, p.get ? p : {
|
|
12
|
+
enumerable: !0,
|
|
13
|
+
get: () => o[s]
|
|
14
|
+
});
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
return Object.freeze(Object.defineProperty(t, Symbol.toStringTag, { value: "Module" }));
|
|
19
|
+
}
|
|
20
|
+
var O = Object.create, i = Object.defineProperty, D = Object.getOwnPropertyDescriptor, E = Object.getOwnPropertyNames, S = Object.getPrototypeOf, j = Object.prototype.hasOwnProperty, I = (t, e, r) => e in t ? i(t, e, { enumerable: !0, configurable: !0, writable: !0, value: r }) : t[e] = r, k = (t, e) => {
|
|
21
|
+
for (var r in e)
|
|
22
|
+
i(t, r, { get: e[r], enumerable: !0 });
|
|
23
|
+
}, h = (t, e, r, o) => {
|
|
24
|
+
if (e && typeof e == "object" || typeof e == "function")
|
|
25
|
+
for (let s of E(e))
|
|
26
|
+
!j.call(t, s) && s !== r && i(t, s, { get: () => e[s], enumerable: !(o = D(e, s)) || o.enumerable });
|
|
27
|
+
return t;
|
|
28
|
+
}, w = (t, e, r) => (r = t != null ? O(S(t)) : {}, h(
|
|
29
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
30
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
31
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
32
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
33
|
+
!t || !t.__esModule ? i(r, "default", { value: t, enumerable: !0 }) : r,
|
|
34
|
+
t
|
|
35
|
+
)), F = (t) => h(i({}, "__esModule", { value: !0 }), t), a = (t, e, r) => (I(t, typeof e != "symbol" ? e + "" : e, r), r), b = {};
|
|
36
|
+
k(b, {
|
|
37
|
+
default: () => l
|
|
38
|
+
});
|
|
39
|
+
var d = F(b), u = w(g), n = P, L = m;
|
|
40
|
+
const c = "https://connect.facebook.net/en_US/sdk.js", f = "FB", y = "fbAsyncInit", M = "facebook-player-";
|
|
41
|
+
class l extends u.Component {
|
|
42
|
+
constructor() {
|
|
43
|
+
super(...arguments), a(this, "callPlayer", n.callPlayer), a(this, "playerID", this.props.config.playerId || `${M}${(0, n.randomString)()}`), a(this, "mute", () => {
|
|
44
|
+
this.callPlayer("mute");
|
|
45
|
+
}), a(this, "unmute", () => {
|
|
46
|
+
this.callPlayer("unmute");
|
|
47
|
+
});
|
|
48
|
+
}
|
|
49
|
+
componentDidMount() {
|
|
50
|
+
this.props.onMount && this.props.onMount(this);
|
|
51
|
+
}
|
|
52
|
+
load(e, r) {
|
|
53
|
+
if (r) {
|
|
54
|
+
(0, n.getSDK)(c, f, y).then((o) => o.XFBML.parse());
|
|
55
|
+
return;
|
|
56
|
+
}
|
|
57
|
+
(0, n.getSDK)(c, f, y).then((o) => {
|
|
58
|
+
o.init({
|
|
59
|
+
appId: this.props.config.appId,
|
|
60
|
+
xfbml: !0,
|
|
61
|
+
version: this.props.config.version
|
|
62
|
+
}), o.Event.subscribe("xfbml.render", (s) => {
|
|
63
|
+
this.props.onLoaded();
|
|
64
|
+
}), o.Event.subscribe("xfbml.ready", (s) => {
|
|
65
|
+
s.type === "video" && s.id === this.playerID && (this.player = s.instance, this.player.subscribe("startedPlaying", this.props.onPlay), this.player.subscribe("paused", this.props.onPause), this.player.subscribe("finishedPlaying", this.props.onEnded), this.player.subscribe("startedBuffering", this.props.onBuffer), this.player.subscribe("finishedBuffering", this.props.onBufferEnd), this.player.subscribe("error", this.props.onError), this.props.muted ? this.callPlayer("mute") : this.callPlayer("unmute"), this.props.onReady(), document.getElementById(this.playerID).querySelector("iframe").style.visibility = "visible");
|
|
66
|
+
});
|
|
67
|
+
});
|
|
68
|
+
}
|
|
69
|
+
play() {
|
|
70
|
+
this.callPlayer("play");
|
|
71
|
+
}
|
|
72
|
+
pause() {
|
|
73
|
+
this.callPlayer("pause");
|
|
74
|
+
}
|
|
75
|
+
stop() {
|
|
76
|
+
}
|
|
77
|
+
seekTo(e, r = !0) {
|
|
78
|
+
this.callPlayer("seek", e), r || this.pause();
|
|
79
|
+
}
|
|
80
|
+
setVolume(e) {
|
|
81
|
+
this.callPlayer("setVolume", e);
|
|
82
|
+
}
|
|
83
|
+
getDuration() {
|
|
84
|
+
return this.callPlayer("getDuration");
|
|
85
|
+
}
|
|
86
|
+
getCurrentTime() {
|
|
87
|
+
return this.callPlayer("getCurrentPosition");
|
|
88
|
+
}
|
|
89
|
+
getSecondsLoaded() {
|
|
90
|
+
return null;
|
|
91
|
+
}
|
|
92
|
+
render() {
|
|
93
|
+
const { attributes: e } = this.props.config, r = {
|
|
94
|
+
width: "100%",
|
|
95
|
+
height: "100%"
|
|
96
|
+
};
|
|
97
|
+
return /* @__PURE__ */ u.default.createElement(
|
|
98
|
+
"div",
|
|
99
|
+
{
|
|
100
|
+
style: r,
|
|
101
|
+
id: this.playerID,
|
|
102
|
+
className: "fb-video",
|
|
103
|
+
"data-href": this.props.url,
|
|
104
|
+
"data-autoplay": this.props.playing ? "true" : "false",
|
|
105
|
+
"data-allowfullscreen": "true",
|
|
106
|
+
"data-controls": this.props.controls ? "true" : "false",
|
|
107
|
+
...e
|
|
108
|
+
}
|
|
109
|
+
);
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
a(l, "displayName", "Facebook");
|
|
113
|
+
a(l, "canPlay", L.canPlay.facebook);
|
|
114
|
+
a(l, "loopOnEnded", !0);
|
|
115
|
+
const x = /* @__PURE__ */ _(d), R = /* @__PURE__ */ v({
|
|
116
|
+
__proto__: null,
|
|
117
|
+
default: x
|
|
118
|
+
}, [d]);
|
|
119
|
+
export {
|
|
120
|
+
R as F
|
|
121
|
+
};
|
|
@@ -0,0 +1,219 @@
|
|
|
1
|
+
"use strict";const e=require("react/jsx-runtime"),h=require("react"),r=require("./index-BpbMKBf_.cjs"),k=require("./Chip.cjs"),b=require("./emotion-styled.browser.esm-BtEseadx.cjs"),T=require("./consts-goSZX3xP.cjs"),N=require("./useDetectMobile-zkbzoOGV.cjs"),j=require("./Icon.cjs"),P=require("./IconButton.cjs"),C=require("./Button.cjs"),M=b.styled.div`
|
|
2
|
+
display: flex;
|
|
3
|
+
gap: 0.75rem;
|
|
4
|
+
align-items: center;
|
|
5
|
+
align-content: center;
|
|
6
|
+
|
|
7
|
+
& .tags__item {
|
|
8
|
+
color: var(--gray-900, #0c1520);
|
|
9
|
+
background: var(--gray-100, #f3f6fb);
|
|
10
|
+
font-size: 0.875rem;
|
|
11
|
+
font-style: normal;
|
|
12
|
+
font-weight: 400;
|
|
13
|
+
line-height: 1.25rem;
|
|
14
|
+
letter-spacing: -0.0056rem;
|
|
15
|
+
padding: 0.5rem 0.75rem;
|
|
16
|
+
|
|
17
|
+
&.active {
|
|
18
|
+
color: var(--white, #fff);
|
|
19
|
+
background: var(--gray-900, #0c1520);
|
|
20
|
+
font-weight: 500;
|
|
21
|
+
|
|
22
|
+
&:hover {
|
|
23
|
+
color: var(--white, #fff);
|
|
24
|
+
background: var(--gray-900, #0c1520);
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
&:hover {
|
|
29
|
+
background: var(--gray-200, #e4e9f0);
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
&:focus {
|
|
33
|
+
outline: none;
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
@media (max-width: ${T.MOBILE_SIZE_PX+"px"}) {
|
|
38
|
+
width: 100%;
|
|
39
|
+
overflow-x: auto;
|
|
40
|
+
white-space: nowrap;
|
|
41
|
+
|
|
42
|
+
-webkit-overflow-scrolling: touch;
|
|
43
|
+
::-webkit-scrollbar {
|
|
44
|
+
-webkit-appearance: none;
|
|
45
|
+
}
|
|
46
|
+
-ms-overflow-style: none;
|
|
47
|
+
/* Internet Explorer 10+ */
|
|
48
|
+
scrollbar-width: none;
|
|
49
|
+
/* Firefox */
|
|
50
|
+
|
|
51
|
+
&::-webkit-scrollbar {
|
|
52
|
+
display: none;
|
|
53
|
+
/* Safari and Chrome */
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
`,E=b.styled.div`
|
|
57
|
+
display: flex;
|
|
58
|
+
gap: 1.25rem;
|
|
59
|
+
width: 100%;
|
|
60
|
+
|
|
61
|
+
& .section__column {
|
|
62
|
+
display: flex;
|
|
63
|
+
flex-direction: column;
|
|
64
|
+
gap: 1.25rem;
|
|
65
|
+
width: 100%;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
& .section__show-more {
|
|
69
|
+
color: var(--neutral-600, #0f2a46);
|
|
70
|
+
font-size: 0.875rem;
|
|
71
|
+
font-style: normal;
|
|
72
|
+
font-weight: 500;
|
|
73
|
+
line-height: 1.25rem;
|
|
74
|
+
letter-spacing: -0.0056rem;
|
|
75
|
+
|
|
76
|
+
&:focus {
|
|
77
|
+
outline: none;
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
@media (max-width: ${T.MOBILE_SIZE_PX+"px"}) {
|
|
82
|
+
flex-direction: column;
|
|
83
|
+
}
|
|
84
|
+
`,$=b.styled.div`
|
|
85
|
+
width: 100%;
|
|
86
|
+
height: fit-content;
|
|
87
|
+
background: var(--white, #fff);
|
|
88
|
+
border: 1px solid var(--gray-100, #f3f6fb);
|
|
89
|
+
display: flex;
|
|
90
|
+
flex-direction: column;
|
|
91
|
+
gap: 0.75rem;
|
|
92
|
+
padding: 1rem;
|
|
93
|
+
border-radius: 0.75rem;
|
|
94
|
+
|
|
95
|
+
&:hover {
|
|
96
|
+
cursor: pointer;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
&.expanded {
|
|
100
|
+
border: 1px solid #ff7621;
|
|
101
|
+
box-shadow: 0 2px 6px 0 rgba(0, 0, 0, 0.16),
|
|
102
|
+
0 1px 4px 0 rgba(255, 118, 33, 0.5) inset;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
& .card__heading {
|
|
106
|
+
display: flex;
|
|
107
|
+
justify-content: space-between;
|
|
108
|
+
width: 100%;
|
|
109
|
+
|
|
110
|
+
& .card__title {
|
|
111
|
+
color: var(--neutral-600, #0f2a46);
|
|
112
|
+
font-size: 1rem;
|
|
113
|
+
font-style: normal;
|
|
114
|
+
font-weight: 500;
|
|
115
|
+
line-height: 1.5rem;
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
& .card__icon {
|
|
119
|
+
color: var(--neutral-600, #0f2a46);
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
& .card__description {
|
|
124
|
+
color: var(--neutral-400, #47607b);
|
|
125
|
+
font-size: 0.875rem;
|
|
126
|
+
font-style: normal;
|
|
127
|
+
font-weight: 400;
|
|
128
|
+
line-height: 1.25rem;
|
|
129
|
+
letter-spacing: 0.0156rem;
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
& .card__impression {
|
|
133
|
+
display: flex;
|
|
134
|
+
align-items: center;
|
|
135
|
+
gap: 0.75rem;
|
|
136
|
+
|
|
137
|
+
& .imppression__question {
|
|
138
|
+
color: var(--gray-500, #7a8594);
|
|
139
|
+
font-size: 0.75rem;
|
|
140
|
+
font-style: normal;
|
|
141
|
+
font-weight: 500;
|
|
142
|
+
line-height: 1rem;
|
|
143
|
+
letter-spacing: 0.0313rem;
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
& .impression__actions {
|
|
147
|
+
display: flex;
|
|
148
|
+
gap: 0.5rem;
|
|
149
|
+
|
|
150
|
+
button {
|
|
151
|
+
color: var(--gray-600, #676e79);
|
|
152
|
+
|
|
153
|
+
&:focus {
|
|
154
|
+
outline: none;
|
|
155
|
+
}
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
&.feedback {
|
|
160
|
+
gap: 0.25rem;
|
|
161
|
+
}
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
@media (max-width: ${T.MOBILE_SIZE_PX+"px"}) {
|
|
165
|
+
& .card__impression {
|
|
166
|
+
justify-content: space-between;
|
|
167
|
+
|
|
168
|
+
&.feedback {
|
|
169
|
+
justify-content: flex-start;
|
|
170
|
+
}
|
|
171
|
+
}
|
|
172
|
+
}
|
|
173
|
+
`,I=h.forwardRef(({tags:s=[],selectedTagCode:a=null,onSelectTag:l=()=>{}},g)=>e.jsx(M,{children:s==null?void 0:s.map((t,d)=>e.jsx(k,{label:t==null?void 0:t.name,borderRadius:"curved",color:"neutral",className:`tags__item ${a===(t==null?void 0:t.code)?"active":""}`,onClick:()=>{l(t)}},`faq-section-tag__${d+1}`))}));I.propTypes={tags:r.PropTypes.array,onSelectTag:r.PropTypes.func};const v=({title:s,description:a,questionText:l,feedbackText:g,impressions:t=!1,onSelectItem:d=()=>{},onImpressed:u=()=>{}})=>{const[p,_]=h.useState(!1),[m,x]=h.useState(!1),f=()=>{_(o=>!o),d()},i=(o,c)=>{o==null||o.stopPropagation(),x(!0),u(c)};return e.jsxs($,{className:p?"expanded":"",onClick:f,children:[e.jsxs("div",{className:"card__heading",children:[e.jsx("div",{className:"card__title",children:s}),e.jsx(j,{icon:p?" mng-lnc-subtract":" mng-lnc-add",sizeInUnits:"1.25rem",className:"card__icon"})]}),p&&e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"card__description",children:a}),t&&e.jsx(e.Fragment,{children:m?e.jsxs("div",{className:"card__impression feedback",children:[e.jsx(j,{icon:" mng-lnc-checkmark--outline",sizeInUnits:"1.25rem",color:"success"}),e.jsx("div",{className:"imppression__question",children:g})]}):e.jsxs("div",{className:"card__impression",children:[e.jsx("div",{className:"imppression__question",children:l}),e.jsxs("div",{className:"impression__actions",children:[e.jsx(P,{icon:" mng-lnc-thumbs-up",borderRadius:"curved",btnType:"outline",onClick:o=>i(o,!0)}),e.jsx(P,{icon:" mng-lnc-thumbs-down",borderRadius:"curved",btnType:"outline",onClick:o=>i(o,!1)})]})]})})]})]})},S=h.forwardRef(({items:s=[],questionText:a,feedbackText:l,showMoreText:g,impressions:t=!1,onSelectItem:d=()=>{},onImpressed:u=()=>{}},p)=>{const _=N.useDetectMobile(),[m,x]=h.useState(!1),f=()=>{x(o=>!o)},i=h.useMemo(()=>{if(_)return s==null?void 0:s.map((n,y)=>e.jsx(v,{title:n==null?void 0:n.title,description:n==null?void 0:n.description,questionText:a,feedbackText:l,impressions:t,onSelectItem:()=>d(n),onImpressed:w=>u(n,w)},`faq-section-item__${y+1}`));const o=[],c=[];return s==null||s.forEach((n,y)=>{y%2===0?o.push(e.jsx(v,{title:n==null?void 0:n.title,description:n==null?void 0:n.description,questionText:a,feedbackText:l,impressions:t,onSelectItem:()=>d(n),onImpressed:w=>u(n,w)},`faq-section-item__${y+1}`)):c.push(e.jsx(v,{title:n==null?void 0:n.title,description:n==null?void 0:n.description,questionText:a,feedbackText:l,impressions:t,onSelectItem:()=>d(n),onImpressed:w=>u(n,w)},`faq-section-item__${y+1}`))}),e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"section__column",children:o}),e.jsx("div",{className:"section__column",children:c})]})},[s,_]);return e.jsx(E,{children:_?m?i:e.jsxs(e.Fragment,{children:[i==null?void 0:i.slice(0,4),(i==null?void 0:i.length)>4&&e.jsx(C,{text:g,btnType:"basic",color:"neutral",className:"section__show-more",onClick:f})]}):i})});v.propTypes={title:r.PropTypes.string,description:r.PropTypes.string,questionText:r.PropTypes.string,feedbackText:r.PropTypes.string,showMoreText:r.PropTypes.string,impressions:r.PropTypes.bool,onSelectItem:r.PropTypes.func,onImpressed:r.PropTypes.func};S.propTypes={items:r.PropTypes.array,questionText:r.PropTypes.string,feedbackText:r.PropTypes.string,showMoreText:r.PropTypes.string,impressions:r.PropTypes.bool,onSelectItem:r.PropTypes.func,onImpressed:r.PropTypes.func};const F=b.styled.div`
|
|
174
|
+
display: flex;
|
|
175
|
+
flex-direction: column;
|
|
176
|
+
align-items: center;
|
|
177
|
+
gap: 2rem;
|
|
178
|
+
|
|
179
|
+
& .section__heading {
|
|
180
|
+
display: flex;
|
|
181
|
+
flex-direction: column;
|
|
182
|
+
gap: 0.5rem;
|
|
183
|
+
text-align: center;
|
|
184
|
+
width: 100%;
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
& .section__title {
|
|
188
|
+
color: var(--navy-900, #0c1520);
|
|
189
|
+
text-align: center;
|
|
190
|
+
font-size: 1.5rem;
|
|
191
|
+
font-style: normal;
|
|
192
|
+
font-weight: 600;
|
|
193
|
+
line-height: 2rem;
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
& .section__description {
|
|
197
|
+
color: var(--navy-500, #7a8594);
|
|
198
|
+
text-align: center;
|
|
199
|
+
font-size: 1rem;
|
|
200
|
+
font-style: normal;
|
|
201
|
+
font-weight: 500;
|
|
202
|
+
line-height: 1.5rem;
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
@media (max-width: ${T.MOBILE_SIZE_PX+"px"}) {
|
|
206
|
+
& .section__title {
|
|
207
|
+
font-size: 1rem;
|
|
208
|
+
font-weight: 500;
|
|
209
|
+
line-height: 1.5rem;
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
& .section__description {
|
|
213
|
+
font-size: 0.875rem;
|
|
214
|
+
font-weight: 400;
|
|
215
|
+
line-height: 1.25rem;
|
|
216
|
+
letter-spacing: 0.25px;
|
|
217
|
+
}
|
|
218
|
+
}
|
|
219
|
+
`,q=h.forwardRef(({title:s,description:a,questionText:l,feedbackText:g,showMoreText:t,impressions:d=!1,tags:u=[],items:p=[],onSelectItem:_=()=>{},onImpressed:m=()=>{}},x)=>{const[f,i]=h.useState(null),o=c=>{i(c==null?void 0:c.code)};return e.jsxs(F,{ref:x,children:[e.jsxs("div",{className:"section__heading",children:[s&&e.jsx("div",{className:"section__title",children:s}),a&&e.jsx("div",{className:"section__description",children:a})]}),e.jsx(I,{tags:u,selectedTagCode:f,onSelectTag:o}),e.jsx(S,{items:f===null?p:p==null?void 0:p.filter(c=>(c==null?void 0:c.tagCode)===f),questionText:l,feedbackText:g,showMoreText:t,impressions:d,onSelectItem:_,onImpressed:m},`faq-section-items__${f}`)]})});q.propTypes={title:r.PropTypes.string,description:r.PropTypes.string,tags:r.PropTypes.array,items:r.PropTypes.array,questionText:r.PropTypes.string,feedbackText:r.PropTypes.string,showMoreText:r.PropTypes.string,impressions:r.PropTypes.bool,onSelectItem:r.PropTypes.func,onImpressed:r.PropTypes.func};module.exports=q;
|