@luminati-io/uikit 3.1.8 → 3.1.9

Sign up to get free protection for your applications and to get access to all the features.
@@ -23978,7 +23978,7 @@ __webpack_require__.r(__webpack_exports__);
23978
23978
  /* harmony export */ });
23979
23979
  /* harmony import */ var lodash_isObject__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/isObject */ "./node_modules/lodash/isObject.js");
23980
23980
  /* harmony import */ var lodash_isObject__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_isObject__WEBPACK_IMPORTED_MODULE_0__);
23981
- /* harmony import */ var date_fns_format__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! date-fns/format */ "./node_modules/date-fns/esm/format/index.js");
23981
+ /* harmony import */ var date_fns_format__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! date-fns/format */ "./node_modules/date-fns/esm/format/index.js");
23982
23982
  /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! prop-types */ "prop-types");
23983
23983
  /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
23984
23984
  /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! react */ "react");
@@ -23991,6 +23991,7 @@ __webpack_require__.r(__webpack_exports__);
23991
23991
  /* harmony import */ var _typography__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../typography */ "./src/typography/index.js");
23992
23992
  /* harmony import */ var _date_picker__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./date_picker */ "./src/input/date_picker.js");
23993
23993
  /* harmony import */ var _dropdown__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./dropdown */ "./src/input/dropdown/index.js");
23994
+ /* harmony import */ var _dropdown_menu_list__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./dropdown/menu_list */ "./src/input/dropdown/menu_list.js");
23994
23995
  // LICENSE_CODE ZON
23995
23996
 
23996
23997
 
