@madie/madie-design-system 2.0.0 → 2.0.2

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 (78) hide show
  1. package/.babelrc +14 -2
  2. package/.storybook/preview.js +1 -1
  3. package/components/Accordion/index.jsx +32 -36
  4. package/components/AutoComplete/AutoComplete.jsx +1 -16
  5. package/components/Button/Button.stories.js +0 -5
  6. package/components/Button/index.js +34 -44
  7. package/components/DateField/DateField.jsx +1 -14
  8. package/components/DateTimeField/DateTimeField.jsx +1 -9
  9. package/components/InputLabel/index.jsx +1 -6
  10. package/components/Instant/index.jsx +0 -16
  11. package/components/Link/index.js +42 -0
  12. package/components/MadieAlert/index.jsx +1 -40
  13. package/components/MadieConfirmDialog/MadieConfirmDialog.stories.js +0 -5
  14. package/components/MadieConfirmDialog/index.jsx +0 -8
  15. package/components/MadieDeleteDialog/MadieDeleteDialog.stories.js +24 -5
  16. package/components/MadieDeleteDialog/index.jsx +18 -8
  17. package/components/MadieDialog/MadieDialog.stories.js +0 -5
  18. package/components/MadieDialog/index.jsx +0 -21
  19. package/components/MadieDiscardDialog/MadieDiscardDialog.stories.js +0 -5
  20. package/components/MadieDiscardDialog/index.jsx +0 -7
  21. package/components/MadieSpinner/MadieSpinner.stories.js +0 -6
  22. package/components/MadieSpinner/index.jsx +0 -5
  23. package/components/MadieTooltip/index.jsx +0 -6
  24. package/components/MadieTooltipIcon/index.jsx +0 -5
  25. package/components/Modal/Modal.jsx +31 -43
  26. package/components/Modal/index.jsx +6 -8
  27. package/components/NumberInput/NumberInput.stories.js +0 -5
  28. package/components/NumberInput/index.jsx +0 -13
  29. package/components/Pagination/index.jsx +0 -17
  30. package/components/Popover/index.js +0 -23
  31. package/components/RadioButton/RadioButton.jsx +1 -13
  32. package/components/ReadOnlyTextField/ReadOnlyTextField.stories.js +0 -6
  33. package/components/ReadOnlyTextField/index.jsx +0 -8
  34. package/components/RichTextEditor/index.jsx +0 -15
  35. package/components/SanitizedContent/index.jsx +0 -8
  36. package/components/Search/index.js +26 -40
  37. package/components/Select/Select.stories.js +0 -4
  38. package/components/Select/index.jsx +1 -16
  39. package/components/Tabs/Tab.js +29 -25
  40. package/components/Tabs/TabPanel.js +15 -19
  41. package/components/Tabs/Tabs.stories.js +14 -50
  42. package/components/Tabs/index.js +10 -28
  43. package/components/TextArea/TextArea.stories.js +0 -6
  44. package/components/TextArea/index.jsx +1 -13
  45. package/components/TextField/TextField.stories.js +0 -6
  46. package/components/TextField/index.jsx +1 -16
  47. package/components/TimeField/TimeField.jsx +0 -10
  48. package/components/Toast/index.jsx +0 -14
  49. package/components/TruncateText/index.js +0 -8
  50. package/components/{index.js → index.mjs} +37 -33
  51. package/dist/index.js +3 -1
  52. package/dist/index.js.LICENSE.txt +16 -0
  53. package/dist/index.js.map +1 -0
  54. package/dist/react/index.html +1 -1
  55. package/dist/react/index.mjs +103 -0
  56. package/dist/react/{index.js.LICENSE.txt → index.mjs.LICENSE.txt} +0 -52
  57. package/dist/react/index.mjs.map +1 -0
  58. package/dist/react/package.json +1 -0
  59. package/{eslint.config.js → eslint.config.cjs} +3 -0
  60. package/jest.config.mjs +10 -0
  61. package/lib/Chevron.jsx +2 -10
  62. package/package.json +18 -10
  63. package/styles/_main.scss +4 -3
  64. package/test/components/Button.test.js +6 -16
  65. package/test/components/MadieDeleteDialog.test.js +30 -1
  66. package/test/components/Search.test.js +1 -1
  67. package/test/components/TruncateText.test.js +1 -1
  68. package/webpack.config.mjs +79 -0
  69. package/webpack.config.react.mjs +72 -0
  70. package/components/NotificationBanner/NotificationBanner.stories.js +0 -29
  71. package/components/NotificationBanner/index.js +0 -279
  72. package/components/UnwrappedSpinner/index.js +0 -8
  73. package/dist/browser.js +0 -1
  74. package/dist/react/index.js +0 -316
  75. package/dist/react/index.js.map +0 -1
  76. package/jest.config.js +0 -17
  77. package/webpack.config.js +0 -123
  78. package/webpack.config.react.js +0 -104
