@luminati-io/uikit 3.0.2 → 3.0.4
Sign up to get free protection for your applications and to get access to all the features.
@@ -26192,22 +26192,24 @@ __webpack_require__.r(__webpack_exports__);
|
|
26192
26192
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
26193
26193
|
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
26194
26194
|
/* harmony export */ });
|
26195
|
-
/* harmony import */ var
|
26196
|
-
/* harmony import */ var
|
26197
|
-
/* harmony import */ var
|
26198
|
-
/* harmony import */ var
|
26199
|
-
/* harmony import */ var
|
26200
|
-
/* harmony import */ var
|
26201
|
-
/* harmony import */ var
|
26202
|
-
/* harmony import */ var
|
26203
|
-
/* harmony import */ var
|
26204
|
-
/* harmony import */ var
|
26205
|
-
/* harmony import */ var
|
26206
|
-
/* harmony import */ var
|
26207
|
-
/* harmony import */ var
|
26208
|
-
/* harmony import */ var
|
26209
|
-
/* harmony import */ var
|
26210
|
-
/* harmony import */ var
|
26195
|
+
/* harmony import */ var lodash_omit__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/omit */ "./node_modules/lodash/omit.js");
|
26196
|
+
/* harmony import */ var lodash_omit__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_omit__WEBPACK_IMPORTED_MODULE_0__);
|
26197
|
+
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! prop-types */ "prop-types");
|
26198
|
+
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
|
26199
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! react */ "react");
|
26200
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_2__);
|
26201
|
+
/* harmony import */ var styled_components__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! styled-components */ "styled-components");
|
26202
|
+
/* harmony import */ var styled_components__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(styled_components__WEBPACK_IMPORTED_MODULE_3__);
|
26203
|
+
/* harmony import */ var _hoc__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../hoc */ "./src/hoc/index.js");
|
26204
|
+
/* harmony import */ var _icon__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../icon */ "./src/icon.js");
|
26205
|
+
/* harmony import */ var _theme__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../theme */ "./src/theme.js");
|
26206
|
+
/* harmony import */ var _tooltip__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../tooltip */ "./src/tooltip.js");
|
26207
|
+
/* harmony import */ var _typography__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../typography */ "./src/typography/index.js");
|
26208
|
+
/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../utils */ "./src/utils.js");
|
26209
|
+
/* harmony import */ var _menu__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./menu */ "./src/menu/menu.js");
|
26210
|
+
/* harmony import */ var _menu_item_divider__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./menu_item_divider */ "./src/menu/menu_item_divider.js");
|
26211
|
+
/* harmony import */ var _menu_item_group__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./menu_item_group */ "./src/menu/menu_item_group.js");
|
26212
|
+
/* harmony import */ var _shared__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./shared */ "./src/menu/shared.js");
|
26211
26213
|
// LICENSE_CODE ZON
|
26212
26214
|
|
26213
26215
|
|
@@ -26232,7 +26234,8 @@ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) r
|
|
26232
26234
|
|
26233
26235
|
|
26234
26236
|
|
26235
|
-
|
26237
|
+
|
26238
|
+
var MenuItem = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().forwardRef(function (props, ref) {
|
26236
26239
|
var type = props.type,
|
26237
26240
|
text = props.text,
|
26238
26241
|
secondaryText = props.secondaryText,
|
@@ -26248,7 +26251,7 @@ var MenuItem = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().forward
|
|
26248
26251
|
tooltip = props.tooltip,
|
26249
26252
|
isFirstItem = props.isFirstItem,
|
26250
26253
|
rest = _objectWithoutProperties(props, _excluded);
|
26251
|
-
if (type == 'divider') return /*#__PURE__*/
|
26254
|
+
if (type == 'divider') return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(_menu_item_divider__WEBPACK_IMPORTED_MODULE_11__["default"], {
|
26252
26255
|
ref: ref
|
26253
26256
|
});
|
26254
26257
|
var subItems = buildSubItems(children, {
|
@@ -26256,41 +26259,41 @@ var MenuItem = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().forward
|
|
26256
26259
|
});
|
26257
26260
|
var isSubMenu = subMenu || subItems;
|
26258
26261
|
if (type == 'group') {
|
26259
|
-
return /*#__PURE__*/
|
26262
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(_menu_item_group__WEBPACK_IMPORTED_MODULE_12__["default"], _extends({
|
26260
26263
|
ref: ref,
|
26261
26264
|
text: text,
|
26262
26265
|
isFirstItem: isFirstItem
|
26263
26266
|
}, rest), subItems);
|
26264
26267
|
}
|
26265
|
-
var _getIconProps = (0,
|
26268
|
+
var _getIconProps = (0,_utils__WEBPACK_IMPORTED_MODULE_9__.getIconProps)('MenuItem', props),
|
26266
26269
|
isLeft = _getIconProps.isLeft,
|
26267
26270
|
iconProps = _objectWithoutProperties(_getIconProps, _excluded2);
|
26268
26271
|
var iconColor = disabled ? 'gray_6' : variant == 'negative' ? 'red_10' : 'gray_9';
|
26269
26272
|
var labelColor = disabled ? 'gray_9' : variant == 'negative' ? 'red_11' : 'gray_11_50';
|
26270
|
-
return /*#__PURE__*/
|
26273
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(_shared__WEBPACK_IMPORTED_MODULE_13__.MenuItemContainer, {
|
26271
26274
|
ref: ref,
|
26272
26275
|
as: tag,
|
26273
26276
|
role: "menuitem"
|
26274
|
-
}, /*#__PURE__*/
|
26277
|
+
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(_tooltip__WEBPACK_IMPORTED_MODULE_7__["default"], {
|
26275
26278
|
tooltip: tooltip,
|
26276
26279
|
noWrap: true
|
26277
|
-
}, /*#__PURE__*/
|
26280
|
+
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(MenuItemComp, _extends({}, lodash_omit__WEBPACK_IMPORTED_MODULE_0___default()(rest, 'icon', 'iconPlacement'), {
|
26278
26281
|
"aria-disabled": disabled ? '' : undefined,
|
26279
26282
|
size: size,
|
26280
26283
|
role: "button",
|
26281
26284
|
subItems: subItems
|
26282
|
-
}), /*#__PURE__*/
|
26285
|
+
}), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(MenuItemLeft, null, isLeft && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(_icon__WEBPACK_IMPORTED_MODULE_5__["default"], _extends({}, iconProps, {
|
26283
26286
|
color: iconColor
|
26284
|
-
})), /*#__PURE__*/
|
26287
|
+
})), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(MenuItemRight, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(MenuItemText, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(PrimaryText, {
|
26285
26288
|
no_wrap: true,
|
26286
26289
|
color: labelColor
|
26287
|
-
}, text), !isSubMenu && /*#__PURE__*/
|
26290
|
+
}, text), !isSubMenu && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement((react__WEBPACK_IMPORTED_MODULE_2___default().Fragment), null, !!tertiaryText && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(_typography__WEBPACK_IMPORTED_MODULE_8__.Label, {
|
26288
26291
|
variant: "sm",
|
26289
26292
|
no_wrap: true,
|
26290
26293
|
color: "gray_9"
|
26291
|
-
}, tertiaryText), !!secondaryText && /*#__PURE__*/
|
26294
|
+
}, tertiaryText), !!secondaryText && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(SecondaryText, null, secondaryText))), !!description && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(Description, null, description))), isSubMenu && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(SecondaryIcon, {
|
26292
26295
|
subMenu: true
|
26293
|
-
}), !isSubMenu && !secondaryText && /*#__PURE__*/
|
26296
|
+
}), !isSubMenu && !secondaryText && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(SecondaryIcon, {
|
26294
26297
|
selected: selected
|
26295
26298
|
}))));
|
26296
26299
|
});
|
@@ -26301,28 +26304,28 @@ MenuItem.defaultProps = {
|
|
26301
26304
|
variant: 'default'
|
26302
26305
|
};
|
26303
26306
|
MenuItem.propTypes = {
|
26304
|
-
text: (
|
26305
|
-
secondaryText: (
|
26306
|
-
tertiaryText: (
|
26307
|
-
description: (
|
26308
|
-
type:
|
26309
|
-
size:
|
26310
|
-
icon:
|
26311
|
-
children:
|
26312
|
-
variant:
|
26313
|
-
disabled: (
|
26314
|
-
selected: (
|
26315
|
-
subMenu: (
|
26316
|
-
tooltip: (
|
26307
|
+
text: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().string),
|
26308
|
+
secondaryText: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().string),
|
26309
|
+
tertiaryText: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().node),
|
26310
|
+
description: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().string),
|
26311
|
+
type: prop_types__WEBPACK_IMPORTED_MODULE_1___default().oneOf(['item', 'divider', 'group']),
|
26312
|
+
size: prop_types__WEBPACK_IMPORTED_MODULE_1___default().oneOf(['sm', 'md']),
|
26313
|
+
icon: prop_types__WEBPACK_IMPORTED_MODULE_1___default().oneOf(_utils__WEBPACK_IMPORTED_MODULE_9__.iconNames),
|
26314
|
+
children: prop_types__WEBPACK_IMPORTED_MODULE_1___default().arrayOf(prop_types__WEBPACK_IMPORTED_MODULE_1___default().shape(MenuItem.propTypes)),
|
26315
|
+
variant: prop_types__WEBPACK_IMPORTED_MODULE_1___default().oneOf(['default', 'negative']),
|
26316
|
+
disabled: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().bool),
|
26317
|
+
selected: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().bool),
|
26318
|
+
subMenu: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().bool),
|
26319
|
+
tooltip: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().string)
|
26317
26320
|
};
|
26318
|
-
var MenuItemComp = /*#__PURE__*/
|
26321
|
+
var MenuItemComp = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().forwardRef(function (props, ref) {
|
26319
26322
|
var subItems = props.subItems,
|
26320
26323
|
children = props.children,
|
26321
26324
|
rest = _objectWithoutProperties(props, _excluded3);
|
26322
|
-
if (!subItems) return /*#__PURE__*/
|
26325
|
+
if (!subItems) return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(MenuItemButton, _extends({
|
26323
26326
|
ref: ref
|
26324
26327
|
}, rest), children);
|
26325
|
-
return /*#__PURE__*/
|
26328
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(MenuItemPopover, _extends({
|
26326
26329
|
ref: ref,
|
26327
26330
|
popoverProps: {
|
26328
26331
|
subItems: subItems
|
@@ -26330,22 +26333,22 @@ var MenuItemComp = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().for
|
|
26330
26333
|
}, rest), children);
|
26331
26334
|
});
|
26332
26335
|
MenuItemComp.displayName = 'MenuItemComp';
|
26333
|
-
var MenuItemButton =
|
26336
|
+
var MenuItemButton = styled_components__WEBPACK_IMPORTED_MODULE_3___default().div.withConfig({
|
26334
26337
|
displayName: "MenuItemButton",
|
26335
26338
|
componentId: "sc-vtiffr-0"
|
26336
26339
|
})(["display:flex;flex-direction:row;align-items:center;justify-content:flex-start;text-decoration:none;background:0 none;border:0 none;padding:0 12px;box-sizing:border-box;width:100%;min-width:168px;max-width:540px;height:", ";gap:4px;cursor:", ";&:hover{background-color:", ";}&:hover,:visited,:focus{text-decoration:none;}&:active{background-color:", ";}"], function (props) {
|
26337
|
-
return (0,
|
26340
|
+
return (0,_utils__WEBPACK_IMPORTED_MODULE_9__.toPixel)(props.size == 'sm' ? 32 : 40);
|
26338
26341
|
}, function (props) {
|
26339
26342
|
return props['aria-disabled'] ? 'not-allowed' : 'pointer';
|
26340
|
-
},
|
26341
|
-
var MenuItemPopover = (0,
|
26343
|
+
}, _theme__WEBPACK_IMPORTED_MODULE_6__["default"].color.gray_2, _theme__WEBPACK_IMPORTED_MODULE_6__["default"].color.gray_4);
|
26344
|
+
var MenuItemPopover = (0,_hoc__WEBPACK_IMPORTED_MODULE_4__.withPopover)(function (_ref) {
|
26342
26345
|
var popover = _ref.popover,
|
26343
26346
|
rest = _objectWithoutProperties(_ref, _excluded4);
|
26344
|
-
return /*#__PURE__*/
|
26347
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(MenuItemButton, _extends({}, rest, {
|
26345
26348
|
onClick: popover.toggle
|
26346
26349
|
}));
|
26347
26350
|
}, function (props) {
|
26348
|
-
return /*#__PURE__*/
|
26351
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(_shared__WEBPACK_IMPORTED_MODULE_13__.MenuContainer, {
|
26349
26352
|
onClick: props.popover.hide
|
26350
26353
|
}, props.subItems);
|
26351
26354
|
}, {
|
@@ -26354,45 +26357,45 @@ var MenuItemPopover = (0,_hoc__WEBPACK_IMPORTED_MODULE_3__.withPopover)(function
|
|
26354
26357
|
width: '100%'
|
26355
26358
|
}
|
26356
26359
|
});
|
26357
|
-
var MenuItemLeft =
|
26360
|
+
var MenuItemLeft = styled_components__WEBPACK_IMPORTED_MODULE_3___default().div.withConfig({
|
26358
26361
|
displayName: "MenuItemLeft",
|
26359
26362
|
componentId: "sc-vtiffr-1"
|
26360
26363
|
})(["display:flex;flex-direction:row;align-items:center;justify-content:flex-start;gap:8px;width:100%;min-width:0;"]);
|
26361
|
-
var MenuItemRight =
|
26364
|
+
var MenuItemRight = styled_components__WEBPACK_IMPORTED_MODULE_3___default().div.withConfig({
|
26362
26365
|
displayName: "MenuItemRight",
|
26363
26366
|
componentId: "sc-vtiffr-2"
|
26364
26367
|
})(["display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:4px;width:100%;min-width:0;"]);
|
26365
|
-
var MenuItemText =
|
26368
|
+
var MenuItemText = styled_components__WEBPACK_IMPORTED_MODULE_3___default().div.withConfig({
|
26366
26369
|
displayName: "MenuItemText",
|
26367
26370
|
componentId: "sc-vtiffr-3"
|
26368
26371
|
})(["display:flex;align-items:center;justify-content:flex-start;width:100%;gap:8px;"]);
|
26369
26372
|
var SecondaryIcon = function SecondaryIcon(props) {
|
26370
26373
|
var subMenu = props.subMenu,
|
26371
26374
|
selected = props.selected;
|
26372
|
-
if (subMenu) return /*#__PURE__*/
|
26375
|
+
if (subMenu) return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(RightIcon, {
|
26373
26376
|
name: "ChevronRight"
|
26374
26377
|
});
|
26375
|
-
if (selected) return /*#__PURE__*/
|
26378
|
+
if (selected) return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(RightIcon, {
|
26376
26379
|
name: "Check",
|
26377
26380
|
color: "blue_11"
|
26378
26381
|
});
|
26379
26382
|
return null;
|
26380
26383
|
};
|
26381
26384
|
SecondaryIcon.displayName = 'SecondaryIcon';
|
26382
|
-
var RightIcon =
|
26385
|
+
var RightIcon = styled_components__WEBPACK_IMPORTED_MODULE_3___default()(_icon__WEBPACK_IMPORTED_MODULE_5__["default"]).attrs({
|
26383
26386
|
size: 'xs'
|
26384
26387
|
}).withConfig({
|
26385
26388
|
displayName: "RightIcon",
|
26386
26389
|
componentId: "sc-vtiffr-4"
|
26387
26390
|
})(["margin-left:auto;"]);
|
26388
|
-
var PrimaryText =
|
26391
|
+
var PrimaryText = styled_components__WEBPACK_IMPORTED_MODULE_3___default()(_typography__WEBPACK_IMPORTED_MODULE_8__.Label).attrs({
|
26389
26392
|
variant: 'sm',
|
26390
26393
|
no_wrap: true
|
26391
26394
|
}).withConfig({
|
26392
26395
|
displayName: "PrimaryText",
|
26393
26396
|
componentId: "sc-vtiffr-5"
|
26394
26397
|
})(["overflow-x:clip;text-overflow:ellipsis;"]);
|
26395
|
-
var SecondaryText =
|
26398
|
+
var SecondaryText = styled_components__WEBPACK_IMPORTED_MODULE_3___default()(_typography__WEBPACK_IMPORTED_MODULE_8__.Label).attrs({
|
26396
26399
|
variant: 'sm',
|
26397
26400
|
color: 'gray_9',
|
26398
26401
|
no_wrap: true
|
@@ -26400,7 +26403,7 @@ var SecondaryText = styled_components__WEBPACK_IMPORTED_MODULE_2___default()(_ty
|
|
26400
26403
|
displayName: "SecondaryText",
|
26401
26404
|
componentId: "sc-vtiffr-6"
|
26402
26405
|
})(["margin-left:auto;"]);
|
26403
|
-
var Description =
|
26406
|
+
var Description = styled_components__WEBPACK_IMPORTED_MODULE_3___default()(_typography__WEBPACK_IMPORTED_MODULE_8__.Label).attrs({
|
26404
26407
|
variant: 'xs',
|
26405
26408
|
color: 'gray_9',
|
26406
26409
|
no_wrap: true
|
@@ -26410,7 +26413,7 @@ var Description = styled_components__WEBPACK_IMPORTED_MODULE_2___default()(_typo
|
|
26410
26413
|
})(["width:100%;overflow-x:clip;text-overflow:ellipsis;"]);
|
26411
26414
|
var buildSubItems = function buildSubItems(children, itemProps) {
|
26412
26415
|
return Array.isArray(children) && children.length > 0 ? children.map(function (item, ind) {
|
26413
|
-
return /*#__PURE__*/
|
26416
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(_menu__WEBPACK_IMPORTED_MODULE_10__["default"].Item, _extends({
|
26414
26417
|
key: item.key
|
26415
26418
|
}, item, itemProps, {
|
26416
26419
|
isFirstItem: ind == 0
|
@@ -30310,7 +30313,8 @@ Header.defaultProps = {
|
|
30310
30313
|
variant: 'xl'
|
30311
30314
|
};
|
30312
30315
|
Header.propTypes = {
|
30313
|
-
variant: prop_types__WEBPACK_IMPORTED_MODULE_1___default().oneOf(['xl', '2xl'])
|
30316
|
+
variant: prop_types__WEBPACK_IMPORTED_MODULE_1___default().oneOf(['xl', '2xl']),
|
30317
|
+
whiteSpace: prop_types__WEBPACK_IMPORTED_MODULE_1___default().oneOf(_utils__WEBPACK_IMPORTED_MODULE_3__.whiteSpaces)
|
30314
30318
|
};
|
30315
30319
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (Header);
|
30316
30320
|
|
@@ -30366,7 +30370,8 @@ Hyperlink.defaultProps = {
|
|
30366
30370
|
variant: 'lg'
|
30367
30371
|
};
|
30368
30372
|
Hyperlink.propTypes = {
|
30369
|
-
variant: prop_types__WEBPACK_IMPORTED_MODULE_1___default().oneOf(['xs', 'lg'])
|
30373
|
+
variant: prop_types__WEBPACK_IMPORTED_MODULE_1___default().oneOf(['xs', 'lg']),
|
30374
|
+
whiteSpace: prop_types__WEBPACK_IMPORTED_MODULE_1___default().oneOf(_utils__WEBPACK_IMPORTED_MODULE_3__.whiteSpaces)
|
30370
30375
|
};
|
30371
30376
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (Hyperlink);
|
30372
30377
|
|
@@ -30519,7 +30524,8 @@ Paragraph.defaultProps = {
|
|
30519
30524
|
variant: 'lg_snug'
|
30520
30525
|
};
|
30521
30526
|
Paragraph.propTypes = {
|
30522
|
-
variant: prop_types__WEBPACK_IMPORTED_MODULE_1___default().oneOf(['xxs', 'xs', 'sm', 'lg_snug', 'lg_loose'])
|
30527
|
+
variant: prop_types__WEBPACK_IMPORTED_MODULE_1___default().oneOf(['xxs', 'xs', 'sm', 'lg_snug', 'lg_loose']),
|
30528
|
+
whiteSpace: prop_types__WEBPACK_IMPORTED_MODULE_1___default().oneOf(_utils__WEBPACK_IMPORTED_MODULE_3__.whiteSpaces)
|
30523
30529
|
};
|
30524
30530
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (Paragraph);
|
30525
30531
|
|
@@ -30585,7 +30591,8 @@ Style.defaultProps = {
|
|
30585
30591
|
variant: 'italic_lg'
|
30586
30592
|
};
|
30587
30593
|
Style.propTypes = {
|
30588
|
-
variant: prop_types__WEBPACK_IMPORTED_MODULE_1___default().oneOf(['italic_lg', 'italic_sm', 'italic_xs', 'code', 'capitals'])
|
30594
|
+
variant: prop_types__WEBPACK_IMPORTED_MODULE_1___default().oneOf(['italic_lg', 'italic_sm', 'italic_xs', 'code', 'capitals']),
|
30595
|
+
whiteSpace: prop_types__WEBPACK_IMPORTED_MODULE_1___default().oneOf(_utils__WEBPACK_IMPORTED_MODULE_3__.whiteSpaces)
|
30589
30596
|
};
|
30590
30597
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (Style);
|
30591
30598
|
|
@@ -30611,7 +30618,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
30611
30618
|
|
30612
30619
|
|
30613
30620
|
/*jslint react:true*/
|
30614
|
-
var _excluded = ["children", "font_family", "font_weight", "font_size", "line_height", "letter_spacing", "color", "italic", "uppercase", "no_wrap", "underline"];
|
30621
|
+
var _excluded = ["children", "font_family", "font_weight", "font_size", "line_height", "letter_spacing", "color", "italic", "uppercase", "no_wrap", "underline", "whiteSpace"];
|
30615
30622
|
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); }
|
30616
30623
|
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; }
|
30617
30624
|
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; }
|
@@ -30630,6 +30637,7 @@ var Typography = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().forwa
|
|
30630
30637
|
uppercase = props.uppercase,
|
30631
30638
|
no_wrap = props.no_wrap,
|
30632
30639
|
underline = props.underline,
|
30640
|
+
whiteSpace = props.whiteSpace,
|
30633
30641
|
rest = _objectWithoutProperties(props, _excluded);
|
30634
30642
|
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(StyledTypography, _extends({
|
30635
30643
|
ref: ref,
|
@@ -30642,7 +30650,8 @@ var Typography = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().forwa
|
|
30642
30650
|
$italic: italic,
|
30643
30651
|
$uppercase: uppercase,
|
30644
30652
|
$noWrap: no_wrap,
|
30645
|
-
$underline: underline
|
30653
|
+
$underline: underline,
|
30654
|
+
$whiteSpace: whiteSpace
|
30646
30655
|
}, rest), children);
|
30647
30656
|
});
|
30648
30657
|
Typography.displayName = 'Typography';
|
@@ -30658,6 +30667,7 @@ var StyledTypography = styled_components__WEBPACK_IMPORTED_MODULE_1___default().
|
|
30658
30667
|
}, function (props) {
|
30659
30668
|
return props.$uppercase ? 'letter-spacing: 0.02em;' : null;
|
30660
30669
|
}, function (props) {
|
30670
|
+
if (props.$whiteSpace && _utils__WEBPACK_IMPORTED_MODULE_2__.whiteSpaces.includes(props.$whiteSpace)) return "white-space: ".concat(props.$whiteSpace);
|
30661
30671
|
return props.$noWrap ? 'white-space: nowrap;' : null;
|
30662
30672
|
}, function (props) {
|
30663
30673
|
return props.underline ? 'text-decoration: underline;' : null;
|
@@ -30688,7 +30698,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
30688
30698
|
/* harmony export */ toIconSize: () => (/* binding */ toIconSize),
|
30689
30699
|
/* harmony export */ toPixel: () => (/* binding */ toPixel),
|
30690
30700
|
/* harmony export */ toSize: () => (/* binding */ toSize),
|
30691
|
-
/* harmony export */ tooltipPlacements: () => (/* binding */ tooltipPlacements)
|
30701
|
+
/* harmony export */ tooltipPlacements: () => (/* binding */ tooltipPlacements),
|
30702
|
+
/* harmony export */ whiteSpaces: () => (/* binding */ whiteSpaces)
|
30692
30703
|
/* harmony export */ });
|
30693
30704
|
/* harmony import */ var _icons__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @icons */ "./assets/icons/index.js");
|
30694
30705
|
/* harmony import */ var lodash_pickBy__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! lodash/pickBy */ "./node_modules/lodash/pickBy.js");
|
@@ -30712,6 +30723,7 @@ function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input ==
|
|
30712
30723
|
|
30713
30724
|
var colorNames = Object.keys(_theme__WEBPACK_IMPORTED_MODULE_3__["default"].color);
|
30714
30725
|
var iconNames = Object.keys(_icons__WEBPACK_IMPORTED_MODULE_0__["default"]);
|
30726
|
+
var whiteSpaces = ['normal', 'nowrap', 'pre', 'pre-wrap', 'pre-line', 'break-spaces'];
|
30715
30727
|
var toPixel = function toPixel(value) {
|
30716
30728
|
return "".concat(value, "px");
|
30717
30729
|
};
|
@@ -30741,7 +30753,8 @@ var getTypographyProps = function getTypographyProps(props) {
|
|
30741
30753
|
italic = props.italic,
|
30742
30754
|
color = props.color,
|
30743
30755
|
no_wrap = props.no_wrap,
|
30744
|
-
underline = props.underline
|
30756
|
+
underline = props.underline,
|
30757
|
+
whiteSpace = props.whiteSpace;
|
30745
30758
|
return _objectSpread({
|
30746
30759
|
as: as,
|
30747
30760
|
font_family: font_family,
|
@@ -30752,7 +30765,8 @@ var getTypographyProps = function getTypographyProps(props) {
|
|
30752
30765
|
italic: italic,
|
30753
30766
|
color: color,
|
30754
30767
|
no_wrap: no_wrap,
|
30755
|
-
underline: underline
|
30768
|
+
underline: underline,
|
30769
|
+
whiteSpace: whiteSpace
|
30756
30770
|
}, getCommonProps(props));
|
30757
30771
|
};
|
30758
30772
|
function fromTheme(propName, defaultValue) {
|
@@ -45157,6 +45171,37 @@ function baseClamp(number, lower, upper) {
|
|
45157
45171
|
module.exports = baseClamp;
|
45158
45172
|
|
45159
45173
|
|
45174
|
+
/***/ }),
|
45175
|
+
|
45176
|
+
/***/ "./node_modules/lodash/_baseClone.js":
|
45177
|
+
/*!*******************************************!*\
|
45178
|
+
!*** ./node_modules/lodash/_baseClone.js ***!
|
45179
|
+
\*******************************************/
|
45180
|
+
/***/ ((module) => {
|
45181
|
+
|
45182
|
+
/**
|
45183
|
+
* This method returns the first argument it receives.
|
45184
|
+
*
|
45185
|
+
* @static
|
45186
|
+
* @since 0.1.0
|
45187
|
+
* @memberOf _
|
45188
|
+
* @category Util
|
45189
|
+
* @param {*} value Any value.
|
45190
|
+
* @returns {*} Returns `value`.
|
45191
|
+
* @example
|
45192
|
+
*
|
45193
|
+
* var object = { 'a': 1 };
|
45194
|
+
*
|
45195
|
+
* console.log(_.identity(object) === object);
|
45196
|
+
* // => true
|
45197
|
+
*/
|
45198
|
+
function identity(value) {
|
45199
|
+
return value;
|
45200
|
+
}
|
45201
|
+
|
45202
|
+
module.exports = identity;
|
45203
|
+
|
45204
|
+
|
45160
45205
|
/***/ }),
|
45161
45206
|
|
45162
45207
|
/***/ "./node_modules/lodash/_baseGet.js":
|
@@ -45385,6 +45430,36 @@ function baseSlice(array, start, end) {
|
|
45385
45430
|
module.exports = baseSlice;
|
45386
45431
|
|
45387
45432
|
|
45433
|
+
/***/ }),
|
45434
|
+
|
45435
|
+
/***/ "./node_modules/lodash/_baseUnset.js":
|
45436
|
+
/*!*******************************************!*\
|
45437
|
+
!*** ./node_modules/lodash/_baseUnset.js ***!
|
45438
|
+
\*******************************************/
|
45439
|
+
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
45440
|
+
|
45441
|
+
var castPath = __webpack_require__(/*! ./_castPath */ "./node_modules/lodash/_castPath.js"),
|
45442
|
+
last = __webpack_require__(/*! ./last */ "./node_modules/lodash/last.js"),
|
45443
|
+
parent = __webpack_require__(/*! ./_parent */ "./node_modules/lodash/_parent.js"),
|
45444
|
+
toKey = __webpack_require__(/*! ./_toKey */ "./node_modules/lodash/_toKey.js");
|
45445
|
+
|
45446
|
+
/**
|
45447
|
+
* The base implementation of `_.unset`.
|
45448
|
+
*
|
45449
|
+
* @private
|
45450
|
+
* @param {Object} object The object to modify.
|
45451
|
+
* @param {Array|string} path The property path to unset.
|
45452
|
+
* @returns {boolean} Returns `true` if the property is deleted, else `false`.
|
45453
|
+
*/
|
45454
|
+
function baseUnset(object, path) {
|
45455
|
+
path = castPath(path, object);
|
45456
|
+
object = parent(object, path);
|
45457
|
+
return object == null || delete object[toKey(last(path))];
|
45458
|
+
}
|
45459
|
+
|
45460
|
+
module.exports = baseUnset;
|
45461
|
+
|
45462
|
+
|
45388
45463
|
/***/ }),
|
45389
45464
|
|
45390
45465
|
/***/ "./node_modules/lodash/_castPath.js":
|
@@ -45467,6 +45542,56 @@ function castSlice(array, start, end) {
|
|
45467
45542
|
module.exports = castSlice;
|
45468
45543
|
|
45469
45544
|
|
45545
|
+
/***/ }),
|
45546
|
+
|
45547
|
+
/***/ "./node_modules/lodash/_copyObject.js":
|
45548
|
+
/*!********************************************!*\
|
45549
|
+
!*** ./node_modules/lodash/_copyObject.js ***!
|
45550
|
+
\********************************************/
|
45551
|
+
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
45552
|
+
|
45553
|
+
var assignValue = __webpack_require__(/*! ./_assignValue */ "./node_modules/lodash/_assignValue.js"),
|
45554
|
+
baseAssignValue = __webpack_require__(/*! ./_baseAssignValue */ "./node_modules/lodash/_baseAssignValue.js");
|
45555
|
+
|
45556
|
+
/**
|
45557
|
+
* Copies properties of `source` to `object`.
|
45558
|
+
*
|
45559
|
+
* @private
|
45560
|
+
* @param {Object} source The object to copy properties from.
|
45561
|
+
* @param {Array} props The property identifiers to copy.
|
45562
|
+
* @param {Object} [object={}] The object to copy properties to.
|
45563
|
+
* @param {Function} [customizer] The function to customize copied values.
|
45564
|
+
* @returns {Object} Returns `object`.
|
45565
|
+
*/
|
45566
|
+
function copyObject(source, props, object, customizer) {
|
45567
|
+
var isNew = !object;
|
45568
|
+
object || (object = {});
|
45569
|
+
|
45570
|
+
var index = -1,
|
45571
|
+
length = props.length;
|
45572
|
+
|
45573
|
+
while (++index < length) {
|
45574
|
+
var key = props[index];
|
45575
|
+
|
45576
|
+
var newValue = customizer
|
45577
|
+
? customizer(object[key], source[key], key, object, source)
|
45578
|
+
: undefined;
|
45579
|
+
|
45580
|
+
if (newValue === undefined) {
|
45581
|
+
newValue = source[key];
|
45582
|
+
}
|
45583
|
+
if (isNew) {
|
45584
|
+
baseAssignValue(object, key, newValue);
|
45585
|
+
} else {
|
45586
|
+
assignValue(object, key, newValue);
|
45587
|
+
}
|
45588
|
+
}
|
45589
|
+
return object;
|
45590
|
+
}
|
45591
|
+
|
45592
|
+
module.exports = copyObject;
|
45593
|
+
|
45594
|
+
|
45470
45595
|
/***/ }),
|
45471
45596
|
|
45472
45597
|
/***/ "./node_modules/lodash/_createCaseFirst.js":
|
@@ -45510,6 +45635,32 @@ function createCaseFirst(methodName) {
|
|
45510
45635
|
module.exports = createCaseFirst;
|
45511
45636
|
|
45512
45637
|
|
45638
|
+
/***/ }),
|
45639
|
+
|
45640
|
+
/***/ "./node_modules/lodash/_customOmitClone.js":
|
45641
|
+
/*!*************************************************!*\
|
45642
|
+
!*** ./node_modules/lodash/_customOmitClone.js ***!
|
45643
|
+
\*************************************************/
|
45644
|
+
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
45645
|
+
|
45646
|
+
var isPlainObject = __webpack_require__(/*! ./isPlainObject */ "./node_modules/lodash/isPlainObject.js");
|
45647
|
+
|
45648
|
+
/**
|
45649
|
+
* Used by `_.omit` to customize its `_.cloneDeep` use to only clone plain
|
45650
|
+
* objects.
|
45651
|
+
*
|
45652
|
+
* @private
|
45653
|
+
* @param {*} value The value to inspect.
|
45654
|
+
* @param {string} key The key of the property to inspect.
|
45655
|
+
* @returns {*} Returns the uncloned value or `undefined` to defer cloning to `_.cloneDeep`.
|
45656
|
+
*/
|
45657
|
+
function customOmitClone(value) {
|
45658
|
+
return isPlainObject(value) ? undefined : value;
|
45659
|
+
}
|
45660
|
+
|
45661
|
+
module.exports = customOmitClone;
|
45662
|
+
|
45663
|
+
|
45513
45664
|
/***/ }),
|
45514
45665
|
|
45515
45666
|
/***/ "./node_modules/lodash/_defineProperty.js":
|
@@ -45531,6 +45682,37 @@ var defineProperty = (function() {
|
|
45531
45682
|
module.exports = defineProperty;
|
45532
45683
|
|
45533
45684
|
|
45685
|
+
/***/ }),
|
45686
|
+
|
45687
|
+
/***/ "./node_modules/lodash/_flatRest.js":
|
45688
|
+
/*!******************************************!*\
|
45689
|
+
!*** ./node_modules/lodash/_flatRest.js ***!
|
45690
|
+
\******************************************/
|
45691
|
+
/***/ ((module) => {
|
45692
|
+
|
45693
|
+
/**
|
45694
|
+
* This method returns the first argument it receives.
|
45695
|
+
*
|
45696
|
+
* @static
|
45697
|
+
* @since 0.1.0
|
45698
|
+
* @memberOf _
|
45699
|
+
* @category Util
|
45700
|
+
* @param {*} value Any value.
|
45701
|
+
* @returns {*} Returns `value`.
|
45702
|
+
* @example
|
45703
|
+
*
|
45704
|
+
* var object = { 'a': 1 };
|
45705
|
+
*
|
45706
|
+
* console.log(_.identity(object) === object);
|
45707
|
+
* // => true
|
45708
|
+
*/
|
45709
|
+
function identity(value) {
|
45710
|
+
return value;
|
45711
|
+
}
|
45712
|
+
|
45713
|
+
module.exports = identity;
|
45714
|
+
|
45715
|
+
|
45534
45716
|
/***/ }),
|
45535
45717
|
|
45536
45718
|
/***/ "./node_modules/lodash/_freeGlobal.js":
|
@@ -45598,6 +45780,22 @@ function getValue(object, key) {
|
|
45598
45780
|
module.exports = getValue;
|
45599
45781
|
|
45600
45782
|
|
45783
|
+
/***/ }),
|
45784
|
+
|
45785
|
+
/***/ "./node_modules/lodash/_getPrototype.js":
|
45786
|
+
/*!**********************************************!*\
|
45787
|
+
!*** ./node_modules/lodash/_getPrototype.js ***!
|
45788
|
+
\**********************************************/
|
45789
|
+
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
45790
|
+
|
45791
|
+
var overArg = __webpack_require__(/*! ./_overArg */ "./node_modules/lodash/_overArg.js");
|
45792
|
+
|
45793
|
+
/** Built-in value references. */
|
45794
|
+
var getPrototype = overArg(Object.getPrototypeOf, Object);
|
45795
|
+
|
45796
|
+
module.exports = getPrototype;
|
45797
|
+
|
45798
|
+
|
45601
45799
|
/***/ }),
|
45602
45800
|
|
45603
45801
|
/***/ "./node_modules/lodash/_hasUnicode.js":
|
@@ -45820,6 +46018,62 @@ function listCacheSet(key, value) {
|
|
45820
46018
|
module.exports = listCacheSet;
|
45821
46019
|
|
45822
46020
|
|
46021
|
+
/***/ }),
|
46022
|
+
|
46023
|
+
/***/ "./node_modules/lodash/_overArg.js":
|
46024
|
+
/*!*****************************************!*\
|
46025
|
+
!*** ./node_modules/lodash/_overArg.js ***!
|
46026
|
+
\*****************************************/
|
46027
|
+
/***/ ((module) => {
|
46028
|
+
|
46029
|
+
/**
|
46030
|
+
* Creates a unary function that invokes `func` with its argument transformed.
|
46031
|
+
*
|
46032
|
+
* @private
|
46033
|
+
* @param {Function} func The function to wrap.
|
46034
|
+
* @param {Function} transform The argument transform.
|
46035
|
+
* @returns {Function} Returns the new function.
|
46036
|
+
*/
|
46037
|
+
function overArg(func, transform) {
|
46038
|
+
return function(arg) {
|
46039
|
+
return func(transform(arg));
|
46040
|
+
};
|
46041
|
+
}
|
46042
|
+
|
46043
|
+
module.exports = overArg;
|
46044
|
+
|
46045
|
+
|
46046
|
+
/***/ }),
|
46047
|
+
|
46048
|
+
/***/ "./node_modules/lodash/_parent.js":
|
46049
|
+
/*!****************************************!*\
|
46050
|
+
!*** ./node_modules/lodash/_parent.js ***!
|
46051
|
+
\****************************************/
|
46052
|
+
/***/ ((module) => {
|
46053
|
+
|
46054
|
+
/**
|
46055
|
+
* This method returns the first argument it receives.
|
46056
|
+
*
|
46057
|
+
* @static
|
46058
|
+
* @since 0.1.0
|
46059
|
+
* @memberOf _
|
46060
|
+
* @category Util
|
46061
|
+
* @param {*} value Any value.
|
46062
|
+
* @returns {*} Returns `value`.
|
46063
|
+
* @example
|
46064
|
+
*
|
46065
|
+
* var object = { 'a': 1 };
|
46066
|
+
*
|
46067
|
+
* console.log(_.identity(object) === object);
|
46068
|
+
* // => true
|
46069
|
+
*/
|
46070
|
+
function identity(value) {
|
46071
|
+
return value;
|
46072
|
+
}
|
46073
|
+
|
46074
|
+
module.exports = identity;
|
46075
|
+
|
46076
|
+
|
45823
46077
|
/***/ }),
|
45824
46078
|
|
45825
46079
|
/***/ "./node_modules/lodash/_root.js":
|
@@ -46333,6 +46587,78 @@ function isObjectLike(value) {
|
|
46333
46587
|
module.exports = isObjectLike;
|
46334
46588
|
|
46335
46589
|
|
46590
|
+
/***/ }),
|
46591
|
+
|
46592
|
+
/***/ "./node_modules/lodash/isPlainObject.js":
|
46593
|
+
/*!**********************************************!*\
|
46594
|
+
!*** ./node_modules/lodash/isPlainObject.js ***!
|
46595
|
+
\**********************************************/
|
46596
|
+
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
46597
|
+
|
46598
|
+
var baseGetTag = __webpack_require__(/*! ./_baseGetTag */ "./node_modules/lodash/_baseGetTag.js"),
|
46599
|
+
getPrototype = __webpack_require__(/*! ./_getPrototype */ "./node_modules/lodash/_getPrototype.js"),
|
46600
|
+
isObjectLike = __webpack_require__(/*! ./isObjectLike */ "./node_modules/lodash/isObjectLike.js");
|
46601
|
+
|
46602
|
+
/** `Object#toString` result references. */
|
46603
|
+
var objectTag = '[object Object]';
|
46604
|
+
|
46605
|
+
/** Used for built-in method references. */
|
46606
|
+
var funcProto = Function.prototype,
|
46607
|
+
objectProto = Object.prototype;
|
46608
|
+
|
46609
|
+
/** Used to resolve the decompiled source of functions. */
|
46610
|
+
var funcToString = funcProto.toString;
|
46611
|
+
|
46612
|
+
/** Used to check objects for own properties. */
|
46613
|
+
var hasOwnProperty = objectProto.hasOwnProperty;
|
46614
|
+
|
46615
|
+
/** Used to infer the `Object` constructor. */
|
46616
|
+
var objectCtorString = funcToString.call(Object);
|
46617
|
+
|
46618
|
+
/**
|
46619
|
+
* Checks if `value` is a plain object, that is, an object created by the
|
46620
|
+
* `Object` constructor or one with a `[[Prototype]]` of `null`.
|
46621
|
+
*
|
46622
|
+
* @static
|
46623
|
+
* @memberOf _
|
46624
|
+
* @since 0.8.0
|
46625
|
+
* @category Lang
|
46626
|
+
* @param {*} value The value to check.
|
46627
|
+
* @returns {boolean} Returns `true` if `value` is a plain object, else `false`.
|
46628
|
+
* @example
|
46629
|
+
*
|
46630
|
+
* function Foo() {
|
46631
|
+
* this.a = 1;
|
46632
|
+
* }
|
46633
|
+
*
|
46634
|
+
* _.isPlainObject(new Foo);
|
46635
|
+
* // => false
|
46636
|
+
*
|
46637
|
+
* _.isPlainObject([1, 2, 3]);
|
46638
|
+
* // => false
|
46639
|
+
*
|
46640
|
+
* _.isPlainObject({ 'x': 0, 'y': 0 });
|
46641
|
+
* // => true
|
46642
|
+
*
|
46643
|
+
* _.isPlainObject(Object.create(null));
|
46644
|
+
* // => true
|
46645
|
+
*/
|
46646
|
+
function isPlainObject(value) {
|
46647
|
+
if (!isObjectLike(value) || baseGetTag(value) != objectTag) {
|
46648
|
+
return false;
|
46649
|
+
}
|
46650
|
+
var proto = getPrototype(value);
|
46651
|
+
if (proto === null) {
|
46652
|
+
return true;
|
46653
|
+
}
|
46654
|
+
var Ctor = hasOwnProperty.call(proto, 'constructor') && proto.constructor;
|
46655
|
+
return typeof Ctor == 'function' && Ctor instanceof Ctor &&
|
46656
|
+
funcToString.call(Ctor) == objectCtorString;
|
46657
|
+
}
|
46658
|
+
|
46659
|
+
module.exports = isPlainObject;
|
46660
|
+
|
46661
|
+
|
46336
46662
|
/***/ }),
|
46337
46663
|
|
46338
46664
|
/***/ "./node_modules/lodash/isString.js":
|
@@ -46373,6 +46699,36 @@ function isString(value) {
|
|
46373
46699
|
module.exports = isString;
|
46374
46700
|
|
46375
46701
|
|
46702
|
+
/***/ }),
|
46703
|
+
|
46704
|
+
/***/ "./node_modules/lodash/last.js":
|
46705
|
+
/*!*************************************!*\
|
46706
|
+
!*** ./node_modules/lodash/last.js ***!
|
46707
|
+
\*************************************/
|
46708
|
+
/***/ ((module) => {
|
46709
|
+
|
46710
|
+
/**
|
46711
|
+
* Gets the last element of `array`.
|
46712
|
+
*
|
46713
|
+
* @static
|
46714
|
+
* @memberOf _
|
46715
|
+
* @since 0.1.0
|
46716
|
+
* @category Array
|
46717
|
+
* @param {Array} array The array to query.
|
46718
|
+
* @returns {*} Returns the last element of `array`.
|
46719
|
+
* @example
|
46720
|
+
*
|
46721
|
+
* _.last([1, 2, 3]);
|
46722
|
+
* // => 3
|
46723
|
+
*/
|
46724
|
+
function last(array) {
|
46725
|
+
var length = array == null ? 0 : array.length;
|
46726
|
+
return length ? array[length - 1] : undefined;
|
46727
|
+
}
|
46728
|
+
|
46729
|
+
module.exports = last;
|
46730
|
+
|
46731
|
+
|
46376
46732
|
/***/ }),
|
46377
46733
|
|
46378
46734
|
/***/ "./node_modules/lodash/memoize.js":
|
@@ -46489,6 +46845,73 @@ var now = function() {
|
|
46489
46845
|
module.exports = now;
|
46490
46846
|
|
46491
46847
|
|
46848
|
+
/***/ }),
|
46849
|
+
|
46850
|
+
/***/ "./node_modules/lodash/omit.js":
|
46851
|
+
/*!*************************************!*\
|
46852
|
+
!*** ./node_modules/lodash/omit.js ***!
|
46853
|
+
\*************************************/
|
46854
|
+
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
46855
|
+
|
46856
|
+
var arrayMap = __webpack_require__(/*! ./_arrayMap */ "./node_modules/lodash/_arrayMap.js"),
|
46857
|
+
baseClone = __webpack_require__(/*! ./_baseClone */ "./node_modules/lodash/_baseClone.js"),
|
46858
|
+
baseUnset = __webpack_require__(/*! ./_baseUnset */ "./node_modules/lodash/_baseUnset.js"),
|
46859
|
+
castPath = __webpack_require__(/*! ./_castPath */ "./node_modules/lodash/_castPath.js"),
|
46860
|
+
copyObject = __webpack_require__(/*! ./_copyObject */ "./node_modules/lodash/_copyObject.js"),
|
46861
|
+
customOmitClone = __webpack_require__(/*! ./_customOmitClone */ "./node_modules/lodash/_customOmitClone.js"),
|
46862
|
+
flatRest = __webpack_require__(/*! ./_flatRest */ "./node_modules/lodash/_flatRest.js"),
|
46863
|
+
getAllKeysIn = __webpack_require__(/*! ./_getAllKeysIn */ "./node_modules/lodash/_getAllKeysIn.js");
|
46864
|
+
|
46865
|
+
/** Used to compose bitmasks for cloning. */
|
46866
|
+
var CLONE_DEEP_FLAG = 1,
|
46867
|
+
CLONE_FLAT_FLAG = 2,
|
46868
|
+
CLONE_SYMBOLS_FLAG = 4;
|
46869
|
+
|
46870
|
+
/**
|
46871
|
+
* The opposite of `_.pick`; this method creates an object composed of the
|
46872
|
+
* own and inherited enumerable property paths of `object` that are not omitted.
|
46873
|
+
*
|
46874
|
+
* **Note:** This method is considerably slower than `_.pick`.
|
46875
|
+
*
|
46876
|
+
* @static
|
46877
|
+
* @since 0.1.0
|
46878
|
+
* @memberOf _
|
46879
|
+
* @category Object
|
46880
|
+
* @param {Object} object The source object.
|
46881
|
+
* @param {...(string|string[])} [paths] The property paths to omit.
|
46882
|
+
* @returns {Object} Returns the new object.
|
46883
|
+
* @example
|
46884
|
+
*
|
46885
|
+
* var object = { 'a': 1, 'b': '2', 'c': 3 };
|
46886
|
+
*
|
46887
|
+
* _.omit(object, ['a', 'c']);
|
46888
|
+
* // => { 'b': '2' }
|
46889
|
+
*/
|
46890
|
+
var omit = flatRest(function(object, paths) {
|
46891
|
+
var result = {};
|
46892
|
+
if (object == null) {
|
46893
|
+
return result;
|
46894
|
+
}
|
46895
|
+
var isDeep = false;
|
46896
|
+
paths = arrayMap(paths, function(path) {
|
46897
|
+
path = castPath(path, object);
|
46898
|
+
isDeep || (isDeep = path.length > 1);
|
46899
|
+
return path;
|
46900
|
+
});
|
46901
|
+
copyObject(object, getAllKeysIn(object), result);
|
46902
|
+
if (isDeep) {
|
46903
|
+
result = baseClone(result, CLONE_DEEP_FLAG | CLONE_FLAT_FLAG | CLONE_SYMBOLS_FLAG, customOmitClone);
|
46904
|
+
}
|
46905
|
+
var length = paths.length;
|
46906
|
+
while (length--) {
|
46907
|
+
baseUnset(result, paths[length]);
|
46908
|
+
}
|
46909
|
+
return result;
|
46910
|
+
});
|
46911
|
+
|
46912
|
+
module.exports = omit;
|
46913
|
+
|
46914
|
+
|
46492
46915
|
/***/ }),
|
46493
46916
|
|
46494
46917
|
/***/ "./node_modules/lodash/pickBy.js":
|