@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/DropdownItem.js
CHANGED
|
@@ -1,13 +1,12 @@
|
|
|
1
|
-
import { jsx as d, Fragment as
|
|
2
|
-
import { forwardRef as
|
|
3
|
-
import {
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import {
|
|
7
|
-
|
|
8
|
-
const ne = Z.div`
|
|
1
|
+
import { jsx as d, Fragment as _, jsxs as G } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as H, useRef as J, useState as Q, useEffect as W } from "react";
|
|
3
|
+
import { s as X } from "./emotion-styled.browser.esm-BNN1dTl3.js";
|
|
4
|
+
import $ from "./Icon.js";
|
|
5
|
+
import { b as o, c as Y, h as v } from "./utils-DtEfC-TX.js";
|
|
6
|
+
import { u as Z } from "./emotion-element-f0de968e.browser.esm-CkCiQliQ.js";
|
|
7
|
+
const I = X.div`
|
|
9
8
|
box-sizing: border-box;
|
|
10
|
-
cursor: ${(
|
|
9
|
+
cursor: ${(l) => l.disabled == !1 ? "pointer" : "context-menu"};
|
|
11
10
|
width: 100%;
|
|
12
11
|
border-radius: 6px;
|
|
13
12
|
display: flex;
|
|
@@ -15,227 +14,192 @@ const ne = Z.div`
|
|
|
15
14
|
min-height: 2.25rem;
|
|
16
15
|
gap: 0.563rem;
|
|
17
16
|
padding: 0.563rem;
|
|
18
|
-
color: ${(
|
|
19
|
-
|
|
17
|
+
color: ${(l) => o(
|
|
18
|
+
l.theme,
|
|
20
19
|
"MenuItem",
|
|
21
|
-
|
|
22
|
-
|
|
20
|
+
l.color,
|
|
21
|
+
l.isActive === !0 ? "active" : "enabled",
|
|
23
22
|
"text"
|
|
24
23
|
)};
|
|
25
24
|
&:hover {
|
|
26
|
-
${(
|
|
27
|
-
|
|
25
|
+
${(l) => l.disabled === !1 && `background-color: ${o(
|
|
26
|
+
l.theme,
|
|
28
27
|
"MenuItem",
|
|
29
|
-
|
|
28
|
+
l.color,
|
|
30
29
|
"hover",
|
|
31
30
|
"background",
|
|
32
31
|
"backgroundOpacity"
|
|
33
32
|
)};`}
|
|
34
33
|
|
|
35
|
-
${(
|
|
36
|
-
|
|
34
|
+
${(l) => l.disabled === !1 && `color: ${o(
|
|
35
|
+
l.theme,
|
|
37
36
|
"MenuItem",
|
|
38
|
-
|
|
37
|
+
l.color,
|
|
39
38
|
"hover",
|
|
40
39
|
"text"
|
|
41
40
|
)};`}
|
|
42
41
|
& .drop-down-icon-lnc {
|
|
43
|
-
${(
|
|
44
|
-
|
|
42
|
+
${(l) => l.disabled === !1 && `color: ${o(
|
|
43
|
+
l.theme,
|
|
45
44
|
"MenuItem",
|
|
46
|
-
|
|
45
|
+
l.color,
|
|
47
46
|
"hover",
|
|
48
47
|
"icon"
|
|
49
48
|
)};`}
|
|
50
49
|
}
|
|
51
50
|
}
|
|
52
|
-
${(
|
|
51
|
+
${(l) => Y(l.theme, "MenuItem", l.size, "enabled")};
|
|
53
52
|
& .drop-down-icon-lnc {
|
|
54
|
-
color: ${(
|
|
55
|
-
|
|
53
|
+
color: ${(l) => l.isActive && l.disabled == !1 ? o(
|
|
54
|
+
l.theme,
|
|
56
55
|
"MenuItem",
|
|
57
|
-
|
|
56
|
+
l.color,
|
|
58
57
|
"focus",
|
|
59
58
|
"icon"
|
|
60
|
-
) :
|
|
61
|
-
|
|
59
|
+
) : o(
|
|
60
|
+
l.theme,
|
|
62
61
|
"MenuItem",
|
|
63
|
-
|
|
62
|
+
l.color,
|
|
64
63
|
"enabled",
|
|
65
64
|
"icon"
|
|
66
65
|
)};
|
|
67
|
-
${(
|
|
66
|
+
${(l) => l.disabled === !0 && v(l.theme)};
|
|
68
67
|
background: transparent;
|
|
69
68
|
}
|
|
70
69
|
& .sub-menu-icon-lnc {
|
|
71
70
|
margin-left: auto;
|
|
72
|
-
transform: ${(
|
|
71
|
+
transform: ${(l) => l.showNested ? "rotate(180deg)" : "rotate(0)"};
|
|
73
72
|
transition: transform 0.25s ease;
|
|
74
73
|
}
|
|
75
|
-
${(
|
|
76
|
-
|
|
74
|
+
${(l) => l.isActive == !0 && l.disabled == !1 && `background-color: ${o(
|
|
75
|
+
l.theme,
|
|
77
76
|
"MenuItem",
|
|
78
|
-
|
|
77
|
+
l.color,
|
|
79
78
|
"focus",
|
|
80
79
|
"background",
|
|
81
80
|
"backgroundOpacity"
|
|
82
81
|
)};
|
|
83
|
-
color: ${
|
|
84
|
-
|
|
82
|
+
color: ${o(
|
|
83
|
+
l.theme,
|
|
85
84
|
"MenuItem",
|
|
86
|
-
|
|
85
|
+
l.color,
|
|
87
86
|
"focus",
|
|
88
87
|
"text"
|
|
89
88
|
)};
|
|
90
89
|
`}
|
|
91
90
|
outline: none;
|
|
92
|
-
${(
|
|
93
|
-
`,
|
|
91
|
+
${(l) => l.disabled === !0 && v(l.theme)};
|
|
92
|
+
`, ee = H((l, s) => {
|
|
94
93
|
const {
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
icon: E,
|
|
94
|
+
active: c = !1,
|
|
95
|
+
icon: y,
|
|
98
96
|
disabled: m = !1,
|
|
99
|
-
isNested:
|
|
100
|
-
showNested:
|
|
97
|
+
isNested: f = !1,
|
|
98
|
+
showNested: N,
|
|
101
99
|
value: w,
|
|
102
100
|
//----------------
|
|
103
|
-
onFocus:
|
|
101
|
+
onFocus: k = () => {
|
|
104
102
|
},
|
|
105
|
-
onBlur:
|
|
103
|
+
onBlur: C = () => {
|
|
106
104
|
},
|
|
107
|
-
onClick:
|
|
105
|
+
onClick: x = () => {
|
|
108
106
|
},
|
|
109
|
-
onKeyDown:
|
|
107
|
+
onKeyDown: A = () => {
|
|
110
108
|
},
|
|
111
|
-
|
|
109
|
+
toggleNested: a = () => {
|
|
112
110
|
},
|
|
113
|
-
|
|
114
|
-
},
|
|
115
|
-
toggleNested: c = () => {
|
|
116
|
-
},
|
|
117
|
-
onItemSelected: v = () => {
|
|
111
|
+
onItemSelected: E = () => {
|
|
118
112
|
},
|
|
119
113
|
//----------------
|
|
120
|
-
color:
|
|
121
|
-
className:
|
|
122
|
-
style:
|
|
123
|
-
size:
|
|
124
|
-
iconProps:
|
|
125
|
-
children:
|
|
126
|
-
...
|
|
127
|
-
} =
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
}, [
|
|
114
|
+
color: M,
|
|
115
|
+
className: S = "",
|
|
116
|
+
style: D = {},
|
|
117
|
+
size: O = "small",
|
|
118
|
+
iconProps: F,
|
|
119
|
+
children: r,
|
|
120
|
+
...P
|
|
121
|
+
} = l, R = { theme: Z(), color: M, style: D, size: O }, h = J(), [z, u] = Q(c);
|
|
122
|
+
W(() => {
|
|
123
|
+
u(c);
|
|
124
|
+
}, [c]);
|
|
131
125
|
const B = (e) => {
|
|
132
|
-
m == !1 && (
|
|
126
|
+
m == !1 && (f && a && a(), E(e, w, r), x(e));
|
|
133
127
|
}, K = (e) => {
|
|
134
|
-
|
|
135
|
-
},
|
|
136
|
-
|
|
128
|
+
u(!0), k(e);
|
|
129
|
+
}, T = (e) => {
|
|
130
|
+
u(!1), C(e);
|
|
137
131
|
}, j = (e) => {
|
|
138
|
-
e.preventDefault(), e.key == "ArrowDown" ?
|
|
139
|
-
},
|
|
132
|
+
e.preventDefault(), e.key == "ArrowDown" ? b(s ? s.current : h.current) : e.key == "ArrowUp" ? g(s ? s.current : h.current) : e.key == "Enter" && m == !1 && (f && a && a(), E(e, w, r)), A(e);
|
|
133
|
+
}, b = (e) => {
|
|
140
134
|
if (e != null && e.nextSibling) {
|
|
141
|
-
let
|
|
142
|
-
if (
|
|
143
|
-
|
|
144
|
-
else if (
|
|
145
|
-
let i =
|
|
135
|
+
let n = p(e);
|
|
136
|
+
if (n != null && n.node && (n == null ? void 0 : n.type) == "item")
|
|
137
|
+
n.node.focus();
|
|
138
|
+
else if (n != null && n.node && (n == null ? void 0 : n.type) == "nested") {
|
|
139
|
+
let i = U(n.node);
|
|
146
140
|
i && i.focus();
|
|
147
|
-
} else e != null && e.parentElement &&
|
|
148
|
-
} else e != null && e.parentElement &&
|
|
141
|
+
} else e != null && e.parentElement && t(e.parentElement, "nested-item-lnc") && b(e.parentElement);
|
|
142
|
+
} else e != null && e.parentElement && t(e.parentElement, "nested-item-lnc") && b(e.parentElement);
|
|
149
143
|
}, g = (e) => {
|
|
150
144
|
if (e != null && e.previousSibling) {
|
|
151
|
-
let
|
|
152
|
-
if (
|
|
153
|
-
|
|
154
|
-
else if (
|
|
155
|
-
let i =
|
|
145
|
+
let n = q(e);
|
|
146
|
+
if (n != null && n.node && (n == null ? void 0 : n.type) == "item")
|
|
147
|
+
n.node.focus();
|
|
148
|
+
else if (n != null && n.node && (n == null ? void 0 : n.type) == "nested") {
|
|
149
|
+
let i = L(n.node);
|
|
156
150
|
i && i.focus();
|
|
157
|
-
} else e != null && e.parentElement &&
|
|
158
|
-
} else e != null && e.parentElement &&
|
|
159
|
-
},
|
|
151
|
+
} else e != null && e.parentElement && t(e.parentElement, "nested-item-lnc") && g(e.parentElement);
|
|
152
|
+
} else e != null && e.parentElement && t(e.parentElement, "nested-item-lnc") && g(e.parentElement);
|
|
153
|
+
}, p = (e) => {
|
|
160
154
|
for (; e = e.nextSibling; ) {
|
|
161
|
-
if (
|
|
155
|
+
if (t(e, "menu-item-lnc"))
|
|
162
156
|
return { node: e, type: "item" };
|
|
163
|
-
if (
|
|
157
|
+
if (t(e, "nested-item-lnc"))
|
|
164
158
|
return { node: e, type: "nested" };
|
|
165
159
|
}
|
|
166
160
|
return null;
|
|
167
|
-
},
|
|
161
|
+
}, q = (e) => {
|
|
168
162
|
for (; e = e.previousSibling; ) {
|
|
169
|
-
if (
|
|
163
|
+
if (t(e, "menu-item-lnc"))
|
|
170
164
|
return { node: e, type: "item" };
|
|
171
|
-
if (
|
|
165
|
+
if (t(e, "nested-item-lnc"))
|
|
172
166
|
return { node: e, type: "nested" };
|
|
173
167
|
}
|
|
174
168
|
return null;
|
|
175
|
-
},
|
|
176
|
-
var
|
|
177
|
-
return (
|
|
178
|
-
},
|
|
179
|
-
var
|
|
180
|
-
return (
|
|
181
|
-
},
|
|
182
|
-
var i = " " + e.className + " ", V = " " +
|
|
169
|
+
}, U = (e) => {
|
|
170
|
+
var n;
|
|
171
|
+
return (n = Array.from(e.querySelectorAll(".menu-item-lnc"))) == null ? void 0 : n[0];
|
|
172
|
+
}, L = (e) => {
|
|
173
|
+
var n;
|
|
174
|
+
return (n = Array.from(e.querySelectorAll(".menu-item-lnc"))) == null ? void 0 : n.pop();
|
|
175
|
+
}, t = (e, n) => {
|
|
176
|
+
var i = " " + e.className + " ", V = " " + n + " ";
|
|
183
177
|
return i.indexOf(V) != -1;
|
|
184
178
|
};
|
|
185
|
-
return /* @__PURE__ */ d(
|
|
186
|
-
|
|
179
|
+
return /* @__PURE__ */ d(_, { children: /* @__PURE__ */ G(
|
|
180
|
+
I,
|
|
187
181
|
{
|
|
188
|
-
ref:
|
|
189
|
-
className: "menu-item-lnc " +
|
|
182
|
+
ref: s || h,
|
|
183
|
+
className: "menu-item-lnc " + S,
|
|
190
184
|
disabled: m,
|
|
191
185
|
tabIndex: 0,
|
|
192
186
|
onKeyDown: j,
|
|
193
187
|
onFocus: K,
|
|
194
|
-
onBlur:
|
|
188
|
+
onBlur: T,
|
|
195
189
|
onClick: B,
|
|
196
190
|
isActive: z,
|
|
197
|
-
showNested:
|
|
198
|
-
...
|
|
199
|
-
...
|
|
191
|
+
showNested: N,
|
|
192
|
+
...R,
|
|
193
|
+
...P,
|
|
200
194
|
children: [
|
|
201
|
-
|
|
202
|
-
/* @__PURE__ */ d("div", { className: "menu-item-text-lnc", children:
|
|
203
|
-
|
|
195
|
+
y && /* @__PURE__ */ d($, { icon: y, className: "drop-down-icon-lnc", ...F }),
|
|
196
|
+
/* @__PURE__ */ d("div", { className: "menu-item-text-lnc", children: r }),
|
|
197
|
+
f && /* @__PURE__ */ d($, { icon: "angle-down", className: "sub-menu-icon-lnc" })
|
|
204
198
|
]
|
|
205
199
|
}
|
|
206
200
|
) });
|
|
207
201
|
});
|
|
208
|
-
|
|
209
|
-
active: l.bool,
|
|
210
|
-
icon: l.string,
|
|
211
|
-
disabled: l.bool,
|
|
212
|
-
isNested: l.bool,
|
|
213
|
-
value: l.any,
|
|
214
|
-
//---------------------------------------------------------------
|
|
215
|
-
onBlur: l.func,
|
|
216
|
-
onFocus: l.func,
|
|
217
|
-
onClick: l.func,
|
|
218
|
-
onKeyDown: l.func,
|
|
219
|
-
onMouseEnter: l.func,
|
|
220
|
-
onMouseLeave: l.func,
|
|
221
|
-
//---------------------------------------------------------------
|
|
222
|
-
className: l.string,
|
|
223
|
-
style: l.object,
|
|
224
|
-
color: l.oneOf([
|
|
225
|
-
"primary",
|
|
226
|
-
"secondary",
|
|
227
|
-
"success",
|
|
228
|
-
"warning",
|
|
229
|
-
"danger",
|
|
230
|
-
"information",
|
|
231
|
-
"neutral",
|
|
232
|
-
"gray"
|
|
233
|
-
]),
|
|
234
|
-
iconProps: l.any,
|
|
235
|
-
size: l.oneOf(["small", "medium", "large"]),
|
|
236
|
-
__TYPE__: l.string
|
|
237
|
-
};
|
|
238
|
-
$.displayName = "MENU_ITEM";
|
|
202
|
+
ee.displayName = "MENU_ITEM";
|
|
239
203
|
export {
|
|
240
|
-
|
|
204
|
+
ee as default
|
|
241
205
|
};
|
package/dist/DropdownLookup.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const
|
|
1
|
+
"use strict";const ie=require("react/jsx-runtime"),e=require("react"),F=require("./emotion-element-f0de968e.browser.esm-B7k6i6lC.cjs"),s=require("./CustomStyles-C86XQqBE.cjs"),ce=require("./defineProperty-CqVRDJI8.cjs");require("./index-41nUb2kP.cjs");const pe=require("./index-Cp66dWMi.cjs");function le(t){const a=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const n in t)if(n!=="default"){const u=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(a,n,u.get?u:{enumerable:!0,get:()=>t[n]})}}return a.default=t,Object.freeze(a)}const de=le(e);var fe=["defaultOptions","cacheOptions","loadOptions","options","isLoading","onInputChange","filterOption"];function Se(t){var a=t.defaultOptions,n=a===void 0?!1:a,u=t.cacheOptions,i=u===void 0?!1:u,f=t.loadOptions;t.options;var c=t.isLoading,A=c===void 0?!1:c,y=t.onInputChange,h=t.filterOption,C=h===void 0?null:h,g=s._objectWithoutProperties(t,fe),m=g.inputValue,o=e.useRef(void 0),p=e.useRef(!1),S=e.useState(Array.isArray(n)?n:void 0),l=s._slicedToArray(S,2),W=l[0],R=l[1],B=e.useState(typeof m<"u"?m:""),D=s._slicedToArray(B,2),V=D[0],I=D[1],G=e.useState(n===!0),x=s._slicedToArray(G,2),H=x[0],_=x[1],J=e.useState(void 0),E=s._slicedToArray(J,2),T=E[0],j=E[1],K=e.useState([]),w=s._slicedToArray(K,2),Q=w[0],L=w[1],U=e.useState(!1),$=s._slicedToArray(U,2),X=$[0],b=$[1],Y=e.useState({}),M=s._slicedToArray(Y,2),O=M[0],k=M[1],Z=e.useState(void 0),z=s._slicedToArray(Z,2),ee=z[0],te=z[1],ne=e.useState(void 0),N=s._slicedToArray(ne,2),se=N[0],re=N[1];i!==se&&(k({}),re(i)),n!==ee&&(R(Array.isArray(n)?n:void 0),te(n)),e.useEffect(function(){return p.current=!0,function(){p.current=!1}},[]);var P=e.useCallback(function(v,d){if(!f)return d();var r=f(v,d);r&&typeof r.then=="function"&&r.then(d,function(){return d()})},[f]);e.useEffect(function(){n===!0&&P(V,function(v){p.current&&(R(v||[]),_(!!o.current))})},[]);var ae=e.useCallback(function(v,d){var r=s.handleInputChange(v,d,y);if(!r){o.current=void 0,I(""),j(""),L([]),_(!1),b(!1);return}if(i&&O[r])I(r),j(r),L(O[r]),_(!1),b(!1);else{var oe=o.current={};I(r),_(!0),b(!T),P(r,function(q){p&&oe===o.current&&(o.current=void 0,_(!1),j(r),L(q||[]),b(!1),k(q?s._objectSpread2(s._objectSpread2({},O),{},ce._defineProperty({},r,q)):O))})}},[i,P,T,O,y]),ue=X?[]:V&&T?Q:W||[];return s._objectSpread2(s._objectSpread2({},g),{},{options:ue,isLoading:H||A,onInputChange:ae,filterOption:C})}var _e=e.forwardRef(function(t,a){var n=Se(t),u=s.useStateManager(n);return de.createElement(s.Select,F._extends({ref:a},u))}),Oe=_e;const ve=e.forwardRef((t,a)=>{const{styles:n,debounceTime:u=0,isSearchable:i=!0,isClearable:f=!0,onInputChange:c,size:A="small",color:y="primary",className:h="",style:C={},...g}=t,m=F.useTheme(),o=e.useCallback(pe.debounce((S,l)=>{c==null||c(S,l)},u)),p=(S,l)=>{o(S,l)};return ie.jsx(Oe,{ref:a,styles:n||s.customStyles,size:A,color:y,theme:m,isSearchable:i,isClearable:f,onInputChange:p,className:h,style:C,...g})});module.exports=ve;
|