@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
@@ -0,0 +1,84 @@
1
+ import * as React from 'react'
2
+ import PropTypes from 'prop-types'
3
+ import styles from './Icons.module.css'
4
+
5
+ const WorkspaceStaticIcon = ({ 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
+ <rect x={2} y={2} width={4} height={5.03497} rx={1} stroke='none' />
21
+ <rect x={8} y={2} width={6} height={5.03497} rx={1} stroke='none' />
22
+ <rect x={14} y={14} width={4} height={5.03496} rx={1} transform='rotate(-180 14 14)' stroke='none' />
23
+ <rect x={8} y={14} width={6} height={5.03497} rx={1} transform='rotate(-180 8 14)' stroke='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
+ <rect x={3} y={3} width={6} height={7.55245} rx={1} stroke='none' strokeWidth={1.5} />
38
+ <rect x={12} y={3} width={9} height={7.55245} rx={1} stroke='none' strokeWidth={1.5} />
39
+ <rect x={21} y={21} width={6} height={7.55245} rx={1} transform='rotate(-180 21 21)' stroke='none' strokeWidth={1.5} />
40
+ <rect x={12} y={21} width={9} height={7.55245} rx={1} transform='rotate(-180 12 21)' stroke='none' strokeWidth={1.5} />
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
+ <rect x={5} y={5} width={10} height={12.5874} rx={1} stroke='none' strokeWidth={2} />
55
+ <rect x={20} y={5} width={15} height={12.5874} rx={1} stroke='none' strokeWidth={2} />
56
+ <rect x={35} y={35} width={10} height={12.5874} rx={1} transform='rotate(-180 35 35)' stroke='none' strokeWidth={2} />
57
+ <rect x={20} y={35} width={15} height={12.5874} rx={1} transform='rotate(-180 20 35)' stroke='none' strokeWidth={2} />
58
+ </svg>
59
+ )
60
+ break
61
+
62
+ default:
63
+ break
64
+ }
65
+ return icon
66
+ }
67
+
68
+ WorkspaceStaticIcon.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
+ WorkspaceStaticIcon.defaultProps = {
80
+ color: 'main-dark-blue',
81
+ size: 'normal'
82
+ }
83
+
84
+ export default WorkspaceStaticIcon
@@ -1,12 +1,21 @@
1
+ import AddIcon from './AddIcon'
2
+ import AlertIcon from './AlertIcon'
3
+ import AllInOneIcon from './AllInOneIcon'
4
+ import ApiCloudIcon from './ApiCloudIcon'
1
5
  import ApiIcon from './ApiIcon'
2
6
  import ApiIconClosed from './ApiIconClosed'
3
7
  import ApiEmptyIcon from './ApiEmptyIcon'
4
8
  import AppIcon from './AppIcon'
5
9
  import AppListIcon from './AppListIcon'
6
10
  import AppEmptyIcon from './AppEmptyIcon'
11
+ import ArrowDownFullIcon from './ArrowDownFullIcon'
12
+ import ArrowDownIcon from './ArrowDownIcon'
13
+ import ArrowLeftIcon from './ArrowLeftIcon'
14
+ import ArrowRightIcon from './ArrowRightIcon'
15
+ import ArrowUpIcon from './ArrowUpIcon'
7
16
  import CalendarIcon from './CalendarIcon'
8
- import Calendar1Icon from './Calendar1Icon'
9
- import Calendar7Icon from './Calendar7Icon'
17
+ import Calendar1DayIcon from './Calendar1DayIcon'
18
+ import Calendar7DaysIcon from './Calendar7DaysIcon'
10
19
  import CircleAddIcon from './CircleAddIcon'
11
20
  import CircleBackIcon from './CircleBackIcon'
12
21
  import CircleExclamationIcon from './CircleExclamationIcon'
@@ -14,31 +23,41 @@ import CircleCheckMarkIcon from './CircleCheckMarkIcon'
14
23
  import CircleCloseIcon from './CircleCloseIcon'
15
24
  import CircleCloseHoverIcon from './CircleCloseHoverIcon'
