@luminati-io/uikit 6.1.0 → 6.1.2
Sign up to get free protection for your applications and to get access to all the features.
@@ -31911,8 +31911,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
31911
31911
|
|
31912
31912
|
/*jslint react:true*/
|
31913
31913
|
var _excluded = ["text", "variant", "size", "items", "disabled", "onClick", "icon", "iconPlacement"],
|
31914
|
-
_excluded2 = ["isLeft"]
|
31915
|
-
_excluded3 = ["popover"];
|
31914
|
+
_excluded2 = ["isLeft"];
|
31916
31915
|
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); }
|
31917
31916
|
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; }
|
31918
31917
|
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } } return target; }
|
@@ -31980,24 +31979,24 @@ ComboButton.propTypes = {
|
|
31980
31979
|
items: prop_types__WEBPACK_IMPORTED_MODULE_0___default().arrayOf((prop_types__WEBPACK_IMPORTED_MODULE_0___default().any)).isRequired,
|
31981
31980
|
disabled: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool)
|
31982
31981
|
};
|
31983
|
-
var ComboButtonMenu = function ComboButtonMenu(
|
31984
|
-
var size =
|
31985
|
-
items =
|
31986
|
-
popover =
|
31982
|
+
var ComboButtonMenu = function ComboButtonMenu(_ref2) {
|
31983
|
+
var size = _ref2.size,
|
31984
|
+
items = _ref2.items,
|
31985
|
+
popover = _ref2.popover;
|
31987
31986
|
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_menu__WEBPACK_IMPORTED_MODULE_6__.Menu, {
|
31988
31987
|
size: size,
|
31989
31988
|
items: items,
|
31990
31989
|
onClick: popover.hide
|
31991
31990
|
});
|
31992
31991
|
};
|
31993
|
-
var ArrowIcon = function ArrowIcon(
|
31994
|
-
var popover =
|
31995
|
-
|
31996
|
-
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(ComboButtonArrow,
|
31997
|
-
onClick: popover.toggle
|
31998
|
-
|
31992
|
+
var ArrowIcon = function ArrowIcon(_ref3) {
|
31993
|
+
var popover = _ref3.popover,
|
31994
|
+
disabled = _ref3.disabled;
|
31995
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(ComboButtonArrow, {
|
31996
|
+
onClick: popover.toggle,
|
31997
|
+
disabled: disabled,
|
31999
31998
|
"data-testid": "combo_button_menu_button"
|
32000
|
-
}
|
31999
|
+
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_icon__WEBPACK_IMPORTED_MODULE_5__.Icon, {
|
32001
32000
|
name: "ChevronDown",
|
32002
32001
|
size: "xs"
|
32003
32002
|
}));
|
@@ -33083,7 +33082,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
33083
33082
|
|
33084
33083
|
/*jslint react:true*/
|
33085
33084
|
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); }
|
33086
|
-
var _excluded = ["id", "checked", "onChange", "onClick", "label", "disabled", "tooltip", "indeterminate", "verticalAlign", "className", "classNamePrefix"];
|
33085
|
+
var _excluded = ["id", "name", "checked", "onChange", "onClick", "label", "disabled", "tooltip", "indeterminate", "verticalAlign", "className", "classNamePrefix"];
|
33087
33086
|
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); }
|
33088
33087
|
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
33089
33088
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
@@ -33099,6 +33098,7 @@ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) r
|
|
33099
33098
|
|
33100
33099
|
var Checkbox = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().forwardRef(function (_ref, ref) {
|
33101
33100
|
var id = _ref.id,
|
33101
|
+
name = _ref.name,
|
33102
33102
|
checked = _ref.checked,
|
33103
33103
|
onChange = _ref.onChange,
|
33104
33104
|
onClick = _ref.onClick,
|
@@ -33131,6 +33131,7 @@ var Checkbox = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().forward
|
|
33131
33131
|
}, 'checkbox--is-checked', checked), 'checkbox--is-disabled', disabled), 'checkbox--is-indeterminate', indeterminate), className)
|
33132
33132
|
}), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(CheckboxControl, {
|
33133
33133
|
id: id,
|
33134
|
+
name: name,
|
33134
33135
|
role: "checkbox",
|
33135
33136
|
"aria-checked": checked ? true : indeterminate ? 'mixed' : false,
|
33136
33137
|
"aria-disabled": disabled,
|
@@ -36198,6 +36199,7 @@ Number.propTypes = {
|
|
36198
36199
|
onChange: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().func),
|
36199
36200
|
onFocus: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().func),
|
36200
36201
|
onBlur: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().func),
|
36202
|
+
onKeyDown: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().func),
|
36201
36203
|
placeholder: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().string),
|
36202
36204
|
disabled: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().bool),
|
36203
36205
|
required: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().bool),
|
@@ -37434,7 +37436,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
37434
37436
|
|
37435
37437
|
/*jslint react:true*/
|
37436
37438
|
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); }
|
37437
|
-
var _excluded = ["id", "value", "leftInnerContent", "leftOuterContent", "rightInnerContent", "rightOuterContent", "heightCalculationCallback", "Field", "fieldRef", "onChange", "onFocus", "onBlur", "placeholder", "disabled", "invalid", "autofocus", "helperText", "label", "labelIcon", "labelTooltip", "required", "necessityIndicator", "autoresize", "verticalAlign", "innerWrapper"];
|
37439
|
+
var _excluded = ["id", "name", "value", "leftInnerContent", "leftOuterContent", "rightInnerContent", "rightOuterContent", "heightCalculationCallback", "Field", "fieldRef", "onChange", "onFocus", "onBlur", "onKeyDown", "placeholder", "disabled", "invalid", "autofocus", "helperText", "label", "labelIcon", "labelTooltip", "required", "necessityIndicator", "autoresize", "verticalAlign", "innerWrapper"];
|
37438
37440
|
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
37439
37441
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
37440
37442
|
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); }
|
@@ -37462,6 +37464,7 @@ var inputVerticalPadding = 4;
|
|
37462
37464
|
var inputHorizontalPadding = 12;
|
37463
37465
|
var FieldWrapper = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().forwardRef(function (props, ref) {
|
37464
37466
|
var id = props.id,
|
37467
|
+
name = props.name,
|
37465
37468
|
value = props.value,
|
37466
37469
|
leftInnerContent = props.leftInnerContent,
|
37467
37470
|
leftOuterContent = props.leftOuterContent,
|
@@ -37473,6 +37476,7 @@ var FieldWrapper = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().for
|
|
37473
37476
|
onChange = props.onChange,
|
37474
37477
|
onFocus = props.onFocus,
|
37475
37478
|
onBlur = props.onBlur,
|
37479
|
+
onKeyDown = props.onKeyDown,
|
37476
37480
|
placeholder = props.placeholder,
|
37477
37481
|
disabled = props.disabled,
|
37478
37482
|
invalid = props.invalid,
|
@@ -37538,9 +37542,12 @@ var FieldWrapper = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().for
|
|
37538
37542
|
$heightCalculationCallback: heightCalculationCallback,
|
37539
37543
|
$verticalAlign: verticalAlign,
|
37540
37544
|
onClick: onWrapperClick
|
37541
|
-
}, leftInnerContent, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(Field, _extends({
|
37545
|
+
}, leftInnerContent, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(Field, _extends({
|
37546
|
+
onKeyDown: onKeyDown
|
37547
|
+
}, props.inputProps, {
|
37542
37548
|
ref: setFieldRefs,
|
37543
37549
|
id: id,
|
37550
|
+
name: name,
|
37544
37551
|
disabled: disabled,
|
37545
37552
|
onChange: onChange,
|
37546
37553
|
onFocus: onFieldFocus,
|
@@ -37790,8 +37797,14 @@ __webpack_require__.r(__webpack_exports__);
|
|
37790
37797
|
|
37791
37798
|
|
37792
37799
|
/*jslint react:true*/
|
37793
|
-
|
37800
|
+
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); }
|
37801
|
+
var _excluded = ["onChange", "rows", "maxRows", "placeholder", "inputProps", "minLength", "maxLength"];
|
37794
37802
|
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); }
|
37803
|
+
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; }
|
37804
|
+
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; }
|
37805
|
+
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
37806
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
37807
|
+
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); }
|
37795
37808
|
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; }
|
37796
37809
|
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } } return target; }
|
37797
37810
|
|
@@ -37806,6 +37819,9 @@ var Textarea = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().forward
|
|
37806
37819
|
rows = _ref$rows === void 0 ? 1 : _ref$rows,
|
37807
37820
|
maxRows = _ref.maxRows,
|
37808
37821
|
placeholder = _ref.placeholder,
|
37822
|
+
inputProps = _ref.inputProps,
|
37823
|
+
minLength = _ref.minLength,
|
37824
|
+
maxLength = _ref.maxLength,
|
37809
37825
|
rest = _objectWithoutProperties(_ref, _excluded);
|
37810
37826
|
var handleChange = (0,react__WEBPACK_IMPORTED_MODULE_1__.useCallback)(function (e) {
|
37811
37827
|
onChange === null || onChange === void 0 || onChange(e.target.value, e);
|
@@ -37825,7 +37841,11 @@ var Textarea = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().forward
|
|
37825
37841
|
heightCalculationCallback: heightCalculationCallback,
|
37826
37842
|
Field: Area,
|
37827
37843
|
onChange: handleChange,
|
37828
|
-
placeholder: t(placeholder)
|
37844
|
+
placeholder: t(placeholder),
|
37845
|
+
inputProps: _objectSpread({
|
37846
|
+
minLength: minLength,
|
37847
|
+
maxLength: maxLength
|
37848
|
+
}, inputProps)
|
37829
37849
|
}));
|
37830
37850
|
});
|
37831
37851
|
Textarea.propTypes = {
|
@@ -37833,6 +37853,7 @@ Textarea.propTypes = {
|
|
37833
37853
|
onChange: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().func),
|
37834
37854
|
onFocus: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().func),
|
37835
37855
|
onBlur: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().func),
|
37856
|
+
onKeyDown: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().func),
|
37836
37857
|
placeholder: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string),
|
37837
37858
|
disabled: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool),
|
37838
37859
|
required: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool),
|
@@ -37852,7 +37873,9 @@ Textarea.propTypes = {
|
|
37852
37873
|
})]),
|
37853
37874
|
autofocus: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool),
|
37854
37875
|
rows: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().number),
|
37855
|
-
maxRows: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().number)
|
37876
|
+
maxRows: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().number),
|
37877
|
+
minLength: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().number),
|
37878
|
+
maxLength: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().number)
|
37856
37879
|
};
|
37857
37880
|
Textarea.displayName = 'Textarea';
|
37858
37881
|
var Area = styled_components__WEBPACK_IMPORTED_MODULE_2___default().textarea.withConfig({
|
@@ -37898,8 +37921,14 @@ __webpack_require__.r(__webpack_exports__);
|
|
37898
37921
|
|
37899
37922
|
|
37900
37923
|
/*jslint react:true*/
|
37901
|
-
|
37924
|
+
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); }
|
37925
|
+
var _excluded = ["size", "onChange", "placeholder", "inputProps", "minLength", "maxLength"];
|
37902
37926
|
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); }
|
37927
|
+
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; }
|
37928
|
+
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; }
|
37929
|
+
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
37930
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
37931
|
+
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); }
|
37903
37932
|
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; }
|
37904
37933
|
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } } return target; }
|
37905
37934
|
|
@@ -37910,6 +37939,9 @@ var Textbox = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().forwardR
|
|
37910
37939
|
var size = _ref.size,
|
37911
37940
|
onChange = _ref.onChange,
|
37912
37941
|
placeholder = _ref.placeholder,
|
37942
|
+
inputProps = _ref.inputProps,
|
37943
|
+
minLength = _ref.minLength,
|
37944
|
+
maxLength = _ref.maxLength,
|
37913
37945
|
rest = _objectWithoutProperties(_ref, _excluded);
|
37914
37946
|
var handleChange = (0,react__WEBPACK_IMPORTED_MODULE_0__.useCallback)(function (e) {
|
37915
37947
|
return onChange === null || onChange === void 0 ? void 0 : onChange(e.target.value, e);
|
@@ -37923,7 +37955,11 @@ var Textbox = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().forwardR
|
|
37923
37955
|
verticalAlign: "center",
|
37924
37956
|
Field: _shared__WEBPACK_IMPORTED_MODULE_3__.Field,
|
37925
37957
|
onChange: handleChange,
|
37926
|
-
placeholder: t(placeholder)
|
37958
|
+
placeholder: t(placeholder),
|
37959
|
+
inputProps: _objectSpread({
|
37960
|
+
minLength: minLength,
|
37961
|
+
maxLength: maxLength
|
37962
|
+
}, inputProps)
|
37927
37963
|
}));
|
37928
37964
|
});
|
37929
37965
|
Textbox.propTypes = {
|
@@ -37931,6 +37967,7 @@ Textbox.propTypes = {
|
|
37931
37967
|
onChange: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().func),
|
37932
37968
|
onFocus: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().func),
|
37933
37969
|
onBlur: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().func),
|
37970
|
+
onKeyDown: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().func),
|
37934
37971
|
placeholder: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().string),
|
37935
37972
|
disabled: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().bool),
|
37936
37973
|
required: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().bool),
|
@@ -37949,7 +37986,9 @@ Textbox.propTypes = {
|
|
37949
37986
|
autofocus: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().bool),
|
37950
37987
|
fieldRef: prop_types__WEBPACK_IMPORTED_MODULE_1___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_1___default().func), prop_types__WEBPACK_IMPORTED_MODULE_1___default().shape({
|
37951
37988
|
current: prop_types__WEBPACK_IMPORTED_MODULE_1___default().instanceOf(Element)
|
37952
|
-
})])
|
37989
|
+
})]),
|
37990
|
+
minLength: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().number),
|
37991
|
+
maxLength: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().number)
|
37953
37992
|
};
|
37954
37993
|
Textbox.displayName = 'Textbox';
|
37955
37994
|
|
@@ -38481,7 +38520,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
38481
38520
|
|
38482
38521
|
|
38483
38522
|
/*jslint react:true*/
|
38484
|
-
var _excluded = ["id", "value", "label", "disabled", "size", "onChange"];
|
38523
|
+
var _excluded = ["id", "name", "value", "label", "disabled", "size", "onChange"];
|
38485
38524
|
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); }
|
38486
38525
|
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; }
|
38487
38526
|
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } } return target; }
|
@@ -38493,6 +38532,7 @@ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) r
|
|
38493
38532
|
|
38494
38533
|
var Toggle = function Toggle(_ref) {
|
38495
38534
|
var id = _ref.id,
|
38535
|
+
name = _ref.name,
|
38496
38536
|
value = _ref.value,
|
38497
38537
|
label = _ref.label,
|
38498
38538
|
disabled = _ref.disabled,
|
@@ -38508,6 +38548,7 @@ var Toggle = function Toggle(_ref) {
|
|
38508
38548
|
$size: size
|
38509
38549
|
}), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(ToggleInput, {
|
38510
38550
|
id: id,
|
38551
|
+
name: name,
|
38511
38552
|
$size: size,
|
38512
38553
|
checked: value,
|
38513
38554
|
onChange: handleChange,
|
@@ -45171,7 +45212,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
45171
45212
|
|
45172
45213
|
|
45173
45214
|
/*jslint react:true*/
|
45174
|
-
var _excluded = ["type", "children", "onClose", "dismissible", "
|
45215
|
+
var _excluded = ["type", "children", "onClose", "dismissible", "className", "classNamePrefix"];
|
45175
45216
|
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); }
|
45176
45217
|
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; }
|
45177
45218
|
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } } return target; }
|
@@ -45187,29 +45228,31 @@ var Toast = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().forwardRef
|
|
45187
45228
|
children = _ref.children,
|
45188
45229
|
onClose = _ref.onClose,
|
45189
45230
|
dismissible = _ref.dismissible,
|
45190
|
-
|
45191
|
-
|
45192
|
-
classNamePrefix = _ref$classNamePrefix === void 0 ? '' : _ref$classNamePrefix,
|
45231
|
+
className = _ref.className,
|
45232
|
+
classNamePrefix = _ref.classNamePrefix,
|
45193
45233
|
rest = _objectWithoutProperties(_ref, _excluded);
|
45194
|
-
var _dismissible = dismissible
|
45195
|
-
var _notDismissible = notDismissible;
|
45234
|
+
var _dismissible = (0,_util__WEBPACK_IMPORTED_MODULE_3__.firstDefined)(dismissible, type == 'error' || type == 'warning');
|
45196
45235
|
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(Wrapper, _extends({
|
45197
45236
|
ref: ref,
|
45198
45237
|
$type: type
|
45199
45238
|
}, (0,_util__WEBPACK_IMPORTED_MODULE_3__.getCommonProps)(rest), {
|
45200
|
-
className: classNamePrefix
|
45201
|
-
|
45239
|
+
className: (0,_util__WEBPACK_IMPORTED_MODULE_3__.classNames)(classNamePrefix, {
|
45240
|
+
wrapper: true
|
45241
|
+
}, className)
|
45242
|
+
}), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(Content, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(ToastIcon, {
|
45202
45243
|
type: type,
|
45203
45244
|
classNamePrefix: classNamePrefix
|
45204
45245
|
}), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_typography__WEBPACK_IMPORTED_MODULE_6__.Paragraph, {
|
45205
45246
|
variant: "sm",
|
45206
45247
|
color: "text",
|
45207
|
-
className: classNamePrefix
|
45208
|
-
|
45248
|
+
className: (0,_util__WEBPACK_IMPORTED_MODULE_3__.classNames)(classNamePrefix, {
|
45249
|
+
body: true
|
45250
|
+
})
|
45251
|
+
}, children)), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(RemoveButton, {
|
45209
45252
|
onClick: onClose,
|
45210
45253
|
classNamePrefix: classNamePrefix,
|
45211
45254
|
type: type,
|
45212
|
-
dismissible: _dismissible
|
45255
|
+
dismissible: _dismissible
|
45213
45256
|
}));
|
45214
45257
|
});
|
45215
45258
|
Toast.displayName = 'Toast';
|
@@ -45217,18 +45260,21 @@ Toast.propTypes = {
|
|
45217
45260
|
type: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOf(['success', 'error', 'warning', 'info', 'generic']),
|
45218
45261
|
onClose: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().func),
|
45219
45262
|
dismissible: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool),
|
45220
|
-
notDismissible: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool),
|
45221
45263
|
classNamePrefix: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string)
|
45222
45264
|
};
|
45223
45265
|
var Wrapper = styled_components__WEBPACK_IMPORTED_MODULE_2___default().div.withConfig({
|
45224
45266
|
displayName: "Wrapper",
|
45225
45267
|
componentId: "sc-tn2lqb-0"
|
45226
|
-
})(["display:flex;flex-direction:row;justify-content:
|
45268
|
+
})(["display:flex;flex-direction:row;justify-content:space-between;padding:8px;gap:8px;border-radius:4px;background-color:", ";box-shadow:", ";"], function (p) {
|
45227
45269
|
return getBackgroundColor(p);
|
45228
45270
|
}, function (_ref2) {
|
45229
45271
|
var shadow = _ref2.theme.shadow;
|
45230
45272
|
return shadow.medium;
|
45231
45273
|
});
|
45274
|
+
var Content = styled_components__WEBPACK_IMPORTED_MODULE_2___default().div.withConfig({
|
45275
|
+
displayName: "Content",
|
45276
|
+
componentId: "sc-tn2lqb-1"
|
45277
|
+
})(["display:flex;flex-direction:row;gap:8px;"]);
|
45232
45278
|
var ToastIcon = function ToastIcon(_ref3) {
|
45233
45279
|
var type = _ref3.type,
|
45234
45280
|
classNamePrefix = _ref3.classNamePrefix;
|
@@ -45248,7 +45294,9 @@ var ToastIcon = function ToastIcon(_ref3) {
|
|
45248
45294
|
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_icon__WEBPACK_IMPORTED_MODULE_4__.Icon, {
|
45249
45295
|
name: name,
|
45250
45296
|
color: _color,
|
45251
|
-
className: classNamePrefix
|
45297
|
+
className: (0,_util__WEBPACK_IMPORTED_MODULE_3__.classNames)(classNamePrefix, {
|
45298
|
+
icon: true
|
45299
|
+
}),
|
45252
45300
|
size: "xs"
|
45253
45301
|
});
|
45254
45302
|
};
|
@@ -45263,7 +45311,9 @@ var RemoveButton = function RemoveButton(_ref4) {
|
|
45263
45311
|
icon: "CloseSmall",
|
45264
45312
|
$type: type,
|
45265
45313
|
onClick: onClick,
|
45266
|
-
className: classNamePrefix
|
45314
|
+
className: (0,_util__WEBPACK_IMPORTED_MODULE_3__.classNames)(classNamePrefix, {
|
45315
|
+
dismissButton: true
|
45316
|
+
})
|
45267
45317
|
});
|
45268
45318
|
};
|
45269
45319
|
RemoveButton.propTypes = {
|
@@ -45273,7 +45323,7 @@ RemoveButton.propTypes = {
|
|
45273
45323
|
};
|
45274
45324
|
var StyledRemoveButton = styled_components__WEBPACK_IMPORTED_MODULE_2___default()(_icon_button__WEBPACK_IMPORTED_MODULE_5__.IconButton).withConfig({
|
45275
45325
|
displayName: "StyledRemoveButton",
|
45276
|
-
componentId: "sc-tn2lqb-
|
45326
|
+
componentId: "sc-tn2lqb-2"
|
45277
45327
|
})(["border-radius:", ";min-width:16px;width:16px;min-height:16px;height:16px;background-color:", ";"], function (_ref5) {
|
45278
45328
|
var spacing = _ref5.theme.spacing;
|
45279
45329
|
return spacing['05'];
|