@platformatic/ui-components 0.5.0 → 0.5.1

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 (42) hide show
  1. package/dist/assets/index-hLMQmMDJ.js +40 -0
  2. package/dist/index.html +1 -1
  3. package/package.json +1 -1
  4. package/src/components/DropDown.jsx +10 -26
  5. package/src/components/FollowUs.jsx +18 -27
  6. package/src/components/InfoBox.jsx +8 -10
  7. package/src/components/ListElement.jsx +9 -11
  8. package/src/components/LoadingSpinner.jsx +1 -5
  9. package/src/components/LogoDropDown.jsx +7 -8
  10. package/src/components/ModalDirectional.jsx +9 -19
  11. package/src/components/ModalStepsForward.jsx +12 -24
  12. package/src/components/SearchBarV2.jsx +9 -22
  13. package/src/components/Sidebar.jsx +12 -26
  14. package/src/components/Status.jsx +5 -7
  15. package/src/components/TextWithLabel.jsx +7 -9
  16. package/src/components/Tooltip.jsx +8 -19
  17. package/src/components/TooltipAbsolute.jsx +10 -22
  18. package/src/components/VerticalSeparator.jsx +0 -4
  19. package/src/components/forms/Field.jsx +8 -19
  20. package/src/components/forms/Input.jsx +17 -37
  21. package/src/components/forms/InputWithSeparator.jsx +14 -31
  22. package/src/components/forms/Password.jsx +10 -18
  23. package/src/components/forms/Preview.jsx +10 -12
  24. package/src/components/forms/RadioGroup.jsx +9 -17
  25. package/src/components/forms/Select.jsx +19 -40
  26. package/src/components/forms/SelectWithInput.jsx +22 -46
  27. package/src/components/forms/TextArea.jsx +11 -25
  28. package/src/components/forms/ToggleSwitch.jsx +8 -19
  29. package/src/components/icons/BranchIcon.jsx +102 -0
  30. package/src/components/icons/DeploymentHistoryIcon.jsx +118 -0
  31. package/src/components/icons/FailureRateIcon.jsx +104 -0
  32. package/src/components/icons/K8SMetricsIcon.jsx +106 -0
  33. package/src/components/icons/MetricsLogsIcon.jsx +124 -0
  34. package/src/components/icons/NodeJSMetricsIcon.jsx +106 -0
  35. package/src/components/icons/NotCompliantServiceIcon.jsx +103 -0
  36. package/src/components/icons/OtherLogosGoogleIcon.jsx +69 -0
  37. package/src/components/icons/OutdatedServiceIcon.jsx +105 -0
  38. package/src/components/icons/ResourceIcon.jsx +111 -0
  39. package/src/components/icons/ZoomInIcon.jsx +99 -0
  40. package/src/components/icons/ZoomOutIcon.jsx +96 -0
  41. package/src/components/icons/index.js +25 -2
  42. package/dist/assets/index-BHLxMHb5.js +0 -40
package/dist/index.html CHANGED
@@ -4,7 +4,7 @@
4
4
  <meta charset="UTF-8" />
5
5
  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
6
6
  <title>Platformatic UI Components</title>
7
- <script type="module" crossorigin src="/assets/index-BHLxMHb5.js"></script>
7
+ <script type="module" crossorigin src="/assets/index-hLMQmMDJ.js"></script>
8
8
  <link rel="stylesheet" crossorigin href="/assets/index-Of0we_2v.css">
9
9
  </head>
10
10
  <body>
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@platformatic/ui-components",
3
3
  "description": "Platformatic UI Components",
4
- "version": "0.5.0",
4
+ "version": "0.5.1",
5
5
  "type": "module",
6
6
  "license": "Apache-2.0",