16
25
  import CloseIcon from './CloseIcon'
17
- import CopyIcon from './CopyIcon'
18
- import CreatedWorkspaceIcon from './CreatedWorkspaceIcon'
19
- import DynamicWorkspaceIcon from './DynamicWorkspaceIcon'
26
+ import CopyPasteIcon from './CopyPasteIcon'
27
+ import DatabaseIcon from './DatabaseIcon'
20
28
  import EditIcon from './EditIcon'
21
29
  import GearIcon from './GearIcon'
22
30
  import LiveIcon from './LiveIcon'
23
31
  import MetricsIcon from './MetricsIcon'
24
32
  import PlayIcon from './PlayIcon'
25
33
  import PullRequestIcon from './PullRequestIcon'
26
- import StaticWorkspaceIcon from './StaticWorkspaceIcon'
27
34
  import StopIcon from './StopIcon'
28
35
  import TerminalIcon from './TerminalIcon'
29
- import TriangleExclamationIcon from './TriangleExclamationIcon'
36
+ import Users2Icon from './Users2Icon'
30
37
  import UpgradeIcon from './UpgradeIcon'
38
+ import WorkspaceDynamicIcon from './WorkspaceDynamicIcon'
39
+ import WorkspaceReadyIcon from './WorkspaceReadyIcon'
40
+ import WorkspaceStaticIcon from './WorkspaceStaticIcon'
31
41
 
