@una-ui/nuxt 0.56.5 → 0.58.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 (165) hide show
  1. package/dist/module.json +1 -1
  2. package/dist/module.mjs +1 -1
  3. package/dist/runtime/components/alert-dialog/AlertDialogAction.vue +1 -1
  4. package/dist/runtime/components/alert-dialog/AlertDialogCancel.vue +1 -1
  5. package/dist/runtime/components/alert-dialog/AlertDialogContent.vue +1 -1
  6. package/dist/runtime/components/alert-dialog/AlertDialogDescription.vue +1 -1
  7. package/dist/runtime/components/alert-dialog/AlertDialogOverlay.vue +1 -1
  8. package/dist/runtime/components/alert-dialog/AlertDialogTitle.vue +1 -1
  9. package/dist/runtime/components/alert-dialog/AlertDialogTrigger.vue +1 -1
  10. package/dist/runtime/components/aspect-ratio/AspectRatio.vue +1 -1
  11. package/dist/runtime/components/aspect-ratio/AspectRatio.vue.d.ts +1 -1
  12. package/dist/runtime/components/combobox/Combobox.vue +1 -1
  13. package/dist/runtime/components/combobox/ComboboxAnchor.vue +3 -6
  14. package/dist/runtime/components/combobox/ComboboxEmpty.vue +3 -6
  15. package/dist/runtime/components/combobox/ComboboxGroup.vue +3 -6
  16. package/dist/runtime/components/combobox/ComboboxInput.vue +3 -1
  17. package/dist/runtime/components/combobox/ComboboxItem.vue +3 -6
  18. package/dist/runtime/components/combobox/ComboboxItemIndicator.vue +3 -6
  19. package/dist/runtime/components/combobox/ComboboxLabel.vue +1 -1
  20. package/dist/runtime/components/combobox/ComboboxList.vue +1 -1
  21. package/dist/runtime/components/combobox/ComboboxSeparator.vue +3 -6
  22. package/dist/runtime/components/combobox/ComboboxTrigger.vue +1 -1
  23. package/dist/runtime/components/combobox/ComboboxViewport.vue +3 -6
  24. package/dist/runtime/components/data/table/TableBody.vue +1 -1
  25. package/dist/runtime/components/data/table/TableBody.vue.d.ts +22 -3
  26. package/dist/runtime/components/data/table/TableCaption.vue +1 -1
  27. package/dist/runtime/components/data/table/TableCaption.vue.d.ts +22 -3
  28. package/dist/runtime/components/data/table/TableCell.vue +1 -1
  29. package/dist/runtime/components/data/table/TableCell.vue.d.ts +22 -3
  30. package/dist/runtime/components/data/table/TableEmpty.vue +2 -5
  31. package/dist/runtime/components/data/table/TableEmpty.vue.d.ts +21 -2
  32. package/dist/runtime/components/data/table/TableFooter.vue +1 -1
  33. package/dist/runtime/components/data/table/TableFooter.vue.d.ts +22 -3
  34. package/dist/runtime/components/data/table/TableHead.vue +1 -1
  35. package/dist/runtime/components/data/table/TableHead.vue.d.ts +22 -3
  36. package/dist/runtime/components/data/table/TableHeader.vue +1 -1
  37. package/dist/runtime/components/data/table/TableHeader.vue.d.ts +22 -3
  38. package/dist/runtime/components/data/table/TableLoading.vue +2 -5
  39. package/dist/runtime/components/data/table/TableLoading.vue.d.ts +22 -3
  40. package/dist/runtime/components/data/table/TableRow.vue +1 -1
  41. package/dist/runtime/components/data/table/TableRow.vue.d.ts +22 -3
  42. package/dist/runtime/components/drawer/DrawerClose.vue +1 -1
  43. package/dist/runtime/components/drawer/DrawerContent.vue +1 -1
  44. package/dist/runtime/components/drawer/DrawerDescription.vue +3 -6
  45. package/dist/runtime/components/drawer/DrawerOverlay.vue +3 -6
  46. package/dist/runtime/components/drawer/DrawerTitle.vue +3 -6
  47. package/dist/runtime/components/drawer/DrawerTrigger.vue +1 -1
  48. package/dist/runtime/components/elements/AvatarGroup.vue +3 -2
  49. package/dist/runtime/components/elements/Button.vue.d.ts +3 -3
  50. package/dist/runtime/components/elements/Label.vue +1 -1
  51. package/dist/runtime/components/elements/Progress.vue +4 -6
  52. package/dist/runtime/components/elements/Separator.vue +5 -8
  53. package/dist/runtime/components/elements/Toggle.vue +3 -6
  54. package/dist/runtime/components/elements/avatar/Avatar.vue +3 -2
  55. package/dist/runtime/components/elements/avatar/Avatar.vue.d.ts +2 -2
  56. package/dist/runtime/components/elements/avatar/AvatarFallback.vue +1 -1
  57. package/dist/runtime/components/elements/avatar/AvatarImage.vue +2 -1
  58. package/dist/runtime/components/elements/card/Card.vue +2 -5
  59. package/dist/runtime/components/elements/collapsible/Collapsible.vue +1 -1
  60. package/dist/runtime/components/elements/collapsible/CollapsibleContent.vue +1 -1
  61. package/dist/runtime/components/elements/collapsible/CollapsibleTrigger.vue +1 -1
  62. package/dist/runtime/components/elements/dialog/DialogClose.vue +1 -1
  63. package/dist/runtime/components/elements/dialog/DialogClose.vue.d.ts +1 -1
  64. package/dist/runtime/components/elements/dialog/DialogContent.vue +1 -1
  65. package/dist/runtime/components/elements/dialog/DialogDescription.vue +1 -1
  66. package/dist/runtime/components/elements/dialog/DialogScrollContent.vue +1 -1
  67. package/dist/runtime/components/elements/dialog/DialogTitle.vue +1 -1
  68. package/dist/runtime/components/elements/dropdown-menu/DropdownMenu.vue +1 -1
  69. package/dist/runtime/components/elements/dropdown-menu/DropdownMenuContent.vue +3 -6
  70. package/dist/runtime/components/elements/dropdown-menu/DropdownMenuGroup.vue +1 -1
  71. package/dist/runtime/components/elements/dropdown-menu/DropdownMenuItem.vue +3 -6
  72. package/dist/runtime/components/elements/dropdown-menu/DropdownMenuItem.vue.d.ts +1 -1
  73. package/dist/runtime/components/elements/dropdown-menu/DropdownMenuLabel.vue +3 -6
  74. package/dist/runtime/components/elements/dropdown-menu/DropdownMenuSeparator.vue +3 -6
  75. package/dist/runtime/components/elements/dropdown-menu/DropdownMenuSubContent.vue +3 -6
  76. package/dist/runtime/components/elements/dropdown-menu/DropdownMenuSubTrigger.vue +3 -6
  77. package/dist/runtime/components/elements/dropdown-menu/DropdownMenuTrigger.vue +1 -1
  78. package/dist/runtime/components/elements/pagination/Pagination.vue +1 -1
  79. package/dist/runtime/components/elements/pagination/PaginationEllipsis.vue +3 -6
  80. package/dist/runtime/components/elements/pagination/PaginationFirst.vue +3 -6
  81. package/dist/runtime/components/elements/pagination/PaginationFirst.vue.d.ts +1 -1
  82. package/dist/runtime/components/elements/pagination/PaginationLast.vue +3 -6
  83. package/dist/runtime/components/elements/pagination/PaginationLast.vue.d.ts +1 -1
  84. package/dist/runtime/components/elements/pagination/PaginationListItem.vue +3 -5
  85. package/dist/runtime/components/elements/pagination/PaginationNext.vue +3 -6
  86. package/dist/runtime/components/elements/pagination/PaginationNext.vue.d.ts +1 -1
  87. package/dist/runtime/components/elements/pagination/PaginationPrev.vue +3 -6
  88. package/dist/runtime/components/elements/pagination/PaginationPrev.vue.d.ts +1 -1
  89. package/dist/runtime/components/elements/popover/Popover.vue +2 -5
  90. package/dist/runtime/components/elements/popover/PopoverContent.vue +3 -6
  91. package/dist/runtime/components/elements/tabs/Tabs.vue +1 -1
  92. package/dist/runtime/components/elements/tabs/TabsContent.vue +1 -1
  93. package/dist/runtime/components/elements/tabs/TabsList.vue +1 -1
  94. package/dist/runtime/components/elements/tabs/TabsTrigger.vue +1 -1
  95. package/dist/runtime/components/elements/tooltip/TooltipContent.vue +3 -6
  96. package/dist/runtime/components/elements/tooltip/TooltipTrigger.vue +1 -1
  97. package/dist/runtime/components/forms/Checkbox.vue +2 -2
  98. package/dist/runtime/components/forms/FormGroup.vue +1 -1
  99. package/dist/runtime/components/forms/Input.vue +50 -4
  100. package/dist/runtime/components/forms/Input.vue.d.ts +12 -3
  101. package/dist/runtime/components/forms/Slider.vue +1 -1
  102. package/dist/runtime/components/forms/Switch.vue +1 -1
  103. package/dist/runtime/components/forms/form/FormField.vue +1 -1
  104. package/dist/runtime/components/forms/form/FormLabel.vue +1 -1
  105. package/dist/runtime/components/forms/radio-group/RadioGroup.vue +3 -3
  106. package/dist/runtime/components/forms/radio-group/RadioGroupItem.vue +2 -2
  107. package/dist/runtime/components/forms/radio-group/RadioGroupItem.vue.d.ts +1 -1
  108. package/dist/runtime/components/forms/select/SelectContent.vue +3 -6
  109. package/dist/runtime/components/forms/select/SelectGroup.vue +3 -6
  110. package/dist/runtime/components/forms/select/SelectItem.vue +3 -6
  111. package/dist/runtime/components/forms/select/SelectItemIndicator.vue +1 -1
  112. package/dist/runtime/components/forms/select/SelectItemText.vue +1 -1
  113. package/dist/runtime/components/forms/select/SelectLabel.vue +1 -1
  114. package/dist/runtime/components/forms/select/SelectScrollDownButton.vue +3 -6
  115. package/dist/runtime/components/forms/select/SelectScrollUpButton.vue +3 -6
  116. package/dist/runtime/components/forms/select/SelectSeparator.vue +3 -6
  117. package/dist/runtime/components/forms/select/SelectTrigger.vue +1 -1
  118. package/dist/runtime/components/forms/select/SelectValue.vue +1 -1
  119. package/dist/runtime/components/navigation/breadcrumb/BreadcrumbEllipsis.vue.d.ts +1 -1
  120. package/dist/runtime/components/navigation/breadcrumb/BreadcrumbSeparator.vue.d.ts +1 -1
  121. package/dist/runtime/components/navigation-menu/NavigationMenu.vue +1 -1
  122. package/dist/runtime/components/navigation-menu/NavigationMenuContent.vue +1 -1
  123. package/dist/runtime/components/navigation-menu/NavigationMenuContentItem.vue +1 -1
  124. package/dist/runtime/components/navigation-menu/NavigationMenuIndicator.vue +1 -1
  125. package/dist/runtime/components/navigation-menu/NavigationMenuItem.vue +1 -1
  126. package/dist/runtime/components/navigation-menu/NavigationMenuLink.vue +1 -1
  127. package/dist/runtime/components/navigation-menu/NavigationMenuLink.vue.d.ts +1 -1
  128. package/dist/runtime/components/navigation-menu/NavigationMenuList.vue +3 -6
  129. package/dist/runtime/components/navigation-menu/NavigationMenuTrigger.vue +1 -1
  130. package/dist/runtime/components/navigation-menu/NavigationMenuTrigger.vue.d.ts +1 -1
  131. package/dist/runtime/components/navigation-menu/NavigationMenuViewport.vue +1 -1
  132. package/dist/runtime/components/overlays/toast/Toast.vue +1 -1
  133. package/dist/runtime/components/overlays/toast/ToastAction.vue +3 -6
  134. package/dist/runtime/components/overlays/toast/ToastAction.vue.d.ts +1 -1
  135. package/dist/runtime/components/overlays/toast/ToastClose.vue +1 -1
  136. package/dist/runtime/components/overlays/toast/ToastDescription.vue +3 -6
  137. package/dist/runtime/components/overlays/toast/ToastTitle.vue +3 -6
  138. package/dist/runtime/components/overlays/toast/ToastViewport.vue +3 -6
  139. package/dist/runtime/components/resizable/ResizableHandle.vue +1 -1
  140. package/dist/runtime/components/resizable/ResizablePanel.vue +1 -1
  141. package/dist/runtime/components/resizable/ResizablePanel.vue.d.ts +3 -0
  142. package/dist/runtime/components/resizable/ResizablePanelGroup.vue +1 -1
  143. package/dist/runtime/components/scroll-area/ScrollArea.vue +1 -1
  144. package/dist/runtime/components/scroll-area/ScrollArea.vue.d.ts +1 -1
  145. package/dist/runtime/components/scroll-area/ScrollBar.vue +1 -1
  146. package/dist/runtime/components/sheet/SheetClose.vue +1 -1
  147. package/dist/runtime/components/sheet/SheetContent.vue +1 -1
  148. package/dist/runtime/components/sheet/SheetDescription.vue +3 -6
  149. package/dist/runtime/components/sheet/SheetTitle.vue +3 -6
  150. package/dist/runtime/components/sheet/SheetTrigger.vue +1 -1
  151. package/dist/runtime/components/sidebar/SidebarGroupAction.vue +1 -1
  152. package/dist/runtime/components/sidebar/SidebarGroupLabel.vue +1 -1
  153. package/dist/runtime/components/sidebar/SidebarInput.vue +2 -1
  154. package/dist/runtime/components/sidebar/SidebarMenuAction.vue +1 -1
  155. package/dist/runtime/components/sidebar/SidebarMenuButton.vue +2 -2
  156. package/dist/runtime/components/sidebar/SidebarMenuButton.vue.d.ts +1 -1
  157. package/dist/runtime/components/sidebar/SidebarMenuButtonChild.vue +1 -1
  158. package/dist/runtime/components/sidebar/SidebarMenuButtonChild.vue.d.ts +1 -1
  159. package/dist/runtime/components/sidebar/SidebarMenuSubButton.vue +1 -1
  160. package/dist/runtime/components/sidebar/SidebarMenuSubButton.vue.d.ts +1 -1
  161. package/dist/runtime/types/input.d.ts +9 -3
  162. package/dist/runtime/types/table.d.ts +9 -0
  163. package/dist/runtime/utils/index.d.ts +1 -0
  164. package/dist/runtime/utils/index.js +4 -0
  165. package/package.json +10 -10
