From a01c83c71819657b804b0b9168828cdaa78694b4 Mon Sep 17 00:00:00 2001 From: zernonia Date: Thu, 15 Feb 2024 12:48:35 +0100 Subject: [PATCH 1/6] chore: bump radix-vue --- apps/www/package.json | 2 +- packages/cli/package.json | 2 +- packages/cli/test/fixtures/nuxt/package.json | 2 +- packages/module/playground/package.json | 2 +- pnpm-lock.yaml | 12 ++++++------ 5 files changed, 10 insertions(+), 10 deletions(-) diff --git a/apps/www/package.json b/apps/www/package.json index 97e9415a..213f7800 100644 --- a/apps/www/package.json +++ b/apps/www/package.json @@ -32,7 +32,7 @@ "embla-carousel-autoplay": "^8.0.0-rc22", "embla-carousel-vue": "^8.0.0-rc22", "lucide-vue-next": "^0.276.0", - "radix-vue": "^1.4.1", + "radix-vue": "^1.4.5", "tailwindcss-animate": "^1.0.7", "v-calendar": "^3.1.2", "vee-validate": "4.12.5", diff --git a/packages/cli/package.json b/packages/cli/package.json index 837c6939..4707ce41 100644 --- a/packages/cli/package.json +++ b/packages/cli/package.json @@ -63,7 +63,7 @@ "node-fetch": "^3.3.2", "ora": "^7.0.1", "prompts": "^2.4.2", - "radix-vue": "^1.4.1", + "radix-vue": "^1.4.5", "recast": "^0.23.4", "rimraf": "^5.0.1", "ts-morph": "^19.0.0", diff --git a/packages/cli/test/fixtures/nuxt/package.json b/packages/cli/test/fixtures/nuxt/package.json index 9b4ee1f9..ac2bf097 100644 --- a/packages/cli/test/fixtures/nuxt/package.json +++ b/packages/cli/test/fixtures/nuxt/package.json @@ -13,7 +13,7 @@ "class-variance-authority": "^0.7.0", "clsx": "^2.0.0", "lucide-vue-next": "^0.276.0", - "radix-vue": "^1.4.1", + "radix-vue": "^1.4.5", "tailwind-merge": "^1.14.0", "tailwindcss-animate": "^1.0.7" }, diff --git a/packages/module/playground/package.json b/packages/module/playground/package.json index b8012a53..17778253 100644 --- a/packages/module/playground/package.json +++ b/packages/module/playground/package.json @@ -14,7 +14,7 @@ "embla-carousel": "8.0.0-rc19", "embla-carousel-vue": "8.0.0-rc19", "lucide-vue-next": "^0.276.0", - "radix-vue": "^1.4.1", + "radix-vue": "^1.4.5", "tailwind-merge": "^2.0.0", "tailwindcss-animate": "^1.0.7" }, diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 1f767de3..b6d337dd 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -96,8 +96,8 @@ importers: specifier: ^0.276.0 version: 0.276.0(vue@3.4.15) radix-vue: - specifier: ^1.4.1 - version: 1.4.1(vue@3.4.15) + specifier: ^1.4.5 + version: 1.4.5(vue@3.4.15) tailwindcss-animate: specifier: ^1.0.7 version: 1.0.7(tailwindcss@3.4.1) @@ -256,8 +256,8 @@ importers: specifier: ^2.4.2 version: 2.4.2 radix-vue: - specifier: ^1.4.1 - version: 1.4.1(vue@3.4.15) + specifier: ^1.4.5 + version: 1.4.5(vue@3.4.15) recast: specifier: ^0.23.4 version: 0.23.4 @@ -10848,8 +10848,8 @@ packages: resolution: {integrity: sha512-RKJ22hX8mHe3Y6wH/N3wCM6BWtjaxIyyUIkpHOvfFnxdI4yD4tBXEBKSbriGujF6jnSVkJrffuo6vxACiSSxIw==} dev: false - /radix-vue@1.4.1(vue@3.4.15): - resolution: {integrity: sha512-eJsyIHDZPfIdH0iqrfTODuklPqDXfO0iNDNI1isOYIr+ejmeCjP6Yw1LA7LtDryPnjsSkqj0t04DF7eBn2wtMQ==} + /radix-vue@1.4.5(vue@3.4.15): + resolution: {integrity: sha512-qMUtxoxaEFukjs5XAkZKmp2VFQd4bLO8kCrrmycDb2Rt4yrVeKnO0AEdkLNKi0qwJxI+a11d1MvZvhe8sRtsug==} dependencies: '@floating-ui/dom': 1.6.1 '@floating-ui/vue': 1.0.6(vue@3.4.15) From 999676aef7f47bc72cf0396d242d4156920b64e3 Mon Sep 17 00:00:00 2001 From: zernonia Date: Thu, 15 Feb 2024 12:49:53 +0100 Subject: [PATCH 2/6] chore: build registry --- apps/www/src/public/registry/styles/default/select.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/www/src/public/registry/styles/default/select.json b/apps/www/src/public/registry/styles/default/select.json index 0989daf9..6883d4ae 100644 --- a/apps/www/src/public/registry/styles/default/select.json +++ b/apps/www/src/public/registry/styles/default/select.json @@ -19,7 +19,7 @@ }, { "name": "SelectItem.vue", - "content": "\n\n\n" + "content": "\n\n\n" }, { "name": "SelectItemText.vue", From 406e4ff8a8950b4d0ed72a79c43d1f308c6ae65d Mon Sep 17 00:00:00 2001 From: Greg Sanderson Date: Thu, 15 Feb 2024 12:50:23 +0000 Subject: [PATCH 3/6] fix: calendar weeks alignment (#344) The component's CSS adds additional padding which results in Saturday and Sunday not being aligned with the rest of the days. --------- Co-authored-by: Sadegh Barati --- .../src/lib/registry/default/ui/calendar/Calendar.vue | 10 ++-------- .../src/lib/registry/new-york/ui/calendar/Calendar.vue | 10 ++-------- .../src/public/registry/styles/default/calendar.json | 2 +- .../src/public/registry/styles/new-york/calendar.json | 2 +- 4 files changed, 6 insertions(+), 18 deletions(-) diff --git a/apps/www/src/lib/registry/default/ui/calendar/Calendar.vue b/apps/www/src/lib/registry/default/ui/calendar/Calendar.vue index e44796a1..b8c60f3d 100644 --- a/apps/www/src/lib/registry/default/ui/calendar/Calendar.vue +++ b/apps/www/src/lib/registry/default/ui/calendar/Calendar.vue @@ -147,16 +147,10 @@ const vCalendarSlots = computed(() => { @apply mt-4; } .calendar .vc-weekdays { - @apply flex; + @apply justify-items-center; } .calendar .vc-weekday { - @apply text-muted-foreground rounded-md w-full font-normal text-[0.8rem]; -} -.calendar .vc-weekday-1 { - @apply pr-3; -} -.calendar .vc-weekday-7 { - @apply pl-3; + @apply text-muted-foreground rounded-md font-normal text-[0.8rem]; } .calendar .vc-weeks { @apply w-full space-y-2 flex flex-col [&>_div]:grid [&>_div]:grid-cols-7; diff --git a/apps/www/src/lib/registry/new-york/ui/calendar/Calendar.vue b/apps/www/src/lib/registry/new-york/ui/calendar/Calendar.vue index 6fadd9d1..bada5b22 100644 --- a/apps/www/src/lib/registry/new-york/ui/calendar/Calendar.vue +++ b/apps/www/src/lib/registry/new-york/ui/calendar/Calendar.vue @@ -148,16 +148,10 @@ const vCalendarSlots = computed(() => { @apply mt-4; } .calendar .vc-weekdays { - @apply flex; + @apply justify-items-center; } .calendar .vc-weekday { - @apply text-muted-foreground rounded-md w-full font-normal text-[0.8rem]; -} -.calendar .vc-weekday-1 { - @apply pr-3; -} -.calendar .vc-weekday-7 { - @apply pl-3; + @apply text-muted-foreground rounded-md font-normal text-[0.8rem]; } .calendar .vc-weeks { @apply w-full space-y-2 flex flex-col [&>_div]:grid [&>_div]:grid-cols-7; diff --git a/apps/www/src/public/registry/styles/default/calendar.json b/apps/www/src/public/registry/styles/default/calendar.json index f2c24d22..40b158fb 100644 --- a/apps/www/src/public/registry/styles/default/calendar.json +++ b/apps/www/src/public/registry/styles/default/calendar.json @@ -11,7 +11,7 @@ "files": [ { "name": "Calendar.vue", - "content": "\n\n\n\n\n" + "content": "\n\n\n\n\n" }, { "name": "index.ts", diff --git a/apps/www/src/public/registry/styles/new-york/calendar.json b/apps/www/src/public/registry/styles/new-york/calendar.json index 13324253..5b6b65d4 100644 --- a/apps/www/src/public/registry/styles/new-york/calendar.json +++ b/apps/www/src/public/registry/styles/new-york/calendar.json @@ -11,7 +11,7 @@ "files": [ { "name": "Calendar.vue", - "content": "\n\n\n\n\n" + "content": "\n\n\n\n\n" }, { "name": "index.ts", From 9c015067e3df1fea34526a14ee18584acd23bfc7 Mon Sep 17 00:00:00 2001 From: Roman Hrynevych <82209198+romanhrynevych@users.noreply.github.com> Date: Thu, 15 Feb 2024 15:08:29 +0200 Subject: [PATCH 4/6] docs: add `Input with icon` example (#346) --- apps/www/__registry__/index.ts | 14 ++++++++++++++ apps/www/src/content/docs/components/input.md | 4 ++++ .../lib/registry/default/example/InputWithIcon.vue | 13 +++++++++++++ .../registry/new-york/example/InputWithIcon.vue | 13 +++++++++++++ 4 files changed, 44 insertions(+) create mode 100644 apps/www/src/lib/registry/default/example/InputWithIcon.vue create mode 100644 apps/www/src/lib/registry/new-york/example/InputWithIcon.vue diff --git a/apps/www/__registry__/index.ts b/apps/www/__registry__/index.ts index 3bee58c3..1da86efe 100644 --- a/apps/www/__registry__/index.ts +++ b/apps/www/__registry__/index.ts @@ -443,6 +443,13 @@ export const Index = { component: () => import('../src/lib/registry/default/example/InputWithButton.vue').then(m => m.default), files: ['../src/lib/registry/default/example/InputWithButton.vue'], }, + InputWithIcon: { + name: 'InputWithIcon', + type: 'components:example', + registryDependencies: ['input'], + component: () => import('../src/lib/registry/default/example/InputWithIcon.vue').then(m => m.default), + files: ['../src/lib/registry/default/example/InputWithIcon.vue'], + }, InputWithLabel: { name: 'InputWithLabel', type: 'components:example', @@ -1362,6 +1369,13 @@ export const Index = { component: () => import('../src/lib/registry/new-york/example/InputWithButton.vue').then(m => m.default), files: ['../src/lib/registry/new-york/example/InputWithButton.vue'], }, + InputWithIcon: { + name: 'InputWithIcon', + type: 'components:example', + registryDependencies: ['input'], + component: () => import('../src/lib/registry/new-york/example/InputWithIcon.vue').then(m => m.default), + files: ['../src/lib/registry/new-york/example/InputWithIcon.vue'], + }, InputWithLabel: { name: 'InputWithLabel', type: 'components:example', diff --git a/apps/www/src/content/docs/components/input.md b/apps/www/src/content/docs/components/input.md index d1614790..ae55f1d9 100644 --- a/apps/www/src/content/docs/components/input.md +++ b/apps/www/src/content/docs/components/input.md @@ -63,6 +63,10 @@ import { Input } from '@/components/ui/input' +### With Icon + + + ### Form diff --git a/apps/www/src/lib/registry/default/example/InputWithIcon.vue b/apps/www/src/lib/registry/default/example/InputWithIcon.vue new file mode 100644 index 00000000..04d295ff --- /dev/null +++ b/apps/www/src/lib/registry/default/example/InputWithIcon.vue @@ -0,0 +1,13 @@ + + + diff --git a/apps/www/src/lib/registry/new-york/example/InputWithIcon.vue b/apps/www/src/lib/registry/new-york/example/InputWithIcon.vue new file mode 100644 index 00000000..6f61ef7d --- /dev/null +++ b/apps/www/src/lib/registry/new-york/example/InputWithIcon.vue @@ -0,0 +1,13 @@ + + + From 60fbe49004bc41a71fb92b27fa539702717115d3 Mon Sep 17 00:00:00 2001 From: zernonia Date: Thu, 15 Feb 2024 14:58:12 +0100 Subject: [PATCH 5/6] chore: bump radix --- apps/www/package.json | 2 +- packages/cli/package.json | 2 +- packages/cli/test/fixtures/nuxt/package.json | 2 +- packages/module/playground/package.json | 2 +- pnpm-lock.yaml | 12 ++++++------ 5 files changed, 10 insertions(+), 10 deletions(-) diff --git a/apps/www/package.json b/apps/www/package.json index 213f7800..29385c7d 100644 --- a/apps/www/package.json +++ b/apps/www/package.json @@ -32,7 +32,7 @@ "embla-carousel-autoplay": "^8.0.0-rc22", "embla-carousel-vue": "^8.0.0-rc22", "lucide-vue-next": "^0.276.0", - "radix-vue": "^1.4.5", + "radix-vue": "^1.4.6", "tailwindcss-animate": "^1.0.7", "v-calendar": "^3.1.2", "vee-validate": "4.12.5", diff --git a/packages/cli/package.json b/packages/cli/package.json index 4707ce41..2b91137b 100644 --- a/packages/cli/package.json +++ b/packages/cli/package.json @@ -63,7 +63,7 @@ "node-fetch": "^3.3.2", "ora": "^7.0.1", "prompts": "^2.4.2", - "radix-vue": "^1.4.5", + "radix-vue": "^1.4.6", "recast": "^0.23.4", "rimraf": "^5.0.1", "ts-morph": "^19.0.0", diff --git a/packages/cli/test/fixtures/nuxt/package.json b/packages/cli/test/fixtures/nuxt/package.json index ac2bf097..ae302b89 100644 --- a/packages/cli/test/fixtures/nuxt/package.json +++ b/packages/cli/test/fixtures/nuxt/package.json @@ -13,7 +13,7 @@ "class-variance-authority": "^0.7.0", "clsx": "^2.0.0", "lucide-vue-next": "^0.276.0", - "radix-vue": "^1.4.5", + "radix-vue": "^1.4.6", "tailwind-merge": "^1.14.0", "tailwindcss-animate": "^1.0.7" }, diff --git a/packages/module/playground/package.json b/packages/module/playground/package.json index 17778253..fd6b3ce3 100644 --- a/packages/module/playground/package.json +++ b/packages/module/playground/package.json @@ -14,7 +14,7 @@ "embla-carousel": "8.0.0-rc19", "embla-carousel-vue": "8.0.0-rc19", "lucide-vue-next": "^0.276.0", - "radix-vue": "^1.4.5", + "radix-vue": "^1.4.6", "tailwind-merge": "^2.0.0", "tailwindcss-animate": "^1.0.7" }, diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index b6d337dd..e2aad0c4 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -96,8 +96,8 @@ importers: specifier: ^0.276.0 version: 0.276.0(vue@3.4.15) radix-vue: - specifier: ^1.4.5 - version: 1.4.5(vue@3.4.15) + specifier: ^1.4.6 + version: 1.4.6(vue@3.4.15) tailwindcss-animate: specifier: ^1.0.7 version: 1.0.7(tailwindcss@3.4.1) @@ -256,8 +256,8 @@ importers: specifier: ^2.4.2 version: 2.4.2 radix-vue: - specifier: ^1.4.5 - version: 1.4.5(vue@3.4.15) + specifier: ^1.4.6 + version: 1.4.6(vue@3.4.15) recast: specifier: ^0.23.4 version: 0.23.4 @@ -10848,8 +10848,8 @@ packages: resolution: {integrity: sha512-RKJ22hX8mHe3Y6wH/N3wCM6BWtjaxIyyUIkpHOvfFnxdI4yD4tBXEBKSbriGujF6jnSVkJrffuo6vxACiSSxIw==} dev: false - /radix-vue@1.4.5(vue@3.4.15): - resolution: {integrity: sha512-qMUtxoxaEFukjs5XAkZKmp2VFQd4bLO8kCrrmycDb2Rt4yrVeKnO0AEdkLNKi0qwJxI+a11d1MvZvhe8sRtsug==} + /radix-vue@1.4.6(vue@3.4.15): + resolution: {integrity: sha512-PWM4A0xyQV4bu8R+DfAGGEN4zRTM0Qer5rH+gLnQjjsz0kjteZhVOS0KUkpyrKVPprWFYRNqyzpjjkcYBDrlfQ==} dependencies: '@floating-ui/dom': 1.6.1 '@floating-ui/vue': 1.0.6(vue@3.4.15) From 43f9f56077dd90f9856e98dcc1faca8ee2f9129e Mon Sep 17 00:00:00 2001 From: Sadegh Barati Date: Thu, 15 Feb 2024 22:06:15 +0330 Subject: [PATCH 6/6] feat: tags input (#328) * feat: tags input * chore: add `tags-input` to sidebar links * chore: update * chore: add combobox demo * chore: improve tag highlight * chore: update * chore: rename title * chore: add static width to `TagsInputCombo` example --------- Co-authored-by: zernonia --- apps/www/.vitepress/theme/config/docs.ts | 6 ++ apps/www/__registry__/index.ts | 28 ++++++++ .../src/content/docs/components/tags-input.md | 21 ++++++ .../components/DataTableFacetedFilter.vue | 3 +- .../default/example/TagsInputComboboxDemo.vue | 65 +++++++++++++++++++ .../default/example/TagsInputDemo.vue | 17 +++++ .../default/ui/tags-input/TagsInput.vue | 22 +++++++ .../default/ui/tags-input/TagsInputInput.vue | 19 ++++++ .../default/ui/tags-input/TagsInputItem.vue | 22 +++++++ .../ui/tags-input/TagsInputItemDelete.vue | 24 +++++++ .../ui/tags-input/TagsInputItemText.vue | 19 ++++++ .../registry/default/ui/tags-input/index.ts | 5 ++ .../example/TagsInputComboboxDemo.vue | 65 +++++++++++++++++++ .../new-york/example/TagsInputDemo.vue | 17 +++++ .../new-york/ui/tags-input/TagsInput.vue | 22 +++++++ .../new-york/ui/tags-input/TagsInputInput.vue | 19 ++++++ .../new-york/ui/tags-input/TagsInputItem.vue | 22 +++++++ .../ui/tags-input/TagsInputItemDelete.vue | 24 +++++++ .../ui/tags-input/TagsInputItemText.vue | 19 ++++++ .../registry/new-york/ui/tags-input/index.ts | 5 ++ apps/www/src/public/registry/index.json | 16 +++++ .../registry/styles/default/tags-input.json | 34 ++++++++++ .../registry/styles/new-york/tags-input.json | 34 ++++++++++ 23 files changed, 527 insertions(+), 1 deletion(-) create mode 100644 apps/www/src/content/docs/components/tags-input.md create mode 100644 apps/www/src/lib/registry/default/example/TagsInputComboboxDemo.vue create mode 100644 apps/www/src/lib/registry/default/example/TagsInputDemo.vue create mode 100644 apps/www/src/lib/registry/default/ui/tags-input/TagsInput.vue create mode 100644 apps/www/src/lib/registry/default/ui/tags-input/TagsInputInput.vue create mode 100644 apps/www/src/lib/registry/default/ui/tags-input/TagsInputItem.vue create mode 100644 apps/www/src/lib/registry/default/ui/tags-input/TagsInputItemDelete.vue create mode 100644 apps/www/src/lib/registry/default/ui/tags-input/TagsInputItemText.vue create mode 100644 apps/www/src/lib/registry/default/ui/tags-input/index.ts create mode 100644 apps/www/src/lib/registry/new-york/example/TagsInputComboboxDemo.vue create mode 100644 apps/www/src/lib/registry/new-york/example/TagsInputDemo.vue create mode 100644 apps/www/src/lib/registry/new-york/ui/tags-input/TagsInput.vue create mode 100644 apps/www/src/lib/registry/new-york/ui/tags-input/TagsInputInput.vue create mode 100644 apps/www/src/lib/registry/new-york/ui/tags-input/TagsInputItem.vue create mode 100644 apps/www/src/lib/registry/new-york/ui/tags-input/TagsInputItemDelete.vue create mode 100644 apps/www/src/lib/registry/new-york/ui/tags-input/TagsInputItemText.vue create mode 100644 apps/www/src/lib/registry/new-york/ui/tags-input/index.ts create mode 100644 apps/www/src/public/registry/styles/default/tags-input.json create mode 100644 apps/www/src/public/registry/styles/new-york/tags-input.json diff --git a/apps/www/.vitepress/theme/config/docs.ts b/apps/www/.vitepress/theme/config/docs.ts index 7432c50a..34d2cd20 100644 --- a/apps/www/.vitepress/theme/config/docs.ts +++ b/apps/www/.vitepress/theme/config/docs.ts @@ -326,6 +326,12 @@ export const docsConfig: DocsConfig = { href: '/docs/components/tabs', items: [], }, + { + title: 'Tags Input', + href: '/docs/components/tags-input', + label: 'New', + items: [], + }, { title: 'Textarea', href: '/docs/components/textarea', diff --git a/apps/www/__registry__/index.ts b/apps/www/__registry__/index.ts index 1da86efe..b423c462 100644 --- a/apps/www/__registry__/index.ts +++ b/apps/www/__registry__/index.ts @@ -639,6 +639,20 @@ export const Index = { component: () => import('../src/lib/registry/default/example/TabsDemo.vue').then(m => m.default), files: ['../src/lib/registry/default/example/TabsDemo.vue'], }, + TagsInputComboboxDemo: { + name: 'TagsInputComboboxDemo', + type: 'components:example', + registryDependencies: ['command', 'tags-input'], + component: () => import('../src/lib/registry/default/example/TagsInputComboboxDemo.vue').then(m => m.default), + files: ['../src/lib/registry/default/example/TagsInputComboboxDemo.vue'], + }, + TagsInputDemo: { + name: 'TagsInputDemo', + type: 'components:example', + registryDependencies: ['tags-input'], + component: () => import('../src/lib/registry/default/example/TagsInputDemo.vue').then(m => m.default), + files: ['../src/lib/registry/default/example/TagsInputDemo.vue'], + }, TextareaDemo: { name: 'TextareaDemo', type: 'components:example', @@ -1565,6 +1579,20 @@ export const Index = { component: () => import('../src/lib/registry/new-york/example/TabsDemo.vue').then(m => m.default), files: ['../src/lib/registry/new-york/example/TabsDemo.vue'], }, + TagsInputComboboxDemo: { + name: 'TagsInputComboboxDemo', + type: 'components:example', + registryDependencies: ['command', 'tags-input'], + component: () => import('../src/lib/registry/new-york/example/TagsInputComboboxDemo.vue').then(m => m.default), + files: ['../src/lib/registry/new-york/example/TagsInputComboboxDemo.vue'], + }, + TagsInputDemo: { + name: 'TagsInputDemo', + type: 'components:example', + registryDependencies: ['tags-input'], + component: () => import('../src/lib/registry/new-york/example/TagsInputDemo.vue').then(m => m.default), + files: ['../src/lib/registry/new-york/example/TagsInputDemo.vue'], + }, TextareaDemo: { name: 'TextareaDemo', type: 'components:example', diff --git a/apps/www/src/content/docs/components/tags-input.md b/apps/www/src/content/docs/components/tags-input.md new file mode 100644 index 00000000..4833e967 --- /dev/null +++ b/apps/www/src/content/docs/components/tags-input.md @@ -0,0 +1,21 @@ +--- +title: Tags Input +description: Tag inputs render tags inside an input, followed by an actual text input. +source: apps/www/src/lib/registry/default/ui/tags-input +primitive: https://www.radix-vue.com/components/tags-input.html +--- + + + +## Installation + +```bash +npx shadcn-vue@latest add tags-input +``` + + +## Usage + +### Tags with Combobox + + diff --git a/apps/www/src/examples/tasks/components/DataTableFacetedFilter.vue b/apps/www/src/examples/tasks/components/DataTableFacetedFilter.vue index 8261aefc..4ee0ff54 100644 --- a/apps/www/src/examples/tasks/components/DataTableFacetedFilter.vue +++ b/apps/www/src/examples/tasks/components/DataTableFacetedFilter.vue @@ -84,7 +84,8 @@ const selectedValues = computed(() => new Set(props.column?.getFilterValue() as v-for="option in options" :key="option.value" :value="option" - @select="() => { + @select="(e) => { + console.log(e.detail.value) const isSelected = selectedValues.has(option.value) if (isSelected) { selectedValues.delete(option.value) diff --git a/apps/www/src/lib/registry/default/example/TagsInputComboboxDemo.vue b/apps/www/src/lib/registry/default/example/TagsInputComboboxDemo.vue new file mode 100644 index 00000000..23427ba1 --- /dev/null +++ b/apps/www/src/lib/registry/default/example/TagsInputComboboxDemo.vue @@ -0,0 +1,65 @@ + + + diff --git a/apps/www/src/lib/registry/default/example/TagsInputDemo.vue b/apps/www/src/lib/registry/default/example/TagsInputDemo.vue new file mode 100644 index 00000000..260005b6 --- /dev/null +++ b/apps/www/src/lib/registry/default/example/TagsInputDemo.vue @@ -0,0 +1,17 @@ + + + diff --git a/apps/www/src/lib/registry/default/ui/tags-input/TagsInput.vue b/apps/www/src/lib/registry/default/ui/tags-input/TagsInput.vue new file mode 100644 index 00000000..acf6bd3c --- /dev/null +++ b/apps/www/src/lib/registry/default/ui/tags-input/TagsInput.vue @@ -0,0 +1,22 @@ + + + diff --git a/apps/www/src/lib/registry/default/ui/tags-input/TagsInputInput.vue b/apps/www/src/lib/registry/default/ui/tags-input/TagsInputInput.vue new file mode 100644 index 00000000..ccb08a15 --- /dev/null +++ b/apps/www/src/lib/registry/default/ui/tags-input/TagsInputInput.vue @@ -0,0 +1,19 @@ + + + diff --git a/apps/www/src/lib/registry/default/ui/tags-input/TagsInputItem.vue b/apps/www/src/lib/registry/default/ui/tags-input/TagsInputItem.vue new file mode 100644 index 00000000..23fae205 --- /dev/null +++ b/apps/www/src/lib/registry/default/ui/tags-input/TagsInputItem.vue @@ -0,0 +1,22 @@ + + + diff --git a/apps/www/src/lib/registry/default/ui/tags-input/TagsInputItemDelete.vue b/apps/www/src/lib/registry/default/ui/tags-input/TagsInputItemDelete.vue new file mode 100644 index 00000000..544eebc4 --- /dev/null +++ b/apps/www/src/lib/registry/default/ui/tags-input/TagsInputItemDelete.vue @@ -0,0 +1,24 @@ + + + diff --git a/apps/www/src/lib/registry/default/ui/tags-input/TagsInputItemText.vue b/apps/www/src/lib/registry/default/ui/tags-input/TagsInputItemText.vue new file mode 100644 index 00000000..91ade8b6 --- /dev/null +++ b/apps/www/src/lib/registry/default/ui/tags-input/TagsInputItemText.vue @@ -0,0 +1,19 @@ + + + diff --git a/apps/www/src/lib/registry/default/ui/tags-input/index.ts b/apps/www/src/lib/registry/default/ui/tags-input/index.ts new file mode 100644 index 00000000..31305f34 --- /dev/null +++ b/apps/www/src/lib/registry/default/ui/tags-input/index.ts @@ -0,0 +1,5 @@ +export { default as TagsInput } from './TagsInput.vue' +export { default as TagsInputInput } from './TagsInputInput.vue' +export { default as TagsInputItem } from './TagsInputItem.vue' +export { default as TagsInputItemDelete } from './TagsInputItemDelete.vue' +export { default as TagsInputItemText } from './TagsInputItemText.vue' diff --git a/apps/www/src/lib/registry/new-york/example/TagsInputComboboxDemo.vue b/apps/www/src/lib/registry/new-york/example/TagsInputComboboxDemo.vue new file mode 100644 index 00000000..00a53697 --- /dev/null +++ b/apps/www/src/lib/registry/new-york/example/TagsInputComboboxDemo.vue @@ -0,0 +1,65 @@ + + + diff --git a/apps/www/src/lib/registry/new-york/example/TagsInputDemo.vue b/apps/www/src/lib/registry/new-york/example/TagsInputDemo.vue new file mode 100644 index 00000000..b744bc9a --- /dev/null +++ b/apps/www/src/lib/registry/new-york/example/TagsInputDemo.vue @@ -0,0 +1,17 @@ + + + diff --git a/apps/www/src/lib/registry/new-york/ui/tags-input/TagsInput.vue b/apps/www/src/lib/registry/new-york/ui/tags-input/TagsInput.vue new file mode 100644 index 00000000..5989dc20 --- /dev/null +++ b/apps/www/src/lib/registry/new-york/ui/tags-input/TagsInput.vue @@ -0,0 +1,22 @@ + + + diff --git a/apps/www/src/lib/registry/new-york/ui/tags-input/TagsInputInput.vue b/apps/www/src/lib/registry/new-york/ui/tags-input/TagsInputInput.vue new file mode 100644 index 00000000..ff8f1dcc --- /dev/null +++ b/apps/www/src/lib/registry/new-york/ui/tags-input/TagsInputInput.vue @@ -0,0 +1,19 @@ + + + diff --git a/apps/www/src/lib/registry/new-york/ui/tags-input/TagsInputItem.vue b/apps/www/src/lib/registry/new-york/ui/tags-input/TagsInputItem.vue new file mode 100644 index 00000000..c3cc8d40 --- /dev/null +++ b/apps/www/src/lib/registry/new-york/ui/tags-input/TagsInputItem.vue @@ -0,0 +1,22 @@ + + + diff --git a/apps/www/src/lib/registry/new-york/ui/tags-input/TagsInputItemDelete.vue b/apps/www/src/lib/registry/new-york/ui/tags-input/TagsInputItemDelete.vue new file mode 100644 index 00000000..c72ee631 --- /dev/null +++ b/apps/www/src/lib/registry/new-york/ui/tags-input/TagsInputItemDelete.vue @@ -0,0 +1,24 @@ + + + diff --git a/apps/www/src/lib/registry/new-york/ui/tags-input/TagsInputItemText.vue b/apps/www/src/lib/registry/new-york/ui/tags-input/TagsInputItemText.vue new file mode 100644 index 00000000..8948bd07 --- /dev/null +++ b/apps/www/src/lib/registry/new-york/ui/tags-input/TagsInputItemText.vue @@ -0,0 +1,19 @@ + + + diff --git a/apps/www/src/lib/registry/new-york/ui/tags-input/index.ts b/apps/www/src/lib/registry/new-york/ui/tags-input/index.ts new file mode 100644 index 00000000..31305f34 --- /dev/null +++ b/apps/www/src/lib/registry/new-york/ui/tags-input/index.ts @@ -0,0 +1,5 @@ +export { default as TagsInput } from './TagsInput.vue' +export { default as TagsInputInput } from './TagsInputInput.vue' +export { default as TagsInputItem } from './TagsInputItem.vue' +export { default as TagsInputItemDelete } from './TagsInputItemDelete.vue' +export { default as TagsInputItemText } from './TagsInputItemText.vue' diff --git a/apps/www/src/public/registry/index.json b/apps/www/src/public/registry/index.json index de3369a8..834c92eb 100644 --- a/apps/www/src/public/registry/index.json +++ b/apps/www/src/public/registry/index.json @@ -593,6 +593,22 @@ ], "type": "components:ui" }, + { + "name": "tags-input", + "dependencies": [], + "registryDependencies": [ + "utils" + ], + "files": [ + "ui/tags-input/TagsInput.vue", + "ui/tags-input/TagsInputInput.vue", + "ui/tags-input/TagsInputItem.vue", + "ui/tags-input/TagsInputItemDelete.vue", + "ui/tags-input/TagsInputItemText.vue", + "ui/tags-input/index.ts" + ], + "type": "components:ui" + }, { "name": "textarea", "dependencies": [ diff --git a/apps/www/src/public/registry/styles/default/tags-input.json b/apps/www/src/public/registry/styles/default/tags-input.json new file mode 100644 index 00000000..01060323 --- /dev/null +++ b/apps/www/src/public/registry/styles/default/tags-input.json @@ -0,0 +1,34 @@ +{ + "name": "tags-input", + "dependencies": [], + "registryDependencies": [ + "utils" + ], + "files": [ + { + "name": "TagsInput.vue", + "content": "\n\n\n" + }, + { + "name": "TagsInputInput.vue", + "content": "\n\n\n" + }, + { + "name": "TagsInputItem.vue", + "content": "\n\n\n" + }, + { + "name": "TagsInputItemDelete.vue", + "content": "\n\n\n" + }, + { + "name": "TagsInputItemText.vue", + "content": "\n\n\n" + }, + { + "name": "index.ts", + "content": "export { default as TagsInput } from './TagsInput.vue'\nexport { default as TagsInputInput } from './TagsInputInput.vue'\nexport { default as TagsInputItem } from './TagsInputItem.vue'\nexport { default as TagsInputItemDelete } from './TagsInputItemDelete.vue'\nexport { default as TagsInputItemText } from './TagsInputItemText.vue'\n" + } + ], + "type": "components:ui" +} \ No newline at end of file diff --git a/apps/www/src/public/registry/styles/new-york/tags-input.json b/apps/www/src/public/registry/styles/new-york/tags-input.json new file mode 100644 index 00000000..3eaa3f7e --- /dev/null +++ b/apps/www/src/public/registry/styles/new-york/tags-input.json @@ -0,0 +1,34 @@ +{ + "name": "tags-input", + "dependencies": [], + "registryDependencies": [ + "utils" + ], + "files": [ + { + "name": "TagsInput.vue", + "content": "\n\n\n" + }, + { + "name": "TagsInputInput.vue", + "content": "\n\n\n" + }, + { + "name": "TagsInputItem.vue", + "content": "\n\n\n" + }, + { + "name": "TagsInputItemDelete.vue", + "content": "\n\n\n" + }, + { + "name": "TagsInputItemText.vue", + "content": "\n\n\n" + }, + { + "name": "index.ts", + "content": "export { default as TagsInput } from './TagsInput.vue'\nexport { default as TagsInputInput } from './TagsInputInput.vue'\nexport { default as TagsInputItem } from './TagsInputItem.vue'\nexport { default as TagsInputItemDelete } from './TagsInputItemDelete.vue'\nexport { default as TagsInputItemText } from './TagsInputItemText.vue'\n" + } + ], + "type": "components:ui" +} \ No newline at end of file