@platformatic/ui-components 0.1.0
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/LICENSE +201 -0
- package/README.md +26 -0
- package/fonts/Montserrat/Montserrat-Italic-VariableFont_wght.ttf +0 -0
- package/fonts/Montserrat/Montserrat-VariableFont_wght.ttf +0 -0
- package/fonts/Montserrat/OFL.txt +93 -0
- package/fonts/Montserrat/README.txt +81 -0
- package/fonts/Montserrat/static/Montserrat-Black.ttf +0 -0
- package/fonts/Montserrat/static/Montserrat-BlackItalic.ttf +0 -0
- package/fonts/Montserrat/static/Montserrat-Bold.ttf +0 -0
- package/fonts/Montserrat/static/Montserrat-BoldItalic.ttf +0 -0
- package/fonts/Montserrat/static/Montserrat-ExtraBold.ttf +0 -0
- package/fonts/Montserrat/static/Montserrat-ExtraBoldItalic.ttf +0 -0
- package/fonts/Montserrat/static/Montserrat-ExtraLight.ttf +0 -0
- package/fonts/Montserrat/static/Montserrat-ExtraLightItalic.ttf +0 -0
- package/fonts/Montserrat/static/Montserrat-Italic.ttf +0 -0
- package/fonts/Montserrat/static/Montserrat-Light.ttf +0 -0
- package/fonts/Montserrat/static/Montserrat-LightItalic.ttf +0 -0
- package/fonts/Montserrat/static/Montserrat-Medium.ttf +0 -0
- package/fonts/Montserrat/static/Montserrat-MediumItalic.ttf +0 -0
- package/fonts/Montserrat/static/Montserrat-Regular.ttf +0 -0
- package/fonts/Montserrat/static/Montserrat-SemiBold.ttf +0 -0
- package/fonts/Montserrat/static/Montserrat-SemiBoldItalic.ttf +0 -0
- package/fonts/Montserrat/static/Montserrat-Thin.ttf +0 -0
- package/fonts/Montserrat/static/Montserrat-ThinItalic.ttf +0 -0
- package/index.html +12 -0
- package/index.js +28 -0
- package/package.json +48 -0
- package/postcss.config.cjs +8 -0
- package/public/api-icon-closed.svg +6 -0
- package/public/api-icon.svg +9 -0
- package/public/vite.svg +1 -0
- package/src/App.jsx +12 -0
- package/src/components/Api/Endpoints.jsx +14 -0
- package/src/components/Api/Footer.jsx +24 -0
- package/src/components/Api/Footer.module.css +3 -0
- package/src/components/Api/Status.jsx +19 -0
- package/src/components/Api/Version.jsx +8 -0
- package/src/components/Api.jsx +83 -0
- package/src/components/Api.module.css +11 -0
- package/src/components/ApiDetail.jsx +106 -0
- package/src/components/BorderedBox.jsx +15 -0
- package/src/components/BorderedBox.module.css +3 -0
- package/src/components/BorderedText.jsx +8 -0
- package/src/components/BorderedText.module.css +3 -0
- package/src/components/Common.module.css +7 -0
- package/src/components/HorizontalSeparator.jsx +5 -0
- package/src/components/Main.jsx +69 -0
- package/src/components/Playground.jsx +9 -0
- package/src/components/Pr.jsx +9 -0
- package/src/components/SearchBar.jsx +25 -0
- package/src/components/SearchBar.module.css +6 -0
- package/src/components/StatValue.jsx +16 -0
- package/src/components/StatView.jsx +47 -0
- package/src/components/StatsView.module.css +10 -0
- package/src/components/TabbedWindow.jsx +34 -0
- package/src/components/TabbedWindow.module.css +10 -0
- package/src/components/Versions.jsx +9 -0
- package/src/components/VerticalSeparator.jsx +5 -0
- package/src/components/layouts/Layout.jsx +10 -0
- package/src/components/layouts/TwoColumnsLayout.jsx +9 -0
- package/src/lib/utils.js +20 -0
- package/src/main.jsx +9 -0
- package/src/stories/BorderedBox.stories.jsx +19 -0
- package/src/stories/Button.jsx +50 -0
- package/src/stories/Button.stories.jsx +40 -0
- package/src/stories/Header.jsx +57 -0
- package/src/stories/Header.stories.jsx +24 -0
- package/src/stories/Introduction.stories.mdx +211 -0
- package/src/stories/Page.jsx +69 -0
- package/src/stories/Page.stories.jsx +25 -0
- package/src/stories/assets/code-brackets.svg +1 -0
- package/src/stories/assets/colors.svg +1 -0
- package/src/stories/assets/comments.svg +1 -0
- package/src/stories/assets/direction.svg +1 -0
- package/src/stories/assets/flow.svg +1 -0
- package/src/stories/assets/plugin.svg +1 -0
- package/src/stories/assets/repo.svg +1 -0
- package/src/stories/assets/stackalt.svg +1 -0
- package/src/stories/button.css +30 -0
- package/src/stories/header.css +32 -0
- package/src/stories/page.css +69 -0
- package/src/styles/main.css +22 -0
- package/tailwind.config.cjs +27 -0
- package/vite.config.js +15 -0
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/** @type {import('tailwindcss').Config} */
|
|
2
|
+
module.exports = {
|
|
3
|
+
content: ['./src/**/*.{html,jsx}'],
|
|
4
|
+
theme: {
|
|
5
|
+
container: {
|
|
6
|
+
center: true
|
|
7
|
+
},
|
|
8
|
+
extend: {},
|
|
9
|
+
colors: {
|
|
10
|
+
'main-green': '#21FA90',
|
|
11
|
+
'dark-green': '#02783F',
|
|
12
|
+
'main-dark-blue': '#00283D',
|
|
13
|
+
'dark-blue': '#00344F',
|
|
14
|
+
white: '#FFFFFF',
|
|
15
|
+
'error-red': '#FA2121',
|
|
16
|
+
'tertiary-blue': '#2588E4'
|
|
17
|
+
},
|
|
18
|
+
fontFamily: {
|
|
19
|
+
sans: ['Montserrat']
|
|
20
|
+
}
|
|
21
|
+
},
|
|
22
|
+
safelist: [
|
|
23
|
+
'border-error-red',
|
|
24
|
+
'border-main-green'
|
|
25
|
+
],
|
|
26
|
+
plugins: []
|
|
27
|
+
}
|
package/vite.config.js
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { defineConfig } from 'vite'
|
|
2
|
+
import react from '@vitejs/plugin-react'
|
|
3
|
+
/** @type {import('vite').UserConfig} */
|
|
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
|
+
}
|
|
15
|
+
})
|