@platformatic/ui-components 0.1.50 → 0.1.51

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (55) hide show
  1. package/dist/api-icon-closed.svg +6 -0
  2. package/dist/api-icon.svg +9 -0
  3. package/dist/assets/Montserrat-Regular.dcfe8df2.ttf +0 -0
  4. package/dist/assets/index.691ca940.css +1 -0
  5. package/dist/assets/index.ff0dadfc.js +797 -0
  6. package/dist/index.html +14 -0
  7. package/dist/stats.html +6177 -0
  8. package/dist/vite.svg +1 -0
  9. package/package.json +1 -1
  10. package/src/components/DropDown.jsx +3 -4
  11. package/src/components/DropDown.module.css +0 -2
  12. package/src/components/Modal.jsx +1 -1
  13. package/src/components/Sidebar.jsx +3 -5
  14. package/src/components/Sidebar.module.css +8 -4
  15. package/src/components/forms/Preview.jsx +1 -1
  16. package/src/components/icons/AddIcon.jsx +78 -0
  17. package/src/components/icons/AlertIcon.jsx +81 -0
  18. package/src/components/icons/AllInOneIcon.jsx +111 -0
  19. package/src/components/icons/ApiCloudIcon.jsx +93 -0
  20. package/src/components/icons/ApiIcon.jsx +83 -28
  21. package/src/components/icons/AppIcon.jsx +84 -37
  22. package/src/components/icons/ArrowDownFullIcon.jsx +76 -0
  23. package/src/components/icons/ArrowDownIcon.jsx +75 -0
  24. package/src/components/icons/ArrowLeftIcon.jsx +75 -0
  25. package/src/components/icons/ArrowRightIcon.jsx +75 -0
  26. package/src/components/icons/ArrowUpIcon.jsx +75 -0
  27. package/src/components/icons/Calendar1DayIcon.jsx +90 -0
  28. package/src/components/icons/Calendar7DaysIcon.jsx +88 -0
  29. package/src/components/icons/CalendarIcon.jsx +75 -29
  30. package/src/components/icons/CircleAddIcon.jsx +58 -17
  31. package/src/components/icons/CloseIcon.jsx +73 -25
  32. package/src/components/icons/CopyPasteIcon.jsx +81 -0
  33. package/src/components/icons/DatabaseIcon.jsx +81 -0
  34. package/src/components/icons/EditIcon.jsx +63 -20
  35. package/src/components/icons/GearIcon.jsx +67 -29
  36. package/src/components/icons/Icons.module.css +17 -0
  37. package/src/components/icons/Users2Icon.jsx +84 -0
  38. package/src/components/icons/WorkspaceDynamicIcon.jsx +87 -0
  39. package/src/components/icons/WorkspaceReadyIcon.jsx +144 -0
  40. package/src/components/icons/WorkspaceStaticIcon.jsx +84 -0
  41. package/src/components/icons/index.js +35 -15
  42. package/src/stories/PlatformaticIcon.stories.jsx +7 -1
  43. package/src/stories/Sidebar.stories.jsx +2 -2
  44. package/src/stories/forms/Input.stories.jsx +1 -1
  45. package/src/stories/forms/Preview.stories.jsx +1 -1
  46. package/src/stories/icons/Icons.stories.jsx +4 -10
  47. package/src/styles/main.css +8 -1
  48. package/dist/main.css +0 -704
  49. package/src/components/icons/Calendar1Icon.jsx +0 -54
  50. package/src/components/icons/Calendar7Icon.jsx +0 -55
  51. package/src/components/icons/CopyIcon.jsx +0 -75
  52. package/src/components/icons/CreatedWorkspaceIcon.jsx +0 -70
  53. package/src/components/icons/DynamicWorkspaceIcon.jsx +0 -125
  54. package/src/components/icons/StaticWorkspaceIcon.jsx +0 -119
  55. package/src/components/icons/TriangleExclamationIcon.jsx +0 -26
