commit 2ddefb9be35f21e3c3136a13524b553a39d28c30 Author: AntoXa PRO Date: Tue Jul 11 10:38:21 2023 +0300 init diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..91a3983 --- /dev/null +++ b/.gitignore @@ -0,0 +1,3 @@ +dist +node_modules +package-lock.json diff --git a/.prettierrc b/.prettierrc new file mode 100644 index 0000000..cdda34f --- /dev/null +++ b/.prettierrc @@ -0,0 +1,9 @@ +{ + "useTabs": true, + "tabWidth": 2, + "singleQuote": true, + "semi": false, + "trailingComma": "none", + "arrowParens": "avoid", + "printWidth": 79 +} diff --git a/package.json b/package.json new file mode 100644 index 0000000..8a4752a --- /dev/null +++ b/package.json @@ -0,0 +1,48 @@ +{ + "name": "axp-ui", + "descriiption": "My helper ui lib", + "version": "1.5.16", + "homepage": "https://antoxahub.ru/antoxa/axp-ui", + "repository": { + "type": "git", + "url": "https://antoxahub.ru/antoxa/axp-ui.git" + }, + "module": "./dist/index.js", + "exports": { + ".": { + "import": "./dist/index.js" + }, + "./styles/": [ + "./src/css/" + ], + "./tailwind.config": "./tailwind.config.ts" + }, + "types": "./dist/index.d.ts", + "files": [ + "dist", + "tsconfig.json", + "tailwind.config.ts", + "src/css" + ], + "scripts": { + "build": "rollup -c --configPlugin rollup-plugin-typescript2", + "prepare": "npm run build" + }, + "dependencies": { + "axp-ts": "^1.9.6", + "rollup-plugin-typescript": "^1.0.1", + "vue": "^3.3.4" + }, + "devDependencies": { + "autoprefixer": "^10.4.14", + "postcss": "^8.4.25", + "prettier": "^2.8.8", + "rollup": "^3.26.2", + "rollup-plugin-sass": "^1.12.19", + "rollup-plugin-typescript2": "^0.34.1", + "rollup-plugin-vue": "^6.0.0", + "sass": "^1.63.6", + "tailwindcss": "^3.3.2", + "tslib": "^2.6.0" + } +} diff --git a/rollup.config.ts b/rollup.config.ts new file mode 100644 index 0000000..add4525 --- /dev/null +++ b/rollup.config.ts @@ -0,0 +1,15 @@ +import { defineConfig } from 'rollup' + +import ts from 'rollup-plugin-typescript2' +import vue from 'rollup-plugin-vue' +import sass from 'rollup-plugin-sass' + +export default defineConfig({ + input: 'src/index.ts', + output: { + format: 'esm', + dir: 'dist' + }, + plugins: [ts(), vue(), sass()], + external: ['vue', 'axp-ts'], +}) diff --git a/src/components/Alert.vue b/src/components/Alert.vue new file mode 100644 index 0000000..a748f3f --- /dev/null +++ b/src/components/Alert.vue @@ -0,0 +1,13 @@ + + + diff --git a/src/components/Btn.vue b/src/components/Btn.vue new file mode 100644 index 0000000..f92f85b --- /dev/null +++ b/src/components/Btn.vue @@ -0,0 +1,27 @@ + + + diff --git a/src/components/Field.vue b/src/components/Field.vue new file mode 100644 index 0000000..d2056ca --- /dev/null +++ b/src/components/Field.vue @@ -0,0 +1,84 @@ + + +