@platformatic/ui-components 0.1.104 → 0.1.106

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 (126) hide show
  1. package/.nvmrc +1 -1
  2. package/dist/assets/index-68be35eb.js +206 -0
  3. package/dist/assets/{index.f8753767.css → index-6fadf156.css} +1 -1
  4. package/dist/index.html +2 -2
  5. package/index.js +2 -0
  6. package/package.json +20 -20
  7. package/src/components/ModalStepsForward.jsx +90 -0
  8. package/src/components/ModalStepsForward.module.css +32 -0
  9. package/src/components/PlatformaticIcon.jsx +4 -4
  10. package/src/components/constants.js +2 -0
  11. package/src/components/forms/Field.jsx +1 -1
  12. package/src/components/forms/Field.module.css +1 -1
  13. package/src/components/forms/Input.jsx +9 -7
  14. package/src/components/forms/Input.module.css +19 -5
  15. package/src/components/forms/Password.jsx +79 -0
  16. package/src/components/forms/Password.module.css +34 -0
  17. package/src/components/forms/RadioGroup.jsx +72 -0
  18. package/src/components/forms/RadioGroup.module.css +37 -0
  19. package/src/components/forms/Select.jsx +125 -0
  20. package/src/components/forms/Select.module.css +23 -0
  21. package/src/components/forms/TextArea.jsx +83 -0
  22. package/src/components/forms/TextArea.module.css +16 -0
  23. package/src/components/forms/index.js +13 -1
  24. package/src/components/icons/AddIcon.jsx +6 -6
  25. package/src/components/icons/AlertIcon.jsx +6 -6
  26. package/src/components/icons/AllInOneIcon.jsx +6 -6
  27. package/src/components/icons/ApiCloudIcon.jsx +6 -6
  28. package/src/components/icons/ApiEmptyIcon.jsx +4 -4
  29. package/src/components/icons/ApiIcon.jsx +6 -6
  30. package/src/components/icons/AppEmptyIcon.jsx +4 -4
  31. package/src/components/icons/AppIcon.jsx +6 -6
  32. package/src/components/icons/AppListIcon.jsx +4 -4
  33. package/src/components/icons/ArrowDownFullIcon.jsx +6 -6
  34. package/src/components/icons/ArrowDownIcon.jsx +6 -6
  35. package/src/components/icons/ArrowLeftIcon.jsx +6 -6
  36. package/src/components/icons/ArrowRightIcon.jsx +6 -6
  37. package/src/components/icons/ArrowUpIcon.jsx +6 -6
  38. package/src/components/icons/BellIcon.jsx +6 -6
  39. package/src/components/icons/BillingIcon.jsx +6 -6
  40. package/src/components/icons/Calendar1DayIcon.jsx +6 -6
  41. package/src/components/icons/Calendar7DaysIcon.jsx +6 -6
  42. package/src/components/icons/CalendarIcon.jsx +6 -6
  43. package/src/components/icons/ChatGPTIcon.jsx +77 -0
  44. package/src/components/icons/CheckListIcon.jsx +6 -6
  45. package/src/components/icons/CircleAddIcon.jsx +6 -6
  46. package/src/components/icons/CircleArrowLeftIcon.jsx +6 -6
  47. package/src/components/icons/CircleArrowRightIcon.jsx +6 -6
  48. package/src/components/icons/CircleCheckMarkFullIcon.jsx +50 -0
  49. package/src/components/icons/CircleCheckMarkIcon.jsx +6 -6
  50. package/src/components/icons/CircleCloseHoverIcon.jsx +4 -4
  51. package/src/components/icons/CircleCloseIcon.jsx +5 -5
  52. package/src/components/icons/CircleExclamationIcon.jsx +6 -6
  53. package/src/components/icons/CircleFullIcon.jsx +3 -3
  54. package/src/components/icons/CircleGearIcon.jsx +6 -6
  55. package/src/components/icons/CircleTwoArrowsDownIcon.jsx +6 -6
  56. package/src/components/icons/CircleTwoArrowsUpIcon.jsx +6 -6
  57. package/src/components/icons/CloseIcon.jsx +6 -6
  58. package/src/components/icons/ConfigureDatabaseIcon.jsx +89 -0
  59. package/src/components/icons/CopyPasteIcon.jsx +6 -6
  60. package/src/components/icons/CreatingAppIcon.jsx +95 -0
  61. package/src/components/icons/CreditCardIcon.jsx +6 -6
  62. package/src/components/icons/DatabaseIcon.jsx +6 -6
  63. package/src/components/icons/DatabaseMigrationIcon.jsx +86 -0
  64. package/src/components/icons/EditIcon.jsx +6 -6
  65. package/src/components/icons/EnlargeIcon.jsx +6 -6
  66. package/src/components/icons/EntryIcon.jsx +6 -6
  67. package/src/components/icons/ExploreDocIcon.jsx +6 -6
  68. package/src/components/icons/EyeClosedIcon.jsx +51 -0
  69. package/src/components/icons/EyeOpenedIcon.jsx +49 -0
  70. package/src/components/icons/GearIcon.jsx +6 -6
  71. package/src/components/icons/GenerationLoadingIcon.jsx +3 -3
  72. package/src/components/icons/GitHubRepoIcon.jsx +108 -0
  73. package/src/components/icons/GiveOwnershipIcon.jsx +6 -6
  74. package/src/components/icons/GraphQLIcon.jsx +6 -6
  75. package/src/components/icons/KeyIcon.jsx +6 -6
  76. package/src/components/icons/LabelIcon.jsx +3 -3
  77. package/src/components/icons/LayersIcon.jsx +6 -6
  78. package/src/components/icons/LensIcon.jsx +6 -6
  79. package/src/components/icons/LiveIcon.jsx +6 -6
  80. package/src/components/icons/LoadingAppIcon.jsx +5 -5
  81. package/src/components/icons/LogOutIcon.jsx +6 -6
  82. package/src/components/icons/MetricsIcon.jsx +6 -6
  83. package/src/components/icons/MetricsLoadingIcon.jsx +3 -3
  84. package/src/components/icons/NameAppIcon.jsx +90 -0
  85. package/src/components/icons/OrganizationIcon.jsx +6 -6
  86. package/src/components/icons/PlayIcon.jsx +6 -6
  87. package/src/components/icons/PullRequestIcon.jsx +6 -6
  88. package/src/components/icons/PullRequestLoadingIcon.jsx +4 -4
  89. package/src/components/icons/RequestOwnershipIcon.jsx +6 -6
  90. package/src/components/icons/RestartIcon.jsx +6 -6
  91. package/src/components/icons/RocketIcon.jsx +6 -6
  92. package/src/components/icons/RunningIcon.jsx +83 -0
  93. package/src/components/icons/SendIcon.jsx +6 -6
  94. package/src/components/icons/ServiceIcon.jsx +6 -6
  95. package/src/components/icons/SlotIcon.jsx +6 -6
  96. package/src/components/icons/SocialDiscordIcon.jsx +6 -6
  97. package/src/components/icons/SocialGitHubIcon.jsx +6 -6
  98. package/src/components/icons/SocialGitLabIcon.jsx +9 -9
  99. package/src/components/icons/SocialLinkedInIcon.jsx +6 -6
  100. package/src/components/icons/SocialNPMIcon.jsx +6 -6
  101. package/src/components/icons/SocialTwitterIcon.jsx +6 -6
  102. package/src/components/icons/StopIcon.jsx +6 -6
  103. package/src/components/icons/SwitchIcon.jsx +6 -6
  104. package/src/components/icons/TeamsIcon.jsx +6 -6
  105. package/src/components/icons/TerminalIcon.jsx +6 -6
  106. package/src/components/icons/TwoUsersIcon.jsx +6 -6
  107. package/src/components/icons/UpgradeIcon.jsx +7 -7
  108. package/src/components/icons/UserIcon.jsx +6 -6
  109. package/src/components/icons/UserRemoveIcon.jsx +6 -6
  110. package/src/components/icons/UserRoleIcon.jsx +6 -6
  111. package/src/components/icons/WorkspaceDynamicIcon.jsx +6 -6
  112. package/src/components/icons/WorkspaceEmptyIcon.jsx +4 -4
  113. package/src/components/icons/WorkspaceFailIcon.jsx +7 -7
  114. package/src/components/icons/WorkspaceGitHubIcon.jsx +7 -7
  115. package/src/components/icons/WorkspaceLoadingIcon.jsx +4 -4
  116. package/src/components/icons/WorkspaceReadyIcon.jsx +7 -7
  117. package/src/components/icons/WorkspaceStaticIcon.jsx +6 -6
  118. package/src/components/icons/index.js +20 -0
  119. package/src/stories/ModalStepsForward.stories.jsx +60 -0
  120. package/src/stories/PlatformaticIcon.stories.jsx +32 -26
  121. package/src/stories/forms/Password.stories.jsx +63 -0
  122. package/src/stories/forms/RadioGroup.stories.jsx +77 -0
  123. package/src/stories/forms/Select.stories.jsx +71 -0
  124. package/src/stories/forms/TextArea.stories.jsx +73 -0
  125. package/dist/assets/index.605a6a5e.js +0 -206
  126. /package/dist/assets/{Montserrat-Regular.dcfe8df2.ttf → Montserrat-Regular-dcfe8df2.ttf} +0 -0