7
7
  "repository": {
@@ -6,15 +6,15 @@ import commonStyles from './Common.module.css'
6
6
  import PlatformaticIcon from './PlatformaticIcon'
7
7
  import { DARK_BLUE, LIGHT_BLUE, MAIN_DARK_BLUE, RICH_BLACK, WHITE } from './constants'
8
8
  function DropDown ({
9
- pictureUrl,
10
- header,
11
- items,
12
- align,
13
- backgroundColor,
14
- textColor,
15
- borderColor,
16
- headerColor,
17
- lastButton
9
+ pictureUrl = '',
10
+ header = '',
11
+ align = 'left',
12
+ items = [],
13
+ backgroundColor = DARK_BLUE,
14
+ textColor = MAIN_DARK_BLUE,
15
+ headerColor = WHITE,
16
+ borderColor = WHITE,
17
+ lastButton = null
18
18
  }) {
19
19
  const [open, setOpen] = useState(false)
20
20
  const borderClass = commonStyles[`bordered--${borderColor}-30`]
@@ -105,23 +105,7 @@ DropDown.propTypes = {
105
105
  /**
106
106
  * lastButton
107
107
  */
108
- lastButton: PropTypes.node,
109
- /**
110
- * callBackClose
111
- */
112
- callBackClose: PropTypes.func
108
+ lastButton: PropTypes.node
113
109
  }
114
110
 
115
- DropDown.defaultProps = {
116
- pictureUrl: '',
117
- header: '',
118
- align: 'left',
119
- items: [],
120
- backgroundColor: DARK_BLUE,
121
- textColor: MAIN_DARK_BLUE,
122
- headerColor: WHITE,
123
- borderColor: WHITE,
124
- lastButton: null,
125
- callBackClose: () => {}
126
- }
127
111
  export default DropDown
@@ -24,12 +24,24 @@ function SocialElement ({ href, iconName, iconClassName, iconColor, iconSize })
24
24
  }
25
25
 
26
26
  function FollowUs ({
27
- label,
28
- labelClassName,
29
- useOnFrontpage,
30
- iconColor,
31
- iconSize,
32
- socialElements
27
+ label = 'Follow us on',
28
+ labelClassName = '',
29
+ useOnFrontpage = true,
30
+ iconColor = WHITE,
31
+ iconSize = MEDIUM,
32
+ socialElements = [{
33
+ link: 'https://twitter.com/platformatic',
34
+ iconName: 'SocialXIcon'
35
+ }, {
36
+ link: 'https://www.linkedin.com/company/platformatic/',
37
+ iconName: 'SocialLinkedInIcon'
38
+ }, {
39
+ link: 'https://github.com/platformatic',
40
+ iconName: 'SocialGitHubIcon'
41
+ }, {
42
+ link: 'https://discord.gg/platformatic',
43
+ iconName: 'SocialDiscordIcon'
44
+ }]
33
45
  }) {
34
46
  const suffix = useOnFrontpage ? 'Frontpage' : 'Dashboard'
35
47
  const className = styles[`container${suffix}`]
@@ -89,25 +101,4 @@ FollowUs.propTypes = {
89
101
  }))
90
102
  }
91
103
 
92
- FollowUs.defaultProps = {
93
- label: 'Follow us on',
94
- labelClassName: '',
95
- useOnFrontpage: true,
96
- iconColor: WHITE,
97
- iconSize: MEDIUM,
98
- socialElements: [{
99
- link: 'https://twitter.com/platformatic',
100
- iconName: 'SocialXIcon'
101
- }, {
102
- link: 'https://www.linkedin.com/company/platformatic/',
103
- iconName: 'SocialLinkedInIcon'
104
- }, {
105
- link: 'https://github.com/platformatic',
106
- iconName: 'SocialGitHubIcon'
107
- }, {
108
- link: 'https://discord.gg/platformatic',
109
- iconName: 'SocialDiscordIcon'
110
- }]
111
-
112
- }
113
104
  export default FollowUs
@@ -4,9 +4,15 @@ import PropTypes from 'prop-types'
4
4
  import styles from './InfoBox.module.css'
5
5
  import Button from './Button'
6
6
  import PlatformaticIcon from './PlatformaticIcon'
7
- import { COLORS_BUTTON, COLORS_ICON, HOVER_EFFECTS_BUTTONS } from './constants'
7
+ import { COLORS_BUTTON, COLORS_ICON, HOVER_EFFECTS_BUTTONS, MAIN_GREEN } from './constants'
8
8
 
