@lanaco/lnc-react-ui 4.0.199 → 4.0.200
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 +5 -5
- package/dist/Accordion.js +45 -56
- package/dist/AccordionDetails.cjs +3 -3
- package/dist/AccordionDetails.js +11 -25
- package/dist/AccordionSummary.cjs +4 -4
- package/dist/AccordionSummary.js +34 -44
- package/dist/ActionsToolbar.cjs +2 -3
- package/dist/ActionsToolbar.js +83 -135
- package/dist/Alert.cjs +10 -10
- package/dist/Alert.js +32 -64
- package/dist/Avatar.cjs +9 -9
- package/dist/Avatar.js +33 -72
- package/dist/Badge.cjs +6 -6
- package/dist/Badge.js +22 -47
- package/dist/BlogCategoryCardsSection.cjs +1 -1
- package/dist/BlogCategoryCardsSection.js +12 -14
- package/dist/BlogExploreSection.cjs +1 -1
- package/dist/BlogExploreSection.js +1 -1
- package/dist/BlogsSectionWithFilters.cjs +1 -1
- package/dist/BlogsSectionWithFilters.js +1 -1
- package/dist/Breadcrumbs.cjs +5 -5
- package/dist/Breadcrumbs.js +57 -87
- package/dist/Button.cjs +11 -11
- package/dist/Button.js +126 -173
- package/dist/ButtonGroup.cjs +8 -8
- package/dist/ButtonGroup.js +37 -49
- package/dist/CalorieCalculatorSection.cjs +8 -8
- package/dist/CalorieCalculatorSection.js +90 -97
- package/dist/CheckBoxInput.cjs +1 -1
- package/dist/CheckBoxInput.js +2 -5
- package/dist/Chip.cjs +14 -14
- package/dist/Chip.js +73 -111
- package/dist/ConfirmationForm.cjs +6 -6
- package/dist/ConfirmationForm.js +67 -109
- package/dist/ContactSection.cjs +1 -0
- package/dist/ContactSection.js +1 -0
- package/dist/Content.cjs +1 -1
- package/dist/Content.js +7 -15
- package/dist/{DailyMotion-ByXblnua.js → DailyMotion-BBcJkMo_.js} +1 -1
- package/dist/{DailyMotion-BaFUcQKQ.cjs → DailyMotion-CpZExcrg.cjs} +1 -1
- package/dist/DataView.cjs +1 -1
- package/dist/DataView.js +30 -50
- package/dist/DateInput.cjs +4 -4
- package/dist/DateInput.js +1347 -1383
- package/dist/DecimalInput.cjs +6 -6
- package/dist/DecimalInput.js +210 -263
- package/dist/DecimalInputV2.cjs +23 -23
- package/dist/DecimalInputV2.js +119 -176
- package/dist/DetailedProductsInfinitiveSection.cjs +1 -1
- package/dist/DetailedProductsInfinitiveSection.js +1 -1
- package/dist/DetailedProductsSection.cjs +1 -1
- package/dist/DetailedProductsSection.js +1 -1
- package/dist/DetailsView.cjs +9 -9
- package/dist/DetailsView.js +111 -162
- package/dist/DoubleRangeSlider.cjs +22 -22
- package/dist/DoubleRangeSlider.js +70 -95
- package/dist/DragAndDropFile.cjs +10 -10
- package/dist/DragAndDropFile.js +347 -402
- package/dist/DragDropFiles.cjs +4 -4
- package/dist/DragDropFiles.js +70 -124
- package/dist/Drawer.cjs +5 -5
- package/dist/Drawer.js +97 -135
- package/dist/Dropdown.cjs +1 -1
- package/dist/Dropdown.js +44 -213
- package/dist/DropdownItem.cjs +14 -14
- package/dist/DropdownItem.js +106 -142
- package/dist/DropdownLookup.cjs +1 -1
- package/dist/DropdownLookup.js +61 -242
- package/dist/DropdownMenu.cjs +4 -4
- package/dist/DropdownMenu.js +87 -149
- package/dist/EditableTable.cjs +10 -10
- package/dist/EditableTable.js +165 -331
- package/dist/{Facebook-BCqiOWZO.js → Facebook-BSWPEXjA.js} +1 -1
- package/dist/{Facebook-D9wwecSW.cjs → Facebook-DoKw-XxT.cjs} +1 -1
- package/dist/FaqSection.cjs +3 -3
- package/dist/FaqSection.js +119 -153
- package/dist/FileInput.cjs +7 -7
- package/dist/FileInput.js +66 -94
- package/dist/{FilePlayer-ktaNhf3p.js → FilePlayer-BtGpIWnK.js} +1 -1
- package/dist/{FilePlayer-DB6jnpeC.cjs → FilePlayer-D9az_lc_.cjs} +1 -1
- package/dist/FlexBox.cjs +6 -6
- package/dist/FlexBox.js +28 -63
- package/dist/FlexGrid.cjs +1 -1
- package/dist/FlexGrid.js +27 -67
- package/dist/FlexGridItem.cjs +6 -6
- package/dist/FlexGridItem.js +34 -62
- package/dist/Footer.cjs +1 -1
- package/dist/Footer.js +7 -15
- package/dist/FormField.cjs +7 -7
- package/dist/FormField.js +22 -47
- package/dist/FormView.cjs +6 -6
- package/dist/FormView.js +148 -195
- package/dist/Grid.cjs +2 -2
- package/dist/Grid.js +40 -65
- package/dist/GridItem.cjs +2 -2
- package/dist/GridItem.js +47 -80
- package/dist/Header.cjs +1 -1
- package/dist/Header.js +7 -15
- package/dist/HelpBannerSection.cjs +3 -3
- package/dist/HelpBannerSection.js +9 -15
- package/dist/Icon.cjs +4 -4
- package/dist/Icon.js +29 -55
- package/dist/IconButton.cjs +9 -9
- package/dist/IconButton.js +89 -127
- package/dist/{Kaltura-CvlN0HDg.js → Kaltura-BDqlEQpd.js} +1 -1
- package/dist/{Kaltura-CCdXLzOa.cjs → Kaltura-CK6JHUZC.cjs} +1 -1
- package/dist/Kanban.cjs +7 -7
- package/dist/Kanban.js +2033 -2098
- package/dist/KanbanActionsToolbar.cjs +4 -5
- package/dist/KanbanActionsToolbar.js +61 -96
- package/dist/KanbanCard-B9V9EjVE.js +137 -0
- package/dist/KanbanCard-DihrKn-I.cjs +30 -0
- package/dist/KanbanCard.cjs +1 -1
- package/dist/KanbanCard.js +2 -3
- package/dist/KanbanFooter.cjs +3 -3
- package/dist/KanbanFooter.js +37 -55
- package/dist/KanbanHeader.cjs +4 -4
- package/dist/KanbanHeader.js +49 -81
- package/dist/KanbanView.cjs +2 -2
- package/dist/KanbanView.js +106 -173
- package/dist/Link.cjs +7 -7
- package/dist/Link.js +20 -37
- 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 +13 -13
- package/dist/MenuItem.js +101 -139
- package/dist/{Mixcloud-nG_VyBNt.cjs → Mixcloud-C1Boh2Bm.cjs} +1 -1
- package/dist/{Mixcloud-Bb8MTclI.js → Mixcloud-zAh6j7Ha.js} +1 -1
- package/dist/Modal.cjs +18 -19
- package/dist/Modal.js +131 -166
- package/dist/MultiSelectDropdown.cjs +1 -1
- package/dist/MultiSelectDropdown.js +25 -196
- package/dist/MultiSelectDropdownLookup.cjs +1 -1
- package/dist/MultiSelectDropdownLookup.js +27 -209
- package/dist/{Mux-DfYpGTiP.js → Mux-BGTG_Tvc.js} +1 -1
- package/dist/{Mux-BgB2a8kM.cjs → Mux-C6TwZeaq.cjs} +1 -1
- package/dist/NestedDropdownItem.cjs +3 -3
- package/dist/NestedDropdownItem.js +45 -67
- package/dist/NestedMenuItem.cjs +5 -5
- package/dist/NestedMenuItem.js +51 -78
- package/dist/NotificationContainer.cjs +10 -10
- package/dist/NotificationContainer.js +46 -79
- package/dist/NotificationMessage.cjs +2 -2
- package/dist/NotificationMessage.js +47 -64
- package/dist/NumberInput.cjs +23 -23
- package/dist/NumberInput.js +89 -149
- package/dist/PageLayout.cjs +2 -2
- package/dist/PageLayout.js +20 -28
- package/dist/Pagination.cjs +3 -3
- package/dist/Pagination.js +102 -185
- package/dist/PasswordInput.cjs +23 -23
- package/dist/PasswordInput.js +108 -137
- package/dist/Popover.cjs +1 -1
- package/dist/Popover.js +7 -32
- package/dist/PopoverContent.cjs +5 -5
- package/dist/PopoverContent.js +22 -28
- package/dist/PopoverTrigger.cjs +1 -1
- package/dist/PopoverTrigger.js +7 -12
- package/dist/ProgressBar.cjs +8 -8
- package/dist/ProgressBar.js +32 -59
- package/dist/RadioGroup.cjs +3 -3
- package/dist/RadioGroup.js +41 -72
- package/dist/RadioInput.cjs +28 -28
- package/dist/RadioInput.js +78 -123
- package/dist/RangeSlider.cjs +19 -19
- package/dist/RangeSlider.js +92 -119
- package/dist/ReviewsSection.cjs +13 -13
- package/dist/ReviewsSection.js +81 -101
- package/dist/SalesCampaignsSection.cjs +19 -19
- package/dist/SalesCampaignsSection.js +283 -324
- package/dist/SearchBar.cjs +10 -10
- package/dist/SearchBar.js +168 -188
- package/dist/SearchSection-B94YN_6P.cjs +161 -0
- package/dist/{SearchSection-DDQ_K98T.js → SearchSection-DAaMecR4.js} +337 -359
- package/dist/SearchSection.cjs +1 -1
- package/dist/SearchSection.js +2 -3
- package/dist/Separator.cjs +3 -3
- package/dist/Separator.js +14 -19
- package/dist/Sidebar.cjs +4 -5
- package/dist/Sidebar.js +33 -56
- package/dist/SimpleCategoriesSection.cjs +1 -1
- package/dist/SimpleCategoriesSection.js +1 -1
- package/dist/{SoundCloud-C86xwUG6.cjs → SoundCloud-C6R6E6Zc.cjs} +1 -1
- package/dist/{SoundCloud-DG91z39R.js → SoundCloud-lO8wg_0s.js} +1 -1
- package/dist/Spinner.cjs +18 -18
- package/dist/Spinner.js +37 -54
- package/dist/StatsSection.cjs +6 -6
- package/dist/StatsSection.js +15 -25
- package/dist/{Streamable-4uAnb3WN.cjs → Streamable-DZO95CiT.cjs} +1 -1
- package/dist/{Streamable-BAIWLgyD.js → Streamable-Dwa5ZEK4.js} +1 -1
- package/dist/Surface.cjs +4 -4
- package/dist/Surface.js +19 -34
- package/dist/SwipeableDrawer.cjs +8 -8
- package/dist/SwipeableDrawer.js +84 -136
- package/dist/TabItem.cjs +11 -11
- package/dist/TabItem.js +83 -118
- package/dist/Table.cjs +65 -65
- package/dist/Table.js +786 -1167
- package/dist/TableView.cjs +2 -2
- package/dist/TableView.js +113 -197
- package/dist/Tabs.cjs +4 -4
- package/dist/Tabs.js +41 -60
- package/dist/TextAreaInput.cjs +14 -14
- package/dist/TextAreaInput.js +131 -181
- package/dist/TextInput.cjs +23 -23
- package/dist/TextInput.js +78 -126
- package/dist/ThemeProvider.cjs +5 -5
- package/dist/ThemeProvider.js +35 -39
- package/dist/TimeInput.cjs +7 -7
- package/dist/TimeInput.js +46 -72
- package/dist/Toggle.cjs +20 -20
- package/dist/Toggle.js +78 -109
- package/dist/ToggleSection.cjs +5 -5
- package/dist/ToggleSection.js +48 -55
- package/dist/TreeMenu.cjs +5 -5
- package/dist/TreeMenu.js +43 -67
- package/dist/TreeMenuSeparator.cjs +3 -3
- package/dist/TreeMenuSeparator.js +12 -20
- package/dist/{Twitch-CVAj24ti.cjs → Twitch-B17oKtD0.cjs} +1 -1
- package/dist/{Twitch-DfXeW5Xs.js → Twitch-C73-dwWo.js} +1 -1
- package/dist/UploadedFile.cjs +11 -11
- package/dist/UploadedFile.js +73 -99
- package/dist/{Vidyard-De3pges0.js → Vidyard-B6GdBHsM.js} +1 -1
- package/dist/{Vidyard-DaCcaaH4.cjs → Vidyard-s1MMcaRm.cjs} +1 -1
- package/dist/{Vimeo-8wXdCXGs.cjs → Vimeo-J1l_SU2E.cjs} +1 -1
- package/dist/{Vimeo-N6I2qi_h.js → Vimeo-kzHz4Gco.js} +1 -1
- package/dist/{Wistia-BrUzHQoq.cjs → Wistia-CudQyDHM.cjs} +1 -1
- package/dist/{Wistia-dlV6n6tO.js → Wistia-w4jnqd7y.js} +1 -1
- package/dist/{YouTube-Cfsj4ZaP.cjs → YouTube-BAYKouHS.cjs} +1 -1
- package/dist/{YouTube-DNJxWqRm.js → YouTube-BKyipPZx.js} +1 -1
- package/dist/index-BdKi2ogu.js +39 -0
- package/dist/index-CRk3vcd4.cjs +95 -0
- package/dist/index-CX2A-q39.cjs +4 -0
- package/dist/{index-CWALXP1T.js → index-CwMCk9wV.js} +118 -145
- package/dist/index.cjs +1 -1
- package/dist/index.js +2 -2
- package/dist/{tag-BtS5lWJ0.js → tag-Dm8CW4TM.js} +21 -27
- package/dist/{tag-CmeZsPQt.cjs → tag-UQjq2_Ba.cjs} +7 -7
- package/package.json +1 -1
- package/dist/KanbanCard-68kSAXL6.js +0 -175
- package/dist/KanbanCard-BDvoqTDS.cjs +0 -30
- package/dist/SearchSection-BcbHP6QF.cjs +0 -161
- package/dist/index-Be-_NM9Q.cjs +0 -4
- package/dist/index-C0LcDEqa.js +0 -47
- package/dist/index-CSNxZFTX.cjs +0 -95
package/dist/FaqSection.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const e=require("react/jsx-runtime"),
|
|
1
|
+
"use strict";const e=require("react/jsx-runtime"),_=require("react"),q=require("./tag-UQjq2_Ba.cjs"),N=require("./useDetectMobile-zkbzoOGV.cjs"),S=require("./Icon.cjs"),w=require("./IconButton.cjs"),b=require("./Button.cjs"),y=require("./emotion-styled.browser.esm-BtEseadx.cjs"),I=require("./consts-goSZX3xP.cjs"),m=({title:o,description:r,questionText:i,feedbackText:p,impressions:l=!1,onSelectItem:a=()=>{},onImpressed:d=()=>{}})=>{const[h,t]=_.useState(!1),[x,f]=_.useState(!1),g=()=>{t(c=>!c),a()},s=(c,u)=>{c==null||c.stopPropagation(),f(!0),d(u)};return e.jsxs(q.ItemContainer,{className:h?"expanded":"",onClick:g,children:[e.jsxs("div",{className:"card__heading",children:[e.jsx("div",{className:"card__title",children:o}),e.jsx(S,{icon:h?" mng-lnc-subtract":" mng-lnc-add",sizeInUnits:"1.25rem",className:"card__icon"})]}),h&&e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"card__description",children:r}),l&&e.jsx(e.Fragment,{children:x?e.jsxs("div",{className:"card__impression feedback",children:[e.jsx(S,{icon:" mng-lnc-checkmark--outline",sizeInUnits:"1.25rem",color:"success"}),e.jsx("div",{className:"imppression__question",children:p})]}):e.jsxs("div",{className:"card__impression",children:[e.jsx("div",{className:"imppression__question",children:i}),e.jsxs("div",{className:"impression__actions",children:[e.jsx(w,{icon:" mng-lnc-thumbs-up",borderRadius:"curved",btnType:"outline",onClick:c=>s(c,!0)}),e.jsx(w,{icon:" mng-lnc-thumbs-down",borderRadius:"curved",btnType:"outline",onClick:c=>s(c,!1)})]})]})})]})]})},C=_.forwardRef(({items:o=[],questionText:r,feedbackText:i,showMoreText:p,impressions:l=!1,onSelectItem:a=()=>{},onImpressed:d=()=>{}},h)=>{const t=N.useDetectMobile(),[x,f]=_.useState(!1),g=()=>{f(c=>!c)},s=_.useMemo(()=>{if(t)return o==null?void 0:o.map((n,j)=>e.jsx(m,{title:n==null?void 0:n.title,description:n==null?void 0:n.description,questionText:r,feedbackText:i,impressions:l,onSelectItem:()=>a(n),onImpressed:v=>d(n,v)},`faq-section-item__${j+1}`));const c=[],u=[];return o==null||o.forEach((n,j)=>{j%2===0?c.push(e.jsx(m,{title:n==null?void 0:n.title,description:n==null?void 0:n.description,questionText:r,feedbackText:i,impressions:l,onSelectItem:()=>a(n),onImpressed:v=>d(n,v)},`faq-section-item__${j+1}`)):u.push(e.jsx(m,{title:n==null?void 0:n.title,description:n==null?void 0:n.description,questionText:r,feedbackText:i,impressions:l,onSelectItem:()=>a(n),onImpressed:v=>d(n,v)},`faq-section-item__${j+1}`))}),e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"section__column",children:c}),e.jsx("div",{className:"section__column",children:u})]})},[o,t]);return e.jsx(q.ItemsContainer,{ref:h,children:t?x?s:e.jsxs(e.Fragment,{children:[s==null?void 0:s.slice(0,4),(s==null?void 0:s.length)>4&&e.jsx(b,{text:p,btnType:"basic",color:"neutral",className:"section__show-more",onClick:g})]}):s})}),k=y.styled.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex-direction: column;
|
|
4
4
|
align-items: center;
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
line-height: 1.5rem;
|
|
31
31
|
}
|
|
32
32
|
|
|
33
|
-
@media (max-width: ${
|
|
33
|
+
@media (max-width: ${I.MOBILE_SIZE_PX+"px"}) {
|
|
34
34
|
& .section__title {
|
|
35
35
|
font-size: 1rem;
|
|
36
36
|
font-weight: 500;
|
|
@@ -44,4 +44,4 @@
|
|
|
44
44
|
letter-spacing: 0.25px;
|
|
45
45
|
}
|
|
46
46
|
}
|
|
47
|
-
`,
|
|
47
|
+
`,F=_.forwardRef(({title:o,description:r,questionText:i="What do you think about this answer?",feedbackText:p="Thank you for feedback!",showMoreText:l="Show more",allTagText:a="All",impressions:d=!1,tags:h=[],items:t=[],onSelectItem:x=()=>{},onImpressed:f=()=>{}},g)=>{const[s,c]=_.useState(null),u=n=>{c(n==null?void 0:n.code)};return e.jsxs(k,{ref:g,children:[e.jsxs("div",{className:"section__heading",children:[o&&e.jsx("div",{className:"section__title",children:o}),r&&e.jsx("div",{className:"section__description",children:r})]}),e.jsx(q.FaqSectionTags,{tags:h,allTagText:a,selectedTagCode:s,onSelectTag:u}),e.jsx(C,{items:s===null?t:t==null?void 0:t.filter(n=>(n==null?void 0:n.tagCode)===s),questionText:i,feedbackText:p,showMoreText:l,impressions:d,onSelectItem:x,onImpressed:f},`faq-section-items__${s}`)]})});module.exports=F;
|
package/dist/FaqSection.js
CHANGED
|
@@ -1,77 +1,76 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { forwardRef as
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import {
|
|
10
|
-
import { M as z } from "./consts-BuFChS64.js";
|
|
1
|
+
import { jsx as n, jsxs as t, Fragment as w } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as C, useState as S, useMemo as k } from "react";
|
|
3
|
+
import { I as q, a as x, F as M } from "./tag-Dm8CW4TM.js";
|
|
4
|
+
import { u as F } from "./useDetectMobile-Bkvj0VMa.js";
|
|
5
|
+
import b from "./Icon.js";
|
|
6
|
+
import y from "./IconButton.js";
|
|
7
|
+
import T from "./Button.js";
|
|
8
|
+
import { s as $ } from "./emotion-styled.browser.esm-BNN1dTl3.js";
|
|
9
|
+
import { M as E } from "./consts-BuFChS64.js";
|
|
11
10
|
const I = ({
|
|
12
|
-
title:
|
|
13
|
-
description:
|
|
14
|
-
questionText:
|
|
15
|
-
feedbackText:
|
|
16
|
-
impressions:
|
|
17
|
-
onSelectItem:
|
|
11
|
+
title: s,
|
|
12
|
+
description: l,
|
|
13
|
+
questionText: a,
|
|
14
|
+
feedbackText: p,
|
|
15
|
+
impressions: i = !1,
|
|
16
|
+
onSelectItem: d = () => {
|
|
18
17
|
},
|
|
19
18
|
onImpressed: h = () => {
|
|
20
19
|
}
|
|
21
20
|
}) => {
|
|
22
|
-
const [
|
|
23
|
-
|
|
24
|
-
}, o = (
|
|
25
|
-
|
|
21
|
+
const [_, r] = S(!1), [f, u] = S(!1), g = () => {
|
|
22
|
+
r((c) => !c), d();
|
|
23
|
+
}, o = (c, m) => {
|
|
24
|
+
c == null || c.stopPropagation(), u(!0), h(m);
|
|
26
25
|
};
|
|
27
|
-
return /* @__PURE__ */
|
|
28
|
-
|
|
26
|
+
return /* @__PURE__ */ t(
|
|
27
|
+
x,
|
|
29
28
|
{
|
|
30
|
-
className:
|
|
31
|
-
onClick:
|
|
29
|
+
className: _ ? "expanded" : "",
|
|
30
|
+
onClick: g,
|
|
32
31
|
children: [
|
|
33
|
-
/* @__PURE__ */
|
|
34
|
-
/* @__PURE__ */
|
|
35
|
-
/* @__PURE__ */
|
|
36
|
-
|
|
32
|
+
/* @__PURE__ */ t("div", { className: "card__heading", children: [
|
|
33
|
+
/* @__PURE__ */ n("div", { className: "card__title", children: s }),
|
|
34
|
+
/* @__PURE__ */ n(
|
|
35
|
+
b,
|
|
37
36
|
{
|
|
38
|
-
icon:
|
|
37
|
+
icon: _ ? " mng-lnc-subtract" : " mng-lnc-add",
|
|
39
38
|
sizeInUnits: "1.25rem",
|
|
40
39
|
className: "card__icon"
|
|
41
40
|
}
|
|
42
41
|
)
|
|
43
42
|
] }),
|
|
44
|
-
|
|
45
|
-
/* @__PURE__ */
|
|
46
|
-
|
|
47
|
-
/* @__PURE__ */
|
|
48
|
-
|
|
43
|
+
_ && /* @__PURE__ */ t(w, { children: [
|
|
44
|
+
/* @__PURE__ */ n("div", { className: "card__description", children: l }),
|
|
45
|
+
i && /* @__PURE__ */ n(w, { children: f ? /* @__PURE__ */ t("div", { className: "card__impression feedback", children: [
|
|
46
|
+
/* @__PURE__ */ n(
|
|
47
|
+
b,
|
|
49
48
|
{
|
|
50
49
|
icon: " mng-lnc-checkmark--outline",
|
|
51
50
|
sizeInUnits: "1.25rem",
|
|
52
51
|
color: "success"
|
|
53
52
|
}
|
|
54
53
|
),
|
|
55
|
-
/* @__PURE__ */
|
|
56
|
-
] }) : /* @__PURE__ */
|
|
57
|
-
/* @__PURE__ */
|
|
58
|
-
/* @__PURE__ */
|
|
59
|
-
/* @__PURE__ */
|
|
60
|
-
|
|
54
|
+
/* @__PURE__ */ n("div", { className: "imppression__question", children: p })
|
|
55
|
+
] }) : /* @__PURE__ */ t("div", { className: "card__impression", children: [
|
|
56
|
+
/* @__PURE__ */ n("div", { className: "imppression__question", children: a }),
|
|
57
|
+
/* @__PURE__ */ t("div", { className: "impression__actions", children: [
|
|
58
|
+
/* @__PURE__ */ n(
|
|
59
|
+
y,
|
|
61
60
|
{
|
|
62
61
|
icon: " mng-lnc-thumbs-up",
|
|
63
62
|
borderRadius: "curved",
|
|
64
63
|
btnType: "outline",
|
|
65
|
-
onClick: (
|
|
64
|
+
onClick: (c) => o(c, !0)
|
|
66
65
|
}
|
|
67
66
|
),
|
|
68
|
-
/* @__PURE__ */
|
|
69
|
-
|
|
67
|
+
/* @__PURE__ */ n(
|
|
68
|
+
y,
|
|
70
69
|
{
|
|
71
70
|
icon: " mng-lnc-thumbs-down",
|
|
72
71
|
borderRadius: "curved",
|
|
73
72
|
btnType: "outline",
|
|
74
|
-
onClick: (
|
|
73
|
+
onClick: (c) => o(c, !1)
|
|
75
74
|
}
|
|
76
75
|
)
|
|
77
76
|
] })
|
|
@@ -80,106 +79,86 @@ const I = ({
|
|
|
80
79
|
]
|
|
81
80
|
}
|
|
82
81
|
);
|
|
83
|
-
},
|
|
82
|
+
}, z = C(
|
|
84
83
|
({
|
|
85
|
-
items:
|
|
86
|
-
questionText:
|
|
87
|
-
feedbackText:
|
|
88
|
-
showMoreText:
|
|
89
|
-
impressions:
|
|
90
|
-
onSelectItem:
|
|
84
|
+
items: s = [],
|
|
85
|
+
questionText: l,
|
|
86
|
+
feedbackText: a,
|
|
87
|
+
showMoreText: p,
|
|
88
|
+
impressions: i = !1,
|
|
89
|
+
onSelectItem: d = () => {
|
|
91
90
|
},
|
|
92
91
|
onImpressed: h = () => {
|
|
93
92
|
}
|
|
94
|
-
},
|
|
95
|
-
const
|
|
96
|
-
|
|
97
|
-
}, o =
|
|
98
|
-
if (
|
|
99
|
-
return
|
|
93
|
+
}, _) => {
|
|
94
|
+
const r = F(), [f, u] = S(!1), g = () => {
|
|
95
|
+
u((c) => !c);
|
|
96
|
+
}, o = k(() => {
|
|
97
|
+
if (r)
|
|
98
|
+
return s == null ? void 0 : s.map((e, v) => /* @__PURE__ */ n(
|
|
100
99
|
I,
|
|
101
100
|
{
|
|
102
101
|
title: e == null ? void 0 : e.title,
|
|
103
102
|
description: e == null ? void 0 : e.description,
|
|
104
|
-
questionText:
|
|
105
|
-
feedbackText:
|
|
106
|
-
impressions:
|
|
107
|
-
onSelectItem: () =>
|
|
108
|
-
onImpressed: (
|
|
103
|
+
questionText: l,
|
|
104
|
+
feedbackText: a,
|
|
105
|
+
impressions: i,
|
|
106
|
+
onSelectItem: () => d(e),
|
|
107
|
+
onImpressed: (N) => h(e, N)
|
|
109
108
|
},
|
|
110
109
|
`faq-section-item__${v + 1}`
|
|
111
110
|
));
|
|
112
|
-
const
|
|
113
|
-
return
|
|
114
|
-
v % 2 === 0 ?
|
|
115
|
-
/* @__PURE__ */
|
|
111
|
+
const c = [], m = [];
|
|
112
|
+
return s == null || s.forEach((e, v) => {
|
|
113
|
+
v % 2 === 0 ? c.push(
|
|
114
|
+
/* @__PURE__ */ n(
|
|
116
115
|
I,
|
|
117
116
|
{
|
|
118
117
|
title: e == null ? void 0 : e.title,
|
|
119
118
|
description: e == null ? void 0 : e.description,
|
|
120
|
-
questionText:
|
|
121
|
-
feedbackText:
|
|
122
|
-
impressions:
|
|
123
|
-
onSelectItem: () =>
|
|
124
|
-
onImpressed: (
|
|
119
|
+
questionText: l,
|
|
120
|
+
feedbackText: a,
|
|
121
|
+
impressions: i,
|
|
122
|
+
onSelectItem: () => d(e),
|
|
123
|
+
onImpressed: (N) => h(e, N)
|
|
125
124
|
},
|
|
126
125
|
`faq-section-item__${v + 1}`
|
|
127
126
|
)
|
|
128
|
-
) :
|
|
129
|
-
/* @__PURE__ */
|
|
127
|
+
) : m.push(
|
|
128
|
+
/* @__PURE__ */ n(
|
|
130
129
|
I,
|
|
131
130
|
{
|
|
132
131
|
title: e == null ? void 0 : e.title,
|
|
133
132
|
description: e == null ? void 0 : e.description,
|
|
134
|
-
questionText:
|
|
135
|
-
feedbackText:
|
|
136
|
-
impressions:
|
|
137
|
-
onSelectItem: () =>
|
|
138
|
-
onImpressed: (
|
|
133
|
+
questionText: l,
|
|
134
|
+
feedbackText: a,
|
|
135
|
+
impressions: i,
|
|
136
|
+
onSelectItem: () => d(e),
|
|
137
|
+
onImpressed: (N) => h(e, N)
|
|
139
138
|
},
|
|
140
139
|
`faq-section-item__${v + 1}`
|
|
141
140
|
)
|
|
142
141
|
);
|
|
143
|
-
}), /* @__PURE__ */
|
|
144
|
-
/* @__PURE__ */
|
|
145
|
-
/* @__PURE__ */
|
|
142
|
+
}), /* @__PURE__ */ t(w, { children: [
|
|
143
|
+
/* @__PURE__ */ n("div", { className: "section__column", children: c }),
|
|
144
|
+
/* @__PURE__ */ n("div", { className: "section__column", children: m })
|
|
146
145
|
] });
|
|
147
|
-
}, [
|
|
148
|
-
return /* @__PURE__ */
|
|
146
|
+
}, [s, r]);
|
|
147
|
+
return /* @__PURE__ */ n(q, { ref: _, children: r ? f ? o : /* @__PURE__ */ t(w, { children: [
|
|
149
148
|
o == null ? void 0 : o.slice(0, 4),
|
|
150
|
-
(o == null ? void 0 : o.length) > 4 && /* @__PURE__ */
|
|
151
|
-
|
|
149
|
+
(o == null ? void 0 : o.length) > 4 && /* @__PURE__ */ n(
|
|
150
|
+
T,
|
|
152
151
|
{
|
|
153
|
-
text:
|
|
152
|
+
text: p,
|
|
154
153
|
btnType: "basic",
|
|
155
154
|
color: "neutral",
|
|
156
155
|
className: "section__show-more",
|
|
157
|
-
onClick:
|
|
156
|
+
onClick: g
|
|
158
157
|
}
|
|
159
158
|
)
|
|
160
159
|
] }) : o });
|
|
161
160
|
}
|
|
162
|
-
)
|
|
163
|
-
I.propTypes = {
|
|
164
|
-
title: n.string,
|
|
165
|
-
description: n.string,
|
|
166
|
-
questionText: n.string,
|
|
167
|
-
feedbackText: n.string,
|
|
168
|
-
showMoreText: n.string,
|
|
169
|
-
impressions: n.bool,
|
|
170
|
-
onSelectItem: n.func,
|
|
171
|
-
onImpressed: n.func
|
|
172
|
-
};
|
|
173
|
-
k.propTypes = {
|
|
174
|
-
items: n.array,
|
|
175
|
-
questionText: n.string,
|
|
176
|
-
feedbackText: n.string,
|
|
177
|
-
showMoreText: n.string,
|
|
178
|
-
impressions: n.bool,
|
|
179
|
-
onSelectItem: n.func,
|
|
180
|
-
onImpressed: n.func
|
|
181
|
-
};
|
|
182
|
-
const B = P.div`
|
|
161
|
+
), B = $.div`
|
|
183
162
|
display: flex;
|
|
184
163
|
flex-direction: column;
|
|
185
164
|
align-items: center;
|
|
@@ -211,7 +190,7 @@ const B = P.div`
|
|
|
211
190
|
line-height: 1.5rem;
|
|
212
191
|
}
|
|
213
192
|
|
|
214
|
-
@media (max-width: ${
|
|
193
|
+
@media (max-width: ${E + "px"}) {
|
|
215
194
|
& .section__title {
|
|
216
195
|
font-size: 1rem;
|
|
217
196
|
font-weight: 500;
|
|
@@ -225,68 +204,55 @@ const B = P.div`
|
|
|
225
204
|
letter-spacing: 0.25px;
|
|
226
205
|
}
|
|
227
206
|
}
|
|
228
|
-
`,
|
|
207
|
+
`, X = C(
|
|
229
208
|
({
|
|
230
|
-
title:
|
|
231
|
-
description:
|
|
232
|
-
questionText:
|
|
233
|
-
feedbackText:
|
|
234
|
-
showMoreText:
|
|
235
|
-
allTagText:
|
|
209
|
+
title: s,
|
|
210
|
+
description: l,
|
|
211
|
+
questionText: a = "What do you think about this answer?",
|
|
212
|
+
feedbackText: p = "Thank you for feedback!",
|
|
213
|
+
showMoreText: i = "Show more",
|
|
214
|
+
allTagText: d = "All",
|
|
236
215
|
impressions: h = !1,
|
|
237
|
-
tags:
|
|
238
|
-
items:
|
|
239
|
-
onSelectItem:
|
|
216
|
+
tags: _ = [],
|
|
217
|
+
items: r = [],
|
|
218
|
+
onSelectItem: f = () => {
|
|
240
219
|
},
|
|
241
|
-
onImpressed:
|
|
220
|
+
onImpressed: u = () => {
|
|
242
221
|
}
|
|
243
|
-
},
|
|
244
|
-
const [o,
|
|
245
|
-
return /* @__PURE__ */
|
|
246
|
-
/* @__PURE__ */
|
|
247
|
-
|
|
248
|
-
|
|
222
|
+
}, g) => {
|
|
223
|
+
const [o, c] = S(null);
|
|
224
|
+
return /* @__PURE__ */ t(B, { ref: g, children: [
|
|
225
|
+
/* @__PURE__ */ t("div", { className: "section__heading", children: [
|
|
226
|
+
s && /* @__PURE__ */ n("div", { className: "section__title", children: s }),
|
|
227
|
+
l && /* @__PURE__ */ n("div", { className: "section__description", children: l })
|
|
249
228
|
] }),
|
|
250
|
-
/* @__PURE__ */
|
|
251
|
-
|
|
229
|
+
/* @__PURE__ */ n(
|
|
230
|
+
M,
|
|
252
231
|
{
|
|
253
|
-
tags:
|
|
254
|
-
allTagText:
|
|
232
|
+
tags: _,
|
|
233
|
+
allTagText: d,
|
|
255
234
|
selectedTagCode: o,
|
|
256
235
|
onSelectTag: (e) => {
|
|
257
|
-
|
|
236
|
+
c(e == null ? void 0 : e.code);
|
|
258
237
|
}
|
|
259
238
|
}
|
|
260
239
|
),
|
|
261
|
-
/* @__PURE__ */
|
|
262
|
-
|
|
240
|
+
/* @__PURE__ */ n(
|
|
241
|
+
z,
|
|
263
242
|
{
|
|
264
|
-
items: o === null ?
|
|
265
|
-
questionText:
|
|
266
|
-
feedbackText:
|
|
267
|
-
showMoreText:
|
|
243
|
+
items: o === null ? r : r == null ? void 0 : r.filter((e) => (e == null ? void 0 : e.tagCode) === o),
|
|
244
|
+
questionText: a,
|
|
245
|
+
feedbackText: p,
|
|
246
|
+
showMoreText: i,
|
|
268
247
|
impressions: h,
|
|
269
|
-
onSelectItem:
|
|
270
|
-
onImpressed:
|
|
248
|
+
onSelectItem: f,
|
|
249
|
+
onImpressed: u
|
|
271
250
|
},
|
|
272
251
|
`faq-section-items__${o}`
|
|
273
252
|
)
|
|
274
253
|
] });
|
|
275
254
|
}
|
|
276
255
|
);
|
|
277
|
-
R.propTypes = {
|
|
278
|
-
title: n.string,
|
|
279
|
-
description: n.string,
|
|
280
|
-
tags: n.array,
|
|
281
|
-
items: n.array,
|
|
282
|
-
questionText: n.string,
|
|
283
|
-
feedbackText: n.string,
|
|
284
|
-
showMoreText: n.string,
|
|
285
|
-
allTagText: n.string,
|
|
286
|
-
impressions: n.bool,
|
|
287
|
-
onSelectItem: n.func,
|
|
288
|
-
onImpressed: n.func
|
|
289
|
-
};
|
|
290
256
|
export {
|
|
291
|
-
|
|
257
|
+
X as default
|
|
292
258
|
};
|
package/dist/FileInput.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const
|
|
1
|
+
"use strict";const c=require("react/jsx-runtime"),g=require("react"),b=require("./emotion-styled.browser.esm-BtEseadx.cjs"),t=require("./utils-RnrgDDZP.cjs"),S=require("./emotion-element-f0de968e.browser.esm-B7k6i6lC.cjs"),j=b.styled.label`
|
|
2
2
|
display: inline-flex;
|
|
3
3
|
box-sizing: border-box;
|
|
4
4
|
width: 100%;
|
|
@@ -7,14 +7,14 @@
|
|
|
7
7
|
background-color: ${e=>t.getColorRgbaValue(e.theme,"Input",e.color,"enabled","background")};
|
|
8
8
|
border-radius: 8px;
|
|
9
9
|
${e=>e.focused===!0&&e.readOnly!==!0?t.getOutlineCss(e.theme):""}
|
|
10
|
-
`,
|
|
10
|
+
`,q=b.styled.input`
|
|
11
11
|
width: 0.1px;
|
|
12
12
|
height: 0.1px;
|
|
13
13
|
opacity: 0;
|
|
14
14
|
overflow: hidden;
|
|
15
15
|
position: absolute;
|
|
16
16
|
z-index: -1;
|
|
17
|
-
`,
|
|
17
|
+
`,_=b.styled.div`
|
|
18
18
|
display: flex;
|
|
19
19
|
align-items: center;
|
|
20
20
|
white-space: nowrap;
|
|
@@ -29,8 +29,8 @@
|
|
|
29
29
|
|
|
30
30
|
/* ${e=>e.disabled===!0?t.getDisabledStateCss(e.theme):""} */
|
|
31
31
|
${e=>e.disabled===!0&&`background-color: ${t.getColorRgbaValue(e.theme,"Input",e.color,"disabled","background","backgroundOpacity")};
|
|
32
|
-
color: ${
|
|
33
|
-
`,N=
|
|
32
|
+
color: ${o=>t.getColorRgbaValue(o.theme,"Input",o.color,"disabled","text")};`}
|
|
33
|
+
`,N=b.styled.input`
|
|
34
34
|
width: 100%;
|
|
35
35
|
appearance: none;
|
|
36
36
|
outline: none;
|
|
@@ -48,5 +48,5 @@
|
|
|
48
48
|
/* ${e=>e.disabled===!0?t.getDisabledStateCss(e.theme):""} */
|
|
49
49
|
|
|
50
50
|
${e=>e.disabled===!0&&`background-color: ${t.getColorRgbaValue(e.theme,"Input",e.color,"disabled","background","backgroundOpacity")};
|
|
51
|
-
color: ${
|
|
52
|
-
`,
|
|
51
|
+
color: ${o=>t.getColorRgbaValue(o.theme,"Input",o.color,"disabled","text")};`}
|
|
52
|
+
`,T=g.forwardRef((e,o)=>{const{className:x="",style:y={},onChange:i,onFocus:d,onBlur:u,disabled:r,readOnly:m,multiple:$=!1,accept:C="",label:I="Choose File",color:R="primary",size:V="small",...k}=e,w=S.useTheme(),[n,z]=g.useState([]),[h,f]=g.useState(!1);var s={theme:w,size:V,color:R,disabled:r,focused:h};const F=()=>{if(n.length>0){var l="";for(const a in n)l+=a==n.length-1?`${n[a].name}`:`${n[a].name}, `;return l}return""},v=l=>{var a=[];if(l.target.files&&l.target.files.length>0)for(const O of l.target.files)a.push(O);else a=[];z(a),i&&(i==null||i(l,a))};return c.jsxs(j,{...s,className:x,style:y,focused:h,readOnly:m,children:[c.jsx(q,{...s,accept:C,multiple:$,ref:o,onChange:r||m?()=>{}:v,type:"file",onFocus:l=>{r||f(!0),d&&!r&&(d==null||d(l))},onBlur:l=>{r||f(!1),u&&!r&&(u==null||u(l))},...k}),c.jsx(_,{...s,children:I}),c.jsx(N,{tabIndex:-1,...s,onChange:()=>{},value:F()})]})});module.exports=T;
|