@platformatic/ui-components 0.1.85 → 0.1.87

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 (38) hide show
  1. package/dist/assets/index.2c94de34.js +206 -0
  2. package/dist/assets/index.bbcc19d7.css +1 -0
  3. package/dist/index.html +2 -2
  4. package/dist/main.css +4 -4
  5. package/index.js +1 -0
  6. package/package.json +1 -1
  7. package/src/components/BorderedBox.jsx +1 -1
  8. package/src/components/Button.jsx +15 -13
  9. package/src/components/Checkbox.jsx +23 -3
  10. package/src/components/Checkbox.module.css +14 -2
  11. package/src/components/Common.module.css +14 -1
  12. package/src/components/HorizontalSeparator.jsx +33 -2
  13. package/src/components/Modal.jsx +0 -1
  14. package/src/components/Modal.module.css +0 -3
  15. package/src/components/PlatformaticIcon.jsx +7 -1
  16. package/src/components/Sidebar.jsx +1 -1
  17. package/src/components/SimpleMetric.jsx +10 -14
  18. package/src/components/TextWithLabel.jsx +39 -2
  19. package/src/components/TextWithLabel.module.css +0 -3
  20. package/src/components/VerticalSeparator.jsx +20 -2
  21. package/src/components/constants.js +12 -1
  22. package/src/components/forms/Field.module.css +1 -1
  23. package/src/components/forms/Input.jsx +13 -4
  24. package/src/components/forms/Input.module.css +3 -0
  25. package/src/components/icons/CreditCardIcon.jsx +85 -0
  26. package/src/components/icons/GiveOwnershipIcon.jsx +84 -0
  27. package/src/components/icons/LogOutIcon.jsx +11 -3
  28. package/src/components/icons/OrganizationIcon.jsx +90 -0
  29. package/src/components/icons/RequestOwnershipIcon.jsx +84 -0
  30. package/src/components/icons/UserIcon.jsx +80 -0
  31. package/src/components/icons/UserRemoveIcon.jsx +97 -0
  32. package/src/components/icons/UserRoleIcon.jsx +96 -0
  33. package/src/components/icons/index.js +14 -0
  34. package/src/stories/Checkbox.stories.jsx +19 -0
  35. package/src/stories/forms/Input.stories.jsx +9 -0
  36. package/tailwind.config.cjs +1 -0
  37. package/dist/assets/index.a6b7ebf4.css +0 -1
  38. package/dist/assets/index.bd06830c.js +0 -40