@@ -1,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
@@ -1,119 +0,0 @@
1
- import * as React from 'react'
2
- import styles from './Icons.module.css'
3
-
4
- const StaticWorkspaceIcon = ({
5
- color = 'green',
6
- size = 'normal',
7
- tip = ''
8
- }) => {
9
- const className = `${styles.noShrinkForFlex} ` + styles[`${color}`]
10
- let icon = (
11
- <svg
12
- width={40}
13
- height={41}
14
- viewBox='0 0 40 41'
15
- fill='none'
16
- xmlns='http://www.w3.org/2000/svg'
17
- className={className}
18
- data-tip={tip}
19
- >
20
- <rect
21
- x={5}
22
- y={5.33325}
23
- width={10}
24
- height={12.5874}
25
- rx={1}
26
- stroke='none'
27
- strokeWidth={2.5}
28
- />
29
- <rect
30
- x={20}
31
- y={5.33325}
32
- width={15}
33
- height={12.5874}
34
- rx={1}
35
- stroke='none'
36
- strokeWidth={2.5}
37
- />
38
- <rect
39
- x={35}
40
- y={35.3333}
41
- width={10}
42
- height={12.5874}
43
- rx={1}
44
- transform='rotate(-180 35 35.3333)'
45
- stroke='none'
46
- strokeWidth={2.5}
47
- />
48
- <rect
49
- x={20}
50
- y={35.3333}
51
- width={15}
52
- height={12.5874}
53
- rx={1}
54
- transform='rotate(-180 20 35.3333)'
55
- stroke='none'
56
- strokeWidth={2.5}
57
- />
58
- </svg>
59
- )
60
- switch (size) {
61
- case 'small':
62
- icon = (
63
- <svg
64
- width={24}
65
- height={25}
66
- viewBox='0 0 24 25'
67
- fill='none'
68
- xmlns='http://www.w3.org/2000/svg'
69
- className={className}
70
- data-tip={tip}
71
- >
72
- <rect
73
- x={3}
74
- y={3.5}
75
- width={6}
76
- height={7.55245}
77
- rx={1}
78
- stroke='none'
79
- strokeWidth={1.5}
80
- />
81
- <rect
82
- x={12}
83
- y={3.5}
84
- width={9}
85
- height={7.55245}
86
- rx={1}
87
- stroke='none'
88
- strokeWidth={1.5}
89
- />
90
- <rect
91
- x={21}
92
- y={21.5}
93
- width={6}
94
- height={7.55245}
95
- rx={1}
96
- transform='rotate(-180 21 21.5)'
97
- stroke='none'
98
- strokeWidth={1.5}
99
- />
100
- <rect
101
- x={12}
102
- y={21.5}
103
- width={9}
104
- height={7.55245}
105
- rx={1}
106
- transform='rotate(-180 12 21.5)'
107
- stroke='none'
108
- strokeWidth={1.5}
109
- />
110
- </svg>
111
- )
112
- break
113
- default:
114
- break
115
- }
116
- return icon
117
- }
118
-
119
- export default StaticWorkspaceIcon
@@ -1,26 +0,0 @@
1
- import * as React from 'react'
2
- import styles from './Icons.module.css'
3
- const TriangleExclamationIcon = ({ color = 'red' }) => {
4
- const className = styles[`${color}`]
5
- return (
6
- <svg
7
- width={16}
8
- height={16}
9
- viewBox='0 0 16 16'
10
- fill='none'
11
- xmlns='http://www.w3.org/2000/svg'
12
- className={className}
13
- >
14
- <path d='M14 14H2L8 2L14 14Z' stroke='none' strokeLinejoin='round' />
15
- <path
16
- d='M8 6V10.5'
17
- stroke='none'
18
- strokeLinecap='round'
19
- strokeLinejoin='round'
20
- />
21
- <circle cx={8} cy={12} r={0.5} fill='none' />
22
- </svg>
23
- )
24
- }
25
-
26
- export default TriangleExclamationIcon