@platformatic/ui-components 0.1.49 → 0.1.50

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 (152) hide show
  1. package/.github/workflows/ci.yml +26 -26
  2. package/.nvmrc +1 -1
  3. package/LICENSE +201 -201
  4. package/README.md +30 -30
  5. package/fonts/Montserrat/README.txt +81 -81
  6. package/index.html +12 -12
  7. package/index.js +71 -71
  8. package/package.json +76 -76
  9. package/postcss.config.cjs +8 -8
  10. package/public/api-icon-closed.svg +6 -6
  11. package/public/api-icon.svg +9 -9
  12. package/src/App.jsx +12 -12
  13. package/src/components/BorderedBox.jsx +18 -18
  14. package/src/components/BorderedBox.module.css +8 -8
  15. package/src/components/BorderedText.jsx +8 -8
  16. package/src/components/BorderedText.module.css +2 -2
  17. package/src/components/Box.jsx +14 -14
  18. package/src/components/Box.module.css +7 -7
  19. package/src/components/Button.jsx +95 -95
  20. package/src/components/Button.module.css +127 -127
  21. package/src/components/ButtonFullRounded.jsx +17 -17
  22. package/src/components/ButtonFullRounded.module.css +28 -28
  23. package/src/components/Checkbox.jsx +11 -11
  24. package/src/components/Checkbox.module.css +18 -18
  25. package/src/components/Common.module.css +28 -28
  26. package/src/components/DetailedMetric.jsx +32 -32
  27. package/src/components/DetailedMetric.module.css +2 -2
  28. package/src/components/DropDown.jsx +36 -36
  29. package/src/components/DropDown.module.css +27 -27
  30. package/src/components/FollowUs.jsx +35 -35
  31. package/src/components/FollowUs.module.css +11 -11
  32. package/src/components/GHLoginButton.jsx +14 -14
  33. package/src/components/HorizontalSeparator.jsx +15 -15
  34. package/src/components/HorizontalSeparator.module.css +26 -26
  35. package/src/components/InfoBox.jsx +50 -50
  36. package/src/components/InfoBox.module.css +5 -5
  37. package/src/components/List.jsx +20 -20
  38. package/src/components/List.module.css +11 -11
  39. package/src/components/ListElement.jsx +23 -23
  40. package/src/components/ListElement.module.css +23 -23
  41. package/src/components/Loadable.jsx +34 -34
  42. package/src/components/Loadable.module.css +13 -13
  43. package/src/components/Loader.jsx +22 -22
  44. package/src/components/Loader.module.css +13 -13
  45. package/src/components/LoginButton.jsx +17 -17
  46. package/src/components/LoginButton.module.css +7 -7
  47. package/src/components/LoginButton.test.jsx +25 -25
  48. package/src/components/Logo.jsx +62 -62
  49. package/src/components/Logo.module.css +5 -5
  50. package/src/components/Main.jsx +33 -33
  51. package/src/components/MetricValue.jsx +15 -15
  52. package/src/components/MetricValue.module.css +9 -9
  53. package/src/components/Modal.jsx +93 -93
  54. package/src/components/Modal.module.css +50 -50
  55. package/src/components/PlatformaticIcon.jsx +57 -57
  56. package/src/components/PlatformaticIcon.module.css +2 -2
  57. package/src/components/Playground.jsx +9 -9
  58. package/src/components/SearchBar.jsx +63 -63
  59. package/src/components/SearchBar.module.css +20 -20
  60. package/src/components/Sidebar.jsx +153 -153
  61. package/src/components/Sidebar.module.css +66 -66
  62. package/src/components/SimpleMetric.jsx +28 -28
  63. package/src/components/SimpleMetric.module.css +6 -6
  64. package/src/components/Status.jsx +26 -26
  65. package/src/components/TabbedWindow.jsx +39 -39
  66. package/src/components/TabbedWindow.module.css +16 -16
  67. package/src/components/TextWithLabel.jsx +11 -11
  68. package/src/components/TextWithLabel.module.css +8 -8
  69. package/src/components/Versions.jsx +9 -9
  70. package/src/components/VerticalSeparator.jsx +5 -5
  71. package/src/components/forms/Field.jsx +53 -20
  72. package/src/components/forms/Field.module.css +23 -17
  73. package/src/components/forms/Input.jsx +80 -80
  74. package/src/components/forms/Input.module.css +28 -28
  75. package/src/components/forms/Preview.jsx +75 -77
  76. package/src/components/forms/Preview.module.css +14 -14
  77. package/src/components/forms/ToggleSwitch.jsx +18 -18
  78. package/src/components/forms/ToggleSwitch.module.css +42 -42
  79. package/src/components/forms/index.js +8 -8
  80. package/src/components/icons/ApiEmptyIcon.jsx +107 -107
  81. package/src/components/icons/ApiIcon.jsx +29 -29
  82. package/src/components/icons/ApiIconClosed.jsx +19 -19
  83. package/src/components/icons/AppEmptyIcon.jsx +94 -94
  84. package/src/components/icons/AppIcon.jsx +38 -38
  85. package/src/components/icons/AppListIcon.jsx +73 -73
  86. package/src/components/icons/Calendar1Icon.jsx +54 -54
  87. package/src/components/icons/Calendar7Icon.jsx +55 -55
  88. package/src/components/icons/CalendarIcon.jsx +56 -56
  89. package/src/components/icons/CircleAddIcon.jsx +40 -40
  90. package/src/components/icons/CircleBackIcon.jsx +51 -51
  91. package/src/components/icons/CircleCheckMarkIcon.jsx +66 -0
  92. package/src/components/icons/CircleCloseHoverIcon.jsx +42 -42
  93. package/src/components/icons/CircleCloseIcon.jsx +32 -32
  94. package/src/components/icons/CircleExclamationIcon.jsx +29 -29
  95. package/src/components/icons/CloseIcon.jsx +31 -31
  96. package/src/components/icons/CopyIcon.jsx +75 -75
  97. package/src/components/icons/CreatedWorkspaceIcon.jsx +70 -70
  98. package/src/components/icons/DynamicWorkspaceIcon.jsx +125 -125
  99. package/src/components/icons/EditIcon.jsx +38 -38
  100. package/src/components/icons/GearIcon.jsx +40 -40
  101. package/src/components/icons/Icons.module.css +29 -29
  102. package/src/components/icons/LiveIcon.jsx +43 -43
  103. package/src/components/icons/MetricsIcon.jsx +52 -52
  104. package/src/components/icons/PlayIcon.jsx +20 -20
  105. package/src/components/icons/PullRequestIcon.jsx +35 -35
  106. package/src/components/icons/StaticWorkspaceIcon.jsx +119 -119
  107. package/src/components/icons/StopIcon.jsx +21 -21
  108. package/src/components/icons/TerminalIcon.jsx +22 -22
  109. package/src/components/icons/TriangleExclamationIcon.jsx +26 -26
  110. package/src/components/icons/UpgradeIcon.jsx +48 -48
  111. package/src/components/icons/index.js +63 -61
  112. package/src/components/layouts/Layout.jsx +11 -11
  113. package/src/components/layouts/TwoColumnsLayout.jsx +12 -12
  114. package/src/components/layouts/TwoColumnsLayout.module.css +9 -9
  115. package/src/hooks/useEscapeKey.js +20 -20
  116. package/src/lib/utils.js +23 -23
  117. package/src/main.jsx +9 -9
  118. package/src/stories/BorderedBox.stories.jsx +33 -33
  119. package/src/stories/BorderedText.stories.jsx +24 -24
  120. package/src/stories/Button.stories.jsx +114 -114
  121. package/src/stories/ButtonFullRounded.stories.jsx +61 -61
  122. package/src/stories/Checkbox.stories.jsx +27 -27
  123. package/src/stories/DetailedMetric.stories.jsx +33 -33
  124. package/src/stories/DropDown.stories.jsx +62 -62
  125. package/src/stories/FollowUs.stories.jsx +14 -14
  126. package/src/stories/GHLoginButton.stories.jsx +14 -14
  127. package/src/stories/HorizontalSeparator.stories.jsx +12 -12
  128. package/src/stories/InfoBox.stories.jsx +46 -46
  129. package/src/stories/Introduction.stories.mdx +211 -211
  130. package/src/stories/List.stories.jsx +29 -29
  131. package/src/stories/ListElement.stories.jsx +15 -15
  132. package/src/stories/Loadable.stories.jsx +75 -75
  133. package/src/stories/Loader.stories.jsx +44 -44
  134. package/src/stories/LoginButton.stories.jsx +15 -15
  135. package/src/stories/Logo.stories.jsx +17 -17
  136. package/src/stories/Modal.stories.jsx +100 -100
  137. package/src/stories/PlatformaticIcon.stories.jsx +51 -35
  138. package/src/stories/SearchBar.stories.jsx +28 -28
  139. package/src/stories/Sidebar.stories.jsx +61 -61
  140. package/src/stories/SimpleMetric.stories.jsx +41 -41
  141. package/src/stories/Status.stories.jsx +31 -31
  142. package/src/stories/TextWithLabel.stories.jsx +25 -25
  143. package/src/stories/TwoColumnsLayout.stories.jsx +42 -42
  144. package/src/stories/forms/Field.stories.jsx +89 -81
  145. package/src/stories/forms/Input.stories.jsx +89 -89
  146. package/src/stories/forms/Preview.stories.jsx +57 -57
  147. package/src/stories/forms/ToggleSwitch.stories.jsx +15 -15
  148. package/src/stories/icons/Icons.stories.jsx +74 -74
  149. package/src/styles/main.css +15 -15
  150. package/tailwind.config.cjs +60 -60
  151. package/vite.config.js +6 -6
  152. package/vitest.config.js +14 -14
