@lanaco/lnc-react-ui 4.0.206 → 4.0.208
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/BREAKPOINTS.md +148 -0
- package/dist/Accordion.cjs +1 -1
- package/dist/Accordion.js +6 -6
- package/dist/AccordionSummary.cjs +1 -1
- package/dist/AccordionSummary.js +8 -8
- package/dist/ActionsToolbar.cjs +15 -4
- package/dist/ActionsToolbar.js +58 -46
- package/dist/AdBannerSection.cjs +4 -4
- package/dist/AdBannerSection.js +5 -5
- package/dist/Alert.cjs +1 -1
- package/dist/Alert.js +1 -1
- package/dist/Avatar.cjs +1 -1
- package/dist/Avatar.js +12 -12
- package/dist/Badge.cjs +1 -1
- package/dist/Badge.js +5 -5
- package/dist/BannerNextSection.cjs +2 -2
- package/dist/BannerNextSection.js +13 -13
- package/dist/BannerSectionBasic.cjs +4 -4
- package/dist/BannerSectionBasic.js +22 -22
- package/dist/BannerSectionCarousel.cjs +28 -6
- package/dist/BannerSectionCarousel.js +72 -50
- package/dist/BannerSectionGrid.cjs +3 -3
- package/dist/BannerSectionGrid.js +13 -13
- package/dist/BannerSectionSimple.cjs +15 -15
- package/dist/BannerSectionSimple.js +40 -40
- package/dist/BannerSectionWithList.cjs +7 -7
- package/dist/BannerSectionWithList.js +20 -20
- package/dist/BannerSectionWithListImage.cjs +6 -9
- package/dist/BannerSectionWithListImage.js +17 -20
- package/dist/BlogCardsSponsoredSection.cjs +7 -5
- package/dist/BlogCardsSponsoredSection.js +32 -30
- package/dist/BlogCategoryCardsSection.cjs +1 -1
- package/dist/BlogCategoryCardsSection.js +2 -2
- package/dist/BlogExploreSection.cjs +4 -4
- package/dist/BlogExploreSection.js +60 -60
- package/dist/BlogImagePathSection.cjs +3 -14
- package/dist/BlogImagePathSection.js +27 -39
- package/dist/BlogListSection.cjs +6 -6
- package/dist/BlogListSection.js +32 -32
- package/dist/BlogProductCardsSection.cjs +1 -1
- package/dist/BlogProductCardsSection.js +3 -3
- package/dist/BlogShopCardsSection.cjs +1 -1
- package/dist/BlogShopCardsSection.js +3 -3
- package/dist/BlogSingleSection.cjs +3 -3
- package/dist/BlogSingleSection.js +12 -12
- package/dist/BlogsSectionDetailed.cjs +14 -6
- package/dist/BlogsSectionDetailed.js +53 -45
- package/dist/BlogsSectionLarge.cjs +13 -5
- package/dist/BlogsSectionLarge.js +48 -40
- package/dist/BlogsSectionSimple.cjs +14 -9
- package/dist/BlogsSectionSimple.js +43 -38
- package/dist/BlogsSectionSimpleCentered.cjs +17 -8
- package/dist/BlogsSectionSimpleCentered.js +68 -59
- package/dist/BlogsSectionWithFilters.cjs +16 -11
- package/dist/BlogsSectionWithFilters.js +43 -38
- package/dist/BrandHitsSection.cjs +7 -7
- package/dist/BrandHitsSection.js +13 -13
- package/dist/Breadcrumbs.cjs +1 -1
- package/dist/Breadcrumbs.js +16 -16
- 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 +15 -15
- package/dist/CalorieCalculatorSection.js +84 -84
- package/dist/{CategorySimpleCard-COGlTj06.cjs → CategorySimpleCard-CIBvknos.cjs} +3 -3
- package/dist/{CategorySimpleCard-Em84kZzQ.js → CategorySimpleCard-CkSwvJRw.js} +8 -8
- 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 +14 -14
- package/dist/ConfirmationForm.cjs +1 -1
- package/dist/ConfirmationForm.js +5 -5
- package/dist/ContactSection.cjs +4 -4
- package/dist/ContactSection.js +72 -72
- package/dist/CustomLoanMapSection.cjs +3 -3
- package/dist/CustomLoanMapSection.js +67 -67
- package/dist/{CustomStyles-C86XQqBE.cjs → CustomStyles-2TQQSwtU.cjs} +1 -1
- package/dist/{CustomStyles-DtWxboEM.js → CustomStyles-DR4WuDUN.js} +1 -1
- package/dist/{DailyMotion-CpZExcrg.cjs → DailyMotion-BPdBW5Yv.cjs} +1 -1
- package/dist/{DailyMotion-BBcJkMo_.js → DailyMotion-P9S-WhTX.js} +1 -1
- package/dist/DateInput.cjs +6 -6
- package/dist/DateInput.js +646 -645
- 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/DetailedProductsInfinitiveSection.cjs +10 -4
- package/dist/DetailedProductsInfinitiveSection.js +71 -65
- package/dist/DetailedProductsSection.cjs +7 -3
- package/dist/DetailedProductsSection.js +55 -51
- 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 +13 -13
- 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 +7 -7
- package/dist/EditableTable.cjs +1 -1
- package/dist/EditableTable.js +8 -8
- package/dist/{Facebook-DoKw-XxT.cjs → Facebook-C8L2KR4O.cjs} +1 -1
- package/dist/{Facebook-BSWPEXjA.js → Facebook-vhbBr0rd.js} +1 -1
- package/dist/FaqSection.cjs +3 -3
- package/dist/FaqSection.js +52 -52
- package/dist/FeedbackSection.cjs +3 -3
- package/dist/FeedbackSection.js +15 -15
- package/dist/FieldOfInterestsMasonrySection.cjs +18 -12
- package/dist/FieldOfInterestsMasonrySection.js +73 -67
- package/dist/FieldOfInterestsWithAvatarsCardsSection.cjs +13 -7
- package/dist/FieldOfInterestsWithAvatarsCardsSection.js +64 -58
- package/dist/FieldOfInterestsWithTagsCardsSection.cjs +15 -9
- package/dist/FieldOfInterestsWithTagsCardsSection.js +42 -36
- package/dist/FileInput.cjs +1 -1
- package/dist/FileInput.js +1 -1
- package/dist/{FilePlayer-D9az_lc_.cjs → FilePlayer-BVFgHY_f.cjs} +1 -1
- package/dist/{FilePlayer-BtGpIWnK.js → FilePlayer-CXTLAokk.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 +14 -8
- package/dist/GeneralWithTagsCardsSection.js +31 -25
- package/dist/GiftCardsSection.cjs +15 -7
- package/dist/GiftCardsSection.js +44 -36
- package/dist/HelpBannerSection.cjs +3 -3
- package/dist/HelpBannerSection.js +4 -4
- package/dist/Icon.cjs +1 -1
- package/dist/Icon.js +4 -4
- package/dist/IconButton.cjs +1 -1
- package/dist/IconButton.js +1 -1
- package/dist/{Kaltura-CK6JHUZC.cjs → Kaltura-C2fRoaEg.cjs} +1 -1
- package/dist/{Kaltura-BDqlEQpd.js → Kaltura-CRGK2EP7.js} +1 -1
- package/dist/Kanban.cjs +1 -1
- package/dist/Kanban.js +1 -1
- package/dist/KanbanActionsToolbar.cjs +1 -1
- package/dist/KanbanActionsToolbar.js +5 -5
- package/dist/KanbanView.cjs +1 -1
- package/dist/KanbanView.js +9 -9
- package/dist/Link.cjs +1 -1
- package/dist/Link.js +1 -1
- package/dist/LoanCalculatorSection.cjs +3 -3
- package/dist/LoanCalculatorSection.js +17 -17
- package/dist/LocationFinderSection.cjs +1 -1
- package/dist/LocationFinderSection.js +1 -1
- package/dist/LocationSearchSection.cjs +13 -6
- package/dist/LocationSearchSection.js +34 -27
- package/dist/MasonryGeneralCardsSection.cjs +7 -7
- package/dist/MasonryGeneralCardsSection.js +24 -24
- package/dist/MenuItem.cjs +1 -1
- package/dist/MenuItem.js +14 -14
- package/dist/{Mixcloud-zAh6j7Ha.js → Mixcloud-Cn5M-EIT.js} +1 -1
- package/dist/{Mixcloud-C1Boh2Bm.cjs → Mixcloud-D09BQNOt.cjs} +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/{Mux-C6TwZeaq.cjs → Mux-C-xD7crc.cjs} +1 -1
- package/dist/{Mux-BGTG_Tvc.js → Mux-C6szci3w.js} +1 -1
- package/dist/NestedDropdownItem.cjs +1 -1
- package/dist/NestedDropdownItem.js +9 -9
- package/dist/NestedMenuItem.cjs +1 -1
- package/dist/NestedMenuItem.js +7 -7
- package/dist/NotificationContainer.cjs +1 -1
- package/dist/NotificationContainer.js +1 -1
- package/dist/NotificationMessage.cjs +1 -1
- package/dist/NotificationMessage.js +5 -5
- package/dist/NumberInput.cjs +1 -1
- package/dist/NumberInput.js +8 -8
- package/dist/OverlayGeneralCardsSection.cjs +19 -31
- package/dist/OverlayGeneralCardsSection.js +51 -63
- package/dist/PartnerBannerSection.cjs +2 -2
- package/dist/PartnerBannerSection.js +2 -2
- package/dist/PartnerBrandsSection.cjs +2 -2
- package/dist/PartnerBrandsSection.js +24 -17
- package/dist/PartnerCardsSection.cjs +3 -3
- package/dist/PartnerCardsSection.js +18 -18
- package/dist/PartnerStatsSection.cjs +2 -2
- package/dist/PartnerStatsSection.js +3 -3
- package/dist/PasswordInput.cjs +1 -1
- package/dist/PasswordInput.js +19 -19
- package/dist/PopoverContent.cjs +1 -1
- package/dist/PopoverContent.js +1 -1
- package/dist/ProductsWithBannerSection.cjs +20 -10
- package/dist/ProductsWithBannerSection.js +79 -69
- package/dist/ProgressBar.cjs +1 -1
- package/dist/ProgressBar.js +5 -5
- package/dist/QuattroCardsSection.cjs +8 -6
- package/dist/QuattroCardsSection.js +19 -17
- package/dist/QuizSection.cjs +9 -9
- package/dist/QuizSection.js +56 -56
- 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 +24 -16
- package/dist/ReviewsSection.js +56 -48
- package/dist/SalesCampaignsSection.cjs +25 -21
- package/dist/SalesCampaignsSection.js +248 -241
- package/dist/{SearchSection-DAaMecR4.js → SearchSection-BEYnWPSr.js} +69 -69
- package/dist/{SearchSection-B94YN_6P.cjs → SearchSection-DUY61r3k.cjs} +6 -6
- package/dist/SearchSection.cjs +1 -1
- package/dist/SearchSection.js +1 -1
- package/dist/Separator.cjs +1 -1
- package/dist/Separator.js +3 -3
- package/dist/SeparatorSection.cjs +3 -3
- package/dist/SeparatorSection.js +4 -4
- package/dist/ShopCardsSection.cjs +11 -5
- package/dist/ShopCardsSection.js +40 -34
- package/dist/Sidebar.cjs +1 -1
- package/dist/Sidebar.js +1 -1
- package/dist/SimpleCategoriesSection.cjs +9 -5
- package/dist/SimpleCategoriesSection.js +61 -57
- package/dist/SimpleProductsSection.cjs +44 -11
- package/dist/SimpleProductsSection.js +100 -67
- package/dist/{SoundCloud-C6R6E6Zc.cjs → SoundCloud-BsL6Onq6.cjs} +1 -1
- package/dist/{SoundCloud-lO8wg_0s.js → SoundCloud-Cfaj1Ze1.js} +1 -1
- package/dist/Spinner.cjs +1 -1
- package/dist/Spinner.js +1 -1
- package/dist/StatsSection.cjs +3 -3
- package/dist/StatsSection.js +11 -11
- package/dist/{Streamable-Dwa5ZEK4.js → Streamable-CG8_-_w7.js} +1 -1
- package/dist/{Streamable-DZO95CiT.cjs → Streamable-DFtyk9Dt.cjs} +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 +54 -49
- package/dist/Table.js +417 -401
- package/dist/TableView.cjs +10 -2
- package/dist/TableView.js +84 -75
- 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 +4 -4
- package/dist/ThemeProvider.js +11 -10
- 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/ToggleSection.cjs +7 -7
- package/dist/ToggleSection.js +38 -38
- package/dist/TreeMenuSeparator.cjs +1 -1
- package/dist/TreeMenuSeparator.js +3 -3
- package/dist/{Twitch-B17oKtD0.cjs → Twitch-BIUEEDiE.cjs} +1 -1
- package/dist/{Twitch-C73-dwWo.js → Twitch-CbU_0Tx9.js} +1 -1
- package/dist/UploadedFile.cjs +1 -1
- package/dist/UploadedFile.js +7 -7
- package/dist/UrgentSaleProductsSection.cjs +10 -4
- package/dist/UrgentSaleProductsSection.js +67 -61
- package/dist/{Vidyard-s1MMcaRm.cjs → Vidyard-QkjVIros.cjs} +1 -1
- package/dist/{Vidyard-B6GdBHsM.js → Vidyard-S6Fl_F78.js} +1 -1
- package/dist/{Vimeo-kzHz4Gco.js → Vimeo-5bkeYCV4.js} +1 -1
- package/dist/{Vimeo-J1l_SU2E.cjs → Vimeo-B5jsifNT.cjs} +1 -1
- package/dist/{Wistia-CudQyDHM.cjs → Wistia-dpbMmx23.cjs} +1 -1
- package/dist/{Wistia-w4jnqd7y.js → Wistia-gOZBV0XZ.js} +1 -1
- package/dist/{YouTube-BAYKouHS.cjs → YouTube-BfZRCB6O.cjs} +1 -1
- package/dist/{YouTube-BKyipPZx.js → YouTube-XoIB4ATQ.js} +1 -1
- package/dist/breakpoints-CcVm-gVm.cjs +1 -0
- package/dist/breakpoints-ff0SIcV3.js +91 -0
- package/dist/{index-u_XFwsvc.js → index-9KyU46J0.js} +11 -9
- package/dist/{index-CSgGox95.cjs → index-B9c6y2J5.cjs} +3 -3
- package/dist/{index-CS4w87SW.cjs → index-BEgD9vNo.cjs} +9 -9
- package/dist/{index-BC2PHcI1.js → index-BWeXujWl.js} +10 -10
- package/dist/index-B_ilx3wM.cjs +16 -0
- package/dist/{index-B22BZVBG.js → index-BvMY2TbK.js} +1 -1
- package/dist/{index-CwMCk9wV.js → index-BzSWu-7v.js} +67 -67
- package/dist/{index-TIqKd2Dv.js → index-C-uOIDDa.js} +2 -2
- package/dist/{index-bihqNqQk.js → index-C4HycAPS.js} +6 -6
- package/dist/{index-BWE-RCPy.cjs → index-CBZ-jNah.cjs} +4 -4
- package/dist/{index-D_5jNP-o.cjs → index-CUaeb_TU.cjs} +5 -5
- package/dist/{index-DK8dqEUQ.js → index-CoQ9APCD.js} +11 -11
- package/dist/{index-BAJkosVg.cjs → index-CsTfXxpp.cjs} +2 -2
- package/dist/{index-D0JDnm9b.cjs → index-Dc0EEBRW.cjs} +4 -4
- package/dist/{index-uwl7BjRF.cjs → index-DsINTjQk.cjs} +1 -1
- package/dist/{index-Cm414y95.js → index-L_Va5-wK.js} +13 -13
- package/dist/{index-CBMsUFkS.js → index-hC-E71GE.js} +11 -11
- package/dist/{index-BFc3nxYZ.cjs → index-of6WydGq.cjs} +4 -2
- package/dist/{index-BASX-BjS.js → index-rYUwBlpp.js} +63 -63
- package/dist/{index-D0IYt1s3.cjs → index-uCWKRzoS.cjs} +2 -2
- package/dist/{index-CRk3vcd4.cjs → index-vQOR22Py.cjs} +4 -4
- package/dist/{index-D-86mDtn.js → index-yARaIaLj.js} +29 -29
- package/dist/index.cjs +1 -1
- package/dist/index.js +213 -194
- package/dist/{style-BTTXJFJN.cjs → style-AYc9hnFj.cjs} +14 -2
- package/dist/{style-neMbLWE6.js → style-BUyFad_y.js} +4 -4
- package/dist/{style-tw6KjI2J.js → style-Bq3rMbnN.js} +16 -4
- package/dist/{style-B4kAj6YU.cjs → style-DC05rdyx.cjs} +5 -5
- package/dist/{tag-Dm8CW4TM.js → tag-Bi8gg6hJ.js} +12 -12
- package/dist/{tag-UQjq2_Ba.cjs → tag-DSnhWWHE.cjs} +5 -5
- package/dist/{utils-DtEfC-TX.js → theme-Befg4g_L.js} +19 -378
- package/dist/theme-Q3WOGKWQ.cjs +1 -0
- package/dist/{useDetectMobile-Bkvj0VMa.js → useDetectMobile-CcVo3PNi.js} +1 -1
- package/dist/useDetectMobile-DYV6V1yw.cjs +1 -0
- package/dist/utils-B2fsQ6PS.js +334 -0
- package/dist/utils-CITgSxXe.cjs +51 -0
- package/package.json +1 -1
- package/dist/consts-BuFChS64.js +0 -7
- package/dist/consts-goSZX3xP.cjs +0 -1
- package/dist/index-D-3I_Ppj.cjs +0 -16
- package/dist/useDetectMobile-zkbzoOGV.cjs +0 -1
- package/dist/utils-RnrgDDZP.cjs +0 -51
package/dist/DropdownMenu.js
CHANGED
|
@@ -2,7 +2,7 @@ import { jsx as n, jsxs as B } from "react/jsx-runtime";
|
|
|
2
2
|
import { forwardRef as F, useRef as l, useState as U, Children as Y, isValidElement as $, cloneElement as c } from "react";
|
|
3
3
|
import { s as S } from "./emotion-styled.browser.esm-BNN1dTl3.js";
|
|
4
4
|
import K from "./Button.js";
|
|
5
|
-
import {
|
|
5
|
+
import { c as L } from "./utils-B2fsQ6PS.js";
|
|
6
6
|
import { useTheme as q } from "./ThemeProvider.js";
|
|
7
7
|
import A from "./Popover.js";
|
|
8
8
|
import G from "./PopoverTrigger.js";
|
|
@@ -58,12 +58,12 @@ const Q = S.div``, W = S(J.div)`
|
|
|
58
58
|
className: R = "",
|
|
59
59
|
color: t = "primary",
|
|
60
60
|
size: a = "small",
|
|
61
|
-
contentClassName:
|
|
62
|
-
children:
|
|
63
|
-
...
|
|
61
|
+
contentClassName: h = "",
|
|
62
|
+
children: O,
|
|
63
|
+
...b
|
|
64
64
|
} = o, k = l(), { theme: V } = q(), C = l(), I = l(), [j, p] = U(!1), _ = (e, m, i) => {
|
|
65
65
|
D(e, m, i), v == !0 && p(!1);
|
|
66
|
-
}, z = Y.map(
|
|
66
|
+
}, z = Y.map(O, (e, m) => {
|
|
67
67
|
var i, w;
|
|
68
68
|
return $(e) && (e.props.__TYPE__ == "MENU_ITEM" || ((i = e == null ? void 0 : e.type) == null ? void 0 : i.displayName) === "MENU_ITEM" || e.props.__TYPE__ == "NESTED_ITEM" || ((w = e == null ? void 0 : e.type) == null ? void 0 : w.displayName) === "NESTED_ITEM") ? m == 0 ? (e.props.ref && (I.current = r), c(e, {
|
|
69
69
|
ref: r || I,
|
|
@@ -78,7 +78,7 @@ const Q = S.div``, W = S(J.div)`
|
|
|
78
78
|
onItemSelected: _
|
|
79
79
|
}) : e;
|
|
80
80
|
});
|
|
81
|
-
return /* @__PURE__ */ n(Q, { ref: r, className: R, ...
|
|
81
|
+
return /* @__PURE__ */ n(Q, { ref: r, className: R, ...b, children: /* @__PURE__ */ B(
|
|
82
82
|
A,
|
|
83
83
|
{
|
|
84
84
|
open: j,
|
|
@@ -119,7 +119,7 @@ const Q = S.div``, W = S(J.div)`
|
|
|
119
119
|
widthfitcontent: N,
|
|
120
120
|
color: t,
|
|
121
121
|
theme: V,
|
|
122
|
-
className:
|
|
122
|
+
className: h,
|
|
123
123
|
children: z
|
|
124
124
|
}
|
|
125
125
|
) })
|
package/dist/EditableTable.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const a=require("react/jsx-runtime"),l=require("react"),w=require("./utils-
|
|
1
|
+
"use strict";const a=require("react/jsx-runtime"),l=require("react"),w=require("./utils-CITgSxXe.cjs"),V=require("./Table.cjs"),S=require("./emotion-styled.browser.esm-BtEseadx.cjs"),B=require("./TextInput.cjs"),z=require("./NumberInput.cjs"),K=require("./DecimalInput.cjs"),H=require("./CheckBoxInput.cjs"),W=require("./Dropdown.cjs"),J=require("./DecimalInputV2.cjs"),Q=require("./emotion-element-f0de968e.browser.esm-B7k6i6lC.cjs"),g={BOOLEAN:"BOOLEAN",STRING:"STRING",INTEGER:"INTEGER",DECIMAL:"DECIMAL",DECIMAL2:"DECIMAL2",DATE:"DATE",SELECT:"SELECT"},U=S.styled.td`
|
|
2
2
|
white-space: nowrap;
|
|
3
3
|
overflow: hidden;
|
|
4
4
|
text-overflow: ellipsis;
|
package/dist/EditableTable.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { jsx as c, Fragment as P, jsxs as W } from "react/jsx-runtime";
|
|
2
2
|
import { useState as q, useRef as g, useEffect as N, createElement as J, forwardRef as Q, useImperativeHandle as U } from "react";
|
|
3
|
-
import {
|
|
3
|
+
import { d as M, r as k, j as x } from "./utils-B2fsQ6PS.js";
|
|
4
4
|
import X from "./Table.js";
|
|
5
5
|
import { s as _ } from "./emotion-styled.browser.esm-BNN1dTl3.js";
|
|
6
|
-
import
|
|
6
|
+
import j from "./TextInput.js";
|
|
7
7
|
import Y from "./NumberInput.js";
|
|
8
8
|
import Z from "./DecimalInput.js";
|
|
9
9
|
import ee from "./CheckBoxInput.js";
|
|
@@ -82,7 +82,7 @@ const E = {
|
|
|
82
82
|
return R + d * o.length + o.indexOf(m);
|
|
83
83
|
}, I = (o, m) => {
|
|
84
84
|
F(o, m, d, h), m || A(m);
|
|
85
|
-
},
|
|
85
|
+
}, S = (o) => {
|
|
86
86
|
o.key === "Escape" && (v.current = !1, n.current.blur(), v.current = !0, O(o, d, h, a));
|
|
87
87
|
}, V = () => {
|
|
88
88
|
var o = null, m = (l, H) => {
|
|
@@ -99,12 +99,12 @@ const E = {
|
|
|
99
99
|
onChange: m,
|
|
100
100
|
onBlur: (l) => I(l, !1),
|
|
101
101
|
onFocus: (l) => I(l, !0),
|
|
102
|
-
onKeyDown: (l) =>
|
|
102
|
+
onKeyDown: (l) => S(l),
|
|
103
103
|
tabIndex: B()
|
|
104
104
|
};
|
|
105
105
|
switch (e.inputType) {
|
|
106
106
|
case E.STRING:
|
|
107
|
-
o = /* @__PURE__ */ c(
|
|
107
|
+
o = /* @__PURE__ */ c(j, { ...T, ref: n });
|
|
108
108
|
break;
|
|
109
109
|
case E.INTEGER:
|
|
110
110
|
o = /* @__PURE__ */ c(Y, { ...T, ref: n });
|
|
@@ -116,7 +116,7 @@ const E = {
|
|
|
116
116
|
o = /* @__PURE__ */ c(re, { ...T, ref: n });
|
|
117
117
|
break;
|
|
118
118
|
case E.DATE:
|
|
119
|
-
o = /* @__PURE__ */ c(
|
|
119
|
+
o = /* @__PURE__ */ c(j, { ...T, ref: n });
|
|
120
120
|
break;
|
|
121
121
|
case E.BOOLEAN:
|
|
122
122
|
o = /* @__PURE__ */ c(ee, { ...T, ref: n });
|
|
@@ -135,7 +135,7 @@ const E = {
|
|
|
135
135
|
);
|
|
136
136
|
break;
|
|
137
137
|
default:
|
|
138
|
-
o = /* @__PURE__ */ c(
|
|
138
|
+
o = /* @__PURE__ */ c(j, { ...T, ref: n });
|
|
139
139
|
}
|
|
140
140
|
return o;
|
|
141
141
|
}, z = (o) => {
|
|
@@ -160,7 +160,7 @@ const E = {
|
|
|
160
160
|
focused: i,
|
|
161
161
|
onBlur: z,
|
|
162
162
|
onFocus: (b) => I(b, !0),
|
|
163
|
-
onKeyDown: (b) =>
|
|
163
|
+
onKeyDown: (b) => S(b),
|
|
164
164
|
...m
|
|
165
165
|
}
|
|
166
166
|
);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const P=require("./_commonjsHelpers-DwTZ_eVU.cjs"),g=require("react"),h=require("./SearchSection-
|
|
1
|
+
"use strict";const P=require("./_commonjsHelpers-DwTZ_eVU.cjs"),g=require("react"),h=require("./SearchSection-DUY61r3k.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;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { g as _ } from "./_commonjsHelpers-BkfeUUK-.js";
|
|
2
2
|
import g from "react";
|
|
3
|
-
import { u as P, p as m } from "./SearchSection-
|
|
3
|
+
import { u as P, p as m } from "./SearchSection-BEYnWPSr.js";
|
|
4
4
|
function v(t, e) {
|
|
5
5
|
for (var r = 0; r < e.length; r++) {
|
|
6
6
|
const o = e[r];
|
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"),u=require("react"),S=require("./tag-DSnhWWHE.cjs"),N=require("./useDetectMobile-DYV6V1yw.cjs"),m=require("./Icon.cjs"),w=require("./IconButton.cjs"),b=require("./Button.cjs"),y=require("./emotion-styled.browser.esm-BtEseadx.cjs"),I=require("./breakpoints-CcVm-gVm.cjs"),q=({title:o,description:t,questionText:i,feedbackText:p,impressions:l=!1,onSelectItem:a=()=>{},onImpressed:d=()=>{}})=>{const[h,r]=u.useState(!1),[f,x]=u.useState(!1),g=()=>{r(c=>!c),a()},s=(c,_)=>{c==null||c.stopPropagation(),x(!0),d(_)};return e.jsxs(S.ItemContainer,{className:h?"expanded":"",onClick:g,children:[e.jsxs("div",{className:"card__heading",children:[e.jsx("div",{className:"card__title",children:o}),e.jsx(m,{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:t}),l&&e.jsx(e.Fragment,{children:f?e.jsxs("div",{className:"card__impression feedback",children:[e.jsx(m,{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=u.forwardRef(({items:o=[],questionText:t,feedbackText:i,showMoreText:p,impressions:l=!1,onSelectItem:a=()=>{},onImpressed:d=()=>{}},h)=>{const r=N.useDetectMobile(),[f,x]=u.useState(!1),g=()=>{x(c=>!c)},s=u.useMemo(()=>{if(r)return o==null?void 0:o.map((n,j)=>e.jsx(q,{title:n==null?void 0:n.title,description:n==null?void 0:n.description,questionText:t,feedbackText:i,impressions:l,onSelectItem:()=>a(n),onImpressed:v=>d(n,v)},`faq-section-item__${j+1}`));const c=[],_=[];return o==null||o.forEach((n,j)=>{j%2===0?c.push(e.jsx(q,{title:n==null?void 0:n.title,description:n==null?void 0:n.description,questionText:t,feedbackText:i,impressions:l,onSelectItem:()=>a(n),onImpressed:v=>d(n,v)},`faq-section-item__${j+1}`)):_.push(e.jsx(q,{title:n==null?void 0:n.title,description:n==null?void 0:n.description,questionText:t,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:_})]})},[o,r]);return e.jsx(S.ItemsContainer,{ref:h,children:r?f?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
|
|
33
|
+
@media ${I.down("S")} {
|
|
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
|
-
`,F=
|
|
47
|
+
`,F=u.forwardRef(({title:o,description:t,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:r=[],onSelectItem:f=()=>{},onImpressed:x=()=>{}},g)=>{const[s,c]=u.useState(null),_=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}),t&&e.jsx("div",{className:"section__description",children:t})]}),e.jsx(S.FaqSectionTags,{tags:h,allTagText:a,selectedTagCode:s,onSelectTag:_}),e.jsx(C,{items:s===null?r:r==null?void 0:r.filter(n=>(n==null?void 0:n.tagCode)===s),questionText:i,feedbackText:p,showMoreText:l,impressions:d,onSelectItem:f,onImpressed:x},`faq-section-items__${s}`)]})});module.exports=F;
|
package/dist/FaqSection.js
CHANGED
|
@@ -1,62 +1,62 @@
|
|
|
1
|
-
import { jsx as n, jsxs as
|
|
1
|
+
import { jsx as n, jsxs as l, Fragment as w } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef as C, useState as S, useMemo as k } from "react";
|
|
3
|
-
import { I as q, a as x, F
|
|
4
|
-
import { u as
|
|
5
|
-
import
|
|
6
|
-
import
|
|
3
|
+
import { I as q, a as x, F } from "./tag-Bi8gg6hJ.js";
|
|
4
|
+
import { u as M } from "./useDetectMobile-CcVo3PNi.js";
|
|
5
|
+
import y from "./Icon.js";
|
|
6
|
+
import I from "./IconButton.js";
|
|
7
7
|
import T from "./Button.js";
|
|
8
8
|
import { s as $ } from "./emotion-styled.browser.esm-BNN1dTl3.js";
|
|
9
|
-
import {
|
|
10
|
-
const
|
|
9
|
+
import { d as z } from "./breakpoints-ff0SIcV3.js";
|
|
10
|
+
const b = ({
|
|
11
11
|
title: s,
|
|
12
|
-
description:
|
|
12
|
+
description: t,
|
|
13
13
|
questionText: a,
|
|
14
|
-
feedbackText:
|
|
14
|
+
feedbackText: _,
|
|
15
15
|
impressions: i = !1,
|
|
16
16
|
onSelectItem: d = () => {
|
|
17
17
|
},
|
|
18
18
|
onImpressed: h = () => {
|
|
19
19
|
}
|
|
20
20
|
}) => {
|
|
21
|
-
const [
|
|
21
|
+
const [p, r] = S(!1), [f, u] = S(!1), g = () => {
|
|
22
22
|
r((c) => !c), d();
|
|
23
23
|
}, o = (c, m) => {
|
|
24
24
|
c == null || c.stopPropagation(), u(!0), h(m);
|
|
25
25
|
};
|
|
26
|
-
return /* @__PURE__ */
|
|
26
|
+
return /* @__PURE__ */ l(
|
|
27
27
|
x,
|
|
28
28
|
{
|
|
29
|
-
className:
|
|
29
|
+
className: p ? "expanded" : "",
|
|
30
30
|
onClick: g,
|
|
31
31
|
children: [
|
|
32
|
-
/* @__PURE__ */
|
|
32
|
+
/* @__PURE__ */ l("div", { className: "card__heading", children: [
|
|
33
33
|
/* @__PURE__ */ n("div", { className: "card__title", children: s }),
|
|
34
34
|
/* @__PURE__ */ n(
|
|
35
|
-
|
|
35
|
+
y,
|
|
36
36
|
{
|
|
37
|
-
icon:
|
|
37
|
+
icon: p ? " mng-lnc-subtract" : " mng-lnc-add",
|
|
38
38
|
sizeInUnits: "1.25rem",
|
|
39
39
|
className: "card__icon"
|
|
40
40
|
}
|
|
41
41
|
)
|
|
42
42
|
] }),
|
|
43
|
-
|
|
44
|
-
/* @__PURE__ */ n("div", { className: "card__description", children:
|
|
45
|
-
i && /* @__PURE__ */ n(w, { children: f ? /* @__PURE__ */
|
|
43
|
+
p && /* @__PURE__ */ l(w, { children: [
|
|
44
|
+
/* @__PURE__ */ n("div", { className: "card__description", children: t }),
|
|
45
|
+
i && /* @__PURE__ */ n(w, { children: f ? /* @__PURE__ */ l("div", { className: "card__impression feedback", children: [
|
|
46
46
|
/* @__PURE__ */ n(
|
|
47
|
-
|
|
47
|
+
y,
|
|
48
48
|
{
|
|
49
49
|
icon: " mng-lnc-checkmark--outline",
|
|
50
50
|
sizeInUnits: "1.25rem",
|
|
51
51
|
color: "success"
|
|
52
52
|
}
|
|
53
53
|
),
|
|
54
|
-
/* @__PURE__ */ n("div", { className: "imppression__question", children:
|
|
55
|
-
] }) : /* @__PURE__ */
|
|
54
|
+
/* @__PURE__ */ n("div", { className: "imppression__question", children: _ })
|
|
55
|
+
] }) : /* @__PURE__ */ l("div", { className: "card__impression", children: [
|
|
56
56
|
/* @__PURE__ */ n("div", { className: "imppression__question", children: a }),
|
|
57
|
-
/* @__PURE__ */
|
|
57
|
+
/* @__PURE__ */ l("div", { className: "impression__actions", children: [
|
|
58
58
|
/* @__PURE__ */ n(
|
|
59
|
-
|
|
59
|
+
I,
|
|
60
60
|
{
|
|
61
61
|
icon: " mng-lnc-thumbs-up",
|
|
62
62
|
borderRadius: "curved",
|
|
@@ -65,7 +65,7 @@ const I = ({
|
|
|
65
65
|
}
|
|
66
66
|
),
|
|
67
67
|
/* @__PURE__ */ n(
|
|
68
|
-
|
|
68
|
+
I,
|
|
69
69
|
{
|
|
70
70
|
icon: " mng-lnc-thumbs-down",
|
|
71
71
|
borderRadius: "curved",
|
|
@@ -79,28 +79,28 @@ const I = ({
|
|
|
79
79
|
]
|
|
80
80
|
}
|
|
81
81
|
);
|
|
82
|
-
},
|
|
82
|
+
}, E = C(
|
|
83
83
|
({
|
|
84
84
|
items: s = [],
|
|
85
|
-
questionText:
|
|
85
|
+
questionText: t,
|
|
86
86
|
feedbackText: a,
|
|
87
|
-
showMoreText:
|
|
87
|
+
showMoreText: _,
|
|
88
88
|
impressions: i = !1,
|
|
89
89
|
onSelectItem: d = () => {
|
|
90
90
|
},
|
|
91
91
|
onImpressed: h = () => {
|
|
92
92
|
}
|
|
93
|
-
},
|
|
94
|
-
const r =
|
|
93
|
+
}, p) => {
|
|
94
|
+
const r = M(), [f, u] = S(!1), g = () => {
|
|
95
95
|
u((c) => !c);
|
|
96
96
|
}, o = k(() => {
|
|
97
97
|
if (r)
|
|
98
98
|
return s == null ? void 0 : s.map((e, v) => /* @__PURE__ */ n(
|
|
99
|
-
|
|
99
|
+
b,
|
|
100
100
|
{
|
|
101
101
|
title: e == null ? void 0 : e.title,
|
|
102
102
|
description: e == null ? void 0 : e.description,
|
|
103
|
-
questionText:
|
|
103
|
+
questionText: t,
|
|
104
104
|
feedbackText: a,
|
|
105
105
|
impressions: i,
|
|
106
106
|
onSelectItem: () => d(e),
|
|
@@ -112,11 +112,11 @@ const I = ({
|
|
|
112
112
|
return s == null || s.forEach((e, v) => {
|
|
113
113
|
v % 2 === 0 ? c.push(
|
|
114
114
|
/* @__PURE__ */ n(
|
|
115
|
-
|
|
115
|
+
b,
|
|
116
116
|
{
|
|
117
117
|
title: e == null ? void 0 : e.title,
|
|
118
118
|
description: e == null ? void 0 : e.description,
|
|
119
|
-
questionText:
|
|
119
|
+
questionText: t,
|
|
120
120
|
feedbackText: a,
|
|
121
121
|
impressions: i,
|
|
122
122
|
onSelectItem: () => d(e),
|
|
@@ -126,11 +126,11 @@ const I = ({
|
|
|
126
126
|
)
|
|
127
127
|
) : m.push(
|
|
128
128
|
/* @__PURE__ */ n(
|
|
129
|
-
|
|
129
|
+
b,
|
|
130
130
|
{
|
|
131
131
|
title: e == null ? void 0 : e.title,
|
|
132
132
|
description: e == null ? void 0 : e.description,
|
|
133
|
-
questionText:
|
|
133
|
+
questionText: t,
|
|
134
134
|
feedbackText: a,
|
|
135
135
|
impressions: i,
|
|
136
136
|
onSelectItem: () => d(e),
|
|
@@ -139,17 +139,17 @@ const I = ({
|
|
|
139
139
|
`faq-section-item__${v + 1}`
|
|
140
140
|
)
|
|
141
141
|
);
|
|
142
|
-
}), /* @__PURE__ */
|
|
142
|
+
}), /* @__PURE__ */ l(w, { children: [
|
|
143
143
|
/* @__PURE__ */ n("div", { className: "section__column", children: c }),
|
|
144
144
|
/* @__PURE__ */ n("div", { className: "section__column", children: m })
|
|
145
145
|
] });
|
|
146
146
|
}, [s, r]);
|
|
147
|
-
return /* @__PURE__ */ n(q, { ref:
|
|
147
|
+
return /* @__PURE__ */ n(q, { ref: p, children: r ? f ? o : /* @__PURE__ */ l(w, { children: [
|
|
148
148
|
o == null ? void 0 : o.slice(0, 4),
|
|
149
149
|
(o == null ? void 0 : o.length) > 4 && /* @__PURE__ */ n(
|
|
150
150
|
T,
|
|
151
151
|
{
|
|
152
|
-
text:
|
|
152
|
+
text: _,
|
|
153
153
|
btnType: "basic",
|
|
154
154
|
color: "neutral",
|
|
155
155
|
className: "section__show-more",
|
|
@@ -158,7 +158,7 @@ const I = ({
|
|
|
158
158
|
)
|
|
159
159
|
] }) : o });
|
|
160
160
|
}
|
|
161
|
-
),
|
|
161
|
+
), R = $.div`
|
|
162
162
|
display: flex;
|
|
163
163
|
flex-direction: column;
|
|
164
164
|
align-items: center;
|
|
@@ -190,7 +190,7 @@ const I = ({
|
|
|
190
190
|
line-height: 1.5rem;
|
|
191
191
|
}
|
|
192
192
|
|
|
193
|
-
@media
|
|
193
|
+
@media ${z("S")} {
|
|
194
194
|
& .section__title {
|
|
195
195
|
font-size: 1rem;
|
|
196
196
|
font-weight: 500;
|
|
@@ -204,16 +204,16 @@ const I = ({
|
|
|
204
204
|
letter-spacing: 0.25px;
|
|
205
205
|
}
|
|
206
206
|
}
|
|
207
|
-
`,
|
|
207
|
+
`, J = C(
|
|
208
208
|
({
|
|
209
209
|
title: s,
|
|
210
|
-
description:
|
|
210
|
+
description: t,
|
|
211
211
|
questionText: a = "What do you think about this answer?",
|
|
212
|
-
feedbackText:
|
|
212
|
+
feedbackText: _ = "Thank you for feedback!",
|
|
213
213
|
showMoreText: i = "Show more",
|
|
214
214
|
allTagText: d = "All",
|
|
215
215
|
impressions: h = !1,
|
|
216
|
-
tags:
|
|
216
|
+
tags: p = [],
|
|
217
217
|
items: r = [],
|
|
218
218
|
onSelectItem: f = () => {
|
|
219
219
|
},
|
|
@@ -221,15 +221,15 @@ const I = ({
|
|
|
221
221
|
}
|
|
222
222
|
}, g) => {
|
|
223
223
|
const [o, c] = S(null);
|
|
224
|
-
return /* @__PURE__ */
|
|
225
|
-
/* @__PURE__ */
|
|
224
|
+
return /* @__PURE__ */ l(R, { ref: g, children: [
|
|
225
|
+
/* @__PURE__ */ l("div", { className: "section__heading", children: [
|
|
226
226
|
s && /* @__PURE__ */ n("div", { className: "section__title", children: s }),
|
|
227
|
-
|
|
227
|
+
t && /* @__PURE__ */ n("div", { className: "section__description", children: t })
|
|
228
228
|
] }),
|
|
229
229
|
/* @__PURE__ */ n(
|
|
230
|
-
|
|
230
|
+
F,
|
|
231
231
|
{
|
|
232
|
-
tags:
|
|
232
|
+
tags: p,
|
|
233
233
|
allTagText: d,
|
|
234
234
|
selectedTagCode: o,
|
|
235
235
|
onSelectTag: (e) => {
|
|
@@ -238,11 +238,11 @@ const I = ({
|
|
|
238
238
|
}
|
|
239
239
|
),
|
|
240
240
|
/* @__PURE__ */ n(
|
|
241
|
-
|
|
241
|
+
E,
|
|
242
242
|
{
|
|
243
243
|
items: o === null ? r : r == null ? void 0 : r.filter((e) => (e == null ? void 0 : e.tagCode) === o),
|
|
244
244
|
questionText: a,
|
|
245
|
-
feedbackText:
|
|
245
|
+
feedbackText: _,
|
|
246
246
|
showMoreText: i,
|
|
247
247
|
impressions: h,
|
|
248
248
|
onSelectItem: f,
|
|
@@ -254,5 +254,5 @@ const I = ({
|
|
|
254
254
|
}
|
|
255
255
|
);
|
|
256
256
|
export {
|
|
257
|
-
|
|
257
|
+
J as default
|
|
258
258
|
};
|
package/dist/FeedbackSection.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const e=require("react/jsx-runtime"),o=require("react"),n=require("./utils-
|
|
1
|
+
"use strict";const e=require("react/jsx-runtime"),o=require("react"),n=require("./utils-CITgSxXe.cjs"),d=require("./Button.cjs"),f=require("./styled-components.browser.esm-CvykQBGY.cjs"),g=require("./breakpoints-CcVm-gVm.cjs"),m=f.qe.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex-direction: column;
|
|
4
4
|
align-items: center;
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
}
|
|
46
46
|
}
|
|
47
47
|
|
|
48
|
-
@media
|
|
48
|
+
@media ${g.down("S")} {
|
|
49
49
|
text-align: center;
|
|
50
50
|
}
|
|
51
|
-
`,_=o.forwardRef(({title:i,description:a,buttonText:s,onButtonAction:r=()=>{}},l)=>e.jsxs(
|
|
51
|
+
`,_=o.forwardRef(({title:i,description:a,buttonText:s,onButtonAction:r=()=>{}},l)=>e.jsxs(m,{ref:l,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(d,{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=_;
|
package/dist/FeedbackSection.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { forwardRef as
|
|
3
|
-
import {
|
|
4
|
-
import
|
|
5
|
-
import { q as
|
|
6
|
-
import {
|
|
7
|
-
const p =
|
|
1
|
+
import { jsxs as c, jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as s } from "react";
|
|
3
|
+
import { l as t } from "./utils-B2fsQ6PS.js";
|
|
4
|
+
import f from "./Button.js";
|
|
5
|
+
import { q as m } from "./styled-components.browser.esm-D-n22PJk.js";
|
|
6
|
+
import { d as g } from "./breakpoints-ff0SIcV3.js";
|
|
7
|
+
const p = m.div`
|
|
8
8
|
display: flex;
|
|
9
9
|
flex-direction: column;
|
|
10
10
|
align-items: center;
|
|
@@ -51,18 +51,18 @@ const p = f.div`
|
|
|
51
51
|
}
|
|
52
52
|
}
|
|
53
53
|
|
|
54
|
-
@media
|
|
54
|
+
@media ${g("S")} {
|
|
55
55
|
text-align: center;
|
|
56
56
|
}
|
|
57
|
-
`,
|
|
57
|
+
`, x = s(
|
|
58
58
|
({ title: i, description: n, buttonText: l, onButtonAction: r = () => {
|
|
59
|
-
} },
|
|
60
|
-
/* @__PURE__ */
|
|
59
|
+
} }, d) => /* @__PURE__ */ c(p, { ref: d, children: [
|
|
60
|
+
/* @__PURE__ */ c("div", { className: "feedback__content", children: [
|
|
61
61
|
t(i) && /* @__PURE__ */ e("div", { className: "feedback__title", children: /* @__PURE__ */ e("span", { children: i }) }),
|
|
62
62
|
t(n) && /* @__PURE__ */ e("div", { className: "feedback__description", children: /* @__PURE__ */ e("span", { children: n }) })
|
|
63
63
|
] }),
|
|
64
64
|
t(l) && /* @__PURE__ */ e(
|
|
65
|
-
|
|
65
|
+
f,
|
|
66
66
|
{
|
|
67
67
|
text: l,
|
|
68
68
|
borderRadius: "curved",
|
|
@@ -70,13 +70,13 @@ const p = f.div`
|
|
|
70
70
|
color: "neutral",
|
|
71
71
|
className: "feedback__action",
|
|
72
72
|
onClick: (a) => {
|
|
73
|
-
var
|
|
74
|
-
(
|
|
73
|
+
var o;
|
|
74
|
+
(o = a == null ? void 0 : a.target) == null || o.blur(), r == null || r();
|
|
75
75
|
}
|
|
76
76
|
}
|
|
77
77
|
)
|
|
78
78
|
] })
|
|
79
79
|
);
|
|
80
80
|
export {
|
|
81
|
-
|
|
81
|
+
x as default
|
|
82
82
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const e=require("react/jsx-runtime"),
|
|
1
|
+
"use strict";const e=require("react/jsx-runtime"),_=require("react"),g=require("./utils-CITgSxXe.cjs"),z=require("./Icon.cjs"),j=require("./emotion-styled.browser.esm-BtEseadx.cjs"),f=require("./breakpoints-CcVm-gVm.cjs"),L=require("./emotion-element-f0de968e.browser.esm-B7k6i6lC.cjs"),n=require("./style-BAcV7F53.cjs"),R=j.styled.a`
|
|
2
2
|
text-decoration: none;
|
|
3
3
|
color: var(--gray-950);
|
|
4
4
|
display: flex;
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
font-style: normal;
|
|
40
40
|
font-weight: 500;
|
|
41
41
|
line-height: 1.5rem;
|
|
42
|
-
${
|
|
42
|
+
${g.truncateTextInRows(2)}
|
|
43
43
|
}
|
|
44
44
|
|
|
45
45
|
& .wrapper__description {
|
|
@@ -49,11 +49,11 @@
|
|
|
49
49
|
font-weight: 400;
|
|
50
50
|
line-height: 1rem;
|
|
51
51
|
letter-spacing: 0.025rem;
|
|
52
|
-
${
|
|
52
|
+
${g.truncateTextInRows(2)}
|
|
53
53
|
}
|
|
54
54
|
}
|
|
55
55
|
|
|
56
|
-
@media
|
|
56
|
+
@media ${f.down("S")} {
|
|
57
57
|
& .wrapper__content {
|
|
58
58
|
& .wrapper__title {
|
|
59
59
|
font-size: 0.875rem;
|
|
@@ -65,7 +65,7 @@
|
|
|
65
65
|
}
|
|
66
66
|
}
|
|
67
67
|
}
|
|
68
|
-
`,
|
|
68
|
+
`,M=j.styled.div`
|
|
69
69
|
display: flex;
|
|
70
70
|
flex-direction: column;
|
|
71
71
|
align-items: center;
|
|
@@ -106,7 +106,7 @@
|
|
|
106
106
|
font-weight: 400;
|
|
107
107
|
line-height: 1.5rem;
|
|
108
108
|
max-width: 8rem;
|
|
109
|
-
${
|
|
109
|
+
${g.truncateTextInRows(2)}
|
|
110
110
|
}
|
|
111
111
|
|
|
112
112
|
&.active {
|
|
@@ -116,7 +116,7 @@
|
|
|
116
116
|
}
|
|
117
117
|
}
|
|
118
118
|
|
|
119
|
-
@media
|
|
119
|
+
@media ${f.down("S")} {
|
|
120
120
|
max-width: unset;
|
|
121
121
|
min-width: unset;
|
|
122
122
|
flex-direction: row;
|
|
@@ -156,7 +156,7 @@
|
|
|
156
156
|
max-width: unset;
|
|
157
157
|
}
|
|
158
158
|
}
|
|
159
|
-
`,
|
|
159
|
+
`,E=_.forwardRef(({text:t,isActive:s=!1,icon:i,onSelectCard:o=()=>{}},c)=>e.jsxs(M,{ref:c,className:s?"active":"",onClick:o,children:[e.jsx(z,{icon:i,className:"wrapper__icon"}),e.jsx("div",{className:"wrapper__text",children:t})]})),F=_.forwardRef(({image:t,imageComponent:s,title:i,description:o,className:c,onSelectCard:k=()=>{},link:x,LinkComponent:u},b)=>{const m=u||"a",{theme:h}=L.useTheme();return e.jsxs(R,{ref:b,theme:h,className:c,onClick:k,as:m,...u?{to:`/${x}`}:{href:`/${x}`},children:[g.isDefined(s)?s:e.jsx("img",{src:t,className:"wrapper__image"}),e.jsxs("div",{className:"wrapper__content",children:[i&&e.jsx("div",{className:"wrapper__title",children:i}),o&&e.jsx("div",{className:"wrapper__description",children:o})]})]})}),W=j.styled.div`
|
|
160
160
|
display: flex;
|
|
161
161
|
flex-direction: column;
|
|
162
162
|
align-items: center;
|
|
@@ -212,21 +212,27 @@
|
|
|
212
212
|
}
|
|
213
213
|
}
|
|
214
214
|
|
|
215
|
-
@media
|
|
215
|
+
@media ${f.down("M")} {
|
|
216
|
+
& .wrapper__cards {
|
|
217
|
+
grid-template-columns: repeat(2, minmax(12.5rem, 1fr));
|
|
218
|
+
}
|
|
219
|
+
}
|
|
220
|
+
|
|
221
|
+
@media ${f.down("S")} {
|
|
216
222
|
gap: 1rem;
|
|
217
223
|
|
|
218
224
|
& .wrapper__cards {
|
|
219
225
|
grid-template-columns: ${t=>`repeat(${t==null?void 0:t.limitCardsForMobile}, minmax(0, 1fr))`};
|
|
220
226
|
}
|
|
221
227
|
}
|
|
222
|
-
`,
|
|
228
|
+
`,P=j.styled(n.SkeletonRowWrapper)`
|
|
223
229
|
&.skeleton__tags {
|
|
224
230
|
max-width: 50rem;
|
|
225
231
|
}
|
|
226
232
|
|
|
227
|
-
@media
|
|
233
|
+
@media ${f.down("S")} {
|
|
228
234
|
&.skeleton__tags {
|
|
229
235
|
overflow-x: hidden;
|
|
230
236
|
}
|
|
231
237
|
}
|
|
232
|
-
`,
|
|
238
|
+
`,O=({keyPrefix:t})=>e.jsxs(P,{className:"skeleton__tags",children:[e.jsxs(n.SkeletonColumnWrapper,{alignItems:"center",gap:"0.5rem",children:[e.jsx(n.SkeletonCirclePlaceholder,{width:"2.75rem",height:"2.75rem"}),e.jsx(n.SkeletonLinePlaceholder,{height:"1.5rem",width:"8rem"})]},`${t}-1`),e.jsxs(n.SkeletonColumnWrapper,{alignItems:"center",gap:"0.5rem",noGradient:!0,children:[e.jsx(n.SkeletonCirclePlaceholder,{width:"2.75rem",height:"2.75rem"}),e.jsx(n.SkeletonLinePlaceholder,{height:"1.5rem",width:"8rem"})]},`${t}-2`),e.jsxs(n.SkeletonColumnWrapper,{alignItems:"center",gap:"0.5rem",noGradient:!0,children:[e.jsx(n.SkeletonCirclePlaceholder,{width:"2.75rem",height:"2.75rem"}),e.jsx(n.SkeletonLinePlaceholder,{height:"1.5rem",width:"8rem"})]},`${t}-3`),e.jsxs(n.SkeletonColumnWrapper,{alignItems:"center",gap:"0.5rem",noGradient:!0,children:[e.jsx(n.SkeletonCirclePlaceholder,{width:"2.75rem",height:"2.75rem"}),e.jsx(n.SkeletonLinePlaceholder,{height:"1.5rem",width:"8rem"})]},`${t}-4`),e.jsxs(n.SkeletonColumnWrapper,{alignItems:"center",gap:"0.5rem",noGradient:!0,children:[e.jsx(n.SkeletonCirclePlaceholder,{width:"2.75rem",height:"2.75rem"}),e.jsx(n.SkeletonLinePlaceholder,{height:"1.5rem",width:"8rem"})]},`${t}-5`)]}),T=({keyPrefix:t,isLoading:s=!1,fallbackComponent:i=e.jsx(e.Fragment,{}),children:o})=>e.jsx(_.Suspense,{fallbackComponent:i,children:s===!0?e.jsx(O,{keyPrefix:t}):o}),G=_.forwardRef(({title:t,subtitle:s,tags:i=[],items:o=[],limitTags:c=5,limitTagsForMobile:k=5,limit:x=3,limitForMobile:u=2,selectedTag:b,onSelectTag:m=()=>{},onSelectCard:h=()=>{},className:w,isLoadingTags:S=!1,LinkComponent:C},I)=>(_.useLayoutEffect(()=>{if(!g.isDefinedNotEmptyString(w))return;const r=()=>{const p=document==null?void 0:document.querySelector(`.${w} .wrapper__cards`),l=p==null?void 0:p.querySelectorAll(".wrapper__card");l==null||l.forEach(v=>{const q=v.getBoundingClientRect().height,N=Math.ceil((q+10)/20);v.style.gridRowEnd=`span ${N}`});const $=l==null?void 0:l[(l==null?void 0:l.length)-1];if($){const v=$.offsetTop+$.offsetHeight;p.style.height=`${v}px`}},d=document==null?void 0:document.querySelector(`.${w} .wrapper__cards`),a=d==null?void 0:d.querySelectorAll(".wrapper__image");let y=0;return(a==null?void 0:a.length)===0?r():(a==null||a.forEach(p=>{p.complete?y++:p.addEventListener("load",()=>{y++,y===(a==null?void 0:a.length)&&r()})}),y===(a==null?void 0:a.length)&&r()),window.addEventListener("resize",r),()=>{window.removeEventListener("resize",r)}},[w,o]),e.jsxs(W,{ref:I,limitTags:c,limitTagsForMobile:k,limitCards:x,limitCardsForMobile:u,className:w,numberOfTags:i==null?void 0:i.length,children:[e.jsxs("div",{className:"wrapper__heading",children:[t&&e.jsx("div",{className:"wrapper__title",children:t}),s&&e.jsx("div",{className:"wrapper__subtitle",children:s})]}),e.jsx(T,{isLoading:S,keyPrefix:"field-of-interests-masonry-tag",children:e.jsx("div",{className:"wrapper__tags__external",children:e.jsx("div",{className:"wrapper__tags",children:i==null?void 0:i.map((r,d)=>e.jsx(E,{icon:r==null?void 0:r.icon,text:r==null?void 0:r.title,isActive:(r==null?void 0:r.code)===b,onSelectCard:()=>m==null?void 0:m(r)},`field-of-interests-masonry-tag__${d+1}`))})})}),e.jsx("div",{className:"wrapper__cards",children:o==null?void 0:o.map((r,d)=>e.jsx(F,{image:r==null?void 0:r.image,imageComponent:r==null?void 0:r.imageComponent,title:r==null?void 0:r.title,description:r==null?void 0:r.description,onSelectCard:()=>h==null?void 0:h(r),className:"wrapper__card",link:r==null?void 0:r.link,LinkComponent:C},`field-of-interests-with-tags-card__${d+1}`))})]})));module.exports=G;
|