@platformatic/ui-components 0.15.5 → 0.17.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 (288) hide show
  1. package/dist/assets/index-BeInQDZN.js +49 -0
  2. package/dist/assets/{index-DMinbJlj.css → index-DE70C3KG.css} +1 -1
  3. package/dist/index.html +2 -2
  4. package/dist/main.css +60 -4
  5. package/package.json +2 -1
  6. package/src/components/ArcMetric.jsx +145 -0
  7. package/src/components/ArcMetric.module.css +31 -0
  8. package/src/components/BorderedBox.jsx +1 -37
  9. package/src/components/Button.jsx +0 -72
  10. package/src/components/ButtonFullRounded.jsx +1 -57
  11. package/src/components/ButtonOnlyIcon.jsx +1 -57
  12. package/src/components/Checkbox.jsx +1 -17
  13. package/src/components/CopyAndPaste.jsx +1 -41
  14. package/src/components/DropDown.jsx +2 -53
  15. package/src/components/FollowUs.jsx +1 -36
  16. package/src/components/HorizontalSeparator.jsx +2 -21
  17. package/src/components/InfoBox.jsx +1 -32
  18. package/src/components/ListElement.jsx +1 -32
  19. package/src/components/LoadingSpinner.jsx +0 -8
  20. package/src/components/LoadingSpinnerV2.jsx +0 -25
  21. package/src/components/LogoDropDown.jsx +0 -28
  22. package/src/components/MetricInfoBox.jsx +80 -0
  23. package/src/components/MetricInfoBox.module.css +42 -0
  24. package/src/components/Modal.jsx +0 -59
  25. package/src/components/ModalDirectional.jsx +0 -28
  26. package/src/components/ModalStepsForward.jsx +1 -21
  27. package/src/components/PlatformaticIcon.jsx +1 -41
  28. package/src/components/SearchBarV2.jsx +1 -45
  29. package/src/components/Sidebar.jsx +0 -53
  30. package/src/components/Status.jsx +1 -18
  31. package/src/components/TabbedWindow.jsx +1 -33
  32. package/src/components/Tag.jsx +1 -44
  33. package/src/components/TextWithLabel.jsx +1 -25
  34. package/src/components/Tooltip.jsx +3 -47
  35. package/src/components/TooltipAbsolute.jsx +1 -41
  36. package/src/components/TrendLine.jsx +146 -0
  37. package/src/components/VerticalSeparator.jsx +1 -22
  38. package/src/components/forms/Field.jsx +1 -37
  39. package/src/components/forms/Input.jsx +1 -85
  40. package/src/components/forms/InputFileUpload.jsx +1 -101
  41. package/src/components/forms/InputWithSeparator.jsx +1 -74
  42. package/src/components/forms/Password.jsx +3 -43
  43. package/src/components/forms/Preview.jsx +1 -51
  44. package/src/components/forms/RadioGroup.jsx +0 -35
  45. package/src/components/forms/Select.jsx +1 -110
  46. package/src/components/forms/SelectWithInput.jsx +1 -111
  47. package/src/components/forms/TextArea.jsx +1 -53
  48. package/src/components/forms/ToggleSwitch.jsx +1 -42
  49. package/src/components/icons/APIDocsIcon.jsx +1 -21
  50. package/src/components/icons/APIKeyIcon.jsx +1 -21
  51. package/src/components/icons/AWSIcon.jsx +1 -21
  52. package/src/components/icons/AddEnvVariableIcon.jsx +1 -17
  53. package/src/components/icons/AddIcon.jsx +1 -21
  54. package/src/components/icons/AddRouteIcon.jsx +1 -17
  55. package/src/components/icons/AddUserIcon.jsx +1 -21
  56. package/src/components/icons/AlertIcon.jsx +1 -21
  57. package/src/components/icons/AllAppsIcon.jsx +1 -21
  58. package/src/components/icons/AllInOneIcon.jsx +1 -21
  59. package/src/components/icons/ApiCloudIcon.jsx +1 -21
  60. package/src/components/icons/ApiEmptyIcon.jsx +1 -21
  61. package/src/components/icons/ApiIcon.jsx +1 -21
  62. package/src/components/icons/ApiIconClosed.jsx +1 -17
  63. package/src/components/icons/ApiPerformanceIcon.jsx +1 -21
  64. package/src/components/icons/AppConfigurationIcon.jsx +1 -21
  65. package/src/components/icons/AppDetailsIcon.jsx +1 -21
  66. package/src/components/icons/AppEditIcon.jsx +1 -21
  67. package/src/components/icons/AppEmptyIcon.jsx +1 -21
  68. package/src/components/icons/AppIcon.jsx +1 -21
  69. package/src/components/icons/AppListIcon.jsx +1 -21
  70. package/src/components/icons/AppMissingIcon.jsx +1 -21
  71. package/src/components/icons/AppOptimizedIcon.jsx +1 -21
  72. package/src/components/icons/AppSettingsIcon.jsx +1 -21
  73. package/src/components/icons/AppStoppedIcon.jsx +1 -21
  74. package/src/components/icons/AppWorkspace.jsx +1 -13
  75. package/src/components/icons/ApplicationTypeIcon.jsx +1 -21
  76. package/src/components/icons/ArrowDownFullIcon.jsx +1 -21
  77. package/src/components/icons/ArrowDownIcon.jsx +1 -21
  78. package/src/components/icons/ArrowLeftIcon.jsx +1 -21
  79. package/src/components/icons/ArrowLongDownIcon.jsx +1 -21
  80. package/src/components/icons/ArrowLongLeftIcon.jsx +1 -21
  81. package/src/components/icons/ArrowLongRightIcon.jsx +1 -21
  82. package/src/components/icons/ArrowLongUpIcon.jsx +1 -21
  83. package/src/components/icons/ArrowRightIcon.jsx +1 -21
  84. package/src/components/icons/ArrowUpIcon.jsx +1 -21
  85. package/src/components/icons/BellIcon.jsx +1 -21
  86. package/src/components/icons/BillingIcon.jsx +1 -21
  87. package/src/components/icons/BranchIcon.jsx +1 -21
  88. package/src/components/icons/BuiltInLoggingIcon.jsx +1 -21
  89. package/src/components/icons/CLIIcon.jsx +1 -21
  90. package/src/components/icons/CacheRecommendationIcon.jsx +1 -21
  91. package/src/components/icons/CachingIcon.jsx +1 -21
  92. package/src/components/icons/Calendar1DayIcon.jsx +1 -21
  93. package/src/components/icons/Calendar7DaysIcon.jsx +1 -21
  94. package/src/components/icons/CalendarIcon.jsx +1 -21
  95. package/src/components/icons/CheckListIcon.jsx +1 -21
  96. package/src/components/icons/CheckListReviewIcon.jsx +1 -21
  97. package/src/components/icons/CircleAddIcon.jsx +1 -21
  98. package/src/components/icons/CircleArrowLeftIcon.jsx +2 -22
  99. package/src/components/icons/CircleArrowRightIcon.jsx +1 -21
  100. package/src/components/icons/CircleCheckMarkButtonIcon.jsx +1 -13
  101. package/src/components/icons/CircleCheckMarkFullIcon.jsx +1 -21
  102. package/src/components/icons/CircleCheckMarkIcon.jsx +1 -21
  103. package/src/components/icons/CircleCloseHoverIcon.jsx +1 -21
  104. package/src/components/icons/CircleCloseIcon.jsx +1 -21
  105. package/src/components/icons/CircleCopyPasteIcon.jsx +1 -21
  106. package/src/components/icons/CircleDownloadIcon.jsx +1 -21
  107. package/src/components/icons/CircleEditIcon.jsx +1 -21
  108. package/src/components/icons/CircleExclamationIcon.jsx +1 -17
  109. package/src/components/icons/CircleFullIcon.jsx +1 -21
  110. package/src/components/icons/CircleGearIcon.jsx +1 -21
  111. package/src/components/icons/CirclePlayIcon.jsx +1 -21
  112. package/src/components/icons/CircleRestartIcon.jsx +1 -21
  113. package/src/components/icons/CircleStopIcon.jsx +1 -21
  114. package/src/components/icons/CircleSubtractIcon.jsx +1 -21
  115. package/src/components/icons/CircleTwoArrowsDownIcon.jsx +1 -21
  116. package/src/components/icons/CircleTwoArrowsUpIcon.jsx +1 -21
  117. package/src/components/icons/CloseIcon.jsx +1 -21
  118. package/src/components/icons/CloudIcon.jsx +1 -21
  119. package/src/components/icons/CodeTestingIcon.jsx +1 -21
  120. package/src/components/icons/CollapseIcon.jsx +1 -21
  121. package/src/components/icons/CollapseSquareIcon.jsx +1 -21
  122. package/src/components/icons/ComputerIcon.jsx +1 -21
  123. package/src/components/icons/ComputerInIcon.jsx +1 -21
  124. package/src/components/icons/ComputerOutIcon.jsx +1 -21
  125. package/src/components/icons/ConfigureDatabaseIcon.jsx +1 -21
  126. package/src/components/icons/CopyPasteIcon.jsx +1 -21
  127. package/src/components/icons/CreateAppIcon.jsx +1 -21
  128. package/src/components/icons/CreatingAppIcon.jsx +1 -21
  129. package/src/components/icons/CreditCardIcon.jsx +1 -21
  130. package/src/components/icons/DatabaseEditIcon.jsx +1 -21
  131. package/src/components/icons/DatabaseIcon.jsx +1 -21
  132. package/src/components/icons/DatabaseMigrationIcon.jsx +1 -21
  133. package/src/components/icons/DepencenciesReloadIcon.jsx +1 -21
  134. package/src/components/icons/DeploymentHistoryIcon.jsx +1 -21
  135. package/src/components/icons/DocumentIcon.jsx +1 -21
  136. package/src/components/icons/DownloadIcon.jsx +1 -21
  137. package/src/components/icons/EditDocumentIcon.jsx +1 -21
  138. package/src/components/icons/EditIcon.jsx +1 -21
  139. package/src/components/icons/EnlargeIcon.jsx +1 -21
  140. package/src/components/icons/EntryIcon.jsx +1 -21
  141. package/src/components/icons/EntrypointIcon.jsx +1 -25
  142. package/src/components/icons/EnvVariableszIcon.jsx +1 -21
  143. package/src/components/icons/ExpandIcon.jsx +1 -25
  144. package/src/components/icons/ExpandSquadreIcon.jsx +1 -21
  145. package/src/components/icons/ExploreDocIcon.jsx +1 -21
  146. package/src/components/icons/ExportIcon.jsx +1 -21
  147. package/src/components/icons/EyeClosedIcon.jsx +1 -21
  148. package/src/components/icons/EyeOpenedIcon.jsx +1 -21
  149. package/src/components/icons/FailureRateIcon.jsx +1 -21
  150. package/src/components/icons/FolderIcon.jsx +1 -21
  151. package/src/components/icons/FoldersIcon.jsx +1 -21
  152. package/src/components/icons/GearIcon.jsx +1 -21
  153. package/src/components/icons/GenerationLoadingIcon.jsx +1 -21
  154. package/src/components/icons/GitHubRepo2Icon.jsx +1 -21
  155. package/src/components/icons/GitHubRepoIcon.jsx +1 -21
  156. package/src/components/icons/GiveOwnershipIcon.jsx +2 -22
  157. package/src/components/icons/GraphQLEditsIcon.jsx +1 -21
  158. package/src/components/icons/GraphQLIcon.jsx +1 -21
  159. package/src/components/icons/HorizontalPodAutoscalerIcon.jsx +1 -21
  160. package/src/components/icons/HourglassIcon.jsx +1 -21
  161. package/src/components/icons/ImportAppIcon.jsx +1 -21
  162. package/src/components/icons/ImportIcon.jsx +1 -21
  163. package/src/components/icons/InfoCircleIcon.jsx +1 -21
  164. package/src/components/icons/InfrastructureIcon.jsx +1 -21
  165. package/src/components/icons/IngressControllIcon.jsx +1 -21
  166. package/src/components/icons/InternalLinkIcon.jsx +1 -25
  167. package/src/components/icons/InternetIcon.jsx +1 -25
  168. package/src/components/icons/K8SIcon.jsx +1 -21
  169. package/src/components/icons/K8SMetricsIcon.jsx +4 -24
  170. package/src/components/icons/KeyIcon.jsx +1 -21
  171. package/src/components/icons/LabelIcon.jsx +1 -21
  172. package/src/components/icons/LayersIcon.jsx +1 -21
  173. package/src/components/icons/LensIcon.jsx +1 -21
  174. package/src/components/icons/LiveIcon.jsx +1 -21
  175. package/src/components/icons/LoadingAppIcon.jsx +1 -21
  176. package/src/components/icons/LogOutIcon.jsx +1 -17
  177. package/src/components/icons/LogsRiskIcon.jsx +1 -21
  178. package/src/components/icons/MailIcon.jsx +1 -21
  179. package/src/components/icons/MetricsIcon.jsx +1 -21
  180. package/src/components/icons/MetricsLoadingIcon.jsx +1 -21
  181. package/src/components/icons/MetricsLogsIcon.jsx +1 -21
  182. package/src/components/icons/MissingTemplateIcon.jsx +1 -21
  183. package/src/components/icons/NameAppIcon.jsx +1 -21
  184. package/src/components/icons/NextJSIcon.jsx +1 -25
  185. package/src/components/icons/NoActivitiesIcon.jsx +1 -21
  186. package/src/components/icons/NoDeploymentsIcon.jsx +1 -21
  187. package/src/components/icons/NoMetricsIcon.jsx +1 -21
  188. package/src/components/icons/NoResultsIcon.jsx +1 -21
  189. package/src/components/icons/NodeJSIcon.jsx +1 -21
  190. package/src/components/icons/NodeJSMetricsIcon.jsx +1 -21
  191. package/src/components/icons/NotCompliantServiceIcon.jsx +1 -25
  192. package/src/components/icons/OpenAPIEditsIcon.jsx +1 -21
  193. package/src/components/icons/OrganizationIcon.jsx +1 -21
  194. package/src/components/icons/OtherLogosGoogleIcon.jsx +1 -21
  195. package/src/components/icons/OutOfBoxGraphQLIcon.jsx +1 -21
  196. package/src/components/icons/OutdatedServiceIcon.jsx +1 -25
  197. package/src/components/icons/PlatformaticComposerIcon.jsx +1 -21
  198. package/src/components/icons/PlatformaticDBIcon.jsx +1 -21
  199. package/src/components/icons/PlatformaticRuntimeIcon.jsx +1 -21
  200. package/src/components/icons/PlatformaticServiceIcon.jsx +1 -21
  201. package/src/components/icons/PlayIcon.jsx +1 -21
  202. package/src/components/icons/PodDetailsIcon.jsx +1 -21
  203. package/src/components/icons/PodLogsIcon.jsx +1 -21
  204. package/src/components/icons/PodMetricsIcon.jsx +1 -21
  205. package/src/components/icons/PodPerformanceIcon.jsx +1 -21
  206. package/src/components/icons/PodServicesIcon.jsx +1 -21
  207. package/src/components/icons/PodSettingsIcon.jsx +1 -21
  208. package/src/components/icons/PodhealthIcon.jsx +1 -21
  209. package/src/components/icons/PreviewPRIcon.jsx +1 -21
  210. package/src/components/icons/PullRequestIcon.jsx +1 -21
  211. package/src/components/icons/PullRequestLoadingIcon.jsx +1 -21
  212. package/src/components/icons/RecentAppsIcon.jsx +1 -21
  213. package/src/components/icons/RemoveAppIcon.jsx +1 -21
  214. package/src/components/icons/RemoveIcon.jsx +1 -21
  215. package/src/components/icons/RequestOwnershipIcon.jsx +1 -21
  216. package/src/components/icons/RequestsIcon.jsx +1 -21
  217. package/src/components/icons/ResourceIcon.jsx +1 -21
  218. package/src/components/icons/RestartIcon.jsx +1 -21
  219. package/src/components/icons/RocketIcon.jsx +1 -21
  220. package/src/components/icons/RouteEditIcon.jsx +1 -21
  221. package/src/components/icons/RouteHistoryIcon.jsx +1 -21
  222. package/src/components/icons/RoutingIcon.jsx +1 -21
  223. package/src/components/icons/RunningAppIcon.jsx +1 -21
  224. package/src/components/icons/RunningIcon.jsx +1 -21
  225. package/src/components/icons/ScalerDetailsIcon.jsx +1 -21
  226. package/src/components/icons/ScalerHistoryIcon.jsx +1 -21
  227. package/src/components/icons/ScheduledJobSettingsIcon.jsx +1 -21
  228. package/src/components/icons/ScheduledJobsAppIcon.jsx +1 -21
  229. package/src/components/icons/ScheduledJobsCreateIcon.jsx +1 -21
  230. package/src/components/icons/ScheduledJobsDetailIcon.jsx +1 -21
  231. package/src/components/icons/ScheduledJobsIcon.jsx +1 -21
  232. package/src/components/icons/ScheduledJobsSuspendIcon.jsx +1 -21
  233. package/src/components/icons/SendIcon.jsx +1 -21
  234. package/src/components/icons/ServiceIcon.jsx +1 -21
  235. package/src/components/icons/ServicesWorkingIcon.jsx +1 -21
  236. package/src/components/icons/SlotIcon.jsx +1 -21
  237. package/src/components/icons/SocialDiscordIcon.jsx +1 -21
  238. package/src/components/icons/SocialGitHubIcon.jsx +1 -21
  239. package/src/components/icons/SocialGitLabIcon.jsx +1 -21
  240. package/src/components/icons/SocialLinkedInIcon.jsx +1 -21
  241. package/src/components/icons/SocialNPMIcon.jsx +1 -21
  242. package/src/components/icons/SocialXIcon.jsx +1 -21
  243. package/src/components/icons/SortDownArrowAndBarIcon.jsx +1 -21
  244. package/src/components/icons/SortDownIcon.jsx +1 -21
  245. package/src/components/icons/SortIcon.jsx +1 -21
  246. package/src/components/icons/SortUpArrowAndBarIcon.jsx +1 -21
  247. package/src/components/icons/SortUpIcon.jsx +1 -21
  248. package/src/components/icons/SortableIcon.jsx +1 -21
  249. package/src/components/icons/StackablesIcon.jsx +1 -21
  250. package/src/components/icons/StackablesPluginIcon.jsx +1 -21
  251. package/src/components/icons/StackablesTemplateIcon.jsx +1 -21
  252. package/src/components/icons/StopIcon.jsx +1 -21
  253. package/src/components/icons/SuspendIcon.jsx +1 -21
  254. package/src/components/icons/SwitchIcon.jsx +1 -21
  255. package/src/components/icons/TableIcon.jsx +1 -21
  256. package/src/components/icons/TaxonomyIcon.jsx +1 -21
  257. package/src/components/icons/TeamsIcon.jsx +1 -21
  258. package/src/components/icons/TerminalIcon.jsx +1 -21
  259. package/src/components/icons/TrashIcon.jsx +1 -21
  260. package/src/components/icons/TrendDownIcon.jsx +41 -0
  261. package/src/components/icons/TrendUpIcon.jsx +43 -0
  262. package/src/components/icons/TwoUsersIcon.jsx +1 -21
  263. package/src/components/icons/UpgradeIcon.jsx +1 -21
  264. package/src/components/icons/UploadFileIcon.jsx +1 -21
  265. package/src/components/icons/UserComputerIcon.jsx +1 -21
  266. package/src/components/icons/UserIcon.jsx +1 -21
  267. package/src/components/icons/UserRemoveIcon.jsx +1 -17
  268. package/src/components/icons/UserRoleIcon.jsx +1 -17
  269. package/src/components/icons/WorkspaceDynamicIcon.jsx +1 -21
  270. package/src/components/icons/WorkspaceEmptyIcon.jsx +1 -21
  271. package/src/components/icons/WorkspaceFailIcon.jsx +1 -21
  272. package/src/components/icons/WorkspaceGitHubIcon.jsx +1 -21
  273. package/src/components/icons/WorkspaceLoadingIcon.jsx +1 -21
  274. package/src/components/icons/WorkspaceReadyIcon.jsx +1 -21
  275. package/src/components/icons/WorkspaceStaticIcon.jsx +1 -21
  276. package/src/components/icons/ZoomInIcon.jsx +2 -22
  277. package/src/components/icons/ZoomOutIcon.jsx +1 -21
  278. package/src/components/icons/index.js +4 -0
  279. package/src/components/layouts/Layout.jsx +0 -12
  280. package/src/components/loaders/SpinnerCircular.jsx +1 -21
  281. package/src/components/logos/AdvancedLogo.jsx +0 -16
  282. package/src/components/logos/BasicLogo.jsx +0 -16
  283. package/src/components/logos/FreeLogo.jsx +0 -16
  284. package/src/components/logos/ProLogo.jsx +0 -16
  285. package/src/stories/ArcMetric.stories.jsx +17 -0
  286. package/src/stories/MetricInfoBox.stories.jsx +39 -0
  287. package/src/stories/TrendLine.stories.jsx +20 -0
  288. package/dist/assets/index-4liAiWzS.js +0 -49
