@aleph-alpha/ui-library 1.22.0 → 1.24.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 -8293
- package/dist/system/lib/utils.d.ts +2 -0
- package/dist/system/lib.js +20378 -19325
- 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 +11 -2
- 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 -18
- 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/SidebarContent.vue +11 -3
- package/src/components/core/sidebar/SidebarFooter.vue +10 -2
- package/src/components/core/sidebar/SidebarGroup.vue +10 -2
- package/src/components/core/sidebar/SidebarGroupLabel.vue +2 -2
- package/src/components/core/sidebar/SidebarHeader.vue +10 -2
- package/src/components/core/sidebar/SidebarMenu.vue +12 -2
- package/src/components/core/sidebar/SidebarMenuButton.vue +2 -2
- package/src/components/core/sidebar/SidebarMenuSub.vue +1 -1
- package/src/components/core/sidebar/SidebarSeparator.vue +10 -2
- package/src/components/core/sidebar/SidebarTrigger.vue +2 -2
- package/src/components/core/sidebar/index.ts +1 -1
- package/src/components/core/sidebar/utils.ts +11 -2
- package/src/components/core/stepper/StepperTitle.vue +1 -3
- package/src/components/core/table/TableCaption.vue +4 -1
- package/src/components/index.ts +0 -1
- package/src/directives/index.ts +12 -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 +128 -0
- 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 +582 -0
- package/src/{components → patterns}/UiSidebar/UiSidebar.vue +9 -3
- package/src/patterns/UiSidebar/UiSidebarChatHistory.stories.ts +92 -0
- package/src/patterns/UiSidebar/UiSidebarChatHistory.vue +35 -0
- package/src/patterns/UiSidebar/UiSidebarChatHistoryItem.stories.ts +201 -0
- package/src/patterns/UiSidebar/UiSidebarChatHistoryItem.vue +240 -0
- package/src/patterns/UiSidebar/UiSidebarContent.vue +14 -0
- package/src/patterns/UiSidebar/UiSidebarFooter.vue +14 -0
- package/src/patterns/UiSidebar/UiSidebarGroup.stories.ts +107 -0
- package/src/patterns/UiSidebar/UiSidebarGroup.vue +42 -0
- package/src/patterns/UiSidebar/UiSidebarGroupContent.vue +57 -0
- package/src/patterns/UiSidebar/UiSidebarGroupLabel.stories.ts +203 -0
- package/src/patterns/UiSidebar/UiSidebarGroupLabel.vue +156 -0
- package/src/patterns/UiSidebar/UiSidebarHeader.vue +48 -0
- package/src/patterns/UiSidebar/UiSidebarInset.vue +14 -0
- package/src/patterns/UiSidebar/UiSidebarMenu.vue +14 -0
- package/src/patterns/UiSidebar/UiSidebarMenuButton.stories.ts +240 -0
- package/src/patterns/UiSidebar/UiSidebarMenuButton.vue +121 -0
- package/src/patterns/UiSidebar/UiSidebarMenuItem.stories.ts +73 -0
- package/src/patterns/UiSidebar/UiSidebarMenuItem.vue +14 -0
- package/src/patterns/UiSidebar/UiSidebarMenuSub.vue +38 -0
- package/src/patterns/UiSidebar/UiSidebarMenuSubItem.stories.ts +86 -0
- package/src/patterns/UiSidebar/UiSidebarMenuSubItem.vue +65 -0
- package/src/patterns/UiSidebar/UiSidebarPopover.vue +43 -0
- package/src/patterns/UiSidebar/UiSidebarPopoverMenu.stories.ts +72 -0
- package/src/patterns/UiSidebar/UiSidebarPopoverMenu.vue +53 -0
- package/src/patterns/UiSidebar/UiSidebarPopoverMenuItem.stories.ts +74 -0
- package/src/patterns/UiSidebar/UiSidebarPopoverMenuItem.vue +84 -0
- package/src/patterns/UiSidebar/UiSidebarPopoverTrigger.stories.ts +81 -0
- package/src/patterns/UiSidebar/UiSidebarPopoverTrigger.vue +79 -0
- package/src/patterns/UiSidebar/UiSidebarProvider.vue +14 -0
- package/src/patterns/UiSidebar/UiSidebarRail.vue +12 -0
- package/src/patterns/UiSidebar/UiSidebarSub.stories.ts +100 -0
- package/src/patterns/UiSidebar/UiSidebarSub.vue +65 -0
- package/src/patterns/UiSidebar/UiSidebarTrigger.vue +35 -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 +14 -0
- package/src/patterns/UiSidebar/index.ts +53 -0
- package/src/patterns/UiSidebar/types.ts +468 -0
- package/src/patterns/index.ts +1 -0
- 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
- package/src/components/UiSidebar/UiSidebar.stories.ts +0 -1188
- package/src/components/UiSidebar/UiSidebarGroupAction.vue +0 -18
- package/src/components/UiSidebar/UiSidebarGroupLabel.vue +0 -18
- package/src/components/UiSidebar/UiSidebarHeaderTrigger.vue +0 -53
- package/src/components/UiSidebar/UiSidebarInput.vue +0 -14
- package/src/components/UiSidebar/UiSidebarMenuAction.vue +0 -19
- package/src/components/UiSidebar/UiSidebarMenuButton.vue +0 -27
- package/src/components/UiSidebar/UiSidebarMenuSkeleton.vue +0 -16
- package/src/components/UiSidebar/UiSidebarMenuSubButton.vue +0 -24
- package/src/components/UiSidebar/UiSidebarProvider.vue +0 -16
- package/src/components/UiSidebar/UiSidebarSeparator.vue +0 -13
- package/src/components/UiSidebar/__tests__/UiSidebar.test.ts +0 -221
- package/src/components/UiSidebar/index.ts +0 -34
- package/src/components/UiSidebar/types.ts +0 -165
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
import type { Meta, StoryObj } from '@storybook/vue3-vite';
|
|
2
|
+
import { ref } from 'vue';
|
|
3
|
+
import UiSidebar from './UiSidebar.vue';
|
|
4
|
+
import UiSidebarChatHistory from './UiSidebarChatHistory.vue';
|
|
5
|
+
import UiSidebarChatHistoryItem from './UiSidebarChatHistoryItem.vue';
|
|
6
|
+
import UiSidebarContent from './UiSidebarContent.vue';
|
|
7
|
+
import UiSidebarHeader from './UiSidebarHeader.vue';
|
|
8
|
+
import UiSidebarProvider from './UiSidebarProvider.vue';
|
|
9
|
+
|
|
10
|
+
const meta: Meta<typeof UiSidebarChatHistory> = {
|
|
11
|
+
title: 'Patterns/UiSidebar/UiSidebarChatHistory',
|
|
12
|
+
component: UiSidebarChatHistory,
|
|
13
|
+
tags: ['autodocs'],
|
|
14
|
+
parameters: {
|
|
15
|
+
layout: 'padded',
|
|
16
|
+
docs: {
|
|
17
|
+
description: {
|
|
18
|
+
component:
|
|
19
|
+
'Vertical stack for chat history rows (`UiSidebarChatHistoryItem`). Toggle **`withGap`** to add spacing between items; hidden when the sidebar is in icon-collapsed mode (`group-data-[collapsible=icon]`).',
|
|
20
|
+
},
|
|
21
|
+
},
|
|
22
|
+
},
|
|
23
|
+
argTypes: {
|
|
24
|
+
withGap: {
|
|
25
|
+
control: 'boolean',
|
|
26
|
+
description: 'When true, applies vertical gap between child items.',
|
|
27
|
+
},
|
|
28
|
+
},
|
|
29
|
+
};
|
|
30
|
+
|
|
31
|
+
export default meta;
|
|
32
|
+
|
|
33
|
+
type Story = StoryObj<typeof UiSidebarChatHistory>;
|
|
34
|
+
|
|
35
|
+
export const Default: Story = {
|
|
36
|
+
render: () => ({
|
|
37
|
+
components: {
|
|
38
|
+
UiSidebar,
|
|
39
|
+
UiSidebarChatHistory,
|
|
40
|
+
UiSidebarChatHistoryItem,
|
|
41
|
+
UiSidebarContent,
|
|
42
|
+
UiSidebarHeader,
|
|
43
|
+
UiSidebarProvider,
|
|
44
|
+
},
|
|
45
|
+
setup() {
|
|
46
|
+
const actionCount = ref(0);
|
|
47
|
+
const items = [
|
|
48
|
+
{ title: 'Project Proposal Overview', metaStart: 'Today', metaEnd: 'Innsbruck' },
|
|
49
|
+
{
|
|
50
|
+
title: 'Project Proposal Overview',
|
|
51
|
+
metaStart: 'Today',
|
|
52
|
+
metaEnd: 'Innsbruck',
|
|
53
|
+
isActive: true,
|
|
54
|
+
},
|
|
55
|
+
{ title: 'Project Proposal Overview', metaStart: 'Today', metaEnd: 'Innsbruck' },
|
|
56
|
+
{ title: 'Project Proposal Overview', metaStart: 'Today', metaEnd: 'Innsbruck' },
|
|
57
|
+
];
|
|
58
|
+
|
|
59
|
+
function handleActionClick() {
|
|
60
|
+
actionCount.value += 1;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
return { actionCount, handleActionClick, items };
|
|
64
|
+
},
|
|
65
|
+
template: `
|
|
66
|
+
<UiSidebarProvider :default-open="true">
|
|
67
|
+
<div class="bg-background-surface-primary p-4">
|
|
68
|
+
<UiSidebar class="w-[22rem]" collapsible="icon">
|
|
69
|
+
<UiSidebarHeader tooltip="Toggle sidebar">Preview</UiSidebarHeader>
|
|
70
|
+
<UiSidebarContent class="p-0">
|
|
71
|
+
<UiSidebarChatHistory>
|
|
72
|
+
<UiSidebarChatHistoryItem
|
|
73
|
+
v-for="(item, index) in items"
|
|
74
|
+
:key="index"
|
|
75
|
+
:title="item.title"
|
|
76
|
+
:meta-start="item.metaStart"
|
|
77
|
+
:meta-end="item.metaEnd"
|
|
78
|
+
:is-active="item.isActive"
|
|
79
|
+
action-tooltip="More actions"
|
|
80
|
+
@action-click="handleActionClick"
|
|
81
|
+
/>
|
|
82
|
+
</UiSidebarChatHistory>
|
|
83
|
+
</UiSidebarContent>
|
|
84
|
+
</UiSidebar>
|
|
85
|
+
<p class="label-12-regular mt-3 text-content-on-surface-muted">
|
|
86
|
+
Action clicks: {{ actionCount }}
|
|
87
|
+
</p>
|
|
88
|
+
</div>
|
|
89
|
+
</UiSidebarProvider>
|
|
90
|
+
`,
|
|
91
|
+
}),
|
|
92
|
+
};
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
import { computed, useAttrs } from 'vue';
|
|
3
|
+
import { cn } from '@/lib/utils';
|
|
4
|
+
import type { UiSidebarChatHistoryProps } from './types';
|
|
5
|
+
|
|
6
|
+
defineOptions({
|
|
7
|
+
name: 'UiSidebarChatHistory',
|
|
8
|
+
inheritAttrs: false,
|
|
9
|
+
});
|
|
10
|
+
|
|
11
|
+
const props = withDefaults(defineProps<UiSidebarChatHistoryProps>(), {
|
|
12
|
+
withGap: true,
|
|
13
|
+
});
|
|
14
|
+
|
|
15
|
+
const attrs = useAttrs();
|
|
16
|
+
|
|
17
|
+
const historyClass = computed(() =>
|
|
18
|
+
cn(
|
|
19
|
+
'flex w-full min-w-0 flex-col p-2 group-data-[collapsible=icon]:hidden',
|
|
20
|
+
props.withGap && 'gap-1',
|
|
21
|
+
attrs.class as string | undefined,
|
|
22
|
+
),
|
|
23
|
+
);
|
|
24
|
+
|
|
25
|
+
const passthroughAttrs = computed(() => {
|
|
26
|
+
const { class: _class, ...rest } = attrs as Record<string, unknown>;
|
|
27
|
+
return rest;
|
|
28
|
+
});
|
|
29
|
+
</script>
|
|
30
|
+
|
|
31
|
+
<template>
|
|
32
|
+
<div v-bind="passthroughAttrs" data-slot="sidebar-chat-history" :class="historyClass">
|
|
33
|
+
<slot />
|
|
34
|
+
</div>
|
|
35
|
+
</template>
|
|
@@ -0,0 +1,201 @@
|
|
|
1
|
+
import type { Meta, StoryObj } from '@storybook/vue3-vite';
|
|
2
|
+
import { ref } from 'vue';
|
|
3
|
+
import { MoreHorizontal, Pencil, Trash2 } from 'lucide-vue-next';
|
|
4
|
+
import UiSidebar from './UiSidebar.vue';
|
|
5
|
+
import UiSidebarContent from './UiSidebarContent.vue';
|
|
6
|
+
import UiSidebarChatHistoryItem from './UiSidebarChatHistoryItem.vue';
|
|
7
|
+
import UiSidebarPopoverMenuItem from './UiSidebarPopoverMenuItem.vue';
|
|
8
|
+
import UiSidebarHeader from './UiSidebarHeader.vue';
|
|
9
|
+
import UiSidebarProvider from './UiSidebarProvider.vue';
|
|
10
|
+
|
|
11
|
+
const meta: Meta<typeof UiSidebarChatHistoryItem> = {
|
|
12
|
+
title: 'Patterns/UiSidebar/UiSidebarChatHistoryItem',
|
|
13
|
+
component: UiSidebarChatHistoryItem,
|
|
14
|
+
tags: ['autodocs'],
|
|
15
|
+
parameters: {
|
|
16
|
+
layout: 'padded',
|
|
17
|
+
docs: {
|
|
18
|
+
description: {
|
|
19
|
+
component:
|
|
20
|
+
'Single chat history entry: title, optional meta line, row focus ring, and trailing action (button or popover). Emits **`action-click`** when the action is a plain button; use **`actionPopover`** with `#action-popover` slot for menu content.',
|
|
21
|
+
},
|
|
22
|
+
},
|
|
23
|
+
},
|
|
24
|
+
args: {
|
|
25
|
+
title: 'Project Proposal Overview',
|
|
26
|
+
metaStart: 'Today',
|
|
27
|
+
metaEnd: 'Innsbruck',
|
|
28
|
+
actionTooltip: 'More actions',
|
|
29
|
+
},
|
|
30
|
+
argTypes: {
|
|
31
|
+
title: {
|
|
32
|
+
control: 'text',
|
|
33
|
+
description: 'Primary line shown for the conversation.',
|
|
34
|
+
},
|
|
35
|
+
metaStart: {
|
|
36
|
+
control: 'text',
|
|
37
|
+
description: 'Leading metadata segment under the title.',
|
|
38
|
+
},
|
|
39
|
+
metaEnd: {
|
|
40
|
+
control: 'text',
|
|
41
|
+
description: 'Trailing metadata segment (often separated visually from metaStart).',
|
|
42
|
+
},
|
|
43
|
+
isActive: {
|
|
44
|
+
control: 'boolean',
|
|
45
|
+
description: 'Active row treatment (rail + background).',
|
|
46
|
+
},
|
|
47
|
+
showAction: {
|
|
48
|
+
control: 'boolean',
|
|
49
|
+
description: 'Whether the end action column is rendered.',
|
|
50
|
+
},
|
|
51
|
+
showActionOnHover: {
|
|
52
|
+
control: 'boolean',
|
|
53
|
+
description: 'Fade in the action until row hover/focus-within.',
|
|
54
|
+
},
|
|
55
|
+
actionTooltip: {
|
|
56
|
+
control: 'text',
|
|
57
|
+
description: 'Tooltip for the action control (ignored when `actionPopover` is true).',
|
|
58
|
+
},
|
|
59
|
+
actionAriaLabel: {
|
|
60
|
+
control: 'text',
|
|
61
|
+
description: 'Accessible name for the action control.',
|
|
62
|
+
},
|
|
63
|
+
actionPopover: {
|
|
64
|
+
control: 'boolean',
|
|
65
|
+
description: 'Use popover for the action; supply body via `#action-popover` slot.',
|
|
66
|
+
},
|
|
67
|
+
actionPopoverSide: {
|
|
68
|
+
control: 'select',
|
|
69
|
+
options: ['top', 'right', 'bottom', 'left'],
|
|
70
|
+
description: 'Popover placement relative to the action trigger.',
|
|
71
|
+
},
|
|
72
|
+
actionPopoverAlign: {
|
|
73
|
+
control: 'select',
|
|
74
|
+
options: ['start', 'center', 'end'],
|
|
75
|
+
description: 'Popover alignment along the cross axis.',
|
|
76
|
+
},
|
|
77
|
+
actionPopoverSideOffset: {
|
|
78
|
+
control: 'number',
|
|
79
|
+
description: 'Offset in pixels between trigger and popover content.',
|
|
80
|
+
},
|
|
81
|
+
actionIcon: {
|
|
82
|
+
control: false,
|
|
83
|
+
description: 'Custom icon component (assign in code).',
|
|
84
|
+
},
|
|
85
|
+
},
|
|
86
|
+
};
|
|
87
|
+
|
|
88
|
+
export default meta;
|
|
89
|
+
|
|
90
|
+
type Story = StoryObj<typeof UiSidebarChatHistoryItem>;
|
|
91
|
+
|
|
92
|
+
const renderStory = (args: Story['args']) => ({
|
|
93
|
+
components: {
|
|
94
|
+
MoreHorizontal,
|
|
95
|
+
UiSidebar,
|
|
96
|
+
UiSidebarContent,
|
|
97
|
+
UiSidebarChatHistoryItem,
|
|
98
|
+
UiSidebarHeader,
|
|
99
|
+
UiSidebarProvider,
|
|
100
|
+
},
|
|
101
|
+
setup() {
|
|
102
|
+
const actionCount = ref(0);
|
|
103
|
+
|
|
104
|
+
function handleActionClick() {
|
|
105
|
+
actionCount.value += 1;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
return { actionCount, args, handleActionClick };
|
|
109
|
+
},
|
|
110
|
+
template: `
|
|
111
|
+
<UiSidebarProvider :default-open="true">
|
|
112
|
+
<div class="max-w-sm bg-background-surface-primary p-4">
|
|
113
|
+
<UiSidebar class="w-[22rem]" collapsible="icon">
|
|
114
|
+
<UiSidebarHeader tooltip="Toggle sidebar">Preview</UiSidebarHeader>
|
|
115
|
+
<UiSidebarContent class="p-2">
|
|
116
|
+
<UiSidebarChatHistoryItem v-bind="args" @action-click="handleActionClick" />
|
|
117
|
+
</UiSidebarContent>
|
|
118
|
+
</UiSidebar>
|
|
119
|
+
<p class="label-12-regular mt-3 text-content-on-surface-muted">
|
|
120
|
+
Action clicks: {{ actionCount }}
|
|
121
|
+
</p>
|
|
122
|
+
</div>
|
|
123
|
+
</UiSidebarProvider>
|
|
124
|
+
`,
|
|
125
|
+
});
|
|
126
|
+
|
|
127
|
+
export const Default: Story = {
|
|
128
|
+
render: renderStory,
|
|
129
|
+
};
|
|
130
|
+
|
|
131
|
+
export const Active: Story = {
|
|
132
|
+
args: {
|
|
133
|
+
isActive: true,
|
|
134
|
+
},
|
|
135
|
+
render: renderStory,
|
|
136
|
+
};
|
|
137
|
+
|
|
138
|
+
export const AlwaysShowAction: Story = {
|
|
139
|
+
args: {
|
|
140
|
+
showActionOnHover: false,
|
|
141
|
+
},
|
|
142
|
+
render: renderStory,
|
|
143
|
+
};
|
|
144
|
+
|
|
145
|
+
export const NoMeta: Story = {
|
|
146
|
+
args: {
|
|
147
|
+
metaStart: '',
|
|
148
|
+
metaEnd: '',
|
|
149
|
+
},
|
|
150
|
+
render: renderStory,
|
|
151
|
+
};
|
|
152
|
+
|
|
153
|
+
export const WithActionPopover: Story = {
|
|
154
|
+
args: {
|
|
155
|
+
actionPopover: true,
|
|
156
|
+
actionTooltip: '',
|
|
157
|
+
actionAriaLabel: 'Chat options',
|
|
158
|
+
},
|
|
159
|
+
render: (args) => ({
|
|
160
|
+
components: {
|
|
161
|
+
Pencil,
|
|
162
|
+
Trash2,
|
|
163
|
+
UiSidebar,
|
|
164
|
+
UiSidebarContent,
|
|
165
|
+
UiSidebarChatHistoryItem,
|
|
166
|
+
UiSidebarHeader,
|
|
167
|
+
UiSidebarPopoverMenuItem,
|
|
168
|
+
UiSidebarProvider,
|
|
169
|
+
},
|
|
170
|
+
setup() {
|
|
171
|
+
return { args };
|
|
172
|
+
},
|
|
173
|
+
template: `
|
|
174
|
+
<UiSidebarProvider :default-open="true">
|
|
175
|
+
<div class="max-w-sm bg-background-surface-primary p-4">
|
|
176
|
+
<UiSidebar class="w-[22rem]" collapsible="icon">
|
|
177
|
+
<UiSidebarHeader tooltip="Toggle sidebar">Preview</UiSidebarHeader>
|
|
178
|
+
<UiSidebarContent class="p-2">
|
|
179
|
+
<UiSidebarChatHistoryItem v-bind="args">
|
|
180
|
+
<template #action-popover>
|
|
181
|
+
<div class="flex flex-col gap-0.5 p-1">
|
|
182
|
+
<UiSidebarPopoverMenuItem label="Rename" as="button">
|
|
183
|
+
<template #icon>
|
|
184
|
+
<Pencil :size="16" />
|
|
185
|
+
</template>
|
|
186
|
+
</UiSidebarPopoverMenuItem>
|
|
187
|
+
<UiSidebarPopoverMenuItem label="Delete" as="button">
|
|
188
|
+
<template #icon>
|
|
189
|
+
<Trash2 :size="16" />
|
|
190
|
+
</template>
|
|
191
|
+
</UiSidebarPopoverMenuItem>
|
|
192
|
+
</div>
|
|
193
|
+
</template>
|
|
194
|
+
</UiSidebarChatHistoryItem>
|
|
195
|
+
</UiSidebarContent>
|
|
196
|
+
</UiSidebar>
|
|
197
|
+
</div>
|
|
198
|
+
</UiSidebarProvider>
|
|
199
|
+
`,
|
|
200
|
+
}),
|
|
201
|
+
};
|
|
@@ -0,0 +1,240 @@
|
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
import { computed, ref, useAttrs, useSlots, watch } from 'vue';
|
|
3
|
+
import { MoreVertical } from 'lucide-vue-next';
|
|
4
|
+
import { Primitive } from 'reka-ui';
|
|
5
|
+
import { Popover, PopoverContent, PopoverTrigger } from '@/components/core/popover';
|
|
6
|
+
import { UiTooltip } from '@/components/UiTooltip';
|
|
7
|
+
import { cn } from '@/lib/utils';
|
|
8
|
+
import { SIDEBAR_ACTIVE_INDICATOR_CLASS } from './activeIndicator';
|
|
9
|
+
import type { UiSidebarChatHistoryItemEmits, UiSidebarChatHistoryItemProps } from './types';
|
|
10
|
+
|
|
11
|
+
defineOptions({
|
|
12
|
+
name: 'UiSidebarChatHistoryItem',
|
|
13
|
+
inheritAttrs: false,
|
|
14
|
+
});
|
|
15
|
+
|
|
16
|
+
const emit = defineEmits<UiSidebarChatHistoryItemEmits>();
|
|
17
|
+
|
|
18
|
+
const props = withDefaults(defineProps<UiSidebarChatHistoryItemProps>(), {
|
|
19
|
+
as: 'button',
|
|
20
|
+
isActive: false,
|
|
21
|
+
showAction: true,
|
|
22
|
+
showActionOnHover: true,
|
|
23
|
+
actionTooltip: '',
|
|
24
|
+
actionAriaLabel: 'History item action',
|
|
25
|
+
actionPopover: false,
|
|
26
|
+
actionPopoverSide: 'right',
|
|
27
|
+
actionPopoverAlign: 'start',
|
|
28
|
+
actionPopoverSideOffset: 8,
|
|
29
|
+
});
|
|
30
|
+
|
|
31
|
+
const attrs = useAttrs();
|
|
32
|
+
const slots = useSlots();
|
|
33
|
+
|
|
34
|
+
const resolvedActionIcon = computed(() => props.actionIcon ?? MoreVertical);
|
|
35
|
+
const hasMeta = computed(() => Boolean(props.metaStart || props.metaEnd || slots.meta));
|
|
36
|
+
|
|
37
|
+
/**
|
|
38
|
+
* When true, pointer/focus is in the action column. The row-level hover
|
|
39
|
+
* tint is suppressed so the icon's own hover-mix tint + outlined border
|
|
40
|
+
* don't stack on top of it.
|
|
41
|
+
*/
|
|
42
|
+
const pointerOnAction = ref(false);
|
|
43
|
+
|
|
44
|
+
function onActionPointerEnter() {
|
|
45
|
+
pointerOnAction.value = true;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
function onActionPointerLeave() {
|
|
49
|
+
pointerOnAction.value = false;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
function onActionFocusIn() {
|
|
53
|
+
pointerOnAction.value = true;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
function onActionFocusOut() {
|
|
57
|
+
pointerOnAction.value = false;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
watch(
|
|
61
|
+
() => props.showAction,
|
|
62
|
+
(show) => {
|
|
63
|
+
if (!show) {
|
|
64
|
+
pointerOnAction.value = false;
|
|
65
|
+
}
|
|
66
|
+
},
|
|
67
|
+
);
|
|
68
|
+
|
|
69
|
+
const containerClass = computed(() =>
|
|
70
|
+
cn(
|
|
71
|
+
'group/sidebar-chat-history-item relative flex w-full min-w-0 items-stretch gap-2 rounded-md border border-transparent px-2 py-1.5 transition-colors group-data-[collapsible=icon]:hidden',
|
|
72
|
+
hasMeta.value ? 'h-12' : 'h-10',
|
|
73
|
+
// Whole-row focus ring: first tab lands on the main row control; second tab on the action button — both are inside this container.
|
|
74
|
+
// `:has(:focus-visible)` instead of `:focus-within` so mouse clicks on the row don't flash a keyboard focus ring.
|
|
75
|
+
'has-[:focus-visible]:border-border-surface-focus-ring has-[:focus-visible]:ring-[3px] has-[:focus-visible]:ring-ring/50',
|
|
76
|
+
// Row hover/active tint — flat `default` hover-mix color. Hover is suppressed while the
|
|
77
|
+
// pointer/focus is on the action column so the icon's own tint does not stack on top.
|
|
78
|
+
props.isActive && 'bg-background-surface-primary-hover-default',
|
|
79
|
+
!pointerOnAction.value && 'hover:bg-background-surface-primary-hover-default',
|
|
80
|
+
SIDEBAR_ACTIVE_INDICATOR_CLASS,
|
|
81
|
+
),
|
|
82
|
+
);
|
|
83
|
+
|
|
84
|
+
const itemClass = computed(() =>
|
|
85
|
+
cn(
|
|
86
|
+
'text-left outline-hidden transition-colors',
|
|
87
|
+
'body-14-regular text-content-on-surface-primary',
|
|
88
|
+
'!hover:bg-transparent !active:bg-transparent',
|
|
89
|
+
// Suppress a second ring on the primary control; the row ring is on the outer container.
|
|
90
|
+
'focus-visible:ring-0 focus-visible:outline-none',
|
|
91
|
+
'data-[active=true]:text-content-on-surface-primary',
|
|
92
|
+
attrs.class as string | undefined,
|
|
93
|
+
),
|
|
94
|
+
);
|
|
95
|
+
|
|
96
|
+
/**
|
|
97
|
+
* Wrapper column that owns the action button and the `pointerenter` /
|
|
98
|
+
* `pointerleave` hit area driving `pointerOnAction`. Uses `self-stretch` so
|
|
99
|
+
* the full row height reports pointer-enter on the column (not just the
|
|
100
|
+
* 32×32 button), and — when `showActionOnHover` is true — hides the inner
|
|
101
|
+
* button with `opacity-0` until the row is hovered or keyboard focus lands
|
|
102
|
+
* anywhere inside it.
|
|
103
|
+
*/
|
|
104
|
+
const actionColumnClass = computed(() =>
|
|
105
|
+
cn(
|
|
106
|
+
'ml-auto flex shrink-0 items-center self-stretch ',
|
|
107
|
+
props.showActionOnHover &&
|
|
108
|
+
'[&_button]:opacity-0 [&_button]:transition-opacity group-hover/sidebar-chat-history-item:[&_button]:opacity-100 group-focus-within/sidebar-chat-history-item:[&_button]:opacity-100',
|
|
109
|
+
),
|
|
110
|
+
);
|
|
111
|
+
|
|
112
|
+
/**
|
|
113
|
+
* Action control: same `default` hover-mix tint as the row, plus the
|
|
114
|
+
* `border/button/outlined` token so the icon picks up a visible outline on
|
|
115
|
+
* hover/focus (mirrors the outline button variant). Applied only while
|
|
116
|
+
* pointer/focus is on the action column so the row tint does not stack
|
|
117
|
+
* underneath the icon.
|
|
118
|
+
*/
|
|
119
|
+
const actionButtonClass = computed(() =>
|
|
120
|
+
cn(
|
|
121
|
+
'relative inline-flex size-8 shrink-0 items-center justify-center rounded-sm border border-transparent text-content-on-surface-primary outline-hidden transition-colors',
|
|
122
|
+
'[&_svg]:size-4 [&_svg]:shrink-0',
|
|
123
|
+
'focus-visible:ring-0 focus-visible:outline-none',
|
|
124
|
+
pointerOnAction.value &&
|
|
125
|
+
'bg-background-surface-primary-hover-default border-border-button-outlined',
|
|
126
|
+
),
|
|
127
|
+
);
|
|
128
|
+
|
|
129
|
+
const actionPopoverPanelClass = computed(() =>
|
|
130
|
+
// Sidebar popover surface is `background/surface/secondary`; override the
|
|
131
|
+
// core popover's default `floating` background so the outer frame matches
|
|
132
|
+
// the `UiSidebarPopoverMenu` it hosts.
|
|
133
|
+
cn(
|
|
134
|
+
'w-auto min-w-48 max-w-sm p-0 bg-background-surface-secondary',
|
|
135
|
+
props.actionPopoverContentClass,
|
|
136
|
+
),
|
|
137
|
+
);
|
|
138
|
+
|
|
139
|
+
const passthroughAttrs = computed(() => {
|
|
140
|
+
const { class: _class, ...rest } = attrs as Record<string, unknown>;
|
|
141
|
+
return rest;
|
|
142
|
+
});
|
|
143
|
+
|
|
144
|
+
function onActionClick(event: MouseEvent) {
|
|
145
|
+
event.stopPropagation();
|
|
146
|
+
const el = event.currentTarget;
|
|
147
|
+
if (el instanceof HTMLElement && el.focus) {
|
|
148
|
+
queueMicrotask(() => el.focus({ preventScroll: true }));
|
|
149
|
+
}
|
|
150
|
+
if (!props.actionPopover) {
|
|
151
|
+
// Public kebab-case event preserved for backwards compatibility.
|
|
152
|
+
// eslint-disable-next-line vue/custom-event-name-casing
|
|
153
|
+
emit('action-click', event);
|
|
154
|
+
}
|
|
155
|
+
}
|
|
156
|
+
</script>
|
|
157
|
+
|
|
158
|
+
<template>
|
|
159
|
+
<div :data-active="props.isActive" :class="containerClass">
|
|
160
|
+
<Primitive
|
|
161
|
+
v-bind="passthroughAttrs"
|
|
162
|
+
:as="props.as"
|
|
163
|
+
:as-child="props.asChild"
|
|
164
|
+
:data-active="props.isActive"
|
|
165
|
+
:class="cn(itemClass, 'flex min-w-0 flex-1 items-center')"
|
|
166
|
+
>
|
|
167
|
+
<div class="min-w-0 flex-1">
|
|
168
|
+
<div class="truncate body-14-regular text-content-on-surface-primary">
|
|
169
|
+
{{ props.title }}
|
|
170
|
+
</div>
|
|
171
|
+
|
|
172
|
+
<div
|
|
173
|
+
v-if="props.metaStart || props.metaEnd || $slots.meta"
|
|
174
|
+
class="mt-0.5 flex min-w-0 items-center gap-1 label-12-medium text-content-on-surface-muted"
|
|
175
|
+
>
|
|
176
|
+
<slot name="meta">
|
|
177
|
+
<span v-if="props.metaStart" class="truncate">{{ props.metaStart }}</span>
|
|
178
|
+
<span v-if="props.metaStart && props.metaEnd" aria-hidden="true">|</span>
|
|
179
|
+
<span v-if="props.metaEnd" class="truncate">{{ props.metaEnd }}</span>
|
|
180
|
+
</slot>
|
|
181
|
+
</div>
|
|
182
|
+
</div>
|
|
183
|
+
</Primitive>
|
|
184
|
+
|
|
185
|
+
<div
|
|
186
|
+
v-if="props.showAction"
|
|
187
|
+
:class="actionColumnClass"
|
|
188
|
+
@pointerenter="onActionPointerEnter"
|
|
189
|
+
@pointerleave="onActionPointerLeave"
|
|
190
|
+
>
|
|
191
|
+
<Popover v-if="props.actionPopover">
|
|
192
|
+
<PopoverTrigger as-child>
|
|
193
|
+
<button
|
|
194
|
+
type="button"
|
|
195
|
+
:aria-label="props.actionAriaLabel"
|
|
196
|
+
:aria-haspopup="'dialog'"
|
|
197
|
+
:class="actionButtonClass"
|
|
198
|
+
@focusin="onActionFocusIn"
|
|
199
|
+
@focusout="onActionFocusOut"
|
|
200
|
+
@click.stop="onActionClick"
|
|
201
|
+
>
|
|
202
|
+
<component :is="resolvedActionIcon" :size="16" />
|
|
203
|
+
</button>
|
|
204
|
+
</PopoverTrigger>
|
|
205
|
+
<PopoverContent
|
|
206
|
+
:side="props.actionPopoverSide"
|
|
207
|
+
:align="props.actionPopoverAlign"
|
|
208
|
+
:side-offset="props.actionPopoverSideOffset"
|
|
209
|
+
:class="actionPopoverPanelClass"
|
|
210
|
+
>
|
|
211
|
+
<slot name="action-popover" />
|
|
212
|
+
</PopoverContent>
|
|
213
|
+
</Popover>
|
|
214
|
+
|
|
215
|
+
<UiTooltip v-else-if="props.actionTooltip" :content="props.actionTooltip" side="right">
|
|
216
|
+
<button
|
|
217
|
+
type="button"
|
|
218
|
+
:aria-label="props.actionAriaLabel"
|
|
219
|
+
:class="actionButtonClass"
|
|
220
|
+
@focusin="onActionFocusIn"
|
|
221
|
+
@focusout="onActionFocusOut"
|
|
222
|
+
@click.stop="onActionClick"
|
|
223
|
+
>
|
|
224
|
+
<component :is="resolvedActionIcon" :size="16" />
|
|
225
|
+
</button>
|
|
226
|
+
</UiTooltip>
|
|
227
|
+
<button
|
|
228
|
+
v-else
|
|
229
|
+
type="button"
|
|
230
|
+
:aria-label="props.actionAriaLabel"
|
|
231
|
+
:class="actionButtonClass"
|
|
232
|
+
@focusin="onActionFocusIn"
|
|
233
|
+
@focusout="onActionFocusOut"
|
|
234
|
+
@click.stop="onActionClick"
|
|
235
|
+
>
|
|
236
|
+
<component :is="resolvedActionIcon" :size="16" />
|
|
237
|
+
</button>
|
|
238
|
+
</div>
|
|
239
|
+
</div>
|
|
240
|
+
</template>
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
import { SidebarContent } from '@/components/core/sidebar';
|
|
3
|
+
import type { UiSidebarContentProps } from './types';
|
|
4
|
+
|
|
5
|
+
defineOptions({ name: 'UiSidebarContent' });
|
|
6
|
+
|
|
7
|
+
defineProps<UiSidebarContentProps>();
|
|
8
|
+
</script>
|
|
9
|
+
|
|
10
|
+
<template>
|
|
11
|
+
<SidebarContent v-bind="$attrs">
|
|
12
|
+
<slot />
|
|
13
|
+
</SidebarContent>
|
|
14
|
+
</template>
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
import { SidebarFooter } from '@/components/core/sidebar';
|
|
3
|
+
import type { UiSidebarFooterProps } from './types';
|
|
4
|
+
|
|
5
|
+
defineOptions({ name: 'UiSidebarFooter' });
|
|
6
|
+
|
|
7
|
+
defineProps<UiSidebarFooterProps>();
|
|
8
|
+
</script>
|
|
9
|
+
|
|
10
|
+
<template>
|
|
11
|
+
<SidebarFooter v-bind="$attrs">
|
|
12
|
+
<slot />
|
|
13
|
+
</SidebarFooter>
|
|
14
|
+
</template>
|