@madie/madie-design-system 1.0.7 → 1.0.10

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 (139) hide show
  1. package/components/Button/Button.stories.js +6 -0
  2. package/components/Button/index.js +8 -1
  3. package/components/FormControlLabel/index.jsx +16 -16
  4. package/components/InputLabel/index.jsx +38 -50
  5. package/components/MadieSpinner/MadieSpinner.stories.js +29 -0
  6. package/components/MadieSpinner/index.jsx +35 -0
  7. package/components/Pagination/index.jsx +85 -99
  8. package/components/Select/index.jsx +36 -27
  9. package/components/TextField/index.jsx +27 -33
  10. package/components/Toast/Toast.stories.js +75 -0
  11. package/components/Toast/index.jsx +116 -0
  12. package/components/index.js +4 -0
  13. package/coverage/clover.xml +15 -1330
  14. package/coverage/coverage-final.json +1 -72
  15. package/coverage/lcov-report/InputLabel/index.html +17 -17
  16. package/coverage/lcov-report/InputLabel/index.jsx.html +60 -15
  17. package/coverage/lcov-report/MadieSpinner/index.html +116 -0
  18. package/coverage/lcov-report/MadieSpinner/index.jsx.html +196 -0
  19. package/coverage/lcov-report/Textfield/index.html +23 -23
  20. package/coverage/lcov-report/Textfield/index.jsx.html +26 -23
  21. package/coverage/lcov-report/index.html +13 -403
  22. package/coverage/lcov-report/index.jsx.html +130 -370
  23. package/coverage/lcov-report/react/components/Accordion/index.html +1 -1
  24. package/coverage/lcov-report/react/components/Accordion/index.jsx.html +1 -1
  25. package/coverage/lcov-report/react/components/Button/index.html +1 -1
  26. package/coverage/lcov-report/react/components/Button/index.js.html +1 -1
  27. package/coverage/lcov-report/react/components/Error/Collapsible.jsx.html +1 -1
  28. package/coverage/lcov-report/react/components/Error/ErrorUI.jsx.html +1 -1
  29. package/coverage/lcov-report/react/components/Error/error.js.html +1 -1
  30. package/coverage/lcov-report/react/components/Error/index.html +1 -1
  31. package/coverage/lcov-report/react/components/Footer/FooterUI.jsx.html +92 -41
  32. package/coverage/lcov-report/react/components/Footer/LegacyFooterUI.jsx.html +1 -1
  33. package/coverage/lcov-report/react/components/Footer/SocialLinks.jsx.html +11 -11
  34. package/coverage/lcov-report/react/components/Footer/Subscribe.jsx.html +11 -11
  35. package/coverage/lcov-report/react/components/Footer/footer.js.html +1 -1
  36. package/coverage/lcov-report/react/components/Footer/index.html +38 -38
  37. package/coverage/lcov-report/react/components/Header/HeaderAccountMenu.jsx.html +1 -1
  38. package/coverage/lcov-report/react/components/Header/HeaderCancel.jsx.html +1 -1
  39. package/coverage/lcov-report/react/components/Header/HeaderContainer.jsx.html +1 -1
  40. package/coverage/lcov-report/react/components/Header/HeaderLogo.jsx.html +1 -1
  41. package/coverage/lcov-report/react/components/Header/HeaderMenuButton.js.html +1 -1
  42. package/coverage/lcov-report/react/components/Header/HeaderMenuItem.jsx.html +1 -1
  43. package/coverage/lcov-report/react/components/Header/HeaderMenuLink.js.html +1 -1
  44. package/coverage/lcov-report/react/components/Header/HeaderMenuSignOutButton.js.html +1 -1
  45. package/coverage/lcov-report/react/components/Header/HeaderMobileButton.js.html +1 -1
  46. package/coverage/lcov-report/react/components/Header/HeaderUI.jsx.html +1 -1
  47. package/coverage/lcov-report/react/components/Header/HelpIcon.jsx.html +1 -1
  48. package/coverage/lcov-report/react/components/Header/ImpersonatorBanner.jsx.html +1 -1
  49. package/coverage/lcov-report/react/components/Header/NavigationButtonIcon.jsx.html +1 -1
  50. package/coverage/lcov-report/react/components/Header/header.js.html +1 -1
  51. package/coverage/lcov-report/react/components/Header/hooks.js.html +1 -1
  52. package/coverage/lcov-report/react/components/Header/index.html +1 -1
  53. package/coverage/lcov-report/react/components/Header/utag-helpers.js.html +1 -1
  54. package/coverage/lcov-report/react/components/Infotip/Infotip.jsx.html +2 -2
  55. package/coverage/lcov-report/react/components/Infotip/InfotipIcon.jsx.html +2 -2
  56. package/coverage/lcov-report/react/components/Infotip/index.html +1 -1
  57. package/coverage/lcov-report/react/components/Infotip/index.js.html +1 -1
  58. package/coverage/lcov-report/react/components/InputLabel/index.html +1 -1
  59. package/coverage/lcov-report/react/components/InputLabel/index.jsx.html +48 -3
  60. package/coverage/lcov-report/react/components/Modal/LegacyModal.jsx.html +1 -1
  61. package/coverage/lcov-report/react/components/Modal/Modal.jsx.html +1 -1
  62. package/coverage/lcov-report/react/components/Modal/index.html +1 -1
  63. package/coverage/lcov-report/react/components/Modal/index.jsx.html +1 -1
  64. package/coverage/lcov-report/react/components/NotificationBanner/index.html +1 -1
  65. package/coverage/lcov-report/react/components/NotificationBanner/index.js.html +1 -1
  66. package/coverage/lcov-report/react/components/Pagination/index.html +1 -1
  67. package/coverage/lcov-report/react/components/Pagination/index.jsx.html +26 -11
  68. package/coverage/lcov-report/react/components/SanitizedContent/index.html +1 -1
  69. package/coverage/lcov-report/react/components/SanitizedContent/index.jsx.html +1 -1
  70. package/coverage/lcov-report/react/components/Select/index.html +1 -1
  71. package/coverage/lcov-report/react/components/Select/index.jsx.html +7 -4
  72. package/coverage/lcov-report/react/components/SessionDialog/index.html +1 -1
  73. package/coverage/lcov-report/react/components/SessionDialog/sessionDialog.js.html +1 -1
  74. package/coverage/lcov-report/react/components/SessionDialogUI.jsx.html +1 -1
  75. package/coverage/lcov-report/react/components/SideNav/AnimationGroup/AnimationGroup.jsx.html +1 -1
  76. package/coverage/lcov-report/react/components/SideNav/AnimationGroup/index.html +1 -1
  77. package/coverage/lcov-report/react/components/SideNav/Chart/ScoreChart.jsx.html +1 -1
  78. package/coverage/lcov-report/react/components/SideNav/Chart/index.html +1 -1
  79. package/coverage/lcov-report/react/components/SideNav/Chart/index.js.html +1 -1
  80. package/coverage/lcov-report/react/components/SideNav/Content/LevelOneContent.jsx.html +1 -1
  81. package/coverage/lcov-report/react/components/SideNav/Content/LevelTwoContent.jsx.html +1 -1
  82. package/coverage/lcov-report/react/components/SideNav/Content/index.html +1 -1
  83. package/coverage/lcov-report/react/components/SideNav/Content/index.js.html +1 -1
  84. package/coverage/lcov-report/react/components/SideNav/Details/IndividualDetails.jsx.html +1 -1
  85. package/coverage/lcov-report/react/components/SideNav/Details/PracticeDetails.jsx.html +1 -1
  86. package/coverage/lcov-report/react/components/SideNav/Details/index.html +1 -1
  87. package/coverage/lcov-report/react/components/SideNav/Details/index.js.html +1 -1
  88. package/coverage/lcov-report/react/components/SideNav/Links/CmsSwitchLink.jsx.html +1 -1
  89. package/coverage/lcov-report/react/components/SideNav/Links/NavItemInline.jsx.html +1 -1
  90. package/coverage/lcov-report/react/components/SideNav/Links/NavLinkContainer.jsx.html +1 -1
  91. package/coverage/lcov-report/react/components/SideNav/Links/NavLinkDrawer.jsx.html +1 -1
  92. package/coverage/lcov-report/react/components/SideNav/Links/NavLinkInline.jsx.html +1 -1
  93. package/coverage/lcov-report/react/components/SideNav/Links/NavLinkToggle.jsx.html +1 -1
  94. package/coverage/lcov-report/react/components/SideNav/Links/index.html +1 -1
  95. package/coverage/lcov-report/react/components/SideNav/Links/index.js.html +1 -1
  96. package/coverage/lcov-report/react/components/SideNav/UI/SideNavUI.jsx.html +1 -1
  97. package/coverage/lcov-report/react/components/SideNav/UI/index.html +1 -1
  98. package/coverage/lcov-report/react/components/SideNav/UI/index.js.html +1 -1
  99. package/coverage/lcov-report/react/components/SideNav/helpers.js.html +1 -1
  100. package/coverage/lcov-report/react/components/SideNav/index.html +1 -1
  101. package/coverage/lcov-report/react/components/SideNav/index.js.html +1 -1
  102. package/coverage/lcov-report/react/components/Textfield/index.html +3 -3
  103. package/coverage/lcov-report/react/components/Textfield/index.jsx.html +8 -5
  104. package/coverage/lcov-report/react/components/Tooltip/Tooltip.jsx.html +8 -8
  105. package/coverage/lcov-report/react/components/Tooltip/index.html +1 -1
  106. package/coverage/lcov-report/react/components/Tooltip/index.js.html +1 -1
  107. package/coverage/lcov-report/react/components/Tooltip/position.js.html +1 -1
  108. package/coverage/lcov-report/react/components/hooks/index.html +1 -1
  109. package/coverage/lcov-report/react/components/hooks/useGetConfig.js.html +1 -1
  110. package/coverage/lcov-report/react/components/index.html +1 -1
  111. package/coverage/lcov-report/react/index.html +1 -1
  112. package/coverage/lcov-report/react/index.js.html +1 -1
  113. package/coverage/lcov-report/react/lib/Chevron.jsx.html +1 -1
  114. package/coverage/lcov-report/react/lib/SvgComponents.jsx.html +1 -1
  115. package/coverage/lcov-report/react/lib/index.html +1 -1
  116. package/coverage/lcov-report/react/lib/svg-definitions.svg.html +1 -1
  117. package/coverage/lcov-report/react/session/index.html +1 -1
  118. package/coverage/lcov-report/react/session/index.js.html +1 -1
  119. package/coverage/lcov-report/react/session/logout.js.html +1 -1
  120. package/coverage/lcov-report/react/session/refresh.js.html +1 -1
  121. package/coverage/lcov-report/react/session/ttl.js.html +1 -1
  122. package/coverage/lcov.info +15 -2996
  123. package/dist/browser.js +1 -1
  124. package/dist/index.js +1 -1
  125. package/dist/react/index.js +19 -19
  126. package/dist/react/index.js.LICENSE.txt +0 -8
  127. package/dist/react/index.js.map +1 -1
  128. package/package.json +1 -1
  129. package/storybook-static/795.32ffebb1.iframe.bundle.js +103 -0
  130. package/storybook-static/{749.f895d976.iframe.bundle.js.LICENSE.txt → 795.32ffebb1.iframe.bundle.js.LICENSE.txt} +0 -0
  131. package/storybook-static/795.32ffebb1.iframe.bundle.js.map +1 -0
  132. package/storybook-static/iframe.html +1 -1
  133. package/storybook-static/main.45299231.iframe.bundle.js +1 -0
  134. package/styles/qppds/components/_button.scss +39 -0
  135. package/test/components/MadieSpinner.test.js +25 -0
  136. package/test/components/Toast.test.js +70 -0
  137. package/storybook-static/749.f895d976.iframe.bundle.js +0 -76
  138. package/storybook-static/749.f895d976.iframe.bundle.js.map +0 -1
  139. package/storybook-static/main.f0be52a5.iframe.bundle.js +0 -1
