@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.
- package/dist/api-icon-closed.svg +6 -0
- package/dist/api-icon.svg +9 -0
- package/dist/assets/Montserrat-Regular.dcfe8df2.ttf +0 -0
- package/dist/assets/index.691ca940.css +1 -0
- package/dist/assets/index.ff0dadfc.js +797 -0
- package/dist/index.html +14 -0
- package/dist/stats.html +6177 -0
- package/dist/vite.svg +1 -0
- package/package.json +1 -1
- package/src/components/DropDown.jsx +3 -4
- package/src/components/DropDown.module.css +0 -2
- package/src/components/Modal.jsx +1 -1
- package/src/components/Sidebar.jsx +3 -5
- package/src/components/Sidebar.module.css +8 -4
- package/src/components/forms/Preview.jsx +1 -1
- package/src/components/icons/AddIcon.jsx +78 -0
- package/src/components/icons/AlertIcon.jsx +81 -0
- package/src/components/icons/AllInOneIcon.jsx +111 -0
- package/src/components/icons/ApiCloudIcon.jsx +93 -0
- package/src/components/icons/ApiIcon.jsx +83 -28
- package/src/components/icons/AppIcon.jsx +84 -37
- package/src/components/icons/ArrowDownFullIcon.jsx +76 -0
- package/src/components/icons/ArrowDownIcon.jsx +75 -0
- package/src/components/icons/ArrowLeftIcon.jsx +75 -0
- package/src/components/icons/ArrowRightIcon.jsx +75 -0
- package/src/components/icons/ArrowUpIcon.jsx +75 -0
- package/src/components/icons/Calendar1DayIcon.jsx +90 -0
- package/src/components/icons/Calendar7DaysIcon.jsx +88 -0
- package/src/components/icons/CalendarIcon.jsx +75 -29
- package/src/components/icons/CircleAddIcon.jsx +58 -17
- package/src/components/icons/CloseIcon.jsx +73 -25
- package/src/components/icons/CopyPasteIcon.jsx +81 -0
- package/src/components/icons/DatabaseIcon.jsx +81 -0
- package/src/components/icons/EditIcon.jsx +63 -20
- package/src/components/icons/GearIcon.jsx +67 -29
- package/src/components/icons/Icons.module.css +17 -0
- package/src/components/icons/Users2Icon.jsx +84 -0
- package/src/components/icons/WorkspaceDynamicIcon.jsx +87 -0
- package/src/components/icons/WorkspaceReadyIcon.jsx +144 -0
- package/src/components/icons/WorkspaceStaticIcon.jsx +84 -0
- package/src/components/icons/index.js +35 -15
- package/src/stories/PlatformaticIcon.stories.jsx +7 -1
- package/src/stories/Sidebar.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 +4 -10
- package/src/styles/main.css +8 -1
- package/dist/main.css +0 -704
- package/src/components/icons/Calendar1Icon.jsx +0 -54
- package/src/components/icons/Calendar7Icon.jsx +0 -55
- package/src/components/icons/CopyIcon.jsx +0 -75
- package/src/components/icons/CreatedWorkspaceIcon.jsx +0 -70
- package/src/components/icons/DynamicWorkspaceIcon.jsx +0 -125
- package/src/components/icons/StaticWorkspaceIcon.jsx +0 -119
- package/src/components/icons/TriangleExclamationIcon.jsx +0 -26
|
@@ -36,9 +36,9 @@ EmptySidebar.args = {
|
|
|
36
36
|
|
|
37
37
|
const FullSidebarTemplate = (args) => {
|
|
38
38
|
const [items, setItems] = useState([
|
|
39
|
-
{ iconName: '
|
|
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: '
|
|
41
|
+
{ title: 'Another Title', subTitle: 'Subtitle 3', iconName: 'WorkspaceDynamicIcon' }
|
|
42
42
|
])
|
|
43
43
|
function onClickAdd () {
|
|
44
44
|
const tmpItem = items.map(item => item)
|
|
@@ -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: '
|
|
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
|
|
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
|
|
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
|
-
[<
|
|
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 = () => ([<
|
|
66
|
+
const LargeIconsTemplate = () => ([<UpgradeIcon key='b' size='extra-large' />].map(component => component))
|
|
73
67
|
export const LargeIconsDefault = LargeIconsTemplate.bind({})
|
|
74
68
|
LargeIconsDefault.args = {}
|
package/src/styles/main.css
CHANGED
|
@@ -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
|
}
|