@@ -1,70 +1,70 @@
1
- import * as React from 'react'
2
- import styles from './Icons.module.css'
3
-
4
- const CreatedWorkspaceIcon = ({ color = 'green', size = 'normal' }) => {
5
- const className = `${styles.noShrinkForFlex} ` + styles[`${color}`]
6
- let icon = <></>
7
- switch (size) {
8
- case 'extra-large':
9
- icon = (
10
- <svg
11
- width={120}
12
- height={120}
13
- viewBox='0 0 120 120'
14
- fill='none'
15
- xmlns='http://www.w3.org/2000/svg'
16
- className={className}
17
- >
18
- <rect
19
- x={15}
20
- y={15}
21
- width={37.5}
22
- height={37.5}
23
- rx={1}
24
- stroke='none'
25
- strokeWidth={6.5}
26
- />
27
- <rect
28
- x={45}
29
- y={105}
30
- width={30}
31
- height={37.7622}
32
- rx={1}
33
- transform='rotate(-180 45 105)'
34
- stroke='none'
35
- strokeWidth={6.5}
36
- />
37
- <rect
38
- x={105}
39
- y={105}
40
- width={45}
41
- height={37.7622}
42
- rx={1}
43
- transform='rotate(-180 105 105)'
44
- stroke='none'
45
- strokeWidth={6.5}
46
- />
47
- <circle
48
- cx={86.25}
49
- cy={33.75}
50
- r={18.75}
51
- stroke='none'
52
- strokeWidth={6.5}
53
- />
54
- <path
55
- d='M76.875 33.7499L84.6875 39.9999L93.75 30'
56
- stroke='none'
57
- strokeWidth={6.5}
58
- strokeLinecap='round'
59
- strokeLinejoin='round'
60
- />
61
- </svg>
62
- )
63
- break
64
- default:
65
- break
66
- }
67
- return icon
68
- }
69
-
70
- export default CreatedWorkspaceIcon
1
+ import * as React from 'react'
2
+ import styles from './Icons.module.css'
3
+
4
+ const CreatedWorkspaceIcon = ({ color = 'green', size = 'normal' }) => {
5
+ const className = `${styles.noShrinkForFlex} ` + styles[`${color}`]
6
+ let icon = <></>
7
+ switch (size) {
8
+ case 'extra-large':
9
+ icon = (
10
+ <svg
11
+ width={120}
12
+ height={120}
13
+ viewBox='0 0 120 120'
14
+ fill='none'
15
+ xmlns='http://www.w3.org/2000/svg'
16
+ className={className}
17
+ >
18
+ <rect
19
+ x={15}
20
+ y={15}
21
+ width={37.5}
22
+ height={37.5}
23
+ rx={1}
24
+ stroke='none'
25
+ strokeWidth={6.5}
26
+ />
27
+ <rect
28
+ x={45}
29
+ y={105}
30
+ width={30}
31
+ height={37.7622}
32
+ rx={1}
33
+ transform='rotate(-180 45 105)'
34
+ stroke='none'
35
+ strokeWidth={6.5}
36
+ />
37
+ <rect
38
+ x={105}
39
+ y={105}
40
+ width={45}
41
+ height={37.7622}
42
+ rx={1}
43
+ transform='rotate(-180 105 105)'
44
+ stroke='none'
45
+ strokeWidth={6.5}
46
+ />
47
+ <circle
48
+ cx={86.25}
49
+ cy={33.75}
50
+ r={18.75}
51
+ stroke='none'
52
+ strokeWidth={6.5}
53
+ />
54
+ <path
55
+ d='M76.875 33.7499L84.6875 39.9999L93.75 30'
56
+ stroke='none'
57
+ strokeWidth={6.5}
58
+ strokeLinecap='round'
59
+ strokeLinejoin='round'
60
+ />
61
+ </svg>
62
+ )
63
+ break
64
+ default:
65
+ break
66
+ }
67
+ return icon
68
+ }
69
+
70
+ export default CreatedWorkspaceIcon
@@ -1,125 +1,125 @@
1
- import * as React from 'react'
2
- import styles from './Icons.module.css'
3
-
4
- const DynamicWorkspaceIcon = ({ color = 'green', size = 'normal', tip = '' }) => {
5
- const className = `${styles.noShrinkForFlex} ` + styles[`${color}`]
6
- let icon = (
7
- <svg
8
- width={40}
9
- height={40}
10
- viewBox='0 0 40 40'
11
- fill='none'
12
- xmlns='http://www.w3.org/2000/svg'
13
- className={className}
14
- data-tip={tip}
15
- >
16
- <rect
17
- x={5}
18
- y={5}
19
- width={10}
20
- height={12.5874}
21
- rx={1}
22
- stroke='none'
23
- strokeWidth={2}
24
- />
25
- <path
26
- d='M20 5L27.5 11.25L20 17.5V5Z'
27
- stroke='none'
28
- strokeWidth={2}
29
- strokeLinecap='round'
30
- strokeLinejoin='round'
31
- />
32
- <rect
33
- x={35}
34
- y={35}
35
- width={10}
36
- height={12.5874}
37
- rx={1}
38
- transform='rotate(-180 35 35)'
39
- stroke='none'
40
- strokeWidth={2}
41
- />
42
- <rect
43
- x={20}
44
- y={35}
45
- width={15}
46
- height={12.5874}
47
- rx={1}
48
- transform='rotate(-180 20 35)'
49
- stroke='none'
50
- strokeWidth={2}
51
- />
52
- <path
53
- d='M27.5 15V17.5L35 11.25L27.5 5V7.5'
54
- stroke='none'
55
- strokeWidth={2}
56
- strokeLinecap='round'
57
- strokeLinejoin='round'
58
- />
59
- </svg>
60
- )
61
- switch (size) {
62
- case 'small':
63
- icon = (
64
- <svg
65
- width={24}
66
- height={25}
67
- viewBox='0 0 24 25'
68
- fill='none'
69
- xmlns='http://www.w3.org/2000/svg'
70
- className={className}
71
- data-tip={tip}
72
- >
73
- <rect
74
- x={3}
75
- y={3.5}
76
- width={6}
77
- height={7.55245}
78
- rx={1}
79
- stroke='none'
80
- strokeWidth={1.5}
81
- />
82
- <path
83
- d='M12 3.5L16.5 7.25L12 11V3.5Z'
84
- stroke='none'
85
- strokeWidth={1.5}
86
- strokeLinecap='round'
87
- strokeLinejoin='round'
88
- />
89
- <rect
90
- x={21}
91
- y={21.5}
92
- width={6}
93
- height={7.55245}
94
- rx={1}
95
- transform='rotate(-180 21 21.5)'
96
- stroke='none'
97
- strokeWidth={1.5}
98
- />
99
- <rect
100
- x={12}
101
- y={21.5}
102
- width={9}
103
- height={7.55245}
104
- rx={1}
105
- transform='rotate(-180 12 21.5)'
106
- stroke='none'
107
- strokeWidth={1.5}
108
- />
109
- <path
110
- d='M16.5 9.5V11L21 7.25L16.5 3.5V5'
111
- stroke='none'
112
- strokeWidth={1.5}
113
- strokeLinecap='round'
114
- strokeLinejoin='round'
115
- />
116
- </svg>
117
- )
118
- break
119
- default:
120
- break
121
- }
122
- return icon
123
- }
124
-
125
- export default DynamicWorkspaceIcon
1
+ import * as React from 'react'
2
+ import styles from './Icons.module.css'
3
+
4
+ const DynamicWorkspaceIcon = ({ color = 'green', size = 'normal', tip = '' }) => {
5
+ const className = `${styles.noShrinkForFlex} ` + styles[`${color}`]
6
+ let icon = (
7
+ <svg
8
+ width={40}
9
+ height={40}
10
+ viewBox='0 0 40 40'
11
+ fill='none'
12
+ xmlns='http://www.w3.org/2000/svg'
13
+ className={className}
14
+ data-tip={tip}
15
+ >
16
+ <rect
17
+ x={5}
18
+ y={5}
19
+ width={10}
20
+ height={12.5874}
21
+ rx={1}
22
+ stroke='none'
23
+ strokeWidth={2}
24
+ />
25
+ <path
26
+ d='M20 5L27.5 11.25L20 17.5V5Z'
27
+ stroke='none'
28
+ strokeWidth={2}
29
+ strokeLinecap='round'
30
+ strokeLinejoin='round'
31
+ />
32
+ <rect
33
+ x={35}
34
+ y={35}
35
+ width={10}
36
+ height={12.5874}
37
+ rx={1}
38
+ transform='rotate(-180 35 35)'
39
+ stroke='none'
40
+ strokeWidth={2}
41
+ />
42
+ <rect
43
+ x={20}
44
+ y={35}
45
+ width={15}
46
+ height={12.5874}
47
+ rx={1}
48
+ transform='rotate(-180 20 35)'
49
+ stroke='none'
50
+ strokeWidth={2}
51
+ />
52
+ <path
53
+ d='M27.5 15V17.5L35 11.25L27.5 5V7.5'
54
+ stroke='none'
55
+ strokeWidth={2}
56
+ strokeLinecap='round'
57
+ strokeLinejoin='round'
58
+ />
59
+ </svg>
60
+ )
61
+ switch (size) {
62
+ case 'small':
63
+ icon = (
64
+ <svg
65
+ width={24}
66
+ height={25}
67
+ viewBox='0 0 24 25'
68
+ fill='none'
69
+ xmlns='http://www.w3.org/2000/svg'
70
+ className={className}
71
+ data-tip={tip}
72
+ >
73
+ <rect
74
+ x={3}
75
+ y={3.5}
76
+ width={6}
77
+ height={7.55245}
78
+ rx={1}
79
+ stroke='none'
80
+ strokeWidth={1.5}
81
+ />
82
+ <path
83
+ d='M12 3.5L16.5 7.25L12 11V3.5Z'
84
+ stroke='none'
85
+ strokeWidth={1.5}
86
+ strokeLinecap='round'
87
+ strokeLinejoin='round'
88
+ />
89
+ <rect
90
+ x={21}
91
+ y={21.5}
92
+ width={6}
93
+ height={7.55245}
94
+ rx={1}
95
+ transform='rotate(-180 21 21.5)'
96
+ stroke='none'
97
+ strokeWidth={1.5}
98
+ />
99
+ <rect
100
+ x={12}
101
+ y={21.5}
102
+ width={9}
103
+ height={7.55245}
104
+ rx={1}
105
+ transform='rotate(-180 12 21.5)'
106
+ stroke='none'
107
+ strokeWidth={1.5}
108
+ />
109
+ <path
110
+ d='M16.5 9.5V11L21 7.25L16.5 3.5V5'
111
+ stroke='none'
112
+ strokeWidth={1.5}
113
+ strokeLinecap='round'
114
+ strokeLinejoin='round'
115
+ />
116
+ </svg>
117
+ )
118
+ break
119
+ default:
120
+ break
121
+ }
122
+ return icon
123
+ }
124
+
125
+ export default DynamicWorkspaceIcon
@@ -1,38 +1,38 @@
1
- import * as React from 'react'
2
- import styles from './Icons.module.css'
3
-
4
- const EditIcon = ({ color = 'green', size = 'normal' }) => {
5
- const className = `${styles.noShrinkForFlex} ` + styles[`${color}`]
6
- let icon = <></>
7
- switch (size) {
8
- case 'small':
9
- icon = (
10
- <svg width={16} height={16} viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg' className={className}>
11
- <rect
12
- x={10.0554}
13
- y={4.50607}
14
- width={2.11765}
15
- height={7.76471}
16
- transform='rotate(45 10.0554 4.50607)'
17
- stroke='none'
18
- strokeLinejoin='round'
19
- />
20
- <path
21
- d='M6.06234 11.4939L4.56494 9.99654L3.81624 12.2426L6.06234 11.4939Z'
22
- stroke='none'
23
- strokeLinejoin='round'
24
- />
25
- <path
26
- d='M10.8456 3.71577C11.2362 3.32525 11.8693 3.32525 12.2598 3.71577L12.343 3.79896C12.7336 4.18949 12.7336 4.82265 12.343 5.21318L11.5527 6.00347L10.0553 4.50607L10.8456 3.71577Z'
27
- stroke='none'
28
- />
29
- </svg>
30
- )
31
- break
32
- default:
33
- break
34
- }
35
- return icon
36
- }
37
-
38
- export default EditIcon
1
+ import * as React from 'react'
2
+ import styles from './Icons.module.css'
3
+
4
+ const EditIcon = ({ color = 'green', size = 'normal' }) => {
5
+ const className = `${styles.noShrinkForFlex} ` + styles[`${color}`]
6
+ let icon = <></>
7
+ switch (size) {
8
+ case 'small':
9
+ icon = (
10
+ <svg width={16} height={16} viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg' className={className}>
11
+ <rect
12
+ x={10.0554}
13
+ y={4.50607}
14
+ width={2.11765}
15
+ height={7.76471}
16
+ transform='rotate(45 10.0554 4.50607)'
17
+ stroke='none'
18
+ strokeLinejoin='round'
19
+ />
20
+ <path
21
+ d='M6.06234 11.4939L4.56494 9.99654L3.81624 12.2426L6.06234 11.4939Z'
22
+ stroke='none'
23
+ strokeLinejoin='round'
24
+ />
25
+ <path
26
+ d='M10.8456 3.71577C11.2362 3.32525 11.8693 3.32525 12.2598 3.71577L12.343 3.79896C12.7336 4.18949 12.7336 4.82265 12.343 5.21318L11.5527 6.00347L10.0553 4.50607L10.8456 3.71577Z'
27
+ stroke='none'
28
+ />
29
+ </svg>
30
+ )
31
+ break
32
+ default:
33
+ break
34
+ }
35
+ return icon
36
+ }
37
+
38
+ export default EditIcon
@@ -1,40 +1,40 @@
1
- import * as React from 'react'
2
- import styles from './Icons.module.css'
3
- const GearIcon = ({ color = 'green', size = 'normal' }) => {
4
- const className = styles[`${color}`]
5
- let dimension = 33
6
- switch (size) {
7
- case 'small':
8
- dimension = 16
9
- break
10
- default:
11
- break
12
- }
13
- return (
14
- <svg
15
- width={dimension}
16
- height={dimension}
17
- viewBox='0 0 33 32'
18
- fill='none'
19
- xmlns='http://www.w3.org/2000/svg'
20
- className={className}
21
- >
22
- <path
23
- d='M16.5016 20.6575C19.011 20.6575 21.0452 18.6574 21.0452 16.1901C21.0452 13.7228 19.011 11.7227 16.5016 11.7227C13.9922 11.7227 11.958 13.7228 11.958 16.1901C11.958 18.6574 13.9922 20.6575 16.5016 20.6575Z'
24
- stroke='none'
25
- strokeWidth={1.5}
26
- strokeLinecap='round'
27
- strokeLinejoin='round'
28
- />
29
- <path
30
- d='M18.9391 4.69606V6.21219C18.9391 6.50074 19.1219 6.76144 19.3974 6.86269L21.3641 7.59418C21.6318 7.69289 21.9356 7.62455 22.1312 7.417L23.076 6.41974C23.354 6.12613 23.8277 6.1236 24.1083 6.41721L26.3891 8.79139C26.6439 9.05716 26.6465 9.46973 26.3968 9.73803L25.1818 11.0491C24.9887 11.2567 24.9423 11.5579 25.0633 11.811L25.8871 13.5575C26.003 13.803 26.2552 13.9625 26.5307 13.9625H27.7921C28.1834 13.9625 28.5 14.2738 28.5 14.6585V17.5895C28.5 17.9743 28.1834 18.2856 27.7921 18.2856H26.4663C26.16 18.2856 25.8871 18.4805 25.7919 18.7665L25.1225 20.7838C25.0427 21.0217 25.0994 21.2824 25.2719 21.4672L26.3608 22.6492C26.6259 22.9378 26.6002 23.3858 26.3016 23.6414L23.7916 25.8005C23.5033 26.0485 23.0657 26.0257 22.8057 25.7498L21.9304 24.8235C21.7399 24.621 21.4439 24.5476 21.1788 24.6387L19.351 25.2664C19.0653 25.3651 18.8748 25.6283 18.8748 25.9245V27.3039C18.8748 27.6887 18.5581 28 18.1668 28H14.8306C14.4393 28 14.1227 27.6887 14.1227 27.3039V25.9245C14.1227 25.6283 13.9322 25.3651 13.6464 25.2664L11.8187 24.6387C11.5535 24.5476 11.2575 24.6184 11.067 24.8235L10.1917 25.7498C9.93173 26.0257 9.4941 26.0485 9.20578 25.8005L6.69586 23.6414C6.39724 23.3858 6.3715 22.9378 6.63665 22.6492L7.72557 21.4672C7.89547 21.2824 7.95211 21.0217 7.87488 20.7838L7.20557 18.7665C7.11032 18.4805 6.83745 18.2856 6.53111 18.2856H5.20793C4.81664 18.2856 4.5 17.9743 4.5 17.5895V14.6585C4.5 14.2738 4.81664 13.9625 5.20793 13.9625H6.46932C6.74477 13.9625 6.99705 13.8055 7.11289 13.5575L7.93666 11.811C8.05765 11.5554 8.00874 11.2567 7.81825 11.0491L6.60319 9.73803C6.35348 9.46973 6.35605 9.05463 6.61091 8.79139L8.89172 6.41721C9.17232 6.12613 9.64598 6.12613 9.92401 6.41974L10.8688 7.417C11.0644 7.62455 11.3682 7.69289 11.6359 7.59418L13.6026 6.86269C13.8781 6.76144 14.0609 6.50074 14.0609 6.21219V4.69606C14.0609 4.31133 14.3775 4 14.7688 4H18.2312C18.6225 4 18.9391 4.31133 18.9391 4.69606Z'
31
- stroke='none'
32
- strokeWidth={1.5}
33
- strokeLinecap='round'
34
- strokeLinejoin='round'
35
- />
36
- </svg>
37
- )
38
- }
39
-
40
- export default GearIcon
1
+ import * as React from 'react'
2
+ import styles from './Icons.module.css'
3
+ const GearIcon = ({ color = 'green', size = 'normal' }) => {
4
+ const className = styles[`${color}`]
5
+ let dimension = 33
6
+ switch (size) {
7
+ case 'small':
8
+ dimension = 16
9
+ break
10
+ default:
11
+ break
12
+ }
13
+ return (
14
+ <svg
15
+ width={dimension}
16
+ height={dimension}
17
+ viewBox='0 0 33 32'
18
+ fill='none'
19
+ xmlns='http://www.w3.org/2000/svg'
20
+ className={className}
21
+ >
22
+ <path
23
+ d='M16.5016 20.6575C19.011 20.6575 21.0452 18.6574 21.0452 16.1901C21.0452 13.7228 19.011 11.7227 16.5016 11.7227C13.9922 11.7227 11.958 13.7228 11.958 16.1901C11.958 18.6574 13.9922 20.6575 16.5016 20.6575Z'
24
+ stroke='none'
25
+ strokeWidth={1.5}
26
+ strokeLinecap='round'
27
+ strokeLinejoin='round'
28
+ />
29
+ <path
30
+ d='M18.9391 4.69606V6.21219C18.9391 6.50074 19.1219 6.76144 19.3974 6.86269L21.3641 7.59418C21.6318 7.69289 21.9356 7.62455 22.1312 7.417L23.076 6.41974C23.354 6.12613 23.8277 6.1236 24.1083 6.41721L26.3891 8.79139C26.6439 9.05716 26.6465 9.46973 26.3968 9.73803L25.1818 11.0491C24.9887 11.2567 24.9423 11.5579 25.0633 11.811L25.8871 13.5575C26.003 13.803 26.2552 13.9625 26.5307 13.9625H27.7921C28.1834 13.9625 28.5 14.2738 28.5 14.6585V17.5895C28.5 17.9743 28.1834 18.2856 27.7921 18.2856H26.4663C26.16 18.2856 25.8871 18.4805 25.7919 18.7665L25.1225 20.7838C25.0427 21.0217 25.0994 21.2824 25.2719 21.4672L26.3608 22.6492C26.6259 22.9378 26.6002 23.3858 26.3016 23.6414L23.7916 25.8005C23.5033 26.0485 23.0657 26.0257 22.8057 25.7498L21.9304 24.8235C21.7399 24.621 21.4439 24.5476 21.1788 24.6387L19.351 25.2664C19.0653 25.3651 18.8748 25.6283 18.8748 25.9245V27.3039C18.8748 27.6887 18.5581 28 18.1668 28H14.8306C14.4393 28 14.1227 27.6887 14.1227 27.3039V25.9245C14.1227 25.6283 13.9322 25.3651 13.6464 25.2664L11.8187 24.6387C11.5535 24.5476 11.2575 24.6184 11.067 24.8235L10.1917 25.7498C9.93173 26.0257 9.4941 26.0485 9.20578 25.8005L6.69586 23.6414C6.39724 23.3858 6.3715 22.9378 6.63665 22.6492L7.72557 21.4672C7.89547 21.2824 7.95211 21.0217 7.87488 20.7838L7.20557 18.7665C7.11032 18.4805 6.83745 18.2856 6.53111 18.2856H5.20793C4.81664 18.2856 4.5 17.9743 4.5 17.5895V14.6585C4.5 14.2738 4.81664 13.9625 5.20793 13.9625H6.46932C6.74477 13.9625 6.99705 13.8055 7.11289 13.5575L7.93666 11.811C8.05765 11.5554 8.00874 11.2567 7.81825 11.0491L6.60319 9.73803C6.35348 9.46973 6.35605 9.05463 6.61091 8.79139L8.89172 6.41721C9.17232 6.12613 9.64598 6.12613 9.92401 6.41974L10.8688 7.417C11.0644 7.62455 11.3682 7.69289 11.6359 7.59418L13.6026 6.86269C13.8781 6.76144 14.0609 6.50074 14.0609 6.21219V4.69606C14.0609 4.31133 14.3775 4 14.7688 4H18.2312C18.6225 4 18.9391 4.31133 18.9391 4.69606Z'
31
+ stroke='none'
32
+ strokeWidth={1.5}
33
+ strokeLinecap='round'
34
+ strokeLinejoin='round'
35
+ />
36
+ </svg>
37
+ )
38
+ }
39
+
40
+ export default GearIcon
@@ -1,30 +1,30 @@
1
- .green > circle,
2
- .green > rect,
3
- .green > path {
4
- @apply stroke-main-green;
5
- }
6
- .red > circle,
7
- .red > rect,
8
- .red > path {
9
- @apply stroke-error-red;
10
- }
11
- .white > circle,
12
- .white > rect,
13
- .white > path {
14
- @apply stroke-white;
15
- }
16
- .main-dark-blue > circle,
17
- .main-dark-blue > rect,
18
- .main-dark-blue > path {
19
- @apply stroke-main-dark-blue;
20
- }
21
- .fill-circle-green > circle {
22
- @apply fill-white;
23
- }
24
- .fill-circle-main-dark-blue > circle {
25
- @apply fill-main-dark-blue;
26
- }
27
-
28
- .noShrinkForFlex {
29
- @apply shrink-0
1
+ .green > circle,
2
+ .green > rect,
3
+ .green > path {
4
+ @apply stroke-main-green;
5
+ }
6
+ .red > circle,
7
+ .red > rect,
8
+ .red > path {
9
+ @apply stroke-error-red;
10
+ }
11
+ .white > circle,
12
+ .white > rect,
13
+ .white > path {
14
+ @apply stroke-white;
15
+ }
16
+ .main-dark-blue > circle,
17
+ .main-dark-blue > rect,
18
+ .main-dark-blue > path {
19
+ @apply stroke-main-dark-blue;
20
+ }
21
+ .fill-circle-green > circle {
22
+ @apply fill-white;
23
+ }
24
+ .fill-circle-main-dark-blue > circle {
25
+ @apply fill-main-dark-blue;
26
+ }
27
+
28
+ .noShrinkForFlex {
29
+ @apply shrink-0
30
30
  }