@platformatic/ui-components 0.1.58 → 0.1.59

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 (103) hide show
  1. package/dist/assets/index.0de95a32.css +1 -0
  2. package/dist/assets/index.d6543e3d.js +40 -0
  3. package/dist/index.html +2 -2
  4. package/dist/main.css +10 -20
  5. package/package.json +1 -1
  6. package/src/components/BorderedBox.jsx +34 -6
  7. package/src/components/BorderedBox.module.css +0 -6
  8. package/src/components/Button.jsx +6 -6
  9. package/src/components/Button.module.css +0 -30
  10. package/src/components/ButtonFullRounded.jsx +53 -8
  11. package/src/components/ButtonFullRounded.module.css +1 -23
  12. package/src/components/Common.module.css +56 -0
  13. package/src/components/FollowUs.jsx +5 -6
  14. package/src/components/GHLoginButton.jsx +1 -2
  15. package/src/components/InfoBox.jsx +4 -3
  16. package/src/components/ListElement.jsx +1 -1
  17. package/src/components/LoginButton.jsx +3 -12
  18. package/src/components/LoginButton.test.jsx +4 -5
  19. package/src/components/Modal.jsx +1 -1
  20. package/src/components/PlatformaticIcon.jsx +4 -3
  21. package/src/components/SearchBar.jsx +2 -7
  22. package/src/components/Sidebar.jsx +1 -1
  23. package/src/components/SimpleMetric.jsx +0 -2
  24. package/src/components/Status.jsx +26 -19
  25. package/src/components/constants.js +4 -0
  26. package/src/components/forms/Input.jsx +1 -0
  27. package/src/components/icons/AddIcon.jsx +3 -2
  28. package/src/components/icons/AlertIcon.jsx +4 -3
  29. package/src/components/icons/AllInOneIcon.jsx +3 -2
  30. package/src/components/icons/ApiCloudIcon.jsx +3 -2
  31. package/src/components/icons/ApiEmptyIcon.jsx +3 -2
  32. package/src/components/icons/ApiIcon.jsx +3 -2
  33. package/src/components/icons/ApiIconClosed.jsx +3 -2
  34. package/src/components/icons/AppEmptyIcon.jsx +3 -2
  35. package/src/components/icons/AppIcon.jsx +3 -2
  36. package/src/components/icons/AppListIcon.jsx +3 -2
  37. package/src/components/icons/ArrowDownFullIcon.jsx +3 -2
  38. package/src/components/icons/ArrowDownIcon.jsx +3 -2
  39. package/src/components/icons/ArrowLeftIcon.jsx +3 -2
  40. package/src/components/icons/ArrowRightIcon.jsx +3 -2
  41. package/src/components/icons/ArrowUpIcon.jsx +3 -2
  42. package/src/components/icons/BellIcon.jsx +3 -2
  43. package/src/components/icons/BillingIcon.jsx +3 -2
  44. package/src/components/icons/Calendar1DayIcon.jsx +3 -2
  45. package/src/components/icons/Calendar7DaysIcon.jsx +3 -2
  46. package/src/components/icons/CalendarIcon.jsx +3 -2
  47. package/src/components/icons/CircleAddIcon.jsx +3 -2
  48. package/src/components/icons/CircleArrowLeftIcon.jsx +3 -2
  49. package/src/components/icons/CircleArrowRightIcon.jsx +3 -2
  50. package/src/components/icons/CircleCheckMarkIcon.jsx +3 -2
  51. package/src/components/icons/CircleCloseHoverIcon.jsx +3 -2
  52. package/src/components/icons/CircleCloseIcon.jsx +3 -2
  53. package/src/components/icons/CircleExclamationIcon.jsx +3 -2
  54. package/src/components/icons/CircleFullIcon.jsx +77 -0
  55. package/src/components/icons/CircleTwoArrowsDownIcon.jsx +3 -2
  56. package/src/components/icons/CircleTwoArrowsUpIcon.jsx +3 -2
  57. package/src/components/icons/CloseIcon.jsx +3 -2
  58. package/src/components/icons/CopyPasteIcon.jsx +3 -2
  59. package/src/components/icons/DatabaseIcon.jsx +3 -2
  60. package/src/components/icons/EditIcon.jsx +3 -2
  61. package/src/components/icons/EnlargeIcon.jsx +3 -2
  62. package/src/components/icons/EntryIcon.jsx +3 -2
  63. package/src/components/icons/ExploreDocIcon.jsx +3 -2
  64. package/src/components/icons/GearIcon.jsx +3 -2
  65. package/src/components/icons/GraphQLIcon.jsx +3 -2
  66. package/src/components/icons/Icons.module.css +24 -12
  67. package/src/components/icons/KeyIcon.jsx +3 -2
  68. package/src/components/icons/LayersIcon.jsx +3 -2
  69. package/src/components/icons/LensIcon.jsx +3 -2
  70. package/src/components/icons/LiveIcon.jsx +3 -2
  71. package/src/components/icons/LogOutIcon.jsx +3 -2
  72. package/src/components/icons/MetricsIcon.jsx +3 -2
  73. package/src/components/icons/PlayIcon.jsx +3 -2
  74. package/src/components/icons/PullRequestIcon.jsx +3 -2
  75. package/src/components/icons/SendIcon.jsx +3 -2
  76. package/src/components/icons/SocialDiscordIcon.jsx +3 -2
  77. package/src/components/icons/SocialGitHubIcon.jsx +3 -2
  78. package/src/components/icons/SocialGitLabIcon.jsx +3 -2
  79. package/src/components/icons/SocialLinkedInIcon.jsx +3 -2
  80. package/src/components/icons/SocialNPMIcon.jsx +3 -2
  81. package/src/components/icons/SocialTwitterIcon.jsx +3 -2
  82. package/src/components/icons/StopIcon.jsx +3 -2
  83. package/src/components/icons/TerminalIcon.jsx +3 -2
  84. package/src/components/icons/TwoUsersIcon.jsx +3 -2
  85. package/src/components/icons/UpgradeIcon.jsx +3 -2
  86. package/src/components/icons/WorkspaceDynamicIcon.jsx +3 -2
  87. package/src/components/icons/WorkspaceFailIcon.jsx +3 -2
  88. package/src/components/icons/WorkspaceReadyIcon.jsx +3 -2
  89. package/src/components/icons/WorkspaceStaticIcon.jsx +3 -2
  90. package/src/components/icons/index.js +2 -0
  91. package/src/stories/BorderedBox.stories.jsx +5 -5
  92. package/src/stories/Button.stories.jsx +4 -5
  93. package/src/stories/ButtonFullRounded.stories.jsx +11 -11
  94. package/src/stories/InfoBox.stories.jsx +1 -2
  95. package/src/stories/Modal.stories.jsx +2 -2
  96. package/src/stories/PlatformaticIcon.stories.jsx +2 -3
  97. package/src/stories/Status.stories.jsx +2 -2
  98. package/src/stories/forms/Input.stories.jsx +1 -1
  99. package/src/stories/forms/Preview.stories.jsx +1 -1
  100. package/src/stories/icons/Icons.stories.jsx +5 -4
  101. package/tailwind.config.cjs +11 -11
  102. package/dist/assets/index.691ca940.css +0 -1
  103. package/dist/assets/index.ff0dadfc.js +0 -797
