@una-ui/nuxt 0.61.0 → 1.0.0-alpha.2

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 (127) hide show
  1. package/dist/module.d.mts +2 -2
  2. package/dist/module.json +1 -1
  3. package/dist/module.mjs +5 -3
  4. package/dist/runtime/components/alert/Alert.vue +94 -0
  5. package/dist/runtime/components/alert/Alert.vue.d.ts +32 -0
  6. package/dist/runtime/components/alert/AlertClose.vue +58 -0
  7. package/dist/runtime/components/alert/AlertClose.vue.d.ts +18 -0
  8. package/dist/runtime/components/alert/AlertDescription.vue +22 -0
  9. package/dist/runtime/components/alert/AlertDescription.vue.d.ts +15 -0
  10. package/dist/runtime/components/alert/AlertTitle.vue +22 -0
  11. package/dist/runtime/components/alert/AlertTitle.vue.d.ts +15 -0
  12. package/dist/runtime/components/alert-dialog/AlertDialog.vue +2 -2
  13. package/dist/runtime/components/alert-dialog/AlertDialog.vue.d.ts +1 -0
  14. package/dist/runtime/components/alert-dialog/AlertDialogCancel.vue +1 -1
  15. package/dist/runtime/components/alert-dialog/AlertDialogContent.vue +2 -2
  16. package/dist/runtime/components/alert-dialog/AlertDialogContent.vue.d.ts +1 -0
  17. package/dist/runtime/components/aspect-ratio/AspectRatio.vue.d.ts +1 -1
  18. package/dist/runtime/components/combobox/Combobox.vue +2 -1
  19. package/dist/runtime/components/combobox/ComboboxTrigger.vue +1 -1
  20. package/dist/runtime/components/elements/Button.vue.d.ts +3 -3
  21. package/dist/runtime/components/elements/Skeleton.vue +1 -1
  22. package/dist/runtime/components/elements/Skeleton.vue.d.ts +3 -1
  23. package/dist/runtime/components/elements/avatar/Avatar.vue +17 -15
  24. package/dist/runtime/components/elements/avatar/Avatar.vue.d.ts +6 -4
  25. package/dist/runtime/components/elements/card/Card.vue +15 -4
  26. package/dist/runtime/components/elements/card/Card.vue.d.ts +6 -4
  27. package/dist/runtime/components/elements/card/CardAction.vue +19 -0
  28. package/dist/runtime/components/elements/card/CardAction.vue.d.ts +13 -0
  29. package/dist/runtime/components/elements/card/CardContent.vue +1 -0
  30. package/dist/runtime/components/elements/card/CardDescription.vue +1 -0
  31. package/dist/runtime/components/elements/card/CardFooter.vue +1 -0
  32. package/dist/runtime/components/elements/card/CardHeader.vue +1 -0
  33. package/dist/runtime/components/elements/card/CardTitle.vue +1 -0
  34. package/dist/runtime/components/elements/dialog/Dialog.vue +73 -62
  35. package/dist/runtime/components/elements/dialog/Dialog.vue.d.ts +12 -9
  36. package/dist/runtime/components/elements/dialog/DialogClose.vue +1 -0
  37. package/dist/runtime/components/elements/dialog/DialogClose.vue.d.ts +1 -1
  38. package/dist/runtime/components/elements/dialog/DialogContent.vue +3 -2
  39. package/dist/runtime/components/elements/dialog/DialogContent.vue.d.ts +1 -0
  40. package/dist/runtime/components/elements/dialog/DialogDescription.vue +1 -0
  41. package/dist/runtime/components/elements/dialog/DialogFooter.vue +1 -0
  42. package/dist/runtime/components/elements/dialog/DialogHeader.vue +1 -0
  43. package/dist/runtime/components/elements/dialog/DialogOverlay.vue +1 -0
  44. package/dist/runtime/components/elements/dialog/DialogScrollContent.vue +2 -2
  45. package/dist/runtime/components/elements/dialog/DialogScrollContent.vue.d.ts +1 -0
  46. package/dist/runtime/components/elements/dialog/DialogTitle.vue +1 -0
  47. package/dist/runtime/components/elements/dialog/DialogTrigger.vue +16 -0
  48. package/dist/runtime/components/elements/dialog/DialogTrigger.vue.d.ts +13 -0
  49. package/dist/runtime/components/elements/dropdown-menu/DropdownMenuItem.vue.d.ts +1 -1
  50. package/dist/runtime/components/elements/pagination/PaginationFirst.vue.d.ts +1 -1
  51. package/dist/runtime/components/elements/pagination/PaginationLast.vue.d.ts +1 -1
  52. package/dist/runtime/components/elements/pagination/PaginationNext.vue.d.ts +1 -1
  53. package/dist/runtime/components/elements/pagination/PaginationPrev.vue.d.ts +1 -1
  54. package/dist/runtime/components/elements/tabs/TabsTrigger.vue +2 -2
  55. package/dist/runtime/components/elements/tabs/TabsTrigger.vue.d.ts +1 -0
  56. package/dist/runtime/components/forms/Checkbox.vue +2 -2
  57. package/dist/runtime/components/forms/Checkbox.vue.d.ts +2 -0
  58. package/dist/runtime/components/forms/FormGroup.vue +1 -1
  59. package/dist/runtime/components/forms/Input.vue.d.ts +6 -6
  60. package/dist/runtime/components/forms/Slider.vue +12 -11
  61. package/dist/runtime/components/forms/Slider.vue.d.ts +1 -0
  62. package/dist/runtime/components/forms/form/FormField.vue +1 -1
  63. package/dist/runtime/components/forms/radio-group/RadioGroupItem.vue.d.ts +1 -1
  64. package/dist/runtime/components/forms/select/SelectTrigger.vue +1 -1
  65. package/dist/runtime/components/misc/ThemeSwitcher.vue +101 -32
  66. package/dist/runtime/components/navigation/breadcrumb/BreadcrumbEllipsis.vue.d.ts +1 -1
  67. package/dist/runtime/components/navigation/breadcrumb/BreadcrumbPage.vue +1 -1
  68. package/dist/runtime/components/navigation/breadcrumb/BreadcrumbSeparator.vue.d.ts +1 -1
  69. package/dist/runtime/components/navigation-menu/NavigationMenuLink.vue.d.ts +1 -1
  70. package/dist/runtime/components/navigation-menu/NavigationMenuTrigger.vue.d.ts +1 -1
  71. package/dist/runtime/components/number-field/NumberField.vue.d.ts +1 -1
  72. package/dist/runtime/components/number-field/NumberFieldDecrement.vue.d.ts +1 -1
  73. package/dist/runtime/components/number-field/NumberFieldIncrement.vue.d.ts +1 -1
  74. package/dist/runtime/components/overlays/toast/ToastAction.vue.d.ts +1 -1
  75. package/dist/runtime/components/scroll-area/ScrollArea.vue.d.ts +1 -1
  76. package/dist/runtime/components/sheet/Sheet.vue +11 -5
  77. package/dist/runtime/components/sheet/Sheet.vue.d.ts +7 -4
  78. package/dist/runtime/components/sheet/SheetClose.vue +1 -0
  79. package/dist/runtime/components/sheet/SheetContent.vue +6 -5
  80. package/dist/runtime/components/sheet/SheetContent.vue.d.ts +4 -2
  81. package/dist/runtime/components/sheet/SheetDescription.vue +1 -0
  82. package/dist/runtime/components/sheet/SheetFooter.vue +1 -0
  83. package/dist/runtime/components/sheet/SheetHeader.vue +1 -0
  84. package/dist/runtime/components/sheet/SheetOverlay.vue +23 -0
  85. package/dist/runtime/components/sheet/SheetOverlay.vue.d.ts +12 -0
  86. package/dist/runtime/components/sheet/SheetTitle.vue +1 -0
  87. package/dist/runtime/components/sheet/SheetTrigger.vue +4 -1
  88. package/dist/runtime/components/sidebar/Sidebar.vue +8 -3
  89. package/dist/runtime/components/sidebar/SidebarContent.vue +1 -0
  90. package/dist/runtime/components/sidebar/SidebarFooter.vue +1 -0
  91. package/dist/runtime/components/sidebar/SidebarGroup.vue +1 -0
  92. package/dist/runtime/components/sidebar/SidebarGroupAction.vue +1 -0
  93. package/dist/runtime/components/sidebar/SidebarGroupContent.vue +1 -0
  94. package/dist/runtime/components/sidebar/SidebarGroupLabel.vue +1 -0
  95. package/dist/runtime/components/sidebar/SidebarHeader.vue +1 -0
  96. package/dist/runtime/components/sidebar/SidebarInput.vue +1 -0
  97. package/dist/runtime/components/sidebar/SidebarInset.vue +1 -0
  98. package/dist/runtime/components/sidebar/SidebarMenu.vue +1 -0
  99. package/dist/runtime/components/sidebar/SidebarMenuAction.vue +1 -0
  100. package/dist/runtime/components/sidebar/SidebarMenuBadge.vue +1 -0
  101. package/dist/runtime/components/sidebar/SidebarMenuButton.vue.d.ts +1 -1
  102. package/dist/runtime/components/sidebar/SidebarMenuButtonChild.vue +1 -0
  103. package/dist/runtime/components/sidebar/SidebarMenuButtonChild.vue.d.ts +1 -1
  104. package/dist/runtime/components/sidebar/SidebarMenuItem.vue +1 -0
  105. package/dist/runtime/components/sidebar/SidebarMenuSkeleton.vue +1 -0
  106. package/dist/runtime/components/sidebar/SidebarMenuSub.vue +1 -0
  107. package/dist/runtime/components/sidebar/SidebarMenuSubButton.vue +3 -1
  108. package/dist/runtime/components/sidebar/SidebarMenuSubButton.vue.d.ts +1 -1
  109. package/dist/runtime/components/sidebar/SidebarMenuSubItem.vue +2 -0
  110. package/dist/runtime/components/sidebar/SidebarProvider.vue +1 -0
  111. package/dist/runtime/components/sidebar/SidebarRail.vue +1 -0
  112. package/dist/runtime/components/sidebar/SidebarSeparator.vue +1 -0
  113. package/dist/runtime/components/sidebar/SidebarTrigger.vue +1 -0
  114. package/dist/runtime/composables/useUnaSettings.js +22 -9
  115. package/dist/runtime/composables/useUnaThemes.d.ts +5 -5
  116. package/dist/runtime/composables/useUnaThemes.js +48 -98
  117. package/dist/runtime/plugins/theme.client.js +13 -0
  118. package/dist/runtime/plugins/theme.server.js +12 -0
  119. package/dist/runtime/types/alert-dialog.d.ts +2 -2
  120. package/dist/runtime/types/alert.d.ts +30 -15
  121. package/dist/runtime/types/card.d.ts +5 -0
  122. package/dist/runtime/types/dialog.d.ts +8 -3
  123. package/dist/runtime/types/index.d.ts +10 -2
  124. package/dist/runtime/types/sheet.d.ts +2 -2
  125. package/package.json +9 -9
  126. package/dist/runtime/components/elements/Alert.vue +0 -127
  127. package/dist/runtime/components/elements/Alert.vue.d.ts +0 -22
