@robuust-digital/vue-components 1.2.9 β 1.3.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/dist/nuxt-module.js +1 -0
- package/dist/style.css +1 -1
- package/dist/tailwind/base/index.js +1 -0
- package/dist/tailwind/components/combobox.js +2 -0
- package/dist/tailwind/components/dropdown.js +12 -0
- package/dist/tailwind/components/input.js +2 -0
- package/dist/tailwind/components/rich-text.js +100 -0
- package/dist/tailwind/components/select.js +2 -0
- package/dist/tailwind/components/textarea.js +2 -0
- package/dist/tailwind/components/tooltip.js +9 -1
- package/dist/tailwind/index.js +3 -0
- package/dist/vue-components.es.js +1363 -4440
- package/package.json +18 -35
- package/LICENSE +0 -21
- package/README.md +0 -107
- package/dist/favicon.ico +0 -0
- package/dist/vue-components.umd.js +0 -7
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@robuust-digital/vue-components",
|
|
3
|
-
"version": "1.2.9",
|
|
4
3
|
"type": "module",
|
|
5
|
-
"
|
|
4
|
+
"version": "1.3.0",
|
|
5
|
+
"description": "A modern and customizable component library built with **Vue 3** and **Tailwind CSS**.",
|
|
6
6
|
"directories": {
|
|
7
7
|
"doc": "docs",
|
|
8
8
|
"test": "tests"
|
|
@@ -17,8 +17,8 @@
|
|
|
17
17
|
"url": "https://github.com/robuust/vue-components/issues"
|
|
18
18
|
},
|
|
19
19
|
"homepage": "https://github.com/robuust/vue-components#readme",
|
|
20
|
-
"main": "dist/vue-components.
|
|
21
|
-
"module": "dist/vue-components.es.js",
|
|
20
|
+
"main": "./dist/vue-components.es.js",
|
|
21
|
+
"module": "./dist/vue-components.es.js",
|
|
22
22
|
"files": [
|
|
23
23
|
"dist",
|
|
24
24
|
"README.md",
|
|
@@ -26,57 +26,40 @@
|
|
|
26
26
|
],
|
|
27
27
|
"exports": {
|
|
28
28
|
".": {
|
|
29
|
-
"import": "./dist/vue-components.es.js"
|
|
30
|
-
"require": "./dist/vue-components.umd.js"
|
|
29
|
+
"import": "./dist/vue-components.es.js"
|
|
31
30
|
},
|
|
32
31
|
"./tailwind": "./dist/tailwind/index.js",
|
|
33
32
|
"./nuxt": "./dist/nuxt-module.js",
|
|
34
33
|
"./css": "./dist/style.css"
|
|
35
34
|
},
|
|
36
35
|
"scripts": {
|
|
37
|
-
"dev": "nodemon --watch 'tailwind.config.js' --exec 'vite --host'",
|
|
38
36
|
"build": "vite build",
|
|
39
|
-
"
|
|
40
|
-
"test:unit": "vitest run",
|
|
41
|
-
"lint": "eslint . --fix",
|
|
42
|
-
"docs:dev": "vitepress dev docs --host",
|
|
43
|
-
"docs:build": "vitepress build docs",
|
|
44
|
-
"docs:preview": "vitepress preview docs"
|
|
37
|
+
"test:unit": "vitest run"
|
|
45
38
|
},
|
|
46
39
|
"dependencies": {
|
|
47
|
-
"@floating-ui/vue": "^1.1.5",
|
|
48
|
-
"@headlessui/vue": "^1.7.23",
|
|
49
40
|
"@heroicons/vue": "^2.1.5",
|
|
50
|
-
"@nuxt/kit": "^3.13.2",
|
|
51
41
|
"@vueuse/core": "^12.3.0",
|
|
52
|
-
"
|
|
53
|
-
|
|
42
|
+
"tailwindcss": "^3.4.14"
|
|
43
|
+
},
|
|
44
|
+
"peerDependencies": {
|
|
45
|
+
"@floating-ui/vue": "^1.1.5",
|
|
46
|
+
"@headlessui/vue": "^1.7.23",
|
|
47
|
+
"@tiptap/extension-link": "^2.11.2",
|
|
48
|
+
"@tiptap/starter-kit": "^2.11.2",
|
|
49
|
+
"@tiptap/vue-3": "^2.11.2",
|
|
54
50
|
"vue": "^3.5.12"
|
|
55
51
|
},
|
|
56
52
|
"devDependencies": {
|
|
57
|
-
"@
|
|
58
|
-
"@eslint/js": "^9.13.0",
|
|
53
|
+
"@vitejs/plugin-vue": "~4.5.0",
|
|
59
54
|
"@vitest/coverage-v8": "^2.1.4",
|
|
60
|
-
"@vue/eslint-config-airbnb": "^8.0.0",
|
|
61
55
|
"@vue/test-utils": "^2.4.6",
|
|
62
|
-
"
|
|
63
|
-
"eslint": "^9.13.0",
|
|
64
|
-
"eslint-plugin-vue": "^9.29.0",
|
|
65
|
-
"jsdom": "^25.0.1",
|
|
66
|
-
"nodemon": "^3.1.7",
|
|
67
|
-
"postcss": "^8.4.47",
|
|
56
|
+
"string-width": "^4.2.0",
|
|
68
57
|
"vite": "^5.4.10",
|
|
69
58
|
"vite-plugin-eslint": "^1.8.1",
|
|
70
59
|
"vite-plugin-static-copy": "^2.0.0",
|
|
71
60
|
"vite-plugin-vue-devtools": "^7.5.3",
|
|
72
61
|
"vite-svg-loader": "^5.1.0",
|
|
73
|
-
"
|
|
74
|
-
"vitest": "^2.1.4"
|
|
75
|
-
},
|
|
76
|
-
"resolutions": {
|
|
77
|
-
"@vitejs/plugin-vue": "~4.5.0",
|
|
78
|
-
"string-width": "^4.2.0",
|
|
62
|
+
"vitest": "^2.1.4",
|
|
79
63
|
"wrap-ansi": "^7.0.0"
|
|
80
|
-
}
|
|
81
|
-
"packageManager": "yarn@4.5.3"
|
|
64
|
+
}
|
|
82
65
|
}
|
package/LICENSE
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
MIT License
|
|
2
|
-
|
|
3
|
-
Copyright (c) 2024 Robuust Digital
|
|
4
|
-
|
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
-
in the Software without restriction, including without limitation the rights
|
|
8
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
-
furnished to do so, subject to the following conditions:
|
|
11
|
-
|
|
12
|
-
The above copyright notice and this permission notice shall be included in all
|
|
13
|
-
copies or substantial portions of the Software.
|
|
14
|
-
|
|
15
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
-
SOFTWARE.
|
package/README.md
DELETED
|
@@ -1,107 +0,0 @@
|
|
|
1
|
-
# Robuust Vue 3 Components
|
|
2
|
-
|
|
3
|
-
A modern and customizable component library built with **Vue 3** and **Tailwind CSS**, designed to deliver a flexible, cohesive UI experience across all projects. Quickly integrate reusable components with ease, and customize them to suit your unique branding needs.
|
|
4
|
-
|
|
5
|
-
## Features
|
|
6
|
-
|
|
7
|
-
- β¨ **Vue 3 Components**: Carefully crafted components that work seamlessly with Vue 3
|
|
8
|
-
- π **Tailwind CSS Integration**: Leverage Tailwind CSS for styling, with full theme customization support
|
|
9
|
-
- π¨ **Theming & Customization**: Tailor components to your projectβs branding directly from the `tailwind.config.js`
|
|
10
|
-
- ππ½ **Accessibility First**: Components are designed with accessibility in mind, ensuring compliance with best practices
|
|
11
|
-
- π¦ **Nuxt 3 module available**: Easily integrate with Nuxt 3 projects for seamless server-side rendering and enhanced performance
|
|
12
|
-
|
|
13
|
-
## Docs
|
|
14
|
-
|
|
15
|
-
[**See full docs here**](https://robuust.github.io/vue-components/)
|
|
16
|
-
|
|
17
|
-
## Installation
|
|
18
|
-
|
|
19
|
-
1. **Install the component library via yarn or npm:**
|
|
20
|
-
|
|
21
|
-
```bash
|
|
22
|
-
yarn add @robuust-digital/vue-components
|
|
23
|
-
```
|
|
24
|
-
|
|
25
|
-
```bash
|
|
26
|
-
npm i @robuust-digital/vue-components
|
|
27
|
-
```
|
|
28
|
-
|
|
29
|
-
2. **Add the component library plugin to your `tailwind.config.js`:**
|
|
30
|
-
|
|
31
|
-
```javascript
|
|
32
|
-
// tailwind.config.js
|
|
33
|
-
import components from '@robuust-digital/vue-components/tailwind';
|
|
34
|
-
|
|
35
|
-
export default {
|
|
36
|
-
theme: {
|
|
37
|
-
extend: {
|
|
38
|
-
// Customize component styles here
|
|
39
|
-
components: (theme) => ({
|
|
40
|
-
button: {
|
|
41
|
-
'--rvc-button-height': theme('height.9'),
|
|
42
|
-
// ...
|
|
43
|
-
},
|
|
44
|
-
}),
|
|
45
|
-
},
|
|
46
|
-
},
|
|
47
|
-
plugins: [components],
|
|
48
|
-
};
|
|
49
|
-
```
|
|
50
|
-
|
|
51
|
-
## Import the CSS
|
|
52
|
-
|
|
53
|
-
Import our base CSS file in your main entry file:
|
|
54
|
-
|
|
55
|
-
```javascript
|
|
56
|
-
import '@robuust-digital/vue-components/css';
|
|
57
|
-
```
|
|
58
|
-
|
|
59
|
-
*This CSS file includes essential base styles and transitions required by the components. Make sure to import it before using any components.*
|
|
60
|
-
|
|
61
|
-
## For Nuxt 3 Projects
|
|
62
|
-
|
|
63
|
-
**Add the module to your `nuxt.config.ts` or `nuxt.config.js`:**
|
|
64
|
-
|
|
65
|
-
```javascript
|
|
66
|
-
export default defineNuxtConfig({
|
|
67
|
-
modules: ['@robuust-digital/vue-components/nuxt'],
|
|
68
|
-
});
|
|
69
|
-
```
|
|
70
|
-
|
|
71
|
-
This will automatically register all components globally in your Nuxt application, making them available for immediate use.
|
|
72
|
-
|
|
73
|
-
### Example Tailwind Configuration
|
|
74
|
-
|
|
75
|
-
With this configuration, you can create a custom theme for all components. Each project can apply its own colors and style variants by simply adjusting these values.
|
|
76
|
-
|
|
77
|
-
## Development
|
|
78
|
-
|
|
79
|
-
To contribute or make adjustments:
|
|
80
|
-
|
|
81
|
-
1. **Clone the repository** and install dependencies:
|
|
82
|
-
|
|
83
|
-
```bash
|
|
84
|
-
git clone https://github.com/robuust/vue-components.git
|
|
85
|
-
cd component-library
|
|
86
|
-
yarn install
|
|
87
|
-
```
|
|
88
|
-
|
|
89
|
-
2. **Run the development server** to preview components:
|
|
90
|
-
|
|
91
|
-
```bash
|
|
92
|
-
yarn dev
|
|
93
|
-
```
|
|
94
|
-
|
|
95
|
-
3. **Build for production**:
|
|
96
|
-
|
|
97
|
-
```bash
|
|
98
|
-
yarn build
|
|
99
|
-
```
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
## License
|
|
103
|
-
|
|
104
|
-
MIT Β© Robuust Digital
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
*With `@robuust-digital/vue-components`, bring consistency, flexibility, and a polished look to all your Vue 3 applications.*
|
package/dist/favicon.ico
DELETED
|
Binary file
|