@platformatic/ui-components 0.1.121 → 0.1.123
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.
- package/dist/assets/{index-d72b255b.css → index-3a61658e.css} +1 -1
- package/dist/assets/index-8f6ac36c.js +206 -0
- package/dist/index.html +2 -2
- package/dist/main.css +14 -8
- package/package.json +1 -1
- package/src/components/FollowUs.jsx +7 -5
- package/src/components/FollowUs.module.css +0 -6
- package/src/components/HorizontalSeparator.jsx +2 -2
- package/src/components/icons/ApiPerformanceIcon.jsx +100 -0
- package/src/components/icons/ApplicationTypeIcon.jsx +51 -0
- package/src/components/icons/ArrowLongRightIcon.jsx +77 -0
- package/src/components/icons/CloudIcon.jsx +77 -0
- package/src/components/icons/DepencenciesReloadIcon.jsx +90 -0
- package/src/components/icons/EditDocumentIcon.jsx +97 -0
- package/src/components/icons/GitHubRepo2Icon.jsx +86 -0
- package/src/components/icons/ImportApplicationIcon.jsx +52 -0
- package/src/components/icons/OutOfBoxGraphQLIcon.jsx +112 -0
- package/src/components/icons/PlatformaticComposerIcon.jsx +79 -0
- package/src/components/icons/PlatformaticDBIcon.jsx +99 -0
- package/src/components/icons/PlatformaticRuntimeIcon.jsx +91 -0
- package/src/components/icons/PlatformaticServiceIcon.jsx +91 -0
- package/src/components/icons/PreviewPRIcon.jsx +100 -0
- package/src/components/icons/SocialXIcon.jsx +79 -0
- package/src/components/icons/index.js +30 -2
- package/tailwind.config.cjs +8 -4
- package/dist/assets/index-b5325ff4.js +0 -206
- package/src/components/icons/SocialTwitterIcon.jsx +0 -78
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
import * as React from 'react'
|
|
2
|
+
import PropTypes from 'prop-types'
|
|
3
|
+
import styles from './Icons.module.css'
|
|
4
|
+
import { COLORS_ICON, SIZES, SMALL, MEDIUM, LARGE, MAIN_DARK_BLUE } from '../constants'
|
|
5
|
+
|
|
6
|
+
const PreviewPRIcon = ({ 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='M6 12H2V2H10V6.5' stroke='none' strokeLinecap='round' strokeLinejoin='round' />
|
|
22
|
+
<circle cx='4.25' cy='9.25' r='0.75' stroke='none' />
|
|
23
|
+
<circle cx='4.25' cy='4.75' r='0.75' stroke='none' />
|
|
24
|
+
<path d='M4.2002 5.5L4.2002 8.5' stroke='none' />
|
|
25
|
+
<path d='M7 9.24988C7 8.83566 7.33579 8.49988 7.75 8.49988' stroke='none' strokeLinecap='round' />
|
|
26
|
+
<path d='M7.75 8.49988V4.74988H6.5' stroke='none' strokeLinecap='round' strokeLinejoin='round' />
|
|
27
|
+
<circle cx='10.5' cy='10.5' r='2.5' stroke='none' />
|
|
28
|
+
<path d='M14 14L12.5 12.5' stroke='none' strokeLinecap='round' strokeLinejoin='round' />
|
|
29
|
+
|
|
30
|
+
</svg>
|
|
31
|
+
)
|
|
32
|
+
break
|
|
33
|
+
case MEDIUM:
|
|
34
|
+
icon = (
|
|
35
|
+
<svg
|
|
36
|
+
width={24}
|
|
37
|
+
height={24}
|
|
38
|
+
viewBox='0 0 24 24'
|
|
39
|
+
fill='none'
|
|
40
|
+
xmlns='http://www.w3.org/2000/svg'
|
|
41
|
+
className={className}
|
|
42
|
+
>
|
|
43
|
+
<path d='M9 18H3V3H15V9.75' stroke='none' strokeWidth={1.5} strokeLinecap='round' strokeLinejoin='round' />
|
|
44
|
+
<circle cx='6.375' cy='13.875' r='1.125' stroke='none' strokeWidth={1.5} />
|
|
45
|
+
<circle cx='6.375' cy='7.125' r='1.125' stroke='none' strokeWidth={1.5} />
|
|
46
|
+
<path d='M6.2998 8.25L6.2998 12.75' stroke='none' strokeWidth={1.5} />
|
|
47
|
+
<path d='M10.5 13.8749C10.5 13.2536 11.0037 12.7499 11.625 12.7499' stroke='none' strokeWidth={1.5} strokeLinecap='round' />
|
|
48
|
+
<path d='M11.625 12.7499V7.12488H9.75' stroke='none' strokeWidth={1.5} strokeLinecap='round' strokeLinejoin='round' />
|
|
49
|
+
<circle cx='15.75' cy='15.75' r='3.75' stroke='none' strokeWidth={1.5} />
|
|
50
|
+
<path d='M21 21L18.75 18.75' stroke='none' strokeWidth={1.5} strokeLinecap='round' strokeLinejoin='round' />
|
|
51
|
+
|
|
52
|
+
</svg>
|
|
53
|
+
)
|
|
54
|
+
break
|
|
55
|
+
case LARGE:
|
|
56
|
+
icon = (
|
|
57
|
+
<svg
|
|
58
|
+
width={40}
|
|
59
|
+
height={40}
|
|
60
|
+
viewBox='0 0 40 40'
|
|
61
|
+
fill='none'
|
|
62
|
+
xmlns='http://www.w3.org/2000/svg'
|
|
63
|
+
className={className}
|
|
64
|
+
>
|
|
65
|
+
<path d='M15 30H5V5H25V16.25' stroke='none' strokeWidth={2} strokeLinecap='round' strokeLinejoin='round' />
|
|
66
|
+
<circle cx='10.625' cy='23.125' r='1.875' stroke='none' strokeWidth={2} />
|
|
67
|
+
<circle cx='10.625' cy='11.875' r='1.875' stroke='none' strokeWidth={2} />
|
|
68
|
+
<path d='M10.5 13.75L10.5 21.25' stroke='none' strokeWidth={2} />
|
|
69
|
+
<path d='M17.5 23.1248C17.5 22.0892 18.3395 21.2498 19.375 21.2498' stroke='none' strokeWidth={2} strokeLinecap='round' />
|
|
70
|
+
<path d='M19.375 21.2498V11.8748H16.25' stroke='none' strokeWidth={2} strokeLinecap='round' strokeLinejoin='round' />
|
|
71
|
+
<circle cx='26.25' cy='26.25' r='6.25' stroke='none' strokeWidth={2} />
|
|
72
|
+
<path d='M35 35L31.25 31.25' stroke='none' strokeWidth={2} strokeLinecap='round' strokeLinejoin='round' />
|
|
73
|
+
|
|
74
|
+
</svg>
|
|
75
|
+
)
|
|
76
|
+
break
|
|
77
|
+
|
|
78
|
+
default:
|
|
79
|
+
break
|
|
80
|
+
}
|
|
81
|
+
return icon
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
PreviewPRIcon.propTypes = {
|
|
85
|
+
/**
|
|
86
|
+
* color of text, icon and borders
|
|
87
|
+
*/
|
|
88
|
+
color: PropTypes.oneOf(COLORS_ICON),
|
|
89
|
+
/**
|
|
90
|
+
* Size
|
|
91
|
+
*/
|
|
92
|
+
size: PropTypes.oneOf(SIZES)
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
PreviewPRIcon.defaultProps = {
|
|
96
|
+
color: MAIN_DARK_BLUE,
|
|
97
|
+
size: MEDIUM
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
export default PreviewPRIcon
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
import * as React from 'react'
|
|
2
|
+
import PropTypes from 'prop-types'
|
|
3
|
+
import styles from './Icons.module.css'
|
|
4
|
+
import { COLORS_ICON, SIZES, SMALL, MEDIUM, LARGE, MAIN_DARK_BLUE } from '../constants'
|
|
5
|
+
|
|
6
|
+
const SocialXIcon = ({ color, size }) => {
|
|
7
|
+
const className = `${styles.noShrinkForFlex} ` + styles[`${color}`]
|
|
8
|
+
const filledClassName = styles[`filled-${color}`]
|
|
9
|
+
let icon = <></>
|
|
10
|
+
|
|
11
|
+
switch (size) {
|
|
12
|
+
case SMALL:
|
|
13
|
+
icon = (
|
|
14
|
+
<svg
|
|
15
|
+
width={16}
|
|
16
|
+
height={16}
|
|
17
|
+
viewBox='0 0 16 16'
|
|
18
|
+
fill='none'
|
|
19
|
+
xmlns='http://www.w3.org/2000/svg'
|
|
20
|
+
className={className}
|
|
21
|
+
>
|
|
22
|
+
<path d='M9.14154 7.19276L13.6088 2H12.5502L8.67134 6.50886L5.57327 2H2L6.68486 8.81814L2 14.2636H3.05869L7.15496 9.50214L10.4267 14.2636H14L9.14144 7.19276H9.14174H9.14154ZM7.69155 8.87814L7.21686 8.19925L3.44009 2.79689H5.06607L8.11405 7.15676L8.58875 7.83565L12.5507 13.5028H10.9247L7.69165 8.87834V8.87804L7.69155 8.87814Z' fill='none' className={filledClassName} />
|
|
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='M13.7123 10.7891L20.4132 3H18.8253L13.007 9.76329L8.35991 3H3L10.0273 13.2272L3 21.3954H4.58804L10.7324 14.2532L15.6401 21.3954H21L13.7122 10.7891H13.7126H13.7123ZM11.5373 13.3172L10.8253 12.2989L5.16013 4.19534H7.59911L12.1711 10.7351L12.8831 11.7535L18.8261 20.2542H16.3871L11.5375 13.3175V13.3171L11.5373 13.3172Z' fill='none' className={filledClassName} />
|
|
38
|
+
</svg>
|
|
39
|
+
)
|
|
40
|
+
break
|
|
41
|
+
case LARGE:
|
|
42
|
+
icon = (
|
|
43
|
+
<svg
|
|
44
|
+
width={40}
|
|
45
|
+
height={40}
|
|
46
|
+
viewBox='0 0 40 40'
|
|
47
|
+
fill='none'
|
|
48
|
+
xmlns='http://www.w3.org/2000/svg'
|
|
49
|
+
className={className}
|
|
50
|
+
>
|
|
51
|
+
<path d='M22.8539 17.9819L34.022 5H31.3755L21.6784 16.2722L13.9332 5H5L16.7122 22.0454L5 35.659H7.64673L17.8874 23.7553L26.0668 35.659H35L22.8536 17.9819H22.8544H22.8539ZM19.2289 22.1954L18.0421 20.4981L8.60022 6.99223H12.6652L20.2851 17.8919L21.4719 19.5891L31.3768 33.757H27.3118L19.2291 22.1959V22.1951L19.2289 22.1954Z' fill='none' className={filledClassName} />
|
|
52
|
+
|
|
53
|
+
</svg>
|
|
54
|
+
)
|
|
55
|
+
break
|
|
56
|
+
|
|
57
|
+
default:
|
|
58
|
+
break
|
|
59
|
+
}
|
|
60
|
+
return icon
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
SocialXIcon.propTypes = {
|
|
64
|
+
/**
|
|
65
|
+
* color of text, icon and borders
|
|
66
|
+
*/
|
|
67
|
+
color: PropTypes.oneOf(COLORS_ICON),
|
|
68
|
+
/**
|
|
69
|
+
* Size
|
|
70
|
+
*/
|
|
71
|
+
size: PropTypes.oneOf(SIZES)
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
SocialXIcon.defaultProps = {
|
|
75
|
+
color: MAIN_DARK_BLUE,
|
|
76
|
+
size: MEDIUM
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
export default SocialXIcon
|
|
@@ -5,14 +5,17 @@ import ApiCloudIcon from './ApiCloudIcon'
|
|
|
5
5
|
import ApiIcon from './ApiIcon'
|
|
6
6
|
import ApiIconClosed from './ApiIconClosed'
|
|
7
7
|
import ApiEmptyIcon from './ApiEmptyIcon'
|
|
8
|
+
import ApiPerformanceIcon from './ApiPerformanceIcon'
|
|
8
9
|
import AppIcon from './AppIcon'
|
|
9
10
|
import AppListIcon from './AppListIcon'
|
|
10
11
|
import AppEmptyIcon from './AppEmptyIcon'
|
|
12
|
+
import ApplicationTypeIcon from './ApplicationTypeIcon'
|
|
11
13
|
import AppWorkspace from './AppWorkspace'
|
|
12
14
|
import ArrowDownFullIcon from './ArrowDownFullIcon'
|
|
13
15
|
import ArrowDownIcon from './ArrowDownIcon'
|
|
14
16
|
import ArrowLeftIcon from './ArrowLeftIcon'
|
|
15
17
|
import ArrowRightIcon from './ArrowRightIcon'
|
|
18
|
+
import ArrowLongRightIcon from './ArrowLongRightIcon'
|
|
16
19
|
import ArrowUpIcon from './ArrowUpIcon'
|
|
17
20
|
import BellIcon from './BellIcon'
|
|
18
21
|
import BillingIcon from './BillingIcon'
|
|
@@ -39,14 +42,17 @@ import CircleSubtractIcon from './CircleSubtractIcon'
|
|
|
39
42
|
import CircleTwoArrowsDownIcon from './CircleTwoArrowsDownIcon'
|
|
40
43
|
import CircleTwoArrowsUpIcon from './CircleTwoArrowsUpIcon'
|
|
41
44
|
import CloseIcon from './CloseIcon'
|
|
45
|
+
import CloudIcon from './CloudIcon'
|
|
42
46
|
import CreditCardIcon from './CreditCardIcon'
|
|
43
47
|
import CopyPasteIcon from './CopyPasteIcon'
|
|
44
48
|
import ConfigureDatabaseIcon from './ConfigureDatabaseIcon'
|
|
45
49
|
import CreatingAppIcon from './CreatingAppIcon'
|
|
46
50
|
import DatabaseIcon from './DatabaseIcon'
|
|
47
51
|
import DatabaseMigrationIcon from './DatabaseMigrationIcon'
|
|
52
|
+
import DepencenciesReloadIcon from './DepencenciesReloadIcon'
|
|
48
53
|
import EyeClosedIcon from './EyeClosedIcon'
|
|
49
54
|
import EyeOpenedIcon from './EyeOpenedIcon'
|
|
55
|
+
import EditDocumentIcon from './EditDocumentIcon'
|
|
50
56
|
import EditIcon from './EditIcon'
|
|
51
57
|
import ExploreDocIcon from './ExploreDocIcon'
|
|
52
58
|
import EnlargeIcon from './EnlargeIcon'
|
|
@@ -55,8 +61,10 @@ import GearIcon from './GearIcon'
|
|
|
55
61
|
import GenerationLoadingIcon from './GenerationLoadingIcon'
|
|
56
62
|
import GiveOwnershipIcon from './GiveOwnershipIcon'
|
|
57
63
|
import GitHubRepoIcon from './GitHubRepoIcon'
|
|
64
|
+
import GitHubRepo2Icon from './GitHubRepo2Icon'
|
|
58
65
|
import GraphQLIcon from './GraphQLIcon'
|
|
59
66
|
import KeyIcon from './KeyIcon'
|
|
67
|
+
import ImportApplicationIcon from './ImportApplicationIcon'
|
|
60
68
|
import LabelIcon from './LabelIcon'
|
|
61
69
|
import LayersIcon from './LayersIcon'
|
|
62
70
|
import LensIcon from './LensIcon'
|
|
@@ -67,7 +75,13 @@ import MetricsIcon from './MetricsIcon'
|
|
|
67
75
|
import MetricsLoadingIcon from './MetricsLoadingIcon'
|
|
68
76
|
import NameAppIcon from './NameAppIcon'
|
|
69
77
|
import OrganizationIcon from './OrganizationIcon'
|
|
78
|
+
import OutOfBoxGraphQLIcon from './OutOfBoxGraphQLIcon'
|
|
79
|
+
import PlatformaticComposerIcon from './PlatformaticComposerIcon'
|
|
80
|
+
import PlatformaticDBIcon from './PlatformaticDBIcon'
|
|
81
|
+
import PlatformaticRuntimeIcon from './PlatformaticRuntimeIcon'
|
|
82
|
+
import PlatformaticServiceIcon from './PlatformaticServiceIcon'
|
|
70
83
|
import PlayIcon from './PlayIcon'
|
|
84
|
+
import PreviewPRIcon from './PreviewPRIcon'
|
|
71
85
|
import PullRequestIcon from './PullRequestIcon'
|
|
72
86
|
import PullRequestLoadingIcon from './PullRequestLoadingIcon'
|
|
73
87
|
import RequestOwnershipIcon from './RequestOwnershipIcon'
|
|
@@ -83,7 +97,7 @@ import SocialGitHubIcon from './SocialGitHubIcon'
|
|
|
83
97
|
import SocialGitLabIcon from './SocialGitLabIcon'
|
|
84
98
|
import SocialLinkedInIcon from './SocialLinkedInIcon'
|
|
85
99
|
import SocialNPMIcon from './SocialNPMIcon'
|
|
86
|
-
import
|
|
100
|
+
import SocialXIcon from './SocialXIcon'
|
|
87
101
|
import StopIcon from './StopIcon'
|
|
88
102
|
import TerminalIcon from './TerminalIcon'
|
|
89
103
|
import TwoUsersIcon from './TwoUsersIcon'
|
|
@@ -108,14 +122,17 @@ export default {
|
|
|
108
122
|
ApiIcon,
|
|
109
123
|
ApiIconClosed,
|
|
110
124
|
ApiEmptyIcon,
|
|
125
|
+
ApiPerformanceIcon,
|
|
111
126
|
AppIcon,
|
|
112
127
|
AppListIcon,
|
|
113
128
|
AppEmptyIcon,
|
|
129
|
+
ApplicationTypeIcon,
|
|
114
130
|
AppWorkspace,
|
|
115
131
|
ArrowDownFullIcon,
|
|
116
132
|
ArrowDownIcon,
|
|
117
133
|
ArrowLeftIcon,
|
|
118
134
|
ArrowRightIcon,
|
|
135
|
+
ArrowLongRightIcon,
|
|
119
136
|
ArrowUpIcon,
|
|
120
137
|
BellIcon,
|
|
121
138
|
BillingIcon,
|
|
@@ -142,12 +159,15 @@ export default {
|
|
|
142
159
|
CircleTwoArrowsDownIcon,
|
|
143
160
|
CircleTwoArrowsUpIcon,
|
|
144
161
|
CloseIcon,
|
|
162
|
+
CloudIcon,
|
|
145
163
|
CreditCardIcon,
|
|
146
164
|
CopyPasteIcon,
|
|
147
165
|
ConfigureDatabaseIcon,
|
|
148
166
|
CreatingAppIcon,
|
|
149
167
|
DatabaseIcon,
|
|
150
168
|
DatabaseMigrationIcon,
|
|
169
|
+
DepencenciesReloadIcon,
|
|
170
|
+
EditDocumentIcon,
|
|
151
171
|
EditIcon,
|
|
152
172
|
EyeClosedIcon,
|
|
153
173
|
EyeOpenedIcon,
|
|
@@ -158,7 +178,9 @@ export default {
|
|
|
158
178
|
GenerationLoadingIcon,
|
|
159
179
|
GiveOwnershipIcon,
|
|
160
180
|
GitHubRepoIcon,
|
|
181
|
+
GitHubRepo2Icon,
|
|
161
182
|
GraphQLIcon,
|
|
183
|
+
ImportApplicationIcon,
|
|
162
184
|
KeyIcon,
|
|
163
185
|
LabelIcon,
|
|
164
186
|
LayersIcon,
|
|
@@ -170,7 +192,13 @@ export default {
|
|
|
170
192
|
MetricsLoadingIcon,
|
|
171
193
|
NameAppIcon,
|
|
172
194
|
OrganizationIcon,
|
|
195
|
+
OutOfBoxGraphQLIcon,
|
|
196
|
+
PlatformaticComposerIcon,
|
|
197
|
+
PlatformaticDBIcon,
|
|
198
|
+
PlatformaticRuntimeIcon,
|
|
199
|
+
PlatformaticServiceIcon,
|
|
173
200
|
PlayIcon,
|
|
201
|
+
PreviewPRIcon,
|
|
174
202
|
PullRequestIcon,
|
|
175
203
|
PullRequestLoadingIcon,
|
|
176
204
|
RequestOwnershipIcon,
|
|
@@ -187,7 +215,7 @@ export default {
|
|
|
187
215
|
SocialGitLabIcon,
|
|
188
216
|
SocialLinkedInIcon,
|
|
189
217
|
SocialNPMIcon,
|
|
190
|
-
|
|
218
|
+
SocialXIcon,
|
|
191
219
|
TerminalIcon,
|
|
192
220
|
UpgradeIcon,
|
|
193
221
|
UserIcon,
|
package/tailwind.config.cjs
CHANGED
|
@@ -2,14 +2,18 @@
|
|
|
2
2
|
module.exports = {
|
|
3
3
|
content: ['./src/**/*.{html,jsx}'],
|
|
4
4
|
theme: {
|
|
5
|
+
screens: {
|
|
6
|
+
xs: '350px',
|
|
7
|
+
sm: '390px',
|
|
8
|
+
md: '744px',
|
|
9
|
+
lg: '1240px',
|
|
10
|
+
xl: '1440px',
|
|
11
|
+
'2xl': '1920px'
|
|
12
|
+
},
|
|
5
13
|
container: {
|
|
6
14
|
center: true
|
|
7
15
|
},
|
|
8
16
|
extend: {
|
|
9
|
-
screens: {
|
|
10
|
-
lg: '1440px'
|
|
11
|
-
// => @media (min-width: 1440px) { ... }
|
|
12
|
-
},
|
|
13
17
|
boxShadow: {
|
|
14
18
|
wrap: '0px 0px 4px rgba(0, 0, 0, 0.5)',
|
|
15
19
|
'main-green': '0px 0px 4px rgba(33, 250, 144, 0.5)',
|