@dfds-ui/experiences 0.9.16-alpha.7ea9a773 → 0.9.16-alpha.affd8472

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.
Files changed (43) hide show
  1. package/cjs/dynamic-table/Body/TableBody.d.ts +4 -0
  2. package/cjs/dynamic-table/Body/TableBody.js +2 -2
  3. package/cjs/dynamic-table/Body/TableBody.types.d.ts +10 -0
  4. package/cjs/dynamic-table/Body/TableCell.d.ts +4 -0
  5. package/cjs/dynamic-table/Body/TableCell.js +1 -1
  6. package/cjs/dynamic-table/Body/TableCell.styles.d.ts +16 -0
  7. package/cjs/dynamic-table/Body/TableCell.types.d.ts +7 -0
  8. package/cjs/dynamic-table/Body/TableRow.d.ts +4 -0
  9. package/cjs/dynamic-table/Body/TableRow.js +2 -3
  10. package/cjs/dynamic-table/Body/TableRow.styles.d.ts +10 -0
  11. package/cjs/dynamic-table/Body/TableRow.types.d.ts +10 -0
  12. package/cjs/dynamic-table/DynamicTable.d.ts +4 -0
  13. package/cjs/dynamic-table/DynamicTable.js +1 -4
  14. package/cjs/dynamic-table/DynamicTable.styles.d.ts +12 -0
  15. package/cjs/dynamic-table/DynamicTable.types.d.ts +26 -0
  16. package/cjs/dynamic-table/Head/TableHead.d.ts +4 -0
  17. package/cjs/dynamic-table/Head/TableHead.styles.d.ts +24 -0
  18. package/cjs/dynamic-table/Head/TableHead.types.d.ts +35 -0
  19. package/cjs/dynamic-table/Skeleton/SkeletonTable.styles.d.ts +4 -0
  20. package/cjs/dynamic-table/Skeleton/helpers/createSkeletonRows.d.ts +3 -0
  21. package/cjs/dynamic-table/Skeleton/helpers/createSkeletonRows.js +13 -12
  22. package/cjs/dynamic-table/helpers/getHeaderRow.d.ts +3 -0
  23. package/cjs/footer/Footer.d.ts +23 -0
  24. package/cjs/footer/FooterColumn.d.ts +11 -0
  25. package/cjs/footer/FooterColumnItem.d.ts +7 -0
  26. package/cjs/footer/FooterMetaLink.d.ts +7 -0
  27. package/cjs/footer/index.d.ts +4 -0
  28. package/cjs/index.d.ts +5 -0
  29. package/cjs/internet-explorer-modal/IEModal.d.ts +69 -0
  30. package/cjs/locale-selector/LocaleOption.d.ts +8 -0
  31. package/cjs/locale-selector/LocaleSelector.d.ts +49 -0
  32. package/cjs/locale-selector/index.d.ts +1 -0
  33. package/cjs/swiper/Swiper.d.ts +5 -0
  34. package/cjs/swiper/SwiperCard.d.ts +5 -0
  35. package/cjs/swiper/index.d.ts +2 -0
  36. package/dynamic-table/Body/TableBody.js +2 -2
  37. package/dynamic-table/Body/TableCell.js +1 -1
  38. package/dynamic-table/Body/TableRow.js +2 -3
  39. package/dynamic-table/DynamicTable.js +1 -4
  40. package/dynamic-table/DynamicTable.types.d.ts +0 -3
  41. package/dynamic-table/Skeleton/helpers/createSkeletonRows.d.ts +2 -5
  42. package/dynamic-table/Skeleton/helpers/createSkeletonRows.js +12 -15
  43. package/package.json +9 -9
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ import { TableBodyProps } from './TableBody.types';
3
+ declare const TableBody: React.MemoExoticComponent<({ activeRowId, headerRow, onClickRow, onSelectFunction, rows, selectableRows, selectedRows }: TableBodyProps) => JSX.Element>;
4
+ export default TableBody;
@@ -41,10 +41,10 @@ const TableBody = /*#__PURE__*/_react.default.memo(({
41
41
  }
42
42
  }
43
43
  }, [selectableRows, selectedRows]);
