@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,128 @@
|
|
|
1
|
+
# NwTagGroup
|
|
2
|
+
|
|
3
|
+
Part of [Forms](../families/forms.md).
|
|
4
|
+
|
|
5
|
+
`NwTagGroup` wraps Reka `TagGroupRoot` for selecting and removing existing tags. Unlike tags input, it has no text entry. A selected tag lights its cut edge and fills with the soft primary.
|
|
6
|
+
|
|
7
|
+
```vue title="TagGroupDemo.vue"
|
|
8
|
+
<script setup lang="ts">
|
|
9
|
+
import { ref } from 'vue'
|
|
10
|
+
import {
|
|
11
|
+
NwProvider,
|
|
12
|
+
NwTagGroup,
|
|
13
|
+
NwTagGroupItem,
|
|
14
|
+
NwTagGroupItemDelete,
|
|
15
|
+
NwTagGroupItemText,
|
|
16
|
+
} from '@nyxwire/vue'
|
|
17
|
+
const nodes = ref(['hel-01', 'fra-02', 'ams-03'])
|
|
18
|
+
const selected = ref<string[]>(['hel-01'])
|
|
19
|
+
function remove(values: unknown[]) {
|
|
20
|
+
nodes.value = nodes.value.filter((node) => !values.includes(node))
|
|
21
|
+
selected.value = selected.value.filter((node) => !values.includes(node))
|
|
22
|
+
}
|
|
23
|
+
</script>
|
|
24
|
+
|
|
25
|
+
<template>
|
|
26
|
+
<NwProvider>
|
|
27
|
+
<div class="grid gap-3">
|
|
28
|
+
<NwTagGroup
|
|
29
|
+
v-model="selected"
|
|
30
|
+
selection-mode="multiple"
|
|
31
|
+
aria-label="Drained nodes"
|
|
32
|
+
@remove="remove"
|
|
33
|
+
>
|
|
34
|
+
<NwTagGroupItem v-for="node in nodes" :key="node" :value="node" :text-value="node">
|
|
35
|
+
<NwTagGroupItemText>{{ node }}</NwTagGroupItemText>
|
|
36
|
+
<NwTagGroupItemDelete :label="`Remove ${node}`" />
|
|
37
|
+
</NwTagGroupItem>
|
|
38
|
+
</NwTagGroup>
|
|
39
|
+
<p class="m-0 text-sm text-fg-muted">Draining: {{ selected.join(', ') || 'none' }}</p>
|
|
40
|
+
</div>
|
|
41
|
+
</NwProvider>
|
|
42
|
+
</template>
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
## Anatomy
|
|
46
|
+
|
|
47
|
+
```vue
|
|
48
|
+
<NwTagGroup>
|
|
49
|
+
<NwTagGroupItem value="hel-01">
|
|
50
|
+
<NwTagGroupItemText />
|
|
51
|
+
<NwTagGroupItemDelete />
|
|
52
|
+
</NwTagGroupItem>
|
|
53
|
+
</NwTagGroup>
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
| Component / prop | Type | Default | Effect |
|
|
57
|
+
| ------------------ | ------------------------- | ---------- | ------------------------------------------------------------------ |
|
|
58
|
+
| Root `class` | `HTMLAttributes['class']` | unset | Root styling; remaining `TagGroupRootProps` and emits pass through |
|
|
59
|
+
| ItemDelete `label` | `string` | `'Remove'` | Delete control name |
|
|
60
|
+
|
|
61
|
+
The root model holds the selected values; `selection-mode` is `'single'` or `'multiple'`. Tags are removable only while the root has a `@remove` listener, and the event hands you the values to drop from your own list, as in the demo. The arrow keys move between tags, Space or Enter toggles the selection, and Delete or Backspace removes the focused tag. Label the group, give each item readable text with `text-value`, and disable locked tags instead of hiding them.
|
|
62
|
+
|
|
63
|
+
## API
|
|
64
|
+
|
|
65
|
+
Generated from the component sources. Every component also takes `class`, `style` and the other attributes Vue falls through.
|
|
66
|
+
|
|
67
|
+
### NwTagGroup
|
|
68
|
+
|
|
69
|
+
| Prop | Type | Default | Description |
|
|
70
|
+
| --- | --- | --- | --- |
|
|
71
|
+
| `modelValue` | `AcceptableValue \| AcceptableValue[]` | | The controlled value of the selected tag(s). |
|
|
72
|
+
| `defaultValue` | `AcceptableValue \| AcceptableValue[]` | | The value of the selected tag(s) when initially rendered. |
|
|
73
|
+
| `selectionMode` | `TagGroupSelectionMode` | | The type of selection that is allowed. |
|
|
74
|
+
| `disallowEmptySelection` | `boolean` | | When `true`, the user cannot deselect the last selected tag. |
|
|
75
|
+
| `escapeKeyBehavior` | `"none" \| "clearSelection"` | | Whether pressing <kbd>Escape</kbd> clears the selection. |
|
|
76
|
+
| `disabled` | `boolean` | | When `true`, prevents the user from interacting with the tag group and all its tags. |
|
|
77
|
+
| `dir` | `Direction` | | The reading direction of the tag group when applicable. |
|
|
78
|
+
| `loop` | `boolean` | | When `true`, keyboard navigation will loop from last tag to first, and vice versa. |
|
|
79
|
+
| `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. |
|
|
80
|
+
| `asChild` | `boolean` | | Change the default rendered element for the one passed as a child, merging their props and behavior. |
|
|
81
|
+
| `as` | `AsTag \| Component` | | The element or component this component should render as. |
|
|
82
|
+
|
|
83
|
+
| Event | Payload | Description |
|
|
84
|
+
| --- | --- | --- |
|
|
85
|
+
| `update:modelValue` | `[value: AcceptableValue \| AcceptableValue[] \| undefined]` | |
|
|
86
|
+
| `remove` | `[values: AcceptableValue[]]` | |
|
|
87
|
+
|
|
88
|
+
| Slot | Props |
|
|
89
|
+
| --- | --- |
|
|
90
|
+
| `default` | `{ modelValue: string \| number \| bigint \| Record<string, any> \| (string \| number \| bigint \| Record<string, any> \| null)[] \| null \| undefined; }` |
|
|
91
|
+
|
|
92
|
+
### NwTagGroupItem
|
|
93
|
+
|
|
94
|
+
| Prop | Type | Default | Description |
|
|
95
|
+
| --- | --- | --- | --- |
|
|
96
|
+
| `value` | `AcceptableValue` | required | The unique value of the tag. |
|
|
97
|
+
| `disabled` | `boolean` | | When `true`, prevents the user from interacting with the tag. |
|
|
98
|
+
| `textValue` | `string` | | A string representation of the tag's contents, used for typeahead and as the tag's accessible name. |
|
|
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
|
+
| Slot | Props |
|
|
103
|
+
| --- | --- |
|
|
104
|
+
| `default` | `{ selected: boolean; disabled: boolean; }` |
|
|
105
|
+
|
|
106
|
+
### NwTagGroupItemDelete
|
|
107
|
+
|
|
108
|
+
| Prop | Type | Default | Description |
|
|
109
|
+
| --- | --- | --- | --- |
|
|
110
|
+
| `label` | `string` | `"Remove"` | Accessible name of the control. |
|
|
111
|
+
| `disabled` | `boolean` | | When `true`, prevents the user from interacting with the delete button. |
|
|
112
|
+
| `asChild` | `boolean` | | Change the default rendered element for the one passed as a child, merging their props and behavior. |
|
|
113
|
+
| `as` | `AsTag \| Component` | | The element or component this component should render as. |
|
|
114
|
+
|
|
115
|
+
| Slot | Props |
|
|
116
|
+
| --- | --- |
|
|
117
|
+
| `default` | |
|
|
118
|
+
|
|
119
|
+
### NwTagGroupItemText
|
|
120
|
+
|
|
121
|
+
| Prop | Type | Default | Description |
|
|
122
|
+
| --- | --- | --- | --- |
|
|
123
|
+
| `asChild` | `boolean` | | Change the default rendered element for the one passed as a child, merging their props and behavior. |
|
|
124
|
+
| `as` | `AsTag \| Component` | | The element or component this component should render as. |
|
|
125
|
+
|
|
126
|
+
| Slot | Props |
|
|
127
|
+
| --- | --- |
|
|
128
|
+
| `default` | |
|
|
@@ -0,0 +1,154 @@
|
|
|
1
|
+
# NwTagsInput
|
|
2
|
+
|
|
3
|
+
Part of [Forms](../families/forms.md).
|
|
4
|
+
|
|
5
|
+
`NwTagsInput` wraps Reka `TagsInputRoot` for editing a list of values. Text, delete and clear parts keep the chamfered tags tied to the root model; the box takes the wire edge while its input has focus.
|
|
6
|
+
|
|
7
|
+
```vue title="TagsInputDemo.vue"
|
|
8
|
+
<script setup lang="ts">
|
|
9
|
+
import { ref } from 'vue'
|
|
10
|
+
import {
|
|
11
|
+
NwProvider,
|
|
12
|
+
NwTagsInput,
|
|
13
|
+
NwTagsInputClear,
|
|
14
|
+
NwTagsInputInput,
|
|
15
|
+
NwTagsInputItem,
|
|
16
|
+
NwTagsInputItemDelete,
|
|
17
|
+
NwTagsInputItemText,
|
|
18
|
+
} from '@nyxwire/vue'
|
|
19
|
+
const regions = ref(['eu-north', 'us-east'])
|
|
20
|
+
</script>
|
|
21
|
+
|
|
22
|
+
<template>
|
|
23
|
+
<NwProvider>
|
|
24
|
+
<NwTagsInput v-model="regions" class="w-full max-w-sm">
|
|
25
|
+
<NwTagsInputItem v-for="region in regions" :key="region" :value="region">
|
|
26
|
+
<NwTagsInputItemText /><NwTagsInputItemDelete :label="`Remove ${region}`" />
|
|
27
|
+
</NwTagsInputItem>
|
|
28
|
+
<NwTagsInputInput aria-label="Failover regions" placeholder="Add a region, then Enter" />
|
|
29
|
+
<NwTagsInputClear />
|
|
30
|
+
</NwTagsInput>
|
|
31
|
+
</NwProvider>
|
|
32
|
+
</template>
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
## Anatomy
|
|
36
|
+
|
|
37
|
+
```vue
|
|
38
|
+
<NwTagsInput>
|
|
39
|
+
<NwTagsInputItem value="eu-north">
|
|
40
|
+
<NwTagsInputItemText />
|
|
41
|
+
<NwTagsInputItemDelete />
|
|
42
|
+
</NwTagsInputItem>
|
|
43
|
+
<NwTagsInputInput />
|
|
44
|
+
<NwTagsInputClear />
|
|
45
|
+
</NwTagsInput>
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
| Component / prop | Type | Default | Effect |
|
|
49
|
+
| ------------------ | ---------------------- | -------------- | ----------------------- |
|
|
50
|
+
| Root `size` | `'sm' \| 'md' \| 'lg'` | `'md'` | Box and type dimensions |
|
|
51
|
+
| ItemDelete `label` | `string` | `'Remove tag'` | Delete control name |
|
|
52
|
+
| Clear `label` | `string` | `'Clear tags'` | Clear control name |
|
|
53
|
+
|
|
54
|
+
Remaining generic `TagsInputRootProps<T>` and emits pass through; `T` is `string` by default and can also be a number, a bigint or a record. Enter adds the typed tag, and `delimiter` or `addOnPaste` add more ways in. Backspace in an empty input selects the last tag and a second Backspace removes it; the arrow keys move between tags. The delete part removes its value and Clear empties the model; both disable with the root. Give removals value-specific names, as the demo does, and label the text input separately from its placeholder.
|
|
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
|
+
### NwTagsInput
|
|
61
|
+
|
|
62
|
+
| Prop | Type | Default | Description |
|
|
63
|
+
| --- | --- | --- | --- |
|
|
64
|
+
| `size` | `"sm" \| "md" \| "lg"` | | |
|
|
65
|
+
| `modelValue` | `T[] \| null` | | The controlled value of the tags input. |
|
|
66
|
+
| `defaultValue` | `T[]` | | The value of the tags that should be added. |
|
|
67
|
+
| `addOnPaste` | `boolean` | | When `true`, allow adding tags on paste. |
|
|
68
|
+
| `addOnTab` | `boolean` | | When `true` allow adding tags on tab keydown |
|
|
69
|
+
| `addOnBlur` | `boolean` | | When `true` allow adding tags blur input |
|
|
70
|
+
| `duplicate` | `boolean` | | When `true`, allow duplicated tags. |
|
|
71
|
+
| `disabled` | `boolean` | | When `true`, prevents the user from interacting with the tags input. |
|
|
72
|
+
| `delimiter` | `string \| RegExp` | | The character or regular expression to trigger the addition of a new tag. |
|
|
73
|
+
| `dir` | `Direction` | | The reading direction of the combobox when applicable. |
|
|
74
|
+
| `max` | `number` | | Maximum number of tags. |
|
|
75
|
+
| `id` | `string` | | |
|
|
76
|
+
| `convertValue` | `((value: string) => T)` | | Convert the input value to the desired type. |
|
|
77
|
+
| `displayValue` | `((value: T) => string)` | | Display the value of the tag. |
|
|
78
|
+
| `asChild` | `boolean` | | Change the default rendered element for the one passed as a child, merging their props and behavior. |
|
|
79
|
+
| `as` | `AsTag \| Component` | | The element or component this component should render as. |
|
|
80
|
+
| `name` | `string` | | The name of the field. |
|
|
81
|
+
| `required` | `boolean` | | When `true`, indicates that the user must set the value before the owning form can be submitted. |
|
|
82
|
+
|
|
83
|
+
| Event | Payload | Description |
|
|
84
|
+
| --- | --- | --- |
|
|
85
|
+
| `update:modelValue` | `[payload: T[]]` | |
|
|
86
|
+
| `invalid` | `[payload: T]` | |
|
|
87
|
+
| `addTag` | `[payload: T]` | |
|
|
88
|
+
| `removeTag` | `[payload: T]` | |
|
|
89
|
+
|
|
90
|
+
| Slot | Props |
|
|
91
|
+
| --- | --- |
|
|
92
|
+
| `default` | `{ modelValue: AcceptableInputValue[]; }` |
|
|
93
|
+
|
|
94
|
+
### NwTagsInputClear
|
|
95
|
+
|
|
96
|
+
| Prop | Type | Default | Description |
|
|
97
|
+
| --- | --- | --- | --- |
|
|
98
|
+
| `label` | `string` | `"Clear tags"` | Accessible name of the control. |
|
|
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
|
+
| Slot | Props |
|
|
103
|
+
| --- | --- |
|
|
104
|
+
| `default` | |
|
|
105
|
+
|
|
106
|
+
### NwTagsInputInput
|
|
107
|
+
|
|
108
|
+
| Prop | Type | Default | Description |
|
|
109
|
+
| --- | --- | --- | --- |
|
|
110
|
+
| `placeholder` | `string` | | The placeholder character to use for empty tags input. |
|
|
111
|
+
| `autoFocus` | `boolean` | | Focus on element when mounted. |
|
|
112
|
+
| `maxLength` | `number` | | Maximum number of character allowed. |
|
|
113
|
+
| `asChild` | `boolean` | | Change the default rendered element for the one passed as a child, merging their props and behavior. |
|
|
114
|
+
| `as` | `AsTag \| Component` | | The element or component this component should render as. |
|
|
115
|
+
|
|
116
|
+
| Slot | Props |
|
|
117
|
+
| --- | --- |
|
|
118
|
+
| `default` | |
|
|
119
|
+
|
|
120
|
+
### NwTagsInputItem
|
|
121
|
+
|
|
122
|
+
| Prop | Type | Default | Description |
|
|
123
|
+
| --- | --- | --- | --- |
|
|
124
|
+
| `value` | `AcceptableInputValue` | required | Value associated with the tags |
|
|
125
|
+
| `disabled` | `boolean` | | When `true`, prevents the user from interacting with the tags input. |
|
|
126
|
+
| `asChild` | `boolean` | | Change the default rendered element for the one passed as a child, merging their props and behavior. |
|
|
127
|
+
| `as` | `AsTag \| Component` | | The element or component this component should render as. |
|
|
128
|
+
|
|
129
|
+
| Slot | Props |
|
|
130
|
+
| --- | --- |
|
|
131
|
+
| `default` | |
|
|
132
|
+
|
|
133
|
+
### NwTagsInputItemDelete
|
|
134
|
+
|
|
135
|
+
| Prop | Type | Default | Description |
|
|
136
|
+
| --- | --- | --- | --- |
|
|
137
|
+
| `label` | `string` | `"Remove tag"` | Accessible name of the control. |
|
|
138
|
+
| `asChild` | `boolean` | | Change the default rendered element for the one passed as a child, merging their props and behavior. |
|
|
139
|
+
| `as` | `AsTag \| Component` | | The element or component this component should render as. |
|
|
140
|
+
|
|
141
|
+
| Slot | Props |
|
|
142
|
+
| --- | --- |
|
|
143
|
+
| `default` | |
|
|
144
|
+
|
|
145
|
+
### NwTagsInputItemText
|
|
146
|
+
|
|
147
|
+
| Prop | Type | Default | Description |
|
|
148
|
+
| --- | --- | --- | --- |
|
|
149
|
+
| `asChild` | `boolean` | | Change the default rendered element for the one passed as a child, merging their props and behavior. |
|
|
150
|
+
| `as` | `AsTag \| Component` | | The element or component this component should render as. |
|
|
151
|
+
|
|
152
|
+
| Slot | Props |
|
|
153
|
+
| --- | --- |
|
|
154
|
+
| `default` | |
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
# NwTextarea
|
|
2
|
+
|
|
3
|
+
Part of [Forms](../families/forms.md).
|
|
4
|
+
|
|
5
|
+
`NwTextarea` renders a native textarea through Reka `Primitive`, or `FieldControl` inside a field, with three rows by default. `autoResize` measures the control on mount and on every change, growing it with the content.
|
|
6
|
+
|
|
7
|
+
```vue title="TextareaDemo.vue"
|
|
8
|
+
<script setup lang="ts">
|
|
9
|
+
import { useId } from 'vue'
|
|
10
|
+
import { NwLabel, NwProvider, NwTextarea } from '@nyxwire/vue'
|
|
11
|
+
const id = useId()
|
|
12
|
+
</script>
|
|
13
|
+
|
|
14
|
+
<template>
|
|
15
|
+
<NwProvider>
|
|
16
|
+
<div class="w-full max-w-sm space-y-2">
|
|
17
|
+
<NwLabel :for="id">Change notes</NwLabel>
|
|
18
|
+
<NwTextarea :id="id" auto-resize placeholder="What changed on this relay?" />
|
|
19
|
+
</div>
|
|
20
|
+
</NwProvider>
|
|
21
|
+
</template>
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
| Prop | Type | Default | Effect |
|
|
25
|
+
| -------------- | ------------------------------ | ----------------------- | ----------------------------------------------- |
|
|
26
|
+
| `modelValue` | `string \| number` | unset | Controlled text |
|
|
27
|
+
| `defaultValue` | `string \| number` | `''` effective fallback | Initial text |
|
|
28
|
+
| `size` | `'xs' \| 'sm' \| 'md' \| 'lg'` | `'md'` | Minimum height and type size |
|
|
29
|
+
| `invalid` | `boolean` | `false` | `aria-invalid` |
|
|
30
|
+
| `autoResize` | `boolean` | `false` | Content-driven height; disables manual resizing |
|
|
31
|
+
|
|
32
|
+
It emits `update:modelValue`; native textarea attributes, `rows` included, pass through. Enter inserts a line break, so do not use it as a form-wide submit shortcut. Label the control and let Tab move to the next field.
|
|
33
|
+
|
|
34
|
+
## API
|
|
35
|
+
|
|
36
|
+
Generated from the component sources. Every component also takes `class`, `style` and the other attributes Vue falls through.
|
|
37
|
+
|
|
38
|
+
### NwTextarea
|
|
39
|
+
|
|
40
|
+
| Prop | Type | Default | Description |
|
|
41
|
+
| --- | --- | --- | --- |
|
|
42
|
+
| `modelValue` | `string \| number` | | |
|
|
43
|
+
| `defaultValue` | `string \| number` | | |
|
|
44
|
+
| `size` | `"xs" \| "sm" \| "md" \| "lg"` | | |
|
|
45
|
+
| `invalid` | `boolean` | | |
|
|
46
|
+
| `autoResize` | `boolean` | | Grows the textarea with its content instead of scrolling. |
|
|
47
|
+
|
|
48
|
+
| Event | Payload | Description |
|
|
49
|
+
| --- | --- | --- |
|
|
50
|
+
| `update:modelValue` | `[value: string \| number]` | |
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
# NwTimeField
|
|
2
|
+
|
|
3
|
+
Part of [Date & time](../families/datetime.md).
|
|
4
|
+
|
|
5
|
+
`NwTimeField` wraps Reka `TimeFieldRoot` and renders an `NwTimeFieldInput` for each formatted time segment.
|
|
6
|
+
|
|
7
|
+
```vue title="TimeFieldDemo.vue"
|
|
8
|
+
<script setup lang="ts">
|
|
9
|
+
import { shallowRef } from 'vue'
|
|
10
|
+
import { NwTimeField, NwProvider, type NwTimeFieldProps } from '@nyxwire/vue'
|
|
11
|
+
|
|
12
|
+
const value = shallowRef<NwTimeFieldProps['modelValue']>()
|
|
13
|
+
</script>
|
|
14
|
+
|
|
15
|
+
<template>
|
|
16
|
+
<NwProvider locale="en-US">
|
|
17
|
+
<div class="grid gap-3">
|
|
18
|
+
<NwTimeField v-model="value" :hour-cycle="24" aria-label="Failover time" />
|
|
19
|
+
<p class="m-0 text-sm text-fg-muted" role="status">
|
|
20
|
+
Failover: {{ value?.toString() ?? 'none' }}
|
|
21
|
+
</p>
|
|
22
|
+
</div>
|
|
23
|
+
</NwProvider>
|
|
24
|
+
</template>
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
## Anatomy
|
|
28
|
+
|
|
29
|
+
```vue
|
|
30
|
+
<NwTimeField>
|
|
31
|
+
<NwTimeFieldInput /> <!-- repeated for each segment -->
|
|
32
|
+
</NwTimeField>
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
| Prop | Type | Default | Effect |
|
|
36
|
+
| ---------------------- | -------------------------------- | ----------------- | ------------------------------------- |
|
|
37
|
+
| `size` | `'sm' \| 'md' \| 'lg'` | `'md'` | Field dimensions |
|
|
38
|
+
| `invalid` | `boolean` | `false` | Invalid appearance and `aria-invalid` |
|
|
39
|
+
| `modelValue` | `TimeValue \| null` | unset | Controlled time |
|
|
40
|
+
| `defaultValue` | `TimeValue` | unset | Initial time |
|
|
41
|
+
| `hourCycle` | `12 \| 24` | locale preference | Hour display |
|
|
42
|
+
| `granularity` | `'hour' \| 'minute' \| 'second'` | `'minute'` | Last displayed segment |
|
|
43
|
+
| `minValue`, `maxValue` | `TimeValue` | unset | Time bounds |
|
|
44
|
+
| `disabled`, `readonly` | `boolean` | `false` | Interaction / editing lock |
|
|
45
|
+
|
|
46
|
+
The other `TimeFieldRootProps` and emits pass through. The demo uses 24-hour entry. Without `hour-cycle`, the locale decides, and a 12-hour field adds an AM/PM segment.
|
|
47
|
+
|
|
48
|
+
**Keyboard and accessibility.** Name the field with `aria-label`. ArrowUp and ArrowDown step the focused segment, and typing digits replaces it. A time value says nothing about time zones, so decide whether it means server time or local time before you store it.
|
|
49
|
+
|
|
50
|
+
## API
|
|
51
|
+
|
|
52
|
+
Generated from the component sources. Every component also takes `class`, `style` and the other attributes Vue falls through.
|
|
53
|
+
|
|
54
|
+
### NwTimeField
|
|
55
|
+
|
|
56
|
+
| Prop | Type | Default | Description |
|
|
57
|
+
| --- | --- | --- | --- |
|
|
58
|
+
| `size` | `"sm" \| "md" \| "lg"` | | |
|
|
59
|
+
| `invalid` | `boolean` | | |
|
|
60
|
+
| `defaultValue` | `TimeValue` | | The default value for the calendar |
|
|
61
|
+
| `defaultPlaceholder` | `TimeValue` | | The default placeholder date |
|
|
62
|
+
| `placeholder` | `TimeValue` | | The placeholder date, which is used to determine what time to display when no time is selected. |
|
|
63
|
+
| `modelValue` | `TimeValue \| null` | | The controlled checked state of the field. |
|
|
64
|
+
| `hourCycle` | `HourCycle` | | The hour cycle used for formatting times. |
|
|
65
|
+
| `step` | `DateStep` | | The stepping interval for the time fields. |
|
|
66
|
+
| `stepSnapping` | `boolean` | | Whether to enforce snapping the value to the nearest step increment after input. |
|
|
67
|
+
| `granularity` | `"hour" \| "minute" \| "second"` | | The granularity to use for formatting times. |
|
|
68
|
+
| `hideTimeZone` | `boolean` | | Whether or not to hide the time zone segment of the field |
|
|
69
|
+
| `maxValue` | `TimeValue` | | The maximum date that can be selected |
|
|
70
|
+
| `minValue` | `TimeValue` | | The minimum date that can be selected |
|
|
71
|
+
| `locale` | `string` | | The locale to use for formatting dates |
|
|
72
|
+
| `disabled` | `boolean` | | Whether or not the time field is disabled |
|
|
73
|
+
| `readonly` | `boolean` | | Whether or not the time field is readonly |
|
|
74
|
+
| `id` | `string` | | Id of the element |
|
|
75
|
+
| `dir` | `Direction` | | The reading direction of the time field when applicable. |
|
|
76
|
+
| `asChild` | `boolean` | | Change the default rendered element for the one passed as a child, merging their props and behavior. |
|
|
77
|
+
| `as` | `AsTag \| Component` | | The element or component this component should render as. |
|
|
78
|
+
| `name` | `string` | | The name of the field. |
|
|
79
|
+
| `required` | `boolean` | | When `true`, indicates that the user must set the value before the owning form can be submitted. |
|
|
80
|
+
|
|
81
|
+
| Event | Payload | Description |
|
|
82
|
+
| --- | --- | --- |
|
|
83
|
+
| `update:modelValue` | `[date: TimeValue \| undefined]` | |
|
|
84
|
+
| `update:placeholder` | `[date: TimeValue]` | |
|
|
85
|
+
|
|
86
|
+
| Slot | Props |
|
|
87
|
+
| --- | --- |
|
|
88
|
+
| `default` | `{ modelValue: TimeValue \| undefined; segments: { part: SegmentPart; value: string; }[]; isInvalid: boolean; }` |
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
# NwTimeRangeField
|
|
2
|
+
|
|
3
|
+
Part of [Date & time](../families/datetime.md).
|
|
4
|
+
|
|
5
|
+
`NwTimeRangeField` wraps Reka `TimeRangeFieldRoot` for a start time and an end time, separated by an en dash.
|
|
6
|
+
|
|
7
|
+
```vue title="TimeRangeFieldDemo.vue"
|
|
8
|
+
<script setup lang="ts">
|
|
9
|
+
import { shallowRef } from 'vue'
|
|
10
|
+
import { NwTimeRangeField, NwProvider, type NwTimeRangeFieldProps } from '@nyxwire/vue'
|
|
11
|
+
|
|
12
|
+
const value = shallowRef<NwTimeRangeFieldProps['modelValue']>()
|
|
13
|
+
</script>
|
|
14
|
+
|
|
15
|
+
<template>
|
|
16
|
+
<NwProvider locale="en-US">
|
|
17
|
+
<div class="grid gap-3">
|
|
18
|
+
<NwTimeRangeField v-model="value" :hour-cycle="24" aria-label="Quiet hours start and end" />
|
|
19
|
+
<p class="m-0 text-sm text-fg-muted" role="status">
|
|
20
|
+
Quiet hours: {{ value?.start?.toString() ?? '…' }} to {{ value?.end?.toString() ?? '…' }}
|
|
21
|
+
</p>
|
|
22
|
+
</div>
|
|
23
|
+
</NwProvider>
|
|
24
|
+
</template>
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
## Anatomy
|
|
28
|
+
|
|
29
|
+
```vue
|
|
30
|
+
<NwTimeRangeField>
|
|
31
|
+
<NwTimeRangeFieldInput type="start" /> <!-- start segments -->
|
|
32
|
+
<NwTimeRangeFieldInput type="end" /> <!-- end segments -->
|
|
33
|
+
</NwTimeRangeField>
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
| Prop | Type | Default | Effect |
|
|
37
|
+
| ---------------------- | -------------------------------- | ----------------- | ------------------------------------- |
|
|
38
|
+
| `size` | `'sm' \| 'md' \| 'lg'` | `'md'` | Field dimensions |
|
|
39
|
+
| `invalid` | `boolean` | `false` | Invalid appearance and `aria-invalid` |
|
|
40
|
+
| `modelValue` | `TimeRange \| null` | uncontrolled | Controlled endpoints |
|
|
41
|
+
| `defaultValue` | `TimeRange` | unset | Initial range |
|
|
42
|
+
| `hourCycle` | `12 \| 24` | locale preference | Hour display |
|
|
43
|
+
| `granularity` | `'hour' \| 'minute' \| 'second'` | `'minute'` | Last displayed segment |
|
|
44
|
+
| `disabled`, `readonly` | `boolean` | `false` | Interaction / editing lock |
|
|
45
|
+
|
|
46
|
+
The other `TimeRangeFieldRootProps` and emits pass through. You can change the end without moving the start.
|
|
47
|
+
|
|
48
|
+
**Keyboard and accessibility.** Name the whole range, and keep `type="start"` and `type="end"` on the inputs when you compose them yourself. Segments follow the same keys as `NwTimeField`.
|
|
49
|
+
|
|
50
|
+
## API
|
|
51
|
+
|
|
52
|
+
Generated from the component sources. Every component also takes `class`, `style` and the other attributes Vue falls through.
|
|
53
|
+
|
|
54
|
+
### NwTimeRangeField
|
|
55
|
+
|
|
56
|
+
| Prop | Type | Default | Description |
|
|
57
|
+
| --- | --- | --- | --- |
|
|
58
|
+
| `size` | `"sm" \| "md" \| "lg"` | | |
|
|
59
|
+
| `invalid` | `boolean` | | |
|
|
60
|
+
| `defaultValue` | `TimeRange` | | The default value for the field |
|
|
61
|
+
| `defaultPlaceholder` | `TimeValue` | | The default placeholder time |
|
|
62
|
+
| `placeholder` | `TimeValue` | | The placeholder time, which is used to determine what time to display when no time is selected. |
|
|
63
|
+
| `modelValue` | `TimeRange \| null` | | The controlled checked state of the field. |
|
|
64
|
+
| `hourCycle` | `HourCycle` | | The hour cycle used for formatting times. |
|
|
65
|
+
| `step` | `DateStep` | | The stepping interval for the time fields. |
|
|
66
|
+
| `granularity` | `"hour" \| "minute" \| "second"` | | The granularity to use for formatting times. |
|
|
67
|
+
| `hideTimeZone` | `boolean` | | Whether or not to hide the time zone segment of the field |
|
|
68
|
+
| `maxValue` | `TimeValue` | | The maximum time that can be selected |
|
|
69
|
+
| `minValue` | `TimeValue` | | The minimum time that can be selected |
|
|
70
|
+
| `locale` | `string` | | The locale to use for formatting times |
|
|
71
|
+
| `disabled` | `boolean` | | Whether or not the time field is disabled |
|
|
72
|
+
| `readonly` | `boolean` | | Whether or not the time field is readonly |
|
|
73
|
+
| `id` | `string` | | Id of the element |
|
|
74
|
+
| `dir` | `Direction` | | The reading direction of the time field when applicable. |
|
|
75
|
+
| `isTimeUnavailable` | `Matcher` | | A function that returns whether or not a time is unavailable |
|
|
76
|
+
| `asChild` | `boolean` | | Change the default rendered element for the one passed as a child, merging their props and behavior. |
|
|
77
|
+
| `as` | `AsTag \| Component` | | The element or component this component should render as. |
|
|
78
|
+
| `name` | `string` | | The name of the field. |
|
|
79
|
+
| `required` | `boolean` | | When `true`, indicates that the user must set the value before the owning form can be submitted. |
|
|
80
|
+
|
|
81
|
+
| Event | Payload | Description |
|
|
82
|
+
| --- | --- | --- |
|
|
83
|
+
| `update:modelValue` | `[date: TimeRange]` | |
|
|
84
|
+
| `update:placeholder` | `[date: TimeValue]` | |
|
|
85
|
+
|
|
86
|
+
| Slot | Props |
|
|
87
|
+
| --- | --- |
|
|
88
|
+
| `default` | `{ modelValue: TimeRange \| undefined; segments: { start: { part: SegmentPart; value: string; }[]; end: { part: SegmentPart; value: string; }[]; }; isInvalid: boolean; }` |
|