diff --git a/apps/www/.vitepress/theme/components/DocsBreadcrumb.vue b/apps/www/.vitepress/theme/components/DocsBreadcrumb.vue index 9873fb8a..bcb56a32 100644 --- a/apps/www/.vitepress/theme/components/DocsBreadcrumb.vue +++ b/apps/www/.vitepress/theme/components/DocsBreadcrumb.vue @@ -6,7 +6,6 @@ import { BreadcrumbItem, BreadcrumbLink, BreadcrumbList, - BreadcrumbPage, BreadcrumbSeparator, } from '@/lib/registry/new-york/ui/breadcrumb' diff --git a/apps/www/.vitepress/theme/components/LandingPage.vue b/apps/www/.vitepress/theme/components/LandingPage.vue index aae8de0b..6a6a7dd0 100644 --- a/apps/www/.vitepress/theme/components/LandingPage.vue +++ b/apps/www/.vitepress/theme/components/LandingPage.vue @@ -8,7 +8,6 @@ import Announcement from '../components/Announcement.vue' import GitHubIcon from '~icons/radix-icons/github-logo' import { buttonVariants } from '@/lib/registry/new-york/ui/button' -import { Separator } from '@/lib/registry/new-york/ui/separator' import { cn } from '@/lib/utils' import MailExample from '@/examples/mail/Example.vue' diff --git a/apps/www/.vitepress/theme/components/MobileNav.vue b/apps/www/.vitepress/theme/components/MobileNav.vue index 73a7dcae..c6d0916c 100644 --- a/apps/www/.vitepress/theme/components/MobileNav.vue +++ b/apps/www/.vitepress/theme/components/MobileNav.vue @@ -5,7 +5,6 @@ import Logo from './Logo.vue' import { Sheet, SheetContent, SheetTrigger } from '@/lib/registry/default/ui/sheet' import { Button } from '@/lib/registry/default/ui/button' import { ScrollArea } from '@/lib/registry/default/ui/scroll-area' -import { Badge } from '@/lib/registry/new-york/ui/badge' const open = ref(false) diff --git a/apps/www/.vitepress/theme/layout/DocsLayout.vue b/apps/www/.vitepress/theme/layout/DocsLayout.vue index c46b3d11..d4ad12e0 100644 --- a/apps/www/.vitepress/theme/layout/DocsLayout.vue +++ b/apps/www/.vitepress/theme/layout/DocsLayout.vue @@ -7,7 +7,6 @@ import DocsBreadcrumb from '../components/DocsBreadcrumb.vue' import { ScrollArea } from '@/lib/registry/default/ui/scroll-area' import RadixIconsCode from '~icons/radix-icons/code' import RadixIconsExternalLink from '~icons/radix-icons/external-link' -import ChevronRightIcon from '~icons/lucide/chevron-right' const $route = useRoute() const { frontmatter } = useData() diff --git a/apps/www/.vitepress/theme/layout/ExamplesLayout.vue b/apps/www/.vitepress/theme/layout/ExamplesLayout.vue index 18b0bf78..30db29d6 100644 --- a/apps/www/.vitepress/theme/layout/ExamplesLayout.vue +++ b/apps/www/.vitepress/theme/layout/ExamplesLayout.vue @@ -7,7 +7,6 @@ import ExamplesNav from '../components/ExamplesNav.vue' import Announcement from '../components/Announcement.vue' import { buttonVariants } from '@/lib/registry/new-york/ui/button' -import { Separator } from '@/lib/registry/new-york/ui/separator' import { cn } from '@/lib/utils' diff --git a/apps/www/.vitepress/theme/layout/MainLayout.vue b/apps/www/.vitepress/theme/layout/MainLayout.vue index 13ebeaf7..1b67e924 100644 --- a/apps/www/.vitepress/theme/layout/MainLayout.vue +++ b/apps/www/.vitepress/theme/layout/MainLayout.vue @@ -303,7 +303,7 @@ watch(() => $route.path, (n) => { - + diff --git a/apps/www/.vitepress/theme/styles/vp-doc.css b/apps/www/.vitepress/theme/styles/vp-doc.css index d088d325..b100cefd 100644 --- a/apps/www/.vitepress/theme/styles/vp-doc.css +++ b/apps/www/.vitepress/theme/styles/vp-doc.css @@ -351,8 +351,8 @@ width: calc(100% + 2 * 24px); display: inline-block; @apply bg-[hsl(var(--foreground))] dark:bg-[hsl(var(--background)_/_50%)] -} -hsl(var(--foreground) / 50%) +} + .vp-doc [class*='language-'] code .highlighted.error { background-color: var(--vp-code-line-error-color); } diff --git a/apps/www/__registry__/index.ts b/apps/www/__registry__/index.ts index 5597865c..4a20e476 100644 --- a/apps/www/__registry__/index.ts +++ b/apps/www/__registry__/index.ts @@ -948,6 +948,13 @@ export const Index = { component: () => import("../src/lib/registry/default/example/SonnerDemo.vue").then((m) => m.default), files: ["../src/lib/registry/default/example/SonnerDemo.vue"], }, + "SonnerWithDialog": { + name: "SonnerWithDialog", + type: "components:example", + registryDependencies: ["button","dialog"], + component: () => import("../src/lib/registry/default/example/SonnerWithDialog.vue").then((m) => m.default), + files: ["../src/lib/registry/default/example/SonnerWithDialog.vue"], + }, "SwitchDemo": { name: "SwitchDemo", type: "components:example", @@ -1308,7 +1315,7 @@ export const Index = { "ActivityGoal": { name: "ActivityGoal", type: "components:example", - registryDependencies: ["button","card","themes","config"], + registryDependencies: ["button","card"], component: () => import("../src/lib/registry/default/example/Cards/ActivityGoal.vue").then((m) => m.default), files: ["../src/lib/registry/default/example/Cards/ActivityGoal.vue"], }, @@ -1322,7 +1329,7 @@ export const Index = { "Metric": { name: "Metric", type: "components:example", - registryDependencies: ["card","config"], + registryDependencies: ["card"], component: () => import("../src/lib/registry/default/example/Cards/Metric.vue").then((m) => m.default), files: ["../src/lib/registry/default/example/Cards/Metric.vue"], }, @@ -2349,6 +2356,13 @@ export const Index = { component: () => import("../src/lib/registry/new-york/example/SonnerDemo.vue").then((m) => m.default), files: ["../src/lib/registry/new-york/example/SonnerDemo.vue"], }, + "SonnerWithDialog": { + name: "SonnerWithDialog", + type: "components:example", + registryDependencies: ["button","dialog"], + component: () => import("../src/lib/registry/new-york/example/SonnerWithDialog.vue").then((m) => m.default), + files: ["../src/lib/registry/new-york/example/SonnerWithDialog.vue"], + }, "SwitchDemo": { name: "SwitchDemo", type: "components:example", @@ -2709,7 +2723,7 @@ export const Index = { "ActivityGoal": { name: "ActivityGoal", type: "components:example", - registryDependencies: ["button","card","themes","config"], + registryDependencies: ["button","card"], component: () => import("../src/lib/registry/new-york/example/Cards/ActivityGoal.vue").then((m) => m.default), files: ["../src/lib/registry/new-york/example/Cards/ActivityGoal.vue"], }, @@ -2723,7 +2737,7 @@ export const Index = { "Metric": { name: "Metric", type: "components:example", - registryDependencies: ["card","config"], + registryDependencies: ["card"], component: () => import("../src/lib/registry/new-york/example/Cards/Metric.vue").then((m) => m.default), files: ["../src/lib/registry/new-york/example/Cards/Metric.vue"], }, diff --git a/apps/www/src/content/docs/components/breadcrumb.md b/apps/www/src/content/docs/components/breadcrumb.md index c4b0d534..3e31b094 100644 --- a/apps/www/src/content/docs/components/breadcrumb.md +++ b/apps/www/src/content/docs/components/breadcrumb.md @@ -22,7 +22,7 @@ import { BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, -} from '@/lib/components/ui/breadcrumb' +} from '@/components/ui/breadcrumb' @@ -65,7 +65,7 @@ import { BreadcrumbLink, BreadcrumbList, BreadcrumbSeparator, -} from '@/lib/components/ui/breadcrumb' +} from '@/components/ui/breadcrumb' @@ -106,7 +106,7 @@ import { DropdownMenuTrigger, } from '@/lib/components/ui/dropdown-menu' -import { BreadcrumbItem } from '@/lib/components/ui/breadcrumb' +import { BreadcrumbItem } from '@/components/ui/breadcrumb' import ChevronDownIcon from '~icons/radix-icons/chevron-down' @@ -143,7 +143,7 @@ import { BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbList, -} from '@/lib/components/ui/breadcrumb' +} from '@/components/ui/breadcrumb' @@ -175,7 +175,7 @@ import { BreadcrumbItem, BreadcrumbLink, BreadcrumbList, -} from '@/lib/components/ui/breadcrumb' +} from '@/components/ui/breadcrumb' diff --git a/apps/www/src/content/docs/components/sonner.md b/apps/www/src/content/docs/components/sonner.md index 733276b0..c78cf2e8 100644 --- a/apps/www/src/content/docs/components/sonner.md +++ b/apps/www/src/content/docs/components/sonner.md @@ -61,3 +61,23 @@ import { Button } from '@/components/ui/button' ``` + +## Examples + +### Sonner with Dialog + +Related issue https://github.com/radix-vue/shadcn-vue/issues/462 + +Add `pointer-events-auto` class to Toaster component in your `App.vue` file: + +```vue {6} + + + + + +``` + + diff --git a/apps/www/src/content/docs/installation/astro.md b/apps/www/src/content/docs/installation/astro.md index 470de011..b268ed1f 100644 --- a/apps/www/src/content/docs/installation/astro.md +++ b/apps/www/src/content/docs/installation/astro.md @@ -104,7 +104,7 @@ Would you like to use TypeScript (recommended)? no / yes Which framework are you using? Astro Which style would you like to use? › Default Which color would you like to use as base color? › Slate -Where is your tsconfig.json located? › ./tsconfig.json +Where is your tsconfig.json or jsconfig.json file? › ./tsconfig.json Where is your global CSS file? › src/styles/globals.css Do you want to use CSS variables for colors? › no / yes Where is your tailwind.config located? › tailwind.config.mjs diff --git a/apps/www/src/content/docs/installation/laravel.md b/apps/www/src/content/docs/installation/laravel.md index a86bc62f..fc8fd8ae 100644 --- a/apps/www/src/content/docs/installation/laravel.md +++ b/apps/www/src/content/docs/installation/laravel.md @@ -30,12 +30,13 @@ Would you like to use TypeScript (recommended)? no / yes Which framework are you using? Vite / Nuxt / Laravel Which style would you like to use? › Default Which color would you like to use as base color? › Slate -Where is your tsconfig.json located? › ./tsconfig.json +Where is your tsconfig.json or jsconfig.json file? › ./tsconfig.json Where is your global CSS file? › resources/css/app.css Do you want to use CSS variables for colors? › no / yes Where is your tailwind.config.js located? › tailwind.config.js Configure the import alias for components: › @/Components Configure the import alias for utils: › @/lib/utils +Write configuration to components.json. Proceed? > Y/n ``` ### Update tailwind.config.js diff --git a/apps/www/src/content/docs/installation/nuxt.md b/apps/www/src/content/docs/installation/nuxt.md index 13c1b018..d6b6f812 100644 --- a/apps/www/src/content/docs/installation/nuxt.md +++ b/apps/www/src/content/docs/installation/nuxt.md @@ -184,12 +184,13 @@ Would you like to use TypeScript (recommended)? no / yes Which framework are you using? Vite / Nuxt / Laravel Which style would you like to use? › Default Which color would you like to use as base color? › Slate -Where is your tsconfig.json located? › ./tsconfig.json +Where is your tsconfig.json or jsconfig.json file? › ./tsconfig.json Where is your global CSS file? › › src/index.css Do you want to use CSS variables for colors? › no / yes Where is your tailwind.config.js located? › tailwind.config.js Configure the import alias for components: › @/components Configure the import alias for utils: › @/lib/utils +Write configuration to components.json. Proceed? > Y/n ``` ### App structure diff --git a/apps/www/src/content/docs/installation/vite.md b/apps/www/src/content/docs/installation/vite.md index 5f99b6c6..9505faf2 100644 --- a/apps/www/src/content/docs/installation/vite.md +++ b/apps/www/src/content/docs/installation/vite.md @@ -159,12 +159,13 @@ Would you like to use TypeScript (recommended)? no / yes Which framework are you using? Vite / Nuxt / Laravel Which style would you like to use? › Default Which color would you like to use as base color? › Slate -Where is your tsconfig.json located? › ./tsconfig.json +Where is your tsconfig.json or jsconfig.json file? › ./tsconfig.json Where is your global CSS file? › › src/index.css Do you want to use CSS variables for colors? › no / yes Where is your tailwind.config.js located? › tailwind.config.js Configure the import alias for components: › @/components Configure the import alias for utils: › @/lib/utils +Write configuration to components.json. Proceed? > Y/n ``` ### Update main.ts diff --git a/apps/www/src/lib/registry/default/block/Dashboard05.vue b/apps/www/src/lib/registry/default/block/Dashboard05.vue index a68f2a92..bdb52d2c 100644 --- a/apps/www/src/lib/registry/default/block/Dashboard05.vue +++ b/apps/www/src/lib/registry/default/block/Dashboard05.vue @@ -6,8 +6,6 @@ export const containerClass = 'w-full h-full' + + + + + + Dialog with toast + + + { + const target = event.target as HTMLElement; + if (target?.closest('[data-sonner-toaster]')) return event.preventDefault() + }" + > + + Vue Sonner Toast + Dialog with toast + + + { + toast('Event has been created', { + description: 'Sunday, December 03, 2023 at 9:00 AM', + action: { + label: 'Undo', + onClick: () => console.log('Undo'), + }, + }); + } + " + > + Toast + + + + + diff --git a/apps/www/src/lib/registry/default/example/VDatePickerWithRange.vue b/apps/www/src/lib/registry/default/example/VDatePickerWithRange.vue index 5f6e0be8..eff99265 100644 --- a/apps/www/src/lib/registry/default/example/VDatePickerWithRange.vue +++ b/apps/www/src/lib/registry/default/example/VDatePickerWithRange.vue @@ -26,7 +26,7 @@ const date = ref({ id="date" :variant="'outline'" :class="cn( - 'w-[300px] justify-start text-left font-normal', + 'w-[280px] justify-start text-left font-normal', !date && 'text-muted-foreground', )" > diff --git a/apps/www/src/lib/registry/default/example/VRangePickerWithSlot.vue b/apps/www/src/lib/registry/default/example/VRangePickerWithSlot.vue index e71e81cd..235f69bc 100644 --- a/apps/www/src/lib/registry/default/example/VRangePickerWithSlot.vue +++ b/apps/www/src/lib/registry/default/example/VRangePickerWithSlot.vue @@ -26,7 +26,7 @@ const date = ref({ id="date" :variant="'outline'" :class="cn( - 'w-[300px] justify-start text-left font-normal', + 'w-[280px] justify-start text-left font-normal', !date && 'text-muted-foreground', )" > diff --git a/apps/www/src/lib/registry/default/ui/auto-form/AutoFormFieldEnum.vue b/apps/www/src/lib/registry/default/ui/auto-form/AutoFormFieldEnum.vue index 5f7d7922..49f6fc73 100644 --- a/apps/www/src/lib/registry/default/ui/auto-form/AutoFormFieldEnum.vue +++ b/apps/www/src/lib/registry/default/ui/auto-form/AutoFormFieldEnum.vue @@ -1,5 +1,4 @@ + + + + + + Dialog with toast + + + { + const target = event.target as HTMLElement; + if (target?.closest('[data-sonner-toaster]')) return event.preventDefault() + }" + > + + Vue Sonner Toast + Dialog with toast + + + { + toast('Event has been created', { + description: 'Sunday, December 03, 2023 at 9:00 AM', + action: { + label: 'Undo', + onClick: () => console.log('Undo'), + }, + }); + } + " + > + Toast + + + + + diff --git a/apps/www/src/lib/registry/new-york/example/VDatePickerWithRange.vue b/apps/www/src/lib/registry/new-york/example/VDatePickerWithRange.vue index 1fe0fe65..77e8db74 100644 --- a/apps/www/src/lib/registry/new-york/example/VDatePickerWithRange.vue +++ b/apps/www/src/lib/registry/new-york/example/VDatePickerWithRange.vue @@ -26,7 +26,7 @@ const date = ref({ id="date" :variant="'outline'" :class="cn( - 'w-[300px] justify-start text-left font-normal', + 'w-[280px] justify-start text-left font-normal', !date && 'text-muted-foreground', )" > diff --git a/apps/www/src/lib/registry/new-york/example/VRangePickerWithSlot.vue b/apps/www/src/lib/registry/new-york/example/VRangePickerWithSlot.vue index f655cc76..1eae6e7a 100644 --- a/apps/www/src/lib/registry/new-york/example/VRangePickerWithSlot.vue +++ b/apps/www/src/lib/registry/new-york/example/VRangePickerWithSlot.vue @@ -26,7 +26,7 @@ const date = ref({ id="date" :variant="'outline'" :class="cn( - 'w-[300px] justify-start text-left font-normal', + 'w-[280px] justify-start text-left font-normal', !date && 'text-muted-foreground', )" > diff --git a/apps/www/src/lib/registry/new-york/ui/auto-form/AutoFormFieldEnum.vue b/apps/www/src/lib/registry/new-york/ui/auto-form/AutoFormFieldEnum.vue index 46308736..ba6c8feb 100644 --- a/apps/www/src/lib/registry/new-york/ui/auto-form/AutoFormFieldEnum.vue +++ b/apps/www/src/lib/registry/new-york/ui/auto-form/AutoFormFieldEnum.vue @@ -1,5 +1,4 @@ \n\n\n \n \n \n {{ config?.label || beautifyObjectName(label ?? fieldName) }}\n \n \n \n \n \n \n {{ beautifyObjectName(option) }}\n \n \n\n \n \n \n \n \n \n {{ beautifyObjectName(option) }}\n \n \n \n \n \n\n \n {{ config.description }}\n \n \n \n \n\n" + "content": "\n\n\n \n \n \n {{ config?.label || beautifyObjectName(label ?? fieldName) }}\n \n \n \n \n \n \n {{ beautifyObjectName(option) }}\n \n \n\n \n \n \n \n \n \n {{ beautifyObjectName(option) }}\n \n \n \n \n \n\n \n {{ config.description }}\n \n \n \n \n\n" }, { "name": "AutoFormFieldFile.vue", @@ -80,7 +80,7 @@ }, { "name": "interface.ts", - "content": "import type { Component, InputHTMLAttributes, SelectHTMLAttributes } from 'vue'\nimport type { ZodAny, z } from 'zod'\nimport type { INPUT_COMPONENTS } from './constant'\n\nexport interface FieldProps {\n fieldName: string\n label?: string\n required?: boolean\n config?: ConfigItem\n disabled?: boolean\n}\n\nexport interface Shape {\n type: string\n default?: any\n required?: boolean\n options?: string[]\n schema?: ZodAny\n}\n\nexport interface ConfigItem {\n /** Value for the `FormLabel` */\n label?: string\n /** Value for the `FormDescription` */\n description?: string\n /** Pick which component to be rendered. */\n component?: keyof typeof INPUT_COMPONENTS | Component\n /** Hide `FormLabel`. */\n hideLabel?: boolean\n inputProps?: InputHTMLAttributes\n}\n\n// Define a type to unwrap an array\ntype UnwrapArray = T extends (infer U)[] ? U : never\n\nexport type Config = {\n // If SchemaType.key is an object, create a nested Config, otherwise ConfigItem\n [Key in keyof SchemaType]?:\n SchemaType[Key] extends any[]\n ? UnwrapArray>\n : SchemaType[Key] extends object\n ? Config\n : ConfigItem;\n}\n\nexport enum DependencyType {\n DISABLES,\n REQUIRES,\n HIDES,\n SETS_OPTIONS,\n}\n\ninterface BaseDependency>> {\n sourceField: keyof SchemaType\n type: DependencyType\n targetField: keyof SchemaType\n when: (sourceFieldValue: any, targetFieldValue: any) => boolean\n}\n\nexport type ValueDependency>> =\n BaseDependency & {\n type:\n | DependencyType.DISABLES\n | DependencyType.REQUIRES\n | DependencyType.HIDES\n }\n\nexport type EnumValues = readonly [string, ...string[]]\n\nexport type OptionsDependency<\n SchemaType extends z.infer>,\n> = BaseDependency & {\n type: DependencyType.SETS_OPTIONS\n\n // Partial array of values from sourceField that will trigger the dependency\n options: EnumValues\n}\n\nexport type Dependency>> =\n | ValueDependency\n | OptionsDependency\n" + "content": "import type { Component, InputHTMLAttributes } from 'vue'\nimport type { ZodAny, z } from 'zod'\nimport type { INPUT_COMPONENTS } from './constant'\n\nexport interface FieldProps {\n fieldName: string\n label?: string\n required?: boolean\n config?: ConfigItem\n disabled?: boolean\n}\n\nexport interface Shape {\n type: string\n default?: any\n required?: boolean\n options?: string[]\n schema?: ZodAny\n}\n\nexport interface ConfigItem {\n /** Value for the `FormLabel` */\n label?: string\n /** Value for the `FormDescription` */\n description?: string\n /** Pick which component to be rendered. */\n component?: keyof typeof INPUT_COMPONENTS | Component\n /** Hide `FormLabel`. */\n hideLabel?: boolean\n inputProps?: InputHTMLAttributes\n}\n\n// Define a type to unwrap an array\ntype UnwrapArray = T extends (infer U)[] ? U : never\n\nexport type Config = {\n // If SchemaType.key is an object, create a nested Config, otherwise ConfigItem\n [Key in keyof SchemaType]?:\n SchemaType[Key] extends any[]\n ? UnwrapArray>\n : SchemaType[Key] extends object\n ? Config\n : ConfigItem;\n}\n\nexport enum DependencyType {\n DISABLES,\n REQUIRES,\n HIDES,\n SETS_OPTIONS,\n}\n\ninterface BaseDependency>> {\n sourceField: keyof SchemaType\n type: DependencyType\n targetField: keyof SchemaType\n when: (sourceFieldValue: any, targetFieldValue: any) => boolean\n}\n\nexport type ValueDependency>> =\n BaseDependency & {\n type:\n | DependencyType.DISABLES\n | DependencyType.REQUIRES\n | DependencyType.HIDES\n }\n\nexport type EnumValues = readonly [string, ...string[]]\n\nexport type OptionsDependency<\n SchemaType extends z.infer>,\n> = BaseDependency & {\n type: DependencyType.SETS_OPTIONS\n\n // Partial array of values from sourceField that will trigger the dependency\n options: EnumValues\n}\n\nexport type Dependency>> =\n | ValueDependency\n | OptionsDependency\n" }, { "name": "utils.ts", diff --git a/apps/www/src/public/registry/styles/default/chart-bar.json b/apps/www/src/public/registry/styles/default/chart-bar.json index e3905d42..3c01939a 100644 --- a/apps/www/src/public/registry/styles/default/chart-bar.json +++ b/apps/www/src/public/registry/styles/default/chart-bar.json @@ -12,7 +12,7 @@ "files": [ { "name": "BarChart.vue", - "content": "\n\n\n \n \n\n \n \n\n i\"\n :y=\"categories.map(category => (d: Data) => d[category]) \"\n :color=\"colors\"\n :rounded-corners=\"roundedCorners\"\n :bar-padding=\"0.05\"\n :attributes=\"{\n [selectorsBar]: {\n opacity: (d: Data, i:number) => {\n const pos = i % categories.length\n return legendItems[pos]?.inactive ? filterOpacity : 1\n },\n },\n }\"\n />\n\n data[v]?.[index])\"\n :grid-line=\"false\"\n :tick-line=\"false\"\n tick-text-color=\"hsl(var(--vis-text-color))\"\n />\n \n\n \n \n \n\n" + "content": "\n\n\n \n \n\n \n \n\n i\"\n :y=\"categories.map(category => (d: Data) => d[category]) \"\n :color=\"colors\"\n :rounded-corners=\"roundedCorners\"\n :bar-padding=\"0.05\"\n :attributes=\"{\n [selectorsBar]: {\n opacity: (d: Data, i:number) => {\n const pos = i % categories.length\n return legendItems[pos]?.inactive ? filterOpacity : 1\n },\n },\n }\"\n />\n\n data[v]?.[index])\"\n :grid-line=\"false\"\n :tick-line=\"false\"\n tick-text-color=\"hsl(var(--vis-text-color))\"\n />\n \n\n \n \n \n\n" }, { "name": "index.ts", diff --git a/apps/www/src/public/registry/styles/default/v-calendar.json b/apps/www/src/public/registry/styles/default/v-calendar.json index e89b70ab..157f34db 100644 --- a/apps/www/src/public/registry/styles/default/v-calendar.json +++ b/apps/www/src/public/registry/styles/default/v-calendar.json @@ -11,7 +11,7 @@ "files": [ { "name": "Calendar.vue", - "content": "\n\n\n \n \n \n \n \n \n \n \n \n\n \n \n \n \n\n \n \n \n\n \n \n \n \n \n\n\n\n" + "content": "\n\n\n \n \n \n \n \n \n \n \n \n\n \n \n \n \n\n \n \n \n\n \n \n \n \n \n\n\n\n" }, { "name": "index.ts", diff --git a/apps/www/src/public/registry/styles/new-york/area-chart.json b/apps/www/src/public/registry/styles/new-york/area-chart.json index 891c5dce..4cf4d8ab 100644 --- a/apps/www/src/public/registry/styles/new-york/area-chart.json +++ b/apps/www/src/public/registry/styles/new-york/area-chart.json @@ -16,4 +16,4 @@ } ], "type": "components:ui" -} \ No newline at end of file +} diff --git a/apps/www/src/public/registry/styles/new-york/auto-form.json b/apps/www/src/public/registry/styles/new-york/auto-form.json index f32084dc..dec7e367 100644 --- a/apps/www/src/public/registry/styles/new-york/auto-form.json +++ b/apps/www/src/public/registry/styles/new-york/auto-form.json @@ -44,7 +44,7 @@ }, { "name": "AutoFormFieldEnum.vue", - "content": "\n\n\n \n \n \n {{ config?.label || beautifyObjectName(label ?? fieldName) }}\n \n \n \n \n \n \n {{ beautifyObjectName(option) }}\n \n \n\n \n \n \n \n \n \n {{ beautifyObjectName(option) }}\n \n \n \n \n \n\n \n {{ config.description }}\n \n \n \n \n\n" + "content": "\n\n\n \n \n \n {{ config?.label || beautifyObjectName(label ?? fieldName) }}\n \n \n \n \n \n \n {{ beautifyObjectName(option) }}\n \n \n\n \n \n \n \n \n \n {{ beautifyObjectName(option) }}\n \n \n \n \n \n\n \n {{ config.description }}\n \n \n \n \n\n" }, { "name": "AutoFormFieldFile.vue", @@ -80,7 +80,7 @@ }, { "name": "interface.ts", - "content": "import type { Component, InputHTMLAttributes, SelectHTMLAttributes } from 'vue'\nimport type { ZodAny, z } from 'zod'\nimport type { INPUT_COMPONENTS } from './constant'\n\nexport interface FieldProps {\n fieldName: string\n label?: string\n required?: boolean\n config?: ConfigItem\n disabled?: boolean\n}\n\nexport interface Shape {\n type: string\n default?: any\n required?: boolean\n options?: string[]\n schema?: ZodAny\n}\n\nexport interface ConfigItem {\n /** Value for the `FormLabel` */\n label?: string\n /** Value for the `FormDescription` */\n description?: string\n /** Pick which component to be rendered. */\n component?: keyof typeof INPUT_COMPONENTS | Component\n /** Hide `FormLabel`. */\n hideLabel?: boolean\n inputProps?: InputHTMLAttributes\n}\n\n// Define a type to unwrap an array\ntype UnwrapArray = T extends (infer U)[] ? U : never\n\nexport type Config = {\n // If SchemaType.key is an object, create a nested Config, otherwise ConfigItem\n [Key in keyof SchemaType]?:\n SchemaType[Key] extends any[]\n ? UnwrapArray>\n : SchemaType[Key] extends object\n ? Config\n : ConfigItem;\n}\n\nexport enum DependencyType {\n DISABLES,\n REQUIRES,\n HIDES,\n SETS_OPTIONS,\n}\n\ninterface BaseDependency>> {\n sourceField: keyof SchemaType\n type: DependencyType\n targetField: keyof SchemaType\n when: (sourceFieldValue: any, targetFieldValue: any) => boolean\n}\n\nexport type ValueDependency>> =\n BaseDependency & {\n type:\n | DependencyType.DISABLES\n | DependencyType.REQUIRES\n | DependencyType.HIDES\n }\n\nexport type EnumValues = readonly [string, ...string[]]\n\nexport type OptionsDependency<\n SchemaType extends z.infer>,\n> = BaseDependency & {\n type: DependencyType.SETS_OPTIONS\n\n // Partial array of values from sourceField that will trigger the dependency\n options: EnumValues\n}\n\nexport type Dependency>> =\n | ValueDependency\n | OptionsDependency\n" + "content": "import type { Component, InputHTMLAttributes } from 'vue'\nimport type { ZodAny, z } from 'zod'\nimport type { INPUT_COMPONENTS } from './constant'\n\nexport interface FieldProps {\n fieldName: string\n label?: string\n required?: boolean\n config?: ConfigItem\n disabled?: boolean\n}\n\nexport interface Shape {\n type: string\n default?: any\n required?: boolean\n options?: string[]\n schema?: ZodAny\n}\n\nexport interface ConfigItem {\n /** Value for the `FormLabel` */\n label?: string\n /** Value for the `FormDescription` */\n description?: string\n /** Pick which component to be rendered. */\n component?: keyof typeof INPUT_COMPONENTS | Component\n /** Hide `FormLabel`. */\n hideLabel?: boolean\n inputProps?: InputHTMLAttributes\n}\n\n// Define a type to unwrap an array\ntype UnwrapArray = T extends (infer U)[] ? U : never\n\nexport type Config = {\n // If SchemaType.key is an object, create a nested Config, otherwise ConfigItem\n [Key in keyof SchemaType]?:\n SchemaType[Key] extends any[]\n ? UnwrapArray>\n : SchemaType[Key] extends object\n ? Config\n : ConfigItem;\n}\n\nexport enum DependencyType {\n DISABLES,\n REQUIRES,\n HIDES,\n SETS_OPTIONS,\n}\n\ninterface BaseDependency>> {\n sourceField: keyof SchemaType\n type: DependencyType\n targetField: keyof SchemaType\n when: (sourceFieldValue: any, targetFieldValue: any) => boolean\n}\n\nexport type ValueDependency>> =\n BaseDependency & {\n type:\n | DependencyType.DISABLES\n | DependencyType.REQUIRES\n | DependencyType.HIDES\n }\n\nexport type EnumValues = readonly [string, ...string[]]\n\nexport type OptionsDependency<\n SchemaType extends z.infer>,\n> = BaseDependency & {\n type: DependencyType.SETS_OPTIONS\n\n // Partial array of values from sourceField that will trigger the dependency\n options: EnumValues\n}\n\nexport type Dependency>> =\n | ValueDependency\n | OptionsDependency\n" }, { "name": "utils.ts", diff --git a/apps/www/src/public/registry/styles/new-york/chart-bar.json b/apps/www/src/public/registry/styles/new-york/chart-bar.json index 8a33d773..6c294247 100644 --- a/apps/www/src/public/registry/styles/new-york/chart-bar.json +++ b/apps/www/src/public/registry/styles/new-york/chart-bar.json @@ -12,7 +12,7 @@ "files": [ { "name": "BarChart.vue", - "content": "\n\n\n \n \n\n \n \n\n i\"\n :y=\"categories.map(category => (d: Data) => d[category]) \"\n :color=\"colors\"\n :rounded-corners=\"roundedCorners\"\n :bar-padding=\"0.05\"\n :attributes=\"{\n [selectorsBar]: {\n opacity: (d: Data, i:number) => {\n const pos = i % categories.length\n return legendItems[pos]?.inactive ? filterOpacity : 1\n },\n },\n }\"\n />\n\n data[v]?.[index])\"\n :grid-line=\"false\"\n :tick-line=\"false\"\n tick-text-color=\"hsl(var(--vis-text-color))\"\n />\n \n\n \n \n \n\n" + "content": "\n\n\n \n \n\n \n \n\n i\"\n :y=\"categories.map(category => (d: Data) => d[category]) \"\n :color=\"colors\"\n :rounded-corners=\"roundedCorners\"\n :bar-padding=\"0.05\"\n :attributes=\"{\n [selectorsBar]: {\n opacity: (d: Data, i:number) => {\n const pos = i % categories.length\n return legendItems[pos]?.inactive ? filterOpacity : 1\n },\n },\n }\"\n />\n\n data[v]?.[index])\"\n :grid-line=\"false\"\n :tick-line=\"false\"\n tick-text-color=\"hsl(var(--vis-text-color))\"\n />\n \n\n \n \n \n\n" }, { "name": "index.ts", diff --git a/apps/www/src/public/registry/styles/new-york/chart.json b/apps/www/src/public/registry/styles/new-york/chart.json index f4e9f8a7..e7776885 100644 --- a/apps/www/src/public/registry/styles/new-york/chart.json +++ b/apps/www/src/public/registry/styles/new-york/chart.json @@ -15,7 +15,7 @@ }, { "name": "ChartLegend.vue", - "content": "\n\n\n \n \n \n\n" + "content": "\n\n\n \n \n \n\n" }, { "name": "ChartSingleTooltip.vue", diff --git a/apps/www/src/public/registry/styles/new-york/v-calendar.json b/apps/www/src/public/registry/styles/new-york/v-calendar.json index ebe89eb5..c54304ca 100644 --- a/apps/www/src/public/registry/styles/new-york/v-calendar.json +++ b/apps/www/src/public/registry/styles/new-york/v-calendar.json @@ -11,7 +11,7 @@ "files": [ { "name": "Calendar.vue", - "content": "\n\n\n \n \n \n \n \n \n \n \n \n\n \n \n \n \n\n \n \n \n\n \n \n \n \n \n\n\n\n" + "content": "\n\n\n \n \n \n \n \n \n \n \n \n\n \n \n \n \n\n \n \n \n\n \n \n \n \n \n\n\n\n" }, { "name": "index.ts", diff --git a/package.json b/package.json index bd49c4c5..fc47e557 100644 --- a/package.json +++ b/package.json @@ -31,13 +31,14 @@ "@antfu/eslint-config": "^2.15.0", "@commitlint/cli": "^19.3.0", "@commitlint/config-conventional": "^19.2.2", + "@vitest/ui": "^1.6.0", "bumpp": "^9.4.0", "eslint": "^9.1.1", "lint-staged": "^15.2.2", "simple-git-hooks": "^2.11.1", "taze": "^0.13.6", "typescript": "^5.4.5", - "vitest": "^0.34.6" + "vitest": "^1.6.0" }, "commitlint": { "extends": [ diff --git a/packages/cli/package.json b/packages/cli/package.json index 3c775b7c..cb5a1968 100644 --- a/packages/cli/package.json +++ b/packages/cli/package.json @@ -45,6 +45,10 @@ "test:update": "vitest run -u", "test:ui": "vitest --ui" }, + "peerDependencies": { + "@vitest/ui": "*", + "vitest": "*" + }, "dependencies": { "@babel/core": "^7.24.4", "@babel/parser": "^7.24.4", @@ -75,7 +79,6 @@ "@types/lodash-es": "^4.5.3", "@types/node": "^20.11.30", "@types/prompts": "^2.4.9", - "@vitest/ui": "^0.34.4", "tsup": "^8.0.2", "type-fest": "^4.16.0", "typescript": "^5.4.5", diff --git a/packages/cli/test/utils/__snapshots__/transform-cjs-to-esm.test.ts.snap b/packages/cli/test/utils/__snapshots__/transform-cjs-to-esm.test.ts.snap index 27bdafe0..389e04f2 100644 --- a/packages/cli/test/utils/__snapshots__/transform-cjs-to-esm.test.ts.snap +++ b/packages/cli/test/utils/__snapshots__/transform-cjs-to-esm.test.ts.snap @@ -1,40 +1,40 @@ // Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html exports[`handle tailwind config template correctly 1`] = ` -"import animate from \\"tailwindcss-animate\\" +"import animate from "tailwindcss-animate" /** @type {import('tailwindcss').Config} */ export default { - darkMode: [\\"class\\"], + darkMode: ["class"], content: [ './pages/**/*.{<%- extension %>,<%- extension %>x,vue}', './components/**/*.{<%- extension %>,<%- extension %>x,vue}', './app/**/*.{<%- extension %>,<%- extension %>x,vue}', './src/**/*.{<%- extension %>,<%- extension %>x,vue}', ], - prefix: \\"<%- prefix %>\\", + prefix: "<%- prefix %>", theme: { container: { center: true, - padding: \\"2rem\\", + padding: "2rem", screens: { - \\"2xl\\": \\"1400px\\", + "2xl": "1400px", }, }, extend: { keyframes: { - \\"accordion-down\\": { + "accordion-down": { from: { height: 0 }, - to: { height: \\"var(--radix-accordion-content-height)\\" }, + to: { height: "var(--radix-accordion-content-height)" }, }, - \\"accordion-up\\": { - from: { height: \\"var(--radix-accordion-content-height)\\" }, + "accordion-up": { + from: { height: "var(--radix-accordion-content-height)" }, to: { height: 0 }, }, }, animation: { - \\"accordion-down\\": \\"accordion-down 0.2s ease-out\\", - \\"accordion-up\\": \\"accordion-up 0.2s ease-out\\", + "accordion-down": "accordion-down 0.2s ease-out", + "accordion-up": "accordion-up 0.2s ease-out", }, }, }, @@ -43,13 +43,13 @@ export default { `; exports[`handle tailwind config template correctly 2`] = ` -"import animate from \\"tailwindcss-animate\\" +"import animate from "tailwindcss-animate" /** @type {import('tailwindcss').Config} */ export default { - darkMode: [\\"class\\"], - safelist: [\\"dark\\"], - prefix: \\"<%- prefix %>\\", + darkMode: ["class"], + safelist: ["dark"], + prefix: "<%- prefix %>", <% if (framework === 'vite') { %> content: [ './pages/**/*.{<%- extension %>,<%- extension %>x,vue}', @@ -59,10 +59,10 @@ export default { ], <% } else if (framework === 'laravel') { %> content: [ - \\"./vendor/laravel/framework/src/Illuminate/Pagination/resources/views/*.blade.php\\", - \\"./storage/framework/views/*.php\\", - \\"./resources/views/**/*.blade.php\\", - \\"./resources/js/**/*.{<%- extension %>,<%- extension %>x,vue}\\", + "./vendor/laravel/framework/src/Illuminate/Pagination/resources/views/*.blade.php", + "./storage/framework/views/*.php", + "./resources/views/**/*.blade.php", + "./resources/js/**/*.{<%- extension %>,<%- extension %>x,vue}", ], <% } else if (framework === 'astro') { %> content: [ @@ -72,76 +72,76 @@ export default { theme: { container: { center: true, - padding: \\"2rem\\", + padding: "2rem", screens: { - \\"2xl\\": \\"1400px\\", + "2xl": "1400px", }, }, extend: { colors: { - border: \\"hsl(var(--border))\\", - input: \\"hsl(var(--input))\\", - ring: \\"hsl(var(--ring))\\", - background: \\"hsl(var(--background))\\", - foreground: \\"hsl(var(--foreground))\\", + border: "hsl(var(--border))", + input: "hsl(var(--input))", + ring: "hsl(var(--ring))", + background: "hsl(var(--background))", + foreground: "hsl(var(--foreground))", primary: { - DEFAULT: \\"hsl(var(--primary))\\", - foreground: \\"hsl(var(--primary-foreground))\\", + DEFAULT: "hsl(var(--primary))", + foreground: "hsl(var(--primary-foreground))", }, secondary: { - DEFAULT: \\"hsl(var(--secondary))\\", - foreground: \\"hsl(var(--secondary-foreground))\\", + DEFAULT: "hsl(var(--secondary))", + foreground: "hsl(var(--secondary-foreground))", }, destructive: { - DEFAULT: \\"hsl(var(--destructive))\\", - foreground: \\"hsl(var(--destructive-foreground))\\", + DEFAULT: "hsl(var(--destructive))", + foreground: "hsl(var(--destructive-foreground))", }, muted: { - DEFAULT: \\"hsl(var(--muted))\\", - foreground: \\"hsl(var(--muted-foreground))\\", + DEFAULT: "hsl(var(--muted))", + foreground: "hsl(var(--muted-foreground))", }, accent: { - DEFAULT: \\"hsl(var(--accent))\\", - foreground: \\"hsl(var(--accent-foreground))\\", + DEFAULT: "hsl(var(--accent))", + foreground: "hsl(var(--accent-foreground))", }, popover: { - DEFAULT: \\"hsl(var(--popover))\\", - foreground: \\"hsl(var(--popover-foreground))\\", + DEFAULT: "hsl(var(--popover))", + foreground: "hsl(var(--popover-foreground))", }, card: { - DEFAULT: \\"hsl(var(--card))\\", - foreground: \\"hsl(var(--card-foreground))\\", + DEFAULT: "hsl(var(--card))", + foreground: "hsl(var(--card-foreground))", }, }, borderRadius: { - xl: \\"calc(var(--radius) + 4px)\\", - lg: \\"var(--radius)\\", - md: \\"calc(var(--radius) - 2px)\\", - sm: \\"calc(var(--radius) - 4px)\\", + xl: "calc(var(--radius) + 4px)", + lg: "var(--radius)", + md: "calc(var(--radius) - 2px)", + sm: "calc(var(--radius) - 4px)", }, keyframes: { - \\"accordion-down\\": { + "accordion-down": { from: { height: 0 }, - to: { height: \\"var(--radix-accordion-content-height)\\" }, + to: { height: "var(--radix-accordion-content-height)" }, }, - \\"accordion-up\\": { - from: { height: \\"var(--radix-accordion-content-height)\\" }, + "accordion-up": { + from: { height: "var(--radix-accordion-content-height)" }, to: { height: 0 }, }, - \\"collapsible-down\\": { + "collapsible-down": { from: { height: 0 }, to: { height: 'var(--radix-collapsible-content-height)' }, }, - \\"collapsible-up\\": { + "collapsible-up": { from: { height: 'var(--radix-collapsible-content-height)' }, to: { height: 0 }, }, }, animation: { - \\"accordion-down\\": \\"accordion-down 0.2s ease-out\\", - \\"accordion-up\\": \\"accordion-up 0.2s ease-out\\", - \\"collapsible-down\\": \\"collapsible-down 0.2s ease-in-out\\", - \\"collapsible-up\\": \\"collapsible-up 0.2s ease-in-out\\", + "accordion-down": "accordion-down 0.2s ease-out", + "accordion-up": "accordion-up 0.2s ease-out", + "collapsible-down": "collapsible-down 0.2s ease-in-out", + "collapsible-up": "collapsible-up 0.2s ease-in-out", }, }, }, diff --git a/packages/cli/test/utils/__snapshots__/transform-css-vars.test.ts.snap b/packages/cli/test/utils/__snapshots__/transform-css-vars.test.ts.snap index cc7a2b37..c214307d 100644 --- a/packages/cli/test/utils/__snapshots__/transform-css-vars.test.ts.snap +++ b/packages/cli/test/utils/__snapshots__/transform-css-vars.test.ts.snap @@ -1,46 +1,46 @@ // Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html exports[`transform css vars 1`] = ` -" +" foo -\\" +" " `; exports[`transform css vars 2`] = ` -" +" foo -\\" +" " `; exports[`transform css vars 3`] = ` -" +" foo -\\" +" " `; diff --git a/packages/cli/test/utils/__snapshots__/transform-import.test.ts.snap b/packages/cli/test/utils/__snapshots__/transform-import.test.ts.snap index 904c8094..81ecbda3 100644 --- a/packages/cli/test/utils/__snapshots__/transform-import.test.ts.snap +++ b/packages/cli/test/utils/__snapshots__/transform-import.test.ts.snap @@ -1,22 +1,22 @@ // Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html exports[`transform import 1`] = ` -"import { Foo } from \\"bar\\" import { Button } from \\"@/components/ui/button\\" import -{ Label} from \\"ui/label\\" import { Box } from \\"@/components/box\\" import { cn } -from \\"@/lib/utils\\" +"import { Foo } from "bar" import { Button } from "@/components/ui/button" import +{ Label} from "ui/label" import { Box } from "@/components/box" import { cn } +from "@/lib/utils" " `; exports[`transform import 2`] = ` -"import { Foo } from \\"bar\\" import { Button } from \\"~/src/components/ui/button\\" -import { Label} from \\"ui/label\\" import { Box } from \\"~/src/components/box\\" -import { cn, foo, bar } from \\"~/lib\\" import { bar } from \\"@/lib/utils/bar\\" +"import { Foo } from "bar" import { Button } from "~/src/components/ui/button" +import { Label} from "ui/label" import { Box } from "~/src/components/box" +import { cn, foo, bar } from "~/lib" import { bar } from "@/lib/utils/bar" " `; exports[`transform import 3`] = ` -"import { Foo } from \\"bar\\" import { Button } from \\"~/src/components/ui/button\\" -import { Label} from \\"ui/label\\" import { Box } from \\"~/src/components/box\\" -import { cn } from \\"~/src/utils\\" import { bar } from \\"@/lib/utils/bar\\" +"import { Foo } from "bar" import { Button } from "~/src/components/ui/button" +import { Label} from "ui/label" import { Box } from "~/src/components/box" +import { cn } from "~/src/utils" import { bar } from "@/lib/utils/bar" " `; diff --git a/packages/cli/test/utils/__snapshots__/transform-sfc.test.ts.snap b/packages/cli/test/utils/__snapshots__/transform-sfc.test.ts.snap index 67b02014..a8217070 100644 --- a/packages/cli/test/utils/__snapshots__/transform-sfc.test.ts.snap +++ b/packages/cli/test/utils/__snapshots__/transform-sfc.test.ts.snap @@ -6,7 +6,7 @@ const array = [1, 2, 3]; - template + template @@ -15,7 +15,7 @@ const array = [1, 2, 3]; exports[`transformSFC > defineEmits 1`] = ` " " `; @@ -32,7 +32,7 @@ const props = defineProps({ exports[`transformSFC > defineProps with external props 1`] = ` " " @@ -68,14 +68,14 @@ const array = [1, 2, 3]; a\\" - :prop2=\\" + v-bind="{ array }" + :prop="(a) => a" + :prop2=" (a) => { let b = a; return b; } - \\" + " > {{ true ? 123 : 0 }} diff --git a/packages/cli/test/utils/__snapshots__/transform-tw-prefix.test.ts.snap b/packages/cli/test/utils/__snapshots__/transform-tw-prefix.test.ts.snap deleted file mode 100644 index c72fbfa5..00000000 --- a/packages/cli/test/utils/__snapshots__/transform-tw-prefix.test.ts.snap +++ /dev/null @@ -1,127 +0,0 @@ -// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html - -exports[`transform tailwind prefix 1`] = ` -"const testVariants = cva( - \\"tw-bg-background hover:tw-bg-muted tw-text-primary-foreground sm:focus:tw-text-accent-foreground\\", - { - variants: { - variant: { - default: - \\"tw-bg-primary tw-text-primary-foreground hover:tw-bg-primary/90\\", - }, - size: { - default: \\"tw-h-10 tw-px-4 tw-py-2\\", - }, - }, - } -); -" -`; - -exports[`transform tailwind prefix 2`] = ` -" - - foo - - - " -`; - -exports[`transform tailwind prefix 3`] = ` -" - - foo - - - " -`; - -exports[`transform tailwind prefix 4`] = ` -" - - foo - - - " -`; - -exports[`transform tailwind prefix 5`] = ` -"@tailwind base; -@tailwind components; -@tailwind utilities; - -@layer base { - :root { - --background: 0 0% 100%; - --foreground: 224 71.4% 4.1%; - - --muted: 220 14.3% 95.9%; - --muted-foreground: 220 8.9% 46.1%; - - --popover: 0 0% 100%; - --popover-foreground: 224 71.4% 4.1%; - - --card: 0 0% 100%; - --card-foreground: 224 71.4% 4.1%; - - --border: 220 13% 91%; - --input: 220 13% 91%; - - --primary: 220.9 39.3% 11%; - --primary-foreground: 210 20% 98%; - - --secondary: 220 14.3% 95.9%; - --secondary-foreground: 220.9 39.3% 11%; - - --accent: 220 14.3% 95.9%; - --accent-foreground: 220.9 39.3% 11%; - - --destructive: 0 84.2% 60.2%; - --destructive-foreground: 210 20% 98%; - - --ring: 217.9 10.6% 64.9%; - - --radius: 0.5rem; - } - - .dark { - --background: 224 71.4% 4.1%; - --foreground: 210 20% 98%; - - --muted: 215 27.9% 16.9%; - --muted-foreground: 217.9 10.6% 64.9%; - - --popover: 224 71.4% 4.1%; - --popover-foreground: 210 20% 98%; - - --card: 224 71.4% 4.1%; - --card-foreground: 210 20% 98%; - - --border: 215 27.9% 16.9%; - --input: 215 27.9% 16.9%; - - --primary: 210 20% 98%; - --primary-foreground: 220.9 39.3% 11%; - - --secondary: 215 27.9% 16.9%; - --secondary-foreground: 210 20% 98%; - - --accent: 215 27.9% 16.9%; - --accent-foreground: 210 20% 98%; - - --destructive: 0 62.8% 30.6%; - --destructive-foreground: 0 85.7% 97.3%; - - --ring: 215 27.9% 16.9%; - } -} - -@layer base { - * { - @apply tw-border-border; - } - body { - @apply tw-bg-background tw-text-foreground; - } -}" -`; diff --git a/packages/module/package.json b/packages/module/package.json index 31b7756e..afca4a15 100644 --- a/packages/module/package.json +++ b/packages/module/package.json @@ -44,7 +44,6 @@ "@nuxt/schema": "^3.11.2", "@nuxt/test-utils": "^3.12.1", "@types/node": "^20.12.8", - "nuxt": "^3.11.2", - "vitest": "^1.6.0" + "nuxt": "^3.11.2" } } diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 9b537ee0..bae5d07d 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -10,13 +10,16 @@ importers: devDependencies: '@antfu/eslint-config': specifier: ^2.15.0 - version: 2.15.0(@vue/compiler-sfc@3.4.27)(eslint@9.1.1)(typescript@5.4.5)(vitest@0.34.6(@vitest/ui@0.34.7)(terser@5.30.4)) + version: 2.15.0(@vue/compiler-sfc@3.4.27)(eslint@9.1.1)(typescript@5.4.5)(vitest@1.6.0(@types/node@20.12.8)(@vitest/ui@1.6.0)(terser@5.30.4)) '@commitlint/cli': specifier: ^19.3.0 version: 19.3.0(@types/node@20.12.8)(typescript@5.4.5) '@commitlint/config-conventional': specifier: ^19.2.2 version: 19.2.2 + '@vitest/ui': + specifier: ^1.6.0 + version: 1.6.0(vitest@1.6.0) bumpp: specifier: ^9.4.0 version: 9.4.0 @@ -36,8 +39,8 @@ importers: specifier: ^5.4.5 version: 5.4.5 vitest: - specifier: ^0.34.6 - version: 0.34.6(@vitest/ui@0.34.7)(terser@5.30.4) + specifier: ^1.6.0 + version: 1.6.0(@types/node@20.12.8)(@vitest/ui@1.6.0)(terser@5.30.4) apps/www: dependencies: @@ -231,6 +234,9 @@ importers: '@babel/parser': specifier: ^7.24.4 version: 7.24.4 + '@vitest/ui': + specifier: '*' + version: 1.6.0(vitest@1.6.0) '@vue/compiler-sfc': specifier: ^3.4 version: 3.4.24 @@ -285,6 +291,9 @@ importers: tsconfig-paths: specifier: ^4.2.0 version: 4.2.0 + vitest: + specifier: '*' + version: 1.6.0(@types/node@20.12.8)(@vitest/ui@1.6.0)(terser@5.30.4) zod: specifier: ^3.23.3 version: 3.23.3 @@ -307,9 +316,6 @@ importers: '@types/prompts': specifier: ^2.4.9 version: 2.4.9 - '@vitest/ui': - specifier: ^0.34.4 - version: 0.34.7(vitest@1.6.0) tsup: specifier: ^8.0.2 version: 8.0.2(postcss@8.4.38)(typescript@5.4.5) @@ -343,16 +349,13 @@ importers: version: 3.11.2(rollup@4.16.3) '@nuxt/test-utils': specifier: ^3.12.1 - version: 3.12.1(@vitest/ui@0.34.7(vitest@1.6.0))(h3@1.11.1)(rollup@4.16.3)(vite@5.2.10(@types/node@20.12.8)(terser@5.30.4))(vitest@1.6.0(@types/node@20.12.8)(@vitest/ui@0.34.7)(terser@5.30.4))(vue-router@4.3.2(vue@3.4.24(typescript@5.4.5)))(vue@3.4.24(typescript@5.4.5)) + version: 3.12.1(@vitest/ui@1.6.0(vitest@1.6.0))(h3@1.11.1)(rollup@4.16.3)(vite@5.2.10(@types/node@20.12.8)(terser@5.30.4))(vitest@1.6.0(@types/node@20.12.8)(@vitest/ui@1.6.0)(terser@5.30.4))(vue-router@4.3.2(vue@3.4.24(typescript@5.4.5)))(vue@3.4.24(typescript@5.4.5)) '@types/node': specifier: ^20.12.8 version: 20.12.8 nuxt: specifier: ^3.11.2 version: 3.11.2(@parcel/watcher@2.4.1)(@types/node@20.12.8)(@unocss/reset@0.59.4)(axios@0.18.1)(encoding@0.1.13)(eslint@9.1.1)(floating-vue@5.2.2(@nuxt/kit@3.11.2(rollup@4.16.3))(vue@3.4.24(typescript@5.4.5)))(ioredis@5.4.1)(meow@12.1.1)(optionator@0.9.3)(rollup@4.16.3)(terser@5.30.4)(typescript@5.4.5)(unocss@0.59.4(postcss@8.4.38)(rollup@4.16.3)(vite@5.2.10(@types/node@20.12.8)(terser@5.30.4)))(vite@5.2.10(@types/node@20.12.8)(terser@5.30.4))(vue-tsc@2.0.14(typescript@5.4.5)) - vitest: - specifier: ^1.6.0 - version: 1.6.0(@types/node@20.12.8)(@vitest/ui@0.34.7)(terser@5.30.4) packages: @@ -1834,12 +1837,6 @@ packages: '@types/babel__traverse@7.20.5': resolution: {integrity: sha512-WXCyOcRtH37HAUkpXhUduaxdm82b4GSlyTqajXviN4EfiuPgNYR109xMCKvpl6zPIpua0DGlMEDCq+g8EdoheQ==} - '@types/chai-subset@1.3.5': - resolution: {integrity: sha512-c2mPnw+xHtXDoHmdtcCXGwyLMiauiAyxWMzhGpqHC4nqI/Y5G2XhTampslK2rb59kpcuHon03UH8W6iYUzw88A==} - - '@types/chai@4.3.14': - resolution: {integrity: sha512-Wj71sXE4Q4AkGdG9Tvq1u/fquNz9EdG4LIJMwVVII7ashjD/8cf8fyIfJAjRr6YcsXnSE8cOGQPq1gqeR8z+3w==} - '@types/conventional-commits-parser@5.0.0': resolution: {integrity: sha512-loB369iXNmAZglwWATL+WRe+CRMmmBPtpolYzIebFaX4YA3x+BEfLqhUAV9WanycKI3TG1IMr5bMJDajDKLlUQ==} @@ -2287,40 +2284,22 @@ packages: vite: ^5.0.0 vue: ^3.2.25 - '@vitest/expect@0.34.6': - resolution: {integrity: sha512-QUzKpUQRc1qC7qdGo7rMK3AkETI7w18gTCUrsNnyjjJKYiuUB9+TQK3QnR1unhCnWRC0AbKv2omLGQDF/mIjOw==} - '@vitest/expect@1.6.0': resolution: {integrity: sha512-ixEvFVQjycy/oNgHjqsL6AZCDduC+tflRluaHIzKIsdbzkLn2U/iBnVeJwB6HsIjQBdfMR8Z0tRxKUsvFJEeWQ==} - '@vitest/runner@0.34.6': - resolution: {integrity: sha512-1CUQgtJSLF47NnhN+F9X2ycxUP0kLHQ/JWvNHbeBfwW8CzEGgeskzNnHDyv1ieKTltuR6sdIHV+nmR6kPxQqzQ==} - '@vitest/runner@1.6.0': resolution: {integrity: sha512-P4xgwPjwesuBiHisAVz/LSSZtDjOTPYZVmNAnpHHSR6ONrf8eCJOFRvUwdHn30F5M1fxhqtl7QZQUk2dprIXAg==} - '@vitest/snapshot@0.34.6': - resolution: {integrity: sha512-B3OZqYn6k4VaN011D+ve+AA4whM4QkcwcrwaKwAbyyvS/NB1hCWjFIBQxAQQSQir9/RtyAAGuq+4RJmbn2dH4w==} - '@vitest/snapshot@1.6.0': resolution: {integrity: sha512-+Hx43f8Chus+DCmygqqfetcAZrDJwvTj0ymqjQq4CvmpKFSTVteEOBzCusu1x2tt4OJcvBflyHUE0DZSLgEMtQ==} - '@vitest/spy@0.34.6': - resolution: {integrity: sha512-xaCvneSaeBw/cz8ySmF7ZwGvL0lBjfvqc1LpQ/vcdHEvpLn3Ff1vAvjw+CoGn0802l++5L/pxb7whwcWAw+DUQ==} - '@vitest/spy@1.6.0': resolution: {integrity: sha512-leUTap6B/cqi/bQkXUu6bQV5TZPx7pmMBKBQiI0rJA8c3pB56ZsaTbREnF7CJfmvAS4V2cXIBAh/3rVwrrCYgw==} - '@vitest/ui@0.34.7': - resolution: {integrity: sha512-iizUu9R5Rsvsq8FtdJ0suMqEfIsIIzziqnasMHe4VH8vG+FnZSA3UAtCHx6rLeRupIFVAVg7bptMmuvMcsn8WQ==} + '@vitest/ui@1.6.0': + resolution: {integrity: sha512-k3Lyo+ONLOgylctiGovRKy7V4+dIN2yxstX3eY5cWFXH6WP+ooVX79YSyi0GagdTQzLmT43BF27T0s6dOIPBXA==} peerDependencies: - vitest: '>=0.30.1 <1' - - '@vitest/utils@0.34.6': - resolution: {integrity: sha512-IG5aDD8S6zlvloDsnzHw0Ut5xczlF+kv2BOTo+iXfPr54Yhi5qbVOgGB1hZaVq4iJ4C/MZ2J0y15IlsV/ZcI0A==} - - '@vitest/utils@0.34.7': - resolution: {integrity: sha512-ziAavQLpCYS9sLOorGrFFKmy2gnfiNU0ZJ15TsMz/K92NAPS/rp9K4z6AJQQk5Y8adCy4Iwpxy7pQumQ/psnRg==} + vitest: 1.6.0 '@vitest/utils@1.6.0': resolution: {integrity: sha512-21cPiuGMoMZwiOHa2i4LXkMkMkCGzA+MVFV70jRwHo95dL4x/ts5GZhML1QWuy7yfp3WzK3lRvZi3JnXTYqrBw==} @@ -6556,10 +6535,6 @@ packages: tinybench@2.8.0: resolution: {integrity: sha512-1/eK7zUnIklz4JUUlL+658n58XO2hHLQfSk1Zf2LKieUjxidN16eKFEoDEfjHc3ohofSSqK3X5yO6VGb6iW8Lw==} - tinypool@0.7.0: - resolution: {integrity: sha512-zSYNUlYSMhJ6Zdou4cJwo/p7w5nmAH17GRfU/ui3ctvjXFErXXkruT4MWW6poDeXgCaIBlGLrfU6TbTXxyGMww==} - engines: {node: '>=14.0.0'} - tinypool@0.8.4: resolution: {integrity: sha512-i11VH5gS6IFeLY3gMBQ00/MmLncVP7JLXOw1vlgkytLmJK7QnEr7NXf0LBdxfmNPAeyetukOk0bOYrJrFGjYJQ==} engines: {node: '>=14.0.0'} @@ -6949,11 +6924,6 @@ packages: peerDependencies: vite: ^2.6.0 || ^3.0.0 || ^4.0.0 || ^5.0.0-0 - vite-node@0.34.6: - resolution: {integrity: sha512-nlBMJ9x6n7/Amaz6F3zJ97EBwR2FkzhBRxF5e+jE6LA3yi6Wtc2lyTij1OnDMIr34v5g/tVQtsVAzhT0jc5ygA==} - engines: {node: '>=v14.18.0'} - hasBin: true - vite-node@1.5.0: resolution: {integrity: sha512-tV8h6gMj6vPzVCa7l+VGq9lwoJjW8Y79vst8QZZGiuRAfijU+EEWuc0kFpmndQrWhMMhet1jdSF+40KSZUqIIw==} engines: {node: ^18.0.0 || >=20.0.0} @@ -7061,37 +7031,6 @@ packages: vitest-environment-nuxt@1.0.0: resolution: {integrity: sha512-AWMO9h4HdbaFdPWZw34gALFI8gbBiOpvfbyeZwHIPfh4kWg/TwElYHvYMQ61WPUlCGaS5LebfHkaI0WPyb//Iw==} - vitest@0.34.6: - resolution: {integrity: sha512-+5CALsOvbNKnS+ZHMXtuUC7nL8/7F1F2DnHGjSsszX8zCjWSSviphCb/NuS9Nzf4Q03KyyDRBAXhF/8lffME4Q==} - engines: {node: '>=v14.18.0'} - hasBin: true - peerDependencies: - '@edge-runtime/vm': '*' - '@vitest/browser': '*' - '@vitest/ui': '*' - happy-dom: '*' - jsdom: '*' - playwright: '*' - safaridriver: '*' - webdriverio: '*' - peerDependenciesMeta: - '@edge-runtime/vm': - optional: true - '@vitest/browser': - optional: true - '@vitest/ui': - optional: true - happy-dom: - optional: true - jsdom: - optional: true - playwright: - optional: true - safaridriver: - optional: true - webdriverio: - optional: true - vitest@1.6.0: resolution: {integrity: sha512-H5r/dN06swuFnzNFhq/dnz37bPXnq8xB2xB5JOVk8K09rUtoeNN+LHWkoQ0A/i3hvbUKKcCei9KpbxqHMLhLLA==} engines: {node: ^18.0.0 || >=20.0.0} @@ -7497,7 +7436,7 @@ snapshots: '@jridgewell/gen-mapping': 0.3.5 '@jridgewell/trace-mapping': 0.3.25 - '@antfu/eslint-config@2.15.0(@vue/compiler-sfc@3.4.27)(eslint@9.1.1)(typescript@5.4.5)(vitest@0.34.6(@vitest/ui@0.34.7)(terser@5.30.4))': + '@antfu/eslint-config@2.15.0(@vue/compiler-sfc@3.4.27)(eslint@9.1.1)(typescript@5.4.5)(vitest@1.6.0(@types/node@20.12.8)(@vitest/ui@1.6.0)(terser@5.30.4))': dependencies: '@antfu/install-pkg': 0.3.2 '@clack/prompts': 0.7.0 @@ -7520,7 +7459,7 @@ snapshots: eslint-plugin-toml: 0.11.0(eslint@9.1.1) eslint-plugin-unicorn: 52.0.0(eslint@9.1.1) eslint-plugin-unused-imports: 3.1.0(@typescript-eslint/eslint-plugin@7.7.1(@typescript-eslint/parser@7.7.1(eslint@9.1.1)(typescript@5.4.5))(eslint@9.1.1)(typescript@5.4.5))(eslint@9.1.1) - eslint-plugin-vitest: 0.5.3(@typescript-eslint/eslint-plugin@7.7.1(@typescript-eslint/parser@7.7.1(eslint@9.1.1)(typescript@5.4.5))(eslint@9.1.1)(typescript@5.4.5))(eslint@9.1.1)(typescript@5.4.5)(vitest@0.34.6(@vitest/ui@0.34.7)(terser@5.30.4)) + eslint-plugin-vitest: 0.5.3(@typescript-eslint/eslint-plugin@7.7.1(@typescript-eslint/parser@7.7.1(eslint@9.1.1)(typescript@5.4.5))(eslint@9.1.1)(typescript@5.4.5))(eslint@9.1.1)(typescript@5.4.5)(vitest@1.6.0(@types/node@20.12.8)(@vitest/ui@1.6.0)(terser@5.30.4)) eslint-plugin-vue: 9.25.0(eslint@9.1.1) eslint-plugin-yml: 1.14.0(eslint@9.1.1) eslint-processor-vue-blocks: 0.1.2(@vue/compiler-sfc@3.4.27)(eslint@9.1.1) @@ -8754,7 +8693,7 @@ snapshots: - rollup - supports-color - '@nuxt/test-utils@3.12.1(@vitest/ui@0.34.7(vitest@1.6.0))(h3@1.11.1)(rollup@4.16.3)(vite@5.2.10(@types/node@20.12.8)(terser@5.30.4))(vitest@1.6.0(@types/node@20.12.8)(@vitest/ui@0.34.7)(terser@5.30.4))(vue-router@4.3.2(vue@3.4.24(typescript@5.4.5)))(vue@3.4.24(typescript@5.4.5))': + '@nuxt/test-utils@3.12.1(@vitest/ui@1.6.0(vitest@1.6.0))(h3@1.11.1)(rollup@4.16.3)(vite@5.2.10(@types/node@20.12.8)(terser@5.30.4))(vitest@1.6.0(@types/node@20.12.8)(@vitest/ui@1.6.0)(terser@5.30.4))(vue-router@4.3.2(vue@3.4.24(typescript@5.4.5)))(vue@3.4.24(typescript@5.4.5))': dependencies: '@nuxt/kit': 3.11.2(rollup@4.16.3) '@nuxt/schema': 3.11.2(rollup@4.16.3) @@ -8780,12 +8719,12 @@ snapshots: unenv: 1.9.0 unplugin: 1.10.1 vite: 5.2.10(@types/node@20.12.8)(terser@5.30.4) - vitest-environment-nuxt: 1.0.0(@vitest/ui@0.34.7(vitest@1.6.0))(h3@1.11.1)(rollup@4.16.3)(vite@5.2.10(@types/node@20.12.8)(terser@5.30.4))(vitest@1.6.0(@types/node@20.12.8)(@vitest/ui@0.34.7)(terser@5.30.4))(vue-router@4.3.2(vue@3.4.24(typescript@5.4.5)))(vue@3.4.24(typescript@5.4.5)) + vitest-environment-nuxt: 1.0.0(@vitest/ui@1.6.0(vitest@1.6.0))(h3@1.11.1)(rollup@4.16.3)(vite@5.2.10(@types/node@20.12.8)(terser@5.30.4))(vitest@1.6.0(@types/node@20.12.8)(@vitest/ui@1.6.0)(terser@5.30.4))(vue-router@4.3.2(vue@3.4.24(typescript@5.4.5)))(vue@3.4.24(typescript@5.4.5)) vue: 3.4.24(typescript@5.4.5) vue-router: 4.3.2(vue@3.4.24(typescript@5.4.5)) optionalDependencies: - '@vitest/ui': 0.34.7(vitest@1.6.0) - vitest: 1.6.0(@types/node@20.12.8)(@vitest/ui@0.34.7)(terser@5.30.4) + '@vitest/ui': 1.6.0(vitest@1.6.0) + vitest: 1.6.0(@types/node@20.12.8)(@vitest/ui@1.6.0)(terser@5.30.4) transitivePeerDependencies: - rollup - supports-color @@ -9237,12 +9176,6 @@ snapshots: dependencies: '@babel/types': 7.24.0 - '@types/chai-subset@1.3.5': - dependencies: - '@types/chai': 4.3.14 - - '@types/chai@4.3.14': {} - '@types/conventional-commits-parser@5.0.0': dependencies: '@types/node': 20.12.8 @@ -9900,84 +9833,38 @@ snapshots: vite: 5.2.10(@types/node@20.12.8)(terser@5.30.4) vue: 3.4.24(typescript@5.4.5) - '@vitest/expect@0.34.6': - dependencies: - '@vitest/spy': 0.34.6 - '@vitest/utils': 0.34.6 - chai: 4.4.1 - '@vitest/expect@1.6.0': dependencies: '@vitest/spy': 1.6.0 '@vitest/utils': 1.6.0 chai: 4.4.1 - '@vitest/runner@0.34.6': - dependencies: - '@vitest/utils': 0.34.6 - p-limit: 4.0.0 - pathe: 1.1.2 - '@vitest/runner@1.6.0': dependencies: '@vitest/utils': 1.6.0 p-limit: 5.0.0 pathe: 1.1.2 - '@vitest/snapshot@0.34.6': - dependencies: - magic-string: 0.30.10 - pathe: 1.1.2 - pretty-format: 29.7.0 - '@vitest/snapshot@1.6.0': dependencies: magic-string: 0.30.10 pathe: 1.1.2 pretty-format: 29.7.0 - '@vitest/spy@0.34.6': - dependencies: - tinyspy: 2.2.1 - '@vitest/spy@1.6.0': dependencies: tinyspy: 2.2.1 - '@vitest/ui@0.34.7(vitest@0.34.6)': + '@vitest/ui@1.6.0(vitest@1.6.0)': dependencies: - '@vitest/utils': 0.34.7 + '@vitest/utils': 1.6.0 fast-glob: 3.3.2 fflate: 0.8.2 flatted: 3.3.1 pathe: 1.1.2 picocolors: 1.0.0 sirv: 2.0.4 - vitest: 0.34.6(@vitest/ui@0.34.7)(terser@5.30.4) - optional: true - - '@vitest/ui@0.34.7(vitest@1.6.0)': - dependencies: - '@vitest/utils': 0.34.7 - fast-glob: 3.3.2 - fflate: 0.8.2 - flatted: 3.3.1 - pathe: 1.1.2 - picocolors: 1.0.0 - sirv: 2.0.4 - vitest: 1.6.0(@types/node@20.12.8)(@vitest/ui@0.34.7)(terser@5.30.4) - - '@vitest/utils@0.34.6': - dependencies: - diff-sequences: 29.6.3 - loupe: 2.3.7 - pretty-format: 29.7.0 - - '@vitest/utils@0.34.7': - dependencies: - diff-sequences: 29.6.3 - loupe: 2.3.7 - pretty-format: 29.7.0 + vitest: 1.6.0(@types/node@20.12.8)(@vitest/ui@1.6.0)(terser@5.30.4) '@vitest/utils@1.6.0': dependencies: @@ -11698,13 +11585,13 @@ snapshots: optionalDependencies: '@typescript-eslint/eslint-plugin': 7.7.1(@typescript-eslint/parser@7.7.1(eslint@9.1.1)(typescript@5.4.5))(eslint@9.1.1)(typescript@5.4.5) - eslint-plugin-vitest@0.5.3(@typescript-eslint/eslint-plugin@7.7.1(@typescript-eslint/parser@7.7.1(eslint@9.1.1)(typescript@5.4.5))(eslint@9.1.1)(typescript@5.4.5))(eslint@9.1.1)(typescript@5.4.5)(vitest@0.34.6(@vitest/ui@0.34.7)(terser@5.30.4)): + eslint-plugin-vitest@0.5.3(@typescript-eslint/eslint-plugin@7.7.1(@typescript-eslint/parser@7.7.1(eslint@9.1.1)(typescript@5.4.5))(eslint@9.1.1)(typescript@5.4.5))(eslint@9.1.1)(typescript@5.4.5)(vitest@1.6.0(@types/node@20.12.8)(@vitest/ui@1.6.0)(terser@5.30.4)): dependencies: '@typescript-eslint/utils': 7.7.1(eslint@9.1.1)(typescript@5.4.5) eslint: 9.1.1 optionalDependencies: '@typescript-eslint/eslint-plugin': 7.7.1(@typescript-eslint/parser@7.7.1(eslint@9.1.1)(typescript@5.4.5))(eslint@9.1.1)(typescript@5.4.5) - vitest: 0.34.6(@vitest/ui@0.34.7)(terser@5.30.4) + vitest: 1.6.0(@types/node@20.12.8)(@vitest/ui@1.6.0)(terser@5.30.4) transitivePeerDependencies: - supports-color - typescript @@ -14848,8 +14735,6 @@ snapshots: tinybench@2.8.0: {} - tinypool@0.7.0: {} - tinypool@0.8.4: {} tinyqueue@2.0.3: {} @@ -15293,24 +15178,6 @@ snapshots: dependencies: vite: 5.2.10(@types/node@20.12.8)(terser@5.30.4) - vite-node@0.34.6(@types/node@20.12.8)(terser@5.30.4): - dependencies: - cac: 6.7.14 - debug: 4.3.4 - mlly: 1.6.1 - pathe: 1.1.2 - picocolors: 1.0.0 - vite: 5.2.10(@types/node@20.12.8)(terser@5.30.4) - transitivePeerDependencies: - - '@types/node' - - less - - lightningcss - - sass - - stylus - - sugarss - - supports-color - - terser - vite-node@1.5.0(@types/node@20.12.8)(terser@5.30.4): dependencies: cac: 6.7.14 @@ -15470,9 +15337,9 @@ snapshots: - typescript - universal-cookie - vitest-environment-nuxt@1.0.0(@vitest/ui@0.34.7(vitest@1.6.0))(h3@1.11.1)(rollup@4.16.3)(vite@5.2.10(@types/node@20.12.8)(terser@5.30.4))(vitest@1.6.0(@types/node@20.12.8)(@vitest/ui@0.34.7)(terser@5.30.4))(vue-router@4.3.2(vue@3.4.24(typescript@5.4.5)))(vue@3.4.24(typescript@5.4.5)): + vitest-environment-nuxt@1.0.0(@vitest/ui@1.6.0(vitest@1.6.0))(h3@1.11.1)(rollup@4.16.3)(vite@5.2.10(@types/node@20.12.8)(terser@5.30.4))(vitest@1.6.0(@types/node@20.12.8)(@vitest/ui@1.6.0)(terser@5.30.4))(vue-router@4.3.2(vue@3.4.24(typescript@5.4.5)))(vue@3.4.24(typescript@5.4.5)): dependencies: - '@nuxt/test-utils': 3.12.1(@vitest/ui@0.34.7(vitest@1.6.0))(h3@1.11.1)(rollup@4.16.3)(vite@5.2.10(@types/node@20.12.8)(terser@5.30.4))(vitest@1.6.0(@types/node@20.12.8)(@vitest/ui@0.34.7)(terser@5.30.4))(vue-router@4.3.2(vue@3.4.24(typescript@5.4.5)))(vue@3.4.24(typescript@5.4.5)) + '@nuxt/test-utils': 3.12.1(@vitest/ui@1.6.0(vitest@1.6.0))(h3@1.11.1)(rollup@4.16.3)(vite@5.2.10(@types/node@20.12.8)(terser@5.30.4))(vitest@1.6.0(@types/node@20.12.8)(@vitest/ui@1.6.0)(terser@5.30.4))(vue-router@4.3.2(vue@3.4.24(typescript@5.4.5)))(vue@3.4.24(typescript@5.4.5)) transitivePeerDependencies: - '@cucumber/cucumber' - '@jest/globals' @@ -15491,44 +15358,7 @@ snapshots: - vue - vue-router - vitest@0.34.6(@vitest/ui@0.34.7)(terser@5.30.4): - dependencies: - '@types/chai': 4.3.14 - '@types/chai-subset': 1.3.5 - '@types/node': 20.12.8 - '@vitest/expect': 0.34.6 - '@vitest/runner': 0.34.6 - '@vitest/snapshot': 0.34.6 - '@vitest/spy': 0.34.6 - '@vitest/utils': 0.34.6 - acorn: 8.11.3 - acorn-walk: 8.3.2 - cac: 6.7.14 - chai: 4.4.1 - debug: 4.3.4 - local-pkg: 0.4.3 - magic-string: 0.30.10 - pathe: 1.1.2 - picocolors: 1.0.0 - std-env: 3.7.0 - strip-literal: 1.3.0 - tinybench: 2.8.0 - tinypool: 0.7.0 - vite: 5.2.10(@types/node@20.12.8)(terser@5.30.4) - vite-node: 0.34.6(@types/node@20.12.8)(terser@5.30.4) - why-is-node-running: 2.2.2 - optionalDependencies: - '@vitest/ui': 0.34.7(vitest@0.34.6) - transitivePeerDependencies: - - less - - lightningcss - - sass - - stylus - - sugarss - - supports-color - - terser - - vitest@1.6.0(@types/node@20.12.8)(@vitest/ui@0.34.7)(terser@5.30.4): + vitest@1.6.0(@types/node@20.12.8)(@vitest/ui@1.6.0)(terser@5.30.4): dependencies: '@vitest/expect': 1.6.0 '@vitest/runner': 1.6.0 @@ -15552,7 +15382,7 @@ snapshots: why-is-node-running: 2.2.2 optionalDependencies: '@types/node': 20.12.8 - '@vitest/ui': 0.34.7(vitest@1.6.0) + '@vitest/ui': 1.6.0(vitest@1.6.0) transitivePeerDependencies: - less - lightningcss