@dfds-ui/experiences 2.0.29-alpha.d3bae18f → 2.0.29-alpha.d8ff8a45
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.d.ts +1 -1
- package/cjs/dynamic-table/Body/TableBody.js +7 -6
- package/cjs/dynamic-table/Body/TableBody.types.d.ts +1 -0
- package/cjs/dynamic-table/Body/TableCell.js +1 -1
- package/cjs/dynamic-table/Body/TableCell.styles.d.ts +1 -0
- package/cjs/dynamic-table/Body/TableCell.styles.js +7 -5
- package/cjs/dynamic-table/Body/TableRow.d.ts +1 -1
- package/cjs/dynamic-table/Body/TableRow.js +47 -26
- package/cjs/dynamic-table/Body/TableRow.styles.d.ts +5 -1
- package/cjs/dynamic-table/Body/TableRow.styles.js +25 -6
- package/cjs/dynamic-table/Body/TableRow.types.d.ts +7 -0
- package/cjs/dynamic-table/Body/TableRowGroup.d.ts +4 -0
- package/cjs/dynamic-table/Body/TableRowGroup.js +59 -0
- package/cjs/dynamic-table/Body/TableRowGroup.types.d.ts +14 -0
- package/cjs/dynamic-table/Body/TableRowGroup.types.js +5 -0
- package/cjs/dynamic-table/DynamicTable.js +13 -11
- package/cjs/dynamic-table/DynamicTable.types.d.ts +7 -0
- package/cjs/dynamic-table/Head/TableHead.d.ts +1 -1
- package/cjs/dynamic-table/Head/TableHead.js +3 -3
- package/cjs/dynamic-table/Head/TableHead.styles.js +1 -1
- package/cjs/dynamic-table/Head/TableHead.types.d.ts +1 -0
- package/cjs/dynamic-table/Skeleton/helpers/createSkeletonRows.js +1 -1
- package/cjs/dynamic-table/stories/tableRows.js +1 -1
- package/cjs/dynamic-table/stories/tableRowsExpandable.d.ts +3 -0
- package/cjs/dynamic-table/stories/tableRowsExpandable.js +73 -0
- package/cjs/footer/Footer.js +4 -4
- package/cjs/footer/FooterColumn.js +4 -4
- package/cjs/footer/FooterColumnItem.js +4 -4
- package/cjs/footer/FooterMetaLink.js +4 -4
- package/cjs/index.js +1 -1
- package/cjs/internet-explorer-modal/IEModal.js +8 -9
- package/cjs/locale-selector/LocaleOption.js +1 -1
- package/cjs/locale-selector/LocaleSelector.js +6 -7
- package/cjs/swiper/Swiper.js +1 -1
- package/cjs/swiper/SwiperCard.js +1 -1
- package/dynamic-table/Body/TableBody.d.ts +1 -1
- package/dynamic-table/Body/TableBody.js +10 -8
- package/dynamic-table/Body/TableBody.types.d.ts +1 -0
- package/dynamic-table/Body/TableCell.styles.d.ts +1 -0
- package/dynamic-table/Body/TableCell.styles.js +5 -4
- package/dynamic-table/Body/TableRow.d.ts +1 -1
- package/dynamic-table/Body/TableRow.js +25 -6
- package/dynamic-table/Body/TableRow.styles.d.ts +5 -1
- package/dynamic-table/Body/TableRow.styles.js +19 -4
- package/dynamic-table/Body/TableRow.types.d.ts +7 -0
- package/dynamic-table/Body/TableRowGroup.d.ts +4 -0
- package/dynamic-table/Body/TableRowGroup.js +52 -0
- package/dynamic-table/Body/TableRowGroup.types.d.ts +14 -0
- package/dynamic-table/Body/TableRowGroup.types.js +1 -0
- package/dynamic-table/DynamicTable.js +11 -8
- package/dynamic-table/DynamicTable.types.d.ts +7 -0
- package/dynamic-table/Head/TableHead.d.ts +1 -1
- package/dynamic-table/Head/TableHead.js +3 -2
- package/dynamic-table/Head/TableHead.styles.js +1 -1
- package/dynamic-table/Head/TableHead.types.d.ts +1 -0
- package/dynamic-table/Skeleton/helpers/createSkeletonRows.js +5 -5
- package/dynamic-table/stories/tableRowsExpandable.d.ts +3 -0
- package/dynamic-table/stories/tableRowsExpandable.js +67 -0
- package/footer/Footer.js +4 -4
- package/footer/FooterColumn.js +4 -4
- package/footer/FooterColumnItem.js +4 -4
- package/footer/FooterMetaLink.js +3 -3
- package/internet-explorer-modal/IEModal.js +7 -7
- package/locale-selector/LocaleSelector.js +5 -5
- package/package.json +10 -10
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
function _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }
|
|
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
|
+
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++) { 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
|
+
function _arrayWithHoles(r) { if (Array.isArray(r)) return r; }
|
|
7
|
+
import React from 'react';
|
|
8
|
+
import TableRow from './TableRow';
|
|
9
|
+
import { jsx as ___EmotionJSX } from "@emotion/react";
|
|
10
|
+
var TableRowGroup = /*#__PURE__*/React.memo(function (_ref) {
|
|
11
|
+
var activeRow = _ref.activeRow,
|
|
12
|
+
expandable = _ref.expandable,
|
|
13
|
+
headerRow = _ref.headerRow,
|
|
14
|
+
onClickRow = _ref.onClickRow,
|
|
15
|
+
onSelectRow = _ref.onSelectRow,
|
|
16
|
+
row = _ref.row,
|
|
17
|
+
selectableRows = _ref.selectableRows,
|
|
18
|
+
selectedRows = _ref.selectedRows;
|
|
19
|
+
var _React$useState = React.useState(false),
|
|
20
|
+
_React$useState2 = _slicedToArray(_React$useState, 2),
|
|
21
|
+
isExpanded = _React$useState2[0],
|
|
22
|
+
setIsExpanded = _React$useState2[1];
|
|
23
|
+
var subRows = row.subRows || [];
|
|
24
|
+
return ___EmotionJSX(React.Fragment, null, ___EmotionJSX(TableRow, {
|
|
25
|
+
headerRow: headerRow,
|
|
26
|
+
expandable: expandable,
|
|
27
|
+
isActive: activeRow ? row.id === activeRow : false,
|
|
28
|
+
isExpanded: isExpanded,
|
|
29
|
+
onClickRow: onClickRow,
|
|
30
|
+
onSelectRow: onSelectRow,
|
|
31
|
+
row: row,
|
|
32
|
+
selectableRows: selectableRows,
|
|
33
|
+
selectedRows: selectedRows,
|
|
34
|
+
setIsExpanded: setIsExpanded
|
|
35
|
+
}), subRows.map(function (row, index) {
|
|
36
|
+
return ___EmotionJSX(TableRow, {
|
|
37
|
+
headerRow: headerRow,
|
|
38
|
+
expandable: expandable,
|
|
39
|
+
isActive: activeRow ? row.id === activeRow : false,
|
|
40
|
+
isExpanded: isExpanded,
|
|
41
|
+
isSubRow: true,
|
|
42
|
+
key: index,
|
|
43
|
+
onClickRow: onClickRow,
|
|
44
|
+
onSelectRow: onSelectRow,
|
|
45
|
+
row: row,
|
|
46
|
+
selectableRows: selectableRows,
|
|
47
|
+
selectedRows: selectedRows,
|
|
48
|
+
setIsExpanded: setIsExpanded
|
|
49
|
+
});
|
|
50
|
+
}));
|
|
51
|
+
});
|
|
52
|
+
export default TableRowGroup;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { Header, Row } from '../DynamicTable.types';
|
|
2
|
+
export declare type TableRowGroupProps = {
|
|
3
|
+
activeRow?: string;
|
|
4
|
+
expandable?: boolean;
|
|
5
|
+
headerRow: Header[];
|
|
6
|
+
onClickRow?: (id: string) => void;
|
|
7
|
+
onSelectRow: (id: string) => void;
|
|
8
|
+
row: Row;
|
|
9
|
+
selectableRows: boolean;
|
|
10
|
+
selectedRows: string[];
|
|
11
|
+
};
|
|
12
|
+
export declare type ChevronProps = {
|
|
13
|
+
expanded: boolean;
|
|
14
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
var _excluded = ["activeRow", "descending", "height", "headerRow", "isLoading", "onClickRow", "onSelectRow", "onSort", "rows", "selectedRows", "sortingBy", "stickyHeader"];
|
|
2
|
-
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (
|
|
3
|
-
function _slicedToArray(
|
|
1
|
+
var _excluded = ["activeRow", "descending", "expandable", "height", "headerRow", "isLoading", "onClickRow", "onSelectRow", "onSort", "rows", "selectedRows", "sortingBy", "stickyHeader"];
|
|
2
|
+
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) { ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } } return n; }, _extends.apply(null, arguments); }
|
|
3
|
+
function _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }
|
|
4
4
|
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
|
-
function _unsupportedIterableToArray(
|
|
6
|
-
function _arrayLikeToArray(
|
|
5
|
+
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++) { n[e] = r[e]; } return n; }
|
|
7
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) { ; } } 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
|
-
function _arrayWithHoles(
|
|
9
|
-
function _objectWithoutProperties(
|
|
10
|
-
function _objectWithoutPropertiesLoose(
|
|
8
|
+
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++) { o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } } return i; }
|
|
10
|
+
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
11
|
import React, { useEffect, useMemo, useState } from 'react';
|
|
12
12
|
import TableBody from './Body/TableBody';
|
|
13
13
|
import { tableStyles, tableWrapperStyles } from './DynamicTable.styles';
|
|
@@ -18,6 +18,7 @@ import { jsx as ___EmotionJSX } from "@emotion/react";
|
|
|
18
18
|
var DynamicTable = function DynamicTable(_ref) {
|
|
19
19
|
var activeRow = _ref.activeRow,
|
|
20
20
|
descending = _ref.descending,
|
|
21
|
+
expandable = _ref.expandable,
|
|
21
22
|
height = _ref.height,
|
|
22
23
|
headerRow = _ref.headerRow,
|
|
23
24
|
isLoading = _ref.isLoading,
|
|
@@ -56,6 +57,7 @@ var DynamicTable = function DynamicTable(_ref) {
|
|
|
56
57
|
css: tableStyles,
|
|
57
58
|
"data-cy": !isLoading ? "dynamic-table-isLoaded" : ''
|
|
58
59
|
}, headerRow && ___EmotionJSX(TableHead, {
|
|
60
|
+
expandable: expandable,
|
|
59
61
|
headerRow: headerRow,
|
|
60
62
|
onSelectRow: onSelectRow,
|
|
61
63
|
onSort: onSort,
|
|
@@ -69,6 +71,7 @@ var DynamicTable = function DynamicTable(_ref) {
|
|
|
69
71
|
stickyHeader: stickyHeader
|
|
70
72
|
}), ___EmotionJSX(TableBody, {
|
|
71
73
|
activeRow: activeRow,
|
|
74
|
+
expandable: expandable,
|
|
72
75
|
headerRow: headerRow,
|
|
73
76
|
onClickRow: onClickRow,
|
|
74
77
|
onSelectRow: onSelectRow,
|
|
@@ -7,14 +7,21 @@ export declare type Header = {
|
|
|
7
7
|
textAlign?: 'center' | 'left' | 'right';
|
|
8
8
|
width?: string;
|
|
9
9
|
};
|
|
10
|
+
export declare type SubRow = {
|
|
11
|
+
className?: string;
|
|
12
|
+
id?: string;
|
|
13
|
+
[name: string]: any;
|
|
14
|
+
};
|
|
10
15
|
export declare type Row = {
|
|
11
16
|
className?: string;
|
|
12
17
|
id?: string;
|
|
18
|
+
subRows?: SubRow[];
|
|
13
19
|
[name: string]: any;
|
|
14
20
|
};
|
|
15
21
|
export declare type DynamicTableProps = {
|
|
16
22
|
activeRow?: string;
|
|
17
23
|
descending?: boolean;
|
|
24
|
+
expandable?: boolean;
|
|
18
25
|
headerRow: Header[];
|
|
19
26
|
height?: string;
|
|
20
27
|
isLoading?: boolean;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { TableHeadProps } from './TableHead.types';
|
|
3
|
-
declare const TableHead: React.MemoExoticComponent<({ headerRow, onSelectRow, onSort, rows, selectableRows, selectedRows, setSortDescending, setSortByKeyValue, sortDescending, sortByKeyValue, stickyHeader, }: TableHeadProps) => JSX.Element>;
|
|
3
|
+
declare const TableHead: React.MemoExoticComponent<({ expandable, headerRow, onSelectRow, onSort, rows, selectableRows, selectedRows, setSortDescending, setSortByKeyValue, sortDescending, sortByKeyValue, stickyHeader, }: TableHeadProps) => JSX.Element>;
|
|
4
4
|
export default TableHead;
|
|
@@ -5,7 +5,8 @@ import { chevronStyles, tableHeadCellCheckboxStyles, tableHeadCellStyles } from
|
|
|
5
5
|
import { genericTableRowStyles } from '../Body/TableRow.styles';
|
|
6
6
|
import { jsx as ___EmotionJSX } from "@emotion/react";
|
|
7
7
|
var TableHead = /*#__PURE__*/React.memo(function (_ref) {
|
|
8
|
-
var
|
|
8
|
+
var expandable = _ref.expandable,
|
|
9
|
+
headerRow = _ref.headerRow,
|
|
9
10
|
onSelectRow = _ref.onSelectRow,
|
|
10
11
|
onSort = _ref.onSort,
|
|
11
12
|
rows = _ref.rows,
|
|
@@ -37,7 +38,7 @@ var TableHead = /*#__PURE__*/React.memo(function (_ref) {
|
|
|
37
38
|
}, [onSort, setSortDescending, setSortByKeyValue, sortDescending]);
|
|
38
39
|
return ___EmotionJSX("thead", null, ___EmotionJSX("tr", {
|
|
39
40
|
css: genericTableRowStyles
|
|
40
|
-
}, selectableRows && ___EmotionJSX("th", {
|
|
41
|
+
}, expandable && ___EmotionJSX("th", null), selectableRows && ___EmotionJSX("th", {
|
|
41
42
|
css: tableHeadCellCheckboxStyles({
|
|
42
43
|
stickyHeader: stickyHeader
|
|
43
44
|
})
|
|
@@ -1,7 +1,7 @@
|
|
|
1
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); }
|
|
2
2
|
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; }
|
|
3
3
|
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; }
|
|
4
|
-
function _defineProperty(
|
|
4
|
+
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; }
|
|
5
5
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
6
6
|
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); }
|
|
7
7
|
import { theme } from '@dfds-ui/theme';
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
function _toConsumableArray(
|
|
1
|
+
function _toConsumableArray(r) { return _arrayWithoutHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray(r) || _nonIterableSpread(); }
|
|
2
2
|
function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
3
|
-
function _unsupportedIterableToArray(
|
|
4
|
-
function _iterableToArray(
|
|
5
|
-
function _arrayWithoutHoles(
|
|
6
|
-
function _arrayLikeToArray(
|
|
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 _iterableToArray(r) { if ("undefined" != typeof Symbol && null != r[Symbol.iterator] || null != r["@@iterator"]) return Array.from(r); }
|
|
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++) { n[e] = r[e]; } return n; }
|
|
7
7
|
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)."; }
|
|
8
8
|
import React from 'react';
|
|
9
9
|
import { Skeleton } from '@dfds-ui/react-components';
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { jsx as ___EmotionJSX } from "@emotion/react";
|
|
3
|
+
var Currency = function Currency() {
|
|
4
|
+
return ___EmotionJSX("span", {
|
|
5
|
+
style: {
|
|
6
|
+
fontSize: '10px'
|
|
7
|
+
}
|
|
8
|
+
}, "EUR");
|
|
9
|
+
};
|
|
10
|
+
var tableRowsExpandable = [{
|
|
11
|
+
id: '1001',
|
|
12
|
+
pallets: 10,
|
|
13
|
+
from: 'Copenhagen',
|
|
14
|
+
to: 'Stockholm',
|
|
15
|
+
price: ___EmotionJSX(React.Fragment, null, ___EmotionJSX(Currency, null), " ", ___EmotionJSX("strong", null, "200"))
|
|
16
|
+
}, {
|
|
17
|
+
id: '1002',
|
|
18
|
+
pallets: 41,
|
|
19
|
+
from: 'Istanbul',
|
|
20
|
+
to: 'London',
|
|
21
|
+
price: ___EmotionJSX(React.Fragment, null, ___EmotionJSX(Currency, null), " ", ___EmotionJSX("strong", null, "320"))
|
|
22
|
+
}, {
|
|
23
|
+
id: '1003',
|
|
24
|
+
pallets: 9,
|
|
25
|
+
from: 'Delphi',
|
|
26
|
+
to: 'Madrid',
|
|
27
|
+
price: ___EmotionJSX(React.Fragment, null, ___EmotionJSX(Currency, null), " ", ___EmotionJSX("strong", null, "1574")),
|
|
28
|
+
subRows: [{
|
|
29
|
+
id: '1004',
|
|
30
|
+
pallets: 52,
|
|
31
|
+
from: 'Stockholm',
|
|
32
|
+
to: 'Amsterdam',
|
|
33
|
+
price: ___EmotionJSX(React.Fragment, null, ___EmotionJSX(Currency, null), " ", ___EmotionJSX("strong", null, "945.50"))
|
|
34
|
+
}, {
|
|
35
|
+
id: '1005',
|
|
36
|
+
pallets: 4,
|
|
37
|
+
from: 'London',
|
|
38
|
+
to: 'Paris',
|
|
39
|
+
price: ___EmotionJSX(React.Fragment, null, ___EmotionJSX(Currency, null), " ", ___EmotionJSX("strong", null, "850"))
|
|
40
|
+
}]
|
|
41
|
+
}, {
|
|
42
|
+
id: '1006',
|
|
43
|
+
pallets: 33,
|
|
44
|
+
from: 'Madrid',
|
|
45
|
+
to: 'Berlin',
|
|
46
|
+
price: ___EmotionJSX(React.Fragment, null, ___EmotionJSX(Currency, null), " ", ___EmotionJSX("strong", null, "2000"))
|
|
47
|
+
}, {
|
|
48
|
+
id: '1007',
|
|
49
|
+
pallets: 17,
|
|
50
|
+
from: 'Berlin',
|
|
51
|
+
to: 'Oslo',
|
|
52
|
+
price: ___EmotionJSX(React.Fragment, null, ___EmotionJSX(Currency, null), " ", ___EmotionJSX("strong", null, "887")),
|
|
53
|
+
subRows: [{
|
|
54
|
+
id: '1008',
|
|
55
|
+
pallets: 14,
|
|
56
|
+
from: 'Oslo',
|
|
57
|
+
to: 'Cairo',
|
|
58
|
+
price: ___EmotionJSX(React.Fragment, null, ___EmotionJSX(Currency, null), " ", ___EmotionJSX("strong", null, "2400"))
|
|
59
|
+
}]
|
|
60
|
+
}, {
|
|
61
|
+
id: '1009',
|
|
62
|
+
pallets: 23,
|
|
63
|
+
from: 'Paris',
|
|
64
|
+
to: 'Rome',
|
|
65
|
+
price: ___EmotionJSX(React.Fragment, null, ___EmotionJSX(Currency, null), " ", ___EmotionJSX("strong", null, "1280.30"))
|
|
66
|
+
}];
|
|
67
|
+
export default tableRowsExpandable;
|
package/footer/Footer.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7;
|
|
2
2
|
var _excluded = ["topElement", "children", "metaLinks", "features"];
|
|
3
|
-
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (
|
|
4
|
-
function _taggedTemplateLiteral(
|
|
5
|
-
function _objectWithoutProperties(
|
|
6
|
-
function _objectWithoutPropertiesLoose(
|
|
3
|
+
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) { ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } } return n; }, _extends.apply(null, arguments); }
|
|
4
|
+
function _taggedTemplateLiteral(e, t) { return t || (t = e.slice(0)), Object.freeze(Object.defineProperties(e, { raw: { value: Object.freeze(t) } })); }
|
|
5
|
+
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; }
|
|
6
|
+
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; }
|
|
7
7
|
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)."; }
|
|
8
8
|
import React from 'react';
|
|
9
9
|
import { theme, media, useBreakpoint } from '@dfds-ui/theme';
|
package/footer/FooterColumn.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
var _templateObject;
|
|
2
2
|
var _excluded = ["children", "title"];
|
|
3
|
-
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (
|
|
4
|
-
function _taggedTemplateLiteral(
|
|
5
|
-
function _objectWithoutProperties(
|
|
6
|
-
function _objectWithoutPropertiesLoose(
|
|
3
|
+
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) { ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } } return n; }, _extends.apply(null, arguments); }
|
|
4
|
+
function _taggedTemplateLiteral(e, t) { return t || (t = e.slice(0)), Object.freeze(Object.defineProperties(e, { raw: { value: Object.freeze(t) } })); }
|
|
5
|
+
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; }
|
|
6
|
+
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; }
|
|
7
7
|
import React from 'react';
|
|
8
8
|
import { FlexBox } from '@dfds-ui/react-components/flexbox';
|
|
9
9
|
import { Text } from '@dfds-ui/typography';
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
var _templateObject;
|
|
2
2
|
var _excluded = ["children", "className"];
|
|
3
|
-
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (
|
|
4
|
-
function _taggedTemplateLiteral(
|
|
5
|
-
function _objectWithoutProperties(
|
|
6
|
-
function _objectWithoutPropertiesLoose(
|
|
3
|
+
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) { ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } } return n; }, _extends.apply(null, arguments); }
|
|
4
|
+
function _taggedTemplateLiteral(e, t) { return t || (t = e.slice(0)), Object.freeze(Object.defineProperties(e, { raw: { value: Object.freeze(t) } })); }
|
|
5
|
+
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; }
|
|
6
|
+
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; }
|
|
7
7
|
import React from 'react';
|
|
8
8
|
import { theme, media } from '@dfds-ui/theme';
|
|
9
9
|
import { css } from '@emotion/react';
|
package/footer/FooterMetaLink.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
var _excluded = ["children", "className"];
|
|
2
|
-
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (
|
|
3
|
-
function _objectWithoutProperties(
|
|
4
|
-
function _objectWithoutPropertiesLoose(
|
|
2
|
+
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) { ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } } return n; }, _extends.apply(null, arguments); }
|
|
3
|
+
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; }
|
|
4
|
+
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; }
|
|
5
5
|
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)."; }
|
|
6
6
|
import React from 'react';
|
|
7
7
|
import { theme, media } from '@dfds-ui/theme';
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { css as _css } from "@emotion/react";
|
|
2
2
|
var _excluded = ["heading", "description", "goToFrontPageText", "openPageInEdgeText", "headerClassName", "noContentPadding", "column", "zIndex", "sizes", "canClose", "closeTabIndex", "onRequestClose", "onCompatibleBrowserDetected"];
|
|
3
|
-
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (
|
|
3
|
+
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) { ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } } return n; }, _extends.apply(null, arguments); }
|
|
4
4
|
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)."; }
|
|
5
|
-
function _slicedToArray(
|
|
5
|
+
function _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }
|
|
6
6
|
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."); }
|
|
7
|
-
function _unsupportedIterableToArray(
|
|
8
|
-
function _arrayLikeToArray(
|
|
7
|
+
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; } }
|
|
8
|
+
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; }
|
|
9
9
|
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; } }
|
|
10
|
-
function _arrayWithHoles(
|
|
11
|
-
function _objectWithoutProperties(
|
|
12
|
-
function _objectWithoutPropertiesLoose(
|
|
10
|
+
function _arrayWithHoles(r) { if (Array.isArray(r)) return r; }
|
|
11
|
+
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; }
|
|
12
|
+
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; }
|
|
13
13
|
import React from 'react';
|
|
14
14
|
import { SmallHeadline } from '@dfds-ui/react-components';
|
|
15
15
|
import { ModalHeader, ModalDialog, ModalBody, defaultProps, ModalActionsContainer, ModalAction, ModalCloseButton } from '@dfds-ui/modal';
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
var _templateObject;
|
|
2
|
-
function _taggedTemplateLiteral(
|
|
3
|
-
function _slicedToArray(
|
|
2
|
+
function _taggedTemplateLiteral(e, t) { return t || (t = e.slice(0)), Object.freeze(Object.defineProperties(e, { raw: { value: Object.freeze(t) } })); }
|
|
3
|
+
function _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }
|
|
4
4
|
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
|
-
function _unsupportedIterableToArray(
|
|
6
|
-
function _arrayLikeToArray(
|
|
5
|
+
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++) { n[e] = r[e]; } return n; }
|
|
7
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) { ; } } 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
|
-
function _arrayWithHoles(
|
|
8
|
+
function _arrayWithHoles(r) { if (Array.isArray(r)) return r; }
|
|
9
9
|
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)."; }
|
|
10
10
|
import React, { useState, forwardRef } from 'react';
|
|
11
11
|
import { LinkButton, localeData, LocaleFlag, locales as allLocales } from '@dfds-ui/react-components';
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"description": "React components for building experiences",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"private": false,
|
|
6
|
-
"version": "2.0.29-alpha.
|
|
6
|
+
"version": "2.0.29-alpha.d8ff8a45",
|
|
7
7
|
"sideEffects": false,
|
|
8
8
|
"main": "./cjs/index.js",
|
|
9
9
|
"module": "./index.js",
|
|
@@ -16,16 +16,16 @@
|
|
|
16
16
|
"react-dom": ">= 17.0.2"
|
|
17
17
|
},
|
|
18
18
|
"dependencies": {
|
|
19
|
-
"@dfds-ui/colors": "2.0.29-alpha.
|
|
20
|
-
"@dfds-ui/forms": "2.0.29-alpha.
|
|
21
|
-
"@dfds-ui/grid": "2.0.29-alpha.
|
|
22
|
-
"@dfds-ui/icons": "2.0.29-alpha.
|
|
23
|
-
"@dfds-ui/modal": "2.0.29-alpha.
|
|
24
|
-
"@dfds-ui/react-components": "2.0.29-alpha.
|
|
25
|
-
"@dfds-ui/theme": "2.0.29-alpha.
|
|
26
|
-
"@dfds-ui/typography": "2.0.29-alpha.
|
|
19
|
+
"@dfds-ui/colors": "2.0.29-alpha.d8ff8a45",
|
|
20
|
+
"@dfds-ui/forms": "2.0.29-alpha.d8ff8a45",
|
|
21
|
+
"@dfds-ui/grid": "2.0.29-alpha.d8ff8a45",
|
|
22
|
+
"@dfds-ui/icons": "2.0.29-alpha.d8ff8a45",
|
|
23
|
+
"@dfds-ui/modal": "2.0.29-alpha.d8ff8a45",
|
|
24
|
+
"@dfds-ui/react-components": "2.0.29-alpha.d8ff8a45",
|
|
25
|
+
"@dfds-ui/theme": "2.0.29-alpha.d8ff8a45",
|
|
26
|
+
"@dfds-ui/typography": "2.0.29-alpha.d8ff8a45"
|
|
27
27
|
},
|
|
28
|
-
"gitHead": "
|
|
28
|
+
"gitHead": "d8ff8a45b9cee86c722974b50fbc84e777a8b49e",
|
|
29
29
|
"publishConfig": {
|
|
30
30
|
"access": "public"
|
|
31
31
|
}
|