@platformatic/ui-components 0.4.0 → 0.5.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/assets/{index-K_bDNror.css → index-Of0we_2v.css} +1 -1
- package/dist/assets/index-hLMQmMDJ.js +40 -0
- package/dist/index.html +2 -2
- package/index.js +0 -2
- package/package.json +3 -3
- package/setupTests.js +1 -0
- package/src/components/BorderedBox.jsx +9 -20
- package/src/components/Button.jsx +14 -30
- package/src/components/ButtonFullRounded.jsx +13 -31
- package/src/components/ButtonOnlyIcon.jsx +13 -36
- package/src/components/Checkbox.jsx +5 -6
- package/src/components/CopyAndPaste.jsx +8 -19
- package/src/components/DropDown.jsx +10 -26
- package/src/components/FollowUs.jsx +18 -27
- package/src/components/HorizontalSeparator.jsx +6 -8
- package/src/components/InfoBox.jsx +8 -10
- package/src/components/ListElement.jsx +9 -11
- package/src/components/LoadingSpinner.jsx +1 -5
- package/src/components/LoadingSpinnerV2.jsx +4 -11
- package/src/components/LoginButton.test.jsx +0 -1
- package/src/components/LogoDropDown.jsx +7 -8
- package/src/components/Modal.jsx +11 -25
- package/src/components/ModalDirectional.jsx +9 -19
- package/src/components/ModalStepsForward.jsx +12 -24
- package/src/components/PlatformaticIcon.jsx +9 -21
- package/src/components/SearchBarV2.jsx +9 -22
- package/src/components/Sidebar.jsx +12 -26
- package/src/components/Status.jsx +5 -7
- package/src/components/TabbedWindow.jsx +11 -10
- package/src/components/TabbedWindow.module.css +4 -4
- package/src/components/Tag.jsx +9 -11
- package/src/components/TextWithLabel.jsx +7 -9
- package/src/components/Tooltip.jsx +8 -19
- package/src/components/TooltipAbsolute.jsx +10 -22
- package/src/components/VerticalSeparator.jsx +5 -7
- package/src/components/forms/Field.jsx +8 -19
- package/src/components/forms/Input.jsx +17 -37
- package/src/components/forms/InputWithSeparator.jsx +14 -31
- package/src/components/forms/Password.jsx +10 -18
- package/src/components/forms/Preview.jsx +10 -12
- package/src/components/forms/RadioGroup.jsx +9 -17
- package/src/components/forms/Select.jsx +19 -40
- package/src/components/forms/SelectWithInput.jsx +22 -46
- package/src/components/forms/TextArea.jsx +11 -25
- package/src/components/forms/ToggleSwitch.jsx +8 -19
- package/src/components/icons/APIDocsIcon.jsx +6 -7
- package/src/components/icons/AddIcon.jsx +6 -7
- package/src/components/icons/AlertIcon.jsx +6 -7
- package/src/components/icons/AllAppsIcon.jsx +6 -7
- package/src/components/icons/AllInOneIcon.jsx +6 -7
- package/src/components/icons/ApiCloudIcon.jsx +6 -7
- package/src/components/icons/ApiEmptyIcon.jsx +6 -7
- package/src/components/icons/ApiIcon.jsx +6 -7
- package/src/components/icons/ApiIconClosed.jsx +10 -6
- package/src/components/icons/ApiPerformanceIcon.jsx +6 -7
- package/src/components/icons/AppConfigurationIcon.jsx +6 -7
- package/src/components/icons/AppDetailsIcon.jsx +6 -7
- package/src/components/icons/AppEditIcon.jsx +6 -7
- package/src/components/icons/AppEmptyIcon.jsx +6 -7
- package/src/components/icons/AppIcon.jsx +6 -7
- package/src/components/icons/AppListIcon.jsx +6 -7
- package/src/components/icons/AppSettingsIcon.jsx +6 -7
- package/src/components/icons/AppWorkspace.jsx +10 -7
- package/src/components/icons/ApplicationTypeIcon.jsx +6 -7
- package/src/components/icons/ArrowDownFullIcon.jsx +6 -7
- package/src/components/icons/ArrowDownIcon.jsx +6 -7
- package/src/components/icons/ArrowLeftIcon.jsx +6 -7
- package/src/components/icons/ArrowLongLeftIcon.jsx +6 -7
- package/src/components/icons/ArrowLongRightIcon.jsx +6 -7
- package/src/components/icons/ArrowRightIcon.jsx +6 -7
- package/src/components/icons/ArrowUpIcon.jsx +6 -7
- package/src/components/icons/BellIcon.jsx +6 -7
- package/src/components/icons/BillingIcon.jsx +6 -7
- package/src/components/icons/BranchIcon.jsx +102 -0
- package/src/components/icons/BuiltInLoggingIcon.jsx +6 -7
- package/src/components/icons/CLIIcon.jsx +6 -7
- package/src/components/icons/Calendar1DayIcon.jsx +6 -7
- package/src/components/icons/Calendar7DaysIcon.jsx +6 -7
- package/src/components/icons/CalendarIcon.jsx +6 -7
- package/src/components/icons/CheckListIcon.jsx +6 -7
- package/src/components/icons/CircleAddIcon.jsx +6 -7
- package/src/components/icons/CircleArrowLeftIcon.jsx +6 -7
- package/src/components/icons/CircleArrowRightIcon.jsx +6 -7
- package/src/components/icons/CircleCheckMarkButtonIcon.jsx +6 -8
- package/src/components/icons/CircleCheckMarkFullIcon.jsx +6 -7
- package/src/components/icons/CircleCheckMarkIcon.jsx +7 -6
- package/src/components/icons/CircleCloseHoverIcon.jsx +6 -7
- package/src/components/icons/CircleCloseIcon.jsx +6 -7
- package/src/components/icons/CircleCopyPasteIcon.jsx +6 -7
- package/src/components/icons/CircleDownloadIcon.jsx +6 -7
- package/src/components/icons/CircleEditIcon.jsx +6 -7
- package/src/components/icons/CircleExclamationIcon.jsx +7 -7
- package/src/components/icons/CircleFullIcon.jsx +6 -7
- package/src/components/icons/CircleGearIcon.jsx +6 -7
- package/src/components/icons/CirclePlayIcon.jsx +6 -7
- package/src/components/icons/CircleRestartIcon.jsx +6 -7
- package/src/components/icons/CircleStopIcon.jsx +6 -7
- package/src/components/icons/CircleSubtractIcon.jsx +6 -7
- package/src/components/icons/CircleTwoArrowsDownIcon.jsx +6 -7
- package/src/components/icons/CircleTwoArrowsUpIcon.jsx +6 -7
- package/src/components/icons/CloseIcon.jsx +6 -7
- package/src/components/icons/CloudIcon.jsx +6 -7
- package/src/components/icons/CodeTestingIcon.jsx +6 -7
- package/src/components/icons/ComputerIcon.jsx +6 -7
- package/src/components/icons/ConfigureDatabaseIcon.jsx +6 -7
- package/src/components/icons/CopyPasteIcon.jsx +6 -7
- package/src/components/icons/CreateAppIcon.jsx +6 -7
- package/src/components/icons/CreditCardIcon.jsx +6 -7
- package/src/components/icons/DatabaseIcon.jsx +6 -7
- package/src/components/icons/DatabaseMigrationIcon.jsx +6 -7
- package/src/components/icons/DepencenciesReloadIcon.jsx +6 -7
- package/src/components/icons/DeploymentHistoryIcon.jsx +118 -0
- package/src/components/icons/EditDocumentIcon.jsx +6 -7
- package/src/components/icons/EditIcon.jsx +6 -7
- package/src/components/icons/EnlargeIcon.jsx +6 -7
- package/src/components/icons/EntryIcon.jsx +6 -7
- package/src/components/icons/EntrypointIcon.jsx +6 -7
- package/src/components/icons/ExpandIcon.jsx +6 -7
- package/src/components/icons/ExploreDocIcon.jsx +6 -7
- package/src/components/icons/EyeClosedIcon.jsx +6 -7
- package/src/components/icons/EyeOpenedIcon.jsx +6 -7
- package/src/components/icons/FailureRateIcon.jsx +104 -0
- package/src/components/icons/FolderIcon.jsx +6 -7
- package/src/components/icons/FoldersIcon.jsx +6 -7
- package/src/components/icons/GearIcon.jsx +6 -7
- package/src/components/icons/GenerationLoadingIcon.jsx +6 -7
- package/src/components/icons/GitHubRepo2Icon.jsx +6 -7
- package/src/components/icons/GitHubRepoIcon.jsx +6 -7
- package/src/components/icons/GiveOwnershipIcon.jsx +6 -7
- package/src/components/icons/GraphQLIcon.jsx +6 -7
- package/src/components/icons/ImportAppIcon.jsx +6 -7
- package/src/components/icons/K8SMetricsIcon.jsx +106 -0
- package/src/components/icons/KeyIcon.jsx +6 -7
- package/src/components/icons/LabelIcon.jsx +6 -7
- package/src/components/icons/LayersIcon.jsx +6 -7
- package/src/components/icons/LensIcon.jsx +6 -7
- package/src/components/icons/LiveIcon.jsx +6 -7
- package/src/components/icons/LoadingAppIcon.jsx +6 -7
- package/src/components/icons/LogOutIcon.jsx +7 -7
- package/src/components/icons/LogsRiskIcon.jsx +6 -7
- package/src/components/icons/MetricsIcon.jsx +6 -7
- package/src/components/icons/MetricsLoadingIcon.jsx +6 -7
- package/src/components/icons/MetricsLogsIcon.jsx +124 -0
- package/src/components/icons/MissingTemplateIcon.jsx +6 -7
- package/src/components/icons/NameAppIcon.jsx +6 -7
- package/src/components/icons/NoMetricsIcon.jsx +6 -7
- package/src/components/icons/NodeJSMetricsIcon.jsx +106 -0
- package/src/components/icons/NotCompliantServiceIcon.jsx +103 -0
- package/src/components/icons/OrganizationIcon.jsx +6 -7
- package/src/components/icons/OtherLogosGoogleIcon.jsx +69 -0
- package/src/components/icons/OutOfBoxGraphQLIcon.jsx +6 -7
- package/src/components/icons/OutdatedServiceIcon.jsx +105 -0
- package/src/components/icons/PlatformaticComposerIcon.jsx +6 -7
- package/src/components/icons/PlatformaticDBIcon.jsx +6 -7
- package/src/components/icons/PlatformaticRuntimeIcon.jsx +6 -7
- package/src/components/icons/PlatformaticServiceIcon.jsx +6 -7
- package/src/components/icons/PlayIcon.jsx +6 -7
- package/src/components/icons/PreviewPRIcon.jsx +6 -7
- package/src/components/icons/PullRequestIcon.jsx +6 -7
- package/src/components/icons/PullRequestLoadingIcon.jsx +6 -7
- package/src/components/icons/RecentAppsIcon.jsx +6 -7
- package/src/components/icons/RequestOwnershipIcon.jsx +6 -7
- package/src/components/icons/ResourceIcon.jsx +111 -0
- package/src/components/icons/RestartIcon.jsx +6 -7
- package/src/components/icons/RocketIcon.jsx +6 -7
- package/src/components/icons/RunningAppIcon.jsx +6 -7
- package/src/components/icons/RunningIcon.jsx +6 -7
- package/src/components/icons/SendIcon.jsx +6 -7
- package/src/components/icons/ServiceIcon.jsx +6 -7
- package/src/components/icons/SlotIcon.jsx +6 -7
- package/src/components/icons/SocialDiscordIcon.jsx +6 -7
- package/src/components/icons/SocialGitHubIcon.jsx +6 -7
- package/src/components/icons/SocialGitLabIcon.jsx +6 -7
- package/src/components/icons/SocialLinkedInIcon.jsx +6 -7
- package/src/components/icons/SocialNPMIcon.jsx +6 -7
- package/src/components/icons/SocialXIcon.jsx +6 -7
- package/src/components/icons/SortDownIcon.jsx +6 -7
- package/src/components/icons/SortIcon.jsx +6 -7
- package/src/components/icons/SortUpIcon.jsx +6 -7
- package/src/components/icons/SortableIcon.jsx +6 -7
- package/src/components/icons/StackablesIcon.jsx +6 -7
- package/src/components/icons/StackablesPluginIcon.jsx +6 -7
- package/src/components/icons/StackablesTemplateIcon.jsx +6 -7
- package/src/components/icons/StopIcon.jsx +6 -7
- package/src/components/icons/StoppedAppIcon.jsx +6 -7
- package/src/components/icons/SwitchIcon.jsx +6 -7
- package/src/components/icons/TeamsIcon.jsx +6 -7
- package/src/components/icons/TerminalIcon.jsx +6 -7
- package/src/components/icons/TrashIcon.jsx +6 -8
- package/src/components/icons/TwoUsersIcon.jsx +6 -7
- package/src/components/icons/UpgradeIcon.jsx +6 -7
- package/src/components/icons/UserComputerIcon.jsx +6 -7
- package/src/components/icons/UserIcon.jsx +6 -7
- package/src/components/icons/UserRemoveIcon.jsx +7 -7
- package/src/components/icons/UserRoleIcon.jsx +7 -7
- package/src/components/icons/WorkspaceDynamicIcon.jsx +6 -7
- package/src/components/icons/WorkspaceEmptyIcon.jsx +6 -7
- package/src/components/icons/WorkspaceFailIcon.jsx +6 -7
- package/src/components/icons/WorkspaceGitHubIcon.jsx +6 -7
- package/src/components/icons/WorkspaceLoadingIcon.jsx +6 -7
- package/src/components/icons/WorkspaceReadyIcon.jsx +6 -7
- package/src/components/icons/WorkspaceStaticIcon.jsx +6 -7
- package/src/components/icons/ZoomInIcon.jsx +99 -0
- package/src/components/icons/ZoomOutIcon.jsx +96 -0
- package/src/components/icons/index.js +25 -2
- package/src/components/layouts/Layout.jsx +4 -6
- package/src/components/logos/AdvancedLogo.jsx +5 -7
- package/src/components/logos/BasicLogo.jsx +5 -7
- package/src/components/logos/FreeLogo.jsx +5 -7
- package/src/components/logos/ProLogo.jsx +5 -7
- package/vitest.config.js +2 -1
- package/dist/assets/index-DxEcxprd.js +0 -40
- package/src/components/TabbedWindowV2.jsx +0 -82
- package/src/components/TabbedWindowV2.module.css +0 -17
|
@@ -6,7 +6,16 @@ import commonStyles from '../Common.module.css'
|
|
|
6
6
|
import PlatformaticIcon from '../PlatformaticIcon'
|
|
7
7
|
import { MAIN_DARK_BLUE, MAIN_GREEN } from '../constants'
|
|
8
8
|
|
|
9
|
-
function Input ({
|
|
9
|
+
function Input ({
|
|
10
|
+
placeholder = '',
|
|
11
|
+
value = '',
|
|
12
|
+
name = '',
|
|
13
|
+
borderColor = MAIN_DARK_BLUE,
|
|
14
|
+
errorMessage = '',
|
|
15
|
+
errorMessageTextClassName = '',
|
|
16
|
+
onChange = () => {},
|
|
17
|
+
disabled = false
|
|
18
|
+
}) {
|
|
10
19
|
const [type, setType] = useState('password')
|
|
11
20
|
let passwordClassName = `${commonStyles.fullWidth} ${styles.password} `
|
|
12
21
|
passwordClassName += commonStyles[`bordered--${borderColor}`] + ' ' + commonStyles[`text--${borderColor}`] + ' ' + styles.afterIconPadding
|
|
@@ -55,10 +64,6 @@ Input.propTypes = {
|
|
|
55
64
|
* Disabled
|
|
56
65
|
*/
|
|
57
66
|
disabled: PropTypes.bool,
|
|
58
|
-
/**
|
|
59
|
-
* addFocus
|
|
60
|
-
*/
|
|
61
|
-
focused: PropTypes.bool,
|
|
62
67
|
/**
|
|
63
68
|
* placeholderApart
|
|
64
69
|
*/
|
|
@@ -73,17 +78,4 @@ Input.propTypes = {
|
|
|
73
78
|
errorMessageTextClassName: PropTypes.string
|
|
74
79
|
}
|
|
75
80
|
|
|
76
|
-
Input.defaultProps = {
|
|
77
|
-
placeholder: '',
|
|
78
|
-
value: '',
|
|
79
|
-
name: '',
|
|
80
|
-
borderColor: MAIN_DARK_BLUE,
|
|
81
|
-
errorMessage: '',
|
|
82
|
-
errorMessageTextClassName: '',
|
|
83
|
-
onChange: () => {},
|
|
84
|
-
disabled: false,
|
|
85
|
-
focused: false,
|
|
86
|
-
shadowPlaceholder: false
|
|
87
|
-
}
|
|
88
|
-
|
|
89
81
|
export default Input
|
|
@@ -20,7 +20,16 @@ function renderParagraph (value, useCopyAndPaste, copyAndPaste, usePlatformaticI
|
|
|
20
20
|
</>
|
|
21
21
|
)
|
|
22
22
|
}
|
|
23
|
-
function Preview ({
|
|
23
|
+
function Preview ({
|
|
24
|
+
title = '',
|
|
25
|
+
value = '',
|
|
26
|
+
isLink = false,
|
|
27
|
+
children = null,
|
|
28
|
+
useCopyAndPaste = false,
|
|
29
|
+
copyAndPaste = null,
|
|
30
|
+
platformaticIcon = null,
|
|
31
|
+
usePlatformaticIcon = false
|
|
32
|
+
}) {
|
|
24
33
|
return (
|
|
25
34
|
<>
|
|
26
35
|
<div className={styles.container}>
|
|
@@ -81,15 +90,4 @@ Preview.propTypes = {
|
|
|
81
90
|
})
|
|
82
91
|
}
|
|
83
92
|
|
|
84
|
-
Preview.defaultProps = {
|
|
85
|
-
title: '',
|
|
86
|
-
value: '',
|
|
87
|
-
isLink: false,
|
|
88
|
-
children: null,
|
|
89
|
-
useCopyAndPaste: false,
|
|
90
|
-
copyAndPaste: null,
|
|
91
|
-
platformaticIcon: null,
|
|
92
|
-
usePlatformaticIcon: false
|
|
93
|
-
}
|
|
94
|
-
|
|
95
93
|
export default Preview
|
|
@@ -3,9 +3,16 @@ import React from 'react'
|
|
|
3
3
|
import PropTypes from 'prop-types'
|
|
4
4
|
import styles from './RadioGroup.module.css'
|
|
5
5
|
import commonStyles from '../Common.module.css'
|
|
6
|
-
import { MAIN_DARK_BLUE, MAIN_GREEN } from '../constants'
|
|
7
6
|
|
|
8
|
-
function RadioGroup ({
|
|
7
|
+
function RadioGroup ({
|
|
8
|
+
name = '',
|
|
9
|
+
radios = [],
|
|
10
|
+
errorMessage = '',
|
|
11
|
+
errorMessageTextClassName = '',
|
|
12
|
+
onChange = () => {},
|
|
13
|
+
disabled = false,
|
|
14
|
+
value = ''
|
|
15
|
+
}) {
|
|
9
16
|
let radioContainerClass = styles.radioContainer
|
|
10
17
|
const errorMessageClassName = errorMessageTextClassName || commonStyles['error-message']
|
|
11
18
|
|
|
@@ -55,25 +62,10 @@ RadioGroup.propTypes = {
|
|
|
55
62
|
* Disabled
|
|
56
63
|
*/
|
|
57
64
|
disabled: PropTypes.bool,
|
|
58
|
-
/**
|
|
59
|
-
* color
|
|
60
|
-
*/
|
|
61
|
-
color: PropTypes.oneOf([MAIN_GREEN, MAIN_DARK_BLUE]),
|
|
62
65
|
/**
|
|
63
66
|
* value
|
|
64
67
|
*/
|
|
65
68
|
value: PropTypes.string
|
|
66
69
|
}
|
|
67
70
|
|
|
68
|
-
RadioGroup.defaultProps = {
|
|
69
|
-
name: '',
|
|
70
|
-
radios: [],
|
|
71
|
-
errorMessage: '',
|
|
72
|
-
errorMessageTextClassName: '',
|
|
73
|
-
onChange: () => {},
|
|
74
|
-
disabled: false,
|
|
75
|
-
color: MAIN_DARK_BLUE,
|
|
76
|
-
value: ''
|
|
77
|
-
}
|
|
78
|
-
|
|
79
71
|
export default RadioGroup
|
|
@@ -7,24 +7,25 @@ import { MAIN_DARK_BLUE, MAIN_GREEN, RICH_BLACK, SMALL, WHITE } from '../constan
|
|
|
7
7
|
import PlatformaticIcon from '../PlatformaticIcon'
|
|
8
8
|
|
|
9
9
|
function Select ({
|
|
10
|
-
defaultContainerClassName,
|
|
11
|
-
placeholder,
|
|
12
|
-
name,
|
|
13
|
-
value,
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
10
|
+
defaultContainerClassName = '',
|
|
11
|
+
placeholder = 'this is the default',
|
|
12
|
+
name = '',
|
|
13
|
+
value = '',
|
|
14
|
+
id = '',
|
|
15
|
+
options = [],
|
|
16
|
+
defaultOptionsClassName = '',
|
|
17
|
+
optionsBorderedBottom = true,
|
|
18
|
+
borderColor = MAIN_GREEN,
|
|
19
|
+
borderListColor = '',
|
|
20
|
+
errorMessage = '',
|
|
21
|
+
errorMessageTextClassName = '',
|
|
22
|
+
onSelect = () => {},
|
|
23
|
+
disabled = false,
|
|
24
|
+
mainColor = MAIN_DARK_BLUE,
|
|
25
|
+
dataAttrName = '',
|
|
26
|
+
dataAttrValue = '',
|
|
27
|
+
backgroundColor = WHITE,
|
|
28
|
+
inputTextClassName = ''
|
|
28
29
|
}) {
|
|
29
30
|
const inputRef = useRef()
|
|
30
31
|
const [showOptions, setShowOptions] = useState(false)
|
|
@@ -262,26 +263,4 @@ Select.propTypes = {
|
|
|
262
263
|
errorMessageTextClassName: PropTypes.string
|
|
263
264
|
}
|
|
264
265
|
|
|
265
|
-
Select.defaultProps = {
|
|
266
|
-
defaultContainerClassName: '',
|
|
267
|
-
placeholder: 'this is the default',
|
|
268
|
-
name: '',
|
|
269
|
-
value: '',
|
|
270
|
-
id: '',
|
|
271
|
-
options: [],
|
|
272
|
-
defaultOptionsClassName: '',
|
|
273
|
-
optionsBorderedBottom: true,
|
|
274
|
-
borderColor: MAIN_GREEN,
|
|
275
|
-
borderListColor: '',
|
|
276
|
-
errorMessage: '',
|
|
277
|
-
errorMessageTextClassName: '',
|
|
278
|
-
onSelect: () => {},
|
|
279
|
-
disabled: false,
|
|
280
|
-
mainColor: MAIN_DARK_BLUE,
|
|
281
|
-
dataAttrName: '',
|
|
282
|
-
dataAttrValue: '',
|
|
283
|
-
backgroundColor: WHITE,
|
|
284
|
-
inputTextClassName: ''
|
|
285
|
-
}
|
|
286
|
-
|
|
287
266
|
export default Select
|
|
@@ -7,27 +7,28 @@ import { MAIN_DARK_BLUE, MAIN_GREEN, RICH_BLACK, SMALL, WHITE } from '../constan
|
|
|
7
7
|
import PlatformaticIcon from '../PlatformaticIcon'
|
|
8
8
|
|
|
9
9
|
function SelectWithInput ({
|
|
10
|
-
defaultContainerClassName,
|
|
11
|
-
placeholder,
|
|
12
|
-
name,
|
|
13
|
-
value,
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
10
|
+
defaultContainerClassName = '',
|
|
11
|
+
placeholder = 'this is the default',
|
|
12
|
+
name = '',
|
|
13
|
+
value = '',
|
|
14
|
+
id = '',
|
|
15
|
+
options = [],
|
|
16
|
+
defaultOptionsClassName = '',
|
|
17
|
+
optionsBorderedBottom = true,
|
|
18
|
+
borderColor = MAIN_GREEN,
|
|
19
|
+
borderListColor = '',
|
|
20
|
+
errorMessage = '',
|
|
21
|
+
errorMessageTextClassName = '',
|
|
22
|
+
onChange = () => {},
|
|
23
|
+
onSelect = () => {},
|
|
24
|
+
onClear = () => {},
|
|
25
|
+
disabled = false,
|
|
26
|
+
mainColor = MAIN_DARK_BLUE,
|
|
27
|
+
optionSelected = null,
|
|
28
|
+
dataAttrName = '',
|
|
29
|
+
dataAttrValue = '',
|
|
30
|
+
backgroundColor = WHITE,
|
|
31
|
+
inputTextClassName = ''
|
|
31
32
|
}) {
|
|
32
33
|
const inputRef = useRef()
|
|
33
34
|
const [showOptions, setShowOptions] = useState(false)
|
|
@@ -309,29 +310,4 @@ SelectWithInput.propTypes = {
|
|
|
309
310
|
errorMessageTextClassName: PropTypes.string
|
|
310
311
|
}
|
|
311
312
|
|
|
312
|
-
SelectWithInput.defaultProps = {
|
|
313
|
-
defaultContainerClassName: '',
|
|
314
|
-
placeholder: 'this is the default',
|
|
315
|
-
name: '',
|
|
316
|
-
value: '',
|
|
317
|
-
id: '',
|
|
318
|
-
options: [],
|
|
319
|
-
defaultOptionsClassName: '',
|
|
320
|
-
optionsBorderedBottom: true,
|
|
321
|
-
borderColor: MAIN_GREEN,
|
|
322
|
-
borderListColor: '',
|
|
323
|
-
errorMessage: '',
|
|
324
|
-
errorMessageTextClassName: '',
|
|
325
|
-
onChange: () => {},
|
|
326
|
-
onSelect: () => {},
|
|
327
|
-
onClear: () => {},
|
|
328
|
-
disabled: false,
|
|
329
|
-
mainColor: MAIN_DARK_BLUE,
|
|
330
|
-
optionSelected: null,
|
|
331
|
-
dataAttrName: '',
|
|
332
|
-
dataAttrValue: '',
|
|
333
|
-
backgroundColor: WHITE,
|
|
334
|
-
inputTextClassName: ''
|
|
335
|
-
}
|
|
336
|
-
|
|
337
313
|
export default SelectWithInput
|
|
@@ -7,17 +7,17 @@ import PlatformaticIcon from '../PlatformaticIcon'
|
|
|
7
7
|
import { MAIN_DARK_BLUE, MAIN_GREEN } from '../constants'
|
|
8
8
|
|
|
9
9
|
function TextArea ({
|
|
10
|
-
placeholder,
|
|
11
|
-
value,
|
|
12
|
-
name,
|
|
13
|
-
borderColor,
|
|
14
|
-
errorMessage,
|
|
15
|
-
errorMessageTextClassName,
|
|
16
|
-
onChange,
|
|
17
|
-
disabled,
|
|
18
|
-
afterIcon,
|
|
19
|
-
rows,
|
|
20
|
-
cols
|
|
10
|
+
placeholder = '',
|
|
11
|
+
value = '',
|
|
12
|
+
name = '',
|
|
13
|
+
borderColor = MAIN_DARK_BLUE,
|
|
14
|
+
errorMessage = '',
|
|
15
|
+
errorMessageTextClassName = '',
|
|
16
|
+
onChange = () => {},
|
|
17
|
+
disabled = false,
|
|
18
|
+
afterIcon = null,
|
|
19
|
+
rows = 5,
|
|
20
|
+
cols = 20
|
|
21
21
|
}) {
|
|
22
22
|
let className = styles.textAreaContainer + ' ' + commonStyles[`bordered--${borderColor}`] + ' ' + commonStyles[`text--${borderColor}`]
|
|
23
23
|
const showError = errorMessage.length > 0
|
|
@@ -88,18 +88,4 @@ TextArea.propTypes = {
|
|
|
88
88
|
errorMessageTextClassName: PropTypes.string
|
|
89
89
|
}
|
|
90
90
|
|
|
91
|
-
TextArea.defaultProps = {
|
|
92
|
-
placeholder: '',
|
|
93
|
-
value: '',
|
|
94
|
-
name: '',
|
|
95
|
-
borderColor: MAIN_DARK_BLUE,
|
|
96
|
-
errorMessage: '',
|
|
97
|
-
errorMessageTextClassName: '',
|
|
98
|
-
onChange: () => {},
|
|
99
|
-
disabled: false,
|
|
100
|
-
afterIcon: null,
|
|
101
|
-
rows: 5,
|
|
102
|
-
cols: 20
|
|
103
|
-
}
|
|
104
|
-
|
|
105
91
|
export default TextArea
|
|
@@ -5,14 +5,14 @@ import styles from './ToggleSwitch.module.css'
|
|
|
5
5
|
import commonStyles from '../Common.module.css'
|
|
6
6
|
|
|
7
7
|
function ToggleSwitch ({
|
|
8
|
-
name,
|
|
9
|
-
label,
|
|
10
|
-
labelClassName,
|
|
11
|
-
errorMessage,
|
|
12
|
-
errorMessageTextClassName,
|
|
13
|
-
onChange,
|
|
14
|
-
checked,
|
|
15
|
-
disabled
|
|
8
|
+
name = '',
|
|
9
|
+
label = '',
|
|
10
|
+
labelClassName = '',
|
|
11
|
+
errorMessage = '',
|
|
12
|
+
errorMessageTextClassName = '',
|
|
13
|
+
onChange = () => {},
|
|
14
|
+
checked = false,
|
|
15
|
+
disabled = false
|
|
16
16
|
}) {
|
|
17
17
|
let className = `${styles.switch} `
|
|
18
18
|
if (disabled) className += styles.disabled
|
|
@@ -69,15 +69,4 @@ ToggleSwitch.propTypes = {
|
|
|
69
69
|
|
|
70
70
|
}
|
|
71
71
|
|
|
72
|
-
ToggleSwitch.defaultProps = {
|
|
73
|
-
name: '',
|
|
74
|
-
label: '',
|
|
75
|
-
errorMessage: '',
|
|
76
|
-
errorMessageTextClassName: '',
|
|
77
|
-
checked: false,
|
|
78
|
-
disabled: false,
|
|
79
|
-
onChange: () => {},
|
|
80
|
-
labelClassName: ''
|
|
81
|
-
}
|
|
82
|
-
|
|
83
72
|
export default ToggleSwitch
|
|
@@ -3,7 +3,12 @@ import PropTypes from 'prop-types'
|
|
|
3
3
|
import styles from './Icons.module.css'
|
|
4
4
|
import { COLORS_ICON, SIZES, SMALL, MEDIUM, LARGE, MAIN_DARK_BLUE } from '../constants'
|
|
5
5
|
|
|
6
|
-
const APIDocsIcon = ({
|
|
6
|
+
const APIDocsIcon = ({
|
|
7
|
+
color = MAIN_DARK_BLUE,
|
|
8
|
+
size = MEDIUM,
|
|
9
|
+
disabled = false,
|
|
10
|
+
inactive = false
|
|
11
|
+
}) => {
|
|
7
12
|
let className = `${styles.svgClassName} ` + styles[`${color}`]
|
|
8
13
|
if (disabled) {
|
|
9
14
|
className += ` ${styles.iconDisabled}`
|
|
@@ -104,11 +109,5 @@ APIDocsIcon.propTypes = {
|
|
|
104
109
|
*/
|
|
105
110
|
inactive: PropTypes.bool
|
|
106
111
|
}
|
|
107
|
-
APIDocsIcon.defaultProps = {
|
|
108
|
-
color: MAIN_DARK_BLUE,
|
|
109
|
-
size: MEDIUM,
|
|
110
|
-
disabled: false,
|
|
111
|
-
inactive: false
|
|
112
|
-
}
|
|
113
112
|
|
|
114
113
|
export default APIDocsIcon
|
|
@@ -3,7 +3,12 @@ import PropTypes from 'prop-types'
|
|
|
3
3
|
import styles from './Icons.module.css'
|
|
4
4
|
import { COLORS_ICON, SIZES, SMALL, MEDIUM, LARGE, MAIN_DARK_BLUE } from '../constants'
|
|
5
5
|
|
|
6
|
-
const AddIcon = ({
|
|
6
|
+
const AddIcon = ({
|
|
7
|
+
color = MAIN_DARK_BLUE,
|
|
8
|
+
size = MEDIUM,
|
|
9
|
+
disabled = false,
|
|
10
|
+
inactive = false
|
|
11
|
+
}) => {
|
|
7
12
|
let className = `${styles.svgClassName} ` + styles[`${color}`]
|
|
8
13
|
if (disabled) {
|
|
9
14
|
className += ` ${styles.iconDisabled}`
|
|
@@ -84,11 +89,5 @@ AddIcon.propTypes = {
|
|
|
84
89
|
*/
|
|
85
90
|
inactive: PropTypes.bool
|
|
86
91
|
}
|
|
87
|
-
AddIcon.defaultProps = {
|
|
88
|
-
color: MAIN_DARK_BLUE,
|
|
89
|
-
size: MEDIUM,
|
|
90
|
-
disabled: false,
|
|
91
|
-
inactive: false
|
|
92
|
-
}
|
|
93
92
|
|
|
94
93
|
export default AddIcon
|
|
@@ -3,7 +3,12 @@ import PropTypes from 'prop-types'
|
|
|
3
3
|
import styles from './Icons.module.css'
|
|
4
4
|
import { COLORS_ICON, SIZES, SMALL, MEDIUM, LARGE, ERROR_RED } from '../constants'
|
|
5
5
|
|
|
6
|
-
const AlertIcon = ({
|
|
6
|
+
const AlertIcon = ({
|
|
7
|
+
color = ERROR_RED,
|
|
8
|
+
size = MEDIUM,
|
|
9
|
+
disabled = false,
|
|
10
|
+
inactive = false
|
|
11
|
+
}) => {
|
|
7
12
|
let className = `${styles.svgClassName} ` + styles[`${color}`]
|
|
8
13
|
if (disabled) {
|
|
9
14
|
className += ` ${styles.iconDisabled}`
|
|
@@ -87,11 +92,5 @@ AlertIcon.propTypes = {
|
|
|
87
92
|
*/
|
|
88
93
|
inactive: PropTypes.bool
|
|
89
94
|
}
|
|
90
|
-
AlertIcon.defaultProps = {
|
|
91
|
-
color: ERROR_RED,
|
|
92
|
-
size: MEDIUM,
|
|
93
|
-
disabled: false,
|
|
94
|
-
inactive: false
|
|
95
|
-
}
|
|
96
95
|
|
|
97
96
|
export default AlertIcon
|
|
@@ -3,7 +3,12 @@ import PropTypes from 'prop-types'
|
|
|
3
3
|
import styles from './Icons.module.css'
|
|
4
4
|
import { COLORS_ICON, SIZES, SMALL, MEDIUM, LARGE, MAIN_DARK_BLUE } from '../constants'
|
|
5
5
|
|
|
6
|
-
const AllAppsIcon = ({
|
|
6
|
+
const AllAppsIcon = ({
|
|
7
|
+
color = MAIN_DARK_BLUE,
|
|
8
|
+
size = MEDIUM,
|
|
9
|
+
disabled = false,
|
|
10
|
+
inactive = false
|
|
11
|
+
}) => {
|
|
7
12
|
let className = `${styles.svgClassName} ` + styles[`${color}`]
|
|
8
13
|
if (disabled) {
|
|
9
14
|
className += ` ${styles.iconDisabled}`
|
|
@@ -100,11 +105,5 @@ AllAppsIcon.propTypes = {
|
|
|
100
105
|
*/
|
|
101
106
|
inactive: PropTypes.bool
|
|
102
107
|
}
|
|
103
|
-
AllAppsIcon.defaultProps = {
|
|
104
|
-
color: MAIN_DARK_BLUE,
|
|
105
|
-
size: MEDIUM,
|
|
106
|
-
disabled: false,
|
|
107
|
-
inactive: false
|
|
108
|
-
}
|
|
109
108
|
|
|
110
109
|
export default AllAppsIcon
|
|
@@ -3,7 +3,12 @@ import PropTypes from 'prop-types'
|
|
|
3
3
|
import styles from './Icons.module.css'
|
|
4
4
|
import { COLORS_ICON, SIZES, SMALL, MEDIUM, LARGE, MAIN_DARK_BLUE } from '../constants'
|
|
5
5
|
|
|
6
|
-
const AllInOneIcon = ({
|
|
6
|
+
const AllInOneIcon = ({
|
|
7
|
+
color = MAIN_DARK_BLUE,
|
|
8
|
+
size = MEDIUM,
|
|
9
|
+
disabled = false,
|
|
10
|
+
inactive = false
|
|
11
|
+
}) => {
|
|
7
12
|
let className = `${styles.svgClassName} ` + styles[`${color}`]
|
|
8
13
|
if (disabled) {
|
|
9
14
|
className += ` ${styles.iconDisabled}`
|
|
@@ -117,11 +122,5 @@ AllInOneIcon.propTypes = {
|
|
|
117
122
|
*/
|
|
118
123
|
inactive: PropTypes.bool
|
|
119
124
|
}
|
|
120
|
-
AllInOneIcon.defaultProps = {
|
|
121
|
-
color: MAIN_DARK_BLUE,
|
|
122
|
-
size: MEDIUM,
|
|
123
|
-
disabled: false,
|
|
124
|
-
inactive: false
|
|
125
|
-
}
|
|
126
125
|
|
|
127
126
|
export default AllInOneIcon
|
|
@@ -3,7 +3,12 @@ import PropTypes from 'prop-types'
|
|
|
3
3
|
import styles from './Icons.module.css'
|
|
4
4
|
import { COLORS_ICON, SIZES, SMALL, MEDIUM, LARGE, MAIN_DARK_BLUE } from '../constants'
|
|
5
5
|
|
|
6
|
-
const ApiCloudIcon = ({
|
|
6
|
+
const ApiCloudIcon = ({
|
|
7
|
+
color = MAIN_DARK_BLUE,
|
|
8
|
+
size = MEDIUM,
|
|
9
|
+
disabled = false,
|
|
10
|
+
inactive = false
|
|
11
|
+
}) => {
|
|
7
12
|
let className = `${styles.svgClassName} ` + styles[`${color}`]
|
|
8
13
|
if (disabled) {
|
|
9
14
|
className += ` ${styles.iconDisabled}`
|
|
@@ -99,11 +104,5 @@ ApiCloudIcon.propTypes = {
|
|
|
99
104
|
*/
|
|
100
105
|
inactive: PropTypes.bool
|
|
101
106
|
}
|
|
102
|
-
ApiCloudIcon.defaultProps = {
|
|
103
|
-
color: MAIN_DARK_BLUE,
|
|
104
|
-
size: MEDIUM,
|
|
105
|
-
disabled: false,
|
|
106
|
-
inactive: false
|
|
107
|
-
}
|
|
108
107
|
|
|
109
108
|
export default ApiCloudIcon
|
|
@@ -3,7 +3,12 @@ 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 ApiEmptyIcon = ({
|
|
6
|
+
const ApiEmptyIcon = ({
|
|
7
|
+
color = MAIN_DARK_BLUE,
|
|
8
|
+
size = MEDIUM,
|
|
9
|
+
disabled = false,
|
|
10
|
+
inactive = false
|
|
11
|
+
}) => {
|
|
7
12
|
let className = `${styles.svgClassName} ` + styles[`${color}`]
|
|
8
13
|
if (disabled) {
|
|
9
14
|
className += ` ${styles.iconDisabled}`
|
|
@@ -147,11 +152,5 @@ ApiEmptyIcon.propTypes = {
|
|
|
147
152
|
*/
|
|
148
153
|
inactive: PropTypes.bool
|
|
149
154
|
}
|
|
150
|
-
ApiEmptyIcon.defaultProps = {
|
|
151
|
-
color: MAIN_DARK_BLUE,
|
|
152
|
-
size: MEDIUM,
|
|
153
|
-
disabled: false,
|
|
154
|
-
inactive: false
|
|
155
|
-
}
|
|
156
155
|
|
|
157
156
|
export default ApiEmptyIcon
|
|
@@ -3,7 +3,12 @@ import PropTypes from 'prop-types'
|
|
|
3
3
|
import styles from './Icons.module.css'
|
|
4
4
|
import { COLORS_ICON, SIZES, SMALL, MEDIUM, LARGE, MAIN_DARK_BLUE } from '../constants'
|
|
5
5
|
|
|
6
|
-
const ApiIcon = ({
|
|
6
|
+
const ApiIcon = ({
|
|
7
|
+
color = MAIN_DARK_BLUE,
|
|
8
|
+
size = MEDIUM,
|
|
9
|
+
disabled = false,
|
|
10
|
+
inactive = false
|
|
11
|
+
}) => {
|
|
7
12
|
let className = `${styles.svgClassName} ` + styles[`${color}`]
|
|
8
13
|
if (disabled) {
|
|
9
14
|
className += ` ${styles.iconDisabled}`
|
|
@@ -90,11 +95,5 @@ ApiIcon.propTypes = {
|
|
|
90
95
|
*/
|
|
91
96
|
inactive: PropTypes.bool
|
|
92
97
|
}
|
|
93
|
-
ApiIcon.defaultProps = {
|
|
94
|
-
color: MAIN_DARK_BLUE,
|
|
95
|
-
size: MEDIUM,
|
|
96
|
-
disabled: false,
|
|
97
|
-
inactive: false
|
|
98
|
-
}
|
|
99
98
|
|
|
100
99
|
export default ApiIcon
|
|
@@ -1,13 +1,21 @@
|
|
|
1
1
|
import * as React from 'react'
|
|
2
2
|
import PropTypes from 'prop-types'
|
|
3
3
|
import styles from './Icons.module.css'
|
|
4
|
-
import { COLORS_ICON, SIZES } from '../constants'
|
|
4
|
+
import { COLORS_ICON, MAIN_DARK_BLUE, MEDIUM, SIZES } from '../constants'
|
|
5
5
|
|
|
6
|
-
const ApiIconClosed = ({
|
|
6
|
+
const ApiIconClosed = ({
|
|
7
|
+
color = MAIN_DARK_BLUE,
|
|
8
|
+
size = MEDIUM,
|
|
9
|
+
disabled = false,
|
|
10
|
+
inactive = false
|
|
11
|
+
}) => {
|
|
7
12
|
let className = `${styles.svgClassName} ` + styles[`${color}`]
|
|
8
13
|
if (disabled) {
|
|
9
14
|
className += ` ${styles.iconDisabled}`
|
|
10
15
|
}
|
|
16
|
+
if (inactive) {
|
|
17
|
+
className += ` ${styles.iconInactive}`
|
|
18
|
+
}
|
|
11
19
|
let icon = <></>
|
|
12
20
|
|
|
13
21
|
switch (size) {
|
|
@@ -51,9 +59,5 @@ ApiIconClosed.propTypes = {
|
|
|
51
59
|
*/
|
|
52
60
|
disabled: PropTypes.bool
|
|
53
61
|
}
|
|
54
|
-
ApiIconClosed.defaultProps = {
|
|
55
|
-
color: 'main-dark-blue',
|
|
56
|
-
size: 'medium'
|
|
57
|
-
}
|
|
58
62
|
|
|
59
63
|
export default ApiIconClosed
|
|
@@ -3,7 +3,12 @@ import PropTypes from 'prop-types'
|
|
|
3
3
|
import styles from './Icons.module.css'
|
|
4
4
|
import { COLORS_ICON, SIZES, SMALL, MEDIUM, LARGE, MAIN_DARK_BLUE } from '../constants'
|
|
5
5
|
|
|
6
|
-
const ApiPerformanceIcon = ({
|
|
6
|
+
const ApiPerformanceIcon = ({
|
|
7
|
+
color = MAIN_DARK_BLUE,
|
|
8
|
+
size = MEDIUM,
|
|
9
|
+
disabled = false,
|
|
10
|
+
inactive = false
|
|
11
|
+
}) => {
|
|
7
12
|
let className = `${styles.svgClassName} ` + styles[`${color}`]
|
|
8
13
|
if (disabled) {
|
|
9
14
|
className += ` ${styles.iconDisabled}`
|
|
@@ -105,11 +110,5 @@ ApiPerformanceIcon.propTypes = {
|
|
|
105
110
|
*/
|
|
106
111
|
inactive: PropTypes.bool
|
|
107
112
|
}
|
|
108
|
-
ApiPerformanceIcon.defaultProps = {
|
|
109
|
-
color: MAIN_DARK_BLUE,
|
|
110
|
-
size: MEDIUM,
|
|
111
|
-
disabled: false,
|
|
112
|
-
inactive: false
|
|
113
|
-
}
|
|
114
113
|
|
|
115
114
|
export default ApiPerformanceIcon
|
|
@@ -3,7 +3,12 @@ import PropTypes from 'prop-types'
|
|
|
3
3
|
import styles from './Icons.module.css'
|
|
4
4
|
import { COLORS_ICON, SIZES, SMALL, MEDIUM, LARGE, MAIN_DARK_BLUE } from '../constants'
|
|
5
5
|
|
|
6
|
-
const AppConfigurationIcon = ({
|
|
6
|
+
const AppConfigurationIcon = ({
|
|
7
|
+
color = MAIN_DARK_BLUE,
|
|
8
|
+
size = MEDIUM,
|
|
9
|
+
disabled = false,
|
|
10
|
+
inactive = false
|
|
11
|
+
}) => {
|
|
7
12
|
let className = `${styles.svgClassName} ` + styles[`${color}`]
|
|
8
13
|
if (disabled) {
|
|
9
14
|
className += ` ${styles.iconDisabled}`
|
|
@@ -108,11 +113,5 @@ AppConfigurationIcon.propTypes = {
|
|
|
108
113
|
*/
|
|
109
114
|
inactive: PropTypes.bool
|
|
110
115
|
}
|
|
111
|
-
AppConfigurationIcon.defaultProps = {
|
|
112
|
-
color: MAIN_DARK_BLUE,
|
|
113
|
-
size: MEDIUM,
|
|
114
|
-
disabled: false,
|
|
115
|
-
inactive: false
|
|
116
|
-
}
|
|
117
116
|
|
|
118
117
|
export default AppConfigurationIcon
|
|
@@ -3,7 +3,12 @@ import PropTypes from 'prop-types'
|
|
|
3
3
|
import styles from './Icons.module.css'
|
|
4
4
|
import { COLORS_ICON, SIZES, SMALL, MEDIUM, LARGE, MAIN_DARK_BLUE } from '../constants'
|
|
5
5
|
|
|
6
|
-
const AppDetailsIcon = ({
|
|
6
|
+
const AppDetailsIcon = ({
|
|
7
|
+
color = MAIN_DARK_BLUE,
|
|
8
|
+
size = MEDIUM,
|
|
9
|
+
disabled = false,
|
|
10
|
+
inactive = false
|
|
11
|
+
}) => {
|
|
7
12
|
let className = `${styles.svgClassName} ` + styles[`${color}`]
|
|
8
13
|
if (disabled) {
|
|
9
14
|
className += ` ${styles.iconDisabled}`
|
|
@@ -89,11 +94,5 @@ AppDetailsIcon.propTypes = {
|
|
|
89
94
|
*/
|
|
90
95
|
inactive: PropTypes.bool
|
|
91
96
|
}
|
|
92
|
-
AppDetailsIcon.defaultProps = {
|
|
93
|
-
color: MAIN_DARK_BLUE,
|
|
94
|
-
size: MEDIUM,
|
|
95
|
-
disabled: false,
|
|
96
|
-
inactive: false
|
|
97
|
-
}
|
|
98
97
|
|
|
99
98
|
export default AppDetailsIcon
|