@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.
- package/LICENSE +21 -0
- package/README.md +148 -2
- package/dist/components/actions/alert/NwAlert.vue.d.ts +37 -0
- package/dist/components/actions/alert/NwAlertDescription.vue.d.ts +17 -0
- package/dist/components/actions/alert/NwAlertTitle.vue.d.ts +17 -0
- package/dist/components/actions/alert/index.d.ts +6 -0
- package/dist/components/actions/aspect-ratio/NwAspectRatio.vue.d.ts +17 -0
- package/dist/components/actions/aspect-ratio/index.d.ts +2 -0
- package/dist/components/actions/avatar/NwAvatar.vue.d.ts +29 -0
- package/dist/components/actions/avatar/NwAvatarFallback.vue.d.ts +15 -0
- package/dist/components/actions/avatar/NwAvatarGroup.vue.d.ts +14 -0
- package/dist/components/actions/avatar/NwAvatarImage.vue.d.ts +11 -0
- package/dist/components/actions/avatar/context.d.ts +3 -0
- package/dist/components/actions/avatar/index.d.ts +9 -0
- package/dist/components/actions/badge/NwBadge.vue.d.ts +23 -0
- package/dist/components/actions/badge/index.d.ts +2 -0
- package/dist/components/actions/button/NwButton.vue.d.ts +29 -0
- package/dist/components/actions/button/NwButtonGroup.vue.d.ts +19 -0
- package/dist/components/actions/button/index.d.ts +4 -0
- package/dist/components/actions/card/NwCard.vue.d.ts +25 -0
- package/dist/components/actions/card/NwCardContent.vue.d.ts +17 -0
- package/dist/components/actions/card/NwCardDescription.vue.d.ts +17 -0
- package/dist/components/actions/card/NwCardFooter.vue.d.ts +17 -0
- package/dist/components/actions/card/NwCardHeader.vue.d.ts +17 -0
- package/dist/components/actions/card/NwCardTitle.vue.d.ts +17 -0
- package/dist/components/actions/card/index.d.ts +12 -0
- package/dist/components/actions/chip/NwChip.vue.d.ts +24 -0
- package/dist/components/actions/chip/index.d.ts +1 -0
- package/dist/components/actions/code/NwCode.vue.d.ts +20 -0
- package/dist/components/actions/code/index.d.ts +1 -0
- package/dist/components/actions/data-table/NwDataTable.vue.d.ts +37 -0
- package/dist/components/actions/data-table/index.d.ts +1 -0
- package/dist/components/actions/empty/NwEmpty.vue.d.ts +19 -0
- package/dist/components/actions/empty/index.d.ts +1 -0
- package/dist/components/actions/hud-panel/NwHudPanel.vue.d.ts +45 -0
- package/dist/components/actions/hud-panel/index.d.ts +2 -0
- package/dist/components/actions/icon-button/NwIconButton.vue.d.ts +21 -0
- package/dist/components/actions/icon-button/index.d.ts +1 -0
- package/dist/components/actions/index.d.ts +28 -0
- package/dist/components/actions/kbd/NwKbd.vue.d.ts +18 -0
- package/dist/components/actions/kbd/NwKeyHint.vue.d.ts +22 -0
- package/dist/components/actions/kbd/index.d.ts +5 -0
- package/dist/components/actions/layout/NwLayout.vue.d.ts +18 -0
- package/dist/components/actions/layout/index.d.ts +1 -0
- package/dist/components/actions/link/NwLink.vue.d.ts +27 -0
- package/dist/components/actions/link/index.d.ts +3 -0
- package/dist/components/actions/list/NwList.vue.d.ts +19 -0
- package/dist/components/actions/list/index.d.ts +1 -0
- package/dist/components/actions/meter/NwMeter.vue.d.ts +15 -0
- package/dist/components/actions/meter/index.d.ts +1 -0
- package/dist/components/actions/neon-text/NwNeonText.vue.d.ts +26 -0
- package/dist/components/actions/neon-text/index.d.ts +3 -0
- package/dist/components/actions/progress/NwProgress.vue.d.ts +21 -0
- package/dist/components/actions/progress/index.d.ts +2 -0
- package/dist/components/actions/rating/NwRating.vue.d.ts +21 -0
- package/dist/components/actions/rating/index.d.ts +2 -0
- package/dist/components/actions/separator/NwSeparator.vue.d.ts +12 -0
- package/dist/components/actions/separator/index.d.ts +2 -0
- package/dist/components/actions/skeleton/NwSkeleton.vue.d.ts +21 -0
- package/dist/components/actions/skeleton/index.d.ts +3 -0
- package/dist/components/actions/spinner/NwSpinner.vue.d.ts +17 -0
- package/dist/components/actions/spinner/index.d.ts +3 -0
- package/dist/components/actions/stat/NwStat.vue.d.ts +8 -0
- package/dist/components/actions/stat/index.d.ts +1 -0
- package/dist/components/actions/stat-bar/NwStatBar.vue.d.ts +35 -0
- package/dist/components/actions/stat-bar/index.d.ts +2 -0
- package/dist/components/actions/table/NwTable.vue.d.ts +24 -0
- package/dist/components/actions/table/NwTableBody.vue.d.ts +17 -0
- package/dist/components/actions/table/NwTableCaption.vue.d.ts +17 -0
- package/dist/components/actions/table/NwTableCell.vue.d.ts +17 -0
- package/dist/components/actions/table/NwTableFooter.vue.d.ts +17 -0
- package/dist/components/actions/table/NwTableHead.vue.d.ts +21 -0
- package/dist/components/actions/table/NwTableHeader.vue.d.ts +17 -0
- package/dist/components/actions/table/NwTableRow.vue.d.ts +19 -0
- package/dist/components/actions/table/context.d.ts +4 -0
- package/dist/components/actions/table/index.d.ts +16 -0
- package/dist/components/actions/toggle/NwToggle.vue.d.ts +22 -0
- package/dist/components/actions/toggle/NwToggleGroup.vue.d.ts +23 -0
- package/dist/components/actions/toggle/NwToggleGroupItem.vue.d.ts +18 -0
- package/dist/components/actions/toggle/context.d.ts +7 -0
- package/dist/components/actions/toggle/index.d.ts +7 -0
- package/dist/components/actions/toolbar/NwToolbar.vue.d.ts +15 -0
- package/dist/components/actions/toolbar/NwToolbarButton.vue.d.ts +22 -0
- package/dist/components/actions/toolbar/NwToolbarLink.vue.d.ts +15 -0
- package/dist/components/actions/toolbar/NwToolbarSeparator.vue.d.ts +8 -0
- package/dist/components/actions/toolbar/NwToolbarToggleGroup.vue.d.ts +25 -0
- package/dist/components/actions/toolbar/NwToolbarToggleItem.vue.d.ts +18 -0
- package/dist/components/actions/toolbar/index.d.ts +12 -0
- package/dist/components/color/color-area/NwColorArea.vue.d.ts +30 -0
- package/dist/components/color/color-area/NwColorAreaThumb.vue.d.ts +20 -0
- package/dist/components/color/color-area/index.d.ts +4 -0
- package/dist/components/color/color-field/NwColorField.vue.d.ts +20 -0
- package/dist/components/color/color-field/index.d.ts +2 -0
- package/dist/components/color/color-picker/NwColorPicker.vue.d.ts +46 -0
- package/dist/components/color/color-picker/index.d.ts +2 -0
- package/dist/components/color/color-slider/NwColorSlider.vue.d.ts +19 -0
- package/dist/components/color/color-slider/NwColorSliderTrack.vue.d.ts +21 -0
- package/dist/components/color/color-slider/index.d.ts +4 -0
- package/dist/components/color/color-swatch/NwColorSwatch.vue.d.ts +23 -0
- package/dist/components/color/color-swatch/index.d.ts +2 -0
- package/dist/components/color/color-swatch-picker/NwColorSwatchPicker.vue.d.ts +38 -0
- package/dist/components/color/color-swatch-picker/NwColorSwatchPickerItem.vue.d.ts +29 -0
- package/dist/components/color/color-swatch-picker/index.d.ts +4 -0
- package/dist/components/color/index.d.ts +6 -0
- package/dist/components/datetime/calendar/NwCalendar.vue.d.ts +36 -0
- package/dist/components/datetime/calendar/NwCalendarCell.vue.d.ts +20 -0
- package/dist/components/datetime/calendar/index.d.ts +3 -0
- package/dist/components/datetime/calendar/parts.d.ts +14 -0
- package/dist/components/datetime/date-field/NwDateField.vue.d.ts +36 -0
- package/dist/components/datetime/date-field/index.d.ts +3 -0
- package/dist/components/datetime/date-field/parts.d.ts +19 -0
- package/dist/components/datetime/date-picker/NwDatePicker.vue.d.ts +36 -0
- package/dist/components/datetime/date-picker/index.d.ts +3 -0
- package/dist/components/datetime/date-picker/parts.d.ts +21 -0
- package/dist/components/datetime/date-range-field/NwDateRangeField.vue.d.ts +42 -0
- package/dist/components/datetime/date-range-field/index.d.ts +3 -0
- package/dist/components/datetime/date-range-field/parts.d.ts +19 -0
- package/dist/components/datetime/date-range-picker/NwDateRangePicker.vue.d.ts +41 -0
- package/dist/components/datetime/date-range-picker/index.d.ts +3 -0
- package/dist/components/datetime/date-range-picker/parts.d.ts +21 -0
- package/dist/components/datetime/index.d.ts +12 -0
- package/dist/components/datetime/month-cell-trigger.d.ts +13 -0
- package/dist/components/datetime/month-picker/NwMonthPicker.vue.d.ts +31 -0
- package/dist/components/datetime/month-picker/index.d.ts +3 -0
- package/dist/components/datetime/month-picker/parts.d.ts +12 -0
- package/dist/components/datetime/month-range-picker/NwMonthRangePicker.vue.d.ts +33 -0
- package/dist/components/datetime/month-range-picker/index.d.ts +3 -0
- package/dist/components/datetime/month-range-picker/parts.d.ts +12 -0
- package/dist/components/datetime/range-calendar/NwRangeCalendar.vue.d.ts +40 -0
- package/dist/components/datetime/range-calendar/NwRangeCalendarCell.vue.d.ts +20 -0
- package/dist/components/datetime/range-calendar/index.d.ts +3 -0
- package/dist/components/datetime/range-calendar/parts.d.ts +14 -0
- package/dist/components/datetime/styled.d.ts +12 -0
- package/dist/components/datetime/time-field/NwTimeField.vue.d.ts +36 -0
- package/dist/components/datetime/time-field/index.d.ts +3 -0
- package/dist/components/datetime/time-field/parts.d.ts +19 -0
- package/dist/components/datetime/time-range-field/NwTimeRangeField.vue.d.ts +42 -0
- package/dist/components/datetime/time-range-field/index.d.ts +3 -0
- package/dist/components/datetime/time-range-field/parts.d.ts +19 -0
- package/dist/components/datetime/year-picker/NwYearPicker.vue.d.ts +31 -0
- package/dist/components/datetime/year-picker/index.d.ts +3 -0
- package/dist/components/datetime/year-picker/parts.d.ts +12 -0
- package/dist/components/datetime/year-range-picker/NwYearRangePicker.vue.d.ts +33 -0
- package/dist/components/datetime/year-range-picker/index.d.ts +3 -0
- package/dist/components/datetime/year-range-picker/parts.d.ts +12 -0
- package/dist/components/forms/checkbox/NwCheckbox.vue.d.ts +28 -0
- package/dist/components/forms/checkbox/NwCheckboxGroup.vue.d.ts +19 -0
- package/dist/components/forms/checkbox/index.d.ts +4 -0
- package/dist/components/forms/choice-label/ChoiceLabel.vue.d.ts +22 -0
- package/dist/components/forms/editable/NwEditable.vue.d.ts +30 -0
- package/dist/components/forms/editable/NwEditableArea.vue.d.ts +15 -0
- package/dist/components/forms/editable/NwEditableCancelTrigger.vue.d.ts +19 -0
- package/dist/components/forms/editable/NwEditableEditTrigger.vue.d.ts +19 -0
- package/dist/components/forms/editable/NwEditableInput.vue.d.ts +21 -0
- package/dist/components/forms/editable/NwEditablePreview.vue.d.ts +15 -0
- package/dist/components/forms/editable/NwEditableSubmitTrigger.vue.d.ts +19 -0
- package/dist/components/forms/editable/index.d.ts +14 -0
- package/dist/components/forms/field/FieldScope.vue.d.ts +15 -0
- package/dist/components/forms/field/NwField.vue.d.ts +30 -0
- package/dist/components/forms/field/NwFieldDescription.vue.d.ts +15 -0
- package/dist/components/forms/field/NwFieldError.vue.d.ts +17 -0
- package/dist/components/forms/field/NwFieldLabel.vue.d.ts +15 -0
- package/dist/components/forms/field/index.d.ts +10 -0
- package/dist/components/forms/field/useNwFieldControl.d.ts +21 -0
- package/dist/components/forms/form/NwForm.vue.d.ts +23 -0
- package/dist/components/forms/form/index.d.ts +2 -0
- package/dist/components/forms/index.d.ts +15 -0
- package/dist/components/forms/input/NwInput.vue.d.ts +28 -0
- package/dist/components/forms/input/index.d.ts +2 -0
- package/dist/components/forms/input-group/NwInputGroup.vue.d.ts +21 -0
- package/dist/components/forms/input-group/NwInputGroupAddon.vue.d.ts +17 -0
- package/dist/components/forms/input-group/index.d.ts +4 -0
- package/dist/components/forms/label/NwLabel.vue.d.ts +15 -0
- package/dist/components/forms/label/index.d.ts +2 -0
- package/dist/components/forms/number-field/NwNumberField.vue.d.ts +30 -0
- package/dist/components/forms/number-field/NwNumberFieldDecrement.vue.d.ts +19 -0
- package/dist/components/forms/number-field/NwNumberFieldIncrement.vue.d.ts +19 -0
- package/dist/components/forms/number-field/NwNumberFieldInput.vue.d.ts +17 -0
- package/dist/components/forms/number-field/context.d.ts +4 -0
- package/dist/components/forms/number-field/index.d.ts +8 -0
- package/dist/components/forms/pin-input/NwPinInput.vue.d.ts +30 -0
- package/dist/components/forms/pin-input/NwPinInputInput.vue.d.ts +17 -0
- package/dist/components/forms/pin-input/index.d.ts +4 -0
- package/dist/components/forms/radio-group/NwRadioGroup.vue.d.ts +26 -0
- package/dist/components/forms/radio-group/NwRadioGroupItem.vue.d.ts +25 -0
- package/dist/components/forms/radio-group/index.d.ts +4 -0
- package/dist/components/forms/slider/NwSlider.vue.d.ts +29 -0
- package/dist/components/forms/slider/index.d.ts +2 -0
- package/dist/components/forms/switch/NwSwitch.vue.d.ts +18 -0
- package/dist/components/forms/switch/index.d.ts +2 -0
- package/dist/components/forms/tag-group/NwTagGroup.vue.d.ts +23 -0
- package/dist/components/forms/tag-group/NwTagGroupItem.vue.d.ts +18 -0
- package/dist/components/forms/tag-group/NwTagGroupItemDelete.vue.d.ts +19 -0
- package/dist/components/forms/tag-group/NwTagGroupItemText.vue.d.ts +15 -0
- package/dist/components/forms/tag-group/index.d.ts +8 -0
- package/dist/components/forms/tags-input/NwTagsInput.vue.d.ts +34 -0
- package/dist/components/forms/tags-input/NwTagsInputClear.vue.d.ts +19 -0
- package/dist/components/forms/tags-input/NwTagsInputInput.vue.d.ts +15 -0
- package/dist/components/forms/tags-input/NwTagsInputItem.vue.d.ts +15 -0
- package/dist/components/forms/tags-input/NwTagsInputItemDelete.vue.d.ts +19 -0
- package/dist/components/forms/tags-input/NwTagsInputItemText.vue.d.ts +15 -0
- package/dist/components/forms/tags-input/index.d.ts +12 -0
- package/dist/components/forms/textarea/NwTextarea.vue.d.ts +18 -0
- package/dist/components/forms/textarea/index.d.ts +2 -0
- package/dist/components/navigation/accordion/NwAccordion.vue.d.ts +37 -0
- package/dist/components/navigation/accordion/NwAccordionContent.vue.d.ts +22 -0
- package/dist/components/navigation/accordion/NwAccordionItem.vue.d.ts +22 -0
- package/dist/components/navigation/accordion/NwAccordionTrigger.vue.d.ts +20 -0
- package/dist/components/navigation/accordion/index.d.ts +5 -0
- package/dist/components/navigation/breadcrumb/NwBreadcrumb.vue.d.ts +30 -0
- package/dist/components/navigation/breadcrumb/NwBreadcrumbEllipsis.vue.d.ts +24 -0
- package/dist/components/navigation/breadcrumb/NwBreadcrumbItem.vue.d.ts +22 -0
- package/dist/components/navigation/breadcrumb/NwBreadcrumbLink.vue.d.ts +23 -0
- package/dist/components/navigation/breadcrumb/NwBreadcrumbList.vue.d.ts +22 -0
- package/dist/components/navigation/breadcrumb/NwBreadcrumbPage.vue.d.ts +22 -0
- package/dist/components/navigation/breadcrumb/NwBreadcrumbSeparator.vue.d.ts +22 -0
- package/dist/components/navigation/breadcrumb/index.d.ts +7 -0
- package/dist/components/navigation/collapsible/NwCollapsible.vue.d.ts +26 -0
- package/dist/components/navigation/collapsible/NwCollapsibleContent.vue.d.ts +24 -0
- package/dist/components/navigation/collapsible/NwCollapsibleTrigger.vue.d.ts +20 -0
- package/dist/components/navigation/collapsible/index.d.ts +3 -0
- package/dist/components/navigation/index.d.ts +13 -0
- package/dist/components/navigation/navbar/NwNavbar.vue.d.ts +26 -0
- package/dist/components/navigation/navbar/NwNavbarActions.vue.d.ts +22 -0
- package/dist/components/navigation/navbar/NwNavbarBrand.vue.d.ts +23 -0
- package/dist/components/navigation/navbar/NwNavbarLink.vue.d.ts +25 -0
- package/dist/components/navigation/navbar/index.d.ts +4 -0
- package/dist/components/navigation/navigation-menu/NwNavigationMenu.vue.d.ts +26 -0
- package/dist/components/navigation/navigation-menu/NwNavigationMenuContent.vue.d.ts +30 -0
- package/dist/components/navigation/navigation-menu/NwNavigationMenuIndicator.vue.d.ts +20 -0
- package/dist/components/navigation/navigation-menu/NwNavigationMenuItem.vue.d.ts +20 -0
- package/dist/components/navigation/navigation-menu/NwNavigationMenuLink.vue.d.ts +29 -0
- package/dist/components/navigation/navigation-menu/NwNavigationMenuList.vue.d.ts +20 -0
- package/dist/components/navigation/navigation-menu/NwNavigationMenuSub.vue.d.ts +26 -0
- package/dist/components/navigation/navigation-menu/NwNavigationMenuTrigger.vue.d.ts +20 -0
- package/dist/components/navigation/navigation-menu/NwNavigationMenuViewport.vue.d.ts +20 -0
- package/dist/components/navigation/navigation-menu/index.d.ts +9 -0
- package/dist/components/navigation/pagination/NwPagination.vue.d.ts +38 -0
- package/dist/components/navigation/pagination/NwPaginationEllipsis.vue.d.ts +20 -0
- package/dist/components/navigation/pagination/NwPaginationFirst.vue.d.ts +23 -0
- package/dist/components/navigation/pagination/NwPaginationLast.vue.d.ts +23 -0
- package/dist/components/navigation/pagination/NwPaginationList.vue.d.ts +27 -0
- package/dist/components/navigation/pagination/NwPaginationListItem.vue.d.ts +20 -0
- package/dist/components/navigation/pagination/NwPaginationNext.vue.d.ts +23 -0
- package/dist/components/navigation/pagination/NwPaginationPrev.vue.d.ts +23 -0
- package/dist/components/navigation/pagination/index.d.ts +8 -0
- package/dist/components/navigation/scroll-area/NwScrollArea.vue.d.ts +20 -0
- package/dist/components/navigation/scroll-area/NwScrollAreaCorner.vue.d.ts +20 -0
- package/dist/components/navigation/scroll-area/NwScrollAreaScrollbar.vue.d.ts +20 -0
- package/dist/components/navigation/scroll-area/NwScrollAreaThumb.vue.d.ts +20 -0
- package/dist/components/navigation/scroll-area/NwScrollAreaViewport.vue.d.ts +20 -0
- package/dist/components/navigation/scroll-area/index.d.ts +5 -0
- package/dist/components/navigation/sidenav/NwSidenav.vue.d.ts +27 -0
- package/dist/components/navigation/sidenav/NwSidenavGroup.vue.d.ts +21 -0
- package/dist/components/navigation/sidenav/NwSidenavItem.vue.d.ts +22 -0
- package/dist/components/navigation/sidenav/NwSidenavLink.vue.d.ts +25 -0
- package/dist/components/navigation/sidenav/NwSidenavList.vue.d.ts +22 -0
- package/dist/components/navigation/sidenav/index.d.ts +5 -0
- package/dist/components/navigation/splitter/NwSplitterGroup.vue.d.ts +26 -0
- package/dist/components/navigation/splitter/NwSplitterPanel.vue.d.ts +34 -0
- package/dist/components/navigation/splitter/NwSplitterResizeHandle.vue.d.ts +27 -0
- package/dist/components/navigation/splitter/index.d.ts +3 -0
- package/dist/components/navigation/stepper/NwStepper.vue.d.ts +47 -0
- package/dist/components/navigation/stepper/NwStepperDescription.vue.d.ts +20 -0
- package/dist/components/navigation/stepper/NwStepperIndicator.vue.d.ts +26 -0
- package/dist/components/navigation/stepper/NwStepperItem.vue.d.ts +22 -0
- package/dist/components/navigation/stepper/NwStepperSeparator.vue.d.ts +20 -0
- package/dist/components/navigation/stepper/NwStepperTitle.vue.d.ts +20 -0
- package/dist/components/navigation/stepper/NwStepperTrigger.vue.d.ts +20 -0
- package/dist/components/navigation/stepper/index.d.ts +7 -0
- package/dist/components/navigation/tabs/NwTabs.vue.d.ts +46 -0
- package/dist/components/navigation/tabs/NwTabsContent.vue.d.ts +20 -0
- package/dist/components/navigation/tabs/NwTabsIndicator.vue.d.ts +20 -0
- package/dist/components/navigation/tabs/NwTabsList.vue.d.ts +20 -0
- package/dist/components/navigation/tabs/NwTabsTrigger.vue.d.ts +20 -0
- package/dist/components/navigation/tabs/index.d.ts +6 -0
- package/dist/components/navigation/tree/NwTree.vue.d.ts +32 -0
- package/dist/components/navigation/tree/NwTreeItem.vue.d.ts +36 -0
- package/dist/components/navigation/tree/index.d.ts +2 -0
- package/dist/components/overlays/alert-dialog/NwAlertDialog.vue.d.ts +24 -0
- package/dist/components/overlays/alert-dialog/NwAlertDialogAction.vue.d.ts +24 -0
- package/dist/components/overlays/alert-dialog/NwAlertDialogCancel.vue.d.ts +21 -0
- package/dist/components/overlays/alert-dialog/NwAlertDialogContent.vue.d.ts +39 -0
- package/dist/components/overlays/alert-dialog/NwAlertDialogDescription.vue.d.ts +20 -0
- package/dist/components/overlays/alert-dialog/NwAlertDialogFooter.vue.d.ts +23 -0
- package/dist/components/overlays/alert-dialog/NwAlertDialogHeader.vue.d.ts +22 -0
- package/dist/components/overlays/alert-dialog/NwAlertDialogTitle.vue.d.ts +20 -0
- package/dist/components/overlays/alert-dialog/NwAlertDialogTrigger.vue.d.ts +18 -0
- package/dist/components/overlays/alert-dialog/index.d.ts +10 -0
- package/dist/components/overlays/command-palette/NwCommandPalette.vue.d.ts +49 -0
- package/dist/components/overlays/command-palette/index.d.ts +1 -0
- package/dist/components/overlays/context-menu/NwContextMenu.vue.d.ts +24 -0
- package/dist/components/overlays/context-menu/NwContextMenuCheckboxItem.vue.d.ts +30 -0
- package/dist/components/overlays/context-menu/NwContextMenuContent.vue.d.ts +38 -0
- package/dist/components/overlays/context-menu/NwContextMenuGroup.vue.d.ts +20 -0
- package/dist/components/overlays/context-menu/NwContextMenuItem.vue.d.ts +31 -0
- package/dist/components/overlays/context-menu/NwContextMenuLabel.vue.d.ts +25 -0
- package/dist/components/overlays/context-menu/NwContextMenuRadioGroup.vue.d.ts +22 -0
- package/dist/components/overlays/context-menu/NwContextMenuRadioItem.vue.d.ts +27 -0
- package/dist/components/overlays/context-menu/NwContextMenuSeparator.vue.d.ts +8 -0
- package/dist/components/overlays/context-menu/NwContextMenuSub.vue.d.ts +24 -0
- package/dist/components/overlays/context-menu/NwContextMenuSubContent.vue.d.ts +43 -0
- package/dist/components/overlays/context-menu/NwContextMenuSubTrigger.vue.d.ts +25 -0
- package/dist/components/overlays/context-menu/NwContextMenuTrigger.vue.d.ts +18 -0
- package/dist/components/overlays/context-menu/index.d.ts +14 -0
- package/dist/components/overlays/dialog/NwDialog.vue.d.ts +24 -0
- package/dist/components/overlays/dialog/NwDialogBody.vue.d.ts +23 -0
- package/dist/components/overlays/dialog/NwDialogClose.vue.d.ts +18 -0
- package/dist/components/overlays/dialog/NwDialogContent.vue.d.ts +44 -0
- package/dist/components/overlays/dialog/NwDialogDescription.vue.d.ts +20 -0
- package/dist/components/overlays/dialog/NwDialogFooter.vue.d.ts +23 -0
- package/dist/components/overlays/dialog/NwDialogHeader.vue.d.ts +22 -0
- package/dist/components/overlays/dialog/NwDialogTitle.vue.d.ts +20 -0
- package/dist/components/overlays/dialog/NwDialogTrigger.vue.d.ts +18 -0
- package/dist/components/overlays/dialog/index.d.ts +10 -0
- package/dist/components/overlays/drawer/NwDrawer.vue.d.ts +29 -0
- package/dist/components/overlays/drawer/NwDrawerClose.vue.d.ts +18 -0
- package/dist/components/overlays/drawer/NwDrawerContent.vue.d.ts +44 -0
- package/dist/components/overlays/drawer/NwDrawerDescription.vue.d.ts +20 -0
- package/dist/components/overlays/drawer/NwDrawerHandle.vue.d.ts +21 -0
- package/dist/components/overlays/drawer/NwDrawerHeader.vue.d.ts +22 -0
- package/dist/components/overlays/drawer/NwDrawerTitle.vue.d.ts +20 -0
- package/dist/components/overlays/drawer/NwDrawerTrigger.vue.d.ts +18 -0
- package/dist/components/overlays/drawer/index.d.ts +10 -0
- package/dist/components/overlays/dropdown-menu/NwDropdownMenu.vue.d.ts +26 -0
- package/dist/components/overlays/dropdown-menu/NwDropdownMenuCheckboxItem.vue.d.ts +30 -0
- package/dist/components/overlays/dropdown-menu/NwDropdownMenuContent.vue.d.ts +40 -0
- package/dist/components/overlays/dropdown-menu/NwDropdownMenuGroup.vue.d.ts +20 -0
- package/dist/components/overlays/dropdown-menu/NwDropdownMenuItem.vue.d.ts +31 -0
- package/dist/components/overlays/dropdown-menu/NwDropdownMenuLabel.vue.d.ts +25 -0
- package/dist/components/overlays/dropdown-menu/NwDropdownMenuRadioGroup.vue.d.ts +22 -0
- package/dist/components/overlays/dropdown-menu/NwDropdownMenuRadioItem.vue.d.ts +27 -0
- package/dist/components/overlays/dropdown-menu/NwDropdownMenuSeparator.vue.d.ts +8 -0
- package/dist/components/overlays/dropdown-menu/NwDropdownMenuShortcut.vue.d.ts +20 -0
- package/dist/components/overlays/dropdown-menu/NwDropdownMenuSub.vue.d.ts +24 -0
- package/dist/components/overlays/dropdown-menu/NwDropdownMenuSubContent.vue.d.ts +43 -0
- package/dist/components/overlays/dropdown-menu/NwDropdownMenuSubTrigger.vue.d.ts +25 -0
- package/dist/components/overlays/dropdown-menu/NwDropdownMenuTrigger.vue.d.ts +18 -0
- package/dist/components/overlays/dropdown-menu/index.d.ts +15 -0
- package/dist/components/overlays/hover-card/NwHoverCard.vue.d.ts +23 -0
- package/dist/components/overlays/hover-card/NwHoverCardContent.vue.d.ts +30 -0
- package/dist/components/overlays/hover-card/NwHoverCardTrigger.vue.d.ts +18 -0
- package/dist/components/overlays/hover-card/index.d.ts +4 -0
- package/dist/components/overlays/index.d.ts +12 -0
- package/dist/components/overlays/menubar/NwMenubar.vue.d.ts +27 -0
- package/dist/components/overlays/menubar/NwMenubarCheckboxItem.vue.d.ts +30 -0
- package/dist/components/overlays/menubar/NwMenubarContent.vue.d.ts +41 -0
- package/dist/components/overlays/menubar/NwMenubarGroup.vue.d.ts +20 -0
- package/dist/components/overlays/menubar/NwMenubarItem.vue.d.ts +31 -0
- package/dist/components/overlays/menubar/NwMenubarLabel.vue.d.ts +25 -0
- package/dist/components/overlays/menubar/NwMenubarMenu.vue.d.ts +18 -0
- package/dist/components/overlays/menubar/NwMenubarRadioGroup.vue.d.ts +22 -0
- package/dist/components/overlays/menubar/NwMenubarRadioItem.vue.d.ts +27 -0
- package/dist/components/overlays/menubar/NwMenubarSeparator.vue.d.ts +8 -0
- package/dist/components/overlays/menubar/NwMenubarSub.vue.d.ts +24 -0
- package/dist/components/overlays/menubar/NwMenubarSubContent.vue.d.ts +43 -0
- package/dist/components/overlays/menubar/NwMenubarSubTrigger.vue.d.ts +25 -0
- package/dist/components/overlays/menubar/NwMenubarTrigger.vue.d.ts +20 -0
- package/dist/components/overlays/menubar/index.d.ts +15 -0
- package/dist/components/overlays/popover/NwPopover.vue.d.ts +24 -0
- package/dist/components/overlays/popover/NwPopoverAnchor.vue.d.ts +18 -0
- package/dist/components/overlays/popover/NwPopoverClose.vue.d.ts +18 -0
- package/dist/components/overlays/popover/NwPopoverContent.vue.d.ts +52 -0
- package/dist/components/overlays/popover/NwPopoverTrigger.vue.d.ts +18 -0
- package/dist/components/overlays/popover/index.d.ts +6 -0
- package/dist/components/overlays/sheet/NwSheetContent.vue.d.ts +45 -0
- package/dist/components/overlays/sheet/index.d.ts +10 -0
- package/dist/components/overlays/toast/NwToast.vue.d.ts +107 -0
- package/dist/components/overlays/toast/NwToastAction.vue.d.ts +21 -0
- package/dist/components/overlays/toast/NwToastClose.vue.d.ts +24 -0
- package/dist/components/overlays/toast/NwToastDescription.vue.d.ts +20 -0
- package/dist/components/overlays/toast/NwToastTitle.vue.d.ts +20 -0
- package/dist/components/overlays/toast/NwToaster.vue.d.ts +21 -0
- package/dist/components/overlays/toast/index.d.ts +8 -0
- package/dist/components/overlays/toast/useToast.d.ts +45 -0
- package/dist/components/overlays/tooltip/NwTooltip.vue.d.ts +24 -0
- package/dist/components/overlays/tooltip/NwTooltipContent.vue.d.ts +33 -0
- package/dist/components/overlays/tooltip/NwTooltipTrigger.vue.d.ts +18 -0
- package/dist/components/overlays/tooltip/index.d.ts +3 -0
- package/dist/components/selection/autocomplete/NwAutocomplete.vue.d.ts +37 -0
- package/dist/components/selection/autocomplete/NwAutocompleteAnchor.vue.d.ts +20 -0
- package/dist/components/selection/autocomplete/NwAutocompleteCancel.vue.d.ts +23 -0
- package/dist/components/selection/autocomplete/NwAutocompleteContent.vue.d.ts +35 -0
- package/dist/components/selection/autocomplete/NwAutocompleteEmpty.vue.d.ts +20 -0
- package/dist/components/selection/autocomplete/NwAutocompleteGroup.vue.d.ts +20 -0
- package/dist/components/selection/autocomplete/NwAutocompleteInput.vue.d.ts +27 -0
- package/dist/components/selection/autocomplete/NwAutocompleteItem.vue.d.ts +26 -0
- package/dist/components/selection/autocomplete/NwAutocompleteLabel.vue.d.ts +20 -0
- package/dist/components/selection/autocomplete/NwAutocompleteSeparator.vue.d.ts +8 -0
- package/dist/components/selection/autocomplete/NwAutocompleteTrigger.vue.d.ts +23 -0
- package/dist/components/selection/autocomplete/index.d.ts +11 -0
- package/dist/components/selection/combobox/NwCombobox.vue.d.ts +37 -0
- package/dist/components/selection/combobox/NwComboboxAnchor.vue.d.ts +20 -0
- package/dist/components/selection/combobox/NwComboboxCancel.vue.d.ts +23 -0
- package/dist/components/selection/combobox/NwComboboxContent.vue.d.ts +35 -0
- package/dist/components/selection/combobox/NwComboboxEmpty.vue.d.ts +20 -0
- package/dist/components/selection/combobox/NwComboboxGroup.vue.d.ts +20 -0
- package/dist/components/selection/combobox/NwComboboxInput.vue.d.ts +27 -0
- package/dist/components/selection/combobox/NwComboboxItem.vue.d.ts +26 -0
- package/dist/components/selection/combobox/NwComboboxLabel.vue.d.ts +20 -0
- package/dist/components/selection/combobox/NwComboboxSeparator.vue.d.ts +8 -0
- package/dist/components/selection/combobox/NwComboboxTrigger.vue.d.ts +23 -0
- package/dist/components/selection/combobox/index.d.ts +11 -0
- package/dist/components/selection/index.d.ts +4 -0
- package/dist/components/selection/listbox/NwListbox.vue.d.ts +38 -0
- package/dist/components/selection/listbox/NwListboxContent.vue.d.ts +20 -0
- package/dist/components/selection/listbox/NwListboxFilter.vue.d.ts +27 -0
- package/dist/components/selection/listbox/NwListboxGroup.vue.d.ts +20 -0
- package/dist/components/selection/listbox/NwListboxGroupLabel.vue.d.ts +20 -0
- package/dist/components/selection/listbox/NwListboxItem.vue.d.ts +26 -0
- package/dist/components/selection/listbox/index.d.ts +6 -0
- package/dist/components/selection/select/NwSelect.vue.d.ts +29 -0
- package/dist/components/selection/select/NwSelectContent.vue.d.ts +32 -0
- package/dist/components/selection/select/NwSelectGroup.vue.d.ts +20 -0
- package/dist/components/selection/select/NwSelectItem.vue.d.ts +24 -0
- package/dist/components/selection/select/NwSelectLabel.vue.d.ts +20 -0
- package/dist/components/selection/select/NwSelectScrollDownButton.vue.d.ts +20 -0
- package/dist/components/selection/select/NwSelectScrollUpButton.vue.d.ts +20 -0
- package/dist/components/selection/select/NwSelectSeparator.vue.d.ts +8 -0
- package/dist/components/selection/select/NwSelectTrigger.vue.d.ts +23 -0
- package/dist/components/selection/select/NwSelectValue.vue.d.ts +20 -0
- package/dist/components/selection/select/index.d.ts +10 -0
- package/dist/docs/api.json +320 -0
- package/dist/docs/components/accordion.md +123 -0
- package/dist/docs/components/alert-dialog.md +199 -0
- package/dist/docs/components/alert.md +106 -0
- package/dist/docs/components/aspect-ratio.md +57 -0
- package/dist/docs/components/autocomplete.md +282 -0
- package/dist/docs/components/avatar.md +118 -0
- package/dist/docs/components/badge.md +66 -0
- package/dist/docs/components/breadcrumb.md +162 -0
- package/dist/docs/components/button.md +97 -0
- package/dist/docs/components/calendar.md +115 -0
- package/dist/docs/components/card.md +161 -0
- package/dist/docs/components/checkbox.md +117 -0
- package/dist/docs/components/chip.md +76 -0
- package/dist/docs/components/code.md +56 -0
- package/dist/docs/components/collapsible.md +92 -0
- package/dist/docs/components/color-area.md +95 -0
- package/dist/docs/components/color-field.md +81 -0
- package/dist/docs/components/color-picker.md +81 -0
- package/dist/docs/components/color-slider.md +95 -0
- package/dist/docs/components/color-swatch-picker.md +108 -0
- package/dist/docs/components/color-swatch.md +58 -0
- package/dist/docs/components/combobox.md +295 -0
- package/dist/docs/components/command-palette.md +83 -0
- package/dist/docs/components/context-menu.md +325 -0
- package/dist/docs/components/data-table.md +98 -0
- package/dist/docs/components/date-field.md +87 -0
- package/dist/docs/components/date-picker.md +136 -0
- package/dist/docs/components/date-range-field.md +87 -0
- package/dist/docs/components/date-range-picker.md +142 -0
- package/dist/docs/components/dialog.md +226 -0
- package/dist/docs/components/drawer.md +223 -0
- package/dist/docs/components/dropdown-menu.md +365 -0
- package/dist/docs/components/editable.md +171 -0
- package/dist/docs/components/empty.md +55 -0
- package/dist/docs/components/field.md +151 -0
- package/dist/docs/components/form.md +88 -0
- package/dist/docs/components/hover-card.md +116 -0
- package/dist/docs/components/hud-panel.md +163 -0
- package/dist/docs/components/icon-button.md +69 -0
- package/dist/docs/components/input-group.md +84 -0
- package/dist/docs/components/input.md +74 -0
- package/dist/docs/components/kbd.md +62 -0
- package/dist/docs/components/key-hint.md +62 -0
- package/dist/docs/components/layout.md +64 -0
- package/dist/docs/components/link.md +64 -0
- package/dist/docs/components/list.md +56 -0
- package/dist/docs/components/listbox.md +186 -0
- package/dist/docs/components/menubar.md +360 -0
- package/dist/docs/components/meter.md +62 -0
- package/dist/docs/components/month-picker.md +89 -0
- package/dist/docs/components/month-range-picker.md +91 -0
- package/dist/docs/components/navbar.md +115 -0
- package/dist/docs/components/navigation-menu.md +207 -0
- package/dist/docs/components/number-field.md +119 -0
- package/dist/docs/components/pagination.md +199 -0
- package/dist/docs/components/pin-input.md +102 -0
- package/dist/docs/components/popover.md +167 -0
- package/dist/docs/components/progress.md +65 -0
- package/dist/docs/components/provider.md +58 -0
- package/dist/docs/components/radio-group.md +102 -0
- package/dist/docs/components/range-calendar.md +120 -0
- package/dist/docs/components/rating.md +66 -0
- package/dist/docs/components/scroll-area.md +127 -0
- package/dist/docs/components/select.md +250 -0
- package/dist/docs/components/separator.md +63 -0
- package/dist/docs/components/sheet.md +204 -0
- package/dist/docs/components/sidenav.md +124 -0
- package/dist/docs/components/skeleton.md +68 -0
- package/dist/docs/components/slider.md +79 -0
- package/dist/docs/components/spinner.md +50 -0
- package/dist/docs/components/splitter-group.md +119 -0
- package/dist/docs/components/stat.md +58 -0
- package/dist/docs/components/stepper.md +177 -0
- package/dist/docs/components/switch.md +62 -0
- package/dist/docs/components/table.md +191 -0
- package/dist/docs/components/tabs.md +144 -0
- package/dist/docs/components/tag-group.md +128 -0
- package/dist/docs/components/tags-input.md +154 -0
- package/dist/docs/components/textarea.md +50 -0
- package/dist/docs/components/time-field.md +88 -0
- package/dist/docs/components/time-range-field.md +88 -0
- package/dist/docs/components/toaster.md +176 -0
- package/dist/docs/components/toggle.md +121 -0
- package/dist/docs/components/toolbar.md +163 -0
- package/dist/docs/components/tooltip.md +117 -0
- package/dist/docs/components/tree.md +125 -0
- package/dist/docs/components/year-picker.md +87 -0
- package/dist/docs/components/year-range-picker.md +93 -0
- package/dist/docs/composables.md +320 -0
- package/dist/docs/families/actions.md +39 -0
- package/dist/docs/families/color.md +16 -0
- package/dist/docs/families/datetime.md +187 -0
- package/dist/docs/families/forms.md +34 -0
- package/dist/docs/families/navigation.md +26 -0
- package/dist/docs/families/overlays.md +29 -0
- package/dist/docs/families/selection.md +14 -0
- package/dist/docs/foundations/accessibility.md +71 -0
- package/dist/docs/foundations/color-roles.md +114 -0
- package/dist/docs/foundations/effects-motion.md +150 -0
- package/dist/docs/foundations/flavors.md +156 -0
- package/dist/docs/foundations/icons.md +45 -0
- package/dist/docs/foundations/palette.md +180 -0
- package/dist/docs/foundations/spacing-elevation.md +168 -0
- package/dist/docs/foundations/typography.md +80 -0
- package/dist/docs/index.md +239 -0
- package/dist/docs/manifest.json +1777 -0
- package/dist/foundations/NwFlavorSelect.vue.d.ts +19 -0
- package/dist/foundations/NwProvider.vue.d.ts +39 -0
- package/dist/foundations/context.d.ts +13 -0
- package/dist/foundations/flavors.d.ts +15 -0
- package/dist/foundations/index.d.ts +7 -0
- package/dist/foundations/useFlavor.d.ts +46 -0
- package/dist/index.d.ts +11 -0
- package/dist/index.js +14762 -0
- package/dist/plugin.d.ts +2 -0
- package/dist/tailwind.css +1 -0
- package/dist/theme/accordion.d.ts +9 -0
- package/dist/theme/actions-shared.d.ts +30 -0
- package/dist/theme/alert-dialog.d.ts +28 -0
- package/dist/theme/alert.d.ts +19 -0
- package/dist/theme/aspect-ratio.d.ts +5 -0
- package/dist/theme/autocomplete.d.ts +85 -0
- package/dist/theme/avatar.d.ts +50 -0
- package/dist/theme/badge.d.ts +7 -0
- package/dist/theme/breadcrumb.d.ts +9 -0
- package/dist/theme/button-group.d.ts +7 -0
- package/dist/theme/button.d.ts +12 -0
- package/dist/theme/calendar.d.ts +17 -0
- package/dist/theme/card.d.ts +49 -0
- package/dist/theme/checkbox.d.ts +43 -0
- package/dist/theme/chip.d.ts +5 -0
- package/dist/theme/code.d.ts +6 -0
- package/dist/theme/collapsible.d.ts +5 -0
- package/dist/theme/color-area.d.ts +6 -0
- package/dist/theme/color-field.d.ts +19 -0
- package/dist/theme/color-picker.d.ts +9 -0
- package/dist/theme/color-shared.d.ts +9 -0
- package/dist/theme/color-slider.d.ts +9 -0
- package/dist/theme/color-swatch-picker.d.ts +9 -0
- package/dist/theme/color-swatch.d.ts +27 -0
- package/dist/theme/combobox.d.ts +58 -0
- package/dist/theme/command-palette.d.ts +7 -0
- package/dist/theme/data-table.d.ts +6 -0
- package/dist/theme/date-field.d.ts +28 -0
- package/dist/theme/date-picker.d.ts +53 -0
- package/dist/theme/date-range-field.d.ts +75 -0
- package/dist/theme/date-range-picker.d.ts +86 -0
- package/dist/theme/dialog.d.ts +31 -0
- package/dist/theme/drawer.d.ts +11 -0
- package/dist/theme/editable.d.ts +49 -0
- package/dist/theme/empty.d.ts +6 -0
- package/dist/theme/field.d.ts +16 -0
- package/dist/theme/flavor-select.d.ts +5 -0
- package/dist/theme/form.d.ts +9 -0
- package/dist/theme/forms-shared.d.ts +19 -0
- package/dist/theme/hover-card.d.ts +15 -0
- package/dist/theme/hud-panel.d.ts +71 -0
- package/dist/theme/icon-button.d.ts +2 -0
- package/dist/theme/input-group.d.ts +22 -0
- package/dist/theme/input.d.ts +38 -0
- package/dist/theme/kbd.d.ts +12 -0
- package/dist/theme/key-hint.d.ts +13 -0
- package/dist/theme/label.d.ts +3 -0
- package/dist/theme/layout.d.ts +9 -0
- package/dist/theme/link.d.ts +9 -0
- package/dist/theme/list.d.ts +6 -0
- package/dist/theme/listbox.d.ts +56 -0
- package/dist/theme/menu.d.ts +33 -0
- package/dist/theme/menubar.d.ts +5 -0
- package/dist/theme/meter.d.ts +4 -0
- package/dist/theme/month-picker.d.ts +29 -0
- package/dist/theme/month-range-picker.d.ts +46 -0
- package/dist/theme/navbar.d.ts +7 -0
- package/dist/theme/navigation-menu.d.ts +13 -0
- package/dist/theme/navigation.d.ts +10 -0
- package/dist/theme/neon-text.d.ts +26 -0
- package/dist/theme/number-field.d.ts +45 -0
- package/dist/theme/overlays.d.ts +35 -0
- package/dist/theme/pagination.d.ts +6 -0
- package/dist/theme/pin-input.d.ts +52 -0
- package/dist/theme/popover.d.ts +31 -0
- package/dist/theme/progress.d.ts +39 -0
- package/dist/theme/provider.d.ts +9 -0
- package/dist/theme/radio-group.d.ts +52 -0
- package/dist/theme/range-calendar.d.ts +29 -0
- package/dist/theme/rating.d.ts +32 -0
- package/dist/theme/scroll-area.d.ts +7 -0
- package/dist/theme/select.d.ts +36 -0
- package/dist/theme/selection.d.ts +36 -0
- package/dist/theme/separator.d.ts +28 -0
- package/dist/theme/shared.d.ts +87 -0
- package/dist/theme/sheet.d.ts +28 -0
- package/dist/theme/sidenav.d.ts +8 -0
- package/dist/theme/skeleton.d.ts +14 -0
- package/dist/theme/slider.d.ts +27 -0
- package/dist/theme/spinner.d.ts +24 -0
- package/dist/theme/splitter.d.ts +7 -0
- package/dist/theme/stat-bar.d.ts +45 -0
- package/dist/theme/stat.d.ts +7 -0
- package/dist/theme/stepper.d.ts +12 -0
- package/dist/theme/switch.d.ts +44 -0
- package/dist/theme/table.d.ts +28 -0
- package/dist/theme/tabs.d.ts +8 -0
- package/dist/theme/tag-group.d.ts +7 -0
- package/dist/theme/tags-input.d.ts +25 -0
- package/dist/theme/textarea.d.ts +53 -0
- package/dist/theme/time-field.d.ts +43 -0
- package/dist/theme/time-range-field.d.ts +57 -0
- package/dist/theme/toast.d.ts +45 -0
- package/dist/theme/toggle-group.d.ts +6 -0
- package/dist/theme/toggle.d.ts +15 -0
- package/dist/theme/toolbar.d.ts +21 -0
- package/dist/theme/tooltip.d.ts +5 -0
- package/dist/theme/tree.d.ts +7 -0
- package/dist/theme/year-picker.d.ts +29 -0
- package/dist/theme/year-range-picker.d.ts +46 -0
- package/dist/types.d.ts +36 -0
- package/dist/utils/cn.d.ts +1 -0
- package/dist/utils/index.d.ts +2 -0
- package/dist/utils/tv.d.ts +1 -0
- package/package.json +76 -3
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
# NwInputGroup
|
|
2
|
+
|
|
3
|
+
Part of [Forms](../families/forms.md).
|
|
4
|
+
|
|
5
|
+
`NwInputGroup` wraps Reka `Primitive` to join inputs and `NwInputGroupAddon` text into one bar: inner corners square off, borders collapse and the focused input rises above its neighbours. It changes layout without replacing the input's semantics.
|
|
6
|
+
|
|
7
|
+
```vue title="InputGroupDemo.vue"
|
|
8
|
+
<script setup lang="ts">
|
|
9
|
+
import { useId } from 'vue'
|
|
10
|
+
import { NwInput, NwInputGroup, NwInputGroupAddon, NwLabel, NwProvider } from '@nyxwire/vue'
|
|
11
|
+
const endpointId = useId()
|
|
12
|
+
const quotaId = useId()
|
|
13
|
+
</script>
|
|
14
|
+
|
|
15
|
+
<template>
|
|
16
|
+
<NwProvider>
|
|
17
|
+
<div class="grid w-full max-w-sm gap-4">
|
|
18
|
+
<div class="space-y-2">
|
|
19
|
+
<NwLabel :for="endpointId">Relay endpoint</NwLabel>
|
|
20
|
+
<NwInputGroup>
|
|
21
|
+
<NwInputGroupAddon>https://</NwInputGroupAddon>
|
|
22
|
+
<NwInput :id="endpointId" default-value="relay.nyxwire.dev" autocomplete="off" />
|
|
23
|
+
<NwInputGroupAddon>:443</NwInputGroupAddon>
|
|
24
|
+
</NwInputGroup>
|
|
25
|
+
</div>
|
|
26
|
+
<div class="space-y-2">
|
|
27
|
+
<NwLabel :for="quotaId">Monthly quota</NwLabel>
|
|
28
|
+
<NwInputGroup size="sm">
|
|
29
|
+
<NwInput :id="quotaId" default-value="250" inputmode="numeric" />
|
|
30
|
+
<template #end>GB</template>
|
|
31
|
+
</NwInputGroup>
|
|
32
|
+
</div>
|
|
33
|
+
</div>
|
|
34
|
+
</NwProvider>
|
|
35
|
+
</template>
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
## Anatomy
|
|
39
|
+
|
|
40
|
+
```vue
|
|
41
|
+
<NwInputGroup>
|
|
42
|
+
<NwInputGroupAddon />
|
|
43
|
+
<NwInput />
|
|
44
|
+
<NwInputGroupAddon />
|
|
45
|
+
</NwInputGroup>
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
| Component / prop | Type | Default | Effect |
|
|
49
|
+
| ---------------- | ------------------------------ | -------- | -------------------------------------------------------------- |
|
|
50
|
+
| Group `size` | `'xs' \| 'sm' \| 'md' \| 'lg'` | `'md'` | Height of every input in the group |
|
|
51
|
+
| Group `start` | slot | unset | Shorthand: rendered in an `NwInputGroupAddon` before the input |
|
|
52
|
+
| Group `end` | slot | unset | Shorthand: rendered in an `NwInputGroupAddon` after the input |
|
|
53
|
+
| Addon `as` | `PrimitiveProps['as']` | `'span'` | Element of the addon |
|
|
54
|
+
|
|
55
|
+
Remaining `PrimitiveProps` pass through. Addons use the mono uppercase label type. Give the input its own label: addon text is neither a label nor a description. The input stays keyboard editable.
|
|
56
|
+
|
|
57
|
+
## API
|
|
58
|
+
|
|
59
|
+
Generated from the component sources. Every component also takes `class`, `style` and the other attributes Vue falls through.
|
|
60
|
+
|
|
61
|
+
### NwInputGroup
|
|
62
|
+
|
|
63
|
+
| Prop | Type | Default | Description |
|
|
64
|
+
| --- | --- | --- | --- |
|
|
65
|
+
| `size` | `"xs" \| "sm" \| "md" \| "lg"` | | |
|
|
66
|
+
| `asChild` | `boolean` | | Change the default rendered element for the one passed as a child, merging their props and behavior. |
|
|
67
|
+
| `as` | `AsTag \| Component` | | The element or component this component should render as. |
|
|
68
|
+
|
|
69
|
+
| Slot | Props |
|
|
70
|
+
| --- | --- |
|
|
71
|
+
| `start` | |
|
|
72
|
+
| `default` | |
|
|
73
|
+
| `end` | |
|
|
74
|
+
|
|
75
|
+
### NwInputGroupAddon
|
|
76
|
+
|
|
77
|
+
| Prop | Type | Default | Description |
|
|
78
|
+
| --- | --- | --- | --- |
|
|
79
|
+
| `asChild` | `boolean` | | Change the default rendered element for the one passed as a child, merging their props and behavior. |
|
|
80
|
+
| `as` | `AsTag \| Component` | `"span"` | The element or component this component should render as. |
|
|
81
|
+
|
|
82
|
+
| Slot | Props |
|
|
83
|
+
| --- | --- |
|
|
84
|
+
| `default` | |
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
# NwLabel + NwInput
|
|
2
|
+
|
|
3
|
+
Part of [Forms](../families/forms.md).
|
|
4
|
+
|
|
5
|
+
`NwLabel` wraps Reka `Label`. `NwInput` renders an input through `Primitive`, or through Reka `FieldControl` inside `NwField`, so labels, descriptions, validation and field values stay connected.
|
|
6
|
+
|
|
7
|
+
```vue title="InputDemo.vue"
|
|
8
|
+
<script setup lang="ts">
|
|
9
|
+
import { ref, useId } from 'vue'
|
|
10
|
+
import { NwInput, NwLabel, NwProvider } from '@nyxwire/vue'
|
|
11
|
+
const id = useId()
|
|
12
|
+
const handle = ref<string | number>('nightowl')
|
|
13
|
+
</script>
|
|
14
|
+
|
|
15
|
+
<template>
|
|
16
|
+
<NwProvider>
|
|
17
|
+
<div class="w-full max-w-sm space-y-2">
|
|
18
|
+
<NwLabel :for="id">Operator handle</NwLabel>
|
|
19
|
+
<NwInput :id="id" v-model="handle" autocomplete="nickname">
|
|
20
|
+
<template #leading>@</template>
|
|
21
|
+
</NwInput>
|
|
22
|
+
<p class="text-sm text-fg-muted">Signed as: @{{ handle }}</p>
|
|
23
|
+
</div>
|
|
24
|
+
</NwProvider>
|
|
25
|
+
</template>
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
| Component / prop | Type | Default | Effect |
|
|
29
|
+
| -------------------- | --------------------------------------------------------------------------- | ----------------------- | --------------------------------------------------------- |
|
|
30
|
+
| Label `class` | `HTMLAttributes['class']` | unset | Merged label styling; remaining `LabelProps` pass through |
|
|
31
|
+
| Input `modelValue` | `string \| number` | unset | Controlled value |
|
|
32
|
+
| Input `defaultValue` | `string \| number` | `''` effective fallback | Initial uncontrolled value |
|
|
33
|
+
| Input `type` | `'text' \| 'email' \| 'password' \| 'search' \| 'number' \| 'tel' \| 'url'` | `'text'` | Native input type |
|
|
34
|
+
| Input `size` | `'xs' \| 'sm' \| 'md' \| 'lg'` | `'md'` | Height: 1.75rem, 2rem, 2.5rem or 3rem |
|
|
35
|
+
| Input `invalid` | `boolean` | `false` | Sets `aria-invalid`: danger edge and glow, no wire edge |
|
|
36
|
+
|
|
37
|
+
Native attributes such as `id`, `name`, `disabled`, `readonly`, `autocomplete` and `inputmode` reach the input. The `leading` and `trailing` slots pin a non-interactive icon or text inside the edge and pad the text around it. The model emits `update:modelValue` with a string or number; a native number input's text edits are still strings.
|
|
38
|
+
|
|
39
|
+
Connect `NwLabel`'s `for` to the input's `id`, or use `NwFieldLabel` in a field. Clicking the label focuses the input. Native text editing and Tab navigation stay available. The type union deliberately leaves out native date, time and color inputs: use the [date and time](../families/datetime.md) and [color](../families/color.md) components, which look the same in every browser.
|
|
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
|
+
### NwLabel
|
|
46
|
+
|
|
47
|
+
| Prop | Type | Default | Description |
|
|
48
|
+
| --- | --- | --- | --- |
|
|
49
|
+
| `for` | `string` | | The id of the element the label is associated with. |
|
|
50
|
+
| `asChild` | `boolean` | | Change the default rendered element for the one passed as a child, merging their props and behavior. |
|
|
51
|
+
| `as` | `AsTag \| Component` | | The element or component this component should render as. |
|
|
52
|
+
|
|
53
|
+
| Slot | Props |
|
|
54
|
+
| --- | --- |
|
|
55
|
+
| `default` | |
|
|
56
|
+
|
|
57
|
+
### NwInput
|
|
58
|
+
|
|
59
|
+
| Prop | Type | Default | Description |
|
|
60
|
+
| --- | --- | --- | --- |
|
|
61
|
+
| `modelValue` | `string \| number` | | |
|
|
62
|
+
| `defaultValue` | `string \| number` | | |
|
|
63
|
+
| `type` | `"number" \| "search" \| "text" \| "email" \| "password" \| "tel" \| "url"` | `"text"` | |
|
|
64
|
+
| `size` | `"xs" \| "sm" \| "md" \| "lg"` | | |
|
|
65
|
+
| `invalid` | `boolean` | | |
|
|
66
|
+
|
|
67
|
+
| Event | Payload | Description |
|
|
68
|
+
| --- | --- | --- |
|
|
69
|
+
| `update:modelValue` | `[value: string \| number]` | |
|
|
70
|
+
|
|
71
|
+
| Slot | Props |
|
|
72
|
+
| --- | --- |
|
|
73
|
+
| `leading` | |
|
|
74
|
+
| `trailing` | |
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
# NwKbd
|
|
2
|
+
|
|
3
|
+
Part of [Actions & HUD](../families/actions.md).
|
|
4
|
+
|
|
5
|
+
`NwKbd` is a native `kbd` keycap. It renders a key; it does not register a shortcut.
|
|
6
|
+
|
|
7
|
+
```vue title="KbdDemo.vue"
|
|
8
|
+
<script setup lang="ts">
|
|
9
|
+
import { ref } from 'vue'
|
|
10
|
+
import { NwKbd, NwProvider } from '@nyxwire/vue'
|
|
11
|
+
const last = ref('')
|
|
12
|
+
function record(event: KeyboardEvent) {
|
|
13
|
+
if (event.key === 'Tab') return
|
|
14
|
+
last.value = event.key.length === 1 ? event.key.toUpperCase() : event.key
|
|
15
|
+
}
|
|
16
|
+
</script>
|
|
17
|
+
|
|
18
|
+
<template>
|
|
19
|
+
<NwProvider>
|
|
20
|
+
<div class="flex flex-wrap items-center gap-4">
|
|
21
|
+
<span class="flex items-center gap-1.5">
|
|
22
|
+
<NwKbd size="sm">Ctrl</NwKbd><NwKbd size="sm">K</NwKbd>
|
|
23
|
+
</span>
|
|
24
|
+
<NwKbd>Esc</NwKbd>
|
|
25
|
+
<NwKbd size="lg" highlight>Enter</NwKbd>
|
|
26
|
+
<div
|
|
27
|
+
tabindex="0"
|
|
28
|
+
role="group"
|
|
29
|
+
aria-label="Key tester: focus and press a key"
|
|
30
|
+
class="flex items-center gap-2 rounded-md border border-line px-3 py-2 text-sm text-fg-muted focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-ring"
|
|
31
|
+
@keydown="record"
|
|
32
|
+
>
|
|
33
|
+
Focus here and press a key:
|
|
34
|
+
<NwKbd v-if="last" highlight data-demo-result>{{ last }}</NwKbd>
|
|
35
|
+
<span v-else data-demo-result>none yet</span>
|
|
36
|
+
</div>
|
|
37
|
+
</div>
|
|
38
|
+
</NwProvider>
|
|
39
|
+
</template>
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
| Prop | Type | Default | Effect |
|
|
43
|
+
| ----------- | ---------------------- | ------- | ----------------------------------------------- |
|
|
44
|
+
| `size` | `'sm' \| 'md' \| 'lg'` | `'md'` | Keycap height and text size |
|
|
45
|
+
| `highlight` | `boolean` | `false` | Primary ink and glow for a bound or pressed key |
|
|
46
|
+
|
|
47
|
+
Write key names as users see them (`Ctrl`, `Esc`, `Enter`); screen readers read the text as is. The demo's key tester is a focusable group that records `keydown`; it lets Tab through so focus never gets stuck.
|
|
48
|
+
|
|
49
|
+
## API
|
|
50
|
+
|
|
51
|
+
Generated from the component sources. Every component also takes `class`, `style` and the other attributes Vue falls through.
|
|
52
|
+
|
|
53
|
+
### NwKbd
|
|
54
|
+
|
|
55
|
+
| Prop | Type | Default | Description |
|
|
56
|
+
| --- | --- | --- | --- |
|
|
57
|
+
| `size` | `NwKbdSize` | | |
|
|
58
|
+
| `highlight` | `boolean` | | Primary ink and glow for a bound or active key. |
|
|
59
|
+
|
|
60
|
+
| Slot | Props |
|
|
61
|
+
| --- | --- |
|
|
62
|
+
| `default` | |
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
# NwKeyHint
|
|
2
|
+
|
|
3
|
+
Part of [Actions & HUD](../families/actions.md).
|
|
4
|
+
|
|
5
|
+
`NwKeyHint` composes keycaps joined by a decorative plus and an action label in a `span`. Like `NwKbd`, it only describes a shortcut.
|
|
6
|
+
|
|
7
|
+
```vue title="KeyHintDemo.vue"
|
|
8
|
+
<script setup lang="ts">
|
|
9
|
+
import { ref } from 'vue'
|
|
10
|
+
import { NwButton, NwKeyHint, NwProvider } from '@nyxwire/vue'
|
|
11
|
+
const locked = ref(false)
|
|
12
|
+
</script>
|
|
13
|
+
|
|
14
|
+
<template>
|
|
15
|
+
<NwProvider>
|
|
16
|
+
<div class="flex flex-col gap-3">
|
|
17
|
+
<div class="flex flex-wrap items-center gap-x-6 gap-y-3">
|
|
18
|
+
<NwKeyHint :keys="['Ctrl', 'K']" label="Command palette" highlight />
|
|
19
|
+
<NwKeyHint :keys="['G', 'R']" label="Go to relays" size="sm" />
|
|
20
|
+
<NwKeyHint :keys="['Shift', 'D']" label="Deploy" :disabled="locked" data-demo-result />
|
|
21
|
+
</div>
|
|
22
|
+
<NwButton
|
|
23
|
+
size="sm"
|
|
24
|
+
variant="outline"
|
|
25
|
+
intent="neutral"
|
|
26
|
+
class="self-start"
|
|
27
|
+
:aria-pressed="locked"
|
|
28
|
+
@click="locked = !locked"
|
|
29
|
+
>{{ locked ? 'Unlock deploys' : 'Lock deploys' }}</NwButton
|
|
30
|
+
>
|
|
31
|
+
</div>
|
|
32
|
+
</NwProvider>
|
|
33
|
+
</template>
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
| Prop | Type | Default | Effect |
|
|
37
|
+
| ----------- | ---------------------- | -------- | -------------------------------------------- |
|
|
38
|
+
| `keys` | `readonly string[]` | required | Key combination, e.g. `['Ctrl', 'K']` |
|
|
39
|
+
| `label` | `string` | unset | Action text; the default slot can replace it |
|
|
40
|
+
| `size` | `'sm' \| 'md' \| 'lg'` | `'md'` | Keycap size |
|
|
41
|
+
| `highlight` | `boolean` | `false` | Highlighted keycaps, dropped while disabled |
|
|
42
|
+
| `disabled` | `boolean` | `false` | Muted state and `aria-disabled="true"` |
|
|
43
|
+
|
|
44
|
+
Bind the actual shortcut in your app, and keep `disabled` in sync with it. Avoid single-letter shortcuts that fire while the user types in a field.
|
|
45
|
+
|
|
46
|
+
## API
|
|
47
|
+
|
|
48
|
+
Generated from the component sources. Every component also takes `class`, `style` and the other attributes Vue falls through.
|
|
49
|
+
|
|
50
|
+
### NwKeyHint
|
|
51
|
+
|
|
52
|
+
| Prop | Type | Default | Description |
|
|
53
|
+
| --- | --- | --- | --- |
|
|
54
|
+
| `keys` | `readonly string[]` | required | Keys of the combination, e.g. |
|
|
55
|
+
| `label` | `string` | | Action the keys trigger. |
|
|
56
|
+
| `size` | `NwKbdSize` | | |
|
|
57
|
+
| `highlight` | `boolean` | | |
|
|
58
|
+
| `disabled` | `boolean` | | |
|
|
59
|
+
|
|
60
|
+
| Slot | Props |
|
|
61
|
+
| --- | --- |
|
|
62
|
+
| `default` | |
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
# NwLayout
|
|
2
|
+
|
|
3
|
+
Part of [Actions & HUD](../families/actions.md).
|
|
4
|
+
|
|
5
|
+
`NwLayout` is a `div` that arranges its children with one of the four layout primitives of the CSS layer.
|
|
6
|
+
|
|
7
|
+
```vue title="LayoutDemo.vue"
|
|
8
|
+
<script setup lang="ts">
|
|
9
|
+
import { ref } from 'vue'
|
|
10
|
+
import { NwLayout, NwProvider, NwToggleGroup, NwToggleGroupItem } from '@nyxwire/vue'
|
|
11
|
+
const layout = ref<'stack' | 'cluster' | 'grid'>('cluster')
|
|
12
|
+
function choose(value: unknown) {
|
|
13
|
+
if (value === 'stack' || value === 'cluster' || value === 'grid') layout.value = value
|
|
14
|
+
}
|
|
15
|
+
</script>
|
|
16
|
+
|
|
17
|
+
<template>
|
|
18
|
+
<NwProvider>
|
|
19
|
+
<div class="flex w-full flex-col gap-4">
|
|
20
|
+
<NwToggleGroup
|
|
21
|
+
:model-value="layout"
|
|
22
|
+
type="single"
|
|
23
|
+
size="sm"
|
|
24
|
+
variant="outline"
|
|
25
|
+
aria-label="Arrangement"
|
|
26
|
+
@update:model-value="choose"
|
|
27
|
+
>
|
|
28
|
+
<NwToggleGroupItem value="stack">Stack</NwToggleGroupItem>
|
|
29
|
+
<NwToggleGroupItem value="cluster">Cluster</NwToggleGroupItem>
|
|
30
|
+
<NwToggleGroupItem value="grid">Grid</NwToggleGroupItem>
|
|
31
|
+
</NwToggleGroup>
|
|
32
|
+
<NwLayout :layout="layout" data-demo-result>
|
|
33
|
+
<div
|
|
34
|
+
v-for="name in ['north-1', 'south-2', 'east-1']"
|
|
35
|
+
:key="name"
|
|
36
|
+
class="rounded-md border border-line bg-panel px-3 py-2 font-mono text-sm"
|
|
37
|
+
>
|
|
38
|
+
{{ name }}
|
|
39
|
+
</div>
|
|
40
|
+
</NwLayout>
|
|
41
|
+
</div>
|
|
42
|
+
</NwProvider>
|
|
43
|
+
</template>
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
| Prop | Type | Default | Effect |
|
|
47
|
+
| -------- | ----------------------------------------------- | --------- | ---------------------------------------------------------------------------------------------- |
|
|
48
|
+
| `layout` | `'container' \| 'stack' \| 'cluster' \| 'grid'` | `'stack'` | Centered 72rem column, vertical stack, wrapping row, or auto-fit grid of 16rem minimum columns |
|
|
49
|
+
|
|
50
|
+
The arrangement changes only visual placement; DOM order stays the reading and tab order, so keep it meaningful. Every arrangement wraps or reflows down to 320 px.
|
|
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
|
+
### NwLayout
|
|
57
|
+
|
|
58
|
+
| Prop | Type | Default | Description |
|
|
59
|
+
| --- | --- | --- | --- |
|
|
60
|
+
| `layout` | `"grid" \| "container" \| "stack" \| "cluster"` | | |
|
|
61
|
+
|
|
62
|
+
| Slot | Props |
|
|
63
|
+
| --- | --- |
|
|
64
|
+
| `default` | |
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
# NwLink
|
|
2
|
+
|
|
3
|
+
Part of [Actions & HUD](../families/actions.md).
|
|
4
|
+
|
|
5
|
+
`NwLink` renders Reka `Primitive` as an anchor. External links add an arrow, a screen-reader hint and safe new-tab attributes.
|
|
6
|
+
|
|
7
|
+
```vue title="LinkDemo.vue"
|
|
8
|
+
<script setup lang="ts">
|
|
9
|
+
import { ref } from 'vue'
|
|
10
|
+
import { NwButton, NwLink, NwProvider } from '@nyxwire/vue'
|
|
11
|
+
const locked = ref(false)
|
|
12
|
+
</script>
|
|
13
|
+
|
|
14
|
+
<template>
|
|
15
|
+
<NwProvider>
|
|
16
|
+
<div class="flex flex-wrap items-center gap-x-6 gap-y-3 text-sm">
|
|
17
|
+
<NwLink href="/vue/">Vue overview</NwLink>
|
|
18
|
+
<NwLink href="/foundations/flavors/" variant="muted">Flavors</NwLink>
|
|
19
|
+
<NwLink href="/tailwind/merging/" variant="subtle">Class merging</NwLink>
|
|
20
|
+
<NwLink href="https://reka-ui.com" external>Reka UI</NwLink>
|
|
21
|
+
<NwLink href="/vue/actions/" :disabled="locked" data-demo-result>Billing</NwLink>
|
|
22
|
+
<NwButton
|
|
23
|
+
size="xs"
|
|
24
|
+
variant="outline"
|
|
25
|
+
intent="neutral"
|
|
26
|
+
:aria-pressed="locked"
|
|
27
|
+
@click="locked = !locked"
|
|
28
|
+
>{{ locked ? 'Enable billing link' : 'Disable billing link' }}</NwButton
|
|
29
|
+
>
|
|
30
|
+
</div>
|
|
31
|
+
</NwProvider>
|
|
32
|
+
</template>
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
| Prop | Type | Default | Effect |
|
|
36
|
+
| --------------- | ---------------------------------- | ------------------------ | -------------------------------------------------- |
|
|
37
|
+
| `variant` | `'default' \| 'muted' \| 'subtle'` | `'default'` | Link ink (`link` role color) and underline |
|
|
38
|
+
| `href` | `string` | unset | Destination |
|
|
39
|
+
| `external` | `boolean` | `false` | `target="_blank"` with `rel="noopener noreferrer"` |
|
|
40
|
+
| `externalLabel` | `string` | `'(opens in a new tab)'` | Hidden external-link hint |
|
|
41
|
+
| `disabled` | `boolean` | `false` | Drops `href` and sets `aria-disabled` |
|
|
42
|
+
| `as` | `PrimitiveProps['as']` | `'a'` | Rendered element; use `as-child` for a router link |
|
|
43
|
+
|
|
44
|
+
Links activate with Enter. A disabled link has no `href`, so it leaves the tab order; explain nearby why it is unavailable. With `as-child`, the child owns its content and the external hint is not added.
|
|
45
|
+
|
|
46
|
+
## API
|
|
47
|
+
|
|
48
|
+
Generated from the component sources. Every component also takes `class`, `style` and the other attributes Vue falls through.
|
|
49
|
+
|
|
50
|
+
### NwLink
|
|
51
|
+
|
|
52
|
+
| Prop | Type | Default | Description |
|
|
53
|
+
| --- | --- | --- | --- |
|
|
54
|
+
| `variant` | `NwLinkVariant` | | |
|
|
55
|
+
| `href` | `string` | | |
|
|
56
|
+
| `external` | `boolean` | | Opens in a new tab: adds the arrow icon, target="_blank" and rel="noopener noreferrer". |
|
|
57
|
+
| `disabled` | `boolean` | | Drops the href and marks the link aria-disabled. |
|
|
58
|
+
| `externalLabel` | `string` | `"(opens in a new tab)"` | Screen reader hint appended to external links. |
|
|
59
|
+
| `asChild` | `boolean` | | Change the default rendered element for the one passed as a child, merging their props and behavior. |
|
|
60
|
+
| `as` | `AsTag \| Component` | `"a"` | The element or component this component should render as. |
|
|
61
|
+
|
|
62
|
+
| Slot | Props |
|
|
63
|
+
| --- | --- |
|
|
64
|
+
| `default` | |
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
# NwList
|
|
2
|
+
|
|
3
|
+
Part of [Actions & HUD](../families/actions.md).
|
|
4
|
+
|
|
5
|
+
`NwList` renders a styled `ul` or `ol`, from an `items` array or from your own `li` elements.
|
|
6
|
+
|
|
7
|
+
```vue title="ListDemo.vue"
|
|
8
|
+
<script setup lang="ts">
|
|
9
|
+
import { ref } from 'vue'
|
|
10
|
+
import { NwButton, NwList, NwProvider } from '@nyxwire/vue'
|
|
11
|
+
const ordered = ref(true)
|
|
12
|
+
const steps = ['Install @nyxwire/vue', 'Import the stylesheet', 'Wrap the app in NwProvider']
|
|
13
|
+
</script>
|
|
14
|
+
|
|
15
|
+
<template>
|
|
16
|
+
<NwProvider>
|
|
17
|
+
<div class="flex w-full flex-col gap-3">
|
|
18
|
+
<NwList :ordered="ordered" :items="steps" data-demo-result />
|
|
19
|
+
<NwList>
|
|
20
|
+
<li>Slot content works too: <strong>bold</strong> and links stay inline.</li>
|
|
21
|
+
</NwList>
|
|
22
|
+
<NwButton
|
|
23
|
+
size="sm"
|
|
24
|
+
variant="outline"
|
|
25
|
+
intent="neutral"
|
|
26
|
+
class="self-start"
|
|
27
|
+
:aria-pressed="ordered"
|
|
28
|
+
@click="ordered = !ordered"
|
|
29
|
+
>Numbered</NwButton
|
|
30
|
+
>
|
|
31
|
+
</div>
|
|
32
|
+
</NwProvider>
|
|
33
|
+
</template>
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
| Prop | Type | Default | Effect |
|
|
37
|
+
| --------- | ------------------- | ------- | ---------------------------------------------- |
|
|
38
|
+
| `ordered` | `boolean` | `false` | `ol` with numbers instead of `ul` with markers |
|
|
39
|
+
| `items` | `readonly string[]` | unset | Text items; the default slot replaces them |
|
|
40
|
+
|
|
41
|
+
Lists keep their native semantics, so screen readers announce the item count. Use `ordered` only when the order matters, such as steps.
|
|
42
|
+
|
|
43
|
+
## API
|
|
44
|
+
|
|
45
|
+
Generated from the component sources. Every component also takes `class`, `style` and the other attributes Vue falls through.
|
|
46
|
+
|
|
47
|
+
### NwList
|
|
48
|
+
|
|
49
|
+
| Prop | Type | Default | Description |
|
|
50
|
+
| --- | --- | --- | --- |
|
|
51
|
+
| `ordered` | `boolean` | | |
|
|
52
|
+
| `items` | `readonly string[]` | | |
|
|
53
|
+
|
|
54
|
+
| Slot | Props |
|
|
55
|
+
| --- | --- |
|
|
56
|
+
| `default` | |
|
|
@@ -0,0 +1,186 @@
|
|
|
1
|
+
# NwListbox
|
|
2
|
+
|
|
3
|
+
Part of [Selection](../families/selection.md).
|
|
4
|
+
|
|
5
|
+
`NwListbox` wraps Reka `ListboxRoot` for a list that stays visible. `NwListboxFilter` only holds the query text: you filter your own array with it, as this example does.
|
|
6
|
+
|
|
7
|
+
```vue title="ListboxDemo.vue"
|
|
8
|
+
<script setup lang="ts">
|
|
9
|
+
import { computed, ref } from 'vue'
|
|
10
|
+
import {
|
|
11
|
+
NwListbox,
|
|
12
|
+
NwListboxContent,
|
|
13
|
+
NwListboxFilter,
|
|
14
|
+
NwListboxGroup,
|
|
15
|
+
NwListboxGroupLabel,
|
|
16
|
+
NwListboxItem,
|
|
17
|
+
NwProvider,
|
|
18
|
+
type NwListboxProps,
|
|
19
|
+
} from '@nyxwire/vue'
|
|
20
|
+
|
|
21
|
+
const protocols = ['TCP', 'TLS', 'QUIC', 'WebSocket'] as const
|
|
22
|
+
const allowed = ref<NwListboxProps['modelValue']>(['TLS'])
|
|
23
|
+
const query = ref('')
|
|
24
|
+
const matches = computed(() =>
|
|
25
|
+
protocols.filter((protocol) => protocol.toLowerCase().includes(query.value.toLowerCase())),
|
|
26
|
+
)
|
|
27
|
+
const summary = computed(() =>
|
|
28
|
+
Array.isArray(allowed.value) ? allowed.value.join(', ') || 'None' : String(allowed.value),
|
|
29
|
+
)
|
|
30
|
+
</script>
|
|
31
|
+
|
|
32
|
+
<template>
|
|
33
|
+
<NwProvider>
|
|
34
|
+
<div class="w-full max-w-sm space-y-2">
|
|
35
|
+
<NwListbox v-model="allowed" multiple>
|
|
36
|
+
<NwListboxFilter
|
|
37
|
+
v-model="query"
|
|
38
|
+
aria-label="Filter protocols"
|
|
39
|
+
placeholder="Filter protocols"
|
|
40
|
+
/>
|
|
41
|
+
<NwListboxContent aria-label="Allowed protocols">
|
|
42
|
+
<NwListboxGroup>
|
|
43
|
+
<NwListboxGroupLabel>Transports</NwListboxGroupLabel>
|
|
44
|
+
<NwListboxItem v-for="protocol in matches" :key="protocol" :value="protocol">{{
|
|
45
|
+
protocol
|
|
46
|
+
}}</NwListboxItem>
|
|
47
|
+
</NwListboxGroup>
|
|
48
|
+
</NwListboxContent>
|
|
49
|
+
<p v-if="matches.length === 0" role="status" class="text-sm text-fg-muted">
|
|
50
|
+
No transports match.
|
|
51
|
+
</p>
|
|
52
|
+
</NwListbox>
|
|
53
|
+
<p class="text-sm text-fg-muted" data-testid="allowed">Allowed: {{ summary }}</p>
|
|
54
|
+
</div>
|
|
55
|
+
</NwProvider>
|
|
56
|
+
</template>
|
|
57
|
+
```
|
|
58
|
+
|
|
59
|
+
## Anatomy
|
|
60
|
+
|
|
61
|
+
```vue
|
|
62
|
+
<NwListbox>
|
|
63
|
+
<NwListboxFilter />
|
|
64
|
+
<NwListboxContent>
|
|
65
|
+
<NwListboxGroup>
|
|
66
|
+
<NwListboxGroupLabel />
|
|
67
|
+
<NwListboxItem value="TLS" />
|
|
68
|
+
</NwListboxGroup>
|
|
69
|
+
</NwListboxContent>
|
|
70
|
+
</NwListbox>
|
|
71
|
+
```
|
|
72
|
+
|
|
73
|
+
| Component / prop | Type | Default | Effect |
|
|
74
|
+
| ---------------- | ------------------------- | ------- | ------------------------------------------------------------ |
|
|
75
|
+
| Root `class` | `HTMLAttributes['class']` | unset | Root styling; other props/emits are `ListboxRootProps`/emits |
|
|
76
|
+
| Filter `size` | `'sm' \| 'md' \| 'lg'` | `'md'` | Filter height and padding |
|
|
77
|
+
| Filter `invalid` | `boolean` | `false` | Danger edge and `aria-invalid` |
|
|
78
|
+
|
|
79
|
+
The root's `v-model` holds the selected values and the filter's `v-model` holds the query. With `multiple`, the root model is an array, clicking an option toggles it, and the list exposes `aria-multiselectable`. A disabled root blocks selection and marks every item `aria-disabled`. Selected items show a check.
|
|
80
|
+
|
|
81
|
+
**Keyboard and accessibility.** Name the content and the filter separately. The options are always in the document, so there is no popup and no focus trap. Arrow keys move the highlight, Enter or Space selects it, and typing jumps to a match. Keep focus in the filter while the user types, and show a visible message when the filter matches nothing, as the example does.
|
|
82
|
+
|
|
83
|
+
## API
|
|
84
|
+
|
|
85
|
+
Generated from the component sources. Every component also takes `class`, `style` and the other attributes Vue falls through.
|
|
86
|
+
|
|
87
|
+
### NwListbox
|
|
88
|
+
|
|
89
|
+
| Prop | Type | Default | Description |
|
|
90
|
+
| --- | --- | --- | --- |
|
|
91
|
+
| `modelValue` | `AcceptableValue \| AcceptableValue[]` | | The controlled value of the listbox. |
|
|
92
|
+
| `defaultValue` | `AcceptableValue \| AcceptableValue[]` | | The value of the listbox when initially rendered. |
|
|
93
|
+
| `multiple` | `boolean` | | Whether multiple options can be selected or not. |
|
|
94
|
+
| `orientation` | `DataOrientation` | | The orientation of the listbox. |
|
|
95
|
+
| `dir` | `Direction` | | The reading direction of the listbox when applicable. |
|
|
96
|
+
| `disabled` | `boolean` | | When `true`, prevents the user from interacting with listbox |
|
|
97
|
+
| `selectionBehavior` | `"replace" \| "toggle"` | | How multiple selection should behave in the collection. |
|
|
98
|
+
| `highlightOnHover` | `boolean` | | When `true`, hover over item will trigger highlight |
|
|
99
|
+
| `loop` | `boolean` | | When `true`, keyboard navigation will loop from last item to first, and vice versa. |
|
|
100
|
+
| `by` | `string \| ((a: AcceptableValue, b: AcceptableValue) => boolean)` | | Use this to compare objects by a particular field, or pass your own comparison function for complete control over how objects are compared. |
|
|
101
|
+
| `asChild` | `boolean` | | Change the default rendered element for the one passed as a child, merging their props and behavior. |
|
|
102
|
+
| `as` | `AsTag \| Component` | | The element or component this component should render as. |
|
|
103
|
+
| `name` | `string` | | The name of the field. |
|
|
104
|
+
| `required` | `boolean` | | When `true`, indicates that the user must set the value before the owning form can be submitted. |
|
|
105
|
+
|
|
106
|
+
| Event | Payload | Description |
|
|
107
|
+
| --- | --- | --- |
|
|
108
|
+
| `update:modelValue` | `[value: AcceptableValue]` | |
|
|
109
|
+
| `highlight` | `[payload: { ref: HTMLElement; value: AcceptableValue; } \| undefined]` | |
|
|
110
|
+
| `entryFocus` | `[event: CustomEvent<any>]` | |
|
|
111
|
+
| `leave` | `[event: Event]` | |
|
|
112
|
+
|
|
113
|
+
| Slot | Props |
|
|
114
|
+
| --- | --- |
|
|
115
|
+
| `default` | `{ modelValue: AcceptableValue \| AcceptableValue[] \| undefined; }` |
|
|
116
|
+
|
|
117
|
+
### NwListboxContent
|
|
118
|
+
|
|
119
|
+
| Prop | Type | Default | Description |
|
|
120
|
+
| --- | --- | --- | --- |
|
|
121
|
+
| `asChild` | `boolean` | | Change the default rendered element for the one passed as a child, merging their props and behavior. |
|
|
122
|
+
| `as` | `AsTag \| Component` | | The element or component this component should render as. |
|
|
123
|
+
|
|
124
|
+
| Slot | Props |
|
|
125
|
+
| --- | --- |
|
|
126
|
+
| `default` | |
|
|
127
|
+
|
|
128
|
+
### NwListboxFilter
|
|
129
|
+
|
|
130
|
+
| Prop | Type | Default | Description |
|
|
131
|
+
| --- | --- | --- | --- |
|
|
132
|
+
| `size` | `"xs" \| "sm" \| "md" \| "lg"` | | |
|
|
133
|
+
| `invalid` | `boolean` | | |
|
|
134
|
+
| `modelValue` | `string` | | The controlled value of the filter. |
|
|
135
|
+
| `autoFocus` | `boolean` | | Focus on element when mounted. |
|
|
136
|
+
| `disabled` | `boolean` | | When `true`, prevents the user from interacting with item |
|
|
137
|
+
| `asChild` | `boolean` | | Change the default rendered element for the one passed as a child, merging their props and behavior. |
|
|
138
|
+
| `as` | `AsTag \| Component` | | The element or component this component should render as. |
|
|
139
|
+
|
|
140
|
+
| Event | Payload | Description |
|
|
141
|
+
| --- | --- | --- |
|
|
142
|
+
| `update:modelValue` | `[string]` | |
|
|
143
|
+
|
|
144
|
+
| Slot | Props |
|
|
145
|
+
| --- | --- |
|
|
146
|
+
| `default` | |
|
|
147
|
+
|
|
148
|
+
### NwListboxGroup
|
|
149
|
+
|
|
150
|
+
| Prop | Type | Default | Description |
|
|
151
|
+
| --- | --- | --- | --- |
|
|
152
|
+
| `asChild` | `boolean` | | Change the default rendered element for the one passed as a child, merging their props and behavior. |
|
|
153
|
+
| `as` | `AsTag \| Component` | | The element or component this component should render as. |
|
|
154
|
+
|
|
155
|
+
| Slot | Props |
|
|
156
|
+
| --- | --- |
|
|
157
|
+
| `default` | |
|
|
158
|
+
|
|
159
|
+
### NwListboxGroupLabel
|
|
160
|
+
|
|
161
|
+
| Prop | Type | Default | Description |
|
|
162
|
+
| --- | --- | --- | --- |
|
|
163
|
+
| `for` | `string` | | |
|
|
164
|
+
| `asChild` | `boolean` | | Change the default rendered element for the one passed as a child, merging their props and behavior. |
|
|
165
|
+
| `as` | `AsTag \| Component` | | The element or component this component should render as. |
|
|
166
|
+
|
|
167
|
+
| Slot | Props |
|
|
168
|
+
| --- | --- |
|
|
169
|
+
| `default` | |
|
|
170
|
+
|
|
171
|
+
### NwListboxItem
|
|
172
|
+
|
|
173
|
+
| Prop | Type | Default | Description |
|
|
174
|
+
| --- | --- | --- | --- |
|
|
175
|
+
| `value` | `AcceptableValue` | required | The value given as data when submitted with a `name`. |
|
|
176
|
+
| `disabled` | `boolean` | | When `true`, prevents the user from interacting with the item. |
|
|
177
|
+
| `asChild` | `boolean` | | Change the default rendered element for the one passed as a child, merging their props and behavior. |
|
|
178
|
+
| `as` | `AsTag \| Component` | | The element or component this component should render as. |
|
|
179
|
+
|
|
180
|
+
| Event | Payload | Description |
|
|
181
|
+
| --- | --- | --- |
|
|
182
|
+
| `select` | `[event: SelectEvent$3<AcceptableValue>]` | |
|
|
183
|
+
|
|
184
|
+
| Slot | Props |
|
|
185
|
+
| --- | --- |
|
|
186
|
+
| `default` | `{ selected: boolean; }` |
|