@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.
Files changed (55) hide show
  1. package/dist/api-icon-closed.svg +6 -0
  2. package/dist/api-icon.svg +9 -0
  3. package/dist/assets/Montserrat-Regular.dcfe8df2.ttf +0 -0
  4. package/dist/assets/index.691ca940.css +1 -0
  5. package/dist/assets/index.ff0dadfc.js +797 -0
  6. package/dist/index.html +14 -0
  7. package/dist/stats.html +6177 -0
  8. package/dist/vite.svg +1 -0
  9. package/package.json +1 -1
  10. package/src/components/DropDown.jsx +3 -4
  11. package/src/components/DropDown.module.css +0 -2
  12. package/src/components/Modal.jsx +1 -1
  13. package/src/components/Sidebar.jsx +3 -5
  14. package/src/components/Sidebar.module.css +8 -4
  15. package/src/components/forms/Preview.jsx +1 -1
  16. package/src/components/icons/AddIcon.jsx +78 -0
  17. package/src/components/icons/AlertIcon.jsx +81 -0
  18. package/src/components/icons/AllInOneIcon.jsx +111 -0
  19. package/src/components/icons/ApiCloudIcon.jsx +93 -0
  20. package/src/components/icons/ApiIcon.jsx +83 -28
  21. package/src/components/icons/AppIcon.jsx +84 -37
  22. package/src/components/icons/ArrowDownFullIcon.jsx +76 -0
  23. package/src/components/icons/ArrowDownIcon.jsx +75 -0
  24. package/src/components/icons/ArrowLeftIcon.jsx +75 -0
  25. package/src/components/icons/ArrowRightIcon.jsx +75 -0
  26. package/src/components/icons/ArrowUpIcon.jsx +75 -0
  27. package/src/components/icons/Calendar1DayIcon.jsx +90 -0
  28. package/src/components/icons/Calendar7DaysIcon.jsx +88 -0
  29. package/src/components/icons/CalendarIcon.jsx +75 -29
  30. package/src/components/icons/CircleAddIcon.jsx +58 -17
  31. package/src/components/icons/CloseIcon.jsx +73 -25
  32. package/src/components/icons/CopyPasteIcon.jsx +81 -0
  33. package/src/components/icons/DatabaseIcon.jsx +81 -0
  34. package/src/components/icons/EditIcon.jsx +63 -20
  35. package/src/components/icons/GearIcon.jsx +67 -29
  36. package/src/components/icons/Icons.module.css +17 -0
  37. package/src/components/icons/Users2Icon.jsx +84 -0
  38. package/src/components/icons/WorkspaceDynamicIcon.jsx +87 -0
  39. package/src/components/icons/WorkspaceReadyIcon.jsx +144 -0
  40. package/src/components/icons/WorkspaceStaticIcon.jsx +84 -0
  41. package/src/components/icons/index.js +35 -15
  42. package/src/stories/PlatformaticIcon.stories.jsx +7 -1
  43. package/src/stories/Sidebar.stories.jsx +2 -2
  44. package/src/stories/forms/Input.stories.jsx +1 -1
  45. package/src/stories/forms/Preview.stories.jsx +1 -1
  46. package/src/stories/icons/Icons.stories.jsx +4 -10
  47. package/src/styles/main.css +8 -1
  48. package/dist/main.css +0 -704
  49. package/src/components/icons/Calendar1Icon.jsx +0 -54
  50. package/src/components/icons/Calendar7Icon.jsx +0 -55
  51. package/src/components/icons/CopyIcon.jsx +0 -75
  52. package/src/components/icons/CreatedWorkspaceIcon.jsx +0 -70
  53. package/src/components/icons/DynamicWorkspaceIcon.jsx +0 -125
  54. package/src/components/icons/StaticWorkspaceIcon.jsx +0 -119
  55. package/src/components/icons/TriangleExclamationIcon.jsx +0 -26
