@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.
- package/dist/assets/index-78f54889.js +206 -0
- package/dist/assets/index-89e9ad97.css +1 -0
- package/dist/index.html +2 -2
- package/dist/main.css +0 -10
- package/fonts/Inter/Inter-VariableFont_slnt,wght.ttf +0 -0
- package/fonts/Inter/OFL.txt +93 -0
- package/fonts/Inter/README.txt +72 -0
- package/fonts/Inter/static/Inter-Black.ttf +0 -0
- package/fonts/Inter/static/Inter-Bold.ttf +0 -0
- package/fonts/Inter/static/Inter-ExtraBold.ttf +0 -0
- package/fonts/Inter/static/Inter-ExtraLight.ttf +0 -0
- package/fonts/Inter/static/Inter-Light.ttf +0 -0
- package/fonts/Inter/static/Inter-Medium.ttf +0 -0
- package/fonts/Inter/static/Inter-Regular.ttf +0 -0
- package/fonts/Inter/static/Inter-SemiBold.ttf +0 -0
- package/fonts/Inter/static/Inter-Thin.ttf +0 -0
- package/fonts/{Montserrat/fonts.css → fonts.css} +7 -0
- package/index.js +8 -0
- package/package.json +1 -1
- package/src/components/BorderedBox.jsx +25 -6
- package/src/components/BorderedBox.module.css +3 -0
- package/src/components/Common.module.css +34 -3
- package/src/components/HorizontalSeparator.jsx +2 -1
- package/src/components/HorizontalSeparator.module.css +19 -0
- package/src/components/LoadingSpinnerV2.jsx +45 -0
- package/src/components/LoadingSpinnerV2.module.css +8 -0
- package/src/components/Modal.jsx +36 -3
- package/src/components/Modal.module.css +9 -1
- package/src/components/ModalDirectional.jsx +83 -0
- package/src/components/ModalDirectional.module.css +38 -0
- package/src/components/PlatformaticIcon.jsx +20 -5
- package/src/components/SearchBarV2.jsx +120 -0
- package/src/components/SearchBarV2.module.css +28 -0
- package/src/components/Sidebar.jsx +91 -86
- package/src/components/Sidebar.module.css +4 -4
- package/src/components/TabbedWindowV2.jsx +82 -0
- package/src/components/TabbedWindowV2.module.css +17 -0
- package/src/components/VerticalSeparator.jsx +18 -6
- package/src/components/VerticalSeparator.module.css +3 -0
- package/src/components/constants.js +10 -2
- package/src/components/forms/Field.jsx +29 -8
- package/src/components/forms/Field.module.css +7 -1
- package/src/components/forms/Input.jsx +73 -8
- package/src/components/forms/Input.module.css +8 -3
- package/src/components/forms/Select.jsx +98 -20
- package/src/components/forms/Select.module.css +17 -6
- package/src/components/forms/ToggleSwitch.jsx +11 -5
- package/src/components/forms/ToggleSwitch.module.css +2 -2
- package/src/components/icons/AddIcon.jsx +12 -5
- package/src/components/icons/AlertIcon.jsx +12 -5
- package/src/components/icons/AllInOneIcon.jsx +12 -5
- package/src/components/icons/ApiCloudIcon.jsx +12 -5
- package/src/components/icons/ApiEmptyIcon.jsx +12 -5
- package/src/components/icons/ApiIcon.jsx +12 -5
- package/src/components/icons/ApiIconClosed.jsx +10 -4
- package/src/components/icons/ApiPerformanceIcon.jsx +12 -5
- package/src/components/icons/AppEmptyIcon.jsx +12 -5
- package/src/components/icons/AppIcon.jsx +12 -5
- package/src/components/icons/AppListIcon.jsx +12 -5
- package/src/components/icons/AppWorkspace.jsx +5 -2
- package/src/components/icons/ApplicationTypeIcon.jsx +12 -5
- package/src/components/icons/ArrowDownFullIcon.jsx +12 -5
- package/src/components/icons/ArrowDownIcon.jsx +12 -5
- package/src/components/icons/ArrowLeftIcon.jsx +12 -5
- package/src/components/icons/ArrowLongLeftIcon.jsx +84 -0
- package/src/components/icons/ArrowLongRightIcon.jsx +12 -5
- package/src/components/icons/ArrowRightIcon.jsx +12 -5
- package/src/components/icons/ArrowUpIcon.jsx +12 -5
- package/src/components/icons/BellIcon.jsx +12 -5
- package/src/components/icons/BillingIcon.jsx +12 -5
- package/src/components/icons/Calendar1DayIcon.jsx +12 -5
- package/src/components/icons/Calendar7DaysIcon.jsx +12 -5
- package/src/components/icons/CalendarIcon.jsx +12 -5
- package/src/components/icons/CheckListIcon.jsx +12 -5
- package/src/components/icons/CircleAddIcon.jsx +12 -5
- package/src/components/icons/CircleArrowLeftIcon.jsx +12 -5
- package/src/components/icons/CircleArrowRightIcon.jsx +12 -5
- package/src/components/icons/CircleCheckMarkButtonIcon.jsx +7 -3
- package/src/components/icons/CircleCheckMarkFullIcon.jsx +12 -5
- package/src/components/icons/CircleCheckMarkIcon.jsx +10 -4
- package/src/components/icons/CircleCloseHoverIcon.jsx +12 -5
- package/src/components/icons/CircleCloseIcon.jsx +12 -5
- package/src/components/icons/CircleCopyPasteIcon.jsx +12 -5
- package/src/components/icons/CircleDownloadIcon.jsx +12 -5
- package/src/components/icons/CircleEditIcon.jsx +12 -5
- package/src/components/icons/CircleExclamationIcon.jsx +5 -2
- package/src/components/icons/CircleFullIcon.jsx +12 -5
- package/src/components/icons/CircleGearIcon.jsx +12 -5
- package/src/components/icons/CircleRestartIcon.jsx +12 -5
- package/src/components/icons/CircleSubtractIcon.jsx +12 -5
- package/src/components/icons/CircleTwoArrowsDownIcon.jsx +12 -5
- package/src/components/icons/CircleTwoArrowsUpIcon.jsx +12 -5
- package/src/components/icons/CloseIcon.jsx +12 -5
- package/src/components/icons/CloudIcon.jsx +12 -5
- package/src/components/icons/ConfigureDatabaseIcon.jsx +12 -5
- package/src/components/icons/CopyPasteIcon.jsx +12 -5
- package/src/components/icons/CreatingAppIcon.jsx +12 -5
- package/src/components/icons/CreditCardIcon.jsx +12 -5
- package/src/components/icons/DatabaseIcon.jsx +12 -5
- package/src/components/icons/DatabaseMigrationIcon.jsx +12 -5
- package/src/components/icons/DepencenciesReloadIcon.jsx +12 -5
- package/src/components/icons/EditDocumentIcon.jsx +12 -5
- package/src/components/icons/EditIcon.jsx +12 -5
- package/src/components/icons/EnlargeIcon.jsx +12 -5
- package/src/components/icons/EntryIcon.jsx +12 -5
- package/src/components/icons/ExpandIcon.jsx +92 -0
- package/src/components/icons/ExploreDocIcon.jsx +12 -5
- package/src/components/icons/EyeClosedIcon.jsx +12 -5
- package/src/components/icons/EyeOpenedIcon.jsx +12 -5
- package/src/components/icons/FolderIcon.jsx +83 -0
- package/src/components/icons/FoldersIcon.jsx +86 -0
- package/src/components/icons/GearIcon.jsx +12 -5
- package/src/components/icons/GenerationLoadingIcon.jsx +12 -5
- package/src/components/icons/GitHubRepo2Icon.jsx +12 -5
- package/src/components/icons/GitHubRepoIcon.jsx +12 -5
- package/src/components/icons/GiveOwnershipIcon.jsx +12 -5
- package/src/components/icons/GraphQLIcon.jsx +12 -5
- package/src/components/icons/Icons.module.css +7 -2
- package/src/components/icons/ImportApplicationIcon.jsx +12 -5
- package/src/components/icons/KeyIcon.jsx +12 -5
- package/src/components/icons/LabelIcon.jsx +12 -5
- package/src/components/icons/LayersIcon.jsx +12 -5
- package/src/components/icons/LensIcon.jsx +12 -5
- package/src/components/icons/LiveIcon.jsx +12 -5
- package/src/components/icons/LoadingAppIcon.jsx +12 -5
- package/src/components/icons/LogOutIcon.jsx +5 -2
- package/src/components/icons/MetricsIcon.jsx +12 -5
- package/src/components/icons/MetricsLoadingIcon.jsx +12 -5
- package/src/components/icons/NameAppIcon.jsx +12 -5
- package/src/components/icons/OrganizationIcon.jsx +12 -5
- package/src/components/icons/OutOfBoxGraphQLIcon.jsx +12 -5
- package/src/components/icons/PlatformaticComposerIcon.jsx +12 -5
- package/src/components/icons/PlatformaticDBIcon.jsx +12 -5
- package/src/components/icons/PlatformaticRuntimeIcon.jsx +12 -5
- package/src/components/icons/PlatformaticServiceIcon.jsx +12 -5
- package/src/components/icons/PlayIcon.jsx +12 -5
- package/src/components/icons/PreviewPRIcon.jsx +12 -5
- package/src/components/icons/PullRequestIcon.jsx +12 -5
- package/src/components/icons/PullRequestLoadingIcon.jsx +12 -5
- package/src/components/icons/RequestOwnershipIcon.jsx +12 -5
- package/src/components/icons/RestartIcon.jsx +12 -5
- package/src/components/icons/RocketIcon.jsx +12 -5
- package/src/components/icons/RunningIcon.jsx +12 -5
- package/src/components/icons/SendIcon.jsx +12 -5
- package/src/components/icons/ServiceIcon.jsx +12 -5
- package/src/components/icons/SlotIcon.jsx +12 -5
- package/src/components/icons/SocialDiscordIcon.jsx +12 -5
- package/src/components/icons/SocialGitHubIcon.jsx +12 -5
- package/src/components/icons/SocialGitLabIcon.jsx +12 -5
- package/src/components/icons/SocialLinkedInIcon.jsx +12 -5
- package/src/components/icons/SocialNPMIcon.jsx +12 -5
- package/src/components/icons/SocialXIcon.jsx +12 -5
- package/src/components/icons/SortableIcon.jsx +93 -0
- package/src/components/icons/StackablesPluginIcon.jsx +134 -0
- package/src/components/icons/StackablesTemplateIcon.jsx +133 -0
- package/src/components/icons/StopIcon.jsx +12 -5
- package/src/components/icons/SwitchIcon.jsx +12 -5
- package/src/components/icons/TeamsIcon.jsx +12 -5
- package/src/components/icons/TerminalIcon.jsx +12 -5
- package/src/components/icons/TrashIcon.jsx +95 -0
- package/src/components/icons/TwoUsersIcon.jsx +12 -5
- package/src/components/icons/UpgradeIcon.jsx +12 -5
- package/src/components/icons/UserIcon.jsx +12 -5
- package/src/components/icons/UserRemoveIcon.jsx +5 -2
- package/src/components/icons/UserRoleIcon.jsx +5 -2
- package/src/components/icons/WorkspaceDynamicIcon.jsx +12 -5
- package/src/components/icons/WorkspaceEmptyIcon.jsx +12 -5
- package/src/components/icons/WorkspaceFailIcon.jsx +12 -5
- package/src/components/icons/WorkspaceGitHubIcon.jsx +12 -5
- package/src/components/icons/WorkspaceLoadingIcon.jsx +12 -5
- package/src/components/icons/WorkspaceReadyIcon.jsx +12 -5
- package/src/components/icons/WorkspaceStaticIcon.jsx +12 -5
- package/src/components/icons/index.js +23 -7
- package/src/stories/ModalDirectional.stories.jsx +45 -0
- package/src/stories/forms/Select.stories.jsx +33 -1
- package/tailwind.config.cjs +5 -2
- package/dist/assets/index-3a61658e.css +0 -1
- 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 StopIcon = ({ color, size }) => {
|
|
7
|
-
|
|
6
|
+
const StopIcon = ({ 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 @@ StopIcon.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
|
StopIcon.defaultProps = {
|
|
75
81
|
color: MAIN_DARK_BLUE,
|
|
76
|
-
size: MEDIUM
|
|
82
|
+
size: MEDIUM,
|
|
83
|
+
disabled: false
|
|
77
84
|
}
|
|
78
85
|
|
|
79
86
|
export default StopIcon
|
|
@@ -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 SwitchIcon = ({ color, size }) => {
|
|
7
|
-
|
|
6
|
+
const SwitchIcon = ({ 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) {
|
|
@@ -70,12 +73,16 @@ SwitchIcon.propTypes = {
|
|
|
70
73
|
/**
|
|
71
74
|
* Size
|
|
72
75
|
*/
|
|
73
|
-
size: PropTypes.oneOf(SIZES)
|
|
76
|
+
size: PropTypes.oneOf(SIZES),
|
|
77
|
+
/**
|
|
78
|
+
* disabled
|
|
79
|
+
*/
|
|
80
|
+
disabled: PropTypes.bool
|
|
74
81
|
}
|
|
75
|
-
|
|
76
82
|
SwitchIcon.defaultProps = {
|
|
77
83
|
color: MAIN_DARK_BLUE,
|
|
78
|
-
size: MEDIUM
|
|
84
|
+
size: MEDIUM,
|
|
85
|
+
disabled: false
|
|
79
86
|
}
|
|
80
87
|
|
|
81
88
|
export default SwitchIcon
|
|
@@ -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 TeamsIcon = ({ color, size }) => {
|
|
7
|
-
|
|
6
|
+
const TeamsIcon = ({ 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) {
|
|
@@ -80,12 +83,16 @@ TeamsIcon.propTypes = {
|
|
|
80
83
|
/**
|
|
81
84
|
* Size
|
|
82
85
|
*/
|
|
83
|
-
size: PropTypes.oneOf(SIZES)
|
|
86
|
+
size: PropTypes.oneOf(SIZES),
|
|
87
|
+
/**
|
|
88
|
+
* disabled
|
|
89
|
+
*/
|
|
90
|
+
disabled: PropTypes.bool
|
|
84
91
|
}
|
|
85
|
-
|
|
86
92
|
TeamsIcon.defaultProps = {
|
|
87
93
|
color: MAIN_DARK_BLUE,
|
|
88
|
-
size: MEDIUM
|
|
94
|
+
size: MEDIUM,
|
|
95
|
+
disabled: false
|
|
89
96
|
}
|
|
90
97
|
|
|
91
98
|
export default TeamsIcon
|
|
@@ -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 TerminalIcon = ({ color, size }) => {
|
|
7
|
-
|
|
6
|
+
const TerminalIcon = ({ 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) {
|
|
@@ -72,12 +75,16 @@ TerminalIcon.propTypes = {
|
|
|
72
75
|
/**
|
|
73
76
|
* Size
|
|
74
77
|
*/
|
|
75
|
-
size: PropTypes.oneOf(SIZES)
|
|
78
|
+
size: PropTypes.oneOf(SIZES),
|
|
79
|
+
/**
|
|
80
|
+
* disabled
|
|
81
|
+
*/
|
|
82
|
+
disabled: PropTypes.bool
|
|
76
83
|
}
|
|
77
|
-
|
|
78
84
|
TerminalIcon.defaultProps = {
|
|
79
85
|
color: MAIN_DARK_BLUE,
|
|
80
|
-
size: MEDIUM
|
|
86
|
+
size: MEDIUM,
|
|
87
|
+
disabled: false
|
|
81
88
|
}
|
|
82
89
|
|
|
83
90
|
export default TerminalIcon
|
|
@@ -0,0 +1,95 @@
|
|
|
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 TrashIcon = ({ 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='M4.08381 6.50611C4.03861 5.92502 4.49795 5.42857 5.0808 5.42857H10.9192C11.502 5.42857 11.9614 5.92502 11.9162 6.50611L11.4051 13.0775C11.3646 13.5982 10.9303 14 10.4081 14H5.59191C5.0697 14 4.63541 13.5982 4.59492 13.0775L4.08381 6.50611Z' stroke='none' />
|
|
25
|
+
<path d='M4 3.71429L12 3.71429' stroke='none' strokeLinecap='round' strokeLinejoin='round' />
|
|
26
|
+
<path d='M9.60015 3.71429C9.60015 2.76751 8.8838 2 8.00015 2C7.11649 2 6.40015 2.76751 6.40015 3.71429' stroke='none' />
|
|
27
|
+
<path d='M5.6001 7.14285L6.4001 12.2857M10.4001 7.14285L10.0001 12.2857M8.0001 7.14285V12.2857' stroke='none' strokeLinecap='round' strokeLinejoin='round' />
|
|
28
|
+
|
|
29
|
+
</svg>
|
|
30
|
+
)
|
|
31
|
+
break
|
|
32
|
+
case MEDIUM:
|
|
33
|
+
icon = (
|
|
34
|
+
<svg
|
|
35
|
+
width={24}
|
|
36
|
+
height={24}
|
|
37
|
+
viewBox='0 0 24 24'
|
|
38
|
+
fill='none'
|
|
39
|
+
xmlns='http://www.w3.org/2000/svg'
|
|
40
|
+
className={className}
|
|
41
|
+
>
|
|
42
|
+
<path d='M6.08381 9.2204C6.03861 8.63931 6.49795 8.14286 7.0808 8.14286H16.9192C17.502 8.14286 17.9614 8.63931 17.9162 9.2204L17.0717 20.0775C17.0313 20.5982 16.597 21 16.0748 21H7.92524C7.40303 21 6.96875 20.5982 6.92825 20.0775L6.08381 9.2204Z' stroke='none' strokeWidth={1.5} />
|
|
43
|
+
<path d='M6 5.57143L18 5.57143' stroke='none' strokeWidth={1.5} strokeLinecap='round' strokeLinejoin='round' />
|
|
44
|
+
<path d='M14.4001 5.57143C14.4001 4.15127 13.3256 3 12.0001 3C10.6746 3 9.6001 4.15127 9.6001 5.57143' stroke='none' strokeWidth={1.5} />
|
|
45
|
+
<path d='M8.40015 10.7143L9.60015 18.4286M15.6001 10.7143L15.0001 18.4286M12.0001 10.7143V18.4286' stroke='none' strokeWidth={1.5} strokeLinecap='round' strokeLinejoin='round' />
|
|
46
|
+
</svg>
|
|
47
|
+
)
|
|
48
|
+
break
|
|
49
|
+
case LARGE:
|
|
50
|
+
icon = (
|
|
51
|
+
<svg
|
|
52
|
+
width={40}
|
|
53
|
+
height={40}
|
|
54
|
+
viewBox='0 0 40 40'
|
|
55
|
+
fill='none'
|
|
56
|
+
xmlns='http://www.w3.org/2000/svg'
|
|
57
|
+
className={className}
|
|
58
|
+
>
|
|
59
|
+
<path d='M10.0838 14.649C10.0386 14.0679 10.498 13.5714 11.0808 13.5714H28.9192C29.5021 13.5714 29.9614 14.0679 29.9162 14.649L28.4051 34.0775C28.3646 34.5982 27.9303 35 27.4081 35H12.5919C12.0697 35 11.6354 34.5982 11.5949 34.0775L10.0838 14.649Z' stroke='none' strokeWidth={2} />
|
|
60
|
+
<path d='M10 9.28571L30 9.28571' stroke='none' strokeWidth={2} strokeLinecap='round' strokeLinejoin='round' />
|
|
61
|
+
<path d='M24.0002 9.28571C24.0002 6.91878 22.2094 5 20.0002 5C17.7911 5 16.0002 6.91878 16.0002 9.28571' stroke='none' strokeWidth={2} />
|
|
62
|
+
<path d='M14.0002 17.8571L16.0002 30.7143M26.0002 17.8571L25.0002 30.7143M20.0002 17.8571V30.7143' stroke='none' strokeWidth={2} strokeLinecap='round' strokeLinejoin='round' />
|
|
63
|
+
|
|
64
|
+
</svg>
|
|
65
|
+
)
|
|
66
|
+
break
|
|
67
|
+
|
|
68
|
+
default:
|
|
69
|
+
break
|
|
70
|
+
}
|
|
71
|
+
return icon
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
TrashIcon.propTypes = {
|
|
75
|
+
/**
|
|
76
|
+
* color of text, icon and borders
|
|
77
|
+
*/
|
|
78
|
+
color: PropTypes.oneOf(COLORS_ICON),
|
|
79
|
+
/**
|
|
80
|
+
* Size
|
|
81
|
+
*/
|
|
82
|
+
size: PropTypes.oneOf(SIZES),
|
|
83
|
+
/**
|
|
84
|
+
* disabled
|
|
85
|
+
*/
|
|
86
|
+
disabled: PropTypes.bool
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
TrashIcon.defaultProps = {
|
|
90
|
+
color: MAIN_DARK_BLUE,
|
|
91
|
+
size: MEDIUM,
|
|
92
|
+
disabled: false
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
export default TrashIcon
|
|
@@ -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 TwoUsersIcon = ({ color, size }) => {
|
|
7
|
-
|
|
6
|
+
const TwoUsersIcon = ({ 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 @@ TwoUsersIcon.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
|
TwoUsersIcon.defaultProps = {
|
|
81
87
|
color: MAIN_DARK_BLUE,
|
|
82
|
-
size: MEDIUM
|
|
88
|
+
size: MEDIUM,
|
|
89
|
+
disabled: false
|
|
83
90
|
}
|
|
84
91
|
|
|
85
92
|
export default TwoUsersIcon
|
|
@@ -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, EXTRA_LARGE, MAIN_DARK_BLUE } from '../constants'
|
|
5
5
|
|
|
6
|
-
const UpgradeIcon = ({ color, size }) => {
|
|
7
|
-
|
|
6
|
+
const UpgradeIcon = ({ 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) {
|
|
@@ -107,12 +110,16 @@ UpgradeIcon.propTypes = {
|
|
|
107
110
|
/**
|
|
108
111
|
* Size
|
|
109
112
|
*/
|
|
110
|
-
size: PropTypes.oneOf(SIZES)
|
|
113
|
+
size: PropTypes.oneOf(SIZES),
|
|
114
|
+
/**
|
|
115
|
+
* disabled
|
|
116
|
+
*/
|
|
117
|
+
disabled: PropTypes.bool
|
|
111
118
|
}
|
|
112
|
-
|
|
113
119
|
UpgradeIcon.defaultProps = {
|
|
114
120
|
color: MAIN_DARK_BLUE,
|
|
115
|
-
size: MEDIUM
|
|
121
|
+
size: MEDIUM,
|
|
122
|
+
disabled: false
|
|
116
123
|
}
|
|
117
124
|
|
|
118
125
|
export default UpgradeIcon
|
|
@@ -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 UserIcon = ({ color, size }) => {
|
|
7
|
-
|
|
6
|
+
const UserIcon = ({ 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) {
|
|
@@ -69,12 +72,16 @@ UserIcon.propTypes = {
|
|
|
69
72
|
/**
|
|
70
73
|
* Size
|
|
71
74
|
*/
|
|
72
|
-
size: PropTypes.oneOf(SIZES)
|
|
75
|
+
size: PropTypes.oneOf(SIZES),
|
|
76
|
+
/**
|
|
77
|
+
* disabled
|
|
78
|
+
*/
|
|
79
|
+
disabled: PropTypes.bool
|
|
73
80
|
}
|
|
74
|
-
|
|
75
81
|
UserIcon.defaultProps = {
|
|
76
82
|
color: MAIN_DARK_BLUE,
|
|
77
|
-
size: MEDIUM
|
|
83
|
+
size: MEDIUM,
|
|
84
|
+
disabled: false
|
|
78
85
|
}
|
|
79
86
|
|
|
80
87
|
export default UserIcon
|
|
@@ -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 UserRemoveIcon = ({ color, size, tip }) => {
|
|
7
|
-
|
|
6
|
+
const UserRemoveIcon = ({ color, size, tip, 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, SMALL, MEDIUM, LARGE, MAIN_DARK_BLUE } from '../constants'
|
|
5
5
|
|
|
6
|
-
const UserRoleIcon = ({ color, size, tip }) => {
|
|
7
|
-
|
|
6
|
+
const UserRoleIcon = ({ color, size, tip, 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, SMALL, MEDIUM, LARGE, MAIN_DARK_BLUE } from '../constants'
|
|
5
5
|
|
|
6
|
-
const WorkspaceDynamicIcon = ({ color, size }) => {
|
|
7
|
-
|
|
6
|
+
const WorkspaceDynamicIcon = ({ 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) {
|
|
@@ -77,12 +80,16 @@ WorkspaceDynamicIcon.propTypes = {
|
|
|
77
80
|
/**
|
|
78
81
|
* Size
|
|
79
82
|
*/
|
|
80
|
-
size: PropTypes.oneOf(SIZES)
|
|
83
|
+
size: PropTypes.oneOf(SIZES),
|
|
84
|
+
/**
|
|
85
|
+
* disabled
|
|
86
|
+
*/
|
|
87
|
+
disabled: PropTypes.bool
|
|
81
88
|
}
|
|
82
|
-
|
|
83
89
|
WorkspaceDynamicIcon.defaultProps = {
|
|
84
90
|
color: MAIN_DARK_BLUE,
|
|
85
|
-
size: MEDIUM
|
|
91
|
+
size: MEDIUM,
|
|
92
|
+
disabled: false
|
|
86
93
|
}
|
|
87
94
|
|
|
88
95
|
export default WorkspaceDynamicIcon
|
|
@@ -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 WorkspaceEmptyIcon = ({ color, size }) => {
|
|
7
|
-
|
|
6
|
+
const WorkspaceEmptyIcon = ({ 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) {
|
|
@@ -44,12 +47,16 @@ WorkspaceEmptyIcon.propTypes = {
|
|
|
44
47
|
/**
|
|
45
48
|
* Size
|
|
46
49
|
*/
|
|
47
|
-
size: PropTypes.oneOf(SIZES)
|
|
50
|
+
size: PropTypes.oneOf(SIZES),
|
|
51
|
+
/**
|
|
52
|
+
* disabled
|
|
53
|
+
*/
|
|
54
|
+
disabled: PropTypes.bool
|
|
48
55
|
}
|
|
49
|
-
|
|
50
56
|
WorkspaceEmptyIcon.defaultProps = {
|
|
51
57
|
color: MAIN_DARK_BLUE,
|
|
52
|
-
size: MEDIUM
|
|
58
|
+
size: MEDIUM,
|
|
59
|
+
disabled: false
|
|
53
60
|
}
|
|
54
61
|
|
|
55
62
|
export default WorkspaceEmptyIcon
|
|
@@ -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, EXTRA_LARGE, MAIN_DARK_BLUE } from '../constants'
|
|
5
5
|
|
|
6
|
-
const WorkspaceFailIcon = ({ color, size }) => {
|
|
7
|
-
|
|
6
|
+
const WorkspaceFailIcon = ({ 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) {
|
|
@@ -102,12 +105,16 @@ WorkspaceFailIcon.propTypes = {
|
|
|
102
105
|
/**
|
|
103
106
|
* Size
|
|
104
107
|
*/
|
|
105
|
-
size: PropTypes.oneOf(SIZES)
|
|
108
|
+
size: PropTypes.oneOf(SIZES),
|
|
109
|
+
/**
|
|
110
|
+
* disabled
|
|
111
|
+
*/
|
|
112
|
+
disabled: PropTypes.bool
|
|
106
113
|
}
|
|
107
|
-
|
|
108
114
|
WorkspaceFailIcon.defaultProps = {
|
|
109
115
|
color: MAIN_DARK_BLUE,
|
|
110
|
-
size: MEDIUM
|
|
116
|
+
size: MEDIUM,
|
|
117
|
+
disabled: false
|
|
111
118
|
}
|
|
112
119
|
|
|
113
120
|
export default WorkspaceFailIcon
|
|
@@ -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, EXTRA_LARGE, MAIN_DARK_BLUE } from '../constants'
|
|
5
5
|
|
|
6
|
-
const WorkspaceGitHubIcon = ({ color, size }) => {
|
|
7
|
-
|
|
6
|
+
const WorkspaceGitHubIcon = ({ 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
|
|
|
@@ -121,12 +124,16 @@ WorkspaceGitHubIcon.propTypes = {
|
|
|
121
124
|
/**
|
|
122
125
|
* Size
|
|
123
126
|
*/
|
|
124
|
-
size: PropTypes.oneOf(SIZES)
|
|
127
|
+
size: PropTypes.oneOf(SIZES),
|
|
128
|
+
/**
|
|
129
|
+
* disabled
|
|
130
|
+
*/
|
|
131
|
+
disabled: PropTypes.bool
|
|
125
132
|
}
|
|
126
|
-
|
|
127
133
|
WorkspaceGitHubIcon.defaultProps = {
|
|
128
134
|
color: MAIN_DARK_BLUE,
|
|
129
|
-
size: MEDIUM
|
|
135
|
+
size: MEDIUM,
|
|
136
|
+
disabled: false
|
|
130
137
|
}
|
|
131
138
|
|
|
132
139
|
export default WorkspaceGitHubIcon
|
|
@@ -3,8 +3,11 @@ 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 }) => {
|
|
7
|
-
|
|
6
|
+
const WorkspaceLoadingIcon = ({ 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
|
|
|
10
13
|
let icon = <></>
|
|
@@ -46,12 +49,16 @@ WorkspaceLoadingIcon.propTypes = {
|
|
|
46
49
|
/**
|
|
47
50
|
* Size
|
|
48
51
|
*/
|
|
49
|
-
size: PropTypes.oneOf(SIZES)
|
|
52
|
+
size: PropTypes.oneOf(SIZES),
|
|
53
|
+
/**
|
|
54
|
+
* disabled
|
|
55
|
+
*/
|
|
56
|
+
disabled: PropTypes.bool
|
|
50
57
|
}
|
|
51
|
-
|
|
52
58
|
WorkspaceLoadingIcon.defaultProps = {
|
|
53
59
|
color: MAIN_DARK_BLUE,
|
|
54
|
-
size: MEDIUM
|
|
60
|
+
size: MEDIUM,
|
|
61
|
+
disabled: false
|
|
55
62
|
}
|
|
56
63
|
|
|
57
64
|
export default WorkspaceLoadingIcon
|
|
@@ -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, EXTRA_LARGE, MAIN_DARK_BLUE } from '../constants'
|
|
5
5
|
|
|
6
|
-
const WorkspaceReadyIcon = ({ color, size }) => {
|
|
7
|
-
|
|
6
|
+
const WorkspaceReadyIcon = ({ 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) {
|
|
@@ -134,12 +137,16 @@ WorkspaceReadyIcon.propTypes = {
|
|
|
134
137
|
/**
|
|
135
138
|
* Size
|
|
136
139
|
*/
|
|
137
|
-
size: PropTypes.oneOf(SIZES)
|
|
140
|
+
size: PropTypes.oneOf(SIZES),
|
|
141
|
+
/**
|
|
142
|
+
* disabled
|
|
143
|
+
*/
|
|
144
|
+
disabled: PropTypes.bool
|
|
138
145
|
}
|
|
139
|
-
|
|
140
146
|
WorkspaceReadyIcon.defaultProps = {
|
|
141
147
|
color: MAIN_DARK_BLUE,
|
|
142
|
-
size: MEDIUM
|
|
148
|
+
size: MEDIUM,
|
|
149
|
+
disabled: false
|
|
143
150
|
}
|
|
144
151
|
|
|
145
152
|
export default WorkspaceReadyIcon
|
|
@@ -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 WorkspaceStaticIcon = ({ color, size }) => {
|
|
7
|
-
|
|
6
|
+
const WorkspaceStaticIcon = ({ 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 @@ WorkspaceStaticIcon.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
|
WorkspaceStaticIcon.defaultProps = {
|
|
81
87
|
color: MAIN_DARK_BLUE,
|
|
82
|
-
size: MEDIUM
|
|
88
|
+
size: MEDIUM,
|
|
89
|
+
disabled: false
|
|
83
90
|
}
|
|
84
91
|
|
|
85
92
|
export default WorkspaceStaticIcon
|