-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: bump deps & update components
- Loading branch information
Showing
38 changed files
with
1,357 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
<template> | ||
<Primitive :as :as-child :class="placeHolderStyles().wrapper({ class: props.class })"> | ||
<svg :class="placeHolderStyles().svg()" fill="none"> | ||
<defs> | ||
<pattern | ||
id="pattern-5c1e4f0e-62d5-498b-8ff0-cf77bb448c8e" | ||
x="0" | ||
y="0" | ||
width="10" | ||
height="10" | ||
patternUnits="userSpaceOnUse" | ||
> | ||
<path d="M-3 13 15-5M-5 5l18-18M-1 21 17 3" /> | ||
</pattern> | ||
</defs> | ||
<rect | ||
stroke="none" | ||
fill="url(#pattern-5c1e4f0e-62d5-498b-8ff0-cf77bb448c8e)" | ||
width="100%" | ||
height="100%" | ||
/> | ||
</svg> | ||
|
||
<slot /> | ||
</Primitive> | ||
</template> | ||
|
||
<script lang="ts"> | ||
import { Primitive } from "radix-vue"; | ||
import type { PrimitiveProps } from "radix-vue"; | ||
import type { HTMLAttributes } from "vue"; | ||
export const placeHolderStyles = tv({ | ||
slots: { | ||
wrapper: | ||
"relative flex items-center justify-center overflow-hidden rounded-md border border-dashed px-4 opacity-75", | ||
svg: "absolute inset-0 size-full stroke-foreground/10", | ||
}, | ||
}); | ||
</script> | ||
|
||
<script lang="ts" setup> | ||
const props = defineProps< | ||
PrimitiveProps & { | ||
/** | ||
* Additional classes to add to the parent element. | ||
*/ | ||
class?: HTMLAttributes["class"]; | ||
} | ||
>(); | ||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
<template> | ||
<div data-sidebar="content" :class="sideBarContentStyles({ class: props.class })"> | ||
<slot /> | ||
</div> | ||
</template> | ||
<script lang="ts"> | ||
import type { HTMLAttributes } from "vue"; | ||
export const sideBarContentStyles = tv({ | ||
base: "flex min-h-0 flex-1 flex-col gap-2 overflow-auto group-data-[collapsible=icon]:overflow-hidden", | ||
}); | ||
</script> | ||
<script setup lang="ts"> | ||
const props = defineProps<{ | ||
/** | ||
* Additional classes to apply to the sidebar content. | ||
*/ | ||
class?: HTMLAttributes["class"]; | ||
}>(); | ||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
<template> | ||
<div data-sidebar="footer" :class="sideBarFooterStyles({ class: props.class })"> | ||
<slot /> | ||
</div> | ||
</template> | ||
<script lang="ts"> | ||
import type { HTMLAttributes } from "vue"; | ||
export const sideBarFooterStyles = tv({ | ||
base: "flex flex-col gap-2 p-2", | ||
}); | ||
</script> | ||
<script setup lang="ts"> | ||
const props = defineProps<{ | ||
/** | ||
* Additional classes to apply to the parent element. | ||
*/ | ||
class?: HTMLAttributes["class"]; | ||
}>(); | ||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
<template> | ||
<div data-sidebar="group" :class="sideBarGroupStyles({ class: props.class })"> | ||
<slot /> | ||
</div> | ||
</template> | ||
<script lang="ts"> | ||
import type { HTMLAttributes } from "vue"; | ||
export const sideBarGroupStyles = tv({ | ||
base: "relative flex w-full min-w-0 flex-col p-2", | ||
}); | ||
</script> | ||
<script setup lang="ts"> | ||
const props = defineProps<{ | ||
/** | ||
* Additional classes to apply to the parent element. | ||
*/ | ||
class?: HTMLAttributes["class"]; | ||
}>(); | ||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
<template> | ||
<Primitive | ||
data-sidebar="group-action" | ||
:as="as" | ||
:as-child="asChild" | ||
:class="sideBarGroupActionStyles({ class: props.class })" | ||
> | ||
<slot /> | ||
</Primitive> | ||
</template> | ||
<script lang="ts"> | ||
import { Primitive } from "radix-vue"; | ||
import type { PrimitiveProps } from "radix-vue"; | ||
import type { HTMLAttributes } from "vue"; | ||
export const sideBarGroupActionStyles = tv({ | ||
base: "absolute right-3 top-3.5 flex aspect-square w-5 items-center justify-center rounded-md p-0 text-sidebar-foreground outline-none ring-sidebar-ring transition-transform after:absolute after:-inset-2 hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 group-data-[collapsible=icon]:hidden after:md:hidden [&>svg]:size-4 [&>svg]:shrink-0", | ||
}); | ||
</script> | ||
<script setup lang="ts"> | ||
const props = defineProps< | ||
PrimitiveProps & { | ||
/** | ||
* Additional classes to apply to the parent element. | ||
*/ | ||
class?: HTMLAttributes["class"]; | ||
} | ||
>(); | ||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
<template> | ||
<div data-sidebar="group-content" :class="sideBarGroupContentStyles({ class: props.class })"> | ||
<slot /> | ||
</div> | ||
</template> | ||
<script lang="ts"> | ||
import type { HTMLAttributes } from "vue"; | ||
export const sideBarGroupContentStyles = tv({ | ||
base: "w-full text-sm", | ||
}); | ||
</script> | ||
<script setup lang="ts"> | ||
const props = defineProps<{ | ||
/** | ||
* Additional classes to apply to the parent element. | ||
*/ | ||
class?: HTMLAttributes["class"]; | ||
}>(); | ||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
<template> | ||
<Primitive | ||
data-sidebar="group-label" | ||
:as="as" | ||
:as-child="asChild" | ||
:class="sideBarGroupLabelStyles({ class: props.class })" | ||
> | ||
<slot>{{ props.label }}</slot> | ||
</Primitive> | ||
</template> | ||
<script lang="ts"> | ||
import { Primitive } from "radix-vue"; | ||
import type { PrimitiveProps } from "radix-vue"; | ||
import type { HTMLAttributes } from "vue"; | ||
export const sideBarGroupLabelStyles = tv({ | ||
base: "flex h-8 shrink-0 items-center rounded-md px-2 text-xs font-medium text-sidebar-foreground/50 outline-none ring-sidebar-ring transition-[margin,opa] duration-200 ease-linear focus-visible:ring-2 group-data-[collapsible=icon]:-mt-8 group-data-[collapsible=icon]:opacity-0 [&>svg]:size-4 [&>svg]:shrink-0", | ||
}); | ||
</script> | ||
<script setup lang="ts"> | ||
const props = defineProps< | ||
PrimitiveProps & { | ||
/** | ||
* Additional classes to apply to the parent element. | ||
*/ | ||
class?: HTMLAttributes["class"]; | ||
/** | ||
* The label for the group. | ||
*/ | ||
label?: string; | ||
} | ||
>(); | ||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
<template> | ||
<div data-sidebar="header" :class="sideBarHeaderStyles({ class: props.class })"> | ||
<slot /> | ||
</div> | ||
</template> | ||
<script lang="ts"> | ||
import type { HTMLAttributes } from "vue"; | ||
export const sideBarHeaderStyles = tv({ | ||
base: "flex flex-col gap-2 p-2", | ||
}); | ||
</script> | ||
<script setup lang="ts"> | ||
const props = defineProps<{ | ||
/** | ||
* Additional classes to apply to the parent element. | ||
*/ | ||
class?: HTMLAttributes["class"]; | ||
}>(); | ||
</script> |
Oops, something went wrong.