@@ -0,0 +1,85 @@
1
+ import * as React from 'react'
2
+ import PropTypes from 'prop-types'
3
+ import styles from './Icons.module.css'
4
+ import { COLORS_ICON, SIZES } from '../constants'
5
+
6
+ const CreditCardIcon = ({ color, size }) => {
7
+ const className = `${styles.noShrinkForFlex} ` + styles[`${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
+ <rect x={2} y={4} width={12} height={8} rx={1} stroke='none' />
22
+ <path d='M2 6H14' stroke='none' strokeLinecap='round' strokeLinejoin='round' />
23
+ <rect x={9} y={8} width={3} height={2} rx='0.5' stroke='none' />
24
+
25
+ </svg>
26
+ )
27
+ break
28
+ case 'medium':
29
+ icon = (
30
+ <svg
31
+ width={24}
32
+ height={24}
33
+ viewBox='0 0 24 24'
34
+ fill='none'
35
+ xmlns='http://www.w3.org/2000/svg'
36
+ className={className}
37
+ >
38
+ <rect x={3} y={6} width={18} height={12} rx={1} stroke='none' strokeWidth={1.5} />
39
+ <path d='M3 9H21' stroke='none' strokeWidth={1.5} strokeLinecap='round' strokeLinejoin='round' />
40
+ <rect x={14} y={12} width={4.5} height={3} rx={0.5} stroke='none' strokeWidth={1.5} />
41
+
42
+ </svg>
43
+ )
44
+ break
45
+ case 'large':
46
+ icon = (
47
+ <svg
48
+ width={40}
49
+ height={40}
50
+ viewBox='0 0 40 40'
51
+ fill='none'
52
+ xmlns='http://www.w3.org/2000/svg'
53
+ className={className}
54
+ >
55
+ <rect x={5} y={10} width={30} height={20} rx={1} stroke='none' strokeWidth={2} />
56
+ <path d='M5 15H35' stroke='none' strokeWidth={2} strokeLinecap='round' strokeLinejoin='round' />
57
+ <rect x={24} y={20} width={7.5} height={5} rx={0.5} stroke='none' strokeWidth={2} />
58
+
59
+ </svg>
60
+ )
61
+ break
62
+
63
+ default:
64
+ break
65
+ }
66
+ return icon
67
+ }
68
+
69
+ CreditCardIcon.propTypes = {
70
+ /**
71
+ * color of text, icon and borders
72
+ */
73
+ color: PropTypes.oneOf(COLORS_ICON),
74
+ /**
75
+ * Size
76
+ */
77
+ size: PropTypes.oneOf(SIZES)
78
+ }
79
+
80
+ CreditCardIcon.defaultProps = {
81
+ color: 'main-dark-blue',
82
+ size: 'medium'
83
+ }
84
+
85
+ export default CreditCardIcon
@@ -0,0 +1,84 @@
1
+ import * as React from 'react'
2
+ import PropTypes from 'prop-types'
3
+ import styles from './Icons.module.css'
4
+ import { COLORS_ICON, SIZES } from '../constants'
5
+
6
+ const GiveOwnershipIcon = ({ color, size }) => {
7
+ const className = `${styles.noShrinkForFlex} ` + styles[`${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='M4.50276 9.21851L2 10.0705L3.27801 13.798L5.72752 12.8395L4.50276 9.21851Z' stroke='none' strokeLinecap='round' strokeLinejoin='round' />
22
+ <path d='M4.6626 9.64452C5.03535 9.18301 6.01515 8.26001 6.95236 8.26001C7.88956 8.26001 8.54987 8.75701 8.76287 9.00551H10.1474C10.3781 9.02326 10.8396 9.20786 10.8396 9.80427M10.8396 9.80427L12.5969 8.63276C12.5969 8.63276 13.2792 8.12695 13.7684 8.68601C14.2576 9.24507 13.8394 9.60902 13.7151 9.80427C12.8631 10.532 10.9568 12.0301 10.1474 12.2005C9.33797 12.3709 6.75711 12.378 5.56785 12.3603M10.8396 9.80427C10.8396 10.3581 10.4846 10.532 10.3071 10.5498H8.12387' stroke='none' strokeLinecap='round' strokeLinejoin='round' />
23
+ <path d='M5.99401 3.47059C5.99401 4.28277 5.32378 4.94118 4.49701 4.94118C3.67023 4.94118 3 4.28277 3 3.47059C3 2.6584 3.67023 2 4.49701 2C5.32378 2 5.99401 2.6584 5.99401 3.47059ZM5.99401 3.47059H9.10778M13 3.47059H11.9222M11.9222 3.47059V5M11.9222 3.47059H10.485M10.485 3.47059V4.47059M10.485 3.47059H9.10778M9.10778 3.47059V5' stroke='none' strokeLinecap='round' strokeLinejoin='round' />
24
+ </svg>
25
+ )
26
+ break
27
+ case 'medium':
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='M6.75414 13.8276L3 15.1056L4.91701 20.6969L8.59128 19.2592L6.75414 13.8276Z' stroke='none' strokeWidth={1.5} strokeLinecap='round' strokeLinejoin='round' />
38
+ <path d='M6.9939 14.4669C7.55302 13.7746 9.02273 12.3901 10.4285 12.3901C11.8343 12.3901 12.8248 13.1356 13.1443 13.5084H15.2211C15.5672 13.535 16.2594 13.8119 16.2594 14.7065M16.2594 14.7065L18.8953 12.9493C18.8953 12.9493 19.9188 12.1906 20.6526 13.0291C21.3864 13.8677 20.7591 14.4136 20.5727 14.7065C19.2947 15.7982 16.4352 18.0453 15.2211 18.3009C14.007 18.5565 10.1357 18.5672 8.35178 18.5405M16.2594 14.7065C16.2594 15.5372 15.7269 15.7982 15.4607 15.8248H12.1858' stroke='none' strokeWidth={1.5} strokeLinecap='round' strokeLinejoin='round' />
39
+ <path d='M8.99102 5.20588C8.99102 6.42416 7.98567 7.41176 6.74551 7.41176C5.50535 7.41176 4.5 6.42416 4.5 5.20588C4.5 3.98761 5.50535 3 6.74551 3C7.98567 3 8.99102 3.98761 8.99102 5.20588ZM8.99102 5.20588H13.6617M19.5 5.20588H17.8832M17.8832 5.20588V7.5M17.8832 5.20588H15.7275M15.7275 5.20588V6.70588M15.7275 5.20588H13.6617M13.6617 5.20588V7.5' stroke='none' strokeWidth={1.5} strokeLinecap='round' strokeLinejoin='round' />
40
+
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='M11.2569 23.0464L5 25.1764L8.19502 34.4952L14.3188 32.0989L11.2569 23.0464Z' stroke='none' strokeWidth={2} strokeLinecap='round' strokeLinejoin='round' />
55
+ <path d='M11.6565 24.1112C12.5884 22.9574 15.0379 20.6499 17.3809 20.6499C19.7239 20.6499 21.3747 21.8924 21.9072 22.5137H25.3684C25.9453 22.558 27.0991 23.0195 27.0991 24.5105M27.0991 24.5105L31.4922 21.5818C31.4922 21.5818 33.198 20.3173 34.421 21.7149C35.6439 23.1126 34.5985 24.0224 34.2879 24.5105C32.1579 26.3299 27.392 30.0752 25.3684 30.5012C23.3449 30.9272 16.8928 30.945 13.9196 30.9006M27.0991 24.5105C27.0991 25.8951 26.2116 26.3299 25.7678 26.3743H20.3097' stroke='none' strokeWidth={2} strokeLinecap='round' strokeLinejoin='round' />
56
+ <path d='M14.985 8.67647C14.985 10.7069 13.3094 12.3529 11.2425 12.3529C9.17558 12.3529 7.5 10.7069 7.5 8.67647C7.5 6.64601 9.17558 5 11.2425 5C13.3094 5 14.985 6.64601 14.985 8.67647ZM14.985 8.67647H22.7695M32.5 8.67647H29.8054M29.8054 8.67647V12.5M29.8054 8.67647H26.2126M26.2126 8.67647V11.1765M26.2126 8.67647H22.7695M22.7695 8.67647V12.5' stroke='none' strokeWidth={2} strokeLinecap='round' strokeLinejoin='round' />
57
+
58
+ </svg>
59
+ )
60
+ break
61
+
62
+ default:
63
+ break
64
+ }
65
+ return icon
66
+ }
67
+
68
+ GiveOwnershipIcon.propTypes = {
69
+ /**
70
+ * color of text, icon and borders
71
+ */
72
+ color: PropTypes.oneOf(COLORS_ICON),
73
+ /**
74
+ * Size
75
+ */
76
+ size: PropTypes.oneOf(SIZES)
77
+ }
78
+
79
+ GiveOwnershipIcon.defaultProps = {
80
+ color: 'main-dark-blue',
81
+ size: 'medium'
82
+ }
83
+
84
+ export default GiveOwnershipIcon
@@ -3,7 +3,7 @@ import PropTypes from 'prop-types'
3
3
  import styles from './Icons.module.css'
