@platformatic/ui-components 0.1.57 → 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 (104) 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 +18 -12
  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/Sidebar.stories.jsx +18 -3
  98. package/src/stories/Status.stories.jsx +2 -2
  99. package/src/stories/forms/Input.stories.jsx +1 -1
  100. package/src/stories/forms/Preview.stories.jsx +1 -1
  101. package/src/stories/icons/Icons.stories.jsx +5 -4
  102. package/tailwind.config.cjs +11 -11
  103. package/dist/assets/index.691ca940.css +0 -1
  104. package/dist/assets/index.ff0dadfc.js +0 -797
@@ -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 = {
@@ -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 CircleExclamationIcon = ({ color, size, tip }) => {
6
7
  const className = `${styles.noShrinkForFlex} ` + styles[`${color}`]
@@ -72,11 +73,11 @@ CircleExclamationIcon.propTypes = {
72
73
  /**
73
74
  * color of text, icon and borders
74
75
  */
75
- color: PropTypes.oneOf(['green', 'white', 'main-dark-blue', 'red']),
76
+ color: PropTypes.oneOf(COLORS_ICON),
76
77
  /**
77
78
  * Size
78
79
  */
79
- size: PropTypes.oneOf(['small', 'medium', 'large', 'extra-large']),
80
+ size: PropTypes.oneOf(SIZES),
80
81
  /**
81
82
  * tip
82
83
  */
@@ -0,0 +1,77 @@
1
+ import * as React from 'react'
2
+ import PropTypes from 'prop-types'
3
+ import styles from './Icons.module.css'
4
+ import { COLORS_ICON, SIZES } from '../constants'
5
+
6
+ const CircleFullIcon = ({ color, size }) => {
7
+ const className = `${styles.noShrinkForFlex} ` + styles[`${color}`]
8
+ const filledClassName = styles[`filled-${color}`]
9
+ let icon = <></>
10
+
11
+ switch (size) {
12
+ case 'small':
13
+ icon = (
14
+ <svg
15
+ width={16}
16
+ height={16}
17
+ viewBox='0 0 16 16'
18
+ fill='none'
19
+ xmlns='http://www.w3.org/2000/svg'
20
+ className={className}
21
+ >
22
+ <circle cx={8} cy={8} r={6} fill='none' className={filledClassName} />
23
+ </svg>
24
+ )
25
+ break
26
+ case 'medium':
27
+ icon = (
28
+ <svg
29
+ width={24}
30
+ height={24}
31
+ viewBox='0 0 24 24'
32
+ fill='none'
33
+ xmlns='http://www.w3.org/2000/svg'
34
+ className={className}
35
+ >
36
+ <circle cx={12} cy={12} r={9} fill='none' className={filledClassName} />
37
+ </svg>
38
+ )
39
+ break
40
+ case 'large':
41
+ icon = (
42
+ <svg
43
+ width={40}
44
+ height={40}
45
+ viewBox='0 0 40 40'
46
+ fill='none'
47
+ xmlns='http://www.w3.org/2000/svg'
48
+ className={className}
49
+ >
50
+ <circle cx={20} cy={20} r={15} fill='none' className={filledClassName} />
51
+ </svg>
52
+ )
53
+ break
54
+
55
+ default:
56
+ break
57
+ }
58
+ return icon
59
+ }
60
+
61
+ CircleFullIcon.propTypes = {
62
+ /**
63
+ * color of text, icon and borders
64
+ */
65
+ color: PropTypes.oneOf(COLORS_ICON),
66
+ /**
67
+ * Size
68
+ */
69
+ size: PropTypes.oneOf(SIZES)
70
+ }
71
+
72
+ CircleFullIcon.defaultProps = {
73
+ color: 'main-dark-blue',
74
+ size: 'medium'
75
+ }
76
+
77
+ export default CircleFullIcon
@@ -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 CircleTwoArrowsDownIcon = ({ color, size }) => {
6
7
  const className = `${styles.noShrinkForFlex} ` + styles[`${color}`]
@@ -69,11 +70,11 @@ CircleTwoArrowsDownIcon.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
  CircleTwoArrowsDownIcon.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 CircleTwoArrowsUpIcon = ({ color, size }) => {
6
7
  const className = `${styles.noShrinkForFlex} ` + styles[`${color}`]
@@ -72,11 +73,11 @@ CircleTwoArrowsUpIcon.propTypes = {
72
73
  /**
73
74
  * color of text, icon and borders
74
75
  */
75
- color: PropTypes.oneOf(['green', 'white', 'main-dark-blue', 'red']),
76
+ color: PropTypes.oneOf(COLORS_ICON),
76
77
  /**
77
78
  * Size
78
79
  */
79
- size: PropTypes.oneOf(['small', 'medium', 'large', 'extra-large'])
80
+ size: PropTypes.oneOf(SIZES)
80
81
  }
81
82
 
82
83
  CircleTwoArrowsUpIcon.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 CloseIcon = ({ color, size }) => {
6
7
  const className = `${styles.noShrinkForFlex} ` + styles[`${color}`]
@@ -64,11 +65,11 @@ CloseIcon.propTypes = {
64
65
  /**
65
66
  * color of text, icon and borders
66
67
  */
67
- color: PropTypes.oneOf(['green', 'white', 'main-dark-blue', 'red']),
68
+ color: PropTypes.oneOf(COLORS_ICON),
68
69
  /**
69
70
  * Size
70
71
  */
71
- size: PropTypes.oneOf(['small', 'medium', 'large', 'extra-large'])
72
+ size: PropTypes.oneOf(SIZES)
72
73
  }
73
74
 
74
75
  CloseIcon.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 CopyPasteIcon = ({ color, size }) => {
6
7
  const className = `${styles.noShrinkForFlex} ` + styles[`${color}`]
@@ -66,11 +67,11 @@ CopyPasteIcon.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
  CopyPasteIcon.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 DatabaseIcon = ({ color, size }) => {
6
7
  const className = `${styles.noShrinkForFlex} ` + styles[`${color}`]
@@ -66,11 +67,11 @@ DatabaseIcon.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
  DatabaseIcon.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 EditIcon = ({ color, size }) => {
6
7
  const className = `${styles.noShrinkForFlex} ` + styles[`${color}`]
@@ -66,11 +67,11 @@ EditIcon.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
  EditIcon.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 EnlargeIcon = ({ color, size }) => {
6
7
  const className = `${styles.noShrinkForFlex} ` + styles[`${color}`]
@@ -70,11 +71,11 @@ EnlargeIcon.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
  EnlargeIcon.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 EntryIcon = ({ color, size }) => {
6
7
  const className = `${styles.noShrinkForFlex} ` + styles[`${color}`]
@@ -67,11 +68,11 @@ EntryIcon.propTypes = {
67
68
  /**
68
69
  * color of text, icon and borders
69
70
  */
70
- color: PropTypes.oneOf(['green', 'white', 'main-dark-blue', 'red']),
71
+ color: PropTypes.oneOf(COLORS_ICON),
71
72
  /**
72
73
  * Size
73
74
  */
74
- size: PropTypes.oneOf(['small', 'medium', 'large', 'extra-large'])
75
+ size: PropTypes.oneOf(SIZES)
75
76
  }
76
77
 
77
78
  EntryIcon.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 ExploreDocIcon = ({ color, size }) => {
6
7
  const className = `${styles.noShrinkForFlex} ` + styles[`${color}`]
@@ -80,11 +81,11 @@ ExploreDocIcon.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
  ExploreDocIcon.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 GearIcon = ({ color, size }) => {
6
7
  const className = `${styles.noShrinkForFlex} ` + styles[`${color}`]
@@ -63,11 +64,11 @@ GearIcon.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
  GearIcon.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 GraphQLIcon = ({ color, size }) => {
6
7
  const className = `${styles.noShrinkForFlex} ` + styles[`${color}`]
@@ -83,11 +84,11 @@ GraphQLIcon.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
  GraphQLIcon.defaultProps = {
@@ -1,16 +1,17 @@
1
- .green > circle,
2
- .green > ellipse,
3
- .green > rect,
4
- .green > line,
5
- .green > path {
1
+ .main-green > circle,
2
+ .main-green > ellipse,
3
+ .main-green > rect,
4
+ .main-green > line,
5
+ .main-green > path {
6
6
  @apply stroke-main-green;
7
7
  }
8
8
 
9
- .red > circle,
10
- .red > ellipse,
11
- .red > rect,
12
- .red > line,
13
- .red > path {
9
+
10
+ .error-red > circle,
11
+ .error-red > ellipse,
12
+ .error-red > rect,
13
+ .error-red > line,
14
+ .error-red > path {
14
15
  @apply stroke-error-red;
15
16
  }
16
17
 
@@ -28,18 +29,29 @@
28
29
  .main-dark-blue > path {
29
30
  @apply stroke-main-dark-blue;
30
31
  }
32
+ .warning-yellow > circle,
33
+ .warning-yellow > ellipse,
34
+ .warning-yellow > rect,
35
+ .warning-yellow > line,
36
+ .warning-yellow > path {
37
+ @apply stroke-warning-yellow;
38
+ }
39
+
31
40
  .filled-white {
32
41
  @apply fill-white
33
42
  }
34
- .filled-red{
43
+ .filled-error-red{
35
44
  @apply fill-error-red;
36
45
  }
37
46
  .filled-main-dark-blue {
38
47
  @apply fill-main-dark-blue ;
39
48
  }
40
- .filled-green {
49
+ .filled-main-green {
41
50
  @apply fill-main-green ;
42
51
  }
52
+ .filled-warning-yellow {
53
+ @apply fill-warning-yellow ;
54
+ }
43
55
 
44
56
  .fill-circle-green > circle {
45
57
  @apply fill-white;
@@ -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 KeyIcon = ({ color, size }) => {
6
7
  const className = `${styles.noShrinkForFlex} ` + styles[`${color}`]
@@ -70,11 +71,11 @@ KeyIcon.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
  KeyIcon.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 LayersIcon = ({ color, size }) => {
6
7
  const className = `${styles.noShrinkForFlex} ` + styles[`${color}`]
@@ -66,11 +67,11 @@ LayersIcon.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
  LayersIcon.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 LensIcon = ({ color, size }) => {
6
7
  const className = `${styles.noShrinkForFlex} ` + styles[`${color}`]
@@ -64,11 +65,11 @@ LensIcon.propTypes = {
64
65
  /**
65
66
  * color of text, icon and borders
66
67
  */
67
- color: PropTypes.oneOf(['green', 'white', 'main-dark-blue', 'red']),
68
+ color: PropTypes.oneOf(COLORS_ICON),
68
69
  /**
69
70
  * Size
70
71
  */
71
- size: PropTypes.oneOf(['small', 'medium', 'large', 'extra-large'])
72
+ size: PropTypes.oneOf(SIZES)
72
73
  }
73
74
 
74
75
  LensIcon.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 LiveIcon = ({ color, size }) => {
6
7
  const className = `${styles.noShrinkForFlex} ` + styles[`${color}`]
@@ -70,11 +71,11 @@ LiveIcon.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
  LiveIcon.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 LogOutIcon = ({ color, size }) => {
6
7
  const className = `${styles.noShrinkForFlex} ` + styles[`${color}`]
@@ -66,11 +67,11 @@ LogOutIcon.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
  LogOutIcon.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 MetricsIcon = ({ color, size }) => {
6
7
  const className = `${styles.noShrinkForFlex} ` + styles[`${color}`]
@@ -70,11 +71,11 @@ MetricsIcon.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
  MetricsIcon.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 PlayIcon = ({ color, size }) => {
6
7
  const className = `${styles.noShrinkForFlex} ` + styles[`${color}`]
@@ -60,11 +61,11 @@ PlayIcon.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
  PlayIcon.defaultProps = {