@@ -1,5 +1,4 @@
1
1
  import React, { useState, useRef } from "react";
2
- import PropTypes from "prop-types";
3
2
  import Draggable from "react-draggable";
4
3
  import CloseIcon from "@mui/icons-material/Close";
5
4
  import {
@@ -337,24 +336,4 @@ const MadieDialog = ({
337
336
  );
338
337
  };
339
338
 
340
- MadieDialog.propTypes = {
341
- required: PropTypes.bool,
342
- form: PropTypes.bool,
343
- title: PropTypes.string,
344
- dialogProps: PropTypes.object,
345
- cancelButtonProps: PropTypes.object,
346
- continueButtonProps: PropTypes.object,
347
- children: PropTypes.object,
348
- maxWidth: PropTypes.string,
349
- };
350
-
351
- DraggablePaper.propTypes = {
352
- children: PropTypes.object,
353
- };
354
-
355
- Actions.propTypes = {
356
- onClose: PropTypes.any,
357
- cancelButtonProps: PropTypes.object,
358
- continueButtonProps: PropTypes.object,
359
- };
360
339
  export default MadieDialog;
@@ -1,5 +1,4 @@
1
1
  import React, { useState } from "react";
2
- import PropTypes from "prop-types";
3
2
  import MadieDiscardDialog from "./index";
4
3
  import Button from "../Button";
5
4
 
@@ -13,10 +12,6 @@ const Wrapper = ({ children }) => (
13
12
  {children}
14
13
  </div>
15
14
  );
16
- Wrapper.propTypes = {
17
- className: PropTypes.string,
18
- children: PropTypes.node,
19
- };
20
15
 
21
16
  export const DiscardDialog = () => {
22
17
  const [open, setOpen] = useState(false);
@@ -1,5 +1,4 @@
1
1
  import React from "react";
2
- import PropTypes from "prop-types";
3
2
  import ErrorIcon from "@mui/icons-material/Error";
4
3
  import MadieDialog from "../MadieDialog";
5
4
 
@@ -40,10 +39,4 @@ const MadieDiscardDialog = ({ open, onClose, onContinue }) => (
40
39
  </MadieDialog>
41
40
  );
42
41
 
43
- MadieDiscardDialog.propTypes = {
44
- open: PropTypes.bool,
45
- onClose: PropTypes.func,
46
- onContinue: PropTypes.func,
47
- };
48
-
49
42
  export default MadieDiscardDialog;
@@ -1,5 +1,4 @@
1
1
  import React from "react";
2
- import PropTypes from "prop-types";
3
2
  import MadieSpinner from "./index";
4
3
 
5
4
  export default {
@@ -13,11 +12,6 @@ const Wrapper = ({ children }) => (
13
12
  </div>
14
13
  );
15
14
 
16
- Wrapper.propTypes = {
17
- className: PropTypes.string,
18
- children: PropTypes.node,
19
- };
20
-
21
15
  export const ExampleSpinner = () => (
22
16
  <Wrapper>
23
17
  <MadieSpinner />
@@ -1,6 +1,5 @@
1
1
  import React from "react";
2
2
  import { CircularProgress } from "@mui/material";
3
- import PropTypes from "prop-types";
4
3
 
5
4
  // To change the spinner size you have to pass style props for height and width.
6
5
  const MadieSpinner = (props) => {
@@ -28,8 +27,4 @@ const MadieSpinner = (props) => {
28
27
  );
29
28
  };
30
29
 
31
- MadieSpinner.propTypes = {
32
- thickness: PropTypes.number,
33
- };
34
-
35
30
  export default MadieSpinner;
@@ -1,6 +1,5 @@
1
1
  import React, { useState } from "react";
2
2
  import TooltipIcon from "../MadieTooltipIcon";
3
- import PropTypes from "prop-types";
4
3
 
5
4
  // https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Roles/tooltip_role
6
5
  const MadieToolTip = ({ tooltipText = "informational text", id }) => {
@@ -41,9 +40,4 @@ const MadieToolTip = ({ tooltipText = "informational text", id }) => {
41
40
  );
42
41
  };
43
42
 
44
- MadieToolTip.propTypes = {
45
- tooltipText: PropTypes.string,
46
- id: PropTypes.string,
47
- };
48
-
49
43
  export default MadieToolTip;
@@ -1,5 +1,4 @@
1
1
  import React from "react";
2
- import PropTypes from "prop-types";
3
2
 
4
3
  const TooltipIcon = ({ color = "#0073C8", ...props }) => (
5
4
  <svg
@@ -25,7 +24,3 @@ const TooltipIcon = ({ color = "#0073C8", ...props }) => (
25
24
  );
26
25
 
27
26
  export default TooltipIcon;
28
-
29
- TooltipIcon.propTypes = {
30
- color: PropTypes.string,
31
- };
@@ -1,17 +1,38 @@
1
1
  import React, { useRef, useState, useEffect } from "react";
2
2
  import ReactModal from "react-modal";
3
- import PropTypes from "prop-types";
4
-
5
3
  import { CloseXIcon2 } from "../../lib/SvgComponents.jsx";
6
4
 
5
+ /**
6
+ * @param {{
7
+ * title?: string,
8
+ * children: React.ReactNode,
9
+ * primary?: {
10
+ * title: string | React.ReactElement,
11
+ * onClick?: () => void,
12
+ * loading?: boolean,
13
+ * loadingText?: string,
14
+ * } | null,
15
+ * secondary?: {
16
+ * title: string | React.ReactElement,
17
+ * onClick?: () => void,
18
+ * loading?: boolean,
19
+ * loadingText?: string,
20
+ * } | null,
21
+ * onRequestClose?: () => void,
22
+ * appElement?: string,
23
+ * isOpen?: boolean,
24
+ * width?: string,
25
+ * [key: string]: any
26
+ * }} props
27
+ */
7
28
  const Modal = ({
8
29
  children,
9
- onRequestClose,
30
+ onRequestClose = () => {},
10
31
  title,
11
- primary,
12
- secondary,
13
- appElement,
14
- isOpen,
32
+ primary = null,
33
+ secondary = null,
34
+ appElement = "body > *:not(.qpp-c-modal)",
35
+ isOpen = false,
15
36
  ...props
16
37
  }) => {
17
38
  const [overflowSeparator, setOverflowSeparator] = useState(false);
@@ -29,9 +50,8 @@ const Modal = ({
29
50
  maxWidth: "calc(100vw - 2rem)",
30
51
  maxHeight: "calc(100vh - 2rem)",
31
52
  };
32
- } else {
33
- return {};
34
53
  }
54
+ return {};
35
55
  };
36
56
 
37
57
  return (
@@ -46,7 +66,6 @@ const Modal = ({
46
66
  content: getWidth(),
47
67
  }}
48
68
  onAfterOpen={() => {
49
- // Add heading separator based on overflow
50
69
  if (
51
70
  contentRef.current?.scrollHeight >
52
71
  document.documentElement.clientHeight * 0.6
@@ -56,7 +75,6 @@ const Modal = ({
56
75
  setOverflowSeparator(false);
57
76
  }
58
77
 
59
- // Set default focus
60
78
  if (closeButtonRef?.current) {
61
79
  closeButtonRef.current.focus();
62
80
  }
@@ -98,7 +116,7 @@ const Modal = ({
98
116
  className={`qpp-c-button qpp-c-button--secondary ${
99
117
  primary ? "qpp-u-margin-right--16" : ""
100
118
  }`}
101
- loading={secondary.loading}
119
+ disabled={secondary.loading}
102
120
  onClick={secondary.onClick || onRequestClose}
103
121
  aria-label={secondary.title}
104
122
  data-testid="modal-secondary-btn"
@@ -109,7 +127,7 @@ const Modal = ({
109
127
  {primary && (
110
128
  <button
111
129
  className="qpp-c-button"
112
- loading={primary.loading}
130
+ disabled={primary.loading}
113
131
  onClick={primary.onClick}
114
132
  data-testid="modal-primary-btn"
115
133
  aria-label={primary.title}
@@ -123,34 +141,4 @@ const Modal = ({
123
141
  );
124
142
  };
125
143
 
126
- Modal.propTypes = {
127
- title: PropTypes.string,
128
- children: PropTypes.node.isRequired,
129
- primary: PropTypes.shape({
130
- title: PropTypes.oneOfType([PropTypes.string, PropTypes.element]),
131
- onClick: PropTypes.func,
132
- loading: PropTypes.bool,
133
- loadingText: PropTypes.string,
134
- }),
135
- secondary: PropTypes.shape({
136
- title: PropTypes.oneOfType([PropTypes.string, PropTypes.element]),
137
- onClick: PropTypes.func,
138
- loading: PropTypes.bool,
139
- loadingText: PropTypes.string,
140
- }),
141
- onRequestClose: PropTypes.func,
142
- appElement: PropTypes.string,
143
- isOpen: PropTypes.bool,
144
- width: PropTypes.string,
145
- };
146
-
147
- Modal.defaultProps = {
148
- onRequestClose: () => {},
149
- title: undefined,
150
- primary: null,
151
- secondary: null,
152
- appElement: "body > *:not(.qpp-c-modal)",
153
- isOpen: false,
154
- };
155
-
156
144
  export default Modal;
@@ -1,18 +1,16 @@
1
1
  import React from "react";
2
- import PropTypes from "prop-types";
3
2
 
4
3
  import DsModal from "./Modal";
5
4
 
6
- const Modal = ({ useDesignSystem, ...rest }) => {
5
+ /**
6
+ * @param {{
7
+ * useDesignSystem?: boolean
8
+ * } & React.ComponentProps<typeof DsModal>} props
9
+ */
10
+ const Modal = ({ useDesignSystem = false, ...rest }) => {
7
11
  return <DsModal {...rest} />;
8
12
  };
9
13
 
10
- Modal.propTypes = {
11
- useDesignSystem: PropTypes.bool,
12
- };
13
- Modal.defaultProps = {
14
- useDesignSystem: false,
15
- };
16
14
  Modal.displayName = "Modal";
17
15
 
18
16
  export default Modal;
@@ -1,6 +1,5 @@
1
1
  import React from "react";
2
2
  import NumberInput from "./index";
3
- import PropTypes from "prop-types";
4
3
 
5
4
  export default {
6
5
  title: "NumberInput",
@@ -13,10 +12,6 @@ const Wrapper = ({ children }) => (
13
12
  </div>
14
13
  );
15
14
 
16
- Wrapper.propTypes = {
17
- children: PropTypes.node,
18
- };
19
-
20
15
  export const BasicNumberInput = () => (
21
16
  <Wrapper>
22
17
  <NumberInput id="basic-number-input" label="Demo number input" />
@@ -1,5 +1,4 @@
1
1
  import * as React from "react";
2
- import PropTypes from "prop-types";
3
2
  import TextField from "../TextField";
4
3
 
5
4
  export default function NumberInput({
@@ -61,15 +60,3 @@ export default function NumberInput({
61
60
  />
62
61
  );
63
62
  }
64
-
65
- NumberInput.propTypes = {
66
- id: PropTypes.string,
67
- error: PropTypes.bool,
68
- helperText: PropTypes.string,
69
- required: PropTypes.bool,
70
- disabled: PropTypes.bool,
71
- label: PropTypes.string,
72
- tooltipText: PropTypes.string,
73
- inputProps: PropTypes.object,
74
- allowNegative: PropTypes.bool,
75
- };
@@ -1,5 +1,4 @@
1
1
  import React from "react";
2
- import PropTypes from "prop-types";
3
2
  import { visuallyHidden } from "@mui/utils";
4
3
 
5
4
  import {
@@ -198,20 +197,4 @@ const Pagination = ({
198
197
  );
199
198
  };
200
199
 
201
- Pagination.propTypes = {
202
- totalItems: PropTypes.number,
203
- visibleItems: PropTypes.number,
204
- count: PropTypes.number,
205
- offset: PropTypes.number,
206
- shape: PropTypes.string,
207
- limit: PropTypes.number,
208
- page: PropTypes.number,
209
- limitOptions: PropTypes.array,
210
- handlePageChange: PropTypes.func,
211
- handleLimitChange: PropTypes.func,
212
- hidePrevButton: PropTypes.bool,
213
- hideNextButton: PropTypes.bool,
214
- type: PropTypes.string,
215
- };
216
-
217
200
  export { Pagination };
@@ -1,5 +1,4 @@
1
1
  import React from "react";
2
- import PropTypes from "prop-types";
3
2
  import Popover from "@mui/material/Popover";
4
3
 
5
4
  const MadiePopover = ({
@@ -107,26 +106,4 @@ const MadiePopover = ({
107
106
  );
108
107
  };
109
108
 
110
- MadiePopover.propTypes = {
111
- optionsOpen: PropTypes.bool,
112
- anchorEl: PropTypes.any,
113
- handleClose: PropTypes.func,
114
- canEdit: PropTypes.bool,
115
- editViewSelectOptionProps: PropTypes.object,
116
- otherSelectOptionProps: PropTypes.arrayOf(
117
- PropTypes.shape({
118
- dataTestId: PropTypes.string,
119
- label: PropTypes.string,
120
- toImplementFunction: PropTypes.func,
121
- }),
122
- ),
123
- additionalSelectOptionProps: PropTypes.arrayOf(
124
- PropTypes.shape({
125
- dataTestId: PropTypes.string,
126
- label: PropTypes.string,
127
- toImplementFunction: PropTypes.func,
128
- }),
129
- ),
130
- };
131
-
132
109
  export default MadiePopover;
@@ -6,9 +6,8 @@ import {
6
6
  Radio,
7
7
  RadioGroup,
8
8
  } from "@mui/material";
9
- import PropTypes from "prop-types";
10
9
  import InputLabel from "../InputLabel";
11
- import { ReadOnlyTextField } from "../index";
10
+ import ReadOnlyTextField from "../ReadOnlyTextField";
12
11
 
13
12
  const RadioButton = ({
14
13
  id,
@@ -121,15 +120,4 @@ const RadioButton = ({
121
120
  );
122
121
  };
123
122
 
124
- RadioButton.propTypes = {
125
- id: PropTypes.string,
126
- dataTestId: PropTypes.string,
127
- required: PropTypes.bool,
128
- disabled: PropTypes.bool,
129
- error: PropTypes.bool,
130
- label: PropTypes.string,
131
- helperText: PropTypes.string,
132
- options: PropTypes.arrayOf(PropTypes.any),
133
- };
134
-
135
123
  export default RadioButton;
@@ -1,5 +1,4 @@
1
1
  import React from "react";
2
- import PropTypes from "prop-types";
3
2
  import ReadOnlyTextField from "./index";
4
3
  import { FormHelperText } from "@mui/material";
5
4
 
@@ -14,11 +13,6 @@ const Wrapper = ({ children }) => (
14
13
  </div>
15
14
  );
16
15
 
17
- Wrapper.propTypes = {
18
- className: PropTypes.string,
19
- children: PropTypes.node,
20
- };
21
-
22
16
  export const Textfield = () => (
23
17
  <Wrapper>
24
18
  <ReadOnlyTextField
@@ -1,7 +1,6 @@
1
1
  import React from "react";
2
2
  import { FormControl, TextareaAutosize } from "@mui/material";
3
3
  import InputLabel from "../InputLabel";
4
- import PropTypes from "prop-types";
5
4
  import _ from "lodash";
6
5
 
7
6
  const ReadOnlyTextField = ({
@@ -77,11 +76,4 @@ const ReadOnlyTextField = ({
77
76
  );
78
77
  };
79
78
 
80
- ReadOnlyTextField.propTypes = {
81
- id: PropTypes.string,
82
- required: PropTypes.bool,
83
- disabled: PropTypes.bool,
84
- placeholder: PropTypes.string, // expects placeholder objects of { name: value } and inserts into the render item function.
85
- label: PropTypes.string,
86
- };
87
79
  export default ReadOnlyTextField;
@@ -1,6 +1,5 @@
1
1
  import React from "react";
2
2
 
3
- import PropTypes from "prop-types";
4
3
  import { EditorContent, useEditor } from "@tiptap/react";
5
4
  import InputLabel from "../InputLabel";
6
5
 
@@ -262,18 +261,4 @@ const RichTextEditor = ({
262
261
  );
263
262
  };
264
263
 
265
- RichTextEditor.propTypes = {
266
- id: PropTypes.string,
267
- error: PropTypes.bool,
268
- required: PropTypes.bool,
269
- label: PropTypes.string,
270
- onChange: PropTypes.func,
271
- content: PropTypes.any,
272
- disabled: PropTypes.bool,
273
- };
274
-
275
- MenuBar.propTypes = {
276
- editor: PropTypes.any,
277
- };
278
-
279
264
  export default RichTextEditor;
@@ -1,6 +1,5 @@
1
1
  import React from "react";
2
2
  import xss from "xss";
3
- import PropTypes from "prop-types";
4
3
 
5
4
  // Override the default allowed HTML tags
6
5
  const defaultAllowedTags = [
@@ -190,11 +189,4 @@ const SanitizedContent = ({
190
189
  );
191
190
  };
192
191
 
193
- SanitizedContent.propTypes = {
194
- html: PropTypes.string,
195
- customClassName: PropTypes.string,
196
- allowedTags: PropTypes.array,
197
- allowedAttributes: PropTypes.array,
198
- };
199
-
200
192
  export default SanitizedContent;
@@ -1,19 +1,33 @@
1
1
  import React from "react";
2
- import PropTypes from "prop-types";
3
2
  import SearchIcon from "@mui/icons-material/Search";
4
3
 
4
+ /**
5
+ * @param {{
6
+ * id?: string,
7
+ * name?: string,
8
+ * placeholder?: string,
9
+ * disableSearchBtn?: boolean,
10
+ * disabled?: boolean,
11
+ * inputValue?: string,
12
+ * onClick?: () => void,
13
+ * onChange?: (e: React.ChangeEvent<HTMLInputElement>) => void,
14
+ * inputAriaLabel?: string,
15
+ * buttonAriaLabel?: string,
16
+ * inputWidth?: string
17
+ * }} props
18
+ */
5
19
  const Search = ({
6
- id,
7
- name,
8
- placeholder,
9
- disableSearchBtn,
10
- disabled,
11
- inputValue,
12
- onClick,
13
- onChange,
14
- inputAriaLabel,
15
- buttonAriaLabel,
16
- inputWidth,
20
+ id = "search-input",
21
+ name = "",
22
+ placeholder = "",
23
+ disableSearchBtn = false,
24
+ disabled = false,
25
+ inputValue = "",
26
+ onClick = () => null,
27
+ onChange = () => null,
28
+ inputAriaLabel = "",
29
+ buttonAriaLabel = "",
30
+ inputWidth = "auto",
17
31
  }) => {
18
32
  const inputStyle = {
19
33
  width: inputWidth,
@@ -55,32 +69,4 @@ const Search = ({
55
69
  );
56
70
  };
57
71
 
58
- Search.propTypes = {
59
- id: PropTypes.string,
60
- name: PropTypes.string,
61
- placeholder: PropTypes.string,
62
- disableSearchBtn: PropTypes.bool,
63
- disabled: PropTypes.bool,
64
- inputValue: PropTypes.string,
65
- onClick: PropTypes.func,
66
- onChange: PropTypes.func,
67
- inputAriaLabel: PropTypes.string,
68
- buttonAriaLabel: PropTypes.string,
69
- inputWidth: PropTypes.string,
70
- };
71
-
72
- Search.defaultProps = {
73
- id: "search-input",
74
- name: "",
75
- placeholder: "",
76
- disableSearchBtn: false,
77
- disabled: false,
78
- inputValue: "",
79
- onClick: () => null,
80
- onChange: () => null,
81
- inputAriaLabel: "",
82
- buttonAriaLabel: "",
83
- inputWidth: "auto",
84
- };
85
-
86
72
  export default Search;
@@ -1,5 +1,4 @@
1
1
  import React from "react";
2
- import PropTypes from "prop-types";
3
2
  import Select from "./index";
4
3
  import { MenuItem, Box } from "@mui/material";
5
4
 
@@ -29,9 +28,6 @@ const Wrapper = ({ children }) => (
29
28
  {children}
30
29
  </div>
31
30
  );
32
- Wrapper.propTypes = {
33
- children: PropTypes.node,
34
- };
35
31
 
36
32
  const options = [
37
33
  { key: "key1", value: "value1", testId: "testid1", name: "name1" },
@@ -3,8 +3,7 @@ import { FormControl, Select as MUISelect, MenuItem } from "@mui/material";
3
3
  import ExpandMoreIcon from "@mui/icons-material/ExpandMore";
4
4
  import InputLabel from "../InputLabel";
5
5
  import FormHelperText from "@mui/material/FormHelperText";
6
- import PropTypes from "prop-types";
7
- import { ReadOnlyTextField } from "../index";
6
+ import ReadOnlyTextField from "../ReadOnlyTextField";
8
7
 
9
8
  const Select = ({
10
9
  placeHolder = undefined, // expects placeholder objects of { name: value } and inserts into the render item function.
@@ -174,18 +173,4 @@ const Select = ({
174
173
  );
175
174
  };
176
175
 
177
- Select.propTypes = {
178
- id: PropTypes.string,
179
- placeHolder: PropTypes.shape({
180
- name: PropTypes.string,
181
- value: PropTypes.any,
182
- }), // expects placeholder objects of { name: value } and inserts into the render item function.
183
- required: PropTypes.bool,
184
- disabled: PropTypes.bool,
185
- error: PropTypes.bool,
186
- label: PropTypes.string,
187
- helperText: PropTypes.string,
188
- options: PropTypes.arrayOf(PropTypes.element),
189
- };
190
-
191
176
  export default Select;