@platformatic/ui-components 0.1.123 → 0.1.125
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/assets/index-78f54889.js +206 -0
- package/dist/assets/index-89e9ad97.css +1 -0
- package/dist/index.html +2 -2
- package/dist/main.css +0 -10
- package/fonts/Inter/Inter-VariableFont_slnt,wght.ttf +0 -0
- package/fonts/Inter/OFL.txt +93 -0
- package/fonts/Inter/README.txt +72 -0
- package/fonts/Inter/static/Inter-Black.ttf +0 -0
- package/fonts/Inter/static/Inter-Bold.ttf +0 -0
- package/fonts/Inter/static/Inter-ExtraBold.ttf +0 -0
- package/fonts/Inter/static/Inter-ExtraLight.ttf +0 -0
- package/fonts/Inter/static/Inter-Light.ttf +0 -0
- package/fonts/Inter/static/Inter-Medium.ttf +0 -0
- package/fonts/Inter/static/Inter-Regular.ttf +0 -0
- package/fonts/Inter/static/Inter-SemiBold.ttf +0 -0
- package/fonts/Inter/static/Inter-Thin.ttf +0 -0
- package/fonts/{Montserrat/fonts.css → fonts.css} +7 -0
- package/index.js +8 -0
- package/package.json +1 -1
- package/src/components/BorderedBox.jsx +25 -6
- package/src/components/BorderedBox.module.css +3 -0
- package/src/components/Common.module.css +34 -3
- package/src/components/HorizontalSeparator.jsx +2 -1
- package/src/components/HorizontalSeparator.module.css +19 -0
- package/src/components/LoadingSpinnerV2.jsx +45 -0
- package/src/components/LoadingSpinnerV2.module.css +8 -0
- package/src/components/Modal.jsx +36 -3
- package/src/components/Modal.module.css +9 -1
- package/src/components/ModalDirectional.jsx +83 -0
- package/src/components/ModalDirectional.module.css +38 -0
- package/src/components/PlatformaticIcon.jsx +20 -5
- package/src/components/SearchBarV2.jsx +120 -0
- package/src/components/SearchBarV2.module.css +28 -0
- package/src/components/Sidebar.jsx +91 -86
- package/src/components/Sidebar.module.css +4 -4
- package/src/components/TabbedWindowV2.jsx +82 -0
- package/src/components/TabbedWindowV2.module.css +17 -0
- package/src/components/VerticalSeparator.jsx +18 -6
- package/src/components/VerticalSeparator.module.css +3 -0
- package/src/components/constants.js +10 -2
- package/src/components/forms/Field.jsx +29 -8
- package/src/components/forms/Field.module.css +7 -1
- package/src/components/forms/Input.jsx +73 -8
- package/src/components/forms/Input.module.css +8 -3
- package/src/components/forms/Select.jsx +98 -20
- package/src/components/forms/Select.module.css +17 -6
- package/src/components/forms/ToggleSwitch.jsx +11 -5
- package/src/components/forms/ToggleSwitch.module.css +2 -2
- package/src/components/icons/AddIcon.jsx +12 -5
- package/src/components/icons/AlertIcon.jsx +12 -5
- package/src/components/icons/AllInOneIcon.jsx +12 -5
- package/src/components/icons/ApiCloudIcon.jsx +12 -5
- package/src/components/icons/ApiEmptyIcon.jsx +12 -5
- package/src/components/icons/ApiIcon.jsx +12 -5
- package/src/components/icons/ApiIconClosed.jsx +10 -4
- package/src/components/icons/ApiPerformanceIcon.jsx +12 -5
- package/src/components/icons/AppEmptyIcon.jsx +12 -5
- package/src/components/icons/AppIcon.jsx +12 -5
- package/src/components/icons/AppListIcon.jsx +12 -5
- package/src/components/icons/AppWorkspace.jsx +5 -2
- package/src/components/icons/ApplicationTypeIcon.jsx +12 -5
- package/src/components/icons/ArrowDownFullIcon.jsx +12 -5
- package/src/components/icons/ArrowDownIcon.jsx +12 -5
- package/src/components/icons/ArrowLeftIcon.jsx +12 -5
- package/src/components/icons/ArrowLongLeftIcon.jsx +84 -0
- package/src/components/icons/ArrowLongRightIcon.jsx +12 -5
- package/src/components/icons/ArrowRightIcon.jsx +12 -5
- package/src/components/icons/ArrowUpIcon.jsx +12 -5
- package/src/components/icons/BellIcon.jsx +12 -5
- package/src/components/icons/BillingIcon.jsx +12 -5
- package/src/components/icons/Calendar1DayIcon.jsx +12 -5
- package/src/components/icons/Calendar7DaysIcon.jsx +12 -5
- package/src/components/icons/CalendarIcon.jsx +12 -5
- package/src/components/icons/CheckListIcon.jsx +12 -5
- package/src/components/icons/CircleAddIcon.jsx +12 -5
- package/src/components/icons/CircleArrowLeftIcon.jsx +12 -5
- package/src/components/icons/CircleArrowRightIcon.jsx +12 -5
- package/src/components/icons/CircleCheckMarkButtonIcon.jsx +7 -3
- package/src/components/icons/CircleCheckMarkFullIcon.jsx +12 -5
- package/src/components/icons/CircleCheckMarkIcon.jsx +10 -4
- package/src/components/icons/CircleCloseHoverIcon.jsx +12 -5
- package/src/components/icons/CircleCloseIcon.jsx +12 -5
- package/src/components/icons/CircleCopyPasteIcon.jsx +12 -5
- package/src/components/icons/CircleDownloadIcon.jsx +12 -5
- package/src/components/icons/CircleEditIcon.jsx +12 -5
- package/src/components/icons/CircleExclamationIcon.jsx +5 -2
- package/src/components/icons/CircleFullIcon.jsx +12 -5
- package/src/components/icons/CircleGearIcon.jsx +12 -5
- package/src/components/icons/CircleRestartIcon.jsx +12 -5
- package/src/components/icons/CircleSubtractIcon.jsx +12 -5
- package/src/components/icons/CircleTwoArrowsDownIcon.jsx +12 -5
- package/src/components/icons/CircleTwoArrowsUpIcon.jsx +12 -5
- package/src/components/icons/CloseIcon.jsx +12 -5
- package/src/components/icons/CloudIcon.jsx +12 -5
- package/src/components/icons/ConfigureDatabaseIcon.jsx +12 -5
- package/src/components/icons/CopyPasteIcon.jsx +12 -5
- package/src/components/icons/CreatingAppIcon.jsx +12 -5
- package/src/components/icons/CreditCardIcon.jsx +12 -5
- package/src/components/icons/DatabaseIcon.jsx +12 -5
- package/src/components/icons/DatabaseMigrationIcon.jsx +12 -5
- package/src/components/icons/DepencenciesReloadIcon.jsx +12 -5
- package/src/components/icons/EditDocumentIcon.jsx +12 -5
- package/src/components/icons/EditIcon.jsx +12 -5
- package/src/components/icons/EnlargeIcon.jsx +12 -5
- package/src/components/icons/EntryIcon.jsx +12 -5
- package/src/components/icons/ExpandIcon.jsx +92 -0
- package/src/components/icons/ExploreDocIcon.jsx +12 -5
- package/src/components/icons/EyeClosedIcon.jsx +12 -5
- package/src/components/icons/EyeOpenedIcon.jsx +12 -5
- package/src/components/icons/FolderIcon.jsx +83 -0
- package/src/components/icons/FoldersIcon.jsx +86 -0
- package/src/components/icons/GearIcon.jsx +12 -5
- package/src/components/icons/GenerationLoadingIcon.jsx +12 -5
- package/src/components/icons/GitHubRepo2Icon.jsx +12 -5
- package/src/components/icons/GitHubRepoIcon.jsx +12 -5
- package/src/components/icons/GiveOwnershipIcon.jsx +12 -5
- package/src/components/icons/GraphQLIcon.jsx +12 -5
- package/src/components/icons/Icons.module.css +7 -2
- package/src/components/icons/ImportApplicationIcon.jsx +12 -5
- package/src/components/icons/KeyIcon.jsx +12 -5
- package/src/components/icons/LabelIcon.jsx +12 -5
- package/src/components/icons/LayersIcon.jsx +12 -5
- package/src/components/icons/LensIcon.jsx +12 -5
- package/src/components/icons/LiveIcon.jsx +12 -5
- package/src/components/icons/LoadingAppIcon.jsx +12 -5
- package/src/components/icons/LogOutIcon.jsx +5 -2
- package/src/components/icons/MetricsIcon.jsx +12 -5
- package/src/components/icons/MetricsLoadingIcon.jsx +12 -5
- package/src/components/icons/NameAppIcon.jsx +12 -5
- package/src/components/icons/OrganizationIcon.jsx +12 -5
- package/src/components/icons/OutOfBoxGraphQLIcon.jsx +12 -5
- package/src/components/icons/PlatformaticComposerIcon.jsx +12 -5
- package/src/components/icons/PlatformaticDBIcon.jsx +12 -5
- package/src/components/icons/PlatformaticRuntimeIcon.jsx +12 -5
- package/src/components/icons/PlatformaticServiceIcon.jsx +12 -5
- package/src/components/icons/PlayIcon.jsx +12 -5
- package/src/components/icons/PreviewPRIcon.jsx +12 -5
- package/src/components/icons/PullRequestIcon.jsx +12 -5
- package/src/components/icons/PullRequestLoadingIcon.jsx +12 -5
- package/src/components/icons/RequestOwnershipIcon.jsx +12 -5
- package/src/components/icons/RestartIcon.jsx +12 -5
- package/src/components/icons/RocketIcon.jsx +12 -5
- package/src/components/icons/RunningIcon.jsx +12 -5
- package/src/components/icons/SendIcon.jsx +12 -5
- package/src/components/icons/ServiceIcon.jsx +12 -5
- package/src/components/icons/SlotIcon.jsx +12 -5
- package/src/components/icons/SocialDiscordIcon.jsx +12 -5
- package/src/components/icons/SocialGitHubIcon.jsx +12 -5
- package/src/components/icons/SocialGitLabIcon.jsx +12 -5
- package/src/components/icons/SocialLinkedInIcon.jsx +12 -5
- package/src/components/icons/SocialNPMIcon.jsx +12 -5
- package/src/components/icons/SocialXIcon.jsx +12 -5
- package/src/components/icons/SortableIcon.jsx +93 -0
- package/src/components/icons/StackablesPluginIcon.jsx +134 -0
- package/src/components/icons/StackablesTemplateIcon.jsx +133 -0
- package/src/components/icons/StopIcon.jsx +12 -5
- package/src/components/icons/SwitchIcon.jsx +12 -5
- package/src/components/icons/TeamsIcon.jsx +12 -5
- package/src/components/icons/TerminalIcon.jsx +12 -5
- package/src/components/icons/TrashIcon.jsx +95 -0
- package/src/components/icons/TwoUsersIcon.jsx +12 -5
- package/src/components/icons/UpgradeIcon.jsx +12 -5
- package/src/components/icons/UserIcon.jsx +12 -5
- package/src/components/icons/UserRemoveIcon.jsx +5 -2
- package/src/components/icons/UserRoleIcon.jsx +5 -2
- package/src/components/icons/WorkspaceDynamicIcon.jsx +12 -5
- package/src/components/icons/WorkspaceEmptyIcon.jsx +12 -5
- package/src/components/icons/WorkspaceFailIcon.jsx +12 -5
- package/src/components/icons/WorkspaceGitHubIcon.jsx +12 -5
- package/src/components/icons/WorkspaceLoadingIcon.jsx +12 -5
- package/src/components/icons/WorkspaceReadyIcon.jsx +12 -5
- package/src/components/icons/WorkspaceStaticIcon.jsx +12 -5
- package/src/components/icons/index.js +23 -7
- package/src/stories/ModalDirectional.stories.jsx +45 -0
- package/src/stories/forms/Select.stories.jsx +33 -1
- package/tailwind.config.cjs +5 -2
- package/dist/assets/index-3a61658e.css +0 -1
- package/dist/assets/index-8f6ac36c.js +0 -206
|
@@ -3,8 +3,11 @@ import PropTypes from 'prop-types'
|
|
|
3
3
|
import styles from './Icons.module.css'
|
|
4
4
|
import { COLORS_ICON, SIZES, SMALL, MEDIUM, LARGE, MAIN_DARK_BLUE } from '../constants'
|
|
5
5
|
|
|
6
|
-
const BillingIcon = ({ color, size }) => {
|
|
7
|
-
|
|
6
|
+
const BillingIcon = ({ 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 = <></>
|
|
@@ -88,12 +91,16 @@ BillingIcon.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
|
BillingIcon.defaultProps = {
|
|
95
101
|
color: MAIN_DARK_BLUE,
|
|
96
|
-
size: MEDIUM
|
|
102
|
+
size: MEDIUM,
|
|
103
|
+
disabled: false
|
|
97
104
|
}
|
|
98
105
|
|
|
99
106
|
export default BillingIcon
|
|
@@ -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 Calendar1DayIcon = ({ color, size }) => {
|
|
7
|
-
|
|
6
|
+
const Calendar1DayIcon = ({ 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 = <></>
|
|
@@ -80,12 +83,16 @@ Calendar1DayIcon.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
|
Calendar1DayIcon.defaultProps = {
|
|
87
93
|
color: MAIN_DARK_BLUE,
|
|
88
|
-
size: MEDIUM
|
|
94
|
+
size: MEDIUM,
|
|
95
|
+
disabled: false
|
|
89
96
|
}
|
|
90
97
|
|
|
91
98
|
export default Calendar1DayIcon
|
|
@@ -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 Calendar7DaysIcon = ({ color, size }) => {
|
|
7
|
-
|
|
6
|
+
const Calendar7DaysIcon = ({ 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 = <></>
|
|
@@ -78,12 +81,16 @@ Calendar7DaysIcon.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
|
Calendar7DaysIcon.defaultProps = {
|
|
85
91
|
color: MAIN_DARK_BLUE,
|
|
86
|
-
size: MEDIUM
|
|
92
|
+
size: MEDIUM,
|
|
93
|
+
disabled: false
|
|
87
94
|
}
|
|
88
95
|
|
|
89
96
|
export default Calendar7DaysIcon
|
|
@@ -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 CalendarIcon = ({ color, size }) => {
|
|
7
|
-
|
|
6
|
+
const CalendarIcon = ({ 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
|
|
|
@@ -92,12 +95,16 @@ CalendarIcon.propTypes = {
|
|
|
92
95
|
/**
|
|
93
96
|
* Size
|
|
94
97
|
*/
|
|
95
|
-
size: PropTypes.oneOf(SIZES)
|
|
98
|
+
size: PropTypes.oneOf(SIZES),
|
|
99
|
+
/**
|
|
100
|
+
* disabled
|
|
101
|
+
*/
|
|
102
|
+
disabled: PropTypes.bool
|
|
96
103
|
}
|
|
97
|
-
|
|
98
104
|
CalendarIcon.defaultProps = {
|
|
99
105
|
color: MAIN_DARK_BLUE,
|
|
100
|
-
size: MEDIUM
|
|
106
|
+
size: MEDIUM,
|
|
107
|
+
disabled: false
|
|
101
108
|
}
|
|
102
109
|
|
|
103
110
|
export default CalendarIcon
|
|
@@ -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 CheckListIcon = ({ color, size }) => {
|
|
7
|
-
|
|
6
|
+
const CheckListIcon = ({ 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) {
|
|
@@ -87,12 +90,16 @@ CheckListIcon.propTypes = {
|
|
|
87
90
|
/**
|
|
88
91
|
* Size
|
|
89
92
|
*/
|
|
90
|
-
size: PropTypes.oneOf(SIZES)
|
|
93
|
+
size: PropTypes.oneOf(SIZES),
|
|
94
|
+
/**
|
|
95
|
+
* disabled
|
|
96
|
+
*/
|
|
97
|
+
disabled: PropTypes.bool
|
|
91
98
|
}
|
|
92
|
-
|
|
93
99
|
CheckListIcon.defaultProps = {
|
|
94
100
|
color: MAIN_DARK_BLUE,
|
|
95
|
-
size: MEDIUM
|
|
101
|
+
size: MEDIUM,
|
|
102
|
+
disabled: false
|
|
96
103
|
}
|
|
97
104
|
|
|
98
105
|
export default CheckListIcon
|
|
@@ -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 CircleAddIcon = ({ color, size }) => {
|
|
7
|
-
|
|
6
|
+
const CircleAddIcon = ({ 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 @@ CircleAddIcon.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
|
CircleAddIcon.defaultProps = {
|
|
78
84
|
color: MAIN_DARK_BLUE,
|
|
79
|
-
size: MEDIUM
|
|
85
|
+
size: MEDIUM,
|
|
86
|
+
disabled: false
|
|
80
87
|
}
|
|
81
88
|
|
|
82
89
|
export default CircleAddIcon
|
|
@@ -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 CircleArrowLeftIcon = ({ color, size }) => {
|
|
7
|
-
|
|
6
|
+
const CircleArrowLeftIcon = ({ 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 @@ CircleArrowLeftIcon.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
|
CircleArrowLeftIcon.defaultProps = {
|
|
92
98
|
color: MAIN_DARK_BLUE,
|
|
93
|
-
size: MEDIUM
|
|
99
|
+
size: MEDIUM,
|
|
100
|
+
disabled: false
|
|
94
101
|
}
|
|
95
102
|
|
|
96
103
|
export default CircleArrowLeftIcon
|
|
@@ -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 CircleArrowRightIcon = ({ color, size }) => {
|
|
7
|
-
|
|
6
|
+
const CircleArrowRightIcon = ({ 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 @@ CircleArrowRightIcon.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
|
CircleArrowRightIcon.defaultProps = {
|
|
95
101
|
color: MAIN_DARK_BLUE,
|
|
96
|
-
size: MEDIUM
|
|
102
|
+
size: MEDIUM,
|
|
103
|
+
disabled: false
|
|
97
104
|
}
|
|
98
105
|
|
|
99
106
|
export default CircleArrowRightIcon
|
|
@@ -3,8 +3,11 @@ import PropTypes from 'prop-types'
|
|
|
3
3
|
import styles from './Icons.module.css'
|
|
4
4
|
import { COLORS_ICON, MEDIUM, MAIN_DARK_BLUE } from '../constants'
|
|
5
5
|
|
|
6
|
-
const CircleCheckMarkButtonIcon = ({ color, size }) => {
|
|
7
|
-
|
|
6
|
+
const CircleCheckMarkButtonIcon = ({ 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) {
|
|
@@ -43,7 +46,8 @@ CircleCheckMarkButtonIcon.propTypes = {
|
|
|
43
46
|
|
|
44
47
|
CircleCheckMarkButtonIcon.defaultProps = {
|
|
45
48
|
color: MAIN_DARK_BLUE,
|
|
46
|
-
size: MEDIUM
|
|
49
|
+
size: MEDIUM,
|
|
50
|
+
disabled: false
|
|
47
51
|
}
|
|
48
52
|
|
|
49
53
|
export default CircleCheckMarkButtonIcon
|
|
@@ -3,8 +3,11 @@ import PropTypes from 'prop-types'
|
|
|
3
3
|
import styles from './Icons.module.css'
|
|
4
4
|
import { COLORS_ICON, SIZES, MEDIUM, MAIN_DARK_BLUE } from '../constants'
|
|
5
5
|
|
|
6
|
-
const CircleCheckMarkFullIcon = ({ color, size }) => {
|
|
7
|
-
|
|
6
|
+
const CircleCheckMarkFullIcon = ({ color, size, disabled }) => {
|
|
7
|
+
let className = styles.svgClassName
|
|
8
|
+
if (disabled) {
|
|
9
|
+
className += ` ${styles.iconDisabled}`
|
|
10
|
+
}
|
|
8
11
|
const filledClassName = styles[`filled-${color}`]
|
|
9
12
|
let icon = <></>
|
|
10
13
|
|
|
@@ -39,12 +42,16 @@ CircleCheckMarkFullIcon.propTypes = {
|
|
|
39
42
|
/**
|
|
40
43
|
* Size
|
|
41
44
|
*/
|
|
42
|
-
size: PropTypes.oneOf(SIZES)
|
|
45
|
+
size: PropTypes.oneOf(SIZES),
|
|
46
|
+
/**
|
|
47
|
+
* disabled
|
|
48
|
+
*/
|
|
49
|
+
disabled: PropTypes.bool
|
|
43
50
|
}
|
|
44
|
-
|
|
45
51
|
CircleCheckMarkFullIcon.defaultProps = {
|
|
46
52
|
color: MAIN_DARK_BLUE,
|
|
47
|
-
size: MEDIUM
|
|
53
|
+
size: MEDIUM,
|
|
54
|
+
disabled: false
|
|
48
55
|
}
|
|
49
56
|
|
|
50
57
|
export default CircleCheckMarkFullIcon
|
|
@@ -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 CircleCheckMarkIcon = ({ color, size, checked }) => {
|
|
7
|
-
|
|
6
|
+
const CircleCheckMarkIcon = ({ color, size, checked, 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,9 +71,12 @@ CircleCheckMarkIcon.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
|
CircleCheckMarkIcon.defaultProps = {
|
|
75
81
|
color: MAIN_DARK_BLUE,
|
|
76
82
|
size: MEDIUM,
|
|
@@ -3,8 +3,11 @@ import PropTypes from 'prop-types'
|
|
|
3
3
|
import styles from './Icons.module.css'
|
|
4
4
|
import { COLORS_ICON, SIZES, MEDIUM, MAIN_DARK_BLUE } from '../constants'
|
|
5
5
|
|
|
6
|
-
const CircleCloseHoverIcon = ({ color, size }) => {
|
|
7
|
-
|
|
6
|
+
const CircleCloseHoverIcon = ({ 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) {
|
|
@@ -58,12 +61,16 @@ CircleCloseHoverIcon.propTypes = {
|
|
|
58
61
|
/**
|
|
59
62
|
* Size
|
|
60
63
|
*/
|
|
61
|
-
size: PropTypes.oneOf(SIZES)
|
|
64
|
+
size: PropTypes.oneOf(SIZES),
|
|
65
|
+
/**
|
|
66
|
+
* disabled
|
|
67
|
+
*/
|
|
68
|
+
disabled: PropTypes.bool
|
|
62
69
|
}
|
|
63
|
-
|
|
64
70
|
CircleCloseHoverIcon.defaultProps = {
|
|
65
71
|
color: MAIN_DARK_BLUE,
|
|
66
|
-
size: MEDIUM
|
|
72
|
+
size: MEDIUM,
|
|
73
|
+
disabled: false
|
|
67
74
|
}
|
|
68
75
|
|
|
69
76
|
export default CircleCloseHoverIcon
|
|
@@ -3,8 +3,11 @@ import PropTypes from 'prop-types'
|
|
|
3
3
|
import styles from './Icons.module.css'
|
|
4
4
|
import { COLORS_ICON, SIZES, MEDIUM, LARGE, MAIN_DARK_BLUE } from '../constants'
|
|
5
5
|
|
|
6
|
-
const CircleCloseIcon = ({ color, size }) => {
|
|
7
|
-
|
|
6
|
+
const CircleCloseIcon = ({ 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 @@ CircleCloseIcon.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
|
CircleCloseIcon.defaultProps = {
|
|
72
78
|
color: MAIN_DARK_BLUE,
|
|
73
|
-
size: MEDIUM
|
|
79
|
+
size: MEDIUM,
|
|
80
|
+
disabled: false
|
|
74
81
|
}
|
|
75
82
|
|
|
76
83
|
export default CircleCloseIcon
|
|
@@ -3,8 +3,11 @@ import PropTypes from 'prop-types'
|
|
|
3
3
|
import styles from './Icons.module.css'
|
|
4
4
|
import { COLORS_ICON, SIZES, SMALL, MAIN_DARK_BLUE, MEDIUM } from '../constants'
|
|
5
5
|
|
|
6
|
-
const CircleCopyPasteIcon = ({ color, size }) => {
|
|
7
|
-
|
|
6
|
+
const CircleCopyPasteIcon = ({ 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) {
|
|
@@ -58,12 +61,16 @@ CircleCopyPasteIcon.propTypes = {
|
|
|
58
61
|
/**
|
|
59
62
|
* Size
|
|
60
63
|
*/
|
|
61
|
-
size: PropTypes.oneOf(SIZES)
|
|
64
|
+
size: PropTypes.oneOf(SIZES),
|
|
65
|
+
/**
|
|
66
|
+
* disabled
|
|
67
|
+
*/
|
|
68
|
+
disabled: PropTypes.bool
|
|
62
69
|
}
|
|
63
|
-
|
|
64
70
|
CircleCopyPasteIcon.defaultProps = {
|
|
65
71
|
color: MAIN_DARK_BLUE,
|
|
66
|
-
size: SMALL
|
|
72
|
+
size: SMALL,
|
|
73
|
+
disabled: false
|
|
67
74
|
}
|
|
68
75
|
|
|
69
76
|
export default CircleCopyPasteIcon
|
|
@@ -3,8 +3,11 @@ import PropTypes from 'prop-types'
|
|
|
3
3
|
import styles from './Icons.module.css'
|
|
4
4
|
import { COLORS_ICON, SIZES, MEDIUM, MAIN_DARK_BLUE } from '../constants'
|
|
5
5
|
|
|
6
|
-
const CircleDownloadIcon = ({ color, size }) => {
|
|
7
|
-
|
|
6
|
+
const CircleDownloadIcon = ({ 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 @@ CircleDownloadIcon.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
|
CircleDownloadIcon.defaultProps = {
|
|
47
53
|
color: MAIN_DARK_BLUE,
|
|
48
|
-
size: MEDIUM
|
|
54
|
+
size: MEDIUM,
|
|
55
|
+
disabled: false
|
|
49
56
|
}
|
|
50
57
|
|
|
51
58
|
export default CircleDownloadIcon
|
|
@@ -3,8 +3,11 @@ import PropTypes from 'prop-types'
|
|
|
3
3
|
import styles from './Icons.module.css'
|
|
4
4
|
import { COLORS_ICON, SIZES, SMALL, MAIN_DARK_BLUE, MEDIUM } from '../constants'
|
|
5
5
|
|
|
6
|
-
const CircleEditIcon = ({ color, size }) => {
|
|
7
|
-
|
|
6
|
+
const CircleEditIcon = ({ 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) {
|
|
@@ -60,12 +63,16 @@ CircleEditIcon.propTypes = {
|
|
|
60
63
|
/**
|
|
61
64
|
* Size
|
|
62
65
|
*/
|
|
63
|
-
size: PropTypes.oneOf(SIZES)
|
|
66
|
+
size: PropTypes.oneOf(SIZES),
|
|
67
|
+
/**
|
|
68
|
+
* disabled
|
|
69
|
+
*/
|
|
70
|
+
disabled: PropTypes.bool
|
|
64
71
|
}
|
|
65
|
-
|
|
66
72
|
CircleEditIcon.defaultProps = {
|
|
67
73
|
color: MAIN_DARK_BLUE,
|
|
68
|
-
size: SMALL
|
|
74
|
+
size: SMALL,
|
|
75
|
+
disabled: false
|
|
69
76
|
}
|
|
70
77
|
|
|
71
78
|
export default CircleEditIcon
|
|
@@ -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 CircleExclamationIcon = ({ color, size, tip }) => {
|
|
7
|
-
|
|
6
|
+
const CircleExclamationIcon = ({ color, size, tip, 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
|
|
|
@@ -3,8 +3,11 @@ import PropTypes from 'prop-types'
|
|
|
3
3
|
import styles from './Icons.module.css'
|
|
4
4
|
import { COLORS_ICON, EXTRA_SMALL, LARGE, MEDIUM, SIZES, SMALL, MAIN_DARK_BLUE } from '../constants'
|
|
5
5
|
|
|
6
|
-
const CircleFullIcon = ({ color, size }) => {
|
|
7
|
-
|
|
6
|
+
const CircleFullIcon = ({ 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
|
|
|
@@ -80,12 +83,16 @@ CircleFullIcon.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
|
CircleFullIcon.defaultProps = {
|
|
87
93
|
color: MAIN_DARK_BLUE,
|
|
88
|
-
size: MEDIUM
|
|
94
|
+
size: MEDIUM,
|
|
95
|
+
disabled: false
|
|
89
96
|
}
|
|
90
97
|
|
|
91
98
|
export default CircleFullIcon
|
|
@@ -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 CircleGearIcon = ({ color, size }) => {
|
|
7
|
-
|
|
6
|
+
const CircleGearIcon = ({ 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 @@ CircleGearIcon.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
|
CircleGearIcon.defaultProps = {
|
|
80
86
|
color: MAIN_DARK_BLUE,
|
|
81
|
-
size: MEDIUM
|
|
87
|
+
size: MEDIUM,
|
|
88
|
+
disabled: false
|
|
82
89
|
}
|
|
83
90
|
|
|
84
91
|
export default CircleGearIcon
|
|
@@ -3,8 +3,11 @@ import PropTypes from 'prop-types'
|
|
|
3
3
|
import styles from './Icons.module.css'
|
|
4
4
|
import { COLORS_ICON, SIZES, SMALL, MAIN_DARK_BLUE, MEDIUM } from '../constants'
|
|
5
5
|
|
|
6
|
-
const CircleRestartIcon = ({ color, size }) => {
|
|
7
|
-
|
|
6
|
+
const CircleRestartIcon = ({ 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) {
|
|
@@ -58,12 +61,16 @@ CircleRestartIcon.propTypes = {
|
|
|
58
61
|
/**
|
|
59
62
|
* Size
|
|
60
63
|
*/
|
|
61
|
-
size: PropTypes.oneOf(SIZES)
|
|
64
|
+
size: PropTypes.oneOf(SIZES),
|
|
65
|
+
/**
|
|
66
|
+
* disabled
|
|
67
|
+
*/
|
|
68
|
+
disabled: PropTypes.bool
|
|
62
69
|
}
|
|
63
|
-
|
|
64
70
|
CircleRestartIcon.defaultProps = {
|
|
65
71
|
color: MAIN_DARK_BLUE,
|
|
66
|
-
size: SMALL
|
|
72
|
+
size: SMALL,
|
|
73
|
+
disabled: false
|
|
67
74
|
}
|
|
68
75
|
|
|
69
76
|
export default CircleRestartIcon
|