@platformatic/ui-components 0.1.123 → 0.1.125

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 (178) hide show
  1. package/dist/assets/index-78f54889.js +206 -0
  2. package/dist/assets/index-89e9ad97.css +1 -0
  3. package/dist/index.html +2 -2
  4. package/dist/main.css +0 -10
  5. package/fonts/Inter/Inter-VariableFont_slnt,wght.ttf +0 -0
  6. package/fonts/Inter/OFL.txt +93 -0
  7. package/fonts/Inter/README.txt +72 -0
  8. package/fonts/Inter/static/Inter-Black.ttf +0 -0
  9. package/fonts/Inter/static/Inter-Bold.ttf +0 -0
  10. package/fonts/Inter/static/Inter-ExtraBold.ttf +0 -0
  11. package/fonts/Inter/static/Inter-ExtraLight.ttf +0 -0
  12. package/fonts/Inter/static/Inter-Light.ttf +0 -0
  13. package/fonts/Inter/static/Inter-Medium.ttf +0 -0
  14. package/fonts/Inter/static/Inter-Regular.ttf +0 -0
  15. package/fonts/Inter/static/Inter-SemiBold.ttf +0 -0
  16. package/fonts/Inter/static/Inter-Thin.ttf +0 -0
  17. package/fonts/{Montserrat/fonts.css → fonts.css} +7 -0
  18. package/index.js +8 -0
  19. package/package.json +1 -1
  20. package/src/components/BorderedBox.jsx +25 -6
  21. package/src/components/BorderedBox.module.css +3 -0
  22. package/src/components/Common.module.css +34 -3
  23. package/src/components/HorizontalSeparator.jsx +2 -1
  24. package/src/components/HorizontalSeparator.module.css +19 -0
  25. package/src/components/LoadingSpinnerV2.jsx +45 -0
  26. package/src/components/LoadingSpinnerV2.module.css +8 -0
  27. package/src/components/Modal.jsx +36 -3
  28. package/src/components/Modal.module.css +9 -1
  29. package/src/components/ModalDirectional.jsx +83 -0
  30. package/src/components/ModalDirectional.module.css +38 -0
  31. package/src/components/PlatformaticIcon.jsx +20 -5
  32. package/src/components/SearchBarV2.jsx +120 -0
  33. package/src/components/SearchBarV2.module.css +28 -0
  34. package/src/components/Sidebar.jsx +91 -86
  35. package/src/components/Sidebar.module.css +4 -4
  36. package/src/components/TabbedWindowV2.jsx +82 -0
  37. package/src/components/TabbedWindowV2.module.css +17 -0
  38. package/src/components/VerticalSeparator.jsx +18 -6
  39. package/src/components/VerticalSeparator.module.css +3 -0
  40. package/src/components/constants.js +10 -2
  41. package/src/components/forms/Field.jsx +29 -8
  42. package/src/components/forms/Field.module.css +7 -1
  43. package/src/components/forms/Input.jsx +73 -8
  44. package/src/components/forms/Input.module.css +8 -3
  45. package/src/components/forms/Select.jsx +98 -20
  46. package/src/components/forms/Select.module.css +17 -6
  47. package/src/components/forms/ToggleSwitch.jsx +11 -5
  48. package/src/components/forms/ToggleSwitch.module.css +2 -2
  49. package/src/components/icons/AddIcon.jsx +12 -5
  50. package/src/components/icons/AlertIcon.jsx +12 -5
  51. package/src/components/icons/AllInOneIcon.jsx +12 -5
  52. package/src/components/icons/ApiCloudIcon.jsx +12 -5
  53. package/src/components/icons/ApiEmptyIcon.jsx +12 -5
  54. package/src/components/icons/ApiIcon.jsx +12 -5
  55. package/src/components/icons/ApiIconClosed.jsx +10 -4
  56. package/src/components/icons/ApiPerformanceIcon.jsx +12 -5
  57. package/src/components/icons/AppEmptyIcon.jsx +12 -5
  58. package/src/components/icons/AppIcon.jsx +12 -5
  59. package/src/components/icons/AppListIcon.jsx +12 -5
  60. package/src/components/icons/AppWorkspace.jsx +5 -2
  61. package/src/components/icons/ApplicationTypeIcon.jsx +12 -5
  62. package/src/components/icons/ArrowDownFullIcon.jsx +12 -5
  63. package/src/components/icons/ArrowDownIcon.jsx +12 -5
  64. package/src/components/icons/ArrowLeftIcon.jsx +12 -5
  65. package/src/components/icons/ArrowLongLeftIcon.jsx +84 -0
  66. package/src/components/icons/ArrowLongRightIcon.jsx +12 -5
  67. package/src/components/icons/ArrowRightIcon.jsx +12 -5
  68. package/src/components/icons/ArrowUpIcon.jsx +12 -5
  69. package/src/components/icons/BellIcon.jsx +12 -5
  70. package/src/components/icons/BillingIcon.jsx +12 -5
  71. package/src/components/icons/Calendar1DayIcon.jsx +12 -5
  72. package/src/components/icons/Calendar7DaysIcon.jsx +12 -5
  73. package/src/components/icons/CalendarIcon.jsx +12 -5
  74. package/src/components/icons/CheckListIcon.jsx +12 -5
  75. package/src/components/icons/CircleAddIcon.jsx +12 -5
  76. package/src/components/icons/CircleArrowLeftIcon.jsx +12 -5
  77. package/src/components/icons/CircleArrowRightIcon.jsx +12 -5
  78. package/src/components/icons/CircleCheckMarkButtonIcon.jsx +7 -3
  79. package/src/components/icons/CircleCheckMarkFullIcon.jsx +12 -5
  80. package/src/components/icons/CircleCheckMarkIcon.jsx +10 -4
  81. package/src/components/icons/CircleCloseHoverIcon.jsx +12 -5
  82. package/src/components/icons/CircleCloseIcon.jsx +12 -5
  83. package/src/components/icons/CircleCopyPasteIcon.jsx +12 -5
  84. package/src/components/icons/CircleDownloadIcon.jsx +12 -5
  85. package/src/components/icons/CircleEditIcon.jsx +12 -5
  86. package/src/components/icons/CircleExclamationIcon.jsx +5 -2
  87. package/src/components/icons/CircleFullIcon.jsx +12 -5
  88. package/src/components/icons/CircleGearIcon.jsx +12 -5
  89. package/src/components/icons/CircleRestartIcon.jsx +12 -5
  90. package/src/components/icons/CircleSubtractIcon.jsx +12 -5
  91. package/src/components/icons/CircleTwoArrowsDownIcon.jsx +12 -5
  92. package/src/components/icons/CircleTwoArrowsUpIcon.jsx +12 -5
  93. package/src/components/icons/CloseIcon.jsx +12 -5
  94. package/src/components/icons/CloudIcon.jsx +12 -5
  95. package/src/components/icons/ConfigureDatabaseIcon.jsx +12 -5
  96. package/src/components/icons/CopyPasteIcon.jsx +12 -5
  97. package/src/components/icons/CreatingAppIcon.jsx +12 -5
  98. package/src/components/icons/CreditCardIcon.jsx +12 -5
  99. package/src/components/icons/DatabaseIcon.jsx +12 -5
  100. package/src/components/icons/DatabaseMigrationIcon.jsx +12 -5
  101. package/src/components/icons/DepencenciesReloadIcon.jsx +12 -5
  102. package/src/components/icons/EditDocumentIcon.jsx +12 -5
  103. package/src/components/icons/EditIcon.jsx +12 -5
  104. package/src/components/icons/EnlargeIcon.jsx +12 -5
  105. package/src/components/icons/EntryIcon.jsx +12 -5
  106. package/src/components/icons/ExpandIcon.jsx +92 -0
  107. package/src/components/icons/ExploreDocIcon.jsx +12 -5
  108. package/src/components/icons/EyeClosedIcon.jsx +12 -5
  109. package/src/components/icons/EyeOpenedIcon.jsx +12 -5
  110. package/src/components/icons/FolderIcon.jsx +83 -0
  111. package/src/components/icons/FoldersIcon.jsx +86 -0
  112. package/src/components/icons/GearIcon.jsx +12 -5
  113. package/src/components/icons/GenerationLoadingIcon.jsx +12 -5
  114. package/src/components/icons/GitHubRepo2Icon.jsx +12 -5
  115. package/src/components/icons/GitHubRepoIcon.jsx +12 -5
  116. package/src/components/icons/GiveOwnershipIcon.jsx +12 -5
  117. package/src/components/icons/GraphQLIcon.jsx +12 -5
  118. package/src/components/icons/Icons.module.css +7 -2
  119. package/src/components/icons/ImportApplicationIcon.jsx +12 -5
  120. package/src/components/icons/KeyIcon.jsx +12 -5
  121. package/src/components/icons/LabelIcon.jsx +12 -5
  122. package/src/components/icons/LayersIcon.jsx +12 -5
  123. package/src/components/icons/LensIcon.jsx +12 -5
  124. package/src/components/icons/LiveIcon.jsx +12 -5
  125. package/src/components/icons/LoadingAppIcon.jsx +12 -5
  126. package/src/components/icons/LogOutIcon.jsx +5 -2
  127. package/src/components/icons/MetricsIcon.jsx +12 -5
  128. package/src/components/icons/MetricsLoadingIcon.jsx +12 -5
  129. package/src/components/icons/NameAppIcon.jsx +12 -5
  130. package/src/components/icons/OrganizationIcon.jsx +12 -5
  131. package/src/components/icons/OutOfBoxGraphQLIcon.jsx +12 -5
  132. package/src/components/icons/PlatformaticComposerIcon.jsx +12 -5
  133. package/src/components/icons/PlatformaticDBIcon.jsx +12 -5
  134. package/src/components/icons/PlatformaticRuntimeIcon.jsx +12 -5
  135. package/src/components/icons/PlatformaticServiceIcon.jsx +12 -5
  136. package/src/components/icons/PlayIcon.jsx +12 -5
  137. package/src/components/icons/PreviewPRIcon.jsx +12 -5
  138. package/src/components/icons/PullRequestIcon.jsx +12 -5
  139. package/src/components/icons/PullRequestLoadingIcon.jsx +12 -5
  140. package/src/components/icons/RequestOwnershipIcon.jsx +12 -5
  141. package/src/components/icons/RestartIcon.jsx +12 -5
  142. package/src/components/icons/RocketIcon.jsx +12 -5
  143. package/src/components/icons/RunningIcon.jsx +12 -5
  144. package/src/components/icons/SendIcon.jsx +12 -5
  145. package/src/components/icons/ServiceIcon.jsx +12 -5
  146. package/src/components/icons/SlotIcon.jsx +12 -5
  147. package/src/components/icons/SocialDiscordIcon.jsx +12 -5
  148. package/src/components/icons/SocialGitHubIcon.jsx +12 -5
  149. package/src/components/icons/SocialGitLabIcon.jsx +12 -5
  150. package/src/components/icons/SocialLinkedInIcon.jsx +12 -5
  151. package/src/components/icons/SocialNPMIcon.jsx +12 -5
  152. package/src/components/icons/SocialXIcon.jsx +12 -5
  153. package/src/components/icons/SortableIcon.jsx +93 -0
  154. package/src/components/icons/StackablesPluginIcon.jsx +134 -0
  155. package/src/components/icons/StackablesTemplateIcon.jsx +133 -0
  156. package/src/components/icons/StopIcon.jsx +12 -5
  157. package/src/components/icons/SwitchIcon.jsx +12 -5
  158. package/src/components/icons/TeamsIcon.jsx +12 -5
  159. package/src/components/icons/TerminalIcon.jsx +12 -5
  160. package/src/components/icons/TrashIcon.jsx +95 -0
  161. package/src/components/icons/TwoUsersIcon.jsx +12 -5
  162. package/src/components/icons/UpgradeIcon.jsx +12 -5
  163. package/src/components/icons/UserIcon.jsx +12 -5
  164. package/src/components/icons/UserRemoveIcon.jsx +5 -2
  165. package/src/components/icons/UserRoleIcon.jsx +5 -2
  166. package/src/components/icons/WorkspaceDynamicIcon.jsx +12 -5
  167. package/src/components/icons/WorkspaceEmptyIcon.jsx +12 -5
  168. package/src/components/icons/WorkspaceFailIcon.jsx +12 -5
  169. package/src/components/icons/WorkspaceGitHubIcon.jsx +12 -5
  170. package/src/components/icons/WorkspaceLoadingIcon.jsx +12 -5
  171. package/src/components/icons/WorkspaceReadyIcon.jsx +12 -5
  172. package/src/components/icons/WorkspaceStaticIcon.jsx +12 -5
  173. package/src/components/icons/index.js +23 -7
  174. package/src/stories/ModalDirectional.stories.jsx +45 -0
  175. package/src/stories/forms/Select.stories.jsx +33 -1
  176. package/tailwind.config.cjs +5 -2
  177. package/dist/assets/index-3a61658e.css +0 -1
  178. package/dist/assets/index-8f6ac36c.js +0 -206
