@lanaco/lnc-react-ui 4.0.199 → 4.0.201
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/BannerSectionCarousel.cjs +4 -4
- package/dist/BannerSectionCarousel.js +51 -542
- package/dist/BlogCardsSponsoredSection.cjs +1 -1
- package/dist/BlogCardsSponsoredSection.js +1 -1
- 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/BlogListSection.cjs +1 -1
- package/dist/BlogListSection.js +1 -1
- package/dist/BlogsSectionDetailed.cjs +1 -1
- package/dist/BlogsSectionDetailed.js +1 -1
- package/dist/BlogsSectionSimple.cjs +1 -1
- package/dist/BlogsSectionSimple.js +1 -1
- package/dist/BlogsSectionWithFilters.cjs +1 -1
- package/dist/BlogsSectionWithFilters.js +2 -2
- 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 +2 -2
- 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/GiftCardsSection.cjs +1 -1
- package/dist/GiftCardsSection.js +1 -1
- 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/PartnerBrandsSection.cjs +62 -0
- package/dist/PartnerBrandsSection.js +154 -0
- package/dist/PartnerStatsSection.cjs +100 -0
- package/dist/PartnerStatsSection.js +124 -0
- 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/ProductsWithBannerSection.cjs +1 -1
- package/dist/ProductsWithBannerSection.js +1 -1
- 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 +38 -28
- package/dist/SalesCampaignsSection.js +297 -325
- 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 +2 -2
- package/dist/SimpleCategoriesSection.js +2 -2
- 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-BppfjY8h.js +497 -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-DeS-oqJB.cjs +1 -0
- package/dist/index.cjs +1 -1
- package/dist/index.js +25 -21
- package/dist/{style-CkcozOY6.cjs → style-B4kAj6YU.cjs} +38 -8
- package/dist/{style-Cmlod7oq.js → style-neMbLWE6.js} +42 -11
- package/dist/{tag-BtS5lWJ0.js → tag-Dm8CW4TM.js} +21 -27
- package/dist/{tag-CmeZsPQt.cjs → tag-UQjq2_Ba.cjs} +7 -7
- package/package.json +4 -2
- package/vite.config.js +8 -0
- 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/Modal.js
CHANGED
|
@@ -1,14 +1,13 @@
|
|
|
1
|
-
import { jsx as t, Fragment as L, jsxs as
|
|
2
|
-
import { forwardRef as
|
|
3
|
-
import { P as o } from "./index-CblbdqjE.js";
|
|
1
|
+
import { jsx as t, Fragment as L, jsxs as T } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as U, useRef as X, useState as V, useImperativeHandle as q, useEffect as J } from "react";
|
|
4
3
|
import { s as C } from "./emotion-styled.browser.esm-BNN1dTl3.js";
|
|
5
|
-
import
|
|
4
|
+
import K from "./Icon.js";
|
|
6
5
|
import { b as w } from "./utils-DtEfC-TX.js";
|
|
7
6
|
import { r as Q } from "./index-B1vKwsDE.js";
|
|
8
7
|
import { m as M } from "./motion-Ckekul_K.js";
|
|
9
8
|
import { u as Y } from "./emotion-element-f0de968e.browser.esm-CkCiQliQ.js";
|
|
10
|
-
import { A
|
|
11
|
-
const
|
|
9
|
+
import { A } from "./index-D-c5IxDk.js";
|
|
10
|
+
const f = "5rem", h = "3.8rem", n = "1.5rem", Z = (e, r, a) => r && a ? e == "FULL" ? `calc(100dvh - ${h} - ${f})` : `calc(100dvh - ${h} - ${f} - ${n})` : r ? e == "FULL" ? `calc(100dvh - ${h})` : `calc(100dvh - ${h} - ${n})` : a ? e == "FULL" ? `calc(100dvh - ${f})` : `calc(100dvh - ${f} - ${n})` : e == "FULL" ? "100dvh" : `calc(100dvh - ${n})`, P = (e) => e == "FULL" ? "100vw" : `calc(100vw - ${n})`, ee = (e, r, a) => e == "FULL" ? "0" : `${r ? "0" : "16px"} 0 ${a ? "0" : "16px"} 0`, te = C(M.div)`
|
|
12
11
|
position: ${(e) => e.scrollOverlay == !0 ? "absolute" : "fixed"};
|
|
13
12
|
top: 0;
|
|
14
13
|
left: 0;
|
|
@@ -17,17 +16,16 @@ const h = "5rem", g = "3.8rem", l = "1.5rem", Z = (e, n, a) => n && a ? e == "FU
|
|
|
17
16
|
background: ${(e) => e.scrollOverlay === !0 ? "transparent" : e.overlayColor};
|
|
18
17
|
z-index: ${(e) => e.zIndex};
|
|
19
18
|
display: flex;
|
|
20
|
-
`,
|
|
19
|
+
`, oe = C(M.div)`
|
|
21
20
|
position: relative;
|
|
22
21
|
width: 50%;
|
|
23
22
|
background-color: white;
|
|
24
23
|
${(e) => e.scrollOverlay == !1 ? "position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);" : "height: fit-content; margin-right: auto; margin-left: auto;"}
|
|
25
24
|
background-color: ${(e) => w(e.theme, "Modal", "default", "enabled", "bg")};
|
|
26
25
|
z-index: ${(e) => e.zIndex};
|
|
27
|
-
width: ${(e) =>
|
|
28
|
-
max-width: ${(e) =>
|
|
29
|
-
box-shadow:
|
|
30
|
-
0px 20px 25px -5px rgba(0, 0, 0, 0.1),
|
|
26
|
+
width: ${(e) => ne[e.size.toUpperCase()]};
|
|
27
|
+
max-width: ${(e) => P(e.size.toUpperCase())};
|
|
28
|
+
box-shadow: 0px 20px 25px -5px rgba(0, 0, 0, 0.1),
|
|
31
29
|
0px 10px 10px -5px rgba(0, 0, 0, 0.04);
|
|
32
30
|
border-radius: ${(e) => e.size.toUpperCase() != "FULL" ? "16px" : "0"};
|
|
33
31
|
display: flex;
|
|
@@ -35,9 +33,9 @@ const h = "5rem", g = "3.8rem", l = "1.5rem", Z = (e, n, a) => n && a ? e == "FU
|
|
|
35
33
|
gap: 0.5rem;
|
|
36
34
|
|
|
37
35
|
& .lnc-modal-header {
|
|
38
|
-
max-height: ${
|
|
36
|
+
max-height: ${h};
|
|
39
37
|
overflow: hidden;
|
|
40
|
-
padding: ${
|
|
38
|
+
padding: ${n} ${n} 0 ${n};
|
|
41
39
|
}
|
|
42
40
|
& .lnc-modal-header > h1,
|
|
43
41
|
h2,
|
|
@@ -45,7 +43,7 @@ const h = "5rem", g = "3.8rem", l = "1.5rem", Z = (e, n, a) => n && a ? e == "FU
|
|
|
45
43
|
margin: 0;
|
|
46
44
|
}
|
|
47
45
|
& .lnc-modal-footer {
|
|
48
|
-
max-height: ${
|
|
46
|
+
max-height: ${f};
|
|
49
47
|
overflow: hidden;
|
|
50
48
|
padding-top: 1rem;
|
|
51
49
|
}
|
|
@@ -62,10 +60,10 @@ const h = "5rem", g = "3.8rem", l = "1.5rem", Z = (e, n, a) => n && a ? e == "FU
|
|
|
62
60
|
e.footer
|
|
63
61
|
)};`}
|
|
64
62
|
overflow: auto;
|
|
65
|
-
margin: ${(e) =>
|
|
66
|
-
padding: 0 ${
|
|
63
|
+
margin: ${(e) => ee(e.size, e.header, e.footer)};
|
|
64
|
+
padding: 0 ${n} 0 ${n};
|
|
67
65
|
}
|
|
68
|
-
`,
|
|
66
|
+
`, re = C.div`
|
|
69
67
|
position: absolute;
|
|
70
68
|
cursor: pointer;
|
|
71
69
|
top: 1.375rem;
|
|
@@ -116,28 +114,28 @@ const h = "5rem", g = "3.8rem", l = "1.5rem", Z = (e, n, a) => n && a ? e == "FU
|
|
|
116
114
|
width: 100%;
|
|
117
115
|
background-color: ${(e) => e.overlayColor};
|
|
118
116
|
z-index: 3;
|
|
119
|
-
`,
|
|
117
|
+
`, ge = U((e, r) => {
|
|
120
118
|
const {
|
|
121
119
|
preventDefault: a = !1,
|
|
122
|
-
portalElement:
|
|
123
|
-
isOpen:
|
|
120
|
+
portalElement: d = document.body,
|
|
121
|
+
isOpen: c = !1,
|
|
124
122
|
header: i,
|
|
125
|
-
footer:
|
|
126
|
-
scrollOverlay:
|
|
127
|
-
overlay:
|
|
128
|
-
overlayColor:
|
|
123
|
+
footer: l,
|
|
124
|
+
scrollOverlay: s = !1,
|
|
125
|
+
overlay: m = !0,
|
|
126
|
+
overlayColor: p = "rgba(0, 0, 0, 0.3)",
|
|
129
127
|
showCloseButton: u = !0,
|
|
130
|
-
onOpen:
|
|
128
|
+
onOpen: g = () => {
|
|
131
129
|
},
|
|
132
|
-
onClose:
|
|
130
|
+
onClose: O = () => {
|
|
133
131
|
},
|
|
134
|
-
zIndex:
|
|
132
|
+
zIndex: x = 1e3,
|
|
135
133
|
size: $ = "fluid",
|
|
136
|
-
clickOutsideToClose:
|
|
137
|
-
className:
|
|
138
|
-
style:
|
|
134
|
+
clickOutsideToClose: y = !0,
|
|
135
|
+
className: j = "",
|
|
136
|
+
style: G = {},
|
|
139
137
|
overlayProps: F,
|
|
140
|
-
overlayAnimation:
|
|
138
|
+
overlayAnimation: z = {
|
|
141
139
|
animate: { opacity: 1 },
|
|
142
140
|
exit: { opacity: 0 },
|
|
143
141
|
initial: {
|
|
@@ -145,7 +143,7 @@ const h = "5rem", g = "3.8rem", l = "1.5rem", Z = (e, n, a) => n && a ? e == "FU
|
|
|
145
143
|
},
|
|
146
144
|
transition: { type: "spring", duration: 0.6 }
|
|
147
145
|
},
|
|
148
|
-
modalAnimation:
|
|
146
|
+
modalAnimation: k = {
|
|
149
147
|
animate: { opacity: 1 },
|
|
150
148
|
exit: { opacity: 0 },
|
|
151
149
|
initial: {
|
|
@@ -153,218 +151,185 @@ const h = "5rem", g = "3.8rem", l = "1.5rem", Z = (e, n, a) => n && a ? e == "FU
|
|
|
153
151
|
},
|
|
154
152
|
transition: { type: "spring", duration: 0.6 }
|
|
155
153
|
},
|
|
156
|
-
onFinishOpen:
|
|
154
|
+
onFinishOpen: _ = () => {
|
|
157
155
|
},
|
|
158
|
-
children:
|
|
156
|
+
children: B,
|
|
159
157
|
rest: I
|
|
160
|
-
} = e,
|
|
161
|
-
let
|
|
162
|
-
const
|
|
163
|
-
a && (
|
|
158
|
+
} = e, D = X(), [v, E] = V(c);
|
|
159
|
+
let N = { theme: Y(), size: $, zIndex: x, className: j, style: G };
|
|
160
|
+
const H = (o) => {
|
|
161
|
+
a && (o == null || o.preventDefault(), o == null || o.stopPropagation()), o.target === o.currentTarget && y && b(o);
|
|
164
162
|
};
|
|
165
|
-
|
|
163
|
+
q(r, () => ({
|
|
166
164
|
open() {
|
|
167
|
-
|
|
165
|
+
W();
|
|
168
166
|
},
|
|
169
167
|
close() {
|
|
170
|
-
|
|
168
|
+
b();
|
|
171
169
|
},
|
|
172
170
|
isOpen() {
|
|
173
171
|
return v;
|
|
174
172
|
}
|
|
175
173
|
}));
|
|
176
|
-
const
|
|
177
|
-
|
|
178
|
-
},
|
|
179
|
-
|
|
174
|
+
const W = (o) => {
|
|
175
|
+
E(!0), g(o);
|
|
176
|
+
}, b = (o) => {
|
|
177
|
+
E(!1), O(o);
|
|
180
178
|
};
|
|
181
|
-
return
|
|
182
|
-
v === !0 &&
|
|
183
|
-
}, [v]), /* @__PURE__ */ t(L, { children: v && /* @__PURE__ */ t(L, { children:
|
|
179
|
+
return J(() => {
|
|
180
|
+
v === !0 && _();
|
|
181
|
+
}, [v]), /* @__PURE__ */ t(L, { children: v && /* @__PURE__ */ t(L, { children: d ? /* @__PURE__ */ t(L, { children: Q.createPortal(
|
|
184
182
|
/* @__PURE__ */ t(
|
|
185
|
-
|
|
183
|
+
R,
|
|
186
184
|
{
|
|
187
|
-
ref:
|
|
188
|
-
overlay:
|
|
189
|
-
scrollOverlay:
|
|
190
|
-
onClickOutsideModal:
|
|
191
|
-
overlayColor:
|
|
185
|
+
ref: D,
|
|
186
|
+
overlay: m,
|
|
187
|
+
scrollOverlay: s,
|
|
188
|
+
onClickOutsideModal: H,
|
|
189
|
+
overlayColor: p,
|
|
192
190
|
overlayProps: F,
|
|
193
|
-
overlayAnimation:
|
|
194
|
-
modalAnimation:
|
|
195
|
-
themeProps:
|
|
191
|
+
overlayAnimation: z,
|
|
192
|
+
modalAnimation: k,
|
|
193
|
+
themeProps: N,
|
|
196
194
|
showCloseButton: u,
|
|
197
|
-
close:
|
|
195
|
+
close: b,
|
|
198
196
|
header: i,
|
|
199
|
-
footer:
|
|
200
|
-
isOpen:
|
|
197
|
+
footer: l,
|
|
198
|
+
isOpen: c,
|
|
201
199
|
...I,
|
|
202
|
-
children:
|
|
200
|
+
children: B
|
|
203
201
|
}
|
|
204
202
|
),
|
|
205
|
-
|
|
203
|
+
d
|
|
206
204
|
) }) : /* @__PURE__ */ t(
|
|
207
|
-
|
|
205
|
+
R,
|
|
208
206
|
{
|
|
209
|
-
ref:
|
|
210
|
-
overlay:
|
|
211
|
-
scrollOverlay:
|
|
212
|
-
onClickOutsideModal:
|
|
213
|
-
overlayColor:
|
|
207
|
+
ref: D,
|
|
208
|
+
overlay: m,
|
|
209
|
+
scrollOverlay: s,
|
|
210
|
+
onClickOutsideModal: H,
|
|
211
|
+
overlayColor: p,
|
|
214
212
|
overlayProps: F,
|
|
215
|
-
overlayAnimation:
|
|
216
|
-
modalAnimation:
|
|
217
|
-
themeProps:
|
|
213
|
+
overlayAnimation: z,
|
|
214
|
+
modalAnimation: k,
|
|
215
|
+
themeProps: N,
|
|
218
216
|
showCloseButton: u,
|
|
219
|
-
close:
|
|
217
|
+
close: b,
|
|
220
218
|
header: i,
|
|
221
|
-
footer:
|
|
222
|
-
isOpen:
|
|
219
|
+
footer: l,
|
|
220
|
+
isOpen: c,
|
|
223
221
|
...I,
|
|
224
|
-
children:
|
|
222
|
+
children: B
|
|
225
223
|
}
|
|
226
224
|
) }) });
|
|
227
|
-
}),
|
|
225
|
+
}), R = U(
|
|
228
226
|
({
|
|
229
227
|
overlay: e,
|
|
230
|
-
scrollOverlay:
|
|
228
|
+
scrollOverlay: r,
|
|
231
229
|
onClickOutsideModal: a,
|
|
232
|
-
overlayColor:
|
|
233
|
-
overlayProps:
|
|
230
|
+
overlayColor: d,
|
|
231
|
+
overlayProps: c,
|
|
234
232
|
overlayAnimation: i,
|
|
235
|
-
modalAnimation:
|
|
236
|
-
themeProps:
|
|
237
|
-
showCloseButton:
|
|
238
|
-
header:
|
|
233
|
+
modalAnimation: l,
|
|
234
|
+
themeProps: s,
|
|
235
|
+
showCloseButton: m,
|
|
236
|
+
header: p,
|
|
239
237
|
footer: u,
|
|
240
|
-
close:
|
|
241
|
-
isOpen:
|
|
242
|
-
children:
|
|
238
|
+
close: g,
|
|
239
|
+
isOpen: O,
|
|
240
|
+
children: x,
|
|
243
241
|
...$
|
|
244
|
-
},
|
|
242
|
+
}, y) => /* @__PURE__ */ t(A, { children: e ? /* @__PURE__ */ T(L, { children: [
|
|
245
243
|
/* @__PURE__ */ t(
|
|
246
244
|
ae,
|
|
247
245
|
{
|
|
248
|
-
scrollOverlay:
|
|
246
|
+
scrollOverlay: r,
|
|
249
247
|
onClick: a,
|
|
250
|
-
overlayColor:
|
|
251
|
-
...
|
|
248
|
+
overlayColor: d,
|
|
249
|
+
...c,
|
|
252
250
|
...i
|
|
253
251
|
}
|
|
254
252
|
),
|
|
255
253
|
/* @__PURE__ */ t(
|
|
256
254
|
te,
|
|
257
255
|
{
|
|
258
|
-
...d,
|
|
259
|
-
onClick: a,
|
|
260
|
-
scrollOverlay: n,
|
|
261
|
-
overlayColor: m,
|
|
262
|
-
isOpen: U,
|
|
263
256
|
...s,
|
|
257
|
+
onClick: a,
|
|
258
|
+
scrollOverlay: r,
|
|
259
|
+
overlayColor: d,
|
|
260
|
+
isOpen: O,
|
|
261
|
+
...c,
|
|
264
262
|
...i,
|
|
265
263
|
children: /* @__PURE__ */ t(
|
|
266
|
-
|
|
264
|
+
S,
|
|
267
265
|
{
|
|
268
|
-
ref:
|
|
269
|
-
themeProps:
|
|
270
|
-
scrollOverlay:
|
|
271
|
-
modalAnimation:
|
|
272
|
-
showCloseButton:
|
|
273
|
-
close:
|
|
274
|
-
header:
|
|
266
|
+
ref: y,
|
|
267
|
+
themeProps: s,
|
|
268
|
+
scrollOverlay: r,
|
|
269
|
+
modalAnimation: l,
|
|
270
|
+
showCloseButton: m,
|
|
271
|
+
close: g,
|
|
272
|
+
header: p,
|
|
275
273
|
footer: u,
|
|
276
274
|
...$,
|
|
277
|
-
children:
|
|
275
|
+
children: x
|
|
278
276
|
}
|
|
279
277
|
)
|
|
280
278
|
}
|
|
281
279
|
)
|
|
282
280
|
] }) : /* @__PURE__ */ t(
|
|
283
|
-
|
|
281
|
+
S,
|
|
284
282
|
{
|
|
285
|
-
ref:
|
|
286
|
-
themeProps:
|
|
287
|
-
modalAnimation:
|
|
288
|
-
showCloseButton:
|
|
289
|
-
close:
|
|
290
|
-
header:
|
|
283
|
+
ref: y,
|
|
284
|
+
themeProps: s,
|
|
285
|
+
modalAnimation: l,
|
|
286
|
+
showCloseButton: m,
|
|
287
|
+
close: g,
|
|
288
|
+
header: p,
|
|
291
289
|
footer: u,
|
|
292
290
|
...$,
|
|
293
|
-
children:
|
|
291
|
+
children: x
|
|
294
292
|
}
|
|
295
293
|
) })
|
|
296
|
-
),
|
|
294
|
+
), S = U(
|
|
297
295
|
({
|
|
298
296
|
themeProps: e,
|
|
299
|
-
scrollOverlay:
|
|
297
|
+
scrollOverlay: r,
|
|
300
298
|
modalAnimation: a,
|
|
301
|
-
showCloseButton:
|
|
302
|
-
close:
|
|
299
|
+
showCloseButton: d,
|
|
300
|
+
close: c,
|
|
303
301
|
header: i,
|
|
304
|
-
footer:
|
|
305
|
-
children:
|
|
306
|
-
...
|
|
307
|
-
},
|
|
308
|
-
|
|
302
|
+
footer: l,
|
|
303
|
+
children: s,
|
|
304
|
+
...m
|
|
305
|
+
}, p) => /* @__PURE__ */ t(A, { children: /* @__PURE__ */ T(
|
|
306
|
+
oe,
|
|
309
307
|
{
|
|
310
|
-
ref:
|
|
308
|
+
ref: p,
|
|
311
309
|
...e,
|
|
312
310
|
...a,
|
|
313
311
|
header: i,
|
|
314
|
-
footer:
|
|
315
|
-
scrollOverlay:
|
|
316
|
-
...
|
|
312
|
+
footer: l,
|
|
313
|
+
scrollOverlay: r,
|
|
314
|
+
...m,
|
|
317
315
|
className: `modal-lnc-container ${e == null ? void 0 : e.className}`,
|
|
318
316
|
children: [
|
|
319
|
-
|
|
320
|
-
|
|
317
|
+
d && /* @__PURE__ */ t(
|
|
318
|
+
re,
|
|
321
319
|
{
|
|
322
320
|
...e,
|
|
323
321
|
className: "modal-lnc-times",
|
|
324
|
-
onClick:
|
|
325
|
-
children: /* @__PURE__ */ t(
|
|
322
|
+
onClick: c,
|
|
323
|
+
children: /* @__PURE__ */ t(K, { icon: "times" })
|
|
326
324
|
}
|
|
327
325
|
),
|
|
328
326
|
i && /* @__PURE__ */ t("div", { className: "lnc-modal-header", children: i }),
|
|
329
|
-
/* @__PURE__ */ t("div", { className: "lnc-modal-content", children:
|
|
330
|
-
|
|
327
|
+
/* @__PURE__ */ t("div", { className: "lnc-modal-content", children: s }),
|
|
328
|
+
l && /* @__PURE__ */ t("div", { className: "lnc-modal-footer", children: l })
|
|
331
329
|
]
|
|
332
330
|
}
|
|
333
331
|
) })
|
|
334
|
-
)
|
|
335
|
-
le.propTypes = {
|
|
336
|
-
/**
|
|
337
|
-
* If the value is given modal will use createPortal to be rendered in portalElement
|
|
338
|
-
*/
|
|
339
|
-
portalElement: o.any,
|
|
340
|
-
/**
|
|
341
|
-
* Is modal open by default
|
|
342
|
-
*/
|
|
343
|
-
isOpen: o.bool,
|
|
344
|
-
header: o.oneOfType([o.string, o.element]),
|
|
345
|
-
footer: o.oneOfType([o.string, o.element]),
|
|
346
|
-
showCloseButton: o.bool,
|
|
347
|
-
overlay: o.bool,
|
|
348
|
-
/**
|
|
349
|
-
* when scrollOverlay=false whole modal contetn will be shown inside viewport and modal content will be scrollable,
|
|
350
|
-
* when scrollOverlay=true modal content won't be scrollable it will be fully shown inside overlay which will be scrollable
|
|
351
|
-
* to use this prop `overlay` must be set to `true`
|
|
352
|
-
* Make sure when setting `scrollOverlay={true} that the parent element has `position: relative`;
|
|
353
|
-
*/
|
|
354
|
-
scrollOverlay: o.bool,
|
|
355
|
-
onOpen: o.func,
|
|
356
|
-
onClose: o.func,
|
|
357
|
-
zIndex: o.number,
|
|
358
|
-
clickOutsideToClose: o.bool,
|
|
359
|
-
overlayColor: o.string,
|
|
360
|
-
overlayAnimation: o.object,
|
|
361
|
-
modalAnimation: o.object,
|
|
362
|
-
className: o.string,
|
|
363
|
-
style: o.object,
|
|
364
|
-
size: o.oneOf(["fluid", "xs", "s", "m", "l", "xl", "full"]),
|
|
365
|
-
overlayProps: o.any
|
|
366
|
-
};
|
|
367
|
-
const ie = {
|
|
332
|
+
), ne = {
|
|
368
333
|
FLUID: "max-content",
|
|
369
334
|
XS: "320px",
|
|
370
335
|
S: "412px",
|
|
@@ -374,5 +339,5 @@ const ie = {
|
|
|
374
339
|
FULL: "100vw"
|
|
375
340
|
};
|
|
376
341
|
export {
|
|
377
|
-
|
|
342
|
+
ge as default
|
|
378
343
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const
|
|
1
|
+
"use strict";const h=require("react/jsx-runtime"),t=require("react"),w=require("./CustomStyles-C86XQqBE.cjs"),x=require("./index-Cp66dWMi.cjs"),S=require("./Dropdown.cjs"),f=require("./emotion-element-f0de968e.browser.esm-B7k6i6lC.cjs"),C=t.forwardRef((r,o)=>{const{styles:s,debounceTime:n=0,isSearchable:u=!0,isClearable:c=!0,onInputChange:e,size:l="small",color:i="primary",className:a="",style:m={},...d}=r,b=f.useTheme(),q=t.useCallback(x.debounce((y,p)=>{e==null||e(y,p)},n));return h.jsx(S.default,{isMulti:!0,ref:o,styles:s||w.customStyles,size:l,color:i,theme:b,isSearchable:u,isClearable:c,className:a,style:m,...d,onInputChange:q})});module.exports=C;
|