@nova-design-system/nova-vue 3.0.0-beta.36 → 3.0.0-beta.37
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 +241 -36
- package/dist/generated/components.d.ts +5 -1
- package/dist/generated/components.js +60 -10
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,6 +1,37 @@
|
|
|
1
1
|
# Nova Components Vue
|
|
2
2
|
|
|
3
|
-
**Nova Components Vue**
|
|
3
|
+
**Nova Components Vue** provides an easy way to use [Nova’s native Web Components](https://www.npmjs.com/package/@nova-design-system/nova-webcomponents) within your Vue applications.
|
|
4
|
+
|
|
5
|
+
- [Nova Components Vue](#nova-components-vue)
|
|
6
|
+
- [Key Features](#key-features)
|
|
7
|
+
- [Installation](#installation)
|
|
8
|
+
- [Setup Using Tailwind (Recommended)](#setup-using-tailwind-recommended)
|
|
9
|
+
- [1. Install Tailwind CSS and the Vite Plugin](#1-install-tailwind-css-and-the-vite-plugin)
|
|
10
|
+
- [2. Configure the Vite Plugin](#2-configure-the-vite-plugin)
|
|
11
|
+
- [3. Create `tailwind.config.ts`](#3-create-tailwindconfigts)
|
|
12
|
+
- [4. Configure Tailwind and Nova Plugin in `main.css`](#4-configure-tailwind-and-nova-plugin-in-maincss)
|
|
13
|
+
- [5. Register NovaComponents and include the Nova Tokens](#5-register-novacomponents-and-include-the-nova-tokens)
|
|
14
|
+
- [6. Use Nova Components and Tailwind Utilities](#6-use-nova-components-and-tailwind-utilities)
|
|
15
|
+
- [7. Setup the Nova Font](#7-setup-the-nova-font)
|
|
16
|
+
- [Creating Your Own Style Components with Tailwind](#creating-your-own-style-components-with-tailwind)
|
|
17
|
+
- [Setup Without Tailwind (Not Recommended)](#setup-without-tailwind-not-recommended)
|
|
18
|
+
- [1. Register NovaComponents and include the Nova CSS.](#1-register-novacomponents-and-include-the-nova-css)
|
|
19
|
+
- [2. Use Nova Components](#2-use-nova-components)
|
|
20
|
+
- [Nova Font Pro Integration](#nova-font-pro-integration)
|
|
21
|
+
- [Option 1: Import in Main Entry (Recommended)](#option-1-import-in-main-entry-recommended)
|
|
22
|
+
- [Option 2: HTML Integration](#option-2-html-integration)
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
---
|
|
26
|
+
|
|
27
|
+
## Key Features
|
|
28
|
+
|
|
29
|
+
- **Lightweight Integration**: Leverage Nova Web Components with minimal configuration in Vue.
|
|
30
|
+
- **Customizable Styling**: Use Tailwind (recommended) or Nova’s utility classes to quickly style components.
|
|
31
|
+
- **Dark Mode Ready**: Toggle dark mode by adding the `dark` class to your `body` element.
|
|
32
|
+
- **Nova Font Pro Support**: Easily integrate Nova’s custom font for a consistent design experience.
|
|
33
|
+
|
|
34
|
+
---
|
|
4
35
|
|
|
5
36
|
## Installation
|
|
6
37
|
|
|
@@ -16,22 +47,211 @@ or
|
|
|
16
47
|
yarn add @nova-design-system/nova-webcomponents @nova-design-system/nova-base @nova-design-system/nova-vue
|
|
17
48
|
```
|
|
18
49
|
|
|
19
|
-
## Setup
|
|
50
|
+
## Setup Using Tailwind (Recommended)
|
|
51
|
+
|
|
52
|
+
We highly recommend using Tailwind CSS for styling, as it ensures an optimized bundle size and a powerful utility-first workflow. Nova offers a dedicated Tailwind plugin and theme, allowing you to seamlessly integrate Nova’s design tokens with Tailwind’s utility classes for a consistent and efficient styling workflow.
|
|
53
|
+
|
|
54
|
+
> **Tailwind Version**
|
|
55
|
+
> This guide is written for Tailwind v4. While compatible with v3, some features may not work as expected.
|
|
56
|
+
|
|
57
|
+
Below is an example setup using the **vue cli with vite**. If you're using another framework, such as nuxt, please refer to the [Tailwind Installation Guide](https://tailwindcss.com/docs/installation).
|
|
58
|
+
|
|
59
|
+
### 1. Install Tailwind CSS and the Vite Plugin
|
|
60
|
+
|
|
61
|
+
```bash
|
|
62
|
+
npm install tailwindcss @tailwindcss/vite
|
|
63
|
+
```
|
|
64
|
+
|
|
65
|
+
> Use the **[Tailwind CSS IntelliSense Extension](https://marketplace.visualstudio.com/items?itemName=bradlc.vscode-tailwindcss)** to get full autocomplete support for Tailwind and Nova tokens.
|
|
66
|
+
|
|
67
|
+
### 2. Configure the Vite Plugin
|
|
68
|
+
|
|
69
|
+
Add the tailwindcss plugin to your `vite.config.ts`:
|
|
70
|
+
|
|
71
|
+
```ts
|
|
72
|
+
import { fileURLToPath, URL } from 'node:url'
|
|
73
|
+
|
|
74
|
+
import { defineConfig } from 'vite'
|
|
75
|
+
import vue from '@vitejs/plugin-vue'
|
|
76
|
+
import vueJsx from '@vitejs/plugin-vue-jsx'
|
|
77
|
+
import vueDevTools from 'vite-plugin-vue-devtools'
|
|
78
|
+
import tailwindcss from '@tailwindcss/vite'
|
|
79
|
+
|
|
80
|
+
// https://vite.dev/config/
|
|
81
|
+
export default defineConfig({
|
|
82
|
+
plugins: [vue(), vueJsx(), vueDevTools(), tailwindcss()],
|
|
83
|
+
resolve: {
|
|
84
|
+
alias: {
|
|
85
|
+
'@': fileURLToPath(new URL('./src', import.meta.url)),
|
|
86
|
+
},
|
|
87
|
+
},
|
|
88
|
+
})
|
|
89
|
+
|
|
90
|
+
```
|
|
91
|
+
|
|
92
|
+
### 3. Create `tailwind.config.ts`
|
|
93
|
+
|
|
94
|
+
In the root of your project, create a `tailwind.config.ts` file and include the Nova theme:
|
|
95
|
+
|
|
96
|
+
```ts
|
|
97
|
+
import type { Config } from 'tailwindcss'
|
|
98
|
+
import { novaTailwindTheme } from "@nova-design-system/nova-base/theme"
|
|
99
|
+
|
|
100
|
+
export default {
|
|
101
|
+
theme: novaTailwindTheme,
|
|
102
|
+
} satisfies Config
|
|
103
|
+
```
|
|
104
|
+
|
|
105
|
+
### 4. Configure Tailwind and Nova Plugin in `main.css`
|
|
106
|
+
|
|
107
|
+
in `src/assets/main.css`:
|
|
108
|
+
|
|
109
|
+
```css
|
|
110
|
+
@import 'tailwindcss';
|
|
111
|
+
|
|
112
|
+
@config "../../tailwind.config.ts";
|
|
113
|
+
@plugin "@nova-design-system/nova-base/theme/plugin";
|
|
114
|
+
@custom-variant dark (&:where(.dark, .dark *));
|
|
115
|
+
```
|
|
116
|
+
|
|
117
|
+
**Make sure to remove any other CSS that was generated by the Vue CLI.**
|
|
20
118
|
|
|
21
|
-
|
|
119
|
+
> **Dark Mode**
|
|
120
|
+
> To enable dark mode, add the `dark` class to the `<body>` element.
|
|
121
|
+
|
|
122
|
+
|
|
123
|
+
### 5. Register NovaComponents and include the Nova Tokens
|
|
124
|
+
Register the Nova Components Vue plugin in your `main.ts` file, and include the nova tokens (Spark or Ocean theme) css file:
|
|
22
125
|
|
|
23
126
|
```typescript
|
|
24
|
-
import
|
|
25
|
-
import
|
|
127
|
+
import './assets/main.css'
|
|
128
|
+
import '@nova-design-system/nova-base/dist/css/spark.css'; // or ocean.css
|
|
129
|
+
|
|
130
|
+
import { createApp } from 'vue'
|
|
131
|
+
import App from './App.vue'
|
|
132
|
+
import router from './router'
|
|
133
|
+
import { NovaComponents } from '@nova-design-system/nova-vue/plugin';
|
|
134
|
+
|
|
135
|
+
const app = createApp(App)
|
|
136
|
+
|
|
137
|
+
app.use(router)
|
|
138
|
+
app.use(NovaComponents)
|
|
139
|
+
|
|
140
|
+
app.mount('#app')
|
|
141
|
+
```
|
|
142
|
+
|
|
143
|
+
### 6. Use Nova Components and Tailwind Utilities
|
|
144
|
+
|
|
145
|
+
```html
|
|
146
|
+
<script setup lang="ts">
|
|
147
|
+
import { ref } from 'vue';
|
|
148
|
+
import { NvButton } from '@nova-design-system/nova-vue'
|
|
149
|
+
|
|
150
|
+
const count = ref(0);
|
|
151
|
+
</script>
|
|
152
|
+
|
|
153
|
+
<template>
|
|
154
|
+
<div class="flex items-center justify-center">
|
|
155
|
+
<NvButton danger @click="count++">
|
|
156
|
+
Count is {{ count }}
|
|
157
|
+
</NvButton>
|
|
158
|
+
</div>
|
|
159
|
+
</template>
|
|
160
|
+
```
|
|
161
|
+
|
|
162
|
+
> Note: **We have full typescript and intellisense support for Nova components.** If you do not see the autocomplete options, make sure you uninstall Volar or Vetur, and use the [Vue - Official](https://marketplace.visualstudio.com/items?itemName=Vue.volar) Extension only.
|
|
163
|
+
|
|
164
|
+
### 7. Setup the Nova Font
|
|
165
|
+
|
|
166
|
+
Follow the steps in the [Nova Font Pro Integration](#nova-font-pro-integration) section below.
|
|
26
167
|
|
|
168
|
+
---
|
|
169
|
+
|
|
170
|
+
### Creating Your Own Style Components with Tailwind
|
|
171
|
+
|
|
172
|
+
If you find you’re repeating the same set of utility classes for certain UI elements (e.g., a card component), you can group them using Tailwind’s `@apply` keyword:
|
|
173
|
+
|
|
174
|
+
```css
|
|
175
|
+
/* any css file */
|
|
176
|
+
.card {
|
|
177
|
+
@apply bg-gray-50 dark:bg-gray-500 p-4 rounded-md shadow-sm;
|
|
178
|
+
}
|
|
179
|
+
```
|
|
180
|
+
|
|
181
|
+
Then in your markup, instead of:
|
|
182
|
+
|
|
183
|
+
```jsx
|
|
184
|
+
<div class="bg-gray-50 dark:bg-gray-500 p-4 rounded-md shadow-sm">
|
|
185
|
+
{/* Content */}
|
|
186
|
+
</div>
|
|
187
|
+
<div class="bg-gray-50 dark:bg-gray-500 p-4 rounded-md shadow-sm">
|
|
188
|
+
{/* Content */}
|
|
189
|
+
</div>
|
|
190
|
+
```
|
|
191
|
+
|
|
192
|
+
You can use your new `card` class:
|
|
193
|
+
|
|
194
|
+
```jsx
|
|
195
|
+
<div class="card">
|
|
196
|
+
{/* Content */}
|
|
197
|
+
</div>
|
|
198
|
+
<div class="card">
|
|
199
|
+
{/* Content */}
|
|
200
|
+
</div>
|
|
201
|
+
```
|
|
202
|
+
|
|
203
|
+
This ensures consistent styling and keeps your markup clean. Any colors or spacing used will reference the correct Nova Tokens.
|
|
204
|
+
|
|
205
|
+
---
|
|
206
|
+
|
|
207
|
+
## Setup Without Tailwind (Not Recommended)
|
|
208
|
+
|
|
209
|
+
If you don’t plan to use Tailwind, Nova provides a large utility CSS file for quick prototyping. Be aware that this approach will increase your CSS bundle size, offer less options, and lacks the flexibility and optimizations of Tailwind.
|
|
210
|
+
|
|
211
|
+
### 1. Register NovaComponents and include the Nova CSS.
|
|
212
|
+
|
|
213
|
+
After installing the nova packages, you'll need to include the CSS for the theme and the utils. Then you register the Nova Components Vue plugin.
|
|
214
|
+
|
|
215
|
+
In your `main.ts` file:
|
|
216
|
+
|
|
217
|
+
```typescript
|
|
218
|
+
import './assets/main.css'
|
|
27
219
|
import '@nova-design-system/nova-base/dist/css/nova-utils.css';
|
|
28
220
|
import '@nova-design-system/nova-base/dist/css/spark.css'; // or ocean.css
|
|
221
|
+
|
|
222
|
+
import { createApp } from 'vue'
|
|
223
|
+
import App from './App.vue'
|
|
224
|
+
import router from './router'
|
|
29
225
|
import { NovaComponents } from '@nova-design-system/nova-vue/plugin';
|
|
30
226
|
|
|
31
|
-
createApp(App)
|
|
227
|
+
const app = createApp(App)
|
|
228
|
+
|
|
229
|
+
app.use(router)
|
|
230
|
+
app.use(NovaComponents)
|
|
231
|
+
|
|
232
|
+
app.mount('#app')
|
|
32
233
|
```
|
|
33
234
|
|
|
34
|
-
|
|
235
|
+
### 2. Use Nova Components
|
|
236
|
+
|
|
237
|
+
```html
|
|
238
|
+
<script setup lang="ts">
|
|
239
|
+
import { ref } from 'vue';
|
|
240
|
+
import { NvButton } from '@nova-design-system/nova-vue'
|
|
241
|
+
|
|
242
|
+
const count = ref(0);
|
|
243
|
+
</script>
|
|
244
|
+
|
|
245
|
+
<template>
|
|
246
|
+
<div class="flex items-center justify-center">
|
|
247
|
+
<NvButton danger @click="count++">
|
|
248
|
+
Count is {{ count }}
|
|
249
|
+
</NvButton>
|
|
250
|
+
</div>
|
|
251
|
+
</template>
|
|
252
|
+
```
|
|
253
|
+
|
|
254
|
+
---
|
|
35
255
|
|
|
36
256
|
## Nova Font Pro Integration
|
|
37
257
|
|
|
@@ -42,16 +262,24 @@ This setup makes Nova's web components available throughout your Vue application
|
|
|
42
262
|
Once you have the URL, you can integrate it using any of these methods:
|
|
43
263
|
|
|
44
264
|
### Option 1: Import in Main Entry (Recommended)
|
|
45
|
-
In your `main.ts
|
|
265
|
+
In your `main.ts`:
|
|
46
266
|
|
|
47
267
|
```typescript
|
|
48
|
-
import
|
|
49
|
-
import
|
|
50
|
-
import '@nova-design-system/nova-base/dist/css/nova-utils.css';
|
|
51
|
-
import '@nova-design-system/nova-base/dist/css/spark.css';
|
|
268
|
+
import './assets/main.css'
|
|
269
|
+
import '@nova-design-system/nova-base/dist/css/spark.css'; // or ocean.css
|
|
52
270
|
import 'https://novaassets.azureedge.net/fonts/nova-fonts-pro.css';
|
|
53
271
|
|
|
54
|
-
createApp
|
|
272
|
+
import { createApp } from 'vue'
|
|
273
|
+
import App from './App.vue'
|
|
274
|
+
import router from './router'
|
|
275
|
+
import { NovaComponents } from '@nova-design-system/nova-vue/plugin';
|
|
276
|
+
|
|
277
|
+
const app = createApp(App)
|
|
278
|
+
|
|
279
|
+
app.use(router)
|
|
280
|
+
app.use(NovaComponents)
|
|
281
|
+
|
|
282
|
+
app.mount('#app')
|
|
55
283
|
```
|
|
56
284
|
|
|
57
285
|
### Option 2: HTML Integration
|
|
@@ -70,26 +298,3 @@ In your `index.html`:
|
|
|
70
298
|
```
|
|
71
299
|
|
|
72
300
|
The `nova-fonts-pro.css` file includes both font definitions and the `font-family` rule for the `body`, automatically applying the fonts across your Vue application.
|
|
73
|
-
|
|
74
|
-
## Usage
|
|
75
|
-
|
|
76
|
-
With the setup complete, you can now use Nova components in your Vue components. Here's a quick example:
|
|
77
|
-
|
|
78
|
-
```vue
|
|
79
|
-
<script setup lang="ts">
|
|
80
|
-
import { ref } from 'vue';
|
|
81
|
-
import { NvButton } from '@nova-design-system/nova-vue';
|
|
82
|
-
|
|
83
|
-
const count = ref(0);
|
|
84
|
-
</script>
|
|
85
|
-
|
|
86
|
-
<template>
|
|
87
|
-
<NvButton danger @click="count++">count is {{ count }}</NvButton>
|
|
88
|
-
</template>
|
|
89
|
-
```
|
|
90
|
-
|
|
91
|
-
In this example, the `NvButton` component is imported and used within a Vue component. The `danger` prop is passed to style the button, and the `@click` event handler is used to increment the `count` variable.
|
|
92
|
-
|
|
93
|
-
## Conclusion
|
|
94
|
-
|
|
95
|
-
Nova Components Vue provides a convenient way to integrate Nova's native web components into your Vue.js projects. By following the simple setup steps, you can start using these powerful UI components in your Vue applications right away. For more detailed documentation and examples, refer to the official Nova documentation.
|
|
@@ -13,6 +13,9 @@ export declare const NvDatagridcolumn: import("vue").DefineSetupFnComponent<JSX.
|
|
|
13
13
|
export declare const NvDatagriddatacell: import("vue").DefineSetupFnComponent<JSX.NvDatagriddatacell & import("./vue-component-lib/utils").InputProps<string | number | boolean>, {}, {}, JSX.NvDatagriddatacell & import("./vue-component-lib/utils").InputProps<string | number | boolean> & {}, import("vue").PublicProps>;
|
|
14
14
|
export declare const NvDatagridhead: import("vue").DefineSetupFnComponent<JSX.NvDatagridhead & import("./vue-component-lib/utils").InputProps<string | number | boolean>, {}, {}, JSX.NvDatagridhead & import("./vue-component-lib/utils").InputProps<string | number | boolean> & {}, import("vue").PublicProps>;
|
|
15
15
|
export declare const NvDatagridrow: import("vue").DefineSetupFnComponent<JSX.NvDatagridrow & import("./vue-component-lib/utils").InputProps<string | number | boolean>, {}, {}, JSX.NvDatagridrow & import("./vue-component-lib/utils").InputProps<string | number | boolean> & {}, import("vue").PublicProps>;
|
|
16
|
+
export declare const NvDialog: import("vue").DefineSetupFnComponent<JSX.NvDialog & import("./vue-component-lib/utils").InputProps<string | number | boolean>, {}, {}, JSX.NvDialog & import("./vue-component-lib/utils").InputProps<string | number | boolean> & {}, import("vue").PublicProps>;
|
|
17
|
+
export declare const NvDialogfooter: import("vue").DefineSetupFnComponent<JSX.NvDialogfooter & import("./vue-component-lib/utils").InputProps<string | number | boolean>, {}, {}, JSX.NvDialogfooter & import("./vue-component-lib/utils").InputProps<string | number | boolean> & {}, import("vue").PublicProps>;
|
|
18
|
+
export declare const NvDialogheader: import("vue").DefineSetupFnComponent<JSX.NvDialogheader & import("./vue-component-lib/utils").InputProps<string | number | boolean>, {}, {}, JSX.NvDialogheader & import("./vue-component-lib/utils").InputProps<string | number | boolean> & {}, import("vue").PublicProps>;
|
|
16
19
|
export declare const NvFieldcheckbox: import("vue").DefineSetupFnComponent<JSX.NvFieldcheckbox & import("./vue-component-lib/utils").InputProps<boolean>, {}, {}, JSX.NvFieldcheckbox & import("./vue-component-lib/utils").InputProps<boolean> & {}, import("vue").PublicProps>;
|
|
17
20
|
export declare const NvFielddropdown: import("vue").DefineSetupFnComponent<JSX.NvFielddropdown & import("./vue-component-lib/utils").InputProps<string>, {}, {}, JSX.NvFielddropdown & import("./vue-component-lib/utils").InputProps<string> & {}, import("vue").PublicProps>;
|
|
18
21
|
export declare const NvFielddropdownitem: import("vue").DefineSetupFnComponent<JSX.NvFielddropdownitem & import("./vue-component-lib/utils").InputProps<string | number | boolean>, {}, {}, JSX.NvFielddropdownitem & import("./vue-component-lib/utils").InputProps<string | number | boolean> & {}, import("vue").PublicProps>;
|
|
@@ -24,7 +27,7 @@ export declare const NvFieldradio: import("vue").DefineSetupFnComponent<JSX.NvFi
|
|
|
24
27
|
export declare const NvFieldselect: import("vue").DefineSetupFnComponent<JSX.NvFieldselect & import("./vue-component-lib/utils").InputProps<string>, {}, {}, JSX.NvFieldselect & import("./vue-component-lib/utils").InputProps<string> & {}, import("vue").PublicProps>;
|
|
25
28
|
export declare const NvFieldtext: import("vue").DefineSetupFnComponent<JSX.NvFieldtext & import("./vue-component-lib/utils").InputProps<string>, {}, {}, JSX.NvFieldtext & import("./vue-component-lib/utils").InputProps<string> & {}, import("vue").PublicProps>;
|
|
26
29
|
export declare const NvFieldtextarea: import("vue").DefineSetupFnComponent<JSX.NvFieldtextarea & import("./vue-component-lib/utils").InputProps<string>, {}, {}, JSX.NvFieldtextarea & import("./vue-component-lib/utils").InputProps<string> & {}, import("vue").PublicProps>;
|
|
27
|
-
export declare const
|
|
30
|
+
export declare const NvFieldtime: import("vue").DefineSetupFnComponent<JSX.NvFieldtime & import("./vue-component-lib/utils").InputProps<string | number | boolean>, {}, {}, JSX.NvFieldtime & import("./vue-component-lib/utils").InputProps<string | number | boolean> & {}, import("vue").PublicProps>;
|
|
28
31
|
export declare const NvIcon: import("vue").DefineSetupFnComponent<JSX.NvIcon & import("./vue-component-lib/utils").InputProps<string | number | boolean>, {}, {}, JSX.NvIcon & import("./vue-component-lib/utils").InputProps<string | number | boolean> & {}, import("vue").PublicProps>;
|
|
29
32
|
export declare const NvIconbutton: import("vue").DefineSetupFnComponent<JSX.NvIconbutton & import("./vue-component-lib/utils").InputProps<string | number | boolean>, {}, {}, JSX.NvIconbutton & import("./vue-component-lib/utils").InputProps<string | number | boolean> & {}, import("vue").PublicProps>;
|
|
30
33
|
export declare const NvLoader: import("vue").DefineSetupFnComponent<JSX.NvLoader & import("./vue-component-lib/utils").InputProps<string | number | boolean>, {}, {}, JSX.NvLoader & import("./vue-component-lib/utils").InputProps<string | number | boolean> & {}, import("vue").PublicProps>;
|
|
@@ -39,4 +42,5 @@ export declare const NvTablecolumn: import("vue").DefineSetupFnComponent<JSX.NvT
|
|
|
39
42
|
export declare const NvTabledatacell: import("vue").DefineSetupFnComponent<JSX.NvTabledatacell & import("./vue-component-lib/utils").InputProps<string | number | boolean>, {}, {}, JSX.NvTabledatacell & import("./vue-component-lib/utils").InputProps<string | number | boolean> & {}, import("vue").PublicProps>;
|
|
40
43
|
export declare const NvTablehead: import("vue").DefineSetupFnComponent<JSX.NvTablehead & import("./vue-component-lib/utils").InputProps<string | number | boolean>, {}, {}, JSX.NvTablehead & import("./vue-component-lib/utils").InputProps<string | number | boolean> & {}, import("vue").PublicProps>;
|
|
41
44
|
export declare const NvTablerow: import("vue").DefineSetupFnComponent<JSX.NvTablerow & import("./vue-component-lib/utils").InputProps<string | number | boolean>, {}, {}, JSX.NvTablerow & import("./vue-component-lib/utils").InputProps<string | number | boolean> & {}, import("vue").PublicProps>;
|
|
45
|
+
export declare const NvToggle: import("vue").DefineSetupFnComponent<JSX.NvToggle & import("./vue-component-lib/utils").InputProps<boolean>, {}, {}, JSX.NvToggle & import("./vue-component-lib/utils").InputProps<boolean> & {}, import("vue").PublicProps>;
|
|
42
46
|
export declare const NvTooltip: import("vue").DefineSetupFnComponent<JSX.NvTooltip & import("./vue-component-lib/utils").InputProps<string | number | boolean>, {}, {}, JSX.NvTooltip & import("./vue-component-lib/utils").InputProps<string | number | boolean> & {}, import("vue").PublicProps>;
|
|
@@ -53,6 +53,7 @@ export const NvBreadcrumbs = /*@__PURE__*/ defineContainer('nv-breadcrumbs', und
|
|
|
53
53
|
export const NvButton = /*@__PURE__*/ defineContainer('nv-button', undefined, [
|
|
54
54
|
'size',
|
|
55
55
|
'emphasis',
|
|
56
|
+
'active',
|
|
56
57
|
'danger',
|
|
57
58
|
'loading',
|
|
58
59
|
'disabled',
|
|
@@ -80,6 +81,33 @@ export const NvDatagriddatacell = /*@__PURE__*/ defineContainer('nv-datagriddata
|
|
|
80
81
|
]);
|
|
81
82
|
export const NvDatagridhead = /*@__PURE__*/ defineContainer('nv-datagridhead', undefined);
|
|
82
83
|
export const NvDatagridrow = /*@__PURE__*/ defineContainer('nv-datagridrow', undefined);
|
|
84
|
+
export const NvDialog = /*@__PURE__*/ defineContainer('nv-dialog', undefined, [
|
|
85
|
+
'triggerElement',
|
|
86
|
+
'headerElement',
|
|
87
|
+
'footerElement',
|
|
88
|
+
'open',
|
|
89
|
+
'undismissable',
|
|
90
|
+
'clickOutside',
|
|
91
|
+
'manualFocus',
|
|
92
|
+
'controlled',
|
|
93
|
+
'full',
|
|
94
|
+
'close'
|
|
95
|
+
]);
|
|
96
|
+
export const NvDialogfooter = /*@__PURE__*/ defineContainer('nv-dialogfooter', undefined, [
|
|
97
|
+
'disabled',
|
|
98
|
+
'undismissable',
|
|
99
|
+
'leadingIcon',
|
|
100
|
+
'trailingIcon',
|
|
101
|
+
'danger',
|
|
102
|
+
'cancelLabel',
|
|
103
|
+
'submitLabel',
|
|
104
|
+
'nvDialogCanceled',
|
|
105
|
+
'nvDialogConfirmed'
|
|
106
|
+
]);
|
|
107
|
+
export const NvDialogheader = /*@__PURE__*/ defineContainer('nv-dialogheader', undefined, [
|
|
108
|
+
'heading',
|
|
109
|
+
'subheading'
|
|
110
|
+
]);
|
|
83
111
|
export const NvFieldcheckbox = /*@__PURE__*/ defineContainer('nv-fieldcheckbox', undefined, [
|
|
84
112
|
'message',
|
|
85
113
|
'validation',
|
|
@@ -116,6 +144,7 @@ export const NvFielddropdown = /*@__PURE__*/ defineContainer('nv-fielddropdown',
|
|
|
116
144
|
'disabled',
|
|
117
145
|
'emptyresult',
|
|
118
146
|
'filterable',
|
|
147
|
+
'options',
|
|
119
148
|
'dropdownItemSelected',
|
|
120
149
|
'valueChanged'
|
|
121
150
|
], 'value', 'value-changed');
|
|
@@ -220,6 +249,7 @@ export const NvFieldradio = /*@__PURE__*/ defineContainer('nv-fieldradio', undef
|
|
|
220
249
|
export const NvFieldselect = /*@__PURE__*/ defineContainer('nv-fieldselect', undefined, [
|
|
221
250
|
'message',
|
|
222
251
|
'validation',
|
|
252
|
+
'options',
|
|
223
253
|
'inputId',
|
|
224
254
|
'label',
|
|
225
255
|
'description',
|
|
@@ -281,19 +311,25 @@ export const NvFieldtextarea = /*@__PURE__*/ defineContainer('nv-fieldtextarea',
|
|
|
281
311
|
'autosize',
|
|
282
312
|
'valueChanged'
|
|
283
313
|
], 'value', 'value-changed');
|
|
284
|
-
export const
|
|
285
|
-
'inputId',
|
|
286
|
-
'name',
|
|
314
|
+
export const NvFieldtime = /*@__PURE__*/ defineContainer('nv-fieldtime', undefined, [
|
|
287
315
|
'value',
|
|
288
316
|
'label',
|
|
289
|
-
'
|
|
290
|
-
'hideLabel',
|
|
291
|
-
'description',
|
|
292
|
-
'checked',
|
|
293
|
-
'disabled',
|
|
317
|
+
'inputId',
|
|
294
318
|
'readonly',
|
|
295
|
-
'
|
|
296
|
-
|
|
319
|
+
'disabled',
|
|
320
|
+
'required',
|
|
321
|
+
'name',
|
|
322
|
+
'success',
|
|
323
|
+
'error',
|
|
324
|
+
'errorDescription',
|
|
325
|
+
'format',
|
|
326
|
+
'description',
|
|
327
|
+
'open',
|
|
328
|
+
'step',
|
|
329
|
+
'max',
|
|
330
|
+
'min',
|
|
331
|
+
'valueChanged'
|
|
332
|
+
]);
|
|
297
333
|
export const NvIcon = /*@__PURE__*/ defineContainer('nv-icon', undefined, [
|
|
298
334
|
'xsmall',
|
|
299
335
|
'small',
|
|
@@ -323,6 +359,7 @@ export const NvMenu = /*@__PURE__*/ defineContainer('nv-menu', undefined, [
|
|
|
323
359
|
'nested',
|
|
324
360
|
'disableCloseOnSelect',
|
|
325
361
|
'placement',
|
|
362
|
+
'items',
|
|
326
363
|
'menuitemSelected'
|
|
327
364
|
]);
|
|
328
365
|
export const NvMenuitem = /*@__PURE__*/ defineContainer('nv-menuitem', undefined, [
|
|
@@ -378,6 +415,19 @@ export const NvTabledatacell = /*@__PURE__*/ defineContainer('nv-tabledatacell',
|
|
|
378
415
|
]);
|
|
379
416
|
export const NvTablehead = /*@__PURE__*/ defineContainer('nv-tablehead', undefined);
|
|
380
417
|
export const NvTablerow = /*@__PURE__*/ defineContainer('nv-tablerow', undefined);
|
|
418
|
+
export const NvToggle = /*@__PURE__*/ defineContainer('nv-toggle', undefined, [
|
|
419
|
+
'inputId',
|
|
420
|
+
'name',
|
|
421
|
+
'value',
|
|
422
|
+
'label',
|
|
423
|
+
'labelPlacement',
|
|
424
|
+
'hideLabel',
|
|
425
|
+
'description',
|
|
426
|
+
'checked',
|
|
427
|
+
'disabled',
|
|
428
|
+
'readonly',
|
|
429
|
+
'checkedChanged'
|
|
430
|
+
], 'checked', 'checked-changed');
|
|
381
431
|
export const NvTooltip = /*@__PURE__*/ defineContainer('nv-tooltip', undefined, [
|
|
382
432
|
'triggerElement',
|
|
383
433
|
'message',
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nova-design-system/nova-vue",
|
|
3
|
-
"version": "3.0.0-beta.
|
|
3
|
+
"version": "3.0.0-beta.37",
|
|
4
4
|
"description": "Nova is a design system created by Elia Group to empower creators to efficiently build solutions that people love to use.",
|
|
5
5
|
"author": "Elia Group",
|
|
6
6
|
"homepage": "https://nova.eliagroup.io",
|