@luminati-io/uikit 3.2.1 → 3.2.3
Sign up to get free protection for your applications and to get access to all the features.
@@ -37423,7 +37423,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
37423
37423
|
|
37424
37424
|
|
37425
37425
|
/*jslint react:true*/
|
37426
|
-
var _excluded = ["label", "labelIcon", "required", "value", "defaultValue", "placeholder", "options", "onChange", "onFocus", "onBlur", "multiselect", "creatable", "clearable", "disabled", "invalid", "helperText", "className", "onChangeCapture", "menuPortalTarget", "filterOption", "formatOptionLabel", "menuPlacement", "hideSelectedOptions", "onInputChange", "getOptionValue", "getOptionLabel", "isOptionDisabled", "isOptionSelected", "async", "isLoading", "loadOptions", "defaultOptions", "cacheOptions", "onCreateOption", "formatCreateLabel", "isValidNewOption", "getNewOptionData"];
|
37426
|
+
var _excluded = ["label", "labelIcon", "required", "value", "defaultValue", "placeholder", "options", "onChange", "onFocus", "onBlur", "multiselect", "creatable", "clearable", "disabled", "invalid", "helperText", "className", "classNamePrefix", "onChangeCapture", "menuPortalTarget", "filterOption", "formatOptionLabel", "menuPlacement", "hideSelectedOptions", "onInputChange", "getOptionValue", "getOptionLabel", "isOptionDisabled", "isOptionSelected", "async", "isLoading", "loadOptions", "defaultOptions", "cacheOptions", "onCreateOption", "formatCreateLabel", "isValidNewOption", "getNewOptionData", "autoFocus", "blurInputOnSelect", "onMenuOpen", "onMenuClose", "searchable", "openMenuOnFocus"];
|
37427
37427
|
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
37428
37428
|
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
37429
37429
|
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
@@ -37458,6 +37458,7 @@ var Dropdown = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().forward
|
|
37458
37458
|
invalid = props.invalid,
|
37459
37459
|
helperText = props.helperText,
|
37460
37460
|
className = props.className,
|
37461
|
+
classNamePrefix = props.classNamePrefix,
|
37461
37462
|
onChangeCapture = props.onChangeCapture,
|
37462
37463
|
menuPortalTarget = props.menuPortalTarget,
|
37463
37464
|
filterOption = props.filterOption,
|
@@ -37478,6 +37479,12 @@ var Dropdown = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().forward
|
|
37478
37479
|
formatCreateLabel = props.formatCreateLabel,
|
37479
37480
|
isValidNewOption = props.isValidNewOption,
|
37480
37481
|
getNewOptionData = props.getNewOptionData,
|
37482
|
+
autoFocus = props.autoFocus,
|
37483
|
+
blurInputOnSelect = props.blurInputOnSelect,
|
37484
|
+
onMenuOpen = props.onMenuOpen,
|
37485
|
+
onMenuClose = props.onMenuClose,
|
37486
|
+
searchable = props.searchable,
|
37487
|
+
openMenuOnFocus = props.openMenuOnFocus,
|
37481
37488
|
rest = _objectWithoutProperties(props, _excluded);
|
37482
37489
|
var labelId = (0,_hooks__WEBPACK_IMPORTED_MODULE_5__.useLabelId)(props.id);
|
37483
37490
|
var t = (0,_translation__WEBPACK_IMPORTED_MODULE_7__.useTranslate)();
|
@@ -37507,6 +37514,8 @@ var Dropdown = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().forward
|
|
37507
37514
|
labelIcon: labelIcon,
|
37508
37515
|
required: required
|
37509
37516
|
}), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(SelectComp, {
|
37517
|
+
autoFocus: autoFocus,
|
37518
|
+
blurInputOnSelect: blurInputOnSelect,
|
37510
37519
|
filterOption: filterOption,
|
37511
37520
|
formatOptionLabel: formatOptionLabel,
|
37512
37521
|
"aria-labelledby": label ? labelId : undefined,
|
@@ -37527,7 +37536,7 @@ var Dropdown = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().forward
|
|
37527
37536
|
className: (0,_utils__WEBPACK_IMPORTED_MODULE_8__.classNames)(className, {
|
37528
37537
|
container: true
|
37529
37538
|
}),
|
37530
|
-
classNamePrefix:
|
37539
|
+
classNamePrefix: classNamePrefix,
|
37531
37540
|
menuPortalTarget: menuPortalTarget,
|
37532
37541
|
onChangeCapture: onChangeCapture,
|
37533
37542
|
closeMenuOnSelect: !multiselect,
|
@@ -37545,7 +37554,11 @@ var Dropdown = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().forward
|
|
37545
37554
|
onCreateOption: onCreateOption,
|
37546
37555
|
formatCreateLabel: formatCreateLabel,
|
37547
37556
|
isValidNewOption: isValidNewOption,
|
37548
|
-
getNewOptionData: getNewOptionData
|
37557
|
+
getNewOptionData: getNewOptionData,
|
37558
|
+
onMenuOpen: onMenuOpen,
|
37559
|
+
onMenuClose: onMenuClose,
|
37560
|
+
isSearchable: searchable,
|
37561
|
+
openMenuOnFocus: openMenuOnFocus
|
37549
37562
|
}), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_shared__WEBPACK_IMPORTED_MODULE_9__.HelperText, {
|
37550
37563
|
invalid: invalid
|
37551
37564
|
}, helperText));
|
@@ -37571,7 +37584,7 @@ Dropdown.propTypes = {
|
|
37571
37584
|
multiselect: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool),
|
37572
37585
|
clearable: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool),
|
37573
37586
|
creatable: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool),
|
37574
|
-
|
37587
|
+
classNamePrefix: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string),
|
37575
37588
|
menuPlacement: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOf(['bottom', 'auto', 'top']),
|
37576
37589
|
virtualized: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool),
|
37577
37590
|
autosize: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool),
|
@@ -37591,7 +37604,13 @@ Dropdown.propTypes = {
|
|
37591
37604
|
onCreateOption: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().func),
|
37592
37605
|
formatCreateLabel: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().func),
|
37593
37606
|
isValidNewOption: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().func),
|
37594
|
-
getNewOptionData: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().func)
|
37607
|
+
getNewOptionData: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().func),
|
37608
|
+
autoFocus: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool),
|
37609
|
+
blurInputOnSelect: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool),
|
37610
|
+
onMenuOpen: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().func),
|
37611
|
+
onMenuClose: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().func),
|
37612
|
+
searchable: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool),
|
37613
|
+
openMenuOnFocus: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool)
|
37595
37614
|
};
|
37596
37615
|
Dropdown.defaultProps = {
|
37597
37616
|
size: 'sm',
|