@luminati-io/uikit 3.2.9 → 3.2.11-beta.0
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("prop-types"), require("react"), require("styled-components"), require("react-
|
3
|
+
module.exports = factory(require("prop-types"), require("react"), require("styled-components"), require("react-virtualized"), require("react-dom"), require("react-table"));
|
4
4
|
else if(typeof define === 'function' && define.amd)
|
5
|
-
define(["prop-types", "react", "styled-components", "react-
|
5
|
+
define(["prop-types", "react", "styled-components", "react-virtualized", "react-dom", "react-table"], factory);
|
6
6
|
else if(typeof exports === 'object')
|
7
|
-
exports["uikit"] = factory(require("prop-types"), require("react"), require("styled-components"), require("react-
|
7
|
+
exports["uikit"] = factory(require("prop-types"), require("react"), require("styled-components"), require("react-virtualized"), require("react-dom"), require("react-table"));
|
8
8
|
else
|
9
|
-
root["uikit"] = factory(root["prop-types"], root["react"], root["styled-components"], root["react-
|
10
|
-
})(this, (__WEBPACK_EXTERNAL_MODULE_prop_types__, __WEBPACK_EXTERNAL_MODULE_react__, __WEBPACK_EXTERNAL_MODULE_styled_components__,
|
9
|
+
root["uikit"] = factory(root["prop-types"], root["react"], root["styled-components"], root["react-virtualized"], root["react-dom"], root["react-table"]);
|
10
|
+
})(this, (__WEBPACK_EXTERNAL_MODULE_prop_types__, __WEBPACK_EXTERNAL_MODULE_react__, __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
|
|
@@ -33134,7 +33134,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
33134
33134
|
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! prop-types */ "prop-types");
|
33135
33135
|
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
|
33136
33136
|
/* harmony import */ var _visx_curve__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @visx/curve */ "./node_modules/d3-shape/src/curve/cardinal.js");
|
33137
|
-
/* harmony import */ var
|
33137
|
+
/* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../util */ "./src/util/index.js");
|
33138
33138
|
/* harmony import */ var _chart_container__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./chart_container */ "./src/chart/chart_container.js");
|
33139
33139
|
/* harmony import */ var _get_components__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./get_components */ "./src/chart/get_components.js");
|
33140
33140
|
/* harmony import */ var _glyph__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./glyph */ "./src/chart/glyph.js");
|
@@ -33270,7 +33270,7 @@ var AreaChart = function AreaChart(props) {
|
|
33270
33270
|
unstyled: true,
|
33271
33271
|
applyPositionStyle: true,
|
33272
33272
|
renderTooltip: function renderTooltip(params) {
|
33273
|
-
return (0,
|
33273
|
+
return (0,_util__WEBPACK_IMPORTED_MODULE_2__.flexRender)(tooltipContent, _objectSpread({
|
33274
33274
|
Glyph: _glyph__WEBPACK_IMPORTED_MODULE_5__.Glyph,
|
33275
33275
|
data: data,
|
33276
33276
|
formatTick: xAxis.formatTick,
|
@@ -33359,7 +33359,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
33359
33359
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
33360
33360
|
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! prop-types */ "prop-types");
|
33361
33361
|
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
|
33362
|
-
/* harmony import */ var
|
33362
|
+
/* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../util */ "./src/util/index.js");
|
33363
33363
|
/* harmony import */ var _bar_annotation__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./bar_annotation */ "./src/chart/bar_annotation.js");
|
33364
33364
|
/* harmony import */ var _chart_container__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./chart_container */ "./src/chart/chart_container.js");
|
33365
33365
|
/* harmony import */ var _get_components__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./get_components */ "./src/chart/get_components.js");
|
@@ -33515,7 +33515,7 @@ var BarChart = function BarChart(props) {
|
|
33515
33515
|
unstyled: true,
|
33516
33516
|
applyPositionStyle: true,
|
33517
33517
|
renderTooltip: function renderTooltip(params) {
|
33518
|
-
return (0,
|
33518
|
+
return (0,_util__WEBPACK_IMPORTED_MODULE_2__.flexRender)(tooltipContent, _objectSpread({
|
33519
33519
|
Glyph: _glyph__WEBPACK_IMPORTED_MODULE_6__.Glyph,
|
33520
33520
|
data: data,
|
33521
33521
|
formatTick: xAxis.formatTick,
|
@@ -34330,7 +34330,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
34330
34330
|
/* harmony import */ var styled_components__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(styled_components__WEBPACK_IMPORTED_MODULE_1__);
|
34331
34331
|
/* harmony import */ var _theme__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../theme */ "./src/theme.js");
|
34332
34332
|
/* harmony import */ var _typography__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../typography */ "./src/typography/index.js");
|
34333
|
-
/* harmony import */ var
|
34333
|
+
/* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../util */ "./src/util/index.js");
|
34334
34334
|
/* harmony import */ var _glyph__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./glyph */ "./src/chart/glyph.js");
|
34335
34335
|
// LICENSE_CODE ZON
|
34336
34336
|
|
@@ -34388,7 +34388,7 @@ var Legend = function Legend(props) {
|
|
34388
34388
|
scale: ordinalColorScale
|
34389
34389
|
}, function (labels) {
|
34390
34390
|
return labels.map(function (label, i) {
|
34391
|
-
return (0,
|
34391
|
+
return (0,_util__WEBPACK_IMPORTED_MODULE_4__.flexRender)(item, _objectSpread({
|
34392
34392
|
key: "legend-".concat(i),
|
34393
34393
|
Glyph: _glyph__WEBPACK_IMPORTED_MODULE_5__.Glyph,
|
34394
34394
|
LegendLabel: _visx_legend__WEBPACK_IMPORTED_MODULE_7__["default"],
|
@@ -34420,7 +34420,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
34420
34420
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
34421
34421
|
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! prop-types */ "prop-types");
|
34422
34422
|
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
|
34423
|
-
/* harmony import */ var
|
34423
|
+
/* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../util */ "./src/util/index.js");
|
34424
34424
|
/* harmony import */ var _chart_container__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./chart_container */ "./src/chart/chart_container.js");
|
34425
34425
|
/* harmony import */ var _get_curve__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./get_curve */ "./src/chart/get_curve.js");
|
34426
34426
|
/* harmony import */ var _get_components__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./get_components */ "./src/chart/get_components.js");
|
@@ -34567,7 +34567,7 @@ var LineChart = function LineChart(props) {
|
|
34567
34567
|
unstyled: true,
|
34568
34568
|
applyPositionStyle: true,
|
34569
34569
|
renderTooltip: function renderTooltip(params) {
|
34570
|
-
return (0,
|
34570
|
+
return (0,_util__WEBPACK_IMPORTED_MODULE_2__.flexRender)(tooltipContent, _objectSpread({
|
34571
34571
|
Glyph: _glyph__WEBPACK_IMPORTED_MODULE_6__.Glyph,
|
34572
34572
|
data: data,
|
34573
34573
|
formatTick: xFormatTick,
|
@@ -35107,7 +35107,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
35107
35107
|
/* harmony import */ var styled_components__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! styled-components */ "styled-components");
|
35108
35108
|
/* harmony import */ var styled_components__WEBPACK_IMPORTED_MODULE_19___default = /*#__PURE__*/__webpack_require__.n(styled_components__WEBPACK_IMPORTED_MODULE_19__);
|
35109
35109
|
/* harmony import */ var _theme__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! ../theme */ "./src/theme.js");
|
35110
|
-
/* harmony import */ var
|
35110
|
+
/* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! ../util */ "./src/util/index.js");
|
35111
35111
|
// LICENSE_CODE ZON
|
35112
35112
|
|
35113
35113
|
|
@@ -35150,7 +35150,7 @@ var Code = /*#__PURE__*/(0,react__WEBPACK_IMPORTED_MODULE_0__.forwardRef)(functi
|
|
35150
35150
|
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(CodeWrapper, {
|
35151
35151
|
ref: ref,
|
35152
35152
|
$theme: themeProp,
|
35153
|
-
className: (0,
|
35153
|
+
className: (0,_util__WEBPACK_IMPORTED_MODULE_21__.classNames)(null, null, className, "".concat(lineNumbers ? '' : 'no-', "line-numbers"))
|
35154
35154
|
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("code", {
|
35155
35155
|
className: "language-".concat(lang, " content")
|
35156
35156
|
}, text));
|
@@ -35833,51 +35833,51 @@ __webpack_require__.r(__webpack_exports__);
|
|
35833
35833
|
/* harmony export */ Button: () => (/* reexport safe */ _button__WEBPACK_IMPORTED_MODULE_1__["default"]),
|
35834
35834
|
/* harmony export */ Chart: () => (/* reexport safe */ _chart__WEBPACK_IMPORTED_MODULE_2__["default"]),
|
35835
35835
|
/* harmony export */ ClickableTag: () => (/* reexport safe */ _tag__WEBPACK_IMPORTED_MODULE_21__.ClickableTag),
|
35836
|
-
/* harmony export */ Code: () => (/* reexport safe */
|
35837
|
-
/* harmony export */ CodeBlock: () => (/* reexport safe */
|
35838
|
-
/* harmony export */ CodeSnippet: () => (/* reexport safe */
|
35836
|
+
/* harmony export */ Code: () => (/* reexport safe */ _code__WEBPACK_IMPORTED_MODULE_18__.Code),
|
35837
|
+
/* harmony export */ CodeBlock: () => (/* reexport safe */ _code__WEBPACK_IMPORTED_MODULE_18__.CodeBlock),
|
35838
|
+
/* harmony export */ CodeSnippet: () => (/* reexport safe */ _code__WEBPACK_IMPORTED_MODULE_18__.CodeSnippet),
|
35839
35839
|
/* harmony export */ ComboButton: () => (/* reexport safe */ _combo_button__WEBPACK_IMPORTED_MODULE_3__["default"]),
|
35840
|
-
/* harmony export */ Icon: () => (/* reexport safe */
|
35841
|
-
/* harmony export */ IconButton: () => (/* reexport safe */
|
35842
|
-
/* harmony export */ InfoChip: () => (/* reexport safe */
|
35843
|
-
/* harmony export */ Input: () => (/* reexport module object */
|
35844
|
-
/* harmony export */ Layout: () => (/* reexport module object */
|
35845
|
-
/* harmony export */ Link: () => (/* reexport safe */
|
35846
|
-
/* harmony export */ Menu: () => (/* reexport safe */
|
35847
|
-
/* harmony export */ Modal: () => (/* reexport module object */
|
35840
|
+
/* harmony export */ Icon: () => (/* reexport safe */ _icon__WEBPACK_IMPORTED_MODULE_4__["default"]),
|
35841
|
+
/* harmony export */ IconButton: () => (/* reexport safe */ _icon_button__WEBPACK_IMPORTED_MODULE_5__["default"]),
|
35842
|
+
/* harmony export */ InfoChip: () => (/* reexport safe */ _infochip__WEBPACK_IMPORTED_MODULE_6__["default"]),
|
35843
|
+
/* harmony export */ Input: () => (/* reexport module object */ _input__WEBPACK_IMPORTED_MODULE_7__),
|
35844
|
+
/* harmony export */ Layout: () => (/* reexport module object */ _layout__WEBPACK_IMPORTED_MODULE_8__),
|
35845
|
+
/* harmony export */ Link: () => (/* reexport safe */ _link__WEBPACK_IMPORTED_MODULE_9__["default"]),
|
35846
|
+
/* harmony export */ Menu: () => (/* reexport safe */ _menu__WEBPACK_IMPORTED_MODULE_10__["default"]),
|
35847
|
+
/* harmony export */ Modal: () => (/* reexport module object */ _modal__WEBPACK_IMPORTED_MODULE_11__),
|
35848
35848
|
/* harmony export */ Progress: () => (/* reexport safe */ _progress__WEBPACK_IMPORTED_MODULE_20__.Progress),
|
35849
35849
|
/* harmony export */ ProgressBar: () => (/* reexport safe */ _progress__WEBPACK_IMPORTED_MODULE_20__.ProgressBar),
|
35850
35850
|
/* harmony export */ RemovableTag: () => (/* reexport safe */ _tag__WEBPACK_IMPORTED_MODULE_21__.RemovableTag),
|
35851
|
-
/* harmony export */ Tab: () => (/* reexport safe */
|
35852
|
-
/* harmony export */ Table: () => (/* reexport safe */
|
35851
|
+
/* harmony export */ Tab: () => (/* reexport safe */ _tab__WEBPACK_IMPORTED_MODULE_16__["default"]),
|
35852
|
+
/* harmony export */ Table: () => (/* reexport safe */ _table__WEBPACK_IMPORTED_MODULE_12__["default"]),
|
35853
35853
|
/* harmony export */ TagGroup: () => (/* reexport safe */ _tag__WEBPACK_IMPORTED_MODULE_21__.TagGroup),
|
35854
|
-
/* harmony export */ Tooltip: () => (/* reexport safe */
|
35855
|
-
/* harmony export */ Typography: () => (/* reexport module object */
|
35856
|
-
/* harmony export */ theme: () => (/* reexport safe */
|
35857
|
-
/* harmony export */ translation: () => (/* reexport safe */
|
35858
|
-
/* harmony export */ withPopover: () => (/* reexport safe */
|
35859
|
-
/* harmony export */ withTooltip: () => (/* reexport safe */
|
35854
|
+
/* harmony export */ Tooltip: () => (/* reexport safe */ _tooltip__WEBPACK_IMPORTED_MODULE_14__["default"]),
|
35855
|
+
/* harmony export */ Typography: () => (/* reexport module object */ _typography__WEBPACK_IMPORTED_MODULE_17__),
|
35856
|
+
/* harmony export */ theme: () => (/* reexport safe */ _theme__WEBPACK_IMPORTED_MODULE_13__["default"]),
|
35857
|
+
/* harmony export */ translation: () => (/* reexport safe */ _translation__WEBPACK_IMPORTED_MODULE_15__["default"]),
|
35858
|
+
/* harmony export */ withPopover: () => (/* reexport safe */ _hoc__WEBPACK_IMPORTED_MODULE_19__.withPopover),
|
35859
|
+
/* harmony export */ withTooltip: () => (/* reexport safe */ _tooltip__WEBPACK_IMPORTED_MODULE_14__.withTooltip)
|
35860
35860
|
/* harmony export */ });
|
35861
35861
|
/* harmony import */ var _badge__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./badge */ "./src/badge.js");
|
35862
35862
|
/* harmony import */ var _button__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./button */ "./src/button/index.js");
|
35863
35863
|
/* harmony import */ var _chart__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./chart */ "./src/chart/index.js");
|
35864
35864
|
/* harmony import */ var _combo_button__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./combo_button */ "./src/combo_button/index.js");
|
35865
|
-
/* harmony import */ var
|
35866
|
-
/* harmony import */ var
|
35867
|
-
/* harmony import */ var
|
35868
|
-
/* harmony import */ var
|
35869
|
-
/* harmony import */ var
|
35870
|
-
/* harmony import */ var
|
35871
|
-
/* harmony import */ var
|
35872
|
-
/* harmony import */ var
|
35873
|
-
/* harmony import */ var
|
35874
|
-
/* harmony import */ var
|
35875
|
-
/* harmony import */ var
|
35876
|
-
/* harmony import */ var
|
35877
|
-
/* harmony import */ var
|
35878
|
-
/* harmony import */ var
|
35879
|
-
/* harmony import */ var
|
35880
|
-
/* harmony import */ var
|
35865
|
+
/* harmony import */ var _icon__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./icon */ "./src/icon.js");
|
35866
|
+
/* harmony import */ var _icon_button__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./icon_button */ "./src/icon_button.js");
|
35867
|
+
/* harmony import */ var _infochip__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./infochip */ "./src/infochip.js");
|
35868
|
+
/* harmony import */ var _input__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./input */ "./src/input/index.js");
|
35869
|
+
/* harmony import */ var _layout__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./layout */ "./src/layout/index.js");
|
35870
|
+
/* harmony import */ var _link__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./link */ "./src/link/index.js");
|
35871
|
+
/* harmony import */ var _menu__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./menu */ "./src/menu/index.js");
|
35872
|
+
/* harmony import */ var _modal__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./modal */ "./src/modal/index.js");
|
35873
|
+
/* harmony import */ var _table__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./table */ "./src/table/index.js");
|
35874
|
+
/* harmony import */ var _theme__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./theme */ "./src/theme.js");
|
35875
|
+
/* harmony import */ var _tooltip__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./tooltip */ "./src/tooltip.js");
|
35876
|
+
/* harmony import */ var _translation__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ./translation */ "./src/translation.js");
|
35877
|
+
/* harmony import */ var _tab__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ./tab */ "./src/tab/index.js");
|
35878
|
+
/* harmony import */ var _typography__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ./typography */ "./src/typography/index.js");
|
35879
|
+
/* harmony import */ var _code__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ./code */ "./src/code/index.js");
|
35880
|
+
/* harmony import */ var _hoc__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! ./hoc */ "./src/hoc/index.js");
|
35881
35881
|
/* harmony import */ var _progress__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! ./progress */ "./src/progress/index.js");
|
35882
35882
|
/* harmony import */ var _tag__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! ./tag */ "./src/tag/index.js");
|
35883
35883
|
// LICENSE_CODE ZON
|
@@ -36428,8 +36428,9 @@ __webpack_require__.r(__webpack_exports__);
|
|
36428
36428
|
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! prop-types */ "prop-types");
|
36429
36429
|
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_2__);
|
36430
36430
|
/* harmony import */ var _icons__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @icons */ "./assets/icons/index.js");
|
36431
|
-
/* harmony import */ var
|
36432
|
-
/* harmony import */ var
|
36431
|
+
/* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./util */ "./src/util/index.js");
|
36432
|
+
/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./utils */ "./src/utils.js");
|
36433
|
+
/* harmony import */ var _theme__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./theme */ "./src/theme.js");
|
36433
36434
|
// LICENSE_CODE ZON
|
36434
36435
|
|
36435
36436
|
|
@@ -36441,6 +36442,7 @@ function _extends() { _extends = Object.assign ? Object.assign.bind() : function
|
|
36441
36442
|
|
36442
36443
|
|
36443
36444
|
|
36445
|
+
|
36444
36446
|
var Icon = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().forwardRef(function (props, ref) {
|
36445
36447
|
var name = props.name,
|
36446
36448
|
size = props.size,
|
@@ -36450,10 +36452,10 @@ var Icon = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().forwardRef(
|
|
36450
36452
|
if (!ic) return null;
|
36451
36453
|
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(StyledSvg, _extends({
|
36452
36454
|
ref: ref
|
36453
|
-
}, (0,
|
36455
|
+
}, (0,_util__WEBPACK_IMPORTED_MODULE_4__.getCommonProps)(props), {
|
36454
36456
|
$size: size,
|
36455
36457
|
viewBox: ic.viewBox,
|
36456
|
-
$color:
|
36458
|
+
$color: _theme__WEBPACK_IMPORTED_MODULE_6__["default"].color[color],
|
36457
36459
|
$verticalAlign: verticalAlign,
|
36458
36460
|
"data-icon": name
|
36459
36461
|
}), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("use", {
|
@@ -36465,8 +36467,8 @@ Icon.defaultProps = {
|
|
36465
36467
|
size: 'md'
|
36466
36468
|
};
|
36467
36469
|
Icon.propTypes = {
|
36468
|
-
name: prop_types__WEBPACK_IMPORTED_MODULE_2___default().oneOf(
|
36469
|
-
color: prop_types__WEBPACK_IMPORTED_MODULE_2___default().oneOf(
|
36470
|
+
name: prop_types__WEBPACK_IMPORTED_MODULE_2___default().oneOf(_utils__WEBPACK_IMPORTED_MODULE_5__.iconNames).isRequired,
|
36471
|
+
color: prop_types__WEBPACK_IMPORTED_MODULE_2___default().oneOf(_utils__WEBPACK_IMPORTED_MODULE_5__.colorNames),
|
36470
36472
|
size: prop_types__WEBPACK_IMPORTED_MODULE_2___default().oneOf(['xxs', 'xs', 'sm', 'md', 'lg', 'xl']),
|
36471
36473
|
verticalAlign: prop_types__WEBPACK_IMPORTED_MODULE_2___default().oneOf(['top', 'middle', 'bottom', 'baseline', 'text-top', 'text-bottom', 'super'])
|
36472
36474
|
};
|
@@ -36476,7 +36478,7 @@ var StyledSvg = styled_components__WEBPACK_IMPORTED_MODULE_1___default().svg.wit
|
|
36476
36478
|
})(["color:", ";", " vertical-align:", ";"], function (props) {
|
36477
36479
|
return props.$color;
|
36478
36480
|
}, function (props) {
|
36479
|
-
return (0,
|
36481
|
+
return (0,_utils__WEBPACK_IMPORTED_MODULE_5__.toIconSize)(props.$size);
|
36480
36482
|
}, function (props) {
|
36481
36483
|
return props.$verticalAlign;
|
36482
36484
|
});
|
@@ -36639,7 +36641,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
36639
36641
|
/* harmony import */ var _layout__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./layout */ "./src/layout/index.js");
|
36640
36642
|
/* harmony import */ var _theme__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./theme */ "./src/theme.js");
|
36641
36643
|
/* harmony import */ var _typography__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./typography */ "./src/typography/index.js");
|
36642
|
-
/* harmony import */ var
|
36644
|
+
/* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./util */ "./src/util/index.js");
|
36645
|
+
/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./utils */ "./src/utils.js");
|
36643
36646
|
// LICENSE_CODE ZON
|
36644
36647
|
|
36645
36648
|
|
@@ -36653,6 +36656,7 @@ function _extends() { _extends = Object.assign ? Object.assign.bind() : function
|
|
36653
36656
|
|
36654
36657
|
|
36655
36658
|
|
36659
|
+
|
36656
36660
|
var InfoChipWrapper = styled_components__WEBPACK_IMPORTED_MODULE_2___default()(_layout__WEBPACK_IMPORTED_MODULE_4__.Flex).attrs({
|
36657
36661
|
align_items: 'center',
|
36658
36662
|
gap: _theme__WEBPACK_IMPORTED_MODULE_5__["default"].spacing['02'],
|
@@ -36683,7 +36687,7 @@ var InfoChip = function InfoChip(props) {
|
|
36683
36687
|
info: 'blue_11'
|
36684
36688
|
};
|
36685
36689
|
var color = colors[variant] || colors["default"];
|
36686
|
-
var commonProps = (0,
|
36690
|
+
var commonProps = (0,_util__WEBPACK_IMPORTED_MODULE_7__.getCommonProps)(props);
|
36687
36691
|
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(InfoChipWrapper, _extends({
|
36688
36692
|
color: bgColor
|
36689
36693
|
}, commonProps), icon && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_icon__WEBPACK_IMPORTED_MODULE_3__["default"], {
|
@@ -36702,7 +36706,7 @@ InfoChip.defaultProps = {
|
|
36702
36706
|
InfoChip.propTypes = {
|
36703
36707
|
variant: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOf(['default', 'success', 'alert', 'warning', 'info']),
|
36704
36708
|
text: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string),
|
36705
|
-
icon: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOf(
|
36709
|
+
icon: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOf(_utils__WEBPACK_IMPORTED_MODULE_8__.iconNames)
|
36706
36710
|
};
|
36707
36711
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (InfoChip);
|
36708
36712
|
|
@@ -36900,7 +36904,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
36900
36904
|
/* harmony import */ var _hooks__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../hooks */ "./src/hooks/index.js");
|
36901
36905
|
/* harmony import */ var _layout__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../layout */ "./src/layout/index.js");
|
36902
36906
|
/* harmony import */ var _translation__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../translation */ "./src/translation.js");
|
36903
|
-
/* harmony import */ var
|
36907
|
+
/* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../util */ "./src/util/index.js");
|
36904
36908
|
/* harmony import */ var _shared__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../shared */ "./src/input/shared.js");
|
36905
36909
|
/* harmony import */ var _build_components__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./build_components */ "./src/input/checkbox_list/build_components.js");
|
36906
36910
|
/* harmony import */ var _use_styles__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./use_styles */ "./src/input/checkbox_list/use_styles.js");
|
@@ -36978,7 +36982,7 @@ var CheckboxList = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().for
|
|
36978
36982
|
ref: forwardRef,
|
36979
36983
|
"data-testid": "checkbox-list",
|
36980
36984
|
className: className
|
36981
|
-
}, (0,
|
36985
|
+
}, (0,_util__WEBPACK_IMPORTED_MODULE_8__.getCommonProps)(rest), {
|
36982
36986
|
flex_direction: "column",
|
36983
36987
|
gap: "02"
|
36984
36988
|
}), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_shared__WEBPACK_IMPORTED_MODULE_9__.InputLabel, {
|
@@ -37010,7 +37014,7 @@ var CheckboxList = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().for
|
|
37010
37014
|
required: required,
|
37011
37015
|
styles: styles,
|
37012
37016
|
components: (0,_build_components__WEBPACK_IMPORTED_MODULE_10__.buildComponents)(props),
|
37013
|
-
className: (0,
|
37017
|
+
className: (0,_util__WEBPACK_IMPORTED_MODULE_8__.classNames)(className, {
|
37014
37018
|
container: true
|
37015
37019
|
}),
|
37016
37020
|
classNamePrefix: classNamePrefix,
|
@@ -37855,7 +37859,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
37855
37859
|
/* harmony import */ var _hooks__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../hooks */ "./src/hooks/index.js");
|
37856
37860
|
/* harmony import */ var _layout__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../layout */ "./src/layout/index.js");
|
37857
37861
|
/* harmony import */ var _translation__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../translation */ "./src/translation.js");
|
37858
|
-
/* harmony import */ var
|
37862
|
+
/* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../util */ "./src/util/index.js");
|
37859
37863
|
/* harmony import */ var _shared__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../shared */ "./src/input/shared.js");
|
37860
37864
|
/* harmony import */ var _build_components__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./build_components */ "./src/input/dropdown/build_components.js");
|
37861
37865
|
/* harmony import */ var _use_styles__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./use_styles */ "./src/input/dropdown/use_styles.js");
|
@@ -37946,7 +37950,7 @@ var Dropdown = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().forward
|
|
37946
37950
|
ref: forwardRef,
|
37947
37951
|
"data-testid": "dropdown",
|
37948
37952
|
className: className
|
37949
|
-
}, (0,
|
37953
|
+
}, (0,_util__WEBPACK_IMPORTED_MODULE_8__.getCommonProps)(rest), {
|
37950
37954
|
flex_direction: "column",
|
37951
37955
|
gap: "02"
|
37952
37956
|
}), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_shared__WEBPACK_IMPORTED_MODULE_9__.InputLabel, {
|
@@ -37974,7 +37978,7 @@ var Dropdown = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().forward
|
|
37974
37978
|
required: required,
|
37975
37979
|
styles: styles,
|
37976
37980
|
components: (0,_build_components__WEBPACK_IMPORTED_MODULE_10__.buildComponents)(props),
|
37977
|
-
className: (0,
|
37981
|
+
className: (0,_util__WEBPACK_IMPORTED_MODULE_8__.classNames)(className, {
|
37978
37982
|
container: true
|
37979
37983
|
}),
|
37980
37984
|
classNamePrefix: classNamePrefix,
|
@@ -38239,6 +38243,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
38239
38243
|
/* harmony import */ var styled_components__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(styled_components__WEBPACK_IMPORTED_MODULE_2__);
|
38240
38244
|
/* harmony import */ var _menu__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../menu */ "./src/menu/index.js");
|
38241
38245
|
/* harmony import */ var _theme__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../theme */ "./src/theme.js");
|
38246
|
+
/* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../util */ "./src/util/index.js");
|
38242
38247
|
// LICENSE_CODE ZON
|
38243
38248
|
|
38244
38249
|
|
@@ -38249,6 +38254,7 @@ function _extends() { _extends = Object.assign ? Object.assign.bind() : function
|
|
38249
38254
|
|
38250
38255
|
|
38251
38256
|
|
38257
|
+
|
38252
38258
|
var Option = function Option(props) {
|
38253
38259
|
var data = props.data,
|
38254
38260
|
className = props.className,
|
@@ -38262,7 +38268,6 @@ var Option = function Option(props) {
|
|
38262
38268
|
innerProps = props.innerProps;
|
38263
38269
|
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(StyledItem, _extends({
|
38264
38270
|
ref: innerRef,
|
38265
|
-
testId: data.testId,
|
38266
38271
|
type: "item",
|
38267
38272
|
className: cx({
|
38268
38273
|
option: true,
|
@@ -38270,7 +38275,7 @@ var Option = function Option(props) {
|
|
38270
38275
|
'option--is-focused': isFocused,
|
38271
38276
|
'option--is-selected': isSelected
|
38272
38277
|
}, className)
|
38273
|
-
}, lodash_omit__WEBPACK_IMPORTED_MODULE_0___default()(innerProps, 'onMouseMove', 'onMouseOver'), {
|
38278
|
+
}, (0,_util__WEBPACK_IMPORTED_MODULE_5__.getDataProps)(data), lodash_omit__WEBPACK_IMPORTED_MODULE_0___default()(innerProps, 'onMouseMove', 'onMouseOver'), {
|
38274
38279
|
text: children,
|
38275
38280
|
description: data.description,
|
38276
38281
|
tooltip: data.tooltip,
|
@@ -38751,8 +38756,9 @@ __webpack_require__.r(__webpack_exports__);
|
|
38751
38756
|
/* harmony import */ var _theme__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../theme */ "./src/theme.js");
|
38752
38757
|
/* harmony import */ var _tooltip__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../tooltip */ "./src/tooltip.js");
|
38753
38758
|
/* harmony import */ var _typography__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../typography */ "./src/typography/index.js");
|
38754
|
-
/* harmony import */ var
|
38755
|
-
/* harmony import */ var
|
38759
|
+
/* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../util */ "./src/util/index.js");
|
38760
|
+
/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../utils */ "./src/utils.js");
|
38761
|
+
/* harmony import */ var _shared__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./shared */ "./src/input/shared.js");
|
38756
38762
|
// LICENSE_CODE ZON
|
38757
38763
|
|
38758
38764
|
|
@@ -38776,6 +38782,7 @@ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) r
|
|
38776
38782
|
|
38777
38783
|
|
38778
38784
|
|
38785
|
+
|
38779
38786
|
var RadioGroup = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().forwardRef(function (props, ref) {
|
38780
38787
|
var className = props.className,
|
38781
38788
|
classNamePrefix = props.classNamePrefix,
|
@@ -38797,12 +38804,12 @@ var RadioGroup = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().forwa
|
|
38797
38804
|
};
|
38798
38805
|
if (!(options !== null && options !== void 0 && options.length)) return null;
|
38799
38806
|
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_layout__WEBPACK_IMPORTED_MODULE_4__.Flex, {
|
38800
|
-
className: (0,
|
38807
|
+
className: (0,_util__WEBPACK_IMPORTED_MODULE_8__.classNames)(classNamePrefix, {
|
38801
38808
|
container: true
|
38802
38809
|
}, className),
|
38803
38810
|
flex_direction: "column",
|
38804
38811
|
gap: _theme__WEBPACK_IMPORTED_MODULE_5__["default"].spacing['03']
|
38805
|
-
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(
|
38812
|
+
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_shared__WEBPACK_IMPORTED_MODULE_10__.InputLabel, {
|
38806
38813
|
classNamePrefix: classNamePrefix,
|
38807
38814
|
id: labelId,
|
38808
38815
|
label: label,
|
@@ -38811,7 +38818,7 @@ var RadioGroup = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().forwa
|
|
38811
38818
|
variant: "lg"
|
38812
38819
|
}), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_layout__WEBPACK_IMPORTED_MODULE_4__.Flex, _extends({
|
38813
38820
|
ref: ref,
|
38814
|
-
className: (0,
|
38821
|
+
className: (0,_util__WEBPACK_IMPORTED_MODULE_8__.classNames)(classNamePrefix, _defineProperty({
|
38815
38822
|
radioGroup: true
|
38816
38823
|
}, "radioGroup--".concat(variant), true)),
|
38817
38824
|
gap: _theme__WEBPACK_IMPORTED_MODULE_5__["default"].spacing['05'],
|
@@ -38831,7 +38838,7 @@ var RadioGroup = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().forwa
|
|
38831
38838
|
disabled: disabled || opt.disabled,
|
38832
38839
|
size: size
|
38833
38840
|
}));
|
38834
|
-
})), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(
|
38841
|
+
})), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_shared__WEBPACK_IMPORTED_MODULE_10__.HelperText, {
|
38835
38842
|
invalid: invalid
|
38836
38843
|
}, helperText));
|
38837
38844
|
});
|
@@ -38878,7 +38885,7 @@ var Radio = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().forwardRef
|
|
38878
38885
|
tooltip: tooltip
|
38879
38886
|
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(RadioWrapper, _extends({
|
38880
38887
|
ref: ref,
|
38881
|
-
className: (0,
|
38888
|
+
className: (0,_util__WEBPACK_IMPORTED_MODULE_8__.classNames)(classNamePrefix, (_classNames2 = {
|
38882
38889
|
radio: true
|
38883
38890
|
}, _defineProperty(_classNames2, 'radio--is-selected', checked), _defineProperty(_classNames2, 'radio--is-disabled', disabled), _classNames2))
|
38884
38891
|
}, rest, {
|
@@ -38886,7 +38893,7 @@ var Radio = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().forwardRef
|
|
38886
38893
|
$verticalAlign: verticalAlign,
|
38887
38894
|
$disabled: disabled
|
38888
38895
|
}), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(RadioControl, {
|
38889
|
-
className: (0,
|
38896
|
+
className: (0,_util__WEBPACK_IMPORTED_MODULE_8__.classNames)(classNamePrefix, {
|
38890
38897
|
radioControl: true
|
38891
38898
|
}),
|
38892
38899
|
role: "radio",
|
@@ -38897,7 +38904,7 @@ var Radio = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().forwardRef
|
|
38897
38904
|
checked: checked,
|
38898
38905
|
disabled: disabled
|
38899
38906
|
}), !!label && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_typography__WEBPACK_IMPORTED_MODULE_7__.Label, {
|
38900
|
-
className: (0,
|
38907
|
+
className: (0,_util__WEBPACK_IMPORTED_MODULE_8__.classNames)(classNamePrefix, {
|
38901
38908
|
radioLabel: true
|
38902
38909
|
}),
|
38903
38910
|
variant: "sm",
|
@@ -38932,7 +38939,7 @@ var RadioControl = styled_components__WEBPACK_IMPORTED_MODULE_2___default().div.
|
|
38932
38939
|
componentId: "sc-10oi3py-1"
|
38933
38940
|
})(["display:flex;align-items:center;justify-content:center;box-sizing:border-box;border:1.5px solid;border-radius:50%;", " &:after{content:'';border-radius:50%;}", ""], function (props) {
|
38934
38941
|
var s = props.size == 'sm' ? 16 : 20;
|
38935
|
-
return (0,styled_components__WEBPACK_IMPORTED_MODULE_2__.css)(["min-width:", ";max-width:", ";height:", ";&:after{width:", ";height:", ";}"], (0,
|
38942
|
+
return (0,styled_components__WEBPACK_IMPORTED_MODULE_2__.css)(["min-width:", ";max-width:", ";height:", ";&:after{width:", ";height:", ";}"], (0,_utils__WEBPACK_IMPORTED_MODULE_9__.toPixel)(s), (0,_utils__WEBPACK_IMPORTED_MODULE_9__.toPixel)(s), (0,_utils__WEBPACK_IMPORTED_MODULE_9__.toPixel)(s), (0,_utils__WEBPACK_IMPORTED_MODULE_9__.toPixel)(s / 2), (0,_utils__WEBPACK_IMPORTED_MODULE_9__.toPixel)(s / 2));
|
38936
38943
|
}, function (props) {
|
38937
38944
|
var checked = props.checked,
|
38938
38945
|
disabled = props.disabled;
|
@@ -38997,7 +39004,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
38997
39004
|
/* harmony import */ var _theme__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../theme */ "./src/theme.js");
|
38998
39005
|
/* harmony import */ var _translation__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../translation */ "./src/translation.js");
|
38999
39006
|
/* harmony import */ var _typography__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../typography */ "./src/typography/index.js");
|
39000
|
-
/* harmony import */ var
|
39007
|
+
/* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../util */ "./src/util/index.js");
|
39008
|
+
/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../utils */ "./src/utils.js");
|
39001
39009
|
// LICENSE_CODE ZON
|
39002
39010
|
|
39003
39011
|
|
@@ -39023,6 +39031,7 @@ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
39023
39031
|
|
39024
39032
|
|
39025
39033
|
|
39034
|
+
|
39026
39035
|
var inputVerticalPadding = 4;
|
39027
39036
|
var inputHorizontalPadding = 12;
|
39028
39037
|
var FieldWrapper = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().forwardRef(function (props, ref) {
|
@@ -39070,12 +39079,12 @@ var FieldWrapper = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().for
|
|
39070
39079
|
}, []);
|
39071
39080
|
(0,react__WEBPACK_IMPORTED_MODULE_1__.useEffect)(function () {
|
39072
39081
|
// XXX vadimv: hack to autoresize textarea
|
39073
|
-
if (autoresize) field.current.style.height = (0,
|
39082
|
+
if (autoresize) field.current.style.height = (0,_utils__WEBPACK_IMPORTED_MODULE_10__.toPixel)(field.current.scrollHeight);
|
39074
39083
|
}, [autoresize, value]);
|
39075
39084
|
var labelId = (0,_hooks__WEBPACK_IMPORTED_MODULE_3__.useLabelId)(props.id);
|
39076
39085
|
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_layout__WEBPACK_IMPORTED_MODULE_5__.Flex, _extends({
|
39077
39086
|
ref: ref
|
39078
|
-
}, (0,
|
39087
|
+
}, (0,_util__WEBPACK_IMPORTED_MODULE_9__.getCommonProps)(props), {
|
39079
39088
|
flex_direction: "column",
|
39080
39089
|
gap: "4px"
|
39081
39090
|
}), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(InputLabel, {
|
@@ -39145,18 +39154,18 @@ var InputLabel = function InputLabel(props) {
|
|
39145
39154
|
var t = (0,_translation__WEBPACK_IMPORTED_MODULE_7__.useReactTranslate)();
|
39146
39155
|
if (!label) return null;
|
39147
39156
|
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(LabelWrapper, {
|
39148
|
-
className: (0,
|
39157
|
+
className: (0,_util__WEBPACK_IMPORTED_MODULE_9__.classNames)(classNamePrefix, {
|
39149
39158
|
label: true
|
39150
39159
|
}, className)
|
39151
39160
|
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_typography__WEBPACK_IMPORTED_MODULE_8__.Label, {
|
39152
|
-
className: (0,
|
39161
|
+
className: (0,_util__WEBPACK_IMPORTED_MODULE_9__.classNames)(classNamePrefix, _defineProperty({
|
39153
39162
|
labelText: true
|
39154
39163
|
}, 'labelText--is-required', required)),
|
39155
39164
|
id: id,
|
39156
39165
|
variant: variant,
|
39157
39166
|
color: "gray-11-50"
|
39158
39167
|
}, t(label), required && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(RequiredAsterisk, null)), labelIcon && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_icon__WEBPACK_IMPORTED_MODULE_4__["default"], {
|
39159
|
-
className: (0,
|
39168
|
+
className: (0,_util__WEBPACK_IMPORTED_MODULE_9__.classNames)(classNamePrefix, {
|
39160
39169
|
labelIcon: true
|
39161
39170
|
}),
|
39162
39171
|
name: labelIcon,
|
@@ -39223,7 +39232,7 @@ var InputWrapper = styled_components__WEBPACK_IMPORTED_MODULE_2___default().div.
|
|
39223
39232
|
borderTopRightRadius = borderBottomRightRadius = 0;
|
39224
39233
|
borderRightWidth = 0;
|
39225
39234
|
}
|
39226
|
-
return (0,styled_components__WEBPACK_IMPORTED_MODULE_2__.css)(["border-left-width:", ";border-right-width:", ";border-top-left-radius:", ";border-bottom-left-radius:", ";border-top-right-radius:", ";border-bottom-right-radius:", ";"], (0,
|
39235
|
+
return (0,styled_components__WEBPACK_IMPORTED_MODULE_2__.css)(["border-left-width:", ";border-right-width:", ";border-top-left-radius:", ";border-bottom-left-radius:", ";border-top-right-radius:", ";border-bottom-right-radius:", ";"], (0,_utils__WEBPACK_IMPORTED_MODULE_10__.toPixel)(borderLeftWidth), (0,_utils__WEBPACK_IMPORTED_MODULE_10__.toPixel)(borderRightWidth), (0,_utils__WEBPACK_IMPORTED_MODULE_10__.toPixel)(borderTopLeftRadius), (0,_utils__WEBPACK_IMPORTED_MODULE_10__.toPixel)(borderBottomLeftRadius), (0,_utils__WEBPACK_IMPORTED_MODULE_10__.toPixel)(borderTopRightRadius), (0,_utils__WEBPACK_IMPORTED_MODULE_10__.toPixel)(borderBottomRightRadius));
|
39227
39236
|
}, function (props) {
|
39228
39237
|
var _props$$heightCalcula;
|
39229
39238
|
return (_props$$heightCalcula = props.$heightCalculationCallback) === null || _props$$heightCalcula === void 0 ? void 0 : _props$$heightCalcula.call(props);
|
@@ -39269,7 +39278,7 @@ var useHeightCalculationCallback = function useHeightCalculationCallback(size) {
|
|
39269
39278
|
md: 40,
|
39270
39279
|
lg: 48
|
39271
39280
|
};
|
39272
|
-
return (0,styled_components__WEBPACK_IMPORTED_MODULE_2__.css)(["height:", ";"], (0,
|
39281
|
+
return (0,styled_components__WEBPACK_IMPORTED_MODULE_2__.css)(["height:", ";"], (0,_utils__WEBPACK_IMPORTED_MODULE_10__.toPixel)(height[size] || height.sm));
|
39273
39282
|
}, [size]);
|
39274
39283
|
};
|
39275
39284
|
|
@@ -39454,7 +39463,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
39454
39463
|
/* harmony import */ var styled_components__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(styled_components__WEBPACK_IMPORTED_MODULE_2__);
|
39455
39464
|
/* harmony import */ var _theme__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../theme */ "./src/theme.js");
|
39456
39465
|
/* harmony import */ var _typography__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../typography */ "./src/typography/index.js");
|
39457
|
-
/* harmony import */ var
|
39466
|
+
/* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../util */ "./src/util/index.js");
|
39467
|
+
/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../utils */ "./src/utils.js");
|
39458
39468
|
// LICENSE_CODE ZON
|
39459
39469
|
|
39460
39470
|
|
@@ -39466,6 +39476,7 @@ function _extends() { _extends = Object.assign ? Object.assign.bind() : function
|
|
39466
39476
|
|
39467
39477
|
|
39468
39478
|
|
39479
|
+
|
39469
39480
|
var Toggle = function Toggle(props) {
|
39470
39481
|
var value = props.value,
|
39471
39482
|
label = props.label,
|
@@ -39477,7 +39488,7 @@ var Toggle = function Toggle(props) {
|
|
39477
39488
|
onChange === null || onChange === void 0 ? void 0 : onChange(checked, evt);
|
39478
39489
|
}, [onChange]);
|
39479
39490
|
var color = getLabelColor(props);
|
39480
|
-
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(ToggleLabel, _extends({}, (0,
|
39491
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(ToggleLabel, _extends({}, (0,_util__WEBPACK_IMPORTED_MODULE_5__.getCommonProps)(props), {
|
39481
39492
|
$size: size
|
39482
39493
|
}), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(ToggleInput, {
|
39483
39494
|
$size: size,
|
@@ -39512,15 +39523,15 @@ var ToggleInput = styled_components__WEBPACK_IMPORTED_MODULE_2___default().input
|
|
39512
39523
|
displayName: "ToggleInput",
|
39513
39524
|
componentId: "sc-14lfe6n-1"
|
39514
39525
|
})(["&&{box-sizing:border-box;width:", ";height:", ";display:flex;align-items:center;margin:0;padding:0 1px;vertical-align:top;background-color:", ";border:1px solid ", ";border-radius:25px;outline:none;outline-offset:0;cursor:pointer;appearance:none;transition:all 0.3s cubic-bezier(0.2,0.85,0.32,1.2);&:hover:not(:disabled){background-color:", ";border-color:", ";}&:focus{outline:none;outline-offset:0;background-color:", ";border-color:", ";}&:checked{background-color:", ";border-color:", ";&:hover{background-color:", ";border-color:", ";}&:focus{background-color:", ";border-color:", ";outline:3px solid ", ";}}}&::after{content:\"\";display:block;width:", ";height:", ";border-radius:50%;background-color:", ";box-shadow:0 2px 2px rgba(0,0,0,0.1);transition:all 0.3s cubic-bezier(0.2,0.85,0.32,1.2);}&:checked::after{transform:translateX(", ");}"], function (props) {
|
39515
|
-
return (0,
|
39526
|
+
return (0,_utils__WEBPACK_IMPORTED_MODULE_6__.toPixel)(props.$size == 'xs' ? 32 : 44);
|
39516
39527
|
}, function (props) {
|
39517
|
-
return (0,
|
39528
|
+
return (0,_utils__WEBPACK_IMPORTED_MODULE_6__.toPixel)(props.$size == 'xs' ? 16 : 20);
|
39518
39529
|
}, _theme__WEBPACK_IMPORTED_MODULE_3__["default"].color.gray_5, _theme__WEBPACK_IMPORTED_MODULE_3__["default"].color.gray_7, _theme__WEBPACK_IMPORTED_MODULE_3__["default"].color.gray_7, _theme__WEBPACK_IMPORTED_MODULE_3__["default"].color.gray_8, _theme__WEBPACK_IMPORTED_MODULE_3__["default"].color.gray_9, _theme__WEBPACK_IMPORTED_MODULE_3__["default"].color.gray_9, _theme__WEBPACK_IMPORTED_MODULE_3__["default"].color.blue_11, _theme__WEBPACK_IMPORTED_MODULE_3__["default"].color.blue_11, _theme__WEBPACK_IMPORTED_MODULE_3__["default"].color.blue_10, _theme__WEBPACK_IMPORTED_MODULE_3__["default"].color.blue_10, _theme__WEBPACK_IMPORTED_MODULE_3__["default"].color.blue_11, _theme__WEBPACK_IMPORTED_MODULE_3__["default"].color.blue_11, _theme__WEBPACK_IMPORTED_MODULE_3__["default"].color.blue_5, function (props) {
|
39519
|
-
return (0,
|
39530
|
+
return (0,_utils__WEBPACK_IMPORTED_MODULE_6__.toPixel)(props.$size == 'xs' ? 12 : 16);
|
39520
39531
|
}, function (props) {
|
39521
|
-
return (0,
|
39532
|
+
return (0,_utils__WEBPACK_IMPORTED_MODULE_6__.toPixel)(props.$size == 'xs' ? 12 : 16);
|
39522
39533
|
}, _theme__WEBPACK_IMPORTED_MODULE_3__["default"].color.white, function (props) {
|
39523
|
-
return (0,
|
39534
|
+
return (0,_utils__WEBPACK_IMPORTED_MODULE_6__.toPixel)(props.$size == 'xs' ? 15 : 23);
|
39524
39535
|
});
|
39525
39536
|
var getLabelColor = function getLabelColor(props) {
|
39526
39537
|
var disabled = props.disabled,
|
@@ -40016,7 +40027,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
40016
40027
|
|
40017
40028
|
/*jslint react:true*/
|
40018
40029
|
|
40019
|
-
var _excluded = ["type", "text", "secondaryText", "tertiaryText", "description", "size", "children", "variant", "tag", "disabled", "selected", "subMenu", "tooltip", "isFirstItem"
|
40030
|
+
var _excluded = ["type", "text", "secondaryText", "tertiaryText", "description", "size", "children", "variant", "tag", "disabled", "selected", "subMenu", "tooltip", "isFirstItem"],
|
40020
40031
|
_excluded2 = ["isLeft"],
|
40021
40032
|
_excluded3 = ["subItems", "children"],
|
40022
40033
|
_excluded4 = ["popover"];
|
@@ -40051,7 +40062,6 @@ var MenuItem = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().forward
|
|
40051
40062
|
subMenu = props.subMenu,
|
40052
40063
|
tooltip = props.tooltip,
|
40053
40064
|
isFirstItem = props.isFirstItem,
|
40054
|
-
testId = props.testId,
|
40055
40065
|
rest = _objectWithoutProperties(props, _excluded);
|
40056
40066
|
if (type == 'divider') return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(_menu_item_divider__WEBPACK_IMPORTED_MODULE_11__["default"], {
|
40057
40067
|
ref: ref
|
@@ -40064,8 +40074,7 @@ var MenuItem = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().forward
|
|
40064
40074
|
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(_menu_item_group__WEBPACK_IMPORTED_MODULE_12__.MenuItemGroup, _extends({
|
40065
40075
|
ref: ref,
|
40066
40076
|
text: text,
|
40067
|
-
isFirstItem: isFirstItem
|
40068
|
-
testId: testId
|
40077
|
+
isFirstItem: isFirstItem
|
40069
40078
|
}, rest), subItems);
|
40070
40079
|
}
|
40071
40080
|
var _getIconProps = (0,_utils__WEBPACK_IMPORTED_MODULE_9__.getIconProps)('MenuItem', props),
|
@@ -40073,7 +40082,6 @@ var MenuItem = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().forward
|
|
40073
40082
|
iconProps = _objectWithoutProperties(_getIconProps, _excluded2);
|
40074
40083
|
var iconColor = disabled ? 'gray_6' : variant == 'negative' ? 'red_10' : 'gray_9';
|
40075
40084
|
var labelColor = disabled ? 'gray_9' : variant == 'negative' ? 'red_11' : 'gray_11_50';
|
40076
|
-
console.log(rest);
|
40077
40085
|
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(_shared__WEBPACK_IMPORTED_MODULE_13__.MenuItemContainer, {
|
40078
40086
|
ref: ref,
|
40079
40087
|
as: tag,
|
@@ -40082,7 +40090,6 @@ var MenuItem = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().forward
|
|
40082
40090
|
tooltip: tooltip,
|
40083
40091
|
noWrap: true
|
40084
40092
|
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(MenuItemComp, _extends({}, lodash_omit__WEBPACK_IMPORTED_MODULE_0___default()(rest, 'icon', 'iconPlacement'), {
|
40085
|
-
"data-testid": testId,
|
40086
40093
|
"aria-disabled": disabled ? '' : undefined,
|
40087
40094
|
size: size,
|
40088
40095
|
role: "button",
|
@@ -40297,7 +40304,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
40297
40304
|
|
40298
40305
|
|
40299
40306
|
/*jslint react:true*/
|
40300
|
-
var _excluded = ["text", "children", "isFirstItem"
|
40307
|
+
var _excluded = ["text", "children", "isFirstItem"];
|
40301
40308
|
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); }
|
40302
40309
|
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; }
|
40303
40310
|
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; }
|
@@ -40310,11 +40317,9 @@ var MenuItemGroup = function MenuItemGroup(props) {
|
|
40310
40317
|
var text = props.text,
|
40311
40318
|
children = props.children,
|
40312
40319
|
isFirstItem = props.isFirstItem,
|
40313
|
-
testId = props.testId,
|
40314
40320
|
rest = _objectWithoutProperties(props, _excluded);
|
40315
40321
|
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement((react__WEBPACK_IMPORTED_MODULE_0___default().Fragment), null, !isFirstItem && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_menu_item_divider__WEBPACK_IMPORTED_MODULE_3__["default"], null), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_shared__WEBPACK_IMPORTED_MODULE_4__.MenuItemContainer, _extends({
|
40316
|
-
role: "presentation"
|
40317
|
-
"data-testid": testId
|
40322
|
+
role: "presentation"
|
40318
40323
|
}, rest), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(GroupTitle, {
|
40319
40324
|
variant: "base",
|
40320
40325
|
no_wrap: true,
|
@@ -40386,11 +40391,15 @@ __webpack_require__.r(__webpack_exports__);
|
|
40386
40391
|
/* harmony import */ var styled_components__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(styled_components__WEBPACK_IMPORTED_MODULE_2__);
|
40387
40392
|
/* harmony import */ var _layout__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../layout */ "./src/layout/index.js");
|
40388
40393
|
/* harmony import */ var _theme__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../theme */ "./src/theme.js");
|
40389
|
-
/* harmony import */ var
|
40394
|
+
/* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../util */ "./src/util/index.js");
|
40390
40395
|
// LICENSE_CODE ZON
|
40391
40396
|
|
40392
40397
|
|
40393
40398
|
/*jslint react:true*/
|
40399
|
+
var _excluded = ["className", "header", "content", "footer", "size", "shadow", "borders"];
|
40400
|
+
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); }
|
40401
|
+
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; }
|
40402
|
+
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; }
|
40394
40403
|
|
40395
40404
|
|
40396
40405
|
|
@@ -40406,7 +40415,7 @@ var MODAL_WIDTHS = {
|
|
40406
40415
|
var StyledWrapper = styled_components__WEBPACK_IMPORTED_MODULE_2___default()(_layout__WEBPACK_IMPORTED_MODULE_3__.Box).withConfig({
|
40407
40416
|
displayName: "StyledWrapper",
|
40408
40417
|
componentId: "sc-1nggvo0-0"
|
40409
|
-
})(["background-color:", ";border-radius:", ";display:grid;grid-
|
40418
|
+
})(["background-color:", ";border-radius:", ";display:grid;grid-template-rows:1fr auto 1fr;font-family:", ";min-width:200px;max-width:", ";width:", ";"], _theme__WEBPACK_IMPORTED_MODULE_4__["default"].color.white, _theme__WEBPACK_IMPORTED_MODULE_4__["default"].spacing['02'], _theme__WEBPACK_IMPORTED_MODULE_4__["default"].font_family.sans, MODAL_WIDTHS.full, function (props) {
|
40410
40419
|
return MODAL_WIDTHS[props.$size];
|
40411
40420
|
});
|
40412
40421
|
var StyledHeaderWrapper = styled_components__WEBPACK_IMPORTED_MODULE_2___default()(_layout__WEBPACK_IMPORTED_MODULE_3__.Flex).attrs({
|
@@ -40434,9 +40443,7 @@ var StyledFooterWrapper = styled_components__WEBPACK_IMPORTED_MODULE_2___default
|
|
40434
40443
|
componentId: "sc-1nggvo0-3"
|
40435
40444
|
})([""]);
|
40436
40445
|
var ModalBase = /*#__PURE__*/(0,react__WEBPACK_IMPORTED_MODULE_1__.forwardRef)(function (props, ref) {
|
40437
|
-
var
|
40438
|
-
className = props.className,
|
40439
|
-
testId = props['data-testid'],
|
40446
|
+
var className = props.className,
|
40440
40447
|
header = props.header,
|
40441
40448
|
content = props.content,
|
40442
40449
|
footer = props.footer,
|
@@ -40445,25 +40452,25 @@ var ModalBase = /*#__PURE__*/(0,react__WEBPACK_IMPORTED_MODULE_1__.forwardRef)(f
|
|
40445
40452
|
_props$borders = props.borders,
|
40446
40453
|
borders = _props$borders === void 0 ? {
|
40447
40454
|
bottom: true
|
40448
|
-
} : _props$borders
|
40449
|
-
|
40450
|
-
|
40451
|
-
|
40455
|
+
} : _props$borders,
|
40456
|
+
rest = _objectWithoutProperties(props, _excluded);
|
40457
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(StyledWrapper, _extends({
|
40458
|
+
ref: ref,
|
40459
|
+
className: className
|
40460
|
+
}, (0,_util__WEBPACK_IMPORTED_MODULE_5__.getCommonProps)(rest), {
|
40452
40461
|
$size: size,
|
40453
|
-
box_shadow: shadow
|
40454
|
-
|
40455
|
-
|
40456
|
-
}, header && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(StyledHeaderWrapper, {
|
40457
|
-
className: (0,_utils__WEBPACK_IMPORTED_MODULE_5__.classNames)(className, {
|
40462
|
+
box_shadow: shadow
|
40463
|
+
}), header && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(StyledHeaderWrapper, {
|
40464
|
+
className: (0,_util__WEBPACK_IMPORTED_MODULE_5__.classNames)(className, {
|
40458
40465
|
header: true
|
40459
40466
|
})
|
40460
40467
|
}, header), content && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(StyledContentWrapper, {
|
40461
40468
|
$borders: borders,
|
40462
|
-
className: (0,
|
40469
|
+
className: (0,_util__WEBPACK_IMPORTED_MODULE_5__.classNames)(className, {
|
40463
40470
|
content: true
|
40464
40471
|
})
|
40465
40472
|
}, content), footer && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(StyledFooterWrapper, {
|
40466
|
-
className: (0,
|
40473
|
+
className: (0,_util__WEBPACK_IMPORTED_MODULE_5__.classNames)(className, {
|
40467
40474
|
footer: true
|
40468
40475
|
})
|
40469
40476
|
}, footer));
|
@@ -41041,7 +41048,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
41041
41048
|
/* harmony import */ var styled_components__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! styled-components */ "styled-components");
|
41042
41049
|
/* harmony import */ var styled_components__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(styled_components__WEBPACK_IMPORTED_MODULE_2__);
|
41043
41050
|
/* harmony import */ var _theme__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../theme */ "./src/theme.js");
|
41044
|
-
/* harmony import */ var
|
41051
|
+
/* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../util */ "./src/util/index.js");
|
41045
41052
|
// LICENSE_CODE ZON
|
41046
41053
|
|
41047
41054
|
|
@@ -41093,7 +41100,7 @@ var Group = function Group(props) {
|
|
41093
41100
|
$variant: variant,
|
41094
41101
|
"aria-orientation": variant == 'vertical' ? 'vertical' : 'horizontal',
|
41095
41102
|
onKeyDown: handleKeyDown
|
41096
|
-
}, (0,
|
41103
|
+
}, (0,_util__WEBPACK_IMPORTED_MODULE_4__.getCommonProps)(rest)), react__WEBPACK_IMPORTED_MODULE_1__.Children.map(children, function (child) {
|
41097
41104
|
return /*#__PURE__*/(0,react__WEBPACK_IMPORTED_MODULE_1__.cloneElement)(child, {
|
41098
41105
|
variant: variant
|
41099
41106
|
});
|
@@ -41168,7 +41175,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
41168
41175
|
/* harmony import */ var styled_components__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(styled_components__WEBPACK_IMPORTED_MODULE_2__);
|
41169
41176
|
/* harmony import */ var _theme__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../theme */ "./src/theme.js");
|
41170
41177
|
/* harmony import */ var _typography__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../typography */ "./src/typography/index.js");
|
41171
|
-
/* harmony import */ var
|
41178
|
+
/* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../util */ "./src/util/index.js");
|
41172
41179
|
// LICENSE_CODE ZON
|
41173
41180
|
|
41174
41181
|
|
@@ -41197,7 +41204,7 @@ var Tab = function Tab(props) {
|
|
41197
41204
|
tabIndex: selected ? 0 : -1,
|
41198
41205
|
"aria-disabled": disabled ? 'true' : undefined,
|
41199
41206
|
disabled: !!disabled
|
41200
|
-
}, (0,
|
41207
|
+
}, (0,_util__WEBPACK_IMPORTED_MODULE_5__.getCommonProps)(props)), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(Wrap, null, leftContent, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(Text, {
|
41201
41208
|
$variant: variant
|
41202
41209
|
}, text)), rightContent);
|
41203
41210
|
};
|
@@ -41268,7 +41275,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
41268
41275
|
/* harmony import */ var styled_components__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! styled-components */ "styled-components");
|
41269
41276
|
/* harmony import */ var styled_components__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(styled_components__WEBPACK_IMPORTED_MODULE_1__);
|
41270
41277
|
/* harmony import */ var _theme__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../theme */ "./src/theme.js");
|
41271
|
-
/* harmony import */ var
|
41278
|
+
/* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../util */ "./src/util/index.js");
|
41272
41279
|
/* harmony import */ var _constants__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../constants */ "./src/constants.js");
|
41273
41280
|
/* harmony import */ var _context__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./context */ "./src/table/context.js");
|
41274
41281
|
/* harmony import */ var _table_row__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./table_row */ "./src/table/table_row.js");
|
@@ -41320,9 +41327,9 @@ var Cell = function Cell(props) {
|
|
41320
41327
|
$isEditing: isEditing,
|
41321
41328
|
$isLastRow: isLastRow
|
41322
41329
|
}, cell.getCellProps([getColumnProps(column), getCellProps(cell)]));
|
41323
|
-
cellProps.className = (0,
|
41330
|
+
cellProps.className = (0,_util__WEBPACK_IMPORTED_MODULE_3__.classNames)(null, null, (0,_util__WEBPACK_IMPORTED_MODULE_3__.classNames)(column.className, {
|
41324
41331
|
cell: true
|
41325
|
-
}), (0,
|
41332
|
+
}), (0,_util__WEBPACK_IMPORTED_MODULE_3__.classNames)(className, {
|
41326
41333
|
tableCell: true
|
41327
41334
|
}), cellProps.className);
|
41328
41335
|
if (canEdit) {
|
@@ -42048,7 +42055,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
42048
42055
|
/* harmony export */ });
|
42049
42056
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
|
42050
42057
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
42051
|
-
/* harmony import */ var
|
42058
|
+
/* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../util */ "./src/util/index.js");
|
42052
42059
|
/* harmony import */ var _cell__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./cell */ "./src/table/cell.js");
|
42053
42060
|
/* harmony import */ var _context__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./context */ "./src/table/context.js");
|
42054
42061
|
// LICENSE_CODE ZON
|
@@ -42083,7 +42090,7 @@ var TableFooter = function TableFooter(props) {
|
|
42083
42090
|
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("div", {
|
42084
42091
|
role: "rowgroup",
|
42085
42092
|
"data-rowgroup-type": "footer",
|
42086
|
-
className: (0,
|
42093
|
+
className: (0,_util__WEBPACK_IMPORTED_MODULE_1__.classNames)(className, {
|
42087
42094
|
tableFooter: true
|
42088
42095
|
})
|
42089
42096
|
}, footerGroups.map(function (group) {
|
@@ -42094,7 +42101,7 @@ var TableFooter = function TableFooter(props) {
|
|
42094
42101
|
key: key,
|
42095
42102
|
role: "row"
|
42096
42103
|
}, rest, {
|
42097
|
-
className: (0,
|
42104
|
+
className: (0,_util__WEBPACK_IMPORTED_MODULE_1__.classNames)(className, {
|
42098
42105
|
footerRow: true
|
42099
42106
|
})
|
42100
42107
|
}), group.headers.map(function (column) {
|
@@ -42102,7 +42109,7 @@ var TableFooter = function TableFooter(props) {
|
|
42102
42109
|
column: column,
|
42103
42110
|
key: column.getFooterProps().key,
|
42104
42111
|
rowDensity: rowDensity,
|
42105
|
-
className: (0,
|
42112
|
+
className: (0,_util__WEBPACK_IMPORTED_MODULE_1__.classNames)(className, {
|
42106
42113
|
footerCell: true
|
42107
42114
|
})
|
42108
42115
|
});
|
@@ -42124,7 +42131,7 @@ var FooterCell = function FooterCell(props) {
|
|
42124
42131
|
$rowDensity: rowDensity,
|
42125
42132
|
$isFooter: true
|
42126
42133
|
}, column.getFooterProps([getColumnProps(column), getFooterProps(column)]));
|
42127
|
-
footerProps.className = (0,
|
42134
|
+
footerProps.className = (0,_util__WEBPACK_IMPORTED_MODULE_1__.classNames)(column.className, {
|
42128
42135
|
footer: true
|
42129
42136
|
}, className, footerProps.className);
|
42130
42137
|
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_cell__WEBPACK_IMPORTED_MODULE_2__.StyledCell, _extends({
|
@@ -42152,12 +42159,13 @@ __webpack_require__.r(__webpack_exports__);
|
|
42152
42159
|
/* harmony import */ var styled_components__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(styled_components__WEBPACK_IMPORTED_MODULE_1__);
|
42153
42160
|
/* harmony import */ var _theme__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../theme */ "./src/theme.js");
|
42154
42161
|
/* harmony import */ var _typography__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../typography */ "./src/typography/index.js");
|
42155
|
-
/* harmony import */ var
|
42156
|
-
/* harmony import */ var
|
42157
|
-
/* harmony import */ var
|
42158
|
-
/* harmony import */ var
|
42159
|
-
/* harmony import */ var
|
42160
|
-
/* harmony import */ var
|
42162
|
+
/* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../util */ "./src/util/index.js");
|
42163
|
+
/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../utils */ "./src/utils.js");
|
42164
|
+
/* harmony import */ var _constants__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../constants */ "./src/constants.js");
|
42165
|
+
/* harmony import */ var _context__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./context */ "./src/table/context.js");
|
42166
|
+
/* harmony import */ var _header_functions__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./header_functions */ "./src/table/header_functions.js");
|
42167
|
+
/* harmony import */ var _sort_icon__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./sort_icon */ "./src/table/sort_icon.js");
|
42168
|
+
/* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./util */ "./src/table/util.js");
|
42161
42169
|
// LICENSE_CODE ZON
|
42162
42170
|
|
42163
42171
|
|
@@ -42182,23 +42190,24 @@ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) r
|
|
42182
42190
|
|
42183
42191
|
|
42184
42192
|
|
42193
|
+
|
42185
42194
|
var TableHeader = function TableHeader(props) {
|
42186
42195
|
var className = props.className,
|
42187
42196
|
compact = props.compact,
|
42188
42197
|
left = props.left;
|
42189
|
-
var _useTableContext = (0,
|
42198
|
+
var _useTableContext = (0,_context__WEBPACK_IMPORTED_MODULE_7__.useTableContext)(),
|
42190
42199
|
headerGroups = _useTableContext.headerGroups,
|
42191
42200
|
hideHeader = _useTableContext.hideHeader;
|
42192
42201
|
if (hideHeader) return null;
|
42193
42202
|
var style = {};
|
42194
|
-
if (typeof left != 'undefined') style.marginLeft = (0,
|
42203
|
+
if (typeof left != 'undefined') style.marginLeft = (0,_utils__WEBPACK_IMPORTED_MODULE_5__.toPixel)(-left);
|
42195
42204
|
var dataAttributes = {};
|
42196
42205
|
if (!compact) dataAttributes['data-rowgroup-type'] = 'head';
|
42197
42206
|
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("div", _extends({
|
42198
42207
|
role: "rowgroup",
|
42199
42208
|
style: style
|
42200
42209
|
}, dataAttributes, {
|
42201
|
-
className: (0,
|
42210
|
+
className: (0,_util__WEBPACK_IMPORTED_MODULE_4__.classNames)(className, {
|
42202
42211
|
tableHeader: true,
|
42203
42212
|
'tableHeader--is-compact': compact
|
42204
42213
|
})
|
@@ -42209,7 +42218,7 @@ var TableHeader = function TableHeader(props) {
|
|
42209
42218
|
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("div", _extends({
|
42210
42219
|
key: key
|
42211
42220
|
}, rest, {
|
42212
|
-
className: (0,
|
42221
|
+
className: (0,_util__WEBPACK_IMPORTED_MODULE_4__.classNames)(className, {
|
42213
42222
|
headerRow: true
|
42214
42223
|
})
|
42215
42224
|
}), group.headers.map(function (header, i, arr) {
|
@@ -42219,7 +42228,7 @@ var TableHeader = function TableHeader(props) {
|
|
42219
42228
|
isLast: isLast,
|
42220
42229
|
key: header.getHeaderProps().key,
|
42221
42230
|
header: header,
|
42222
|
-
className: (0,
|
42231
|
+
className: (0,_util__WEBPACK_IMPORTED_MODULE_4__.classNames)(className, {
|
42223
42232
|
headerCell: true,
|
42224
42233
|
'headerCell--is-compact': compact,
|
42225
42234
|
'headerCell--is-last': isLast
|
@@ -42239,7 +42248,7 @@ var HeaderCell = function HeaderCell(props) {
|
|
42239
42248
|
on_sort = header.on_sort,
|
42240
42249
|
isResizing = header.isResizing,
|
42241
42250
|
getResizerProps = header.getResizerProps;
|
42242
|
-
var _useTableContext2 = (0,
|
42251
|
+
var _useTableContext2 = (0,_context__WEBPACK_IMPORTED_MODULE_7__.useTableContext)(),
|
42243
42252
|
getColumnProps = _useTableContext2.getColumnProps,
|
42244
42253
|
getHeaderProps = _useTableContext2.getHeaderProps,
|
42245
42254
|
columnsSort = _useTableContext2.columnsSort,
|
@@ -42263,7 +42272,7 @@ var HeaderCell = function HeaderCell(props) {
|
|
42263
42272
|
var iconVisible = canSort && (['asc', 'desc'].includes(sort) || hovered);
|
42264
42273
|
var headerCellProps = header.getHeaderProps([getColumnProps(header), getHeaderProps(header)]);
|
42265
42274
|
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(HeaderCellContent, _extends({}, headerCellProps, {
|
42266
|
-
className: (0,
|
42275
|
+
className: (0,_util__WEBPACK_IMPORTED_MODULE_4__.classNames)(header.className, {
|
42267
42276
|
header: true
|
42268
42277
|
}, className, headerCellProps.className),
|
42269
42278
|
onMouseOver: function onMouseOver() {
|
@@ -42275,16 +42284,16 @@ var HeaderCell = function HeaderCell(props) {
|
|
42275
42284
|
}), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(HeaderCellWrapper, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(HeaderCellLeft, {
|
42276
42285
|
$canSort: canSort,
|
42277
42286
|
onClick: handleSort
|
42278
|
-
}, !compact && (0,
|
42287
|
+
}, !compact && (0,_util__WEBPACK_IMPORTED_MODULE_10__.renderCellContent)(header, 'Header', {
|
42279
42288
|
compact: compact
|
42280
42289
|
}), compact && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_typography__WEBPACK_IMPORTED_MODULE_3__.Label, {
|
42281
42290
|
variant: "sm",
|
42282
42291
|
color: "gray_11",
|
42283
42292
|
no_wrap: true
|
42284
|
-
}, name || id), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(
|
42293
|
+
}, name || id), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_sort_icon__WEBPACK_IMPORTED_MODULE_9__.SortIcon, {
|
42285
42294
|
visible: !!iconVisible,
|
42286
42295
|
reverse: sort == 'desc'
|
42287
|
-
})), !compact && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(
|
42296
|
+
})), !compact && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_header_functions__WEBPACK_IMPORTED_MODULE_8__.HeaderFunctions, {
|
42288
42297
|
header: header,
|
42289
42298
|
visible: hovered,
|
42290
42299
|
onItemClick: function onItemClick() {
|
@@ -42298,7 +42307,7 @@ HeaderCell.displayName = 'HeaderCell';
|
|
42298
42307
|
var HeaderCellContent = styled_components__WEBPACK_IMPORTED_MODULE_1___default().div.withConfig({
|
42299
42308
|
displayName: "HeaderCellContent",
|
42300
42309
|
componentId: "sc-8zg5t0-0"
|
42301
|
-
})(["background-color:", ";&:hover{background-color:", ";}border-bottom:1px solid ", ";&[data-pinned]{z-index:", " !important;}&[data-pinned-last]{box-shadow:2px 0px 4px -2px rgba(24,39,75,0.12),4px 0px 4px -2px rgba(24,39,75,0.08);}"], _theme__WEBPACK_IMPORTED_MODULE_2__["default"].color.white, _theme__WEBPACK_IMPORTED_MODULE_2__["default"].color.gray_2, _theme__WEBPACK_IMPORTED_MODULE_2__["default"].color.gray_3,
|
42310
|
+
})(["background-color:", ";&:hover{background-color:", ";}border-bottom:1px solid ", ";&[data-pinned]{z-index:", " !important;}&[data-pinned-last]{box-shadow:2px 0px 4px -2px rgba(24,39,75,0.12),4px 0px 4px -2px rgba(24,39,75,0.08);}"], _theme__WEBPACK_IMPORTED_MODULE_2__["default"].color.white, _theme__WEBPACK_IMPORTED_MODULE_2__["default"].color.gray_2, _theme__WEBPACK_IMPORTED_MODULE_2__["default"].color.gray_3, _constants__WEBPACK_IMPORTED_MODULE_6__.Z_INDEX.pinnedColumnHeader);
|
42302
42311
|
var HeaderCellWrapper = styled_components__WEBPACK_IMPORTED_MODULE_1___default().div.withConfig({
|
42303
42312
|
displayName: "HeaderCellWrapper",
|
42304
42313
|
componentId: "sc-8zg5t0-1"
|
@@ -42314,7 +42323,7 @@ HeaderCellLeft.displayName = 'HeaderCellLeft';
|
|
42314
42323
|
var HeaderCellResizer = styled_components__WEBPACK_IMPORTED_MODULE_1___default().div.withConfig({
|
42315
42324
|
displayName: "HeaderCellResizer",
|
42316
42325
|
componentId: "sc-8zg5t0-3"
|
42317
|
-
})(["display:inline-block;width:10px;height:100%;position:absolute;right:0;top:0;transform:translateX(50%);z-index:", ";touch-action:none;", ""],
|
42326
|
+
})(["display:inline-block;width:10px;height:100%;position:absolute;right:0;top:0;transform:translateX(50%);z-index:", ";touch-action:none;", ""], _constants__WEBPACK_IMPORTED_MODULE_6__.Z_INDEX.cellResizer, function (props) {
|
42318
42327
|
if (props.$isResizing) {
|
42319
42328
|
return (0,styled_components__WEBPACK_IMPORTED_MODULE_1__.css)(["&:after{content:\" \";display:block;width:2px;height:24px;background:", ";position:absolute;bottom:0;left:4px;}"], _theme__WEBPACK_IMPORTED_MODULE_2__["default"].color.blue_10);
|
42320
42329
|
}
|
@@ -43062,7 +43071,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
43062
43071
|
/* harmony export */ });
|
43063
43072
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
|
43064
43073
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
43065
|
-
/* harmony import */ var
|
43074
|
+
/* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../util */ "./src/util/index.js");
|
43066
43075
|
/* harmony import */ var _cell__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./cell */ "./src/table/cell.js");
|
43067
43076
|
/* harmony import */ var _table_row__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./table_row */ "./src/table/table_row.js");
|
43068
43077
|
// LICENSE_CODE ZON
|
@@ -43089,7 +43098,7 @@ var renderRow = function renderRow(opt) {
|
|
43089
43098
|
var cursor = onRowClick ? 'pointer' : undefined;
|
43090
43099
|
var tableRow = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_table_row__WEBPACK_IMPORTED_MODULE_3__.TableRow, _extends({}, rowProps, {
|
43091
43100
|
onClick: onClick,
|
43092
|
-
className: (0,
|
43101
|
+
className: (0,_util__WEBPACK_IMPORTED_MODULE_1__.classNames)(className, {
|
43093
43102
|
tableRow: true,
|
43094
43103
|
'tableRow--is-pinned': row.isPinned
|
43095
43104
|
}, rowProps.className),
|
@@ -43108,7 +43117,7 @@ var renderRow = function renderRow(opt) {
|
|
43108
43117
|
key: "".concat(rowProps.key, "_fragment")
|
43109
43118
|
}, tableRow, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_table_row__WEBPACK_IMPORTED_MODULE_3__.TableRow, _extends({}, rowProps, {
|
43110
43119
|
key: "".concat(rowProps.key, "_subcomponent"),
|
43111
|
-
className: (0,
|
43120
|
+
className: (0,_util__WEBPACK_IMPORTED_MODULE_1__.classNames)(className, {
|
43112
43121
|
rowSubComponent: true
|
43113
43122
|
}, rowProps.className)
|
43114
43123
|
}), renderRowSubComponent({
|
@@ -43173,12 +43182,13 @@ __webpack_require__.r(__webpack_exports__);
|
|
43173
43182
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
|
43174
43183
|
/* harmony import */ var styled_components__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! styled-components */ "styled-components");
|
43175
43184
|
/* harmony import */ var styled_components__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(styled_components__WEBPACK_IMPORTED_MODULE_2__);
|
43176
|
-
/* harmony import */ var
|
43177
|
-
/* harmony import */ var
|
43178
|
-
/* harmony import */ var
|
43179
|
-
/* harmony import */ var
|
43180
|
-
/* harmony import */ var
|
43181
|
-
/* harmony import */ var
|
43185
|
+
/* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../util */ "./src/util/index.js");
|
43186
|
+
/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../utils */ "./src/utils.js");
|
43187
|
+
/* harmony import */ var _constants__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../constants */ "./src/constants.js");
|
43188
|
+
/* harmony import */ var _hooks__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../hooks */ "./src/hooks/index.js");
|
43189
|
+
/* harmony import */ var _context__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./context */ "./src/table/context.js");
|
43190
|
+
/* harmony import */ var _header__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./header */ "./src/table/header.js");
|
43191
|
+
/* harmony import */ var _render_row__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./render_row */ "./src/table/render_row.js");
|
43182
43192
|
// LICENSE_CODE ZON
|
43183
43193
|
|
43184
43194
|
|
@@ -43198,6 +43208,7 @@ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
43198
43208
|
|
43199
43209
|
|
43200
43210
|
|
43211
|
+
|
43201
43212
|
var StickyHeader = function StickyHeader(props) {
|
43202
43213
|
var className = props.className,
|
43203
43214
|
offsetTop = props.offsetTop,
|
@@ -43214,7 +43225,7 @@ var StickyHeader = function StickyHeader(props) {
|
|
43214
43225
|
_useState4 = _slicedToArray(_useState3, 2),
|
43215
43226
|
showSticky = _useState4[0],
|
43216
43227
|
setShowSticky = _useState4[1];
|
43217
|
-
(0,
|
43228
|
+
(0,_hooks__WEBPACK_IMPORTED_MODULE_6__.useEventListener)(scrollTarget || window, {
|
43218
43229
|
event: 'scroll',
|
43219
43230
|
handler: lodash_throttle__WEBPACK_IMPORTED_MODULE_0___default()(function () {
|
43220
43231
|
if (!tableRef.current) return;
|
@@ -43228,35 +43239,35 @@ var StickyHeader = function StickyHeader(props) {
|
|
43228
43239
|
_useState6 = _slicedToArray(_useState5, 2),
|
43229
43240
|
left = _useState6[0],
|
43230
43241
|
setLeft = _useState6[1];
|
43231
|
-
(0,
|
43242
|
+
(0,_hooks__WEBPACK_IMPORTED_MODULE_6__.useEventListener)(wrapperRef.current, {
|
43232
43243
|
event: 'scroll',
|
43233
43244
|
handler: lodash_throttle__WEBPACK_IMPORTED_MODULE_0___default()(function (evt) {
|
43234
43245
|
setLeft(evt.target.scrollLeft);
|
43235
43246
|
}, 100)
|
43236
43247
|
});
|
43237
|
-
var _useTableContext = (0,
|
43248
|
+
var _useTableContext = (0,_context__WEBPACK_IMPORTED_MODULE_7__.useTableContext)(),
|
43238
43249
|
prepareRow = _useTableContext.prepareRow,
|
43239
43250
|
columnStartEditing = _useTableContext.columnStartEditing,
|
43240
43251
|
columnDoneEditing = _useTableContext.columnDoneEditing,
|
43241
43252
|
_useTableContext$pinn = _useTableContext.pinnedRows,
|
43242
43253
|
pinnedRows = _useTableContext$pinn === void 0 ? [] : _useTableContext$pinn;
|
43243
43254
|
var style = {
|
43244
|
-
top: (0,
|
43245
|
-
width: (0,
|
43255
|
+
top: (0,_utils__WEBPACK_IMPORTED_MODULE_4__.toPixel)(offsetTop),
|
43256
|
+
width: (0,_utils__WEBPACK_IMPORTED_MODULE_4__.toPixel)(width)
|
43246
43257
|
};
|
43247
43258
|
if (!showSticky) return null;
|
43248
43259
|
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(StickyHeaderWrapper, {
|
43249
43260
|
style: style,
|
43250
|
-
className: (0,
|
43261
|
+
className: (0,_util__WEBPACK_IMPORTED_MODULE_3__.classNames)(className, {
|
43251
43262
|
stickyHeader: true
|
43252
43263
|
})
|
43253
|
-
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(
|
43264
|
+
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_header__WEBPACK_IMPORTED_MODULE_8__.TableHeader, {
|
43254
43265
|
left: left,
|
43255
43266
|
className: className,
|
43256
43267
|
compact: true
|
43257
43268
|
}), pinnedRows.map(function (row) {
|
43258
43269
|
prepareRow(row);
|
43259
|
-
return (0,
|
43270
|
+
return (0,_render_row__WEBPACK_IMPORTED_MODULE_9__.renderRow)({
|
43260
43271
|
row: row,
|
43261
43272
|
columnStartEditing: columnStartEditing,
|
43262
43273
|
columnDoneEditing: columnDoneEditing,
|
@@ -43270,7 +43281,7 @@ StickyHeader.displayName = 'StickyHeader';
|
|
43270
43281
|
var StickyHeaderWrapper = styled_components__WEBPACK_IMPORTED_MODULE_2___default().div.withConfig({
|
43271
43282
|
displayName: "StickyHeaderWrapper",
|
43272
43283
|
componentId: "sc-hh47bp-0"
|
43273
|
-
})(["position:fixed;z-index:", ";overflow-x:hidden;box-shadow:0px 2px 4px -2px rgba(24,39,75,0.12);"],
|
43284
|
+
})(["position:fixed;z-index:", ";overflow-x:hidden;box-shadow:0px 2px 4px -2px rgba(24,39,75,0.12);"], _constants__WEBPACK_IMPORTED_MODULE_5__.Z_INDEX.stickyHeader);
|
43274
43285
|
StickyHeaderWrapper.displayName = 'StickyHeaderWrapper';
|
43275
43286
|
|
43276
43287
|
/***/ }),
|
@@ -43491,14 +43502,13 @@ __webpack_require__.r(__webpack_exports__);
|
|
43491
43502
|
/* harmony import */ var styled_components__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! styled-components */ "styled-components");
|
43492
43503
|
/* harmony import */ var styled_components__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(styled_components__WEBPACK_IMPORTED_MODULE_3__);
|
43493
43504
|
/* harmony import */ var _theme__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../theme */ "./src/theme.js");
|
43494
|
-
/* harmony import */ var
|
43495
|
-
/* harmony import */ var
|
43496
|
-
/* harmony import */ var
|
43497
|
-
/* harmony import */ var
|
43498
|
-
/* harmony import */ var
|
43499
|
-
/* harmony import */ var
|
43500
|
-
/* harmony import */ var
|
43501
|
-
/* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./util */ "./src/table/util.js");
|
43505
|
+
/* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../util */ "./src/util/index.js");
|
43506
|
+
/* harmony import */ var _context__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./context */ "./src/table/context.js");
|
43507
|
+
/* harmony import */ var _footer__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./footer */ "./src/table/footer.js");
|
43508
|
+
/* harmony import */ var _header__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./header */ "./src/table/header.js");
|
43509
|
+
/* harmony import */ var _render_row__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./render_row */ "./src/table/render_row.js");
|
43510
|
+
/* harmony import */ var _sticky_header__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./sticky_header */ "./src/table/sticky_header.js");
|
43511
|
+
/* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./util */ "./src/table/util.js");
|
43502
43512
|
// LICENSE_CODE ZON
|
43503
43513
|
|
43504
43514
|
|
@@ -43519,50 +43529,49 @@ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) r
|
|
43519
43529
|
|
43520
43530
|
|
43521
43531
|
|
43522
|
-
|
43523
43532
|
var Table = function Table(props) {
|
43524
|
-
var context = (0,
|
43533
|
+
var context = (0,_context__WEBPACK_IMPORTED_MODULE_6__.useTableContext)();
|
43525
43534
|
// not under context
|
43526
|
-
if (context ===
|
43527
|
-
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(
|
43535
|
+
if (context === _context__WEBPACK_IMPORTED_MODULE_6__.defaultContextValue) {
|
43536
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(_context__WEBPACK_IMPORTED_MODULE_6__["default"], props, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(InnerTable, props));
|
43528
43537
|
}
|
43529
43538
|
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(InnerTable, props);
|
43530
43539
|
};
|
43531
43540
|
Table.displayName = 'Table';
|
43532
|
-
Table.propTypes = lodash_cloneDeep__WEBPACK_IMPORTED_MODULE_1___default()(
|
43541
|
+
Table.propTypes = lodash_cloneDeep__WEBPACK_IMPORTED_MODULE_1___default()(_context__WEBPACK_IMPORTED_MODULE_6__["default"].propTypes);
|
43533
43542
|
var InnerTable = function InnerTable(props) {
|
43534
|
-
var _useTableContext = (0,
|
43543
|
+
var _useTableContext = (0,_context__WEBPACK_IMPORTED_MODULE_6__.useTableContext)(),
|
43535
43544
|
getTableProps = _useTableContext.getTableProps,
|
43536
43545
|
context = _objectWithoutProperties(_useTableContext, _excluded);
|
43537
|
-
var className = (0,
|
43538
|
-
var rowDensity = (0,
|
43539
|
-
var onRowClick = (0,
|
43540
|
-
var stickyHeader = (0,
|
43541
|
-
var scrollTarget = (0,
|
43546
|
+
var className = (0,_util__WEBPACK_IMPORTED_MODULE_11__.firstDefined)(props.className, context.className);
|
43547
|
+
var rowDensity = (0,_util__WEBPACK_IMPORTED_MODULE_11__.firstDefined)(props.rowDensity, context.rowDensity);
|
43548
|
+
var onRowClick = (0,_util__WEBPACK_IMPORTED_MODULE_11__.firstDefined)(props.onRowClick, context.onRowClick);
|
43549
|
+
var stickyHeader = (0,_util__WEBPACK_IMPORTED_MODULE_11__.firstDefined)(props.stickyHeader, context.stickyHeader);
|
43550
|
+
var scrollTarget = (0,_util__WEBPACK_IMPORTED_MODULE_11__.firstDefined)(props.scrollTarget, context.scrollTarget);
|
43542
43551
|
var offsetTop = lodash_isObject__WEBPACK_IMPORTED_MODULE_0___default()(stickyHeader) && stickyHeader.offsetTop || 0;
|
43543
43552
|
var wrapperRef = (0,react__WEBPACK_IMPORTED_MODULE_2__.useRef)();
|
43544
43553
|
var tableRef = (0,react__WEBPACK_IMPORTED_MODULE_2__.useRef)();
|
43545
43554
|
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(TableWrapper, {
|
43546
43555
|
ref: wrapperRef,
|
43547
|
-
className: (0,
|
43556
|
+
className: (0,_util__WEBPACK_IMPORTED_MODULE_5__.classNames)(className, {
|
43548
43557
|
container: true
|
43549
43558
|
}, className)
|
43550
43559
|
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(StyledTable, _extends({
|
43551
43560
|
ref: tableRef
|
43552
43561
|
}, getTableProps(), {
|
43553
|
-
className: (0,
|
43562
|
+
className: (0,_util__WEBPACK_IMPORTED_MODULE_5__.classNames)(className, {
|
43554
43563
|
table: true
|
43555
43564
|
})
|
43556
|
-
}), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(
|
43565
|
+
}), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(_header__WEBPACK_IMPORTED_MODULE_8__.TableHeader, {
|
43557
43566
|
className: className
|
43558
43567
|
}), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(TableBody, {
|
43559
43568
|
rowDensity: rowDensity,
|
43560
43569
|
className: className,
|
43561
43570
|
onRowClick: onRowClick
|
43562
|
-
}), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(
|
43571
|
+
}), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(_footer__WEBPACK_IMPORTED_MODULE_7__.TableFooter, {
|
43563
43572
|
rowDensity: rowDensity,
|
43564
43573
|
className: className
|
43565
|
-
}), !!stickyHeader && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(
|
43574
|
+
}), !!stickyHeader && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(_sticky_header__WEBPACK_IMPORTED_MODULE_10__.StickyHeader, {
|
43566
43575
|
offsetTop: offsetTop,
|
43567
43576
|
onRowClick: onRowClick,
|
43568
43577
|
rowDensity: rowDensity,
|
@@ -43587,7 +43596,7 @@ var TableBody = function TableBody(props) {
|
|
43587
43596
|
var className = props.className,
|
43588
43597
|
rowDensity = props.rowDensity,
|
43589
43598
|
onRowClick = props.onRowClick;
|
43590
|
-
var _useTableContext2 = (0,
|
43599
|
+
var _useTableContext2 = (0,_context__WEBPACK_IMPORTED_MODULE_6__.useTableContext)(),
|
43591
43600
|
getTableBodyProps = _useTableContext2.getTableBodyProps,
|
43592
43601
|
prepareRow = _useTableContext2.prepareRow,
|
43593
43602
|
page = _useTableContext2.page,
|
@@ -43599,12 +43608,12 @@ var TableBody = function TableBody(props) {
|
|
43599
43608
|
getRowProps = _useTableContext2.getRowProps,
|
43600
43609
|
renderRowSubComponent = _useTableContext2.renderRowSubComponent;
|
43601
43610
|
var body = function () {
|
43602
|
-
if (isLoading) return (0,
|
43603
|
-
if (!page.length) return (0,
|
43611
|
+
if (isLoading) return (0,_util__WEBPACK_IMPORTED_MODULE_5__.flexRender)(LoadingComp);
|
43612
|
+
if (!page.length) return (0,_util__WEBPACK_IMPORTED_MODULE_5__.flexRender)(NoDataComp);
|
43604
43613
|
return page.map(function (row, i, arr) {
|
43605
43614
|
prepareRow(row);
|
43606
43615
|
if (row.isPinned) return null;
|
43607
|
-
return (0,
|
43616
|
+
return (0,_render_row__WEBPACK_IMPORTED_MODULE_9__.renderRow)({
|
43608
43617
|
row: row,
|
43609
43618
|
rowDensity: rowDensity,
|
43610
43619
|
onRowClick: onRowClick,
|
@@ -43618,12 +43627,12 @@ var TableBody = function TableBody(props) {
|
|
43618
43627
|
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement("div", _extends({
|
43619
43628
|
"data-rowgroup-type": "body"
|
43620
43629
|
}, getTableBodyProps(), {
|
43621
|
-
className: (0,
|
43630
|
+
className: (0,_util__WEBPACK_IMPORTED_MODULE_5__.classNames)(className, {
|
43622
43631
|
tableBody: true
|
43623
43632
|
})
|
43624
43633
|
}), pinnedRows.map(function (row) {
|
43625
43634
|
prepareRow(row);
|
43626
|
-
return (0,
|
43635
|
+
return (0,_render_row__WEBPACK_IMPORTED_MODULE_9__.renderRow)({
|
43627
43636
|
row: row,
|
43628
43637
|
rowDensity: rowDensity,
|
43629
43638
|
onRowClick: onRowClick,
|
@@ -44471,6 +44480,77 @@ var setTranslationFn = function setTranslationFn(cb) {
|
|
44471
44480
|
|
44472
44481
|
/***/ }),
|
44473
44482
|
|
44483
|
+
/***/ "./src/typography/constant.js":
|
44484
|
+
/*!************************************!*\
|
44485
|
+
!*** ./src/typography/constant.js ***!
|
44486
|
+
\************************************/
|
44487
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
44488
|
+
|
44489
|
+
"use strict";
|
44490
|
+
__webpack_require__.r(__webpack_exports__);
|
44491
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
44492
|
+
/* harmony export */ WHITE_SPACES: () => (/* binding */ WHITE_SPACES)
|
44493
|
+
/* harmony export */ });
|
44494
|
+
var WHITE_SPACES = ['normal', 'nowrap', 'pre', 'pre-wrap', 'pre-line', 'break-spaces'];
|
44495
|
+
|
44496
|
+
/***/ }),
|
44497
|
+
|
44498
|
+
/***/ "./src/typography/get_typography_props.js":
|
44499
|
+
/*!************************************************!*\
|
44500
|
+
!*** ./src/typography/get_typography_props.js ***!
|
44501
|
+
\************************************************/
|
44502
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
44503
|
+
|
44504
|
+
"use strict";
|
44505
|
+
__webpack_require__.r(__webpack_exports__);
|
44506
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
44507
|
+
/* harmony export */ getTypographyProps: () => (/* binding */ getTypographyProps)
|
44508
|
+
/* harmony export */ });
|
44509
|
+
/* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../util */ "./src/util/index.js");
|
44510
|
+
// LICENSE_CODE ZON
|
44511
|
+
|
44512
|
+
|
44513
|
+
/*jslint react:true*/
|
44514
|
+
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
44515
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
44516
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
44517
|
+
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; }
|
44518
|
+
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
44519
|
+
function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
44520
|
+
|
44521
|
+
var getTypographyProps = function getTypographyProps(props) {
|
44522
|
+
var as = props.tag,
|
44523
|
+
_props$font_family = props.font_family,
|
44524
|
+
font_family = _props$font_family === void 0 ? 'sans' : _props$font_family,
|
44525
|
+
_props$font_weight = props.font_weight,
|
44526
|
+
font_weight = _props$font_weight === void 0 ? 'regular' : _props$font_weight,
|
44527
|
+
font_size = props.font_size,
|
44528
|
+
_props$line_height = props.line_height,
|
44529
|
+
line_height = _props$line_height === void 0 ? 'none' : _props$line_height,
|
44530
|
+
_props$letter_spacing = props.letter_spacing,
|
44531
|
+
letter_spacing = _props$letter_spacing === void 0 ? 'normal' : _props$letter_spacing,
|
44532
|
+
italic = props.italic,
|
44533
|
+
color = props.color,
|
44534
|
+
no_wrap = props.no_wrap,
|
44535
|
+
underline = props.underline,
|
44536
|
+
whiteSpace = props.whiteSpace;
|
44537
|
+
return _objectSpread({
|
44538
|
+
as: as,
|
44539
|
+
font_family: font_family,
|
44540
|
+
font_weight: font_weight,
|
44541
|
+
font_size: font_size,
|
44542
|
+
line_height: line_height,
|
44543
|
+
letter_spacing: letter_spacing,
|
44544
|
+
italic: italic,
|
44545
|
+
color: color,
|
44546
|
+
no_wrap: no_wrap,
|
44547
|
+
underline: underline,
|
44548
|
+
whiteSpace: whiteSpace
|
44549
|
+
}, (0,_util__WEBPACK_IMPORTED_MODULE_0__.getCommonProps)(props));
|
44550
|
+
};
|
44551
|
+
|
44552
|
+
/***/ }),
|
44553
|
+
|
44474
44554
|
/***/ "./src/typography/header.js":
|
44475
44555
|
/*!**********************************!*\
|
44476
44556
|
!*** ./src/typography/header.js ***!
|
@@ -44487,8 +44567,9 @@ __webpack_require__.r(__webpack_exports__);
|
|
44487
44567
|
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! prop-types */ "prop-types");
|
44488
44568
|
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
|
44489
44569
|
/* harmony import */ var _translation__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../translation */ "./src/translation.js");
|
44490
|
-
/* harmony import */ var
|
44491
|
-
/* harmony import */ var
|
44570
|
+
/* harmony import */ var _constant__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./constant */ "./src/typography/constant.js");
|
44571
|
+
/* harmony import */ var _get_typography_props__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./get_typography_props */ "./src/typography/get_typography_props.js");
|
44572
|
+
/* harmony import */ var _typography__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./typography */ "./src/typography/typography.js");
|
44492
44573
|
// LICENSE_CODE ZON
|
44493
44574
|
|
44494
44575
|
|
@@ -44505,13 +44586,14 @@ function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input ==
|
|
44505
44586
|
|
44506
44587
|
|
44507
44588
|
|
44589
|
+
|
44508
44590
|
var Header = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().forwardRef(function (props, ref) {
|
44509
44591
|
var t = (0,_translation__WEBPACK_IMPORTED_MODULE_2__.useReactTranslate)();
|
44510
|
-
var typographyProps = _objectSpread(_objectSpread({}, (0,
|
44592
|
+
var typographyProps = _objectSpread(_objectSpread({}, (0,_get_typography_props__WEBPACK_IMPORTED_MODULE_4__.getTypographyProps)(props)), {}, {
|
44511
44593
|
font_weight: 'semibold',
|
44512
44594
|
font_size: props.variant == '2xl' ? 'xl' : 'lg'
|
44513
44595
|
});
|
44514
|
-
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(
|
44596
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_typography__WEBPACK_IMPORTED_MODULE_5__["default"], _extends({
|
44515
44597
|
ref: ref
|
44516
44598
|
}, typographyProps), t(props.children));
|
44517
44599
|
});
|
@@ -44521,7 +44603,7 @@ Header.defaultProps = {
|
|
44521
44603
|
};
|
44522
44604
|
Header.propTypes = {
|
44523
44605
|
variant: prop_types__WEBPACK_IMPORTED_MODULE_1___default().oneOf(['xl', '2xl']),
|
44524
|
-
whiteSpace: prop_types__WEBPACK_IMPORTED_MODULE_1___default().oneOf(
|
44606
|
+
whiteSpace: prop_types__WEBPACK_IMPORTED_MODULE_1___default().oneOf(_constant__WEBPACK_IMPORTED_MODULE_3__.WHITE_SPACES)
|
44525
44607
|
};
|
44526
44608
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (Header);
|
44527
44609
|
|
@@ -44543,8 +44625,9 @@ __webpack_require__.r(__webpack_exports__);
|
|
44543
44625
|
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! prop-types */ "prop-types");
|
44544
44626
|
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
|
44545
44627
|
/* harmony import */ var _translation__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../translation */ "./src/translation.js");
|
44546
|
-
/* harmony import */ var
|
44547
|
-
/* harmony import */ var
|
44628
|
+
/* harmony import */ var _constant__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./constant */ "./src/typography/constant.js");
|
44629
|
+
/* harmony import */ var _get_typography_props__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./get_typography_props */ "./src/typography/get_typography_props.js");
|
44630
|
+
/* harmony import */ var _typography__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./typography */ "./src/typography/typography.js");
|
44548
44631
|
// LICENSE_CODE ZON
|
44549
44632
|
|
44550
44633
|
|
@@ -44561,14 +44644,15 @@ function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input ==
|
|
44561
44644
|
|
44562
44645
|
|
44563
44646
|
|
44647
|
+
|
44564
44648
|
var Hyperlink = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().forwardRef(function (props, ref) {
|
44565
44649
|
var t = (0,_translation__WEBPACK_IMPORTED_MODULE_2__.useReactTranslate)();
|
44566
|
-
var typographyProps = _objectSpread(_objectSpread({}, (0,
|
44650
|
+
var typographyProps = _objectSpread(_objectSpread({}, (0,_get_typography_props__WEBPACK_IMPORTED_MODULE_4__.getTypographyProps)(props)), {}, {
|
44567
44651
|
font_size: props.variant == 'lg' ? 'md' : 'xs',
|
44568
44652
|
line_height: 'none',
|
44569
44653
|
underline: true
|
44570
44654
|
});
|
44571
|
-
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(
|
44655
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_typography__WEBPACK_IMPORTED_MODULE_5__["default"], _extends({
|
44572
44656
|
ref: ref
|
44573
44657
|
}, typographyProps), t(props.children));
|
44574
44658
|
});
|
@@ -44578,7 +44662,7 @@ Hyperlink.defaultProps = {
|
|
44578
44662
|
};
|
44579
44663
|
Hyperlink.propTypes = {
|
44580
44664
|
variant: prop_types__WEBPACK_IMPORTED_MODULE_1___default().oneOf(['xs', 'lg']),
|
44581
|
-
whiteSpace: prop_types__WEBPACK_IMPORTED_MODULE_1___default().oneOf(
|
44665
|
+
whiteSpace: prop_types__WEBPACK_IMPORTED_MODULE_1___default().oneOf(_constant__WEBPACK_IMPORTED_MODULE_3__.WHITE_SPACES)
|
44582
44666
|
};
|
44583
44667
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (Hyperlink);
|
44584
44668
|
|
@@ -44633,8 +44717,9 @@ __webpack_require__.r(__webpack_exports__);
|
|
44633
44717
|
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! prop-types */ "prop-types");
|
44634
44718
|
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
|
44635
44719
|
/* harmony import */ var _translation__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../translation */ "./src/translation.js");
|
44636
|
-
/* harmony import */ var
|
44637
|
-
/* harmony import */ var
|
44720
|
+
/* harmony import */ var _constant__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./constant */ "./src/typography/constant.js");
|
44721
|
+
/* harmony import */ var _get_typography_props__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./get_typography_props */ "./src/typography/get_typography_props.js");
|
44722
|
+
/* harmony import */ var _typography__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./typography */ "./src/typography/typography.js");
|
44638
44723
|
// LICENSE_CODE ZON
|
44639
44724
|
|
44640
44725
|
|
@@ -44651,9 +44736,10 @@ function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input ==
|
|
44651
44736
|
|
44652
44737
|
|
44653
44738
|
|
44739
|
+
|
44654
44740
|
var Label = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().forwardRef(function (props, ref) {
|
44655
44741
|
var t = (0,_translation__WEBPACK_IMPORTED_MODULE_2__.useReactTranslate)();
|
44656
|
-
var typographyProps = _objectSpread(_objectSpread({}, (0,
|
44742
|
+
var typographyProps = _objectSpread(_objectSpread({}, (0,_get_typography_props__WEBPACK_IMPORTED_MODULE_4__.getTypographyProps)(props)), {}, {
|
44657
44743
|
font_size: {
|
44658
44744
|
xxs: 'xxs',
|
44659
44745
|
xs: 'xs',
|
@@ -44665,7 +44751,7 @@ var Label = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().forwardRef
|
|
44665
44751
|
sm_medium: 'medium'
|
44666
44752
|
}[props.variant] || 'regular'
|
44667
44753
|
});
|
44668
|
-
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(
|
44754
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_typography__WEBPACK_IMPORTED_MODULE_5__["default"], _extends({
|
44669
44755
|
ref: ref
|
44670
44756
|
}, typographyProps), t(props.children));
|
44671
44757
|
});
|
@@ -44674,7 +44760,8 @@ Label.defaultProps = {
|
|
44674
44760
|
variant: 'base'
|
44675
44761
|
};
|
44676
44762
|
Label.propTypes = {
|
44677
|
-
variant: prop_types__WEBPACK_IMPORTED_MODULE_1___default().oneOf(['xxs', 'xs', 'sm', 'sm_medium', 'base', 'lg'])
|
44763
|
+
variant: prop_types__WEBPACK_IMPORTED_MODULE_1___default().oneOf(['xxs', 'xs', 'sm', 'sm_medium', 'base', 'lg']),
|
44764
|
+
whiteSpace: prop_types__WEBPACK_IMPORTED_MODULE_1___default().oneOf(_constant__WEBPACK_IMPORTED_MODULE_3__.WHITE_SPACES)
|
44678
44765
|
};
|
44679
44766
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (Label);
|
44680
44767
|
|
@@ -44696,8 +44783,9 @@ __webpack_require__.r(__webpack_exports__);
|
|
44696
44783
|
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! prop-types */ "prop-types");
|
44697
44784
|
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
|
44698
44785
|
/* harmony import */ var _translation__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../translation */ "./src/translation.js");
|
44699
|
-
/* harmony import */ var
|
44700
|
-
/* harmony import */ var
|
44786
|
+
/* harmony import */ var _constant__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./constant */ "./src/typography/constant.js");
|
44787
|
+
/* harmony import */ var _get_typography_props__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./get_typography_props */ "./src/typography/get_typography_props.js");
|
44788
|
+
/* harmony import */ var _typography__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./typography */ "./src/typography/typography.js");
|
44701
44789
|
// LICENSE_CODE ZON
|
44702
44790
|
|
44703
44791
|
|
@@ -44714,9 +44802,10 @@ function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input ==
|
|
44714
44802
|
|
44715
44803
|
|
44716
44804
|
|
44805
|
+
|
44717
44806
|
var Paragraph = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().forwardRef(function (props, ref) {
|
44718
44807
|
var t = (0,_translation__WEBPACK_IMPORTED_MODULE_2__.useReactTranslate)();
|
44719
|
-
var typographyProps = _objectSpread(_objectSpread({}, (0,
|
44808
|
+
var typographyProps = _objectSpread(_objectSpread({}, (0,_get_typography_props__WEBPACK_IMPORTED_MODULE_4__.getTypographyProps)(props)), {}, {
|
44720
44809
|
font_size: {
|
44721
44810
|
xxs: 'xxs',
|
44722
44811
|
xs: 'xs',
|
@@ -44727,7 +44816,7 @@ var Paragraph = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().forwar
|
|
44727
44816
|
'lg_loose': 'loose'
|
44728
44817
|
}[props.variant] || 'snug'
|
44729
44818
|
});
|
44730
|
-
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(
|
44819
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_typography__WEBPACK_IMPORTED_MODULE_5__["default"], _extends({
|
44731
44820
|
ref: ref
|
44732
44821
|
}, typographyProps), t(props.children));
|
44733
44822
|
});
|
@@ -44737,7 +44826,7 @@ Paragraph.defaultProps = {
|
|
44737
44826
|
};
|
44738
44827
|
Paragraph.propTypes = {
|
44739
44828
|
variant: prop_types__WEBPACK_IMPORTED_MODULE_1___default().oneOf(['xxs', 'xs', 'sm', 'lg_snug', 'lg_loose']),
|
44740
|
-
whiteSpace: prop_types__WEBPACK_IMPORTED_MODULE_1___default().oneOf(
|
44829
|
+
whiteSpace: prop_types__WEBPACK_IMPORTED_MODULE_1___default().oneOf(_constant__WEBPACK_IMPORTED_MODULE_3__.WHITE_SPACES)
|
44741
44830
|
};
|
44742
44831
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (Paragraph);
|
44743
44832
|
|
@@ -44758,8 +44847,9 @@ __webpack_require__.r(__webpack_exports__);
|
|
44758
44847
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
44759
44848
|
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! prop-types */ "prop-types");
|
44760
44849
|
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
|
44761
|
-
/* harmony import */ var
|
44762
|
-
/* harmony import */ var
|
44850
|
+
/* harmony import */ var _constant__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./constant */ "./src/typography/constant.js");
|
44851
|
+
/* harmony import */ var _get_typography_props__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./get_typography_props */ "./src/typography/get_typography_props.js");
|
44852
|
+
/* harmony import */ var _typography__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./typography */ "./src/typography/typography.js");
|
44763
44853
|
// LICENSE_CODE ZON
|
44764
44854
|
|
44765
44855
|
|
@@ -44775,9 +44865,10 @@ function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input ==
|
|
44775
44865
|
|
44776
44866
|
|
44777
44867
|
|
44868
|
+
|
44778
44869
|
var Style = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().forwardRef(function (props, ref) {
|
44779
44870
|
var children = props.children;
|
44780
|
-
var typographyProps = _objectSpread(_objectSpread({}, (0,
|
44871
|
+
var typographyProps = _objectSpread(_objectSpread({}, (0,_get_typography_props__WEBPACK_IMPORTED_MODULE_3__.getTypographyProps)(props)), {}, {
|
44781
44872
|
font_size: {
|
44782
44873
|
italic_sm: 'sm',
|
44783
44874
|
italic_xs: 'xs',
|
@@ -44793,7 +44884,7 @@ var Style = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().forwardRef
|
|
44793
44884
|
italic: ['italic_lg', 'italic_sm', 'italic_xs'].includes(props.variant),
|
44794
44885
|
uppercase: ['capitals', 'capitals_xs', 'capitals_xxs'].includes(props.variant)
|
44795
44886
|
});
|
44796
|
-
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(
|
44887
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_typography__WEBPACK_IMPORTED_MODULE_4__["default"], _extends({
|
44797
44888
|
ref: ref
|
44798
44889
|
}, typographyProps), children);
|
44799
44890
|
});
|
@@ -44803,7 +44894,7 @@ Style.defaultProps = {
|
|
44803
44894
|
};
|
44804
44895
|
Style.propTypes = {
|
44805
44896
|
variant: prop_types__WEBPACK_IMPORTED_MODULE_1___default().oneOf(['italic_lg', 'italic_sm', 'italic_xs', 'code_sm', 'code_xxs', 'capitals_xs', 'capitals_xxs']),
|
44806
|
-
whiteSpace: prop_types__WEBPACK_IMPORTED_MODULE_1___default().oneOf(
|
44897
|
+
whiteSpace: prop_types__WEBPACK_IMPORTED_MODULE_1___default().oneOf(_constant__WEBPACK_IMPORTED_MODULE_2__.WHITE_SPACES)
|
44807
44898
|
};
|
44808
44899
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (Style);
|
44809
44900
|
|
@@ -44825,6 +44916,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
44825
44916
|
/* harmony import */ var styled_components__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! styled-components */ "styled-components");
|
44826
44917
|
/* harmony import */ var styled_components__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(styled_components__WEBPACK_IMPORTED_MODULE_1__);
|
44827
44918
|
/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../utils */ "./src/utils.js");
|
44919
|
+
/* harmony import */ var _constant__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./constant */ "./src/typography/constant.js");
|
44828
44920
|
// LICENSE_CODE ZON
|
44829
44921
|
|
44830
44922
|
|
@@ -44836,6 +44928,7 @@ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) r
|
|
44836
44928
|
|
44837
44929
|
|
44838
44930
|
|
44931
|
+
|
44839
44932
|
var Typography = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().forwardRef(function (props, ref) {
|
44840
44933
|
var children = props.children,
|
44841
44934
|
font_family = props.font_family,
|
@@ -44878,7 +44971,7 @@ var StyledTypography = styled_components__WEBPACK_IMPORTED_MODULE_1___default().
|
|
44878
44971
|
}, function (props) {
|
44879
44972
|
return props.$uppercase ? 'letter-spacing: 0.02em;' : null;
|
44880
44973
|
}, function (props) {
|
44881
|
-
if (props.$whiteSpace &&
|
44974
|
+
if (props.$whiteSpace && _constant__WEBPACK_IMPORTED_MODULE_3__.WHITE_SPACES.includes(props.$whiteSpace)) return "white-space: ".concat(props.$whiteSpace);
|
44882
44975
|
return props.$noWrap ? 'white-space: nowrap;' : null;
|
44883
44976
|
}, function (props) {
|
44884
44977
|
return props.underline ? 'text-decoration: underline;' : null;
|
@@ -44887,6 +44980,45 @@ var StyledTypography = styled_components__WEBPACK_IMPORTED_MODULE_1___default().
|
|
44887
44980
|
|
44888
44981
|
/***/ }),
|
44889
44982
|
|
44983
|
+
/***/ "./src/util/class-names.js":
|
44984
|
+
/*!*********************************!*\
|
44985
|
+
!*** ./src/util/class-names.js ***!
|
44986
|
+
\*********************************/
|
44987
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
44988
|
+
|
44989
|
+
"use strict";
|
44990
|
+
__webpack_require__.r(__webpack_exports__);
|
44991
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
44992
|
+
/* harmony export */ classNames: () => (/* binding */ classNames)
|
44993
|
+
/* harmony export */ });
|
44994
|
+
// LICENSE_CODE ZON
|
44995
|
+
|
44996
|
+
|
44997
|
+
/*jslint react:true*/
|
44998
|
+
var classNames = function classNames(prefix, state) {
|
44999
|
+
for (var _len = arguments.length, classNameList = new Array(_len > 2 ? _len - 2 : 0), _key = 2; _key < _len; _key++) {
|
45000
|
+
classNameList[_key - 2] = arguments[_key];
|
45001
|
+
}
|
45002
|
+
var arr = [].concat(classNameList);
|
45003
|
+
if (state && prefix) {
|
45004
|
+
for (var key in state) {
|
45005
|
+
if (state.hasOwnProperty(key) && state[key]) arr.push("".concat(applyPrefixToName(prefix, key)));
|
45006
|
+
}
|
45007
|
+
}
|
45008
|
+
return arr.filter(function (i) {
|
45009
|
+
return i;
|
45010
|
+
}).map(function (i) {
|
45011
|
+
return String(i).trim();
|
45012
|
+
}).join(' ');
|
45013
|
+
};
|
45014
|
+
var applyPrefixToName = function applyPrefixToName(prefix, name) {
|
45015
|
+
if (!name) return prefix;
|
45016
|
+
if (name[0] == '-') return prefix + name;
|
45017
|
+
return prefix + '__' + name;
|
45018
|
+
};
|
45019
|
+
|
45020
|
+
/***/ }),
|
45021
|
+
|
44890
45022
|
/***/ "./src/util/flex_renderer.js":
|
44891
45023
|
/*!***********************************!*\
|
44892
45024
|
!*** ./src/util/flex_renderer.js ***!
|
@@ -44928,6 +45060,45 @@ var isExoticComponent = function isExoticComponent(component) {
|
|
44928
45060
|
|
44929
45061
|
/***/ }),
|
44930
45062
|
|
45063
|
+
/***/ "./src/util/get-props.js":
|
45064
|
+
/*!*******************************!*\
|
45065
|
+
!*** ./src/util/get-props.js ***!
|
45066
|
+
\*******************************/
|
45067
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
45068
|
+
|
45069
|
+
"use strict";
|
45070
|
+
__webpack_require__.r(__webpack_exports__);
|
45071
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
45072
|
+
/* harmony export */ getAriaProps: () => (/* binding */ getAriaProps),
|
45073
|
+
/* harmony export */ getCommonProps: () => (/* binding */ getCommonProps),
|
45074
|
+
/* harmony export */ getDataProps: () => (/* binding */ getDataProps)
|
45075
|
+
/* harmony export */ });
|
45076
|
+
/* harmony import */ var lodash_pickBy__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/pickBy */ "./node_modules/lodash/pickBy.js");
|
45077
|
+
/* harmony import */ var lodash_pickBy__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_pickBy__WEBPACK_IMPORTED_MODULE_0__);
|
45078
|
+
/* harmony import */ var lodash_pick__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! lodash/pick */ "./node_modules/lodash/pick.js");
|
45079
|
+
/* harmony import */ var lodash_pick__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash_pick__WEBPACK_IMPORTED_MODULE_1__);
|
45080
|
+
// LICENSE_CODE ZON
|
45081
|
+
|
45082
|
+
|
45083
|
+
/*jslint react:true*/
|
45084
|
+
|
45085
|
+
|
45086
|
+
var getAriaProps = function getAriaProps(props) {
|
45087
|
+
return lodash_pickBy__WEBPACK_IMPORTED_MODULE_0___default()(props, function (_, k) {
|
45088
|
+
return k.startsWith('aria-');
|
45089
|
+
});
|
45090
|
+
};
|
45091
|
+
var getDataProps = function getDataProps(props) {
|
45092
|
+
return lodash_pickBy__WEBPACK_IMPORTED_MODULE_0___default()(props, function (_, k) {
|
45093
|
+
return k.startsWith('data-');
|
45094
|
+
});
|
45095
|
+
};
|
45096
|
+
var getCommonProps = function getCommonProps(props) {
|
45097
|
+
return Object.assign({}, lodash_pick__WEBPACK_IMPORTED_MODULE_1___default()(props, 'id', 'className', 'style', 'onClick', 'role', 'tabIndex'), getAriaProps(props), getDataProps(props));
|
45098
|
+
};
|
45099
|
+
|
45100
|
+
/***/ }),
|
45101
|
+
|
44931
45102
|
/***/ "./src/util/getters.js":
|
44932
45103
|
/*!*****************************!*\
|
44933
45104
|
!*** ./src/util/getters.js ***!
|
@@ -45020,6 +45191,49 @@ var getStyleProps = function getStyleProps(props, name, classNamesState) {
|
|
45020
45191
|
};
|
45021
45192
|
};
|
45022
45193
|
|
45194
|
+
/***/ }),
|
45195
|
+
|
45196
|
+
/***/ "./src/util/index.js":
|
45197
|
+
/*!***************************!*\
|
45198
|
+
!*** ./src/util/index.js ***!
|
45199
|
+
\***************************/
|
45200
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
45201
|
+
|
45202
|
+
"use strict";
|
45203
|
+
__webpack_require__.r(__webpack_exports__);
|
45204
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
45205
|
+
/* harmony export */ OFFSET: () => (/* reexport safe */ _getters__WEBPACK_IMPORTED_MODULE_3__.OFFSET),
|
45206
|
+
/* harmony export */ VirtualizedListFactory: () => (/* reexport safe */ _virtualized_list__WEBPACK_IMPORTED_MODULE_4__.VirtualizedListFactory),
|
45207
|
+
/* harmony export */ classNames: () => (/* reexport safe */ _class_names__WEBPACK_IMPORTED_MODULE_0__.classNames),
|
45208
|
+
/* harmony export */ flexRender: () => (/* reexport safe */ _flex_renderer__WEBPACK_IMPORTED_MODULE_1__.flexRender),
|
45209
|
+
/* harmony export */ getAriaProps: () => (/* reexport safe */ _get_props__WEBPACK_IMPORTED_MODULE_2__.getAriaProps),
|
45210
|
+
/* harmony export */ getCommonProps: () => (/* reexport safe */ _get_props__WEBPACK_IMPORTED_MODULE_2__.getCommonProps),
|
45211
|
+
/* harmony export */ getDataProps: () => (/* reexport safe */ _get_props__WEBPACK_IMPORTED_MODULE_2__.getDataProps),
|
45212
|
+
/* harmony export */ getGroupRowHeight: () => (/* reexport safe */ _getters__WEBPACK_IMPORTED_MODULE_3__.getGroupRowHeight),
|
45213
|
+
/* harmony export */ getListHeight: () => (/* reexport safe */ _getters__WEBPACK_IMPORTED_MODULE_3__.getListHeight),
|
45214
|
+
/* harmony export */ getNextRowIndex: () => (/* reexport safe */ _getters__WEBPACK_IMPORTED_MODULE_3__.getNextRowIndex),
|
45215
|
+
/* harmony export */ getScrollIndex: () => (/* reexport safe */ _getters__WEBPACK_IMPORTED_MODULE_3__.getScrollIndex),
|
45216
|
+
/* harmony export */ getStyleProps: () => (/* reexport safe */ _getters__WEBPACK_IMPORTED_MODULE_3__.getStyleProps),
|
45217
|
+
/* harmony export */ isGroupHeader: () => (/* reexport safe */ _getters__WEBPACK_IMPORTED_MODULE_3__.isGroupHeader),
|
45218
|
+
/* harmony export */ withUserStyles: () => (/* reexport safe */ _with_user_styles__WEBPACK_IMPORTED_MODULE_5__.withUserStyles)
|
45219
|
+
/* harmony export */ });
|
45220
|
+
/* harmony import */ var _class_names__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./class-names */ "./src/util/class-names.js");
|
45221
|
+
/* harmony import */ var _flex_renderer__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./flex_renderer */ "./src/util/flex_renderer.js");
|
45222
|
+
/* harmony import */ var _get_props__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./get-props */ "./src/util/get-props.js");
|
45223
|
+
/* harmony import */ var _getters__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./getters */ "./src/util/getters.js");
|
45224
|
+
/* harmony import */ var _virtualized_list__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./virtualized_list */ "./src/util/virtualized_list.js");
|
45225
|
+
/* harmony import */ var _with_user_styles__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./with_user_styles */ "./src/util/with_user_styles.js");
|
45226
|
+
// LICENSE_CODE ZON
|
45227
|
+
|
45228
|
+
|
45229
|
+
/*jslint react:true*/
|
45230
|
+
|
45231
|
+
|
45232
|
+
|
45233
|
+
|
45234
|
+
|
45235
|
+
|
45236
|
+
|
45023
45237
|
/***/ }),
|
45024
45238
|
|
45025
45239
|
/***/ "./src/util/virtualized_list.js":
|
@@ -45309,33 +45523,26 @@ var withUserStyles = function withUserStyles(styles, custom) {
|
|
45309
45523
|
"use strict";
|
45310
45524
|
__webpack_require__.r(__webpack_exports__);
|
45311
45525
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
45312
|
-
/* harmony export */ classNames: () => (/* binding */ classNames),
|
45313
45526
|
/* harmony export */ colorNames: () => (/* binding */ colorNames),
|
45314
45527
|
/* harmony export */ fromTheme: () => (/* binding */ fromTheme),
|
45315
45528
|
/* harmony export */ getButtonColors: () => (/* binding */ getButtonColors),
|
45316
|
-
/* harmony export */ getCommonProps: () => (/* binding */ getCommonProps),
|
45317
45529
|
/* harmony export */ getIconProps: () => (/* binding */ getIconProps),
|
45318
45530
|
/* harmony export */ getLinkProps: () => (/* binding */ getLinkProps),
|
45319
|
-
/* harmony export */ getTypographyProps: () => (/* binding */ getTypographyProps),
|
45320
45531
|
/* harmony export */ iconNames: () => (/* binding */ iconNames),
|
45321
45532
|
/* harmony export */ toButtonSize: () => (/* binding */ toButtonSize),
|
45322
45533
|
/* harmony export */ toIconSize: () => (/* binding */ toIconSize),
|
45323
45534
|
/* harmony export */ toPixel: () => (/* binding */ toPixel),
|
45324
45535
|
/* harmony export */ toSize: () => (/* binding */ toSize),
|
45325
|
-
/* harmony export */ tooltipPlacements: () => (/* binding */ tooltipPlacements)
|
45326
|
-
/* harmony export */ whiteSpaces: () => (/* binding */ whiteSpaces)
|
45536
|
+
/* harmony export */ tooltipPlacements: () => (/* binding */ tooltipPlacements)
|
45327
45537
|
/* harmony export */ });
|
45328
|
-
/* harmony import */ var
|
45329
|
-
/* harmony import */ var
|
45330
|
-
/* harmony import */ var
|
45331
|
-
/* harmony import */ var
|
45332
|
-
/* harmony import */ var styled_components__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(styled_components__WEBPACK_IMPORTED_MODULE_2__);
|
45333
|
-
/* harmony import */ var _theme__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./theme */ "./src/theme.js");
|
45538
|
+
/* harmony import */ var _icons__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @icons */ "./assets/icons/index.js");
|
45539
|
+
/* harmony import */ var styled_components__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! styled-components */ "styled-components");
|
45540
|
+
/* harmony import */ var styled_components__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(styled_components__WEBPACK_IMPORTED_MODULE_1__);
|
45541
|
+
/* harmony import */ var _theme__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./theme */ "./src/theme.js");
|
45334
45542
|
// LICENSE_CODE ZON
|
45335
45543
|
|
45336
45544
|
|
45337
45545
|
/*jslint react:true*/
|
45338
|
-
|
45339
45546
|
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
45340
45547
|
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
45341
45548
|
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
@@ -45345,53 +45552,13 @@ function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input ==
|
|
45345
45552
|
|
45346
45553
|
|
45347
45554
|
|
45348
|
-
var colorNames = Object.keys(
|
45349
|
-
var iconNames = Object.keys(
|
45350
|
-
var whiteSpaces = ['normal', 'nowrap', 'pre', 'pre-wrap', 'pre-line', 'break-spaces'];
|
45555
|
+
var colorNames = Object.keys(_theme__WEBPACK_IMPORTED_MODULE_2__["default"].color);
|
45556
|
+
var iconNames = Object.keys(_icons__WEBPACK_IMPORTED_MODULE_0__["default"]);
|
45351
45557
|
var toPixel = function toPixel(value) {
|
45352
45558
|
return "".concat(value, "px");
|
45353
45559
|
};
|
45354
45560
|
var toSize = function toSize(value) {
|
45355
|
-
return (0,
|
45356
|
-
};
|
45357
|
-
var getCommonProps = function getCommonProps(props) {
|
45358
|
-
return lodash_pickBy__WEBPACK_IMPORTED_MODULE_0___default()(props, function (v, k) {
|
45359
|
-
var inc = ['id', 'className', 'style', 'onClick', 'role', 'tabIndex'];
|
45360
|
-
var starts = ['onMouse', 'onPointer', 'aria-', 'data-'];
|
45361
|
-
return inc.includes(k) || starts.some(function (s) {
|
45362
|
-
return k.indexOf(s) == 0;
|
45363
|
-
});
|
45364
|
-
});
|
45365
|
-
};
|
45366
|
-
var getTypographyProps = function getTypographyProps(props) {
|
45367
|
-
var as = props.tag,
|
45368
|
-
_props$font_family = props.font_family,
|
45369
|
-
font_family = _props$font_family === void 0 ? 'sans' : _props$font_family,
|
45370
|
-
_props$font_weight = props.font_weight,
|
45371
|
-
font_weight = _props$font_weight === void 0 ? 'regular' : _props$font_weight,
|
45372
|
-
font_size = props.font_size,
|
45373
|
-
_props$line_height = props.line_height,
|
45374
|
-
line_height = _props$line_height === void 0 ? 'none' : _props$line_height,
|
45375
|
-
_props$letter_spacing = props.letter_spacing,
|
45376
|
-
letter_spacing = _props$letter_spacing === void 0 ? 'normal' : _props$letter_spacing,
|
45377
|
-
italic = props.italic,
|
45378
|
-
color = props.color,
|
45379
|
-
no_wrap = props.no_wrap,
|
45380
|
-
underline = props.underline,
|
45381
|
-
whiteSpace = props.whiteSpace;
|
45382
|
-
return _objectSpread({
|
45383
|
-
as: as,
|
45384
|
-
font_family: font_family,
|
45385
|
-
font_weight: font_weight,
|
45386
|
-
font_size: font_size,
|
45387
|
-
line_height: line_height,
|
45388
|
-
letter_spacing: letter_spacing,
|
45389
|
-
italic: italic,
|
45390
|
-
color: color,
|
45391
|
-
no_wrap: no_wrap,
|
45392
|
-
underline: underline,
|
45393
|
-
whiteSpace: whiteSpace
|
45394
|
-
}, getCommonProps(props));
|
45561
|
+
return (0,styled_components__WEBPACK_IMPORTED_MODULE_1__.css)(["min-width:", ";width:", ";min-height:", ";height:", ";"], toPixel(value), toPixel(value), toPixel(value), toPixel(value));
|
45395
45562
|
};
|
45396
45563
|
function fromTheme(propName, defaultValue) {
|
45397
45564
|
return function (props) {
|
@@ -45400,10 +45567,10 @@ function fromTheme(propName, defaultValue) {
|
|
45400
45567
|
if (value != null) {
|
45401
45568
|
if (propName.indexOf('padding') == 0 || propName.indexOf('margin') == 0 || ['gap', 'rowGap', 'columnGap'].includes(propName)) {
|
45402
45569
|
var _theme$spacing$value;
|
45403
|
-
return (_theme$spacing$value =
|
45570
|
+
return (_theme$spacing$value = _theme__WEBPACK_IMPORTED_MODULE_2__["default"].spacing[value]) !== null && _theme$spacing$value !== void 0 ? _theme$spacing$value : value;
|
45404
45571
|
}
|
45405
45572
|
if (['font_family', 'font_weight', 'font_size', 'line_height', 'letter_spacing', 'color', 'box_shadow'].includes(propName)) {
|
45406
|
-
return
|
45573
|
+
return _theme__WEBPACK_IMPORTED_MODULE_2__["default"][propName][value];
|
45407
45574
|
}
|
45408
45575
|
}
|
45409
45576
|
return value;
|
@@ -45453,84 +45620,84 @@ var getButtonColors = function getButtonColors(props) {
|
|
45453
45620
|
disabled = props.disabled;
|
45454
45621
|
if (disabled) {
|
45455
45622
|
return {
|
45456
|
-
color:
|
45457
|
-
backColor:
|
45458
|
-
border: "1px solid ".concat(
|
45623
|
+
color: _theme__WEBPACK_IMPORTED_MODULE_2__["default"].color.gray_9,
|
45624
|
+
backColor: _theme__WEBPACK_IMPORTED_MODULE_2__["default"].color.gray_2,
|
45625
|
+
border: "1px solid ".concat(_theme__WEBPACK_IMPORTED_MODULE_2__["default"].color.gray_6)
|
45459
45626
|
};
|
45460
45627
|
}
|
45461
45628
|
var styles = {
|
45462
45629
|
primary: {
|
45463
|
-
color:
|
45464
|
-
backColor:
|
45465
|
-
separator: "1px solid ".concat(
|
45630
|
+
color: _theme__WEBPACK_IMPORTED_MODULE_2__["default"].color.white,
|
45631
|
+
backColor: _theme__WEBPACK_IMPORTED_MODULE_2__["default"].color.blue_11,
|
45632
|
+
separator: "1px solid ".concat(_theme__WEBPACK_IMPORTED_MODULE_2__["default"].color.white),
|
45466
45633
|
hover: {
|
45467
|
-
backColor:
|
45634
|
+
backColor: _theme__WEBPACK_IMPORTED_MODULE_2__["default"].color.blue_10
|
45468
45635
|
},
|
45469
45636
|
active: {
|
45470
|
-
backColor:
|
45637
|
+
backColor: _theme__WEBPACK_IMPORTED_MODULE_2__["default"].color.blue_11,
|
45471
45638
|
boxShadow: '0 0 0 2px rgba(0, 106, 220, 0.4)'
|
45472
45639
|
}
|
45473
45640
|
},
|
45474
45641
|
secondary: {
|
45475
|
-
color:
|
45476
|
-
backColor:
|
45477
|
-
border: "1px solid ".concat(
|
45642
|
+
color: _theme__WEBPACK_IMPORTED_MODULE_2__["default"].color.blue_11,
|
45643
|
+
backColor: _theme__WEBPACK_IMPORTED_MODULE_2__["default"].color.white,
|
45644
|
+
border: "1px solid ".concat(_theme__WEBPACK_IMPORTED_MODULE_2__["default"].color.blue_11),
|
45478
45645
|
hover: {
|
45479
|
-
backColor:
|
45646
|
+
backColor: _theme__WEBPACK_IMPORTED_MODULE_2__["default"].color.blue_2
|
45480
45647
|
},
|
45481
45648
|
active: {
|
45482
|
-
backColor:
|
45649
|
+
backColor: _theme__WEBPACK_IMPORTED_MODULE_2__["default"].color.white,
|
45483
45650
|
boxShadow: '0 0 0 2px rgba(0, 106, 220, 0.4)'
|
45484
45651
|
}
|
45485
45652
|
},
|
45486
45653
|
negative: {
|
45487
|
-
color:
|
45488
|
-
backColor:
|
45489
|
-
separator: "1px solid ".concat(
|
45654
|
+
color: _theme__WEBPACK_IMPORTED_MODULE_2__["default"].color.white,
|
45655
|
+
backColor: _theme__WEBPACK_IMPORTED_MODULE_2__["default"].color.red_9,
|
45656
|
+
separator: "1px solid ".concat(_theme__WEBPACK_IMPORTED_MODULE_2__["default"].color.white),
|
45490
45657
|
hover: {
|
45491
|
-
backColor:
|
45658
|
+
backColor: _theme__WEBPACK_IMPORTED_MODULE_2__["default"].color.red_10
|
45492
45659
|
},
|
45493
45660
|
active: {
|
45494
|
-
backColor:
|
45661
|
+
backColor: _theme__WEBPACK_IMPORTED_MODULE_2__["default"].color.red_9,
|
45495
45662
|
boxShadow: '0 0 0 2px rgba(205, 43, 49, 0.4)'
|
45496
45663
|
}
|
45497
45664
|
},
|
45498
45665
|
negative_secondary: {
|
45499
|
-
color:
|
45500
|
-
backColor:
|
45501
|
-
border: "1px solid ".concat(
|
45666
|
+
color: _theme__WEBPACK_IMPORTED_MODULE_2__["default"].color.red_9,
|
45667
|
+
backColor: _theme__WEBPACK_IMPORTED_MODULE_2__["default"].color.white,
|
45668
|
+
border: "1px solid ".concat(_theme__WEBPACK_IMPORTED_MODULE_2__["default"].color.red_9),
|
45502
45669
|
hover: {
|
45503
|
-
backColor:
|
45670
|
+
backColor: _theme__WEBPACK_IMPORTED_MODULE_2__["default"].color.red_2
|
45504
45671
|
},
|
45505
45672
|
active: {
|
45506
|
-
backColor:
|
45673
|
+
backColor: _theme__WEBPACK_IMPORTED_MODULE_2__["default"].color.white,
|
45507
45674
|
boxShadow: '0 0 0 2px rgba(205, 43, 49, 0.4)'
|
45508
45675
|
}
|
45509
45676
|
},
|
45510
45677
|
positive: {
|
45511
|
-
color:
|
45512
|
-
backColor:
|
45513
|
-
border: "1px solid ".concat(
|
45678
|
+
color: _theme__WEBPACK_IMPORTED_MODULE_2__["default"].color.green_11,
|
45679
|
+
backColor: _theme__WEBPACK_IMPORTED_MODULE_2__["default"].color.white,
|
45680
|
+
border: "1px solid ".concat(_theme__WEBPACK_IMPORTED_MODULE_2__["default"].color.green_11),
|
45514
45681
|
hover: {
|
45515
|
-
backColor:
|
45682
|
+
backColor: _theme__WEBPACK_IMPORTED_MODULE_2__["default"].color.green_2
|
45516
45683
|
},
|
45517
45684
|
active: {
|
45518
|
-
backColor:
|
45685
|
+
backColor: _theme__WEBPACK_IMPORTED_MODULE_2__["default"].color.white,
|
45519
45686
|
boxShadow: '0 0 0 2px rgba(6, 122, 111, 0.4)'
|
45520
45687
|
}
|
45521
45688
|
},
|
45522
45689
|
white: {
|
45523
|
-
color:
|
45524
|
-
iconColor:
|
45525
|
-
backColor:
|
45526
|
-
border: "1px solid ".concat(
|
45690
|
+
color: _theme__WEBPACK_IMPORTED_MODULE_2__["default"].color.gray_11_50,
|
45691
|
+
iconColor: _theme__WEBPACK_IMPORTED_MODULE_2__["default"].color.gray_10,
|
45692
|
+
backColor: _theme__WEBPACK_IMPORTED_MODULE_2__["default"].color.white,
|
45693
|
+
border: "1px solid ".concat(_theme__WEBPACK_IMPORTED_MODULE_2__["default"].color.gray_8),
|
45527
45694
|
hover: {
|
45528
|
-
backColor:
|
45695
|
+
backColor: _theme__WEBPACK_IMPORTED_MODULE_2__["default"].color.gray_2
|
45529
45696
|
},
|
45530
45697
|
active: {
|
45531
|
-
backColor:
|
45532
|
-
border: "1px solid ".concat(
|
45533
|
-
iconColor:
|
45698
|
+
backColor: _theme__WEBPACK_IMPORTED_MODULE_2__["default"].color.gray_3,
|
45699
|
+
border: "1px solid ".concat(_theme__WEBPACK_IMPORTED_MODULE_2__["default"].color.gray_9),
|
45700
|
+
iconColor: _theme__WEBPACK_IMPORTED_MODULE_2__["default"].color.gray_11_50
|
45534
45701
|
}
|
45535
45702
|
}
|
45536
45703
|
};
|
@@ -45549,7 +45716,7 @@ var toButtonSize = function toButtonSize(size) {
|
|
45549
45716
|
if (size == 'lg') w = 48;
|
45550
45717
|
if (size == 'sm') w = 36;
|
45551
45718
|
if (size == 'xs') w = 28;
|
45552
|
-
return (0,
|
45719
|
+
return (0,styled_components__WEBPACK_IMPORTED_MODULE_1__.css)(["height:", ";"], toPixel(w));
|
45553
45720
|
};
|
45554
45721
|
var tooltipPlacements = function () {
|
45555
45722
|
var positions = ['auto', 'top', 'right', 'bottom', 'left'];
|
@@ -45560,27 +45727,6 @@ var tooltipPlacements = function () {
|
|
45560
45727
|
});
|
45561
45728
|
});
|
45562
45729
|
}();
|
45563
|
-
var applyPrefixToName = function applyPrefixToName(prefix, name) {
|
45564
|
-
if (!name) return prefix;
|
45565
|
-
if (name[0] == '-') return prefix + name;
|
45566
|
-
return prefix + '__' + name;
|
45567
|
-
};
|
45568
|
-
var classNames = function classNames(prefix, state) {
|
45569
|
-
for (var _len = arguments.length, classNameList = new Array(_len > 2 ? _len - 2 : 0), _key = 2; _key < _len; _key++) {
|
45570
|
-
classNameList[_key - 2] = arguments[_key];
|
45571
|
-
}
|
45572
|
-
var arr = [].concat(classNameList);
|
45573
|
-
if (state && prefix) {
|
45574
|
-
for (var key in state) {
|
45575
|
-
if (state.hasOwnProperty(key) && state[key]) arr.push("".concat(applyPrefixToName(prefix, key)));
|
45576
|
-
}
|
45577
|
-
}
|
45578
|
-
return arr.filter(function (i) {
|
45579
|
-
return i;
|
45580
|
-
}).map(function (i) {
|
45581
|
-
return String(i).trim();
|
45582
|
-
}).join(' ');
|
45583
|
-
};
|
45584
45730
|
|
45585
45731
|
/***/ }),
|
45586
45732
|
|