@nuxt/ui 3.3.4 → 3.3.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/.nuxt/ui/drawer.ts +23 -0
- package/.nuxt/ui/progress.ts +3 -3
- package/README.md +10 -10
- package/dist/module.d.mts +6 -6
- package/dist/module.json +2 -2
- package/dist/module.mjs +3 -3
- package/dist/runtime/components/Accordion.d.vue.ts +78 -0
- package/dist/runtime/components/Accordion.vue.d.ts +6 -5
- package/dist/runtime/components/Alert.d.vue.ts +82 -0
- package/dist/runtime/components/Alert.vue.d.ts +2 -1
- package/dist/runtime/components/App.d.vue.ts +25 -0
- package/dist/runtime/components/App.vue +1 -1
- package/dist/runtime/components/App.vue.d.ts +5 -4
- package/dist/runtime/components/Avatar.d.vue.ts +42 -0
- package/dist/runtime/components/Avatar.vue.d.ts +2 -1
- package/dist/runtime/components/AvatarGroup.d.vue.ts +32 -0
- package/dist/runtime/components/AvatarGroup.vue.d.ts +2 -1
- package/dist/runtime/components/Badge.d.vue.ts +44 -0
- package/dist/runtime/components/Badge.vue.d.ts +2 -1
- package/dist/runtime/components/Breadcrumb.d.vue.ts +67 -0
- package/dist/runtime/components/Breadcrumb.vue.d.ts +4 -3
- package/dist/runtime/components/Button.d.vue.ts +45 -0
- package/dist/runtime/components/Button.vue.d.ts +2 -1
- package/dist/runtime/components/ButtonGroup.d.vue.ts +35 -0
- package/dist/runtime/components/ButtonGroup.vue.d.ts +2 -1
- package/dist/runtime/components/Calendar.d.vue.ts +113 -0
- package/dist/runtime/components/Calendar.vue.d.ts +9 -8
- package/dist/runtime/components/Card.d.vue.ts +30 -0
- package/dist/runtime/components/Card.vue.d.ts +2 -1
- package/dist/runtime/components/Carousel.d.vue.ts +128 -0
- package/dist/runtime/components/Carousel.vue +32 -12
- package/dist/runtime/components/Carousel.vue.d.ts +7 -6
- package/dist/runtime/components/Checkbox.d.vue.ts +74 -0
- package/dist/runtime/components/Checkbox.vue.d.ts +2 -1
- package/dist/runtime/components/CheckboxGroup.d.vue.ts +85 -0
- package/dist/runtime/components/CheckboxGroup.vue.d.ts +7 -6
- package/dist/runtime/components/Chip.d.vue.ts +58 -0
- package/dist/runtime/components/Chip.vue.d.ts +2 -1
- package/dist/runtime/components/Collapsible.d.vue.ts +36 -0
- package/dist/runtime/components/Collapsible.vue.d.ts +2 -1
- package/dist/runtime/components/ColorPicker.d.vue.ts +49 -0
- package/dist/runtime/components/ColorPicker.vue.d.ts +2 -1
- package/dist/runtime/components/CommandPalette.d.vue.ts +193 -0
- package/dist/runtime/components/CommandPalette.vue.d.ts +13 -12
- package/dist/runtime/components/Container.d.vue.ts +19 -0
- package/dist/runtime/components/Container.vue.d.ts +2 -1
- package/dist/runtime/components/ContextMenu.d.vue.ts +110 -0
- package/dist/runtime/components/ContextMenu.vue.d.ts +6 -5
- package/dist/runtime/components/ContextMenuContent.d.vue.ts +50 -0
- package/dist/runtime/components/ContextMenuContent.vue.d.ts +10 -9
- package/dist/runtime/components/Drawer.d.vue.ts +87 -0
- package/dist/runtime/components/Drawer.vue +19 -5
- package/dist/runtime/components/Drawer.vue.d.ts +5 -1
- package/dist/runtime/components/DropdownMenu.d.vue.ts +120 -0
- package/dist/runtime/components/DropdownMenu.vue.d.ts +6 -5
- package/dist/runtime/components/DropdownMenuContent.d.vue.ts +56 -0
- package/dist/runtime/components/DropdownMenuContent.vue.d.ts +10 -9
- package/dist/runtime/components/FileUpload.d.vue.ts +167 -0
- package/dist/runtime/components/FileUpload.vue.d.ts +9 -8
- package/dist/runtime/components/Form.d.vue.ts +72 -0
- package/dist/runtime/components/Form.vue.d.ts +7 -6
- package/dist/runtime/components/FormField.d.vue.ts +62 -0
- package/dist/runtime/components/FormField.vue.d.ts +2 -1
- package/dist/runtime/components/Icon.d.vue.ts +9 -0
- package/dist/runtime/components/Icon.vue.d.ts +2 -1
- package/dist/runtime/components/Input.d.vue.ts +78 -0
- package/dist/runtime/components/Input.vue.d.ts +9 -8
- package/dist/runtime/components/InputMenu.d.vue.ts +330 -0
- package/dist/runtime/components/InputMenu.vue +1 -1
- package/dist/runtime/components/InputMenu.vue.d.ts +19 -24
- package/dist/runtime/components/InputNumber.d.vue.ts +187 -0
- package/dist/runtime/components/InputNumber.vue.d.ts +2 -1
- package/dist/runtime/components/InputTags.d.vue.ts +186 -0
- package/dist/runtime/components/InputTags.vue +2 -2
- package/dist/runtime/components/InputTags.vue.d.ts +13 -12
- package/dist/runtime/components/Kbd.d.vue.ts +39 -0
- package/dist/runtime/components/Kbd.vue.d.ts +2 -1
- package/dist/runtime/components/Link.d.vue.ts +92 -0
- package/dist/runtime/components/Link.vue.d.ts +2 -1
- package/dist/runtime/components/LinkBase.d.vue.ts +26 -0
- package/dist/runtime/components/LinkBase.vue.d.ts +2 -1
- package/dist/runtime/components/Modal.d.vue.ts +107 -0
- package/dist/runtime/components/Modal.vue.d.ts +4 -3
- package/dist/runtime/components/NavigationMenu.d.vue.ts +171 -0
- package/dist/runtime/components/NavigationMenu.vue.d.ts +6 -5
- package/dist/runtime/components/OverlayProvider.d.vue.ts +3 -0
- package/dist/runtime/components/OverlayProvider.vue.d.ts +2 -1
- package/dist/runtime/components/Pagination.d.vue.ts +119 -0
- package/dist/runtime/components/Pagination.vue +4 -4
- package/dist/runtime/components/Pagination.vue.d.ts +2 -1
- package/dist/runtime/components/PinInput.d.vue.ts +61 -0
- package/dist/runtime/components/PinInput.vue.d.ts +10 -9
- package/dist/runtime/components/Popover.d.vue.ts +71 -0
- package/dist/runtime/components/Popover.vue.d.ts +2 -1
- package/dist/runtime/components/Progress.d.vue.ts +67 -0
- package/dist/runtime/components/Progress.vue +2 -3
- package/dist/runtime/components/Progress.vue.d.ts +2 -1
- package/dist/runtime/components/RadioGroup.d.vue.ts +95 -0
- package/dist/runtime/components/RadioGroup.vue.d.ts +7 -6
- package/dist/runtime/components/Select.d.vue.ts +254 -0
- package/dist/runtime/components/Select.vue.d.ts +11 -10
- package/dist/runtime/components/SelectMenu.d.vue.ts +303 -0
- package/dist/runtime/components/SelectMenu.vue.d.ts +16 -15
- package/dist/runtime/components/Separator.d.vue.ts +55 -0
- package/dist/runtime/components/Separator.vue.d.ts +2 -1
- package/dist/runtime/components/Skeleton.d.vue.ts +18 -0
- package/dist/runtime/components/Skeleton.vue.d.ts +2 -1
- package/dist/runtime/components/Slideover.d.vue.ts +108 -0
- package/dist/runtime/components/Slideover.vue.d.ts +4 -3
- package/dist/runtime/components/Slider.d.vue.ts +58 -0
- package/dist/runtime/components/Slider.vue.d.ts +8 -7
- package/dist/runtime/components/Stepper.d.vue.ts +86 -0
- package/dist/runtime/components/Stepper.vue.d.ts +10 -9
- package/dist/runtime/components/Switch.d.vue.ts +71 -0
- package/dist/runtime/components/Switch.vue.d.ts +2 -1
- package/dist/runtime/components/Table.d.vue.ts +202 -0
- package/dist/runtime/components/Table.vue +19 -1
- package/dist/runtime/components/Table.vue.d.ts +20 -19
- package/dist/runtime/components/Tabs.d.vue.ts +99 -0
- package/dist/runtime/components/Tabs.vue +2 -2
- package/dist/runtime/components/Tabs.vue.d.ts +7 -6
- package/dist/runtime/components/Textarea.d.vue.ts +80 -0
- package/dist/runtime/components/Textarea.vue.d.ts +9 -8
- package/dist/runtime/components/Timeline.d.vue.ts +71 -0
- package/dist/runtime/components/Timeline.vue.d.ts +7 -6
- package/dist/runtime/components/Toast.d.vue.ts +165 -0
- package/dist/runtime/components/Toast.vue.d.ts +2 -1
- package/dist/runtime/components/Toaster.d.vue.ts +45 -0
- package/dist/runtime/components/Toaster.vue.d.ts +2 -1
- package/dist/runtime/components/Tooltip.d.vue.ts +57 -0
- package/dist/runtime/components/Tooltip.vue.d.ts +2 -1
- package/dist/runtime/components/Tree.d.vue.ts +115 -0
- package/dist/runtime/components/Tree.vue.d.ts +7 -6
- package/dist/runtime/composables/useKbd.js +1 -1
- package/dist/runtime/composables/usePortal.d.ts +3 -3
- package/dist/runtime/composables/usePortal.js +5 -10
- package/dist/runtime/inertia/components/Link.d.vue.ts +64 -0
- package/dist/runtime/inertia/components/Link.vue.d.ts +2 -1
- package/dist/runtime/inertia/components/LinkBase.d.vue.ts +26 -0
- package/dist/runtime/inertia/components/LinkBase.vue.d.ts +2 -1
- package/dist/runtime/types/tv.d.ts +9 -2
- package/dist/runtime/vue/components/Icon.d.vue.ts +6 -0
- package/dist/runtime/vue/components/Icon.vue.d.ts +2 -1
- package/dist/runtime/vue/components/Link.d.vue.ts +94 -0
- package/dist/runtime/vue/components/Link.vue.d.ts +2 -1
- package/dist/shared/{ui.BTUFJHYJ.mjs → ui.DBpKc5X3.mjs} +100 -68
- package/dist/unplugin.mjs +1 -1
- package/dist/vite.mjs +1 -1
- package/package.json +18 -18
package/.nuxt/ui/drawer.ts
CHANGED
|
@@ -43,6 +43,9 @@ export default {
|
|
|
43
43
|
"true": {
|
|
44
44
|
"content": "rounded-lg after:hidden overflow-hidden [--initial-transform:calc(100%+1.5rem)]"
|
|
45
45
|
}
|
|
46
|
+
},
|
|
47
|
+
"snapPoints": {
|
|
48
|
+
"true": ""
|
|
46
49
|
}
|
|
47
50
|
},
|
|
48
51
|
"compoundVariants": [
|
|
@@ -56,6 +59,16 @@ export default {
|
|
|
56
59
|
"handle": "!w-12 !h-1.5 mx-auto"
|
|
57
60
|
}
|
|
58
61
|
},
|
|
62
|
+
{
|
|
63
|
+
"direction": [
|
|
64
|
+
"top" as typeof direction[number],
|
|
65
|
+
"bottom" as typeof direction[number]
|
|
66
|
+
],
|
|
67
|
+
"snapPoints": true,
|
|
68
|
+
"class": {
|
|
69
|
+
"content": "h-full"
|
|
70
|
+
}
|
|
71
|
+
},
|
|
59
72
|
{
|
|
60
73
|
"direction": [
|
|
61
74
|
"right" as typeof direction[number],
|
|
@@ -66,6 +79,16 @@ export default {
|
|
|
66
79
|
"handle": "!h-12 !w-1.5 mt-auto mb-auto"
|
|
67
80
|
}
|
|
68
81
|
},
|
|
82
|
+
{
|
|
83
|
+
"direction": [
|
|
84
|
+
"right" as typeof direction[number],
|
|
85
|
+
"left" as typeof direction[number]
|
|
86
|
+
],
|
|
87
|
+
"snapPoints": true,
|
|
88
|
+
"class": {
|
|
89
|
+
"content": "w-full"
|
|
90
|
+
}
|
|
91
|
+
},
|
|
69
92
|
{
|
|
70
93
|
"direction": "top" as typeof direction[number],
|
|
71
94
|
"inset": true,
|
package/.nuxt/ui/progress.ts
CHANGED
|
@@ -42,7 +42,7 @@ export default {
|
|
|
42
42
|
"root": "gap-2",
|
|
43
43
|
"base": "relative overflow-hidden rounded-full bg-accented",
|
|
44
44
|
"indicator": "rounded-full size-full transition-transform duration-200 ease-out",
|
|
45
|
-
"status": "flex
|
|
45
|
+
"status": "flex text-dimmed transition-[width] duration-200",
|
|
46
46
|
"steps": "grid items-end",
|
|
47
47
|
"step": "truncate text-end row-start-1 col-start-1 transition-opacity" as typeof step[number]
|
|
48
48
|
},
|
|
@@ -131,12 +131,12 @@ export default {
|
|
|
131
131
|
"horizontal": {
|
|
132
132
|
"root": "w-full flex flex-col",
|
|
133
133
|
"base": "w-full",
|
|
134
|
-
"status": "flex-row"
|
|
134
|
+
"status": "flex-row items-center justify-end min-w-fit"
|
|
135
135
|
},
|
|
136
136
|
"vertical": {
|
|
137
137
|
"root": "h-full flex flex-row-reverse",
|
|
138
138
|
"base": "h-full",
|
|
139
|
-
"status": "flex-col"
|
|
139
|
+
"status": "flex-col justify-end min-h-fit"
|
|
140
140
|
}
|
|
141
141
|
},
|
|
142
142
|
"inverted": {
|
package/README.md
CHANGED
|
@@ -18,28 +18,28 @@ Nuxt UI harnesses the combined strengths of [Reka UI](https://reka-ui.com/), [Ta
|
|
|
18
18
|
|
|
19
19
|
> [!TIP]
|
|
20
20
|
> **Looking for more components ?**
|
|
21
|
-
> Check out [Nuxt UI Pro](https://
|
|
21
|
+
> Check out [Nuxt UI Pro](https://ui3.nuxt.com/pro), a collection of premium Vue components, composables, and utilities built on top of Nuxt UI for faster and more powerful app development.
|
|
22
22
|
|
|
23
23
|
## Documentation
|
|
24
24
|
|
|
25
|
-
Visit https://
|
|
25
|
+
Visit https://ui3.nuxt.com to explore the documentation.
|
|
26
26
|
|
|
27
27
|
## Installation
|
|
28
28
|
|
|
29
29
|
```bash [pnpm]
|
|
30
|
-
pnpm add @nuxt/ui
|
|
30
|
+
pnpm add @nuxt/ui@3
|
|
31
31
|
```
|
|
32
32
|
|
|
33
33
|
```bash [yarn]
|
|
34
|
-
yarn add @nuxt/ui
|
|
34
|
+
yarn add @nuxt/ui@3
|
|
35
35
|
```
|
|
36
36
|
|
|
37
37
|
```bash [npm]
|
|
38
|
-
npm install @nuxt/ui
|
|
38
|
+
npm install @nuxt/ui@3
|
|
39
39
|
```
|
|
40
40
|
|
|
41
41
|
```bash [bun]
|
|
42
|
-
bun add @nuxt/ui
|
|
42
|
+
bun add @nuxt/ui@3
|
|
43
43
|
```
|
|
44
44
|
|
|
45
45
|
### Nuxt
|
|
@@ -59,7 +59,7 @@ export default defineNuxtConfig({
|
|
|
59
59
|
@import "@nuxt/ui";
|
|
60
60
|
```
|
|
61
61
|
|
|
62
|
-
Learn more in the [installation guide](https://
|
|
62
|
+
Learn more in the [installation guide](https://ui3.nuxt.com/getting-started/installation/nuxt).
|
|
63
63
|
|
|
64
64
|
### Vue
|
|
65
65
|
|
|
@@ -106,18 +106,18 @@ app.mount('#app')
|
|
|
106
106
|
@import "@nuxt/ui";
|
|
107
107
|
```
|
|
108
108
|
|
|
109
|
-
Learn more in the [installation guide](https://
|
|
109
|
+
Learn more in the [installation guide](https://ui3.nuxt.com/getting-started/installation/vue).
|
|
110
110
|
|
|
111
111
|
## Contribution
|
|
112
112
|
|
|
113
113
|
Thank you for considering contributing to Nuxt UI. Here are a few ways you can get involved:
|
|
114
114
|
|
|
115
115
|
- Reporting Bugs: If you come across any bugs or issues, please check out the reporting bugs guide to learn how to submit a bug report.
|
|
116
|
-
- Suggestions: Have any thoughts to enhance Nuxt UI? We'd love to hear them! Check out the [contribution guide](https://
|
|
116
|
+
- Suggestions: Have any thoughts to enhance Nuxt UI? We'd love to hear them! Check out the [contribution guide](https://ui3.nuxt.com/getting-started/contribution) to share your suggestions.
|
|
117
117
|
|
|
118
118
|
## Local Development
|
|
119
119
|
|
|
120
|
-
Follow the docs to [set up your local development environment](https://
|
|
120
|
+
Follow the docs to [set up your local development environment](https://ui3.nuxt.com/getting-started/contribution#local-development) and contribute.
|
|
121
121
|
|
|
122
122
|
## Credits
|
|
123
123
|
|
package/dist/module.d.mts
CHANGED
|
@@ -7,36 +7,36 @@ interface ModuleOptions {
|
|
|
7
7
|
/**
|
|
8
8
|
* Prefix for components
|
|
9
9
|
* @defaultValue `U`
|
|
10
|
-
* @link https://
|
|
10
|
+
* @link https://ui3.nuxt.com/getting-started/installation/nuxt#prefix
|
|
11
11
|
*/
|
|
12
12
|
prefix?: string;
|
|
13
13
|
/**
|
|
14
14
|
* Enable or disable `@nuxt/fonts` module
|
|
15
15
|
* @defaultValue `true`
|
|
16
|
-
* @link https://
|
|
16
|
+
* @link https://ui3.nuxt.com/getting-started/installation/nuxt#fonts
|
|
17
17
|
*/
|
|
18
18
|
fonts?: boolean;
|
|
19
19
|
/**
|
|
20
20
|
* Enable or disable `@nuxtjs/color-mode` module
|
|
21
21
|
* @defaultValue `true`
|
|
22
|
-
* @link https://
|
|
22
|
+
* @link https://ui3.nuxt.com/getting-started/installation/nuxt#colormode
|
|
23
23
|
*/
|
|
24
24
|
colorMode?: boolean;
|
|
25
25
|
/**
|
|
26
26
|
* Customize how the theme is generated
|
|
27
|
-
* @link https://
|
|
27
|
+
* @link https://ui3.nuxt.com/getting-started/theme
|
|
28
28
|
*/
|
|
29
29
|
theme?: {
|
|
30
30
|
/**
|
|
31
31
|
* Define the color aliases available for components
|
|
32
32
|
* @defaultValue `['primary', 'secondary', 'success', 'info', 'warning', 'error']`
|
|
33
|
-
* @link https://
|
|
33
|
+
* @link https://ui3.nuxt.com/getting-started/installation/nuxt#themecolors
|
|
34
34
|
*/
|
|
35
35
|
colors?: Color[];
|
|
36
36
|
/**
|
|
37
37
|
* Enable or disable transitions on components
|
|
38
38
|
* @defaultValue `true`
|
|
39
|
-
* @link https://
|
|
39
|
+
* @link https://ui3.nuxt.com/getting-started/installation/nuxt#themetransitions
|
|
40
40
|
*/
|
|
41
41
|
transitions?: boolean;
|
|
42
42
|
defaultVariants?: {
|
package/dist/module.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nuxt/ui",
|
|
3
|
-
"version": "3.3.
|
|
4
|
-
"docs": "https://
|
|
3
|
+
"version": "3.3.6",
|
|
4
|
+
"docs": "https://ui3.nuxt.com/getting-started/installation/nuxt",
|
|
5
5
|
"configKey": "ui",
|
|
6
6
|
"compatibility": {
|
|
7
7
|
"nuxt": ">=3.16.0"
|
package/dist/module.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defu } from 'defu';
|
|
2
2
|
import { defineNuxtModule, createResolver, addVitePlugin, addPlugin, addComponentsDir, addImportsDir, hasNuxtModule, installModule } from '@nuxt/kit';
|
|
3
|
-
import { d as defaultOptions, r as resolveColors, a as getDefaultUiConfig, b as addTemplates } from './shared/ui.
|
|
3
|
+
import { d as defaultOptions, r as resolveColors, a as getDefaultUiConfig, b as addTemplates } from './shared/ui.DBpKc5X3.mjs';
|
|
4
4
|
import '../dist/runtime/utils/index.js';
|
|
5
5
|
import 'node:url';
|
|
6
6
|
import 'scule';
|
|
@@ -8,13 +8,13 @@ import 'tailwindcss/colors';
|
|
|
8
8
|
import 'knitwork';
|
|
9
9
|
|
|
10
10
|
const name = "@nuxt/ui";
|
|
11
|
-
const version = "3.3.
|
|
11
|
+
const version = "3.3.6";
|
|
12
12
|
|
|
13
13
|
const module = defineNuxtModule({
|
|
14
14
|
meta: {
|
|
15
15
|
name,
|
|
16
16
|
version,
|
|
17
|
-
docs: "https://
|
|
17
|
+
docs: "https://ui3.nuxt.com/getting-started/installation/nuxt",
|
|
18
18
|
configKey: "ui",
|
|
19
19
|
compatibility: {
|
|
20
20
|
nuxt: ">=3.16.0"
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
import type { AccordionRootProps, AccordionRootEmits } from 'reka-ui';
|
|
2
|
+
import type { AppConfig } from '@nuxt/schema';
|
|
3
|
+
import theme from '#build/ui/accordion';
|
|
4
|
+
import type { DynamicSlots, ComponentConfig } from '../types/utils';
|
|
5
|
+
type Accordion = ComponentConfig<typeof theme, AppConfig, 'accordion'>;
|
|
6
|
+
export interface AccordionItem {
|
|
7
|
+
label?: string;
|
|
8
|
+
/**
|
|
9
|
+
* @IconifyIcon
|
|
10
|
+
*/
|
|
11
|
+
icon?: string;
|
|
12
|
+
/**
|
|
13
|
+
* @IconifyIcon
|
|
14
|
+
*/
|
|
15
|
+
trailingIcon?: string;
|
|
16
|
+
slot?: string;
|
|
17
|
+
content?: string;
|
|
18
|
+
/** A unique value for the accordion item. Defaults to the index. */
|
|
19
|
+
value?: string;
|
|
20
|
+
disabled?: boolean;
|
|
21
|
+
class?: any;
|
|
22
|
+
ui?: Pick<Accordion['slots'], 'item' | 'header' | 'trigger' | 'leadingIcon' | 'label' | 'trailingIcon' | 'content' | 'body'>;
|
|
23
|
+
[key: string]: any;
|
|
24
|
+
}
|
|
25
|
+
export interface AccordionProps<T extends AccordionItem = AccordionItem> extends Pick<AccordionRootProps, 'collapsible' | 'defaultValue' | 'modelValue' | 'type' | 'disabled' | 'unmountOnHide'> {
|
|
26
|
+
/**
|
|
27
|
+
* The element or component this component should render as.
|
|
28
|
+
* @defaultValue 'div'
|
|
29
|
+
*/
|
|
30
|
+
as?: any;
|
|
31
|
+
items?: T[];
|
|
32
|
+
/**
|
|
33
|
+
* The icon displayed on the right side of the trigger.
|
|
34
|
+
* @defaultValue appConfig.ui.icons.chevronDown
|
|
35
|
+
* @IconifyIcon
|
|
36
|
+
*/
|
|
37
|
+
trailingIcon?: string;
|
|
38
|
+
/**
|
|
39
|
+
* The key used to get the label from the item.
|
|
40
|
+
* @defaultValue 'label'
|
|
41
|
+
*/
|
|
42
|
+
labelKey?: string;
|
|
43
|
+
class?: any;
|
|
44
|
+
ui?: Accordion['slots'];
|
|
45
|
+
}
|
|
46
|
+
export interface AccordionEmits extends AccordionRootEmits {
|
|
47
|
+
}
|
|
48
|
+
type SlotProps<T extends AccordionItem> = (props: {
|
|
49
|
+
item: T;
|
|
50
|
+
index: number;
|
|
51
|
+
open: boolean;
|
|
52
|
+
}) => any;
|
|
53
|
+
export type AccordionSlots<T extends AccordionItem = AccordionItem> = {
|
|
54
|
+
leading: SlotProps<T>;
|
|
55
|
+
default: SlotProps<T>;
|
|
56
|
+
trailing: SlotProps<T>;
|
|
57
|
+
content: SlotProps<T>;
|
|
58
|
+
body: SlotProps<T>;
|
|
59
|
+
} & DynamicSlots<T, 'body', {
|
|
60
|
+
index: number;
|
|
61
|
+
open: boolean;
|
|
62
|
+
}>;
|
|
63
|
+
declare const __VLS_export: <T extends AccordionItem>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
64
|
+
props: __VLS_PrettifyLocal<AccordionProps<T> & {
|
|
65
|
+
"onUpdate:modelValue"?: ((value: string | string[] | undefined) => any) | undefined;
|
|
66
|
+
}> & import("vue").PublicProps;
|
|
67
|
+
expose: (exposed: {}) => void;
|
|
68
|
+
attrs: any;
|
|
69
|
+
slots: AccordionSlots<T>;
|
|
70
|
+
emit: (evt: "update:modelValue", value: string | string[] | undefined) => void;
|
|
71
|
+
}>) => import("vue").VNode & {
|
|
72
|
+
__ctx?: Awaited<typeof __VLS_setup>;
|
|
73
|
+
};
|
|
74
|
+
declare const _default: typeof __VLS_export;
|
|
75
|
+
export default _default;
|
|
76
|
+
type __VLS_PrettifyLocal<T> = {
|
|
77
|
+
[K in keyof T as K]: T[K];
|
|
78
|
+
} & {};
|
|
@@ -60,17 +60,18 @@ export type AccordionSlots<T extends AccordionItem = AccordionItem> = {
|
|
|
60
60
|
index: number;
|
|
61
61
|
open: boolean;
|
|
62
62
|
}>;
|
|
63
|
-
declare const
|
|
64
|
-
props: __VLS_PrettifyLocal<
|
|
65
|
-
|
|
66
|
-
}
|
|
67
|
-
expose(exposed:
|
|
63
|
+
declare const __VLS_export: <T extends AccordionItem>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
64
|
+
props: __VLS_PrettifyLocal<AccordionProps<T> & {
|
|
65
|
+
"onUpdate:modelValue"?: ((value: string | string[] | undefined) => any) | undefined;
|
|
66
|
+
}> & import("vue").PublicProps;
|
|
67
|
+
expose: (exposed: {}) => void;
|
|
68
68
|
attrs: any;
|
|
69
69
|
slots: AccordionSlots<T>;
|
|
70
70
|
emit: (evt: "update:modelValue", value: string | string[] | undefined) => void;
|
|
71
71
|
}>) => import("vue").VNode & {
|
|
72
72
|
__ctx?: Awaited<typeof __VLS_setup>;
|
|
73
73
|
};
|
|
74
|
+
declare const _default: typeof __VLS_export;
|
|
74
75
|
export default _default;
|
|
75
76
|
type __VLS_PrettifyLocal<T> = {
|
|
76
77
|
[K in keyof T as K]: T[K];
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
import type { AppConfig } from '@nuxt/schema';
|
|
2
|
+
import theme from '#build/ui/alert';
|
|
3
|
+
import type { AvatarProps, ButtonProps } from '../types';
|
|
4
|
+
import type { ComponentConfig } from '../types/utils';
|
|
5
|
+
type Alert = ComponentConfig<typeof theme, AppConfig, 'alert'>;
|
|
6
|
+
export interface AlertProps {
|
|
7
|
+
/**
|
|
8
|
+
* The element or component this component should render as.
|
|
9
|
+
* @defaultValue 'div'
|
|
10
|
+
*/
|
|
11
|
+
as?: any;
|
|
12
|
+
title?: string;
|
|
13
|
+
description?: string;
|
|
14
|
+
/**
|
|
15
|
+
* @IconifyIcon
|
|
16
|
+
*/
|
|
17
|
+
icon?: string;
|
|
18
|
+
avatar?: AvatarProps;
|
|
19
|
+
/**
|
|
20
|
+
* @defaultValue 'primary'
|
|
21
|
+
*/
|
|
22
|
+
color?: Alert['variants']['color'];
|
|
23
|
+
/**
|
|
24
|
+
* @defaultValue 'solid'
|
|
25
|
+
*/
|
|
26
|
+
variant?: Alert['variants']['variant'];
|
|
27
|
+
/**
|
|
28
|
+
* The orientation between the content and the actions.
|
|
29
|
+
* @defaultValue 'vertical'
|
|
30
|
+
*/
|
|
31
|
+
orientation?: Alert['variants']['orientation'];
|
|
32
|
+
/**
|
|
33
|
+
* Display a list of actions:
|
|
34
|
+
* - under the title and description when orientation is `vertical`
|
|
35
|
+
* - next to the close button when orientation is `horizontal`
|
|
36
|
+
* `{ size: 'xs' }`{lang="ts-type"}
|
|
37
|
+
*/
|
|
38
|
+
actions?: ButtonProps[];
|
|
39
|
+
/**
|
|
40
|
+
* Display a close button to dismiss the alert.
|
|
41
|
+
* `{ size: 'md', color: 'neutral', variant: 'link' }`{lang="ts-type"}
|
|
42
|
+
* @emits 'update:open'
|
|
43
|
+
* @defaultValue false
|
|
44
|
+
*/
|
|
45
|
+
close?: boolean | Partial<ButtonProps>;
|
|
46
|
+
/**
|
|
47
|
+
* The icon displayed in the close button.
|
|
48
|
+
* @defaultValue appConfig.ui.icons.close
|
|
49
|
+
* @IconifyIcon
|
|
50
|
+
*/
|
|
51
|
+
closeIcon?: string;
|
|
52
|
+
class?: any;
|
|
53
|
+
ui?: Alert['slots'];
|
|
54
|
+
}
|
|
55
|
+
export interface AlertEmits {
|
|
56
|
+
'update:open': [value: boolean];
|
|
57
|
+
}
|
|
58
|
+
export interface AlertSlots {
|
|
59
|
+
leading(props?: {}): any;
|
|
60
|
+
title(props?: {}): any;
|
|
61
|
+
description(props?: {}): any;
|
|
62
|
+
actions(props?: {}): any;
|
|
63
|
+
close(props: {
|
|
64
|
+
ui: {
|
|
65
|
+
[K in keyof Required<Alert['slots']>]: (props?: Record<string, any>) => string;
|
|
66
|
+
};
|
|
67
|
+
}): any;
|
|
68
|
+
}
|
|
69
|
+
declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<AlertProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
70
|
+
"update:open": (value: boolean) => any;
|
|
71
|
+
}, string, import("vue").PublicProps, Readonly<AlertProps> & Readonly<{
|
|
72
|
+
"onUpdate:open"?: ((value: boolean) => any) | undefined;
|
|
73
|
+
}>, {
|
|
74
|
+
orientation: Alert["variants"]["orientation"];
|
|
75
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, AlertSlots>;
|
|
76
|
+
declare const _default: typeof __VLS_export;
|
|
77
|
+
export default _default;
|
|
78
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
79
|
+
new (): {
|
|
80
|
+
$slots: S;
|
|
81
|
+
};
|
|
82
|
+
};
|
|
@@ -66,13 +66,14 @@ export interface AlertSlots {
|
|
|
66
66
|
};
|
|
67
67
|
}): any;
|
|
68
68
|
}
|
|
69
|
-
declare const
|
|
69
|
+
declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<AlertProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
70
70
|
"update:open": (value: boolean) => any;
|
|
71
71
|
}, string, import("vue").PublicProps, Readonly<AlertProps> & Readonly<{
|
|
72
72
|
"onUpdate:open"?: ((value: boolean) => any) | undefined;
|
|
73
73
|
}>, {
|
|
74
74
|
orientation: Alert["variants"]["orientation"];
|
|
75
75
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, AlertSlots>;
|
|
76
|
+
declare const _default: typeof __VLS_export;
|
|
76
77
|
export default _default;
|
|
77
78
|
type __VLS_WithSlots<T, S> = T & {
|
|
78
79
|
new (): {
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import type { ConfigProviderProps, TooltipProviderProps } from 'reka-ui';
|
|
2
|
+
import type { ToasterProps, Locale, Messages } from '../types';
|
|
3
|
+
export interface AppProps<T extends Messages = Messages> extends Omit<ConfigProviderProps, 'useId' | 'dir' | 'locale'> {
|
|
4
|
+
tooltip?: TooltipProviderProps;
|
|
5
|
+
toaster?: ToasterProps | null;
|
|
6
|
+
locale?: Locale<T>;
|
|
7
|
+
portal?: boolean | string | HTMLElement;
|
|
8
|
+
}
|
|
9
|
+
export interface AppSlots {
|
|
10
|
+
default(props?: {}): any;
|
|
11
|
+
}
|
|
12
|
+
declare const __VLS_export: <T extends Messages>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
13
|
+
props: __VLS_PrettifyLocal<AppProps<T>> & import("vue").PublicProps;
|
|
14
|
+
expose: (exposed: {}) => void;
|
|
15
|
+
attrs: any;
|
|
16
|
+
slots: AppSlots;
|
|
17
|
+
emit: {};
|
|
18
|
+
}>) => import("vue").VNode & {
|
|
19
|
+
__ctx?: Awaited<typeof __VLS_setup>;
|
|
20
|
+
};
|
|
21
|
+
declare const _default: typeof __VLS_export;
|
|
22
|
+
export default _default;
|
|
23
|
+
type __VLS_PrettifyLocal<T> = {
|
|
24
|
+
[K in keyof T as K]: T[K];
|
|
25
|
+
} & {};
|
|
@@ -16,7 +16,7 @@ const props = defineProps({
|
|
|
16
16
|
tooltip: { type: Object, required: false },
|
|
17
17
|
toaster: { type: [Object, null], required: false },
|
|
18
18
|
locale: { type: Object, required: false },
|
|
19
|
-
portal: { type:
|
|
19
|
+
portal: { type: [Boolean, String], required: false, skipCheck: true, default: "body" },
|
|
20
20
|
scrollBody: { type: [Boolean, Object], required: false },
|
|
21
21
|
nonce: { type: String, required: false }
|
|
22
22
|
});
|
|
@@ -4,20 +4,21 @@ export interface AppProps<T extends Messages = Messages> extends Omit<ConfigProv
|
|
|
4
4
|
tooltip?: TooltipProviderProps;
|
|
5
5
|
toaster?: ToasterProps | null;
|
|
6
6
|
locale?: Locale<T>;
|
|
7
|
-
portal?: string | HTMLElement;
|
|
7
|
+
portal?: boolean | string | HTMLElement;
|
|
8
8
|
}
|
|
9
9
|
export interface AppSlots {
|
|
10
10
|
default(props?: {}): any;
|
|
11
11
|
}
|
|
12
|
-
declare const
|
|
13
|
-
props: __VLS_PrettifyLocal<
|
|
14
|
-
expose(exposed:
|
|
12
|
+
declare const __VLS_export: <T extends Messages>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
13
|
+
props: __VLS_PrettifyLocal<AppProps<T>> & import("vue").PublicProps;
|
|
14
|
+
expose: (exposed: {}) => void;
|
|
15
15
|
attrs: any;
|
|
16
16
|
slots: AppSlots;
|
|
17
17
|
emit: {};
|
|
18
18
|
}>) => import("vue").VNode & {
|
|
19
19
|
__ctx?: Awaited<typeof __VLS_setup>;
|
|
20
20
|
};
|
|
21
|
+
declare const _default: typeof __VLS_export;
|
|
21
22
|
export default _default;
|
|
22
23
|
type __VLS_PrettifyLocal<T> = {
|
|
23
24
|
[K in keyof T as K]: T[K];
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import type { AppConfig } from '@nuxt/schema';
|
|
2
|
+
import theme from '#build/ui/avatar';
|
|
3
|
+
import type { ChipProps } from '../types';
|
|
4
|
+
import type { ComponentConfig } from '../types/utils';
|
|
5
|
+
type Avatar = ComponentConfig<typeof theme, AppConfig, 'avatar'>;
|
|
6
|
+
export interface AvatarProps {
|
|
7
|
+
/**
|
|
8
|
+
* The element or component this component should render as.
|
|
9
|
+
* @defaultValue 'span'
|
|
10
|
+
*/
|
|
11
|
+
as?: any;
|
|
12
|
+
src?: string;
|
|
13
|
+
alt?: string;
|
|
14
|
+
/**
|
|
15
|
+
* @IconifyIcon
|
|
16
|
+
*/
|
|
17
|
+
icon?: string;
|
|
18
|
+
text?: string;
|
|
19
|
+
/**
|
|
20
|
+
* @defaultValue 'md'
|
|
21
|
+
*/
|
|
22
|
+
size?: Avatar['variants']['size'];
|
|
23
|
+
chip?: boolean | ChipProps;
|
|
24
|
+
class?: any;
|
|
25
|
+
style?: any;
|
|
26
|
+
ui?: Avatar['slots'];
|
|
27
|
+
}
|
|
28
|
+
export interface AvatarSlots {
|
|
29
|
+
default(props?: {}): any;
|
|
30
|
+
}
|
|
31
|
+
declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<AvatarProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<AvatarProps> & Readonly<{}>, {
|
|
32
|
+
as: any;
|
|
33
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
|
|
34
|
+
default?: (props: {}) => any;
|
|
35
|
+
}>;
|
|
36
|
+
declare const _default: typeof __VLS_export;
|
|
37
|
+
export default _default;
|
|
38
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
39
|
+
new (): {
|
|
40
|
+
$slots: S;
|
|
41
|
+
};
|
|
42
|
+
};
|
|
@@ -28,11 +28,12 @@ export interface AvatarProps {
|
|
|
28
28
|
export interface AvatarSlots {
|
|
29
29
|
default(props?: {}): any;
|
|
30
30
|
}
|
|
31
|
-
declare const
|
|
31
|
+
declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<AvatarProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<AvatarProps> & Readonly<{}>, {
|
|
32
32
|
as: any;
|
|
33
33
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
|
|
34
34
|
default?: (props: {}) => any;
|
|
35
35
|
}>;
|
|
36
|
+
declare const _default: typeof __VLS_export;
|
|
36
37
|
export default _default;
|
|
37
38
|
type __VLS_WithSlots<T, S> = T & {
|
|
38
39
|
new (): {
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import type { AppConfig } from '@nuxt/schema';
|
|
2
|
+
import theme from '#build/ui/avatar-group';
|
|
3
|
+
import type { ComponentConfig } from '../types/utils';
|
|
4
|
+
type AvatarGroup = ComponentConfig<typeof theme, AppConfig, 'avatarGroup'>;
|
|
5
|
+
export interface AvatarGroupProps {
|
|
6
|
+
/**
|
|
7
|
+
* The element or component this component should render as.
|
|
8
|
+
* @defaultValue 'div'
|
|
9
|
+
*/
|
|
10
|
+
as?: any;
|
|
11
|
+
/**
|
|
12
|
+
* @defaultValue 'md'
|
|
13
|
+
*/
|
|
14
|
+
size?: AvatarGroup['variants']['size'];
|
|
15
|
+
/**
|
|
16
|
+
* The maximum number of avatars to display.
|
|
17
|
+
*/
|
|
18
|
+
max?: number | string;
|
|
19
|
+
class?: any;
|
|
20
|
+
ui?: AvatarGroup['slots'];
|
|
21
|
+
}
|
|
22
|
+
export interface AvatarGroupSlots {
|
|
23
|
+
default(props?: {}): any;
|
|
24
|
+
}
|
|
25
|
+
declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<AvatarGroupProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<AvatarGroupProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, AvatarGroupSlots>;
|
|
26
|
+
declare const _default: typeof __VLS_export;
|
|
27
|
+
export default _default;
|
|
28
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
29
|
+
new (): {
|
|
30
|
+
$slots: S;
|
|
31
|
+
};
|
|
32
|
+
};
|
|
@@ -22,7 +22,8 @@ export interface AvatarGroupProps {
|
|
|
22
22
|
export interface AvatarGroupSlots {
|
|
23
23
|
default(props?: {}): any;
|
|
24
24
|
}
|
|
25
|
-
declare const
|
|
25
|
+
declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<AvatarGroupProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<AvatarGroupProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, AvatarGroupSlots>;
|
|
26
|
+
declare const _default: typeof __VLS_export;
|
|
26
27
|
export default _default;
|
|
27
28
|
type __VLS_WithSlots<T, S> = T & {
|
|
28
29
|
new (): {
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import type { AppConfig } from '@nuxt/schema';
|
|
2
|
+
import theme from '#build/ui/badge';
|
|
3
|
+
import type { UseComponentIconsProps } from '../composables/useComponentIcons';
|
|
4
|
+
import type { ComponentConfig } from '../types/utils';
|
|
5
|
+
type Badge = ComponentConfig<typeof theme, AppConfig, 'badge'>;
|
|
6
|
+
export interface BadgeProps extends Omit<UseComponentIconsProps, 'loading' | 'loadingIcon'> {
|
|
7
|
+
/**
|
|
8
|
+
* The element or component this component should render as.
|
|
9
|
+
* @defaultValue 'span'
|
|
10
|
+
*/
|
|
11
|
+
as?: any;
|
|
12
|
+
label?: string | number;
|
|
13
|
+
/**
|
|
14
|
+
* @defaultValue 'primary'
|
|
15
|
+
*/
|
|
16
|
+
color?: Badge['variants']['color'];
|
|
17
|
+
/**
|
|
18
|
+
* @defaultValue 'solid'
|
|
19
|
+
*/
|
|
20
|
+
variant?: Badge['variants']['variant'];
|
|
21
|
+
/**
|
|
22
|
+
* @defaultValue 'md'
|
|
23
|
+
*/
|
|
24
|
+
size?: Badge['variants']['size'];
|
|
25
|
+
/** Render the badge with equal padding on all sides. */
|
|
26
|
+
square?: boolean;
|
|
27
|
+
class?: any;
|
|
28
|
+
ui?: Badge['slots'];
|
|
29
|
+
}
|
|
30
|
+
export interface BadgeSlots {
|
|
31
|
+
leading(props?: {}): any;
|
|
32
|
+
default(props?: {}): any;
|
|
33
|
+
trailing(props?: {}): any;
|
|
34
|
+
}
|
|
35
|
+
declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<BadgeProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<BadgeProps> & Readonly<{}>, {
|
|
36
|
+
as: any;
|
|
37
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, BadgeSlots>;
|
|
38
|
+
declare const _default: typeof __VLS_export;
|
|
39
|
+
export default _default;
|
|
40
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
41
|
+
new (): {
|
|
42
|
+
$slots: S;
|
|
43
|
+
};
|
|
44
|
+
};
|
|
@@ -32,9 +32,10 @@ export interface BadgeSlots {
|
|
|
32
32
|
default(props?: {}): any;
|
|
33
33
|
trailing(props?: {}): any;
|
|
34
34
|
}
|
|
35
|
-
declare const
|
|
35
|
+
declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<BadgeProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<BadgeProps> & Readonly<{}>, {
|
|
36
36
|
as: any;
|
|
37
37
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, BadgeSlots>;
|
|
38
|
+
declare const _default: typeof __VLS_export;
|
|
38
39
|
export default _default;
|
|
39
40
|
type __VLS_WithSlots<T, S> = T & {
|
|
40
41
|
new (): {
|