@platformatic/ui-components 0.15.5 → 0.17.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-BeInQDZN.js +49 -0
- package/dist/assets/{index-DMinbJlj.css → index-DE70C3KG.css} +1 -1
- package/dist/index.html +2 -2
- package/dist/main.css +60 -4
- package/package.json +2 -1
- package/src/components/ArcMetric.jsx +145 -0
- package/src/components/ArcMetric.module.css +31 -0
- 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/MetricInfoBox.jsx +80 -0
- package/src/components/MetricInfoBox.module.css +42 -0
- 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 +3 -47
- package/src/components/TooltipAbsolute.jsx +1 -41
- package/src/components/TrendLine.jsx +146 -0
- 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 +1 -21
- 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/TrendDownIcon.jsx +41 -0
- package/src/components/icons/TrendUpIcon.jsx +43 -0
- 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 +4 -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/src/stories/ArcMetric.stories.jsx +17 -0
- package/src/stories/MetricInfoBox.stories.jsx +39 -0
- package/src/stories/TrendLine.stories.jsx +20 -0
- package/dist/assets/index-4liAiWzS.js +0 -49
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import React, { useState, useEffect, useRef } from 'react'
|
|
2
|
-
import PropTypes from 'prop-types'
|
|
3
2
|
import styles from './Select.module.css'
|
|
4
3
|
import commonStyles from '../Common.module.css'
|
|
5
|
-
import { MAIN_DARK_BLUE, MAIN_GREEN,
|
|
4
|
+
import { MAIN_DARK_BLUE, MAIN_GREEN, SMALL, WHITE } from '../constants'
|
|
6
5
|
import PlatformaticIcon from '../PlatformaticIcon'
|
|
7
6
|
import Icons from '../icons'
|
|
8
7
|
|
|
@@ -201,112 +200,4 @@ function Select ({
|
|
|
201
200
|
)
|
|
202
201
|
}
|
|
203
202
|
|
|
204
|
-
Select.propTypes = {
|
|
205
|
-
/**
|
|
206
|
-
* defaultContainerClassName
|
|
207
|
-
*/
|
|
208
|
-
defaultContainerClassName: PropTypes.string,
|
|
209
|
-
/**
|
|
210
|
-
* placeholder
|
|
211
|
-
*/
|
|
212
|
-
placeholder: PropTypes.string,
|
|
213
|
-
/**
|
|
214
|
-
* name
|
|
215
|
-
*/
|
|
216
|
-
name: PropTypes.oneOfType([
|
|
217
|
-
PropTypes.string,
|
|
218
|
-
PropTypes.number
|
|
219
|
-
]),
|
|
220
|
-
/**
|
|
221
|
-
* value
|
|
222
|
-
*/
|
|
223
|
-
value: PropTypes.string,
|
|
224
|
-
/**
|
|
225
|
-
* options
|
|
226
|
-
*/
|
|
227
|
-
options: PropTypes.arrayOf(PropTypes.shape({
|
|
228
|
-
label: PropTypes.string,
|
|
229
|
-
value: PropTypes.oneOfType([
|
|
230
|
-
PropTypes.string,
|
|
231
|
-
PropTypes.number,
|
|
232
|
-
PropTypes.func
|
|
233
|
-
]),
|
|
234
|
-
iconName: PropTypes.string,
|
|
235
|
-
iconSize: PropTypes.string,
|
|
236
|
-
iconColor: PropTypes.string,
|
|
237
|
-
notSelectable: PropTypes.bool,
|
|
238
|
-
notFilterable: PropTypes.bool,
|
|
239
|
-
onClick: PropTypes.func,
|
|
240
|
-
descriptionValue: PropTypes.string
|
|
241
|
-
})),
|
|
242
|
-
/**
|
|
243
|
-
* defaultOptionsClassName
|
|
244
|
-
*/
|
|
245
|
-
defaultOptionsClassName: PropTypes.string,
|
|
246
|
-
/**
|
|
247
|
-
* optionsBorderedBottom
|
|
248
|
-
*/
|
|
249
|
-
optionsBorderedBottom: PropTypes.bool,
|
|
250
|
-
/**
|
|
251
|
-
* color of border
|
|
252
|
-
*/
|
|
253
|
-
borderColor: PropTypes.oneOf([MAIN_GREEN, MAIN_DARK_BLUE, WHITE]),
|
|
254
|
-
/**
|
|
255
|
-
* color of border UL
|
|
256
|
-
*/
|
|
257
|
-
borderListColor: PropTypes.oneOf([MAIN_GREEN, MAIN_DARK_BLUE, WHITE]),
|
|
258
|
-
/**
|
|
259
|
-
* onSelect
|
|
260
|
-
*/
|
|
261
|
-
onSelect: PropTypes.func,
|
|
262
|
-
/**
|
|
263
|
-
* Disabled
|
|
264
|
-
*/
|
|
265
|
-
disabled: PropTypes.bool,
|
|
266
|
-
/**
|
|
267
|
-
* mainColor
|
|
268
|
-
*/
|
|
269
|
-
mainColor: PropTypes.oneOf([MAIN_DARK_BLUE, WHITE]),
|
|
270
|
-
/**
|
|
271
|
-
* dataAttrName
|
|
272
|
-
*/
|
|
273
|
-
dataAttrName: PropTypes.string,
|
|
274
|
-
/**
|
|
275
|
-
* dataAttrValue
|
|
276
|
-
*/
|
|
277
|
-
dataAttrValue: PropTypes.string,
|
|
278
|
-
/**
|
|
279
|
-
* backgroundColor
|
|
280
|
-
*/
|
|
281
|
-
backgroundColor: PropTypes.oneOf([MAIN_DARK_BLUE, WHITE, RICH_BLACK]),
|
|
282
|
-
/**
|
|
283
|
-
* inputTextClassName
|
|
284
|
-
*/
|
|
285
|
-
inputTextClassName: PropTypes.string,
|
|
286
|
-
/**
|
|
287
|
-
* errorMessage
|
|
288
|
-
*/
|
|
289
|
-
errorMessage: PropTypes.string,
|
|
290
|
-
/**
|
|
291
|
-
* errorMessageTextClassName
|
|
292
|
-
*/
|
|
293
|
-
errorMessageTextClassName: PropTypes.string,
|
|
294
|
-
/**
|
|
295
|
-
* beforeIcon: PlatformaticIcon props
|
|
296
|
-
*/
|
|
297
|
-
beforeIcon: PropTypes.shape({
|
|
298
|
-
iconName: PropTypes.string,
|
|
299
|
-
color: PropTypes.string,
|
|
300
|
-
size: PropTypes.oneOf(SIZES)
|
|
301
|
-
}),
|
|
302
|
-
/**
|
|
303
|
-
* paddingClass
|
|
304
|
-
*/
|
|
305
|
-
paddingClass: PropTypes.string,
|
|
306
|
-
/**
|
|
307
|
-
* handleClickOutside
|
|
308
|
-
*/
|
|
309
|
-
handleClickOutside: PropTypes.bool
|
|
310
|
-
}
|
|
311
|
-
|
|
312
203
|
export default Select
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import React, { useState, useEffect, useRef } from 'react'
|
|
2
|
-
import PropTypes from 'prop-types'
|
|
3
2
|
import styles from './SelectWithInput.module.css'
|
|
4
3
|
import commonStyles from '../Common.module.css'
|
|
5
|
-
import { MAIN_DARK_BLUE, MAIN_GREEN,
|
|
4
|
+
import { MAIN_DARK_BLUE, MAIN_GREEN, SMALL, WHITE } from '../constants'
|
|
6
5
|
import PlatformaticIcon from '../PlatformaticIcon'
|
|
7
6
|
|
|
8
7
|
function SelectWithInput ({
|
|
@@ -200,113 +199,4 @@ function SelectWithInput ({
|
|
|
200
199
|
)
|
|
201
200
|
}
|
|
202
201
|
|
|
203
|
-
SelectWithInput.propTypes = {
|
|
204
|
-
/**
|
|
205
|
-
* defaultContainerClassName
|
|
206
|
-
*/
|
|
207
|
-
defaultContainerClassName: PropTypes.string,
|
|
208
|
-
/**
|
|
209
|
-
* placeholder
|
|
210
|
-
*/
|
|
211
|
-
placeholder: PropTypes.string,
|
|
212
|
-
/**
|
|
213
|
-
* name
|
|
214
|
-
*/
|
|
215
|
-
name: PropTypes.oneOfType([
|
|
216
|
-
PropTypes.string,
|
|
217
|
-
PropTypes.number
|
|
218
|
-
]),
|
|
219
|
-
/**
|
|
220
|
-
* value
|
|
221
|
-
*/
|
|
222
|
-
value: PropTypes.string,
|
|
223
|
-
/**
|
|
224
|
-
* options
|
|
225
|
-
*/
|
|
226
|
-
options: PropTypes.arrayOf(PropTypes.shape({
|
|
227
|
-
label: PropTypes.string,
|
|
228
|
-
value: PropTypes.oneOfType([
|
|
229
|
-
PropTypes.string,
|
|
230
|
-
PropTypes.number
|
|
231
|
-
]),
|
|
232
|
-
iconName: PropTypes.string,
|
|
233
|
-
iconSize: PropTypes.string,
|
|
234
|
-
iconColor: PropTypes.string,
|
|
235
|
-
notSelectable: PropTypes.bool,
|
|
236
|
-
notFilterable: PropTypes.bool,
|
|
237
|
-
onClick: PropTypes.func,
|
|
238
|
-
descriptionValue: PropTypes.string
|
|
239
|
-
})),
|
|
240
|
-
/**
|
|
241
|
-
* defaultOptionsClassName
|
|
242
|
-
*/
|
|
243
|
-
defaultOptionsClassName: PropTypes.string,
|
|
244
|
-
/**
|
|
245
|
-
* optionsBorderedBottom
|
|
246
|
-
*/
|
|
247
|
-
optionsBorderedBottom: PropTypes.bool,
|
|
248
|
-
/**
|
|
249
|
-
* color of border
|
|
250
|
-
*/
|
|
251
|
-
borderColor: PropTypes.oneOf([MAIN_GREEN, MAIN_DARK_BLUE, WHITE]),
|
|
252
|
-
/**
|
|
253
|
-
* color of border UL
|
|
254
|
-
*/
|
|
255
|
-
borderListColor: PropTypes.oneOf([MAIN_GREEN, MAIN_DARK_BLUE, WHITE]),
|
|
256
|
-
/**
|
|
257
|
-
* onChange
|
|
258
|
-
*/
|
|
259
|
-
onChange: PropTypes.func,
|
|
260
|
-
/**
|
|
261
|
-
* onSelect
|
|
262
|
-
*/
|
|
263
|
-
onSelect: PropTypes.func,
|
|
264
|
-
/**
|
|
265
|
-
* onClear
|
|
266
|
-
*/
|
|
267
|
-
onClear: PropTypes.func,
|
|
268
|
-
/**
|
|
269
|
-
* Disabled
|
|
270
|
-
*/
|
|
271
|
-
disabled: PropTypes.bool,
|
|
272
|
-
/**
|
|
273
|
-
* mainColor
|
|
274
|
-
*/
|
|
275
|
-
mainColor: PropTypes.oneOf([MAIN_DARK_BLUE, WHITE]),
|
|
276
|
-
/**
|
|
277
|
-
* optionSelected
|
|
278
|
-
*/
|
|
279
|
-
optionSelected: PropTypes.shape({
|
|
280
|
-
label: PropTypes.string,
|
|
281
|
-
value: PropTypes.oneOfType([
|
|
282
|
-
PropTypes.string,
|
|
283
|
-
PropTypes.number
|
|
284
|
-
])
|
|
285
|
-
}),
|
|
286
|
-
/**
|
|
287
|
-
* dataAttrName
|
|
288
|
-
*/
|
|
289
|
-
dataAttrName: PropTypes.string,
|
|
290
|
-
/**
|
|
291
|
-
* dataAttrValue
|
|
292
|
-
*/
|
|
293
|
-
dataAttrValue: PropTypes.string,
|
|
294
|
-
/**
|
|
295
|
-
* backgroundColor
|
|
296
|
-
*/
|
|
297
|
-
backgroundColor: PropTypes.oneOf([MAIN_DARK_BLUE, WHITE, RICH_BLACK]),
|
|
298
|
-
/**
|
|
299
|
-
* inputTextClassName
|
|
300
|
-
*/
|
|
301
|
-
inputTextClassName: PropTypes.string,
|
|
302
|
-
/**
|
|
303
|
-
* errorMessage
|
|
304
|
-
*/
|
|
305
|
-
errorMessage: PropTypes.string,
|
|
306
|
-
/**
|
|
307
|
-
* errorMessageTextClassName
|
|
308
|
-
*/
|
|
309
|
-
errorMessageTextClassName: PropTypes.string
|
|
310
|
-
}
|
|
311
|
-
|
|
312
202
|
export default SelectWithInput
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import React from 'react'
|
|
2
|
-
import PropTypes from 'prop-types'
|
|
3
2
|
import styles from './TextArea.module.css'
|
|
4
3
|
import commonStyles from '../Common.module.css'
|
|
5
4
|
import PlatformaticIcon from '../PlatformaticIcon'
|
|
6
|
-
import { MAIN_DARK_BLUE
|
|
5
|
+
import { MAIN_DARK_BLUE } from '../constants'
|
|
7
6
|
|
|
8
7
|
function TextArea ({
|
|
9
8
|
placeholder = '',
|
|
@@ -36,55 +35,4 @@ function TextArea ({
|
|
|
36
35
|
)
|
|
37
36
|
}
|
|
38
37
|
|
|
39
|
-
TextArea.propTypes = {
|
|
40
|
-
/**
|
|
41
|
-
* placeholder
|
|
42
|
-
*/
|
|
43
|
-
placeholder: PropTypes.string,
|
|
44
|
-
/**
|
|
45
|
-
* value
|
|
46
|
-
*/
|
|
47
|
-
value: PropTypes.string,
|
|
48
|
-
/**
|
|
49
|
-
* name
|
|
50
|
-
*/
|
|
51
|
-
name: PropTypes.string,
|
|
52
|
-
/**
|
|
53
|
-
* color of border
|
|
54
|
-
*/
|
|
55
|
-
borderColor: PropTypes.oneOf([MAIN_GREEN, MAIN_DARK_BLUE]),
|
|
56
|
-
/**
|
|
57
|
-
* onChange
|
|
58
|
-
*/
|
|
59
|
-
onChange: PropTypes.func,
|
|
60
|
-
/**
|
|
61
|
-
* Disabled
|
|
62
|
-
*/
|
|
63
|
-
disabled: PropTypes.bool,
|
|
64
|
-
/**
|
|
65
|
-
* afterIcon: PlatformaticIcon props
|
|
66
|
-
*/
|
|
67
|
-
afterIcon: PropTypes.shape({
|
|
68
|
-
iconName: PropTypes.string,
|
|
69
|
-
color: PropTypes.string,
|
|
70
|
-
onClick: PropTypes.func
|
|
71
|
-
}),
|
|
72
|
-
/**
|
|
73
|
-
* rows
|
|
74
|
-
*/
|
|
75
|
-
rows: PropTypes.number,
|
|
76
|
-
/**
|
|
77
|
-
* cols
|
|
78
|
-
*/
|
|
79
|
-
cols: PropTypes.number,
|
|
80
|
-
/**
|
|
81
|
-
* errorMessage
|
|
82
|
-
*/
|
|
83
|
-
errorMessage: PropTypes.string,
|
|
84
|
-
/**
|
|
85
|
-
* errorMessageTextClassName
|
|
86
|
-
*/
|
|
87
|
-
errorMessageTextClassName: PropTypes.string
|
|
88
|
-
}
|
|
89
|
-
|
|
90
38
|
export default TextArea
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import React from 'react'
|
|
2
|
-
import PropTypes from 'prop-types'
|
|
3
2
|
import styles from './ToggleSwitch.module.css'
|
|
4
3
|
import commonStyles from '../Common.module.css'
|
|
5
|
-
import { MEDIUM
|
|
4
|
+
import { MEDIUM } from '../constants'
|
|
6
5
|
|
|
7
6
|
function ToggleSwitch ({
|
|
8
7
|
name = '',
|
|
@@ -37,44 +36,4 @@ function ToggleSwitch ({
|
|
|
37
36
|
)
|
|
38
37
|
}
|
|
39
38
|
|
|
40
|
-
ToggleSwitch.propTypes = {
|
|
41
|
-
/**
|
|
42
|
-
* name
|
|
43
|
-
*/
|
|
44
|
-
name: PropTypes.string,
|
|
45
|
-
/**
|
|
46
|
-
* label
|
|
47
|
-
*/
|
|
48
|
-
label: PropTypes.string,
|
|
49
|
-
/**
|
|
50
|
-
* errorMessage
|
|
51
|
-
*/
|
|
52
|
-
errorMessage: PropTypes.string,
|
|
53
|
-
/**
|
|
54
|
-
* errorMessageTextClassName
|
|
55
|
-
*/
|
|
56
|
-
errorMessageTextClassName: PropTypes.string,
|
|
57
|
-
/**
|
|
58
|
-
* checked
|
|
59
|
-
*/
|
|
60
|
-
checked: PropTypes.bool,
|
|
61
|
-
/**
|
|
62
|
-
* disabled
|
|
63
|
-
*/
|
|
64
|
-
disabled: PropTypes.bool,
|
|
65
|
-
/**
|
|
66
|
-
* onChange of border
|
|
67
|
-
*/
|
|
68
|
-
onChange: PropTypes.func,
|
|
69
|
-
/**
|
|
70
|
-
* labelClassName
|
|
71
|
-
*/
|
|
72
|
-
labelClassName: PropTypes.string,
|
|
73
|
-
/**
|
|
74
|
-
* size
|
|
75
|
-
*/
|
|
76
|
-
size: PropTypes.oneOf([SMALL, MEDIUM])
|
|
77
|
-
|
|
78
|
-
}
|
|
79
|
-
|
|
80
39
|
export default ToggleSwitch
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import * as React from 'react'
|
|
2
|
-
import PropTypes from 'prop-types'
|
|
3
2
|
import styles from './Icons.module.css'
|
|
4
|
-
import {
|
|
3
|
+
import { SMALL, MEDIUM, LARGE, MAIN_DARK_BLUE } from '../constants'
|
|
5
4
|
|
|
6
5
|
const APIDocsIcon = ({
|
|
7
6
|
color = MAIN_DARK_BLUE,
|
|
@@ -91,23 +90,4 @@ const APIDocsIcon = ({
|
|
|
91
90
|
return icon
|
|
92
91
|
}
|
|
93
92
|
|
|
94
|
-
APIDocsIcon.propTypes = {
|
|
95
|
-
/**
|
|
96
|
-
* color of text, icon and borders
|
|
97
|
-
*/
|
|
98
|
-
color: PropTypes.oneOf(COLORS_ICON),
|
|
99
|
-
/**
|
|
100
|
-
* Size
|
|
101
|
-
*/
|
|
102
|
-
size: PropTypes.oneOf(SIZES),
|
|
103
|
-
/**
|
|
104
|
-
* disabled
|
|
105
|
-
*/
|
|
106
|
-
disabled: PropTypes.bool,
|
|
107
|
-
/**
|
|
108
|
-
* inactive
|
|
109
|
-
*/
|
|
110
|
-
inactive: PropTypes.bool
|
|
111
|
-
}
|
|
112
|
-
|
|
113
93
|
export default APIDocsIcon
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import * as React from 'react'
|
|
2
|
-
import PropTypes from 'prop-types'
|
|
3
2
|
import styles from './Icons.module.css'
|
|
4
|
-
import {
|
|
3
|
+
import { SMALL, MEDIUM, LARGE, MAIN_DARK_BLUE } from '../constants'
|
|
5
4
|
|
|
6
5
|
const APIKeyIcon = ({
|
|
7
6
|
color = MAIN_DARK_BLUE,
|
|
@@ -75,23 +74,4 @@ const APIKeyIcon = ({
|
|
|
75
74
|
return icon
|
|
76
75
|
}
|
|
77
76
|
|
|
78
|
-
APIKeyIcon.propTypes = {
|
|
79
|
-
/**
|
|
80
|
-
* color of text, icon and borders
|
|
81
|
-
*/
|
|
82
|
-
color: PropTypes.oneOf(COLORS_ICON),
|
|
83
|
-
/**
|
|
84
|
-
* Size
|
|
85
|
-
*/
|
|
86
|
-
size: PropTypes.oneOf(SIZES),
|
|
87
|
-
/**
|
|
88
|
-
* disabled
|
|
89
|
-
*/
|
|
90
|
-
disabled: PropTypes.bool,
|
|
91
|
-
/**
|
|
92
|
-
* inactive
|
|
93
|
-
*/
|
|
94
|
-
inactive: PropTypes.bool
|
|
95
|
-
}
|
|
96
|
-
|
|
97
77
|
export default APIKeyIcon
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import * as React from 'react'
|
|
2
|
-
import PropTypes from 'prop-types'
|
|
3
2
|
import styles from './Icons.module.css'
|
|
4
|
-
import {
|
|
3
|
+
import { SMALL, MEDIUM, LARGE, MAIN_DARK_BLUE } from '../constants'
|
|
5
4
|
|
|
6
5
|
const AWSIcon = ({
|
|
7
6
|
color = MAIN_DARK_BLUE,
|
|
@@ -69,23 +68,4 @@ const AWSIcon = ({
|
|
|
69
68
|
return icon
|
|
70
69
|
}
|
|
71
70
|
|
|
72
|
-
AWSIcon.propTypes = {
|
|
73
|
-
/**
|
|
74
|
-
* color of text, icon and borders
|
|
75
|
-
*/
|
|
76
|
-
color: PropTypes.oneOf(COLORS_ICON),
|
|
77
|
-
/**
|
|
78
|
-
* Size
|
|
79
|
-
*/
|
|
80
|
-
size: PropTypes.oneOf(SIZES),
|
|
81
|
-
/**
|
|
82
|
-
* disabled
|
|
83
|
-
*/
|
|
84
|
-
disabled: PropTypes.bool,
|
|
85
|
-
/**
|
|
86
|
-
* inactive
|
|
87
|
-
*/
|
|
88
|
-
inactive: PropTypes.bool
|
|
89
|
-
}
|
|
90
|
-
|
|
91
71
|
export default AWSIcon
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import * as React from 'react'
|
|
2
|
-
import PropTypes from 'prop-types'
|
|
3
2
|
import styles from './Icons.module.css'
|
|
4
|
-
import {
|
|
3
|
+
import { SMALL, MEDIUM, LARGE, MAIN_DARK_BLUE } from '../constants'
|
|
5
4
|
|
|
6
5
|
const AddEnvVariableIcon = ({
|
|
7
6
|
color = MAIN_DARK_BLUE,
|
|
@@ -79,19 +78,4 @@ const AddEnvVariableIcon = ({
|
|
|
79
78
|
return icon
|
|
80
79
|
}
|
|
81
80
|
|
|
82
|
-
AddEnvVariableIcon.propTypes = {
|
|
83
|
-
/**
|
|
84
|
-
* color of text, icon and borders
|
|
85
|
-
*/
|
|
86
|
-
color: PropTypes.oneOf(COLORS_ICON),
|
|
87
|
-
/**
|
|
88
|
-
* Size
|
|
89
|
-
*/
|
|
90
|
-
size: PropTypes.oneOf(SIZES),
|
|
91
|
-
/**
|
|
92
|
-
* tip
|
|
93
|
-
*/
|
|
94
|
-
tip: PropTypes.string
|
|
95
|
-
}
|
|
96
|
-
|
|
97
81
|
export default AddEnvVariableIcon
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import * as React from 'react'
|
|
2
|
-
import PropTypes from 'prop-types'
|
|
3
2
|
import styles from './Icons.module.css'
|
|
4
|
-
import {
|
|
3
|
+
import { SMALL, MEDIUM, LARGE, MAIN_DARK_BLUE } from '../constants'
|
|
5
4
|
|
|
6
5
|
const AddIcon = ({
|
|
7
6
|
color = MAIN_DARK_BLUE,
|
|
@@ -71,23 +70,4 @@ const AddIcon = ({
|
|
|
71
70
|
return icon
|
|
72
71
|
}
|
|
73
72
|
|
|
74
|
-
AddIcon.propTypes = {
|
|
75
|
-
/**
|
|
76
|
-
* color of text, icon and borders
|
|
77
|
-
*/
|
|
78
|
-
color: PropTypes.oneOf(COLORS_ICON),
|
|
79
|
-
/**
|
|
80
|
-
* Size
|
|
81
|
-
*/
|
|
82
|
-
size: PropTypes.oneOf(SIZES),
|
|
83
|
-
/**
|
|
84
|
-
* disabled
|
|
85
|
-
*/
|
|
86
|
-
disabled: PropTypes.bool,
|
|
87
|
-
/**
|
|
88
|
-
* inactive
|
|
89
|
-
*/
|
|
90
|
-
inactive: PropTypes.bool
|
|
91
|
-
}
|
|
92
|
-
|
|
93
73
|
export default AddIcon
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import * as React from 'react'
|
|
2
|
-
import PropTypes from 'prop-types'
|
|
3
2
|
import styles from './Icons.module.css'
|
|
4
|
-
import {
|
|
3
|
+
import { SMALL, MEDIUM, LARGE, MAIN_DARK_BLUE } from '../constants'
|
|
5
4
|
|
|
6
5
|
const AddRouteIcon = ({
|
|
7
6
|
color = MAIN_DARK_BLUE,
|
|
@@ -82,19 +81,4 @@ const AddRouteIcon = ({
|
|
|
82
81
|
return icon
|
|
83
82
|
}
|
|
84
83
|
|
|
85
|
-
AddRouteIcon.propTypes = {
|
|
86
|
-
/**
|
|
87
|
-
* color of text, icon and borders
|
|
88
|
-
*/
|
|
89
|
-
color: PropTypes.oneOf(COLORS_ICON),
|
|
90
|
-
/**
|
|
91
|
-
* Size
|
|
92
|
-
*/
|
|
93
|
-
size: PropTypes.oneOf(SIZES),
|
|
94
|
-
/**
|
|
95
|
-
* tip
|
|
96
|
-
*/
|
|
97
|
-
tip: PropTypes.string
|
|
98
|
-
}
|
|
99
|
-
|
|
100
84
|
export default AddRouteIcon
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import * as React from 'react'
|
|
2
|
-
import PropTypes from 'prop-types'
|
|
3
2
|
import styles from './Icons.module.css'
|
|
4
|
-
import {
|
|
3
|
+
import { SMALL, MEDIUM, LARGE, MAIN_DARK_BLUE } from '../constants'
|
|
5
4
|
|
|
6
5
|
const AddUserIcon = ({
|
|
7
6
|
color = MAIN_DARK_BLUE,
|
|
@@ -80,23 +79,4 @@ const AddUserIcon = ({
|
|
|
80
79
|
return icon
|
|
81
80
|
}
|
|
82
81
|
|
|
83
|
-
AddUserIcon.propTypes = {
|
|
84
|
-
/**
|
|
85
|
-
* color of text, icon and borders
|
|
86
|
-
*/
|
|
87
|
-
color: PropTypes.oneOf(COLORS_ICON),
|
|
88
|
-
/**
|
|
89
|
-
* Size
|
|
90
|
-
*/
|
|
91
|
-
size: PropTypes.oneOf(SIZES),
|
|
92
|
-
/**
|
|
93
|
-
* disabled
|
|
94
|
-
*/
|
|
95
|
-
disabled: PropTypes.bool,
|
|
96
|
-
/**
|
|
97
|
-
* inactive
|
|
98
|
-
*/
|
|
99
|
-
inactive: PropTypes.bool
|
|
100
|
-
}
|
|
101
|
-
|
|
102
82
|
export default AddUserIcon
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import * as React from 'react'
|
|
2
|
-
import PropTypes from 'prop-types'
|
|
3
2
|
import styles from './Icons.module.css'
|
|
4
|
-
import {
|
|
3
|
+
import { SMALL, MEDIUM, LARGE, ERROR_RED } from '../constants'
|
|
5
4
|
|
|
6
5
|
const AlertIcon = ({
|
|
7
6
|
color = ERROR_RED,
|
|
@@ -74,23 +73,4 @@ const AlertIcon = ({
|
|
|
74
73
|
return icon
|
|
75
74
|
}
|
|
76
75
|
|
|
77
|
-
AlertIcon.propTypes = {
|
|
78
|
-
/**
|
|
79
|
-
* color of text, icon and borders
|
|
80
|
-
*/
|
|
81
|
-
color: PropTypes.oneOf(COLORS_ICON),
|
|
82
|
-
/**
|
|
83
|
-
* Size
|
|
84
|
-
*/
|
|
85
|
-
size: PropTypes.oneOf(SIZES),
|
|
86
|
-
/**
|
|
87
|
-
* disabled
|
|
88
|
-
*/
|
|
89
|
-
disabled: PropTypes.bool,
|
|
90
|
-
/**
|
|
91
|
-
* inactive
|
|
92
|
-
*/
|
|
93
|
-
inactive: PropTypes.bool
|
|
94
|
-
}
|
|
95
|
-
|
|
96
76
|
export default AlertIcon
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import * as React from 'react'
|
|
2
|
-
import PropTypes from 'prop-types'
|
|
3
2
|
import styles from './Icons.module.css'
|
|
4
|
-
import {
|
|
3
|
+
import { SMALL, MEDIUM, LARGE, MAIN_DARK_BLUE, EXTRA_MEDIUM } from '../constants'
|
|
5
4
|
|
|
6
5
|
const AllAppsIcon = ({
|
|
7
6
|
color = MAIN_DARK_BLUE,
|
|
@@ -117,23 +116,4 @@ const AllAppsIcon = ({
|
|
|
117
116
|
return icon
|
|
118
117
|
}
|
|
119
118
|
|
|
120
|
-
AllAppsIcon.propTypes = {
|
|
121
|
-
/**
|
|
122
|
-
* color of text, icon and borders
|
|
123
|
-
*/
|
|
124
|
-
color: PropTypes.oneOf(COLORS_ICON),
|
|
125
|
-
/**
|
|
126
|
-
* Size
|
|
127
|
-
*/
|
|
128
|
-
size: PropTypes.oneOf(SIZES),
|
|
129
|
-
/**
|
|
130
|
-
* disabled
|
|
131
|
-
*/
|
|
132
|
-
disabled: PropTypes.bool,
|
|
133
|
-
/**
|
|
134
|
-
* inactive
|
|
135
|
-
*/
|
|
136
|
-
inactive: PropTypes.bool
|
|
137
|
-
}
|
|
138
|
-
|
|
139
119
|
export default AllAppsIcon
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import * as React from 'react'
|
|
2
|
-
import PropTypes from 'prop-types'
|
|
3
2
|
import styles from './Icons.module.css'
|
|
4
|
-
import {
|
|
3
|
+
import { SMALL, MEDIUM, LARGE, MAIN_DARK_BLUE } from '../constants'
|
|
5
4
|
|
|
6
5
|
const AllInOneIcon = ({
|
|
7
6
|
color = MAIN_DARK_BLUE,
|
|
@@ -104,23 +103,4 @@ const AllInOneIcon = ({
|
|
|
104
103
|
return icon
|
|
105
104
|
}
|
|
106
105
|
|
|
107
|
-
AllInOneIcon.propTypes = {
|
|
108
|
-
/**
|
|
109
|
-
* color of text, icon and borders
|
|
110
|
-
*/
|
|
111
|
-
color: PropTypes.oneOf(COLORS_ICON),
|
|
112
|
-
/**
|
|
113
|
-
* Size
|
|
114
|
-
*/
|
|
115
|
-
size: PropTypes.oneOf(SIZES),
|
|
116
|
-
/**
|
|
117
|
-
* disabled
|
|
118
|
-
*/
|
|
119
|
-
disabled: PropTypes.bool,
|
|
120
|
-
/**
|
|
121
|
-
* inactive
|
|
122
|
-
*/
|
|
123
|
-
inactive: PropTypes.bool
|
|
124
|
-
}
|
|
125
|
-
|
|
126
106
|
export default AllInOneIcon
|