Skip to content

Commit

Permalink
Merge pull request #52 from frappe/espresso
Browse files Browse the repository at this point in the history
  • Loading branch information
netchampfaris authored Aug 23, 2023
2 parents cc59cff + 14597d6 commit 2a85f7b
Show file tree
Hide file tree
Showing 106 changed files with 11,093 additions and 1,798 deletions.
26 changes: 25 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,28 @@
.DS_Store
node_modules
docs/.vitepress/.temp
docs/.vitepress/dist
docs/.vitepress/dist
storybook-static

# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
pnpm-debug.log*
lerna-debug.log*

dist
dist-ssr
*.local

# Editor directories and files
.vscode/*
!.vscode/extensions.json
.idea
*.suo
*.ntvs*
*.njsproj
*.sln
*.sw?
6 changes: 6 additions & 0 deletions .postcssrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
module.exports = {
plugins: {
tailwindcss: {},
autoprefixer: {},
},
}
17 changes: 17 additions & 0 deletions .storybook/main.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
/** @type { import('@storybook/vue3-vite').StorybookConfig } */
const config = {
stories: ['../src/**/*.mdx', '../src/**/*.stories.@(js|jsx|ts|tsx)'],
addons: [
'@storybook/addon-links',
'@storybook/addon-essentials',
'@storybook/addon-interactions',
],
framework: {
name: '@storybook/vue3-vite',
options: {},
},
docs: {
autodocs: 'tag',
},
}
export default config
3 changes: 3 additions & 0 deletions .storybook/preview-head.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
<script>
window.global = window;
</script>
24 changes: 24 additions & 0 deletions .storybook/preview.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
import '../src/style.css'

/** @type { import('@storybook/vue3').Preview } */
const preview = {
parameters: {
layout: 'centered',
backgrounds: {
default: 'white',
values: [
{ name: 'white', value: '#ffffff' },
{ name: 'black', value: '#000000' },
],
},
actions: { argTypesRegex: '^on[A-Z].*' },
controls: {
matchers: {
color: /(background|color)$/i,
date: /Date$/,
},
},
},
}

export default preview
7 changes: 7 additions & 0 deletions App.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<script setup>
import { Badge } from './src'
</script>

<template>
<Badge> Gamma </Badge>
</template>
13 changes: 13 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Frappe UI</title>
</head>
<body>
<div id="app"></div>
<script type="module" src="/main.js"></script>
</body>
</html>
5 changes: 5 additions & 0 deletions main.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import { createApp } from 'vue'
import './src/style.css'
import App from './App.vue'

