@platformatic/ui-components 0.1.124 → 0.1.126
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 +56 -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/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 OrganizationIcon = ({ color, size }) => {
|
|
7
|
-
|
|
6
|
+
const OrganizationIcon = ({ 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) {
|
|
@@ -79,12 +82,16 @@ OrganizationIcon.propTypes = {
|
|
|
79
82
|
/**
|
|
80
83
|
* Size
|
|
81
84
|
*/
|
|
82
|
-
size: PropTypes.oneOf(SIZES)
|
|
85
|
+
size: PropTypes.oneOf(SIZES),
|
|
86
|
+
/**
|
|
87
|
+
* disabled
|
|
88
|
+
*/
|
|
89
|
+
disabled: PropTypes.bool
|
|
83
90
|
}
|
|
84
|
-
|
|
85
91
|
OrganizationIcon.defaultProps = {
|
|
86
92
|
color: MAIN_DARK_BLUE,
|
|
87
|
-
size: MEDIUM
|
|
93
|
+
size: MEDIUM,
|
|
94
|
+
disabled: false
|
|
88
95
|
}
|
|
89
96
|
|
|
90
97
|
export default OrganizationIcon
|
|
@@ -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 OutOfBoxGraphQLIcon = ({ color, size }) => {
|
|
7
|
-
|
|
6
|
+
const OutOfBoxGraphQLIcon = ({ 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 @@ OutOfBoxGraphQLIcon.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
|
OutOfBoxGraphQLIcon.defaultProps = {
|
|
108
114
|
color: MAIN_DARK_BLUE,
|
|
109
|
-
size: MEDIUM
|
|
115
|
+
size: MEDIUM,
|
|
116
|
+
disabled: false
|
|
110
117
|
}
|
|
111
118
|
|
|
112
119
|
export default OutOfBoxGraphQLIcon
|
|
@@ -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 PlatformaticComposerIcon = ({ color, size }) => {
|
|
7
|
-
|
|
6
|
+
const PlatformaticComposerIcon = ({ 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 @@ PlatformaticComposerIcon.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
|
PlatformaticComposerIcon.defaultProps = {
|
|
75
81
|
color: MAIN_DARK_BLUE,
|
|
76
|
-
size: MEDIUM
|
|
82
|
+
size: MEDIUM,
|
|
83
|
+
disabled: false
|
|
77
84
|
}
|
|
78
85
|
|
|
79
86
|
export default PlatformaticComposerIcon
|
|
@@ -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 PlatformaticDBIcon = ({ color, size }) => {
|
|
7
|
-
|
|
6
|
+
const PlatformaticDBIcon = ({ 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) {
|
|
@@ -88,12 +91,16 @@ PlatformaticDBIcon.propTypes = {
|
|
|
88
91
|
/**
|
|
89
92
|
* Size
|
|
90
93
|
*/
|
|
91
|
-
size: PropTypes.oneOf(SIZES)
|
|
94
|
+
size: PropTypes.oneOf(SIZES),
|
|
95
|
+
/**
|
|
96
|
+
* disabled
|
|
97
|
+
*/
|
|
98
|
+
disabled: PropTypes.bool
|
|
92
99
|
}
|
|
93
|
-
|
|
94
100
|
PlatformaticDBIcon.defaultProps = {
|
|
95
101
|
color: MAIN_DARK_BLUE,
|
|
96
|
-
size: MEDIUM
|
|
102
|
+
size: MEDIUM,
|
|
103
|
+
disabled: false
|
|
97
104
|
}
|
|
98
105
|
|
|
99
106
|
export default PlatformaticDBIcon
|
|
@@ -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 PlatformaticRuntimeIcon = ({ color, size }) => {
|
|
7
|
-
|
|
6
|
+
const PlatformaticRuntimeIcon = ({ 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 @@ PlatformaticRuntimeIcon.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
|
PlatformaticRuntimeIcon.defaultProps = {
|
|
87
93
|
color: MAIN_DARK_BLUE,
|
|
88
|
-
size: MEDIUM
|
|
94
|
+
size: MEDIUM,
|
|
95
|
+
disabled: false
|
|
89
96
|
}
|
|
90
97
|
|
|
91
98
|
export default PlatformaticRuntimeIcon
|
|
@@ -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 PlatformaticServiceIcon = ({ color, size }) => {
|
|
7
|
-
|
|
6
|
+
const PlatformaticServiceIcon = ({ 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 @@ PlatformaticServiceIcon.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
|
PlatformaticServiceIcon.defaultProps = {
|
|
87
93
|
color: MAIN_DARK_BLUE,
|
|
88
|
-
size: MEDIUM
|
|
94
|
+
size: MEDIUM,
|
|
95
|
+
disabled: false
|
|
89
96
|
}
|
|
90
97
|
|
|
91
98
|
export default PlatformaticServiceIcon
|
|
@@ -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 PlayIcon = ({ color, size }) => {
|
|
7
|
-
|
|
6
|
+
const PlayIcon = ({ 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 @@ PlayIcon.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
|
PlayIcon.defaultProps = {
|
|
72
78
|
color: MAIN_DARK_BLUE,
|
|
73
|
-
size: MEDIUM
|
|
79
|
+
size: MEDIUM,
|
|
80
|
+
disabled: false
|
|
74
81
|
}
|
|
75
82
|
|
|
76
83
|
export default PlayIcon
|
|
@@ -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 PreviewPRIcon = ({ color, size }) => {
|
|
7
|
-
|
|
6
|
+
const PreviewPRIcon = ({ 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) {
|
|
@@ -89,12 +92,16 @@ PreviewPRIcon.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
|
PreviewPRIcon.defaultProps = {
|
|
96
102
|
color: MAIN_DARK_BLUE,
|
|
97
|
-
size: MEDIUM
|
|
103
|
+
size: MEDIUM,
|
|
104
|
+
disabled: false
|
|
98
105
|
}
|
|
99
106
|
|
|
100
107
|
export default PreviewPRIcon
|
|
@@ -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 PullRequestIcon = ({ color, size }) => {
|
|
7
|
-
|
|
6
|
+
const PullRequestIcon = ({ 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) {
|
|
@@ -82,12 +85,16 @@ PullRequestIcon.propTypes = {
|
|
|
82
85
|
/**
|
|
83
86
|
* Size
|
|
84
87
|
*/
|
|
85
|
-
size: PropTypes.oneOf(SIZES)
|
|
88
|
+
size: PropTypes.oneOf(SIZES),
|
|
89
|
+
/**
|
|
90
|
+
* disabled
|
|
91
|
+
*/
|
|
92
|
+
disabled: PropTypes.bool
|
|
86
93
|
}
|
|
87
|
-
|
|
88
94
|
PullRequestIcon.defaultProps = {
|
|
89
95
|
color: MAIN_DARK_BLUE,
|
|
90
|
-
size: MEDIUM
|
|
96
|
+
size: MEDIUM,
|
|
97
|
+
disabled: false
|
|
91
98
|
}
|
|
92
99
|
|
|
93
100
|
export default PullRequestIcon
|
|
@@ -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 PullRequestLoadingIcon = ({ color, size }) => {
|
|
7
|
-
|
|
6
|
+
const PullRequestLoadingIcon = ({ 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 = <></>
|
|
@@ -49,12 +52,16 @@ PullRequestLoadingIcon.propTypes = {
|
|
|
49
52
|
/**
|
|
50
53
|
* Size
|
|
51
54
|
*/
|
|
52
|
-
size: PropTypes.oneOf(SIZES)
|
|
55
|
+
size: PropTypes.oneOf(SIZES),
|
|
56
|
+
/**
|
|
57
|
+
* disabled
|
|
58
|
+
*/
|
|
59
|
+
disabled: PropTypes.bool
|
|
53
60
|
}
|
|
54
|
-
|
|
55
61
|
PullRequestLoadingIcon.defaultProps = {
|
|
56
62
|
color: MAIN_DARK_BLUE,
|
|
57
|
-
size: MEDIUM
|
|
63
|
+
size: MEDIUM,
|
|
64
|
+
disabled: false
|
|
58
65
|
}
|
|
59
66
|
|
|
60
67
|
export default PullRequestLoadingIcon
|
|
@@ -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 RequestOwnershipIcon = ({ color, size }) => {
|
|
7
|
-
|
|
6
|
+
const RequestOwnershipIcon = ({ 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) {
|
|
@@ -73,12 +76,16 @@ RequestOwnershipIcon.propTypes = {
|
|
|
73
76
|
/**
|
|
74
77
|
* Size
|
|
75
78
|
*/
|
|
76
|
-
size: PropTypes.oneOf(SIZES)
|
|
79
|
+
size: PropTypes.oneOf(SIZES),
|
|
80
|
+
/**
|
|
81
|
+
* disabled
|
|
82
|
+
*/
|
|
83
|
+
disabled: PropTypes.bool
|
|
77
84
|
}
|
|
78
|
-
|
|
79
85
|
RequestOwnershipIcon.defaultProps = {
|
|
80
86
|
color: MAIN_DARK_BLUE,
|
|
81
|
-
size: MEDIUM
|
|
87
|
+
size: MEDIUM,
|
|
88
|
+
disabled: false
|
|
82
89
|
}
|
|
83
90
|
|
|
84
91
|
export default RequestOwnershipIcon
|
|
@@ -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 RestartIcon = ({ color, size }) => {
|
|
7
|
-
|
|
6
|
+
const RestartIcon = ({ 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 @@ RestartIcon.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
|
RestartIcon.defaultProps = {
|
|
75
81
|
color: MAIN_DARK_BLUE,
|
|
76
|
-
size: MEDIUM
|
|
82
|
+
size: MEDIUM,
|
|
83
|
+
disabled: false
|
|
77
84
|
}
|
|
78
85
|
|
|
79
86
|
export default RestartIcon
|
|
@@ -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 RocketIcon = ({ color, size }) => {
|
|
7
|
-
|
|
6
|
+
const RocketIcon = ({ 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 @@ RocketIcon.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
|
RocketIcon.defaultProps = {
|
|
87
93
|
color: MAIN_DARK_BLUE,
|
|
88
|
-
size: MEDIUM
|
|
94
|
+
size: MEDIUM,
|
|
95
|
+
disabled: false
|
|
89
96
|
}
|
|
90
97
|
|
|
91
98
|
export default RocketIcon
|
|
@@ -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 RunningIcon = ({ color, size }) => {
|
|
7
|
-
|
|
6
|
+
const RunningIcon = ({ 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 @@ RunningIcon.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
|
RunningIcon.defaultProps = {
|
|
79
85
|
color: MAIN_DARK_BLUE,
|
|
80
|
-
size: MEDIUM
|
|
86
|
+
size: MEDIUM,
|
|
87
|
+
disabled: false
|
|
81
88
|
}
|
|
82
89
|
|
|
83
90
|
export default RunningIcon
|
|
@@ -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 SendIcon = ({ color, size }) => {
|
|
7
|
-
|
|
6
|
+
const SendIcon = ({ 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 @@ SendIcon.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
|
SendIcon.defaultProps = {
|
|
72
78
|
color: MAIN_DARK_BLUE,
|
|
73
|
-
size: MEDIUM
|
|
79
|
+
size: MEDIUM,
|
|
80
|
+
disabled: false
|
|
74
81
|
}
|
|
75
82
|
|
|
76
83
|
export default SendIcon
|
|
@@ -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 ServiceIcon = ({ color, size }) => {
|
|
7
|
-
|
|
6
|
+
const ServiceIcon = ({ 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) {
|
|
@@ -79,12 +82,16 @@ ServiceIcon.propTypes = {
|
|
|
79
82
|
/**
|
|
80
83
|
* Size
|
|
81
84
|
*/
|
|
82
|
-
size: PropTypes.oneOf(SIZES)
|
|
85
|
+
size: PropTypes.oneOf(SIZES),
|
|
86
|
+
/**
|
|
87
|
+
* disabled
|
|
88
|
+
*/
|
|
89
|
+
disabled: PropTypes.bool
|
|
83
90
|
}
|
|
84
|
-
|
|
85
91
|
ServiceIcon.defaultProps = {
|
|
86
92
|
color: MAIN_DARK_BLUE,
|
|
87
|
-
size: MEDIUM
|
|
93
|
+
size: MEDIUM,
|
|
94
|
+
disabled: false
|
|
88
95
|
}
|
|
89
96
|
|
|
90
97
|
export default ServiceIcon
|
|
@@ -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 SlotIcon = ({ color, size }) => {
|
|
7
|
-
|
|
6
|
+
const SlotIcon = ({ 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 @@ SlotIcon.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
|
SlotIcon.defaultProps = {
|
|
84
90
|
color: MAIN_DARK_BLUE,
|
|
85
|
-
size: MEDIUM
|
|
91
|
+
size: MEDIUM,
|
|
92
|
+
disabled: false
|
|
86
93
|
}
|
|
87
94
|
|
|
88
95
|
export default SlotIcon
|
|
@@ -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 SocialDiscordIcon = ({ color, size }) => {
|
|
7
|
-
|
|
6
|
+
const SocialDiscordIcon = ({ 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
|
|
|
@@ -69,12 +72,16 @@ SocialDiscordIcon.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
|
SocialDiscordIcon.defaultProps = {
|
|
76
82
|
color: MAIN_DARK_BLUE,
|
|
77
|
-
size: MEDIUM
|
|
83
|
+
size: MEDIUM,
|
|
84
|
+
disabled: false
|
|
78
85
|
}
|
|
79
86
|
|
|
80
87
|
export default SocialDiscordIcon
|
|
@@ -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 SocialGitHubIcon = ({ color, size }) => {
|
|
7
|
-
|
|
6
|
+
const SocialGitHubIcon = ({ 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
|
|
|
@@ -88,12 +91,16 @@ SocialGitHubIcon.propTypes = {
|
|
|
88
91
|
/**
|
|
89
92
|
* Size
|
|
90
93
|
*/
|
|
91
|
-
size: PropTypes.oneOf(SIZES)
|
|
94
|
+
size: PropTypes.oneOf(SIZES),
|
|
95
|
+
/**
|
|
96
|
+
* disabled
|
|
97
|
+
*/
|
|
98
|
+
disabled: PropTypes.bool
|
|
92
99
|
}
|
|
93
|
-
|
|
94
100
|
SocialGitHubIcon.defaultProps = {
|
|
95
101
|
color: MAIN_DARK_BLUE,
|
|
96
|
-
size: MEDIUM
|
|
102
|
+
size: MEDIUM,
|
|
103
|
+
disabled: false
|
|
97
104
|
}
|
|
98
105
|
|
|
99
106
|
export default SocialGitHubIcon
|
|
@@ -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 SocialGitLabIcon = ({ color, size }) => {
|
|
7
|
-
|
|
6
|
+
const SocialGitLabIcon = ({ 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
|
|
|
@@ -112,12 +115,16 @@ SocialGitLabIcon.propTypes = {
|
|
|
112
115
|
/**
|
|
113
116
|
* Size
|
|
114
117
|
*/
|
|
115
|
-
size: PropTypes.oneOf(SIZES)
|
|
118
|
+
size: PropTypes.oneOf(SIZES),
|
|
119
|
+
/**
|
|
120
|
+
* disabled
|
|
121
|
+
*/
|
|
122
|
+
disabled: PropTypes.bool
|
|
116
123
|
}
|
|
117
|
-
|
|
118
124
|
SocialGitLabIcon.defaultProps = {
|
|
119
125
|
color: MAIN_DARK_BLUE,
|
|
120
|
-
size: MEDIUM
|
|
126
|
+
size: MEDIUM,
|
|
127
|
+
disabled: false
|
|
121
128
|
}
|
|
122
129
|
|
|
123
130
|
export default SocialGitLabIcon
|