@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,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 SocialGitLabIcon = ({ color, size }) => {
7
7
  const className = `${styles.noShrinkForFlex} ` + styles[`${color}`]
@@ -9,7 +9,7 @@ const SocialGitLabIcon = ({ 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}
@@ -19,7 +19,7 @@ const SocialGitLabIcon = ({ color, size }) => {
19
19
  xmlns='http://www.w3.org/2000/svg'
20
20
  className={className}
21
21
  >
22
- <g clip-path='url(#clip0_852_2118)'>
22
+ <g clipPath='url(#clip0_852_2118)'>
23
23
  <path d='M8.21846 13.8988L8.21422 13.9059C8.25805 13.9031 8.30046 13.8932 8.34146 13.8763C10.4339 12.5321 12.3863 10.9935 14.4122 9.55918C14.6483 9.39151 14.7233 9.16467 14.62 8.88005C14.3755 8.19951 14.1394 7.51616 13.899 6.83421C13.9047 6.78631 13.8905 6.74404 13.858 6.7074C13.4183 5.30265 12.9843 3.89648 12.5319 2.49596C12.4725 2.31138 12.4753 2.01831 12.211 1.99999C11.8929 1.97745 11.8872 2.28602 11.8179 2.49736C11.3542 3.89648 10.8962 5.29701 10.4353 6.69613L10.4409 6.68909C8.81084 6.68909 7.17934 6.68909 5.54925 6.68768L5.55349 6.69472C5.08412 5.27306 4.61192 3.8514 4.14537 2.42973C4.08741 2.25079 4.06479 2.03381 3.84282 2.0014C3.58976 1.96618 3.5629 2.19021 3.50634 2.36774C3.04687 3.81476 2.58598 5.26179 2.12508 6.7074C2.09115 6.74263 2.07702 6.78349 2.08267 6.83139C1.85223 7.49221 1.63168 8.15724 1.38709 8.81242C1.25985 9.1534 1.34609 9.39856 1.63168 9.60427C3.635 11.0372 5.63691 12.4715 7.64023 13.9045C7.73071 13.9651 7.82119 14.0242 7.91167 14.0848C7.9654 14.1849 8.01912 14.1849 8.07567 14.0876C8.12233 14.0242 8.16898 13.9594 8.21564 13.896L8.21846 13.8988Z' fill='none' className={filledClassName} />
24
24
  <path d='M5.55212 6.69049C7.18221 6.69049 8.81371 6.69049 10.4438 6.6919C9.90514 8.31082 9.33963 9.9227 8.83916 11.5529C8.60164 12.3264 8.20861 13.0661 8.21427 13.9059L8.21851 13.8988C8.17185 13.9622 8.1252 14.0271 8.07854 14.0905C8.02199 14.1877 7.96686 14.1877 7.91455 14.0876C7.84951 13.8411 7.7972 13.5903 7.71803 13.3479C6.99842 11.1274 6.27456 8.90964 5.55354 6.69049H5.55212Z' fill='none' className={filledClassName} />
25
25
  <path d='M5.55205 6.6905C6.27449 8.90965 6.99834 11.1288 7.71654 13.3479C7.79571 13.5903 7.84802 13.8411 7.91306 14.0877C7.82258 14.0271 7.73209 13.9679 7.64303 13.9073C7.64303 13.7594 7.57658 13.6438 7.48468 13.5283C6.45545 12.2278 5.45309 10.9062 4.39841 9.62682C3.62931 8.69407 2.9917 7.65284 2.08405 6.83281C2.0784 6.7849 2.09112 6.74263 2.12647 6.70882C3.27021 6.70459 4.41255 6.69895 5.55629 6.69473L5.55205 6.68768V6.6905Z' fill='none' className={filledClassName} />
@@ -39,7 +39,7 @@ const SocialGitLabIcon = ({ color, size }) => {
39
39
  </svg>
40
40
  )
41
41
  break
42
- case 'medium':
42
+ case MEDIUM:
43
43
  icon = (
44
44
  <svg
45
45
  width={24}
@@ -49,7 +49,7 @@ const SocialGitLabIcon = ({ color, size }) => {
49
49
  xmlns='http://www.w3.org/2000/svg'
50
50
  className={className}
51
51
  >
52
- <g clip-path='url(#clip0_315_245)'>
52
+ <g clipPath='url(#clip0_315_245)'>
53
53
  <path d='M12.3277 20.8483L12.3213 20.8589C12.3871 20.8546 12.4507 20.8398 12.5122 20.8145C15.6508 18.7982 18.5794 16.4903 21.6183 14.3388C21.9725 14.0873 22.0849 13.747 21.9301 13.3201C21.5632 12.2993 21.209 11.2743 20.8485 10.2513C20.857 10.1795 20.8358 10.1161 20.787 10.0611C20.1275 7.95399 19.4765 5.84474 18.7978 3.74395C18.7088 3.46708 18.713 3.02748 18.3165 3.00001C17.8393 2.96619 17.8308 3.42904 17.7269 3.74606C17.0313 5.84474 16.3442 7.94553 15.6529 10.0442L15.6614 10.0336C13.2163 10.0336 10.769 10.0336 8.32388 10.0315L8.33024 10.0421C7.62618 7.9096 6.91788 5.77711 6.21806 3.64462C6.13111 3.3762 6.09718 3.05073 5.76424 3.00212C5.38464 2.94928 5.34434 3.28532 5.25952 3.55162C4.5703 5.72216 3.87896 7.8927 3.18763 10.0611C3.13673 10.114 3.11552 10.1752 3.12401 10.2471C2.77834 11.2383 2.44751 12.2359 2.08064 13.2186C1.88978 13.7301 2.01914 14.0979 2.44751 14.4064C5.4525 16.5558 8.45536 18.7073 11.4603 20.8567C11.5961 20.9476 11.7318 21.0364 11.8675 21.1273C11.9481 21.2773 12.0287 21.2773 12.1135 21.1315C12.1835 21.0364 12.2535 20.9392 12.3235 20.8441L12.3277 20.8483Z' fill='none' className={filledClassName} />
54
54
  <path d='M8.32812 10.0358C10.7733 10.0358 13.2205 10.0358 15.6656 10.0379C14.8577 12.4663 14.0094 14.8841 13.2587 17.3294C12.9024 18.4897 12.3129 19.5992 12.3213 20.8589L12.3277 20.8483C12.2577 20.9434 12.1877 21.0406 12.1178 21.1357C12.0329 21.2816 11.9502 21.2816 11.8718 21.1315C11.7742 20.7616 11.6957 20.3854 11.577 20.0219C10.4976 16.6911 9.41179 13.3645 8.33025 10.0358H8.32812Z' fill='none' className={filledClassName} />
55
55
  <path d='M8.32807 10.0358C9.41173 13.3645 10.4975 16.6932 11.5748 20.0219C11.6936 20.3854 11.772 20.7616 11.8696 21.1315C11.7339 21.0406 11.5981 20.9518 11.4645 20.861C11.4645 20.639 11.3649 20.4657 11.227 20.2924C9.68318 18.3417 8.17963 16.3593 6.59761 14.4402C5.44397 13.0411 4.48755 11.4793 3.12608 10.2492C3.1176 10.1774 3.13668 10.1139 3.1897 10.0632C4.90532 10.0569 6.61882 10.0484 8.33444 10.0421L8.32807 10.0315V10.0358Z' fill='none' className={filledClassName} />
@@ -68,7 +68,7 @@ const SocialGitLabIcon = ({ color, size }) => {
68
68
  </svg>
69
69
  )
70
70
  break
71
- case 'large':
71
+ case LARGE:
72
72
  icon = (
73
73
  <svg
74
74
  width={40}
@@ -78,7 +78,7 @@ const SocialGitLabIcon = ({ color, size }) => {
78
78
  xmlns='http://www.w3.org/2000/svg'
79
79
  className={className}
80
80
  >
81
- <g clip-path='url(#clip0_852_2190)'>
81
+ <g clipPath='url(#clip0_852_2190)'>
82
82
  <path d='M20.5462 34.7471L20.5356 34.7647C20.6451 34.7577 20.7512 34.733 20.8537 34.6908C26.0846 31.3304 30.9657 27.4838 36.0306 23.898C36.6208 23.4788 36.8081 22.9117 36.5501 22.2001C35.9387 20.4988 35.3484 18.7904 34.7476 17.0855C34.7617 16.9658 34.7263 16.8601 34.6451 16.7685C33.5458 13.2566 32.4608 9.74122 31.3297 6.2399C31.1813 5.77846 31.1884 5.04579 30.5274 5C29.7322 4.94364 29.718 5.71506 29.5449 6.24343C28.3856 9.74122 27.2404 13.2425 26.0882 16.7403L26.1023 16.7227C22.0271 16.7227 17.9483 16.7227 13.8731 16.7192L13.8837 16.7368C12.7103 13.1827 11.5298 9.62851 10.3634 6.07435C10.2185 5.627 10.162 5.08454 9.60706 5.00352C8.97439 4.91546 8.90724 5.47553 8.76586 5.91936C7.61717 9.53692 6.46494 13.1545 5.31271 16.7685C5.22788 16.8566 5.19254 16.9587 5.20668 17.0785C4.63056 18.7305 4.07919 20.3931 3.46773 22.0311C3.14963 22.8835 3.36523 23.4964 4.07919 24.0107C9.0875 27.593 14.0923 31.1789 19.1006 34.7612C19.3268 34.9127 19.553 35.0606 19.7792 35.2121C19.9135 35.4622 20.0478 35.4622 20.1892 35.2191C20.3058 35.0606 20.4225 34.8986 20.5391 34.7401L20.5462 34.7471Z' fill='none' className={filledClassName} />
83
83
  <path d='M13.8801 16.7263C17.9553 16.7263 22.0341 16.7263 26.1093 16.7298C24.7627 20.7771 23.3489 24.8068 22.0977 28.8823C21.5039 30.8161 20.5213 32.6654 20.5355 34.7647L20.5461 34.7471C20.4295 34.9056 20.3128 35.0677 20.1962 35.2262C20.0548 35.4692 19.917 35.4692 19.7862 35.2191C19.6236 34.6027 19.4928 33.9757 19.2949 33.3699C17.4959 27.8185 15.6862 22.2741 13.8837 16.7263H13.8801Z' fill='none' className={filledClassName} />
84
84
  <path d='M13.8801 16.7263C15.6862 22.2741 17.4959 27.822 19.2914 33.3699C19.4893 33.9757 19.6201 34.6027 19.7826 35.2191C19.5564 35.0677 19.3302 34.9197 19.1076 34.7683C19.1076 34.3984 18.9414 34.1096 18.7117 33.8207C16.1386 30.5695 13.6327 27.2654 10.996 24.067C9.07328 21.7352 7.47925 19.1321 5.21013 17.082C5.196 16.9623 5.22781 16.8566 5.31617 16.772C8.17553 16.7615 11.0314 16.7474 13.8907 16.7368L13.8801 16.7192V16.7263Z' fill='none' className={filledClassName} />
@@ -116,8 +116,8 @@ SocialGitLabIcon.propTypes = {
116
116
  }
117
117
 
118
118
  SocialGitLabIcon.defaultProps = {
119
- color: 'main-dark-blue',
120
- size: 'medium'
119
+ color: MAIN_DARK_BLUE,
120
+ size: MEDIUM
121
121
  }
122
122
 
123
123
  export default SocialGitLabIcon
@@ -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 SocialLinkedInIcon = ({ color, size }) => {
7
7
  const className = `${styles.noShrinkForFlex} ` + styles[`${color}`]
@@ -9,7 +9,7 @@ const SocialLinkedInIcon = ({ 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}
@@ -26,7 +26,7 @@ const SocialLinkedInIcon = ({ 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}
@@ -43,7 +43,7 @@ const SocialLinkedInIcon = ({ color, size }) => {
43
43
  </svg>
44
44
  )
45
45
  break
46
- case 'large':
46
+ case LARGE:
47
47
  icon = (
48
48
  <svg
49
49
  width={40}
@@ -79,8 +79,8 @@ SocialLinkedInIcon.propTypes = {
79
79
  }
80
80
 
81
81
  SocialLinkedInIcon.defaultProps = {
82
- color: 'main-dark-blue',
83
- size: 'medium'
82
+ color: MAIN_DARK_BLUE,
83
+ size: MEDIUM
84
84
  }
85
85
 
86
86
  export default SocialLinkedInIcon
@@ -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 SocialNPMIcon = ({ color, size }) => {
7
7
  const className = `${styles.noShrinkForFlex} ` + styles[`${color}`]
@@ -9,7 +9,7 @@ const SocialNPMIcon = ({ 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}
@@ -23,7 +23,7 @@ const SocialNPMIcon = ({ 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}
@@ -37,7 +37,7 @@ const SocialNPMIcon = ({ color, size }) => {
37
37
  </svg>
38
38
  )
39
39
  break
40
- case 'large':
40
+ case LARGE:
41
41
  icon = (
42
42
  <svg
43
43
  width={40}
@@ -71,8 +71,8 @@ SocialNPMIcon.propTypes = {
71
71
  }
72
72
 
73
73
  SocialNPMIcon.defaultProps = {
74
- color: 'main-dark-blue',
75
- size: 'medium'
74
+ color: MAIN_DARK_BLUE,
75
+ size: MEDIUM
76
76
  }
77
77
 
78
78
  export default SocialNPMIcon
@@ -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 SocialTwitterIcon = ({ color, size }) => {
7
7
  const className = `${styles.noShrinkForFlex} ` + styles[`${color}`]
@@ -9,7 +9,7 @@ const SocialTwitterIcon = ({ 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}
@@ -23,7 +23,7 @@ const SocialTwitterIcon = ({ 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}
@@ -37,7 +37,7 @@ const SocialTwitterIcon = ({ color, size }) => {
37
37
  </svg>
38
38
  )
39
39
  break
40
- case 'large':
40
+ case LARGE:
41
41
  icon = (
42
42
  <svg
43
43
  width={40}
@@ -71,8 +71,8 @@ SocialTwitterIcon.propTypes = {
71
71
  }
72
72
 
73
73
  SocialTwitterIcon.defaultProps = {
74
- color: 'main-dark-blue',
75
- size: 'medium'
74
+ color: MAIN_DARK_BLUE,
75
+ size: MEDIUM
76
76
  }
77
77
 
78
78
  export default SocialTwitterIcon
@@ -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 StopIcon = ({ 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 StopIcon = ({ 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 StopIcon = ({ 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 @@ StopIcon.propTypes = {
72
72
  }
73
73
 
74
74
  StopIcon.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 StopIcon
@@ -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 SwitchIcon = ({ 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 SwitchIcon = ({ 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}
@@ -39,7 +39,7 @@ const SwitchIcon = ({ 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}
@@ -74,8 +74,8 @@ SwitchIcon.propTypes = {
74
74
  }
75
75
 
76
76
  SwitchIcon.defaultProps = {
77
- color: 'main-dark-blue',
78
- size: 'medium'
77
+ color: MAIN_DARK_BLUE,
78
+ size: MEDIUM
79
79
  }
80
80
 
81
81
  export default SwitchIcon
@@ -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 TeamsIcon = ({ 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 TeamsIcon = ({ 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 TeamsIcon = ({ 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 @@ TeamsIcon.propTypes = {
84
84
  }
85
85
 
86
86
  TeamsIcon.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 TeamsIcon
@@ -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 TerminalIcon = ({ 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 TerminalIcon = ({ 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 TerminalIcon = ({ 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}
@@ -76,8 +76,8 @@ TerminalIcon.propTypes = {
76
76
  }
77
77
 
78
78
  TerminalIcon.defaultProps = {
79
- color: 'main-dark-blue',
80
- size: 'medium'
79
+ color: MAIN_DARK_BLUE,
80
+ size: MEDIUM
81
81
  }
82
82
 
83
83
  export default TerminalIcon
@@ -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 TwoUsersIcon = ({ 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}
@@ -25,7 +25,7 @@ const TwoUsersIcon = ({ color, size }) => {
25
25
  </svg>
26
26
  )
27
27
  break
28
- case 'medium':
28
+ case MEDIUM:
29
29
  icon = (
30
30
  <svg
31
31
  width={24}
@@ -42,7 +42,7 @@ const TwoUsersIcon = ({ color, size }) => {
42
42
  </svg>
43
43
  )
44
44
  break
45
- case 'large':
45
+ case LARGE:
46
46
  icon = (
47
47
  <svg
48
48
  width={40}
@@ -78,8 +78,8 @@ TwoUsersIcon.propTypes = {
78
78
  }
79
79
 
80
80
  TwoUsersIcon.defaultProps = {
81
- color: 'main-dark-blue',
82
- size: 'medium'
81
+ color: MAIN_DARK_BLUE,
82
+ size: MEDIUM
83
83
  }
84
84
 
85
85
  export default TwoUsersIcon
@@ -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, EXTRA_LARGE, MAIN_DARK_BLUE } from '../constants'
5
5
 
6
6
  const UpgradeIcon = ({ 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}
@@ -25,7 +25,7 @@ const UpgradeIcon = ({ color, size }) => {
25
25
  </svg>
26
26
  )
27
27
  break
28
- case 'medium':
28
+ case MEDIUM:
29
29
  icon = (
30
30
  <svg
31
31
  width={24}
@@ -41,7 +41,7 @@ const UpgradeIcon = ({ 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}
@@ -58,7 +58,7 @@ const UpgradeIcon = ({ color, size }) => {
58
58
  )
59
59
  break
60
60
 
61
- case 'extra-large':
61
+ case EXTRA_LARGE:
62
62
  icon = (
63
63
  <svg
64
64
  width={120}
@@ -111,8 +111,8 @@ UpgradeIcon.propTypes = {
111
111
  }
112
112
 
113
113
  UpgradeIcon.defaultProps = {
114
- color: 'main-dark-blue',
115
- size: 'medium'
114
+ color: MAIN_DARK_BLUE,
115
+ size: MEDIUM
116
116
  }
117
117
 
118
118
  export default UpgradeIcon
@@ -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 UserIcon = ({ 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 UserIcon = ({ 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 UserIcon = ({ 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 @@ UserIcon.propTypes = {
73
73
  }
74
74
 
75
75
  UserIcon.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 UserIcon
@@ -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 UserRemoveIcon = ({ color, size, tip }) => {
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}
@@ -28,7 +28,7 @@ const UserRemoveIcon = ({ color, size, tip }) => {
28
28
  </svg>
29
29
  )
30
30
  break
31
- case 'medium':
31
+ case MEDIUM:
32
32
  icon = (
33
33
  <svg
34
34
  width={24}
@@ -47,7 +47,7 @@ const UserRemoveIcon = ({ color, size, tip }) => {
47
47
  </svg>
48
48
  )
49
49
  break
50
- case 'large':
50
+ case LARGE:
51
51
  icon = (
52
52
  <svg
53
53
  width={40}
@@ -89,8 +89,8 @@ UserRemoveIcon.propTypes = {
89
89
  }
90
90
 
91
91
  UserRemoveIcon.defaultProps = {
92
- color: 'main-dark-blue',
93
- size: 'medium',
92
+ color: MAIN_DARK_BLUE,
93
+ size: MEDIUM,
94
94
  tip: ''
95
95
  }
96
96
 
@@ -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 UserRoleIcon = ({ color, size, tip }) => {
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 UserRoleIcon = ({ color, size, tip }) => {
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 UserRoleIcon = ({ color, size, tip }) => {
46
46
  </svg>
47
47
  )
48
48
  break
49
- case 'large':
49
+ case LARGE:
50
50
  icon = (
51
51
  <svg
52
52
  width={40}
@@ -88,8 +88,8 @@ UserRoleIcon.propTypes = {
88
88
  }
89
89
 
90
90
  UserRoleIcon.defaultProps = {
91
- color: 'main-dark-blue',
92
- size: 'medium',
91
+ color: MAIN_DARK_BLUE,
92
+ size: MEDIUM,
93
93
  tip: ''
94
94
  }
95
95
 
@@ -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 WorkspaceDynamicIcon = ({ 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 WorkspaceDynamicIcon = ({ 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 WorkspaceDynamicIcon = ({ 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 @@ WorkspaceDynamicIcon.propTypes = {
81
81
  }
82
82
 
83
83
  WorkspaceDynamicIcon.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 WorkspaceDynamicIcon