@platformatic/ui-components 0.1.2 → 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/package.json +1 -1
- 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/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/package.json
CHANGED
|
@@ -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
|
})
|