@dfds-ui/experiences 2.2.0-alpha.b8d61c36 → 2.2.0-alpha.c13c278e
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cjs/dynamic-table/Body/TableBody.js +14 -14
- package/cjs/dynamic-table/Body/TableBody.types.d.ts +1 -1
- package/cjs/dynamic-table/Body/TableCell.js +6 -6
- package/cjs/dynamic-table/Body/TableCell.styles.d.ts +1 -1
- package/cjs/dynamic-table/Body/TableCell.styles.js +3 -5
- package/cjs/dynamic-table/Body/TableCell.types.d.ts +1 -1
- package/cjs/dynamic-table/Body/TableRow.js +35 -33
- package/cjs/dynamic-table/Body/TableRow.styles.d.ts +1 -1
- package/cjs/dynamic-table/Body/TableRow.styles.js +1 -2
- package/cjs/dynamic-table/Body/TableRow.types.d.ts +2 -2
- package/cjs/dynamic-table/Body/TableRowGroup.js +29 -29
- package/cjs/dynamic-table/Body/TableRowGroup.types.d.ts +2 -2
- package/cjs/dynamic-table/DynamicTable.js +35 -34
- package/cjs/dynamic-table/DynamicTable.styles.d.ts +1 -1
- package/cjs/dynamic-table/DynamicTable.styles.js +1 -2
- package/cjs/dynamic-table/DynamicTable.types.d.ts +4 -4
- package/cjs/dynamic-table/Head/TableHead.js +47 -40
- package/cjs/dynamic-table/Head/TableHead.types.d.ts +5 -5
- package/cjs/dynamic-table/Skeleton/SkeletonTable.styles.js +3 -5
- package/cjs/dynamic-table/Skeleton/helpers/createSkeletonRows.js +4 -5
- package/cjs/dynamic-table/helpers/getHeaderRow.js +1 -2
- package/cjs/dynamic-table/stories/headerRow.js +1 -2
- package/cjs/dynamic-table/stories/headerRowSortable.js +1 -2
- package/cjs/dynamic-table/stories/tableRows.js +51 -15
- package/cjs/dynamic-table/stories/tableRowsExpandable.js +51 -15
- package/cjs/footer/Footer.d.ts +1 -1
- package/cjs/footer/Footer.js +51 -42
- package/cjs/footer/FooterColumn.d.ts +1 -1
- package/cjs/footer/FooterColumn.js +14 -11
- package/cjs/footer/FooterColumnItem.d.ts +1 -1
- package/cjs/footer/FooterColumnItem.js +7 -6
- package/cjs/footer/FooterMetaLink.d.ts +1 -1
- package/cjs/footer/FooterMetaLink.js +8 -8
- package/cjs/internet-explorer-modal/IEModal.d.ts +1 -1
- package/cjs/internet-explorer-modal/IEModal.js +44 -39
- package/cjs/locale-selector/LocaleOption.d.ts +1 -1
- package/cjs/locale-selector/LocaleOption.js +8 -8
- package/cjs/locale-selector/LocaleSelector.d.ts +10 -10
- package/cjs/locale-selector/LocaleSelector.js +38 -36
- package/cjs/swiper/Swiper.d.ts +4 -3
- package/cjs/swiper/Swiper.js +6 -5
- package/cjs/swiper/SwiperCard.d.ts +4 -3
- package/cjs/swiper/SwiperCard.js +6 -5
- package/dynamic-table/Body/TableBody.js +16 -15
- package/dynamic-table/Body/TableBody.types.d.ts +1 -1
- package/dynamic-table/Body/TableCell.js +5 -4
- package/dynamic-table/Body/TableCell.styles.d.ts +1 -1
- package/dynamic-table/Body/TableCell.types.d.ts +1 -1
- package/dynamic-table/Body/TableRow.js +37 -34
- package/dynamic-table/Body/TableRow.styles.d.ts +1 -1
- package/dynamic-table/Body/TableRow.types.d.ts +2 -2
- package/dynamic-table/Body/TableRowGroup.js +25 -24
- package/dynamic-table/Body/TableRowGroup.types.d.ts +2 -2
- package/dynamic-table/DynamicTable.js +42 -34
- package/dynamic-table/DynamicTable.styles.d.ts +1 -1
- package/dynamic-table/DynamicTable.types.d.ts +4 -4
- package/dynamic-table/Head/TableHead.js +48 -40
- package/dynamic-table/Head/TableHead.types.d.ts +5 -5
- package/dynamic-table/Skeleton/SkeletonTable.styles.js +1 -2
- package/dynamic-table/Skeleton/helpers/createSkeletonRows.js +5 -6
- package/dynamic-table/stories/tableRows.js +50 -13
- package/dynamic-table/stories/tableRowsExpandable.js +50 -13
- package/footer/Footer.d.ts +1 -1
- package/footer/Footer.js +51 -36
- package/footer/FooterColumn.d.ts +1 -1
- package/footer/FooterColumn.js +20 -11
- package/footer/FooterColumnItem.d.ts +1 -1
- package/footer/FooterColumnItem.js +13 -6
- package/footer/FooterMetaLink.d.ts +1 -1
- package/footer/FooterMetaLink.js +14 -8
- package/internet-explorer-modal/IEModal.d.ts +1 -1
- package/internet-explorer-modal/IEModal.js +56 -45
- package/locale-selector/LocaleOption.d.ts +1 -1
- package/locale-selector/LocaleOption.js +7 -7
- package/locale-selector/LocaleSelector.d.ts +10 -10
- package/locale-selector/LocaleSelector.js +40 -37
- package/package.json +12 -12
- package/swiper/Swiper.d.ts +4 -3
- package/swiper/Swiper.js +6 -6
- package/swiper/SwiperCard.d.ts +4 -3
- package/swiper/SwiperCard.js +6 -6
package/cjs/swiper/SwiperCard.js
CHANGED
|
@@ -7,6 +7,7 @@ exports.SwiperCard = void 0;
|
|
|
7
7
|
var _react = _interopRequireDefault(require("react"));
|
|
8
8
|
var _flexbox = require("@dfds-ui/react-components/flexbox");
|
|
9
9
|
var _react2 = require("@emotion/react");
|
|
10
|
+
var _jsxRuntime = require("@emotion/react/jsx-runtime");
|
|
10
11
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
11
12
|
function _EMOTION_STRINGIFIED_CSS_ERROR__() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; }
|
|
12
13
|
var _ref = process.env.NODE_ENV === "production" ? {
|
|
@@ -14,17 +15,17 @@ var _ref = process.env.NODE_ENV === "production" ? {
|
|
|
14
15
|
styles: "min-width:80%"
|
|
15
16
|
} : {
|
|
16
17
|
name: "sgtqui-SwiperCard",
|
|
17
|
-
styles: "min-width:80%;label:SwiperCard;",
|
|
18
|
-
map: "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9zd2lwZXIvU3dpcGVyQ2FyZC50c3giXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBVWMiLCJmaWxlIjoiLi4vLi4vLi4vc3JjL3N3aXBlci9Td2lwZXJDYXJkLnRzeCIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCBSZWFjdCBmcm9tICdyZWFjdCdcbmltcG9ydCB7IEZsZXhCb3ggfSBmcm9tICdAZGZkcy11aS9yZWFjdC1jb21wb25lbnRzL2ZsZXhib3gnXG5pbXBvcnQgeyBjc3MgfSBmcm9tICdAZW1vdGlvbi9yZWFjdCdcblxuZXhwb3J0IHR5cGUgU3dpcGVyQ2FyZFByb3BzID0gUmVhY3QuUHJvcHNXaXRoQ2hpbGRyZW48eyBjbGFzc05hbWU/OiBzdHJpbmcgfT5cblxuZXhwb3J0IGNvbnN0IFN3aXBlckNhcmQgPSAoeyBjbGFzc05hbWUsIGNoaWxkcmVuIH06IFN3aXBlckNhcmRQcm9wcykgPT4ge1xuICByZXR1cm4gKFxuICAgIDxGbGV4Qm94XG4gICAgICBjbGFzc05hbWU9e2NsYXNzTmFtZX1cbiAgICAgIGNzcz17Y3NzYFxuICAgICAgICBtaW4td2lkdGg6IDgwJTtcbiAgICAgIGB9XG4gICAgPlxuICAgICAge2NoaWxkcmVufVxuICAgIDwvRmxleEJveD5cbiAgKVxufVxuIl19 */",
|
|
18
|
+
styles: "min-width:80%;label:SwiperCard;/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9zd2lwZXIvU3dpcGVyQ2FyZC50c3giXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBVWMiLCJmaWxlIjoiLi4vLi4vLi4vc3JjL3N3aXBlci9Td2lwZXJDYXJkLnRzeCIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCBSZWFjdCwgeyBSZWFjdE5vZGUgfSBmcm9tICdyZWFjdCdcbmltcG9ydCB7IEZsZXhCb3ggfSBmcm9tICdAZGZkcy11aS9yZWFjdC1jb21wb25lbnRzL2ZsZXhib3gnXG5pbXBvcnQgeyBjc3MgfSBmcm9tICdAZW1vdGlvbi9yZWFjdCdcblxuZXhwb3J0IHR5cGUgU3dpcGVyQ2FyZFByb3BzID0geyBjbGFzc05hbWU/OiBzdHJpbmc7IGNoaWxkcmVuPzogUmVhY3ROb2RlIH1cblxuZXhwb3J0IGNvbnN0IFN3aXBlckNhcmQgPSAoeyBjbGFzc05hbWUsIGNoaWxkcmVuIH06IFN3aXBlckNhcmRQcm9wcykgPT4ge1xuICByZXR1cm4gKFxuICAgIDxGbGV4Qm94XG4gICAgICBjbGFzc05hbWU9e2NsYXNzTmFtZX1cbiAgICAgIGNzcz17Y3NzYFxuICAgICAgICBtaW4td2lkdGg6IDgwJTtcbiAgICAgIGB9XG4gICAgPlxuICAgICAge2NoaWxkcmVufVxuICAgIDwvRmxleEJveD5cbiAgKVxufVxuIl19 */",
|
|
19
19
|
toString: _EMOTION_STRINGIFIED_CSS_ERROR__
|
|
20
20
|
};
|
|
21
21
|
const SwiperCard = ({
|
|
22
22
|
className,
|
|
23
23
|
children
|
|
24
24
|
}) => {
|
|
25
|
-
return (0,
|
|
25
|
+
return (0, _jsxRuntime.jsx)(_flexbox.FlexBox, {
|
|
26
26
|
className: className,
|
|
27
|
-
css: _ref
|
|
28
|
-
|
|
27
|
+
css: _ref,
|
|
28
|
+
children: children
|
|
29
|
+
});
|
|
29
30
|
};
|
|
30
31
|
exports.SwiperCard = SwiperCard;
|
|
@@ -3,10 +3,10 @@ function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread n
|
|
|
3
3
|
function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
|
|
4
4
|
function _iterableToArray(r) { if ("undefined" != typeof Symbol && null != r[Symbol.iterator] || null != r["@@iterator"]) return Array.from(r); }
|
|
5
5
|
function _arrayWithoutHoles(r) { if (Array.isArray(r)) return _arrayLikeToArray(r); }
|
|
6
|
-
function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++)
|
|
6
|
+
function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
7
7
|
import React, { useCallback } from 'react';
|
|
8
8
|
import TableRowGroup from './TableRowGroup';
|
|
9
|
-
import { jsx as
|
|
9
|
+
import { jsx as _jsx } from "@emotion/react/jsx-runtime";
|
|
10
10
|
var TableBody = /*#__PURE__*/React.memo(function (_ref) {
|
|
11
11
|
var activeRow = _ref.activeRow,
|
|
12
12
|
expandable = _ref.expandable,
|
|
@@ -30,18 +30,19 @@ var TableBody = /*#__PURE__*/React.memo(function (_ref) {
|
|
|
30
30
|
}
|
|
31
31
|
}
|
|
32
32
|
}, [selectableRows, selectedRows]);
|
|
33
|
-
return
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
33
|
+
return _jsx("tbody", {
|
|
34
|
+
children: rows.map(function (row) {
|
|
35
|
+
return _jsx(TableRowGroup, {
|
|
36
|
+
activeRow: activeRow,
|
|
37
|
+
expandable: expandable,
|
|
38
|
+
headerRow: headerRow,
|
|
39
|
+
onClickRow: onClickRow,
|
|
40
|
+
onSelectRow: updateSelectedRows,
|
|
41
|
+
row: row,
|
|
42
|
+
selectableRows: selectableRows,
|
|
43
|
+
selectedRows: selectedRows
|
|
44
|
+
}, row.id);
|
|
45
|
+
})
|
|
46
|
+
});
|
|
46
47
|
});
|
|
47
48
|
export default TableBody;
|
|
@@ -1,15 +1,16 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { tableCellStyles } from './TableCell.styles';
|
|
3
|
-
import { jsx as
|
|
3
|
+
import { jsx as _jsx } from "@emotion/react/jsx-runtime";
|
|
4
4
|
var TableCell = /*#__PURE__*/React.memo(function (_ref) {
|
|
5
5
|
var children = _ref.children,
|
|
6
6
|
headerCell = _ref.headerCell;
|
|
7
|
-
return
|
|
7
|
+
return _jsx("td", {
|
|
8
8
|
css: tableCellStyles({
|
|
9
9
|
align: headerCell === null || headerCell === void 0 ? void 0 : headerCell.textAlign,
|
|
10
10
|
customWidth: headerCell === null || headerCell === void 0 ? void 0 : headerCell.width
|
|
11
11
|
}),
|
|
12
|
-
"data-cy": "dynamic-table-cell-".concat(headerCell === null || headerCell === void 0 ? void 0 : headerCell.key)
|
|
13
|
-
|
|
12
|
+
"data-cy": "dynamic-table-cell-".concat(headerCell === null || headerCell === void 0 ? void 0 : headerCell.key),
|
|
13
|
+
children: children
|
|
14
|
+
});
|
|
14
15
|
});
|
|
15
16
|
export default TableCell;
|
|
@@ -4,7 +4,7 @@ import TableCell from './TableCell';
|
|
|
4
4
|
import { tableCellCheckboxStyles, tableCellExpanderStyles } from './TableCell.styles';
|
|
5
5
|
import { chevronStyles, tableRowStyles } from './TableRow.styles';
|
|
6
6
|
import { ChevronRight } from '@dfds-ui/icons/system';
|
|
7
|
-
import { jsx as
|
|
7
|
+
import { jsx as _jsx, jsxs as _jsxs } from "@emotion/react/jsx-runtime";
|
|
8
8
|
var TableRow = /*#__PURE__*/React.memo(function (_ref) {
|
|
9
9
|
var _row$subRows;
|
|
10
10
|
var expandable = _ref.expandable,
|
|
@@ -22,7 +22,7 @@ var TableRow = /*#__PURE__*/React.memo(function (_ref) {
|
|
|
22
22
|
_ref$showExpander = _ref.showExpander,
|
|
23
23
|
showExpander = _ref$showExpander === void 0 ? false : _ref$showExpander;
|
|
24
24
|
var hasSubRows = (((_row$subRows = row.subRows) === null || _row$subRows === void 0 ? void 0 : _row$subRows.length) || 0) > 0;
|
|
25
|
-
return
|
|
25
|
+
return _jsxs("tr", {
|
|
26
26
|
css: tableRowStyles({
|
|
27
27
|
active: isActive,
|
|
28
28
|
expanded: isExpanded,
|
|
@@ -34,38 +34,41 @@ var TableRow = /*#__PURE__*/React.memo(function (_ref) {
|
|
|
34
34
|
"data-row-type": isSubRow ? 'sub-row' : 'row',
|
|
35
35
|
onClick: function onClick() {
|
|
36
36
|
return onClickRow && onClickRow(row.id ? String(row.id) : '');
|
|
37
|
-
}
|
|
38
|
-
}, expandable && ___EmotionJSX("td", {
|
|
39
|
-
css: tableCellExpanderStyles(showExpander),
|
|
40
|
-
onClick: function onClick(e) {
|
|
41
|
-
if (!showExpander) return;
|
|
42
|
-
e.stopPropagation();
|
|
43
|
-
setIsExpanded(function (prev) {
|
|
44
|
-
return !prev;
|
|
45
|
-
});
|
|
46
|
-
}
|
|
47
|
-
}, hasSubRows ? ___EmotionJSX(ChevronRight, {
|
|
48
|
-
css: chevronStyles({
|
|
49
|
-
expanded: isExpanded
|
|
50
|
-
})
|
|
51
|
-
}) : null), selectableRows && row.id && ___EmotionJSX("td", {
|
|
52
|
-
css: tableCellCheckboxStyles
|
|
53
|
-
}, ___EmotionJSX(Checkbox, {
|
|
54
|
-
checked: selectedRows.includes(row.id),
|
|
55
|
-
name: row.id,
|
|
56
|
-
onChange: function onChange() {
|
|
57
|
-
if (!row.id) return;
|
|
58
|
-
onSelectRow(row.id);
|
|
59
37
|
},
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
38
|
+
children: [expandable && _jsx("td", {
|
|
39
|
+
css: tableCellExpanderStyles(showExpander),
|
|
40
|
+
onClick: function onClick(e) {
|
|
41
|
+
if (!showExpander) return;
|
|
42
|
+
e.stopPropagation();
|
|
43
|
+
setIsExpanded(function (prev) {
|
|
44
|
+
return !prev;
|
|
45
|
+
});
|
|
46
|
+
},
|
|
47
|
+
children: hasSubRows ? _jsx(ChevronRight, {
|
|
48
|
+
css: chevronStyles({
|
|
49
|
+
expanded: isExpanded
|
|
50
|
+
})
|
|
51
|
+
}) : null
|
|
52
|
+
}), selectableRows && row.id && _jsx("td", {
|
|
53
|
+
css: tableCellCheckboxStyles,
|
|
54
|
+
children: _jsx(Checkbox, {
|
|
55
|
+
checked: selectedRows.includes(row.id),
|
|
56
|
+
name: row.id,
|
|
57
|
+
onChange: function onChange() {
|
|
58
|
+
if (!row.id) return;
|
|
59
|
+
onSelectRow(row.id);
|
|
60
|
+
},
|
|
61
|
+
onLabelClick: function onLabelClick(e) {
|
|
62
|
+
e.stopPropagation();
|
|
63
|
+
},
|
|
64
|
+
visualSize: "small"
|
|
65
|
+
})
|
|
66
|
+
}), headerRow.map(function (headerCell, index) {
|
|
67
|
+
return _jsx(TableCell, {
|
|
68
|
+
headerCell: headerRow === null || headerRow === void 0 ? void 0 : headerRow[index],
|
|
69
|
+
children: row[headerCell.key] || '-'
|
|
70
|
+
}, index);
|
|
71
|
+
})]
|
|
72
|
+
});
|
|
70
73
|
});
|
|
71
74
|
export default TableRow;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Header, Row } from '../DynamicTable.types';
|
|
2
|
-
export
|
|
2
|
+
export type TableRowProps = {
|
|
3
3
|
expandable?: boolean;
|
|
4
4
|
headerRow: Header[];
|
|
5
5
|
isActive: boolean;
|
|
@@ -13,6 +13,6 @@ export declare type TableRowProps = {
|
|
|
13
13
|
setIsExpanded: React.Dispatch<React.SetStateAction<boolean>>;
|
|
14
14
|
showExpander?: boolean;
|
|
15
15
|
};
|
|
16
|
-
export
|
|
16
|
+
export type ChevronProps = {
|
|
17
17
|
expanded: boolean;
|
|
18
18
|
};
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
function _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }
|
|
2
2
|
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
3
3
|
function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
|
|
4
|
-
function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++)
|
|
5
|
-
function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0)
|
|
4
|
+
function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
5
|
+
function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
|
|
6
6
|
function _arrayWithHoles(r) { if (Array.isArray(r)) return r; }
|
|
7
7
|
import React from 'react';
|
|
8
8
|
import TableRow from './TableRow';
|
|
9
|
-
import { jsx as
|
|
9
|
+
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "@emotion/react/jsx-runtime";
|
|
10
10
|
var TableRowGroup = /*#__PURE__*/React.memo(function (_ref) {
|
|
11
11
|
var activeRow = _ref.activeRow,
|
|
12
12
|
expandable = _ref.expandable,
|
|
@@ -22,33 +22,34 @@ var TableRowGroup = /*#__PURE__*/React.memo(function (_ref) {
|
|
|
22
22
|
setIsExpanded = _React$useState2[1];
|
|
23
23
|
var subRows = row.subRows || [];
|
|
24
24
|
var hasSubRows = subRows.length > 0;
|
|
25
|
-
return
|
|
26
|
-
|
|
27
|
-
headerRow: headerRow,
|
|
28
|
-
isActive: activeRow ? row.id === activeRow : false,
|
|
29
|
-
isExpanded: isExpanded,
|
|
30
|
-
onClickRow: onClickRow,
|
|
31
|
-
onSelectRow: onSelectRow,
|
|
32
|
-
row: row,
|
|
33
|
-
selectableRows: selectableRows,
|
|
34
|
-
selectedRows: selectedRows,
|
|
35
|
-
setIsExpanded: setIsExpanded,
|
|
36
|
-
showExpander: hasSubRows
|
|
37
|
-
}), subRows.map(function (subRow) {
|
|
38
|
-
return ___EmotionJSX(TableRow, {
|
|
25
|
+
return _jsxs(_Fragment, {
|
|
26
|
+
children: [_jsx(TableRow, {
|
|
39
27
|
expandable: expandable,
|
|
40
28
|
headerRow: headerRow,
|
|
41
|
-
isActive: activeRow ?
|
|
29
|
+
isActive: activeRow ? row.id === activeRow : false,
|
|
42
30
|
isExpanded: isExpanded,
|
|
43
|
-
isSubRow: true,
|
|
44
|
-
key: subRow.id,
|
|
45
31
|
onClickRow: onClickRow,
|
|
46
32
|
onSelectRow: onSelectRow,
|
|
47
|
-
row:
|
|
33
|
+
row: row,
|
|
48
34
|
selectableRows: selectableRows,
|
|
49
35
|
selectedRows: selectedRows,
|
|
50
|
-
setIsExpanded: setIsExpanded
|
|
51
|
-
|
|
52
|
-
|
|
36
|
+
setIsExpanded: setIsExpanded,
|
|
37
|
+
showExpander: hasSubRows
|
|
38
|
+
}), subRows.map(function (subRow) {
|
|
39
|
+
return _jsx(TableRow, {
|
|
40
|
+
expandable: expandable,
|
|
41
|
+
headerRow: headerRow,
|
|
42
|
+
isActive: activeRow ? subRow.id === activeRow : false,
|
|
43
|
+
isExpanded: isExpanded,
|
|
44
|
+
isSubRow: true,
|
|
45
|
+
onClickRow: onClickRow,
|
|
46
|
+
onSelectRow: onSelectRow,
|
|
47
|
+
row: subRow,
|
|
48
|
+
selectableRows: selectableRows,
|
|
49
|
+
selectedRows: selectedRows,
|
|
50
|
+
setIsExpanded: setIsExpanded
|
|
51
|
+
}, subRow.id);
|
|
52
|
+
})]
|
|
53
|
+
});
|
|
53
54
|
});
|
|
54
55
|
export default TableRowGroup;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Header, Row } from '../DynamicTable.types';
|
|
2
|
-
export
|
|
2
|
+
export type TableRowGroupProps = {
|
|
3
3
|
activeRow?: string;
|
|
4
4
|
expandable?: boolean;
|
|
5
5
|
headerRow: Header[];
|
|
@@ -9,6 +9,6 @@ export declare type TableRowGroupProps = {
|
|
|
9
9
|
selectableRows: boolean;
|
|
10
10
|
selectedRows: string[];
|
|
11
11
|
};
|
|
12
|
-
export
|
|
12
|
+
export type ChevronProps = {
|
|
13
13
|
expanded: boolean;
|
|
14
14
|
};
|
|
@@ -1,20 +1,25 @@
|
|
|
1
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
1
2
|
var _excluded = ["activeRow", "descending", "expandable", "height", "headerRow", "isLoading", "onClickRow", "onSelectRow", "onSort", "rows", "selectedRows", "sortingBy", "stickyHeader"];
|
|
2
|
-
function
|
|
3
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
4
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
5
|
+
function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
|
6
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
7
|
+
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
3
8
|
function _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }
|
|
4
9
|
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
5
10
|
function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
|
|
6
|
-
function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++)
|
|
7
|
-
function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0)
|
|
11
|
+
function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
12
|
+
function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
|
|
8
13
|
function _arrayWithHoles(r) { if (Array.isArray(r)) return r; }
|
|
9
|
-
function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++)
|
|
10
|
-
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r)
|
|
14
|
+
function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
|
|
15
|
+
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
|
|
11
16
|
import React, { useEffect, useMemo, useState } from 'react';
|
|
12
17
|
import TableBody from './Body/TableBody';
|
|
13
18
|
import { tableStyles, tableWrapperStyles } from './DynamicTable.styles';
|
|
14
19
|
import TableHead from './Head/TableHead';
|
|
15
20
|
import createSkeletonRows from './Skeleton/helpers/createSkeletonRows';
|
|
16
21
|
import { fadeStyles } from './Skeleton/SkeletonTable.styles';
|
|
17
|
-
import { jsx as
|
|
22
|
+
import { jsx as _jsx, jsxs as _jsxs } from "@emotion/react/jsx-runtime";
|
|
18
23
|
var DynamicTable = function DynamicTable(_ref) {
|
|
19
24
|
var activeRow = _ref.activeRow,
|
|
20
25
|
descending = _ref.descending,
|
|
@@ -49,37 +54,40 @@ var DynamicTable = function DynamicTable(_ref) {
|
|
|
49
54
|
onSort(sortByKeyValue, sortDescending);
|
|
50
55
|
}
|
|
51
56
|
}, [sortDescending, onSort, sortByKeyValue]);
|
|
52
|
-
return
|
|
57
|
+
return _jsxs("div", _objectSpread(_objectSpread({
|
|
53
58
|
css: tableWrapperStyles({
|
|
54
59
|
height: height
|
|
55
60
|
})
|
|
56
|
-
}, rest),
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
61
|
+
}, rest), {}, {
|
|
62
|
+
children: [_jsxs("table", {
|
|
63
|
+
css: tableStyles,
|
|
64
|
+
"data-cy": !isLoading ? "dynamic-table-isLoaded" : '',
|
|
65
|
+
children: [headerRow && _jsx(TableHead, {
|
|
66
|
+
expandable: expandable,
|
|
67
|
+
headerRow: headerRow,
|
|
68
|
+
onSelectRow: onSelectRow,
|
|
69
|
+
onSort: onSort,
|
|
70
|
+
rows: rows,
|
|
71
|
+
selectableRows: selectableRows,
|
|
72
|
+
selectedRows: selectedRows,
|
|
73
|
+
setSortDescending: setSortDescending,
|
|
74
|
+
setSortByKeyValue: setSortByKeyValue,
|
|
75
|
+
sortDescending: sortDescending,
|
|
76
|
+
sortByKeyValue: sortByKeyValue,
|
|
77
|
+
stickyHeader: stickyHeader
|
|
78
|
+
}), _jsx(TableBody, {
|
|
79
|
+
activeRow: activeRow,
|
|
80
|
+
expandable: expandable,
|
|
81
|
+
headerRow: headerRow,
|
|
82
|
+
onClickRow: onClickRow,
|
|
83
|
+
onSelectRow: onSelectRow,
|
|
84
|
+
rows: !isLoading ? rows : skeletonRows,
|
|
85
|
+
selectableRows: selectableRows,
|
|
86
|
+
selectedRows: selectedRows
|
|
87
|
+
})]
|
|
88
|
+
}), isLoading && _jsx("div", {
|
|
89
|
+
css: fadeStyles
|
|
90
|
+
})]
|
|
83
91
|
}));
|
|
84
92
|
};
|
|
85
93
|
export default /*#__PURE__*/React.memo(DynamicTable);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
export
|
|
2
|
+
export type Header = {
|
|
3
3
|
displayName: string | React.ReactElement;
|
|
4
4
|
key: string;
|
|
5
5
|
sortKey?: string;
|
|
@@ -7,18 +7,18 @@ export declare type Header = {
|
|
|
7
7
|
textAlign?: 'center' | 'left' | 'right';
|
|
8
8
|
width?: string;
|
|
9
9
|
};
|
|
10
|
-
export
|
|
10
|
+
export type SubRow = {
|
|
11
11
|
className?: string;
|
|
12
12
|
id?: string;
|
|
13
13
|
[name: string]: any;
|
|
14
14
|
};
|
|
15
|
-
export
|
|
15
|
+
export type Row = {
|
|
16
16
|
className?: string;
|
|
17
17
|
id?: string;
|
|
18
18
|
subRows?: SubRow[];
|
|
19
19
|
[name: string]: any;
|
|
20
20
|
};
|
|
21
|
-
export
|
|
21
|
+
export type DynamicTableProps = {
|
|
22
22
|
activeRow?: string;
|
|
23
23
|
descending?: boolean;
|
|
24
24
|
expandable?: boolean;
|
|
@@ -3,7 +3,7 @@ import { ChevronDown } from '@dfds-ui/icons/system';
|
|
|
3
3
|
import { Checkbox } from '@dfds-ui/react-components';
|
|
4
4
|
import { chevronStyles, tableHeadCellCheckboxStyles, tableHeadCellExpanderStyles, tableHeadCellStyles } from './TableHead.styles';
|
|
5
5
|
import { genericTableRowStyles } from '../Body/TableRow.styles';
|
|
6
|
-
import { jsx as
|
|
6
|
+
import { jsx as _jsx, jsxs as _jsxs } from "@emotion/react/jsx-runtime";
|
|
7
7
|
var TableHead = /*#__PURE__*/React.memo(function (_ref) {
|
|
8
8
|
var expandable = _ref.expandable,
|
|
9
9
|
headerRow = _ref.headerRow,
|
|
@@ -36,45 +36,53 @@ var TableHead = /*#__PURE__*/React.memo(function (_ref) {
|
|
|
36
36
|
setSortDescending(!sortDescending);
|
|
37
37
|
}
|
|
38
38
|
}, [onSort, setSortDescending, setSortByKeyValue, sortDescending]);
|
|
39
|
-
return
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
39
|
+
return _jsx("thead", {
|
|
40
|
+
children: _jsxs("tr", {
|
|
41
|
+
css: genericTableRowStyles,
|
|
42
|
+
children: [expandable && _jsx("th", {
|
|
43
|
+
css: tableHeadCellExpanderStyles({
|
|
44
|
+
stickyHeader: stickyHeader
|
|
45
|
+
})
|
|
46
|
+
}), selectableRows && _jsx("th", {
|
|
47
|
+
css: tableHeadCellCheckboxStyles({
|
|
48
|
+
stickyHeader: stickyHeader
|
|
49
|
+
}),
|
|
50
|
+
children: _jsx(Checkbox, {
|
|
51
|
+
checked: selectedRows.length > 0,
|
|
52
|
+
indeterminate: true,
|
|
53
|
+
name: "all",
|
|
54
|
+
onChange: toggleAll,
|
|
55
|
+
size: "small"
|
|
56
|
+
})
|
|
57
|
+
}), headerRow.map(function (headerCell, i) {
|
|
58
|
+
var sortKey = headerCell.sortKey || headerCell.key;
|
|
59
|
+
var clickHandler = function clickHandler() {
|
|
60
|
+
return headerCell.sortable && sort(sortByKeyValue, sortKey);
|
|
61
|
+
};
|
|
62
|
+
var showChevron = String(sortByKeyValue === sortKey);
|
|
63
|
+
return _jsx("th", {
|
|
64
|
+
align: headerCell.textAlign,
|
|
65
|
+
css: tableHeadCellStyles({
|
|
66
|
+
align: headerCell.textAlign,
|
|
67
|
+
customWidth: headerCell.width,
|
|
68
|
+
sortByKey: onSort,
|
|
69
|
+
sortable: headerCell.sortable,
|
|
70
|
+
stickyHeader: stickyHeader
|
|
71
|
+
}),
|
|
72
|
+
onClick: clickHandler,
|
|
73
|
+
children: _jsxs("div", {
|
|
74
|
+
children: [_jsx("span", {
|
|
75
|
+
children: headerCell.displayName
|
|
76
|
+
}), headerCell.sortable && onSort && _jsx(ChevronDown, {
|
|
77
|
+
css: chevronStyles({
|
|
78
|
+
descending: String(sortDescending),
|
|
79
|
+
show: showChevron
|
|
80
|
+
})
|
|
81
|
+
})]
|
|
82
|
+
})
|
|
83
|
+
}, i);
|
|
84
|
+
})]
|
|
44
85
|
})
|
|
45
|
-
})
|
|
46
|
-
css: tableHeadCellCheckboxStyles({
|
|
47
|
-
stickyHeader: stickyHeader
|
|
48
|
-
})
|
|
49
|
-
}, ___EmotionJSX(Checkbox, {
|
|
50
|
-
checked: selectedRows.length > 0,
|
|
51
|
-
indeterminate: true,
|
|
52
|
-
name: "all",
|
|
53
|
-
onChange: toggleAll,
|
|
54
|
-
size: "small"
|
|
55
|
-
})), headerRow.map(function (headerCell, i) {
|
|
56
|
-
var sortKey = headerCell.sortKey || headerCell.key;
|
|
57
|
-
var clickHandler = function clickHandler() {
|
|
58
|
-
return headerCell.sortable && sort(sortByKeyValue, sortKey);
|
|
59
|
-
};
|
|
60
|
-
var showChevron = String(sortByKeyValue === sortKey);
|
|
61
|
-
return ___EmotionJSX("th", {
|
|
62
|
-
align: headerCell.textAlign,
|
|
63
|
-
css: tableHeadCellStyles({
|
|
64
|
-
align: headerCell.textAlign,
|
|
65
|
-
customWidth: headerCell.width,
|
|
66
|
-
sortByKey: onSort,
|
|
67
|
-
sortable: headerCell.sortable,
|
|
68
|
-
stickyHeader: stickyHeader
|
|
69
|
-
}),
|
|
70
|
-
key: i,
|
|
71
|
-
onClick: clickHandler
|
|
72
|
-
}, ___EmotionJSX("div", null, ___EmotionJSX("span", null, headerCell.displayName), headerCell.sortable && onSort && ___EmotionJSX(ChevronDown, {
|
|
73
|
-
css: chevronStyles({
|
|
74
|
-
descending: String(sortDescending),
|
|
75
|
-
show: showChevron
|
|
76
|
-
})
|
|
77
|
-
})));
|
|
78
|
-
})));
|
|
86
|
+
});
|
|
79
87
|
});
|
|
80
88
|
export default TableHead;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Header, Row } from '../DynamicTable.types';
|
|
2
|
-
export
|
|
2
|
+
export type TableHeadProps = {
|
|
3
3
|
expandable?: boolean;
|
|
4
4
|
headerRow: Header[];
|
|
5
5
|
onSelectRow?: (list: string[]) => void;
|
|
@@ -13,7 +13,7 @@ export declare type TableHeadProps = {
|
|
|
13
13
|
sortByKeyValue: string;
|
|
14
14
|
stickyHeader?: boolean;
|
|
15
15
|
};
|
|
16
|
-
export
|
|
16
|
+
export type GenericTableHeadCellProps = {
|
|
17
17
|
sortable?: boolean;
|
|
18
18
|
sortByKey?: (value: string, sortDescending: boolean) => void;
|
|
19
19
|
stickyHeader?: boolean;
|
|
@@ -24,13 +24,13 @@ export interface TableHeadCellProps extends GenericTableHeadCellProps {
|
|
|
24
24
|
sortByKey?: (value: string, sortDescending: boolean) => void;
|
|
25
25
|
stickyHeader?: boolean;
|
|
26
26
|
}
|
|
27
|
-
export
|
|
27
|
+
export type TableHeadCellCExpanderProps = {
|
|
28
28
|
stickyHeader?: boolean;
|
|
29
29
|
};
|
|
30
|
-
export
|
|
30
|
+
export type TableHeadCellCheckboxProps = {
|
|
31
31
|
stickyHeader?: boolean;
|
|
32
32
|
};
|
|
33
|
-
export
|
|
33
|
+
export type ChevronProps = {
|
|
34
34
|
descending: string;
|
|
35
35
|
show: string;
|
|
36
36
|
};
|
|
@@ -5,7 +5,6 @@ export var fadeStyles = process.env.NODE_ENV === "production" ? {
|
|
|
5
5
|
styles: "background-image:linear-gradient(to bottom, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.9) 90%);height:calc(7 * 48px);margin-top:49px;pointer-events:none;position:fixed;width:100vw"
|
|
6
6
|
} : {
|
|
7
7
|
name: "yz1003-fadeStyles",
|
|
8
|
-
styles: "background-image:linear-gradient(to bottom, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.9) 90%);height:calc(7 * 48px);margin-top:49px;pointer-events:none;position:fixed;width:100vw;label:fadeStyles;",
|
|
9
|
-
map: "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9keW5hbWljLXRhYmxlL1NrZWxldG9uL1NrZWxldG9uVGFibGUuc3R5bGVzLnRzeCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFFNkIiLCJmaWxlIjoiLi4vLi4vLi4vc3JjL2R5bmFtaWMtdGFibGUvU2tlbGV0b24vU2tlbGV0b25UYWJsZS5zdHlsZXMudHN4Iiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgY3NzIH0gZnJvbSAnQGVtb3Rpb24vcmVhY3QnXG5cbmV4cG9ydCBjb25zdCBmYWRlU3R5bGVzID0gY3NzYFxuICBiYWNrZ3JvdW5kLWltYWdlOiBsaW5lYXItZ3JhZGllbnQodG8gYm90dG9tLCByZ2JhKDI1NSwgMjU1LCAyNTUsIDApLCByZ2JhKDI1NSwgMjU1LCAyNTUsIDAuOSkgOTAlKTtcbiAgaGVpZ2h0OiBjYWxjKDcgKiA0OHB4KTtcbiAgbWFyZ2luLXRvcDogNDlweDtcbiAgcG9pbnRlci1ldmVudHM6IG5vbmU7XG4gIHBvc2l0aW9uOiBmaXhlZDtcbiAgd2lkdGg6IDEwMHZ3O1xuYFxuIl19 */",
|
|
8
|
+
styles: "background-image:linear-gradient(to bottom, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.9) 90%);height:calc(7 * 48px);margin-top:49px;pointer-events:none;position:fixed;width:100vw;label:fadeStyles;/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9keW5hbWljLXRhYmxlL1NrZWxldG9uL1NrZWxldG9uVGFibGUuc3R5bGVzLnRzeCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFFNkIiLCJmaWxlIjoiLi4vLi4vLi4vc3JjL2R5bmFtaWMtdGFibGUvU2tlbGV0b24vU2tlbGV0b25UYWJsZS5zdHlsZXMudHN4Iiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgY3NzIH0gZnJvbSAnQGVtb3Rpb24vcmVhY3QnXG5cbmV4cG9ydCBjb25zdCBmYWRlU3R5bGVzID0gY3NzYFxuICBiYWNrZ3JvdW5kLWltYWdlOiBsaW5lYXItZ3JhZGllbnQodG8gYm90dG9tLCByZ2JhKDI1NSwgMjU1LCAyNTUsIDApLCByZ2JhKDI1NSwgMjU1LCAyNTUsIDAuOSkgOTAlKTtcbiAgaGVpZ2h0OiBjYWxjKDcgKiA0OHB4KTtcbiAgbWFyZ2luLXRvcDogNDlweDtcbiAgcG9pbnRlci1ldmVudHM6IG5vbmU7XG4gIHBvc2l0aW9uOiBmaXhlZDtcbiAgd2lkdGg6IDEwMHZ3O1xuYFxuIl19 */",
|
|
10
9
|
toString: _EMOTION_STRINGIFIED_CSS_ERROR__
|
|
11
10
|
};
|