@luminati-io/uikit 1.9.26-beta.2 → 1.9.26
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/uikit.umd.js +75 -488
- package/dist/uikit.umd.js.map +1 -1
- package/dist/uikit.umd.min.js +1 -1
- package/package.json +1 -1
package/dist/uikit.umd.js
CHANGED
@@ -20018,24 +20018,21 @@ __webpack_require__.r(__webpack_exports__);
|
|
20018
20018
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
20019
20019
|
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
20020
20020
|
/* harmony export */ });
|
20021
|
-
/* harmony import */ var
|
20022
|
-
/* harmony import */ var
|
20023
|
-
/* harmony import */ var
|
20024
|
-
/* harmony import */ var
|
20025
|
-
/* harmony import */ var
|
20026
|
-
/* harmony import */ var
|
20027
|
-
/* harmony import */ var
|
20028
|
-
/* harmony import */ var
|
20029
|
-
/* harmony import */ var
|
20030
|
-
/* harmony import */ var
|
20031
|
-
/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../utils */ "./src/utils.js");
|
20032
|
-
/* harmony import */ var _loading_icon__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./loading_icon */ "./src/button/loading_icon.js");
|
20021
|
+
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! prop-types */ "prop-types");
|
20022
|
+
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_0__);
|
20023
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "react");
|
20024
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
|
20025
|
+
/* harmony import */ var styled_components__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! styled-components */ "styled-components");
|
20026
|
+
/* harmony import */ var styled_components__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(styled_components__WEBPACK_IMPORTED_MODULE_2__);
|
20027
|
+
/* harmony import */ var _icon__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../icon */ "./src/icon.js");
|
20028
|
+
/* harmony import */ var _typography__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../typography */ "./src/typography/index.js");
|
20029
|
+
/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../utils */ "./src/utils.js");
|
20030
|
+
/* harmony import */ var _loading_icon__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./loading_icon */ "./src/button/loading_icon.js");
|
20033
20031
|
// LICENSE_CODE ZON
|
20034
20032
|
|
20035
20033
|
|
20036
20034
|
/*jslint react:true*/
|
20037
|
-
|
20038
|
-
var _excluded = ["text", "variant", "size", "disabled", "loading", "loadingText"],
|
20035
|
+
var _excluded = ["text", "variant", "size", "disabled", "loading", "loadingText", "icon", "iconPlacement"],
|
20039
20036
|
_excluded2 = ["isLeft", "isRight"];
|
20040
20037
|
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); }
|
20041
20038
|
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; }
|
@@ -20047,33 +20044,34 @@ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) r
|
|
20047
20044
|
|
20048
20045
|
|
20049
20046
|
|
20050
|
-
var Button = /*#__PURE__*/
|
20047
|
+
var Button = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().forwardRef(function (props, ref) {
|
20051
20048
|
var text = props.text,
|
20052
20049
|
variant = props.variant,
|
20053
20050
|
size = props.size,
|
20054
20051
|
disabled = props.disabled,
|
20055
20052
|
loading = props.loading,
|
20056
20053
|
loadingText = props.loadingText,
|
20054
|
+
icon = props.icon,
|
20055
|
+
iconPlacement = props.iconPlacement,
|
20057
20056
|
rest = _objectWithoutProperties(props, _excluded);
|
20058
|
-
var _getIconProps = (0,
|
20057
|
+
var _getIconProps = (0,_utils__WEBPACK_IMPORTED_MODULE_5__.getIconProps)('Button', props),
|
20059
20058
|
isLeft = _getIconProps.isLeft,
|
20060
20059
|
isRight = _getIconProps.isRight,
|
20061
20060
|
iconProps = _objectWithoutProperties(_getIconProps, _excluded2);
|
20062
|
-
|
20063
|
-
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(StyledButton, _extends({
|
20061
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(StyledButton, _extends({
|
20064
20062
|
ref: ref
|
20065
|
-
},
|
20063
|
+
}, rest, {
|
20066
20064
|
disabled: loading || disabled,
|
20067
20065
|
$variant: variant,
|
20068
20066
|
$size: size,
|
20069
20067
|
$iconPlacement: isLeft || loading ? 'left' : isRight ? 'right' : ''
|
20070
|
-
}), loading && /*#__PURE__*/
|
20068
|
+
}), loading && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_loading_icon__WEBPACK_IMPORTED_MODULE_6__["default"], {
|
20071
20069
|
size: iconProps.size
|
20072
|
-
}), isLeft && !loading && /*#__PURE__*/
|
20070
|
+
}), isLeft && !loading && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_icon__WEBPACK_IMPORTED_MODULE_3__["default"], iconProps), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_typography__WEBPACK_IMPORTED_MODULE_4__.Label, {
|
20073
20071
|
variant: size == 'xs' ? 'sm' : 'lg',
|
20074
20072
|
no_wrap: true,
|
20075
20073
|
"data-label": true
|
20076
|
-
}, loading ? loadingText : text), isRight && !loading && /*#__PURE__*/
|
20074
|
+
}, loading ? loadingText : text), isRight && !loading && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_icon__WEBPACK_IMPORTED_MODULE_3__["default"], iconProps));
|
20077
20075
|
});
|
20078
20076
|
Button.displayName = 'Button';
|
20079
20077
|
Button.defaultProps = {
|
@@ -20083,16 +20081,16 @@ Button.defaultProps = {
|
|
20083
20081
|
loadingText: 'Loading...'
|
20084
20082
|
};
|
20085
20083
|
Button.propTypes = {
|
20086
|
-
text: (
|
20087
|
-
variant:
|
20088
|
-
size:
|
20089
|
-
icon:
|
20090
|
-
iconPlacement:
|
20091
|
-
disabled: (
|
20092
|
-
loading: (
|
20093
|
-
loadingText: (
|
20084
|
+
text: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string).isRequired,
|
20085
|
+
variant: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOf(['primary', 'secondary', 'negative', 'negative_secondary', 'positive', 'white']),
|
20086
|
+
size: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOf(['xs', 'sm', 'md', 'lg']),
|
20087
|
+
icon: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOf(_utils__WEBPACK_IMPORTED_MODULE_5__.iconNames),
|
20088
|
+
iconPlacement: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOf(['left', 'right']),
|
20089
|
+
disabled: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool),
|
20090
|
+
loading: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool),
|
20091
|
+
loadingText: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string)
|
20094
20092
|
};
|
20095
|
-
var StyledButton =
|
20093
|
+
var StyledButton = styled_components__WEBPACK_IMPORTED_MODULE_2___default().button.withConfig({
|
20096
20094
|
displayName: "StyledButton",
|
20097
20095
|
componentId: "sc-ckjtjy-0"
|
20098
20096
|
})(["display:inline-flex;align-items:center;justify-content:center;border-radius:4px;cursor:pointer;&:disabled{cursor:not-allowed;}text-decoration:none;&:hover,&:visited,:focus{text-decoration:none;}", " ", " ", ""], function (props) {
|
@@ -20104,12 +20102,12 @@ var StyledButton = styled_components__WEBPACK_IMPORTED_MODULE_3___default().butt
|
|
20104
20102
|
gap = 2;
|
20105
20103
|
paddingLeft = paddingRight = 8;
|
20106
20104
|
}
|
20107
|
-
return (0,
|
20105
|
+
return (0,styled_components__WEBPACK_IMPORTED_MODULE_2__.css)(["gap:", ";padding-left:", ";padding-right:", ";"], (0,_utils__WEBPACK_IMPORTED_MODULE_5__.toPixel)(gap), (0,_utils__WEBPACK_IMPORTED_MODULE_5__.toPixel)(paddingLeft), (0,_utils__WEBPACK_IMPORTED_MODULE_5__.toPixel)(paddingRight));
|
20108
20106
|
}, function (props) {
|
20109
|
-
var colors = (0,
|
20110
|
-
return (0,
|
20107
|
+
var colors = (0,_utils__WEBPACK_IMPORTED_MODULE_5__.getButtonColors)(props);
|
20108
|
+
return (0,styled_components__WEBPACK_IMPORTED_MODULE_2__.css)(["background-color:", ";border:", ";[data-label]{color:", ";}[data-icon]{color:", ";}", " ", ""], colors.backColor, colors.border || '0 none', colors.color, colors.iconColor || colors.color, colors.hover && "&:hover {\n background-color: ".concat(colors.hover.backColor, ";\n }"), colors.active && "&:active {\n background-color: ".concat(colors.active.backColor, ";\n border: ").concat(colors.active.border, ";\n box-shadow: ").concat(colors.active.boxShadow, ";\n ").concat(colors.active.iconColor && "[data-icon] {\n color: ".concat(colors.active.iconColor, ";\n }"), "\n }"));
|
20111
20109
|
}, function (props) {
|
20112
|
-
return (0,
|
20110
|
+
return (0,_utils__WEBPACK_IMPORTED_MODULE_5__.toButtonSize)(props.$size);
|
20113
20111
|
});
|
20114
20112
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (Button);
|
20115
20113
|
|
@@ -22253,26 +22251,23 @@ __webpack_require__.r(__webpack_exports__);
|
|
22253
22251
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
22254
22252
|
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
22255
22253
|
/* harmony export */ });
|
22256
|
-
/* harmony import */ var
|
22257
|
-
/* harmony import */ var
|
22258
|
-
/* harmony import */ var
|
22259
|
-
/* harmony import */ var
|
22260
|
-
/* harmony import */ var
|
22261
|
-
/* harmony import */ var
|
22262
|
-
/* harmony import */ var
|
22263
|
-
/* harmony import */ var
|
22264
|
-
/* harmony import */ var
|
22265
|
-
/* harmony import */ var
|
22266
|
-
/* harmony import */ var
|
22267
|
-
/* harmony import */ var
|
22268
|
-
/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../utils */ "./src/utils.js");
|
22269
|
-
/* harmony import */ var _constants__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../constants */ "./src/constants.js");
|
22254
|
+
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! prop-types */ "prop-types");
|
22255
|
+
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_0__);
|
22256
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "react");
|
22257
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
|
22258
|
+
/* harmony import */ var styled_components__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! styled-components */ "styled-components");
|
22259
|
+
/* harmony import */ var styled_components__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(styled_components__WEBPACK_IMPORTED_MODULE_2__);
|
22260
|
+
/* harmony import */ var _hoc__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../hoc */ "./src/hoc/index.js");
|
22261
|
+
/* harmony import */ var _icon__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../icon */ "./src/icon.js");
|
22262
|
+
/* harmony import */ var _menu__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../menu */ "./src/menu/index.js");
|
22263
|
+
/* harmony import */ var _typography__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../typography */ "./src/typography/index.js");
|
22264
|
+
/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../utils */ "./src/utils.js");
|
22265
|
+
/* harmony import */ var _constants__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../constants */ "./src/constants.js");
|
22270
22266
|
// LICENSE_CODE ZON
|
22271
22267
|
|
22272
22268
|
|
22273
22269
|
/*jslint react:true*/
|
22274
|
-
|
22275
|
-
var _excluded = ["text", "variant", "size", "items", "disabled", "onClick"],
|
22270
|
+
var _excluded = ["text", "variant", "size", "items", "disabled", "onClick", "icon", "iconPlacement"],
|
22276
22271
|
_excluded2 = ["isLeft"],
|
22277
22272
|
_excluded3 = ["popover"];
|
22278
22273
|
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); }
|
@@ -22287,40 +22282,41 @@ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) r
|
|
22287
22282
|
|
22288
22283
|
|
22289
22284
|
|
22290
|
-
var ComboButton = /*#__PURE__*/
|
22285
|
+
var ComboButton = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().forwardRef(function (props, ref) {
|
22291
22286
|
var text = props.text,
|
22292
22287
|
variant = props.variant,
|
22293
22288
|
size = props.size,
|
22294
22289
|
items = props.items,
|
22295
22290
|
disabled = props.disabled,
|
22296
22291
|
onClick = props.onClick,
|
22292
|
+
icon = props.icon,
|
22293
|
+
iconPlacement = props.iconPlacement,
|
22297
22294
|
rest = _objectWithoutProperties(props, _excluded);
|
22298
|
-
var _getIconProps = (0,
|
22295
|
+
var _getIconProps = (0,_utils__WEBPACK_IMPORTED_MODULE_7__.getIconProps)('Button', props),
|
22299
22296
|
isLeft = _getIconProps.isLeft,
|
22300
22297
|
iconProps = _objectWithoutProperties(_getIconProps, _excluded2);
|
22301
|
-
var
|
22302
|
-
var menuProps = (0,react__WEBPACK_IMPORTED_MODULE_2__.useMemo)(function () {
|
22298
|
+
var menuProps = (0,react__WEBPACK_IMPORTED_MODULE_1__.useMemo)(function () {
|
22303
22299
|
return {
|
22304
22300
|
size: size == 'xs' ? 'sm' : 'md',
|
22305
22301
|
items: items
|
22306
22302
|
};
|
22307
22303
|
}, [size, items]);
|
22308
|
-
return /*#__PURE__*/
|
22304
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(StyledButtonWrapper, _extends({
|
22309
22305
|
ref: ref
|
22310
|
-
},
|
22306
|
+
}, rest, {
|
22311
22307
|
disabled: disabled,
|
22312
22308
|
$variant: variant,
|
22313
22309
|
$size: size,
|
22314
22310
|
$iconPlacement: isLeft ? 'left' : ''
|
22315
|
-
}), /*#__PURE__*/
|
22311
|
+
}), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(StyledButton, {
|
22316
22312
|
disabled: disabled,
|
22317
22313
|
onClick: onClick,
|
22318
22314
|
"data-testid": "combo_button_main"
|
22319
|
-
}, /*#__PURE__*/
|
22315
|
+
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(ComboButtonContent, null, isLeft && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_icon__WEBPACK_IMPORTED_MODULE_4__["default"], iconProps), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_typography__WEBPACK_IMPORTED_MODULE_6__.Label, {
|
22320
22316
|
variant: size == 'xs' ? 'sm' : 'lg',
|
22321
22317
|
no_wrap: true,
|
22322
22318
|
"data-label": true
|
22323
|
-
}, text))), /*#__PURE__*/
|
22319
|
+
}, text))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(ComboButtonMenuTrigger, {
|
22324
22320
|
disabled: disabled,
|
22325
22321
|
popoverProps: menuProps
|
22326
22322
|
}));
|
@@ -22331,18 +22327,18 @@ ComboButton.defaultProps = {
|
|
22331
22327
|
size: 'sm'
|
22332
22328
|
};
|
22333
22329
|
ComboButton.propTypes = {
|
22334
|
-
text: (
|
22335
|
-
variant:
|
22336
|
-
size:
|
22337
|
-
icon:
|
22338
|
-
items:
|
22339
|
-
disabled: (
|
22330
|
+
text: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string).isRequired,
|
22331
|
+
variant: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOf(['primary', 'secondary', 'negative', 'negative_secondary', 'positive', 'white']),
|
22332
|
+
size: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOf(['xs', 'sm', 'md', 'lg']),
|
22333
|
+
icon: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOf(_utils__WEBPACK_IMPORTED_MODULE_7__.iconNames),
|
22334
|
+
items: prop_types__WEBPACK_IMPORTED_MODULE_0___default().arrayOf((prop_types__WEBPACK_IMPORTED_MODULE_0___default().any)).isRequired,
|
22335
|
+
disabled: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool)
|
22340
22336
|
};
|
22341
22337
|
var ComboButtonMenu = function ComboButtonMenu(props) {
|
22342
22338
|
var size = props.size,
|
22343
22339
|
items = props.items,
|
22344
22340
|
popover = props.popover;
|
22345
|
-
return /*#__PURE__*/
|
22341
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_menu__WEBPACK_IMPORTED_MODULE_5__["default"], {
|
22346
22342
|
size: size,
|
22347
22343
|
items: items,
|
22348
22344
|
onClick: popover.hide
|
@@ -22351,20 +22347,20 @@ var ComboButtonMenu = function ComboButtonMenu(props) {
|
|
22351
22347
|
var ArrowIcon = function ArrowIcon(props) {
|
22352
22348
|
var popover = props.popover,
|
22353
22349
|
rest = _objectWithoutProperties(props, _excluded3);
|
22354
|
-
return /*#__PURE__*/
|
22350
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(ComboButtonArrow, _extends({
|
22355
22351
|
onClick: popover.toggle
|
22356
22352
|
}, rest, {
|
22357
22353
|
"data-testid": "combo_button_menu_button"
|
22358
|
-
}), /*#__PURE__*/
|
22354
|
+
}), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_icon__WEBPACK_IMPORTED_MODULE_4__["default"], {
|
22359
22355
|
name: "ChevronDown",
|
22360
22356
|
size: "xs"
|
22361
22357
|
}));
|
22362
22358
|
};
|
22363
|
-
var ComboButtonMenuTrigger = (0,
|
22359
|
+
var ComboButtonMenuTrigger = (0,_hoc__WEBPACK_IMPORTED_MODULE_3__.withPopover)(ArrowIcon, ComboButtonMenu, {
|
22364
22360
|
placement: 'bottom-end',
|
22365
|
-
zIndex:
|
22361
|
+
zIndex: _constants__WEBPACK_IMPORTED_MODULE_8__.Z_INDEX.combobutton
|
22366
22362
|
});
|
22367
|
-
var StyledButtonWrapper =
|
22363
|
+
var StyledButtonWrapper = styled_components__WEBPACK_IMPORTED_MODULE_2___default().div.withConfig({
|
22368
22364
|
displayName: "StyledButtonWrapper",
|
22369
22365
|
componentId: "sc-s9elw5-0"
|
22370
22366
|
})(["display:inline-flex;align-items:stretch;justify-content:center;border-radius:4px;text-decoration:none;&:hover,&:visited,:focus{text-decoration:none;}padding:0;", " ", " ", ""], function (props) {
|
@@ -22376,22 +22372,22 @@ var StyledButtonWrapper = styled_components__WEBPACK_IMPORTED_MODULE_3___default
|
|
22376
22372
|
gap = 2;
|
22377
22373
|
paddingLeft = paddingRight = 8;
|
22378
22374
|
}
|
22379
|
-
return (0,
|
22375
|
+
return (0,styled_components__WEBPACK_IMPORTED_MODULE_2__.css)(["", "{gap:", ";padding-left:", ";padding-right:", ";}"], ComboButtonContent, (0,_utils__WEBPACK_IMPORTED_MODULE_7__.toPixel)(gap), (0,_utils__WEBPACK_IMPORTED_MODULE_7__.toPixel)(paddingLeft), (0,_utils__WEBPACK_IMPORTED_MODULE_7__.toPixel)(paddingRight));
|
22380
22376
|
}, function (props) {
|
22381
|
-
var colors = (0,
|
22382
|
-
return (0,
|
22377
|
+
var colors = (0,_utils__WEBPACK_IMPORTED_MODULE_7__.getButtonColors)(props);
|
22378
|
+
return (0,styled_components__WEBPACK_IMPORTED_MODULE_2__.css)(["background-color:", ";", "{color:", ";border-top:", ";border-right:0 none;border-bottom:", ";border-left:", ";[data-icon]{color:", ";}", "}", "{border-top:", ";border-right:", ";border-bottom:", ";border-left:", ";[data-icon]{color:", ";}", "}", ""], colors.backColor, StyledButton, colors.color, colors.border || '0 none', colors.border || '0 none', colors.border || '0 none', colors.iconColor || colors.color, colors.active && "&:active {\n background-color: ".concat(colors.active.backColor, ";\n border-top: ").concat(colors.active.border, ";\n border-bottom: ").concat(colors.active.border, ";\n border-left: ").concat(colors.active.border, ";\n box-shadow: ").concat(colors.active.boxShadow, ";\n ").concat(colors.active.iconColor && "[data-icon] {\n color: ".concat(colors.active.iconColor, ";\n }"), "\n }"), ComboButtonArrow, colors.border || '0 none', colors.border || '0 none', colors.border || '0 none', colors.separator || colors.border || '0 none', colors.iconColor || colors.color, colors.active && "&:active {\n background-color: ".concat(colors.active.backColor, ";\n border: ").concat(colors.active.border, ";\n box-shadow: ").concat(colors.active.boxShadow, ";\n ").concat(colors.active.iconColor && "[data-icon] {\n color: ".concat(colors.active.iconColor, ";\n }"), "\n }"), colors.hover && "\n ".concat(StyledButton, ":hover, ").concat(ComboButtonArrow, ":hover {\n background-color: ").concat(colors.hover.backColor, ";\n }\n "));
|
22383
22379
|
}, function (props) {
|
22384
|
-
return (0,
|
22380
|
+
return (0,_utils__WEBPACK_IMPORTED_MODULE_7__.toButtonSize)(props.$size);
|
22385
22381
|
});
|
22386
|
-
var StyledButton =
|
22382
|
+
var StyledButton = styled_components__WEBPACK_IMPORTED_MODULE_2___default().button.withConfig({
|
22387
22383
|
displayName: "StyledButton",
|
22388
22384
|
componentId: "sc-s9elw5-1"
|
22389
22385
|
})(["cursor:pointer;&:disabled{cursor:not-allowed;}display:flex;align-items:center;height:100%;border:none;border-top-left-radius:4px;border-bottom-left-radius:4px;background:none;padding:0;"]);
|
22390
|
-
var ComboButtonContent =
|
22386
|
+
var ComboButtonContent = styled_components__WEBPACK_IMPORTED_MODULE_2___default().div.withConfig({
|
22391
22387
|
displayName: "ComboButtonContent",
|
22392
22388
|
componentId: "sc-s9elw5-2"
|
22393
22389
|
})(["display:flex;align-items:center;height:100%;"]);
|
22394
|
-
var ComboButtonArrow =
|
22390
|
+
var ComboButtonArrow = styled_components__WEBPACK_IMPORTED_MODULE_2___default().button.withConfig({
|
22395
22391
|
displayName: "ComboButtonArrow",
|
22396
22392
|
componentId: "sc-s9elw5-3"
|
22397
22393
|
})(["display:flex;align-items:center;justify-content:center;width:32px;height:100%;border:none;border-top-right-radius:4px;border-bottom-right-radius:4px;background:none;cursor:pointer;&:disabled{cursor:not-allowed;}"]);
|
@@ -44396,37 +44392,6 @@ function baseClamp(number, lower, upper) {
|
|
44396
44392
|
module.exports = baseClamp;
|
44397
44393
|
|
44398
44394
|
|
44399
|
-
/***/ }),
|
44400
|
-
|
44401
|
-
/***/ "./node_modules/lodash/_baseClone.js":
|
44402
|
-
/*!*******************************************!*\
|
44403
|
-
!*** ./node_modules/lodash/_baseClone.js ***!
|
44404
|
-
\*******************************************/
|
44405
|
-
/***/ ((module) => {
|
44406
|
-
|
44407
|
-
/**
|
44408
|
-
* This method returns the first argument it receives.
|
44409
|
-
*
|
44410
|
-
* @static
|
44411
|
-
* @since 0.1.0
|
44412
|
-
* @memberOf _
|
44413
|
-
* @category Util
|
44414
|
-
* @param {*} value Any value.
|
44415
|
-
* @returns {*} Returns `value`.
|
44416
|
-
* @example
|
44417
|
-
*
|
44418
|
-
* var object = { 'a': 1 };
|
44419
|
-
*
|
44420
|
-
* console.log(_.identity(object) === object);
|
44421
|
-
* // => true
|
44422
|
-
*/
|
44423
|
-
function identity(value) {
|
44424
|
-
return value;
|
44425
|
-
}
|
44426
|
-
|
44427
|
-
module.exports = identity;
|
44428
|
-
|
44429
|
-
|
44430
44395
|
/***/ }),
|
44431
44396
|
|
44432
44397
|
/***/ "./node_modules/lodash/_baseGet.js":
|
@@ -44655,36 +44620,6 @@ function baseSlice(array, start, end) {
|
|
44655
44620
|
module.exports = baseSlice;
|
44656
44621
|
|
44657
44622
|
|
44658
|
-
/***/ }),
|
44659
|
-
|
44660
|
-
/***/ "./node_modules/lodash/_baseUnset.js":
|
44661
|
-
/*!*******************************************!*\
|
44662
|
-
!*** ./node_modules/lodash/_baseUnset.js ***!
|
44663
|
-
\*******************************************/
|
44664
|
-
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
44665
|
-
|
44666
|
-
var castPath = __webpack_require__(/*! ./_castPath */ "./node_modules/lodash/_castPath.js"),
|
44667
|
-
last = __webpack_require__(/*! ./last */ "./node_modules/lodash/last.js"),
|
44668
|
-
parent = __webpack_require__(/*! ./_parent */ "./node_modules/lodash/_parent.js"),
|
44669
|
-
toKey = __webpack_require__(/*! ./_toKey */ "./node_modules/lodash/_toKey.js");
|
44670
|
-
|
44671
|
-
/**
|
44672
|
-
* The base implementation of `_.unset`.
|
44673
|
-
*
|
44674
|
-
* @private
|
44675
|
-
* @param {Object} object The object to modify.
|
44676
|
-
* @param {Array|string} path The property path to unset.
|
44677
|
-
* @returns {boolean} Returns `true` if the property is deleted, else `false`.
|
44678
|
-
*/
|
44679
|
-
function baseUnset(object, path) {
|
44680
|
-
path = castPath(path, object);
|
44681
|
-
object = parent(object, path);
|
44682
|
-
return object == null || delete object[toKey(last(path))];
|
44683
|
-
}
|
44684
|
-
|
44685
|
-
module.exports = baseUnset;
|
44686
|
-
|
44687
|
-
|
44688
44623
|
/***/ }),
|
44689
44624
|
|
44690
44625
|
/***/ "./node_modules/lodash/_castPath.js":
|
@@ -44767,56 +44702,6 @@ function castSlice(array, start, end) {
|
|
44767
44702
|
module.exports = castSlice;
|
44768
44703
|
|
44769
44704
|
|
44770
|
-
/***/ }),
|
44771
|
-
|
44772
|
-
/***/ "./node_modules/lodash/_copyObject.js":
|
44773
|
-
/*!********************************************!*\
|
44774
|
-
!*** ./node_modules/lodash/_copyObject.js ***!
|
44775
|
-
\********************************************/
|
44776
|
-
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
44777
|
-
|
44778
|
-
var assignValue = __webpack_require__(/*! ./_assignValue */ "./node_modules/lodash/_assignValue.js"),
|
44779
|
-
baseAssignValue = __webpack_require__(/*! ./_baseAssignValue */ "./node_modules/lodash/_baseAssignValue.js");
|
44780
|
-
|
44781
|
-
/**
|
44782
|
-
* Copies properties of `source` to `object`.
|
44783
|
-
*
|
44784
|
-
* @private
|
44785
|
-
* @param {Object} source The object to copy properties from.
|
44786
|
-
* @param {Array} props The property identifiers to copy.
|
44787
|
-
* @param {Object} [object={}] The object to copy properties to.
|
44788
|
-
* @param {Function} [customizer] The function to customize copied values.
|
44789
|
-
* @returns {Object} Returns `object`.
|
44790
|
-
*/
|
44791
|
-
function copyObject(source, props, object, customizer) {
|
44792
|
-
var isNew = !object;
|
44793
|
-
object || (object = {});
|
44794
|
-
|
44795
|
-
var index = -1,
|
44796
|
-
length = props.length;
|
44797
|
-
|
44798
|
-
while (++index < length) {
|
44799
|
-
var key = props[index];
|
44800
|
-
|
44801
|
-
var newValue = customizer
|
44802
|
-
? customizer(object[key], source[key], key, object, source)
|
44803
|
-
: undefined;
|
44804
|
-
|
44805
|
-
if (newValue === undefined) {
|
44806
|
-
newValue = source[key];
|
44807
|
-
}
|
44808
|
-
if (isNew) {
|
44809
|
-
baseAssignValue(object, key, newValue);
|
44810
|
-
} else {
|
44811
|
-
assignValue(object, key, newValue);
|
44812
|
-
}
|
44813
|
-
}
|
44814
|
-
return object;
|
44815
|
-
}
|
44816
|
-
|
44817
|
-
module.exports = copyObject;
|
44818
|
-
|
44819
|
-
|
44820
44705
|
/***/ }),
|
44821
44706
|
|
44822
44707
|
/***/ "./node_modules/lodash/_createCaseFirst.js":
|
@@ -44860,32 +44745,6 @@ function createCaseFirst(methodName) {
|
|
44860
44745
|
module.exports = createCaseFirst;
|
44861
44746
|
|
44862
44747
|
|
44863
|
-
/***/ }),
|
44864
|
-
|
44865
|
-
/***/ "./node_modules/lodash/_customOmitClone.js":
|
44866
|
-
/*!*************************************************!*\
|
44867
|
-
!*** ./node_modules/lodash/_customOmitClone.js ***!
|
44868
|
-
\*************************************************/
|
44869
|
-
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
44870
|
-
|
44871
|
-
var isPlainObject = __webpack_require__(/*! ./isPlainObject */ "./node_modules/lodash/isPlainObject.js");
|
44872
|
-
|
44873
|
-
/**
|
44874
|
-
* Used by `_.omit` to customize its `_.cloneDeep` use to only clone plain
|
44875
|
-
* objects.
|
44876
|
-
*
|
44877
|
-
* @private
|
44878
|
-
* @param {*} value The value to inspect.
|
44879
|
-
* @param {string} key The key of the property to inspect.
|
44880
|
-
* @returns {*} Returns the uncloned value or `undefined` to defer cloning to `_.cloneDeep`.
|
44881
|
-
*/
|
44882
|
-
function customOmitClone(value) {
|
44883
|
-
return isPlainObject(value) ? undefined : value;
|
44884
|
-
}
|
44885
|
-
|
44886
|
-
module.exports = customOmitClone;
|
44887
|
-
|
44888
|
-
|
44889
44748
|
/***/ }),
|
44890
44749
|
|
44891
44750
|
/***/ "./node_modules/lodash/_defineProperty.js":
|
@@ -44907,37 +44766,6 @@ var defineProperty = (function() {
|
|
44907
44766
|
module.exports = defineProperty;
|
44908
44767
|
|
44909
44768
|
|
44910
|
-
/***/ }),
|
44911
|
-
|
44912
|
-
/***/ "./node_modules/lodash/_flatRest.js":
|
44913
|
-
/*!******************************************!*\
|
44914
|
-
!*** ./node_modules/lodash/_flatRest.js ***!
|
44915
|
-
\******************************************/
|
44916
|
-
/***/ ((module) => {
|
44917
|
-
|
44918
|
-
/**
|
44919
|
-
* This method returns the first argument it receives.
|
44920
|
-
*
|
44921
|
-
* @static
|
44922
|
-
* @since 0.1.0
|
44923
|
-
* @memberOf _
|
44924
|
-
* @category Util
|
44925
|
-
* @param {*} value Any value.
|
44926
|
-
* @returns {*} Returns `value`.
|
44927
|
-
* @example
|
44928
|
-
*
|
44929
|
-
* var object = { 'a': 1 };
|
44930
|
-
*
|
44931
|
-
* console.log(_.identity(object) === object);
|
44932
|
-
* // => true
|
44933
|
-
*/
|
44934
|
-
function identity(value) {
|
44935
|
-
return value;
|
44936
|
-
}
|
44937
|
-
|
44938
|
-
module.exports = identity;
|
44939
|
-
|
44940
|
-
|
44941
44769
|
/***/ }),
|
44942
44770
|
|
44943
44771
|
/***/ "./node_modules/lodash/_freeGlobal.js":
|
@@ -45005,22 +44833,6 @@ function getValue(object, key) {
|
|
45005
44833
|
module.exports = getValue;
|
45006
44834
|
|
45007
44835
|
|
45008
|
-
/***/ }),
|
45009
|
-
|
45010
|
-
/***/ "./node_modules/lodash/_getPrototype.js":
|
45011
|
-
/*!**********************************************!*\
|
45012
|
-
!*** ./node_modules/lodash/_getPrototype.js ***!
|
45013
|
-
\**********************************************/
|
45014
|
-
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
45015
|
-
|
45016
|
-
var overArg = __webpack_require__(/*! ./_overArg */ "./node_modules/lodash/_overArg.js");
|
45017
|
-
|
45018
|
-
/** Built-in value references. */
|
45019
|
-
var getPrototype = overArg(Object.getPrototypeOf, Object);
|
45020
|
-
|
45021
|
-
module.exports = getPrototype;
|
45022
|
-
|
45023
|
-
|
45024
44836
|
/***/ }),
|
45025
44837
|
|
45026
44838
|
/***/ "./node_modules/lodash/_hasUnicode.js":
|
@@ -45243,62 +45055,6 @@ function listCacheSet(key, value) {
|
|
45243
45055
|
module.exports = listCacheSet;
|
45244
45056
|
|
45245
45057
|
|
45246
|
-
/***/ }),
|
45247
|
-
|
45248
|
-
/***/ "./node_modules/lodash/_overArg.js":
|
45249
|
-
/*!*****************************************!*\
|
45250
|
-
!*** ./node_modules/lodash/_overArg.js ***!
|
45251
|
-
\*****************************************/
|
45252
|
-
/***/ ((module) => {
|
45253
|
-
|
45254
|
-
/**
|
45255
|
-
* Creates a unary function that invokes `func` with its argument transformed.
|
45256
|
-
*
|
45257
|
-
* @private
|
45258
|
-
* @param {Function} func The function to wrap.
|
45259
|
-
* @param {Function} transform The argument transform.
|
45260
|
-
* @returns {Function} Returns the new function.
|
45261
|
-
*/
|
45262
|
-
function overArg(func, transform) {
|
45263
|
-
return function(arg) {
|
45264
|
-
return func(transform(arg));
|
45265
|
-
};
|
45266
|
-
}
|
45267
|
-
|
45268
|
-
module.exports = overArg;
|
45269
|
-
|
45270
|
-
|
45271
|
-
/***/ }),
|
45272
|
-
|
45273
|
-
/***/ "./node_modules/lodash/_parent.js":
|
45274
|
-
/*!****************************************!*\
|
45275
|
-
!*** ./node_modules/lodash/_parent.js ***!
|
45276
|
-
\****************************************/
|
45277
|
-
/***/ ((module) => {
|
45278
|
-
|
45279
|
-
/**
|
45280
|
-
* This method returns the first argument it receives.
|
45281
|
-
*
|
45282
|
-
* @static
|
45283
|
-
* @since 0.1.0
|
45284
|
-
* @memberOf _
|
45285
|
-
* @category Util
|
45286
|
-
* @param {*} value Any value.
|
45287
|
-
* @returns {*} Returns `value`.
|
45288
|
-
* @example
|
45289
|
-
*
|
45290
|
-
* var object = { 'a': 1 };
|
45291
|
-
*
|
45292
|
-
* console.log(_.identity(object) === object);
|
45293
|
-
* // => true
|
45294
|
-
*/
|
45295
|
-
function identity(value) {
|
45296
|
-
return value;
|
45297
|
-
}
|
45298
|
-
|
45299
|
-
module.exports = identity;
|
45300
|
-
|
45301
|
-
|
45302
45058
|
/***/ }),
|
45303
45059
|
|
45304
45060
|
/***/ "./node_modules/lodash/_root.js":
|
@@ -45812,78 +45568,6 @@ function isObjectLike(value) {
|
|
45812
45568
|
module.exports = isObjectLike;
|
45813
45569
|
|
45814
45570
|
|
45815
|
-
/***/ }),
|
45816
|
-
|
45817
|
-
/***/ "./node_modules/lodash/isPlainObject.js":
|
45818
|
-
/*!**********************************************!*\
|
45819
|
-
!*** ./node_modules/lodash/isPlainObject.js ***!
|
45820
|
-
\**********************************************/
|
45821
|
-
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
45822
|
-
|
45823
|
-
var baseGetTag = __webpack_require__(/*! ./_baseGetTag */ "./node_modules/lodash/_baseGetTag.js"),
|
45824
|
-
getPrototype = __webpack_require__(/*! ./_getPrototype */ "./node_modules/lodash/_getPrototype.js"),
|
45825
|
-
isObjectLike = __webpack_require__(/*! ./isObjectLike */ "./node_modules/lodash/isObjectLike.js");
|
45826
|
-
|
45827
|
-
/** `Object#toString` result references. */
|
45828
|
-
var objectTag = '[object Object]';
|
45829
|
-
|
45830
|
-
/** Used for built-in method references. */
|
45831
|
-
var funcProto = Function.prototype,
|
45832
|
-
objectProto = Object.prototype;
|
45833
|
-
|
45834
|
-
/** Used to resolve the decompiled source of functions. */
|
45835
|
-
var funcToString = funcProto.toString;
|
45836
|
-
|
45837
|
-
/** Used to check objects for own properties. */
|
45838
|
-
var hasOwnProperty = objectProto.hasOwnProperty;
|
45839
|
-
|
45840
|
-
/** Used to infer the `Object` constructor. */
|
45841
|
-
var objectCtorString = funcToString.call(Object);
|
45842
|
-
|
45843
|
-
/**
|
45844
|
-
* Checks if `value` is a plain object, that is, an object created by the
|
45845
|
-
* `Object` constructor or one with a `[[Prototype]]` of `null`.
|
45846
|
-
*
|
45847
|
-
* @static
|
45848
|
-
* @memberOf _
|
45849
|
-
* @since 0.8.0
|
45850
|
-
* @category Lang
|
45851
|
-
* @param {*} value The value to check.
|
45852
|
-
* @returns {boolean} Returns `true` if `value` is a plain object, else `false`.
|
45853
|
-
* @example
|
45854
|
-
*
|
45855
|
-
* function Foo() {
|
45856
|
-
* this.a = 1;
|
45857
|
-
* }
|
45858
|
-
*
|
45859
|
-
* _.isPlainObject(new Foo);
|
45860
|
-
* // => false
|
45861
|
-
*
|
45862
|
-
* _.isPlainObject([1, 2, 3]);
|
45863
|
-
* // => false
|
45864
|
-
*
|
45865
|
-
* _.isPlainObject({ 'x': 0, 'y': 0 });
|
45866
|
-
* // => true
|
45867
|
-
*
|
45868
|
-
* _.isPlainObject(Object.create(null));
|
45869
|
-
* // => true
|
45870
|
-
*/
|
45871
|
-
function isPlainObject(value) {
|
45872
|
-
if (!isObjectLike(value) || baseGetTag(value) != objectTag) {
|
45873
|
-
return false;
|
45874
|
-
}
|
45875
|
-
var proto = getPrototype(value);
|
45876
|
-
if (proto === null) {
|
45877
|
-
return true;
|
45878
|
-
}
|
45879
|
-
var Ctor = hasOwnProperty.call(proto, 'constructor') && proto.constructor;
|
45880
|
-
return typeof Ctor == 'function' && Ctor instanceof Ctor &&
|
45881
|
-
funcToString.call(Ctor) == objectCtorString;
|
45882
|
-
}
|
45883
|
-
|
45884
|
-
module.exports = isPlainObject;
|
45885
|
-
|
45886
|
-
|
45887
45571
|
/***/ }),
|
45888
45572
|
|
45889
45573
|
/***/ "./node_modules/lodash/isString.js":
|
@@ -45924,36 +45608,6 @@ function isString(value) {
|
|
45924
45608
|
module.exports = isString;
|
45925
45609
|
|
45926
45610
|
|
45927
|
-
/***/ }),
|
45928
|
-
|
45929
|
-
/***/ "./node_modules/lodash/last.js":
|
45930
|
-
/*!*************************************!*\
|
45931
|
-
!*** ./node_modules/lodash/last.js ***!
|
45932
|
-
\*************************************/
|
45933
|
-
/***/ ((module) => {
|
45934
|
-
|
45935
|
-
/**
|
45936
|
-
* Gets the last element of `array`.
|
45937
|
-
*
|
45938
|
-
* @static
|
45939
|
-
* @memberOf _
|
45940
|
-
* @since 0.1.0
|
45941
|
-
* @category Array
|
45942
|
-
* @param {Array} array The array to query.
|
45943
|
-
* @returns {*} Returns the last element of `array`.
|
45944
|
-
* @example
|
45945
|
-
*
|
45946
|
-
* _.last([1, 2, 3]);
|
45947
|
-
* // => 3
|
45948
|
-
*/
|
45949
|
-
function last(array) {
|
45950
|
-
var length = array == null ? 0 : array.length;
|
45951
|
-
return length ? array[length - 1] : undefined;
|
45952
|
-
}
|
45953
|
-
|
45954
|
-
module.exports = last;
|
45955
|
-
|
45956
|
-
|
45957
45611
|
/***/ }),
|
45958
45612
|
|
45959
45613
|
/***/ "./node_modules/lodash/memoize.js":
|
@@ -46070,73 +45724,6 @@ var now = function() {
|
|
46070
45724
|
module.exports = now;
|
46071
45725
|
|
46072
45726
|
|
46073
|
-
/***/ }),
|
46074
|
-
|
46075
|
-
/***/ "./node_modules/lodash/omit.js":
|
46076
|
-
/*!*************************************!*\
|
46077
|
-
!*** ./node_modules/lodash/omit.js ***!
|
46078
|
-
\*************************************/
|
46079
|
-
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
46080
|
-
|
46081
|
-
var arrayMap = __webpack_require__(/*! ./_arrayMap */ "./node_modules/lodash/_arrayMap.js"),
|
46082
|
-
baseClone = __webpack_require__(/*! ./_baseClone */ "./node_modules/lodash/_baseClone.js"),
|
46083
|
-
baseUnset = __webpack_require__(/*! ./_baseUnset */ "./node_modules/lodash/_baseUnset.js"),
|
46084
|
-
castPath = __webpack_require__(/*! ./_castPath */ "./node_modules/lodash/_castPath.js"),
|
46085
|
-
copyObject = __webpack_require__(/*! ./_copyObject */ "./node_modules/lodash/_copyObject.js"),
|
46086
|
-
customOmitClone = __webpack_require__(/*! ./_customOmitClone */ "./node_modules/lodash/_customOmitClone.js"),
|
46087
|
-
flatRest = __webpack_require__(/*! ./_flatRest */ "./node_modules/lodash/_flatRest.js"),
|
46088
|
-
getAllKeysIn = __webpack_require__(/*! ./_getAllKeysIn */ "./node_modules/lodash/_getAllKeysIn.js");
|
46089
|
-
|
46090
|
-
/** Used to compose bitmasks for cloning. */
|
46091
|
-
var CLONE_DEEP_FLAG = 1,
|
46092
|
-
CLONE_FLAT_FLAG = 2,
|
46093
|
-
CLONE_SYMBOLS_FLAG = 4;
|
46094
|
-
|
46095
|
-
/**
|
46096
|
-
* The opposite of `_.pick`; this method creates an object composed of the
|
46097
|
-
* own and inherited enumerable property paths of `object` that are not omitted.
|
46098
|
-
*
|
46099
|
-
* **Note:** This method is considerably slower than `_.pick`.
|
46100
|
-
*
|
46101
|
-
* @static
|
46102
|
-
* @since 0.1.0
|
46103
|
-
* @memberOf _
|
46104
|
-
* @category Object
|
46105
|
-
* @param {Object} object The source object.
|
46106
|
-
* @param {...(string|string[])} [paths] The property paths to omit.
|
46107
|
-
* @returns {Object} Returns the new object.
|
46108
|
-
* @example
|
46109
|
-
*
|
46110
|
-
* var object = { 'a': 1, 'b': '2', 'c': 3 };
|
46111
|
-
*
|
46112
|
-
* _.omit(object, ['a', 'c']);
|
46113
|
-
* // => { 'b': '2' }
|
46114
|
-
*/
|
46115
|
-
var omit = flatRest(function(object, paths) {
|
46116
|
-
var result = {};
|
46117
|
-
if (object == null) {
|
46118
|
-
return result;
|
46119
|
-
}
|
46120
|
-
var isDeep = false;
|
46121
|
-
paths = arrayMap(paths, function(path) {
|
46122
|
-
path = castPath(path, object);
|
46123
|
-
isDeep || (isDeep = path.length > 1);
|
46124
|
-
return path;
|
46125
|
-
});
|
46126
|
-
copyObject(object, getAllKeysIn(object), result);
|
46127
|
-
if (isDeep) {
|
46128
|
-
result = baseClone(result, CLONE_DEEP_FLAG | CLONE_FLAT_FLAG | CLONE_SYMBOLS_FLAG, customOmitClone);
|
46129
|
-
}
|
46130
|
-
var length = paths.length;
|
46131
|
-
while (length--) {
|
46132
|
-
baseUnset(result, paths[length]);
|
46133
|
-
}
|
46134
|
-
return result;
|
46135
|
-
});
|
46136
|
-
|
46137
|
-
module.exports = omit;
|
46138
|
-
|
46139
|
-
|
46140
45727
|
/***/ }),
|
46141
45728
|
|
46142
45729
|
/***/ "./node_modules/lodash/pickBy.js":
|