From fd0087b89bdcf482de287ccf1df0c27120d68288 Mon Sep 17 00:00:00 2001
From: Sadegh Barati
Date: Tue, 3 Oct 2023 02:51:04 +0330
Subject: [PATCH] docs: add `combobox`, `datepicker`, `radio-group`, `select`,
`switch` and `textarea` form and some other exmaples
---
.../src/content/docs/components/combobox.md | 18 ++-
.../content/docs/components/date-picker.md | 12 +-
.../content/docs/components/radio-group.md | 8 +-
.../www/src/content/docs/components/select.md | 8 +-
.../www/src/content/docs/components/switch.md | 8 +-
.../src/content/docs/components/textarea.md | 28 ++++-
.../examples/forms/components/AccountForm.vue | 14 ++-
.../forms/components/AppearanceForm.vue | 50 ++++----
.../default/example/ComboboxDropdownMenu.vue | 108 ++++++++++++++++
.../registry/default/example/ComboboxForm.vue | 112 +++++++++++++++++
.../default/example/ComboboxPopover.vue | 118 ++++++++++++++++++
.../default/example/DatePickerWithPresets.vue | 73 +++++++++++
.../default/example/RadioGroupForm.vue | 76 +++++++++++
.../registry/default/example/SelectForm.vue | 79 ++++++++++++
.../registry/default/example/SwitchForm.vue | 85 +++++++++++++
.../default/example/TextareaDisabled.vue | 7 ++
.../registry/default/example/TextareaForm.vue | 59 +++++++++
.../default/example/TextareaWithButton.vue | 11 ++
.../default/example/TextareaWithLabel.vue | 11 ++
.../default/example/TextareaWithText.vue | 14 +++
.../new-york/example/ComboboxDropdownMenu.vue | 104 +++++++++++++++
.../new-york/example/ComboboxForm.vue | 115 +++++++++++++++++
.../new-york/example/ComboboxPopover.vue | 94 ++++++++++++++
.../example/DatePickerWithPresets.vue | 73 +++++++++++
.../new-york/example/RadioGroupForm.vue | 76 +++++++++++
.../registry/new-york/example/SelectForm.vue | 79 ++++++++++++
.../registry/new-york/example/SwitchForm.vue | 85 +++++++++++++
.../new-york/example/TextareaDisabled.vue | 7 ++
.../new-york/example/TextareaForm.vue | 59 +++++++++
.../new-york/example/TextareaWithButton.vue | 11 ++
.../new-york/example/TextareaWithLabel.vue | 11 ++
.../new-york/example/TextareaWithText.vue | 14 +++
32 files changed, 1585 insertions(+), 42 deletions(-)
create mode 100644 apps/www/src/lib/registry/default/example/ComboboxDropdownMenu.vue
create mode 100644 apps/www/src/lib/registry/default/example/ComboboxForm.vue
create mode 100644 apps/www/src/lib/registry/default/example/ComboboxPopover.vue
create mode 100644 apps/www/src/lib/registry/default/example/DatePickerWithPresets.vue
create mode 100644 apps/www/src/lib/registry/default/example/RadioGroupForm.vue
create mode 100644 apps/www/src/lib/registry/default/example/SelectForm.vue
create mode 100644 apps/www/src/lib/registry/default/example/SwitchForm.vue
create mode 100644 apps/www/src/lib/registry/default/example/TextareaDisabled.vue
create mode 100644 apps/www/src/lib/registry/default/example/TextareaForm.vue
create mode 100644 apps/www/src/lib/registry/default/example/TextareaWithButton.vue
create mode 100644 apps/www/src/lib/registry/default/example/TextareaWithLabel.vue
create mode 100644 apps/www/src/lib/registry/default/example/TextareaWithText.vue
create mode 100644 apps/www/src/lib/registry/new-york/example/ComboboxDropdownMenu.vue
create mode 100644 apps/www/src/lib/registry/new-york/example/ComboboxForm.vue
create mode 100644 apps/www/src/lib/registry/new-york/example/ComboboxPopover.vue
create mode 100644 apps/www/src/lib/registry/new-york/example/DatePickerWithPresets.vue
create mode 100644 apps/www/src/lib/registry/new-york/example/RadioGroupForm.vue
create mode 100644 apps/www/src/lib/registry/new-york/example/SelectForm.vue
create mode 100644 apps/www/src/lib/registry/new-york/example/SwitchForm.vue
create mode 100644 apps/www/src/lib/registry/new-york/example/TextareaDisabled.vue
create mode 100644 apps/www/src/lib/registry/new-york/example/TextareaForm.vue
create mode 100644 apps/www/src/lib/registry/new-york/example/TextareaWithButton.vue
create mode 100644 apps/www/src/lib/registry/new-york/example/TextareaWithLabel.vue
create mode 100644 apps/www/src/lib/registry/new-york/example/TextareaWithText.vue
diff --git a/apps/www/src/content/docs/components/combobox.md b/apps/www/src/content/docs/components/combobox.md
index e8f021da..8f909099 100644
--- a/apps/www/src/content/docs/components/combobox.md
+++ b/apps/www/src/content/docs/components/combobox.md
@@ -86,4 +86,20 @@ const value = ref({})
```
-
\ No newline at end of file
+## Examples
+
+### Combobox
+
+
+
+### Popover
+
+
+
+### Dropdown menu
+
+
+
+### Form
+
+
diff --git a/apps/www/src/content/docs/components/date-picker.md b/apps/www/src/content/docs/components/date-picker.md
index 16d93bcf..43aef149 100644
--- a/apps/www/src/content/docs/components/date-picker.md
+++ b/apps/www/src/content/docs/components/date-picker.md
@@ -56,14 +56,18 @@ const date = ref()
## Examples
-### Date Range Picker
-
-
-
### Date Picker
+### Date Range Picker
+
+
+
+### With Presets
+
+
+
### Form
diff --git a/apps/www/src/content/docs/components/radio-group.md b/apps/www/src/content/docs/components/radio-group.md
index a2b9a762..d7db0bc9 100644
--- a/apps/www/src/content/docs/components/radio-group.md
+++ b/apps/www/src/content/docs/components/radio-group.md
@@ -34,4 +34,10 @@ import { RadioGroup, RadioGroupItem } from '@/components/ui/radio-group'
-```
\ No newline at end of file
+```
+
+## Examples
+
+### Form
+
+
diff --git a/apps/www/src/content/docs/components/select.md b/apps/www/src/content/docs/components/select.md
index e6798284..cc31fcf3 100644
--- a/apps/www/src/content/docs/components/select.md
+++ b/apps/www/src/content/docs/components/select.md
@@ -45,4 +45,10 @@ import {
-```
\ No newline at end of file
+```
+
+## Examples
+
+### Form
+
+
diff --git a/apps/www/src/content/docs/components/switch.md b/apps/www/src/content/docs/components/switch.md
index ccb8c1ad..a359a4df 100644
--- a/apps/www/src/content/docs/components/switch.md
+++ b/apps/www/src/content/docs/components/switch.md
@@ -47,4 +47,10 @@ import { Switch } from '@/components/ui/switch'
-```
\ No newline at end of file
+```
+
+## Examples
+
+### Form
+
+
diff --git a/apps/www/src/content/docs/components/textarea.md b/apps/www/src/content/docs/components/textarea.md
index 39229b03..24b31da8 100644
--- a/apps/www/src/content/docs/components/textarea.md
+++ b/apps/www/src/content/docs/components/textarea.md
@@ -45,4 +45,30 @@ import { Textarea } from '@/components/ui/textarea'
-```
\ No newline at end of file
+```
+
+## Examples
+
+### Default
+
+
+
+### Disabled
+
+
+
+### With Label
+
+
+
+### With Text
+
+
+
+### With Button
+
+
+
+### Form
+
+
diff --git a/apps/www/src/examples/forms/components/AccountForm.vue b/apps/www/src/examples/forms/components/AccountForm.vue
index a73d50cb..43d21c13 100644
--- a/apps/www/src/examples/forms/components/AccountForm.vue
+++ b/apps/www/src/examples/forms/components/AccountForm.vue
@@ -77,7 +77,7 @@ async function onSubmit(values: any) {
-