create-nala 3.0.0 → 3.0.4
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/package.json +6 -6
- package/template/.agents/skills/nala-project/SKILL.md +493 -0
- package/template/AGENTS.md +49 -0
- package/{LICENSE → template/LICENSE} +1 -1
- package/template/README.md +130 -0
- package/template/package.json +1 -1
- package/template/src/components/ui/alert/Alert.vue +8 -8
- package/template/src/components/ui/alert/AlertDescription.vue +5 -5
- package/template/src/components/ui/alert/AlertTitle.vue +5 -5
- package/template/src/components/ui/alert-dialog/AlertDialog.vue +6 -6
- package/template/src/components/ui/alert-dialog/AlertDialogAction.vue +9 -9
- package/template/src/components/ui/alert-dialog/AlertDialogCancel.vue +9 -9
- package/template/src/components/ui/alert-dialog/AlertDialogContent.vue +20 -20
- package/template/src/components/ui/alert-dialog/AlertDialogDescription.vue +10 -10
- package/template/src/components/ui/alert-dialog/AlertDialogFooter.vue +5 -5
- package/template/src/components/ui/alert-dialog/AlertDialogHeader.vue +5 -5
- package/template/src/components/ui/alert-dialog/AlertDialogTitle.vue +8 -8
- package/template/src/components/ui/alert-dialog/AlertDialogTrigger.vue +3 -3
- package/template/src/components/ui/alert-dialog/index.ts +8 -8
- package/template/src/components/ui/avatar/AvatarFallback.vue +8 -8
- package/template/src/components/ui/avatar/AvatarImage.vue +3 -3
- package/template/src/components/ui/breadcrumb/Breadcrumb.vue +4 -4
- package/template/src/components/ui/breadcrumb/BreadcrumbEllipsis.vue +6 -6
- package/template/src/components/ui/breadcrumb/BreadcrumbItem.vue +5 -5
- package/template/src/components/ui/breadcrumb/BreadcrumbLink.vue +7 -7
- package/template/src/components/ui/breadcrumb/BreadcrumbList.vue +5 -5
- package/template/src/components/ui/breadcrumb/BreadcrumbPage.vue +5 -5
- package/template/src/components/ui/breadcrumb/BreadcrumbSeparator.vue +6 -6
- package/template/src/components/ui/breadcrumb/index.ts +6 -6
- package/template/src/components/ui/button/Button.vue +15 -15
- package/template/src/components/ui/card/CardAction.vue +5 -5
- package/template/src/components/ui/card/CardContent.vue +5 -5
- package/template/src/components/ui/card/CardDescription.vue +5 -5
- package/template/src/components/ui/card/CardFooter.vue +5 -5
- package/template/src/components/ui/card/CardTitle.vue +5 -5
- package/template/src/components/ui/card/index.ts +6 -6
- package/template/src/components/ui/command/Command.vue +75 -75
- package/template/src/components/ui/command/CommandDialog.vue +14 -14
- package/template/src/components/ui/command/CommandEmpty.vue +14 -14
- package/template/src/components/ui/command/CommandGroup.vue +27 -27
- package/template/src/components/ui/command/CommandInput.vue +20 -20
- package/template/src/components/ui/command/CommandItem.vue +57 -57
- package/template/src/components/ui/command/CommandList.vue +10 -10
- package/template/src/components/ui/command/CommandSeparator.vue +8 -8
- package/template/src/components/ui/command/CommandShortcut.vue +5 -5
- package/template/src/components/ui/command/index.ts +24 -24
- package/template/src/components/ui/dialog/Dialog.vue +6 -6
- package/template/src/components/ui/dialog/DialogClose.vue +3 -3
- package/template/src/components/ui/dialog/DialogContent.vue +24 -24
- package/template/src/components/ui/dialog/DialogDescription.vue +10 -10
- package/template/src/components/ui/dialog/DialogFooter.vue +10 -10
- package/template/src/components/ui/dialog/DialogHeader.vue +5 -5
- package/template/src/components/ui/dialog/DialogOverlay.vue +8 -8
- package/template/src/components/ui/dialog/DialogScrollContent.vue +22 -22
- package/template/src/components/ui/dialog/DialogTitle.vue +10 -10
- package/template/src/components/ui/dialog/DialogTrigger.vue +3 -3
- package/template/src/components/ui/dialog/index.ts +9 -9
- package/template/src/components/ui/dropdown-menu/DropdownMenu.vue +6 -6
- package/template/src/components/ui/dropdown-menu/DropdownMenuCheckboxItem.vue +16 -16
- package/template/src/components/ui/dropdown-menu/DropdownMenuGroup.vue +3 -3
- package/template/src/components/ui/dropdown-menu/DropdownMenuItem.vue +16 -16
- package/template/src/components/ui/dropdown-menu/DropdownMenuLabel.vue +9 -9
- package/template/src/components/ui/dropdown-menu/DropdownMenuRadioGroup.vue +9 -9
- package/template/src/components/ui/dropdown-menu/DropdownMenuRadioItem.vue +17 -17
- package/template/src/components/ui/dropdown-menu/DropdownMenuSeparator.vue +12 -12
- package/template/src/components/ui/dropdown-menu/DropdownMenuShortcut.vue +5 -5
- package/template/src/components/ui/dropdown-menu/DropdownMenuSub.vue +9 -9
- package/template/src/components/ui/dropdown-menu/DropdownMenuSubContent.vue +14 -14
- package/template/src/components/ui/dropdown-menu/DropdownMenuSubTrigger.vue +13 -13
- package/template/src/components/ui/dropdown-menu/DropdownMenuTrigger.vue +5 -5
- package/template/src/components/ui/dropdown-menu/index.ts +15 -15
- package/template/src/components/ui/form/FormControl.vue +3 -3
- package/template/src/components/ui/form/FormDescription.vue +8 -8
- package/template/src/components/ui/form/FormItem.vue +11 -11
- package/template/src/components/ui/form/FormLabel.vue +8 -8
- package/template/src/components/ui/form/FormMessage.vue +10 -10
- package/template/src/components/ui/form/index.ts +6 -6
- package/template/src/components/ui/form/injectionKeys.ts +3 -3
- package/template/src/components/ui/form/useFormField.ts +29 -29
- package/template/src/components/ui/input/Input.vue +17 -17
- package/template/src/components/ui/label/Label.vue +8 -8
- package/template/src/components/ui/pagination/Pagination.vue +12 -12
- package/template/src/components/ui/pagination/PaginationContent.vue +8 -8
- package/template/src/components/ui/pagination/PaginationEllipsis.vue +9 -9
- package/template/src/components/ui/pagination/PaginationFirst.vue +17 -17
- package/template/src/components/ui/pagination/PaginationItem.vue +16 -16
- package/template/src/components/ui/pagination/PaginationLast.vue +17 -17
- package/template/src/components/ui/pagination/PaginationNext.vue +17 -17
- package/template/src/components/ui/pagination/PaginationPrevious.vue +17 -17
- package/template/src/components/ui/pagination/index.ts +7 -7
- package/template/src/components/ui/popover/Popover.vue +6 -6
- package/template/src/components/ui/popover/PopoverAnchor.vue +3 -3
- package/template/src/components/ui/popover/PopoverContent.vue +25 -25
- package/template/src/components/ui/popover/PopoverTrigger.vue +3 -3
- package/template/src/components/ui/popover/index.ts +3 -3
- package/template/src/components/ui/select/Select.vue +6 -6
- package/template/src/components/ui/select/SelectContent.vue +26 -26
- package/template/src/components/ui/select/SelectGroup.vue +3 -3
- package/template/src/components/ui/select/SelectItem.vue +16 -16
- package/template/src/components/ui/select/SelectItemText.vue +3 -3
- package/template/src/components/ui/select/SelectLabel.vue +5 -5
- package/template/src/components/ui/select/SelectScrollDownButton.vue +11 -11
- package/template/src/components/ui/select/SelectScrollUpButton.vue +11 -11
- package/template/src/components/ui/select/SelectSeparator.vue +8 -8
- package/template/src/components/ui/select/SelectTrigger.vue +13 -13
- package/template/src/components/ui/select/SelectValue.vue +3 -3
- package/template/src/components/ui/select/index.ts +10 -10
- package/template/src/components/ui/separator/Separator.vue +13 -13
- package/template/src/components/ui/sheet/Sheet.vue +6 -6
- package/template/src/components/ui/sheet/SheetClose.vue +3 -3
- package/template/src/components/ui/sheet/SheetContent.vue +29 -29
- package/template/src/components/ui/sheet/SheetDescription.vue +8 -8
- package/template/src/components/ui/sheet/SheetFooter.vue +3 -3
- package/template/src/components/ui/sheet/SheetHeader.vue +3 -3
- package/template/src/components/ui/sheet/SheetOverlay.vue +8 -8
- package/template/src/components/ui/sheet/SheetTitle.vue +8 -8
- package/template/src/components/ui/sheet/SheetTrigger.vue +3 -3
- package/template/src/components/ui/sheet/index.ts +7 -7
- package/template/src/components/ui/sidebar/Sidebar.vue +18 -18
- package/template/src/components/ui/sidebar/SidebarContent.vue +6 -6
- package/template/src/components/ui/sidebar/SidebarControl.vue +0 -3
- package/template/src/components/ui/sidebar/SidebarFooter.vue +5 -5
- package/template/src/components/ui/sidebar/SidebarGroup.vue +5 -5
- package/template/src/components/ui/sidebar/SidebarGroupAction.vue +7 -7
- package/template/src/components/ui/sidebar/SidebarGroupContent.vue +5 -5
- package/template/src/components/ui/sidebar/SidebarGroupLabel.vue +7 -7
- package/template/src/components/ui/sidebar/SidebarHeader.vue +5 -5
- package/template/src/components/ui/sidebar/SidebarInput.vue +6 -6
- package/template/src/components/ui/sidebar/SidebarInset.vue +5 -5
- package/template/src/components/ui/sidebar/SidebarMenu.vue +5 -5
- package/template/src/components/ui/sidebar/SidebarMenuAction.vue +10 -10
- package/template/src/components/ui/sidebar/SidebarMenuBadge.vue +5 -5
- package/template/src/components/ui/sidebar/SidebarMenuButton.vue +21 -21
- package/template/src/components/ui/sidebar/SidebarMenuButtonChild.vue +18 -18
- package/template/src/components/ui/sidebar/SidebarMenuItem.vue +5 -5
- package/template/src/components/ui/sidebar/SidebarMenuSkeleton.vue +12 -12
- package/template/src/components/ui/sidebar/SidebarMenuSub.vue +5 -5
- package/template/src/components/ui/sidebar/SidebarMenuSubButton.vue +12 -12
- package/template/src/components/ui/sidebar/SidebarMenuSubItem.vue +5 -5
- package/template/src/components/ui/sidebar/SidebarProvider.vue +4 -8
- package/template/src/components/ui/sidebar/SidebarRail.vue +8 -8
- package/template/src/components/ui/sidebar/SidebarSeparator.vue +6 -6
- package/template/src/components/ui/sidebar/SidebarTrigger.vue +10 -10
- package/template/src/components/ui/sidebar/utils.ts +1 -1
- package/template/src/components/ui/skeleton/Skeleton.vue +7 -7
- package/template/src/components/ui/sonner/Sonner.vue +5 -5
- package/template/src/components/ui/switch/Switch.vue +16 -16
- package/template/src/components/ui/table/Table.vue +5 -5
- package/template/src/components/ui/table/TableBody.vue +5 -5
- package/template/src/components/ui/table/TableCaption.vue +5 -5
- package/template/src/components/ui/table/TableCell.vue +5 -5
- package/template/src/components/ui/table/TableEmpty.vue +13 -13
- package/template/src/components/ui/table/TableFooter.vue +5 -5
- package/template/src/components/ui/table/TableHead.vue +5 -5
- package/template/src/components/ui/table/TableHeader.vue +5 -5
- package/template/src/components/ui/table/TableRow.vue +5 -5
- package/template/src/components/ui/table/index.ts +8 -8
- package/template/src/components/ui/table/utils.ts +9 -9
- package/template/src/components/ui/tabs/Tabs.vue +10 -10
- package/template/src/components/ui/tabs/TabsContent.vue +8 -8
- package/template/src/components/ui/tabs/TabsList.vue +8 -8
- package/template/src/components/ui/tabs/TabsTrigger.vue +10 -10
- package/template/src/components/ui/tabs/index.ts +3 -3
- package/template/src/components/ui/textarea/Textarea.vue +17 -17
- package/template/src/components/ui/tooltip/Tooltip.vue +6 -6
- package/template/src/components/ui/tooltip/TooltipContent.vue +17 -17
- package/template/src/components/ui/tooltip/TooltipProvider.vue +5 -5
- package/template/src/components/ui/tooltip/TooltipTrigger.vue +3 -3
- package/template/src/components/ui/tooltip/index.ts +3 -3
- package/template/src/lib/utils.ts +6 -6
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
<script setup lang="ts">
|
|
2
|
-
import type { SelectRootEmits, SelectRootProps } from "reka-ui"
|
|
3
|
-
import { SelectRoot, useForwardPropsEmits } from "reka-ui"
|
|
4
|
-
|
|
5
|
-
const props = defineProps<SelectRootProps>()
|
|
6
|
-
const emits = defineEmits<SelectRootEmits>()
|
|
7
|
-
|
|
2
|
+
import type { SelectRootEmits, SelectRootProps } from "reka-ui"
|
|
3
|
+
import { SelectRoot, useForwardPropsEmits } from "reka-ui"
|
|
4
|
+
|
|
5
|
+
const props = defineProps<SelectRootProps>()
|
|
6
|
+
const emits = defineEmits<SelectRootEmits>()
|
|
7
|
+
|
|
8
8
|
const forwarded = useForwardPropsEmits(props, emits)
|
|
9
9
|
</script>
|
|
10
10
|
|
|
@@ -1,30 +1,30 @@
|
|
|
1
1
|
<script setup lang="ts">
|
|
2
|
-
import type { SelectContentEmits, SelectContentProps } from "reka-ui"
|
|
3
|
-
import type { HTMLAttributes } from "vue"
|
|
4
|
-
import { reactiveOmit } from "@vueuse/core"
|
|
5
|
-
import {
|
|
6
|
-
SelectContent,
|
|
7
|
-
SelectPortal,
|
|
8
|
-
SelectViewport,
|
|
9
|
-
useForwardPropsEmits,
|
|
10
|
-
} from "reka-ui"
|
|
11
|
-
import { cn } from "@/lib/utils"
|
|
12
|
-
import { SelectScrollDownButton, SelectScrollUpButton } from "."
|
|
13
|
-
|
|
14
|
-
defineOptions({
|
|
15
|
-
inheritAttrs: false,
|
|
16
|
-
})
|
|
17
|
-
|
|
18
|
-
const props = withDefaults(
|
|
19
|
-
defineProps<SelectContentProps & { class?: HTMLAttributes["class"] }>(),
|
|
20
|
-
{
|
|
21
|
-
position: "popper",
|
|
22
|
-
},
|
|
23
|
-
)
|
|
24
|
-
const emits = defineEmits<SelectContentEmits>()
|
|
25
|
-
|
|
26
|
-
const delegatedProps = reactiveOmit(props, "class")
|
|
27
|
-
|
|
2
|
+
import type { SelectContentEmits, SelectContentProps } from "reka-ui"
|
|
3
|
+
import type { HTMLAttributes } from "vue"
|
|
4
|
+
import { reactiveOmit } from "@vueuse/core"
|
|
5
|
+
import {
|
|
6
|
+
SelectContent,
|
|
7
|
+
SelectPortal,
|
|
8
|
+
SelectViewport,
|
|
9
|
+
useForwardPropsEmits,
|
|
10
|
+
} from "reka-ui"
|
|
11
|
+
import { cn } from "@/lib/utils"
|
|
12
|
+
import { SelectScrollDownButton, SelectScrollUpButton } from "."
|
|
13
|
+
|
|
14
|
+
defineOptions({
|
|
15
|
+
inheritAttrs: false,
|
|
16
|
+
})
|
|
17
|
+
|
|
18
|
+
const props = withDefaults(
|
|
19
|
+
defineProps<SelectContentProps & { class?: HTMLAttributes["class"] }>(),
|
|
20
|
+
{
|
|
21
|
+
position: "popper",
|
|
22
|
+
},
|
|
23
|
+
)
|
|
24
|
+
const emits = defineEmits<SelectContentEmits>()
|
|
25
|
+
|
|
26
|
+
const delegatedProps = reactiveOmit(props, "class")
|
|
27
|
+
|
|
28
28
|
const forwarded = useForwardPropsEmits(delegatedProps, emits)
|
|
29
29
|
</script>
|
|
30
30
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<script setup lang="ts">
|
|
2
|
-
import type { SelectGroupProps } from "reka-ui"
|
|
3
|
-
import { SelectGroup } from "reka-ui"
|
|
4
|
-
|
|
2
|
+
import type { SelectGroupProps } from "reka-ui"
|
|
3
|
+
import { SelectGroup } from "reka-ui"
|
|
4
|
+
|
|
5
5
|
const props = defineProps<SelectGroupProps>()
|
|
6
6
|
</script>
|
|
7
7
|
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
<script setup lang="ts">
|
|
2
|
-
import type { SelectItemProps } from "reka-ui"
|
|
3
|
-
import type { HTMLAttributes } from "vue"
|
|
4
|
-
import { Check } from "@lucide/vue"
|
|
5
|
-
import { reactiveOmit } from "@vueuse/core"
|
|
6
|
-
import {
|
|
7
|
-
SelectItem,
|
|
8
|
-
SelectItemIndicator,
|
|
9
|
-
SelectItemText,
|
|
10
|
-
useForwardProps,
|
|
11
|
-
} from "reka-ui"
|
|
12
|
-
import { cn } from "@/lib/utils"
|
|
13
|
-
|
|
14
|
-
const props = defineProps<SelectItemProps & { class?: HTMLAttributes["class"] }>()
|
|
15
|
-
|
|
16
|
-
const delegatedProps = reactiveOmit(props, "class")
|
|
17
|
-
|
|
2
|
+
import type { SelectItemProps } from "reka-ui"
|
|
3
|
+
import type { HTMLAttributes } from "vue"
|
|
4
|
+
import { Check } from "@lucide/vue"
|
|
5
|
+
import { reactiveOmit } from "@vueuse/core"
|
|
6
|
+
import {
|
|
7
|
+
SelectItem,
|
|
8
|
+
SelectItemIndicator,
|
|
9
|
+
SelectItemText,
|
|
10
|
+
useForwardProps,
|
|
11
|
+
} from "reka-ui"
|
|
12
|
+
import { cn } from "@/lib/utils"
|
|
13
|
+
|
|
14
|
+
const props = defineProps<SelectItemProps & { class?: HTMLAttributes["class"] }>()
|
|
15
|
+
|
|
16
|
+
const delegatedProps = reactiveOmit(props, "class")
|
|
17
|
+
|
|
18
18
|
const forwardedProps = useForwardProps(delegatedProps)
|
|
19
19
|
</script>
|
|
20
20
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<script setup lang="ts">
|
|
2
|
-
import type { SelectItemTextProps } from "reka-ui"
|
|
3
|
-
import { SelectItemText } from "reka-ui"
|
|
4
|
-
|
|
2
|
+
import type { SelectItemTextProps } from "reka-ui"
|
|
3
|
+
import { SelectItemText } from "reka-ui"
|
|
4
|
+
|
|
5
5
|
const props = defineProps<SelectItemTextProps>()
|
|
6
6
|
</script>
|
|
7
7
|
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
<script setup lang="ts">
|
|
2
|
-
import type { SelectLabelProps } from "reka-ui"
|
|
3
|
-
import type { HTMLAttributes } from "vue"
|
|
4
|
-
import { SelectLabel } from "reka-ui"
|
|
5
|
-
import { cn } from "@/lib/utils"
|
|
6
|
-
|
|
2
|
+
import type { SelectLabelProps } from "reka-ui"
|
|
3
|
+
import type { HTMLAttributes } from "vue"
|
|
4
|
+
import { SelectLabel } from "reka-ui"
|
|
5
|
+
import { cn } from "@/lib/utils"
|
|
6
|
+
|
|
7
7
|
const props = defineProps<SelectLabelProps & { class?: HTMLAttributes["class"] }>()
|
|
8
8
|
</script>
|
|
9
9
|
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
<script setup lang="ts">
|
|
2
|
-
import type { SelectScrollDownButtonProps } from "reka-ui"
|
|
3
|
-
import type { HTMLAttributes } from "vue"
|
|
4
|
-
import { ChevronDown } from "@lucide/vue"
|
|
5
|
-
import { reactiveOmit } from "@vueuse/core"
|
|
6
|
-
import { SelectScrollDownButton, useForwardProps } from "reka-ui"
|
|
7
|
-
import { cn } from "@/lib/utils"
|
|
8
|
-
|
|
9
|
-
const props = defineProps<SelectScrollDownButtonProps & { class?: HTMLAttributes["class"] }>()
|
|
10
|
-
|
|
11
|
-
const delegatedProps = reactiveOmit(props, "class")
|
|
12
|
-
|
|
2
|
+
import type { SelectScrollDownButtonProps } from "reka-ui"
|
|
3
|
+
import type { HTMLAttributes } from "vue"
|
|
4
|
+
import { ChevronDown } from "@lucide/vue"
|
|
5
|
+
import { reactiveOmit } from "@vueuse/core"
|
|
6
|
+
import { SelectScrollDownButton, useForwardProps } from "reka-ui"
|
|
7
|
+
import { cn } from "@/lib/utils"
|
|
8
|
+
|
|
9
|
+
const props = defineProps<SelectScrollDownButtonProps & { class?: HTMLAttributes["class"] }>()
|
|
10
|
+
|
|
11
|
+
const delegatedProps = reactiveOmit(props, "class")
|
|
12
|
+
|
|
13
13
|
const forwardedProps = useForwardProps(delegatedProps)
|
|
14
14
|
</script>
|
|
15
15
|
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
<script setup lang="ts">
|
|
2
|
-
import type { SelectScrollUpButtonProps } from "reka-ui"
|
|
3
|
-
import type { HTMLAttributes } from "vue"
|
|
4
|
-
import { ChevronUp } from "@lucide/vue"
|
|
5
|
-
import { reactiveOmit } from "@vueuse/core"
|
|
6
|
-
import { SelectScrollUpButton, useForwardProps } from "reka-ui"
|
|
7
|
-
import { cn } from "@/lib/utils"
|
|
8
|
-
|
|
9
|
-
const props = defineProps<SelectScrollUpButtonProps & { class?: HTMLAttributes["class"] }>()
|
|
10
|
-
|
|
11
|
-
const delegatedProps = reactiveOmit(props, "class")
|
|
12
|
-
|
|
2
|
+
import type { SelectScrollUpButtonProps } from "reka-ui"
|
|
3
|
+
import type { HTMLAttributes } from "vue"
|
|
4
|
+
import { ChevronUp } from "@lucide/vue"
|
|
5
|
+
import { reactiveOmit } from "@vueuse/core"
|
|
6
|
+
import { SelectScrollUpButton, useForwardProps } from "reka-ui"
|
|
7
|
+
import { cn } from "@/lib/utils"
|
|
8
|
+
|
|
9
|
+
const props = defineProps<SelectScrollUpButtonProps & { class?: HTMLAttributes["class"] }>()
|
|
10
|
+
|
|
11
|
+
const delegatedProps = reactiveOmit(props, "class")
|
|
12
|
+
|
|
13
13
|
const forwardedProps = useForwardProps(delegatedProps)
|
|
14
14
|
</script>
|
|
15
15
|
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
<script setup lang="ts">
|
|
2
|
-
import type { SelectSeparatorProps } from "reka-ui"
|
|
3
|
-
import type { HTMLAttributes } from "vue"
|
|
4
|
-
import { reactiveOmit } from "@vueuse/core"
|
|
5
|
-
import { SelectSeparator } from "reka-ui"
|
|
6
|
-
import { cn } from "@/lib/utils"
|
|
7
|
-
|
|
8
|
-
const props = defineProps<SelectSeparatorProps & { class?: HTMLAttributes["class"] }>()
|
|
9
|
-
|
|
2
|
+
import type { SelectSeparatorProps } from "reka-ui"
|
|
3
|
+
import type { HTMLAttributes } from "vue"
|
|
4
|
+
import { reactiveOmit } from "@vueuse/core"
|
|
5
|
+
import { SelectSeparator } from "reka-ui"
|
|
6
|
+
import { cn } from "@/lib/utils"
|
|
7
|
+
|
|
8
|
+
const props = defineProps<SelectSeparatorProps & { class?: HTMLAttributes["class"] }>()
|
|
9
|
+
|
|
10
10
|
const delegatedProps = reactiveOmit(props, "class")
|
|
11
11
|
</script>
|
|
12
12
|
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
<script setup lang="ts">
|
|
2
|
-
import type { SelectTriggerProps } from "reka-ui"
|
|
3
|
-
import type { HTMLAttributes } from "vue"
|
|
4
|
-
import { ChevronDown } from "@lucide/vue"
|
|
5
|
-
import { reactiveOmit } from "@vueuse/core"
|
|
6
|
-
import { SelectIcon, SelectTrigger, useForwardProps } from "reka-ui"
|
|
7
|
-
import { cn } from "@/lib/utils"
|
|
8
|
-
|
|
9
|
-
const props = withDefaults(
|
|
10
|
-
defineProps<SelectTriggerProps & { class?: HTMLAttributes["class"], size?: "sm" | "default" }>(),
|
|
11
|
-
{ size: "default" },
|
|
12
|
-
)
|
|
13
|
-
|
|
14
|
-
const delegatedProps = reactiveOmit(props, "class", "size")
|
|
2
|
+
import type { SelectTriggerProps } from "reka-ui"
|
|
3
|
+
import type { HTMLAttributes } from "vue"
|
|
4
|
+
import { ChevronDown } from "@lucide/vue"
|
|
5
|
+
import { reactiveOmit } from "@vueuse/core"
|
|
6
|
+
import { SelectIcon, SelectTrigger, useForwardProps } from "reka-ui"
|
|
7
|
+
import { cn } from "@/lib/utils"
|
|
8
|
+
|
|
9
|
+
const props = withDefaults(
|
|
10
|
+
defineProps<SelectTriggerProps & { class?: HTMLAttributes["class"], size?: "sm" | "default" }>(),
|
|
11
|
+
{ size: "default" },
|
|
12
|
+
)
|
|
13
|
+
|
|
14
|
+
const delegatedProps = reactiveOmit(props, "class", "size")
|
|
15
15
|
const forwardedProps = useForwardProps(delegatedProps)
|
|
16
16
|
</script>
|
|
17
17
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<script setup lang="ts">
|
|
2
|
-
import type { SelectValueProps } from "reka-ui"
|
|
3
|
-
import { SelectValue } from "reka-ui"
|
|
4
|
-
|
|
2
|
+
import type { SelectValueProps } from "reka-ui"
|
|
3
|
+
import { SelectValue } from "reka-ui"
|
|
4
|
+
|
|
5
5
|
const props = defineProps<SelectValueProps>()
|
|
6
6
|
</script>
|
|
7
7
|
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
export { default as Select } from "./Select.vue"
|
|
2
|
-
export { default as SelectContent } from "./SelectContent.vue"
|
|
3
|
-
export { default as SelectGroup } from "./SelectGroup.vue"
|
|
4
|
-
export { default as SelectItem } from "./SelectItem.vue"
|
|
5
|
-
export { default as SelectItemText } from "./SelectItemText.vue"
|
|
6
|
-
export { default as SelectLabel } from "./SelectLabel.vue"
|
|
7
|
-
export { default as SelectScrollDownButton } from "./SelectScrollDownButton.vue"
|
|
8
|
-
export { default as SelectScrollUpButton } from "./SelectScrollUpButton.vue"
|
|
9
|
-
export { default as SelectSeparator } from "./SelectSeparator.vue"
|
|
10
|
-
export { default as SelectTrigger } from "./SelectTrigger.vue"
|
|
1
|
+
export { default as Select } from "./Select.vue"
|
|
2
|
+
export { default as SelectContent } from "./SelectContent.vue"
|
|
3
|
+
export { default as SelectGroup } from "./SelectGroup.vue"
|
|
4
|
+
export { default as SelectItem } from "./SelectItem.vue"
|
|
5
|
+
export { default as SelectItemText } from "./SelectItemText.vue"
|
|
6
|
+
export { default as SelectLabel } from "./SelectLabel.vue"
|
|
7
|
+
export { default as SelectScrollDownButton } from "./SelectScrollDownButton.vue"
|
|
8
|
+
export { default as SelectScrollUpButton } from "./SelectScrollUpButton.vue"
|
|
9
|
+
export { default as SelectSeparator } from "./SelectSeparator.vue"
|
|
10
|
+
export { default as SelectTrigger } from "./SelectTrigger.vue"
|
|
11
11
|
export { default as SelectValue } from "./SelectValue.vue"
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
<script setup lang="ts">
|
|
2
|
-
import type { SeparatorProps } from "reka-ui"
|
|
3
|
-
import type { HTMLAttributes } from "vue"
|
|
4
|
-
import { reactiveOmit } from "@vueuse/core"
|
|
5
|
-
import { Separator } from "reka-ui"
|
|
6
|
-
import { cn } from "@/lib/utils"
|
|
7
|
-
|
|
8
|
-
const props = withDefaults(defineProps<
|
|
9
|
-
SeparatorProps & { class?: HTMLAttributes["class"] }
|
|
10
|
-
>(), {
|
|
11
|
-
orientation: "horizontal",
|
|
12
|
-
decorative: true,
|
|
13
|
-
})
|
|
14
|
-
|
|
2
|
+
import type { SeparatorProps } from "reka-ui"
|
|
3
|
+
import type { HTMLAttributes } from "vue"
|
|
4
|
+
import { reactiveOmit } from "@vueuse/core"
|
|
5
|
+
import { Separator } from "reka-ui"
|
|
6
|
+
import { cn } from "@/lib/utils"
|
|
7
|
+
|
|
8
|
+
const props = withDefaults(defineProps<
|
|
9
|
+
SeparatorProps & { class?: HTMLAttributes["class"] }
|
|
10
|
+
>(), {
|
|
11
|
+
orientation: "horizontal",
|
|
12
|
+
decorative: true,
|
|
13
|
+
})
|
|
14
|
+
|
|
15
15
|
const delegatedProps = reactiveOmit(props, "class")
|
|
16
16
|
</script>
|
|
17
17
|
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
<script setup lang="ts">
|
|
2
|
-
import type { DialogRootEmits, DialogRootProps } from "reka-ui"
|
|
3
|
-
import { DialogRoot, useForwardPropsEmits } from "reka-ui"
|
|
4
|
-
|
|
5
|
-
const props = defineProps<DialogRootProps>()
|
|
6
|
-
const emits = defineEmits<DialogRootEmits>()
|
|
7
|
-
|
|
2
|
+
import type { DialogRootEmits, DialogRootProps } from "reka-ui"
|
|
3
|
+
import { DialogRoot, useForwardPropsEmits } from "reka-ui"
|
|
4
|
+
|
|
5
|
+
const props = defineProps<DialogRootProps>()
|
|
6
|
+
const emits = defineEmits<DialogRootEmits>()
|
|
7
|
+
|
|
8
8
|
const forwarded = useForwardPropsEmits(props, emits)
|
|
9
9
|
</script>
|
|
10
10
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<script setup lang="ts">
|
|
2
|
-
import type { DialogCloseProps } from "reka-ui"
|
|
3
|
-
import { DialogClose } from "reka-ui"
|
|
4
|
-
|
|
2
|
+
import type { DialogCloseProps } from "reka-ui"
|
|
3
|
+
import { DialogClose } from "reka-ui"
|
|
4
|
+
|
|
5
5
|
const props = defineProps<DialogCloseProps>()
|
|
6
6
|
</script>
|
|
7
7
|
|
|
@@ -1,33 +1,33 @@
|
|
|
1
1
|
<script setup lang="ts">
|
|
2
|
-
import type { DialogContentEmits, DialogContentProps } from "reka-ui"
|
|
3
|
-
import type { HTMLAttributes } from "vue"
|
|
4
|
-
import { X } from "@lucide/vue"
|
|
5
|
-
import { reactiveOmit } from "@vueuse/core"
|
|
6
|
-
import {
|
|
7
|
-
DialogClose,
|
|
8
|
-
DialogContent,
|
|
9
|
-
DialogPortal,
|
|
10
|
-
useForwardPropsEmits,
|
|
11
|
-
} from "reka-ui"
|
|
12
|
-
import { cn } from "@/lib/utils"
|
|
13
|
-
import SheetOverlay from "./SheetOverlay.vue"
|
|
14
|
-
|
|
15
|
-
interface SheetContentProps extends DialogContentProps {
|
|
16
|
-
class?: HTMLAttributes["class"]
|
|
17
|
-
side?: "top" | "right" | "bottom" | "left"
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
defineOptions({
|
|
21
|
-
inheritAttrs: false,
|
|
22
|
-
})
|
|
23
|
-
|
|
24
|
-
const props = withDefaults(defineProps<SheetContentProps>(), {
|
|
25
|
-
side: "right",
|
|
26
|
-
})
|
|
27
|
-
const emits = defineEmits<DialogContentEmits>()
|
|
28
|
-
|
|
29
|
-
const delegatedProps = reactiveOmit(props, "class", "side")
|
|
30
|
-
|
|
2
|
+
import type { DialogContentEmits, DialogContentProps } from "reka-ui"
|
|
3
|
+
import type { HTMLAttributes } from "vue"
|
|
4
|
+
import { X } from "@lucide/vue"
|
|
5
|
+
import { reactiveOmit } from "@vueuse/core"
|
|
6
|
+
import {
|
|
7
|
+
DialogClose,
|
|
8
|
+
DialogContent,
|
|
9
|
+
DialogPortal,
|
|
10
|
+
useForwardPropsEmits,
|
|
11
|
+
} from "reka-ui"
|
|
12
|
+
import { cn } from "@/lib/utils"
|
|
13
|
+
import SheetOverlay from "./SheetOverlay.vue"
|
|
14
|
+
|
|
15
|
+
interface SheetContentProps extends DialogContentProps {
|
|
16
|
+
class?: HTMLAttributes["class"]
|
|
17
|
+
side?: "top" | "right" | "bottom" | "left"
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
defineOptions({
|
|
21
|
+
inheritAttrs: false,
|
|
22
|
+
})
|
|
23
|
+
|
|
24
|
+
const props = withDefaults(defineProps<SheetContentProps>(), {
|
|
25
|
+
side: "right",
|
|
26
|
+
})
|
|
27
|
+
const emits = defineEmits<DialogContentEmits>()
|
|
28
|
+
|
|
29
|
+
const delegatedProps = reactiveOmit(props, "class", "side")
|
|
30
|
+
|
|
31
31
|
const forwarded = useForwardPropsEmits(delegatedProps, emits)
|
|
32
32
|
</script>
|
|
33
33
|
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
<script setup lang="ts">
|
|
2
|
-
import type { DialogDescriptionProps } from "reka-ui"
|
|
3
|
-
import type { HTMLAttributes } from "vue"
|
|
4
|
-
import { reactiveOmit } from "@vueuse/core"
|
|
5
|
-
import { DialogDescription } from "reka-ui"
|
|
6
|
-
import { cn } from "@/lib/utils"
|
|
7
|
-
|
|
8
|
-
const props = defineProps<DialogDescriptionProps & { class?: HTMLAttributes["class"] }>()
|
|
9
|
-
|
|
2
|
+
import type { DialogDescriptionProps } from "reka-ui"
|
|
3
|
+
import type { HTMLAttributes } from "vue"
|
|
4
|
+
import { reactiveOmit } from "@vueuse/core"
|
|
5
|
+
import { DialogDescription } from "reka-ui"
|
|
6
|
+
import { cn } from "@/lib/utils"
|
|
7
|
+
|
|
8
|
+
const props = defineProps<DialogDescriptionProps & { class?: HTMLAttributes["class"] }>()
|
|
9
|
+
|
|
10
10
|
const delegatedProps = reactiveOmit(props, "class")
|
|
11
11
|
</script>
|
|
12
12
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<script setup lang="ts">
|
|
2
|
-
import type { HTMLAttributes } from "vue"
|
|
3
|
-
import { cn } from "@/lib/utils"
|
|
4
|
-
|
|
2
|
+
import type { HTMLAttributes } from "vue"
|
|
3
|
+
import { cn } from "@/lib/utils"
|
|
4
|
+
|
|
5
5
|
const props = defineProps<{ class?: HTMLAttributes["class"] }>()
|
|
6
6
|
</script>
|
|
7
7
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<script setup lang="ts">
|
|
2
|
-
import type { HTMLAttributes } from "vue"
|
|
3
|
-
import { cn } from "@/lib/utils"
|
|
4
|
-
|
|
2
|
+
import type { HTMLAttributes } from "vue"
|
|
3
|
+
import { cn } from "@/lib/utils"
|
|
4
|
+
|
|
5
5
|
const props = defineProps<{ class?: HTMLAttributes["class"] }>()
|
|
6
6
|
</script>
|
|
7
7
|
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
<script setup lang="ts">
|
|
2
|
-
import type { DialogOverlayProps } from "reka-ui"
|
|
3
|
-
import type { HTMLAttributes } from "vue"
|
|
4
|
-
import { reactiveOmit } from "@vueuse/core"
|
|
5
|
-
import { DialogOverlay } from "reka-ui"
|
|
6
|
-
import { cn } from "@/lib/utils"
|
|
7
|
-
|
|
8
|
-
const props = defineProps<DialogOverlayProps & { class?: HTMLAttributes["class"] }>()
|
|
9
|
-
|
|
2
|
+
import type { DialogOverlayProps } from "reka-ui"
|
|
3
|
+
import type { HTMLAttributes } from "vue"
|
|
4
|
+
import { reactiveOmit } from "@vueuse/core"
|
|
5
|
+
import { DialogOverlay } from "reka-ui"
|
|
6
|
+
import { cn } from "@/lib/utils"
|
|
7
|
+
|
|
8
|
+
const props = defineProps<DialogOverlayProps & { class?: HTMLAttributes["class"] }>()
|
|
9
|
+
|
|
10
10
|
const delegatedProps = reactiveOmit(props, "class")
|
|
11
11
|
</script>
|
|
12
12
|
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
<script setup lang="ts">
|
|
2
|
-
import type { DialogTitleProps } from "reka-ui"
|
|
3
|
-
import type { HTMLAttributes } from "vue"
|
|
4
|
-
import { reactiveOmit } from "@vueuse/core"
|
|
5
|
-
import { DialogTitle } from "reka-ui"
|
|
6
|
-
import { cn } from "@/lib/utils"
|
|
7
|
-
|
|
8
|
-
const props = defineProps<DialogTitleProps & { class?: HTMLAttributes["class"] }>()
|
|
9
|
-
|
|
2
|
+
import type { DialogTitleProps } from "reka-ui"
|
|
3
|
+
import type { HTMLAttributes } from "vue"
|
|
4
|
+
import { reactiveOmit } from "@vueuse/core"
|
|
5
|
+
import { DialogTitle } from "reka-ui"
|
|
6
|
+
import { cn } from "@/lib/utils"
|
|
7
|
+
|
|
8
|
+
const props = defineProps<DialogTitleProps & { class?: HTMLAttributes["class"] }>()
|
|
9
|
+
|
|
10
10
|
const delegatedProps = reactiveOmit(props, "class")
|
|
11
11
|
</script>
|
|
12
12
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<script setup lang="ts">
|
|
2
|
-
import type { DialogTriggerProps } from "reka-ui"
|
|
3
|
-
import { DialogTrigger } from "reka-ui"
|
|
4
|
-
|
|
2
|
+
import type { DialogTriggerProps } from "reka-ui"
|
|
3
|
+
import { DialogTrigger } from "reka-ui"
|
|
4
|
+
|
|
5
5
|
const props = defineProps<DialogTriggerProps>()
|
|
6
6
|
</script>
|
|
7
7
|
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export { default as Sheet } from "./Sheet.vue"
|
|
2
|
-
export { default as SheetClose } from "./SheetClose.vue"
|
|
3
|
-
export { default as SheetContent } from "./SheetContent.vue"
|
|
4
|
-
export { default as SheetDescription } from "./SheetDescription.vue"
|
|
5
|
-
export { default as SheetFooter } from "./SheetFooter.vue"
|
|
6
|
-
export { default as SheetHeader } from "./SheetHeader.vue"
|
|
7
|
-
export { default as SheetTitle } from "./SheetTitle.vue"
|
|
1
|
+
export { default as Sheet } from "./Sheet.vue"
|
|
2
|
+
export { default as SheetClose } from "./SheetClose.vue"
|
|
3
|
+
export { default as SheetContent } from "./SheetContent.vue"
|
|
4
|
+
export { default as SheetDescription } from "./SheetDescription.vue"
|
|
5
|
+
export { default as SheetFooter } from "./SheetFooter.vue"
|
|
6
|
+
export { default as SheetHeader } from "./SheetHeader.vue"
|
|
7
|
+
export { default as SheetTitle } from "./SheetTitle.vue"
|
|
8
8
|
export { default as SheetTrigger } from "./SheetTrigger.vue"
|
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
<script setup lang="ts">
|
|
2
|
-
import type { SidebarProps } from "."
|
|
3
|
-
import { cn } from "@/lib/utils"
|
|
4
|
-
import { Sheet, SheetContent } from '@/components/ui/sheet'
|
|
5
|
-
import SheetDescription from '@/components/ui/sheet/SheetDescription.vue'
|
|
6
|
-
import SheetHeader from '@/components/ui/sheet/SheetHeader.vue'
|
|
7
|
-
import SheetTitle from '@/components/ui/sheet/SheetTitle.vue'
|
|
8
|
-
import { SIDEBAR_WIDTH_MOBILE, useSidebar } from "./utils"
|
|
9
|
-
|
|
10
|
-
defineOptions({
|
|
11
|
-
inheritAttrs: false,
|
|
12
|
-
})
|
|
13
|
-
|
|
14
|
-
const props = withDefaults(defineProps<SidebarProps>(), {
|
|
15
|
-
side: "left",
|
|
16
|
-
variant: "sidebar",
|
|
17
|
-
collapsible: "offcanvas",
|
|
18
|
-
})
|
|
19
|
-
|
|
2
|
+
import type { SidebarProps } from "."
|
|
3
|
+
import { cn } from "@/lib/utils"
|
|
4
|
+
import { Sheet, SheetContent } from '@/components/ui/sheet'
|
|
5
|
+
import SheetDescription from '@/components/ui/sheet/SheetDescription.vue'
|
|
6
|
+
import SheetHeader from '@/components/ui/sheet/SheetHeader.vue'
|
|
7
|
+
import SheetTitle from '@/components/ui/sheet/SheetTitle.vue'
|
|
8
|
+
import { SIDEBAR_WIDTH_MOBILE, useSidebar } from "./utils"
|
|
9
|
+
|
|
10
|
+
defineOptions({
|
|
11
|
+
inheritAttrs: false,
|
|
12
|
+
})
|
|
13
|
+
|
|
14
|
+
const props = withDefaults(defineProps<SidebarProps>(), {
|
|
15
|
+
side: "left",
|
|
16
|
+
variant: "sidebar",
|
|
17
|
+
collapsible: "offcanvas",
|
|
18
|
+
})
|
|
19
|
+
|
|
20
20
|
const { isMobile, state, openMobile, setOpenMobile, sidebarMode, isHovered, setIsHovered, isMenuOpen } = useSidebar()
|
|
21
21
|
|
|
22
22
|
const handleMouseEnter = () => {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
<script setup lang="ts">
|
|
2
|
-
import type { HTMLAttributes } from "vue"
|
|
3
|
-
import { cn } from "@/lib/utils"
|
|
4
|
-
|
|
5
|
-
const props = defineProps<{
|
|
6
|
-
class?: HTMLAttributes["class"]
|
|
2
|
+
import type { HTMLAttributes } from "vue"
|
|
3
|
+
import { cn } from "@/lib/utils"
|
|
4
|
+
|
|
5
|
+
const props = defineProps<{
|
|
6
|
+
class?: HTMLAttributes["class"]
|
|
7
7
|
}>()
|
|
8
8
|
</script>
|
|
9
9
|
|
|
@@ -11,7 +11,7 @@ const props = defineProps<{
|
|
|
11
11
|
<div
|
|
12
12
|
data-slot="sidebar-content"
|
|
13
13
|
data-sidebar="content"
|
|
14
|
-
:class="cn('flex min-h-0 flex-1 flex-col gap-2 overflow-y-auto overflow-x-hidden group-data-[collapsible=icon]:
|
|
14
|
+
:class="cn('flex min-h-0 flex-1 flex-col gap-2 overflow-y-auto overflow-x-hidden group-data-[collapsible=icon]:scrollbar-none group-data-[collapsible=icon]:[&::-webkit-scrollbar]:hidden', props.class)"
|
|
15
15
|
>
|
|
16
16
|
<slot />
|
|
17
17
|
</div>
|
|
@@ -41,9 +41,6 @@ const onOpenChange = (open: boolean) => {
|
|
|
41
41
|
<DropdownMenuRadioItem value="expanded" class="cursor-pointer">
|
|
42
42
|
Expanded
|
|
43
43
|
</DropdownMenuRadioItem>
|
|
44
|
-
<DropdownMenuRadioItem value="collapsed" class="cursor-pointer">
|
|
45
|
-
Collapsed
|
|
46
|
-
</DropdownMenuRadioItem>
|
|
47
44
|
<DropdownMenuRadioItem value="hover" class="cursor-pointer">
|
|
48
45
|
Expand on hover
|
|
49
46
|
</DropdownMenuRadioItem>
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
<script setup lang="ts">
|
|
2
|
-
import type { HTMLAttributes } from "vue"
|
|
3
|
-
import { cn } from "@/lib/utils"
|
|
4
|
-
|
|
5
|
-
const props = defineProps<{
|
|
6
|
-
class?: HTMLAttributes["class"]
|
|
2
|
+
import type { HTMLAttributes } from "vue"
|
|
3
|
+
import { cn } from "@/lib/utils"
|
|
4
|
+
|
|
5
|
+
const props = defineProps<{
|
|
6
|
+
class?: HTMLAttributes["class"]
|
|
7
7
|
}>()
|
|
8
8
|
</script>
|
|
9
9
|
|