@@ -1,26 +1,33 @@
1
1
  'use strict'
2
2
  import React from 'react'
3
- import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'
4
- import { faCircle } from '@fortawesome/free-solid-svg-icons'
5
- export default function Status (props) {
6
- const { color, status } = props
3
+ import PropTypes from 'prop-types'
4
+ import PlatformaticIcon from './PlatformaticIcon'
5
+ import { COLORS_ICON } from './constants'
7
6
 
8
- function getColorClass (color) {
9
- switch (color) {
10
- case 'green':
11
- return 'text-main-green'
12
- case 'red':
13
- return 'text-error-red'
14
- case 'white':
15
- default:
16
- return 'text-white'
17
- }
18
- }
19
- const colorClass = getColorClass(color)
7
+ function Status ({ color, status }) {
8
+ const className = `inline-flex text-${color}`
20
9
  return (
21
- <div className={colorClass}>
22
- <FontAwesomeIcon icon={faCircle} size='2xs' className={`text-${colorClass} mr-2`} />
23
- {status}
10
+ <div className={className}>
11
+ <PlatformaticIcon iconName='CircleFullIcon' size='medium' color={color} />
12
+ <span className='ml-2'>{status}</span>
24
13
  </div>
25
14
  )
26
15
  }
16
+
17
+ Status.propTypes = {
18
+ /**
19
+ * color
20
+ */
21
+ color: PropTypes.oneOf(COLORS_ICON),
22
+ /**
23
+ * status
24
+ */
25
+ status: PropTypes.string
26
+ }
27
+
28
+ Status.defaultProps = {
29
+ color: 'white',
30
+ status: ''
31
+ }
32
+
33
+ export default Status
@@ -0,0 +1,4 @@
1
+ export const COLORS_ICON = ['main-green', 'white', 'main-dark-blue', 'error-red', 'warning-yellow']
2
+ export const SIZES = ['small', 'medium', 'large', 'extra-large']
3
+ export const COLORS_BUTTON = ['main-green', 'dark-green', 'light-green', 'main-dark-blue', 'dark-blue', 'light-blue', 'white', 'error-red', 'tertiary-blue', 'transparent']
4
+ export const COLORS_BORDERED_BOX = ['main-green', 'error-red', 'white', 'dark-blue', 'warning-yellow', 'transparent']
@@ -9,6 +9,7 @@ function Input ({ placeholder, value, name, borderColor, errorMessage, onChange,
9
9
  let className = styles.inputContainer + ' ' + commonStyles[`bordered--${borderColor}`] + ' ' + commonStyles[`text--${borderColor}`] + ' ' + commonStyles.padded
10
10
  const showError = errorMessage.length > 0
11
11
  if (showError) className += ' ' + commonStyles['bordered--error-red']
12
+ if (disabled) className += ' ' + commonStyles['apply-opacity-30']
12
13
 
13
14
  return (
14
15
  <div className={styles.container}>
@@ -1,6 +1,7 @@
1
1
  import * as React from 'react'
2
2
  import PropTypes from 'prop-types'
3
3
  import styles from './Icons.module.css'
4
+ import { COLORS_ICON, SIZES } from '../constants'
4
5
 
5
6
  const AddIcon = ({ color, size }) => {
6
7
  const className = `${styles.noShrinkForFlex} ` + styles[`${color}`]
@@ -63,11 +64,11 @@ AddIcon.propTypes = {
63
64
  /**
64
65
  * color of text, icon and borders
65
66
  */
66
- color: PropTypes.oneOf(['green', 'white', 'main-dark-blue', 'red']),
67
+ color: PropTypes.oneOf(COLORS_ICON),
67
68
  /**
68
69
  * Size
69
70
  */
70
- size: PropTypes.oneOf(['small', 'medium', 'large', 'extra-large'])
71
+ size: PropTypes.oneOf(SIZES)
71
72
  }
72
73
 
73
74
  AddIcon.defaultProps = {
@@ -1,6 +1,7 @@
1
1
  import * as React from 'react'
2
2
  import PropTypes from 'prop-types'
3
3
  import styles from './Icons.module.css'
4
+ import { COLORS_ICON, SIZES } from '../constants'
4
5
 
5
6
  const AlertIcon = ({ color, size }) => {
6
7
  const className = `${styles.noShrinkForFlex} ` + styles[`${color}`]
@@ -66,15 +67,15 @@ AlertIcon.propTypes = {
66
67
  /**
67
68
  * color of text, icon and borders
68
69
  */
69
- color: PropTypes.oneOf(['green', 'white', 'main-dark-blue', 'red']),
70
+ color: PropTypes.oneOf(COLORS_ICON),
70
71
  /**
71
72
  * Size
72
73
  */
73
- size: PropTypes.oneOf(['small', 'medium', 'large', 'extra-large'])
74
+ size: PropTypes.oneOf(SIZES)
74
75
  }
75
76
 
76
77
  AlertIcon.defaultProps = {
77
- color: 'red',
78
+ color: 'error-red',
78
79
  size: 'medium'
79
80
  }
80
81
 
@@ -1,6 +1,7 @@
1
1
  import * as React from 'react'
2
2
  import PropTypes from 'prop-types'
3
3
  import styles from './Icons.module.css'
4
+ import { COLORS_ICON, SIZES } from '../constants'
4
5
 
5
6
  const AllInOneIcon = ({ color, size }) => {
6
7
  const className = `${styles.noShrinkForFlex} ` + styles[`${color}`]
@@ -96,11 +97,11 @@ AllInOneIcon.propTypes = {
96
97
  /**
97
98
  * color of text, icon and borders
98
99
  */
99
- color: PropTypes.oneOf(['green', 'white', 'main-dark-blue', 'red']),
100
+ color: PropTypes.oneOf(COLORS_ICON),
100
101
  /**
101
102
  * Size
102
103
  */
103
- size: PropTypes.oneOf(['small', 'medium', 'large', 'extra-large'])
104
+ size: PropTypes.oneOf(SIZES)
104
105
  }
105
106
 
106
107
  AllInOneIcon.defaultProps = {
@@ -1,6 +1,7 @@
1
1
  import * as React from 'react'
2
2
  import PropTypes from 'prop-types'
3
3
  import styles from './Icons.module.css'
4
+ import { COLORS_ICON, SIZES } from '../constants'
4
5
 
5
6
  const ApiCloudIcon = ({ color, size }) => {
6
7
  const className = `${styles.noShrinkForFlex} ` + styles[`${color}`]
@@ -78,11 +79,11 @@ ApiCloudIcon.propTypes = {
78
79
  /**
79
80
  * color of text, icon and borders
80
81
  */
81
- color: PropTypes.oneOf(['green', 'white', 'main-dark-blue', 'red']),
82
+ color: PropTypes.oneOf(COLORS_ICON),
82
83
  /**
83
84
  * Size
84
85
  */
85
- size: PropTypes.oneOf(['small', 'medium', 'large', 'extra-large'])
86
+ size: PropTypes.oneOf(SIZES)
86
87
  }
87
88
 
88
89
  ApiCloudIcon.defaultProps = {
@@ -1,6 +1,7 @@
1
1
  import * as React from 'react'
2
2
  import PropTypes from 'prop-types'
3
3
  import styles from './Icons.module.css'
4
+ import { COLORS_ICON, SIZES } from '../constants'
4
5
 
5
6
  const ApiEmptyIcon = ({ color, size }) => {
6
7
  const className = `${styles.noShrinkForFlex} ` + styles[`${color}`] + ' '
@@ -126,11 +127,11 @@ ApiEmptyIcon.propTypes = {
126
127
  /**
127
128
  * color of text, icon and borders
128
129
  */
129
- color: PropTypes.oneOf(['green', 'white', 'main-dark-blue', 'red']),
130
+ color: PropTypes.oneOf(COLORS_ICON),
130
131
  /**
131
132
  * Size
132
133
  */
133
- size: PropTypes.oneOf(['small', 'medium', 'large', 'extra-large'])
134
+ size: PropTypes.oneOf(SIZES)
134
135
  }
135
136
 
136
137
  ApiEmptyIcon.defaultProps = {
@@ -1,6 +1,7 @@
1
1
  import * as React from 'react'
2
2
  import PropTypes from 'prop-types'
3
3
  import styles from './Icons.module.css'
4
+ import { COLORS_ICON, SIZES } from '../constants'
4
5
 
5
6
  const ApiIcon = ({ color, size }) => {
6
7
  const className = `${styles.noShrinkForFlex} ` + styles[`${color}`]
@@ -69,11 +70,11 @@ ApiIcon.propTypes = {
69
70
  /**
70
71
  * color of text, icon and borders
71
72
  */
72
- color: PropTypes.oneOf(['green', 'white', 'main-dark-blue', 'red']),
73
+ color: PropTypes.oneOf(COLORS_ICON),
73
74
  /**
74
75
  * Size
75
76
  */
76
- size: PropTypes.oneOf(['small', 'medium', 'large', 'extra-large'])
77
+ size: PropTypes.oneOf(SIZES)
77
78
  }
78
79
 
79
80
  ApiIcon.defaultProps = {
@@ -1,6 +1,7 @@
1
1
  import * as React from 'react'
2
2
  import PropTypes from 'prop-types'
3
3
  import styles from './Icons.module.css'
4
+ import { COLORS_ICON, SIZES } from '../constants'
4
5
 
5
6
  const ApiIconClosed = ({ color, size }) => {
6
7
  const className = `${styles.noShrinkForFlex} ` + styles[`${color}`]
@@ -37,11 +38,11 @@ ApiIconClosed.propTypes = {
37
38
  /**
38
39
  * color of text, icon and borders
39
40
  */
40
- color: PropTypes.oneOf(['green', 'white', 'main-dark-blue', 'red']),
41
+ color: PropTypes.oneOf(COLORS_ICON),
41
42
  /**
42
43
  * Size
43
44
  */
44
- size: PropTypes.oneOf(['small', 'medium', 'large', 'extra-large'])
45
+ size: PropTypes.oneOf(SIZES)
45
46
  }
46
47
 
47
48
  ApiIconClosed.defaultProps = {
@@ -1,6 +1,7 @@
1
1
  import * as React from 'react'
2
2
  import PropTypes from 'prop-types'
3
3
  import styles from './Icons.module.css'
4
+ import { COLORS_ICON, SIZES } from '../constants'
4
5
 
5
6
  const AppEmptyIcon = ({ color, size }) => {
6
7
  const className = `${styles.noShrinkForFlex} ` + styles[`${color}`]
@@ -112,11 +113,11 @@ AppEmptyIcon.propTypes = {
112
113
  /**
113
114
  * color of text, icon and borders
114
115
  */
115
- color: PropTypes.oneOf(['green', 'white', 'main-dark-blue', 'red']),
116
+ color: PropTypes.oneOf(COLORS_ICON),
116
117
  /**
117
118
  * Size
118
119
  */
119
- size: PropTypes.oneOf(['small', 'medium', 'large', 'extra-large'])
120
+ size: PropTypes.oneOf(SIZES)
120
121
  }
121
122
 
122
123
  AppEmptyIcon.defaultProps = {
@@ -1,6 +1,7 @@
1
1
  import * as React from 'react'
2
2
  import PropTypes from 'prop-types'
3
3
  import styles from './Icons.module.css'
4
+ import { COLORS_ICON, SIZES } from '../constants'
4
5
 
5
6
  const AppIcon = ({ color, size }) => {
6
7
  const className = `${styles.noShrinkForFlex} ` + styles[`${color}`]
@@ -70,11 +71,11 @@ AppIcon.propTypes = {
70
71
  /**
71
72
  * color of text, icon and borders
72
73
  */
73
- color: PropTypes.oneOf(['green', 'white', 'main-dark-blue', 'red']),
74
+ color: PropTypes.oneOf(COLORS_ICON),
74
75
  /**
75
76
  * Size
76
77
  */
77
- size: PropTypes.oneOf(['small', 'medium', 'large', 'extra-large'])
78
+ size: PropTypes.oneOf(SIZES)
78
79
  }
79
80
 
80
81
  AppIcon.defaultProps = {
@@ -1,6 +1,7 @@
1
1
  import * as React from 'react'
2
2
  import PropTypes from 'prop-types'
3
3
  import styles from './Icons.module.css'
4
+ import { COLORS_ICON, SIZES } from '../constants'
4
5
 
5
6
  const AppListIcon = ({ color, size }) => {
6
7
  const className = `${styles.noShrinkForFlex} ` + styles[`${color}`]
@@ -88,11 +89,11 @@ AppListIcon.propTypes = {
88
89
  /**
89
90
  * color of text, icon and borders
90
91
  */
91
- color: PropTypes.oneOf(['green', 'white', 'main-dark-blue', 'red']),
92
+ color: PropTypes.oneOf(COLORS_ICON),
92
93
  /**
93
94
  * Size
94
95
  */
95
- size: PropTypes.oneOf(['small', 'medium', 'large', 'extra-large'])
96
+ size: PropTypes.oneOf(SIZES)
96
97
  }
97
98
 
98
99
  AppListIcon.defaultProps = {
@@ -1,6 +1,7 @@
1
1
  import * as React from 'react'
2
2
  import PropTypes from 'prop-types'
3
3
  import styles from './Icons.module.css'
4
+ import { COLORS_ICON, SIZES } from '../constants'
4
5
 
5
6
  const ArrowDownFullIcon = ({ color, size }) => {
6
7
  const className = `${styles.noShrinkForFlex} ` + styles[`${color}`] + ' '
@@ -61,11 +62,11 @@ ArrowDownFullIcon.propTypes = {
61
62
  /**
62
63
  * color of text, icon and borders
63
64
  */
64
- color: PropTypes.oneOf(['green', 'white', 'main-dark-blue', 'red']),
65
+ color: PropTypes.oneOf(COLORS_ICON),
65
66
  /**
66
67
  * Size
67
68
  */
68
- size: PropTypes.oneOf(['small', 'medium', 'large', 'extra-large'])
69
+ size: PropTypes.oneOf(SIZES)
69
70
  }
70
71
 
71
72
  ArrowDownFullIcon.defaultProps = {
@@ -1,6 +1,7 @@
1
1
  import * as React from 'react'
2
2
  import PropTypes from 'prop-types'
3
3
  import styles from './Icons.module.css'
4
+ import { COLORS_ICON, SIZES } from '../constants'
4
5
 
5
6
  const ArrowDownIcon = ({ color, size }) => {
6
7
  const className = `${styles.noShrinkForFlex} ` + styles[`${color}`]
@@ -60,11 +61,11 @@ ArrowDownIcon.propTypes = {
60
61
  /**
61
62
  * color of text, icon and borders
62
63
  */
63
- color: PropTypes.oneOf(['green', 'white', 'main-dark-blue', 'red']),
64
+ color: PropTypes.oneOf(COLORS_ICON),
64
65
  /**
65
66
  * Size
66
67
  */
67
- size: PropTypes.oneOf(['small', 'medium', 'large', 'extra-large'])
68
+ size: PropTypes.oneOf(SIZES)
68
69
  }
69
70
 
70
71
  ArrowDownIcon.defaultProps = {
@@ -1,6 +1,7 @@
1
1
  import * as React from 'react'
2
2
  import PropTypes from 'prop-types'
3
3
  import styles from './Icons.module.css'
4
+ import { COLORS_ICON, SIZES } from '../constants'
4
5
 
5
6
  const ArrowLeftIcon = ({ color, size }) => {
6
7
  const className = `${styles.noShrinkForFlex} ` + styles[`${color}`]
@@ -60,11 +61,11 @@ ArrowLeftIcon.propTypes = {
60
61
  /**
61
62
  * color of text, icon and borders
62
63
  */
63
- color: PropTypes.oneOf(['green', 'white', 'main-dark-blue', 'red']),
64
+ color: PropTypes.oneOf(COLORS_ICON),
64
65
  /**
65
66
  * Size
66
67
  */
67
- size: PropTypes.oneOf(['small', 'medium', 'large', 'extra-large'])
68
+ size: PropTypes.oneOf(SIZES)
68
69
  }
69
70
 
70
71
  ArrowLeftIcon.defaultProps = {
@@ -1,6 +1,7 @@
1
1
  import * as React from 'react'
2
2
  import PropTypes from 'prop-types'
3
3
  import styles from './Icons.module.css'
4
+ import { COLORS_ICON, SIZES } from '../constants'
4
5
 
5
6
  const ArrowRightIcon = ({ color, size }) => {
6
7
  const className = `${styles.noShrinkForFlex} ` + styles[`${color}`]
@@ -60,11 +61,11 @@ ArrowRightIcon.propTypes = {
60
61
  /**
61
62
  * color of text, icon and borders
62
63
  */
63
- color: PropTypes.oneOf(['green', 'white', 'main-dark-blue', 'red']),
64
+ color: PropTypes.oneOf(COLORS_ICON),
64
65
  /**
65
66
  * Size
66
67
  */
67
- size: PropTypes.oneOf(['small', 'medium', 'large', 'extra-large'])
68
+ size: PropTypes.oneOf(SIZES)
68
69
  }
69
70
 
70
71
  ArrowRightIcon.defaultProps = {
@@ -1,6 +1,7 @@
1
1
  import * as React from 'react'
2
2
  import PropTypes from 'prop-types'
3
3
  import styles from './Icons.module.css'
4
+ import { COLORS_ICON, SIZES } from '../constants'
4
5
 
5
6
  const ArrowUpIcon = ({ color, size }) => {
6
7
  const className = `${styles.noShrinkForFlex} ` + styles[`${color}`]
@@ -60,11 +61,11 @@ ArrowUpIcon.propTypes = {
60
61
  /**
61
62
  * color of text, icon and borders
62
63
  */
63
- color: PropTypes.oneOf(['green', 'white', 'main-dark-blue', 'red']),
64
+ color: PropTypes.oneOf(COLORS_ICON),
64
65
  /**
65
66
  * Size
66
67
  */
67
- size: PropTypes.oneOf(['small', 'medium', 'large', 'extra-large'])
68
+ size: PropTypes.oneOf(SIZES)
68
69
  }
69
70
 
70
71
  ArrowUpIcon.defaultProps = {
@@ -1,6 +1,7 @@
1
1
  import * as React from 'react'
2
2
  import PropTypes from 'prop-types'
3
3
  import styles from './Icons.module.css'
4
+ import { COLORS_ICON, SIZES } from '../constants'
4
5
 
5
6
  const BellIcon = ({ color, size }) => {
6
7
  const className = `${styles.noShrinkForFlex} ` + styles[`${color}`]
@@ -63,11 +64,11 @@ BellIcon.propTypes = {
63
64
  /**
64
65
  * color of text, icon and borders
65
66
  */
66
- color: PropTypes.oneOf(['green', 'white', 'main-dark-blue', 'red']),
67
+ color: PropTypes.oneOf(COLORS_ICON),
67
68
  /**
68
69
  * Size
69
70
  */
70
- size: PropTypes.oneOf(['small', 'medium', 'large', 'extra-large'])
71
+ size: PropTypes.oneOf(SIZES)
71
72
  }
72
73
 
73
74
  BellIcon.defaultProps = {
@@ -1,6 +1,7 @@
1
1
  import * as React from 'react'
2
2
  import PropTypes from 'prop-types'
3
3
  import styles from './Icons.module.css'
4
+ import { COLORS_ICON, SIZES } from '../constants'
4
5
 
5
6
  const BillingIcon = ({ color, size }) => {
6
7
  const className = `${styles.noShrinkForFlex} ` + styles[`${color}`]
@@ -83,11 +84,11 @@ BillingIcon.propTypes = {
83
84
  /**
84
85
  * color of text, icon and borders
85
86
  */
86
- color: PropTypes.oneOf(['green', 'white', 'main-dark-blue', 'red']),
87
+ color: PropTypes.oneOf(COLORS_ICON),
87
88
  /**
88
89
  * Size
89
90
  */
90
- size: PropTypes.oneOf(['small', 'medium', 'large', 'extra-large'])
91
+ size: PropTypes.oneOf(SIZES)
91
92
  }
92
93
 
93
94
  BillingIcon.defaultProps = {
@@ -1,6 +1,7 @@
1
1
  import * as React from 'react'
2
2
  import PropTypes from 'prop-types'
3
3
  import styles from './Icons.module.css'
4
+ import { COLORS_ICON, SIZES } from '../constants'
4
5
 
5
6
  const Calendar1DayIcon = ({ color, size }) => {
6
7
  const className = `${styles.noShrinkForFlex} ` + styles[`${color}`]
@@ -75,11 +76,11 @@ Calendar1DayIcon.propTypes = {
75
76
  /**
76
77
  * color of text, icon and borders
77
78
  */
78
- color: PropTypes.oneOf(['green', 'white', 'main-dark-blue', 'red']),
79
+ color: PropTypes.oneOf(COLORS_ICON),
79
80
  /**
80
81
  * Size
81
82
  */
82
- size: PropTypes.oneOf(['small', 'medium', 'large', 'extra-large'])
83
+ size: PropTypes.oneOf(SIZES)
83
84
  }
84
85
 
85
86
  Calendar1DayIcon.defaultProps = {
@@ -1,6 +1,7 @@
1
1
  import * as React from 'react'
2
2
  import PropTypes from 'prop-types'
3
3
  import styles from './Icons.module.css'
4
+ import { COLORS_ICON, SIZES } from '../constants'
4
5
 
5
6
  const Calendar7DaysIcon = ({ color, size }) => {
6
7
  const className = `${styles.noShrinkForFlex} ` + styles[`${color}`]
@@ -73,11 +74,11 @@ Calendar7DaysIcon.propTypes = {
73
74
  /**
74
75
  * color of text, icon and borders
75
76
  */
76
- color: PropTypes.oneOf(['green', 'white', 'main-dark-blue', 'red']),
77
+ color: PropTypes.oneOf(COLORS_ICON),
77
78
  /**
78
79
  * Size
79
80
  */
80
- size: PropTypes.oneOf(['small', 'medium', 'large', 'extra-large'])
81
+ size: PropTypes.oneOf(SIZES)
81
82
  }
82
83
 
83
84
  Calendar7DaysIcon.defaultProps = {
@@ -1,6 +1,7 @@
1
1
  import * as React from 'react'
2
2
  import PropTypes from 'prop-types'
3
3
  import styles from './Icons.module.css'
4
+ import { COLORS_ICON, SIZES } from '../constants'
4
5
 
5
6
  const CalendarIcon = ({ color, size }) => {
6
7
  const className = `${styles.noShrinkForFlex} ` + styles[`${color}`]
@@ -87,11 +88,11 @@ CalendarIcon.propTypes = {
87
88
  /**
88
89
  * color of text, icon and borders
89
90
  */
90
- color: PropTypes.oneOf(['green', 'white', 'main-dark-blue', 'red']),
91
+ color: PropTypes.oneOf(COLORS_ICON),
91
92
  /**
92
93
  * Size
93
94
  */
94
- size: PropTypes.oneOf(['small', 'medium', 'large', 'extra-large'])
95
+ size: PropTypes.oneOf(SIZES)
95
96
  }
96
97
 
97
98
  CalendarIcon.defaultProps = {
@@ -1,6 +1,7 @@
1
1
  import * as React from 'react'
2
2
  import PropTypes from 'prop-types'
3
3
  import styles from './Icons.module.css'
4
+ import { COLORS_ICON, SIZES } from '../constants'
4
5
 
5
6
  const CircleAddIcon = ({ color, size }) => {
6
7
  const className = `${styles.noShrinkForFlex} ` + styles[`${color}`]
@@ -66,11 +67,11 @@ CircleAddIcon.propTypes = {
66
67
  /**
67
68
  * color of text, icon and borders
68
69
  */
69
- color: PropTypes.oneOf(['green', 'white', 'main-dark-blue', 'red']),
70
+ color: PropTypes.oneOf(COLORS_ICON),
70
71
  /**
71
72
  * Size
72
73
  */
73
- size: PropTypes.oneOf(['small', 'medium', 'large', 'extra-large'])
74
+ size: PropTypes.oneOf(SIZES)
74
75
  }
75
76
 
76
77
  CircleAddIcon.defaultProps = {
@@ -1,6 +1,7 @@
1
1
  import * as React from 'react'
2
2
  import PropTypes from 'prop-types'
3
3
  import styles from './Icons.module.css'
4
+ import { COLORS_ICON, SIZES } from '../constants'
4
5
 
5
6
  const CircleArrowLeftIcon = ({ color, size }) => {
6
7
  const className = `${styles.noShrinkForFlex} ` + styles[`${color}`]
@@ -80,11 +81,11 @@ CircleArrowLeftIcon.propTypes = {
80
81
  /**
81
82
  * color of text, icon and borders
82
83
  */
83
- color: PropTypes.oneOf(['green', 'white', 'main-dark-blue', 'red']),
84
+ color: PropTypes.oneOf(COLORS_ICON),
84
85
  /**
85
86
  * Size
86
87
  */
87
- size: PropTypes.oneOf(['small', 'medium', 'large', 'extra-large'])
88
+ size: PropTypes.oneOf(SIZES)
88
89
  }
89
90
 
90
91
  CircleArrowLeftIcon.defaultProps = {
@@ -1,6 +1,7 @@
1
1
  import * as React from 'react'
2
2
  import PropTypes from 'prop-types'
3
3
  import styles from './Icons.module.css'
4
+ import { COLORS_ICON, SIZES } from '../constants'
4
5
 
5
6
  const CircleArrowRightIcon = ({ color, size }) => {
6
7
  const className = `${styles.noShrinkForFlex} ` + styles[`${color}`]
@@ -83,11 +84,11 @@ CircleArrowRightIcon.propTypes = {
83
84
  /**
84
85
  * color of text, icon and borders
85
86
  */
86
- color: PropTypes.oneOf(['green', 'white', 'main-dark-blue', 'red']),
87
+ color: PropTypes.oneOf(COLORS_ICON),
87
88
  /**
88
89
  * Size
89
90
  */
90
- size: PropTypes.oneOf(['small', 'medium', 'large', 'extra-large'])
91
+ size: PropTypes.oneOf(SIZES)
91
92
  }
92
93
 
93
94
  CircleArrowRightIcon.defaultProps = {
@@ -1,6 +1,7 @@
1
1
  import * as React from 'react'
2
2
  import PropTypes from 'prop-types'
3
3
  import styles from './Icons.module.css'
4
+ import { COLORS_ICON, SIZES } from '../constants'
4
5
 
5
6
  const CircleCheckMarkIcon = ({ color, size }) => {
6
7
  const className = `${styles.noShrinkForFlex} ` + styles[`${color}`]
@@ -63,11 +64,11 @@ CircleCheckMarkIcon.propTypes = {
63
64
  /**
64
65
  * color of text, icon and borders
65
66
  */
66
- color: PropTypes.oneOf(['green', 'white', 'main-dark-blue', 'red']),
67
+ color: PropTypes.oneOf(COLORS_ICON),
67
68
  /**
68
69
  * Size
69
70
  */
70
- size: PropTypes.oneOf(['small', 'medium', 'large', 'extra-large'])
71
+ size: PropTypes.oneOf(SIZES)
71
72
  }
72
73
 
73
74
  CircleCheckMarkIcon.defaultProps = {
@@ -1,6 +1,7 @@
1
1
  import * as React from 'react'
2
2
  import PropTypes from 'prop-types'
3
3
  import styles from './Icons.module.css'
4
+ import { COLORS_ICON, SIZES } from '../constants'
4
5
 
5
6
  const CircleCloseHoverIcon = ({ color, size }) => {
6
7
  const className = `${styles.noShrinkForFlex} ` + styles[`${color}`]
@@ -53,11 +54,11 @@ CircleCloseHoverIcon.propTypes = {
53
54
  /**
54
55
  * color of text, icon and borders
55
56
  */
56
- color: PropTypes.oneOf(['green', 'white', 'main-dark-blue', 'red']),
57
+ color: PropTypes.oneOf(COLORS_ICON),
57
58
  /**
58
59
  * Size
59
60
  */
60
- size: PropTypes.oneOf(['small', 'medium', 'large', 'extra-large'])
61
+ size: PropTypes.oneOf(SIZES)
61
62
  }
62
63
 
63
64
  CircleCloseHoverIcon.defaultProps = {
@@ -1,6 +1,7 @@
1
1
  import * as React from 'react'
2
2
  import PropTypes from 'prop-types'
3
3
  import styles from './Icons.module.css'
4
+ import { COLORS_ICON, SIZES } from '../constants'
4
5
 
5
6
  const CircleCloseIcon = ({ color, size }) => {
6
7
  const className = `${styles.noShrinkForFlex} ` + styles[`${color}`]
@@ -43,11 +44,11 @@ CircleCloseIcon.propTypes = {
43
44
  /**
44
45
  * color of text, icon and borders
45
46
  */
46
- color: PropTypes.oneOf(['green', 'white', 'main-dark-blue', 'red']),
47
+ color: PropTypes.oneOf(COLORS_ICON),
47
48
  /**
48
49
  * Size
49
50
  */
50
- size: PropTypes.oneOf(['small', 'medium', 'large', 'extra-large'])
51
+ size: PropTypes.oneOf(SIZES)
51
52
  }
52
53
 
53
54
  CircleCloseIcon.defaultProps = {