@platformatic/ui-components 0.1.49 → 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/.github/workflows/ci.yml +26 -26
- package/.nvmrc +1 -1
- package/LICENSE +201 -201
- package/README.md +30 -30
- 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/fonts/Montserrat/README.txt +81 -81
- package/index.html +12 -12
- package/index.js +71 -71
- package/package.json +76 -76
- package/postcss.config.cjs +8 -8
- package/public/api-icon-closed.svg +6 -6
- package/public/api-icon.svg +9 -9
- package/src/App.jsx +12 -12
- package/src/components/BorderedBox.jsx +18 -18
- package/src/components/BorderedBox.module.css +8 -8
- package/src/components/BorderedText.jsx +8 -8
- package/src/components/BorderedText.module.css +2 -2
- package/src/components/Box.jsx +14 -14
- package/src/components/Box.module.css +7 -7
- package/src/components/Button.jsx +95 -95
- package/src/components/Button.module.css +127 -127
- package/src/components/ButtonFullRounded.jsx +17 -17
- package/src/components/ButtonFullRounded.module.css +28 -28
- package/src/components/Checkbox.jsx +11 -11
- package/src/components/Checkbox.module.css +18 -18
- package/src/components/Common.module.css +28 -28
- package/src/components/DetailedMetric.jsx +32 -32
- package/src/components/DetailedMetric.module.css +2 -2
- package/src/components/DropDown.jsx +35 -36
- package/src/components/DropDown.module.css +25 -27
- package/src/components/FollowUs.jsx +35 -35
- package/src/components/FollowUs.module.css +11 -11
- package/src/components/GHLoginButton.jsx +14 -14
- package/src/components/HorizontalSeparator.jsx +15 -15
- package/src/components/HorizontalSeparator.module.css +26 -26
- package/src/components/InfoBox.jsx +50 -50
- package/src/components/InfoBox.module.css +5 -5
- package/src/components/List.jsx +20 -20
- package/src/components/List.module.css +11 -11
- package/src/components/ListElement.jsx +23 -23
- package/src/components/ListElement.module.css +23 -23
- package/src/components/Loadable.jsx +34 -34
- package/src/components/Loadable.module.css +13 -13
- package/src/components/Loader.jsx +22 -22
- package/src/components/Loader.module.css +13 -13
- package/src/components/LoginButton.jsx +17 -17
- package/src/components/LoginButton.module.css +7 -7
- package/src/components/LoginButton.test.jsx +25 -25
- package/src/components/Logo.jsx +62 -62
- package/src/components/Logo.module.css +5 -5
- package/src/components/Main.jsx +33 -33
- package/src/components/MetricValue.jsx +15 -15
- package/src/components/MetricValue.module.css +9 -9
- package/src/components/Modal.jsx +93 -93
- package/src/components/Modal.module.css +50 -50
- package/src/components/PlatformaticIcon.jsx +57 -57
- package/src/components/PlatformaticIcon.module.css +2 -2
- package/src/components/Playground.jsx +9 -9
- package/src/components/SearchBar.jsx +63 -63
- package/src/components/SearchBar.module.css +20 -20
- package/src/components/Sidebar.jsx +151 -153
- package/src/components/Sidebar.module.css +70 -66
- package/src/components/SimpleMetric.jsx +28 -28
- package/src/components/SimpleMetric.module.css +6 -6
- package/src/components/Status.jsx +26 -26
- package/src/components/TabbedWindow.jsx +39 -39
- package/src/components/TabbedWindow.module.css +16 -16
- package/src/components/TextWithLabel.jsx +11 -11
- package/src/components/TextWithLabel.module.css +8 -8
- package/src/components/Versions.jsx +9 -9
- package/src/components/VerticalSeparator.jsx +5 -5
- package/src/components/forms/Field.jsx +53 -20
- package/src/components/forms/Field.module.css +23 -17
- package/src/components/forms/Input.jsx +80 -80
- package/src/components/forms/Input.module.css +28 -28
- package/src/components/forms/Preview.jsx +75 -77
- package/src/components/forms/Preview.module.css +14 -14
- package/src/components/forms/ToggleSwitch.jsx +18 -18
- package/src/components/forms/ToggleSwitch.module.css +42 -42
- package/src/components/forms/index.js +8 -8
- 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/ApiEmptyIcon.jsx +107 -107
- package/src/components/icons/ApiIcon.jsx +84 -29
- package/src/components/icons/ApiIconClosed.jsx +19 -19
- package/src/components/icons/AppEmptyIcon.jsx +94 -94
- package/src/components/icons/AppIcon.jsx +85 -38
- package/src/components/icons/AppListIcon.jsx +73 -73
- 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 +102 -56
- package/src/components/icons/CircleAddIcon.jsx +81 -40
- package/src/components/icons/CircleBackIcon.jsx +51 -51
- package/src/components/icons/{Calendar1Icon.jsx → CircleCheckMarkIcon.jsx} +66 -54
- package/src/components/icons/CircleCloseHoverIcon.jsx +42 -42
- package/src/components/icons/CircleCloseIcon.jsx +32 -32
- package/src/components/icons/CircleExclamationIcon.jsx +29 -29
- package/src/components/icons/CloseIcon.jsx +79 -31
- package/src/components/icons/CopyPasteIcon.jsx +81 -0
- package/src/components/icons/DatabaseIcon.jsx +81 -0
- package/src/components/icons/EditIcon.jsx +81 -38
- package/src/components/icons/GearIcon.jsx +78 -40
- package/src/components/icons/Icons.module.css +46 -29
- package/src/components/icons/LiveIcon.jsx +43 -43
- package/src/components/icons/MetricsIcon.jsx +52 -52
- package/src/components/icons/PlayIcon.jsx +20 -20
- package/src/components/icons/PullRequestIcon.jsx +35 -35
- package/src/components/icons/StopIcon.jsx +21 -21
- package/src/components/icons/TerminalIcon.jsx +22 -22
- package/src/components/icons/UpgradeIcon.jsx +48 -48
- 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 +83 -61
- package/src/components/layouts/Layout.jsx +11 -11
- package/src/components/layouts/TwoColumnsLayout.jsx +12 -12
- package/src/components/layouts/TwoColumnsLayout.module.css +9 -9
- package/src/hooks/useEscapeKey.js +20 -20
- package/src/lib/utils.js +23 -23
- package/src/main.jsx +9 -9
- package/src/stories/BorderedBox.stories.jsx +33 -33
- package/src/stories/BorderedText.stories.jsx +24 -24
- package/src/stories/Button.stories.jsx +114 -114
- package/src/stories/ButtonFullRounded.stories.jsx +61 -61
- package/src/stories/Checkbox.stories.jsx +27 -27
- package/src/stories/DetailedMetric.stories.jsx +33 -33
- package/src/stories/DropDown.stories.jsx +62 -62
- package/src/stories/FollowUs.stories.jsx +14 -14
- package/src/stories/GHLoginButton.stories.jsx +14 -14
- package/src/stories/HorizontalSeparator.stories.jsx +12 -12
- package/src/stories/InfoBox.stories.jsx +46 -46
- package/src/stories/Introduction.stories.mdx +211 -211
- package/src/stories/List.stories.jsx +29 -29
- package/src/stories/ListElement.stories.jsx +15 -15
- package/src/stories/Loadable.stories.jsx +75 -75
- package/src/stories/Loader.stories.jsx +44 -44
- package/src/stories/LoginButton.stories.jsx +15 -15
- package/src/stories/Logo.stories.jsx +17 -17
- package/src/stories/Modal.stories.jsx +100 -100
- package/src/stories/PlatformaticIcon.stories.jsx +57 -35
- package/src/stories/SearchBar.stories.jsx +28 -28
- package/src/stories/Sidebar.stories.jsx +61 -61
- package/src/stories/SimpleMetric.stories.jsx +41 -41
- package/src/stories/Status.stories.jsx +31 -31
- package/src/stories/TextWithLabel.stories.jsx +25 -25
- package/src/stories/TwoColumnsLayout.stories.jsx +42 -42
- package/src/stories/forms/Field.stories.jsx +89 -81
- package/src/stories/forms/Input.stories.jsx +89 -89
- package/src/stories/forms/Preview.stories.jsx +57 -57
- package/src/stories/forms/ToggleSwitch.stories.jsx +15 -15
- package/src/stories/icons/Icons.stories.jsx +68 -74
- package/src/styles/main.css +22 -15
- package/tailwind.config.cjs +60 -60
- package/vite.config.js +6 -6
- package/vitest.config.js +14 -14
- package/dist/main.css +0 -704
- 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
|
@@ -1,38 +1,85 @@
|
|
|
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
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
}
|
|
1
|
+
import * as React from 'react'
|
|
2
|
+
import PropTypes from 'prop-types'
|
|
3
|
+
import styles from './Icons.module.css'
|
|
4
|
+
|
|
5
|
+
const AppIcon = ({ 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='M6 2.95996H3C2.44772 2.95996 2 3.40768 2 3.95996V9.63996C2 10.1922 2.44772 10.64 3 10.64H13C13.5523 10.64 14 10.1922 14 9.63996V3.95996C14 3.40768 13.5523 2.95996 13 2.95996H10' stroke='none' strokeLinecap='round' />
|
|
21
|
+
<rect x={6} y={10.64} width={4} height={1.92} stroke='none' />
|
|
22
|
+
<path d='M4 13.5601C4 13.0078 4.44772 12.5601 5 12.5601H11C11.5523 12.5601 12 13.0078 12 13.5601V14.0001H4V13.5601Z' stroke='none' />
|
|
23
|
+
<path d='M8 2L8.89806 4.65337H11.8042L9.45308 6.29325L10.3511 8.94662L8 7.30675L5.64886 8.94662L6.54692 6.29325L4.19577 4.65337H7.10194L8 2Z' stroke='none' strokeLinejoin='round' />
|
|
24
|
+
|
|
25
|
+
</svg>
|
|
26
|
+
)
|
|
27
|
+
break
|
|
28
|
+
case 'normal':
|
|
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
|
+
<path d='M9 4.43994H4C3.44772 4.43994 3 4.88766 3 5.43994V14.9599C3 15.5122 3.44772 15.9599 4 15.9599H20C20.5523 15.9599 21 15.5122 21 14.9599V5.43994C21 4.88766 20.5523 4.43994 20 4.43994H15' stroke='none' strokeWidth={1.5} strokeLinecap='round' />
|
|
39
|
+
<rect x={9} y={15.96} width={6} height={2.88} stroke='none' strokeWidth={1.5} />
|
|
40
|
+
<path d='M6 19.84C6 19.2877 6.44772 18.84 7 18.84H17C17.5523 18.84 18 19.2877 18 19.84V21H6V19.84Z' stroke='none' strokeWidth={1.5} />
|
|
41
|
+
<path d='M12 3L13.3471 6.98006H17.7063L14.1796 9.43988L15.5267 13.4199L12 10.9601L8.47329 13.4199L9.82037 9.43988L6.29366 6.98006H10.6529L12 3Z' stroke='none' strokeWidth={1.5} 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
|
+
<path d='M15 7.40002H6C5.44772 7.40002 5 7.84774 5 8.40002V25.6C5 26.1523 5.44772 26.6 6 26.6H34C34.5523 26.6 35 26.1523 35 25.6V8.40002C35 7.84774 34.5523 7.40002 34 7.40002H25' stroke='none' strokeWidth={2} strokeLinecap='round' />
|
|
56
|
+
<rect x={15} y={26.6} width={10} height={4.8} stroke='none' strokeWidth={2} />
|
|
57
|
+
<path d='M10 32.4C10 31.8477 10.4477 31.4 11 31.4H29C29.5523 31.4 30 31.8477 30 32.4V35H10V32.4Z' stroke='none' strokeWidth={2} />
|
|
58
|
+
<path d='M20 5L22.2451 11.6334H29.5106L23.6327 15.7331L25.8779 22.3666L20 18.2669L14.1221 22.3666L16.3673 15.7331L10.4894 11.6334H17.7549L20 5Z' stroke='none' strokeWidth={2} strokeLinejoin='round' />
|
|
59
|
+
</svg>
|
|
60
|
+
)
|
|
61
|
+
break
|
|
62
|
+
|
|
63
|
+
default:
|
|
64
|
+
break
|
|
65
|
+
}
|
|
66
|
+
return icon
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
AppIcon.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
|
+
AppIcon.defaultProps = {
|
|
81
|
+
color: 'main-dark-blue',
|
|
82
|
+
size: 'normal'
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
export default AppIcon
|
|
@@ -1,73 +1,73 @@
|
|
|
1
|
-
import React from 'react'
|
|
2
|
-
import styles from './Icons.module.css'
|
|
3
|
-
export default function AppListIcon ({ color = 'white' }) {
|
|
4
|
-
const className = styles[`${color}`]
|
|
5
|
-
return (
|
|
6
|
-
<svg
|
|
7
|
-
width={49}
|
|
8
|
-
height={67}
|
|
9
|
-
viewBox='0 0 49 67'
|
|
10
|
-
fill='none'
|
|
11
|
-
xmlns='http://www.w3.org/2000/svg'
|
|
12
|
-
className={className}
|
|
13
|
-
>
|
|
14
|
-
<path
|
|
15
|
-
d='M19.6628 38.0801H11.9961C11.4438 38.0801 10.9961 38.5278 10.9961 39.0801V53.7201C10.9961 54.2724 11.4438 54.7201 11.9961 54.7201H35.9961C36.5484 54.7201 36.9961 54.2724 36.9961 53.7201V39.0801C36.9961 38.5278 36.5484 38.0801 35.9961 38.0801H28.3294'
|
|
16
|
-
stroke='none'
|
|
17
|
-
strokeWidth={2}
|
|
18
|
-
strokeLinecap='round'
|
|
19
|
-
/>
|
|
20
|
-
<rect
|
|
21
|
-
x={19.6631}
|
|
22
|
-
y={54.72}
|
|
23
|
-
width={8.66667}
|
|
24
|
-
height={4.16}
|
|
25
|
-
stroke='white'
|
|
26
|
-
strokeWidth={2}
|
|
27
|
-
/>
|
|
28
|
-
<path
|
|
29
|
-
d='M15.3291 59.8799C15.3291 59.3276 15.7768 58.8799 16.3291 58.8799H31.6624C32.2147 58.8799 32.6624 59.3276 32.6624 59.8799V61.9999H15.3291V59.8799Z'
|
|
30
|
-
stroke='white'
|
|
31
|
-
strokeWidth={2}
|
|
32
|
-
/>
|
|
33
|
-
<path
|
|
34
|
-
d='M23.9958 36L25.9416 41.749H32.2383L27.1441 45.302L29.0899 51.051L23.9958 47.498L18.9016 51.051L20.8474 45.302L15.7533 41.749H22.05L23.9958 36Z'
|
|
35
|
-
stroke='white'
|
|
36
|
-
strokeWidth={2}
|
|
37
|
-
strokeLinejoin='round'
|
|
38
|
-
/>
|
|
39
|
-
<path
|
|
40
|
-
d='M20.9961 34H15.9961V25H13.9961'
|
|
41
|
-
stroke='white'
|
|
42
|
-
strokeWidth={2}
|
|
43
|
-
strokeLinecap='round'
|
|
44
|
-
strokeLinejoin='round'
|
|
45
|
-
/>
|
|
46
|
-
<path
|
|
47
|
-
d='M19.9961 29.5V9'
|
|
48
|
-
stroke='white'
|
|
49
|
-
strokeWidth={2}
|
|
50
|
-
strokeLinecap='round'
|
|
51
|
-
strokeLinejoin='round'
|
|
52
|
-
/>
|
|
53
|
-
<path
|
|
54
|
-
d='M27.9961 35H32V27H38.9961V19'
|
|
55
|
-
stroke='white'
|
|
56
|
-
strokeWidth={2}
|
|
57
|
-
strokeLinecap='round'
|
|
58
|
-
strokeLinejoin='round'
|
|
59
|
-
/>
|
|
60
|
-
<path
|
|
61
|
-
d='M26 31.5V22H30.9961V14.5'
|
|
62
|
-
stroke='white'
|
|
63
|
-
strokeWidth={2}
|
|
64
|
-
strokeLinecap='round'
|
|
65
|
-
strokeLinejoin='round'
|
|
66
|
-
/>
|
|
67
|
-
<circle cx={11.9961} cy={25} r={2} stroke='white' strokeWidth={2} />
|
|
68
|
-
<circle cx={19.9961} cy={7} r={2} stroke='white' strokeWidth={2} />
|
|
69
|
-
<circle cx={30.9961} cy={12} r={2} stroke='white' strokeWidth={2} />
|
|
70
|
-
<circle cx={38.9961} cy={17} r={2} stroke='white' strokeWidth={2} />
|
|
71
|
-
</svg>
|
|
72
|
-
)
|
|
73
|
-
}
|
|
1
|
+
import React from 'react'
|
|
2
|
+
import styles from './Icons.module.css'
|
|
3
|
+
export default function AppListIcon ({ color = 'white' }) {
|
|
4
|
+
const className = styles[`${color}`]
|
|
5
|
+
return (
|
|
6
|
+
<svg
|
|
7
|
+
width={49}
|
|
8
|
+
height={67}
|
|
9
|
+
viewBox='0 0 49 67'
|
|
10
|
+
fill='none'
|
|
11
|
+
xmlns='http://www.w3.org/2000/svg'
|
|
12
|
+
className={className}
|
|
13
|
+
>
|
|
14
|
+
<path
|
|
15
|
+
d='M19.6628 38.0801H11.9961C11.4438 38.0801 10.9961 38.5278 10.9961 39.0801V53.7201C10.9961 54.2724 11.4438 54.7201 11.9961 54.7201H35.9961C36.5484 54.7201 36.9961 54.2724 36.9961 53.7201V39.0801C36.9961 38.5278 36.5484 38.0801 35.9961 38.0801H28.3294'
|
|
16
|
+
stroke='none'
|
|
17
|
+
strokeWidth={2}
|
|
18
|
+
strokeLinecap='round'
|
|
19
|
+
/>
|
|
20
|
+
<rect
|
|
21
|
+
x={19.6631}
|
|
22
|
+
y={54.72}
|
|
23
|
+
width={8.66667}
|
|
24
|
+
height={4.16}
|
|
25
|
+
stroke='white'
|
|
26
|
+
strokeWidth={2}
|
|
27
|
+
/>
|
|
28
|
+
<path
|
|
29
|
+
d='M15.3291 59.8799C15.3291 59.3276 15.7768 58.8799 16.3291 58.8799H31.6624C32.2147 58.8799 32.6624 59.3276 32.6624 59.8799V61.9999H15.3291V59.8799Z'
|
|
30
|
+
stroke='white'
|
|
31
|
+
strokeWidth={2}
|
|
32
|
+
/>
|
|
33
|
+
<path
|
|
34
|
+
d='M23.9958 36L25.9416 41.749H32.2383L27.1441 45.302L29.0899 51.051L23.9958 47.498L18.9016 51.051L20.8474 45.302L15.7533 41.749H22.05L23.9958 36Z'
|
|
35
|
+
stroke='white'
|
|
36
|
+
strokeWidth={2}
|
|
37
|
+
strokeLinejoin='round'
|
|
38
|
+
/>
|
|
39
|
+
<path
|
|
40
|
+
d='M20.9961 34H15.9961V25H13.9961'
|
|
41
|
+
stroke='white'
|
|
42
|
+
strokeWidth={2}
|
|
43
|
+
strokeLinecap='round'
|
|
44
|
+
strokeLinejoin='round'
|
|
45
|
+
/>
|
|
46
|
+
<path
|
|
47
|
+
d='M19.9961 29.5V9'
|
|
48
|
+
stroke='white'
|
|
49
|
+
strokeWidth={2}
|
|
50
|
+
strokeLinecap='round'
|
|
51
|
+
strokeLinejoin='round'
|
|
52
|
+
/>
|
|
53
|
+
<path
|
|
54
|
+
d='M27.9961 35H32V27H38.9961V19'
|
|
55
|
+
stroke='white'
|
|
56
|
+
strokeWidth={2}
|
|
57
|
+
strokeLinecap='round'
|
|
58
|
+
strokeLinejoin='round'
|
|
59
|
+
/>
|
|
60
|
+
<path
|
|
61
|
+
d='M26 31.5V22H30.9961V14.5'
|
|
62
|
+
stroke='white'
|
|
63
|
+
strokeWidth={2}
|
|
64
|
+
strokeLinecap='round'
|
|
65
|
+
strokeLinejoin='round'
|
|
66
|
+
/>
|
|
67
|
+
<circle cx={11.9961} cy={25} r={2} stroke='white' strokeWidth={2} />
|
|
68
|
+
<circle cx={19.9961} cy={7} r={2} stroke='white' strokeWidth={2} />
|
|
69
|
+
<circle cx={30.9961} cy={12} r={2} stroke='white' strokeWidth={2} />
|
|
70
|
+
<circle cx={38.9961} cy={17} r={2} stroke='white' strokeWidth={2} />
|
|
71
|
+
</svg>
|
|
72
|
+
)
|
|
73
|
+
}
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
import * as React from 'react'
|
|
2
|
+
import PropTypes from 'prop-types'
|
|
3
|
+
import styles from './Icons.module.css'
|
|
4
|
+
|
|
5
|
+
const ArrowDownFullIcon = ({ color, size }) => {
|
|
6
|
+
const className = `${styles.noShrinkForFlex} ` + styles[`${color}`] + ' '
|
|
7
|
+
const filledClassName = styles[`filled-${color}`]
|
|
8
|
+
let icon = <></>
|
|
9
|
+
|
|
10
|
+
switch (size) {
|
|
11
|
+
case 'small':
|
|
12
|
+
icon = (
|
|
13
|
+
<svg
|
|
14
|
+
width={16}
|
|
15
|
+
height={16}
|
|
16
|
+
viewBox='0 0 16 16'
|
|
17
|
+
fill='none'
|
|
18
|
+
xmlns='http://www.w3.org/2000/svg'
|
|
19
|
+
className={className}
|
|
20
|
+
>
|
|
21
|
+
<path d='M7.29289 10.2929L3.70711 6.70711C3.07714 6.07714 3.52331 5 4.41421 5H11.5858C12.4767 5 12.9229 6.07714 12.2929 6.70711L8.70711 10.2929C8.31658 10.6834 7.68342 10.6834 7.29289 10.2929Z' fill='none' className={filledClassName} />
|
|
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='M11.2929 15.7929L4.70711 9.20711C4.07714 8.57714 4.52331 7.5 5.41421 7.5H18.5858C19.4767 7.5 19.9229 8.57714 19.2929 9.2071L12.7071 15.7929C12.3166 16.1834 11.6834 16.1834 11.2929 15.7929Z' fill='none' className={filledClassName} />
|
|
36
|
+
</svg>
|
|
37
|
+
)
|
|
38
|
+
break
|
|
39
|
+
case 'large':
|
|
40
|
+
icon = (
|
|
41
|
+
<svg
|
|
42
|
+
width={40}
|
|
43
|
+
height={40}
|
|
44
|
+
viewBox='0 0 40 40'
|
|
45
|
+
fill='none'
|
|
46
|
+
xmlns='http://www.w3.org/2000/svg'
|
|
47
|
+
className={className}
|
|
48
|
+
>
|
|
49
|
+
<path d='M19.2929 26.7929L6.70711 14.2071C6.07714 13.5771 6.52331 12.5 7.41421 12.5H32.5858C33.4767 12.5 33.9229 13.5771 33.2929 14.2071L20.7071 26.7929C20.3166 27.1834 19.6834 27.1834 19.2929 26.7929Z' fill='none' className={filledClassName} />
|
|
50
|
+
</svg>
|
|
51
|
+
)
|
|
52
|
+
break
|
|
53
|
+
|
|
54
|
+
default:
|
|
55
|
+
break
|
|
56
|
+
}
|
|
57
|
+
return icon
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
ArrowDownFullIcon.propTypes = {
|
|
61
|
+
/**
|
|
62
|
+
* color of text, icon and borders
|
|
63
|
+
*/
|
|
64
|
+
color: PropTypes.oneOf(['green', 'white', 'main-dark-blue', 'red']),
|
|
65
|
+
/**
|
|
66
|
+
* Size
|
|
67
|
+
*/
|
|
68
|
+
size: PropTypes.oneOf(['small', 'medium', 'large', 'extra-large'])
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
ArrowDownFullIcon.defaultProps = {
|
|
72
|
+
color: 'main-dark-blue',
|
|
73
|
+
size: 'normal'
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
export default ArrowDownFullIcon
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import * as React from 'react'
|
|
2
|
+
import PropTypes from 'prop-types'
|
|
3
|
+
import styles from './Icons.module.css'
|
|
4
|
+
|
|
5
|
+
const ArrowDownIcon = ({ 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 5L8 11L14 5' stroke='none' strokeLinecap='round' strokeLinejoin='round' />
|
|
21
|
+
</svg>
|
|
22
|
+
)
|
|
23
|
+
break
|
|
24
|
+
case 'normal':
|
|
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 7L12 16L21 7' 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 11.6667L20 26.6667L35 11.6667' stroke='none' strokeWidth={2} strokeLinecap='round' strokeLinejoin='round' />
|
|
49
|
+
</svg>
|
|
50
|
+
)
|
|
51
|
+
break
|
|
52
|
+
|
|
53
|
+
default:
|
|
54
|
+
break
|
|
55
|
+
}
|
|
56
|
+
return icon
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
ArrowDownIcon.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
|
+
ArrowDownIcon.defaultProps = {
|
|
71
|
+
color: 'main-dark-blue',
|
|
72
|
+
size: 'normal'
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
export default ArrowDownIcon
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import * as React from 'react'
|
|
2
|
+
import PropTypes from 'prop-types'
|
|
3
|
+
import styles from './Icons.module.css'
|
|
4
|
+
|
|
5
|
+
const ArrowLeftIcon = ({ 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='M11 2L5 8L11 14' stroke='none' strokeLinecap='round' strokeLinejoin='round' />
|
|
21
|
+
</svg>
|
|
22
|
+
)
|
|
23
|
+
break
|
|
24
|
+
case 'normal':
|
|
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='M16.5 3L7.5 12L16.5 21' 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='M27.5 5L12.5 20L27.5 35' stroke='none' strokeWidth={2} strokeLinecap='round' strokeLinejoin='round' />
|
|
49
|
+
</svg>
|
|
50
|
+
)
|
|
51
|
+
break
|
|
52
|
+
|
|
53
|
+
default:
|
|
54
|
+
break
|
|
55
|
+
}
|
|
56
|
+
return icon
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
ArrowLeftIcon.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
|
+
ArrowLeftIcon.defaultProps = {
|
|
71
|
+
color: 'main-dark-blue',
|
|
72
|
+
size: 'normal'
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
export default ArrowLeftIcon
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import * as React from 'react'
|
|
2
|
+
import PropTypes from 'prop-types'
|
|
3
|
+
import styles from './Icons.module.css'
|
|
4
|
+
|
|
5
|
+
const ArrowRightIcon = ({ 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='M5 14L11 8L5 2' stroke='none' strokeLinecap='round' strokeLinejoin='round' />
|
|
21
|
+
</svg>
|
|
22
|
+
)
|
|
23
|
+
break
|
|
24
|
+
case 'normal':
|
|
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='M7.5 21L16.5 12L7.5 3' 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='M12.5 35L27.5 20L12.5 5' stroke='none' strokeWidth={2} strokeLinecap='round' strokeLinejoin='round' />
|
|
49
|
+
</svg>
|
|
50
|
+
)
|
|
51
|
+
break
|
|
52
|
+
|
|
53
|
+
default:
|
|
54
|
+
break
|
|
55
|
+
}
|
|
56
|
+
return icon
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
ArrowRightIcon.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
|
+
ArrowRightIcon.defaultProps = {
|
|
71
|
+
color: 'main-dark-blue',
|
|
72
|
+
size: 'normal'
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
export default ArrowRightIcon
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import * as React from 'react'
|
|
2
|
+
import PropTypes from 'prop-types'
|
|
3
|
+
import styles from './Icons.module.css'
|
|
4
|
+
|
|
5
|
+
const ArrowDownIcon = ({ 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 11L8 5L2 11' stroke='none' strokeLinecap='round' strokeLinejoin='round' />
|
|
21
|
+
</svg>
|
|
22
|
+
)
|
|
23
|
+
break
|
|
24
|
+
case 'normal':
|
|
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='M21 16.5L12 7.5L3 16.5' 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='M35 27.5L20 12.5L5 27.5' stroke='none' strokeWidth={2} strokeLinecap='round' strokeLinejoin='round' />
|
|
49
|
+
</svg>
|
|
50
|
+
)
|
|
51
|
+
break
|
|
52
|
+
|
|
53
|
+
default:
|
|
54
|
+
break
|
|
55
|
+
}
|
|
56
|
+
return icon
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
ArrowDownIcon.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
|
+
ArrowDownIcon.defaultProps = {
|
|
71
|
+
color: 'main-dark-blue',
|
|
72
|
+
size: 'normal'
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
export default ArrowDownIcon
|