createApp(App).mount('#app')
3 changes: 3 additions & 0 deletions netlify.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[build]
publish = "storybook-static"
command = "yarn build-storybook"
75 changes: 49 additions & 26 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "frappe-ui",
"version": "0.0.112",
"version": "0.1.0-alpha.14",
"description": "A set of components and utilities for rapid UI development",
"main": "./src/index.js",
"scripts": {
Expand All @@ -10,10 +10,16 @@
"bump-and-release": "git pull --rebase origin main && yarn version --patch && git push && git push --tags",
"docs:dev": "vitepress dev docs",
"docs:build": "vitepress build docs",
"docs:serve": "vitepress serve docs"
"docs:serve": "vitepress serve docs",
"dev": "vite",
"build": "vite build",
"preview": "vite preview",
"storybook": "storybook dev -p 6006",
"build-storybook": "storybook build"
},
"files": [
"src"
"src",
"vite.js"
],
"repository": {
"type": "git",
Expand All @@ -22,45 +28,62 @@
"author": "Frappe Technologies Pvt. Ltd.",
"license": "MIT",
"dependencies": {
"@headlessui/vue": "^1.5.0",
"@headlessui/vue": "^1.7.14",
"@popperjs/core": "^2.11.2",
"@tailwindcss/forms": "^0.5.3",
"@tailwindcss/typography": "^0.5.0",
"@tiptap/extension-color": "^2.0.0-beta.205",
"@tiptap/extension-highlight": "^2.0.0-beta.205",
"@tiptap/extension-image": "^2.0.0-beta.205",
"@tiptap/extension-link": "^2.0.0-beta.205",
"@tiptap/extension-mention": "^2.0.0-beta.205",
"@tiptap/extension-placeholder": "^2.0.0-beta.205",
"@tiptap/extension-table": "^2.0.0-beta.205",
"@tiptap/extension-table-cell": "^2.0.0-beta.205",
"@tiptap/extension-table-header": "^2.0.0-beta.205",
"@tiptap/extension-table-row": "^2.0.0-beta.205",
"@tiptap/extension-text-align": "^2.0.0-beta.205",
"@tiptap/extension-text-style": "^2.0.0-beta.205",
"@tiptap/extension-typography": "^2.0.0-beta.205",
"@tiptap/pm": "^2.0.0-beta.220",
"@tiptap/prosemirror-tables": "^1.1.3",
"@tiptap/starter-kit": "^2.0.0-beta.205",
"@tiptap/suggestion": "^2.0.0-beta.205",
"@tiptap/vue-3": "^2.0.0-beta.205",
"autoprefixer": "^10.4.2",
"@tiptap/extension-color": "^2.0.3",
"@tiptap/extension-highlight": "^2.0.3",
"@tiptap/extension-image": "^2.0.3",
"@tiptap/extension-link": "^2.0.3",
"@tiptap/extension-mention": "^2.0.3",
"@tiptap/extension-placeholder": "^2.0.3",
"@tiptap/extension-table": "^2.0.3",
"@tiptap/extension-table-cell": "^2.0.3",
"@tiptap/extension-table-header": "^2.0.3",
"@tiptap/extension-table-row": "^2.0.3",
"@tiptap/extension-text-align": "^2.0.3",
"@tiptap/extension-text-style": "^2.0.3",
"@tiptap/extension-typography": "^2.0.3",
"@tiptap/pm": "^2.0.3",
"@tiptap/starter-kit": "^2.0.3",
"@tiptap/suggestion": "^2.0.3",
"@tiptap/vue-3": "^2.0.3",
"feather-icons": "^4.28.0",
"idb-keyval": "^6.2.0",
"postcss": "^8.4.5",
"showdown": "^2.1.0",
"socket.io-client": "^4.5.1",
"tailwindcss": "^3.0.12",
"tippy.js": "^6.3.7"
},
"peerDependencies": {
"vue": "^3.2.45",
"vue-router": "^4.1.6"
},
"devDependencies": {
"@storybook/addon-essentials": "^7.0.0-beta.61",
"@storybook/addon-interactions": "^7.0.0-beta.61",
"@storybook/addon-links": "^7.0.0-beta.61",
"@storybook/blocks": "^7.0.0-alpha.8",
"@storybook/testing-library": "^0.0.14-next.1",
"@storybook/vue3": "^7.0.0-beta.61",
"@storybook/vue3-vite": "^7.0.0-beta.61",
"@vitejs/plugin-vue": "^4.0.0",
"autoprefixer": "^10.4.13",
"cross-fetch": "^3.1.5",
"husky": ">=6",
"lint-staged": ">=10",
"postcss": "^8.4.21",
"prettier": "2.7.1",
"prettier-plugin-tailwindcss": "^0.1.13",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"storybook": "^7.0.0-beta.61",
"tailwindcss": "^3.2.7",
"typescript": "^5.0.2",
"vite": "^4.1.0",
"vitepress": "^1.0.0-alpha.29",
"vue": "^3.2.45"
"vue": "^3.2.45",
"vue-router": "^4.1.6"
},
"lint-staged": {
"*.{js,css,md,vue}": "prettier --write"
Expand Down
Loading

0 comments on commit 2a85f7b

Please sign in to comment.