@@ -24014,15 +24015,16 @@ function _extends() { _extends = Object.assign ? Object.assign.bind() : function
24014
24015
 
24015
24016
 
24016
24017
 
24018
+
24017
24019
  var CompareTo = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().forwardRef(function (props, ref) {
24018
24020
  var formatOptionLabel = (0,react__WEBPACK_IMPORTED_MODULE_2__.useCallback)(function (opt) {
24019
24021
  if (opt && lodash_isObject__WEBPACK_IMPORTED_MODULE_0___default()(opt)) {
24020
- var text = opt.value != 'custom' ? opt.label : (0,date_fns_format__WEBPACK_IMPORTED_MODULE_11__["default"])(opt.from, props.format);
24022
+ var text = opt.value != 'custom' ? opt.label : (0,date_fns_format__WEBPACK_IMPORTED_MODULE_12__["default"])(opt.from, props.format);
24021
24023
  return "".concat(props.placeholder, " ").concat(text);
24022
24024
  }
24023
24025
  return '';
24024
24026
  }, [props.format, props.placeholder]);
24025
- return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(_dropdown__WEBPACK_IMPORTED_MODULE_10__["default"], _extends({}, props, {
24027
+ return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(_dropdown__WEBPACK_IMPORTED_MODULE_10__.Dropdown, _extends({}, props, {
24026
24028
  options: props.options || [],
24027
24029
  formatOptionLabel: props.formatOptionLabel || formatOptionLabel,
24028
24030
  components: {
@@ -24060,7 +24062,7 @@ var CompareToMenuList = function CompareToMenuList(props) {
24060
24062
  setValue(value, opt);
24061
24063
  setIsCustom(false);
24062
24064
  };
24063
- return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement((react__WEBPACK_IMPORTED_MODULE_2___default().Fragment), null, !isCustom && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(_dropdown__WEBPACK_IMPORTED_MODULE_10__.MenuList, props, children, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(_menu__WEBPACK_IMPORTED_MODULE_6__["default"].Item, {
24065
+ return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement((react__WEBPACK_IMPORTED_MODULE_2___default().Fragment), null, !isCustom && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(_dropdown_menu_list__WEBPACK_IMPORTED_MODULE_11__.MenuList, props, children, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(_menu__WEBPACK_IMPORTED_MODULE_6__["default"].Item, {
24064
24066
  type: "item",
24065
24067
  className: cx({
24066
24068
  option: true
@@ -24552,7 +24554,7 @@ __webpack_require__.r(__webpack_exports__);
24552
24554
 
24553
24555
 
24554
24556
  /*jslint react:true*/
24555
- var _excluded = ["label", "labelIcon", "required", "value", "defaultValue", "placeholder", "options", "onChange", "onFocus", "onBlur", "multiselect", "creatable", "onCreateOption", "clearable", "disabled", "invalid", "helperText", "classNamePrefix", "onChangeCapture", "menuPortalTarget", "filterOption", "formatOptionLabel", "menuPlacement", "hideSelectedOptions", "onInputChange", "getOptionValue", "getOptionLabel", "isOptionDisabled", "isOptionSelected", "async", "isLoading", "loadOptions"];
24557
+ var _excluded = ["label", "labelIcon", "required", "value", "defaultValue", "placeholder", "options", "onChange", "onFocus", "onBlur", "multiselect", "creatable", "clearable", "disabled", "invalid", "helperText", "classNamePrefix", "onChangeCapture", "menuPortalTarget", "filterOption", "formatOptionLabel", "menuPlacement", "hideSelectedOptions", "onInputChange", "getOptionValue", "getOptionLabel", "isOptionDisabled", "isOptionSelected", "async", "isLoading", "loadOptions", "onCreateOption", "formatCreateLabel", "isValidNewOption", "getNewOptionData"];
24556
24558
  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); }
24557
24559
  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; }
24558
24560
  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; }
@@ -24582,7 +24584,6 @@ var Dropdown = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().forward
24582
24584
  onBlur = props.onBlur,
24583
24585
  multiselect = props.multiselect,
24584
24586
  creatable = props.creatable,
24585
- onCreateOption = props.onCreateOption,
24586
24587
  clearable = props.clearable,
24587
24588
  disabled = props.disabled,
24588
24589
  invalid = props.invalid,
@@ -24602,6 +24603,10 @@ var Dropdown = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().forward
24602
24603
  async = props.async,
24603
24604
  isLoading = props.isLoading,
24604
24605
  loadOptions = props.loadOptions,
24606
+ onCreateOption = props.onCreateOption,
24607
+ formatCreateLabel = props.formatCreateLabel,
24608
+ isValidNewOption = props.isValidNewOption,
24609
+ getNewOptionData = props.getNewOptionData,
24605
24610
  rest = _objectWithoutProperties(props, _excluded);
24606
24611
  var labelId = (0,_hooks__WEBPACK_IMPORTED_MODULE_5__.useLabelId)(props.id);
24607
24612
  var t = (0,_translation__WEBPACK_IMPORTED_MODULE_7__.useTranslate)();
@@ -24643,7 +24648,6 @@ var Dropdown = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().forward
24643
24648
  onBlur: onBlur,
24644
24649
  isMulti: multiselect,
24645
24650
  isClearable: clearable,
24646
- onCreateOption: onCreateOption,
24647
24651
  isDisabled: disabled,
24648
24652
  required: required,
24649
24653
  styles: styles,
@@ -24660,7 +24664,11 @@ var Dropdown = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().forward
24660
24664
  isOptionDisabled: _isOptionDisabled,
24661
24665
  isOptionSelected: isOptionSelected,
24662
24666
  isLoading: isLoading,
24663
- loadOptions: loadOptions
24667
+ loadOptions: loadOptions,
24668
+ onCreateOption: onCreateOption,
24669
+ formatCreateLabel: formatCreateLabel,
24670
+ isValidNewOption: isValidNewOption,
24671
+ getNewOptionData: getNewOptionData
24664
24672
  }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_shared__WEBPACK_IMPORTED_MODULE_9__.HelperText, {
24665
24673
  invalid: invalid
24666
24674
  }, helperText));
@@ -24674,7 +24682,7 @@ Dropdown.propTypes = {
24674
24682
  onChange: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().func),
24675
24683
  onFocus: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().func),
24676
24684
  onBlur: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().func),
24677
- placeholder: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string),
24685
+ placeholder: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().node),
24678
24686
  disabled: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool),
24679
24687
  required: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool),
24680
24688
  invalid: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool),
@@ -24686,7 +24694,6 @@ Dropdown.propTypes = {
24686
24694
  multiselect: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool),
24687
24695
  clearable: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool),
24688
24696
  creatable: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool),
24689
- onCreateOption: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().func),
24690
24697
  classNamePrefix: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string),
24691
24698
  menuPlacement: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOf(['bottom', 'auto', 'top']),
24692
24699
  virtualized: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool),
@@ -24701,7 +24708,11 @@ Dropdown.propTypes = {
24701
24708
  isLoading: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool),
24702
24709
  loadOptions: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().func),
24703
24710
  components: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().object),
24704
- styles: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().object)
24711
+ styles: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().object),
24712
+ onCreateOption: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().func),
24713
+ formatCreateLabel: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().func),
24714
+ isValidNewOption: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().func),
24715
+ getNewOptionData: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().func)
24705
24716
  };
24706
24717
  Dropdown.defaultProps = {
24707
24718
  size: 'sm',
@@ -24906,19 +24917,15 @@ var Group = function Group(props) {
24906
24917
  "use strict";
24907
24918
  __webpack_require__.r(__webpack_exports__);
24908
24919
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
24909
- /* harmony export */ MenuList: () => (/* reexport safe */ _menu_list__WEBPACK_IMPORTED_MODULE_1__.MenuList),
24910
- /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
24920
+ /* harmony export */ Dropdown: () => (/* reexport safe */ _dropdown__WEBPACK_IMPORTED_MODULE_0__.Dropdown)
24911
24921
  /* harmony export */ });
24912
24922
  /* harmony import */ var _dropdown__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./dropdown */ "./src/input/dropdown/dropdown.js");
