@platformatic/ui-components 0.1.1 → 0.1.3
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/main.css +2 -52
- package/package.json +3 -2
- package/src/components/Api/Endpoints.jsx +1 -1
- package/src/components/Api/Footer.jsx +1 -0
- package/src/components/Api/Status.jsx +1 -0
- package/src/components/Api/Version.jsx +1 -1
- package/src/components/Api.jsx +1 -1
- package/src/components/ApiDetail.jsx +2 -2
- package/src/components/BorderedBox.jsx +1 -0
- package/src/components/BorderedText.jsx +1 -1
- package/src/components/HorizontalSeparator.jsx +1 -1
- package/src/components/Main.jsx +1 -1
- package/src/components/Playground.jsx +1 -1
- package/src/components/Pr.jsx +1 -1
- package/src/components/SearchBar.jsx +1 -1
- package/src/components/StatValue.jsx +1 -1
- package/src/components/{StatView.jsx → StatsView.jsx} +1 -1
- package/src/components/StatsView.module.css +1 -1
- package/src/components/Versions.jsx +1 -1
- package/src/components/VerticalSeparator.jsx +1 -1
- package/src/components/layouts/Layout.jsx +1 -0
- package/src/components/layouts/TwoColumnsLayout.jsx +1 -1
- package/src/stories/BorderedBox.stories.jsx +5 -0
- package/vite.config.js +1 -10
package/dist/main.css
CHANGED
|
@@ -710,26 +710,14 @@ video {
|
|
|
710
710
|
color: rgb(250 33 33 / var(--tw-text-opacity));
|
|
711
711
|
}
|
|
712
712
|
|
|
713
|
-
/*
|
|
714
713
|
@font-face {
|
|
715
714
|
font-family: 'Montserrat';
|
|
716
|
-
src: local('Montserrat'), url(./fonts/Montserrat/static/Montserrat-Light.ttf) format('truetype');
|
|
717
|
-
font-weight: 300;
|
|
718
|
-
}
|
|
719
715
|
|
|
716
|
+
src: local('Montserrat'), url(./fonts/Montserrat/Montserrat-VariableFont_wght.ttf) format('truetype');
|
|
720
717
|
|
|
721
|
-
|
|
722
|
-
font-family: 'Montserrat';
|
|
723
|
-
src: local('Montserrat'), url(./fonts/Montserrat/static/Montserrat-Regular.ttf) format('truetype');
|
|
724
|
-
font-weight: 500;
|
|
718
|
+
font-weight: 100 900;
|
|
725
719
|
}
|
|
726
720
|
|
|
727
|
-
@font-face {
|
|
728
|
-
font-family: 'Montserrat';
|
|
729
|
-
src: local('Montserrat'), url(./fonts/Montserrat/static/Montserrat-Bold.ttf) format('truetype');
|
|
730
|
-
font-weight: 700;
|
|
731
|
-
} */
|
|
732
|
-
|
|
733
721
|
:root {
|
|
734
722
|
--tw-bg-opacity: 1;
|
|
735
723
|
background-color: rgb(0 40 61 / var(--tw-bg-opacity));
|
|
@@ -741,44 +729,6 @@ a {
|
|
|
741
729
|
color: rgb(37 136 228 / var(--tw-text-opacity));
|
|
742
730
|
}
|
|
743
731
|
|
|
744
|
-
.bordered {
|
|
745
|
-
box-sizing: border-box;
|
|
746
|
-
border-radius: 0.375rem;
|
|
747
|
-
border-width: 1px;
|
|
748
|
-
border-style: solid;
|
|
749
|
-
}
|
|
750
|
-
|
|
751
|
-
.api-footer {
|
|
752
|
-
margin-left: 2.25rem;
|
|
753
|
-
display: flex;
|
|
754
|
-
align-items: center;
|
|
755
|
-
justify-content: space-between;
|
|
756
|
-
gap: 0.5rem;
|
|
757
|
-
padding: 0.5rem;
|
|
758
|
-
padding-left: 1.25rem;
|
|
759
|
-
--tw-text-opacity: 1;
|
|
760
|
-
color: rgb(255 255 255 / var(--tw-text-opacity));
|
|
761
|
-
}
|
|
762
|
-
|
|
763
|
-
.api-status {
|
|
764
|
-
justify-self: end;
|
|
765
|
-
}
|
|
766
|
-
|
|
767
|
-
.bordered-box {
|
|
768
|
-
margin-bottom: 1rem;
|
|
769
|
-
flex: 1 1 0%;
|
|
770
|
-
row-gap: 1rem;
|
|
771
|
-
--tw-bg-opacity: 1;
|
|
772
|
-
background-color: rgb(0 52 79 / var(--tw-bg-opacity));
|
|
773
|
-
padding: 1.25rem;
|
|
774
|
-
--tw-text-opacity: 1;
|
|
775
|
-
color: rgb(255 255 255 / var(--tw-text-opacity));
|
|
776
|
-
box-sizing: border-box;
|
|
777
|
-
border-radius: 0.375rem;
|
|
778
|
-
border-width: 1px;
|
|
779
|
-
border-style: solid;
|
|
780
|
-
}
|
|
781
|
-
|
|
782
732
|
input {
|
|
783
733
|
background-color: transparent;
|
|
784
734
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@platformatic/ui-components",
|
|
3
3
|
"description": "Platformatic UI Components",
|
|
4
|
-
"version": "0.1.
|
|
4
|
+
"version": "0.1.3",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "Apache-2.0",
|
|
7
7
|
"scripts": {
|
|
@@ -10,7 +10,8 @@
|
|
|
10
10
|
"preview": "vite preview",
|
|
11
11
|
"storybook": "start-storybook -p 6006",
|
|
12
12
|
"build-storybook": "build-storybook",
|
|
13
|
-
"tailwind": "tailwindcss -i ./src/styles/main.css -o ./dist/main.css --watch",
|
|
13
|
+
"tailwind:watch": "tailwindcss -i ./src/styles/main.css -o ./dist/main.css --watch",
|
|
14
|
+
"tailwind": "tailwindcss -i ./src/styles/main.css -o ./dist/main.css",
|
|
14
15
|
"lint": "standard --fix"
|
|
15
16
|
},
|
|
16
17
|
"dependencies": {
|
|
@@ -4,6 +4,7 @@ import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'
|
|
|
4
4
|
import { faDatabase, faFileLines, faGear } from '@fortawesome/free-solid-svg-icons'
|
|
5
5
|
import BorderedText from '../BorderedText'
|
|
6
6
|
import styles from './Footer.module.css'
|
|
7
|
+
import React from 'react'
|
|
7
8
|
export default function ApiFooter (props) {
|
|
8
9
|
const { graphql, openapi } = props
|
|
9
10
|
return (
|
package/src/components/Api.jsx
CHANGED
|
@@ -9,7 +9,7 @@ import ApiStatus from './Api/Status'
|
|
|
9
9
|
import BorderedBox from './BorderedBox'
|
|
10
10
|
import HorizontalSeparator from './HorizontalSeparator'
|
|
11
11
|
import styles from './Api.module.css'
|
|
12
|
-
import { useState } from 'react'
|
|
12
|
+
import React, { useState } from 'react'
|
|
13
13
|
|
|
14
14
|
function ApiName (props) {
|
|
15
15
|
const { name } = props
|
|
@@ -5,9 +5,9 @@ import BorderedBox from './BorderedBox'
|
|
|
5
5
|
import BorderedText from './BorderedText'
|
|
6
6
|
import HorizontalSeparator from './HorizontalSeparator'
|
|
7
7
|
import TwoColumnsLayout from './layouts/TwoColumnsLayout'
|
|
8
|
-
import StatsView from './
|
|
8
|
+
import StatsView from './StatsView'
|
|
9
9
|
import VerticalSeparator from './VerticalSeparator'
|
|
10
|
-
|
|
10
|
+
import React from 'react'
|
|
11
11
|
export default function ApiDetails (props) {
|
|
12
12
|
const apiData = props.data
|
|
13
13
|
const { url, repository, version, openapi, graphql, source, lastDeploy } = apiData
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
import { getColor } from '../lib/utils'
|
|
4
4
|
import styles from './BorderedBox.module.css'
|
|
5
5
|
import commonStyles from './Common.module.css'
|
|
6
|
+
import React from 'react'
|
|
6
7
|
export default function BorderedBox (props) {
|
|
7
8
|
const { classes, color, children } = props
|
|
8
9
|
const borderColor = getColor('border', color)
|
package/src/components/Main.jsx
CHANGED
|
@@ -7,7 +7,7 @@ import TabbedWindow from './TabbedWindow'
|
|
|
7
7
|
import Prs from './Pr'
|
|
8
8
|
import Playground from './Playground'
|
|
9
9
|
import Versions from './Versions'
|
|
10
|
-
import { useState } from 'react'
|
|
10
|
+
import React, { useState } from 'react'
|
|
11
11
|
export default function Main () {
|
|
12
12
|
const [currentSearch, setCurrentSearch] = useState('')
|
|
13
13
|
const apis = [
|
package/src/components/Pr.jsx
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict'
|
|
2
|
+
import React, { useRef } from 'react'
|
|
2
3
|
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'
|
|
3
4
|
import { faSearch } from '@fortawesome/free-solid-svg-icons'
|
|
4
|
-
import { useRef } from 'react'
|
|
5
5
|
import styles from './SearchBar.module.css'
|
|
6
6
|
import commonStyles from './Common.module.css'
|
|
7
7
|
export default function SearchBar (props) {
|
|
@@ -6,7 +6,7 @@ import styles from './StatsView.module.css'
|
|
|
6
6
|
import HorizontalSeparator from './HorizontalSeparator'
|
|
7
7
|
import VerticalSeparator from './VerticalSeparator'
|
|
8
8
|
import StatValue from './StatValue'
|
|
9
|
-
|
|
9
|
+
import React from 'react'
|
|
10
10
|
export default function StatsView (props) {
|
|
11
11
|
const { title, stats } = props
|
|
12
12
|
const mainStat = stats.mainStat
|
package/vite.config.js
CHANGED
|
@@ -2,14 +2,5 @@ import { defineConfig } from 'vite'
|
|
|
2
2
|
import react from '@vitejs/plugin-react'
|
|
3
3
|
/** @type {import('vite').UserConfig} */
|
|
4
4
|
export default defineConfig({
|
|
5
|
-
plugins: [react()]
|
|
6
|
-
build: {
|
|
7
|
-
rollupOptions: {
|
|
8
|
-
output: {
|
|
9
|
-
assetFileNames: 'platformatic-ui.css',
|
|
10
|
-
chunkFileNames: 'platformatic-ui.js',
|
|
11
|
-
manualChunks: undefined
|
|
12
|
-
}
|
|
13
|
-
}
|
|
14
|
-
}
|
|
5
|
+
plugins: [react()]
|
|
15
6
|
})
|