@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 } from '../constants'
|
|
5
5
|
|
|
6
|
-
const ApiIconClosed = ({ color, size }) => {
|
|
7
|
-
|
|
6
|
+
const ApiIconClosed = ({ 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) {
|
|
@@ -42,9 +45,12 @@ ApiIconClosed.propTypes = {
|
|
|
42
45
|
/**
|
|
43
46
|
* Size
|
|
44
47
|
*/
|
|
45
|
-
size: PropTypes.oneOf(SIZES)
|
|
48
|
+
size: PropTypes.oneOf(SIZES),
|
|
49
|
+
/**
|
|
50
|
+
* disabled
|
|
51
|
+
*/
|
|
52
|
+
disabled: PropTypes.bool
|
|
46
53
|
}
|
|
47
|
-
|
|
48
54
|
ApiIconClosed.defaultProps = {
|
|
49
55
|
color: 'main-dark-blue',
|
|
50
56
|
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, SMALL, MEDIUM, LARGE, MAIN_DARK_BLUE } from '../constants'
|
|
5
5
|
|
|
6
|
-
const ApiPerformanceIcon = ({ color, size }) => {
|
|
7
|
-
|
|
6
|
+
const ApiPerformanceIcon = ({ 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
|
|
|
@@ -89,12 +92,16 @@ ApiPerformanceIcon.propTypes = {
|
|
|
89
92
|
/**
|
|
90
93
|
* Size
|
|
91
94
|
*/
|
|
92
|
-
size: PropTypes.oneOf(SIZES)
|
|
95
|
+
size: PropTypes.oneOf(SIZES),
|
|
96
|
+
/**
|
|
97
|
+
* disabled
|
|
98
|
+
*/
|
|
99
|
+
disabled: PropTypes.bool
|
|
93
100
|
}
|
|
94
|
-
|
|
95
101
|
ApiPerformanceIcon.defaultProps = {
|
|
96
102
|
color: MAIN_DARK_BLUE,
|
|
97
|
-
size: MEDIUM
|
|
103
|
+
size: MEDIUM,
|
|
104
|
+
disabled: false
|
|
98
105
|
}
|
|
99
106
|
|
|
100
107
|
export default ApiPerformanceIcon
|
|
@@ -3,8 +3,11 @@ import PropTypes from 'prop-types'
|
|
|
3
3
|
import styles from './Icons.module.css'
|
|
4
4
|
import { COLORS_ICON, SIZES, MEDIUM, EXTRA_LARGE, MAIN_DARK_BLUE } from '../constants'
|
|
5
5
|
|
|
6
|
-
const AppEmptyIcon = ({ color, size }) => {
|
|
7
|
-
|
|
6
|
+
const AppEmptyIcon = ({ 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) {
|
|
@@ -42,12 +45,16 @@ AppEmptyIcon.propTypes = {
|
|
|
42
45
|
/**
|
|
43
46
|
* Size
|
|
44
47
|
*/
|
|
45
|
-
size: PropTypes.oneOf(SIZES)
|
|
48
|
+
size: PropTypes.oneOf(SIZES),
|
|
49
|
+
/**
|
|
50
|
+
* disabled
|
|
51
|
+
*/
|
|
52
|
+
disabled: PropTypes.bool
|
|
46
53
|
}
|
|
47
|
-
|
|
48
54
|
AppEmptyIcon.defaultProps = {
|
|
49
55
|
color: MAIN_DARK_BLUE,
|
|
50
|
-
size: MEDIUM
|
|
56
|
+
size: MEDIUM,
|
|
57
|
+
disabled: false
|
|
51
58
|
}
|
|
52
59
|
|
|
53
60
|
export default AppEmptyIcon
|
|
@@ -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 AppIcon = ({ color, size }) => {
|
|
7
|
-
|
|
6
|
+
const AppIcon = ({ 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 @@ AppIcon.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
|
AppIcon.defaultProps = {
|
|
82
88
|
color: MAIN_DARK_BLUE,
|
|
83
|
-
size: MEDIUM
|
|
89
|
+
size: MEDIUM,
|
|
90
|
+
disabled: false
|
|
84
91
|
}
|
|
85
92
|
|
|
86
93
|
export default AppIcon
|
|
@@ -3,8 +3,11 @@ import PropTypes from 'prop-types'
|
|
|
3
3
|
import styles from './Icons.module.css'
|
|
4
4
|
import { COLORS_ICON, SIZES, MEDIUM, EXTRA_LARGE, MAIN_DARK_BLUE } from '../constants'
|
|
5
5
|
|
|
6
|
-
const AppListIcon = ({ color, size }) => {
|
|
7
|
-
|
|
6
|
+
const AppListIcon = ({ 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) {
|
|
@@ -93,12 +96,16 @@ AppListIcon.propTypes = {
|
|
|
93
96
|
/**
|
|
94
97
|
* Size
|
|
95
98
|
*/
|
|
96
|
-
size: PropTypes.oneOf(SIZES)
|
|
99
|
+
size: PropTypes.oneOf(SIZES),
|
|
100
|
+
/**
|
|
101
|
+
* disabled
|
|
102
|
+
*/
|
|
103
|
+
disabled: PropTypes.bool
|
|
97
104
|
}
|
|
98
|
-
|
|
99
105
|
AppListIcon.defaultProps = {
|
|
100
106
|
color: MAIN_DARK_BLUE,
|
|
101
|
-
size: MEDIUM
|
|
107
|
+
size: MEDIUM,
|
|
108
|
+
disabled: false
|
|
102
109
|
}
|
|
103
110
|
|
|
104
111
|
export default AppListIcon
|
|
@@ -3,8 +3,11 @@ import PropTypes from 'prop-types'
|
|
|
3
3
|
import styles from './Icons.module.css'
|
|
4
4
|
import { COLORS_ICON, LARGE, MEDIUM, SIZES, SMALL } from '../constants'
|
|
5
5
|
|
|
6
|
-
const AppWorkspace = ({ color, size }) => {
|
|
7
|
-
|
|
6
|
+
const AppWorkspace = ({ 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) {
|
|
@@ -3,8 +3,11 @@ import PropTypes from 'prop-types'
|
|
|
3
3
|
import styles from './Icons.module.css'
|
|
4
4
|
import { COLORS_ICON, SIZES, LARGE, MAIN_DARK_BLUE } from '../constants'
|
|
5
5
|
|
|
6
|
-
const ApplicationTypeIcon = ({ color, size }) => {
|
|
7
|
-
|
|
6
|
+
const ApplicationTypeIcon = ({ 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 @@ ApplicationTypeIcon.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
|
ApplicationTypeIcon.defaultProps = {
|
|
47
53
|
color: MAIN_DARK_BLUE,
|
|
48
|
-
size: LARGE
|
|
54
|
+
size: LARGE,
|
|
55
|
+
disabled: false
|
|
49
56
|
}
|
|
50
57
|
|
|
51
58
|
export default ApplicationTypeIcon
|
|
@@ -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 ArrowDownFullIcon = ({ color, size }) => {
|
|
7
|
-
|
|
6
|
+
const ArrowDownFullIcon = ({ 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
|
|
|
@@ -66,12 +69,16 @@ ArrowDownFullIcon.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
|
ArrowDownFullIcon.defaultProps = {
|
|
73
79
|
color: MAIN_DARK_BLUE,
|
|
74
|
-
size: MEDIUM
|
|
80
|
+
size: MEDIUM,
|
|
81
|
+
disabled: false
|
|
75
82
|
}
|
|
76
83
|
|
|
77
84
|
export default ArrowDownFullIcon
|
|
@@ -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 ArrowDownIcon = ({ color, size }) => {
|
|
7
|
-
|
|
6
|
+
const ArrowDownIcon = ({ 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 @@ ArrowDownIcon.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
|
ArrowDownIcon.defaultProps = {
|
|
72
78
|
color: MAIN_DARK_BLUE,
|
|
73
|
-
size: MEDIUM
|
|
79
|
+
size: MEDIUM,
|
|
80
|
+
disabled: false
|
|
74
81
|
}
|
|
75
82
|
|
|
76
83
|
export default ArrowDownIcon
|
|
@@ -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 ArrowLeftIcon = ({ color, size }) => {
|
|
7
|
-
|
|
6
|
+
const ArrowLeftIcon = ({ 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 @@ ArrowLeftIcon.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
|
ArrowLeftIcon.defaultProps = {
|
|
72
78
|
color: MAIN_DARK_BLUE,
|
|
73
|
-
size: MEDIUM
|
|
79
|
+
size: MEDIUM,
|
|
80
|
+
disabled: false
|
|
74
81
|
}
|
|
75
82
|
|
|
76
83
|
export default ArrowLeftIcon
|
|
@@ -0,0 +1,84 @@
|
|
|
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 ArrowLongLeftIcon = ({ 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.2 13L14 8.2M14 8.2L9.2 3.4M14 8.2L2 8.2' stroke='none' strokeLinecap='round' strokeLinejoin='round' transform='rotate(-180 8 8)' />
|
|
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='M13.8 19.5L21 12.3M21 12.3L13.8 5.1M21 12.3L3 12.3' stroke='none' strokeWidth={1.5} strokeLinecap='round' strokeLinejoin='round' transform='rotate(-180 12 12)' />
|
|
39
|
+
|
|
40
|
+
</svg>
|
|
41
|
+
)
|
|
42
|
+
break
|
|
43
|
+
case LARGE:
|
|
44
|
+
icon = (
|
|
45
|
+
<svg
|
|
46
|
+
width={40}
|
|
47
|
+
height={40}
|
|
48
|
+
viewBox='0 0 40 40'
|
|
49
|
+
fill='none'
|
|
50
|
+
xmlns='http://www.w3.org/2000/svg'
|
|
51
|
+
className={className}
|
|
52
|
+
>
|
|
53
|
+
<path d='M23 32.5L35 20.5M35 20.5L23 8.5M35 20.5L5 20.5' stroke='none' strokeWidth={2} strokeLinecap='round' strokeLinejoin='round' transform='rotate(-180 20 20)' />
|
|
54
|
+
</svg>
|
|
55
|
+
)
|
|
56
|
+
break
|
|
57
|
+
|
|
58
|
+
default:
|
|
59
|
+
break
|
|
60
|
+
}
|
|
61
|
+
return icon
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
ArrowLongLeftIcon.propTypes = {
|
|
65
|
+
/**
|
|
66
|
+
* color of text, icon and borders
|
|
67
|
+
*/
|
|
68
|
+
color: PropTypes.oneOf(COLORS_ICON),
|
|
69
|
+
/**
|
|
70
|
+
* Size
|
|
71
|
+
*/
|
|
72
|
+
size: PropTypes.oneOf(SIZES),
|
|
73
|
+
/**
|
|
74
|
+
* disabled
|
|
75
|
+
*/
|
|
76
|
+
disabled: PropTypes.bool
|
|
77
|
+
}
|
|
78
|
+
ArrowLongLeftIcon.defaultProps = {
|
|
79
|
+
color: MAIN_DARK_BLUE,
|
|
80
|
+
size: MEDIUM,
|
|
81
|
+
disabled: false
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
export default ArrowLongLeftIcon
|
|
@@ -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 ArrowLongRightIcon = ({ color, size }) => {
|
|
7
|
-
|
|
6
|
+
const ArrowLongRightIcon = ({ 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 @@ ArrowLongRightIcon.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
|
ArrowLongRightIcon.defaultProps = {
|
|
73
79
|
color: MAIN_DARK_BLUE,
|
|
74
|
-
size: MEDIUM
|
|
80
|
+
size: MEDIUM,
|
|
81
|
+
disabled: false
|
|
75
82
|
}
|
|
76
83
|
|
|
77
84
|
export default ArrowLongRightIcon
|
|
@@ -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 ArrowRightIcon = ({ color, size }) => {
|
|
7
|
-
|
|
6
|
+
const ArrowRightIcon = ({ 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 @@ ArrowRightIcon.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
|
ArrowRightIcon.defaultProps = {
|
|
72
78
|
color: MAIN_DARK_BLUE,
|
|
73
|
-
size: MEDIUM
|
|
79
|
+
size: MEDIUM,
|
|
80
|
+
disabled: false
|
|
74
81
|
}
|
|
75
82
|
|
|
76
83
|
export default ArrowRightIcon
|
|
@@ -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 ArrowUpIcon = ({ color, size }) => {
|
|
7
|
-
|
|
6
|
+
const ArrowUpIcon = ({ 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 @@ ArrowUpIcon.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
|
ArrowUpIcon.defaultProps = {
|
|
72
78
|
color: MAIN_DARK_BLUE,
|
|
73
|
-
size: MEDIUM
|
|
79
|
+
size: MEDIUM,
|
|
80
|
+
disabled: false
|
|
74
81
|
}
|
|
75
82
|
|
|
76
83
|
export default ArrowUpIcon
|
|
@@ -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 BellIcon = ({ color, size }) => {
|
|
7
|
-
|
|
6
|
+
const BellIcon = ({ color, size, disabled }) => {
|
|
7
|
+
let className = `${styles.svgClassName} ` + styles[`${color}`]
|
|
8
|
+
if (disabled) {
|
|
9
|
+
className += ` ${styles.iconDisabled}`
|
|
10
|
+
}
|
|
8
11
|
let icon = <></>
|
|
9
12
|
|
|
10
13
|
switch (size) {
|
|
@@ -68,12 +71,16 @@ BellIcon.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
|
BellIcon.defaultProps = {
|
|
75
81
|
color: MAIN_DARK_BLUE,
|
|
76
|
-
size: MEDIUM
|
|
82
|
+
size: MEDIUM,
|
|
83
|
+
disabled: false
|
|
77
84
|
}
|
|
78
85
|
|
|
79
86
|
export default BellIcon
|
|
@@ -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
|