@luminati-io/uikit 3.8.2 → 3.9.0
Sign up to get free protection for your applications and to get access to all the features.
@@ -28561,13 +28561,16 @@ __webpack_require__.r(__webpack_exports__);
|
|
28561
28561
|
|
28562
28562
|
|
28563
28563
|
|
28564
|
-
var Badge = function Badge(
|
28565
|
-
var className =
|
28566
|
-
children =
|
28567
|
-
shape =
|
28568
|
-
|
28569
|
-
|
28570
|
-
|
28564
|
+
var Badge = function Badge(_ref) {
|
28565
|
+
var className = _ref.className,
|
28566
|
+
children = _ref.children,
|
28567
|
+
_ref$shape = _ref.shape,
|
28568
|
+
shape = _ref$shape === void 0 ? 'square' : _ref$shape,
|
28569
|
+
_ref$variant = _ref.variant,
|
28570
|
+
variant = _ref$variant === void 0 ? 'default' : _ref$variant,
|
28571
|
+
icon = _ref.icon,
|
28572
|
+
iconPlacement = _ref.iconPlacement,
|
28573
|
+
onClick = _ref.onClick;
|
28571
28574
|
var bgColor = (0,react__WEBPACK_IMPORTED_MODULE_1__.useMemo)(function () {
|
28572
28575
|
return {
|
28573
28576
|
"default": _theme__WEBPACK_IMPORTED_MODULE_5__["default"].color.gray_3,
|
@@ -28594,16 +28597,13 @@ var Badge = function Badge(props) {
|
|
28594
28597
|
}, icon && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_icon__WEBPACK_IMPORTED_MODULE_3__.Icon, {
|
28595
28598
|
name: icon,
|
28596
28599
|
size: "xxs",
|
28597
|
-
color: color
|
28600
|
+
color: color,
|
28601
|
+
onClick: onClick
|
28598
28602
|
}), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_typography__WEBPACK_IMPORTED_MODULE_6__.Label, {
|
28599
28603
|
variant: "xs",
|
28600
28604
|
color: color
|
28601
28605
|
}, children));
|
28602
28606
|
};
|
28603
|
-
Badge.defaultProps = {
|
28604
|
-
shape: 'square',
|
28605
|
-
variant: 'default'
|
28606
|
-
};
|
28607
28607
|
Badge.propTypes = {
|
28608
28608
|
shape: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOf(['rounded', 'square']),
|
28609
28609
|
variant: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOf(['default', 'negative', 'positive', 'gold', 'blue']),
|
@@ -29059,25 +29059,22 @@ __webpack_require__.r(__webpack_exports__);
|
|
29059
29059
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
29060
29060
|
/* harmony export */ Button: () => (/* binding */ Button)
|
29061
29061
|
/* harmony export */ });
|
29062
|
-
/* harmony import */ var
|
29063
|
-
/* harmony import */ var
|
29064
|
-
/* harmony import */ var
|
29065
|
-
/* harmony import */ var
|
29066
|
-
/* harmony import */ var
|
29067
|
-
/* harmony import */ var
|
29068
|
-
/* harmony import */ var
|
29069
|
-
/* harmony import */ var
|
29070
|
-
/* harmony import */ var
|
29071
|
-
/* harmony import */ var
|
29072
|
-
/* harmony import */ var
|
29073
|
-
/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../utils */ "./src/utils.js");
|
29074
|
-
/* harmony import */ var _loading_icon__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./loading_icon */ "./src/button/loading_icon.js");
|
29062
|
+
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! prop-types */ "prop-types");
|
29063
|
+
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_0__);
|
29064
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "react");
|
29065
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
|
29066
|
+
/* harmony import */ var styled_components__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! styled-components */ "styled-components");
|
29067
|
+
/* harmony import */ var styled_components__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(styled_components__WEBPACK_IMPORTED_MODULE_2__);
|
29068
|
+
/* harmony import */ var _icon__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../icon */ "./src/icon.js");
|
29069
|
+
/* harmony import */ var _typography__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../typography */ "./src/typography/index.js");
|
29070
|
+
/* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../util */ "./src/util/index.js");
|
29071
|
+
/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../utils */ "./src/utils.js");
|
29072
|
+
/* harmony import */ var _loading_icon__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./loading_icon */ "./src/button/loading_icon.js");
|
29075
29073
|
// LICENSE_CODE ZON
|
29076
29074
|
|
29077
29075
|
|
29078
29076
|
/*jslint react:true*/
|
29079
|
-
|
29080
|
-
var _excluded = ["text", "variant", "size", "disabled", "loading", "loadingText"],
|
29077
|
+
var _excluded = ["text", "variant", "size", "disabled", "loading", "loadingText", "icon", "iconPlacement"],
|
29081
29078
|
_excluded2 = ["isLeft", "isRight"];
|
29082
29079
|
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); }
|
29083
29080
|
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; }
|
@@ -29090,51 +29087,55 @@ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) r
|
|
29090
29087
|
|
29091
29088
|
|
29092
29089
|
|
29093
|
-
var Button = /*#__PURE__*/
|
29094
|
-
var text =
|
29095
|
-
variant =
|
29096
|
-
|
29097
|
-
|
29098
|
-
|
29099
|
-
|
29100
|
-
|
29101
|
-
|
29090
|
+
var Button = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().forwardRef(function (_ref, ref) {
|
29091
|
+
var text = _ref.text,
|
29092
|
+
_ref$variant = _ref.variant,
|
29093
|
+
variant = _ref$variant === void 0 ? 'primary' : _ref$variant,
|
29094
|
+
_ref$size = _ref.size,
|
29095
|
+
size = _ref$size === void 0 ? 'md' : _ref$size,
|
29096
|
+
disabled = _ref.disabled,
|
29097
|
+
loading = _ref.loading,
|
29098
|
+
_ref$loadingText = _ref.loadingText,
|
29099
|
+
loadingText = _ref$loadingText === void 0 ? 'Loading...' : _ref$loadingText,
|
29100
|
+
icon = _ref.icon,
|
29101
|
+
_ref$iconPlacement = _ref.iconPlacement,
|
29102
|
+
iconPlacement = _ref$iconPlacement === void 0 ? 'left' : _ref$iconPlacement,
|
29103
|
+
rest = _objectWithoutProperties(_ref, _excluded);
|
29104
|
+
var _getIconProps = (0,_utils__WEBPACK_IMPORTED_MODULE_6__.getIconProps)('Button', {
|
29105
|
+
size: size,
|
29106
|
+
icon: icon,
|
29107
|
+
iconPlacement: iconPlacement
|
29108
|
+
}),
|
29102
29109
|
isLeft = _getIconProps.isLeft,
|
29103
29110
|
isRight = _getIconProps.isRight,
|
29104
29111
|
iconProps = _objectWithoutProperties(_getIconProps, _excluded2);
|
29105
|
-
return /*#__PURE__*/
|
29112
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(StyledButton, _extends({
|
29106
29113
|
ref: ref
|
29107
|
-
},
|
29114
|
+
}, rest, {
|
29108
29115
|
disabled: loading || disabled,
|
29109
29116
|
$variant: variant,
|
29110
29117
|
$size: size,
|
29111
29118
|
$iconPlacement: isLeft || loading ? 'left' : isRight ? 'right' : ''
|
29112
|
-
}), loading && /*#__PURE__*/
|
29119
|
+
}), loading && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_loading_icon__WEBPACK_IMPORTED_MODULE_7__.LoadingIcon, {
|
29113
29120
|
size: iconProps.size
|
29114
|
-
}), isLeft && !loading && /*#__PURE__*/
|
29121
|
+
}), isLeft && !loading && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_icon__WEBPACK_IMPORTED_MODULE_3__.Icon, iconProps), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_typography__WEBPACK_IMPORTED_MODULE_4__.Label, {
|
29115
29122
|
variant: size == 'xs' ? 'sm' : 'lg',
|
29116
29123
|
no_wrap: true,
|
29117
29124
|
"data-label": true
|
29118
|
-
}, loading ? loadingText : text), isRight && !loading && /*#__PURE__*/
|
29125
|
+
}, loading ? loadingText : text), isRight && !loading && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_icon__WEBPACK_IMPORTED_MODULE_3__.Icon, iconProps));
|
29119
29126
|
});
|
29120
29127
|
Button.displayName = 'Button';
|
29121
|
-
Button.defaultProps = {
|
29122
|
-
variant: 'primary',
|
29123
|
-
size: 'md',
|
29124
|
-
iconPlacement: 'left',
|
29125
|
-
loadingText: 'Loading...'
|
29126
|
-
};
|
29127
29128
|
Button.propTypes = {
|
29128
|
-
text: (
|
29129
|
-
variant:
|
29130
|
-
size:
|
29131
|
-
icon:
|
29132
|
-
iconPlacement:
|
29133
|
-
disabled: (
|
29134
|
-
loading: (
|
29135
|
-
loadingText: (
|
29129
|
+
text: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().node).isRequired,
|
29130
|
+
variant: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOf(['primary', 'secondary', 'negative', 'negative_secondary', 'positive', 'white']),
|
29131
|
+
size: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOf(['xs', 'sm', 'md', 'lg']),
|
29132
|
+
icon: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOf(_utils__WEBPACK_IMPORTED_MODULE_6__.iconNames),
|
29133
|
+
iconPlacement: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOf(['left', 'right']),
|
29134
|
+
disabled: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool),
|
29135
|
+
loading: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool),
|
29136
|
+
loadingText: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string)
|
29136
29137
|
};
|
29137
|
-
var StyledButton =
|
29138
|
+
var StyledButton = styled_components__WEBPACK_IMPORTED_MODULE_2___default().button.withConfig({
|
29138
29139
|
displayName: "StyledButton",
|
29139
29140
|
componentId: "sc-ckjtjy-0"
|
29140
29141
|
})(["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) {
|
@@ -29146,12 +29147,12 @@ var StyledButton = styled_components__WEBPACK_IMPORTED_MODULE_3___default().butt
|
|
29146
29147
|
gap = 2;
|
29147
29148
|
paddingLeft = paddingRight = 8;
|
29148
29149
|
}
|
29149
|
-
return (0,
|
29150
|
+
return (0,styled_components__WEBPACK_IMPORTED_MODULE_2__.css)(["gap:", ";padding-left:", ";padding-right:", ";"], (0,_utils__WEBPACK_IMPORTED_MODULE_6__.toPixel)(gap), (0,_utils__WEBPACK_IMPORTED_MODULE_6__.toPixel)(paddingLeft), (0,_utils__WEBPACK_IMPORTED_MODULE_6__.toPixel)(paddingRight));
|
29150
29151
|
}, function (props) {
|
29151
|
-
var colors = (0,
|
29152
|
-
return (0,
|
29152
|
+
var colors = (0,_util__WEBPACK_IMPORTED_MODULE_5__.getButtonColors)(props);
|
29153
|
+
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 }"));
|
29153
29154
|
}, function (props) {
|
29154
|
-
return (0,
|
29155
|
+
return (0,_util__WEBPACK_IMPORTED_MODULE_5__.getButtonSize)(props.$size);
|
29155
29156
|
});
|
29156
29157
|
|
29157
29158
|
/***/ }),
|
@@ -29250,6 +29251,9 @@ __webpack_require__.r(__webpack_exports__);
|
|
29250
29251
|
|
29251
29252
|
/*jslint react:true*/
|
29252
29253
|
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); }
|
29254
|
+
var _excluded = ["animated", "showGridRows", "showGridColumns", "stacked"];
|
29255
|
+
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; }
|
29256
|
+
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; }
|
29253
29257
|
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
29254
29258
|
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
29255
29259
|
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
@@ -29390,21 +29394,32 @@ AreaChart.displayName = 'AreaChart';
|
|
29390
29394
|
var Area = function Area(props) {
|
29391
29395
|
var _splitProps = (0,_util__WEBPACK_IMPORTED_MODULE_2__.splitProps)(props, 'animated', 'showGridRows', 'showGridColumns', 'numTicks', 'xAxis', 'yAxis', 'formatValue', 'margin', 'stacked', 'showTooltip', 'tooltipContent', 'curveType', 'onPointerMove', 'onPointerOut', 'onPointerUp', 'onPointerDown', 'pointerEventsDataKey', 'children'),
|
29392
29396
|
_splitProps2 = _slicedToArray(_splitProps, 2),
|
29393
|
-
|
29394
|
-
|
29397
|
+
_splitProps2$ = _splitProps2[0],
|
29398
|
+
_splitProps2$$animate = _splitProps2$.animated,
|
29399
|
+
animated = _splitProps2$$animate === void 0 ? true : _splitProps2$$animate,
|
29400
|
+
_splitProps2$$showGri = _splitProps2$.showGridRows,
|
29401
|
+
showGridRows = _splitProps2$$showGri === void 0 ? false : _splitProps2$$showGri,
|
29402
|
+
_splitProps2$$showGri2 = _splitProps2$.showGridColumns,
|
29403
|
+
showGridColumns = _splitProps2$$showGri2 === void 0 ? false : _splitProps2$$showGri2,
|
29404
|
+
_splitProps2$$stacked = _splitProps2$.stacked,
|
29405
|
+
stacked = _splitProps2$$stacked === void 0 ? false : _splitProps2$$stacked,
|
29406
|
+
chartProps = _objectWithoutProperties(_splitProps2$, _excluded),
|
29407
|
+
_splitProps2$2 = _splitProps2[1],
|
29408
|
+
_splitProps2$2$classN = _splitProps2$2.className,
|
29409
|
+
className = _splitProps2$2$classN === void 0 ? 'area-class' : _splitProps2$2$classN,
|
29410
|
+
restProps = _splitProps2$2.restProps;
|
29395
29411
|
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_chart_container__WEBPACK_IMPORTED_MODULE_3__.ChartContainer, _extends({}, restProps, {
|
29412
|
+
className: className,
|
29396
29413
|
Chart: AreaChart,
|
29397
|
-
chartProps:
|
29414
|
+
chartProps: _objectSpread({
|
29415
|
+
animated: animated,
|
29416
|
+
showGridRows: showGridRows,
|
29417
|
+
showGridColumns: showGridColumns,
|
29418
|
+
stacked: stacked
|
29419
|
+
}, chartProps)
|
29398
29420
|
}));
|
29399
29421
|
};
|
29400
29422
|
Area.displayName = 'Chart.Area';
|
29401
|
-
Area.defaultProps = {
|
29402
|
-
animated: true,
|
29403
|
-
showGridRows: false,
|
29404
|
-
showGridColumns: false,
|
29405
|
-
stacked: false,
|
29406
|
-
className: 'area-class'
|
29407
|
-
};
|
29408
29423
|
Area.propTypes = {
|
29409
29424
|
animated: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().bool),
|
29410
29425
|
showGridRows: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().bool),
|
@@ -29482,7 +29497,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
29482
29497
|
|
29483
29498
|
/*jslint react:true*/
|
29484
29499
|
var _excluded = ["id", "type"],
|
29485
|
-
_excluded2 = ["pattern"]
|
29500
|
+
_excluded2 = ["pattern"],
|
29501
|
+
_excluded3 = ["animated", "showGridRows", "showGridColumns", "horizontal"];
|
29486
29502
|
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); }
|
29487
29503
|
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
29488
29504
|
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
@@ -29667,20 +29683,28 @@ BarChart.displayName = 'BarChart';
|
|
29667
29683
|
var Bar = function Bar(props) {
|
29668
29684
|
var _splitProps = (0,_util__WEBPACK_IMPORTED_MODULE_2__.splitProps)(props, 'animated', 'showGridRows', 'showGridColumns', 'numTicks', 'xAxis', 'yAxis', 'formatValue', 'margin', 'horizontal', 'stacked', 'showAnnotations', 'showTooltip', 'tooltipContent', 'snapTooltipToDatumX', 'snapTooltipToDatumY', 'showVerticalCrosshair', 'showHorizontalCrosshair', 'onPointerMove', 'onPointerOut', 'onPointerUp', 'onPointerDown', 'pointerEventsDataKey', 'children'),
|
29669
29685
|
_splitProps2 = _slicedToArray(_splitProps, 2),
|
29670
|
-
|
29686
|
+
_splitProps2$ = _splitProps2[0],
|
29687
|
+
_splitProps2$$animate = _splitProps2$.animated,
|
29688
|
+
animated = _splitProps2$$animate === void 0 ? true : _splitProps2$$animate,
|
29689
|
+
_splitProps2$$showGri = _splitProps2$.showGridRows,
|
29690
|
+
showGridRows = _splitProps2$$showGri === void 0 ? false : _splitProps2$$showGri,
|
29691
|
+
_splitProps2$$showGri2 = _splitProps2$.showGridColumns,
|
29692
|
+
showGridColumns = _splitProps2$$showGri2 === void 0 ? false : _splitProps2$$showGri2,
|
29693
|
+
_splitProps2$$horizon = _splitProps2$.horizontal,
|
29694
|
+
horizontal = _splitProps2$$horizon === void 0 ? false : _splitProps2$$horizon,
|
29695
|
+
chartProps = _objectWithoutProperties(_splitProps2$, _excluded3),
|
29671
29696
|
restProps = _splitProps2[1];
|
29672
29697
|
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_chart_container__WEBPACK_IMPORTED_MODULE_4__.ChartContainer, _extends({}, restProps, {
|
29673
29698
|
Chart: BarChart,
|
29674
|
-
chartProps:
|
29699
|
+
chartProps: _objectSpread({
|
29700
|
+
animated: animated,
|
29701
|
+
showGridRows: showGridRows,
|
29702
|
+
showGridColumns: showGridColumns,
|
29703
|
+
horizontal: horizontal
|
29704
|
+
}, chartProps)
|
29675
29705
|
}));
|
29676
29706
|
};
|
29677
29707
|
Bar.displayName = 'Chart.Bar';
|
29678
|
-
Bar.defaultProps = {
|
29679
|
-
animated: true,
|
29680
|
-
showGridRows: false,
|
29681
|
-
showGridColumns: false,
|
29682
|
-
horizontal: false
|
29683
|
-
};
|
29684
29708
|
Bar.propTypes = {
|
29685
29709
|
animated: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().bool),
|
29686
29710
|
showGridRows: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().bool),
|
@@ -30054,22 +30078,25 @@ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) r
|
|
30054
30078
|
|
30055
30079
|
|
30056
30080
|
|
30057
|
-
var
|
30058
|
-
|
30059
|
-
|
30060
|
-
|
30061
|
-
|
30062
|
-
|
30063
|
-
|
30064
|
-
|
30065
|
-
|
30066
|
-
|
30067
|
-
|
30068
|
-
|
30069
|
-
|
30070
|
-
|
30071
|
-
|
30072
|
-
|
30081
|
+
var defaultPalette = ['#AA99EC', '#3DB9CF', '#E58FB1', '#EBBC00', '#94BA2C', '#D09E72', '#0091FF', '#E5484D', '#12A594', '#FFB224'];
|
30082
|
+
var ChartContainer = function ChartContainer(_ref) {
|
30083
|
+
var header = _ref.header,
|
30084
|
+
description = _ref.description,
|
30085
|
+
actions = _ref.actions,
|
30086
|
+
data = _ref.data,
|
30087
|
+
_ref$palette = _ref.palette,
|
30088
|
+
palette = _ref$palette === void 0 ? defaultPalette : _ref$palette,
|
30089
|
+
loading = _ref.loading,
|
30090
|
+
Chart = _ref.Chart,
|
30091
|
+
legendItem = _ref.legendItem,
|
30092
|
+
chartProps = _ref.chartProps,
|
30093
|
+
showLegend = _ref.showLegend,
|
30094
|
+
_ref$variant = _ref.variant,
|
30095
|
+
variant = _ref$variant === void 0 ? 'default' : _ref$variant,
|
30096
|
+
_width = _ref.width,
|
30097
|
+
_height = _ref.height,
|
30098
|
+
classNamePrefix = _ref.classNamePrefix,
|
30099
|
+
rest = _objectWithoutProperties(_ref, _excluded);
|
30073
30100
|
var outerWidth = _width ? Math.max(410, _width) : undefined;
|
30074
30101
|
var outerHeight = Math.max(176, _height || 0);
|
30075
30102
|
var noData = !(data && data.length);
|
@@ -30102,9 +30129,9 @@ var ChartContainer = function ChartContainer(props) {
|
|
30102
30129
|
className: (0,_util__WEBPACK_IMPORTED_MODULE_5__.classNames)(classNamePrefix, {
|
30103
30130
|
container: true
|
30104
30131
|
})
|
30105
|
-
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_visx_responsive_lib_components_ParentSize__WEBPACK_IMPORTED_MODULE_11__["default"], null, function (
|
30106
|
-
var width =
|
30107
|
-
height =
|
30132
|
+
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_visx_responsive_lib_components_ParentSize__WEBPACK_IMPORTED_MODULE_11__["default"], null, function (_ref2) {
|
30133
|
+
var width = _ref2.width,
|
30134
|
+
height = _ref2.height;
|
30108
30135
|
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(Chart, _extends({}, chartProps, {
|
30109
30136
|
data: data,
|
30110
30137
|
palette: palette,
|
@@ -30121,10 +30148,6 @@ var ChartContainer = function ChartContainer(props) {
|
|
30121
30148
|
}))));
|
30122
30149
|
};
|
30123
30150
|
ChartContainer.displayName = 'ChartContainer';
|
30124
|
-
ChartContainer.defaultProps = {
|
30125
|
-
palette: ['#AA99EC', '#3DB9CF', '#E58FB1', '#EBBC00', '#94BA2C', '#D09E72', '#0091FF', '#E5484D', '#12A594', '#FFB224'],
|
30126
|
-
variant: 'default'
|
30127
|
-
};
|
30128
30151
|
ChartContainer.propTypes = {
|
30129
30152
|
header: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().node),
|
30130
30153
|
description: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().node),
|
@@ -30605,7 +30628,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
30605
30628
|
/*jslint react:true*/
|
30606
30629
|
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); }
|
30607
30630
|
var _excluded = ["label", "numTicks", "formatTick", "labelOffset"],
|
30608
|
-
_excluded2 = ["label", "numTicks", "formatTick", "labelOffset"]
|
30631
|
+
_excluded2 = ["label", "numTicks", "formatTick", "labelOffset"],
|
30632
|
+
_excluded3 = ["animated", "showGridRows", "showGridColumns"];
|
30609
30633
|
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
30610
30634
|
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
30611
30635
|
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
@@ -30751,19 +30775,25 @@ LineChart.displayName = 'LineChart';
|
|
30751
30775
|
var Line = function Line(props) {
|
30752
30776
|
var _splitProps = (0,_util__WEBPACK_IMPORTED_MODULE_2__.splitProps)(props, 'animated', 'showGridRows', 'showGridColumns', 'numTicks', 'xAxis', 'yAxis', 'formatValue', 'margin', 'showTooltip', 'tooltipContent', 'curveType', 'onPointerMove', 'onPointerOut', 'onPointerUp', 'onPointerDown', 'pointerEventsDataKey', 'children'),
|
30753
30777
|
_splitProps2 = _slicedToArray(_splitProps, 2),
|
30754
|
-
|
30778
|
+
_splitProps2$ = _splitProps2[0],
|
30779
|
+
_splitProps2$$animate = _splitProps2$.animated,
|
30780
|
+
animated = _splitProps2$$animate === void 0 ? true : _splitProps2$$animate,
|
30781
|
+
_splitProps2$$showGri = _splitProps2$.showGridRows,
|
30782
|
+
showGridRows = _splitProps2$$showGri === void 0 ? true : _splitProps2$$showGri,
|
30783
|
+
_splitProps2$$showGri2 = _splitProps2$.showGridColumns,
|
30784
|
+
showGridColumns = _splitProps2$$showGri2 === void 0 ? true : _splitProps2$$showGri2,
|
30785
|
+
chartProps = _objectWithoutProperties(_splitProps2$, _excluded3),
|
30755
30786
|
restProps = _splitProps2[1];
|
30756
30787
|
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_chart_container__WEBPACK_IMPORTED_MODULE_3__.ChartContainer, _extends({}, restProps, {
|
30757
30788
|
Chart: LineChart,
|
30758
|
-
chartProps:
|
30789
|
+
chartProps: _objectSpread({
|
30790
|
+
animated: animated,
|
30791
|
+
showGridRows: showGridRows,
|
30792
|
+
showGridColumns: showGridColumns
|
30793
|
+
}, chartProps)
|
30759
30794
|
}));
|
30760
30795
|
};
|
30761
30796
|
Line.displayName = 'Chart.Line';
|
30762
|
-
Line.defaultProps = {
|
30763
|
-
animated: true,
|
30764
|
-
showGridRows: true,
|
30765
|
-
showGridColumns: true
|
30766
|
-
};
|
30767
30797
|
Line.propTypes = {
|
30768
30798
|
animated: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().bool),
|
30769
30799
|
showGridRows: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().bool),
|
@@ -31277,12 +31307,13 @@ __webpack_require__.r(__webpack_exports__);
|
|
31277
31307
|
|
31278
31308
|
// import 'prismjs/plugins/line-numbers/prism-line-numbers';
|
31279
31309
|
|
31280
|
-
var Code = /*#__PURE__*/(0,react__WEBPACK_IMPORTED_MODULE_0__.forwardRef)(function (
|
31281
|
-
var className =
|
31282
|
-
text =
|
31283
|
-
lang =
|
31284
|
-
|
31285
|
-
|
31310
|
+
var Code = /*#__PURE__*/(0,react__WEBPACK_IMPORTED_MODULE_0__.forwardRef)(function (_ref, ref) {
|
31311
|
+
var className = _ref.className,
|
31312
|
+
text = _ref.text,
|
31313
|
+
lang = _ref.lang,
|
31314
|
+
_ref$theme = _ref.theme,
|
31315
|
+
themeProp = _ref$theme === void 0 ? 'white' : _ref$theme,
|
31316
|
+
lineNumbers = _ref.lineNumbers;
|
31286
31317
|
(0,react__WEBPACK_IMPORTED_MODULE_0__.useEffect)(function () {
|
31287
31318
|
prismjs_components_prism_core__WEBPACK_IMPORTED_MODULE_1___default().highlightAll();
|
31288
31319
|
}, [text, lang, lineNumbers]);
|
@@ -31295,9 +31326,6 @@ var Code = /*#__PURE__*/(0,react__WEBPACK_IMPORTED_MODULE_0__.forwardRef)(functi
|
|
31295
31326
|
}, text));
|
31296
31327
|
});
|
31297
31328
|
Code.displayName = 'Code';
|
31298
|
-
Code.defaultProps = {
|
31299
|
-
theme: 'white'
|
31300
|
-
};
|
31301
31329
|
Code.propTypes = {
|
31302
31330
|
text: (prop_types__WEBPACK_IMPORTED_MODULE_18___default().string),
|
31303
31331
|
lang: prop_types__WEBPACK_IMPORTED_MODULE_18___default().oneOf(['js', 'javascript', 'css', 'markup', 'shell', 'java', 'csharp', 'vbnet', 'php', 'ruby', 'perl', 'python', 'json']),
|
@@ -31345,7 +31373,10 @@ __webpack_require__.r(__webpack_exports__);
|
|
31345
31373
|
|
31346
31374
|
|
31347
31375
|
/*jslint react:true*/
|
31376
|
+
var _excluded = ["className", "header", "code", "lang", "max_height", "theme", "lineNumbers", "copyButton", "onCopy"];
|
31348
31377
|
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); }
|
31378
|
+
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; }
|
31379
|
+
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; }
|
31349
31380
|
|
31350
31381
|
|
31351
31382
|
|
@@ -31353,19 +31384,23 @@ function _extends() { _extends = Object.assign ? Object.assign.bind() : function
|
|
31353
31384
|
|
31354
31385
|
|
31355
31386
|
|
31356
|
-
var CodeBlock = function CodeBlock(
|
31357
|
-
var className =
|
31358
|
-
header =
|
31359
|
-
code =
|
31360
|
-
lang =
|
31361
|
-
max_height =
|
31362
|
-
|
31363
|
-
|
31364
|
-
|
31365
|
-
|
31387
|
+
var CodeBlock = function CodeBlock(_ref) {
|
31388
|
+
var className = _ref.className,
|
31389
|
+
header = _ref.header,
|
31390
|
+
code = _ref.code,
|
31391
|
+
lang = _ref.lang,
|
31392
|
+
_ref$max_height = _ref.max_height,
|
31393
|
+
max_height = _ref$max_height === void 0 ? '500px' : _ref$max_height,
|
31394
|
+
_ref$theme = _ref.theme,
|
31395
|
+
themeProp = _ref$theme === void 0 ? 'black' : _ref$theme,
|
31396
|
+
lineNumbers = _ref.lineNumbers,
|
31397
|
+
copyButton = _ref.copyButton,
|
31398
|
+
onCopy = _ref.onCopy,
|
31399
|
+
rest = _objectWithoutProperties(_ref, _excluded);
|
31366
31400
|
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(CodeBlockWrapper, _extends({
|
31367
|
-
"data-testid": "code_block"
|
31368
|
-
|
31401
|
+
"data-testid": "code_block",
|
31402
|
+
className: className
|
31403
|
+
}, (0,_util__WEBPACK_IMPORTED_MODULE_5__.getCommonProps)(rest)), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(CodeBlockHeader, {
|
31369
31404
|
className: (0,_util__WEBPACK_IMPORTED_MODULE_5__.classNames)(className, {
|
31370
31405
|
header: true
|
31371
31406
|
}),
|
@@ -31383,11 +31418,6 @@ var CodeBlock = function CodeBlock(props) {
|
|
31383
31418
|
onCopy: onCopy
|
31384
31419
|
}));
|
31385
31420
|
};
|
31386
|
-
CodeBlock.displayName = 'CodeBlock';
|
31387
|
-
CodeBlock.defaultProps = {
|
31388
|
-
max_height: '500px',
|
31389
|
-
theme: 'black'
|
31390
|
-
};
|
31391
31421
|
CodeBlock.propTypes = {
|
31392
31422
|
header: (prop_types__WEBPACK_IMPORTED_MODULE_2___default().node),
|
31393
31423
|
code: (prop_types__WEBPACK_IMPORTED_MODULE_2___default().string),
|
@@ -31450,16 +31480,17 @@ __webpack_require__.r(__webpack_exports__);
|
|
31450
31480
|
|
31451
31481
|
|
31452
31482
|
|
31453
|
-
var CodeSnippet = /*#__PURE__*/(0,react__WEBPACK_IMPORTED_MODULE_0__.forwardRef)(function (
|
31454
|
-
var code =
|
31455
|
-
lang =
|
31456
|
-
max_height =
|
31457
|
-
className =
|
31458
|
-
|
31459
|
-
|
31460
|
-
|
31461
|
-
|
31462
|
-
|
31483
|
+
var CodeSnippet = /*#__PURE__*/(0,react__WEBPACK_IMPORTED_MODULE_0__.forwardRef)(function (_ref, ref) {
|
31484
|
+
var code = _ref.code,
|
31485
|
+
lang = _ref.lang,
|
31486
|
+
max_height = _ref.max_height,
|
31487
|
+
className = _ref.className,
|
31488
|
+
_ref$theme = _ref.theme,
|
31489
|
+
themeProp = _ref$theme === void 0 ? 'black' : _ref$theme,
|
31490
|
+
lineNumbers = _ref.lineNumbers,
|
31491
|
+
copyButton = _ref.copyButton,
|
31492
|
+
loading = _ref.loading,
|
31493
|
+
onCopy = _ref.onCopy;
|
31463
31494
|
var codeRef = (0,react__WEBPACK_IMPORTED_MODULE_0__.useRef)(null);
|
31464
31495
|
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(CodeBlockBody, {
|
31465
31496
|
ref: ref,
|
@@ -31482,9 +31513,6 @@ var CodeSnippet = /*#__PURE__*/(0,react__WEBPACK_IMPORTED_MODULE_0__.forwardRef)
|
|
31482
31513
|
}));
|
31483
31514
|
});
|
31484
31515
|
CodeSnippet.displayName = 'CodeSnippet';
|
31485
|
-
CodeSnippet.defaultProps = {
|
31486
|
-
theme: 'black'
|
31487
|
-
};
|
31488
31516
|
CodeSnippet.propTypes = {
|
31489
31517
|
code: (prop_types__WEBPACK_IMPORTED_MODULE_2___default().string),
|
31490
31518
|
lang: (prop_types__WEBPACK_IMPORTED_MODULE_2___default().string),
|
@@ -31763,27 +31791,24 @@ __webpack_require__.r(__webpack_exports__);
|
|
31763
31791
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
31764
31792
|
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
31765
31793
|
/* harmony export */ });
|
31766
|
-
/* harmony import */ var
|
31767
|
-
/* harmony import */ var
|
31768
|
-
/* harmony import */ var
|
31769
|
-
/* harmony import */ var
|
31770
|
-
/* harmony import */ var
|
31771
|
-
/* harmony import */ var
|
31772
|
-
/* harmony import */ var
|
31773
|
-
/* harmony import */ var
|
31774
|
-
/* harmony import */ var
|
31775
|
-
/* harmony import */ var
|
31776
|
-
/* harmony import */ var
|
31777
|
-
/* harmony import */ var
|
31778
|
-
/* harmony import */ var
|
31779
|
-
/* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../util */ "./src/util/index.js");
|
31780
|
-
/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../utils */ "./src/utils.js");
|
31794
|
+
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! prop-types */ "prop-types");
|
31795
|
+
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_0__);
|
31796
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "react");
|
31797
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
|
31798
|
+
/* harmony import */ var styled_components__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! styled-components */ "styled-components");
|
31799
|
+
/* harmony import */ var styled_components__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(styled_components__WEBPACK_IMPORTED_MODULE_2__);
|
31800
|
+
/* harmony import */ var _constants__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../constants */ "./src/constants.js");
|
31801
|
+
/* harmony import */ var _hoc__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../hoc */ "./src/hoc/index.js");
|
31802
|
+
/* harmony import */ var _icon__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../icon */ "./src/icon.js");
|
31803
|
+
/* harmony import */ var _menu__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../menu */ "./src/menu/index.js");
|
31804
|
+
/* harmony import */ var _typography__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../typography */ "./src/typography/index.js");
|
31805
|
+
/* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../util */ "./src/util/index.js");
|
31806
|
+
/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../utils */ "./src/utils.js");
|
31781
31807
|
// LICENSE_CODE ZON
|
31782
31808
|
|
31783
31809
|
|
31784
31810
|
/*jslint react:true*/
|
31785
|
-
|
31786
|
-
var _excluded = ["text", "variant", "size", "items", "disabled", "onClick"],
|
31811
|
+
var _excluded = ["text", "variant", "size", "items", "disabled", "onClick", "icon", "iconPlacement"],
|
31787
31812
|
_excluded2 = ["isLeft"],
|
31788
31813
|
_excluded3 = ["popover"];
|
31789
31814
|
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); }
|
@@ -31799,61 +31824,65 @@ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) r
|
|
31799
31824
|
|
31800
31825
|
|
31801
31826
|
|
31802
|
-
var ComboButton = /*#__PURE__*/
|
31803
|
-
var text =
|
31804
|
-
variant =
|
31805
|
-
|
31806
|
-
|
31807
|
-
|
31808
|
-
|
31809
|
-
|
31810
|
-
|
31827
|
+
var ComboButton = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().forwardRef(function (_ref, ref) {
|
31828
|
+
var text = _ref.text,
|
31829
|
+
_ref$variant = _ref.variant,
|
31830
|
+
variant = _ref$variant === void 0 ? 'primary' : _ref$variant,
|
31831
|
+
_ref$size = _ref.size,
|
31832
|
+
size = _ref$size === void 0 ? 'sm' : _ref$size,
|
31833
|
+
items = _ref.items,
|
31834
|
+
disabled = _ref.disabled,
|
31835
|
+
onClick = _ref.onClick,
|
31836
|
+
icon = _ref.icon,
|
31837
|
+
iconPlacement = _ref.iconPlacement,
|
31838
|
+
rest = _objectWithoutProperties(_ref, _excluded);
|
31839
|
+
var _getIconProps = (0,_utils__WEBPACK_IMPORTED_MODULE_9__.getIconProps)('Button', {
|
31840
|
+
size: size,
|
31841
|
+
icon: icon,
|
31842
|
+
iconPlacement: iconPlacement
|
31843
|
+
}),
|
31811
31844
|
isLeft = _getIconProps.isLeft,
|
31812
31845
|
iconProps = _objectWithoutProperties(_getIconProps, _excluded2);
|
31813
|
-
var menuProps = (0,
|
31846
|
+
var menuProps = (0,react__WEBPACK_IMPORTED_MODULE_1__.useMemo)(function () {
|
31814
31847
|
return {
|
31815
31848
|
size: size == 'xs' ? 'sm' : 'md',
|
31816
31849
|
items: items
|
31817
31850
|
};
|
31818
31851
|
}, [size, items]);
|
31819
|
-
return /*#__PURE__*/
|
31852
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(StyledButtonWrapper, _extends({
|
31820
31853
|
ref: ref
|
31821
|
-
},
|
31854
|
+
}, rest, {
|
31822
31855
|
disabled: disabled,
|
31823
31856
|
$variant: variant,
|
31824
31857
|
$size: size,
|
31825
31858
|
$iconPlacement: isLeft ? 'left' : ''
|
31826
|
-
}), /*#__PURE__*/
|
31859
|
+
}), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(StyledButton, {
|
31827
31860
|
disabled: disabled,
|
31828
31861
|
onClick: onClick,
|
31829
31862
|
"data-testid": "combo_button_main"
|
31830
|
-
}, /*#__PURE__*/
|
31863
|
+
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(ComboButtonContent, null, isLeft && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_icon__WEBPACK_IMPORTED_MODULE_5__.Icon, iconProps), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_typography__WEBPACK_IMPORTED_MODULE_7__.Label, {
|
31831
31864
|
variant: size == 'xs' ? 'sm' : 'lg',
|
31832
31865
|
no_wrap: true,
|
31833
31866
|
"data-label": true
|
31834
|
-
}, text))), /*#__PURE__*/
|
31867
|
+
}, text))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(ComboButtonMenuTrigger, {
|
31835
31868
|
disabled: disabled,
|
31836
31869
|
popoverProps: menuProps
|
31837
31870
|
}));
|
31838
31871
|
});
|
31839
31872
|
ComboButton.displayName = 'ComboButton';
|
31840
|
-
ComboButton.defaultProps = {
|
31841
|
-
variant: 'primary',
|
31842
|
-
size: 'sm'
|
31843
|
-
};
|
31844
31873
|
ComboButton.propTypes = {
|
31845
|
-
text: (
|
31846
|
-
variant:
|
31847
|
-
size:
|
31848
|
-
icon:
|
31849
|
-
items:
|
31850
|
-
disabled: (
|
31874
|
+
text: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string).isRequired,
|
31875
|
+
variant: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOf(['primary', 'secondary', 'negative', 'negative_secondary', 'positive', 'white']),
|
31876
|
+
size: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOf(['xs', 'sm', 'md', 'lg']),
|
31877
|
+
icon: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOf(_utils__WEBPACK_IMPORTED_MODULE_9__.iconNames),
|
31878
|
+
items: prop_types__WEBPACK_IMPORTED_MODULE_0___default().arrayOf((prop_types__WEBPACK_IMPORTED_MODULE_0___default().any)).isRequired,
|
31879
|
+
disabled: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool)
|
31851
31880
|
};
|
31852
31881
|
var ComboButtonMenu = function ComboButtonMenu(props) {
|
31853
31882
|
var size = props.size,
|
31854
31883
|
items = props.items,
|
31855
31884
|
popover = props.popover;
|
31856
|
-
return /*#__PURE__*/
|
31885
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_menu__WEBPACK_IMPORTED_MODULE_6__.Menu, {
|
31857
31886
|
size: size,
|
31858
31887
|
items: items,
|
31859
31888
|
onClick: popover.hide
|
@@ -31862,20 +31891,20 @@ var ComboButtonMenu = function ComboButtonMenu(props) {
|
|
31862
31891
|
var ArrowIcon = function ArrowIcon(props) {
|
31863
31892
|
var popover = props.popover,
|
31864
31893
|
rest = _objectWithoutProperties(props, _excluded3);
|
31865
|
-
return /*#__PURE__*/
|
31894
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(ComboButtonArrow, _extends({
|
31866
31895
|
onClick: popover.toggle
|
31867
31896
|
}, rest, {
|
31868
31897
|
"data-testid": "combo_button_menu_button"
|
31869
|
-
}), /*#__PURE__*/
|
31898
|
+
}), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_icon__WEBPACK_IMPORTED_MODULE_5__.Icon, {
|
31870
31899
|
name: "ChevronDown",
|
31871
31900
|
size: "xs"
|
31872
31901
|
}));
|
31873
31902
|
};
|
31874
|
-
var ComboButtonMenuTrigger = (0,
|
31903
|
+
var ComboButtonMenuTrigger = (0,_hoc__WEBPACK_IMPORTED_MODULE_4__.withPopover)(ArrowIcon, ComboButtonMenu, {
|
31875
31904
|
placement: 'bottom-end',
|
31876
|
-
zIndex:
|
31905
|
+
zIndex: _constants__WEBPACK_IMPORTED_MODULE_3__.Z_INDEX.combobutton
|
31877
31906
|
});
|
31878
|
-
var StyledButtonWrapper =
|
31907
|
+
var StyledButtonWrapper = styled_components__WEBPACK_IMPORTED_MODULE_2___default().div.withConfig({
|
31879
31908
|
displayName: "StyledButtonWrapper",
|
31880
31909
|
componentId: "sc-s9elw5-0"
|
31881
31910
|
})(["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) {
|
@@ -31887,22 +31916,22 @@ var StyledButtonWrapper = styled_components__WEBPACK_IMPORTED_MODULE_3___default
|
|
31887
31916
|
gap = 2;
|
31888
31917
|
paddingLeft = paddingRight = 8;
|
31889
31918
|
}
|
31890
|
-
return (0,
|
31919
|
+
return (0,styled_components__WEBPACK_IMPORTED_MODULE_2__.css)(["", "{gap:", ";padding-left:", ";padding-right:", ";}"], ComboButtonContent, (0,_utils__WEBPACK_IMPORTED_MODULE_9__.toPixel)(gap), (0,_utils__WEBPACK_IMPORTED_MODULE_9__.toPixel)(paddingLeft), (0,_utils__WEBPACK_IMPORTED_MODULE_9__.toPixel)(paddingRight));
|
31891
31920
|
}, function (props) {
|
31892
|
-
var colors = (0,
|
31893
|
-
return (0,
|
31921
|
+
var colors = (0,_util__WEBPACK_IMPORTED_MODULE_8__.getButtonColors)(props);
|
31922
|
+
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 "));
|
31894
31923
|
}, function (props) {
|
31895
|
-
return (0,
|
31924
|
+
return (0,_util__WEBPACK_IMPORTED_MODULE_8__.getButtonSize)(props.$size);
|
31896
31925
|
});
|
31897
|
-
var StyledButton =
|
31926
|
+
var StyledButton = styled_components__WEBPACK_IMPORTED_MODULE_2___default().button.withConfig({
|
31898
31927
|
displayName: "StyledButton",
|
31899
31928
|
componentId: "sc-s9elw5-1"
|
31900
31929
|
})(["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;"]);
|
31901
|
-
var ComboButtonContent =
|
31930
|
+
var ComboButtonContent = styled_components__WEBPACK_IMPORTED_MODULE_2___default().div.withConfig({
|
31902
31931
|
displayName: "ComboButtonContent",
|
31903
31932
|
componentId: "sc-s9elw5-2"
|
31904
31933
|
})(["display:flex;align-items:center;height:100%;"]);
|
31905
|
-
var ComboButtonArrow =
|
31934
|
+
var ComboButtonArrow = styled_components__WEBPACK_IMPORTED_MODULE_2___default().button.withConfig({
|
31906
31935
|
displayName: "ComboButtonArrow",
|
31907
31936
|
componentId: "sc-s9elw5-3"
|
31908
31937
|
})(["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;}"]);
|
@@ -31971,64 +32000,64 @@ var Z_INDEX = {
|
|
31971
32000
|
"use strict";
|
31972
32001
|
__webpack_require__.r(__webpack_exports__);
|
31973
32002
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
31974
|
-
/* harmony export */ Badge: () => (/* reexport safe */
|
31975
|
-
/* harmony export */ Breadcrumbs: () => (/* reexport safe */
|
31976
|
-
/* harmony export */ Button: () => (/* reexport safe */
|
32003
|
+
/* harmony export */ Badge: () => (/* reexport safe */ _badge__WEBPACK_IMPORTED_MODULE_9__.Badge),
|
32004
|
+
/* harmony export */ Breadcrumbs: () => (/* reexport safe */ _breadcrumbs__WEBPACK_IMPORTED_MODULE_11__.Breadcrumbs),
|
32005
|
+
/* harmony export */ Button: () => (/* reexport safe */ _button__WEBPACK_IMPORTED_MODULE_10__.Button),
|
31977
32006
|
/* harmony export */ Chart: () => (/* reexport safe */ _chart__WEBPACK_IMPORTED_MODULE_0__["default"]),
|
31978
|
-
/* harmony export */ ClickableTag: () => (/* reexport safe */
|
31979
|
-
/* harmony export */ Code: () => (/* reexport safe */
|
31980
|
-
/* harmony export */ CodeBlock: () => (/* reexport safe */
|
31981
|
-
/* harmony export */ CodeSnippet: () => (/* reexport safe */
|
32007
|
+
/* harmony export */ ClickableTag: () => (/* reexport safe */ _tag__WEBPACK_IMPORTED_MODULE_19__.ClickableTag),
|
32008
|
+
/* harmony export */ Code: () => (/* reexport safe */ _code__WEBPACK_IMPORTED_MODULE_12__.Code),
|
32009
|
+
/* harmony export */ CodeBlock: () => (/* reexport safe */ _code__WEBPACK_IMPORTED_MODULE_12__.CodeBlock),
|
32010
|
+
/* harmony export */ CodeSnippet: () => (/* reexport safe */ _code__WEBPACK_IMPORTED_MODULE_12__.CodeSnippet),
|
31982
32011
|
/* harmony export */ ComboButton: () => (/* reexport safe */ _combo_button__WEBPACK_IMPORTED_MODULE_1__["default"]),
|
31983
|
-
/* harmony export */ Icon: () => (/* reexport safe */
|
31984
|
-
/* harmony export */ IconButton: () => (/* reexport safe */
|
31985
|
-
/* harmony export */ InfoChip: () => (/* reexport safe */
|
31986
|
-
/* harmony export */ Input: () => (/* reexport module object */
|
31987
|
-
/* harmony export */ Layout: () => (/* reexport module object */
|
31988
|
-
/* harmony export */ Link: () => (/* reexport safe */
|
31989
|
-
/* harmony export */ Menu: () => (/* reexport safe */
|
31990
|
-
/* harmony export */ Modal: () => (/* reexport module object */
|
31991
|
-
/* harmony export */ Progress: () => (/* reexport safe */
|
31992
|
-
/* harmony export */ ProgressBar: () => (/* reexport safe */
|
31993
|
-
/* harmony export */ RemovableTag: () => (/* reexport safe */
|
31994
|
-
/* harmony export */ Snackbar: () => (/* reexport safe */
|
31995
|
-
/* harmony export */ Tab: () => (/* reexport safe */
|
31996
|
-
/* harmony export */ Table: () => (/* reexport safe */
|
31997
|
-
/* harmony export */ TagGroup: () => (/* reexport safe */
|
31998
|
-
/* harmony export */ Toast: () => (/* reexport safe */
|
31999
|
-
/* harmony export */ Toaster: () => (/* reexport safe */
|
32012
|
+
/* harmony export */ Icon: () => (/* reexport safe */ _icon__WEBPACK_IMPORTED_MODULE_21__.Icon),
|
32013
|
+
/* harmony export */ IconButton: () => (/* reexport safe */ _icon_button__WEBPACK_IMPORTED_MODULE_22__.IconButton),
|
32014
|
+
/* harmony export */ InfoChip: () => (/* reexport safe */ _infochip__WEBPACK_IMPORTED_MODULE_23__.InfoChip),
|
32015
|
+
/* harmony export */ Input: () => (/* reexport module object */ _input__WEBPACK_IMPORTED_MODULE_2__),
|
32016
|
+
/* harmony export */ Layout: () => (/* reexport module object */ _layout__WEBPACK_IMPORTED_MODULE_3__),
|
32017
|
+
/* harmony export */ Link: () => (/* reexport safe */ _link__WEBPACK_IMPORTED_MODULE_14__.Link),
|
32018
|
+
/* harmony export */ Menu: () => (/* reexport safe */ _menu__WEBPACK_IMPORTED_MODULE_15__.Menu),
|
32019
|
+
/* harmony export */ Modal: () => (/* reexport module object */ _modal__WEBPACK_IMPORTED_MODULE_4__),
|
32020
|
+
/* harmony export */ Progress: () => (/* reexport safe */ _progress__WEBPACK_IMPORTED_MODULE_16__.Progress),
|
32021
|
+
/* harmony export */ ProgressBar: () => (/* reexport safe */ _progress__WEBPACK_IMPORTED_MODULE_16__.ProgressBar),
|
32022
|
+
/* harmony export */ RemovableTag: () => (/* reexport safe */ _tag__WEBPACK_IMPORTED_MODULE_19__.RemovableTag),
|
32023
|
+
/* harmony export */ Snackbar: () => (/* reexport safe */ _snackbar__WEBPACK_IMPORTED_MODULE_17__.Snackbar),
|
32024
|
+
/* harmony export */ Tab: () => (/* reexport safe */ _tab__WEBPACK_IMPORTED_MODULE_7__["default"]),
|
32025
|
+
/* harmony export */ Table: () => (/* reexport safe */ _table__WEBPACK_IMPORTED_MODULE_18__.Table),
|
32026
|
+
/* harmony export */ TagGroup: () => (/* reexport safe */ _tag__WEBPACK_IMPORTED_MODULE_19__.TagGroup),
|
32027
|
+
/* harmony export */ Toast: () => (/* reexport safe */ _toast__WEBPACK_IMPORTED_MODULE_20__.Toast),
|
32028
|
+
/* harmony export */ Toaster: () => (/* reexport safe */ _toast__WEBPACK_IMPORTED_MODULE_20__.Toaster),
|
32000
32029
|
/* harmony export */ Tooltip: () => (/* reexport safe */ _tooltip__WEBPACK_IMPORTED_MODULE_24__.Tooltip),
|
32001
|
-
/* harmony export */ Typography: () => (/* reexport module object */
|
32002
|
-
/* harmony export */ theme: () => (/* reexport safe */
|
32003
|
-
/* harmony export */ translation: () => (/* reexport safe */
|
32004
|
-
/* harmony export */ useToaster: () => (/* reexport safe */
|
32005
|
-
/* harmony export */ withPopover: () => (/* reexport safe */
|
32030
|
+
/* harmony export */ Typography: () => (/* reexport module object */ _typography__WEBPACK_IMPORTED_MODULE_8__),
|
32031
|
+
/* harmony export */ theme: () => (/* reexport safe */ _theme__WEBPACK_IMPORTED_MODULE_5__["default"]),
|
32032
|
+
/* harmony export */ translation: () => (/* reexport safe */ _translation__WEBPACK_IMPORTED_MODULE_6__["default"]),
|
32033
|
+
/* harmony export */ useToaster: () => (/* reexport safe */ _toast__WEBPACK_IMPORTED_MODULE_20__.useToaster),
|
32034
|
+
/* harmony export */ withPopover: () => (/* reexport safe */ _hoc__WEBPACK_IMPORTED_MODULE_13__.withPopover),
|
32006
32035
|
/* harmony export */ withTooltip: () => (/* reexport safe */ _tooltip__WEBPACK_IMPORTED_MODULE_24__.withTooltip)
|
32007
32036
|
/* harmony export */ });
|
32008
32037
|
/* harmony import */ var _chart__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./chart */ "./src/chart/index.js");
|
32009
32038
|
/* harmony import */ var _combo_button__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./combo_button */ "./src/combo_button/index.js");
|
32010
|
-
/* harmony import */ var
|
32011
|
-
/* harmony import */ var
|
32012
|
-
/* harmony import */ var
|
32013
|
-
/* harmony import */ var
|
32014
|
-
/* harmony import */ var
|
32015
|
-
/* harmony import */ var
|
32016
|
-
/* harmony import */ var
|
32017
|
-
/* harmony import */ var
|
32018
|
-
/* harmony import */ var
|
32019
|
-
/* harmony import */ var
|
32020
|
-
/* harmony import */ var
|
32021
|
-
/* harmony import */ var
|
32022
|
-
/* harmony import */ var
|
32023
|
-
/* harmony import */ var
|
32024
|
-
/* harmony import */ var
|
32025
|
-
/* harmony import */ var
|
32026
|
-
/* harmony import */ var
|
32027
|
-
/* harmony import */ var
|
32028
|
-
/* harmony import */ var
|
32029
|
-
/* harmony import */ var
|
32030
|
-
/* harmony import */ var
|
32031
|
-
/* harmony import */ var
|
32039
|
+
/* harmony import */ var _input__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./input */ "./src/input/index.js");
|
32040
|
+
/* harmony import */ var _layout__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./layout */ "./src/layout/index.js");
|
32041
|
+
/* harmony import */ var _modal__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./modal */ "./src/modal/index.js");
|
32042
|
+
/* harmony import */ var _theme__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./theme */ "./src/theme.js");
|
32043
|
+
/* harmony import */ var _translation__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./translation */ "./src/translation.js");
|
32044
|
+
/* harmony import */ var _tab__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./tab */ "./src/tab/index.js");
|
32045
|
+
/* harmony import */ var _typography__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./typography */ "./src/typography/index.js");
|
32046
|
+
/* harmony import */ var _badge__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./badge */ "./src/badge.js");
|
32047
|
+
/* harmony import */ var _button__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./button */ "./src/button/index.js");
|
32048
|
+
/* harmony import */ var _breadcrumbs__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./breadcrumbs */ "./src/breadcrumbs/index.js");
|
32049
|
+
/* harmony import */ var _code__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./code */ "./src/code/index.js");
|
32050
|
+
/* harmony import */ var _hoc__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./hoc */ "./src/hoc/index.js");
|
32051
|
+
/* harmony import */ var _link__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./link */ "./src/link/index.js");
|
32052
|
+
/* harmony import */ var _menu__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ./menu */ "./src/menu/index.js");
|
32053
|
+
/* harmony import */ var _progress__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ./progress */ "./src/progress/index.js");
|
32054
|
+
/* harmony import */ var _snackbar__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ./snackbar */ "./src/snackbar/index.js");
|
32055
|
+
/* harmony import */ var _table__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ./table */ "./src/table/index.js");
|
32056
|
+
/* harmony import */ var _tag__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! ./tag */ "./src/tag/index.js");
|
32057
|
+
/* harmony import */ var _toast__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! ./toast */ "./src/toast/index.js");
|
32058
|
+
/* harmony import */ var _icon__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! ./icon */ "./src/icon.js");
|
32059
|
+
/* harmony import */ var _icon_button__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! ./icon_button */ "./src/icon_button.js");
|
32060
|
+
/* harmony import */ var _infochip__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(/*! ./infochip */ "./src/infochip.js");
|
32032
32061
|
/* harmony import */ var _tooltip__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(/*! ./tooltip */ "./src/tooltip.js");
|
32033
32062
|
// LICENSE_CODE ZON
|
32034
32063
|
|
@@ -32648,7 +32677,10 @@ __webpack_require__.r(__webpack_exports__);
|
|
32648
32677
|
|
32649
32678
|
|
32650
32679
|
/*jslint react:true*/
|
32680
|
+
var _excluded = ["name", "size", "color", "verticalAlign"];
|
32651
32681
|
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); }
|
32682
|
+
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; }
|
32683
|
+
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; }
|
32652
32684
|
|
32653
32685
|
|
32654
32686
|
|
@@ -32656,16 +32688,18 @@ function _extends() { _extends = Object.assign ? Object.assign.bind() : function
|
|
32656
32688
|
|
32657
32689
|
|
32658
32690
|
|
32659
|
-
var Icon = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().forwardRef(function (
|
32660
|
-
var name =
|
32661
|
-
size =
|
32662
|
-
|
32663
|
-
|
32691
|
+
var Icon = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().forwardRef(function (_ref, ref) {
|
32692
|
+
var name = _ref.name,
|
32693
|
+
_ref$size = _ref.size,
|
32694
|
+
size = _ref$size === void 0 ? 'md' : _ref$size,
|
32695
|
+
color = _ref.color,
|
32696
|
+
verticalAlign = _ref.verticalAlign,
|
32697
|
+
rest = _objectWithoutProperties(_ref, _excluded);
|
32664
32698
|
var ic = _icons__WEBPACK_IMPORTED_MODULE_3__["default"][name];
|
32665
32699
|
if (!ic) return null;
|
32666
32700
|
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(StyledSvg, _extends({
|
32667
32701
|
ref: ref
|
32668
|
-
}, (0,_util__WEBPACK_IMPORTED_MODULE_4__.getCommonProps)(
|
32702
|
+
}, (0,_util__WEBPACK_IMPORTED_MODULE_4__.getCommonProps)(rest), {
|
32669
32703
|
$size: size,
|
32670
32704
|
viewBox: ic.viewBox,
|
32671
32705
|
$color: _theme__WEBPACK_IMPORTED_MODULE_6__["default"].color[color],
|
@@ -32676,9 +32710,6 @@ var Icon = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().forwardRef(
|
|
32676
32710
|
}));
|
32677
32711
|
});
|
32678
32712
|
Icon.displayName = 'Icon';
|
32679
|
-
Icon.defaultProps = {
|
32680
|
-
size: 'md'
|
32681
|
-
};
|
32682
32713
|
Icon.propTypes = {
|
32683
32714
|
name: prop_types__WEBPACK_IMPORTED_MODULE_2___default().oneOf(_utils__WEBPACK_IMPORTED_MODULE_5__.iconNames).isRequired,
|
32684
32715
|
color: prop_types__WEBPACK_IMPORTED_MODULE_2___default().oneOf(_utils__WEBPACK_IMPORTED_MODULE_5__.colorNames),
|
@@ -32736,16 +32767,17 @@ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) r
|
|
32736
32767
|
|
32737
32768
|
|
32738
32769
|
|
32739
|
-
var IconButton = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().forwardRef(function (
|
32740
|
-
var variant =
|
32741
|
-
disabled =
|
32742
|
-
active =
|
32743
|
-
icon =
|
32744
|
-
tooltip =
|
32745
|
-
placement =
|
32746
|
-
size =
|
32747
|
-
|
32748
|
-
|
32770
|
+
var IconButton = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().forwardRef(function (_ref, ref) {
|
32771
|
+
var variant = _ref.variant,
|
32772
|
+
disabled = _ref.disabled,
|
32773
|
+
active = _ref.active,
|
32774
|
+
icon = _ref.icon,
|
32775
|
+
tooltip = _ref.tooltip,
|
32776
|
+
placement = _ref.tooltipPlacement,
|
32777
|
+
_ref$size = _ref.size,
|
32778
|
+
size = _ref$size === void 0 ? 'md' : _ref$size,
|
32779
|
+
noBackColor = _ref.noBackColor,
|
32780
|
+
rest = _objectWithoutProperties(_ref, _excluded);
|
32749
32781
|
size = calcSize(variant, size);
|
32750
32782
|
noBackColor = variant == 'ghost' || noBackColor;
|
32751
32783
|
var ic = _icons__WEBPACK_IMPORTED_MODULE_3__["default"][icon];
|
@@ -32770,9 +32802,6 @@ var IconButton = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().forwa
|
|
32770
32802
|
}))));
|
32771
32803
|
});
|
32772
32804
|
IconButton.displayName = 'IconButton';
|
32773
|
-
IconButton.defaultProps = {
|
32774
|
-
size: 'md'
|
32775
|
-
};
|
32776
32805
|
IconButton.propTypes = {
|
32777
32806
|
icon: prop_types__WEBPACK_IMPORTED_MODULE_2___default().oneOf(_utils__WEBPACK_IMPORTED_MODULE_5__.iconNames).isRequired,
|
32778
32807
|
disabled: (prop_types__WEBPACK_IMPORTED_MODULE_2___default().bool),
|
@@ -32841,7 +32870,7 @@ var calcSize = function calcSize(variant, size) {
|
|
32841
32870
|
"use strict";
|
32842
32871
|
__webpack_require__.r(__webpack_exports__);
|
32843
32872
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
32844
|
-
/* harmony export */
|
32873
|
+
/* harmony export */ InfoChip: () => (/* binding */ InfoChip)
|
32845
32874
|
/* harmony export */ });
|
32846
32875
|
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! prop-types */ "prop-types");
|
32847
32876
|
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_0__);
|
@@ -32859,7 +32888,10 @@ __webpack_require__.r(__webpack_exports__);
|
|
32859
32888
|
|
32860
32889
|
|
32861
32890
|
/*jslint react:true*/
|
32891
|
+
var _excluded = ["variant", "text", "icon"];
|
32862
32892
|
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); }
|
32893
|
+
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; }
|
32894
|
+
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; }
|
32863
32895
|
|
32864
32896
|
|
32865
32897
|
|
@@ -32879,10 +32911,12 @@ var InfoChipWrapper = styled_components__WEBPACK_IMPORTED_MODULE_2___default()(_
|
|
32879
32911
|
})(["background-color:", ";border-radius:24px;width:fit-content;min-height:24px;height:24px;"], function (props) {
|
32880
32912
|
return props.color && _theme__WEBPACK_IMPORTED_MODULE_5__["default"].color[props.color];
|
32881
32913
|
});
|
32882
|
-
var InfoChip = function InfoChip(
|
32883
|
-
var variant =
|
32884
|
-
|
32885
|
-
|
32914
|
+
var InfoChip = function InfoChip(_ref) {
|
32915
|
+
var _ref$variant = _ref.variant,
|
32916
|
+
variant = _ref$variant === void 0 ? 'default' : _ref$variant,
|
32917
|
+
text = _ref.text,
|
32918
|
+
icon = _ref.icon,
|
32919
|
+
rest = _objectWithoutProperties(_ref, _excluded);
|
32886
32920
|
var bgColors = {
|
32887
32921
|
"default": 'gray_3',
|
32888
32922
|
success: 'green_3',
|
@@ -32899,7 +32933,7 @@ var InfoChip = function InfoChip(props) {
|
|
32899
32933
|
info: 'blue_11'
|
32900
32934
|
};
|
32901
32935
|
var color = colors[variant] || colors["default"];
|
32902
|
-
var commonProps = (0,_util__WEBPACK_IMPORTED_MODULE_7__.getCommonProps)(
|
32936
|
+
var commonProps = (0,_util__WEBPACK_IMPORTED_MODULE_7__.getCommonProps)(rest);
|
32903
32937
|
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(InfoChipWrapper, _extends({
|
32904
32938
|
color: bgColor
|
32905
32939
|
}, commonProps), icon && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_icon__WEBPACK_IMPORTED_MODULE_3__.Icon, {
|
@@ -32911,16 +32945,11 @@ var InfoChip = function InfoChip(props) {
|
|
32911
32945
|
color: color
|
32912
32946
|
}, text));
|
32913
32947
|
};
|
32914
|
-
InfoChip.displayName = 'InfoChip';
|
32915
|
-
InfoChip.defaultProps = {
|
32916
|
-
variant: 'default'
|
32917
|
-
};
|
32918
32948
|
InfoChip.propTypes = {
|
32919
32949
|
variant: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOf(['default', 'success', 'alert', 'warning', 'info']),
|
32920
32950
|
text: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string),
|
32921
32951
|
icon: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOf(_utils__WEBPACK_IMPORTED_MODULE_8__.iconNames)
|
32922
32952
|
};
|
32923
|
-
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (InfoChip);
|
32924
32953
|
|
32925
32954
|
/***/ }),
|
32926
32955
|
|
@@ -32966,19 +32995,20 @@ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) r
|
|
32966
32995
|
|
32967
32996
|
|
32968
32997
|
|
32969
|
-
var Checkbox = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().forwardRef(function (
|
32970
|
-
var id =
|
32971
|
-
checked =
|
32972
|
-
onChange =
|
32973
|
-
onClick =
|
32974
|
-
label =
|
32975
|
-
disabled =
|
32976
|
-
tooltip =
|
32977
|
-
indeterminate =
|
32978
|
-
verticalAlign =
|
32979
|
-
|
32980
|
-
|
32981
|
-
|
32998
|
+
var Checkbox = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().forwardRef(function (_ref, ref) {
|
32999
|
+
var id = _ref.id,
|
33000
|
+
checked = _ref.checked,
|
33001
|
+
onChange = _ref.onChange,
|
33002
|
+
onClick = _ref.onClick,
|
33003
|
+
label = _ref.label,
|
33004
|
+
disabled = _ref.disabled,
|
33005
|
+
tooltip = _ref.tooltip,
|
33006
|
+
indeterminate = _ref.indeterminate,
|
33007
|
+
_ref$verticalAlign = _ref.verticalAlign,
|
33008
|
+
verticalAlign = _ref$verticalAlign === void 0 ? 'top' : _ref$verticalAlign,
|
33009
|
+
className = _ref.className,
|
33010
|
+
classNamePrefix = _ref.classNamePrefix,
|
33011
|
+
rest = _objectWithoutProperties(_ref, _excluded);
|
32982
33012
|
var labelId = (0,_hooks__WEBPACK_IMPORTED_MODULE_3__.useLabelId)(id);
|
32983
33013
|
var handleClick = function handleClick(evt) {
|
32984
33014
|
if (disabled) return;
|
@@ -33028,9 +33058,6 @@ Checkbox.propTypes = {
|
|
33028
33058
|
verticalAlign: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOf(['top', 'middle', 'bottom']),
|
33029
33059
|
classNamePrefix: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string)
|
33030
33060
|
};
|
33031
|
-
Checkbox.defaultProps = {
|
33032
|
-
verticalAlign: 'top'
|
33033
|
-
};
|
33034
33061
|
var CheckboxWrapper = styled_components__WEBPACK_IMPORTED_MODULE_2___default().div.withConfig({
|
33035
33062
|
displayName: "CheckboxWrapper",
|
33036
33063
|
componentId: "sc-623yyg-0"
|
@@ -33176,24 +33203,26 @@ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) r
|
|
33176
33203
|
|
33177
33204
|
|
33178
33205
|
|
33179
|
-
var CheckboxList = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().forwardRef(function (
|
33180
|
-
var id =
|
33181
|
-
styles =
|
33182
|
-
size =
|
33183
|
-
|
33184
|
-
|
33185
|
-
|
33186
|
-
|
33187
|
-
|
33188
|
-
|
33189
|
-
|
33190
|
-
|
33191
|
-
|
33192
|
-
|
33193
|
-
|
33194
|
-
|
33195
|
-
|
33196
|
-
|
33206
|
+
var CheckboxList = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().forwardRef(function (_ref, forwardRef) {
|
33207
|
+
var id = _ref.id,
|
33208
|
+
styles = _ref.styles,
|
33209
|
+
_ref$size = _ref.size,
|
33210
|
+
size = _ref$size === void 0 ? 'sm' : _ref$size,
|
33211
|
+
async = _ref.async,
|
33212
|
+
creatable = _ref.creatable,
|
33213
|
+
isOptionDisabled = _ref.isOptionDisabled,
|
33214
|
+
className = _ref.className,
|
33215
|
+
label = _ref.label,
|
33216
|
+
labelIcon = _ref.labelIcon,
|
33217
|
+
labelTooltip = _ref.labelTooltip,
|
33218
|
+
required = _ref.required,
|
33219
|
+
necessityIndicator = _ref.necessityIndicator,
|
33220
|
+
invalid = _ref.invalid,
|
33221
|
+
helperText = _ref.helperText,
|
33222
|
+
_ref$placeholder = _ref.placeholder,
|
33223
|
+
placeholder = _ref$placeholder === void 0 ? 'Search...' : _ref$placeholder,
|
33224
|
+
disabled = _ref.disabled,
|
33225
|
+
rest = _objectWithoutProperties(_ref, _excluded);
|
33197
33226
|
var labelId = (0,_hooks__WEBPACK_IMPORTED_MODULE_6__.useLabelId)(id);
|
33198
33227
|
var t = (0,_translation__WEBPACK_IMPORTED_MODULE_8__.useTranslate)();
|
33199
33228
|
var SelectComp = getComponent({
|
@@ -33235,7 +33264,7 @@ var CheckboxList = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().for
|
|
33235
33264
|
isDisabled: disabled,
|
33236
33265
|
required: required,
|
33237
33266
|
styles: _styles,
|
33238
|
-
components: (0,_build_components__WEBPACK_IMPORTED_MODULE_11__.buildComponents)(
|
33267
|
+
components: (0,_build_components__WEBPACK_IMPORTED_MODULE_11__.buildComponents)(rest),
|
33239
33268
|
className: (0,_util__WEBPACK_IMPORTED_MODULE_9__.classNames)(className, {
|
33240
33269
|
container: true
|
33241
33270
|
}),
|
@@ -33262,10 +33291,6 @@ CheckboxList.propTypes = {
|
|
33262
33291
|
size: prop_types__WEBPACK_IMPORTED_MODULE_1___default().oneOf(['sm', 'md', 'lg']),
|
33263
33292
|
virtualized: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().bool)
|
33264
33293
|
};
|
33265
|
-
CheckboxList.defaultProps = {
|
33266
|
-
size: 'sm',
|
33267
|
-
placeholder: 'Search...'
|
33268
|
-
};
|
33269
33294
|
var getComponent = function getComponent(opt) {
|
33270
33295
|
if (opt.async) return opt.creatable ? react_select_async_creatable__WEBPACK_IMPORTED_MODULE_5__["default"] : react_select_async__WEBPACK_IMPORTED_MODULE_4__["default"];
|
33271
33296
|
return opt.creatable ? react_select_creatable__WEBPACK_IMPORTED_MODULE_3__["default"] : react_select__WEBPACK_IMPORTED_MODULE_13__["default"];
|
@@ -33568,6 +33593,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
33568
33593
|
|
33569
33594
|
/*jslint react:true*/
|
33570
33595
|
|
33596
|
+
var _excluded = ["size", "format", "placeholder", "options", "formatOptionLabel"];
|
33571
33597
|
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
33572
33598
|
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
33573
33599
|
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
@@ -33575,6 +33601,8 @@ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len
|
|
33575
33601
|
function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
|
33576
33602
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
33577
33603
|
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); }
|
33604
|
+
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; }
|
33605
|
+
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; }
|
33578
33606
|
|
33579
33607
|
|
33580
33608
|
|
@@ -33587,17 +33615,31 @@ function _extends() { _extends = Object.assign ? Object.assign.bind() : function
|
|
33587
33615
|
|
33588
33616
|
|
33589
33617
|
|
33590
|
-
var CompareTo = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().forwardRef(function (
|
33591
|
-
var
|
33618
|
+
var CompareTo = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().forwardRef(function (_ref, ref) {
|
33619
|
+
var _ref$size = _ref.size,
|
33620
|
+
size = _ref$size === void 0 ? 'md' : _ref$size,
|
33621
|
+
_ref$format = _ref.format,
|
33622
|
+
fmt = _ref$format === void 0 ? 'dd/MM/yyyy' : _ref$format,
|
33623
|
+
_ref$placeholder = _ref.placeholder,
|
33624
|
+
placeholder = _ref$placeholder === void 0 ? 'Compare to' : _ref$placeholder,
|
33625
|
+
_ref$options = _ref.options,
|
33626
|
+
options = _ref$options === void 0 ? [] : _ref$options,
|
33627
|
+
formatOptionLabel = _ref.formatOptionLabel,
|
33628
|
+
rest = _objectWithoutProperties(_ref, _excluded);
|
33629
|
+
var _formatOptionLabel = (0,react__WEBPACK_IMPORTED_MODULE_2__.useCallback)(function (opt) {
|
33592
33630
|
if (opt && lodash_isObject__WEBPACK_IMPORTED_MODULE_0___default()(opt)) {
|
33593
|
-
var text = opt.value != 'custom' ? opt.label : (0,date_fns_format__WEBPACK_IMPORTED_MODULE_12__["default"])(opt.from,
|
33594
|
-
return "".concat(
|
33631
|
+
var text = opt.value != 'custom' ? opt.label : (0,date_fns_format__WEBPACK_IMPORTED_MODULE_12__["default"])(opt.from, fmt);
|
33632
|
+
return "".concat(placeholder, " ").concat(text);
|
33595
33633
|
}
|
33596
33634
|
return '';
|
33597
|
-
}, [
|
33598
|
-
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(_dropdown__WEBPACK_IMPORTED_MODULE_10__.Dropdown, _extends({
|
33599
|
-
|
33600
|
-
|
33635
|
+
}, [fmt, placeholder]);
|
33636
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(_dropdown__WEBPACK_IMPORTED_MODULE_10__.Dropdown, _extends({
|
33637
|
+
ref: ref
|
33638
|
+
}, rest, {
|
33639
|
+
size: size,
|
33640
|
+
placeholder: placeholder,
|
33641
|
+
options: options,
|
33642
|
+
formatOptionLabel: formatOptionLabel || _formatOptionLabel,
|
33601
33643
|
components: {
|
33602
33644
|
MenuList: CompareToMenuList,
|
33603
33645
|
NoOptionsMessage: function NoOptionsMessage() {
|
@@ -33608,11 +33650,6 @@ var CompareTo = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().forwar
|
|
33608
33650
|
}));
|
33609
33651
|
});
|
33610
33652
|
CompareTo.displayName = 'CompareTo';
|
33611
|
-
CompareTo.defaultProps = {
|
33612
|
-
format: 'dd/MM/yyyy',
|
33613
|
-
size: 'md',
|
33614
|
-
placeholder: 'Compare to'
|
33615
|
-
};
|
33616
33653
|
CompareTo.propTypes = {
|
33617
33654
|
value: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().any),
|
33618
33655
|
options: prop_types__WEBPACK_IMPORTED_MODULE_1___default().arrayOf((prop_types__WEBPACK_IMPORTED_MODULE_1___default().any)),
|
@@ -33722,16 +33759,17 @@ __webpack_require__.r(__webpack_exports__);
|
|
33722
33759
|
|
33723
33760
|
|
33724
33761
|
/*jslint react:true*/
|
33725
|
-
var _excluded = ["
|
33762
|
+
var _excluded = ["onChange", "disabledDays", "isRange", "defaultMonth", "month", "onMonthChange", "renderPopover", "format", "size", "value"],
|
33763
|
+
_excluded2 = ["mode", "selected", "onChange", "renderPopover", "popover"];
|
33726
33764
|
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); }
|
33727
|
-
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; }
|
33728
|
-
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; }
|
33729
33765
|
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; }
|
33730
33766
|
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; }
|
33731
33767
|
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; }
|
33732
33768
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
33733
33769
|
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); }
|
33734
33770
|
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); }
|
33771
|
+
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; }
|
33772
|
+
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; }
|
33735
33773
|
|
33736
33774
|
|
33737
33775
|
|
@@ -33742,15 +33780,25 @@ function _extends() { _extends = Object.assign ? Object.assign.bind() : function
|
|
33742
33780
|
|
33743
33781
|
|
33744
33782
|
|
33745
|
-
var DatePicker = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().forwardRef(function (
|
33746
|
-
var onChange =
|
33747
|
-
disabledDays =
|
33748
|
-
isRange =
|
33749
|
-
|
33750
|
-
|
33751
|
-
|
33752
|
-
|
33753
|
-
|
33783
|
+
var DatePicker = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().forwardRef(function (_ref, ref) {
|
33784
|
+
var onChange = _ref.onChange,
|
33785
|
+
disabledDays = _ref.disabledDays,
|
33786
|
+
_ref$isRange = _ref.isRange,
|
33787
|
+
isRange = _ref$isRange === void 0 ? false : _ref$isRange,
|
33788
|
+
defaultMonth = _ref.defaultMonth,
|
33789
|
+
month = _ref.month,
|
33790
|
+
onMonthChange = _ref.onMonthChange,
|
33791
|
+
renderPopover = _ref.renderPopover,
|
33792
|
+
_ref$format = _ref.format,
|
33793
|
+
fmt = _ref$format === void 0 ? 'dd/MM/yyyy' : _ref$format,
|
33794
|
+
_ref$size = _ref.size,
|
33795
|
+
size = _ref$size === void 0 ? 'md' : _ref$size,
|
33796
|
+
_value = _ref.value,
|
33797
|
+
rest = _objectWithoutProperties(_ref, _excluded);
|
33798
|
+
var value = useValue({
|
33799
|
+
isRange: isRange,
|
33800
|
+
value: _value
|
33801
|
+
});
|
33754
33802
|
var popoverProps = (0,react__WEBPACK_IMPORTED_MODULE_1__.useMemo)(function () {
|
33755
33803
|
return {
|
33756
33804
|
selected: value,
|
@@ -33766,17 +33814,14 @@ var DatePicker = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().forwa
|
|
33766
33814
|
}, [value, disabledDays, onChange, isRange, defaultMonth, month, onMonthChange, renderPopover]);
|
33767
33815
|
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(Picker, _extends({
|
33768
33816
|
ref: ref
|
33769
|
-
},
|
33817
|
+
}, rest, {
|
33818
|
+
format: fmt,
|
33770
33819
|
value: value,
|
33771
|
-
popoverProps: popoverProps
|
33820
|
+
popoverProps: popoverProps,
|
33821
|
+
size: size
|
33772
33822
|
}));
|
33773
33823
|
});
|
33774
33824
|
DatePicker.displayName = 'DatePicker';
|
33775
|
-
DatePicker.defaultProps = {
|
33776
|
-
format: 'dd/MM/yyyy',
|
33777
|
-
size: 'md',
|
33778
|
-
isRange: false
|
33779
|
-
};
|
33780
33825
|
DatePicker.propTypes = {
|
33781
33826
|
value: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_0___default().string), (prop_types__WEBPACK_IMPORTED_MODULE_0___default().number), prop_types__WEBPACK_IMPORTED_MODULE_0___default().instanceOf(Date), (prop_types__WEBPACK_IMPORTED_MODULE_0___default().object)]),
|
33782
33827
|
format: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string),
|
@@ -33845,7 +33890,7 @@ var PickerPopover = function PickerPopover(props) {
|
|
33845
33890
|
onChange = props.onChange,
|
33846
33891
|
renderPopover = props.renderPopover,
|
33847
33892
|
popover = props.popover,
|
33848
|
-
rest = _objectWithoutProperties(props,
|
33893
|
+
rest = _objectWithoutProperties(props, _excluded2);
|
33849
33894
|
var handleDayClick = (0,react__WEBPACK_IMPORTED_MODULE_1__.useCallback)(function (day, activeModifiers) {
|
33850
33895
|
if (activeModifiers.disabled) return;
|
33851
33896
|
var val = day;
|
@@ -33865,8 +33910,8 @@ var PickerPopover = function PickerPopover(props) {
|
|
33865
33910
|
}
|
33866
33911
|
onChange(val);
|
33867
33912
|
}, [mode, selected]);
|
33868
|
-
var render = typeof renderPopover == 'function' ? renderPopover : function (
|
33869
|
-
var picker =
|
33913
|
+
var render = typeof renderPopover == 'function' ? renderPopover : function (_ref2) {
|
33914
|
+
var picker = _ref2.picker;
|
33870
33915
|
return picker;
|
33871
33916
|
};
|
33872
33917
|
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(DayPickerWrapper, {
|
@@ -33923,21 +33968,21 @@ Day.displayName = 'Day';
|
|
33923
33968
|
var DayWrapper = styled_components__WEBPACK_IMPORTED_MODULE_3___default().div.withConfig({
|
33924
33969
|
displayName: "DayWrapper",
|
33925
33970
|
componentId: "sc-1gurvxq-2"
|
33926
|
-
})(["padding:0;background-color:", ";border-top-left-radius:", ";border-bottom-left-radius:", ";border-top-right-radius:", ";border-bottom-right-radius:", ";.rdp-day{display:flex;flex-direction:column;justify-content:center;align-items:center;width:32px;height:32px;box-sizing:border-box;border-radius:", ";border:1px solid ", ";background-color:", ";cursor:pointer;font-family:", ";font-style:normal;font-weight:", ";font-size:", ";line-height:", ";color:", ";&:hover:not(:disabled){border:1px solid ", ";}&:disabled{color:", ";cursor:not-allowed;}}.rdp-day_today{color:", ";font-weight:", ";}.rdp-day_selected{background-color:", ";border:1px solid ", ";color:", ";}.rdp-day_range_middle{background-color:", ";border:1px solid ", ";color:", ";&.rdp-day_today{color:", ";}}"], function (
|
33927
|
-
var $mod = _ref2.$mod;
|
33928
|
-
return $mod.selected ? _theme__WEBPACK_IMPORTED_MODULE_5__["default"].color.blue_3 : _theme__WEBPACK_IMPORTED_MODULE_5__["default"].color.white;
|
33929
|
-
}, function (_ref3) {
|
33971
|
+
})(["padding:0;background-color:", ";border-top-left-radius:", ";border-bottom-left-radius:", ";border-top-right-radius:", ";border-bottom-right-radius:", ";.rdp-day{display:flex;flex-direction:column;justify-content:center;align-items:center;width:32px;height:32px;box-sizing:border-box;border-radius:", ";border:1px solid ", ";background-color:", ";cursor:pointer;font-family:", ";font-style:normal;font-weight:", ";font-size:", ";line-height:", ";color:", ";&:hover:not(:disabled){border:1px solid ", ";}&:disabled{color:", ";cursor:not-allowed;}}.rdp-day_today{color:", ";font-weight:", ";}.rdp-day_selected{background-color:", ";border:1px solid ", ";color:", ";}.rdp-day_range_middle{background-color:", ";border:1px solid ", ";color:", ";&.rdp-day_today{color:", ";}}"], function (_ref3) {
|
33930
33972
|
var $mod = _ref3.$mod;
|
33931
|
-
return $mod.
|
33973
|
+
return $mod.selected ? _theme__WEBPACK_IMPORTED_MODULE_5__["default"].color.blue_3 : _theme__WEBPACK_IMPORTED_MODULE_5__["default"].color.white;
|
33932
33974
|
}, function (_ref4) {
|
33933
33975
|
var $mod = _ref4.$mod;
|
33934
33976
|
return $mod.range_middle || $mod.range_end && !$mod.range_start ? '0' : borderRadius;
|
33935
33977
|
}, function (_ref5) {
|
33936
33978
|
var $mod = _ref5.$mod;
|
33937
|
-
return $mod.range_middle || $mod.
|
33979
|
+
return $mod.range_middle || $mod.range_end && !$mod.range_start ? '0' : borderRadius;
|
33938
33980
|
}, function (_ref6) {
|
33939
33981
|
var $mod = _ref6.$mod;
|
33940
33982
|
return $mod.range_middle || $mod.range_start && !$mod.range_end ? '0' : borderRadius;
|
33983
|
+
}, function (_ref7) {
|
33984
|
+
var $mod = _ref7.$mod;
|
33985
|
+
return $mod.range_middle || $mod.range_start && !$mod.range_end ? '0' : borderRadius;
|
33941
33986
|
}, borderRadius, _theme__WEBPACK_IMPORTED_MODULE_5__["default"].color.white, _theme__WEBPACK_IMPORTED_MODULE_5__["default"].color.white, _theme__WEBPACK_IMPORTED_MODULE_5__["default"].font_family.sans, _theme__WEBPACK_IMPORTED_MODULE_5__["default"].font_weight.regular, _theme__WEBPACK_IMPORTED_MODULE_5__["default"].font_size.xs, _theme__WEBPACK_IMPORTED_MODULE_5__["default"].line_height.none, _theme__WEBPACK_IMPORTED_MODULE_5__["default"].color.gray_11_50, _theme__WEBPACK_IMPORTED_MODULE_5__["default"].color.blue_10, _theme__WEBPACK_IMPORTED_MODULE_5__["default"].color.gray_7, _theme__WEBPACK_IMPORTED_MODULE_5__["default"].color.blue_11, _theme__WEBPACK_IMPORTED_MODULE_5__["default"].font_weight.semibold, _theme__WEBPACK_IMPORTED_MODULE_5__["default"].color.blue_10, _theme__WEBPACK_IMPORTED_MODULE_5__["default"].color.blue_10, _theme__WEBPACK_IMPORTED_MODULE_5__["default"].color.white, _theme__WEBPACK_IMPORTED_MODULE_5__["default"].color.blue_3, _theme__WEBPACK_IMPORTED_MODULE_5__["default"].color.blue_3, _theme__WEBPACK_IMPORTED_MODULE_5__["default"].color.gray_11_50, _theme__WEBPACK_IMPORTED_MODULE_5__["default"].color.blue_11);
|
33942
33987
|
var getDateText = function getDateText(props) {
|
33943
33988
|
var value = props.value,
|
@@ -34026,13 +34071,23 @@ var addItem = function addItem(matrix, i, j, item) {
|
|
34026
34071
|
var newMatrix = matrix.toSpliced(i, 1, newRow);
|
34027
34072
|
return newMatrix;
|
34028
34073
|
};
|
34029
|
-
var
|
34030
|
-
|
34031
|
-
|
34032
|
-
|
34033
|
-
|
34034
|
-
|
34035
|
-
|
34074
|
+
var noop = function noop() {
|
34075
|
+
return 0;
|
34076
|
+
};
|
34077
|
+
var DragDrop = function DragDrop(_ref) {
|
34078
|
+
var _ref$value = _ref.value,
|
34079
|
+
value = _ref$value === void 0 ? [[]] : _ref$value,
|
34080
|
+
_ref$onChange = _ref.onChange,
|
34081
|
+
onChange = _ref$onChange === void 0 ? noop : _ref$onChange,
|
34082
|
+
_ref$items = _ref.items,
|
34083
|
+
items = _ref$items === void 0 ? [] : _ref$items,
|
34084
|
+
_ref$sections = _ref.sections,
|
34085
|
+
sections = _ref$sections === void 0 ? [] : _ref$sections,
|
34086
|
+
_ref$direction = _ref.direction,
|
34087
|
+
direction = _ref$direction === void 0 ? 'row' : _ref$direction,
|
34088
|
+
CustomDrop = _ref.CustomDrop,
|
34089
|
+
CustomDrag = _ref.CustomDrag,
|
34090
|
+
EmptyComp = _ref.EmptyComp;
|
34036
34091
|
var onDragEnd = (0,react__WEBPACK_IMPORTED_MODULE_1__.useCallback)(function (arg) {
|
34037
34092
|
var source = arg.source,
|
34038
34093
|
destination = arg.destination;
|
@@ -34079,21 +34134,12 @@ var DragDrop = function DragDrop(props) {
|
|
34079
34134
|
isFirst: i == 0,
|
34080
34135
|
isLast: i == value.length - 1,
|
34081
34136
|
containerDirection: direction,
|
34082
|
-
Comp:
|
34083
|
-
DragComp:
|
34084
|
-
EmptyComp:
|
34137
|
+
Comp: CustomDrop,
|
34138
|
+
DragComp: CustomDrag,
|
34139
|
+
EmptyComp: EmptyComp
|
34085
34140
|
});
|
34086
34141
|
})));
|
34087
34142
|
};
|
34088
|
-
DragDrop.displayName = 'DragDrop';
|
34089
|
-
DragDrop.defaultProps = {
|
34090
|
-
value: [[]],
|
34091
|
-
items: [],
|
34092
|
-
onChange: function onChange() {
|
34093
|
-
return 0;
|
34094
|
-
},
|
34095
|
-
direction: 'row'
|
34096
|
-
};
|
34097
34143
|
DragDrop.propTypes = {
|
34098
34144
|
value: prop_types__WEBPACK_IMPORTED_MODULE_0___default().arrayOf((prop_types__WEBPACK_IMPORTED_MODULE_0___default().array)),
|
34099
34145
|
items: prop_types__WEBPACK_IMPORTED_MODULE_0___default().arrayOf((prop_types__WEBPACK_IMPORTED_MODULE_0___default().object)),
|
@@ -34459,7 +34505,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
34459
34505
|
|
34460
34506
|
|
34461
34507
|
/*jslint react:true*/
|
34462
|
-
var _excluded = ["id", "label", "labelIcon", "labelTooltip", "required", "necessityIndicator", "placeholder", "multiselect", "creatable", "clearable", "disabled", "invalid", "helperText", "className", "classNamePrefix", "hideSelectedOptions", "isOptionDisabled", "async", "searchable", "closeMenuOnSelect"];
|
34508
|
+
var _excluded = ["id", "label", "labelIcon", "labelTooltip", "required", "necessityIndicator", "placeholder", "multiselect", "creatable", "clearable", "disabled", "invalid", "helperText", "className", "classNamePrefix", "hideSelectedOptions", "isOptionDisabled", "async", "searchable", "closeMenuOnSelect", "size", "menuPlacement", "menuPortalTarget", "styles"];
|
34463
34509
|
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); }
|
34464
34510
|
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; }
|
34465
34511
|
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; }
|
@@ -34486,7 +34532,7 @@ var defaultIsOptionDisabled = function defaultIsOptionDisabled(opt) {
|
|
34486
34532
|
return opt.disabled;
|
34487
34533
|
};
|
34488
34534
|
var Dropdown = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().forwardRef(function (props, forwardRef) {
|
34489
|
-
var _splitProps = (0,_util__WEBPACK_IMPORTED_MODULE_8__.splitProps)(props, 'autoFocus', 'blurInputOnSelect', 'filterOption', 'formatOptionLabel', 'value', 'defaultValue', 'options', 'onChange', 'onFocus', 'onBlur', '
|
34535
|
+
var _splitProps = (0,_util__WEBPACK_IMPORTED_MODULE_8__.splitProps)(props, 'autoFocus', 'blurInputOnSelect', 'filterOption', 'formatOptionLabel', 'value', 'defaultValue', 'options', 'onChange', 'onFocus', 'onBlur', 'onChangeCapture', 'onInputChange', 'getOptionValue', 'getOptionLabel', 'isOptionSelected', 'isLoading', 'loadOptions', 'defaultOptions', 'cacheOptions', 'onCreateOption', 'formatCreateLabel', 'isValidNewOption', 'getNewOptionData', 'onMenuOpen', 'onMenuClose', 'openMenuOnFocus', 'menuIsOpen'),
|
34490
34536
|
_splitProps2 = _slicedToArray(_splitProps, 2),
|
34491
34537
|
selectProps = _splitProps2[0],
|
34492
34538
|
restProps = _splitProps2[1];
|
@@ -34499,7 +34545,8 @@ var Dropdown = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().forward
|
|
34499
34545
|
placeholder = restProps.placeholder,
|
34500
34546
|
multiselect = restProps.multiselect,
|
34501
34547
|
creatable = restProps.creatable,
|
34502
|
-
clearable = restProps.clearable,
|
34548
|
+
_restProps$clearable = restProps.clearable,
|
34549
|
+
clearable = _restProps$clearable === void 0 ? false : _restProps$clearable,
|
34503
34550
|
disabled = restProps.disabled,
|
34504
34551
|
invalid = restProps.invalid,
|
34505
34552
|
helperText = restProps.helperText,
|
@@ -34510,10 +34557,20 @@ var Dropdown = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().forward
|
|
34510
34557
|
async = restProps.async,
|
34511
34558
|
searchable = restProps.searchable,
|
34512
34559
|
closeMenuOnSelect = restProps.closeMenuOnSelect,
|
34560
|
+
_restProps$size = restProps.size,
|
34561
|
+
size = _restProps$size === void 0 ? 'sm' : _restProps$size,
|
34562
|
+
_restProps$menuPlacem = restProps.menuPlacement,
|
34563
|
+
menuPlacement = _restProps$menuPlacem === void 0 ? 'auto' : _restProps$menuPlacem,
|
34564
|
+
menuPortalTarget = restProps.menuPortalTarget,
|
34565
|
+
_styles = restProps.styles,
|
34513
34566
|
rest = _objectWithoutProperties(restProps, _excluded);
|
34514
34567
|
var labelId = (0,_hooks__WEBPACK_IMPORTED_MODULE_5__.useLabelId)(id);
|
34515
34568
|
var t = (0,_translation__WEBPACK_IMPORTED_MODULE_7__.useTranslate)();
|
34516
|
-
var styles = (0,_use_styles__WEBPACK_IMPORTED_MODULE_11__.useStyles)(
|
34569
|
+
var styles = (0,_use_styles__WEBPACK_IMPORTED_MODULE_11__.useStyles)({
|
34570
|
+
styles: _styles,
|
34571
|
+
size: size,
|
34572
|
+
menuPortalTarget: menuPortalTarget
|
34573
|
+
});
|
34517
34574
|
var SelectComp = getComponent({
|
34518
34575
|
async: async,
|
34519
34576
|
creatable: creatable
|
@@ -34551,7 +34608,9 @@ var Dropdown = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().forward
|
|
34551
34608
|
classNamePrefix: classNamePrefix,
|
34552
34609
|
closeMenuOnSelect: (0,_util__WEBPACK_IMPORTED_MODULE_8__.firstDefined)(closeMenuOnSelect, !multiselect),
|
34553
34610
|
hideSelectedOptions: (0,_util__WEBPACK_IMPORTED_MODULE_8__.firstDefined)(props.autosize === false ? false : undefined, hideSelectedOptions),
|
34554
|
-
isOptionDisabled: (0,_util__WEBPACK_IMPORTED_MODULE_8__.firstDefined)(isOptionDisabled, defaultIsOptionDisabled)
|
34611
|
+
isOptionDisabled: (0,_util__WEBPACK_IMPORTED_MODULE_8__.firstDefined)(isOptionDisabled, defaultIsOptionDisabled),
|
34612
|
+
menuPlacement: menuPlacement,
|
34613
|
+
menuPortalTarget: menuPortalTarget
|
34555
34614
|
})), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_shared__WEBPACK_IMPORTED_MODULE_9__.HelperText, {
|
34556
34615
|
invalid: invalid
|
34557
34616
|
}, helperText));
|
@@ -34609,11 +34668,6 @@ Dropdown.propTypes = {
|
|
34609
34668
|
menuIsOpen: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool),
|
34610
34669
|
closeMenuOnSelect: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool)
|
34611
34670
|
};
|
34612
|
-
Dropdown.defaultProps = {
|
34613
|
-
size: 'sm',
|
34614
|
-
clearable: false,
|
34615
|
-
menuPlacement: 'auto'
|
34616
|
-
};
|
34617
34671
|
var getComponent = function getComponent(opt) {
|
34618
34672
|
if (opt.async) return opt.creatable ? react_select_async_creatable__WEBPACK_IMPORTED_MODULE_4__["default"] : react_select_async__WEBPACK_IMPORTED_MODULE_3__["default"];
|
34619
34673
|
return opt.creatable ? react_select_creatable__WEBPACK_IMPORTED_MODULE_2__["default"] : react_select__WEBPACK_IMPORTED_MODULE_12__["default"];
|
@@ -35198,16 +35252,24 @@ function _extends() { _extends = Object.assign ? Object.assign.bind() : function
|
|
35198
35252
|
|
35199
35253
|
|
35200
35254
|
|
35201
|
-
var
|
35202
|
-
var
|
35203
|
-
|
35204
|
-
|
35205
|
-
|
35206
|
-
|
35207
|
-
|
35208
|
-
|
35209
|
-
|
35210
|
-
|
35255
|
+
var defaultFileInfoFormatter = function defaultFileInfoFormatter() {
|
35256
|
+
var file = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
35257
|
+
return file.name || '';
|
35258
|
+
};
|
35259
|
+
var FileUploader = function FileUploader(_ref) {
|
35260
|
+
var label = _ref.label,
|
35261
|
+
_ref$antiVirusScanTex = _ref.antiVirusScanText,
|
35262
|
+
antiVirusScanText = _ref$antiVirusScanTex === void 0 ? 'Scanning for viruses...' : _ref$antiVirusScanTex,
|
35263
|
+
accept = _ref.accept,
|
35264
|
+
multi = _ref.multi,
|
35265
|
+
_ref$files = _ref.files,
|
35266
|
+
files = _ref$files === void 0 ? [] : _ref$files,
|
35267
|
+
_ref$fileInfoFormatte = _ref.fileInfoFormatter,
|
35268
|
+
fileInfoFormatter = _ref$fileInfoFormatte === void 0 ? defaultFileInfoFormatter : _ref$fileInfoFormatte,
|
35269
|
+
onFileUpload = _ref.onFileUpload,
|
35270
|
+
onFileDelete = _ref.onFileDelete,
|
35271
|
+
_ref$showDropzone = _ref.showDropzone,
|
35272
|
+
showDropzone = _ref$showDropzone === void 0 ? true : _ref$showDropzone;
|
35211
35273
|
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_layout__WEBPACK_IMPORTED_MODULE_2__.Flex, {
|
35212
35274
|
flex_direction: "column",
|
35213
35275
|
gap: "03"
|
@@ -35225,7 +35287,6 @@ var FileUploader = function FileUploader(props) {
|
|
35225
35287
|
}, file));
|
35226
35288
|
}));
|
35227
35289
|
};
|
35228
|
-
FileUploader.displayName = 'FileUploader';
|
35229
35290
|
FileUploader.propTypes = {
|
35230
35291
|
label: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string),
|
35231
35292
|
antiVirusScanText: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string),
|
@@ -35248,15 +35309,6 @@ FileUploader.propTypes = {
|
|
35248
35309
|
onFileUpload: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().func),
|
35249
35310
|
onFileDelete: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().func)
|
35250
35311
|
};
|
35251
|
-
FileUploader.defaultProps = {
|
35252
|
-
files: [],
|
35253
|
-
fileInfoFormatter: function fileInfoFormatter() {
|
35254
|
-
var file = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
35255
|
-
return file.name;
|
35256
|
-
},
|
35257
|
-
showDropzone: true,
|
35258
|
-
antiVirusScanText: 'Scanning for viruses...'
|
35259
|
-
};
|
35260
35312
|
|
35261
35313
|
/***/ }),
|
35262
35314
|
|
@@ -35481,10 +35533,7 @@ var UploadItemBody = styled_components__WEBPACK_IMPORTED_MODULE_1___default()(_l
|
|
35481
35533
|
componentId: "sc-1ua6zh3-2"
|
35482
35534
|
})(["flex-grow:1;"]);
|
35483
35535
|
var UploadItem = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().memo(function (props) {
|
35484
|
-
var
|
35485
|
-
createTime = props.createTime,
|
35486
|
-
size = props.size,
|
35487
|
-
name = props.name,
|
35536
|
+
var size = props.size,
|
35488
35537
|
id = props.id,
|
35489
35538
|
status = props.status,
|
35490
35539
|
error = props.error,
|
@@ -35533,7 +35582,6 @@ UploadItem.propTypes = {
|
|
35533
35582
|
icon: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().any),
|
35534
35583
|
antiVirusScanText: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string)
|
35535
35584
|
};
|
35536
|
-
UploadItem.defaultProps = {};
|
35537
35585
|
|
35538
35586
|
/***/ }),
|
35539
35587
|
|
@@ -36658,8 +36706,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
36658
36706
|
|
36659
36707
|
/*jslint react:true*/
|
36660
36708
|
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); }
|
36661
|
-
var _excluded = ["className", "classNamePrefix", "value", "onChange", "disabled", "options", "variant", "size", "label", "labelIcon", "labelTooltip", "helperText", "invalid", "required", "necessityIndicator"],
|
36662
|
-
_excluded2 = ["classNamePrefix", "value", "checked", "onClick", "label", "disabled", "size", "tooltip", "
|
36709
|
+
var _excluded = ["id", "className", "classNamePrefix", "value", "onChange", "disabled", "options", "variant", "size", "label", "labelIcon", "labelTooltip", "helperText", "invalid", "required", "necessityIndicator"],
|
36710
|
+
_excluded2 = ["id", "classNamePrefix", "value", "checked", "onClick", "label", "disabled", "size", "tooltip", "tooltipProps", "verticalAlign"];
|
36663
36711
|
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); }
|
36664
36712
|
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; }
|
36665
36713
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
@@ -36676,24 +36724,27 @@ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) r
|
|
36676
36724
|
|
36677
36725
|
|
36678
36726
|
|
36679
|
-
var RadioGroup = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().forwardRef(function (
|
36680
|
-
var
|
36681
|
-
|
36682
|
-
|
36683
|
-
|
36684
|
-
|
36685
|
-
|
36686
|
-
|
36687
|
-
|
36688
|
-
|
36689
|
-
|
36690
|
-
|
36691
|
-
|
36692
|
-
|
36693
|
-
|
36694
|
-
|
36695
|
-
|
36696
|
-
|
36727
|
+
var RadioGroup = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().forwardRef(function (_ref, ref) {
|
36728
|
+
var id = _ref.id,
|
36729
|
+
className = _ref.className,
|
36730
|
+
classNamePrefix = _ref.classNamePrefix,
|
36731
|
+
value = _ref.value,
|
36732
|
+
onChange = _ref.onChange,
|
36733
|
+
disabled = _ref.disabled,
|
36734
|
+
options = _ref.options,
|
36735
|
+
_ref$variant = _ref.variant,
|
36736
|
+
variant = _ref$variant === void 0 ? 'row' : _ref$variant,
|
36737
|
+
_ref$size = _ref.size,
|
36738
|
+
size = _ref$size === void 0 ? 'sm' : _ref$size,
|
36739
|
+
label = _ref.label,
|
36740
|
+
labelIcon = _ref.labelIcon,
|
36741
|
+
labelTooltip = _ref.labelTooltip,
|
36742
|
+
helperText = _ref.helperText,
|
36743
|
+
invalid = _ref.invalid,
|
36744
|
+
required = _ref.required,
|
36745
|
+
necessityIndicator = _ref.necessityIndicator,
|
36746
|
+
rest = _objectWithoutProperties(_ref, _excluded);
|
36747
|
+
var labelId = (0,_hooks__WEBPACK_IMPORTED_MODULE_2__.useLabelId)(id);
|
36697
36748
|
var handleChange = function handleChange(val, opt, evt) {
|
36698
36749
|
if (!disabled) onChange === null || onChange === void 0 || onChange(val, opt, evt);
|
36699
36750
|
};
|
@@ -36703,7 +36754,7 @@ var RadioGroup = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().forwa
|
|
36703
36754
|
container: true
|
36704
36755
|
}, className),
|
36705
36756
|
flex_direction: "column",
|
36706
|
-
gap:
|
36757
|
+
gap: "03"
|
36707
36758
|
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_shared__WEBPACK_IMPORTED_MODULE_8__.InputLabel, {
|
36708
36759
|
classNamePrefix: classNamePrefix,
|
36709
36760
|
id: labelId,
|
@@ -36715,6 +36766,7 @@ var RadioGroup = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().forwa
|
|
36715
36766
|
variant: "lg"
|
36716
36767
|
}), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_common__WEBPACK_IMPORTED_MODULE_9__.GroupWrapper, _extends({
|
36717
36768
|
ref: ref,
|
36769
|
+
id: id,
|
36718
36770
|
className: (0,_util__WEBPACK_IMPORTED_MODULE_7__.classNames)(classNamePrefix, _defineProperty({
|
36719
36771
|
radioGroup: true
|
36720
36772
|
}, "radioGroup--".concat(variant), true)),
|
@@ -36760,31 +36812,30 @@ RadioGroup.propTypes = {
|
|
36760
36812
|
})),
|
36761
36813
|
classNamePrefix: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string)
|
36762
36814
|
};
|
36763
|
-
|
36764
|
-
|
36765
|
-
|
36766
|
-
|
36767
|
-
|
36768
|
-
|
36769
|
-
|
36770
|
-
|
36771
|
-
|
36772
|
-
|
36773
|
-
|
36774
|
-
|
36775
|
-
|
36776
|
-
|
36777
|
-
|
36778
|
-
|
36779
|
-
var labelId = (0,_hooks__WEBPACK_IMPORTED_MODULE_2__.useLabelId)(props.id);
|
36815
|
+
var Radio = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().forwardRef(function (_ref2, ref) {
|
36816
|
+
var id = _ref2.id,
|
36817
|
+
classNamePrefix = _ref2.classNamePrefix,
|
36818
|
+
value = _ref2.value,
|
36819
|
+
checked = _ref2.checked,
|
36820
|
+
onClick = _ref2.onClick,
|
36821
|
+
label = _ref2.label,
|
36822
|
+
disabled = _ref2.disabled,
|
36823
|
+
_ref2$size = _ref2.size,
|
36824
|
+
size = _ref2$size === void 0 ? 'md' : _ref2$size,
|
36825
|
+
tooltip = _ref2.tooltip,
|
36826
|
+
tooltipProps = _ref2.tooltipProps,
|
36827
|
+
_ref2$verticalAlign = _ref2.verticalAlign,
|
36828
|
+
verticalAlign = _ref2$verticalAlign === void 0 ? 'top' : _ref2$verticalAlign,
|
36829
|
+
rest = _objectWithoutProperties(_ref2, _excluded2);
|
36830
|
+
var labelId = (0,_hooks__WEBPACK_IMPORTED_MODULE_2__.useLabelId)(id);
|
36780
36831
|
var handleClick = function handleClick(evt) {
|
36781
36832
|
if (!disabled) onClick === null || onClick === void 0 || onClick(value, evt);
|
36782
36833
|
};
|
36783
|
-
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_tooltip__WEBPACK_IMPORTED_MODULE_5__.Tooltip, {
|
36784
|
-
tooltip: tooltip
|
36785
|
-
|
36786
|
-
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_common__WEBPACK_IMPORTED_MODULE_9__.RadioWrapper, _extends({
|
36834
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_tooltip__WEBPACK_IMPORTED_MODULE_5__.Tooltip, _extends({}, tooltipProps, {
|
36835
|
+
tooltip: tooltip
|
36836
|
+
}), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_common__WEBPACK_IMPORTED_MODULE_9__.RadioWrapper, _extends({
|
36787
36837
|
ref: ref,
|
36838
|
+
id: id,
|
36788
36839
|
className: (0,_util__WEBPACK_IMPORTED_MODULE_7__.classNames)(classNamePrefix, _defineProperty(_defineProperty({
|
36789
36840
|
radio: true
|
36790
36841
|
}, 'radio--is-selected', checked), 'radio--is-disabled', disabled))
|
@@ -36822,10 +36873,6 @@ Radio.propTypes = {
|
|
36822
36873
|
verticalAlign: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOf(['top', 'middle', 'bottom']),
|
36823
36874
|
size: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOf(['sm', 'md'])
|
36824
36875
|
};
|
36825
|
-
Radio.defaultProps = {
|
36826
|
-
verticalAlign: 'top',
|
36827
|
-
size: 'md'
|
36828
|
-
};
|
36829
36876
|
|
36830
36877
|
/***/ }),
|
36831
36878
|
|
@@ -36857,7 +36904,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
36857
36904
|
|
36858
36905
|
/*jslint react:true*/
|
36859
36906
|
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); }
|
36860
|
-
var _excluded = ["options", "classNamePrefix", "rounded"];
|
36907
|
+
var _excluded = ["options", "classNamePrefix", "rounded", "disabled", "size"];
|
36861
36908
|
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); }
|
36862
36909
|
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; }
|
36863
36910
|
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; }
|
@@ -36920,25 +36967,29 @@ var RadioTabLabel = function RadioTabLabel(props) {
|
|
36920
36967
|
}, description)));
|
36921
36968
|
};
|
36922
36969
|
var radioTabPrefix = 'radioTab';
|
36923
|
-
var RadioTab = function RadioTab(
|
36924
|
-
var options =
|
36925
|
-
classNamePrefix =
|
36926
|
-
rounded =
|
36927
|
-
|
36970
|
+
var RadioTab = function RadioTab(_ref2) {
|
36971
|
+
var options = _ref2.options,
|
36972
|
+
classNamePrefix = _ref2.classNamePrefix,
|
36973
|
+
rounded = _ref2.rounded,
|
36974
|
+
disabled = _ref2.disabled,
|
36975
|
+
_ref2$size = _ref2.size,
|
36976
|
+
size = _ref2$size === void 0 ? 'sm' : _ref2$size,
|
36977
|
+
rest = _objectWithoutProperties(_ref2, _excluded);
|
36928
36978
|
var cnPrefix = classNamePrefix ? "".concat(classNamePrefix, "_").concat(radioTabPrefix) : radioTabPrefix;
|
36929
36979
|
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(RadioTabStyled, _extends({}, rest, {
|
36930
36980
|
$rounded: rounded,
|
36981
|
+
size: size,
|
36982
|
+
disabled: disabled,
|
36931
36983
|
classNamePrefix: cnPrefix,
|
36932
36984
|
options: options.map(function (o) {
|
36933
36985
|
return _objectSpread(_objectSpread({}, o), {}, {
|
36934
36986
|
label: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(RadioTabLabel, _extends({}, o, {
|
36935
|
-
disabled:
|
36987
|
+
disabled: disabled || o.disabled
|
36936
36988
|
}))
|
36937
36989
|
});
|
36938
36990
|
})
|
36939
36991
|
}));
|
36940
36992
|
};
|
36941
|
-
RadioTab.displayName = 'RadioTab';
|
36942
36993
|
RadioTab.propTypes = {
|
36943
36994
|
value: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().any),
|
36944
36995
|
onChange: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().func),
|
@@ -36963,9 +37014,6 @@ RadioTab.propTypes = {
|
|
36963
37014
|
})),
|
36964
37015
|
classNamePrefix: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string)
|
36965
37016
|
};
|
36966
|
-
RadioTab.defaultProps = {
|
36967
|
-
size: 'sm'
|
36968
|
-
};
|
36969
37017
|
|
36970
37018
|
/***/ }),
|
36971
37019
|
|
@@ -37159,16 +37207,18 @@ var Field = styled_components__WEBPACK_IMPORTED_MODULE_2___default().input.withC
|
|
37159
37207
|
displayName: "Field",
|
37160
37208
|
componentId: "sc-r60v1b-0"
|
37161
37209
|
})(["width:100%;box-sizing:border-box;padding:0;outline:none;border:0;flex-grow:1;background:inherit;font-family:", ";font-style:normal;font-weight:", ";font-size:", ";line-height:", ";color:", ";::placeholder{color:", ";}"], _theme__WEBPACK_IMPORTED_MODULE_6__["default"].font_family.sans, _theme__WEBPACK_IMPORTED_MODULE_6__["default"].font_weight.regular, _theme__WEBPACK_IMPORTED_MODULE_6__["default"].font_size.sm, _theme__WEBPACK_IMPORTED_MODULE_6__["default"].line_height.none, _theme__WEBPACK_IMPORTED_MODULE_6__["default"].color.gray_11_50, _theme__WEBPACK_IMPORTED_MODULE_6__["default"].color.gray_8);
|
37162
|
-
var InputLabel = function InputLabel(
|
37163
|
-
var className =
|
37164
|
-
classNamePrefix =
|
37165
|
-
id =
|
37166
|
-
label =
|
37167
|
-
labelIcon =
|
37168
|
-
labelTooltip =
|
37169
|
-
required =
|
37170
|
-
|
37171
|
-
|
37210
|
+
var InputLabel = function InputLabel(_ref) {
|
37211
|
+
var className = _ref.className,
|
37212
|
+
classNamePrefix = _ref.classNamePrefix,
|
37213
|
+
id = _ref.id,
|
37214
|
+
label = _ref.label,
|
37215
|
+
labelIcon = _ref.labelIcon,
|
37216
|
+
labelTooltip = _ref.labelTooltip,
|
37217
|
+
required = _ref.required,
|
37218
|
+
_ref$necessityIndicat = _ref.necessityIndicator,
|
37219
|
+
necessityIndicator = _ref$necessityIndicat === void 0 ? 'asterisk' : _ref$necessityIndicat,
|
37220
|
+
_ref$variant = _ref.variant,
|
37221
|
+
variant = _ref$variant === void 0 ? 'sm' : _ref$variant;
|
37172
37222
|
var t = (0,_translation__WEBPACK_IMPORTED_MODULE_8__.useReactTranslate)();
|
37173
37223
|
if (!label) return null;
|
37174
37224
|
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(LabelWrapper, {
|
@@ -37198,10 +37248,6 @@ var InputLabel = function InputLabel(props) {
|
|
37198
37248
|
color: "gray_9"
|
37199
37249
|
})));
|
37200
37250
|
};
|
37201
|
-
InputLabel.displayName = 'InputLabel';
|
37202
|
-
InputLabel.defaultProps = {
|
37203
|
-
necessityIndicator: 'asterisk'
|
37204
|
-
};
|
37205
37251
|
InputLabel.propTypes = {
|
37206
37252
|
label: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().node),
|
37207
37253
|
labelIcon: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string),
|
@@ -37210,9 +37256,6 @@ InputLabel.propTypes = {
|
|
37210
37256
|
necessityIndicator: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOf(['asterisk', 'text']),
|
37211
37257
|
variant: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOf(['sm', 'lg'])
|
37212
37258
|
};
|
37213
|
-
InputLabel.defaultProps = {
|
37214
|
-
variant: 'sm'
|
37215
|
-
};
|
37216
37259
|
var LabelWrapper = styled_components__WEBPACK_IMPORTED_MODULE_2___default().div.withConfig({
|
37217
37260
|
displayName: "LabelWrapper",
|
37218
37261
|
componentId: "sc-r60v1b-1"
|
@@ -37255,7 +37298,8 @@ var InputWrapper = styled_components__WEBPACK_IMPORTED_MODULE_2___default().div.
|
|
37255
37298
|
displayName: "InputWrapper",
|
37256
37299
|
componentId: "sc-r60v1b-7"
|
37257
37300
|
})(["position:relative;width:100%;border:1px solid;border-radius:4px;box-sizing:border-box;font-family:", ";padding:", "px ", "px;overflow:auto;display:flex;gap:8px;align-items:", ";border-left-width:1px;border-right-width:1px;border-top-left-radius:", ";border-bottom-left-radius:", ";border-top-right-radius:", ";border-bottom-right-radius:", ";", " ", ""], _theme__WEBPACK_IMPORTED_MODULE_6__["default"].font_family.sans, inputVerticalPadding, inputHorizontalPadding, function (props) {
|
37258
|
-
|
37301
|
+
var _props$$verticalAlign;
|
37302
|
+
return (_props$$verticalAlign = props.$verticalAlign) !== null && _props$$verticalAlign !== void 0 ? _props$$verticalAlign : 'normal';
|
37259
37303
|
}, function (props) {
|
37260
37304
|
return props.$leftOuterContent ? '0' : '4px';
|
37261
37305
|
}, function (props) {
|
@@ -37284,10 +37328,6 @@ var InputWrapper = styled_components__WEBPACK_IMPORTED_MODULE_2___default().div.
|
|
37284
37328
|
}
|
37285
37329
|
return (0,styled_components__WEBPACK_IMPORTED_MODULE_2__.css)(["cursor:", ";background-color:", ";border-color:", ";color:", ";box-shadow:", ";"], cursor, backgroundColor, borderColor, color, boxShadow);
|
37286
37330
|
});
|
37287
|
-
InputWrapper.displayName = 'InputWrapper';
|
37288
|
-
InputWrapper.defaultProps = {
|
37289
|
-
$verticalAlign: 'normal'
|
37290
|
-
};
|
37291
37331
|
var HelperText = function HelperText(props) {
|
37292
37332
|
var children = props.children,
|
37293
37333
|
invalid = props.invalid;
|
@@ -37771,7 +37811,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
37771
37811
|
|
37772
37812
|
/*jslint node:true, react:true*/
|
37773
37813
|
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); }
|
37774
|
-
var _excluded = ["className", "size", "label", "labelIcon", "labelTooltip", "required", "necessityIndicator", "disabled", "buttonText", "onButtonClick", "invalid", "helperText", "placeholder", "value", "onFocus", "onBlur", "onValidate", "onRemoveItem", "onChange", "maxItems", "itemRenderer", "isItemDisabled", "defaultInputValue", "defaultValue"];
|
37814
|
+
var _excluded = ["id", "className", "size", "label", "labelIcon", "labelTooltip", "required", "necessityIndicator", "disabled", "buttonText", "onButtonClick", "invalid", "helperText", "placeholder", "value", "onFocus", "onBlur", "onValidate", "onRemoveItem", "onChange", "maxItems", "itemRenderer", "isItemDisabled", "defaultInputValue", "defaultValue"];
|
37775
37815
|
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); }
|
37776
37816
|
function _regeneratorRuntime() { "use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ _regeneratorRuntime = function _regeneratorRuntime() { return e; }; var t, e = {}, r = Object.prototype, n = r.hasOwnProperty, o = Object.defineProperty || function (t, e, r) { t[e] = r.value; }, i = "function" == typeof Symbol ? Symbol : {}, a = i.iterator || "@@iterator", c = i.asyncIterator || "@@asyncIterator", u = i.toStringTag || "@@toStringTag"; function define(t, e, r) { return Object.defineProperty(t, e, { value: r, enumerable: !0, configurable: !0, writable: !0 }), t[e]; } try { define({}, ""); } catch (t) { define = function define(t, e, r) { return t[e] = r; }; } function wrap(t, e, r, n) { var i = e && e.prototype instanceof Generator ? e : Generator, a = Object.create(i.prototype), c = new Context(n || []); return o(a, "_invoke", { value: makeInvokeMethod(t, r, c) }), a; } function tryCatch(t, e, r) { try { return { type: "normal", arg: t.call(e, r) }; } catch (t) { return { type: "throw", arg: t }; } } e.wrap = wrap; var h = "suspendedStart", l = "suspendedYield", f = "executing", s = "completed", y = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var p = {}; define(p, a, function () { return this; }); var d = Object.getPrototypeOf, v = d && d(d(values([]))); v && v !== r && n.call(v, a) && (p = v); var g = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(p); function defineIteratorMethods(t) { ["next", "throw", "return"].forEach(function (e) { define(t, e, function (t) { return this._invoke(e, t); }); }); } function AsyncIterator(t, e) { function invoke(r, o, i, a) { var c = tryCatch(t[r], t, o); if ("throw" !== c.type) { var u = c.arg, h = u.value; return h && "object" == _typeof(h) && n.call(h, "__await") ? e.resolve(h.__await).then(function (t) { invoke("next", t, i, a); }, function (t) { invoke("throw", t, i, a); }) : e.resolve(h).then(function (t) { u.value = t, i(u); }, function (t) { return invoke("throw", t, i, a); }); } a(c.arg); } var r; o(this, "_invoke", { value: function value(t, n) { function callInvokeWithMethodAndArg() { return new e(function (e, r) { invoke(t, n, e, r); }); } return r = r ? r.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); } }); } function makeInvokeMethod(e, r, n) { var o = h; return function (i, a) { if (o === f) throw Error("Generator is already running"); if (o === s) { if ("throw" === i) throw a; return { value: t, done: !0 }; } for (n.method = i, n.arg = a;;) { var c = n.delegate; if (c) { var u = maybeInvokeDelegate(c, n); if (u) { if (u === y) continue; return u; } } if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) { if (o === h) throw o = s, n.arg; n.dispatchException(n.arg); } else "return" === n.method && n.abrupt("return", n.arg); o = f; var p = tryCatch(e, r, n); if ("normal" === p.type) { if (o = n.done ? s : l, p.arg === y) continue; return { value: p.arg, done: n.done }; } "throw" === p.type && (o = s, n.method = "throw", n.arg = p.arg); } }; } function maybeInvokeDelegate(e, r) { var n = r.method, o = e.iterator[n]; if (o === t) return r.delegate = null, "throw" === n && e.iterator["return"] && (r.method = "return", r.arg = t, maybeInvokeDelegate(e, r), "throw" === r.method) || "return" !== n && (r.method = "throw", r.arg = new TypeError("The iterator does not provide a '" + n + "' method")), y; var i = tryCatch(o, e.iterator, r.arg); if ("throw" === i.type) return r.method = "throw", r.arg = i.arg, r.delegate = null, y; var a = i.arg; return a ? a.done ? (r[e.resultName] = a.value, r.next = e.nextLoc, "return" !== r.method && (r.method = "next", r.arg = t), r.delegate = null, y) : a : (r.method = "throw", r.arg = new TypeError("iterator result is not an object"), r.delegate = null, y); } function pushTryEntry(t) { var e = { tryLoc: t[0] }; 1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e); } function resetTryEntry(t) { var e = t.completion || {}; e.type = "normal", delete e.arg, t.completion = e; } function Context(t) { this.tryEntries = [{ tryLoc: "root" }], t.forEach(pushTryEntry, this), this.reset(!0); } function values(e) { if (e || "" === e) { var r = e[a]; if (r) return r.call(e); if ("function" == typeof e.next) return e; if (!isNaN(e.length)) { var o = -1, i = function next() { for (; ++o < e.length;) if (n.call(e, o)) return next.value = e[o], next.done = !1, next; return next.value = t, next.done = !0, next; }; return i.next = i; } } throw new TypeError(_typeof(e) + " is not iterable"); } return GeneratorFunction.prototype = GeneratorFunctionPrototype, o(g, "constructor", { value: GeneratorFunctionPrototype, configurable: !0 }), o(GeneratorFunctionPrototype, "constructor", { value: GeneratorFunction, configurable: !0 }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, "GeneratorFunction"), e.isGeneratorFunction = function (t) { var e = "function" == typeof t && t.constructor; return !!e && (e === GeneratorFunction || "GeneratorFunction" === (e.displayName || e.name)); }, e.mark = function (t) { return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, define(t, u, "GeneratorFunction")), t.prototype = Object.create(g), t; }, e.awrap = function (t) { return { __await: t }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, c, function () { return this; }), e.AsyncIterator = AsyncIterator, e.async = function (t, r, n, o, i) { void 0 === i && (i = Promise); var a = new AsyncIterator(wrap(t, r, n, o), i); return e.isGeneratorFunction(r) ? a : a.next().then(function (t) { return t.done ? t.value : a.next(); }); }, defineIteratorMethods(g), define(g, u, "Generator"), define(g, a, function () { return this; }), define(g, "toString", function () { return "[object Generator]"; }), e.keys = function (t) { var e = Object(t), r = []; for (var n in e) r.push(n); return r.reverse(), function next() { for (; r.length;) { var t = r.pop(); if (t in e) return next.value = t, next.done = !1, next; } return next.done = !0, next; }; }, e.values = values, Context.prototype = { constructor: Context, reset: function reset(e) { if (this.prev = 0, this.next = 0, this.sent = this._sent = t, this.done = !1, this.delegate = null, this.method = "next", this.arg = t, this.tryEntries.forEach(resetTryEntry), !e) for (var r in this) "t" === r.charAt(0) && n.call(this, r) && !isNaN(+r.slice(1)) && (this[r] = t); }, stop: function stop() { this.done = !0; var t = this.tryEntries[0].completion; if ("throw" === t.type) throw t.arg; return this.rval; }, dispatchException: function dispatchException(e) { if (this.done) throw e; var r = this; function handle(n, o) { return a.type = "throw", a.arg = e, r.next = n, o && (r.method = "next", r.arg = t), !!o; } for (var o = this.tryEntries.length - 1; o >= 0; --o) { var i = this.tryEntries[o], a = i.completion; if ("root" === i.tryLoc) return handle("end"); if (i.tryLoc <= this.prev) { var c = n.call(i, "catchLoc"), u = n.call(i, "finallyLoc"); if (c && u) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } else if (c) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); } else { if (!u) throw Error("try statement without catch or finally"); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } } } }, abrupt: function abrupt(t, e) { for (var r = this.tryEntries.length - 1; r >= 0; --r) { var o = this.tryEntries[r]; if (o.tryLoc <= this.prev && n.call(o, "finallyLoc") && this.prev < o.finallyLoc) { var i = o; break; } } i && ("break" === t || "continue" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null); var a = i ? i.completion : {}; return a.type = t, a.arg = e, i ? (this.method = "next", this.next = i.finallyLoc, y) : this.complete(a); }, complete: function complete(t, e) { if ("throw" === t.type) throw t.arg; return "break" === t.type || "continue" === t.type ? this.next = t.arg : "return" === t.type ? (this.rval = this.arg = t.arg, this.method = "return", this.next = "end") : "normal" === t.type && e && (this.next = e), y; }, finish: function finish(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), resetTryEntry(r), y; } }, "catch": function _catch(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.tryLoc === t) { var n = r.completion; if ("throw" === n.type) { var o = n.arg; resetTryEntry(r); } return o; } } throw Error("illegal catch attempt"); }, delegateYield: function delegateYield(e, r, n) { return this.delegate = { iterator: values(e), resultName: r, nextLoc: n }, "next" === this.method && (this.arg = t), y; } }, e; }
|
37777
37817
|
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
|
@@ -37796,32 +37836,34 @@ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) r
|
|
37796
37836
|
|
37797
37837
|
|
37798
37838
|
|
37799
|
-
var TextboxList = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().forwardRef(function (
|
37800
|
-
var
|
37801
|
-
|
37802
|
-
|
37803
|
-
|
37804
|
-
|
37805
|
-
|
37806
|
-
|
37807
|
-
|
37808
|
-
|
37809
|
-
|
37810
|
-
|
37811
|
-
|
37812
|
-
|
37813
|
-
|
37814
|
-
|
37815
|
-
|
37816
|
-
|
37817
|
-
|
37818
|
-
|
37819
|
-
|
37820
|
-
|
37821
|
-
|
37822
|
-
|
37823
|
-
|
37824
|
-
|
37839
|
+
var TextboxList = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().forwardRef(function (_ref, ref) {
|
37840
|
+
var id = _ref.id,
|
37841
|
+
className = _ref.className,
|
37842
|
+
size = _ref.size,
|
37843
|
+
label = _ref.label,
|
37844
|
+
labelIcon = _ref.labelIcon,
|
37845
|
+
labelTooltip = _ref.labelTooltip,
|
37846
|
+
required = _ref.required,
|
37847
|
+
necessityIndicator = _ref.necessityIndicator,
|
37848
|
+
disabled = _ref.disabled,
|
37849
|
+
_ref$buttonText = _ref.buttonText,
|
37850
|
+
buttonText = _ref$buttonText === void 0 ? 'Add' : _ref$buttonText,
|
37851
|
+
onButtonClick = _ref.onButtonClick,
|
37852
|
+
invalid = _ref.invalid,
|
37853
|
+
helperText = _ref.helperText,
|
37854
|
+
placeholder = _ref.placeholder,
|
37855
|
+
value = _ref.value,
|
37856
|
+
onFocus = _ref.onFocus,
|
37857
|
+
onBlur = _ref.onBlur,
|
37858
|
+
onValidate = _ref.onValidate,
|
37859
|
+
onRemoveItem = _ref.onRemoveItem,
|
37860
|
+
onChange = _ref.onChange,
|
37861
|
+
maxItems = _ref.maxItems,
|
37862
|
+
itemRenderer = _ref.itemRenderer,
|
37863
|
+
isItemDisabled = _ref.isItemDisabled,
|
37864
|
+
defaultInputValue = _ref.defaultInputValue,
|
37865
|
+
defaultValue = _ref.defaultValue,
|
37866
|
+
rest = _objectWithoutProperties(_ref, _excluded);
|
37825
37867
|
var _useState = (0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(''),
|
37826
37868
|
_useState2 = _slicedToArray(_useState, 2),
|
37827
37869
|
inputValue = _useState2[0],
|
@@ -37882,9 +37924,7 @@ var TextboxList = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().forw
|
|
37882
37924
|
onBlur === null || onBlur === void 0 || onBlur(evt);
|
37883
37925
|
}, [onBlur, addItem]);
|
37884
37926
|
var onInputKeyDown = (0,react__WEBPACK_IMPORTED_MODULE_0__.useCallback)(function (evt) {
|
37885
|
-
if (evt.key === 'Enter')
|
37886
|
-
addItem(false);
|
37887
|
-
}
|
37927
|
+
if (evt.key === 'Enter') addItem(false);
|
37888
37928
|
}, [addItem]);
|
37889
37929
|
var _onRemoveItem = (0,react__WEBPACK_IMPORTED_MODULE_0__.useCallback)(function (val) {
|
37890
37930
|
void _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
|
@@ -37918,9 +37958,10 @@ var TextboxList = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().forw
|
|
37918
37958
|
}, _callee2);
|
37919
37959
|
}))();
|
37920
37960
|
}, [value, onRemoveItem, onChange]);
|
37921
|
-
var labelId = (0,_hooks__WEBPACK_IMPORTED_MODULE_2__.useLabelId)(
|
37961
|
+
var labelId = (0,_hooks__WEBPACK_IMPORTED_MODULE_2__.useLabelId)(id);
|
37922
37962
|
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_layout__WEBPACK_IMPORTED_MODULE_3__.Flex, _extends({
|
37923
37963
|
ref: ref,
|
37964
|
+
id: id,
|
37924
37965
|
"data-testid": "textbox-list",
|
37925
37966
|
className: className
|
37926
37967
|
}, (0,_util__WEBPACK_IMPORTED_MODULE_4__.getCommonProps)(rest), {
|
@@ -37965,9 +38006,6 @@ var TextboxList = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().forw
|
|
37965
38006
|
}, helperText !== null && helperText !== void 0 ? helperText : error));
|
37966
38007
|
});
|
37967
38008
|
TextboxList.displayName = 'TextboxList';
|
37968
|
-
TextboxList.defaultProps = {
|
37969
|
-
buttonText: 'Add'
|
37970
|
-
};
|
37971
38009
|
TextboxList.propTypes = {
|
37972
38010
|
disabled: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().bool),
|
37973
38011
|
required: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().bool),
|
@@ -38032,19 +38070,23 @@ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) r
|
|
38032
38070
|
|
38033
38071
|
|
38034
38072
|
|
38035
|
-
var Toggle = function Toggle(
|
38036
|
-
var id =
|
38037
|
-
value =
|
38038
|
-
label =
|
38039
|
-
disabled =
|
38040
|
-
size =
|
38041
|
-
|
38042
|
-
|
38073
|
+
var Toggle = function Toggle(_ref) {
|
38074
|
+
var id = _ref.id,
|
38075
|
+
value = _ref.value,
|
38076
|
+
label = _ref.label,
|
38077
|
+
disabled = _ref.disabled,
|
38078
|
+
_ref$size = _ref.size,
|
38079
|
+
size = _ref$size === void 0 ? 'sm' : _ref$size,
|
38080
|
+
onChange = _ref.onChange,
|
38081
|
+
rest = _objectWithoutProperties(_ref, _excluded);
|
38043
38082
|
var handleChange = (0,react__WEBPACK_IMPORTED_MODULE_1__.useCallback)(function (evt) {
|
38044
38083
|
var checked = evt.target.checked;
|
38045
38084
|
onChange === null || onChange === void 0 || onChange(checked, evt);
|
38046
38085
|
}, [onChange]);
|
38047
|
-
var color = getLabelColor(
|
38086
|
+
var color = getLabelColor({
|
38087
|
+
disabled: disabled,
|
38088
|
+
value: value
|
38089
|
+
});
|
38048
38090
|
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(ToggleLabel, _extends({}, (0,_util__WEBPACK_IMPORTED_MODULE_5__.getCommonProps)(rest), {
|
38049
38091
|
$size: size
|
38050
38092
|
}), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(ToggleInput, {
|
@@ -38060,10 +38102,6 @@ var Toggle = function Toggle(props) {
|
|
38060
38102
|
no_wrap: true
|
38061
38103
|
}, label));
|
38062
38104
|
};
|
38063
|
-
Toggle.displayName = 'Toggle';
|
38064
|
-
Toggle.defaultProps = {
|
38065
|
-
size: 'sm'
|
38066
|
-
};
|
38067
38105
|
Toggle.propTypes = {
|
38068
38106
|
value: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool),
|
38069
38107
|
label: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string),
|
@@ -38248,18 +38286,19 @@ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) r
|
|
38248
38286
|
|
38249
38287
|
|
38250
38288
|
|
38251
|
-
var Flex = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().forwardRef(function (
|
38252
|
-
var inline =
|
38253
|
-
align_items =
|
38254
|
-
align_content =
|
38255
|
-
justify_items =
|
38256
|
-
justify_content =
|
38257
|
-
flex_wrap =
|
38258
|
-
flex_direction =
|
38259
|
-
|
38260
|
-
|
38261
|
-
|
38262
|
-
|
38289
|
+
var Flex = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().forwardRef(function (_ref, ref) {
|
38290
|
+
var inline = _ref.inline,
|
38291
|
+
align_items = _ref.align_items,
|
38292
|
+
align_content = _ref.align_content,
|
38293
|
+
justify_items = _ref.justify_items,
|
38294
|
+
justify_content = _ref.justify_content,
|
38295
|
+
flex_wrap = _ref.flex_wrap,
|
38296
|
+
_ref$flex_direction = _ref.flex_direction,
|
38297
|
+
flex_direction = _ref$flex_direction === void 0 ? 'row' : _ref$flex_direction,
|
38298
|
+
gap = _ref.gap,
|
38299
|
+
row_gap = _ref.row_gap,
|
38300
|
+
column_gap = _ref.column_gap,
|
38301
|
+
rest = _objectWithoutProperties(_ref, _excluded);
|
38263
38302
|
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(StyledFlex, _extends({
|
38264
38303
|
ref: ref,
|
38265
38304
|
$inline: inline,
|
@@ -38275,9 +38314,6 @@ var Flex = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().forwardRef(
|
|
38275
38314
|
}, rest));
|
38276
38315
|
});
|
38277
38316
|
Flex.displayName = 'Flex';
|
38278
|
-
Flex.defaultProps = {
|
38279
|
-
flex_direction: 'row'
|
38280
|
-
};
|
38281
38317
|
Flex.propTypes = {
|
38282
38318
|
inline: (prop_types__WEBPACK_IMPORTED_MODULE_2___default().bool),
|
38283
38319
|
align_items: prop_types__WEBPACK_IMPORTED_MODULE_2___default().oneOf(['stretch', 'flex-start', 'flex-end', 'center', 'baseline', 'start', 'end', 'self-start', 'self-end']),
|
@@ -38367,33 +38403,31 @@ __webpack_require__.r(__webpack_exports__);
|
|
38367
38403
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
38368
38404
|
/* harmony export */ Link: () => (/* binding */ Link)
|
38369
38405
|
/* harmony export */ });
|
38370
|
-
/* harmony import */ var
|
38371
|
-
/* harmony import */ var
|
38372
|
-
/* harmony import */ var
|
38373
|
-
/* harmony import */ var
|
38374
|
-
/* harmony import */ var
|
38375
|
-
/* harmony import */ var
|
38376
|
-
/* harmony import */ var
|
38377
|
-
/* harmony import */ var
|
38378
|
-
/* harmony import */ var
|
38379
|
-
/* harmony import */ var
|
38380
|
-
/* harmony import */ var _typography__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../typography */ "./src/typography/index.js");
|
38381
|
-
/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../utils */ "./src/utils.js");
|
38406
|
+
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! prop-types */ "prop-types");
|
38407
|
+
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_0__);
|
38408
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "react");
|
38409
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
|
38410
|
+
/* harmony import */ var styled_components__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! styled-components */ "styled-components");
|
38411
|
+
/* harmony import */ var styled_components__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(styled_components__WEBPACK_IMPORTED_MODULE_2__);
|
38412
|
+
/* harmony import */ var _icon__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../icon */ "./src/icon.js");
|
38413
|
+
/* harmony import */ var _theme__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../theme */ "./src/theme.js");
|
38414
|
+
/* harmony import */ var _typography__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../typography */ "./src/typography/index.js");
|
38415
|
+
/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../utils */ "./src/utils.js");
|
38382
38416
|
// LICENSE_CODE ZON
|
38383
38417
|
|
38384
38418
|
|
38385
38419
|
/*jslint react:true*/
|
38386
|
-
|
38387
|
-
var _excluded = ["isLeft", "isRight"];
|
38388
38420
|
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); }
|
38389
|
-
|
38390
|
-
|
38421
|
+
var _excluded = ["text", "variant", "size", "underline", "icon", "iconPlacement", "as", "href", "target", "rel", "newTab"],
|
38422
|
+
_excluded2 = ["isLeft", "isRight"];
|
38391
38423
|
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); }
|
38392
38424
|
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; }
|
38393
38425
|
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; }
|
38394
38426
|
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; }
|
38395
38427
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
38396
38428
|
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); }
|
38429
|
+
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; }
|
38430
|
+
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; }
|
38397
38431
|
|
38398
38432
|
|
38399
38433
|
|
@@ -38401,24 +38435,44 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
38401
38435
|
|
38402
38436
|
|
38403
38437
|
|
38404
|
-
var _theme$color =
|
38438
|
+
var _theme$color = _theme__WEBPACK_IMPORTED_MODULE_4__["default"].color,
|
38405
38439
|
blue_10 = _theme$color.blue_10,
|
38406
38440
|
blue_11 = _theme$color.blue_11,
|
38407
38441
|
gray_11_50 = _theme$color.gray_11_50;
|
38408
|
-
var
|
38409
|
-
var
|
38410
|
-
|
38411
|
-
variant =
|
38412
|
-
size =
|
38413
|
-
|
38414
|
-
|
38415
|
-
|
38442
|
+
var Link = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().forwardRef(function (_ref, ref) {
|
38443
|
+
var text = _ref.text,
|
38444
|
+
_ref$variant = _ref.variant,
|
38445
|
+
variant = _ref$variant === void 0 ? 'primary' : _ref$variant,
|
38446
|
+
_ref$size = _ref.size,
|
38447
|
+
size = _ref$size === void 0 ? 'md' : _ref$size,
|
38448
|
+
underline = _ref.underline,
|
38449
|
+
icon = _ref.icon,
|
38450
|
+
_ref$iconPlacement = _ref.iconPlacement,
|
38451
|
+
iconPlacement = _ref$iconPlacement === void 0 ? 'left' : _ref$iconPlacement,
|
38452
|
+
as = _ref.as,
|
38453
|
+
href = _ref.href,
|
38454
|
+
target = _ref.target,
|
38455
|
+
rel = _ref.rel,
|
38456
|
+
newTab = _ref.newTab,
|
38457
|
+
rest = _objectWithoutProperties(_ref, _excluded);
|
38458
|
+
var linkProps = _objectSpread(_objectSpread({}, rest), getLinkProps({
|
38459
|
+
as: as,
|
38460
|
+
href: href,
|
38461
|
+
target: target,
|
38462
|
+
rel: rel,
|
38463
|
+
newTab: newTab
|
38464
|
+
}));
|
38465
|
+
if (variant == 'inline') return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(InlineLink, _extends({
|
38416
38466
|
ref: ref
|
38417
38467
|
}, linkProps), text);
|
38418
|
-
var _getIconProps = (0,
|
38468
|
+
var _getIconProps = (0,_utils__WEBPACK_IMPORTED_MODULE_6__.getIconProps)('Link', {
|
38469
|
+
size: size,
|
38470
|
+
icon: icon,
|
38471
|
+
iconPlacement: iconPlacement
|
38472
|
+
}),
|
38419
38473
|
isLeft = _getIconProps.isLeft,
|
38420
38474
|
isRight = _getIconProps.isRight,
|
38421
|
-
iconProps = _objectWithoutProperties(_getIconProps,
|
38475
|
+
iconProps = _objectWithoutProperties(_getIconProps, _excluded2);
|
38422
38476
|
var labelProps = {
|
38423
38477
|
variant: {
|
38424
38478
|
lg: 'lg',
|
@@ -38428,29 +38482,24 @@ var Link = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().forwardRef(
|
|
38428
38482
|
no_wrap: true,
|
38429
38483
|
'data-label': true
|
38430
38484
|
};
|
38431
|
-
return /*#__PURE__*/
|
38485
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(StyledLink, _extends({
|
38432
38486
|
ref: ref
|
38433
38487
|
}, linkProps, {
|
38434
38488
|
$variant: variant,
|
38435
38489
|
$underline: underline,
|
38436
38490
|
$size: size
|
38437
|
-
}), isLeft && /*#__PURE__*/
|
38491
|
+
}), isLeft && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_icon__WEBPACK_IMPORTED_MODULE_3__.Icon, iconProps), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_typography__WEBPACK_IMPORTED_MODULE_5__.Label, labelProps), isRight && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_icon__WEBPACK_IMPORTED_MODULE_3__.Icon, iconProps));
|
38438
38492
|
});
|
38439
38493
|
Link.displayName = 'Link';
|
38440
|
-
Link.defaultProps = {
|
38441
|
-
variant: 'primary',
|
38442
|
-
size: 'md',
|
38443
|
-
iconPlacement: 'left'
|
38444
|
-
};
|
38445
38494
|
Link.propTypes = {
|
38446
|
-
text: (
|
38447
|
-
variant:
|
38448
|
-
size:
|
38449
|
-
icon:
|
38450
|
-
iconPlacement:
|
38451
|
-
href: (
|
38452
|
-
newTab: (
|
38453
|
-
underline: (
|
38495
|
+
text: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().node).isRequired,
|
38496
|
+
variant: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOf(['primary', 'secondary', 'inline']),
|
38497
|
+
size: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOf(['sm', 'md', 'lg']),
|
38498
|
+
icon: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOf(_utils__WEBPACK_IMPORTED_MODULE_6__.iconNames),
|
38499
|
+
iconPlacement: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOf(['left', 'right']),
|
38500
|
+
href: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string),
|
38501
|
+
newTab: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool),
|
38502
|
+
underline: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool)
|
38454
38503
|
};
|
38455
38504
|
var getLinkProps = function getLinkProps(opt) {
|
38456
38505
|
var as = opt.as,
|
@@ -38470,11 +38519,11 @@ var getLinkProps = function getLinkProps(opt) {
|
|
38470
38519
|
});
|
38471
38520
|
return p;
|
38472
38521
|
};
|
38473
|
-
var StyledLink =
|
38522
|
+
var StyledLink = styled_components__WEBPACK_IMPORTED_MODULE_2___default().a.withConfig({
|
38474
38523
|
displayName: "StyledLink",
|
38475
38524
|
componentId: "sc-1ilmd36-0"
|
38476
38525
|
})(["display:inline-flex;align-items:center;justify-content:center;text-decoration:none;background:0 none;border:0 none;padding:0;gap:", ";color:", ";[data-label]{text-decoration:", ";}cursor:pointer;&:disabled{cursor:not-allowed;}&:hover:not(:disabled){color:", ";[data-label]{text-decoration:", ";}}&:hover,:visited,:focus{text-decoration:none;}"], function (props) {
|
38477
|
-
return (0,
|
38526
|
+
return (0,_utils__WEBPACK_IMPORTED_MODULE_6__.toPixel)(props.$size == 'lg' ? 8 : 4);
|
38478
38527
|
}, function (props) {
|
38479
38528
|
return props.$variant == 'primary' ? blue_11 : gray_11_50;
|
38480
38529
|
}, function (props) {
|
@@ -38484,7 +38533,7 @@ var StyledLink = styled_components__WEBPACK_IMPORTED_MODULE_3___default().a.with
|
|
38484
38533
|
}, function (props) {
|
38485
38534
|
return props.$underline || props.$variant == 'primary' ? 'underline' : 'none';
|
38486
38535
|
});
|
38487
|
-
var InlineLink =
|
38536
|
+
var InlineLink = styled_components__WEBPACK_IMPORTED_MODULE_2___default().a.withConfig({
|
38488
38537
|
displayName: "InlineLink",
|
38489
38538
|
componentId: "sc-1ilmd36-1"
|
38490
38539
|
})(["justify-content:center;text-decoration:underline;background:0 none;border:0 none;padding:0;cursor:pointer;&:disabled{cursor:not-allowed;}&:hover,:visited,:focus{text-decoration:underline;}"]);
|
@@ -38542,11 +38591,12 @@ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) r
|
|
38542
38591
|
|
38543
38592
|
|
38544
38593
|
|
38545
|
-
var Menu = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().forwardRef(function (
|
38546
|
-
var items =
|
38547
|
-
size =
|
38548
|
-
|
38549
|
-
|
38594
|
+
var Menu = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().forwardRef(function (_ref, ref) {
|
38595
|
+
var items = _ref.items,
|
38596
|
+
_ref$size = _ref.size,
|
38597
|
+
size = _ref$size === void 0 ? 'md' : _ref$size,
|
38598
|
+
noShadow = _ref.noShadow,
|
38599
|
+
rest = _objectWithoutProperties(_ref, _excluded);
|
38550
38600
|
if (!items || !items.length) return null;
|
38551
38601
|
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_shared__WEBPACK_IMPORTED_MODULE_2__.MenuContainer, _extends({
|
38552
38602
|
ref: ref
|
@@ -38564,9 +38614,6 @@ var Menu = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().forwardRef(
|
|
38564
38614
|
}));
|
38565
38615
|
});
|
38566
38616
|
Menu.displayName = 'Menu';
|
38567
|
-
Menu.defaultProps = {
|
38568
|
-
size: 'md'
|
38569
|
-
};
|
38570
38617
|
Menu.propTypes = {
|
38571
38618
|
size: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOf(['sm', 'md', 'lg']),
|
38572
38619
|
items: prop_types__WEBPACK_IMPORTED_MODULE_0___default().arrayOf((prop_types__WEBPACK_IMPORTED_MODULE_0___default().any)).isRequired
|
@@ -38608,7 +38655,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
38608
38655
|
|
38609
38656
|
/*jslint react:true*/
|
38610
38657
|
|
38611
|
-
var _excluded = ["type", "text", "secondaryText", "tertiaryText", "description", "size", "children", "variant", "tag", "disabled", "selected", "subMenu", "tooltip", "isFirstItem"],
|
38658
|
+
var _excluded = ["type", "text", "secondaryText", "tertiaryText", "description", "size", "children", "variant", "tag", "disabled", "selected", "subMenu", "tooltip", "isFirstItem", "icon", "iconPlacement"],
|
38612
38659
|
_excluded2 = ["isLeft"],
|
38613
38660
|
_excluded3 = ["subItems", "children"],
|
38614
38661
|
_excluded4 = ["popover", "onClick"];
|
@@ -38628,22 +38675,27 @@ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) r
|
|
38628
38675
|
|
38629
38676
|
|
38630
38677
|
|
38631
|
-
var MenuItem = /*#__PURE__*/(0,react__WEBPACK_IMPORTED_MODULE_2__.forwardRef)(function (
|
38632
|
-
var type =
|
38633
|
-
|
38634
|
-
|
38635
|
-
|
38636
|
-
|
38637
|
-
|
38638
|
-
|
38639
|
-
|
38640
|
-
|
38641
|
-
|
38642
|
-
|
38643
|
-
|
38644
|
-
|
38645
|
-
|
38646
|
-
|
38678
|
+
var MenuItem = /*#__PURE__*/(0,react__WEBPACK_IMPORTED_MODULE_2__.forwardRef)(function (_ref, ref) {
|
38679
|
+
var _ref$type = _ref.type,
|
38680
|
+
type = _ref$type === void 0 ? 'item' : _ref$type,
|
38681
|
+
text = _ref.text,
|
38682
|
+
secondaryText = _ref.secondaryText,
|
38683
|
+
tertiaryText = _ref.tertiaryText,
|
38684
|
+
description = _ref.description,
|
38685
|
+
_ref$size = _ref.size,
|
38686
|
+
size = _ref$size === void 0 ? 'md' : _ref$size,
|
38687
|
+
children = _ref.children,
|
38688
|
+
_ref$variant = _ref.variant,
|
38689
|
+
variant = _ref$variant === void 0 ? 'default' : _ref$variant,
|
38690
|
+
tag = _ref.tag,
|
38691
|
+
disabled = _ref.disabled,
|
38692
|
+
selected = _ref.selected,
|
38693
|
+
subMenu = _ref.subMenu,
|
38694
|
+
tooltip = _ref.tooltip,
|
38695
|
+
isFirstItem = _ref.isFirstItem,
|
38696
|
+
icon = _ref.icon,
|
38697
|
+
iconPlacement = _ref.iconPlacement,
|
38698
|
+
rest = _objectWithoutProperties(_ref, _excluded);
|
38647
38699
|
if (type == 'divider') return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(_menu_item_divider__WEBPACK_IMPORTED_MODULE_11__["default"], {
|
38648
38700
|
ref: ref
|
38649
38701
|
});
|
@@ -38658,7 +38710,11 @@ var MenuItem = /*#__PURE__*/(0,react__WEBPACK_IMPORTED_MODULE_2__.forwardRef)(fu
|
|
38658
38710
|
isFirstItem: isFirstItem
|
38659
38711
|
}, rest), subItems);
|
38660
38712
|
}
|
38661
|
-
var _getIconProps = (0,_utils__WEBPACK_IMPORTED_MODULE_9__.getIconProps)('MenuItem',
|
38713
|
+
var _getIconProps = (0,_utils__WEBPACK_IMPORTED_MODULE_9__.getIconProps)('MenuItem', {
|
38714
|
+
size: size,
|
38715
|
+
icon: icon,
|
38716
|
+
iconPlacement: iconPlacement
|
38717
|
+
}),
|
38662
38718
|
isLeft = _getIconProps.isLeft,
|
38663
38719
|
iconProps = _objectWithoutProperties(_getIconProps, _excluded2);
|
38664
38720
|
var iconColor = disabled ? 'gray_6' : variant == 'negative' ? 'red_10' : 'gray_9';
|
@@ -38670,7 +38726,7 @@ var MenuItem = /*#__PURE__*/(0,react__WEBPACK_IMPORTED_MODULE_2__.forwardRef)(fu
|
|
38670
38726
|
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(_tooltip__WEBPACK_IMPORTED_MODULE_7__.Tooltip, {
|
38671
38727
|
tooltip: tooltip,
|
38672
38728
|
noWrap: true
|
38673
|
-
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(MenuItemComp, _extends({},
|
38729
|
+
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(MenuItemComp, _extends({}, rest, {
|
38674
38730
|
"aria-disabled": disabled ? true : undefined,
|
38675
38731
|
size: size,
|
38676
38732
|
role: "button",
|
@@ -38691,11 +38747,6 @@ var MenuItem = /*#__PURE__*/(0,react__WEBPACK_IMPORTED_MODULE_2__.forwardRef)(fu
|
|
38691
38747
|
}))));
|
38692
38748
|
});
|
38693
38749
|
MenuItem.displayName = 'MenuItem';
|
38694
|
-
MenuItem.defaultProps = {
|
38695
|
-
type: 'item',
|
38696
|
-
size: 'md',
|
38697
|
-
variant: 'default'
|
38698
|
-
};
|
38699
38750
|
MenuItem.propTypes = {
|
38700
38751
|
text: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().node),
|
38701
38752
|
secondaryText: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().node),
|
@@ -38900,11 +38951,11 @@ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) r
|
|
38900
38951
|
|
38901
38952
|
|
38902
38953
|
|
38903
|
-
var MenuItemGroup = function MenuItemGroup(
|
38904
|
-
var text =
|
38905
|
-
children =
|
38906
|
-
isFirstItem =
|
38907
|
-
rest = _objectWithoutProperties(
|
38954
|
+
var MenuItemGroup = function MenuItemGroup(_ref) {
|
38955
|
+
var text = _ref.text,
|
38956
|
+
children = _ref.children,
|
38957
|
+
isFirstItem = _ref.isFirstItem,
|
38958
|
+
rest = _objectWithoutProperties(_ref, _excluded);
|
38908
38959
|
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement((react__WEBPACK_IMPORTED_MODULE_0___default().Fragment), null, !isFirstItem && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_menu_item_divider__WEBPACK_IMPORTED_MODULE_3__["default"], null), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_shared__WEBPACK_IMPORTED_MODULE_4__.MenuItemContainer, _extends({
|
38909
38960
|
role: "presentation"
|
38910
38961
|
}, rest), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(GroupTitle, {
|
@@ -38917,7 +38968,6 @@ var MenuItemGroup = function MenuItemGroup(props) {
|
|
38917
38968
|
role: "group"
|
38918
38969
|
}, children)));
|
38919
38970
|
};
|
38920
|
-
MenuItemGroup.displayName = 'MenuItemGroup';
|
38921
38971
|
var GroupTitle = styled_components__WEBPACK_IMPORTED_MODULE_1___default()(_typography__WEBPACK_IMPORTED_MODULE_2__.Label).withConfig({
|
38922
38972
|
displayName: "GroupTitle",
|
38923
38973
|
componentId: "sc-q9wnng-0"
|
@@ -39029,18 +39079,20 @@ var StyledFooterWrapper = styled_components__WEBPACK_IMPORTED_MODULE_2___default
|
|
39029
39079
|
displayName: "StyledFooterWrapper",
|
39030
39080
|
componentId: "sc-1nggvo0-3"
|
39031
39081
|
})([""]);
|
39032
|
-
var ModalBase = /*#__PURE__*/(0,react__WEBPACK_IMPORTED_MODULE_1__.forwardRef)(function (
|
39033
|
-
var className =
|
39034
|
-
header =
|
39035
|
-
content =
|
39036
|
-
footer =
|
39037
|
-
size =
|
39038
|
-
|
39039
|
-
|
39040
|
-
|
39082
|
+
var ModalBase = /*#__PURE__*/(0,react__WEBPACK_IMPORTED_MODULE_1__.forwardRef)(function (_ref, ref) {
|
39083
|
+
var className = _ref.className,
|
39084
|
+
header = _ref.header,
|
39085
|
+
content = _ref.content,
|
39086
|
+
footer = _ref.footer,
|
39087
|
+
_ref$size = _ref.size,
|
39088
|
+
size = _ref$size === void 0 ? 'md' : _ref$size,
|
39089
|
+
_ref$shadow = _ref.shadow,
|
39090
|
+
shadow = _ref$shadow === void 0 ? 'md' : _ref$shadow,
|
39091
|
+
_ref$borders = _ref.borders,
|
39092
|
+
borders = _ref$borders === void 0 ? {
|
39041
39093
|
bottom: true
|
39042
|
-
} :
|
39043
|
-
rest = _objectWithoutProperties(
|
39094
|
+
} : _ref$borders,
|
39095
|
+
rest = _objectWithoutProperties(_ref, _excluded);
|
39044
39096
|
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(StyledWrapper, _extends({
|
39045
39097
|
ref: ref,
|
39046
39098
|
className: className
|
@@ -39070,10 +39122,6 @@ ModalBase.propTypes = {
|
|
39070
39122
|
content: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().node),
|
39071
39123
|
footer: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().node)
|
39072
39124
|
};
|
39073
|
-
ModalBase.defaultProps = {
|
39074
|
-
size: 'md',
|
39075
|
-
shadow: 'md'
|
39076
|
-
};
|
39077
39125
|
|
39078
39126
|
/***/ }),
|
39079
39127
|
|
@@ -39291,8 +39339,10 @@ ModalHeader.propTypes = {
|
|
39291
39339
|
cancelDisabled: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool)
|
39292
39340
|
};
|
39293
39341
|
var ModalFooter = function ModalFooter(_ref3) {
|
39294
|
-
var okLabel = _ref3.okLabel,
|
39295
|
-
|
39342
|
+
var _ref3$okLabel = _ref3.okLabel,
|
39343
|
+
okLabel = _ref3$okLabel === void 0 ? 'OK' : _ref3$okLabel,
|
39344
|
+
_ref3$cancelLabel = _ref3.cancelLabel,
|
39345
|
+
cancelLabel = _ref3$cancelLabel === void 0 ? 'Cancel' : _ref3$cancelLabel,
|
39296
39346
|
onOk = _ref3.onOk,
|
39297
39347
|
onCancel = _ref3.onCancel,
|
39298
39348
|
okDisabled = _ref3.okDisabled,
|
@@ -39322,10 +39372,6 @@ ModalFooter.propTypes = {
|
|
39322
39372
|
okDisabled: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool),
|
39323
39373
|
cancelDisabled: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool)
|
39324
39374
|
};
|
39325
|
-
ModalFooter.defaultProps = {
|
39326
|
-
okLabel: 'OK',
|
39327
|
-
cancelLabel: 'Cancel'
|
39328
|
-
};
|
39329
39375
|
|
39330
39376
|
/***/ }),
|
39331
39377
|
|
@@ -39673,14 +39719,16 @@ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) r
|
|
39673
39719
|
|
39674
39720
|
|
39675
39721
|
var color = _theme__WEBPACK_IMPORTED_MODULE_4__["default"].color;
|
39676
|
-
var Snackbar = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().forwardRef(function (
|
39677
|
-
var variant =
|
39678
|
-
|
39679
|
-
|
39680
|
-
|
39681
|
-
|
39682
|
-
|
39683
|
-
|
39722
|
+
var Snackbar = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().forwardRef(function (_ref, ref) {
|
39723
|
+
var _ref$variant = _ref.variant,
|
39724
|
+
variant = _ref$variant === void 0 ? 'vertical' : _ref$variant,
|
39725
|
+
_ref$type = _ref.type,
|
39726
|
+
type = _ref$type === void 0 ? 'info' : _ref$type,
|
39727
|
+
showIcon = _ref.showIcon,
|
39728
|
+
header = _ref.header,
|
39729
|
+
children = _ref.children,
|
39730
|
+
action = _ref.action,
|
39731
|
+
rest = _objectWithoutProperties(_ref, _excluded);
|
39684
39732
|
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(Wrapper, _extends({
|
39685
39733
|
ref: ref,
|
39686
39734
|
$type: type
|
@@ -39693,10 +39741,6 @@ var Snackbar = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().forward
|
|
39693
39741
|
}, children), !!action && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_snackbar_action__WEBPACK_IMPORTED_MODULE_5__.SnackbarAction, action)));
|
39694
39742
|
});
|
39695
39743
|
Snackbar.displayName = 'Snackbar';
|
39696
|
-
Snackbar.defaultProps = {
|
39697
|
-
variant: 'vertical',
|
39698
|
-
type: 'info'
|
39699
|
-
};
|
39700
39744
|
Snackbar.propTypes = {
|
39701
39745
|
variant: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOf(['vertical', 'horizontal']),
|
39702
39746
|
type: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOf(['info', 'success', 'error', 'warning', 'generic']),
|
@@ -39884,12 +39928,13 @@ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) r
|
|
39884
39928
|
|
39885
39929
|
|
39886
39930
|
|
39887
|
-
var Group = function Group(
|
39888
|
-
var children =
|
39889
|
-
className =
|
39890
|
-
variant =
|
39891
|
-
|
39892
|
-
|
39931
|
+
var Group = function Group(_ref) {
|
39932
|
+
var children = _ref.children,
|
39933
|
+
className = _ref.className,
|
39934
|
+
_ref$variant = _ref.variant,
|
39935
|
+
variant = _ref$variant === void 0 ? 'main' : _ref$variant,
|
39936
|
+
onKeyDown = _ref.onKeyDown,
|
39937
|
+
rest = _objectWithoutProperties(_ref, _excluded);
|
39893
39938
|
var ref = /*#__PURE__*/(0,react__WEBPACK_IMPORTED_MODULE_1__.createRef)(null);
|
39894
39939
|
var handleKeyDown = (0,react__WEBPACK_IMPORTED_MODULE_1__.useCallback)(function (e) {
|
39895
39940
|
if (e.key == 'ArrowRight' || e.key == 'ArrowLeft') {
|
@@ -39928,9 +39973,6 @@ var Group = function Group(props) {
|
|
39928
39973
|
});
|
39929
39974
|
}));
|
39930
39975
|
};
|
39931
|
-
Group.defaultProps = {
|
39932
|
-
variant: 'main'
|
39933
|
-
};
|
39934
39976
|
Group.propTypes = {
|
39935
39977
|
variant: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOf(['main', 'underline', 'contain', 'vertical'])
|
39936
39978
|
};
|
@@ -40002,21 +40044,26 @@ __webpack_require__.r(__webpack_exports__);
|
|
40002
40044
|
|
40003
40045
|
|
40004
40046
|
/*jslint react:true*/
|
40047
|
+
var _excluded = ["className", "variant", "text", "selected", "disabled", "leftContent", "rightContent"];
|
40005
40048
|
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); }
|
40049
|
+
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; }
|
40050
|
+
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; }
|
40006
40051
|
|
40007
40052
|
|
40008
40053
|
|
40009
40054
|
|
40010
40055
|
|
40011
40056
|
|
40012
|
-
var Tab = function Tab(
|
40013
|
-
var className =
|
40014
|
-
variant =
|
40015
|
-
|
40016
|
-
|
40017
|
-
|
40018
|
-
|
40019
|
-
|
40057
|
+
var Tab = function Tab(_ref) {
|
40058
|
+
var className = _ref.className,
|
40059
|
+
_ref$variant = _ref.variant,
|
40060
|
+
variant = _ref$variant === void 0 ? 'main' : _ref$variant,
|
40061
|
+
text = _ref.text,
|
40062
|
+
selected = _ref.selected,
|
40063
|
+
disabled = _ref.disabled,
|
40064
|
+
leftContent = _ref.leftContent,
|
40065
|
+
rightContent = _ref.rightContent,
|
40066
|
+
rest = _objectWithoutProperties(_ref, _excluded);
|
40020
40067
|
var Wrap = variant == 'vertical' ? Left : react__WEBPACK_IMPORTED_MODULE_1__.Fragment;
|
40021
40068
|
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(TabContainer, _extends({
|
40022
40069
|
role: "tab",
|
@@ -40026,13 +40073,10 @@ var Tab = function Tab(props) {
|
|
40026
40073
|
tabIndex: selected ? 0 : -1,
|
40027
40074
|
"aria-disabled": disabled ? 'true' : undefined,
|
40028
40075
|
disabled: !!disabled
|
40029
|
-
}, (0,_util__WEBPACK_IMPORTED_MODULE_5__.getCommonProps)(
|
40076
|
+
}, (0,_util__WEBPACK_IMPORTED_MODULE_5__.getCommonProps)(rest)), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(Wrap, null, leftContent, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(Text, {
|
40030
40077
|
$variant: variant
|
40031
40078
|
}, text)), rightContent);
|
40032
40079
|
};
|
40033
|
-
Tab.defaultProps = {
|
40034
|
-
variant: 'main'
|
40035
|
-
};
|
40036
40080
|
Tab.propTypes = {
|
40037
40081
|
variant: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOf(['main', 'underline', 'contain', 'vertical']),
|
40038
40082
|
text: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().node).isRequired,
|
@@ -40089,35 +40133,32 @@ var Text = styled_components__WEBPACK_IMPORTED_MODULE_2___default()(_typography_
|
|
40089
40133
|
"use strict";
|
40090
40134
|
__webpack_require__.r(__webpack_exports__);
|
40091
40135
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
40092
|
-
/* harmony export */
|
40136
|
+
/* harmony export */ Provider: () => (/* binding */ Provider),
|
40093
40137
|
/* harmony export */ defaultContextValue: () => (/* binding */ defaultContextValue),
|
40094
40138
|
/* harmony export */ useTableContext: () => (/* binding */ useTableContext)
|
40095
40139
|
/* harmony export */ });
|
40096
|
-
/* harmony import */ var
|
40097
|
-
/* harmony import */ var
|
40098
|
-
/* harmony import */ var
|
40099
|
-
/* harmony import */ var
|
40100
|
-
/* harmony import */ var
|
40101
|
-
/* harmony import */ var
|
40102
|
-
/* harmony import */ var
|
40103
|
-
/* harmony import */ var
|
40104
|
-
/* harmony import */ var
|
40105
|
-
/* harmony import */ var
|
40106
|
-
/* harmony import */ var
|
40107
|
-
/* harmony import */ var
|
40108
|
-
/* harmony import */ var
|
40109
|
-
/* harmony import */ var
|
40110
|
-
/* harmony import */ var
|
40111
|
-
/* harmony import */ var
|
40112
|
-
/* harmony import */ var _row_menu__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./row_menu */ "./src/table/row_menu.js");
|
40113
|
-
/* harmony import */ var _order_logic__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./order_logic */ "./src/table/order_logic.js");
|
40140
|
+
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! prop-types */ "prop-types");
|
40141
|
+
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_0__);
|
40142
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "react");
|
40143
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
|
40144
|
+
/* harmony import */ var react_table__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! react-table */ "react-table");
|
40145
|
+
/* harmony import */ var react_table__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(react_table__WEBPACK_IMPORTED_MODULE_2__);
|
40146
|
+
/* harmony import */ var _layout__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../layout */ "./src/layout/index.js");
|
40147
|
+
/* harmony import */ var _theme__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../theme */ "./src/theme.js");
|
40148
|
+
/* harmony import */ var _typography__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../typography */ "./src/typography/index.js");
|
40149
|
+
/* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../util */ "./src/util/index.js");
|
40150
|
+
/* harmony import */ var _editable_columns__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./editable_columns */ "./src/table/editable_columns.js");
|
40151
|
+
/* harmony import */ var _pinned_columns__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./pinned_columns */ "./src/table/pinned_columns.js");
|
40152
|
+
/* harmony import */ var _expandable_rows__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./expandable_rows */ "./src/table/expandable_rows.js");
|
40153
|
+
/* harmony import */ var _select_rows__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./select_rows */ "./src/table/select_rows.js");
|
40154
|
+
/* harmony import */ var _row_menu__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./row_menu */ "./src/table/row_menu.js");
|
40155
|
+
/* harmony import */ var _order_logic__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./order_logic */ "./src/table/order_logic.js");
|
40114
40156
|
// LICENSE_CODE ZON
|
40115
40157
|
|
40116
40158
|
|
40117
40159
|
/*jslint react:true*/
|
40118
40160
|
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); }
|
40119
|
-
|
40120
|
-
var _excluded = ["columns", "data", "pageSize", "pageSizes", "children", "stateManager", "hooks", "NoDataComp", "LoadingComp", "ExpandHandleComp", "noDataText", "loadingText", "isLoading", "onPageChange", "manualPagination", "totalCount", "paginateExpandedRows", "getHeaderProps", "getColumnProps", "getRowProps", "getCellProps", "getFooterProps", "selectedRowIds", "canOrderColumns", "rowActions", "columnSort", "onColumnSortChanged", "isCellEditable", "onStartEdit", "draggableRows", "onRowDragStart", "onRowDragEnd", "hoverActions", "hoverActionsDirection", "virtualized"];
|
40161
|
+
var _excluded = ["columns", "data", "pageSize", "pageSizes", "children", "stateManager", "hooks", "NoDataComp", "LoadingComp", "ExpandHandleComp", "noDataText", "loadingText", "isLoading", "onPageChange", "manualPagination", "totalCount", "paginateExpandedRows", "getHeaderProps", "getColumnProps", "getRowProps", "getCellProps", "getFooterProps", "selectedRowIds", "canOrderColumns", "rowActions", "columnSort", "onColumnSortChanged", "isCellEditable", "onStartEdit", "draggableRows", "onRowDragStart", "onRowDragEnd", "hoverActions", "hoverActionsDirection", "virtualized", "hiddenColumns", "pinnedColumns", "columnOrder", "initialState", "expandColumnId", "fullWidth", "rowDensity"];
|
40121
40162
|
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; }
|
40122
40163
|
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; }
|
40123
40164
|
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; }
|
@@ -40152,94 +40193,123 @@ var assign = Object.assign;
|
|
40152
40193
|
var defaultPropGetter = function defaultPropGetter() {
|
40153
40194
|
return {};
|
40154
40195
|
};
|
40196
|
+
var defaultIsCellEditable = function defaultIsCellEditable(_ref) {
|
40197
|
+
var column = _ref.column;
|
40198
|
+
return column.canEdit;
|
40199
|
+
};
|
40155
40200
|
var defaultContextValue = {};
|
40156
|
-
var TableContext = /*#__PURE__*/
|
40201
|
+
var TableContext = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createContext(defaultContextValue);
|
40157
40202
|
TableContext.displayName = 'TableContext';
|
40158
|
-
var Cell = function Cell(
|
40159
|
-
|
40203
|
+
var Cell = function Cell(_ref2) {
|
40204
|
+
var value = _ref2.value;
|
40205
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_typography__WEBPACK_IMPORTED_MODULE_5__.Paragraph, {
|
40160
40206
|
variant: "sm",
|
40161
40207
|
color: "gray-11-50"
|
40162
|
-
}, String(
|
40208
|
+
}, String(value));
|
40163
40209
|
};
|
40164
|
-
var Provider = function Provider(
|
40210
|
+
var Provider = function Provider(_ref3) {
|
40165
40211
|
var _columns$;
|
40166
|
-
var
|
40212
|
+
var columns = _ref3.columns,
|
40213
|
+
_ref3$data = _ref3.data,
|
40214
|
+
data = _ref3$data === void 0 ? [] : _ref3$data,
|
40215
|
+
pageSize = _ref3.pageSize,
|
40216
|
+
_ref3$pageSizes = _ref3.pageSizes,
|
40217
|
+
pageSizes = _ref3$pageSizes === void 0 ? [5, 10, 20, 30] : _ref3$pageSizes,
|
40218
|
+
children = _ref3.children,
|
40219
|
+
stateManager = _ref3.stateManager,
|
40220
|
+
_ref3$hooks = _ref3.hooks,
|
40221
|
+
hooks = _ref3$hooks === void 0 ? [] : _ref3$hooks,
|
40222
|
+
NoDataComp = _ref3.NoDataComp,
|
40223
|
+
LoadingComp = _ref3.LoadingComp,
|
40224
|
+
_ref3$ExpandHandleCom = _ref3.ExpandHandleComp,
|
40225
|
+
ExpandHandleComp = _ref3$ExpandHandleCom === void 0 ? _expandable_rows__WEBPACK_IMPORTED_MODULE_9__.ExpandHandle : _ref3$ExpandHandleCom,
|
40226
|
+
_ref3$noDataText = _ref3.noDataText,
|
40227
|
+
noDataText = _ref3$noDataText === void 0 ? 'No data' : _ref3$noDataText,
|
40228
|
+
_ref3$loadingText = _ref3.loadingText,
|
40229
|
+
loadingText = _ref3$loadingText === void 0 ? 'Loading...' : _ref3$loadingText,
|
40230
|
+
_ref3$isLoading = _ref3.isLoading,
|
40231
|
+
isLoading = _ref3$isLoading === void 0 ? false : _ref3$isLoading,
|
40232
|
+
onPageChange = _ref3.onPageChange,
|
40233
|
+
_ref3$manualPaginatio = _ref3.manualPagination,
|
40234
|
+
manualPagination = _ref3$manualPaginatio === void 0 ? false : _ref3$manualPaginatio,
|
40235
|
+
totalCount = _ref3.totalCount,
|
40236
|
+
_ref3$paginateExpande = _ref3.paginateExpandedRows,
|
40237
|
+
paginateExpandedRows = _ref3$paginateExpande === void 0 ? false : _ref3$paginateExpande,
|
40238
|
+
_ref3$getHeaderProps = _ref3.getHeaderProps,
|
40239
|
+
getHeaderProps = _ref3$getHeaderProps === void 0 ? defaultPropGetter : _ref3$getHeaderProps,
|
40240
|
+
_ref3$getColumnProps = _ref3.getColumnProps,
|
40241
|
+
getColumnProps = _ref3$getColumnProps === void 0 ? defaultPropGetter : _ref3$getColumnProps,
|
40242
|
+
_ref3$getRowProps = _ref3.getRowProps,
|
40243
|
+
getRowProps = _ref3$getRowProps === void 0 ? defaultPropGetter : _ref3$getRowProps,
|
40244
|
+
_ref3$getCellProps = _ref3.getCellProps,
|
40245
|
+
getCellProps = _ref3$getCellProps === void 0 ? defaultPropGetter : _ref3$getCellProps,
|
40246
|
+
_ref3$getFooterProps = _ref3.getFooterProps,
|
40247
|
+
getFooterProps = _ref3$getFooterProps === void 0 ? defaultPropGetter : _ref3$getFooterProps,
|
40248
|
+
selectedRowIds = _ref3.selectedRowIds,
|
40249
|
+
_ref3$canOrderColumns = _ref3.canOrderColumns,
|
40250
|
+
canOrderColumns = _ref3$canOrderColumns === void 0 ? false : _ref3$canOrderColumns,
|
40251
|
+
rowActions = _ref3.rowActions,
|
40252
|
+
_ref3$columnSort = _ref3.columnSort,
|
40253
|
+
columnSort = _ref3$columnSort === void 0 ? {} : _ref3$columnSort,
|
40254
|
+
onColumnSortChanged = _ref3.onColumnSortChanged,
|
40255
|
+
_ref3$isCellEditable = _ref3.isCellEditable,
|
40256
|
+
isCellEditable = _ref3$isCellEditable === void 0 ? defaultIsCellEditable : _ref3$isCellEditable,
|
40257
|
+
onStartEdit = _ref3.onStartEdit,
|
40258
|
+
_ref3$draggableRows = _ref3.draggableRows,
|
40259
|
+
draggableRows = _ref3$draggableRows === void 0 ? false : _ref3$draggableRows,
|
40260
|
+
onRowDragStart = _ref3.onRowDragStart,
|
40261
|
+
onRowDragEnd = _ref3.onRowDragEnd,
|
40262
|
+
hoverActions = _ref3.hoverActions,
|
40263
|
+
_ref3$hoverActionsDir = _ref3.hoverActionsDirection,
|
40264
|
+
hoverActionsDirection = _ref3$hoverActionsDir === void 0 ? 'row' : _ref3$hoverActionsDir,
|
40265
|
+
_ref3$virtualized = _ref3.virtualized,
|
40266
|
+
virtualized = _ref3$virtualized === void 0 ? false : _ref3$virtualized,
|
40267
|
+
_hiddenColumns = _ref3.hiddenColumns,
|
40268
|
+
_pinnedColumns = _ref3.pinnedColumns,
|
40269
|
+
_columnOrder = _ref3.columnOrder,
|
40270
|
+
_initialState = _ref3.initialState,
|
40271
|
+
_expandColumnId = _ref3.expandColumnId,
|
40272
|
+
fullWidth = _ref3.fullWidth,
|
40273
|
+
_ref3$rowDensity = _ref3.rowDensity,
|
40274
|
+
rowDensity = _ref3$rowDensity === void 0 ? 'busy_bee' : _ref3$rowDensity,
|
40275
|
+
rest = _objectWithoutProperties(_ref3, _excluded);
|
40276
|
+
var defaultColumn = (0,react__WEBPACK_IMPORTED_MODULE_1__.useMemo)(function () {
|
40167
40277
|
return {
|
40168
40278
|
minWidth: 100,
|
40169
40279
|
Cell: Cell
|
40170
40280
|
};
|
40171
40281
|
}, []);
|
40172
|
-
var
|
40173
|
-
data = props.data,
|
40174
|
-
pageSize = props.pageSize,
|
40175
|
-
pageSizes = props.pageSizes,
|
40176
|
-
children = props.children,
|
40177
|
-
stateManager = props.stateManager,
|
40178
|
-
hooks = props.hooks,
|
40179
|
-
NoDataComp = props.NoDataComp,
|
40180
|
-
LoadingComp = props.LoadingComp,
|
40181
|
-
ExpandHandleComp = props.ExpandHandleComp,
|
40182
|
-
noDataText = props.noDataText,
|
40183
|
-
loadingText = props.loadingText,
|
40184
|
-
isLoading = props.isLoading,
|
40185
|
-
onPageChange = props.onPageChange,
|
40186
|
-
manualPagination = props.manualPagination,
|
40187
|
-
totalCount = props.totalCount,
|
40188
|
-
paginateExpandedRows = props.paginateExpandedRows,
|
40189
|
-
_props$getHeaderProps = props.getHeaderProps,
|
40190
|
-
getHeaderProps = _props$getHeaderProps === void 0 ? defaultPropGetter : _props$getHeaderProps,
|
40191
|
-
_props$getColumnProps = props.getColumnProps,
|
40192
|
-
getColumnProps = _props$getColumnProps === void 0 ? defaultPropGetter : _props$getColumnProps,
|
40193
|
-
_props$getRowProps = props.getRowProps,
|
40194
|
-
getRowProps = _props$getRowProps === void 0 ? defaultPropGetter : _props$getRowProps,
|
40195
|
-
_props$getCellProps = props.getCellProps,
|
40196
|
-
getCellProps = _props$getCellProps === void 0 ? defaultPropGetter : _props$getCellProps,
|
40197
|
-
_props$getFooterProps = props.getFooterProps,
|
40198
|
-
getFooterProps = _props$getFooterProps === void 0 ? defaultPropGetter : _props$getFooterProps,
|
40199
|
-
selectedRowIds = props.selectedRowIds,
|
40200
|
-
canOrderColumns = props.canOrderColumns,
|
40201
|
-
rowActions = props.rowActions,
|
40202
|
-
columnSort = props.columnSort,
|
40203
|
-
onColumnSortChanged = props.onColumnSortChanged,
|
40204
|
-
isCellEditable = props.isCellEditable,
|
40205
|
-
onStartEdit = props.onStartEdit,
|
40206
|
-
draggableRows = props.draggableRows,
|
40207
|
-
onRowDragStart = props.onRowDragStart,
|
40208
|
-
onRowDragEnd = props.onRowDragEnd,
|
40209
|
-
hoverActions = props.hoverActions,
|
40210
|
-
hoverActionsDirection = props.hoverActionsDirection,
|
40211
|
-
virtualized = props.virtualized,
|
40212
|
-
rest = _objectWithoutProperties(props, _excluded);
|
40213
|
-
var _useState = (0,react__WEBPACK_IMPORTED_MODULE_2__.useState)(0),
|
40282
|
+
var _useState = (0,react__WEBPACK_IMPORTED_MODULE_1__.useState)(undefined),
|
40214
40283
|
_useState2 = _slicedToArray(_useState, 2),
|
40215
40284
|
pageCount = _useState2[0],
|
40216
40285
|
setPageCount = _useState2[1];
|
40217
|
-
var _useState3 = (0,
|
40286
|
+
var _useState3 = (0,react__WEBPACK_IMPORTED_MODULE_1__.useState)(false),
|
40218
40287
|
_useState4 = _slicedToArray(_useState3, 2),
|
40219
40288
|
isDraggingRow = _useState4[0],
|
40220
40289
|
setIsDraggingRow = _useState4[1];
|
40221
|
-
var hiddenColumns = (0,
|
40222
|
-
var pinnedColumns = (0,
|
40223
|
-
var columnOrder = (0,
|
40224
|
-
var initialState =
|
40225
|
-
pageSize
|
40226
|
-
|
40227
|
-
hiddenColumns
|
40228
|
-
|
40229
|
-
pinnedColumns
|
40230
|
-
|
40231
|
-
columnOrder
|
40232
|
-
|
40233
|
-
selectedRowIds
|
40234
|
-
|
40235
|
-
|
40290
|
+
var hiddenColumns = (0,_util__WEBPACK_IMPORTED_MODULE_6__.firstDefined)(stateManager === null || stateManager === void 0 ? void 0 : stateManager.get('hiddenColumns'), _hiddenColumns);
|
40291
|
+
var pinnedColumns = (0,_util__WEBPACK_IMPORTED_MODULE_6__.firstDefined)(stateManager === null || stateManager === void 0 ? void 0 : stateManager.get('pinnedColumns'), _pinnedColumns);
|
40292
|
+
var columnOrder = (0,_util__WEBPACK_IMPORTED_MODULE_6__.firstDefined)(stateManager === null || stateManager === void 0 ? void 0 : stateManager.get('columnOrder'), _columnOrder);
|
40293
|
+
var initialState = (0,react__WEBPACK_IMPORTED_MODULE_1__.useMemo)(function () {
|
40294
|
+
return assign({}, _initialState, pageSize && {
|
40295
|
+
pageSize: pageSize
|
40296
|
+
}, hiddenColumns && {
|
40297
|
+
hiddenColumns: hiddenColumns
|
40298
|
+
}, pinnedColumns && {
|
40299
|
+
pinnedColumns: pinnedColumns
|
40300
|
+
}, columnOrder && {
|
40301
|
+
columnOrder: columnOrder
|
40302
|
+
}, selectedRowIds && {
|
40303
|
+
selectedRowIds: selectedRowIds
|
40304
|
+
});
|
40305
|
+
}, [_initialState, pageSize, hiddenColumns, pinnedColumns, columnOrder, selectedRowIds]);
|
40306
|
+
var table = react_table__WEBPACK_IMPORTED_MODULE_2__.useTable.apply(void 0, [Object.assign(_objectSpread({
|
40236
40307
|
columns: columns,
|
40237
40308
|
data: data,
|
40238
40309
|
defaultColumn: defaultColumn,
|
40239
40310
|
initialState: initialState,
|
40240
40311
|
pageSizes: pageSizes,
|
40241
40312
|
manualPagination: manualPagination,
|
40242
|
-
pageCount: pageCount,
|
40243
40313
|
totalCount: totalCount,
|
40244
40314
|
paginateExpandedRows: paginateExpandedRows,
|
40245
40315
|
isLoading: isLoading,
|
@@ -40248,15 +40318,19 @@ var Provider = function Provider(props) {
|
|
40248
40318
|
getRowProps: getRowProps,
|
40249
40319
|
getCellProps: getCellProps,
|
40250
40320
|
getFooterProps: getFooterProps,
|
40251
|
-
ExpandHandleComp: ExpandHandleComp
|
40252
|
-
|
40321
|
+
ExpandHandleComp: ExpandHandleComp,
|
40322
|
+
fullWidth: fullWidth,
|
40323
|
+
rowDensity: rowDensity
|
40324
|
+
}, rest), manualPagination && {
|
40325
|
+
pageCount: pageCount
|
40326
|
+
}), useCanHideColumns, react_table__WEBPACK_IMPORTED_MODULE_2__.useExpanded, _expandable_rows__WEBPACK_IMPORTED_MODULE_9__.useExpandHandle, react_table__WEBPACK_IMPORTED_MODULE_2__.usePagination, fullWidth ? react_table__WEBPACK_IMPORTED_MODULE_2__.useFlexLayout : react_table__WEBPACK_IMPORTED_MODULE_2__.useBlockLayout, react_table__WEBPACK_IMPORTED_MODULE_2__.useResizeColumns, react_table__WEBPACK_IMPORTED_MODULE_2__.useColumnOrder, _pinned_columns__WEBPACK_IMPORTED_MODULE_8__.usePinnedColumns, _editable_columns__WEBPACK_IMPORTED_MODULE_7__.useEditableColumns, react_table__WEBPACK_IMPORTED_MODULE_2__.useRowSelect, _select_rows__WEBPACK_IMPORTED_MODULE_10__.useSelectRows].concat(_toConsumableArray(rowActions !== null && rowActions !== void 0 && rowActions.length ? [_row_menu__WEBPACK_IMPORTED_MODULE_11__.useRowMenu] : []), _toConsumableArray(hooks)));
|
40253
40327
|
var _table$state = table.state,
|
40254
40328
|
pageIndex = _table$state.pageIndex,
|
40255
40329
|
_pageSize = _table$state.pageSize;
|
40256
|
-
(0,
|
40330
|
+
(0,react__WEBPACK_IMPORTED_MODULE_1__.useEffect)(function () {
|
40257
40331
|
stateManager === null || stateManager === void 0 || stateManager.onStateChange(table.state);
|
40258
40332
|
}, [table.state]);
|
40259
|
-
(0,
|
40333
|
+
(0,react__WEBPACK_IMPORTED_MODULE_1__.useEffect)(function () {
|
40260
40334
|
if (!manualPagination) return;
|
40261
40335
|
setPageCount(calcPageCount(totalCount, _pageSize));
|
40262
40336
|
onPageChange === null || onPageChange === void 0 || onPageChange({
|
@@ -40266,8 +40340,8 @@ var Provider = function Provider(props) {
|
|
40266
40340
|
}, [manualPagination, totalCount, pageIndex, _pageSize]);
|
40267
40341
|
var _LoadingComp = useComp(loadingText, LoadingComp);
|
40268
40342
|
var _NoDataComp = useComp(noDataText, NoDataComp);
|
40269
|
-
var orderLogic = (0,
|
40270
|
-
var expandColumnId = (0,
|
40343
|
+
var orderLogic = (0,_order_logic__WEBPACK_IMPORTED_MODULE_12__.useOrderLogic)(table);
|
40344
|
+
var expandColumnId = (0,_util__WEBPACK_IMPORTED_MODULE_6__.firstDefined)(_expandColumnId, (_columns$ = columns[0]) === null || _columns$ === void 0 ? void 0 : _columns$.id);
|
40271
40345
|
var value = _objectSpread(_objectSpread({
|
40272
40346
|
columnSort: columnSort,
|
40273
40347
|
onColumnSortChanged: onColumnSortChanged,
|
@@ -40289,107 +40363,81 @@ var Provider = function Provider(props) {
|
|
40289
40363
|
hoverActionsDirection: hoverActionsDirection,
|
40290
40364
|
virtualized: virtualized
|
40291
40365
|
});
|
40292
|
-
return /*#__PURE__*/
|
40366
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(TableContext.Provider, {
|
40293
40367
|
value: value
|
40294
40368
|
}, children);
|
40295
40369
|
};
|
40296
40370
|
Provider.displayName = 'Table.Provider';
|
40297
|
-
Provider.defaultProps = {
|
40298
|
-
data: [],
|
40299
|
-
columnSort: {},
|
40300
|
-
pageSizes: [5, 10, 20, 30],
|
40301
|
-
hooks: [],
|
40302
|
-
ExpandHandleComp: _expandable_rows__WEBPACK_IMPORTED_MODULE_10__.ExpandHandle,
|
40303
|
-
noDataText: 'No data',
|
40304
|
-
loadingText: 'Loading...',
|
40305
|
-
isLoading: false,
|
40306
|
-
manualPagination: false,
|
40307
|
-
paginateExpandedRows: false,
|
40308
|
-
getHeaderProps: defaultPropGetter,
|
40309
|
-
getColumnProps: defaultPropGetter,
|
40310
|
-
getRowProps: defaultPropGetter,
|
40311
|
-
getCellProps: defaultPropGetter,
|
40312
|
-
getFooterProps: defaultPropGetter,
|
40313
|
-
rowDensity: 'busy_bee',
|
40314
|
-
canOrderColumns: false,
|
40315
|
-
isCellEditable: function isCellEditable(_ref) {
|
40316
|
-
var column = _ref.column;
|
40317
|
-
return column.canEdit;
|
40318
|
-
},
|
40319
|
-
draggableRows: false,
|
40320
|
-
hoverActionsDirection: 'row',
|
40321
|
-
virtualized: false
|
40322
|
-
};
|
40323
40371
|
Provider.propTypes = {
|
40324
|
-
columns:
|
40325
|
-
id: (
|
40326
|
-
accessor:
|
40327
|
-
type:
|
40328
|
-
Header:
|
40329
|
-
Cell: (
|
40330
|
-
Footer:
|
40331
|
-
canSort: (
|
40332
|
-
disableHiding: (
|
40333
|
-
width: (
|
40334
|
-
minWidth: (
|
40335
|
-
maxWidth: (
|
40336
|
-
disableResizing: (
|
40337
|
-
disablePinning: (
|
40338
|
-
canEdit: (
|
40339
|
-
className: (
|
40372
|
+
columns: prop_types__WEBPACK_IMPORTED_MODULE_0___default().arrayOf(prop_types__WEBPACK_IMPORTED_MODULE_0___default().shape({
|
40373
|
+
id: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string).isRequired,
|
40374
|
+
accessor: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_0___default().string), (prop_types__WEBPACK_IMPORTED_MODULE_0___default().func)]),
|
40375
|
+
type: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOf(['string', 'number']),
|
40376
|
+
Header: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_0___default().node), (prop_types__WEBPACK_IMPORTED_MODULE_0___default().func)]),
|
40377
|
+
Cell: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().func),
|
40378
|
+
Footer: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_0___default().node), (prop_types__WEBPACK_IMPORTED_MODULE_0___default().func)]),
|
40379
|
+
canSort: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool),
|
40380
|
+
disableHiding: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool),
|
40381
|
+
width: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().number),
|
40382
|
+
minWidth: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().number),
|
40383
|
+
maxWidth: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().number),
|
40384
|
+
disableResizing: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool),
|
40385
|
+
disablePinning: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool),
|
40386
|
+
canEdit: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool),
|
40387
|
+
className: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string)
|
40340
40388
|
})),
|
40341
|
-
data: (
|
40342
|
-
columnSort: (
|
40343
|
-
onColumnSortChanged: (
|
40344
|
-
pageSize: (
|
40345
|
-
pageSizes:
|
40346
|
-
manualPagination: (
|
40347
|
-
totalCount: (
|
40348
|
-
paginateExpandedRows: (
|
40349
|
-
onPageChange: (
|
40350
|
-
isLoading: (
|
40351
|
-
hiddenColumns:
|
40352
|
-
pinnedColumns:
|
40353
|
-
fullWidth: (
|
40354
|
-
disableHiding: (
|
40355
|
-
disableResizing: (
|
40356
|
-
disablePinning: (
|
40357
|
-
canEdit: (
|
40358
|
-
isCellEditable: (
|
40359
|
-
onStartEdit: (
|
40360
|
-
hideHeader: (
|
40361
|
-
hideFooter: (
|
40362
|
-
getHeaderProps: (
|
40363
|
-
getColumnProps: (
|
40364
|
-
getRowProps: (
|
40365
|
-
getCellProps: (
|
40366
|
-
getFooterProps: (
|
40367
|
-
noDataText:
|
40368
|
-
loadingText:
|
40369
|
-
renderRowSubComponent: (
|
40370
|
-
rowDensity:
|
40371
|
-
onRowClick: (
|
40372
|
-
stickyHeader:
|
40373
|
-
scrollTarget: (
|
40374
|
-
className: (
|
40375
|
-
onSelectRows: (
|
40376
|
-
canOrderColumns: (
|
40377
|
-
rowActions: (
|
40378
|
-
scrollable: (
|
40379
|
-
scrollHeight: (
|
40380
|
-
expandColumnId: (
|
40381
|
-
draggableRows: (
|
40382
|
-
onRowDragStart: (
|
40383
|
-
onRowDragEnd: (
|
40384
|
-
hoverActions:
|
40385
|
-
hoverActionsDirection:
|
40386
|
-
virtualized: (
|
40389
|
+
data: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().array),
|
40390
|
+
columnSort: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().object),
|
40391
|
+
onColumnSortChanged: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().func),
|
40392
|
+
pageSize: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().number),
|
40393
|
+
pageSizes: prop_types__WEBPACK_IMPORTED_MODULE_0___default().arrayOf((prop_types__WEBPACK_IMPORTED_MODULE_0___default().number)),
|
40394
|
+
manualPagination: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool),
|
40395
|
+
totalCount: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().number),
|
40396
|
+
paginateExpandedRows: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool),
|
40397
|
+
onPageChange: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().func),
|
40398
|
+
isLoading: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool),
|
40399
|
+
hiddenColumns: prop_types__WEBPACK_IMPORTED_MODULE_0___default().arrayOf((prop_types__WEBPACK_IMPORTED_MODULE_0___default().string)),
|
40400
|
+
pinnedColumns: prop_types__WEBPACK_IMPORTED_MODULE_0___default().arrayOf((prop_types__WEBPACK_IMPORTED_MODULE_0___default().string)),
|
40401
|
+
fullWidth: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool),
|
40402
|
+
disableHiding: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool),
|
40403
|
+
disableResizing: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool),
|
40404
|
+
disablePinning: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool),
|
40405
|
+
canEdit: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool),
|
40406
|
+
isCellEditable: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().func),
|
40407
|
+
onStartEdit: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().func),
|
40408
|
+
hideHeader: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool),
|
40409
|
+
hideFooter: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool),
|
40410
|
+
getHeaderProps: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().func),
|
40411
|
+
getColumnProps: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().func),
|
40412
|
+
getRowProps: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().func),
|
40413
|
+
getCellProps: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().func),
|
40414
|
+
getFooterProps: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().func),
|
40415
|
+
noDataText: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_0___default().string), (prop_types__WEBPACK_IMPORTED_MODULE_0___default().node), (prop_types__WEBPACK_IMPORTED_MODULE_0___default().func)]),
|
40416
|
+
loadingText: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_0___default().string), (prop_types__WEBPACK_IMPORTED_MODULE_0___default().node), (prop_types__WEBPACK_IMPORTED_MODULE_0___default().func)]),
|
40417
|
+
renderRowSubComponent: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().func),
|
40418
|
+
rowDensity: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOf(['busy_bee', 'diamond_hand', 'white_spaced']),
|
40419
|
+
onRowClick: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().func),
|
40420
|
+
stickyHeader: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool), (prop_types__WEBPACK_IMPORTED_MODULE_0___default().object)]),
|
40421
|
+
scrollTarget: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().any),
|
40422
|
+
className: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string),
|
40423
|
+
onSelectRows: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().func),
|
40424
|
+
canOrderColumns: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool),
|
40425
|
+
rowActions: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().array),
|
40426
|
+
scrollable: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool),
|
40427
|
+
scrollHeight: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string),
|
40428
|
+
expandColumnId: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string),
|
40429
|
+
draggableRows: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool),
|
40430
|
+
onRowDragStart: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().func),
|
40431
|
+
onRowDragEnd: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().func),
|
40432
|
+
hoverActions: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_0___default().arrayOf((prop_types__WEBPACK_IMPORTED_MODULE_0___default().object)), (prop_types__WEBPACK_IMPORTED_MODULE_0___default().func)]),
|
40433
|
+
hoverActionsDirection: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOf(['row', 'column']),
|
40434
|
+
virtualized: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool)
|
40387
40435
|
};
|
40388
40436
|
var calcPageCount = function calcPageCount(totalCount, pageSize) {
|
40389
40437
|
return Math.ceil(totalCount / pageSize);
|
40390
40438
|
};
|
40391
40439
|
var useTableContext = function useTableContext() {
|
40392
|
-
return (0,
|
40440
|
+
return (0,react__WEBPACK_IMPORTED_MODULE_1__.useContext)(TableContext);
|
40393
40441
|
};
|
40394
40442
|
|
40395
40443
|
// can hide columns
|
@@ -40399,29 +40447,28 @@ var useCanHideColumns = function useCanHideColumns(hooks) {
|
|
40399
40447
|
var disableHiding = instance.disableHiding,
|
40400
40448
|
flatHeaders = instance.flatHeaders;
|
40401
40449
|
flatHeaders.forEach(function (header) {
|
40402
|
-
header.canHide = (0,
|
40450
|
+
header.canHide = (0,_util__WEBPACK_IMPORTED_MODULE_6__.firstDefined)(header.disableHiding === true ? false : undefined, disableHiding === true ? false : undefined, true);
|
40403
40451
|
});
|
40404
40452
|
});
|
40405
40453
|
};
|
40406
40454
|
useCanHideColumns.pluginName = 'useCanHideColumns';
|
40407
40455
|
var useComp = function useComp(text, Comp) {
|
40408
|
-
return (0,
|
40456
|
+
return (0,react__WEBPACK_IMPORTED_MODULE_1__.useMemo)(function () {
|
40409
40457
|
if (Comp) return Comp;
|
40410
40458
|
if (!text || typeof text != 'string' || text.trim() == '') return text;
|
40411
|
-
return /*#__PURE__*/
|
40459
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(EmptyBody, null, text);
|
40412
40460
|
}, [text, Comp]);
|
40413
40461
|
};
|
40414
|
-
var EmptyBody = function EmptyBody(
|
40415
|
-
var children =
|
40416
|
-
return /*#__PURE__*/
|
40462
|
+
var EmptyBody = function EmptyBody(_ref4) {
|
40463
|
+
var children = _ref4.children;
|
40464
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_layout__WEBPACK_IMPORTED_MODULE_3__.Flex, {
|
40417
40465
|
align_items: "center",
|
40418
40466
|
width: "100%",
|
40419
|
-
padding: "".concat(
|
40420
|
-
}, /*#__PURE__*/
|
40467
|
+
padding: "".concat(_theme__WEBPACK_IMPORTED_MODULE_4__["default"].spacing['04'], " ").concat(_theme__WEBPACK_IMPORTED_MODULE_4__["default"].spacing['05'])
|
40468
|
+
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_typography__WEBPACK_IMPORTED_MODULE_5__.Label, {
|
40421
40469
|
color: "gray_11_50"
|
40422
40470
|
}, children));
|
40423
40471
|
};
|
40424
|
-
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (Provider);
|
40425
40472
|
|
40426
40473
|
/***/ }),
|
40427
40474
|
|
@@ -40434,7 +40481,7 @@ var EmptyBody = function EmptyBody(_ref2) {
|
|
40434
40481
|
"use strict";
|
40435
40482
|
__webpack_require__.r(__webpack_exports__);
|
40436
40483
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
40437
|
-
/* harmony export */
|
40484
|
+
/* harmony export */ CustomizeButton: () => (/* binding */ CustomizeButton)
|
40438
40485
|
/* harmony export */ });
|
40439
40486
|
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! prop-types */ "prop-types");
|
40440
40487
|
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_0__);
|
@@ -40511,9 +40558,6 @@ var CustomizeButton = function CustomizeButton(props) {
|
|
40511
40558
|
});
|
40512
40559
|
};
|
40513
40560
|
CustomizeButton.displayName = 'Table.CustomizeButton';
|
40514
|
-
CustomizeButton.defaultProps = {
|
40515
|
-
maxMenuHeight: 300
|
40516
|
-
};
|
40517
40561
|
CustomizeButton.propTypes = {
|
40518
40562
|
searchable: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool),
|
40519
40563
|
maxMenuHeight: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().number)
|
@@ -40522,9 +40566,9 @@ var PopoverContainer = styled_components__WEBPACK_IMPORTED_MODULE_2___default().
|
|
40522
40566
|
displayName: "PopoverContainer",
|
40523
40567
|
componentId: "sc-1uptv2h-0"
|
40524
40568
|
})(["box-shadow:", ";background:white;border-radius:4px;padding:4px 0;min-width:168px;max-width:540px;"], _theme__WEBPACK_IMPORTED_MODULE_7__["default"].box_shadow.md);
|
40525
|
-
var Search = function Search(
|
40526
|
-
var search =
|
40527
|
-
setSearch =
|
40569
|
+
var Search = function Search(_ref) {
|
40570
|
+
var search = _ref.search,
|
40571
|
+
setSearch = _ref.setSearch;
|
40528
40572
|
var clearButton = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_icon_button__WEBPACK_IMPORTED_MODULE_5__.IconButton, {
|
40529
40573
|
variant: "ghost",
|
40530
40574
|
icon: "Close",
|
@@ -40550,7 +40594,6 @@ var Search = function Search(props) {
|
|
40550
40594
|
onChange: setSearch
|
40551
40595
|
}));
|
40552
40596
|
};
|
40553
|
-
Search.displayName = 'Search';
|
40554
40597
|
var ItemsWrapper = styled_components__WEBPACK_IMPORTED_MODULE_2___default().div.withConfig({
|
40555
40598
|
displayName: "ItemsWrapper",
|
40556
40599
|
componentId: "sc-1uptv2h-1"
|
@@ -40559,13 +40602,14 @@ var ItemsWrapper = styled_components__WEBPACK_IMPORTED_MODULE_2___default().div.
|
|
40559
40602
|
return (0,styled_components__WEBPACK_IMPORTED_MODULE_2__.css)(["max-height:", ";overflow-y:auto;", ""], (0,_utils__WEBPACK_IMPORTED_MODULE_10__.toPixel)(props.$maxMenuHeight), _theme__WEBPACK_IMPORTED_MODULE_7__["default"].scrollbars.thin);
|
40560
40603
|
}
|
40561
40604
|
});
|
40562
|
-
var CustomizeButtonPopover = function CustomizeButtonPopover(
|
40563
|
-
var searchable =
|
40564
|
-
search =
|
40565
|
-
setSearch =
|
40566
|
-
maxMenuHeight =
|
40567
|
-
|
40568
|
-
|
40605
|
+
var CustomizeButtonPopover = function CustomizeButtonPopover(_ref2) {
|
40606
|
+
var searchable = _ref2.searchable,
|
40607
|
+
search = _ref2.search,
|
40608
|
+
setSearch = _ref2.setSearch,
|
40609
|
+
_ref2$maxMenuHeight = _ref2.maxMenuHeight,
|
40610
|
+
maxMenuHeight = _ref2$maxMenuHeight === void 0 ? 300 : _ref2$maxMenuHeight,
|
40611
|
+
items = _ref2.items,
|
40612
|
+
orderProps = _ref2.orderProps;
|
40569
40613
|
var maxHeight = Number.parseInt(maxMenuHeight);
|
40570
40614
|
var _maxMenuHeight = orderProps && (!maxHeight || maxHeight < 600) ? 600 : maxMenuHeight;
|
40571
40615
|
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(PopoverContainer, null, searchable && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(Search, {
|
@@ -40579,28 +40623,28 @@ var CustomizeButtonPopover = function CustomizeButtonPopover(props) {
|
|
40579
40623
|
items: items
|
40580
40624
|
})));
|
40581
40625
|
};
|
40582
|
-
|
40583
|
-
var
|
40626
|
+
var CustomizeButtonWithPopover = (0,_hoc__WEBPACK_IMPORTED_MODULE_3__.withPopover)(function (_ref3) {
|
40627
|
+
var popover = _ref3.popover;
|
40584
40628
|
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_icon_button__WEBPACK_IMPORTED_MODULE_5__.IconButton, {
|
40585
|
-
onClick:
|
40629
|
+
onClick: popover.toggle,
|
40586
40630
|
tooltip: "Customize columns",
|
40587
40631
|
icon: "Customize"
|
40588
40632
|
});
|
40589
40633
|
}, CustomizeButtonPopover, {
|
40590
40634
|
placement: 'bottom'
|
40591
40635
|
});
|
40592
|
-
var CustomizeButtonStaticItems = function CustomizeButtonStaticItems(
|
40593
|
-
var items =
|
40636
|
+
var CustomizeButtonStaticItems = function CustomizeButtonStaticItems(_ref4) {
|
40637
|
+
var items = _ref4.items;
|
40594
40638
|
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement((react__WEBPACK_IMPORTED_MODULE_1___default().Fragment), null, items.map(function (c) {
|
40595
40639
|
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(CustomizeButtonItem, _extends({
|
40596
40640
|
key: c.id
|
40597
40641
|
}, c));
|
40598
40642
|
}));
|
40599
40643
|
};
|
40600
|
-
var CustomizeButtonDraggableItems = function CustomizeButtonDraggableItems(
|
40601
|
-
var items =
|
40602
|
-
orders =
|
40603
|
-
moveColumn =
|
40644
|
+
var CustomizeButtonDraggableItems = function CustomizeButtonDraggableItems(_ref5) {
|
40645
|
+
var items = _ref5.items,
|
40646
|
+
orders = _ref5.orders,
|
40647
|
+
moveColumn = _ref5.moveColumn;
|
40604
40648
|
var sections = (0,react__WEBPACK_IMPORTED_MODULE_1__.useMemo)(function () {
|
40605
40649
|
var _orders$pinned;
|
40606
40650
|
return [((_orders$pinned = orders.pinned) === null || _orders$pinned === void 0 ? void 0 : _orders$pinned.length) && {
|
@@ -40656,25 +40700,25 @@ var CustomizeButtonDraggableItems = function CustomizeButtonDraggableItems(props
|
|
40656
40700
|
CustomDrag: CustomizeButtonDraggableItem
|
40657
40701
|
});
|
40658
40702
|
};
|
40659
|
-
var CustomizeButtonDraggableItem = function CustomizeButtonDraggableItem(
|
40660
|
-
var Dragger =
|
40661
|
-
isDragging =
|
40662
|
-
itemProps = _objectWithoutProperties(
|
40703
|
+
var CustomizeButtonDraggableItem = function CustomizeButtonDraggableItem(_ref6) {
|
40704
|
+
var Dragger = _ref6.Dragger,
|
40705
|
+
isDragging = _ref6.isDragging,
|
40706
|
+
itemProps = _objectWithoutProperties(_ref6, _excluded);
|
40663
40707
|
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_input__WEBPACK_IMPORTED_MODULE_6__.DragDrop.DraggableItem, {
|
40664
40708
|
Dragger: Dragger,
|
40665
40709
|
isDragging: isDragging
|
40666
40710
|
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(CustomizeButtonItem, itemProps));
|
40667
40711
|
};
|
40668
|
-
var CustomizeButtonItem = function CustomizeButtonItem(
|
40669
|
-
var id =
|
40670
|
-
name =
|
40671
|
-
canPin =
|
40672
|
-
isPinned =
|
40673
|
-
togglePinned =
|
40674
|
-
canHide =
|
40675
|
-
isVisible =
|
40676
|
-
toggleHidden =
|
40677
|
-
className =
|
40712
|
+
var CustomizeButtonItem = function CustomizeButtonItem(_ref7) {
|
40713
|
+
var id = _ref7.id,
|
40714
|
+
name = _ref7.name,
|
40715
|
+
canPin = _ref7.canPin,
|
40716
|
+
isPinned = _ref7.isPinned,
|
40717
|
+
togglePinned = _ref7.togglePinned,
|
40718
|
+
canHide = _ref7.canHide,
|
40719
|
+
isVisible = _ref7.isVisible,
|
40720
|
+
toggleHidden = _ref7.toggleHidden,
|
40721
|
+
className = _ref7.className;
|
40678
40722
|
var handlePinned = (0,react__WEBPACK_IMPORTED_MODULE_1__.useCallback)(function () {
|
40679
40723
|
togglePinned(!isPinned);
|
40680
40724
|
}, [isPinned, togglePinned]);
|
@@ -40696,24 +40740,25 @@ var CustomizeButtonItem = function CustomizeButtonItem(props) {
|
|
40696
40740
|
tooltip: "".concat(isVisible ? 'Hide' : 'Show', " column")
|
40697
40741
|
}));
|
40698
40742
|
};
|
40699
|
-
CustomizeButtonItem.displayName = 'CustomizeButtonItem';
|
40700
40743
|
var CustomizeButtonItemWrapper = styled_components__WEBPACK_IMPORTED_MODULE_2___default().div.withConfig({
|
40701
40744
|
displayName: "CustomizeButtonItemWrapper",
|
40702
40745
|
componentId: "sc-1uptv2h-2"
|
40703
40746
|
})(["margin:0;padding:8px 16px;display:flex;align-items:center;gap:4px;min-width:230px;div[data-label]{margin-right:auto;}&:hover{background-color:", ";}"], _theme__WEBPACK_IMPORTED_MODULE_7__["default"].color.gray_2);
|
40704
|
-
var CustomizeButtonItemAction = function CustomizeButtonItemAction(
|
40747
|
+
var CustomizeButtonItemAction = function CustomizeButtonItemAction(_ref8) {
|
40748
|
+
var onClick = _ref8.onClick,
|
40749
|
+
tooltip = _ref8.tooltip,
|
40750
|
+
icon = _ref8.icon;
|
40705
40751
|
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(CustomizeButtonItemActionWrapper, {
|
40706
|
-
onClick:
|
40752
|
+
onClick: onClick
|
40707
40753
|
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_tooltip__WEBPACK_IMPORTED_MODULE_8__.Tooltip, {
|
40708
|
-
tooltip:
|
40754
|
+
tooltip: tooltip,
|
40709
40755
|
tooltipPlacement: "top"
|
40710
40756
|
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_icon__WEBPACK_IMPORTED_MODULE_4__.Icon, {
|
40711
|
-
name:
|
40757
|
+
name: icon,
|
40712
40758
|
size: "xs",
|
40713
40759
|
color: "gray_9"
|
40714
40760
|
})));
|
40715
40761
|
};
|
40716
|
-
CustomizeButtonItemAction.displayName = 'CustomizeButtonItemAction';
|
40717
40762
|
var CustomizeButtonItemActionWrapper = styled_components__WEBPACK_IMPORTED_MODULE_2___default().div.withConfig({
|
40718
40763
|
displayName: "CustomizeButtonItemActionWrapper",
|
40719
40764
|
componentId: "sc-1uptv2h-3"
|
@@ -40724,7 +40769,6 @@ var searchColumn = function searchColumn(search) {
|
|
40724
40769
|
return !search || name.toLowerCase().includes(search.toLowerCase());
|
40725
40770
|
};
|
40726
40771
|
};
|
40727
|
-
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (CustomizeButton);
|
40728
40772
|
|
40729
40773
|
/***/ }),
|
40730
40774
|
|
@@ -41607,9 +41651,9 @@ __webpack_require__.r(__webpack_exports__);
|
|
41607
41651
|
|
41608
41652
|
|
41609
41653
|
|
41610
|
-
_table__WEBPACK_IMPORTED_MODULE_3__.Table.CustomizeButton = _customize_button__WEBPACK_IMPORTED_MODULE_2__
|
41654
|
+
_table__WEBPACK_IMPORTED_MODULE_3__.Table.CustomizeButton = _customize_button__WEBPACK_IMPORTED_MODULE_2__.CustomizeButton;
|
41611
41655
|
_table__WEBPACK_IMPORTED_MODULE_3__.Table.Pagination = _pagination__WEBPACK_IMPORTED_MODULE_4__["default"];
|
41612
|
-
_table__WEBPACK_IMPORTED_MODULE_3__.Table.Provider = _context__WEBPACK_IMPORTED_MODULE_1__
|
41656
|
+
_table__WEBPACK_IMPORTED_MODULE_3__.Table.Provider = _context__WEBPACK_IMPORTED_MODULE_1__.Provider;
|
41613
41657
|
_table__WEBPACK_IMPORTED_MODULE_3__.Table.withPlugins = _plugin__WEBPACK_IMPORTED_MODULE_5__.withPlugins;
|
41614
41658
|
_table__WEBPACK_IMPORTED_MODULE_3__.Table.plugins = _plugin__WEBPACK_IMPORTED_MODULE_5__.plugins;
|
41615
41659
|
|
@@ -41796,7 +41840,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
41796
41840
|
|
41797
41841
|
/*jslint react:true*/
|
41798
41842
|
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); }
|
41799
|
-
var _excluded = ["state", "totalCount", "manualPagination"];
|
41843
|
+
var _excluded = ["state", "totalCount", "manualPagination", "rows", "pageSizes"];
|
41800
41844
|
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; }
|
41801
41845
|
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; }
|
41802
41846
|
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; }
|
@@ -41819,23 +41863,25 @@ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) r
|
|
41819
41863
|
|
41820
41864
|
|
41821
41865
|
|
41822
|
-
var Pagination = function Pagination(
|
41823
|
-
var className =
|
41824
|
-
onDownload =
|
41825
|
-
|
41826
|
-
downloadTooltip =
|
41866
|
+
var Pagination = function Pagination(_ref) {
|
41867
|
+
var className = _ref.className,
|
41868
|
+
onDownload = _ref.onDownload,
|
41869
|
+
_ref$downloadTooltip = _ref.downloadTooltip,
|
41870
|
+
downloadTooltip = _ref$downloadTooltip === void 0 ? 'Download' : _ref$downloadTooltip;
|
41827
41871
|
var _useTableContext = (0,_context__WEBPACK_IMPORTED_MODULE_8__.useTableContext)(),
|
41828
41872
|
state = _useTableContext.state,
|
41829
41873
|
totalCount = _useTableContext.totalCount,
|
41830
41874
|
manualPagination = _useTableContext.manualPagination,
|
41875
|
+
rows = _useTableContext.rows,
|
41876
|
+
pageSizes = _useTableContext.pageSizes,
|
41831
41877
|
rest = _objectWithoutProperties(_useTableContext, _excluded);
|
41832
|
-
var rows = rest.rows,
|
41833
|
-
pageSizes = rest.pageSizes;
|
41834
41878
|
var minPageSize = Math.min.apply(Math, _toConsumableArray(pageSizes));
|
41835
41879
|
var total = manualPagination ? totalCount : rows.length;
|
41836
41880
|
if (total <= minPageSize) return null;
|
41837
41881
|
var childProps = _objectSpread(_objectSpread(_objectSpread({}, state), rest), {}, {
|
41838
|
-
total: total
|
41882
|
+
total: total,
|
41883
|
+
rows: rows,
|
41884
|
+
pageSizes: pageSizes
|
41839
41885
|
});
|
41840
41886
|
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(PaginationWrapper, {
|
41841
41887
|
className: className
|
@@ -41846,7 +41892,6 @@ var Pagination = function Pagination(props) {
|
|
41846
41892
|
variant: "icon"
|
41847
41893
|
}), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(PaginationControls, childProps)));
|
41848
41894
|
};
|
41849
|
-
Pagination.displayName = 'Table.Pagination';
|
41850
41895
|
Pagination.propTypes = {
|
41851
41896
|
onDownload: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().func),
|
41852
41897
|
downloadTooltip: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string)
|
@@ -41859,12 +41904,12 @@ var PaginationControlsWrapper = styled_components__WEBPACK_IMPORTED_MODULE_2___d
|
|
41859
41904
|
displayName: "PaginationControlsWrapper",
|
41860
41905
|
componentId: "sc-1rdn0jh-1"
|
41861
41906
|
})(["margin-left:auto;display:flex;flex-direction:row;align-items:center;gap:12px;"]);
|
41862
|
-
var PaginationControls = function PaginationControls(
|
41863
|
-
var pageIndex =
|
41864
|
-
pageSize =
|
41865
|
-
pageSizes =
|
41866
|
-
setPageSize =
|
41867
|
-
total =
|
41907
|
+
var PaginationControls = function PaginationControls(_ref2) {
|
41908
|
+
var pageIndex = _ref2.pageIndex,
|
41909
|
+
pageSize = _ref2.pageSize,
|
41910
|
+
pageSizes = _ref2.pageSizes,
|
41911
|
+
setPageSize = _ref2.setPageSize,
|
41912
|
+
total = _ref2.total;
|
41868
41913
|
var handleChange = function handleChange(option) {
|
41869
41914
|
return setPageSize(+option.value);
|
41870
41915
|
};
|
@@ -41901,15 +41946,14 @@ var PaginationControls = function PaginationControls(props) {
|
|
41901
41946
|
color: "gray_11_50"
|
41902
41947
|
}, total)));
|
41903
41948
|
};
|
41904
|
-
|
41905
|
-
var
|
41906
|
-
|
41907
|
-
|
41908
|
-
|
41909
|
-
|
41910
|
-
|
41911
|
-
|
41912
|
-
pageCount = props.pageCount;
|
41949
|
+
var PaginationItems = function PaginationItems(_ref3) {
|
41950
|
+
var pageIndex = _ref3.pageIndex,
|
41951
|
+
canPreviousPage = _ref3.canPreviousPage,
|
41952
|
+
previousPage = _ref3.previousPage,
|
41953
|
+
canNextPage = _ref3.canNextPage,
|
41954
|
+
nextPage = _ref3.nextPage,
|
41955
|
+
gotoPage = _ref3.gotoPage,
|
41956
|
+
pageCount = _ref3.pageCount;
|
41913
41957
|
var pages = usePages({
|
41914
41958
|
pageIndex: pageIndex,
|
41915
41959
|
gotoPage: gotoPage,
|
@@ -41917,38 +41961,42 @@ var PaginationItems = function PaginationItems(props) {
|
|
41917
41961
|
});
|
41918
41962
|
if (!pages) return null;
|
41919
41963
|
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(PaginationItemsWrapper, null, canPreviousPage && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(PageLink, {
|
41920
|
-
onClick:
|
41964
|
+
onClick: function onClick() {
|
41965
|
+
return previousPage();
|
41966
|
+
},
|
41921
41967
|
text: "Prev"
|
41922
41968
|
}), pages, canNextPage && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(PageLink, {
|
41923
|
-
onClick:
|
41969
|
+
onClick: function onClick() {
|
41970
|
+
return nextPage();
|
41971
|
+
},
|
41924
41972
|
text: "Next"
|
41925
41973
|
}));
|
41926
41974
|
};
|
41927
|
-
PaginationItems.displayName = 'PaginationItems';
|
41928
41975
|
var PaginationItemsWrapper = styled_components__WEBPACK_IMPORTED_MODULE_2___default().div.withConfig({
|
41929
41976
|
displayName: "PaginationItemsWrapper",
|
41930
41977
|
componentId: "sc-1rdn0jh-2"
|
41931
41978
|
})(["display:flex;flex-direction:row;align-items:center;gap:8px;"]);
|
41932
|
-
var PageLink = function PageLink(
|
41979
|
+
var PageLink = function PageLink(_ref4) {
|
41980
|
+
var onClick = _ref4.onClick,
|
41981
|
+
text = _ref4.text;
|
41933
41982
|
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_link__WEBPACK_IMPORTED_MODULE_6__.Link, {
|
41934
41983
|
as: "div",
|
41935
41984
|
variant: "secondary",
|
41936
41985
|
size: "sm",
|
41937
|
-
onClick:
|
41938
|
-
text: String(
|
41986
|
+
onClick: onClick,
|
41987
|
+
text: String(text),
|
41939
41988
|
style: {
|
41940
41989
|
cursor: 'pointer'
|
41941
41990
|
}
|
41942
41991
|
});
|
41943
41992
|
};
|
41944
|
-
|
41945
|
-
var
|
41993
|
+
var PageLabel = function PageLabel(_ref5) {
|
41994
|
+
var text = _ref5.text;
|
41946
41995
|
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_typography__WEBPACK_IMPORTED_MODULE_7__.Label, {
|
41947
41996
|
variant: "sm",
|
41948
41997
|
color: "gray_11_50"
|
41949
|
-
},
|
41998
|
+
}, text);
|
41950
41999
|
};
|
41951
|
-
PageLabel.displayName = 'PageLabel';
|
41952
42000
|
var usePages = function usePages(opt) {
|
41953
42001
|
return (0,react__WEBPACK_IMPORTED_MODULE_1__.useMemo)(function () {
|
41954
42002
|
var pageIndex = opt.pageIndex,
|
@@ -42243,7 +42291,7 @@ var withPlugins = function withPlugins() {
|
|
42243
42291
|
return acc.concat.apply(acc, _toConsumableArray(((_plugin$hooks = plugin.hooks) === null || _plugin$hooks === void 0 ? void 0 : _plugin$hooks.call(plugin)) || []));
|
42244
42292
|
}, []);
|
42245
42293
|
var ProviderWithPlugins = function ProviderWithPlugins(props) {
|
42246
|
-
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_context__WEBPACK_IMPORTED_MODULE_1__
|
42294
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_context__WEBPACK_IMPORTED_MODULE_1__.Provider, _extends({}, pluginProps, props, {
|
42247
42295
|
hooks: hooks
|
42248
42296
|
}));
|
42249
42297
|
};
|
@@ -42873,20 +42921,21 @@ __webpack_require__.r(__webpack_exports__);
|
|
42873
42921
|
/*jslint react:true*/
|
42874
42922
|
|
42875
42923
|
|
42876
|
-
var SortIcon = function SortIcon(
|
42924
|
+
var SortIcon = function SortIcon(_ref) {
|
42925
|
+
var _ref$visible = _ref.visible,
|
42926
|
+
visible = _ref$visible === void 0 ? true : _ref$visible,
|
42927
|
+
_ref$color = _ref.color,
|
42928
|
+
color = _ref$color === void 0 ? 'blue_10' : _ref$color,
|
42929
|
+
reverse = _ref.reverse;
|
42877
42930
|
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_icon__WEBPACK_IMPORTED_MODULE_1__.Icon, {
|
42878
42931
|
size: "xs",
|
42879
|
-
name:
|
42880
|
-
color:
|
42932
|
+
name: reverse ? 'SortDesc' : 'SortAsc',
|
42933
|
+
color: color,
|
42881
42934
|
style: {
|
42882
|
-
visibility:
|
42935
|
+
visibility: visible ? 'visible' : 'hidden'
|
42883
42936
|
}
|
42884
42937
|
});
|
42885
42938
|
};
|
42886
|
-
SortIcon.displayName = 'SortIcon';
|
42887
|
-
SortIcon.defaultProps = {
|
42888
|
-
visible: true
|
42889
|
-
};
|
42890
42939
|
|
42891
42940
|
/***/ }),
|
42892
42941
|
|
@@ -43225,12 +43274,12 @@ var Table = function Table(props) {
|
|
43225
43274
|
var context = (0,_context__WEBPACK_IMPORTED_MODULE_7__.useTableContext)();
|
43226
43275
|
// not under context
|
43227
43276
|
if (context === _context__WEBPACK_IMPORTED_MODULE_7__.defaultContextValue) {
|
43228
|
-
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(_context__WEBPACK_IMPORTED_MODULE_7__
|
43277
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(_context__WEBPACK_IMPORTED_MODULE_7__.Provider, props, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(InnerTable, props));
|
43229
43278
|
}
|
43230
43279
|
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(InnerTable, props);
|
43231
43280
|
};
|
43232
43281
|
Table.displayName = 'Table';
|
43233
|
-
Table.propTypes = lodash_cloneDeep__WEBPACK_IMPORTED_MODULE_1___default()(_context__WEBPACK_IMPORTED_MODULE_7__
|
43282
|
+
Table.propTypes = lodash_cloneDeep__WEBPACK_IMPORTED_MODULE_1___default()(_context__WEBPACK_IMPORTED_MODULE_7__.Provider.propTypes);
|
43234
43283
|
var InnerTable = function InnerTable(props) {
|
43235
43284
|
var _useTableContext = (0,_context__WEBPACK_IMPORTED_MODULE_7__.useTableContext)(),
|
43236
43285
|
getTableProps = _useTableContext.getTableProps,
|
@@ -44309,14 +44358,15 @@ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) r
|
|
44309
44358
|
|
44310
44359
|
|
44311
44360
|
var color = _theme__WEBPACK_IMPORTED_MODULE_7__["default"].color;
|
44312
|
-
var Toast = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().forwardRef(function (
|
44313
|
-
var type =
|
44314
|
-
children =
|
44315
|
-
onClose =
|
44316
|
-
dismissible =
|
44317
|
-
notDismissible =
|
44318
|
-
classNamePrefix =
|
44319
|
-
|
44361
|
+
var Toast = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().forwardRef(function (_ref, ref) {
|
44362
|
+
var type = _ref.type,
|
44363
|
+
children = _ref.children,
|
44364
|
+
onClose = _ref.onClose,
|
44365
|
+
dismissible = _ref.dismissible,
|
44366
|
+
notDismissible = _ref.notDismissible,
|
44367
|
+
_ref$classNamePrefix = _ref.classNamePrefix,
|
44368
|
+
classNamePrefix = _ref$classNamePrefix === void 0 ? '' : _ref$classNamePrefix,
|
44369
|
+
rest = _objectWithoutProperties(_ref, _excluded);
|
44320
44370
|
var _dismissible = dismissible || type == 'error' || type == 'warning';
|
44321
44371
|
var _notDismissible = notDismissible;
|
44322
44372
|
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(Wrapper, _extends({
|
@@ -44338,9 +44388,6 @@ var Toast = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().forwardRef
|
|
44338
44388
|
}));
|
44339
44389
|
});
|
44340
44390
|
Toast.displayName = 'Toast';
|
44341
|
-
Toast.defaultProps = {
|
44342
|
-
classNamePrefix: ''
|
44343
|
-
};
|
44344
44391
|
Toast.propTypes = {
|
44345
44392
|
type: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOf(['success', 'error', 'warning', 'info', 'generic']),
|
44346
44393
|
onClose: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().func),
|
@@ -44384,10 +44431,10 @@ var ToastIcon = function ToastIcon(props) {
|
|
44384
44431
|
size: "xs"
|
44385
44432
|
});
|
44386
44433
|
};
|
44387
|
-
var RemoveButton = function RemoveButton(
|
44388
|
-
var onClick =
|
44389
|
-
dismissible =
|
44390
|
-
classNamePrefix =
|
44434
|
+
var RemoveButton = function RemoveButton(_ref2) {
|
44435
|
+
var onClick = _ref2.onClick,
|
44436
|
+
dismissible = _ref2.dismissible,
|
44437
|
+
classNamePrefix = _ref2.classNamePrefix;
|
44391
44438
|
if (!dismissible) return null;
|
44392
44439
|
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(StyledRemoveButton, {
|
44393
44440
|
variant: "icon",
|
@@ -44396,7 +44443,6 @@ var RemoveButton = function RemoveButton(props) {
|
|
44396
44443
|
className: classNamePrefix + 'dismissButton'
|
44397
44444
|
});
|
44398
44445
|
};
|
44399
|
-
RemoveButton.defaultProps = {};
|
44400
44446
|
RemoveButton.propTypes = {
|
44401
44447
|
classNamePrefix: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string),
|
44402
44448
|
onClick: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().func),
|
@@ -44454,21 +44500,19 @@ var ToastAnimatedComp = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default(
|
|
44454
44500
|
displayName: "ToastAnimatedComp",
|
44455
44501
|
componentId: "sc-1whlqk5-0"
|
44456
44502
|
})(["display:flex;align-items:center;will-change:transform;max-width:350px;", ";"], function (props) {
|
44457
|
-
var
|
44503
|
+
var _props$$position = props.$position,
|
44504
|
+
$position = _props$$position === void 0 ? 'bottom-left' : _props$$position,
|
44458
44505
|
$visible = props.$visible;
|
44459
44506
|
var top = $position.includes('top');
|
44460
44507
|
var factor = top ? 1 : -1;
|
44461
44508
|
return $visible ? (0,styled_components__WEBPACK_IMPORTED_MODULE_4__.css)(["animation:", " 0.35s cubic-bezier(.21,1.02,.73,1) forwards;"], enterAnimation(factor)) : (0,styled_components__WEBPACK_IMPORTED_MODULE_4__.css)(["animation:", " 0.4s forwards cubic-bezier(.06,.71,.55,1)"], exitAnimation(factor));
|
44462
44509
|
}));
|
44463
|
-
ToastAnimatedComp.defaultProps = {
|
44464
|
-
$position: 'bottom-left'
|
44465
|
-
};
|
44466
44510
|
ToastAnimatedComp.propTypes = {
|
44467
44511
|
$position: prop_types__WEBPACK_IMPORTED_MODULE_1___default().oneOf(_utils__WEBPACK_IMPORTED_MODULE_5__.toastPositions),
|
44468
44512
|
$visible: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().bool)
|
44469
44513
|
};
|
44470
|
-
var ToastComp = function ToastComp(
|
44471
|
-
var toast =
|
44514
|
+
var ToastComp = function ToastComp(_ref) {
|
44515
|
+
var toast = _ref.toast;
|
44472
44516
|
var id = toast.id,
|
44473
44517
|
type = toast.type,
|
44474
44518
|
onClose = toast.onClose,
|
@@ -44550,13 +44594,17 @@ __webpack_require__.r(__webpack_exports__);
|
|
44550
44594
|
var defaultContainerStyle = {
|
44551
44595
|
inset: 24
|
44552
44596
|
};
|
44553
|
-
var Toaster = function Toaster(
|
44554
|
-
var position =
|
44555
|
-
|
44556
|
-
|
44557
|
-
|
44558
|
-
|
44559
|
-
|
44597
|
+
var Toaster = function Toaster(_ref) {
|
44598
|
+
var _ref$position = _ref.position,
|
44599
|
+
position = _ref$position === void 0 ? 'bottom-left' : _ref$position,
|
44600
|
+
_ref$maxToasts = _ref.maxToasts,
|
44601
|
+
maxToasts = _ref$maxToasts === void 0 ? 2 : _ref$maxToasts,
|
44602
|
+
_ref$idPrefix = _ref.idPrefix,
|
44603
|
+
idPrefix = _ref$idPrefix === void 0 ? 'toast' : _ref$idPrefix,
|
44604
|
+
_ref$classNamePrefix = _ref.classNamePrefix,
|
44605
|
+
classNamePrefix = _ref$classNamePrefix === void 0 ? 'toast' : _ref$classNamePrefix,
|
44606
|
+
containerStyle = _ref.containerStyle,
|
44607
|
+
children = _ref.children;
|
44560
44608
|
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_context__WEBPACK_IMPORTED_MODULE_4__.ToastContext.Provider, {
|
44561
44609
|
value: {
|
44562
44610
|
maxToasts: maxToasts,
|
@@ -44572,12 +44620,6 @@ var Toaster = function Toaster(props) {
|
|
44572
44620
|
containerStyle: containerStyle || defaultContainerStyle
|
44573
44621
|
}, _toast_item__WEBPACK_IMPORTED_MODULE_5__.ToastItem));
|
44574
44622
|
};
|
44575
|
-
Toaster.defaultProps = {
|
44576
|
-
position: 'bottom-left',
|
44577
|
-
maxToasts: 2,
|
44578
|
-
idPrefix: 'toast',
|
44579
|
-
classNamePrefix: 'toast'
|
44580
|
-
};
|
44581
44623
|
Toaster.propTypes = {
|
44582
44624
|
position: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOf(_utils__WEBPACK_IMPORTED_MODULE_3__.toastPositions),
|
44583
44625
|
maxToasts: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().number)
|
@@ -44781,15 +44823,18 @@ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
44781
44823
|
|
44782
44824
|
|
44783
44825
|
var CLOSE_DELAY = 200;
|
44784
|
-
var Tooltip = function Tooltip(
|
44785
|
-
var children =
|
44786
|
-
tooltip =
|
44787
|
-
placement =
|
44788
|
-
|
44789
|
-
|
44790
|
-
|
44791
|
-
|
44792
|
-
|
44826
|
+
var Tooltip = function Tooltip(_ref) {
|
44827
|
+
var children = _ref.children,
|
44828
|
+
tooltip = _ref.tooltip,
|
44829
|
+
_ref$placement = _ref.placement,
|
44830
|
+
placement = _ref$placement === void 0 ? 'top' : _ref$placement,
|
44831
|
+
noWrap = _ref.noWrap,
|
44832
|
+
interactive = _ref.interactive,
|
44833
|
+
_ref$trigger = _ref.trigger,
|
44834
|
+
trigger = _ref$trigger === void 0 ? 'hover' : _ref$trigger,
|
44835
|
+
className = _ref.className,
|
44836
|
+
_ref$variant = _ref.variant,
|
44837
|
+
variant = _ref$variant === void 0 ? 'black' : _ref$variant;
|
44793
44838
|
var _useState = (0,react__WEBPACK_IMPORTED_MODULE_1__.useState)(null),
|
44794
44839
|
_useState2 = _slicedToArray(_useState, 2),
|
44795
44840
|
referenceElement = _useState2[0],
|
@@ -44875,11 +44920,6 @@ var Tooltip = function Tooltip(props) {
|
|
44875
44920
|
className: className
|
44876
44921
|
}, triggerProps), children), tooltipNode);
|
44877
44922
|
};
|
44878
|
-
Tooltip.defaultProps = {
|
44879
|
-
placement: 'top',
|
44880
|
-
trigger: 'hover',
|
44881
|
-
variant: 'black'
|
44882
|
-
};
|
44883
44923
|
Tooltip.propTypes = {
|
44884
44924
|
tooltip: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().node),
|
44885
44925
|
placement: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOf(_util__WEBPACK_IMPORTED_MODULE_5__.tooltipPlacement),
|
@@ -45120,32 +45160,36 @@ __webpack_require__.r(__webpack_exports__);
|
|
45120
45160
|
|
45121
45161
|
/*jslint react:true*/
|
45122
45162
|
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); }
|
45163
|
+
var _excluded = ["variant", "children"];
|
45123
45164
|
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); }
|
45124
45165
|
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; }
|
45125
45166
|
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; }
|
45126
45167
|
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; }
|
45127
45168
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
45128
45169
|
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); }
|
45170
|
+
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; }
|
45171
|
+
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; }
|
45129
45172
|
|
45130
45173
|
|
45131
45174
|
|
45132
45175
|
|
45133
45176
|
|
45134
45177
|
|
45135
|
-
var Header = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().forwardRef(function (
|
45178
|
+
var Header = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().forwardRef(function (_ref, ref) {
|
45179
|
+
var _ref$variant = _ref.variant,
|
45180
|
+
variant = _ref$variant === void 0 ? 'xl' : _ref$variant,
|
45181
|
+
children = _ref.children,
|
45182
|
+
rest = _objectWithoutProperties(_ref, _excluded);
|
45136
45183
|
var t = (0,_translation__WEBPACK_IMPORTED_MODULE_2__.useReactTranslate)();
|
45137
|
-
var typographyProps = _objectSpread(_objectSpread({}, (0,_get_typography_props__WEBPACK_IMPORTED_MODULE_4__.getTypographyProps)(
|
45184
|
+
var typographyProps = _objectSpread(_objectSpread({}, (0,_get_typography_props__WEBPACK_IMPORTED_MODULE_4__.getTypographyProps)(rest)), {}, {
|
45138
45185
|
font_weight: 'semibold',
|
45139
|
-
font_size:
|
45186
|
+
font_size: variant == '2xl' ? 'xl' : 'lg'
|
45140
45187
|
});
|
45141
45188
|
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_typography__WEBPACK_IMPORTED_MODULE_5__["default"], _extends({
|
45142
45189
|
ref: ref
|
45143
|
-
}, typographyProps), t(
|
45190
|
+
}, typographyProps), t(children));
|
45144
45191
|
});
|
45145
45192
|
Header.displayName = 'Header';
|
45146
|
-
Header.defaultProps = {
|
45147
|
-
variant: 'xl'
|
45148
|
-
};
|
45149
45193
|
Header.propTypes = {
|
45150
45194
|
variant: prop_types__WEBPACK_IMPORTED_MODULE_1___default().oneOf(['xl', '2xl']),
|
45151
45195
|
whiteSpace: prop_types__WEBPACK_IMPORTED_MODULE_1___default().oneOf(_constant__WEBPACK_IMPORTED_MODULE_3__.WHITE_SPACES)
|
@@ -45178,33 +45222,37 @@ __webpack_require__.r(__webpack_exports__);
|
|
45178
45222
|
|
45179
45223
|
/*jslint react:true*/
|
45180
45224
|
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); }
|
45225
|
+
var _excluded = ["variant", "children"];
|
45181
45226
|
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); }
|
45182
45227
|
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; }
|
45183
45228
|
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; }
|
45184
45229
|
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; }
|
45185
45230
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
45186
45231
|
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); }
|
45232
|
+
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; }
|
45233
|
+
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
45234
|
|
45188
45235
|
|
45189
45236
|
|
45190
45237
|
|
45191
45238
|
|
45192
45239
|
|
45193
|
-
var Hyperlink = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().forwardRef(function (
|
45240
|
+
var Hyperlink = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().forwardRef(function (_ref, ref) {
|
45241
|
+
var _ref$variant = _ref.variant,
|
45242
|
+
variant = _ref$variant === void 0 ? 'lg' : _ref$variant,
|
45243
|
+
children = _ref.children,
|
45244
|
+
rest = _objectWithoutProperties(_ref, _excluded);
|
45194
45245
|
var t = (0,_translation__WEBPACK_IMPORTED_MODULE_2__.useReactTranslate)();
|
45195
|
-
var typographyProps = _objectSpread(_objectSpread({}, (0,_get_typography_props__WEBPACK_IMPORTED_MODULE_4__.getTypographyProps)(
|
45196
|
-
font_size:
|
45246
|
+
var typographyProps = _objectSpread(_objectSpread({}, (0,_get_typography_props__WEBPACK_IMPORTED_MODULE_4__.getTypographyProps)(rest)), {}, {
|
45247
|
+
font_size: variant == 'lg' ? 'md' : 'xs',
|
45197
45248
|
line_height: 'none',
|
45198
45249
|
underline: true
|
45199
45250
|
});
|
45200
45251
|
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_typography__WEBPACK_IMPORTED_MODULE_5__["default"], _extends({
|
45201
45252
|
ref: ref
|
45202
|
-
}, typographyProps), t(
|
45253
|
+
}, typographyProps), t(children));
|
45203
45254
|
});
|
45204
45255
|
Hyperlink.displayName = 'Hyperlink';
|
45205
|
-
Hyperlink.defaultProps = {
|
45206
|
-
variant: 'lg'
|
45207
|
-
};
|
45208
45256
|
Hyperlink.propTypes = {
|
45209
45257
|
variant: prop_types__WEBPACK_IMPORTED_MODULE_1___default().oneOf(['xs', 'lg']),
|
45210
45258
|
whiteSpace: prop_types__WEBPACK_IMPORTED_MODULE_1___default().oneOf(_constant__WEBPACK_IMPORTED_MODULE_3__.WHITE_SPACES)
|
@@ -45270,40 +45318,44 @@ __webpack_require__.r(__webpack_exports__);
|
|
45270
45318
|
|
45271
45319
|
/*jslint react:true*/
|
45272
45320
|
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); }
|
45321
|
+
var _excluded = ["variant", "children"];
|
45273
45322
|
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); }
|
45274
45323
|
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; }
|
45275
45324
|
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; }
|
45276
45325
|
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; }
|
45277
45326
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
45278
45327
|
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); }
|
45328
|
+
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; }
|
45329
|
+
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; }
|
45279
45330
|
|
45280
45331
|
|
45281
45332
|
|
45282
45333
|
|
45283
45334
|
|
45284
45335
|
|
45285
|
-
var Label = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().forwardRef(function (
|
45336
|
+
var Label = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().forwardRef(function (_ref, ref) {
|
45337
|
+
var _ref$variant = _ref.variant,
|
45338
|
+
variant = _ref$variant === void 0 ? 'base' : _ref$variant,
|
45339
|
+
children = _ref.children,
|
45340
|
+
rest = _objectWithoutProperties(_ref, _excluded);
|
45286
45341
|
var t = (0,_translation__WEBPACK_IMPORTED_MODULE_2__.useReactTranslate)();
|
45287
|
-
var typographyProps = _objectSpread(_objectSpread({}, (0,_get_typography_props__WEBPACK_IMPORTED_MODULE_4__.getTypographyProps)(
|
45342
|
+
var typographyProps = _objectSpread(_objectSpread({}, (0,_get_typography_props__WEBPACK_IMPORTED_MODULE_4__.getTypographyProps)(rest)), {}, {
|
45288
45343
|
font_size: {
|
45289
45344
|
xxs: 'xxs',
|
45290
45345
|
xs: 'xs',
|
45291
45346
|
sm: 'sm',
|
45292
45347
|
sm_medium: 'sm'
|
45293
|
-
}[
|
45348
|
+
}[variant] || 'md',
|
45294
45349
|
font_weight: {
|
45295
45350
|
lg: 'semibold',
|
45296
45351
|
sm_medium: 'medium'
|
45297
|
-
}[
|
45352
|
+
}[variant] || 'regular'
|
45298
45353
|
});
|
45299
45354
|
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_typography__WEBPACK_IMPORTED_MODULE_5__["default"], _extends({
|
45300
45355
|
ref: ref
|
45301
|
-
}, typographyProps), t(
|
45356
|
+
}, typographyProps), t(children));
|
45302
45357
|
});
|
45303
45358
|
Label.displayName = 'Label';
|
45304
|
-
Label.defaultProps = {
|
45305
|
-
variant: 'base'
|
45306
|
-
};
|
45307
45359
|
Label.propTypes = {
|
45308
45360
|
variant: prop_types__WEBPACK_IMPORTED_MODULE_1___default().oneOf(['xxs', 'xs', 'sm', 'sm_medium', 'base', 'lg']),
|
45309
45361
|
whiteSpace: prop_types__WEBPACK_IMPORTED_MODULE_1___default().oneOf(_constant__WEBPACK_IMPORTED_MODULE_3__.WHITE_SPACES)
|
@@ -45336,39 +45388,43 @@ __webpack_require__.r(__webpack_exports__);
|
|
45336
45388
|
|
45337
45389
|
/*jslint react:true*/
|
45338
45390
|
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); }
|
45391
|
+
var _excluded = ["variant", "children"];
|
45339
45392
|
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); }
|
45340
45393
|
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; }
|
45341
45394
|
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; }
|
45342
45395
|
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; }
|
45343
45396
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
45344
45397
|
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); }
|
45398
|
+
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; }
|
45399
|
+
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; }
|
45345
45400
|
|
45346
45401
|
|
45347
45402
|
|
45348
45403
|
|
45349
45404
|
|
45350
45405
|
|
45351
|
-
var Paragraph = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().forwardRef(function (
|
45406
|
+
var Paragraph = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().forwardRef(function (_ref, ref) {
|
45407
|
+
var _ref$variant = _ref.variant,
|
45408
|
+
variant = _ref$variant === void 0 ? 'lg_snug' : _ref$variant,
|
45409
|
+
children = _ref.children,
|
45410
|
+
rest = _objectWithoutProperties(_ref, _excluded);
|
45352
45411
|
var t = (0,_translation__WEBPACK_IMPORTED_MODULE_2__.useReactTranslate)();
|
45353
|
-
var typographyProps = _objectSpread(_objectSpread({}, (0,_get_typography_props__WEBPACK_IMPORTED_MODULE_4__.getTypographyProps)(
|
45412
|
+
var typographyProps = _objectSpread(_objectSpread({}, (0,_get_typography_props__WEBPACK_IMPORTED_MODULE_4__.getTypographyProps)(rest)), {}, {
|
45354
45413
|
font_size: {
|
45355
45414
|
xxs: 'xxs',
|
45356
45415
|
xs: 'xs',
|
45357
45416
|
sm: 'sm'
|
45358
|
-
}[
|
45417
|
+
}[variant] || 'md',
|
45359
45418
|
line_height: {
|
45360
45419
|
xs: 'loose',
|
45361
45420
|
'lg_loose': 'loose'
|
45362
|
-
}[
|
45421
|
+
}[variant] || 'snug'
|
45363
45422
|
});
|
45364
45423
|
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_typography__WEBPACK_IMPORTED_MODULE_5__["default"], _extends({
|
45365
45424
|
ref: ref
|
45366
|
-
}, typographyProps), t(
|
45425
|
+
}, typographyProps), t(children));
|
45367
45426
|
});
|
45368
45427
|
Paragraph.displayName = 'Paragraph';
|
45369
|
-
Paragraph.defaultProps = {
|
45370
|
-
variant: 'lg_snug'
|
45371
|
-
};
|
45372
45428
|
Paragraph.propTypes = {
|
45373
45429
|
variant: prop_types__WEBPACK_IMPORTED_MODULE_1___default().oneOf(['xxs', 'xs', 'sm', 'lg_snug', 'lg_loose']),
|
45374
45430
|
whiteSpace: prop_types__WEBPACK_IMPORTED_MODULE_1___default().oneOf(_constant__WEBPACK_IMPORTED_MODULE_3__.WHITE_SPACES)
|
@@ -45400,20 +45456,26 @@ __webpack_require__.r(__webpack_exports__);
|
|
45400
45456
|
|
45401
45457
|
/*jslint react:true*/
|
45402
45458
|
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); }
|
45459
|
+
var _excluded = ["children", "variant"];
|
45403
45460
|
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); }
|
45404
45461
|
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; }
|
45405
45462
|
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; }
|
45406
45463
|
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; }
|
45407
45464
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
45408
45465
|
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); }
|
45466
|
+
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; }
|
45467
|
+
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; }
|
45409
45468
|
|
45410
45469
|
|
45411
45470
|
|
45412
45471
|
|
45413
45472
|
|
45414
|
-
var Style = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().forwardRef(function (
|
45415
|
-
var children =
|
45416
|
-
|
45473
|
+
var Style = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().forwardRef(function (_ref, ref) {
|
45474
|
+
var children = _ref.children,
|
45475
|
+
_ref$variant = _ref.variant,
|
45476
|
+
variant = _ref$variant === void 0 ? 'italic_lg' : _ref$variant,
|
45477
|
+
rest = _objectWithoutProperties(_ref, _excluded);
|
45478
|
+
var typographyProps = _objectSpread(_objectSpread({}, (0,_get_typography_props__WEBPACK_IMPORTED_MODULE_3__.getTypographyProps)(rest)), {}, {
|
45417
45479
|
font_size: {
|
45418
45480
|
italic_sm: 'sm',
|
45419
45481
|
italic_xs: 'xs',
|
@@ -45423,20 +45485,17 @@ var Style = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().forwardRef
|
|
45423
45485
|
capitals: 'xs',
|
45424
45486
|
capitals_xs: 'xs',
|
45425
45487
|
capitals_xxs: 'xxs'
|
45426
|
-
}[
|
45427
|
-
line_height: ['italic_lg', 'italic_sm'].includes(
|
45428
|
-
font_family: ['code', 'code_sm', 'code_xxs'].includes(
|
45429
|
-
italic: ['italic_lg', 'italic_sm', 'italic_xs'].includes(
|
45430
|
-
uppercase: ['capitals', 'capitals_xs', 'capitals_xxs'].includes(
|
45488
|
+
}[variant] || 'md',
|
45489
|
+
line_height: ['italic_lg', 'italic_sm'].includes(variant) ? 'snug' : 'none',
|
45490
|
+
font_family: ['code', 'code_sm', 'code_xxs'].includes(variant) ? 'mono' : 'sans',
|
45491
|
+
italic: ['italic_lg', 'italic_sm', 'italic_xs'].includes(variant),
|
45492
|
+
uppercase: ['capitals', 'capitals_xs', 'capitals_xxs'].includes(variant)
|
45431
45493
|
});
|
45432
45494
|
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_typography__WEBPACK_IMPORTED_MODULE_4__["default"], _extends({
|
45433
45495
|
ref: ref
|
45434
45496
|
}, typographyProps), children);
|
45435
45497
|
});
|
45436
45498
|
Style.displayName = 'Style';
|
45437
|
-
Style.defaultProps = {
|
45438
|
-
variant: 'italic_lg'
|
45439
|
-
};
|
45440
45499
|
Style.propTypes = {
|
45441
45500
|
variant: prop_types__WEBPACK_IMPORTED_MODULE_1___default().oneOf(['italic_lg', 'italic_sm', 'italic_xs', 'code_sm', 'code_xxs', 'capitals_xs', 'capitals_xxs']),
|
45442
45501
|
whiteSpace: prop_types__WEBPACK_IMPORTED_MODULE_1___default().oneOf(_constant__WEBPACK_IMPORTED_MODULE_2__.WHITE_SPACES)
|
@@ -81462,7 +81521,8 @@ const areBoundsEqual = (a, b) => keys.every(key => a[key] === b[key]);
|
|
81462
81521
|
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
81463
81522
|
|
81464
81523
|
"use strict";
|
81465
|
-
/**
|
81524
|
+
/**
|
81525
|
+
* @license React
|
81466
81526
|
* react-jsx-runtime.development.js
|
81467
81527
|
*
|
81468
81528
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
@@ -81482,54 +81542,21 @@ var React = __webpack_require__(/*! react */ "react");
|
|
81482
81542
|
// ATTENTION
|
81483
81543
|
// When adding new symbols to this file,
|
81484
81544
|
// Please consider also adding to 'react-devtools-shared/src/backend/ReactSymbols'
|
81485
|
-
// The Symbol used to tag the ReactElement-like types.
|
81486
|
-
|
81487
|
-
var
|
81488
|
-
var
|
81489
|
-
|
81490
|
-
var
|
81491
|
-
var
|
81492
|
-
var
|
81493
|
-
var
|
81494
|
-
var
|
81495
|
-
var
|
81496
|
-
var
|
81497
|
-
var
|
81498
|
-
var
|
81499
|
-
var
|
81500
|
-
var REACT_SERVER_BLOCK_TYPE = 0xeada;
|
81501
|
-
var REACT_FUNDAMENTAL_TYPE = 0xead5;
|
81502
|
-
var REACT_SCOPE_TYPE = 0xead7;
|
81503
|
-
var REACT_OPAQUE_ID_TYPE = 0xeae0;
|
81504
|
-
var REACT_DEBUG_TRACING_MODE_TYPE = 0xeae1;
|
81505
|
-
var REACT_OFFSCREEN_TYPE = 0xeae2;
|
81506
|
-
var REACT_LEGACY_HIDDEN_TYPE = 0xeae3;
|
81507
|
-
|
81508
|
-
if (typeof Symbol === 'function' && Symbol.for) {
|
81509
|
-
var symbolFor = Symbol.for;
|
81510
|
-
REACT_ELEMENT_TYPE = symbolFor('react.element');
|
81511
|
-
REACT_PORTAL_TYPE = symbolFor('react.portal');
|
81512
|
-
exports.Fragment = symbolFor('react.fragment');
|
81513
|
-
REACT_STRICT_MODE_TYPE = symbolFor('react.strict_mode');
|
81514
|
-
REACT_PROFILER_TYPE = symbolFor('react.profiler');
|
81515
|
-
REACT_PROVIDER_TYPE = symbolFor('react.provider');
|
81516
|
-
REACT_CONTEXT_TYPE = symbolFor('react.context');
|
81517
|
-
REACT_FORWARD_REF_TYPE = symbolFor('react.forward_ref');
|
81518
|
-
REACT_SUSPENSE_TYPE = symbolFor('react.suspense');
|
81519
|
-
REACT_SUSPENSE_LIST_TYPE = symbolFor('react.suspense_list');
|
81520
|
-
REACT_MEMO_TYPE = symbolFor('react.memo');
|
81521
|
-
REACT_LAZY_TYPE = symbolFor('react.lazy');
|
81522
|
-
REACT_BLOCK_TYPE = symbolFor('react.block');
|
81523
|
-
REACT_SERVER_BLOCK_TYPE = symbolFor('react.server.block');
|
81524
|
-
REACT_FUNDAMENTAL_TYPE = symbolFor('react.fundamental');
|
81525
|
-
REACT_SCOPE_TYPE = symbolFor('react.scope');
|
81526
|
-
REACT_OPAQUE_ID_TYPE = symbolFor('react.opaque.id');
|
81527
|
-
REACT_DEBUG_TRACING_MODE_TYPE = symbolFor('react.debug_trace_mode');
|
81528
|
-
REACT_OFFSCREEN_TYPE = symbolFor('react.offscreen');
|
81529
|
-
REACT_LEGACY_HIDDEN_TYPE = symbolFor('react.legacy_hidden');
|
81530
|
-
}
|
81531
|
-
|
81532
|
-
var MAYBE_ITERATOR_SYMBOL = typeof Symbol === 'function' && Symbol.iterator;
|
81545
|
+
// The Symbol used to tag the ReactElement-like types.
|
81546
|
+
var REACT_ELEMENT_TYPE = Symbol.for('react.element');
|
81547
|
+
var REACT_PORTAL_TYPE = Symbol.for('react.portal');
|
81548
|
+
var REACT_FRAGMENT_TYPE = Symbol.for('react.fragment');
|
81549
|
+
var REACT_STRICT_MODE_TYPE = Symbol.for('react.strict_mode');
|
81550
|
+
var REACT_PROFILER_TYPE = Symbol.for('react.profiler');
|
81551
|
+
var REACT_PROVIDER_TYPE = Symbol.for('react.provider');
|
81552
|
+
var REACT_CONTEXT_TYPE = Symbol.for('react.context');
|
81553
|
+
var REACT_FORWARD_REF_TYPE = Symbol.for('react.forward_ref');
|
81554
|
+
var REACT_SUSPENSE_TYPE = Symbol.for('react.suspense');
|
81555
|
+
var REACT_SUSPENSE_LIST_TYPE = Symbol.for('react.suspense_list');
|
81556
|
+
var REACT_MEMO_TYPE = Symbol.for('react.memo');
|
81557
|
+
var REACT_LAZY_TYPE = Symbol.for('react.lazy');
|
81558
|
+
var REACT_OFFSCREEN_TYPE = Symbol.for('react.offscreen');
|
81559
|
+
var MAYBE_ITERATOR_SYMBOL = Symbol.iterator;
|
81533
81560
|
var FAUX_ITERATOR_SYMBOL = '@@iterator';
|
81534
81561
|
function getIteratorFn(maybeIterable) {
|
81535
81562
|
if (maybeIterable === null || typeof maybeIterable !== 'object') {
|
@@ -81549,11 +81576,13 @@ var ReactSharedInternals = React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FI
|
|
81549
81576
|
|
81550
81577
|
function error(format) {
|
81551
81578
|
{
|
81552
|
-
|
81553
|
-
args
|
81554
|
-
|
81579
|
+
{
|
81580
|
+
for (var _len2 = arguments.length, args = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
|
81581
|
+
args[_key2 - 1] = arguments[_key2];
|
81582
|
+
}
|
81555
81583
|
|
81556
|
-
|
81584
|
+
printWarning('error', format, args);
|
81585
|
+
}
|
81557
81586
|
}
|
81558
81587
|
}
|
81559
81588
|
|
@@ -81562,23 +81591,16 @@ function printWarning(level, format, args) {
|
|
81562
81591
|
// update consoleWithStackDev.www.js as well.
|
81563
81592
|
{
|
81564
81593
|
var ReactDebugCurrentFrame = ReactSharedInternals.ReactDebugCurrentFrame;
|
81565
|
-
var stack =
|
81566
|
-
|
81567
|
-
if (currentlyValidatingElement) {
|
81568
|
-
var name = getComponentName(currentlyValidatingElement.type);
|
81569
|
-
var owner = currentlyValidatingElement._owner;
|
81570
|
-
stack += describeComponentFrame(name, currentlyValidatingElement._source, owner && getComponentName(owner.type));
|
81571
|
-
}
|
81572
|
-
|
81573
|
-
stack += ReactDebugCurrentFrame.getStackAddendum();
|
81594
|
+
var stack = ReactDebugCurrentFrame.getStackAddendum();
|
81574
81595
|
|
81575
81596
|
if (stack !== '') {
|
81576
81597
|
format += '%s';
|
81577
81598
|
args = args.concat([stack]);
|
81578
|
-
}
|
81599
|
+
} // eslint-disable-next-line react-internal/safe-string-coercion
|
81600
|
+
|
81579
81601
|
|
81580
81602
|
var argsWithFormat = args.map(function (item) {
|
81581
|
-
return
|
81603
|
+
return String(item);
|
81582
81604
|
}); // Careful: RN currently depends on this prefix
|
81583
81605
|
|
81584
81606
|
argsWithFormat.unshift('Warning: ' + format); // We intentionally don't use spread (or .apply) directly because it
|
@@ -81589,9 +81611,23 @@ function printWarning(level, format, args) {
|
|
81589
81611
|
}
|
81590
81612
|
}
|
81591
81613
|
|
81592
|
-
//
|
81614
|
+
// -----------------------------------------------------------------------------
|
81593
81615
|
|
81594
81616
|
var enableScopeAPI = false; // Experimental Create Event Handle API.
|
81617
|
+
var enableCacheElement = false;
|
81618
|
+
var enableTransitionTracing = false; // No known bugs, but needs performance testing
|
81619
|
+
|
81620
|
+
var enableLegacyHidden = false; // Enables unstable_avoidThisFallback feature in Fiber
|
81621
|
+
// stuff. Intended to enable React core members to more easily debug scheduling
|
81622
|
+
// issues in DEV builds.
|
81623
|
+
|
81624
|
+
var enableDebugTracing = false; // Track which Fiber(s) schedule render work.
|
81625
|
+
|
81626
|
+
var REACT_MODULE_REFERENCE;
|
81627
|
+
|
81628
|
+
{
|
81629
|
+
REACT_MODULE_REFERENCE = Symbol.for('react.module.reference');
|
81630
|
+
}
|
81595
81631
|
|
81596
81632
|
function isValidElementType(type) {
|
81597
81633
|
if (typeof type === 'string' || typeof type === 'function') {
|
@@ -81599,12 +81635,16 @@ function isValidElementType(type) {
|
|
81599
81635
|
} // Note: typeof might be other than 'symbol' or 'number' (e.g. if it's a polyfill).
|
81600
81636
|
|
81601
81637
|
|
81602
|
-
if (type ===
|
81638
|
+
if (type === REACT_FRAGMENT_TYPE || type === REACT_PROFILER_TYPE || enableDebugTracing || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || enableLegacyHidden || type === REACT_OFFSCREEN_TYPE || enableScopeAPI || enableCacheElement || enableTransitionTracing ) {
|
81603
81639
|
return true;
|
81604
81640
|
}
|
81605
81641
|
|
81606
81642
|
if (typeof type === 'object' && type !== null) {
|
81607
|
-
if (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE ||
|
81643
|
+
if (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || // This needs to include all possible module reference object
|
81644
|
+
// types supported by any Flight configuration anywhere since
|
81645
|
+
// we don't know which Flight build this will end up being used
|
81646
|
+
// with.
|
81647
|
+
type.$$typeof === REACT_MODULE_REFERENCE || type.getModuleId !== undefined) {
|
81608
81648
|
return true;
|
81609
81649
|
}
|
81610
81650
|
}
|
@@ -81612,51 +81652,24 @@ function isValidElementType(type) {
|
|
81612
81652
|
return false;
|
81613
81653
|
}
|
81614
81654
|
|
81655
|
+
function getWrappedName(outerType, innerType, wrapperName) {
|
81656
|
+
var displayName = outerType.displayName;
|
81615
81657
|
|
81616
|
-
|
81617
|
-
|
81618
|
-
var sourceInfo = '';
|
81619
|
-
|
81620
|
-
if (source) {
|
81621
|
-
var path = source.fileName;
|
81622
|
-
var fileName = path.replace(BEFORE_SLASH_RE, '');
|
81623
|
-
|
81624
|
-
{
|
81625
|
-
// In DEV, include code for a common special case:
|
81626
|
-
// prefer "folder/index.js" instead of just "index.js".
|
81627
|
-
if (/^index\./.test(fileName)) {
|
81628
|
-
var match = path.match(BEFORE_SLASH_RE);
|
81629
|
-
|
81630
|
-
if (match) {
|
81631
|
-
var pathBeforeSlash = match[1];
|
81632
|
-
|
81633
|
-
if (pathBeforeSlash) {
|
81634
|
-
var folderName = pathBeforeSlash.replace(BEFORE_SLASH_RE, '');
|
81635
|
-
fileName = folderName + '/' + fileName;
|
81636
|
-
}
|
81637
|
-
}
|
81638
|
-
}
|
81639
|
-
}
|
81640
|
-
|
81641
|
-
sourceInfo = ' (at ' + fileName + ':' + source.lineNumber + ')';
|
81642
|
-
} else if (ownerName) {
|
81643
|
-
sourceInfo = ' (created by ' + ownerName + ')';
|
81658
|
+
if (displayName) {
|
81659
|
+
return displayName;
|
81644
81660
|
}
|
81645
81661
|
|
81646
|
-
|
81647
|
-
|
81662
|
+
var functionName = innerType.displayName || innerType.name || '';
|
81663
|
+
return functionName !== '' ? wrapperName + "(" + functionName + ")" : wrapperName;
|
81664
|
+
} // Keep in sync with react-reconciler/getComponentNameFromFiber
|
81648
81665
|
|
81649
|
-
var Resolved = 1;
|
81650
|
-
function refineResolvedLazyComponent(lazyComponent) {
|
81651
|
-
return lazyComponent._status === Resolved ? lazyComponent._result : null;
|
81652
|
-
}
|
81653
81666
|
|
81654
|
-
function
|
81655
|
-
|
81656
|
-
|
81657
|
-
}
|
81667
|
+
function getContextName(type) {
|
81668
|
+
return type.displayName || 'Context';
|
81669
|
+
} // Note that the reconciler package should generally prefer to use getComponentNameFromFiber() instead.
|
81658
81670
|
|
81659
|
-
|
81671
|
+
|
81672
|
+
function getComponentNameFromType(type) {
|
81660
81673
|
if (type == null) {
|
81661
81674
|
// Host root, text node or just invalid type.
|
81662
81675
|
return null;
|
@@ -81664,7 +81677,7 @@ function getComponentName(type) {
|
|
81664
81677
|
|
81665
81678
|
{
|
81666
81679
|
if (typeof type.tag === 'number') {
|
81667
|
-
error('Received an unexpected object in
|
81680
|
+
error('Received an unexpected object in getComponentNameFromType(). ' + 'This is likely a bug in React. Please file an issue.');
|
81668
81681
|
}
|
81669
81682
|
}
|
81670
81683
|
|
@@ -81677,14 +81690,14 @@ function getComponentName(type) {
|
|
81677
81690
|
}
|
81678
81691
|
|
81679
81692
|
switch (type) {
|
81680
|
-
case
|
81693
|
+
case REACT_FRAGMENT_TYPE:
|
81681
81694
|
return 'Fragment';
|
81682
81695
|
|
81683
81696
|
case REACT_PORTAL_TYPE:
|
81684
81697
|
return 'Portal';
|
81685
81698
|
|
81686
81699
|
case REACT_PROFILER_TYPE:
|
81687
|
-
return
|
81700
|
+
return 'Profiler';
|
81688
81701
|
|
81689
81702
|
case REACT_STRICT_MODE_TYPE:
|
81690
81703
|
return 'StrictMode';
|
@@ -81694,56 +81707,414 @@ function getComponentName(type) {
|
|
81694
81707
|
|
81695
81708
|
case REACT_SUSPENSE_LIST_TYPE:
|
81696
81709
|
return 'SuspenseList';
|
81710
|
+
|
81697
81711
|
}
|
81698
81712
|
|
81699
81713
|
if (typeof type === 'object') {
|
81700
81714
|
switch (type.$$typeof) {
|
81701
81715
|
case REACT_CONTEXT_TYPE:
|
81702
|
-
|
81716
|
+
var context = type;
|
81717
|
+
return getContextName(context) + '.Consumer';
|
81703
81718
|
|
81704
81719
|
case REACT_PROVIDER_TYPE:
|
81705
|
-
|
81720
|
+
var provider = type;
|
81721
|
+
return getContextName(provider._context) + '.Provider';
|
81706
81722
|
|
81707
81723
|
case REACT_FORWARD_REF_TYPE:
|
81708
81724
|
return getWrappedName(type, type.render, 'ForwardRef');
|
81709
81725
|
|
81710
81726
|
case REACT_MEMO_TYPE:
|
81711
|
-
|
81727
|
+
var outerName = type.displayName || null;
|
81728
|
+
|
81729
|
+
if (outerName !== null) {
|
81730
|
+
return outerName;
|
81731
|
+
}
|
81712
81732
|
|
81713
|
-
|
81714
|
-
return getComponentName(type.render);
|
81733
|
+
return getComponentNameFromType(type.type) || 'Memo';
|
81715
81734
|
|
81716
81735
|
case REACT_LAZY_TYPE:
|
81717
81736
|
{
|
81718
|
-
var
|
81719
|
-
var
|
81737
|
+
var lazyComponent = type;
|
81738
|
+
var payload = lazyComponent._payload;
|
81739
|
+
var init = lazyComponent._init;
|
81740
|
+
|
81741
|
+
try {
|
81742
|
+
return getComponentNameFromType(init(payload));
|
81743
|
+
} catch (x) {
|
81744
|
+
return null;
|
81745
|
+
}
|
81746
|
+
}
|
81747
|
+
|
81748
|
+
// eslint-disable-next-line no-fallthrough
|
81749
|
+
}
|
81750
|
+
}
|
81751
|
+
|
81752
|
+
return null;
|
81753
|
+
}
|
81754
|
+
|
81755
|
+
var assign = Object.assign;
|
81756
|
+
|
81757
|
+
// Helpers to patch console.logs to avoid logging during side-effect free
|
81758
|
+
// replaying on render function. This currently only patches the object
|
81759
|
+
// lazily which won't cover if the log function was extracted eagerly.
|
81760
|
+
// We could also eagerly patch the method.
|
81761
|
+
var disabledDepth = 0;
|
81762
|
+
var prevLog;
|
81763
|
+
var prevInfo;
|
81764
|
+
var prevWarn;
|
81765
|
+
var prevError;
|
81766
|
+
var prevGroup;
|
81767
|
+
var prevGroupCollapsed;
|
81768
|
+
var prevGroupEnd;
|
81769
|
+
|
81770
|
+
function disabledLog() {}
|
81771
|
+
|
81772
|
+
disabledLog.__reactDisabledLog = true;
|
81773
|
+
function disableLogs() {
|
81774
|
+
{
|
81775
|
+
if (disabledDepth === 0) {
|
81776
|
+
/* eslint-disable react-internal/no-production-logging */
|
81777
|
+
prevLog = console.log;
|
81778
|
+
prevInfo = console.info;
|
81779
|
+
prevWarn = console.warn;
|
81780
|
+
prevError = console.error;
|
81781
|
+
prevGroup = console.group;
|
81782
|
+
prevGroupCollapsed = console.groupCollapsed;
|
81783
|
+
prevGroupEnd = console.groupEnd; // https://github.com/facebook/react/issues/19099
|
81784
|
+
|
81785
|
+
var props = {
|
81786
|
+
configurable: true,
|
81787
|
+
enumerable: true,
|
81788
|
+
value: disabledLog,
|
81789
|
+
writable: true
|
81790
|
+
}; // $FlowFixMe Flow thinks console is immutable.
|
81791
|
+
|
81792
|
+
Object.defineProperties(console, {
|
81793
|
+
info: props,
|
81794
|
+
log: props,
|
81795
|
+
warn: props,
|
81796
|
+
error: props,
|
81797
|
+
group: props,
|
81798
|
+
groupCollapsed: props,
|
81799
|
+
groupEnd: props
|
81800
|
+
});
|
81801
|
+
/* eslint-enable react-internal/no-production-logging */
|
81802
|
+
}
|
81803
|
+
|
81804
|
+
disabledDepth++;
|
81805
|
+
}
|
81806
|
+
}
|
81807
|
+
function reenableLogs() {
|
81808
|
+
{
|
81809
|
+
disabledDepth--;
|
81810
|
+
|
81811
|
+
if (disabledDepth === 0) {
|
81812
|
+
/* eslint-disable react-internal/no-production-logging */
|
81813
|
+
var props = {
|
81814
|
+
configurable: true,
|
81815
|
+
enumerable: true,
|
81816
|
+
writable: true
|
81817
|
+
}; // $FlowFixMe Flow thinks console is immutable.
|
81818
|
+
|
81819
|
+
Object.defineProperties(console, {
|
81820
|
+
log: assign({}, props, {
|
81821
|
+
value: prevLog
|
81822
|
+
}),
|
81823
|
+
info: assign({}, props, {
|
81824
|
+
value: prevInfo
|
81825
|
+
}),
|
81826
|
+
warn: assign({}, props, {
|
81827
|
+
value: prevWarn
|
81828
|
+
}),
|
81829
|
+
error: assign({}, props, {
|
81830
|
+
value: prevError
|
81831
|
+
}),
|
81832
|
+
group: assign({}, props, {
|
81833
|
+
value: prevGroup
|
81834
|
+
}),
|
81835
|
+
groupCollapsed: assign({}, props, {
|
81836
|
+
value: prevGroupCollapsed
|
81837
|
+
}),
|
81838
|
+
groupEnd: assign({}, props, {
|
81839
|
+
value: prevGroupEnd
|
81840
|
+
})
|
81841
|
+
});
|
81842
|
+
/* eslint-enable react-internal/no-production-logging */
|
81843
|
+
}
|
81844
|
+
|
81845
|
+
if (disabledDepth < 0) {
|
81846
|
+
error('disabledDepth fell below zero. ' + 'This is a bug in React. Please file an issue.');
|
81847
|
+
}
|
81848
|
+
}
|
81849
|
+
}
|
81720
81850
|
|
81721
|
-
|
81722
|
-
|
81851
|
+
var ReactCurrentDispatcher = ReactSharedInternals.ReactCurrentDispatcher;
|
81852
|
+
var prefix;
|
81853
|
+
function describeBuiltInComponentFrame(name, source, ownerFn) {
|
81854
|
+
{
|
81855
|
+
if (prefix === undefined) {
|
81856
|
+
// Extract the VM specific prefix used by each line.
|
81857
|
+
try {
|
81858
|
+
throw Error();
|
81859
|
+
} catch (x) {
|
81860
|
+
var match = x.stack.trim().match(/\n( *(at )?)/);
|
81861
|
+
prefix = match && match[1] || '';
|
81862
|
+
}
|
81863
|
+
} // We use the prefix to ensure our stacks line up with native stack frames.
|
81864
|
+
|
81865
|
+
|
81866
|
+
return '\n' + prefix + name;
|
81867
|
+
}
|
81868
|
+
}
|
81869
|
+
var reentry = false;
|
81870
|
+
var componentFrameCache;
|
81871
|
+
|
81872
|
+
{
|
81873
|
+
var PossiblyWeakMap = typeof WeakMap === 'function' ? WeakMap : Map;
|
81874
|
+
componentFrameCache = new PossiblyWeakMap();
|
81875
|
+
}
|
81876
|
+
|
81877
|
+
function describeNativeComponentFrame(fn, construct) {
|
81878
|
+
// If something asked for a stack inside a fake render, it should get ignored.
|
81879
|
+
if ( !fn || reentry) {
|
81880
|
+
return '';
|
81881
|
+
}
|
81882
|
+
|
81883
|
+
{
|
81884
|
+
var frame = componentFrameCache.get(fn);
|
81885
|
+
|
81886
|
+
if (frame !== undefined) {
|
81887
|
+
return frame;
|
81888
|
+
}
|
81889
|
+
}
|
81890
|
+
|
81891
|
+
var control;
|
81892
|
+
reentry = true;
|
81893
|
+
var previousPrepareStackTrace = Error.prepareStackTrace; // $FlowFixMe It does accept undefined.
|
81894
|
+
|
81895
|
+
Error.prepareStackTrace = undefined;
|
81896
|
+
var previousDispatcher;
|
81897
|
+
|
81898
|
+
{
|
81899
|
+
previousDispatcher = ReactCurrentDispatcher.current; // Set the dispatcher in DEV because this might be call in the render function
|
81900
|
+
// for warnings.
|
81901
|
+
|
81902
|
+
ReactCurrentDispatcher.current = null;
|
81903
|
+
disableLogs();
|
81904
|
+
}
|
81905
|
+
|
81906
|
+
try {
|
81907
|
+
// This should throw.
|
81908
|
+
if (construct) {
|
81909
|
+
// Something should be setting the props in the constructor.
|
81910
|
+
var Fake = function () {
|
81911
|
+
throw Error();
|
81912
|
+
}; // $FlowFixMe
|
81913
|
+
|
81914
|
+
|
81915
|
+
Object.defineProperty(Fake.prototype, 'props', {
|
81916
|
+
set: function () {
|
81917
|
+
// We use a throwing setter instead of frozen or non-writable props
|
81918
|
+
// because that won't throw in a non-strict mode function.
|
81919
|
+
throw Error();
|
81920
|
+
}
|
81921
|
+
});
|
81922
|
+
|
81923
|
+
if (typeof Reflect === 'object' && Reflect.construct) {
|
81924
|
+
// We construct a different control for this case to include any extra
|
81925
|
+
// frames added by the construct call.
|
81926
|
+
try {
|
81927
|
+
Reflect.construct(Fake, []);
|
81928
|
+
} catch (x) {
|
81929
|
+
control = x;
|
81930
|
+
}
|
81931
|
+
|
81932
|
+
Reflect.construct(fn, [], Fake);
|
81933
|
+
} else {
|
81934
|
+
try {
|
81935
|
+
Fake.call();
|
81936
|
+
} catch (x) {
|
81937
|
+
control = x;
|
81938
|
+
}
|
81939
|
+
|
81940
|
+
fn.call(Fake.prototype);
|
81941
|
+
}
|
81942
|
+
} else {
|
81943
|
+
try {
|
81944
|
+
throw Error();
|
81945
|
+
} catch (x) {
|
81946
|
+
control = x;
|
81947
|
+
}
|
81948
|
+
|
81949
|
+
fn();
|
81950
|
+
}
|
81951
|
+
} catch (sample) {
|
81952
|
+
// This is inlined manually because closure doesn't do it for us.
|
81953
|
+
if (sample && control && typeof sample.stack === 'string') {
|
81954
|
+
// This extracts the first frame from the sample that isn't also in the control.
|
81955
|
+
// Skipping one frame that we assume is the frame that calls the two.
|
81956
|
+
var sampleLines = sample.stack.split('\n');
|
81957
|
+
var controlLines = control.stack.split('\n');
|
81958
|
+
var s = sampleLines.length - 1;
|
81959
|
+
var c = controlLines.length - 1;
|
81960
|
+
|
81961
|
+
while (s >= 1 && c >= 0 && sampleLines[s] !== controlLines[c]) {
|
81962
|
+
// We expect at least one stack frame to be shared.
|
81963
|
+
// Typically this will be the root most one. However, stack frames may be
|
81964
|
+
// cut off due to maximum stack limits. In this case, one maybe cut off
|
81965
|
+
// earlier than the other. We assume that the sample is longer or the same
|
81966
|
+
// and there for cut off earlier. So we should find the root most frame in
|
81967
|
+
// the sample somewhere in the control.
|
81968
|
+
c--;
|
81969
|
+
}
|
81970
|
+
|
81971
|
+
for (; s >= 1 && c >= 0; s--, c--) {
|
81972
|
+
// Next we find the first one that isn't the same which should be the
|
81973
|
+
// frame that called our sample function and the control.
|
81974
|
+
if (sampleLines[s] !== controlLines[c]) {
|
81975
|
+
// In V8, the first line is describing the message but other VMs don't.
|
81976
|
+
// If we're about to return the first line, and the control is also on the same
|
81977
|
+
// line, that's a pretty good indicator that our sample threw at same line as
|
81978
|
+
// the control. I.e. before we entered the sample frame. So we ignore this result.
|
81979
|
+
// This can happen if you passed a class to function component, or non-function.
|
81980
|
+
if (s !== 1 || c !== 1) {
|
81981
|
+
do {
|
81982
|
+
s--;
|
81983
|
+
c--; // We may still have similar intermediate frames from the construct call.
|
81984
|
+
// The next one that isn't the same should be our match though.
|
81985
|
+
|
81986
|
+
if (c < 0 || sampleLines[s] !== controlLines[c]) {
|
81987
|
+
// V8 adds a "new" prefix for native classes. Let's remove it to make it prettier.
|
81988
|
+
var _frame = '\n' + sampleLines[s].replace(' at new ', ' at '); // If our component frame is labeled "<anonymous>"
|
81989
|
+
// but we have a user-provided "displayName"
|
81990
|
+
// splice it in to make the stack more readable.
|
81991
|
+
|
81992
|
+
|
81993
|
+
if (fn.displayName && _frame.includes('<anonymous>')) {
|
81994
|
+
_frame = _frame.replace('<anonymous>', fn.displayName);
|
81995
|
+
}
|
81996
|
+
|
81997
|
+
{
|
81998
|
+
if (typeof fn === 'function') {
|
81999
|
+
componentFrameCache.set(fn, _frame);
|
82000
|
+
}
|
82001
|
+
} // Return the line we found.
|
82002
|
+
|
82003
|
+
|
82004
|
+
return _frame;
|
82005
|
+
}
|
82006
|
+
} while (s >= 1 && c >= 0);
|
81723
82007
|
}
|
81724
82008
|
|
81725
82009
|
break;
|
81726
82010
|
}
|
82011
|
+
}
|
82012
|
+
}
|
82013
|
+
} finally {
|
82014
|
+
reentry = false;
|
82015
|
+
|
82016
|
+
{
|
82017
|
+
ReactCurrentDispatcher.current = previousDispatcher;
|
82018
|
+
reenableLogs();
|
82019
|
+
}
|
82020
|
+
|
82021
|
+
Error.prepareStackTrace = previousPrepareStackTrace;
|
82022
|
+
} // Fallback to just using the name if we couldn't make it throw.
|
82023
|
+
|
82024
|
+
|
82025
|
+
var name = fn ? fn.displayName || fn.name : '';
|
82026
|
+
var syntheticFrame = name ? describeBuiltInComponentFrame(name) : '';
|
82027
|
+
|
82028
|
+
{
|
82029
|
+
if (typeof fn === 'function') {
|
82030
|
+
componentFrameCache.set(fn, syntheticFrame);
|
81727
82031
|
}
|
81728
82032
|
}
|
81729
82033
|
|
81730
|
-
return
|
82034
|
+
return syntheticFrame;
|
82035
|
+
}
|
82036
|
+
function describeFunctionComponentFrame(fn, source, ownerFn) {
|
82037
|
+
{
|
82038
|
+
return describeNativeComponentFrame(fn, false);
|
82039
|
+
}
|
82040
|
+
}
|
82041
|
+
|
82042
|
+
function shouldConstruct(Component) {
|
82043
|
+
var prototype = Component.prototype;
|
82044
|
+
return !!(prototype && prototype.isReactComponent);
|
82045
|
+
}
|
82046
|
+
|
82047
|
+
function describeUnknownElementTypeFrameInDEV(type, source, ownerFn) {
|
82048
|
+
|
82049
|
+
if (type == null) {
|
82050
|
+
return '';
|
82051
|
+
}
|
82052
|
+
|
82053
|
+
if (typeof type === 'function') {
|
82054
|
+
{
|
82055
|
+
return describeNativeComponentFrame(type, shouldConstruct(type));
|
82056
|
+
}
|
82057
|
+
}
|
82058
|
+
|
82059
|
+
if (typeof type === 'string') {
|
82060
|
+
return describeBuiltInComponentFrame(type);
|
82061
|
+
}
|
82062
|
+
|
82063
|
+
switch (type) {
|
82064
|
+
case REACT_SUSPENSE_TYPE:
|
82065
|
+
return describeBuiltInComponentFrame('Suspense');
|
82066
|
+
|
82067
|
+
case REACT_SUSPENSE_LIST_TYPE:
|
82068
|
+
return describeBuiltInComponentFrame('SuspenseList');
|
82069
|
+
}
|
82070
|
+
|
82071
|
+
if (typeof type === 'object') {
|
82072
|
+
switch (type.$$typeof) {
|
82073
|
+
case REACT_FORWARD_REF_TYPE:
|
82074
|
+
return describeFunctionComponentFrame(type.render);
|
82075
|
+
|
82076
|
+
case REACT_MEMO_TYPE:
|
82077
|
+
// Memo may contain any component type so we recursively resolve it.
|
82078
|
+
return describeUnknownElementTypeFrameInDEV(type.type, source, ownerFn);
|
82079
|
+
|
82080
|
+
case REACT_LAZY_TYPE:
|
82081
|
+
{
|
82082
|
+
var lazyComponent = type;
|
82083
|
+
var payload = lazyComponent._payload;
|
82084
|
+
var init = lazyComponent._init;
|
82085
|
+
|
82086
|
+
try {
|
82087
|
+
// Lazy may contain any component type so we recursively resolve it.
|
82088
|
+
return describeUnknownElementTypeFrameInDEV(init(payload), source, ownerFn);
|
82089
|
+
} catch (x) {}
|
82090
|
+
}
|
82091
|
+
}
|
82092
|
+
}
|
82093
|
+
|
82094
|
+
return '';
|
81731
82095
|
}
|
81732
82096
|
|
82097
|
+
var hasOwnProperty = Object.prototype.hasOwnProperty;
|
82098
|
+
|
81733
82099
|
var loggedTypeFailures = {};
|
81734
82100
|
var ReactDebugCurrentFrame = ReactSharedInternals.ReactDebugCurrentFrame;
|
81735
|
-
var currentlyValidatingElement = null;
|
81736
82101
|
|
81737
82102
|
function setCurrentlyValidatingElement(element) {
|
81738
82103
|
{
|
81739
|
-
|
82104
|
+
if (element) {
|
82105
|
+
var owner = element._owner;
|
82106
|
+
var stack = describeUnknownElementTypeFrameInDEV(element.type, element._source, owner ? owner.type : null);
|
82107
|
+
ReactDebugCurrentFrame.setExtraStackFrame(stack);
|
82108
|
+
} else {
|
82109
|
+
ReactDebugCurrentFrame.setExtraStackFrame(null);
|
82110
|
+
}
|
81740
82111
|
}
|
81741
82112
|
}
|
81742
82113
|
|
81743
82114
|
function checkPropTypes(typeSpecs, values, location, componentName, element) {
|
81744
82115
|
{
|
81745
82116
|
// $FlowFixMe This is okay but Flow doesn't know it.
|
81746
|
-
var has = Function.call.bind(
|
82117
|
+
var has = Function.call.bind(hasOwnProperty);
|
81747
82118
|
|
81748
82119
|
for (var typeSpecName in typeSpecs) {
|
81749
82120
|
if (has(typeSpecs, typeSpecName)) {
|
@@ -81755,6 +82126,7 @@ function checkPropTypes(typeSpecs, values, location, componentName, element) {
|
|
81755
82126
|
// This is intentionally an invariant that gets caught. It's the same
|
81756
82127
|
// behavior as without this statement except with a better message.
|
81757
82128
|
if (typeof typeSpecs[typeSpecName] !== 'function') {
|
82129
|
+
// eslint-disable-next-line react-internal/prod-error-codes
|
81758
82130
|
var err = Error((componentName || 'React class') + ': ' + location + ' type `' + typeSpecName + '` is invalid; ' + 'it must be a function, usually from the `prop-types` package, but received `' + typeof typeSpecs[typeSpecName] + '`.' + 'This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.');
|
81759
82131
|
err.name = 'Invariant Violation';
|
81760
82132
|
throw err;
|
@@ -81788,8 +82160,80 @@ function checkPropTypes(typeSpecs, values, location, componentName, element) {
|
|
81788
82160
|
}
|
81789
82161
|
}
|
81790
82162
|
|
82163
|
+
var isArrayImpl = Array.isArray; // eslint-disable-next-line no-redeclare
|
82164
|
+
|
82165
|
+
function isArray(a) {
|
82166
|
+
return isArrayImpl(a);
|
82167
|
+
}
|
82168
|
+
|
82169
|
+
/*
|
82170
|
+
* The `'' + value` pattern (used in in perf-sensitive code) throws for Symbol
|
82171
|
+
* and Temporal.* types. See https://github.com/facebook/react/pull/22064.
|
82172
|
+
*
|
82173
|
+
* The functions in this module will throw an easier-to-understand,
|
82174
|
+
* easier-to-debug exception with a clear errors message message explaining the
|
82175
|
+
* problem. (Instead of a confusing exception thrown inside the implementation
|
82176
|
+
* of the `value` object).
|
82177
|
+
*/
|
82178
|
+
// $FlowFixMe only called in DEV, so void return is not possible.
|
82179
|
+
function typeName(value) {
|
82180
|
+
{
|
82181
|
+
// toStringTag is needed for namespaced types like Temporal.Instant
|
82182
|
+
var hasToStringTag = typeof Symbol === 'function' && Symbol.toStringTag;
|
82183
|
+
var type = hasToStringTag && value[Symbol.toStringTag] || value.constructor.name || 'Object';
|
82184
|
+
return type;
|
82185
|
+
}
|
82186
|
+
} // $FlowFixMe only called in DEV, so void return is not possible.
|
82187
|
+
|
82188
|
+
|
82189
|
+
function willCoercionThrow(value) {
|
82190
|
+
{
|
82191
|
+
try {
|
82192
|
+
testStringCoercion(value);
|
82193
|
+
return false;
|
82194
|
+
} catch (e) {
|
82195
|
+
return true;
|
82196
|
+
}
|
82197
|
+
}
|
82198
|
+
}
|
82199
|
+
|
82200
|
+
function testStringCoercion(value) {
|
82201
|
+
// If you ended up here by following an exception call stack, here's what's
|
82202
|
+
// happened: you supplied an object or symbol value to React (as a prop, key,
|
82203
|
+
// DOM attribute, CSS property, string ref, etc.) and when React tried to
|
82204
|
+
// coerce it to a string using `'' + value`, an exception was thrown.
|
82205
|
+
//
|
82206
|
+
// The most common types that will cause this exception are `Symbol` instances
|
82207
|
+
// and Temporal objects like `Temporal.Instant`. But any object that has a
|
82208
|
+
// `valueOf` or `[Symbol.toPrimitive]` method that throws will also cause this
|
82209
|
+
// exception. (Library authors do this to prevent users from using built-in
|
82210
|
+
// numeric operators like `+` or comparison operators like `>=` because custom
|
82211
|
+
// methods are needed to perform accurate arithmetic or comparison.)
|
82212
|
+
//
|
82213
|
+
// To fix the problem, coerce this object or symbol value to a string before
|
82214
|
+
// passing it to React. The most reliable way is usually `String(value)`.
|
82215
|
+
//
|
82216
|
+
// To find which value is throwing, check the browser or debugger console.
|
82217
|
+
// Before this exception was thrown, there should be `console.error` output
|
82218
|
+
// that shows the type (Symbol, Temporal.PlainDate, etc.) that caused the
|
82219
|
+
// problem and how that type was used: key, atrribute, input value prop, etc.
|
82220
|
+
// In most cases, this console output also shows the component and its
|
82221
|
+
// ancestor components where the exception happened.
|
82222
|
+
//
|
82223
|
+
// eslint-disable-next-line react-internal/safe-string-coercion
|
82224
|
+
return '' + value;
|
82225
|
+
}
|
82226
|
+
function checkKeyStringCoercion(value) {
|
82227
|
+
{
|
82228
|
+
if (willCoercionThrow(value)) {
|
82229
|
+
error('The provided key is an unsupported type %s.' + ' This value must be coerced to a string before before using it here.', typeName(value));
|
82230
|
+
|
82231
|
+
return testStringCoercion(value); // throw (to help callers find troubleshooting comments)
|
82232
|
+
}
|
82233
|
+
}
|
82234
|
+
}
|
82235
|
+
|
81791
82236
|
var ReactCurrentOwner = ReactSharedInternals.ReactCurrentOwner;
|
81792
|
-
var hasOwnProperty = Object.prototype.hasOwnProperty;
|
81793
82237
|
var RESERVED_PROPS = {
|
81794
82238
|
key: true,
|
81795
82239
|
ref: true,
|
@@ -81835,10 +82279,10 @@ function hasValidKey(config) {
|
|
81835
82279
|
function warnIfStringRefCannotBeAutoConverted(config, self) {
|
81836
82280
|
{
|
81837
82281
|
if (typeof config.ref === 'string' && ReactCurrentOwner.current && self && ReactCurrentOwner.current.stateNode !== self) {
|
81838
|
-
var componentName =
|
82282
|
+
var componentName = getComponentNameFromType(ReactCurrentOwner.current.type);
|
81839
82283
|
|
81840
82284
|
if (!didWarnAboutStringRefs[componentName]) {
|
81841
|
-
error('Component "%s" contains the string ref "%s". ' + 'Support for string refs will be removed in a future major release. ' + 'This case cannot be automatically converted to an arrow function. ' + 'We ask you to manually fix this case by using useRef() or createRef() instead. ' + 'Learn more about using refs safely here: ' + 'https://reactjs.org/link/strict-mode-string-ref',
|
82285
|
+
error('Component "%s" contains the string ref "%s". ' + 'Support for string refs will be removed in a future major release. ' + 'This case cannot be automatically converted to an arrow function. ' + 'We ask you to manually fix this case by using useRef() or createRef() instead. ' + 'Learn more about using refs safely here: ' + 'https://reactjs.org/link/strict-mode-string-ref', getComponentNameFromType(ReactCurrentOwner.current.type), config.ref);
|
81842
82286
|
|
81843
82287
|
didWarnAboutStringRefs[componentName] = true;
|
81844
82288
|
}
|
@@ -81977,10 +82421,18 @@ function jsxDEV(type, config, maybeKey, source, self) {
|
|
81977
82421
|
// key is explicitly declared to be undefined or not.
|
81978
82422
|
|
81979
82423
|
if (maybeKey !== undefined) {
|
82424
|
+
{
|
82425
|
+
checkKeyStringCoercion(maybeKey);
|
82426
|
+
}
|
82427
|
+
|
81980
82428
|
key = '' + maybeKey;
|
81981
82429
|
}
|
81982
82430
|
|
81983
82431
|
if (hasValidKey(config)) {
|
82432
|
+
{
|
82433
|
+
checkKeyStringCoercion(config.key);
|
82434
|
+
}
|
82435
|
+
|
81984
82436
|
key = '' + config.key;
|
81985
82437
|
}
|
81986
82438
|
|
@@ -82027,7 +82479,15 @@ var ReactCurrentOwner$1 = ReactSharedInternals.ReactCurrentOwner;
|
|
82027
82479
|
var ReactDebugCurrentFrame$1 = ReactSharedInternals.ReactDebugCurrentFrame;
|
82028
82480
|
|
82029
82481
|
function setCurrentlyValidatingElement$1(element) {
|
82030
|
-
|
82482
|
+
{
|
82483
|
+
if (element) {
|
82484
|
+
var owner = element._owner;
|
82485
|
+
var stack = describeUnknownElementTypeFrameInDEV(element.type, element._source, owner ? owner.type : null);
|
82486
|
+
ReactDebugCurrentFrame$1.setExtraStackFrame(stack);
|
82487
|
+
} else {
|
82488
|
+
ReactDebugCurrentFrame$1.setExtraStackFrame(null);
|
82489
|
+
}
|
82490
|
+
}
|
82031
82491
|
}
|
82032
82492
|
|
82033
82493
|
var propTypesMisspellWarningShown;
|
@@ -82043,6 +82503,7 @@ var propTypesMisspellWarningShown;
|
|
82043
82503
|
* @final
|
82044
82504
|
*/
|
82045
82505
|
|
82506
|
+
|
82046
82507
|
function isValidElement(object) {
|
82047
82508
|
{
|
82048
82509
|
return typeof object === 'object' && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;
|
@@ -82052,7 +82513,7 @@ function isValidElement(object) {
|
|
82052
82513
|
function getDeclarationErrorAddendum() {
|
82053
82514
|
{
|
82054
82515
|
if (ReactCurrentOwner$1.current) {
|
82055
|
-
var name =
|
82516
|
+
var name = getComponentNameFromType(ReactCurrentOwner$1.current.type);
|
82056
82517
|
|
82057
82518
|
if (name) {
|
82058
82519
|
return '\n\nCheck the render method of `' + name + '`.';
|
@@ -82132,7 +82593,7 @@ function validateExplicitKey(element, parentType) {
|
|
82132
82593
|
|
82133
82594
|
if (element && element._owner && element._owner !== ReactCurrentOwner$1.current) {
|
82134
82595
|
// Give the component that originally created this child.
|
82135
|
-
childOwner = " It was passed a child from " +
|
82596
|
+
childOwner = " It was passed a child from " + getComponentNameFromType(element._owner.type) + ".";
|
82136
82597
|
}
|
82137
82598
|
|
82138
82599
|
setCurrentlyValidatingElement$1(element);
|
@@ -82159,7 +82620,7 @@ function validateChildKeys(node, parentType) {
|
|
82159
82620
|
return;
|
82160
82621
|
}
|
82161
82622
|
|
82162
|
-
if (
|
82623
|
+
if (isArray(node)) {
|
82163
82624
|
for (var i = 0; i < node.length; i++) {
|
82164
82625
|
var child = node[i];
|
82165
82626
|
|
@@ -82222,12 +82683,12 @@ function validatePropTypes(element) {
|
|
82222
82683
|
|
82223
82684
|
if (propTypes) {
|
82224
82685
|
// Intentionally inside to avoid triggering lazy initializers:
|
82225
|
-
var name =
|
82686
|
+
var name = getComponentNameFromType(type);
|
82226
82687
|
checkPropTypes(propTypes, element.props, 'prop', name, element);
|
82227
82688
|
} else if (type.PropTypes !== undefined && !propTypesMisspellWarningShown) {
|
82228
82689
|
propTypesMisspellWarningShown = true; // Intentionally inside to avoid triggering lazy initializers:
|
82229
82690
|
|
82230
|
-
var _name =
|
82691
|
+
var _name = getComponentNameFromType(type);
|
82231
82692
|
|
82232
82693
|
error('Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?', _name || 'Unknown');
|
82233
82694
|
}
|
@@ -82270,6 +82731,7 @@ function validateFragmentProps(fragment) {
|
|
82270
82731
|
}
|
82271
82732
|
}
|
82272
82733
|
|
82734
|
+
var didWarnAboutKeySpread = {};
|
82273
82735
|
function jsxWithValidation(type, props, key, isStaticChildren, source, self) {
|
82274
82736
|
{
|
82275
82737
|
var validType = isValidElementType(type); // We warn in this case but don't throw. We expect the element creation to
|
@@ -82294,10 +82756,10 @@ function jsxWithValidation(type, props, key, isStaticChildren, source, self) {
|
|
82294
82756
|
|
82295
82757
|
if (type === null) {
|
82296
82758
|
typeString = 'null';
|
82297
|
-
} else if (
|
82759
|
+
} else if (isArray(type)) {
|
82298
82760
|
typeString = 'array';
|
82299
82761
|
} else if (type !== undefined && type.$$typeof === REACT_ELEMENT_TYPE) {
|
82300
|
-
typeString = "<" + (
|
82762
|
+
typeString = "<" + (getComponentNameFromType(type.type) || 'Unknown') + " />";
|
82301
82763
|
info = ' Did you accidentally export a JSX literal instead of a component?';
|
82302
82764
|
} else {
|
82303
82765
|
typeString = typeof type;
|
@@ -82323,7 +82785,7 @@ function jsxWithValidation(type, props, key, isStaticChildren, source, self) {
|
|
82323
82785
|
|
82324
82786
|
if (children !== undefined) {
|
82325
82787
|
if (isStaticChildren) {
|
82326
|
-
if (
|
82788
|
+
if (isArray(children)) {
|
82327
82789
|
for (var i = 0; i < children.length; i++) {
|
82328
82790
|
validateChildKeys(children[i], type);
|
82329
82791
|
}
|
@@ -82340,7 +82802,25 @@ function jsxWithValidation(type, props, key, isStaticChildren, source, self) {
|
|
82340
82802
|
}
|
82341
82803
|
}
|
82342
82804
|
|
82343
|
-
|
82805
|
+
{
|
82806
|
+
if (hasOwnProperty.call(props, 'key')) {
|
82807
|
+
var componentName = getComponentNameFromType(type);
|
82808
|
+
var keys = Object.keys(props).filter(function (k) {
|
82809
|
+
return k !== 'key';
|
82810
|
+
});
|
82811
|
+
var beforeExample = keys.length > 0 ? '{key: someKey, ' + keys.join(': ..., ') + ': ...}' : '{key: someKey}';
|
82812
|
+
|
82813
|
+
if (!didWarnAboutKeySpread[componentName + beforeExample]) {
|
82814
|
+
var afterExample = keys.length > 0 ? '{' + keys.join(': ..., ') + ': ...}' : '{}';
|
82815
|
+
|
82816
|
+
error('A props object containing a "key" prop is being spread into JSX:\n' + ' let props = %s;\n' + ' <%s {...props} />\n' + 'React keys must be passed directly to JSX without using spread:\n' + ' let props = %s;\n' + ' <%s key={someKey} {...props} />', beforeExample, componentName, afterExample, componentName);
|
82817
|
+
|
82818
|
+
didWarnAboutKeySpread[componentName + beforeExample] = true;
|
82819
|
+
}
|
82820
|
+
}
|
82821
|
+
}
|
82822
|
+
|
82823
|
+
if (type === REACT_FRAGMENT_TYPE) {
|
82344
82824
|
validateFragmentProps(element);
|
82345
82825
|
} else {
|
82346
82826
|
validatePropTypes(element);
|
@@ -82369,6 +82849,7 @@ var jsx = jsxWithValidationDynamic ; // we may want to special case jsxs intern
|
|
82369
82849
|
|
82370
82850
|
var jsxs = jsxWithValidationStatic ;
|
82371
82851
|
|
82852
|
+
exports.Fragment = REACT_FRAGMENT_TYPE;
|
82372
82853
|
exports.jsx = jsx;
|
82373
82854
|
exports.jsxs = jsxs;
|
82374
82855
|
})();
|