@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
@@ -36,9 +36,9 @@ EmptySidebar.args = {
36
36
 
37
37
  const FullSidebarTemplate = (args) => {
38
38
  const [items, setItems] = useState([
39
- { iconName: 'StaticWorkspaceIcon', subTitle: 'Subtitle', title: 'a very very very very very long title 1' },
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: 'DynamicWorkspaceIcon' }
41
+ { title: 'Another Title', subTitle: 'Subtitle 3', iconName: 'WorkspaceDynamicIcon' }
42
42
  ])
43
43
  function onClickAdd () {
44
44
  const tmpItem = items.map(item => item)
@@ -77,7 +77,7 @@ IconBeforeAndAfter.args = {
77
77
  name: 'test',
78
78
  placeholder: 'Platformatic',
79
79
  beforeIcon: {
80
- iconName: 'CopyIcon',
80
+ iconName: 'CopyPasteIcon',
81
81
  color: 'main-dark-blue',
82
82
  size: 'small',
83
83
  onClick: () => { alert('clicked') }
@@ -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: 'StaticWorkspaceIcon',
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 TriangleExclamationIcon from '../../components/icons/TriangleExclamationIcon'
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 DynamicWorkspaceIcon from '../../components/icons/DynamicWorkspaceIcon'
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
- [<StaticWorkspaceIcon key='a' />, <DynamicWorkspaceIcon key='b' />].map((component, index) => {
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 = () => ([<CreatedWorkspaceIcon key='a' size='extra-large' />, <UpgradeIcon key='b' size='extra-large' />].map(component => component))
66
+ const LargeIconsTemplate = () => ([<UpgradeIcon key='b' size='extra-large' />].map(component => component))
73
67
  export const LargeIconsDefault = LargeIconsTemplate.bind({})
74
68
  LargeIconsDefault.args = {}
@@ -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
  }