@dfds-ui/experiences 0.9.16-alpha.7ea9a773 → 0.9.16-alpha.b1fbdab3
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 +4 -0
- package/cjs/dynamic-table/Body/TableBody.js +2 -2
- package/cjs/dynamic-table/Body/TableBody.types.d.ts +10 -0
- package/cjs/dynamic-table/Body/TableCell.d.ts +4 -0
- package/cjs/dynamic-table/Body/TableCell.styles.d.ts +16 -0
- package/cjs/dynamic-table/Body/TableCell.types.d.ts +7 -0
- package/cjs/dynamic-table/Body/TableRow.d.ts +4 -0
- package/cjs/dynamic-table/Body/TableRow.styles.d.ts +10 -0
- package/cjs/dynamic-table/Body/TableRow.types.d.ts +10 -0
- package/cjs/dynamic-table/DynamicTable.d.ts +4 -0
- package/cjs/dynamic-table/DynamicTable.styles.d.ts +12 -0
- package/cjs/dynamic-table/DynamicTable.types.d.ts +29 -0
- package/cjs/dynamic-table/Head/TableHead.d.ts +4 -0
- package/cjs/dynamic-table/Head/TableHead.styles.d.ts +24 -0
- package/cjs/dynamic-table/Head/TableHead.types.d.ts +35 -0
- package/cjs/dynamic-table/Skeleton/SkeletonTable.styles.d.ts +4 -0
- package/cjs/dynamic-table/Skeleton/helpers/createSkeletonRows.d.ts +3 -0
- package/cjs/dynamic-table/Skeleton/helpers/createSkeletonRows.js +13 -12
- package/cjs/dynamic-table/helpers/getHeaderRow.d.ts +3 -0
- package/cjs/footer/Footer.d.ts +23 -0
- package/cjs/footer/FooterColumn.d.ts +11 -0
- package/cjs/footer/FooterColumnItem.d.ts +7 -0
- package/cjs/footer/FooterMetaLink.d.ts +7 -0
- package/cjs/footer/index.d.ts +4 -0
- package/cjs/index.d.ts +5 -0
- package/cjs/internet-explorer-modal/IEModal.d.ts +69 -0
- package/cjs/locale-selector/LocaleOption.d.ts +8 -0
- package/cjs/locale-selector/LocaleSelector.d.ts +49 -0
- package/cjs/locale-selector/index.d.ts +1 -0
- package/cjs/swiper/Swiper.d.ts +5 -0
- package/cjs/swiper/SwiperCard.d.ts +5 -0
- package/cjs/swiper/index.d.ts +2 -0
- package/dynamic-table/Body/TableBody.js +2 -2
- package/dynamic-table/Skeleton/helpers/createSkeletonRows.d.ts +2 -5
- package/dynamic-table/Skeleton/helpers/createSkeletonRows.js +12 -15
- 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:
|
|
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,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,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;
|
|
@@ -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,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,29 @@
|
|
|
1
|
+
export declare type Header = {
|
|
2
|
+
allowToggle?: boolean;
|
|
3
|
+
customColumnWidth?: string;
|
|
4
|
+
defaultToggled?: boolean;
|
|
5
|
+
displayName: string;
|
|
6
|
+
key: string;
|
|
7
|
+
sortable?: boolean;
|
|
8
|
+
sortKey?: string;
|
|
9
|
+
textAlign?: 'center' | 'left' | 'right';
|
|
10
|
+
};
|
|
11
|
+
export declare type Row = {
|
|
12
|
+
[name: string]: any;
|
|
13
|
+
};
|
|
14
|
+
export declare type DynamicTableProps = {
|
|
15
|
+
activeRowId?: string;
|
|
16
|
+
className?: string;
|
|
17
|
+
clickRowHandler?: (id: string) => void;
|
|
18
|
+
descending?: boolean;
|
|
19
|
+
fixedHeight?: string;
|
|
20
|
+
headerRow: Header[];
|
|
21
|
+
isLoading?: boolean;
|
|
22
|
+
onSelectFunction?: (list: string[]) => void;
|
|
23
|
+
onSortByKey?: (value: string, sortDescending: boolean) => void;
|
|
24
|
+
rows: Row[];
|
|
25
|
+
selectedRows?: string[];
|
|
26
|
+
sortingBy?: string;
|
|
27
|
+
stickyHeader?: boolean;
|
|
28
|
+
urlSortValue?: string | null;
|
|
29
|
+
};
|
|
@@ -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>, {}>;
|
|
@@ -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: "
|
|
23
|
-
styles: "height:12px;width:100
|
|
24
|
-
map: "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,
|
|
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((
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
key
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
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,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;
|
package/cjs/index.d.ts
ADDED
|
@@ -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';
|
|
@@ -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:
|
|
43
|
+
key: index,
|
|
44
44
|
onClickRow: onClickRow,
|
|
45
45
|
onSelectRow: updateSelectedRows,
|
|
46
46
|
row: row,
|
|
@@ -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: "
|
|
25
|
-
styles: "height:12px;width:100
|
|
26
|
-
map: "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,
|
|
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 (
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
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.
|
|
6
|
+
"version": "0.9.16-alpha.b1fbdab3",
|
|
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.
|
|
20
|
-
"@dfds-ui/grid": "0.9.16-alpha.
|
|
21
|
-
"@dfds-ui/icons": "0.9.16-alpha.
|
|
22
|
-
"@dfds-ui/modal": "0.9.16-alpha.
|
|
23
|
-
"@dfds-ui/react-components": "0.9.16-alpha.
|
|
24
|
-
"@dfds-ui/theme": "0.9.16-alpha.
|
|
25
|
-
"@dfds-ui/typography": "0.9.16-alpha.
|
|
19
|
+
"@dfds-ui/colors": "0.9.16-alpha.b1fbdab3",
|
|
20
|
+
"@dfds-ui/grid": "0.9.16-alpha.b1fbdab3",
|
|
21
|
+
"@dfds-ui/icons": "0.9.16-alpha.b1fbdab3",
|
|
22
|
+
"@dfds-ui/modal": "0.9.16-alpha.b1fbdab3",
|
|
23
|
+
"@dfds-ui/react-components": "0.9.16-alpha.b1fbdab3",
|
|
24
|
+
"@dfds-ui/theme": "0.9.16-alpha.b1fbdab3",
|
|
25
|
+
"@dfds-ui/typography": "0.9.16-alpha.b1fbdab3"
|
|
26
26
|
},
|
|
27
|
-
"gitHead": "
|
|
27
|
+
"gitHead": "b1fbdab3a841c5d299dd46ede8eebc3e00332780",
|
|
28
28
|
"publishConfig": {
|
|
29
29
|
"access": "public"
|
|
30
30
|
}
|