@shwfed/nuxt 0.1.49 → 0.1.51
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/module.json +1 -1
- package/dist/runtime/components/app.d.vue.ts +35 -54
- package/dist/runtime/components/app.vue +528 -100
- package/dist/runtime/components/app.vue.d.ts +35 -54
- package/dist/runtime/components/logo.d.vue.ts +3 -0
- package/dist/runtime/components/logo.vue +58 -0
- package/dist/runtime/components/logo.vue.d.ts +3 -0
- package/dist/runtime/components/ui/collapsible/Collapsible.d.vue.ts +20 -0
- package/dist/runtime/components/ui/collapsible/Collapsible.vue +23 -0
- package/dist/runtime/components/ui/collapsible/Collapsible.vue.d.ts +20 -0
- package/dist/runtime/components/ui/collapsible/CollapsibleContent.d.vue.ts +14 -0
- package/dist/runtime/components/ui/collapsible/CollapsibleContent.vue +17 -0
- package/dist/runtime/components/ui/collapsible/CollapsibleContent.vue.d.ts +14 -0
- package/dist/runtime/components/ui/collapsible/CollapsibleTrigger.d.vue.ts +14 -0
- package/dist/runtime/components/ui/collapsible/CollapsibleTrigger.vue +16 -0
- package/dist/runtime/components/ui/collapsible/CollapsibleTrigger.vue.d.ts +14 -0
- package/dist/runtime/components/ui/collapsible/index.d.ts +3 -0
- package/dist/runtime/components/ui/collapsible/index.js +3 -0
- package/dist/runtime/components/ui/field/index.d.ts +1 -1
- package/dist/runtime/components/ui/navigation-menu/NavigationMenuContent.vue +1 -1
- package/dist/runtime/components/ui/navigation-menu/NavigationMenuIndicator.vue +1 -1
- package/dist/runtime/components/ui/navigation-menu/NavigationMenuLink.vue +1 -1
- package/dist/runtime/components/ui/sheet/Sheet.d.vue.ts +21 -0
- package/dist/runtime/components/ui/sheet/Sheet.vue +20 -0
- package/dist/runtime/components/ui/sheet/Sheet.vue.d.ts +21 -0
- package/dist/runtime/components/ui/sheet/SheetClose.d.vue.ts +14 -0
- package/dist/runtime/components/ui/sheet/SheetClose.vue +16 -0
- package/dist/runtime/components/ui/sheet/SheetClose.vue.d.ts +14 -0
- package/dist/runtime/components/ui/sheet/SheetContent.d.vue.ts +35 -0
- package/dist/runtime/components/ui/sheet/SheetContent.vue +53 -0
- package/dist/runtime/components/ui/sheet/SheetContent.vue.d.ts +35 -0
- package/dist/runtime/components/ui/sheet/SheetDescription.d.vue.ts +18 -0
- package/dist/runtime/components/ui/sheet/SheetDescription.vue +21 -0
- package/dist/runtime/components/ui/sheet/SheetDescription.vue.d.ts +18 -0
- package/dist/runtime/components/ui/sheet/SheetFooter.d.vue.ts +17 -0
- package/dist/runtime/components/ui/sheet/SheetFooter.vue +17 -0
- package/dist/runtime/components/ui/sheet/SheetFooter.vue.d.ts +17 -0
- package/dist/runtime/components/ui/sheet/SheetHeader.d.vue.ts +17 -0
- package/dist/runtime/components/ui/sheet/SheetHeader.vue +15 -0
- package/dist/runtime/components/ui/sheet/SheetHeader.vue.d.ts +17 -0
- package/dist/runtime/components/ui/sheet/SheetOverlay.d.vue.ts +18 -0
- package/dist/runtime/components/ui/sheet/SheetOverlay.vue +22 -0
- package/dist/runtime/components/ui/sheet/SheetOverlay.vue.d.ts +18 -0
- package/dist/runtime/components/ui/sheet/SheetTitle.d.vue.ts +18 -0
- package/dist/runtime/components/ui/sheet/SheetTitle.vue +21 -0
- package/dist/runtime/components/ui/sheet/SheetTitle.vue.d.ts +18 -0
- package/dist/runtime/components/ui/sheet/SheetTrigger.d.vue.ts +14 -0
- package/dist/runtime/components/ui/sheet/SheetTrigger.vue +16 -0
- package/dist/runtime/components/ui/sheet/SheetTrigger.vue.d.ts +14 -0
- package/dist/runtime/components/ui/sheet/index.d.ts +8 -0
- package/dist/runtime/components/ui/sheet/index.js +8 -0
- package/dist/runtime/components/ui/sidebar/Sidebar.d.vue.ts +22 -0
- package/dist/runtime/components/ui/sidebar/Sidebar.vue +92 -0
- package/dist/runtime/components/ui/sidebar/Sidebar.vue.d.ts +22 -0
- package/dist/runtime/components/ui/sidebar/SidebarContent.d.vue.ts +17 -0
- package/dist/runtime/components/ui/sidebar/SidebarContent.vue +16 -0
- package/dist/runtime/components/ui/sidebar/SidebarContent.vue.d.ts +17 -0
- package/dist/runtime/components/ui/sidebar/SidebarFooter.d.vue.ts +17 -0
- package/dist/runtime/components/ui/sidebar/SidebarFooter.vue +16 -0
- package/dist/runtime/components/ui/sidebar/SidebarFooter.vue.d.ts +17 -0
- package/dist/runtime/components/ui/sidebar/SidebarGroup.d.vue.ts +17 -0
- package/dist/runtime/components/ui/sidebar/SidebarGroup.vue +16 -0
- package/dist/runtime/components/ui/sidebar/SidebarGroup.vue.d.ts +17 -0
- package/dist/runtime/components/ui/sidebar/SidebarGroupAction.d.vue.ts +18 -0
- package/dist/runtime/components/ui/sidebar/SidebarGroupAction.vue +26 -0
- package/dist/runtime/components/ui/sidebar/SidebarGroupAction.vue.d.ts +18 -0
- package/dist/runtime/components/ui/sidebar/SidebarGroupContent.d.vue.ts +17 -0
- package/dist/runtime/components/ui/sidebar/SidebarGroupContent.vue +16 -0
- package/dist/runtime/components/ui/sidebar/SidebarGroupContent.vue.d.ts +17 -0
- package/dist/runtime/components/ui/sidebar/SidebarGroupLabel.d.vue.ts +18 -0
- package/dist/runtime/components/ui/sidebar/SidebarGroupLabel.vue +25 -0
- package/dist/runtime/components/ui/sidebar/SidebarGroupLabel.vue.d.ts +18 -0
- package/dist/runtime/components/ui/sidebar/SidebarHeader.d.vue.ts +17 -0
- package/dist/runtime/components/ui/sidebar/SidebarHeader.vue +16 -0
- package/dist/runtime/components/ui/sidebar/SidebarHeader.vue.d.ts +17 -0
- package/dist/runtime/components/ui/sidebar/SidebarInput.d.vue.ts +17 -0
- package/dist/runtime/components/ui/sidebar/SidebarInput.vue +20 -0
- package/dist/runtime/components/ui/sidebar/SidebarInput.vue.d.ts +17 -0
- package/dist/runtime/components/ui/sidebar/SidebarInset.d.vue.ts +17 -0
- package/dist/runtime/components/ui/sidebar/SidebarInset.vue +19 -0
- package/dist/runtime/components/ui/sidebar/SidebarInset.vue.d.ts +17 -0
- package/dist/runtime/components/ui/sidebar/SidebarMenu.d.vue.ts +17 -0
- package/dist/runtime/components/ui/sidebar/SidebarMenu.vue +16 -0
- package/dist/runtime/components/ui/sidebar/SidebarMenu.vue.d.ts +17 -0
- package/dist/runtime/components/ui/sidebar/SidebarMenuAction.d.vue.ts +21 -0
- package/dist/runtime/components/ui/sidebar/SidebarMenuAction.vue +31 -0
- package/dist/runtime/components/ui/sidebar/SidebarMenuAction.vue.d.ts +21 -0
- package/dist/runtime/components/ui/sidebar/SidebarMenuBadge.d.vue.ts +17 -0
- package/dist/runtime/components/ui/sidebar/SidebarMenuBadge.vue +24 -0
- package/dist/runtime/components/ui/sidebar/SidebarMenuBadge.vue.d.ts +17 -0
- package/dist/runtime/components/ui/sidebar/SidebarMenuButton.d.vue.ts +24 -0
- package/dist/runtime/components/ui/sidebar/SidebarMenuButton.vue +50 -0
- package/dist/runtime/components/ui/sidebar/SidebarMenuButton.vue.d.ts +24 -0
- package/dist/runtime/components/ui/sidebar/SidebarMenuButtonChild.d.vue.ts +26 -0
- package/dist/runtime/components/ui/sidebar/SidebarMenuButtonChild.vue +28 -0
- package/dist/runtime/components/ui/sidebar/SidebarMenuButtonChild.vue.d.ts +26 -0
- package/dist/runtime/components/ui/sidebar/SidebarMenuItem.d.vue.ts +17 -0
- package/dist/runtime/components/ui/sidebar/SidebarMenuItem.vue +16 -0
- package/dist/runtime/components/ui/sidebar/SidebarMenuItem.vue.d.ts +17 -0
- package/dist/runtime/components/ui/sidebar/SidebarMenuSkeleton.d.vue.ts +8 -0
- package/dist/runtime/components/ui/sidebar/SidebarMenuSkeleton.vue +32 -0
- package/dist/runtime/components/ui/sidebar/SidebarMenuSkeleton.vue.d.ts +8 -0
- package/dist/runtime/components/ui/sidebar/SidebarMenuSub.d.vue.ts +17 -0
- package/dist/runtime/components/ui/sidebar/SidebarMenuSub.vue +20 -0
- package/dist/runtime/components/ui/sidebar/SidebarMenuSub.vue.d.ts +17 -0
- package/dist/runtime/components/ui/sidebar/SidebarMenuSubButton.d.vue.ts +23 -0
- package/dist/runtime/components/ui/sidebar/SidebarMenuSubButton.vue +32 -0
- package/dist/runtime/components/ui/sidebar/SidebarMenuSubButton.vue.d.ts +23 -0
- package/dist/runtime/components/ui/sidebar/SidebarMenuSubItem.d.vue.ts +17 -0
- package/dist/runtime/components/ui/sidebar/SidebarMenuSubItem.vue +16 -0
- package/dist/runtime/components/ui/sidebar/SidebarMenuSubItem.vue.d.ts +17 -0
- package/dist/runtime/components/ui/sidebar/SidebarProvider.d.vue.ts +26 -0
- package/dist/runtime/components/ui/sidebar/SidebarProvider.vue +61 -0
- package/dist/runtime/components/ui/sidebar/SidebarProvider.vue.d.ts +26 -0
- package/dist/runtime/components/ui/sidebar/SidebarRail.d.vue.ts +17 -0
- package/dist/runtime/components/ui/sidebar/SidebarRail.vue +30 -0
- package/dist/runtime/components/ui/sidebar/SidebarRail.vue.d.ts +17 -0
- package/dist/runtime/components/ui/sidebar/SidebarSeparator.d.vue.ts +17 -0
- package/dist/runtime/components/ui/sidebar/SidebarSeparator.vue +17 -0
- package/dist/runtime/components/ui/sidebar/SidebarSeparator.vue.d.ts +17 -0
- package/dist/runtime/components/ui/sidebar/SidebarTrigger.d.vue.ts +7 -0
- package/dist/runtime/components/ui/sidebar/SidebarTrigger.vue +23 -0
- package/dist/runtime/components/ui/sidebar/SidebarTrigger.vue.d.ts +7 -0
- package/dist/runtime/components/ui/sidebar/index.d.ts +37 -0
- package/dist/runtime/components/ui/sidebar/index.js +45 -0
- package/dist/runtime/components/ui/sidebar/utils.d.ts +56 -0
- package/dist/runtime/components/ui/sidebar/utils.js +8 -0
- package/dist/runtime/components/ui/skeleton/Skeleton.d.vue.ts +7 -0
- package/dist/runtime/components/ui/skeleton/Skeleton.vue +13 -0
- package/dist/runtime/components/ui/skeleton/Skeleton.vue.d.ts +7 -0
- package/dist/runtime/components/ui/skeleton/index.d.ts +1 -0
- package/dist/runtime/components/ui/skeleton/index.js +1 -0
- package/dist/runtime/plugins/cel/env.js +9 -1
- package/dist/runtime/plugins/cel/index.js +2 -1
- package/package.json +1 -1
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { HTMLAttributes } from 'vue';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
class?: HTMLAttributes['class'];
|
|
4
|
+
};
|
|
5
|
+
declare var __VLS_8: {};
|
|
6
|
+
type __VLS_Slots = {} & {
|
|
7
|
+
default?: (props: typeof __VLS_8) => any;
|
|
8
|
+
};
|
|
9
|
+
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
10
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
11
|
+
declare const _default: typeof __VLS_export;
|
|
12
|
+
export default _default;
|
|
13
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
14
|
+
new (): {
|
|
15
|
+
$slots: S;
|
|
16
|
+
};
|
|
17
|
+
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
<script setup>
|
|
2
|
+
import { cn } from "../../../utils/cn";
|
|
3
|
+
import { Separator } from "../separator";
|
|
4
|
+
const props = defineProps({
|
|
5
|
+
class: { type: null, required: false }
|
|
6
|
+
});
|
|
7
|
+
</script>
|
|
8
|
+
|
|
9
|
+
<template>
|
|
10
|
+
<Separator
|
|
11
|
+
data-slot="sidebar-separator"
|
|
12
|
+
data-sidebar="separator"
|
|
13
|
+
:class="cn('bg-zinc-200 mx-2 w-auto', props.class)"
|
|
14
|
+
>
|
|
15
|
+
<slot />
|
|
16
|
+
</Separator>
|
|
17
|
+
</template>
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { HTMLAttributes } from 'vue';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
class?: HTMLAttributes['class'];
|
|
4
|
+
};
|
|
5
|
+
declare var __VLS_8: {};
|
|
6
|
+
type __VLS_Slots = {} & {
|
|
7
|
+
default?: (props: typeof __VLS_8) => any;
|
|
8
|
+
};
|
|
9
|
+
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
10
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
11
|
+
declare const _default: typeof __VLS_export;
|
|
12
|
+
export default _default;
|
|
13
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
14
|
+
new (): {
|
|
15
|
+
$slots: S;
|
|
16
|
+
};
|
|
17
|
+
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { HTMLAttributes } from 'vue';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
class?: HTMLAttributes['class'];
|
|
4
|
+
};
|
|
5
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
6
|
+
declare const _default: typeof __VLS_export;
|
|
7
|
+
export default _default;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
<script setup>
|
|
2
|
+
import { Icon } from "@iconify/vue";
|
|
3
|
+
import { cn } from "../../../utils/cn";
|
|
4
|
+
import { Button } from "../button";
|
|
5
|
+
import { useSidebar } from "./utils";
|
|
6
|
+
const props = defineProps({
|
|
7
|
+
class: { type: null, required: false }
|
|
8
|
+
});
|
|
9
|
+
const { toggleSidebar } = useSidebar();
|
|
10
|
+
</script>
|
|
11
|
+
|
|
12
|
+
<template>
|
|
13
|
+
<Button
|
|
14
|
+
data-sidebar="trigger"
|
|
15
|
+
data-slot="sidebar-trigger"
|
|
16
|
+
variant="ghost"
|
|
17
|
+
:class="cn('h-7 w-7', props.class)"
|
|
18
|
+
@click="toggleSidebar"
|
|
19
|
+
>
|
|
20
|
+
<Icon icon="lucide:panel-left" />
|
|
21
|
+
<span class="sr-only">Toggle Sidebar</span>
|
|
22
|
+
</Button>
|
|
23
|
+
</template>
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { HTMLAttributes } from 'vue';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
class?: HTMLAttributes['class'];
|
|
4
|
+
};
|
|
5
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
6
|
+
declare const _default: typeof __VLS_export;
|
|
7
|
+
export default _default;
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import type { VariantProps } from 'class-variance-authority';
|
|
2
|
+
import type { HTMLAttributes } from 'vue';
|
|
3
|
+
export interface SidebarProps {
|
|
4
|
+
side?: 'left' | 'right';
|
|
5
|
+
variant?: 'sidebar' | 'floating' | 'inset';
|
|
6
|
+
collapsible?: 'offcanvas' | 'icon' | 'none';
|
|
7
|
+
class?: HTMLAttributes['class'];
|
|
8
|
+
}
|
|
9
|
+
export { default as Sidebar } from './Sidebar.vue.js';
|
|
10
|
+
export { default as SidebarContent } from './SidebarContent.vue.js';
|
|
11
|
+
export { default as SidebarFooter } from './SidebarFooter.vue.js';
|
|
12
|
+
export { default as SidebarGroup } from './SidebarGroup.vue.js';
|
|
13
|
+
export { default as SidebarGroupAction } from './SidebarGroupAction.vue.js';
|
|
14
|
+
export { default as SidebarGroupContent } from './SidebarGroupContent.vue.js';
|
|
15
|
+
export { default as SidebarGroupLabel } from './SidebarGroupLabel.vue.js';
|
|
16
|
+
export { default as SidebarHeader } from './SidebarHeader.vue.js';
|
|
17
|
+
export { default as SidebarInput } from './SidebarInput.vue.js';
|
|
18
|
+
export { default as SidebarInset } from './SidebarInset.vue.js';
|
|
19
|
+
export { default as SidebarMenu } from './SidebarMenu.vue.js';
|
|
20
|
+
export { default as SidebarMenuAction } from './SidebarMenuAction.vue.js';
|
|
21
|
+
export { default as SidebarMenuBadge } from './SidebarMenuBadge.vue.js';
|
|
22
|
+
export { default as SidebarMenuButton } from './SidebarMenuButton.vue.js';
|
|
23
|
+
export { default as SidebarMenuItem } from './SidebarMenuItem.vue.js';
|
|
24
|
+
export { default as SidebarMenuSkeleton } from './SidebarMenuSkeleton.vue.js';
|
|
25
|
+
export { default as SidebarMenuSub } from './SidebarMenuSub.vue.js';
|
|
26
|
+
export { default as SidebarMenuSubButton } from './SidebarMenuSubButton.vue.js';
|
|
27
|
+
export { default as SidebarMenuSubItem } from './SidebarMenuSubItem.vue.js';
|
|
28
|
+
export { default as SidebarProvider } from './SidebarProvider.vue.js';
|
|
29
|
+
export { default as SidebarRail } from './SidebarRail.vue.js';
|
|
30
|
+
export { default as SidebarSeparator } from './SidebarSeparator.vue.js';
|
|
31
|
+
export { default as SidebarTrigger } from './SidebarTrigger.vue.js';
|
|
32
|
+
export { useSidebar } from './utils.js';
|
|
33
|
+
export declare const sidebarMenuButtonVariants: (props?: ({
|
|
34
|
+
variant?: "default" | "outline" | null | undefined;
|
|
35
|
+
size?: "default" | "sm" | "lg" | null | undefined;
|
|
36
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
37
|
+
export type SidebarMenuButtonVariants = VariantProps<typeof sidebarMenuButtonVariants>;
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { cva } from "class-variance-authority";
|
|
2
|
+
export { default as Sidebar } from "./Sidebar.vue";
|
|
3
|
+
export { default as SidebarContent } from "./SidebarContent.vue";
|
|
4
|
+
export { default as SidebarFooter } from "./SidebarFooter.vue";
|
|
5
|
+
export { default as SidebarGroup } from "./SidebarGroup.vue";
|
|
6
|
+
export { default as SidebarGroupAction } from "./SidebarGroupAction.vue";
|
|
7
|
+
export { default as SidebarGroupContent } from "./SidebarGroupContent.vue";
|
|
8
|
+
export { default as SidebarGroupLabel } from "./SidebarGroupLabel.vue";
|
|
9
|
+
export { default as SidebarHeader } from "./SidebarHeader.vue";
|
|
10
|
+
export { default as SidebarInput } from "./SidebarInput.vue";
|
|
11
|
+
export { default as SidebarInset } from "./SidebarInset.vue";
|
|
12
|
+
export { default as SidebarMenu } from "./SidebarMenu.vue";
|
|
13
|
+
export { default as SidebarMenuAction } from "./SidebarMenuAction.vue";
|
|
14
|
+
export { default as SidebarMenuBadge } from "./SidebarMenuBadge.vue";
|
|
15
|
+
export { default as SidebarMenuButton } from "./SidebarMenuButton.vue";
|
|
16
|
+
export { default as SidebarMenuItem } from "./SidebarMenuItem.vue";
|
|
17
|
+
export { default as SidebarMenuSkeleton } from "./SidebarMenuSkeleton.vue";
|
|
18
|
+
export { default as SidebarMenuSub } from "./SidebarMenuSub.vue";
|
|
19
|
+
export { default as SidebarMenuSubButton } from "./SidebarMenuSubButton.vue";
|
|
20
|
+
export { default as SidebarMenuSubItem } from "./SidebarMenuSubItem.vue";
|
|
21
|
+
export { default as SidebarProvider } from "./SidebarProvider.vue";
|
|
22
|
+
export { default as SidebarRail } from "./SidebarRail.vue";
|
|
23
|
+
export { default as SidebarSeparator } from "./SidebarSeparator.vue";
|
|
24
|
+
export { default as SidebarTrigger } from "./SidebarTrigger.vue";
|
|
25
|
+
export { useSidebar } from "./utils.js";
|
|
26
|
+
export const sidebarMenuButtonVariants = cva(
|
|
27
|
+
"peer/menu-button cursor-pointer flex w-full items-center gap-2 overflow-hidden rounded-md p-2 text-left text-sm outline-hidden transition-[width,height,padding,color] duration-180 hover:bg-zinc-100 hover:text-zinc-900 active:bg-zinc-100 active:text-zinc-900 disabled:pointer-events-none disabled:opacity-50 group-has-data-[sidebar=menu-action]/menu-item:pr-8 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-[active=true]:bg-[color-mix(in_srgb,var(--primary)_10%,white)] data-[active=true]:text-(--primary) data-[active=true]:font-mediumdata-[state=open]:hover:bg-zinc-100 data-[state=open]:hover:text-zinc-900 group-data-[collapsible=icon]:size-8! group-data-[collapsible=icon]:p-2! [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0",
|
|
28
|
+
{
|
|
29
|
+
variants: {
|
|
30
|
+
variant: {
|
|
31
|
+
default: "group-hover/menu-item:bg-zinc-100 group-hover/menu-item:text-zinc-900 group-focus-within/menu-item:bg-zinc-100 group-focus-within/menu-item:text-zinc-900 text-zinc-800",
|
|
32
|
+
outline: "bg-white shadow-[0_0_0_1px_hsl(var(--sidebar-border))] hover:bg-zinc-100 hover:text-zinc-900 hover:shadow-[0_0_0_1px_hsl(var(--sidebar-accent))]"
|
|
33
|
+
},
|
|
34
|
+
size: {
|
|
35
|
+
default: "h-8 text-sm",
|
|
36
|
+
sm: "h-7 text-xs",
|
|
37
|
+
lg: "h-12 text-sm group-data-[collapsible=icon]:p-0!"
|
|
38
|
+
}
|
|
39
|
+
},
|
|
40
|
+
defaultVariants: {
|
|
41
|
+
variant: "default",
|
|
42
|
+
size: "default"
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
);
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import type { ComputedRef, Ref } from 'vue';
|
|
2
|
+
export declare const SIDEBAR_COOKIE_NAME = "sidebar_state";
|
|
3
|
+
export declare const SIDEBAR_COOKIE_MAX_AGE: number;
|
|
4
|
+
export declare const SIDEBAR_WIDTH = "16rem";
|
|
5
|
+
export declare const SIDEBAR_WIDTH_MOBILE = "18rem";
|
|
6
|
+
export declare const SIDEBAR_WIDTH_ICON = "3rem";
|
|
7
|
+
export declare const SIDEBAR_KEYBOARD_SHORTCUT = "b";
|
|
8
|
+
export declare const useSidebar: <T extends {
|
|
9
|
+
state: ComputedRef<"expanded" | "collapsed">;
|
|
10
|
+
open: Ref<boolean>;
|
|
11
|
+
setOpen: (value: boolean) => void;
|
|
12
|
+
isMobile: Ref<boolean>;
|
|
13
|
+
openMobile: Ref<boolean>;
|
|
14
|
+
setOpenMobile: (value: boolean) => void;
|
|
15
|
+
toggleSidebar: () => void;
|
|
16
|
+
} | null | undefined = {
|
|
17
|
+
state: ComputedRef<"expanded" | "collapsed">;
|
|
18
|
+
open: Ref<boolean>;
|
|
19
|
+
setOpen: (value: boolean) => void;
|
|
20
|
+
isMobile: Ref<boolean>;
|
|
21
|
+
openMobile: Ref<boolean>;
|
|
22
|
+
setOpenMobile: (value: boolean) => void;
|
|
23
|
+
toggleSidebar: () => void;
|
|
24
|
+
}>(fallback?: T | undefined) => T extends null ? {
|
|
25
|
+
state: ComputedRef<"expanded" | "collapsed">;
|
|
26
|
+
open: Ref<boolean>;
|
|
27
|
+
setOpen: (value: boolean) => void;
|
|
28
|
+
isMobile: Ref<boolean>;
|
|
29
|
+
openMobile: Ref<boolean>;
|
|
30
|
+
setOpenMobile: (value: boolean) => void;
|
|
31
|
+
toggleSidebar: () => void;
|
|
32
|
+
} | null : {
|
|
33
|
+
state: ComputedRef<"expanded" | "collapsed">;
|
|
34
|
+
open: Ref<boolean>;
|
|
35
|
+
setOpen: (value: boolean) => void;
|
|
36
|
+
isMobile: Ref<boolean>;
|
|
37
|
+
openMobile: Ref<boolean>;
|
|
38
|
+
setOpenMobile: (value: boolean) => void;
|
|
39
|
+
toggleSidebar: () => void;
|
|
40
|
+
}, provideSidebarContext: (contextValue: {
|
|
41
|
+
state: ComputedRef<"expanded" | "collapsed">;
|
|
42
|
+
open: Ref<boolean>;
|
|
43
|
+
setOpen: (value: boolean) => void;
|
|
44
|
+
isMobile: Ref<boolean>;
|
|
45
|
+
openMobile: Ref<boolean>;
|
|
46
|
+
setOpenMobile: (value: boolean) => void;
|
|
47
|
+
toggleSidebar: () => void;
|
|
48
|
+
}) => {
|
|
49
|
+
state: ComputedRef<"expanded" | "collapsed">;
|
|
50
|
+
open: Ref<boolean>;
|
|
51
|
+
setOpen: (value: boolean) => void;
|
|
52
|
+
isMobile: Ref<boolean>;
|
|
53
|
+
openMobile: Ref<boolean>;
|
|
54
|
+
setOpenMobile: (value: boolean) => void;
|
|
55
|
+
toggleSidebar: () => void;
|
|
56
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { createContext } from "reka-ui";
|
|
2
|
+
export const SIDEBAR_COOKIE_NAME = "sidebar_state";
|
|
3
|
+
export const SIDEBAR_COOKIE_MAX_AGE = 60 * 60 * 24 * 7;
|
|
4
|
+
export const SIDEBAR_WIDTH = "16rem";
|
|
5
|
+
export const SIDEBAR_WIDTH_MOBILE = "18rem";
|
|
6
|
+
export const SIDEBAR_WIDTH_ICON = "3rem";
|
|
7
|
+
export const SIDEBAR_KEYBOARD_SHORTCUT = "b";
|
|
8
|
+
export const [useSidebar, provideSidebarContext] = createContext("Sidebar");
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { HTMLAttributes } from 'vue';
|
|
2
|
+
interface SkeletonProps {
|
|
3
|
+
class?: HTMLAttributes['class'];
|
|
4
|
+
}
|
|
5
|
+
declare const __VLS_export: import("vue").DefineComponent<SkeletonProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<SkeletonProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
6
|
+
declare const _default: typeof __VLS_export;
|
|
7
|
+
export default _default;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
<script setup>
|
|
2
|
+
import { cn } from "../../../utils/cn";
|
|
3
|
+
const props = defineProps({
|
|
4
|
+
class: { type: null, required: false }
|
|
5
|
+
});
|
|
6
|
+
</script>
|
|
7
|
+
|
|
8
|
+
<template>
|
|
9
|
+
<div
|
|
10
|
+
data-slot="skeleton"
|
|
11
|
+
:class="cn('animate-pulse rounded-md bg-[color-mix(in_srgb,var(--primary)_10%,white)]', props.class)"
|
|
12
|
+
/>
|
|
13
|
+
</template>
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { HTMLAttributes } from 'vue';
|
|
2
|
+
interface SkeletonProps {
|
|
3
|
+
class?: HTMLAttributes['class'];
|
|
4
|
+
}
|
|
5
|
+
declare const __VLS_export: import("vue").DefineComponent<SkeletonProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<SkeletonProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
6
|
+
declare const _default: typeof __VLS_export;
|
|
7
|
+
export default _default;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as Skeleton } from './Skeleton.vue.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as Skeleton } from "./Skeleton.vue";
|
|
@@ -8,7 +8,15 @@ export function createEnvironment() {
|
|
|
8
8
|
homogeneousAggregateLiterals: false,
|
|
9
9
|
unlistedVariablesAreDyn: true
|
|
10
10
|
});
|
|
11
|
-
env.registerType("
|
|
11
|
+
env.registerType("URLSearchParams", URLSearchParams).registerFunction("searchParams(dyn): URLSearchParams", (init) => {
|
|
12
|
+
return new URLSearchParams(init);
|
|
13
|
+
}).registerFunction("URLSearchParams.get(string): optional<string>", (searchParams, key) => {
|
|
14
|
+
const value = searchParams.get(key);
|
|
15
|
+
if (value === null) return Optional.none();
|
|
16
|
+
return Optional.of(value);
|
|
17
|
+
}).registerType("URL", URL).registerFunction("URL.searchParams(): URLSearchParams", (url) => {
|
|
18
|
+
return url.searchParams;
|
|
19
|
+
}).registerVariable("location", "URL").registerType("Date", TZDate).registerVariable("now", "Date").registerVariable("today", "Date").registerFunction("date(string): Date", (date) => {
|
|
12
20
|
return new TZDate(date);
|
|
13
21
|
}).registerOperator("Date < Date", (date1, date2) => {
|
|
14
22
|
return isBefore(date1, date2);
|
|
@@ -24,7 +24,8 @@ export default defineNuxtPlugin({
|
|
|
24
24
|
evaluate: (...args) => (context) => {
|
|
25
25
|
return env.evaluate(String.raw(...args), defu({}, getGlobalDslContext(), context, {
|
|
26
26
|
now: /* @__PURE__ */ new Date(),
|
|
27
|
-
today: /* @__PURE__ */ new Date()
|
|
27
|
+
today: /* @__PURE__ */ new Date(),
|
|
28
|
+
location: new URL(location.href)
|
|
28
29
|
}));
|
|
29
30
|
}
|
|
30
31
|
}
|