@platformatic/ui-components 0.4.0 → 0.5.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (214) hide show
  1. package/dist/assets/{index-K_bDNror.css → index-Of0we_2v.css} +1 -1
  2. package/dist/assets/index-hLMQmMDJ.js +40 -0
  3. package/dist/index.html +2 -2
  4. package/index.js +0 -2
  5. package/package.json +3 -3
  6. package/setupTests.js +1 -0
  7. package/src/components/BorderedBox.jsx +9 -20
  8. package/src/components/Button.jsx +14 -30
  9. package/src/components/ButtonFullRounded.jsx +13 -31
  10. package/src/components/ButtonOnlyIcon.jsx +13 -36
  11. package/src/components/Checkbox.jsx +5 -6
  12. package/src/components/CopyAndPaste.jsx +8 -19
  13. package/src/components/DropDown.jsx +10 -26
  14. package/src/components/FollowUs.jsx +18 -27
  15. package/src/components/HorizontalSeparator.jsx +6 -8
  16. package/src/components/InfoBox.jsx +8 -10
  17. package/src/components/ListElement.jsx +9 -11
  18. package/src/components/LoadingSpinner.jsx +1 -5
  19. package/src/components/LoadingSpinnerV2.jsx +4 -11
  20. package/src/components/LoginButton.test.jsx +0 -1
  21. package/src/components/LogoDropDown.jsx +7 -8
  22. package/src/components/Modal.jsx +11 -25
  23. package/src/components/ModalDirectional.jsx +9 -19
  24. package/src/components/ModalStepsForward.jsx +12 -24
  25. package/src/components/PlatformaticIcon.jsx +9 -21
  26. package/src/components/SearchBarV2.jsx +9 -22
  27. package/src/components/Sidebar.jsx +12 -26
  28. package/src/components/Status.jsx +5 -7
  29. package/src/components/TabbedWindow.jsx +11 -10
  30. package/src/components/TabbedWindow.module.css +4 -4
  31. package/src/components/Tag.jsx +9 -11
  32. package/src/components/TextWithLabel.jsx +7 -9
  33. package/src/components/Tooltip.jsx +8 -19
  34. package/src/components/TooltipAbsolute.jsx +10 -22
  35. package/src/components/VerticalSeparator.jsx +5 -7
  36. package/src/components/forms/Field.jsx +8 -19
  37. package/src/components/forms/Input.jsx +17 -37
  38. package/src/components/forms/InputWithSeparator.jsx +14 -31
  39. package/src/components/forms/Password.jsx +10 -18
  40. package/src/components/forms/Preview.jsx +10 -12
  41. package/src/components/forms/RadioGroup.jsx +9 -17
  42. package/src/components/forms/Select.jsx +19 -40
  43. package/src/components/forms/SelectWithInput.jsx +22 -46
  44. package/src/components/forms/TextArea.jsx +11 -25
  45. package/src/components/forms/ToggleSwitch.jsx +8 -19
  46. package/src/components/icons/APIDocsIcon.jsx +6 -7
  47. package/src/components/icons/AddIcon.jsx +6 -7
  48. package/src/components/icons/AlertIcon.jsx +6 -7
  49. package/src/components/icons/AllAppsIcon.jsx +6 -7
  50. package/src/components/icons/AllInOneIcon.jsx +6 -7
  51. package/src/components/icons/ApiCloudIcon.jsx +6 -7
  52. package/src/components/icons/ApiEmptyIcon.jsx +6 -7
  53. package/src/components/icons/ApiIcon.jsx +6 -7
  54. package/src/components/icons/ApiIconClosed.jsx +10 -6
  55. package/src/components/icons/ApiPerformanceIcon.jsx +6 -7
  56. package/src/components/icons/AppConfigurationIcon.jsx +6 -7
  57. package/src/components/icons/AppDetailsIcon.jsx +6 -7
  58. package/src/components/icons/AppEditIcon.jsx +6 -7
  59. package/src/components/icons/AppEmptyIcon.jsx +6 -7
  60. package/src/components/icons/AppIcon.jsx +6 -7
  61. package/src/components/icons/AppListIcon.jsx +6 -7
  62. package/src/components/icons/AppSettingsIcon.jsx +6 -7
  63. package/src/components/icons/AppWorkspace.jsx +10 -7
  64. package/src/components/icons/ApplicationTypeIcon.jsx +6 -7
  65. package/src/components/icons/ArrowDownFullIcon.jsx +6 -7
  66. package/src/components/icons/ArrowDownIcon.jsx +6 -7
  67. package/src/components/icons/ArrowLeftIcon.jsx +6 -7
  68. package/src/components/icons/ArrowLongLeftIcon.jsx +6 -7
  69. package/src/components/icons/ArrowLongRightIcon.jsx +6 -7
  70. package/src/components/icons/ArrowRightIcon.jsx +6 -7
  71. package/src/components/icons/ArrowUpIcon.jsx +6 -7
  72. package/src/components/icons/BellIcon.jsx +6 -7
  73. package/src/components/icons/BillingIcon.jsx +6 -7
  74. package/src/components/icons/BranchIcon.jsx +102 -0
  75. package/src/components/icons/BuiltInLoggingIcon.jsx +6 -7
  76. package/src/components/icons/CLIIcon.jsx +6 -7
  77. package/src/components/icons/Calendar1DayIcon.jsx +6 -7
  78. package/src/components/icons/Calendar7DaysIcon.jsx +6 -7
  79. package/src/components/icons/CalendarIcon.jsx +6 -7
  80. package/src/components/icons/CheckListIcon.jsx +6 -7
  81. package/src/components/icons/CircleAddIcon.jsx +6 -7
  82. package/src/components/icons/CircleArrowLeftIcon.jsx +6 -7
  83. package/src/components/icons/CircleArrowRightIcon.jsx +6 -7
  84. package/src/components/icons/CircleCheckMarkButtonIcon.jsx +6 -8
  85. package/src/components/icons/CircleCheckMarkFullIcon.jsx +6 -7
  86. package/src/components/icons/CircleCheckMarkIcon.jsx +7 -6
  87. package/src/components/icons/CircleCloseHoverIcon.jsx +6 -7
  88. package/src/components/icons/CircleCloseIcon.jsx +6 -7
  89. package/src/components/icons/CircleCopyPasteIcon.jsx +6 -7
  90. package/src/components/icons/CircleDownloadIcon.jsx +6 -7
  91. package/src/components/icons/CircleEditIcon.jsx +6 -7
  92. package/src/components/icons/CircleExclamationIcon.jsx +7 -7
  93. package/src/components/icons/CircleFullIcon.jsx +6 -7
  94. package/src/components/icons/CircleGearIcon.jsx +6 -7
  95. package/src/components/icons/CirclePlayIcon.jsx +6 -7
  96. package/src/components/icons/CircleRestartIcon.jsx +6 -7
  97. package/src/components/icons/CircleStopIcon.jsx +6 -7
  98. package/src/components/icons/CircleSubtractIcon.jsx +6 -7
  99. package/src/components/icons/CircleTwoArrowsDownIcon.jsx +6 -7
  100. package/src/components/icons/CircleTwoArrowsUpIcon.jsx +6 -7
  101. package/src/components/icons/CloseIcon.jsx +6 -7
  102. package/src/components/icons/CloudIcon.jsx +6 -7
  103. package/src/components/icons/CodeTestingIcon.jsx +6 -7
  104. package/src/components/icons/ComputerIcon.jsx +6 -7
  105. package/src/components/icons/ConfigureDatabaseIcon.jsx +6 -7
  106. package/src/components/icons/CopyPasteIcon.jsx +6 -7
  107. package/src/components/icons/CreateAppIcon.jsx +6 -7
  108. package/src/components/icons/CreditCardIcon.jsx +6 -7
  109. package/src/components/icons/DatabaseIcon.jsx +6 -7
  110. package/src/components/icons/DatabaseMigrationIcon.jsx +6 -7
  111. package/src/components/icons/DepencenciesReloadIcon.jsx +6 -7
  112. package/src/components/icons/DeploymentHistoryIcon.jsx +118 -0
  113. package/src/components/icons/EditDocumentIcon.jsx +6 -7
  114. package/src/components/icons/EditIcon.jsx +6 -7
  115. package/src/components/icons/EnlargeIcon.jsx +6 -7
  116. package/src/components/icons/EntryIcon.jsx +6 -7
  117. package/src/components/icons/EntrypointIcon.jsx +6 -7
  118. package/src/components/icons/ExpandIcon.jsx +6 -7
  119. package/src/components/icons/ExploreDocIcon.jsx +6 -7
  120. package/src/components/icons/EyeClosedIcon.jsx +6 -7
  121. package/src/components/icons/EyeOpenedIcon.jsx +6 -7
  122. package/src/components/icons/FailureRateIcon.jsx +104 -0
  123. package/src/components/icons/FolderIcon.jsx +6 -7
  124. package/src/components/icons/FoldersIcon.jsx +6 -7
  125. package/src/components/icons/GearIcon.jsx +6 -7
  126. package/src/components/icons/GenerationLoadingIcon.jsx +6 -7
  127. package/src/components/icons/GitHubRepo2Icon.jsx +6 -7
  128. package/src/components/icons/GitHubRepoIcon.jsx +6 -7
  129. package/src/components/icons/GiveOwnershipIcon.jsx +6 -7
  130. package/src/components/icons/GraphQLIcon.jsx +6 -7
  131. package/src/components/icons/ImportAppIcon.jsx +6 -7
  132. package/src/components/icons/K8SMetricsIcon.jsx +106 -0
  133. package/src/components/icons/KeyIcon.jsx +6 -7
  134. package/src/components/icons/LabelIcon.jsx +6 -7
  135. package/src/components/icons/LayersIcon.jsx +6 -7
  136. package/src/components/icons/LensIcon.jsx +6 -7
  137. package/src/components/icons/LiveIcon.jsx +6 -7
  138. package/src/components/icons/LoadingAppIcon.jsx +6 -7
  139. package/src/components/icons/LogOutIcon.jsx +7 -7
  140. package/src/components/icons/LogsRiskIcon.jsx +6 -7
  141. package/src/components/icons/MetricsIcon.jsx +6 -7
  142. package/src/components/icons/MetricsLoadingIcon.jsx +6 -7
  143. package/src/components/icons/MetricsLogsIcon.jsx +124 -0
  144. package/src/components/icons/MissingTemplateIcon.jsx +6 -7
  145. package/src/components/icons/NameAppIcon.jsx +6 -7
  146. package/src/components/icons/NoMetricsIcon.jsx +6 -7
  147. package/src/components/icons/NodeJSMetricsIcon.jsx +106 -0
  148. package/src/components/icons/NotCompliantServiceIcon.jsx +103 -0
  149. package/src/components/icons/OrganizationIcon.jsx +6 -7
  150. package/src/components/icons/OtherLogosGoogleIcon.jsx +69 -0
  151. package/src/components/icons/OutOfBoxGraphQLIcon.jsx +6 -7
  152. package/src/components/icons/OutdatedServiceIcon.jsx +105 -0
  153. package/src/components/icons/PlatformaticComposerIcon.jsx +6 -7
  154. package/src/components/icons/PlatformaticDBIcon.jsx +6 -7
  155. package/src/components/icons/PlatformaticRuntimeIcon.jsx +6 -7
  156. package/src/components/icons/PlatformaticServiceIcon.jsx +6 -7
  157. package/src/components/icons/PlayIcon.jsx +6 -7
  158. package/src/components/icons/PreviewPRIcon.jsx +6 -7
  159. package/src/components/icons/PullRequestIcon.jsx +6 -7
  160. package/src/components/icons/PullRequestLoadingIcon.jsx +6 -7
  161. package/src/components/icons/RecentAppsIcon.jsx +6 -7
  162. package/src/components/icons/RequestOwnershipIcon.jsx +6 -7
  163. package/src/components/icons/ResourceIcon.jsx +111 -0
  164. package/src/components/icons/RestartIcon.jsx +6 -7
  165. package/src/components/icons/RocketIcon.jsx +6 -7
  166. package/src/components/icons/RunningAppIcon.jsx +6 -7
  167. package/src/components/icons/RunningIcon.jsx +6 -7
  168. package/src/components/icons/SendIcon.jsx +6 -7
  169. package/src/components/icons/ServiceIcon.jsx +6 -7
  170. package/src/components/icons/SlotIcon.jsx +6 -7
  171. package/src/components/icons/SocialDiscordIcon.jsx +6 -7
  172. package/src/components/icons/SocialGitHubIcon.jsx +6 -7
  173. package/src/components/icons/SocialGitLabIcon.jsx +6 -7
  174. package/src/components/icons/SocialLinkedInIcon.jsx +6 -7
  175. package/src/components/icons/SocialNPMIcon.jsx +6 -7
  176. package/src/components/icons/SocialXIcon.jsx +6 -7
  177. package/src/components/icons/SortDownIcon.jsx +6 -7
  178. package/src/components/icons/SortIcon.jsx +6 -7
  179. package/src/components/icons/SortUpIcon.jsx +6 -7
  180. package/src/components/icons/SortableIcon.jsx +6 -7
  181. package/src/components/icons/StackablesIcon.jsx +6 -7
  182. package/src/components/icons/StackablesPluginIcon.jsx +6 -7
  183. package/src/components/icons/StackablesTemplateIcon.jsx +6 -7
  184. package/src/components/icons/StopIcon.jsx +6 -7
  185. package/src/components/icons/StoppedAppIcon.jsx +6 -7
  186. package/src/components/icons/SwitchIcon.jsx +6 -7
  187. package/src/components/icons/TeamsIcon.jsx +6 -7
  188. package/src/components/icons/TerminalIcon.jsx +6 -7
  189. package/src/components/icons/TrashIcon.jsx +6 -8
  190. package/src/components/icons/TwoUsersIcon.jsx +6 -7
  191. package/src/components/icons/UpgradeIcon.jsx +6 -7
  192. package/src/components/icons/UserComputerIcon.jsx +6 -7
  193. package/src/components/icons/UserIcon.jsx +6 -7
  194. package/src/components/icons/UserRemoveIcon.jsx +7 -7
  195. package/src/components/icons/UserRoleIcon.jsx +7 -7
  196. package/src/components/icons/WorkspaceDynamicIcon.jsx +6 -7
  197. package/src/components/icons/WorkspaceEmptyIcon.jsx +6 -7
  198. package/src/components/icons/WorkspaceFailIcon.jsx +6 -7
  199. package/src/components/icons/WorkspaceGitHubIcon.jsx +6 -7
  200. package/src/components/icons/WorkspaceLoadingIcon.jsx +6 -7
  201. package/src/components/icons/WorkspaceReadyIcon.jsx +6 -7
  202. package/src/components/icons/WorkspaceStaticIcon.jsx +6 -7
  203. package/src/components/icons/ZoomInIcon.jsx +99 -0
  204. package/src/components/icons/ZoomOutIcon.jsx +96 -0
  205. package/src/components/icons/index.js +25 -2
  206. package/src/components/layouts/Layout.jsx +4 -6
  207. package/src/components/logos/AdvancedLogo.jsx +5 -7
  208. package/src/components/logos/BasicLogo.jsx +5 -7
  209. package/src/components/logos/FreeLogo.jsx +5 -7
  210. package/src/components/logos/ProLogo.jsx +5 -7
  211. package/vitest.config.js +2 -1
  212. package/dist/assets/index-DxEcxprd.js +0 -40
  213. package/src/components/TabbedWindowV2.jsx +0 -82
  214. package/src/components/TabbedWindowV2.module.css +0 -17
