@nuxt/ui 3.0.0-alpha.4 → 3.0.0-alpha.6
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/README.md +6 -4
- package/dist/module.d.mts +19 -5
- package/dist/module.d.ts +19 -5
- package/dist/module.json +2 -1
- package/dist/module.mjs +359 -312
- package/dist/runtime/components/Alert.vue +2 -2
- package/dist/runtime/components/Breadcrumb.vue +2 -2
- package/dist/runtime/components/Button.vue +2 -1
- package/dist/runtime/components/Carousel.vue +306 -0
- package/dist/runtime/components/CommandPalette.vue +2 -2
- package/dist/runtime/components/ContextMenu.vue +2 -2
- package/dist/runtime/components/DropdownMenu.vue +2 -2
- package/dist/runtime/components/Form.vue +4 -2
- package/dist/runtime/components/Modal.vue +2 -2
- package/dist/runtime/components/NavigationMenu.vue +3 -3
- package/dist/runtime/components/Pagination.vue +2 -2
- package/dist/runtime/components/Slideover.vue +2 -2
- package/dist/runtime/components/Toast.vue +2 -2
- package/dist/runtime/index.css +1 -1
- package/dist/runtime/plugins/colors.js +12 -8
- package/dist/runtime/types/form.d.ts +2 -1
- package/dist/runtime/types/index.d.ts +1 -0
- package/dist/runtime/types/index.js +1 -0
- package/dist/runtime/utils/form.d.ts +4 -1
- package/dist/runtime/utils/form.js +11 -1
- package/package.json +22 -9
package/README.md
CHANGED
|
@@ -40,16 +40,18 @@ export default defineNuxtConfig({
|
|
|
40
40
|
})
|
|
41
41
|
```
|
|
42
42
|
|
|
43
|
-
3. Import Tailwind and Nuxt UI in your `app.vue` or
|
|
43
|
+
3. Import Tailwind CSS and Nuxt UI in your `app.vue` or [CSS](https://nuxt.com/docs/getting-started/styling#the-css-property):
|
|
44
44
|
|
|
45
|
-
```
|
|
45
|
+
```vue [app.vue]
|
|
46
|
+
<style>
|
|
46
47
|
@import "tailwindcss";
|
|
47
48
|
@import "@nuxt/ui";
|
|
49
|
+
</style>
|
|
48
50
|
```
|
|
49
51
|
|
|
50
52
|
## Documentation
|
|
51
53
|
|
|
52
|
-
Visit https://ui3.nuxt.
|
|
54
|
+
Visit https://ui3.nuxt.dev to explore the documentation.
|
|
53
55
|
|
|
54
56
|
## Credits
|
|
55
57
|
|
|
@@ -70,7 +72,7 @@ Licensed under the [MIT license](https://github.com/nuxt/ui/blob/dev/LICENSE.md)
|
|
|
70
72
|
[npm-version-href]: https://npmjs.com/package/@nuxt/ui
|
|
71
73
|
|
|
72
74
|
[npm-downloads-src]: https://img.shields.io/npm/dm/@nuxt/ui.svg?style=flat&colorA=18181B&colorB=28CF8D
|
|
73
|
-
[npm-downloads-href]: https://
|
|
75
|
+
[npm-downloads-href]: https://npm.chart.dev/@nuxt/ui
|
|
74
76
|
|
|
75
77
|
[license-src]: https://img.shields.io/github/license/nuxt/ui.svg?style=flat&colorA=18181B&colorB=28CF8D
|
|
76
78
|
[license-href]: https://github.com/nuxt/ui/blob/main/LICENSE.md
|
package/dist/module.d.mts
CHANGED
|
@@ -4,23 +4,37 @@ export * from '../dist/runtime/types/index.js';
|
|
|
4
4
|
interface ModuleOptions {
|
|
5
5
|
/**
|
|
6
6
|
* Prefix for components
|
|
7
|
-
* @defaultValue U
|
|
7
|
+
* @defaultValue `U`
|
|
8
|
+
* @see https://ui3.nuxt.dev/getting-started/installation#prefix
|
|
8
9
|
*/
|
|
9
10
|
prefix?: string;
|
|
10
11
|
/**
|
|
11
12
|
* Enable or disable `@nuxt/fonts` module
|
|
12
|
-
* @defaultValue true
|
|
13
|
+
* @defaultValue `true`
|
|
14
|
+
* @see https://ui3.nuxt.dev/getting-started/installation#fonts
|
|
13
15
|
*/
|
|
14
16
|
fonts?: boolean;
|
|
17
|
+
/**
|
|
18
|
+
* Enable or disable `@nuxtjs/color-mode` module
|
|
19
|
+
* @defaultValue `true`
|
|
20
|
+
* @see https://ui3.nuxt.dev/getting-started/installation#colormode
|
|
21
|
+
*/
|
|
22
|
+
colorMode?: boolean;
|
|
23
|
+
/**
|
|
24
|
+
* Customize how the theme is generated
|
|
25
|
+
* @see https://ui3.nuxt.dev/getting-started/theme
|
|
26
|
+
*/
|
|
15
27
|
theme?: {
|
|
16
28
|
/**
|
|
17
|
-
*
|
|
18
|
-
* @defaultValue ['
|
|
29
|
+
* Define the color aliases available for components
|
|
30
|
+
* @defaultValue `['primary', 'secondary', 'success', 'info', 'warning', 'error']`
|
|
31
|
+
* @see https://ui3.nuxt.dev/getting-started/installation#themecolors
|
|
19
32
|
*/
|
|
20
33
|
colors?: string[];
|
|
21
34
|
/**
|
|
22
35
|
* Enable or disable transitions on components
|
|
23
|
-
* @defaultValue true
|
|
36
|
+
* @defaultValue `true`
|
|
37
|
+
* @see https://ui3.nuxt.dev/getting-started/installation#themetransitions
|
|
24
38
|
*/
|
|
25
39
|
transitions?: boolean;
|
|
26
40
|
};
|
package/dist/module.d.ts
CHANGED
|
@@ -4,23 +4,37 @@ export * from '../dist/runtime/types/index.js';
|
|
|
4
4
|
interface ModuleOptions {
|
|
5
5
|
/**
|
|
6
6
|
* Prefix for components
|
|
7
|
-
* @defaultValue U
|
|
7
|
+
* @defaultValue `U`
|
|
8
|
+
* @see https://ui3.nuxt.dev/getting-started/installation#prefix
|
|
8
9
|
*/
|
|
9
10
|
prefix?: string;
|
|
10
11
|
/**
|
|
11
12
|
* Enable or disable `@nuxt/fonts` module
|
|
12
|
-
* @defaultValue true
|
|
13
|
+
* @defaultValue `true`
|
|
14
|
+
* @see https://ui3.nuxt.dev/getting-started/installation#fonts
|
|
13
15
|
*/
|
|
14
16
|
fonts?: boolean;
|
|
17
|
+
/**
|
|
18
|
+
* Enable or disable `@nuxtjs/color-mode` module
|
|
19
|
+
* @defaultValue `true`
|
|
20
|
+
* @see https://ui3.nuxt.dev/getting-started/installation#colormode
|
|
21
|
+
*/
|
|
22
|
+
colorMode?: boolean;
|
|
23
|
+
/**
|
|
24
|
+
* Customize how the theme is generated
|
|
25
|
+
* @see https://ui3.nuxt.dev/getting-started/theme
|
|
26
|
+
*/
|
|
15
27
|
theme?: {
|
|
16
28
|
/**
|
|
17
|
-
*
|
|
18
|
-
* @defaultValue ['
|
|
29
|
+
* Define the color aliases available for components
|
|
30
|
+
* @defaultValue `['primary', 'secondary', 'success', 'info', 'warning', 'error']`
|
|
31
|
+
* @see https://ui3.nuxt.dev/getting-started/installation#themecolors
|
|
19
32
|
*/
|
|
20
33
|
colors?: string[];
|
|
21
34
|
/**
|
|
22
35
|
* Enable or disable transitions on components
|
|
23
|
-
* @defaultValue true
|
|
36
|
+
* @defaultValue `true`
|
|
37
|
+
* @see https://ui3.nuxt.dev/getting-started/installation#themetransitions
|
|
24
38
|
*/
|
|
25
39
|
transitions?: boolean;
|
|
26
40
|
};
|
package/dist/module.json
CHANGED