@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
@@ -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 AppEditIcon = ({ color, size, disabled, inactive }) => {
6
+ const AppEditIcon = ({
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 @@ AppEditIcon.propTypes = {
93
98
  */
94
99
  inactive: PropTypes.bool
95
100
  }
96
- AppEditIcon.defaultProps = {
97
- color: MAIN_DARK_BLUE,
98
- size: MEDIUM,
99
- disabled: false,
100
- inactive: false
101
- }
102
101
 
103
102
  export default AppEditIcon
@@ -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 AppEmptyIcon = ({ color, size, disabled, inactive }) => {
6
+ const AppEmptyIcon = ({
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}`
@@ -58,11 +63,5 @@ AppEmptyIcon.propTypes = {
58
63
  */
59
64
  inactive: PropTypes.bool
60
65
  }
61
- AppEmptyIcon.defaultProps = {
62
- color: MAIN_DARK_BLUE,
63
- size: MEDIUM,
64
- disabled: false,
65
- inactive: false
66
- }
67
66
 
68
67
  export default AppEmptyIcon
@@ -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 AppIcon = ({ color, size, disabled, inactive }) => {
6
+ const AppIcon = ({
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}`
@@ -82,11 +87,5 @@ AppIcon.propTypes = {
82
87
  */
83
88
  inactive: PropTypes.bool
84
89
  }
85
- AppIcon.defaultProps = {
86
- color: MAIN_DARK_BLUE,
87
- size: MEDIUM,
88
- disabled: false,
89
- inactive: false
90
- }
91
90
 
92
91
  export default AppIcon
@@ -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 AppListIcon = ({ color, size, disabled, inactive }) => {
6
+ const AppListIcon = ({
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}`
@@ -109,11 +114,5 @@ AppListIcon.propTypes = {
109
114
  */
110
115
  inactive: PropTypes.bool
111
116
  }
112
- AppListIcon.defaultProps = {
113
- color: MAIN_DARK_BLUE,
114
- size: MEDIUM,
115
- disabled: false,
116
- inactive: false
117
- }
118
117
 
119
118
  export default AppListIcon
@@ -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 AppSettingsIcon = ({ color, size, disabled, inactive }) => {
6
+ const AppSettingsIcon = ({
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}`
@@ -87,11 +92,5 @@ AppSettingsIcon.propTypes = {
87
92
  */
88
93
  inactive: PropTypes.bool
89
94
  }
90
- AppSettingsIcon.defaultProps = {
91
- color: MAIN_DARK_BLUE,
92
- size: MEDIUM,
93
- disabled: false,
94
- inactive: false
95
- }
96
95
 
97
96
  export default AppSettingsIcon
@@ -1,13 +1,21 @@
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, LARGE, MEDIUM, SIZES, SMALL } from '../constants'
4
+ import { COLORS_ICON, LARGE, MAIN_DARK_BLUE, MEDIUM, SIZES, SMALL } from '../constants'
5
5
 
6
- const AppWorkspace = ({ color, size, disabled }) => {
6
+ const AppWorkspace = ({
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}`
10
15
  }
16
+ if (inactive) {
17
+ className += ` ${styles.iconInactive}`
18
+ }
11
19
  let icon = <></>
12
20
 
13
21
  switch (size) {
@@ -89,9 +97,4 @@ AppWorkspace.propTypes = {
89
97
  size: PropTypes.oneOf(SIZES)
90
98
  }
91
99
 
92
- AppWorkspace.defaultProps = {
93
- color: 'main-dark-blue',
94
- size: 'medium'
95
- }
96
-
97
100
  export default AppWorkspace
@@ -3,7 +3,12 @@ import PropTypes from 'prop-types'
3
3
  import styles from './Icons.module.css'
4
4
  import { COLORS_ICON, SIZES, LARGE, MAIN_DARK_BLUE } from '../constants'
5
5
 
6
- const ApplicationTypeIcon = ({ color, size, disabled, inactive }) => {
6
+ const ApplicationTypeIcon = ({
7
+ color = MAIN_DARK_BLUE,
8
+ size = LARGE,
9
+ disabled = false,
10
+ inactive = false
11
+ }) => {
7
12
  let className = `${styles.svgClassName} ` + styles[`${color}`]
8
13
  if (disabled) {
9
14
  className += ` ${styles.iconDisabled}`
@@ -56,11 +61,5 @@ ApplicationTypeIcon.propTypes = {
56
61
  */
57
62
  inactive: PropTypes.bool
58
63
  }
59
- ApplicationTypeIcon.defaultProps = {
60
- color: MAIN_DARK_BLUE,
61
- size: LARGE,
62
- disabled: false,
63
- inactive: false
64
- }
65
64
 
66
65
  export default ApplicationTypeIcon
@@ -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 ArrowDownFullIcon = ({ color, size, disabled, inactive }) => {
6
+ const ArrowDownFullIcon = ({
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}`
@@ -82,11 +87,5 @@ ArrowDownFullIcon.propTypes = {
82
87
  */
83
88
  inactive: PropTypes.bool
84
89
  }
85
- ArrowDownFullIcon.defaultProps = {
86
- color: MAIN_DARK_BLUE,
87
- size: MEDIUM,
88
- disabled: false,
89
- inactive: false
90
- }
91
90
 
92
91
  export default ArrowDownFullIcon
@@ -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 ArrowDownIcon = ({ color, size, disabled, inactive }) => {
6
+ const ArrowDownIcon = ({
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 @@ ArrowDownIcon.propTypes = {
81
86
  */
82
87
  inactive: PropTypes.bool
83
88
  }
84
- ArrowDownIcon.defaultProps = {
85
- color: MAIN_DARK_BLUE,
86
- size: MEDIUM,
87
- disabled: false,
88
- inactive: false
89
- }
90
89
 
91
90
  export default ArrowDownIcon
@@ -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 ArrowLeftIcon = ({ color, size, disabled, inactive }) => {
6
+ const ArrowLeftIcon = ({
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 @@ ArrowLeftIcon.propTypes = {
81
86
  */
82
87
  inactive: PropTypes.bool
83
88
  }
84
- ArrowLeftIcon.defaultProps = {
85
- color: MAIN_DARK_BLUE,
86
- size: MEDIUM,
87
- disabled: false,
88
- inactive: false
89
- }
90
89
 
91
90
  export default ArrowLeftIcon
@@ -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 ArrowLongLeftIcon = ({ color, size, disabled, inactive }) => {
6
+ const ArrowLongLeftIcon = ({
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}`
@@ -82,11 +87,5 @@ ArrowLongLeftIcon.propTypes = {
82
87
  */
83
88
  inactive: PropTypes.bool
84
89
  }
85
- ArrowLongLeftIcon.defaultProps = {
86
- color: MAIN_DARK_BLUE,
87
- size: MEDIUM,
88
- disabled: false,
89
- inactive: false
90
- }
91
90
 
92
91
  export default ArrowLongLeftIcon
@@ -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 ArrowLongRightIcon = ({ color, size, disabled, inactive }) => {
6
+ const ArrowLongRightIcon = ({
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}`
@@ -82,11 +87,5 @@ ArrowLongRightIcon.propTypes = {
82
87
  */
83
88
  inactive: PropTypes.bool
84
89
  }
85
- ArrowLongRightIcon.defaultProps = {
86
- color: MAIN_DARK_BLUE,
87
- size: MEDIUM,
88
- disabled: false,
89
- inactive: false
90
- }
91
90
 
92
91
  export default ArrowLongRightIcon
@@ -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 ArrowRightIcon = ({ color, size, disabled, inactive }) => {
6
+ const ArrowRightIcon = ({
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 @@ ArrowRightIcon.propTypes = {
81
86
  */
82
87
  inactive: PropTypes.bool
83
88
  }
84
- ArrowRightIcon.defaultProps = {
85
- color: MAIN_DARK_BLUE,
86
- size: MEDIUM,
87
- disabled: false,
88
- inactive: false
89
- }
90
89
 
91
90
  export default ArrowRightIcon
@@ -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 ArrowUpIcon = ({ color, size, disabled, inactive }) => {
6
+ const ArrowUpIcon = ({
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 @@ ArrowUpIcon.propTypes = {
81
86
  */
82
87
  inactive: PropTypes.bool
83
88
  }
84
- ArrowUpIcon.defaultProps = {
85
- color: MAIN_DARK_BLUE,
86
- size: MEDIUM,
87
- disabled: false,
88
- inactive: false
89
- }
90
89
 
91
90
  export default ArrowUpIcon
@@ -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 BellIcon = ({ color, size, disabled, inactive }) => {
6
+ const BellIcon = ({
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 @@ BellIcon.propTypes = {
84
89
  */
85
90
  inactive: PropTypes.bool
86
91
  }
87
- BellIcon.defaultProps = {
88
- color: MAIN_DARK_BLUE,
89
- size: MEDIUM,
90
- disabled: false,
91
- inactive: false
92
- }
93
92
 
94
93
  export default BellIcon
@@ -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 BillingIcon = ({ color, size, disabled, inactive }) => {
6
+ const BillingIcon = ({
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 @@ BillingIcon.propTypes = {
104
109
  */
105
110
  inactive: PropTypes.bool
106
111
  }
107
- BillingIcon.defaultProps = {
108
- color: MAIN_DARK_BLUE,
109
- size: MEDIUM,
110
- disabled: false,
111
- inactive: false
112
- }
113
112
 
114
113
  export default BillingIcon
@@ -0,0 +1,102 @@
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 BranchIcon = ({
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
+ <circle cx='3.8001' cy='4.8' r='1.8' transform='rotate(90 3.8001 4.8)' stroke='none' />
33
+ <circle cx='12.2' cy='4.8' r='1.8' transform='rotate(90 12.2 4.8)' stroke='none' />
34
+ <line x1='10.3999' y1='4.69995' x2='5.5999' y2='4.69995' stroke='none' />
35
+ <circle cx='11.8001' cy='10.8' r='1.8' transform='rotate(90 11.8001 10.8)' stroke='none' />
36
+ <path d='M6 5V5C7.10457 5 8 5.89543 8 7L8 9C8 10.1046 8.89543 11 10 11V11' stroke='none' strokeLinecap='round' strokeLinejoin='round' />
37
+ </svg>
38
+ )
39
+ break
40
+ case MEDIUM:
41
+ icon = (
42
+ <svg
43
+ width={24}
44
+ height={24}
45
+ viewBox='0 0 24 24'
46
+ fill='none'
47
+ xmlns='http://www.w3.org/2000/svg'
48
+ className={className}
49
+ >
50
+ <circle cx='5.6999' cy='7.2' r='2.7' transform='rotate(90 5.6999 7.2)' stroke='none' strokeWidth={1.5} />
51
+ <circle cx='18.3' cy='7.2' r='2.7' transform='rotate(90 18.3 7.2)' stroke='none' strokeWidth={1.5} />
52
+ <line x1='15.6001' y1='7.05005' x2='8.4001' y2='7.05005' stroke='none' strokeWidth={1.5} />
53
+ <circle cx='17.6999' cy='16.1999' r='2.7' transform='rotate(90 17.6999 16.1999)' stroke='none' strokeWidth={1.5} />
54
+ <path d='M8.99951 7.49988V7.49988C10.6564 7.49988 11.9995 8.84303 11.9995 10.4999L11.9995 13.4999C11.9995 15.1567 13.3427 16.4999 14.9995 16.4999V16.4999' stroke='none' strokeWidth={1.5} strokeLinecap='round' strokeLinejoin='round' />
55
+ </svg>
56
+ )
57
+ break
58
+ case LARGE:
59
+ icon = (
60
+ <svg
61
+ width={40}
62
+ height={40}
63
+ viewBox='0 0 40 40'
64
+ fill='none'
65
+ xmlns='http://www.w3.org/2000/svg'
66
+ className={className}
67
+ >
68
+ <circle cx='9.5' cy='12' r='4.5' transform='rotate(90 9.5 12)' stroke='none' strokeWidth={2} />
69
+ <circle cx='30.5' cy='12' r='4.5' transform='rotate(90 30.5 12)' stroke='none' strokeWidth={2} />
70
+ <line x1='26' y1='11.5' x2='14' y2='11.5' stroke='none' strokeWidth={2} />
71
+ <circle cx='29.5' cy='26.9999' r='4.5' transform='rotate(90 29.5 26.9999)' stroke='none' strokeWidth={2} />
72
+ <path d='M14.9995 12.4999V12.4999C17.7609 12.4999 19.9995 14.7385 19.9995 17.4999L19.9995 22.4999C19.9995 25.2613 22.2381 27.4999 24.9995 27.4999V27.4999' stroke='none' strokeWidth={2} strokeLinecap='round' strokeLinejoin='round' />
73
+ </svg>
74
+ )
75
+ break
76
+
77
+ default:
78
+ break
79
+ }
80
+ return icon
81
+ }
82
+
83
+ BranchIcon.propTypes = {
84
+ /**
85
+ * color of text, icon and borders
86
+ */
87
+ color: PropTypes.oneOf(COLORS_ICON),
88
+ /**
89
+ * Size
90
+ */
91
+ size: PropTypes.oneOf(SIZES),
92
+ /**
93
+ * disabled
94
+ */
95
+ disabled: PropTypes.bool,
96
+ /**
97
+ * inactive
98
+ */
99
+ inactive: PropTypes.bool
100
+ }
101
+
102
+ export default BranchIcon
@@ -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 BuiltInLoggingIcon = ({ color, size, disabled, inactive }) => {
6
+ const BuiltInLoggingIcon = ({
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}`
@@ -112,11 +117,5 @@ BuiltInLoggingIcon.propTypes = {
112
117
  */
113
118
  inactive: PropTypes.bool
114
119
  }
115
- BuiltInLoggingIcon.defaultProps = {
116
- color: MAIN_DARK_BLUE,
117
- size: MEDIUM,
118
- disabled: false,
119
- inactive: false
120
- }
121
120
 
122
121
  export default BuiltInLoggingIcon
@@ -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 CLIIcon = ({ color, size, disabled, inactive }) => {
6
+ const CLIIcon = ({
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 @@ CLIIcon.propTypes = {
105
110
  */
106
111
  inactive: PropTypes.bool
107
112
  }
108
- CLIIcon.defaultProps = {
109
- color: MAIN_DARK_BLUE,
110
- size: MEDIUM,
111
- disabled: false,
112
- inactive: false
113
- }
114
113
 
115
114
  export default CLIIcon
@@ -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 Calendar1DayIcon = ({ color, size, disabled, inactive }) => {
6
+ const Calendar1DayIcon = ({
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 @@ Calendar1DayIcon.propTypes = {
96
101
  */
97
102
  inactive: PropTypes.bool
98
103
  }
99
- Calendar1DayIcon.defaultProps = {
100
- color: MAIN_DARK_BLUE,
101
- size: MEDIUM,
102
- disabled: false,
103
- inactive: false
104
- }
105
104
 
106
105
  export default Calendar1DayIcon
@@ -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 Calendar7DaysIcon = ({ color, size, disabled, inactive }) => {
6
+ const Calendar7DaysIcon = ({
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 @@ Calendar7DaysIcon.propTypes = {
94
99
  */
95
100
  inactive: PropTypes.bool
96
101
  }
97
- Calendar7DaysIcon.defaultProps = {
98
- color: MAIN_DARK_BLUE,
99
- size: MEDIUM,
100
- disabled: false,
101
- inactive: false
102
- }
103
102
 
104
103
  export default Calendar7DaysIcon
@@ -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 CalendarIcon = ({ color, size, disabled, inactive }) => {
6
+ const CalendarIcon = ({
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}`
@@ -108,11 +113,5 @@ CalendarIcon.propTypes = {
108
113
  */
109
114
  inactive: PropTypes.bool
110
115
  }
111
- CalendarIcon.defaultProps = {
112
- color: MAIN_DARK_BLUE,
113
- size: MEDIUM,
114
- disabled: false,
115
- inactive: false
116
- }
117
116
 
118
117
  export default CalendarIcon