@@ -0,0 +1,105 @@
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 OutdatedServiceIcon = ({
7
+ color = MAIN_DARK_BLUE,
8
+ size = MEDIUM,
9
+ disabled = false,
10
+ inactive = false
11
+ }) => {
12
+ let className = `${styles.svgClassName} ` + styles[`${color}`]
13
+ if (disabled) {
14
+ className += ` ${styles.iconDisabled}`
15
+ }
16
+ if (inactive) {
17
+ className += ` ${styles.iconInactive}`
18
+ }
19
+ let icon = <></>
20
+
21
+ switch (size) {
22
+ case SMALL:
23
+ icon = (
24
+ <svg
25
+ width={16}
26
+ height={16}
27
+ viewBox='0 0 16 16'
28
+ fill='none'
29
+ xmlns='http://www.w3.org/2000/svg'
30
+ className={className}
31
+ >
32
+ <path d='M8.85445 4.51968C8.81412 4.43803 8.82956 4.34087 8.89392 4.27392L9.29894 3.85098C9.38217 3.76443 9.38132 3.63134 9.29636 3.54561L8.53609 2.77975C8.44256 2.68503 8.28467 2.68585 8.192 2.78056L7.87708 3.10226C7.81186 3.16921 7.71061 3.19126 7.62137 3.15941L6.96578 2.92345C6.87397 2.89079 6.81304 2.80669 6.81304 2.71361V2.22453C6.81304 2.10043 6.7075 2 6.57707 2H5.42293C5.2925 2 5.18696 2.10043 5.18696 2.22453V2.71361C5.18696 2.80669 5.12603 2.89079 5.03422 2.92345L4.37863 3.15941C4.28939 3.19126 4.18814 3.16921 4.12292 3.10226L3.808 2.78056C3.71533 2.68585 3.55744 2.68585 3.46391 2.77975L2.70364 3.54561C2.61868 3.63053 2.61783 3.76443 2.70106 3.85098L3.10608 4.27392C3.16958 4.34087 3.18588 4.43722 3.14555 4.51968L2.87096 5.08306C2.83235 5.16307 2.74826 5.2137 2.65644 5.2137H2.23598C2.10555 5.2137 2 5.31412 2 5.43823V6.38372C2 6.50783 2.10555 6.60826 2.23598 6.60826H2.67704C2.77915 6.60826 2.87011 6.67113 2.90186 6.76339L3.12496 7.41413C3.1507 7.49088 3.13182 7.57498 3.07519 7.63458L2.71222 8.01588C2.62383 8.10896 2.63241 8.25348 2.73195 8.33594L3.56859 9.03241C3.6647 9.11242 3.81058 9.10508 3.89724 9.01608L4.189 8.71724C4.25249 8.65111 4.35117 8.62825 4.43956 8.65764' stroke='none' strokeLinecap='round' strokeLinejoin='round' />
33
+ <path d='M7 7H4.5L6 4L7.25 6.5' stroke='none' strokeLinecap='round' strokeLinejoin='round' />
34
+ <circle cx='10' cy='10' r='4' stroke='none' />
35
+ <path d='M8.05401 9.73612C8.03615 9.84904 8.02686 9.96504 8.02686 10.0833C8.02686 11.2339 8.90611 12.1667 9.99072 12.1667C10.3001 12.1667 10.5928 12.0908 10.8531 11.9556M11.8714 10.6851C11.9255 10.4946 11.9546 10.2926 11.9546 10.0833C11.9546 8.93274 11.0753 8 9.99072 8C9.55425 8 9.15103 8.15105 8.82499 8.40657' stroke='none' strokeLinecap='round' strokeLinejoin='round' />
36
+ <path d='M11.3496 10.0312L11.8626 10.7075L12.5001 10.1633' stroke='none' strokeLinecap='round' strokeLinejoin='round' />
37
+ <path d='M8.6543 10.2297L8.03758 9.65921L7.49977 10.3134' stroke='none' strokeLinecap='round' strokeLinejoin='round' />
38
+ </svg>
39
+ )
40
+ break
41
+ case MEDIUM:
42
+ icon = (
43
+ <svg
44
+ width={24}
45
+ height={24}
46
+ viewBox='0 0 24 24'
47
+ fill='none'
48
+ xmlns='http://www.w3.org/2000/svg'
49
+ className={className}
50
+ >
51
+ <path d='M13.2817 6.77952C13.2212 6.65705 13.2443 6.51131 13.3409 6.41088L13.9484 5.77647C14.0733 5.64664 14.072 5.44701 13.9445 5.31842L12.8041 4.16962C12.6638 4.02755 12.427 4.02877 12.288 4.17084L11.8156 4.65339C11.7178 4.75382 11.5659 4.78688 11.432 4.73912L10.4487 4.38517C10.311 4.33618 10.2196 4.21003 10.2196 4.07042V3.3368C10.2196 3.15064 10.0612 3 9.8656 3H8.1344C7.93875 3 7.78044 3.15064 7.78044 3.3368V4.07042C7.78044 4.21003 7.68905 4.33618 7.55132 4.38517L6.56795 4.73912C6.43409 4.78688 6.28221 4.75382 6.18438 4.65339L5.712 4.17084C5.57299 4.02877 5.33616 4.02877 5.19586 4.16962L4.05545 5.31842C3.92803 5.44579 3.92674 5.64664 4.05159 5.77647L4.65912 6.41088C4.75437 6.51131 4.77883 6.65582 4.71833 6.77952L4.30645 7.62459C4.24853 7.74461 4.12239 7.82054 3.98466 7.82054H3.35396C3.15832 7.82054 3 7.97118 3 8.15734V9.57558C3 9.76174 3.15832 9.91238 3.35396 9.91238H4.01555C4.16872 9.91238 4.30516 10.0067 4.35278 10.1451L4.68744 11.1212C4.72605 11.2363 4.69774 11.3625 4.61279 11.4519L4.06833 12.0238C3.93575 12.1634 3.94862 12.3802 4.09793 12.5039L5.35289 13.5486C5.49705 13.6686 5.71586 13.6576 5.84587 13.5241L6.28349 13.0759C6.37874 12.9767 6.52676 12.9424 6.65934 12.9865' stroke='none' strokeWidth={1.5} strokeLinecap='round' strokeLinejoin='round' />
52
+ <path d='M10.5 10.5H6.75L9 6L10.875 9.75' stroke='none' strokeWidth={1.5} strokeLinecap='round' strokeLinejoin='round' />
53
+ <circle cx='15' cy='15' r='6' stroke='none' strokeWidth={1.5} />
54
+ <path d='M12.0813 14.6042C12.0545 14.7736 12.0405 14.9476 12.0405 15.125C12.0405 16.8509 13.3594 18.25 14.9863 18.25C15.4504 18.25 15.8895 18.1362 16.28 17.9334M17.8074 16.0277C17.8885 15.7419 17.9321 15.4389 17.9321 15.125C17.9321 13.3991 16.6132 12 14.9863 12C14.3316 12 13.7268 12.2266 13.2377 12.6098' stroke='none' strokeWidth={1.5} strokeLinecap='round' strokeLinejoin='round' />
55
+ <path d='M17.0239 15.0469L17.7935 16.0613L18.7497 15.2449' stroke='none' strokeWidth={1.5} strokeLinecap='round' strokeLinejoin='round' />
56
+ <path d='M12.9819 15.3445L12.0569 14.4887L11.2501 15.47' stroke='none' strokeWidth={1.5} strokeLinecap='round' strokeLinejoin='round' />
57
+ </svg>
58
+ )
59
+ break
60
+ case LARGE:
61
+ icon = (
62
+ <svg
63
+ width={40}
64
+ height={40}
65
+ viewBox='0 0 40 40'
66
+ fill='none'
67
+ xmlns='http://www.w3.org/2000/svg'
68
+ className={className}
69
+ >
70
+ <path d='M22.1361 11.2992C22.0353 11.0951 22.0739 10.8522 22.2348 10.6848L23.2473 9.62744C23.4554 9.41107 23.4533 9.07836 23.2409 8.86403L21.3402 6.94936C21.1064 6.71258 20.7117 6.71462 20.48 6.95141L19.6927 7.75565C19.5297 7.92303 19.2765 7.97814 19.0534 7.89853L17.4145 7.30862C17.1849 7.22697 17.0326 7.01672 17.0326 6.78403V5.56134C17.0326 5.25107 16.7687 5 16.4427 5H13.5573C13.2313 5 12.9674 5.25107 12.9674 5.56134V6.78403C12.9674 7.01672 12.8151 7.22697 12.5855 7.30862L10.9466 7.89853C10.7235 7.97814 10.4703 7.92303 10.3073 7.75565L9.52 6.95141C9.28832 6.71462 8.8936 6.71462 8.65977 6.94936L6.75909 8.86403C6.54671 9.07631 6.54457 9.41107 6.75265 9.62744L7.7652 10.6848C7.92395 10.8522 7.96471 11.093 7.86388 11.2992L7.17741 12.7076C7.08088 12.9077 6.87064 13.0342 6.6411 13.0342H5.58994C5.26386 13.0342 5 13.2853 5 13.5956V15.9593C5 16.2696 5.26386 16.5206 5.58994 16.5206H6.69259C6.94787 16.5206 7.17527 16.6778 7.25464 16.9085L7.8124 18.5353C7.87676 18.7272 7.82956 18.9374 7.68798 19.0865L6.78054 20.0397C6.55958 20.2724 6.58104 20.6337 6.82988 20.8399L8.92148 22.581C9.16175 22.7811 9.52644 22.7627 9.74311 22.5402L10.4725 21.7931C10.6312 21.6278 10.8779 21.5706 11.0989 21.6441' stroke='none' strokeWidth={2} strokeLinecap='round' strokeLinejoin='round' />
71
+ <path d='M17.5 17.5H11.25L15 10L18.125 16.25' stroke='none' strokeWidth={2} strokeLinecap='round' strokeLinejoin='round' />
72
+ <circle cx='25' cy='25' r='10' stroke='none' strokeWidth={2} />
73
+ <path d='M20.1353 24.3403C20.0906 24.6226 20.0674 24.9126 20.0674 25.2084C20.0674 28.0849 22.2655 30.4167 24.977 30.4167C25.7505 30.4167 26.4823 30.227 27.1331 29.8889M29.6788 26.7128C29.814 26.2365 29.8867 25.7314 29.8867 25.2084C29.8867 22.3319 27.6886 20 24.977 20C23.8859 20 22.8778 20.3776 22.0627 21.0164' stroke='none' strokeWidth={2} strokeLinecap='round' strokeLinejoin='round' />
74
+ <path d='M28.3735 25.0781L29.6561 26.7688L31.2498 25.4082' stroke='none' strokeWidth={2} strokeLinecap='round' strokeLinejoin='round' />
75
+ <path d='M21.6362 25.5742L20.0944 24.1479L18.7499 25.7835' stroke='none' strokeWidth={2} strokeLinecap='round' strokeLinejoin='round' />
76
+ </svg>
77
+ )
78
+ break
79
+
80
+ default:
81
+ break
82
+ }
83
+ return icon
84
+ }
85
+
86
+ OutdatedServiceIcon.propTypes = {
87
+ /**
88
+ * color of text, icon and borders
89
+ */
90
+ color: PropTypes.oneOf(COLORS_ICON),
91
+ /**
92
+ * Size
93
+ */
94
+ size: PropTypes.oneOf(SIZES),
95
+ /**
96
+ * disabled
97
+ */
98
+ disabled: PropTypes.bool,
99
+ /**
100
+ * inactive
101
+ */
102
+ inactive: PropTypes.bool
103
+ }
104
+
105
+ export default OutdatedServiceIcon
@@ -3,7 +3,12 @@ import PropTypes from 'prop-types'
3
3
  import styles from './Icons.module.css'
