@nyxwire/vue 0.0.0-stage → 0.1.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 (644) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +148 -2
  3. package/dist/components/actions/alert/NwAlert.vue.d.ts +37 -0
  4. package/dist/components/actions/alert/NwAlertDescription.vue.d.ts +17 -0
  5. package/dist/components/actions/alert/NwAlertTitle.vue.d.ts +17 -0
  6. package/dist/components/actions/alert/index.d.ts +6 -0
  7. package/dist/components/actions/aspect-ratio/NwAspectRatio.vue.d.ts +17 -0
  8. package/dist/components/actions/aspect-ratio/index.d.ts +2 -0
  9. package/dist/components/actions/avatar/NwAvatar.vue.d.ts +29 -0
  10. package/dist/components/actions/avatar/NwAvatarFallback.vue.d.ts +15 -0
  11. package/dist/components/actions/avatar/NwAvatarGroup.vue.d.ts +14 -0
  12. package/dist/components/actions/avatar/NwAvatarImage.vue.d.ts +11 -0
  13. package/dist/components/actions/avatar/context.d.ts +3 -0
  14. package/dist/components/actions/avatar/index.d.ts +9 -0
  15. package/dist/components/actions/badge/NwBadge.vue.d.ts +23 -0
  16. package/dist/components/actions/badge/index.d.ts +2 -0
  17. package/dist/components/actions/button/NwButton.vue.d.ts +29 -0
  18. package/dist/components/actions/button/NwButtonGroup.vue.d.ts +19 -0
  19. package/dist/components/actions/button/index.d.ts +4 -0
  20. package/dist/components/actions/card/NwCard.vue.d.ts +25 -0
  21. package/dist/components/actions/card/NwCardContent.vue.d.ts +17 -0
  22. package/dist/components/actions/card/NwCardDescription.vue.d.ts +17 -0
  23. package/dist/components/actions/card/NwCardFooter.vue.d.ts +17 -0
  24. package/dist/components/actions/card/NwCardHeader.vue.d.ts +17 -0
  25. package/dist/components/actions/card/NwCardTitle.vue.d.ts +17 -0
  26. package/dist/components/actions/card/index.d.ts +12 -0
  27. package/dist/components/actions/chip/NwChip.vue.d.ts +24 -0
  28. package/dist/components/actions/chip/index.d.ts +1 -0
  29. package/dist/components/actions/code/NwCode.vue.d.ts +20 -0
  30. package/dist/components/actions/code/index.d.ts +1 -0
  31. package/dist/components/actions/data-table/NwDataTable.vue.d.ts +37 -0
  32. package/dist/components/actions/data-table/index.d.ts +1 -0
  33. package/dist/components/actions/empty/NwEmpty.vue.d.ts +19 -0
  34. package/dist/components/actions/empty/index.d.ts +1 -0
  35. package/dist/components/actions/hud-panel/NwHudPanel.vue.d.ts +45 -0
  36. package/dist/components/actions/hud-panel/index.d.ts +2 -0
  37. package/dist/components/actions/icon-button/NwIconButton.vue.d.ts +21 -0
  38. package/dist/components/actions/icon-button/index.d.ts +1 -0
  39. package/dist/components/actions/index.d.ts +28 -0
  40. package/dist/components/actions/kbd/NwKbd.vue.d.ts +18 -0
  41. package/dist/components/actions/kbd/NwKeyHint.vue.d.ts +22 -0
  42. package/dist/components/actions/kbd/index.d.ts +5 -0
  43. package/dist/components/actions/layout/NwLayout.vue.d.ts +18 -0
  44. package/dist/components/actions/layout/index.d.ts +1 -0
  45. package/dist/components/actions/link/NwLink.vue.d.ts +27 -0
  46. package/dist/components/actions/link/index.d.ts +3 -0
  47. package/dist/components/actions/list/NwList.vue.d.ts +19 -0
  48. package/dist/components/actions/list/index.d.ts +1 -0
  49. package/dist/components/actions/meter/NwMeter.vue.d.ts +15 -0
  50. package/dist/components/actions/meter/index.d.ts +1 -0
  51. package/dist/components/actions/neon-text/NwNeonText.vue.d.ts +26 -0
  52. package/dist/components/actions/neon-text/index.d.ts +3 -0
  53. package/dist/components/actions/progress/NwProgress.vue.d.ts +21 -0
  54. package/dist/components/actions/progress/index.d.ts +2 -0
  55. package/dist/components/actions/rating/NwRating.vue.d.ts +21 -0
  56. package/dist/components/actions/rating/index.d.ts +2 -0
  57. package/dist/components/actions/separator/NwSeparator.vue.d.ts +12 -0
  58. package/dist/components/actions/separator/index.d.ts +2 -0
  59. package/dist/components/actions/skeleton/NwSkeleton.vue.d.ts +21 -0
  60. package/dist/components/actions/skeleton/index.d.ts +3 -0
  61. package/dist/components/actions/spinner/NwSpinner.vue.d.ts +17 -0
  62. package/dist/components/actions/spinner/index.d.ts +3 -0
  63. package/dist/components/actions/stat/NwStat.vue.d.ts +8 -0
  64. package/dist/components/actions/stat/index.d.ts +1 -0
  65. package/dist/components/actions/stat-bar/NwStatBar.vue.d.ts +35 -0
  66. package/dist/components/actions/stat-bar/index.d.ts +2 -0
  67. package/dist/components/actions/table/NwTable.vue.d.ts +24 -0
  68. package/dist/components/actions/table/NwTableBody.vue.d.ts +17 -0
  69. package/dist/components/actions/table/NwTableCaption.vue.d.ts +17 -0
  70. package/dist/components/actions/table/NwTableCell.vue.d.ts +17 -0
  71. package/dist/components/actions/table/NwTableFooter.vue.d.ts +17 -0
  72. package/dist/components/actions/table/NwTableHead.vue.d.ts +21 -0
  73. package/dist/components/actions/table/NwTableHeader.vue.d.ts +17 -0
  74. package/dist/components/actions/table/NwTableRow.vue.d.ts +19 -0
  75. package/dist/components/actions/table/context.d.ts +4 -0
  76. package/dist/components/actions/table/index.d.ts +16 -0
  77. package/dist/components/actions/toggle/NwToggle.vue.d.ts +22 -0
  78. package/dist/components/actions/toggle/NwToggleGroup.vue.d.ts +23 -0
  79. package/dist/components/actions/toggle/NwToggleGroupItem.vue.d.ts +18 -0
  80. package/dist/components/actions/toggle/context.d.ts +7 -0
  81. package/dist/components/actions/toggle/index.d.ts +7 -0
  82. package/dist/components/actions/toolbar/NwToolbar.vue.d.ts +15 -0
  83. package/dist/components/actions/toolbar/NwToolbarButton.vue.d.ts +22 -0
  84. package/dist/components/actions/toolbar/NwToolbarLink.vue.d.ts +15 -0
  85. package/dist/components/actions/toolbar/NwToolbarSeparator.vue.d.ts +8 -0
  86. package/dist/components/actions/toolbar/NwToolbarToggleGroup.vue.d.ts +25 -0
  87. package/dist/components/actions/toolbar/NwToolbarToggleItem.vue.d.ts +18 -0
  88. package/dist/components/actions/toolbar/index.d.ts +12 -0
  89. package/dist/components/color/color-area/NwColorArea.vue.d.ts +30 -0
  90. package/dist/components/color/color-area/NwColorAreaThumb.vue.d.ts +20 -0
  91. package/dist/components/color/color-area/index.d.ts +4 -0
  92. package/dist/components/color/color-field/NwColorField.vue.d.ts +20 -0
  93. package/dist/components/color/color-field/index.d.ts +2 -0
  94. package/dist/components/color/color-picker/NwColorPicker.vue.d.ts +46 -0
  95. package/dist/components/color/color-picker/index.d.ts +2 -0
  96. package/dist/components/color/color-slider/NwColorSlider.vue.d.ts +19 -0
  97. package/dist/components/color/color-slider/NwColorSliderTrack.vue.d.ts +21 -0
  98. package/dist/components/color/color-slider/index.d.ts +4 -0
  99. package/dist/components/color/color-swatch/NwColorSwatch.vue.d.ts +23 -0
  100. package/dist/components/color/color-swatch/index.d.ts +2 -0
  101. package/dist/components/color/color-swatch-picker/NwColorSwatchPicker.vue.d.ts +38 -0
  102. package/dist/components/color/color-swatch-picker/NwColorSwatchPickerItem.vue.d.ts +29 -0
  103. package/dist/components/color/color-swatch-picker/index.d.ts +4 -0
  104. package/dist/components/color/index.d.ts +6 -0
  105. package/dist/components/datetime/calendar/NwCalendar.vue.d.ts +36 -0
  106. package/dist/components/datetime/calendar/NwCalendarCell.vue.d.ts +20 -0
  107. package/dist/components/datetime/calendar/index.d.ts +3 -0
  108. package/dist/components/datetime/calendar/parts.d.ts +14 -0
  109. package/dist/components/datetime/date-field/NwDateField.vue.d.ts +36 -0
  110. package/dist/components/datetime/date-field/index.d.ts +3 -0
  111. package/dist/components/datetime/date-field/parts.d.ts +19 -0
  112. package/dist/components/datetime/date-picker/NwDatePicker.vue.d.ts +36 -0
  113. package/dist/components/datetime/date-picker/index.d.ts +3 -0
  114. package/dist/components/datetime/date-picker/parts.d.ts +21 -0
  115. package/dist/components/datetime/date-range-field/NwDateRangeField.vue.d.ts +42 -0
  116. package/dist/components/datetime/date-range-field/index.d.ts +3 -0
  117. package/dist/components/datetime/date-range-field/parts.d.ts +19 -0
  118. package/dist/components/datetime/date-range-picker/NwDateRangePicker.vue.d.ts +41 -0
  119. package/dist/components/datetime/date-range-picker/index.d.ts +3 -0
  120. package/dist/components/datetime/date-range-picker/parts.d.ts +21 -0
  121. package/dist/components/datetime/index.d.ts +12 -0
  122. package/dist/components/datetime/month-cell-trigger.d.ts +13 -0
  123. package/dist/components/datetime/month-picker/NwMonthPicker.vue.d.ts +31 -0
  124. package/dist/components/datetime/month-picker/index.d.ts +3 -0
  125. package/dist/components/datetime/month-picker/parts.d.ts +12 -0
  126. package/dist/components/datetime/month-range-picker/NwMonthRangePicker.vue.d.ts +33 -0
  127. package/dist/components/datetime/month-range-picker/index.d.ts +3 -0
  128. package/dist/components/datetime/month-range-picker/parts.d.ts +12 -0
  129. package/dist/components/datetime/range-calendar/NwRangeCalendar.vue.d.ts +40 -0
  130. package/dist/components/datetime/range-calendar/NwRangeCalendarCell.vue.d.ts +20 -0
  131. package/dist/components/datetime/range-calendar/index.d.ts +3 -0
  132. package/dist/components/datetime/range-calendar/parts.d.ts +14 -0
  133. package/dist/components/datetime/styled.d.ts +12 -0
  134. package/dist/components/datetime/time-field/NwTimeField.vue.d.ts +36 -0
  135. package/dist/components/datetime/time-field/index.d.ts +3 -0
  136. package/dist/components/datetime/time-field/parts.d.ts +19 -0
  137. package/dist/components/datetime/time-range-field/NwTimeRangeField.vue.d.ts +42 -0
  138. package/dist/components/datetime/time-range-field/index.d.ts +3 -0
  139. package/dist/components/datetime/time-range-field/parts.d.ts +19 -0
  140. package/dist/components/datetime/year-picker/NwYearPicker.vue.d.ts +31 -0
  141. package/dist/components/datetime/year-picker/index.d.ts +3 -0
  142. package/dist/components/datetime/year-picker/parts.d.ts +12 -0
  143. package/dist/components/datetime/year-range-picker/NwYearRangePicker.vue.d.ts +33 -0
  144. package/dist/components/datetime/year-range-picker/index.d.ts +3 -0
  145. package/dist/components/datetime/year-range-picker/parts.d.ts +12 -0
  146. package/dist/components/forms/checkbox/NwCheckbox.vue.d.ts +28 -0
  147. package/dist/components/forms/checkbox/NwCheckboxGroup.vue.d.ts +19 -0
  148. package/dist/components/forms/checkbox/index.d.ts +4 -0
  149. package/dist/components/forms/choice-label/ChoiceLabel.vue.d.ts +22 -0
  150. package/dist/components/forms/editable/NwEditable.vue.d.ts +30 -0
  151. package/dist/components/forms/editable/NwEditableArea.vue.d.ts +15 -0
  152. package/dist/components/forms/editable/NwEditableCancelTrigger.vue.d.ts +19 -0
  153. package/dist/components/forms/editable/NwEditableEditTrigger.vue.d.ts +19 -0
  154. package/dist/components/forms/editable/NwEditableInput.vue.d.ts +21 -0
  155. package/dist/components/forms/editable/NwEditablePreview.vue.d.ts +15 -0
  156. package/dist/components/forms/editable/NwEditableSubmitTrigger.vue.d.ts +19 -0
  157. package/dist/components/forms/editable/index.d.ts +14 -0
  158. package/dist/components/forms/field/FieldScope.vue.d.ts +15 -0
  159. package/dist/components/forms/field/NwField.vue.d.ts +30 -0
  160. package/dist/components/forms/field/NwFieldDescription.vue.d.ts +15 -0
  161. package/dist/components/forms/field/NwFieldError.vue.d.ts +17 -0
  162. package/dist/components/forms/field/NwFieldLabel.vue.d.ts +15 -0
  163. package/dist/components/forms/field/index.d.ts +10 -0
  164. package/dist/components/forms/field/useNwFieldControl.d.ts +21 -0
  165. package/dist/components/forms/form/NwForm.vue.d.ts +23 -0
  166. package/dist/components/forms/form/index.d.ts +2 -0
  167. package/dist/components/forms/index.d.ts +15 -0
  168. package/dist/components/forms/input/NwInput.vue.d.ts +28 -0
  169. package/dist/components/forms/input/index.d.ts +2 -0
  170. package/dist/components/forms/input-group/NwInputGroup.vue.d.ts +21 -0
  171. package/dist/components/forms/input-group/NwInputGroupAddon.vue.d.ts +17 -0
  172. package/dist/components/forms/input-group/index.d.ts +4 -0
  173. package/dist/components/forms/label/NwLabel.vue.d.ts +15 -0
  174. package/dist/components/forms/label/index.d.ts +2 -0
  175. package/dist/components/forms/number-field/NwNumberField.vue.d.ts +30 -0
  176. package/dist/components/forms/number-field/NwNumberFieldDecrement.vue.d.ts +19 -0
  177. package/dist/components/forms/number-field/NwNumberFieldIncrement.vue.d.ts +19 -0
  178. package/dist/components/forms/number-field/NwNumberFieldInput.vue.d.ts +17 -0
  179. package/dist/components/forms/number-field/context.d.ts +4 -0
  180. package/dist/components/forms/number-field/index.d.ts +8 -0
  181. package/dist/components/forms/pin-input/NwPinInput.vue.d.ts +30 -0
  182. package/dist/components/forms/pin-input/NwPinInputInput.vue.d.ts +17 -0
  183. package/dist/components/forms/pin-input/index.d.ts +4 -0
  184. package/dist/components/forms/radio-group/NwRadioGroup.vue.d.ts +26 -0
  185. package/dist/components/forms/radio-group/NwRadioGroupItem.vue.d.ts +25 -0
  186. package/dist/components/forms/radio-group/index.d.ts +4 -0
  187. package/dist/components/forms/slider/NwSlider.vue.d.ts +29 -0
  188. package/dist/components/forms/slider/index.d.ts +2 -0
  189. package/dist/components/forms/switch/NwSwitch.vue.d.ts +18 -0
  190. package/dist/components/forms/switch/index.d.ts +2 -0
  191. package/dist/components/forms/tag-group/NwTagGroup.vue.d.ts +23 -0
  192. package/dist/components/forms/tag-group/NwTagGroupItem.vue.d.ts +18 -0
  193. package/dist/components/forms/tag-group/NwTagGroupItemDelete.vue.d.ts +19 -0
  194. package/dist/components/forms/tag-group/NwTagGroupItemText.vue.d.ts +15 -0
  195. package/dist/components/forms/tag-group/index.d.ts +8 -0
  196. package/dist/components/forms/tags-input/NwTagsInput.vue.d.ts +34 -0
  197. package/dist/components/forms/tags-input/NwTagsInputClear.vue.d.ts +19 -0
  198. package/dist/components/forms/tags-input/NwTagsInputInput.vue.d.ts +15 -0
  199. package/dist/components/forms/tags-input/NwTagsInputItem.vue.d.ts +15 -0
  200. package/dist/components/forms/tags-input/NwTagsInputItemDelete.vue.d.ts +19 -0
  201. package/dist/components/forms/tags-input/NwTagsInputItemText.vue.d.ts +15 -0
  202. package/dist/components/forms/tags-input/index.d.ts +12 -0
  203. package/dist/components/forms/textarea/NwTextarea.vue.d.ts +18 -0
  204. package/dist/components/forms/textarea/index.d.ts +2 -0
  205. package/dist/components/navigation/accordion/NwAccordion.vue.d.ts +37 -0
  206. package/dist/components/navigation/accordion/NwAccordionContent.vue.d.ts +22 -0
  207. package/dist/components/navigation/accordion/NwAccordionItem.vue.d.ts +22 -0
  208. package/dist/components/navigation/accordion/NwAccordionTrigger.vue.d.ts +20 -0
  209. package/dist/components/navigation/accordion/index.d.ts +5 -0
  210. package/dist/components/navigation/breadcrumb/NwBreadcrumb.vue.d.ts +30 -0
  211. package/dist/components/navigation/breadcrumb/NwBreadcrumbEllipsis.vue.d.ts +24 -0
  212. package/dist/components/navigation/breadcrumb/NwBreadcrumbItem.vue.d.ts +22 -0
  213. package/dist/components/navigation/breadcrumb/NwBreadcrumbLink.vue.d.ts +23 -0
  214. package/dist/components/navigation/breadcrumb/NwBreadcrumbList.vue.d.ts +22 -0
  215. package/dist/components/navigation/breadcrumb/NwBreadcrumbPage.vue.d.ts +22 -0
  216. package/dist/components/navigation/breadcrumb/NwBreadcrumbSeparator.vue.d.ts +22 -0
  217. package/dist/components/navigation/breadcrumb/index.d.ts +7 -0
  218. package/dist/components/navigation/collapsible/NwCollapsible.vue.d.ts +26 -0
  219. package/dist/components/navigation/collapsible/NwCollapsibleContent.vue.d.ts +24 -0
  220. package/dist/components/navigation/collapsible/NwCollapsibleTrigger.vue.d.ts +20 -0
  221. package/dist/components/navigation/collapsible/index.d.ts +3 -0
  222. package/dist/components/navigation/index.d.ts +13 -0
  223. package/dist/components/navigation/navbar/NwNavbar.vue.d.ts +26 -0
  224. package/dist/components/navigation/navbar/NwNavbarActions.vue.d.ts +22 -0
  225. package/dist/components/navigation/navbar/NwNavbarBrand.vue.d.ts +23 -0
  226. package/dist/components/navigation/navbar/NwNavbarLink.vue.d.ts +25 -0
  227. package/dist/components/navigation/navbar/index.d.ts +4 -0
  228. package/dist/components/navigation/navigation-menu/NwNavigationMenu.vue.d.ts +26 -0
  229. package/dist/components/navigation/navigation-menu/NwNavigationMenuContent.vue.d.ts +30 -0
  230. package/dist/components/navigation/navigation-menu/NwNavigationMenuIndicator.vue.d.ts +20 -0
  231. package/dist/components/navigation/navigation-menu/NwNavigationMenuItem.vue.d.ts +20 -0
  232. package/dist/components/navigation/navigation-menu/NwNavigationMenuLink.vue.d.ts +29 -0
  233. package/dist/components/navigation/navigation-menu/NwNavigationMenuList.vue.d.ts +20 -0
  234. package/dist/components/navigation/navigation-menu/NwNavigationMenuSub.vue.d.ts +26 -0
  235. package/dist/components/navigation/navigation-menu/NwNavigationMenuTrigger.vue.d.ts +20 -0
  236. package/dist/components/navigation/navigation-menu/NwNavigationMenuViewport.vue.d.ts +20 -0
  237. package/dist/components/navigation/navigation-menu/index.d.ts +9 -0
  238. package/dist/components/navigation/pagination/NwPagination.vue.d.ts +38 -0
  239. package/dist/components/navigation/pagination/NwPaginationEllipsis.vue.d.ts +20 -0
  240. package/dist/components/navigation/pagination/NwPaginationFirst.vue.d.ts +23 -0
  241. package/dist/components/navigation/pagination/NwPaginationLast.vue.d.ts +23 -0
  242. package/dist/components/navigation/pagination/NwPaginationList.vue.d.ts +27 -0
  243. package/dist/components/navigation/pagination/NwPaginationListItem.vue.d.ts +20 -0
  244. package/dist/components/navigation/pagination/NwPaginationNext.vue.d.ts +23 -0
  245. package/dist/components/navigation/pagination/NwPaginationPrev.vue.d.ts +23 -0
  246. package/dist/components/navigation/pagination/index.d.ts +8 -0
  247. package/dist/components/navigation/scroll-area/NwScrollArea.vue.d.ts +20 -0
  248. package/dist/components/navigation/scroll-area/NwScrollAreaCorner.vue.d.ts +20 -0
  249. package/dist/components/navigation/scroll-area/NwScrollAreaScrollbar.vue.d.ts +20 -0
  250. package/dist/components/navigation/scroll-area/NwScrollAreaThumb.vue.d.ts +20 -0
  251. package/dist/components/navigation/scroll-area/NwScrollAreaViewport.vue.d.ts +20 -0
  252. package/dist/components/navigation/scroll-area/index.d.ts +5 -0
  253. package/dist/components/navigation/sidenav/NwSidenav.vue.d.ts +27 -0
  254. package/dist/components/navigation/sidenav/NwSidenavGroup.vue.d.ts +21 -0
  255. package/dist/components/navigation/sidenav/NwSidenavItem.vue.d.ts +22 -0
  256. package/dist/components/navigation/sidenav/NwSidenavLink.vue.d.ts +25 -0
  257. package/dist/components/navigation/sidenav/NwSidenavList.vue.d.ts +22 -0
  258. package/dist/components/navigation/sidenav/index.d.ts +5 -0
  259. package/dist/components/navigation/splitter/NwSplitterGroup.vue.d.ts +26 -0
  260. package/dist/components/navigation/splitter/NwSplitterPanel.vue.d.ts +34 -0
  261. package/dist/components/navigation/splitter/NwSplitterResizeHandle.vue.d.ts +27 -0
  262. package/dist/components/navigation/splitter/index.d.ts +3 -0
  263. package/dist/components/navigation/stepper/NwStepper.vue.d.ts +47 -0
  264. package/dist/components/navigation/stepper/NwStepperDescription.vue.d.ts +20 -0
  265. package/dist/components/navigation/stepper/NwStepperIndicator.vue.d.ts +26 -0
  266. package/dist/components/navigation/stepper/NwStepperItem.vue.d.ts +22 -0
  267. package/dist/components/navigation/stepper/NwStepperSeparator.vue.d.ts +20 -0
  268. package/dist/components/navigation/stepper/NwStepperTitle.vue.d.ts +20 -0
  269. package/dist/components/navigation/stepper/NwStepperTrigger.vue.d.ts +20 -0
  270. package/dist/components/navigation/stepper/index.d.ts +7 -0
  271. package/dist/components/navigation/tabs/NwTabs.vue.d.ts +46 -0
  272. package/dist/components/navigation/tabs/NwTabsContent.vue.d.ts +20 -0
  273. package/dist/components/navigation/tabs/NwTabsIndicator.vue.d.ts +20 -0
  274. package/dist/components/navigation/tabs/NwTabsList.vue.d.ts +20 -0
  275. package/dist/components/navigation/tabs/NwTabsTrigger.vue.d.ts +20 -0
  276. package/dist/components/navigation/tabs/index.d.ts +6 -0
  277. package/dist/components/navigation/tree/NwTree.vue.d.ts +32 -0
  278. package/dist/components/navigation/tree/NwTreeItem.vue.d.ts +36 -0
  279. package/dist/components/navigation/tree/index.d.ts +2 -0
  280. package/dist/components/overlays/alert-dialog/NwAlertDialog.vue.d.ts +24 -0
  281. package/dist/components/overlays/alert-dialog/NwAlertDialogAction.vue.d.ts +24 -0
  282. package/dist/components/overlays/alert-dialog/NwAlertDialogCancel.vue.d.ts +21 -0
  283. package/dist/components/overlays/alert-dialog/NwAlertDialogContent.vue.d.ts +39 -0
  284. package/dist/components/overlays/alert-dialog/NwAlertDialogDescription.vue.d.ts +20 -0
  285. package/dist/components/overlays/alert-dialog/NwAlertDialogFooter.vue.d.ts +23 -0
  286. package/dist/components/overlays/alert-dialog/NwAlertDialogHeader.vue.d.ts +22 -0
  287. package/dist/components/overlays/alert-dialog/NwAlertDialogTitle.vue.d.ts +20 -0
  288. package/dist/components/overlays/alert-dialog/NwAlertDialogTrigger.vue.d.ts +18 -0
  289. package/dist/components/overlays/alert-dialog/index.d.ts +10 -0
  290. package/dist/components/overlays/command-palette/NwCommandPalette.vue.d.ts +49 -0
  291. package/dist/components/overlays/command-palette/index.d.ts +1 -0
  292. package/dist/components/overlays/context-menu/NwContextMenu.vue.d.ts +24 -0
  293. package/dist/components/overlays/context-menu/NwContextMenuCheckboxItem.vue.d.ts +30 -0
  294. package/dist/components/overlays/context-menu/NwContextMenuContent.vue.d.ts +38 -0
  295. package/dist/components/overlays/context-menu/NwContextMenuGroup.vue.d.ts +20 -0
  296. package/dist/components/overlays/context-menu/NwContextMenuItem.vue.d.ts +31 -0
  297. package/dist/components/overlays/context-menu/NwContextMenuLabel.vue.d.ts +25 -0
  298. package/dist/components/overlays/context-menu/NwContextMenuRadioGroup.vue.d.ts +22 -0
  299. package/dist/components/overlays/context-menu/NwContextMenuRadioItem.vue.d.ts +27 -0
  300. package/dist/components/overlays/context-menu/NwContextMenuSeparator.vue.d.ts +8 -0
  301. package/dist/components/overlays/context-menu/NwContextMenuSub.vue.d.ts +24 -0
  302. package/dist/components/overlays/context-menu/NwContextMenuSubContent.vue.d.ts +43 -0
  303. package/dist/components/overlays/context-menu/NwContextMenuSubTrigger.vue.d.ts +25 -0
  304. package/dist/components/overlays/context-menu/NwContextMenuTrigger.vue.d.ts +18 -0
  305. package/dist/components/overlays/context-menu/index.d.ts +14 -0
  306. package/dist/components/overlays/dialog/NwDialog.vue.d.ts +24 -0
  307. package/dist/components/overlays/dialog/NwDialogBody.vue.d.ts +23 -0
  308. package/dist/components/overlays/dialog/NwDialogClose.vue.d.ts +18 -0
  309. package/dist/components/overlays/dialog/NwDialogContent.vue.d.ts +44 -0
  310. package/dist/components/overlays/dialog/NwDialogDescription.vue.d.ts +20 -0
  311. package/dist/components/overlays/dialog/NwDialogFooter.vue.d.ts +23 -0
  312. package/dist/components/overlays/dialog/NwDialogHeader.vue.d.ts +22 -0
  313. package/dist/components/overlays/dialog/NwDialogTitle.vue.d.ts +20 -0
  314. package/dist/components/overlays/dialog/NwDialogTrigger.vue.d.ts +18 -0
  315. package/dist/components/overlays/dialog/index.d.ts +10 -0
  316. package/dist/components/overlays/drawer/NwDrawer.vue.d.ts +29 -0
  317. package/dist/components/overlays/drawer/NwDrawerClose.vue.d.ts +18 -0
  318. package/dist/components/overlays/drawer/NwDrawerContent.vue.d.ts +44 -0
  319. package/dist/components/overlays/drawer/NwDrawerDescription.vue.d.ts +20 -0
  320. package/dist/components/overlays/drawer/NwDrawerHandle.vue.d.ts +21 -0
  321. package/dist/components/overlays/drawer/NwDrawerHeader.vue.d.ts +22 -0
  322. package/dist/components/overlays/drawer/NwDrawerTitle.vue.d.ts +20 -0
  323. package/dist/components/overlays/drawer/NwDrawerTrigger.vue.d.ts +18 -0
  324. package/dist/components/overlays/drawer/index.d.ts +10 -0
  325. package/dist/components/overlays/dropdown-menu/NwDropdownMenu.vue.d.ts +26 -0
  326. package/dist/components/overlays/dropdown-menu/NwDropdownMenuCheckboxItem.vue.d.ts +30 -0
  327. package/dist/components/overlays/dropdown-menu/NwDropdownMenuContent.vue.d.ts +40 -0
  328. package/dist/components/overlays/dropdown-menu/NwDropdownMenuGroup.vue.d.ts +20 -0
  329. package/dist/components/overlays/dropdown-menu/NwDropdownMenuItem.vue.d.ts +31 -0
  330. package/dist/components/overlays/dropdown-menu/NwDropdownMenuLabel.vue.d.ts +25 -0
  331. package/dist/components/overlays/dropdown-menu/NwDropdownMenuRadioGroup.vue.d.ts +22 -0
  332. package/dist/components/overlays/dropdown-menu/NwDropdownMenuRadioItem.vue.d.ts +27 -0
  333. package/dist/components/overlays/dropdown-menu/NwDropdownMenuSeparator.vue.d.ts +8 -0
  334. package/dist/components/overlays/dropdown-menu/NwDropdownMenuShortcut.vue.d.ts +20 -0
  335. package/dist/components/overlays/dropdown-menu/NwDropdownMenuSub.vue.d.ts +24 -0
  336. package/dist/components/overlays/dropdown-menu/NwDropdownMenuSubContent.vue.d.ts +43 -0
  337. package/dist/components/overlays/dropdown-menu/NwDropdownMenuSubTrigger.vue.d.ts +25 -0
  338. package/dist/components/overlays/dropdown-menu/NwDropdownMenuTrigger.vue.d.ts +18 -0
  339. package/dist/components/overlays/dropdown-menu/index.d.ts +15 -0
  340. package/dist/components/overlays/hover-card/NwHoverCard.vue.d.ts +23 -0
  341. package/dist/components/overlays/hover-card/NwHoverCardContent.vue.d.ts +30 -0
  342. package/dist/components/overlays/hover-card/NwHoverCardTrigger.vue.d.ts +18 -0
  343. package/dist/components/overlays/hover-card/index.d.ts +4 -0
  344. package/dist/components/overlays/index.d.ts +12 -0
  345. package/dist/components/overlays/menubar/NwMenubar.vue.d.ts +27 -0
  346. package/dist/components/overlays/menubar/NwMenubarCheckboxItem.vue.d.ts +30 -0
  347. package/dist/components/overlays/menubar/NwMenubarContent.vue.d.ts +41 -0
  348. package/dist/components/overlays/menubar/NwMenubarGroup.vue.d.ts +20 -0
  349. package/dist/components/overlays/menubar/NwMenubarItem.vue.d.ts +31 -0
  350. package/dist/components/overlays/menubar/NwMenubarLabel.vue.d.ts +25 -0
  351. package/dist/components/overlays/menubar/NwMenubarMenu.vue.d.ts +18 -0
  352. package/dist/components/overlays/menubar/NwMenubarRadioGroup.vue.d.ts +22 -0
  353. package/dist/components/overlays/menubar/NwMenubarRadioItem.vue.d.ts +27 -0
  354. package/dist/components/overlays/menubar/NwMenubarSeparator.vue.d.ts +8 -0
  355. package/dist/components/overlays/menubar/NwMenubarSub.vue.d.ts +24 -0
  356. package/dist/components/overlays/menubar/NwMenubarSubContent.vue.d.ts +43 -0
  357. package/dist/components/overlays/menubar/NwMenubarSubTrigger.vue.d.ts +25 -0
  358. package/dist/components/overlays/menubar/NwMenubarTrigger.vue.d.ts +20 -0
  359. package/dist/components/overlays/menubar/index.d.ts +15 -0
  360. package/dist/components/overlays/popover/NwPopover.vue.d.ts +24 -0
  361. package/dist/components/overlays/popover/NwPopoverAnchor.vue.d.ts +18 -0
  362. package/dist/components/overlays/popover/NwPopoverClose.vue.d.ts +18 -0
  363. package/dist/components/overlays/popover/NwPopoverContent.vue.d.ts +52 -0
  364. package/dist/components/overlays/popover/NwPopoverTrigger.vue.d.ts +18 -0
  365. package/dist/components/overlays/popover/index.d.ts +6 -0
  366. package/dist/components/overlays/sheet/NwSheetContent.vue.d.ts +45 -0
  367. package/dist/components/overlays/sheet/index.d.ts +10 -0
  368. package/dist/components/overlays/toast/NwToast.vue.d.ts +107 -0
  369. package/dist/components/overlays/toast/NwToastAction.vue.d.ts +21 -0
  370. package/dist/components/overlays/toast/NwToastClose.vue.d.ts +24 -0
  371. package/dist/components/overlays/toast/NwToastDescription.vue.d.ts +20 -0
  372. package/dist/components/overlays/toast/NwToastTitle.vue.d.ts +20 -0
  373. package/dist/components/overlays/toast/NwToaster.vue.d.ts +21 -0
  374. package/dist/components/overlays/toast/index.d.ts +8 -0
  375. package/dist/components/overlays/toast/useToast.d.ts +45 -0
  376. package/dist/components/overlays/tooltip/NwTooltip.vue.d.ts +24 -0
  377. package/dist/components/overlays/tooltip/NwTooltipContent.vue.d.ts +33 -0
  378. package/dist/components/overlays/tooltip/NwTooltipTrigger.vue.d.ts +18 -0
  379. package/dist/components/overlays/tooltip/index.d.ts +3 -0
  380. package/dist/components/selection/autocomplete/NwAutocomplete.vue.d.ts +37 -0
  381. package/dist/components/selection/autocomplete/NwAutocompleteAnchor.vue.d.ts +20 -0
  382. package/dist/components/selection/autocomplete/NwAutocompleteCancel.vue.d.ts +23 -0
  383. package/dist/components/selection/autocomplete/NwAutocompleteContent.vue.d.ts +35 -0
  384. package/dist/components/selection/autocomplete/NwAutocompleteEmpty.vue.d.ts +20 -0
  385. package/dist/components/selection/autocomplete/NwAutocompleteGroup.vue.d.ts +20 -0
  386. package/dist/components/selection/autocomplete/NwAutocompleteInput.vue.d.ts +27 -0
  387. package/dist/components/selection/autocomplete/NwAutocompleteItem.vue.d.ts +26 -0
  388. package/dist/components/selection/autocomplete/NwAutocompleteLabel.vue.d.ts +20 -0
  389. package/dist/components/selection/autocomplete/NwAutocompleteSeparator.vue.d.ts +8 -0
  390. package/dist/components/selection/autocomplete/NwAutocompleteTrigger.vue.d.ts +23 -0
  391. package/dist/components/selection/autocomplete/index.d.ts +11 -0
  392. package/dist/components/selection/combobox/NwCombobox.vue.d.ts +37 -0
  393. package/dist/components/selection/combobox/NwComboboxAnchor.vue.d.ts +20 -0
  394. package/dist/components/selection/combobox/NwComboboxCancel.vue.d.ts +23 -0
  395. package/dist/components/selection/combobox/NwComboboxContent.vue.d.ts +35 -0
  396. package/dist/components/selection/combobox/NwComboboxEmpty.vue.d.ts +20 -0
  397. package/dist/components/selection/combobox/NwComboboxGroup.vue.d.ts +20 -0
  398. package/dist/components/selection/combobox/NwComboboxInput.vue.d.ts +27 -0
  399. package/dist/components/selection/combobox/NwComboboxItem.vue.d.ts +26 -0
  400. package/dist/components/selection/combobox/NwComboboxLabel.vue.d.ts +20 -0
  401. package/dist/components/selection/combobox/NwComboboxSeparator.vue.d.ts +8 -0
  402. package/dist/components/selection/combobox/NwComboboxTrigger.vue.d.ts +23 -0
  403. package/dist/components/selection/combobox/index.d.ts +11 -0
  404. package/dist/components/selection/index.d.ts +4 -0
  405. package/dist/components/selection/listbox/NwListbox.vue.d.ts +38 -0
  406. package/dist/components/selection/listbox/NwListboxContent.vue.d.ts +20 -0
  407. package/dist/components/selection/listbox/NwListboxFilter.vue.d.ts +27 -0
  408. package/dist/components/selection/listbox/NwListboxGroup.vue.d.ts +20 -0
  409. package/dist/components/selection/listbox/NwListboxGroupLabel.vue.d.ts +20 -0
  410. package/dist/components/selection/listbox/NwListboxItem.vue.d.ts +26 -0
  411. package/dist/components/selection/listbox/index.d.ts +6 -0
  412. package/dist/components/selection/select/NwSelect.vue.d.ts +29 -0
  413. package/dist/components/selection/select/NwSelectContent.vue.d.ts +32 -0
  414. package/dist/components/selection/select/NwSelectGroup.vue.d.ts +20 -0
  415. package/dist/components/selection/select/NwSelectItem.vue.d.ts +24 -0
  416. package/dist/components/selection/select/NwSelectLabel.vue.d.ts +20 -0
  417. package/dist/components/selection/select/NwSelectScrollDownButton.vue.d.ts +20 -0
  418. package/dist/components/selection/select/NwSelectScrollUpButton.vue.d.ts +20 -0
  419. package/dist/components/selection/select/NwSelectSeparator.vue.d.ts +8 -0
  420. package/dist/components/selection/select/NwSelectTrigger.vue.d.ts +23 -0
  421. package/dist/components/selection/select/NwSelectValue.vue.d.ts +20 -0
  422. package/dist/components/selection/select/index.d.ts +10 -0
  423. package/dist/docs/api.json +320 -0
  424. package/dist/docs/components/accordion.md +123 -0
  425. package/dist/docs/components/alert-dialog.md +199 -0
  426. package/dist/docs/components/alert.md +106 -0
  427. package/dist/docs/components/aspect-ratio.md +57 -0
  428. package/dist/docs/components/autocomplete.md +282 -0
  429. package/dist/docs/components/avatar.md +118 -0
  430. package/dist/docs/components/badge.md +66 -0
  431. package/dist/docs/components/breadcrumb.md +162 -0
  432. package/dist/docs/components/button.md +97 -0
  433. package/dist/docs/components/calendar.md +115 -0
  434. package/dist/docs/components/card.md +161 -0
  435. package/dist/docs/components/checkbox.md +117 -0
  436. package/dist/docs/components/chip.md +76 -0
  437. package/dist/docs/components/code.md +56 -0
  438. package/dist/docs/components/collapsible.md +92 -0
  439. package/dist/docs/components/color-area.md +95 -0
  440. package/dist/docs/components/color-field.md +81 -0
  441. package/dist/docs/components/color-picker.md +81 -0
  442. package/dist/docs/components/color-slider.md +95 -0
  443. package/dist/docs/components/color-swatch-picker.md +108 -0
  444. package/dist/docs/components/color-swatch.md +58 -0
  445. package/dist/docs/components/combobox.md +295 -0
  446. package/dist/docs/components/command-palette.md +83 -0
  447. package/dist/docs/components/context-menu.md +325 -0
  448. package/dist/docs/components/data-table.md +98 -0
  449. package/dist/docs/components/date-field.md +87 -0
  450. package/dist/docs/components/date-picker.md +136 -0
  451. package/dist/docs/components/date-range-field.md +87 -0
  452. package/dist/docs/components/date-range-picker.md +142 -0
  453. package/dist/docs/components/dialog.md +226 -0
  454. package/dist/docs/components/drawer.md +223 -0
  455. package/dist/docs/components/dropdown-menu.md +365 -0
  456. package/dist/docs/components/editable.md +171 -0
  457. package/dist/docs/components/empty.md +55 -0
  458. package/dist/docs/components/field.md +151 -0
  459. package/dist/docs/components/form.md +88 -0
  460. package/dist/docs/components/hover-card.md +116 -0
  461. package/dist/docs/components/hud-panel.md +163 -0
  462. package/dist/docs/components/icon-button.md +69 -0
  463. package/dist/docs/components/input-group.md +84 -0
  464. package/dist/docs/components/input.md +74 -0
  465. package/dist/docs/components/kbd.md +62 -0
  466. package/dist/docs/components/key-hint.md +62 -0
  467. package/dist/docs/components/layout.md +64 -0
  468. package/dist/docs/components/link.md +64 -0
  469. package/dist/docs/components/list.md +56 -0
  470. package/dist/docs/components/listbox.md +186 -0
  471. package/dist/docs/components/menubar.md +360 -0
  472. package/dist/docs/components/meter.md +62 -0
  473. package/dist/docs/components/month-picker.md +89 -0
  474. package/dist/docs/components/month-range-picker.md +91 -0
  475. package/dist/docs/components/navbar.md +115 -0
  476. package/dist/docs/components/navigation-menu.md +207 -0
  477. package/dist/docs/components/number-field.md +119 -0
  478. package/dist/docs/components/pagination.md +199 -0
  479. package/dist/docs/components/pin-input.md +102 -0
  480. package/dist/docs/components/popover.md +167 -0
  481. package/dist/docs/components/progress.md +65 -0
  482. package/dist/docs/components/provider.md +58 -0
  483. package/dist/docs/components/radio-group.md +102 -0
  484. package/dist/docs/components/range-calendar.md +120 -0
  485. package/dist/docs/components/rating.md +66 -0
  486. package/dist/docs/components/scroll-area.md +127 -0
  487. package/dist/docs/components/select.md +250 -0
  488. package/dist/docs/components/separator.md +63 -0
  489. package/dist/docs/components/sheet.md +204 -0
  490. package/dist/docs/components/sidenav.md +124 -0
  491. package/dist/docs/components/skeleton.md +68 -0
  492. package/dist/docs/components/slider.md +79 -0
  493. package/dist/docs/components/spinner.md +50 -0
  494. package/dist/docs/components/splitter-group.md +119 -0
  495. package/dist/docs/components/stat.md +58 -0
  496. package/dist/docs/components/stepper.md +177 -0
  497. package/dist/docs/components/switch.md +62 -0
  498. package/dist/docs/components/table.md +191 -0
  499. package/dist/docs/components/tabs.md +144 -0
  500. package/dist/docs/components/tag-group.md +128 -0
  501. package/dist/docs/components/tags-input.md +154 -0
  502. package/dist/docs/components/textarea.md +50 -0
  503. package/dist/docs/components/time-field.md +88 -0
  504. package/dist/docs/components/time-range-field.md +88 -0
  505. package/dist/docs/components/toaster.md +176 -0
  506. package/dist/docs/components/toggle.md +121 -0
  507. package/dist/docs/components/toolbar.md +163 -0
  508. package/dist/docs/components/tooltip.md +117 -0
  509. package/dist/docs/components/tree.md +125 -0
  510. package/dist/docs/components/year-picker.md +87 -0
  511. package/dist/docs/components/year-range-picker.md +93 -0
  512. package/dist/docs/composables.md +320 -0
  513. package/dist/docs/families/actions.md +39 -0
  514. package/dist/docs/families/color.md +16 -0
  515. package/dist/docs/families/datetime.md +187 -0
  516. package/dist/docs/families/forms.md +34 -0
  517. package/dist/docs/families/navigation.md +26 -0
  518. package/dist/docs/families/overlays.md +29 -0
  519. package/dist/docs/families/selection.md +14 -0
  520. package/dist/docs/foundations/accessibility.md +71 -0
  521. package/dist/docs/foundations/color-roles.md +114 -0
  522. package/dist/docs/foundations/effects-motion.md +150 -0
  523. package/dist/docs/foundations/flavors.md +156 -0
  524. package/dist/docs/foundations/icons.md +45 -0
  525. package/dist/docs/foundations/palette.md +180 -0
  526. package/dist/docs/foundations/spacing-elevation.md +168 -0
  527. package/dist/docs/foundations/typography.md +80 -0
  528. package/dist/docs/index.md +239 -0
  529. package/dist/docs/manifest.json +1777 -0
  530. package/dist/foundations/NwFlavorSelect.vue.d.ts +19 -0
  531. package/dist/foundations/NwProvider.vue.d.ts +39 -0
  532. package/dist/foundations/context.d.ts +13 -0
  533. package/dist/foundations/flavors.d.ts +15 -0
  534. package/dist/foundations/index.d.ts +7 -0
  535. package/dist/foundations/useFlavor.d.ts +46 -0
  536. package/dist/index.d.ts +11 -0
  537. package/dist/index.js +14762 -0
  538. package/dist/plugin.d.ts +2 -0
  539. package/dist/tailwind.css +1 -0
  540. package/dist/theme/accordion.d.ts +9 -0
  541. package/dist/theme/actions-shared.d.ts +30 -0
  542. package/dist/theme/alert-dialog.d.ts +28 -0
  543. package/dist/theme/alert.d.ts +19 -0
  544. package/dist/theme/aspect-ratio.d.ts +5 -0
  545. package/dist/theme/autocomplete.d.ts +85 -0
  546. package/dist/theme/avatar.d.ts +50 -0
  547. package/dist/theme/badge.d.ts +7 -0
  548. package/dist/theme/breadcrumb.d.ts +9 -0
  549. package/dist/theme/button-group.d.ts +7 -0
  550. package/dist/theme/button.d.ts +12 -0
  551. package/dist/theme/calendar.d.ts +17 -0
  552. package/dist/theme/card.d.ts +49 -0
  553. package/dist/theme/checkbox.d.ts +43 -0
  554. package/dist/theme/chip.d.ts +5 -0
  555. package/dist/theme/code.d.ts +6 -0
  556. package/dist/theme/collapsible.d.ts +5 -0
  557. package/dist/theme/color-area.d.ts +6 -0
  558. package/dist/theme/color-field.d.ts +19 -0
  559. package/dist/theme/color-picker.d.ts +9 -0
  560. package/dist/theme/color-shared.d.ts +9 -0
  561. package/dist/theme/color-slider.d.ts +9 -0
  562. package/dist/theme/color-swatch-picker.d.ts +9 -0
  563. package/dist/theme/color-swatch.d.ts +27 -0
  564. package/dist/theme/combobox.d.ts +58 -0
  565. package/dist/theme/command-palette.d.ts +7 -0
  566. package/dist/theme/data-table.d.ts +6 -0
  567. package/dist/theme/date-field.d.ts +28 -0
  568. package/dist/theme/date-picker.d.ts +53 -0
  569. package/dist/theme/date-range-field.d.ts +75 -0
  570. package/dist/theme/date-range-picker.d.ts +86 -0
  571. package/dist/theme/dialog.d.ts +31 -0
  572. package/dist/theme/drawer.d.ts +11 -0
  573. package/dist/theme/editable.d.ts +49 -0
  574. package/dist/theme/empty.d.ts +6 -0
  575. package/dist/theme/field.d.ts +16 -0
  576. package/dist/theme/flavor-select.d.ts +5 -0
  577. package/dist/theme/form.d.ts +9 -0
  578. package/dist/theme/forms-shared.d.ts +19 -0
  579. package/dist/theme/hover-card.d.ts +15 -0
  580. package/dist/theme/hud-panel.d.ts +71 -0
  581. package/dist/theme/icon-button.d.ts +2 -0
  582. package/dist/theme/input-group.d.ts +22 -0
  583. package/dist/theme/input.d.ts +38 -0
  584. package/dist/theme/kbd.d.ts +12 -0
  585. package/dist/theme/key-hint.d.ts +13 -0
  586. package/dist/theme/label.d.ts +3 -0
  587. package/dist/theme/layout.d.ts +9 -0
  588. package/dist/theme/link.d.ts +9 -0
  589. package/dist/theme/list.d.ts +6 -0
  590. package/dist/theme/listbox.d.ts +56 -0
  591. package/dist/theme/menu.d.ts +33 -0
  592. package/dist/theme/menubar.d.ts +5 -0
  593. package/dist/theme/meter.d.ts +4 -0
  594. package/dist/theme/month-picker.d.ts +29 -0
  595. package/dist/theme/month-range-picker.d.ts +46 -0
  596. package/dist/theme/navbar.d.ts +7 -0
  597. package/dist/theme/navigation-menu.d.ts +13 -0
  598. package/dist/theme/navigation.d.ts +10 -0
  599. package/dist/theme/neon-text.d.ts +26 -0
  600. package/dist/theme/number-field.d.ts +45 -0
  601. package/dist/theme/overlays.d.ts +35 -0
  602. package/dist/theme/pagination.d.ts +6 -0
  603. package/dist/theme/pin-input.d.ts +52 -0
  604. package/dist/theme/popover.d.ts +31 -0
  605. package/dist/theme/progress.d.ts +39 -0
  606. package/dist/theme/provider.d.ts +9 -0
  607. package/dist/theme/radio-group.d.ts +52 -0
  608. package/dist/theme/range-calendar.d.ts +29 -0
  609. package/dist/theme/rating.d.ts +32 -0
  610. package/dist/theme/scroll-area.d.ts +7 -0
  611. package/dist/theme/select.d.ts +36 -0
  612. package/dist/theme/selection.d.ts +36 -0
  613. package/dist/theme/separator.d.ts +28 -0
  614. package/dist/theme/shared.d.ts +87 -0
  615. package/dist/theme/sheet.d.ts +28 -0
  616. package/dist/theme/sidenav.d.ts +8 -0
  617. package/dist/theme/skeleton.d.ts +14 -0
  618. package/dist/theme/slider.d.ts +27 -0
  619. package/dist/theme/spinner.d.ts +24 -0
  620. package/dist/theme/splitter.d.ts +7 -0
  621. package/dist/theme/stat-bar.d.ts +45 -0
  622. package/dist/theme/stat.d.ts +7 -0
  623. package/dist/theme/stepper.d.ts +12 -0
  624. package/dist/theme/switch.d.ts +44 -0
  625. package/dist/theme/table.d.ts +28 -0
  626. package/dist/theme/tabs.d.ts +8 -0
  627. package/dist/theme/tag-group.d.ts +7 -0
  628. package/dist/theme/tags-input.d.ts +25 -0
  629. package/dist/theme/textarea.d.ts +53 -0
  630. package/dist/theme/time-field.d.ts +43 -0
  631. package/dist/theme/time-range-field.d.ts +57 -0
  632. package/dist/theme/toast.d.ts +45 -0
  633. package/dist/theme/toggle-group.d.ts +6 -0
  634. package/dist/theme/toggle.d.ts +15 -0
  635. package/dist/theme/toolbar.d.ts +21 -0
  636. package/dist/theme/tooltip.d.ts +5 -0
  637. package/dist/theme/tree.d.ts +7 -0
  638. package/dist/theme/year-picker.d.ts +29 -0
  639. package/dist/theme/year-range-picker.d.ts +46 -0
  640. package/dist/types.d.ts +36 -0
  641. package/dist/utils/cn.d.ts +1 -0
  642. package/dist/utils/index.d.ts +2 -0
  643. package/dist/utils/tv.d.ts +1 -0
  644. package/package.json +76 -3
