@nuxt/ui 2.18.3 → 2.18.5
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 +1 -1
- package/dist/module.d.mts +1 -6
- package/dist/module.d.ts +1 -6
- package/dist/module.json +2 -2
- package/dist/module.mjs +16 -8
- package/dist/runtime/components/data/Table.vue +5 -4
- package/dist/runtime/components/data/Table.vue.d.ts +1749 -9
- package/dist/runtime/components/elements/Accordion.vue.d.ts +1014 -9
- package/dist/runtime/components/elements/Alert.vue.d.ts +1257 -7
- package/dist/runtime/components/elements/Avatar.vue.d.ts +53 -7
- package/dist/runtime/components/elements/AvatarGroup.d.ts +6 -6
- package/dist/runtime/components/elements/Badge.vue.d.ts +6 -6
- package/dist/runtime/components/elements/Button.vue.d.ts +280 -10
- package/dist/runtime/components/elements/ButtonGroup.d.ts +7 -7
- package/dist/runtime/components/elements/Carousel.vue.d.ts +857 -7
- package/dist/runtime/components/elements/Chip.vue.d.ts +6 -6
- package/dist/runtime/components/elements/Dropdown.vue.d.ts +639 -10
- package/dist/runtime/components/elements/Icon.vue.d.ts +4 -4
- package/dist/runtime/components/elements/Kbd.vue.d.ts +6 -6
- package/dist/runtime/components/elements/Link.vue +1 -0
- package/dist/runtime/components/elements/Link.vue.d.ts +8 -8
- package/dist/runtime/components/elements/Meter.vue.d.ts +54 -8
- package/dist/runtime/components/elements/MeterGroup.d.ts +9 -7
- package/dist/runtime/components/elements/Progress.vue.d.ts +9 -9
- package/dist/runtime/components/forms/Checkbox.vue.d.ts +9 -9
- package/dist/runtime/components/forms/Form.vue +6 -8
- package/dist/runtime/components/forms/Form.vue.d.ts +13 -6
- package/dist/runtime/components/forms/FormGroup.vue.d.ts +8 -8
- package/dist/runtime/components/forms/Input.vue +1 -2
- package/dist/runtime/components/forms/Input.vue.d.ts +56 -10
- package/dist/runtime/components/forms/InputMenu.vue.d.ts +710 -13
- package/dist/runtime/components/forms/Radio.vue.d.ts +9 -9
- package/dist/runtime/components/forms/RadioGroup.vue +1 -1
- package/dist/runtime/components/forms/RadioGroup.vue.d.ts +188 -8
- package/dist/runtime/components/forms/Range.vue.d.ts +10 -10
- package/dist/runtime/components/forms/Select.vue.d.ts +55 -9
- package/dist/runtime/components/forms/SelectMenu.vue.d.ts +909 -12
- package/dist/runtime/components/forms/Textarea.vue +3 -0
- package/dist/runtime/components/forms/Textarea.vue.d.ts +10 -10
- package/dist/runtime/components/forms/Toggle.vue.d.ts +143 -9
- package/dist/runtime/components/layout/Card.vue.d.ts +6 -6
- package/dist/runtime/components/layout/Container.vue.d.ts +6 -6
- package/dist/runtime/components/layout/Divider.vue.d.ts +408 -7
- package/dist/runtime/components/layout/Skeleton.vue.d.ts +6 -6
- package/dist/runtime/components/navigation/Breadcrumb.vue.d.ts +276 -6
- package/dist/runtime/components/navigation/CommandPalette.vue.d.ts +1729 -9
- package/dist/runtime/components/navigation/CommandPaletteGroup.vue.d.ts +545 -6
- package/dist/runtime/components/navigation/HorizontalNavigation.vue.d.ts +768 -6
- package/dist/runtime/components/navigation/Pagination.vue +4 -0
- package/dist/runtime/components/navigation/Pagination.vue.d.ts +859 -9
- package/dist/runtime/components/navigation/Tabs.vue +9 -2
- package/dist/runtime/components/navigation/Tabs.vue.d.ts +234 -11
- package/dist/runtime/components/navigation/VerticalNavigation.vue.d.ts +1413 -6
- package/dist/runtime/components/overlays/ContextMenu.vue.d.ts +9 -9
- package/dist/runtime/components/overlays/Modal.vue.d.ts +343 -9
- package/dist/runtime/components/overlays/Notification.vue.d.ts +1258 -8
- package/dist/runtime/components/overlays/Notifications.vue.d.ts +1541 -11
- package/dist/runtime/components/overlays/Popover.vue.d.ts +113 -11
- package/dist/runtime/components/overlays/Slideover.vue +2 -2
- package/dist/runtime/components/overlays/Slideover.vue.d.ts +343 -9
- package/dist/runtime/components/overlays/Tooltip.vue.d.ts +107 -9
- package/dist/runtime/composables/useFormGroup.d.ts +2 -2
- package/dist/runtime/composables/useFormGroup.js +17 -19
- package/dist/runtime/composables/useModal.d.ts +1 -1
- package/dist/runtime/composables/usePopper.d.ts +262 -1
- package/dist/runtime/composables/useShortcuts.d.ts +4 -4
- package/dist/runtime/composables/useSlideover.d.ts +1 -1
- package/dist/runtime/composables/useUI.d.ts +1 -1
- package/dist/runtime/plugins/colors.js +5 -5
- package/dist/runtime/types/command-palette.d.ts +2 -2
- package/dist/runtime/ui.config/elements/button.js +9 -9
- package/dist/runtime/ui.config/elements/carousel.js +1 -1
- package/dist/runtime/utils/colors.js +75 -67
- package/dist/runtime/utils/index.d.ts +2 -1
- package/dist/runtime/utils/index.js +5 -1
- package/package.json +26 -28
package/README.md
CHANGED
|
@@ -77,7 +77,7 @@ Licensed under the [MIT license](https://github.com/nuxt/ui/blob/dev/LICENSE.md)
|
|
|
77
77
|
[npm-downloads-href]: https://npmjs.com/package/@nuxt/ui
|
|
78
78
|
|
|
79
79
|
[license-src]: https://img.shields.io/github/license/nuxt/ui.svg?style=flat&colorA=18181B&colorB=28CF8D
|
|
80
|
-
[license-href]: https://github.com/nuxt/ui/blob/main/LICENSE
|
|
80
|
+
[license-href]: https://github.com/nuxt/ui/blob/main/LICENSE.md
|
|
81
81
|
|
|
82
82
|
[nuxt-src]: https://img.shields.io/badge/Nuxt-18181B?logo=nuxt.js
|
|
83
83
|
[nuxt-href]: https://nuxt.com
|
package/dist/module.d.mts
CHANGED
|
@@ -9,11 +9,6 @@ type UI = {
|
|
|
9
9
|
strategy?: Strategy;
|
|
10
10
|
[key: string]: any;
|
|
11
11
|
} & DeepPartial<typeof config, string>;
|
|
12
|
-
declare module 'nuxt/schema' {
|
|
13
|
-
interface AppConfigInput {
|
|
14
|
-
ui?: UI;
|
|
15
|
-
}
|
|
16
|
-
}
|
|
17
12
|
declare module '@nuxt/schema' {
|
|
18
13
|
interface AppConfigInput {
|
|
19
14
|
ui?: UI;
|
|
@@ -34,6 +29,6 @@ interface ModuleOptions {
|
|
|
34
29
|
*/
|
|
35
30
|
disableGlobalStyles?: boolean;
|
|
36
31
|
}
|
|
37
|
-
declare const _default: _nuxt_schema.NuxtModule<ModuleOptions>;
|
|
32
|
+
declare const _default: _nuxt_schema.NuxtModule<ModuleOptions, ModuleOptions, false>;
|
|
38
33
|
|
|
39
34
|
export { type ModuleOptions, _default as default };
|
package/dist/module.d.ts
CHANGED
|
@@ -9,11 +9,6 @@ type UI = {
|
|
|
9
9
|
strategy?: Strategy;
|
|
10
10
|
[key: string]: any;
|
|
11
11
|
} & DeepPartial<typeof config, string>;
|
|
12
|
-
declare module 'nuxt/schema' {
|
|
13
|
-
interface AppConfigInput {
|
|
14
|
-
ui?: UI;
|
|
15
|
-
}
|
|
16
|
-
}
|
|
17
12
|
declare module '@nuxt/schema' {
|
|
18
13
|
interface AppConfigInput {
|
|
19
14
|
ui?: UI;
|
|
@@ -34,6 +29,6 @@ interface ModuleOptions {
|
|
|
34
29
|
*/
|
|
35
30
|
disableGlobalStyles?: boolean;
|
|
36
31
|
}
|
|
37
|
-
declare const _default: _nuxt_schema.NuxtModule<ModuleOptions>;
|
|
32
|
+
declare const _default: _nuxt_schema.NuxtModule<ModuleOptions, ModuleOptions, false>;
|
|
38
33
|
|
|
39
34
|
export { type ModuleOptions, _default as default };
|
package/dist/module.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nuxt/ui",
|
|
3
|
-
"version": "2.18.
|
|
3
|
+
"version": "2.18.5",
|
|
4
4
|
"configKey": "ui",
|
|
5
5
|
"compatibility": {
|
|
6
6
|
"nuxt": ">=3.10.0"
|
|
7
7
|
},
|
|
8
8
|
"builder": {
|
|
9
|
-
"@nuxt/module-builder": "0.8.
|
|
9
|
+
"@nuxt/module-builder": "0.8.4",
|
|
10
10
|
"unbuild": "2.0.0"
|
|
11
11
|
}
|
|
12
12
|
}
|
package/dist/module.mjs
CHANGED
|
@@ -14,7 +14,7 @@ const __filename = __cjs_url__.fileURLToPath(import.meta.url);
|
|
|
14
14
|
const __dirname = __cjs_path__.dirname(__filename);
|
|
15
15
|
const require = __cjs_mod__.createRequire(import.meta.url);
|
|
16
16
|
const name = "@nuxt/ui";
|
|
17
|
-
const version = "2.18.
|
|
17
|
+
const version = "2.18.5";
|
|
18
18
|
|
|
19
19
|
function createTemplates(nuxt = useNuxt()) {
|
|
20
20
|
const template = addTemplate({
|
|
@@ -87,15 +87,23 @@ async function installTailwind(moduleOptions, nuxt = useNuxt(), resolve = create
|
|
|
87
87
|
}
|
|
88
88
|
`
|
|
89
89
|
});
|
|
90
|
+
const { configPath: userTwConfigPath = [], ...twModuleConfig } = nuxt.options.tailwindcss ?? {};
|
|
91
|
+
const twConfigPaths = [
|
|
92
|
+
configTemplate.dst,
|
|
93
|
+
join(nuxt.options.rootDir, "tailwind.config")
|
|
94
|
+
];
|
|
95
|
+
if (typeof userTwConfigPath === "string") {
|
|
96
|
+
twConfigPaths.push(userTwConfigPath);
|
|
97
|
+
} else {
|
|
98
|
+
twConfigPaths.push(...userTwConfigPath);
|
|
99
|
+
}
|
|
90
100
|
await installModule("@nuxtjs/tailwindcss", defu({
|
|
91
101
|
exposeConfig: true,
|
|
92
|
-
config: {
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
// @ts-expect-error - `@nuxtjs/tailwindcss` not installed yet
|
|
98
|
-
}, nuxt.options.tailwindcss));
|
|
102
|
+
config: {
|
|
103
|
+
darkMode: "class"
|
|
104
|
+
},
|
|
105
|
+
configPath: twConfigPaths
|
|
106
|
+
}, twModuleConfig));
|
|
99
107
|
}
|
|
100
108
|
|
|
101
109
|
const _require = createRequire(import.meta.url);
|
|
@@ -73,7 +73,7 @@
|
|
|
73
73
|
<template v-for="(row, index) in rows" :key="index">
|
|
74
74
|
<tr :class="[ui.tr.base, isSelected(row) && ui.tr.selected, $attrs.onSelect && ui.tr.active, row?.class]" @click="() => onSelect(row)">
|
|
75
75
|
<td v-if="modelValue" :class="ui.checkbox.padding">
|
|
76
|
-
<UCheckbox v-model="selected" :value="row" v-bind="ui.default.checkbox" aria-label="Select row" @click.stop />
|
|
76
|
+
<UCheckbox v-model="selected" :value="row" v-bind="ui.default.checkbox" aria-label="Select row" @click.capture.stop="() => onSelect(row)" />
|
|
77
77
|
</td>
|
|
78
78
|
|
|
79
79
|
<td
|
|
@@ -286,12 +286,13 @@ export default defineComponent({
|
|
|
286
286
|
$attrs.onSelect(row);
|
|
287
287
|
}
|
|
288
288
|
function selectAllRows() {
|
|
289
|
+
const newSelected = [...selected.value];
|
|
289
290
|
props.rows.forEach((row) => {
|
|
290
|
-
if (isSelected(row)) {
|
|
291
|
-
|
|
291
|
+
if (!isSelected(row)) {
|
|
292
|
+
newSelected.push(row);
|
|
292
293
|
}
|
|
293
|
-
selected.value.push(row);
|
|
294
294
|
});
|
|
295
|
+
selected.value = newSelected;
|
|
295
296
|
}
|
|
296
297
|
function onChange(checked) {
|
|
297
298
|
if (checked) {
|