4
4
  import { COLORS_ICON, SIZES, SMALL, MEDIUM, LARGE, MAIN_DARK_BLUE } from '../constants'
5
5
 
6
- const PlatformaticComposerIcon = ({ color, size, disabled, inactive }) => {
6
+ const PlatformaticComposerIcon = ({
7
+ color = MAIN_DARK_BLUE,
8
+ size = MEDIUM,
9
+ disabled = false,
10
+ inactive = false
11
+ }) => {
7
12
  let className = `${styles.svgClassName} ` + styles[`${color}`]
8
13
  if (disabled) {
9
14
  className += ` ${styles.iconDisabled}`
@@ -84,11 +89,5 @@ PlatformaticComposerIcon.propTypes = {
84
89
  */
85
90
  inactive: PropTypes.bool
86
91
  }
87
- PlatformaticComposerIcon.defaultProps = {
88
- color: MAIN_DARK_BLUE,
89
- size: MEDIUM,
90
- disabled: false,
91
- inactive: false
92
- }
93
92
 
94
93
  export default PlatformaticComposerIcon
@@ -3,7 +3,12 @@ import PropTypes from 'prop-types'
3
3
  import styles from './Icons.module.css'
4
4
  import { COLORS_ICON, SIZES, SMALL, MEDIUM, LARGE, MAIN_DARK_BLUE } from '../constants'
5
5
 
6
- const PlatformaticDBIcon = ({ color, size, disabled, inactive }) => {
6
+ const PlatformaticDBIcon = ({
7
+ color = MAIN_DARK_BLUE,
8
+ size = MEDIUM,
9
+ disabled = false,
10
+ inactive = false
11
+ }) => {
7
12
  let className = `${styles.svgClassName} ` + styles[`${color}`]
8
13
  if (disabled) {
9
14
  className += ` ${styles.iconDisabled}`
@@ -104,11 +109,5 @@ PlatformaticDBIcon.propTypes = {
104
109
  */
105
110
  inactive: PropTypes.bool
106
111
  }
107
- PlatformaticDBIcon.defaultProps = {
108
- color: MAIN_DARK_BLUE,
109
- size: MEDIUM,
110
- disabled: false,
111
- inactive: false
112
- }
113
112
 
114
113
  export default PlatformaticDBIcon
@@ -3,7 +3,12 @@ import PropTypes from 'prop-types'
3
3
  import styles from './Icons.module.css'
4
4
  import { COLORS_ICON, SIZES, SMALL, MEDIUM, LARGE, MAIN_DARK_BLUE } from '../constants'
5
5
 
6
- const PlatformaticRuntimeIcon = ({ color, size, disabled, inactive }) => {
6
+ const PlatformaticRuntimeIcon = ({
7
+ color = MAIN_DARK_BLUE,
8
+ size = MEDIUM,
9
+ disabled = false,
10
+ inactive = false
11
+ }) => {
7
12
  let className = `${styles.svgClassName} ` + styles[`${color}`]
8
13
  if (disabled) {
9
14
  className += ` ${styles.iconDisabled}`
@@ -96,11 +101,5 @@ PlatformaticRuntimeIcon.propTypes = {
96
101
  */
97
102
  inactive: PropTypes.bool
98
103
  }
99
- PlatformaticRuntimeIcon.defaultProps = {
100
- color: MAIN_DARK_BLUE,
101
- size: MEDIUM,
102
- disabled: false,
103
- inactive: false
104
- }
105
104
 
106
105
  export default PlatformaticRuntimeIcon
@@ -3,7 +3,12 @@ import PropTypes from 'prop-types'
3
3
  import styles from './Icons.module.css'
4
4
  import { COLORS_ICON, SIZES, SMALL, MEDIUM, LARGE, MAIN_DARK_BLUE } from '../constants'
5
5
 
6
- const PlatformaticServiceIcon = ({ color, size, disabled, inactive }) => {
6
+ const PlatformaticServiceIcon = ({
7
+ color = MAIN_DARK_BLUE,
8
+ size = MEDIUM,
9
+ disabled = false,
10
+ inactive = false
11
+ }) => {
7
12
  let className = `${styles.svgClassName} ` + styles[`${color}`]
8
13
  if (disabled) {
9
14
  className += ` ${styles.iconDisabled}`
@@ -96,11 +101,5 @@ PlatformaticServiceIcon.propTypes = {
96
101
  */
97
102
  inactive: PropTypes.bool
98
103
  }
99
- PlatformaticServiceIcon.defaultProps = {
100
- color: MAIN_DARK_BLUE,
101
- size: MEDIUM,
102
- disabled: false,
103
- inactive: false
104
- }
105
104
 
106
105
  export default PlatformaticServiceIcon
@@ -3,7 +3,12 @@ import PropTypes from 'prop-types'
3
3
  import styles from './Icons.module.css'
4
4
  import { COLORS_ICON, SIZES, SMALL, MEDIUM, LARGE, MAIN_DARK_BLUE } from '../constants'
5
5
 
6
- const PlayIcon = ({ color, size, disabled, inactive }) => {
6
+ const PlayIcon = ({
7
+ color = MAIN_DARK_BLUE,
8
+ size = MEDIUM,
9
+ disabled = false,
10
+ inactive = false
11
+ }) => {
7
12
  let className = `${styles.svgClassName} ` + styles[`${color}`]
8
13
  if (disabled) {
9
14
  className += ` ${styles.iconDisabled}`
@@ -81,11 +86,5 @@ PlayIcon.propTypes = {
81
86
  */
82
87
  inactive: PropTypes.bool
83
88
  }
84
- PlayIcon.defaultProps = {
85
- color: MAIN_DARK_BLUE,
86
- size: MEDIUM,
87
- disabled: false,
88
- inactive: false
89
- }
90
89
 
91
90
  export default PlayIcon
@@ -3,7 +3,12 @@ import PropTypes from 'prop-types'
3
3
  import styles from './Icons.module.css'
4
4
  import { COLORS_ICON, SIZES, SMALL, MEDIUM, LARGE, MAIN_DARK_BLUE } from '../constants'
5
5
 
6
- const PreviewPRIcon = ({ color, size, disabled, inactive }) => {
6
+ const PreviewPRIcon = ({
7
+ color = MAIN_DARK_BLUE,
8
+ size = MEDIUM,
9
+ disabled = false,
10
+ inactive = false
11
+ }) => {
7
12
  let className = `${styles.svgClassName} ` + styles[`${color}`]
8
13
  if (disabled) {
9
14
  className += ` ${styles.iconDisabled}`
@@ -105,11 +110,5 @@ PreviewPRIcon.propTypes = {
105
110
  */
106
111
  inactive: PropTypes.bool
107
112
  }
108
- PreviewPRIcon.defaultProps = {
109
- color: MAIN_DARK_BLUE,
110
- size: MEDIUM,
111
- disabled: false,
112
- inactive: false
113
- }
114
113
 
115
114
  export default PreviewPRIcon
@@ -3,7 +3,12 @@ import PropTypes from 'prop-types'
3
3
  import styles from './Icons.module.css'
4
4
  import { COLORS_ICON, SIZES, SMALL, MEDIUM, LARGE, MAIN_DARK_BLUE } from '../constants'
5
5
 
6
- const PullRequestIcon = ({ color, size, disabled, inactive }) => {
6
+ const PullRequestIcon = ({
7
+ color = MAIN_DARK_BLUE,
8
+ size = MEDIUM,
9
+ disabled = false,
10
+ inactive = false
11
+ }) => {
7
12
  let className = `${styles.svgClassName} ` + styles[`${color}`]
8
13
  if (disabled) {
9
14
  className += ` ${styles.iconDisabled}`
@@ -98,11 +103,5 @@ PullRequestIcon.propTypes = {
98
103
  */
99
104
  inactive: PropTypes.bool
100
105
  }
101
- PullRequestIcon.defaultProps = {
102
- color: MAIN_DARK_BLUE,
103
- size: MEDIUM,
104
- disabled: false,
105
- inactive: false
106
- }
107
106
 
108
107
  export default PullRequestIcon
@@ -3,7 +3,12 @@ import PropTypes from 'prop-types'
3
3
  import styles from './Icons.module.css'
4
4
  import { COLORS_ICON, SIZES, MEDIUM, EXTRA_LARGE, MAIN_DARK_BLUE } from '../constants'
5
5
 
6
- const PullRequestLoadingIcon = ({ color, size, disabled, inactive }) => {
6
+ const PullRequestLoadingIcon = ({
7
+ color = MAIN_DARK_BLUE,
8
+ size = MEDIUM,
9
+ disabled = false,
10
+ inactive = false
11
+ }) => {
7
12
  let className = `${styles.svgClassName} ` + styles[`${color}`]
8
13
  if (disabled) {
9
14
  className += ` ${styles.iconDisabled}`
@@ -65,11 +70,5 @@ PullRequestLoadingIcon.propTypes = {
65
70
  */
66
71
  inactive: PropTypes.bool
67
72
  }
68
- PullRequestLoadingIcon.defaultProps = {
69
- color: MAIN_DARK_BLUE,
70
- size: MEDIUM,
71
- disabled: false,
72
- inactive: false
73
- }
74
73
 
75
74
  export default PullRequestLoadingIcon
@@ -3,7 +3,12 @@ import PropTypes from 'prop-types'
3
3
  import styles from './Icons.module.css'
4
4
  import { COLORS_ICON, SIZES, SMALL, MEDIUM, LARGE, MAIN_DARK_BLUE } from '../constants'
5
5
 
6
- const RecentAppsIcon = ({ color, size, disabled, inactive }) => {
6
+ const RecentAppsIcon = ({
7
+ color = MAIN_DARK_BLUE,
8
+ size = MEDIUM,
9
+ disabled = false,
10
+ inactive = false
11
+ }) => {
7
12
  let className = `${styles.svgClassName} ` + styles[`${color}`]
8
13
  if (disabled) {
9
14
  className += ` ${styles.iconDisabled}`
@@ -104,11 +109,5 @@ RecentAppsIcon.propTypes = {
104
109
  */
105
110
  inactive: PropTypes.bool
106
111
  }
107
- RecentAppsIcon.defaultProps = {
108
- color: MAIN_DARK_BLUE,
109
- size: MEDIUM,
110
- disabled: false,
111
- inactive: false
112
- }
113
112
 
114
113
  export default RecentAppsIcon
@@ -3,7 +3,12 @@ import PropTypes from 'prop-types'
3
3
  import styles from './Icons.module.css'
4
4
  import { COLORS_ICON, SIZES, SMALL, MEDIUM, LARGE, MAIN_DARK_BLUE } from '../constants'
5
5
 
6
- const RequestOwnershipIcon = ({ color, size, disabled, inactive }) => {
6
+ const RequestOwnershipIcon = ({
7
+ color = MAIN_DARK_BLUE,
8
+ size = MEDIUM,
9
+ disabled = false,
10
+ inactive = false
11
+ }) => {
7
12
  let className = `${styles.svgClassName} ` + styles[`${color}`]
8
13
  if (disabled) {
9
14
  className += ` ${styles.iconDisabled}`
@@ -89,11 +94,5 @@ RequestOwnershipIcon.propTypes = {
89
94
  */
90
95
  inactive: PropTypes.bool
91
96
  }
92
- RequestOwnershipIcon.defaultProps = {
93
- color: MAIN_DARK_BLUE,
94
- size: MEDIUM,
95
- disabled: false,
96
- inactive: false
97
- }
98
97
 
99
98
  export default RequestOwnershipIcon
@@ -0,0 +1,111 @@
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 ResourceIcon = ({
7
+ color = MAIN_DARK_BLUE,
8
+ size = MEDIUM,
9
+ disabled = false,
10
+ inactive = false
11
+ }) => {
12
+ let className = `${styles.svgClassName} ` + styles[`${color}`]
13
+ if (disabled) {
14
+ className += ` ${styles.iconDisabled}`
15
+ }
16
+ if (inactive) {
17
+ className += ` ${styles.iconInactive}`
18
+ }
19
+ let icon = <></>
20
+
21
+ switch (size) {
22
+ case SMALL:
23
+ icon = (
24
+ <svg
25
+ width={16}
26
+ height={16}
27
+ viewBox='0 0 16 16'
28
+ fill='none'
29
+ xmlns='http://www.w3.org/2000/svg'
30
+ className={className}
31
+ >
32
+ <path d='M7 5V3C7 2.44772 6.55228 2 6 2H3C2.44772 2 2 2.44772 2 3V6C2 6.55228 2.44772 7 3 7H5.125' stroke='none' />
33
+ <path d='M9 11.9167L9 13C9 13.5523 9.44771 14 10 14L13 14C13.5523 14 14 13.5523 14 13L14 10C14 9.44772 13.5523 9 13 9L10.875 9' stroke='none' />
34
+ <path d='M11 7L13 7C13.5523 7 14 6.55228 14 6L14 3C14 2.44772 13.5523 2 13 2L10 2C9.44772 2 9 2.44772 9 3L9 4.5' stroke='none' />
35
+ <path d='M5 9L3 9C2.44772 9 2 9.44772 2 10L2 13C2 13.5523 2.44771 14 3 14L6 14C6.55228 14 7 13.5523 7 13L7 11.5' stroke='none' />
36
+ <rect x='5' y='5' width='6' height='7' rx='1' stroke='none' />
37
+ <path d='M6.39355 6.40991H9.5' stroke='none' strokeLinecap='round' strokeLinejoin='round' />
38
+ <path d='M6.39355 8.37695H9.5' stroke='none' strokeLinecap='round' strokeLinejoin='round' />
39
+ <path d='M6.39355 10.3442H9.5' stroke='none' strokeLinecap='round' strokeLinejoin='round' />
40
+ </svg>
41
+ )
42
+ break
43
+ case MEDIUM:
44
+ icon = (
45
+ <svg
46
+ width={24}
47
+ height={24}
48
+ viewBox='0 0 24 24'
49
+ fill='none'
50
+ xmlns='http://www.w3.org/2000/svg'
51
+ className={className}
52
+ >
53
+ <path d='M10.5 7.5V4C10.5 3.44772 10.0523 3 9.5 3H4C3.44772 3 3 3.44772 3 4V9.5C3 10.0523 3.44772 10.5 4 10.5H7.6875' stroke='none' strokeWidth={1.5} />
54
+ <path d='M13.5 17.875L13.5 20C13.5 20.5523 13.9477 21 14.5 21L20 21C20.5523 21 21 20.5523 21 20L21 14.5C21 13.9477 20.5523 13.5 20 13.5L16.3125 13.5' stroke='none' strokeWidth={1.5} />
55
+ <path d='M16.5 10.5L20 10.5C20.5523 10.5 21 10.0523 21 9.5L21 4C21 3.44772 20.5523 3 20 3L14.5 3C13.9477 3 13.5 3.44772 13.5 4L13.5 6.75' stroke='none' strokeWidth={1.5} />
56
+ <path d='M7.5 13.5L4 13.5C3.44772 13.5 3 13.9477 3 14.5L3 20C3 20.5523 3.44771 21 4 21L9.5 21C10.0523 21 10.5 20.5523 10.5 20L10.5 17.25' stroke='none' strokeWidth={1.5} />
57
+ <rect x='7.5' y='7.5' width='9' height='10.5' rx='1' stroke='none' strokeWidth={1.5} />
58
+ <path d='M9.59033 9.61475H14.25' stroke='none' strokeWidth={1.5} strokeLinecap='round' strokeLinejoin='round' />
59
+ <path d='M9.59033 12.5654H14.25' stroke='none' strokeWidth={1.5} strokeLinecap='round' strokeLinejoin='round' />
60
+ <path d='M9.59033 15.5164H14.25' stroke='none' strokeWidth={1.5} strokeLinecap='round' strokeLinejoin='round' />
61
+ </svg>
62
+ )
63
+ break
64
+ case LARGE:
65
+ icon = (
66
+ <svg
67
+ width={40}
68
+ height={40}
69
+ viewBox='0 0 40 40'
70
+ fill='none'
71
+ xmlns='http://www.w3.org/2000/svg'
72
+ className={className}
73
+ >
74
+ <path d='M17.5 12.5V6C17.5 5.44772 17.0523 5 16.5 5H6C5.44772 5 5 5.44772 5 6V16.5C5 17.0523 5.44772 17.5 6 17.5H12.8125' stroke='none' strokeWidth={2} />
75
+ <path d='M22.5 29.7917L22.5 34C22.5 34.5523 22.9477 35 23.5 35L34 35C34.5523 35 35 34.5523 35 34L35 23.5C35 22.9477 34.5523 22.5 34 22.5L27.1875 22.5' stroke='none' strokeWidth={2} />
76
+ <path d='M27.5 17.5L34 17.5C34.5523 17.5 35 17.0523 35 16.5L35 6C35 5.44772 34.5523 5 34 5L23.5 5C22.9477 5 22.5 5.44772 22.5 6L22.5 12.5' stroke='none' strokeWidth={2} />
77
+ <path d='M12.5 22.5L6 22.5C5.44772 22.5 5 22.9477 5 23.5L5 34C5 34.5523 5.44771 35 6 35L16.5 35C17.0523 35 17.5 34.5523 17.5 34L17.5 30' stroke='none' strokeWidth={2} />
78
+ <rect x='12.5' y='12.5' width='15' height='17.5' rx='1' stroke='none' strokeWidth={2} />
79
+ <path d='M15.9839 16.0249H23.75' stroke='none' strokeWidth={2} strokeLinecap='round' strokeLinejoin='round' />
80
+ <path d='M15.9839 20.9424H23.75' stroke='none' strokeWidth={2} strokeLinecap='round' strokeLinejoin='round' />
81
+ <path d='M15.9839 25.8606H23.75' stroke='none' strokeWidth={2} strokeLinecap='round' strokeLinejoin='round' />
82
+ </svg>
83
+ )
84
+ break
85
+
86
+ default:
87
+ break
88
+ }
89
+ return icon
90
+ }
91
+
92
+ ResourceIcon.propTypes = {
93
+ /**
94
+ * color of text, icon and borders
95
+ */
96
+ color: PropTypes.oneOf(COLORS_ICON),
97
+ /**
98
+ * Size
99
+ */
100
+ size: PropTypes.oneOf(SIZES),
101
+ /**
102
+ * disabled
103
+ */
104
+ disabled: PropTypes.bool,
105
+ /**
106
+ * inactive
107
+ */
108
+ inactive: PropTypes.bool
109
+ }
110
+
111
+ export default ResourceIcon
@@ -3,7 +3,12 @@ import PropTypes from 'prop-types'
3
3
  import styles from './Icons.module.css'
4
4
  import { COLORS_ICON, SIZES, SMALL, MEDIUM, LARGE, MAIN_DARK_BLUE } from '../constants'
5
5
 
6
- const RestartIcon = ({ color, size, disabled, inactive }) => {
6
+ const RestartIcon = ({
7
+ color = MAIN_DARK_BLUE,
8
+ size = MEDIUM,
9
+ disabled = false,
10
+ inactive = false
11
+ }) => {
7
12
  let className = `${styles.svgClassName} ` + styles[`${color}`]
8
13
  if (disabled) {
9
14
  className += ` ${styles.iconDisabled}`
@@ -84,11 +89,5 @@ RestartIcon.propTypes = {
84
89
  */
85
90
  inactive: PropTypes.bool
86
91
  }
87
- RestartIcon.defaultProps = {
88
- color: MAIN_DARK_BLUE,
89
- size: MEDIUM,
90
- disabled: false,
91
- inactive: false
92
- }
93
92
 
94
93
  export default RestartIcon
@@ -3,7 +3,12 @@ import PropTypes from 'prop-types'
3
3
  import styles from './Icons.module.css'
4
4
  import { COLORS_ICON, SIZES, SMALL, MEDIUM, LARGE, MAIN_DARK_BLUE } from '../constants'
5
5
 
6
- const RocketIcon = ({ color, size, disabled, inactive }) => {
6
+ const RocketIcon = ({
7
+ color = MAIN_DARK_BLUE,
8
+ size = MEDIUM,
9
+ disabled = false,
10
+ inactive = false
11
+ }) => {
7
12
  let className = `${styles.svgClassName} ` + styles[`${color}`]
8
13
  if (disabled) {
9
14
  className += ` ${styles.iconDisabled}`
@@ -96,11 +101,5 @@ RocketIcon.propTypes = {
96
101
  */
97
102
  inactive: PropTypes.bool
98
103
  }
99
- RocketIcon.defaultProps = {
100
- color: MAIN_DARK_BLUE,
101
- size: MEDIUM,
102
- disabled: false,
103
- inactive: false
104
- }
105
104
 
106
105
  export default RocketIcon
@@ -3,7 +3,12 @@ import PropTypes from 'prop-types'
3
3
  import styles from './Icons.module.css'
4
4
  import { COLORS_ICON, LARGE, MAIN_DARK_BLUE, MEDIUM, SIZES, SMALL } from '../constants'
5
5
 
6
- const RunningAppIcon = ({ color, size, disabled, inactive }) => {
6
+ const RunningAppIcon = ({
7
+ color = MAIN_DARK_BLUE,
8
+ size = MEDIUM,
9
+ disabled = false,
10
+ inactive = false
11
+ }) => {
7
12
  let className = `${styles.svgClassName} ` + styles[`${color}`]
8
13
  if (disabled) {
9
14
  className += ` ${styles.iconDisabled}`
@@ -93,11 +98,5 @@ RunningAppIcon.propTypes = {
93
98
  */
94
99
  inactive: PropTypes.bool
95
100
  }
96
- RunningAppIcon.defaultProps = {
97
- color: MAIN_DARK_BLUE,
98
- size: MEDIUM,
99
- disabled: false,
100
- inactive: false
101
- }
102
101
 
103
102
  export default RunningAppIcon
@@ -3,7 +3,12 @@ import PropTypes from 'prop-types'
3
3
  import styles from './Icons.module.css'
4
4
  import { COLORS_ICON, SIZES, SMALL, MEDIUM, LARGE, MAIN_DARK_BLUE } from '../constants'
5
5
 
6
- const RunningIcon = ({ color, size, disabled, inactive }) => {
6
+ const RunningIcon = ({
7
+ color = MAIN_DARK_BLUE,
8
+ size = MEDIUM,
9
+ disabled = false,
10
+ inactive = false
11
+ }) => {
7
12
  let className = `${styles.svgClassName} ` + styles[`${color}`]
8
13
  if (disabled) {
9
14
  className += ` ${styles.iconDisabled}`
@@ -88,11 +93,5 @@ RunningIcon.propTypes = {
88
93
  */
89
94
  inactive: PropTypes.bool
90
95
  }
91
- RunningIcon.defaultProps = {
92
- color: MAIN_DARK_BLUE,
93
- size: MEDIUM,
94
- disabled: false,
95
- inactive: false
96
- }
97
96
 
98
97
  export default RunningIcon
@@ -3,7 +3,12 @@ import PropTypes from 'prop-types'
3
3
  import styles from './Icons.module.css'
4
4
  import { COLORS_ICON, SIZES, SMALL, MEDIUM, LARGE, MAIN_DARK_BLUE } from '../constants'
5
5
 
6
- const SendIcon = ({ color, size, disabled, inactive }) => {
6
+ const SendIcon = ({
7
+ color = MAIN_DARK_BLUE,
8
+ size = MEDIUM,
9
+ disabled = false,
10
+ inactive = false
11
+ }) => {
7
12
  let className = `${styles.svgClassName} ` + styles[`${color}`]
8
13
  if (disabled) {
9
14
  className += ` ${styles.iconDisabled}`
@@ -81,11 +86,5 @@ SendIcon.propTypes = {
81
86
  */
82
87
  inactive: PropTypes.bool
83
88
  }
84
- SendIcon.defaultProps = {
85
- color: MAIN_DARK_BLUE,
86
- size: MEDIUM,
87
- disabled: false,
88
- inactive: false
89
- }
90
89
 
91
90
  export default SendIcon
@@ -3,7 +3,12 @@ import PropTypes from 'prop-types'
3
3
  import styles from './Icons.module.css'
4
4
  import { COLORS_ICON, SIZES, SMALL, MEDIUM, LARGE, MAIN_DARK_BLUE } from '../constants'
5
5
 
6
- const ServiceIcon = ({ color, size, disabled, inactive }) => {
6
+ const ServiceIcon = ({
7
+ color = MAIN_DARK_BLUE,
8
+ size = MEDIUM,
9
+ disabled = false,
10
+ inactive = false
11
+ }) => {
7
12
  let className = `${styles.svgClassName} ` + styles[`${color}`]
8
13
  if (disabled) {
9
14
  className += ` ${styles.iconDisabled}`
@@ -94,11 +99,5 @@ ServiceIcon.propTypes = {
94
99
  */
95
100
  inactive: PropTypes.bool
96
101
  }
97
- ServiceIcon.defaultProps = {
98
- color: MAIN_DARK_BLUE,
99
- size: MEDIUM,
100
- disabled: false,
101
- inactive: false
102
- }
103
102
 
104
103
  export default ServiceIcon
@@ -3,7 +3,12 @@ import PropTypes from 'prop-types'
3
3
  import styles from './Icons.module.css'
4
4
  import { COLORS_ICON, SIZES, SMALL, MEDIUM, LARGE, MAIN_DARK_BLUE } from '../constants'
5
5
 
6
- const SlotIcon = ({ color, size, disabled, inactive }) => {
6
+ const SlotIcon = ({
7
+ color = MAIN_DARK_BLUE,
8
+ size = MEDIUM,
9
+ disabled = false,
10
+ inactive = false
11
+ }) => {
7
12
  let className = `${styles.svgClassName} ` + styles[`${color}`]
8
13
  if (disabled) {
9
14
  className += ` ${styles.iconDisabled}`
@@ -93,11 +98,5 @@ SlotIcon.propTypes = {
93
98
  */
94
99
  inactive: PropTypes.bool
95
100
  }
96
- SlotIcon.defaultProps = {
97
- color: MAIN_DARK_BLUE,
98
- size: MEDIUM,
99
- disabled: false,
100
- inactive: false
101
- }
102
101
 
103
102
  export default SlotIcon