44
- return (0, _react2.jsx)("tbody", null, rows.map(row => (0, _react2.jsx)(_TableRow.default, {
44
+ return (0, _react2.jsx)("tbody", null, rows.map((row, index) => (0, _react2.jsx)(_TableRow.default, {
45
45
  headerRow: headerRow,
46
46
  isActive: activeRowId ? row.id === activeRowId : undefined,
47
- key: row.id,
47
+ key: index,
48
48
  onClickRow: onClickRow,
49
49
  onSelectRow: updateSelectedRows,
50
50
  row: row,
@@ -0,0 +1,10 @@
1
+ import { Header, Row } from '../DynamicTable.types';
2
+ export declare type TableBodyProps = {
3
+ activeRowId?: string;
4
+ headerRow: Header[];
5
+ onClickRow?: (id: string) => void;
6
+ onSelectFunction?: (list: string[]) => void;
7
+ rows: Row[];
8
+ selectableRows: boolean;
9
+ selectedRows: string[];
10
+ };
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ import { TableCellProps } from './TableCell.types';
3
+ declare const TableCell: React.MemoExoticComponent<({ children, columnCount, headerCell, onSelectFunction }: TableCellProps) => JSX.Element>;
4
+ export default TableCell;
@@ -22,7 +22,7 @@ const TableCell = /*#__PURE__*/_react.default.memo(({
22
22
  align: headerCell === null || headerCell === void 0 ? void 0 : headerCell.textAlign,
23
23
  columns: columnCount,
24
24
  customColumnWidth: headerCell === null || headerCell === void 0 ? void 0 : headerCell.customColumnWidth,
25
- "data-cy": headerCell === null || headerCell === void 0 ? void 0 : headerCell.key,
25
+ "data-cy": `dynamic-table-cell-${headerCell === null || headerCell === void 0 ? void 0 : headerCell.key}`,
26
26
  hasOnSelectFunction: !!onSelectFunction
27
27
  }, children));
28
28
 
@@ -0,0 +1,16 @@
1
+ export declare const genericTableCellStyle: import("@emotion/react").SerializedStyles;
2
+ declare type TableCellProps = {
3
+ align?: 'center' | 'left' | 'right';
4
+ columns: number;
5
+ customColumnWidth?: string;
6
+ hasOnSelectFunction: boolean;
7
+ };
8
+ export declare const TableCellStyled: import("@emotion/styled").StyledComponent<{
9
+ theme?: import("@emotion/react").Theme | undefined;
10
+ as?: import("react").ElementType<any> | undefined;
11
+ } & TableCellProps, import("react").DetailedHTMLProps<import("react").TdHTMLAttributes<HTMLTableDataCellElement>, HTMLTableDataCellElement>, {}>;
12
+ export declare const TableCellCheckboxStyled: import("@emotion/styled").StyledComponent<{
13
+ theme?: import("@emotion/react").Theme | undefined;
14
+ as?: import("react").ElementType<any> | undefined;
15
+ }, import("react").DetailedHTMLProps<import("react").TdHTMLAttributes<HTMLTableDataCellElement>, HTMLTableDataCellElement>, {}>;
16
+ export {};
@@ -0,0 +1,7 @@
1
+ import { Header } from '../DynamicTable.types';
2
+ export declare type TableCellProps = {
3
+ children: React.ReactNode;
4
+ columnCount: number;
5
+ headerCell?: Header;
6
+ onSelectFunction?: (list: string[]) => void;
7
+ };
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ import { TableRowProps } from './TableRow.types';
3
+ declare const TableRow: React.MemoExoticComponent<({ headerRow, isActive, onClickRow, onSelectRow, row, selectableRows, selectedRows }: TableRowProps) => JSX.Element>;
4
+ export default TableRow;
@@ -29,9 +29,8 @@ const TableRow = /*#__PURE__*/_react.default.memo(({
29
29
  selectedRows
30
30
  }) => (0, _react2.jsx)(_TableRow.TableRowStyled, {
31
31
  active: isActive,
32
- className: `dynamicTableRow-${row.id}`,
33
32
  hoverColor: !!onClickRow,
34
- onClick: () => onClickRow && onClickRow(row.id || '')
33
+ onClick: () => onClickRow && onClickRow(row.id ? String(row.id) : '')
35
34
  }, selectableRows && row.id && (0, _react2.jsx)(_TableCell2.TableCellCheckboxStyled, null, (0, _react2.jsx)(_forms.Checkbox, {
36
35
  checked: selectedRows.includes(row.id),
37
36
  name: row.id,
@@ -46,7 +45,7 @@ const TableRow = /*#__PURE__*/_react.default.memo(({
46
45
  columnCount: headerRow.length,
47
46
  headerCell: headerRow === null || headerRow === void 0 ? void 0 : headerRow[index],
48
47
  key: index
49
- }, row[headerCell.key]))));
48
+ }, row[headerCell.key] || '-'))));
50
49
 
51
50
  var _default = TableRow;
52
51
  exports.default = _default;
@@ -0,0 +1,10 @@
1
+ export declare const genericTableRowStyle: import("@emotion/react").SerializedStyles;
2
+ declare type TableRowProps = {
3
+ active?: boolean;
4
+ hoverColor: boolean;
5
+ };
6
+ export declare const TableRowStyled: import("@emotion/styled").StyledComponent<{
7
+ theme?: import("@emotion/react").Theme | undefined;
8
+ as?: import("react").ElementType<any> | undefined;
9
+ } & TableRowProps, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLTableRowElement>, HTMLTableRowElement>, {}>;
10
+ export {};
@@ -0,0 +1,10 @@
1
+ import { Header, Row } from '../DynamicTable.types';
2
+ export declare type TableRowProps = {
3
+ headerRow: Header[];
4
+ isActive?: boolean;
5
+ onClickRow?: (id: string) => void;
6
+ onSelectRow: (id: string) => void;
7
+ row: Row;
8
+ selectableRows?: boolean;
9
+ selectedRows: string[];
10
+ };
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ import { DynamicTableProps } from './DynamicTable.types';
3
+ declare const _default: React.NamedExoticComponent<DynamicTableProps>;
4
+ export default _default;
@@ -39,7 +39,6 @@ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
39
39
 
40
40
  const DynamicTable = ({
41
41
  activeRowId,
42
- className,
43
42
  clickRowHandler,
44
43
  descending,
45
44
  fixedHeight,
@@ -72,9 +71,7 @@ const DynamicTable = ({
72
71
  }, [sortDescending, onSortByKey, sortByKeyValue]);
73
72
  return (0, _react2.jsx)(_DynamicTable.TableWrapperStyled, {
74
73
  fixedHeight: fixedHeight
75
- }, (0, _react2.jsx)(_DynamicTable.TableStyled, {
76
- className: className
77
- }, headerRow && (0, _react2.jsx)(_TableHead.default, {
74
+ }, (0, _react2.jsx)(_DynamicTable.TableStyled, null, headerRow && (0, _react2.jsx)(_TableHead.default, {
78
75
  headerRow: headerRow,
79
76
  onSelectFunction: onSelectFunction,
80
77
  onSortByKey: onSortByKey,
@@ -0,0 +1,12 @@
1
+ declare type TableWrapperProps = {
2
+ fixedHeight?: string;
3
+ };
4
+ export declare const TableWrapperStyled: import("@emotion/styled").StyledComponent<{
5
+ theme?: import("@emotion/react").Theme | undefined;
6
+ as?: import("react").ElementType<any> | undefined;
7
+ } & TableWrapperProps, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
8
+ export declare const TableStyled: import("@emotion/styled").StyledComponent<{
9
+ theme?: import("@emotion/react").Theme | undefined;
10
+ as?: import("react").ElementType<any> | undefined;
11
+ }, import("react").DetailedHTMLProps<import("react").TableHTMLAttributes<HTMLTableElement>, HTMLTableElement>, {}>;
12
+ export {};
@@ -0,0 +1,26 @@
1
+ export declare type Header = {
2
+ customColumnWidth?: string;
3
+ displayName: string;
4
+ key: string;
5
+ sortable?: boolean;
6
+ sortKey?: string;
7
+ textAlign?: 'center' | 'left' | 'right';
8
+ };
9
+ export declare type Row = {
10
+ [name: string]: any;
11
+ };
12
+ export declare type DynamicTableProps = {
13
+ activeRowId?: string;
14
+ clickRowHandler?: (id: string) => void;
15
+ descending?: boolean;
16
+ fixedHeight?: string;
17
+ headerRow: Header[];
18
+ isLoading?: boolean;
19
+ onSelectFunction?: (list: string[]) => void;
20
+ onSortByKey?: (value: string, sortDescending: boolean) => void;
21
+ rows: Row[];
22
+ selectedRows?: string[];
23
+ sortingBy?: string;
24
+ stickyHeader?: boolean;
25
+ urlSortValue?: string | null;
26
+ };
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ import { TableHeadProps } from './TableHead.types';
3
+ declare const TableHead: React.MemoExoticComponent<({ headerRow, onSelectFunction, onSortByKey, rows, selectableRows, selectedRows, setSortDescending, setSortByKeyValue, sortDescending, sortByKeyValue, stickyHeader, }: TableHeadProps) => JSX.Element>;
4
+ export default TableHead;
@@ -0,0 +1,24 @@
1
+ import { ChevronProps, GenericTableHeadCellProps, TableHeadCellCheckboxProps, TableHeadCellProps } from './TableHead.types';
2
+ export declare const TableHeadRow: import("@emotion/styled").StyledComponent<{
3
+ theme?: import("@emotion/react").Theme | undefined;
4
+ as?: import("react").ElementType<any> | undefined;
5
+ }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLTableRowElement>, HTMLTableRowElement>, {}>;
6
+ export declare const TableHeadCellStyled: import("@emotion/styled").StyledComponent<{
7
+ theme?: import("@emotion/react").Theme | undefined;
8
+ as?: import("react").ElementType<any> | undefined;
9
+ } & GenericTableHeadCellProps & import("react").ClassAttributes<HTMLTableHeaderCellElement> & import("react").ThHTMLAttributes<HTMLTableHeaderCellElement> & {
10
+ children?: import("react").ReactNode;
11
+ } & {
12
+ theme?: import("@emotion/react").Theme | undefined;
13
+ } & TableHeadCellProps, {}, {}>;
14
+ export declare const TableHeadCellCheckboxStyled: import("@emotion/styled").StyledComponent<{
15
+ theme?: import("@emotion/react").Theme | undefined;
16
+ as?: import("react").ElementType<any> | undefined;
17
+ } & GenericTableHeadCellProps & import("react").ClassAttributes<HTMLTableHeaderCellElement> & import("react").ThHTMLAttributes<HTMLTableHeaderCellElement> & {
18
+ children?: import("react").ReactNode;
19
+ } & {
20
+ theme?: import("@emotion/react").Theme | undefined;
21
+ } & TableHeadCellCheckboxProps, {}, {}>;
22
+ export declare const ChevronStyled: import("@emotion/styled").StyledComponent<Pick<import("react").SVGProps<SVGSVGElement>, "string" | "filter" | "values" | "fill" | "max" | "type" | "accumulate" | "offset" | "key" | "id" | "media" | "origin" | "height" | "width" | "end" | "name" | "alignmentBaseline" | "baselineShift" | "clip" | "clipPath" | "clipRule" | "color" | "colorInterpolation" | "colorInterpolationFilters" | "cursor" | "direction" | "display" | "dominantBaseline" | "fillOpacity" | "fillRule" | "floodColor" | "floodOpacity" | "fontFamily" | "fontSize" | "fontSizeAdjust" | "fontStretch" | "fontStyle" | "fontVariant" | "fontWeight" | "imageRendering" | "letterSpacing" | "lightingColor" | "markerEnd" | "markerMid" | "markerStart" | "mask" | "opacity" | "order" | "overflow" | "paintOrder" | "pointerEvents" | "rotate" | "scale" | "shapeRendering" | "stopColor" | "stopOpacity" | "stroke" | "strokeDasharray" | "strokeDashoffset" | "strokeLinecap" | "strokeLinejoin" | "strokeMiterlimit" | "strokeOpacity" | "strokeWidth" | "textAnchor" | "textDecoration" | "textRendering" | "transform" | "unicodeBidi" | "visibility" | "wordSpacing" | "writingMode" | "alphabetic" | "hanging" | "ideographic" | "style" | "path" | "method" | "target" | "lang" | "className" | "children" | "tabIndex" | "orientation" | "local" | "x" | "y" | "mathematical" | "azimuth" | "colorRendering" | "glyphOrientationVertical" | "vectorEffect" | "additive" | "unicodeRange" | "crossOrigin" | "href" | "min" | "role" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "accentHeight" | "allowReorder" | "amplitude" | "arabicForm" | "ascent" | "attributeName" | "attributeType" | "autoReverse" | "baseFrequency" | "baseProfile" | "bbox" | "begin" | "bias" | "by" | "calcMode" | "capHeight" | "clipPathUnits" | "colorProfile" | "contentScriptType" | "contentStyleType" | "cx" | "cy" | "d" | "decelerate" | "descent" | "diffuseConstant" | "divisor" | "dur" | "dx" | "dy" | "edgeMode" | "elevation" | "enableBackground" | "exponent" | "externalResourcesRequired" | "filterRes" | "filterUnits" | "focusable" | "format" | "from" | "fx" | "fy" | "g1" | "g2" | "glyphName" | "glyphOrientationHorizontal" | "glyphRef" | "gradientTransform" | "gradientUnits" | "horizAdvX" | "horizOriginX" | "in2" | "in" | "intercept" | "k1" | "k2" | "k3" | "k4" | "k" | "kernelMatrix" | "kernelUnitLength" | "kerning" | "keyPoints" | "keySplines" | "keyTimes" | "lengthAdjust" | "limitingConeAngle" | "markerHeight" | "markerUnits" | "markerWidth" | "maskContentUnits" | "maskUnits" | "mode" | "numOctaves" | "operator" | "orient" | "overlinePosition" | "overlineThickness" | "panose1" | "pathLength" | "patternContentUnits" | "patternTransform" | "patternUnits" | "points" | "pointsAtX" | "pointsAtY" | "pointsAtZ" | "preserveAlpha" | "preserveAspectRatio" | "primitiveUnits" | "r" | "radius" | "refX" | "refY" | "renderingIntent" | "repeatCount" | "repeatDur" | "requiredExtensions" | "requiredFeatures" | "restart" | "result" | "rx" | "ry" | "seed" | "slope" | "spacing" | "specularConstant" | "specularExponent" | "speed" | "spreadMethod" | "startOffset" | "stdDeviation" | "stemh" | "stemv" | "stitchTiles" | "strikethroughPosition" | "strikethroughThickness" | "surfaceScale" | "systemLanguage" | "tableValues" | "targetX" | "targetY" | "textLength" | "to" | "u1" | "u2" | "underlinePosition" | "underlineThickness" | "unicode" | "unitsPerEm" | "vAlphabetic" | "version" | "vertAdvY" | "vertOriginX" | "vertOriginY" | "vHanging" | "vIdeographic" | "viewBox" | "viewTarget" | "vMathematical" | "widths" | "x1" | "x2" | "xChannelSelector" | "xHeight" | "xlinkActuate" | "xlinkArcrole" | "xlinkHref" | "xlinkRole" | "xlinkShow" | "xlinkTitle" | "xlinkType" | "xmlBase" | "xmlLang" | "xmlns" | "xmlnsXlink" | "xmlSpace" | "y1" | "y2" | "yChannelSelector" | "z" | "zoomAndPan" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "css"> & import("react").RefAttributes<SVGSVGElement> & {
23
+ theme?: import("@emotion/react").Theme | undefined;
24
+ } & ChevronProps, {}, {}>;
@@ -0,0 +1,35 @@
1
+ import { Header, Row } from '../DynamicTable.types';
2
+ export declare type TableHeadProps = {
3
+ headerRow: Header[];
4
+ onSelectFunction?: (list: string[]) => void;
5
+ onSortByKey?: (value: string, sortDescending: boolean) => void;
6
+ rows: Row[];
7
+ selectableRows?: boolean;
8
+ selectedRows: string[];
9
+ setSortDescending: (arg: boolean) => void;
10
+ setSortByKeyValue: (value: string) => void;
11
+ sortDescending: boolean;
12
+ sortByKeyValue: string;
13
+ stickyHeader?: boolean;
14
+ };
15
+ export declare type GenericTableHeadCellProps = {
16
+ sortable?: boolean;
17
+ sortByKey?: (value: string, sortDescending: boolean) => void;
18
+ stickyHeader?: boolean;
19
+ };
20
+ export declare type TableHeadCellProps = {
21
+ align?: 'center' | 'left' | 'right';
22
+ columns: number;
23
+ customColumnWidth?: string;
24
+ hasOnSelectFunction: boolean;
25
+ sortByKey?: (value: string, sortDescending: boolean) => void;
26
+ stickyHeader?: boolean;
27
+ };
28
+ export declare type TableHeadCellCheckboxProps = {
29
+ sortByKey?: (value: string, sortDescending: boolean) => void;
30
+ stickyHeader?: boolean;
31
+ };
32
+ export declare type ChevronProps = {
33
+ descending: string;
34
+ show: string;
35
+ };
@@ -0,0 +1,4 @@
1
+ export declare const Fade: import("@emotion/styled").StyledComponent<{
2
+ theme?: import("@emotion/react").Theme | undefined;
3
+ as?: import("react").ElementType<any> | undefined;
4
+ }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
@@ -0,0 +1,3 @@
1
+ import { Header, Row } from '../../DynamicTable.types';
2
+ declare const createSkeletonRows: (headerRow: Header[] | undefined) => Row[];
3
+ export default createSkeletonRows;
@@ -19,21 +19,22 @@ var _ref = process.env.NODE_ENV === "production" ? {
19
19
  name: "d6ykp6",
20
20
  styles: "height:12px;width:100%"
21
21
  } : {
22
- name: "1u3k8d4-createSkeletonRows",
23
- styles: "height:12px;width:100%;label:createSkeletonRows;",
24
- map: "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL3NyYy9keW5hbWljLXRhYmxlL1NrZWxldG9uL2hlbHBlcnMvY3JlYXRlU2tlbGV0b25Sb3dzLnRzeCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFVZ0IiLCJmaWxlIjoiLi4vLi4vLi4vLi4vLi4vc3JjL2R5bmFtaWMtdGFibGUvU2tlbGV0b24vaGVscGVycy9jcmVhdGVTa2VsZXRvblJvd3MudHN4Iiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IFJlYWN0IGZyb20gJ3JlYWN0J1xuaW1wb3J0IHsgU2tlbGV0b24gfSBmcm9tICdAZGZkcy11aS9yZWFjdC1jb21wb25lbnRzJ1xuaW1wb3J0IHsgY3NzIH0gZnJvbSAnQGVtb3Rpb24vcmVhY3QnXG5cbmltcG9ydCB7IEhlYWRlciB9IGZyb20gJy4uLy4uL0R5bmFtaWNUYWJsZS50eXBlcydcblxuY29uc3QgY3JlYXRlU2tlbGV0b25Sb3dzID0gKGhlYWRlclJvdzogSGVhZGVyW10gfCB1bmRlZmluZWQpID0+XG4gIFsuLi5BcnJheSg3KV0ubWFwKChyb3csIGluZGV4KSA9PiAoe1xuICAgIGNlbGxzOiAoaGVhZGVyUm93IHx8IFsuLi5BcnJheSg1KV0pLm1hcCgoKSA9PiAoXG4gICAgICA8U2tlbGV0b25cbiAgICAgICAgY3NzPXtjc3NgXG4gICAgICAgICAgaGVpZ2h0OiAxMnB4O1xuICAgICAgICAgIHdpZHRoOiAxMDAlO1xuICAgICAgICBgfVxuICAgICAgICBrZXk9e2luZGV4fVxuICAgICAgICB2YXJpYW50PVwidGV4dFwiXG4gICAgICAvPlxuICAgICkpLFxuICAgIGlkOiBpbmRleCArIDEsIC8vIGlkIHNob3VsZCBub3QgYmUgMC5cbiAgfSkpXG5cbmV4cG9ydCBkZWZhdWx0IGNyZWF0ZVNrZWxldG9uUm93c1xuIl19 */",
22
+ name: "d6ykp6",
23
+ styles: "height:12px;width:100%",
24
+ map: "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL3NyYy9keW5hbWljLXRhYmxlL1NrZWxldG9uL2hlbHBlcnMvY3JlYXRlU2tlbGV0b25Sb3dzLnRzeCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFha0IiLCJmaWxlIjoiLi4vLi4vLi4vLi4vLi4vc3JjL2R5bmFtaWMtdGFibGUvU2tlbGV0b24vaGVscGVycy9jcmVhdGVTa2VsZXRvblJvd3MudHN4Iiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IFJlYWN0IGZyb20gJ3JlYWN0J1xuaW1wb3J0IHsgU2tlbGV0b24gfSBmcm9tICdAZGZkcy11aS9yZWFjdC1jb21wb25lbnRzJ1xuaW1wb3J0IHsgY3NzIH0gZnJvbSAnQGVtb3Rpb24vcmVhY3QnXG5cbmltcG9ydCB7IEhlYWRlciwgUm93IH0gZnJvbSAnLi4vLi4vRHluYW1pY1RhYmxlLnR5cGVzJ1xuXG5jb25zdCBjcmVhdGVTa2VsZXRvblJvd3MgPSAoaGVhZGVyUm93OiBIZWFkZXJbXSB8IHVuZGVmaW5lZCkgPT5cbiAgWy4uLkFycmF5KDcpXS5tYXAoKCkgPT4ge1xuICAgIGNvbnN0IHJvdzogUm93ID0ge31cblxuICAgIGhlYWRlclJvdz8uZm9yRWFjaCgoY2VsbCkgPT4ge1xuICAgICAgcm93W2NlbGwua2V5XSA9IChcbiAgICAgICAgPFNrZWxldG9uXG4gICAgICAgICAgY3NzPXtjc3NgXG4gICAgICAgICAgICBoZWlnaHQ6IDEycHg7XG4gICAgICAgICAgICB3aWR0aDogMTAwJTtcbiAgICAgICAgICBgfVxuICAgICAgICAgIHZhcmlhbnQ9XCJ0ZXh0XCJcbiAgICAgICAgLz5cbiAgICAgIClcbiAgICB9KVxuXG4gICAgcmV0dXJuIHJvd1xuICB9KVxuXG5leHBvcnQgZGVmYXVsdCBjcmVhdGVTa2VsZXRvblJvd3NcbiJdfQ== */",
25
25
  toString: _EMOTION_STRINGIFIED_CSS_ERROR__
26
26
  };
27
27
 
28
- const createSkeletonRows = headerRow => [...Array(7)].map((row, index) => ({
29
- cells: (headerRow || [...Array(5)]).map(() => (0, _react2.jsx)(_reactComponents.Skeleton, {
30
- css: _ref,
31
- key: index,
32
- variant: "text"
33
- })),
34
- id: index + 1 // id should not be 0.
35
-
36
- }));
28
+ const createSkeletonRows = headerRow => [...Array(7)].map(() => {
29
+ const row = {};
30
+ headerRow === null || headerRow === void 0 ? void 0 : headerRow.forEach(cell => {
31
+ row[cell.key] = (0, _react2.jsx)(_reactComponents.Skeleton, {
32
+ css: _ref,
33
+ variant: "text"
34
+ });
35
+ });
36
+ return row;
37
+ });
37
38
 
38
39
  var _default = createSkeletonRows;
39
40
  exports.default = _default;
@@ -0,0 +1,3 @@
1
+ import { Header, Row } from '../DynamicTable.types';
2
+ declare const getHeaderRow: (rows: Row[], customHeaderRow?: Header[] | undefined) => Header[];
3
+ export default getHeaderRow;
@@ -0,0 +1,23 @@
1
+ import React from 'react';
2
+ import { FooterMetaLinkProps } from './FooterMetaLink';
3
+ import { FooterColumnProps } from './FooterColumn';
4
+ export declare type FooterProps = {
5
+ /**
6
+ * Content to be displayed above footer columns
7
+ */
8
+ topElement?: React.ReactNode;
9
+ /**
10
+ * Footer columns, if provided, minimum: 1, maximum: 4. Property is optional
11
+ */
12
+ children?: React.ReactElement<FooterColumnProps> | React.ReactElement<FooterColumnProps>[];
13
+ /**
14
+ * Links to be displayed at the bottom right corner
15
+ */
16
+ metaLinks?: React.ReactElement<FooterMetaLinkProps> | React.ReactElement<FooterMetaLinkProps>[];
17
+ /**
18
+ * Content to be display between footer columns and meta links e.g. locale selector, social links.
19
+ */
20
+ features?: React.ReactNode;
21
+ };
22
+ export declare const Footer: React.FunctionComponent<FooterProps>;
23
+ export default Footer;
@@ -0,0 +1,11 @@
1
+ import { FC, ReactElement, ReactNode } from 'react';
2
+ import { FooterColumnItemProps } from './FooterColumnItem';
3
+ export declare type FooterColumnProps = {
4
+ children: ReactElement<FooterColumnItemProps> | ReactElement<FooterColumnItemProps>[];
5
+ /**
6
+ * Column title
7
+ */
8
+ title?: ReactNode;
9
+ };
10
+ export declare const FooterColumn: FC<FooterColumnProps>;
11
+ export default FooterColumn;
@@ -0,0 +1,7 @@
1
+ import { FC } from 'react';
2
+ import { LinkButtonProps } from '@dfds-ui/react-components';
3
+ export declare type FooterColumnItemProps = {
4
+ className?: string;
5
+ } & LinkButtonProps;
6
+ export declare const FooterColumnItem: FC<FooterColumnItemProps>;
7
+ export default FooterColumnItem;
@@ -0,0 +1,7 @@
1
+ import { FC } from 'react';
2
+ import { LinkButtonProps } from '@dfds-ui/react-components';
3
+ export declare type FooterMetaLinkProps = {
4
+ className?: string;
5
+ } & LinkButtonProps;
6
+ export declare const FooterMetaLink: FC<FooterMetaLinkProps>;
7
+ export default FooterMetaLink;
@@ -0,0 +1,4 @@
1
+ export * from './Footer';
2
+ export * from './FooterColumn';
3
+ export * from './FooterColumnItem';
4
+ export * from './FooterMetaLink';
package/cjs/index.d.ts ADDED
@@ -0,0 +1,5 @@
1
+ export { default as DynamicTable } from './dynamic-table/DynamicTable';
2
+ export { default as IEModal } from './internet-explorer-modal/IEModal';
3
+ export * from './locale-selector';
4
+ export * from './footer';
5
+ export * from './swiper';
@@ -0,0 +1,69 @@
1
+ import React from 'react';
2
+ import { ModalSizes } from '@dfds-ui/modal';
3
+ export declare type IEModalProps = React.PropsWithChildren<{
4
+ className?: string;
5
+ /**
6
+ * Add heading on the Modal.
7
+ */
8
+ heading?: React.ReactNode;
9
+ /**
10
+ * Class name to be added to the header of the Modal.
11
+ */
12
+ headerClassName?: string;
13
+ /**
14
+ * Description to be shown a main text in the modal.
15
+ * Placeholders '{Edge}', '{Chrome}' and '{Firefox}' will be replaced with links to download the individual browser.
16
+ */
17
+ description: string;
18
+ /**
19
+ * Text to be displayed on the 'Go to front page' button
20
+ */
21
+ goToFrontPageText: string;
22
+ /**
23
+ * Text to be displayed on the 'Open page in Microsoft Edge' button
24
+ */
25
+ openPageInEdgeText: string;
26
+ /**
27
+ * Add or remove padding inside the Modal.
28
+ */
29
+ noContentPadding?: boolean;
30
+ /**
31
+ * Add a z-index prop to modal to specify the stack order.
32
+ */
33
+ zIndex?: number;
34
+ /**
35
+ * Display content in a column direction.
36
+ */
37
+ column?: boolean;
38
+ /**
39
+ * Sizes (width) of the modal for the different breakpoints.
40
+ * Apart from normal css units a special value of `fullscreen` is also
41
+ * supported.
42
+ * @example
43
+ * sizes={{ s: 'fullscreen', m: 'fullscreen', l: '80%', xl: '80%', xxl: '80%' }}
44
+ */
45
+ sizes?: ModalSizes;
46
+ /**
47
+ * If set to `true` the modal will not be vertically centered.
48
+ * Only applies to larger screensizes
49
+ */
50
+ fixedTopPosition?: boolean;
51
+ /**
52
+ * If set to `true` the area around the modal is semi transparent and the close button becomes visible.
53
+ */
54
+ canClose?: boolean;
55
+ /**
56
+ * Removes the modal from the default navigation flow and also allows it to receive programmatic focus.
57
+ */
58
+ closeTabIndex?: number;
59
+ /**
60
+ * Close the Modal after invoking the provided callback.
61
+ */
62
+ onRequestClose?: () => void;
63
+ /**
64
+ * Callback is invoked when IEModal detects the browser is IE.
65
+ */
66
+ onCompatibleBrowserDetected?: () => void;
67
+ }>;
68
+ export declare const IEModal: ({ heading, description, goToFrontPageText, openPageInEdgeText, headerClassName, noContentPadding, column, zIndex, sizes, canClose, closeTabIndex, onRequestClose, onCompatibleBrowserDetected, ...rest }: IEModalProps) => JSX.Element | null;
69
+ export default IEModal;
@@ -0,0 +1,8 @@
1
+ import { Locale } from '@dfds-ui/react-components';
2
+ export declare type LocaleOptionProps = {
3
+ label: string;
4
+ locale: Locale;
5
+ onClick: () => void;
6
+ };
7
+ export declare const LocaleOption: ({ label, locale, onClick }: LocaleOptionProps) => JSX.Element;
8
+ export default LocaleOption;
@@ -0,0 +1,49 @@
1
+ import React, { PropsWithChildren } from 'react';
2
+ import { Locale } from '@dfds-ui/react-components';
3
+ import { ModalProps } from '@dfds-ui/modal';
4
+ export declare type LocaleSelectorProps = PropsWithChildren<{
5
+ /**
6
+ * Provide limited set of locales to choose from
7
+ */
8
+ locales?: ReadonlyArray<Locale>;
9
+ /**
10
+ * Text to display on button that open the selector as
11
+ * well as in the heading of the selector
12
+ */
13
+ label?: string;
14
+ /**
15
+ * Current locale of the application
16
+ */
17
+ currentLocale: Locale;
18
+ /** Callback function that fires with locale as an argument */
19
+ onChange: (locale: Locale) => void;
20
+ /**
21
+ * className to be assigned to component.
22
+ */
23
+ className?: string;
24
+ } & Pick<ModalProps, 'renderWhenClosed'>>;
25
+ /**
26
+ * A component to display a modal window where the user can select a locale.
27
+ */
28
+ export declare const LocaleSelector: React.ForwardRefExoticComponent<{
29
+ /**
30
+ * Provide limited set of locales to choose from
31
+ */
32
+ locales?: readonly ("en" | "nl-BE" | "bg-BG" | "pt-BR" | "en-CA" | "zh-CN" | "cs-CZ" | "da-DK" | "et-EE" | "fi-FI" | "fr-BE" | "fr-FR" | "de-DE" | "hu-HU" | "it-IT" | "ja-JP" | "lv-LV" | "lt-LT" | "nl-NL" | "nb-NO" | "pl-PL" | "ro-RO" | "ru-RU" | "sk-SK" | "ko-KR" | "es-ES" | "sv-SE" | "tr-TR" | "en-GB" | "en-US")[] | undefined;
33
+ /**
34
+ * Text to display on button that open the selector as
35
+ * well as in the heading of the selector
36
+ */
37
+ label?: string | undefined;
38
+ /**
39
+ * Current locale of the application
40
+ */
41
+ currentLocale: Locale;
42
+ /** Callback function that fires with locale as an argument */
43
+ onChange: (locale: Locale) => void;
44
+ /**
45
+ * className to be assigned to component.
46
+ */
47
+ className?: string | undefined;
48
+ } & Pick<ModalProps, "renderWhenClosed"> & React.RefAttributes<unknown>>;
49
+ export default LocaleSelector;
@@ -0,0 +1 @@
1
+ export * from './LocaleSelector';
@@ -0,0 +1,5 @@
1
+ import React from 'react';
2
+ export declare type SwiperProps = React.PropsWithChildren<{
3
+ className?: string;
4
+ }>;
5
+ export declare const Swiper: ({ className, children }: SwiperProps) => JSX.Element;
@@ -0,0 +1,5 @@
1
+ import React from 'react';
2
+ export declare type SwiperCardProps = React.PropsWithChildren<{
3
+ className?: string;
4
+ }>;
5
+ export declare const SwiperCard: ({ className, children }: SwiperCardProps) => JSX.Element;
@@ -0,0 +1,2 @@
1
+ export * from './Swiper';
2
+ export * from './SwiperCard';
@@ -36,11 +36,11 @@ var TableBody = /*#__PURE__*/React.memo(function (_ref) {
36
36
  }
37
37
  }
38
38
  }, [selectableRows, selectedRows]);
39
- return ___EmotionJSX("tbody", null, rows.map(function (row) {
39
+ return ___EmotionJSX("tbody", null, rows.map(function (row, index) {
40
40
  return ___EmotionJSX(TableRow, {
41
41
  headerRow: headerRow,
42
42
  isActive: activeRowId ? row.id === activeRowId : undefined,
43
- key: row.id,
43
+ key: index,
44
44
  onClickRow: onClickRow,
45
45
  onSelectRow: updateSelectedRows,
46
46
  row: row,
@@ -10,7 +10,7 @@ var TableCell = /*#__PURE__*/React.memo(function (_ref) {
10
10
  align: headerCell === null || headerCell === void 0 ? void 0 : headerCell.textAlign,
11
11
  columns: columnCount,
12
12
  customColumnWidth: headerCell === null || headerCell === void 0 ? void 0 : headerCell.customColumnWidth,
13
- "data-cy": headerCell === null || headerCell === void 0 ? void 0 : headerCell.key,
13
+ "data-cy": "dynamic-table-cell-".concat(headerCell === null || headerCell === void 0 ? void 0 : headerCell.key),
14
14
  hasOnSelectFunction: !!onSelectFunction
15
15
  }, children);
16
16
  });
@@ -14,10 +14,9 @@ var TableRow = /*#__PURE__*/React.memo(function (_ref) {
14
14
  selectedRows = _ref.selectedRows;
15
15
  return ___EmotionJSX(TableRowStyled, {
16
16
  active: isActive,
17
- className: "dynamicTableRow-".concat(row.id),
18
17
  hoverColor: !!onClickRow,
19
18
  onClick: function onClick() {
20
- return onClickRow && onClickRow(row.id || '');
19
+ return onClickRow && onClickRow(row.id ? String(row.id) : '');
21
20
  }
22
21
  }, selectableRows && row.id && ___EmotionJSX(TableCellCheckboxStyled, null, ___EmotionJSX(Checkbox, {
23
22
  checked: selectedRows.includes(row.id),
@@ -34,7 +33,7 @@ var TableRow = /*#__PURE__*/React.memo(function (_ref) {
34
33
  columnCount: headerRow.length,
35
34
  headerCell: headerRow === null || headerRow === void 0 ? void 0 : headerRow[index],
36
35
  key: index
37
- }, row[headerCell.key]);
36
+ }, row[headerCell.key] || '-');
38
37
  }));
39
38
  });
40
39
  export default TableRow;
@@ -20,7 +20,6 @@ import { jsx as ___EmotionJSX } from "@emotion/react";
20
20
 
21
21
  var DynamicTable = function DynamicTable(_ref) {
22
22
  var activeRowId = _ref.activeRowId,
23
- className = _ref.className,
24
23
  clickRowHandler = _ref.clickRowHandler,
25
24
  descending = _ref.descending,
26
25
  fixedHeight = _ref.fixedHeight,
@@ -56,9 +55,7 @@ var DynamicTable = function DynamicTable(_ref) {
56
55
  }, [sortDescending, onSortByKey, sortByKeyValue]);
57
56
  return ___EmotionJSX(TableWrapperStyled, {
58
57
  fixedHeight: fixedHeight
59
- }, ___EmotionJSX(TableStyled, {
60
- className: className
61
- }, headerRow && ___EmotionJSX(TableHead, {
58
+ }, ___EmotionJSX(TableStyled, null, headerRow && ___EmotionJSX(TableHead, {
62
59
  headerRow: headerRow,
63
60
  onSelectFunction: onSelectFunction,
64
61
  onSortByKey: onSortByKey,
@@ -1,7 +1,5 @@
1
1
  export declare type Header = {
2
- allowToggle?: boolean;
3
2
  customColumnWidth?: string;
4
- defaultToggled?: boolean;
5
3
  displayName: string;
6
4
  key: string;
7
5
  sortable?: boolean;
@@ -13,7 +11,6 @@ export declare type Row = {
13
11
  };
14
12
  export declare type DynamicTableProps = {
15
13
  activeRowId?: string;
16
- className?: string;
17
14
  clickRowHandler?: (id: string) => void;
18
15
  descending?: boolean;
19
16
  fixedHeight?: string;
@@ -1,6 +1,3 @@
1
- import { Header } from '../../DynamicTable.types';
2
- declare const createSkeletonRows: (headerRow: Header[] | undefined) => {
3
- cells: JSX.Element[];
4
- id: number;
5
- }[];
1
+ import { Header, Row } from '../../DynamicTable.types';
2
+ declare const createSkeletonRows: (headerRow: Header[] | undefined) => Row[];
6
3
  export default createSkeletonRows;
@@ -21,25 +21,22 @@ var _ref = process.env.NODE_ENV === "production" ? {
21
21
  name: "d6ykp6",
22
22
  styles: "height:12px;width:100%"
23
23
  } : {
24
- name: "1u3k8d4-createSkeletonRows",
25
- styles: "height:12px;width:100%;label:createSkeletonRows;",
26
- map: "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3NyYy9keW5hbWljLXRhYmxlL1NrZWxldG9uL2hlbHBlcnMvY3JlYXRlU2tlbGV0b25Sb3dzLnRzeCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFVZ0IiLCJmaWxlIjoiLi4vLi4vLi4vLi4vc3JjL2R5bmFtaWMtdGFibGUvU2tlbGV0b24vaGVscGVycy9jcmVhdGVTa2VsZXRvblJvd3MudHN4Iiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IFJlYWN0IGZyb20gJ3JlYWN0J1xuaW1wb3J0IHsgU2tlbGV0b24gfSBmcm9tICdAZGZkcy11aS9yZWFjdC1jb21wb25lbnRzJ1xuaW1wb3J0IHsgY3NzIH0gZnJvbSAnQGVtb3Rpb24vcmVhY3QnXG5cbmltcG9ydCB7IEhlYWRlciB9IGZyb20gJy4uLy4uL0R5bmFtaWNUYWJsZS50eXBlcydcblxuY29uc3QgY3JlYXRlU2tlbGV0b25Sb3dzID0gKGhlYWRlclJvdzogSGVhZGVyW10gfCB1bmRlZmluZWQpID0+XG4gIFsuLi5BcnJheSg3KV0ubWFwKChyb3csIGluZGV4KSA9PiAoe1xuICAgIGNlbGxzOiAoaGVhZGVyUm93IHx8IFsuLi5BcnJheSg1KV0pLm1hcCgoKSA9PiAoXG4gICAgICA8U2tlbGV0b25cbiAgICAgICAgY3NzPXtjc3NgXG4gICAgICAgICAgaGVpZ2h0OiAxMnB4O1xuICAgICAgICAgIHdpZHRoOiAxMDAlO1xuICAgICAgICBgfVxuICAgICAgICBrZXk9e2luZGV4fVxuICAgICAgICB2YXJpYW50PVwidGV4dFwiXG4gICAgICAvPlxuICAgICkpLFxuICAgIGlkOiBpbmRleCArIDEsIC8vIGlkIHNob3VsZCBub3QgYmUgMC5cbiAgfSkpXG5cbmV4cG9ydCBkZWZhdWx0IGNyZWF0ZVNrZWxldG9uUm93c1xuIl19 */",
24
+ name: "d6ykp6",
25
+ styles: "height:12px;width:100%",
26
+ map: "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3NyYy9keW5hbWljLXRhYmxlL1NrZWxldG9uL2hlbHBlcnMvY3JlYXRlU2tlbGV0b25Sb3dzLnRzeCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFha0IiLCJmaWxlIjoiLi4vLi4vLi4vLi4vc3JjL2R5bmFtaWMtdGFibGUvU2tlbGV0b24vaGVscGVycy9jcmVhdGVTa2VsZXRvblJvd3MudHN4Iiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IFJlYWN0IGZyb20gJ3JlYWN0J1xuaW1wb3J0IHsgU2tlbGV0b24gfSBmcm9tICdAZGZkcy11aS9yZWFjdC1jb21wb25lbnRzJ1xuaW1wb3J0IHsgY3NzIH0gZnJvbSAnQGVtb3Rpb24vcmVhY3QnXG5cbmltcG9ydCB7IEhlYWRlciwgUm93IH0gZnJvbSAnLi4vLi4vRHluYW1pY1RhYmxlLnR5cGVzJ1xuXG5jb25zdCBjcmVhdGVTa2VsZXRvblJvd3MgPSAoaGVhZGVyUm93OiBIZWFkZXJbXSB8IHVuZGVmaW5lZCkgPT5cbiAgWy4uLkFycmF5KDcpXS5tYXAoKCkgPT4ge1xuICAgIGNvbnN0IHJvdzogUm93ID0ge31cblxuICAgIGhlYWRlclJvdz8uZm9yRWFjaCgoY2VsbCkgPT4ge1xuICAgICAgcm93W2NlbGwua2V5XSA9IChcbiAgICAgICAgPFNrZWxldG9uXG4gICAgICAgICAgY3NzPXtjc3NgXG4gICAgICAgICAgICBoZWlnaHQ6IDEycHg7XG4gICAgICAgICAgICB3aWR0aDogMTAwJTtcbiAgICAgICAgICBgfVxuICAgICAgICAgIHZhcmlhbnQ9XCJ0ZXh0XCJcbiAgICAgICAgLz5cbiAgICAgIClcbiAgICB9KVxuXG4gICAgcmV0dXJuIHJvd1xuICB9KVxuXG5leHBvcnQgZGVmYXVsdCBjcmVhdGVTa2VsZXRvblJvd3NcbiJdfQ== */",
27
27
  toString: _EMOTION_STRINGIFIED_CSS_ERROR__
28
28
  };
29
29
 
30
30
  var createSkeletonRows = function createSkeletonRows(headerRow) {
31
- return _toConsumableArray(Array(7)).map(function (row, index) {
32
- return {
33
- cells: (headerRow || _toConsumableArray(Array(5))).map(function () {
34
- return ___EmotionJSX(Skeleton, {
35
- css: _ref,
36
- key: index,
37
- variant: "text"
38
- });
39
- }),
40
- id: index + 1 // id should not be 0.
41
-
42
- };
31
+ return _toConsumableArray(Array(7)).map(function () {
32
+ var row = {};
33
+ headerRow === null || headerRow === void 0 ? void 0 : headerRow.forEach(function (cell) {
34
+ row[cell.key] = ___EmotionJSX(Skeleton, {
35
+ css: _ref,
36
+ variant: "text"
37
+ });
38
+ });
39
+ return row;
43
40
  });
44
41
  };
45
42
 
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": "0.9.16-alpha.7ea9a773",
6
+ "version": "0.9.16-alpha.affd8472",
7
7
  "sideEffects": false,
8
8
  "main": "./cjs/index.js",
9
9
  "module": "./index.js",
@@ -16,15 +16,15 @@
16
16
  "react-dom": ">= 16.8.0"
17
17
  },
18
18
  "dependencies": {
19
- "@dfds-ui/colors": "0.9.16-alpha.7ea9a773",
20
- "@dfds-ui/grid": "0.9.16-alpha.7ea9a773",
21
- "@dfds-ui/icons": "0.9.16-alpha.7ea9a773",
22
- "@dfds-ui/modal": "0.9.16-alpha.7ea9a773",
23
- "@dfds-ui/react-components": "0.9.16-alpha.7ea9a773",
24
- "@dfds-ui/theme": "0.9.16-alpha.7ea9a773",
25
- "@dfds-ui/typography": "0.9.16-alpha.7ea9a773"
19
+ "@dfds-ui/colors": "0.9.16-alpha.affd8472",
20
+ "@dfds-ui/grid": "0.9.16-alpha.affd8472",
21
+ "@dfds-ui/icons": "0.9.16-alpha.affd8472",
22
+ "@dfds-ui/modal": "0.9.16-alpha.affd8472",
23
+ "@dfds-ui/react-components": "0.9.16-alpha.affd8472",
24
+ "@dfds-ui/theme": "0.9.16-alpha.affd8472",
25
+ "@dfds-ui/typography": "0.9.16-alpha.affd8472"
26
26
  },
27
- "gitHead": "7ea9a773c626fcf1287609a27935af2d8481f85e",
27
+ "gitHead": "affd8472172a237c1514a698f9e8efcce5db5ac7",
28
28
  "publishConfig": {
29
29
  "access": "public"
30
30
  }