@platformatic/ui-components 0.1.58 → 0.1.59
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.0de95a32.css +1 -0
- package/dist/assets/index.d6543e3d.js +40 -0
- package/dist/index.html +2 -2
- package/dist/main.css +10 -20
- package/package.json +1 -1
- package/src/components/BorderedBox.jsx +34 -6
- package/src/components/BorderedBox.module.css +0 -6
- package/src/components/Button.jsx +6 -6
- package/src/components/Button.module.css +0 -30
- package/src/components/ButtonFullRounded.jsx +53 -8
- package/src/components/ButtonFullRounded.module.css +1 -23
- package/src/components/Common.module.css +56 -0
- package/src/components/FollowUs.jsx +5 -6
- package/src/components/GHLoginButton.jsx +1 -2
- package/src/components/InfoBox.jsx +4 -3
- package/src/components/ListElement.jsx +1 -1
- package/src/components/LoginButton.jsx +3 -12
- package/src/components/LoginButton.test.jsx +4 -5
- package/src/components/Modal.jsx +1 -1
- package/src/components/PlatformaticIcon.jsx +4 -3
- package/src/components/SearchBar.jsx +2 -7
- package/src/components/Sidebar.jsx +1 -1
- package/src/components/SimpleMetric.jsx +0 -2
- package/src/components/Status.jsx +26 -19
- package/src/components/constants.js +4 -0
- package/src/components/forms/Input.jsx +1 -0
- package/src/components/icons/AddIcon.jsx +3 -2
- package/src/components/icons/AlertIcon.jsx +4 -3
- package/src/components/icons/AllInOneIcon.jsx +3 -2
- package/src/components/icons/ApiCloudIcon.jsx +3 -2
- package/src/components/icons/ApiEmptyIcon.jsx +3 -2
- package/src/components/icons/ApiIcon.jsx +3 -2
- package/src/components/icons/ApiIconClosed.jsx +3 -2
- package/src/components/icons/AppEmptyIcon.jsx +3 -2
- package/src/components/icons/AppIcon.jsx +3 -2
- package/src/components/icons/AppListIcon.jsx +3 -2
- package/src/components/icons/ArrowDownFullIcon.jsx +3 -2
- package/src/components/icons/ArrowDownIcon.jsx +3 -2
- package/src/components/icons/ArrowLeftIcon.jsx +3 -2
- package/src/components/icons/ArrowRightIcon.jsx +3 -2
- package/src/components/icons/ArrowUpIcon.jsx +3 -2
- package/src/components/icons/BellIcon.jsx +3 -2
- package/src/components/icons/BillingIcon.jsx +3 -2
- package/src/components/icons/Calendar1DayIcon.jsx +3 -2
- package/src/components/icons/Calendar7DaysIcon.jsx +3 -2
- package/src/components/icons/CalendarIcon.jsx +3 -2
- package/src/components/icons/CircleAddIcon.jsx +3 -2
- package/src/components/icons/CircleArrowLeftIcon.jsx +3 -2
- package/src/components/icons/CircleArrowRightIcon.jsx +3 -2
- package/src/components/icons/CircleCheckMarkIcon.jsx +3 -2
- package/src/components/icons/CircleCloseHoverIcon.jsx +3 -2
- package/src/components/icons/CircleCloseIcon.jsx +3 -2
- package/src/components/icons/CircleExclamationIcon.jsx +3 -2
- package/src/components/icons/CircleFullIcon.jsx +77 -0
- package/src/components/icons/CircleTwoArrowsDownIcon.jsx +3 -2
- package/src/components/icons/CircleTwoArrowsUpIcon.jsx +3 -2
- package/src/components/icons/CloseIcon.jsx +3 -2
- package/src/components/icons/CopyPasteIcon.jsx +3 -2
- package/src/components/icons/DatabaseIcon.jsx +3 -2
- package/src/components/icons/EditIcon.jsx +3 -2
- package/src/components/icons/EnlargeIcon.jsx +3 -2
- package/src/components/icons/EntryIcon.jsx +3 -2
- package/src/components/icons/ExploreDocIcon.jsx +3 -2
- package/src/components/icons/GearIcon.jsx +3 -2
- package/src/components/icons/GraphQLIcon.jsx +3 -2
- package/src/components/icons/Icons.module.css +24 -12
- package/src/components/icons/KeyIcon.jsx +3 -2
- package/src/components/icons/LayersIcon.jsx +3 -2
- package/src/components/icons/LensIcon.jsx +3 -2
- package/src/components/icons/LiveIcon.jsx +3 -2
- package/src/components/icons/LogOutIcon.jsx +3 -2
- package/src/components/icons/MetricsIcon.jsx +3 -2
- package/src/components/icons/PlayIcon.jsx +3 -2
- package/src/components/icons/PullRequestIcon.jsx +3 -2
- package/src/components/icons/SendIcon.jsx +3 -2
- package/src/components/icons/SocialDiscordIcon.jsx +3 -2
- package/src/components/icons/SocialGitHubIcon.jsx +3 -2
- package/src/components/icons/SocialGitLabIcon.jsx +3 -2
- package/src/components/icons/SocialLinkedInIcon.jsx +3 -2
- package/src/components/icons/SocialNPMIcon.jsx +3 -2
- package/src/components/icons/SocialTwitterIcon.jsx +3 -2
- package/src/components/icons/StopIcon.jsx +3 -2
- package/src/components/icons/TerminalIcon.jsx +3 -2
- package/src/components/icons/TwoUsersIcon.jsx +3 -2
- package/src/components/icons/UpgradeIcon.jsx +3 -2
- package/src/components/icons/WorkspaceDynamicIcon.jsx +3 -2
- package/src/components/icons/WorkspaceFailIcon.jsx +3 -2
- package/src/components/icons/WorkspaceReadyIcon.jsx +3 -2
- package/src/components/icons/WorkspaceStaticIcon.jsx +3 -2
- package/src/components/icons/index.js +2 -0
- package/src/stories/BorderedBox.stories.jsx +5 -5
- package/src/stories/Button.stories.jsx +4 -5
- package/src/stories/ButtonFullRounded.stories.jsx +11 -11
- package/src/stories/InfoBox.stories.jsx +1 -2
- package/src/stories/Modal.stories.jsx +2 -2
- package/src/stories/PlatformaticIcon.stories.jsx +2 -3
- package/src/stories/Status.stories.jsx +2 -2
- package/src/stories/forms/Input.stories.jsx +1 -1
- package/src/stories/forms/Preview.stories.jsx +1 -1
- package/src/stories/icons/Icons.stories.jsx +5 -4
- package/tailwind.config.cjs +11 -11
- package/dist/assets/index.691ca940.css +0 -1
- package/dist/assets/index.ff0dadfc.js +0 -797
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import * as React from 'react'
|
|
2
2
|
import PropTypes from 'prop-types'
|
|
3
3
|
import styles from './Icons.module.css'
|
|
4
|
+
import { COLORS_ICON, SIZES } from '../constants'
|
|
4
5
|
|
|
5
6
|
const SocialGitLabIcon = ({ color, size }) => {
|
|
6
7
|
const className = `${styles.noShrinkForFlex} ` + styles[`${color}`]
|
|
@@ -107,11 +108,11 @@ SocialGitLabIcon.propTypes = {
|
|
|
107
108
|
/**
|
|
108
109
|
* color of text, icon and borders
|
|
109
110
|
*/
|
|
110
|
-
color: PropTypes.oneOf(
|
|
111
|
+
color: PropTypes.oneOf(COLORS_ICON),
|
|
111
112
|
/**
|
|
112
113
|
* Size
|
|
113
114
|
*/
|
|
114
|
-
size: PropTypes.oneOf(
|
|
115
|
+
size: PropTypes.oneOf(SIZES)
|
|
115
116
|
}
|
|
116
117
|
|
|
117
118
|
SocialGitLabIcon.defaultProps = {
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import * as React from 'react'
|
|
2
2
|
import PropTypes from 'prop-types'
|
|
3
3
|
import styles from './Icons.module.css'
|
|
4
|
+
import { COLORS_ICON, SIZES } from '../constants'
|
|
4
5
|
|
|
5
6
|
const SocialLinkedInIcon = ({ color, size }) => {
|
|
6
7
|
const className = `${styles.noShrinkForFlex} ` + styles[`${color}`]
|
|
@@ -70,11 +71,11 @@ SocialLinkedInIcon.propTypes = {
|
|
|
70
71
|
/**
|
|
71
72
|
* color of text, icon and borders
|
|
72
73
|
*/
|
|
73
|
-
color: PropTypes.oneOf(
|
|
74
|
+
color: PropTypes.oneOf(COLORS_ICON),
|
|
74
75
|
/**
|
|
75
76
|
* Size
|
|
76
77
|
*/
|
|
77
|
-
size: PropTypes.oneOf(
|
|
78
|
+
size: PropTypes.oneOf(SIZES)
|
|
78
79
|
}
|
|
79
80
|
|
|
80
81
|
SocialLinkedInIcon.defaultProps = {
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import * as React from 'react'
|
|
2
2
|
import PropTypes from 'prop-types'
|
|
3
3
|
import styles from './Icons.module.css'
|
|
4
|
+
import { COLORS_ICON, SIZES } from '../constants'
|
|
4
5
|
|
|
5
6
|
const SocialNPMIcon = ({ color, size }) => {
|
|
6
7
|
const className = `${styles.noShrinkForFlex} ` + styles[`${color}`]
|
|
@@ -62,11 +63,11 @@ SocialNPMIcon.propTypes = {
|
|
|
62
63
|
/**
|
|
63
64
|
* color of text, icon and borders
|
|
64
65
|
*/
|
|
65
|
-
color: PropTypes.oneOf(
|
|
66
|
+
color: PropTypes.oneOf(COLORS_ICON),
|
|
66
67
|
/**
|
|
67
68
|
* Size
|
|
68
69
|
*/
|
|
69
|
-
size: PropTypes.oneOf(
|
|
70
|
+
size: PropTypes.oneOf(SIZES)
|
|
70
71
|
}
|
|
71
72
|
|
|
72
73
|
SocialNPMIcon.defaultProps = {
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import * as React from 'react'
|
|
2
2
|
import PropTypes from 'prop-types'
|
|
3
3
|
import styles from './Icons.module.css'
|
|
4
|
+
import { COLORS_ICON, SIZES } from '../constants'
|
|
4
5
|
|
|
5
6
|
const SocialTwitterIcon = ({ color, size }) => {
|
|
6
7
|
const className = `${styles.noShrinkForFlex} ` + styles[`${color}`]
|
|
@@ -62,11 +63,11 @@ SocialTwitterIcon.propTypes = {
|
|
|
62
63
|
/**
|
|
63
64
|
* color of text, icon and borders
|
|
64
65
|
*/
|
|
65
|
-
color: PropTypes.oneOf(
|
|
66
|
+
color: PropTypes.oneOf(COLORS_ICON),
|
|
66
67
|
/**
|
|
67
68
|
* Size
|
|
68
69
|
*/
|
|
69
|
-
size: PropTypes.oneOf(
|
|
70
|
+
size: PropTypes.oneOf(SIZES)
|
|
70
71
|
}
|
|
71
72
|
|
|
72
73
|
SocialTwitterIcon.defaultProps = {
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import * as React from 'react'
|
|
2
2
|
import PropTypes from 'prop-types'
|
|
3
3
|
import styles from './Icons.module.css'
|
|
4
|
+
import { COLORS_ICON, SIZES } from '../constants'
|
|
4
5
|
|
|
5
6
|
const StopIcon = ({ color, size }) => {
|
|
6
7
|
const className = `${styles.noShrinkForFlex} ` + styles[`${color}`]
|
|
@@ -63,11 +64,11 @@ StopIcon.propTypes = {
|
|
|
63
64
|
/**
|
|
64
65
|
* color of text, icon and borders
|
|
65
66
|
*/
|
|
66
|
-
color: PropTypes.oneOf(
|
|
67
|
+
color: PropTypes.oneOf(COLORS_ICON),
|
|
67
68
|
/**
|
|
68
69
|
* Size
|
|
69
70
|
*/
|
|
70
|
-
size: PropTypes.oneOf(
|
|
71
|
+
size: PropTypes.oneOf(SIZES)
|
|
71
72
|
}
|
|
72
73
|
|
|
73
74
|
StopIcon.defaultProps = {
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import * as React from 'react'
|
|
2
2
|
import PropTypes from 'prop-types'
|
|
3
3
|
import styles from './Icons.module.css'
|
|
4
|
+
import { COLORS_ICON, SIZES } from '../constants'
|
|
4
5
|
|
|
5
6
|
const TerminalIcon = ({ color, size }) => {
|
|
6
7
|
const className = `${styles.noShrinkForFlex} ` + styles[`${color}`]
|
|
@@ -67,11 +68,11 @@ TerminalIcon.propTypes = {
|
|
|
67
68
|
/**
|
|
68
69
|
* color of text, icon and borders
|
|
69
70
|
*/
|
|
70
|
-
color: PropTypes.oneOf(
|
|
71
|
+
color: PropTypes.oneOf(COLORS_ICON),
|
|
71
72
|
/**
|
|
72
73
|
* Size
|
|
73
74
|
*/
|
|
74
|
-
size: PropTypes.oneOf(
|
|
75
|
+
size: PropTypes.oneOf(SIZES)
|
|
75
76
|
}
|
|
76
77
|
|
|
77
78
|
TerminalIcon.defaultProps = {
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import * as React from 'react'
|
|
2
2
|
import PropTypes from 'prop-types'
|
|
3
3
|
import styles from './Icons.module.css'
|
|
4
|
+
import { COLORS_ICON, SIZES } from '../constants'
|
|
4
5
|
|
|
5
6
|
const TwoUsersIcon = ({ color, size }) => {
|
|
6
7
|
const className = `${styles.noShrinkForFlex} ` + styles[`${color}`]
|
|
@@ -69,11 +70,11 @@ TwoUsersIcon.propTypes = {
|
|
|
69
70
|
/**
|
|
70
71
|
* color of text, icon and borders
|
|
71
72
|
*/
|
|
72
|
-
color: PropTypes.oneOf(
|
|
73
|
+
color: PropTypes.oneOf(COLORS_ICON),
|
|
73
74
|
/**
|
|
74
75
|
* Size
|
|
75
76
|
*/
|
|
76
|
-
size: PropTypes.oneOf(
|
|
77
|
+
size: PropTypes.oneOf(SIZES)
|
|
77
78
|
}
|
|
78
79
|
|
|
79
80
|
TwoUsersIcon.defaultProps = {
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import * as React from 'react'
|
|
2
2
|
import PropTypes from 'prop-types'
|
|
3
3
|
import styles from './Icons.module.css'
|
|
4
|
+
import { COLORS_ICON, SIZES } from '../constants'
|
|
4
5
|
|
|
5
6
|
const UpgradeIcon = ({ color, size }) => {
|
|
6
7
|
const className = `${styles.noShrinkForFlex} ` + styles[`${color}`]
|
|
@@ -102,11 +103,11 @@ UpgradeIcon.propTypes = {
|
|
|
102
103
|
/**
|
|
103
104
|
* color of text, icon and borders
|
|
104
105
|
*/
|
|
105
|
-
color: PropTypes.oneOf(
|
|
106
|
+
color: PropTypes.oneOf(COLORS_ICON),
|
|
106
107
|
/**
|
|
107
108
|
* Size
|
|
108
109
|
*/
|
|
109
|
-
size: PropTypes.oneOf(
|
|
110
|
+
size: PropTypes.oneOf(SIZES)
|
|
110
111
|
}
|
|
111
112
|
|
|
112
113
|
UpgradeIcon.defaultProps = {
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import * as React from 'react'
|
|
2
2
|
import PropTypes from 'prop-types'
|
|
3
3
|
import styles from './Icons.module.css'
|
|
4
|
+
import { COLORS_ICON, SIZES } from '../constants'
|
|
4
5
|
|
|
5
6
|
const WorkspaceDynamicIcon = ({ color, size }) => {
|
|
6
7
|
const className = `${styles.noShrinkForFlex} ` + styles[`${color}`]
|
|
@@ -72,11 +73,11 @@ WorkspaceDynamicIcon.propTypes = {
|
|
|
72
73
|
/**
|
|
73
74
|
* color of text, icon and borders
|
|
74
75
|
*/
|
|
75
|
-
color: PropTypes.oneOf(
|
|
76
|
+
color: PropTypes.oneOf(COLORS_ICON),
|
|
76
77
|
/**
|
|
77
78
|
* Size
|
|
78
79
|
*/
|
|
79
|
-
size: PropTypes.oneOf(
|
|
80
|
+
size: PropTypes.oneOf(SIZES)
|
|
80
81
|
}
|
|
81
82
|
|
|
82
83
|
WorkspaceDynamicIcon.defaultProps = {
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import * as React from 'react'
|
|
2
2
|
import PropTypes from 'prop-types'
|
|
3
3
|
import styles from './Icons.module.css'
|
|
4
|
+
import { COLORS_ICON, SIZES } from '../constants'
|
|
4
5
|
|
|
5
6
|
const WorkspaceFailIcon = ({ color, size }) => {
|
|
6
7
|
const className = `${styles.noShrinkForFlex} ` + styles[`${color}`]
|
|
@@ -97,11 +98,11 @@ WorkspaceFailIcon.propTypes = {
|
|
|
97
98
|
/**
|
|
98
99
|
* color of text, icon and borders
|
|
99
100
|
*/
|
|
100
|
-
color: PropTypes.oneOf(
|
|
101
|
+
color: PropTypes.oneOf(COLORS_ICON),
|
|
101
102
|
/**
|
|
102
103
|
* Size
|
|
103
104
|
*/
|
|
104
|
-
size: PropTypes.oneOf(
|
|
105
|
+
size: PropTypes.oneOf(SIZES)
|
|
105
106
|
}
|
|
106
107
|
|
|
107
108
|
WorkspaceFailIcon.defaultProps = {
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import * as React from 'react'
|
|
2
2
|
import PropTypes from 'prop-types'
|
|
3
3
|
import styles from './Icons.module.css'
|
|
4
|
+
import { COLORS_ICON, SIZES } from '../constants'
|
|
4
5
|
|
|
5
6
|
const WorkspaceReadyIcon = ({ color, size }) => {
|
|
6
7
|
const className = `${styles.noShrinkForFlex} ` + styles[`${color}`]
|
|
@@ -129,11 +130,11 @@ WorkspaceReadyIcon.propTypes = {
|
|
|
129
130
|
/**
|
|
130
131
|
* color of text, icon and borders
|
|
131
132
|
*/
|
|
132
|
-
color: PropTypes.oneOf(
|
|
133
|
+
color: PropTypes.oneOf(COLORS_ICON),
|
|
133
134
|
/**
|
|
134
135
|
* Size
|
|
135
136
|
*/
|
|
136
|
-
size: PropTypes.oneOf(
|
|
137
|
+
size: PropTypes.oneOf(SIZES)
|
|
137
138
|
}
|
|
138
139
|
|
|
139
140
|
WorkspaceReadyIcon.defaultProps = {
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import * as React from 'react'
|
|
2
2
|
import PropTypes from 'prop-types'
|
|
3
3
|
import styles from './Icons.module.css'
|
|
4
|
+
import { COLORS_ICON, SIZES } from '../constants'
|
|
4
5
|
|
|
5
6
|
const WorkspaceStaticIcon = ({ color, size }) => {
|
|
6
7
|
const className = `${styles.noShrinkForFlex} ` + styles[`${color}`]
|
|
@@ -69,11 +70,11 @@ WorkspaceStaticIcon.propTypes = {
|
|
|
69
70
|
/**
|
|
70
71
|
* color of text, icon and borders
|
|
71
72
|
*/
|
|
72
|
-
color: PropTypes.oneOf(
|
|
73
|
+
color: PropTypes.oneOf(COLORS_ICON),
|
|
73
74
|
/**
|
|
74
75
|
* Size
|
|
75
76
|
*/
|
|
76
|
-
size: PropTypes.oneOf(
|
|
77
|
+
size: PropTypes.oneOf(SIZES)
|
|
77
78
|
}
|
|
78
79
|
|
|
79
80
|
WorkspaceStaticIcon.defaultProps = {
|
|
@@ -25,6 +25,7 @@ import CircleExclamationIcon from './CircleExclamationIcon'
|
|
|
25
25
|
import CircleCheckMarkIcon from './CircleCheckMarkIcon'
|
|
26
26
|
import CircleCloseIcon from './CircleCloseIcon'
|
|
27
27
|
import CircleCloseHoverIcon from './CircleCloseHoverIcon'
|
|
28
|
+
import CircleFullIcon from './CircleFullIcon'
|
|
28
29
|
import CircleTwoArrowsDownIcon from './CircleTwoArrowsDownIcon'
|
|
29
30
|
import CircleTwoArrowsUpIcon from './CircleTwoArrowsUpIcon'
|
|
30
31
|
import CloseIcon from './CloseIcon'
|
|
@@ -88,6 +89,7 @@ export default {
|
|
|
88
89
|
CircleExclamationIcon,
|
|
89
90
|
CircleCloseIcon,
|
|
90
91
|
CircleCloseHoverIcon,
|
|
92
|
+
CircleFullIcon,
|
|
91
93
|
CircleTwoArrowsDownIcon,
|
|
92
94
|
CircleTwoArrowsUpIcon,
|
|
93
95
|
CloseIcon,
|
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
'use strict'
|
|
2
2
|
import BorderedBox from '../components/BorderedBox'
|
|
3
|
+
import { COLORS_BORDERED_BOX } from '../components/constants'
|
|
3
4
|
export default {
|
|
4
5
|
title: 'Platformatic/BorderedBox',
|
|
5
6
|
component: BorderedBox,
|
|
6
7
|
// More on argTypes: https://storybook.js.org/docs/react/api/argtypes
|
|
7
8
|
argTypes: {
|
|
8
9
|
color: {
|
|
9
|
-
options:
|
|
10
|
-
|
|
10
|
+
options: COLORS_BORDERED_BOX,
|
|
11
|
+
type: 'radio'
|
|
11
12
|
}
|
|
12
13
|
}
|
|
13
14
|
}
|
|
@@ -18,16 +19,15 @@ const Template = (args) => <BorderedBox {...args}>Hello Platformatic</BorderedBo
|
|
|
18
19
|
export const Green = Template.bind({})
|
|
19
20
|
|
|
20
21
|
Green.args = {
|
|
21
|
-
color: 'green'
|
|
22
|
+
color: 'main-green'
|
|
22
23
|
}
|
|
23
24
|
export const Red = Template.bind({})
|
|
24
25
|
|
|
25
26
|
Red.args = {
|
|
26
|
-
color: 'red'
|
|
27
|
+
color: 'error-red'
|
|
27
28
|
}
|
|
28
29
|
|
|
29
30
|
export const White = Template.bind({})
|
|
30
|
-
|
|
31
31
|
White.args = {
|
|
32
32
|
color: 'white'
|
|
33
33
|
}
|
|
@@ -2,8 +2,7 @@
|
|
|
2
2
|
import { faCheck } from '@fortawesome/free-solid-svg-icons'
|
|
3
3
|
import { useState } from 'react'
|
|
4
4
|
import Button from '../components/Button'
|
|
5
|
-
|
|
6
|
-
const colors = ['main-green', 'dark-green', 'light-green', 'main-dark-blue', 'dark-blue', 'light-blue', 'white', 'error-red', 'tertiary-blue', 'transparent']
|
|
5
|
+
import { COLORS_BUTTON, SIZES } from '../components/constants'
|
|
7
6
|
|
|
8
7
|
export default {
|
|
9
8
|
title: 'Platformatic/Button',
|
|
@@ -20,14 +19,14 @@ export default {
|
|
|
20
19
|
type: 'string',
|
|
21
20
|
control: {
|
|
22
21
|
type: 'radio',
|
|
23
|
-
options:
|
|
22
|
+
options: COLORS_BUTTON
|
|
24
23
|
}
|
|
25
24
|
},
|
|
26
25
|
color: {
|
|
27
26
|
type: 'string',
|
|
28
27
|
control: {
|
|
29
28
|
type: 'radio',
|
|
30
|
-
options:
|
|
29
|
+
options: COLORS_BUTTON
|
|
31
30
|
}
|
|
32
31
|
},
|
|
33
32
|
disabled: {
|
|
@@ -37,7 +36,7 @@ export default {
|
|
|
37
36
|
type: 'string',
|
|
38
37
|
control: {
|
|
39
38
|
type: 'radio',
|
|
40
|
-
options:
|
|
39
|
+
options: SIZES
|
|
41
40
|
}
|
|
42
41
|
},
|
|
43
42
|
hoverEffect: {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict'
|
|
2
|
-
import { faStop, faRefresh } from '@fortawesome/free-solid-svg-icons'
|
|
3
2
|
import ButtonFullRounded from '../components/ButtonFullRounded'
|
|
3
|
+
import { COLORS_ICON, SIZES } from '../components/constants'
|
|
4
4
|
|
|
5
5
|
export default {
|
|
6
6
|
title: 'Platformatic/ButtonFullRounded',
|
|
@@ -17,14 +17,14 @@ export default {
|
|
|
17
17
|
type: 'string',
|
|
18
18
|
control: {
|
|
19
19
|
type: 'radio',
|
|
20
|
-
options: [
|
|
20
|
+
options: [COLORS_ICON]
|
|
21
21
|
}
|
|
22
22
|
},
|
|
23
23
|
size: {
|
|
24
24
|
type: 'string',
|
|
25
25
|
control: {
|
|
26
26
|
type: 'radio',
|
|
27
|
-
options: [
|
|
27
|
+
options: [SIZES]
|
|
28
28
|
}
|
|
29
29
|
}
|
|
30
30
|
}
|
|
@@ -34,28 +34,28 @@ const Template = (args) => <ButtonFullRounded {...args} />
|
|
|
34
34
|
|
|
35
35
|
export const WhiteLarge = Template.bind({})
|
|
36
36
|
WhiteLarge.args = {
|
|
37
|
-
|
|
38
|
-
|
|
37
|
+
iconName: 'PlayIcon',
|
|
38
|
+
iconSize: 'large'
|
|
39
39
|
}
|
|
40
40
|
|
|
41
41
|
export const GreenSmall = Template.bind({})
|
|
42
42
|
GreenSmall.args = {
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
43
|
+
iconName: 'StopIcon',
|
|
44
|
+
iconColor: 'main-green',
|
|
45
|
+
iconSize: 'small'
|
|
46
46
|
}
|
|
47
47
|
|
|
48
48
|
export const Disabled = Template.bind({})
|
|
49
49
|
|
|
50
50
|
Disabled.args = {
|
|
51
|
-
|
|
51
|
+
iconName: 'BellIcon',
|
|
52
52
|
disabled: true
|
|
53
53
|
}
|
|
54
54
|
|
|
55
55
|
export const DisabledRed = Template.bind({})
|
|
56
56
|
|
|
57
57
|
DisabledRed.args = {
|
|
58
|
-
|
|
59
|
-
|
|
58
|
+
iconName: 'StopIcon',
|
|
59
|
+
iconColor: 'error-red',
|
|
60
60
|
disabled: true
|
|
61
61
|
}
|
|
@@ -28,7 +28,6 @@ InfoBoxSample.args = {
|
|
|
28
28
|
buttonProps: {
|
|
29
29
|
label: 'Sample button',
|
|
30
30
|
backgroundColor: 'main-green',
|
|
31
|
-
color: 'red',
|
|
32
31
|
onClick: () => alert('Clicked InfoBoxSample')
|
|
33
32
|
}
|
|
34
33
|
}
|
|
@@ -48,7 +47,7 @@ InfoBoxContained.args = {
|
|
|
48
47
|
export const InfoBoxErrorContained = ContainedTemplate.bind({})
|
|
49
48
|
InfoBoxErrorContained.args = {
|
|
50
49
|
iconName: 'WorkspaceFailIcon',
|
|
51
|
-
iconColor: 'red',
|
|
50
|
+
iconColor: 'error-red',
|
|
52
51
|
helpText: 'Write your own content',
|
|
53
52
|
buttonProps: {
|
|
54
53
|
label: 'Sample button',
|
|
@@ -25,7 +25,7 @@ const Template = (args) => {
|
|
|
25
25
|
<main>
|
|
26
26
|
<BorderedBox>This Is another Content</BorderedBox>
|
|
27
27
|
<ContentThatLoads />
|
|
28
|
-
<Button color='green' buttonClass='primary' onClick={() => setIsOpen(true)} label='Open Modal' />
|
|
28
|
+
<Button color='main-green' buttonClass='primary' onClick={() => setIsOpen(true)} label='Open Modal' />
|
|
29
29
|
{isOpen && <Modal setIsOpen={setIsOpen} {...rest}>{text}</Modal>}
|
|
30
30
|
</main>
|
|
31
31
|
)
|
|
@@ -37,7 +37,7 @@ const TemplateInvite = (args) => {
|
|
|
37
37
|
<main>
|
|
38
38
|
<BorderedBox>This Is another Content</BorderedBox>
|
|
39
39
|
<ContentThatLoads />
|
|
40
|
-
<Button color='green' buttonClass='primary' onClick={() => setIsOpen(true)} label='Open Modal' />
|
|
40
|
+
<Button color='main-green' buttonClass='primary' onClick={() => setIsOpen(true)} label='Open Modal' />
|
|
41
41
|
{isOpen && <Modal setIsOpen={setIsOpen} {...args}><p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed</p><Button buttonClass='primary' onClick={() => setIsOpen(false)} label='Discard invite' /></Modal>}
|
|
42
42
|
</main>
|
|
43
43
|
)
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import React from 'react'
|
|
2
2
|
import PlatformaticIcon from '../components/PlatformaticIcon'
|
|
3
3
|
import Icons from '../components/icons'
|
|
4
|
-
|
|
5
|
-
const colors = ['green', 'white', 'red', 'main-dark-blue']
|
|
4
|
+
import { COLORS_ICON } from '../components/constants'
|
|
6
5
|
|
|
7
6
|
const divStyle = {
|
|
8
7
|
width: '100%'
|
|
@@ -32,7 +31,7 @@ export default {
|
|
|
32
31
|
type: 'string',
|
|
33
32
|
control: {
|
|
34
33
|
type: 'radio',
|
|
35
|
-
options:
|
|
34
|
+
options: COLORS_ICON
|
|
36
35
|
}
|
|
37
36
|
},
|
|
38
37
|
size: {
|
|
@@ -19,13 +19,13 @@ White.args = {
|
|
|
19
19
|
export const Green = Template.bind({})
|
|
20
20
|
|
|
21
21
|
Green.args = {
|
|
22
|
-
color: 'green',
|
|
22
|
+
color: 'main-green',
|
|
23
23
|
status: 'online'
|
|
24
24
|
}
|
|
25
25
|
|
|
26
26
|
export const Red = Template.bind({})
|
|
27
27
|
|
|
28
28
|
Red.args = {
|
|
29
|
-
color: 'red',
|
|
29
|
+
color: 'error-red',
|
|
30
30
|
status: 'offline'
|
|
31
31
|
}
|
|
@@ -5,6 +5,7 @@ import CircleCloseIcon from '../../components/icons/CircleCloseIcon'
|
|
|
5
5
|
import WorkspaceStaticIcon from '../../components/icons/WorkspaceStaticIcon'
|
|
6
6
|
import UpgradeIcon from '../../components/icons/UpgradeIcon'
|
|
7
7
|
import WorkspaceDynamicIcon from '../../components/icons/WorkspaceDynamicIcon'
|
|
8
|
+
import { COLORS_ICON } from '../../components/constants'
|
|
8
9
|
|
|
9
10
|
const divStyle = {
|
|
10
11
|
display: 'flex',
|
|
@@ -29,7 +30,7 @@ export default {
|
|
|
29
30
|
type: 'string',
|
|
30
31
|
control: {
|
|
31
32
|
type: 'radio',
|
|
32
|
-
options: [
|
|
33
|
+
options: [COLORS_ICON]
|
|
33
34
|
}
|
|
34
35
|
}
|
|
35
36
|
}
|
|
@@ -51,9 +52,9 @@ const WorkspaceIconsTemplate = () => (
|
|
|
51
52
|
[<WorkspaceStaticIcon key='a' />, <WorkspaceDynamicIcon key='b' />].map((component, index) => {
|
|
52
53
|
const listElement = []
|
|
53
54
|
listElement.push(React.cloneElement(component, { key: `0${index}` }))
|
|
54
|
-
listElement.push(React.cloneElement(component, { key: `1${index}`, size: 'small', color: 'green' }))
|
|
55
|
-
listElement.push(React.cloneElement(component, { key: `2${index}`, color: 'red' }))
|
|
56
|
-
listElement.push(React.cloneElement(component, { key: `3${index}`, size: 'small', color: 'red' }))
|
|
55
|
+
listElement.push(React.cloneElement(component, { key: `1${index}`, size: 'small', color: 'main-green' }))
|
|
56
|
+
listElement.push(React.cloneElement(component, { key: `2${index}`, color: 'error-red' }))
|
|
57
|
+
listElement.push(React.cloneElement(component, { key: `3${index}`, size: 'small', color: 'error-red' }))
|
|
57
58
|
listElement.push(React.cloneElement(component, { key: `4${index}`, color: 'main-dark-blue' }))
|
|
58
59
|
listElement.push(React.cloneElement(component, { key: `5${index}`, size: 'small', color: 'main-dark-blue' }))
|
|
59
60
|
return listElement
|
package/tailwind.config.cjs
CHANGED
|
@@ -12,14 +12,14 @@ module.exports = {
|
|
|
12
12
|
},
|
|
13
13
|
boxShadow: {
|
|
14
14
|
wrap: '0px 0px 20px rgba(0, 0, 0, 0.6)',
|
|
15
|
-
'main-green': '0px 0px
|
|
16
|
-
'dark-green': '0px 0px
|
|
17
|
-
'light-green': '0px 0px
|
|
18
|
-
'main-dark-blue': '0px 0px
|
|
19
|
-
'dark-blue': '0px 0px
|
|
20
|
-
'light-blue': '0px 0px
|
|
21
|
-
'error-red': '0px 0px
|
|
22
|
-
'tertiary-blue': '0px 0px
|
|
15
|
+
'main-green': '0px 0px 6px rgba(33, 250, 144, 0.5)',
|
|
16
|
+
'dark-green': '0px 0px 6px rgba(2, 120, 63, 1)',
|
|
17
|
+
'light-green': '0px 0px 6px rgba(33, 241, 144, 0.5)',
|
|
18
|
+
'main-dark-blue': '0px 0px 6px rgba(33, 250, 144, 0.5)',
|
|
19
|
+
'dark-blue': '0px 0px 6px rgba(0, 52, 79, 0.5)',
|
|
20
|
+
'light-blue': '0px 0px 6px rgba(233, 247, 255, 0.5)',
|
|
21
|
+
'error-red': '0px 0px 6px rgba(250, 33, 33, 0.5)',
|
|
22
|
+
'tertiary-blue': '0px 0px 6px rgba(37, 136, 228, 0.5)'
|
|
23
23
|
}
|
|
24
24
|
},
|
|
25
25
|
colors: {
|
|
@@ -32,7 +32,8 @@ module.exports = {
|
|
|
32
32
|
white: '#FFFFFF',
|
|
33
33
|
'error-red': '#FA2121',
|
|
34
34
|
'tertiary-blue': '#2588E4',
|
|
35
|
-
transparent: 'transparent'
|
|
35
|
+
transparent: 'transparent',
|
|
36
|
+
'warning-yellow': '#FEB928'
|
|
36
37
|
},
|
|
37
38
|
fontFamily: {
|
|
38
39
|
sans: ['Montserrat']
|
|
@@ -49,8 +50,7 @@ module.exports = {
|
|
|
49
50
|
}
|
|
50
51
|
},
|
|
51
52
|
safelist: [
|
|
52
|
-
'
|
|
53
|
-
'border-main-green',
|
|
53
|
+
'text-error-red',
|
|
54
54
|
'text-3xl',
|
|
55
55
|
'text-4xl',
|
|
56
56
|
'text-5xl',
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
._input_1k1s3_1{box-sizing:border-box;display:flex;height:2.5rem;width:100%;justify-content:space-between;border-radius:.375rem;border-width:1px;border-style:solid;--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}._onFocus_1k1s3_4{--tw-border-opacity: 1;border-color:rgb(33 250 144 / var(--tw-border-opacity))}._onBlur_1k1s3_7{--tw-border-opacity: 1;border-color:rgb(255 255 255 / var(--tw-border-opacity))}._fillGreen_1k1s3_10{fill:#21fa90}._fillWhite_1k1s3_13{fill:#fff}._input_1k1s3_1>input:focus{outline:2px solid transparent;outline-offset:2px}._title_1k1s3_19{padding-bottom:1rem;font-size:1.875rem;line-height:2.25rem;font-weight:600;--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}._bordered_x0n9t_1{box-sizing:border-box;border-radius:.375rem;border-width:1px;border-style:solid}._bordered--main-green_x0n9t_4{--tw-border-opacity: 1;border-color:rgb(33 250 144 / var(--tw-border-opacity))}._bordered--main-dark-blue_x0n9t_7{--tw-border-opacity: 1;border-color:rgb(0 40 61 / var(--tw-border-opacity))}._bordered--error-red_x0n9t_10{--tw-border-opacity: 1;border-color:rgb(250 33 33 / var(--tw-border-opacity))}._error-message_x0n9t_14{position:absolute;bottom:-1.25rem;padding-left:.5rem;padding-right:.5rem;font-size:.75rem;line-height:1rem;--tw-text-opacity: 1;color:rgb(250 33 33 / var(--tw-text-opacity))}._padded_x0n9t_18{padding:.625rem .5rem}._text--green_x0n9t_22{--tw-text-opacity: 1;color:rgb(33 250 144 / var(--tw-text-opacity))}._text--main-dark-blue_x0n9t_25{--tw-text-opacity: 1;color:rgb(0 40 61 / var(--tw-text-opacity))}._tabbed-container_16gar_1{--tw-bg-opacity: 1;background-color:rgb(0 40 61 / var(--tw-bg-opacity))}._tabs-header_16gar_5{margin-bottom:1rem;display:flex;height:2rem;justify-content:flex-start;text-transform:uppercase;letter-spacing:.25em;--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}._tabs-header_16gar_5:hover{cursor:pointer}._tab_16gar_1{margin-left:2rem;margin-right:2rem;min-width:105px;text-align:center;font-size:.875rem;line-height:1.25rem}._tab_16gar_1:first-child{margin-left:0}._tab_16gar_1:last-child{margin-right:0}._selected-tab_16gar_11{font-weight:700;--tw-text-opacity: 1;color:rgb(33 250 144 / var(--tw-text-opacity));text-decoration-line:underline;text-underline-offset:8px}._tabs-content_16gar_15{height:100vh}._borderedBox_zj4p6_1{flex:1 1 0%;row-gap:1rem;border-radius:.375rem;padding:1.25rem;--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}._background-color-dark-blue_zj4p6_4{--tw-bg-opacity: 1 !important;background-color:rgb(0 52 79 / var(--tw-bg-opacity))!important}._background-color-transparent_zj4p6_7{background-color:transparent}*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:currentColor}:before,:after{--tw-content: ""}html{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:Montserrat}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;font-weight:inherit;line-height:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,[type=button],[type=reset],[type=submit]{-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }.container{width:100%;margin-right:auto;margin-left:auto}@media (min-width: 640px){.container{max-width:640px}}@media (min-width: 768px){.container{max-width:768px}}@media (min-width: 1280px){.container{max-width:1280px}}@media (min-width: 1440px){.container{max-width:1440px}}@media (min-width: 1536px){.container{max-width:1536px}}.relative{position:relative}.m-3{margin:.75rem}.mx-auto{margin-left:auto;margin-right:auto}.my-5{margin-top:1.25rem;margin-bottom:1.25rem}.mr-3{margin-right:.75rem}.mr-2{margin-right:.5rem}.ml-4{margin-left:1rem}.mt-4{margin-top:1rem}.flex{display:flex}.h-screen{height:100vh}.grow{flex-grow:1}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.flex-col{flex-direction:column}.gap-10{gap:2.5rem}.gap-y-6{row-gap:1.5rem}.border{border-width:1px}.border-error-red{--tw-border-opacity: 1;border-color:rgb(250 33 33 / var(--tw-border-opacity))}.border-main-green{--tw-border-opacity: 1;border-color:rgb(33 250 144 / var(--tw-border-opacity))}.px-5{padding-left:1.25rem;padding-right:1.25rem}.text-3xl{font-size:1.875rem;line-height:2.25rem}.text-4xl{font-size:2.25rem;line-height:2.5rem}.text-5xl{font-size:3rem;line-height:1}.text-6xl{font-size:3.75rem;line-height:1}.text-2xl{font-size:1.5rem;line-height:2rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.font-bold{font-weight:700}.text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.text-main-green{--tw-text-opacity: 1;color:rgb(33 250 144 / var(--tw-text-opacity))}.text-error-red{--tw-text-opacity: 1;color:rgb(250 33 33 / var(--tw-text-opacity))}.text-dark-green{--tw-text-opacity: 1;color:rgb(2 120 63 / var(--tw-text-opacity))}.underline{text-decoration-line:underline}.blur{--tw-blur: blur(8px);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}@font-face{font-family:Montserrat;src:url(/assets/Montserrat-Regular.dcfe8df2.ttf) format("truetype");font-weight:400;font-style:normal}:root{--tw-bg-opacity: 1;background-color:rgb(0 40 61 / var(--tw-bg-opacity));font-family:Montserrat}a{--tw-text-opacity: 1;color:rgb(37 136 228 / var(--tw-text-opacity))}input{background-color:transparent}.hover\:cursor-pointer:hover{cursor:pointer}
|