From c5df2cb2ccc9ed856007a8390b99257c31b5da10 Mon Sep 17 00:00:00 2001 From: Sadegh Barati Date: Tue, 12 Mar 2024 22:50:40 +0330 Subject: [PATCH] fix: `new-york` demos are using the incorrect icon library --- .../theme/components/CodeSandbox.vue | 2 +- .../theme/components/ComponentPreview.vue | 19 +++++++++++++++---- .../theme/components/Stackblitz.vue | 2 +- .../theme/components/TabPreview.vue | 2 ++ .../www/.vitepress/theme/plugins/previewer.ts | 12 ++++++++++++ apps/www/.vitepress/theme/plugins/utils.ts | 9 ++++++++- .../default/example/InputWithIcon.vue | 4 ++-- .../registry/new-york/example/DrawerDemo.vue | 6 +++--- 8 files changed, 44 insertions(+), 12 deletions(-) diff --git a/apps/www/.vitepress/theme/components/CodeSandbox.vue b/apps/www/.vitepress/theme/components/CodeSandbox.vue index 8b55d399..d078bad3 100644 --- a/apps/www/.vitepress/theme/components/CodeSandbox.vue +++ b/apps/www/.vitepress/theme/components/CodeSandbox.vue @@ -4,7 +4,7 @@ import { Icon } from '@iconify/vue' import { makeCodeSandboxParams } from '../utils/codeeditor' import Tooltip from './Tooltip.vue' import { Button } from '@/lib/registry/new-york/ui/button' -import { type Style } from '@/lib/registry/styles' +import type { Style } from '@/lib/registry/styles' const props = defineProps<{ name: string diff --git a/apps/www/.vitepress/theme/components/ComponentPreview.vue b/apps/www/.vitepress/theme/components/ComponentPreview.vue index 7620e0da..d92e9cbe 100644 --- a/apps/www/.vitepress/theme/components/ComponentPreview.vue +++ b/apps/www/.vitepress/theme/components/ComponentPreview.vue @@ -1,4 +1,5 @@ diff --git a/apps/www/src/lib/registry/new-york/example/DrawerDemo.vue b/apps/www/src/lib/registry/new-york/example/DrawerDemo.vue index a92c3e04..9bb93e5b 100644 --- a/apps/www/src/lib/registry/new-york/example/DrawerDemo.vue +++ b/apps/www/src/lib/registry/new-york/example/DrawerDemo.vue @@ -1,6 +1,6 @@