@nuxt/ui 2.8.0 → 2.8.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/dist/module.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nuxt/ui",
3
- "version": "2.8.0",
3
+ "version": "2.8.1",
4
4
  "configKey": "ui",
5
5
  "compatibility": {
6
6
  "nuxt": "^3.0.0-rc.8"
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.8.0";
17
+ const version = "2.8.1";
18
18
 
19
19
  const colorsToExclude = [
20
20
  "inherit",
@@ -7,7 +7,6 @@
7
7
  <script>
8
8
  import { provide, ref, defineComponent } from "vue";
9
9
  import { useEventBus } from "@vueuse/core";
10
- import { safeParseAsync } from "valibot";
11
10
  export default defineComponent({
12
11
  props: {
13
12
  schema: {
@@ -174,8 +173,8 @@ function isValibotSchema(schema) {
174
173
  return schema._parse !== void 0;
175
174
  }
176
175
  async function getValibotError(state, schema) {
177
- const result = await safeParseAsync(schema, state);
178
- if (result.success === false) {
176
+ const result = await schema._parse(state);
177
+ if (result.issues) {
179
178
  return result.issues.map((issue) => ({
180
179
  path: issue.path.map((p) => p.key).join("."),
181
180
  message: issue.message
@@ -2,7 +2,7 @@ import { type PropType } from 'vue';
2
2
  import type { ZodSchema } from 'zod';
3
3
  import type { Schema as JoiSchema } from 'joi';
4
4
  import type { ObjectSchema as YupObjectSchema } from 'yup';
5
- import type { ObjectSchema as ValibotObjectSchema } from 'valibot';
5
+ import type { ObjectSchemaAsync as ValibotObjectSchema } from 'valibot';
6
6
  import type { FormError, FormEventType } from '../../types/form';
7
7
  declare const _default: import("vue").DefineComponent<{
8
8
  schema: {
@@ -14,7 +14,7 @@
14
14
 
15
15
  <UButton
16
16
  v-for="(page, index) of displayedPages"
17
- :key="index"
17
+ :key="`${page}-${index}`"
18
18
  :size="size"
19
19
  :label="`${page}`"
20
20
  v-bind="page === currentPage ? { ...ui.default.activeButton, ...activeButton } : { ...ui.default.inactiveButton, ...inactiveButton }"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nuxt/ui",
3
- "version": "2.8.0",
3
+ "version": "2.8.1",
4
4
  "repository": "https://github.com/nuxt/ui",
5
5
  "license": "MIT",
6
6
  "exports": {