Skip to content

Commit

Permalink
chore: cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
zernonia committed Jul 18, 2024
1 parent 7c2158a commit 2bb2a21
Show file tree
Hide file tree
Showing 11 changed files with 25 additions and 37 deletions.
9 changes: 9 additions & 0 deletions docs/.vitepress/components/ComponentDemo.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<script setup lang="ts">
import Demos from '../../components/Demos.vue'
</script>

<template>
<div class="not-prose">
<Demos class="grid w-auto lg:grid-cols-2 gap-6 md:gap-12 lg:gap-6" />
</div>
</template>
2 changes: 1 addition & 1 deletion docs/.vitepress/components/DocFooter.vue
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ const showFooter = computed(
<template>
<footer
v-if="showFooter"
class="mt-28"
class="my-28"
>
<div
v-if="hasEditLink || hasLastUpdated"
Expand Down
2 changes: 1 addition & 1 deletion docs/.vitepress/components/DocOutline.vue
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ useActiveAnchor(container, marker)
<template>
<nav
ref="container"
:class="{ 'block relative': headers.length > 0 }"
:class="{ 'block relative non-empty': headers.length > 0 }"
>
<div
ref="marker"
Expand Down
11 changes: 0 additions & 11 deletions docs/.vitepress/components/HomePageDemo.vue

This file was deleted.

4 changes: 2 additions & 2 deletions docs/.vitepress/components/SearchCommandBox.vue
Original file line number Diff line number Diff line change
Expand Up @@ -150,13 +150,13 @@ function formMarkRegex(terms: Set<string>) {
}
}"
as="ul"
class="max-h-[55vh] overflow-auto border-y border-muted empty:border-t-0"
class="max-h-[55vh] overflow-auto border-y border-muted empty:border-t-0 p-0.5"
>
<ListboxItem
v-for="p in results"
:key="p.id"
:value="p.id"
class="data-[highlighted]:bg-background/50 focus:bg-background/50 outline-none text-sm"
class="data-[highlighted]:bg-primary/10 data-[highlighted]:text-primary data-[highlighted]:font-semibold text-muted-foreground text-sm"
as-child
@select="emits('close')"
>
Expand Down
5 changes: 1 addition & 4 deletions docs/.vitepress/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,6 @@ export default defineConfig({
sidebar: [
{
text: 'Overview',
collapsed: false,
items: [
{ text: 'Introduction', link: '/overview/introduction' },
{ text: 'Getting Started', link: '/overview/getting-started' },
Expand All @@ -83,7 +82,6 @@ export default defineConfig({
},
{
text: 'Guides',
collapsed: false,
items: [
{ text: 'Styling', link: '/guides/styling' },
{ text: 'Animation/Transition', link: '/guides/animation' },
Expand All @@ -97,7 +95,7 @@ export default defineConfig({
},
{
text: 'Components',
collapsed: false,
link: '/components/',
items: [
{ text: 'Accordion', link: '/components/accordion' },
{ text: 'Alert Dialog', link: '/components/alert-dialog' },
Expand Down Expand Up @@ -146,7 +144,6 @@ export default defineConfig({
},
{
text: 'Utilities',
collapsed: false,
items: [
{ text: 'Config Provider', link: '/utilities/config-provider' },
{ text: 'Visually Hidden', link: '/utilities/visually-hidden' },
Expand Down
9 changes: 5 additions & 4 deletions docs/.vitepress/custom/Docs.vue
Original file line number Diff line number Diff line change
Expand Up @@ -51,16 +51,17 @@ const activeSection = computed(() => sidebar.value.find(section => section.items
</CollapsibleContent>
</CollapsibleRoot>

<div class="font-bold text-primary mb-2 text-sm">
{{ activeSection?.text }}
</div>
<article class="w-full prose prose-stone dark:prose-invert max-w-none">
<div>
<Content />
</div>
<Content />
</article>

<DocFooter />
</div>

<div class="hidden xl:block w-64 flex-shrink-0 py-12 pl-6 sticky top-[7.25rem] h-full overflow-y-auto md:overflow-x-hidden max-h-[calc(100vh-7.25rem)]">
<div class="hidden xl:has-[.non-empty]:block w-64 flex-shrink-0 py-12 pl-6 sticky top-[7.25rem] h-full overflow-y-auto md:overflow-x-hidden max-h-[calc(100vh-7.25rem)]">
<DocOutline />
</div>
</main>
Expand Down
4 changes: 0 additions & 4 deletions docs/.vitepress/theme/index.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
// https://vitepress.dev/guide/custom-theme
import { h } from 'vue'
import HomePage from '../components/HomePage.vue'
import HomePageDemo from '../components/HomePageDemo.vue'
import EmbedIframe from '../components/EmbedIframe.vue'
import ComponentPreview from '../components/ComponentPreview.vue'
import InstallationTabs from '../components/InstallationTabs.vue'
Expand Down
6 changes: 5 additions & 1 deletion docs/.vitepress/theme/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,10 @@
@apply outline-primary;
}

::selection {
background: hsl(var(--primary) / 0.3);
}

/* Font face Geist font */
@font-face {
font-family: "geist-sans";
Expand Down Expand Up @@ -143,7 +147,7 @@ kbd {
}

mark {
@apply bg-primary/30 dark:bg-primary text-black;
@apply bg-transparent text-foreground font-semibold;
}

[class*="language"] {
Expand Down
8 changes: 1 addition & 7 deletions docs/content/components/date-range-picker.md
Original file line number Diff line number Diff line change
Expand Up @@ -182,15 +182,9 @@ The component that pops out when the popover is open.

### Arrow

An optional arrow element to render alongside the popover. This can be used to help visually link the anchor with the PopoverContent. Must be rendered inside PopoverContent.

<!-- @include: @/meta/DateRangePickerArrow.md -->

### Arrow

An optional arrow element to render alongside the popover. This can be used to help visually link the anchor with the `DateRangePickerContent`. Must be rendered inside `DateRangePickerContent`.

<!-- @include: @/meta/DatePickerArrow.md -->
<!-- @include: @/meta/DateRangePickerArrow.md -->

### Close

Expand Down
2 changes: 0 additions & 2 deletions packages/radix-vue/src/Slider/SliderRoot.vue
Original file line number Diff line number Diff line change
Expand Up @@ -149,8 +149,6 @@ provideSliderRootContext({
max,
disabled,
})
console.log(modelValue.value)
</script>

<template>
Expand Down

0 comments on commit 2bb2a21

Please sign in to comment.