@luminati-io/uikit 3.2.10 → 3.2.11
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
|
|
@@ -36845,8 +36849,10 @@ __webpack_require__.r(__webpack_exports__);
|
|
36845
36849
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
36846
36850
|
/* harmony export */ buildComponents: () => (/* binding */ buildComponents)
|
36847
36851
|
/* harmony export */ });
|
36848
|
-
/* harmony import */ var
|
36849
|
-
/* harmony import */ var
|
36852
|
+
/* harmony import */ var _util_virtualized_list__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../util/virtualized_list */ "./src/util/virtualized_list.js");
|
36853
|
+
/* harmony import */ var _dropdown_clear_indicator__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../dropdown/clear_indicator */ "./src/input/dropdown/clear_indicator.js");
|
36854
|
+
/* harmony import */ var _dropdown_value_container__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../dropdown/value_container */ "./src/input/dropdown/value_container.js");
|
36855
|
+
/* harmony import */ var _option__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./option */ "./src/input/checkbox_list/option.js");
|
36850
36856
|
// LICENSE_CODE ZON
|
36851
36857
|
|
36852
36858
|
|
@@ -36859,20 +36865,24 @@ function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _ty
|
|
36859
36865
|
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); }
|
36860
36866
|
|
36861
36867
|
|
36868
|
+
|
36869
|
+
|
36862
36870
|
var buildComponents = function buildComponents(props) {
|
36863
36871
|
var components = _objectSpread({
|
36864
36872
|
IndicatorSeparator: null,
|
36865
36873
|
DropdownIndicator: null,
|
36866
|
-
|
36874
|
+
ClearIndicator: _dropdown_clear_indicator__WEBPACK_IMPORTED_MODULE_1__.ClearIndicator,
|
36875
|
+
Option: _option__WEBPACK_IMPORTED_MODULE_3__.Option
|
36867
36876
|
}, props.components);
|
36868
|
-
if (props.virtualized) {
|
36869
|
-
components.MenuList = (0,
|
36877
|
+
if (props.virtualized && components.MenuList === undefined) {
|
36878
|
+
components.MenuList = (0,_util_virtualized_list__WEBPACK_IMPORTED_MODULE_0__.VirtualizedListFactory)({
|
36870
36879
|
optionHeight: props.optionHeight,
|
36871
36880
|
defaultValue: props.defaultValue,
|
36872
36881
|
formatOptionLabel: props.formatOptionLabel,
|
36873
36882
|
Option: components.Option
|
36874
36883
|
});
|
36875
36884
|
}
|
36885
|
+
if (props.autosize === false && components.ValueContainer === undefined) components.ValueContainer = _dropdown_value_container__WEBPACK_IMPORTED_MODULE_2__.ValueContainer;
|
36876
36886
|
return components;
|
36877
36887
|
};
|
36878
36888
|
|
@@ -36889,27 +36899,36 @@ __webpack_require__.r(__webpack_exports__);
|
|
36889
36899
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
36890
36900
|
/* harmony export */ CheckboxList: () => (/* binding */ CheckboxList)
|
36891
36901
|
/* harmony export */ });
|
36892
|
-
/* harmony import */ var
|
36893
|
-
/* harmony import */ var
|
36894
|
-
/* harmony import */ var
|
36895
|
-
/* harmony import */ var
|
36896
|
-
/* harmony import */ var
|
36897
|
-
/* harmony import */ var
|
36898
|
-
/* harmony import */ var
|
36899
|
-
/* harmony import */ var
|
36900
|
-
/* harmony import */ var
|
36901
|
-
/* harmony import */ var
|
36902
|
-
/* harmony import */ var
|
36903
|
-
/* harmony import */ var
|
36904
|
-
/* harmony import */ var
|
36905
|
-
/* harmony import */ var
|
36906
|
-
/* harmony import */ var
|
36902
|
+
/* harmony import */ var lodash_omit__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/omit */ "./node_modules/lodash/omit.js");
|
36903
|
+
/* harmony import */ var lodash_omit__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_omit__WEBPACK_IMPORTED_MODULE_0__);
|
36904
|
+
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! prop-types */ "prop-types");
|
36905
|
+
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
|
36906
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! react */ "react");
|
36907
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_2__);
|
36908
|
+
/* harmony import */ var react_select__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! react-select */ "./node_modules/react-select/dist/react-select.esm.js");
|
36909
|
+
/* harmony import */ var react_select_creatable__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! react-select/creatable */ "./node_modules/react-select/creatable/dist/react-select-creatable.esm.js");
|
36910
|
+
/* harmony import */ var react_select_async__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! react-select/async */ "./node_modules/react-select/async/dist/react-select-async.esm.js");
|
36911
|
+
/* harmony import */ var react_select_async_creatable__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! react-select/async-creatable */ "./node_modules/react-select/async-creatable/dist/react-select-async-creatable.esm.js");
|
36912
|
+
/* harmony import */ var _hooks__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../hooks */ "./src/hooks/index.js");
|
36913
|
+
/* harmony import */ var _layout__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../layout */ "./src/layout/index.js");
|
36914
|
+
/* harmony import */ var _translation__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../translation */ "./src/translation.js");
|
36915
|
+
/* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../../util */ "./src/util/index.js");
|
36916
|
+
/* harmony import */ var _shared__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../shared */ "./src/input/shared.js");
|
36917
|
+
/* harmony import */ var _build_components__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./build_components */ "./src/input/checkbox_list/build_components.js");
|
36918
|
+
/* harmony import */ var _use_styles__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./use_styles */ "./src/input/checkbox_list/use_styles.js");
|
36907
36919
|
// LICENSE_CODE ZON
|
36908
36920
|
|
36909
36921
|
|
36910
36922
|
/*jslint react:true*/
|
36911
|
-
|
36923
|
+
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); }
|
36924
|
+
|
36925
|
+
var _excluded = ["id", "styles", "size", "async", "creatable", "isOptionDisabled", "className", "label", "labelIcon", "required", "invalid", "helperText", "placeholder", "disabled"];
|
36912
36926
|
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); }
|
36927
|
+
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; }
|
36928
|
+
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; }
|
36929
|
+
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; }
|
36930
|
+
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
36931
|
+
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); }
|
36913
36932
|
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; }
|
36914
36933
|
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; }
|
36915
36934
|
|
@@ -36925,162 +36944,93 @@ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) r
|
|
36925
36944
|
|
36926
36945
|
|
36927
36946
|
|
36928
|
-
var CheckboxList = /*#__PURE__*/
|
36929
|
-
var
|
36947
|
+
var CheckboxList = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().forwardRef(function (props, forwardRef) {
|
36948
|
+
var id = props.id,
|
36949
|
+
styles = props.styles,
|
36950
|
+
size = props.size,
|
36951
|
+
async = props.async,
|
36952
|
+
creatable = props.creatable,
|
36953
|
+
isOptionDisabled = props.isOptionDisabled,
|
36954
|
+
className = props.className,
|
36955
|
+
label = props.label,
|
36930
36956
|
labelIcon = props.labelIcon,
|
36931
36957
|
required = props.required,
|
36932
|
-
value = props.value,
|
36933
|
-
defaultValue = props.defaultValue,
|
36934
|
-
placeholder = props.placeholder,
|
36935
|
-
options = props.options,
|
36936
|
-
onChange = props.onChange,
|
36937
|
-
onFocus = props.onFocus,
|
36938
|
-
onBlur = props.onBlur,
|
36939
|
-
creatable = props.creatable,
|
36940
|
-
disabled = props.disabled,
|
36941
36958
|
invalid = props.invalid,
|
36942
36959
|
helperText = props.helperText,
|
36943
|
-
|
36944
|
-
|
36945
|
-
onChangeCapture = props.onChangeCapture,
|
36946
|
-
filterOption = props.filterOption,
|
36947
|
-
formatOptionLabel = props.formatOptionLabel,
|
36948
|
-
onInputChange = props.onInputChange,
|
36949
|
-
getOptionValue = props.getOptionValue,
|
36950
|
-
getOptionLabel = props.getOptionLabel,
|
36951
|
-
isOptionDisabled = props.isOptionDisabled,
|
36952
|
-
isOptionSelected = props.isOptionSelected,
|
36953
|
-
async = props.async,
|
36954
|
-
isLoading = props.isLoading,
|
36955
|
-
loadOptions = props.loadOptions,
|
36956
|
-
defaultOptions = props.defaultOptions,
|
36957
|
-
cacheOptions = props.cacheOptions,
|
36958
|
-
onCreateOption = props.onCreateOption,
|
36959
|
-
formatCreateLabel = props.formatCreateLabel,
|
36960
|
-
isValidNewOption = props.isValidNewOption,
|
36961
|
-
getNewOptionData = props.getNewOptionData,
|
36962
|
-
autoFocus = props.autoFocus,
|
36963
|
-
searchable = props.searchable,
|
36960
|
+
placeholder = props.placeholder,
|
36961
|
+
disabled = props.disabled,
|
36964
36962
|
rest = _objectWithoutProperties(props, _excluded);
|
36965
|
-
var labelId = (0,
|
36966
|
-
var t = (0,
|
36967
|
-
var styles = (0,_use_styles__WEBPACK_IMPORTED_MODULE_11__.useStyles)(props);
|
36963
|
+
var labelId = (0,_hooks__WEBPACK_IMPORTED_MODULE_6__.useLabelId)(id);
|
36964
|
+
var t = (0,_translation__WEBPACK_IMPORTED_MODULE_8__.useTranslate)();
|
36968
36965
|
var SelectComp = getComponent({
|
36969
36966
|
async: async,
|
36970
36967
|
creatable: creatable
|
36971
36968
|
});
|
36972
|
-
var
|
36969
|
+
var _styles = (0,_use_styles__WEBPACK_IMPORTED_MODULE_12__.useStyles)({
|
36970
|
+
styles: styles,
|
36971
|
+
size: size
|
36972
|
+
});
|
36973
|
+
var _isOptionDisabled = (0,react__WEBPACK_IMPORTED_MODULE_2__.useMemo)(function () {
|
36973
36974
|
return isOptionDisabled || function (opt) {
|
36974
36975
|
return opt.disabled;
|
36975
36976
|
};
|
36976
36977
|
}, [isOptionDisabled]);
|
36977
|
-
|
36978
|
+
var wrapperProps = _objectSpread(_objectSpread({}, (0,_util__WEBPACK_IMPORTED_MODULE_9__.getAriaProps)(rest)), (0,_util__WEBPACK_IMPORTED_MODULE_9__.getDataProps)(rest));
|
36979
|
+
var selectProps = lodash_omit__WEBPACK_IMPORTED_MODULE_0___default()(rest, Object.keys(wrapperProps));
|
36980
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(_layout__WEBPACK_IMPORTED_MODULE_7__.Flex, _extends({
|
36978
36981
|
ref: forwardRef,
|
36979
36982
|
"data-testid": "checkbox-list",
|
36980
|
-
className: className
|
36981
|
-
}, (0,_utils__WEBPACK_IMPORTED_MODULE_8__.getCommonProps)(rest), {
|
36983
|
+
className: className,
|
36982
36984
|
flex_direction: "column",
|
36983
36985
|
gap: "02"
|
36984
|
-
}), /*#__PURE__*/
|
36986
|
+
}, wrapperProps), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(_shared__WEBPACK_IMPORTED_MODULE_10__.InputLabel, {
|
36985
36987
|
id: labelId,
|
36986
36988
|
label: label,
|
36987
36989
|
labelIcon: labelIcon,
|
36988
36990
|
required: required
|
36989
|
-
}), /*#__PURE__*/
|
36990
|
-
|
36991
|
-
controlShouldRenderValue: false,
|
36992
|
-
hideSelectedOptions: false,
|
36993
|
-
isClearable: false,
|
36991
|
+
}), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(SelectComp, _extends({}, selectProps, {
|
36992
|
+
id: id,
|
36994
36993
|
menuIsOpen: true,
|
36995
36994
|
isMulti: true,
|
36996
36995
|
menuPlacement: "bottom",
|
36997
|
-
autoFocus: autoFocus,
|
36998
|
-
filterOption: filterOption,
|
36999
|
-
formatOptionLabel: formatOptionLabel,
|
37000
36996
|
"aria-labelledby": label ? labelId : undefined,
|
37001
36997
|
"aria-invalid": invalid,
|
37002
|
-
value: value,
|
37003
|
-
defaultValue: defaultValue,
|
37004
36998
|
placeholder: t(placeholder),
|
37005
|
-
options: options,
|
37006
|
-
onChange: onChange,
|
37007
|
-
onFocus: onFocus,
|
37008
|
-
onBlur: onBlur,
|
37009
36999
|
isDisabled: disabled,
|
37010
37000
|
required: required,
|
37011
|
-
styles:
|
37012
|
-
components: (0,
|
37013
|
-
className: (0,
|
37001
|
+
styles: _styles,
|
37002
|
+
components: (0,_build_components__WEBPACK_IMPORTED_MODULE_11__.buildComponents)(props),
|
37003
|
+
className: (0,_util__WEBPACK_IMPORTED_MODULE_9__.classNames)(className, {
|
37014
37004
|
container: true
|
37015
37005
|
}),
|
37016
|
-
|
37017
|
-
|
37018
|
-
onInputChange: onInputChange,
|
37019
|
-
getOptionValue: getOptionValue,
|
37020
|
-
getOptionLabel: getOptionLabel,
|
37021
|
-
isOptionDisabled: _isOptionDisabled,
|
37022
|
-
isOptionSelected: isOptionSelected,
|
37023
|
-
isLoading: isLoading,
|
37024
|
-
loadOptions: loadOptions,
|
37025
|
-
defaultOptions: defaultOptions,
|
37026
|
-
cacheOptions: cacheOptions,
|
37027
|
-
onCreateOption: onCreateOption,
|
37028
|
-
formatCreateLabel: formatCreateLabel,
|
37029
|
-
isValidNewOption: isValidNewOption,
|
37030
|
-
getNewOptionData: getNewOptionData,
|
37031
|
-
isSearchable: searchable
|
37032
|
-
}), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_shared__WEBPACK_IMPORTED_MODULE_9__.HelperText, {
|
37006
|
+
isOptionDisabled: _isOptionDisabled
|
37007
|
+
})), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(_shared__WEBPACK_IMPORTED_MODULE_10__.HelperText, {
|
37033
37008
|
invalid: invalid
|
37034
37009
|
}, helperText));
|
37035
37010
|
});
|
37036
37011
|
CheckboxList.displayName = 'CheckboxList';
|
37037
37012
|
CheckboxList.propTypes = {
|
37038
|
-
value: (
|
37039
|
-
|
37040
|
-
|
37041
|
-
|
37042
|
-
|
37043
|
-
|
37044
|
-
|
37045
|
-
|
37046
|
-
|
37047
|
-
|
37048
|
-
|
37049
|
-
|
37050
|
-
|
37051
|
-
helperText: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().node),
|
37052
|
-
size: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOf(['sm', 'md', 'lg']),
|
37053
|
-
options: prop_types__WEBPACK_IMPORTED_MODULE_0___default().arrayOf((prop_types__WEBPACK_IMPORTED_MODULE_0___default().any)),
|
37054
|
-
creatable: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool),
|
37055
|
-
classNamePrefix: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string),
|
37056
|
-
virtualized: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool),
|
37057
|
-
autosize: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool),
|
37058
|
-
onInputChange: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().func),
|
37059
|
-
getOptionValue: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().func),
|
37060
|
-
getOptionLabel: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().func),
|
37061
|
-
isOptionDisabled: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().func),
|
37062
|
-
isOptionSelected: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().func),
|
37063
|
-
async: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool),
|
37064
|
-
isLoading: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool),
|
37065
|
-
loadOptions: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().func),
|
37066
|
-
defaultOptions: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool), prop_types__WEBPACK_IMPORTED_MODULE_0___default().arrayOf((prop_types__WEBPACK_IMPORTED_MODULE_0___default().any))]),
|
37067
|
-
cacheOptions: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().any),
|
37068
|
-
components: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().object),
|
37069
|
-
styles: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().object),
|
37070
|
-
onCreateOption: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().func),
|
37071
|
-
formatCreateLabel: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().func),
|
37072
|
-
isValidNewOption: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().func),
|
37073
|
-
getNewOptionData: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().func),
|
37074
|
-
autoFocus: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool),
|
37075
|
-
searchable: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool)
|
37013
|
+
value: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().any),
|
37014
|
+
onChange: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().func),
|
37015
|
+
onFocus: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().func),
|
37016
|
+
onBlur: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().func),
|
37017
|
+
placeholder: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().node),
|
37018
|
+
disabled: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().bool),
|
37019
|
+
required: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().bool),
|
37020
|
+
invalid: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().bool),
|
37021
|
+
label: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().node),
|
37022
|
+
labelIcon: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().string),
|
37023
|
+
helperText: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().node),
|
37024
|
+
size: prop_types__WEBPACK_IMPORTED_MODULE_1___default().oneOf(['sm', 'md', 'lg']),
|
37025
|
+
virtualized: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().bool)
|
37076
37026
|
};
|
37077
37027
|
CheckboxList.defaultProps = {
|
37078
37028
|
size: 'sm',
|
37079
37029
|
placeholder: 'Search...'
|
37080
37030
|
};
|
37081
37031
|
var getComponent = function getComponent(opt) {
|
37082
|
-
if (opt.async) return opt.creatable ?
|
37083
|
-
return opt.creatable ?
|
37032
|
+
if (opt.async) return opt.creatable ? react_select_async_creatable__WEBPACK_IMPORTED_MODULE_5__["default"] : react_select_async__WEBPACK_IMPORTED_MODULE_4__["default"];
|
37033
|
+
return opt.creatable ? react_select_creatable__WEBPACK_IMPORTED_MODULE_3__["default"] : react_select__WEBPACK_IMPORTED_MODULE_13__["default"];
|
37084
37034
|
};
|
37085
37035
|
|
37086
37036
|
/***/ }),
|
@@ -37189,6 +37139,20 @@ function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input ==
|
|
37189
37139
|
|
37190
37140
|
|
37191
37141
|
|
37142
|
+
var HeaderXl = {
|
37143
|
+
fontFamily: _theme__WEBPACK_IMPORTED_MODULE_1__["default"].font_family.sans,
|
37144
|
+
fontStyle: 'normal',
|
37145
|
+
fontWeight: _theme__WEBPACK_IMPORTED_MODULE_1__["default"].font_weight.medium,
|
37146
|
+
fontSize: _theme__WEBPACK_IMPORTED_MODULE_1__["default"].font_size.lg,
|
37147
|
+
lineHeight: _theme__WEBPACK_IMPORTED_MODULE_1__["default"].line_height.none
|
37148
|
+
};
|
37149
|
+
var LabelSm = {
|
37150
|
+
fontFamily: _theme__WEBPACK_IMPORTED_MODULE_1__["default"].font_family.sans,
|
37151
|
+
fontStyle: 'normal',
|
37152
|
+
fontWeight: _theme__WEBPACK_IMPORTED_MODULE_1__["default"].font_weight.regular,
|
37153
|
+
fontSize: _theme__WEBPACK_IMPORTED_MODULE_1__["default"].font_size.sm,
|
37154
|
+
lineHeight: _theme__WEBPACK_IMPORTED_MODULE_1__["default"].line_height.none
|
37155
|
+
};
|
37192
37156
|
var useStyles = function useStyles(_ref) {
|
37193
37157
|
var styles = _ref.styles,
|
37194
37158
|
size = _ref.size;
|
@@ -37210,15 +37174,9 @@ var useStyles = function useStyles(_ref) {
|
|
37210
37174
|
backgroundColor = _theme__WEBPACK_IMPORTED_MODULE_1__["default"].color.gray_2;
|
37211
37175
|
cursor = 'default';
|
37212
37176
|
} else if (state.selectProps['aria-invalid']) borderColor = _theme__WEBPACK_IMPORTED_MODULE_1__["default"].color.red_11;else if (state.isFocused) borderColor = _theme__WEBPACK_IMPORTED_MODULE_1__["default"].color.blue_11;
|
37213
|
-
return _objectSpread(_objectSpread({}, baseStyles), {}, {
|
37177
|
+
return _objectSpread(_objectSpread(_objectSpread({}, baseStyles), LabelSm), {}, {
|
37214
37178
|
minHeight: (0,_utils__WEBPACK_IMPORTED_MODULE_2__.toPixel)(height[size] || height.sm),
|
37215
37179
|
padding: "".concat(_shared__WEBPACK_IMPORTED_MODULE_3__.inputVerticalPadding, "px ").concat(_shared__WEBPACK_IMPORTED_MODULE_3__.inputHorizontalPadding, "px"),
|
37216
|
-
/* Label/sm */
|
37217
|
-
fontFamily: _theme__WEBPACK_IMPORTED_MODULE_1__["default"].font_family.sans,
|
37218
|
-
fontStyle: 'normal',
|
37219
|
-
fontWeight: _theme__WEBPACK_IMPORTED_MODULE_1__["default"].font_weight.regular,
|
37220
|
-
fontSize: _theme__WEBPACK_IMPORTED_MODULE_1__["default"].font_size.sm,
|
37221
|
-
lineHeight: _theme__WEBPACK_IMPORTED_MODULE_1__["default"].line_height.none,
|
37222
37180
|
color: color,
|
37223
37181
|
backgroundColor: backgroundColor,
|
37224
37182
|
borderColor: borderColor,
|
@@ -37258,28 +37216,42 @@ var useStyles = function useStyles(_ref) {
|
|
37258
37216
|
});
|
37259
37217
|
},
|
37260
37218
|
option: function option(baseStyles, state) {
|
37261
|
-
return _objectSpread(_objectSpread({}, baseStyles), {}, {
|
37219
|
+
return _objectSpread(_objectSpread(_objectSpread({}, baseStyles), LabelSm), {}, {
|
37262
37220
|
display: 'flex',
|
37263
37221
|
alignItems: 'center',
|
37264
|
-
gap:
|
37265
|
-
|
37266
|
-
|
37267
|
-
fontFamily: _theme__WEBPACK_IMPORTED_MODULE_1__["default"].font_family.sans,
|
37268
|
-
fontStyle: 'normal',
|
37269
|
-
fontWeight: _theme__WEBPACK_IMPORTED_MODULE_1__["default"].font_weight.regular,
|
37270
|
-
fontSize: _theme__WEBPACK_IMPORTED_MODULE_1__["default"].font_size.sm,
|
37271
|
-
lineHeight: _theme__WEBPACK_IMPORTED_MODULE_1__["default"].line_height.none,
|
37222
|
+
gap: '8px',
|
37223
|
+
height: '40px',
|
37224
|
+
backgroundColor: state.isFocused ? _theme__WEBPACK_IMPORTED_MODULE_1__["default"].color.gray_2 : undefined,
|
37272
37225
|
color: state.isDisabled ? _theme__WEBPACK_IMPORTED_MODULE_1__["default"].color.gray_9 : _theme__WEBPACK_IMPORTED_MODULE_1__["default"].color.gray_11_50
|
37273
37226
|
});
|
37274
37227
|
},
|
37275
|
-
|
37228
|
+
multiValue: function multiValue(baseStyles) {
|
37276
37229
|
return _objectSpread(_objectSpread({}, baseStyles), {}, {
|
37277
|
-
|
37278
|
-
|
37279
|
-
|
37280
|
-
|
37281
|
-
|
37282
|
-
|
37230
|
+
backgroundColor: undefined,
|
37231
|
+
border: "1px solid ".concat(_theme__WEBPACK_IMPORTED_MODULE_1__["default"].color.gray_6),
|
37232
|
+
borderRadius: '4px'
|
37233
|
+
});
|
37234
|
+
},
|
37235
|
+
multiValueLabel: function multiValueLabel(baseStyles) {
|
37236
|
+
return _objectSpread(_objectSpread(_objectSpread({}, baseStyles), LabelSm), {}, {
|
37237
|
+
borderRadius: '4px',
|
37238
|
+
padding: '4px 4px 4px 8px',
|
37239
|
+
color: _theme__WEBPACK_IMPORTED_MODULE_1__["default"].color.gray_11_25
|
37240
|
+
});
|
37241
|
+
},
|
37242
|
+
multiValueRemove: function multiValueRemove(baseStyles) {
|
37243
|
+
return _objectSpread(_objectSpread({}, baseStyles), {}, {
|
37244
|
+
borderRadius: '4px',
|
37245
|
+
color: _theme__WEBPACK_IMPORTED_MODULE_1__["default"].color.gray_11,
|
37246
|
+
cursor: 'pointer',
|
37247
|
+
':hover': {
|
37248
|
+
backgroundColor: undefined,
|
37249
|
+
color: _theme__WEBPACK_IMPORTED_MODULE_1__["default"].color.gray_11_50
|
37250
|
+
}
|
37251
|
+
});
|
37252
|
+
},
|
37253
|
+
noOptionsMessage: function noOptionsMessage(baseStyles) {
|
37254
|
+
return _objectSpread(_objectSpread(_objectSpread({}, baseStyles), HeaderXl), {}, {
|
37283
37255
|
color: _theme__WEBPACK_IMPORTED_MODULE_1__["default"].color.gray_9
|
37284
37256
|
});
|
37285
37257
|
}
|
@@ -37740,13 +37712,13 @@ __webpack_require__.r(__webpack_exports__);
|
|
37740
37712
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
37741
37713
|
/* harmony export */ buildComponents: () => (/* binding */ buildComponents)
|
37742
37714
|
/* harmony export */ });
|
37743
|
-
/* harmony import */ var
|
37744
|
-
/* harmony import */ var
|
37745
|
-
/* harmony import */ var
|
37746
|
-
/* harmony import */ var
|
37747
|
-
/* harmony import */ var
|
37748
|
-
/* harmony import */ var
|
37749
|
-
/* harmony import */ var
|
37715
|
+
/* harmony import */ var _util_virtualized_list__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../util/virtualized_list */ "./src/util/virtualized_list.js");
|
37716
|
+
/* harmony import */ var _clear_indicator__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./clear_indicator */ "./src/input/dropdown/clear_indicator.js");
|
37717
|
+
/* harmony import */ var _dropdown_indicator__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./dropdown_indicator */ "./src/input/dropdown/dropdown_indicator.js");
|
37718
|
+
/* harmony import */ var _group__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./group */ "./src/input/dropdown/group.js");
|
37719
|
+
/* harmony import */ var _menu_list__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./menu_list */ "./src/input/dropdown/menu_list.js");
|
37720
|
+
/* harmony import */ var _option__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./option */ "./src/input/dropdown/option.js");
|
37721
|
+
/* harmony import */ var _value_container__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./value_container */ "./src/input/dropdown/value_container.js");
|
37750
37722
|
// LICENSE_CODE ZON
|
37751
37723
|
|
37752
37724
|
|
@@ -37765,25 +37737,23 @@ function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input ==
|
|
37765
37737
|
|
37766
37738
|
|
37767
37739
|
var buildComponents = function buildComponents(props) {
|
37740
|
+
var _props$components$Opt, _props$components;
|
37768
37741
|
var components = _objectSpread({
|
37769
|
-
IndicatorSeparator:
|
37770
|
-
|
37771
|
-
|
37772
|
-
|
37773
|
-
ClearIndicator: _clear_indicator__WEBPACK_IMPORTED_MODULE_0__["default"],
|
37774
|
-
MenuList: _menu_list__WEBPACK_IMPORTED_MODULE_3__.MenuList,
|
37775
|
-
Group: _group__WEBPACK_IMPORTED_MODULE_2__.Group,
|
37776
|
-
Option: _option__WEBPACK_IMPORTED_MODULE_4__.Option
|
37777
|
-
}, props.components);
|
37778
|
-
if (props.virtualized) {
|
37779
|
-
components.MenuList = (0,_util_virtualized_list__WEBPACK_IMPORTED_MODULE_6__.VirtualizedListFactory)({
|
37742
|
+
IndicatorSeparator: null,
|
37743
|
+
DropdownIndicator: _dropdown_indicator__WEBPACK_IMPORTED_MODULE_2__.DropdownIndicator,
|
37744
|
+
ClearIndicator: _clear_indicator__WEBPACK_IMPORTED_MODULE_1__.ClearIndicator,
|
37745
|
+
MenuList: props.virtualized ? (0,_util_virtualized_list__WEBPACK_IMPORTED_MODULE_0__.VirtualizedListFactory)({
|
37780
37746
|
optionHeight: props.optionHeight,
|
37781
37747
|
defaultValue: props.defaultValue,
|
37782
37748
|
formatOptionLabel: props.formatOptionLabel,
|
37783
|
-
Option: components.Option
|
37784
|
-
})
|
37749
|
+
Option: (_props$components$Opt = (_props$components = props.components) === null || _props$components === void 0 ? void 0 : _props$components.Option) !== null && _props$components$Opt !== void 0 ? _props$components$Opt : _option__WEBPACK_IMPORTED_MODULE_5__.Option
|
37750
|
+
}) : _menu_list__WEBPACK_IMPORTED_MODULE_4__.MenuList,
|
37751
|
+
Group: _group__WEBPACK_IMPORTED_MODULE_3__.Group,
|
37752
|
+
Option: _option__WEBPACK_IMPORTED_MODULE_5__.Option
|
37753
|
+
}, props.components);
|
37754
|
+
if (props.autosize === false && props.multiselect && components.ValueContainer === undefined) {
|
37755
|
+
components.ValueContainer = _value_container__WEBPACK_IMPORTED_MODULE_6__.ValueContainer;
|
37785
37756
|
}
|
37786
|
-
if (props.autosize === false && props.multiselect) components.ValueContainer = _value_container__WEBPACK_IMPORTED_MODULE_5__.ValueContainer;
|
37787
37757
|
return components;
|
37788
37758
|
};
|
37789
37759
|
|
@@ -37798,7 +37768,7 @@ var buildComponents = function buildComponents(props) {
|
|
37798
37768
|
"use strict";
|
37799
37769
|
__webpack_require__.r(__webpack_exports__);
|
37800
37770
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
37801
|
-
/* harmony export */
|
37771
|
+
/* harmony export */ ClearIndicator: () => (/* binding */ ClearIndicator)
|
37802
37772
|
/* harmony export */ });
|
37803
37773
|
/* harmony import */ var _icons__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @icons */ "./assets/icons/index.js");
|
37804
37774
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "react");
|
@@ -37829,7 +37799,6 @@ var ClearIndicator = function ClearIndicator(props) {
|
|
37829
37799
|
href: "#".concat(ic.id)
|
37830
37800
|
}));
|
37831
37801
|
};
|
37832
|
-
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (ClearIndicator);
|
37833
37802
|
|
37834
37803
|
/***/ }),
|
37835
37804
|
|
@@ -37855,7 +37824,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
37855
37824
|
/* harmony import */ var _hooks__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../hooks */ "./src/hooks/index.js");
|
37856
37825
|
/* harmony import */ var _layout__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../layout */ "./src/layout/index.js");
|
37857
37826
|
/* harmony import */ var _translation__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../translation */ "./src/translation.js");
|
37858
|
-
/* harmony import */ var
|
37827
|
+
/* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../util */ "./src/util/index.js");
|
37859
37828
|
/* harmony import */ var _shared__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../shared */ "./src/input/shared.js");
|
37860
37829
|
/* harmony import */ var _build_components__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./build_components */ "./src/input/dropdown/build_components.js");
|
37861
37830
|
/* harmony import */ var _use_styles__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./use_styles */ "./src/input/dropdown/use_styles.js");
|
@@ -37946,7 +37915,7 @@ var Dropdown = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().forward
|
|
37946
37915
|
ref: forwardRef,
|
37947
37916
|
"data-testid": "dropdown",
|
37948
37917
|
className: className
|
37949
|
-
}, (0,
|
37918
|
+
}, (0,_util__WEBPACK_IMPORTED_MODULE_8__.getCommonProps)(rest), {
|
37950
37919
|
flex_direction: "column",
|
37951
37920
|
gap: "02"
|
37952
37921
|
}), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_shared__WEBPACK_IMPORTED_MODULE_9__.InputLabel, {
|
@@ -37974,7 +37943,7 @@ var Dropdown = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().forward
|
|
37974
37943
|
required: required,
|
37975
37944
|
styles: styles,
|
37976
37945
|
components: (0,_build_components__WEBPACK_IMPORTED_MODULE_10__.buildComponents)(props),
|
37977
|
-
className: (0,
|
37946
|
+
className: (0,_util__WEBPACK_IMPORTED_MODULE_8__.classNames)(className, {
|
37978
37947
|
container: true
|
37979
37948
|
}),
|
37980
37949
|
classNamePrefix: classNamePrefix,
|
@@ -38076,7 +38045,7 @@ var getComponent = function getComponent(opt) {
|
|
38076
38045
|
"use strict";
|
38077
38046
|
__webpack_require__.r(__webpack_exports__);
|
38078
38047
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
38079
|
-
/* harmony export */
|
38048
|
+
/* harmony export */ DropdownIndicator: () => (/* binding */ DropdownIndicator)
|
38080
38049
|
/* harmony export */ });
|
38081
38050
|
/* harmony import */ var _icons__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @icons */ "./assets/icons/index.js");
|
38082
38051
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "react");
|
@@ -38109,7 +38078,6 @@ var DropdownIndicator = function DropdownIndicator(props) {
|
|
38109
38078
|
href: "#".concat(ic.id)
|
38110
38079
|
}));
|
38111
38080
|
};
|
38112
|
-
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (DropdownIndicator);
|
38113
38081
|
|
38114
38082
|
/***/ }),
|
38115
38083
|
|
@@ -38239,6 +38207,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
38239
38207
|
/* harmony import */ var styled_components__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(styled_components__WEBPACK_IMPORTED_MODULE_2__);
|
38240
38208
|
/* harmony import */ var _menu__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../menu */ "./src/menu/index.js");
|
38241
38209
|
/* harmony import */ var _theme__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../theme */ "./src/theme.js");
|
38210
|
+
/* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../util */ "./src/util/index.js");
|
38242
38211
|
// LICENSE_CODE ZON
|
38243
38212
|
|
38244
38213
|
|
@@ -38249,6 +38218,7 @@ function _extends() { _extends = Object.assign ? Object.assign.bind() : function
|
|
38249
38218
|
|
38250
38219
|
|
38251
38220
|
|
38221
|
+
|
38252
38222
|
var Option = function Option(props) {
|
38253
38223
|
var data = props.data,
|
38254
38224
|
className = props.className,
|
@@ -38262,7 +38232,6 @@ var Option = function Option(props) {
|
|
38262
38232
|
innerProps = props.innerProps;
|
38263
38233
|
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(StyledItem, _extends({
|
38264
38234
|
ref: innerRef,
|
38265
|
-
testId: data.testId,
|
38266
38235
|
type: "item",
|
38267
38236
|
className: cx({
|
38268
38237
|
option: true,
|
@@ -38270,7 +38239,7 @@ var Option = function Option(props) {
|
|
38270
38239
|
'option--is-focused': isFocused,
|
38271
38240
|
'option--is-selected': isSelected
|
38272
38241
|
}, className)
|
38273
|
-
}, lodash_omit__WEBPACK_IMPORTED_MODULE_0___default()(innerProps, 'onMouseMove', 'onMouseOver'), {
|
38242
|
+
}, (0,_util__WEBPACK_IMPORTED_MODULE_5__.getDataProps)(data), lodash_omit__WEBPACK_IMPORTED_MODULE_0___default()(innerProps, 'onMouseMove', 'onMouseOver'), {
|
38274
38243
|
text: children,
|
38275
38244
|
description: data.description,
|
38276
38245
|
tooltip: data.tooltip,
|
@@ -38751,8 +38720,9 @@ __webpack_require__.r(__webpack_exports__);
|
|
38751
38720
|
/* harmony import */ var _theme__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../theme */ "./src/theme.js");
|
38752
38721
|
/* harmony import */ var _tooltip__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../tooltip */ "./src/tooltip.js");
|
38753
38722
|
/* harmony import */ var _typography__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../typography */ "./src/typography/index.js");
|
38754
|
-
/* harmony import */ var
|
38755
|
-
/* harmony import */ var
|
38723
|
+
/* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../util */ "./src/util/index.js");
|
38724
|
+
/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../utils */ "./src/utils.js");
|
38725
|
+
/* harmony import */ var _shared__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./shared */ "./src/input/shared.js");
|
38756
38726
|
// LICENSE_CODE ZON
|
38757
38727
|
|
38758
38728
|
|
@@ -38776,6 +38746,7 @@ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) r
|
|
38776
38746
|
|
38777
38747
|
|
38778
38748
|
|
38749
|
+
|
38779
38750
|
var RadioGroup = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().forwardRef(function (props, ref) {
|
38780
38751
|
var className = props.className,
|
38781
38752
|
classNamePrefix = props.classNamePrefix,
|
@@ -38797,12 +38768,12 @@ var RadioGroup = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().forwa
|
|
38797
38768
|
};
|
38798
38769
|
if (!(options !== null && options !== void 0 && options.length)) return null;
|
38799
38770
|
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_layout__WEBPACK_IMPORTED_MODULE_4__.Flex, {
|
38800
|
-
className: (0,
|
38771
|
+
className: (0,_util__WEBPACK_IMPORTED_MODULE_8__.classNames)(classNamePrefix, {
|
38801
38772
|
container: true
|
38802
38773
|
}, className),
|
38803
38774
|
flex_direction: "column",
|
38804
38775
|
gap: _theme__WEBPACK_IMPORTED_MODULE_5__["default"].spacing['03']
|
38805
|
-
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(
|
38776
|
+
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_shared__WEBPACK_IMPORTED_MODULE_10__.InputLabel, {
|
38806
38777
|
classNamePrefix: classNamePrefix,
|
38807
38778
|
id: labelId,
|
38808
38779
|
label: label,
|
@@ -38811,7 +38782,7 @@ var RadioGroup = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().forwa
|
|
38811
38782
|
variant: "lg"
|
38812
38783
|
}), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_layout__WEBPACK_IMPORTED_MODULE_4__.Flex, _extends({
|
38813
38784
|
ref: ref,
|
38814
|
-
className: (0,
|
38785
|
+
className: (0,_util__WEBPACK_IMPORTED_MODULE_8__.classNames)(classNamePrefix, _defineProperty({
|
38815
38786
|
radioGroup: true
|
38816
38787
|
}, "radioGroup--".concat(variant), true)),
|
38817
38788
|
gap: _theme__WEBPACK_IMPORTED_MODULE_5__["default"].spacing['05'],
|
@@ -38831,7 +38802,7 @@ var RadioGroup = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().forwa
|
|
38831
38802
|
disabled: disabled || opt.disabled,
|
38832
38803
|
size: size
|
38833
38804
|
}));
|
38834
|
-
})), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(
|
38805
|
+
})), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_shared__WEBPACK_IMPORTED_MODULE_10__.HelperText, {
|
38835
38806
|
invalid: invalid
|
38836
38807
|
}, helperText));
|
38837
38808
|
});
|
@@ -38878,7 +38849,7 @@ var Radio = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().forwardRef
|
|
38878
38849
|
tooltip: tooltip
|
38879
38850
|
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(RadioWrapper, _extends({
|
38880
38851
|
ref: ref,
|
38881
|
-
className: (0,
|
38852
|
+
className: (0,_util__WEBPACK_IMPORTED_MODULE_8__.classNames)(classNamePrefix, (_classNames2 = {
|
38882
38853
|
radio: true
|
38883
38854
|
}, _defineProperty(_classNames2, 'radio--is-selected', checked), _defineProperty(_classNames2, 'radio--is-disabled', disabled), _classNames2))
|
38884
38855
|
}, rest, {
|
@@ -38886,7 +38857,7 @@ var Radio = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().forwardRef
|
|
38886
38857
|
$verticalAlign: verticalAlign,
|
38887
38858
|
$disabled: disabled
|
38888
38859
|
}), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(RadioControl, {
|
38889
|
-
className: (0,
|
38860
|
+
className: (0,_util__WEBPACK_IMPORTED_MODULE_8__.classNames)(classNamePrefix, {
|
38890
38861
|
radioControl: true
|
38891
38862
|
}),
|
38892
38863
|
role: "radio",
|
@@ -38897,7 +38868,7 @@ var Radio = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().forwardRef
|
|
38897
38868
|
checked: checked,
|
38898
38869
|
disabled: disabled
|
38899
38870
|
}), !!label && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_typography__WEBPACK_IMPORTED_MODULE_7__.Label, {
|
38900
|
-
className: (0,
|
38871
|
+
className: (0,_util__WEBPACK_IMPORTED_MODULE_8__.classNames)(classNamePrefix, {
|
38901
38872
|
radioLabel: true
|
38902
38873
|
}),
|
38903
38874
|
variant: "sm",
|
@@ -38932,7 +38903,7 @@ var RadioControl = styled_components__WEBPACK_IMPORTED_MODULE_2___default().div.
|
|
38932
38903
|
componentId: "sc-10oi3py-1"
|
38933
38904
|
})(["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
38905
|
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,
|
38906
|
+
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
38907
|
}, function (props) {
|
38937
38908
|
var checked = props.checked,
|
38938
38909
|
disabled = props.disabled;
|
@@ -38997,7 +38968,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
38997
38968
|
/* harmony import */ var _theme__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../theme */ "./src/theme.js");
|
38998
38969
|
/* harmony import */ var _translation__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../translation */ "./src/translation.js");
|
38999
38970
|
/* harmony import */ var _typography__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../typography */ "./src/typography/index.js");
|
39000
|
-
/* harmony import */ var
|
38971
|
+
/* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../util */ "./src/util/index.js");
|
38972
|
+
/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../utils */ "./src/utils.js");
|
39001
38973
|
// LICENSE_CODE ZON
|
39002
38974
|
|
39003
38975
|
|
@@ -39023,6 +38995,7 @@ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
39023
38995
|
|
39024
38996
|
|
39025
38997
|
|
38998
|
+
|
39026
38999
|
var inputVerticalPadding = 4;
|
39027
39000
|
var inputHorizontalPadding = 12;
|
39028
39001
|
var FieldWrapper = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().forwardRef(function (props, ref) {
|
@@ -39070,12 +39043,12 @@ var FieldWrapper = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().for
|
|
39070
39043
|
}, []);
|
39071
39044
|
(0,react__WEBPACK_IMPORTED_MODULE_1__.useEffect)(function () {
|
39072
39045
|
// XXX vadimv: hack to autoresize textarea
|
39073
|
-
if (autoresize) field.current.style.height = (0,
|
39046
|
+
if (autoresize) field.current.style.height = (0,_utils__WEBPACK_IMPORTED_MODULE_10__.toPixel)(field.current.scrollHeight);
|
39074
39047
|
}, [autoresize, value]);
|
39075
39048
|
var labelId = (0,_hooks__WEBPACK_IMPORTED_MODULE_3__.useLabelId)(props.id);
|
39076
39049
|
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_layout__WEBPACK_IMPORTED_MODULE_5__.Flex, _extends({
|
39077
39050
|
ref: ref
|
39078
|
-
}, (0,
|
39051
|
+
}, (0,_util__WEBPACK_IMPORTED_MODULE_9__.getCommonProps)(props), {
|
39079
39052
|
flex_direction: "column",
|
39080
39053
|
gap: "4px"
|
39081
39054
|
}), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(InputLabel, {
|
@@ -39145,18 +39118,18 @@ var InputLabel = function InputLabel(props) {
|
|
39145
39118
|
var t = (0,_translation__WEBPACK_IMPORTED_MODULE_7__.useReactTranslate)();
|
39146
39119
|
if (!label) return null;
|
39147
39120
|
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(LabelWrapper, {
|
39148
|
-
className: (0,
|
39121
|
+
className: (0,_util__WEBPACK_IMPORTED_MODULE_9__.classNames)(classNamePrefix, {
|
39149
39122
|
label: true
|
39150
39123
|
}, className)
|
39151
39124
|
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_typography__WEBPACK_IMPORTED_MODULE_8__.Label, {
|
39152
|
-
className: (0,
|
39125
|
+
className: (0,_util__WEBPACK_IMPORTED_MODULE_9__.classNames)(classNamePrefix, _defineProperty({
|
39153
39126
|
labelText: true
|
39154
39127
|
}, 'labelText--is-required', required)),
|
39155
39128
|
id: id,
|
39156
39129
|
variant: variant,
|
39157
39130
|
color: "gray-11-50"
|
39158
39131
|
}, 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,
|
39132
|
+
className: (0,_util__WEBPACK_IMPORTED_MODULE_9__.classNames)(classNamePrefix, {
|
39160
39133
|
labelIcon: true
|
39161
39134
|
}),
|
39162
39135
|
name: labelIcon,
|
@@ -39223,7 +39196,7 @@ var InputWrapper = styled_components__WEBPACK_IMPORTED_MODULE_2___default().div.
|
|
39223
39196
|
borderTopRightRadius = borderBottomRightRadius = 0;
|
39224
39197
|
borderRightWidth = 0;
|
39225
39198
|
}
|
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,
|
39199
|
+
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
39200
|
}, function (props) {
|
39228
39201
|
var _props$$heightCalcula;
|
39229
39202
|
return (_props$$heightCalcula = props.$heightCalculationCallback) === null || _props$$heightCalcula === void 0 ? void 0 : _props$$heightCalcula.call(props);
|
@@ -39269,7 +39242,7 @@ var useHeightCalculationCallback = function useHeightCalculationCallback(size) {
|
|
39269
39242
|
md: 40,
|
39270
39243
|
lg: 48
|
39271
39244
|
};
|
39272
|
-
return (0,styled_components__WEBPACK_IMPORTED_MODULE_2__.css)(["height:", ";"], (0,
|
39245
|
+
return (0,styled_components__WEBPACK_IMPORTED_MODULE_2__.css)(["height:", ";"], (0,_utils__WEBPACK_IMPORTED_MODULE_10__.toPixel)(height[size] || height.sm));
|
39273
39246
|
}, [size]);
|
39274
39247
|
};
|
39275
39248
|
|
@@ -39454,7 +39427,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
39454
39427
|
/* harmony import */ var styled_components__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(styled_components__WEBPACK_IMPORTED_MODULE_2__);
|
39455
39428
|
/* harmony import */ var _theme__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../theme */ "./src/theme.js");
|
39456
39429
|
/* harmony import */ var _typography__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../typography */ "./src/typography/index.js");
|
39457
|
-
/* harmony import */ var
|
39430
|
+
/* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../util */ "./src/util/index.js");
|
39431
|
+
/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../utils */ "./src/utils.js");
|
39458
39432
|
// LICENSE_CODE ZON
|
39459
39433
|
|
39460
39434
|
|
@@ -39466,6 +39440,7 @@ function _extends() { _extends = Object.assign ? Object.assign.bind() : function
|
|
39466
39440
|
|
39467
39441
|
|
39468
39442
|
|
39443
|
+
|
39469
39444
|
var Toggle = function Toggle(props) {
|
39470
39445
|
var value = props.value,
|
39471
39446
|
label = props.label,
|
@@ -39477,7 +39452,7 @@ var Toggle = function Toggle(props) {
|
|
39477
39452
|
onChange === null || onChange === void 0 ? void 0 : onChange(checked, evt);
|
39478
39453
|
}, [onChange]);
|
39479
39454
|
var color = getLabelColor(props);
|
39480
|
-
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(ToggleLabel, _extends({}, (0,
|
39455
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(ToggleLabel, _extends({}, (0,_util__WEBPACK_IMPORTED_MODULE_5__.getCommonProps)(props), {
|
39481
39456
|
$size: size
|
39482
39457
|
}), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(ToggleInput, {
|
39483
39458
|
$size: size,
|
@@ -39512,15 +39487,15 @@ var ToggleInput = styled_components__WEBPACK_IMPORTED_MODULE_2___default().input
|
|
39512
39487
|
displayName: "ToggleInput",
|
39513
39488
|
componentId: "sc-14lfe6n-1"
|
39514
39489
|
})(["&&{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,
|
39490
|
+
return (0,_utils__WEBPACK_IMPORTED_MODULE_6__.toPixel)(props.$size == 'xs' ? 32 : 44);
|
39516
39491
|
}, function (props) {
|
39517
|
-
return (0,
|
39492
|
+
return (0,_utils__WEBPACK_IMPORTED_MODULE_6__.toPixel)(props.$size == 'xs' ? 16 : 20);
|
39518
39493
|
}, _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,
|
39494
|
+
return (0,_utils__WEBPACK_IMPORTED_MODULE_6__.toPixel)(props.$size == 'xs' ? 12 : 16);
|
39520
39495
|
}, function (props) {
|
39521
|
-
return (0,
|
39496
|
+
return (0,_utils__WEBPACK_IMPORTED_MODULE_6__.toPixel)(props.$size == 'xs' ? 12 : 16);
|
39522
39497
|
}, _theme__WEBPACK_IMPORTED_MODULE_3__["default"].color.white, function (props) {
|
39523
|
-
return (0,
|
39498
|
+
return (0,_utils__WEBPACK_IMPORTED_MODULE_6__.toPixel)(props.$size == 'xs' ? 15 : 23);
|
39524
39499
|
});
|
39525
39500
|
var getLabelColor = function getLabelColor(props) {
|
39526
39501
|
var disabled = props.disabled,
|
@@ -40016,7 +39991,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
40016
39991
|
|
40017
39992
|
/*jslint react:true*/
|
40018
39993
|
|
40019
|
-
var _excluded = ["type", "text", "secondaryText", "tertiaryText", "description", "size", "children", "variant", "tag", "disabled", "selected", "subMenu", "tooltip", "isFirstItem"
|
39994
|
+
var _excluded = ["type", "text", "secondaryText", "tertiaryText", "description", "size", "children", "variant", "tag", "disabled", "selected", "subMenu", "tooltip", "isFirstItem"],
|
40020
39995
|
_excluded2 = ["isLeft"],
|
40021
39996
|
_excluded3 = ["subItems", "children"],
|
40022
39997
|
_excluded4 = ["popover"];
|
@@ -40051,7 +40026,6 @@ var MenuItem = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().forward
|
|
40051
40026
|
subMenu = props.subMenu,
|
40052
40027
|
tooltip = props.tooltip,
|
40053
40028
|
isFirstItem = props.isFirstItem,
|
40054
|
-
testId = props.testId,
|
40055
40029
|
rest = _objectWithoutProperties(props, _excluded);
|
40056
40030
|
if (type == 'divider') return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(_menu_item_divider__WEBPACK_IMPORTED_MODULE_11__["default"], {
|
40057
40031
|
ref: ref
|
@@ -40064,8 +40038,7 @@ var MenuItem = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().forward
|
|
40064
40038
|
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(_menu_item_group__WEBPACK_IMPORTED_MODULE_12__.MenuItemGroup, _extends({
|
40065
40039
|
ref: ref,
|
40066
40040
|
text: text,
|
40067
|
-
isFirstItem: isFirstItem
|
40068
|
-
testId: testId
|
40041
|
+
isFirstItem: isFirstItem
|
40069
40042
|
}, rest), subItems);
|
40070
40043
|
}
|
40071
40044
|
var _getIconProps = (0,_utils__WEBPACK_IMPORTED_MODULE_9__.getIconProps)('MenuItem', props),
|
@@ -40081,7 +40054,6 @@ var MenuItem = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().forward
|
|
40081
40054
|
tooltip: tooltip,
|
40082
40055
|
noWrap: true
|
40083
40056
|
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(MenuItemComp, _extends({}, lodash_omit__WEBPACK_IMPORTED_MODULE_0___default()(rest, 'icon', 'iconPlacement'), {
|
40084
|
-
"data-testid": testId,
|
40085
40057
|
"aria-disabled": disabled ? '' : undefined,
|
40086
40058
|
size: size,
|
40087
40059
|
role: "button",
|
@@ -40296,7 +40268,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
40296
40268
|
|
40297
40269
|
|
40298
40270
|
/*jslint react:true*/
|
40299
|
-
var _excluded = ["text", "children", "isFirstItem"
|
40271
|
+
var _excluded = ["text", "children", "isFirstItem"];
|
40300
40272
|
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); }
|
40301
40273
|
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; }
|
40302
40274
|
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; }
|
@@ -40309,11 +40281,9 @@ var MenuItemGroup = function MenuItemGroup(props) {
|
|
40309
40281
|
var text = props.text,
|
40310
40282
|
children = props.children,
|
40311
40283
|
isFirstItem = props.isFirstItem,
|
40312
|
-
testId = props.testId,
|
40313
40284
|
rest = _objectWithoutProperties(props, _excluded);
|
40314
40285
|
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({
|
40315
|
-
role: "presentation"
|
40316
|
-
"data-testid": testId
|
40286
|
+
role: "presentation"
|
40317
40287
|
}, rest), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(GroupTitle, {
|
40318
40288
|
variant: "base",
|
40319
40289
|
no_wrap: true,
|
@@ -40385,11 +40355,15 @@ __webpack_require__.r(__webpack_exports__);
|
|
40385
40355
|
/* harmony import */ var styled_components__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(styled_components__WEBPACK_IMPORTED_MODULE_2__);
|
40386
40356
|
/* harmony import */ var _layout__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../layout */ "./src/layout/index.js");
|
40387
40357
|
/* harmony import */ var _theme__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../theme */ "./src/theme.js");
|
40388
|
-
/* harmony import */ var
|
40358
|
+
/* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../util */ "./src/util/index.js");
|
40389
40359
|
// LICENSE_CODE ZON
|
40390
40360
|
|
40391
40361
|
|
40392
40362
|
/*jslint react:true*/
|
40363
|
+
var _excluded = ["className", "header", "content", "footer", "size", "shadow", "borders"];
|
40364
|
+
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); }
|
40365
|
+
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; }
|
40366
|
+
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; }
|
40393
40367
|
|
40394
40368
|
|
40395
40369
|
|
@@ -40405,7 +40379,7 @@ var MODAL_WIDTHS = {
|
|
40405
40379
|
var StyledWrapper = styled_components__WEBPACK_IMPORTED_MODULE_2___default()(_layout__WEBPACK_IMPORTED_MODULE_3__.Box).withConfig({
|
40406
40380
|
displayName: "StyledWrapper",
|
40407
40381
|
componentId: "sc-1nggvo0-0"
|
40408
|
-
})(["background-color:", ";border-radius:", ";display:grid;grid-
|
40382
|
+
})(["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) {
|
40409
40383
|
return MODAL_WIDTHS[props.$size];
|
40410
40384
|
});
|
40411
40385
|
var StyledHeaderWrapper = styled_components__WEBPACK_IMPORTED_MODULE_2___default()(_layout__WEBPACK_IMPORTED_MODULE_3__.Flex).attrs({
|
@@ -40433,9 +40407,7 @@ var StyledFooterWrapper = styled_components__WEBPACK_IMPORTED_MODULE_2___default
|
|
40433
40407
|
componentId: "sc-1nggvo0-3"
|
40434
40408
|
})([""]);
|
40435
40409
|
var ModalBase = /*#__PURE__*/(0,react__WEBPACK_IMPORTED_MODULE_1__.forwardRef)(function (props, ref) {
|
40436
|
-
var
|
40437
|
-
className = props.className,
|
40438
|
-
testId = props['data-testid'],
|
40410
|
+
var className = props.className,
|
40439
40411
|
header = props.header,
|
40440
40412
|
content = props.content,
|
40441
40413
|
footer = props.footer,
|
@@ -40444,25 +40416,25 @@ var ModalBase = /*#__PURE__*/(0,react__WEBPACK_IMPORTED_MODULE_1__.forwardRef)(f
|
|
40444
40416
|
_props$borders = props.borders,
|
40445
40417
|
borders = _props$borders === void 0 ? {
|
40446
40418
|
bottom: true
|
40447
|
-
} : _props$borders
|
40448
|
-
|
40449
|
-
|
40450
|
-
|
40419
|
+
} : _props$borders,
|
40420
|
+
rest = _objectWithoutProperties(props, _excluded);
|
40421
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(StyledWrapper, _extends({
|
40422
|
+
ref: ref,
|
40423
|
+
className: className
|
40424
|
+
}, (0,_util__WEBPACK_IMPORTED_MODULE_5__.getCommonProps)(rest), {
|
40451
40425
|
$size: size,
|
40452
|
-
box_shadow: shadow
|
40453
|
-
|
40454
|
-
|
40455
|
-
}, header && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(StyledHeaderWrapper, {
|
40456
|
-
className: (0,_utils__WEBPACK_IMPORTED_MODULE_5__.classNames)(className, {
|
40426
|
+
box_shadow: shadow
|
40427
|
+
}), header && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(StyledHeaderWrapper, {
|
40428
|
+
className: (0,_util__WEBPACK_IMPORTED_MODULE_5__.classNames)(className, {
|
40457
40429
|
header: true
|
40458
40430
|
})
|
40459
40431
|
}, header), content && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(StyledContentWrapper, {
|
40460
40432
|
$borders: borders,
|
40461
|
-
className: (0,
|
40433
|
+
className: (0,_util__WEBPACK_IMPORTED_MODULE_5__.classNames)(className, {
|
40462
40434
|
content: true
|
40463
40435
|
})
|
40464
40436
|
}, content), footer && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(StyledFooterWrapper, {
|
40465
|
-
className: (0,
|
40437
|
+
className: (0,_util__WEBPACK_IMPORTED_MODULE_5__.classNames)(className, {
|
40466
40438
|
footer: true
|
40467
40439
|
})
|
40468
40440
|
}, footer));
|
@@ -41040,7 +41012,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
41040
41012
|
/* harmony import */ var styled_components__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! styled-components */ "styled-components");
|
41041
41013
|
/* harmony import */ var styled_components__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(styled_components__WEBPACK_IMPORTED_MODULE_2__);
|
41042
41014
|
/* harmony import */ var _theme__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../theme */ "./src/theme.js");
|
41043
|
-
/* harmony import */ var
|
41015
|
+
/* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../util */ "./src/util/index.js");
|
41044
41016
|
// LICENSE_CODE ZON
|
41045
41017
|
|
41046
41018
|
|
@@ -41092,7 +41064,7 @@ var Group = function Group(props) {
|
|
41092
41064
|
$variant: variant,
|
41093
41065
|
"aria-orientation": variant == 'vertical' ? 'vertical' : 'horizontal',
|
41094
41066
|
onKeyDown: handleKeyDown
|
41095
|
-
}, (0,
|
41067
|
+
}, (0,_util__WEBPACK_IMPORTED_MODULE_4__.getCommonProps)(rest)), react__WEBPACK_IMPORTED_MODULE_1__.Children.map(children, function (child) {
|
41096
41068
|
return /*#__PURE__*/(0,react__WEBPACK_IMPORTED_MODULE_1__.cloneElement)(child, {
|
41097
41069
|
variant: variant
|
41098
41070
|
});
|
@@ -41167,7 +41139,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
41167
41139
|
/* harmony import */ var styled_components__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(styled_components__WEBPACK_IMPORTED_MODULE_2__);
|
41168
41140
|
/* harmony import */ var _theme__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../theme */ "./src/theme.js");
|
41169
41141
|
/* harmony import */ var _typography__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../typography */ "./src/typography/index.js");
|
41170
|
-
/* harmony import */ var
|
41142
|
+
/* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../util */ "./src/util/index.js");
|
41171
41143
|
// LICENSE_CODE ZON
|
41172
41144
|
|
41173
41145
|
|
@@ -41196,7 +41168,7 @@ var Tab = function Tab(props) {
|
|
41196
41168
|
tabIndex: selected ? 0 : -1,
|
41197
41169
|
"aria-disabled": disabled ? 'true' : undefined,
|
41198
41170
|
disabled: !!disabled
|
41199
|
-
}, (0,
|
41171
|
+
}, (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, {
|
41200
41172
|
$variant: variant
|
41201
41173
|
}, text)), rightContent);
|
41202
41174
|
};
|
@@ -41267,7 +41239,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
41267
41239
|
/* harmony import */ var styled_components__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! styled-components */ "styled-components");
|
41268
41240
|
/* harmony import */ var styled_components__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(styled_components__WEBPACK_IMPORTED_MODULE_1__);
|
41269
41241
|
/* harmony import */ var _theme__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../theme */ "./src/theme.js");
|
41270
|
-
/* harmony import */ var
|
41242
|
+
/* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../util */ "./src/util/index.js");
|
41271
41243
|
/* harmony import */ var _constants__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../constants */ "./src/constants.js");
|
41272
41244
|
/* harmony import */ var _context__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./context */ "./src/table/context.js");
|
41273
41245
|
/* harmony import */ var _table_row__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./table_row */ "./src/table/table_row.js");
|
@@ -41319,9 +41291,9 @@ var Cell = function Cell(props) {
|
|
41319
41291
|
$isEditing: isEditing,
|
41320
41292
|
$isLastRow: isLastRow
|
41321
41293
|
}, cell.getCellProps([getColumnProps(column), getCellProps(cell)]));
|
41322
|
-
cellProps.className = (0,
|
41294
|
+
cellProps.className = (0,_util__WEBPACK_IMPORTED_MODULE_3__.classNames)(null, null, (0,_util__WEBPACK_IMPORTED_MODULE_3__.classNames)(column.className, {
|
41323
41295
|
cell: true
|
41324
|
-
}), (0,
|
41296
|
+
}), (0,_util__WEBPACK_IMPORTED_MODULE_3__.classNames)(className, {
|
41325
41297
|
tableCell: true
|
41326
41298
|
}), cellProps.className);
|
41327
41299
|
if (canEdit) {
|
@@ -42047,7 +42019,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
42047
42019
|
/* harmony export */ });
|
42048
42020
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
|
42049
42021
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
42050
|
-
/* harmony import */ var
|
42022
|
+
/* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../util */ "./src/util/index.js");
|
42051
42023
|
/* harmony import */ var _cell__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./cell */ "./src/table/cell.js");
|
42052
42024
|
/* harmony import */ var _context__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./context */ "./src/table/context.js");
|
42053
42025
|
// LICENSE_CODE ZON
|
@@ -42082,7 +42054,7 @@ var TableFooter = function TableFooter(props) {
|
|
42082
42054
|
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("div", {
|
42083
42055
|
role: "rowgroup",
|
42084
42056
|
"data-rowgroup-type": "footer",
|
42085
|
-
className: (0,
|
42057
|
+
className: (0,_util__WEBPACK_IMPORTED_MODULE_1__.classNames)(className, {
|
42086
42058
|
tableFooter: true
|
42087
42059
|
})
|
42088
42060
|
}, footerGroups.map(function (group) {
|
@@ -42093,7 +42065,7 @@ var TableFooter = function TableFooter(props) {
|
|
42093
42065
|
key: key,
|
42094
42066
|
role: "row"
|
42095
42067
|
}, rest, {
|
42096
|
-
className: (0,
|
42068
|
+
className: (0,_util__WEBPACK_IMPORTED_MODULE_1__.classNames)(className, {
|
42097
42069
|
footerRow: true
|
42098
42070
|
})
|
42099
42071
|
}), group.headers.map(function (column) {
|
@@ -42101,7 +42073,7 @@ var TableFooter = function TableFooter(props) {
|
|
42101
42073
|
column: column,
|
42102
42074
|
key: column.getFooterProps().key,
|
42103
42075
|
rowDensity: rowDensity,
|
42104
|
-
className: (0,
|
42076
|
+
className: (0,_util__WEBPACK_IMPORTED_MODULE_1__.classNames)(className, {
|
42105
42077
|
footerCell: true
|
42106
42078
|
})
|
42107
42079
|
});
|
@@ -42123,7 +42095,7 @@ var FooterCell = function FooterCell(props) {
|
|
42123
42095
|
$rowDensity: rowDensity,
|
42124
42096
|
$isFooter: true
|
42125
42097
|
}, column.getFooterProps([getColumnProps(column), getFooterProps(column)]));
|
42126
|
-
footerProps.className = (0,
|
42098
|
+
footerProps.className = (0,_util__WEBPACK_IMPORTED_MODULE_1__.classNames)(column.className, {
|
42127
42099
|
footer: true
|
42128
42100
|
}, className, footerProps.className);
|
42129
42101
|
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_cell__WEBPACK_IMPORTED_MODULE_2__.StyledCell, _extends({
|
@@ -42151,12 +42123,13 @@ __webpack_require__.r(__webpack_exports__);
|
|
42151
42123
|
/* harmony import */ var styled_components__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(styled_components__WEBPACK_IMPORTED_MODULE_1__);
|
42152
42124
|
/* harmony import */ var _theme__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../theme */ "./src/theme.js");
|
42153
42125
|
/* harmony import */ var _typography__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../typography */ "./src/typography/index.js");
|
42154
|
-
/* harmony import */ var
|
42155
|
-
/* harmony import */ var
|
42156
|
-
/* harmony import */ var
|
42157
|
-
/* harmony import */ var
|
42158
|
-
/* harmony import */ var
|
42159
|
-
/* harmony import */ var
|
42126
|
+
/* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../util */ "./src/util/index.js");
|
42127
|
+
/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../utils */ "./src/utils.js");
|
42128
|
+
/* harmony import */ var _constants__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../constants */ "./src/constants.js");
|
42129
|
+
/* harmony import */ var _context__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./context */ "./src/table/context.js");
|
42130
|
+
/* harmony import */ var _header_functions__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./header_functions */ "./src/table/header_functions.js");
|
42131
|
+
/* harmony import */ var _sort_icon__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./sort_icon */ "./src/table/sort_icon.js");
|
42132
|
+
/* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./util */ "./src/table/util.js");
|
42160
42133
|
// LICENSE_CODE ZON
|
42161
42134
|
|
42162
42135
|
|
@@ -42181,23 +42154,24 @@ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) r
|
|
42181
42154
|
|
42182
42155
|
|
42183
42156
|
|
42157
|
+
|
42184
42158
|
var TableHeader = function TableHeader(props) {
|
42185
42159
|
var className = props.className,
|
42186
42160
|
compact = props.compact,
|
42187
42161
|
left = props.left;
|
42188
|
-
var _useTableContext = (0,
|
42162
|
+
var _useTableContext = (0,_context__WEBPACK_IMPORTED_MODULE_7__.useTableContext)(),
|
42189
42163
|
headerGroups = _useTableContext.headerGroups,
|
42190
42164
|
hideHeader = _useTableContext.hideHeader;
|
42191
42165
|
if (hideHeader) return null;
|
42192
42166
|
var style = {};
|
42193
|
-
if (typeof left != 'undefined') style.marginLeft = (0,
|
42167
|
+
if (typeof left != 'undefined') style.marginLeft = (0,_utils__WEBPACK_IMPORTED_MODULE_5__.toPixel)(-left);
|
42194
42168
|
var dataAttributes = {};
|
42195
42169
|
if (!compact) dataAttributes['data-rowgroup-type'] = 'head';
|
42196
42170
|
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("div", _extends({
|
42197
42171
|
role: "rowgroup",
|
42198
42172
|
style: style
|
42199
42173
|
}, dataAttributes, {
|
42200
|
-
className: (0,
|
42174
|
+
className: (0,_util__WEBPACK_IMPORTED_MODULE_4__.classNames)(className, {
|
42201
42175
|
tableHeader: true,
|
42202
42176
|
'tableHeader--is-compact': compact
|
42203
42177
|
})
|
@@ -42208,7 +42182,7 @@ var TableHeader = function TableHeader(props) {
|
|
42208
42182
|
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("div", _extends({
|
42209
42183
|
key: key
|
42210
42184
|
}, rest, {
|
42211
|
-
className: (0,
|
42185
|
+
className: (0,_util__WEBPACK_IMPORTED_MODULE_4__.classNames)(className, {
|
42212
42186
|
headerRow: true
|
42213
42187
|
})
|
42214
42188
|
}), group.headers.map(function (header, i, arr) {
|
@@ -42218,7 +42192,7 @@ var TableHeader = function TableHeader(props) {
|
|
42218
42192
|
isLast: isLast,
|
42219
42193
|
key: header.getHeaderProps().key,
|
42220
42194
|
header: header,
|
42221
|
-
className: (0,
|
42195
|
+
className: (0,_util__WEBPACK_IMPORTED_MODULE_4__.classNames)(className, {
|
42222
42196
|
headerCell: true,
|
42223
42197
|
'headerCell--is-compact': compact,
|
42224
42198
|
'headerCell--is-last': isLast
|
@@ -42238,7 +42212,7 @@ var HeaderCell = function HeaderCell(props) {
|
|
42238
42212
|
on_sort = header.on_sort,
|
42239
42213
|
isResizing = header.isResizing,
|
42240
42214
|
getResizerProps = header.getResizerProps;
|
42241
|
-
var _useTableContext2 = (0,
|
42215
|
+
var _useTableContext2 = (0,_context__WEBPACK_IMPORTED_MODULE_7__.useTableContext)(),
|
42242
42216
|
getColumnProps = _useTableContext2.getColumnProps,
|
42243
42217
|
getHeaderProps = _useTableContext2.getHeaderProps,
|
42244
42218
|
columnsSort = _useTableContext2.columnsSort,
|
@@ -42262,7 +42236,7 @@ var HeaderCell = function HeaderCell(props) {
|
|
42262
42236
|
var iconVisible = canSort && (['asc', 'desc'].includes(sort) || hovered);
|
42263
42237
|
var headerCellProps = header.getHeaderProps([getColumnProps(header), getHeaderProps(header)]);
|
42264
42238
|
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(HeaderCellContent, _extends({}, headerCellProps, {
|
42265
|
-
className: (0,
|
42239
|
+
className: (0,_util__WEBPACK_IMPORTED_MODULE_4__.classNames)(header.className, {
|
42266
42240
|
header: true
|
42267
42241
|
}, className, headerCellProps.className),
|
42268
42242
|
onMouseOver: function onMouseOver() {
|
@@ -42274,16 +42248,16 @@ var HeaderCell = function HeaderCell(props) {
|
|
42274
42248
|
}), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(HeaderCellWrapper, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(HeaderCellLeft, {
|
42275
42249
|
$canSort: canSort,
|
42276
42250
|
onClick: handleSort
|
42277
|
-
}, !compact && (0,
|
42251
|
+
}, !compact && (0,_util__WEBPACK_IMPORTED_MODULE_10__.renderCellContent)(header, 'Header', {
|
42278
42252
|
compact: compact
|
42279
42253
|
}), compact && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_typography__WEBPACK_IMPORTED_MODULE_3__.Label, {
|
42280
42254
|
variant: "sm",
|
42281
42255
|
color: "gray_11",
|
42282
42256
|
no_wrap: true
|
42283
|
-
}, name || id), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(
|
42257
|
+
}, name || id), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_sort_icon__WEBPACK_IMPORTED_MODULE_9__.SortIcon, {
|
42284
42258
|
visible: !!iconVisible,
|
42285
42259
|
reverse: sort == 'desc'
|
42286
|
-
})), !compact && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(
|
42260
|
+
})), !compact && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_header_functions__WEBPACK_IMPORTED_MODULE_8__.HeaderFunctions, {
|
42287
42261
|
header: header,
|
42288
42262
|
visible: hovered,
|
42289
42263
|
onItemClick: function onItemClick() {
|
@@ -42297,7 +42271,7 @@ HeaderCell.displayName = 'HeaderCell';
|
|
42297
42271
|
var HeaderCellContent = styled_components__WEBPACK_IMPORTED_MODULE_1___default().div.withConfig({
|
42298
42272
|
displayName: "HeaderCellContent",
|
42299
42273
|
componentId: "sc-8zg5t0-0"
|
42300
|
-
})(["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,
|
42274
|
+
})(["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);
|
42301
42275
|
var HeaderCellWrapper = styled_components__WEBPACK_IMPORTED_MODULE_1___default().div.withConfig({
|
42302
42276
|
displayName: "HeaderCellWrapper",
|
42303
42277
|
componentId: "sc-8zg5t0-1"
|
@@ -42313,7 +42287,7 @@ HeaderCellLeft.displayName = 'HeaderCellLeft';
|
|
42313
42287
|
var HeaderCellResizer = styled_components__WEBPACK_IMPORTED_MODULE_1___default().div.withConfig({
|
42314
42288
|
displayName: "HeaderCellResizer",
|
42315
42289
|
componentId: "sc-8zg5t0-3"
|
42316
|
-
})(["display:inline-block;width:10px;height:100%;position:absolute;right:0;top:0;transform:translateX(50%);z-index:", ";touch-action:none;", ""],
|
42290
|
+
})(["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) {
|
42317
42291
|
if (props.$isResizing) {
|
42318
42292
|
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);
|
42319
42293
|
}
|
@@ -43061,7 +43035,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
43061
43035
|
/* harmony export */ });
|
43062
43036
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
|
43063
43037
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
43064
|
-
/* harmony import */ var
|
43038
|
+
/* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../util */ "./src/util/index.js");
|
43065
43039
|
/* harmony import */ var _cell__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./cell */ "./src/table/cell.js");
|
43066
43040
|
/* harmony import */ var _table_row__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./table_row */ "./src/table/table_row.js");
|
43067
43041
|
// LICENSE_CODE ZON
|
@@ -43088,7 +43062,7 @@ var renderRow = function renderRow(opt) {
|
|
43088
43062
|
var cursor = onRowClick ? 'pointer' : undefined;
|
43089
43063
|
var tableRow = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_table_row__WEBPACK_IMPORTED_MODULE_3__.TableRow, _extends({}, rowProps, {
|
43090
43064
|
onClick: onClick,
|
43091
|
-
className: (0,
|
43065
|
+
className: (0,_util__WEBPACK_IMPORTED_MODULE_1__.classNames)(className, {
|
43092
43066
|
tableRow: true,
|
43093
43067
|
'tableRow--is-pinned': row.isPinned
|
43094
43068
|
}, rowProps.className),
|
@@ -43107,7 +43081,7 @@ var renderRow = function renderRow(opt) {
|
|
43107
43081
|
key: "".concat(rowProps.key, "_fragment")
|
43108
43082
|
}, tableRow, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_table_row__WEBPACK_IMPORTED_MODULE_3__.TableRow, _extends({}, rowProps, {
|
43109
43083
|
key: "".concat(rowProps.key, "_subcomponent"),
|
43110
|
-
className: (0,
|
43084
|
+
className: (0,_util__WEBPACK_IMPORTED_MODULE_1__.classNames)(className, {
|
43111
43085
|
rowSubComponent: true
|
43112
43086
|
}, rowProps.className)
|
43113
43087
|
}), renderRowSubComponent({
|
@@ -43172,12 +43146,13 @@ __webpack_require__.r(__webpack_exports__);
|
|
43172
43146
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
|
43173
43147
|
/* harmony import */ var styled_components__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! styled-components */ "styled-components");
|
43174
43148
|
/* harmony import */ var styled_components__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(styled_components__WEBPACK_IMPORTED_MODULE_2__);
|
43175
|
-
/* harmony import */ var
|
43176
|
-
/* harmony import */ var
|
43177
|
-
/* harmony import */ var
|
43178
|
-
/* harmony import */ var
|
43179
|
-
/* harmony import */ var
|
43180
|
-
/* harmony import */ var
|
43149
|
+
/* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../util */ "./src/util/index.js");
|
43150
|
+
/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../utils */ "./src/utils.js");
|
43151
|
+
/* harmony import */ var _constants__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../constants */ "./src/constants.js");
|
43152
|
+
/* harmony import */ var _hooks__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../hooks */ "./src/hooks/index.js");
|
43153
|
+
/* harmony import */ var _context__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./context */ "./src/table/context.js");
|
43154
|
+
/* harmony import */ var _header__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./header */ "./src/table/header.js");
|
43155
|
+
/* harmony import */ var _render_row__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./render_row */ "./src/table/render_row.js");
|
43181
43156
|
// LICENSE_CODE ZON
|
43182
43157
|
|
43183
43158
|
|
@@ -43197,6 +43172,7 @@ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
43197
43172
|
|
43198
43173
|
|
43199
43174
|
|
43175
|
+
|
43200
43176
|
var StickyHeader = function StickyHeader(props) {
|
43201
43177
|
var className = props.className,
|
43202
43178
|
offsetTop = props.offsetTop,
|
@@ -43213,7 +43189,7 @@ var StickyHeader = function StickyHeader(props) {
|
|
43213
43189
|
_useState4 = _slicedToArray(_useState3, 2),
|
43214
43190
|
showSticky = _useState4[0],
|
43215
43191
|
setShowSticky = _useState4[1];
|
43216
|
-
(0,
|
43192
|
+
(0,_hooks__WEBPACK_IMPORTED_MODULE_6__.useEventListener)(scrollTarget || window, {
|
43217
43193
|
event: 'scroll',
|
43218
43194
|
handler: lodash_throttle__WEBPACK_IMPORTED_MODULE_0___default()(function () {
|
43219
43195
|
if (!tableRef.current) return;
|
@@ -43227,35 +43203,35 @@ var StickyHeader = function StickyHeader(props) {
|
|
43227
43203
|
_useState6 = _slicedToArray(_useState5, 2),
|
43228
43204
|
left = _useState6[0],
|
43229
43205
|
setLeft = _useState6[1];
|
43230
|
-
(0,
|
43206
|
+
(0,_hooks__WEBPACK_IMPORTED_MODULE_6__.useEventListener)(wrapperRef.current, {
|
43231
43207
|
event: 'scroll',
|
43232
43208
|
handler: lodash_throttle__WEBPACK_IMPORTED_MODULE_0___default()(function (evt) {
|
43233
43209
|
setLeft(evt.target.scrollLeft);
|
43234
43210
|
}, 100)
|
43235
43211
|
});
|
43236
|
-
var _useTableContext = (0,
|
43212
|
+
var _useTableContext = (0,_context__WEBPACK_IMPORTED_MODULE_7__.useTableContext)(),
|
43237
43213
|
prepareRow = _useTableContext.prepareRow,
|
43238
43214
|
columnStartEditing = _useTableContext.columnStartEditing,
|
43239
43215
|
columnDoneEditing = _useTableContext.columnDoneEditing,
|
43240
43216
|
_useTableContext$pinn = _useTableContext.pinnedRows,
|
43241
43217
|
pinnedRows = _useTableContext$pinn === void 0 ? [] : _useTableContext$pinn;
|
43242
43218
|
var style = {
|
43243
|
-
top: (0,
|
43244
|
-
width: (0,
|
43219
|
+
top: (0,_utils__WEBPACK_IMPORTED_MODULE_4__.toPixel)(offsetTop),
|
43220
|
+
width: (0,_utils__WEBPACK_IMPORTED_MODULE_4__.toPixel)(width)
|
43245
43221
|
};
|
43246
43222
|
if (!showSticky) return null;
|
43247
43223
|
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(StickyHeaderWrapper, {
|
43248
43224
|
style: style,
|
43249
|
-
className: (0,
|
43225
|
+
className: (0,_util__WEBPACK_IMPORTED_MODULE_3__.classNames)(className, {
|
43250
43226
|
stickyHeader: true
|
43251
43227
|
})
|
43252
|
-
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(
|
43228
|
+
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_header__WEBPACK_IMPORTED_MODULE_8__.TableHeader, {
|
43253
43229
|
left: left,
|
43254
43230
|
className: className,
|
43255
43231
|
compact: true
|
43256
43232
|
}), pinnedRows.map(function (row) {
|
43257
43233
|
prepareRow(row);
|
43258
|
-
return (0,
|
43234
|
+
return (0,_render_row__WEBPACK_IMPORTED_MODULE_9__.renderRow)({
|
43259
43235
|
row: row,
|
43260
43236
|
columnStartEditing: columnStartEditing,
|
43261
43237
|
columnDoneEditing: columnDoneEditing,
|
@@ -43269,7 +43245,7 @@ StickyHeader.displayName = 'StickyHeader';
|
|
43269
43245
|
var StickyHeaderWrapper = styled_components__WEBPACK_IMPORTED_MODULE_2___default().div.withConfig({
|
43270
43246
|
displayName: "StickyHeaderWrapper",
|
43271
43247
|
componentId: "sc-hh47bp-0"
|
43272
|
-
})(["position:fixed;z-index:", ";overflow-x:hidden;box-shadow:0px 2px 4px -2px rgba(24,39,75,0.12);"],
|
43248
|
+
})(["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);
|
43273
43249
|
StickyHeaderWrapper.displayName = 'StickyHeaderWrapper';
|
43274
43250
|
|
43275
43251
|
/***/ }),
|
@@ -43490,14 +43466,13 @@ __webpack_require__.r(__webpack_exports__);
|
|
43490
43466
|
/* harmony import */ var styled_components__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! styled-components */ "styled-components");
|
43491
43467
|
/* harmony import */ var styled_components__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(styled_components__WEBPACK_IMPORTED_MODULE_3__);
|
43492
43468
|
/* harmony import */ var _theme__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../theme */ "./src/theme.js");
|
43493
|
-
/* harmony import */ var
|
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 _util__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./util */ "./src/table/util.js");
|
43469
|
+
/* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../util */ "./src/util/index.js");
|
43470
|
+
/* harmony import */ var _context__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./context */ "./src/table/context.js");
|
43471
|
+
/* harmony import */ var _footer__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./footer */ "./src/table/footer.js");
|
43472
|
+
/* harmony import */ var _header__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./header */ "./src/table/header.js");
|
43473
|
+
/* harmony import */ var _render_row__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./render_row */ "./src/table/render_row.js");
|
43474
|
+
/* harmony import */ var _sticky_header__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./sticky_header */ "./src/table/sticky_header.js");
|
43475
|
+
/* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./util */ "./src/table/util.js");
|
43501
43476
|
// LICENSE_CODE ZON
|
43502
43477
|
|
43503
43478
|
|
@@ -43518,50 +43493,49 @@ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) r
|
|
43518
43493
|
|
43519
43494
|
|
43520
43495
|
|
43521
|
-
|
43522
43496
|
var Table = function Table(props) {
|
43523
|
-
var context = (0,
|
43497
|
+
var context = (0,_context__WEBPACK_IMPORTED_MODULE_6__.useTableContext)();
|
43524
43498
|
// not under context
|
43525
|
-
if (context ===
|
43526
|
-
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(
|
43499
|
+
if (context === _context__WEBPACK_IMPORTED_MODULE_6__.defaultContextValue) {
|
43500
|
+
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));
|
43527
43501
|
}
|
43528
43502
|
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(InnerTable, props);
|
43529
43503
|
};
|
43530
43504
|
Table.displayName = 'Table';
|
43531
|
-
Table.propTypes = lodash_cloneDeep__WEBPACK_IMPORTED_MODULE_1___default()(
|
43505
|
+
Table.propTypes = lodash_cloneDeep__WEBPACK_IMPORTED_MODULE_1___default()(_context__WEBPACK_IMPORTED_MODULE_6__["default"].propTypes);
|
43532
43506
|
var InnerTable = function InnerTable(props) {
|
43533
|
-
var _useTableContext = (0,
|
43507
|
+
var _useTableContext = (0,_context__WEBPACK_IMPORTED_MODULE_6__.useTableContext)(),
|
43534
43508
|
getTableProps = _useTableContext.getTableProps,
|
43535
43509
|
context = _objectWithoutProperties(_useTableContext, _excluded);
|
43536
|
-
var className = (0,
|
43537
|
-
var rowDensity = (0,
|
43538
|
-
var onRowClick = (0,
|
43539
|
-
var stickyHeader = (0,
|
43540
|
-
var scrollTarget = (0,
|
43510
|
+
var className = (0,_util__WEBPACK_IMPORTED_MODULE_11__.firstDefined)(props.className, context.className);
|
43511
|
+
var rowDensity = (0,_util__WEBPACK_IMPORTED_MODULE_11__.firstDefined)(props.rowDensity, context.rowDensity);
|
43512
|
+
var onRowClick = (0,_util__WEBPACK_IMPORTED_MODULE_11__.firstDefined)(props.onRowClick, context.onRowClick);
|
43513
|
+
var stickyHeader = (0,_util__WEBPACK_IMPORTED_MODULE_11__.firstDefined)(props.stickyHeader, context.stickyHeader);
|
43514
|
+
var scrollTarget = (0,_util__WEBPACK_IMPORTED_MODULE_11__.firstDefined)(props.scrollTarget, context.scrollTarget);
|
43541
43515
|
var offsetTop = lodash_isObject__WEBPACK_IMPORTED_MODULE_0___default()(stickyHeader) && stickyHeader.offsetTop || 0;
|
43542
43516
|
var wrapperRef = (0,react__WEBPACK_IMPORTED_MODULE_2__.useRef)();
|
43543
43517
|
var tableRef = (0,react__WEBPACK_IMPORTED_MODULE_2__.useRef)();
|
43544
43518
|
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(TableWrapper, {
|
43545
43519
|
ref: wrapperRef,
|
43546
|
-
className: (0,
|
43520
|
+
className: (0,_util__WEBPACK_IMPORTED_MODULE_5__.classNames)(className, {
|
43547
43521
|
container: true
|
43548
43522
|
}, className)
|
43549
43523
|
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(StyledTable, _extends({
|
43550
43524
|
ref: tableRef
|
43551
43525
|
}, getTableProps(), {
|
43552
|
-
className: (0,
|
43526
|
+
className: (0,_util__WEBPACK_IMPORTED_MODULE_5__.classNames)(className, {
|
43553
43527
|
table: true
|
43554
43528
|
})
|
43555
|
-
}), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(
|
43529
|
+
}), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(_header__WEBPACK_IMPORTED_MODULE_8__.TableHeader, {
|
43556
43530
|
className: className
|
43557
43531
|
}), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(TableBody, {
|
43558
43532
|
rowDensity: rowDensity,
|
43559
43533
|
className: className,
|
43560
43534
|
onRowClick: onRowClick
|
43561
|
-
}), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(
|
43535
|
+
}), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(_footer__WEBPACK_IMPORTED_MODULE_7__.TableFooter, {
|
43562
43536
|
rowDensity: rowDensity,
|
43563
43537
|
className: className
|
43564
|
-
}), !!stickyHeader && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(
|
43538
|
+
}), !!stickyHeader && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(_sticky_header__WEBPACK_IMPORTED_MODULE_10__.StickyHeader, {
|
43565
43539
|
offsetTop: offsetTop,
|
43566
43540
|
onRowClick: onRowClick,
|
43567
43541
|
rowDensity: rowDensity,
|
@@ -43586,7 +43560,7 @@ var TableBody = function TableBody(props) {
|
|
43586
43560
|
var className = props.className,
|
43587
43561
|
rowDensity = props.rowDensity,
|
43588
43562
|
onRowClick = props.onRowClick;
|
43589
|
-
var _useTableContext2 = (0,
|
43563
|
+
var _useTableContext2 = (0,_context__WEBPACK_IMPORTED_MODULE_6__.useTableContext)(),
|
43590
43564
|
getTableBodyProps = _useTableContext2.getTableBodyProps,
|
43591
43565
|
prepareRow = _useTableContext2.prepareRow,
|
43592
43566
|
page = _useTableContext2.page,
|
@@ -43598,12 +43572,12 @@ var TableBody = function TableBody(props) {
|
|
43598
43572
|
getRowProps = _useTableContext2.getRowProps,
|
43599
43573
|
renderRowSubComponent = _useTableContext2.renderRowSubComponent;
|
43600
43574
|
var body = function () {
|
43601
|
-
if (isLoading) return (0,
|
43602
|
-
if (!page.length) return (0,
|
43575
|
+
if (isLoading) return (0,_util__WEBPACK_IMPORTED_MODULE_5__.flexRender)(LoadingComp);
|
43576
|
+
if (!page.length) return (0,_util__WEBPACK_IMPORTED_MODULE_5__.flexRender)(NoDataComp);
|
43603
43577
|
return page.map(function (row, i, arr) {
|
43604
43578
|
prepareRow(row);
|
43605
43579
|
if (row.isPinned) return null;
|
43606
|
-
return (0,
|
43580
|
+
return (0,_render_row__WEBPACK_IMPORTED_MODULE_9__.renderRow)({
|
43607
43581
|
row: row,
|
43608
43582
|
rowDensity: rowDensity,
|
43609
43583
|
onRowClick: onRowClick,
|
@@ -43617,12 +43591,12 @@ var TableBody = function TableBody(props) {
|
|
43617
43591
|
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement("div", _extends({
|
43618
43592
|
"data-rowgroup-type": "body"
|
43619
43593
|
}, getTableBodyProps(), {
|
43620
|
-
className: (0,
|
43594
|
+
className: (0,_util__WEBPACK_IMPORTED_MODULE_5__.classNames)(className, {
|
43621
43595
|
tableBody: true
|
43622
43596
|
})
|
43623
43597
|
}), pinnedRows.map(function (row) {
|
43624
43598
|
prepareRow(row);
|
43625
|
-
return (0,
|
43599
|
+
return (0,_render_row__WEBPACK_IMPORTED_MODULE_9__.renderRow)({
|
43626
43600
|
row: row,
|
43627
43601
|
rowDensity: rowDensity,
|
43628
43602
|
onRowClick: onRowClick,
|
@@ -44470,6 +44444,81 @@ var setTranslationFn = function setTranslationFn(cb) {
|
|
44470
44444
|
|
44471
44445
|
/***/ }),
|
44472
44446
|
|
44447
|
+
/***/ "./src/typography/constant.js":
|
44448
|
+
/*!************************************!*\
|
44449
|
+
!*** ./src/typography/constant.js ***!
|
44450
|
+
\************************************/
|
44451
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
44452
|
+
|
44453
|
+
"use strict";
|
44454
|
+
__webpack_require__.r(__webpack_exports__);
|
44455
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
44456
|
+
/* harmony export */ WHITE_SPACES: () => (/* binding */ WHITE_SPACES)
|
44457
|
+
/* harmony export */ });
|
44458
|
+
// LICENSE_CODE ZON
|
44459
|
+
|
44460
|
+
|
44461
|
+
/*jslint react:true*/
|
44462
|
+
var WHITE_SPACES = ['normal', 'nowrap', 'pre', 'pre-wrap', 'pre-line', 'break-spaces'];
|
44463
|
+
|
44464
|
+
/***/ }),
|
44465
|
+
|
44466
|
+
/***/ "./src/typography/get_typography_props.js":
|
44467
|
+
/*!************************************************!*\
|
44468
|
+
!*** ./src/typography/get_typography_props.js ***!
|
44469
|
+
\************************************************/
|
44470
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
44471
|
+
|
44472
|
+
"use strict";
|
44473
|
+
__webpack_require__.r(__webpack_exports__);
|
44474
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
44475
|
+
/* harmony export */ getTypographyProps: () => (/* binding */ getTypographyProps)
|
44476
|
+
/* harmony export */ });
|
44477
|
+
/* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../util */ "./src/util/index.js");
|
44478
|
+
// LICENSE_CODE ZON
|
44479
|
+
|
44480
|
+
|
44481
|
+
/*jslint react:true*/
|
44482
|
+
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); }
|
44483
|
+
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; }
|
44484
|
+
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; }
|
44485
|
+
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; }
|
44486
|
+
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
44487
|
+
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); }
|
44488
|
+
|
44489
|
+
var getTypographyProps = function getTypographyProps(props) {
|
44490
|
+
var as = props.tag,
|
44491
|
+
_props$font_family = props.font_family,
|
44492
|
+
font_family = _props$font_family === void 0 ? 'sans' : _props$font_family,
|
44493
|
+
_props$font_weight = props.font_weight,
|
44494
|
+
font_weight = _props$font_weight === void 0 ? 'regular' : _props$font_weight,
|
44495
|
+
font_size = props.font_size,
|
44496
|
+
_props$line_height = props.line_height,
|
44497
|
+
line_height = _props$line_height === void 0 ? 'none' : _props$line_height,
|
44498
|
+
_props$letter_spacing = props.letter_spacing,
|
44499
|
+
letter_spacing = _props$letter_spacing === void 0 ? 'normal' : _props$letter_spacing,
|
44500
|
+
italic = props.italic,
|
44501
|
+
color = props.color,
|
44502
|
+
no_wrap = props.no_wrap,
|
44503
|
+
underline = props.underline,
|
44504
|
+
whiteSpace = props.whiteSpace;
|
44505
|
+
return _objectSpread({
|
44506
|
+
as: as,
|
44507
|
+
font_family: font_family,
|
44508
|
+
font_weight: font_weight,
|
44509
|
+
font_size: font_size,
|
44510
|
+
line_height: line_height,
|
44511
|
+
letter_spacing: letter_spacing,
|
44512
|
+
italic: italic,
|
44513
|
+
color: color,
|
44514
|
+
no_wrap: no_wrap,
|
44515
|
+
underline: underline,
|
44516
|
+
whiteSpace: whiteSpace
|
44517
|
+
}, (0,_util__WEBPACK_IMPORTED_MODULE_0__.getCommonProps)(props));
|
44518
|
+
};
|
44519
|
+
|
44520
|
+
/***/ }),
|
44521
|
+
|
44473
44522
|
/***/ "./src/typography/header.js":
|
44474
44523
|
/*!**********************************!*\
|
44475
44524
|
!*** ./src/typography/header.js ***!
|
@@ -44486,8 +44535,9 @@ __webpack_require__.r(__webpack_exports__);
|
|
44486
44535
|
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! prop-types */ "prop-types");
|
44487
44536
|
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
|
44488
44537
|
/* harmony import */ var _translation__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../translation */ "./src/translation.js");
|
44489
|
-
/* harmony import */ var
|
44490
|
-
/* harmony import */ var
|
44538
|
+
/* harmony import */ var _constant__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./constant */ "./src/typography/constant.js");
|
44539
|
+
/* harmony import */ var _get_typography_props__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./get_typography_props */ "./src/typography/get_typography_props.js");
|
44540
|
+
/* harmony import */ var _typography__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./typography */ "./src/typography/typography.js");
|
44491
44541
|
// LICENSE_CODE ZON
|
44492
44542
|
|
44493
44543
|
|
@@ -44504,13 +44554,14 @@ function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input ==
|
|
44504
44554
|
|
44505
44555
|
|
44506
44556
|
|
44557
|
+
|
44507
44558
|
var Header = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().forwardRef(function (props, ref) {
|
44508
44559
|
var t = (0,_translation__WEBPACK_IMPORTED_MODULE_2__.useReactTranslate)();
|
44509
|
-
var typographyProps = _objectSpread(_objectSpread({}, (0,
|
44560
|
+
var typographyProps = _objectSpread(_objectSpread({}, (0,_get_typography_props__WEBPACK_IMPORTED_MODULE_4__.getTypographyProps)(props)), {}, {
|
44510
44561
|
font_weight: 'semibold',
|
44511
44562
|
font_size: props.variant == '2xl' ? 'xl' : 'lg'
|
44512
44563
|
});
|
44513
|
-
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(
|
44564
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_typography__WEBPACK_IMPORTED_MODULE_5__["default"], _extends({
|
44514
44565
|
ref: ref
|
44515
44566
|
}, typographyProps), t(props.children));
|
44516
44567
|
});
|
@@ -44520,7 +44571,7 @@ Header.defaultProps = {
|
|
44520
44571
|
};
|
44521
44572
|
Header.propTypes = {
|
44522
44573
|
variant: prop_types__WEBPACK_IMPORTED_MODULE_1___default().oneOf(['xl', '2xl']),
|
44523
|
-
whiteSpace: prop_types__WEBPACK_IMPORTED_MODULE_1___default().oneOf(
|
44574
|
+
whiteSpace: prop_types__WEBPACK_IMPORTED_MODULE_1___default().oneOf(_constant__WEBPACK_IMPORTED_MODULE_3__.WHITE_SPACES)
|
44524
44575
|
};
|
44525
44576
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (Header);
|
44526
44577
|
|
@@ -44542,8 +44593,9 @@ __webpack_require__.r(__webpack_exports__);
|
|
44542
44593
|
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! prop-types */ "prop-types");
|
44543
44594
|
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
|
44544
44595
|
/* harmony import */ var _translation__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../translation */ "./src/translation.js");
|
44545
|
-
/* harmony import */ var
|
44546
|
-
/* harmony import */ var
|
44596
|
+
/* harmony import */ var _constant__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./constant */ "./src/typography/constant.js");
|
44597
|
+
/* harmony import */ var _get_typography_props__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./get_typography_props */ "./src/typography/get_typography_props.js");
|
44598
|
+
/* harmony import */ var _typography__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./typography */ "./src/typography/typography.js");
|
44547
44599
|
// LICENSE_CODE ZON
|
44548
44600
|
|
44549
44601
|
|
@@ -44560,14 +44612,15 @@ function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input ==
|
|
44560
44612
|
|
44561
44613
|
|
44562
44614
|
|
44615
|
+
|
44563
44616
|
var Hyperlink = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().forwardRef(function (props, ref) {
|
44564
44617
|
var t = (0,_translation__WEBPACK_IMPORTED_MODULE_2__.useReactTranslate)();
|
44565
|
-
var typographyProps = _objectSpread(_objectSpread({}, (0,
|
44618
|
+
var typographyProps = _objectSpread(_objectSpread({}, (0,_get_typography_props__WEBPACK_IMPORTED_MODULE_4__.getTypographyProps)(props)), {}, {
|
44566
44619
|
font_size: props.variant == 'lg' ? 'md' : 'xs',
|
44567
44620
|
line_height: 'none',
|
44568
44621
|
underline: true
|
44569
44622
|
});
|
44570
|
-
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(
|
44623
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_typography__WEBPACK_IMPORTED_MODULE_5__["default"], _extends({
|
44571
44624
|
ref: ref
|
44572
44625
|
}, typographyProps), t(props.children));
|
44573
44626
|
});
|
@@ -44577,7 +44630,7 @@ Hyperlink.defaultProps = {
|
|
44577
44630
|
};
|
44578
44631
|
Hyperlink.propTypes = {
|
44579
44632
|
variant: prop_types__WEBPACK_IMPORTED_MODULE_1___default().oneOf(['xs', 'lg']),
|
44580
|
-
whiteSpace: prop_types__WEBPACK_IMPORTED_MODULE_1___default().oneOf(
|
44633
|
+
whiteSpace: prop_types__WEBPACK_IMPORTED_MODULE_1___default().oneOf(_constant__WEBPACK_IMPORTED_MODULE_3__.WHITE_SPACES)
|
44581
44634
|
};
|
44582
44635
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (Hyperlink);
|
44583
44636
|
|
@@ -44632,8 +44685,9 @@ __webpack_require__.r(__webpack_exports__);
|
|
44632
44685
|
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! prop-types */ "prop-types");
|
44633
44686
|
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
|
44634
44687
|
/* harmony import */ var _translation__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../translation */ "./src/translation.js");
|
44635
|
-
/* harmony import */ var
|
44636
|
-
/* harmony import */ var
|
44688
|
+
/* harmony import */ var _constant__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./constant */ "./src/typography/constant.js");
|
44689
|
+
/* harmony import */ var _get_typography_props__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./get_typography_props */ "./src/typography/get_typography_props.js");
|
44690
|
+
/* harmony import */ var _typography__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./typography */ "./src/typography/typography.js");
|
44637
44691
|
// LICENSE_CODE ZON
|
44638
44692
|
|
44639
44693
|
|
@@ -44650,9 +44704,10 @@ function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input ==
|
|
44650
44704
|
|
44651
44705
|
|
44652
44706
|
|
44707
|
+
|
44653
44708
|
var Label = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().forwardRef(function (props, ref) {
|
44654
44709
|
var t = (0,_translation__WEBPACK_IMPORTED_MODULE_2__.useReactTranslate)();
|
44655
|
-
var typographyProps = _objectSpread(_objectSpread({}, (0,
|
44710
|
+
var typographyProps = _objectSpread(_objectSpread({}, (0,_get_typography_props__WEBPACK_IMPORTED_MODULE_4__.getTypographyProps)(props)), {}, {
|
44656
44711
|
font_size: {
|
44657
44712
|
xxs: 'xxs',
|
44658
44713
|
xs: 'xs',
|
@@ -44664,7 +44719,7 @@ var Label = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().forwardRef
|
|
44664
44719
|
sm_medium: 'medium'
|
44665
44720
|
}[props.variant] || 'regular'
|
44666
44721
|
});
|
44667
|
-
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(
|
44722
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_typography__WEBPACK_IMPORTED_MODULE_5__["default"], _extends({
|
44668
44723
|
ref: ref
|
44669
44724
|
}, typographyProps), t(props.children));
|
44670
44725
|
});
|
@@ -44673,7 +44728,8 @@ Label.defaultProps = {
|
|
44673
44728
|
variant: 'base'
|
44674
44729
|
};
|
44675
44730
|
Label.propTypes = {
|
44676
|
-
variant: prop_types__WEBPACK_IMPORTED_MODULE_1___default().oneOf(['xxs', 'xs', 'sm', 'sm_medium', 'base', 'lg'])
|
44731
|
+
variant: prop_types__WEBPACK_IMPORTED_MODULE_1___default().oneOf(['xxs', 'xs', 'sm', 'sm_medium', 'base', 'lg']),
|
44732
|
+
whiteSpace: prop_types__WEBPACK_IMPORTED_MODULE_1___default().oneOf(_constant__WEBPACK_IMPORTED_MODULE_3__.WHITE_SPACES)
|
44677
44733
|
};
|
44678
44734
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (Label);
|
44679
44735
|
|
@@ -44695,8 +44751,9 @@ __webpack_require__.r(__webpack_exports__);
|
|
44695
44751
|
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! prop-types */ "prop-types");
|
44696
44752
|
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
|
44697
44753
|
/* harmony import */ var _translation__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../translation */ "./src/translation.js");
|
44698
|
-
/* harmony import */ var
|
44699
|
-
/* harmony import */ var
|
44754
|
+
/* harmony import */ var _constant__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./constant */ "./src/typography/constant.js");
|
44755
|
+
/* harmony import */ var _get_typography_props__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./get_typography_props */ "./src/typography/get_typography_props.js");
|
44756
|
+
/* harmony import */ var _typography__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./typography */ "./src/typography/typography.js");
|
44700
44757
|
// LICENSE_CODE ZON
|
44701
44758
|
|
44702
44759
|
|
@@ -44713,9 +44770,10 @@ function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input ==
|
|
44713
44770
|
|
44714
44771
|
|
44715
44772
|
|
44773
|
+
|
44716
44774
|
var Paragraph = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().forwardRef(function (props, ref) {
|
44717
44775
|
var t = (0,_translation__WEBPACK_IMPORTED_MODULE_2__.useReactTranslate)();
|
44718
|
-
var typographyProps = _objectSpread(_objectSpread({}, (0,
|
44776
|
+
var typographyProps = _objectSpread(_objectSpread({}, (0,_get_typography_props__WEBPACK_IMPORTED_MODULE_4__.getTypographyProps)(props)), {}, {
|
44719
44777
|
font_size: {
|
44720
44778
|
xxs: 'xxs',
|
44721
44779
|
xs: 'xs',
|
@@ -44726,7 +44784,7 @@ var Paragraph = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().forwar
|
|
44726
44784
|
'lg_loose': 'loose'
|
44727
44785
|
}[props.variant] || 'snug'
|
44728
44786
|
});
|
44729
|
-
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(
|
44787
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_typography__WEBPACK_IMPORTED_MODULE_5__["default"], _extends({
|
44730
44788
|
ref: ref
|
44731
44789
|
}, typographyProps), t(props.children));
|
44732
44790
|
});
|
@@ -44736,7 +44794,7 @@ Paragraph.defaultProps = {
|
|
44736
44794
|
};
|
44737
44795
|
Paragraph.propTypes = {
|
44738
44796
|
variant: prop_types__WEBPACK_IMPORTED_MODULE_1___default().oneOf(['xxs', 'xs', 'sm', 'lg_snug', 'lg_loose']),
|
44739
|
-
whiteSpace: prop_types__WEBPACK_IMPORTED_MODULE_1___default().oneOf(
|
44797
|
+
whiteSpace: prop_types__WEBPACK_IMPORTED_MODULE_1___default().oneOf(_constant__WEBPACK_IMPORTED_MODULE_3__.WHITE_SPACES)
|
44740
44798
|
};
|
44741
44799
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (Paragraph);
|
44742
44800
|
|
@@ -44757,8 +44815,9 @@ __webpack_require__.r(__webpack_exports__);
|
|
44757
44815
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
44758
44816
|
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! prop-types */ "prop-types");
|
44759
44817
|
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
|
44760
|
-
/* harmony import */ var
|
44761
|
-
/* harmony import */ var
|
44818
|
+
/* harmony import */ var _constant__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./constant */ "./src/typography/constant.js");
|
44819
|
+
/* harmony import */ var _get_typography_props__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./get_typography_props */ "./src/typography/get_typography_props.js");
|
44820
|
+
/* harmony import */ var _typography__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./typography */ "./src/typography/typography.js");
|
44762
44821
|
// LICENSE_CODE ZON
|
44763
44822
|
|
44764
44823
|
|
@@ -44774,9 +44833,10 @@ function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input ==
|
|
44774
44833
|
|
44775
44834
|
|
44776
44835
|
|
44836
|
+
|
44777
44837
|
var Style = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().forwardRef(function (props, ref) {
|
44778
44838
|
var children = props.children;
|
44779
|
-
var typographyProps = _objectSpread(_objectSpread({}, (0,
|
44839
|
+
var typographyProps = _objectSpread(_objectSpread({}, (0,_get_typography_props__WEBPACK_IMPORTED_MODULE_3__.getTypographyProps)(props)), {}, {
|
44780
44840
|
font_size: {
|
44781
44841
|
italic_sm: 'sm',
|
44782
44842
|
italic_xs: 'xs',
|
@@ -44792,7 +44852,7 @@ var Style = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().forwardRef
|
|
44792
44852
|
italic: ['italic_lg', 'italic_sm', 'italic_xs'].includes(props.variant),
|
44793
44853
|
uppercase: ['capitals', 'capitals_xs', 'capitals_xxs'].includes(props.variant)
|
44794
44854
|
});
|
44795
|
-
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(
|
44855
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_typography__WEBPACK_IMPORTED_MODULE_4__["default"], _extends({
|
44796
44856
|
ref: ref
|
44797
44857
|
}, typographyProps), children);
|
44798
44858
|
});
|
@@ -44802,7 +44862,7 @@ Style.defaultProps = {
|
|
44802
44862
|
};
|
44803
44863
|
Style.propTypes = {
|
44804
44864
|
variant: prop_types__WEBPACK_IMPORTED_MODULE_1___default().oneOf(['italic_lg', 'italic_sm', 'italic_xs', 'code_sm', 'code_xxs', 'capitals_xs', 'capitals_xxs']),
|
44805
|
-
whiteSpace: prop_types__WEBPACK_IMPORTED_MODULE_1___default().oneOf(
|
44865
|
+
whiteSpace: prop_types__WEBPACK_IMPORTED_MODULE_1___default().oneOf(_constant__WEBPACK_IMPORTED_MODULE_2__.WHITE_SPACES)
|
44806
44866
|
};
|
44807
44867
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (Style);
|
44808
44868
|
|
@@ -44824,6 +44884,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
44824
44884
|
/* harmony import */ var styled_components__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! styled-components */ "styled-components");
|
44825
44885
|
/* harmony import */ var styled_components__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(styled_components__WEBPACK_IMPORTED_MODULE_1__);
|
44826
44886
|
/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../utils */ "./src/utils.js");
|
44887
|
+
/* harmony import */ var _constant__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./constant */ "./src/typography/constant.js");
|
44827
44888
|
// LICENSE_CODE ZON
|
44828
44889
|
|
44829
44890
|
|
@@ -44835,6 +44896,7 @@ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) r
|
|
44835
44896
|
|
44836
44897
|
|
44837
44898
|
|
44899
|
+
|
44838
44900
|
var Typography = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().forwardRef(function (props, ref) {
|
44839
44901
|
var children = props.children,
|
44840
44902
|
font_family = props.font_family,
|
@@ -44877,7 +44939,7 @@ var StyledTypography = styled_components__WEBPACK_IMPORTED_MODULE_1___default().
|
|
44877
44939
|
}, function (props) {
|
44878
44940
|
return props.$uppercase ? 'letter-spacing: 0.02em;' : null;
|
44879
44941
|
}, function (props) {
|
44880
|
-
if (props.$whiteSpace &&
|
44942
|
+
if (props.$whiteSpace && _constant__WEBPACK_IMPORTED_MODULE_3__.WHITE_SPACES.includes(props.$whiteSpace)) return "white-space: ".concat(props.$whiteSpace);
|
44881
44943
|
return props.$noWrap ? 'white-space: nowrap;' : null;
|
44882
44944
|
}, function (props) {
|
44883
44945
|
return props.underline ? 'text-decoration: underline;' : null;
|
@@ -44886,6 +44948,45 @@ var StyledTypography = styled_components__WEBPACK_IMPORTED_MODULE_1___default().
|
|
44886
44948
|
|
44887
44949
|
/***/ }),
|
44888
44950
|
|
44951
|
+
/***/ "./src/util/class_names.js":
|
44952
|
+
/*!*********************************!*\
|
44953
|
+
!*** ./src/util/class_names.js ***!
|
44954
|
+
\*********************************/
|
44955
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
44956
|
+
|
44957
|
+
"use strict";
|
44958
|
+
__webpack_require__.r(__webpack_exports__);
|
44959
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
44960
|
+
/* harmony export */ classNames: () => (/* binding */ classNames)
|
44961
|
+
/* harmony export */ });
|
44962
|
+
// LICENSE_CODE ZON
|
44963
|
+
|
44964
|
+
|
44965
|
+
/*jslint react:true*/
|
44966
|
+
var classNames = function classNames(prefix, state) {
|
44967
|
+
for (var _len = arguments.length, classNameList = new Array(_len > 2 ? _len - 2 : 0), _key = 2; _key < _len; _key++) {
|
44968
|
+
classNameList[_key - 2] = arguments[_key];
|
44969
|
+
}
|
44970
|
+
var arr = [].concat(classNameList);
|
44971
|
+
if (state && prefix) {
|
44972
|
+
for (var key in state) {
|
44973
|
+
if (state.hasOwnProperty(key) && state[key]) arr.push("".concat(applyPrefixToName(prefix, key)));
|
44974
|
+
}
|
44975
|
+
}
|
44976
|
+
return arr.filter(function (i) {
|
44977
|
+
return i;
|
44978
|
+
}).map(function (i) {
|
44979
|
+
return String(i).trim();
|
44980
|
+
}).join(' ');
|
44981
|
+
};
|
44982
|
+
var applyPrefixToName = function applyPrefixToName(prefix, name) {
|
44983
|
+
if (!name) return prefix;
|
44984
|
+
if (name[0] == '-') return prefix + name;
|
44985
|
+
return prefix + '__' + name;
|
44986
|
+
};
|
44987
|
+
|
44988
|
+
/***/ }),
|
44989
|
+
|
44889
44990
|
/***/ "./src/util/flex_renderer.js":
|
44890
44991
|
/*!***********************************!*\
|
44891
44992
|
!*** ./src/util/flex_renderer.js ***!
|
@@ -44927,6 +45028,45 @@ var isExoticComponent = function isExoticComponent(component) {
|
|
44927
45028
|
|
44928
45029
|
/***/ }),
|
44929
45030
|
|
45031
|
+
/***/ "./src/util/get_props.js":
|
45032
|
+
/*!*******************************!*\
|
45033
|
+
!*** ./src/util/get_props.js ***!
|
45034
|
+
\*******************************/
|
45035
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
45036
|
+
|
45037
|
+
"use strict";
|
45038
|
+
__webpack_require__.r(__webpack_exports__);
|
45039
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
45040
|
+
/* harmony export */ getAriaProps: () => (/* binding */ getAriaProps),
|
45041
|
+
/* harmony export */ getCommonProps: () => (/* binding */ getCommonProps),
|
45042
|
+
/* harmony export */ getDataProps: () => (/* binding */ getDataProps)
|
45043
|
+
/* harmony export */ });
|
45044
|
+
/* harmony import */ var lodash_pickBy__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/pickBy */ "./node_modules/lodash/pickBy.js");
|
45045
|
+
/* harmony import */ var lodash_pickBy__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_pickBy__WEBPACK_IMPORTED_MODULE_0__);
|
45046
|
+
/* harmony import */ var lodash_pick__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! lodash/pick */ "./node_modules/lodash/pick.js");
|
45047
|
+
/* harmony import */ var lodash_pick__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash_pick__WEBPACK_IMPORTED_MODULE_1__);
|
45048
|
+
// LICENSE_CODE ZON
|
45049
|
+
|
45050
|
+
|
45051
|
+
/*jslint react:true*/
|
45052
|
+
|
45053
|
+
|
45054
|
+
var getAriaProps = function getAriaProps(props) {
|
45055
|
+
return lodash_pickBy__WEBPACK_IMPORTED_MODULE_0___default()(props, function (_, k) {
|
45056
|
+
return k.startsWith('aria-');
|
45057
|
+
});
|
45058
|
+
};
|
45059
|
+
var getDataProps = function getDataProps(props) {
|
45060
|
+
return lodash_pickBy__WEBPACK_IMPORTED_MODULE_0___default()(props, function (_, k) {
|
45061
|
+
return k.startsWith('data-');
|
45062
|
+
});
|
45063
|
+
};
|
45064
|
+
var getCommonProps = function getCommonProps(props) {
|
45065
|
+
return Object.assign({}, lodash_pick__WEBPACK_IMPORTED_MODULE_1___default()(props, 'id', 'className', 'style', 'onClick', 'role', 'tabIndex'), getAriaProps(props), getDataProps(props));
|
45066
|
+
};
|
45067
|
+
|
45068
|
+
/***/ }),
|
45069
|
+
|
44930
45070
|
/***/ "./src/util/getters.js":
|
44931
45071
|
/*!*****************************!*\
|
44932
45072
|
!*** ./src/util/getters.js ***!
|
@@ -45019,6 +45159,49 @@ var getStyleProps = function getStyleProps(props, name, classNamesState) {
|
|
45019
45159
|
};
|
45020
45160
|
};
|
45021
45161
|
|
45162
|
+
/***/ }),
|
45163
|
+
|
45164
|
+
/***/ "./src/util/index.js":
|
45165
|
+
/*!***************************!*\
|
45166
|
+
!*** ./src/util/index.js ***!
|
45167
|
+
\***************************/
|
45168
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
45169
|
+
|
45170
|
+
"use strict";
|
45171
|
+
__webpack_require__.r(__webpack_exports__);
|
45172
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
45173
|
+
/* harmony export */ OFFSET: () => (/* reexport safe */ _getters__WEBPACK_IMPORTED_MODULE_3__.OFFSET),
|
45174
|
+
/* harmony export */ VirtualizedListFactory: () => (/* reexport safe */ _virtualized_list__WEBPACK_IMPORTED_MODULE_4__.VirtualizedListFactory),
|
45175
|
+
/* harmony export */ classNames: () => (/* reexport safe */ _class_names__WEBPACK_IMPORTED_MODULE_0__.classNames),
|
45176
|
+
/* harmony export */ flexRender: () => (/* reexport safe */ _flex_renderer__WEBPACK_IMPORTED_MODULE_1__.flexRender),
|
45177
|
+
/* harmony export */ getAriaProps: () => (/* reexport safe */ _get_props__WEBPACK_IMPORTED_MODULE_2__.getAriaProps),
|
45178
|
+
/* harmony export */ getCommonProps: () => (/* reexport safe */ _get_props__WEBPACK_IMPORTED_MODULE_2__.getCommonProps),
|
45179
|
+
/* harmony export */ getDataProps: () => (/* reexport safe */ _get_props__WEBPACK_IMPORTED_MODULE_2__.getDataProps),
|
45180
|
+
/* harmony export */ getGroupRowHeight: () => (/* reexport safe */ _getters__WEBPACK_IMPORTED_MODULE_3__.getGroupRowHeight),
|
45181
|
+
/* harmony export */ getListHeight: () => (/* reexport safe */ _getters__WEBPACK_IMPORTED_MODULE_3__.getListHeight),
|
45182
|
+
/* harmony export */ getNextRowIndex: () => (/* reexport safe */ _getters__WEBPACK_IMPORTED_MODULE_3__.getNextRowIndex),
|
45183
|
+
/* harmony export */ getScrollIndex: () => (/* reexport safe */ _getters__WEBPACK_IMPORTED_MODULE_3__.getScrollIndex),
|
45184
|
+
/* harmony export */ getStyleProps: () => (/* reexport safe */ _getters__WEBPACK_IMPORTED_MODULE_3__.getStyleProps),
|
45185
|
+
/* harmony export */ isGroupHeader: () => (/* reexport safe */ _getters__WEBPACK_IMPORTED_MODULE_3__.isGroupHeader),
|
45186
|
+
/* harmony export */ withUserStyles: () => (/* reexport safe */ _with_user_styles__WEBPACK_IMPORTED_MODULE_5__.withUserStyles)
|
45187
|
+
/* harmony export */ });
|
45188
|
+
/* harmony import */ var _class_names__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./class_names */ "./src/util/class_names.js");
|
45189
|
+
/* harmony import */ var _flex_renderer__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./flex_renderer */ "./src/util/flex_renderer.js");
|
45190
|
+
/* harmony import */ var _get_props__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./get_props */ "./src/util/get_props.js");
|
45191
|
+
/* harmony import */ var _getters__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./getters */ "./src/util/getters.js");
|
45192
|
+
/* harmony import */ var _virtualized_list__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./virtualized_list */ "./src/util/virtualized_list.js");
|
45193
|
+
/* harmony import */ var _with_user_styles__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./with_user_styles */ "./src/util/with_user_styles.js");
|
45194
|
+
// LICENSE_CODE ZON
|
45195
|
+
|
45196
|
+
|
45197
|
+
/*jslint react:true*/
|
45198
|
+
|
45199
|
+
|
45200
|
+
|
45201
|
+
|
45202
|
+
|
45203
|
+
|
45204
|
+
|
45022
45205
|
/***/ }),
|
45023
45206
|
|
45024
45207
|
/***/ "./src/util/virtualized_list.js":
|
@@ -45242,18 +45425,19 @@ var VirtualizedListRowRenderer = function VirtualizedListRowRenderer(_ref7) {
|
|
45242
45425
|
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(Option, {
|
45243
45426
|
key: key,
|
45244
45427
|
style: style,
|
45245
|
-
data: thisProps.data,
|
45246
45428
|
isVisible: isVisible,
|
45247
45429
|
isScrolling: isScrolling,
|
45248
45430
|
optionHeight: optionHeight,
|
45431
|
+
formatOptionLabel: formatOptionLabel,
|
45432
|
+
data: thisProps.data,
|
45249
45433
|
isDisabled: thisProps.isDisabled,
|
45250
45434
|
isFocused: thisProps.isFocused,
|
45251
45435
|
isSelected: thisProps.isSelected,
|
45252
45436
|
className: thisProps.className,
|
45253
45437
|
cx: thisProps.cx,
|
45438
|
+
getStyles: thisProps.getStyles,
|
45254
45439
|
innerRef: thisProps.innerRef,
|
45255
45440
|
innerProps: thisProps.innerProps,
|
45256
|
-
formatOptionLabel: formatOptionLabel,
|
45257
45441
|
tag: "div"
|
45258
45442
|
}, thisProps.children));
|
45259
45443
|
};
|
@@ -45308,33 +45492,26 @@ var withUserStyles = function withUserStyles(styles, custom) {
|
|
45308
45492
|
"use strict";
|
45309
45493
|
__webpack_require__.r(__webpack_exports__);
|
45310
45494
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
45311
|
-
/* harmony export */ classNames: () => (/* binding */ classNames),
|
45312
45495
|
/* harmony export */ colorNames: () => (/* binding */ colorNames),
|
45313
45496
|
/* harmony export */ fromTheme: () => (/* binding */ fromTheme),
|
45314
45497
|
/* harmony export */ getButtonColors: () => (/* binding */ getButtonColors),
|
45315
|
-
/* harmony export */ getCommonProps: () => (/* binding */ getCommonProps),
|
45316
45498
|
/* harmony export */ getIconProps: () => (/* binding */ getIconProps),
|
45317
45499
|
/* harmony export */ getLinkProps: () => (/* binding */ getLinkProps),
|
45318
|
-
/* harmony export */ getTypographyProps: () => (/* binding */ getTypographyProps),
|
45319
45500
|
/* harmony export */ iconNames: () => (/* binding */ iconNames),
|
45320
45501
|
/* harmony export */ toButtonSize: () => (/* binding */ toButtonSize),
|
45321
45502
|
/* harmony export */ toIconSize: () => (/* binding */ toIconSize),
|
45322
45503
|
/* harmony export */ toPixel: () => (/* binding */ toPixel),
|
45323
45504
|
/* harmony export */ toSize: () => (/* binding */ toSize),
|
45324
|
-
/* harmony export */ tooltipPlacements: () => (/* binding */ tooltipPlacements)
|
45325
|
-
/* harmony export */ whiteSpaces: () => (/* binding */ whiteSpaces)
|
45505
|
+
/* harmony export */ tooltipPlacements: () => (/* binding */ tooltipPlacements)
|
45326
45506
|
/* harmony export */ });
|
45327
|
-
/* harmony import */ var
|
45328
|
-
/* harmony import */ var
|
45329
|
-
/* harmony import */ var
|
45330
|
-
/* harmony import */ var
|
45331
|
-
/* harmony import */ var styled_components__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(styled_components__WEBPACK_IMPORTED_MODULE_2__);
|
45332
|
-
/* harmony import */ var _theme__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./theme */ "./src/theme.js");
|
45507
|
+
/* harmony import */ var _icons__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @icons */ "./assets/icons/index.js");
|
45508
|
+
/* harmony import */ var styled_components__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! styled-components */ "styled-components");
|
45509
|
+
/* harmony import */ var styled_components__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(styled_components__WEBPACK_IMPORTED_MODULE_1__);
|
45510
|
+
/* harmony import */ var _theme__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./theme */ "./src/theme.js");
|
45333
45511
|
// LICENSE_CODE ZON
|
45334
45512
|
|
45335
45513
|
|
45336
45514
|
/*jslint react:true*/
|
45337
|
-
|
45338
45515
|
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); }
|
45339
45516
|
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; }
|
45340
45517
|
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; }
|
@@ -45344,53 +45521,13 @@ function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input ==
|
|
45344
45521
|
|
45345
45522
|
|
45346
45523
|
|
45347
|
-
var colorNames = Object.keys(
|
45348
|
-
var iconNames = Object.keys(
|
45349
|
-
var whiteSpaces = ['normal', 'nowrap', 'pre', 'pre-wrap', 'pre-line', 'break-spaces'];
|
45524
|
+
var colorNames = Object.keys(_theme__WEBPACK_IMPORTED_MODULE_2__["default"].color);
|
45525
|
+
var iconNames = Object.keys(_icons__WEBPACK_IMPORTED_MODULE_0__["default"]);
|
45350
45526
|
var toPixel = function toPixel(value) {
|
45351
45527
|
return "".concat(value, "px");
|
45352
45528
|
};
|
45353
45529
|
var toSize = function toSize(value) {
|
45354
|
-
return (0,
|
45355
|
-
};
|
45356
|
-
var getCommonProps = function getCommonProps(props) {
|
45357
|
-
return lodash_pickBy__WEBPACK_IMPORTED_MODULE_0___default()(props, function (v, k) {
|
45358
|
-
var inc = ['id', 'className', 'style', 'onClick', 'role', 'tabIndex'];
|
45359
|
-
var starts = ['onMouse', 'onPointer', 'aria-', 'data-'];
|
45360
|
-
return inc.includes(k) || starts.some(function (s) {
|
45361
|
-
return k.indexOf(s) == 0;
|
45362
|
-
});
|
45363
|
-
});
|
45364
|
-
};
|
45365
|
-
var getTypographyProps = function getTypographyProps(props) {
|
45366
|
-
var as = props.tag,
|
45367
|
-
_props$font_family = props.font_family,
|
45368
|
-
font_family = _props$font_family === void 0 ? 'sans' : _props$font_family,
|
45369
|
-
_props$font_weight = props.font_weight,
|
45370
|
-
font_weight = _props$font_weight === void 0 ? 'regular' : _props$font_weight,
|
45371
|
-
font_size = props.font_size,
|
45372
|
-
_props$line_height = props.line_height,
|
45373
|
-
line_height = _props$line_height === void 0 ? 'none' : _props$line_height,
|
45374
|
-
_props$letter_spacing = props.letter_spacing,
|
45375
|
-
letter_spacing = _props$letter_spacing === void 0 ? 'normal' : _props$letter_spacing,
|
45376
|
-
italic = props.italic,
|
45377
|
-
color = props.color,
|
45378
|
-
no_wrap = props.no_wrap,
|
45379
|
-
underline = props.underline,
|
45380
|
-
whiteSpace = props.whiteSpace;
|
45381
|
-
return _objectSpread({
|
45382
|
-
as: as,
|
45383
|
-
font_family: font_family,
|
45384
|
-
font_weight: font_weight,
|
45385
|
-
font_size: font_size,
|
45386
|
-
line_height: line_height,
|
45387
|
-
letter_spacing: letter_spacing,
|
45388
|
-
italic: italic,
|
45389
|
-
color: color,
|
45390
|
-
no_wrap: no_wrap,
|
45391
|
-
underline: underline,
|
45392
|
-
whiteSpace: whiteSpace
|
45393
|
-
}, getCommonProps(props));
|
45530
|
+
return (0,styled_components__WEBPACK_IMPORTED_MODULE_1__.css)(["min-width:", ";width:", ";min-height:", ";height:", ";"], toPixel(value), toPixel(value), toPixel(value), toPixel(value));
|
45394
45531
|
};
|
45395
45532
|
function fromTheme(propName, defaultValue) {
|
45396
45533
|
return function (props) {
|
@@ -45399,10 +45536,10 @@ function fromTheme(propName, defaultValue) {
|
|
45399
45536
|
if (value != null) {
|
45400
45537
|
if (propName.indexOf('padding') == 0 || propName.indexOf('margin') == 0 || ['gap', 'rowGap', 'columnGap'].includes(propName)) {
|
45401
45538
|
var _theme$spacing$value;
|
45402
|
-
return (_theme$spacing$value =
|
45539
|
+
return (_theme$spacing$value = _theme__WEBPACK_IMPORTED_MODULE_2__["default"].spacing[value]) !== null && _theme$spacing$value !== void 0 ? _theme$spacing$value : value;
|
45403
45540
|
}
|
45404
45541
|
if (['font_family', 'font_weight', 'font_size', 'line_height', 'letter_spacing', 'color', 'box_shadow'].includes(propName)) {
|
45405
|
-
return
|
45542
|
+
return _theme__WEBPACK_IMPORTED_MODULE_2__["default"][propName][value];
|
45406
45543
|
}
|
45407
45544
|
}
|
45408
45545
|
return value;
|
@@ -45452,84 +45589,84 @@ var getButtonColors = function getButtonColors(props) {
|
|
45452
45589
|
disabled = props.disabled;
|
45453
45590
|
if (disabled) {
|
45454
45591
|
return {
|
45455
|
-
color:
|
45456
|
-
backColor:
|
45457
|
-
border: "1px solid ".concat(
|
45592
|
+
color: _theme__WEBPACK_IMPORTED_MODULE_2__["default"].color.gray_9,
|
45593
|
+
backColor: _theme__WEBPACK_IMPORTED_MODULE_2__["default"].color.gray_2,
|
45594
|
+
border: "1px solid ".concat(_theme__WEBPACK_IMPORTED_MODULE_2__["default"].color.gray_6)
|
45458
45595
|
};
|
45459
45596
|
}
|
45460
45597
|
var styles = {
|
45461
45598
|
primary: {
|
45462
|
-
color:
|
45463
|
-
backColor:
|
45464
|
-
separator: "1px solid ".concat(
|
45599
|
+
color: _theme__WEBPACK_IMPORTED_MODULE_2__["default"].color.white,
|
45600
|
+
backColor: _theme__WEBPACK_IMPORTED_MODULE_2__["default"].color.blue_11,
|
45601
|
+
separator: "1px solid ".concat(_theme__WEBPACK_IMPORTED_MODULE_2__["default"].color.white),
|
45465
45602
|
hover: {
|
45466
|
-
backColor:
|
45603
|
+
backColor: _theme__WEBPACK_IMPORTED_MODULE_2__["default"].color.blue_10
|
45467
45604
|
},
|
45468
45605
|
active: {
|
45469
|
-
backColor:
|
45606
|
+
backColor: _theme__WEBPACK_IMPORTED_MODULE_2__["default"].color.blue_11,
|
45470
45607
|
boxShadow: '0 0 0 2px rgba(0, 106, 220, 0.4)'
|
45471
45608
|
}
|
45472
45609
|
},
|
45473
45610
|
secondary: {
|
45474
|
-
color:
|
45475
|
-
backColor:
|
45476
|
-
border: "1px solid ".concat(
|
45611
|
+
color: _theme__WEBPACK_IMPORTED_MODULE_2__["default"].color.blue_11,
|
45612
|
+
backColor: _theme__WEBPACK_IMPORTED_MODULE_2__["default"].color.white,
|
45613
|
+
border: "1px solid ".concat(_theme__WEBPACK_IMPORTED_MODULE_2__["default"].color.blue_11),
|
45477
45614
|
hover: {
|
45478
|
-
backColor:
|
45615
|
+
backColor: _theme__WEBPACK_IMPORTED_MODULE_2__["default"].color.blue_2
|
45479
45616
|
},
|
45480
45617
|
active: {
|
45481
|
-
backColor:
|
45618
|
+
backColor: _theme__WEBPACK_IMPORTED_MODULE_2__["default"].color.white,
|
45482
45619
|
boxShadow: '0 0 0 2px rgba(0, 106, 220, 0.4)'
|
45483
45620
|
}
|
45484
45621
|
},
|
45485
45622
|
negative: {
|
45486
|
-
color:
|
45487
|
-
backColor:
|
45488
|
-
separator: "1px solid ".concat(
|
45623
|
+
color: _theme__WEBPACK_IMPORTED_MODULE_2__["default"].color.white,
|
45624
|
+
backColor: _theme__WEBPACK_IMPORTED_MODULE_2__["default"].color.red_9,
|
45625
|
+
separator: "1px solid ".concat(_theme__WEBPACK_IMPORTED_MODULE_2__["default"].color.white),
|
45489
45626
|
hover: {
|
45490
|
-
backColor:
|
45627
|
+
backColor: _theme__WEBPACK_IMPORTED_MODULE_2__["default"].color.red_10
|
45491
45628
|
},
|
45492
45629
|
active: {
|
45493
|
-
backColor:
|
45630
|
+
backColor: _theme__WEBPACK_IMPORTED_MODULE_2__["default"].color.red_9,
|
45494
45631
|
boxShadow: '0 0 0 2px rgba(205, 43, 49, 0.4)'
|
45495
45632
|
}
|
45496
45633
|
},
|
45497
45634
|
negative_secondary: {
|
45498
|
-
color:
|
45499
|
-
backColor:
|
45500
|
-
border: "1px solid ".concat(
|
45635
|
+
color: _theme__WEBPACK_IMPORTED_MODULE_2__["default"].color.red_9,
|
45636
|
+
backColor: _theme__WEBPACK_IMPORTED_MODULE_2__["default"].color.white,
|
45637
|
+
border: "1px solid ".concat(_theme__WEBPACK_IMPORTED_MODULE_2__["default"].color.red_9),
|
45501
45638
|
hover: {
|
45502
|
-
backColor:
|
45639
|
+
backColor: _theme__WEBPACK_IMPORTED_MODULE_2__["default"].color.red_2
|
45503
45640
|
},
|
45504
45641
|
active: {
|
45505
|
-
backColor:
|
45642
|
+
backColor: _theme__WEBPACK_IMPORTED_MODULE_2__["default"].color.white,
|
45506
45643
|
boxShadow: '0 0 0 2px rgba(205, 43, 49, 0.4)'
|
45507
45644
|
}
|
45508
45645
|
},
|
45509
45646
|
positive: {
|
45510
|
-
color:
|
45511
|
-
backColor:
|
45512
|
-
border: "1px solid ".concat(
|
45647
|
+
color: _theme__WEBPACK_IMPORTED_MODULE_2__["default"].color.green_11,
|
45648
|
+
backColor: _theme__WEBPACK_IMPORTED_MODULE_2__["default"].color.white,
|
45649
|
+
border: "1px solid ".concat(_theme__WEBPACK_IMPORTED_MODULE_2__["default"].color.green_11),
|
45513
45650
|
hover: {
|
45514
|
-
backColor:
|
45651
|
+
backColor: _theme__WEBPACK_IMPORTED_MODULE_2__["default"].color.green_2
|
45515
45652
|
},
|
45516
45653
|
active: {
|
45517
|
-
backColor:
|
45654
|
+
backColor: _theme__WEBPACK_IMPORTED_MODULE_2__["default"].color.white,
|
45518
45655
|
boxShadow: '0 0 0 2px rgba(6, 122, 111, 0.4)'
|
45519
45656
|
}
|
45520
45657
|
},
|
45521
45658
|
white: {
|
45522
|
-
color:
|
45523
|
-
iconColor:
|
45524
|
-
backColor:
|
45525
|
-
border: "1px solid ".concat(
|
45659
|
+
color: _theme__WEBPACK_IMPORTED_MODULE_2__["default"].color.gray_11_50,
|
45660
|
+
iconColor: _theme__WEBPACK_IMPORTED_MODULE_2__["default"].color.gray_10,
|
45661
|
+
backColor: _theme__WEBPACK_IMPORTED_MODULE_2__["default"].color.white,
|
45662
|
+
border: "1px solid ".concat(_theme__WEBPACK_IMPORTED_MODULE_2__["default"].color.gray_8),
|
45526
45663
|
hover: {
|
45527
|
-
backColor:
|
45664
|
+
backColor: _theme__WEBPACK_IMPORTED_MODULE_2__["default"].color.gray_2
|
45528
45665
|
},
|
45529
45666
|
active: {
|
45530
|
-
backColor:
|
45531
|
-
border: "1px solid ".concat(
|
45532
|
-
iconColor:
|
45667
|
+
backColor: _theme__WEBPACK_IMPORTED_MODULE_2__["default"].color.gray_3,
|
45668
|
+
border: "1px solid ".concat(_theme__WEBPACK_IMPORTED_MODULE_2__["default"].color.gray_9),
|
45669
|
+
iconColor: _theme__WEBPACK_IMPORTED_MODULE_2__["default"].color.gray_11_50
|
45533
45670
|
}
|
45534
45671
|
}
|
45535
45672
|
};
|
@@ -45548,7 +45685,7 @@ var toButtonSize = function toButtonSize(size) {
|
|
45548
45685
|
if (size == 'lg') w = 48;
|
45549
45686
|
if (size == 'sm') w = 36;
|
45550
45687
|
if (size == 'xs') w = 28;
|
45551
|
-
return (0,
|
45688
|
+
return (0,styled_components__WEBPACK_IMPORTED_MODULE_1__.css)(["height:", ";"], toPixel(w));
|
45552
45689
|
};
|
45553
45690
|
var tooltipPlacements = function () {
|
45554
45691
|
var positions = ['auto', 'top', 'right', 'bottom', 'left'];
|
@@ -45559,27 +45696,6 @@ var tooltipPlacements = function () {
|
|
45559
45696
|
});
|
45560
45697
|
});
|
45561
45698
|
}();
|
45562
|
-
var applyPrefixToName = function applyPrefixToName(prefix, name) {
|
45563
|
-
if (!name) return prefix;
|
45564
|
-
if (name[0] == '-') return prefix + name;
|
45565
|
-
return prefix + '__' + name;
|
45566
|
-
};
|
45567
|
-
var classNames = function classNames(prefix, state) {
|
45568
|
-
for (var _len = arguments.length, classNameList = new Array(_len > 2 ? _len - 2 : 0), _key = 2; _key < _len; _key++) {
|
45569
|
-
classNameList[_key - 2] = arguments[_key];
|
45570
|
-
}
|
45571
|
-
var arr = [].concat(classNameList);
|
45572
|
-
if (state && prefix) {
|
45573
|
-
for (var key in state) {
|
45574
|
-
if (state.hasOwnProperty(key) && state[key]) arr.push("".concat(applyPrefixToName(prefix, key)));
|
45575
|
-
}
|
45576
|
-
}
|
45577
|
-
return arr.filter(function (i) {
|
45578
|
-
return i;
|
45579
|
-
}).map(function (i) {
|
45580
|
-
return String(i).trim();
|
45581
|
-
}).join(' ');
|
45582
|
-
};
|
45583
45699
|
|
45584
45700
|
/***/ }),
|
45585
45701
|
|