create-nala 3.0.3 → 3.1.0
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 +217 -70
- package/template/AGENTS.md +1 -1
- package/template/CLAUDE.md +27 -0
- package/template/GEMINI.md +27 -0
- package/template/README.md +3 -1
- package/template/package.json +1 -1
- package/template/src/App.vue +1 -1
- package/template/src/assets/fonts/InterVariable.woff2 +0 -0
- package/template/src/assets/fonts/inter-v20-latin-300.woff2 +0 -0
- package/template/src/assets/fonts/inter-v20-latin-500.woff2 +0 -0
- package/template/src/assets/fonts/inter-v20-latin-600.woff2 +0 -0
- package/template/src/assets/fonts/inter-v20-latin-700.woff2 +0 -0
- package/template/src/assets/fonts/inter-v20-latin-regular.woff2 +0 -0
- package/template/src/assets/hero.png +0 -0
- package/template/src/assets/vite.svg +1 -0
- package/template/src/assets/vue.svg +1 -0
- 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 +47 -17
- 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
- package/template/tsconfig.app.json +17 -11
|
@@ -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
|
|
|
@@ -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
|
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
<script setup lang="ts">
|
|
2
|
-
import type { HTMLAttributes } from "vue"
|
|
3
|
-
import { reactiveOmit } from "@vueuse/core"
|
|
4
|
-
import { cn } from "@/lib/utils"
|
|
5
|
-
import TableCell from "./TableCell.vue"
|
|
6
|
-
import TableRow from "./TableRow.vue"
|
|
7
|
-
|
|
8
|
-
const props = withDefaults(defineProps<{
|
|
9
|
-
class?: HTMLAttributes["class"]
|
|
10
|
-
colspan?: number
|
|
11
|
-
}>(), {
|
|
12
|
-
colspan: 1,
|
|
13
|
-
})
|
|
14
|
-
|
|
2
|
+
import type { HTMLAttributes } from "vue"
|
|
3
|
+
import { reactiveOmit } from "@vueuse/core"
|
|
4
|
+
import { cn } from "@/lib/utils"
|
|
5
|
+
import TableCell from "./TableCell.vue"
|
|
6
|
+
import TableRow from "./TableRow.vue"
|
|
7
|
+
|
|
8
|
+
const props = withDefaults(defineProps<{
|
|
9
|
+
class?: HTMLAttributes["class"]
|
|
10
|
+
colspan?: number
|
|
11
|
+
}>(), {
|
|
12
|
+
colspan: 1,
|
|
13
|
+
})
|
|
14
|
+
|
|
15
15
|
const delegatedProps = reactiveOmit(props, "class")
|
|
16
16
|
</script>
|
|
17
17
|
|
|
@@ -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
|
|
|
@@ -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
|
|
|
@@ -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
|
|
|
@@ -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
|
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
export { default as Table } from "./Table.vue"
|
|
2
|
-
export { default as TableBody } from "./TableBody.vue"
|
|
3
|
-
export { default as TableCaption } from "./TableCaption.vue"
|
|
4
|
-
export { default as TableCell } from "./TableCell.vue"
|
|
5
|
-
export { default as TableEmpty } from "./TableEmpty.vue"
|
|
6
|
-
export { default as TableFooter } from "./TableFooter.vue"
|
|
7
|
-
export { default as TableHead } from "./TableHead.vue"
|
|
8
|
-
export { default as TableHeader } from "./TableHeader.vue"
|
|
1
|
+
export { default as Table } from "./Table.vue"
|
|
2
|
+
export { default as TableBody } from "./TableBody.vue"
|
|
3
|
+
export { default as TableCaption } from "./TableCaption.vue"
|
|
4
|
+
export { default as TableCell } from "./TableCell.vue"
|
|
5
|
+
export { default as TableEmpty } from "./TableEmpty.vue"
|
|
6
|
+
export { default as TableFooter } from "./TableFooter.vue"
|
|
7
|
+
export { default as TableHead } from "./TableHead.vue"
|
|
8
|
+
export { default as TableHeader } from "./TableHeader.vue"
|
|
9
9
|
export { default as TableRow } from "./TableRow.vue"
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import type { Updater } from "@tanstack/vue-table"
|
|
2
|
-
|
|
3
|
-
import type { Ref } from "vue"
|
|
4
|
-
import { isFunction } from "@tanstack/vue-table"
|
|
5
|
-
|
|
6
|
-
export function valueUpdater<T>(updaterOrValue: Updater<T>, ref: Ref<T>) {
|
|
7
|
-
ref.value = isFunction(updaterOrValue)
|
|
8
|
-
? updaterOrValue(ref.value)
|
|
9
|
-
: updaterOrValue
|
|
1
|
+
import type { Updater } from "@tanstack/vue-table"
|
|
2
|
+
|
|
3
|
+
import type { Ref } from "vue"
|
|
4
|
+
import { isFunction } from "@tanstack/vue-table"
|
|
5
|
+
|
|
6
|
+
export function valueUpdater<T>(updaterOrValue: Updater<T>, ref: Ref<T>) {
|
|
7
|
+
ref.value = isFunction(updaterOrValue)
|
|
8
|
+
? updaterOrValue(ref.value)
|
|
9
|
+
: updaterOrValue
|
|
10
10
|
}
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
<script setup lang="ts">
|
|
2
|
-
import type { TabsRootEmits, TabsRootProps } from "reka-ui"
|
|
3
|
-
import type { HTMLAttributes } from "vue"
|
|
4
|
-
import { reactiveOmit } from "@vueuse/core"
|
|
5
|
-
import { TabsRoot, useForwardPropsEmits } from "reka-ui"
|
|
6
|
-
import { cn } from "@/lib/utils"
|
|
7
|
-
|
|
8
|
-
const props = defineProps<TabsRootProps & { class?: HTMLAttributes["class"] }>()
|
|
9
|
-
const emits = defineEmits<TabsRootEmits>()
|
|
10
|
-
|
|
11
|
-
const delegatedProps = reactiveOmit(props, "class")
|
|
2
|
+
import type { TabsRootEmits, TabsRootProps } from "reka-ui"
|
|
3
|
+
import type { HTMLAttributes } from "vue"
|
|
4
|
+
import { reactiveOmit } from "@vueuse/core"
|
|
5
|
+
import { TabsRoot, useForwardPropsEmits } from "reka-ui"
|
|
6
|
+
import { cn } from "@/lib/utils"
|
|
7
|
+
|
|
8
|
+
const props = defineProps<TabsRootProps & { class?: HTMLAttributes["class"] }>()
|
|
9
|
+
const emits = defineEmits<TabsRootEmits>()
|
|
10
|
+
|
|
11
|
+
const delegatedProps = reactiveOmit(props, "class")
|
|
12
12
|
const forwarded = useForwardPropsEmits(delegatedProps, emits)
|
|
13
13
|
</script>
|
|
14
14
|
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
<script setup lang="ts">
|
|
2
|
-
import type { TabsContentProps } from "reka-ui"
|
|
3
|
-
import type { HTMLAttributes } from "vue"
|
|
4
|
-
import { reactiveOmit } from "@vueuse/core"
|
|
5
|
-
import { TabsContent } from "reka-ui"
|
|
6
|
-
import { cn } from "@/lib/utils"
|
|
7
|
-
|
|
8
|
-
const props = defineProps<TabsContentProps & { class?: HTMLAttributes["class"] }>()
|
|
9
|
-
|
|
2
|
+
import type { TabsContentProps } from "reka-ui"
|
|
3
|
+
import type { HTMLAttributes } from "vue"
|
|
4
|
+
import { reactiveOmit } from "@vueuse/core"
|
|
5
|
+
import { TabsContent } from "reka-ui"
|
|
6
|
+
import { cn } from "@/lib/utils"
|
|
7
|
+
|
|
8
|
+
const props = defineProps<TabsContentProps & { 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 { TabsListProps } from "reka-ui"
|
|
3
|
-
import type { HTMLAttributes } from "vue"
|
|
4
|
-
import { reactiveOmit } from "@vueuse/core"
|
|
5
|
-
import { TabsList } from "reka-ui"
|
|
6
|
-
import { cn } from "@/lib/utils"
|
|
7
|
-
|
|
8
|
-
const props = defineProps<TabsListProps & { class?: HTMLAttributes["class"] }>()
|
|
9
|
-
|
|
2
|
+
import type { TabsListProps } from "reka-ui"
|
|
3
|
+
import type { HTMLAttributes } from "vue"
|
|
4
|
+
import { reactiveOmit } from "@vueuse/core"
|
|
5
|
+
import { TabsList } from "reka-ui"
|
|
6
|
+
import { cn } from "@/lib/utils"
|
|
7
|
+
|
|
8
|
+
const props = defineProps<TabsListProps & { class?: HTMLAttributes["class"] }>()
|
|
9
|
+
|
|
10
10
|
const delegatedProps = reactiveOmit(props, "class")
|
|
11
11
|
</script>
|
|
12
12
|
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
<script setup lang="ts">
|
|
2
|
-
import type { TabsTriggerProps } from "reka-ui"
|
|
3
|
-
import type { HTMLAttributes } from "vue"
|
|
4
|
-
import { reactiveOmit } from "@vueuse/core"
|
|
5
|
-
import { TabsTrigger, useForwardProps } from "reka-ui"
|
|
6
|
-
import { cn } from "@/lib/utils"
|
|
7
|
-
|
|
8
|
-
const props = defineProps<TabsTriggerProps & { class?: HTMLAttributes["class"] }>()
|
|
9
|
-
|
|
10
|
-
const delegatedProps = reactiveOmit(props, "class")
|
|
11
|
-
|
|
2
|
+
import type { TabsTriggerProps } from "reka-ui"
|
|
3
|
+
import type { HTMLAttributes } from "vue"
|
|
4
|
+
import { reactiveOmit } from "@vueuse/core"
|
|
5
|
+
import { TabsTrigger, useForwardProps } from "reka-ui"
|
|
6
|
+
import { cn } from "@/lib/utils"
|
|
7
|
+
|
|
8
|
+
const props = defineProps<TabsTriggerProps & { class?: HTMLAttributes["class"] }>()
|
|
9
|
+
|
|
10
|
+
const delegatedProps = reactiveOmit(props, "class")
|
|
11
|
+
|
|
12
12
|
const forwardedProps = useForwardProps(delegatedProps)
|
|
13
13
|
</script>
|
|
14
14
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { default as Tabs } from "./Tabs.vue"
|
|
2
|
-
export { default as TabsContent } from "./TabsContent.vue"
|
|
3
|
-
export { default as TabsList } from "./TabsList.vue"
|
|
1
|
+
export { default as Tabs } from "./Tabs.vue"
|
|
2
|
+
export { default as TabsContent } from "./TabsContent.vue"
|
|
3
|
+
export { default as TabsList } from "./TabsList.vue"
|
|
4
4
|
export { default as TabsTrigger } from "./TabsTrigger.vue"
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
<script setup lang="ts">
|
|
2
|
-
import type { HTMLAttributes } from "vue"
|
|
3
|
-
import { useVModel } from "@vueuse/core"
|
|
4
|
-
import { cn } from "@/lib/utils"
|
|
5
|
-
|
|
6
|
-
const props = defineProps<{
|
|
7
|
-
class?: HTMLAttributes["class"]
|
|
8
|
-
defaultValue?: string | number
|
|
9
|
-
modelValue?: string | number
|
|
10
|
-
}>()
|
|
11
|
-
|
|
12
|
-
const emits = defineEmits<{
|
|
13
|
-
(e: "update:modelValue", payload: string | number): void
|
|
14
|
-
}>()
|
|
15
|
-
|
|
16
|
-
const modelValue = useVModel(props, "modelValue", emits, {
|
|
17
|
-
passive: true,
|
|
18
|
-
defaultValue: props.defaultValue,
|
|
2
|
+
import type { HTMLAttributes } from "vue"
|
|
3
|
+
import { useVModel } from "@vueuse/core"
|
|
4
|
+
import { cn } from "@/lib/utils"
|
|
5
|
+
|
|
6
|
+
const props = defineProps<{
|
|
7
|
+
class?: HTMLAttributes["class"]
|
|
8
|
+
defaultValue?: string | number
|
|
9
|
+
modelValue?: string | number
|
|
10
|
+
}>()
|
|
11
|
+
|
|
12
|
+
const emits = defineEmits<{
|
|
13
|
+
(e: "update:modelValue", payload: string | number): void
|
|
14
|
+
}>()
|
|
15
|
+
|
|
16
|
+
const modelValue = useVModel(props, "modelValue", emits, {
|
|
17
|
+
passive: true,
|
|
18
|
+
defaultValue: props.defaultValue,
|
|
19
19
|
})
|
|
20
20
|
</script>
|
|
21
21
|
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
<script setup lang="ts">
|
|
2
|
-
import type { TooltipRootEmits, TooltipRootProps } from "reka-ui"
|
|
3
|
-
import { TooltipRoot, useForwardPropsEmits } from "reka-ui"
|
|
4
|
-
|
|
5
|
-
const props = defineProps<TooltipRootProps>()
|
|
6
|
-
const emits = defineEmits<TooltipRootEmits>()
|
|
7
|
-
|
|
2
|
+
import type { TooltipRootEmits, TooltipRootProps } from "reka-ui"
|
|
3
|
+
import { TooltipRoot, useForwardPropsEmits } from "reka-ui"
|
|
4
|
+
|
|
5
|
+
const props = defineProps<TooltipRootProps>()
|
|
6
|
+
const emits = defineEmits<TooltipRootEmits>()
|
|
7
|
+
|
|
8
8
|
const forwarded = useForwardPropsEmits(props, emits)
|
|
9
9
|
</script>
|
|
10
10
|
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
<script setup lang="ts">
|
|
2
|
-
import type { TooltipContentEmits, TooltipContentProps } from "reka-ui"
|
|
3
|
-
import type { HTMLAttributes } from "vue"
|
|
4
|
-
import { reactiveOmit } from "@vueuse/core"
|
|
5
|
-
import { TooltipArrow, TooltipContent, TooltipPortal, useForwardPropsEmits } from "reka-ui"
|
|
6
|
-
import { cn } from "@/lib/utils"
|
|
7
|
-
|
|
8
|
-
defineOptions({
|
|
9
|
-
inheritAttrs: false,
|
|
10
|
-
})
|
|
11
|
-
|
|
12
|
-
const props = withDefaults(defineProps<TooltipContentProps & { class?: HTMLAttributes["class"] }>(), {
|
|
13
|
-
sideOffset: 4,
|
|
14
|
-
})
|
|
15
|
-
|
|
16
|
-
const emits = defineEmits<TooltipContentEmits>()
|
|
17
|
-
|
|
18
|
-
const delegatedProps = reactiveOmit(props, "class")
|
|
2
|
+
import type { TooltipContentEmits, TooltipContentProps } from "reka-ui"
|
|
3
|
+
import type { HTMLAttributes } from "vue"
|
|
4
|
+
import { reactiveOmit } from "@vueuse/core"
|
|
5
|
+
import { TooltipArrow, TooltipContent, TooltipPortal, useForwardPropsEmits } from "reka-ui"
|
|
6
|
+
import { cn } from "@/lib/utils"
|
|
7
|
+
|
|
8
|
+
defineOptions({
|
|
9
|
+
inheritAttrs: false,
|
|
10
|
+
})
|
|
11
|
+
|
|
12
|
+
const props = withDefaults(defineProps<TooltipContentProps & { class?: HTMLAttributes["class"] }>(), {
|
|
13
|
+
sideOffset: 4,
|
|
14
|
+
})
|
|
15
|
+
|
|
16
|
+
const emits = defineEmits<TooltipContentEmits>()
|
|
17
|
+
|
|
18
|
+
const delegatedProps = reactiveOmit(props, "class")
|
|
19
19
|
const forwarded = useForwardPropsEmits(delegatedProps, emits)
|
|
20
20
|
</script>
|
|
21
21
|
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
<script setup lang="ts">
|
|
2
|
-
import type { TooltipProviderProps } from "reka-ui"
|
|
3
|
-
import { TooltipProvider } from "reka-ui"
|
|
4
|
-
|
|
5
|
-
const props = withDefaults(defineProps<TooltipProviderProps>(), {
|
|
6
|
-
delayDuration: 0,
|
|
2
|
+
import type { TooltipProviderProps } from "reka-ui"
|
|
3
|
+
import { TooltipProvider } from "reka-ui"
|
|
4
|
+
|
|
5
|
+
const props = withDefaults(defineProps<TooltipProviderProps>(), {
|
|
6
|
+
delayDuration: 0,
|
|
7
7
|
})
|
|
8
8
|
</script>
|
|
9
9
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<script setup lang="ts">
|
|
2
|
-
import type { TooltipTriggerProps } from "reka-ui"
|
|
3
|
-
import { TooltipTrigger } from "reka-ui"
|
|
4
|
-
|
|
2
|
+
import type { TooltipTriggerProps } from "reka-ui"
|
|
3
|
+
import { TooltipTrigger } from "reka-ui"
|
|
4
|
+
|
|
5
5
|
const props = defineProps<TooltipTriggerProps>()
|
|
6
6
|
</script>
|
|
7
7
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { default as Tooltip } from "./Tooltip.vue"
|
|
2
|
-
export { default as TooltipContent } from "./TooltipContent.vue"
|
|
3
|
-
export { default as TooltipProvider } from "./TooltipProvider.vue"
|
|
1
|
+
export { default as Tooltip } from "./Tooltip.vue"
|
|
2
|
+
export { default as TooltipContent } from "./TooltipContent.vue"
|
|
3
|
+
export { default as TooltipProvider } from "./TooltipProvider.vue"
|
|
4
4
|
export { default as TooltipTrigger } from "./TooltipTrigger.vue"
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import type { ClassValue } from "clsx"
|
|
2
|
-
import { clsx } from "clsx"
|
|
3
|
-
import { twMerge } from "tailwind-merge"
|
|
4
|
-
|
|
5
|
-
export function cn(...inputs: ClassValue[]) {
|
|
6
|
-
return twMerge(clsx(inputs))
|
|
1
|
+
import type { ClassValue } from "clsx"
|
|
2
|
+
import { clsx } from "clsx"
|
|
3
|
+
import { twMerge } from "tailwind-merge"
|
|
4
|
+
|
|
5
|
+
export function cn(...inputs: ClassValue[]) {
|
|
6
|
+
return twMerge(clsx(inputs))
|
|
7
7
|
}
|
|
@@ -1,21 +1,27 @@
|
|
|
1
1
|
{
|
|
2
|
-
"extends": "@vue/tsconfig/tsconfig.dom.json",
|
|
3
2
|
"compilerOptions": {
|
|
4
3
|
"tsBuildInfoFile": "./node_modules/.tmp/tsconfig.app.tsbuildinfo",
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
"
|
|
10
|
-
/*
|
|
4
|
+
/* Target must match vite's esbuild target */
|
|
5
|
+
"target": "ES2022",
|
|
6
|
+
"module": "ESNext",
|
|
7
|
+
"moduleResolution": "Bundler",
|
|
8
|
+
"useDefineForClassFields": true,
|
|
9
|
+
/* DOM lib for browser APIs */
|
|
10
|
+
"lib": ["ES2022", "DOM", "DOM.Iterable"],
|
|
11
|
+
"jsx": "preserve",
|
|
12
|
+
"jsxImportSource": "vue",
|
|
13
|
+
/* Type checking */
|
|
14
|
+
"strict": true,
|
|
15
|
+
"noFallthroughCasesInSwitch": true,
|
|
11
16
|
"noUnusedLocals": true,
|
|
12
17
|
"noUnusedParameters": true,
|
|
13
18
|
"erasableSyntaxOnly": true,
|
|
14
|
-
"
|
|
19
|
+
"allowArbitraryExtensions": true,
|
|
20
|
+
"resolveJsonModule": true,
|
|
21
|
+
"isolatedModules": true,
|
|
22
|
+
"skipLibCheck": true,
|
|
15
23
|
"paths": {
|
|
16
|
-
"@/*": [
|
|
17
|
-
"./src/*"
|
|
18
|
-
]
|
|
24
|
+
"@/*": ["./src/*"]
|
|
19
25
|
}
|
|
20
26
|
},
|
|
21
27
|
"include": [
|