glints-aries 4.0.200 → 4.0.202
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/es/@next/DataTable/DataTable.d.ts +25 -0
- package/es/@next/DataTable/DataTable.js +97 -0
- package/es/@next/DataTable/DataTableStyle.d.ts +9 -0
- package/es/@next/DataTable/DataTableStyle.js +41 -0
- package/es/@next/DataTable/DatatTable.stories.d.ts +5 -0
- package/es/@next/DataTable/TableCell.d.ts +5 -0
- package/es/@next/DataTable/TableCell.js +13 -0
- package/es/@next/DataTable/TableFooter.d.ts +4 -0
- package/es/@next/DataTable/TableFooter.js +5 -0
- package/es/@next/DataTable/TableHeader.d.ts +8 -0
- package/es/@next/DataTable/TableHeader.js +48 -0
- package/es/@next/DataTable/TableRow.d.ts +6 -0
- package/es/@next/DataTable/TableRow.js +12 -0
- package/es/@next/DataTable/index.d.ts +4 -0
- package/es/@next/DataTable/index.js +4 -0
- package/es/@next/EmptyState/EmptyStateStyle.d.ts +3 -3
- package/es/@next/Icon/components/RiExternalLinkLine.d.ts +3 -0
- package/es/@next/Icon/components/RiExternalLinkLine.js +11 -0
- package/es/@next/Icon/components/index.d.ts +1 -0
- package/es/@next/Icon/components/index.js +1 -0
- package/es/@next/Icon/icons/icons.d.ts +1 -1
- package/es/@next/Icon/icons/icons.js +2 -2
- package/es/@next/Link/Link.d.ts +10 -0
- package/es/@next/Link/Link.js +29 -0
- package/es/@next/Link/Link.stories.d.ts +4 -0
- package/es/@next/Link/LinkStyle.d.ts +2 -0
- package/es/@next/Link/LinkStyle.js +7 -0
- package/es/@next/Link/index.d.ts +1 -0
- package/es/@next/Link/index.js +1 -0
- package/es/@next/Pagination/PaginationStyle.js +1 -1
- package/es/@next/Typography/Typography.d.ts +3 -2
- package/es/@next/Typography/Typography.js +3 -1
- package/es/@next/index.d.ts +2 -0
- package/es/@next/index.js +2 -0
- package/lib/@next/DataTable/DataTable.d.ts +25 -0
- package/lib/@next/DataTable/DataTable.js +103 -0
- package/lib/@next/DataTable/DataTableStyle.d.ts +9 -0
- package/lib/@next/DataTable/DataTableStyle.js +55 -0
- package/lib/@next/DataTable/DatatTable.stories.d.ts +5 -0
- package/lib/@next/DataTable/TableCell.d.ts +5 -0
- package/lib/@next/DataTable/TableCell.js +19 -0
- package/lib/@next/DataTable/TableFooter.d.ts +4 -0
- package/lib/@next/DataTable/TableFooter.js +11 -0
- package/lib/@next/DataTable/TableHeader.d.ts +8 -0
- package/lib/@next/DataTable/TableHeader.js +55 -0
- package/lib/@next/DataTable/TableRow.d.ts +6 -0
- package/lib/@next/DataTable/TableRow.js +18 -0
- package/lib/@next/DataTable/index.d.ts +4 -0
- package/lib/@next/DataTable/index.js +27 -0
- package/lib/@next/EmptyState/EmptyStateStyle.d.ts +3 -3
- package/lib/@next/Icon/components/RiExternalLinkLine.d.ts +3 -0
- package/lib/@next/Icon/components/RiExternalLinkLine.js +19 -0
- package/lib/@next/Icon/components/index.d.ts +1 -0
- package/lib/@next/Icon/components/index.js +3 -1
- package/lib/@next/Icon/icons/icons.d.ts +1 -1
- package/lib/@next/Icon/icons/icons.js +2 -2
- package/lib/@next/Link/Link.d.ts +10 -0
- package/lib/@next/Link/Link.js +35 -0
- package/lib/@next/Link/Link.stories.d.ts +4 -0
- package/lib/@next/Link/LinkStyle.d.ts +2 -0
- package/lib/@next/Link/LinkStyle.js +13 -0
- package/lib/@next/Link/index.d.ts +1 -0
- package/lib/@next/Link/index.js +9 -0
- package/lib/@next/Pagination/PaginationStyle.js +1 -1
- package/lib/@next/Typography/Typography.d.ts +3 -2
- package/lib/@next/Typography/Typography.js +3 -1
- package/lib/@next/index.d.ts +2 -0
- package/lib/@next/index.js +10 -1
- package/package.json +1 -1
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { EmptyStateProps } from '../EmptyState';
|
|
3
|
+
export declare type SortDirection = 'ASCENDING' | 'DESCENDING';
|
|
4
|
+
export declare type TableHeading = React.ThHTMLAttributes<HTMLTableColElement> & {
|
|
5
|
+
title?: string;
|
|
6
|
+
id?: string;
|
|
7
|
+
defaultSortDirection?: SortDirection;
|
|
8
|
+
};
|
|
9
|
+
export declare type Total = TableHeading | null;
|
|
10
|
+
export interface DataTableProps extends React.TableHTMLAttributes<HTMLTableElement> {
|
|
11
|
+
headings: TableHeading[];
|
|
12
|
+
children: React.ReactNode;
|
|
13
|
+
emptyState: React.ReactElement<EmptyStateProps>;
|
|
14
|
+
totals?: Total[];
|
|
15
|
+
loading?: boolean;
|
|
16
|
+
loadingLabel?: string;
|
|
17
|
+
onSortChanged?: (context: string, sortDirection: SortDirection) => void;
|
|
18
|
+
}
|
|
19
|
+
export declare const DataTable: React.ForwardRefExoticComponent<DataTableProps & React.RefAttributes<HTMLTableElement>> & {
|
|
20
|
+
Row: ({ children, ...props }: import("./TableRow").TableRowProps) => JSX.Element;
|
|
21
|
+
Cell: ({ align, children }: import("./TableCell").TableCellProps) => JSX.Element;
|
|
22
|
+
Footer: ({ children }: {
|
|
23
|
+
children: React.ReactNode;
|
|
24
|
+
}) => JSX.Element;
|
|
25
|
+
};
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
import _extends from "@babel/runtime/helpers/extends";
|
|
2
|
+
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/objectWithoutPropertiesLoose";
|
|
3
|
+
var _excluded = ["headings", "totals", "onSortChanged", "children", "emptyState", "loading", "loadingLabel"];
|
|
4
|
+
function _createForOfIteratorHelperLoose(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (it) return (it = it.call(o)).next.bind(it); if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; return function () { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
5
|
+
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
6
|
+
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
|
7
|
+
import React from 'react';
|
|
8
|
+
import { Spinner } from '../Spinner';
|
|
9
|
+
import { Typography } from '../Typography';
|
|
10
|
+
import { StyledDataTableContainer, StyledLoaderWrapper, StyledSpinnerContainer, StyledTable, StyledTableCell, StyledTableFooterRow, StyledTableLoadingRow, StyledTableRow } from './DataTableStyle';
|
|
11
|
+
import { TableCell } from './TableCell';
|
|
12
|
+
import { TableFooter } from './TableFooter';
|
|
13
|
+
import { TableHeader } from './TableHeader';
|
|
14
|
+
import { TableRow } from './TableRow';
|
|
15
|
+
var DataTableComponent = /*#__PURE__*/React.forwardRef(function DataTable(_ref, ref) {
|
|
16
|
+
var headings = _ref.headings,
|
|
17
|
+
totals = _ref.totals,
|
|
18
|
+
onSortChanged = _ref.onSortChanged,
|
|
19
|
+
children = _ref.children,
|
|
20
|
+
emptyState = _ref.emptyState,
|
|
21
|
+
loading = _ref.loading,
|
|
22
|
+
_ref$loadingLabel = _ref.loadingLabel,
|
|
23
|
+
loadingLabel = _ref$loadingLabel === void 0 ? 'loading' : _ref$loadingLabel,
|
|
24
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded);
|
|
25
|
+
var handleSortChanged = function handleSortChanged(context, sortDirection) {
|
|
26
|
+
onSortChanged == null ? void 0 : onSortChanged(context, sortDirection);
|
|
27
|
+
};
|
|
28
|
+
var rowHeaderMarkup = headings.map(function (heading, index) {
|
|
29
|
+
var id = heading.id,
|
|
30
|
+
title = heading.title,
|
|
31
|
+
defaultSortDirection = heading.defaultSortDirection,
|
|
32
|
+
align = heading.align;
|
|
33
|
+
var key = "table-header-heading-" + title + "-" + index;
|
|
34
|
+
return /*#__PURE__*/React.createElement(TableHeader, {
|
|
35
|
+
key: key,
|
|
36
|
+
title: title,
|
|
37
|
+
sortDirection: defaultSortDirection,
|
|
38
|
+
align: align,
|
|
39
|
+
onSort: function onSort(sortDirection) {
|
|
40
|
+
return handleSortChanged(id || title, sortDirection);
|
|
41
|
+
}
|
|
42
|
+
});
|
|
43
|
+
});
|
|
44
|
+
var totalsRowMarkup = totals ? totals.map(function (total, index) {
|
|
45
|
+
var _ref2 = total || {
|
|
46
|
+
title: ''
|
|
47
|
+
},
|
|
48
|
+
title = _ref2.title,
|
|
49
|
+
align = _ref2.align;
|
|
50
|
+
var key = total + "-" + index;
|
|
51
|
+
return /*#__PURE__*/React.createElement(TableCell, {
|
|
52
|
+
key: key,
|
|
53
|
+
align: align
|
|
54
|
+
}, /*#__PURE__*/React.createElement(Typography, {
|
|
55
|
+
as: "div",
|
|
56
|
+
variant: "body2"
|
|
57
|
+
}, title));
|
|
58
|
+
}) : null;
|
|
59
|
+
var footer;
|
|
60
|
+
var rows = [];
|
|
61
|
+
for (var _iterator = _createForOfIteratorHelperLoose(React.Children.toArray(children)), _step; !(_step = _iterator()).done;) {
|
|
62
|
+
var child = _step.value;
|
|
63
|
+
var reactEl = child;
|
|
64
|
+
if (reactEl.type === TableFooter) {
|
|
65
|
+
footer = reactEl.props.children;
|
|
66
|
+
continue;
|
|
67
|
+
}
|
|
68
|
+
rows.push(reactEl);
|
|
69
|
+
}
|
|
70
|
+
var emptyRow = /*#__PURE__*/React.createElement(StyledTableRow, null, /*#__PURE__*/React.createElement(StyledTableCell, {
|
|
71
|
+
colSpan: headings.length
|
|
72
|
+
}, emptyState));
|
|
73
|
+
var hasRows = rows.length > 0;
|
|
74
|
+
var rowsMarkup = hasRows ? rows : emptyRow;
|
|
75
|
+
var showFooter = !!footer;
|
|
76
|
+
var LoadingRow = function LoadingRow() {
|
|
77
|
+
return /*#__PURE__*/React.createElement(StyledTableLoadingRow, {
|
|
78
|
+
className: "loader-container"
|
|
79
|
+
}, /*#__PURE__*/React.createElement(StyledLoaderWrapper, null, /*#__PURE__*/React.createElement(StyledSpinnerContainer, null, /*#__PURE__*/React.createElement(Spinner, null), /*#__PURE__*/React.createElement(Typography, {
|
|
80
|
+
variant: "subtitle1"
|
|
81
|
+
}, loadingLabel))));
|
|
82
|
+
};
|
|
83
|
+
return /*#__PURE__*/React.createElement(StyledDataTableContainer, null, /*#__PURE__*/React.createElement(StyledTable, _extends({
|
|
84
|
+
ref: ref,
|
|
85
|
+
"data-loading": loading,
|
|
86
|
+
"data-has-footer": showFooter
|
|
87
|
+
}, props), /*#__PURE__*/React.createElement("thead", null, /*#__PURE__*/React.createElement(StyledTableRow, null, rowHeaderMarkup)), /*#__PURE__*/React.createElement("tbody", null, /*#__PURE__*/React.createElement(LoadingRow, null), totalsRowMarkup && hasRows && /*#__PURE__*/React.createElement(StyledTableRow, {
|
|
88
|
+
"data-total": "true"
|
|
89
|
+
}, totalsRowMarkup), rowsMarkup), showFooter && /*#__PURE__*/React.createElement("tfoot", null, /*#__PURE__*/React.createElement(StyledTableFooterRow, null, /*#__PURE__*/React.createElement(StyledTableCell, {
|
|
90
|
+
colSpan: headings.length
|
|
91
|
+
}, footer)))));
|
|
92
|
+
});
|
|
93
|
+
export var DataTable = Object.assign(DataTableComponent, {
|
|
94
|
+
Row: TableRow,
|
|
95
|
+
Cell: TableCell,
|
|
96
|
+
Footer: TableFooter
|
|
97
|
+
});
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export declare const StyledTable: import("styled-components").StyledComponent<"table", any, {}, never>;
|
|
2
|
+
export declare const StyledTableRow: import("styled-components").StyledComponent<"tr", any, {}, never>;
|
|
3
|
+
export declare const StyledTabledHeader: import("styled-components").StyledComponent<"th", any, {}, never>;
|
|
4
|
+
export declare const StyledTableCell: import("styled-components").StyledComponent<"td", any, {}, never>;
|
|
5
|
+
export declare const StyledTableFooterRow: import("styled-components").StyledComponent<"tr", any, {}, never>;
|
|
6
|
+
export declare const StyledTableLoadingRow: import("styled-components").StyledComponent<"tr", any, {}, never>;
|
|
7
|
+
export declare const StyledLoaderWrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
8
|
+
export declare const StyledSpinnerContainer: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
9
|
+
export declare const StyledDataTableContainer: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import styled from 'styled-components';
|
|
2
|
+
import { borderRadius8 } from '../utilities/borderRadius';
|
|
3
|
+
import { Blue, Neutral } from '../utilities/colors';
|
|
4
|
+
import { space16 } from '../utilities/spacing';
|
|
5
|
+
var alignmentStyle = "\n&[data-text-align='right'] {\n > div {\n display: flex;\n justify-content: right;\n }\n}\n\n&[data-text-align='center'] {\n > div {\n display: flex;\n justify-content: center;\n }\n}\n";
|
|
6
|
+
export var StyledTable = styled.table.withConfig({
|
|
7
|
+
displayName: "DataTableStyle__StyledTable",
|
|
8
|
+
componentId: "sc-18v2ula-0"
|
|
9
|
+
})(["width:100%;height:100%;border:1px solid ", ";border-spacing:0;color:", ";max-width:100vw;border-bottom:0;&[data-has-footer='true']{border-bottom:1px solid ", ";}&[data-loading='true']{tbody{position:relative;}.loader-container{display:block;z-index:1;}}"], Neutral.B85, Neutral.B18, Neutral.B85);
|
|
10
|
+
export var StyledTableRow = styled.tr.withConfig({
|
|
11
|
+
displayName: "DataTableStyle__StyledTableRow",
|
|
12
|
+
componentId: "sc-18v2ula-1"
|
|
13
|
+
})(["background:", ";box-shadow:inset 0px -1px 0px ", ";&:hover{background:", ";}&[data-total='true']{background:", ";}"], Neutral.B100, Neutral.B85, Neutral.B99, Neutral.B99);
|
|
14
|
+
export var StyledTabledHeader = styled.th.withConfig({
|
|
15
|
+
displayName: "DataTableStyle__StyledTabledHeader",
|
|
16
|
+
componentId: "sc-18v2ula-2"
|
|
17
|
+
})(["padding:", ";text-align:left;", " button{padding:0;margin:0;height:auto;border:none;box-shadow:none;}button:hover{background:transparent;}button:active{border:none;box-shadow:none;background:transparent;}button:focus{border:none;}button svg{width:24px;height:24px;fill:", ";}"], space16, alignmentStyle, Neutral.B40);
|
|
18
|
+
export var StyledTableCell = styled.td.withConfig({
|
|
19
|
+
displayName: "DataTableStyle__StyledTableCell",
|
|
20
|
+
componentId: "sc-18v2ula-3"
|
|
21
|
+
})(["text-align:left;padding:", ";vertical-align:top;", ""], space16, alignmentStyle);
|
|
22
|
+
export var StyledTableFooterRow = styled.tr.withConfig({
|
|
23
|
+
displayName: "DataTableStyle__StyledTableFooterRow",
|
|
24
|
+
componentId: "sc-18v2ula-4"
|
|
25
|
+
})(["background:", ";border-top:0;border-radius:0px 0px ", " ", ";td{padding:", ";}"], Neutral.B99, borderRadius8, borderRadius8, space16);
|
|
26
|
+
export var StyledTableLoadingRow = styled(StyledTableRow).withConfig({
|
|
27
|
+
displayName: "DataTableStyle__StyledTableLoadingRow",
|
|
28
|
+
componentId: "sc-18v2ula-5"
|
|
29
|
+
})(["position:absolute;width:100%;height:100%;display:none;z-index:-1;"]);
|
|
30
|
+
export var StyledLoaderWrapper = styled.div.withConfig({
|
|
31
|
+
displayName: "DataTableStyle__StyledLoaderWrapper",
|
|
32
|
+
componentId: "sc-18v2ula-6"
|
|
33
|
+
})(["height:100%;width:100%;position:relative;"]);
|
|
34
|
+
export var StyledSpinnerContainer = styled.div.withConfig({
|
|
35
|
+
displayName: "DataTableStyle__StyledSpinnerContainer",
|
|
36
|
+
componentId: "sc-18v2ula-7"
|
|
37
|
+
})(["position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);color:", ";svg{width:48px;height:48px;fill:", ";}"], Neutral.B18, Blue.S99);
|
|
38
|
+
export var StyledDataTableContainer = styled.div.withConfig({
|
|
39
|
+
displayName: "DataTableStyle__StyledDataTableContainer",
|
|
40
|
+
componentId: "sc-18v2ula-8"
|
|
41
|
+
})(["overflow-x:auto;scroll-behavior:smooth;"]);
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { Typography } from '../Typography';
|
|
3
|
+
import { StyledTableCell } from './DataTableStyle';
|
|
4
|
+
export var TableCell = function TableCell(_ref) {
|
|
5
|
+
var align = _ref.align,
|
|
6
|
+
children = _ref.children;
|
|
7
|
+
return /*#__PURE__*/React.createElement(StyledTableCell, {
|
|
8
|
+
"data-text-align": align
|
|
9
|
+
}, /*#__PURE__*/React.createElement(Typography, {
|
|
10
|
+
as: "div",
|
|
11
|
+
variant: "body1"
|
|
12
|
+
}, children));
|
|
13
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { SortDirection } from './DataTable';
|
|
3
|
+
export interface TableHeaderProps extends React.ThHTMLAttributes<HTMLTableColElement> {
|
|
4
|
+
title: string;
|
|
5
|
+
sortDirection?: SortDirection;
|
|
6
|
+
onSort?: (sortDirection: SortDirection) => void;
|
|
7
|
+
}
|
|
8
|
+
export declare const TableHeader: ({ sortDirection: sortDirectionProp, title, align, onSort, }: TableHeaderProps) => JSX.Element;
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import React, { useState, useEffect } from 'react';
|
|
2
|
+
import { Button } from '../Button';
|
|
3
|
+
import { Icon } from '../Icon';
|
|
4
|
+
import { Typography } from '../Typography';
|
|
5
|
+
import { StyledTabledHeader } from './DataTableStyle';
|
|
6
|
+
export var TableHeader = function TableHeader(_ref) {
|
|
7
|
+
var sortDirectionProp = _ref.sortDirection,
|
|
8
|
+
title = _ref.title,
|
|
9
|
+
_ref$align = _ref.align,
|
|
10
|
+
align = _ref$align === void 0 ? 'left' : _ref$align,
|
|
11
|
+
onSort = _ref.onSort;
|
|
12
|
+
var _useState = useState(null),
|
|
13
|
+
sortDirection = _useState[0],
|
|
14
|
+
setSortDirection = _useState[1];
|
|
15
|
+
useEffect(function () {
|
|
16
|
+
setSortDirection(sortDirectionProp);
|
|
17
|
+
}, [sortDirectionProp]);
|
|
18
|
+
var iconName = sortDirection === 'ASCENDING' ? 'ri-arrow-xs-up-fill' : 'ri-arrow-xs-down-fill';
|
|
19
|
+
var iconMarkup = sortDirection ? /*#__PURE__*/React.createElement(Icon, {
|
|
20
|
+
name: iconName
|
|
21
|
+
}) : null;
|
|
22
|
+
var titleMarkup = /*#__PURE__*/React.createElement(Typography, {
|
|
23
|
+
as: "span",
|
|
24
|
+
variant: "body1",
|
|
25
|
+
style: {
|
|
26
|
+
whiteSpace: 'nowrap'
|
|
27
|
+
}
|
|
28
|
+
}, title);
|
|
29
|
+
var handleSortableClick = function handleSortableClick() {
|
|
30
|
+
if (!sortDirection) {
|
|
31
|
+
return;
|
|
32
|
+
}
|
|
33
|
+
var direction = sortDirection === 'ASCENDING' ? 'DESCENDING' : 'ASCENDING';
|
|
34
|
+
setSortDirection(direction);
|
|
35
|
+
onSort == null ? void 0 : onSort(direction);
|
|
36
|
+
};
|
|
37
|
+
var sortableCellMarkup = /*#__PURE__*/React.createElement(Button, {
|
|
38
|
+
"data-testid": "data-table-sort-button-" + title,
|
|
39
|
+
icon: iconMarkup,
|
|
40
|
+
onClick: function onClick() {
|
|
41
|
+
return handleSortableClick();
|
|
42
|
+
}
|
|
43
|
+
}, titleMarkup);
|
|
44
|
+
var contentMarkup = sortDirection ? sortableCellMarkup : titleMarkup;
|
|
45
|
+
return /*#__PURE__*/React.createElement(StyledTabledHeader, {
|
|
46
|
+
"data-text-align": align
|
|
47
|
+
}, /*#__PURE__*/React.createElement("div", null, contentMarkup));
|
|
48
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import _extends from "@babel/runtime/helpers/extends";
|
|
2
|
+
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/objectWithoutPropertiesLoose";
|
|
3
|
+
var _excluded = ["children"];
|
|
4
|
+
import React from 'react';
|
|
5
|
+
import { StyledTableRow } from './DataTableStyle';
|
|
6
|
+
export var TableRow = function TableRow(_ref) {
|
|
7
|
+
var children = _ref.children,
|
|
8
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded);
|
|
9
|
+
return /*#__PURE__*/React.createElement(StyledTableRow, _extends({
|
|
10
|
+
"data-testid": "data-table-row"
|
|
11
|
+
}, props), children);
|
|
12
|
+
};
|
|
@@ -3,6 +3,6 @@ export declare const EmptyStateContainer: import("styled-components").StyledComp
|
|
|
3
3
|
export declare const EmptyStateContentContainer: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
4
4
|
export declare const StyledImage: import("styled-components").StyledComponent<"img", any, {}, never>;
|
|
5
5
|
export declare const StyledButtonGroup: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("..").ButtonGroupProps & import("react").RefAttributes<HTMLDivElement>>, any, {}, never>;
|
|
6
|
-
export declare const StyledTitle: import("styled-components").StyledComponent<({ as, children, variant, ...props }: import("..").TypographyProps) => JSX.Element, any, {}, never>;
|
|
7
|
-
export declare const StyledDescription: import("styled-components").StyledComponent<({ as, children, variant, ...props }: import("..").TypographyProps) => JSX.Element, any, {}, never>;
|
|
8
|
-
export declare const StyledHelpText: import("styled-components").StyledComponent<({ as, children, variant, ...props }: import("..").TypographyProps) => JSX.Element, any, {}, never>;
|
|
6
|
+
export declare const StyledTitle: import("styled-components").StyledComponent<({ as, children, variant, style, ...props }: import("..").TypographyProps) => JSX.Element, any, {}, never>;
|
|
7
|
+
export declare const StyledDescription: import("styled-components").StyledComponent<({ as, children, variant, style, ...props }: import("..").TypographyProps) => JSX.Element, any, {}, never>;
|
|
8
|
+
export declare const StyledHelpText: import("styled-components").StyledComponent<({ as, children, variant, style, ...props }: import("..").TypographyProps) => JSX.Element, any, {}, never>;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import _extends from "@babel/runtime/helpers/extends";
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
var SvgRiExternalLinkLine = function SvgRiExternalLinkLine(props) {
|
|
4
|
+
return /*#__PURE__*/React.createElement("svg", _extends({
|
|
5
|
+
viewBox: "0 0 24 24",
|
|
6
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
7
|
+
}, props), /*#__PURE__*/React.createElement("path", {
|
|
8
|
+
d: "M10 6v2H5v11h11v-5h2v6a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V7a1 1 0 0 1 1-1h6Zm11-3v8h-2V6.413l-7.793 7.794-1.414-1.414L17.585 5H13V3h8Z"
|
|
9
|
+
}));
|
|
10
|
+
};
|
|
11
|
+
export default SvgRiExternalLinkLine;
|
|
@@ -47,6 +47,7 @@ export { default as RiDeleteBinFill } from './RiDeleteBinFill';
|
|
|
47
47
|
export { default as RiDeleteBinLine } from './RiDeleteBinLine';
|
|
48
48
|
export { default as RiErrorWarningFill } from './RiErrorWarningFill';
|
|
49
49
|
export { default as RiErrorWarningLine } from './RiErrorWarningLine';
|
|
50
|
+
export { default as RiExternalLinkLine } from './RiExternalLinkLine';
|
|
50
51
|
export { default as RiFacebookCircleLine } from './RiFacebookCircleLine';
|
|
51
52
|
export { default as RiInformationFill } from './RiInformationFill';
|
|
52
53
|
export { default as RiInformationLine } from './RiInformationLine';
|
|
@@ -47,6 +47,7 @@ export { default as RiDeleteBinFill } from './RiDeleteBinFill';
|
|
|
47
47
|
export { default as RiDeleteBinLine } from './RiDeleteBinLine';
|
|
48
48
|
export { default as RiErrorWarningFill } from './RiErrorWarningFill';
|
|
49
49
|
export { default as RiErrorWarningLine } from './RiErrorWarningLine';
|
|
50
|
+
export { default as RiExternalLinkLine } from './RiExternalLinkLine';
|
|
50
51
|
export { default as RiFacebookCircleLine } from './RiFacebookCircleLine';
|
|
51
52
|
export { default as RiInformationFill } from './RiInformationFill';
|
|
52
53
|
export { default as RiInformationLine } from './RiInformationLine';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { SVGProps } from 'react';
|
|
2
|
-
export declare const iconNames: readonly ["ri-account-circle-fill", "ri-account-circle-line", "ri-add-circle-fill", "ri-add-circle-line", "ri-add", "ri-alarm-warning-fill", "ri-alarm-warning-line", "ri-arrow-down-fill", "ri-arrow-down-line", "ri-arrow-go-back-fill", "ri-arrow-go-back-line", "ri-arrow-go-forward-fill", "ri-arrow-go-forward-line", "ri-arrow-left-fill", "ri-arrow-left-line", "ri-arrow-left-right-fill", "ri-arrow-left-right-line", "ri-arrow-m-down-fill", "ri-arrow-m-down-line", "ri-arrow-m-left-fill", "ri-arrow-m-left-line", "ri-arrow-m-right-fill", "ri-arrow-m-right-line", "ri-arrow-m-up-fill", "ri-arrow-m-up-line", "ri-arrow-right-fill", "ri-arrow-right-line", "ri-arrow-up-down-fill", "ri-arrow-up-down-line", "ri-arrow-up-fill", "ri-arrow-up-line", "ri-arrow-xs-down-fill", "ri-arrow-xs-up-fill", "ri-calendar-fill", "ri-calendar-line", "ri-check", "ri-checkbox-circle-fill", "ri-checkbox-fill", "ri-checkbox-indeterminate-fill", "ri-checkbox-indeterminate-line", "ri-checkbox-line", "ri-close-circle-fill", "ri-close-circle-line", "ri-close", "ri-coins-line", "ri-delete-bin-fill", "ri-delete-bin-line", "ri-error-warning-fill", "ri-error-warning-line", "ri-facebook-circle-line", "ri-information-fill", "ri-information-line", "ri-instagram-line", "ri-linkedIn-line", "ri-loader", "ri-map-line", "ri-message-fill", "ri-message-line", "ri-minus", "ri-pencil-fill", "ri-pencil-line", "ri-question-fill", "ri-question-line", "ri-reply-fill", "ri-reply-line", "ri-search", "ri-send-plane-fill", "ri-send-plane-line", "ri-settings-fill", "ri-settings-line", "ri-twitter-line"];
|
|
2
|
+
export declare const iconNames: readonly ["ri-account-circle-fill", "ri-account-circle-line", "ri-add-circle-fill", "ri-add-circle-line", "ri-add", "ri-alarm-warning-fill", "ri-alarm-warning-line", "ri-arrow-down-fill", "ri-arrow-down-line", "ri-arrow-go-back-fill", "ri-arrow-go-back-line", "ri-arrow-go-forward-fill", "ri-arrow-go-forward-line", "ri-arrow-left-fill", "ri-arrow-left-line", "ri-arrow-left-right-fill", "ri-arrow-left-right-line", "ri-arrow-m-down-fill", "ri-arrow-m-down-line", "ri-arrow-m-left-fill", "ri-arrow-m-left-line", "ri-arrow-m-right-fill", "ri-arrow-m-right-line", "ri-arrow-m-up-fill", "ri-arrow-m-up-line", "ri-arrow-right-fill", "ri-arrow-right-line", "ri-arrow-up-down-fill", "ri-arrow-up-down-line", "ri-arrow-up-fill", "ri-arrow-up-line", "ri-arrow-xs-down-fill", "ri-arrow-xs-up-fill", "ri-calendar-fill", "ri-calendar-line", "ri-check", "ri-checkbox-circle-fill", "ri-checkbox-fill", "ri-checkbox-indeterminate-fill", "ri-checkbox-indeterminate-line", "ri-checkbox-line", "ri-close-circle-fill", "ri-close-circle-line", "ri-close", "ri-coins-line", "ri-delete-bin-fill", "ri-delete-bin-line", "ri-error-warning-fill", "ri-error-warning-line", "ri-external-link-line", "ri-facebook-circle-line", "ri-information-fill", "ri-information-line", "ri-instagram-line", "ri-linkedIn-line", "ri-loader", "ri-map-line", "ri-message-fill", "ri-message-line", "ri-minus", "ri-pencil-fill", "ri-pencil-line", "ri-question-fill", "ri-question-line", "ri-reply-fill", "ri-reply-line", "ri-search", "ri-send-plane-fill", "ri-send-plane-line", "ri-settings-fill", "ri-settings-line", "ri-twitter-line"];
|
|
3
3
|
export declare type IconNames = typeof iconNames[number];
|
|
4
4
|
declare type SVGComponent = (props: SVGProps<SVGSVGElement>) => JSX.Element;
|
|
5
5
|
export declare const iconsMappingComponent: {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
var _iconsMappingComponen;
|
|
2
2
|
import * as Icons from '../components';
|
|
3
|
-
export var iconNames = ['ri-account-circle-fill', 'ri-account-circle-line', 'ri-add-circle-fill', 'ri-add-circle-line', 'ri-add', 'ri-alarm-warning-fill', 'ri-alarm-warning-line', 'ri-arrow-down-fill', 'ri-arrow-down-line', 'ri-arrow-go-back-fill', 'ri-arrow-go-back-line', 'ri-arrow-go-forward-fill', 'ri-arrow-go-forward-line', 'ri-arrow-left-fill', 'ri-arrow-left-line', 'ri-arrow-left-right-fill', 'ri-arrow-left-right-line', 'ri-arrow-m-down-fill', 'ri-arrow-m-down-line', 'ri-arrow-m-left-fill', 'ri-arrow-m-left-line', 'ri-arrow-m-right-fill', 'ri-arrow-m-right-line', 'ri-arrow-m-up-fill', 'ri-arrow-m-up-line', 'ri-arrow-right-fill', 'ri-arrow-right-line', 'ri-arrow-up-down-fill', 'ri-arrow-up-down-line', 'ri-arrow-up-fill', 'ri-arrow-up-line', 'ri-arrow-xs-down-fill', 'ri-arrow-xs-up-fill', 'ri-calendar-fill', 'ri-calendar-line', 'ri-check', 'ri-checkbox-circle-fill', 'ri-checkbox-fill', 'ri-checkbox-indeterminate-fill', 'ri-checkbox-indeterminate-line', 'ri-checkbox-line', 'ri-close-circle-fill', 'ri-close-circle-line', 'ri-close', 'ri-coins-line', 'ri-delete-bin-fill', 'ri-delete-bin-line', 'ri-error-warning-fill', 'ri-error-warning-line', 'ri-facebook-circle-line', 'ri-information-fill', 'ri-information-line', 'ri-instagram-line', 'ri-linkedIn-line', 'ri-loader', 'ri-map-line', 'ri-message-fill', 'ri-message-line', 'ri-minus', 'ri-pencil-fill', 'ri-pencil-line', 'ri-question-fill', 'ri-question-line', 'ri-reply-fill', 'ri-reply-line', 'ri-search', 'ri-send-plane-fill', 'ri-send-plane-line', 'ri-settings-fill', 'ri-settings-line', 'ri-twitter-line'];
|
|
4
|
-
export var iconsMappingComponent = (_iconsMappingComponen = {}, _iconsMappingComponen['ri-account-circle-fill'] = Icons.RiAccountCircleFill, _iconsMappingComponen['ri-account-circle-line'] = Icons.RiAccountCircleLine, _iconsMappingComponen['ri-add-circle-fill'] = Icons.RiAddCircleFill, _iconsMappingComponen['ri-add-circle-line'] = Icons.RiAddCircleLine, _iconsMappingComponen['ri-add'] = Icons.RiAdd, _iconsMappingComponen['ri-alarm-warning-fill'] = Icons.RiAlarmWarningFill, _iconsMappingComponen['ri-alarm-warning-line'] = Icons.RiAlarmWarningLine, _iconsMappingComponen['ri-arrow-down-fill'] = Icons.RiArrowDownFill, _iconsMappingComponen['ri-arrow-down-line'] = Icons.RiArrowDownLine, _iconsMappingComponen['ri-arrow-go-back-fill'] = Icons.RiArrowGoBackFill, _iconsMappingComponen['ri-arrow-go-back-line'] = Icons.RiArrowGoBackLine, _iconsMappingComponen['ri-arrow-go-forward-fill'] = Icons.RiArrowGoForwardFill, _iconsMappingComponen['ri-arrow-go-forward-line'] = Icons.RiArrowGoForwardLine, _iconsMappingComponen['ri-arrow-left-fill'] = Icons.RiArrowLeftFill, _iconsMappingComponen['ri-arrow-left-line'] = Icons.RiArrowLeftLine, _iconsMappingComponen['ri-arrow-left-right-fill'] = Icons.RiArrowLeftRightFill, _iconsMappingComponen['ri-arrow-left-right-line'] = Icons.RiArrowLeftRightLine, _iconsMappingComponen['ri-arrow-m-down-fill'] = Icons.RiArrowMDownFill, _iconsMappingComponen['ri-arrow-m-down-line'] = Icons.RiArrowMDownLine, _iconsMappingComponen['ri-arrow-m-left-fill'] = Icons.RiArrowMLeftFill, _iconsMappingComponen['ri-arrow-m-left-line'] = Icons.RiArrowMLeftLine, _iconsMappingComponen['ri-arrow-m-right-fill'] = Icons.RiArrowMRightFill, _iconsMappingComponen['ri-arrow-m-right-line'] = Icons.RiArrowMRightLine, _iconsMappingComponen['ri-arrow-m-up-fill'] = Icons.RiArrowMUpFill, _iconsMappingComponen['ri-arrow-m-up-line'] = Icons.RiArrowMUpLine, _iconsMappingComponen['ri-arrow-right-fill'] = Icons.RiArrowRightFill, _iconsMappingComponen['ri-arrow-right-line'] = Icons.RiArrowRightLine, _iconsMappingComponen['ri-arrow-up-down-fill'] = Icons.RiArrowUpDownFill, _iconsMappingComponen['ri-arrow-up-down-line'] = Icons.RiArrowUpDownLine, _iconsMappingComponen['ri-arrow-up-fill'] = Icons.RiArrowUpFill, _iconsMappingComponen['ri-arrow-up-line'] = Icons.RiArrowUpLine, _iconsMappingComponen['ri-arrow-xs-down-fill'] = Icons.RiArrowXsDownFill, _iconsMappingComponen['ri-arrow-xs-up-fill'] = Icons.RiArrowXsUpFill, _iconsMappingComponen['ri-calendar-fill'] = Icons.RiCalendarFill, _iconsMappingComponen['ri-calendar-line'] = Icons.RiCalendarLine, _iconsMappingComponen['ri-check'] = Icons.RiCheck, _iconsMappingComponen['ri-checkbox-circle-fill'] = Icons.RiCheckboxCircleFill, _iconsMappingComponen['ri-checkbox-fill'] = Icons.RiCheckboxFill, _iconsMappingComponen['ri-checkbox-indeterminate-fill'] = Icons.RiCheckboxIndeterminateFill, _iconsMappingComponen['ri-checkbox-indeterminate-line'] = Icons.RiCheckboxIndeterminateLine, _iconsMappingComponen['ri-checkbox-line'] = Icons.RiCheckboxLine, _iconsMappingComponen['ri-close-circle-fill'] = Icons.RiCloseCircleFill, _iconsMappingComponen['ri-close-circle-line'] = Icons.RiCloseCircleLine, _iconsMappingComponen['ri-close'] = Icons.RiClose, _iconsMappingComponen['ri-coins-line'] = Icons.RiCoinsLine, _iconsMappingComponen['ri-delete-bin-fill'] = Icons.RiDeleteBinFill, _iconsMappingComponen['ri-delete-bin-line'] = Icons.RiDeleteBinLine, _iconsMappingComponen['ri-error-warning-fill'] = Icons.RiErrorWarningFill, _iconsMappingComponen['ri-error-warning-line'] = Icons.RiErrorWarningLine, _iconsMappingComponen['ri-facebook-circle-line'] = Icons.RiFacebookCircleLine, _iconsMappingComponen['ri-information-fill'] = Icons.RiInformationFill, _iconsMappingComponen['ri-information-line'] = Icons.RiInformationLine, _iconsMappingComponen['ri-instagram-line'] = Icons.RiInstagramLine, _iconsMappingComponen['ri-linkedIn-line'] = Icons.RiLinkedInLine, _iconsMappingComponen['ri-loader'] = Icons.RiLoader, _iconsMappingComponen['ri-map-line'] = Icons.RiMapLine, _iconsMappingComponen['ri-message-fill'] = Icons.RiMessageFill, _iconsMappingComponen['ri-message-line'] = Icons.RiMessageLine, _iconsMappingComponen['ri-minus'] = Icons.RiMinus, _iconsMappingComponen['ri-pencil-fill'] = Icons.RiPencilFill, _iconsMappingComponen['ri-pencil-line'] = Icons.RiPencilLine, _iconsMappingComponen['ri-question-fill'] = Icons.RiQuestionFill, _iconsMappingComponen['ri-question-line'] = Icons.RiQuestionLine, _iconsMappingComponen['ri-reply-fill'] = Icons.RiReplyFill, _iconsMappingComponen['ri-reply-line'] = Icons.RiReplyLine, _iconsMappingComponen['ri-search'] = Icons.RiSearch, _iconsMappingComponen['ri-send-plane-fill'] = Icons.RiSendPlaneFill, _iconsMappingComponen['ri-send-plane-line'] = Icons.RiSendPlaneLine, _iconsMappingComponen['ri-settings-fill'] = Icons.RiSettingsFill, _iconsMappingComponen['ri-settings-line'] = Icons.RiSettingsLine, _iconsMappingComponen['ri-twitter-line'] = Icons.RiTwitterLine, _iconsMappingComponen);
|
|
3
|
+
export var iconNames = ['ri-account-circle-fill', 'ri-account-circle-line', 'ri-add-circle-fill', 'ri-add-circle-line', 'ri-add', 'ri-alarm-warning-fill', 'ri-alarm-warning-line', 'ri-arrow-down-fill', 'ri-arrow-down-line', 'ri-arrow-go-back-fill', 'ri-arrow-go-back-line', 'ri-arrow-go-forward-fill', 'ri-arrow-go-forward-line', 'ri-arrow-left-fill', 'ri-arrow-left-line', 'ri-arrow-left-right-fill', 'ri-arrow-left-right-line', 'ri-arrow-m-down-fill', 'ri-arrow-m-down-line', 'ri-arrow-m-left-fill', 'ri-arrow-m-left-line', 'ri-arrow-m-right-fill', 'ri-arrow-m-right-line', 'ri-arrow-m-up-fill', 'ri-arrow-m-up-line', 'ri-arrow-right-fill', 'ri-arrow-right-line', 'ri-arrow-up-down-fill', 'ri-arrow-up-down-line', 'ri-arrow-up-fill', 'ri-arrow-up-line', 'ri-arrow-xs-down-fill', 'ri-arrow-xs-up-fill', 'ri-calendar-fill', 'ri-calendar-line', 'ri-check', 'ri-checkbox-circle-fill', 'ri-checkbox-fill', 'ri-checkbox-indeterminate-fill', 'ri-checkbox-indeterminate-line', 'ri-checkbox-line', 'ri-close-circle-fill', 'ri-close-circle-line', 'ri-close', 'ri-coins-line', 'ri-delete-bin-fill', 'ri-delete-bin-line', 'ri-error-warning-fill', 'ri-error-warning-line', 'ri-external-link-line', 'ri-facebook-circle-line', 'ri-information-fill', 'ri-information-line', 'ri-instagram-line', 'ri-linkedIn-line', 'ri-loader', 'ri-map-line', 'ri-message-fill', 'ri-message-line', 'ri-minus', 'ri-pencil-fill', 'ri-pencil-line', 'ri-question-fill', 'ri-question-line', 'ri-reply-fill', 'ri-reply-line', 'ri-search', 'ri-send-plane-fill', 'ri-send-plane-line', 'ri-settings-fill', 'ri-settings-line', 'ri-twitter-line'];
|
|
4
|
+
export var iconsMappingComponent = (_iconsMappingComponen = {}, _iconsMappingComponen['ri-account-circle-fill'] = Icons.RiAccountCircleFill, _iconsMappingComponen['ri-account-circle-line'] = Icons.RiAccountCircleLine, _iconsMappingComponen['ri-add-circle-fill'] = Icons.RiAddCircleFill, _iconsMappingComponen['ri-add-circle-line'] = Icons.RiAddCircleLine, _iconsMappingComponen['ri-add'] = Icons.RiAdd, _iconsMappingComponen['ri-alarm-warning-fill'] = Icons.RiAlarmWarningFill, _iconsMappingComponen['ri-alarm-warning-line'] = Icons.RiAlarmWarningLine, _iconsMappingComponen['ri-arrow-down-fill'] = Icons.RiArrowDownFill, _iconsMappingComponen['ri-arrow-down-line'] = Icons.RiArrowDownLine, _iconsMappingComponen['ri-arrow-go-back-fill'] = Icons.RiArrowGoBackFill, _iconsMappingComponen['ri-arrow-go-back-line'] = Icons.RiArrowGoBackLine, _iconsMappingComponen['ri-arrow-go-forward-fill'] = Icons.RiArrowGoForwardFill, _iconsMappingComponen['ri-arrow-go-forward-line'] = Icons.RiArrowGoForwardLine, _iconsMappingComponen['ri-arrow-left-fill'] = Icons.RiArrowLeftFill, _iconsMappingComponen['ri-arrow-left-line'] = Icons.RiArrowLeftLine, _iconsMappingComponen['ri-arrow-left-right-fill'] = Icons.RiArrowLeftRightFill, _iconsMappingComponen['ri-arrow-left-right-line'] = Icons.RiArrowLeftRightLine, _iconsMappingComponen['ri-arrow-m-down-fill'] = Icons.RiArrowMDownFill, _iconsMappingComponen['ri-arrow-m-down-line'] = Icons.RiArrowMDownLine, _iconsMappingComponen['ri-arrow-m-left-fill'] = Icons.RiArrowMLeftFill, _iconsMappingComponen['ri-arrow-m-left-line'] = Icons.RiArrowMLeftLine, _iconsMappingComponen['ri-arrow-m-right-fill'] = Icons.RiArrowMRightFill, _iconsMappingComponen['ri-arrow-m-right-line'] = Icons.RiArrowMRightLine, _iconsMappingComponen['ri-arrow-m-up-fill'] = Icons.RiArrowMUpFill, _iconsMappingComponen['ri-arrow-m-up-line'] = Icons.RiArrowMUpLine, _iconsMappingComponen['ri-arrow-right-fill'] = Icons.RiArrowRightFill, _iconsMappingComponen['ri-arrow-right-line'] = Icons.RiArrowRightLine, _iconsMappingComponen['ri-arrow-up-down-fill'] = Icons.RiArrowUpDownFill, _iconsMappingComponen['ri-arrow-up-down-line'] = Icons.RiArrowUpDownLine, _iconsMappingComponen['ri-arrow-up-fill'] = Icons.RiArrowUpFill, _iconsMappingComponen['ri-arrow-up-line'] = Icons.RiArrowUpLine, _iconsMappingComponen['ri-arrow-xs-down-fill'] = Icons.RiArrowXsDownFill, _iconsMappingComponen['ri-arrow-xs-up-fill'] = Icons.RiArrowXsUpFill, _iconsMappingComponen['ri-calendar-fill'] = Icons.RiCalendarFill, _iconsMappingComponen['ri-calendar-line'] = Icons.RiCalendarLine, _iconsMappingComponen['ri-check'] = Icons.RiCheck, _iconsMappingComponen['ri-checkbox-circle-fill'] = Icons.RiCheckboxCircleFill, _iconsMappingComponen['ri-checkbox-fill'] = Icons.RiCheckboxFill, _iconsMappingComponen['ri-checkbox-indeterminate-fill'] = Icons.RiCheckboxIndeterminateFill, _iconsMappingComponen['ri-checkbox-indeterminate-line'] = Icons.RiCheckboxIndeterminateLine, _iconsMappingComponen['ri-checkbox-line'] = Icons.RiCheckboxLine, _iconsMappingComponen['ri-close-circle-fill'] = Icons.RiCloseCircleFill, _iconsMappingComponen['ri-close-circle-line'] = Icons.RiCloseCircleLine, _iconsMappingComponen['ri-close'] = Icons.RiClose, _iconsMappingComponen['ri-coins-line'] = Icons.RiCoinsLine, _iconsMappingComponen['ri-delete-bin-fill'] = Icons.RiDeleteBinFill, _iconsMappingComponen['ri-delete-bin-line'] = Icons.RiDeleteBinLine, _iconsMappingComponen['ri-error-warning-fill'] = Icons.RiErrorWarningFill, _iconsMappingComponen['ri-error-warning-line'] = Icons.RiErrorWarningLine, _iconsMappingComponen['ri-external-link-line'] = Icons.RiExternalLinkLine, _iconsMappingComponen['ri-facebook-circle-line'] = Icons.RiFacebookCircleLine, _iconsMappingComponen['ri-information-fill'] = Icons.RiInformationFill, _iconsMappingComponen['ri-information-line'] = Icons.RiInformationLine, _iconsMappingComponen['ri-instagram-line'] = Icons.RiInstagramLine, _iconsMappingComponen['ri-linkedIn-line'] = Icons.RiLinkedInLine, _iconsMappingComponen['ri-loader'] = Icons.RiLoader, _iconsMappingComponen['ri-map-line'] = Icons.RiMapLine, _iconsMappingComponen['ri-message-fill'] = Icons.RiMessageFill, _iconsMappingComponen['ri-message-line'] = Icons.RiMessageLine, _iconsMappingComponen['ri-minus'] = Icons.RiMinus, _iconsMappingComponen['ri-pencil-fill'] = Icons.RiPencilFill, _iconsMappingComponen['ri-pencil-line'] = Icons.RiPencilLine, _iconsMappingComponen['ri-question-fill'] = Icons.RiQuestionFill, _iconsMappingComponen['ri-question-line'] = Icons.RiQuestionLine, _iconsMappingComponen['ri-reply-fill'] = Icons.RiReplyFill, _iconsMappingComponen['ri-reply-line'] = Icons.RiReplyLine, _iconsMappingComponen['ri-search'] = Icons.RiSearch, _iconsMappingComponen['ri-send-plane-fill'] = Icons.RiSendPlaneFill, _iconsMappingComponen['ri-send-plane-line'] = Icons.RiSendPlaneLine, _iconsMappingComponen['ri-settings-fill'] = Icons.RiSettingsFill, _iconsMappingComponen['ri-settings-line'] = Icons.RiSettingsLine, _iconsMappingComponen['ri-twitter-line'] = Icons.RiTwitterLine, _iconsMappingComponen);
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export interface LinkProps extends React.AnchorHTMLAttributes<HTMLAnchorElement> {
|
|
3
|
+
children?: React.ReactNode;
|
|
4
|
+
id?: string;
|
|
5
|
+
url?: string;
|
|
6
|
+
external?: boolean;
|
|
7
|
+
monochrome?: boolean;
|
|
8
|
+
removeUnderline?: boolean;
|
|
9
|
+
}
|
|
10
|
+
export declare const Link: ({ children, external, monochrome, removeUnderline, url, ...props }: LinkProps) => JSX.Element;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import _extends from "@babel/runtime/helpers/extends";
|
|
2
|
+
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/objectWithoutPropertiesLoose";
|
|
3
|
+
var _excluded = ["children", "external", "monochrome", "removeUnderline", "url"];
|
|
4
|
+
import React from 'react';
|
|
5
|
+
import { Icon } from '../Icon';
|
|
6
|
+
import { Typography } from '../Typography';
|
|
7
|
+
import { StyledLink } from './LinkStyle';
|
|
8
|
+
export var Link = function Link(_ref) {
|
|
9
|
+
var children = _ref.children,
|
|
10
|
+
_ref$external = _ref.external,
|
|
11
|
+
external = _ref$external === void 0 ? false : _ref$external,
|
|
12
|
+
_ref$monochrome = _ref.monochrome,
|
|
13
|
+
monochrome = _ref$monochrome === void 0 ? false : _ref$monochrome,
|
|
14
|
+
_ref$removeUnderline = _ref.removeUnderline,
|
|
15
|
+
removeUnderline = _ref$removeUnderline === void 0 ? false : _ref$removeUnderline,
|
|
16
|
+
url = _ref.url,
|
|
17
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded);
|
|
18
|
+
return /*#__PURE__*/React.createElement(StyledLink, _extends({
|
|
19
|
+
href: url,
|
|
20
|
+
"data-underline": !removeUnderline,
|
|
21
|
+
"data-monochrome": monochrome
|
|
22
|
+
}, external && {
|
|
23
|
+
target: '_blank'
|
|
24
|
+
}, props), /*#__PURE__*/React.createElement(Typography, {
|
|
25
|
+
variant: "body1"
|
|
26
|
+
}, children), external && /*#__PURE__*/React.createElement(Icon, {
|
|
27
|
+
name: "ri-external-link-line"
|
|
28
|
+
}));
|
|
29
|
+
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import styled from 'styled-components';
|
|
2
|
+
import { Blue, Neutral } from '../utilities/colors';
|
|
3
|
+
import { space2 } from '../utilities/spacing';
|
|
4
|
+
export var StyledLink = styled.a.withConfig({
|
|
5
|
+
displayName: "LinkStyle__StyledLink",
|
|
6
|
+
componentId: "sc-usx229-0"
|
|
7
|
+
})(["display:flex;align-items:center;color:", ";&[data-underline='false']{text-decoration:none;}&[data-monochrome='true']{color:", ";&:hover,&:active{color:", ";}}&:hover{color:rgba(0,86,140,0.9);svg{fill:rgba(0,86,140,0.9);}}&:active{color:", ";svg{fill:", ";}}svg{fill:", ";margin-left:", ";padding-bottom:", ";height:18px;}"], Blue.S99, Neutral.B18, Neutral.B00, Blue.S100, Blue.S100, Blue.S99, space2, space2);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './Link';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './Link';
|
|
@@ -16,7 +16,7 @@ export var SimplePaginationStyledNav = styled(StyledNav).withConfig({
|
|
|
16
16
|
export var StyledPageButton = styled.button.withConfig({
|
|
17
17
|
displayName: "PaginationStyle__StyledPageButton",
|
|
18
18
|
componentId: "sc-1hi5sa8-2"
|
|
19
|
-
})(["cursor:pointer;height:32px;min-width:32px;border:0;background:
|
|
19
|
+
})(["cursor:pointer;height:32px;min-width:32px;border:0;background:transparent;border-radius:", ";padding:", ";color:", ";&:hover{background:", ";}&:disabled{color:", ";}svg{fill:", ";width:24px;height:24px;}&[data-active='true']{background:", ";color:", ";}&:disabled svg{fill:", ";}&[data-active='true']:disabled{background:", ";color:", ";}"], borderRadius2, space4, Neutral.B18, Neutral.B95, Neutral.B85, Neutral.B40, Blue.S08, Blue.S99, Neutral.B85, Neutral.B95, Neutral.B85);
|
|
20
20
|
export var StyledSimplePaginationButton = styled(StyledPageButton).withConfig({
|
|
21
21
|
displayName: "PaginationStyle__StyledSimplePaginationButton",
|
|
22
22
|
componentId: "sc-1hi5sa8-3"
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ElementType, ReactNode } from 'react';
|
|
1
|
+
import React, { ElementType, ReactNode } from 'react';
|
|
2
2
|
declare const typographyVariant: readonly ["headline1", "headline2", "headline3", "headline4", "headline5", "headline6", "subtitle1", "subtitle2", "body1", "body2", "button", "caption", "overline"];
|
|
3
3
|
export declare type Variant = typeof typographyVariant[number];
|
|
4
4
|
export interface TypographyProps {
|
|
@@ -9,6 +9,7 @@ export interface TypographyProps {
|
|
|
9
9
|
color?: string;
|
|
10
10
|
/** Sets the Typography's variant */
|
|
11
11
|
variant?: Variant;
|
|
12
|
+
style?: React.CSSProperties;
|
|
12
13
|
}
|
|
13
|
-
export declare const Typography: ({ as, children, variant, ...props }: TypographyProps) => JSX.Element;
|
|
14
|
+
export declare const Typography: ({ as, children, variant, style, ...props }: TypographyProps) => JSX.Element;
|
|
14
15
|
export {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/objectWithoutPropertiesLoose";
|
|
3
|
-
var _excluded = ["as", "children", "variant"];
|
|
3
|
+
var _excluded = ["as", "children", "variant", "style"];
|
|
4
4
|
import React from 'react';
|
|
5
5
|
import { StyledTypography } from './TypographyStyles';
|
|
6
6
|
var typographyVariant = ['headline1', 'headline2', 'headline3', 'headline4', 'headline5', 'headline6', 'subtitle1', 'subtitle2', 'body1', 'body2', 'button', 'caption', 'overline'];
|
|
@@ -12,11 +12,13 @@ export var Typography = function Typography(_ref) {
|
|
|
12
12
|
as = _ref$as === void 0 ? 'p' : _ref$as,
|
|
13
13
|
children = _ref.children,
|
|
14
14
|
variant = _ref.variant,
|
|
15
|
+
style = _ref.style,
|
|
15
16
|
props = _objectWithoutPropertiesLoose(_ref, _excluded);
|
|
16
17
|
if (!isVariant(variant)) {
|
|
17
18
|
console.warn("Variant: " + variant + " is not of type Variant | undefined. \ntype Variant " + typographyVariant);
|
|
18
19
|
}
|
|
19
20
|
return /*#__PURE__*/React.createElement(StyledTypography, _extends({
|
|
21
|
+
style: style,
|
|
20
22
|
as: as,
|
|
21
23
|
variant: variant
|
|
22
24
|
}, props), children);
|
package/es/@next/index.d.ts
CHANGED
|
@@ -13,10 +13,12 @@ export { ButtonGroup, ButtonGroupProps } from './ButtonGroup';
|
|
|
13
13
|
export { Card, CardProps } from './Card';
|
|
14
14
|
export { Checkbox, CheckboxProps } from './Checkbox';
|
|
15
15
|
export { CurrencyInput, CurrencyInputProps } from './CurrencyInput';
|
|
16
|
+
export { DataTable, DataTableProps, TableCellProps, TableHeaderProps, TableRowProps, } from './DataTable';
|
|
16
17
|
export { Divider } from './Divider';
|
|
17
18
|
export { EmptyState } from './EmptyState';
|
|
18
19
|
export { Icon, IconProps } from './Icon';
|
|
19
20
|
export { IndexTable, IndexTableProps, useIndexResourceState, } from './IndexTable';
|
|
21
|
+
export { Link, LinkProps } from './Link';
|
|
20
22
|
export { Modal, ModalContext, ModalProps, ModalProvider, useModal, } from './Modal';
|
|
21
23
|
export { NumberInput, NumberInputProps } from './NumberInput';
|
|
22
24
|
export { Pagination, PaginationProps, SimplePagination } from './Pagination';
|
package/es/@next/index.js
CHANGED
|
@@ -14,10 +14,12 @@ export { ButtonGroup, ButtonGroupProps } from './ButtonGroup';
|
|
|
14
14
|
export { Card, CardProps } from './Card';
|
|
15
15
|
export { Checkbox, CheckboxProps } from './Checkbox';
|
|
16
16
|
export { CurrencyInput, CurrencyInputProps } from './CurrencyInput';
|
|
17
|
+
export { DataTable, DataTableProps, TableCellProps, TableHeaderProps, TableRowProps } from './DataTable';
|
|
17
18
|
export { Divider } from './Divider';
|
|
18
19
|
export { EmptyState } from './EmptyState';
|
|
19
20
|
export { Icon, IconProps } from './Icon';
|
|
20
21
|
export { IndexTable, IndexTableProps, useIndexResourceState } from './IndexTable';
|
|
22
|
+
export { Link, LinkProps } from './Link';
|
|
21
23
|
export { Modal, ModalContext, ModalProps, ModalProvider, useModal } from './Modal';
|
|
22
24
|
export { NumberInput, NumberInputProps } from './NumberInput';
|
|
23
25
|
export { Pagination, PaginationProps, SimplePagination } from './Pagination';
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { EmptyStateProps } from '../EmptyState';
|
|
3
|
+
export declare type SortDirection = 'ASCENDING' | 'DESCENDING';
|
|
4
|
+
export declare type TableHeading = React.ThHTMLAttributes<HTMLTableColElement> & {
|
|
5
|
+
title?: string;
|
|
6
|
+
id?: string;
|
|
7
|
+
defaultSortDirection?: SortDirection;
|
|
8
|
+
};
|
|
9
|
+
export declare type Total = TableHeading | null;
|
|
10
|
+
export interface DataTableProps extends React.TableHTMLAttributes<HTMLTableElement> {
|
|
11
|
+
headings: TableHeading[];
|
|
12
|
+
children: React.ReactNode;
|
|
13
|
+
emptyState: React.ReactElement<EmptyStateProps>;
|
|
14
|
+
totals?: Total[];
|
|
15
|
+
loading?: boolean;
|
|
16
|
+
loadingLabel?: string;
|
|
17
|
+
onSortChanged?: (context: string, sortDirection: SortDirection) => void;
|
|
18
|
+
}
|
|
19
|
+
export declare const DataTable: React.ForwardRefExoticComponent<DataTableProps & React.RefAttributes<HTMLTableElement>> & {
|
|
20
|
+
Row: ({ children, ...props }: import("./TableRow").TableRowProps) => JSX.Element;
|
|
21
|
+
Cell: ({ align, children }: import("./TableCell").TableCellProps) => JSX.Element;
|
|
22
|
+
Footer: ({ children }: {
|
|
23
|
+
children: React.ReactNode;
|
|
24
|
+
}) => JSX.Element;
|
|
25
|
+
};
|