@luminati-io/uikit 3.5.3 → 3.5.5
Sign up to get free protection for your applications and to get access to all the features.
@@ -1,13 +1,13 @@
|
|
1
1
|
(function webpackUniversalModuleDefinition(root, factory) {
|
2
2
|
if(typeof exports === 'object' && typeof module === 'object')
|
3
|
-
module.exports = factory(require("react"), require("prop-types"), require("
|
3
|
+
module.exports = factory(require("react"), require("prop-types"), require("styled-components"), require("react-virtualized"), require("react-dom"), require("react-table"));
|
4
4
|
else if(typeof define === 'function' && define.amd)
|
5
|
-
define(["react", "prop-types", "
|
5
|
+
define(["react", "prop-types", "styled-components", "react-virtualized", "react-dom", "react-table"], factory);
|
6
6
|
else if(typeof exports === 'object')
|
7
|
-
exports["uikit"] = factory(require("react"), require("prop-types"), require("
|
7
|
+
exports["uikit"] = factory(require("react"), require("prop-types"), require("styled-components"), require("react-virtualized"), require("react-dom"), require("react-table"));
|
8
8
|
else
|
9
|
-
root["uikit"] = factory(root["react"], root["prop-types"], root["
|
10
|
-
})(this, (__WEBPACK_EXTERNAL_MODULE_react__, __WEBPACK_EXTERNAL_MODULE_prop_types__,
|
9
|
+
root["uikit"] = factory(root["react"], root["prop-types"], root["styled-components"], root["react-virtualized"], root["react-dom"], root["react-table"]);
|
10
|
+
})(this, (__WEBPACK_EXTERNAL_MODULE_react__, __WEBPACK_EXTERNAL_MODULE_prop_types__, __WEBPACK_EXTERNAL_MODULE_styled_components__, __WEBPACK_EXTERNAL_MODULE_react_virtualized__, __WEBPACK_EXTERNAL_MODULE_react_dom__, __WEBPACK_EXTERNAL_MODULE_react_table__) => {
|
11
11
|
return /******/ (() => { // webpackBootstrap
|
12
12
|
/******/ var __webpack_modules__ = ({
|
13
13
|
|
@@ -28234,6 +28234,380 @@ var BadgeWrapper = styled_components__WEBPACK_IMPORTED_MODULE_2___default()(_lay
|
|
28234
28234
|
return props.$color;
|
28235
28235
|
});
|
28236
28236
|
|
28237
|
+
/***/ }),
|
28238
|
+
|
28239
|
+
/***/ "./src/breadcrumbs/breadcrumbs.js":
|
28240
|
+
/*!****************************************!*\
|
28241
|
+
!*** ./src/breadcrumbs/breadcrumbs.js ***!
|
28242
|
+
\****************************************/
|
28243
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
28244
|
+
|
28245
|
+
"use strict";
|
28246
|
+
__webpack_require__.r(__webpack_exports__);
|
28247
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
28248
|
+
/* harmony export */ Breadcrumbs: () => (/* binding */ Breadcrumbs)
|
28249
|
+
/* harmony export */ });
|
28250
|
+
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! prop-types */ "prop-types");
|
28251
|
+
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_0__);
|
28252
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "react");
|
28253
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
|
28254
|
+
/* harmony import */ var styled_components__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! styled-components */ "styled-components");
|
28255
|
+
/* harmony import */ var styled_components__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(styled_components__WEBPACK_IMPORTED_MODULE_2__);
|
28256
|
+
/* harmony import */ var _hooks__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../hooks */ "./src/hooks/index.js");
|
28257
|
+
/* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../util */ "./src/util/index.js");
|
28258
|
+
/* harmony import */ var _breadcrumbs_item__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./breadcrumbs_item */ "./src/breadcrumbs/breadcrumbs_item.js");
|
28259
|
+
/* harmony import */ var _collapsed_items__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./collapsed_items */ "./src/breadcrumbs/collapsed_items.js");
|
28260
|
+
// LICENSE_CODE ZON
|
28261
|
+
|
28262
|
+
|
28263
|
+
/*jslint react:true*/
|
28264
|
+
var _excluded = ["items"];
|
28265
|
+
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); }
|
28266
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
28267
|
+
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."); }
|
28268
|
+
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); }
|
28269
|
+
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
28270
|
+
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; } }
|
28271
|
+
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
28272
|
+
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; }
|
28273
|
+
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
28274
|
+
|
28275
|
+
|
28276
|
+
|
28277
|
+
|
28278
|
+
|
28279
|
+
|
28280
|
+
|
28281
|
+
var Breadcrumbs = function Breadcrumbs(props) {
|
28282
|
+
var _props$items = props.items,
|
28283
|
+
items = _props$items === void 0 ? [] : _props$items,
|
28284
|
+
rest = _objectWithoutProperties(props, _excluded);
|
28285
|
+
var _useState = (0,react__WEBPACK_IMPORTED_MODULE_1__.useState)(),
|
28286
|
+
_useState2 = _slicedToArray(_useState, 2),
|
28287
|
+
activeIndex = _useState2[0],
|
28288
|
+
setActiveIndex = _useState2[1];
|
28289
|
+
var containerRef = (0,react__WEBPACK_IMPORTED_MODULE_1__.useRef)(null);
|
28290
|
+
var lastItemRef = (0,react__WEBPACK_IMPORTED_MODULE_1__.useRef)(null);
|
28291
|
+
var moreRef = (0,react__WEBPACK_IMPORTED_MODULE_1__.useRef)(null);
|
28292
|
+
var lastItem = items[items.length - 1];
|
28293
|
+
var _useState3 = (0,react__WEBPACK_IMPORTED_MODULE_1__.useState)(items),
|
28294
|
+
_useState4 = _slicedToArray(_useState3, 2),
|
28295
|
+
visibleItems = _useState4[0],
|
28296
|
+
setVisibleItems = _useState4[1];
|
28297
|
+
var _useState5 = (0,react__WEBPACK_IMPORTED_MODULE_1__.useState)([]),
|
28298
|
+
_useState6 = _slicedToArray(_useState5, 2),
|
28299
|
+
hiddenItems = _useState6[0],
|
28300
|
+
setHiddenItems = _useState6[1];
|
28301
|
+
var _useState7 = (0,react__WEBPACK_IMPORTED_MODULE_1__.useState)(false),
|
28302
|
+
_useState8 = _slicedToArray(_useState7, 2),
|
28303
|
+
recalculationRender = _useState8[0],
|
28304
|
+
setRecalculationRender = _useState8[1];
|
28305
|
+
var calculateVisibleItems = (0,react__WEBPACK_IMPORTED_MODULE_1__.useCallback)(function () {
|
28306
|
+
var _lastItemRef$current, _moreRef$current;
|
28307
|
+
var tempVisibleItems = [];
|
28308
|
+
var tempHiddenItems = [];
|
28309
|
+
var containerWidth = containerRef.current.offsetWidth;
|
28310
|
+
var containerChild = Array.from(containerRef.current.children);
|
28311
|
+
var containerChildrenWidth = containerChild.reduce(function (acc, child) {
|
28312
|
+
return acc + child.offsetWidth;
|
28313
|
+
}, 0);
|
28314
|
+
var lastItemWidth = ((_lastItemRef$current = lastItemRef.current) === null || _lastItemRef$current === void 0 ? void 0 : _lastItemRef$current.offsetWidth) || 0;
|
28315
|
+
var moreRefWidth = ((_moreRef$current = moreRef.current) === null || _moreRef$current === void 0 ? void 0 : _moreRef$current.offsetWidth) || 0;
|
28316
|
+
if (containerWidth < containerChildrenWidth - moreRefWidth) {
|
28317
|
+
var stopWidth = 0;
|
28318
|
+
containerChild.splice(-2);
|
28319
|
+
containerChild.forEach(function (item, index) {
|
28320
|
+
stopWidth += item.offsetWidth;
|
28321
|
+
if (containerWidth - lastItemWidth - moreRefWidth >= stopWidth) tempVisibleItems.push(items[index]);else tempHiddenItems.push(items[index]);
|
28322
|
+
});
|
28323
|
+
tempVisibleItems.push(lastItem);
|
28324
|
+
return {
|
28325
|
+
visible: tempVisibleItems,
|
28326
|
+
hidden: tempHiddenItems
|
28327
|
+
};
|
28328
|
+
}
|
28329
|
+
return {
|
28330
|
+
visible: items,
|
28331
|
+
hidden: []
|
28332
|
+
};
|
28333
|
+
}, [items, lastItem]);
|
28334
|
+
(0,react__WEBPACK_IMPORTED_MODULE_1__.useLayoutEffect)(function () {
|
28335
|
+
if (recalculationRender && containerRef.current) {
|
28336
|
+
var _calculateVisibleItem = calculateVisibleItems(),
|
28337
|
+
visible = _calculateVisibleItem.visible,
|
28338
|
+
hidden = _calculateVisibleItem.hidden;
|
28339
|
+
setVisibleItems(visible);
|
28340
|
+
setHiddenItems(hidden);
|
28341
|
+
setRecalculationRender(false);
|
28342
|
+
}
|
28343
|
+
}, [calculateVisibleItems, recalculationRender, items]);
|
28344
|
+
var runRecalculate = (0,react__WEBPACK_IMPORTED_MODULE_1__.useCallback)(function () {
|
28345
|
+
setVisibleItems(items);
|
28346
|
+
setHiddenItems([]);
|
28347
|
+
setRecalculationRender(true);
|
28348
|
+
}, [items]);
|
28349
|
+
(0,_hooks__WEBPACK_IMPORTED_MODULE_3__.useResize)(runRecalculate);
|
28350
|
+
(0,react__WEBPACK_IMPORTED_MODULE_1__.useLayoutEffect)(function () {
|
28351
|
+
var _document$fonts;
|
28352
|
+
runRecalculate();
|
28353
|
+
(_document$fonts = document.fonts) === null || _document$fonts === void 0 || _document$fonts.ready.then(function () {
|
28354
|
+
runRecalculate();
|
28355
|
+
}, function () {
|
28356
|
+
console.error('loading fonts error');
|
28357
|
+
});
|
28358
|
+
}, [runRecalculate]);
|
28359
|
+
var handleBlur = function handleBlur() {
|
28360
|
+
setActiveIndex(undefined);
|
28361
|
+
};
|
28362
|
+
var handleKeyDown = function handleKeyDown(event) {
|
28363
|
+
var isActiveSet = activeIndex !== undefined;
|
28364
|
+
switch (event.key) {
|
28365
|
+
case 'ArrowLeft':
|
28366
|
+
setActiveIndex(function (prev) {
|
28367
|
+
return isActiveSet && visibleItems[prev - 1] ? prev - 1 : items.length - 1;
|
28368
|
+
});
|
28369
|
+
break;
|
28370
|
+
case 'ArrowRight':
|
28371
|
+
setActiveIndex(function (prev) {
|
28372
|
+
return isActiveSet && visibleItems[prev + 1] ? prev + 1 : 0;
|
28373
|
+
});
|
28374
|
+
break;
|
28375
|
+
case 'Enter':
|
28376
|
+
{
|
28377
|
+
if (!isActiveSet) return;
|
28378
|
+
var activeItem = visibleItems[activeIndex];
|
28379
|
+
activeItem === null || activeItem === void 0 || activeItem.onClick();
|
28380
|
+
break;
|
28381
|
+
}
|
28382
|
+
default:
|
28383
|
+
break;
|
28384
|
+
}
|
28385
|
+
};
|
28386
|
+
var itemsList = visibleItems.map(function (item, index) {
|
28387
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_breadcrumbs_item__WEBPACK_IMPORTED_MODULE_5__.BreadcrumbsItem, {
|
28388
|
+
key: item.text,
|
28389
|
+
active: index === activeIndex,
|
28390
|
+
item: item,
|
28391
|
+
isLastItem: visibleItems.length - 1 == index
|
28392
|
+
});
|
28393
|
+
});
|
28394
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(BreadcrumbsContainer, _extends({
|
28395
|
+
"data-testid": "breadcrumbs",
|
28396
|
+
"aria-label": "breadcrumbs",
|
28397
|
+
"data-role": "breadcrumbs"
|
28398
|
+
}, (0,_util__WEBPACK_IMPORTED_MODULE_4__.getCommonProps)(rest), {
|
28399
|
+
ref: containerRef,
|
28400
|
+
tabIndex: 1,
|
28401
|
+
onBlur: handleBlur,
|
28402
|
+
onKeyDown: handleKeyDown
|
28403
|
+
}), items.length === 1 ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_breadcrumbs_item__WEBPACK_IMPORTED_MODULE_5__.BreadcrumbsItem, {
|
28404
|
+
isBackItem: true,
|
28405
|
+
active: activeIndex === 0,
|
28406
|
+
item: items[0]
|
28407
|
+
}) : /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement((react__WEBPACK_IMPORTED_MODULE_1___default().Fragment), null, itemsList.slice(0, -1), (recalculationRender || hiddenItems.length > 0) && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_collapsed_items__WEBPACK_IMPORTED_MODULE_6__.CollapsedItems, {
|
28408
|
+
ref: moreRef,
|
28409
|
+
items: hiddenItems
|
28410
|
+
}), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement("div", {
|
28411
|
+
ref: lastItemRef
|
28412
|
+
}, itemsList.slice(-1))));
|
28413
|
+
};
|
28414
|
+
Breadcrumbs.displayName = 'Breadcrumbs';
|
28415
|
+
Breadcrumbs.propTypes = {
|
28416
|
+
items: prop_types__WEBPACK_IMPORTED_MODULE_0___default().arrayOf(prop_types__WEBPACK_IMPORTED_MODULE_0___default().shape({
|
28417
|
+
text: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().node).isRequired,
|
28418
|
+
onClick: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().func)
|
28419
|
+
}))
|
28420
|
+
};
|
28421
|
+
var BreadcrumbsContainer = styled_components__WEBPACK_IMPORTED_MODULE_2___default().nav.withConfig({
|
28422
|
+
displayName: "BreadcrumbsContainer",
|
28423
|
+
componentId: "sc-1bbwex5-0"
|
28424
|
+
})(["box-sizing:border-box;align-items:center;display:flex;flex-wrap:nowrap;height:36px;"]);
|
28425
|
+
|
28426
|
+
/***/ }),
|
28427
|
+
|
28428
|
+
/***/ "./src/breadcrumbs/breadcrumbs_item.js":
|
28429
|
+
/*!*********************************************!*\
|
28430
|
+
!*** ./src/breadcrumbs/breadcrumbs_item.js ***!
|
28431
|
+
\*********************************************/
|
28432
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
28433
|
+
|
28434
|
+
"use strict";
|
28435
|
+
__webpack_require__.r(__webpack_exports__);
|
28436
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
28437
|
+
/* harmony export */ BreadcrumbsItem: () => (/* binding */ BreadcrumbsItem)
|
28438
|
+
/* harmony export */ });
|
28439
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
|
28440
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
28441
|
+
/* harmony import */ var _layout__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../layout */ "./src/layout/index.js");
|
28442
|
+
/* harmony import */ var _link__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../link */ "./src/link/index.js");
|
28443
|
+
/* harmony import */ var _typography__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../typography */ "./src/typography/index.js");
|
28444
|
+
/* harmony import */ var _divider__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./divider */ "./src/breadcrumbs/divider.js");
|
28445
|
+
// LICENSE_CODE ZON
|
28446
|
+
|
28447
|
+
|
28448
|
+
/*jslint react:true*/
|
28449
|
+
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); }
|
28450
|
+
|
28451
|
+
|
28452
|
+
|
28453
|
+
|
28454
|
+
|
28455
|
+
var BreadcrumbsItem = /*#__PURE__*/(0,react__WEBPACK_IMPORTED_MODULE_0__.forwardRef)(function (props, ref) {
|
28456
|
+
var item = props.item,
|
28457
|
+
isBackItem = props.isBackItem,
|
28458
|
+
isLastItem = props.isLastItem,
|
28459
|
+
active = props.active;
|
28460
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_layout__WEBPACK_IMPORTED_MODULE_1__.Flex, {
|
28461
|
+
ref: ref
|
28462
|
+
}, isLastItem && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_typography__WEBPACK_IMPORTED_MODULE_3__.Label, {
|
28463
|
+
"data-role": "item",
|
28464
|
+
"data-testid": active ? 'active-item' : 'item',
|
28465
|
+
variant: "xs",
|
28466
|
+
color: "gray_11",
|
28467
|
+
no_wrap: true
|
28468
|
+
}, item.text), !isLastItem && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement((react__WEBPACK_IMPORTED_MODULE_0___default().Fragment), null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_link__WEBPACK_IMPORTED_MODULE_2__.Link, _extends({
|
28469
|
+
"data-role": "item",
|
28470
|
+
"data-testid": active ? 'active-item' : 'item'
|
28471
|
+
}, item, {
|
28472
|
+
icon: isBackItem ? 'ArrowLeft' : undefined,
|
28473
|
+
iconPlacement: "left",
|
28474
|
+
variant: "secondary",
|
28475
|
+
size: "sm"
|
28476
|
+
})), !isBackItem && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_divider__WEBPACK_IMPORTED_MODULE_4__.Divider, null)));
|
28477
|
+
});
|
28478
|
+
BreadcrumbsItem.displayName = 'BreadcrumbsItem';
|
28479
|
+
|
28480
|
+
/***/ }),
|
28481
|
+
|
28482
|
+
/***/ "./src/breadcrumbs/collapsed_items.js":
|
28483
|
+
/*!********************************************!*\
|
28484
|
+
!*** ./src/breadcrumbs/collapsed_items.js ***!
|
28485
|
+
\********************************************/
|
28486
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
28487
|
+
|
28488
|
+
"use strict";
|
28489
|
+
__webpack_require__.r(__webpack_exports__);
|
28490
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
28491
|
+
/* harmony export */ CollapsedItems: () => (/* binding */ CollapsedItems)
|
28492
|
+
/* harmony export */ });
|
28493
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
|
28494
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
28495
|
+
/* harmony import */ var _hoc__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../hoc */ "./src/hoc/index.js");
|
28496
|
+
/* harmony import */ var _icon_button__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../icon_button */ "./src/icon_button.js");
|
28497
|
+
/* harmony import */ var _layout__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../layout */ "./src/layout/index.js");
|
28498
|
+
/* harmony import */ var _menu__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../menu */ "./src/menu/index.js");
|
28499
|
+
/* harmony import */ var _divider__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./divider */ "./src/breadcrumbs/divider.js");
|
28500
|
+
// LICENSE_CODE ZON
|
28501
|
+
|
28502
|
+
|
28503
|
+
/*jslint react:true*/
|
28504
|
+
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); }
|
28505
|
+
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; }
|
28506
|
+
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; }
|
28507
|
+
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; }
|
28508
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
28509
|
+
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); }
|
28510
|
+
|
28511
|
+
|
28512
|
+
|
28513
|
+
|
28514
|
+
|
28515
|
+
|
28516
|
+
var CollapsedItems = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().forwardRef(function (_ref, ref) {
|
28517
|
+
var items = _ref.items;
|
28518
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_layout__WEBPACK_IMPORTED_MODULE_3__.Flex, {
|
28519
|
+
ref: ref,
|
28520
|
+
"data-testid": "button-more",
|
28521
|
+
align_items: "center"
|
28522
|
+
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(MenuButton, {
|
28523
|
+
popoverProps: {
|
28524
|
+
items: items
|
28525
|
+
}
|
28526
|
+
}), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_divider__WEBPACK_IMPORTED_MODULE_5__.Divider, null));
|
28527
|
+
});
|
28528
|
+
CollapsedItems.displayName = 'CollapsedItems';
|
28529
|
+
var MenuButton = (0,_hoc__WEBPACK_IMPORTED_MODULE_1__.withPopover)(function (_ref2) {
|
28530
|
+
var popover = _ref2.popover;
|
28531
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_icon_button__WEBPACK_IMPORTED_MODULE_2__.IconButton, {
|
28532
|
+
size: "xs",
|
28533
|
+
icon: "DotsHorizontal",
|
28534
|
+
onClick: popover.toggle
|
28535
|
+
});
|
28536
|
+
}, function (_ref3) {
|
28537
|
+
var items = _ref3.items,
|
28538
|
+
popover = _ref3.popover;
|
28539
|
+
var menuItems = items.map(function (i) {
|
28540
|
+
return _objectSpread(_objectSpread({
|
28541
|
+
key: i.text
|
28542
|
+
}, i), {}, {
|
28543
|
+
onClick: function onClick(e) {
|
28544
|
+
popover.hide();
|
28545
|
+
i === null || i === void 0 || i.onClick(e);
|
28546
|
+
}
|
28547
|
+
});
|
28548
|
+
});
|
28549
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_menu__WEBPACK_IMPORTED_MODULE_4__.Menu, {
|
28550
|
+
size: "sm",
|
28551
|
+
items: menuItems
|
28552
|
+
});
|
28553
|
+
});
|
28554
|
+
|
28555
|
+
/***/ }),
|
28556
|
+
|
28557
|
+
/***/ "./src/breadcrumbs/divider.js":
|
28558
|
+
/*!************************************!*\
|
28559
|
+
!*** ./src/breadcrumbs/divider.js ***!
|
28560
|
+
\************************************/
|
28561
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
28562
|
+
|
28563
|
+
"use strict";
|
28564
|
+
__webpack_require__.r(__webpack_exports__);
|
28565
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
28566
|
+
/* harmony export */ Divider: () => (/* binding */ Divider)
|
28567
|
+
/* harmony export */ });
|
28568
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
|
28569
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
28570
|
+
/* harmony import */ var styled_components__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! styled-components */ "styled-components");
|
28571
|
+
/* harmony import */ var styled_components__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(styled_components__WEBPACK_IMPORTED_MODULE_1__);
|
28572
|
+
/* harmony import */ var _typography__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../typography */ "./src/typography/index.js");
|
28573
|
+
// LICENSE_CODE ZON
|
28574
|
+
|
28575
|
+
|
28576
|
+
/*jslint react:true*/
|
28577
|
+
|
28578
|
+
|
28579
|
+
|
28580
|
+
var Divider = function Divider() {
|
28581
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(StyledLabel, {
|
28582
|
+
variant: "xs",
|
28583
|
+
color: "gray_11"
|
28584
|
+
}, "/");
|
28585
|
+
};
|
28586
|
+
var StyledLabel = styled_components__WEBPACK_IMPORTED_MODULE_1___default()(_typography__WEBPACK_IMPORTED_MODULE_2__.Label).withConfig({
|
28587
|
+
displayName: "StyledLabel",
|
28588
|
+
componentId: "sc-16rqqbg-0"
|
28589
|
+
})(["margin-left:8px;margin-right:8px;"]);
|
28590
|
+
|
28591
|
+
/***/ }),
|
28592
|
+
|
28593
|
+
/***/ "./src/breadcrumbs/index.js":
|
28594
|
+
/*!**********************************!*\
|
28595
|
+
!*** ./src/breadcrumbs/index.js ***!
|
28596
|
+
\**********************************/
|
28597
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
28598
|
+
|
28599
|
+
"use strict";
|
28600
|
+
__webpack_require__.r(__webpack_exports__);
|
28601
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
28602
|
+
/* harmony export */ Breadcrumbs: () => (/* reexport safe */ _breadcrumbs__WEBPACK_IMPORTED_MODULE_0__.Breadcrumbs)
|
28603
|
+
/* harmony export */ });
|
28604
|
+
/* harmony import */ var _breadcrumbs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./breadcrumbs */ "./src/breadcrumbs/breadcrumbs.js");
|
28605
|
+
// LICENSE_CODE ZON
|
28606
|
+
|
28607
|
+
|
28608
|
+
/*jslint react:true*/
|
28609
|
+
|
28610
|
+
|
28237
28611
|
/***/ }),
|
28238
28612
|
|
28239
28613
|
/***/ "./src/button/button.js":
|
@@ -28257,8 +28631,9 @@ __webpack_require__.r(__webpack_exports__);
|
|
28257
28631
|
/* harmony import */ var styled_components__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(styled_components__WEBPACK_IMPORTED_MODULE_3__);
|
28258
28632
|
/* harmony import */ var _icon__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../icon */ "./src/icon.js");
|
28259
28633
|
/* harmony import */ var _typography__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../typography */ "./src/typography/index.js");
|
28260
|
-
/* harmony import */ var
|
28261
|
-
/* harmony import */ var
|
28634
|
+
/* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../util */ "./src/util/index.js");
|
28635
|
+
/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../utils */ "./src/utils.js");
|
28636
|
+
/* harmony import */ var _loading_icon__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./loading_icon */ "./src/button/loading_icon.js");
|
28262
28637
|
// LICENSE_CODE ZON
|
28263
28638
|
|
28264
28639
|
|
@@ -28276,6 +28651,7 @@ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) r
|
|
28276
28651
|
|
28277
28652
|
|
28278
28653
|
|
28654
|
+
|
28279
28655
|
var Button = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().forwardRef(function (props, ref) {
|
28280
28656
|
var text = props.text,
|
28281
28657
|
variant = props.variant,
|
@@ -28284,7 +28660,7 @@ var Button = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().forwardRe
|
|
28284
28660
|
loading = props.loading,
|
28285
28661
|
loadingText = props.loadingText,
|
28286
28662
|
rest = _objectWithoutProperties(props, _excluded);
|
28287
|
-
var _getIconProps = (0,
|
28663
|
+
var _getIconProps = (0,_utils__WEBPACK_IMPORTED_MODULE_7__.getIconProps)('Button', props),
|
28288
28664
|
isLeft = _getIconProps.isLeft,
|
28289
28665
|
isRight = _getIconProps.isRight,
|
28290
28666
|
iconProps = _objectWithoutProperties(_getIconProps, _excluded2);
|
@@ -28295,7 +28671,7 @@ var Button = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().forwardRe
|
|
28295
28671
|
$variant: variant,
|
28296
28672
|
$size: size,
|
28297
28673
|
$iconPlacement: isLeft || loading ? 'left' : isRight ? 'right' : ''
|
28298
|
-
}), loading && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(
|
28674
|
+
}), loading && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(_loading_icon__WEBPACK_IMPORTED_MODULE_8__.LoadingIcon, {
|
28299
28675
|
size: iconProps.size
|
28300
28676
|
}), isLeft && !loading && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(_icon__WEBPACK_IMPORTED_MODULE_4__.Icon, iconProps), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(_typography__WEBPACK_IMPORTED_MODULE_5__.Label, {
|
28301
28677
|
variant: size == 'xs' ? 'sm' : 'lg',
|
@@ -28314,7 +28690,7 @@ Button.propTypes = {
|
|
28314
28690
|
text: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().node).isRequired,
|
28315
28691
|
variant: prop_types__WEBPACK_IMPORTED_MODULE_1___default().oneOf(['primary', 'secondary', 'negative', 'negative_secondary', 'positive', 'white']),
|
28316
28692
|
size: prop_types__WEBPACK_IMPORTED_MODULE_1___default().oneOf(['xs', 'sm', 'md', 'lg']),
|
28317
|
-
icon: prop_types__WEBPACK_IMPORTED_MODULE_1___default().oneOf(
|
28693
|
+
icon: prop_types__WEBPACK_IMPORTED_MODULE_1___default().oneOf(_utils__WEBPACK_IMPORTED_MODULE_7__.iconNames),
|
28318
28694
|
iconPlacement: prop_types__WEBPACK_IMPORTED_MODULE_1___default().oneOf(['left', 'right']),
|
28319
28695
|
disabled: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().bool),
|
28320
28696
|
loading: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().bool),
|
@@ -28332,12 +28708,12 @@ var StyledButton = styled_components__WEBPACK_IMPORTED_MODULE_3___default().butt
|
|
28332
28708
|
gap = 2;
|
28333
28709
|
paddingLeft = paddingRight = 8;
|
28334
28710
|
}
|
28335
|
-
return (0,styled_components__WEBPACK_IMPORTED_MODULE_3__.css)(["gap:", ";padding-left:", ";padding-right:", ";"], (0,
|
28711
|
+
return (0,styled_components__WEBPACK_IMPORTED_MODULE_3__.css)(["gap:", ";padding-left:", ";padding-right:", ";"], (0,_utils__WEBPACK_IMPORTED_MODULE_7__.toPixel)(gap), (0,_utils__WEBPACK_IMPORTED_MODULE_7__.toPixel)(paddingLeft), (0,_utils__WEBPACK_IMPORTED_MODULE_7__.toPixel)(paddingRight));
|
28336
28712
|
}, function (props) {
|
28337
|
-
var colors = (0,
|
28713
|
+
var colors = (0,_util__WEBPACK_IMPORTED_MODULE_6__.getButtonColors)(props);
|
28338
28714
|
return (0,styled_components__WEBPACK_IMPORTED_MODULE_3__.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 }"));
|
28339
28715
|
}, function (props) {
|
28340
|
-
return (0,
|
28716
|
+
return (0,_util__WEBPACK_IMPORTED_MODULE_6__.getButtonSize)(props.$size);
|
28341
28717
|
});
|
28342
28718
|
|
28343
28719
|
/***/ }),
|
@@ -28371,7 +28747,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
28371
28747
|
"use strict";
|
28372
28748
|
__webpack_require__.r(__webpack_exports__);
|
28373
28749
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
28374
|
-
/* harmony export */
|
28750
|
+
/* harmony export */ LoadingIcon: () => (/* binding */ LoadingIcon)
|
28375
28751
|
/* harmony export */ });
|
28376
28752
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
|
28377
28753
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
@@ -28406,7 +28782,6 @@ var Spinner = styled_components__WEBPACK_IMPORTED_MODULE_1___default().svg.withC
|
|
28406
28782
|
})(["", " .spinner_V8m1{transform-origin:center;animation:spinner_zKoa 2s linear infinite}.spinner_V8m1 circle{stroke-linecap:round;animation:spinner_YpZS 1.5s ease-in-out infinite}@keyframes spinner_zKoa{100%{transform:rotate(360deg)}}@keyframes spinner_YpZS{0%{stroke-dasharray:0 150;stroke-dashoffset:0}47.5%{stroke-dasharray:42 150;stroke-dashoffset:-16}95%,100%{stroke-dasharray:42 150;stroke-dashoffset:-59}}"], function (props) {
|
28407
28783
|
return (0,_utils__WEBPACK_IMPORTED_MODULE_2__.toIconSize)(props.size);
|
28408
28784
|
});
|
28409
|
-
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (LoadingIcon);
|
28410
28785
|
|
28411
28786
|
/***/ }),
|
28412
28787
|
|
@@ -30876,23 +31251,27 @@ __webpack_require__.r(__webpack_exports__);
|
|
30876
31251
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
30877
31252
|
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
30878
31253
|
/* harmony export */ });
|
30879
|
-
/* harmony import */ var
|
30880
|
-
/* harmony import */ var
|
30881
|
-
/* harmony import */ var
|
30882
|
-
/* harmony import */ var
|
30883
|
-
/* harmony import */ var
|
30884
|
-
/* harmony import */ var
|
30885
|
-
/* harmony import */ var
|
30886
|
-
/* harmony import */ var
|
30887
|
-
/* harmony import */ var
|
30888
|
-
/* harmony import */ var
|
30889
|
-
/* harmony import */ var
|
30890
|
-
/* harmony import */ var
|
31254
|
+
/* harmony import */ var lodash_omit__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/omit */ "./node_modules/lodash/omit.js");
|
31255
|
+
/* harmony import */ var lodash_omit__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_omit__WEBPACK_IMPORTED_MODULE_0__);
|
31256
|
+
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! prop-types */ "prop-types");
|
31257
|
+
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
|
31258
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! react */ "react");
|
31259
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_2__);
|
31260
|
+
/* harmony import */ var styled_components__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! styled-components */ "styled-components");
|
31261
|
+
/* harmony import */ var styled_components__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(styled_components__WEBPACK_IMPORTED_MODULE_3__);
|
31262
|
+
/* harmony import */ var _constants__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../constants */ "./src/constants.js");
|
31263
|
+
/* harmony import */ var _hoc__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../hoc */ "./src/hoc/index.js");
|
31264
|
+
/* harmony import */ var _icon__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../icon */ "./src/icon.js");
|
31265
|
+
/* harmony import */ var _menu__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../menu */ "./src/menu/index.js");
|
31266
|
+
/* harmony import */ var _typography__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../typography */ "./src/typography/index.js");
|
31267
|
+
/* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../util */ "./src/util/index.js");
|
31268
|
+
/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../utils */ "./src/utils.js");
|
30891
31269
|
// LICENSE_CODE ZON
|
30892
31270
|
|
30893
31271
|
|
30894
31272
|
/*jslint react:true*/
|
30895
|
-
|
31273
|
+
|
31274
|
+
var _excluded = ["text", "variant", "size", "items", "disabled", "onClick"],
|
30896
31275
|
_excluded2 = ["isLeft"],
|
30897
31276
|
_excluded3 = ["popover"];
|
30898
31277
|
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); }
|
@@ -30907,41 +31286,40 @@ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) r
|
|
30907
31286
|
|
30908
31287
|
|
30909
31288
|
|
30910
|
-
|
31289
|
+
|
31290
|
+
var ComboButton = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().forwardRef(function (props, ref) {
|
30911
31291
|
var text = props.text,
|
30912
31292
|
variant = props.variant,
|
30913
31293
|
size = props.size,
|
30914
31294
|
items = props.items,
|
30915
31295
|
disabled = props.disabled,
|
30916
31296
|
onClick = props.onClick,
|
30917
|
-
icon = props.icon,
|
30918
|
-
iconPlacement = props.iconPlacement,
|
30919
31297
|
rest = _objectWithoutProperties(props, _excluded);
|
30920
|
-
var _getIconProps = (0,
|
31298
|
+
var _getIconProps = (0,_utils__WEBPACK_IMPORTED_MODULE_10__.getIconProps)('Button', props),
|
30921
31299
|
isLeft = _getIconProps.isLeft,
|
30922
31300
|
iconProps = _objectWithoutProperties(_getIconProps, _excluded2);
|
30923
|
-
var menuProps = (0,
|
31301
|
+
var menuProps = (0,react__WEBPACK_IMPORTED_MODULE_2__.useMemo)(function () {
|
30924
31302
|
return {
|
30925
31303
|
size: size == 'xs' ? 'sm' : 'md',
|
30926
31304
|
items: items
|
30927
31305
|
};
|
30928
31306
|
}, [size, items]);
|
30929
|
-
return /*#__PURE__*/
|
31307
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(StyledButtonWrapper, _extends({
|
30930
31308
|
ref: ref
|
30931
|
-
}, rest, {
|
31309
|
+
}, lodash_omit__WEBPACK_IMPORTED_MODULE_0___default()(rest, 'icon', 'iconPlacement'), {
|
30932
31310
|
disabled: disabled,
|
30933
31311
|
$variant: variant,
|
30934
31312
|
$size: size,
|
30935
31313
|
$iconPlacement: isLeft ? 'left' : ''
|
30936
|
-
}), /*#__PURE__*/
|
31314
|
+
}), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(StyledButton, {
|
30937
31315
|
disabled: disabled,
|
30938
31316
|
onClick: onClick,
|
30939
31317
|
"data-testid": "combo_button_main"
|
30940
|
-
}, /*#__PURE__*/
|
31318
|
+
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(ComboButtonContent, null, isLeft && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(_icon__WEBPACK_IMPORTED_MODULE_6__.Icon, iconProps), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(_typography__WEBPACK_IMPORTED_MODULE_8__.Label, {
|
30941
31319
|
variant: size == 'xs' ? 'sm' : 'lg',
|
30942
31320
|
no_wrap: true,
|
30943
31321
|
"data-label": true
|
30944
|
-
}, text))), /*#__PURE__*/
|
31322
|
+
}, text))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(ComboButtonMenuTrigger, {
|
30945
31323
|
disabled: disabled,
|
30946
31324
|
popoverProps: menuProps
|
30947
31325
|
}));
|
@@ -30952,18 +31330,18 @@ ComboButton.defaultProps = {
|
|
30952
31330
|
size: 'sm'
|
30953
31331
|
};
|
30954
31332
|
ComboButton.propTypes = {
|
30955
|
-
text: (
|
30956
|
-
variant:
|
30957
|
-
size:
|
30958
|
-
icon:
|
30959
|
-
items:
|
30960
|
-
disabled: (
|
31333
|
+
text: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().string).isRequired,
|
31334
|
+
variant: prop_types__WEBPACK_IMPORTED_MODULE_1___default().oneOf(['primary', 'secondary', 'negative', 'negative_secondary', 'positive', 'white']),
|
31335
|
+
size: prop_types__WEBPACK_IMPORTED_MODULE_1___default().oneOf(['xs', 'sm', 'md', 'lg']),
|
31336
|
+
icon: prop_types__WEBPACK_IMPORTED_MODULE_1___default().oneOf(_utils__WEBPACK_IMPORTED_MODULE_10__.iconNames),
|
31337
|
+
items: prop_types__WEBPACK_IMPORTED_MODULE_1___default().arrayOf((prop_types__WEBPACK_IMPORTED_MODULE_1___default().any)).isRequired,
|
31338
|
+
disabled: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().bool)
|
30961
31339
|
};
|
30962
31340
|
var ComboButtonMenu = function ComboButtonMenu(props) {
|
30963
31341
|
var size = props.size,
|
30964
31342
|
items = props.items,
|
30965
31343
|
popover = props.popover;
|
30966
|
-
return /*#__PURE__*/
|
31344
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(_menu__WEBPACK_IMPORTED_MODULE_7__.Menu, {
|
30967
31345
|
size: size,
|
30968
31346
|
items: items,
|
30969
31347
|
onClick: popover.hide
|
@@ -30972,20 +31350,20 @@ var ComboButtonMenu = function ComboButtonMenu(props) {
|
|
30972
31350
|
var ArrowIcon = function ArrowIcon(props) {
|
30973
31351
|
var popover = props.popover,
|
30974
31352
|
rest = _objectWithoutProperties(props, _excluded3);
|
30975
|
-
return /*#__PURE__*/
|
31353
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(ComboButtonArrow, _extends({
|
30976
31354
|
onClick: popover.toggle
|
30977
31355
|
}, rest, {
|
30978
31356
|
"data-testid": "combo_button_menu_button"
|
30979
|
-
}), /*#__PURE__*/
|
31357
|
+
}), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(_icon__WEBPACK_IMPORTED_MODULE_6__.Icon, {
|
30980
31358
|
name: "ChevronDown",
|
30981
31359
|
size: "xs"
|
30982
31360
|
}));
|
30983
31361
|
};
|
30984
|
-
var ComboButtonMenuTrigger = (0,
|
31362
|
+
var ComboButtonMenuTrigger = (0,_hoc__WEBPACK_IMPORTED_MODULE_5__.withPopover)(ArrowIcon, ComboButtonMenu, {
|
30985
31363
|
placement: 'bottom-end',
|
30986
|
-
zIndex:
|
31364
|
+
zIndex: _constants__WEBPACK_IMPORTED_MODULE_4__.Z_INDEX.combobutton
|
30987
31365
|
});
|
30988
|
-
var StyledButtonWrapper =
|
31366
|
+
var StyledButtonWrapper = styled_components__WEBPACK_IMPORTED_MODULE_3___default().div.withConfig({
|
30989
31367
|
displayName: "StyledButtonWrapper",
|
30990
31368
|
componentId: "sc-s9elw5-0"
|
30991
31369
|
})(["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) {
|
@@ -30997,22 +31375,22 @@ var StyledButtonWrapper = styled_components__WEBPACK_IMPORTED_MODULE_2___default
|
|
30997
31375
|
gap = 2;
|
30998
31376
|
paddingLeft = paddingRight = 8;
|
30999
31377
|
}
|
31000
|
-
return (0,
|
31378
|
+
return (0,styled_components__WEBPACK_IMPORTED_MODULE_3__.css)(["", "{gap:", ";padding-left:", ";padding-right:", ";}"], ComboButtonContent, (0,_utils__WEBPACK_IMPORTED_MODULE_10__.toPixel)(gap), (0,_utils__WEBPACK_IMPORTED_MODULE_10__.toPixel)(paddingLeft), (0,_utils__WEBPACK_IMPORTED_MODULE_10__.toPixel)(paddingRight));
|
31001
31379
|
}, function (props) {
|
31002
|
-
var colors = (0,
|
31003
|
-
return (0,
|
31380
|
+
var colors = (0,_util__WEBPACK_IMPORTED_MODULE_9__.getButtonColors)(props);
|
31381
|
+
return (0,styled_components__WEBPACK_IMPORTED_MODULE_3__.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 "));
|
31004
31382
|
}, function (props) {
|
31005
|
-
return (0,
|
31383
|
+
return (0,_util__WEBPACK_IMPORTED_MODULE_9__.getButtonSize)(props.$size);
|
31006
31384
|
});
|
31007
|
-
var StyledButton =
|
31385
|
+
var StyledButton = styled_components__WEBPACK_IMPORTED_MODULE_3___default().button.withConfig({
|
31008
31386
|
displayName: "StyledButton",
|
31009
31387
|
componentId: "sc-s9elw5-1"
|
31010
31388
|
})(["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;"]);
|
31011
|
-
var ComboButtonContent =
|
31389
|
+
var ComboButtonContent = styled_components__WEBPACK_IMPORTED_MODULE_3___default().div.withConfig({
|
31012
31390
|
displayName: "ComboButtonContent",
|
31013
31391
|
componentId: "sc-s9elw5-2"
|
31014
31392
|
})(["display:flex;align-items:center;height:100%;"]);
|
31015
|
-
var ComboButtonArrow =
|
31393
|
+
var ComboButtonArrow = styled_components__WEBPACK_IMPORTED_MODULE_3___default().button.withConfig({
|
31016
31394
|
displayName: "ComboButtonArrow",
|
31017
31395
|
componentId: "sc-s9elw5-3"
|
31018
31396
|
})(["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;}"]);
|
@@ -31081,16 +31459,17 @@ var Z_INDEX = {
|
|
31081
31459
|
"use strict";
|
31082
31460
|
__webpack_require__.r(__webpack_exports__);
|
31083
31461
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
31084
|
-
/* harmony export */ Badge: () => (/* reexport safe */
|
31085
|
-
/* harmony export */
|
31462
|
+
/* harmony export */ Badge: () => (/* reexport safe */ _badge__WEBPACK_IMPORTED_MODULE_10__.Badge),
|
31463
|
+
/* harmony export */ Breadcrumbs: () => (/* reexport safe */ _breadcrumbs__WEBPACK_IMPORTED_MODULE_12__.Breadcrumbs),
|
31464
|
+
/* harmony export */ Button: () => (/* reexport safe */ _button__WEBPACK_IMPORTED_MODULE_11__.Button),
|
31086
31465
|
/* harmony export */ Chart: () => (/* reexport safe */ _chart__WEBPACK_IMPORTED_MODULE_0__["default"]),
|
31087
|
-
/* harmony export */ ClickableTag: () => (/* reexport safe */
|
31466
|
+
/* harmony export */ ClickableTag: () => (/* reexport safe */ _tag__WEBPACK_IMPORTED_MODULE_20__.ClickableTag),
|
31088
31467
|
/* harmony export */ Code: () => (/* reexport safe */ _code__WEBPACK_IMPORTED_MODULE_13__.Code),
|
31089
31468
|
/* harmony export */ CodeBlock: () => (/* reexport safe */ _code__WEBPACK_IMPORTED_MODULE_13__.CodeBlock),
|
31090
31469
|
/* harmony export */ CodeSnippet: () => (/* reexport safe */ _code__WEBPACK_IMPORTED_MODULE_13__.CodeSnippet),
|
31091
31470
|
/* harmony export */ ComboButton: () => (/* reexport safe */ _combo_button__WEBPACK_IMPORTED_MODULE_1__["default"]),
|
31092
|
-
/* harmony export */ Icon: () => (/* reexport safe */
|
31093
|
-
/* harmony export */ IconButton: () => (/* reexport safe */
|
31471
|
+
/* harmony export */ Icon: () => (/* reexport safe */ _icon__WEBPACK_IMPORTED_MODULE_21__.Icon),
|
31472
|
+
/* harmony export */ IconButton: () => (/* reexport safe */ _icon_button__WEBPACK_IMPORTED_MODULE_22__.IconButton),
|
31094
31473
|
/* harmony export */ InfoChip: () => (/* reexport safe */ _infochip__WEBPACK_IMPORTED_MODULE_2__["default"]),
|
31095
31474
|
/* harmony export */ Input: () => (/* reexport module object */ _input__WEBPACK_IMPORTED_MODULE_3__),
|
31096
31475
|
/* harmony export */ Layout: () => (/* reexport module object */ _layout__WEBPACK_IMPORTED_MODULE_4__),
|
@@ -31099,17 +31478,17 @@ __webpack_require__.r(__webpack_exports__);
|
|
31099
31478
|
/* harmony export */ Modal: () => (/* reexport module object */ _modal__WEBPACK_IMPORTED_MODULE_5__),
|
31100
31479
|
/* harmony export */ Progress: () => (/* reexport safe */ _progress__WEBPACK_IMPORTED_MODULE_17__.Progress),
|
31101
31480
|
/* harmony export */ ProgressBar: () => (/* reexport safe */ _progress__WEBPACK_IMPORTED_MODULE_17__.ProgressBar),
|
31102
|
-
/* harmony export */ RemovableTag: () => (/* reexport safe */
|
31481
|
+
/* harmony export */ RemovableTag: () => (/* reexport safe */ _tag__WEBPACK_IMPORTED_MODULE_20__.RemovableTag),
|
31103
31482
|
/* harmony export */ Snackbar: () => (/* reexport safe */ _snackbar__WEBPACK_IMPORTED_MODULE_18__.Snackbar),
|
31104
|
-
/* harmony export */ Tab: () => (/* reexport safe */
|
31105
|
-
/* harmony export */ Table: () => (/* reexport safe */
|
31106
|
-
/* harmony export */ TagGroup: () => (/* reexport safe */
|
31107
|
-
/* harmony export */ Tooltip: () => (/* reexport safe */
|
31108
|
-
/* harmony export */ Typography: () => (/* reexport module object */
|
31109
|
-
/* harmony export */ theme: () => (/* reexport safe */
|
31110
|
-
/* harmony export */ translation: () => (/* reexport safe */
|
31483
|
+
/* harmony export */ Tab: () => (/* reexport safe */ _tab__WEBPACK_IMPORTED_MODULE_8__["default"]),
|
31484
|
+
/* harmony export */ Table: () => (/* reexport safe */ _table__WEBPACK_IMPORTED_MODULE_19__.Table),
|
31485
|
+
/* harmony export */ TagGroup: () => (/* reexport safe */ _tag__WEBPACK_IMPORTED_MODULE_20__.TagGroup),
|
31486
|
+
/* harmony export */ Tooltip: () => (/* reexport safe */ _tooltip__WEBPACK_IMPORTED_MODULE_23__.Tooltip),
|
31487
|
+
/* harmony export */ Typography: () => (/* reexport module object */ _typography__WEBPACK_IMPORTED_MODULE_9__),
|
31488
|
+
/* harmony export */ theme: () => (/* reexport safe */ _theme__WEBPACK_IMPORTED_MODULE_6__["default"]),
|
31489
|
+
/* harmony export */ translation: () => (/* reexport safe */ _translation__WEBPACK_IMPORTED_MODULE_7__["default"]),
|
31111
31490
|
/* harmony export */ withPopover: () => (/* reexport safe */ _hoc__WEBPACK_IMPORTED_MODULE_14__.withPopover),
|
31112
|
-
/* harmony export */ withTooltip: () => (/* reexport safe */
|
31491
|
+
/* harmony export */ withTooltip: () => (/* reexport safe */ _tooltip__WEBPACK_IMPORTED_MODULE_23__.withTooltip)
|
31113
31492
|
/* harmony export */ });
|
31114
31493
|
/* harmony import */ var _chart__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./chart */ "./src/chart/index.js");
|
31115
31494
|
/* harmony import */ var _combo_button__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./combo_button */ "./src/combo_button/index.js");
|
@@ -31117,23 +31496,24 @@ __webpack_require__.r(__webpack_exports__);
|
|
31117
31496
|
/* harmony import */ var _input__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./input */ "./src/input/index.js");
|
31118
31497
|
/* harmony import */ var _layout__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./layout */ "./src/layout/index.js");
|
31119
31498
|
/* harmony import */ var _modal__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./modal */ "./src/modal/index.js");
|
31120
|
-
/* harmony import */ var
|
31121
|
-
/* harmony import */ var
|
31122
|
-
/* harmony import */ var
|
31123
|
-
/* harmony import */ var
|
31124
|
-
/* harmony import */ var
|
31125
|
-
/* harmony import */ var
|
31126
|
-
/* harmony import */ var
|
31499
|
+
/* harmony import */ var _theme__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./theme */ "./src/theme.js");
|
31500
|
+
/* harmony import */ var _translation__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./translation */ "./src/translation.js");
|
31501
|
+
/* harmony import */ var _tab__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./tab */ "./src/tab/index.js");
|
31502
|
+
/* harmony import */ var _typography__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./typography */ "./src/typography/index.js");
|
31503
|
+
/* harmony import */ var _badge__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./badge */ "./src/badge.js");
|
31504
|
+
/* harmony import */ var _button__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./button */ "./src/button/index.js");
|
31505
|
+
/* harmony import */ var _breadcrumbs__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./breadcrumbs */ "./src/breadcrumbs/index.js");
|
31127
31506
|
/* harmony import */ var _code__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./code */ "./src/code/index.js");
|
31128
31507
|
/* harmony import */ var _hoc__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./hoc */ "./src/hoc/index.js");
|
31129
31508
|
/* harmony import */ var _link__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ./link */ "./src/link/index.js");
|
31130
31509
|
/* harmony import */ var _menu__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ./menu */ "./src/menu/index.js");
|
31131
31510
|
/* harmony import */ var _progress__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ./progress */ "./src/progress/index.js");
|
31132
31511
|
/* harmony import */ var _snackbar__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ./snackbar */ "./src/snackbar/index.js");
|
31133
|
-
/* harmony import */ var
|
31134
|
-
/* harmony import */ var
|
31135
|
-
/* harmony import */ var
|
31136
|
-
/* harmony import */ var
|
31512
|
+
/* harmony import */ var _table__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! ./table */ "./src/table/index.js");
|
31513
|
+
/* harmony import */ var _tag__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! ./tag */ "./src/tag/index.js");
|
31514
|
+
/* harmony import */ var _icon__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! ./icon */ "./src/icon.js");
|
31515
|
+
/* harmony import */ var _icon_button__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! ./icon_button */ "./src/icon_button.js");
|
31516
|
+
/* harmony import */ var _tooltip__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(/*! ./tooltip */ "./src/tooltip.js");
|
31137
31517
|
// LICENSE_CODE ZON
|
31138
31518
|
|
31139
31519
|
|
@@ -31161,6 +31541,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
31161
31541
|
|
31162
31542
|
|
31163
31543
|
|
31544
|
+
|
31164
31545
|
|
31165
31546
|
|
31166
31547
|
/***/ }),
|
@@ -31810,9 +32191,10 @@ __webpack_require__.r(__webpack_exports__);
|
|
31810
32191
|
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! prop-types */ "prop-types");
|
31811
32192
|
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_2__);
|
31812
32193
|
/* harmony import */ var _icons__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @icons */ "./assets/icons/index.js");
|
31813
|
-
/* harmony import */ var
|
31814
|
-
/* harmony import */ var
|
31815
|
-
/* harmony import */ var
|
32194
|
+
/* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./util */ "./src/util/index.js");
|
32195
|
+
/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./utils */ "./src/utils.js");
|
32196
|
+
/* harmony import */ var _tooltip__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./tooltip */ "./src/tooltip.js");
|
32197
|
+
/* harmony import */ var _theme__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./theme */ "./src/theme.js");
|
31816
32198
|
// LICENSE_CODE ZON
|
31817
32199
|
|
31818
32200
|
|
@@ -31828,13 +32210,14 @@ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) r
|
|
31828
32210
|
|
31829
32211
|
|
31830
32212
|
|
32213
|
+
|
31831
32214
|
var IconButton = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().forwardRef(function (props, ref) {
|
31832
32215
|
var variant = props.variant,
|
31833
32216
|
disabled = props.disabled,
|
31834
32217
|
active = props.active,
|
31835
32218
|
icon = props.icon,
|
31836
32219
|
tooltip = props.tooltip,
|
31837
|
-
|
32220
|
+
placement = props.tooltipPlacement,
|
31838
32221
|
size = props.size,
|
31839
32222
|
noBackColor = props.noBackColor,
|
31840
32223
|
rest = _objectWithoutProperties(props, _excluded);
|
@@ -31843,9 +32226,9 @@ var IconButton = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().forwa
|
|
31843
32226
|
var ic = _icons__WEBPACK_IMPORTED_MODULE_3__["default"][icon];
|
31844
32227
|
if (!ic) return null;
|
31845
32228
|
var iconSize = size == 'lg' || size == 'md' ? 18 : 16;
|
31846
|
-
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(
|
32229
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_tooltip__WEBPACK_IMPORTED_MODULE_6__.Tooltip, {
|
31847
32230
|
tooltip: tooltip,
|
31848
|
-
placement:
|
32231
|
+
placement: placement
|
31849
32232
|
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(StyledIconButton, _extends({
|
31850
32233
|
ref: ref
|
31851
32234
|
}, rest, {
|
@@ -31866,11 +32249,11 @@ IconButton.defaultProps = {
|
|
31866
32249
|
size: 'md'
|
31867
32250
|
};
|
31868
32251
|
IconButton.propTypes = {
|
31869
|
-
icon: prop_types__WEBPACK_IMPORTED_MODULE_2___default().oneOf(
|
32252
|
+
icon: prop_types__WEBPACK_IMPORTED_MODULE_2___default().oneOf(_utils__WEBPACK_IMPORTED_MODULE_5__.iconNames).isRequired,
|
31870
32253
|
disabled: (prop_types__WEBPACK_IMPORTED_MODULE_2___default().bool),
|
31871
32254
|
active: (prop_types__WEBPACK_IMPORTED_MODULE_2___default().bool),
|
31872
32255
|
tooltip: (prop_types__WEBPACK_IMPORTED_MODULE_2___default().node),
|
31873
|
-
tooltipPlacement: prop_types__WEBPACK_IMPORTED_MODULE_2___default().oneOf(
|
32256
|
+
tooltipPlacement: prop_types__WEBPACK_IMPORTED_MODULE_2___default().oneOf(_util__WEBPACK_IMPORTED_MODULE_4__.tooltipPlacement),
|
31874
32257
|
size: prop_types__WEBPACK_IMPORTED_MODULE_2___default().oneOf(['xs', 'sm', 'md', 'lg']),
|
31875
32258
|
noBackColor: (prop_types__WEBPACK_IMPORTED_MODULE_2___default().bool)
|
31876
32259
|
};
|
@@ -31878,7 +32261,7 @@ var StyledIconButton = styled_components__WEBPACK_IMPORTED_MODULE_1___default().
|
|
31878
32261
|
displayName: "StyledIconButton",
|
31879
32262
|
componentId: "sc-114c1w5-0"
|
31880
32263
|
})(["display:flex;align-items:center;justify-content:center;border-radius:4px;padding:0;box-sizing:border-box;", " cursor:pointer;", ""], function (props) {
|
31881
|
-
return (0,
|
32264
|
+
return (0,_utils__WEBPACK_IMPORTED_MODULE_5__.toSize)({
|
31882
32265
|
lg: 40,
|
31883
32266
|
md: 36,
|
31884
32267
|
sm: 28,
|
@@ -31886,15 +32269,15 @@ var StyledIconButton = styled_components__WEBPACK_IMPORTED_MODULE_1___default().
|
|
31886
32269
|
}[props.$size] || 36);
|
31887
32270
|
}, function (props) {
|
31888
32271
|
var backColor = 'transparent';
|
31889
|
-
var border = "1px solid ".concat(
|
31890
|
-
var hoverBackColor =
|
31891
|
-
var hoverBorder = "1px solid ".concat(
|
31892
|
-
var activeBackColor =
|
31893
|
-
var activeBorder = "1px solid ".concat(
|
31894
|
-
var disabledBorder = "1px solid ".concat(
|
32272
|
+
var border = "1px solid ".concat(_theme__WEBPACK_IMPORTED_MODULE_7__["default"].color.gray_6);
|
32273
|
+
var hoverBackColor = _theme__WEBPACK_IMPORTED_MODULE_7__["default"].color.gray_2;
|
32274
|
+
var hoverBorder = "1px solid ".concat(_theme__WEBPACK_IMPORTED_MODULE_7__["default"].color.gray_8);
|
32275
|
+
var activeBackColor = _theme__WEBPACK_IMPORTED_MODULE_7__["default"].color.blue_4;
|
32276
|
+
var activeBorder = "1px solid ".concat(_theme__WEBPACK_IMPORTED_MODULE_7__["default"].color.blue_4);
|
32277
|
+
var disabledBorder = "1px solid ".concat(_theme__WEBPACK_IMPORTED_MODULE_7__["default"].color.gray_7);
|
31895
32278
|
if (props.$active) {
|
31896
|
-
backColor =
|
31897
|
-
border = "1px solid ".concat(
|
32279
|
+
backColor = _theme__WEBPACK_IMPORTED_MODULE_7__["default"].color.blue_4;
|
32280
|
+
border = "1px solid ".concat(_theme__WEBPACK_IMPORTED_MODULE_7__["default"].color.blue_4);
|
31898
32281
|
}
|
31899
32282
|
if (props.$noBackColor) {
|
31900
32283
|
backColor = 'transparent';
|
@@ -31913,10 +32296,10 @@ var StyledSvg = styled_components__WEBPACK_IMPORTED_MODULE_1___default().svg.wit
|
|
31913
32296
|
displayName: "StyledSvg",
|
31914
32297
|
componentId: "sc-114c1w5-1"
|
31915
32298
|
})(["color:", ";", " ", ":hover:not(:disabled) &{color:", ";}", ":active:not(:disabled) &{color:", ";}", ":disabled &{color:", ";}"], function (props) {
|
31916
|
-
return props.$active ?
|
32299
|
+
return props.$active ? _theme__WEBPACK_IMPORTED_MODULE_7__["default"].color.blue_11 : _theme__WEBPACK_IMPORTED_MODULE_7__["default"].color.gray_9;
|
31917
32300
|
}, function (props) {
|
31918
|
-
return (0,
|
31919
|
-
}, StyledIconButton,
|
32301
|
+
return (0,_utils__WEBPACK_IMPORTED_MODULE_5__.toSize)(props.$size);
|
32302
|
+
}, StyledIconButton, _theme__WEBPACK_IMPORTED_MODULE_7__["default"].color.gray_11_25, StyledIconButton, _theme__WEBPACK_IMPORTED_MODULE_7__["default"].color.blue_11, StyledIconButton, _theme__WEBPACK_IMPORTED_MODULE_7__["default"].color.gray_7);
|
31920
32303
|
var calcSize = function calcSize(variant, size) {
|
31921
32304
|
if (!variant) return size;
|
31922
32305
|
return variant == 'icon-button' ? 'md' : 'xs';
|
@@ -36007,28 +36390,35 @@ __webpack_require__.r(__webpack_exports__);
|
|
36007
36390
|
|
36008
36391
|
/***/ }),
|
36009
36392
|
|
36010
|
-
/***/ "./src/link/
|
36011
|
-
|
36012
|
-
!*** ./src/link/
|
36013
|
-
|
36393
|
+
/***/ "./src/link/link.js":
|
36394
|
+
/*!**************************!*\
|
36395
|
+
!*** ./src/link/link.js ***!
|
36396
|
+
\**************************/
|
36014
36397
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
36015
36398
|
|
36016
36399
|
"use strict";
|
36017
36400
|
__webpack_require__.r(__webpack_exports__);
|
36018
36401
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
36019
|
-
/* harmony export */
|
36402
|
+
/* harmony export */ Link: () => (/* binding */ Link)
|
36020
36403
|
/* harmony export */ });
|
36021
|
-
/* harmony import */ var
|
36022
|
-
/* harmony import */ var
|
36023
|
-
/* harmony import */ var
|
36024
|
-
/* harmony import */ var
|
36025
|
-
/* harmony import */ var
|
36026
|
-
/* harmony import */ var
|
36404
|
+
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! prop-types */ "prop-types");
|
36405
|
+
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_0__);
|
36406
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "react");
|
36407
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
|
36408
|
+
/* harmony import */ var styled_components__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! styled-components */ "styled-components");
|
36409
|
+
/* harmony import */ var styled_components__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(styled_components__WEBPACK_IMPORTED_MODULE_2__);
|
36410
|
+
/* harmony import */ var _icon__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../icon */ "./src/icon.js");
|
36411
|
+
/* harmony import */ var _theme__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../theme */ "./src/theme.js");
|
36412
|
+
/* harmony import */ var _typography__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../typography */ "./src/typography/index.js");
|
36413
|
+
/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../utils */ "./src/utils.js");
|
36027
36414
|
// LICENSE_CODE ZON
|
36028
36415
|
|
36029
36416
|
|
36030
36417
|
/*jslint react:true*/
|
36418
|
+
var _excluded = ["isLeft", "isRight"];
|
36031
36419
|
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); }
|
36420
|
+
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; }
|
36421
|
+
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
36032
36422
|
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); }
|
36033
36423
|
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; }
|
36034
36424
|
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; }
|
@@ -36039,93 +36429,43 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
36039
36429
|
|
36040
36430
|
|
36041
36431
|
|
36042
|
-
var InlineLink = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().forwardRef(function (props, ref) {
|
36043
|
-
var linkProps = _objectSpread(_objectSpread({}, (0,_util__WEBPACK_IMPORTED_MODULE_2__.getCommonProps)(props)), (0,_utils__WEBPACK_IMPORTED_MODULE_3__.getLinkProps)(props));
|
36044
|
-
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(StyledLink, _extends({
|
36045
|
-
ref: ref
|
36046
|
-
}, linkProps), props.children);
|
36047
|
-
});
|
36048
|
-
InlineLink.displayName = 'InlineLink';
|
36049
|
-
var StyledLink = styled_components__WEBPACK_IMPORTED_MODULE_1___default().a.withConfig({
|
36050
|
-
displayName: "StyledLink",
|
36051
|
-
componentId: "sc-2k0eac-0"
|
36052
|
-
})(["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;}"]);
|
36053
36432
|
|
36054
|
-
/***/ }),
|
36055
36433
|
|
36056
|
-
/***/ "./src/link/link.js":
|
36057
|
-
/*!**************************!*\
|
36058
|
-
!*** ./src/link/link.js ***!
|
36059
|
-
\**************************/
|
36060
|
-
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
36061
36434
|
|
36062
|
-
|
36063
|
-
|
36064
|
-
|
36065
|
-
|
36066
|
-
|
36067
|
-
|
36068
|
-
/* harmony import */ var lodash_omit__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/omit */ "./node_modules/lodash/omit.js");
|
36069
|
-
/* harmony import */ var lodash_omit__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_omit__WEBPACK_IMPORTED_MODULE_0__);
|
36070
|
-
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! prop-types */ "prop-types");
|
36071
|
-
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
|
36072
|
-
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! react */ "react");
|
36073
|
-
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_2__);
|
36074
|
-
/* harmony import */ var styled_components__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! styled-components */ "styled-components");
|
36075
|
-
/* harmony import */ var styled_components__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(styled_components__WEBPACK_IMPORTED_MODULE_3__);
|
36076
|
-
/* harmony import */ var _icon__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../icon */ "./src/icon.js");
|
36077
|
-
/* harmony import */ var _theme__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../theme */ "./src/theme.js");
|
36078
|
-
/* harmony import */ var _typography__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../typography */ "./src/typography/index.js");
|
36079
|
-
/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../utils */ "./src/utils.js");
|
36080
|
-
/* harmony import */ var _inline_link__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./inline_link */ "./src/link/inline_link.js");
|
36081
|
-
// LICENSE_CODE ZON
|
36082
|
-
|
36083
|
-
|
36084
|
-
/*jslint react:true*/
|
36085
|
-
|
36086
|
-
var _excluded = ["text", "variant", "size", "icon"],
|
36087
|
-
_excluded2 = ["isLeft", "isRight"];
|
36088
|
-
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); }
|
36089
|
-
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; }
|
36090
|
-
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
36091
|
-
|
36092
|
-
|
36093
|
-
|
36094
|
-
|
36095
|
-
|
36096
|
-
|
36097
|
-
|
36098
|
-
|
36099
|
-
var Link = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().forwardRef(function (props, ref) {
|
36435
|
+
var _theme$color = _theme__WEBPACK_IMPORTED_MODULE_4__["default"].color,
|
36436
|
+
blue_10 = _theme$color.blue_10,
|
36437
|
+
blue_11 = _theme$color.blue_11,
|
36438
|
+
gray_11_50 = _theme$color.gray_11_50;
|
36439
|
+
var knownProps = ['text', 'variant', 'size', 'underline', 'icon', 'iconPlacement', 'newTab'];
|
36440
|
+
var Link = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().forwardRef(function (props, ref) {
|
36100
36441
|
var text = props.text,
|
36101
36442
|
variant = props.variant,
|
36102
36443
|
size = props.size,
|
36103
|
-
|
36104
|
-
|
36105
|
-
if (variant == 'inline') {
|
36106
|
-
|
36107
|
-
|
36108
|
-
|
36109
|
-
}
|
36110
|
-
var _getIconProps = (0,_utils__WEBPACK_IMPORTED_MODULE_7__.getIconProps)('Link', props),
|
36444
|
+
underline = props.underline;
|
36445
|
+
var linkProps = _objectSpread(_objectSpread({}, omit(props, knownProps)), getLinkProps(props));
|
36446
|
+
if (variant == 'inline') return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(InlineLink, _extends({
|
36447
|
+
ref: ref
|
36448
|
+
}, linkProps), text);
|
36449
|
+
var _getIconProps = (0,_utils__WEBPACK_IMPORTED_MODULE_6__.getIconProps)('Link', props),
|
36111
36450
|
isLeft = _getIconProps.isLeft,
|
36112
36451
|
isRight = _getIconProps.isRight,
|
36113
|
-
iconProps = _objectWithoutProperties(_getIconProps,
|
36114
|
-
var
|
36115
|
-
|
36116
|
-
|
36117
|
-
|
36118
|
-
|
36452
|
+
iconProps = _objectWithoutProperties(_getIconProps, _excluded);
|
36453
|
+
var labelProps = {
|
36454
|
+
variant: {
|
36455
|
+
lg: 'lg',
|
36456
|
+
sm: 'xs'
|
36457
|
+
}[size] || 'base',
|
36458
|
+
children: text,
|
36459
|
+
no_wrap: true,
|
36460
|
+
'data-label': true
|
36461
|
+
};
|
36462
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(StyledLink, _extends({
|
36119
36463
|
ref: ref
|
36120
|
-
},
|
36464
|
+
}, linkProps, {
|
36121
36465
|
$variant: variant,
|
36122
|
-
$
|
36123
|
-
$
|
36124
|
-
}), isLeft && /*#__PURE__*/
|
36125
|
-
variant: labelVariant,
|
36126
|
-
no_wrap: true,
|
36127
|
-
"data-label": true
|
36128
|
-
}, text), isRight && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(_icon__WEBPACK_IMPORTED_MODULE_4__.Icon, iconProps));
|
36466
|
+
$underline: underline,
|
36467
|
+
$size: size
|
36468
|
+
}), 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));
|
36129
36469
|
});
|
36130
36470
|
Link.displayName = 'Link';
|
36131
36471
|
Link.defaultProps = {
|
@@ -36134,30 +36474,51 @@ Link.defaultProps = {
|
|
36134
36474
|
iconPlacement: 'left'
|
36135
36475
|
};
|
36136
36476
|
Link.propTypes = {
|
36137
|
-
text: (
|
36138
|
-
variant:
|
36139
|
-
size:
|
36140
|
-
icon:
|
36141
|
-
iconPlacement:
|
36142
|
-
href: (
|
36143
|
-
newTab: (
|
36477
|
+
text: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().node).isRequired,
|
36478
|
+
variant: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOf(['primary', 'secondary', 'inline']),
|
36479
|
+
size: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOf(['sm', 'md', 'lg']),
|
36480
|
+
icon: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOf(_utils__WEBPACK_IMPORTED_MODULE_6__.iconNames),
|
36481
|
+
iconPlacement: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOf(['left', 'right']),
|
36482
|
+
href: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string),
|
36483
|
+
newTab: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool),
|
36484
|
+
underline: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool)
|
36144
36485
|
};
|
36145
|
-
var
|
36486
|
+
var getLinkProps = function getLinkProps(opt) {
|
36487
|
+
var as = opt.as,
|
36488
|
+
href = opt.href,
|
36489
|
+
target = opt.target,
|
36490
|
+
rel = opt.rel,
|
36491
|
+
newTab = opt.newTab;
|
36492
|
+
var p = {
|
36493
|
+
as: as,
|
36494
|
+
href: href,
|
36495
|
+
target: target,
|
36496
|
+
rel: rel
|
36497
|
+
};
|
36498
|
+
if (newTab) p = _objectSpread(_objectSpread({}, p), {}, {
|
36499
|
+
target: '_blank',
|
36500
|
+
rel: 'noopener noreferrer'
|
36501
|
+
});
|
36502
|
+
return p;
|
36503
|
+
};
|
36504
|
+
var StyledLink = styled_components__WEBPACK_IMPORTED_MODULE_2___default().a.withConfig({
|
36146
36505
|
displayName: "StyledLink",
|
36147
36506
|
componentId: "sc-1ilmd36-0"
|
36148
|
-
})(["display:inline-flex;align-items:center;justify-content:center;text-decoration:none;background:0 none;border:0 none;padding:0;gap:", ";
|
36149
|
-
return (0,
|
36507
|
+
})(["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) {
|
36508
|
+
return (0,_utils__WEBPACK_IMPORTED_MODULE_6__.toPixel)(props.$size == 'lg' ? 8 : 4);
|
36150
36509
|
}, function (props) {
|
36151
|
-
return props.$variant == 'primary' ?
|
36510
|
+
return props.$variant == 'primary' ? blue_11 : gray_11_50;
|
36152
36511
|
}, function (props) {
|
36153
|
-
return props.$
|
36512
|
+
return props.$underline ? 'underline' : 'none';
|
36154
36513
|
}, function (props) {
|
36155
|
-
return props.$variant == 'primary' ?
|
36156
|
-
},
|
36157
|
-
return props.$variant == '
|
36158
|
-
}
|
36159
|
-
|
36160
|
-
|
36514
|
+
return props.$variant == 'primary' ? blue_10 : blue_11;
|
36515
|
+
}, function (props) {
|
36516
|
+
return props.$underline || props.$variant == 'primary' ? 'underline' : 'none';
|
36517
|
+
});
|
36518
|
+
var InlineLink = styled_components__WEBPACK_IMPORTED_MODULE_2___default().a.withConfig({
|
36519
|
+
displayName: "InlineLink",
|
36520
|
+
componentId: "sc-1ilmd36-1"
|
36521
|
+
})(["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;}"]);
|
36161
36522
|
|
36162
36523
|
/***/ }),
|
36163
36524
|
|
@@ -39135,7 +39496,7 @@ var FunctionWrapper = styled_components__WEBPACK_IMPORTED_MODULE_1___default().d
|
|
39135
39496
|
"use strict";
|
39136
39497
|
__webpack_require__.r(__webpack_exports__);
|
39137
39498
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
39138
|
-
/* harmony export */
|
39499
|
+
/* harmony export */ Table: () => (/* reexport safe */ _table__WEBPACK_IMPORTED_MODULE_3__.Table)
|
39139
39500
|
/* harmony export */ });
|
39140
39501
|
/* harmony import */ var _sticky_rows__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./sticky_rows */ "./src/table/sticky_rows.js");
|
39141
39502
|
/* harmony import */ var _context__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./context */ "./src/table/context.js");
|
@@ -39158,7 +39519,7 @@ _table__WEBPACK_IMPORTED_MODULE_3__.Table.Pagination = _pagination__WEBPACK_IMPO
|
|
39158
39519
|
_table__WEBPACK_IMPORTED_MODULE_3__.Table.Provider = _context__WEBPACK_IMPORTED_MODULE_1__["default"];
|
39159
39520
|
_table__WEBPACK_IMPORTED_MODULE_3__.Table.withPlugins = _plugin__WEBPACK_IMPORTED_MODULE_5__.withPlugins;
|
39160
39521
|
_table__WEBPACK_IMPORTED_MODULE_3__.Table.plugins = _plugin__WEBPACK_IMPORTED_MODULE_5__.plugins;
|
39161
|
-
|
39522
|
+
|
39162
39523
|
|
39163
39524
|
/***/ }),
|
39164
39525
|
|
@@ -40579,12 +40940,13 @@ var InnerTable = function InnerTable(props) {
|
|
40579
40940
|
overflow: 'auto',
|
40580
40941
|
maxHeight: scrollHeight
|
40581
40942
|
} : undefined;
|
40582
|
-
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(TableWrapper, {
|
40583
|
-
ref: wrapperRef
|
40943
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(TableWrapper, _extends({
|
40944
|
+
ref: wrapperRef
|
40945
|
+
}, (0,_util__WEBPACK_IMPORTED_MODULE_5__.getCommonProps)(props), {
|
40584
40946
|
className: (0,_util__WEBPACK_IMPORTED_MODULE_5__.classNames)(className, {
|
40585
40947
|
container: true
|
40586
40948
|
}, className)
|
40587
|
-
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(StyledTable, _extends({
|
40949
|
+
}), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(StyledTable, _extends({
|
40588
40950
|
ref: tableRef
|
40589
40951
|
}, getTableProps(), {
|
40590
40952
|
className: (0,_util__WEBPACK_IMPORTED_MODULE_5__.classNames)(className, {
|
@@ -41311,7 +41673,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
41311
41673
|
/* harmony import */ var styled_components__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(styled_components__WEBPACK_IMPORTED_MODULE_2__);
|
41312
41674
|
/* harmony import */ var _theme__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./theme */ "./src/theme.js");
|
41313
41675
|
/* harmony import */ var _typography__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./typography */ "./src/typography/index.js");
|
41314
|
-
/* harmony import */ var
|
41676
|
+
/* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./util */ "./src/util/index.js");
|
41315
41677
|
/* harmony import */ var _constants__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./constants */ "./src/constants.js");
|
41316
41678
|
// LICENSE_CODE ZON
|
41317
41679
|
|
@@ -41435,7 +41797,7 @@ Tooltip.defaultProps = {
|
|
41435
41797
|
};
|
41436
41798
|
Tooltip.propTypes = {
|
41437
41799
|
tooltip: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().node),
|
41438
|
-
placement: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOf(
|
41800
|
+
placement: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOf(_util__WEBPACK_IMPORTED_MODULE_5__.tooltipPlacement),
|
41439
41801
|
noWrap: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool),
|
41440
41802
|
interactive: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool),
|
41441
41803
|
trigger: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOf(['hover', 'focus'])
|
@@ -42182,6 +42544,144 @@ var isExoticComponent = function isExoticComponent(component) {
|
|
42182
42544
|
|
42183
42545
|
/***/ }),
|
42184
42546
|
|
42547
|
+
/***/ "./src/util/get_button_colors.js":
|
42548
|
+
/*!***************************************!*\
|
42549
|
+
!*** ./src/util/get_button_colors.js ***!
|
42550
|
+
\***************************************/
|
42551
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
42552
|
+
|
42553
|
+
"use strict";
|
42554
|
+
__webpack_require__.r(__webpack_exports__);
|
42555
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
42556
|
+
/* harmony export */ getButtonColors: () => (/* binding */ getButtonColors)
|
42557
|
+
/* harmony export */ });
|
42558
|
+
/* harmony import */ var _theme__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../theme */ "./src/theme.js");
|
42559
|
+
// LICENSE_CODE ZON
|
42560
|
+
|
42561
|
+
|
42562
|
+
/*jslint react:true*/
|
42563
|
+
|
42564
|
+
var getButtonColors = function getButtonColors(props) {
|
42565
|
+
var $variant = props.$variant,
|
42566
|
+
disabled = props.disabled;
|
42567
|
+
if (disabled) {
|
42568
|
+
return {
|
42569
|
+
color: _theme__WEBPACK_IMPORTED_MODULE_0__["default"].color.gray_9,
|
42570
|
+
backColor: _theme__WEBPACK_IMPORTED_MODULE_0__["default"].color.gray_2,
|
42571
|
+
border: "1px solid ".concat(_theme__WEBPACK_IMPORTED_MODULE_0__["default"].color.gray_6)
|
42572
|
+
};
|
42573
|
+
}
|
42574
|
+
var styles = {
|
42575
|
+
primary: {
|
42576
|
+
color: _theme__WEBPACK_IMPORTED_MODULE_0__["default"].color.white,
|
42577
|
+
backColor: _theme__WEBPACK_IMPORTED_MODULE_0__["default"].color.blue_11,
|
42578
|
+
separator: "1px solid ".concat(_theme__WEBPACK_IMPORTED_MODULE_0__["default"].color.white),
|
42579
|
+
hover: {
|
42580
|
+
backColor: _theme__WEBPACK_IMPORTED_MODULE_0__["default"].color.blue_10
|
42581
|
+
},
|
42582
|
+
active: {
|
42583
|
+
backColor: _theme__WEBPACK_IMPORTED_MODULE_0__["default"].color.blue_11,
|
42584
|
+
boxShadow: '0 0 0 2px rgba(0, 106, 220, 0.4)'
|
42585
|
+
}
|
42586
|
+
},
|
42587
|
+
secondary: {
|
42588
|
+
color: _theme__WEBPACK_IMPORTED_MODULE_0__["default"].color.blue_11,
|
42589
|
+
backColor: _theme__WEBPACK_IMPORTED_MODULE_0__["default"].color.white,
|
42590
|
+
border: "1px solid ".concat(_theme__WEBPACK_IMPORTED_MODULE_0__["default"].color.blue_11),
|
42591
|
+
hover: {
|
42592
|
+
backColor: _theme__WEBPACK_IMPORTED_MODULE_0__["default"].color.blue_2
|
42593
|
+
},
|
42594
|
+
active: {
|
42595
|
+
backColor: _theme__WEBPACK_IMPORTED_MODULE_0__["default"].color.white,
|
42596
|
+
boxShadow: '0 0 0 2px rgba(0, 106, 220, 0.4)'
|
42597
|
+
}
|
42598
|
+
},
|
42599
|
+
negative: {
|
42600
|
+
color: _theme__WEBPACK_IMPORTED_MODULE_0__["default"].color.white,
|
42601
|
+
backColor: _theme__WEBPACK_IMPORTED_MODULE_0__["default"].color.red_9,
|
42602
|
+
separator: "1px solid ".concat(_theme__WEBPACK_IMPORTED_MODULE_0__["default"].color.white),
|
42603
|
+
hover: {
|
42604
|
+
backColor: _theme__WEBPACK_IMPORTED_MODULE_0__["default"].color.red_10
|
42605
|
+
},
|
42606
|
+
active: {
|
42607
|
+
backColor: _theme__WEBPACK_IMPORTED_MODULE_0__["default"].color.red_9,
|
42608
|
+
boxShadow: '0 0 0 2px rgba(205, 43, 49, 0.4)'
|
42609
|
+
}
|
42610
|
+
},
|
42611
|
+
negative_secondary: {
|
42612
|
+
color: _theme__WEBPACK_IMPORTED_MODULE_0__["default"].color.red_9,
|
42613
|
+
backColor: _theme__WEBPACK_IMPORTED_MODULE_0__["default"].color.white,
|
42614
|
+
border: "1px solid ".concat(_theme__WEBPACK_IMPORTED_MODULE_0__["default"].color.red_9),
|
42615
|
+
hover: {
|
42616
|
+
backColor: _theme__WEBPACK_IMPORTED_MODULE_0__["default"].color.red_2
|
42617
|
+
},
|
42618
|
+
active: {
|
42619
|
+
backColor: _theme__WEBPACK_IMPORTED_MODULE_0__["default"].color.white,
|
42620
|
+
boxShadow: '0 0 0 2px rgba(205, 43, 49, 0.4)'
|
42621
|
+
}
|
42622
|
+
},
|
42623
|
+
positive: {
|
42624
|
+
color: _theme__WEBPACK_IMPORTED_MODULE_0__["default"].color.green_11,
|
42625
|
+
backColor: _theme__WEBPACK_IMPORTED_MODULE_0__["default"].color.white,
|
42626
|
+
border: "1px solid ".concat(_theme__WEBPACK_IMPORTED_MODULE_0__["default"].color.green_11),
|
42627
|
+
hover: {
|
42628
|
+
backColor: _theme__WEBPACK_IMPORTED_MODULE_0__["default"].color.green_2
|
42629
|
+
},
|
42630
|
+
active: {
|
42631
|
+
backColor: _theme__WEBPACK_IMPORTED_MODULE_0__["default"].color.white,
|
42632
|
+
boxShadow: '0 0 0 2px rgba(6, 122, 111, 0.4)'
|
42633
|
+
}
|
42634
|
+
},
|
42635
|
+
white: {
|
42636
|
+
color: _theme__WEBPACK_IMPORTED_MODULE_0__["default"].color.gray_11_50,
|
42637
|
+
iconColor: _theme__WEBPACK_IMPORTED_MODULE_0__["default"].color.gray_10,
|
42638
|
+
backColor: _theme__WEBPACK_IMPORTED_MODULE_0__["default"].color.white,
|
42639
|
+
border: "1px solid ".concat(_theme__WEBPACK_IMPORTED_MODULE_0__["default"].color.gray_8),
|
42640
|
+
hover: {
|
42641
|
+
backColor: _theme__WEBPACK_IMPORTED_MODULE_0__["default"].color.gray_2
|
42642
|
+
},
|
42643
|
+
active: {
|
42644
|
+
backColor: _theme__WEBPACK_IMPORTED_MODULE_0__["default"].color.gray_3,
|
42645
|
+
border: "1px solid ".concat(_theme__WEBPACK_IMPORTED_MODULE_0__["default"].color.gray_9),
|
42646
|
+
iconColor: _theme__WEBPACK_IMPORTED_MODULE_0__["default"].color.gray_11_50
|
42647
|
+
}
|
42648
|
+
}
|
42649
|
+
};
|
42650
|
+
return styles[$variant] || styles.primary;
|
42651
|
+
};
|
42652
|
+
|
42653
|
+
/***/ }),
|
42654
|
+
|
42655
|
+
/***/ "./src/util/get_button_size.js":
|
42656
|
+
/*!*************************************!*\
|
42657
|
+
!*** ./src/util/get_button_size.js ***!
|
42658
|
+
\*************************************/
|
42659
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
42660
|
+
|
42661
|
+
"use strict";
|
42662
|
+
__webpack_require__.r(__webpack_exports__);
|
42663
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
42664
|
+
/* harmony export */ getButtonSize: () => (/* binding */ getButtonSize)
|
42665
|
+
/* harmony export */ });
|
42666
|
+
/* harmony import */ var styled_components__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! styled-components */ "styled-components");
|
42667
|
+
/* harmony import */ var styled_components__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(styled_components__WEBPACK_IMPORTED_MODULE_0__);
|
42668
|
+
/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../utils */ "./src/utils.js");
|
42669
|
+
// LICENSE_CODE ZON
|
42670
|
+
|
42671
|
+
|
42672
|
+
/*jslint react:true*/
|
42673
|
+
|
42674
|
+
|
42675
|
+
var getButtonSize = function getButtonSize(size) {
|
42676
|
+
var w = 40; // md
|
42677
|
+
if (size == 'lg') w = 48;
|
42678
|
+
if (size == 'sm') w = 36;
|
42679
|
+
if (size == 'xs') w = 28;
|
42680
|
+
return (0,styled_components__WEBPACK_IMPORTED_MODULE_0__.css)(["height:", ";"], (0,_utils__WEBPACK_IMPORTED_MODULE_1__.toPixel)(w));
|
42681
|
+
};
|
42682
|
+
|
42683
|
+
/***/ }),
|
42684
|
+
|
42185
42685
|
/***/ "./src/util/get_props.js":
|
42186
42686
|
/*!*******************************!*\
|
42187
42687
|
!*** ./src/util/get_props.js ***!
|
@@ -42324,31 +42824,37 @@ var getStyleProps = function getStyleProps(props, name, classNamesState) {
|
|
42324
42824
|
"use strict";
|
42325
42825
|
__webpack_require__.r(__webpack_exports__);
|
42326
42826
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
42327
|
-
/* harmony export */ OFFSET: () => (/* reexport safe */
|
42328
|
-
/* harmony export */ VirtualizedListFactory: () => (/* reexport safe */
|
42827
|
+
/* harmony export */ OFFSET: () => (/* reexport safe */ _getters__WEBPACK_IMPORTED_MODULE_6__.OFFSET),
|
42828
|
+
/* harmony export */ VirtualizedListFactory: () => (/* reexport safe */ _virtualized_list__WEBPACK_IMPORTED_MODULE_9__.VirtualizedListFactory),
|
42329
42829
|
/* harmony export */ classNames: () => (/* reexport safe */ _class_names__WEBPACK_IMPORTED_MODULE_0__.classNames),
|
42330
42830
|
/* harmony export */ firstDefined: () => (/* reexport safe */ _first_defined__WEBPACK_IMPORTED_MODULE_1__.firstDefined),
|
42331
42831
|
/* harmony export */ flexRender: () => (/* reexport safe */ _flex_renderer__WEBPACK_IMPORTED_MODULE_2__.flexRender),
|
42332
|
-
/* harmony export */ getAriaProps: () => (/* reexport safe */
|
42333
|
-
/* harmony export */
|
42334
|
-
/* harmony export */
|
42335
|
-
/* harmony export */
|
42336
|
-
/* harmony export */
|
42337
|
-
/* harmony export */
|
42338
|
-
/* harmony export */
|
42339
|
-
/* harmony export */
|
42340
|
-
/* harmony export */
|
42341
|
-
/* harmony export */
|
42342
|
-
/* harmony export */
|
42832
|
+
/* harmony export */ getAriaProps: () => (/* reexport safe */ _get_props__WEBPACK_IMPORTED_MODULE_5__.getAriaProps),
|
42833
|
+
/* harmony export */ getButtonColors: () => (/* reexport safe */ _get_button_colors__WEBPACK_IMPORTED_MODULE_3__.getButtonColors),
|
42834
|
+
/* harmony export */ getButtonSize: () => (/* reexport safe */ _get_button_size__WEBPACK_IMPORTED_MODULE_4__.getButtonSize),
|
42835
|
+
/* harmony export */ getCommonProps: () => (/* reexport safe */ _get_props__WEBPACK_IMPORTED_MODULE_5__.getCommonProps),
|
42836
|
+
/* harmony export */ getDataProps: () => (/* reexport safe */ _get_props__WEBPACK_IMPORTED_MODULE_5__.getDataProps),
|
42837
|
+
/* harmony export */ getGroupRowHeight: () => (/* reexport safe */ _getters__WEBPACK_IMPORTED_MODULE_6__.getGroupRowHeight),
|
42838
|
+
/* harmony export */ getListHeight: () => (/* reexport safe */ _getters__WEBPACK_IMPORTED_MODULE_6__.getListHeight),
|
42839
|
+
/* harmony export */ getNextRowIndex: () => (/* reexport safe */ _getters__WEBPACK_IMPORTED_MODULE_6__.getNextRowIndex),
|
42840
|
+
/* harmony export */ getScrollIndex: () => (/* reexport safe */ _getters__WEBPACK_IMPORTED_MODULE_6__.getScrollIndex),
|
42841
|
+
/* harmony export */ getStyleProps: () => (/* reexport safe */ _getters__WEBPACK_IMPORTED_MODULE_6__.getStyleProps),
|
42842
|
+
/* harmony export */ isGroupHeader: () => (/* reexport safe */ _getters__WEBPACK_IMPORTED_MODULE_6__.isGroupHeader),
|
42843
|
+
/* harmony export */ splitProps: () => (/* reexport safe */ _split_props__WEBPACK_IMPORTED_MODULE_7__.splitProps),
|
42844
|
+
/* harmony export */ tooltipPlacement: () => (/* reexport safe */ _tooltip_placement__WEBPACK_IMPORTED_MODULE_8__.tooltipPlacement),
|
42845
|
+
/* harmony export */ withUserStyles: () => (/* reexport safe */ _with_user_styles__WEBPACK_IMPORTED_MODULE_10__.withUserStyles)
|
42343
42846
|
/* harmony export */ });
|
42344
42847
|
/* harmony import */ var _class_names__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./class_names */ "./src/util/class_names.js");
|
42345
42848
|
/* harmony import */ var _first_defined__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./first_defined */ "./src/util/first_defined.js");
|
42346
42849
|
/* harmony import */ var _flex_renderer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./flex_renderer */ "./src/util/flex_renderer.js");
|
42347
|
-
/* harmony import */ var
|
42348
|
-
/* harmony import */ var
|
42349
|
-
/* harmony import */ var
|
42350
|
-
/* harmony import */ var
|
42351
|
-
/* harmony import */ var
|
42850
|
+
/* harmony import */ var _get_button_colors__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./get_button_colors */ "./src/util/get_button_colors.js");
|
42851
|
+
/* harmony import */ var _get_button_size__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./get_button_size */ "./src/util/get_button_size.js");
|
42852
|
+
/* harmony import */ var _get_props__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./get_props */ "./src/util/get_props.js");
|
42853
|
+
/* harmony import */ var _getters__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./getters */ "./src/util/getters.js");
|
42854
|
+
/* harmony import */ var _split_props__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./split_props */ "./src/util/split_props.js");
|
42855
|
+
/* harmony import */ var _tooltip_placement__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./tooltip_placement */ "./src/util/tooltip_placement.js");
|
42856
|
+
/* harmony import */ var _virtualized_list__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./virtualized_list */ "./src/util/virtualized_list.js");
|
42857
|
+
/* harmony import */ var _with_user_styles__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./with_user_styles */ "./src/util/with_user_styles.js");
|
42352
42858
|
// LICENSE_CODE ZON
|
42353
42859
|
|
42354
42860
|
|
@@ -42362,6 +42868,9 @@ __webpack_require__.r(__webpack_exports__);
|
|
42362
42868
|
|
42363
42869
|
|
42364
42870
|
|
42871
|
+
|
42872
|
+
|
42873
|
+
|
42365
42874
|
/***/ }),
|
42366
42875
|
|
42367
42876
|
/***/ "./src/util/split_props.js":
|
@@ -42394,6 +42903,33 @@ var splitProps = function splitProps(props) {
|
|
42394
42903
|
|
42395
42904
|
/***/ }),
|
42396
42905
|
|
42906
|
+
/***/ "./src/util/tooltip_placement.js":
|
42907
|
+
/*!***************************************!*\
|
42908
|
+
!*** ./src/util/tooltip_placement.js ***!
|
42909
|
+
\***************************************/
|
42910
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
42911
|
+
|
42912
|
+
"use strict";
|
42913
|
+
__webpack_require__.r(__webpack_exports__);
|
42914
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
42915
|
+
/* harmony export */ tooltipPlacement: () => (/* binding */ tooltipPlacement)
|
42916
|
+
/* harmony export */ });
|
42917
|
+
// LICENSE_CODE ZON
|
42918
|
+
|
42919
|
+
|
42920
|
+
/*jslint react:true*/
|
42921
|
+
var tooltipPlacement = function () {
|
42922
|
+
var positions = ['auto', 'top', 'right', 'bottom', 'left'];
|
42923
|
+
var variants = ['', '-start', '-end'];
|
42924
|
+
return positions.flatMap(function (p) {
|
42925
|
+
return variants.map(function (v) {
|
42926
|
+
return p + v;
|
42927
|
+
});
|
42928
|
+
});
|
42929
|
+
}();
|
42930
|
+
|
42931
|
+
/***/ }),
|
42932
|
+
|
42397
42933
|
/***/ "./src/util/virtualized_list.js":
|
42398
42934
|
/*!**************************************!*\
|
42399
42935
|
!*** ./src/util/virtualized_list.js ***!
|
@@ -42686,15 +43222,11 @@ __webpack_require__.r(__webpack_exports__);
|
|
42686
43222
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
42687
43223
|
/* harmony export */ colorNames: () => (/* binding */ colorNames),
|
42688
43224
|
/* harmony export */ fromTheme: () => (/* binding */ fromTheme),
|
42689
|
-
/* harmony export */ getButtonColors: () => (/* binding */ getButtonColors),
|
42690
43225
|
/* harmony export */ getIconProps: () => (/* binding */ getIconProps),
|
42691
|
-
/* harmony export */ getLinkProps: () => (/* binding */ getLinkProps),
|
42692
43226
|
/* harmony export */ iconNames: () => (/* binding */ iconNames),
|
42693
|
-
/* harmony export */ toButtonSize: () => (/* binding */ toButtonSize),
|
42694
43227
|
/* harmony export */ toIconSize: () => (/* binding */ toIconSize),
|
42695
43228
|
/* harmony export */ toPixel: () => (/* binding */ toPixel),
|
42696
|
-
/* harmony export */ toSize: () => (/* binding */ toSize)
|
42697
|
-
/* harmony export */ tooltipPlacements: () => (/* binding */ tooltipPlacements)
|
43229
|
+
/* harmony export */ toSize: () => (/* binding */ toSize)
|
42698
43230
|
/* harmony export */ });
|
42699
43231
|
/* harmony import */ var _icons__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @icons */ "./assets/icons/index.js");
|
42700
43232
|
/* harmony import */ var styled_components__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! styled-components */ "styled-components");
|
@@ -42704,12 +43236,6 @@ __webpack_require__.r(__webpack_exports__);
|
|
42704
43236
|
|
42705
43237
|
|
42706
43238
|
/*jslint react:true*/
|
42707
|
-
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); }
|
42708
|
-
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; }
|
42709
|
-
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; }
|
42710
|
-
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; }
|
42711
|
-
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
42712
|
-
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); }
|
42713
43239
|
|
42714
43240
|
|
42715
43241
|
|
@@ -42762,112 +43288,6 @@ var getIconProps = function getIconProps(comp, opt) {
|
|
42762
43288
|
size: iconSize()
|
42763
43289
|
};
|
42764
43290
|
};
|
42765
|
-
var getLinkProps = function getLinkProps(opt) {
|
42766
|
-
var as = opt.as,
|
42767
|
-
href = opt.href,
|
42768
|
-
target = opt.target,
|
42769
|
-
rel = opt.rel,
|
42770
|
-
newTab = opt.newTab;
|
42771
|
-
var p = {
|
42772
|
-
as: as,
|
42773
|
-
href: href,
|
42774
|
-
target: target,
|
42775
|
-
rel: rel
|
42776
|
-
};
|
42777
|
-
if (newTab) p = _objectSpread(_objectSpread({}, p), {}, {
|
42778
|
-
target: '_blank',
|
42779
|
-
rel: 'noopener noreferrer'
|
42780
|
-
});
|
42781
|
-
return p;
|
42782
|
-
};
|
42783
|
-
var getButtonColors = function getButtonColors(props) {
|
42784
|
-
var $variant = props.$variant,
|
42785
|
-
disabled = props.disabled;
|
42786
|
-
if (disabled) {
|
42787
|
-
return {
|
42788
|
-
color: _theme__WEBPACK_IMPORTED_MODULE_2__["default"].color.gray_9,
|
42789
|
-
backColor: _theme__WEBPACK_IMPORTED_MODULE_2__["default"].color.gray_2,
|
42790
|
-
border: "1px solid ".concat(_theme__WEBPACK_IMPORTED_MODULE_2__["default"].color.gray_6)
|
42791
|
-
};
|
42792
|
-
}
|
42793
|
-
var styles = {
|
42794
|
-
primary: {
|
42795
|
-
color: _theme__WEBPACK_IMPORTED_MODULE_2__["default"].color.white,
|
42796
|
-
backColor: _theme__WEBPACK_IMPORTED_MODULE_2__["default"].color.blue_11,
|
42797
|
-
separator: "1px solid ".concat(_theme__WEBPACK_IMPORTED_MODULE_2__["default"].color.white),
|
42798
|
-
hover: {
|
42799
|
-
backColor: _theme__WEBPACK_IMPORTED_MODULE_2__["default"].color.blue_10
|
42800
|
-
},
|
42801
|
-
active: {
|
42802
|
-
backColor: _theme__WEBPACK_IMPORTED_MODULE_2__["default"].color.blue_11,
|
42803
|
-
boxShadow: '0 0 0 2px rgba(0, 106, 220, 0.4)'
|
42804
|
-
}
|
42805
|
-
},
|
42806
|
-
secondary: {
|
42807
|
-
color: _theme__WEBPACK_IMPORTED_MODULE_2__["default"].color.blue_11,
|
42808
|
-
backColor: _theme__WEBPACK_IMPORTED_MODULE_2__["default"].color.white,
|
42809
|
-
border: "1px solid ".concat(_theme__WEBPACK_IMPORTED_MODULE_2__["default"].color.blue_11),
|
42810
|
-
hover: {
|
42811
|
-
backColor: _theme__WEBPACK_IMPORTED_MODULE_2__["default"].color.blue_2
|
42812
|
-
},
|
42813
|
-
active: {
|
42814
|
-
backColor: _theme__WEBPACK_IMPORTED_MODULE_2__["default"].color.white,
|
42815
|
-
boxShadow: '0 0 0 2px rgba(0, 106, 220, 0.4)'
|
42816
|
-
}
|
42817
|
-
},
|
42818
|
-
negative: {
|
42819
|
-
color: _theme__WEBPACK_IMPORTED_MODULE_2__["default"].color.white,
|
42820
|
-
backColor: _theme__WEBPACK_IMPORTED_MODULE_2__["default"].color.red_9,
|
42821
|
-
separator: "1px solid ".concat(_theme__WEBPACK_IMPORTED_MODULE_2__["default"].color.white),
|
42822
|
-
hover: {
|
42823
|
-
backColor: _theme__WEBPACK_IMPORTED_MODULE_2__["default"].color.red_10
|
42824
|
-
},
|
42825
|
-
active: {
|
42826
|
-
backColor: _theme__WEBPACK_IMPORTED_MODULE_2__["default"].color.red_9,
|
42827
|
-
boxShadow: '0 0 0 2px rgba(205, 43, 49, 0.4)'
|
42828
|
-
}
|
42829
|
-
},
|
42830
|
-
negative_secondary: {
|
42831
|
-
color: _theme__WEBPACK_IMPORTED_MODULE_2__["default"].color.red_9,
|
42832
|
-
backColor: _theme__WEBPACK_IMPORTED_MODULE_2__["default"].color.white,
|
42833
|
-
border: "1px solid ".concat(_theme__WEBPACK_IMPORTED_MODULE_2__["default"].color.red_9),
|
42834
|
-
hover: {
|
42835
|
-
backColor: _theme__WEBPACK_IMPORTED_MODULE_2__["default"].color.red_2
|
42836
|
-
},
|
42837
|
-
active: {
|
42838
|
-
backColor: _theme__WEBPACK_IMPORTED_MODULE_2__["default"].color.white,
|
42839
|
-
boxShadow: '0 0 0 2px rgba(205, 43, 49, 0.4)'
|
42840
|
-
}
|
42841
|
-
},
|
42842
|
-
positive: {
|
42843
|
-
color: _theme__WEBPACK_IMPORTED_MODULE_2__["default"].color.green_11,
|
42844
|
-
backColor: _theme__WEBPACK_IMPORTED_MODULE_2__["default"].color.white,
|
42845
|
-
border: "1px solid ".concat(_theme__WEBPACK_IMPORTED_MODULE_2__["default"].color.green_11),
|
42846
|
-
hover: {
|
42847
|
-
backColor: _theme__WEBPACK_IMPORTED_MODULE_2__["default"].color.green_2
|
42848
|
-
},
|
42849
|
-
active: {
|
42850
|
-
backColor: _theme__WEBPACK_IMPORTED_MODULE_2__["default"].color.white,
|
42851
|
-
boxShadow: '0 0 0 2px rgba(6, 122, 111, 0.4)'
|
42852
|
-
}
|
42853
|
-
},
|
42854
|
-
white: {
|
42855
|
-
color: _theme__WEBPACK_IMPORTED_MODULE_2__["default"].color.gray_11_50,
|
42856
|
-
iconColor: _theme__WEBPACK_IMPORTED_MODULE_2__["default"].color.gray_10,
|
42857
|
-
backColor: _theme__WEBPACK_IMPORTED_MODULE_2__["default"].color.white,
|
42858
|
-
border: "1px solid ".concat(_theme__WEBPACK_IMPORTED_MODULE_2__["default"].color.gray_8),
|
42859
|
-
hover: {
|
42860
|
-
backColor: _theme__WEBPACK_IMPORTED_MODULE_2__["default"].color.gray_2
|
42861
|
-
},
|
42862
|
-
active: {
|
42863
|
-
backColor: _theme__WEBPACK_IMPORTED_MODULE_2__["default"].color.gray_3,
|
42864
|
-
border: "1px solid ".concat(_theme__WEBPACK_IMPORTED_MODULE_2__["default"].color.gray_9),
|
42865
|
-
iconColor: _theme__WEBPACK_IMPORTED_MODULE_2__["default"].color.gray_11_50
|
42866
|
-
}
|
42867
|
-
}
|
42868
|
-
};
|
42869
|
-
return styles[$variant] || styles.primary;
|
42870
|
-
};
|
42871
43291
|
var toIconSize = function toIconSize(size) {
|
42872
43292
|
if (size == 'xl') return toSize(48);
|
42873
43293
|
if (size == 'lg') return toSize(32);
|
@@ -42876,22 +43296,6 @@ var toIconSize = function toIconSize(size) {
|
|
42876
43296
|
if (size == 'xxs') return toSize(12);
|
42877
43297
|
return toSize(24);
|
42878
43298
|
};
|
42879
|
-
var toButtonSize = function toButtonSize(size) {
|
42880
|
-
var w = 40; // md
|
42881
|
-
if (size == 'lg') w = 48;
|
42882
|
-
if (size == 'sm') w = 36;
|
42883
|
-
if (size == 'xs') w = 28;
|
42884
|
-
return (0,styled_components__WEBPACK_IMPORTED_MODULE_1__.css)(["height:", ";"], toPixel(w));
|
42885
|
-
};
|
42886
|
-
var tooltipPlacements = function () {
|
42887
|
-
var positions = ['auto', 'top', 'right', 'bottom', 'left'];
|
42888
|
-
var variants = ['', '-start', '-end'];
|
42889
|
-
return positions.flatMap(function (p) {
|
42890
|
-
return variants.map(function (v) {
|
42891
|
-
return p + v;
|
42892
|
-
});
|
42893
|
-
});
|
42894
|
-
}();
|
42895
43299
|
|
42896
43300
|
/***/ }),
|
42897
43301
|
|
@@ -116773,6 +117177,7 @@ var __webpack_exports__ = {};
|
|
116773
117177
|
__webpack_require__.r(__webpack_exports__);
|
116774
117178
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
116775
117179
|
/* harmony export */ Badge: () => (/* reexport safe */ _core__WEBPACK_IMPORTED_MODULE_0__.Badge),
|
117180
|
+
/* harmony export */ Breadcrumbs: () => (/* reexport safe */ _core__WEBPACK_IMPORTED_MODULE_0__.Breadcrumbs),
|
116776
117181
|
/* harmony export */ Button: () => (/* reexport safe */ _core__WEBPACK_IMPORTED_MODULE_0__.Button),
|
116777
117182
|
/* harmony export */ Chart: () => (/* reexport safe */ _core__WEBPACK_IMPORTED_MODULE_0__.Chart),
|
116778
117183
|
/* harmony export */ ClickableTag: () => (/* reexport safe */ _core__WEBPACK_IMPORTED_MODULE_0__.ClickableTag),
|