@aleph-alpha/ui-library 1.23.0 → 1.25.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/config.d.ts +21 -4
- package/config.js +258 -69
- package/dist/system/__tests__/test-utils.d.ts +37 -0
- package/dist/system/components/UiAccordion/UiAccordion.vue.d.ts +21 -0
- package/dist/system/components/UiAccordion/UiAccordionContent.vue.d.ts +18 -0
- package/dist/system/components/UiAccordion/UiAccordionItem.vue.d.ts +18 -0
- package/dist/system/components/UiAccordion/UiAccordionTrigger.vue.d.ts +19 -0
- package/dist/system/components/UiAccordion/index.d.ts +5 -0
- package/dist/system/components/UiAccordion/types.d.ts +85 -0
- package/dist/system/components/UiAlert/UiAlert.vue.d.ts +20 -0
- package/dist/system/components/UiAlert/UiAlertDescription.vue.d.ts +17 -0
- package/dist/system/components/UiAlert/UiAlertTitle.vue.d.ts +17 -0
- package/dist/system/components/UiAlert/constants.d.ts +2 -0
- package/dist/system/components/UiAlert/index.d.ts +4 -0
- package/dist/system/components/UiAlert/types.d.ts +14 -0
- package/dist/system/components/UiAlertDialog/UiAlertDialog.vue.d.ts +24 -0
- package/dist/system/components/UiAlertDialog/UiAlertDialogAction.vue.d.ts +17 -0
- package/dist/system/components/UiAlertDialog/UiAlertDialogCancel.vue.d.ts +17 -0
- package/dist/system/components/UiAlertDialog/UiAlertDialogContent.vue.d.ts +32 -0
- package/dist/system/components/UiAlertDialog/UiAlertDialogDescription.vue.d.ts +17 -0
- package/dist/system/components/UiAlertDialog/UiAlertDialogFooter.vue.d.ts +17 -0
- package/dist/system/components/UiAlertDialog/UiAlertDialogHeader.vue.d.ts +17 -0
- package/dist/system/components/UiAlertDialog/UiAlertDialogTitle.vue.d.ts +17 -0
- package/dist/system/components/UiAlertDialog/UiAlertDialogTrigger.vue.d.ts +17 -0
- package/dist/system/components/UiAlertDialog/index.d.ts +10 -0
- package/dist/system/components/UiAlertDialog/types.d.ts +90 -0
- package/dist/system/components/UiAvatar/UiAvatar.vue.d.ts +17 -0
- package/dist/system/components/UiAvatar/UiAvatarFallback.vue.d.ts +17 -0
- package/dist/system/components/UiAvatar/UiAvatarImage.vue.d.ts +3 -0
- package/dist/system/components/UiAvatar/index.d.ts +4 -0
- package/dist/system/components/UiAvatar/types.d.ts +19 -0
- package/dist/system/components/UiBadge/UiBadge.vue.d.ts +23 -0
- package/dist/system/components/UiBadge/constants.d.ts +3 -0
- package/dist/system/components/UiBadge/index.d.ts +2 -0
- package/dist/system/components/UiBadge/types.d.ts +56 -0
- package/dist/system/components/UiButton/UiButton.vue.d.ts +29 -0
- package/dist/system/components/UiButton/index.d.ts +2 -0
- package/dist/system/components/UiButton/types.d.ts +72 -0
- package/dist/system/components/UiCalendar/UiCalendar.vue.d.ts +52 -0
- package/dist/system/components/UiCalendar/index.d.ts +3 -0
- package/dist/system/components/UiCalendar/types.d.ts +202 -0
- package/dist/system/components/UiCard/index.d.ts +2 -0
- package/dist/system/components/UiCard/types.d.ts +9 -0
- package/dist/system/components/UiCheckbox/UiCheckbox.vue.d.ts +14 -0
- package/dist/system/components/UiCheckbox/index.d.ts +2 -0
- package/dist/system/components/UiCheckbox/types.d.ts +28 -0
- package/dist/system/components/UiChip/UiChip.vue.d.ts +36 -0
- package/dist/system/components/UiChip/index.d.ts +2 -0
- package/dist/system/components/UiChip/types.d.ts +43 -0
- package/dist/system/components/UiCodeBlock/UiCodeBlock.vue.d.ts +11 -0
- package/dist/system/components/UiCodeBlock/index.d.ts +2 -0
- package/dist/system/components/UiCodeBlock/types.d.ts +53 -0
- package/dist/system/components/UiDialog/UiDialog.vue.d.ts +28 -0
- package/dist/system/components/UiDialog/UiDialogClose.vue.d.ts +17 -0
- package/dist/system/components/UiDialog/UiDialogContent.vue.d.ts +39 -0
- package/dist/system/components/UiDialog/UiDialogDescription.vue.d.ts +17 -0
- package/dist/system/components/UiDialog/UiDialogFooter.vue.d.ts +18 -0
- package/dist/system/components/UiDialog/UiDialogHeader.vue.d.ts +18 -0
- package/dist/system/components/UiDialog/UiDialogTitle.vue.d.ts +17 -0
- package/dist/system/components/UiDialog/UiDialogTrigger.vue.d.ts +17 -0
- package/dist/system/components/UiDialog/index.d.ts +13 -0
- package/dist/system/components/UiDialog/types.d.ts +105 -0
- package/dist/system/components/UiDrawer/UiDrawer.vue.d.ts +28 -0
- package/dist/system/components/UiDrawer/UiDrawerClose.vue.d.ts +18 -0
- package/dist/system/components/UiDrawer/UiDrawerContent.vue.d.ts +35 -0
- package/dist/system/components/UiDrawer/UiDrawerDescription.vue.d.ts +18 -0
- package/dist/system/components/UiDrawer/UiDrawerFooter.vue.d.ts +18 -0
- package/dist/system/components/UiDrawer/UiDrawerHeader.vue.d.ts +18 -0
- package/dist/system/components/UiDrawer/UiDrawerTitle.vue.d.ts +18 -0
- package/dist/system/components/UiDrawer/UiDrawerTrigger.vue.d.ts +18 -0
- package/dist/system/components/UiDrawer/index.d.ts +9 -0
- package/dist/system/components/UiDrawer/types.d.ts +116 -0
- package/dist/system/components/UiDropdownMenu/UiDropdownMenu.vue.d.ts +25 -0
- package/dist/system/components/UiDropdownMenu/UiDropdownMenuCheckboxItem.vue.d.ts +23 -0
- package/dist/system/components/UiDropdownMenu/UiDropdownMenuContent.vue.d.ts +26 -0
- package/dist/system/components/UiDropdownMenu/UiDropdownMenuGroup.vue.d.ts +17 -0
- package/dist/system/components/UiDropdownMenu/UiDropdownMenuItem.vue.d.ts +23 -0
- package/dist/system/components/UiDropdownMenu/UiDropdownMenuLabel.vue.d.ts +20 -0
- package/dist/system/components/UiDropdownMenu/UiDropdownMenuRadioGroup.vue.d.ts +22 -0
- package/dist/system/components/UiDropdownMenu/UiDropdownMenuRadioItem.vue.d.ts +22 -0
- package/dist/system/components/UiDropdownMenu/UiDropdownMenuSeparator.vue.d.ts +2 -0
- package/dist/system/components/UiDropdownMenu/UiDropdownMenuShortcut.vue.d.ts +17 -0
- package/dist/system/components/UiDropdownMenu/UiDropdownMenuSub.vue.d.ts +25 -0
- package/dist/system/components/UiDropdownMenu/UiDropdownMenuSubContent.vue.d.ts +24 -0
- package/dist/system/components/UiDropdownMenu/UiDropdownMenuSubTrigger.vue.d.ts +22 -0
- package/dist/system/components/UiDropdownMenu/UiDropdownMenuTrigger.vue.d.ts +22 -0
- package/dist/system/components/UiDropdownMenu/index.d.ts +15 -0
- package/dist/system/components/UiDropdownMenu/types.d.ts +248 -0
- package/dist/system/components/UiEmpty/UiEmpty.vue.d.ts +22 -0
- package/dist/system/components/UiEmpty/index.d.ts +2 -0
- package/dist/system/components/UiEmpty/types.d.ts +23 -0
- package/dist/system/components/UiField/UiField.vue.d.ts +22 -0
- package/dist/system/components/UiField/UiFieldContent.vue.d.ts +17 -0
- package/dist/system/components/UiField/UiFieldDescription.vue.d.ts +31 -0
- package/dist/system/components/UiField/UiFieldError.vue.d.ts +11 -0
- package/dist/system/components/UiField/UiFieldGroup.vue.d.ts +17 -0
- package/dist/system/components/UiField/UiFieldLabel.vue.d.ts +18 -0
- package/dist/system/components/UiField/UiFieldLabelInfo.vue.d.ts +5 -0
- package/dist/system/components/UiField/UiFieldLegend.vue.d.ts +17 -0
- package/dist/system/components/UiField/UiFieldSeparator.vue.d.ts +17 -0
- package/dist/system/components/UiField/UiFieldSet.vue.d.ts +17 -0
- package/dist/system/components/UiField/UiFieldTitle.vue.d.ts +17 -0
- package/dist/system/components/UiField/index.d.ts +12 -0
- package/dist/system/components/UiField/keys.d.ts +2 -0
- package/dist/system/components/UiField/types.d.ts +119 -0
- package/dist/system/components/UiFileItem/UiFileItem.vue.d.ts +14 -0
- package/dist/system/components/UiFileItem/index.d.ts +2 -0
- package/dist/system/components/UiFileItem/types.d.ts +27 -0
- package/dist/system/components/UiFileUploadBox/UiFileUploadBox.vue.d.ts +61 -0
- package/dist/system/components/UiFileUploadBox/file-validation.d.ts +50 -0
- package/dist/system/components/UiFileUploadBox/index.d.ts +3 -0
- package/dist/system/components/UiFileUploadBox/types.d.ts +82 -0
- package/dist/system/components/UiIcon/UiIcon.vue.d.ts +6 -0
- package/dist/system/components/UiIcon/index.d.ts +2 -0
- package/dist/system/components/UiIcon/types.d.ts +40 -0
- package/dist/system/components/UiIconButton/UiIconButton.vue.d.ts +25 -0
- package/dist/system/components/UiIconButton/index.d.ts +7 -0
- package/dist/system/components/UiIconButton/types.d.ts +67 -0
- package/dist/system/components/UiInput/UiInput.vue.d.ts +21 -0
- package/dist/system/components/UiInput/index.d.ts +2 -0
- package/dist/system/components/UiInput/types.d.ts +60 -0
- package/dist/system/components/UiItem/UiItem.vue.d.ts +23 -0
- package/dist/system/components/UiItem/UiItemMedia.vue.d.ts +20 -0
- package/dist/system/components/UiItem/constants.d.ts +3 -0
- package/dist/system/components/UiItem/index.d.ts +11 -0
- package/dist/system/components/UiItem/types.d.ts +106 -0
- package/dist/system/components/UiKbd/UiKbd.vue.d.ts +20 -0
- package/dist/system/components/UiKbd/UiKbdGroup.vue.d.ts +17 -0
- package/dist/system/components/UiKbd/index.d.ts +3 -0
- package/dist/system/components/UiKbd/types.d.ts +24 -0
- package/dist/system/components/UiLabel/UiLabel.vue.d.ts +18 -0
- package/dist/system/components/UiLabel/index.d.ts +2 -0
- package/dist/system/components/UiLabel/types.d.ts +15 -0
- package/dist/system/components/UiListbox/UiListbox.vue.d.ts +31 -0
- package/dist/system/components/UiListbox/UiListboxContent.vue.d.ts +17 -0
- package/dist/system/components/UiListbox/UiListboxFilter.vue.d.ts +11 -0
- package/dist/system/components/UiListbox/UiListboxGroup.vue.d.ts +17 -0
- package/dist/system/components/UiListbox/UiListboxGroupLabel.vue.d.ts +17 -0
- package/dist/system/components/UiListbox/UiListboxItem.vue.d.ts +22 -0
- package/dist/system/components/UiListbox/UiListboxItemIndicator.vue.d.ts +17 -0
- package/dist/system/components/UiListbox/index.d.ts +8 -0
- package/dist/system/components/UiListbox/types.d.ts +102 -0
- package/dist/system/components/UiNavigationMenu/UiNavigationMenu.vue.d.ts +32 -0
- package/dist/system/components/UiNavigationMenu/UiNavigationMenuContent.vue.d.ts +28 -0
- package/dist/system/components/UiNavigationMenu/UiNavigationMenuIndicator.vue.d.ts +3 -0
- package/dist/system/components/UiNavigationMenu/UiNavigationMenuItem.vue.d.ts +18 -0
- package/dist/system/components/UiNavigationMenu/UiNavigationMenuLink.vue.d.ts +26 -0
- package/dist/system/components/UiNavigationMenu/UiNavigationMenuList.vue.d.ts +18 -0
- package/dist/system/components/UiNavigationMenu/UiNavigationMenuTrigger.vue.d.ts +18 -0
- package/dist/system/components/UiNavigationMenu/index.d.ts +9 -0
- package/dist/system/components/UiNavigationMenu/types.d.ts +163 -0
- package/dist/system/components/UiPopover/UiPopover.vue.d.ts +26 -0
- package/dist/system/components/UiPopover/UiPopoverContent.vue.d.ts +26 -0
- package/dist/system/components/UiPopover/UiPopoverTrigger.vue.d.ts +18 -0
- package/dist/system/components/UiPopover/index.d.ts +5 -0
- package/dist/system/components/UiPopover/types.d.ts +90 -0
- package/dist/system/components/UiProgress/UiProgress.vue.d.ts +13 -0
- package/dist/system/components/UiProgress/index.d.ts +2 -0
- package/dist/system/components/UiProgress/types.d.ts +15 -0
- package/dist/system/components/UiRadioGroup/UiRadioGroup.vue.d.ts +33 -0
- package/dist/system/components/UiRadioGroup/UiRadioGroupItem.vue.d.ts +7 -0
- package/dist/system/components/UiRadioGroup/index.d.ts +3 -0
- package/dist/system/components/UiRadioGroup/types.d.ts +68 -0
- package/dist/system/components/UiRangeCalendar/UiRangeCalendar.vue.d.ts +25 -0
- package/dist/system/components/UiRangeCalendar/index.d.ts +3 -0
- package/dist/system/components/UiRangeCalendar/types.d.ts +157 -0
- package/dist/system/components/UiSelect/UiSelect.vue.d.ts +33 -0
- package/dist/system/components/UiSelect/UiSelectContent.vue.d.ts +29 -0
- package/dist/system/components/UiSelect/UiSelectGroup.vue.d.ts +17 -0
- package/dist/system/components/UiSelect/UiSelectItem.vue.d.ts +21 -0
- package/dist/system/components/UiSelect/UiSelectLabel.vue.d.ts +17 -0
- package/dist/system/components/UiSelect/UiSelectSeparator.vue.d.ts +2 -0
- package/dist/system/components/UiSelect/UiSelectTrigger.vue.d.ts +22 -0
- package/dist/system/components/UiSelect/UiSelectValue.vue.d.ts +20 -0
- package/dist/system/components/UiSelect/index.d.ts +9 -0
- package/dist/system/components/UiSelect/types.d.ts +86 -0
- package/dist/system/components/UiSeparator/UiSeparator.vue.d.ts +6 -0
- package/dist/system/components/UiSeparator/index.d.ts +2 -0
- package/dist/system/components/UiSeparator/types.d.ts +22 -0
- package/dist/system/components/UiSheet/index.d.ts +2 -0
- package/dist/system/components/UiSheet/types.d.ts +75 -0
- package/dist/system/components/UiSkeleton/UiSkeleton.vue.d.ts +5 -0
- package/dist/system/components/UiSkeleton/index.d.ts +2 -0
- package/dist/system/components/UiSkeleton/types.d.ts +25 -0
- package/dist/system/components/UiSlider/UiSlider.vue.d.ts +9 -0
- package/dist/system/components/UiSlider/index.d.ts +2 -0
- package/dist/system/components/UiSlider/types.d.ts +86 -0
- package/dist/system/components/UiSpinner/UiSpinner.vue.d.ts +5 -0
- package/dist/system/components/UiSpinner/index.d.ts +2 -0
- package/dist/system/components/UiSpinner/types.d.ts +15 -0
- package/dist/system/components/UiStepper/UiStepper.vue.d.ts +38 -0
- package/dist/system/components/UiStepper/UiStepperDescription.vue.d.ts +17 -0
- package/dist/system/components/UiStepper/UiStepperIndicator.vue.d.ts +17 -0
- package/dist/system/components/UiStepper/UiStepperItem.vue.d.ts +18 -0
- package/dist/system/components/UiStepper/UiStepperSeparator.vue.d.ts +2 -0
- package/dist/system/components/UiStepper/UiStepperTitle.vue.d.ts +17 -0
- package/dist/system/components/UiStepper/UiStepperTrigger.vue.d.ts +20 -0
- package/dist/system/components/UiStepper/index.d.ts +8 -0
- package/dist/system/components/UiStepper/types.d.ts +61 -0
- package/dist/system/components/UiSwitch/UiSwitch.vue.d.ts +14 -0
- package/dist/system/components/UiSwitch/index.d.ts +2 -0
- package/dist/system/components/UiSwitch/types.d.ts +24 -0
- package/dist/system/components/UiTable/UiTable.vue.d.ts +17 -0
- package/dist/system/components/UiTable/UiTableBody.vue.d.ts +17 -0
- package/dist/system/components/UiTable/UiTableCaption.vue.d.ts +17 -0
- package/dist/system/components/UiTable/UiTableCell.vue.d.ts +18 -0
- package/dist/system/components/UiTable/UiTableEmpty.vue.d.ts +20 -0
- package/dist/system/components/UiTable/UiTableFooter.vue.d.ts +17 -0
- package/dist/system/components/UiTable/UiTableHead.vue.d.ts +20 -0
- package/dist/system/components/UiTable/UiTableHeader.vue.d.ts +17 -0
- package/dist/system/components/UiTable/UiTableRow.vue.d.ts +20 -0
- package/dist/system/components/UiTable/index.d.ts +10 -0
- package/dist/system/components/UiTable/types.d.ts +61 -0
- package/dist/system/components/UiTabs/UiTabs.vue.d.ts +22 -0
- package/dist/system/components/UiTabs/UiTabsContent.vue.d.ts +18 -0
- package/dist/system/components/UiTabs/UiTabsList.vue.d.ts +18 -0
- package/dist/system/components/UiTabs/UiTabsTrigger.vue.d.ts +18 -0
- package/dist/system/components/UiTabs/index.d.ts +5 -0
- package/dist/system/components/UiTabs/types.d.ts +60 -0
- package/dist/system/components/UiTagsInput/UiTagsInput.vue.d.ts +30 -0
- package/dist/system/components/UiTagsInput/UiTagsInputInput.vue.d.ts +3 -0
- package/dist/system/components/UiTagsInput/UiTagsInputItem.vue.d.ts +18 -0
- package/dist/system/components/UiTagsInput/UiTagsInputItemDelete.vue.d.ts +17 -0
- package/dist/system/components/UiTagsInput/UiTagsInputItemText.vue.d.ts +2 -0
- package/dist/system/components/UiTagsInput/index.d.ts +6 -0
- package/dist/system/components/UiTagsInput/types.d.ts +47 -0
- package/dist/system/components/UiTextarea/UiTextarea.vue.d.ts +14 -0
- package/dist/system/components/UiTextarea/index.d.ts +2 -0
- package/dist/system/components/UiTextarea/types.d.ts +29 -0
- package/dist/system/components/UiToggle/UiToggle.vue.d.ts +30 -0
- package/dist/system/components/UiToggle/index.d.ts +2 -0
- package/dist/system/components/UiToggle/types.d.ts +34 -0
- package/dist/system/components/UiToggleGroup/UiToggleGroup.vue.d.ts +31 -0
- package/dist/system/components/UiToggleGroup/UiToggleGroupItem.vue.d.ts +18 -0
- package/dist/system/components/UiToggleGroup/index.d.ts +3 -0
- package/dist/system/components/UiToggleGroup/types.d.ts +123 -0
- package/dist/system/components/UiTooltip/UiTooltip.vue.d.ts +33 -0
- package/dist/system/components/UiTooltip/index.d.ts +3 -0
- package/dist/system/components/UiTooltip/types.d.ts +45 -0
- package/dist/system/components/core/accordion/Accordion.vue.d.ts +25 -0
- package/dist/system/components/core/accordion/AccordionContent.vue.d.ts +22 -0
- package/dist/system/components/core/accordion/AccordionItem.vue.d.ts +22 -0
- package/dist/system/components/core/accordion/AccordionTrigger.vue.d.ts +23 -0
- package/dist/system/components/core/accordion/index.d.ts +4 -0
- package/dist/system/components/core/alert/Alert.vue.d.ts +23 -0
- package/dist/system/components/core/alert/AlertDescription.vue.d.ts +21 -0
- package/dist/system/components/core/alert/AlertTitle.vue.d.ts +21 -0
- package/dist/system/components/core/alert/index.d.ts +8 -0
- package/dist/system/components/core/alert-dialog/AlertDialog.vue.d.ts +25 -0
- package/dist/system/components/core/alert-dialog/AlertDialogAction.vue.d.ts +18 -0
- package/dist/system/components/core/alert-dialog/AlertDialogCancel.vue.d.ts +18 -0
- package/dist/system/components/core/alert-dialog/AlertDialogContent.vue.d.ts +40 -0
- package/dist/system/components/core/alert-dialog/AlertDialogDescription.vue.d.ts +18 -0
- package/dist/system/components/core/alert-dialog/AlertDialogFooter.vue.d.ts +17 -0
- package/dist/system/components/core/alert-dialog/AlertDialogHeader.vue.d.ts +17 -0
- package/dist/system/components/core/alert-dialog/AlertDialogTitle.vue.d.ts +18 -0
- package/dist/system/components/core/alert-dialog/AlertDialogTrigger.vue.d.ts +18 -0
- package/dist/system/components/core/alert-dialog/index.d.ts +9 -0
- package/dist/system/components/core/avatar/Avatar.vue.d.ts +21 -0
- package/dist/system/components/core/avatar/AvatarFallback.vue.d.ts +22 -0
- package/dist/system/components/core/avatar/AvatarImage.vue.d.ts +18 -0
- package/dist/system/components/core/avatar/index.d.ts +3 -0
- package/dist/system/components/core/badge/Badge.vue.d.ts +25 -0
- package/dist/system/components/core/badge/index.d.ts +7 -0
- package/dist/system/components/core/button/Button.vue.d.ts +28 -0
- package/dist/system/components/core/button/index.d.ts +7 -0
- package/dist/system/components/core/calendar/Calendar.vue.d.ts +44 -0
- package/dist/system/components/core/calendar/CalendarCell.vue.d.ts +22 -0
- package/dist/system/components/core/calendar/CalendarCellTrigger.vue.d.ts +24 -0
- package/dist/system/components/core/calendar/CalendarGrid.vue.d.ts +22 -0
- package/dist/system/components/core/calendar/CalendarGridBody.vue.d.ts +18 -0
- package/dist/system/components/core/calendar/CalendarGridHead.vue.d.ts +22 -0
- package/dist/system/components/core/calendar/CalendarGridRow.vue.d.ts +22 -0
- package/dist/system/components/core/calendar/CalendarHeadCell.vue.d.ts +22 -0
- package/dist/system/components/core/calendar/CalendarHeader.vue.d.ts +22 -0
- package/dist/system/components/core/calendar/CalendarHeading.vue.d.ts +28 -0
- package/dist/system/components/core/calendar/CalendarNextButton.vue.d.ts +22 -0
- package/dist/system/components/core/calendar/CalendarPrevButton.vue.d.ts +22 -0
- package/dist/system/components/core/calendar/index.d.ts +13 -0
- package/dist/system/components/core/card/Card.vue.d.ts +21 -0
- package/dist/system/components/core/card/CardAction.vue.d.ts +21 -0
- package/dist/system/components/core/card/CardContent.vue.d.ts +21 -0
- package/dist/system/components/core/card/CardDescription.vue.d.ts +21 -0
- package/dist/system/components/core/card/CardFooter.vue.d.ts +21 -0
- package/dist/system/components/core/card/CardHeader.vue.d.ts +21 -0
- package/dist/system/components/core/card/CardTitle.vue.d.ts +21 -0
- package/dist/system/components/core/card/index.d.ts +7 -0
- package/dist/system/components/core/checkbox/Checkbox.vue.d.ts +29 -0
- package/dist/system/components/core/checkbox/index.d.ts +1 -0
- package/dist/system/components/core/dialog/Dialog.vue.d.ts +25 -0
- package/dist/system/components/core/dialog/DialogClose.vue.d.ts +18 -0
- package/dist/system/components/core/dialog/DialogContent.vue.d.ts +39 -0
- package/dist/system/components/core/dialog/DialogDescription.vue.d.ts +18 -0
- package/dist/system/components/core/dialog/DialogFooter.vue.d.ts +17 -0
- package/dist/system/components/core/dialog/DialogHeader.vue.d.ts +17 -0
- package/dist/system/components/core/dialog/DialogOverlay.vue.d.ts +18 -0
- package/dist/system/components/core/dialog/DialogTitle.vue.d.ts +18 -0
- package/dist/system/components/core/dialog/DialogTrigger.vue.d.ts +18 -0
- package/dist/system/components/core/dialog/index.d.ts +9 -0
- package/dist/system/components/core/drawer/Drawer.vue.d.ts +25 -0
- package/dist/system/components/core/drawer/DrawerClose.vue.d.ts +18 -0
- package/dist/system/components/core/drawer/DrawerContent.vue.d.ts +41 -0
- package/dist/system/components/core/drawer/DrawerDescription.vue.d.ts +22 -0
- package/dist/system/components/core/drawer/DrawerFooter.vue.d.ts +21 -0
- package/dist/system/components/core/drawer/DrawerHeader.vue.d.ts +21 -0
- package/dist/system/components/core/drawer/DrawerTitle.vue.d.ts +22 -0
- package/dist/system/components/core/drawer/DrawerTrigger.vue.d.ts +18 -0
- package/dist/system/components/core/drawer/index.d.ts +8 -0
- package/dist/system/components/core/dropdown-menu/DropdownMenu.vue.d.ts +24 -0
- package/dist/system/components/core/dropdown-menu/DropdownMenuCheckboxItem.vue.d.ts +29 -0
- package/dist/system/components/core/dropdown-menu/DropdownMenuContent.vue.d.ts +36 -0
- package/dist/system/components/core/dropdown-menu/DropdownMenuGroup.vue.d.ts +18 -0
- package/dist/system/components/core/dropdown-menu/DropdownMenuItem.vue.d.ts +26 -0
- package/dist/system/components/core/dropdown-menu/DropdownMenuLabel.vue.d.ts +23 -0
- package/dist/system/components/core/dropdown-menu/DropdownMenuRadioGroup.vue.d.ts +22 -0
- package/dist/system/components/core/dropdown-menu/DropdownMenuRadioItem.vue.d.ts +27 -0
- package/dist/system/components/core/dropdown-menu/DropdownMenuSeparator.vue.d.ts +7 -0
- package/dist/system/components/core/dropdown-menu/DropdownMenuShortcut.vue.d.ts +21 -0
- package/dist/system/components/core/dropdown-menu/DropdownMenuSub.vue.d.ts +22 -0
- package/dist/system/components/core/dropdown-menu/DropdownMenuSubContent.vue.d.ts +38 -0
- package/dist/system/components/core/dropdown-menu/DropdownMenuSubTrigger.vue.d.ts +23 -0
- package/dist/system/components/core/dropdown-menu/DropdownMenuTrigger.vue.d.ts +18 -0
- package/dist/system/components/core/dropdown-menu/index.d.ts +15 -0
- package/dist/system/components/core/field/Field.vue.d.ts +23 -0
- package/dist/system/components/core/field/FieldContent.vue.d.ts +21 -0
- package/dist/system/components/core/field/FieldDescription.vue.d.ts +21 -0
- package/dist/system/components/core/field/FieldError.vue.d.ts +24 -0
- package/dist/system/components/core/field/FieldGroup.vue.d.ts +21 -0
- package/dist/system/components/core/field/FieldLabel.vue.d.ts +22 -0
- package/dist/system/components/core/field/FieldLegend.vue.d.ts +22 -0
- package/dist/system/components/core/field/FieldSeparator.vue.d.ts +21 -0
- package/dist/system/components/core/field/FieldSet.vue.d.ts +21 -0
- package/dist/system/components/core/field/FieldTitle.vue.d.ts +21 -0
- package/dist/system/components/core/field/index.d.ts +15 -0
- package/dist/system/components/core/icon/Icon.vue.d.ts +21 -0
- package/dist/system/components/core/icon/index.d.ts +1 -0
- package/dist/system/components/core/index.d.ts +4 -0
- package/dist/system/components/core/input/Input.vue.d.ts +12 -0
- package/dist/system/components/core/input/index.d.ts +1 -0
- package/dist/system/components/core/item/Item.vue.d.ts +30 -0
- package/dist/system/components/core/item/ItemActions.vue.d.ts +21 -0
- package/dist/system/components/core/item/ItemContent.vue.d.ts +21 -0
- package/dist/system/components/core/item/ItemDescription.vue.d.ts +21 -0
- package/dist/system/components/core/item/ItemFooter.vue.d.ts +21 -0
- package/dist/system/components/core/item/ItemGroup.vue.d.ts +21 -0
- package/dist/system/components/core/item/ItemHeader.vue.d.ts +21 -0
- package/dist/system/components/core/item/ItemMedia.vue.d.ts +23 -0
- package/dist/system/components/core/item/ItemSeparator.vue.d.ts +7 -0
- package/dist/system/components/core/item/ItemTitle.vue.d.ts +21 -0
- package/dist/system/components/core/item/index.d.ts +20 -0
- package/dist/system/components/core/kbd/Kbd.vue.d.ts +21 -0
- package/dist/system/components/core/kbd/KbdGroup.vue.d.ts +21 -0
- package/dist/system/components/core/kbd/index.d.ts +2 -0
- package/dist/system/components/core/label/Label.vue.d.ts +22 -0
- package/dist/system/components/core/label/index.d.ts +1 -0
- package/dist/system/components/core/listbox/Listbox.vue.d.ts +38 -0
- package/dist/system/components/core/listbox/ListboxContent.vue.d.ts +22 -0
- package/dist/system/components/core/listbox/ListboxFilter.vue.d.ts +11 -0
- package/dist/system/components/core/listbox/ListboxGroup.vue.d.ts +22 -0
- package/dist/system/components/core/listbox/ListboxGroupLabel.vue.d.ts +22 -0
- package/dist/system/components/core/listbox/ListboxItem.vue.d.ts +26 -0
- package/dist/system/components/core/listbox/ListboxItemIndicator.vue.d.ts +22 -0
- package/dist/system/components/core/listbox/index.d.ts +7 -0
- package/dist/system/components/core/native-select/NativeSelect.vue.d.ts +27 -0
- package/dist/system/components/core/native-select/NativeSelectOptGroup.vue.d.ts +405 -0
- package/dist/system/components/core/native-select/NativeSelectOption.vue.d.ts +409 -0
- package/dist/system/components/core/native-select/index.d.ts +3 -0
- package/dist/system/components/core/navigation-menu/NavigationMenu.vue.d.ts +29 -0
- package/dist/system/components/core/navigation-menu/NavigationMenuContent.vue.d.ts +28 -0
- package/dist/system/components/core/navigation-menu/NavigationMenuIndicator.vue.d.ts +3 -0
- package/dist/system/components/core/navigation-menu/NavigationMenuItem.vue.d.ts +18 -0
- package/dist/system/components/core/navigation-menu/NavigationMenuLink.vue.d.ts +26 -0
- package/dist/system/components/core/navigation-menu/NavigationMenuList.vue.d.ts +18 -0
- package/dist/system/components/core/navigation-menu/NavigationMenuTrigger.vue.d.ts +18 -0
- package/dist/system/components/core/navigation-menu/NavigationMenuViewport.vue.d.ts +3 -0
- package/dist/system/components/core/navigation-menu/index.d.ts +9 -0
- package/dist/system/components/core/popover/Popover.vue.d.ts +22 -0
- package/dist/system/components/core/popover/PopoverContent.vue.d.ts +39 -0
- package/dist/system/components/core/popover/PopoverTrigger.vue.d.ts +18 -0
- package/dist/system/components/core/popover/index.d.ts +4 -0
- package/dist/system/components/core/progress/Progress.vue.d.ts +9 -0
- package/dist/system/components/core/progress/index.d.ts +1 -0
- package/dist/system/components/core/radio-group/RadioGroup.vue.d.ts +28 -0
- package/dist/system/components/core/radio-group/RadioGroupItem.vue.d.ts +22 -0
- package/dist/system/components/core/radio-group/index.d.ts +2 -0
- package/dist/system/components/core/range-calendar/RangeCalendar.vue.d.ts +17 -0
- package/dist/system/components/core/range-calendar/RangeCalendarCell.vue.d.ts +22 -0
- package/dist/system/components/core/range-calendar/RangeCalendarCellTrigger.vue.d.ts +24 -0
- package/dist/system/components/core/range-calendar/RangeCalendarGrid.vue.d.ts +22 -0
- package/dist/system/components/core/range-calendar/RangeCalendarGridBody.vue.d.ts +18 -0
- package/dist/system/components/core/range-calendar/RangeCalendarGridHead.vue.d.ts +18 -0
- package/dist/system/components/core/range-calendar/RangeCalendarGridRow.vue.d.ts +22 -0
- package/dist/system/components/core/range-calendar/RangeCalendarHeadCell.vue.d.ts +22 -0
- package/dist/system/components/core/range-calendar/RangeCalendarHeader.vue.d.ts +22 -0
- package/dist/system/components/core/range-calendar/RangeCalendarHeading.vue.d.ts +28 -0
- package/dist/system/components/core/range-calendar/RangeCalendarNextButton.vue.d.ts +22 -0
- package/dist/system/components/core/range-calendar/RangeCalendarPrevButton.vue.d.ts +22 -0
- package/dist/system/components/core/range-calendar/index.d.ts +12 -0
- package/dist/system/components/core/select/Select.vue.d.ts +28 -0
- package/dist/system/components/core/select/SelectContent.vue.d.ts +32 -0
- package/dist/system/components/core/select/SelectGroup.vue.d.ts +18 -0
- package/dist/system/components/core/select/SelectItem.vue.d.ts +23 -0
- package/dist/system/components/core/select/SelectItemText.vue.d.ts +18 -0
- package/dist/system/components/core/select/SelectLabel.vue.d.ts +22 -0
- package/dist/system/components/core/select/SelectScrollDownButton.vue.d.ts +22 -0
- package/dist/system/components/core/select/SelectScrollUpButton.vue.d.ts +22 -0
- package/dist/system/components/core/select/SelectSeparator.vue.d.ts +7 -0
- package/dist/system/components/core/select/SelectTrigger.vue.d.ts +25 -0
- package/dist/system/components/core/select/SelectValue.vue.d.ts +18 -0
- package/dist/system/components/core/select/index.d.ts +11 -0
- package/dist/system/components/core/separator/Separator.vue.d.ts +10 -0
- package/dist/system/components/core/separator/index.d.ts +1 -0
- package/dist/system/components/core/sheet/Sheet.vue.d.ts +25 -0
- package/dist/system/components/core/sheet/SheetClose.vue.d.ts +18 -0
- package/dist/system/components/core/sheet/SheetContent.vue.d.ts +39 -0
- package/dist/system/components/core/sheet/SheetDescription.vue.d.ts +18 -0
- package/dist/system/components/core/sheet/SheetFooter.vue.d.ts +17 -0
- package/dist/system/components/core/sheet/SheetHeader.vue.d.ts +17 -0
- package/dist/system/components/core/sheet/SheetOverlay.vue.d.ts +18 -0
- package/dist/system/components/core/sheet/SheetTitle.vue.d.ts +18 -0
- package/dist/system/components/core/sheet/SheetTrigger.vue.d.ts +18 -0
- package/dist/system/components/core/sheet/index.d.ts +8 -0
- package/dist/system/components/core/sidebar/Sidebar.vue.d.ts +24 -0
- package/dist/system/components/core/sidebar/SidebarContent.vue.d.ts +17 -0
- package/dist/system/components/core/sidebar/SidebarFooter.vue.d.ts +17 -0
- package/dist/system/components/core/sidebar/SidebarGroup.vue.d.ts +17 -0
- package/dist/system/components/core/sidebar/SidebarGroupAction.vue.d.ts +17 -0
- package/dist/system/components/core/sidebar/SidebarGroupContent.vue.d.ts +17 -0
- package/dist/system/components/core/sidebar/SidebarGroupLabel.vue.d.ts +17 -0
- package/dist/system/components/core/sidebar/SidebarHeader.vue.d.ts +17 -0
- package/dist/system/components/core/sidebar/SidebarInput.vue.d.ts +17 -0
- package/dist/system/components/core/sidebar/SidebarInset.vue.d.ts +17 -0
- package/dist/system/components/core/sidebar/SidebarMenu.vue.d.ts +17 -0
- package/dist/system/components/core/sidebar/SidebarMenuAction.vue.d.ts +20 -0
- package/dist/system/components/core/sidebar/SidebarMenuBadge.vue.d.ts +17 -0
- package/dist/system/components/core/sidebar/SidebarMenuButton.vue.d.ts +27 -0
- package/dist/system/components/core/sidebar/SidebarMenuButtonChild.vue.d.ts +28 -0
- package/dist/system/components/core/sidebar/SidebarMenuItem.vue.d.ts +17 -0
- package/dist/system/components/core/sidebar/SidebarMenuSkeleton.vue.d.ts +5 -0
- package/dist/system/components/core/sidebar/SidebarMenuSub.vue.d.ts +17 -0
- package/dist/system/components/core/sidebar/SidebarMenuSubButton.vue.d.ts +23 -0
- package/dist/system/components/core/sidebar/SidebarMenuSubItem.vue.d.ts +17 -0
- package/dist/system/components/core/sidebar/SidebarProvider.vue.d.ts +28 -0
- package/dist/system/components/core/sidebar/SidebarRail.vue.d.ts +17 -0
- package/dist/system/components/core/sidebar/SidebarSeparator.vue.d.ts +17 -0
- package/dist/system/components/core/sidebar/SidebarTrigger.vue.d.ts +2 -0
- package/dist/system/components/core/sidebar/index.d.ts +35 -0
- package/dist/system/components/core/sidebar/utils.d.ts +21 -0
- package/dist/system/components/core/skeleton/Skeleton.vue.d.ts +6 -0
- package/dist/system/components/core/skeleton/index.d.ts +1 -0
- package/dist/system/components/core/slider/Slider.vue.d.ts +13 -0
- package/dist/system/components/core/slider/index.d.ts +1 -0
- package/dist/system/components/core/spinner/Spinner.vue.d.ts +6 -0
- package/dist/system/components/core/spinner/index.d.ts +1 -0
- package/dist/system/components/core/stepper/Stepper.vue.d.ts +38 -0
- package/dist/system/components/core/stepper/StepperDescription.vue.d.ts +22 -0
- package/dist/system/components/core/stepper/StepperIndicator.vue.d.ts +22 -0
- package/dist/system/components/core/stepper/StepperItem.vue.d.ts +22 -0
- package/dist/system/components/core/stepper/StepperSeparator.vue.d.ts +7 -0
- package/dist/system/components/core/stepper/StepperTitle.vue.d.ts +22 -0
- package/dist/system/components/core/stepper/StepperTrigger.vue.d.ts +22 -0
- package/dist/system/components/core/stepper/index.d.ts +7 -0
- package/dist/system/components/core/switch/Switch.vue.d.ts +29 -0
- package/dist/system/components/core/switch/index.d.ts +1 -0
- package/dist/system/components/core/table/Table.vue.d.ts +21 -0
- package/dist/system/components/core/table/TableBody.vue.d.ts +21 -0
- package/dist/system/components/core/table/TableCaption.vue.d.ts +21 -0
- package/dist/system/components/core/table/TableCell.vue.d.ts +23 -0
- package/dist/system/components/core/table/TableEmpty.vue.d.ts +24 -0
- package/dist/system/components/core/table/TableFooter.vue.d.ts +21 -0
- package/dist/system/components/core/table/TableHead.vue.d.ts +24 -0
- package/dist/system/components/core/table/TableHeader.vue.d.ts +21 -0
- package/dist/system/components/core/table/TableRow.vue.d.ts +22 -0
- package/dist/system/components/core/table/index.d.ts +9 -0
- package/dist/system/components/core/table/utils.d.ts +3 -0
- package/dist/system/components/core/tabs/Tabs.vue.d.ts +28 -0
- package/dist/system/components/core/tabs/TabsContent.vue.d.ts +22 -0
- package/dist/system/components/core/tabs/TabsList.vue.d.ts +22 -0
- package/dist/system/components/core/tabs/TabsTrigger.vue.d.ts +22 -0
- package/dist/system/components/core/tabs/index.d.ts +4 -0
- package/dist/system/components/core/tags-input/TagsInput.vue.d.ts +34 -0
- package/dist/system/components/core/tags-input/TagsInputInput.vue.d.ts +7 -0
- package/dist/system/components/core/tags-input/TagsInputItem.vue.d.ts +22 -0
- package/dist/system/components/core/tags-input/TagsInputItemDelete.vue.d.ts +22 -0
- package/dist/system/components/core/tags-input/TagsInputItemText.vue.d.ts +7 -0
- package/dist/system/components/core/tags-input/index.d.ts +5 -0
- package/dist/system/components/core/textarea/Textarea.vue.d.ts +12 -0
- package/dist/system/components/core/textarea/index.d.ts +1 -0
- package/dist/system/components/core/toggle/Toggle.vue.d.ts +31 -0
- package/dist/system/components/core/toggle/index.d.ts +7 -0
- package/dist/system/components/core/toggle-group/ToggleGroup.vue.d.ts +30 -0
- package/dist/system/components/core/toggle-group/ToggleGroupItem.vue.d.ts +23 -0
- package/dist/system/components/core/toggle-group/context.d.ts +7 -0
- package/dist/system/components/core/toggle-group/index.d.ts +9 -0
- package/dist/system/components/core/tooltip/Tooltip.vue.d.ts +22 -0
- package/dist/system/components/core/tooltip/TooltipContent.vue.d.ts +30 -0
- package/dist/system/components/core/tooltip/TooltipProvider.vue.d.ts +18 -0
- package/dist/system/components/core/tooltip/TooltipTrigger.vue.d.ts +18 -0
- package/dist/system/components/core/tooltip/index.d.ts +4 -0
- package/dist/system/components/index.d.ts +49 -0
- package/dist/system/directives/index.d.ts +3 -0
- package/dist/system/directives/useVHover.d.ts +26 -0
- package/dist/system/directives/vHover.d.ts +38 -0
- package/dist/system/directives/vOverlay.d.ts +28 -0
- package/dist/system/index.d.ts +12 -8509
- package/dist/system/lib/utils.d.ts +2 -0
- package/dist/system/lib.js +16445 -16177
- package/dist/system/patterns/UiDataTable/UiDataTable.mock.d.ts +44 -0
- package/dist/system/patterns/UiDataTable/UiDataTable.vue.d.ts +18 -0
- package/dist/system/patterns/UiDataTable/UiDataTableColumnHeader.vue.d.ts +14 -0
- package/dist/system/patterns/UiDataTable/UiDataTablePagination.vue.d.ts +14 -0
- package/dist/system/patterns/UiDataTable/UiDataTableToolbar.vue.d.ts +14 -0
- package/dist/system/patterns/UiDataTable/constants.d.ts +68 -0
- package/dist/system/patterns/UiDataTable/index.d.ts +6 -0
- package/dist/system/patterns/UiDataTable/types.d.ts +117 -0
- package/dist/system/patterns/UiDatePicker/UiDatePicker.vue.d.ts +29 -0
- package/dist/system/patterns/UiDatePicker/index.d.ts +3 -0
- package/dist/system/patterns/UiDatePicker/types.d.ts +189 -0
- package/dist/system/patterns/UiFileUpload/UiFileUpload.vue.d.ts +56 -0
- package/dist/system/patterns/UiFileUpload/index.d.ts +3 -0
- package/dist/system/patterns/UiFileUpload/types.d.ts +10 -0
- package/dist/system/patterns/UiPlaceholder/UiPlaceholder.vue.d.ts +2 -0
- package/dist/system/patterns/UiPlaceholder/index.d.ts +1 -0
- package/dist/system/patterns/UiPlaceholder/types.d.ts +7 -0
- package/dist/system/patterns/UiSidebar/UiSidebar.vue.d.ts +21 -0
- package/dist/system/patterns/UiSidebar/UiSidebarChatHistory.vue.d.ts +20 -0
- package/dist/system/patterns/UiSidebar/UiSidebarChatHistoryItem.vue.d.ts +34 -0
- package/dist/system/patterns/UiSidebar/UiSidebarContent.vue.d.ts +18 -0
- package/dist/system/patterns/UiSidebar/UiSidebarFooter.vue.d.ts +18 -0
- package/dist/system/patterns/UiSidebar/UiSidebarGroup.vue.d.ts +20 -0
- package/dist/system/patterns/UiSidebar/UiSidebarGroupContent.vue.d.ts +18 -0
- package/dist/system/patterns/UiSidebar/UiSidebarGroupLabel.vue.d.ts +33 -0
- package/dist/system/patterns/UiSidebar/UiSidebarHeader.vue.d.ts +22 -0
- package/dist/system/patterns/UiSidebar/UiSidebarInset.vue.d.ts +18 -0
- package/dist/system/patterns/UiSidebar/UiSidebarMenu.vue.d.ts +18 -0
- package/dist/system/patterns/UiSidebar/UiSidebarMenuButton.vue.d.ts +33 -0
- package/dist/system/patterns/UiSidebar/UiSidebarMenuItem.vue.d.ts +18 -0
- package/dist/system/patterns/UiSidebar/UiSidebarMenuSub.vue.d.ts +20 -0
- package/dist/system/patterns/UiSidebar/UiSidebarMenuSubItem.vue.d.ts +21 -0
- package/dist/system/patterns/UiSidebar/UiSidebarPopover.vue.d.ts +26 -0
- package/dist/system/patterns/UiSidebar/UiSidebarPopoverMenu.vue.d.ts +22 -0
- package/dist/system/patterns/UiSidebar/UiSidebarPopoverMenuItem.vue.d.ts +23 -0
- package/dist/system/patterns/UiSidebar/UiSidebarPopoverTrigger.vue.d.ts +22 -0
- package/dist/system/patterns/UiSidebar/UiSidebarProvider.vue.d.ts +18 -0
- package/dist/system/patterns/UiSidebar/UiSidebarRail.vue.d.ts +3 -0
- package/dist/system/patterns/UiSidebar/UiSidebarSub.vue.d.ts +21 -0
- package/dist/system/patterns/UiSidebar/UiSidebarTrigger.vue.d.ts +6 -0
- package/dist/system/patterns/UiSidebar/__tests__/sidebar-test-helpers.d.ts +134 -0
- package/dist/system/patterns/UiSidebar/activeIndicator.d.ts +16 -0
- package/dist/system/patterns/UiSidebar/groupContext.d.ts +11 -0
- package/dist/system/patterns/UiSidebar/index.d.ts +24 -0
- package/dist/system/patterns/UiSidebar/types.d.ts +410 -0
- package/dist/system/patterns/index.d.ts +9 -0
- package/dist/system/templates/UiTemplatePlaceholder/UiTemplatePlaceholder.vue.d.ts +2 -0
- package/dist/system/templates/UiTemplatePlaceholder/index.d.ts +1 -0
- package/dist/system/templates/UiTemplatePlaceholder/types.d.ts +7 -0
- package/dist/system/templates/index.d.ts +5 -0
- package/hover-mix.d.ts +93 -0
- package/hover-mix.js +216 -0
- package/package.json +6 -3
- package/src/components/UiAlertDialog/__tests__/UiAlertDialog.test.ts +8 -0
- package/src/components/UiBadge/UiBadge.stories.ts +239 -239
- package/src/components/UiBadge/UiBadge.vue +8 -3
- package/src/components/UiBadge/__tests__/UiBadge.test.ts +52 -0
- package/src/components/UiBadge/constants.ts +12 -2
- package/src/components/UiBadge/types.ts +29 -5
- package/src/components/UiButton/UiButton.stories.ts +198 -4
- package/src/components/UiButton/UiButton.vue +23 -11
- package/src/components/UiButton/types.ts +13 -2
- package/src/components/UiCard/UiCard.stories.ts +6 -6
- package/src/components/UiCheckbox/UiCheckbox.stories.ts +12 -12
- package/src/components/UiChip/UiChip.stories.ts +2 -2
- package/src/components/UiChip/UiChip.vue +1 -1
- package/src/components/UiCodeBlock/UiCodeBlock.vue +11 -4
- package/src/components/UiDialog/UiDialog.stories.ts +13 -13
- package/src/components/UiDrawer/UiDrawer.stories.ts +14 -14
- package/src/components/UiDrawer/types.ts +1 -1
- package/src/components/UiDropdownMenu/UiDropdownMenu.stories.ts +6 -7
- package/src/components/UiDropdownMenu/__tests__/UiDropdownMenu.test.ts +7 -0
- package/src/components/UiDropdownMenu/types.ts +1 -1
- package/src/components/UiEmpty/UiEmpty.vue +2 -2
- package/src/components/UiField/UiFieldLabelInfo.vue +3 -3
- package/src/components/UiField/types.ts +1 -1
- package/src/components/UiFileItem/UiFileItem.stories.ts +7 -7
- package/src/components/UiFileUploadBox/UiFileUploadBox.stories.ts +4 -4
- package/src/components/UiFileUploadBox/UiFileUploadBox.vue +2 -5
- package/src/components/UiFileUploadBox/file-validation.ts +43 -9
- package/src/components/UiFileUploadBox/types.ts +0 -1
- package/src/components/UiIcon/UiIcon.stories.ts +8 -8
- package/src/components/UiIcon/UiIcon.vue +22 -3
- package/src/components/UiIcon/index.ts +1 -1
- package/src/components/UiIcon/types.ts +14 -3
- package/src/components/UiIconButton/UiIconButton.stories.ts +23 -7
- package/src/components/UiIconButton/UiIconButton.vue +10 -5
- package/src/components/UiIconButton/index.ts +12 -1
- package/src/components/UiIconButton/types.ts +18 -1
- package/src/components/UiInput/UiInput.stories.ts +4 -4
- package/src/components/UiInput/UiInput.vue +72 -2
- package/src/components/UiInput/types.ts +53 -7
- package/src/components/UiItem/UiItem.stories.ts +7 -7
- package/src/components/UiItem/__tests__/UiItem.test.ts +2 -2
- package/src/components/UiKbd/UiKbd.stories.ts +16 -16
- package/src/components/UiNavigationMenu/UiNavigationMenu.stories.ts +58 -58
- package/src/components/UiNavigationMenu/__tests__/UiNavigationMenu.test.ts +11 -0
- package/src/components/UiNavigationMenu/types.ts +6 -2
- package/src/components/UiPopover/types.ts +1 -1
- package/src/components/UiSelect/__tests__/UiSelect.test.ts +8 -0
- package/src/components/UiSeparator/UiSeparator.stories.ts +16 -16
- package/src/components/UiSheet/types.ts +1 -2
- package/src/components/UiStepper/types.ts +1 -2
- package/src/components/UiTable/UiTable.stories.ts +4 -4
- package/src/components/UiTextarea/UiTextarea.stories.ts +4 -4
- package/src/components/UiToggle/UiToggle.stories.ts +8 -8
- package/src/components/UiToggleGroup/__tests__/UiToggleGroup.test.ts +2 -0
- package/src/components/UiToggleGroup/types.ts +1 -3
- package/src/components/UiTooltip/UiTooltip.stories.ts +3 -3
- package/src/components/core/alert-dialog/AlertDialogDescription.vue +1 -1
- package/src/components/core/alert-dialog/AlertDialogTitle.vue +1 -1
- package/src/components/core/badge/Badge.vue +28 -19
- package/src/components/core/badge/index.ts +16 -5
- package/src/components/core/button/Button.vue +1 -26
- package/src/components/core/button/index.ts +25 -20
- package/src/components/core/calendar/CalendarHeading.vue +1 -1
- package/src/components/core/card/CardDescription.vue +1 -1
- package/src/components/core/card/CardTitle.vue +1 -1
- package/src/components/core/dialog/DialogDescription.vue +1 -1
- package/src/components/core/dialog/DialogTitle.vue +1 -1
- package/src/components/core/drawer/DrawerTitle.vue +1 -1
- package/src/components/core/field/FieldError.vue +1 -1
- package/src/components/core/field/FieldTitle.vue +1 -1
- package/src/components/core/input/Input.vue +1 -1
- package/src/components/core/item/ItemTitle.vue +1 -1
- package/src/components/core/range-calendar/RangeCalendarHeading.vue +1 -1
- package/src/components/core/sheet/SheetDescription.vue +1 -1
- package/src/components/core/sheet/SheetTitle.vue +1 -1
- package/src/components/core/sidebar/Sidebar.vue +2 -2
- package/src/components/core/sidebar/SidebarGroupLabel.vue +1 -1
- package/src/components/core/sidebar/SidebarMenuSub.vue +1 -1
- package/src/components/core/stepper/StepperTitle.vue +1 -3
- package/src/components/core/table/TableCaption.vue +4 -1
- package/src/directives/index.ts +11 -1
- package/src/directives/useVHover.ts +67 -0
- package/src/directives/vHover.stories.ts +18 -18
- package/src/directives/vHover.ts +66 -29
- package/src/directives/vOverlay.ts +49 -15
- package/src/patterns/UiDataTable/UiDataTablePagination.vue +3 -3
- package/src/patterns/UiDataTable/__tests__/UiDataTableColumnHeader.test.ts +6 -0
- package/src/patterns/UiDataTable/__tests__/UiDataTablePagination.test.ts +11 -0
- package/src/patterns/UiDataTable/__tests__/UiDataTableToolbar.test.ts +6 -0
- package/src/patterns/UiFileUpload/UiFileUpload.stories.ts +4 -4
- package/src/patterns/UiFileUpload/types.ts +0 -1
- package/src/patterns/UiSidebar/UiSidebar.stories.ts +285 -49
- package/src/patterns/UiSidebar/UiSidebarChatHistory.stories.ts +16 -1
- package/src/patterns/UiSidebar/UiSidebarChatHistoryItem.stories.ts +118 -2
- package/src/patterns/UiSidebar/UiSidebarChatHistoryItem.vue +134 -33
- package/src/patterns/UiSidebar/UiSidebarContent.vue +3 -0
- package/src/patterns/UiSidebar/UiSidebarFooter.vue +3 -0
- package/src/patterns/UiSidebar/UiSidebarGroup.stories.ts +16 -0
- package/src/patterns/UiSidebar/UiSidebarGroupContent.vue +45 -3
- package/src/patterns/UiSidebar/UiSidebarGroupLabel.stories.ts +40 -0
- package/src/patterns/UiSidebar/UiSidebarGroupLabel.vue +55 -30
- package/src/patterns/UiSidebar/UiSidebarHeader.vue +1 -1
- package/src/patterns/UiSidebar/UiSidebarInset.vue +3 -0
- package/src/patterns/UiSidebar/UiSidebarMenu.vue +3 -0
- package/src/patterns/UiSidebar/UiSidebarMenuButton.stories.ts +35 -0
- package/src/patterns/UiSidebar/UiSidebarMenuButton.vue +17 -17
- package/src/patterns/UiSidebar/UiSidebarMenuItem.stories.ts +6 -0
- package/src/patterns/UiSidebar/UiSidebarMenuItem.vue +3 -0
- package/src/patterns/UiSidebar/UiSidebarMenuSubItem.stories.ts +20 -0
- package/src/patterns/UiSidebar/UiSidebarMenuSubItem.vue +9 -11
- package/src/patterns/UiSidebar/UiSidebarPopover.vue +1 -1
- package/src/patterns/UiSidebar/UiSidebarPopoverMenu.stories.ts +17 -1
- package/src/patterns/UiSidebar/UiSidebarPopoverMenu.vue +2 -5
- package/src/patterns/UiSidebar/UiSidebarPopoverMenuItem.stories.ts +33 -1
- package/src/patterns/UiSidebar/UiSidebarPopoverMenuItem.vue +25 -20
- package/src/patterns/UiSidebar/UiSidebarPopoverTrigger.stories.ts +20 -0
- package/src/patterns/UiSidebar/UiSidebarPopoverTrigger.vue +8 -10
- package/src/patterns/UiSidebar/UiSidebarProvider.vue +3 -0
- package/src/patterns/UiSidebar/UiSidebarRail.vue +3 -0
- package/src/patterns/UiSidebar/UiSidebarSub.stories.ts +100 -0
- package/src/patterns/UiSidebar/UiSidebarSub.vue +65 -0
- package/src/patterns/UiSidebar/__tests__/UiSidebar.test.ts +30 -0
- package/src/patterns/UiSidebar/__tests__/UiSidebarChatHistory.test.ts +29 -0
- package/src/patterns/UiSidebar/__tests__/UiSidebarChatHistoryItem.test.ts +49 -0
- package/src/patterns/UiSidebar/__tests__/UiSidebarContent.test.ts +16 -0
- package/src/patterns/UiSidebar/__tests__/UiSidebarFooter.test.ts +19 -0
- package/src/patterns/UiSidebar/__tests__/UiSidebarGroup.test.ts +25 -0
- package/src/patterns/UiSidebar/__tests__/UiSidebarGroupContent.test.ts +40 -0
- package/src/patterns/UiSidebar/__tests__/UiSidebarGroupLabel.test.ts +53 -0
- package/src/patterns/UiSidebar/__tests__/UiSidebarHeader.test.ts +19 -0
- package/src/patterns/UiSidebar/__tests__/UiSidebarInset.test.ts +30 -0
- package/src/patterns/UiSidebar/__tests__/UiSidebarMenu.test.ts +14 -0
- package/src/patterns/UiSidebar/__tests__/UiSidebarMenuButton.test.ts +61 -0
- package/src/patterns/UiSidebar/__tests__/UiSidebarMenuItem.test.ts +25 -0
- package/src/patterns/UiSidebar/__tests__/UiSidebarMenuSub.test.ts +40 -0
- package/src/patterns/UiSidebar/__tests__/UiSidebarMenuSubItem.test.ts +28 -0
- package/src/patterns/UiSidebar/__tests__/UiSidebarPopover.test.ts +31 -0
- package/src/patterns/UiSidebar/__tests__/UiSidebarPopoverMenu.test.ts +26 -0
- package/src/patterns/UiSidebar/__tests__/UiSidebarPopoverMenuItem.test.ts +19 -0
- package/src/patterns/UiSidebar/__tests__/UiSidebarPopoverTrigger.test.ts +32 -0
- package/src/patterns/UiSidebar/__tests__/UiSidebarProvider.test.ts +24 -0
- package/src/patterns/UiSidebar/__tests__/UiSidebarRail.test.ts +22 -0
- package/src/patterns/UiSidebar/__tests__/UiSidebarSub.test.ts +63 -0
- package/src/patterns/UiSidebar/__tests__/UiSidebarTrigger.test.ts +17 -0
- package/src/patterns/UiSidebar/__tests__/sidebar-test-helpers.ts +78 -0
- package/src/patterns/UiSidebar/activeIndicator.ts +17 -0
- package/src/patterns/UiSidebar/groupContext.ts +5 -0
- package/src/patterns/UiSidebar/index.ts +14 -3
- package/src/patterns/UiSidebar/types.ts +99 -6
- package/src/theme/Background.stories.ts +102 -45
- package/src/theme/BackgroundHover.stories.ts +174 -0
- package/src/theme/Border.stories.ts +19 -19
- package/src/theme/ContentHover.stories.ts +165 -0
- package/src/theme/Extended.stories.ts +33 -33
- package/src/theme/Flex.stories.ts +27 -27
- package/src/theme/Grid.stories.ts +25 -25
- package/src/theme/Overlay.stories.ts +15 -15
- package/src/theme/Shadow.stories.ts +95 -0
- package/src/theme/Theme.stories.ts +60 -60
- package/src/theme/Typography.stories.ts +154 -118
- package/tokens.json +5303 -4408
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
<script setup lang="ts">
|
|
2
2
|
import { computed, useAttrs, useSlots } from 'vue';
|
|
3
3
|
import { SidebarMenuButton } from '@/components/core/sidebar';
|
|
4
|
-
import { vOverlay } from '@/directives';
|
|
5
4
|
import { cn } from '@/lib/utils';
|
|
5
|
+
import { SIDEBAR_ACTIVE_INDICATOR_CLASS } from './activeIndicator';
|
|
6
6
|
import type { UiSidebarMenuButtonEmits, UiSidebarMenuButtonProps } from './types';
|
|
7
7
|
|
|
8
8
|
defineOptions({
|
|
@@ -27,19 +27,24 @@
|
|
|
27
27
|
|
|
28
28
|
const containerClass = computed(() =>
|
|
29
29
|
cn(
|
|
30
|
-
'relative flex w-full min-w-0 items-center gap-2 rounded-md border border-transparent px-2 py-1.5',
|
|
30
|
+
'relative flex w-full min-w-0 items-center gap-2 rounded-md border border-transparent px-2 py-1.5 transition-colors',
|
|
31
31
|
hasSubtitle.value ? 'h-[54px]' : 'h-8',
|
|
32
32
|
'group-data-[collapsible=icon]:size-8 group-data-[collapsible=icon]:justify-center group-data-[collapsible=icon]:gap-0 group-data-[collapsible=icon]:p-0',
|
|
33
|
-
|
|
34
|
-
|
|
33
|
+
// `:has(:focus-visible)` instead of `:focus-within` so the outer ring only appears for
|
|
34
|
+
// keyboard focus — clicking a descendant button gives it DOM focus but not :focus-visible,
|
|
35
|
+
// and we don't want to show a ring on mouse/touch interactions.
|
|
36
|
+
'has-[:focus-visible]:border-border-surface-focus-ring has-[:focus-visible]:ring-[3px] has-[:focus-visible]:ring-ring/50',
|
|
37
|
+
// Row hover/active tint — flat `default` hover-mix color.
|
|
38
|
+
'hover:bg-background-surface-primary-hover-default data-[active=true]:bg-background-surface-primary-hover-default',
|
|
39
|
+
SIDEBAR_ACTIVE_INDICATOR_CLASS,
|
|
35
40
|
),
|
|
36
41
|
);
|
|
37
42
|
|
|
38
43
|
const rootClass = computed(() =>
|
|
39
44
|
cn(
|
|
40
|
-
'!h-full !rounded-none !p-0 body-14-
|
|
45
|
+
'!h-full !rounded-none !p-0 body-14-regular text-content-on-surface-primary',
|
|
41
46
|
'!hover:bg-transparent !active:bg-transparent',
|
|
42
|
-
'data-[active=true]:!bg-transparent data-[active=true]:!text-content-on-surface-primary data-[active=true]
|
|
47
|
+
'data-[active=true]:!bg-transparent data-[active=true]:!text-content-on-surface-primary data-[active=true]:!font-normal',
|
|
43
48
|
'[&>[data-slot=start-icon]]:shrink-0 [&>[data-slot=start-icon]>svg]:size-4',
|
|
44
49
|
'[&>[data-slot=label]]:min-w-0 [&>[data-slot=label]]:truncate',
|
|
45
50
|
'focus-visible:ring-0',
|
|
@@ -63,16 +68,14 @@
|
|
|
63
68
|
|
|
64
69
|
function onEndIconClick(event: MouseEvent) {
|
|
65
70
|
event.stopPropagation();
|
|
71
|
+
// Public kebab-case event preserved for backwards compatibility.
|
|
72
|
+
// eslint-disable-next-line vue/custom-event-name-casing
|
|
66
73
|
emit('end-icon-click', event);
|
|
67
74
|
}
|
|
68
75
|
</script>
|
|
69
76
|
|
|
70
77
|
<template>
|
|
71
|
-
<div
|
|
72
|
-
v-overlay="{ variant: 'default', active: props.isActive, hover: true }"
|
|
73
|
-
:data-active="props.isActive"
|
|
74
|
-
:class="containerClass"
|
|
75
|
-
>
|
|
78
|
+
<div :data-active="props.isActive" :class="containerClass">
|
|
76
79
|
<SidebarMenuButton
|
|
77
80
|
v-bind="passthroughAttrs"
|
|
78
81
|
:tooltip="props.tooltip"
|
|
@@ -88,17 +91,14 @@
|
|
|
88
91
|
<div
|
|
89
92
|
:class="
|
|
90
93
|
cn(
|
|
91
|
-
'truncate
|
|
92
|
-
hasSubtitle ? '
|
|
94
|
+
'truncate text-content-on-surface-primary',
|
|
95
|
+
hasSubtitle ? 'body-14-bold' : 'body-14-regular',
|
|
93
96
|
)
|
|
94
97
|
"
|
|
95
98
|
>
|
|
96
99
|
<slot />
|
|
97
100
|
</div>
|
|
98
|
-
<div
|
|
99
|
-
v-if="$slots.subtitle"
|
|
100
|
-
class="truncate text-sm font-normal text-content-on-surface-muted"
|
|
101
|
-
>
|
|
101
|
+
<div v-if="$slots.subtitle" class="truncate body-14-regular text-content-on-surface-muted">
|
|
102
102
|
<slot name="subtitle" />
|
|
103
103
|
</div>
|
|
104
104
|
</div>
|
|
@@ -14,6 +14,12 @@ const meta: Meta<typeof UiSidebarMenuItem> = {
|
|
|
14
14
|
tags: ['autodocs'],
|
|
15
15
|
parameters: {
|
|
16
16
|
layout: 'padded',
|
|
17
|
+
docs: {
|
|
18
|
+
description: {
|
|
19
|
+
component:
|
|
20
|
+
'List item shell for the sidebar menu (`<li>`). Pass a `UiSidebarMenuButton` (or popover trigger) as the default slot. No pattern-specific props; `class` and other attributes forward to the primitive.',
|
|
21
|
+
},
|
|
22
|
+
},
|
|
17
23
|
},
|
|
18
24
|
};
|
|
19
25
|
|
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
<script setup lang="ts">
|
|
2
2
|
import { SidebarMenuItem } from '@/components/core/sidebar';
|
|
3
|
+
import type { UiSidebarMenuItemProps } from './types';
|
|
3
4
|
|
|
4
5
|
defineOptions({ name: 'UiSidebarMenuItem' });
|
|
6
|
+
|
|
7
|
+
defineProps<UiSidebarMenuItemProps>();
|
|
5
8
|
</script>
|
|
6
9
|
|
|
7
10
|
<template>
|
|
@@ -15,6 +15,26 @@ const meta: Meta<typeof UiSidebarMenuSubItem> = {
|
|
|
15
15
|
tags: ['autodocs'],
|
|
16
16
|
parameters: {
|
|
17
17
|
layout: 'padded',
|
|
18
|
+
docs: {
|
|
19
|
+
description: {
|
|
20
|
+
component:
|
|
21
|
+
'Sub-menu row with overlay hover/active styling aligned to `UiSidebarMenuButton`. Wrap label text in the default slot; supports `isActive` and reka-ui `Primitive` props (`as`, `asChild`).',
|
|
22
|
+
},
|
|
23
|
+
},
|
|
24
|
+
},
|
|
25
|
+
argTypes: {
|
|
26
|
+
isActive: {
|
|
27
|
+
control: 'boolean',
|
|
28
|
+
description: 'Shows active indicator and accent state.',
|
|
29
|
+
},
|
|
30
|
+
as: {
|
|
31
|
+
control: 'text',
|
|
32
|
+
description: 'Root element tag (reka-ui Primitive), default `button`.',
|
|
33
|
+
},
|
|
34
|
+
asChild: {
|
|
35
|
+
control: 'boolean',
|
|
36
|
+
description: 'Merge props onto the child element instead of rendering the default root.',
|
|
37
|
+
},
|
|
18
38
|
},
|
|
19
39
|
};
|
|
20
40
|
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
import { computed, useAttrs } from 'vue';
|
|
3
3
|
import { Primitive } from 'reka-ui';
|
|
4
4
|
import { SidebarMenuSubItem as UiSidebarMenuItem } from '@/components/core/sidebar';
|
|
5
|
-
import { vOverlay } from '@/directives';
|
|
6
5
|
import { cn } from '@/lib/utils';
|
|
6
|
+
import { SIDEBAR_ACTIVE_INDICATOR_CLASS } from './activeIndicator';
|
|
7
7
|
import type { UiSidebarMenuSubItemProps } from './types';
|
|
8
8
|
|
|
9
9
|
defineOptions({
|
|
@@ -20,19 +20,21 @@
|
|
|
20
20
|
|
|
21
21
|
const containerClass = computed(() =>
|
|
22
22
|
cn(
|
|
23
|
-
|
|
24
|
-
'
|
|
25
|
-
'
|
|
23
|
+
// Same hover/active tint as UiSidebarMenuButton so sub-items visually match primary rows.
|
|
24
|
+
'relative flex h-8 w-full min-w-0 items-center gap-2 rounded-md border border-transparent px-2 py-1.5 transition-colors',
|
|
25
|
+
'has-[:focus-visible]:border-border-surface-focus-ring has-[:focus-visible]:ring-[3px] has-[:focus-visible]:ring-ring/50',
|
|
26
|
+
'hover:bg-background-surface-primary-hover-default data-[active=true]:bg-background-surface-primary-hover-default',
|
|
27
|
+
SIDEBAR_ACTIVE_INDICATOR_CLASS,
|
|
26
28
|
),
|
|
27
29
|
);
|
|
28
30
|
|
|
29
31
|
const itemClass = computed(() =>
|
|
30
32
|
cn(
|
|
31
33
|
'!h-full min-w-0 flex-1 rounded-none bg-transparent px-0 py-0 text-left outline-hidden transition-colors',
|
|
32
|
-
'body-14-
|
|
34
|
+
'body-14-regular text-content-on-surface-primary',
|
|
33
35
|
'!hover:bg-transparent !active:bg-transparent',
|
|
34
36
|
'focus-visible:ring-0',
|
|
35
|
-
'data-[active=true]:!bg-transparent data-[active=true]:!text-content-on-surface-primary data-[active=true]
|
|
37
|
+
'data-[active=true]:!bg-transparent data-[active=true]:!text-content-on-surface-primary data-[active=true]:!font-normal',
|
|
36
38
|
'[&>[data-slot=label]]:min-w-0 [&>[data-slot=label]]:truncate',
|
|
37
39
|
attrs.class as string | undefined,
|
|
38
40
|
),
|
|
@@ -46,11 +48,7 @@
|
|
|
46
48
|
|
|
47
49
|
<template>
|
|
48
50
|
<UiSidebarMenuItem>
|
|
49
|
-
<div
|
|
50
|
-
v-overlay="{ variant: 'subtle', active: props.isActive, hover: true }"
|
|
51
|
-
:data-active="props.isActive"
|
|
52
|
-
:class="containerClass"
|
|
53
|
-
>
|
|
51
|
+
<div :data-active="props.isActive" :class="containerClass">
|
|
54
52
|
<Primitive
|
|
55
53
|
v-bind="passthroughAttrs"
|
|
56
54
|
:as="props.as"
|
|
@@ -9,6 +9,22 @@ const meta: Meta<typeof UiSidebarPopoverMenu> = {
|
|
|
9
9
|
tags: ['autodocs'],
|
|
10
10
|
parameters: {
|
|
11
11
|
layout: 'padded',
|
|
12
|
+
docs: {
|
|
13
|
+
description: {
|
|
14
|
+
component:
|
|
15
|
+
'Floating menu panel: optional **`label`** header, default slot for `UiSidebarPopoverMenuItem` rows, and optional **`footer`** slot. **`showFooterSeparator`** draws a top border above the footer when true.',
|
|
16
|
+
},
|
|
17
|
+
},
|
|
18
|
+
},
|
|
19
|
+
argTypes: {
|
|
20
|
+
label: {
|
|
21
|
+
control: 'text',
|
|
22
|
+
description: 'Muted section title above the item list.',
|
|
23
|
+
},
|
|
24
|
+
showFooterSeparator: {
|
|
25
|
+
control: 'boolean',
|
|
26
|
+
description: 'When true, separator line between main items and footer slot.',
|
|
27
|
+
},
|
|
12
28
|
},
|
|
13
29
|
};
|
|
14
30
|
|
|
@@ -29,7 +45,7 @@ export const Default: Story = {
|
|
|
29
45
|
<div class="w-[22rem] rounded-lg border border-border-surface-default bg-background-surface-floating shadow-xs">
|
|
30
46
|
<UiSidebarPopoverMenu label="Teams">
|
|
31
47
|
<div class="space-y-1">
|
|
32
|
-
<UiSidebarPopoverMenuItem label="Acme Inc" shortcut="⌘1">
|
|
48
|
+
<UiSidebarPopoverMenuItem label="Acme Inc" is-active shortcut="⌘1">
|
|
33
49
|
<template #icon>
|
|
34
50
|
<Command :size="16" class="size-4" />
|
|
35
51
|
</template>
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
|
|
18
18
|
const menuClass = computed(() =>
|
|
19
19
|
cn(
|
|
20
|
-
'bg-background-surface-
|
|
20
|
+
'bg-background-surface-secondary rounded-md text-content-on-surface-primary p-1 shadow-md',
|
|
21
21
|
attrs.class as string | undefined,
|
|
22
22
|
),
|
|
23
23
|
);
|
|
@@ -30,10 +30,7 @@
|
|
|
30
30
|
|
|
31
31
|
<template>
|
|
32
32
|
<div v-bind="passthroughAttrs" data-slot="sidebar-popover-menu" :class="menuClass">
|
|
33
|
-
<div
|
|
34
|
-
v-if="props.label"
|
|
35
|
-
class="px-2 py-1.5 body-14-normal font-normal text-content-on-surface-muted"
|
|
36
|
-
>
|
|
33
|
+
<div v-if="props.label" class="px-2 py-1.5 body-14-regular text-content-on-surface-muted">
|
|
37
34
|
{{ props.label }}
|
|
38
35
|
</div>
|
|
39
36
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { Meta, StoryObj } from '@storybook/vue3-vite';
|
|
2
|
-
import { Command } from 'lucide-vue-next';
|
|
2
|
+
import { ChevronRight, Command } from 'lucide-vue-next';
|
|
3
3
|
import UiSidebarPopoverMenuItem from './UiSidebarPopoverMenuItem.vue';
|
|
4
4
|
|
|
5
5
|
const meta: Meta<typeof UiSidebarPopoverMenuItem> = {
|
|
@@ -8,6 +8,34 @@ const meta: Meta<typeof UiSidebarPopoverMenuItem> = {
|
|
|
8
8
|
tags: ['autodocs'],
|
|
9
9
|
parameters: {
|
|
10
10
|
layout: 'padded',
|
|
11
|
+
docs: {
|
|
12
|
+
description: {
|
|
13
|
+
component:
|
|
14
|
+
'Row inside `UiSidebarPopoverMenu`: **`icon`** slot (leading), **`label`**, optional **`shortcut`** text, and **`end-icon`** slot. Active state mirrors sidebar token styling.',
|
|
15
|
+
},
|
|
16
|
+
},
|
|
17
|
+
},
|
|
18
|
+
argTypes: {
|
|
19
|
+
label: {
|
|
20
|
+
control: 'text',
|
|
21
|
+
description: 'Primary text for the row.',
|
|
22
|
+
},
|
|
23
|
+
shortcut: {
|
|
24
|
+
control: 'text',
|
|
25
|
+
description: 'Hint or keyboard shortcut shown before the end-icon region.',
|
|
26
|
+
},
|
|
27
|
+
isActive: {
|
|
28
|
+
control: 'boolean',
|
|
29
|
+
description: 'Highlights the row as selected.',
|
|
30
|
+
},
|
|
31
|
+
as: {
|
|
32
|
+
control: 'text',
|
|
33
|
+
description: 'Root element for the inner control (default `button`).',
|
|
34
|
+
},
|
|
35
|
+
asChild: {
|
|
36
|
+
control: 'boolean',
|
|
37
|
+
description: 'Merge props onto child instead of rendering default root.',
|
|
38
|
+
},
|
|
11
39
|
},
|
|
12
40
|
};
|
|
13
41
|
|
|
@@ -18,6 +46,7 @@ type Story = StoryObj<typeof UiSidebarPopoverMenuItem>;
|
|
|
18
46
|
export const Default: Story = {
|
|
19
47
|
render: () => ({
|
|
20
48
|
components: {
|
|
49
|
+
ChevronRight,
|
|
21
50
|
Command,
|
|
22
51
|
UiSidebarPopoverMenuItem,
|
|
23
52
|
},
|
|
@@ -28,6 +57,9 @@ export const Default: Story = {
|
|
|
28
57
|
<template #icon>
|
|
29
58
|
<Command :size="16" class="size-4" />
|
|
30
59
|
</template>
|
|
60
|
+
<template #end-icon>
|
|
61
|
+
<ChevronRight :size="16" class="size-4" aria-hidden="true" />
|
|
62
|
+
</template>
|
|
31
63
|
</UiSidebarPopoverMenuItem>
|
|
32
64
|
|
|
33
65
|
<UiSidebarPopoverMenuItem label="Beta Labs" shortcut="⌘2" is-active>
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
<script setup lang="ts">
|
|
2
2
|
import { computed, useAttrs } from 'vue';
|
|
3
3
|
import { Primitive } from 'reka-ui';
|
|
4
|
-
import { vOverlay } from '@/directives';
|
|
5
4
|
import { cn } from '@/lib/utils';
|
|
5
|
+
import { SIDEBAR_ACTIVE_INDICATOR_CLASS } from './activeIndicator';
|
|
6
6
|
import type { UiSidebarPopoverMenuItemProps } from './types';
|
|
7
7
|
|
|
8
8
|
defineOptions({
|
|
@@ -20,16 +20,21 @@
|
|
|
20
20
|
|
|
21
21
|
const containerClass = computed(() =>
|
|
22
22
|
cn(
|
|
23
|
-
'relative flex h-10 w-full min-w-0 items-center rounded-md border border-transparent px-2 py-2',
|
|
24
|
-
'
|
|
25
|
-
|
|
23
|
+
'relative flex h-10 w-full min-w-0 cursor-pointer select-none items-center rounded-md border border-transparent px-2 py-2',
|
|
24
|
+
'transition-colors',
|
|
25
|
+
// Hover/active tint relative to the `secondary` surface the popover menu sits on.
|
|
26
|
+
'hover:bg-background-surface-secondary-hover-default',
|
|
27
|
+
'active:bg-background-surface-secondary-hover-default',
|
|
28
|
+
'data-[active=true]:bg-background-surface-secondary-hover-default',
|
|
29
|
+
'has-[:focus-visible]:border-border-surface-focus-ring has-[:focus-visible]:ring-[3px] has-[:focus-visible]:ring-ring/50',
|
|
30
|
+
SIDEBAR_ACTIVE_INDICATOR_CLASS,
|
|
26
31
|
),
|
|
27
32
|
);
|
|
28
33
|
|
|
29
34
|
const itemClass = computed(() =>
|
|
30
35
|
cn(
|
|
31
36
|
'group/sidebar-popover-menu-item flex h-full w-full min-w-0 items-center gap-3 text-left outline-hidden transition-colors',
|
|
32
|
-
'body-14-
|
|
37
|
+
'body-14-regular text-content-on-surface-primary',
|
|
33
38
|
'!hover:bg-transparent !active:bg-transparent',
|
|
34
39
|
'focus-visible:ring-0',
|
|
35
40
|
'data-[active=true]:text-content-on-surface-primary',
|
|
@@ -44,36 +49,36 @@
|
|
|
44
49
|
</script>
|
|
45
50
|
|
|
46
51
|
<template>
|
|
47
|
-
<div
|
|
48
|
-
v-overlay="{ variant: 'default', active: props.isActive, hover: true }"
|
|
49
|
-
:data-active="props.isActive"
|
|
50
|
-
:class="containerClass"
|
|
51
|
-
>
|
|
52
|
+
<div :data-active="props.isActive" :class="containerClass">
|
|
52
53
|
<Primitive
|
|
53
54
|
v-bind="passthroughAttrs"
|
|
54
55
|
:as="props.as"
|
|
55
56
|
:as-child="props.asChild"
|
|
56
57
|
:data-active="props.isActive"
|
|
58
|
+
:aria-current="props.isActive ? 'true' : undefined"
|
|
57
59
|
:class="itemClass"
|
|
58
60
|
>
|
|
59
61
|
<div
|
|
60
|
-
class="flex size-
|
|
62
|
+
class="flex size-6 shrink-0 items-center justify-center rounded-md border border-border-surface-default text-content-on-surface-primary [&_svg]:!size-4"
|
|
61
63
|
>
|
|
62
64
|
<slot name="icon" />
|
|
63
65
|
</div>
|
|
64
66
|
|
|
65
|
-
<span
|
|
66
|
-
class="min-w-0 flex-1 truncate body-14-normal font-normal text-content-on-surface-primary"
|
|
67
|
-
>
|
|
67
|
+
<span class="min-w-0 flex-1 truncate body-14-regular text-content-on-surface-primary">
|
|
68
68
|
{{ props.label }}
|
|
69
69
|
</span>
|
|
70
70
|
|
|
71
|
-
<
|
|
72
|
-
v-if="props.shortcut"
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
71
|
+
<div v-if="props.shortcut || $slots['end-icon']" class="flex shrink-0 items-center gap-2">
|
|
72
|
+
<span v-if="props.shortcut" class="body-14-regular text-content-on-surface-muted">
|
|
73
|
+
{{ props.shortcut }}
|
|
74
|
+
</span>
|
|
75
|
+
<span
|
|
76
|
+
v-if="$slots['end-icon']"
|
|
77
|
+
class="flex shrink-0 items-center justify-center text-content-on-surface-muted [&_svg]:!size-4"
|
|
78
|
+
>
|
|
79
|
+
<slot name="end-icon" />
|
|
80
|
+
</span>
|
|
81
|
+
</div>
|
|
77
82
|
</Primitive>
|
|
78
83
|
</div>
|
|
79
84
|
</template>
|
|
@@ -14,6 +14,26 @@ const meta: Meta<typeof UiSidebarPopoverTrigger> = {
|
|
|
14
14
|
tags: ['autodocs'],
|
|
15
15
|
parameters: {
|
|
16
16
|
layout: 'padded',
|
|
17
|
+
docs: {
|
|
18
|
+
description: {
|
|
19
|
+
component:
|
|
20
|
+
'Sidebar-styled control used inside `UiPopover` / `UiSidebarPopover` as the trigger: **`label`**, optional **`tooltip`**, **`icon`** slot, and **`end-icon`** slot (e.g. chevron). Pairs with `SidebarMenuButton` for collapsed tooltips.',
|
|
21
|
+
},
|
|
22
|
+
},
|
|
23
|
+
},
|
|
24
|
+
argTypes: {
|
|
25
|
+
label: {
|
|
26
|
+
control: 'text',
|
|
27
|
+
description: 'Visible title next to the icon.',
|
|
28
|
+
},
|
|
29
|
+
tooltip: {
|
|
30
|
+
control: 'text',
|
|
31
|
+
description: 'Tooltip string forwarded to the menu button when collapsed.',
|
|
32
|
+
},
|
|
33
|
+
isActive: {
|
|
34
|
+
control: 'boolean',
|
|
35
|
+
description: 'Active rail/background for the trigger row.',
|
|
36
|
+
},
|
|
17
37
|
},
|
|
18
38
|
};
|
|
19
39
|
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
import { computed, useAttrs } from 'vue';
|
|
3
3
|
import { ChevronDown, PanelLeft } from 'lucide-vue-next';
|
|
4
4
|
import { SidebarMenuButton } from '@/components/core/sidebar';
|
|
5
|
-
import { vOverlay } from '@/directives';
|
|
6
5
|
import { cn } from '@/lib/utils';
|
|
6
|
+
import { SIDEBAR_ACTIVE_INDICATOR_CLASS } from './activeIndicator';
|
|
7
7
|
import type { UiSidebarPopoverTriggerProps } from './types';
|
|
8
8
|
|
|
9
9
|
defineOptions({
|
|
@@ -20,16 +20,18 @@
|
|
|
20
20
|
|
|
21
21
|
const containerClass = computed(() =>
|
|
22
22
|
cn(
|
|
23
|
-
'relative flex w-full min-w-0 items-center gap-2 rounded-md border border-transparent',
|
|
23
|
+
'relative flex w-full min-w-0 items-center gap-2 rounded-md border border-transparent transition-colors',
|
|
24
24
|
'group-data-[collapsible=icon]:size-8 group-data-[collapsible=icon]:justify-center group-data-[collapsible=icon]:gap-0',
|
|
25
|
-
'focus-
|
|
26
|
-
|
|
25
|
+
'has-[:focus-visible]:border-border-surface-focus-ring has-[:focus-visible]:ring-[3px] has-[:focus-visible]:ring-ring/50',
|
|
26
|
+
// Row hover/active tint — flat `default` hover-mix color.
|
|
27
|
+
'hover:bg-background-surface-primary-hover-default data-[active=true]:bg-background-surface-primary-hover-default',
|
|
28
|
+
SIDEBAR_ACTIVE_INDICATOR_CLASS,
|
|
27
29
|
),
|
|
28
30
|
);
|
|
29
31
|
|
|
30
32
|
const rootClass = computed(() =>
|
|
31
33
|
cn(
|
|
32
|
-
'!rounded-md !px-2 !py-2 body-14-
|
|
34
|
+
'!rounded-md !px-2 !py-2 body-14-regular text-content-on-surface-primary',
|
|
33
35
|
'!hover:bg-transparent !active:bg-transparent',
|
|
34
36
|
'data-[active=true]:!bg-transparent data-[active=true]:!text-content-on-surface-primary data-[active=true]:font-normal',
|
|
35
37
|
'[&>[data-slot=start-icon]]:shrink-0 [&>[data-slot=start-icon]>svg]:size-4',
|
|
@@ -46,11 +48,7 @@
|
|
|
46
48
|
</script>
|
|
47
49
|
|
|
48
50
|
<template>
|
|
49
|
-
<div
|
|
50
|
-
v-overlay="{ variant: 'default', active: props.isActive, hover: true }"
|
|
51
|
-
:data-active="props.isActive"
|
|
52
|
-
:class="containerClass"
|
|
53
|
-
>
|
|
51
|
+
<div :data-active="props.isActive" :class="containerClass">
|
|
54
52
|
<SidebarMenuButton
|
|
55
53
|
v-bind="passthroughAttrs"
|
|
56
54
|
:tooltip="props.tooltip"
|
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
<script setup lang="ts">
|
|
2
2
|
import { SidebarProvider } from '@/components/core/sidebar';
|
|
3
|
+
import type { UiSidebarProviderProps } from './types';
|
|
3
4
|
|
|
4
5
|
defineOptions({ name: 'UiSidebarProvider' });
|
|
6
|
+
|
|
7
|
+
defineProps<UiSidebarProviderProps>();
|
|
5
8
|
</script>
|
|
6
9
|
|
|
7
10
|
<template>
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
import type { Meta, StoryObj } from '@storybook/vue3-vite';
|
|
2
|
+
import UiSidebar from './UiSidebar.vue';
|
|
3
|
+
import UiSidebarContent from './UiSidebarContent.vue';
|
|
4
|
+
import UiSidebarGroup from './UiSidebarGroup.vue';
|
|
5
|
+
import UiSidebarGroupContent from './UiSidebarGroupContent.vue';
|
|
6
|
+
import UiSidebarGroupLabel from './UiSidebarGroupLabel.vue';
|
|
7
|
+
import UiSidebarHeader from './UiSidebarHeader.vue';
|
|
8
|
+
import UiSidebarMenuSubItem from './UiSidebarMenuSubItem.vue';
|
|
9
|
+
import UiSidebarProvider from './UiSidebarProvider.vue';
|
|
10
|
+
import UiSidebarSub from './UiSidebarSub.vue';
|
|
11
|
+
|
|
12
|
+
const meta: Meta<typeof UiSidebarSub> = {
|
|
13
|
+
title: 'Patterns/UiSidebar/UiSidebarSub',
|
|
14
|
+
component: UiSidebarSub,
|
|
15
|
+
tags: ['autodocs'],
|
|
16
|
+
args: {
|
|
17
|
+
variant: 'default',
|
|
18
|
+
},
|
|
19
|
+
parameters: {
|
|
20
|
+
layout: 'padded',
|
|
21
|
+
docs: {
|
|
22
|
+
description: {
|
|
23
|
+
component:
|
|
24
|
+
'Subgroup container for `UiSidebarMenuSubItem` rows. **`border`** adds a left rail and outer margins; **`default`** uses horizontal padding only; **`indent`** adds extra horizontal inset (`calc(1.5rem + 6px)`). Place inside `UiSidebarGroupContent` (or equivalent) within a sidebar tree.',
|
|
25
|
+
},
|
|
26
|
+
},
|
|
27
|
+
},
|
|
28
|
+
argTypes: {
|
|
29
|
+
variant: {
|
|
30
|
+
control: 'select',
|
|
31
|
+
options: ['border', 'default', 'indent'],
|
|
32
|
+
description:
|
|
33
|
+
'`border` — left rule + rail margins; `default` — `px-6`; `indent` — extra 6px per side beyond default.',
|
|
34
|
+
},
|
|
35
|
+
},
|
|
36
|
+
};
|
|
37
|
+
|
|
38
|
+
export default meta;
|
|
39
|
+
|
|
40
|
+
type Story = StoryObj<typeof UiSidebarSub>;
|
|
41
|
+
|
|
42
|
+
export const Variants: Story = {
|
|
43
|
+
render: () => ({
|
|
44
|
+
components: {
|
|
45
|
+
UiSidebar,
|
|
46
|
+
UiSidebarContent,
|
|
47
|
+
UiSidebarGroup,
|
|
48
|
+
UiSidebarGroupContent,
|
|
49
|
+
UiSidebarGroupLabel,
|
|
50
|
+
UiSidebarHeader,
|
|
51
|
+
UiSidebarMenuSubItem,
|
|
52
|
+
UiSidebarProvider,
|
|
53
|
+
UiSidebarSub,
|
|
54
|
+
},
|
|
55
|
+
template: `
|
|
56
|
+
<div class="bg-background-surface-primary p-4">
|
|
57
|
+
<UiSidebarProvider :default-open="true">
|
|
58
|
+
<UiSidebar collapsible="icon" class="w-80">
|
|
59
|
+
<UiSidebarHeader tooltip="Toggle sidebar">Preview</UiSidebarHeader>
|
|
60
|
+
<UiSidebarContent class="p-2">
|
|
61
|
+
<UiSidebarGroup :default-open="true">
|
|
62
|
+
<UiSidebarGroupLabel :show-action="false" :show-collapse="false">
|
|
63
|
+
variant="border"
|
|
64
|
+
</UiSidebarGroupLabel>
|
|
65
|
+
<UiSidebarGroupContent>
|
|
66
|
+
<UiSidebarSub variant="border">
|
|
67
|
+
<UiSidebarMenuSubItem>Alpha</UiSidebarMenuSubItem>
|
|
68
|
+
<UiSidebarMenuSubItem is-active>Beta</UiSidebarMenuSubItem>
|
|
69
|
+
</UiSidebarSub>
|
|
70
|
+
</UiSidebarGroupContent>
|
|
71
|
+
</UiSidebarGroup>
|
|
72
|
+
<UiSidebarGroup :default-open="true">
|
|
73
|
+
<UiSidebarGroupLabel :show-action="false" :show-collapse="false">
|
|
74
|
+
variant="default"
|
|
75
|
+
</UiSidebarGroupLabel>
|
|
76
|
+
<UiSidebarGroupContent>
|
|
77
|
+
<UiSidebarSub variant="default">
|
|
78
|
+
<UiSidebarMenuSubItem>Alpha</UiSidebarMenuSubItem>
|
|
79
|
+
<UiSidebarMenuSubItem>Beta</UiSidebarMenuSubItem>
|
|
80
|
+
</UiSidebarSub>
|
|
81
|
+
</UiSidebarGroupContent>
|
|
82
|
+
</UiSidebarGroup>
|
|
83
|
+
<UiSidebarGroup :default-open="true">
|
|
84
|
+
<UiSidebarGroupLabel :show-action="false" :show-collapse="false">
|
|
85
|
+
variant="indent"
|
|
86
|
+
</UiSidebarGroupLabel>
|
|
87
|
+
<UiSidebarGroupContent>
|
|
88
|
+
<UiSidebarSub variant="indent">
|
|
89
|
+
<UiSidebarMenuSubItem>Alpha</UiSidebarMenuSubItem>
|
|
90
|
+
<UiSidebarMenuSubItem>Beta</UiSidebarMenuSubItem>
|
|
91
|
+
</UiSidebarSub>
|
|
92
|
+
</UiSidebarGroupContent>
|
|
93
|
+
</UiSidebarGroup>
|
|
94
|
+
</UiSidebarContent>
|
|
95
|
+
</UiSidebar>
|
|
96
|
+
</UiSidebarProvider>
|
|
97
|
+
</div>
|
|
98
|
+
`,
|
|
99
|
+
}),
|
|
100
|
+
};
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
import { computed, useAttrs } from 'vue';
|
|
3
|
+
import { SidebarMenuSub } from '@/components/core/sidebar';
|
|
4
|
+
import { cn } from '@/lib/utils';
|
|
5
|
+
import type { UiSidebarSubProps } from './types';
|
|
6
|
+
|
|
7
|
+
defineOptions({
|
|
8
|
+
name: 'UiSidebarSub',
|
|
9
|
+
inheritAttrs: false,
|
|
10
|
+
});
|
|
11
|
+
|
|
12
|
+
const props = withDefaults(defineProps<UiSidebarSubProps>(), {
|
|
13
|
+
variant: 'default',
|
|
14
|
+
});
|
|
15
|
+
|
|
16
|
+
const attrs = useAttrs();
|
|
17
|
+
|
|
18
|
+
const listReset = '!mx-0 !w-full !min-w-0 !translate-x-0 !border-l-0';
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
* Vertical rail: `border-border-input-default`, horizontal margin on the rail via spacing scale; list has no `pl-*`.
|
|
22
|
+
*/
|
|
23
|
+
const borderRailClass =
|
|
24
|
+
'ml-4 mr-2 shrink-0 self-stretch w-0 border-l border-solid border-border-input-default';
|
|
25
|
+
|
|
26
|
+
const borderShellClass = computed(() =>
|
|
27
|
+
cn(
|
|
28
|
+
'ui-sidebar-sub group-data-[collapsible=icon]:hidden flex min-w-0 w-full items-stretch',
|
|
29
|
+
attrs.class as string | undefined,
|
|
30
|
+
),
|
|
31
|
+
);
|
|
32
|
+
|
|
33
|
+
const borderListClass = computed(() =>
|
|
34
|
+
cn(listReset, 'flex flex-1 min-w-0 flex-col gap-1 pl-0 py-2 pr-6'),
|
|
35
|
+
);
|
|
36
|
+
|
|
37
|
+
const rootClass = computed(() =>
|
|
38
|
+
cn(
|
|
39
|
+
'ui-sidebar-sub',
|
|
40
|
+
listReset,
|
|
41
|
+
'flex flex-col gap-1',
|
|
42
|
+
// Default: `px-6`; indent adds 6px per side (same as former `calc(1.5rem+6px)`).
|
|
43
|
+
props.variant === 'default' && 'px-6 !py-0',
|
|
44
|
+
props.variant === 'indent' && 'px-[calc(1.5rem+6px)] !py-0',
|
|
45
|
+
attrs.class as string | undefined,
|
|
46
|
+
),
|
|
47
|
+
);
|
|
48
|
+
|
|
49
|
+
const passthroughAttrs = computed(() => {
|
|
50
|
+
const { class: _class, ...rest } = attrs as Record<string, unknown>;
|
|
51
|
+
return rest;
|
|
52
|
+
});
|
|
53
|
+
</script>
|
|
54
|
+
|
|
55
|
+
<template>
|
|
56
|
+
<div v-if="props.variant === 'border'" :class="borderShellClass">
|
|
57
|
+
<div aria-hidden="true" :class="borderRailClass" />
|
|
58
|
+
<SidebarMenuSub v-bind="passthroughAttrs" :class="borderListClass">
|
|
59
|
+
<slot />
|
|
60
|
+
</SidebarMenuSub>
|
|
61
|
+
</div>
|
|
62
|
+
<SidebarMenuSub v-else v-bind="passthroughAttrs" :class="rootClass">
|
|
63
|
+
<slot />
|
|
64
|
+
</SidebarMenuSub>
|
|
65
|
+
</template>
|