@geniusdynamics/ns8-ui-lib 1.0.5 → 1.0.7

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 (738) hide show
  1. package/dist/ns8-ui-lib.css +1 -1
  2. package/dist/ns8-ui-lib.es.js +223 -226
  3. package/dist/ns8-ui-lib.es.js.map +1 -1
  4. package/dist/ns8-ui-lib.umd.js +4 -4
  5. package/dist/ns8-ui-lib.umd.js.map +1 -1
  6. package/package.json +1 -1
  7. package/src/App.vue +6 -3
  8. package/src/components/HelloWorld.vue +2 -2
  9. package/src/components/NS/CompleteDemo.vue +49 -49
  10. package/src/components/NS/Demo.vue +20 -20
  11. package/src/components/NS/cards/NSBackupCard.vue +41 -41
  12. package/src/components/NS/cards/NSSystemInfoCard.vue +37 -42
  13. package/src/components/NS/cards/NSSystemdServiceCard.vue +27 -27
  14. package/src/components/NS/checkbox/NSCheckbox.vue +4 -4
  15. package/src/components/NS/data-table/NSDataTable.vue +29 -29
  16. package/src/components/NS/empty-state/NSEmptyState.vue +3 -3
  17. package/src/components/NS/inline-notification/NSInlineNotification.vue +9 -9
  18. package/src/components/NS/lottie-animation/NSLottieAnimation.vue +5 -5
  19. package/src/components/NS/modal/NSModal.vue +10 -10
  20. package/src/components/NS/modal/NSModalTrigger.vue +1 -1
  21. package/src/components/NS/pagination/NSPagination.vue +10 -10
  22. package/src/components/NS/progress/NSProgress.vue +3 -3
  23. package/src/components/NS/progress/NSProgressBar.vue +4 -4
  24. package/src/components/NS/slider/NSByteSlider.vue +3 -3
  25. package/src/components/NS/slider/NSSlider.vue +2 -2
  26. package/src/components/NS/tag/NSTag.vue +5 -5
  27. package/src/components/NS/text-input/NSTextInput.vue +5 -5
  28. package/src/components/NS/toast-notification/NSToastNotification.vue +7 -7
  29. package/src/components/NS/toggle/NSToggle.vue +2 -2
  30. package/src/components/NS/wizard/NSWizard.vue +21 -21
  31. package/src/components/ui/accordion/AccordionContent.vue +2 -2
  32. package/src/components/ui/accordion/AccordionItem.vue +1 -1
  33. package/src/components/ui/accordion/AccordionTrigger.vue +3 -3
  34. package/src/components/ui/alert/AlertDescription.vue +1 -1
  35. package/src/components/ui/alert/AlertTitle.vue +1 -1
  36. package/src/components/ui/alert-dialog/AlertDialogCancel.vue +1 -1
  37. package/src/components/ui/alert-dialog/AlertDialogContent.vue +2 -2
  38. package/src/components/ui/alert-dialog/AlertDialogDescription.vue +1 -1
  39. package/src/components/ui/alert-dialog/AlertDialogFooter.vue +1 -1
  40. package/src/components/ui/alert-dialog/AlertDialogHeader.vue +1 -1
  41. package/src/components/ui/alert-dialog/AlertDialogTitle.vue +1 -1
  42. package/src/components/ui/avatar/Avatar.vue +1 -1
  43. package/src/components/ui/avatar/AvatarFallback.vue +1 -1
  44. package/src/components/ui/avatar/AvatarImage.vue +1 -1
  45. package/src/components/ui/breadcrumb/BreadcrumbEllipsis.vue +3 -3
  46. package/src/components/ui/breadcrumb/BreadcrumbItem.vue +1 -1
  47. package/src/components/ui/breadcrumb/BreadcrumbLink.vue +1 -1
  48. package/src/components/ui/breadcrumb/BreadcrumbList.vue +1 -1
  49. package/src/components/ui/breadcrumb/BreadcrumbPage.vue +1 -1
  50. package/src/components/ui/breadcrumb/BreadcrumbSeparator.vue +1 -1
  51. package/src/components/ui/button-group/ButtonGroupSeparator.vue +1 -1
  52. package/src/components/ui/button-group/ButtonGroupText.vue +1 -1
  53. package/src/components/ui/calendar/Calendar.vue +16 -16
  54. package/src/components/ui/calendar/CalendarCell.vue +1 -1
  55. package/src/components/ui/calendar/CalendarCellTrigger.vue +6 -6
  56. package/src/components/ui/calendar/CalendarGrid.vue +1 -1
  57. package/src/components/ui/calendar/CalendarGridRow.vue +1 -1
  58. package/src/components/ui/calendar/CalendarHeadCell.vue +1 -1
  59. package/src/components/ui/calendar/CalendarHeader.vue +1 -1
  60. package/src/components/ui/calendar/CalendarHeading.vue +1 -1
  61. package/src/components/ui/calendar/CalendarNextButton.vue +2 -2
  62. package/src/components/ui/calendar/CalendarPrevButton.vue +2 -2
  63. package/src/components/ui/card/Card.vue +1 -1
  64. package/src/components/ui/card/CardAction.vue +1 -1
  65. package/src/components/ui/card/CardContent.vue +1 -1
  66. package/src/components/ui/card/CardDescription.vue +1 -1
  67. package/src/components/ui/card/CardFooter.vue +1 -1
  68. package/src/components/ui/card/CardHeader.vue +1 -1
  69. package/src/components/ui/card/CardTitle.vue +1 -1
  70. package/src/components/ui/carousel/Carousel.vue +1 -1
  71. package/src/components/ui/carousel/CarouselContent.vue +3 -3
  72. package/src/components/ui/carousel/CarouselItem.vue +2 -2
  73. package/src/components/ui/carousel/CarouselNext.vue +4 -4
  74. package/src/components/ui/carousel/CarouselPrevious.vue +4 -4
  75. package/src/components/ui/checkbox/Checkbox.vue +3 -3
  76. package/src/components/ui/combobox/ComboboxAnchor.vue +1 -1
  77. package/src/components/ui/combobox/ComboboxEmpty.vue +1 -1
  78. package/src/components/ui/combobox/ComboboxGroup.vue +2 -2
  79. package/src/components/ui/combobox/ComboboxInput.vue +3 -3
  80. package/src/components/ui/combobox/ComboboxItem.vue +1 -1
  81. package/src/components/ui/combobox/ComboboxItemIndicator.vue +1 -1
  82. package/src/components/ui/combobox/ComboboxList.vue +1 -1
  83. package/src/components/ui/combobox/ComboboxSeparator.vue +1 -1
  84. package/src/components/ui/combobox/ComboboxTrigger.vue +1 -1
  85. package/src/components/ui/combobox/ComboboxViewport.vue +1 -1
  86. package/src/components/ui/command/Command.vue +1 -1
  87. package/src/components/ui/command/CommandDialog.vue +2 -2
  88. package/src/components/ui/command/CommandEmpty.vue +1 -1
  89. package/src/components/ui/command/CommandGroup.vue +2 -2
  90. package/src/components/ui/command/CommandInput.vue +3 -3
  91. package/src/components/ui/command/CommandItem.vue +1 -1
  92. package/src/components/ui/command/CommandList.vue +1 -1
  93. package/src/components/ui/command/CommandSeparator.vue +1 -1
  94. package/src/components/ui/command/CommandShortcut.vue +1 -1
  95. package/src/components/ui/context-menu/ContextMenuCheckboxItem.vue +3 -3
  96. package/src/components/ui/context-menu/ContextMenuContent.vue +1 -1
  97. package/src/components/ui/context-menu/ContextMenuItem.vue +1 -1
  98. package/src/components/ui/context-menu/ContextMenuLabel.vue +1 -1
  99. package/src/components/ui/context-menu/ContextMenuRadioItem.vue +3 -3
  100. package/src/components/ui/context-menu/ContextMenuSeparator.vue +1 -1
  101. package/src/components/ui/context-menu/ContextMenuShortcut.vue +1 -1
  102. package/src/components/ui/context-menu/ContextMenuSubContent.vue +1 -1
  103. package/src/components/ui/context-menu/ContextMenuSubTrigger.vue +2 -2
  104. package/src/components/ui/dialog/DialogContent.vue +18 -27
  105. package/src/components/ui/dialog/DialogDescription.vue +1 -1
  106. package/src/components/ui/dialog/DialogFooter.vue +1 -1
  107. package/src/components/ui/dialog/DialogHeader.vue +1 -1
  108. package/src/components/ui/dialog/DialogOverlay.vue +1 -1
  109. package/src/components/ui/dialog/DialogScrollContent.vue +5 -5
  110. package/src/components/ui/dialog/DialogTitle.vue +1 -1
  111. package/src/components/ui/drawer/DrawerContent.vue +6 -6
  112. package/src/components/ui/drawer/DrawerDescription.vue +1 -1
  113. package/src/components/ui/drawer/DrawerFooter.vue +1 -1
  114. package/src/components/ui/drawer/DrawerHeader.vue +1 -1
  115. package/src/components/ui/drawer/DrawerOverlay.vue +1 -1
  116. package/src/components/ui/drawer/DrawerTitle.vue +1 -1
  117. package/src/components/ui/dropdown-menu/DropdownMenuCheckboxItem.vue +3 -3
  118. package/src/components/ui/dropdown-menu/DropdownMenuContent.vue +1 -1
  119. package/src/components/ui/dropdown-menu/DropdownMenuItem.vue +1 -1
  120. package/src/components/ui/dropdown-menu/DropdownMenuLabel.vue +1 -1
  121. package/src/components/ui/dropdown-menu/DropdownMenuRadioItem.vue +3 -3
  122. package/src/components/ui/dropdown-menu/DropdownMenuSeparator.vue +1 -1
  123. package/src/components/ui/dropdown-menu/DropdownMenuShortcut.vue +1 -1
  124. package/src/components/ui/dropdown-menu/DropdownMenuSubContent.vue +1 -1
  125. package/src/components/ui/dropdown-menu/DropdownMenuSubTrigger.vue +2 -2
  126. package/src/components/ui/empty/Empty.vue +1 -1
  127. package/src/components/ui/empty/EmptyContent.vue +1 -1
  128. package/src/components/ui/empty/EmptyDescription.vue +2 -2
  129. package/src/components/ui/empty/EmptyHeader.vue +1 -1
  130. package/src/components/ui/empty/EmptyTitle.vue +1 -1
  131. package/src/components/ui/field/FieldContent.vue +1 -1
  132. package/src/components/ui/field/FieldDescription.vue +3 -3
  133. package/src/components/ui/field/FieldError.vue +2 -2
  134. package/src/components/ui/field/FieldGroup.vue +1 -1
  135. package/src/components/ui/field/FieldLabel.vue +3 -3
  136. package/src/components/ui/field/FieldLegend.vue +3 -3
  137. package/src/components/ui/field/FieldSeparator.vue +3 -3
  138. package/src/components/ui/field/FieldSet.vue +2 -2
  139. package/src/components/ui/field/FieldTitle.vue +1 -1
  140. package/src/components/ui/form/FormDescription.vue +1 -1
  141. package/src/components/ui/form/FormItem.vue +1 -1
  142. package/src/components/ui/form/FormLabel.vue +1 -1
  143. package/src/components/ui/form/FormMessage.vue +1 -1
  144. package/src/components/ui/hover-card/HoverCardContent.vue +1 -1
  145. package/src/components/ui/input/Input.vue +3 -3
  146. package/src/components/ui/input-group/InputGroup.vue +8 -8
  147. package/src/components/ui/input-group/InputGroupInput.vue +1 -1
  148. package/src/components/ui/input-group/InputGroupText.vue +1 -1
  149. package/src/components/ui/input-group/InputGroupTextarea.vue +1 -1
  150. package/src/components/ui/input-otp/InputOTP.vue +1 -1
  151. package/src/components/ui/input-otp/InputOTPGroup.vue +1 -1
  152. package/src/components/ui/input-otp/InputOTPSlot.vue +3 -3
  153. package/src/components/ui/item/ItemActions.vue +1 -1
  154. package/src/components/ui/item/ItemContent.vue +1 -1
  155. package/src/components/ui/item/ItemDescription.vue +2 -2
  156. package/src/components/ui/item/ItemFooter.vue +1 -1
  157. package/src/components/ui/item/ItemGroup.vue +1 -1
  158. package/src/components/ui/item/ItemHeader.vue +1 -1
  159. package/src/components/ui/item/ItemSeparator.vue +1 -1
  160. package/src/components/ui/item/ItemTitle.vue +1 -1
  161. package/src/components/ui/kbd/Kbd.vue +3 -3
  162. package/src/components/ui/kbd/KbdGroup.vue +1 -1
  163. package/src/components/ui/label/Label.vue +1 -1
  164. package/src/components/ui/menubar/Menubar.vue +1 -1
  165. package/src/components/ui/menubar/MenubarCheckboxItem.vue +3 -3
  166. package/src/components/ui/menubar/MenubarContent.vue +1 -1
  167. package/src/components/ui/menubar/MenubarItem.vue +1 -1
  168. package/src/components/ui/menubar/MenubarLabel.vue +1 -1
  169. package/src/components/ui/menubar/MenubarRadioItem.vue +3 -3
  170. package/src/components/ui/menubar/MenubarSeparator.vue +1 -1
  171. package/src/components/ui/menubar/MenubarShortcut.vue +1 -1
  172. package/src/components/ui/menubar/MenubarSubContent.vue +1 -1
  173. package/src/components/ui/menubar/MenubarSubTrigger.vue +2 -2
  174. package/src/components/ui/menubar/MenubarTrigger.vue +1 -1
  175. package/src/components/ui/native-select/NativeSelect.vue +5 -5
  176. package/src/components/ui/native-select/NativeSelectOptGroup.vue +1 -1
  177. package/src/components/ui/native-select/NativeSelectOption.vue +1 -1
  178. package/src/components/ui/navigation-menu/NavigationMenu.vue +1 -1
  179. package/src/components/ui/navigation-menu/NavigationMenuContent.vue +2 -2
  180. package/src/components/ui/navigation-menu/NavigationMenuIndicator.vue +2 -2
  181. package/src/components/ui/navigation-menu/NavigationMenuItem.vue +1 -1
  182. package/src/components/ui/navigation-menu/NavigationMenuLink.vue +1 -1
  183. package/src/components/ui/navigation-menu/NavigationMenuList.vue +1 -1
  184. package/src/components/ui/navigation-menu/NavigationMenuTrigger.vue +2 -2
  185. package/src/components/ui/navigation-menu/NavigationMenuViewport.vue +2 -2
  186. package/src/components/ui/number-field/NumberField.vue +1 -1
  187. package/src/components/ui/number-field/NumberFieldContent.vue +1 -1
  188. package/src/components/ui/number-field/NumberFieldDecrement.vue +2 -2
  189. package/src/components/ui/number-field/NumberFieldIncrement.vue +2 -2
  190. package/src/components/ui/number-field/NumberFieldInput.vue +1 -1
  191. package/src/components/ui/pagination/Pagination.vue +1 -1
  192. package/src/components/ui/pagination/PaginationContent.vue +1 -1
  193. package/src/components/ui/pagination/PaginationEllipsis.vue +3 -3
  194. package/src/components/ui/pagination/PaginationFirst.vue +2 -2
  195. package/src/components/ui/pagination/PaginationLast.vue +2 -2
  196. package/src/components/ui/pagination/PaginationNext.vue +2 -2
  197. package/src/components/ui/pagination/PaginationPrevious.vue +2 -2
  198. package/src/components/ui/pin-input/PinInput.vue +1 -1
  199. package/src/components/ui/pin-input/PinInputGroup.vue +1 -1
  200. package/src/components/ui/pin-input/PinInputSlot.vue +1 -1
  201. package/src/components/ui/popover/PopoverContent.vue +1 -1
  202. package/src/components/ui/progress/Progress.vue +12 -9
  203. package/src/components/ui/radio-group/RadioGroup.vue +1 -1
  204. package/src/components/ui/radio-group/RadioGroupItem.vue +16 -16
  205. package/src/components/ui/range-calendar/RangeCalendar.vue +4 -4
  206. package/src/components/ui/range-calendar/RangeCalendarCell.vue +1 -1
  207. package/src/components/ui/range-calendar/RangeCalendarCellTrigger.vue +7 -7
  208. package/src/components/ui/range-calendar/RangeCalendarGrid.vue +1 -1
  209. package/src/components/ui/range-calendar/RangeCalendarGridRow.vue +1 -1
  210. package/src/components/ui/range-calendar/RangeCalendarHeadCell.vue +1 -1
  211. package/src/components/ui/range-calendar/RangeCalendarHeader.vue +1 -1
  212. package/src/components/ui/range-calendar/RangeCalendarHeading.vue +1 -1
  213. package/src/components/ui/range-calendar/RangeCalendarNextButton.vue +3 -3
  214. package/src/components/ui/range-calendar/RangeCalendarPrevButton.vue +3 -3
  215. package/src/components/ui/resizable/ResizableHandle.vue +3 -3
  216. package/src/components/ui/resizable/ResizablePanelGroup.vue +1 -1
  217. package/src/components/ui/scroll-area/ScrollArea.vue +2 -2
  218. package/src/components/ui/scroll-area/ScrollBar.vue +16 -22
  219. package/src/components/ui/select/SelectContent.vue +18 -27
  220. package/src/components/ui/select/SelectItem.vue +3 -3
  221. package/src/components/ui/select/SelectLabel.vue +1 -1
  222. package/src/components/ui/select/SelectScrollDownButton.vue +2 -2
  223. package/src/components/ui/select/SelectScrollUpButton.vue +2 -2
  224. package/src/components/ui/select/SelectSeparator.vue +1 -1
  225. package/src/components/ui/select/SelectTrigger.vue +2 -2
  226. package/src/components/ui/separator/Separator.vue +1 -1
  227. package/src/components/ui/sheet/SheetContent.vue +28 -31
  228. package/src/components/ui/sheet/SheetDescription.vue +1 -1
  229. package/src/components/ui/sheet/SheetFooter.vue +1 -1
  230. package/src/components/ui/sheet/SheetHeader.vue +1 -1
  231. package/src/components/ui/sheet/SheetOverlay.vue +1 -1
  232. package/src/components/ui/sheet/SheetTitle.vue +1 -1
  233. package/src/components/ui/sidebar/Sidebar.vue +16 -16
  234. package/src/components/ui/sidebar/SidebarContent.vue +1 -1
  235. package/src/components/ui/sidebar/SidebarFooter.vue +1 -1
  236. package/src/components/ui/sidebar/SidebarGroup.vue +1 -1
  237. package/src/components/ui/sidebar/SidebarGroupAction.vue +3 -3
  238. package/src/components/ui/sidebar/SidebarGroupContent.vue +1 -1
  239. package/src/components/ui/sidebar/SidebarGroupLabel.vue +2 -2
  240. package/src/components/ui/sidebar/SidebarHeader.vue +1 -1
  241. package/src/components/ui/sidebar/SidebarInput.vue +1 -1
  242. package/src/components/ui/sidebar/SidebarInset.vue +2 -2
  243. package/src/components/ui/sidebar/SidebarMenu.vue +1 -1
  244. package/src/components/ui/sidebar/SidebarMenuAction.vue +7 -7
  245. package/src/components/ui/sidebar/SidebarMenuBadge.vue +6 -6
  246. package/src/components/ui/sidebar/SidebarMenuItem.vue +1 -1
  247. package/src/components/ui/sidebar/SidebarMenuSkeleton.vue +3 -3
  248. package/src/components/ui/sidebar/SidebarMenuSub.vue +2 -2
  249. package/src/components/ui/sidebar/SidebarMenuSubButton.vue +5 -5
  250. package/src/components/ui/sidebar/SidebarMenuSubItem.vue +1 -1
  251. package/src/components/ui/sidebar/SidebarProvider.vue +1 -1
  252. package/src/components/ui/sidebar/SidebarRail.vue +6 -6
  253. package/src/components/ui/sidebar/SidebarSeparator.vue +1 -1
  254. package/src/components/ui/sidebar/SidebarTrigger.vue +2 -2
  255. package/src/components/ui/skeleton/Skeleton.vue +1 -1
  256. package/src/components/ui/slider/Slider.vue +4 -4
  257. package/src/components/ui/sonner/Sonner.vue +7 -7
  258. package/src/components/ui/spinner/Spinner.vue +1 -1
  259. package/src/components/ui/stepper/Stepper.vue +1 -1
  260. package/src/components/ui/stepper/StepperDescription.vue +1 -1
  261. package/src/components/ui/stepper/StepperIndicator.vue +4 -4
  262. package/src/components/ui/stepper/StepperItem.vue +1 -1
  263. package/src/components/ui/stepper/StepperSeparator.vue +3 -3
  264. package/src/components/ui/stepper/StepperTitle.vue +1 -1
  265. package/src/components/ui/stepper/StepperTrigger.vue +1 -1
  266. package/src/components/ui/switch/Switch.vue +2 -2
  267. package/src/components/ui/table/Table.vue +6 -12
  268. package/src/components/ui/table/TableBody.vue +1 -1
  269. package/src/components/ui/table/TableCaption.vue +1 -1
  270. package/src/components/ui/table/TableCell.vue +1 -1
  271. package/src/components/ui/table/TableEmpty.vue +14 -17
  272. package/src/components/ui/table/TableFooter.vue +1 -1
  273. package/src/components/ui/table/TableHead.vue +1 -1
  274. package/src/components/ui/table/TableHeader.vue +1 -1
  275. package/src/components/ui/table/TableRow.vue +1 -1
  276. package/src/components/ui/tabs/Tabs.vue +1 -1
  277. package/src/components/ui/tabs/TabsContent.vue +1 -1
  278. package/src/components/ui/tabs/TabsList.vue +1 -1
  279. package/src/components/ui/tabs/TabsTrigger.vue +1 -1
  280. package/src/components/ui/tags-input/TagsInput.vue +3 -3
  281. package/src/components/ui/tags-input/TagsInputInput.vue +1 -1
  282. package/src/components/ui/tags-input/TagsInputItem.vue +1 -1
  283. package/src/components/ui/tags-input/TagsInputItemDelete.vue +2 -2
  284. package/src/components/ui/tags-input/TagsInputItemText.vue +1 -1
  285. package/src/components/ui/textarea/Textarea.vue +1 -1
  286. package/src/components/ui/toggle-group/ToggleGroup.vue +1 -1
  287. package/src/components/ui/toggle-group/ToggleGroupItem.vue +2 -2
  288. package/src/components/ui/tooltip/TooltipContent.vue +2 -2
  289. package/dist/index.d.ts +0 -23
  290. package/dist/src/App.vue.d.ts +0 -2
  291. package/dist/src/components/HelloWorld.vue.d.ts +0 -5
  292. package/dist/src/components/NS/cards/NSBackupCard.vue.d.ts +0 -51
  293. package/dist/src/components/NS/cards/NSSystemInfoCard.vue.d.ts +0 -58
  294. package/dist/src/components/NS/cards/NSSystemdServiceCard.vue.d.ts +0 -47
  295. package/dist/src/components/NS/cards/index.d.ts +0 -3
  296. package/dist/src/components/NS/checkbox/NSCheckbox.vue.d.ts +0 -37
  297. package/dist/src/components/NS/checkbox/index.d.ts +0 -1
  298. package/dist/src/components/NS/data-table/NSDataTable.vue.d.ts +0 -98
  299. package/dist/src/components/NS/data-table/index.d.ts +0 -1
  300. package/dist/src/components/NS/empty-state/NSEmptyState.vue.d.ts +0 -45
  301. package/dist/src/components/NS/empty-state/index.d.ts +0 -1
  302. package/dist/src/components/NS/index.d.ts +0 -35
  303. package/dist/src/components/NS/inline-notification/NSInlineNotification.vue.d.ts +0 -44
  304. package/dist/src/components/NS/inline-notification/index.d.ts +0 -1
  305. package/dist/src/components/NS/lottie-animation/index.d.ts +0 -1
  306. package/dist/src/components/NS/modal/NSModal.vue.d.ts +0 -56
  307. package/dist/src/components/NS/modal/NSModalTrigger.vue.d.ts +0 -64
  308. package/dist/src/components/NS/modal/index.d.ts +0 -2
  309. package/dist/src/components/NS/pagination/NSPagination.vue.d.ts +0 -36
  310. package/dist/src/components/NS/pagination/index.d.ts +0 -1
  311. package/dist/src/components/NS/progress/NSProgress.vue.d.ts +0 -37
  312. package/dist/src/components/NS/progress/NSProgressBar.vue.d.ts +0 -39
  313. package/dist/src/components/NS/progress/index.d.ts +0 -2
  314. package/dist/src/components/NS/slider/NSByteSlider.vue.d.ts +0 -50
  315. package/dist/src/components/NS/slider/NSSlider.vue.d.ts +0 -49
  316. package/dist/src/components/NS/slider/index.d.ts +0 -2
  317. package/dist/src/components/NS/tag/NSTag.vue.d.ts +0 -41
  318. package/dist/src/components/NS/tag/index.d.ts +0 -1
  319. package/dist/src/components/NS/text-input/NSTextInput.vue.d.ts +0 -67
  320. package/dist/src/components/NS/text-input/index.d.ts +0 -1
  321. package/dist/src/components/NS/toast-notification/NSToastNotification.vue.d.ts +0 -44
  322. package/dist/src/components/NS/toast-notification/index.d.ts +0 -1
  323. package/dist/src/components/NS/toggle/NSToggle.vue.d.ts +0 -51
  324. package/dist/src/components/NS/toggle/index.d.ts +0 -1
  325. package/dist/src/components/NS/wizard/NSWizard.vue.d.ts +0 -86
  326. package/dist/src/components/NS/wizard/index.d.ts +0 -1
  327. package/dist/src/components/ui/accordion/Accordion.vue.d.ts +0 -25
  328. package/dist/src/components/ui/accordion/AccordionContent.vue.d.ts +0 -22
  329. package/dist/src/components/ui/accordion/AccordionItem.vue.d.ts +0 -22
  330. package/dist/src/components/ui/accordion/AccordionTrigger.vue.d.ts +0 -23
  331. package/dist/src/components/ui/accordion/index.d.ts +0 -4
  332. package/dist/src/components/ui/alert/Alert.vue.d.ts +0 -23
  333. package/dist/src/components/ui/alert/AlertDescription.vue.d.ts +0 -21
  334. package/dist/src/components/ui/alert/AlertTitle.vue.d.ts +0 -21
  335. package/dist/src/components/ui/alert/index.d.ts +0 -8
  336. package/dist/src/components/ui/alert-dialog/AlertDialog.vue.d.ts +0 -25
  337. package/dist/src/components/ui/alert-dialog/AlertDialogAction.vue.d.ts +0 -22
  338. package/dist/src/components/ui/alert-dialog/AlertDialogCancel.vue.d.ts +0 -22
  339. package/dist/src/components/ui/alert-dialog/AlertDialogContent.vue.d.ts +0 -36
  340. package/dist/src/components/ui/alert-dialog/AlertDialogDescription.vue.d.ts +0 -22
  341. package/dist/src/components/ui/alert-dialog/AlertDialogFooter.vue.d.ts +0 -21
  342. package/dist/src/components/ui/alert-dialog/AlertDialogHeader.vue.d.ts +0 -21
  343. package/dist/src/components/ui/alert-dialog/AlertDialogTitle.vue.d.ts +0 -22
  344. package/dist/src/components/ui/alert-dialog/AlertDialogTrigger.vue.d.ts +0 -18
  345. package/dist/src/components/ui/alert-dialog/index.d.ts +0 -9
  346. package/dist/src/components/ui/aspect-ratio/AspectRatio.vue.d.ts +0 -18
  347. package/dist/src/components/ui/aspect-ratio/index.d.ts +0 -1
  348. package/dist/src/components/ui/avatar/Avatar.vue.d.ts +0 -21
  349. package/dist/src/components/ui/avatar/AvatarFallback.vue.d.ts +0 -22
  350. package/dist/src/components/ui/avatar/AvatarImage.vue.d.ts +0 -18
  351. package/dist/src/components/ui/avatar/index.d.ts +0 -3
  352. package/dist/src/components/ui/badge/Badge.vue.d.ts +0 -24
  353. package/dist/src/components/ui/badge/index.d.ts +0 -6
  354. package/dist/src/components/ui/breadcrumb/Breadcrumb.vue.d.ts +0 -21
  355. package/dist/src/components/ui/breadcrumb/BreadcrumbEllipsis.vue.d.ts +0 -21
  356. package/dist/src/components/ui/breadcrumb/BreadcrumbItem.vue.d.ts +0 -21
  357. package/dist/src/components/ui/breadcrumb/BreadcrumbLink.vue.d.ts +0 -24
  358. package/dist/src/components/ui/breadcrumb/BreadcrumbList.vue.d.ts +0 -21
  359. package/dist/src/components/ui/breadcrumb/BreadcrumbPage.vue.d.ts +0 -21
  360. package/dist/src/components/ui/breadcrumb/BreadcrumbSeparator.vue.d.ts +0 -21
  361. package/dist/src/components/ui/breadcrumb/index.d.ts +0 -7
  362. package/dist/src/components/ui/button/Button.vue.d.ts +0 -27
  363. package/dist/src/components/ui/button/index.d.ts +0 -7
  364. package/dist/src/components/ui/button-group/ButtonGroup.vue.d.ts +0 -23
  365. package/dist/src/components/ui/button-group/ButtonGroupSeparator.vue.d.ts +0 -9
  366. package/dist/src/components/ui/button-group/ButtonGroupText.vue.d.ts +0 -26
  367. package/dist/src/components/ui/button-group/index.d.ts +0 -8
  368. package/dist/src/components/ui/calendar/Calendar.vue.d.ts +0 -27
  369. package/dist/src/components/ui/calendar/CalendarCell.vue.d.ts +0 -22
  370. package/dist/src/components/ui/calendar/CalendarCellTrigger.vue.d.ts +0 -24
  371. package/dist/src/components/ui/calendar/CalendarGrid.vue.d.ts +0 -22
  372. package/dist/src/components/ui/calendar/CalendarGridBody.vue.d.ts +0 -18
  373. package/dist/src/components/ui/calendar/CalendarGridHead.vue.d.ts +0 -22
  374. package/dist/src/components/ui/calendar/CalendarGridRow.vue.d.ts +0 -22
  375. package/dist/src/components/ui/calendar/CalendarHeadCell.vue.d.ts +0 -22
  376. package/dist/src/components/ui/calendar/CalendarHeader.vue.d.ts +0 -22
  377. package/dist/src/components/ui/calendar/CalendarHeading.vue.d.ts +0 -28
  378. package/dist/src/components/ui/calendar/CalendarNextButton.vue.d.ts +0 -22
  379. package/dist/src/components/ui/calendar/CalendarPrevButton.vue.d.ts +0 -22
  380. package/dist/src/components/ui/calendar/index.d.ts +0 -13
  381. package/dist/src/components/ui/card/Card.vue.d.ts +0 -21
  382. package/dist/src/components/ui/card/CardAction.vue.d.ts +0 -21
  383. package/dist/src/components/ui/card/CardContent.vue.d.ts +0 -21
  384. package/dist/src/components/ui/card/CardDescription.vue.d.ts +0 -21
  385. package/dist/src/components/ui/card/CardFooter.vue.d.ts +0 -21
  386. package/dist/src/components/ui/card/CardHeader.vue.d.ts +0 -21
  387. package/dist/src/components/ui/card/CardTitle.vue.d.ts +0 -21
  388. package/dist/src/components/ui/card/index.d.ts +0 -7
  389. package/dist/src/components/ui/carousel/CarouselContent.vue.d.ts +0 -22
  390. package/dist/src/components/ui/carousel/CarouselItem.vue.d.ts +0 -18
  391. package/dist/src/components/ui/carousel/CarouselNext.vue.d.ts +0 -26
  392. package/dist/src/components/ui/carousel/CarouselPrevious.vue.d.ts +0 -26
  393. package/dist/src/components/ui/carousel/index.d.ts +0 -7
  394. package/dist/src/components/ui/carousel/interface.d.ts +0 -19
  395. package/dist/src/components/ui/checkbox/Checkbox.vue.d.ts +0 -29
  396. package/dist/src/components/ui/checkbox/index.d.ts +0 -1
  397. package/dist/src/components/ui/collapsible/Collapsible.vue.d.ts +0 -24
  398. package/dist/src/components/ui/collapsible/CollapsibleContent.vue.d.ts +0 -18
  399. package/dist/src/components/ui/collapsible/CollapsibleTrigger.vue.d.ts +0 -18
  400. package/dist/src/components/ui/collapsible/index.d.ts +0 -3
  401. package/dist/src/components/ui/combobox/Combobox.vue.d.ts +0 -36
  402. package/dist/src/components/ui/combobox/ComboboxAnchor.vue.d.ts +0 -22
  403. package/dist/src/components/ui/combobox/ComboboxEmpty.vue.d.ts +0 -22
  404. package/dist/src/components/ui/combobox/ComboboxGroup.vue.d.ts +0 -23
  405. package/dist/src/components/ui/combobox/ComboboxInput.vue.d.ts +0 -26
  406. package/dist/src/components/ui/combobox/ComboboxItem.vue.d.ts +0 -26
  407. package/dist/src/components/ui/combobox/ComboboxItemIndicator.vue.d.ts +0 -22
  408. package/dist/src/components/ui/combobox/ComboboxList.vue.d.ts +0 -36
  409. package/dist/src/components/ui/combobox/ComboboxSeparator.vue.d.ts +0 -22
  410. package/dist/src/components/ui/combobox/ComboboxViewport.vue.d.ts +0 -22
  411. package/dist/src/components/ui/combobox/index.d.ts +0 -11
  412. package/dist/src/components/ui/command/Command.vue.d.ts +0 -40
  413. package/dist/src/components/ui/command/CommandDialog.vue.d.ts +0 -29
  414. package/dist/src/components/ui/command/CommandEmpty.vue.d.ts +0 -22
  415. package/dist/src/components/ui/command/CommandGroup.vue.d.ts +0 -23
  416. package/dist/src/components/ui/command/CommandInput.vue.d.ts +0 -7
  417. package/dist/src/components/ui/command/CommandItem.vue.d.ts +0 -30
  418. package/dist/src/components/ui/command/CommandList.vue.d.ts +0 -22
  419. package/dist/src/components/ui/command/CommandSeparator.vue.d.ts +0 -22
  420. package/dist/src/components/ui/command/CommandShortcut.vue.d.ts +0 -21
  421. package/dist/src/components/ui/command/index.d.ts +0 -90
  422. package/dist/src/components/ui/context-menu/ContextMenu.vue.d.ts +0 -22
  423. package/dist/src/components/ui/context-menu/ContextMenuCheckboxItem.vue.d.ts +0 -29
  424. package/dist/src/components/ui/context-menu/ContextMenuContent.vue.d.ts +0 -34
  425. package/dist/src/components/ui/context-menu/ContextMenuGroup.vue.d.ts +0 -18
  426. package/dist/src/components/ui/context-menu/ContextMenuItem.vue.d.ts +0 -30
  427. package/dist/src/components/ui/context-menu/ContextMenuLabel.vue.d.ts +0 -23
  428. package/dist/src/components/ui/context-menu/ContextMenuRadioGroup.vue.d.ts +0 -22
  429. package/dist/src/components/ui/context-menu/ContextMenuRadioItem.vue.d.ts +0 -27
  430. package/dist/src/components/ui/context-menu/ContextMenuSeparator.vue.d.ts +0 -7
  431. package/dist/src/components/ui/context-menu/ContextMenuShortcut.vue.d.ts +0 -21
  432. package/dist/src/components/ui/context-menu/ContextMenuSub.vue.d.ts +0 -22
  433. package/dist/src/components/ui/context-menu/ContextMenuSubContent.vue.d.ts +0 -38
  434. package/dist/src/components/ui/context-menu/ContextMenuSubTrigger.vue.d.ts +0 -23
  435. package/dist/src/components/ui/context-menu/ContextMenuTrigger.vue.d.ts +0 -18
  436. package/dist/src/components/ui/context-menu/index.d.ts +0 -14
  437. package/dist/src/components/ui/dialog/Dialog.vue.d.ts +0 -25
  438. package/dist/src/components/ui/dialog/DialogClose.vue.d.ts +0 -18
  439. package/dist/src/components/ui/dialog/DialogContent.vue.d.ts +0 -39
  440. package/dist/src/components/ui/dialog/DialogDescription.vue.d.ts +0 -22
  441. package/dist/src/components/ui/dialog/DialogFooter.vue.d.ts +0 -24
  442. package/dist/src/components/ui/dialog/DialogHeader.vue.d.ts +0 -21
  443. package/dist/src/components/ui/dialog/DialogOverlay.vue.d.ts +0 -22
  444. package/dist/src/components/ui/dialog/DialogScrollContent.vue.d.ts +0 -29
  445. package/dist/src/components/ui/dialog/DialogTitle.vue.d.ts +0 -22
  446. package/dist/src/components/ui/dialog/DialogTrigger.vue.d.ts +0 -18
  447. package/dist/src/components/ui/dialog/index.d.ts +0 -10
  448. package/dist/src/components/ui/drawer/Drawer.vue.d.ts +0 -36
  449. package/dist/src/components/ui/drawer/DrawerClose.vue.d.ts +0 -18
  450. package/dist/src/components/ui/drawer/DrawerContent.vue.d.ts +0 -29
  451. package/dist/src/components/ui/drawer/DrawerDescription.vue.d.ts +0 -22
  452. package/dist/src/components/ui/drawer/DrawerFooter.vue.d.ts +0 -21
  453. package/dist/src/components/ui/drawer/DrawerHeader.vue.d.ts +0 -21
  454. package/dist/src/components/ui/drawer/DrawerOverlay.vue.d.ts +0 -7
  455. package/dist/src/components/ui/drawer/DrawerTitle.vue.d.ts +0 -22
  456. package/dist/src/components/ui/drawer/DrawerTrigger.vue.d.ts +0 -18
  457. package/dist/src/components/ui/drawer/index.d.ts +0 -9
  458. package/dist/src/components/ui/dropdown-menu/DropdownMenu.vue.d.ts +0 -24
  459. package/dist/src/components/ui/dropdown-menu/DropdownMenuCheckboxItem.vue.d.ts +0 -29
  460. package/dist/src/components/ui/dropdown-menu/DropdownMenuContent.vue.d.ts +0 -36
  461. package/dist/src/components/ui/dropdown-menu/DropdownMenuGroup.vue.d.ts +0 -18
  462. package/dist/src/components/ui/dropdown-menu/DropdownMenuItem.vue.d.ts +0 -26
  463. package/dist/src/components/ui/dropdown-menu/DropdownMenuLabel.vue.d.ts +0 -23
  464. package/dist/src/components/ui/dropdown-menu/DropdownMenuRadioGroup.vue.d.ts +0 -22
  465. package/dist/src/components/ui/dropdown-menu/DropdownMenuRadioItem.vue.d.ts +0 -27
  466. package/dist/src/components/ui/dropdown-menu/DropdownMenuSeparator.vue.d.ts +0 -7
  467. package/dist/src/components/ui/dropdown-menu/DropdownMenuShortcut.vue.d.ts +0 -21
  468. package/dist/src/components/ui/dropdown-menu/DropdownMenuSub.vue.d.ts +0 -22
  469. package/dist/src/components/ui/dropdown-menu/DropdownMenuSubContent.vue.d.ts +0 -38
  470. package/dist/src/components/ui/dropdown-menu/DropdownMenuSubTrigger.vue.d.ts +0 -23
  471. package/dist/src/components/ui/dropdown-menu/DropdownMenuTrigger.vue.d.ts +0 -18
  472. package/dist/src/components/ui/dropdown-menu/index.d.ts +0 -15
  473. package/dist/src/components/ui/empty/Empty.vue.d.ts +0 -21
  474. package/dist/src/components/ui/empty/EmptyContent.vue.d.ts +0 -21
  475. package/dist/src/components/ui/empty/EmptyDescription.vue.d.ts +0 -21
  476. package/dist/src/components/ui/empty/EmptyHeader.vue.d.ts +0 -21
  477. package/dist/src/components/ui/empty/EmptyMedia.vue.d.ts +0 -23
  478. package/dist/src/components/ui/empty/EmptyTitle.vue.d.ts +0 -21
  479. package/dist/src/components/ui/empty/index.d.ts +0 -11
  480. package/dist/src/components/ui/empty-state/NsEmptyState.vue.d.ts +0 -45
  481. package/dist/src/components/ui/empty-state/index.d.ts +0 -11
  482. package/dist/src/components/ui/field/Field.vue.d.ts +0 -23
  483. package/dist/src/components/ui/field/FieldContent.vue.d.ts +0 -21
  484. package/dist/src/components/ui/field/FieldDescription.vue.d.ts +0 -21
  485. package/dist/src/components/ui/field/FieldError.vue.d.ts +0 -24
  486. package/dist/src/components/ui/field/FieldGroup.vue.d.ts +0 -21
  487. package/dist/src/components/ui/field/FieldLabel.vue.d.ts +0 -21
  488. package/dist/src/components/ui/field/FieldLegend.vue.d.ts +0 -22
  489. package/dist/src/components/ui/field/FieldSeparator.vue.d.ts +0 -21
  490. package/dist/src/components/ui/field/FieldSet.vue.d.ts +0 -21
  491. package/dist/src/components/ui/field/FieldTitle.vue.d.ts +0 -21
  492. package/dist/src/components/ui/field/index.d.ts +0 -15
  493. package/dist/src/components/ui/form/FormControl.vue.d.ts +0 -17
  494. package/dist/src/components/ui/form/FormDescription.vue.d.ts +0 -21
  495. package/dist/src/components/ui/form/FormItem.vue.d.ts +0 -21
  496. package/dist/src/components/ui/form/FormLabel.vue.d.ts +0 -22
  497. package/dist/src/components/ui/form/FormMessage.vue.d.ts +0 -6
  498. package/dist/src/components/ui/form/index.d.ts +0 -7
  499. package/dist/src/components/ui/form/injectionKeys.d.ts +0 -2
  500. package/dist/src/components/ui/form/useFormField.d.ts +0 -11
  501. package/dist/src/components/ui/hover-card/HoverCard.vue.d.ts +0 -24
  502. package/dist/src/components/ui/hover-card/HoverCardContent.vue.d.ts +0 -24
  503. package/dist/src/components/ui/hover-card/HoverCardTrigger.vue.d.ts +0 -18
  504. package/dist/src/components/ui/hover-card/index.d.ts +0 -3
  505. package/dist/src/components/ui/inline-notification/NsInlineNotification.vue.d.ts +0 -45
  506. package/dist/src/components/ui/inline-notification/index.d.ts +0 -6
  507. package/dist/src/components/ui/input/Input.vue.d.ts +0 -12
  508. package/dist/src/components/ui/input/index.d.ts +0 -1
  509. package/dist/src/components/ui/input-group/InputGroup.vue.d.ts +0 -21
  510. package/dist/src/components/ui/input-group/InputGroupAddon.vue.d.ts +0 -25
  511. package/dist/src/components/ui/input-group/InputGroupButton.vue.d.ts +0 -28
  512. package/dist/src/components/ui/input-group/InputGroupInput.vue.d.ts +0 -6
  513. package/dist/src/components/ui/input-group/InputGroupText.vue.d.ts +0 -21
  514. package/dist/src/components/ui/input-group/InputGroupTextarea.vue.d.ts +0 -6
  515. package/dist/src/components/ui/input-group/index.d.ts +0 -15
  516. package/dist/src/components/ui/input-otp/InputOTP.vue.d.ts +0 -46
  517. package/dist/src/components/ui/input-otp/InputOTPGroup.vue.d.ts +0 -21
  518. package/dist/src/components/ui/input-otp/InputOTPSeparator.vue.d.ts +0 -21
  519. package/dist/src/components/ui/input-otp/InputOTPSlot.vue.d.ts +0 -7
  520. package/dist/src/components/ui/input-otp/index.d.ts +0 -4
  521. package/dist/src/components/ui/item/Item.vue.d.ts +0 -27
  522. package/dist/src/components/ui/item/ItemActions.vue.d.ts +0 -21
  523. package/dist/src/components/ui/item/ItemContent.vue.d.ts +0 -21
  524. package/dist/src/components/ui/item/ItemDescription.vue.d.ts +0 -21
  525. package/dist/src/components/ui/item/ItemFooter.vue.d.ts +0 -21
  526. package/dist/src/components/ui/item/ItemGroup.vue.d.ts +0 -21
  527. package/dist/src/components/ui/item/ItemHeader.vue.d.ts +0 -21
  528. package/dist/src/components/ui/item/ItemMedia.vue.d.ts +0 -23
  529. package/dist/src/components/ui/item/ItemSeparator.vue.d.ts +0 -7
  530. package/dist/src/components/ui/item/ItemTitle.vue.d.ts +0 -21
  531. package/dist/src/components/ui/item/index.d.ts +0 -20
  532. package/dist/src/components/ui/kbd/Kbd.vue.d.ts +0 -21
  533. package/dist/src/components/ui/kbd/KbdGroup.vue.d.ts +0 -21
  534. package/dist/src/components/ui/kbd/index.d.ts +0 -2
  535. package/dist/src/components/ui/label/Label.vue.d.ts +0 -22
  536. package/dist/src/components/ui/label/index.d.ts +0 -1
  537. package/dist/src/components/ui/menubar/Menubar.vue.d.ts +0 -28
  538. package/dist/src/components/ui/menubar/MenubarCheckboxItem.vue.d.ts +0 -29
  539. package/dist/src/components/ui/menubar/MenubarContent.vue.d.ts +0 -26
  540. package/dist/src/components/ui/menubar/MenubarGroup.vue.d.ts +0 -18
  541. package/dist/src/components/ui/menubar/MenubarItem.vue.d.ts +0 -28
  542. package/dist/src/components/ui/menubar/MenubarLabel.vue.d.ts +0 -23
  543. package/dist/src/components/ui/menubar/MenubarMenu.vue.d.ts +0 -18
  544. package/dist/src/components/ui/menubar/MenubarRadioGroup.vue.d.ts +0 -22
  545. package/dist/src/components/ui/menubar/MenubarRadioItem.vue.d.ts +0 -27
  546. package/dist/src/components/ui/menubar/MenubarSeparator.vue.d.ts +0 -7
  547. package/dist/src/components/ui/menubar/MenubarShortcut.vue.d.ts +0 -21
  548. package/dist/src/components/ui/menubar/MenubarSub.vue.d.ts +0 -25
  549. package/dist/src/components/ui/menubar/MenubarSubContent.vue.d.ts +0 -38
  550. package/dist/src/components/ui/menubar/MenubarSubTrigger.vue.d.ts +0 -23
  551. package/dist/src/components/ui/menubar/MenubarTrigger.vue.d.ts +0 -22
  552. package/dist/src/components/ui/menubar/index.d.ts +0 -15
  553. package/dist/src/components/ui/native-select/NativeSelect.vue.d.ts +0 -27
  554. package/dist/src/components/ui/native-select/NativeSelectOptGroup.vue.d.ts +0 -405
  555. package/dist/src/components/ui/native-select/NativeSelectOption.vue.d.ts +0 -409
  556. package/dist/src/components/ui/native-select/index.d.ts +0 -3
  557. package/dist/src/components/ui/navigation-menu/NavigationMenu.vue.d.ts +0 -31
  558. package/dist/src/components/ui/navigation-menu/NavigationMenuContent.vue.d.ts +0 -32
  559. package/dist/src/components/ui/navigation-menu/NavigationMenuIndicator.vue.d.ts +0 -7
  560. package/dist/src/components/ui/navigation-menu/NavigationMenuItem.vue.d.ts +0 -22
  561. package/dist/src/components/ui/navigation-menu/NavigationMenuLink.vue.d.ts +0 -30
  562. package/dist/src/components/ui/navigation-menu/NavigationMenuList.vue.d.ts +0 -22
  563. package/dist/src/components/ui/navigation-menu/NavigationMenuTrigger.vue.d.ts +0 -15
  564. package/dist/src/components/ui/navigation-menu/NavigationMenuViewport.vue.d.ts +0 -7
  565. package/dist/src/components/ui/navigation-menu/index.d.ts +0 -9
  566. package/dist/src/components/ui/number-field/NumberField.vue.d.ts +0 -30
  567. package/dist/src/components/ui/number-field/NumberFieldContent.vue.d.ts +0 -21
  568. package/dist/src/components/ui/number-field/NumberFieldDecrement.vue.d.ts +0 -22
  569. package/dist/src/components/ui/number-field/NumberFieldIncrement.vue.d.ts +0 -22
  570. package/dist/src/components/ui/number-field/NumberFieldInput.vue.d.ts +0 -6
  571. package/dist/src/components/ui/number-field/index.d.ts +0 -5
  572. package/dist/src/components/ui/pagination/Pagination.vue.d.ts +0 -29
  573. package/dist/src/components/ui/pagination/PaginationContent.vue.d.ts +0 -29
  574. package/dist/src/components/ui/pagination/PaginationEllipsis.vue.d.ts +0 -22
  575. package/dist/src/components/ui/pagination/PaginationFirst.vue.d.ts +0 -26
  576. package/dist/src/components/ui/pagination/PaginationItem.vue.d.ts +0 -27
  577. package/dist/src/components/ui/pagination/PaginationLast.vue.d.ts +0 -26
  578. package/dist/src/components/ui/pagination/PaginationNext.vue.d.ts +0 -26
  579. package/dist/src/components/ui/pagination/PaginationPrevious.vue.d.ts +0 -26
  580. package/dist/src/components/ui/pagination/index.d.ts +0 -8
  581. package/dist/src/components/ui/pin-input/PinInput.vue.d.ts +0 -22
  582. package/dist/src/components/ui/pin-input/PinInputGroup.vue.d.ts +0 -22
  583. package/dist/src/components/ui/pin-input/PinInputSeparator.vue.d.ts +0 -18
  584. package/dist/src/components/ui/pin-input/PinInputSlot.vue.d.ts +0 -7
  585. package/dist/src/components/ui/pin-input/index.d.ts +0 -4
  586. package/dist/src/components/ui/popover/Popover.vue.d.ts +0 -25
  587. package/dist/src/components/ui/popover/PopoverAnchor.vue.d.ts +0 -18
  588. package/dist/src/components/ui/popover/PopoverContent.vue.d.ts +0 -39
  589. package/dist/src/components/ui/popover/PopoverTrigger.vue.d.ts +0 -18
  590. package/dist/src/components/ui/popover/index.d.ts +0 -4
  591. package/dist/src/components/ui/progress/Progress.vue.d.ts +0 -9
  592. package/dist/src/components/ui/progress/index.d.ts +0 -1
  593. package/dist/src/components/ui/radio-group/RadioGroup.vue.d.ts +0 -28
  594. package/dist/src/components/ui/radio-group/RadioGroupItem.vue.d.ts +0 -22
  595. package/dist/src/components/ui/radio-group/index.d.ts +0 -2
  596. package/dist/src/components/ui/range-calendar/RangeCalendar.vue.d.ts +0 -17
  597. package/dist/src/components/ui/range-calendar/RangeCalendarCell.vue.d.ts +0 -22
  598. package/dist/src/components/ui/range-calendar/RangeCalendarCellTrigger.vue.d.ts +0 -24
  599. package/dist/src/components/ui/range-calendar/RangeCalendarGrid.vue.d.ts +0 -22
  600. package/dist/src/components/ui/range-calendar/RangeCalendarGridBody.vue.d.ts +0 -18
  601. package/dist/src/components/ui/range-calendar/RangeCalendarGridHead.vue.d.ts +0 -18
  602. package/dist/src/components/ui/range-calendar/RangeCalendarGridRow.vue.d.ts +0 -22
  603. package/dist/src/components/ui/range-calendar/RangeCalendarHeadCell.vue.d.ts +0 -22
  604. package/dist/src/components/ui/range-calendar/RangeCalendarHeader.vue.d.ts +0 -22
  605. package/dist/src/components/ui/range-calendar/RangeCalendarHeading.vue.d.ts +0 -28
  606. package/dist/src/components/ui/range-calendar/RangeCalendarNextButton.vue.d.ts +0 -22
  607. package/dist/src/components/ui/range-calendar/RangeCalendarPrevButton.vue.d.ts +0 -22
  608. package/dist/src/components/ui/range-calendar/index.d.ts +0 -12
  609. package/dist/src/components/ui/resizable/ResizableHandle.vue.d.ts +0 -27
  610. package/dist/src/components/ui/resizable/ResizablePanel.vue.d.ts +0 -32
  611. package/dist/src/components/ui/resizable/ResizablePanelGroup.vue.d.ts +0 -28
  612. package/dist/src/components/ui/resizable/index.d.ts +0 -3
  613. package/dist/src/components/ui/scroll-area/ScrollArea.vue.d.ts +0 -22
  614. package/dist/src/components/ui/scroll-area/ScrollBar.vue.d.ts +0 -9
  615. package/dist/src/components/ui/scroll-area/index.d.ts +0 -2
  616. package/dist/src/components/ui/select/Select.vue.d.ts +0 -28
  617. package/dist/src/components/ui/select/SelectContent.vue.d.ts +0 -32
  618. package/dist/src/components/ui/select/SelectGroup.vue.d.ts +0 -18
  619. package/dist/src/components/ui/select/SelectItem.vue.d.ts +0 -23
  620. package/dist/src/components/ui/select/SelectItemText.vue.d.ts +0 -18
  621. package/dist/src/components/ui/select/SelectLabel.vue.d.ts +0 -22
  622. package/dist/src/components/ui/select/SelectScrollDownButton.vue.d.ts +0 -22
  623. package/dist/src/components/ui/select/SelectScrollUpButton.vue.d.ts +0 -22
  624. package/dist/src/components/ui/select/SelectSeparator.vue.d.ts +0 -7
  625. package/dist/src/components/ui/select/SelectTrigger.vue.d.ts +0 -25
  626. package/dist/src/components/ui/select/SelectValue.vue.d.ts +0 -18
  627. package/dist/src/components/ui/select/index.d.ts +0 -11
  628. package/dist/src/components/ui/separator/Separator.vue.d.ts +0 -10
  629. package/dist/src/components/ui/separator/index.d.ts +0 -1
  630. package/dist/src/components/ui/sheet/Sheet.vue.d.ts +0 -25
  631. package/dist/src/components/ui/sheet/SheetClose.vue.d.ts +0 -18
  632. package/dist/src/components/ui/sheet/SheetContent.vue.d.ts +0 -39
  633. package/dist/src/components/ui/sheet/SheetDescription.vue.d.ts +0 -22
  634. package/dist/src/components/ui/sheet/SheetFooter.vue.d.ts +0 -21
  635. package/dist/src/components/ui/sheet/SheetHeader.vue.d.ts +0 -21
  636. package/dist/src/components/ui/sheet/SheetOverlay.vue.d.ts +0 -22
  637. package/dist/src/components/ui/sheet/SheetTitle.vue.d.ts +0 -22
  638. package/dist/src/components/ui/sheet/SheetTrigger.vue.d.ts +0 -18
  639. package/dist/src/components/ui/sheet/index.d.ts +0 -8
  640. package/dist/src/components/ui/sidebar/Sidebar.vue.d.ts +0 -15
  641. package/dist/src/components/ui/sidebar/SidebarContent.vue.d.ts +0 -21
  642. package/dist/src/components/ui/sidebar/SidebarFooter.vue.d.ts +0 -21
  643. package/dist/src/components/ui/sidebar/SidebarGroup.vue.d.ts +0 -21
  644. package/dist/src/components/ui/sidebar/SidebarGroupAction.vue.d.ts +0 -22
  645. package/dist/src/components/ui/sidebar/SidebarGroupContent.vue.d.ts +0 -21
  646. package/dist/src/components/ui/sidebar/SidebarGroupLabel.vue.d.ts +0 -22
  647. package/dist/src/components/ui/sidebar/SidebarHeader.vue.d.ts +0 -21
  648. package/dist/src/components/ui/sidebar/SidebarInput.vue.d.ts +0 -21
  649. package/dist/src/components/ui/sidebar/SidebarInset.vue.d.ts +0 -21
  650. package/dist/src/components/ui/sidebar/SidebarMenu.vue.d.ts +0 -21
  651. package/dist/src/components/ui/sidebar/SidebarMenuAction.vue.d.ts +0 -25
  652. package/dist/src/components/ui/sidebar/SidebarMenuBadge.vue.d.ts +0 -21
  653. package/dist/src/components/ui/sidebar/SidebarMenuButton.vue.d.ts +0 -27
  654. package/dist/src/components/ui/sidebar/SidebarMenuButtonChild.vue.d.ts +0 -30
  655. package/dist/src/components/ui/sidebar/SidebarMenuItem.vue.d.ts +0 -21
  656. package/dist/src/components/ui/sidebar/SidebarMenuSkeleton.vue.d.ts +0 -7
  657. package/dist/src/components/ui/sidebar/SidebarMenuSub.vue.d.ts +0 -21
  658. package/dist/src/components/ui/sidebar/SidebarMenuSubButton.vue.d.ts +0 -27
  659. package/dist/src/components/ui/sidebar/SidebarMenuSubItem.vue.d.ts +0 -21
  660. package/dist/src/components/ui/sidebar/SidebarProvider.vue.d.ts +0 -30
  661. package/dist/src/components/ui/sidebar/SidebarRail.vue.d.ts +0 -21
  662. package/dist/src/components/ui/sidebar/SidebarSeparator.vue.d.ts +0 -21
  663. package/dist/src/components/ui/sidebar/SidebarTrigger.vue.d.ts +0 -6
  664. package/dist/src/components/ui/sidebar/index.d.ts +0 -37
  665. package/dist/src/components/ui/sidebar/utils.d.ts +0 -56
  666. package/dist/src/components/ui/skeleton/Skeleton.vue.d.ts +0 -6
  667. package/dist/src/components/ui/skeleton/index.d.ts +0 -1
  668. package/dist/src/components/ui/slider/Slider.vue.d.ts +0 -13
  669. package/dist/src/components/ui/slider/index.d.ts +0 -1
  670. package/dist/src/components/ui/sonner/Sonner.vue.d.ts +0 -3
  671. package/dist/src/components/ui/sonner/index.d.ts +0 -1
  672. package/dist/src/components/ui/spinner/Spinner.vue.d.ts +0 -6
  673. package/dist/src/components/ui/spinner/index.d.ts +0 -1
  674. package/dist/src/components/ui/stepper/Stepper.vue.d.ts +0 -38
  675. package/dist/src/components/ui/stepper/StepperDescription.vue.d.ts +0 -22
  676. package/dist/src/components/ui/stepper/StepperIndicator.vue.d.ts +0 -22
  677. package/dist/src/components/ui/stepper/StepperItem.vue.d.ts +0 -22
  678. package/dist/src/components/ui/stepper/StepperSeparator.vue.d.ts +0 -7
  679. package/dist/src/components/ui/stepper/StepperTitle.vue.d.ts +0 -22
  680. package/dist/src/components/ui/stepper/StepperTrigger.vue.d.ts +0 -22
  681. package/dist/src/components/ui/stepper/index.d.ts +0 -7
  682. package/dist/src/components/ui/switch/Switch.vue.d.ts +0 -29
  683. package/dist/src/components/ui/switch/index.d.ts +0 -1
  684. package/dist/src/components/ui/table/Table.vue.d.ts +0 -21
  685. package/dist/src/components/ui/table/TableBody.vue.d.ts +0 -21
  686. package/dist/src/components/ui/table/TableCaption.vue.d.ts +0 -21
  687. package/dist/src/components/ui/table/TableCell.vue.d.ts +0 -21
  688. package/dist/src/components/ui/table/TableEmpty.vue.d.ts +0 -24
  689. package/dist/src/components/ui/table/TableFooter.vue.d.ts +0 -21
  690. package/dist/src/components/ui/table/TableHead.vue.d.ts +0 -21
  691. package/dist/src/components/ui/table/TableHeader.vue.d.ts +0 -21
  692. package/dist/src/components/ui/table/TableRow.vue.d.ts +0 -21
  693. package/dist/src/components/ui/table/index.d.ts +0 -9
  694. package/dist/src/components/ui/table/utils.d.ts +0 -3
  695. package/dist/src/components/ui/tabs/Tabs.vue.d.ts +0 -28
  696. package/dist/src/components/ui/tabs/TabsContent.vue.d.ts +0 -22
  697. package/dist/src/components/ui/tabs/TabsList.vue.d.ts +0 -22
  698. package/dist/src/components/ui/tabs/TabsTrigger.vue.d.ts +0 -22
  699. package/dist/src/components/ui/tabs/index.d.ts +0 -4
  700. package/dist/src/components/ui/tag/NsTag.vue.d.ts +0 -42
  701. package/dist/src/components/ui/tag/index.d.ts +0 -8
  702. package/dist/src/components/ui/tags-input/TagsInput.vue.d.ts +0 -34
  703. package/dist/src/components/ui/tags-input/TagsInputInput.vue.d.ts +0 -7
  704. package/dist/src/components/ui/tags-input/TagsInputItem.vue.d.ts +0 -22
  705. package/dist/src/components/ui/tags-input/TagsInputItemDelete.vue.d.ts +0 -22
  706. package/dist/src/components/ui/tags-input/TagsInputItemText.vue.d.ts +0 -22
  707. package/dist/src/components/ui/tags-input/index.d.ts +0 -5
  708. package/dist/src/components/ui/text-input/NsTextInput.vue.d.ts +0 -79
  709. package/dist/src/components/ui/text-input/index.d.ts +0 -15
  710. package/dist/src/components/ui/textarea/Textarea.vue.d.ts +0 -12
  711. package/dist/src/components/ui/textarea/index.d.ts +0 -1
  712. package/dist/src/components/ui/toggle/Toggle.vue.d.ts +0 -33
  713. package/dist/src/components/ui/toggle/index.d.ts +0 -7
  714. package/dist/src/components/ui/toggle-group/ToggleGroup.vue.d.ts +0 -36
  715. package/dist/src/components/ui/toggle-group/ToggleGroupItem.vue.d.ts +0 -29
  716. package/dist/src/components/ui/toggle-group/index.d.ts +0 -2
  717. package/dist/src/components/ui/tooltip/Tooltip.vue.d.ts +0 -24
  718. package/dist/src/components/ui/tooltip/TooltipContent.vue.d.ts +0 -30
  719. package/dist/src/components/ui/tooltip/TooltipProvider.vue.d.ts +0 -20
  720. package/dist/src/components/ui/tooltip/TooltipTrigger.vue.d.ts +0 -18
  721. package/dist/src/components/ui/tooltip/index.d.ts +0 -4
  722. package/dist/src/composables/index.d.ts +0 -8
  723. package/dist/src/composables/useDateTimeService.d.ts +0 -10
  724. package/dist/src/composables/useFilterService.d.ts +0 -8
  725. package/dist/src/composables/useIconService.d.ts +0 -153
  726. package/dist/src/composables/usePageTitleService.d.ts +0 -3
  727. package/dist/src/composables/useQueryParamService.d.ts +0 -13
  728. package/dist/src/composables/useStorageService.d.ts +0 -5
  729. package/dist/src/composables/useTaskService.d.ts +0 -18
  730. package/dist/src/composables/useUtilService.d.ts +0 -27
  731. package/dist/src/lib/utils.d.ts +0 -2
  732. package/dist/src/main.d.ts +0 -0
  733. package/src/components/ui/checkbox/NsCheckbox.vue +0 -123
  734. package/src/components/ui/empty-state/NsEmptyState.vue +0 -149
  735. package/src/components/ui/inline-notification/NsInlineNotification.vue +0 -163
  736. package/src/components/ui/tag/NsTag.vue +0 -114
  737. package/src/components/ui/text-input/NsTextInput.vue +0 -269
  738. package/src/components/ui/toggle/NsToggle.vue +0 -126
