@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,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