@platformatic/ui-components 0.4.0 → 0.5.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/assets/{index-K_bDNror.css → index-Of0we_2v.css} +1 -1
- package/dist/assets/index-hLMQmMDJ.js +40 -0
- package/dist/index.html +2 -2
- package/index.js +0 -2
- package/package.json +3 -3
- package/setupTests.js +1 -0
- package/src/components/BorderedBox.jsx +9 -20
- package/src/components/Button.jsx +14 -30
- package/src/components/ButtonFullRounded.jsx +13 -31
- package/src/components/ButtonOnlyIcon.jsx +13 -36
- package/src/components/Checkbox.jsx +5 -6
- package/src/components/CopyAndPaste.jsx +8 -19
- package/src/components/DropDown.jsx +10 -26
- package/src/components/FollowUs.jsx +18 -27
- package/src/components/HorizontalSeparator.jsx +6 -8
- package/src/components/InfoBox.jsx +8 -10
- package/src/components/ListElement.jsx +9 -11
- package/src/components/LoadingSpinner.jsx +1 -5
- package/src/components/LoadingSpinnerV2.jsx +4 -11
- package/src/components/LoginButton.test.jsx +0 -1
- package/src/components/LogoDropDown.jsx +7 -8
- package/src/components/Modal.jsx +11 -25
- package/src/components/ModalDirectional.jsx +9 -19
- package/src/components/ModalStepsForward.jsx +12 -24
- package/src/components/PlatformaticIcon.jsx +9 -21
- package/src/components/SearchBarV2.jsx +9 -22
- package/src/components/Sidebar.jsx +12 -26
- package/src/components/Status.jsx +5 -7
- package/src/components/TabbedWindow.jsx +11 -10
- package/src/components/TabbedWindow.module.css +4 -4
- package/src/components/Tag.jsx +9 -11
- package/src/components/TextWithLabel.jsx +7 -9
- package/src/components/Tooltip.jsx +8 -19
- package/src/components/TooltipAbsolute.jsx +10 -22
- package/src/components/VerticalSeparator.jsx +5 -7
- package/src/components/forms/Field.jsx +8 -19
- package/src/components/forms/Input.jsx +17 -37
- package/src/components/forms/InputWithSeparator.jsx +14 -31
- package/src/components/forms/Password.jsx +10 -18
- package/src/components/forms/Preview.jsx +10 -12
- package/src/components/forms/RadioGroup.jsx +9 -17
- package/src/components/forms/Select.jsx +19 -40
- package/src/components/forms/SelectWithInput.jsx +22 -46
- package/src/components/forms/TextArea.jsx +11 -25
- package/src/components/forms/ToggleSwitch.jsx +8 -19
- package/src/components/icons/APIDocsIcon.jsx +6 -7
- package/src/components/icons/AddIcon.jsx +6 -7
- package/src/components/icons/AlertIcon.jsx +6 -7
- package/src/components/icons/AllAppsIcon.jsx +6 -7
- package/src/components/icons/AllInOneIcon.jsx +6 -7
- package/src/components/icons/ApiCloudIcon.jsx +6 -7
- package/src/components/icons/ApiEmptyIcon.jsx +6 -7
- package/src/components/icons/ApiIcon.jsx +6 -7
- package/src/components/icons/ApiIconClosed.jsx +10 -6
- package/src/components/icons/ApiPerformanceIcon.jsx +6 -7
- package/src/components/icons/AppConfigurationIcon.jsx +6 -7
- package/src/components/icons/AppDetailsIcon.jsx +6 -7
- package/src/components/icons/AppEditIcon.jsx +6 -7
- package/src/components/icons/AppEmptyIcon.jsx +6 -7
- package/src/components/icons/AppIcon.jsx +6 -7
- package/src/components/icons/AppListIcon.jsx +6 -7
- package/src/components/icons/AppSettingsIcon.jsx +6 -7
- package/src/components/icons/AppWorkspace.jsx +10 -7
- package/src/components/icons/ApplicationTypeIcon.jsx +6 -7
- package/src/components/icons/ArrowDownFullIcon.jsx +6 -7
- package/src/components/icons/ArrowDownIcon.jsx +6 -7
- package/src/components/icons/ArrowLeftIcon.jsx +6 -7
- package/src/components/icons/ArrowLongLeftIcon.jsx +6 -7
- package/src/components/icons/ArrowLongRightIcon.jsx +6 -7
- package/src/components/icons/ArrowRightIcon.jsx +6 -7
- package/src/components/icons/ArrowUpIcon.jsx +6 -7
- package/src/components/icons/BellIcon.jsx +6 -7
- package/src/components/icons/BillingIcon.jsx +6 -7
- package/src/components/icons/BranchIcon.jsx +102 -0
- package/src/components/icons/BuiltInLoggingIcon.jsx +6 -7
- package/src/components/icons/CLIIcon.jsx +6 -7
- package/src/components/icons/Calendar1DayIcon.jsx +6 -7
- package/src/components/icons/Calendar7DaysIcon.jsx +6 -7
- package/src/components/icons/CalendarIcon.jsx +6 -7
- package/src/components/icons/CheckListIcon.jsx +6 -7
- package/src/components/icons/CircleAddIcon.jsx +6 -7
- package/src/components/icons/CircleArrowLeftIcon.jsx +6 -7
- package/src/components/icons/CircleArrowRightIcon.jsx +6 -7
- package/src/components/icons/CircleCheckMarkButtonIcon.jsx +6 -8
- package/src/components/icons/CircleCheckMarkFullIcon.jsx +6 -7
- package/src/components/icons/CircleCheckMarkIcon.jsx +7 -6
- package/src/components/icons/CircleCloseHoverIcon.jsx +6 -7
- package/src/components/icons/CircleCloseIcon.jsx +6 -7
- package/src/components/icons/CircleCopyPasteIcon.jsx +6 -7
- package/src/components/icons/CircleDownloadIcon.jsx +6 -7
- package/src/components/icons/CircleEditIcon.jsx +6 -7
- package/src/components/icons/CircleExclamationIcon.jsx +7 -7
- package/src/components/icons/CircleFullIcon.jsx +6 -7
- package/src/components/icons/CircleGearIcon.jsx +6 -7
- package/src/components/icons/CirclePlayIcon.jsx +6 -7
- package/src/components/icons/CircleRestartIcon.jsx +6 -7
- package/src/components/icons/CircleStopIcon.jsx +6 -7
- package/src/components/icons/CircleSubtractIcon.jsx +6 -7
- package/src/components/icons/CircleTwoArrowsDownIcon.jsx +6 -7
- package/src/components/icons/CircleTwoArrowsUpIcon.jsx +6 -7
- package/src/components/icons/CloseIcon.jsx +6 -7
- package/src/components/icons/CloudIcon.jsx +6 -7
- package/src/components/icons/CodeTestingIcon.jsx +6 -7
- package/src/components/icons/ComputerIcon.jsx +6 -7
- package/src/components/icons/ConfigureDatabaseIcon.jsx +6 -7
- package/src/components/icons/CopyPasteIcon.jsx +6 -7
- package/src/components/icons/CreateAppIcon.jsx +6 -7
- package/src/components/icons/CreditCardIcon.jsx +6 -7
- package/src/components/icons/DatabaseIcon.jsx +6 -7
- package/src/components/icons/DatabaseMigrationIcon.jsx +6 -7
- package/src/components/icons/DepencenciesReloadIcon.jsx +6 -7
- package/src/components/icons/DeploymentHistoryIcon.jsx +118 -0
- package/src/components/icons/EditDocumentIcon.jsx +6 -7
- package/src/components/icons/EditIcon.jsx +6 -7
- package/src/components/icons/EnlargeIcon.jsx +6 -7
- package/src/components/icons/EntryIcon.jsx +6 -7
- package/src/components/icons/EntrypointIcon.jsx +6 -7
- package/src/components/icons/ExpandIcon.jsx +6 -7
- package/src/components/icons/ExploreDocIcon.jsx +6 -7
- package/src/components/icons/EyeClosedIcon.jsx +6 -7
- package/src/components/icons/EyeOpenedIcon.jsx +6 -7
- package/src/components/icons/FailureRateIcon.jsx +104 -0
- package/src/components/icons/FolderIcon.jsx +6 -7
- package/src/components/icons/FoldersIcon.jsx +6 -7
- package/src/components/icons/GearIcon.jsx +6 -7
- package/src/components/icons/GenerationLoadingIcon.jsx +6 -7
- package/src/components/icons/GitHubRepo2Icon.jsx +6 -7
- package/src/components/icons/GitHubRepoIcon.jsx +6 -7
- package/src/components/icons/GiveOwnershipIcon.jsx +6 -7
- package/src/components/icons/GraphQLIcon.jsx +6 -7
- package/src/components/icons/ImportAppIcon.jsx +6 -7
- package/src/components/icons/K8SMetricsIcon.jsx +106 -0
- package/src/components/icons/KeyIcon.jsx +6 -7
- package/src/components/icons/LabelIcon.jsx +6 -7
- package/src/components/icons/LayersIcon.jsx +6 -7
- package/src/components/icons/LensIcon.jsx +6 -7
- package/src/components/icons/LiveIcon.jsx +6 -7
- package/src/components/icons/LoadingAppIcon.jsx +6 -7
- package/src/components/icons/LogOutIcon.jsx +7 -7
- package/src/components/icons/LogsRiskIcon.jsx +6 -7
- package/src/components/icons/MetricsIcon.jsx +6 -7
- package/src/components/icons/MetricsLoadingIcon.jsx +6 -7
- package/src/components/icons/MetricsLogsIcon.jsx +124 -0
- package/src/components/icons/MissingTemplateIcon.jsx +6 -7
- package/src/components/icons/NameAppIcon.jsx +6 -7
- package/src/components/icons/NoMetricsIcon.jsx +6 -7
- package/src/components/icons/NodeJSMetricsIcon.jsx +106 -0
- package/src/components/icons/NotCompliantServiceIcon.jsx +103 -0
- package/src/components/icons/OrganizationIcon.jsx +6 -7
- package/src/components/icons/OtherLogosGoogleIcon.jsx +69 -0
- package/src/components/icons/OutOfBoxGraphQLIcon.jsx +6 -7
- package/src/components/icons/OutdatedServiceIcon.jsx +105 -0
- package/src/components/icons/PlatformaticComposerIcon.jsx +6 -7
- package/src/components/icons/PlatformaticDBIcon.jsx +6 -7
- package/src/components/icons/PlatformaticRuntimeIcon.jsx +6 -7
- package/src/components/icons/PlatformaticServiceIcon.jsx +6 -7
- package/src/components/icons/PlayIcon.jsx +6 -7
- package/src/components/icons/PreviewPRIcon.jsx +6 -7
- package/src/components/icons/PullRequestIcon.jsx +6 -7
- package/src/components/icons/PullRequestLoadingIcon.jsx +6 -7
- package/src/components/icons/RecentAppsIcon.jsx +6 -7
- package/src/components/icons/RequestOwnershipIcon.jsx +6 -7
- package/src/components/icons/ResourceIcon.jsx +111 -0
- package/src/components/icons/RestartIcon.jsx +6 -7
- package/src/components/icons/RocketIcon.jsx +6 -7
- package/src/components/icons/RunningAppIcon.jsx +6 -7
- package/src/components/icons/RunningIcon.jsx +6 -7
- package/src/components/icons/SendIcon.jsx +6 -7
- package/src/components/icons/ServiceIcon.jsx +6 -7
- package/src/components/icons/SlotIcon.jsx +6 -7
- package/src/components/icons/SocialDiscordIcon.jsx +6 -7
- package/src/components/icons/SocialGitHubIcon.jsx +6 -7
- package/src/components/icons/SocialGitLabIcon.jsx +6 -7
- package/src/components/icons/SocialLinkedInIcon.jsx +6 -7
- package/src/components/icons/SocialNPMIcon.jsx +6 -7
- package/src/components/icons/SocialXIcon.jsx +6 -7
- package/src/components/icons/SortDownIcon.jsx +6 -7
- package/src/components/icons/SortIcon.jsx +6 -7
- package/src/components/icons/SortUpIcon.jsx +6 -7
- package/src/components/icons/SortableIcon.jsx +6 -7
- package/src/components/icons/StackablesIcon.jsx +6 -7
- package/src/components/icons/StackablesPluginIcon.jsx +6 -7
- package/src/components/icons/StackablesTemplateIcon.jsx +6 -7
- package/src/components/icons/StopIcon.jsx +6 -7
- package/src/components/icons/StoppedAppIcon.jsx +6 -7
- package/src/components/icons/SwitchIcon.jsx +6 -7
- package/src/components/icons/TeamsIcon.jsx +6 -7
- package/src/components/icons/TerminalIcon.jsx +6 -7
- package/src/components/icons/TrashIcon.jsx +6 -8
- package/src/components/icons/TwoUsersIcon.jsx +6 -7
- package/src/components/icons/UpgradeIcon.jsx +6 -7
- package/src/components/icons/UserComputerIcon.jsx +6 -7
- package/src/components/icons/UserIcon.jsx +6 -7
- package/src/components/icons/UserRemoveIcon.jsx +7 -7
- package/src/components/icons/UserRoleIcon.jsx +7 -7
- package/src/components/icons/WorkspaceDynamicIcon.jsx +6 -7
- package/src/components/icons/WorkspaceEmptyIcon.jsx +6 -7
- package/src/components/icons/WorkspaceFailIcon.jsx +6 -7
- package/src/components/icons/WorkspaceGitHubIcon.jsx +6 -7
- package/src/components/icons/WorkspaceLoadingIcon.jsx +6 -7
- package/src/components/icons/WorkspaceReadyIcon.jsx +6 -7
- package/src/components/icons/WorkspaceStaticIcon.jsx +6 -7
- package/src/components/icons/ZoomInIcon.jsx +99 -0
- package/src/components/icons/ZoomOutIcon.jsx +96 -0
- package/src/components/icons/index.js +25 -2
- package/src/components/layouts/Layout.jsx +4 -6
- package/src/components/logos/AdvancedLogo.jsx +5 -7
- package/src/components/logos/BasicLogo.jsx +5 -7
- package/src/components/logos/FreeLogo.jsx +5 -7
- package/src/components/logos/ProLogo.jsx +5 -7
- package/vitest.config.js +2 -1
- package/dist/assets/index-DxEcxprd.js +0 -40
- package/src/components/TabbedWindowV2.jsx +0 -82
- package/src/components/TabbedWindowV2.module.css +0 -17
|
@@ -3,7 +3,12 @@ import PropTypes from 'prop-types'
|
|
|
3
3
|
import styles from './Icons.module.css'
|
|
4
4
|
import { COLORS_ICON, SIZES, SMALL, MEDIUM, LARGE, MAIN_DARK_BLUE } from '../constants'
|
|
5
5
|
|
|
6
|
-
const CopyPasteIcon = ({
|
|
6
|
+
const CopyPasteIcon = ({
|
|
7
|
+
color = MAIN_DARK_BLUE,
|
|
8
|
+
size = MEDIUM,
|
|
9
|
+
disabled = false,
|
|
10
|
+
inactive = false
|
|
11
|
+
}) => {
|
|
7
12
|
let className = `${styles.svgClassName} ` + styles[`${color}`]
|
|
8
13
|
if (disabled) {
|
|
9
14
|
className += ` ${styles.iconDisabled}`
|
|
@@ -87,11 +92,5 @@ CopyPasteIcon.propTypes = {
|
|
|
87
92
|
*/
|
|
88
93
|
inactive: PropTypes.bool
|
|
89
94
|
}
|
|
90
|
-
CopyPasteIcon.defaultProps = {
|
|
91
|
-
color: MAIN_DARK_BLUE,
|
|
92
|
-
size: MEDIUM,
|
|
93
|
-
disabled: false,
|
|
94
|
-
inactive: false
|
|
95
|
-
}
|
|
96
95
|
|
|
97
96
|
export default CopyPasteIcon
|
|
@@ -3,7 +3,12 @@ import PropTypes from 'prop-types'
|
|
|
3
3
|
import styles from './Icons.module.css'
|
|
4
4
|
import { COLORS_ICON, SIZES, SMALL, MEDIUM, LARGE, MAIN_DARK_BLUE } from '../constants'
|
|
5
5
|
|
|
6
|
-
const CreateAppIcon = ({
|
|
6
|
+
const CreateAppIcon = ({
|
|
7
|
+
color = MAIN_DARK_BLUE,
|
|
8
|
+
size = MEDIUM,
|
|
9
|
+
disabled = false,
|
|
10
|
+
inactive = false
|
|
11
|
+
}) => {
|
|
7
12
|
let className = `${styles.svgClassName} ` + styles[`${color}`]
|
|
8
13
|
if (disabled) {
|
|
9
14
|
className += ` ${styles.iconDisabled}`
|
|
@@ -87,11 +92,5 @@ CreateAppIcon.propTypes = {
|
|
|
87
92
|
*/
|
|
88
93
|
inactive: PropTypes.bool
|
|
89
94
|
}
|
|
90
|
-
CreateAppIcon.defaultProps = {
|
|
91
|
-
color: MAIN_DARK_BLUE,
|
|
92
|
-
size: MEDIUM,
|
|
93
|
-
disabled: false,
|
|
94
|
-
inactive: false
|
|
95
|
-
}
|
|
96
95
|
|
|
97
96
|
export default CreateAppIcon
|
|
@@ -3,7 +3,12 @@ import PropTypes from 'prop-types'
|
|
|
3
3
|
import styles from './Icons.module.css'
|
|
4
4
|
import { COLORS_ICON, SIZES, SMALL, MEDIUM, LARGE, MAIN_DARK_BLUE } from '../constants'
|
|
5
5
|
|
|
6
|
-
const CreditCardIcon = ({
|
|
6
|
+
const CreditCardIcon = ({
|
|
7
|
+
color = MAIN_DARK_BLUE,
|
|
8
|
+
size = MEDIUM,
|
|
9
|
+
disabled = false,
|
|
10
|
+
inactive = false
|
|
11
|
+
}) => {
|
|
7
12
|
let className = `${styles.svgClassName} ` + styles[`${color}`]
|
|
8
13
|
if (disabled) {
|
|
9
14
|
className += ` ${styles.iconDisabled}`
|
|
@@ -90,11 +95,5 @@ CreditCardIcon.propTypes = {
|
|
|
90
95
|
*/
|
|
91
96
|
inactive: PropTypes.bool
|
|
92
97
|
}
|
|
93
|
-
CreditCardIcon.defaultProps = {
|
|
94
|
-
color: MAIN_DARK_BLUE,
|
|
95
|
-
size: MEDIUM,
|
|
96
|
-
disabled: false,
|
|
97
|
-
inactive: false
|
|
98
|
-
}
|
|
99
98
|
|
|
100
99
|
export default CreditCardIcon
|
|
@@ -3,7 +3,12 @@ import PropTypes from 'prop-types'
|
|
|
3
3
|
import styles from './Icons.module.css'
|
|
4
4
|
import { COLORS_ICON, SIZES, SMALL, MEDIUM, LARGE, MAIN_DARK_BLUE } from '../constants'
|
|
5
5
|
|
|
6
|
-
const DatabaseIcon = ({
|
|
6
|
+
const DatabaseIcon = ({
|
|
7
|
+
color = MAIN_DARK_BLUE,
|
|
8
|
+
size = MEDIUM,
|
|
9
|
+
disabled = false,
|
|
10
|
+
inactive = false
|
|
11
|
+
}) => {
|
|
7
12
|
let className = `${styles.svgClassName} ` + styles[`${color}`]
|
|
8
13
|
if (disabled) {
|
|
9
14
|
className += ` ${styles.iconDisabled}`
|
|
@@ -87,11 +92,5 @@ DatabaseIcon.propTypes = {
|
|
|
87
92
|
*/
|
|
88
93
|
inactive: PropTypes.bool
|
|
89
94
|
}
|
|
90
|
-
DatabaseIcon.defaultProps = {
|
|
91
|
-
color: MAIN_DARK_BLUE,
|
|
92
|
-
size: MEDIUM,
|
|
93
|
-
disabled: false,
|
|
94
|
-
inactive: false
|
|
95
|
-
}
|
|
96
95
|
|
|
97
96
|
export default DatabaseIcon
|
|
@@ -3,7 +3,12 @@ import PropTypes from 'prop-types'
|
|
|
3
3
|
import styles from './Icons.module.css'
|
|
4
4
|
import { COLORS_ICON, LARGE, MAIN_DARK_BLUE, MEDIUM, SIZES, SMALL } from '../constants'
|
|
5
5
|
|
|
6
|
-
const DatabaseMigrationIcon = ({
|
|
6
|
+
const DatabaseMigrationIcon = ({
|
|
7
|
+
color = MAIN_DARK_BLUE,
|
|
8
|
+
size = MEDIUM,
|
|
9
|
+
disabled = false,
|
|
10
|
+
inactive = false
|
|
11
|
+
}) => {
|
|
7
12
|
let className = `${styles.svgClassName} ` + styles[`${color}`]
|
|
8
13
|
if (disabled) {
|
|
9
14
|
className += ` ${styles.iconDisabled}`
|
|
@@ -91,11 +96,5 @@ DatabaseMigrationIcon.propTypes = {
|
|
|
91
96
|
*/
|
|
92
97
|
inactive: PropTypes.bool
|
|
93
98
|
}
|
|
94
|
-
DatabaseMigrationIcon.defaultProps = {
|
|
95
|
-
color: MAIN_DARK_BLUE,
|
|
96
|
-
size: MEDIUM,
|
|
97
|
-
disabled: false,
|
|
98
|
-
inactive: false
|
|
99
|
-
}
|
|
100
99
|
|
|
101
100
|
export default DatabaseMigrationIcon
|
|
@@ -3,7 +3,12 @@ import PropTypes from 'prop-types'
|
|
|
3
3
|
import styles from './Icons.module.css'
|
|
4
4
|
import { COLORS_ICON, SIZES, SMALL, MEDIUM, LARGE, MAIN_DARK_BLUE } from '../constants'
|
|
5
5
|
|
|
6
|
-
const DepencenciesReloadIcon = ({
|
|
6
|
+
const DepencenciesReloadIcon = ({
|
|
7
|
+
color = MAIN_DARK_BLUE,
|
|
8
|
+
size = MEDIUM,
|
|
9
|
+
disabled = false,
|
|
10
|
+
inactive = false
|
|
11
|
+
}) => {
|
|
7
12
|
let className = `${styles.svgClassName} ` + styles[`${color}`]
|
|
8
13
|
if (disabled) {
|
|
9
14
|
className += ` ${styles.iconDisabled}`
|
|
@@ -95,11 +100,5 @@ DepencenciesReloadIcon.propTypes = {
|
|
|
95
100
|
*/
|
|
96
101
|
inactive: PropTypes.bool
|
|
97
102
|
}
|
|
98
|
-
DepencenciesReloadIcon.defaultProps = {
|
|
99
|
-
color: MAIN_DARK_BLUE,
|
|
100
|
-
size: MEDIUM,
|
|
101
|
-
disabled: false,
|
|
102
|
-
inactive: false
|
|
103
|
-
}
|
|
104
103
|
|
|
105
104
|
export default DepencenciesReloadIcon
|
|
@@ -0,0 +1,118 @@
|
|
|
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 DeploymentHistoryIcon = ({
|
|
7
|
+
color = MAIN_DARK_BLUE,
|
|
8
|
+
size = MEDIUM,
|
|
9
|
+
disabled = false,
|
|
10
|
+
inactive = false
|
|
11
|
+
}) => {
|
|
12
|
+
let className = `${styles.svgClassName} ` + styles[`${color}`]
|
|
13
|
+
if (disabled) {
|
|
14
|
+
className += ` ${styles.iconDisabled}`
|
|
15
|
+
}
|
|
16
|
+
if (inactive) {
|
|
17
|
+
className += ` ${styles.iconInactive}`
|
|
18
|
+
}
|
|
19
|
+
let icon = <></>
|
|
20
|
+
const filledClassName = styles[`filled-${color}`]
|
|
21
|
+
|
|
22
|
+
switch (size) {
|
|
23
|
+
case SMALL:
|
|
24
|
+
icon = (
|
|
25
|
+
<svg
|
|
26
|
+
width={16}
|
|
27
|
+
height={16}
|
|
28
|
+
viewBox='0 0 16 16'
|
|
29
|
+
fill='none'
|
|
30
|
+
xmlns='http://www.w3.org/2000/svg'
|
|
31
|
+
className={className}
|
|
32
|
+
>
|
|
33
|
+
<rect x='7' y='6' width='7' height='7' rx='1' stroke='none' />
|
|
34
|
+
<path d='M10 8H12.5' stroke='none' strokeLinecap='round' />
|
|
35
|
+
<path d='M10 9.5H12.5' stroke='none' strokeLinecap='round' />
|
|
36
|
+
<path d='M10 11H12.5' stroke='none' strokeLinecap='round' />
|
|
37
|
+
<path d='M7.2821 5L7.2821 4.98418C7.2821 4.78938 7.2252 4.59882 7.1184 4.43591L5.93956 2.63781C5.74213 2.33666 5.3007 2.33666 5.10327 2.63781L3.92443 4.43591C3.81763 4.59882 3.76073 4.78957 3.76073 4.98437C3.76073 6.36226 3.76073 6.82617 3.76073 7.03551L2 9.13364L4.11282 9.13364L4.46496 9.97289L5.72684 9.97289' stroke='none' strokeLinecap='round' strokeLinejoin='round' />
|
|
38
|
+
<path d='M3.76025 11.2322L3.76025 12.9107' stroke='none' strokeLinecap='round' strokeLinejoin='bevel' />
|
|
39
|
+
<path d='M5.52197 12.0715L5.52197 13.75' stroke='none' strokeLinecap='round' strokeLinejoin='bevel' />
|
|
40
|
+
<circle cx='8.5' cy='8' r='0.5' fill='none' className={filledClassName} />
|
|
41
|
+
<circle cx='8.5' cy='9.5' r='0.5' fill='none' className={filledClassName} />
|
|
42
|
+
<circle cx='8.5' cy='11' r='0.5' fill='none' className={filledClassName} />
|
|
43
|
+
</svg>
|
|
44
|
+
)
|
|
45
|
+
break
|
|
46
|
+
case MEDIUM:
|
|
47
|
+
icon = (
|
|
48
|
+
<svg
|
|
49
|
+
width={24}
|
|
50
|
+
height={24}
|
|
51
|
+
viewBox='0 0 24 24'
|
|
52
|
+
fill='none'
|
|
53
|
+
xmlns='http://www.w3.org/2000/svg'
|
|
54
|
+
className={className}
|
|
55
|
+
>
|
|
56
|
+
<rect x='10.5' y='9' width='10.5' height='10.5' rx='1' stroke='none' strokeWidth={1.5} />
|
|
57
|
+
<path d='M15 12H18.75' stroke='none' strokeWidth={1.5} strokeLinecap='round' />
|
|
58
|
+
<path d='M15 14.25H18.75' stroke='none' strokeWidth={1.5} strokeLinecap='round' />
|
|
59
|
+
<path d='M15 16.5H18.75' stroke='none' strokeWidth={1.5} strokeLinecap='round' />
|
|
60
|
+
<path d='M10.9232 7.5L10.9232 7.32699C10.9232 7.13218 10.8663 6.94162 10.7594 6.77871L8.70027 3.63781C8.50284 3.33666 8.06141 3.33666 7.86397 3.63781L5.8048 6.77871C5.69799 6.94162 5.64109 7.13326 5.64109 7.32806C5.64109 9.51036 5.64109 10.2318 5.64109 10.5533L3 13.7005L6.16923 13.7005L6.69744 14.9593L8.59027 14.9593' stroke='none' strokeWidth={1.5} strokeLinecap='round' strokeLinejoin='round' />
|
|
61
|
+
<path d='M5.64062 16.8481L5.64062 19.3659' stroke='none' strokeWidth={1.5} strokeLinecap='round' strokeLinejoin='bevel' />
|
|
62
|
+
<path d='M8.2832 18.1072L8.2832 20.6249' stroke='none' strokeWidth={1.5} strokeLinecap='round' strokeLinejoin='bevel' />
|
|
63
|
+
<circle cx='12.75' cy='12' r='0.75' fill='none' className={filledClassName} />
|
|
64
|
+
<circle cx='12.75' cy='14.25' r='0.75' fill='none' className={filledClassName} />
|
|
65
|
+
<circle cx='12.75' cy='16.5' r='0.75' fill='none' className={filledClassName} />
|
|
66
|
+
</svg>
|
|
67
|
+
)
|
|
68
|
+
break
|
|
69
|
+
case LARGE:
|
|
70
|
+
icon = (
|
|
71
|
+
<svg
|
|
72
|
+
width={40}
|
|
73
|
+
height={40}
|
|
74
|
+
viewBox='0 0 40 40'
|
|
75
|
+
fill='none'
|
|
76
|
+
xmlns='http://www.w3.org/2000/svg'
|
|
77
|
+
className={className}
|
|
78
|
+
>
|
|
79
|
+
<rect x='17.5' y='15' width='17.5' height='17.5' rx='1' stroke='none' strokeWidth={2} />
|
|
80
|
+
<path d='M25 20H31.25' stroke='none' strokeWidth={2} strokeLinecap='round' />
|
|
81
|
+
<path d='M25 23.75H31.25' stroke='none' strokeWidth={2} strokeLinecap='round' />
|
|
82
|
+
<path d='M25 27.5H31.25' stroke='none' strokeWidth={2} strokeLinecap='round' />
|
|
83
|
+
<path d='M18.2053 12.5L18.2053 12.0126C18.2053 11.8178 18.1484 11.6272 18.0416 11.4643L14.2217 5.63781C14.0243 5.33666 13.5828 5.33666 13.3854 5.63781L9.56553 11.4643C9.45872 11.6272 9.40182 11.819 9.40182 12.0138C9.40182 15.8069 9.40182 17.0434 9.40182 17.5888L5 22.8341L10.2821 22.8341L11.1624 24.9322L14.3171 24.9322' stroke='none' strokeWidth={2} strokeLinecap='round' strokeLinejoin='round' />
|
|
84
|
+
<path d='M9.40039 28.0801L9.40039 32.2763' stroke='none' strokeWidth={2} strokeLinecap='round' strokeLinejoin='bevel' />
|
|
85
|
+
<path d='M13.8047 30.1787L13.8047 34.375' stroke='none' strokeWidth={2} strokeLinecap='round' strokeLinejoin='bevel' />
|
|
86
|
+
<circle cx='21.25' cy='20' r='1.25' fill='none' className={filledClassName} />
|
|
87
|
+
<circle cx='21.25' cy='23.75' r='1.25' fill='none' className={filledClassName} />
|
|
88
|
+
<circle cx='21.25' cy='27.5' r='1.25' fill='none' className={filledClassName} />
|
|
89
|
+
</svg>
|
|
90
|
+
)
|
|
91
|
+
break
|
|
92
|
+
|
|
93
|
+
default:
|
|
94
|
+
break
|
|
95
|
+
}
|
|
96
|
+
return icon
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
DeploymentHistoryIcon.propTypes = {
|
|
100
|
+
/**
|
|
101
|
+
* color of text, icon and borders
|
|
102
|
+
*/
|
|
103
|
+
color: PropTypes.oneOf(COLORS_ICON),
|
|
104
|
+
/**
|
|
105
|
+
* Size
|
|
106
|
+
*/
|
|
107
|
+
size: PropTypes.oneOf(SIZES),
|
|
108
|
+
/**
|
|
109
|
+
* disabled
|
|
110
|
+
*/
|
|
111
|
+
disabled: PropTypes.bool,
|
|
112
|
+
/**
|
|
113
|
+
* inactive
|
|
114
|
+
*/
|
|
115
|
+
inactive: PropTypes.bool
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
export default DeploymentHistoryIcon
|
|
@@ -3,7 +3,12 @@ import PropTypes from 'prop-types'
|
|
|
3
3
|
import styles from './Icons.module.css'
|
|
4
4
|
import { COLORS_ICON, SIZES, SMALL, MEDIUM, LARGE, MAIN_DARK_BLUE } from '../constants'
|
|
5
5
|
|
|
6
|
-
const EditDocumentIcon = ({
|
|
6
|
+
const EditDocumentIcon = ({
|
|
7
|
+
color = MAIN_DARK_BLUE,
|
|
8
|
+
size = MEDIUM,
|
|
9
|
+
disabled = false,
|
|
10
|
+
inactive = false
|
|
11
|
+
}) => {
|
|
7
12
|
let className = `${styles.svgClassName} ` + styles[`${color}`]
|
|
8
13
|
if (disabled) {
|
|
9
14
|
className += ` ${styles.iconDisabled}`
|
|
@@ -102,11 +107,5 @@ EditDocumentIcon.propTypes = {
|
|
|
102
107
|
*/
|
|
103
108
|
inactive: PropTypes.bool
|
|
104
109
|
}
|
|
105
|
-
EditDocumentIcon.defaultProps = {
|
|
106
|
-
color: MAIN_DARK_BLUE,
|
|
107
|
-
size: MEDIUM,
|
|
108
|
-
disabled: false,
|
|
109
|
-
inactive: false
|
|
110
|
-
}
|
|
111
110
|
|
|
112
111
|
export default EditDocumentIcon
|
|
@@ -3,7 +3,12 @@ import PropTypes from 'prop-types'
|
|
|
3
3
|
import styles from './Icons.module.css'
|
|
4
4
|
import { COLORS_ICON, SIZES, SMALL, MEDIUM, LARGE, MAIN_DARK_BLUE } from '../constants'
|
|
5
5
|
|
|
6
|
-
const EditIcon = ({
|
|
6
|
+
const EditIcon = ({
|
|
7
|
+
color = MAIN_DARK_BLUE,
|
|
8
|
+
size = MEDIUM,
|
|
9
|
+
disabled = false,
|
|
10
|
+
inactive = false
|
|
11
|
+
}) => {
|
|
7
12
|
let className = `${styles.svgClassName} ` + styles[`${color}`]
|
|
8
13
|
if (disabled) {
|
|
9
14
|
className += ` ${styles.iconDisabled}`
|
|
@@ -87,11 +92,5 @@ EditIcon.propTypes = {
|
|
|
87
92
|
*/
|
|
88
93
|
inactive: PropTypes.bool
|
|
89
94
|
}
|
|
90
|
-
EditIcon.defaultProps = {
|
|
91
|
-
color: MAIN_DARK_BLUE,
|
|
92
|
-
size: MEDIUM,
|
|
93
|
-
disabled: false,
|
|
94
|
-
inactive: false
|
|
95
|
-
}
|
|
96
95
|
|
|
97
96
|
export default EditIcon
|
|
@@ -3,7 +3,12 @@ import PropTypes from 'prop-types'
|
|
|
3
3
|
import styles from './Icons.module.css'
|
|
4
4
|
import { COLORS_ICON, SIZES, SMALL, MEDIUM, LARGE, MAIN_DARK_BLUE } from '../constants'
|
|
5
5
|
|
|
6
|
-
const EnlargeIcon = ({
|
|
6
|
+
const EnlargeIcon = ({
|
|
7
|
+
color = MAIN_DARK_BLUE,
|
|
8
|
+
size = MEDIUM,
|
|
9
|
+
disabled = false,
|
|
10
|
+
inactive = false
|
|
11
|
+
}) => {
|
|
7
12
|
let className = `${styles.svgClassName} ` + styles[`${color}`]
|
|
8
13
|
if (disabled) {
|
|
9
14
|
className += ` ${styles.iconDisabled}`
|
|
@@ -91,11 +96,5 @@ EnlargeIcon.propTypes = {
|
|
|
91
96
|
*/
|
|
92
97
|
inactive: PropTypes.bool
|
|
93
98
|
}
|
|
94
|
-
EnlargeIcon.defaultProps = {
|
|
95
|
-
color: MAIN_DARK_BLUE,
|
|
96
|
-
size: MEDIUM,
|
|
97
|
-
disabled: false,
|
|
98
|
-
inactive: false
|
|
99
|
-
}
|
|
100
99
|
|
|
101
100
|
export default EnlargeIcon
|
|
@@ -3,7 +3,12 @@ import PropTypes from 'prop-types'
|
|
|
3
3
|
import styles from './Icons.module.css'
|
|
4
4
|
import { COLORS_ICON, SIZES, SMALL, MEDIUM, LARGE, MAIN_DARK_BLUE } from '../constants'
|
|
5
5
|
|
|
6
|
-
const EntryIcon = ({
|
|
6
|
+
const EntryIcon = ({
|
|
7
|
+
color = MAIN_DARK_BLUE,
|
|
8
|
+
size = MEDIUM,
|
|
9
|
+
disabled = false,
|
|
10
|
+
inactive = false
|
|
11
|
+
}) => {
|
|
7
12
|
let className = `${styles.svgClassName} ` + styles[`${color}`]
|
|
8
13
|
if (disabled) {
|
|
9
14
|
className += ` ${styles.iconDisabled}`
|
|
@@ -88,11 +93,5 @@ EntryIcon.propTypes = {
|
|
|
88
93
|
*/
|
|
89
94
|
inactive: PropTypes.bool
|
|
90
95
|
}
|
|
91
|
-
EntryIcon.defaultProps = {
|
|
92
|
-
color: MAIN_DARK_BLUE,
|
|
93
|
-
size: MEDIUM,
|
|
94
|
-
disabled: false,
|
|
95
|
-
inactive: false
|
|
96
|
-
}
|
|
97
96
|
|
|
98
97
|
export default EntryIcon
|
|
@@ -3,7 +3,12 @@ import PropTypes from 'prop-types'
|
|
|
3
3
|
import styles from './Icons.module.css'
|
|
4
4
|
import { COLORS_ICON, SIZES, SMALL, MEDIUM, LARGE, MAIN_DARK_BLUE } from '../constants'
|
|
5
5
|
|
|
6
|
-
const EntrypointIcon = ({
|
|
6
|
+
const EntrypointIcon = ({
|
|
7
|
+
color = MAIN_DARK_BLUE,
|
|
8
|
+
size = MEDIUM,
|
|
9
|
+
disabled = false,
|
|
10
|
+
inactive = false
|
|
11
|
+
}) => {
|
|
7
12
|
let className = `${styles.svgClassName} ` + styles[`${color}`]
|
|
8
13
|
if (disabled) {
|
|
9
14
|
className += ` ${styles.iconDisabled}`
|
|
@@ -85,11 +90,5 @@ EntrypointIcon.propTypes = {
|
|
|
85
90
|
*/
|
|
86
91
|
inactive: PropTypes.bool
|
|
87
92
|
}
|
|
88
|
-
EntrypointIcon.defaultProps = {
|
|
89
|
-
color: MAIN_DARK_BLUE,
|
|
90
|
-
size: MEDIUM,
|
|
91
|
-
disabled: false,
|
|
92
|
-
inactive: false
|
|
93
|
-
}
|
|
94
93
|
|
|
95
94
|
export default EntrypointIcon
|
|
@@ -3,7 +3,12 @@ import PropTypes from 'prop-types'
|
|
|
3
3
|
import styles from './Icons.module.css'
|
|
4
4
|
import { COLORS_ICON, SIZES, SMALL, MEDIUM, LARGE, MAIN_DARK_BLUE } from '../constants'
|
|
5
5
|
|
|
6
|
-
const ExpandIcon = ({
|
|
6
|
+
const ExpandIcon = ({
|
|
7
|
+
color = MAIN_DARK_BLUE,
|
|
8
|
+
size = MEDIUM,
|
|
9
|
+
disabled = false,
|
|
10
|
+
inactive = false
|
|
11
|
+
}) => {
|
|
7
12
|
let className = `${styles.svgClassName} ` + styles[`${color}`]
|
|
8
13
|
if (disabled) {
|
|
9
14
|
className += ` ${styles.iconDisabled}`
|
|
@@ -90,11 +95,5 @@ ExpandIcon.propTypes = {
|
|
|
90
95
|
*/
|
|
91
96
|
inactive: PropTypes.bool
|
|
92
97
|
}
|
|
93
|
-
ExpandIcon.defaultProps = {
|
|
94
|
-
color: MAIN_DARK_BLUE,
|
|
95
|
-
size: MEDIUM,
|
|
96
|
-
disabled: false,
|
|
97
|
-
inactive: false
|
|
98
|
-
}
|
|
99
98
|
|
|
100
99
|
export default ExpandIcon
|
|
@@ -3,7 +3,12 @@ import PropTypes from 'prop-types'
|
|
|
3
3
|
import styles from './Icons.module.css'
|
|
4
4
|
import { COLORS_ICON, SIZES, SMALL, MEDIUM, LARGE, MAIN_DARK_BLUE } from '../constants'
|
|
5
5
|
|
|
6
|
-
const ExploreDocIcon = ({
|
|
6
|
+
const ExploreDocIcon = ({
|
|
7
|
+
color = MAIN_DARK_BLUE,
|
|
8
|
+
size = MEDIUM,
|
|
9
|
+
disabled = false,
|
|
10
|
+
inactive = false
|
|
11
|
+
}) => {
|
|
7
12
|
let className = `${styles.svgClassName} ` + styles[`${color}`]
|
|
8
13
|
if (disabled) {
|
|
9
14
|
className += ` ${styles.iconDisabled}`
|
|
@@ -101,11 +106,5 @@ ExploreDocIcon.propTypes = {
|
|
|
101
106
|
*/
|
|
102
107
|
inactive: PropTypes.bool
|
|
103
108
|
}
|
|
104
|
-
ExploreDocIcon.defaultProps = {
|
|
105
|
-
color: MAIN_DARK_BLUE,
|
|
106
|
-
size: MEDIUM,
|
|
107
|
-
disabled: false,
|
|
108
|
-
inactive: false
|
|
109
|
-
}
|
|
110
109
|
|
|
111
110
|
export default ExploreDocIcon
|
|
@@ -3,7 +3,12 @@ import PropTypes from 'prop-types'
|
|
|
3
3
|
import styles from './Icons.module.css'
|
|
4
4
|
import { COLORS_ICON, MAIN_DARK_BLUE, SIZES, SMALL } from '../constants'
|
|
5
5
|
|
|
6
|
-
const EyeClosedIcon = ({
|
|
6
|
+
const EyeClosedIcon = ({
|
|
7
|
+
color = MAIN_DARK_BLUE,
|
|
8
|
+
size = SMALL,
|
|
9
|
+
disabled = false,
|
|
10
|
+
inactive = false
|
|
11
|
+
}) => {
|
|
7
12
|
let className = `${styles.svgClassName} ` + styles[`${color}`]
|
|
8
13
|
if (disabled) {
|
|
9
14
|
className += ` ${styles.iconDisabled}`
|
|
@@ -56,11 +61,5 @@ EyeClosedIcon.propTypes = {
|
|
|
56
61
|
*/
|
|
57
62
|
inactive: PropTypes.bool
|
|
58
63
|
}
|
|
59
|
-
EyeClosedIcon.defaultProps = {
|
|
60
|
-
color: MAIN_DARK_BLUE,
|
|
61
|
-
size: SMALL,
|
|
62
|
-
disabled: false,
|
|
63
|
-
inactive: false
|
|
64
|
-
}
|
|
65
64
|
|
|
66
65
|
export default EyeClosedIcon
|
|
@@ -3,7 +3,12 @@ import PropTypes from 'prop-types'
|
|
|
3
3
|
import styles from './Icons.module.css'
|
|
4
4
|
import { COLORS_ICON, MAIN_DARK_BLUE, SIZES, SMALL } from '../constants'
|
|
5
5
|
|
|
6
|
-
const EyeOpenedIcon = ({
|
|
6
|
+
const EyeOpenedIcon = ({
|
|
7
|
+
color = MAIN_DARK_BLUE,
|
|
8
|
+
size = SMALL,
|
|
9
|
+
disabled = false,
|
|
10
|
+
inactive = false
|
|
11
|
+
}) => {
|
|
7
12
|
let className = `${styles.svgClassName} ` + styles[`${color}`]
|
|
8
13
|
if (disabled) {
|
|
9
14
|
className += ` ${styles.iconDisabled}`
|
|
@@ -54,11 +59,5 @@ EyeOpenedIcon.propTypes = {
|
|
|
54
59
|
*/
|
|
55
60
|
inactive: PropTypes.bool
|
|
56
61
|
}
|
|
57
|
-
EyeOpenedIcon.defaultProps = {
|
|
58
|
-
color: MAIN_DARK_BLUE,
|
|
59
|
-
size: SMALL,
|
|
60
|
-
disabled: false,
|
|
61
|
-
inactive: false
|
|
62
|
-
}
|
|
63
62
|
|
|
64
63
|
export default EyeOpenedIcon
|
|
@@ -0,0 +1,104 @@
|
|
|
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 FailureRateIcon = ({
|
|
7
|
+
color = MAIN_DARK_BLUE,
|
|
8
|
+
size = MEDIUM,
|
|
9
|
+
disabled = false,
|
|
10
|
+
inactive = false
|
|
11
|
+
}) => {
|
|
12
|
+
let className = `${styles.svgClassName} ` + styles[`${color}`]
|
|
13
|
+
if (disabled) {
|
|
14
|
+
className += ` ${styles.iconDisabled}`
|
|
15
|
+
}
|
|
16
|
+
if (inactive) {
|
|
17
|
+
className += ` ${styles.iconInactive}`
|
|
18
|
+
}
|
|
19
|
+
let icon = <></>
|
|
20
|
+
const filledClassName = styles[`filled-${color}`]
|
|
21
|
+
|
|
22
|
+
switch (size) {
|
|
23
|
+
case SMALL:
|
|
24
|
+
icon = (
|
|
25
|
+
<svg
|
|
26
|
+
width={16}
|
|
27
|
+
height={16}
|
|
28
|
+
viewBox='0 0 16 16'
|
|
29
|
+
fill='none'
|
|
30
|
+
xmlns='http://www.w3.org/2000/svg'
|
|
31
|
+
className={className}
|
|
32
|
+
>
|
|
33
|
+
<path d='M9.5 7L7 2L2 12H6' stroke='none' strokeLinecap='round' strokeLinejoin='round' />
|
|
34
|
+
<path d='M7 5.18188V8.3637' stroke='none' strokeLinecap='round' strokeLinejoin='round' />
|
|
35
|
+
<circle cx='6.99991' cy='10.1818' r='0.909091' fill='none' className={filledClassName} />
|
|
36
|
+
<circle cx='11' cy='11' r='3' stroke='none' />
|
|
37
|
+
<path d='M9.91191 11.9777L11.6543 10.0223H12.0881L10.3457 11.9777H9.91191ZM10.1343 11.0782C10.0103 11.0782 9.90097 11.0568 9.8062 11.014C9.71142 10.9693 9.63609 10.9069 9.58019 10.8268C9.52673 10.7449 9.5 10.649 9.5 10.5391C9.5 10.4292 9.52673 10.3343 9.58019 10.2542C9.63609 10.1741 9.71142 10.1117 9.8062 10.067C9.90097 10.0223 10.0103 10 10.1343 10C10.2582 10 10.3676 10.0223 10.4623 10.067C10.5571 10.1117 10.6312 10.1741 10.6847 10.2542C10.7382 10.3343 10.7649 10.4292 10.7649 10.5391C10.7649 10.649 10.7382 10.7449 10.6847 10.8268C10.6312 10.9069 10.5571 10.9693 10.4623 11.014C10.3676 11.0568 10.2582 11.0782 10.1343 11.0782ZM10.1343 10.8492C10.2145 10.8492 10.2789 10.824 10.3275 10.7737C10.3761 10.7216 10.4004 10.6434 10.4004 10.5391C10.4004 10.4348 10.3761 10.3575 10.3275 10.3073C10.2789 10.2551 10.2145 10.2291 10.1343 10.2291C10.0565 10.2291 9.9921 10.2551 9.94107 10.3073C9.89247 10.3575 9.86817 10.4348 9.86817 10.5391C9.86817 10.6415 9.89247 10.7188 9.94107 10.7709C9.9921 10.8231 10.0565 10.8492 10.1343 10.8492ZM11.8657 12C11.7442 12 11.6349 11.9786 11.5377 11.9358C11.4429 11.8911 11.3688 11.8287 11.3153 11.7486C11.2618 11.6667 11.2351 11.5708 11.2351 11.4609C11.2351 11.351 11.2618 11.2561 11.3153 11.176C11.3688 11.0959 11.4429 11.0335 11.5377 10.9888C11.6349 10.9441 11.7442 10.9218 11.8657 10.9218C11.9921 10.9218 12.1027 10.9441 12.1974 10.9888C12.2922 11.0335 12.3663 11.0959 12.4198 11.176C12.4733 11.2561 12.5 11.351 12.5 11.4609C12.5 11.5708 12.4733 11.6667 12.4198 11.7486C12.3663 11.8287 12.2922 11.8911 12.1974 11.9358C12.1027 11.9786 11.9921 12 11.8657 12ZM11.8657 11.7709C11.9459 11.7709 12.0103 11.7458 12.0589 11.6955C12.1075 11.6434 12.1318 11.5652 12.1318 11.4609C12.1318 11.3585 12.1075 11.2812 12.0589 11.2291C12.0103 11.1769 11.9459 11.1508 11.8657 11.1508C11.788 11.1508 11.7236 11.1769 11.6725 11.2291C11.6239 11.2793 11.5996 11.3566 11.5996 11.4609C11.5996 11.5652 11.6239 11.6434 11.6725 11.6955C11.7236 11.7458 11.788 11.7709 11.8657 11.7709Z' fill='none' className={filledClassName} />
|
|
38
|
+
|
|
39
|
+
</svg>
|
|
40
|
+
)
|
|
41
|
+
break
|
|
42
|
+
case MEDIUM:
|
|
43
|
+
icon = (
|
|
44
|
+
<svg
|
|
45
|
+
width={24}
|
|
46
|
+
height={24}
|
|
47
|
+
viewBox='0 0 24 24'
|
|
48
|
+
fill='none'
|
|
49
|
+
xmlns='http://www.w3.org/2000/svg'
|
|
50
|
+
className={className}
|
|
51
|
+
>
|
|
52
|
+
<path d='M14.25 10.5L10.5 3L3 18H9' stroke='none' strokeWidth={1.5} strokeLinecap='round' strokeLinejoin='round' />
|
|
53
|
+
<path d='M10.5 7.77271V12.5454' stroke='none' strokeWidth={1.5} strokeLinecap='round' strokeLinejoin='round' />
|
|
54
|
+
<circle cx='10.5001' cy='15.2728' r='1.36364' fill='none' className={filledClassName} />
|
|
55
|
+
<circle cx='16.5' cy='16.5' r='4.5' stroke='none' strokeWidth={1.5} />
|
|
56
|
+
<path d='M14.8679 17.9665L17.4815 15.0335H18.1321L15.5185 17.9665H14.8679ZM15.2014 16.6173C15.0155 16.6173 14.8515 16.5852 14.7093 16.5209C14.5671 16.4539 14.4541 16.3603 14.3703 16.2402C14.2901 16.1173 14.25 15.9735 14.25 15.8087C14.25 15.6439 14.2901 15.5014 14.3703 15.3813C14.4541 15.2612 14.5671 15.1676 14.7093 15.1006C14.8515 15.0335 15.0155 15 15.2014 15C15.3873 15 15.5513 15.0335 15.6935 15.1006C15.8357 15.1676 15.9468 15.2612 16.027 15.3813C16.1072 15.5014 16.1473 15.6439 16.1473 15.8087C16.1473 15.9735 16.1072 16.1173 16.027 16.2402C15.9468 16.3603 15.8357 16.4539 15.6935 16.5209C15.5513 16.5852 15.3873 16.6173 15.2014 16.6173ZM15.2014 16.2737C15.3217 16.2737 15.4183 16.236 15.4912 16.1606C15.5641 16.0824 15.6005 15.9651 15.6005 15.8087C15.6005 15.6522 15.5641 15.5363 15.4912 15.4609C15.4183 15.3827 15.3217 15.3436 15.2014 15.3436C15.0848 15.3436 14.9882 15.3827 14.9116 15.4609C14.8387 15.5363 14.8022 15.6522 14.8022 15.8087C14.8022 15.9623 14.8387 16.0782 14.9116 16.1564C14.9882 16.2346 15.0848 16.2737 15.2014 16.2737ZM17.7986 18C17.6163 18 17.4523 17.9679 17.3065 17.9036C17.1643 17.8366 17.0532 17.743 16.973 17.6229C16.8928 17.5 16.8527 17.3561 16.8527 17.1913C16.8527 17.0265 16.8928 16.8841 16.973 16.764C17.0532 16.6439 17.1643 16.5503 17.3065 16.4832C17.4523 16.4162 17.6163 16.3827 17.7986 16.3827C17.9882 16.3827 18.154 16.4162 18.2962 16.4832C18.4383 16.5503 18.5495 16.6439 18.6297 16.764C18.7099 16.8841 18.75 17.0265 18.75 17.1913C18.75 17.3561 18.7099 17.5 18.6297 17.6229C18.5495 17.743 18.4383 17.8366 18.2962 17.9036C18.154 17.9679 17.9882 18 17.7986 18ZM17.7986 17.6564C17.9189 17.6564 18.0155 17.6187 18.0884 17.5433C18.1613 17.4651 18.1978 17.3478 18.1978 17.1913C18.1978 17.0377 18.1613 16.9218 18.0884 16.8436C18.0155 16.7654 17.9189 16.7263 17.7986 16.7263C17.682 16.7263 17.5854 16.7654 17.5088 16.8436C17.4359 16.919 17.3995 17.0349 17.3995 17.1913C17.3995 17.3478 17.4359 17.4651 17.5088 17.5433C17.5854 17.6187 17.682 17.6564 17.7986 17.6564Z' fill='none' className={filledClassName} />
|
|
57
|
+
</svg>
|
|
58
|
+
)
|
|
59
|
+
break
|
|
60
|
+
case LARGE:
|
|
61
|
+
icon = (
|
|
62
|
+
<svg
|
|
63
|
+
width={40}
|
|
64
|
+
height={40}
|
|
65
|
+
viewBox='0 0 40 40'
|
|
66
|
+
fill='none'
|
|
67
|
+
xmlns='http://www.w3.org/2000/svg'
|
|
68
|
+
className={className}
|
|
69
|
+
>
|
|
70
|
+
<path d='M23.75 17.5L17.5 5L5 30H15' stroke='none' strokeWidth={2} strokeLinecap='round' strokeLinejoin='round' />
|
|
71
|
+
<path d='M17.5 12.9546V20.9091' stroke='none' strokeWidth={2} strokeLinecap='round' strokeLinejoin='round' />
|
|
72
|
+
<circle cx='17.5' cy='25.4546' r='2.27273' fill='none' className={filledClassName} />
|
|
73
|
+
<circle cx='27.5' cy='27.5' r='7.5' stroke='none' strokeWidth={2} />
|
|
74
|
+
<path d='M24.7798 29.9441L29.1358 25.0559H30.2202L25.8642 29.9441H24.7798ZM25.3357 27.6955C25.0258 27.6955 24.7524 27.642 24.5155 27.5349C24.2786 27.4232 24.0902 27.2672 23.9505 27.067C23.8168 26.8622 23.75 26.6224 23.75 26.3478C23.75 26.0731 23.8168 25.8357 23.9505 25.6355C24.0902 25.4353 24.2786 25.2793 24.5155 25.1676C24.7524 25.0559 25.0258 25 25.3357 25C25.6455 25 25.9189 25.0559 26.1558 25.1676C26.3928 25.2793 26.5781 25.4353 26.7117 25.6355C26.8454 25.8357 26.9122 26.0731 26.9122 26.3478C26.9122 26.6224 26.8454 26.8622 26.7117 27.067C26.5781 27.2672 26.3928 27.4232 26.1558 27.5349C25.9189 27.642 25.6455 27.6955 25.3357 27.6955ZM25.3357 27.1229C25.5361 27.1229 25.6971 27.0601 25.8187 26.9344C25.9402 26.804 26.0009 26.6085 26.0009 26.3478C26.0009 26.0871 25.9402 25.8939 25.8187 25.7682C25.6971 25.6378 25.5361 25.5726 25.3357 25.5726C25.1413 25.5726 24.9803 25.6378 24.8527 25.7682C24.7312 25.8939 24.6704 26.0871 24.6704 26.3478C24.6704 26.6038 24.7312 26.797 24.8527 26.9274C24.9803 27.0577 25.1413 27.1229 25.3357 27.1229ZM29.6643 30C29.3606 30 29.0872 29.9465 28.8442 29.8394C28.6072 29.7277 28.4219 29.5717 28.2883 29.3715C28.1546 29.1667 28.0878 28.9269 28.0878 28.6522C28.0878 28.3776 28.1546 28.1401 28.2883 27.9399C28.4219 27.7398 28.6072 27.5838 28.8442 27.4721C29.0872 27.3603 29.3606 27.3045 29.6643 27.3045C29.9803 27.3045 30.2567 27.3603 30.4936 27.4721C30.7306 27.5838 30.9159 27.7398 31.0495 27.9399C31.1832 28.1401 31.25 28.3776 31.25 28.6522C31.25 28.9269 31.1832 29.1667 31.0495 29.3715C30.9159 29.5717 30.7306 29.7277 30.4936 29.8394C30.2567 29.9465 29.9803 30 29.6643 30ZM29.6643 29.4274C29.8648 29.4274 30.0258 29.3645 30.1473 29.2388C30.2688 29.1085 30.3296 28.9129 30.3296 28.6522C30.3296 28.3962 30.2688 28.203 30.1473 28.0726C30.0258 27.9423 29.8648 27.8771 29.6643 27.8771C29.4699 27.8771 29.3089 27.9423 29.1813 28.0726C29.0598 28.1983 28.9991 28.3915 28.9991 28.6522C28.9991 28.9129 29.0598 29.1085 29.1813 29.2388C29.3089 29.3645 29.4699 29.4274 29.6643 29.4274Z' fill='none' className={filledClassName} />
|
|
75
|
+
</svg>
|
|
76
|
+
)
|
|
77
|
+
break
|
|
78
|
+
|
|
79
|
+
default:
|
|
80
|
+
break
|
|
81
|
+
}
|
|
82
|
+
return icon
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
FailureRateIcon.propTypes = {
|
|
86
|
+
/**
|
|
87
|
+
* color of text, icon and borders
|
|
88
|
+
*/
|
|
89
|
+
color: PropTypes.oneOf(COLORS_ICON),
|
|
90
|
+
/**
|
|
91
|
+
* Size
|
|
92
|
+
*/
|
|
93
|
+
size: PropTypes.oneOf(SIZES),
|
|
94
|
+
/**
|
|
95
|
+
* disabled
|
|
96
|
+
*/
|
|
97
|
+
disabled: PropTypes.bool,
|
|
98
|
+
/**
|
|
99
|
+
* inactive
|
|
100
|
+
*/
|
|
101
|
+
inactive: PropTypes.bool
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
export default FailureRateIcon
|
|
@@ -3,7 +3,12 @@ import PropTypes from 'prop-types'
|
|
|
3
3
|
import styles from './Icons.module.css'
|
|
4
4
|
import { COLORS_ICON, SIZES, SMALL, MEDIUM, LARGE, MAIN_DARK_BLUE } from '../constants'
|
|
5
5
|
|
|
6
|
-
const FolderIcon = ({
|
|
6
|
+
const FolderIcon = ({
|
|
7
|
+
color = MAIN_DARK_BLUE,
|
|
8
|
+
size = MEDIUM,
|
|
9
|
+
disabled = false,
|
|
10
|
+
inactive = false
|
|
11
|
+
}) => {
|
|
7
12
|
let className = `${styles.svgClassName} ` + styles[`${color}`]
|
|
8
13
|
if (disabled) {
|
|
9
14
|
className += ` ${styles.iconDisabled}`
|
|
@@ -81,11 +86,5 @@ FolderIcon.propTypes = {
|
|
|
81
86
|
*/
|
|
82
87
|
inactive: PropTypes.bool
|
|
83
88
|
}
|
|
84
|
-
FolderIcon.defaultProps = {
|
|
85
|
-
color: MAIN_DARK_BLUE,
|
|
86
|
-
size: MEDIUM,
|
|
87
|
-
disabled: false,
|
|
88
|
-
inactive: false
|
|
89
|
-
}
|
|
90
89
|
|
|
91
90
|
export default FolderIcon
|