@@ -0,0 +1,13 @@
1
+ import type { NCardActionProps } from '../../../types/card.js';
2
+ declare var __VLS_1: {};
3
+ type __VLS_Slots = {} & {
4
+ default?: (props: typeof __VLS_1) => any;
5
+ };
6
+ declare const __VLS_component: import("vue").DefineComponent<NCardActionProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<NCardActionProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
7
+ declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
8
+ export default _default;
9
+ type __VLS_WithSlots<T, S> = T & {
10
+ new (): {
11
+ $slots: S;
12
+ };
13
+ };
@@ -8,6 +8,7 @@ const props = defineProps({
8
8
 
9
9
  <template>
10
10
  <div
11
+ data-slot="card-content"
11
12
  :class="cn(
12
13
  'card-content',
13
14
  props.una?.cardContent,
@@ -8,6 +8,7 @@ const props = defineProps({
8
8
 
9
9
  <template>
10
10
  <p
11
+ data-slot="card-description"
11
12
  :class="cn(
12
13
  'card-description',
13
14
  props.una?.cardDescription,
@@ -8,6 +8,7 @@ const props = defineProps({
8
8
 
9
9
  <template>
10
10
  <div
11
+ data-slot="card-footer"
11
12
  :class="cn(
12
13
  'card-footer',
13
14
  props.una?.cardFooter,
@@ -8,6 +8,7 @@ const props = defineProps({
8
8
 
9
9
  <template>
10
10
  <div
11
+ data-slot="card-header"
11
12
  :class="cn(
12
13
  'card-header',
13
14
  props.una?.cardHeader,
@@ -8,6 +8,7 @@ const props = defineProps({
8
8
 
9
9
  <template>
10
10
  <h3
11
+ data-slot="card-title"
11
12
  :class="
12
13
  cn(
13
14
  'card-title',
@@ -1,6 +1,6 @@
1
1
  <script setup>
2
2
  import { reactivePick } from "@vueuse/core";
3
- import { DialogRoot, DialogTrigger, useForwardPropsEmits, VisuallyHidden } from "reka-ui";
3
+ import { DialogRoot, useForwardPropsEmits, VisuallyHidden } from "reka-ui";
4
4
  import { computed } from "vue";
5
5
  import { randomId } from "../../../utils";
6
6
  import DialogContent from "./DialogContent.vue";
@@ -9,6 +9,7 @@ import DialogFooter from "./DialogFooter.vue";
9
9
  import DialogHeader from "./DialogHeader.vue";
10
10
  import DialogScrollContent from "./DialogScrollContent.vue";
11
11
  import DialogTitle from "./DialogTitle.vue";
12
+ import DialogTrigger from "./DialogTrigger.vue";
12
13
  defineOptions({
13
14
  inheritAttrs: false
14
15
  });
@@ -21,11 +22,12 @@ const props = defineProps({
21
22
  _dialogHeader: { type: Object, required: false },
22
23
  _dialogFooter: { type: Object, required: false },
23
24
  _dialogContent: { type: Object, required: false },
25
+ _dialogTrigger: { type: Object, required: false },
24
26
  una: { type: Object, required: false },
25
27
  open: { type: Boolean, required: false },
26
28
  defaultOpen: { type: Boolean, required: false },
27
29
  modal: { type: Boolean, required: false },
28
- preventClose: { type: Boolean, required: false },
30
+ dismissible: { type: Boolean, required: false, default: true },
29
31
  showClose: { type: Boolean, required: false, default: true },
30
32
  overlay: { type: Boolean, required: false, default: true },
31
33
  _dialogClose: { type: Object, required: false },
@@ -45,71 +47,80 @@ const rootPropsEmits = useForwardPropsEmits(rootProps, emits);
45
47
  </script>
46
48
 
47
49
  <template>
48
- <DialogRoot v-slot="{ open }" v-bind="rootPropsEmits">
49
- <DialogTrigger as-child>
50
- <slot name="trigger" :open />
51
- </DialogTrigger>
50
+ <DialogRoot
51
+ v-slot="{ open }"
52
+ data-slot="dialog"
53
+ v-bind="rootPropsEmits"
54
+ >
55
+ <slot>
56
+ <DialogTrigger
57
+ v-bind="_dialogTrigger"
58
+ as-child
59
+ >
60
+ <slot name="trigger" :open />
61
+ </DialogTrigger>
52
62
 
53
- <component
54
- :is="!scrollable ? DialogContent : DialogScrollContent"
55
- v-bind="_dialogContent"
56
- :_dialog-overlay
57
- :_dialog-close
58
- :scrollable
59
- :show-close
60
- :prevent-close
61
- :una
62
- >
63
- <VisuallyHidden v-if="title === DEFAULT_TITLE || !!$slots.title || (description === DEFAULT_DESCRIPTION || !!$slots.description)">
64
- <DialogTitle v-if="title === DEFAULT_TITLE || !!$slots.title">
65
- {{ title }}
66
- </DialogTitle>
63
+ <component
64
+ :is="!scrollable ? DialogContent : DialogScrollContent"
65
+ v-bind="_dialogContent"
66
+ :_dialog-overlay
67
+ :_dialog-close
68
+ :scrollable
69
+ :show-close
70
+ :dismissible
71
+ :una
72
+ >
73
+ <VisuallyHidden v-if="title === DEFAULT_TITLE || !!$slots.title || (description === DEFAULT_DESCRIPTION || !!$slots.description)">
74
+ <DialogTitle v-if="title === DEFAULT_TITLE || !!$slots.title">
75
+ {{ title }}
76
+ </DialogTitle>
67
77
 
68
- <DialogDescription v-if="description === DEFAULT_DESCRIPTION || !!$slots.description">
69
- {{ description }}
70
- </DialogDescription>
71
- </VisuallyHidden>
78
+ <DialogDescription v-if="description === DEFAULT_DESCRIPTION || !!$slots.description">
79
+ {{ description }}
80
+ </DialogDescription>
81
+ </VisuallyHidden>
72
82
 
73
- <slot name="content">
74
- <DialogHeader
75
- v-if="!!$slots.header || (title !== DEFAULT_TITLE || !!$slots.title) || (description !== DEFAULT_DESCRIPTION || !!$slots.description)"
76
- v-bind="_dialogHeader"
77
- :una
78
- >
79
- <slot name="header">
80
- <DialogTitle
81
- v-if="$slots.title || title !== DEFAULT_TITLE"
82
- v-bind="_dialogTitle"
83
- :una
84
- >
85
- <slot name="title">
86
- {{ title }}
87
- </slot>
88
- </DialogTitle>
83
+ <slot name="content">
84
+ <DialogHeader
85
+ v-if="!!$slots.header || (title !== DEFAULT_TITLE || !!$slots.title) || (description !== DEFAULT_DESCRIPTION || !!$slots.description)"
86
+ v-bind="_dialogHeader"
87
+ :una
88
+ >
89
+ <slot name="header">
90
+ <DialogTitle
91
+ v-if="$slots.title || title !== DEFAULT_TITLE"
92
+ v-bind="_dialogTitle"
93
+ :una
94
+ >
95
+ <slot name="title">
96
+ {{ title }}
97
+ </slot>
98
+ </DialogTitle>
89
99
 
90
- <DialogDescription
91
- v-if="$slots.description || description !== DEFAULT_DESCRIPTION"
92
- v-bind="_dialogDescription"
93
- :una
94
- >
95
- <slot name="description">
96
- {{ description }}
97
- </slot>
98
- </DialogDescription>
99
- </slot>
100
- </DialogHeader>
100
+ <DialogDescription
101
+ v-if="$slots.description || description !== DEFAULT_DESCRIPTION"
102
+ v-bind="_dialogDescription"
103
+ :una
104
+ >
105
+ <slot name="description">
106
+ {{ description }}
107
+ </slot>
108
+ </DialogDescription>
109
+ </slot>
110
+ </DialogHeader>
101
111
 
102
- <!-- body -->
103
- <slot />
112
+ <!-- body -->
113
+ <slot name="body" />
104
114
 
105
- <DialogFooter
106
- v-if="$slots.footer"
107
- v-bind="_dialogFooter"
108
- :una
109
- >
110
- <slot name="footer" />
111
- </DialogFooter>
112
- </slot>
113
- </component>
115
+ <DialogFooter
116
+ v-if="$slots.footer"
117
+ v-bind="_dialogFooter"
118
+ :una
119
+ >
120
+ <slot name="footer" />
121
+ </DialogFooter>
122
+ </slot>
123
+ </component>
124
+ </slot>
114
125
  </DialogRoot>
115
126
  </template>
@@ -1,27 +1,30 @@
1
1
  import type { NDialogProps } from '../../../types/index.js';
2
- declare var __VLS_10: {
2
+ declare var __VLS_6: {}, __VLS_11: {
3
3
  open: boolean;
4
- }, __VLS_26: {}, __VLS_31: {}, __VLS_36: {}, __VLS_41: {}, __VLS_43: {}, __VLS_48: {};
4
+ }, __VLS_27: {}, __VLS_32: {}, __VLS_37: {}, __VLS_42: {}, __VLS_44: {}, __VLS_49: {};
5
5
  type __VLS_Slots = {} & {
6
- trigger?: (props: typeof __VLS_10) => any;
6
+ default?: (props: typeof __VLS_6) => any;
7
7
  } & {
8
- content?: (props: typeof __VLS_26) => any;
8
+ trigger?: (props: typeof __VLS_11) => any;
9
9
  } & {
10
- header?: (props: typeof __VLS_31) => any;
10
+ content?: (props: typeof __VLS_27) => any;
11
11
  } & {
12
- title?: (props: typeof __VLS_36) => any;
12
+ header?: (props: typeof __VLS_32) => any;
13
13
  } & {
14
- description?: (props: typeof __VLS_41) => any;
14
+ title?: (props: typeof __VLS_37) => any;
15
15
  } & {
16
- default?: (props: typeof __VLS_43) => any;
16
+ description?: (props: typeof __VLS_42) => any;
17
17
  } & {
18
- footer?: (props: typeof __VLS_48) => any;
18
+ body?: (props: typeof __VLS_44) => any;
19
+ } & {
20
+ footer?: (props: typeof __VLS_49) => any;
19
21
  };
20
22
  declare const __VLS_component: import("vue").DefineComponent<NDialogProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
21
23
  "update:open": (value: boolean) => any;
22
24
  }, string, import("vue").PublicProps, Readonly<NDialogProps> & Readonly<{
23
25
  "onUpdate:open"?: ((value: boolean) => any) | undefined;
24
26
  }>, {
27
+ dismissible: boolean;
25
28
  overlay: boolean;
26
29
  showClose: boolean;
27
30
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
@@ -38,6 +38,7 @@ const props = defineProps({
38
38
 
39
39
  <template>
40
40
  <DialogClose
41
+ data-slot="dialog-close"
41
42
  as-child
42
43
  >
43
44
  <slot>
@@ -4,8 +4,8 @@ type __VLS_Slots = {} & {
4
4
  default?: (props: typeof __VLS_6) => any;
5
5
  };
6
6
  declare const __VLS_component: import("vue").DefineComponent<NDialogCloseProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<NDialogCloseProps> & Readonly<{}>, {
7
- label: string;
8
7
  icon: boolean;
8
+ label: string;
9
9
  btn: string;
10
10
  square: import("vue").HTMLAttributes["class"];
11
11
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
@@ -13,7 +13,7 @@ defineOptions({
13
13
  inheritAttrs: false
14
14
  });
15
15
  const props = defineProps({
16
- preventClose: { type: Boolean, required: false },
16
+ dismissible: { type: Boolean, required: false, default: true },
17
17
  showClose: { type: Boolean, required: false, default: true },
18
18
  overlay: { type: Boolean, required: false, default: true },
19
19
  _dialogClose: { type: Object, required: false },
@@ -30,7 +30,7 @@ const emits = defineEmits(["escapeKeyDown", "pointerDownOutside", "focusOutside"
30
30
  const delegatedProps = reactiveOmit(props, ["class", "una", "_dialogOverlay", "_dialogClose"]);
31
31
  const forwarded = useForwardPropsEmits(delegatedProps, emits);
32
32
  const contentEvents = computed(() => {
33
- if (props.preventClose) {
33
+ if (!props.dismissible) {
34
34
  return {
35
35
  pointerDownOutside: (e) => e.preventDefault(),
36
36
  interactOutside: (e) => e.preventDefault(),
@@ -53,6 +53,7 @@ const contentEvents = computed(() => {
53
53
  />
54
54
 
55
55
  <DialogContent
56
+ data-slot="dialog-content"
56
57
  v-bind="{ ...forwarded, ...$attrs }"
57
58
  :class="cn(
58
59
  'data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-48% data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-48%',
@@ -18,6 +18,7 @@ declare const __VLS_component: import("vue").DefineComponent<NDialogContentProps
18
18
  onOpenAutoFocus?: ((event: Event) => any) | undefined;
19
19
  onCloseAutoFocus?: ((event: Event) => any) | undefined;
20
20
  }>, {
21
+ dismissible: boolean;
21
22
  overlay: boolean;
22
23
  showClose: boolean;
23
24
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
@@ -14,6 +14,7 @@ const forwardedProps = useForwardProps(delegatedProps);
14
14
 
15
15
  <template>
16
16
  <DialogDescription
17
+ data-slot="dialog-description"
17
18
  v-bind="forwardedProps"
18
19
  :class="cn(
19
20
  'dialog-description data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-48% data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-48%',
@@ -8,6 +8,7 @@ const props = defineProps({
8
8
 
9
9
  <template>
10
10
  <div
11
+ data-slot="dialog-footer"
11
12
  :class="cn(
12
13
  'dialog-footer',
13
14
  props.una?.dialogFooter,
@@ -8,6 +8,7 @@ const props = defineProps({
8
8
 
9
9
  <template>
10
10
  <div
11
+ data-slot="dialog-header"
11
12
  :class="cn(
12
13
  'dialog-header',
13
14
  props.una?.dialogHeader,
@@ -10,6 +10,7 @@ const props = defineProps({
10
10
 
11
11
  <template>
12
12
  <DialogOverlay
13
+ data-slot="dialog-overlay"
13
14
  :class="cn(
14
15
  'data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0',
15
16
  !props.scrollable ? 'dialog-overlay' : 'dialog-scroll-overlay',
@@ -13,7 +13,7 @@ defineOptions({
13
13
  inheritAttrs: false
14
14
  });
15
15
  const props = defineProps({
16
- preventClose: { type: Boolean, required: false },
16
+ dismissible: { type: Boolean, required: false, default: true },
17
17
  showClose: { type: Boolean, required: false, default: true },
18
18
  overlay: { type: Boolean, required: false, default: true },
19
19
  _dialogClose: { type: Object, required: false },
@@ -29,7 +29,7 @@ const props = defineProps({
29
29
  const emits = defineEmits(["escapeKeyDown", "pointerDownOutside", "focusOutside", "interactOutside", "openAutoFocus", "closeAutoFocus"]);
30
30
  const delegatedProps = reactiveOmit(props, ["class", "_dialogOverlay", "_dialogClose"]);
31
31
  const contentEvents = computed(() => {
32
- if (props.preventClose) {
32
+ if (!props.dismissible) {
33
33
  return {
34
34
  pointerDownOutside: (e) => e.preventDefault(),
35
35
  interactOutside: (e) => e.preventDefault(),
@@ -18,6 +18,7 @@ declare const __VLS_component: import("vue").DefineComponent<NDialogContentProps
18
18
  onOpenAutoFocus?: ((event: Event) => any) | undefined;
19
19
  onCloseAutoFocus?: ((event: Event) => any) | undefined;
20
20
  }>, {
21
+ dismissible: boolean;
21
22
  overlay: boolean;
22
23
  showClose: boolean;
23
24
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
@@ -14,6 +14,7 @@ const forwardedProps = useForwardProps(delegatedProps);
14
14
 
15
15
  <template>
16
16
  <DialogTitle
17
+ data-slot="dialog-title"
17
18
  v-bind="forwardedProps"
18
19
  :class="
19
20
  cn(
@@ -0,0 +1,16 @@
1
+ <script setup>
2
+ import { DialogTrigger } from "reka-ui";
3
+ const props = defineProps({
4
+ asChild: { type: Boolean, required: false },
5
+ as: { type: null, required: false }
6
+ });
7
+ </script>
8
+
9
+ <template>
10
+ <DialogTrigger
11
+ data-slot="dialog-trigger"
12
+ v-bind="props"
13
+ >
14
+ <slot />
15
+ </DialogTrigger>
16
+ </template>
@@ -0,0 +1,13 @@
1
+ import type { DialogTriggerProps } from 'reka-ui';
2
+ declare var __VLS_6: {};
3
+ type __VLS_Slots = {} & {
4
+ default?: (props: typeof __VLS_6) => any;
5
+ };
6
+ declare const __VLS_component: import("vue").DefineComponent<DialogTriggerProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<DialogTriggerProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
7
+ declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
8
+ export default _default;
9
+ type __VLS_WithSlots<T, S> = T & {
10
+ new (): {
11
+ $slots: S;
12
+ };
13
+ };
@@ -1,8 +1,8 @@
1
1
  import type { NDropdownMenuItemProps } from '../../../types/index.js';
2
2
  type __VLS_Slots = any;
3
3
  declare const __VLS_component: import("vue").DefineComponent<NDropdownMenuItemProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<NDropdownMenuItemProps> & Readonly<{}>, {
4
- rounded: import("vue").HTMLAttributes["class"];
5
4
  size: string;
5
+ rounded: import("vue").HTMLAttributes["class"];
6
6
  dropdownMenuItem: import("vue").HTMLAttributes["class"];
7
7
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
8
8
  declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
@@ -4,8 +4,8 @@ type __VLS_Slots = {} & {
4
4
  default?: (props: typeof __VLS_6) => any;
5
5
  };
6
6
  declare const __VLS_component: import("vue").DefineComponent<NPaginationFirstProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<NPaginationFirstProps> & Readonly<{}>, {
7
- label: string;
8
7
  icon: boolean;
8
+ label: string;
9
9
  square: import("vue").HTMLAttributes["class"];
10
10
  paginationUnselected: string;
11
11
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
@@ -4,8 +4,8 @@ type __VLS_Slots = {} & {
4
4
  default?: (props: typeof __VLS_6) => any;
5
5
  };
6
6
  declare const __VLS_component: import("vue").DefineComponent<NPaginationLastProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<NPaginationLastProps> & Readonly<{}>, {
7
- label: string;
8
7
  icon: boolean;
8
+ label: string;
9
9
  square: import("vue").HTMLAttributes["class"];
10
10
  paginationUnselected: string;
11
11
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
@@ -4,8 +4,8 @@ type __VLS_Slots = {} & {
4
4
  default?: (props: typeof __VLS_6) => any;
5
5
  };
6
6
  declare const __VLS_component: import("vue").DefineComponent<NPaginationNextProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<NPaginationNextProps> & Readonly<{}>, {
7
- label: string;
8
7
  icon: boolean;
8
+ label: string;
9
9
  square: import("vue").HTMLAttributes["class"];
10
10
  paginationUnselected: string;
11
11
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
@@ -4,8 +4,8 @@ type __VLS_Slots = {} & {
4
4
  default?: (props: typeof __VLS_6) => any;
5
5
  };
6
6
  declare const __VLS_component: import("vue").DefineComponent<NPaginationPrevProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<NPaginationPrevProps> & Readonly<{}>, {
7
- label: string;
8
7
  icon: boolean;
8
+ label: string;
9
9
  square: import("vue").HTMLAttributes["class"];
10
10
  paginationUnselected: string;
11
11
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
@@ -31,8 +31,8 @@ const props = defineProps({
31
31
  dropdownMenu: { type: String, required: false },
32
32
  toggleOn: { type: String, required: false },
33
33
  toggleOff: { type: String, required: false },
34
- tabsActive: { type: String, required: false, default: "soft-black" },
35
- tabsInactive: { type: String, required: false },
34
+ tabsActive: { type: String, required: false, default: "outline-gray" },
35
+ tabsInactive: { type: String, required: false, default: "text-muted" },
36
36
  navigationMenu: { type: String, required: false },
37
37
  navigationMenuLink: { type: String, required: false },
38
38
  ariaLabel: { type: String, required: false }
@@ -6,6 +6,7 @@ type __VLS_Slots = {} & {
6
6
  declare const __VLS_component: import("vue").DefineComponent<NTabsTriggerProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<NTabsTriggerProps> & Readonly<{}>, {
7
7
  size: string;
8
8
  tabsActive: string;
9
+ tabsInactive: string;
9
10
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
10
11
  declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
11
12
  export default _default;
@@ -9,9 +9,9 @@ defineOptions({
9
9
  inheritAttrs: false
10
10
  });
11
11
  const props = defineProps({
12
- checkbox: { type: String, required: false },
12
+ checkbox: { type: String, required: false, default: "primary" },
13
13
  label: { type: String, required: false },
14
- size: { type: String, required: false },
14
+ size: { type: String, required: false, default: "md" },
15
15
  reverse: { type: Boolean, required: false },
16
16
  forceMount: { type: Boolean, required: false, default: true },
17
17
  _checkboxIndicator: { type: Object, required: false },
@@ -10,7 +10,9 @@ declare const __VLS_component: import("vue").DefineComponent<NCheckboxProps, {},
10
10
  }, string, import("vue").PublicProps, Readonly<NCheckboxProps> & Readonly<{
11
11
  "onUpdate:modelValue"?: ((value: boolean | "indeterminate") => any) | undefined;
12
12
  }>, {
13
+ size: string;
13
14
  forceMount: boolean;
15
+ checkbox: string;
14
16
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
15
17
  declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
16
18
  export default _default;
@@ -25,7 +25,7 @@ const statusClassVariants = computed(() => {
25
25
  success: "text-success",
26
26
  warning: "text-warning",
27
27
  error: "text-error",
28
- default: "text-muted"
28
+ default: "text-muted-foreground"
29
29
  };
30
30
  return text[props.status ?? "default"];
31
31
  });
@@ -13,22 +13,22 @@ declare const __VLS_component: import("vue").DefineComponent<__VLS_PublicProps,
13
13
  select: () => void | undefined;
14
14
  inputRef: import("vue").Ref<HTMLTextAreaElement | undefined, HTMLTextAreaElement | undefined>;
15
15
  }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
16
- blur: (...args: any[]) => void;
17
- change: (...args: any[]) => void;
18
16
  leading: (...args: any[]) => void;
19
17
  trailing: (...args: any[]) => void;
18
+ blur: (...args: any[]) => void;
19
+ change: (...args: any[]) => void;
20
20
  "update:modelValue": (...args: any[]) => void;
21
21
  }, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
22
- onBlur?: ((...args: any[]) => any) | undefined;
23
- onChange?: ((...args: any[]) => any) | undefined;
24
22
  onLeading?: ((...args: any[]) => any) | undefined;
25
23
  onTrailing?: ((...args: any[]) => any) | undefined;
24
+ onBlur?: ((...args: any[]) => any) | undefined;
25
+ onChange?: ((...args: any[]) => any) | undefined;
26
26
  "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
27
27
  }>, {
28
- size: string;
29
- resize: string | null;
30
28
  type: HTMLInputElement["type"] | "textarea";
29
+ size: string;
31
30
  autofocusDelay: number;
31
+ resize: string | null;
32
32
  rows: number;
33
33
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
34
34
  declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;