24913
- /* harmony import */ var _menu_list__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./menu_list */ "./src/input/dropdown/menu_list.js");
24914
24923
  // LICENSE_CODE ZON
24915
24924
 
24916
24925
 
24917
24926
  /*jslint react:true*/
24918
24927
 
24919
24928
 
24920
- /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (_dropdown__WEBPACK_IMPORTED_MODULE_0__.Dropdown);
24921
-
24922
24929
  /***/ }),
24923
24930
 
24924
24931
  /***/ "./src/input/dropdown/menu_list.js":
@@ -25585,9 +25592,9 @@ __webpack_require__.r(__webpack_exports__);
25585
25592
  /* harmony export */ Checkbox: () => (/* reexport safe */ _checkbox__WEBPACK_IMPORTED_MODULE_0__["default"]),
25586
25593
  /* harmony export */ CompareTo: () => (/* reexport safe */ _compare_to__WEBPACK_IMPORTED_MODULE_1__["default"]),
25587
25594
  /* harmony export */ DatePicker: () => (/* reexport safe */ _date_picker__WEBPACK_IMPORTED_MODULE_2__["default"]),
25588
- /* harmony export */ Dropdown: () => (/* reexport safe */ _dropdown__WEBPACK_IMPORTED_MODULE_3__["default"]),
25595
+ /* harmony export */ Dropdown: () => (/* reexport safe */ _dropdown__WEBPACK_IMPORTED_MODULE_3__.Dropdown),
25589
25596
  /* harmony export */ Number: () => (/* reexport safe */ _number__WEBPACK_IMPORTED_MODULE_4__["default"]),
25590
- /* harmony export */ RadioGroup: () => (/* reexport safe */ _radio_group__WEBPACK_IMPORTED_MODULE_5__["default"]),
25597
+ /* harmony export */ RadioGroup: () => (/* reexport safe */ _radio_group__WEBPACK_IMPORTED_MODULE_5__.RadioGroup),
25591
25598
  /* harmony export */ Textarea: () => (/* reexport safe */ _textarea__WEBPACK_IMPORTED_MODULE_6__["default"]),
25592
25599
  /* harmony export */ Textbox: () => (/* reexport safe */ _textbox__WEBPACK_IMPORTED_MODULE_7__["default"]),
25593
25600
  /* harmony export */ Toggle: () => (/* reexport safe */ _toggle__WEBPACK_IMPORTED_MODULE_8__["default"])
@@ -25731,7 +25738,7 @@ var NumberField = styled_components__WEBPACK_IMPORTED_MODULE_2___default().input
25731
25738
  "use strict";
25732
25739
  __webpack_require__.r(__webpack_exports__);
25733
25740
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
25734
- /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
25741
+ /* harmony export */ RadioGroup: () => (/* binding */ RadioGroup)
25735
25742
  /* harmony export */ });
25736
25743
  /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! prop-types */ "prop-types");
25737
25744
  /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_0__);
@@ -25903,7 +25910,7 @@ Radio.propTypes = {
25903
25910
  value: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().any),
25904
25911
  checked: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool),
25905
25912
  onClick: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().func),
25906
- label: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_0___default().string), (prop_types__WEBPACK_IMPORTED_MODULE_0___default().func)]),
25913
+ label: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().node),
25907
25914
  disabled: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool),
25908
25915
  verticalAlign: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOf(['top', 'middle', 'bottom']),
25909
25916
  size: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOf(['sm', 'md'])
@@ -25958,7 +25965,6 @@ var RadioControl = styled_components__WEBPACK_IMPORTED_MODULE_2___default().div.
25958
25965
  }
25959
25966
  return (0,styled_components__WEBPACK_IMPORTED_MODULE_2__.css)(["border-color:", ";background-color:", ";&:after{background-color:", ";}&:hover{border-color:", ";background-color:", ";}&:hover:after{background-color:", ";}&:active{border-color:", ";background-color:", ";", "}&:active:after{background-color:", ";}"], borderColor, backgroundColor, beforeColor, hoverBorderColor, hoverBackgroundColor, hoverBeforeColor, activeBorderColor, activeBackgroundColor, activeOutlineColor && "box-shadow: 0 0 0 3px ".concat(activeOutlineColor, ";"), activeBeforeColor);
25960
25967
  });
25961
- /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (RadioGroup);
25962
25968
 
25963
25969
  /***/ }),
25964
25970
 
@@ -26160,7 +26166,7 @@ var InputLabel = function InputLabel(props) {
26160
26166
  };
26161
26167
  InputLabel.displayName = 'InputLabel';
26162
26168
  InputLabel.propTypes = {
26163
- label: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string),
26169
+ label: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().node),
26164
26170
  labelIcon: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string),
26165
26171
  required: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool),
26166
26172
  variant: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOf(['sm', 'lg'])