package/dist/module.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@una-ui/nuxt",
3
3
  "configKey": "una",
4
- "version": "0.56.5",
4
+ "version": "0.58.0",
5
5
  "compatibility": {
6
6
  "nuxt": ">=3.0.0"
7
7
  },
package/dist/module.mjs CHANGED
@@ -8,7 +8,7 @@ import 'unocss';
8
8
  import 'unocss-preset-animations';
9
9
 
10
10
  const name = "@una-ui/nuxt";
11
- const version = "0.56.5";
11
+ const version = "0.58.0";
12
12
 
13
13
  const module = defineNuxtModule({
14
14
  meta: {
@@ -4,7 +4,7 @@ import Button from "../elements/Button.vue";
4
4
  const props = defineProps({
5
5
  onClick: { type: Function, required: false },
6
6
  asChild: { type: Boolean, required: false },
7
- as: { type: null, required: false },
7
+ as: { type: [String, Object, Function], required: false },
8
8
  type: { type: String, required: false },
9
9
  loadingPlacement: { type: String, required: false },
10
10
  icon: { type: Boolean, required: false },
@@ -5,7 +5,7 @@ import Button from "../elements/Button.vue";
5
5
  const props = defineProps({
6
6
  onClick: { type: Function, required: false },
7
7
  asChild: { type: Boolean, required: false },
8
- as: { type: null, required: false },
8
+ as: { type: [String, Object, Function], required: false },
9
9
  type: { type: String, required: false },
10
10
  loadingPlacement: { type: String, required: false },
11
11
  icon: { type: Boolean, required: false },
@@ -22,7 +22,7 @@ const props = defineProps({
22
22
  trapFocus: { type: Boolean, required: false },
23
23
  disableOutsidePointerEvents: { type: Boolean, required: false },
24
24
  asChild: { type: Boolean, required: false },
25
- as: { type: null, required: false },
25
+ as: { type: [String, Object, Function], required: false },
26
26
  class: { type: null, required: false }
27
27
  });
28
28
  const emits = defineEmits(["escapeKeyDown", "pointerDownOutside", "focusOutside", "interactOutside", "openAutoFocus", "closeAutoFocus"]);
@@ -5,7 +5,7 @@ import { cn } from "../../utils";
5
5
  const props = defineProps({
6
6
  una: { type: Object, required: false },
7
7
  asChild: { type: Boolean, required: false },
8
- as: { type: null, required: false },
8
+ as: { type: [String, Object, Function], required: false },
9
9
  class: { type: null, required: false }
10
10
  });
11
11
  const delegatedProps = reactiveOmit(props, "class", "una");
@@ -6,7 +6,7 @@ const props = defineProps({
6
6
  class: { type: null, required: false },
7
7
  forceMount: { type: Boolean, required: false },
8
8
  asChild: { type: Boolean, required: false },
9
- as: { type: null, required: false }
9
+ as: { type: [String, Object, Function], required: false }
10
10
  });
11
11
  </script>
12
12
 
@@ -5,7 +5,7 @@ import { cn } from "../../utils";
5
5
  const props = defineProps({
6
6
  una: { type: Object, required: false },
7
7
  asChild: { type: Boolean, required: false },
8
- as: { type: null, required: false },
8
+ as: { type: [String, Object, Function], required: false },
9
9
  class: { type: null, required: false }
10
10
  });
11
11
  const delegatedProps = reactiveOmit(props, "class", "una");
@@ -2,7 +2,7 @@
2
2
  import { AlertDialogTrigger } from "reka-ui";
3
3
  const props = defineProps({
4
4
  asChild: { type: Boolean, required: false },
5
- as: { type: null, required: false }
5
+ as: { type: [String, Object, Function], required: false }
6
6
  });
7
7
  </script>
8
8
 
@@ -7,7 +7,7 @@ const props = defineProps({
7
7
  una: { type: Object, required: false },
8
8
  ratio: { type: Number, required: false },
9
9
  asChild: { type: Boolean, required: false },
10
- as: { type: null, required: false },
10
+ as: { type: [String, Object, Function], required: false },
11
11
  class: { type: null, required: false },
12
12
  rounded: { type: null, required: false, default: "md" }
13
13
  });
@@ -6,8 +6,8 @@ type __VLS_Slots = {} & {
6
6
  default?: (props: typeof __VLS_6) => any;
7
7
  };
8
8
  declare const __VLS_component: import("vue").DefineComponent<NAspectRatioProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<NAspectRatioProps> & Readonly<{}>, {
9
- aspectRatio: string;
10
9
  rounded: import("vue").HTMLAttributes["class"];
10
+ aspectRatio: string;
11
11
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
12
12
  declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
13
13
  export default _default;
@@ -52,7 +52,7 @@ const props = defineProps({
52
52
  highlightOnHover: { type: Boolean, required: false },
53
53
  by: { type: [String, Function], required: false },
54
54
  asChild: { type: Boolean, required: false },
55
- as: { type: null, required: false },
55
+ as: { type: [String, Object, Function], required: false },
56
56
  name: { type: String, required: false },
57
57
  required: { type: Boolean, required: false },
58
58
  status: { type: String, required: false },
@@ -1,19 +1,16 @@
1
1
  <script setup>
2
+ import { reactiveOmit } from "@vueuse/core";
2
3
  import { ComboboxAnchor, useForwardProps } from "reka-ui";
3
- import { computed } from "vue";
4
4
  import { cn } from "../../utils";
5
5
  const props = defineProps({
6
6
  una: { type: Object, required: false },
7
7
  reference: { type: null, required: false },
8
8
  asChild: { type: Boolean, required: false },
9
- as: { type: null, required: false },
9
+ as: { type: [String, Object, Function], required: false },
10
10
  class: { type: null, required: false },
11
11
  size: { type: null, required: false }
12
12
  });
13
- const delegatedProps = computed(() => {
14
- const { class: _, ...delegated } = props;
15
- return delegated;
16
- });
13
+ const delegatedProps = reactiveOmit(props, ["class"]);
17
14
  const forwarded = useForwardProps(delegatedProps);
18
15
  </script>
19
16
 
@@ -1,18 +1,15 @@
1
1
  <script setup>
2
+ import { reactiveOmit } from "@vueuse/core";
2
3
  import { ComboboxEmpty } from "reka-ui";
3
- import { computed } from "vue";
4
4
  import { cn } from "../../utils";
5
5
  const props = defineProps({
6
6
  una: { type: Object, required: false },
7
7
  asChild: { type: Boolean, required: false },
8
- as: { type: null, required: false },
8
+ as: { type: [String, Object, Function], required: false },
9
9
  class: { type: null, required: false },
10
10
  size: { type: null, required: false, default: "sm" }
11
11
  });
12
- const delegatedProps = computed(() => {
13
- const { class: _, ...delegated } = props;
14
- return delegated;
15
- });
12
+ const delegatedProps = reactiveOmit(props, ["class"]);
16
13
  </script>
17
14
 
18
15
  <template>
@@ -3,8 +3,8 @@
3
3
  </script>
4
4
 
5
5
  <script setup>
6
+ import { reactiveOmit } from "@vueuse/core";
6
7
  import { ComboboxGroup } from "reka-ui";
7
- import { computed } from "vue";
8
8
  import { cn } from "../../utils";
9
9
  import ComboboxLabel from "./ComboboxLabel.vue";
10
10
  const props = defineProps({
@@ -14,14 +14,11 @@ const props = defineProps({
14
14
  _comboboxLabel: { type: Object, required: false },
15
15
  una: { type: Object, required: false },
16
16
  asChild: { type: Boolean, required: false },
17
- as: { type: null, required: false },
17
+ as: { type: [String, Object, Function], required: false },
18
18
  class: { type: null, required: false },
19
19
  size: { type: null, required: false }
20
20
  });
21
- const delegatedProps = computed(() => {
22
- const { class: _, ...delegated } = props;
23
- return delegated;
24
- });
21
+ const delegatedProps = reactiveOmit(props, ["class"]);
25
22
  </script>
26
23
 
27
24
  <template>
@@ -12,11 +12,13 @@ const props = defineProps({
12
12
  autoFocus: { type: Boolean, required: false },
13
13
  disabled: { type: Boolean, required: false },
14
14
  asChild: { type: Boolean, required: false },
15
- as: { type: null, required: false },
15
+ as: { type: [String, Object, Function], required: false },
16
16
  type: { type: null, required: false },
17
17
  status: { type: String, required: false },
18
18
  loading: { type: Boolean, required: false },
19
19
  reverse: { type: Boolean, required: false },
20
+ autofocus: { type: Boolean, required: false },
21
+ autofocusDelay: { type: Number, required: false },
20
22
  leading: { type: String, required: false },
21
23
  trailing: { type: String, required: false },
22
24
  input: { type: String, required: false },
@@ -1,6 +1,6 @@
1
1
  <script setup>
2
+ import { reactiveOmit } from "@vueuse/core";
2
3
  import { ComboboxItem, useForwardPropsEmits } from "reka-ui";
3
- import { computed } from "vue";
4
4
  import { cn } from "../../utils";
5
5
  const props = defineProps({
6
6
  una: { type: Object, required: false },
@@ -8,15 +8,12 @@ const props = defineProps({
8
8
  value: { type: null, required: true },
9
9
  disabled: { type: Boolean, required: false },
10
10
  asChild: { type: Boolean, required: false },
11
- as: { type: null, required: false },
11
+ as: { type: [String, Object, Function], required: false },
12
12
  class: { type: null, required: false },
13
13
  size: { type: null, required: false, default: "sm" }
14
14
  });
15
15
  const emits = defineEmits(["select"]);
16
- const delegatedProps = computed(() => {
17
- const { class: _, ...delegated } = props;
18
- return delegated;
19
- });
16
+ const delegatedProps = reactiveOmit(props, ["class"]);
20
17
  const forwarded = useForwardPropsEmits(delegatedProps, emits);
21
18
  </script>
22
19
 
@@ -1,19 +1,16 @@
1
1
  <script setup>
2
+ import { reactiveOmit } from "@vueuse/core";
2
3
  import { ComboboxItemIndicator, useForwardProps } from "reka-ui";
3
- import { computed } from "vue";
4
4
  import { cn } from "../../utils";
5
5
  const props = defineProps({
6
6
  icon: { type: null, required: false, default: "combobox-item-indicator-icon-name" },
7
7
  una: { type: Object, required: false },
8
8
  asChild: { type: Boolean, required: false },
9
- as: { type: null, required: false },
9
+ as: { type: [String, Object, Function], required: false },
10
10
  class: { type: null, required: false },
11
11
  size: { type: null, required: false }
12
12
  });
13
- const delegatedProps = computed(() => {
14
- const { class: _, ...delegated } = props;
15
- return delegated;
16
- });
13
+ const delegatedProps = reactiveOmit(props, ["class"]);
17
14
  const forwarded = useForwardProps(delegatedProps);
18
15
  </script>
19
16
 
@@ -6,7 +6,7 @@ const props = defineProps({
6
6
  una: { type: Object, required: false },
7
7
  for: { type: String, required: false },
8
8
  asChild: { type: Boolean, required: false },
9
- as: { type: null, required: false },
9
+ as: { type: [String, Object, Function], required: false },
10
10
  class: { type: null, required: false },
11
11
  size: { type: null, required: false }
12
12
  });
@@ -27,7 +27,7 @@ const props = defineProps({
27
27
  prioritizePosition: { type: Boolean, required: false },
28
28
  reference: { type: null, required: false },
29
29
  asChild: { type: Boolean, required: false },
30
- as: { type: null, required: false },
30
+ as: { type: [String, Object, Function], required: false },
31
31
  disableOutsidePointerEvents: { type: Boolean, required: false },
32
32
  class: { type: null, required: false },
33
33
  size: { type: null, required: false }
@@ -1,18 +1,15 @@
1
1
  <script setup>
2
+ import { reactiveOmit } from "@vueuse/core";
2
3
  import { ComboboxSeparator } from "reka-ui";
3
- import { computed } from "vue";
4
4
  import { cn } from "../../utils";
5
5
  const props = defineProps({
6
6
  una: { type: Object, required: false },
7
7
  asChild: { type: Boolean, required: false },
8
- as: { type: null, required: false },
8
+ as: { type: [String, Object, Function], required: false },
9
9
  class: { type: null, required: false },
10
10
  size: { type: null, required: false }
11
11
  });
12
- const delegatedProps = computed(() => {
13
- const { class: _, ...delegated } = props;
14
- return delegated;
15
- });
12
+ const delegatedProps = reactiveOmit(props, ["class"]);
16
13
  </script>
17
14
 
18
15
  <template>
@@ -11,7 +11,7 @@ const props = defineProps({
11
11
  una: { type: Object, required: false },
12
12
  disabled: { type: Boolean, required: false },
13
13
  asChild: { type: Boolean, required: false },
14
- as: { type: null, required: false },
14
+ as: { type: [String, Object, Function], required: false },
15
15
  type: { type: String, required: false },
16
16
  loadingPlacement: { type: String, required: false },
17
17
  icon: { type: Boolean, required: false },
@@ -1,19 +1,16 @@
1
1
  <script setup>
2
+ import { reactiveOmit } from "@vueuse/core";
2
3
  import { ComboboxViewport, useForwardProps } from "reka-ui";
3
- import { computed } from "vue";
4
4
  import { cn } from "../../utils";
5
5
  const props = defineProps({
6
6
  una: { type: Object, required: false },
7
7
  nonce: { type: String, required: false },
8
8
  asChild: { type: Boolean, required: false },
9
- as: { type: null, required: false },
9
+ as: { type: [String, Object, Function], required: false },
10
10
  class: { type: null, required: false },
11
11
  size: { type: null, required: false }
12
12
  });
13
- const delegatedProps = computed(() => {
14
- const { class: _, ...delegated } = props;
15
- return delegated;
16
- });
13
+ const delegatedProps = reactiveOmit(props, ["class"]);
17
14
  const forwarded = useForwardProps(delegatedProps);
18
15
  </script>
19
16
 
@@ -6,7 +6,7 @@ const props = defineProps({
6
6
  class: { type: null, required: false },
7
7
  una: { type: Object, required: false },
8
8
  asChild: { type: Boolean, required: false },
9
- as: { type: null, required: false, default: "tbody" }
9
+ as: { type: [String, Object, Function], required: false, default: "tbody" }
10
10
  });
11
11
  const rootProps = reactiveOmit(props, ["una", "class"]);
12
12
  </script>
@@ -3,13 +3,32 @@ declare var __VLS_6: {};
3
3
  type __VLS_Slots = {} & {
4
4
  default?: (props: typeof __VLS_6) => any;
5
5
  };
6
- declare const __VLS_component: import("vue").DefineComponent<NTableBodyProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<NTableBodyProps> & Readonly<{}>, {
7
- as: import("reka-ui").AsTag | import("vue").Component;
8
- }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
6
+ declare const __VLS_component: import("vue").DefineComponent<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<NTableBodyProps>, {
7
+ as: string;
8
+ }>>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<NTableBodyProps>, {
9
+ as: string;
10
+ }>>> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
9
11
  declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
10
12
  export default _default;
13
+ type __VLS_WithDefaults<P, D> = {
14
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_PrettifyLocal<P[K] & {
15
+ default: D[K];
16
+ }> : P[K];
17
+ };
18
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
19
+ type __VLS_TypePropsToOption<T> = {
20
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
21
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
22
+ } : {
23
+ type: import('vue').PropType<T[K]>;
24
+ required: true;
25
+ };
26
+ };
11
27
  type __VLS_WithSlots<T, S> = T & {
12
28
  new (): {
13
29
  $slots: S;
14
30
  };
15
31
  };
32
+ type __VLS_PrettifyLocal<T> = {
33
+ [K in keyof T]: T[K];
34
+ } & {};
@@ -6,7 +6,7 @@ const props = defineProps({
6
6
  class: { type: null, required: false },
7
7
  una: { type: Object, required: false },
8
8
  asChild: { type: Boolean, required: false },
9
- as: { type: null, required: false, default: "caption" }
9
+ as: { type: [String, Object, Function], required: false, default: "caption" }
10
10
  });
11
11
  const rootProps = reactiveOmit(props, ["una", "class"]);
12
12
  </script>
@@ -3,13 +3,32 @@ declare var __VLS_6: {};
3
3
  type __VLS_Slots = {} & {
4
4
  default?: (props: typeof __VLS_6) => any;
5
5
  };
6
- declare const __VLS_component: import("vue").DefineComponent<NTableCaptionProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<NTableCaptionProps> & Readonly<{}>, {
7
- as: import("reka-ui").AsTag | import("vue").Component;
8
- }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
6
+ declare const __VLS_component: import("vue").DefineComponent<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<NTableCaptionProps>, {
7
+ as: string;
8
+ }>>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<NTableCaptionProps>, {
9
+ as: string;
10
+ }>>> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
9
11
  declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
10
12
  export default _default;
13
+ type __VLS_WithDefaults<P, D> = {
14
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_PrettifyLocal<P[K] & {
15
+ default: D[K];
16
+ }> : P[K];
17
+ };
18
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
19
+ type __VLS_TypePropsToOption<T> = {
20
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
21
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
22
+ } : {
23
+ type: import('vue').PropType<T[K]>;
24
+ required: true;
25
+ };
26
+ };
11
27
  type __VLS_WithSlots<T, S> = T & {
12
28
  new (): {
13
29
  $slots: S;
14
30
  };
15
31
  };
32
+ type __VLS_PrettifyLocal<T> = {
33
+ [K in keyof T]: T[K];
34
+ } & {};
@@ -7,7 +7,7 @@ const props = defineProps({
7
7
  dataPinned: { type: [String, Boolean], required: false },
8
8
  una: { type: Object, required: false },
9
9
  asChild: { type: Boolean, required: false },
10
- as: { type: null, required: false, default: "td" }
10
+ as: { type: [String, Object, Function], required: false, default: "td" }
11
11
  });
12
12
  const rootProps = reactiveOmit(props, ["una", "class"]);
13
13
  </script>
@@ -3,13 +3,32 @@ declare var __VLS_6: {};
3
3
  type __VLS_Slots = {} & {
4
4
  default?: (props: typeof __VLS_6) => any;
5
5
  };
6
- declare const __VLS_component: import("vue").DefineComponent<NTableCellProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<NTableCellProps> & Readonly<{}>, {
7
- as: import("reka-ui").AsTag | import("vue").Component;
8
- }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
6
+ declare const __VLS_component: import("vue").DefineComponent<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<NTableCellProps>, {
7
+ as: string;
8
+ }>>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<NTableCellProps>, {
9
+ as: string;
10
+ }>>> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
9
11
  declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
10
12
  export default _default;
13
+ type __VLS_WithDefaults<P, D> = {
14
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_PrettifyLocal<P[K] & {
15
+ default: D[K];
16
+ }> : P[K];
17
+ };
18
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
19
+ type __VLS_TypePropsToOption<T> = {
20
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
21
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
22
+ } : {
23
+ type: import('vue').PropType<T[K]>;
24
+ required: true;
25
+ };
26
+ };
11
27
  type __VLS_WithSlots<T, S> = T & {
12
28
  new (): {
13
29
  $slots: S;
14
30
  };
15
31
  };
32
+ type __VLS_PrettifyLocal<T> = {
33
+ [K in keyof T]: T[K];
34
+ } & {};
@@ -1,5 +1,5 @@
1
1
  <script setup>
2
- import { computed } from "vue";
2
+ import { reactiveOmit } from "@vueuse/core";
3
3
  import { cn, omitProps } from "../../../utils";
4
4
  import TableCell from "./TableCell.vue";
5
5
  import TableRow from "./TableRow.vue";
@@ -10,10 +10,7 @@ const props = defineProps({
10
10
  _tableRow: { type: Object, required: false },
11
11
  una: { type: Object, required: false }
12
12
  });
13
- const delegatedProps = computed(() => {
14
- const { class: _, ...delegated } = props;
15
- return delegated;
16
- });
13
+ const delegatedProps = reactiveOmit(props, ["class"]);
17
14
  </script>
18
15
 
19
16
  <template>
@@ -3,13 +3,32 @@ declare var __VLS_8: {};
3
3
  type __VLS_Slots = {} & {
4
4
  default?: (props: typeof __VLS_8) => any;
5
5
  };
6
- declare const __VLS_component: import("vue").DefineComponent<NTableEmptyProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<NTableEmptyProps> & Readonly<{}>, {
6
+ declare const __VLS_component: import("vue").DefineComponent<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<NTableEmptyProps>, {
7
7
  colspan: number;
8
- }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
8
+ }>>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<NTableEmptyProps>, {
9
+ colspan: number;
10
+ }>>> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
9
11
  declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
10
12
  export default _default;
13
+ type __VLS_WithDefaults<P, D> = {
14
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_PrettifyLocal<P[K] & {
15
+ default: D[K];
16
+ }> : P[K];
17
+ };
18
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
19
+ type __VLS_TypePropsToOption<T> = {
20
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
21
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
22
+ } : {
23
+ type: import('vue').PropType<T[K]>;
24
+ required: true;
25
+ };
26
+ };
11
27
  type __VLS_WithSlots<T, S> = T & {
12
28
  new (): {
13
29
  $slots: S;
14
30
  };
15
31
  };
32
+ type __VLS_PrettifyLocal<T> = {
33
+ [K in keyof T]: T[K];
34
+ } & {};
@@ -6,7 +6,7 @@ const props = defineProps({
6
6
  class: { type: null, required: false },
7
7
  una: { type: Object, required: false },
8
8
  asChild: { type: Boolean, required: false },
9
- as: { type: null, required: false, default: "tfoot" }
9
+ as: { type: [String, Object, Function], required: false, default: "tfoot" }
10
10
  });
11
11
  const rootProps = reactiveOmit(props, ["una", "class"]);
12
12
  </script>
@@ -3,13 +3,32 @@ declare var __VLS_6: {};
3
3
  type __VLS_Slots = {} & {
4
4
  default?: (props: typeof __VLS_6) => any;
5
5
  };
6
- declare const __VLS_component: import("vue").DefineComponent<NTableFooterProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<NTableFooterProps> & Readonly<{}>, {
7
- as: import("reka-ui").AsTag | import("vue").Component;
8
- }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
6
+ declare const __VLS_component: import("vue").DefineComponent<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<NTableFooterProps>, {
7
+ as: string;
8
+ }>>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<NTableFooterProps>, {
9
+ as: string;
10
+ }>>> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
9
11
  declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
10
12
  export default _default;
13
+ type __VLS_WithDefaults<P, D> = {
14
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_PrettifyLocal<P[K] & {
15
+ default: D[K];
16
+ }> : P[K];
17
+ };
18
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
19
+ type __VLS_TypePropsToOption<T> = {
20
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
21
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
22
+ } : {
23
+ type: import('vue').PropType<T[K]>;
24
+ required: true;
25
+ };
26
+ };
11
27
  type __VLS_WithSlots<T, S> = T & {
12
28
  new (): {
13
29
  $slots: S;
14
30
  };
15
31
  };
32
+ type __VLS_PrettifyLocal<T> = {
33
+ [K in keyof T]: T[K];
34
+ } & {};
@@ -7,7 +7,7 @@ const props = defineProps({
7
7
  dataPinned: { type: [String, Boolean], required: false },
8
8
  una: { type: Object, required: false },
9
9
  asChild: { type: Boolean, required: false },
10
- as: { type: null, required: false, default: "th" }
10
+ as: { type: [String, Object, Function], required: false, default: "th" }
11
11
  });
12
12
  const rootProps = reactiveOmit(props, ["una", "class"]);
13
13
  </script>
@@ -3,13 +3,32 @@ declare var __VLS_6: {};
3
3
  type __VLS_Slots = {} & {
4
4
  default?: (props: typeof __VLS_6) => any;
5
5
  };
6
- declare const __VLS_component: import("vue").DefineComponent<NTableHeadProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<NTableHeadProps> & Readonly<{}>, {
7
- as: import("reka-ui").AsTag | import("vue").Component;
8
- }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
6
+ declare const __VLS_component: import("vue").DefineComponent<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<NTableHeadProps>, {
7
+ as: string;
8
+ }>>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<NTableHeadProps>, {
9
+ as: string;
10
+ }>>> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
9
11
  declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
10
12
  export default _default;
13
+ type __VLS_WithDefaults<P, D> = {
14
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_PrettifyLocal<P[K] & {
15
+ default: D[K];
16
+ }> : P[K];
17
+ };
18
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
19
+ type __VLS_TypePropsToOption<T> = {
20
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
21
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
22
+ } : {
23
+ type: import('vue').PropType<T[K]>;
24
+ required: true;
25
+ };
26
+ };
11
27
  type __VLS_WithSlots<T, S> = T & {
12
28
  new (): {
13
29
  $slots: S;
14
30
  };
15
31
  };
32
+ type __VLS_PrettifyLocal<T> = {
33
+ [K in keyof T]: T[K];
34
+ } & {};