@platformatic/ui-components 0.1.52 → 0.1.54
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/README.md +12 -0
- package/package.json +1 -1
- package/src/components/Modal.jsx +1 -1
- package/src/components/Sidebar.jsx +2 -2
- package/src/components/SimpleMetric.jsx +1 -1
- package/src/components/forms/Preview.jsx +1 -1
- package/src/components/icons/AddIcon.jsx +2 -2
- package/src/components/icons/AlertIcon.jsx +2 -2
- package/src/components/icons/AllInOneIcon.jsx +2 -2
- package/src/components/icons/ApiCloudIcon.jsx +2 -2
- package/src/components/icons/ApiEmptyIcon.jsx +140 -106
- package/src/components/icons/ApiIcon.jsx +2 -2
- package/src/components/icons/ApiIconClosed.jsx +51 -18
- package/src/components/icons/AppEmptyIcon.jsx +126 -93
- package/src/components/icons/AppIcon.jsx +2 -2
- package/src/components/icons/AppListIcon.jsx +101 -71
- package/src/components/icons/ArrowDownFullIcon.jsx +2 -2
- package/src/components/icons/ArrowDownIcon.jsx +2 -2
- package/src/components/icons/ArrowLeftIcon.jsx +2 -2
- package/src/components/icons/ArrowRightIcon.jsx +2 -2
- package/src/components/icons/ArrowUpIcon.jsx +2 -2
- package/src/components/icons/BellIcon.jsx +78 -0
- package/src/components/icons/BillingIcon.jsx +98 -0
- package/src/components/icons/Calendar1DayIcon.jsx +2 -2
- package/src/components/icons/Calendar7DaysIcon.jsx +2 -2
- package/src/components/icons/CalendarIcon.jsx +2 -2
- package/src/components/icons/CircleAddIcon.jsx +2 -2
- package/src/components/icons/CircleBackIcon.jsx +46 -24
- package/src/components/icons/CircleCheckMarkIcon.jsx +41 -29
- package/src/components/icons/CircleCloseHoverIcon.jsx +62 -36
- package/src/components/icons/CircleCloseIcon.jsx +52 -26
- package/src/components/icons/CircleExclamationIcon.jsx +87 -24
- package/src/components/icons/CloseIcon.jsx +2 -2
- package/src/components/icons/CopyPasteIcon.jsx +2 -2
- package/src/components/icons/DatabaseIcon.jsx +2 -2
- package/src/components/icons/EditIcon.jsx +2 -2
- package/src/components/icons/EnlargeIcon.jsx +85 -0
- package/src/components/icons/EntryIcon.jsx +82 -0
- package/src/components/icons/GearIcon.jsx +4 -4
- package/src/components/icons/GraphQLIcon.jsx +98 -0
- package/src/components/icons/Icons.module.css +6 -0
- package/src/components/icons/KeyIcon.jsx +85 -0
- package/src/components/icons/LayersIcon.jsx +81 -0
- package/src/components/icons/LensIcon.jsx +79 -0
- package/src/components/icons/LiveIcon.jsx +60 -18
- package/src/components/icons/LogOutIcon.jsx +81 -0
- package/src/components/icons/MetricsIcon.jsx +80 -47
- package/src/components/icons/PlayIcon.jsx +57 -2
- package/src/components/icons/PullRequestIcon.jsx +87 -30
- package/src/components/icons/SendIcon.jsx +75 -0
- package/src/components/icons/SocialDiscordIcon.jsx +79 -0
- package/src/components/icons/SocialGitHubIcon.jsx +98 -0
- package/src/components/icons/SocialGitLabIcon.jsx +122 -0
- package/src/components/icons/SocialLinkedInIcon.jsx +85 -0
- package/src/components/icons/SocialNPMIcon.jsx +77 -0
- package/src/components/icons/SocialTwitterIcon.jsx +77 -0
- package/src/components/icons/StopIcon.jsx +59 -2
- package/src/components/icons/TerminalIcon.jsx +62 -2
- package/src/components/icons/UpgradeIcon.jsx +70 -1
- package/src/components/icons/Users2Icon.jsx +2 -2
- package/src/components/icons/WorkspaceDynamicIcon.jsx +2 -2
- package/src/components/icons/WorkspaceReadyIcon.jsx +2 -2
- package/src/components/icons/WorkspaceStaticIcon.jsx +2 -2
- package/src/components/icons/index.js +33 -1
- package/src/stories/PlatformaticIcon.stories.jsx +1 -1
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
import * as React from 'react'
|
|
2
|
+
import PropTypes from 'prop-types'
|
|
3
|
+
import styles from './Icons.module.css'
|
|
4
|
+
|
|
5
|
+
const AddIcon = ({ color, size }) => {
|
|
6
|
+
const className = `${styles.noShrinkForFlex} ` + styles[`${color}`]
|
|
7
|
+
let icon = <></>
|
|
8
|
+
|
|
9
|
+
switch (size) {
|
|
10
|
+
case 'small':
|
|
11
|
+
icon = (
|
|
12
|
+
<svg
|
|
13
|
+
width={16}
|
|
14
|
+
height={16}
|
|
15
|
+
viewBox='0 0 16 16'
|
|
16
|
+
fill='none'
|
|
17
|
+
xmlns='http://www.w3.org/2000/svg'
|
|
18
|
+
className={className}
|
|
19
|
+
>
|
|
20
|
+
<path d='M10.5 9.38763L14 10.9803L8.19355 13.9999L2 10.9803L5.83132 9.34583' stroke='none' strokeLinejoin='round' />
|
|
21
|
+
<path d='M11.0968 6.24634L14 7.56744L8.19355 10.5871L2 7.56744L5.09677 6.24634' stroke='none' strokeLinejoin='round' />
|
|
22
|
+
<path d='M8.19355 7.66186L2 4.6422L8.19355 2L14 4.6422L8.19355 7.66186Z' stroke='none' strokeLinejoin='round' />
|
|
23
|
+
</svg>
|
|
24
|
+
)
|
|
25
|
+
break
|
|
26
|
+
case 'medium':
|
|
27
|
+
icon = (
|
|
28
|
+
<svg
|
|
29
|
+
width={24}
|
|
30
|
+
height={24}
|
|
31
|
+
viewBox='0 0 24 24'
|
|
32
|
+
fill='none'
|
|
33
|
+
xmlns='http://www.w3.org/2000/svg'
|
|
34
|
+
className={className}
|
|
35
|
+
>
|
|
36
|
+
<path d='M15.75 14.0815L21 16.4705L12.2903 21L3 16.4705L8.74699 14.0188' stroke='none' strokeWidth={1.5} strokeLinejoin='round' />
|
|
37
|
+
<path d='M16.6452 9.36963L21 11.3513L12.2903 15.8808L3 11.3513L7.64516 9.36963' stroke='none' strokeWidth={1.5} strokeLinejoin='round' />
|
|
38
|
+
<path d='M12.2903 11.4928L3 6.9633L12.2903 3L21 6.9633L12.2903 11.4928Z' stroke='none' strokeWidth={1.5} strokeLinejoin='round' />
|
|
39
|
+
</svg>
|
|
40
|
+
)
|
|
41
|
+
break
|
|
42
|
+
case 'large':
|
|
43
|
+
icon = (
|
|
44
|
+
<svg
|
|
45
|
+
width={40}
|
|
46
|
+
height={40}
|
|
47
|
+
viewBox='0 0 40 40'
|
|
48
|
+
fill='none'
|
|
49
|
+
xmlns='http://www.w3.org/2000/svg'
|
|
50
|
+
className={className}
|
|
51
|
+
>
|
|
52
|
+
<path d='M26.25 23.4693L35 27.4509L20.4839 35.0001L5 27.4509L14.5783 23.3647' stroke='none' strokeWidth={2} strokeLinejoin='round' />
|
|
53
|
+
<path d='M27.7419 15.616L35 18.9187L20.4839 26.4679L5 18.9187L12.7419 15.616' stroke='none' strokeWidth={2} strokeLinejoin='round' />
|
|
54
|
+
<path d='M20.4839 19.1547L5 11.6055L20.4839 5L35 11.6055L20.4839 19.1547Z' stroke='none' strokeWidth={2} strokeLinejoin='round' />
|
|
55
|
+
</svg>
|
|
56
|
+
)
|
|
57
|
+
break
|
|
58
|
+
|
|
59
|
+
default:
|
|
60
|
+
break
|
|
61
|
+
}
|
|
62
|
+
return icon
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
AddIcon.propTypes = {
|
|
66
|
+
/**
|
|
67
|
+
* color of text, icon and borders
|
|
68
|
+
*/
|
|
69
|
+
color: PropTypes.oneOf(['green', 'white', 'main-dark-blue', 'red']),
|
|
70
|
+
/**
|
|
71
|
+
* Size
|
|
72
|
+
*/
|
|
73
|
+
size: PropTypes.oneOf(['small', 'medium', 'large', 'extra-large'])
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
AddIcon.defaultProps = {
|
|
77
|
+
color: 'main-dark-blue',
|
|
78
|
+
size: 'medium'
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
export default AddIcon
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
import * as React from 'react'
|
|
2
|
+
import PropTypes from 'prop-types'
|
|
3
|
+
import styles from './Icons.module.css'
|
|
4
|
+
|
|
5
|
+
const LensIcon = ({ color, size }) => {
|
|
6
|
+
const className = `${styles.noShrinkForFlex} ` + styles[`${color}`]
|
|
7
|
+
let icon = <></>
|
|
8
|
+
|
|
9
|
+
switch (size) {
|
|
10
|
+
case 'small':
|
|
11
|
+
icon = (
|
|
12
|
+
<svg
|
|
13
|
+
width={16}
|
|
14
|
+
height={16}
|
|
15
|
+
viewBox='0 0 16 16'
|
|
16
|
+
fill='none'
|
|
17
|
+
xmlns='http://www.w3.org/2000/svg'
|
|
18
|
+
className={className}
|
|
19
|
+
>
|
|
20
|
+
<circle cx={7} cy={7} r={5} stroke='none' />
|
|
21
|
+
<path d='M14 14L11 11' stroke='none' strokeLinecap='round' strokeLinejoin='round' />
|
|
22
|
+
</svg>
|
|
23
|
+
)
|
|
24
|
+
break
|
|
25
|
+
case 'medium':
|
|
26
|
+
icon = (
|
|
27
|
+
<svg
|
|
28
|
+
width={24}
|
|
29
|
+
height={24}
|
|
30
|
+
viewBox='0 0 24 24'
|
|
31
|
+
fill='none'
|
|
32
|
+
xmlns='http://www.w3.org/2000/svg'
|
|
33
|
+
className={className}
|
|
34
|
+
>
|
|
35
|
+
<circle cx={10.5} cy={10.5} r={7.5} stroke='none' strokeWidth={1.5} />
|
|
36
|
+
<path d='M21 21L16.5 16.5' stroke='none' strokeWidth={1.5} strokeLinecap='round' strokeLinejoin='round' />
|
|
37
|
+
|
|
38
|
+
</svg>
|
|
39
|
+
)
|
|
40
|
+
break
|
|
41
|
+
case 'large':
|
|
42
|
+
icon = (
|
|
43
|
+
<svg
|
|
44
|
+
width={40}
|
|
45
|
+
height={40}
|
|
46
|
+
viewBox='0 0 40 40'
|
|
47
|
+
fill='none'
|
|
48
|
+
xmlns='http://www.w3.org/2000/svg'
|
|
49
|
+
className={className}
|
|
50
|
+
>
|
|
51
|
+
<circle cx={17.5} cy={17.5} r={12.5} stroke='none' strokeWidth={2} />
|
|
52
|
+
<path d='M35 35L27.5 27.5' stroke='none' strokeWidth={2} strokeLinecap='round' strokeLinejoin='round' />
|
|
53
|
+
</svg>
|
|
54
|
+
)
|
|
55
|
+
break
|
|
56
|
+
|
|
57
|
+
default:
|
|
58
|
+
break
|
|
59
|
+
}
|
|
60
|
+
return icon
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
LensIcon.propTypes = {
|
|
64
|
+
/**
|
|
65
|
+
* color of text, icon and borders
|
|
66
|
+
*/
|
|
67
|
+
color: PropTypes.oneOf(['green', 'white', 'main-dark-blue', 'red']),
|
|
68
|
+
/**
|
|
69
|
+
* Size
|
|
70
|
+
*/
|
|
71
|
+
size: PropTypes.oneOf(['small', 'medium', 'large', 'extra-large'])
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
LensIcon.defaultProps = {
|
|
75
|
+
color: 'main-dark-blue',
|
|
76
|
+
size: 'medium'
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
export default LensIcon
|
|
@@ -1,8 +1,12 @@
|
|
|
1
1
|
import * as React from 'react'
|
|
2
|
+
import PropTypes from 'prop-types'
|
|
2
3
|
import styles from './Icons.module.css'
|
|
3
|
-
|
|
4
|
+
|
|
5
|
+
const LiveIcon = ({ color, size }) => {
|
|
4
6
|
const className = `${styles.noShrinkForFlex} ` + styles[`${color}`]
|
|
7
|
+
const filledClassName = styles[`filled-${color}`]
|
|
5
8
|
let icon = <></>
|
|
9
|
+
|
|
6
10
|
switch (size) {
|
|
7
11
|
case 'small':
|
|
8
12
|
icon = (
|
|
@@ -14,30 +18,68 @@ const LiveIcon = ({ color = 'green', size = 'normal' }) => {
|
|
|
14
18
|
xmlns='http://www.w3.org/2000/svg'
|
|
15
19
|
className={className}
|
|
16
20
|
>
|
|
17
|
-
<circle cx={8} cy={8.
|
|
18
|
-
<path
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
strokeLinecap='round'
|
|
22
|
-
strokeLinejoin='round'
|
|
23
|
-
/>
|
|
24
|
-
<path
|
|
25
|
-
d='M11 5.39722C11.9206 6.2212 12.5 7.41863 12.5 8.75138C12.5 10.0841 11.9206 11.2816 11 12.1055M5 5.39722C4.07938 6.2212 3.5 7.41863 3.5 8.75138C3.5 10.0841 4.07938 11.2816 5 12.1055'
|
|
26
|
-
stroke='none'
|
|
27
|
-
strokeLinecap='round'
|
|
28
|
-
/>
|
|
29
|
-
<path
|
|
30
|
-
d='M12 4.27916C13.2275 5.3778 14 6.97437 14 8.75137C14 10.6328 13.134 12.312 11.779 13.412M4.33558 4C2.91494 5.09726 2 6.81747 2 8.75137C2 10.5434 2.78563 12.152 4.03126 13.2514'
|
|
31
|
-
stroke='none'
|
|
32
|
-
strokeLinecap='round'
|
|
33
|
-
/>
|
|
21
|
+
<circle cx={8} cy={8.75134} r={1.5} fill='none' className={filledClassName} />
|
|
22
|
+
<path d='M6 6.51526C5.38625 7.06458 5 7.86287 5 8.75137C5 9.63987 5.38625 10.4382 6 10.9875M10 6.51526C10.6137 7.06458 11 7.86287 11 8.75137C11 9.63986 10.6137 10.4382 10 10.9875' stroke='none' strokeLinecap='round' strokeLinejoin='round' />
|
|
23
|
+
<path d='M11 5.39722C11.9206 6.2212 12.5 7.41863 12.5 8.75138C12.5 10.0841 11.9206 11.2816 11 12.1055M5 5.39722C4.07938 6.2212 3.5 7.41863 3.5 8.75138C3.5 10.0841 4.07938 11.2816 5 12.1055' stroke='none' strokeLinecap='round' />
|
|
24
|
+
<path d='M12 4.27916C13.2275 5.3778 14 6.97437 14 8.75137C14 10.6328 13.134 12.312 11.779 13.412M4.33558 4C2.91494 5.09726 2 6.81747 2 8.75137C2 10.5434 2.78563 12.152 4.03126 13.2514' stroke='none' strokeLinecap='round' />
|
|
34
25
|
</svg>
|
|
35
26
|
)
|
|
36
27
|
break
|
|
28
|
+
case 'medium':
|
|
29
|
+
icon = (
|
|
30
|
+
<svg
|
|
31
|
+
width={24}
|
|
32
|
+
height={24}
|
|
33
|
+
viewBox='0 0 24 24'
|
|
34
|
+
fill='none'
|
|
35
|
+
xmlns='http://www.w3.org/2000/svg'
|
|
36
|
+
className={className}
|
|
37
|
+
>
|
|
38
|
+
<circle cx={12} cy={13.1271} r={2.25} fill='none' className={filledClassName} />
|
|
39
|
+
<path d='M9 9.77295C8.07938 10.5969 7.5 11.7944 7.5 13.1271C7.5 14.4599 8.07938 15.6573 9 16.4813M15 9.77295C15.9206 10.5969 16.5 11.7944 16.5 13.1271C16.5 14.4599 15.9206 15.6573 15 16.4813' stroke='none' strokeWidth={1.5} strokeLinecap='round' strokeLinejoin='round' />
|
|
40
|
+
<path d='M16.5 8.09583C17.8809 9.3318 18.75 11.1279 18.75 13.1271C18.75 15.1262 17.8809 16.9223 16.5 18.1583M7.5 8.09583C6.11906 9.3318 5.25 11.1279 5.25 13.1271C5.25 15.1262 6.11906 16.9223 7.5 18.1583' stroke='none' strokeWidth={1.5} strokeLinecap='round' />
|
|
41
|
+
<path d='M18 6.41874C19.8412 8.0667 21 10.4616 21 13.1271C21 15.9492 19.7011 18.4679 17.6684 20.1181M6.50337 6C4.37242 7.64589 3 10.2262 3 13.1271C3 15.8151 4.17845 18.2279 6.0469 19.8771' stroke='none' strokeWidth={1.5} strokeLinecap='round' />
|
|
42
|
+
</svg>
|
|
43
|
+
)
|
|
44
|
+
break
|
|
45
|
+
case 'large':
|
|
46
|
+
icon = (
|
|
47
|
+
<svg
|
|
48
|
+
width={40}
|
|
49
|
+
height={40}
|
|
50
|
+
viewBox='0 0 40 40'
|
|
51
|
+
fill='none'
|
|
52
|
+
xmlns='http://www.w3.org/2000/svg'
|
|
53
|
+
className={className}
|
|
54
|
+
>
|
|
55
|
+
<circle cx={20} cy={21.8784} r={3.75} fill='none' className={filledClassName} />
|
|
56
|
+
<path d='M15 16.2882C13.4656 17.6615 12.5 19.6572 12.5 21.8785C12.5 24.0997 13.4656 26.0954 15 27.4687M25 16.2882C26.5344 17.6615 27.5 19.6572 27.5 21.8785C27.5 24.0997 26.5344 26.0954 25 27.4687' stroke='none' strokeWidth={2} strokeLinecap='round' strokeLinejoin='round' />
|
|
57
|
+
<path d='M27.5 13.493C29.8016 15.553 31.25 18.5466 31.25 21.8784C31.25 25.2103 29.8016 28.2039 27.5 30.2638M12.5 13.493C10.1984 15.553 8.75 18.5466 8.75 21.8784C8.75 25.2103 10.1984 28.2039 12.5 30.2638' stroke='none' strokeWidth={2} strokeLinecap='round' />
|
|
58
|
+
<path d='M30 10.6979C33.0687 13.4445 35 17.4359 35 21.8784C35 26.582 32.8351 30.7799 29.4474 33.5301M10.8389 10C7.28736 12.7431 5 17.0437 5 21.8784C5 26.3585 6.96408 30.3799 10.0782 33.1284' stroke='none' strokeWidth={2} strokeLinecap='round' />
|
|
59
|
+
</svg>
|
|
60
|
+
)
|
|
61
|
+
break
|
|
62
|
+
|
|
37
63
|
default:
|
|
38
64
|
break
|
|
39
65
|
}
|
|
40
66
|
return icon
|
|
41
67
|
}
|
|
42
68
|
|
|
69
|
+
LiveIcon.propTypes = {
|
|
70
|
+
/**
|
|
71
|
+
* color of text, icon and borders
|
|
72
|
+
*/
|
|
73
|
+
color: PropTypes.oneOf(['green', 'white', 'main-dark-blue', 'red']),
|
|
74
|
+
/**
|
|
75
|
+
* Size
|
|
76
|
+
*/
|
|
77
|
+
size: PropTypes.oneOf(['small', 'medium', 'large', 'extra-large'])
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
LiveIcon.defaultProps = {
|
|
81
|
+
color: 'main-dark-blue',
|
|
82
|
+
size: 'medium'
|
|
83
|
+
}
|
|
84
|
+
|
|
43
85
|
export default LiveIcon
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
import * as React from 'react'
|
|
2
|
+
import PropTypes from 'prop-types'
|
|
3
|
+
import styles from './Icons.module.css'
|
|
4
|
+
|
|
5
|
+
const LogOutIcon = ({ color, size }) => {
|
|
6
|
+
const className = `${styles.noShrinkForFlex} ` + styles[`${color}`]
|
|
7
|
+
let icon = <></>
|
|
8
|
+
|
|
9
|
+
switch (size) {
|
|
10
|
+
case 'small':
|
|
11
|
+
icon = (
|
|
12
|
+
<svg
|
|
13
|
+
width={16}
|
|
14
|
+
height={16}
|
|
15
|
+
viewBox='0 0 16 16'
|
|
16
|
+
fill='none'
|
|
17
|
+
xmlns='http://www.w3.org/2000/svg'
|
|
18
|
+
className={className}
|
|
19
|
+
>
|
|
20
|
+
<path d='M8.38687 5.5V3C8.38687 2.44772 7.93915 2 7.38687 2H3C2.44772 2 2 2.44772 2 3V13C2 13.5523 2.44771 14 3 14H7.38687C7.93915 14 8.38687 13.5523 8.38687 13V11.5' stroke='none' strokeLinecap='round' />
|
|
21
|
+
<path d='M10.7742 5.3031L14 8.33356L10.7742 11.364' stroke='none' strokeLinecap='round' strokeLinejoin='round' />
|
|
22
|
+
<path d='M13.3548 8.3335L6.25796 8.3335' stroke='none' strokeLinecap='round' strokeLinejoin='round' />
|
|
23
|
+
</svg>
|
|
24
|
+
)
|
|
25
|
+
break
|
|
26
|
+
case 'medium':
|
|
27
|
+
icon = (
|
|
28
|
+
<svg
|
|
29
|
+
width={24}
|
|
30
|
+
height={24}
|
|
31
|
+
viewBox='0 0 24 24'
|
|
32
|
+
fill='none'
|
|
33
|
+
xmlns='http://www.w3.org/2000/svg'
|
|
34
|
+
className={className}
|
|
35
|
+
>
|
|
36
|
+
<path d='M12.5803 8.25V4C12.5803 3.44772 12.1326 3 11.5803 3H4C3.44772 3 3 3.44772 3 4V20C3 20.5523 3.44772 21 4 21H11.5803C12.1326 21 12.5803 20.5523 12.5803 20V17.25' stroke='none' strokeWidth={1.5} strokeLinecap='round' />
|
|
37
|
+
<path d='M16.1611 7.95459L20.9999 12.5003L16.1611 17.046' stroke='none' strokeWidth={1.5} strokeLinecap='round' strokeLinejoin='round' />
|
|
38
|
+
<path d='M20.0321 12.5003L9.38681 12.5003' stroke='none' strokeWidth={1.5} strokeLinecap='round' strokeLinejoin='round' />
|
|
39
|
+
</svg>
|
|
40
|
+
)
|
|
41
|
+
break
|
|
42
|
+
case 'large':
|
|
43
|
+
icon = (
|
|
44
|
+
<svg
|
|
45
|
+
width={40}
|
|
46
|
+
height={40}
|
|
47
|
+
viewBox='0 0 40 40'
|
|
48
|
+
fill='none'
|
|
49
|
+
xmlns='http://www.w3.org/2000/svg'
|
|
50
|
+
className={className}
|
|
51
|
+
>
|
|
52
|
+
<path d='M20.9672 13.75V6C20.9672 5.44772 20.5195 5 19.9672 5H6C5.44772 5 5 5.44772 5 6V34C5 34.5523 5.44772 35 6 35H19.9672C20.5195 35 20.9672 34.5523 20.9672 34V28.75' stroke='none' strokeWidth={2} strokeLinecap='round' />
|
|
53
|
+
<path d='M26.9353 13.2577L34.9999 20.8338L26.9353 28.41' stroke='none' strokeWidth={2} strokeLinecap='round' strokeLinejoin='round' />
|
|
54
|
+
<path d='M33.387 20.8338L15.6448 20.8338' stroke='none' strokeWidth={2} strokeLinecap='round' strokeLinejoin='round' />
|
|
55
|
+
</svg>
|
|
56
|
+
)
|
|
57
|
+
break
|
|
58
|
+
|
|
59
|
+
default:
|
|
60
|
+
break
|
|
61
|
+
}
|
|
62
|
+
return icon
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
LogOutIcon.propTypes = {
|
|
66
|
+
/**
|
|
67
|
+
* color of text, icon and borders
|
|
68
|
+
*/
|
|
69
|
+
color: PropTypes.oneOf(['green', 'white', 'main-dark-blue', 'red']),
|
|
70
|
+
/**
|
|
71
|
+
* Size
|
|
72
|
+
*/
|
|
73
|
+
size: PropTypes.oneOf(['small', 'medium', 'large', 'extra-large'])
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
LogOutIcon.defaultProps = {
|
|
77
|
+
color: 'main-dark-blue',
|
|
78
|
+
size: 'medium'
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
export default LogOutIcon
|
|
@@ -1,52 +1,85 @@
|
|
|
1
1
|
import * as React from 'react'
|
|
2
|
+
import PropTypes from 'prop-types'
|
|
2
3
|
import styles from './Icons.module.css'
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
4
|
+
|
|
5
|
+
const MetricsIcon = ({ color, size }) => {
|
|
6
|
+
const className = `${styles.noShrinkForFlex} ` + styles[`${color}`]
|
|
7
|
+
let icon = <></>
|
|
8
|
+
|
|
9
|
+
switch (size) {
|
|
10
|
+
case 'small':
|
|
11
|
+
icon = (
|
|
12
|
+
<svg
|
|
13
|
+
width={16}
|
|
14
|
+
height={16}
|
|
15
|
+
viewBox='0 0 16 16'
|
|
16
|
+
fill='none'
|
|
17
|
+
xmlns='http://www.w3.org/2000/svg'
|
|
18
|
+
className={className}
|
|
19
|
+
>
|
|
20
|
+
<rect x={4} y={5} width={2} height={7} rx={0.5} stroke='none' />
|
|
21
|
+
<rect x={8} y={8} width={2} height={4} rx={0.5} stroke='none' />
|
|
22
|
+
<rect x={12} y={2} width={2} height={10} rx={0.5} stroke='none' />
|
|
23
|
+
<path d='M2 2V14H14' stroke='none' strokeLinecap='round' strokeLinejoin='round' />
|
|
24
|
+
|
|
25
|
+
</svg>
|
|
26
|
+
)
|
|
27
|
+
break
|
|
28
|
+
case 'medium':
|
|
29
|
+
icon = (
|
|
30
|
+
<svg
|
|
31
|
+
width={24}
|
|
32
|
+
height={24}
|
|
33
|
+
viewBox='0 0 24 24'
|
|
34
|
+
fill='none'
|
|
35
|
+
xmlns='http://www.w3.org/2000/svg'
|
|
36
|
+
className={className}
|
|
37
|
+
>
|
|
38
|
+
<rect x={6} y={7.5} width={3} height={10.5} rx={0.5} stroke='none' strokeWidth={1.5} />
|
|
39
|
+
<rect x={12} y={12} width={3} height={6} rx={0.5} stroke='none' strokeWidth={1.5} />
|
|
40
|
+
<rect x={18} y={3} width={3} height={15} rx={0.5} stroke='none' strokeWidth={1.5} />
|
|
41
|
+
<path d='M3 3V21H21' stroke='none' strokeWidth={1.5} strokeLinecap='round' strokeLinejoin='round' />
|
|
42
|
+
</svg>
|
|
43
|
+
)
|
|
44
|
+
break
|
|
45
|
+
case 'large':
|
|
46
|
+
icon = (
|
|
47
|
+
<svg
|
|
48
|
+
width={40}
|
|
49
|
+
height={40}
|
|
50
|
+
viewBox='0 0 40 40'
|
|
51
|
+
fill='none'
|
|
52
|
+
xmlns='http://www.w3.org/2000/svg'
|
|
53
|
+
className={className}
|
|
54
|
+
>
|
|
55
|
+
<rect x={10} y={12.5} width={5} height={17.5} rx={0.5} stroke='none' strokeWidth={2} />
|
|
56
|
+
<rect x={20} y={20} width={5} height={10} rx={0.5} stroke='none' strokeWidth={2} />
|
|
57
|
+
<rect x={30} y={5} width={5} height={25} rx={0.5} stroke='none' strokeWidth={2} />
|
|
58
|
+
<path d='M5 5V35H35' stroke='none' strokeWidth={2} strokeLinecap='round' strokeLinejoin='round' />
|
|
59
|
+
</svg>
|
|
60
|
+
)
|
|
61
|
+
break
|
|
62
|
+
|
|
63
|
+
default:
|
|
64
|
+
break
|
|
65
|
+
}
|
|
66
|
+
return icon
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
MetricsIcon.propTypes = {
|
|
70
|
+
/**
|
|
71
|
+
* color of text, icon and borders
|
|
72
|
+
*/
|
|
73
|
+
color: PropTypes.oneOf(['green', 'white', 'main-dark-blue', 'red']),
|
|
74
|
+
/**
|
|
75
|
+
* Size
|
|
76
|
+
*/
|
|
77
|
+
size: PropTypes.oneOf(['small', 'medium', 'large', 'extra-large'])
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
MetricsIcon.defaultProps = {
|
|
81
|
+
color: 'main-dark-blue',
|
|
82
|
+
size: 'medium'
|
|
50
83
|
}
|
|
51
84
|
|
|
52
85
|
export default MetricsIcon
|
|
@@ -1,20 +1,75 @@
|
|
|
1
1
|
import * as React from 'react'
|
|
2
|
+
import PropTypes from 'prop-types'
|
|
2
3
|
import styles from './Icons.module.css'
|
|
3
|
-
|
|
4
|
+
|
|
5
|
+
const PlayIcon = ({ color, size }) => {
|
|
4
6
|
const className = `${styles.noShrinkForFlex} ` + styles[`${color}`]
|
|
5
7
|
let icon = <></>
|
|
8
|
+
|
|
6
9
|
switch (size) {
|
|
7
10
|
case 'small':
|
|
8
11
|
icon = (
|
|
9
|
-
<svg
|
|
12
|
+
<svg
|
|
13
|
+
width={16}
|
|
14
|
+
height={16}
|
|
15
|
+
viewBox='0 0 16 16'
|
|
16
|
+
fill='none'
|
|
17
|
+
xmlns='http://www.w3.org/2000/svg'
|
|
18
|
+
className={className}
|
|
19
|
+
>
|
|
10
20
|
<path d='M2 2L14 8L2 14V2Z' stroke='none' strokeLinecap='round' strokeLinejoin='round' />
|
|
11
21
|
</svg>
|
|
12
22
|
)
|
|
13
23
|
break
|
|
24
|
+
case 'medium':
|
|
25
|
+
icon = (
|
|
26
|
+
<svg
|
|
27
|
+
width={24}
|
|
28
|
+
height={24}
|
|
29
|
+
viewBox='0 0 24 24'
|
|
30
|
+
fill='none'
|
|
31
|
+
xmlns='http://www.w3.org/2000/svg'
|
|
32
|
+
className={className}
|
|
33
|
+
>
|
|
34
|
+
<path d='M3 3L21 12L3 21V3Z' stroke='none' strokeWidth={1.5} strokeLinecap='round' strokeLinejoin='round' />
|
|
35
|
+
</svg>
|
|
36
|
+
)
|
|
37
|
+
break
|
|
38
|
+
case 'large':
|
|
39
|
+
icon = (
|
|
40
|
+
<svg
|
|
41
|
+
width={40}
|
|
42
|
+
height={40}
|
|
43
|
+
viewBox='0 0 40 40'
|
|
44
|
+
fill='none'
|
|
45
|
+
xmlns='http://www.w3.org/2000/svg'
|
|
46
|
+
className={className}
|
|
47
|
+
>
|
|
48
|
+
<path d='M5 5L35 20L5 35V5Z' stroke='none' strokeWidth={2} strokeLinecap='round' strokeLinejoin='round' />
|
|
49
|
+
</svg>
|
|
50
|
+
)
|
|
51
|
+
break
|
|
52
|
+
|
|
14
53
|
default:
|
|
15
54
|
break
|
|
16
55
|
}
|
|
17
56
|
return icon
|
|
18
57
|
}
|
|
19
58
|
|
|
59
|
+
PlayIcon.propTypes = {
|
|
60
|
+
/**
|
|
61
|
+
* color of text, icon and borders
|
|
62
|
+
*/
|
|
63
|
+
color: PropTypes.oneOf(['green', 'white', 'main-dark-blue', 'red']),
|
|
64
|
+
/**
|
|
65
|
+
* Size
|
|
66
|
+
*/
|
|
67
|
+
size: PropTypes.oneOf(['small', 'medium', 'large', 'extra-large'])
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
PlayIcon.defaultProps = {
|
|
71
|
+
color: 'main-dark-blue',
|
|
72
|
+
size: 'medium'
|
|
73
|
+
}
|
|
74
|
+
|
|
20
75
|
export default PlayIcon
|