9
- function InfoBox ({ children, iconName, iconColor, helpText, buttonProps }) {
9
+ function InfoBox ({
10
+ children = null,
11
+ iconName = '',
12
+ iconColor = MAIN_GREEN,
13
+ helpText = '',
14
+ buttonProps = null
15
+ }) {
10
16
  return (
11
17
  <div className={styles.container}>
12
18
  <PlatformaticIcon size='extra-large' iconName={iconName} color={iconColor} />
@@ -47,12 +53,4 @@ InfoBox.propTypes = {
47
53
  })
48
54
  }
49
55
 
50
- InfoBox.defaultProps = {
51
- children: null,
52
- iconName: '',
53
- iconColor: 'main-green',
54
- helpText: '',
55
- buttonProps: null
56
- }
57
-
58
56
  export default InfoBox
@@ -5,7 +5,15 @@ import commonStyles from './Common.module.css'
5
5
  import styles from './ListElement.module.css'
6
6
  import { MAIN_DARK_BLUE, MEDIUM, SMALL, WHITE, MAIN_GREEN } from './constants'
7
7
 
8
- function List ({ title, detail, marginSize, detailColor, titleColor, semiBold, iconColor }) {
8
+ function List ({
9
+ title = '',
10
+ detail = '',
11
+ marginSize = MEDIUM,
12
+ detailColor = WHITE,
13
+ titleColor = MAIN_GREEN,
14
+ semiBold = true,
15
+ iconColor = MAIN_GREEN
16
+ }) {
9
17
  let className = `${styles.container} `
10
18
  className += styles[`margin-${marginSize}`]
11
19
 
@@ -63,14 +71,4 @@ List.propTypes = {
63
71
  semiBold: PropTypes.bool
64
72
  }
65
73
 
66
- List.defaultProps = {
67
- title: '',
68
- detail: '',
69
- marginSize: MEDIUM,
70
- detailColor: WHITE,
71
- titleColor: MAIN_GREEN,
72
- iconColor: MAIN_GREEN,
73
- semiBold: true
74
- }
75
-
76
74
  export default List
@@ -3,7 +3,7 @@ import PropTypes from 'prop-types'
3
3
  import styles from './LoadingSpinner.module.css'
4
4
  import { SpinnerCircular } from 'spinners-react'
5
5
 
6
- function LoadingSpinner ({ loading }) {
6
+ function LoadingSpinner ({ loading = false }) {
7
7
  // If null then loading not started, if true then loading, if false then done loading
8
8
  return loading
9
9
  ? (
@@ -23,8 +23,4 @@ LoadingSpinner.propTypes = {
23
23
  loading: PropTypes.bool
24
24
  }
25
25
 
26
- LoadingSpinner.defaultProps = {
27
- loading: false
28
- }
29
-
30
26
  export default LoadingSpinner
@@ -5,7 +5,13 @@ import styles from './LogoDropDown.module.css'
5
5
  import PlatformaticIcon from './PlatformaticIcon'
6
6
  import { MAIN_DARK_BLUE, SMALL, WHITE } from './constants'
7
7
  import Logo from './Logo'
8
- function LogoDropDown ({ itemSelected, items, width, height, onClickItemSelected }) {
8
+ function LogoDropDown ({
9
+ itemSelected = '',
10
+ items = [],
11
+ width = 71,
12
+ height = 56,
13
+ onClickItemSelected = () => {}
14
+ }) {
9
15
  const [open, setOpen] = useState(false)
10
16
 
11
17
  function handleOpen () {
@@ -82,11 +88,4 @@ LogoDropDown.propTypes = {
82
88
  onClickItemSelected: PropTypes.func
83
89
  }
84
90
 
85
- LogoDropDown.defaultProps = {
86
- width: 71,
87
- height: 56,
88
- itemSelected: '',
89
- items: [],
90
- onClickItemSelected: () => {}
91
- }
92
91
  export default LogoDropDown
@@ -12,13 +12,13 @@ import {
12
12
  import Button from './Button'
13
13
 
14
14
  function ModalDirectional ({
15
- setIsOpen,
16
- title,
17
- titleClassName,
18
- children,
19
- smallLayout,
20
- classNameModalLefty,
21
- permanent
15
+ children = null,
16
+ setIsOpen = () => {},
17
+ title = '',
18
+ titleClassName = '',
19
+ smallLayout = false,
20
+ classNameModalLefty = '',
21
+ permanent = false
22
22
  }) {
23
23
  const className = `${styles.container} ${styles.modalLeftCover} ${smallLayout ? styles.smallLayout : styles.normalLayout}`
24
24
  const [modalClassName] = useState(className)
@@ -88,23 +88,13 @@ ModalDirectional.propTypes = {
88
88
  */
89
89
  smallLayout: PropTypes.bool,
90
90
  /**
91
- * classNameLefty
91
+ * classNameModalLefty
92
92
  */
93
- classNameLefty: PropTypes.string,
93
+ classNameModalLefty: PropTypes.string,
94
94
  /**
95
95
  * permanent: modal could be closed only with Esc, X or Cancel
96
96
  */
97
97
  permanent: PropTypes.bool
98
98
  }
99
99
 
100
- ModalDirectional.defaultProps = {
101
- children: null,
102
- setIsOpen: () => {},
103
- title: '',
104
- titleClassName: '',
105
- smallLayout: false,
106
- classNameLefty: '',
107
- permanent: false
108
- }
109
-
110
100
  export default ModalDirectional
@@ -8,19 +8,19 @@ import HorizontalSeparator from './HorizontalSeparator'
8
8
  import styles from './ModalStepsForward.module.css'
9
9
  import commonStyles from './Common.module.css'
10
10
  import {
11
- MODAL_SIZES,
12
- SMALL,
13
- MODAL_LAYOUTS,
14
- MODAL_POPUP,
15
11
  MAIN_DARK_BLUE,
16
12
  DULLS_BACKGROUND_COLOR,
17
13
  LARGE,
18
- PROFILES,
19
14
  MARGIN_0,
20
15
  OPACITY_20
21
16
  } from './constants'
22
17
 
23
- function ModalStepsForward ({ setIsOpen, right, stepper, left }) {
18
+ function ModalStepsForward ({
19
+ setIsOpen = () => {},
20
+ right = null,
21
+ stepper = null,
22
+ left = null
23
+ }) {
24
24
  const buttonFullRoundedClassName = commonStyles['background-color-white']
25
25
  let modalCoverClassName = `${styles.container} ${styles.fullscreen} `
26
26
  modalCoverClassName += commonStyles['background-color-light-blue']
@@ -62,29 +62,17 @@ ModalStepsForward.propTypes = {
62
62
  */
63
63
  setIsOpen: PropTypes.func,
64
64
  /**
65
- * layout
65
+ * right
66
66
  */
67
- layout: PropTypes.oneOf(MODAL_LAYOUTS),
67
+ right: PropTypes.node,
68
68
  /**
69
- * Size
69
+ * stepper
70
70
  */
71
- size: PropTypes.oneOf(MODAL_SIZES),
71
+ stepper: PropTypes.node,
72
72
  /**
73
- * profile
73
+ * left
74
74
  */
75
- profile: PropTypes.oneOf(PROFILES),
76
- /**
77
- * backgroundClassName
78
- */
79
- backgroundClassName: PropTypes.string
80
- }
81
-
82
- ModalStepsForward.defaultProps = {
83
- setIsOpen: () => {},
84
- layout: MODAL_POPUP,
85
- size: SMALL,
86
- profile: '',
87
- backgroundClassName: ''
75
+ left: PropTypes.node
88
76
  }
89
77
 
90
78
  export default ModalStepsForward
@@ -6,15 +6,15 @@ import styles from './SearchBarV2.module.css'
6
6
  import PlatformaticIcon from './PlatformaticIcon'
7
7
  import { RICH_BLACK, SMALL, TRANSPARENT, WHITE } from './constants'
8
8
  function SearchBarV2 ({
9
- onSubmit,
10
- onChange,
11
- onClear,
12
- color,
13
- backgroundColor,
14
- placeholder,
15
- dataAttrName,
16
- dataAttrValue,
17
- inputTextClassName
9
+ color = WHITE,
10
+ backgroundColor = RICH_BLACK,
11
+ onSubmit = () => { },
12
+ onChange = () => { },
13
+ onClear = () => { },
14
+ placeholder = 'Search',
15
+ dataAttrName = '',
16
+ dataAttrValue = '',
17
+ inputTextClassName = ''
18
18
  }) {
19
19
  const inputRef = useRef()
20
20
  const baseClassName = `${styles.container} ${styles.wrapperPadding} ` + commonStyles[`background-color-${backgroundColor}`]
@@ -119,17 +119,4 @@ SearchBarV2.propTypes = {
119
119
  inputTextClassName: PropTypes.string
120
120
  }
121
121
 
122
- SearchBarV2.defaultProps = {
123
- color: WHITE,
124
- backgroundColor: RICH_BLACK,
125
- onSubmit: () => { },
126
- onChange: () => { },
127
- onClear: () => { },
128
- placeholder: 'Search',
129
- dataAttrName: '',
130
- dataAttrValue: '',
131
- inputTextClassName: ''
132
-
133
- }
134
-
135
122
  export default SearchBarV2
@@ -10,19 +10,18 @@ import PlatformaticIcon from './PlatformaticIcon'
10
10
  import PropTypes from 'prop-types'
11
11
  import { DULLS_BACKGROUND_COLOR, MEDIUM, WHITE } from './constants'
12
12
 
13
- function Sidebar (props) {
14
- const {
15
- title,
16
- labelButtonSettings,
17
- defaultSelected,
18
- onClickItemSelectedParent,
19
- items,
20
- onClickAdd,
21
- addTitle,
22
- onClickSettings,
23
- disableClickAdd,
24
- disableClickSettings
25
- } = props
13
+ function Sidebar ({
14
+ title = '',
15
+ labelButtonSettings = 'Settings',
16
+ defaultSelected = null,
17
+ onClickItemSelectedParent = () => {},
18
+ items = [],
19
+ onClickAdd = () => {},
20
+ addTitle = 'Add',
21
+ onClickSettings = () => {},
22
+ disableClickAdd = false,
23
+ disableClickSettings = false
24
+ }) {
26
25
  const [collapsed, setCollapsed] = useState(false)
27
26
  const [selectedItem, setSelectedItem] = useState(null)
28
27
  const disabledCreateButton = disableClickAdd ? styles.disabled : ''
@@ -190,17 +189,4 @@ Sidebar.propTypes = {
190
189
  disableClickSettings: PropTypes.bool
191
190
  }
192
191
 
193
- Sidebar.defaultProps = {
194
- title: '',
195
- labelButtonSettings: 'Settings',
196
- defaultSelected: null,
197
- onClickItemSelectedParent: () => {},
198
- items: [],
199
- onClickAdd: () => {},
200
- addTitle: 'Add',
201
- onClickSettings: () => {},
202
- disableClickAdd: false,
203
- disableClickSettings: false
204
- }
205
-
206
192
  export default Sidebar
@@ -4,7 +4,11 @@ import PropTypes from 'prop-types'
4
4
  import PlatformaticIcon from './PlatformaticIcon'
5
5
  import { COLORS_ICON, EXTRA_SMALL, SIZES, WHITE } from './constants'
6
6
 
7
- function Status ({ color, status, size }) {
7
+ function Status ({
8
+ color = WHITE,
9
+ status = '',
10
+ size = EXTRA_SMALL
11
+ }) {
8
12
  const className = `inline-flex items-center text-${color}`
9
13
  return (
10
14
  <div className={className}>
@@ -30,10 +34,4 @@ Status.propTypes = {
30
34
 
31
35
  }
32
36
 
33
- Status.defaultProps = {
34
- color: WHITE,
35
- status: '',
36
- size: EXTRA_SMALL
37
- }
38
-
39
37
  export default Status
@@ -3,7 +3,13 @@ import PropTypes from 'prop-types'
3
3
  import { FONT_BASE, FONT_XS, MAIN_DARK_BLUE, WHITE } from './constants'
4
4
  import commonStyles from './Common.module.css'
5
5
  import styles from './TextWithLabel.module.css'
6
- function TextWithLabel ({ label, text, children, color, fontSize }) {
6
+ function TextWithLabel ({
7
+ label = '',
8
+ text = '',
9
+ children = null,
10
+ color = WHITE,
11
+ fontSize = FONT_BASE
12
+ }) {
7
13
  const className = commonStyles[`text--${color}`] + ' ' + commonStyles[`text--${fontSize}`]
8
14
  return (
9
15
  <div className={className}>
@@ -37,12 +43,4 @@ TextWithLabel.propTypes = {
37
43
  fontSize: PropTypes.oneOf([FONT_BASE, FONT_XS])
38
44
  }
39
45
 
40
- TextWithLabel.defaultProps = {
41
- label: '',
42
- text: '',
43
- children: null,
44
- color: WHITE,
45
- fontSize: FONT_BASE
46
- }
47
-
48
46
  export default TextWithLabel
@@ -5,14 +5,14 @@ import { useEffect, useRef, useState } from 'react'
5
5
  import { DIRECTIONS, DIRECTION_BOTTOM, DIRECTION_LEFT, DIRECTION_RIGHT, DIRECTION_TOP } from './constants'
6
6
 
7
7
  function Tooltip ({
8
- direction,
9
- visible,
10
- activeDependsOnVisible,
11
- content,
12
- delay,
13
- children,
14
- tooltipClassName,
15
- offset
8
+ direction = DIRECTION_TOP,
9
+ visible = false,
10
+ activeDependsOnVisible = false,
11
+ content = null,
12
+ delay = 0,
13
+ children = null,
14
+ tooltipClassName = '',
15
+ offset = 0
16
16
  }) {
17
17
  let timeout
18
18
  const [active, setActive] = useState(activeDependsOnVisible ? visible : false)
@@ -117,15 +117,4 @@ Tooltip.propTypes = {
117
117
  offset: PropTypes.number
118
118
  }
119
119
 
120
- Tooltip.defaultProps = {
121
- direction: DIRECTION_TOP,
122
- tooltipClassName: '',
123
- delay: 0,
124
- activeDependsOnVisible: false,
125
- visible: false,
126
- children: null,
127
- content: null,
128
- offset: 0
129
- }
130
-
131
120
  export default Tooltip
@@ -2,18 +2,18 @@
2
2
  import PropTypes from 'prop-types'
3
3
  import styles from './TooltipAbsolute.module.css'
4
4
  import { useEffect, useState } from 'react'
5
- import { DIRECTIONS, DIRECTION_LEFT, DIRECTION_BOTTOM, DIRECTION_TOP, DIRECTION_RIGHT } from './constants'
5
+ import { DIRECTIONS, DIRECTION_LEFT, DIRECTION_BOTTOM, DIRECTION_TOP, DIRECTION_RIGHT, POSITION_START } from './constants'
6
6
 
7
7
  const TooltipAbsolute = ({
8
- direction,
9
- content,
10
- delay,
11
- children,
12
- tooltipClassName,
13
- offset,
14
- position,
15
- visible,
16
- activeDependsOnVisible
8
+ direction = DIRECTION_TOP,
9
+ tooltipClassName = '',
10
+ delay = 0,
11
+ children = null,
12
+ content = null,
13
+ offset = 0,
14
+ position = POSITION_START,
15
+ visible = false,
16
+ activeDependsOnVisible = false
17
17
  }) => {
18
18
  let timeout
19
19
  const [active, setActive] = useState(activeDependsOnVisible ? visible : false)
@@ -109,16 +109,4 @@ TooltipAbsolute.propTypes = {
109
109
  activeDependsOnVisible: PropTypes.bool
110
110
  }
111
111
 
112
- TooltipAbsolute.defaultProps = {
113
- direction: DIRECTION_TOP,
114
- tooltipClassName: '',
115
- delay: 0,
116
- children: null,
117
- content: null,
118
- offset: 0,
119
- position: 'start',
120
- activeDependsOnVisible: false,
121
- visible: false
122
- }
123
-
124
112
  export default TooltipAbsolute
@@ -36,8 +36,4 @@ VerticalSeparator.propTypes = {
36
36
 
37
37
  }
38
38
 
39
- VerticalSeparator.defaultProps = {
40
-
41
- }
42
-
43
39
  export default VerticalSeparator
@@ -4,14 +4,14 @@ import styles from './Field.module.css'
4
4
  import { ERROR_RED, MAIN_DARK_BLUE, WHITE } from '../constants'
5
5
 
6
6
  function Field ({
7
- title,
8
- titleColor,
9
- helper,
10
- children,
11
- disabled,
12
- required,
13
- titleClassName,
14
- helperClassName
7
+ title = '',
8
+ titleColor = MAIN_DARK_BLUE,
9
+ helper = '',
10
+ children = null,
11
+ disabled = false,
12
+ required = false,
13
+ titleClassName = '',
14
+ helperClassName = ''
15
15
  }) {
16
16
  let className = `${styles.container}`
17
17
  if (disabled) className += ` ${styles.disabled}`
@@ -67,15 +67,4 @@ Field.propTypes = {
67
67
  helperClassName: PropTypes.string
68
68
  }
69
69
 
70
- Field.defaultProps = {
71
- title: '',
72
- titleColor: 'main-dark-blue',
73
- helper: '',
74
- children: null,
75
- disabled: false,
76
- required: false,
77
- titleClassName: '',
78
- helperClassName: ''
79
- }
80
-
81
70
  export default Field