32
42
  export default {
43
+ AddIcon,
44
+ AlertIcon,
45
+ AllInOneIcon,
46
+ ApiCloudIcon,
33
47
  ApiIcon,
34
48
  ApiIconClosed,
35
49
  ApiEmptyIcon,
36
50
  AppIcon,
37
51
  AppListIcon,
38
52
  AppEmptyIcon,
53
+ ArrowDownFullIcon,
54
+ ArrowDownIcon,
55
+ ArrowLeftIcon,
56
+ ArrowRightIcon,
57
+ ArrowUpIcon,
39
58
  CalendarIcon,
40
- Calendar1Icon,
41
- Calendar7Icon,
59
+ Calendar1DayIcon,
60
+ Calendar7DaysIcon,
42
61
  CircleAddIcon,
43
62
  CircleBackIcon,
44
63
  CircleCheckMarkIcon,
@@ -46,18 +65,19 @@ export default {
46
65
  CircleCloseIcon,
47
66
  CircleCloseHoverIcon,
48
67
  CloseIcon,
49
- CopyIcon,
50
- CreatedWorkspaceIcon,
51
- DynamicWorkspaceIcon,
68
+ CopyPasteIcon,
69
+ DatabaseIcon,
52
70
  GearIcon,
53
71
  EditIcon,
54
72
  LiveIcon,
55
73
  MetricsIcon,
56
74
  PlayIcon,
57
75
  PullRequestIcon,
58
- StaticWorkspaceIcon,
59
76
  StopIcon,
60
77
  TerminalIcon,
61
- TriangleExclamationIcon,
62
- UpgradeIcon
78
+ UpgradeIcon,
79
+ Users2Icon,
80
+ WorkspaceDynamicIcon,
81
+ WorkspaceReadyIcon,
82
+ WorkspaceStaticIcon
63
83
  }
@@ -16,7 +16,7 @@ export default {
16
16
  const Template = (args) => <PlatformaticIcon {...args} />
17
17
  export const PlatformaticIconDefault = Template.bind({})
18
18
  PlatformaticIconDefault.args = {
19
- iconName: 'CopyIcon',
19
+ iconName: 'CopyPasteIcon',
20
20
  onClick: () => alert('clicked')
21
21
  }
22
22
 
@@ -49,3 +49,9 @@ PlatformaticIconLarge.args = {
49
49
  color: 'green',
50
50
  size: 'large'
51
51
  }
52
+
53
+ export const PlatformaticIconExtraLarge = AllIconsTemplate.bind({})
54
+ PlatformaticIconExtraLarge.args = {
55
+ color: 'green',
56
+ size: 'extra-large'
57
+ }
@@ -36,9 +36,9 @@ EmptySidebar.args = {
36
36
 
37
37
  const FullSidebarTemplate = (args) => {
38
38
  const [items, setItems] = useState([
39
- { iconName: 'StaticWorkspaceIcon', subTitle: 'Subtitle', title: 'a very very very very very long title 1' },
39
+ { iconName: 'WorkspaceStaticIcon', subTitle: 'Subtitle', title: 'a very very very very very long title 1' },
40
40
  { title: 'Title number 2', subTitle: 'Subtitle 2' },
41
- { title: 'Another Title', subTitle: 'Subtitle 3', iconName: 'DynamicWorkspaceIcon' }
41
+ { title: 'Another Title', subTitle: 'Subtitle 3', iconName: 'WorkspaceDynamicIcon' }
42
42
  ])
43
43
  function onClickAdd () {
44
44
  const tmpItem = items.map(item => item)
@@ -77,7 +77,7 @@ IconBeforeAndAfter.args = {
77
77
  name: 'test',
78
78
  placeholder: 'Platformatic',
79
79
  beforeIcon: {
80
- iconName: 'CopyIcon',
80
+ iconName: 'CopyPasteIcon',
81
81
  color: 'main-dark-blue',
82
82
  size: 'small',
83
83
  onClick: () => { alert('clicked') }
@@ -51,7 +51,7 @@ export const WithIcon = Template.bind({})
51
51
  WithIcon.args = {
52
52
  title: 'My title',
53
53
  value: 'My value',
54
- afterValueIcon: 'StaticWorkspaceIcon',
54
+ afterValueIcon: 'WorkspaceStaticIcon',
55
55
  afterValueIconColor: 'green',
56
56
  onClickAfterValueIcon: () => alert('icon clicked')
57
57
  }
@@ -2,11 +2,9 @@ import React from 'react'
2
2
  import PullRequestIcon from '../../components/icons/PullRequestIcon'
3
3
  import CloseIcon from '../../components/icons/CloseIcon'
4
4
  import CircleCloseIcon from '../../components/icons/CircleCloseIcon'
5
- import TriangleExclamationIcon from '../../components/icons/TriangleExclamationIcon'
6
- import StaticWorkspaceIcon from '../../components/icons/StaticWorkspaceIcon'
7
- import CreatedWorkspaceIcon from '../../components/icons/CreatedWorkspaceIcon'
5
+ import WorkspaceStaticIcon from '../../components/icons/WorkspaceStaticIcon'
8
6
  import UpgradeIcon from '../../components/icons/UpgradeIcon'
9
- import DynamicWorkspaceIcon from '../../components/icons/DynamicWorkspaceIcon'
7
+ import WorkspaceDynamicIcon from '../../components/icons/WorkspaceDynamicIcon'
10
8
 
11
9
  const divStyle = {
12
10
  display: 'flex',
@@ -49,12 +47,8 @@ const CircleCloseIconTemplate = (args) => <CircleCloseIcon {...args} />
49
47
  export const CircleCloseIconDefault = CircleCloseIconTemplate.bind({})
50
48
  CircleCloseIconDefault.args = {}
51
49
 
52
- const TriangleExclamationIconTemplate = (args) => <TriangleExclamationIcon {...args} />
53
- export const TriangleExclamationIconDefault = TriangleExclamationIconTemplate.bind({})
54
- TriangleExclamationIconDefault.args = {}
55
-
56
50
  const WorkspaceIconsTemplate = () => (
57
- [<StaticWorkspaceIcon key='a' />, <DynamicWorkspaceIcon key='b' />].map((component, index) => {
51
+ [<WorkspaceStaticIcon key='a' />, <WorkspaceDynamicIcon key='b' />].map((component, index) => {
58
52
  const listElement = []
59
53
  listElement.push(React.cloneElement(component, { key: `0${index}` }))
60
54
  listElement.push(React.cloneElement(component, { key: `1${index}`, size: 'small', color: 'green' }))
@@ -69,6 +63,6 @@ const WorkspaceIconsTemplate = () => (
69
63
  export const WorkspaceIconsAll = WorkspaceIconsTemplate.bind({})
70
64
  WorkspaceIconsAll.args = {}
71
65
 
72
- const LargeIconsTemplate = () => ([<CreatedWorkspaceIcon key='a' size='extra-large' />, <UpgradeIcon key='b' size='extra-large' />].map(component => component))
66
+ const LargeIconsTemplate = () => ([<UpgradeIcon key='b' size='extra-large' />].map(component => component))
73
67
  export const LargeIconsDefault = LargeIconsTemplate.bind({})
74
68
  LargeIconsDefault.args = {}
@@ -2,15 +2,22 @@
2
2
  @tailwind components;
3
3
  @tailwind utilities;
4
4
 
5
+ @font-face {
6
+ font-family: 'Montserrat';
7
+ src: url('/fonts/Montserrat/static/Montserrat-Regular.ttf') format('truetype');
8
+ font-weight: 400;
9
+ font-style: normal;
10
+ }
11
+
5
12
  :root {
6
13
  @apply bg-main-dark-blue;
7
14
  font-family: 'Montserrat';
8
15
  }
16
+
9
17
  a {
10
18
  @apply text-tertiary-blue;
11
19
  }
12
20
 
13
21
  input {
14
22
  background-color: transparent;
15
-
16
23
  }
@@ -1,54 +0,0 @@
1
- import * as React from 'react'
2
- import styles from './Icons.module.css'
3
-
4
- const Calendar1Icon = ({ color = 'green', size = 'normal' }) => {
5
- const className = `${styles.noShrinkForFlex} ` + styles[`${color}`]
6
- let icon = <></>
7
- switch (size) {
8
- case 'small':
9
- icon = (
10
- <svg
11
- width={16}
12
- height={16}
13
- viewBox='0 0 16 16'
14
- fill='none'
15
- xmlns='http://www.w3.org/2000/svg'
16
- className={className}
17
- >
18
- <rect x={2} y={4} width={12} height={10} rx={1} stroke='none' />
19
- <path
20
- d='M2 7H5M14 7H11'
21
- stroke='none'
22
- strokeLinecap='round'
23
- strokeLinejoin='round'
24
- />
25
- <line
26
- x1={4.5}
27
- y1={5.5}
28
- x2={4.5}
29
- y2={2.5}
30
- stroke='none'
31
- strokeLinecap='round'
32
- />
33
- <line
34
- x1={11.5}
35
- y1={5.5}
36
- x2={11.5}
37
- y2={2.5}
38
- stroke='none'
39
- strokeLinecap='round'
40
- />
41
- <path
42
- d='M7.59712 13V6.5L8.21223 7.09L7.59712 8H7.5L6.5 9V7L7.5 6H9V13H7.59712Z'
43
- fill='none'
44
- />
45
- </svg>
46
- )
47
- break
48
- default:
49
- break
50
- }
51
- return icon
52
- }
53
-
54
- export default Calendar1Icon
@@ -1,55 +0,0 @@
1
- import * as React from 'react'
2
- import styles from './Icons.module.css'
3
-
4
- const Calendar7Icon = ({ color = 'green', size = 'normal' }) => {
5
- const className = `${styles.noShrinkForFlex} ` + styles[`${color}`]
6
- let icon = <></>
7
- switch (size) {
8
- case 'small':
9
- icon = (
10
- <svg
11
- width={16}
12
- height={16}
13
- viewBox='0 0 16 16'
14
- fill='none'
15
- xmlns='http://www.w3.org/2000/svg'
16
- className={className}
17
- >
18
- <rect x={2} y={4} width={12} height={10} rx={1} stroke='none' />
19
-
20
- <path
21
- d='M2 7H4M14 7H12'
22
- stroke='none'
23
- strokeLinecap='round'
24
- strokeLinejoin='round'
25
- />
26
- <line
27
- x1={4.5}
28
- y1={5.5}
29
- x2={4.5}
30
- y2={2.5}
31
- stroke='none'
32
- strokeLinecap='round'
33
- />
34
- <line
35
- x1={11.5}
36
- y1={5.5}
37
- x2={11.5}
38
- y2={2.5}
39
- stroke='none'
40
- strokeLinecap='round'
41
- />
42
- <path
43
- d='M6.46691 13L9.65441 6.52L10.0294 7.1H5.65074L6.33456 6.47V8.29H5V6H11V6.87L8 13H6.46691Z'
44
- fill='none'
45
- />
46
- </svg>
47
- )
48
- break
49
- default:
50
- break
51
- }
52
- return icon
53
- }
54
-
55
- export default Calendar7Icon
@@ -1,75 +0,0 @@
1
- import * as React from 'react'
2
- import styles from './Icons.module.css'
3
-
4
- const CopyIcon = ({ color = 'green', size = 'normal' }) => {
5
- const className = `${styles.noShrinkForFlex} ` + styles[`${color}`]
6
- let icon = <></>
7
- switch (size) {
8
- case 'small':
9
- icon = (
10
- <svg
11
- width={16}
12
- height={16}
13
- viewBox='0 0 16 16'
14
- fill='none'
15
- xmlns='http://www.w3.org/2000/svg'
16
- className={className}
17
- >
18
- <path
19
- d='M6 13.5V4.94496C6 4.66882 6.22386 4.44496 6.5 4.44496H10.5365C10.6594 4.44496 10.7779 4.49019 10.8696 4.57203L13.833 7.21858C13.9393 7.31345 14 7.4491 14 7.59152V13.5C14 13.7761 13.7761 14 13.5 14H6.5C6.22386 14 6 13.7761 6 13.5Z'
20
- stroke='none'
21
- strokeLinecap='round'
22
- />
23
- <path
24
- d='M10.5 7.78923V4.44496L14 7.78923H10.5Z'
25
- stroke='none'
26
- strokeLinecap='round'
27
- strokeLinejoin='round'
28
- />
29
- <path
30
- d='M9.5 3.96723L7.36816 2.12196C7.27729 2.0433 7.16112 2.00001 7.04093 2.00001H4.61364H2.5C2.22386 2.00001 2 2.22386 2 2.50001L2.00001 10.6335C2.00001 10.9096 2.22386 11.1335 2.50001 11.1335H5.50001'
31
- stroke='none'
32
- strokeLinecap='round'
33
- />
34
- </svg>
35
- )
36
- break
37
- case 'normal':
38
- icon = (
39
- <svg
40
- width={24}
41
- height={25}
42
- viewBox='0 0 24 25'
43
- fill='none'
44
- xmlns='http://www.w3.org/2000/svg'
45
- className={className}
46
- >
47
- <path
48
- d='M9 21.3333V8.00073C9 7.72459 9.22386 7.50073 9.5 7.50073H15.9001C16.023 7.50073 16.1416 7.54597 16.2332 7.6278L20.833 11.7357C20.9393 11.8306 21 11.9662 21 12.1086V21.3333C21 21.6094 20.7761 21.8333 20.5 21.8333H9.5C9.22386 21.8333 9 21.6094 9 21.3333Z'
49
- stroke='none'
50
- strokeWidth={1.5}
51
- strokeLinecap='round'
52
- />
53
- <path
54
- d='M15.75 12.5171V7.50073L21 12.5171H15.75Z'
55
- stroke='none'
56
- strokeWidth={1.5}
57
- strokeLinecap='round'
58
- strokeLinejoin='round'
59
- />
60
- <path
61
- d='M14.25 6.78409L10.9818 3.95521C10.8909 3.87655 10.7748 3.83326 10.6546 3.83326H6.92045H3.5C3.22386 3.83326 3 4.05712 3 4.33326L3.00001 17.0335C3.00001 17.3096 3.22387 17.5335 3.50001 17.5335H8.25001'
62
- stroke='none'
63
- strokeWidth={1.5}
64
- strokeLinecap='round'
65
- />
66
- </svg>
67
- )
68
- break
69
- default:
70
- break
71
- }
72
- return icon
73
- }
74
-
75
- export default CopyIcon
@@ -1,70 +0,0 @@
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 +0,0 @@
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