@@ -1,163 +0,0 @@
1
- <script setup lang="ts">
2
- import { computed } from 'vue'
3
- import { X, AlertCircle, AlertTriangle, CheckCircle, Info, Loader2 } from 'lucide-vue-next'
4
- import { cn } from '@/lib/utils'
5
- import { inlineNotificationVariants, type InlineNotificationVariants } from '.'
6
-
7
- interface Props {
8
- title?: string
9
- description?: string
10
- variant?: InlineNotificationVariants['variant']
11
- showCloseButton?: boolean
12
- actionLabel?: string
13
- closeAriaLabel?: string
14
- loading?: boolean
15
- timer?: number
16
- lowContrast?: boolean
17
- class?: string
18
- icon?: object // Custom icon component
19
- }
20
-
21
- const props = withDefaults(defineProps<Props>(), {
22
- variant: 'info',
23
- showCloseButton: false,
24
- closeAriaLabel: 'Dismiss notification',
25
- loading: false,
26
- lowContrast: false,
27
- })
28
-
29
- const emit = defineEmits<{
30
- close: []
31
- action: []
32
- }>()
33
-
34
- const NotificationIcon = computed(() => {
35
- if (props.icon) {
36
- return props.icon
37
- }
38
-
39
- switch (props.variant) {
40
- case 'destructive':
41
- return AlertCircle
42
- case 'warning':
43
- return AlertTriangle
44
- case 'success':
45
- return CheckCircle
46
- case 'info':
47
- default:
48
- return Info
49
- }
50
- })
51
-
52
- const variantToKind = {
53
- destructive: 'error',
54
- warning: 'warning',
55
- success: 'success',
56
- info: 'info',
57
- default: 'info'
58
- }
59
-
60
- const kind = computed(() => variantToKind[props.variant])
61
-
62
- const hasTitle = computed(() => props.title || $slots.title)
63
- const hasDescription = computed(() => props.description || $slots.description)
64
- const hasAction = computed(() => props.actionLabel)
65
- const hasTimer = computed(() => props.timer)
66
- const hasLoading = computed(() => props.loading)
67
-
68
- const showCloseButtonVisible = computed(() => props.showCloseButton && !hasLoading.value)
69
-
70
- const role = computed(() => {
71
- if (props.variant === 'destructive' || props.variant === 'warning') {
72
- return 'alert'
73
- }
74
- return 'status'
75
- })
76
-
77
- const ariaLive = computed(() => {
78
- if (props.variant === 'destructive') {
79
- return 'assertive'
80
- }
81
- return 'polite'
82
- })
83
- </script>
84
-
85
- <template>
86
- <div
87
- :class="cn(
88
- inlineNotificationVariants({ variant }),
89
- {
90
- 'opacity-75': lowContrast
91
- },
92
- props.class
93
- )"
94
- :role="role"
95
- :aria-live="ariaLive"
96
- >
97
- <!-- Icon -->
98
- <component
99
- :is="NotificationIcon"
100
- class="h-4 w-4"
101
- />
102
-
103
- <!-- Loading spinner -->
104
- <Loader2
105
- v-if="loading"
106
- class="h-4 w-4 animate-spin absolute right-12 top-4"
107
- />
108
-
109
- <!-- Timer circle -->
110
- <div
111
- v-if="timer"
112
- class="h-4 w-4 absolute right-12 top-4"
113
- >
114
- <!-- You can integrate NsCircleTimer component here -->
115
- <div class="h-4 w-4 rounded-full border-2 border-current animate-pulse" />
116
- </div>
117
-
118
- <!-- Content -->
119
- <div class="grid gap-1">
120
- <!-- Title -->
121
- <h4
122
- v-if="hasTitle"
123
- class="text-sm font-medium leading-none"
124
- >
125
- <slot name="title">{{ title }}</slot>
126
- </h4>
127
-
128
- <!-- Description -->
129
- <p
130
- v-if="hasDescription"
131
- :class="cn('text-sm opacity-90', {
132
- 'mr-12': hasAction || showCloseButtonVisible || hasTimer || hasLoading
133
- })"
134
- >
135
- <slot name="description">{{ description }}</slot>
136
- </p>
137
-
138
- <!-- Action button -->
139
- <button
140
- v-if="hasAction"
141
- type="button"
142
- class="inline-flex items-center text-sm font-medium underline underline-offset-2 hover:no-underline focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 rounded-sm"
143
- @click="emit('action')"
144
- >
145
- {{ actionLabel }}
146
- </button>
147
- </div>
148
-
149
- <!-- Close button -->
150
- <button
151
- v-if="showCloseButtonVisible"
152
- type="button"
153
- :aria-label="closeAriaLabel"
154
- class="absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none"
155
- @click="emit('close')"
156
- >
157
- <X class="h-4 w-4" />
158
- </button>
159
-
160
- <!-- Extra content -->
161
- <slot name="extra" />
162
- </div>
163
- </template>
@@ -1,114 +0,0 @@
1
- <script setup lang="ts">
2
- import { computed } from 'vue'
3
- import { X } from 'lucide-vue-next'
4
- import { cn } from '@/lib/utils'
5
- import { tagVariants, type TagVariants } from '.'
6
-
7
- interface Props {
8
- label?: string
9
- variant?: TagVariants['variant']
10
- size?: TagVariants['size']
11
- interactive?: boolean
12
- removable?: boolean
13
- disabled?: boolean
14
- icon?: string // SVG icon string or component
15
- clearAriaLabel?: string
16
- title?: string
17
- class?: string
18
- }
19
-
20
- const props = withDefaults(defineProps<Props>(), {
21
- variant: 'default',
22
- size: 'default',
23
- interactive: false,
24
- removable: false,
25
- clearAriaLabel: 'Remove tag',
26
- })
27
-
28
- const emit = defineEmits<{
29
- remove: []
30
- click: [event: Event]
31
- }>()
32
-
33
- const isClickable = computed(() => props.interactive && !props.disabled)
34
- const isFilter = computed(() => props.removable)
35
-
36
- const handleClick = (event: Event) => {
37
- if (isClickable.value) {
38
- emit('click', event)
39
- }
40
- }
41
-
42
- const handleRemove = (event: Event) => {
43
- event.stopPropagation()
44
- if (!props.disabled) {
45
- emit('remove')
46
- }
47
- }
48
-
49
- const handleKeydown = (event: KeyboardEvent) => {
50
- if (isFilter.value && (event.key === 'Enter' || event.key === ' ')) {
51
- event.preventDefault()
52
- handleRemove(event)
53
- }
54
- }
55
- </script>
56
-
57
- <template>
58
- <component
59
- :is="isClickable ? 'button' : 'div'"
60
- :class="cn(
61
- tagVariants({ variant, size, interactive }),
62
- {
63
- 'opacity-50 cursor-not-allowed': disabled,
64
- 'cursor-default': isFilter && !interactive,
65
- },
66
- props.class
67
- )"
68
- :disabled="disabled"
69
- :title="title || label"
70
- @click="handleClick"
71
- @keydown="handleKeydown"
72
- :aria-label="label"
73
- role="button"
74
- tabindex="0"
75
- >
76
- <!-- Icon slot/component -->
77
- <div v-if="icon && !isFilter" class="flex items-center justify-center">
78
- <component
79
- v-if="typeof icon === 'object'"
80
- :is="icon"
81
- class="h-3 w-3"
82
- />
83
- <div
84
- v-else-if="typeof icon === 'string'"
85
- v-html="icon"
86
- class="h-3 w-3"
87
- />
88
- </div>
89
-
90
- <!-- Label content -->
91
- <span class="truncate max-w-[200px]">
92
- <slot>{{ label }}</slot>
93
- </span>
94
-
95
- <!-- Remove button for filter tags -->
96
- <button
97
- v-if="isFilter"
98
- type="button"
99
- :class="cn(
100
- 'flex items-center justify-center rounded-full hover:bg-black/10 dark:hover:bg-white/10 transition-colors',
101
- 'ml-1 -mr-1 h-4 w-4 p-0',
102
- {
103
- 'opacity-50 cursor-not-allowed': disabled,
104
- }
105
- )"
106
- :disabled="disabled"
107
- :aria-label="clearAriaLabel"
108
- :title="clearAriaLabel"
109
- @click="handleRemove"
110
- >
111
- <X class="h-3 w-3" />
112
- </button>
113
- </component>
114
- </template>
@@ -1,269 +0,0 @@
1
- <script setup lang="ts">
2
- import { computed, ref, useId, nextTick } from 'vue'
3
- import { Eye, EyeOff, AlertCircle, AlertTriangle, CheckCircle } from 'lucide-vue-next'
4
- import { cn } from '@/lib/utils'
5
- import { textInputVariants, labelVariants, helperTextVariants, type TextInputVariants, type LabelVariants, type HelperTextVariants } from '.'
6
-
7
- interface Props {
8
- modelValue?: string
9
- value?: string
10
- defaultValue?: string
11
- type?: string
12
- placeholder?: string
13
- disabled?: boolean
14
- readonly?: boolean
15
- required?: boolean
16
- name?: string
17
- id?: string
18
- label?: string
19
- description?: string
20
- errorMessage?: string
21
- warningMessage?: string
22
- successMessage?: string
23
- helperText?: string
24
- placeholder?: string
25
- prefix?: string
26
- suffix?: string
27
- variant?: TextInputVariants['variant']
28
- size?: TextInputVariants['size']
29
- labelVariant?: LabelVariants['variant']
30
- class?: string
31
- labelClass?: string
32
- inputClass?: string
33
- containerClass?: string
34
- showPasswordToggle?: boolean
35
- validateOnChange?: boolean
36
- validator?: (value: string) => string | null
37
- }
38
-
39
- const props = withDefaults(defineProps<Props>(), {
40
- type: 'text',
41
- variant: 'default',
42
- size: 'default',
43
- labelVariant: 'default',
44
- showPasswordToggle: false,
45
- validateOnChange: false,
46
- })
47
-
48
- const emit = defineEmits<{
49
- 'update:modelValue': [value: string]
50
- 'update:value': [value: string]
51
- 'focus': [event: FocusEvent]
52
- 'blur': [event: FocusEvent]
53
- 'input': [event: Event]
54
- 'change': [event: Event]
55
- }>()
56
-
57
- const uniqueId = useId()
58
- const inputId = props.id || uniqueId
59
-
60
- const isPasswordVisible = ref(false)
61
- const isFocused = ref(false)
62
- const inputRef = ref<HTMLInputElement>()
63
-
64
- const isPassword = computed(() => props.type === 'password')
65
- const actualType = computed(() => {
66
- if (isPassword.value) {
67
- return isPasswordVisible.value ? 'text' : 'password'
68
- }
69
- return props.type
70
- })
71
-
72
- const inputVariant = computed((): TextInputVariants['variant'] => {
73
- if (props.errorMessage) return 'destructive'
74
- if (props.warningMessage) return 'warning'
75
- if (props.successMessage) return 'success'
76
- return props.variant
77
- })
78
-
79
- const labelVariant = computed((): LabelVariants['variant'] => {
80
- if (props.errorMessage) return 'destructive'
81
- if (props.warningMessage) return 'warning'
82
- if (props.successMessage) return 'success'
83
- return props.labelVariant
84
- })
85
-
86
- const helperTextVariant = computed((): HelperTextVariants['variant'] => {
87
- if (props.errorMessage) return 'destructive'
88
- if (props.warningMessage) return 'warning'
89
- if (props.successMessage) return 'success'
90
- return 'default'
91
- })
92
-
93
- const displayMessage = computed(() => {
94
- if (props.errorMessage) return props.errorMessage
95
- if (props.warningMessage) return props.warningMessage
96
- if (props.successMessage) return props.successMessage
97
- if (props.helperText) return props.helperText
98
- return ''
99
- })
100
-
101
- const StatusIcon = computed(() => {
102
- if (props.errorMessage) return AlertCircle
103
- if (props.warningMessage) return AlertTriangle
104
- if (props.successMessage) return CheckCircle
105
- return null
106
- })
107
-
108
- const PasswordIcon = computed(() => isPasswordVisible.value ? EyeOff : Eye)
109
-
110
- const internalValue = computed({
111
- get: () => props.modelValue ?? props.value ?? '',
112
- set: (value: string) => {
113
- emit('update:modelValue', value)
114
- emit('update:value', value)
115
- }
116
- })
117
-
118
- const togglePasswordVisibility = () => {
119
- isPasswordVisible.value = !isPasswordVisible.value
120
- }
121
-
122
- const handleInput = (event: Event) => {
123
- const target = event.target as HTMLInputElement
124
- internalValue.value = target.value
125
- emit('input', event)
126
- }
127
-
128
- const handleChange = (event: Event) => {
129
- emit('change', event)
130
- }
131
-
132
- const handleFocus = (event: FocusEvent) => {
133
- isFocused.value = true
134
- emit('focus', event)
135
- }
136
-
137
- const handleBlur = (event: FocusEvent) => {
138
- isFocused.value = false
139
- if (props.validateOnChange && props.validator) {
140
- const error = props.validator(internalValue.value)
141
- // You might want to emit validation errors or handle them differently
142
- }
143
- emit('blur', event)
144
- }
145
-
146
- const focus = () => {
147
- nextTick(() => {
148
- inputRef.value?.focus()
149
- })
150
- }
151
-
152
- defineExpose({
153
- focus,
154
- inputRef,
155
- })
156
- </script>
157
-
158
- <template>
159
- <div :class="cn('grid w-full max-w-sm gap-1.5', containerClass)">
160
- <label
161
- v-if="label || $slots.label"
162
- :for="inputId"
163
- :class="cn(
164
- labelVariants({ variant: labelVariant }),
165
- 'flex items-center gap-1',
166
- {
167
- 'cursor-not-allowed': disabled
168
- },
169
- labelClass
170
- )"
171
- >
172
- <slot name="label">{{ label }}</slot>
173
- <slot name="label-addon" />
174
- </label>
175
-
176
- <div class="relative">
177
- <span
178
- v-if="prefix"
179
- :class="cn(
180
- 'absolute left-3 top-1/2 transform -translate-y-1/2 text-sm text-muted-foreground',
181
- {
182
- 'text-destructive': variant === 'destructive',
183
- 'text-orange-600': variant === 'warning',
184
- 'text-green-600': variant === 'success'
185
- }
186
- )"
187
- >
188
- {{ prefix }}
189
- </span>
190
-
191
- <input
192
- :id="inputId"
193
- ref="inputRef"
194
- :type="actualType"
195
- :class="cn(
196
- textInputVariants({ variant: inputVariant, size }),
197
- {
198
- 'pl-8': prefix,
199
- 'pr-16': (isPassword && showPasswordToggle) || StatusIcon,
200
- 'pr-12': StatusIcon && !(isPassword && showPasswordToggle),
201
- 'ring-2 ring-ring ring-offset-2': isFocused,
202
- },
203
- inputClass
204
- )"
205
- :placeholder="placeholder"
206
- :disabled="disabled"
207
- :readonly="readonly"
208
- :required="required"
209
- :name="name"
210
- :value="internalValue"
211
- @input="handleInput"
212
- @change="handleChange"
213
- @focus="handleFocus"
214
- @blur="handleBlur"
215
- v-bind="$attrs"
216
- />
217
-
218
- <div
219
- v-if="StatusIcon || (isPassword && showPasswordToggle)"
220
- :class="cn(
221
- 'absolute right-0 top-1/2 transform -translate-y-1/2 flex items-center gap-1 pr-3',
222
- {
223
- 'pointer-events-none': StatusIcon && !(isPassword && showPasswordToggle)
224
- }
225
- )"
226
- >
227
- <component
228
- v-if="StatusIcon"
229
- :is="StatusIcon"
230
- :class="cn('h-4 w-4', {
231
- 'text-destructive': variant === 'destructive',
232
- 'text-orange-600': variant === 'warning',
233
- 'text-green-600': variant === 'success'
234
- })"
235
- />
236
-
237
- <button
238
- v-if="isPassword && showPasswordToggle"
239
- type="button"
240
- :class="cn(
241
- 'text-muted-foreground hover:text-foreground transition-colors',
242
- {
243
- 'pointer-events-none': disabled
244
- }
245
- )"
246
- :disabled="disabled"
247
- @click="togglePasswordVisibility"
248
- :title="isPasswordVisible ? 'Hide password' : 'Show password'"
249
- >
250
- <component :is="PasswordIcon" class="h-4 w-4" />
251
- </button>
252
- </div>
253
- </div>
254
-
255
- <p
256
- v-if="displayMessage"
257
- :class="cn(helperTextVariants({ variant: helperTextVariant }), 'flex items-start gap-1')"
258
- >
259
- <component
260
- v-if="StatusIcon"
261
- :is="StatusIcon"
262
- class="h-4 w-4 mt-0.5 flex-shrink-0"
263
- />
264
- <span>{{ displayMessage }}</span>
265
- </p>
266
-
267
- <slot name="extra" />
268
- </div>
269
- </template>
@@ -1,126 +0,0 @@
1
- <script setup lang="ts">
2
- import { computed, useId } from 'vue'
3
- import { SwitchRoot, SwitchThumb } from 'reka-ui'
4
- import { cn } from '@/lib/utils'
5
- import { toggleVariants, toggleThumbVariants, labelVariants, type ToggleVariants, type LabelVariants } from '.'
6
-
7
- interface Props {
8
- modelValue?: boolean
9
- checked?: boolean
10
- defaultChecked?: boolean
11
- disabled?: boolean
12
- required?: boolean
13
- name?: string
14
- value?: string
15
- id?: string
16
- label?: string
17
- hideLabel?: boolean
18
- description?: string
19
- leftText?: string
20
- rightText?: string
21
- variant?: ToggleVariants['variant']
22
- size?: ToggleVariants['size']
23
- labelVariant?: LabelVariants['variant']
24
- class?: string
25
- labelClass?: string
26
- containerClass?: string
27
- }
28
-
29
- const props = withDefaults(defineProps<Props>(), {
30
- variant: 'default',
31
- size: 'default',
32
- labelVariant: 'default',
33
- leftText: 'Off',
34
- rightText: 'On',
35
- })
36
-
37
- const emit = defineEmits<{
38
- 'update:modelValue': [value: boolean]
39
- 'update:checked': [value: boolean]
40
- }>()
41
-
42
- const uniqueId = useId()
43
- const toggleId = props.id || uniqueId
44
-
45
- const isChecked = computed({
46
- get: () => props.modelValue ?? props.checked ?? false,
47
- set: (value: boolean) => {
48
- emit('update:modelValue', value)
49
- emit('update:checked', value)
50
- }
51
- })
52
- </script>
53
-
54
- <template>
55
- <div :class="cn('flex items-center gap-3', containerClass)">
56
- <SwitchRoot
57
- :id="toggleId"
58
- v-model:checked="isChecked"
59
- :default-checked="defaultChecked"
60
- :disabled="disabled"
61
- :required="required"
62
- :name="name"
63
- :value="value"
64
- :class="cn(toggleVariants({ variant, size }), props.class)"
65
- >
66
- <SwitchThumb :class="toggleThumbVariants({ size })" />
67
- </SwitchRoot>
68
-
69
- <div class="grid gap-1.5">
70
- <label
71
- v-if="label || $slots.label"
72
- :for="toggleId"
73
- :class="cn(
74
- labelVariants({ variant: labelVariant }),
75
- 'cursor-pointer',
76
- {
77
- 'sr-only': hideLabel,
78
- 'cursor-not-allowed': disabled
79
- },
80
- labelClass
81
- )"
82
- >
83
- <slot name="label">{{ label }}</slot>
84
- </label>
85
-
86
- <div
87
- v-if="!hideLabel && (leftText || rightText || $slots['left-text'] || $slots['right-text'])"
88
- :class="cn(
89
- 'flex items-center gap-2 text-xs font-medium',
90
- {
91
- 'text-muted-foreground': !isChecked,
92
- 'text-primary': isChecked,
93
- 'text-destructive': variant === 'destructive' && isChecked,
94
- 'text-green-600': variant === 'success' && isChecked,
95
- 'text-orange-600': variant === 'warning' && isChecked,
96
- }
97
- )"
98
- >
99
- <span :class="{ 'opacity-50': isChecked }">
100
- <slot name="left-text">{{ leftText }}</slot>
101
- </span>
102
-
103
- <div :class="cn(
104
- 'w-8 h-px bg-current',
105
- {
106
- 'opacity-20': !isChecked,
107
- 'opacity-100': isChecked
108
- }
109
- )" />
110
-
111
- <span :class="{ 'opacity-50': !isChecked }">
112
- <slot name="right-text">{{ rightText }}</slot>
113
- </span>
114
- </div>
115
-
116
- <p
117
- v-if="description"
118
- class="text-sm text-muted-foreground"
119
- >
120
- {{ description }}
121
- </p>
122
-
123
- <slot name="extra" />
124
- </div>
125
- </div>
126
- </template>