@luminati-io/uikit 6.3.139 → 6.3.140
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/index.js +24 -24
- package/dist/index.js.map +1 -1
- package/dist/umd/uikit.development.js +74 -11
- package/dist/umd/uikit.development.js.map +1 -1
- package/dist/umd/uikit.production.min.js +24 -24
- package/package.json +1 -1
|
@@ -48095,9 +48095,10 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
48095
48095
|
/* harmony import */ var _clear_indicator__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./clear_indicator */ "./src/input/dropdown/clear_indicator.js");
|
|
48096
48096
|
/* harmony import */ var _dropdown_indicator__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./dropdown_indicator */ "./src/input/dropdown/dropdown_indicator.js");
|
|
48097
48097
|
/* harmony import */ var _group__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./group */ "./src/input/dropdown/group.js");
|
|
48098
|
-
/* harmony import */ var
|
|
48099
|
-
/* harmony import */ var
|
|
48100
|
-
/* harmony import */ var
|
|
48098
|
+
/* harmony import */ var _input__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./input */ "./src/input/dropdown/input.js");
|
|
48099
|
+
/* harmony import */ var _menu_list__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./menu_list */ "./src/input/dropdown/menu_list.js");
|
|
48100
|
+
/* harmony import */ var _option__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./option */ "./src/input/dropdown/option.js");
|
|
48101
|
+
/* harmony import */ var _value_container__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./value_container */ "./src/input/dropdown/value_container.js");
|
|
48101
48102
|
// LICENSE_CODE ZON
|
|
48102
48103
|
|
|
48103
48104
|
|
|
@@ -48115,6 +48116,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
48115
48116
|
|
|
48116
48117
|
|
|
48117
48118
|
|
|
48119
|
+
|
|
48118
48120
|
var buildComponents = function buildComponents(props) {
|
|
48119
48121
|
var _props$components$Opt, _props$components;
|
|
48120
48122
|
var components = _objectSpread({
|
|
@@ -48125,13 +48127,16 @@ var buildComponents = function buildComponents(props) {
|
|
|
48125
48127
|
optionHeight: props.optionHeight,
|
|
48126
48128
|
defaultValue: props.defaultValue,
|
|
48127
48129
|
formatOptionLabel: props.formatOptionLabel,
|
|
48128
|
-
Option: (_props$components$Opt = (_props$components = props.components) === null || _props$components === void 0 ? void 0 : _props$components.Option) !== null && _props$components$Opt !== void 0 ? _props$components$Opt :
|
|
48129
|
-
}) :
|
|
48130
|
+
Option: (_props$components$Opt = (_props$components = props.components) === null || _props$components === void 0 ? void 0 : _props$components.Option) !== null && _props$components$Opt !== void 0 ? _props$components$Opt : _option__WEBPACK_IMPORTED_MODULE_6__.Option
|
|
48131
|
+
}) : _menu_list__WEBPACK_IMPORTED_MODULE_5__.MenuList,
|
|
48130
48132
|
Group: _group__WEBPACK_IMPORTED_MODULE_3__.Group,
|
|
48131
|
-
Option:
|
|
48133
|
+
Option: _option__WEBPACK_IMPORTED_MODULE_6__.Option
|
|
48132
48134
|
}, props.components);
|
|
48133
48135
|
if (props.autosize === false && props.multiselect && components.ValueContainer === undefined) {
|
|
48134
|
-
components.ValueContainer =
|
|
48136
|
+
components.ValueContainer = _value_container__WEBPACK_IMPORTED_MODULE_7__.ValueContainer;
|
|
48137
|
+
}
|
|
48138
|
+
if (props.controlShouldRenderValue === false && components.Input === undefined) {
|
|
48139
|
+
components.Input = _input__WEBPACK_IMPORTED_MODULE_4__.VisibleInput;
|
|
48135
48140
|
}
|
|
48136
48141
|
return components;
|
|
48137
48142
|
};
|
|
@@ -48216,8 +48221,14 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
48216
48221
|
|
|
48217
48222
|
|
|
48218
48223
|
/*jslint react:true*/
|
|
48224
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
48219
48225
|
var _excluded = ["id", "label", "labelIcon", "labelVariant", "labelTooltip", "required", "necessityIndicator", "placeholder", "multiselect", "creatable", "clearable", "disabled", "invalid", "helperText", "className", "classNamePrefix", "hideSelectedOptions", "isOptionDisabled", "async", "searchable", "closeMenuOnSelect", "size", "menuPlacement", "menuPortalTarget", "styles"];
|
|
48220
48226
|
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
|
48227
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
48228
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
48229
|
+
function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
|
48230
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
48231
|
+
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
48221
48232
|
function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var s = Object.getOwnPropertySymbols(e); for (r = 0; r < s.length; r++) o = s[r], t.includes(o) || {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
|
|
48222
48233
|
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (e.includes(n)) continue; t[n] = r[n]; } return t; }
|
|
48223
48234
|
function _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }
|
|
@@ -48244,7 +48255,7 @@ var defaultIsOptionDisabled = function defaultIsOptionDisabled(opt) {
|
|
|
48244
48255
|
return opt.disabled;
|
|
48245
48256
|
};
|
|
48246
48257
|
var Dropdown = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().forwardRef(function (props, forwardRef) {
|
|
48247
|
-
var _splitProps = (0,_util__WEBPACK_IMPORTED_MODULE_8__.splitProps)(props, 'autoFocus', 'blurInputOnSelect', 'filterOption', 'formatOptionLabel', 'value', 'defaultValue', 'options', 'onChange', 'onFocus', 'onBlur', 'onChangeCapture', 'onInputChange', 'getOptionValue', 'getOptionLabel', 'isOptionSelected', 'isLoading', 'loadOptions', 'defaultOptions', 'cacheOptions', 'onCreateOption', 'formatCreateLabel', 'isValidNewOption', 'getNewOptionData', 'onMenuOpen', 'onMenuClose', 'openMenuOnFocus', 'menuIsOpen', 'noOptionsMessage', 'minMenuHeight', 'maxMenuHeight'),
|
|
48258
|
+
var _splitProps = (0,_util__WEBPACK_IMPORTED_MODULE_8__.splitProps)(props, 'autoFocus', 'blurInputOnSelect', 'filterOption', 'formatOptionLabel', 'value', 'defaultValue', 'options', 'onChange', 'onFocus', 'onBlur', 'onChangeCapture', 'onInputChange', 'inputValue', 'controlShouldRenderValue', 'getOptionValue', 'getOptionLabel', 'isOptionSelected', 'isLoading', 'loadOptions', 'defaultOptions', 'cacheOptions', 'onCreateOption', 'formatCreateLabel', 'isValidNewOption', 'getNewOptionData', 'onMenuOpen', 'onMenuClose', 'openMenuOnFocus', 'menuIsOpen', 'noOptionsMessage', 'minMenuHeight', 'maxMenuHeight'),
|
|
48248
48259
|
_splitProps2 = _slicedToArray(_splitProps, 2),
|
|
48249
48260
|
selectProps = _splitProps2[0],
|
|
48250
48261
|
restProps = _splitProps2[1];
|
|
@@ -48288,6 +48299,22 @@ var Dropdown = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().forward
|
|
|
48288
48299
|
async: async,
|
|
48289
48300
|
creatable: creatable
|
|
48290
48301
|
});
|
|
48302
|
+
var onInputChange = selectProps.onInputChange,
|
|
48303
|
+
value = selectProps.value,
|
|
48304
|
+
getOptionLabel = selectProps.getOptionLabel;
|
|
48305
|
+
var handle_input_change = (0,react__WEBPACK_IMPORTED_MODULE_1__.useCallback)(function (input_value, meta) {
|
|
48306
|
+
var _selectProps$getOptio, _selectProps$getOptio2;
|
|
48307
|
+
var is_blurred = meta.action === 'input-blur';
|
|
48308
|
+
if (!is_blurred) {
|
|
48309
|
+
var _selectProps$onInputC;
|
|
48310
|
+
(_selectProps$onInputC = selectProps.onInputChange) === null || _selectProps$onInputC === void 0 || _selectProps$onInputC.call(selectProps, input_value, meta);
|
|
48311
|
+
return;
|
|
48312
|
+
}
|
|
48313
|
+
var next_value = value ? (_selectProps$getOptio = (_selectProps$getOptio2 = selectProps.getOptionLabel) === null || _selectProps$getOptio2 === void 0 ? void 0 : _selectProps$getOptio2.call(selectProps, value)) !== null && _selectProps$getOptio !== void 0 ? _selectProps$getOptio : value.label : '';
|
|
48314
|
+
onInputChange === null || onInputChange === void 0 || onInputChange(next_value, _objectSpread(_objectSpread({}, meta), {}, {
|
|
48315
|
+
action: 'input-change'
|
|
48316
|
+
}));
|
|
48317
|
+
}, [onInputChange, value, getOptionLabel]);
|
|
48291
48318
|
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_layout__WEBPACK_IMPORTED_MODULE_6__.Flex, _extends({
|
|
48292
48319
|
ref: forwardRef,
|
|
48293
48320
|
"data-testid": "dropdown",
|
|
@@ -48324,7 +48351,8 @@ var Dropdown = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().forward
|
|
|
48324
48351
|
hideSelectedOptions: (0,_util__WEBPACK_IMPORTED_MODULE_8__.firstDefined)(props.autosize === false ? false : undefined, hideSelectedOptions),
|
|
48325
48352
|
isOptionDisabled: (0,_util__WEBPACK_IMPORTED_MODULE_8__.firstDefined)(isOptionDisabled, defaultIsOptionDisabled),
|
|
48326
48353
|
menuPlacement: menuPlacement,
|
|
48327
|
-
menuPortalTarget: menuPortalTarget
|
|
48354
|
+
menuPortalTarget: menuPortalTarget,
|
|
48355
|
+
onInputChange: handle_input_change
|
|
48328
48356
|
})), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_shared__WEBPACK_IMPORTED_MODULE_9__.HelperText, {
|
|
48329
48357
|
invalid: invalid
|
|
48330
48358
|
}, helperText));
|
|
@@ -48359,6 +48387,10 @@ Dropdown.propTypes = {
|
|
|
48359
48387
|
autosize: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool),
|
|
48360
48388
|
hideSelectedOptions: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool),
|
|
48361
48389
|
onInputChange: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().func),
|
|
48390
|
+
/** Controlled value of the search input */
|
|
48391
|
+
inputValue: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string),
|
|
48392
|
+
/** Whether to render the selected value in the control */
|
|
48393
|
+
controlShouldRenderValue: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool),
|
|
48362
48394
|
getOptionValue: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().func),
|
|
48363
48395
|
getOptionLabel: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().func),
|
|
48364
48396
|
isOptionDisabled: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().func),
|
|
@@ -48598,6 +48630,37 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
48598
48630
|
_dropdown__WEBPACK_IMPORTED_MODULE_0__.Dropdown.Embedded = _embedded_dropdown__WEBPACK_IMPORTED_MODULE_1__.EmbeddedDropdown;
|
|
48599
48631
|
|
|
48600
48632
|
|
|
48633
|
+
/***/ }),
|
|
48634
|
+
|
|
48635
|
+
/***/ "./src/input/dropdown/input.js":
|
|
48636
|
+
/*!*************************************!*\
|
|
48637
|
+
!*** ./src/input/dropdown/input.js ***!
|
|
48638
|
+
\*************************************/
|
|
48639
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
48640
|
+
|
|
48641
|
+
"use strict";
|
|
48642
|
+
__webpack_require__.r(__webpack_exports__);
|
|
48643
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
48644
|
+
/* harmony export */ VisibleInput: () => (/* binding */ VisibleInput)
|
|
48645
|
+
/* harmony export */ });
|
|
48646
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
|
|
48647
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
|
48648
|
+
/* harmony import */ var react_select__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react-select */ "./node_modules/react-select/dist/index-641ee5b8.esm.js");
|
|
48649
|
+
// LICENSE_CODE ZON
|
|
48650
|
+
|
|
48651
|
+
|
|
48652
|
+
/*jslint react:true*/
|
|
48653
|
+
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
|
48654
|
+
|
|
48655
|
+
|
|
48656
|
+
|
|
48657
|
+
// xxx alexeyvo: react-select hides the input after select
|
|
48658
|
+
var VisibleInput = function VisibleInput(props) {
|
|
48659
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(react_select__WEBPACK_IMPORTED_MODULE_1__.c.Input, _extends({}, props, {
|
|
48660
|
+
isHidden: false
|
|
48661
|
+
}));
|
|
48662
|
+
};
|
|
48663
|
+
|
|
48601
48664
|
/***/ }),
|
|
48602
48665
|
|
|
48603
48666
|
/***/ "./src/input/dropdown/menu_list.js":
|
|
@@ -56143,14 +56206,14 @@ ProgressBar.propTypes = {
|
|
|
56143
56206
|
var ProgressBarWrapper = styled_components__WEBPACK_IMPORTED_MODULE_3___default().div.withConfig({
|
|
56144
56207
|
displayName: "ProgressBarWrapper",
|
|
56145
56208
|
componentId: "sc-k8bgfd-0"
|
|
56146
|
-
})(["background-color:", ";border-radius:30px;height:6px;"], function (_ref2) {
|
|
56209
|
+
})(["background-color:", ";border-radius:30px;height:6px;-webkit-print-color-adjust:exact !important;print-color-adjust:exact !important;"], function (_ref2) {
|
|
56147
56210
|
var color = _ref2.theme.color;
|
|
56148
56211
|
return color.bg_fill_secondary;
|
|
56149
56212
|
});
|
|
56150
56213
|
var ProgressBarFill = styled_components__WEBPACK_IMPORTED_MODULE_3___default().div.withConfig({
|
|
56151
56214
|
displayName: "ProgressBarFill",
|
|
56152
56215
|
componentId: "sc-k8bgfd-1"
|
|
56153
|
-
})(["background-color:", ";border-radius:30px;width:", "%;height:100
|
|
56216
|
+
})(["background-color:", ";border-radius:30px;width:", "%;height:100%;-webkit-print-color-adjust:exact !important;print-color-adjust:exact !important;"], function (_ref3) {
|
|
56154
56217
|
var themeColor = _ref3.theme.color,
|
|
56155
56218
|
$color = _ref3.$color;
|
|
56156
56219
|
return themeColor[$color] || $color || themeColor.bg_fill_primary_hover;
|