@@ -43,6 +43,12 @@ export const Danger = () => (
43
43
  </Container>
44
44
  );
45
45
 
46
+ export const DangerPrimary = () => (
47
+ <Container>
48
+ <Button variant="danger-primary">Button</Button>
49
+ </Container>
50
+ );
51
+
46
52
  export const Outline = () => (
47
53
  <Container className="qpp-u-fill--blue-80">
48
54
  <Button variant="outline">Button</Button>
@@ -1,7 +1,14 @@
1
1
  import React from "react";
2
2
  import PropTypes from "prop-types";
3
3
 
4
- const VARIANTS = ["secondary", "outline", "danger", "white"];
4
+ const VARIANTS = [
5
+ "secondary",
6
+ "outline",
7
+ "cyan",
8
+ "danger",
9
+ "danger-primary",
10
+ "white",
11
+ ];
5
12
  const SIZES = ["big"];
6
13
 
7
14
  const Button = ({
@@ -1,23 +1,23 @@
1
1
  import React from "react";
2
2
  import { FormControlLabel as MUIFormControlLabel } from "@mui/material";
3
- import { makeStyles } from "@mui/styles";
4
3
 
5
- const useStyles = makeStyles({
6
- root: {
7
- flexGrow: 1,
8
- textTransform: "none",
9
- margin: 0,
10
- "& .MuiTypography-root": {
11
- color: "#333",
12
- fontSize: 14,
13
- fontFamily: "Rubik",
14
- fontWeight: 500,
15
- },
16
- },
17
- });
18
4
  const Label = (props) => {
19
- const classes = useStyles();
20
- return <MUIFormControlLabel classes={classes} {...props} />;
5
+ return (
6
+ <MUIFormControlLabel
7
+ sx={{
8
+ flexGrow: 1,
9
+ textTransform: "none",
10
+ margin: 0,
11
+ "& .MuiTypography-root": {
12
+ color: "#333",
13
+ fontSize: 14,
14
+ fontFamily: "Rubik",
15
+ fontWeight: 500,
16
+ },
17
+ }}
18
+ {...props}
19
+ />
20
+ );
21
21
  };
22
22
 
23
23
  export default Label;
@@ -1,57 +1,45 @@
1
1
  import React from "react";
2
2
  import { InputLabel as MUIInputLabel } from "@mui/material";
3
- import { makeStyles } from "@mui/styles";
4
- const useStyles = makeStyles({
5
- asterisk: {
6
- color: "#D92F2F",
7
- },
8
- root: {
9
- "&&": {
10
- backgroundColor: "transparent",
11
- display: "flex",
12
- flexDirection: "row-reverse",
13
- alignSelf: "baseline",
14
- textTransform: "none",
15
- // force it outside the select box
16
- position: "initial",
17
- transform: "translateX(0px) translateY(0px)",
18
- fontFamily: "Rubik",
19
- fontWeight: 500,
20
- fontSize: 14,
21
- color: "#333",
22
- },
23
- },
24
- required: {
25
- "&&": {
26
- transform: "translateX(-12px) translateY(0px)",
27
- "& .MuiInputLabel-asterisk": {
28
- color: "#D92F2F",
29
- marginRight: "3px !important", //this was hitting an mui bug.
30
- },
31
- },
32
- },
33
- error: {
34
- "&&": {
35
- color: "#D92F2F",
36
- },
37
- },
38
- disabled: {
39
- "&&": {
40
- color: "rgba(0,0,0,0.6)",
41
- },
42
- },
43
- });
44
- const Label = (props) => {
45
- const classes = useStyles();
3
+ const Label = ({ required, disabled, error, ...rest }) => {
46
4
  return (
47
5
  <MUIInputLabel
48
- classes={{
49
- root: classes.root,
50
- required: classes.required,
51
- error: classes.error,
52
- disabled: classes.disabled,
53
- }}
54
- {...props}
6
+ required={required}
7
+ disabled={disabled}
8
+ error={error}
9
+ sx={[
10
+ {
11
+ backgroundColor: "transparent",
12
+ display: "flex",
13
+ flexDirection: "row-reverse",
14
+ alignSelf: "baseline",
15
+ textTransform: "none",
16
+ // force it outside the select box
17
+ position: "initial",
18
+ transform: "translateX(0px) translateY(0px)",
19
+ fontFamily: "Rubik",
20
+ fontWeight: 500,
21
+ fontSize: 14,
22
+ color: "#333",
23
+ "& .MuiInputLabel-asterisk": {
24
+ color: "#D92F2F",
25
+ marginRight: "3px !important", //this was
26
+ },
27
+ },
28
+ required && {
29
+ transform: "translateX(-12px) translateY(0px)",
30
+ "& .MuiInputLabel-asterisk": {
31
+ color: "#D92F2",
32
+ marginRight: "3px !important", //this was
33
+ },
34
+ },
35
+ disabled && {
36
+ color: "rgba(0,0,0,0.6)",
37
+ },
38
+ error && {
39
+ color: "#D92F2F",
40
+ },
41
+ ]}
42
+ {...rest}
55
43
  />
56
44
  );
57
45
  };
@@ -0,0 +1,29 @@
1
+ import React from "react";
2
+ import PropTypes from "prop-types";
3
+ import { withKnobs } from "@storybook/addon-knobs";
4
+ import MadieSpinner from "./index";
5
+
6
+ export default {
7
+ title: "MadieSpinner",
8
+ component: MadieSpinner,
9
+ decorators: [withKnobs],
10
+ };
11
+
12
+ const Wrapper = ({ children }) => (
13
+ <div className="qpp-u-padding--16" style={{ width: 300 }}>
14
+ {children}
15
+ </div>
16
+ );
17
+
18
+ Wrapper.propTypes = {
19
+ className: PropTypes.string,
20
+ children: PropTypes.node,
21
+ };
22
+
23
+ export const ExampleSpinner = () => (
24
+ <Wrapper>
25
+ <MadieSpinner />
26
+ </Wrapper>
27
+ );
28
+
29
+ ExampleSpinner.storyName = "example Madie Spinner";
@@ -0,0 +1,35 @@
1
+ import React from "react";
2
+ import { CircularProgress } from "@mui/material";
3
+ import PropTypes from "prop-types";
4
+
5
+ // To change the spinner size you have to pass style props for height and width.
6
+ const MadieSpinner = (props) => {
7
+ return (
8
+ <CircularProgress
9
+ aria-label="loading-spinner"
10
+ sx={{
11
+ "& .MuiCircularProgress-svg": {
12
+ backgroundColor: "transparent",
13
+ borderRadius: "100%",
14
+ boxShadow: `inset 0 0 0px ${
15
+ props.thickness ? props.thickness : "7"
16
+ }px #DDDDDD`,
17
+ },
18
+ "& .MuiCircularProgress-circle": {
19
+ color: "#209FA6",
20
+ strokeLinecap: "round",
21
+ },
22
+ }}
23
+ thickness={7}
24
+ style={{ height: 50, width: 50 }}
25
+ // Props overwrite whatever they want.
26
+ {...props}
27
+ />
28
+ );
29
+ };
30
+
31
+ MadieSpinner.propTypes = {
32
+ thickness: PropTypes.number,
33
+ };
34
+
35
+ export default MadieSpinner;
@@ -1,5 +1,4 @@
1
1
  import React from "react";
2
- import { makeStyles } from "@mui/styles";
3
2
  import PropTypes from "prop-types";
4
3
  import {
5
4
  Pagination as PaginationComponent,
@@ -8,90 +7,7 @@ import {
8
7
  MenuItem,
9
8
  Typography,
10
9
  } from "@mui/material";
11
-
12
- const useStyles = makeStyles({
13
- root: {
14
- display: "flex",
15
- flexGrow: 1,
16
- flexDirection: "row",
17
- justifyContent: "space-between",
18
- alignItems: "center",
19
- minHeight: 90,
20
- padding: "0px 24px",
21
- },
22
- row: {
23
- display: "flex",
24
- flexDirection: "row",
25
- alignItems: "center",
26
- },
27
- // text
28
- dark: {
29
- color: "#333333",
30
- },
31
- faded: {
32
- color: "#757575",
33
- },
34
- //select
35
- selectRoot: {
36
- margin: '0 11px',
37
- "& .MuiOutlinedInput-notchedOutline": {
38
- "& legend": {
39
- width: 0,
40
- },
41
- },
42
- "& .MuiInputBase-input": {
43
- fontFamily: "Rubik",
44
- fontSize: 14,
45
- borderRadius: 3,
46
- },
47
- },
48
- // pagination
49
- ul: {
50
- "& .MuiPaginationItem-root": {
51
- color: "#0073C8",
52
- border: "solid 1px #CACACA",
53
- "&:focus": {
54
- border: "0.0625rem solid #125496",
55
- borderRadius: "0.1875rem",
56
- boxShadow: "0 0 0 0.25rem #cbe4ff",
57
- outline: "none",
58
- },
59
- },
60
- "& .Mui-selected": {
61
- color: "#fff",
62
- backgroundColor: "#0073C8 !important",
63
- },
64
- "& .MuiPaginationItem-ellipsis": {
65
- border: "solid 1px transparent",
66
- },
67
- "& .MuiPaginationItem-previousNext": {
68
- border: "solid 1px transparent",
69
- },
70
- },
71
- next: {
72
- border: "solid 1px transparent",
73
- "&::before": {
74
- content: '"Next "',
75
- marginRight: 5,
76
- fontSize: 14,
77
- fontFamily: "Rubik",
78
- },
79
- },
80
- prev: {
81
- border: "solid 1px transparent",
82
- "&::after": {
83
- content: '" Previous"',
84
- marginLeft: 5,
85
- fontSize: 14,
86
- fontFamily: "Rubik",
87
- },
88
- },
89
- selected: {
90
- backgroundColor: "#0073C8",
91
- border: "solid 1px #0073C8",
92
- color: "#fff",
93
- },
94
- });
10
+ import { styled } from "@mui/system";
95
11
 
96
12
  // for ts later implemeentation.
97
13
  // interface PaginationProps {
@@ -109,7 +25,20 @@ const useStyles = makeStyles({
109
25
  // hidePrevButton: boolean;
110
26
  // hideNextButton: boolean;
111
27
  // }
112
-
28
+ const Container = styled("div")({
29
+ display: "flex",
30
+ flexGrow: 1,
31
+ flexDirection: "row",
32
+ justifyContent: "space-between",
33
+ alignItems: "center",
34
+ minHeight: 90,
35
+ padding: "0px 24px",
36
+ });
37
+ const Row = styled("div")({
38
+ display: "flex",
39
+ flexDirection: "row",
40
+ alignItems: "center",
41
+ });
113
42
  const Pagination = ({
114
43
  totalItems = 0,
115
44
  visibleItems = 0,
@@ -124,20 +53,33 @@ const Pagination = ({
124
53
  hidePrevButton = true,
125
54
  hideNextButton = false,
126
55
  }) => {
127
- const classes = useStyles();
128
56
  return (
129
- <div className={classes.root}>
130
- <div className={classes.row}>
57
+ <Container>
58
+ <Row>
131
59
  <Typography
132
60
  fontSize={14}
133
61
  fontFamily="Rubik"
134
- className={classes.dark}
62
+ sx={{
63
+ color: "#333333",
64
+ }}
135
65
  >
136
66
  Items per page
137
67
  </Typography>
138
68
  <Select
139
69
  size="small"
140
- className={classes.selectRoot}
70
+ sx={{
71
+ margin: "0 11px",
72
+ "& .MuiOutlinedInput-notchedOutline": {
73
+ "& legend": {
74
+ width: 0,
75
+ },
76
+ },
77
+ "& .MuiInputBase-input": {
78
+ fontFamily: "Rubik",
79
+ fontSize: 14,
80
+ borderRadius: 3,
81
+ },
82
+ }}
141
83
  id="pagination-limit-select"
142
84
  value={limit}
143
85
  label={null}
@@ -155,31 +97,75 @@ const Pagination = ({
155
97
  </Select>
156
98
  <Typography
157
99
  fontSize={14}
158
- className={classes.faded}
100
+ sx={{
101
+ color: "#757575",
102
+ }}
159
103
  fontFamily="Rubik"
160
104
  >{`${offset + 1} - ${
161
105
  visibleItems + offset
162
106
  } of ${totalItems}`}</Typography>
163
- </div>
107
+ </Row>
164
108
  <PaginationComponent
165
- classes={{
166
- ul: classes.ul,
167
- selected: classes.selected,
109
+ sx={{
110
+ "& .MuiPagination-ul": {
111
+ "& .MuiPaginationItem-root": {
112
+ color: "#0073C8",
113
+ border: "solid 1px #CACACA",
114
+ "&:focus": {
115
+ border: "0.0625rem solid #125496",
116
+ borderRadius: "0.1875rem",
117
+ boxShadow: "0 0 0 0.25rem #cbe4ff",
118
+ outline: "none",
119
+ },
120
+ },
121
+ "& .Mui-selected": {
122
+ color: "#fff",
123
+ backgroundColor: "#0073C8 !important",
124
+ },
125
+ "& .MuiPaginationItem-ellipsis": {
126
+ border: "solid 1px transparent",
127
+ },
128
+ "& .MuiPaginationItem-previousNext": {
129
+ border: "solid 1px transparent",
130
+ },
131
+ },
168
132
  }}
169
133
  renderItem={(props) => {
170
134
  if (props.type === "next") {
171
135
  return (
172
136
  <PaginationItem
137
+ sx={{
138
+ border: "solid 1px transparent",
139
+ "& .Mui-selected": {
140
+ backgroundColor: "#0073C8",
141
+ border: "solid 1px #0073C8",
142
+ color: "#fff",
143
+ },
144
+ "&::before": {
145
+ content: '"Next "',
146
+ marginRight: "5px",
147
+ fontSize: 14,
148
+ fontFamily: "Rubik",
149
+ },
150
+ }}
173
151
  {...props}
174
- classes={{ text: classes.next }}
175
152
  />
176
153
  );
177
154
  }
178
155
  if (props.type === "previous") {
179
156
  return (
180
157
  <PaginationItem
158
+ sx={{
159
+ border: "solid 1px transparent",
160
+ "& .Mui-selected": {},
161
+ "&::after": {
162
+ content: '" Previous"',
163
+ marginLeft: "5px",
164
+ fontSize: 14,
165
+ fontFamily: "Rubik",
166
+ },
167
+ }}
181
168
  {...props}
182
- classes={{ text: classes.prev }}
183
169
  />
184
170
  );
185
171
  }
@@ -194,7 +180,7 @@ const Pagination = ({
194
180
  hidePrevButton={hidePrevButton}
195
181
  hideNextButton={hideNextButton}
196
182
  />
197
- </div>
183
+ </Container>
198
184
  );
199
185
  };
200
186
 
@@ -1,33 +1,10 @@
1
1
  import React from "react";
2
2
  import { FormControl, Select as MUISelect, MenuItem } from "@mui/material";
3
- import { makeStyles } from "@mui/styles";
4
3
  import ExpandMoreIcon from "@mui/icons-material/ExpandMore";
5
4
  import InputLabel from "../InputLabel";
6
5
  import FormHelperText from "@mui/material/FormHelperText";
7
6
  import PropTypes from "prop-types";
8
7
 
9
- const useStyles = makeStyles({
10
- icon: {
11
- color: "#323232",
12
- },
13
- select: {
14
- border: "1px solid #DDDDDD",
15
- // hide legend
16
- "& .MuiOutlinedInput-notchedOutline": {
17
- "& legend": {
18
- width: 0,
19
- },
20
- },
21
- "& .MuiInputBase-input": {
22
- paddingTop: 7.5,
23
- paddingBottom: 7.5,
24
- fontFamily: "Rubik",
25
- fontSize: 14,
26
- borderRadius: 3,
27
- },
28
- },
29
- });
30
- // custom select to make this way easier
31
8
  const Select = ({
32
9
  placeHolder = undefined, // expects placeholder objects of { name: value } and inserts into the render item function.
33
10
  required = false,
@@ -47,8 +24,12 @@ const Select = ({
47
24
  ],
48
25
  ...rest
49
26
  }) => {
50
- const classes = useStyles();
51
- const placehold = <span>{placeHolder?.name || "placeholder"}</span>;
27
+ // const classes = useStyles();
28
+ const placehold = (
29
+ <span style={{ opacity: 0.6 }}>
30
+ {placeHolder?.name || "placeholder"}
31
+ </span>
32
+ );
52
33
  return (
53
34
  <FormControl error={error} fullWidth>
54
35
  <InputLabel
@@ -60,8 +41,36 @@ const Select = ({
60
41
  {label}
61
42
  </InputLabel>
62
43
  <MUISelect
63
- className={classes.select}
64
- classes={{ icon: classes.icon }}
44
+ sx={{
45
+ borderRadius: "3px",
46
+ height: 40, //there's a .13 coming from somewhere.
47
+ border: "1px solid #DDDDDD",
48
+ // remove weird line break from legend
49
+ "& .MuiOutlinedInput-notchedOutline": {
50
+ borderRadius: "3px",
51
+ "& legend": {
52
+ width: 0,
53
+ },
54
+ },
55
+ "& .MuiOutlinedInput-root": {
56
+ "&&": {
57
+ borderRadius: "3px",
58
+ },
59
+ },
60
+ // input base selector
61
+ "& .MuiInputBase-input": {
62
+ fontFamily: "Rubik",
63
+ fontSize: 14,
64
+ borderRadius: "3px",
65
+ padding: "9px 14px",
66
+ "&::placeholder": {
67
+ opacity: 0.6,
68
+ },
69
+ },
70
+ "& .MuiSelect-icon": {
71
+ color: "#323232",
72
+ },
73
+ }}
65
74
  displayEmpty
66
75
  IconComponent={ExpandMoreIcon}
67
76
  error={error}
@@ -1,39 +1,8 @@
1
1
  import React from "react";
2
2
  import { FormControl, TextField as MUITextField } from "@mui/material";
3
- import { makeStyles } from "@mui/styles";
4
3
  import InputLabel from "../InputLabel";
5
4
  import PropTypes from "prop-types";
6
5
 
7
- const useStyles = makeStyles({
8
- asterisk: {
9
- color: "#D92F2F",
10
- },
11
- select: {
12
- borderRadius: 3,
13
- height: 40, //there's a .13 coming from somewhere.
14
- border: "1px solid #DDDDDD",
15
- // remove weird line break from legend
16
- "& .MuiOutlinedInput-notchedOutline": {
17
- "& legend": {
18
- width: 0,
19
- },
20
- },
21
- "& .MuiOutlinedInput-root": {
22
- borderRadius: 3,
23
- },
24
- // input base selector
25
- "& .MuiInputBase-input": {
26
- fontFamily: "Rubik",
27
- fontSize: 14,
28
- borderRadius: 3,
29
- padding: "9px 14px",
30
- "&::placeholder": {
31
- opacity: 1,
32
- },
33
- },
34
- },
35
- // add a little space
36
- });
37
6
  const TextField = ({
38
7
  id,
39
8
  error = false,
@@ -43,7 +12,6 @@ const TextField = ({
43
12
  label,
44
13
  ...rest
45
14
  }) => {
46
- const classes = useStyles();
47
15
  return (
48
16
  <FormControl fullWidth error={error}>
49
17
  <InputLabel
@@ -56,7 +24,33 @@ const TextField = ({
56
24
  {label}
57
25
  </InputLabel>
58
26
  <MUITextField
59
- className={classes.select}
27
+ sx={{
28
+ borderRadius: "3px",
29
+ height: 40, //there's a .13 coming from somewhere.
30
+ border: "1px solid #DDDDDD",
31
+ // remove weird line break from legend
32
+ "& .MuiOutlinedInput-notchedOutline": {
33
+ borderRadius: "3px",
34
+ "& legend": {
35
+ width: 0,
36
+ },
37
+ },
38
+ "& .MuiOutlinedInput-root": {
39
+ "&&": {
40
+ borderRadius: "3px",
41
+ },
42
+ },
43
+ // input base selector
44
+ "& .MuiInputBase-input": {
45
+ fontFamily: "Rubik",
46
+ fontSize: 14,
47
+ borderRadius: "3px",
48
+ padding: "9px 14px",
49
+ "&::placeholder": {
50
+ opacity: 0.6,
51
+ },
52
+ },
53
+ }}
60
54
  label={null}
61
55
  error={error}
62
56
  disabled={disabled}