@robuust-digital/vue-components 1.3.0 β†’ 1.3.1

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 ADDED
@@ -0,0 +1,21 @@
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 ADDED
@@ -0,0 +1,79 @@
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
+
74
+ ## License
75
+
76
+ MIT Β© Robuust Digital
77
+
78
+
79
+ *With `@robuust-digital/vue-components`, bring consistency, flexibility, and a polished look to all your Vue 3 applications.*
@@ -1959,14 +1959,12 @@ const Nt = {
1959
1959
  He({ crossAxis: !0, padding: 5 }),
1960
1960
  Re({ element: n }),
1961
1961
  De({
1962
- /* c8 ignore start */
1963
1962
  apply({ availableWidth: o, availableHeight: y, elements: g }) {
1964
1963
  Object.assign(g.floating.style, {
1965
1964
  maxWidth: a.maxWidth ? `${Math.min(o, a.maxWidth) / 16}rem` : "",
1966
1965
  maxHeight: `${y / 16}rem `
1967
1966
  });
1968
1967
  }
1969
- /* c8 ignore stop */
1970
1968
  })
1971
1969
  ],
1972
1970
  whileElementsMounted: Ee,
package/package.json CHANGED
@@ -1,10 +1,9 @@
1
1
  {
2
2
  "name": "@robuust-digital/vue-components",
3
3
  "type": "module",
4
- "version": "1.3.0",
4
+ "version": "1.3.1",
5
5
  "description": "A modern and customizable component library built with **Vue 3** and **Tailwind CSS**.",
6
6
  "directories": {
7
- "doc": "docs",
8
7
  "test": "tests"
9
8
  },
10
9
  "repository": {
@@ -20,9 +19,9 @@
20
19
  "main": "./dist/vue-components.es.js",
21
20
  "module": "./dist/vue-components.es.js",
22
21
  "files": [
23
- "dist",
24
- "README.md",
25
- "LICENSE"
22
+ "./dist",
23
+ "./README.md",
24
+ "./LICENSE"
26
25
  ],
27
26
  "exports": {
28
27
  ".": {
@@ -49,6 +48,23 @@
49
48
  "@tiptap/vue-3": "^2.11.2",
50
49
  "vue": "^3.5.12"
51
50
  },
51
+ "peerDependenciesMeta": {
52
+ "@floating-ui/vue": {
53
+ "optional": true
54
+ },
55
+ "@headlessui/vue": {
56
+ "optional": true
57
+ },
58
+ "@tiptap/extension-link": {
59
+ "optional": true
60
+ },
61
+ "@tiptap/starter-kit": {
62
+ "optional": true
63
+ },
64
+ "@tiptap/vue-3": {
65
+ "optional": true
66
+ }
67
+ },
52
68
  "devDependencies": {
53
69
  "@vitejs/plugin-vue": "~4.5.0",
54
70
  "@vitest/coverage-v8": "^2.1.4",