@platformatic/ui-components 0.1.50 → 0.1.51
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/api-icon-closed.svg +6 -0
- package/dist/api-icon.svg +9 -0
- package/dist/assets/Montserrat-Regular.dcfe8df2.ttf +0 -0
- package/dist/assets/index.691ca940.css +1 -0
- package/dist/assets/index.ff0dadfc.js +797 -0
- package/dist/index.html +14 -0
- package/dist/stats.html +6177 -0
- package/dist/vite.svg +1 -0
- package/package.json +1 -1
- package/src/components/DropDown.jsx +3 -4
- package/src/components/DropDown.module.css +0 -2
- package/src/components/Modal.jsx +1 -1
- package/src/components/Sidebar.jsx +3 -5
- package/src/components/Sidebar.module.css +8 -4
- package/src/components/forms/Preview.jsx +1 -1
- package/src/components/icons/AddIcon.jsx +78 -0
- package/src/components/icons/AlertIcon.jsx +81 -0
- package/src/components/icons/AllInOneIcon.jsx +111 -0
- package/src/components/icons/ApiCloudIcon.jsx +93 -0
- package/src/components/icons/ApiIcon.jsx +83 -28
- package/src/components/icons/AppIcon.jsx +84 -37
- package/src/components/icons/ArrowDownFullIcon.jsx +76 -0
- package/src/components/icons/ArrowDownIcon.jsx +75 -0
- package/src/components/icons/ArrowLeftIcon.jsx +75 -0
- package/src/components/icons/ArrowRightIcon.jsx +75 -0
- package/src/components/icons/ArrowUpIcon.jsx +75 -0
- package/src/components/icons/Calendar1DayIcon.jsx +90 -0
- package/src/components/icons/Calendar7DaysIcon.jsx +88 -0
- package/src/components/icons/CalendarIcon.jsx +75 -29
- package/src/components/icons/CircleAddIcon.jsx +58 -17
- package/src/components/icons/CloseIcon.jsx +73 -25
- package/src/components/icons/CopyPasteIcon.jsx +81 -0
- package/src/components/icons/DatabaseIcon.jsx +81 -0
- package/src/components/icons/EditIcon.jsx +63 -20
- package/src/components/icons/GearIcon.jsx +67 -29
- package/src/components/icons/Icons.module.css +17 -0
- package/src/components/icons/Users2Icon.jsx +84 -0
- package/src/components/icons/WorkspaceDynamicIcon.jsx +87 -0
- package/src/components/icons/WorkspaceReadyIcon.jsx +144 -0
- package/src/components/icons/WorkspaceStaticIcon.jsx +84 -0
- package/src/components/icons/index.js +35 -15
- package/src/stories/PlatformaticIcon.stories.jsx +7 -1
- package/src/stories/Sidebar.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 +4 -10
- package/src/styles/main.css +8 -1
- package/dist/main.css +0 -704
- package/src/components/icons/Calendar1Icon.jsx +0 -54
- package/src/components/icons/Calendar7Icon.jsx +0 -55
- package/src/components/icons/CopyIcon.jsx +0 -75
- package/src/components/icons/CreatedWorkspaceIcon.jsx +0 -70
- package/src/components/icons/DynamicWorkspaceIcon.jsx +0 -125
- package/src/components/icons/StaticWorkspaceIcon.jsx +0 -119
- package/src/components/icons/TriangleExclamationIcon.jsx +0 -26
package/dist/vite.svg
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" class="iconify iconify--logos" width="31.88" height="32" preserveAspectRatio="xMidYMid meet" viewBox="0 0 256 257"><defs><linearGradient id="IconifyId1813088fe1fbc01fb466" x1="-.828%" x2="57.636%" y1="7.652%" y2="78.411%"><stop offset="0%" stop-color="#41D1FF"></stop><stop offset="100%" stop-color="#BD34FE"></stop></linearGradient><linearGradient id="IconifyId1813088fe1fbc01fb467" x1="43.376%" x2="50.316%" y1="2.242%" y2="89.03%"><stop offset="0%" stop-color="#FFEA83"></stop><stop offset="8.333%" stop-color="#FFDD35"></stop><stop offset="100%" stop-color="#FFA800"></stop></linearGradient></defs><path fill="url(#IconifyId1813088fe1fbc01fb466)" d="M255.153 37.938L134.897 252.976c-2.483 4.44-8.862 4.466-11.382.048L.875 37.958c-2.746-4.814 1.371-10.646 6.827-9.67l120.385 21.517a6.537 6.537 0 0 0 2.322-.004l117.867-21.483c5.438-.991 9.574 4.796 6.877 9.62Z"></path><path fill="url(#IconifyId1813088fe1fbc01fb467)" d="M185.432.063L96.44 17.501a3.268 3.268 0 0 0-2.634 3.014l-5.474 92.456a3.268 3.268 0 0 0 3.997 3.378l24.777-5.718c2.318-.535 4.413 1.507 3.936 3.838l-7.361 36.047c-.495 2.426 1.782 4.5 4.151 3.78l15.304-4.649c2.372-.72 4.652 1.36 4.15 3.788l-11.698 56.621c-.732 3.542 3.979 5.473 5.943 2.437l1.313-2.028l72.516-144.72c1.215-2.423-.88-5.186-3.54-4.672l-25.505 4.922c-2.396.462-4.435-1.77-3.759-4.114l16.646-57.705c.677-2.35-1.37-4.583-3.769-4.113Z"></path></svg>
|
package/package.json
CHANGED
|
@@ -2,8 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
import React, { useState } from 'react'
|
|
4
4
|
import styles from './DropDown.module.css'
|
|
5
|
-
import
|
|
6
|
-
import { faChevronRight, faChevronDown } from '@fortawesome/free-solid-svg-icons'
|
|
5
|
+
import PlatformaticIcon from './PlatformaticIcon'
|
|
7
6
|
export default function DropDown (props) {
|
|
8
7
|
const { pictureUrl, header, items, align = 'left' } = props
|
|
9
8
|
const [open, setOpen] = useState(false)
|
|
@@ -15,8 +14,8 @@ export default function DropDown (props) {
|
|
|
15
14
|
<span className={styles.header} onClick={handleOpen}>
|
|
16
15
|
{pictureUrl && <img src={pictureUrl} height={32} width={32} className={styles.picture} />}
|
|
17
16
|
{header}
|
|
18
|
-
{!open && <
|
|
19
|
-
{open && <
|
|
17
|
+
{!open && <div className={styles.arrow}><PlatformaticIcon iconName='ArrowRightIcon' color='white' onClick={null} /></div>}
|
|
18
|
+
{open && <div className={styles.arrow}><PlatformaticIcon iconName='ArrowDownIcon' color='white' onClick={null} /></div>}
|
|
20
19
|
</span>
|
|
21
20
|
{open && (
|
|
22
21
|
<div className={styles.menu}>
|
package/src/components/Modal.jsx
CHANGED
|
@@ -22,7 +22,7 @@ export default function Modal (props) {
|
|
|
22
22
|
<div className={styles.header}>
|
|
23
23
|
<div className={styles.title}>{title}</div>
|
|
24
24
|
<div className={styles.close} onClick={() => setIsOpen(false)}>
|
|
25
|
-
<CloseIcon />
|
|
25
|
+
<CloseIcon size='small' />
|
|
26
26
|
</div>
|
|
27
27
|
</div>
|
|
28
28
|
<div>
|
|
@@ -30,7 +30,7 @@ function Sidebar (props) {
|
|
|
30
30
|
? (
|
|
31
31
|
<>
|
|
32
32
|
<button type='button' className={styles.buttonExpand} onClick={() => { setCollapsed(false) }}>
|
|
33
|
-
<Icons.
|
|
33
|
+
<Icons.WorkspaceStaticIcon color='white' />
|
|
34
34
|
</button>
|
|
35
35
|
<div className={styles.titleCollapsed} data-testid='lateral-bar-title'>
|
|
36
36
|
{title}
|
|
@@ -40,9 +40,6 @@ function Sidebar (props) {
|
|
|
40
40
|
<button type='button' className={styles.buttonSettings} onClick={onClickSettings}>
|
|
41
41
|
<Icons.GearIcon color='white' />
|
|
42
42
|
</button>
|
|
43
|
-
<div className={styles.titleCollapsed} data-testid='lateral-bar-title'>
|
|
44
|
-
Settings
|
|
45
|
-
</div>
|
|
46
43
|
</div>
|
|
47
44
|
</>
|
|
48
45
|
)
|
|
@@ -68,6 +65,7 @@ function Sidebar (props) {
|
|
|
68
65
|
iconName={item.iconName}
|
|
69
66
|
color={isSelected ? 'green' : 'white'}
|
|
70
67
|
tip={item.title}
|
|
68
|
+
size='normal'
|
|
71
69
|
/>)}
|
|
72
70
|
<div className={`${styles.item} ${isSelected ? styles.itemSelected : ''}`}>
|
|
73
71
|
<span className={styles.itemSubTitle}>{item.subTitle}</span>
|
|
@@ -79,7 +77,7 @@ function Sidebar (props) {
|
|
|
79
77
|
)
|
|
80
78
|
})}
|
|
81
79
|
{/* <Button label='Add' buttonClass='transparent' icon={faPlus} color='white' size='small' inClick={onClickAdd}/> */}
|
|
82
|
-
<button className={`${styles.
|
|
80
|
+
<button className={`${styles.buttonCreate} ${collapsed && styles.buttonItemCollapsed}`} onClick={onClickAdd}>
|
|
83
81
|
<PlatformaticIcon
|
|
84
82
|
iconName='CircleAddIcon'
|
|
85
83
|
color='white'
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
@apply max-w-[96px] text-center;
|
|
7
7
|
}
|
|
8
8
|
.buttonExpand {
|
|
9
|
-
@apply border rounded-md p-
|
|
9
|
+
@apply border rounded-md p-0 border-white;
|
|
10
10
|
}
|
|
11
11
|
.buttonSettings {
|
|
12
12
|
@apply border rounded-md p-1 border-white;
|
|
@@ -18,13 +18,17 @@
|
|
|
18
18
|
top: 1rem;
|
|
19
19
|
}
|
|
20
20
|
.title {
|
|
21
|
-
@apply text-white font-bold
|
|
21
|
+
@apply text-white font-bold pb-6;
|
|
22
22
|
}
|
|
23
23
|
.titleCollapsed {
|
|
24
24
|
@apply text-white text-[10px];
|
|
25
25
|
}
|
|
26
26
|
.buttonItem {
|
|
27
|
-
@apply flex items-center justify-start border-0 w-full;
|
|
27
|
+
@apply flex items-center justify-start border-0 w-full py-1;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
.buttonCreate {
|
|
31
|
+
@apply flex items-center justify-start border-0 w-full pt-1 pb-4;
|
|
28
32
|
}
|
|
29
33
|
.buttonItemCollapsed {
|
|
30
34
|
@apply w-auto;
|
|
@@ -44,7 +48,7 @@
|
|
|
44
48
|
@apply text-light-green;
|
|
45
49
|
}
|
|
46
50
|
.items {
|
|
47
|
-
@apply flex flex-col gap-y-
|
|
51
|
+
@apply flex flex-col gap-y-4;
|
|
48
52
|
}
|
|
49
53
|
.bottom {
|
|
50
54
|
@apply absolute left-0 bottom-[1rem] w-full px-4;
|
|
@@ -12,7 +12,7 @@ function renderParagraph (value, afterValueIcon, afterValueIconColor, onClickAft
|
|
|
12
12
|
<>
|
|
13
13
|
<p className={styles.value}>
|
|
14
14
|
{value}
|
|
15
|
-
{afterValueIcon && (<PlatformaticIcon iconName={afterValueIcon} color={afterValueIconColor} classes={styles.afterIcon} onClick={() => onClickAfterValueIcon} />)}
|
|
15
|
+
{afterValueIcon && (<PlatformaticIcon iconName={afterValueIcon} color={afterValueIconColor} size='normal' classes={styles.afterIcon} onClick={() => onClickAfterValueIcon} />)}
|
|
16
16
|
</p>
|
|
17
17
|
</>
|
|
18
18
|
)
|
|
@@ -0,0 +1,78 @@
|
|
|
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='M2 8H14' stroke='none' strokeLinecap='round' strokeLinejoin='round' />
|
|
21
|
+
<path d='M8 13.9999L8 1.99999' stroke='none' strokeLinecap='round' strokeLinejoin='round' />
|
|
22
|
+
</svg>
|
|
23
|
+
)
|
|
24
|
+
break
|
|
25
|
+
case 'normal':
|
|
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
|
+
<path d='M3 11.9999H20.9999' stroke='none' strokeWidth={1.5} strokeLinecap='round' strokeLinejoin='round' />
|
|
36
|
+
<path d='M12 20.9999L12 3.00001' stroke='none' strokeWidth={1.5} strokeLinecap='round' strokeLinejoin='round' />
|
|
37
|
+
</svg>
|
|
38
|
+
)
|
|
39
|
+
break
|
|
40
|
+
case 'large':
|
|
41
|
+
icon = (
|
|
42
|
+
<svg
|
|
43
|
+
width={40}
|
|
44
|
+
height={40}
|
|
45
|
+
viewBox='0 0 40 40'
|
|
46
|
+
fill='none'
|
|
47
|
+
xmlns='http://www.w3.org/2000/svg'
|
|
48
|
+
className={className}
|
|
49
|
+
>
|
|
50
|
+
<path d='M5 19.9999H34.9999' stroke='none' strokeWidth={2} strokeLinecap='round' strokeLinejoin='round' />
|
|
51
|
+
<path d='M20 34.9999L20 5' stroke='none' strokeWidth={2} strokeLinecap='round' strokeLinejoin='round' />
|
|
52
|
+
</svg>
|
|
53
|
+
)
|
|
54
|
+
break
|
|
55
|
+
|
|
56
|
+
default:
|
|
57
|
+
break
|
|
58
|
+
}
|
|
59
|
+
return icon
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
AddIcon.propTypes = {
|
|
63
|
+
/**
|
|
64
|
+
* color of text, icon and borders
|
|
65
|
+
*/
|
|
66
|
+
color: PropTypes.oneOf(['green', 'white', 'main-dark-blue', 'red']),
|
|
67
|
+
/**
|
|
68
|
+
* Size
|
|
69
|
+
*/
|
|
70
|
+
size: PropTypes.oneOf(['small', 'medium', 'large', 'extra-large'])
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
AddIcon.defaultProps = {
|
|
74
|
+
color: 'main-dark-blue',
|
|
75
|
+
size: 'normal'
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
export default AddIcon
|
|
@@ -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 AlertIcon = ({ 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='M14 14H2L8 2L14 14Z' stroke='none' strokeLinejoin='round' />
|
|
21
|
+
<path d='M8 6V10.5' stroke='none' strokeLinecap='round' strokeLinejoin='round' />
|
|
22
|
+
<circle cx='8' cy='12' r='0.5' fill='none' />
|
|
23
|
+
</svg>
|
|
24
|
+
)
|
|
25
|
+
break
|
|
26
|
+
case 'normal':
|
|
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='M21 21H3L12 3L21 21Z' stroke='none' strokeWidth={1.5} strokeLinejoin='round' />
|
|
37
|
+
<path d='M12 9V15.75' stroke='none' strokeWidth={1.5} strokeLinecap='round' strokeLinejoin='round' />
|
|
38
|
+
<circle cx={12} cy={18} r={0.75} fill='none' />
|
|
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='M35 35H5L20 5L35 35Z' stroke='none' strokeWidth={2} strokeLinejoin='round' />
|
|
53
|
+
<path d='M20 15V26.25' stroke='none' strokeWidth={2} strokeLinecap='round' strokeLinejoin='round' />
|
|
54
|
+
<circle cx={20} cy={30} r={1.25} fill='none' />
|
|
55
|
+
</svg>
|
|
56
|
+
)
|
|
57
|
+
break
|
|
58
|
+
|
|
59
|
+
default:
|
|
60
|
+
break
|
|
61
|
+
}
|
|
62
|
+
return icon
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
AlertIcon.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
|
+
AlertIcon.defaultProps = {
|
|
77
|
+
color: 'red',
|
|
78
|
+
size: 'small'
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
export default AlertIcon
|
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
import * as React from 'react'
|
|
2
|
+
import PropTypes from 'prop-types'
|
|
3
|
+
import styles from './Icons.module.css'
|
|
4
|
+
|
|
5
|
+
const AllInOneIcon = ({ 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={8} cy={8} r={2} stroke='none' />
|
|
21
|
+
<circle cx={13} cy={3} r={1} stroke='none' />
|
|
22
|
+
<circle cx={4} cy={4} r={1} stroke='none' />
|
|
23
|
+
<circle cx={8} cy={3} r={1} stroke='none' />
|
|
24
|
+
<circle cx={8} cy={13} r={1} transform='rotate(-180 8 13)' stroke='none' />
|
|
25
|
+
<circle cx={12} cy={12} r={1} stroke='none' />
|
|
26
|
+
<path d='M12 11V10C12 9.44772 11.5523 9 11 9H9.5' stroke='none' strokeLinejoin='round' />
|
|
27
|
+
<circle cx={3} cy={13} r={1} stroke='none' />
|
|
28
|
+
<path d='M3 12V10.5C3 9.94772 3.44772 9.5 4 9.5H6.5' stroke='none' strokeLinejoin='round' />
|
|
29
|
+
<path d='M4 5C4 5.53386 4 6.35273 4 7.00014C4 7.55243 4.44772 8 5 8H6' stroke='none' strokeLinejoin='round' />
|
|
30
|
+
<path d='M8 4V6' stroke='none' strokeLinejoin='round' />
|
|
31
|
+
<path d='M13 4V6C13 6.55228 12.5523 7 12 7H9.5' stroke='none' strokeLinejoin='round' />
|
|
32
|
+
<path d='M8 12L8 10' stroke='none' strokeLinejoin='round' />
|
|
33
|
+
</svg>
|
|
34
|
+
)
|
|
35
|
+
break
|
|
36
|
+
case 'normal':
|
|
37
|
+
icon = (
|
|
38
|
+
<svg
|
|
39
|
+
width={24}
|
|
40
|
+
height={24}
|
|
41
|
+
viewBox='0 0 24 24'
|
|
42
|
+
fill='none'
|
|
43
|
+
xmlns='http://www.w3.org/2000/svg'
|
|
44
|
+
className={className}
|
|
45
|
+
>
|
|
46
|
+
<circle cx={12} cy={12} r={3} stroke='none' strokeWidth={1.5} />
|
|
47
|
+
<circle cx={19.5} cy={4.5} r={1.5} stroke='none' strokeWidth={1.5} />
|
|
48
|
+
<circle cx={6} cy={6} r={1.5} stroke='none' strokeWidth={1.5} />
|
|
49
|
+
<circle cx={12} cy={4.5} r={1.5} stroke='none' strokeWidth={1.5} />
|
|
50
|
+
<circle cx={12} cy={19.5} r={1.5} transform='rotate(-180 12 19.5)' stroke='none' strokeWidth={1.5} />
|
|
51
|
+
<circle cx={18} cy={18} r={1.5} stroke='none' strokeWidth={1.5} />
|
|
52
|
+
<path d='M18 16.5V14.5C18 13.9477 17.5523 13.5 17 13.5H14.25' stroke='none' strokeWidth={1.5} strokeLinejoin='round' />
|
|
53
|
+
<circle cx={4.5} cy={19.5} r={1.5} stroke='none' strokeWidth={1.5} />
|
|
54
|
+
<path d='M4.5 18V15.25C4.5 14.6977 4.94772 14.25 5.5 14.25H9.75' stroke='none' strokeWidth={1.5} strokeLinejoin='round' />
|
|
55
|
+
<path d='M6 7.5C6 8.44649 6 9.99022 6 11.0006C6 11.5529 6.44772 12 7 12H9' stroke='none' strokeWidth={1.5} strokeLinejoin='round' />
|
|
56
|
+
<path d='M12 6V9' stroke='none' strokeWidth={1.5} strokeLinejoin='round' />
|
|
57
|
+
<path d='M19.5 6V9.5C19.5 10.0523 19.0523 10.5 18.5 10.5H14.25' stroke='none' strokeWidth={1.5} strokeLinejoin='round' />
|
|
58
|
+
<path d='M12 18L12 15' stroke='none' strokeWidth={1.5} strokeLinejoin='round' />
|
|
59
|
+
</svg>
|
|
60
|
+
)
|
|
61
|
+
break
|
|
62
|
+
case 'large':
|
|
63
|
+
icon = (
|
|
64
|
+
<svg
|
|
65
|
+
width={40}
|
|
66
|
+
height={40}
|
|
67
|
+
viewBox='0 0 40 40'
|
|
68
|
+
fill='none'
|
|
69
|
+
xmlns='http://www.w3.org/2000/svg'
|
|
70
|
+
className={className}
|
|
71
|
+
>
|
|
72
|
+
<circle cx={20} cy={20} r={5} stroke='none' strokeWidth={2} />
|
|
73
|
+
<circle cx={32.5} cy={7.5} r={2.5} stroke='none' strokeWidth={2} />
|
|
74
|
+
<circle cx={10} cy={10} r={2.5} stroke='none' strokeWidth={2} />
|
|
75
|
+
<circle cx={20} cy={7.5} r={2.5} stroke='none' strokeWidth={2} />
|
|
76
|
+
<circle cx={20} cy={32.5} r={2.5} transform='rotate(-180 20 32.5)' stroke='none' strokeWidth={2} />
|
|
77
|
+
<circle cx={30} cy={30} r={2.5} stroke='none' strokeWidth={2} />
|
|
78
|
+
<path d='M30 27.5V23.5C30 22.9477 29.5523 22.5 29 22.5H23.75' stroke='none' strokeWidth={2} strokeLinejoin='round' />
|
|
79
|
+
<circle cx='7.5' cy='32.5' r={2.5} stroke='none' strokeWidth={2} />
|
|
80
|
+
<path d='M7.5 30V24.75C7.5 24.1977 7.94772 23.75 8.5 23.75H16.25' stroke='none' strokeWidth={2} strokeLinejoin='round' />
|
|
81
|
+
<path d='M10 12.5C10 14.3046 10 17.4118 10 19.0008C10 19.5531 10.4477 20 11 20H15' stroke='none' strokeWidth={2} strokeLinejoin='round' />
|
|
82
|
+
<path d='M20 10V15' stroke='none' strokeWidth={2} strokeLinejoin='round' />
|
|
83
|
+
<path d='M32.5 10V16.5C32.5 17.0523 32.0523 17.5 31.5 17.5H23.75' stroke='none' strokeWidth={2} strokeLinejoin='round' />
|
|
84
|
+
<path d='M20 30L20 25' stroke='none' strokeWidth={2} strokeLinejoin='round' />
|
|
85
|
+
</svg>
|
|
86
|
+
)
|
|
87
|
+
break
|
|
88
|
+
|
|
89
|
+
default:
|
|
90
|
+
break
|
|
91
|
+
}
|
|
92
|
+
return icon
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
AllInOneIcon.propTypes = {
|
|
96
|
+
/**
|
|
97
|
+
* color of text, icon and borders
|
|
98
|
+
*/
|
|
99
|
+
color: PropTypes.oneOf(['green', 'white', 'main-dark-blue', 'red']),
|
|
100
|
+
/**
|
|
101
|
+
* Size
|
|
102
|
+
*/
|
|
103
|
+
size: PropTypes.oneOf(['small', 'medium', 'large', 'extra-large'])
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
AllInOneIcon.defaultProps = {
|
|
107
|
+
color: 'main-dark-blue',
|
|
108
|
+
size: 'normal'
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
export default AllInOneIcon
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
import * as React from 'react'
|
|
2
|
+
import PropTypes from 'prop-types'
|
|
3
|
+
import styles from './Icons.module.css'
|
|
4
|
+
|
|
5
|
+
const ApiCloudIcon = ({ 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='M4.37341 9.11943C3.0621 9.11943 2 8.05653 2 6.74602C2 5.43551 3.0621 4.37261 4.37261 4.37341C4.37261 3.0621 5.43551 2 6.74602 2C7.71497 2 8.54777 2.58041 8.9164 3.41322C8.98328 3.40685 9.05096 3.40366 9.11943 3.40366C10.2126 3.40366 11.1322 4.14331 11.4076 5.14889C11.5876 5.09634 11.7779 5.06768 11.9745 5.06768C13.0932 5.06768 14 5.97532 14 7.09395C14 8.21258 13.0932 9.11943 11.9745 9.11943' stroke='none' strokeLinecap='round' strokeLinejoin='round' />
|
|
21
|
+
<path d='M6 5.5V12H5.5' stroke='none' strokeLinecap='round' strokeLinejoin='round' />
|
|
22
|
+
<path d='M10 6V12H11' stroke='none' strokeLinecap='round' strokeLinejoin='round' />
|
|
23
|
+
<path d='M8 7V12' stroke='none' strokeLinecap='round' />
|
|
24
|
+
<circle cx={4} cy={12} r={1} stroke='none' />
|
|
25
|
+
<circle cx={12} cy={12} r={1} stroke='none' />
|
|
26
|
+
<circle cx={8} cy={13} r={1} stroke='none' />
|
|
27
|
+
</svg>
|
|
28
|
+
)
|
|
29
|
+
break
|
|
30
|
+
case 'normal':
|
|
31
|
+
icon = (
|
|
32
|
+
<svg
|
|
33
|
+
width={24}
|
|
34
|
+
height={24}
|
|
35
|
+
viewBox='0 0 24 24'
|
|
36
|
+
fill='none'
|
|
37
|
+
xmlns='http://www.w3.org/2000/svg'
|
|
38
|
+
className={className}
|
|
39
|
+
>
|
|
40
|
+
<path d='M6.56011 13.6791C4.59315 13.6791 3 12.0848 3 10.119C3 8.15327 4.59315 6.55892 6.55892 6.56011C6.55892 4.59315 8.15327 3 10.119 3C11.5725 3 12.8217 3.87062 13.3746 5.11983C13.4749 5.11027 13.5764 5.10549 13.6791 5.10549C15.3189 5.10549 16.6982 6.21497 17.1115 7.72333C17.3814 7.64451 17.6668 7.60151 17.9618 7.60151C19.6397 7.60151 21 8.96298 21 10.6409C21 12.3189 19.6397 13.6791 17.9618 13.6791' stroke='none' strokeWidth={1.5} strokeLinecap='round' strokeLinejoin='round' />
|
|
41
|
+
<path d='M9 8.25V18H8.25' stroke='none' strokeWidth={1.5} strokeLinecap='round' strokeLinejoin='round' />
|
|
42
|
+
<path d='M15 9V18H16.5' stroke='none' strokeWidth={1.5} strokeLinecap='round' strokeLinejoin='round' />
|
|
43
|
+
<path d='M12 10.5V18' stroke='none' strokeWidth={1.5} strokeLinecap='round' />
|
|
44
|
+
<circle cx={6} cy={18} r={1.5} stroke='none' strokeWidth={1.5} />
|
|
45
|
+
<circle cx={18} cy={18} r={1.5} stroke='none' strokeWidth={1.5} />
|
|
46
|
+
<circle cx={12} cy={19.5} r={1.5} stroke='none' strokeWidth={1.5} />
|
|
47
|
+
</svg>
|
|
48
|
+
)
|
|
49
|
+
break
|
|
50
|
+
case 'large':
|
|
51
|
+
icon = (
|
|
52
|
+
<svg
|
|
53
|
+
width={40}
|
|
54
|
+
height={40}
|
|
55
|
+
viewBox='0 0 40 40'
|
|
56
|
+
fill='none'
|
|
57
|
+
xmlns='http://www.w3.org/2000/svg'
|
|
58
|
+
className={className}
|
|
59
|
+
>
|
|
60
|
+
<path d='M10.9335 22.7986C7.65526 22.7986 5 20.1413 5 16.865C5 13.5888 7.65526 10.9315 10.9315 10.9335C10.9315 7.65526 13.5888 5 16.865 5C19.2874 5 21.3694 6.45104 22.291 8.53304C22.4582 8.51712 22.6274 8.50916 22.7986 8.50916C25.5315 8.50916 27.8304 10.3583 28.5191 12.8722C28.969 12.7408 29.4447 12.6692 29.9363 12.6692C32.7329 12.6692 35 14.9383 35 17.7349C35 20.5315 32.7329 22.7986 29.9363 22.7986' stroke='none' strokeWidth={2} strokeLinecap='round' strokeLinejoin='round' />
|
|
61
|
+
<path d='M15 13.75V30H13.75' stroke='none' strokeWidth={2} strokeLinecap='round' strokeLinejoin='round' />
|
|
62
|
+
<path d='M25 15V30H27.5' stroke='none' strokeWidth={2} strokeLinecap='round' strokeLinejoin='round' />
|
|
63
|
+
<path d='M20 17.5V30' stroke='none' strokeWidth={2} strokeLinecap='round' />
|
|
64
|
+
<circle cx={10} cy={30} r={2.5} stroke='none' strokeWidth={2} />
|
|
65
|
+
<circle cx={30} cy={30} r={2.5} stroke='none' strokeWidth={2} />
|
|
66
|
+
<circle cx={20} cy={32.5} r={2.5} stroke='none' strokeWidth={2} />
|
|
67
|
+
</svg>
|
|
68
|
+
)
|
|
69
|
+
break
|
|
70
|
+
|
|
71
|
+
default:
|
|
72
|
+
break
|
|
73
|
+
}
|
|
74
|
+
return icon
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
ApiCloudIcon.propTypes = {
|
|
78
|
+
/**
|
|
79
|
+
* color of text, icon and borders
|
|
80
|
+
*/
|
|
81
|
+
color: PropTypes.oneOf(['green', 'white', 'main-dark-blue', 'red']),
|
|
82
|
+
/**
|
|
83
|
+
* Size
|
|
84
|
+
*/
|
|
85
|
+
size: PropTypes.oneOf(['small', 'medium', 'large', 'extra-large'])
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
ApiCloudIcon.defaultProps = {
|
|
89
|
+
color: 'main-dark-blue',
|
|
90
|
+
size: 'normal'
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
export default ApiCloudIcon
|
|
@@ -1,29 +1,84 @@
|
|
|
1
|
-
import React from 'react'
|
|
2
|
-
|
|
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
|
-
|
|
1
|
+
import * as React from 'react'
|
|
2
|
+
import PropTypes from 'prop-types'
|
|
3
|
+
import styles from './Icons.module.css'
|
|
4
|
+
|
|
5
|
+
const ApiIcon = ({ 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='M9.21956 2.34803V3.1061C9.21956 3.25037 9.31095 3.38072 9.44868 3.43134L10.4321 3.79709C10.5659 3.84645 10.7178 3.81228 10.8156 3.7085L11.288 3.20987C11.427 3.06307 11.6638 3.0618 11.8041 3.20861L12.9445 4.3957C13.072 4.52858 13.0733 4.73487 12.9484 4.86901L12.3409 5.52457C12.2443 5.62835 12.2212 5.77895 12.2817 5.9055L12.6936 6.77874C12.7515 6.9015 12.8776 6.98123 13.0153 6.98123H13.646C13.8417 6.98123 14 7.13689 14 7.32925V8.79477C14 8.98713 13.8417 9.1428 13.646 9.1428H12.9832C12.83 9.1428 12.6936 9.24024 12.6459 9.38325L12.3113 10.3919C12.2714 10.5109 12.2997 10.6412 12.3859 10.7336L12.9304 11.3246C13.063 11.4689 13.0501 11.6929 12.9008 11.8207L11.6458 12.9002C11.5017 13.0243 11.2828 13.0129 11.1528 12.8749L10.7152 12.4117C10.62 12.3105 10.472 12.2738 10.3394 12.3193L9.42551 12.6332C9.28263 12.6826 9.18739 12.8142 9.18739 12.9622V13.652C9.18739 13.8443 9.02907 14 8.83342 14H7.16529C6.96964 14 6.81133 13.8443 6.81133 13.652V12.9622C6.81133 12.8142 6.71608 12.6826 6.57321 12.6332L5.65934 12.3193C5.52676 12.2738 5.37874 12.3092 5.28349 12.4117L4.84587 12.8749C4.71586 13.0129 4.49705 13.0243 4.35289 12.9002L3.09793 11.8207C2.94862 11.6929 2.93575 11.4689 3.06833 11.3246L3.61279 10.7336C3.69774 10.6412 3.72605 10.5109 3.68744 10.3919L3.35278 9.38325C3.30516 9.24024 3.16872 9.1428 3.01555 9.1428H2.35396C2.15832 9.1428 2 8.98713 2 8.79477V7.32925C2 7.13689 2.15832 6.98123 2.35396 6.98123H2.98466C3.12239 6.98123 3.24853 6.90276 3.30645 6.77874L3.71833 5.9055C3.77883 5.77768 3.75437 5.62835 3.65912 5.52457L3.05159 4.86901C2.92674 4.73487 2.92803 4.52731 3.05545 4.3957L4.19586 3.20861C4.33616 3.06307 4.57299 3.06307 4.712 3.20987L5.18438 3.7085C5.28221 3.81228 5.43409 3.84645 5.56795 3.79709L6.55132 3.43134C6.68905 3.38072 6.78044 3.25037 6.78044 3.1061V2.34803C6.78044 2.15566 6.93875 2 7.1344 2H8.8656C9.06125 2 9.21956 2.15566 9.21956 2.34803Z' stroke='none' strokeLinecap='round' strokeLinejoin='round' />
|
|
21
|
+
<path d='M4.25 9.3L5.50353 6.5H6.14636L7.40391 9.3H6.7209L5.69236 6.828H5.9495L4.91694 9.3H4.25ZM4.87676 8.7L5.04953 8.208H6.49591L6.67269 8.7H4.87676Z' fill='none' />
|
|
22
|
+
<path d='M7.6957 9.3V6.5H8.91307C9.16484 6.5 9.3818 6.54133 9.56394 6.624C9.74607 6.704 9.8867 6.82 9.9858 6.972C10.0849 7.124 10.1345 7.30533 10.1345 7.516C10.1345 7.724 10.0849 7.904 9.9858 8.056C9.8867 8.208 9.74607 8.32533 9.56394 8.408C9.3818 8.488 9.16484 8.528 8.91307 8.528H8.05729L8.34657 8.236V9.3H7.6957ZM8.34657 8.308L8.05729 8H8.87691C9.07779 8 9.22779 7.95733 9.32689 7.872C9.426 7.78667 9.47555 7.668 9.47555 7.516C9.47555 7.36133 9.426 7.24133 9.32689 7.156C9.22779 7.07067 9.07779 7.028 8.87691 7.028H8.05729L8.34657 6.72V8.308Z' fill='none' />
|
|
23
|
+
<path d='M10.5991 9.3V6.5H11.25V9.3H10.5991Z' fill='none' />
|
|
24
|
+
</svg>
|
|
25
|
+
)
|
|
26
|
+
break
|
|
27
|
+
case 'normal':
|
|
28
|
+
icon = (
|
|
29
|
+
<svg
|
|
30
|
+
width={24}
|
|
31
|
+
height={24}
|
|
32
|
+
viewBox='0 0 24 24'
|
|
33
|
+
fill='none'
|
|
34
|
+
xmlns='http://www.w3.org/2000/svg'
|
|
35
|
+
className={className}
|
|
36
|
+
>
|
|
37
|
+
<path d='M13.8293 3.52204V4.65914C13.8293 4.87555 13.9664 5.07108 14.173 5.14702L15.6481 5.69563C15.8489 5.76967 16.0767 5.71841 16.2234 5.56275L16.932 4.81481C17.1405 4.5946 17.4958 4.5927 17.7062 4.81291L19.4168 6.59355C19.608 6.79287 19.6099 7.1023 19.4226 7.30352L18.5113 8.28686C18.3665 8.44252 18.3318 8.66842 18.4225 8.85826L19.0403 10.1681C19.1272 10.3522 19.3164 10.4718 19.523 10.4718H20.4691C20.7625 10.4718 21 10.7053 21 10.9939V13.1922C21 13.4807 20.7625 13.7142 20.4691 13.7142H19.4747C19.245 13.7142 19.0403 13.8604 18.9689 14.0749L18.4669 15.5879C18.4071 15.7663 18.4495 15.9618 18.5789 16.1004L19.3956 16.9869C19.5944 17.2033 19.5751 17.5393 19.3512 17.7311L17.4687 19.3503C17.2525 19.5364 16.9243 19.5193 16.7293 19.3124L16.0728 18.6176C15.93 18.4657 15.7079 18.4107 15.5091 18.479L14.1383 18.9498C13.924 19.0238 13.7811 19.2213 13.7811 19.4434V20.478C13.7811 20.7665 13.5436 21 13.2501 21H10.7479C10.4545 21 10.217 20.7665 10.217 20.478V19.4434C10.217 19.2213 10.0741 19.0238 9.85981 18.9498L8.48901 18.479C8.29014 18.4107 8.06811 18.4638 7.92524 18.6176L7.2688 19.3124C7.0738 19.5193 6.74558 19.5364 6.52934 19.3503L4.64689 17.7311C4.42293 17.5393 4.40363 17.2033 4.60249 16.9869L5.41918 16.1004C5.54661 15.9618 5.58908 15.7663 5.53116 15.5879L5.02918 14.0749C4.95774 13.8604 4.75308 13.7142 4.52333 13.7142H3.53094C3.23748 13.7142 3 13.4807 3 13.1922V10.9939C3 10.7053 3.23748 10.4718 3.53094 10.4718H4.47699C4.68358 10.4718 4.87279 10.3541 4.95967 10.1681L5.5775 8.85826C5.66824 8.66653 5.63156 8.44252 5.48868 8.28686L4.57739 7.30352C4.39011 7.1023 4.39204 6.79097 4.58318 6.59355L6.29379 4.81291C6.50424 4.5946 6.85949 4.5946 7.068 4.81481L7.77657 5.56275C7.92331 5.71841 8.15113 5.76967 8.35192 5.69563L9.82699 5.14702C10.0336 5.07108 10.1707 4.87555 10.1707 4.65914V3.52204C10.1707 3.2335 10.4081 3 10.7016 3H13.2984C13.5919 3 13.8293 3.2335 13.8293 3.52204Z' stroke='none' strokeWidth={1.5} strokeLinecap='round' strokeLinejoin='round' />
|
|
38
|
+
<path d='M6.375 13.95L8.25529 9.75H9.21955L11.1059 13.95H10.0813L8.53854 10.242H8.92424L7.37541 13.95H6.375ZM7.31515 13.05L7.57429 12.312H9.74386L10.009 13.05H7.31515Z' fill='none' />
|
|
39
|
+
<path d='M11.5435 13.95V9.75H13.3696C13.7473 9.75 14.0727 9.812 14.3459 9.936C14.6191 10.056 14.83 10.23 14.9787 10.458C15.1274 10.686 15.2017 10.958 15.2017 11.274C15.2017 11.586 15.1274 11.856 14.9787 12.084C14.83 12.312 14.6191 12.488 14.3459 12.612C14.0727 12.732 13.7473 12.792 13.3696 12.792H12.0859L12.5199 12.354V13.95H11.5435ZM12.5199 12.462L12.0859 12H13.3154C13.6167 12 13.8417 11.936 13.9903 11.808C14.139 11.68 14.2133 11.502 14.2133 11.274C14.2133 11.042 14.139 10.862 13.9903 10.734C13.8417 10.606 13.6167 10.542 13.3154 10.542H12.0859L12.5199 10.08V12.462Z' fill='none' />
|
|
40
|
+
<path d='M15.8987 13.95V9.75H16.875V13.95H15.8987Z' fill='none' />
|
|
41
|
+
</svg>
|
|
42
|
+
)
|
|
43
|
+
break
|
|
44
|
+
case 'large':
|
|
45
|
+
icon = (
|
|
46
|
+
<svg
|
|
47
|
+
width={40}
|
|
48
|
+
height={40}
|
|
49
|
+
viewBox='0 0 40 40'
|
|
50
|
+
fill='none'
|
|
51
|
+
xmlns='http://www.w3.org/2000/svg'
|
|
52
|
+
className={className}
|
|
53
|
+
>
|
|
54
|
+
<path d='M23.0489 5.87007V7.76524C23.0489 8.12592 23.2774 8.4518 23.6217 8.57836L26.0801 9.49272C26.4148 9.61611 26.7945 9.53069 27.039 9.27125L28.22 8.02468C28.5675 7.65767 29.1596 7.6545 29.5104 8.02151L32.3614 10.9892C32.6799 11.3215 32.6832 11.8372 32.371 12.1725L30.8522 13.8114C30.6109 14.0709 30.5529 14.4474 30.7042 14.7638L31.7339 16.9468C31.8787 17.2537 32.194 17.4531 32.5383 17.4531H34.1151C34.6042 17.4531 35 17.8422 35 18.3231V21.9869C35 22.4678 34.6042 22.857 34.1151 22.857H32.4579C32.075 22.857 31.7339 23.1006 31.6148 23.4581L30.7782 25.9798C30.6784 26.2772 30.7492 26.603 30.9648 26.834L32.326 28.3115C32.6574 28.6722 32.6252 29.2322 32.252 29.5518L29.1146 32.2506C28.7542 32.5606 28.2071 32.5322 27.8821 32.1873L26.7881 31.0293C26.5499 30.7762 26.1799 30.6845 25.8484 30.7984L23.5638 31.583C23.2066 31.7064 22.9685 32.0354 22.9685 32.4056V34.1299C22.9685 34.6108 22.5727 35 22.0836 35H17.9132C17.4241 35 17.0283 34.6108 17.0283 34.1299V32.4056C17.0283 32.0354 16.7902 31.7064 16.433 31.583L14.1483 30.7984C13.8169 30.6845 13.4469 30.773 13.2087 31.0293L12.1147 32.1873C11.7897 32.5322 11.2426 32.5606 10.8822 32.2506L7.74482 29.5518C7.37155 29.2322 7.33938 28.6722 7.67081 28.3115L9.03196 26.834C9.24434 26.603 9.31513 26.2772 9.2186 25.9798L8.38196 23.4581C8.2629 23.1006 7.92181 22.857 7.53888 22.857H5.88491C5.3958 22.857 5 22.4678 5 21.9869V18.3231C5 17.8422 5.3958 17.4531 5.88491 17.4531H7.46165C7.80596 17.4531 8.12131 17.2569 8.26612 16.9468L9.29583 14.7638C9.44707 14.4442 9.38593 14.0709 9.14781 13.8114L7.62898 12.1725C7.31685 11.8372 7.32007 11.3183 7.63864 10.9892L10.4896 8.02151C10.8404 7.65767 11.4325 7.65767 11.78 8.02468L12.961 9.27125C13.2055 9.53069 13.5852 9.61611 13.9199 9.49272L16.3783 8.57836C16.7226 8.4518 16.9511 8.12592 16.9511 7.76524V5.87007C16.9511 5.38916 17.3469 5 17.836 5H22.164C22.6531 5 23.0489 5.38916 23.0489 5.87007Z' stroke='none' strokeWidth={2} strokeLinecap='round' strokeLinejoin='round' />
|
|
55
|
+
<path d='M10.625 23.25L13.7588 16.25H15.3659L18.5098 23.25H16.8022L14.2309 17.07H14.8737L12.2924 23.25H10.625ZM12.1919 21.75L12.6238 20.52H16.2398L16.6817 21.75H12.1919Z' fill='none' />
|
|
56
|
+
<path d='M19.2392 23.25V16.25H22.2827C22.9121 16.25 23.4545 16.3533 23.9098 16.56C24.3652 16.76 24.7167 17.05 24.9645 17.43C25.2123 17.81 25.3361 18.2633 25.3361 18.79C25.3361 19.31 25.2123 19.76 24.9645 20.14C24.7167 20.52 24.3652 20.8133 23.9098 21.02C23.4545 21.22 22.9121 21.32 22.2827 21.32H20.1432L20.8664 20.59V23.25H19.2392ZM20.8664 20.77L20.1432 20H22.1923C22.6945 20 23.0695 19.8933 23.3172 19.68C23.565 19.4667 23.6889 19.17 23.6889 18.79C23.6889 18.4033 23.565 18.1033 23.3172 17.89C23.0695 17.6767 22.6945 17.57 22.1923 17.57H20.1432L20.8664 16.8V20.77Z' fill='none' />
|
|
57
|
+
<path d='M26.4978 23.25V16.25H28.125V23.25H26.4978Z' fill='none' />
|
|
58
|
+
</svg>
|
|
59
|
+
)
|
|
60
|
+
break
|
|
61
|
+
|
|
62
|
+
default:
|
|
63
|
+
break
|
|
64
|
+
}
|
|
65
|
+
return icon
|
|
29
66
|
}
|
|
67
|
+
|
|
68
|
+
ApiIcon.propTypes = {
|
|
69
|
+
/**
|
|
70
|
+
* color of text, icon and borders
|
|
71
|
+
*/
|
|
72
|
+
color: PropTypes.oneOf(['green', 'white', 'main-dark-blue', 'red']),
|
|
73
|
+
/**
|
|
74
|
+
* Size
|
|
75
|
+
*/
|
|
76
|
+
size: PropTypes.oneOf(['small', 'medium', 'large', 'extra-large'])
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
ApiIcon.defaultProps = {
|
|
80
|
+
color: 'main-dark-blue',
|
|
81
|
+
size: 'normal'
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
export default ApiIcon
|