una-nuxt-module 2.1.52 → 3.0.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.
Files changed (53) hide show
  1. package/.nuxt/templates/AppBreadcumbs.vue/AppBreadcumbs.vue +5 -5
  2. package/.nuxt/templates/ColorModeSelect.vue/ColorModeSelect.vue +10 -10
  3. package/.nuxt/templates/Loading.vue/Loading.vue +1 -1
  4. package/.nuxt/templates/LoadingScreen.vue/LoadingScreen.vue +2 -2
  5. package/.nuxt/templates/LoadingSessionScreen.vue/LoadingSessionScreen.vue +4 -4
  6. package/.nuxt/templates/alert-dialog/AlertDialogAction.vue +1 -1
  7. package/.nuxt/templates/alert-dialog/AlertDialogCancel.vue +1 -1
  8. package/.nuxt/templates/button-group/ButtonGroupSeparator.vue +1 -1
  9. package/.nuxt/templates/calendar/Calendar.vue +1 -1
  10. package/.nuxt/templates/calendar/CalendarCellTrigger.vue +1 -1
  11. package/.nuxt/templates/calendar/CalendarNextButton.vue +1 -1
  12. package/.nuxt/templates/calendar/CalendarPrevButton.vue +1 -1
  13. package/.nuxt/templates/carousel/CarouselNext.vue +2 -2
  14. package/.nuxt/templates/carousel/CarouselPrevious.vue +2 -2
  15. package/.nuxt/templates/command/CommandDialog.vue +1 -1
  16. package/.nuxt/templates/field/FieldLabel.vue +1 -1
  17. package/.nuxt/templates/field/FieldSeparator.vue +1 -1
  18. package/.nuxt/templates/form/FormLabel.vue +1 -1
  19. package/.nuxt/templates/input-group/InputGroupButton.vue +1 -1
  20. package/.nuxt/templates/input-group/InputGroupInput.vue +1 -1
  21. package/.nuxt/templates/input-group/InputGroupTextarea.vue +1 -1
  22. package/.nuxt/templates/input-group/index.ts +1 -1
  23. package/.nuxt/templates/item/ItemSeparator.vue +1 -1
  24. package/.nuxt/templates/pagination/PaginationFirst.vue +2 -2
  25. package/.nuxt/templates/pagination/PaginationItem.vue +2 -2
  26. package/.nuxt/templates/pagination/PaginationLast.vue +2 -2
  27. package/.nuxt/templates/pagination/PaginationNext.vue +2 -2
  28. package/.nuxt/templates/pagination/PaginationPrevious.vue +2 -2
  29. package/.nuxt/templates/range-calendar/RangeCalendarCellTrigger.vue +1 -1
  30. package/.nuxt/templates/range-calendar/RangeCalendarNextButton.vue +1 -1
  31. package/.nuxt/templates/range-calendar/RangeCalendarPrevButton.vue +1 -1
  32. package/.nuxt/templates/sidebar/Sidebar.vue +5 -5
  33. package/.nuxt/templates/sidebar/SidebarInput.vue +1 -1
  34. package/.nuxt/templates/sidebar/SidebarMenuButton.vue +1 -1
  35. package/.nuxt/templates/sidebar/SidebarMenuSkeleton.vue +1 -1
  36. package/.nuxt/templates/sidebar/SidebarSeparator.vue +1 -1
  37. package/.nuxt/templates/sidebar/SidebarTrigger.vue +1 -1
  38. package/.nuxt/templates/toggle-group/ToggleGroup.vue +1 -1
  39. package/.nuxt/templates/toggle-group/ToggleGroupItem.vue +1 -1
  40. package/README.md +41 -59
  41. package/dist/module.d.mts +5 -5
  42. package/dist/module.json +1 -1
  43. package/dist/module.mjs +23 -14
  44. package/dist/runtime/auth/composables/useAuthorization.js +2 -2
  45. package/dist/runtime/auth/plugins/auth.js +1 -1
  46. package/dist/runtime/auth/stores/auth.d.ts +3 -3
  47. package/dist/runtime/components/shared/AppBreadcumbs.vue +1 -1
  48. package/dist/runtime/components/shared/ColorModeSelect.vue +2 -2
  49. package/dist/runtime/components/shared/Loading.vue +1 -1
  50. package/dist/runtime/components/shared/LoadingScreen.vue +1 -1
  51. package/dist/runtime/components/shared/LoadingSessionScreen.vue +1 -1
  52. package/dist/runtime/types/index.d.ts +2 -2
  53. package/package.json +9 -4
@@ -5,11 +5,11 @@ import {
5
5
  BreadcrumbLink,
6
6
  BreadcrumbList,
7
7
  BreadcrumbPage,
8
- BreadcrumbSeparator,
9
- } from '../ui/breadcrumb';
10
- import { useBreadcumbs } from '../../composables/useBreadcumbs';
8
+ BreadcrumbSeparator
9
+ } from '../ui/breadcrumb'
10
+ import { useBreadcumbs } from '../../composables/useBreadcumbs'
11
11
 
12
- const { breadcrumbs } = useBreadcumbs();
12
+ const { breadcrumbs } = useBreadcumbs()
13
13
  </script>
14
14
 
15
15
  <template>
@@ -26,7 +26,7 @@ const { breadcrumbs } = useBreadcumbs();
26
26
  </BreadcrumbItem>
27
27
  <BreadcrumbSeparator
28
28
  v-if="index < breadcrumbs.length - 1"
29
- class="hidden md:block"
29
+ class="md:block hidden"
30
30
  />
31
31
  </template>
32
32
  </BreadcrumbList>
@@ -1,21 +1,21 @@
1
1
  <script setup lang="ts">
