@luminati-io/uikit 3.3.0 → 3.3.2
Sign up to get free protection for your applications and to get access to all the features.
@@ -33133,14 +33133,14 @@ __webpack_require__.r(__webpack_exports__);
|
|
33133
33133
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
33134
33134
|
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! prop-types */ "prop-types");
|
33135
33135
|
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
|
33136
|
-
/* harmony import */ var _visx_curve__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @visx/curve */ "./node_modules/d3-shape/src/curve/cardinal.js");
|
33137
33136
|
/* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../util */ "./src/util/index.js");
|
33138
33137
|
/* harmony import */ var _chart_container__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./chart_container */ "./src/chart/chart_container.js");
|
33139
|
-
/* harmony import */ var
|
33140
|
-
/* harmony import */ var
|
33141
|
-
/* harmony import */ var
|
33142
|
-
/* harmony import */ var
|
33143
|
-
/* harmony import */ var
|
33138
|
+
/* harmony import */ var _get_curve__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./get_curve */ "./src/chart/get_curve.js");
|
33139
|
+
/* harmony import */ var _get_components__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./get_components */ "./src/chart/get_components.js");
|
33140
|
+
/* harmony import */ var _glyph__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./glyph */ "./src/chart/glyph.js");
|
33141
|
+
/* harmony import */ var _split_props__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./split_props */ "./src/chart/split_props.js");
|
33142
|
+
/* harmony import */ var _tooltip__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./tooltip */ "./src/chart/tooltip.js");
|
33143
|
+
/* harmony import */ var _use_chart_theme__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./use_chart_theme */ "./src/chart/use_chart_theme.js");
|
33144
33144
|
// LICENSE_CODE ZON
|
33145
33145
|
|
33146
33146
|
|
@@ -33196,22 +33196,25 @@ var AreaChart = function AreaChart(props) {
|
|
33196
33196
|
stacked = props.stacked,
|
33197
33197
|
showTooltip = props.showTooltip,
|
33198
33198
|
_props$tooltipContent = props.tooltipContent,
|
33199
|
-
tooltipContent = _props$tooltipContent === void 0 ?
|
33199
|
+
tooltipContent = _props$tooltipContent === void 0 ? _tooltip__WEBPACK_IMPORTED_MODULE_8__.DefaultTooltip : _props$tooltipContent,
|
33200
|
+
_props$curveType = props.curveType,
|
33201
|
+
curveType = _props$curveType === void 0 ? '' : _props$curveType,
|
33200
33202
|
onPointerMove = props.onPointerMove,
|
33201
33203
|
onPointerOut = props.onPointerOut,
|
33202
33204
|
onPointerUp = props.onPointerUp,
|
33203
33205
|
onPointerDown = props.onPointerDown,
|
33204
33206
|
pointerEventsDataKey = props.pointerEventsDataKey,
|
33205
33207
|
children = props.children;
|
33206
|
-
var _getAnimatedOrUnanima = (0,
|
33208
|
+
var _getAnimatedOrUnanima = (0,_get_components__WEBPACK_IMPORTED_MODULE_5__.getAnimatedOrUnanimatedComponents)(animated),
|
33207
33209
|
XYChart = _getAnimatedOrUnanima.XYChart,
|
33208
33210
|
Grid = _getAnimatedOrUnanima.Grid,
|
33209
33211
|
Axis = _getAnimatedOrUnanima.Axis,
|
33210
33212
|
AreaSeries = _getAnimatedOrUnanima.AreaSeries,
|
33211
33213
|
AreaStack = _getAnimatedOrUnanima.AreaStack,
|
33212
33214
|
Tooltip = _getAnimatedOrUnanima.Tooltip;
|
33213
|
-
var chartTheme = (0,
|
33215
|
+
var chartTheme = (0,_use_chart_theme__WEBPACK_IMPORTED_MODULE_9__.useChartTheme)(palette);
|
33214
33216
|
if (!data || !data.length) return null;
|
33217
|
+
var curve = (0,_get_curve__WEBPACK_IMPORTED_MODULE_4__.getCurve)(curveType);
|
33215
33218
|
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(XYChart, {
|
33216
33219
|
theme: chartTheme,
|
33217
33220
|
xScale: config.x,
|
@@ -33232,7 +33235,7 @@ var AreaChart = function AreaChart(props) {
|
|
33232
33235
|
animationTrajectory: animationTrajectory,
|
33233
33236
|
numTicks: numTicks
|
33234
33237
|
}), !!stacked && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(AreaStack, {
|
33235
|
-
curve:
|
33238
|
+
curve: curve
|
33236
33239
|
}, data.map(function (lineData) {
|
33237
33240
|
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(AreaSeries, _extends({
|
33238
33241
|
key: lineData.name,
|
@@ -33244,7 +33247,7 @@ var AreaChart = function AreaChart(props) {
|
|
33244
33247
|
key: lineData.name,
|
33245
33248
|
dataKey: lineData.name,
|
33246
33249
|
data: lineData.datapoints,
|
33247
|
-
curve:
|
33250
|
+
curve: curve
|
33248
33251
|
}, lineData.accessors, lineData.areaProps));
|
33249
33252
|
}), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(Axis, {
|
33250
33253
|
key: "x-axis-".concat(animationTrajectory),
|
@@ -33271,7 +33274,7 @@ var AreaChart = function AreaChart(props) {
|
|
33271
33274
|
applyPositionStyle: true,
|
33272
33275
|
renderTooltip: function renderTooltip(params) {
|
33273
33276
|
return (0,_util__WEBPACK_IMPORTED_MODULE_2__.flexRender)(tooltipContent, _objectSpread({
|
33274
|
-
Glyph:
|
33277
|
+
Glyph: _glyph__WEBPACK_IMPORTED_MODULE_6__.Glyph,
|
33275
33278
|
data: data,
|
33276
33279
|
formatTick: xAxis.formatTick,
|
33277
33280
|
formatValue: formatValue,
|
@@ -33282,7 +33285,7 @@ var AreaChart = function AreaChart(props) {
|
|
33282
33285
|
};
|
33283
33286
|
AreaChart.displayName = 'AreaChart';
|
33284
33287
|
var Area = function Area(props) {
|
33285
|
-
var _splitProps = (0,
|
33288
|
+
var _splitProps = (0,_split_props__WEBPACK_IMPORTED_MODULE_7__.splitProps)(props, 'animated', 'showGridRows', 'showGridColumns', 'numTicks', 'xAxis', 'yAxis', 'formatValue', 'margin', 'stacked', 'showTooltip', 'tooltipContent', 'curveType', 'onPointerMove', 'onPointerOut', 'onPointerUp', 'onPointerDown', 'pointerEventsDataKey', 'children'),
|
33286
33289
|
_splitProps2 = _slicedToArray(_splitProps, 2),
|
33287
33290
|
chartProps = _splitProps2[0],
|
33288
33291
|
restProps = _splitProps2[1];
|
@@ -33335,6 +33338,7 @@ Area.propTypes = {
|
|
33335
33338
|
stacked: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().bool),
|
33336
33339
|
showTooltip: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().bool),
|
33337
33340
|
tooltipContent: prop_types__WEBPACK_IMPORTED_MODULE_1___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_1___default().element), (prop_types__WEBPACK_IMPORTED_MODULE_1___default().func)]),
|
33341
|
+
curveType: prop_types__WEBPACK_IMPORTED_MODULE_1___default().oneOf(['basis', 'basisClosed', 'basisOpen', 'step', 'stepAfter', 'stepBefore', 'bundle', 'linear', 'linearClosed', 'cardinal', 'cardinalClosed', 'cardinalOpen', 'catmullRom', 'catmullRomClosed', 'catmullRomOpen', 'monotoneX', 'monotoneY', 'natural']),
|
33338
33342
|
onPointerMove: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().func),
|
33339
33343
|
onPointerOut: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().func),
|
33340
33344
|
onPointerUp: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().func),
|
@@ -37171,6 +37175,7 @@ var useStyles = function useStyles(_ref) {
|
|
37171
37175
|
lg: 48
|
37172
37176
|
};
|
37173
37177
|
var borderColor = _theme__WEBPACK_IMPORTED_MODULE_1__["default"].color.gray_7;
|
37178
|
+
var boxShadow = 'none';
|
37174
37179
|
var color = _theme__WEBPACK_IMPORTED_MODULE_1__["default"].color.gray_11_50;
|
37175
37180
|
var backgroundColor = _theme__WEBPACK_IMPORTED_MODULE_1__["default"].color.white;
|
37176
37181
|
var cursor = 'text';
|
@@ -37179,7 +37184,10 @@ var useStyles = function useStyles(_ref) {
|
|
37179
37184
|
borderColor = _theme__WEBPACK_IMPORTED_MODULE_1__["default"].color.gray_6;
|
37180
37185
|
backgroundColor = _theme__WEBPACK_IMPORTED_MODULE_1__["default"].color.gray_2;
|
37181
37186
|
cursor = 'default';
|
37182
|
-
} else if (selectProps['aria-invalid']) borderColor = _theme__WEBPACK_IMPORTED_MODULE_1__["default"].color.red_11;else if (isFocused)
|
37187
|
+
} else if (selectProps['aria-invalid']) borderColor = _theme__WEBPACK_IMPORTED_MODULE_1__["default"].color.red_11;else if (isFocused) {
|
37188
|
+
borderColor = _theme__WEBPACK_IMPORTED_MODULE_1__["default"].color.blue_11;
|
37189
|
+
boxShadow = "0px 0px 0px 2px rgba(0, 106, 220, 0.4)";
|
37190
|
+
}
|
37183
37191
|
return _objectSpread(_objectSpread(_objectSpread({}, baseStyles), LabelSm), {}, {
|
37184
37192
|
minHeight: (0,_utils__WEBPACK_IMPORTED_MODULE_2__.toPixel)(height[size] || height.sm),
|
37185
37193
|
padding: "".concat(_shared__WEBPACK_IMPORTED_MODULE_3__.inputVerticalPadding, "px ").concat(_shared__WEBPACK_IMPORTED_MODULE_3__.inputHorizontalPadding, "px"),
|
@@ -37187,7 +37195,7 @@ var useStyles = function useStyles(_ref) {
|
|
37187
37195
|
backgroundColor: backgroundColor,
|
37188
37196
|
borderColor: borderColor,
|
37189
37197
|
cursor: cursor,
|
37190
|
-
boxShadow:
|
37198
|
+
boxShadow: boxShadow
|
37191
37199
|
});
|
37192
37200
|
},
|
37193
37201
|
valueContainer: function valueContainer(baseStyles) {
|
@@ -38327,22 +38335,29 @@ var useStyles = function useStyles(_ref) {
|
|
38327
38335
|
size = _ref.size;
|
38328
38336
|
return (0,react__WEBPACK_IMPORTED_MODULE_0__.useMemo)(function () {
|
38329
38337
|
return (0,_util_with_user_styles__WEBPACK_IMPORTED_MODULE_5__.withUserStyles)(styles, {
|
38330
|
-
control: function control(baseStyles,
|
38338
|
+
control: function control(baseStyles, _ref2) {
|
38339
|
+
var isDisabled = _ref2.isDisabled,
|
38340
|
+
isFocused = _ref2.isFocused,
|
38341
|
+
selectProps = _ref2.selectProps;
|
38331
38342
|
var height = {
|
38332
38343
|
sm: 36,
|
38333
38344
|
md: 40,
|
38334
38345
|
lg: 48
|
38335
38346
|
};
|
38336
38347
|
var borderColor = _theme__WEBPACK_IMPORTED_MODULE_1__["default"].color.gray_7;
|
38348
|
+
var boxShadow = 'none';
|
38337
38349
|
var color = _theme__WEBPACK_IMPORTED_MODULE_1__["default"].color.gray_11_50;
|
38338
38350
|
var backgroundColor = _theme__WEBPACK_IMPORTED_MODULE_1__["default"].color.white;
|
38339
38351
|
var cursor = 'text';
|
38340
|
-
if (
|
38352
|
+
if (isDisabled) {
|
38341
38353
|
color = _theme__WEBPACK_IMPORTED_MODULE_1__["default"].color.gray_9;
|
38342
38354
|
borderColor = _theme__WEBPACK_IMPORTED_MODULE_1__["default"].color.gray_6;
|
38343
38355
|
backgroundColor = _theme__WEBPACK_IMPORTED_MODULE_1__["default"].color.gray_2;
|
38344
38356
|
cursor = 'default';
|
38345
|
-
} else if (
|
38357
|
+
} else if (selectProps['aria-invalid']) borderColor = _theme__WEBPACK_IMPORTED_MODULE_1__["default"].color.red_11;else if (isFocused) {
|
38358
|
+
borderColor = _theme__WEBPACK_IMPORTED_MODULE_1__["default"].color.blue_11;
|
38359
|
+
boxShadow = "0px 0px 0px 2px rgba(0, 106, 220, 0.4)";
|
38360
|
+
}
|
38346
38361
|
return _objectSpread(_objectSpread({}, baseStyles), {}, {
|
38347
38362
|
minHeight: (0,_utils__WEBPACK_IMPORTED_MODULE_2__.toPixel)(height[size] || height.sm),
|
38348
38363
|
padding: "".concat(_shared__WEBPACK_IMPORTED_MODULE_4__.inputVerticalPadding, "px ").concat(_shared__WEBPACK_IMPORTED_MODULE_4__.inputHorizontalPadding, "px"),
|
@@ -38356,7 +38371,7 @@ var useStyles = function useStyles(_ref) {
|
|
38356
38371
|
backgroundColor: backgroundColor,
|
38357
38372
|
borderColor: borderColor,
|
38358
38373
|
cursor: cursor,
|
38359
|
-
boxShadow:
|
38374
|
+
boxShadow: boxShadow
|
38360
38375
|
});
|
38361
38376
|
},
|
38362
38377
|
valueContainer: function valueContainer(baseStyles) {
|
@@ -46008,10 +46023,14 @@ var getIconProps = function getIconProps(comp, opt) {
|
|
46008
46023
|
var getLinkProps = function getLinkProps(opt) {
|
46009
46024
|
var as = opt.as,
|
46010
46025
|
href = opt.href,
|
46026
|
+
target = opt.target,
|
46027
|
+
rel = opt.rel,
|
46011
46028
|
newTab = opt.newTab;
|
46012
46029
|
var p = {
|
46013
46030
|
as: as,
|
46014
|
-
href: href
|
46031
|
+
href: href,
|
46032
|
+
target: target,
|
46033
|
+
rel: rel
|
46015
46034
|
};
|
46016
46035
|
if (newTab) p = _objectSpread(_objectSpread({}, p), {}, {
|
46017
46036
|
target: '_blank',
|