@platformatic/ui-components 0.1.57 → 0.1.59
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.0de95a32.css +1 -0
- package/dist/assets/index.d6543e3d.js +40 -0
- package/dist/index.html +2 -2
- package/dist/main.css +10 -20
- package/package.json +1 -1
- package/src/components/BorderedBox.jsx +34 -6
- package/src/components/BorderedBox.module.css +0 -6
- package/src/components/Button.jsx +6 -6
- package/src/components/Button.module.css +0 -30
- package/src/components/ButtonFullRounded.jsx +53 -8
- package/src/components/ButtonFullRounded.module.css +1 -23
- package/src/components/Common.module.css +56 -0
- package/src/components/FollowUs.jsx +5 -6
- package/src/components/GHLoginButton.jsx +1 -2
- package/src/components/InfoBox.jsx +4 -3
- package/src/components/ListElement.jsx +1 -1
- package/src/components/LoginButton.jsx +3 -12
- package/src/components/LoginButton.test.jsx +4 -5
- package/src/components/Modal.jsx +1 -1
- package/src/components/PlatformaticIcon.jsx +4 -3
- package/src/components/SearchBar.jsx +2 -7
- package/src/components/Sidebar.jsx +18 -12
- package/src/components/SimpleMetric.jsx +0 -2
- package/src/components/Status.jsx +26 -19
- package/src/components/constants.js +4 -0
- package/src/components/forms/Input.jsx +1 -0
- package/src/components/icons/AddIcon.jsx +3 -2
- package/src/components/icons/AlertIcon.jsx +4 -3
- package/src/components/icons/AllInOneIcon.jsx +3 -2
- package/src/components/icons/ApiCloudIcon.jsx +3 -2
- package/src/components/icons/ApiEmptyIcon.jsx +3 -2
- package/src/components/icons/ApiIcon.jsx +3 -2
- package/src/components/icons/ApiIconClosed.jsx +3 -2
- package/src/components/icons/AppEmptyIcon.jsx +3 -2
- package/src/components/icons/AppIcon.jsx +3 -2
- package/src/components/icons/AppListIcon.jsx +3 -2
- package/src/components/icons/ArrowDownFullIcon.jsx +3 -2
- package/src/components/icons/ArrowDownIcon.jsx +3 -2
- package/src/components/icons/ArrowLeftIcon.jsx +3 -2
- package/src/components/icons/ArrowRightIcon.jsx +3 -2
- package/src/components/icons/ArrowUpIcon.jsx +3 -2
- package/src/components/icons/BellIcon.jsx +3 -2
- package/src/components/icons/BillingIcon.jsx +3 -2
- package/src/components/icons/Calendar1DayIcon.jsx +3 -2
- package/src/components/icons/Calendar7DaysIcon.jsx +3 -2
- package/src/components/icons/CalendarIcon.jsx +3 -2
- package/src/components/icons/CircleAddIcon.jsx +3 -2
- package/src/components/icons/CircleArrowLeftIcon.jsx +3 -2
- package/src/components/icons/CircleArrowRightIcon.jsx +3 -2
- package/src/components/icons/CircleCheckMarkIcon.jsx +3 -2
- package/src/components/icons/CircleCloseHoverIcon.jsx +3 -2
- package/src/components/icons/CircleCloseIcon.jsx +3 -2
- package/src/components/icons/CircleExclamationIcon.jsx +3 -2
- package/src/components/icons/CircleFullIcon.jsx +77 -0
- package/src/components/icons/CircleTwoArrowsDownIcon.jsx +3 -2
- package/src/components/icons/CircleTwoArrowsUpIcon.jsx +3 -2
- package/src/components/icons/CloseIcon.jsx +3 -2
- package/src/components/icons/CopyPasteIcon.jsx +3 -2
- package/src/components/icons/DatabaseIcon.jsx +3 -2
- package/src/components/icons/EditIcon.jsx +3 -2
- package/src/components/icons/EnlargeIcon.jsx +3 -2
- package/src/components/icons/EntryIcon.jsx +3 -2
- package/src/components/icons/ExploreDocIcon.jsx +3 -2
- package/src/components/icons/GearIcon.jsx +3 -2
- package/src/components/icons/GraphQLIcon.jsx +3 -2
- package/src/components/icons/Icons.module.css +24 -12
- package/src/components/icons/KeyIcon.jsx +3 -2
- package/src/components/icons/LayersIcon.jsx +3 -2
- package/src/components/icons/LensIcon.jsx +3 -2
- package/src/components/icons/LiveIcon.jsx +3 -2
- package/src/components/icons/LogOutIcon.jsx +3 -2
- package/src/components/icons/MetricsIcon.jsx +3 -2
- package/src/components/icons/PlayIcon.jsx +3 -2
- package/src/components/icons/PullRequestIcon.jsx +3 -2
- package/src/components/icons/SendIcon.jsx +3 -2
- package/src/components/icons/SocialDiscordIcon.jsx +3 -2
- package/src/components/icons/SocialGitHubIcon.jsx +3 -2
- package/src/components/icons/SocialGitLabIcon.jsx +3 -2
- package/src/components/icons/SocialLinkedInIcon.jsx +3 -2
- package/src/components/icons/SocialNPMIcon.jsx +3 -2
- package/src/components/icons/SocialTwitterIcon.jsx +3 -2
- package/src/components/icons/StopIcon.jsx +3 -2
- package/src/components/icons/TerminalIcon.jsx +3 -2
- package/src/components/icons/TwoUsersIcon.jsx +3 -2
- package/src/components/icons/UpgradeIcon.jsx +3 -2
- package/src/components/icons/WorkspaceDynamicIcon.jsx +3 -2
- package/src/components/icons/WorkspaceFailIcon.jsx +3 -2
- package/src/components/icons/WorkspaceReadyIcon.jsx +3 -2
- package/src/components/icons/WorkspaceStaticIcon.jsx +3 -2
- package/src/components/icons/index.js +2 -0
- package/src/stories/BorderedBox.stories.jsx +5 -5
- package/src/stories/Button.stories.jsx +4 -5
- package/src/stories/ButtonFullRounded.stories.jsx +11 -11
- package/src/stories/InfoBox.stories.jsx +1 -2
- package/src/stories/Modal.stories.jsx +2 -2
- package/src/stories/PlatformaticIcon.stories.jsx +2 -3
- package/src/stories/Sidebar.stories.jsx +18 -3
- package/src/stories/Status.stories.jsx +2 -2
- package/src/stories/forms/Input.stories.jsx +1 -1
- package/src/stories/forms/Preview.stories.jsx +1 -1
- package/src/stories/icons/Icons.stories.jsx +5 -4
- package/tailwind.config.cjs +11 -11
- package/dist/assets/index.691ca940.css +0 -1
- package/dist/assets/index.ff0dadfc.js +0 -797
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import React, { useState } from 'react'
|
|
1
|
+
import React, { useEffect, useState } from 'react'
|
|
2
2
|
import Icons from './icons'
|
|
3
3
|
import styles from './Sidebar.module.css'
|
|
4
4
|
import ReactTooltip from 'react-tooltip'
|
|
@@ -17,13 +17,17 @@ function Sidebar (props) {
|
|
|
17
17
|
onClickSettings
|
|
18
18
|
} = props
|
|
19
19
|
const [collapsed, setCollapsed] = useState(false)
|
|
20
|
-
const [selectedItem, setSelectedItem] = useState(
|
|
20
|
+
const [selectedItem, setSelectedItem] = useState(null)
|
|
21
21
|
|
|
22
|
-
function onClickItemSelected (
|
|
23
|
-
setSelectedItem(
|
|
24
|
-
onClickItemSelectedParent(
|
|
22
|
+
function onClickItemSelected (item) {
|
|
23
|
+
setSelectedItem(item.id)
|
|
24
|
+
onClickItemSelectedParent(item.id)
|
|
25
25
|
}
|
|
26
26
|
|
|
27
|
+
useEffect(() => {
|
|
28
|
+
setSelectedItem(defaultSelected)
|
|
29
|
+
}, [defaultSelected])
|
|
30
|
+
|
|
27
31
|
return (
|
|
28
32
|
<div className={`${styles.container} ${collapsed && styles.collapsed}`}>
|
|
29
33
|
{collapsed
|
|
@@ -63,14 +67,14 @@ function Sidebar (props) {
|
|
|
63
67
|
{title}
|
|
64
68
|
</div>
|
|
65
69
|
<div className={styles.items} data-test-id='lateral-bar-items'>
|
|
66
|
-
{items.map(
|
|
67
|
-
const isSelected = selectedItem ===
|
|
70
|
+
{items.map(item => {
|
|
71
|
+
const isSelected = selectedItem === item.id
|
|
68
72
|
return (
|
|
69
|
-
<React.Fragment key={
|
|
70
|
-
<button className={`${styles.buttonItem} ${collapsed && styles.buttonItemCollapsed}`} type='button' onClick={() => onClickItemSelected(
|
|
73
|
+
<React.Fragment key={item.id}>
|
|
74
|
+
<button className={`${styles.buttonItem} ${collapsed && styles.buttonItemCollapsed}`} type='button' onClick={() => onClickItemSelected(item)}>
|
|
71
75
|
{item.iconName && (<PlatformaticIcon
|
|
72
76
|
iconName={item.iconName}
|
|
73
|
-
color={isSelected ? 'green' : 'white'}
|
|
77
|
+
color={isSelected ? 'main-green' : 'white'}
|
|
74
78
|
tip={item.title}
|
|
75
79
|
size='medium'
|
|
76
80
|
/>)}
|
|
@@ -114,18 +118,20 @@ Sidebar.propTypes = {
|
|
|
114
118
|
/**
|
|
115
119
|
* defaultSelected
|
|
116
120
|
*/
|
|
117
|
-
defaultSelected: PropTypes.
|
|
121
|
+
defaultSelected: PropTypes.string,
|
|
118
122
|
/**
|
|
119
123
|
* addTitle
|
|
120
124
|
*/
|
|
121
125
|
addTitle: PropTypes.string,
|
|
122
126
|
/**
|
|
123
127
|
* items: array with keys
|
|
128
|
+
* id: id of the worspacedSeleted
|
|
124
129
|
* title: name to display
|
|
125
130
|
* subtitle: secondary title
|
|
126
131
|
* icon: what Icon
|
|
127
132
|
*/
|
|
128
133
|
items: PropTypes.arrayOf(PropTypes.shape({
|
|
134
|
+
id: PropTypes.string.isRequired,
|
|
129
135
|
title: PropTypes.string,
|
|
130
136
|
subtitle: PropTypes.string,
|
|
131
137
|
iconName: PropTypes.string
|
|
@@ -147,7 +153,7 @@ Sidebar.propTypes = {
|
|
|
147
153
|
|
|
148
154
|
Sidebar.defaultProps = {
|
|
149
155
|
title: '',
|
|
150
|
-
defaultSelected:
|
|
156
|
+
defaultSelected: null,
|
|
151
157
|
onClickItemSelectedParent: () => {},
|
|
152
158
|
items: [],
|
|
153
159
|
onClickAdd: () => {},
|
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
'use strict'
|
|
2
2
|
|
|
3
3
|
import React from 'react'
|
|
4
|
-
// The icon that is in design is not in the free version of fontawesome
|
|
5
|
-
// Temporary using this one
|
|
6
4
|
import ReactTooltip from 'react-tooltip'
|
|
7
5
|
import BorderedBox from './BorderedBox'
|
|
8
6
|
import styles from './SimpleMetric.module.css'
|
|
@@ -1,26 +1,33 @@
|
|
|
1
1
|
'use strict'
|
|
2
2
|
import React from 'react'
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
|
|
6
|
-
const { color, status } = props
|
|
3
|
+
import PropTypes from 'prop-types'
|
|
4
|
+
import PlatformaticIcon from './PlatformaticIcon'
|
|
5
|
+
import { COLORS_ICON } from './constants'
|
|
7
6
|
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
case 'green':
|
|
11
|
-
return 'text-main-green'
|
|
12
|
-
case 'red':
|
|
13
|
-
return 'text-error-red'
|
|
14
|
-
case 'white':
|
|
15
|
-
default:
|
|
16
|
-
return 'text-white'
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
const colorClass = getColorClass(color)
|
|
7
|
+
function Status ({ color, status }) {
|
|
8
|
+
const className = `inline-flex text-${color}`
|
|
20
9
|
return (
|
|
21
|
-
<div className={
|
|
22
|
-
<
|
|
23
|
-
{status}
|
|
10
|
+
<div className={className}>
|
|
11
|
+
<PlatformaticIcon iconName='CircleFullIcon' size='medium' color={color} />
|
|
12
|
+
<span className='ml-2'>{status}</span>
|
|
24
13
|
</div>
|
|
25
14
|
)
|
|
26
15
|
}
|
|
16
|
+
|
|
17
|
+
Status.propTypes = {
|
|
18
|
+
/**
|
|
19
|
+
* color
|
|
20
|
+
*/
|
|
21
|
+
color: PropTypes.oneOf(COLORS_ICON),
|
|
22
|
+
/**
|
|
23
|
+
* status
|
|
24
|
+
*/
|
|
25
|
+
status: PropTypes.string
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
Status.defaultProps = {
|
|
29
|
+
color: 'white',
|
|
30
|
+
status: ''
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
export default Status
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export const COLORS_ICON = ['main-green', 'white', 'main-dark-blue', 'error-red', 'warning-yellow']
|
|
2
|
+
export const SIZES = ['small', 'medium', 'large', 'extra-large']
|
|
3
|
+
export const COLORS_BUTTON = ['main-green', 'dark-green', 'light-green', 'main-dark-blue', 'dark-blue', 'light-blue', 'white', 'error-red', 'tertiary-blue', 'transparent']
|
|
4
|
+
export const COLORS_BORDERED_BOX = ['main-green', 'error-red', 'white', 'dark-blue', 'warning-yellow', 'transparent']
|
|
@@ -9,6 +9,7 @@ function Input ({ placeholder, value, name, borderColor, errorMessage, onChange,
|
|
|
9
9
|
let className = styles.inputContainer + ' ' + commonStyles[`bordered--${borderColor}`] + ' ' + commonStyles[`text--${borderColor}`] + ' ' + commonStyles.padded
|
|
10
10
|
const showError = errorMessage.length > 0
|
|
11
11
|
if (showError) className += ' ' + commonStyles['bordered--error-red']
|
|
12
|
+
if (disabled) className += ' ' + commonStyles['apply-opacity-30']
|
|
12
13
|
|
|
13
14
|
return (
|
|
14
15
|
<div className={styles.container}>
|
|
@@ -1,6 +1,7 @@
|
|
|
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
5
|
|
|
5
6
|
const AddIcon = ({ color, size }) => {
|
|
6
7
|
const className = `${styles.noShrinkForFlex} ` + styles[`${color}`]
|
|
@@ -63,11 +64,11 @@ AddIcon.propTypes = {
|
|
|
63
64
|
/**
|
|
64
65
|
* color of text, icon and borders
|
|
65
66
|
*/
|
|
66
|
-
color: PropTypes.oneOf(
|
|
67
|
+
color: PropTypes.oneOf(COLORS_ICON),
|
|
67
68
|
/**
|
|
68
69
|
* Size
|
|
69
70
|
*/
|
|
70
|
-
size: PropTypes.oneOf(
|
|
71
|
+
size: PropTypes.oneOf(SIZES)
|
|
71
72
|
}
|
|
72
73
|
|
|
73
74
|
AddIcon.defaultProps = {
|
|
@@ -1,6 +1,7 @@
|
|
|
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
5
|
|
|
5
6
|
const AlertIcon = ({ color, size }) => {
|
|
6
7
|
const className = `${styles.noShrinkForFlex} ` + styles[`${color}`]
|
|
@@ -66,15 +67,15 @@ AlertIcon.propTypes = {
|
|
|
66
67
|
/**
|
|
67
68
|
* color of text, icon and borders
|
|
68
69
|
*/
|
|
69
|
-
color: PropTypes.oneOf(
|
|
70
|
+
color: PropTypes.oneOf(COLORS_ICON),
|
|
70
71
|
/**
|
|
71
72
|
* Size
|
|
72
73
|
*/
|
|
73
|
-
size: PropTypes.oneOf(
|
|
74
|
+
size: PropTypes.oneOf(SIZES)
|
|
74
75
|
}
|
|
75
76
|
|
|
76
77
|
AlertIcon.defaultProps = {
|
|
77
|
-
color: 'red',
|
|
78
|
+
color: 'error-red',
|
|
78
79
|
size: 'medium'
|
|
79
80
|
}
|
|
80
81
|
|
|
@@ -1,6 +1,7 @@
|
|
|
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
5
|
|
|
5
6
|
const AllInOneIcon = ({ color, size }) => {
|
|
6
7
|
const className = `${styles.noShrinkForFlex} ` + styles[`${color}`]
|
|
@@ -96,11 +97,11 @@ AllInOneIcon.propTypes = {
|
|
|
96
97
|
/**
|
|
97
98
|
* color of text, icon and borders
|
|
98
99
|
*/
|
|
99
|
-
color: PropTypes.oneOf(
|
|
100
|
+
color: PropTypes.oneOf(COLORS_ICON),
|
|
100
101
|
/**
|
|
101
102
|
* Size
|
|
102
103
|
*/
|
|
103
|
-
size: PropTypes.oneOf(
|
|
104
|
+
size: PropTypes.oneOf(SIZES)
|
|
104
105
|
}
|
|
105
106
|
|
|
106
107
|
AllInOneIcon.defaultProps = {
|
|
@@ -1,6 +1,7 @@
|
|
|
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
5
|
|
|
5
6
|
const ApiCloudIcon = ({ color, size }) => {
|
|
6
7
|
const className = `${styles.noShrinkForFlex} ` + styles[`${color}`]
|
|
@@ -78,11 +79,11 @@ ApiCloudIcon.propTypes = {
|
|
|
78
79
|
/**
|
|
79
80
|
* color of text, icon and borders
|
|
80
81
|
*/
|
|
81
|
-
color: PropTypes.oneOf(
|
|
82
|
+
color: PropTypes.oneOf(COLORS_ICON),
|
|
82
83
|
/**
|
|
83
84
|
* Size
|
|
84
85
|
*/
|
|
85
|
-
size: PropTypes.oneOf(
|
|
86
|
+
size: PropTypes.oneOf(SIZES)
|
|
86
87
|
}
|
|
87
88
|
|
|
88
89
|
ApiCloudIcon.defaultProps = {
|
|
@@ -1,6 +1,7 @@
|
|
|
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
5
|
|
|
5
6
|
const ApiEmptyIcon = ({ color, size }) => {
|
|
6
7
|
const className = `${styles.noShrinkForFlex} ` + styles[`${color}`] + ' '
|
|
@@ -126,11 +127,11 @@ ApiEmptyIcon.propTypes = {
|
|
|
126
127
|
/**
|
|
127
128
|
* color of text, icon and borders
|
|
128
129
|
*/
|
|
129
|
-
color: PropTypes.oneOf(
|
|
130
|
+
color: PropTypes.oneOf(COLORS_ICON),
|
|
130
131
|
/**
|
|
131
132
|
* Size
|
|
132
133
|
*/
|
|
133
|
-
size: PropTypes.oneOf(
|
|
134
|
+
size: PropTypes.oneOf(SIZES)
|
|
134
135
|
}
|
|
135
136
|
|
|
136
137
|
ApiEmptyIcon.defaultProps = {
|
|
@@ -1,6 +1,7 @@
|
|
|
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
5
|
|
|
5
6
|
const ApiIcon = ({ color, size }) => {
|
|
6
7
|
const className = `${styles.noShrinkForFlex} ` + styles[`${color}`]
|
|
@@ -69,11 +70,11 @@ ApiIcon.propTypes = {
|
|
|
69
70
|
/**
|
|
70
71
|
* color of text, icon and borders
|
|
71
72
|
*/
|
|
72
|
-
color: PropTypes.oneOf(
|
|
73
|
+
color: PropTypes.oneOf(COLORS_ICON),
|
|
73
74
|
/**
|
|
74
75
|
* Size
|
|
75
76
|
*/
|
|
76
|
-
size: PropTypes.oneOf(
|
|
77
|
+
size: PropTypes.oneOf(SIZES)
|
|
77
78
|
}
|
|
78
79
|
|
|
79
80
|
ApiIcon.defaultProps = {
|
|
@@ -1,6 +1,7 @@
|
|
|
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
5
|
|
|
5
6
|
const ApiIconClosed = ({ color, size }) => {
|
|
6
7
|
const className = `${styles.noShrinkForFlex} ` + styles[`${color}`]
|
|
@@ -37,11 +38,11 @@ ApiIconClosed.propTypes = {
|
|
|
37
38
|
/**
|
|
38
39
|
* color of text, icon and borders
|
|
39
40
|
*/
|
|
40
|
-
color: PropTypes.oneOf(
|
|
41
|
+
color: PropTypes.oneOf(COLORS_ICON),
|
|
41
42
|
/**
|
|
42
43
|
* Size
|
|
43
44
|
*/
|
|
44
|
-
size: PropTypes.oneOf(
|
|
45
|
+
size: PropTypes.oneOf(SIZES)
|
|
45
46
|
}
|
|
46
47
|
|
|
47
48
|
ApiIconClosed.defaultProps = {
|
|
@@ -1,6 +1,7 @@
|
|
|
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
5
|
|
|
5
6
|
const AppEmptyIcon = ({ color, size }) => {
|
|
6
7
|
const className = `${styles.noShrinkForFlex} ` + styles[`${color}`]
|
|
@@ -112,11 +113,11 @@ AppEmptyIcon.propTypes = {
|
|
|
112
113
|
/**
|
|
113
114
|
* color of text, icon and borders
|
|
114
115
|
*/
|
|
115
|
-
color: PropTypes.oneOf(
|
|
116
|
+
color: PropTypes.oneOf(COLORS_ICON),
|
|
116
117
|
/**
|
|
117
118
|
* Size
|
|
118
119
|
*/
|
|
119
|
-
size: PropTypes.oneOf(
|
|
120
|
+
size: PropTypes.oneOf(SIZES)
|
|
120
121
|
}
|
|
121
122
|
|
|
122
123
|
AppEmptyIcon.defaultProps = {
|
|
@@ -1,6 +1,7 @@
|
|
|
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
5
|
|
|
5
6
|
const AppIcon = ({ color, size }) => {
|
|
6
7
|
const className = `${styles.noShrinkForFlex} ` + styles[`${color}`]
|
|
@@ -70,11 +71,11 @@ AppIcon.propTypes = {
|
|
|
70
71
|
/**
|
|
71
72
|
* color of text, icon and borders
|
|
72
73
|
*/
|
|
73
|
-
color: PropTypes.oneOf(
|
|
74
|
+
color: PropTypes.oneOf(COLORS_ICON),
|
|
74
75
|
/**
|
|
75
76
|
* Size
|
|
76
77
|
*/
|
|
77
|
-
size: PropTypes.oneOf(
|
|
78
|
+
size: PropTypes.oneOf(SIZES)
|
|
78
79
|
}
|
|
79
80
|
|
|
80
81
|
AppIcon.defaultProps = {
|
|
@@ -1,6 +1,7 @@
|
|
|
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
5
|
|
|
5
6
|
const AppListIcon = ({ color, size }) => {
|
|
6
7
|
const className = `${styles.noShrinkForFlex} ` + styles[`${color}`]
|
|
@@ -88,11 +89,11 @@ AppListIcon.propTypes = {
|
|
|
88
89
|
/**
|
|
89
90
|
* color of text, icon and borders
|
|
90
91
|
*/
|
|
91
|
-
color: PropTypes.oneOf(
|
|
92
|
+
color: PropTypes.oneOf(COLORS_ICON),
|
|
92
93
|
/**
|
|
93
94
|
* Size
|
|
94
95
|
*/
|
|
95
|
-
size: PropTypes.oneOf(
|
|
96
|
+
size: PropTypes.oneOf(SIZES)
|
|
96
97
|
}
|
|
97
98
|
|
|
98
99
|
AppListIcon.defaultProps = {
|
|
@@ -1,6 +1,7 @@
|
|
|
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
5
|
|
|
5
6
|
const ArrowDownFullIcon = ({ color, size }) => {
|
|
6
7
|
const className = `${styles.noShrinkForFlex} ` + styles[`${color}`] + ' '
|
|
@@ -61,11 +62,11 @@ ArrowDownFullIcon.propTypes = {
|
|
|
61
62
|
/**
|
|
62
63
|
* color of text, icon and borders
|
|
63
64
|
*/
|
|
64
|
-
color: PropTypes.oneOf(
|
|
65
|
+
color: PropTypes.oneOf(COLORS_ICON),
|
|
65
66
|
/**
|
|
66
67
|
* Size
|
|
67
68
|
*/
|
|
68
|
-
size: PropTypes.oneOf(
|
|
69
|
+
size: PropTypes.oneOf(SIZES)
|
|
69
70
|
}
|
|
70
71
|
|
|
71
72
|
ArrowDownFullIcon.defaultProps = {
|
|
@@ -1,6 +1,7 @@
|
|
|
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
5
|
|
|
5
6
|
const ArrowDownIcon = ({ color, size }) => {
|
|
6
7
|
const className = `${styles.noShrinkForFlex} ` + styles[`${color}`]
|
|
@@ -60,11 +61,11 @@ ArrowDownIcon.propTypes = {
|
|
|
60
61
|
/**
|
|
61
62
|
* color of text, icon and borders
|
|
62
63
|
*/
|
|
63
|
-
color: PropTypes.oneOf(
|
|
64
|
+
color: PropTypes.oneOf(COLORS_ICON),
|
|
64
65
|
/**
|
|
65
66
|
* Size
|
|
66
67
|
*/
|
|
67
|
-
size: PropTypes.oneOf(
|
|
68
|
+
size: PropTypes.oneOf(SIZES)
|
|
68
69
|
}
|
|
69
70
|
|
|
70
71
|
ArrowDownIcon.defaultProps = {
|
|
@@ -1,6 +1,7 @@
|
|
|
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
5
|
|
|
5
6
|
const ArrowLeftIcon = ({ color, size }) => {
|
|
6
7
|
const className = `${styles.noShrinkForFlex} ` + styles[`${color}`]
|
|
@@ -60,11 +61,11 @@ ArrowLeftIcon.propTypes = {
|
|
|
60
61
|
/**
|
|
61
62
|
* color of text, icon and borders
|
|
62
63
|
*/
|
|
63
|
-
color: PropTypes.oneOf(
|
|
64
|
+
color: PropTypes.oneOf(COLORS_ICON),
|
|
64
65
|
/**
|
|
65
66
|
* Size
|
|
66
67
|
*/
|
|
67
|
-
size: PropTypes.oneOf(
|
|
68
|
+
size: PropTypes.oneOf(SIZES)
|
|
68
69
|
}
|
|
69
70
|
|
|
70
71
|
ArrowLeftIcon.defaultProps = {
|
|
@@ -1,6 +1,7 @@
|
|
|
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
5
|
|
|
5
6
|
const ArrowRightIcon = ({ color, size }) => {
|
|
6
7
|
const className = `${styles.noShrinkForFlex} ` + styles[`${color}`]
|
|
@@ -60,11 +61,11 @@ ArrowRightIcon.propTypes = {
|
|
|
60
61
|
/**
|
|
61
62
|
* color of text, icon and borders
|
|
62
63
|
*/
|
|
63
|
-
color: PropTypes.oneOf(
|
|
64
|
+
color: PropTypes.oneOf(COLORS_ICON),
|
|
64
65
|
/**
|
|
65
66
|
* Size
|
|
66
67
|
*/
|
|
67
|
-
size: PropTypes.oneOf(
|
|
68
|
+
size: PropTypes.oneOf(SIZES)
|
|
68
69
|
}
|
|
69
70
|
|
|
70
71
|
ArrowRightIcon.defaultProps = {
|
|
@@ -1,6 +1,7 @@
|
|
|
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
5
|
|
|
5
6
|
const ArrowUpIcon = ({ color, size }) => {
|
|
6
7
|
const className = `${styles.noShrinkForFlex} ` + styles[`${color}`]
|
|
@@ -60,11 +61,11 @@ ArrowUpIcon.propTypes = {
|
|
|
60
61
|
/**
|
|
61
62
|
* color of text, icon and borders
|
|
62
63
|
*/
|
|
63
|
-
color: PropTypes.oneOf(
|
|
64
|
+
color: PropTypes.oneOf(COLORS_ICON),
|
|
64
65
|
/**
|
|
65
66
|
* Size
|
|
66
67
|
*/
|
|
67
|
-
size: PropTypes.oneOf(
|
|
68
|
+
size: PropTypes.oneOf(SIZES)
|
|
68
69
|
}
|
|
69
70
|
|
|
70
71
|
ArrowUpIcon.defaultProps = {
|
|
@@ -1,6 +1,7 @@
|
|
|
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
5
|
|
|
5
6
|
const BellIcon = ({ color, size }) => {
|
|
6
7
|
const className = `${styles.noShrinkForFlex} ` + styles[`${color}`]
|
|
@@ -63,11 +64,11 @@ BellIcon.propTypes = {
|
|
|
63
64
|
/**
|
|
64
65
|
* color of text, icon and borders
|
|
65
66
|
*/
|
|
66
|
-
color: PropTypes.oneOf(
|
|
67
|
+
color: PropTypes.oneOf(COLORS_ICON),
|
|
67
68
|
/**
|
|
68
69
|
* Size
|
|
69
70
|
*/
|
|
70
|
-
size: PropTypes.oneOf(
|
|
71
|
+
size: PropTypes.oneOf(SIZES)
|
|
71
72
|
}
|
|
72
73
|
|
|
73
74
|
BellIcon.defaultProps = {
|
|
@@ -1,6 +1,7 @@
|
|
|
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
5
|
|
|
5
6
|
const BillingIcon = ({ color, size }) => {
|
|
6
7
|
const className = `${styles.noShrinkForFlex} ` + styles[`${color}`]
|
|
@@ -83,11 +84,11 @@ BillingIcon.propTypes = {
|
|
|
83
84
|
/**
|
|
84
85
|
* color of text, icon and borders
|
|
85
86
|
*/
|
|
86
|
-
color: PropTypes.oneOf(
|
|
87
|
+
color: PropTypes.oneOf(COLORS_ICON),
|
|
87
88
|
/**
|
|
88
89
|
* Size
|
|
89
90
|
*/
|
|
90
|
-
size: PropTypes.oneOf(
|
|
91
|
+
size: PropTypes.oneOf(SIZES)
|
|
91
92
|
}
|
|
92
93
|
|
|
93
94
|
BillingIcon.defaultProps = {
|
|
@@ -1,6 +1,7 @@
|
|
|
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
5
|
|
|
5
6
|
const Calendar1DayIcon = ({ color, size }) => {
|
|
6
7
|
const className = `${styles.noShrinkForFlex} ` + styles[`${color}`]
|
|
@@ -75,11 +76,11 @@ Calendar1DayIcon.propTypes = {
|
|
|
75
76
|
/**
|
|
76
77
|
* color of text, icon and borders
|
|
77
78
|
*/
|
|
78
|
-
color: PropTypes.oneOf(
|
|
79
|
+
color: PropTypes.oneOf(COLORS_ICON),
|
|
79
80
|
/**
|
|
80
81
|
* Size
|
|
81
82
|
*/
|
|
82
|
-
size: PropTypes.oneOf(
|
|
83
|
+
size: PropTypes.oneOf(SIZES)
|
|
83
84
|
}
|
|
84
85
|
|
|
85
86
|
Calendar1DayIcon.defaultProps = {
|
|
@@ -1,6 +1,7 @@
|
|
|
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
5
|
|
|
5
6
|
const Calendar7DaysIcon = ({ color, size }) => {
|
|
6
7
|
const className = `${styles.noShrinkForFlex} ` + styles[`${color}`]
|
|
@@ -73,11 +74,11 @@ Calendar7DaysIcon.propTypes = {
|
|
|
73
74
|
/**
|
|
74
75
|
* color of text, icon and borders
|
|
75
76
|
*/
|
|
76
|
-
color: PropTypes.oneOf(
|
|
77
|
+
color: PropTypes.oneOf(COLORS_ICON),
|
|
77
78
|
/**
|
|
78
79
|
* Size
|
|
79
80
|
*/
|
|
80
|
-
size: PropTypes.oneOf(
|
|
81
|
+
size: PropTypes.oneOf(SIZES)
|
|
81
82
|
}
|
|
82
83
|
|
|
83
84
|
Calendar7DaysIcon.defaultProps = {
|
|
@@ -1,6 +1,7 @@
|
|
|
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
5
|
|
|
5
6
|
const CalendarIcon = ({ color, size }) => {
|
|
6
7
|
const className = `${styles.noShrinkForFlex} ` + styles[`${color}`]
|
|
@@ -87,11 +88,11 @@ CalendarIcon.propTypes = {
|
|
|
87
88
|
/**
|
|
88
89
|
* color of text, icon and borders
|
|
89
90
|
*/
|
|
90
|
-
color: PropTypes.oneOf(
|
|
91
|
+
color: PropTypes.oneOf(COLORS_ICON),
|
|
91
92
|
/**
|
|
92
93
|
* Size
|
|
93
94
|
*/
|
|
94
|
-
size: PropTypes.oneOf(
|
|
95
|
+
size: PropTypes.oneOf(SIZES)
|
|
95
96
|
}
|
|
96
97
|
|
|
97
98
|
CalendarIcon.defaultProps = {
|
|
@@ -1,6 +1,7 @@
|
|
|
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
5
|
|
|
5
6
|
const CircleAddIcon = ({ color, size }) => {
|
|
6
7
|
const className = `${styles.noShrinkForFlex} ` + styles[`${color}`]
|
|
@@ -66,11 +67,11 @@ CircleAddIcon.propTypes = {
|
|
|
66
67
|
/**
|
|
67
68
|
* color of text, icon and borders
|
|
68
69
|
*/
|
|
69
|
-
color: PropTypes.oneOf(
|
|
70
|
+
color: PropTypes.oneOf(COLORS_ICON),
|
|
70
71
|
/**
|
|
71
72
|
* Size
|
|
72
73
|
*/
|
|
73
|
-
size: PropTypes.oneOf(
|
|
74
|
+
size: PropTypes.oneOf(SIZES)
|
|
74
75
|
}
|
|
75
76
|
|
|
76
77
|
CircleAddIcon.defaultProps = {
|
|
@@ -1,6 +1,7 @@
|
|
|
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
5
|
|
|
5
6
|
const CircleArrowLeftIcon = ({ color, size }) => {
|
|
6
7
|
const className = `${styles.noShrinkForFlex} ` + styles[`${color}`]
|
|
@@ -80,11 +81,11 @@ CircleArrowLeftIcon.propTypes = {
|
|
|
80
81
|
/**
|
|
81
82
|
* color of text, icon and borders
|
|
82
83
|
*/
|
|
83
|
-
color: PropTypes.oneOf(
|
|
84
|
+
color: PropTypes.oneOf(COLORS_ICON),
|
|
84
85
|
/**
|
|
85
86
|
* Size
|
|
86
87
|
*/
|
|
87
|
-
size: PropTypes.oneOf(
|
|
88
|
+
size: PropTypes.oneOf(SIZES)
|
|
88
89
|
}
|
|
89
90
|
|
|
90
91
|
CircleArrowLeftIcon.defaultProps = {
|