4
4
  import { COLORS_ICON, SIZES } from '../constants'
5
5
 
6
- const LogOutIcon = ({ color, size }) => {
6
+ const LogOutIcon = ({ color, size, tip }) => {
7
7
  const className = `${styles.noShrinkForFlex} ` + styles[`${color}`]
8
8
  let icon = <></>
9
9
 
@@ -16,6 +16,7 @@ const LogOutIcon = ({ color, size }) => {
16
16
  viewBox='0 0 16 16'
17
17
  fill='none'
18
18
  xmlns='http://www.w3.org/2000/svg'
19
+ data-tip={tip}
19
20
  className={className}
20
21
  >
21
22
  <path d='M8.38687 5.5V3C8.38687 2.44772 7.93915 2 7.38687 2H3C2.44772 2 2 2.44772 2 3V13C2 13.5523 2.44771 14 3 14H7.38687C7.93915 14 8.38687 13.5523 8.38687 13V11.5' stroke='none' strokeLinecap='round' />
@@ -32,6 +33,7 @@ const LogOutIcon = ({ color, size }) => {
32
33
  viewBox='0 0 24 24'
33
34
  fill='none'
34
35
  xmlns='http://www.w3.org/2000/svg'
36
+ data-tip={tip}
35
37
  className={className}
36
38
  >
37
39
  <path d='M12.5803 8.25V4C12.5803 3.44772 12.1326 3 11.5803 3H4C3.44772 3 3 3.44772 3 4V20C3 20.5523 3.44772 21 4 21H11.5803C12.1326 21 12.5803 20.5523 12.5803 20V17.25' stroke='none' strokeWidth={1.5} strokeLinecap='round' />
@@ -48,6 +50,7 @@ const LogOutIcon = ({ color, size }) => {
48
50
  viewBox='0 0 40 40'
49
51
  fill='none'
50
52
  xmlns='http://www.w3.org/2000/svg'
53
+ data-tip={tip}
51
54
  className={className}
52
55
  >
53
56
  <path d='M20.9672 13.75V6C20.9672 5.44772 20.5195 5 19.9672 5H6C5.44772 5 5 5.44772 5 6V34C5 34.5523 5.44772 35 6 35H19.9672C20.5195 35 20.9672 34.5523 20.9672 34V28.75' stroke='none' strokeWidth={2} strokeLinecap='round' />
@@ -71,12 +74,17 @@ LogOutIcon.propTypes = {
71
74
  /**
72
75
  * Size
73
76
  */
74
- size: PropTypes.oneOf(SIZES)
77
+ size: PropTypes.oneOf(SIZES),
78
+ /**
79
+ * tip
80
+ */
81
+ tip: PropTypes.string
75
82
  }
76
83
 
77
84
  LogOutIcon.defaultProps = {
78
85
  color: 'main-dark-blue',
79
- size: 'medium'
86
+ size: 'medium',
87
+ tip: ''
80
88
  }
81
89
 
82
90
  export default LogOutIcon
@@ -0,0 +1,90 @@
1
+ import * as React from 'react'
2
+ import PropTypes from 'prop-types'
3
+ import styles from './Icons.module.css'
4
+ import { COLORS_ICON, SIZES } from '../constants'
5
+
6
+ const OrganizationIcon = ({ color, size }) => {
7
+ const className = `${styles.noShrinkForFlex} ` + styles[`${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
+ <rect x={2} y={11} width={3} height={3} stroke='none' strokeLinejoin='round' />
22
+ <rect x={6.5} y={11} width={3} height={3} stroke='none' strokeLinejoin='round' />
23
+ <rect x={11} y={11} width={3} height={3} stroke='none' strokeLinejoin='round' />
24
+ <rect x={6} y={2} width={4} height={4} stroke='none' strokeLinejoin='round' />
25
+ <path d='M8 6V8.5M8 8.5H4C3.44772 8.5 3 8.94772 3 9.5V11M8 8.5H12C12.5523 8.5 13 8.94772 13 9.5V11M8 8.5V11' stroke='none' />
26
+
27
+ </svg>
28
+ )
29
+ break
30
+ case 'medium':
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={16.5} width={4.5} height={4.5} stroke='none' strokeWidth={1.5} strokeLinejoin='round' />
41
+ <rect x={9.75} y={16.5} width={4.5} height={4.5} stroke='none' strokeWidth={1.5} strokeLinejoin='round' />
42
+ <rect x={16.5} y={16.5} width={4.5} height={4.5} stroke='none' strokeWidth={1.5} strokeLinejoin='round' />
43
+ <rect x={9} y={3} width={6} height={6} stroke='none' strokeWidth={1.5} strokeLinejoin='round' />
44
+ <path d='M12 9V12.75M12 12.75H5.5C4.94772 12.75 4.5 13.1977 4.5 13.75V16.5M12 12.75H18.5C19.0523 12.75 19.5 13.1977 19.5 13.75V16.5M12 12.75V16.5' stroke='none' strokeWidth={1.5} />
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
+ >
58
+ <rect x={5} y={27.5} width={7.5} height={7.5} stroke='none' strokeWidth={2} strokeLinejoin='round' />
59
+ <rect x={16.25} y={27.5} width={7.5} height={7.5} stroke='none' strokeWidth={2} strokeLinejoin='round' />
60
+ <rect x={27.5} y={27.5} width={7.5} height={7.5} stroke='none' strokeWidth={2} strokeLinejoin='round' />
61
+ <rect x={15} y={5} width={10} height={10} stroke='none' strokeWidth={2} strokeLinejoin='round' />
62
+ <path d='M20 15V21.25M20 21.25H8.5C7.94772 21.25 7.5 21.6977 7.5 22.25V27.5M20 21.25H31.5C32.0523 21.25 32.5 21.6977 32.5 22.25V27.5M20 21.25V27.5' stroke='none' strokeWidth={2} />
63
+
64
+ </svg>
65
+ )
66
+ break
67
+
68
+ default:
69
+ break
70
+ }
71
+ return icon
72
+ }
73
+
74
+ OrganizationIcon.propTypes = {
75
+ /**
76
+ * color of text, icon and borders
77
+ */
78
+ color: PropTypes.oneOf(COLORS_ICON),
79
+ /**
80
+ * Size
81
+ */
82
+ size: PropTypes.oneOf(SIZES)
83
+ }
84
+
85
+ OrganizationIcon.defaultProps = {
86
+ color: 'main-dark-blue',
87
+ size: 'medium'
88
+ }
89
+
90
+ export default OrganizationIcon
@@ -0,0 +1,84 @@
1
+ import * as React from 'react'
2
+ import PropTypes from 'prop-types'
3
+ import styles from './Icons.module.css'
4
+ import { COLORS_ICON, SIZES } from '../constants'
5
+
6
+ const RequestOwnershipIcon = ({ color, size }) => {
7
+ const className = `${styles.noShrinkForFlex} ` + styles[`${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='M11.4972 9.21851L14 10.0705L12.722 13.798L10.2725 12.8395L11.4972 9.21851Z' stroke='none' strokeLinecap='round' strokeLinejoin='round' />
22
+ <path d='M11.3374 9.64452C10.9647 9.18301 9.98485 8.26001 9.04764 8.26001C8.11044 8.26001 7.45013 8.75701 7.23713 9.00551H5.85262C5.62187 9.02326 5.16037 9.20786 5.16037 9.80427M5.16037 9.80427L3.40311 8.63276C3.40311 8.63276 2.72078 8.12695 2.23161 8.68601C1.74243 9.24507 2.1606 9.60902 2.28486 9.80427C3.13686 10.532 5.04322 12.0301 5.85262 12.2005C6.66203 12.3709 9.24289 12.378 10.4321 12.3603M5.16037 9.80427C5.16037 10.3581 5.51537 10.532 5.69287 10.5498H7.87613' stroke='none' strokeLinecap='round' strokeLinejoin='round' />
23
+ <path d='M5.99401 3.47059C5.99401 4.28277 5.32378 4.94118 4.49701 4.94118C3.67023 4.94118 3 4.28277 3 3.47059C3 2.6584 3.67023 2 4.49701 2C5.32378 2 5.99401 2.6584 5.99401 3.47059ZM5.99401 3.47059H9.10778M13 3.47059H11.9222M11.9222 3.47059V5M11.9222 3.47059H10.485M10.485 3.47059V4.47059M10.485 3.47059H9.10778M9.10778 3.47059V5' stroke='none' strokeLinecap='round' strokeLinejoin='round' />
24
+ </svg>
25
+ )
26
+ break
27
+ case 'medium':
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='M17.2459 13.8276L21 15.1056L19.083 20.6969L15.4087 19.2592L17.2459 13.8276Z' stroke='none' strokeWidth={1.5} strokeLinecap='round' strokeLinejoin='round' />
38
+ <path d='M17.0061 14.4669C16.447 13.7746 14.9773 12.3901 13.5715 12.3901C12.1657 12.3901 11.1752 13.1356 10.8557 13.5084H8.77894C8.43281 13.535 7.74056 13.8119 7.74056 14.7065M7.74056 14.7065L5.10467 12.9493C5.10467 12.9493 4.08117 12.1906 3.34741 13.0291C2.61364 13.8677 3.24091 14.4136 3.42728 14.7065C4.70529 15.7982 7.56483 18.0453 8.77894 18.3009C9.99304 18.5565 13.8643 18.5672 15.6482 18.5405M7.74056 14.7065C7.74056 15.5372 8.27306 15.7982 8.53931 15.8248H11.8142' stroke='none' strokeWidth={1.5} strokeLinecap='round' strokeLinejoin='round' />
39
+ <path d='M8.99102 5.20588C8.99102 6.42416 7.98567 7.41176 6.74551 7.41176C5.50535 7.41176 4.5 6.42416 4.5 5.20588C4.5 3.98761 5.50535 3 6.74551 3C7.98567 3 8.99102 3.98761 8.99102 5.20588ZM8.99102 5.20588H13.6617M19.5 5.20588H17.8832M17.8832 5.20588V7.5M17.8832 5.20588H15.7275M15.7275 5.20588V6.70588M15.7275 5.20588H13.6617M13.6617 5.20588V7.5' stroke='none' strokeWidth={1.5} strokeLinecap='round' strokeLinejoin='round' />
40
+
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='M28.7431 23.0464L35 25.1764L31.805 34.4952L25.6812 32.0989L28.7431 23.0464Z' stroke='none' strokeWidth={2} strokeLinecap='round' strokeLinejoin='round' />
55
+ <path d='M28.3435 24.1112C27.4116 22.9574 24.9621 20.6499 22.6191 20.6499C20.2761 20.6499 18.6253 21.8924 18.0928 22.5137H14.6316C14.0547 22.558 12.9009 23.0195 12.9009 24.5105M12.9009 24.5105L8.50778 21.5818C8.50778 21.5818 6.80195 20.3173 5.57901 21.7149C4.35607 23.1126 5.40151 24.0224 5.71214 24.5105C7.84215 26.3299 12.608 30.0752 14.6316 30.5012C16.6551 30.9272 23.1072 30.945 26.0804 30.9006M12.9009 24.5105C12.9009 25.8951 13.7884 26.3299 14.2322 26.3743H19.6903' stroke='none' strokeWidth={2} strokeLinecap='round' strokeLinejoin='round' />
56
+ <path d='M14.985 8.67647C14.985 10.7069 13.3094 12.3529 11.2425 12.3529C9.17558 12.3529 7.5 10.7069 7.5 8.67647C7.5 6.64601 9.17558 5 11.2425 5C13.3094 5 14.985 6.64601 14.985 8.67647ZM14.985 8.67647H22.7695M32.5 8.67647H29.8054M29.8054 8.67647V12.5M29.8054 8.67647H26.2126M26.2126 8.67647V11.1765M26.2126 8.67647H22.7695M22.7695 8.67647V12.5' stroke='none' strokeWidth={2} strokeLinecap='round' strokeLinejoin='round' />
57
+
58
+ </svg>
59
+ )
60
+ break
61
+
62
+ default:
63
+ break
64
+ }
65
+ return icon
66
+ }
67
+
68
+ RequestOwnershipIcon.propTypes = {
69
+ /**
70
+ * color of text, icon and borders
71
+ */
72
+ color: PropTypes.oneOf(COLORS_ICON),
73
+ /**
74
+ * Size
75
+ */
76
+ size: PropTypes.oneOf(SIZES)
77
+ }
78
+
79
+ RequestOwnershipIcon.defaultProps = {
80
+ color: 'main-dark-blue',
81
+ size: 'medium'
82
+ }
83
+
84
+ export default RequestOwnershipIcon
@@ -0,0 +1,80 @@
1
+ import * as React from 'react'
2
+ import PropTypes from 'prop-types'
3
+ import styles from './Icons.module.css'
4
+ import { COLORS_ICON, SIZES } from '../constants'
5
+
6
+ const UserIcon = ({ color, size }) => {
7
+ const className = `${styles.noShrinkForFlex} ` + styles[`${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='M8 10C4.68629 10 2 11.7909 2 14H14C14 11.7909 11.3137 10 8 10Z' stroke='none' strokeLinejoin='round' />
22
+ <circle cx={8} cy={5} r={3} stroke='none' />
23
+
24
+ </svg>
25
+ )
26
+ break
27
+ case 'medium':
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='M12 15C7.02944 15 3 17.6863 3 21H21C21 17.6863 16.9706 15 12 15Z' stroke='none' strokeWidth={1.5} strokeLinejoin='round' />
38
+ <circle cx={12} cy={7.5} r={4.5} stroke='none' strokeWidth={1.5} />
39
+ </svg>
40
+ )
41
+ break
42
+ case 'large':
43
+ icon = (
44
+ <svg
45
+ width={40}
46
+ height={40}
47
+ viewBox='0 0 40 40'
48
+ fill='none'
49
+ xmlns='http://www.w3.org/2000/svg'
50
+ className={className}
51
+ >
52
+ <path d='M20 25C11.7157 25 5 29.4772 5 35H35C35 29.4772 28.2843 25 20 25Z' stroke='none' strokeWidth={2} strokeLinejoin='round' />
53
+ <circle cx={20} cy={12.5} r={7.5} stroke='none' strokeWidth={2} />
54
+ </svg>
55
+ )
56
+ break
57
+
58
+ default:
59
+ break
60
+ }
61
+ return icon
62
+ }
63
+
64
+ UserIcon.propTypes = {
65
+ /**
66
+ * color of text, icon and borders
67
+ */
68
+ color: PropTypes.oneOf(COLORS_ICON),
69
+ /**
70
+ * Size
71
+ */
72
+ size: PropTypes.oneOf(SIZES)
73
+ }
74
+
75
+ UserIcon.defaultProps = {
76
+ color: 'main-dark-blue',
77
+ size: 'medium'
78
+ }
79
+
80
+ export default UserIcon
@@ -0,0 +1,97 @@
1
+ import * as React from 'react'
2
+ import PropTypes from 'prop-types'
3
+ import styles from './Icons.module.css'
4
+ import { COLORS_ICON, SIZES } from '../constants'
5
+
6
+ const UserRemoveIcon = ({ color, size, tip }) => {
7
+ const className = `${styles.noShrinkForFlex} ` + styles[`${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
+ data-tip={tip}
20
+ className={className}
21
+ >
22
+ <path d='M7 10.0553C4.16229 10.3727 2 12.018 2 14H8' stroke='none' strokeLinecap='round' strokeLinejoin='round' />
23
+ <circle cx={8} cy={5} r={3} stroke='none' />
24
+ <circle cx={11} cy={11} r={3} stroke='none' />
25
+ <path d='M10 10L12 12' stroke='none' strokeLinecap='round' strokeLinejoin='round' />
26
+ <path d='M10 12L12 10' stroke='none' strokeLinecap='round' strokeLinejoin='round' />
27
+
28
+ </svg>
29
+ )
30
+ break
31
+ case 'medium':
32
+ icon = (
33
+ <svg
34
+ width={24}
35
+ height={24}
36
+ viewBox='0 0 24 24'
37
+ fill='none'
38
+ xmlns='http://www.w3.org/2000/svg'
39
+ data-tip={tip}
40
+ className={className}
41
+ >
42
+ <path d='M10.5 15.083C6.24343 15.559 3 18.027 3 21H12' stroke='none' strokeWidth={1.5} strokeLinecap='round' strokeLinejoin='round' />
43
+ <circle cx={12} cy={7.5} r={4.5} stroke='none' strokeWidth={1.5} />
44
+ <circle cx={16.5} cy={16.5} r={4.5} stroke='none' strokeWidth={1.5} />
45
+ <path d='M15 15L18 18' stroke='none' strokeWidth={1.5} strokeLinecap='round' strokeLinejoin='round' />
46
+ <path d='M15 18L18 15' stroke='none' strokeWidth={1.5} strokeLinecap='round' strokeLinejoin='round' />
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
+ data-tip={tip}
59
+ className={className}
60
+ >
61
+ <path d='M17.5 25.1383C10.4057 25.9317 5 30.045 5 35H20' stroke='none' strokeWidth={2} strokeLinecap='round' strokeLinejoin='round' />
62
+ <circle cx={20} cy={12.5} r={7.5} stroke='none' strokeWidth={2} />
63
+ <circle cx={27.5} cy={27.5} r={7.5} stroke='none' strokeWidth={2} />
64
+ <path d='M25 25L30 30' stroke='none' strokeWidth={2} strokeLinecap='round' strokeLinejoin='round' />
65
+ <path d='M25 30L30 25' stroke='none' strokeWidth={2} strokeLinecap='round' strokeLinejoin='round' />
66
+ </svg>
67
+ )
68
+ break
69
+
70
+ default:
71
+ break
72
+ }
73
+ return icon
74
+ }
75
+
76
+ UserRemoveIcon.propTypes = {
77
+ /**
78
+ * color of text, icon and borders
79
+ */
80
+ color: PropTypes.oneOf(COLORS_ICON),
81
+ /**
82
+ * Size
83
+ */
84
+ size: PropTypes.oneOf(SIZES),
85
+ /**
86
+ * tip
87
+ */
88
+ tip: PropTypes.string
89
+ }
90
+
91
+ UserRemoveIcon.defaultProps = {
92
+ color: 'main-dark-blue',
93
+ size: 'medium',
94
+ tip: ''
95
+ }
96
+
97
+ export default UserRemoveIcon