@platformatic/ui-components 0.1.50 → 0.1.52

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 (54) 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/main.css +10 -0
  8. package/dist/vite.svg +1 -0
  9. package/package.json +3 -2
  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/src/components/icons/Calendar1Icon.jsx +0 -54
  49. package/src/components/icons/Calendar7Icon.jsx +0 -55
  50. package/src/components/icons/CopyIcon.jsx +0 -75
  51. package/src/components/icons/CreatedWorkspaceIcon.jsx +0 -70
  52. package/src/components/icons/DynamicWorkspaceIcon.jsx +0 -125
  53. package/src/components/icons/StaticWorkspaceIcon.jsx +0 -119
  54. package/src/components/icons/TriangleExclamationIcon.jsx +0 -26
@@ -1,29 +1,84 @@
1
- import React from 'react'
2
- export default function ApiIcon () {
3
- return (
4
- <svg
5
- width={38}
6
- height={56}
7
- fill='none'
8
- xmlns='http://www.w3.org/2000/svg'
9
- >
10
- <path
11
- d='M8.12 22.358A7.12 7.12 0 0 1 8.118 8.12a7.12 7.12 0 0 1 13.631-2.88c.2-.02.404-.029.61-.029a7.121 7.121 0 0 1 6.864 5.236 6.079 6.079 0 1 1 1.7 11.912'
12
- stroke='#fff'
13
- strokeWidth={2}
14
- strokeLinecap='round'
15
- strokeLinejoin='round'
16
- />
17
- <path
18
- d='M13 11.5V31h-1.5M25 13v18h3M19 15.4v35.8h11.4'
19
- stroke='#fff'
20
- strokeWidth={2}
21
- strokeLinecap='round'
22
- strokeLinejoin='round'
23
- />
24
- <circle cx={7} cy={31} r={3} stroke='#fff' strokeWidth={2} />
25
- <circle cx={31} cy={31} r={3} stroke='#fff' strokeWidth={2} />
26
- <circle cx={34} cy={51.2} r={3} stroke='#fff' strokeWidth={2} />
27
- </svg>
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
@@ -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