@una-ui/nuxt 1.0.0-alpha.6 → 1.0.0-alpha.8

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 (147) 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/combobox/Combobox.vue +2 -3
  12. package/dist/runtime/components/combobox/Combobox.vue.d.ts +8 -8
  13. package/dist/runtime/components/combobox/ComboboxAnchor.vue +1 -1
  14. package/dist/runtime/components/combobox/ComboboxEmpty.vue +1 -1
  15. package/dist/runtime/components/combobox/ComboboxGroup.vue +1 -1
  16. package/dist/runtime/components/combobox/ComboboxInput.vue +1 -1
  17. package/dist/runtime/components/combobox/ComboboxItem.vue +1 -1
  18. package/dist/runtime/components/combobox/ComboboxItemIndicator.vue +1 -1
  19. package/dist/runtime/components/combobox/ComboboxLabel.vue +1 -1
  20. package/dist/runtime/components/combobox/ComboboxList.vue +2 -1
  21. package/dist/runtime/components/combobox/ComboboxSeparator.vue +1 -1
  22. package/dist/runtime/components/combobox/ComboboxTrigger.vue +1 -1
  23. package/dist/runtime/components/combobox/ComboboxViewport.vue +1 -1
  24. package/dist/runtime/components/data/table/TableBody.vue +1 -1
  25. package/dist/runtime/components/data/table/TableCaption.vue +1 -1
  26. package/dist/runtime/components/data/table/TableCell.vue +1 -1
  27. package/dist/runtime/components/data/table/TableFooter.vue +1 -1
  28. package/dist/runtime/components/data/table/TableHead.vue +1 -1
  29. package/dist/runtime/components/data/table/TableHeader.vue +1 -1
  30. package/dist/runtime/components/data/table/TableRow.vue +1 -1
  31. package/dist/runtime/components/drawer/DrawerClose.vue +1 -1
  32. package/dist/runtime/components/drawer/DrawerContent.vue +1 -1
  33. package/dist/runtime/components/drawer/DrawerDescription.vue +1 -1
  34. package/dist/runtime/components/drawer/DrawerOverlay.vue +2 -1
  35. package/dist/runtime/components/drawer/DrawerTitle.vue +1 -1
  36. package/dist/runtime/components/drawer/DrawerTrigger.vue +1 -1
  37. package/dist/runtime/components/elements/AvatarGroup.vue +1 -1
  38. package/dist/runtime/components/elements/Label.vue +1 -1
  39. package/dist/runtime/components/elements/Progress.vue +1 -1
  40. package/dist/runtime/components/elements/Separator.vue +1 -1
  41. package/dist/runtime/components/elements/Toggle.vue +1 -1
  42. package/dist/runtime/components/elements/avatar/Avatar.vue +1 -1
  43. package/dist/runtime/components/elements/avatar/AvatarFallback.vue +1 -1
  44. package/dist/runtime/components/elements/avatar/AvatarImage.vue +1 -1
  45. package/dist/runtime/components/elements/collapsible/Collapsible.vue +1 -1
  46. package/dist/runtime/components/elements/collapsible/CollapsibleContent.vue +2 -1
  47. package/dist/runtime/components/elements/collapsible/CollapsibleTrigger.vue +1 -1
  48. package/dist/runtime/components/elements/dialog/DialogClose.vue +1 -1
  49. package/dist/runtime/components/elements/dialog/DialogContent.vue +1 -1
  50. package/dist/runtime/components/elements/dialog/DialogDescription.vue +3 -2
  51. package/dist/runtime/components/elements/dialog/DialogScrollContent.vue +1 -1
  52. package/dist/runtime/components/elements/dialog/DialogTitle.vue +1 -1
  53. package/dist/runtime/components/elements/dialog/DialogTrigger.vue +1 -1
  54. package/dist/runtime/components/elements/dropdown-menu/DropdownMenu.vue +1 -1
  55. package/dist/runtime/components/elements/dropdown-menu/DropdownMenuContent.vue +2 -2
  56. package/dist/runtime/components/elements/dropdown-menu/DropdownMenuGroup.vue +1 -1
  57. package/dist/runtime/components/elements/dropdown-menu/DropdownMenuItem.vue +1 -1
  58. package/dist/runtime/components/elements/dropdown-menu/DropdownMenuLabel.vue +1 -1
  59. package/dist/runtime/components/elements/dropdown-menu/DropdownMenuSeparator.vue +1 -1
  60. package/dist/runtime/components/elements/dropdown-menu/DropdownMenuSubContent.vue +2 -2
  61. package/dist/runtime/components/elements/dropdown-menu/DropdownMenuSubTrigger.vue +1 -1
  62. package/dist/runtime/components/elements/dropdown-menu/DropdownMenuTrigger.vue +1 -1
  63. package/dist/runtime/components/elements/pagination/Pagination.vue +1 -1
  64. package/dist/runtime/components/elements/pagination/PaginationEllipsis.vue +1 -1
  65. package/dist/runtime/components/elements/pagination/PaginationFirst.vue +1 -1
  66. package/dist/runtime/components/elements/pagination/PaginationLast.vue +1 -1
  67. package/dist/runtime/components/elements/pagination/PaginationListItem.vue +1 -1
  68. package/dist/runtime/components/elements/pagination/PaginationNext.vue +1 -1
  69. package/dist/runtime/components/elements/pagination/PaginationPrev.vue +1 -1
  70. package/dist/runtime/components/elements/popover/PopoverContent.vue +2 -1
  71. package/dist/runtime/components/elements/tabs/Tabs.vue +1 -1
  72. package/dist/runtime/components/elements/tabs/TabsContent.vue +1 -1
  73. package/dist/runtime/components/elements/tabs/TabsList.vue +1 -1
  74. package/dist/runtime/components/elements/tabs/TabsTrigger.vue +1 -1
  75. package/dist/runtime/components/elements/tooltip/TooltipContent.vue +2 -1
  76. package/dist/runtime/components/elements/tooltip/TooltipTrigger.vue +1 -1
  77. package/dist/runtime/components/forms/Checkbox.vue +1 -1
  78. package/dist/runtime/components/forms/FormGroup.vue +1 -1
  79. package/dist/runtime/components/forms/Slider.vue +1 -1
  80. package/dist/runtime/components/forms/Switch.vue +1 -1
  81. package/dist/runtime/components/forms/form/FormField.vue +1 -1
  82. package/dist/runtime/components/forms/form/FormLabel.vue +1 -1
  83. package/dist/runtime/components/forms/radio-group/RadioGroup.vue +2 -3
  84. package/dist/runtime/components/forms/radio-group/RadioGroup.vue.d.ts +5 -5
  85. package/dist/runtime/components/forms/radio-group/RadioGroupItem.vue +2 -2
  86. package/dist/runtime/components/forms/radio-group/RadioGroupItem.vue.d.ts +2 -1
  87. package/dist/runtime/components/forms/select/Select.vue +4 -6
  88. package/dist/runtime/components/forms/select/Select.vue.d.ts +54 -2
  89. package/dist/runtime/components/forms/select/SelectContent.vue +2 -1
  90. package/dist/runtime/components/forms/select/SelectGroup.vue +1 -1
  91. package/dist/runtime/components/forms/select/SelectItem.vue +1 -1
  92. package/dist/runtime/components/forms/select/SelectItemIndicator.vue +1 -1
  93. package/dist/runtime/components/forms/select/SelectItemText.vue +1 -1
  94. package/dist/runtime/components/forms/select/SelectLabel.vue +1 -1
  95. package/dist/runtime/components/forms/select/SelectScrollDownButton.vue +1 -1
  96. package/dist/runtime/components/forms/select/SelectScrollUpButton.vue +1 -1
  97. package/dist/runtime/components/forms/select/SelectSeparator.vue +1 -1
  98. package/dist/runtime/components/forms/select/SelectTrigger.vue +1 -1
  99. package/dist/runtime/components/forms/select/SelectValue.vue +1 -1
  100. package/dist/runtime/components/hover-card/HoverCard.vue +1 -1
  101. package/dist/runtime/components/hover-card/HoverCardArrow.vue +1 -1
  102. package/dist/runtime/components/hover-card/HoverCardContent.vue +2 -1
  103. package/dist/runtime/components/hover-card/HoverCardTrigger.vue +1 -1
  104. package/dist/runtime/components/navigation-menu/NavigationMenu.vue +1 -1
  105. package/dist/runtime/components/navigation-menu/NavigationMenuContent.vue +1 -1
  106. package/dist/runtime/components/navigation-menu/NavigationMenuContentItem.vue +1 -1
  107. package/dist/runtime/components/navigation-menu/NavigationMenuIndicator.vue +2 -1
  108. package/dist/runtime/components/navigation-menu/NavigationMenuItem.vue +1 -1
  109. package/dist/runtime/components/navigation-menu/NavigationMenuLink.vue +1 -1
  110. package/dist/runtime/components/navigation-menu/NavigationMenuList.vue +1 -1
  111. package/dist/runtime/components/navigation-menu/NavigationMenuTrigger.vue +1 -1
  112. package/dist/runtime/components/navigation-menu/NavigationMenuViewport.vue +2 -1
  113. package/dist/runtime/components/number-field/NumberField.vue +1 -1
  114. package/dist/runtime/components/number-field/NumberFieldDecrement.vue +1 -1
  115. package/dist/runtime/components/number-field/NumberFieldIncrement.vue +1 -1
  116. package/dist/runtime/components/number-field/NumberFieldInput.vue +1 -1
  117. package/dist/runtime/components/overlays/toast/Toast.vue +1 -1
  118. package/dist/runtime/components/overlays/toast/ToastAction.vue +1 -1
  119. package/dist/runtime/components/overlays/toast/ToastClose.vue +1 -1
  120. package/dist/runtime/components/overlays/toast/ToastDescription.vue +1 -1
  121. package/dist/runtime/components/overlays/toast/ToastTitle.vue +1 -1
  122. package/dist/runtime/components/overlays/toast/ToastViewport.vue +1 -1
  123. package/dist/runtime/components/pin-input/PinInput.vue +1 -1
  124. package/dist/runtime/components/pin-input/PinInputGroup.vue +1 -1
  125. package/dist/runtime/components/pin-input/PinInputSeparator.vue +1 -1
  126. package/dist/runtime/components/pin-input/PinInputSlot.vue +1 -1
  127. package/dist/runtime/components/resizable/ResizableHandle.vue +1 -1
  128. package/dist/runtime/components/resizable/ResizablePanel.vue +1 -1
  129. package/dist/runtime/components/resizable/ResizablePanelGroup.vue +1 -1
  130. package/dist/runtime/components/scroll-area/ScrollArea.vue +1 -1
  131. package/dist/runtime/components/scroll-area/ScrollBar.vue +1 -1
  132. package/dist/runtime/components/sheet/SheetClose.vue +1 -1
  133. package/dist/runtime/components/sheet/SheetContent.vue +7 -2
  134. package/dist/runtime/components/sheet/SheetDescription.vue +1 -1
  135. package/dist/runtime/components/sheet/SheetOverlay.vue +7 -2
  136. package/dist/runtime/components/sheet/SheetTitle.vue +1 -1
  137. package/dist/runtime/components/sheet/SheetTrigger.vue +1 -1
  138. package/dist/runtime/components/sidebar/SidebarGroupAction.vue +1 -1
  139. package/dist/runtime/components/sidebar/SidebarGroupLabel.vue +1 -1
  140. package/dist/runtime/components/sidebar/SidebarMenuAction.vue +1 -1
  141. package/dist/runtime/components/sidebar/SidebarMenuButton.vue +2 -2
  142. package/dist/runtime/components/sidebar/SidebarMenuButtonChild.vue +1 -1
  143. package/dist/runtime/components/sidebar/SidebarMenuSubButton.vue +1 -1
  144. package/dist/runtime/types/combobox.d.ts +3 -2
  145. package/dist/runtime/types/radio-group.d.ts +5 -3
  146. package/dist/runtime/types/select.d.ts +2 -30
  147. package/package.json +3 -3
