From 2ddefb9be35f21e3c3136a13524b553a39d28c30 Mon Sep 17 00:00:00 2001 From: AntoXa PRO Date: Tue, 11 Jul 2023 10:38:21 +0300 Subject: [PATCH] init --- .gitignore | 3 + .prettierrc | 9 ++ package.json | 48 ++++++++++ rollup.config.ts | 15 +++ src/components/Alert.vue | 13 +++ src/components/Btn.vue | 27 ++++++ src/components/Field.vue | 84 +++++++++++++++++ src/components/FieldCheckbox.vue | 26 ++++++ src/components/FieldDate.vue | 32 +++++++ src/components/FieldNumber.vue | 7 ++ src/components/FieldPassword.vue | 7 ++ src/components/FieldPhone.vue | 22 +++++ src/components/FieldSelect.vue | 25 +++++ src/components/FieldSelectGender.vue | 19 ++++ src/components/FieldText.vue | 7 ++ src/components/FieldTextArea.vue | 7 ++ src/components/Form.vue | 132 +++++++++++++++++++++++++++ src/components/Icon.vue | 104 +++++++++++++++++++++ src/components/index.ts | 14 +++ src/css/common.sass | 64 +++++++++++++ src/css/theme.sass | 30 ++++++ src/index.ts | 1 + src/types/vueshim.d.ts | 5 + tailwind.config.ts | 31 +++++++ tsconfig.json | 15 +++ 25 files changed, 747 insertions(+) create mode 100644 .gitignore create mode 100644 .prettierrc create mode 100644 package.json create mode 100644 rollup.config.ts create mode 100644 src/components/Alert.vue create mode 100644 src/components/Btn.vue create mode 100644 src/components/Field.vue create mode 100644 src/components/FieldCheckbox.vue create mode 100644 src/components/FieldDate.vue create mode 100644 src/components/FieldNumber.vue create mode 100644 src/components/FieldPassword.vue create mode 100644 src/components/FieldPhone.vue create mode 100644 src/components/FieldSelect.vue create mode 100644 src/components/FieldSelectGender.vue create mode 100644 src/components/FieldText.vue create mode 100644 src/components/FieldTextArea.vue create mode 100644 src/components/Form.vue create mode 100644 src/components/Icon.vue create mode 100644 src/components/index.ts create mode 100644 src/css/common.sass create mode 100644 src/css/theme.sass create mode 100644 src/index.ts create mode 100644 src/types/vueshim.d.ts create mode 100644 tailwind.config.ts create mode 100644 tsconfig.json 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 @@ + + +