@platformatic/ui-components 0.3.6 → 0.5.0

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 (213) hide show
  1. package/.nvmrc +1 -1
  2. package/dist/assets/index-BHLxMHb5.js +40 -0
  3. package/dist/assets/{index-BJ-rQoWR.css → index-Of0we_2v.css} +1 -1
  4. package/dist/index.html +2 -2
  5. package/dist/main.css +14 -4
  6. package/index.js +0 -2
  7. package/package.json +13 -12
  8. package/setupTests.js +1 -0
  9. package/src/components/BorderedBox.jsx +9 -20
  10. package/src/components/Button.jsx +14 -30
  11. package/src/components/ButtonFullRounded.jsx +13 -31
  12. package/src/components/ButtonOnlyIcon.jsx +13 -36
  13. package/src/components/Checkbox.jsx +5 -6
  14. package/src/components/CopyAndPaste.jsx +8 -19
  15. package/src/components/HorizontalSeparator.jsx +6 -8
  16. package/src/components/LoadingSpinnerV2.jsx +4 -11
  17. package/src/components/LoginButton.test.jsx +0 -1
  18. package/src/components/Modal.jsx +11 -25
  19. package/src/components/PlatformaticIcon.jsx +9 -21
  20. package/src/components/TabbedWindow.jsx +11 -10
  21. package/src/components/TabbedWindow.module.css +4 -4
  22. package/src/components/Tag.jsx +9 -11
  23. package/src/components/VerticalSeparator.jsx +6 -4
  24. package/src/components/icons/APIDocsIcon.jsx +6 -7
  25. package/src/components/icons/AddIcon.jsx +6 -7
  26. package/src/components/icons/AlertIcon.jsx +6 -7
  27. package/src/components/icons/AllAppsIcon.jsx +6 -7
  28. package/src/components/icons/AllInOneIcon.jsx +6 -7
  29. package/src/components/icons/ApiCloudIcon.jsx +6 -7
  30. package/src/components/icons/ApiEmptyIcon.jsx +6 -7
  31. package/src/components/icons/ApiIcon.jsx +6 -7
  32. package/src/components/icons/ApiIconClosed.jsx +10 -6
  33. package/src/components/icons/ApiPerformanceIcon.jsx +6 -7
  34. package/src/components/icons/AppConfigurationIcon.jsx +6 -7
  35. package/src/components/icons/AppDetailsIcon.jsx +6 -7
  36. package/src/components/icons/AppEditIcon.jsx +6 -7
  37. package/src/components/icons/AppEmptyIcon.jsx +6 -7
  38. package/src/components/icons/AppIcon.jsx +6 -7
  39. package/src/components/icons/AppListIcon.jsx +6 -7
  40. package/src/components/icons/AppSettingsIcon.jsx +6 -7
  41. package/src/components/icons/AppWorkspace.jsx +10 -7
  42. package/src/components/icons/ApplicationTypeIcon.jsx +6 -7
  43. package/src/components/icons/ArrowDownFullIcon.jsx +6 -7
  44. package/src/components/icons/ArrowDownIcon.jsx +6 -7
  45. package/src/components/icons/ArrowLeftIcon.jsx +6 -7
  46. package/src/components/icons/ArrowLongLeftIcon.jsx +6 -7
  47. package/src/components/icons/ArrowLongRightIcon.jsx +6 -7
  48. package/src/components/icons/ArrowRightIcon.jsx +6 -7
  49. package/src/components/icons/ArrowUpIcon.jsx +6 -7
  50. package/src/components/icons/BellIcon.jsx +6 -7
  51. package/src/components/icons/BillingIcon.jsx +6 -7
  52. package/src/components/icons/BuiltInLoggingIcon.jsx +6 -7
  53. package/src/components/icons/CLIIcon.jsx +6 -7
  54. package/src/components/icons/Calendar1DayIcon.jsx +6 -7
  55. package/src/components/icons/Calendar7DaysIcon.jsx +6 -7
  56. package/src/components/icons/CalendarIcon.jsx +6 -7
  57. package/src/components/icons/CheckListIcon.jsx +6 -7
  58. package/src/components/icons/CircleAddIcon.jsx +6 -7
  59. package/src/components/icons/CircleArrowLeftIcon.jsx +6 -7
  60. package/src/components/icons/CircleArrowRightIcon.jsx +6 -7
  61. package/src/components/icons/CircleCheckMarkButtonIcon.jsx +6 -8
  62. package/src/components/icons/CircleCheckMarkFullIcon.jsx +6 -7
  63. package/src/components/icons/CircleCheckMarkIcon.jsx +7 -6
  64. package/src/components/icons/CircleCloseHoverIcon.jsx +6 -7
  65. package/src/components/icons/CircleCloseIcon.jsx +6 -7
  66. package/src/components/icons/CircleCopyPasteIcon.jsx +6 -7
  67. package/src/components/icons/CircleDownloadIcon.jsx +6 -7
  68. package/src/components/icons/CircleEditIcon.jsx +6 -7
  69. package/src/components/icons/CircleExclamationIcon.jsx +7 -7
  70. package/src/components/icons/CircleFullIcon.jsx +6 -7
  71. package/src/components/icons/CircleGearIcon.jsx +6 -7
  72. package/src/components/icons/CirclePlayIcon.jsx +6 -7
  73. package/src/components/icons/CircleRestartIcon.jsx +6 -7
  74. package/src/components/icons/CircleStopIcon.jsx +6 -7
  75. package/src/components/icons/CircleSubtractIcon.jsx +6 -7
  76. package/src/components/icons/CircleTwoArrowsDownIcon.jsx +6 -7
  77. package/src/components/icons/CircleTwoArrowsUpIcon.jsx +6 -7
  78. package/src/components/icons/CloseIcon.jsx +6 -7
  79. package/src/components/icons/CloudIcon.jsx +6 -7
  80. package/src/components/icons/CodeTestingIcon.jsx +6 -7
  81. package/src/components/icons/ComputerIcon.jsx +6 -7
  82. package/src/components/icons/ConfigureDatabaseIcon.jsx +6 -7
  83. package/src/components/icons/CopyPasteIcon.jsx +6 -7
  84. package/src/components/icons/CreateAppIcon.jsx +6 -7
  85. package/src/components/icons/CreditCardIcon.jsx +6 -7
  86. package/src/components/icons/DatabaseIcon.jsx +6 -7
  87. package/src/components/icons/DatabaseMigrationIcon.jsx +6 -7
  88. package/src/components/icons/DepencenciesReloadIcon.jsx +6 -7
  89. package/src/components/icons/EditDocumentIcon.jsx +6 -7
  90. package/src/components/icons/EditIcon.jsx +6 -7
  91. package/src/components/icons/EnlargeIcon.jsx +6 -7
  92. package/src/components/icons/EntryIcon.jsx +6 -7
  93. package/src/components/icons/EntrypointIcon.jsx +6 -7
  94. package/src/components/icons/ExpandIcon.jsx +6 -7
  95. package/src/components/icons/ExploreDocIcon.jsx +6 -7
  96. package/src/components/icons/EyeClosedIcon.jsx +6 -7
  97. package/src/components/icons/EyeOpenedIcon.jsx +6 -7
  98. package/src/components/icons/FolderIcon.jsx +6 -7
  99. package/src/components/icons/FoldersIcon.jsx +6 -7
  100. package/src/components/icons/GearIcon.jsx +6 -7
  101. package/src/components/icons/GenerationLoadingIcon.jsx +6 -7
  102. package/src/components/icons/GitHubRepo2Icon.jsx +6 -7
  103. package/src/components/icons/GitHubRepoIcon.jsx +6 -7
  104. package/src/components/icons/GiveOwnershipIcon.jsx +6 -7
  105. package/src/components/icons/GraphQLIcon.jsx +6 -7
  106. package/src/components/icons/ImportAppIcon.jsx +6 -7
  107. package/src/components/icons/KeyIcon.jsx +6 -7
  108. package/src/components/icons/LabelIcon.jsx +6 -7
  109. package/src/components/icons/LayersIcon.jsx +6 -7
  110. package/src/components/icons/LensIcon.jsx +6 -7
  111. package/src/components/icons/LiveIcon.jsx +6 -7
  112. package/src/components/icons/LoadingAppIcon.jsx +6 -7
  113. package/src/components/icons/LogOutIcon.jsx +7 -7
  114. package/src/components/icons/LogsRiskIcon.jsx +6 -7
  115. package/src/components/icons/MetricsIcon.jsx +6 -7
  116. package/src/components/icons/MetricsLoadingIcon.jsx +6 -7
  117. package/src/components/icons/MissingTemplateIcon.jsx +6 -7
  118. package/src/components/icons/NameAppIcon.jsx +6 -7
  119. package/src/components/icons/NoMetricsIcon.jsx +6 -7
  120. package/src/components/icons/OrganizationIcon.jsx +6 -7
  121. package/src/components/icons/OutOfBoxGraphQLIcon.jsx +6 -7
  122. package/src/components/icons/PlatformaticComposerIcon.jsx +6 -7
  123. package/src/components/icons/PlatformaticDBIcon.jsx +6 -7
  124. package/src/components/icons/PlatformaticRuntimeIcon.jsx +6 -7
  125. package/src/components/icons/PlatformaticServiceIcon.jsx +6 -7
  126. package/src/components/icons/PlayIcon.jsx +6 -7
  127. package/src/components/icons/PreviewPRIcon.jsx +6 -7
  128. package/src/components/icons/PullRequestIcon.jsx +6 -7
  129. package/src/components/icons/PullRequestLoadingIcon.jsx +6 -7
  130. package/src/components/icons/RecentAppsIcon.jsx +6 -7
  131. package/src/components/icons/RequestOwnershipIcon.jsx +6 -7
  132. package/src/components/icons/RestartIcon.jsx +6 -7
  133. package/src/components/icons/RocketIcon.jsx +6 -7
  134. package/src/components/icons/RunningAppIcon.jsx +6 -7
  135. package/src/components/icons/RunningIcon.jsx +6 -7
  136. package/src/components/icons/SendIcon.jsx +6 -7
  137. package/src/components/icons/ServiceIcon.jsx +6 -7
  138. package/src/components/icons/SlotIcon.jsx +6 -7
  139. package/src/components/icons/SocialDiscordIcon.jsx +6 -7
  140. package/src/components/icons/SocialGitHubIcon.jsx +6 -7
  141. package/src/components/icons/SocialGitLabIcon.jsx +6 -7
  142. package/src/components/icons/SocialLinkedInIcon.jsx +6 -7
  143. package/src/components/icons/SocialNPMIcon.jsx +6 -7
  144. package/src/components/icons/SocialXIcon.jsx +6 -7
  145. package/src/components/icons/SortDownIcon.jsx +6 -7
  146. package/src/components/icons/SortIcon.jsx +6 -7
  147. package/src/components/icons/SortUpIcon.jsx +6 -7
  148. package/src/components/icons/SortableIcon.jsx +6 -7
  149. package/src/components/icons/StackablesIcon.jsx +6 -7
  150. package/src/components/icons/StackablesPluginIcon.jsx +6 -7
  151. package/src/components/icons/StackablesTemplateIcon.jsx +6 -7
  152. package/src/components/icons/StopIcon.jsx +6 -7
  153. package/src/components/icons/StoppedAppIcon.jsx +6 -7
  154. package/src/components/icons/SwitchIcon.jsx +6 -7
  155. package/src/components/icons/TeamsIcon.jsx +6 -7
  156. package/src/components/icons/TerminalIcon.jsx +6 -7
  157. package/src/components/icons/TrashIcon.jsx +6 -8
  158. package/src/components/icons/TwoUsersIcon.jsx +6 -7
  159. package/src/components/icons/UpgradeIcon.jsx +6 -7
  160. package/src/components/icons/UserComputerIcon.jsx +6 -7
  161. package/src/components/icons/UserIcon.jsx +6 -7
  162. package/src/components/icons/UserRemoveIcon.jsx +7 -7
  163. package/src/components/icons/UserRoleIcon.jsx +7 -7
  164. package/src/components/icons/WorkspaceDynamicIcon.jsx +6 -7
  165. package/src/components/icons/WorkspaceEmptyIcon.jsx +6 -7
  166. package/src/components/icons/WorkspaceFailIcon.jsx +6 -7
  167. package/src/components/icons/WorkspaceGitHubIcon.jsx +6 -7
  168. package/src/components/icons/WorkspaceLoadingIcon.jsx +6 -7
  169. package/src/components/icons/WorkspaceReadyIcon.jsx +6 -7
  170. package/src/components/icons/WorkspaceStaticIcon.jsx +6 -7
  171. package/src/components/layouts/Layout.jsx +4 -6
  172. package/src/components/logos/AdvancedLogo.jsx +5 -7
  173. package/src/components/logos/BasicLogo.jsx +5 -7
  174. package/src/components/logos/FreeLogo.jsx +5 -7
  175. package/src/components/logos/ProLogo.jsx +5 -7
  176. package/src/stories/BorderedBox.stories.jsx +3 -1
  177. package/src/stories/Button.stories.jsx +224 -47
  178. package/src/stories/ButtonFullRounded.stories.jsx +31 -6
  179. package/src/stories/ButtonOnlyIcon.stories.jsx +13 -3
  180. package/src/stories/DropDown.stories.jsx +43 -20
  181. package/src/stories/InfoBox.stories.jsx +12 -3
  182. package/src/stories/{Introduction.stories.mdx → Introduction.mdx} +115 -117
  183. package/src/stories/List.stories.jsx +28 -5
  184. package/src/stories/ListElement.stories.jsx +2 -1
  185. package/src/stories/Loadable.stories.jsx +6 -5
  186. package/src/stories/LoadingSpinner.stories.jsx +4 -2
  187. package/src/stories/LogoDropDown.stories.jsx +38 -24
  188. package/src/stories/Modal.stories.jsx +72 -17
  189. package/src/stories/ModalDirectional.stories.jsx +12 -2
  190. package/src/stories/ModalStepsForward.stories.jsx +82 -13
  191. package/src/stories/PlatformaticIcon.stories.jsx +44 -9
  192. package/src/stories/SearchBar.stories.jsx +0 -1
  193. package/src/stories/SearchBarV2.stories.jsx +0 -1
  194. package/src/stories/Sidebar.stories.jsx +41 -10
  195. package/src/stories/TabbedWindow.stories.jsx +71 -31
  196. package/src/stories/TextWithLabel.stories.jsx +5 -1
  197. package/src/stories/Tooltip.stories.jsx +10 -2
  198. package/src/stories/TwoColumnsLayout.stories.jsx +7 -2
  199. package/src/stories/forms/Field.stories.jsx +53 -15
  200. package/src/stories/forms/Input.stories.jsx +8 -2
  201. package/src/stories/forms/InputWithSeparator.stories.jsx +31 -9
  202. package/src/stories/forms/Password.stories.jsx +5 -1
  203. package/src/stories/forms/Preview.stories.jsx +6 -1
  204. package/src/stories/forms/RadioGroup.stories.jsx +5 -1
  205. package/src/stories/forms/Select.stories.jsx +60 -38
  206. package/src/stories/forms/SelectWithInput.stories.jsx +78 -41
  207. package/src/stories/forms/ToggleSwitch.stories.jsx +14 -4
  208. package/src/stories/icons/Icons.stories.jsx +40 -13
  209. package/src/stories/logos/Logos.stories.jsx +9 -2
  210. package/vitest.config.js +2 -1
  211. package/dist/assets/index-YI7s19_T.js +0 -40
  212. package/src/components/TabbedWindowV2.jsx +0 -82
  213. 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 SortUpIcon = ({ color, size, disabled, inactive }) => {
6
+ const SortUpIcon = ({
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}`
@@ -85,11 +90,5 @@ SortUpIcon.propTypes = {
85
90
  */
86
91
  inactive: PropTypes.bool
87
92
  }
88
- SortUpIcon.defaultProps = {
89
- color: MAIN_DARK_BLUE,
90
- size: MEDIUM,
91
- disabled: false,
92
- inactive: false
93
- }
94
93
 
95
94
  export default SortUpIcon
@@ -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 SortableIcon = ({ color, size, disabled, inactive }) => {
6
+ const SortableIcon = ({
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}`
@@ -91,11 +96,5 @@ SortableIcon.propTypes = {
91
96
  */
92
97
  inactive: PropTypes.bool
93
98
  }
94
- SortableIcon.defaultProps = {
95
- color: MAIN_DARK_BLUE,
96
- size: MEDIUM,
97
- disabled: false,
98
- inactive: false
99
- }
100
99
 
101
100
  export default SortableIcon
@@ -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 StackablesIcon = ({ color, size, disabled, inactive }) => {
6
+ const StackablesIcon = ({
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}`
@@ -120,11 +125,5 @@ StackablesIcon.propTypes = {
120
125
  */
121
126
  inactive: PropTypes.bool
122
127
  }
123
- StackablesIcon.defaultProps = {
124
- color: MAIN_DARK_BLUE,
125
- size: MEDIUM,
126
- disabled: false,
127
- inactive: false
128
- }
129
128
 
130
129
  export default StackablesIcon
@@ -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 StackablesPluginIcon = ({ color, size, disabled, inactive }) => {
6
+ const StackablesPluginIcon = ({
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
  const filledClassName = styles[`filled-${color}`]
9
14
  if (disabled) {
@@ -133,11 +138,5 @@ StackablesPluginIcon.propTypes = {
133
138
  */
134
139
  inactive: PropTypes.bool
135
140
  }
136
- StackablesPluginIcon.defaultProps = {
137
- color: MAIN_DARK_BLUE,
138
- size: MEDIUM,
139
- disabled: false,
140
- inactive: false
141
- }
142
141
 
143
142
  export default StackablesPluginIcon
@@ -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 StackablesTemplateIcon = ({ color, size, disabled, inactive }) => {
6
+ const StackablesTemplateIcon = ({
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}`
@@ -131,11 +136,5 @@ StackablesTemplateIcon.propTypes = {
131
136
  */
132
137
  inactive: PropTypes.bool
133
138
  }
134
- StackablesTemplateIcon.defaultProps = {
135
- color: MAIN_DARK_BLUE,
136
- size: MEDIUM,
137
- disabled: false,
138
- inactive: false
139
- }
140
139
 
141
140
  export default StackablesTemplateIcon
@@ -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 StopIcon = ({ color, size, disabled, inactive }) => {
6
+ const StopIcon = ({
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 @@ StopIcon.propTypes = {
84
89
  */
85
90
  inactive: PropTypes.bool
86
91
  }
87
- StopIcon.defaultProps = {
88
- color: MAIN_DARK_BLUE,
89
- size: MEDIUM,
90
- disabled: false,
91
- inactive: false
92
- }
93
92
 
94
93
  export default StopIcon
@@ -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 StoppedAppIcon = ({ color, size, disabled, inactive }) => {
6
+ const StoppedAppIcon = ({
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}`
@@ -91,11 +96,5 @@ StoppedAppIcon.propTypes = {
91
96
  */
92
97
  inactive: PropTypes.bool
93
98
  }
94
- StoppedAppIcon.defaultProps = {
95
- color: MAIN_DARK_BLUE,
96
- size: MEDIUM,
97
- disabled: false,
98
- inactive: false
99
- }
100
99
 
101
100
  export default StoppedAppIcon
@@ -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 SwitchIcon = ({ color, size, disabled, inactive }) => {
6
+ const SwitchIcon = ({
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}`
@@ -86,11 +91,5 @@ SwitchIcon.propTypes = {
86
91
  */
87
92
  inactive: PropTypes.bool
88
93
  }
89
- SwitchIcon.defaultProps = {
90
- color: MAIN_DARK_BLUE,
91
- size: MEDIUM,
92
- disabled: false,
93
- inactive: false
94
- }
95
94
 
96
95
  export default SwitchIcon
@@ -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 TeamsIcon = ({ color, size, disabled, inactive }) => {
6
+ const TeamsIcon = ({
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 @@ TeamsIcon.propTypes = {
96
101
  */
97
102
  inactive: PropTypes.bool
98
103
  }
99
- TeamsIcon.defaultProps = {
100
- color: MAIN_DARK_BLUE,
101
- size: MEDIUM,
102
- disabled: false,
103
- inactive: false
104
- }
105
104
 
106
105
  export default TeamsIcon
@@ -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 TerminalIcon = ({ color, size, disabled, inactive }) => {
6
+ const TerminalIcon = ({
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 @@ TerminalIcon.propTypes = {
88
93
  */
89
94
  inactive: PropTypes.bool
90
95
  }
91
- TerminalIcon.defaultProps = {
92
- color: MAIN_DARK_BLUE,
93
- size: MEDIUM,
94
- disabled: false,
95
- inactive: false
96
- }
97
96
 
98
97
  export default TerminalIcon
@@ -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 TrashIcon = ({ color, size, disabled, inactive }) => {
6
+ const TrashIcon = ({
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,4 @@ TrashIcon.propTypes = {
93
98
  inactive: PropTypes.bool
94
99
  }
95
100
 
96
- TrashIcon.defaultProps = {
97
- color: MAIN_DARK_BLUE,
98
- size: MEDIUM,
99
- disabled: false,
100
- inactive: false
101
- }
102
-
103
101
  export default TrashIcon
@@ -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 TwoUsersIcon = ({ color, size, disabled, inactive }) => {
6
+ const TwoUsersIcon = ({
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}`
@@ -90,11 +95,5 @@ TwoUsersIcon.propTypes = {
90
95
  */
91
96
  inactive: PropTypes.bool
92
97
  }
93
- TwoUsersIcon.defaultProps = {
94
- color: MAIN_DARK_BLUE,
95
- size: MEDIUM,
96
- disabled: false,
97
- inactive: false
98
- }
99
98
 
100
99
  export default TwoUsersIcon
@@ -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, EXTRA_LARGE, MAIN_DARK_BLUE } from '../constants'
5
5
 
6
- const UpgradeIcon = ({ color, size, disabled, inactive }) => {
6
+ const UpgradeIcon = ({
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}`
@@ -123,11 +128,5 @@ UpgradeIcon.propTypes = {
123
128
  */
124
129
  inactive: PropTypes.bool
125
130
  }
126
- UpgradeIcon.defaultProps = {
127
- color: MAIN_DARK_BLUE,
128
- size: MEDIUM,
129
- disabled: false,
130
- inactive: false
131
- }
132
131
 
133
132
  export default UpgradeIcon
@@ -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 UserComputerIcon = ({ color, size, disabled, inactive }) => {
6
+ const UserComputerIcon = ({
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 @@ UserComputerIcon.propTypes = {
96
101
  */
97
102
  inactive: PropTypes.bool
98
103
  }
99
- UserComputerIcon.defaultProps = {
100
- color: MAIN_DARK_BLUE,
101
- size: MEDIUM,
102
- disabled: false,
103
- inactive: false
104
- }
105
104
 
106
105
  export default UserComputerIcon
@@ -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 UserIcon = ({ color, size, disabled, inactive }) => {
6
+ const UserIcon = ({
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}`
@@ -85,11 +90,5 @@ UserIcon.propTypes = {
85
90
  */
86
91
  inactive: PropTypes.bool
87
92
  }
88
- UserIcon.defaultProps = {
89
- color: MAIN_DARK_BLUE,
90
- size: MEDIUM,
91
- disabled: false,
92
- inactive: false
93
- }
94
93
 
95
94
  export default UserIcon
@@ -3,7 +3,13 @@ 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 UserRemoveIcon = ({ color, size, tip, disabled, inactive }) => {
6
+ const UserRemoveIcon = ({
7
+ color = MAIN_DARK_BLUE,
8
+ size = MEDIUM,
9
+ tip = '',
10
+ disabled = false,
11
+ inactive = false
12
+ }) => {
7
13
  let className = `${styles.svgClassName} ` + styles[`${color}`]
8
14
  if (disabled) {
9
15
  className += ` ${styles.iconDisabled}`
@@ -94,10 +100,4 @@ UserRemoveIcon.propTypes = {
94
100
  tip: PropTypes.string
95
101
  }
96
102
 
97
- UserRemoveIcon.defaultProps = {
98
- color: MAIN_DARK_BLUE,
99
- size: MEDIUM,
100
- tip: ''
101
- }
102
-
103
103
  export default UserRemoveIcon
@@ -3,7 +3,13 @@ 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 UserRoleIcon = ({ color, size, tip, disabled, inactive }) => {
6
+ const UserRoleIcon = ({
7
+ color = MAIN_DARK_BLUE,
8
+ size = MEDIUM,
9
+ tip = '',
10
+ disabled = false,
11
+ inactive = false
12
+ }) => {
7
13
  let className = `${styles.svgClassName} ` + styles[`${color}`]
8
14
  if (disabled) {
9
15
  className += ` ${styles.iconDisabled}`
@@ -93,10 +99,4 @@ UserRoleIcon.propTypes = {
93
99
  tip: PropTypes.string
94
100
  }
95
101
 
96
- UserRoleIcon.defaultProps = {
97
- color: MAIN_DARK_BLUE,
98
- size: MEDIUM,
99
- tip: ''
100
- }
101
-
102
102
  export default UserRoleIcon
@@ -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 WorkspaceDynamicIcon = ({ color, size, disabled, inactive }) => {
6
+ const WorkspaceDynamicIcon = ({
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 @@ WorkspaceDynamicIcon.propTypes = {
93
98
  */
94
99
  inactive: PropTypes.bool
95
100
  }
96
- WorkspaceDynamicIcon.defaultProps = {
97
- color: MAIN_DARK_BLUE,
98
- size: MEDIUM,
99
- disabled: false,
100
- inactive: false
101
- }
102
101
 
103
102
  export default WorkspaceDynamicIcon
@@ -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 WorkspaceEmptyIcon = ({ color, size, disabled, inactive }) => {
6
+ const WorkspaceEmptyIcon = ({
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}`
@@ -60,11 +65,5 @@ WorkspaceEmptyIcon.propTypes = {
60
65
  */
61
66
  inactive: PropTypes.bool
62
67
  }
63
- WorkspaceEmptyIcon.defaultProps = {
64
- color: MAIN_DARK_BLUE,
65
- size: MEDIUM,
66
- disabled: false,
67
- inactive: false
68
- }
69
68
 
70
69
  export default WorkspaceEmptyIcon
@@ -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, EXTRA_LARGE, MAIN_DARK_BLUE } from '../constants'
5
5
 
6
- const WorkspaceFailIcon = ({ color, size, disabled, inactive }) => {
6
+ const WorkspaceFailIcon = ({
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}`
@@ -118,11 +123,5 @@ WorkspaceFailIcon.propTypes = {
118
123
  */
119
124
  inactive: PropTypes.bool
120
125
  }
121
- WorkspaceFailIcon.defaultProps = {
122
- color: MAIN_DARK_BLUE,
123
- size: MEDIUM,
124
- disabled: false,
125
- inactive: false
126
- }
127
126
 
128
127
  export default WorkspaceFailIcon
@@ -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, EXTRA_LARGE, MAIN_DARK_BLUE } from '../constants'
5
5
 
6
- const WorkspaceGitHubIcon = ({ color, size, disabled, inactive }) => {
6
+ const WorkspaceGitHubIcon = ({
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}`
@@ -137,11 +142,5 @@ WorkspaceGitHubIcon.propTypes = {
137
142
  */
138
143
  inactive: PropTypes.bool
139
144
  }
140
- WorkspaceGitHubIcon.defaultProps = {
141
- color: MAIN_DARK_BLUE,
142
- size: MEDIUM,
143
- disabled: false,
144
- inactive: false
145
- }
146
145
 
147
146
  export default WorkspaceGitHubIcon
@@ -3,7 +3,12 @@ import PropTypes from 'prop-types'
3
3
  import styles from './Icons.module.css'
4
4
  import { COLORS_ICON, SIZES, EXTRA_LARGE, MEDIUM, MAIN_DARK_BLUE } from '../constants'
5
5
 
6
- const WorkspaceLoadingIcon = ({ color, size, disabled, inactive }) => {
6
+ const WorkspaceLoadingIcon = ({
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}`
@@ -62,11 +67,5 @@ WorkspaceLoadingIcon.propTypes = {
62
67
  */
63
68
  inactive: PropTypes.bool
64
69
  }
65
- WorkspaceLoadingIcon.defaultProps = {
66
- color: MAIN_DARK_BLUE,
67
- size: MEDIUM,
68
- disabled: false,
69
- inactive: false
70
- }
71
70
 
72
71
  export default WorkspaceLoadingIcon
@@ -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, EXTRA_LARGE, MAIN_DARK_BLUE } from '../constants'
5
5
 
6
- const WorkspaceReadyIcon = ({ color, size, disabled, inactive }) => {
6
+ const WorkspaceReadyIcon = ({
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}`
@@ -150,11 +155,5 @@ WorkspaceReadyIcon.propTypes = {
150
155
  */
151
156
  inactive: PropTypes.bool
152
157
  }
153
- WorkspaceReadyIcon.defaultProps = {
154
- color: MAIN_DARK_BLUE,
155
- size: MEDIUM,
156
- disabled: false,
157
- inactive: false
158
- }
159
158
 
160
159
  export default WorkspaceReadyIcon
@@ -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 WorkspaceStaticIcon = ({ color, size, disabled, inactive }) => {
6
+ const WorkspaceStaticIcon = ({
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}`
@@ -90,11 +95,5 @@ WorkspaceStaticIcon.propTypes = {
90
95
  */
91
96
  inactive: PropTypes.bool
92
97
  }
93
- WorkspaceStaticIcon.defaultProps = {
94
- color: MAIN_DARK_BLUE,
95
- size: MEDIUM,
96
- disabled: false,
97
- inactive: false
98
- }
99
98
 
100
99
  export default WorkspaceStaticIcon
@@ -2,7 +2,10 @@
2
2
  import React from 'react'
3
3
  import PropTypes from 'prop-types'
4
4
 
5
- function Layout ({ className, children }) {
5
+ function Layout ({
6
+ className = 'container mx-auto px-5 my-5 flex flex-col gap-10 h-screen',
7
+ children = null
8
+ }) {
6
9
  return (
7
10
  <div className={className}>
8
11
  {children}
@@ -22,9 +25,4 @@ Layout.propTypes = {
22
25
  children: PropTypes.node
23
26
  }
24
27
 
25
- Layout.defaultProps = {
26
- className: 'container mx-auto px-5 my-5 flex flex-col gap-10 h-screen',
27
- children: null
28
- }
29
-
30
28
  export default Layout
@@ -2,7 +2,11 @@ import React from 'react'
2
2
  import PropTypes from 'prop-types'
3
3
  import { MAIN_DARK_BLUE, WHITE } from '../constants'
4
4
 
5
- function AdvancedLogo ({ backgroundColor, width, height }) {
5
+ function AdvancedLogo ({
6
+ backgroundColor = WHITE,
7
+ width = 539,
8
+ height = 182
9
+ }) {
6
10
  let icon = (
7
11
  <svg width={width} height={height} viewBox='0 0 539 182' fill='none' xmlns='http://www.w3.org/2000/svg'>
8
12
  <path d='M186.81 64.7676H502.742C522.767 64.7676 539 81.0007 539 101.025V101.025C539 121.05 522.767 137.283 502.742 137.283H186.81L213.978 122.78L222.859 96.8815L207.708 75.1269L186.81 64.7676Z' fill='#00283D' />
@@ -50,10 +54,4 @@ AdvancedLogo.propTypes = {
50
54
  height: PropTypes.number
51
55
  }
52
56
 
53
- AdvancedLogo.defaultProps = {
54
- backgroundColor: WHITE,
55
- width: 539,
56
- height: 182
57
- }
58
-
59
57
  export default AdvancedLogo