2
- import { useColorMode } from '#imports';
3
- import { Button } from '../ui/button';
2
+ import { useColorMode } from '#imports'
3
+ import { Button } from '../ui/button'
4
4
  import {
5
5
  DropdownMenu,
6
6
  DropdownMenuContent,
7
7
  DropdownMenuItem,
8
- DropdownMenuTrigger,
9
- } from '../ui/dropdown-menu';
8
+ DropdownMenuTrigger
9
+ } from '../ui/dropdown-menu'
10
10
  import {
11
11
  Tooltip,
12
12
  TooltipContent,
13
13
  TooltipProvider,
14
- TooltipTrigger,
15
- } from '../ui/tooltip';
16
- import { Check } from 'lucide-vue-next';
14
+ TooltipTrigger
15
+ } from '../ui/tooltip'
16
+ import { Check } from 'lucide-vue-next'
17
17
 
18
- const colorMode = useColorMode();
18
+ const colorMode = useColorMode()
19
19
  </script>
20
20
 
21
21
  <template>
@@ -27,11 +27,11 @@ const colorMode = useColorMode();
27
27
  <Button variant="outline" size="icon">
28
28
  <Icon
29
29
  name="radix-icons:moon"
30
- class="h-[1.2rem] w-[1.2rem] rotate-0 scale-100 transition-all dark:-rotate-90 dark:scale-0"
30
+ class="h-[1.2rem] w-[1.2rem] scale-100 rotate-0 transition-all dark:scale-0 dark:-rotate-90"
31
31
  />
32
32
  <Icon
33
33
  name="radix-icons:sun"
34
- class="absolute h-[1.2rem] w-[1.2rem] rotate-90 scale-0 transition-all dark:rotate-0 dark:scale-100"
34
+ class="absolute h-[1.2rem] w-[1.2rem] scale-0 rotate-90 transition-all dark:scale-100 dark:rotate-0"
35
35
  />
36
36
  <span class="sr-only">Toggle theme</span>
37
37
  </Button>
@@ -1,5 +1,5 @@
1
1
  <template>
2
2
  <div
3
- class="h-10 w-10 border-4 border-accent border-t-primary rounded-full animate-spin"
3
+ class="h-10 w-10 animate-spin rounded-full border-4 border-accent border-t-primary"
4
4
  />
5
5
  </template>
@@ -1,5 +1,5 @@
1
1
  <template>
2
- <div class="h-screen w-full flex justify-center items-center">
2
+ <div class="flex h-screen w-full items-center justify-center">
3
3
  <div role="status" class="flex justify-center">
4
4
  <Loading />
5
5
  <span class="sr-only">Cargando...</span>
@@ -8,5 +8,5 @@
8
8
  </template>
9
9
 
10
10
  <script setup lang="ts">
11
- import Loading from './Loading.vue';
11
+ import Loading from './Loading.vue'
12
12
  </script>
@@ -1,5 +1,5 @@
1
1
  <template>
2
- <div class="h-screen w-full flex justify-center items-center">
2
+ <div class="flex h-screen w-full items-center justify-center">
3
3
  <div role="status" class="flex justify-center">
4
4
  <Empty>
5
5
  <EmptyHeader>
@@ -24,7 +24,7 @@ import {
24
24
  EmptyContent,
25
25
  EmptyHeader,
26
26
  EmptyTitle,
27
- EmptyDescription,
28
- } from '../ui/empty';
29
- import Loading from './Loading.vue';
27
+ EmptyDescription
28
+ } from '../ui/empty'
29
+ import Loading from './Loading.vue'
30
30
  </script>
@@ -4,7 +4,7 @@ import type { HTMLAttributes } from "vue"
4
4
  import { reactiveOmit } from "@vueuse/core"
5
5
  import { AlertDialogAction } from "reka-ui"
6
6
  import cn from '../../../utils/cn'
7
- import { buttonVariants } from '~/src/runtime/components/ui/button'
7
+ import { buttonVariants } from '../button'
8
8
 
9
9
  const props = defineProps<AlertDialogActionProps & { class?: HTMLAttributes["class"] }>()
10
10
 
@@ -4,7 +4,7 @@ import type { HTMLAttributes } from "vue"
4
4
  import { reactiveOmit } from "@vueuse/core"
5
5
  import { AlertDialogCancel } from "reka-ui"
6
6
  import cn from '../../../utils/cn'
7
- import { buttonVariants } from '~/src/runtime/components/ui/button'
7
+ import { buttonVariants } from '../button'
8
8
 
9
9
  const props = defineProps<AlertDialogCancelProps & { class?: HTMLAttributes["class"] }>()
10
10
 
@@ -3,7 +3,7 @@ import type { SeparatorProps } from "reka-ui"
3
3
  import type { HTMLAttributes } from "vue"
4
4
  import { reactiveOmit } from "@vueuse/core"
5
5
  import cn from '../../../utils/cn'
6
- import { Separator } from '~/src/runtime/components/ui/separator'
6
+ import { Separator } from '../separator'
7
7
 