@@ -1,14 +1,14 @@
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
+ import { COLORS_ICON, SIZES, SMALL, MEDIUM, LARGE, MAIN_DARK_BLUE } from '../constants'
5
5
 
6
6
  const OrganizationIcon = ({ color, size }) => {
7
7
  const className = `${styles.noShrinkForFlex} ` + styles[`${color}`]
8
8
  let icon = <></>
9
9
 
10
10
  switch (size) {
11
- case 'small':
11
+ case SMALL:
12
12
  icon = (
13
13
  <svg
14
14
  width={16}
@@ -27,7 +27,7 @@ const OrganizationIcon = ({ color, size }) => {
27
27
  </svg>
28
28
  )
29
29
  break
30
- case 'medium':
30
+ case MEDIUM:
31
31
  icon = (
32
32
  <svg
33
33
  width={24}
@@ -45,7 +45,7 @@ const OrganizationIcon = ({ color, size }) => {
45
45
  </svg>
46
46
  )
47
47
  break
48
- case 'large':
48
+ case LARGE:
49
49
  icon = (
50
50
  <svg
51
51
  width={40}
@@ -83,8 +83,8 @@ OrganizationIcon.propTypes = {
83
83
  }
84
84
 
85
85
  OrganizationIcon.defaultProps = {
86
- color: 'main-dark-blue',
87
- size: 'medium'
86
+ color: MAIN_DARK_BLUE,
87
+ size: MEDIUM
88
88
  }
89
89
 
90
90
  export default OrganizationIcon
@@ -1,14 +1,14 @@
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
+ import { COLORS_ICON, SIZES, SMALL, MEDIUM, LARGE, MAIN_DARK_BLUE } from '../constants'
5
5
 
6
6
  const PlayIcon = ({ color, size }) => {
7
7
  const className = `${styles.noShrinkForFlex} ` + styles[`${color}`]
8
8
  let icon = <></>
9
9
 
10
10
  switch (size) {
11
- case 'small':
11
+ case SMALL:
12
12
  icon = (
13
13
  <svg
14
14
  width={16}
@@ -22,7 +22,7 @@ const PlayIcon = ({ color, size }) => {
22
22
  </svg>
23
23
  )
24
24
  break
25
- case 'medium':
25
+ case MEDIUM:
26
26
  icon = (
27
27
  <svg
28
28
  width={24}
@@ -36,7 +36,7 @@ const PlayIcon = ({ color, size }) => {
36
36
  </svg>
37
37
  )
38
38
  break
39
- case 'large':
39
+ case LARGE:
40
40
  icon = (
41
41
  <svg
42
42
  width={40}
@@ -69,8 +69,8 @@ PlayIcon.propTypes = {
69
69
  }
70
70
 
71
71
  PlayIcon.defaultProps = {
72
- color: 'main-dark-blue',
73
- size: 'medium'
72
+ color: MAIN_DARK_BLUE,
73
+ size: MEDIUM
74
74
  }
75
75
 
76
76
  export default PlayIcon
@@ -1,14 +1,14 @@
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
+ import { COLORS_ICON, SIZES, SMALL, MEDIUM, LARGE, MAIN_DARK_BLUE } from '../constants'
5
5
 
6
6
  const PullRequestIcon = ({ color, size }) => {
7
7
  const className = `${styles.noShrinkForFlex} ` + styles[`${color}`]
8
8
  let icon = <></>
9
9
 
10
10
  switch (size) {
11
- case 'small':
11
+ case SMALL:
12
12
  icon = (
13
13
  <svg
14
14
  width={16}
@@ -27,7 +27,7 @@ const PullRequestIcon = ({ color, size }) => {
27
27
  </svg>
28
28
  )
29
29
  break
30
- case 'medium':
30
+ case MEDIUM:
31
31
  icon = (
32
32
  <svg
33
33
  width={24}
@@ -47,7 +47,7 @@ const PullRequestIcon = ({ color, size }) => {
47
47
  </svg>
48
48
  )
49
49
  break
50
- case 'large':
50
+ case LARGE:
51
51
  icon = (
52
52
  <svg
53
53
  width={40}
@@ -86,8 +86,8 @@ PullRequestIcon.propTypes = {
86
86
  }
87
87
 
88
88
  PullRequestIcon.defaultProps = {
89
- color: 'main-dark-blue',
90
- size: 'medium'
89
+ color: MAIN_DARK_BLUE,
90
+ size: MEDIUM
91
91
  }
92
92
 
93
93
  export default PullRequestIcon
@@ -1,7 +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
+ import { COLORS_ICON, SIZES, MEDIUM, EXTRA_LARGE, MAIN_DARK_BLUE } from '../constants'
5
5
 
6
6
  const PullRequestLoadingIcon = ({ color, size }) => {
7
7
  const className = `${styles.noShrinkForFlex} ` + styles[`${color}`]
@@ -10,7 +10,7 @@ const PullRequestLoadingIcon = ({ color, size }) => {
10
10
  let icon = <></>
11
11
 
12
12
  switch (size) {
13
- case 'extra-large':
13
+ case EXTRA_LARGE:
14
14
  icon = (
15
15
  <svg
16
16
  width={105}
@@ -53,8 +53,8 @@ PullRequestLoadingIcon.propTypes = {
53
53
  }
54
54
 
55
55
  PullRequestLoadingIcon.defaultProps = {
56
- color: 'main-dark-blue',
57
- size: 'medium'
56
+ color: MAIN_DARK_BLUE,
57
+ size: MEDIUM
58
58
  }
59
59
 
60
60
  export default PullRequestLoadingIcon
@@ -1,14 +1,14 @@
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
+ import { COLORS_ICON, SIZES, SMALL, MEDIUM, LARGE, MAIN_DARK_BLUE } from '../constants'
5
5
 
6
6
  const RequestOwnershipIcon = ({ color, size }) => {
7
7
  const className = `${styles.noShrinkForFlex} ` + styles[`${color}`]
8
8
  let icon = <></>
9
9
 
10
10
  switch (size) {
11
- case 'small':
11
+ case SMALL:
12
12
  icon = (
13
13
  <svg
14
14
  width={16}
@@ -24,7 +24,7 @@ const RequestOwnershipIcon = ({ color, size }) => {
24
24
  </svg>
25
25
  )
26
26
  break
27
- case 'medium':
27
+ case MEDIUM:
28
28
  icon = (
29
29
  <svg
30
30
  width={24}
@@ -41,7 +41,7 @@ const RequestOwnershipIcon = ({ color, size }) => {
41
41
  </svg>
42
42
  )
43
43
  break
44
- case 'large':
44
+ case LARGE:
45
45
  icon = (
46
46
  <svg
47
47
  width={40}
@@ -77,8 +77,8 @@ RequestOwnershipIcon.propTypes = {
77
77
  }
78
78
 
79
79
  RequestOwnershipIcon.defaultProps = {
80
- color: 'main-dark-blue',
81
- size: 'medium'
80
+ color: MAIN_DARK_BLUE,
81
+ size: MEDIUM
82
82
  }
83
83
 
84
84
  export default RequestOwnershipIcon
@@ -1,14 +1,14 @@
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
+ import { COLORS_ICON, SIZES, SMALL, MEDIUM, LARGE, MAIN_DARK_BLUE } from '../constants'
5
5
 
6
6
  const RestartIcon = ({ color, size }) => {
7
7
  const className = `${styles.noShrinkForFlex} ` + styles[`${color}`]
8
8
  let icon = <></>
9
9
 
10
10
  switch (size) {
11
- case 'small':
11
+ case SMALL:
12
12
  icon = (
13
13
  <svg
14
14
  width={16}
@@ -23,7 +23,7 @@ const RestartIcon = ({ color, size }) => {
23
23
  </svg>
24
24
  )
25
25
  break
26
- case 'medium':
26
+ case MEDIUM:
27
27
  icon = (
28
28
  <svg
29
29
  width={24}
@@ -38,7 +38,7 @@ const RestartIcon = ({ color, size }) => {
38
38
  </svg>
39
39
  )
40
40
  break
41
- case 'large':
41
+ case LARGE:
42
42
  icon = (
43
43
  <svg
44
44
  width={40}
@@ -72,8 +72,8 @@ RestartIcon.propTypes = {
72
72
  }
73
73
 
74
74
  RestartIcon.defaultProps = {
75
- color: 'main-dark-blue',
76
- size: 'medium'
75
+ color: MAIN_DARK_BLUE,
76
+ size: MEDIUM
77
77
  }
78
78
 
79
79
  export default RestartIcon
@@ -1,14 +1,14 @@
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
+ import { COLORS_ICON, SIZES, SMALL, MEDIUM, LARGE, MAIN_DARK_BLUE } from '../constants'
5
5
 
6
6
  const RocketIcon = ({ color, size }) => {
7
7
  const className = `${styles.noShrinkForFlex} ` + styles[`${color}`]
8
8
  let icon = <></>
9
9
 
10
10
  switch (size) {
11
- case 'small':
11
+ case SMALL:
12
12
  icon = (
13
13
  <svg
14
14
  width={16}
@@ -27,7 +27,7 @@ const RocketIcon = ({ color, size }) => {
27
27
  </svg>
28
28
  )
29
29
  break
30
- case 'medium':
30
+ case MEDIUM:
31
31
  icon = (
32
32
  <svg
33
33
  width={24}
@@ -46,7 +46,7 @@ const RocketIcon = ({ color, size }) => {
46
46
  </svg>
47
47
  )
48
48
  break
49
- case 'large':
49
+ case LARGE:
50
50
  icon = (
51
51
  <svg
52
52
  width={40}
@@ -84,8 +84,8 @@ RocketIcon.propTypes = {
84
84
  }
85
85
 
86
86
  RocketIcon.defaultProps = {
87
- color: 'main-dark-blue',
88
- size: 'medium'
87
+ color: MAIN_DARK_BLUE,
88
+ size: MEDIUM
89
89
  }
90
90
 
91
91
  export default RocketIcon
@@ -0,0 +1,83 @@
1
+ import * as React from 'react'
2
+ import PropTypes from 'prop-types'
3
+ import styles from './Icons.module.css'
4
+ import { COLORS_ICON, SIZES, SMALL, MEDIUM, LARGE, MAIN_DARK_BLUE } from '../constants'
5
+
6
+ const RunningIcon = ({ color, size }) => {
7
+ const className = `${styles.noShrinkForFlex} ` + styles[`${color}`]
8
+ let icon = <></>
9
+
10
+ switch (size) {
11
+ case SMALL:
12
+ icon = (
13
+ <svg
14
+ width={16}
15
+ height={16}
16
+ viewBox='0 0 16 16'
17
+ fill='none'
18
+ xmlns='http://www.w3.org/2000/svg'
19
+ className={className}
20
+ >
21
+ <path d='M4.05141 5.23517C4.89581 3.88792 6.33972 3 7.97913 3C10.5822 3 12.6924 5.23858 12.6924 8C12.6924 8.50216 12.6226 8.98702 12.4928 9.44428M3.33104 7.16667C3.28818 7.43767 3.26587 7.71607 3.26587 8C3.26587 10.7614 5.37607 13 7.97913 13C9.38685 13 10.6504 12.3453 11.5141 11.3073' stroke='none' strokeLinecap='round' strokeLinejoin='round' />
22
+ <path d='M11.2388 7.875L12.47 9.49804L14 8.1919' stroke='none' strokeLinecap='round' strokeLinejoin='round' />
23
+ <path d='M4.771 8.35156L3.29088 6.9823L2.00014 8.55246' stroke='none' strokeLinecap='round' strokeLinejoin='round' />
24
+ </svg>
25
+ )
26
+ break
27
+ case MEDIUM:
28
+ icon = (
29
+ <svg
30
+ width={24}
31
+ height={24}
32
+ viewBox='0 0 24 24'
33
+ fill='none'
34
+ xmlns='http://www.w3.org/2000/svg'
35
+ className={className}
36
+ >
37
+ <path d='M6.077 7.85276C7.34359 5.83189 9.50946 4.5 11.9686 4.5C15.8732 4.5 19.0385 7.85786 19.0385 12C19.0385 12.7532 18.9338 13.4805 18.739 14.1664M4.99643 10.75C4.93214 11.1565 4.89868 11.5741 4.89868 12C4.89868 16.1421 8.06398 19.5 11.9686 19.5C14.0802 19.5 15.9755 18.518 17.271 16.9609' stroke='none' strokeWidth={1.5} strokeLinecap='round' strokeLinejoin='round' />
38
+ <path d='M16.8582 11.8125L18.705 14.2471L21 12.2879' stroke='none' strokeWidth={1.5} strokeLinecap='round' strokeLinejoin='round' />
39
+ <path d='M7.15649 12.5275L4.93632 10.4736L3.00022 12.8288' stroke='none' strokeWidth={1.5} strokeLinecap='round' strokeLinejoin='round' />
40
+
41
+ </svg>
42
+ )
43
+ break
44
+ case LARGE:
45
+ icon = (
46
+ <svg
47
+ width={40}
48
+ height={40}
49
+ viewBox='0 0 40 40'
50
+ fill='none'
51
+ xmlns='http://www.w3.org/2000/svg'
52
+ className={className}
53
+ >
54
+ <path d='M10.1282 13.0879C12.2392 9.71981 15.8489 7.5 19.9475 7.5C26.4551 7.5 31.7306 13.0964 31.7306 20C31.7306 21.2554 31.5562 22.4676 31.2316 23.6107M8.32723 17.9167C8.22008 18.5942 8.16431 19.2902 8.16431 20C8.16431 26.9036 13.4398 32.5 19.9475 32.5C23.4668 32.5 26.6257 30.8633 28.7848 28.2682' stroke='none' strokeWidth={2} strokeLinecap='round' strokeLinejoin='round' />
55
+ <path d='M28.0969 19.6875L31.175 23.7451L34.9999 20.4798' stroke='none' strokeWidth={2} strokeLinecap='round' strokeLinejoin='round' />
56
+ <path d='M11.9275 20.879L8.22721 17.4559L5.00036 21.3813' stroke='none' strokeWidth={2} strokeLinecap='round' strokeLinejoin='round' />
57
+ </svg>
58
+ )
59
+ break
60
+
61
+ default:
62
+ break
63
+ }
64
+ return icon
65
+ }
66
+
67
+ RunningIcon.propTypes = {
68
+ /**
69
+ * color of text, icon and borders
70
+ */
71
+ color: PropTypes.oneOf(COLORS_ICON),
72
+ /**
73
+ * Size
74
+ */
75
+ size: PropTypes.oneOf(SIZES)
76
+ }
77
+
78
+ RunningIcon.defaultProps = {
79
+ color: MAIN_DARK_BLUE,
80
+ size: MEDIUM
81
+ }
82
+
83
+ export default RunningIcon
@@ -1,14 +1,14 @@
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
+ import { COLORS_ICON, SIZES, SMALL, MEDIUM, LARGE, MAIN_DARK_BLUE } from '../constants'
5
5
 
6
6
  const SendIcon = ({ color, size }) => {
7
7
  const className = `${styles.noShrinkForFlex} ` + styles[`${color}`]
8
8
  let icon = <></>
9
9
 
10
10
  switch (size) {
11
- case 'small':
11
+ case SMALL:
12
12
  icon = (
13
13
  <svg
14
14
  width={16}
@@ -22,7 +22,7 @@ const SendIcon = ({ color, size }) => {
22
22
  </svg>
23
23
  )
24
24
  break
25
- case 'medium':
25
+ case MEDIUM:
26
26
  icon = (
27
27
  <svg
28
28
  width={24}
@@ -36,7 +36,7 @@ const SendIcon = ({ color, size }) => {
36
36
  </svg>
37
37
  )
38
38
  break
39
- case 'large':
39
+ case LARGE:
40
40
  icon = (
41
41
  <svg
42
42
  width={40}
@@ -69,8 +69,8 @@ SendIcon.propTypes = {
69
69
  }
70
70
 
71
71
  SendIcon.defaultProps = {
72
- color: 'main-dark-blue',
73
- size: 'medium'
72
+ color: MAIN_DARK_BLUE,
73
+ size: MEDIUM
74
74
  }
75
75
 
76
76
  export default SendIcon
@@ -1,14 +1,14 @@
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
+ import { COLORS_ICON, SIZES, SMALL, MEDIUM, LARGE, MAIN_DARK_BLUE } from '../constants'
5
5
 
6
6
  const ServiceIcon = ({ color, size }) => {
7
7
  const className = `${styles.noShrinkForFlex} ` + styles[`${color}`]
8
8
  let icon = <></>
9
9
 
10
10
  switch (size) {
11
- case 'small':
11
+ case SMALL:
12
12
  icon = (
13
13
  <svg
14
14
  width={16}
@@ -27,7 +27,7 @@ const ServiceIcon = ({ color, size }) => {
27
27
  </svg>
28
28
  )
29
29
  break
30
- case 'medium':
30
+ case MEDIUM:
31
31
  icon = (
32
32
  <svg
33
33
  width={24}
@@ -46,7 +46,7 @@ const ServiceIcon = ({ color, size }) => {
46
46
  </svg>
47
47
  )
48
48
  break
49
- case 'large':
49
+ case LARGE:
50
50
  icon = (
51
51
  <svg
52
52
  width={40}
@@ -83,8 +83,8 @@ ServiceIcon.propTypes = {
83
83
  }
84
84
 
85
85
  ServiceIcon.defaultProps = {
86
- color: 'main-dark-blue',
87
- size: 'medium'
86
+ color: MAIN_DARK_BLUE,
87
+ size: MEDIUM
88
88
  }
89
89
 
90
90
  export default ServiceIcon
@@ -1,14 +1,14 @@
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
+ import { COLORS_ICON, SIZES, SMALL, MEDIUM, LARGE, MAIN_DARK_BLUE } from '../constants'
5
5
 
6
6
  const SlotIcon = ({ color, size }) => {
7
7
  const className = `${styles.noShrinkForFlex} ` + styles[`${color}`]
8
8
  let icon = <></>
9
9
 
10
10
  switch (size) {
11
- case 'small':
11
+ case SMALL:
12
12
  icon = (
13
13
  <svg
14
14
  width={16}
@@ -26,7 +26,7 @@ const SlotIcon = ({ color, size }) => {
26
26
  </svg>
27
27
  )
28
28
  break
29
- case 'medium':
29
+ case MEDIUM:
30
30
  icon = (
31
31
  <svg
32
32
  width={24}
@@ -44,7 +44,7 @@ const SlotIcon = ({ color, size }) => {
44
44
  </svg>
45
45
  )
46
46
  break
47
- case 'large':
47
+ case LARGE:
48
48
  icon = (
49
49
  <svg
50
50
  width={40}
@@ -81,8 +81,8 @@ SlotIcon.propTypes = {
81
81
  }
82
82
 
83
83
  SlotIcon.defaultProps = {
84
- color: 'main-dark-blue',
85
- size: 'medium'
84
+ color: MAIN_DARK_BLUE,
85
+ size: MEDIUM
86
86
  }
87
87
 
88
88
  export default SlotIcon
@@ -1,7 +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
+ import { COLORS_ICON, SIZES, SMALL, MEDIUM, LARGE, MAIN_DARK_BLUE } from '../constants'
5
5
 
6
6
  const SocialDiscordIcon = ({ color, size }) => {
7
7
  const className = `${styles.noShrinkForFlex} ` + styles[`${color}`]
@@ -9,7 +9,7 @@ const SocialDiscordIcon = ({ color, size }) => {
9
9
  let icon = <></>
10
10
 
11
11
  switch (size) {
12
- case 'small':
12
+ case SMALL:
13
13
  icon = (
14
14
  <svg
15
15
  width={16}
@@ -24,7 +24,7 @@ const SocialDiscordIcon = ({ color, size }) => {
24
24
  </svg>
25
25
  )
26
26
  break
27
- case 'medium':
27
+ case MEDIUM:
28
28
  icon = (
29
29
  <svg
30
30
  width={24}
@@ -39,7 +39,7 @@ const SocialDiscordIcon = ({ color, size }) => {
39
39
  </svg>
40
40
  )
41
41
  break
42
- case 'large':
42
+ case LARGE:
43
43
  icon = (
44
44
  <svg
45
45
  width={40}
@@ -73,8 +73,8 @@ SocialDiscordIcon.propTypes = {
73
73
  }
74
74
 
75
75
  SocialDiscordIcon.defaultProps = {
76
- color: 'main-dark-blue',
77
- size: 'medium'
76
+ color: MAIN_DARK_BLUE,
77
+ size: MEDIUM
78
78
  }
79
79
 
80
80
  export default SocialDiscordIcon
@@ -1,7 +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
+ import { COLORS_ICON, SIZES, SMALL, MEDIUM, LARGE, MAIN_DARK_BLUE } from '../constants'
5
5
 
6
6
  const SocialGitHubIcon = ({ color, size }) => {
7
7
  const className = `${styles.noShrinkForFlex} ` + styles[`${color}`]
@@ -9,7 +9,7 @@ const SocialGitHubIcon = ({ color, size }) => {
9
9
  let icon = <></>
10
10
 
11
11
  switch (size) {
12
- case 'small':
12
+ case SMALL:
13
13
  icon = (
14
14
  <svg
15
15
  width={16}
@@ -30,7 +30,7 @@ const SocialGitHubIcon = ({ color, size }) => {
30
30
  </svg>
31
31
  )
32
32
  break
33
- case 'medium':
33
+ case MEDIUM:
34
34
  icon = (
35
35
  <svg
36
36
  width={24}
@@ -52,7 +52,7 @@ const SocialGitHubIcon = ({ color, size }) => {
52
52
  </svg>
53
53
  )
54
54
  break
55
- case 'large':
55
+ case LARGE:
56
56
  icon = (
57
57
  <svg
58
58
  width={40}
@@ -92,8 +92,8 @@ SocialGitHubIcon.propTypes = {
92
92
  }
93
93
 
94
94
  SocialGitHubIcon.defaultProps = {
95
- color: 'main-dark-blue',
96
- size: 'medium'
95
+ color: MAIN_DARK_BLUE,
96
+ size: MEDIUM
97
97
  }
98
98
 
99
99
  export default SocialGitHubIcon