@@ -3,8 +3,11 @@ 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 AllInOneIcon = ({ color, size }) => {
7
- const className = `${styles.noShrinkForFlex} ` + styles[`${color}`]
6
+ const AllInOneIcon = ({ color, size, disabled }) => {
7
+ let className = `${styles.svgClassName} ` + styles[`${color}`]
8
+ if (disabled) {
9
+ className += ` ${styles.iconDisabled}`
10
+ }
8
11
  let icon = <></>
9
12
 
10
13
  switch (size) {
@@ -101,12 +104,16 @@ AllInOneIcon.propTypes = {
101
104
  /**
102
105
  * Size
103
106
  */
104
- size: PropTypes.oneOf(SIZES)
107
+ size: PropTypes.oneOf(SIZES),
108
+ /**
109
+ * disabled
110
+ */
111
+ disabled: PropTypes.bool
105
112
  }
106
-
107
113
  AllInOneIcon.defaultProps = {
108
114
  color: MAIN_DARK_BLUE,
109
- size: MEDIUM
115
+ size: MEDIUM,
116
+ disabled: false
110
117
  }
111
118
 
112
119
  export default AllInOneIcon
@@ -3,8 +3,11 @@ 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 ApiCloudIcon = ({ color, size }) => {
7
- const className = `${styles.noShrinkForFlex} ` + styles[`${color}`]
6
+ const ApiCloudIcon = ({ color, size, disabled }) => {
7
+ let className = `${styles.svgClassName} ` + styles[`${color}`]
8
+ if (disabled) {
9
+ className += ` ${styles.iconDisabled}`
10
+ }
8
11
  let icon = <></>
9
12
 
10
13
  switch (size) {
@@ -83,12 +86,16 @@ ApiCloudIcon.propTypes = {
83
86
  /**
84
87
  * Size
85
88
  */
86
- size: PropTypes.oneOf(SIZES)
89
+ size: PropTypes.oneOf(SIZES),
90
+ /**
91
+ * disabled
92
+ */
93
+ disabled: PropTypes.bool
87
94
  }
88
-
89
95
  ApiCloudIcon.defaultProps = {
90
96
  color: MAIN_DARK_BLUE,
91
- size: MEDIUM
97
+ size: MEDIUM,
98
+ disabled: false
92
99
  }
93
100
 
94
101
  export default ApiCloudIcon
@@ -3,8 +3,11 @@ 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 ApiEmptyIcon = ({ color, size }) => {
7
- const className = `${styles.noShrinkForFlex} ` + styles[`${color}`] + ' '
6
+ const ApiEmptyIcon = ({ color, size, disabled }) => {
7
+ let className = `${styles.svgClassName} ` + styles[`${color}`]
8
+ if (disabled) {
9
+ className += ` ${styles.iconDisabled}`
10
+ }
8
11
  const filledClassName = styles[`filled-${color}`]
9
12
  let icon = <></>
10
13
 
@@ -131,12 +134,16 @@ ApiEmptyIcon.propTypes = {
131
134
  /**
132
135
  * Size
133
136
  */
134
- size: PropTypes.oneOf(SIZES)
137
+ size: PropTypes.oneOf(SIZES),
138
+ /**
139
+ * disabled
140
+ */
141
+ disabled: PropTypes.bool
135
142
  }
136
-
137
143
  ApiEmptyIcon.defaultProps = {
138
144
  color: MAIN_DARK_BLUE,
139
- size: MEDIUM
145
+ size: MEDIUM,
146
+ disabled: false
140
147
  }
141
148
 
142
149
  export default ApiEmptyIcon
@@ -3,8 +3,11 @@ 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 ApiIcon = ({ color, size }) => {
7
- const className = `${styles.noShrinkForFlex} ` + styles[`${color}`]
6
+ const ApiIcon = ({ color, size, disabled }) => {
7
+ let className = `${styles.svgClassName} ` + styles[`${color}`]
8
+ if (disabled) {
9
+ className += ` ${styles.iconDisabled}`
10
+ }
8
11
  let icon = <></>
9
12
 
10
13
  switch (size) {
@@ -74,12 +77,16 @@ ApiIcon.propTypes = {
74
77
  /**
75
78
  * Size
76
79
  */
77
- size: PropTypes.oneOf(SIZES)
80
+ size: PropTypes.oneOf(SIZES),
81
+ /**
82
+ * disabled
83
+ */
84
+ disabled: PropTypes.bool
78
85
  }
79
-
80
86
  ApiIcon.defaultProps = {
81
87
  color: MAIN_DARK_BLUE,
82
- size: MEDIUM
88
+ size: MEDIUM,
89
+ disabled: false
83
90
  }
84
91
 
85
92
  export default ApiIcon
@@ -3,8 +3,11 @@ import PropTypes from 'prop-types'
3
3
  import styles from './Icons.module.css'
4
4
  import { COLORS_ICON, SIZES } from '../constants'
5
5
 
6
- const ApiIconClosed = ({ color, size }) => {
7
- const className = `${styles.noShrinkForFlex} ` + styles[`${color}`]
6
+ const ApiIconClosed = ({ color, size, disabled }) => {
7
+ let className = `${styles.svgClassName} ` + styles[`${color}`]
8
+ if (disabled) {
9
+ className += ` ${styles.iconDisabled}`
10
+ }
8
11
  let icon = <></>
9
12
 
10
13
  switch (size) {
@@ -42,9 +45,12 @@ ApiIconClosed.propTypes = {
42
45
  /**
43
46
  * Size
44
47
  */
45
- size: PropTypes.oneOf(SIZES)
48
+ size: PropTypes.oneOf(SIZES),
49
+ /**
50
+ * disabled
51
+ */
52
+ disabled: PropTypes.bool
46
53
  }
47
-
48
54
  ApiIconClosed.defaultProps = {
49
55
  color: 'main-dark-blue',
50
56
  size: 'medium'
@@ -3,8 +3,11 @@ 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 ApiPerformanceIcon = ({ color, size }) => {
7
- const className = `${styles.noShrinkForFlex} ` + styles[`${color}`]
6
+ const ApiPerformanceIcon = ({ color, size, disabled }) => {
7
+ let className = `${styles.svgClassName} ` + styles[`${color}`]
8
+ if (disabled) {
9
+ className += ` ${styles.iconDisabled}`
10
+ }
8
11
  const filledClassName = styles[`filled-${color}`]
9
12
  let icon = <></>
10
13
 
@@ -89,12 +92,16 @@ ApiPerformanceIcon.propTypes = {
89
92
  /**
90
93
  * Size
91
94
  */
92
- size: PropTypes.oneOf(SIZES)
95
+ size: PropTypes.oneOf(SIZES),
96
+ /**
97
+ * disabled
98
+ */
99
+ disabled: PropTypes.bool
93
100
  }
94
-
95
101
  ApiPerformanceIcon.defaultProps = {
96
102
  color: MAIN_DARK_BLUE,
97
- size: MEDIUM
103
+ size: MEDIUM,
104
+ disabled: false
98
105
  }
99
106
 
100
107
  export default ApiPerformanceIcon
@@ -3,8 +3,11 @@ 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 }) => {
7
- const className = `${styles.noShrinkForFlex} ` + styles[`${color}`]
6
+ const AppEmptyIcon = ({ color, size, disabled }) => {
7
+ let className = `${styles.svgClassName} ` + styles[`${color}`]
8
+ if (disabled) {
9
+ className += ` ${styles.iconDisabled}`
10
+ }
8
11
  let icon = <></>
9
12
 
10
13
  switch (size) {
@@ -42,12 +45,16 @@ AppEmptyIcon.propTypes = {
42
45
  /**
43
46
  * Size
44
47
  */
45
- size: PropTypes.oneOf(SIZES)
48
+ size: PropTypes.oneOf(SIZES),
49
+ /**
50
+ * disabled
51
+ */
52
+ disabled: PropTypes.bool
46
53
  }
47
-
48
54
  AppEmptyIcon.defaultProps = {
49
55
  color: MAIN_DARK_BLUE,
50
- size: MEDIUM
56
+ size: MEDIUM,
57
+ disabled: false
51
58
  }
52
59
 
53
60
  export default AppEmptyIcon
@@ -3,8 +3,11 @@ 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 }) => {
7
- const className = `${styles.noShrinkForFlex} ` + styles[`${color}`]
6
+ const AppIcon = ({ color, size, disabled }) => {
7
+ let className = `${styles.svgClassName} ` + styles[`${color}`]
8
+ if (disabled) {
9
+ className += ` ${styles.iconDisabled}`
10
+ }
8
11
  let icon = <></>
9
12
 
10
13
  switch (size) {
@@ -75,12 +78,16 @@ AppIcon.propTypes = {
75
78
  /**
76
79
  * Size
77
80
  */
78
- size: PropTypes.oneOf(SIZES)
81
+ size: PropTypes.oneOf(SIZES),
82
+ /**
83
+ * disabled
84
+ */
85
+ disabled: PropTypes.bool
79
86
  }
80
-
81
87
  AppIcon.defaultProps = {
82
88
  color: MAIN_DARK_BLUE,
83
- size: MEDIUM
89
+ size: MEDIUM,
90
+ disabled: false
84
91
  }
85
92
 
86
93
  export default AppIcon
@@ -3,8 +3,11 @@ 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 }) => {
7
- const className = `${styles.noShrinkForFlex} ` + styles[`${color}`]
6
+ const AppListIcon = ({ color, size, disabled }) => {
7
+ let className = `${styles.svgClassName} ` + styles[`${color}`]
8
+ if (disabled) {
9
+ className += ` ${styles.iconDisabled}`
10
+ }
8
11
  let icon = <></>
9
12
 
10
13
  switch (size) {
@@ -93,12 +96,16 @@ AppListIcon.propTypes = {
93
96
  /**
94
97
  * Size
95
98
  */
96
- size: PropTypes.oneOf(SIZES)
99
+ size: PropTypes.oneOf(SIZES),
100
+ /**
101
+ * disabled
102
+ */
103
+ disabled: PropTypes.bool
97
104
  }
98
-
99
105
  AppListIcon.defaultProps = {
100
106
  color: MAIN_DARK_BLUE,
101
- size: MEDIUM
107
+ size: MEDIUM,
108
+ disabled: false
102
109
  }
103
110
 
104
111
  export default AppListIcon
@@ -3,8 +3,11 @@ import PropTypes from 'prop-types'
3
3
  import styles from './Icons.module.css'
4
4
  import { COLORS_ICON, LARGE, MEDIUM, SIZES, SMALL } from '../constants'
5
5
 
6
- const AppWorkspace = ({ color, size }) => {
7
- const className = `${styles.noShrinkForFlex} ` + styles[`${color}`]
6
+ const AppWorkspace = ({ color, size, disabled }) => {
7
+ let className = `${styles.svgClassName} ` + styles[`${color}`]
8
+ if (disabled) {
9
+ className += ` ${styles.iconDisabled}`
10
+ }
8
11
  let icon = <></>
9
12
 
10
13
  switch (size) {
@@ -3,8 +3,11 @@ 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 }) => {
7
- const className = `${styles.noShrinkForFlex} ` + styles[`${color}`]
6
+ const ApplicationTypeIcon = ({ color, size, disabled }) => {
7
+ let className = `${styles.svgClassName} ` + styles[`${color}`]
8
+ if (disabled) {
9
+ className += ` ${styles.iconDisabled}`
10
+ }
8
11
  let icon = <></>
9
12
 
10
13
  switch (size) {
@@ -40,12 +43,16 @@ ApplicationTypeIcon.propTypes = {
40
43
  /**
41
44
  * Size
42
45
  */
43
- size: PropTypes.oneOf(SIZES)
46
+ size: PropTypes.oneOf(SIZES),
47
+ /**
48
+ * disabled
49
+ */
50
+ disabled: PropTypes.bool
44
51
  }
45
-
46
52
  ApplicationTypeIcon.defaultProps = {
47
53
  color: MAIN_DARK_BLUE,
48
- size: LARGE
54
+ size: LARGE,
55
+ disabled: false
49
56
  }
50
57
 
51
58
  export default ApplicationTypeIcon
@@ -3,8 +3,11 @@ 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 }) => {
7
- const className = `${styles.noShrinkForFlex} ` + styles[`${color}`] + ' '
6
+ const ArrowDownFullIcon = ({ color, size, disabled }) => {
7
+ let className = `${styles.svgClassName} ` + styles[`${color}`]
8
+ if (disabled) {
9
+ className += ` ${styles.iconDisabled}`
10
+ }
8
11
  const filledClassName = styles[`filled-${color}`]
9
12
  let icon = <></>
10
13
 
@@ -66,12 +69,16 @@ ArrowDownFullIcon.propTypes = {
66
69
  /**
67
70
  * Size
68
71
  */
69
- size: PropTypes.oneOf(SIZES)
72
+ size: PropTypes.oneOf(SIZES),
73
+ /**
74
+ * disabled
75
+ */
76
+ disabled: PropTypes.bool
70
77
  }
71
-
72
78
  ArrowDownFullIcon.defaultProps = {
73
79
  color: MAIN_DARK_BLUE,
74
- size: MEDIUM
80
+ size: MEDIUM,
81
+ disabled: false
75
82
  }
76
83
 
77
84
  export default ArrowDownFullIcon
@@ -3,8 +3,11 @@ 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 }) => {
7
- const className = `${styles.noShrinkForFlex} ` + styles[`${color}`]
6
+ const ArrowDownIcon = ({ color, size, disabled }) => {
7
+ let className = `${styles.svgClassName} ` + styles[`${color}`]
8
+ if (disabled) {
9
+ className += ` ${styles.iconDisabled}`
10
+ }
8
11
  let icon = <></>
9
12
 
10
13
  switch (size) {
@@ -65,12 +68,16 @@ ArrowDownIcon.propTypes = {
65
68
  /**
66
69
  * Size
67
70
  */
68
- size: PropTypes.oneOf(SIZES)
71
+ size: PropTypes.oneOf(SIZES),
72
+ /**
73
+ * disabled
74
+ */
75
+ disabled: PropTypes.bool
69
76
  }
70
-
71
77
  ArrowDownIcon.defaultProps = {
72
78
  color: MAIN_DARK_BLUE,
73
- size: MEDIUM
79
+ size: MEDIUM,
80
+ disabled: false
74
81
  }
75
82
 
76
83
  export default ArrowDownIcon
@@ -3,8 +3,11 @@ 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 }) => {
7
- const className = `${styles.noShrinkForFlex} ` + styles[`${color}`]
6
+ const ArrowLeftIcon = ({ color, size, disabled }) => {
7
+ let className = `${styles.svgClassName} ` + styles[`${color}`]
8
+ if (disabled) {
9
+ className += ` ${styles.iconDisabled}`
10
+ }
8
11
  let icon = <></>
9
12
 
10
13
  switch (size) {
@@ -65,12 +68,16 @@ ArrowLeftIcon.propTypes = {
65
68
  /**
66
69
  * Size
67
70
  */
68
- size: PropTypes.oneOf(SIZES)
71
+ size: PropTypes.oneOf(SIZES),
72
+ /**
73
+ * disabled
74
+ */
75
+ disabled: PropTypes.bool
69
76
  }
70
-
71
77
  ArrowLeftIcon.defaultProps = {
72
78
  color: MAIN_DARK_BLUE,
73
- size: MEDIUM
79
+ size: MEDIUM,
80
+ disabled: false
74
81
  }
75
82
 
76
83
  export default ArrowLeftIcon
@@ -0,0 +1,84 @@
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 ArrowLongLeftIcon = ({ color, size, disabled }) => {
7
+ let className = `${styles.svgClassName} ` + styles[`${color}`]
8
+ if (disabled) {
9
+ className += ` ${styles.iconDisabled}`
10
+ }
11
+ let icon = <></>
12
+
13
+ switch (size) {
14
+ case SMALL:
15
+ icon = (
16
+ <svg
17
+ width={16}
18
+ height={16}
19
+ viewBox='0 0 16 16'
20
+ fill='none'
21
+ xmlns='http://www.w3.org/2000/svg'
22
+ className={className}
23
+ >
24
+ <path d='M9.2 13L14 8.2M14 8.2L9.2 3.4M14 8.2L2 8.2' stroke='none' strokeLinecap='round' strokeLinejoin='round' transform='rotate(-180 8 8)' />
25
+ </svg>
26
+ )
27
+ break
28
+ case MEDIUM:
29
+ icon = (
30
+ <svg
31
+ width={24}
32
+ height={24}
33
+ viewBox='0 0 24 24'
34
+ fill='none'
35
+ xmlns='http://www.w3.org/2000/svg'
36
+ className={className}
37
+ >
38
+ <path d='M13.8 19.5L21 12.3M21 12.3L13.8 5.1M21 12.3L3 12.3' stroke='none' strokeWidth={1.5} strokeLinecap='round' strokeLinejoin='round' transform='rotate(-180 12 12)' />
39
+
40
+ </svg>
41
+ )
42
+ break
43
+ case LARGE:
44
+ icon = (
45
+ <svg
46
+ width={40}
47
+ height={40}
48
+ viewBox='0 0 40 40'
49
+ fill='none'
50
+ xmlns='http://www.w3.org/2000/svg'
51
+ className={className}
52
+ >
53
+ <path d='M23 32.5L35 20.5M35 20.5L23 8.5M35 20.5L5 20.5' stroke='none' strokeWidth={2} strokeLinecap='round' strokeLinejoin='round' transform='rotate(-180 20 20)' />
54
+ </svg>
55
+ )
56
+ break
57
+
58
+ default:
59
+ break
60
+ }
61
+ return icon
62
+ }
63
+
64
+ ArrowLongLeftIcon.propTypes = {
65
+ /**
66
+ * color of text, icon and borders
67
+ */
68
+ color: PropTypes.oneOf(COLORS_ICON),
69
+ /**
70
+ * Size
71
+ */
72
+ size: PropTypes.oneOf(SIZES),
73
+ /**
74
+ * disabled
75
+ */
76
+ disabled: PropTypes.bool
77
+ }
78
+ ArrowLongLeftIcon.defaultProps = {
79
+ color: MAIN_DARK_BLUE,
80
+ size: MEDIUM,
81
+ disabled: false
82
+ }
83
+
84
+ export default ArrowLongLeftIcon
@@ -3,8 +3,11 @@ 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 }) => {
7
- const className = `${styles.noShrinkForFlex} ` + styles[`${color}`]
6
+ const ArrowLongRightIcon = ({ color, size, disabled }) => {
7
+ let className = `${styles.svgClassName} ` + styles[`${color}`]
8
+ if (disabled) {
9
+ className += ` ${styles.iconDisabled}`
10
+ }
8
11
  let icon = <></>
9
12
 
10
13
  switch (size) {
@@ -66,12 +69,16 @@ ArrowLongRightIcon.propTypes = {
66
69
  /**
67
70
  * Size
68
71
  */
69
- size: PropTypes.oneOf(SIZES)
72
+ size: PropTypes.oneOf(SIZES),
73
+ /**
74
+ * disabled
75
+ */
76
+ disabled: PropTypes.bool
70
77
  }
71
-
72
78
  ArrowLongRightIcon.defaultProps = {
73
79
  color: MAIN_DARK_BLUE,
74
- size: MEDIUM
80
+ size: MEDIUM,
81
+ disabled: false
75
82
  }
76
83
 
77
84
  export default ArrowLongRightIcon
@@ -3,8 +3,11 @@ 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 }) => {
7
- const className = `${styles.noShrinkForFlex} ` + styles[`${color}`]
6
+ const ArrowRightIcon = ({ color, size, disabled }) => {
7
+ let className = `${styles.svgClassName} ` + styles[`${color}`]
8
+ if (disabled) {
9
+ className += ` ${styles.iconDisabled}`
10
+ }
8
11
  let icon = <></>
9
12
 
10
13
  switch (size) {
@@ -65,12 +68,16 @@ ArrowRightIcon.propTypes = {
65
68
  /**
66
69
  * Size
67
70
  */
68
- size: PropTypes.oneOf(SIZES)
71
+ size: PropTypes.oneOf(SIZES),
72
+ /**
73
+ * disabled
74
+ */
75
+ disabled: PropTypes.bool
69
76
  }
70
-
71
77
  ArrowRightIcon.defaultProps = {
72
78
  color: MAIN_DARK_BLUE,
73
- size: MEDIUM
79
+ size: MEDIUM,
80
+ disabled: false
74
81
  }
75
82
 
76
83
  export default ArrowRightIcon
@@ -3,8 +3,11 @@ 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 }) => {
7
- const className = `${styles.noShrinkForFlex} ` + styles[`${color}`]
6
+ const ArrowUpIcon = ({ color, size, disabled }) => {
7
+ let className = `${styles.svgClassName} ` + styles[`${color}`]
8
+ if (disabled) {
9
+ className += ` ${styles.iconDisabled}`
10
+ }
8
11
  let icon = <></>
9
12
 
10
13
  switch (size) {
@@ -65,12 +68,16 @@ ArrowUpIcon.propTypes = {
65
68
  /**
66
69
  * Size
67
70
  */
68
- size: PropTypes.oneOf(SIZES)
71
+ size: PropTypes.oneOf(SIZES),
72
+ /**
73
+ * disabled
74
+ */
75
+ disabled: PropTypes.bool
69
76
  }
70
-
71
77
  ArrowUpIcon.defaultProps = {
72
78
  color: MAIN_DARK_BLUE,
73
- size: MEDIUM
79
+ size: MEDIUM,
80
+ disabled: false
74
81
  }
75
82
 
76
83
  export default ArrowUpIcon
@@ -3,8 +3,11 @@ 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 }) => {
7
- const className = `${styles.noShrinkForFlex} ` + styles[`${color}`]
6
+ const BellIcon = ({ color, size, disabled }) => {
7
+ let className = `${styles.svgClassName} ` + styles[`${color}`]
8
+ if (disabled) {
9
+ className += ` ${styles.iconDisabled}`
10
+ }
8
11
  let icon = <></>
9
12
 
10
13
  switch (size) {
@@ -68,12 +71,16 @@ BellIcon.propTypes = {
68
71
  /**
69
72
  * Size
70
73
  */
71
- size: PropTypes.oneOf(SIZES)
74
+ size: PropTypes.oneOf(SIZES),
75
+ /**
76
+ * disabled
77
+ */
78
+ disabled: PropTypes.bool
72
79
  }
73
-
74
80
  BellIcon.defaultProps = {
75
81
  color: MAIN_DARK_BLUE,
76
- size: MEDIUM
82
+ size: MEDIUM,
83
+ disabled: false
77
84
  }
78
85
 
79
86
  export default BellIcon