@@ -1,38 +1,85 @@
1
- import React from 'react'
2
- export default function AppIcon () {
3
- return (
4
- <svg
5
- width={32}
6
- height={33}
7
- viewBox='0 0 32 33'
8
- fill='none'
9
- xmlns='http://www.w3.org/2000/svg'
10
- >
11
- <path
12
- d='M12 6.75317H5C4.44772 6.75317 4 7.20089 4 7.75317V21.1132C4 21.6655 4.44772 22.1132 5 22.1132H27C27.5523 22.1132 28 21.6655 28 21.1132V7.75317C28 7.20089 27.5523 6.75317 27 6.75317H20'
13
- stroke='#00283D'
14
- strokeWidth={2}
15
- strokeLinecap='round'
16
- />
17
- <rect
18
- x={12}
19
- y={22.1133}
20
- width={8}
21
- height={3.84}
22
- stroke='#00283D'
23
- strokeWidth={2}
24
- />
25
- <path
26
- d='M8 26.9534C8 26.4011 8.44772 25.9534 9 25.9534H23C23.5523 25.9534 24 26.4011 24 26.9534V28.8334H8V26.9534Z'
27
- stroke='#00283D'
28
- strokeWidth={2}
29
- />
30
- <path
31
- d='M16 4.83325L17.7961 10.14H23.6085L18.9062 13.4198L20.7023 18.7265L16 15.4468L11.2977 18.7265L13.0938 13.4198L8.39155 10.14H14.2039L16 4.83325Z'
32
- stroke='#00283D'
33
- strokeWidth={2}
34
- strokeLinejoin='round'
35
- />
36
- </svg>
37
- )
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
38
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
@@ -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
@@ -0,0 +1,90 @@
1
+ import * as React from 'react'
2
+ import PropTypes from 'prop-types'
3
+ import styles from './Icons.module.css'
4
+
5
+ const Calendar1DayIcon = ({ color, size }) => {
6
+ const className = `${styles.noShrinkForFlex} ` + styles[`${color}`]
7
+ const filledClassName = styles[`filled-${color}`]
8
+
9
+ let icon = <></>
10
+
11
+ switch (size) {
12
+ case 'small':
13
+ icon = (
14
+ <svg
15
+ width={16}
16
+ height={16}
17
+ viewBox='0 0 16 16'
18
+ fill='none'
19
+ xmlns='http://www.w3.org/2000/svg'
20
+ className={className}
21
+ >
22
+ <rect x={2} y={4} width={12} height={10} rx={1} stroke='none' />
23
+ <path d='M2 7H5M14 7H11' stroke='none' strokeLinecap='round' strokeLinejoin='round' />
24
+ <line x1={4.5} y1={5.5} x2={4.5} y2={2.5} stroke='none' strokeLinecap='round' />
25
+ <line x1={11.5} y1={5.5} x2={11.5} y2={2.5} stroke='none' strokeLinecap='round' />
26
+ <path d='M7.59712 13V6.5L8.21223 7.09L7.59712 8H7.5L6.5 9V7L7.5 6H9V13H7.59712Z' fill='none' className={filledClassName} />
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
+ <rect x={3} y={6} width={18} height={15} rx={1} stroke='none' strokeWidth={2} />
41
+ <path d='M3 10.5H7.5M21 10.5H16.5' stroke='none' strokeWidth={2} strokeLinecap='round' strokeLinejoin='round' />
42
+ <line x1={6.75} y1={8.25} x2={6.75} y2={3.75} stroke='none' strokeWidth={2} strokeLinecap='round' />
43
+ <line x1={17.25} y1={8.25} x2={17.25} y2={3.75} stroke='none' strokeWidth={2} strokeLinecap='round' />
44
+ <path d='M11.3957 19.5V9.75L12.3183 10.635L11.3957 12H11.25L9.75 13.5V10.5L11.25 9H13.5V19.5H11.3957Z' fill='none' className={filledClassName} />
45
+
46
+ </svg>
47
+ )
48
+ break
49
+ case 'large':
50
+ icon = (
51
+ <svg
52
+ width={40}
53
+ height={40}
54
+ viewBox='0 0 40 40'
55
+ fill='none'
56
+ xmlns='http://www.w3.org/2000/svg'
57
+ className={className}
58
+ >
59
+ <rect x={5} y={10} width={30} height={25} rx={1} stroke='none' strokeWidth={2} />
60
+ <path d='M5 17.5H12.5M35 17.5H27.5' stroke='none' strokeWidth={2} strokeLinecap='round' strokeLinejoin='round' />
61
+ <line x1={11.5} y1={14} x2={11.5} y2={6} stroke='none' strokeWidth={2} strokeLinecap='round' />
62
+ <line x1={29} y1={14} x2={29} y2={6} stroke='none' strokeWidth={2} strokeLinecap='round' />
63
+ <path d='M18.9928 32.5V16.25L20.5306 17.725L18.9928 20H18.75L16.25 22.5V17.5L18.75 15H22.5V32.5H18.9928Z' fill='none' className={filledClassName} />
64
+ </svg>
65
+ )
66
+ break
67
+
68
+ default:
69
+ break
70
+ }
71
+ return icon
72
+ }
73
+
74
+ Calendar1DayIcon.propTypes = {
75
+ /**
76
+ * color of text, icon and borders
77
+ */
78
+ color: PropTypes.oneOf(['green', 'white', 'main-dark-blue', 'red']),
79
+ /**
80
+ * Size
81
+ */
82
+ size: PropTypes.oneOf(['small', 'medium', 'large', 'extra-large'])
83
+ }
84
+
85
+ Calendar1DayIcon.defaultProps = {
86
+ color: 'main-dark-blue',
87
+ size: 'normal'
88
+ }
89
+
90
+ export default Calendar1DayIcon
@@ -0,0 +1,88 @@
1
+ import * as React from 'react'
2
+ import PropTypes from 'prop-types'
3
+ import styles from './Icons.module.css'
4
+
5
+ const Calendar7DaysIcon = ({ color, size }) => {
6
+ const className = `${styles.noShrinkForFlex} ` + styles[`${color}`]
7
+ const filledClassName = styles[`filled-${color}`]
8
+
9
+ let icon = <></>
10
+
11
+ switch (size) {
12
+ case 'small':
13
+ icon = (
14
+ <svg
15
+ width={16}
16
+ height={16}
17
+ viewBox='0 0 16 16'
18
+ fill='none'
19
+ xmlns='http://www.w3.org/2000/svg'
20
+ className={className}
21
+ >
22
+ <rect x={2} y={4} width={12} height={10} rx={1} stroke='none' />
23
+ <path d='M2 7H4M14 7H12' stroke='none' strokeLinecap='round' strokeLinejoin='round' />
24
+ <line x1={4.5} y1={5.5} x2={4.5} y2={2.5} stroke='none' strokeLinecap='round' />
25
+ <line x1={11.5} y1={5.5} x2={11.5} y2={2.5} stroke='none' strokeLinecap='round' />
26
+ <path d='M6.46691 13L9.65441 6.52L10.0294 7.1H5.65074L6.33456 6.47V8.29H5V6H11V6.87L8 13H6.46691Z' fill='none' className={filledClassName} />
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
+ <rect x={3} y={6} width={18} height={15} rx={1} stroke='none' strokeWidth={1.5} />
41
+ <path d='M3 10.5H6M21 10.5H18' stroke='none' strokeWidth={1.5} strokeLinecap='round' strokeLinejoin='round' />
42
+ <line x1={6.75} y1={8.25} x2={6.75} y2={3.75} stroke='none' strokeWidth={1.5} strokeLinecap='round' />
43
+ <line x1={17.25} y1={8.25} x2={17.25} y2={3.75} stroke='none' strokeWidth={1.5} strokeLinecap='round' />
44
+ <path d='M9.70037 19.5L14.4816 9.78L15.0441 10.65H8.4761L9.50184 9.705V12.435H7.5V9H16.5V10.305L12 19.5H9.70037Z' fill='none' className={filledClassName} />
45
+ </svg>
46
+ )
47
+ break
48
+ case 'large':
49
+ icon = (
50
+ <svg
51
+ width={40}
52
+ height={40}
53
+ viewBox='0 0 40 40'
54
+ fill='none'
55
+ xmlns='http://www.w3.org/2000/svg'
56
+ className={className}
57
+ ><rect x={5} y={10} width={30} height={25} rx={1} stroke='none' strokeWidth={2} />
58
+ <path d='M5 17.5H10M35 17.5H30' stroke='none' strokeWidth={2} strokeLinecap='round' strokeLinejoin='round' />
59
+ <line x1={11.5} y1={14} x2={11.5} y2={6} stroke='none' strokeWidth={2} strokeLinecap='round' />
60
+ <line x1={29} y1={14} x2={29} y2={6} stroke='none' strokeWidth={2} strokeLinecap='round' />
61
+ <path d='M16.1673 32.5L24.136 16.3L25.0735 17.75H14.1268L15.8364 16.175V20.725H12.5V15H27.5V17.175L20 32.5H16.1673Z' fill='none' className={filledClassName} />
62
+ </svg>
63
+ )
64
+ break
65
+
66
+ default:
67
+ break
68
+ }
69
+ return icon
70
+ }
71
+
72
+ Calendar7DaysIcon.propTypes = {
73
+ /**
74
+ * color of text, icon and borders
75
+ */
76
+ color: PropTypes.oneOf(['green', 'white', 'main-dark-blue', 'red']),
77
+ /**
78
+ * Size
79
+ */
80
+ size: PropTypes.oneOf(['small', 'medium', 'large', 'extra-large'])
81
+ }
82
+
83
+ Calendar7DaysIcon.defaultProps = {
84
+ color: 'main-dark-blue',
85
+ size: 'normal'
86
+ }
87
+
88
+ export default Calendar7DaysIcon