@@ -22,7 +22,6 @@ export interface SelectGroup<T extends AcceptableValue> {
22
22
  _selectLabel?: Partial<NSelectLabelProps>;
23
23
  _selectItem?: Partial<NSelectItemProps>;
24
24
  }
25
- type SelectModelType<T extends AcceptableValue, M extends boolean> = true extends M ? T[] : T;
26
25
  export interface NSelectProps<T extends AcceptableValue, Items extends Array<T | SelectGroup<T>>, M extends boolean = false> extends SelectExtensions<T> {
27
26
  /**
28
27
  * The items to display in the select.
@@ -46,8 +45,8 @@ export interface NSelectProps<T extends AcceptableValue, Items extends Array<T |
46
45
  * @default false
47
46
  */
48
47
  groupSeparator?: boolean;
49
- defaultValue?: SelectModelType<T, M>;
50
- modelValue?: SelectModelType<T, M>;
48
+ defaultValue?: M extends true ? T[] : T;
49
+ modelValue?: M extends true ? T[] : T;
51
50
  multiple?: M;
52
51
  /**
53
52
  * Sub-component configurations
@@ -64,33 +63,6 @@ export interface NSelectProps<T extends AcceptableValue, Items extends Array<T |
64
63
  _selectLabel?: Partial<NSelectLabelProps>;
65
64
  una?: NSelectUnaProps;
66
65
  }
67
- interface SelectModelSlotProps<T extends AcceptableValue, M extends boolean> {
68
- modelValue: SelectModelType<T, M> | null | undefined;
69
- open: boolean;
70
- }
71
- interface SelectContentSlotProps<T extends AcceptableValue, I extends Array<T | SelectGroup<T>>> {
72
- items: I;
73
- }
74
- interface SelectLabelSlotProps {
75
- label: string | undefined;
76
- }
77
- interface SelectItemSlotProps<T extends AcceptableValue, I extends Array<T | SelectGroup<T>>> {
78
- item: I[number];
79
- }
80
- interface SelectGroupSlotProps<T extends AcceptableValue> {
81
- items: SelectGroup<T>;
82
- }
83
- export interface NSelectSlots<T extends AcceptableValue, I extends Array<T | SelectGroup<T>>, M extends boolean = false> {
84
- 'default': (props: SelectModelSlotProps<T, M>) => any;
85
- 'trigger-wrapper': (props: SelectModelSlotProps<T, M>) => any;
86
- 'trigger': (props: SelectModelSlotProps<T, M>) => any;
87
- 'value': (props: SelectModelSlotProps<T, M>) => any;
88
- 'content': (props: SelectContentSlotProps<T, I>) => any;
89
- 'label': (props: SelectLabelSlotProps) => any;
90
- 'item': (props: SelectItemSlotProps<T, I>) => any;
91
- 'indicator': (props: SelectItemSlotProps<T, I>) => any;
92
- 'group': (props: SelectGroupSlotProps<T>) => any;
93
- }
94
66
  export interface NSelectTriggerProps extends TriggerExtensions {
95
67
  /**
96
68
  * The unique id of the select trigger to be used for the form field.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@una-ui/nuxt",
3
3
  "type": "module",
4
- "version": "1.0.0-alpha.6",
4
+ "version": "1.0.0-alpha.8",
5
5
  "description": "Nuxt module for @una-ui",
6
6
  "author": "Phojie Rengel <phojrengel@gmail.com>",
7
7
  "license": "MIT",
@@ -58,8 +58,8 @@
58
58
  "unocss": "^66.2.0",
59
59
  "unocss-preset-animations": "^1.2.1",
60
60
  "vaul-vue": "^0.4.1",
61
- "@una-ui/extractor-vue-script": "^1.0.0-alpha.6",
62
- "@una-ui/preset": "^1.0.0-alpha.6"
61
+ "@una-ui/preset": "^1.0.0-alpha.8",
62
+ "@una-ui/extractor-vue-script": "^1.0.0-alpha.8"
63
63
  },
64
64
  "devDependencies": {
65
65
  "@iconify-json/lucide": "^1.2.57",