@@ -0,0 +1,92 @@
1
+ # NwCollapsible
2
+
3
+ Part of [Navigation](../families/navigation.md).
4
+
5
+ One section that shows and hides, wrapping Reka `Collapsible`. Use it for optional details; use `NwAccordion` for a set of sections.
6
+
7
+ ```vue title="CollapsibleDemo.vue"
8
+ <script setup lang="ts">
9
+ import { ref } from 'vue'
10
+ import { NwCollapsible, NwCollapsibleContent, NwCollapsibleTrigger, NwProvider } from '@nyxwire/vue'
11
+
12
+ const open = ref(false)
13
+ </script>
14
+
15
+ <template>
16
+ <NwProvider>
17
+ <NwCollapsible v-model:open="open" class="w-full max-w-lg">
18
+ <NwCollapsibleTrigger>{{ open ? 'Hide' : 'Show' }} raw handshake</NwCollapsibleTrigger>
19
+ <NwCollapsibleContent>
20
+ <p class="px-3 py-4 font-mono text-sm text-fg-muted">
21
+ initiation 148 B · response 92 B · keepalive every 25 s
22
+ </p>
23
+ </NwCollapsibleContent>
24
+ </NwCollapsible>
25
+ </NwProvider>
26
+ </template>
27
+ ```
28
+
29
+ ```text title="Anatomy"
30
+ NwCollapsible
31
+ ├─ NwCollapsibleTrigger
32
+ └─ NwCollapsibleContent
33
+ ```
34
+
35
+ | Prop | Type | Default | Effect |
36
+ | --------------- | --------- | ------- | ---------------------------------------------- |
37
+ | `open` | `boolean` | none | Controlled state, `v-model:open` (Reka) |
38
+ | `defaultOpen` | `boolean` | `false` | Uncontrolled initial state (Reka) |
39
+ | `disabled` | `boolean` | `false` | The trigger stops toggling (Reka) |
40
+ | `unmountOnHide` | `boolean` | `true` | Removes the closed content from the DOM (Reka) |
41
+
42
+ **Keyboard and accessibility.** The trigger is a button with `aria-expanded` and `aria-controls`; Enter or Space toggles it.
43
+
44
+ ## API
45
+
46
+ Generated from the component sources. Every component also takes `class`, `style` and the other attributes Vue falls through.
47
+
48
+ ### NwCollapsible
49
+
50
+ | Prop | Type | Default | Description |
51
+ | --- | --- | --- | --- |
52
+ | `defaultOpen` | `boolean` | | The open state of the collapsible when it is initially rendered. |
53
+ | `open` | `boolean` | | The controlled open state of the collapsible. |
54
+ | `disabled` | `boolean` | | When `true`, prevents the user from interacting with the collapsible. |
55
+ | `unmountOnHide` | `boolean` | | When `true`, the element will be unmounted on closed state. |
56
+ | `asChild` | `boolean` | | Change the default rendered element for the one passed as a child, merging their props and behavior. |
57
+ | `as` | `AsTag \| Component` | | The element or component this component should render as. |
58
+
59
+ | Event | Payload | Description |
60
+ | --- | --- | --- |
61
+ | `update:open` | `[value: boolean]` | |
62
+
63
+ | Slot | Props |
64
+ | --- | --- |
65
+ | `default` | `{ open: boolean; }` |
66
+
67
+ ### NwCollapsibleContent
68
+
69
+ | Prop | Type | Default | Description |
70
+ | --- | --- | --- | --- |
71
+ | `forceMount` | `boolean` | | Used to force mounting when more control is needed. |
72
+ | `asChild` | `boolean` | | Change the default rendered element for the one passed as a child, merging their props and behavior. |
73
+ | `as` | `AsTag \| Component` | | The element or component this component should render as. |
74
+
75
+ | Event | Payload | Description |
76
+ | --- | --- | --- |
77
+ | `contentFound` | `[(void \| undefined)?]` | |
78
+
79
+ | Slot | Props |
80
+ | --- | --- |
81
+ | `default` | |
82
+
83
+ ### NwCollapsibleTrigger
84
+
85
+ | Prop | Type | Default | Description |
86
+ | --- | --- | --- | --- |
87
+ | `asChild` | `boolean` | | Change the default rendered element for the one passed as a child, merging their props and behavior. |
88
+ | `as` | `AsTag \| Component` | | The element or component this component should render as. |
89
+
90
+ | Slot | Props |
91
+ | --- | --- |
92
+ | `default` | |
@@ -0,0 +1,95 @@
1
+ # NwColorArea
2
+
3
+ Part of [Color](../families/color.md).
4
+
5
+ `NwColorArea` is a two-dimensional picker over two channels of one color space. It wraps Reka `ColorAreaRoot`, `ColorAreaArea` and `ColorAreaThumb`. The default slot holds the thumb and renders `NwColorAreaThumb` when it is empty.
6
+
7
+ ```vue title="ColorAreaDemo.vue"
8
+ <script setup lang="ts">
9
+ import { ref } from 'vue'
10
+ import { NwColorArea, NwColorSwatch, NwProvider, type NwColorAreaProps } from '@nyxwire/vue'
11
+
12
+ const beacon = ref<NwColorAreaProps['modelValue']>('#d071ff')
13
+ </script>
14
+
15
+ <template>
16
+ <NwProvider>
17
+ <div class="grid w-full max-w-sm gap-3">
18
+ <NwColorArea
19
+ v-model="beacon"
20
+ color-space="hsb"
21
+ x-channel="saturation"
22
+ y-channel="brightness"
23
+ aria-label="Beacon saturation and brightness"
24
+ />
25
+ <div class="flex items-center gap-3 text-sm text-fg-muted">
26
+ <NwColorSwatch :color="beacon" label="Beacon color" />
27
+ <output class="font-mono">{{ beacon }}</output>
28
+ </div>
29
+ </div>
30
+ </NwProvider>
31
+ </template>
32
+ ```
33
+
34
+ ```text title="Anatomy"
35
+ NwColorArea
36
+ └─ NwColorAreaThumb (default slot content)
37
+ ```
38
+
39
+ | Prop | Type | Default | Effect |
40
+ | ---------------- | ------------------------- | -------------- | ----------------------------------------- |
41
+ | `modelValue` | `string \| Color` | none | Controlled color, `v-model` |
42
+ | `defaultValue` | `string \| Color` | `'#ff0000'` | Uncontrolled starting color (Reka) |
43
+ | `colorSpace` | `ColorSpace` | `'hsl'` | Color space the channels belong to (Reka) |
44
+ | `xChannel` | `ColorChannel` | `'hue'` | Channel on the horizontal axis (Reka) |
45
+ | `yChannel` | `ColorChannel` | `'saturation'` | Channel on the vertical axis (Reka) |
46
+ | `disabled` | `boolean` | `false` | Blocks interaction and dims the area |
47
+ | `xName`, `yName` | `string` | none | Input names for form submission (Reka) |
48
+ | `class` | `HTMLAttributes['class']` | none | Merged onto the root |
49
+
50
+ The other Reka `ColorAreaRoot` props and emits pass through. The area is 12rem tall and fills its container's width.
51
+
52
+ **Keyboard.** The thumb is the focusable control, and the arrow keys move it along both axes. Give the area an `aria-label` that names both channels.
53
+
54
+ ## API
55
+
56
+ Generated from the component sources. Every component also takes `class`, `style` and the other attributes Vue falls through.
57
+
58
+ ### NwColorArea
59
+
60
+ | Prop | Type | Default | Description |
61
+ | --- | --- | --- | --- |
62
+ | `modelValue` | `string \| Color` | | The color value (controlled). |
63
+ | `defaultValue` | `string \| Color` | | The default color value (uncontrolled). |
64
+ | `colorSpace` | `ColorSpace` | | The color space to operate in. |
65
+ | `xChannel` | `ColorChannel` | | Color channel for the horizontal (x) axis. |
66
+ | `yChannel` | `ColorChannel` | | Color channel for the vertical (y) axis. |
67
+ | `disabled` | `boolean` | | When `true`, prevents the user from interacting with the area. |
68
+ | `xName` | `string` | | The name of the x channel input element for form submission. |
69
+ | `yName` | `string` | | The name of the y channel input element for form submission. |
70
+ | `asChild` | `boolean` | | Change the default rendered element for the one passed as a child, merging their props and behavior. |
71
+ | `as` | `AsTag \| Component` | | The element or component this component should render as. |
72
+ | `name` | `string` | | The name of the field. |
73
+ | `required` | `boolean` | | When `true`, indicates that the user must set the value before the owning form can be submitted. |
74
+
75
+ | Event | Payload | Description |
76
+ | --- | --- | --- |
77
+ | `update:modelValue` | `[value: string]` | |
78
+ | `update:color` | `[value: Color]` | |
79
+ | `change` | `[value: string]` | |
80
+ | `changeEnd` | `[value: string]` | |
81
+
82
+ | Slot | Props |
83
+ | --- | --- |
84
+ | `default` | |
85
+
86
+ ### NwColorAreaThumb
87
+
88
+ | Prop | Type | Default | Description |
89
+ | --- | --- | --- | --- |
90
+ | `asChild` | `boolean` | | Change the default rendered element for the one passed as a child, merging their props and behavior. |
91
+ | `as` | `AsTag \| Component` | | The element or component this component should render as. |
92
+
93
+ | Slot | Props |
94
+ | --- | --- |
95
+ | `default` | |
@@ -0,0 +1,81 @@
1
+ # NwColorField
2
+
3
+ Part of [Color](../families/color.md).
4
+
5
+ `NwColorField` is a text input for a color, wrapping Reka `ColorFieldRoot` and `ColorFieldInput`. Without `channel` it edits the hex value. With `channel` it edits that one number. The text uses the mono font with tabular figures, and the field shows a wire edge when focused.
6
+
7
+ ```vue title="ColorFieldDemo.vue"
8
+ <script setup lang="ts">
9
+ import { ref } from 'vue'
10
+ import { NwColorField, NwColorSwatch, NwProvider, type NwColorFieldProps } from '@nyxwire/vue'
11
+
12
+ const status = ref<NwColorFieldProps['modelValue']>('#4bf677')
13
+ </script>
14
+
15
+ <template>
16
+ <NwProvider>
17
+ <div class="grid w-full max-w-xs gap-4">
18
+ <div class="grid gap-2 text-sm text-fg-muted">
19
+ <span>Status light</span>
20
+ <div class="flex items-center gap-3">
21
+ <NwColorSwatch :color="status" label="Status light" />
22
+ <NwColorField v-model="status" label="Status light hex" />
23
+ </div>
24
+ </div>
25
+ <div class="grid gap-2 text-sm text-fg-muted">
26
+ <span>Status light hue</span>
27
+ <NwColorField v-model="status" channel="hue" size="sm" label="Status light hue" />
28
+ </div>
29
+ <output class="font-mono text-sm text-fg-muted">{{ status }}</output>
30
+ </div>
31
+ </NwProvider>
32
+ </template>
33
+ ```
34
+
35
+ | Prop | Type | Default | Effect |
36
+ | ------------- | ------------------------- | --------------- | ------------------------------------------------ |
37
+ | `modelValue` | `string \| Color` | none | Controlled color, `v-model` |
38
+ | `channel` | `ColorChannel` | none | Edit one channel instead of the hex value (Reka) |
39
+ | `colorSpace` | `ColorSpace` | `'hsl'` | Space of `channel` (Reka) |
40
+ | `size` | `'sm' \| 'md' \| 'lg'` | `'md'` | Input height 2rem, 2.5rem or 3rem |
41
+ | `label` | `string` | `'Color value'` | `aria-label` of the input |
42
+ | `invalid` | `boolean` | `false` | Sets `aria-invalid` and the danger edge |
43
+ | `disabled` | `boolean` | `false` | Disables the input |
44
+ | `readonly` | `boolean` | `false` | Read-only input (Reka) |
45
+ | `placeholder` | `string` | none | Placeholder when empty (Reka) |
46
+ | `class` | `HTMLAttributes['class']` | none | Merged onto the input |
47
+
48
+ The other Reka `ColorFieldRoot` props and emits pass through. Other attributes, such as `id` or `aria-describedby`, go to the input, so an outer `<label for>` can target it.
49
+
50
+ **Keyboard and accessibility.** The value is parsed when the input commits, on Enter or blur. Invalid text is rejected and the previous color stays; channel values are clamped to their range. ArrowUp and ArrowDown step the value. Point an error message at the input with `aria-describedby` and set `invalid`.
51
+
52
+ ## API
53
+
54
+ Generated from the component sources. Every component also takes `class`, `style` and the other attributes Vue falls through.
55
+
56
+ ### NwColorField
57
+
58
+ | Prop | Type | Default | Description |
59
+ | --- | --- | --- | --- |
60
+ | `size` | `"sm" \| "md" \| "lg"` | | |
61
+ | `label` | `string` | `"Color value"` | |
62
+ | `invalid` | `boolean` | | |
63
+ | `modelValue` | `string \| Color` | | The color value (controlled). |
64
+ | `defaultValue` | `string \| Color` | | The default color value (uncontrolled). |
65
+ | `colorSpace` | `ColorSpace` | | The color space to operate in when displaying a channel. |
66
+ | `channel` | `ColorChannel` | | The color channel to display. |
67
+ | `placeholder` | `string` | | Placeholder text when the field is empty. |
68
+ | `disabled` | `boolean` | | When `true`, prevents the user from interacting with the field. |
69
+ | `readonly` | `boolean` | | When `true`, the field is read-only. |
70
+ | `disableWheelChange` | `boolean` | | When `true`, prevents the value from changing on wheel scroll. |
71
+ | `locale` | `string` | | The locale to use for number formatting. |
72
+ | `step` | `number` | | Custom step value for increment/decrement. |
73
+ | `asChild` | `boolean` | | Change the default rendered element for the one passed as a child, merging their props and behavior. |
74
+ | `as` | `AsTag \| Component` | | The element or component this component should render as. |
75
+ | `name` | `string` | | The name of the field. |
76
+ | `required` | `boolean` | | When `true`, indicates that the user must set the value before the owning form can be submitted. |
77
+
78
+ | Event | Payload | Description |
79
+ | --- | --- | --- |
80
+ | `update:modelValue` | `[value: string]` | |
81
+ | `update:color` | `[value: Color]` | |
@@ -0,0 +1,81 @@
1
+ # NwColorPicker
2
+
3
+ Part of [Color](../families/color.md).
4
+
5
+ `NwColorPicker` is a complete picker behind one button. The button opens a Reka `Popover` with a saturation and brightness area, hue and opacity sliders, a hex field and a row of presets. The button shows a swatch of the current color.
6
+
7
+ Without `presets`, the picker offers the twelve accents of the active flavor (indigo to steel), read from `@nyxwire/palette`, and the row follows the flavor scoped by the nearest `NwProvider`. The popover content carries that provider's `data-flavor` and `data-accent`, so a scoped island keeps its flavor even though the popover is portalled to `<body>`.
8
+
9
+ ```vue title="ColorPickerDemo.vue"
10
+ <script setup lang="ts">
11
+ import { ref } from 'vue'
12
+ import { NwColorPicker, NwProvider } from '@nyxwire/vue'
13
+
14
+ const signal = ref('#848fff')
15
+ </script>
16
+
17
+ <template>
18
+ <NwProvider>
19
+ <div class="flex flex-wrap items-center gap-4">
20
+ <NwColorPicker v-model="signal" label="Signal color" />
21
+ <output class="font-mono text-sm text-fg-muted">{{ signal }}</output>
22
+ </div>
23
+ </NwProvider>
24
+ </template>
25
+ ```
26
+
27
+ ```text title="Anatomy (rendered for you)"
28
+ NwColorPicker
29
+ ├─ trigger: NwColorSwatch + label (default slot, receives { value })
30
+ └─ popover content
31
+ ├─ title + close button
32
+ ├─ NwColorArea (hsb: saturation × brightness)
33
+ ├─ NwColorSlider channel="hue"
34
+ ├─ NwColorSlider channel="alpha"
35
+ ├─ NwColorField (hex)
36
+ └─ NwColorSwatchPicker of presets (the flavor accents unless `presets` is set)
37
+ ```
38
+
39
+ | Prop | Type | Default | Effect |
40
+ | -------------- | ------------------------------ | ---------------------- | ------------------------------------------------------------------------- |
41
+ | `modelValue` | `string \| Color` | none | Current color; `v-model` emits a string in `format` |
42
+ | `defaultValue` | `string \| Color` | pure red | Uncontrolled starting color; without it the picker starts at hsl 0 100 50 |
43
+ | `format` | `ColorFormat` | `'hex'` | Format of the emitted string, such as `'hex'` or `'hsl'` |
44
+ | `label` | `string` | `'Choose color'` | Trigger text, accessible name and popover title |
45
+ | `presets` | `readonly { value; label? }[]` | flavor accents | Swatches under the field; `[]` hides the row |
46
+ | `disabled` | `boolean` | `false` | Disables the trigger and every control |
47
+ | `open` | `boolean` | none | Controlled open state, `v-model:open` |
48
+ | `defaultOpen` | `boolean` | `false` | Uncontrolled initial open state |
49
+ | `closeLabel` | `string` | `'Close color picker'` | Accessible name of the close button |
50
+ | `class` | `HTMLAttributes['class']` | none | Merged onto the trigger |
51
+
52
+ Emits `update:modelValue` (a string) and `update:open` (a boolean). Other attributes go to the trigger button. `NwColorPreset` is exported as the type of one preset.
53
+
54
+ **Keyboard and accessibility.** The trigger is a button named by `label`. Opening the picker moves focus into the popover, which keeps a 16px collision padding from the viewport edge. Escape or the close button closes it and returns focus to the trigger. The area, sliders, field and presets work from the keyboard as described in the sections below.
55
+
56
+ ## API
57
+
58
+ Generated from the component sources. Every component also takes `class`, `style` and the other attributes Vue falls through.
59
+
60
+ ### NwColorPicker
61
+
62
+ | Prop | Type | Default | Description |
63
+ | --- | --- | --- | --- |
64
+ | `modelValue` | `string \| Color` | | |
65
+ | `defaultValue` | `string \| Color` | | |
66
+ | `format` | `ColorFormat` | `"hex"` | |
67
+ | `label` | `string` | `"Choose color"` | |
68
+ | `disabled` | `boolean` | | |
69
+ | `presets` | `readonly NwColorPreset[]` | | |
70
+ | `open` | `boolean` | `undefined` | |
71
+ | `defaultOpen` | `boolean` | | |
72
+ | `closeLabel` | `string` | `"Close color picker"` | |
73
+
74
+ | Event | Payload | Description |
75
+ | --- | --- | --- |
76
+ | `update:modelValue` | `[value: string]` | |
77
+ | `update:open` | `[value: boolean]` | |
78
+
79
+ | Slot | Props |
80
+ | --- | --- |
81
+ | `default` | `{ value: string; }` |
@@ -0,0 +1,95 @@
1
+ # NwColorSlider
2
+
3
+ Part of [Color](../families/color.md).
4
+
5
+ `NwColorSlider` shows one channel of a color on a gradient track and wraps Reka `ColorSliderRoot` and `ColorSliderThumb`. The track paints the channel gradient over a checkerboard, so you can see the alpha channel.
6
+
7
+ ```vue title="ColorSliderDemo.vue"
8
+ <script setup lang="ts">
9
+ import { ref } from 'vue'
10
+ import { NwColorSlider, NwColorSwatch, NwProvider, type NwColorSliderProps } from '@nyxwire/vue'
11
+
12
+ const trace = ref<NwColorSliderProps['modelValue']>('#5eddfecc')
13
+ const channels = [
14
+ { channel: 'hue', label: 'Hue' },
15
+ { channel: 'saturation', label: 'Saturation' },
16
+ { channel: 'lightness', label: 'Lightness' },
17
+ { channel: 'alpha', label: 'Opacity' },
18
+ ] as const
19
+ </script>
20
+
21
+ <template>
22
+ <NwProvider>
23
+ <div class="grid w-full max-w-sm gap-2">
24
+ <div class="flex items-center gap-3 text-sm text-fg-muted">
25
+ <NwColorSwatch :color="trace" size="lg" label="Trace color" />
26
+ <output class="font-mono">{{ trace }}</output>
27
+ </div>
28
+ <div v-for="item in channels" :key="item.channel" class="grid gap-1 text-xs text-fg-muted">
29
+ <span>{{ item.label }}</span>
30
+ <NwColorSlider v-model="trace" :channel="item.channel" :label="`Trace ${item.label}`" />
31
+ </div>
32
+ </div>
33
+ </NwProvider>
34
+ </template>
35
+ ```
36
+
37
+ | Prop | Type | Default | Effect |
38
+ | -------------- | ---------------------------- | -------------- | ------------------------------------------------------ |
39
+ | `channel` | `ColorChannel` | required | `'hue'`, `'saturation'`, `'lightness'`, `'alpha'`, … |
40
+ | `modelValue` | `string \| Color` | none | Controlled color, `v-model` |
41
+ | `defaultValue` | `string \| Color` | `'#000000'` | Uncontrolled starting color (Reka) |
42
+ | `colorSpace` | `ColorSpace` | `'hsl'` | Color space of `channel` (Reka) |
43
+ | `orientation` | `'horizontal' \| 'vertical'` | `'horizontal'` | Vertical sliders are 10rem tall; the gradient follows |
44
+ | `inverted` | `boolean` | `false` | Reverses the axis (Reka) |
45
+ | `dir` | `'ltr' \| 'rtl'` | provider `dir` | Reading direction; the gradient flips in right-to-left |
46
+ | `step` | `number` | channel step | Keyboard step (Reka) |
47
+ | `label` | `string` | none | `aria-label` of the thumb, the focusable control |
48
+ | `disabled` | `boolean` | `false` | Blocks interaction and dims the slider |
49
+ | `class` | `HTMLAttributes['class']` | none | Merged onto the root |
50
+
51
+ The other Reka `ColorSliderRoot` props and emits pass through. Reka 2.11 always draws a left-to-right gradient. `NwColorSliderTrack` keeps Reka's colors and checkerboard but points the gradient along the slider's actual axis, so vertical, inverted and right-to-left sliders show the right colors under the thumb. It is exported for custom slider layouts.
52
+
53
+ **Keyboard.** Arrow keys change the channel by `step`, and Home and End jump to the ends. The thumb has the `slider` role and reports its orientation. Set `label` so it has a name.
54
+
55
+ ## API
56
+
57
+ Generated from the component sources. Every component also takes `class`, `style` and the other attributes Vue falls through.
58
+
59
+ ### NwColorSlider
60
+
61
+ | Prop | Type | Default | Description |
62
+ | --- | --- | --- | --- |
63
+ | `label` | `string` | | |
64
+ | `modelValue` | `string \| Color` | | The color value (controlled). |
65
+ | `defaultValue` | `string \| Color` | | The default color value (uncontrolled). |
66
+ | `colorSpace` | `ColorSpace` | | The color space to operate in. |
67
+ | `channel` | `ColorChannel` | required | The color channel that this slider manipulates. |
68
+ | `orientation` | `DataOrientation` | | The orientation of the slider. |
69
+ | `dir` | `Direction` | | The reading direction of the slider. |
70
+ | `inverted` | `boolean` | | Whether the slider is visually inverted. |
71
+ | `disabled` | `boolean` | | When `true`, prevents the user from interacting with the slider. |
72
+ | `step` | `number` | | Custom step value for increment/decrement. |
73
+ | `asChild` | `boolean` | | Change the default rendered element for the one passed as a child, merging their props and behavior. |
74
+ | `as` | `AsTag \| Component` | | The element or component this component should render as. |
75
+ | `name` | `string` | | The name of the field. |
76
+ | `required` | `boolean` | | When `true`, indicates that the user must set the value before the owning form can be submitted. |
77
+
78
+ | Event | Payload | Description |
79
+ | --- | --- | --- |
80
+ | `update:modelValue` | `[value: string \| Color]` | |
81
+ | `update:color` | `[value: Color]` | |
82
+ | `change` | `[value: string]` | |
83
+ | `changeEnd` | `[value: string]` | |
84
+
85
+ ### NwColorSliderTrack
86
+
87
+ | Prop | Type | Default | Description |
88
+ | --- | --- | --- | --- |
89
+ | `dir` | `Direction` | | |
90
+ | `asChild` | `boolean` | | Change the default rendered element for the one passed as a child, merging their props and behavior. |
91
+ | `as` | `AsTag \| Component` | | The element or component this component should render as. |
92
+
93
+ | Slot | Props |
94
+ | --- | --- |
95
+ | `default` | |
@@ -0,0 +1,108 @@
1
+ # NwColorSwatchPicker
2
+
3
+ Part of [Color](../families/color.md).
4
+
5
+ `NwColorSwatchPicker` is a grid of preset swatches with one selected. It wraps Reka `ColorSwatchPickerRoot` (a listbox) and `ColorSwatchPickerItem`. Each item is a 2.75rem cut-corner tile. Its chamfered edge lights up in the primary color and glows when the item is selected, and a check badge appears in the corner. The grid fits as many 2.75rem columns as its width allows.
6
+
7
+ ```vue title="ColorSwatchPickerDemo.vue"
8
+ <script setup lang="ts">
9
+ import { computed, ref } from 'vue'
10
+ import { flavors } from '@nyxwire/palette'
11
+ import { NwColorSwatchPicker, NwColorSwatchPickerItem, NwProvider } from '@nyxwire/vue'
12
+
13
+ const { colors } = flavors.nocturne
14
+ const presets = (['indigo', 'synth', 'ice', 'matrix', 'volt', 'alarm'] as const).map((name) => ({
15
+ value: colors[name].hex,
16
+ label: colors[name].label,
17
+ }))
18
+ const team = ref(presets[2]?.value)
19
+ const teamLabel = computed(() => presets.find((preset) => preset.value === team.value)?.label)
20
+ </script>
21
+
22
+ <template>
23
+ <NwProvider>
24
+ <div class="grid w-full max-w-xs gap-3">
25
+ <NwColorSwatchPicker v-model="team" aria-label="Team color">
26
+ <NwColorSwatchPickerItem
27
+ v-for="preset in presets"
28
+ :key="preset.value"
29
+ :value="preset.value"
30
+ :label="preset.label"
31
+ />
32
+ </NwColorSwatchPicker>
33
+ <output class="font-mono text-sm text-fg-muted">{{ teamLabel }} {{ team }}</output>
34
+ </div>
35
+ </NwProvider>
36
+ </template>
37
+ ```
38
+
39
+ ```text title="Anatomy"
40
+ NwColorSwatchPicker
41
+ └─ NwColorSwatchPickerItem (one per preset)
42
+ ```
43
+
44
+ | Part | Prop | Type | Default | Effect |
45
+ | ------------------------- | -------------- | ------------------------- | ----------- | -------------------------------------------- |
46
+ | `NwColorSwatchPicker` | `modelValue` | `string \| string[]` | none | Selected color, `v-model` |
47
+ | | `defaultValue` | `string \| string[]` | none | Uncontrolled selection |
48
+ | | `disabled` | `boolean` | `false` | Disables every item |
49
+ | | `class` | `HTMLAttributes['class']` | none | Merged onto the grid |
50
+ | `NwColorSwatchPickerItem` | `value` | `string` | required | The color, a hex string |
51
+ | | `label` | `string` | none | Accessible name of the option and its swatch |
52
+ | | `shape` | `'rounded' \| 'square'` | `'rounded'` | Swatch shape |
53
+
54
+ The picker accepts Reka's other listbox props (`multiple`, `orientation`, …), except `by`. An item's default slot receives `{ selected }` and replaces the swatch and the check.
55
+
56
+ **Keyboard and accessibility.** Give the picker an `aria-label`. Arrow keys move between swatches and select them, updating `v-model`. The grid shows a focus ring when it has focus, and the highlighted item takes the bright line color.
57
+
58
+ ## API
59
+
60
+ Generated from the component sources. Every component also takes `class`, `style` and the other attributes Vue falls through.
61
+
62
+ ### NwColorSwatchPicker
63
+
64
+ | Prop | Type | Default | Description |
65
+ | --- | --- | --- | --- |
66
+ | `defaultValue` | `string \| string[]` | | The value of the listbox when initially rendered. |
67
+ | `modelValue` | `string \| string[]` | | The controlled value of the listbox. |
68
+ | `multiple` | `boolean` | | Whether multiple options can be selected or not. |
69
+ | `disabled` | `boolean` | | When `true`, prevents the user from interacting with listbox |
70
+ | `dir` | `Direction` | | The reading direction of the listbox when applicable. |
71
+ | `orientation` | `DataOrientation` | | The orientation of the listbox. |
72
+ | `asChild` | `boolean` | | Change the default rendered element for the one passed as a child, merging their props and behavior. |
73
+ | `as` | `AsTag \| Component` | | The element or component this component should render as. |
74
+ | `name` | `string` | | The name of the field. |
75
+ | `required` | `boolean` | | When `true`, indicates that the user must set the value before the owning form can be submitted. |
76
+ | `highlightOnHover` | `boolean` | | When `true`, hover over item will trigger highlight |
77
+ | `loop` | `boolean` | | When `true`, keyboard navigation will loop from last item to first, and vice versa. |
78
+ | `selectionBehavior` | `"replace" \| "toggle"` | | How multiple selection should behave in the collection. |
79
+
80
+ | Event | Payload | Description |
81
+ | --- | --- | --- |
82
+ | `update:modelValue` | `[value: AcceptableValue]` | |
83
+ | `highlight` | `[payload: { ref: HTMLElement; value: AcceptableValue; } \| undefined]` | |
84
+ | `entryFocus` | `[event: CustomEvent<any>]` | |
85
+ | `leave` | `[event: Event]` | |
86
+
87
+ | Slot | Props |
88
+ | --- | --- |
89
+ | `default` | `{ modelValue: string \| string[] \| undefined; }` |
90
+
91
+ ### NwColorSwatchPickerItem
92
+
93
+ | Prop | Type | Default | Description |
94
+ | --- | --- | --- | --- |
95
+ | `label` | `string` | | |
96
+ | `shape` | `"square" \| "rounded"` | | |
97
+ | `value` | `string` | required | The color to display in the swatch as a hex string. |
98
+ | `disabled` | `boolean` | | When `true`, prevents the user from interacting with the item. |
99
+ | `asChild` | `boolean` | | Change the default rendered element for the one passed as a child, merging their props and behavior. |
100
+ | `as` | `AsTag \| Component` | | The element or component this component should render as. |
101
+
102
+ | Event | Payload | Description |
103
+ | --- | --- | --- |
104
+ | `select` | `[event: SelectEvent$3<AcceptableValue>]` | |
105
+
106
+ | Slot | Props |
107
+ | --- | --- |
108
+ | `default` | `{ selected: boolean; }` |
@@ -0,0 +1,58 @@
1
+ # NwColorSwatch
2
+
3
+ Part of [Color](../families/color.md).
4
+
5
+ `NwColorSwatch` previews one color over a checkerboard and cannot be interacted with. It wraps Reka `ColorSwatch`, which gives it `role="img"` and a name derived from the color unless you pass `label`.
6
+
7
+ ```vue title="ColorSwatchDemo.vue"
8
+ <script setup lang="ts">
9
+ import { NwColorSwatch, NwProvider } from '@nyxwire/vue'
10
+
11
+ const sizes = ['sm', 'md', 'lg'] as const
12
+ </script>
13
+
14
+ <template>
15
+ <NwProvider>
16
+ <div class="flex flex-wrap items-center gap-4">
17
+ <NwColorSwatch
18
+ v-for="size in sizes"
19
+ :key="size"
20
+ color="#f8e445"
21
+ :size="size"
22
+ :label="`Volt yellow, ${size}`"
23
+ />
24
+ <NwColorSwatch color="#f8e445" size="lg" shape="square" label="Volt yellow, square" />
25
+ <NwColorSwatch color="#5eddfe80" size="lg" label="Ice at half opacity" />
26
+ </div>
27
+ </NwProvider>
28
+ </template>
29
+ ```
30
+
31
+ | Prop | Type | Default | Effect |
32
+ | ------- | ------------------------- | ----------- | ------------------------------ |
33
+ | `color` | `string \| Color` | none | Color to show (Reka) |
34
+ | `label` | `string` | color name | Accessible name (Reka) |
35
+ | `size` | `'sm' \| 'md' \| 'lg'` | `'md'` | 1.5rem, 2rem or 2.75rem square |
36
+ | `shape` | `'rounded' \| 'square'` | `'rounded'` | Corner radius |
37
+ | `class` | `HTMLAttributes['class']` | none | Merged onto the root |
38
+
39
+ The default slot renders over the color, for a badge or an icon.
40
+
41
+ ## API
42
+
43
+ Generated from the component sources. Every component also takes `class`, `style` and the other attributes Vue falls through.
44
+
45
+ ### NwColorSwatch
46
+
47
+ | Prop | Type | Default | Description |
48
+ | --- | --- | --- | --- |
49
+ | `size` | `"sm" \| "md" \| "lg"` | | |
50
+ | `shape` | `"square" \| "rounded"` | | |
51
+ | `color` | `string \| Color` | | The color to display in the swatch as a hex string or Color object. |
52
+ | `label` | `string` | | Optional accessible label for the color. |
53
+ | `asChild` | `boolean` | | Change the default rendered element for the one passed as a child, merging their props and behavior. |
54
+ | `as` | `AsTag \| Component` | | The element or component this component should render as. |
55
+
56
+ | Slot | Props |
57
+ | --- | --- |
58
+ | `default` | |