@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 CloudIcon = ({ color, size }) => {
|
|
7
|
-
|
|
6
|
+
const CloudIcon = ({ color, size, disabled }) => {
|
|
7
|
+
let className = `${styles.svgClassName} ` + styles[`${color}`]
|
|
8
|
+
if (disabled) {
|
|
9
|
+
className += ` ${styles.iconDisabled}`
|
|
10
|
+
}
|
|
8
11
|
let icon = <></>
|
|
9
12
|
|
|
10
13
|
switch (size) {
|
|
@@ -66,12 +69,16 @@ CloudIcon.propTypes = {
|
|
|
66
69
|
/**
|
|
67
70
|
* Size
|
|
68
71
|
*/
|
|
69
|
-
size: PropTypes.oneOf(SIZES)
|
|
72
|
+
size: PropTypes.oneOf(SIZES),
|
|
73
|
+
/**
|
|
74
|
+
* disabled
|
|
75
|
+
*/
|
|
76
|
+
disabled: PropTypes.bool
|
|
70
77
|
}
|
|
71
|
-
|
|
72
78
|
CloudIcon.defaultProps = {
|
|
73
79
|
color: MAIN_DARK_BLUE,
|
|
74
|
-
size: MEDIUM
|
|
80
|
+
size: MEDIUM,
|
|
81
|
+
disabled: false
|
|
75
82
|
}
|
|
76
83
|
|
|
77
84
|
export default CloudIcon
|
|
@@ -3,8 +3,11 @@ 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 ConfigureDatabaseIcon = ({ color, size }) => {
|
|
7
|
-
|
|
6
|
+
const ConfigureDatabaseIcon = ({ 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) {
|
|
@@ -78,12 +81,16 @@ ConfigureDatabaseIcon.propTypes = {
|
|
|
78
81
|
/**
|
|
79
82
|
* Size
|
|
80
83
|
*/
|
|
81
|
-
size: PropTypes.oneOf(SIZES)
|
|
84
|
+
size: PropTypes.oneOf(SIZES),
|
|
85
|
+
/**
|
|
86
|
+
* disabled
|
|
87
|
+
*/
|
|
88
|
+
disabled: PropTypes.bool
|
|
82
89
|
}
|
|
83
|
-
|
|
84
90
|
ConfigureDatabaseIcon.defaultProps = {
|
|
85
91
|
color: MAIN_DARK_BLUE,
|
|
86
|
-
size: MEDIUM
|
|
92
|
+
size: MEDIUM,
|
|
93
|
+
disabled: false
|
|
87
94
|
}
|
|
88
95
|
|
|
89
96
|
export default ConfigureDatabaseIcon
|
|
@@ -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 CopyPasteIcon = ({ color, size }) => {
|
|
7
|
-
|
|
6
|
+
const CopyPasteIcon = ({ 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) {
|
|
@@ -71,12 +74,16 @@ CopyPasteIcon.propTypes = {
|
|
|
71
74
|
/**
|
|
72
75
|
* Size
|
|
73
76
|
*/
|
|
74
|
-
size: PropTypes.oneOf(SIZES)
|
|
77
|
+
size: PropTypes.oneOf(SIZES),
|
|
78
|
+
/**
|
|
79
|
+
* disabled
|
|
80
|
+
*/
|
|
81
|
+
disabled: PropTypes.bool
|
|
75
82
|
}
|
|
76
|
-
|
|
77
83
|
CopyPasteIcon.defaultProps = {
|
|
78
84
|
color: MAIN_DARK_BLUE,
|
|
79
|
-
size: MEDIUM
|
|
85
|
+
size: MEDIUM,
|
|
86
|
+
disabled: false
|
|
80
87
|
}
|
|
81
88
|
|
|
82
89
|
export default CopyPasteIcon
|
|
@@ -3,8 +3,11 @@ 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 CreatingAppIcon = ({ color, size }) => {
|
|
7
|
-
|
|
6
|
+
const CreatingAppIcon = ({ 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) {
|
|
@@ -84,12 +87,16 @@ CreatingAppIcon.propTypes = {
|
|
|
84
87
|
/**
|
|
85
88
|
* Size
|
|
86
89
|
*/
|
|
87
|
-
size: PropTypes.oneOf(SIZES)
|
|
90
|
+
size: PropTypes.oneOf(SIZES),
|
|
91
|
+
/**
|
|
92
|
+
* disabled
|
|
93
|
+
*/
|
|
94
|
+
disabled: PropTypes.bool
|
|
88
95
|
}
|
|
89
|
-
|
|
90
96
|
CreatingAppIcon.defaultProps = {
|
|
91
97
|
color: MAIN_DARK_BLUE,
|
|
92
|
-
size: MEDIUM
|
|
98
|
+
size: MEDIUM,
|
|
99
|
+
disabled: false
|
|
93
100
|
}
|
|
94
101
|
|
|
95
102
|
export default CreatingAppIcon
|
|
@@ -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 CreditCardIcon = ({ color, size }) => {
|
|
7
|
-
|
|
6
|
+
const CreditCardIcon = ({ 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 @@ CreditCardIcon.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
|
CreditCardIcon.defaultProps = {
|
|
81
87
|
color: MAIN_DARK_BLUE,
|
|
82
|
-
size: MEDIUM
|
|
88
|
+
size: MEDIUM,
|
|
89
|
+
disabled: false
|
|
83
90
|
}
|
|
84
91
|
|
|
85
92
|
export default CreditCardIcon
|
|
@@ -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 DatabaseIcon = ({ color, size }) => {
|
|
7
|
-
|
|
6
|
+
const DatabaseIcon = ({ 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) {
|
|
@@ -71,12 +74,16 @@ DatabaseIcon.propTypes = {
|
|
|
71
74
|
/**
|
|
72
75
|
* Size
|
|
73
76
|
*/
|
|
74
|
-
size: PropTypes.oneOf(SIZES)
|
|
77
|
+
size: PropTypes.oneOf(SIZES),
|
|
78
|
+
/**
|
|
79
|
+
* disabled
|
|
80
|
+
*/
|
|
81
|
+
disabled: PropTypes.bool
|
|
75
82
|
}
|
|
76
|
-
|
|
77
83
|
DatabaseIcon.defaultProps = {
|
|
78
84
|
color: MAIN_DARK_BLUE,
|
|
79
|
-
size: MEDIUM
|
|
85
|
+
size: MEDIUM,
|
|
86
|
+
disabled: false
|
|
80
87
|
}
|
|
81
88
|
|
|
82
89
|
export default DatabaseIcon
|
|
@@ -3,8 +3,11 @@ 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 = ({ color, size }) => {
|
|
7
|
-
|
|
6
|
+
const DatabaseMigrationIcon = ({ color, size, disabled }) => {
|
|
7
|
+
let className = `${styles.svgClassName} ` + styles[`${color}`]
|
|
8
|
+
if (disabled) {
|
|
9
|
+
className += ` ${styles.iconDisabled}`
|
|
10
|
+
}
|
|
8
11
|
let icon = <></>
|
|
9
12
|
|
|
10
13
|
switch (size) {
|
|
@@ -75,12 +78,16 @@ DatabaseMigrationIcon.propTypes = {
|
|
|
75
78
|
/**
|
|
76
79
|
* Size
|
|
77
80
|
*/
|
|
78
|
-
size: PropTypes.oneOf(SIZES)
|
|
81
|
+
size: PropTypes.oneOf(SIZES),
|
|
82
|
+
/**
|
|
83
|
+
* disabled
|
|
84
|
+
*/
|
|
85
|
+
disabled: PropTypes.bool
|
|
79
86
|
}
|
|
80
|
-
|
|
81
87
|
DatabaseMigrationIcon.defaultProps = {
|
|
82
88
|
color: MAIN_DARK_BLUE,
|
|
83
|
-
size: MEDIUM
|
|
89
|
+
size: MEDIUM,
|
|
90
|
+
disabled: false
|
|
84
91
|
}
|
|
85
92
|
|
|
86
93
|
export default DatabaseMigrationIcon
|
|
@@ -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 DepencenciesReloadIcon = ({ color, size }) => {
|
|
7
|
-
|
|
6
|
+
const DepencenciesReloadIcon = ({ 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 @@ DepencenciesReloadIcon.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
|
DepencenciesReloadIcon.defaultProps = {
|
|
86
92
|
color: MAIN_DARK_BLUE,
|
|
87
|
-
size: MEDIUM
|
|
93
|
+
size: MEDIUM,
|
|
94
|
+
disabled: false
|
|
88
95
|
}
|
|
89
96
|
|
|
90
97
|
export default DepencenciesReloadIcon
|
|
@@ -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 EditDocumentIcon = ({ color, size }) => {
|
|
7
|
-
|
|
6
|
+
const EditDocumentIcon = ({ 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) {
|
|
@@ -86,12 +89,16 @@ EditDocumentIcon.propTypes = {
|
|
|
86
89
|
/**
|
|
87
90
|
* Size
|
|
88
91
|
*/
|
|
89
|
-
size: PropTypes.oneOf(SIZES)
|
|
92
|
+
size: PropTypes.oneOf(SIZES),
|
|
93
|
+
/**
|
|
94
|
+
* disabled
|
|
95
|
+
*/
|
|
96
|
+
disabled: PropTypes.bool
|
|
90
97
|
}
|
|
91
|
-
|
|
92
98
|
EditDocumentIcon.defaultProps = {
|
|
93
99
|
color: MAIN_DARK_BLUE,
|
|
94
|
-
size: MEDIUM
|
|
100
|
+
size: MEDIUM,
|
|
101
|
+
disabled: false
|
|
95
102
|
}
|
|
96
103
|
|
|
97
104
|
export default EditDocumentIcon
|
|
@@ -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 EditIcon = ({ color, size }) => {
|
|
7
|
-
|
|
6
|
+
const EditIcon = ({ 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) {
|
|
@@ -71,12 +74,16 @@ EditIcon.propTypes = {
|
|
|
71
74
|
/**
|
|
72
75
|
* Size
|
|
73
76
|
*/
|
|
74
|
-
size: PropTypes.oneOf(SIZES)
|
|
77
|
+
size: PropTypes.oneOf(SIZES),
|
|
78
|
+
/**
|
|
79
|
+
* disabled
|
|
80
|
+
*/
|
|
81
|
+
disabled: PropTypes.bool
|
|
75
82
|
}
|
|
76
|
-
|
|
77
83
|
EditIcon.defaultProps = {
|
|
78
84
|
color: MAIN_DARK_BLUE,
|
|
79
|
-
size: MEDIUM
|
|
85
|
+
size: MEDIUM,
|
|
86
|
+
disabled: false
|
|
80
87
|
}
|
|
81
88
|
|
|
82
89
|
export default EditIcon
|
|
@@ -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 EnlargeIcon = ({ color, size }) => {
|
|
7
|
-
|
|
6
|
+
const EnlargeIcon = ({ color, size, disabled }) => {
|
|
7
|
+
let className = `${styles.svgClassName} ` + styles[`${color}`]
|
|
8
|
+
if (disabled) {
|
|
9
|
+
className += ` ${styles.iconDisabled}`
|
|
10
|
+
}
|
|
8
11
|
let icon = <></>
|
|
9
12
|
|
|
10
13
|
switch (size) {
|
|
@@ -75,12 +78,16 @@ EnlargeIcon.propTypes = {
|
|
|
75
78
|
/**
|
|
76
79
|
* Size
|
|
77
80
|
*/
|
|
78
|
-
size: PropTypes.oneOf(SIZES)
|
|
81
|
+
size: PropTypes.oneOf(SIZES),
|
|
82
|
+
/**
|
|
83
|
+
* disabled
|
|
84
|
+
*/
|
|
85
|
+
disabled: PropTypes.bool
|
|
79
86
|
}
|
|
80
|
-
|
|
81
87
|
EnlargeIcon.defaultProps = {
|
|
82
88
|
color: MAIN_DARK_BLUE,
|
|
83
|
-
size: MEDIUM
|
|
89
|
+
size: MEDIUM,
|
|
90
|
+
disabled: false
|
|
84
91
|
}
|
|
85
92
|
|
|
86
93
|
export default EnlargeIcon
|
|
@@ -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 EntryIcon = ({ color, size }) => {
|
|
7
|
-
|
|
6
|
+
const EntryIcon = ({ 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 @@ EntryIcon.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
|
EntryIcon.defaultProps = {
|
|
79
85
|
color: MAIN_DARK_BLUE,
|
|
80
|
-
size: MEDIUM
|
|
86
|
+
size: MEDIUM,
|
|
87
|
+
disabled: false
|
|
81
88
|
}
|
|
82
89
|
|
|
83
90
|
export default EntryIcon
|
|
@@ -0,0 +1,92 @@
|
|
|
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 ExpandIcon = ({ color, size, disabled }) => {
|
|
7
|
+
let className = `${styles.svgClassName} ` + styles[`${color}`]
|
|
8
|
+
if (disabled) {
|
|
9
|
+
className += ` ${styles.iconDisabled}`
|
|
10
|
+
}
|
|
11
|
+
let icon = <></>
|
|
12
|
+
|
|
13
|
+
switch (size) {
|
|
14
|
+
case SMALL:
|
|
15
|
+
icon = (
|
|
16
|
+
<svg
|
|
17
|
+
width={16}
|
|
18
|
+
height={16}
|
|
19
|
+
viewBox='0 0 16 16'
|
|
20
|
+
fill='none'
|
|
21
|
+
xmlns='http://www.w3.org/2000/svg'
|
|
22
|
+
className={className}
|
|
23
|
+
>
|
|
24
|
+
<path d='M9 2H14V7' stroke='none' strokeLinecap='round' strokeLinejoin='round' />
|
|
25
|
+
<path d='M8 4H3C2.44772 4 2 4.44772 2 5V13C2 13.5523 2.44772 14 3 14H11C11.5523 14 12 13.5523 12 13V8' stroke='none' strokeLinecap='round' strokeLinejoin='round' />
|
|
26
|
+
<path d='M13.5 2.5L8 8' stroke='none' strokeLinecap='round' strokeLinejoin='round' />
|
|
27
|
+
|
|
28
|
+
</svg>
|
|
29
|
+
)
|
|
30
|
+
break
|
|
31
|
+
case MEDIUM:
|
|
32
|
+
icon = (
|
|
33
|
+
<svg
|
|
34
|
+
width={24}
|
|
35
|
+
height={24}
|
|
36
|
+
viewBox='0 0 24 24'
|
|
37
|
+
fill='none'
|
|
38
|
+
xmlns='http://www.w3.org/2000/svg'
|
|
39
|
+
className={className}
|
|
40
|
+
>
|
|
41
|
+
<path d='M13.5 3H21V10.5' stroke='none' strokeWidth={1.5} strokeLinecap='round' strokeLinejoin='round' />
|
|
42
|
+
<path d='M12 6H4C3.44772 6 3 6.44772 3 7V20C3 20.5523 3.44772 21 4 21H17C17.5523 21 18 20.5523 18 20V12' stroke='none' strokeWidth={1.5} strokeLinecap='round' strokeLinejoin='round' />
|
|
43
|
+
<path d='M20.25 3.75L12 12' stroke='none' strokeWidth={1.5} strokeLinecap='round' strokeLinejoin='round' />
|
|
44
|
+
|
|
45
|
+
</svg>
|
|
46
|
+
)
|
|
47
|
+
break
|
|
48
|
+
case LARGE:
|
|
49
|
+
icon = (
|
|
50
|
+
<svg
|
|
51
|
+
width={40}
|
|
52
|
+
height={40}
|
|
53
|
+
viewBox='0 0 40 40'
|
|
54
|
+
fill='none'
|
|
55
|
+
xmlns='http://www.w3.org/2000/svg'
|
|
56
|
+
className={className}
|
|
57
|
+
>
|
|
58
|
+
<path d='M22.5 5H35V17.5' stroke='none' strokeWidth={2} strokeLinecap='round' strokeLinejoin='round' />
|
|
59
|
+
<path d='M20 10H6C5.44772 10 5 10.4477 5 11V34C5 34.5523 5.44772 35 6 35H29C29.5523 35 30 34.5523 30 34V20' stroke='none' strokeWidth={2} strokeLinecap='round' strokeLinejoin='round' />
|
|
60
|
+
<path d='M33.75 6.25L20 20' stroke='none' strokeWidth={2} strokeLinecap='round' strokeLinejoin='round' />
|
|
61
|
+
|
|
62
|
+
</svg>
|
|
63
|
+
)
|
|
64
|
+
break
|
|
65
|
+
|
|
66
|
+
default:
|
|
67
|
+
break
|
|
68
|
+
}
|
|
69
|
+
return icon
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
ExpandIcon.propTypes = {
|
|
73
|
+
/**
|
|
74
|
+
* color of text, icon and borders
|
|
75
|
+
*/
|
|
76
|
+
color: PropTypes.oneOf(COLORS_ICON),
|
|
77
|
+
/**
|
|
78
|
+
* Size
|
|
79
|
+
*/
|
|
80
|
+
size: PropTypes.oneOf(SIZES),
|
|
81
|
+
/**
|
|
82
|
+
* disabled
|
|
83
|
+
*/
|
|
84
|
+
disabled: PropTypes.bool
|
|
85
|
+
}
|
|
86
|
+
ExpandIcon.defaultProps = {
|
|
87
|
+
color: MAIN_DARK_BLUE,
|
|
88
|
+
size: MEDIUM,
|
|
89
|
+
disabled: false
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
export default ExpandIcon
|
|
@@ -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 ExploreDocIcon = ({ color, size }) => {
|
|
7
|
-
|
|
6
|
+
const ExploreDocIcon = ({ 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) {
|
|
@@ -85,12 +88,16 @@ ExploreDocIcon.propTypes = {
|
|
|
85
88
|
/**
|
|
86
89
|
* Size
|
|
87
90
|
*/
|
|
88
|
-
size: PropTypes.oneOf(SIZES)
|
|
91
|
+
size: PropTypes.oneOf(SIZES),
|
|
92
|
+
/**
|
|
93
|
+
* disabled
|
|
94
|
+
*/
|
|
95
|
+
disabled: PropTypes.bool
|
|
89
96
|
}
|
|
90
|
-
|
|
91
97
|
ExploreDocIcon.defaultProps = {
|
|
92
98
|
color: MAIN_DARK_BLUE,
|
|
93
|
-
size: MEDIUM
|
|
99
|
+
size: MEDIUM,
|
|
100
|
+
disabled: false
|
|
94
101
|
}
|
|
95
102
|
|
|
96
103
|
export default ExploreDocIcon
|
|
@@ -3,8 +3,11 @@ 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 = ({ color, size }) => {
|
|
7
|
-
|
|
6
|
+
const EyeClosedIcon = ({ color, size, disabled }) => {
|
|
7
|
+
let className = `${styles.svgClassName} ` + styles[`${color}`]
|
|
8
|
+
if (disabled) {
|
|
9
|
+
className += ` ${styles.iconDisabled}`
|
|
10
|
+
}
|
|
8
11
|
let icon = <></>
|
|
9
12
|
|
|
10
13
|
switch (size) {
|
|
@@ -40,12 +43,16 @@ EyeClosedIcon.propTypes = {
|
|
|
40
43
|
/**
|
|
41
44
|
* Size
|
|
42
45
|
*/
|
|
43
|
-
size: PropTypes.oneOf(SIZES)
|
|
46
|
+
size: PropTypes.oneOf(SIZES),
|
|
47
|
+
/**
|
|
48
|
+
* disabled
|
|
49
|
+
*/
|
|
50
|
+
disabled: PropTypes.bool
|
|
44
51
|
}
|
|
45
|
-
|
|
46
52
|
EyeClosedIcon.defaultProps = {
|
|
47
53
|
color: MAIN_DARK_BLUE,
|
|
48
|
-
size: SMALL
|
|
54
|
+
size: SMALL,
|
|
55
|
+
disabled: false
|
|
49
56
|
}
|
|
50
57
|
|
|
51
58
|
export default EyeClosedIcon
|
|
@@ -3,8 +3,11 @@ 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 = ({ color, size }) => {
|
|
7
|
-
|
|
6
|
+
const EyeOpenedIcon = ({ 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) {
|
|
@@ -38,12 +41,16 @@ EyeOpenedIcon.propTypes = {
|
|
|
38
41
|
/**
|
|
39
42
|
* Size
|
|
40
43
|
*/
|
|
41
|
-
size: PropTypes.oneOf(SIZES)
|
|
44
|
+
size: PropTypes.oneOf(SIZES),
|
|
45
|
+
/**
|
|
46
|
+
* disabled
|
|
47
|
+
*/
|
|
48
|
+
disabled: PropTypes.bool
|
|
42
49
|
}
|
|
43
|
-
|
|
44
50
|
EyeOpenedIcon.defaultProps = {
|
|
45
51
|
color: MAIN_DARK_BLUE,
|
|
46
|
-
size: SMALL
|
|
52
|
+
size: SMALL,
|
|
53
|
+
disabled: false
|
|
47
54
|
}
|
|
48
55
|
|
|
49
56
|
export default EyeOpenedIcon
|
|
@@ -0,0 +1,83 @@
|
|
|
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 FolderIcon = ({ 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='M6.38197 3H3C2.44772 3 2 3.44772 2 4V12C2 12.5523 2.44772 13 3 13H13C13.5523 13 14 12.5523 14 12V6C14 5.44772 13.5523 5 13 5H8.61803C8.23926 5 7.893 4.786 7.72361 4.44721L7.27639 3.55279C7.107 3.214 6.76074 3 6.38197 3Z' stroke='none' strokeLinejoin='round' />
|
|
25
|
+
</svg>
|
|
26
|
+
)
|
|
27
|
+
break
|
|
28
|
+
case MEDIUM:
|
|
29
|
+
icon = (
|
|
30
|
+
<svg
|
|
31
|
+
width={24}
|
|
32
|
+
height={24}
|
|
33
|
+
viewBox='0 0 24 24'
|
|
34
|
+
fill='none'
|
|
35
|
+
xmlns='http://www.w3.org/2000/svg'
|
|
36
|
+
className={className}
|
|
37
|
+
>
|
|
38
|
+
<path d='M9.88197 4.5H4C3.44772 4.5 3 4.94772 3 5.5V18.5C3 19.0523 3.44772 19.5 4 19.5H20C20.5523 19.5 21 19.0523 21 18.5V8.5C21 7.94772 20.5523 7.5 20 7.5H12.618C12.2393 7.5 11.893 7.286 11.7236 6.94721L10.7764 5.05279C10.607 4.714 10.2607 4.5 9.88197 4.5Z' stroke='none' strokeWidth={1.5} strokeLinejoin='round' />
|
|
39
|
+
</svg>
|
|
40
|
+
)
|
|
41
|
+
break
|
|
42
|
+
case LARGE:
|
|
43
|
+
icon = (
|
|
44
|
+
<svg
|
|
45
|
+
width={40}
|
|
46
|
+
height={40}
|
|
47
|
+
viewBox='0 0 40 40'
|
|
48
|
+
fill='none'
|
|
49
|
+
xmlns='http://www.w3.org/2000/svg'
|
|
50
|
+
className={className}
|
|
51
|
+
>
|
|
52
|
+
<path d='M16.882 7.5H6C5.44772 7.5 5 7.94772 5 8.5V31.5C5 32.0523 5.44772 32.5 6 32.5H34C34.5523 32.5 35 32.0523 35 31.5V13.5C35 12.9477 34.5523 12.5 34 12.5H20.618C20.2393 12.5 19.893 12.286 19.7236 11.9472L17.7764 8.05279C17.607 7.714 17.2607 7.5 16.882 7.5Z' stroke='none' strokeWidth={2} strokeLinejoin='round' />
|
|
53
|
+
</svg>
|
|
54
|
+
)
|
|
55
|
+
break
|
|
56
|
+
|
|
57
|
+
default:
|
|
58
|
+
break
|
|
59
|
+
}
|
|
60
|
+
return icon
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
FolderIcon.propTypes = {
|
|
64
|
+
/**
|
|
65
|
+
* color of text, icon and borders
|
|
66
|
+
*/
|
|
67
|
+
color: PropTypes.oneOf(COLORS_ICON),
|
|
68
|
+
/**
|
|
69
|
+
* Size
|
|
70
|
+
*/
|
|
71
|
+
size: PropTypes.oneOf(SIZES),
|
|
72
|
+
/**
|
|
73
|
+
* disabled
|
|
74
|
+
*/
|
|
75
|
+
disabled: PropTypes.bool
|
|
76
|
+
}
|
|
77
|
+
FolderIcon.defaultProps = {
|
|
78
|
+
color: MAIN_DARK_BLUE,
|
|
79
|
+
size: MEDIUM,
|
|
80
|
+
disabled: false
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
export default FolderIcon
|