From 75cf9c40c4499a50591bf3e6a9a269d99a7a7ccb Mon Sep 17 00:00:00 2001 From: Saeid Zareie <65568529+Saeid-Za@users.noreply.github.com> Date: Tue, 5 Mar 2024 14:45:30 +0330 Subject: [PATCH] docs: adding remaining usages of drawer (#380) --- .../theme/components/InlineThemePicker.vue | 54 ++++ .../theme/components/ThemeCustomizer.vue | 106 ++++++++ .../.vitepress/theme/layout/ThemingLayout.vue | 253 +++++------------- apps/www/.vitepress/theme/types/colors.ts | 13 + apps/www/.vitepress/theme/utils/codeeditor.ts | 7 +- apps/www/__registry__/index.ts | 14 + .../src/content/docs/components/combobox.md | 13 +- .../default/example/ComboboxResponsive.vue | 94 +++++++ .../new-york/example/ComboboxResponsive.vue | 94 +++++++ 9 files changed, 452 insertions(+), 196 deletions(-) create mode 100644 apps/www/.vitepress/theme/components/InlineThemePicker.vue create mode 100644 apps/www/.vitepress/theme/components/ThemeCustomizer.vue create mode 100644 apps/www/.vitepress/theme/types/colors.ts create mode 100644 apps/www/src/lib/registry/default/example/ComboboxResponsive.vue create mode 100644 apps/www/src/lib/registry/new-york/example/ComboboxResponsive.vue diff --git a/apps/www/.vitepress/theme/components/InlineThemePicker.vue b/apps/www/.vitepress/theme/components/InlineThemePicker.vue new file mode 100644 index 00000000..5a3cd7b7 --- /dev/null +++ b/apps/www/.vitepress/theme/components/InlineThemePicker.vue @@ -0,0 +1,54 @@ + + + + + + + + + + + + + + + {{ allColors[index] }} + + + + + diff --git a/apps/www/.vitepress/theme/components/ThemeCustomizer.vue b/apps/www/.vitepress/theme/components/ThemeCustomizer.vue new file mode 100644 index 00000000..a5a653ba --- /dev/null +++ b/apps/www/.vitepress/theme/components/ThemeCustomizer.vue @@ -0,0 +1,106 @@ + + + + + + + Customize + + + Pick a style and color for your components. + + + + Color + + + + + + + {{ color }} + + + + + + Radius + + + + {{ r }} + + + + + + Theme + + + + + Light + + + + Dark + + + + + diff --git a/apps/www/.vitepress/theme/layout/ThemingLayout.vue b/apps/www/.vitepress/theme/layout/ThemingLayout.vue index e256c2f2..4159084b 100644 --- a/apps/www/.vitepress/theme/layout/ThemingLayout.vue +++ b/apps/www/.vitepress/theme/layout/ThemingLayout.vue @@ -1,35 +1,19 @@
+ Pick a style and color for your components. +