8
8
  const props = withDefaults(defineProps<SeparatorProps & { class?: HTMLAttributes["class"] }>(), {
9
9
  orientation: "vertical",
@@ -8,7 +8,7 @@ import { CalendarRoot, useDateFormatter, useForwardPropsEmits } from "reka-ui"
8
8
  import { createYear, createYearRange, toDate } from "reka-ui/date"
9
9
  import { computed, toRaw } from "vue"
10
10
  import cn from '../../../utils/cn'
11
- import { NativeSelect, NativeSelectOption } from '~/src/runtime/components/ui/native-select'
11
+ import { NativeSelect, NativeSelectOption } from '../native-select'
12
12
  import { CalendarCell, CalendarCellTrigger, CalendarGrid, CalendarGridBody, CalendarGridHead, CalendarGridRow, CalendarHeadCell, CalendarHeader, CalendarHeading, CalendarNextButton, CalendarPrevButton } from "."
13
13
 
14
14
  const props = withDefaults(defineProps<CalendarRootProps & { class?: HTMLAttributes["class"], layout?: LayoutTypes, yearRange?: DateValue[] }>(), {
@@ -4,7 +4,7 @@ import type { HTMLAttributes } from "vue"
4
4
  import { reactiveOmit } from "@vueuse/core"
5
5
  import { CalendarCellTrigger, useForwardProps } from "reka-ui"
6
6
  import cn from '../../../utils/cn'
7
- import { buttonVariants } from '~/src/runtime/components/ui/button'
7
+ import { buttonVariants } from '../button'
8
8
 
9
9
  const props = withDefaults(defineProps<CalendarCellTriggerProps & { class?: HTMLAttributes["class"] }>(), {
10
10
  as: "button",
@@ -5,7 +5,7 @@ import { reactiveOmit } from "@vueuse/core"
5
5
  import { ChevronRight } from "lucide-vue-next"
6
6
  import { CalendarNext, useForwardProps } from "reka-ui"
7
7
  import cn from '../../../utils/cn'
8
- import { buttonVariants } from '~/src/runtime/components/ui/button'
8
+ import { buttonVariants } from '../button'
9
9
 
10
10
  const props = defineProps<CalendarNextProps & { class?: HTMLAttributes["class"] }>()
11
11
 
@@ -5,7 +5,7 @@ import { reactiveOmit } from "@vueuse/core"
5
5
  import { ChevronLeft } from "lucide-vue-next"
6
6
  import { CalendarPrev, useForwardProps } from "reka-ui"
7
7
  import cn from '../../../utils/cn'
8
- import { buttonVariants } from '~/src/runtime/components/ui/button'
8
+ import { buttonVariants } from '../button'
9
9
 
10
10
  const props = defineProps<CalendarPrevProps & { class?: HTMLAttributes["class"] }>()
11
11
 
@@ -1,9 +1,9 @@
1
1
  <script setup lang="ts">
2
2
  import type { WithClassAsProps } from "./interface"
3
- import type { ButtonVariants } from '~/src/runtime/components/ui/button'
3
+ import type { ButtonVariants } from '../button'
4
4
  import { ArrowRight } from "lucide-vue-next"
5
5
  import cn from '../../../utils/cn'
6
- import { Button } from '~/src/runtime/components/ui/button'
6
+ import { Button } from '../button'
7
7
  import { useCarousel } from "./useCarousel"
8
8
 
9
9
  const props = withDefaults(defineProps<{
@@ -1,9 +1,9 @@
1
1
  <script setup lang="ts">
2
2
  import type { WithClassAsProps } from "./interface"
3
- import type { ButtonVariants } from '~/src/runtime/components/ui/button'
3
+ import type { ButtonVariants } from '../button'
4
4
  import { ArrowLeft } from "lucide-vue-next"
5
5
  import cn from '../../../utils/cn'
6
- import { Button } from '~/src/runtime/components/ui/button'
6
+ import { Button } from '../button'
7
7
  import { useCarousel } from "./useCarousel"
8
8
 
9
9
  const props = withDefaults(defineProps<{
@@ -1,7 +1,7 @@
1
1
  <script setup lang="ts">
2
2
  import type { DialogRootEmits, DialogRootProps } from "reka-ui"
3
3
  import { useForwardPropsEmits } from "reka-ui"
4
- import { Dialog, DialogContent, DialogDescription, DialogHeader, DialogTitle } from '~/src/runtime/components/ui/dialog'
4
+ import { Dialog, DialogContent, DialogDescription, DialogHeader, DialogTitle } from '../dialog'
5
5
  import Command from "./Command.vue"
6
6
 
7
7
  const props = withDefaults(defineProps<DialogRootProps & {
@@ -1,7 +1,7 @@
1
1
  <script setup lang="ts">
2
2
  import type { HTMLAttributes } from "vue"
3
3
  import cn from '../../../utils/cn'
4
- import { Label } from '~/src/runtime/components/ui/label'
4
+ import { Label } from '../label'
5
5
 
6
6
  const props = defineProps<{
7
7
  class?: HTMLAttributes["class"]
@@ -1,7 +1,7 @@
1
1
  <script setup lang="ts">
2
2
  import type { HTMLAttributes } from "vue"
3
3
  import cn from '../../../utils/cn'
4
- import { Separator } from '~/src/runtime/components/ui/separator'
4
+ import { Separator } from '../separator'
5
5
 
6
6
  const props = defineProps<{
7
7
  class?: HTMLAttributes["class"]
@@ -2,7 +2,7 @@
2
2
  import type { LabelProps } from "reka-ui"
3
3
  import type { HTMLAttributes } from "vue"
4
4
  import cn from '../../../utils/cn'
5
- import { Label } from '~/src/runtime/components/ui/label'
5
+ import { Label } from '../label'
6
6
  import { useFormField } from "./useFormField"
7
7
 
8
8
  const props = defineProps<LabelProps & { class?: HTMLAttributes["class"] }>()
@@ -1,7 +1,7 @@
1
1
  <script setup lang="ts">
2
2
  import type { InputGroupButtonProps } from "."
3
3
  import cn from '../../../utils/cn'
4
- import { Button } from '~/src/runtime/components/ui/button'
4
+ import { Button } from '../button'
5
5
  import { inputGroupButtonVariants } from "."
6
6
 
7
7
  const props = withDefaults(defineProps<InputGroupButtonProps>(), {
@@ -1,7 +1,7 @@
1
1
  <script setup lang="ts">
2
2
  import type { HTMLAttributes } from "vue"
3
3
  import cn from '../../../utils/cn'
4
- import { Input } from '~/src/runtime/components/ui/input'
4
+ import { Input } from '../input'
5
5
 
6
6
  const props = defineProps<{
7
7
  class?: HTMLAttributes["class"]
@@ -1,7 +1,7 @@
1
1
  <script setup lang="ts">
2
2
  import type { HTMLAttributes } from "vue"
3
3
  import cn from '../../../utils/cn'
4
- import { Textarea } from '~/src/runtime/components/ui/textarea'
4
+ import { Textarea } from '../textarea'
5
5
 
6
6
  const props = defineProps<{
7
7
  class?: HTMLAttributes["class"]
@@ -1,6 +1,6 @@
1
1
  import type { VariantProps } from "class-variance-authority"
2
2
  import type { HTMLAttributes } from "vue"
3
- import type { ButtonVariants } from '~/src/runtime/components/ui/button'
3
+ import type { ButtonVariants } from '../button'
4
4
  import { cva } from "class-variance-authority"
5
5
 
6
6
  export { default as InputGroup } from "./InputGroup.vue"
@@ -2,7 +2,7 @@
2
2
  import type { SeparatorProps } from "reka-ui"
3
3
  import type { HTMLAttributes } from "vue"
4
4
  import cn from '../../../utils/cn'
5
- import { Separator } from '~/src/runtime/components/ui/separator'
5
+ import { Separator } from '../separator'
6
6
 
7
7
  const props = defineProps<
8
8
  SeparatorProps & { class?: HTMLAttributes["class"] }
@@ -1,12 +1,12 @@
1
1
  <script setup lang="ts">
2
2
  import type { PaginationFirstProps } from "reka-ui"
3
3
  import type { HTMLAttributes } from "vue"
4
- import type { ButtonVariants } from '~/src/runtime/components/ui/button'
4
+ import type { ButtonVariants } from '../button'
5
5
  import { reactiveOmit } from "@vueuse/core"
6
6
  import { ChevronLeftIcon } from "lucide-vue-next"
7
7
  import { PaginationFirst, useForwardProps } from "reka-ui"
8
8
  import cn from '../../../utils/cn'
9
- import { buttonVariants } from '~/src/runtime/components/ui/button'
9
+ import { buttonVariants } from '../button'
10
10
 
11
11
  const props = withDefaults(defineProps<PaginationFirstProps & {
12
12
  size?: ButtonVariants["size"]
@@ -1,11 +1,11 @@
1
1
  <script setup lang="ts">
2
2
  import type { PaginationListItemProps } from "reka-ui"
3
3
  import type { HTMLAttributes } from "vue"
4
- import type { ButtonVariants } from '~/src/runtime/components/ui/button'
4
+ import type { ButtonVariants } from '../button'
5
5
  import { reactiveOmit } from "@vueuse/core"
6
6
  import { PaginationListItem } from "reka-ui"
7
7
  import cn from '../../../utils/cn'
8
- import { buttonVariants } from '~/src/runtime/components/ui/button'
8
+ import { buttonVariants } from '../button'
9
9
 
10
10
  const props = withDefaults(defineProps<PaginationListItemProps & {
11
11
  size?: ButtonVariants["size"]
@@ -1,12 +1,12 @@
1
1
  <script setup lang="ts">
2
2
  import type { PaginationLastProps } from "reka-ui"
3
3
  import type { HTMLAttributes } from "vue"
4
- import type { ButtonVariants } from '~/src/runtime/components/ui/button'
4
+ import type { ButtonVariants } from '../button'
5
5
  import { reactiveOmit } from "@vueuse/core"
6
6
  import { ChevronRightIcon } from "lucide-vue-next"
7
7
  import { PaginationLast, useForwardProps } from "reka-ui"
8
8
  import cn from '../../../utils/cn'
9
- import { buttonVariants } from '~/src/runtime/components/ui/button'
9
+ import { buttonVariants } from '../button'
10
10
 
11
11
  const props = withDefaults(defineProps<PaginationLastProps & {
12
12
  size?: ButtonVariants["size"]
@@ -1,12 +1,12 @@
1
1
  <script setup lang="ts">
2
2
  import type { PaginationNextProps } from "reka-ui"
3
3
  import type { HTMLAttributes } from "vue"
4
- import type { ButtonVariants } from '~/src/runtime/components/ui/button'
4
+ import type { ButtonVariants } from '../button'
5
5
  import { reactiveOmit } from "@vueuse/core"
6
6
  import { ChevronRightIcon } from "lucide-vue-next"
7
7
  import { PaginationNext, useForwardProps } from "reka-ui"
8
8
  import cn from '../../../utils/cn'
9
- import { buttonVariants } from '~/src/runtime/components/ui/button'
9
+ import { buttonVariants } from '../button'
10
10
 
11
11
  const props = withDefaults(defineProps<PaginationNextProps & {
12
12
  size?: ButtonVariants["size"]
@@ -1,12 +1,12 @@
1
1
  <script setup lang="ts">
2
2
  import type { PaginationPrevProps } from "reka-ui"
3
3
  import type { HTMLAttributes } from "vue"
4
- import type { ButtonVariants } from '~/src/runtime/components/ui/button'
4
+ import type { ButtonVariants } from '../button'
5
5
  import { reactiveOmit } from "@vueuse/core"
6
6
  import { ChevronLeftIcon } from "lucide-vue-next"
7
7
  import { PaginationPrev, useForwardProps } from "reka-ui"
8
8
  import cn from '../../../utils/cn'
9
- import { buttonVariants } from '~/src/runtime/components/ui/button'
9
+ import { buttonVariants } from '../button'
10
10
 
11
11
  const props = withDefaults(defineProps<PaginationPrevProps & {
12
12
  size?: ButtonVariants["size"]
@@ -4,7 +4,7 @@ import type { HTMLAttributes } from "vue"
4
4
  import { reactiveOmit } from "@vueuse/core"
5
5
  import { RangeCalendarCellTrigger, useForwardProps } from "reka-ui"
6
6
  import cn from '../../../utils/cn'
7
- import { buttonVariants } from '~/src/runtime/components/ui/button'
7
+ import { buttonVariants } from '../button'
8
8
 
9
9
  const props = withDefaults(defineProps<RangeCalendarCellTriggerProps & { class?: HTMLAttributes["class"] }>(), {
10
10
  as: "button",
@@ -5,7 +5,7 @@ import { reactiveOmit } from "@vueuse/core"
5
5
  import { ChevronRight } from "lucide-vue-next"
6
6
  import { RangeCalendarNext, useForwardProps } from "reka-ui"
7
7
  import cn from '../../../utils/cn'
8
- import { buttonVariants } from '~/src/runtime/components/ui/button'
8
+ import { buttonVariants } from '../button'
9
9
 
10
10
  const props = defineProps<RangeCalendarNextProps & { class?: HTMLAttributes["class"] }>()
11
11
 
@@ -5,7 +5,7 @@ import { reactiveOmit } from "@vueuse/core"
5
5
  import { ChevronLeft } from "lucide-vue-next"
6
6
  import { RangeCalendarPrev, useForwardProps } from "reka-ui"
7
7
  import cn from '../../../utils/cn'
8
- import { buttonVariants } from '~/src/runtime/components/ui/button'
8
+ import { buttonVariants } from '../button'
9
9
 
10
10
  const props = defineProps<RangeCalendarPrevProps & { class?: HTMLAttributes["class"] }>()
11
11
 
@@ -1,15 +1,15 @@
1
1
  <script setup lang="ts">
2
2
  import type { SidebarProps } from "."
3
3
  import cn from '../../../utils/cn'
4
- import { Sheet, SheetContent } from '~/src/runtime/components/ui/sheet'
5
- import SheetDescription from '~/src/runtime/components/ui/sheet/SheetDescription.vue'
6
- import SheetHeader from '~/src/runtime/components/ui/sheet/SheetHeader.vue'
7
- import SheetTitle from '~/src/runtime/components/ui/sheet/SheetTitle.vue'
4
+ import { Sheet, SheetContent } from '../sheet'
5
+ import SheetDescription from '../sheet/SheetDescription.vue'
6
+ import SheetHeader from '../sheet/SheetHeader.vue'
7
+ import SheetTitle from '../sheet/SheetTitle.vue'
8
8
  import { SIDEBAR_WIDTH_MOBILE, useSidebar } from "./utils"
9
9
 
10
10
  defineOptions({
11
11
  inheritAttrs: false,
12
- })
12
+ })
13
13
 
14
14
  const props = withDefaults(defineProps<SidebarProps>(), {
15
15
  side: "left",
@@ -1,7 +1,7 @@
1
1
  <script setup lang="ts">
2
2
  import type { HTMLAttributes } from "vue"
3
3
  import cn from '../../../utils/cn'
4
- import { Input } from '~/src/runtime/components/ui/input'
4
+ import { Input } from '../input'
5
5
 
6
6
  const props = defineProps<{
7
7
  class?: HTMLAttributes["class"]
@@ -2,7 +2,7 @@
2
2
  import type { Component } from "vue"
3
3
  import type { SidebarMenuButtonProps } from "./SidebarMenuButtonChild.vue"
4
4
  import { reactiveOmit } from "@vueuse/core"
5
- import { Tooltip, TooltipContent, TooltipTrigger } from '~/src/runtime/components/ui/tooltip'
5
+ import { Tooltip, TooltipContent, TooltipTrigger } from '../tooltip'
6
6
  import SidebarMenuButtonChild from "./SidebarMenuButtonChild.vue"
7
7
  import { useSidebar } from "./utils"
8
8
 
@@ -2,7 +2,7 @@
2
2
  import type { HTMLAttributes } from "vue"
3
3
  import { computed } from "vue"
4
4
  import cn from '../../../utils/cn'
5
- import { Skeleton } from '~/src/runtime/components/ui/skeleton'
5
+ import { Skeleton } from '../skeleton'
6
6
 
7
7
  const props = defineProps<{
8
8
  showIcon?: boolean
@@ -1,7 +1,7 @@
1
1
  <script setup lang="ts">
2
2
  import type { HTMLAttributes } from "vue"
3
3
  import cn from '../../../utils/cn'
4
- import { Separator } from '~/src/runtime/components/ui/separator'
4
+ import { Separator } from '../separator'
5
5
 
6
6
  const props = defineProps<{
7
7
  class?: HTMLAttributes["class"]
@@ -2,7 +2,7 @@
2
2
  import type { HTMLAttributes } from "vue"
3
3
  import { PanelLeft } from "lucide-vue-next"
4
4
  import cn from '../../../utils/cn'
5
- import { Button } from '~/src/runtime/components/ui/button'
5
+ import { Button } from '../button'
6
6
  import { useSidebar } from "./utils"
7
7
 
8
8
  const props = defineProps<{
@@ -2,7 +2,7 @@
2
2
  import type { VariantProps } from "class-variance-authority"
3
3
  import type { ToggleGroupRootEmits, ToggleGroupRootProps } from "reka-ui"
4
4
  import type { HTMLAttributes } from "vue"
5
- import type { toggleVariants } from '~/src/runtime/components/ui/toggle'
5
+ import type { toggleVariants } from '../toggle'
6
6
  import { reactiveOmit } from "@vueuse/core"
7
7
  import { ToggleGroupRoot, useForwardPropsEmits } from "reka-ui"
8
8
  import { provide } from "vue"
@@ -6,7 +6,7 @@ import { reactiveOmit } from "@vueuse/core"
6
6
  import { ToggleGroupItem, useForwardProps } from "reka-ui"
7
7
  import { inject } from "vue"
8
8
  import cn from '../../../utils/cn'
9
- import { toggleVariants } from '~/src/runtime/components/ui/toggle'
9
+ import { toggleVariants } from '../toggle'
10
10
 
11
11
  type ToggleGroupVariants = VariantProps<typeof toggleVariants> & {
12
12
  spacing?: number
package/README.md CHANGED
@@ -1,84 +1,66 @@
1
- <!--
2
- Get your module up and running quickly.
3
-
4
- Find and replace all on all files (CMD+SHIFT+F):
5
- - Name: My Module
6
- - Package name: my-module
7
- - Description: My new Nuxt module
8
- -->
9
-
10
- # My Module
1
+ # UNAXT
11
2
 
12
3
  [![npm version][npm-version-src]][npm-version-href]
13
4
  [![npm downloads][npm-downloads-src]][npm-downloads-href]
14
5
  [![License][license-src]][license-href]
15
6
  [![Nuxt][nuxt-src]][nuxt-href]
16
7
 
17
- My new Nuxt module for doing amazing things.
8
+ Este módulo centraliza la configuración base de una aplicación Nuxt: autenticación SSO, componentes UI, auto-importaciones, Tailwind CSS, i18n.
9
+
10
+ Su objetivo es estandarizar y reducir la configuración repetitiva entre proyectos.
18
11
 
19
- - [✨ &nbsp;Release Notes](/CHANGELOG.md)
20
- <!-- - [🏀 Online playground](https://stackblitz.com/github/your-org/my-module?file=playground%2Fapp.vue) -->
21
- <!-- - [📖 &nbsp;Documentation](https://example.com) -->
12
+ ## Instalación
22
13
 
23
- ## Features
14
+ Consultar:
24
15
 
25
- <!-- Highlight some of the features your module provide here -->
26
- - ⛰ &nbsp;Foo
27
- - 🚠 &nbsp;Bar
28
- - 🌲 &nbsp;Baz
16
+ - **Librería frontend - Guía de uso**
29
17
 
30
- ## Quick Setup
18
+ ## Contribución
31
19
 
32
- Install the module to your Nuxt application with one command:
20
+ Consultar:
21
+
22
+ - **Librería frontend - Guía de mantenimiento**
23
+
24
+ <details>
25
+ <summary>Desarrollo local</summary>
33
26
 
34
27
  ```bash
35
- npx nuxi module add my-module
36
- ```
28
+ # Instalar dependencias
29
+ pnpm install
37
30
 
38
- That's it! You can now use My Module in your Nuxt app ✨
31
+ # Preparar playground (compilar modulo, generar tipos)
32
+ pnpm dev:prepare
39
33
 
34
+ # Probar playground
35
+ pnpm dev
40
36
 
41
- ## Contribution
37
+ # Ejecutar ESLint
38
+ pnpm run lint
42
39
 
43
- <details>
44
- <summary>Local development</summary>
45
-
46
- ```bash
47
- # Install dependencies
48
- npm install
49
-
50
- # Generate type stubs
51
- npm run dev:prepare
52
-
53
- # Develop with the playground
54
- npm run dev
55
-
56
- # Build the playground
57
- npm run dev:build
58
-
59
- # Run ESLint
60
- npm run lint
61
-
62
- # Run Vitest
63
- npm run test
64
- npm run test:watch
65
-
66
- # Release new version
67
- npm run release
68
- ```
40
+ # Ejecutar Vitest
41
+ pnpm run test
42
+ pnpm run test:watch
69
43
 
70
- </details>
44
+ # Preparar release
45
+ pnpm release:prepare:major
46
+ pnpm release:prepare:minor
47
+ pnpm release:prepare:patch
71
48
 
49
+ # Publicar nueva versión
50
+ pnpm release
51
+ ```
52
+
53
+ </details>
72
54
 
73
55
  <!-- Badges -->
74
- [npm-version-src]: https://img.shields.io/npm/v/my-module/latest.svg?style=flat&colorA=020420&colorB=00DC82
75
- [npm-version-href]: https://npmjs.com/package/my-module
56
+ [npm-version-src]: https://img.shields.io/npm/v/una-nuxt-module/latest.svg?style=flat&colorA=020420&colorB=00DC82
57
+ [npm-version-href]: https://npmjs.com/package/una-nuxt-module
76
58
 
77
- [npm-downloads-src]: https://img.shields.io/npm/dm/my-module.svg?style=flat&colorA=020420&colorB=00DC82
78
- [npm-downloads-href]: https://npmjs.com/package/my-module
59
+ [npm-downloads-src]: https://img.shields.io/npm/dm/una-nuxt-module.svg?style=flat&colorA=020420&colorB=00DC82
60
+ [npm-downloads-href]: https://npmjs.com/package/una-nuxt-module
79
61
 
80
- [license-src]: https://img.shields.io/npm/l/my-module.svg?style=flat&colorA=020420&colorB=00DC82
81
- [license-href]: https://npmjs.com/package/my-module
62
+ [license-src]: https://img.shields.io/npm/l/una-nuxt-module.svg?style=flat&colorA=020420&colorB=00DC82
63
+ [license-href]: https://npmjs.com/package/una-nuxt-module
82
64
 
83
- [nuxt-src]: https://img.shields.io/badge/Nuxt-020420?logo=nuxt.js
65
+ [nuxt-src]: https://img.shields.io/badge/Nuxt-18181B?logo=nuxt
84
66
  [nuxt-href]: https://nuxt.com
package/dist/module.d.mts CHANGED
@@ -1,17 +1,17 @@
1
1
  import * as _nuxt_schema from '@nuxt/schema';
2
- import { IUnaNuxtModuleOptions } from '../dist/runtime/types/index.js';
2
+ import { IUnaxtModuleOptions } from '../dist/runtime/types/index.js';
3
3
 
4
- declare const _default: _nuxt_schema.NuxtModule<IUnaNuxtModuleOptions, IUnaNuxtModuleOptions, false>;
4
+ declare const _default: _nuxt_schema.NuxtModule<IUnaxtModuleOptions, IUnaxtModuleOptions, false>;
5
5
 
6
6
  interface ModulePublicRuntimeConfig {
7
- unaNuxtModule: IUnaNuxtModuleOptions;
7
+ unaxt: IUnaxtModuleOptions;
8
8
  }
9
9
  declare module '@nuxt/schema' {
10
10
  interface NuxtConfig {
11
- ['unaxt']?: Partial<IUnaNuxtModuleOptions>;
11
+ ['unaxt']?: Partial<IUnaxtModuleOptions>;
12
12
  }
13
13
  interface NuxtOptions {
14
- ['unaxt']: IUnaNuxtModuleOptions;
14
+ ['unaxt']: IUnaxtModuleOptions;
15
15
  }
16
16
  interface PublicRuntimeConfig extends ModulePublicRuntimeConfig {
17
17
  }
package/dist/module.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "una-nuxt-module",
3
- "version": "2.1.52",
3
+ "version": "3.0.0",
4
4
  "configKey": "unaxt",
5
5
  "compatibility": {
6
6
  "nuxt": ">=4.0.0"
package/dist/module.mjs CHANGED
@@ -121,9 +121,7 @@ function useTemplateBuilder() {
121
121
  function buildTemplatesForComponent(component) {
122
122
  try {
123
123
  const files = getComponentFiles(component);
124
- const templates = files.map(
125
- (file) => buildVirtualTemplate(component, file)
126
- );
124
+ const templates = files.map((file) => buildVirtualTemplate(component, file));
127
125
  return templates;
128
126
  } catch (error) {
129
127
  console.error(
@@ -136,15 +134,10 @@ function useTemplateBuilder() {
136
134
  function buildTemplatesForSharedComponents() {
137
135
  try {
138
136
  const files = getSharedComponentsFiles();
139
- const templates = files.map(
140
- (file) => buildVirtualTemplate(file.name, file)
141
- );
137
+ const templates = files.map((file) => buildVirtualTemplate(file.name, file));
142
138
  return templates;
143
139
  } catch (error) {
144
- console.error(
145
- "Failed to generate templates for shared components",
146
- error
147
- );
140
+ console.error("Failed to generate templates for shared components", error);
148
141
  return [];
149
142
  }
150
143
  }
@@ -174,7 +167,7 @@ function addTemplates() {
174
167
  }
175
168
 
176
169
  const name = "una-nuxt-module";
177
- const version = "2.1.52";
170
+ const version = "3.0.0";
178
171
 
179
172
  const module$1 = defineNuxtModule({
180
173
  meta: {
@@ -198,12 +191,28 @@ const module$1 = defineNuxtModule({
198
191
  defaults: {
199
192
  removeLoggers: true
200
193
  }
194
+ },
195
+ "@nuxt/a11y": {
196
+ version: ">=1.0.0-0",
197
+ optional: true,
198
+ defaults: {
199
+ enabled: true,
200
+ defaultHighlight: false,
201
+ logIssues: true
202
+ }
203
+ },
204
+ "@nuxt/hints": {
205
+ version: ">=1.0.0-0",
206
+ optional: false,
207
+ defaults: {
208
+ devtools: true
209
+ }
201
210
  }
202
211
  },
203
212
  async setup(options, nuxt) {
204
213
  const logger = useLogger(name);
205
214
  const { resolve } = createResolver(import.meta.url);
206
- options = defu(nuxt.options.runtimeConfig.public.unaNuxtModule, options);
215
+ options = defu(nuxt.options.runtimeConfig.public.unaxt, options);
207
216
  nuxt.options.alias["#unaxt"] = resolve("./runtime");
208
217
  function setupAutoImports() {
209
218
  addImportsDir(
@@ -295,8 +304,8 @@ const module$1 = defineNuxtModule({
295
304
  global: true
296
305
  });
297
306
  logger.ready("\u251C\u2500\u2500 " + gray("Middlewares registrados"));
298
- nuxt.options.runtimeConfig.public.unaNuxtModule = defu(
299
- nuxt.options.runtimeConfig.public.unaNuxtModule,
307
+ nuxt.options.runtimeConfig.public.unaxt = defu(
308
+ nuxt.options.runtimeConfig.public.unaxt,
300
309
  {
301
310
  navigation: {
302
311
  unprotectedPages: ["/401", "/403", "/auth/sso/login"]
@@ -2,7 +2,7 @@ import { useRuntimeConfig } from "#imports";
2
2
  import { useAuthStore } from "../stores/auth.js";
3
3
  export const useAuthorization = () => {
4
4
  const isPageUnprotected = (page) => {
5
- return useRuntimeConfig().public.unaNuxtModule.navigation.unprotectedPages.includes(
5
+ return useRuntimeConfig().public.unaxt.navigation.unprotectedPages.includes(
6
6
  page
7
7
  );
8
8
  };
@@ -20,7 +20,7 @@ export const useAuthorization = () => {
20
20
  if (authStore.authData) {
21
21
  authStore.authData.accessToken = token;
22
22
  }
23
- const AUTHORIZATION_API = runtimeConfig.public.unaNuxtModule.apis.authorization;
23
+ const AUTHORIZATION_API = runtimeConfig.public.unaxt.apis.authorization;
24
24
  try {
25
25
  const response = await $fetch(
26
26
  AUTHORIZATION_API.endpoints.getResources,
@@ -9,7 +9,7 @@ import { useAuthorization } from "../composables/useAuthorization.js";
9
9
  export default defineNuxtPlugin(() => {
10
10
  const auth = AsgardeoSPAClient.getInstance();
11
11
  const runtimeConfig = useRuntimeConfig();
12
- const ssoConfig = runtimeConfig.public.unaNuxtModule.sso;
12
+ const ssoConfig = runtimeConfig.public.unaxt.sso;
13
13
  const config = {
14
14
  baseUrl: ssoConfig.baseUrl,
15
15
  clientID: ssoConfig.clientId,
@@ -42,7 +42,7 @@ export declare const useAuthStore: import("pinia").StoreDefinition<"AuthStore",
42
42
  logout: () => Promise<void>;
43
43
  update: (userInfo: IAuthenticatedUser, data: IAuthData) => void;
44
44
  hasResource: (resource: string) => boolean;
45
- hasAuthorizationInResource: ({ resource, authorization, }: IHasAuthorizationInResourceParams) => boolean;
45
+ hasAuthorizationInResource: ({ resource, authorization }: IHasAuthorizationInResourceParams) => boolean;
46
46
  }, "user" | "authData">, Pick<{
47
47
  user: import("vue").Ref<{
48
48
  cedula: string;
@@ -83,7 +83,7 @@ export declare const useAuthStore: import("pinia").StoreDefinition<"AuthStore",
83
83
  logout: () => Promise<void>;
84
84
  update: (userInfo: IAuthenticatedUser, data: IAuthData) => void;
85
85
  hasResource: (resource: string) => boolean;
86
- hasAuthorizationInResource: ({ resource, authorization, }: IHasAuthorizationInResourceParams) => boolean;
86
+ hasAuthorizationInResource: ({ resource, authorization }: IHasAuthorizationInResourceParams) => boolean;
87
87
  }, "isAuthenticated" | "token">, Pick<{
88
88
  user: import("vue").Ref<{
89
89
  cedula: string;
@@ -124,5 +124,5 @@ export declare const useAuthStore: import("pinia").StoreDefinition<"AuthStore",
124
124
  logout: () => Promise<void>;
125
125
  update: (userInfo: IAuthenticatedUser, data: IAuthData) => void;
126
126
  hasResource: (resource: string) => boolean;
127
- hasAuthorizationInResource: ({ resource, authorization, }: IHasAuthorizationInResourceParams) => boolean;
127
+ hasAuthorizationInResource: ({ resource, authorization }: IHasAuthorizationInResourceParams) => boolean;
128
128
  }, "logout" | "update" | "hasResource" | "hasAuthorizationInResource">>;
@@ -25,7 +25,7 @@ const { breadcrumbs } = useBreadcumbs();
25
25
  </BreadcrumbItem>
26
26
  <BreadcrumbSeparator
27
27
  v-if="index < breadcrumbs.length - 1"
28
- class="hidden md:block"
28
+ class="md:block hidden"
29
29
  />
30
30
  </template>
31
31
  </BreadcrumbList>
@@ -26,11 +26,11 @@ const colorMode = useColorMode();
26
26
  <Button variant="outline" size="icon">
27
27
  <Icon
28
28
  name="radix-icons:moon"
29
- class="h-[1.2rem] w-[1.2rem] rotate-0 scale-100 transition-all dark:-rotate-90 dark:scale-0"
29
+ class="h-[1.2rem] w-[1.2rem] scale-100 rotate-0 transition-all dark:scale-0 dark:-rotate-90"
30
30
  />
31
31
  <Icon
32
32
  name="radix-icons:sun"
33
- class="absolute h-[1.2rem] w-[1.2rem] rotate-90 scale-0 transition-all dark:rotate-0 dark:scale-100"
33
+ class="absolute h-[1.2rem] w-[1.2rem] scale-0 rotate-90 transition-all dark:scale-100 dark:rotate-0"
34
34
  />
35
35
  <span class="sr-only">Toggle theme</span>
36
36
  </Button>
@@ -1,5 +1,5 @@
1
1
  <template>
2
2
  <div
3
- class="h-10 w-10 border-4 border-accent border-t-primary rounded-full animate-spin"
3
+ class="h-10 w-10 animate-spin rounded-full border-4 border-accent border-t-primary"
4
4
  />
5
5
  </template>
@@ -1,5 +1,5 @@
1
1
  <template>
2
- <div class="h-screen w-full flex justify-center items-center">
2
+ <div class="flex h-screen w-full items-center justify-center">
3
3
  <div role="status" class="flex justify-center">
4
4
  <Loading />
5
5
  <span class="sr-only">Cargando...</span>
@@ -1,5 +1,5 @@
1
1
  <template>
2
- <div class="h-screen w-full flex justify-center items-center">
2
+ <div class="flex h-screen w-full items-center justify-center">
3
3
  <div role="status" class="flex justify-center">
4
4
  <Empty>
5
5
  <EmptyHeader>
@@ -5,9 +5,9 @@ import type { EAuthorization, EFormMode } from '../enums/index.js';
5
5
  /**
6
6
  * Opciones de configuración para el módulo Nuxt.
7
7
  *
8
- * @interface IUnaNuxtModuleOptions
8
+ * @interface IUnaxtModuleOptions
9
9
  */
10
- export interface IUnaNuxtModuleOptions {
10
+ export interface IUnaxtModuleOptions {
11
11
  /**
12
12
  * Configuración de inicio de sesión único (SSO) con WSO2.
13
13
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "una-nuxt-module",
3
- "version": "2.1.52",
3
+ "version": "3.0.0",
4
4
  "description": "Módulo Nuxt para desarrollo CGI",
5
5
  "repository": {
6
6
  "type": "git",
@@ -44,7 +44,9 @@
44
44
  ],
45
45
  "dependencies": {
46
46
  "@asgardeo/auth-spa": "3.3.2",
47
+ "@nuxt/a11y": "1.0.0-alpha.1",
47
48
  "@nuxt/fonts": "0.12.1",
49
+ "@nuxt/hints": "1.0.0-alpha.6",
48
50
  "@nuxt/icon": "2.1.0",
49
51
  "@nuxt/image": "2.0.0",
50
52
  "@nuxt/kit": "4.2.2",
@@ -86,10 +88,12 @@
86
88
  "@typescript-eslint/parser": "8.49.0",
87
89
  "changelogen": "0.6.2",
88
90
  "eslint": "9.39.1",
91
+ "eslint-plugin-security": "3.0.1",
89
92
  "husky": "9.1.7",
90
93
  "lint-staged": "16.2.7",
91
94
  "nuxt": "4.2.2",
92
95
  "prettier": "3.7.4",
96
+ "prettier-plugin-tailwindcss": "0.7.2",
93
97
  "shadcn-nuxt": "2.4.2",
94
98
  "typescript": "~5.9.2",
95
99
  "unaxt-eslint-config": "0.0.3",
@@ -116,9 +120,10 @@
116
120
  "dev:https": "pnpm run dev:prepare && cd playground && pnpm run dev:https",
117
121
  "dev:build": "nuxi build playground",
118
122
  "dev:prepare": "nuxt-module-build build --stub && nuxt-module-build prepare && nuxi prepare playground",
119
- "release:major": "pnpm run test && pnpm run prepack && changelogen --release --major && pnpm publish && git push --follow-tags",
120
- "release:minor": "pnpm run test && pnpm run prepack && changelogen --release --minor && pnpm publish && git push --follow-tags",
121
- "release:patch": "pnpm run test && pnpm run prepack && changelogen --release --patch && pnpm publish && git push --follow-tags",
123
+ "release:prepare:major": "pnpm run test && pnpm run prepack && changelogen --release --major",
124
+ "release:prepare:minor": "pnpm run test && pnpm run prepack && changelogen --release --minor",
125
+ "release:prepare:patch": "pnpm run test && pnpm run prepack && changelogen --release --patch",
126
+ "release": "pnpm publish && git push --follow-tags",
122
127
  "format": "prettier --write .",
123
128
  "lint": "eslint .",
124
129
  "lint:fix": "eslint . --fix",