@platformatic/ui-components 0.15.4 → 0.17.0
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-DMinbJlj.css → index-BgaMsXXo.css} +1 -1
- package/dist/assets/index-CqZKPFqq.js +49 -0
- package/dist/index.html +2 -2
- package/dist/main.css +0 -4
- package/package.json +1 -1
- package/src/components/BorderedBox.jsx +1 -37
- package/src/components/Button.jsx +0 -72
- package/src/components/ButtonFullRounded.jsx +1 -57
- package/src/components/ButtonOnlyIcon.jsx +1 -57
- package/src/components/Checkbox.jsx +1 -17
- package/src/components/CopyAndPaste.jsx +1 -41
- package/src/components/DropDown.jsx +2 -53
- package/src/components/FollowUs.jsx +1 -36
- package/src/components/HorizontalSeparator.jsx +2 -21
- package/src/components/InfoBox.jsx +1 -32
- package/src/components/ListElement.jsx +1 -32
- package/src/components/LoadingSpinner.jsx +0 -8
- package/src/components/LoadingSpinnerV2.jsx +0 -25
- package/src/components/LogoDropDown.jsx +0 -28
- package/src/components/Modal.jsx +0 -59
- package/src/components/ModalDirectional.jsx +0 -28
- package/src/components/ModalStepsForward.jsx +1 -21
- package/src/components/PlatformaticIcon.jsx +1 -41
- package/src/components/SearchBarV2.jsx +1 -45
- package/src/components/Sidebar.jsx +0 -53
- package/src/components/Status.jsx +1 -18
- package/src/components/TabbedWindow.jsx +1 -33
- package/src/components/Tag.jsx +1 -44
- package/src/components/TextWithLabel.jsx +1 -25
- package/src/components/Tooltip.jsx +2 -46
- package/src/components/TooltipAbsolute.jsx +1 -41
- package/src/components/VerticalSeparator.jsx +1 -22
- package/src/components/forms/Field.jsx +1 -37
- package/src/components/forms/Input.jsx +1 -85
- package/src/components/forms/InputFileUpload.jsx +1 -101
- package/src/components/forms/InputWithSeparator.jsx +1 -74
- package/src/components/forms/Password.jsx +3 -43
- package/src/components/forms/Preview.jsx +1 -51
- package/src/components/forms/RadioGroup.jsx +0 -35
- package/src/components/forms/Select.jsx +1 -110
- package/src/components/forms/SelectWithInput.jsx +1 -111
- package/src/components/forms/TextArea.jsx +1 -53
- package/src/components/forms/ToggleSwitch.jsx +1 -42
- package/src/components/icons/APIDocsIcon.jsx +1 -21
- package/src/components/icons/APIKeyIcon.jsx +1 -21
- package/src/components/icons/AWSIcon.jsx +1 -21
- package/src/components/icons/AddEnvVariableIcon.jsx +1 -17
- package/src/components/icons/AddIcon.jsx +1 -21
- package/src/components/icons/AddRouteIcon.jsx +1 -17
- package/src/components/icons/AddUserIcon.jsx +1 -21
- package/src/components/icons/AlertIcon.jsx +1 -21
- package/src/components/icons/AllAppsIcon.jsx +1 -21
- package/src/components/icons/AllInOneIcon.jsx +1 -21
- package/src/components/icons/ApiCloudIcon.jsx +1 -21
- package/src/components/icons/ApiEmptyIcon.jsx +1 -21
- package/src/components/icons/ApiIcon.jsx +1 -21
- package/src/components/icons/ApiIconClosed.jsx +1 -17
- package/src/components/icons/ApiPerformanceIcon.jsx +1 -21
- package/src/components/icons/AppConfigurationIcon.jsx +1 -21
- package/src/components/icons/AppDetailsIcon.jsx +1 -21
- package/src/components/icons/AppEditIcon.jsx +1 -21
- package/src/components/icons/AppEmptyIcon.jsx +1 -21
- package/src/components/icons/AppIcon.jsx +1 -21
- package/src/components/icons/AppListIcon.jsx +1 -21
- package/src/components/icons/AppMissingIcon.jsx +1 -21
- package/src/components/icons/AppOptimizedIcon.jsx +1 -21
- package/src/components/icons/AppSettingsIcon.jsx +1 -21
- package/src/components/icons/AppStoppedIcon.jsx +1 -21
- package/src/components/icons/AppWorkspace.jsx +1 -13
- package/src/components/icons/ApplicationTypeIcon.jsx +1 -21
- package/src/components/icons/ArrowDownFullIcon.jsx +1 -21
- package/src/components/icons/ArrowDownIcon.jsx +1 -21
- package/src/components/icons/ArrowLeftIcon.jsx +1 -21
- package/src/components/icons/ArrowLongDownIcon.jsx +1 -21
- package/src/components/icons/ArrowLongLeftIcon.jsx +1 -21
- package/src/components/icons/ArrowLongRightIcon.jsx +1 -21
- package/src/components/icons/ArrowLongUpIcon.jsx +1 -21
- package/src/components/icons/ArrowRightIcon.jsx +1 -21
- package/src/components/icons/ArrowUpIcon.jsx +1 -21
- package/src/components/icons/BellIcon.jsx +1 -21
- package/src/components/icons/BillingIcon.jsx +1 -21
- package/src/components/icons/BranchIcon.jsx +1 -21
- package/src/components/icons/BuiltInLoggingIcon.jsx +1 -21
- package/src/components/icons/CLIIcon.jsx +1 -21
- package/src/components/icons/CacheRecommendationIcon.jsx +1 -21
- package/src/components/icons/CachingIcon.jsx +1 -21
- package/src/components/icons/Calendar1DayIcon.jsx +1 -21
- package/src/components/icons/Calendar7DaysIcon.jsx +1 -21
- package/src/components/icons/CalendarIcon.jsx +1 -21
- package/src/components/icons/CheckListIcon.jsx +1 -21
- package/src/components/icons/CheckListReviewIcon.jsx +1 -21
- package/src/components/icons/CircleAddIcon.jsx +1 -21
- package/src/components/icons/CircleArrowLeftIcon.jsx +2 -22
- package/src/components/icons/CircleArrowRightIcon.jsx +1 -21
- package/src/components/icons/CircleCheckMarkButtonIcon.jsx +1 -13
- package/src/components/icons/CircleCheckMarkFullIcon.jsx +1 -21
- package/src/components/icons/CircleCheckMarkIcon.jsx +1 -21
- package/src/components/icons/CircleCloseHoverIcon.jsx +1 -21
- package/src/components/icons/CircleCloseIcon.jsx +1 -21
- package/src/components/icons/CircleCopyPasteIcon.jsx +1 -21
- package/src/components/icons/CircleDownloadIcon.jsx +1 -21
- package/src/components/icons/CircleEditIcon.jsx +1 -21
- package/src/components/icons/CircleExclamationIcon.jsx +1 -17
- package/src/components/icons/CircleFullIcon.jsx +1 -21
- package/src/components/icons/CircleGearIcon.jsx +1 -21
- package/src/components/icons/CirclePlayIcon.jsx +1 -21
- package/src/components/icons/CircleRestartIcon.jsx +1 -21
- package/src/components/icons/CircleStopIcon.jsx +1 -21
- package/src/components/icons/CircleSubtractIcon.jsx +1 -21
- package/src/components/icons/CircleTwoArrowsDownIcon.jsx +1 -21
- package/src/components/icons/CircleTwoArrowsUpIcon.jsx +1 -21
- package/src/components/icons/CloseIcon.jsx +1 -21
- package/src/components/icons/CloudIcon.jsx +1 -21
- package/src/components/icons/CodeTestingIcon.jsx +1 -21
- package/src/components/icons/CollapseIcon.jsx +1 -21
- package/src/components/icons/CollapseSquareIcon.jsx +1 -21
- package/src/components/icons/ComputerIcon.jsx +1 -21
- package/src/components/icons/ComputerInIcon.jsx +1 -21
- package/src/components/icons/ComputerOutIcon.jsx +1 -21
- package/src/components/icons/ConfigureDatabaseIcon.jsx +1 -21
- package/src/components/icons/CopyPasteIcon.jsx +1 -21
- package/src/components/icons/CreateAppIcon.jsx +1 -21
- package/src/components/icons/CreatingAppIcon.jsx +1 -21
- package/src/components/icons/CreditCardIcon.jsx +1 -21
- package/src/components/icons/DatabaseEditIcon.jsx +1 -21
- package/src/components/icons/DatabaseIcon.jsx +1 -21
- package/src/components/icons/DatabaseMigrationIcon.jsx +1 -21
- package/src/components/icons/DepencenciesReloadIcon.jsx +1 -21
- package/src/components/icons/DeploymentHistoryIcon.jsx +1 -21
- package/src/components/icons/DocumentIcon.jsx +1 -21
- package/src/components/icons/DownloadIcon.jsx +1 -21
- package/src/components/icons/EditDocumentIcon.jsx +1 -21
- package/src/components/icons/EditIcon.jsx +1 -21
- package/src/components/icons/EnlargeIcon.jsx +1 -21
- package/src/components/icons/EntryIcon.jsx +1 -21
- package/src/components/icons/EntrypointIcon.jsx +1 -25
- package/src/components/icons/EnvVariableszIcon.jsx +1 -21
- package/src/components/icons/ExpandIcon.jsx +1 -25
- package/src/components/icons/ExpandSquadreIcon.jsx +1 -21
- package/src/components/icons/ExploreDocIcon.jsx +1 -21
- package/src/components/icons/ExportIcon.jsx +1 -21
- package/src/components/icons/EyeClosedIcon.jsx +1 -21
- package/src/components/icons/EyeOpenedIcon.jsx +1 -21
- package/src/components/icons/FailureRateIcon.jsx +1 -21
- package/src/components/icons/FolderIcon.jsx +1 -21
- package/src/components/icons/FoldersIcon.jsx +1 -21
- package/src/components/icons/GearIcon.jsx +1 -21
- package/src/components/icons/GenerationLoadingIcon.jsx +1 -21
- package/src/components/icons/GitHubRepo2Icon.jsx +1 -21
- package/src/components/icons/GitHubRepoIcon.jsx +1 -21
- package/src/components/icons/GiveOwnershipIcon.jsx +2 -22
- package/src/components/icons/GraphQLEditsIcon.jsx +1 -21
- package/src/components/icons/GraphQLIcon.jsx +1 -21
- package/src/components/icons/HorizontalPodAutoscalerIcon.jsx +1 -21
- package/src/components/icons/HourglassIcon.jsx +1 -21
- package/src/components/icons/ImportAppIcon.jsx +1 -21
- package/src/components/icons/ImportIcon.jsx +1 -21
- package/src/components/icons/InfoCircleIcon.jsx +1 -21
- package/src/components/icons/InfrastructureIcon.jsx +1 -21
- package/src/components/icons/IngressControllIcon.jsx +1 -21
- package/src/components/icons/InternalLinkIcon.jsx +1 -25
- package/src/components/icons/InternetIcon.jsx +1 -25
- package/src/components/icons/K8SIcon.jsx +1 -21
- package/src/components/icons/K8SMetricsIcon.jsx +4 -24
- package/src/components/icons/KeyIcon.jsx +1 -21
- package/src/components/icons/LabelIcon.jsx +1 -21
- package/src/components/icons/LayersIcon.jsx +1 -21
- package/src/components/icons/LensIcon.jsx +1 -21
- package/src/components/icons/LiveIcon.jsx +1 -21
- package/src/components/icons/LoadingAppIcon.jsx +1 -21
- package/src/components/icons/LogOutIcon.jsx +1 -17
- package/src/components/icons/LogsRiskIcon.jsx +1 -21
- package/src/components/icons/MailIcon.jsx +1 -21
- package/src/components/icons/MetricsIcon.jsx +1 -21
- package/src/components/icons/MetricsLoadingIcon.jsx +1 -21
- package/src/components/icons/MetricsLogsIcon.jsx +1 -21
- package/src/components/icons/MissingTemplateIcon.jsx +1 -21
- package/src/components/icons/NameAppIcon.jsx +1 -21
- package/src/components/icons/NextJSIcon.jsx +1 -25
- package/src/components/icons/NoActivitiesIcon.jsx +1 -21
- package/src/components/icons/NoDeploymentsIcon.jsx +1 -21
- package/src/components/icons/NoMetricsIcon.jsx +1 -21
- package/src/components/icons/NoResultsIcon.jsx +1 -21
- package/src/components/icons/NodeJSIcon.jsx +1 -21
- package/src/components/icons/NodeJSMetricsIcon.jsx +1 -21
- package/src/components/icons/NotCompliantServiceIcon.jsx +1 -25
- package/src/components/icons/OpenAPIEditsIcon.jsx +1 -21
- package/src/components/icons/OrganizationIcon.jsx +1 -21
- package/src/components/icons/OtherLogosGoogleIcon.jsx +1 -21
- package/src/components/icons/OutOfBoxGraphQLIcon.jsx +1 -21
- package/src/components/icons/OutdatedServiceIcon.jsx +1 -25
- package/src/components/icons/PlatformaticComposerIcon.jsx +1 -21
- package/src/components/icons/PlatformaticDBIcon.jsx +1 -21
- package/src/components/icons/PlatformaticRuntimeIcon.jsx +1 -21
- package/src/components/icons/PlatformaticServiceIcon.jsx +1 -21
- package/src/components/icons/PlayIcon.jsx +1 -21
- package/src/components/icons/PodDetailsIcon.jsx +1 -21
- package/src/components/icons/PodLogsIcon.jsx +1 -21
- package/src/components/icons/PodMetricsIcon.jsx +1 -21
- package/src/components/icons/PodPerformanceIcon.jsx +1 -21
- package/src/components/icons/PodServicesIcon.jsx +1 -21
- package/src/components/icons/PodSettingsIcon.jsx +75 -0
- package/src/components/icons/PodhealthIcon.jsx +1 -21
- package/src/components/icons/PreviewPRIcon.jsx +1 -21
- package/src/components/icons/PullRequestIcon.jsx +1 -21
- package/src/components/icons/PullRequestLoadingIcon.jsx +1 -21
- package/src/components/icons/RecentAppsIcon.jsx +1 -21
- package/src/components/icons/RemoveAppIcon.jsx +1 -21
- package/src/components/icons/RemoveIcon.jsx +1 -21
- package/src/components/icons/RequestOwnershipIcon.jsx +1 -21
- package/src/components/icons/RequestsIcon.jsx +1 -21
- package/src/components/icons/ResourceIcon.jsx +1 -21
- package/src/components/icons/RestartIcon.jsx +1 -21
- package/src/components/icons/RocketIcon.jsx +1 -21
- package/src/components/icons/RouteEditIcon.jsx +1 -21
- package/src/components/icons/RouteHistoryIcon.jsx +1 -21
- package/src/components/icons/RoutingIcon.jsx +1 -21
- package/src/components/icons/RunningAppIcon.jsx +1 -21
- package/src/components/icons/RunningIcon.jsx +1 -21
- package/src/components/icons/ScalerDetailsIcon.jsx +1 -21
- package/src/components/icons/ScalerHistoryIcon.jsx +1 -21
- package/src/components/icons/ScheduledJobSettingsIcon.jsx +1 -21
- package/src/components/icons/ScheduledJobsAppIcon.jsx +1 -21
- package/src/components/icons/ScheduledJobsCreateIcon.jsx +1 -21
- package/src/components/icons/ScheduledJobsDetailIcon.jsx +1 -21
- package/src/components/icons/ScheduledJobsIcon.jsx +1 -21
- package/src/components/icons/ScheduledJobsSuspendIcon.jsx +1 -21
- package/src/components/icons/SendIcon.jsx +1 -21
- package/src/components/icons/ServiceIcon.jsx +1 -21
- package/src/components/icons/ServicesWorkingIcon.jsx +1 -21
- package/src/components/icons/SlotIcon.jsx +1 -21
- package/src/components/icons/SocialDiscordIcon.jsx +1 -21
- package/src/components/icons/SocialGitHubIcon.jsx +1 -21
- package/src/components/icons/SocialGitLabIcon.jsx +1 -21
- package/src/components/icons/SocialLinkedInIcon.jsx +1 -21
- package/src/components/icons/SocialNPMIcon.jsx +1 -21
- package/src/components/icons/SocialXIcon.jsx +1 -21
- package/src/components/icons/SortDownArrowAndBarIcon.jsx +1 -21
- package/src/components/icons/SortDownIcon.jsx +1 -21
- package/src/components/icons/SortIcon.jsx +1 -21
- package/src/components/icons/SortUpArrowAndBarIcon.jsx +1 -21
- package/src/components/icons/SortUpIcon.jsx +1 -21
- package/src/components/icons/SortableIcon.jsx +1 -21
- package/src/components/icons/StackablesIcon.jsx +1 -21
- package/src/components/icons/StackablesPluginIcon.jsx +1 -21
- package/src/components/icons/StackablesTemplateIcon.jsx +1 -21
- package/src/components/icons/StopIcon.jsx +1 -21
- package/src/components/icons/SuspendIcon.jsx +1 -21
- package/src/components/icons/SwitchIcon.jsx +1 -21
- package/src/components/icons/TableIcon.jsx +1 -21
- package/src/components/icons/TaxonomyIcon.jsx +1 -21
- package/src/components/icons/TeamsIcon.jsx +1 -21
- package/src/components/icons/TerminalIcon.jsx +1 -21
- package/src/components/icons/TrashIcon.jsx +1 -21
- package/src/components/icons/TwoUsersIcon.jsx +1 -21
- package/src/components/icons/UpgradeIcon.jsx +1 -21
- package/src/components/icons/UploadFileIcon.jsx +1 -21
- package/src/components/icons/UserComputerIcon.jsx +1 -21
- package/src/components/icons/UserIcon.jsx +1 -21
- package/src/components/icons/UserRemoveIcon.jsx +1 -17
- package/src/components/icons/UserRoleIcon.jsx +1 -17
- package/src/components/icons/WorkspaceDynamicIcon.jsx +1 -21
- package/src/components/icons/WorkspaceEmptyIcon.jsx +1 -21
- package/src/components/icons/WorkspaceFailIcon.jsx +1 -21
- package/src/components/icons/WorkspaceGitHubIcon.jsx +1 -21
- package/src/components/icons/WorkspaceLoadingIcon.jsx +1 -21
- package/src/components/icons/WorkspaceReadyIcon.jsx +1 -21
- package/src/components/icons/WorkspaceStaticIcon.jsx +1 -21
- package/src/components/icons/ZoomInIcon.jsx +2 -22
- package/src/components/icons/ZoomOutIcon.jsx +1 -21
- package/src/components/icons/index.js +2 -0
- package/src/components/layouts/Layout.jsx +0 -12
- package/src/components/loaders/SpinnerCircular.jsx +1 -21
- package/src/components/logos/AdvancedLogo.jsx +0 -16
- package/src/components/logos/BasicLogo.jsx +0 -16
- package/src/components/logos/FreeLogo.jsx +0 -16
- package/src/components/logos/ProLogo.jsx +0 -16
- package/dist/assets/index-_8PDjo6Q.js +0 -49
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import React, { useState } from 'react'
|
|
2
|
-
import PropTypes from 'prop-types'
|
|
3
2
|
import styles from './LogoDropDown.module.css'
|
|
4
3
|
import PlatformaticIcon from './PlatformaticIcon'
|
|
5
4
|
import { MAIN_DARK_BLUE, SMALL, WHITE } from './constants'
|
|
@@ -60,31 +59,4 @@ function LogoDropDown ({
|
|
|
60
59
|
)
|
|
61
60
|
}
|
|
62
61
|
|
|
63
|
-
LogoDropDown.propTypes = {
|
|
64
|
-
/**
|
|
65
|
-
* width
|
|
66
|
-
*/
|
|
67
|
-
width: PropTypes.number,
|
|
68
|
-
/**
|
|
69
|
-
* height
|
|
70
|
-
*/
|
|
71
|
-
height: PropTypes.number,
|
|
72
|
-
/**
|
|
73
|
-
* itemSelected
|
|
74
|
-
*/
|
|
75
|
-
itemSelected: PropTypes.string,
|
|
76
|
-
/**
|
|
77
|
-
* items
|
|
78
|
-
*/
|
|
79
|
-
items: PropTypes.arrayOf(PropTypes.shape({
|
|
80
|
-
id: PropTypes.string.isRequired,
|
|
81
|
-
name: PropTypes.string,
|
|
82
|
-
handleClick: PropTypes.func
|
|
83
|
-
})),
|
|
84
|
-
/**
|
|
85
|
-
* onClickItemSelected
|
|
86
|
-
*/
|
|
87
|
-
onClickItemSelected: PropTypes.func
|
|
88
|
-
}
|
|
89
|
-
|
|
90
62
|
export default LogoDropDown
|
package/src/components/Modal.jsx
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import React, { useRef } from 'react'
|
|
2
|
-
import PropTypes from 'prop-types'
|
|
3
2
|
import ButtonFullRounded from './ButtonFullRounded'
|
|
4
3
|
import useEscapeKey from '../hooks/useEscapeKey'
|
|
5
4
|
import Logo from './Logo'
|
|
@@ -7,16 +6,13 @@ import Logos from './logos'
|
|
|
7
6
|
import styles from './Modal.module.css'
|
|
8
7
|
import commonStyles from './Common.module.css'
|
|
9
8
|
import {
|
|
10
|
-
MODAL_SIZES,
|
|
11
9
|
SMALL,
|
|
12
|
-
MODAL_LAYOUTS,
|
|
13
10
|
MODAL_COVER,
|
|
14
11
|
MODAL_POPUP,
|
|
15
12
|
MODAL_POPUP_V2,
|
|
16
13
|
MAIN_DARK_BLUE,
|
|
17
14
|
DULLS_BACKGROUND_COLOR,
|
|
18
15
|
LARGE,
|
|
19
|
-
PROFILES,
|
|
20
16
|
FREE,
|
|
21
17
|
BASIC,
|
|
22
18
|
MODAL_FULL_DARK,
|
|
@@ -262,59 +258,4 @@ function Modal ({
|
|
|
262
258
|
return whichModal
|
|
263
259
|
}
|
|
264
260
|
|
|
265
|
-
Modal.propTypes = {
|
|
266
|
-
/**
|
|
267
|
-
* children
|
|
268
|
-
*/
|
|
269
|
-
children: PropTypes.node,
|
|
270
|
-
/**
|
|
271
|
-
* childrenClassContainer
|
|
272
|
-
*/
|
|
273
|
-
childrenClassContainer: PropTypes.string,
|
|
274
|
-
/**
|
|
275
|
-
* setIsOpen: function from Parent for close/pen
|
|
276
|
-
*/
|
|
277
|
-
setIsOpen: PropTypes.func,
|
|
278
|
-
/**
|
|
279
|
-
* title: Title on top for small Modals (check MODAL_LAYOUTS)
|
|
280
|
-
*/
|
|
281
|
-
title: PropTypes.string,
|
|
282
|
-
/**
|
|
283
|
-
* layout: type of Layout of the modal
|
|
284
|
-
*/
|
|
285
|
-
layout: PropTypes.oneOf(MODAL_LAYOUTS),
|
|
286
|
-
/**
|
|
287
|
-
* Size: of the modal
|
|
288
|
-
*/
|
|
289
|
-
size: PropTypes.oneOf(MODAL_SIZES),
|
|
290
|
-
/**
|
|
291
|
-
* profile: deprecated
|
|
292
|
-
*/
|
|
293
|
-
profile: PropTypes.oneOf(PROFILES),
|
|
294
|
-
/**
|
|
295
|
-
* backgroundClassName: background of the full screen modal
|
|
296
|
-
*/
|
|
297
|
-
backgroundClassName: PropTypes.string,
|
|
298
|
-
/**
|
|
299
|
-
* titleClassName: classes of the title
|
|
300
|
-
*/
|
|
301
|
-
titleClassName: PropTypes.string,
|
|
302
|
-
/**
|
|
303
|
-
* modalCloseClassName: classes for the closing icon
|
|
304
|
-
*/
|
|
305
|
-
modalCloseClassName: PropTypes.string,
|
|
306
|
-
/**
|
|
307
|
-
* permanent: modal could be closed only with Esc, X or Cancel
|
|
308
|
-
*/
|
|
309
|
-
permanent: PropTypes.bool,
|
|
310
|
-
/**
|
|
311
|
-
* showCloseButtonOnTop: show button on X
|
|
312
|
-
*/
|
|
313
|
-
showCloseButtonOnTop: PropTypes.bool,
|
|
314
|
-
/**
|
|
315
|
-
* additionalModalClassName: show button on X
|
|
316
|
-
*/
|
|
317
|
-
additionalModalClassName: PropTypes.string
|
|
318
|
-
}
|
|
319
|
-
|
|
320
261
|
export default Modal
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import React, { useState, useEffect } from 'react'
|
|
2
|
-
import PropTypes from 'prop-types'
|
|
3
2
|
import useEscapeKey from '../hooks/useEscapeKey'
|
|
4
3
|
import styles from './ModalDirectional.module.css'
|
|
5
4
|
import {
|
|
@@ -55,31 +54,4 @@ function ModalDirectional ({
|
|
|
55
54
|
)
|
|
56
55
|
}
|
|
57
56
|
|
|
58
|
-
ModalDirectional.propTypes = {
|
|
59
|
-
/**
|
|
60
|
-
* children
|
|
61
|
-
*/
|
|
62
|
-
children: PropTypes.node,
|
|
63
|
-
/**
|
|
64
|
-
* setIsOpen
|
|
65
|
-
*/
|
|
66
|
-
setIsOpen: PropTypes.func,
|
|
67
|
-
/**
|
|
68
|
-
* smallLayout
|
|
69
|
-
*/
|
|
70
|
-
smallLayout: PropTypes.bool,
|
|
71
|
-
/**
|
|
72
|
-
* classNameModalLefty
|
|
73
|
-
*/
|
|
74
|
-
classNameModalLefty: PropTypes.string,
|
|
75
|
-
/**
|
|
76
|
-
* permanent: modal could be closed only with Esc, X or Cancel
|
|
77
|
-
*/
|
|
78
|
-
permanent: PropTypes.bool,
|
|
79
|
-
/**
|
|
80
|
-
* blurClassName: override
|
|
81
|
-
*/
|
|
82
|
-
blurClassName: PropTypes.string
|
|
83
|
-
}
|
|
84
|
-
|
|
85
57
|
export default ModalDirectional
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import React from 'react'
|
|
2
|
-
import
|
|
2
|
+
import styles from './ModalStepsForward.module.css'
|
|
3
3
|
import ButtonFullRounded from './ButtonFullRounded'
|
|
4
4
|
import useEscapeKey from '../hooks/useEscapeKey'
|
|
5
5
|
import Logo from './Logo'
|
|
6
6
|
import HorizontalSeparator from './HorizontalSeparator'
|
|
7
|
-
import styles from './ModalStepsForward.module.css'
|
|
8
7
|
import commonStyles from './Common.module.css'
|
|
9
8
|
import {
|
|
10
9
|
MAIN_DARK_BLUE,
|
|
@@ -55,23 +54,4 @@ function ModalStepsForward ({
|
|
|
55
54
|
)
|
|
56
55
|
}
|
|
57
56
|
|
|
58
|
-
ModalStepsForward.propTypes = {
|
|
59
|
-
/**
|
|
60
|
-
* setIsOpen
|
|
61
|
-
*/
|
|
62
|
-
setIsOpen: PropTypes.func,
|
|
63
|
-
/**
|
|
64
|
-
* right
|
|
65
|
-
*/
|
|
66
|
-
right: PropTypes.node,
|
|
67
|
-
/**
|
|
68
|
-
* stepper
|
|
69
|
-
*/
|
|
70
|
-
stepper: PropTypes.node,
|
|
71
|
-
/**
|
|
72
|
-
* left
|
|
73
|
-
*/
|
|
74
|
-
left: PropTypes.node
|
|
75
|
-
}
|
|
76
|
-
|
|
77
57
|
export default ModalStepsForward
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import React, { useState } from 'react'
|
|
2
|
-
import PropTypes from 'prop-types'
|
|
3
2
|
import Icons from './icons'
|
|
4
3
|
import styles from './PlatformaticIcon.module.css'
|
|
5
|
-
import {
|
|
4
|
+
import { MAIN_GREEN, SMALL } from './constants'
|
|
6
5
|
|
|
7
6
|
function PlatformaticIcon ({
|
|
8
7
|
iconName = '',
|
|
@@ -50,43 +49,4 @@ function PlatformaticIcon ({
|
|
|
50
49
|
)
|
|
51
50
|
}
|
|
52
51
|
|
|
53
|
-
PlatformaticIcon.propTypes = {
|
|
54
|
-
/**
|
|
55
|
-
* iconName
|
|
56
|
-
*/
|
|
57
|
-
iconName: PropTypes.string.isRequired,
|
|
58
|
-
/**
|
|
59
|
-
* color
|
|
60
|
-
*/
|
|
61
|
-
color: PropTypes.oneOf(COLORS_ICON),
|
|
62
|
-
/**
|
|
63
|
-
* size
|
|
64
|
-
*/
|
|
65
|
-
size: PropTypes.oneOf(SIZES),
|
|
66
|
-
/**
|
|
67
|
-
* onClick
|
|
68
|
-
*/
|
|
69
|
-
onClick: PropTypes.func,
|
|
70
|
-
/**
|
|
71
|
-
* classes
|
|
72
|
-
*/
|
|
73
|
-
classes: PropTypes.string,
|
|
74
|
-
/**
|
|
75
|
-
* tip
|
|
76
|
-
*/
|
|
77
|
-
tip: PropTypes.string,
|
|
78
|
-
/**
|
|
79
|
-
* disabled
|
|
80
|
-
*/
|
|
81
|
-
disabled: PropTypes.bool,
|
|
82
|
-
/**
|
|
83
|
-
* inactive
|
|
84
|
-
*/
|
|
85
|
-
inactive: PropTypes.bool,
|
|
86
|
-
/**
|
|
87
|
-
* handleOverInternally
|
|
88
|
-
*/
|
|
89
|
-
internalOverHandling: PropTypes.bool
|
|
90
|
-
}
|
|
91
|
-
|
|
92
52
|
export default PlatformaticIcon
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import React, { useRef, useState } from 'react'
|
|
2
|
-
import PropTypes from 'prop-types'
|
|
3
2
|
import commonStyles from './Common.module.css'
|
|
4
3
|
import styles from './SearchBarV2.module.css'
|
|
5
4
|
import PlatformaticIcon from './PlatformaticIcon'
|
|
6
|
-
import { RICH_BLACK, SMALL,
|
|
5
|
+
import { RICH_BLACK, SMALL, WHITE } from './constants'
|
|
7
6
|
function SearchBarV2 ({
|
|
8
7
|
color = WHITE,
|
|
9
8
|
backgroundColor = RICH_BLACK,
|
|
@@ -90,47 +89,4 @@ function SearchBarV2 ({
|
|
|
90
89
|
)
|
|
91
90
|
}
|
|
92
91
|
|
|
93
|
-
SearchBarV2.propTypes = {
|
|
94
|
-
/**
|
|
95
|
-
* onSubmit
|
|
96
|
-
*/
|
|
97
|
-
onSubmit: PropTypes.func,
|
|
98
|
-
/**
|
|
99
|
-
* onSubmit
|
|
100
|
-
*/
|
|
101
|
-
onChange: PropTypes.func,
|
|
102
|
-
/**
|
|
103
|
-
* onSubmit
|
|
104
|
-
*/
|
|
105
|
-
onClear: PropTypes.func,
|
|
106
|
-
/**
|
|
107
|
-
* color
|
|
108
|
-
*/
|
|
109
|
-
color: PropTypes.oneOf([WHITE, RICH_BLACK]),
|
|
110
|
-
/**
|
|
111
|
-
* backgroundColor
|
|
112
|
-
*/
|
|
113
|
-
backgroundColor: PropTypes.oneOf([WHITE, RICH_BLACK, TRANSPARENT]),
|
|
114
|
-
/**
|
|
115
|
-
* placeholder
|
|
116
|
-
*/
|
|
117
|
-
placeholder: PropTypes.string,
|
|
118
|
-
/**
|
|
119
|
-
* dataAttrName
|
|
120
|
-
*/
|
|
121
|
-
dataAttrName: PropTypes.string,
|
|
122
|
-
/**
|
|
123
|
-
* dataAttrValue
|
|
124
|
-
*/
|
|
125
|
-
dataAttrValue: PropTypes.string,
|
|
126
|
-
/**
|
|
127
|
-
* inputTextClassName
|
|
128
|
-
*/
|
|
129
|
-
inputTextClassName: PropTypes.string,
|
|
130
|
-
/**
|
|
131
|
-
* paddingClass
|
|
132
|
-
*/
|
|
133
|
-
paddingClass: PropTypes.string
|
|
134
|
-
}
|
|
135
|
-
|
|
136
92
|
export default SearchBarV2
|
|
@@ -7,7 +7,6 @@ import styles from './Sidebar.module.css'
|
|
|
7
7
|
import ReactTooltip from 'react-tooltip'
|
|
8
8
|
import HorizontalSeparator from './HorizontalSeparator'
|
|
9
9
|
import PlatformaticIcon from './PlatformaticIcon'
|
|
10
|
-
import PropTypes from 'prop-types'
|
|
11
10
|
import { DULLS_BACKGROUND_COLOR, MEDIUM, WHITE } from './constants'
|
|
12
11
|
|
|
13
12
|
function Sidebar ({
|
|
@@ -137,56 +136,4 @@ function Sidebar ({
|
|
|
137
136
|
)
|
|
138
137
|
}
|
|
139
138
|
|
|
140
|
-
Sidebar.propTypes = {
|
|
141
|
-
/**
|
|
142
|
-
* title
|
|
143
|
-
*/
|
|
144
|
-
title: PropTypes.string,
|
|
145
|
-
/**
|
|
146
|
-
* title
|
|
147
|
-
*/
|
|
148
|
-
labelButtonSettings: PropTypes.string,
|
|
149
|
-
/**
|
|
150
|
-
* defaultSelected
|
|
151
|
-
*/
|
|
152
|
-
defaultSelected: PropTypes.string,
|
|
153
|
-
/**
|
|
154
|
-
* addTitle
|
|
155
|
-
*/
|
|
156
|
-
addTitle: PropTypes.string,
|
|
157
|
-
/**
|
|
158
|
-
* items: array with keys
|
|
159
|
-
* id: id of the worspacedSeleted
|
|
160
|
-
* title: name to display
|
|
161
|
-
* subtitle: secondary title
|
|
162
|
-
* icon: what Icon
|
|
163
|
-
*/
|
|
164
|
-
items: PropTypes.arrayOf(PropTypes.shape({
|
|
165
|
-
id: PropTypes.string.isRequired,
|
|
166
|
-
title: PropTypes.string,
|
|
167
|
-
subtitle: PropTypes.string,
|
|
168
|
-
iconName: PropTypes.string
|
|
169
|
-
})),
|
|
170
|
-
/**
|
|
171
|
-
* Apply onClickItemSelectedParent
|
|
172
|
-
*/
|
|
173
|
-
onClickItemSelectedParent: PropTypes.func,
|
|
174
|
-
/**
|
|
175
|
-
* Apply onClickAdd: function called clicking on plus button
|
|
176
|
-
*/
|
|
177
|
-
onClickAdd: PropTypes.func,
|
|
178
|
-
/**
|
|
179
|
-
* Apply onClickSettings: function called clicking on Settings button
|
|
180
|
-
*/
|
|
181
|
-
onClickSettings: PropTypes.func,
|
|
182
|
-
/**
|
|
183
|
-
* disableClickAdd
|
|
184
|
-
*/
|
|
185
|
-
disableClickAdd: PropTypes.bool,
|
|
186
|
-
/**
|
|
187
|
-
* disableClickSettings
|
|
188
|
-
*/
|
|
189
|
-
disableClickSettings: PropTypes.bool
|
|
190
|
-
}
|
|
191
|
-
|
|
192
139
|
export default Sidebar
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import React from 'react'
|
|
2
|
-
import PropTypes from 'prop-types'
|
|
3
2
|
import PlatformaticIcon from './PlatformaticIcon'
|
|
4
|
-
import {
|
|
3
|
+
import { TINY, WHITE } from './constants'
|
|
5
4
|
|
|
6
5
|
function Status ({
|
|
7
6
|
color = WHITE,
|
|
@@ -17,20 +16,4 @@ function Status ({
|
|
|
17
16
|
)
|
|
18
17
|
}
|
|
19
18
|
|
|
20
|
-
Status.propTypes = {
|
|
21
|
-
/**
|
|
22
|
-
* color
|
|
23
|
-
*/
|
|
24
|
-
color: PropTypes.oneOf(COLORS_ICON),
|
|
25
|
-
/**
|
|
26
|
-
* status
|
|
27
|
-
*/
|
|
28
|
-
status: PropTypes.string,
|
|
29
|
-
/**
|
|
30
|
-
* Size
|
|
31
|
-
*/
|
|
32
|
-
size: PropTypes.oneOf(SIZES)
|
|
33
|
-
|
|
34
|
-
}
|
|
35
|
-
|
|
36
19
|
export default Status
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import React, { useEffect, useState } from 'react'
|
|
2
|
-
import PropTypes from 'prop-types'
|
|
3
2
|
import styles from './TabbedWindow.module.css'
|
|
4
|
-
import {
|
|
3
|
+
import { WHITE } from './constants'
|
|
5
4
|
|
|
6
5
|
function TabbedWindow ({
|
|
7
6
|
tabs = [],
|
|
@@ -53,35 +52,4 @@ function TabbedWindow ({
|
|
|
53
52
|
)
|
|
54
53
|
}
|
|
55
54
|
|
|
56
|
-
TabbedWindow.propTypes = {
|
|
57
|
-
/**
|
|
58
|
-
* tabs
|
|
59
|
-
*/
|
|
60
|
-
tabs: PropTypes.array,
|
|
61
|
-
/**
|
|
62
|
-
* keySelected
|
|
63
|
-
*/
|
|
64
|
-
keySelected: PropTypes.string,
|
|
65
|
-
/**
|
|
66
|
-
* callbackSelected
|
|
67
|
-
*/
|
|
68
|
-
callbackSelected: PropTypes.func,
|
|
69
|
-
/**
|
|
70
|
-
* tabContainerClassName
|
|
71
|
-
*/
|
|
72
|
-
tabContainerClassName: PropTypes.string,
|
|
73
|
-
/**
|
|
74
|
-
* tabContentClassName
|
|
75
|
-
*/
|
|
76
|
-
tabContentClassName: PropTypes.string,
|
|
77
|
-
/**
|
|
78
|
-
* textClassName
|
|
79
|
-
*/
|
|
80
|
-
textClassName: PropTypes.string,
|
|
81
|
-
/**
|
|
82
|
-
* horizontalSeparatorColor
|
|
83
|
-
*/
|
|
84
|
-
horizontalSeparatorColor: PropTypes.oneOf(COLORS_BUTTON)
|
|
85
|
-
}
|
|
86
|
-
|
|
87
55
|
export default TabbedWindow
|
package/src/components/Tag.jsx
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import React from 'react'
|
|
2
|
-
import PropTypes from 'prop-types'
|
|
3
2
|
import commonStyles from './Common.module.css'
|
|
4
3
|
import styles from './Tag.module.css'
|
|
5
|
-
import {
|
|
4
|
+
import { OPACITY_100, WHITE } from './constants'
|
|
6
5
|
import PlatformaticIcon from './PlatformaticIcon'
|
|
7
6
|
|
|
8
7
|
function Tag ({
|
|
@@ -37,47 +36,5 @@ function Tag ({
|
|
|
37
36
|
</div>
|
|
38
37
|
)
|
|
39
38
|
}
|
|
40
|
-
Tag.propTypes = {
|
|
41
|
-
/**
|
|
42
|
-
* color
|
|
43
|
-
*/
|
|
44
|
-
color: PropTypes.oneOf(COLORS_BUTTON),
|
|
45
|
-
/**
|
|
46
|
-
* text
|
|
47
|
-
*/
|
|
48
|
-
text: PropTypes.string,
|
|
49
|
-
/**
|
|
50
|
-
* textClassName
|
|
51
|
-
*/
|
|
52
|
-
textClassName: PropTypes.string,
|
|
53
|
-
/**
|
|
54
|
-
* backgroundColor
|
|
55
|
-
*/
|
|
56
|
-
backgroundColor: PropTypes.oneOf(COLORS_BUTTON),
|
|
57
|
-
/**
|
|
58
|
-
* bordered
|
|
59
|
-
*/
|
|
60
|
-
bordered: PropTypes.bool,
|
|
61
|
-
/**
|
|
62
|
-
* opaque
|
|
63
|
-
*/
|
|
64
|
-
opaque: PropTypes.oneOf([OPACITIES]),
|
|
65
|
-
/**
|
|
66
|
-
* fullRounded
|
|
67
|
-
*/
|
|
68
|
-
fullRounded: PropTypes.bool,
|
|
69
|
-
/**
|
|
70
|
-
* platformaticIcon
|
|
71
|
-
*/
|
|
72
|
-
platformaticIcon: PropTypes.shape({
|
|
73
|
-
iconName: PropTypes.string,
|
|
74
|
-
color: PropTypes.oneOf(COLORS_BUTTON),
|
|
75
|
-
size: PropTypes.oneOf(SIZES)
|
|
76
|
-
}),
|
|
77
|
-
/**
|
|
78
|
-
* paddingClass
|
|
79
|
-
*/
|
|
80
|
-
paddingClass: PropTypes.string
|
|
81
|
-
}
|
|
82
39
|
|
|
83
40
|
export default Tag
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import React from 'react'
|
|
2
|
-
import
|
|
3
|
-
import { FONT_BASE, FONT_XS, MAIN_DARK_BLUE, WHITE } from './constants'
|
|
2
|
+
import { FONT_BASE, WHITE } from './constants'
|
|
4
3
|
import commonStyles from './Common.module.css'
|
|
5
4
|
import styles from './TextWithLabel.module.css'
|
|
6
5
|
|
|
@@ -23,27 +22,4 @@ function TextWithLabel (props) {
|
|
|
23
22
|
)
|
|
24
23
|
}
|
|
25
24
|
|
|
26
|
-
TextWithLabel.propTypes = {
|
|
27
|
-
/**
|
|
28
|
-
* label
|
|
29
|
-
*/
|
|
30
|
-
label: PropTypes.string,
|
|
31
|
-
/**
|
|
32
|
-
* text
|
|
33
|
-
*/
|
|
34
|
-
text: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
|
|
35
|
-
/**
|
|
36
|
-
* children
|
|
37
|
-
*/
|
|
38
|
-
children: PropTypes.node,
|
|
39
|
-
/**
|
|
40
|
-
* white
|
|
41
|
-
*/
|
|
42
|
-
color: PropTypes.oneOf([WHITE, MAIN_DARK_BLUE]),
|
|
43
|
-
/**
|
|
44
|
-
* Font Size
|
|
45
|
-
*/
|
|
46
|
-
fontSize: PropTypes.oneOf([FONT_BASE, FONT_XS])
|
|
47
|
-
}
|
|
48
|
-
|
|
49
25
|
export default TextWithLabel
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import
|
|
1
|
+
import React, { useEffect, useRef, useState } from 'react'
|
|
2
2
|
import styles from './Tooltip.module.css'
|
|
3
|
-
import {
|
|
4
|
-
import { DIRECTIONS, DIRECTION_BOTTOM, DIRECTION_LEFT, DIRECTION_RIGHT, DIRECTION_TOP, POSITIONS, POSITION_CENTER, POSITION_END, POSITION_START } from './constants'
|
|
3
|
+
import { DIRECTION_BOTTOM, DIRECTION_LEFT, DIRECTION_RIGHT, DIRECTION_TOP, POSITION_CENTER, POSITION_END, POSITION_START } from './constants'
|
|
5
4
|
|
|
6
5
|
function Tooltip ({
|
|
7
6
|
immediateActive = true,
|
|
@@ -115,47 +114,4 @@ function Tooltip ({
|
|
|
115
114
|
)
|
|
116
115
|
}
|
|
117
116
|
|
|
118
|
-
Tooltip.propTypes = {
|
|
119
|
-
/**
|
|
120
|
-
* direction
|
|
121
|
-
*/
|
|
122
|
-
direction: PropTypes.oneOf(DIRECTIONS),
|
|
123
|
-
/**
|
|
124
|
-
* content
|
|
125
|
-
*/
|
|
126
|
-
content: PropTypes.node,
|
|
127
|
-
/**
|
|
128
|
-
* children
|
|
129
|
-
*/
|
|
130
|
-
children: PropTypes.node,
|
|
131
|
-
/**
|
|
132
|
-
* tooltipClassName
|
|
133
|
-
*/
|
|
134
|
-
tooltipClassName: PropTypes.string,
|
|
135
|
-
/**
|
|
136
|
-
* delay
|
|
137
|
-
*/
|
|
138
|
-
delay: PropTypes.number,
|
|
139
|
-
/**
|
|
140
|
-
* visible
|
|
141
|
-
*/
|
|
142
|
-
visible: PropTypes.bool,
|
|
143
|
-
/**
|
|
144
|
-
* immediateActive
|
|
145
|
-
*/
|
|
146
|
-
immediateActive: PropTypes.bool,
|
|
147
|
-
/**
|
|
148
|
-
* activeDependsOnVisible
|
|
149
|
-
*/
|
|
150
|
-
activeDependsOnVisible: PropTypes.bool,
|
|
151
|
-
/**
|
|
152
|
-
* offset
|
|
153
|
-
*/
|
|
154
|
-
offset: PropTypes.number,
|
|
155
|
-
/**
|
|
156
|
-
* position
|
|
157
|
-
*/
|
|
158
|
-
position: PropTypes.oneOf(POSITIONS)
|
|
159
|
-
}
|
|
160
|
-
|
|
161
117
|
export default Tooltip
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import PropTypes from 'prop-types'
|
|
2
1
|
import styles from './TooltipAbsolute.module.css'
|
|
3
2
|
import { useEffect, useState } from 'react'
|
|
4
|
-
import {
|
|
3
|
+
import { DIRECTION_LEFT, DIRECTION_BOTTOM, DIRECTION_TOP, DIRECTION_RIGHT, POSITION_START } from './constants'
|
|
5
4
|
|
|
6
5
|
const TooltipAbsolute = ({
|
|
7
6
|
direction = DIRECTION_TOP,
|
|
@@ -69,43 +68,4 @@ const TooltipAbsolute = ({
|
|
|
69
68
|
)
|
|
70
69
|
}
|
|
71
70
|
|
|
72
|
-
TooltipAbsolute.propTypes = {
|
|
73
|
-
/**
|
|
74
|
-
* direction
|
|
75
|
-
*/
|
|
76
|
-
direction: PropTypes.oneOf(DIRECTIONS),
|
|
77
|
-
/**
|
|
78
|
-
* content
|
|
79
|
-
*/
|
|
80
|
-
content: PropTypes.node,
|
|
81
|
-
/**
|
|
82
|
-
* children
|
|
83
|
-
*/
|
|
84
|
-
children: PropTypes.node,
|
|
85
|
-
/**
|
|
86
|
-
* tooltipClassName
|
|
87
|
-
*/
|
|
88
|
-
tooltipClassName: PropTypes.string,
|
|
89
|
-
/**
|
|
90
|
-
* delay
|
|
91
|
-
*/
|
|
92
|
-
delay: PropTypes.number,
|
|
93
|
-
/**
|
|
94
|
-
* offset
|
|
95
|
-
*/
|
|
96
|
-
offset: PropTypes.number,
|
|
97
|
-
/**
|
|
98
|
-
* position
|
|
99
|
-
*/
|
|
100
|
-
position: PropTypes.string,
|
|
101
|
-
/**
|
|
102
|
-
* visible
|
|
103
|
-
*/
|
|
104
|
-
visible: PropTypes.bool,
|
|
105
|
-
/**
|
|
106
|
-
* activeDependsOnVisible
|
|
107
|
-
*/
|
|
108
|
-
activeDependsOnVisible: PropTypes.bool
|
|
109
|
-
}
|
|
110
|
-
|
|
111
71
|
export default TooltipAbsolute
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import React from 'react'
|
|
2
|
-
import
|
|
3
|
-
import { DARK_GREEN, MAIN_DARK_BLUE, OPACITY_10, OPACITY_20, OPACITY_30, OPACITY_60, OPACITY_100, WHITE } from './constants'
|
|
2
|
+
import { DARK_GREEN, OPACITY_100 } from './constants'
|
|
4
3
|
import commonStyles from './Common.module.css'
|
|
5
4
|
import styles from './VerticalSeparator.module.css'
|
|
6
5
|
|
|
@@ -15,24 +14,4 @@ function VerticalSeparator ({
|
|
|
15
14
|
return <div className={className} />
|
|
16
15
|
}
|
|
17
16
|
|
|
18
|
-
VerticalSeparator.propTypes = {
|
|
19
|
-
/**
|
|
20
|
-
* color
|
|
21
|
-
*/
|
|
22
|
-
color: PropTypes.oneOf([DARK_GREEN, MAIN_DARK_BLUE, WHITE]),
|
|
23
|
-
/**
|
|
24
|
-
* backgroundColorOpacity
|
|
25
|
-
*/
|
|
26
|
-
backgroundColorOpacity: PropTypes.oneOf([OPACITY_10,
|
|
27
|
-
OPACITY_20,
|
|
28
|
-
OPACITY_30,
|
|
29
|
-
OPACITY_60,
|
|
30
|
-
OPACITY_100]),
|
|
31
|
-
/**
|
|
32
|
-
* backgroundColorOpacity
|
|
33
|
-
*/
|
|
34
|
-
classes: PropTypes.string
|
|
35
|
-
|
|
36
|
-
}
|
|
37
|
-
|
|
38
17
|
export default VerticalSeparator
|