@@ -1,5 +1,4 @@
1
1
  import React, { useRef } from 'react'
2
- import PropTypes from 'prop-types'
3
2
  import ButtonFullRounded from './ButtonFullRounded'
4
3
  import useEscapeKey from '../hooks/useEscapeKey'
5
4
  import Logo from './Logo'
@@ -7,16 +6,13 @@ import Logos from './logos'
7
6
  import styles from './Modal.module.css'
8
7
  import commonStyles from './Common.module.css'
9
8
  import {
10
- MODAL_SIZES,
11
9
  SMALL,
12
- MODAL_LAYOUTS,
13
10
  MODAL_COVER,
14
11
  MODAL_POPUP,
15
12
  MODAL_POPUP_V2,
16
13
  MAIN_DARK_BLUE,
17
14
  DULLS_BACKGROUND_COLOR,
18
15
  LARGE,
19
- PROFILES,
20
16
  FREE,
21
17
  BASIC,
22
18
  MODAL_FULL_DARK,
@@ -262,59 +258,4 @@ function Modal ({
262
258
  return whichModal
263
259
  }
264
260
 
265
- Modal.propTypes = {
266
- /**
267
- * children
268
- */
269
- children: PropTypes.node,
270
- /**
271
- * childrenClassContainer
272
- */
273
- childrenClassContainer: PropTypes.string,
274
- /**
275
- * setIsOpen: function from Parent for close/pen
276
- */
277
- setIsOpen: PropTypes.func,
278
- /**
279
- * title: Title on top for small Modals (check MODAL_LAYOUTS)
280
- */
281
- title: PropTypes.string,
282
- /**
283
- * layout: type of Layout of the modal
284
- */
285
- layout: PropTypes.oneOf(MODAL_LAYOUTS),
286
- /**
287
- * Size: of the modal
288
- */
289
- size: PropTypes.oneOf(MODAL_SIZES),
290
- /**
291
- * profile: deprecated
292
- */
293
- profile: PropTypes.oneOf(PROFILES),
294
- /**
295
- * backgroundClassName: background of the full screen modal
296
- */
297
- backgroundClassName: PropTypes.string,
298
- /**
299
- * titleClassName: classes of the title
300
- */
301
- titleClassName: PropTypes.string,
302
- /**
303
- * modalCloseClassName: classes for the closing icon
304
- */
305
- modalCloseClassName: PropTypes.string,
306
- /**
307
- * permanent: modal could be closed only with Esc, X or Cancel
308
- */
309
- permanent: PropTypes.bool,
310
- /**
311
- * showCloseButtonOnTop: show button on X
312
- */
313
- showCloseButtonOnTop: PropTypes.bool,
314
- /**
315
- * additionalModalClassName: show button on X
316
- */
317
- additionalModalClassName: PropTypes.string
318
- }
319
-
320
261
  export default Modal
@@ -1,5 +1,4 @@
1
1
  import React, { useState, useEffect } from 'react'
2
- import PropTypes from 'prop-types'
3
2
  import useEscapeKey from '../hooks/useEscapeKey'
4
3
  import styles from './ModalDirectional.module.css'
5
4
  import {
@@ -55,31 +54,4 @@ function ModalDirectional ({
55
54
  )
56
55
  }
57
56
 
58
- ModalDirectional.propTypes = {
59
- /**
60
- * children
61
- */
62
- children: PropTypes.node,
63
- /**
64
- * setIsOpen
65
- */
66
- setIsOpen: PropTypes.func,
67
- /**
68
- * smallLayout
69
- */
70
- smallLayout: PropTypes.bool,
71
- /**
72
- * classNameModalLefty
73
- */
74
- classNameModalLefty: PropTypes.string,
75
- /**
76
- * permanent: modal could be closed only with Esc, X or Cancel
77
- */
78
- permanent: PropTypes.bool,
79
- /**
80
- * blurClassName: override
81
- */
82
- blurClassName: PropTypes.string
83
- }
84
-
85
57
  export default ModalDirectional
@@ -1,10 +1,9 @@
1
1
  import React from 'react'
2
- import PropTypes from 'prop-types'
2
+ import styles from './ModalStepsForward.module.css'
3
3
  import ButtonFullRounded from './ButtonFullRounded'
4
4
  import useEscapeKey from '../hooks/useEscapeKey'
5
5
  import Logo from './Logo'
6
6
  import HorizontalSeparator from './HorizontalSeparator'
7
- import styles from './ModalStepsForward.module.css'
8
7
  import commonStyles from './Common.module.css'
9
8
  import {
10
9
  MAIN_DARK_BLUE,
@@ -55,23 +54,4 @@ function ModalStepsForward ({
55
54
  )
56
55
  }
57
56
 
58
- ModalStepsForward.propTypes = {
59
- /**
60
- * setIsOpen
61
- */
62
- setIsOpen: PropTypes.func,
63
- /**
64
- * right
65
- */
66
- right: PropTypes.node,
67
- /**
68
- * stepper
69
- */
70
- stepper: PropTypes.node,
71
- /**
72
- * left
73
- */
74
- left: PropTypes.node
75
- }
76
-
77
57
  export default ModalStepsForward
@@ -1,8 +1,7 @@
1
1
  import React, { useState } from 'react'
2
- import PropTypes from 'prop-types'
3
2
  import Icons from './icons'
4
3
  import styles from './PlatformaticIcon.module.css'
5
- import { COLORS_ICON, MAIN_GREEN, SIZES, SMALL } from './constants'
4
+ import { MAIN_GREEN, SMALL } from './constants'
6
5
 
7
6
  function PlatformaticIcon ({
8
7
  iconName = '',
@@ -50,43 +49,4 @@ function PlatformaticIcon ({
50
49
  )
51
50
  }
52
51
 
53
- PlatformaticIcon.propTypes = {
54
- /**
55
- * iconName
56
- */
57
- iconName: PropTypes.string.isRequired,
58
- /**
59
- * color
60
- */
61
- color: PropTypes.oneOf(COLORS_ICON),
62
- /**
63
- * size
64
- */
65
- size: PropTypes.oneOf(SIZES),
66
- /**
67
- * onClick
68
- */
69
- onClick: PropTypes.func,
70
- /**
71
- * classes
72
- */
73
- classes: PropTypes.string,
74
- /**
75
- * tip
76
- */
77
- tip: PropTypes.string,
78
- /**
79
- * disabled
80
- */
81
- disabled: PropTypes.bool,
82
- /**
83
- * inactive
84
- */
85
- inactive: PropTypes.bool,
86
- /**
87
- * handleOverInternally
88
- */
89
- internalOverHandling: PropTypes.bool
90
- }
91
-
92
52
  export default PlatformaticIcon
@@ -1,9 +1,8 @@
1
1
  import React, { useRef, useState } from 'react'
2
- import PropTypes from 'prop-types'
3
2
  import commonStyles from './Common.module.css'
4
3
  import styles from './SearchBarV2.module.css'
5
4
  import PlatformaticIcon from './PlatformaticIcon'
6
- import { RICH_BLACK, SMALL, TRANSPARENT, WHITE } from './constants'
5
+ import { RICH_BLACK, SMALL, WHITE } from './constants'
7
6
  function SearchBarV2 ({
8
7
  color = WHITE,
9
8
  backgroundColor = RICH_BLACK,
@@ -90,47 +89,4 @@ function SearchBarV2 ({
90
89
  )
91
90
  }
92
91
 
93
- SearchBarV2.propTypes = {
94
- /**
95
- * onSubmit
96
- */
97
- onSubmit: PropTypes.func,
98
- /**
99
- * onSubmit
100
- */
101
- onChange: PropTypes.func,
102
- /**
103
- * onSubmit
104
- */
105
- onClear: PropTypes.func,
106
- /**
107
- * color
108
- */
109
- color: PropTypes.oneOf([WHITE, RICH_BLACK]),
110
- /**
111
- * backgroundColor
112
- */
113
- backgroundColor: PropTypes.oneOf([WHITE, RICH_BLACK, TRANSPARENT]),
114
- /**
115
- * placeholder
116
- */
117
- placeholder: PropTypes.string,
118
- /**
119
- * dataAttrName
120
- */
121
- dataAttrName: PropTypes.string,
122
- /**
123
- * dataAttrValue
124
- */
125
- dataAttrValue: PropTypes.string,
126
- /**
127
- * inputTextClassName
128
- */
129
- inputTextClassName: PropTypes.string,
130
- /**
131
- * paddingClass
132
- */
133
- paddingClass: PropTypes.string
134
- }
135
-
136
92
  export default SearchBarV2
@@ -7,7 +7,6 @@ import styles from './Sidebar.module.css'
7
7
  import ReactTooltip from 'react-tooltip'
8
8
  import HorizontalSeparator from './HorizontalSeparator'
9
9
  import PlatformaticIcon from './PlatformaticIcon'
10
- import PropTypes from 'prop-types'
11
10
  import { DULLS_BACKGROUND_COLOR, MEDIUM, WHITE } from './constants'
12
11
 
13
12
  function Sidebar ({
@@ -137,56 +136,4 @@ function Sidebar ({
137
136
  )
138
137
  }
139
138
 
140
- Sidebar.propTypes = {
141
- /**
142
- * title
143
- */
144
- title: PropTypes.string,
145
- /**
146
- * title
147
- */
148
- labelButtonSettings: PropTypes.string,
149
- /**
150
- * defaultSelected
151
- */
152
- defaultSelected: PropTypes.string,
153
- /**
154
- * addTitle
155
- */
156
- addTitle: PropTypes.string,
157
- /**
158
- * items: array with keys
159
- * id: id of the worspacedSeleted
160
- * title: name to display
161
- * subtitle: secondary title
162
- * icon: what Icon
163
- */
164
- items: PropTypes.arrayOf(PropTypes.shape({
165
- id: PropTypes.string.isRequired,
166
- title: PropTypes.string,
167
- subtitle: PropTypes.string,
168
- iconName: PropTypes.string
169
- })),
170
- /**
171
- * Apply onClickItemSelectedParent
172
- */
173
- onClickItemSelectedParent: PropTypes.func,
174
- /**
175
- * Apply onClickAdd: function called clicking on plus button
176
- */
177
- onClickAdd: PropTypes.func,
178
- /**
179
- * Apply onClickSettings: function called clicking on Settings button
180
- */
181
- onClickSettings: PropTypes.func,
182
- /**
183
- * disableClickAdd
184
- */
185
- disableClickAdd: PropTypes.bool,
186
- /**
187
- * disableClickSettings
188
- */
189
- disableClickSettings: PropTypes.bool
190
- }
191
-
192
139
  export default Sidebar
@@ -1,7 +1,6 @@
1
1
  import React from 'react'
2
- import PropTypes from 'prop-types'
3
2
  import PlatformaticIcon from './PlatformaticIcon'
4
- import { COLORS_ICON, TINY, SIZES, WHITE } from './constants'
3
+ import { TINY, WHITE } from './constants'
5
4
 
6
5
  function Status ({
7
6
  color = WHITE,
@@ -17,20 +16,4 @@ function Status ({
17
16
  )
18
17
  }
19
18
 
20
- Status.propTypes = {
21
- /**
22
- * color
23
- */
24
- color: PropTypes.oneOf(COLORS_ICON),
25
- /**
26
- * status
27
- */
28
- status: PropTypes.string,
29
- /**
30
- * Size
31
- */
32
- size: PropTypes.oneOf(SIZES)
33
-
34
- }
35
-
36
19
  export default Status
@@ -1,7 +1,6 @@
1
1
  import React, { useEffect, useState } from 'react'
2
- import PropTypes from 'prop-types'
3
2
  import styles from './TabbedWindow.module.css'
4
- import { COLORS_BUTTON, WHITE } from './constants'
3
+ import { WHITE } from './constants'
5
4
 
6
5
  function TabbedWindow ({
7
6
  tabs = [],
@@ -53,35 +52,4 @@ function TabbedWindow ({
53
52
  )
54
53
  }
55
54
 
56
- TabbedWindow.propTypes = {
57
- /**
58
- * tabs
59
- */
60
- tabs: PropTypes.array,
61
- /**
62
- * keySelected
63
- */
64
- keySelected: PropTypes.string,
65
- /**
66
- * callbackSelected
67
- */
68
- callbackSelected: PropTypes.func,
69
- /**
70
- * tabContainerClassName
71
- */
72
- tabContainerClassName: PropTypes.string,
73
- /**
74
- * tabContentClassName
75
- */
76
- tabContentClassName: PropTypes.string,
77
- /**
78
- * textClassName
79
- */
80
- textClassName: PropTypes.string,
81
- /**
82
- * horizontalSeparatorColor
83
- */
84
- horizontalSeparatorColor: PropTypes.oneOf(COLORS_BUTTON)
85
- }
86
-
87
55
  export default TabbedWindow
@@ -1,8 +1,7 @@
1
1
  import React from 'react'
2
- import PropTypes from 'prop-types'
3
2
  import commonStyles from './Common.module.css'
4
3
  import styles from './Tag.module.css'
5
- import { COLORS_BUTTON, OPACITY_100, OPACITIES, SIZES, WHITE } from './constants'
4
+ import { OPACITY_100, WHITE } from './constants'
6
5
  import PlatformaticIcon from './PlatformaticIcon'
7
6
 
8
7
  function Tag ({
@@ -37,47 +36,5 @@ function Tag ({
37
36
  </div>
38
37
  )
39
38
  }
40
- Tag.propTypes = {
41
- /**
42
- * color
43
- */
44
- color: PropTypes.oneOf(COLORS_BUTTON),
45
- /**
46
- * text
47
- */
48
- text: PropTypes.string,
49
- /**
50
- * textClassName
51
- */
52
- textClassName: PropTypes.string,
53
- /**
54
- * backgroundColor
55
- */
56
- backgroundColor: PropTypes.oneOf(COLORS_BUTTON),
57
- /**
58
- * bordered
59
- */
60
- bordered: PropTypes.bool,
61
- /**
62
- * opaque
63
- */
64
- opaque: PropTypes.oneOf([OPACITIES]),
65
- /**
66
- * fullRounded
67
- */
68
- fullRounded: PropTypes.bool,
69
- /**
70
- * platformaticIcon
71
- */
72
- platformaticIcon: PropTypes.shape({
73
- iconName: PropTypes.string,
74
- color: PropTypes.oneOf(COLORS_BUTTON),
75
- size: PropTypes.oneOf(SIZES)
76
- }),
77
- /**
78
- * paddingClass
79
- */
80
- paddingClass: PropTypes.string
81
- }
82
39
 
83
40
  export default Tag
@@ -1,6 +1,5 @@
1
1
  import React from 'react'
2
- import PropTypes from 'prop-types'
3
- import { FONT_BASE, FONT_XS, MAIN_DARK_BLUE, WHITE } from './constants'
2
+ import { FONT_BASE, WHITE } from './constants'
4
3
  import commonStyles from './Common.module.css'
5
4
  import styles from './TextWithLabel.module.css'
6
5
 
@@ -23,27 +22,4 @@ function TextWithLabel (props) {
23
22
  )
24
23
  }
25
24
 
26
- TextWithLabel.propTypes = {
27
- /**
28
- * label
29
- */
30
- label: PropTypes.string,
31
- /**
32
- * text
33
- */
34
- text: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
35
- /**
36
- * children
37
- */
38
- children: PropTypes.node,
39
- /**
40
- * white
41
- */
42
- color: PropTypes.oneOf([WHITE, MAIN_DARK_BLUE]),
43
- /**
44
- * Font Size
45
- */
46
- fontSize: PropTypes.oneOf([FONT_BASE, FONT_XS])
47
- }
48
-
49
25
  export default TextWithLabel
@@ -1,7 +1,6 @@
1
- import PropTypes from 'prop-types'
1
+ import React, { useEffect, useRef, useState } from 'react'
2
2
  import styles from './Tooltip.module.css'
3
- import { useEffect, useRef, useState } from 'react'
4
- import { DIRECTIONS, DIRECTION_BOTTOM, DIRECTION_LEFT, DIRECTION_RIGHT, DIRECTION_TOP, POSITIONS, POSITION_CENTER, POSITION_END, POSITION_START } from './constants'
3
+ import { DIRECTION_BOTTOM, DIRECTION_LEFT, DIRECTION_RIGHT, DIRECTION_TOP, POSITION_CENTER, POSITION_END, POSITION_START } from './constants'
5
4
 
6
5
  function Tooltip ({
7
6
  immediateActive = true,
@@ -24,7 +23,7 @@ function Tooltip ({
24
23
  componentClassName += ' ' + styles[`${position}`]
25
24
  }
26
25
  const fixedStyle = { top: '0px', left: '0px' }
27
- const wrapperRef = useRef()
26
+ const wrapperRef = useRef(null)
28
27
 
29
28
  useEffect(() => {
30
29
  if (activeDependsOnVisible) {
@@ -115,47 +114,4 @@ function Tooltip ({
115
114
  )
116
115
  }
117
116
 
118
- Tooltip.propTypes = {
119
- /**
120
- * direction
121
- */
122
- direction: PropTypes.oneOf(DIRECTIONS),
123
- /**
124
- * content
125
- */
126
- content: PropTypes.node,
127
- /**
128
- * children
129
- */
130
- children: PropTypes.node,
131
- /**
132
- * tooltipClassName
133
- */
134
- tooltipClassName: PropTypes.string,
135
- /**
136
- * delay
137
- */
138
- delay: PropTypes.number,
139
- /**
140
- * visible
141
- */
142
- visible: PropTypes.bool,
143
- /**
144
- * immediateActive
145
- */
146
- immediateActive: PropTypes.bool,
147
- /**
148
- * activeDependsOnVisible
149
- */
150
- activeDependsOnVisible: PropTypes.bool,
151
- /**
152
- * offset
153
- */
154
- offset: PropTypes.number,
155
- /**
156
- * position
157
- */
158
- position: PropTypes.oneOf(POSITIONS)
159
- }
160
-
161
117
  export default Tooltip
@@ -1,7 +1,6 @@
1
- import PropTypes from 'prop-types'
2
1
  import styles from './TooltipAbsolute.module.css'
3
2
  import { useEffect, useState } from 'react'
4
- import { DIRECTIONS, DIRECTION_LEFT, DIRECTION_BOTTOM, DIRECTION_TOP, DIRECTION_RIGHT, POSITION_START } from './constants'
3
+ import { DIRECTION_LEFT, DIRECTION_BOTTOM, DIRECTION_TOP, DIRECTION_RIGHT, POSITION_START } from './constants'
5
4
 
6
5
  const TooltipAbsolute = ({
7
6
  direction = DIRECTION_TOP,
@@ -69,43 +68,4 @@ const TooltipAbsolute = ({
69
68
  )
70
69
  }
71
70
 
72
- TooltipAbsolute.propTypes = {
73
- /**
74
- * direction
75
- */
76
- direction: PropTypes.oneOf(DIRECTIONS),
77
- /**
78
- * content
79
- */
80
- content: PropTypes.node,
81
- /**
82
- * children
83
- */
84
- children: PropTypes.node,
85
- /**
86
- * tooltipClassName
87
- */
88
- tooltipClassName: PropTypes.string,
89
- /**
90
- * delay
91
- */
92
- delay: PropTypes.number,
93
- /**
94
- * offset
95
- */
96
- offset: PropTypes.number,
97
- /**
98
- * position
99
- */
100
- position: PropTypes.string,
101
- /**
102
- * visible
103
- */
104
- visible: PropTypes.bool,
105
- /**
106
- * activeDependsOnVisible
107
- */
108
- activeDependsOnVisible: PropTypes.bool
109
- }
110
-
111
71
  export default TooltipAbsolute