@madie/madie-design-system 1.2.100 → 1.2.102
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/components/MadieTable/index.jsx +3 -1
- package/components/Pagination/index.jsx +3 -8
- package/dist/browser.js +1 -1
- package/dist/index.js +1 -1
- package/dist/react/index.js +4 -4
- package/dist/react/index.js.LICENSE.txt +3 -1
- package/dist/react/index.js.map +1 -1
- package/package.json +1 -1
- package/test/components/MadieTable.test.js +15 -0
- package/test/components/Pagination.test.js +56 -0
- package/storybook-static/favicon.svg +0 -1
- package/storybook-static/index.html +0 -169
- package/storybook-static/index.json +0 -1
- package/storybook-static/nunito-sans-bold-italic.woff2 +0 -0
- package/storybook-static/nunito-sans-bold.woff2 +0 -0
- package/storybook-static/nunito-sans-italic.woff2 +0 -0
- package/storybook-static/nunito-sans-regular.woff2 +0 -0
- package/storybook-static/project.json +0 -1
- package/storybook-static/sb-addons/a11y-5/manager-bundle.js +0 -220
- package/storybook-static/sb-addons/actions-1/manager-bundle.js +0 -3
- package/storybook-static/sb-addons/backgrounds-7/manager-bundle.js +0 -12
- package/storybook-static/sb-addons/docs-6/manager-bundle.js +0 -245
- package/storybook-static/sb-addons/knobs-4/register-bundle.js +0 -23
- package/storybook-static/sb-addons/knobs-4/register-bundle.js.LEGAL.txt +0 -11
- package/storybook-static/sb-addons/links-2/manager-bundle.js +0 -3
- package/storybook-static/sb-addons/storybook-core-core-server-presets-0/common-manager-bundle.js +0 -3
- package/storybook-static/sb-addons/storysource-3/manager-bundle.js +0 -3
- package/storybook-static/sb-addons/viewport-8/manager-bundle.js +0 -3
- package/storybook-static/sb-common-assets/favicon.svg +0 -1
- package/storybook-static/sb-common-assets/nunito-sans-bold-italic.woff2 +0 -0
- package/storybook-static/sb-common-assets/nunito-sans-bold.woff2 +0 -0
- package/storybook-static/sb-common-assets/nunito-sans-italic.woff2 +0 -0
- package/storybook-static/sb-common-assets/nunito-sans-regular.woff2 +0 -0
- package/storybook-static/sb-manager/globals-module-info.js +0 -1052
- package/storybook-static/sb-manager/globals-runtime.js +0 -41775
- package/storybook-static/sb-manager/globals.js +0 -48
- package/storybook-static/sb-manager/runtime.js +0 -12048
- package/storybook-static/sb-preview/globals.js +0 -33
- package/storybook-static/sb-preview/runtime.js +0 -7745
|
@@ -13,6 +13,7 @@ const MadieTable = ({
|
|
|
13
13
|
currentDirection,
|
|
14
14
|
handleSort,
|
|
15
15
|
renderExpandedRow,
|
|
16
|
+
emptyMessage = "No results were found",
|
|
16
17
|
id="measureListTable",
|
|
17
18
|
dataTestId = "measure-list-tbl"
|
|
18
19
|
}) => {
|
|
@@ -112,7 +113,7 @@ const MadieTable = ({
|
|
|
112
113
|
colSpan={table.getAllColumns().length}
|
|
113
114
|
style={{ padding: "40px 0", textAlign: "center" }}
|
|
114
115
|
>
|
|
115
|
-
<span>
|
|
116
|
+
<span>{emptyMessage}</span>
|
|
116
117
|
</td>
|
|
117
118
|
</tr>
|
|
118
119
|
)}
|
|
@@ -153,6 +154,7 @@ MadieTable.propTypes = {
|
|
|
153
154
|
currentDirection: PropTypes.oneOf(["ASC", "DESC"]),
|
|
154
155
|
handleSort: PropTypes.func.isRequired,
|
|
155
156
|
renderExpandedRow: PropTypes.func,
|
|
157
|
+
emptyMessage: PropTypes.node,
|
|
156
158
|
|
|
157
159
|
id: PropTypes.string,
|
|
158
160
|
dataTestId: PropTypes.string,
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import PropTypes from "prop-types";
|
|
3
|
-
import { visuallyHidden } from "@mui/utils";
|
|
4
3
|
|
|
5
4
|
import {
|
|
6
5
|
Pagination as PaginationComponent,
|
|
@@ -59,13 +58,10 @@ const Pagination = ({
|
|
|
59
58
|
return (
|
|
60
59
|
<Container>
|
|
61
60
|
<Row>
|
|
62
|
-
{/*this span is only for screen reader*/}
|
|
63
|
-
<span id="items-per-page" style={visuallyHidden}>
|
|
64
|
-
Items per page {limit}.
|
|
65
|
-
</span>
|
|
66
61
|
<Typography
|
|
67
62
|
fontSize={14}
|
|
68
63
|
fontFamily="Rubik"
|
|
64
|
+
id="items-per-page"
|
|
69
65
|
sx={{
|
|
70
66
|
color: "#333333",
|
|
71
67
|
}}
|
|
@@ -89,13 +85,12 @@ const Pagination = ({
|
|
|
89
85
|
},
|
|
90
86
|
}}
|
|
91
87
|
id="pagination-limit-select"
|
|
88
|
+
labelId="items-per-page"
|
|
92
89
|
value={limit}
|
|
93
90
|
label={null}
|
|
94
91
|
onChange={handleLimitChange}
|
|
95
92
|
inputProps={{
|
|
96
|
-
"aria-
|
|
97
|
-
"aria-describedby":
|
|
98
|
-
"items-per-page offset-of-total-items",
|
|
93
|
+
"aria-describedby": "offset-of-total-items",
|
|
99
94
|
}}
|
|
100
95
|
>
|
|
101
96
|
{limitOptions.map((val) => (
|