@lanaco/lnc-react-ui 4.0.198 → 4.0.200
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/Accordion.cjs +5 -5
- package/dist/Accordion.js +45 -56
- package/dist/AccordionDetails.cjs +3 -3
- package/dist/AccordionDetails.js +11 -25
- package/dist/AccordionSummary.cjs +4 -4
- package/dist/AccordionSummary.js +34 -44
- package/dist/ActionsToolbar.cjs +2 -3
- package/dist/ActionsToolbar.js +83 -135
- package/dist/Alert.cjs +10 -10
- package/dist/Alert.js +32 -64
- package/dist/Avatar.cjs +9 -9
- package/dist/Avatar.js +33 -72
- package/dist/Badge.cjs +6 -6
- package/dist/Badge.js +22 -47
- package/dist/BlogCategoryCardsSection.cjs +1 -1
- package/dist/BlogCategoryCardsSection.js +12 -14
- package/dist/BlogExploreSection.cjs +1 -1
- package/dist/BlogExploreSection.js +1 -1
- package/dist/BlogsSectionWithFilters.cjs +1 -1
- package/dist/BlogsSectionWithFilters.js +1 -1
- package/dist/Breadcrumbs.cjs +5 -5
- package/dist/Breadcrumbs.js +57 -87
- package/dist/Button.cjs +11 -11
- package/dist/Button.js +126 -173
- package/dist/ButtonGroup.cjs +8 -8
- package/dist/ButtonGroup.js +37 -49
- package/dist/CalorieCalculatorSection.cjs +8 -8
- package/dist/CalorieCalculatorSection.js +90 -97
- package/dist/CheckBoxInput.cjs +1 -1
- package/dist/CheckBoxInput.js +2 -5
- package/dist/Chip.cjs +14 -14
- package/dist/Chip.js +73 -111
- package/dist/ConfirmationForm.cjs +6 -6
- package/dist/ConfirmationForm.js +67 -109
- package/dist/ContactSection.cjs +1 -0
- package/dist/ContactSection.js +1 -0
- package/dist/Content.cjs +1 -1
- package/dist/Content.js +7 -15
- package/dist/{DailyMotion-ByXblnua.js → DailyMotion-BBcJkMo_.js} +1 -1
- package/dist/{DailyMotion-BaFUcQKQ.cjs → DailyMotion-CpZExcrg.cjs} +1 -1
- package/dist/DataView.cjs +1 -1
- package/dist/DataView.js +30 -50
- package/dist/DateInput.cjs +4 -4
- package/dist/DateInput.js +1347 -1383
- package/dist/DecimalInput.cjs +6 -6
- package/dist/DecimalInput.js +210 -263
- package/dist/DecimalInputV2.cjs +23 -23
- package/dist/DecimalInputV2.js +119 -176
- package/dist/DetailedProductsInfinitiveSection.cjs +1 -1
- package/dist/DetailedProductsInfinitiveSection.js +1 -1
- package/dist/DetailedProductsSection.cjs +1 -1
- package/dist/DetailedProductsSection.js +1 -1
- package/dist/DetailsView.cjs +9 -9
- package/dist/DetailsView.js +111 -162
- package/dist/DoubleRangeSlider.cjs +22 -22
- package/dist/DoubleRangeSlider.js +70 -95
- package/dist/DragAndDropFile.cjs +10 -10
- package/dist/DragAndDropFile.js +347 -402
- package/dist/DragDropFiles.cjs +4 -4
- package/dist/DragDropFiles.js +70 -124
- package/dist/Drawer.cjs +5 -5
- package/dist/Drawer.js +97 -135
- package/dist/Dropdown.cjs +1 -1
- package/dist/Dropdown.js +44 -213
- package/dist/DropdownItem.cjs +14 -14
- package/dist/DropdownItem.js +106 -142
- package/dist/DropdownLookup.cjs +1 -1
- package/dist/DropdownLookup.js +61 -242
- package/dist/DropdownMenu.cjs +4 -4
- package/dist/DropdownMenu.js +87 -149
- package/dist/EditableTable.cjs +10 -10
- package/dist/EditableTable.js +165 -331
- package/dist/{Facebook-BCqiOWZO.js → Facebook-BSWPEXjA.js} +1 -1
- package/dist/{Facebook-D9wwecSW.cjs → Facebook-DoKw-XxT.cjs} +1 -1
- package/dist/FaqSection.cjs +3 -3
- package/dist/FaqSection.js +119 -153
- package/dist/FileInput.cjs +7 -7
- package/dist/FileInput.js +66 -94
- package/dist/{FilePlayer-ktaNhf3p.js → FilePlayer-BtGpIWnK.js} +1 -1
- package/dist/{FilePlayer-DB6jnpeC.cjs → FilePlayer-D9az_lc_.cjs} +1 -1
- package/dist/FlexBox.cjs +6 -6
- package/dist/FlexBox.js +28 -63
- package/dist/FlexGrid.cjs +1 -1
- package/dist/FlexGrid.js +27 -67
- package/dist/FlexGridItem.cjs +6 -6
- package/dist/FlexGridItem.js +34 -62
- package/dist/Footer.cjs +1 -1
- package/dist/Footer.js +7 -15
- package/dist/FormField.cjs +7 -7
- package/dist/FormField.js +22 -47
- package/dist/FormView.cjs +6 -6
- package/dist/FormView.js +148 -195
- package/dist/Grid.cjs +2 -2
- package/dist/Grid.js +40 -65
- package/dist/GridItem.cjs +2 -2
- package/dist/GridItem.js +47 -80
- package/dist/Header.cjs +1 -1
- package/dist/Header.js +7 -15
- package/dist/HelpBannerSection.cjs +3 -3
- package/dist/HelpBannerSection.js +9 -15
- package/dist/Icon.cjs +4 -4
- package/dist/Icon.js +29 -55
- package/dist/IconButton.cjs +9 -9
- package/dist/IconButton.js +89 -127
- package/dist/{Kaltura-CvlN0HDg.js → Kaltura-BDqlEQpd.js} +1 -1
- package/dist/{Kaltura-CCdXLzOa.cjs → Kaltura-CK6JHUZC.cjs} +1 -1
- package/dist/Kanban.cjs +7 -7
- package/dist/Kanban.js +2033 -2098
- package/dist/KanbanActionsToolbar.cjs +4 -5
- package/dist/KanbanActionsToolbar.js +61 -96
- package/dist/KanbanCard-B9V9EjVE.js +137 -0
- package/dist/KanbanCard-DihrKn-I.cjs +30 -0
- package/dist/KanbanCard.cjs +1 -1
- package/dist/KanbanCard.js +2 -3
- package/dist/KanbanFooter.cjs +3 -3
- package/dist/KanbanFooter.js +37 -55
- package/dist/KanbanHeader.cjs +4 -4
- package/dist/KanbanHeader.js +49 -81
- package/dist/KanbanView.cjs +2 -2
- package/dist/KanbanView.js +106 -173
- package/dist/Link.cjs +7 -7
- package/dist/Link.js +20 -37
- package/dist/LocationSearchSection.cjs +1 -1
- package/dist/LocationSearchSection.js +1 -1
- package/dist/MasonryGeneralCardsSection.cjs +1 -1
- package/dist/MasonryGeneralCardsSection.js +1 -1
- package/dist/MenuItem.cjs +13 -13
- package/dist/MenuItem.js +101 -139
- package/dist/{Mixcloud-nG_VyBNt.cjs → Mixcloud-C1Boh2Bm.cjs} +1 -1
- package/dist/{Mixcloud-Bb8MTclI.js → Mixcloud-zAh6j7Ha.js} +1 -1
- package/dist/Modal.cjs +18 -19
- package/dist/Modal.js +131 -166
- package/dist/MultiSelectDropdown.cjs +1 -1
- package/dist/MultiSelectDropdown.js +25 -196
- package/dist/MultiSelectDropdownLookup.cjs +1 -1
- package/dist/MultiSelectDropdownLookup.js +27 -209
- package/dist/{Mux-DfYpGTiP.js → Mux-BGTG_Tvc.js} +1 -1
- package/dist/{Mux-BgB2a8kM.cjs → Mux-C6TwZeaq.cjs} +1 -1
- package/dist/NestedDropdownItem.cjs +3 -3
- package/dist/NestedDropdownItem.js +45 -67
- package/dist/NestedMenuItem.cjs +5 -5
- package/dist/NestedMenuItem.js +51 -78
- package/dist/NotificationContainer.cjs +10 -10
- package/dist/NotificationContainer.js +46 -79
- package/dist/NotificationMessage.cjs +2 -2
- package/dist/NotificationMessage.js +47 -64
- package/dist/NumberInput.cjs +23 -23
- package/dist/NumberInput.js +89 -149
- package/dist/PageLayout.cjs +2 -2
- package/dist/PageLayout.js +20 -28
- package/dist/Pagination.cjs +3 -3
- package/dist/Pagination.js +102 -185
- package/dist/PasswordInput.cjs +23 -23
- package/dist/PasswordInput.js +108 -137
- package/dist/Popover.cjs +1 -1
- package/dist/Popover.js +7 -32
- package/dist/PopoverContent.cjs +5 -5
- package/dist/PopoverContent.js +22 -28
- package/dist/PopoverTrigger.cjs +1 -1
- package/dist/PopoverTrigger.js +7 -12
- package/dist/ProgressBar.cjs +8 -8
- package/dist/ProgressBar.js +32 -59
- package/dist/RadioGroup.cjs +3 -3
- package/dist/RadioGroup.js +41 -72
- package/dist/RadioInput.cjs +28 -28
- package/dist/RadioInput.js +78 -123
- package/dist/RangeSlider.cjs +19 -19
- package/dist/RangeSlider.js +92 -119
- package/dist/ReviewsSection.cjs +13 -13
- package/dist/ReviewsSection.js +81 -101
- package/dist/SalesCampaignsSection.cjs +19 -19
- package/dist/SalesCampaignsSection.js +283 -324
- package/dist/SearchBar.cjs +10 -10
- package/dist/SearchBar.js +168 -188
- package/dist/SearchSection-B94YN_6P.cjs +161 -0
- package/dist/{SearchSection-DDQ_K98T.js → SearchSection-DAaMecR4.js} +337 -359
- package/dist/SearchSection.cjs +1 -1
- package/dist/SearchSection.js +2 -3
- package/dist/Separator.cjs +3 -3
- package/dist/Separator.js +14 -19
- package/dist/Sidebar.cjs +4 -5
- package/dist/Sidebar.js +33 -56
- package/dist/SimpleCategoriesSection.cjs +1 -1
- package/dist/SimpleCategoriesSection.js +1 -1
- package/dist/{SoundCloud-C86xwUG6.cjs → SoundCloud-C6R6E6Zc.cjs} +1 -1
- package/dist/{SoundCloud-DG91z39R.js → SoundCloud-lO8wg_0s.js} +1 -1
- package/dist/Spinner.cjs +18 -18
- package/dist/Spinner.js +37 -54
- package/dist/StatsSection.cjs +6 -6
- package/dist/StatsSection.js +15 -25
- package/dist/{Streamable-4uAnb3WN.cjs → Streamable-DZO95CiT.cjs} +1 -1
- package/dist/{Streamable-BAIWLgyD.js → Streamable-Dwa5ZEK4.js} +1 -1
- package/dist/Surface.cjs +4 -4
- package/dist/Surface.js +19 -34
- package/dist/SwipeableDrawer.cjs +8 -8
- package/dist/SwipeableDrawer.js +84 -136
- package/dist/TabItem.cjs +11 -11
- package/dist/TabItem.js +83 -118
- package/dist/Table.cjs +65 -65
- package/dist/Table.js +786 -1167
- package/dist/TableView.cjs +2 -2
- package/dist/TableView.js +113 -197
- package/dist/Tabs.cjs +4 -4
- package/dist/Tabs.js +41 -60
- package/dist/TextAreaInput.cjs +14 -14
- package/dist/TextAreaInput.js +131 -181
- package/dist/TextInput.cjs +23 -23
- package/dist/TextInput.js +78 -126
- package/dist/ThemeProvider.cjs +5 -5
- package/dist/ThemeProvider.js +35 -39
- package/dist/TimeInput.cjs +7 -7
- package/dist/TimeInput.js +46 -72
- package/dist/Toggle.cjs +20 -20
- package/dist/Toggle.js +78 -109
- package/dist/ToggleSection.cjs +6 -5
- package/dist/ToggleSection.js +49 -55
- package/dist/TreeMenu.cjs +5 -5
- package/dist/TreeMenu.js +43 -67
- package/dist/TreeMenuSeparator.cjs +3 -3
- package/dist/TreeMenuSeparator.js +12 -20
- package/dist/{Twitch-CVAj24ti.cjs → Twitch-B17oKtD0.cjs} +1 -1
- package/dist/{Twitch-DfXeW5Xs.js → Twitch-C73-dwWo.js} +1 -1
- package/dist/UploadedFile.cjs +11 -11
- package/dist/UploadedFile.js +73 -99
- package/dist/{Vidyard-De3pges0.js → Vidyard-B6GdBHsM.js} +1 -1
- package/dist/{Vidyard-DaCcaaH4.cjs → Vidyard-s1MMcaRm.cjs} +1 -1
- package/dist/{Vimeo-8wXdCXGs.cjs → Vimeo-J1l_SU2E.cjs} +1 -1
- package/dist/{Vimeo-N6I2qi_h.js → Vimeo-kzHz4Gco.js} +1 -1
- package/dist/{Wistia-BrUzHQoq.cjs → Wistia-CudQyDHM.cjs} +1 -1
- package/dist/{Wistia-dlV6n6tO.js → Wistia-w4jnqd7y.js} +1 -1
- package/dist/{YouTube-Cfsj4ZaP.cjs → YouTube-BAYKouHS.cjs} +1 -1
- package/dist/{YouTube-DNJxWqRm.js → YouTube-BKyipPZx.js} +1 -1
- package/dist/index-BdKi2ogu.js +39 -0
- package/dist/index-CRk3vcd4.cjs +95 -0
- package/dist/index-CX2A-q39.cjs +4 -0
- package/dist/{index-CWALXP1T.js → index-CwMCk9wV.js} +118 -145
- package/dist/index.cjs +1 -1
- package/dist/index.js +2 -2
- package/dist/{tag-BtS5lWJ0.js → tag-Dm8CW4TM.js} +21 -27
- package/dist/{tag-CmeZsPQt.cjs → tag-UQjq2_Ba.cjs} +7 -7
- package/package.json +1 -1
- package/dist/KanbanCard-68kSAXL6.js +0 -175
- package/dist/KanbanCard-BDvoqTDS.cjs +0 -30
- package/dist/SearchSection-BcbHP6QF.cjs +0 -161
- package/dist/index-Be-_NM9Q.cjs +0 -4
- package/dist/index-C0LcDEqa.js +0 -47
- package/dist/index-CSNxZFTX.cjs +0 -95
package/dist/Dropdown.js
CHANGED
|
@@ -1,32 +1,30 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import { _ as C, u as x } from "./emotion-element-f0de968e.browser.esm-CkCiQliQ.js";
|
|
1
|
+
import { jsx as y } from "react/jsx-runtime";
|
|
2
|
+
import * as g from "react";
|
|
3
|
+
import { forwardRef as m, useCallback as x } from "react";
|
|
4
|
+
import { u as h, S as v, a as C } from "./CustomStyles-DtWxboEM.js";
|
|
5
|
+
import { c as A } from "./CustomStyles-DtWxboEM.js";
|
|
6
|
+
import { _ as M, u as w } from "./emotion-element-f0de968e.browser.esm-CkCiQliQ.js";
|
|
8
7
|
import "./index-B1vKwsDE.js";
|
|
9
|
-
import { d as
|
|
10
|
-
var T = /* @__PURE__ */
|
|
11
|
-
var
|
|
12
|
-
return /* @__PURE__ */
|
|
13
|
-
ref:
|
|
14
|
-
},
|
|
15
|
-
}),
|
|
16
|
-
const
|
|
8
|
+
import { d as R } from "./index-Dt62UGku.js";
|
|
9
|
+
var T = /* @__PURE__ */ m(function(t, r) {
|
|
10
|
+
var e = h(t);
|
|
11
|
+
return /* @__PURE__ */ g.createElement(v, M({
|
|
12
|
+
ref: r
|
|
13
|
+
}, e));
|
|
14
|
+
}), _ = T;
|
|
15
|
+
const P = m((t, r) => {
|
|
17
16
|
const {
|
|
18
17
|
// options,
|
|
19
|
-
styles:
|
|
20
|
-
debounceTime:
|
|
21
|
-
name: j,
|
|
18
|
+
styles: e,
|
|
19
|
+
debounceTime: c = 0,
|
|
22
20
|
// hideSelectedOptions,
|
|
23
21
|
// id,
|
|
24
22
|
// inputId,
|
|
25
23
|
// value,
|
|
26
24
|
// readOnly,
|
|
27
25
|
// tabIndex,
|
|
28
|
-
isSearchable:
|
|
29
|
-
isClearable:
|
|
26
|
+
isSearchable: l = !0,
|
|
27
|
+
isClearable: n = !0,
|
|
30
28
|
// isLoading,
|
|
31
29
|
// isRtl,
|
|
32
30
|
// isDisabled,
|
|
@@ -64,203 +62,36 @@ const V = t((n, a) => {
|
|
|
64
62
|
// onMenuClose,
|
|
65
63
|
// onBlur,
|
|
66
64
|
// onFocus,
|
|
67
|
-
size:
|
|
68
|
-
color:
|
|
69
|
-
className:
|
|
70
|
-
style:
|
|
65
|
+
size: i = "small",
|
|
66
|
+
color: u = "primary",
|
|
67
|
+
className: p = "",
|
|
68
|
+
style: f = {},
|
|
71
69
|
// children,
|
|
72
|
-
...
|
|
73
|
-
} =
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
70
|
+
...S
|
|
71
|
+
} = t, d = w(), b = x(
|
|
72
|
+
R((s, o) => {
|
|
73
|
+
a == null || a(s, o);
|
|
74
|
+
}, c)
|
|
75
|
+
), a = (s, o) => {
|
|
76
|
+
b(s, o);
|
|
77
|
+
};
|
|
78
|
+
return /* @__PURE__ */ y(
|
|
79
|
+
_,
|
|
80
80
|
{
|
|
81
|
-
ref:
|
|
82
|
-
styles:
|
|
83
|
-
size:
|
|
84
|
-
color:
|
|
85
|
-
theme:
|
|
86
|
-
isSearchable:
|
|
87
|
-
isClearable:
|
|
88
|
-
className:
|
|
89
|
-
style:
|
|
90
|
-
...
|
|
81
|
+
ref: r,
|
|
82
|
+
styles: e || C,
|
|
83
|
+
size: i,
|
|
84
|
+
color: u,
|
|
85
|
+
theme: d,
|
|
86
|
+
isSearchable: l,
|
|
87
|
+
isClearable: n,
|
|
88
|
+
className: p,
|
|
89
|
+
style: f,
|
|
90
|
+
...S
|
|
91
91
|
}
|
|
92
92
|
);
|
|
93
93
|
});
|
|
94
|
-
V.propTypes = {
|
|
95
|
-
options: e.array,
|
|
96
|
-
styles: e.object,
|
|
97
|
-
debounceTime: e.number,
|
|
98
|
-
name: e.string,
|
|
99
|
-
value: e.any,
|
|
100
|
-
/**
|
|
101
|
-
* Sets the tabIndex attribute on the input
|
|
102
|
-
*/
|
|
103
|
-
tabIndex: e.number,
|
|
104
|
-
/**
|
|
105
|
-
* Whether to enable search functionality
|
|
106
|
-
*/
|
|
107
|
-
isSearchable: e.bool,
|
|
108
|
-
isClearable: e.bool,
|
|
109
|
-
/**
|
|
110
|
-
* Is the select in a state of loading (async)
|
|
111
|
-
*/
|
|
112
|
-
isLoading: e.bool,
|
|
113
|
-
/**
|
|
114
|
-
* Is the select direction right-to-left
|
|
115
|
-
*/
|
|
116
|
-
isRtl: e.bool,
|
|
117
|
-
isDisabled: e.bool,
|
|
118
|
-
readOnly: e.bool,
|
|
119
|
-
/**
|
|
120
|
-
* Close the select menu when the user selects an option
|
|
121
|
-
*/
|
|
122
|
-
closeMenuOnSelect: e.bool,
|
|
123
|
-
/**
|
|
124
|
-
* If true, close the select menu when the user scrolls the document/body.
|
|
125
|
-
* If a function, takes a standard javascript ScrollEvent you return a boolean:
|
|
126
|
-
* true => The menu closes
|
|
127
|
-
* false => The menu stays open
|
|
128
|
-
* This is useful when you have a scrollable modal and want to portal the menu out, but want to avoid graphical issues.
|
|
129
|
-
*/
|
|
130
|
-
closeMenuOnScroll: e.oneOfType([e.bool, e.func]),
|
|
131
|
-
/**
|
|
132
|
-
* Clear all values when the user presses escape AND the menu is closed
|
|
133
|
-
*/
|
|
134
|
-
escapeClearsValue: e.bool,
|
|
135
|
-
/**
|
|
136
|
-
* Custom method to filter whether an option should be displayed in the menu. Type: `null` or `() => boolean`
|
|
137
|
-
*/
|
|
138
|
-
filterOption: e.func,
|
|
139
|
-
/**
|
|
140
|
-
* Formats group labels in the menu as React components
|
|
141
|
-
*/
|
|
142
|
-
formatGroupLabel: e.func,
|
|
143
|
-
/**
|
|
144
|
-
* Formats option labels in the menu and control as React components
|
|
145
|
-
*/
|
|
146
|
-
formatOptionLabel: e.func,
|
|
147
|
-
/**
|
|
148
|
-
* Resolves option data to a string to be displayed as the label by components
|
|
149
|
-
* Note: Failure to resolve to a string type can interfere with filtering and screen reader support.
|
|
150
|
-
*/
|
|
151
|
-
getOptionLabel: e.func,
|
|
152
|
-
/**
|
|
153
|
-
* Resolves option data to a string to compare options and specify value attributes
|
|
154
|
-
*/
|
|
155
|
-
getOptionValue: e.func,
|
|
156
|
-
/**
|
|
157
|
-
* Hide the selected option from the menu
|
|
158
|
-
*/
|
|
159
|
-
hideSelectedOptions: e.bool,
|
|
160
|
-
/**
|
|
161
|
-
* The id to set on the SelectContainer component
|
|
162
|
-
*/
|
|
163
|
-
id: e.any,
|
|
164
|
-
/**
|
|
165
|
-
* The id of the search input
|
|
166
|
-
*/
|
|
167
|
-
inputid: e.any,
|
|
168
|
-
/**
|
|
169
|
-
* Override the built-in logic to detect whether an option is disabled. `(...) => boolean`
|
|
170
|
-
*/
|
|
171
|
-
isOptionDisabled: e.func,
|
|
172
|
-
/**
|
|
173
|
-
* Override the built-in logic to detect whether an option is selected. `(...) => boolean`
|
|
174
|
-
*/
|
|
175
|
-
isOptionSelected: e.func,
|
|
176
|
-
/**
|
|
177
|
-
* Async: Text to display when loading options `(...) => ...`
|
|
178
|
-
*/
|
|
179
|
-
loadingMessage: e.func,
|
|
180
|
-
/**
|
|
181
|
-
* Minimum height of the menu before flipping
|
|
182
|
-
*/
|
|
183
|
-
minMenuHeight: e.number,
|
|
184
|
-
/**
|
|
185
|
-
* Maximum height of the menu before flipping
|
|
186
|
-
*/
|
|
187
|
-
maxMenuHeight: e.number,
|
|
188
|
-
/**
|
|
189
|
-
* Default placement of the menu in relation to the control. 'auto' will flip when there isn't enough space below the control.
|
|
190
|
-
*/
|
|
191
|
-
menuPlacement: e.oneOf(["bottom", "auto", "top"]),
|
|
192
|
-
/**
|
|
193
|
-
*The CSS position value of the menu, when "fixed" extra layout management is required.
|
|
194
|
-
*/
|
|
195
|
-
menuPosition: e.oneOf(["absolute", "fixed"]),
|
|
196
|
-
/**
|
|
197
|
-
* Whether to block scroll events when the menu is open
|
|
198
|
-
*/
|
|
199
|
-
menuShouldBlockScroll: e.bool,
|
|
200
|
-
/**
|
|
201
|
-
* Whether the menu should be scrolled into view when it opens
|
|
202
|
-
*/
|
|
203
|
-
menuShouldScrollIntoView: e.bool,
|
|
204
|
-
/**
|
|
205
|
-
* Allows control of whether the menu is opened when the Select is focused
|
|
206
|
-
*/
|
|
207
|
-
openMenuOnFocus: e.bool,
|
|
208
|
-
/**
|
|
209
|
-
* Allows control of whether the menu is opened when the Select is clicked
|
|
210
|
-
*/
|
|
211
|
-
openMenuOnClick: e.bool,
|
|
212
|
-
//----
|
|
213
|
-
autoFocus: e.bool,
|
|
214
|
-
placeholder: e.any,
|
|
215
|
-
noOptionsMessage: e.string,
|
|
216
|
-
menuIsOpen: e.bool,
|
|
217
|
-
/**
|
|
218
|
-
* This complex object includes all the compositional components that are used in react-select. If you wish to overwrite a component, pass in an object with the appropriate namespace.
|
|
219
|
-
* If you only wish to restyle a component, we recommend using the styles prop instead.
|
|
220
|
-
*/
|
|
221
|
-
components: e.object,
|
|
222
|
-
/**
|
|
223
|
-
* initial value of the control
|
|
224
|
-
*/
|
|
225
|
-
defaultValue: e.any,
|
|
226
|
-
/**
|
|
227
|
-
* initial value of the search input
|
|
228
|
-
*/
|
|
229
|
-
defaultInputValue: e.string,
|
|
230
|
-
/**
|
|
231
|
-
* initial open value of the menu
|
|
232
|
-
*/
|
|
233
|
-
defaultMenuIsOpen: e.bool,
|
|
234
|
-
/**
|
|
235
|
-
* Delimiter used to join multiple values into a single HTML Input value
|
|
236
|
-
*/
|
|
237
|
-
delimiter: e.string,
|
|
238
|
-
//---------------------------------------------------------------
|
|
239
|
-
onChange: e.func,
|
|
240
|
-
/**
|
|
241
|
-
* control the value of the search input (changing this will update the available options)
|
|
242
|
-
*/
|
|
243
|
-
onInputChange: e.func,
|
|
244
|
-
onMenuOpen: e.func,
|
|
245
|
-
onMenuClose: e.func,
|
|
246
|
-
onFocus: e.func,
|
|
247
|
-
onBlur: e.func,
|
|
248
|
-
//---------------------------------------------------------------
|
|
249
|
-
className: e.string,
|
|
250
|
-
style: e.object,
|
|
251
|
-
color: e.oneOf([
|
|
252
|
-
"primary",
|
|
253
|
-
"secondary",
|
|
254
|
-
"success",
|
|
255
|
-
"warning",
|
|
256
|
-
"danger",
|
|
257
|
-
"information",
|
|
258
|
-
"neutral",
|
|
259
|
-
"gray"
|
|
260
|
-
]),
|
|
261
|
-
size: e.oneOf(["small", "medium", "large"])
|
|
262
|
-
};
|
|
263
94
|
export {
|
|
264
|
-
|
|
265
|
-
|
|
95
|
+
A as components,
|
|
96
|
+
P as default
|
|
266
97
|
};
|
package/dist/DropdownItem.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
"use strict";const
|
|
1
|
+
"use strict";const a=require("react/jsx-runtime"),d=require("react"),H=require("./emotion-styled.browser.esm-BtEseadx.cjs"),$=require("./Icon.cjs"),t=require("./utils-RnrgDDZP.cjs"),J=require("./emotion-element-f0de968e.browser.esm-B7k6i6lC.cjs"),Q=H.styled.div`
|
|
2
2
|
box-sizing: border-box;
|
|
3
|
-
cursor: ${
|
|
3
|
+
cursor: ${l=>l.disabled==!1?"pointer":"context-menu"};
|
|
4
4
|
width: 100%;
|
|
5
5
|
border-radius: 6px;
|
|
6
6
|
display: flex;
|
|
@@ -8,29 +8,29 @@
|
|
|
8
8
|
min-height: 2.25rem;
|
|
9
9
|
gap: 0.563rem;
|
|
10
10
|
padding: 0.563rem;
|
|
11
|
-
color: ${
|
|
11
|
+
color: ${l=>t.getColorRgbaValue(l.theme,"MenuItem",l.color,l.isActive===!0?"active":"enabled","text")};
|
|
12
12
|
&:hover {
|
|
13
|
-
${
|
|
13
|
+
${l=>l.disabled===!1&&`background-color: ${t.getColorRgbaValue(l.theme,"MenuItem",l.color,"hover","background","backgroundOpacity")};`}
|
|
14
14
|
|
|
15
|
-
${
|
|
15
|
+
${l=>l.disabled===!1&&`color: ${t.getColorRgbaValue(l.theme,"MenuItem",l.color,"hover","text")};`}
|
|
16
16
|
& .drop-down-icon-lnc {
|
|
17
|
-
${
|
|
17
|
+
${l=>l.disabled===!1&&`color: ${t.getColorRgbaValue(l.theme,"MenuItem",l.color,"hover","icon")};`}
|
|
18
18
|
}
|
|
19
19
|
}
|
|
20
|
-
${
|
|
20
|
+
${l=>t.getComponentTypographyCss(l.theme,"MenuItem",l.size,"enabled")};
|
|
21
21
|
& .drop-down-icon-lnc {
|
|
22
|
-
color: ${
|
|
23
|
-
${
|
|
22
|
+
color: ${l=>l.isActive&&l.disabled==!1?t.getColorRgbaValue(l.theme,"MenuItem",l.color,"focus","icon"):t.getColorRgbaValue(l.theme,"MenuItem",l.color,"enabled","icon")};
|
|
23
|
+
${l=>l.disabled===!0&&t.getDisabledStateCss(l.theme)};
|
|
24
24
|
background: transparent;
|
|
25
25
|
}
|
|
26
26
|
& .sub-menu-icon-lnc {
|
|
27
27
|
margin-left: auto;
|
|
28
|
-
transform: ${
|
|
28
|
+
transform: ${l=>l.showNested?"rotate(180deg)":"rotate(0)"};
|
|
29
29
|
transition: transform 0.25s ease;
|
|
30
30
|
}
|
|
31
|
-
${
|
|
32
|
-
color: ${
|
|
31
|
+
${l=>l.isActive==!0&&l.disabled==!1&&`background-color: ${t.getColorRgbaValue(l.theme,"MenuItem",l.color,"focus","background","backgroundOpacity")};
|
|
32
|
+
color: ${t.getColorRgbaValue(l.theme,"MenuItem",l.color,"focus","text")};
|
|
33
33
|
`}
|
|
34
34
|
outline: none;
|
|
35
|
-
${
|
|
36
|
-
`,
|
|
35
|
+
${l=>l.disabled===!0&&t.getDisabledStateCss(l.theme)};
|
|
36
|
+
`,x=d.forwardRef((l,i)=>{const{active:m=!1,icon:C,disabled:f=!1,isNested:r=!1,showNested:v,value:w,onFocus:N=()=>{},onBlur:k=()=>{},onClick:R=()=>{},onKeyDown:A=()=>{},toggleNested:c=()=>{},onItemSelected:E=()=>{},color:M,className:S="",style:q={},size:D="small",iconProps:V,children:u,...O}=l,j={theme:J.useTheme(),color:M,style:q,size:D},b=d.useRef(),[F,g]=d.useState(m);d.useEffect(()=>{g(m)},[m]);const _=e=>{f==!1&&(r&&c&&c(),E(e,w,u),R(e))},P=e=>{g(!0),N(e)},z=e=>{g(!1),k(e)},B=e=>{e.preventDefault(),e.key=="ArrowDown"?h(i?i.current:b.current):e.key=="ArrowUp"?y(i?i.current:b.current):e.key=="Enter"&&f==!1&&(r&&c&&c(),E(e,w,u)),A(e)},h=e=>{if(e!=null&&e.nextSibling){let n=K(e);if(n!=null&&n.node&&(n==null?void 0:n.type)=="item")n.node.focus();else if(n!=null&&n.node&&(n==null?void 0:n.type)=="nested"){let s=U(n.node);s&&s.focus()}else e!=null&&e.parentElement&&o(e.parentElement,"nested-item-lnc")&&h(e.parentElement)}else e!=null&&e.parentElement&&o(e.parentElement,"nested-item-lnc")&&h(e.parentElement)},y=e=>{if(e!=null&&e.previousSibling){let n=T(e);if(n!=null&&n.node&&(n==null?void 0:n.type)=="item")n.node.focus();else if(n!=null&&n.node&&(n==null?void 0:n.type)=="nested"){let s=L(n.node);s&&s.focus()}else e!=null&&e.parentElement&&o(e.parentElement,"nested-item-lnc")&&y(e.parentElement)}else e!=null&&e.parentElement&&o(e.parentElement,"nested-item-lnc")&&y(e.parentElement)},K=e=>{for(;e=e.nextSibling;){if(o(e,"menu-item-lnc"))return{node:e,type:"item"};if(o(e,"nested-item-lnc"))return{node:e,type:"nested"}}return null},T=e=>{for(;e=e.previousSibling;){if(o(e,"menu-item-lnc"))return{node:e,type:"item"};if(o(e,"nested-item-lnc"))return{node:e,type:"nested"}}return null},U=e=>{var n;return(n=Array.from(e.querySelectorAll(".menu-item-lnc")))==null?void 0:n[0]},L=e=>{var n;return(n=Array.from(e.querySelectorAll(".menu-item-lnc")))==null?void 0:n.pop()},o=(e,n)=>{var s=" "+e.className+" ",G=" "+n+" ";return s.indexOf(G)!=-1};return a.jsx(a.Fragment,{children:a.jsxs(Q,{ref:i||b,className:"menu-item-lnc "+S,disabled:f,tabIndex:0,onKeyDown:B,onFocus:P,onBlur:z,onClick:_,isActive:F,showNested:v,...j,...O,children:[C&&a.jsx($,{icon:C,className:"drop-down-icon-lnc",...V}),a.jsx("div",{className:"menu-item-text-lnc",children:u}),r&&a.jsx($,{icon:"angle-down",className:"sub-menu-icon-lnc"})]})})});x.displayName="MENU_ITEM";module.exports=x;
|