@comfyorg/design-system 1.1.0 → 1.3.0-alpha.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/README.md +113 -10
- package/dist/accordion/PropertiesAccordionItem.vue.d.ts +34 -0
- package/dist/accordion/PropertiesAccordionItem.vue.js +62 -0
- package/dist/badge/Badge.vue.d.ts +49 -0
- package/dist/badge/Badge.vue.js +1 -0
- package/dist/badge/CreditBadge.vue.d.ts +6 -0
- package/dist/badge/CreditBadge.vue.js +21 -0
- package/dist/badge/badge.variants.d.ts +12 -0
- package/dist/button/Button.vue.d.ts +31 -0
- package/dist/button/Button.vue.js +1 -0
- package/dist/button-group/ButtonGroup.vue.d.ts +18 -0
- package/dist/button-group/ButtonGroup.vue.js +35 -0
- package/dist/button-group/IconGroup.vue.d.ts +16 -0
- package/dist/button-group/IconGroup.vue.js +13 -0
- package/dist/card/Card.vue.d.ts +19 -0
- package/dist/card/Card.vue.js +1 -0
- package/dist/card/CardFooter.vue.d.ts +17 -0
- package/dist/card/CardFooter.vue.js +1 -0
- package/dist/card/CardHeader.vue.d.ts +17 -0
- package/dist/card/CardHeader.vue.js +1 -0
- package/dist/card/CoachmarkCard.vue.d.ts +24 -0
- package/dist/card/CoachmarkCard.vue.js +55 -0
- package/dist/card/card.variants.d.ts +11 -0
- package/dist/chart/Chart.vue.d.ts +12 -0
- package/dist/chart/Chart.vue.js +177 -0
- package/dist/chart/__tests__/chartTestUtils.d.ts +3 -0
- package/dist/chart/useChart.d.ts +4 -0
- package/dist/checkbox/Checkbox.vue.d.ts +25 -0
- package/dist/checkbox/Checkbox.vue.js +47 -0
- package/dist/chip/Tag.vue.d.ts +61 -0
- package/dist/chip/Tag.vue.js +71 -0
- package/dist/chip/TagRemoveButton.vue.d.ts +18 -0
- package/dist/chip/TagRemoveButton.vue.js +1 -0
- package/dist/color-picker/ColorPicker.vue.d.ts +23 -0
- package/dist/color-picker/ColorPicker.vue.js +139 -0
- package/dist/color-picker/ColorPickerPanel.vue.d.ts +27 -0
- package/dist/color-picker/ColorPickerPanel.vue.js +1 -0
- package/dist/color-picker/ColorPickerSaturationValue.vue.d.ts +17 -0
- package/dist/color-picker/ColorPickerSaturationValue.vue.js +1 -0
- package/dist/color-picker/ColorPickerSlider.vue.d.ts +17 -0
- package/dist/color-picker/ColorPickerSlider.vue.js +1 -0
- package/dist/color-picker/types.d.ts +22 -0
- package/dist/color-picker/types.js +0 -0
- package/dist/color-picker/useColorPicker.d.ts +33 -0
- package/dist/common/CanvasBanner.vue.d.ts +23 -0
- package/dist/common/CanvasBanner.vue.js +21 -0
- package/dist/common/ContentDivider.vue.d.ts +7 -0
- package/dist/common/ContentDivider.vue.js +20 -0
- package/dist/common/CustomFormValue.vue.d.ts +6 -0
- package/dist/common/CustomFormValue.vue.js +26 -0
- package/dist/common/DotSpinner.vue.d.ts +7 -0
- package/dist/common/DotSpinner.vue.js +32 -0
- package/dist/common/EditableText.vue.d.ts +16 -0
- package/dist/common/EditableText.vue.js +71 -0
- package/dist/common/HighlightedText.vue.d.ts +8 -0
- package/dist/common/HighlightedText.vue.js +49 -0
- package/dist/common/LoadingOverlay.vue.d.ts +18 -0
- package/dist/common/LoadingOverlay.vue.js +39 -0
- package/dist/common/MarkdownText.vue.d.ts +6 -0
- package/dist/common/MarkdownText.vue.js +91 -0
- package/dist/common/MarqueeLine.vue.d.ts +13 -0
- package/dist/common/MarqueeLine.vue.js +11 -0
- package/dist/common/NoResultsPlaceholder.vue.d.ts +28 -0
- package/dist/common/NoResultsPlaceholder.vue.js +49 -0
- package/dist/common/NotificationPopup.vue.d.ts +28 -0
- package/dist/common/NotificationPopup.vue.js +63 -0
- package/dist/common/OverlayIcon.vue.d.ts +13 -0
- package/dist/common/OverlayIcon.vue.js +1 -0
- package/dist/common/SanitizedHtml.vue.d.ts +8 -0
- package/dist/common/SanitizedHtml.vue.js +58 -0
- package/dist/common/TextDivider.vue.d.ts +8 -0
- package/dist/common/TextDivider.vue.js +34 -0
- package/dist/common/TextTicker.vue.d.ts +17 -0
- package/dist/common/TextTicker.vue.js +51 -0
- package/dist/common/TextTickerMultiLine.vue.d.ts +6 -0
- package/dist/common/TextTickerMultiLine.vue.js +51 -0
- package/dist/common/UserAvatar.vue.d.ts +9 -0
- package/dist/common/UserAvatar.vue.js +45 -0
- package/dist/common/VerticalDivider.vue.d.ts +3 -0
- package/dist/common/VerticalDivider.vue.js +14 -0
- package/dist/common/VideoCompareSlider.vue.d.ts +24 -0
- package/dist/common/VideoCompareSlider.vue.js +139 -0
- package/dist/common/ViewportWidgetShell.vue.d.ts +27 -0
- package/dist/common/ViewportWidgetShell.vue.js +56 -0
- package/dist/common/VirtualGrid.vue.d.ts +38 -0
- package/dist/common/VirtualGrid.vue.js +105 -0
- package/dist/common/highlightQuery.d.ts +6 -0
- package/dist/common/textTickerUtils.d.ts +1 -0
- package/dist/components.css +44 -0
- package/dist/composables/useAttrsClass.d.ts +12 -0
- package/dist/composables/useAttrsClass.js +17 -0
- package/dist/composables/usePopoverSizing.d.ts +12 -0
- package/dist/composables/usePopoverSizing.js +17 -0
- package/dist/confirm/ConfirmBody.vue.d.ts +8 -0
- package/dist/confirm/ConfirmBody.vue.js +25 -0
- package/dist/confirm/ConfirmFooter.vue.d.ts +18 -0
- package/dist/confirm/ConfirmFooter.vue.js +53 -0
- package/dist/confirm/ConfirmHeader.vue.d.ts +7 -0
- package/dist/confirm/ConfirmHeader.vue.js +25 -0
- package/dist/content-card/CardBottom.vue.d.ts +16 -0
- package/dist/content-card/CardBottom.vue.js +17 -0
- package/dist/content-card/CardContainer.vue.d.ts +26 -0
- package/dist/content-card/CardContainer.vue.js +59 -0
- package/dist/content-card/CardTop.vue.d.ts +36 -0
- package/dist/content-card/CardTop.vue.js +70 -0
- package/dist/dialog/Dialog.vue.d.ts +21 -0
- package/dist/dialog/Dialog.vue.js +23 -0
- package/dist/dialog/DialogClose.vue.d.ts +13 -0
- package/dist/dialog/DialogClose.vue.js +1 -0
- package/dist/dialog/DialogContent.vue.d.ts +36 -0
- package/dist/dialog/DialogContent.vue.js +1 -0
- package/dist/dialog/DialogDescription.vue.d.ts +18 -0
- package/dist/dialog/DialogDescription.vue.js +31 -0
- package/dist/dialog/DialogFooter.vue.d.ts +17 -0
- package/dist/dialog/DialogFooter.vue.js +22 -0
- package/dist/dialog/DialogHeader.vue.d.ts +17 -0
- package/dist/dialog/DialogHeader.vue.js +22 -0
- package/dist/dialog/DialogMaximize.vue.d.ts +10 -0
- package/dist/dialog/DialogMaximize.vue.js +25 -0
- package/dist/dialog/DialogOverlay.vue.d.ts +8 -0
- package/dist/dialog/DialogOverlay.vue.js +1 -0
- package/dist/dialog/DialogPanel.vue.d.ts +18 -0
- package/dist/dialog/DialogPanel.vue.js +53 -0
- package/dist/dialog/DialogPortal.vue.d.ts +14 -0
- package/dist/dialog/DialogPortal.vue.js +1 -0
- package/dist/dialog/DialogTitle.vue.d.ts +18 -0
- package/dist/dialog/DialogTitle.vue.js +1 -0
- package/dist/dialog/Dialogue.vue.d.ts +22 -0
- package/dist/dialog/Dialogue.vue.js +56 -0
- package/dist/dialog/dialog.variants.d.ts +16 -0
- package/dist/dialog/dialog.variants.js +38 -0
- package/dist/dialog/types.d.ts +6 -0
- package/dist/dialog/types.js +0 -0
- package/dist/field/Field.vue.d.ts +19 -0
- package/dist/field/Field.vue.js +39 -0
- package/dist/field/FieldDescription.vue.d.ts +17 -0
- package/dist/field/FieldDescription.vue.js +22 -0
- package/dist/field/FieldError.vue.d.ts +21 -0
- package/dist/field/FieldError.vue.js +37 -0
- package/dist/field/FieldGroup.vue.d.ts +17 -0
- package/dist/field/FieldGroup.vue.js +22 -0
- package/dist/field/FieldLabel.vue.d.ts +17 -0
- package/dist/field/FieldLabel.vue.js +26 -0
- package/dist/field/FieldSwitch.vue.d.ts +16 -0
- package/dist/field/FieldSwitch.vue.js +43 -0
- package/dist/field/LayoutField.vue.d.ts +18 -0
- package/dist/field/LayoutField.vue.js +1 -0
- package/dist/field/ModelInfoField.vue.d.ts +18 -0
- package/dist/field/ModelInfoField.vue.js +16 -0
- package/dist/field/field.variants.d.ts +11 -0
- package/dist/hover-card/HoverCard.vue.d.ts +18 -0
- package/dist/hover-card/HoverCard.vue.js +24 -0
- package/dist/hover-card/HoverCardContent.vue.d.ts +18 -0
- package/dist/hover-card/HoverCardContent.vue.js +66 -0
- package/dist/hover-card/HoverCardTrigger.vue.d.ts +14 -0
- package/dist/hover-card/HoverCardTrigger.vue.js +21 -0
- package/dist/icon/ComfyLogo.vue.d.ts +9 -0
- package/dist/icon/ComfyLogo.vue.js +31 -0
- package/dist/icon/PuzzleIcon.vue.d.ts +8 -0
- package/dist/icon/PuzzleIcon.vue.js +38 -0
- package/dist/icon/TinyChevronIcon.vue.d.ts +6 -0
- package/dist/icon/TinyChevronIcon.vue.js +29 -0
- package/dist/icon/VerifiedIcon.vue.d.ts +8 -0
- package/dist/icon/VerifiedIcon.vue.js +30 -0
- package/dist/input/Input.vue.d.ts +21 -0
- package/dist/input/Input.vue.js +1 -0
- package/dist/input/PasswordInput.vue.d.ts +18 -0
- package/dist/input/PasswordInput.vue.js +66 -0
- package/dist/input-group/InputGroup.vue.d.ts +17 -0
- package/dist/input-group/InputGroup.vue.js +1 -0
- package/dist/input-group/InputGroupAddon.vue.d.ts +19 -0
- package/dist/input-group/InputGroupAddon.vue.js +1 -0
- package/dist/input-group/InputGroupButton.vue.d.ts +21 -0
- package/dist/input-group/InputGroupButton.vue.js +1 -0
- package/dist/input-group/InputGroupInput.vue.d.ts +15 -0
- package/dist/input-group/InputGroupInput.vue.js +1 -0
- package/dist/input-group/inputGroup.variants.d.ts +21 -0
- package/dist/input-group/inputGroup.variants.js +21 -0
- package/dist/knob/Knob.vue.d.ts +19 -0
- package/dist/knob/Knob.vue.js +122 -0
- package/dist/label/Label.vue.d.ts +18 -0
- package/dist/label/Label.vue.js +1 -0
- package/dist/layout/BaseModalLayout.vue.d.ts +67 -0
- package/dist/layout/BaseModalLayout.vue.js +198 -0
- package/dist/media/AudioPreview.vue.d.ts +6 -0
- package/dist/media/AudioPreview.vue.js +26 -0
- package/dist/media/ImageLightbox.vue.d.ts +17 -0
- package/dist/media/ImageLightbox.vue.js +76 -0
- package/dist/media/MediaTitle.vue.d.ts +6 -0
- package/dist/media/MediaTitle.vue.js +17 -0
- package/dist/media/Video.vue.d.ts +28 -0
- package/dist/media/Video.vue.js +100 -0
- package/dist/media/VideoPlayOverlay.vue.d.ts +8 -0
- package/dist/media/VideoPlayOverlay.vue.js +26 -0
- package/dist/media/VideoPreview.vue.d.ts +7 -0
- package/dist/media/VideoPreview.vue.js +30 -0
- package/dist/media/ZoomPane.vue.d.ts +17 -0
- package/dist/media/ZoomPane.vue.js +60 -0
- package/dist/menu/ContextMenu.vue.d.ts +31 -0
- package/dist/menu/ContextMenu.vue.js +50 -0
- package/dist/menu/ContextMenuContent.vue.d.ts +32 -0
- package/dist/menu/ContextMenuContent.vue.js +1 -0
- package/dist/menu/Menu.vue.d.ts +41 -0
- package/dist/menu/Menu.vue.js +77 -0
- package/dist/menu/MenuAction.vue.d.ts +26 -0
- package/dist/menu/MenuAction.vue.js +1 -0
- package/dist/menu/MenuContent.vue.d.ts +35 -0
- package/dist/menu/MenuContent.vue.js +1 -0
- package/dist/menu/MenuItem.vue.d.ts +22 -0
- package/dist/menu/MenuItem.vue.js +33 -0
- package/dist/menu/MenuItemContent.vue.d.ts +8 -0
- package/dist/menu/MenuItemContent.vue.js +1 -0
- package/dist/menu/MenuItems.vue.d.ts +32 -0
- package/dist/menu/MenuItems.vue.js +1 -0
- package/dist/menu/MenuRadioGroup.vue.d.ts +26 -0
- package/dist/menu/MenuRadioGroup.vue.js +1 -0
- package/dist/menu/MenuRadioItem.vue.d.ts +22 -0
- package/dist/menu/MenuRadioItem.vue.js +1 -0
- package/dist/menu/MenuSeparator.vue.d.ts +8 -0
- package/dist/menu/MenuSeparator.vue.js +1 -0
- package/dist/menu/MenuSub.vue.d.ts +20 -0
- package/dist/menu/MenuSub.vue.js +1 -0
- package/dist/menu/MenuSubContent.vue.d.ts +36 -0
- package/dist/menu/MenuSubContent.vue.js +1 -0
- package/dist/menu/MenuSubTrigger.vue.d.ts +18 -0
- package/dist/menu/MenuSubTrigger.vue.js +1 -0
- package/dist/menu/MenuSubmenu.vue.d.ts +21 -0
- package/dist/menu/MenuSubmenu.vue.js +1 -0
- package/dist/menu/menuAnchor.d.ts +4 -0
- package/dist/menu/menuAnchor.js +14 -0
- package/dist/menu/menuStyles.d.ts +4 -0
- package/dist/menu/menuStyles.js +6 -0
- package/dist/menu/mouseDownUtil.d.ts +3 -0
- package/dist/menu/types.d.ts +69 -0
- package/dist/menu/types.js +0 -0
- package/dist/menu/usePointMenu.d.ts +19 -0
- package/dist/menu/usePointMenu.js +55 -0
- package/dist/message/Message.vue.d.ts +50 -0
- package/dist/message/Message.vue.js +73 -0
- package/dist/message/message.variants.d.ts +11 -0
- package/dist/message/message.variants.js +14 -0
- package/dist/multi-select/MultiSelect.vue.d.ts +170 -0
- package/dist/multi-select/MultiSelect.vue.js +135 -0
- package/dist/multi-select/MultiSelectContent.vue.d.ts +32 -0
- package/dist/multi-select/MultiSelectContent.vue.js +1 -0
- package/dist/multi-select/MultiSelectTrigger.vue.d.ts +24 -0
- package/dist/multi-select/MultiSelectTrigger.vue.js +1 -0
- package/dist/multi-select/types.d.ts +35 -0
- package/dist/multi-select/types.js +0 -0
- package/dist/navigation/LeftSidePanel.vue.d.ts +12 -0
- package/dist/navigation/LeftSidePanel.vue.js +82 -0
- package/dist/navigation/NavIcon.vue.d.ts +7 -0
- package/dist/navigation/NavIcon.vue.js +1 -0
- package/dist/navigation/NavItem.vue.d.ts +21 -0
- package/dist/navigation/NavItem.vue.js +1 -0
- package/dist/navigation/NavTitle.vue.d.ts +12 -0
- package/dist/navigation/NavTitle.vue.js +1 -0
- package/dist/navigation/SidebarTopArea.vue.d.ts +15 -0
- package/dist/navigation/SidebarTopArea.vue.js +15 -0
- package/dist/navigation/types.d.ts +13 -0
- package/dist/navigation/types.js +0 -0
- package/dist/number-field/NumberField.vue.d.ts +26 -0
- package/dist/number-field/NumberField.vue.js +73 -0
- package/dist/number-field/NumberFieldDecrement.vue.d.ts +18 -0
- package/dist/number-field/NumberFieldDecrement.vue.js +33 -0
- package/dist/number-field/NumberFieldIncrement.vue.d.ts +18 -0
- package/dist/number-field/NumberFieldIncrement.vue.js +33 -0
- package/dist/number-field/NumberFieldInput.vue.d.ts +7 -0
- package/dist/number-field/NumberFieldInput.vue.js +23 -0
- package/dist/number-field/PropertyNumberField.vue.d.ts +14 -0
- package/dist/number-field/PropertyNumberField.vue.js +54 -0
- package/dist/pagination/Pagination.vue.d.ts +22 -0
- package/dist/pagination/Pagination.vue.js +138 -0
- package/dist/popover/PopoverContent.vue.d.ts +33 -0
- package/dist/popover/PopoverContent.vue.js +1 -0
- package/dist/popover/usePopoverViewportDismiss.d.ts +2 -0
- package/dist/popover/usePopoverViewportDismiss.js +12 -0
- package/dist/radio-group/RadioGroup.vue.d.ts +22 -0
- package/dist/radio-group/RadioGroup.vue.js +43 -0
- package/dist/radio-group/RadioGroupItem.vue.d.ts +22 -0
- package/dist/radio-group/RadioGroupItem.vue.js +40 -0
- package/dist/search-input/AsyncSearchInput.vue.d.ts +27 -0
- package/dist/search-input/AsyncSearchInput.vue.js +102 -0
- package/dist/search-input/SearchAutocomplete.vue.d.ts +53 -0
- package/dist/search-input/SearchAutocomplete.vue.js +232 -0
- package/dist/search-input/SearchInput.vue.d.ts +46 -0
- package/dist/search-input/SearchInput.vue.js +125 -0
- package/dist/search-input/searchInput.variants.d.ts +45 -0
- package/dist/select/DropdownControl.vue.d.ts +16 -0
- package/dist/select/DropdownControl.vue.js +46 -0
- package/dist/select/Select.vue.d.ts +21 -0
- package/dist/select/Select.vue.js +1 -0
- package/dist/select/SelectContent.vue.d.ts +29 -0
- package/dist/select/SelectContent.vue.js +1 -0
- package/dist/select/SelectItem.vue.d.ts +22 -0
- package/dist/select/SelectItem.vue.js +1 -0
- package/dist/select/SelectScrollDownButton.vue.d.ts +18 -0
- package/dist/select/SelectScrollDownButton.vue.js +1 -0
- package/dist/select/SelectScrollUpButton.vue.d.ts +18 -0
- package/dist/select/SelectScrollUpButton.vue.js +1 -0
- package/dist/select/SelectTrigger.vue.d.ts +22 -0
- package/dist/select/SelectTrigger.vue.js +1 -0
- package/dist/select/SelectValue.vue.d.ts +14 -0
- package/dist/select/SelectValue.vue.js +1 -0
- package/dist/select/types.d.ts +4 -0
- package/dist/select/types.js +0 -0
- package/dist/select/useSelectSearch.d.ts +3 -0
- package/dist/select/useSelectSearch.js +14 -0
- package/dist/shared/Badge-DFHO3AFi.js +90 -0
- package/dist/shared/Button-Dj_H5v3V.js +138 -0
- package/dist/shared/Card-BrvqUM49.js +32 -0
- package/dist/shared/CardFooter-BV_I0pM-.js +19 -0
- package/dist/shared/CardHeader-CMutruBx.js +19 -0
- package/dist/shared/ColorPickerPanel-DQGHuvxk.js +239 -0
- package/dist/shared/ColorPickerSaturationValue-B5VDiMcl.js +64 -0
- package/dist/shared/ColorPickerSlider--mnQyzWD.js +305 -0
- package/dist/shared/ContextMenuContent-RNyBBJOX.js +62 -0
- package/dist/shared/DialogClose-CrtPRSNX.js +22 -0
- package/dist/shared/DialogContent-v2s55FXs.js +71 -0
- package/dist/shared/DialogOverlay-C9qv0zme.js +33 -0
- package/dist/shared/DialogPortal-DtCpLgtO.js +36 -0
- package/dist/shared/DialogTitle-Chomvpgq.js +41 -0
- package/dist/shared/Input-DOeNoniw.js +36 -0
- package/dist/shared/InputGroup-BYt6BWpk.js +23 -0
- package/dist/shared/InputGroupAddon-B1cn7czs.js +36 -0
- package/dist/shared/InputGroupButton-tw5AYOoR.js +39 -0
- package/dist/shared/InputGroupInput-C_kkIxvY.js +30 -0
- package/dist/shared/Label-kwhWNR2P.js +34 -0
- package/dist/shared/LayoutField-C8KCaVF0.js +34 -0
- package/dist/shared/MenuAction-0z8BSoX9.js +121 -0
- package/dist/shared/MenuContent--tKCqaIO.js +78 -0
- package/dist/shared/MenuItemContent-Be658c7e.js +67 -0
- package/dist/shared/MenuItems-BZTlERd6.js +67 -0
- package/dist/shared/MenuRadioGroup-B28YS1p1.js +63 -0
- package/dist/shared/MenuRadioItem-D8DFu-KU.js +34 -0
- package/dist/shared/MenuSeparator-DrAiObmE.js +26 -0
- package/dist/shared/MenuSub-DSizq_fV.js +21 -0
- package/dist/shared/MenuSubContent-ghzkX4hX.js +67 -0
- package/dist/shared/MenuSubTrigger-BGRIm_Bf.js +33 -0
- package/dist/shared/MenuSubmenu-CjPf8DXl.js +41 -0
- package/dist/shared/MultiSelectContent-9xyBQKz3.js +160 -0
- package/dist/shared/MultiSelectTrigger-DNySkpH9.js +50 -0
- package/dist/shared/NavIcon-FTJH75HH.js +12 -0
- package/dist/shared/NavItem-sQJ-77Zw.js +77 -0
- package/dist/shared/NavTitle-BM22yfCR.js +40 -0
- package/dist/shared/OverlayIcon-C-din824.js +43 -0
- package/dist/shared/PopoverContent-DNqL6t-O.js +89 -0
- package/dist/shared/SearchableSingleSelect-DQauLQWW.js +182 -0
- package/dist/shared/Select-DtVgv7Po.js +31 -0
- package/dist/shared/SelectContent-Ba1mCDWM.js +89 -0
- package/dist/shared/SelectItem-DaOr3TFS.js +55 -0
- package/dist/shared/SelectScrollDownButton-DYmxtida.js +28 -0
- package/dist/shared/SelectScrollUpButton-DiyvSb9O.js +28 -0
- package/dist/shared/SelectTrigger-BBicbVsI.js +45 -0
- package/dist/shared/SelectValue-BjaQc-WU.js +21 -0
- package/dist/shared/Switch-qavkHWMz.js +61 -0
- package/dist/shared/TableHead-DpsXVMzk.js +22 -0
- package/dist/shared/TagRemoveButton-D919R-To.js +36 -0
- package/dist/shared/TextTooltip-BNlZI515.js +27 -0
- package/dist/shared/Tooltip-4rCebVao.js +32 -0
- package/dist/shared/TooltipContent-0GR7hBNu.js +89 -0
- package/dist/shared/TooltipTrigger-64EIE5f2.js +63 -0
- package/dist/shared/TransitionCollapse-VfBzyj5a.js +108 -0
- package/dist/shared/_plugin-vue_export-helper-DjkACiAr.js +7 -0
- package/dist/shared/searchInput.variants-BdYHNjce.js +46 -0
- package/dist/shared/select.variants-cRXaATWS.js +39 -0
- package/dist/shared/src-DTwuqov4.js +11 -0
- package/dist/shared/tabKeys-CP6c3wTY.js +3 -0
- package/dist/shared/tabs.variants-Cgk7bRhG.js +22 -0
- package/dist/shared/tag.variants-BEXRRbPc.js +33 -0
- package/dist/shared/tagsInputContext-C-X1-iNf.js +4 -0
- package/dist/shared/toggleGroup.variants-BuwGELw0.js +38 -0
- package/dist/shared/tooltipContext-arEyjGQC.js +3 -0
- package/dist/single-select/SearchableSingleSelect.vue.d.ts +39 -0
- package/dist/single-select/SearchableSingleSelect.vue.js +1 -0
- package/dist/single-select/SingleSelect.vue.d.ts +38 -0
- package/dist/single-select/SingleSelect.vue.js +185 -0
- package/dist/single-select/types.d.ts +25 -0
- package/dist/single-select/types.js +0 -0
- package/dist/skeleton/Skeleton.vue.d.ts +7 -0
- package/dist/skeleton/Skeleton.vue.js +22 -0
- package/dist/slider/GradientSlider.vue.d.ts +20 -0
- package/dist/slider/GradientSlider.vue.js +100 -0
- package/dist/slider/Slider.vue.d.ts +16 -0
- package/dist/slider/Slider.vue.js +86 -0
- package/dist/slider/gradients.d.ts +6 -0
- package/dist/spinner/Spinner.vue.d.ts +7 -0
- package/dist/spinner/Spinner.vue.js +39 -0
- package/dist/splitter/SplitterGroup.vue.d.ts +23 -0
- package/dist/splitter/SplitterGroup.vue.js +38 -0
- package/dist/splitter/SplitterPanel.vue.d.ts +26 -0
- package/dist/splitter/SplitterPanel.vue.js +43 -0
- package/dist/splitter/SplitterResizeHandle.vue.d.ts +22 -0
- package/dist/splitter/SplitterResizeHandle.vue.js +35 -0
- package/dist/switch/Switch.vue.d.ts +17 -0
- package/dist/switch/Switch.vue.js +1 -0
- package/dist/tab/Tab.vue.d.ts +24 -0
- package/dist/tab/Tab.vue.js +73 -0
- package/dist/tab/TabList.vue.d.ts +26 -0
- package/dist/tab/TabList.vue.js +29 -0
- package/dist/tab/TabPanel.vue.d.ts +23 -0
- package/dist/tab/TabPanel.vue.js +26 -0
- package/dist/tab/tab.variants.d.ts +9 -0
- package/dist/tab/tabKeys.d.ts +7 -0
- package/dist/table/Table.vue.d.ts +17 -0
- package/dist/table/Table.vue.js +21 -0
- package/dist/table/TableBody.vue.d.ts +17 -0
- package/dist/table/TableBody.vue.js +19 -0
- package/dist/table/TableCell.vue.d.ts +17 -0
- package/dist/table/TableCell.vue.js +19 -0
- package/dist/table/TableHead.vue.d.ts +17 -0
- package/dist/table/TableHead.vue.js +1 -0
- package/dist/table/TableHeader.vue.d.ts +17 -0
- package/dist/table/TableHeader.vue.js +19 -0
- package/dist/table/TableRow.vue.d.ts +17 -0
- package/dist/table/TableRow.vue.js +19 -0
- package/dist/table/TableSortHead.vue.d.ts +26 -0
- package/dist/table/TableSortHead.vue.js +45 -0
- package/dist/table/tableUtils.d.ts +3 -0
- package/dist/table/tableUtils.js +18 -0
- package/dist/tabs/Tabs.vue.d.ts +22 -0
- package/dist/tabs/Tabs.vue.js +41 -0
- package/dist/tabs/TabsContent.vue.d.ts +18 -0
- package/dist/tabs/TabsContent.vue.js +35 -0
- package/dist/tabs/TabsList.vue.d.ts +20 -0
- package/dist/tabs/TabsList.vue.js +36 -0
- package/dist/tabs/TabsTrigger.vue.d.ts +20 -0
- package/dist/tabs/TabsTrigger.vue.js +37 -0
- package/dist/tabs/tabs.variants.d.ts +21 -0
- package/dist/tags-input/TagsInput.vue.d.ts +32 -0
- package/dist/tags-input/TagsInput.vue.js +96 -0
- package/dist/tags-input/TagsInputInput.vue.d.ts +9 -0
- package/dist/tags-input/TagsInputInput.vue.js +54 -0
- package/dist/tags-input/TagsInputItem.vue.d.ts +18 -0
- package/dist/tags-input/TagsInputItem.vue.js +32 -0
- package/dist/tags-input/TagsInputItemDelete.vue.d.ts +18 -0
- package/dist/tags-input/TagsInputItemDelete.vue.js +33 -0
- package/dist/tags-input/TagsInputItemText.vue.d.ts +8 -0
- package/dist/tags-input/TagsInputItemText.vue.js +26 -0
- package/dist/tags-input/tagsInputContext.d.ts +4 -0
- package/dist/textarea/Textarea.vue.d.ts +17 -0
- package/dist/textarea/Textarea.vue.js +31 -0
- package/dist/toast/ToastClose.vue.d.ts +8 -0
- package/dist/toast/ToastClose.vue.js +40 -0
- package/dist/toast/ToastDescription.vue.d.ts +18 -0
- package/dist/toast/ToastDescription.vue.js +29 -0
- package/dist/toast/ToastDock.vue.d.ts +13 -0
- package/dist/toast/ToastDock.vue.js +27 -0
- package/dist/toast/ToastPanel.vue.d.ts +30 -0
- package/dist/toast/ToastPanel.vue.js +45 -0
- package/dist/toast/ToastRoot.vue.d.ts +100 -0
- package/dist/toast/ToastRoot.vue.js +53 -0
- package/dist/toast/ToastTitle.vue.d.ts +18 -0
- package/dist/toast/ToastTitle.vue.js +29 -0
- package/dist/toast/ToastViewport.vue.d.ts +9 -0
- package/dist/toast/ToastViewport.vue.js +31 -0
- package/dist/toggle-group/ToggleGroup.vue.d.ts +25 -0
- package/dist/toggle-group/ToggleGroup.vue.js +59 -0
- package/dist/toggle-group/ToggleGroupItem.vue.d.ts +21 -0
- package/dist/toggle-group/ToggleGroupItem.vue.js +43 -0
- package/dist/toggle-group/toggleGroup.variants.d.ts +24 -0
- package/dist/tooltip/TextTooltip.vue.d.ts +20 -0
- package/dist/tooltip/TextTooltip.vue.js +1 -0
- package/dist/tooltip/Tooltip.vue.d.ts +23 -0
- package/dist/tooltip/Tooltip.vue.js +1 -0
- package/dist/tooltip/TooltipContent.vue.d.ts +24 -0
- package/dist/tooltip/TooltipContent.vue.js +1 -0
- package/dist/tooltip/TooltipProvider.vue.d.ts +15 -0
- package/dist/tooltip/TooltipProvider.vue.js +37 -0
- package/dist/tooltip/TooltipTrigger.vue.d.ts +14 -0
- package/dist/tooltip/TooltipTrigger.vue.js +1 -0
- package/dist/tooltip/tooltipConfig.d.ts +5 -0
- package/dist/tooltip/tooltipConfig.js +7 -0
- package/dist/tooltip/tooltipContext.d.ts +2 -0
- package/dist/transition/TransitionCollapse.vue.d.ts +21 -0
- package/dist/transition/TransitionCollapse.vue.js +1 -0
- package/dist/tree/Tree.vue.d.ts +32 -0
- package/dist/tree/Tree.vue.js +53 -0
- package/dist/tree/TreeItem.vue.d.ts +29 -0
- package/dist/tree/TreeItem.vue.js +80 -0
- package/dist/tree/treeStyles.d.ts +4 -0
- package/dist/tree/treeStyles.js +6 -0
- package/dist-types/button.variants.d.ts +16 -0
- package/dist-types/select.variants.d.ts +24 -0
- package/dist-types/tag.variants.d.ts +21 -0
- package/dist-types/workspaceAvatar.d.ts +5 -0
- package/package.json +186 -8
- package/src/button.variants.ts +84 -0
- package/src/css/_deprecated-aliases.css +12 -0
- package/src/css/_legacy-palette.css +33 -0
- package/src/css/_legacy-ui.css +418 -0
- package/src/css/_markdown.css +227 -0
- package/src/css/_mask-editor.css +179 -0
- package/src/css/_palette.css +40 -4
- package/src/css/base.css +0 -6
- package/src/css/component-support.css +69 -0
- package/src/css/iconSizing.test.ts +80 -0
- package/src/css/iconifyDynamicPlugin.ts +15 -6
- package/src/css/icons.test.ts +17 -0
- package/src/css/lucideStrokePlugin.js +5 -6
- package/src/css/published.css +3 -0
- package/src/css/style.css +5 -1909
- package/src/css/theme.css +243 -0
- package/src/css/themes/void.css +102 -0
- package/src/icons/README.md +61 -97
- package/src/icons/astroid-filled.svg +3 -0
- package/src/icons/claude.svg +1 -1
- package/src/select.variants.ts +53 -0
- package/src/tag.variants.ts +38 -0
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { t as cn } from "../shared/src-DTwuqov4.js";
|
|
2
|
+
import { createBlock, defineComponent, mergeProps, openBlock, renderSlot, unref, withCtx } from "vue";
|
|
3
|
+
import { RadioGroupRoot, useForwardPropsEmits } from "reka-ui";
|
|
4
|
+
import { reactiveOmit } from "@vueuse/core";
|
|
5
|
+
// src/components/radio-group/RadioGroup.vue
|
|
6
|
+
var RadioGroup_default = /* @__PURE__ */ defineComponent({
|
|
7
|
+
__name: "RadioGroup",
|
|
8
|
+
props: {
|
|
9
|
+
modelValue: {},
|
|
10
|
+
defaultValue: {},
|
|
11
|
+
disabled: { type: Boolean },
|
|
12
|
+
orientation: {},
|
|
13
|
+
dir: {},
|
|
14
|
+
loop: { type: Boolean },
|
|
15
|
+
asChild: { type: Boolean },
|
|
16
|
+
as: {},
|
|
17
|
+
name: {},
|
|
18
|
+
required: { type: Boolean },
|
|
19
|
+
class: { type: [
|
|
20
|
+
Boolean,
|
|
21
|
+
null,
|
|
22
|
+
String,
|
|
23
|
+
Object,
|
|
24
|
+
Array
|
|
25
|
+
] }
|
|
26
|
+
},
|
|
27
|
+
emits: ["update:modelValue"],
|
|
28
|
+
setup(__props, { emit: __emit }) {
|
|
29
|
+
const props = __props;
|
|
30
|
+
const emits = __emit;
|
|
31
|
+
const forwarded = useForwardPropsEmits(reactiveOmit(props, "class"), emits);
|
|
32
|
+
return (_ctx, _cache) => {
|
|
33
|
+
return openBlock(), createBlock(unref(RadioGroupRoot), mergeProps(unref(forwarded), {
|
|
34
|
+
"data-slot": "radio-group",
|
|
35
|
+
class: unref(cn)("flex gap-2", props.class)
|
|
36
|
+
}), {
|
|
37
|
+
default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
|
|
38
|
+
_: 3
|
|
39
|
+
}, 16, ["class"]);
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
});
|
|
43
|
+
export { RadioGroup_default as default };
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { RadioGroupItemProps } from 'reka-ui';
|
|
2
|
+
import { HTMLAttributes } from 'vue';
|
|
3
|
+
type __VLS_Props = RadioGroupItemProps & {
|
|
4
|
+
class?: HTMLAttributes['class'];
|
|
5
|
+
};
|
|
6
|
+
declare var __VLS_8: {};
|
|
7
|
+
type __VLS_Slots = {} & {
|
|
8
|
+
default?: (props: typeof __VLS_8) => any;
|
|
9
|
+
};
|
|
10
|
+
declare const __VLS_base: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
11
|
+
select: (event: import('reka-ui').RadioGroupItemSelectEvent) => any;
|
|
12
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
13
|
+
onSelect?: ((event: import('reka-ui').RadioGroupItemSelectEvent) => any) | undefined;
|
|
14
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
15
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
16
|
+
declare const _default: typeof __VLS_export;
|
|
17
|
+
export default _default;
|
|
18
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
19
|
+
new (): {
|
|
20
|
+
$slots: S;
|
|
21
|
+
};
|
|
22
|
+
};
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { t as cn } from "../shared/src-DTwuqov4.js";
|
|
2
|
+
import { createBlock, createVNode, defineComponent, mergeProps, openBlock, renderSlot, unref, withCtx } from "vue";
|
|
3
|
+
import { RadioGroupIndicator, RadioGroupItem, useForwardPropsEmits } from "reka-ui";
|
|
4
|
+
import { reactiveOmit } from "@vueuse/core";
|
|
5
|
+
// src/components/radio-group/RadioGroupItem.vue
|
|
6
|
+
var RadioGroupItem_default = /* @__PURE__ */ defineComponent({
|
|
7
|
+
__name: "RadioGroupItem",
|
|
8
|
+
props: {
|
|
9
|
+
id: {},
|
|
10
|
+
value: {},
|
|
11
|
+
disabled: { type: Boolean },
|
|
12
|
+
asChild: { type: Boolean },
|
|
13
|
+
as: {},
|
|
14
|
+
name: {},
|
|
15
|
+
required: { type: Boolean },
|
|
16
|
+
class: { type: [
|
|
17
|
+
Boolean,
|
|
18
|
+
null,
|
|
19
|
+
String,
|
|
20
|
+
Object,
|
|
21
|
+
Array
|
|
22
|
+
] }
|
|
23
|
+
},
|
|
24
|
+
emits: ["select"],
|
|
25
|
+
setup(__props, { emit: __emit }) {
|
|
26
|
+
const props = __props;
|
|
27
|
+
const emits = __emit;
|
|
28
|
+
const forwarded = useForwardPropsEmits(reactiveOmit(props, "class"), emits);
|
|
29
|
+
return (_ctx, _cache) => {
|
|
30
|
+
return openBlock(), createBlock(unref(RadioGroupItem), mergeProps(unref(forwarded), {
|
|
31
|
+
"data-slot": "radio-group-item",
|
|
32
|
+
class: unref(cn)("inline-flex size-4 shrink-0 cursor-pointer items-center justify-center rounded-full border bg-transparent outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:border-primary", props.class)
|
|
33
|
+
}), {
|
|
34
|
+
default: withCtx(() => [renderSlot(_ctx.$slots, "default", {}, () => [createVNode(unref(RadioGroupIndicator), { class: "size-2 rounded-full bg-primary" })])]),
|
|
35
|
+
_: 3
|
|
36
|
+
}, 16, ["class"]);
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
});
|
|
40
|
+
export { RadioGroupItem_default as default };
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { HTMLAttributes, MaybeRefOrGetter } from 'vue';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
accessibleLabel: string;
|
|
4
|
+
clearLabel: string;
|
|
5
|
+
placeholder?: string;
|
|
6
|
+
searcher?: (query: string, onCleanup: (cleanupFn: () => void) => void) => Promise<void>;
|
|
7
|
+
updateKey?: MaybeRefOrGetter<unknown>;
|
|
8
|
+
autofocus?: boolean;
|
|
9
|
+
debounceMs?: number;
|
|
10
|
+
debounceMaxWaitMs?: number;
|
|
11
|
+
class?: HTMLAttributes['class'];
|
|
12
|
+
};
|
|
13
|
+
type __VLS_ModelProps = {
|
|
14
|
+
modelValue?: string;
|
|
15
|
+
};
|
|
16
|
+
type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
|
|
17
|
+
declare const __VLS_export: import('vue').DefineComponent<__VLS_PublicProps, {
|
|
18
|
+
focus: () => void | undefined;
|
|
19
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
20
|
+
"update:modelValue": (value: string) => any;
|
|
21
|
+
enter: (event: KeyboardEvent) => any;
|
|
22
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
23
|
+
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
24
|
+
onEnter?: ((event: KeyboardEvent) => any) | undefined;
|
|
25
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
26
|
+
declare const _default: typeof __VLS_export;
|
|
27
|
+
export default _default;
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
import { t as cn } from "../shared/src-DTwuqov4.js";
|
|
2
|
+
import { createCommentVNode, createElementBlock, createElementVNode, defineComponent, mergeModels, nextTick, normalizeClass, onMounted, openBlock, ref, toRef, toValue, unref, useModel, vModelText, watch, withDirectives, withKeys } from "vue";
|
|
3
|
+
import { refDebounced } from "@vueuse/core";
|
|
4
|
+
// src/components/search-input/AsyncSearchInput.vue?vue&type=script&setup=true&lang.ts
|
|
5
|
+
var _hoisted_1 = [
|
|
6
|
+
"placeholder",
|
|
7
|
+
"aria-label",
|
|
8
|
+
"autofocus"
|
|
9
|
+
];
|
|
10
|
+
var _hoisted_2 = ["aria-label"];
|
|
11
|
+
// src/components/search-input/AsyncSearchInput.vue
|
|
12
|
+
var AsyncSearchInput_default = /* @__PURE__ */ defineComponent({
|
|
13
|
+
__name: "AsyncSearchInput",
|
|
14
|
+
props: /*@__PURE__*/ mergeModels({
|
|
15
|
+
accessibleLabel: {},
|
|
16
|
+
clearLabel: {},
|
|
17
|
+
placeholder: {},
|
|
18
|
+
searcher: {
|
|
19
|
+
type: Function,
|
|
20
|
+
default: async () => {}
|
|
21
|
+
},
|
|
22
|
+
updateKey: {},
|
|
23
|
+
autofocus: {
|
|
24
|
+
type: Boolean,
|
|
25
|
+
default: false
|
|
26
|
+
},
|
|
27
|
+
debounceMs: { default: 250 },
|
|
28
|
+
debounceMaxWaitMs: { default: 1e3 },
|
|
29
|
+
class: { type: [
|
|
30
|
+
Boolean,
|
|
31
|
+
null,
|
|
32
|
+
String,
|
|
33
|
+
Object,
|
|
34
|
+
Array
|
|
35
|
+
] }
|
|
36
|
+
}, {
|
|
37
|
+
"modelValue": { default: "" },
|
|
38
|
+
"modelModifiers": {}
|
|
39
|
+
}),
|
|
40
|
+
emits: /*@__PURE__*/ mergeModels(["enter"], ["update:modelValue"]),
|
|
41
|
+
setup(__props, { expose: __expose, emit: __emit }) {
|
|
42
|
+
const emit = __emit;
|
|
43
|
+
const searchQuery = useModel(__props, "modelValue");
|
|
44
|
+
const inputRef = ref();
|
|
45
|
+
onMounted(() => {
|
|
46
|
+
if (!__props.autofocus) return;
|
|
47
|
+
nextTick(() => inputRef.value?.focus());
|
|
48
|
+
});
|
|
49
|
+
__expose({ focus: () => inputRef.value?.focus() });
|
|
50
|
+
const isQuerying = ref(false);
|
|
51
|
+
const debouncedSearchQuery = refDebounced(searchQuery, __props.debounceMs, { maxWait: __props.debounceMaxWaitMs });
|
|
52
|
+
watch(searchQuery, (value) => {
|
|
53
|
+
isQuerying.value = value !== debouncedSearchQuery.value;
|
|
54
|
+
});
|
|
55
|
+
const updateKeyRef = toRef(() => toValue(__props.updateKey));
|
|
56
|
+
watch([debouncedSearchQuery, updateKeyRef], (_, __, onCleanup) => {
|
|
57
|
+
let isCleanup = false;
|
|
58
|
+
let cleanupFn;
|
|
59
|
+
onCleanup(() => {
|
|
60
|
+
isCleanup = true;
|
|
61
|
+
cleanupFn?.();
|
|
62
|
+
});
|
|
63
|
+
__props.searcher(debouncedSearchQuery.value, (cb) => cleanupFn = cb).catch((error) => {
|
|
64
|
+
console.error("[AsyncSearchInput] searcher failed", error);
|
|
65
|
+
}).finally(() => {
|
|
66
|
+
if (!isCleanup) isQuerying.value = false;
|
|
67
|
+
});
|
|
68
|
+
}, { immediate: true });
|
|
69
|
+
function handleFocus(event) {
|
|
70
|
+
const target = event.target;
|
|
71
|
+
if (target instanceof HTMLInputElement) target.select();
|
|
72
|
+
}
|
|
73
|
+
function handleKeydownEnter(event) {
|
|
74
|
+
if (event.isComposing) return;
|
|
75
|
+
emit("enter", event);
|
|
76
|
+
}
|
|
77
|
+
return (_ctx, _cache) => {
|
|
78
|
+
return openBlock(), createElementBlock("label", { class: normalizeClass(unref(cn)("group", "rounded-lg bg-secondary transition-all duration-150", "flex flex-1 items-center", "border-0 text-foreground", "focus-within:ring focus-within:ring-ring", __props.class)) }, [
|
|
79
|
+
createElementVNode("i", { class: normalizeClass(unref(cn)("ml-2 transition-colors duration-150", isQuerying.value ? "icon-[lucide--loader-circle] animate-spin" : "icon-[lucide--search]", searchQuery.value?.trim() !== "" ? "text-foreground" : "text-muted-foreground group-focus-within:text-foreground group-hover:text-foreground")) }, null, 2),
|
|
80
|
+
withDirectives(createElementVNode("input", {
|
|
81
|
+
ref_key: "inputRef",
|
|
82
|
+
ref: inputRef,
|
|
83
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => searchQuery.value = $event),
|
|
84
|
+
type: "text",
|
|
85
|
+
class: "mx-2 my-1.5 h-5 w-full min-w-0 border-0 bg-transparent text-sm ring-0 outline-0",
|
|
86
|
+
placeholder: __props.placeholder,
|
|
87
|
+
"aria-label": __props.accessibleLabel,
|
|
88
|
+
autofocus: __props.autofocus,
|
|
89
|
+
onFocus: handleFocus,
|
|
90
|
+
onKeydown: withKeys(handleKeydownEnter, ["enter"])
|
|
91
|
+
}, null, 40, _hoisted_1), [[vModelText, searchQuery.value]]),
|
|
92
|
+
searchQuery.value.trim().length > 0 ? (openBlock(), createElementBlock("button", {
|
|
93
|
+
key: 0,
|
|
94
|
+
class: "m-0 flex shrink-0 items-center justify-center border-0 bg-transparent p-0 pr-3 pl-1 text-muted-foreground ring-0 outline-0 transition-all duration-150 hover:scale-108 hover:text-foreground",
|
|
95
|
+
"aria-label": __props.clearLabel,
|
|
96
|
+
onClick: _cache[1] || (_cache[1] = ($event) => searchQuery.value = "")
|
|
97
|
+
}, [createElementVNode("i", { class: normalizeClass(unref(cn)("icon-[lucide--delete] cursor-pointer")) }, null, 2)], 8, _hoisted_2)) : createCommentVNode("", true)
|
|
98
|
+
], 2);
|
|
99
|
+
};
|
|
100
|
+
}
|
|
101
|
+
});
|
|
102
|
+
export { AsyncSearchInput_default as default };
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { HTMLAttributes, StyleValue } from 'vue';
|
|
2
|
+
import { SearchInputVariants } from './searchInput.variants';
|
|
3
|
+
declare const __VLS_export: <T>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
4
|
+
props: import('vue').PublicProps & __VLS_PrettifyLocal<({
|
|
5
|
+
placeholder?: string;
|
|
6
|
+
accessibleLabel: string;
|
|
7
|
+
clearLabel: string;
|
|
8
|
+
icon?: string;
|
|
9
|
+
autofocus?: boolean;
|
|
10
|
+
inputId?: string;
|
|
11
|
+
loading?: boolean;
|
|
12
|
+
disabled?: boolean;
|
|
13
|
+
openOnFocus?: boolean;
|
|
14
|
+
updateModelOnSelect?: boolean;
|
|
15
|
+
size?: SearchInputVariants["size"];
|
|
16
|
+
suggestions?: T[];
|
|
17
|
+
optionLabel?: keyof T & string;
|
|
18
|
+
optionKey?: keyof T & string;
|
|
19
|
+
class?: HTMLAttributes["class"];
|
|
20
|
+
anchorClass?: HTMLAttributes["class"];
|
|
21
|
+
contentStyle?: StyleValue;
|
|
22
|
+
} & {
|
|
23
|
+
modelValue: string;
|
|
24
|
+
}) & {
|
|
25
|
+
onSelect?: ((item: T) => any) | undefined;
|
|
26
|
+
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
27
|
+
onHighlight?: ((item: T | undefined) => any) | undefined;
|
|
28
|
+
}> & (typeof globalThis extends {
|
|
29
|
+
__VLS_PROPS_FALLBACK: infer P;
|
|
30
|
+
} ? P : {});
|
|
31
|
+
expose: (exposed: import('vue').ShallowUnwrapRef<{
|
|
32
|
+
focus: () => void;
|
|
33
|
+
open: () => void;
|
|
34
|
+
}>) => void;
|
|
35
|
+
attrs: any;
|
|
36
|
+
slots: {
|
|
37
|
+
leading?: (props: {}) => any;
|
|
38
|
+
} & {
|
|
39
|
+
suggestion?: (props: {
|
|
40
|
+
suggestion: T;
|
|
41
|
+
}) => any;
|
|
42
|
+
};
|
|
43
|
+
emit: (((evt: "select", item: T) => void) & ((evt: "highlight", item: T | undefined) => void)) & ((event: "update:modelValue", value: string) => void);
|
|
44
|
+
}>) => import('vue').VNode & {
|
|
45
|
+
__ctx?: NonNullable<Awaited<typeof __VLS_setup>>;
|
|
46
|
+
};
|
|
47
|
+
declare const _default: typeof __VLS_export;
|
|
48
|
+
export default _default;
|
|
49
|
+
type __VLS_PrettifyLocal<T> = (T extends any ? {
|
|
50
|
+
[K in keyof T]: T[K];
|
|
51
|
+
} : {
|
|
52
|
+
[K in keyof T as K]: T[K];
|
|
53
|
+
}) & {};
|
|
@@ -0,0 +1,232 @@
|
|
|
1
|
+
import { t as cn } from "../shared/src-DTwuqov4.js";
|
|
2
|
+
import { t as Button_default } from "../shared/Button-Dj_H5v3V.js";
|
|
3
|
+
import { n as searchInputVariants, t as searchInputSizeConfig } from "../shared/searchInput.variants-BdYHNjce.js";
|
|
4
|
+
import { Fragment, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createTextVNode, createVNode, defineComponent, mergeModels, nextTick, normalizeClass, normalizeStyle, openBlock, ref, renderList, renderSlot, toDisplayString, unref, useModel, useTemplateRef, watch, withCtx, withKeys, withModifiers } from "vue";
|
|
5
|
+
import { ComboboxAnchor, ComboboxContent, ComboboxInput, ComboboxItem, ComboboxPortal, ComboboxRoot } from "reka-ui";
|
|
6
|
+
// src/components/search-input/SearchAutocomplete.vue
|
|
7
|
+
var SearchAutocomplete_default = /* @__PURE__ */ defineComponent({
|
|
8
|
+
__name: "SearchAutocomplete",
|
|
9
|
+
props: /*@__PURE__*/ mergeModels({
|
|
10
|
+
placeholder: {},
|
|
11
|
+
accessibleLabel: {},
|
|
12
|
+
clearLabel: {},
|
|
13
|
+
icon: { default: "icon-[lucide--search]" },
|
|
14
|
+
autofocus: {
|
|
15
|
+
type: Boolean,
|
|
16
|
+
default: false
|
|
17
|
+
},
|
|
18
|
+
inputId: {},
|
|
19
|
+
loading: {
|
|
20
|
+
type: Boolean,
|
|
21
|
+
default: false
|
|
22
|
+
},
|
|
23
|
+
disabled: {
|
|
24
|
+
type: Boolean,
|
|
25
|
+
default: false
|
|
26
|
+
},
|
|
27
|
+
openOnFocus: {
|
|
28
|
+
type: Boolean,
|
|
29
|
+
default: false
|
|
30
|
+
},
|
|
31
|
+
updateModelOnSelect: {
|
|
32
|
+
type: Boolean,
|
|
33
|
+
default: true
|
|
34
|
+
},
|
|
35
|
+
size: { default: "md" },
|
|
36
|
+
suggestions: { default: () => [] },
|
|
37
|
+
optionLabel: {},
|
|
38
|
+
optionKey: {},
|
|
39
|
+
class: { type: [
|
|
40
|
+
Boolean,
|
|
41
|
+
null,
|
|
42
|
+
String,
|
|
43
|
+
Object,
|
|
44
|
+
Array
|
|
45
|
+
] },
|
|
46
|
+
anchorClass: { type: [
|
|
47
|
+
Boolean,
|
|
48
|
+
null,
|
|
49
|
+
String,
|
|
50
|
+
Object,
|
|
51
|
+
Array
|
|
52
|
+
] },
|
|
53
|
+
contentStyle: { type: [
|
|
54
|
+
Boolean,
|
|
55
|
+
null,
|
|
56
|
+
String,
|
|
57
|
+
Object,
|
|
58
|
+
Array
|
|
59
|
+
] }
|
|
60
|
+
}, {
|
|
61
|
+
"modelValue": { required: true },
|
|
62
|
+
"modelModifiers": {}
|
|
63
|
+
}),
|
|
64
|
+
emits: /*@__PURE__*/ mergeModels(["select", "highlight"], ["update:modelValue"]),
|
|
65
|
+
setup(__props, { expose: __expose, emit: __emit }) {
|
|
66
|
+
const emit = __emit;
|
|
67
|
+
const sizeConfig = computed(() => searchInputSizeConfig[__props.size]);
|
|
68
|
+
const modelValue = useModel(__props, "modelValue");
|
|
69
|
+
const comboboxRef = useTemplateRef("comboboxRef");
|
|
70
|
+
const inputRef = ref(null);
|
|
71
|
+
const isOpen = ref(false);
|
|
72
|
+
const isComposing = ref(false);
|
|
73
|
+
function focus() {
|
|
74
|
+
inputRef.value?.$el?.focus();
|
|
75
|
+
}
|
|
76
|
+
function open() {
|
|
77
|
+
isOpen.value = true;
|
|
78
|
+
}
|
|
79
|
+
__expose({
|
|
80
|
+
focus,
|
|
81
|
+
open
|
|
82
|
+
});
|
|
83
|
+
function clearSearch() {
|
|
84
|
+
modelValue.value = "";
|
|
85
|
+
focus();
|
|
86
|
+
}
|
|
87
|
+
function getItemProperty(item, key) {
|
|
88
|
+
if (typeof item === "object" && item !== null) return String(item[key]);
|
|
89
|
+
return String(item);
|
|
90
|
+
}
|
|
91
|
+
function suggestionLabel(item) {
|
|
92
|
+
if (__props.optionLabel) return getItemProperty(item, __props.optionLabel);
|
|
93
|
+
return String(item);
|
|
94
|
+
}
|
|
95
|
+
function suggestionKey(item, index) {
|
|
96
|
+
if (__props.optionKey) return getItemProperty(item, __props.optionKey);
|
|
97
|
+
return `${suggestionLabel(item)}-${index}`;
|
|
98
|
+
}
|
|
99
|
+
function suggestionValue(item) {
|
|
100
|
+
return suggestionLabel(item);
|
|
101
|
+
}
|
|
102
|
+
function onSelectSuggestion(item) {
|
|
103
|
+
if (__props.updateModelOnSelect) modelValue.value = suggestionLabel(item);
|
|
104
|
+
isOpen.value = false;
|
|
105
|
+
emit("select", item);
|
|
106
|
+
}
|
|
107
|
+
function onHighlight(payload) {
|
|
108
|
+
const index = Number(payload?.ref.dataset.suggestionIndex);
|
|
109
|
+
emit("highlight", Number.isInteger(index) ? __props.suggestions[index] : void 0);
|
|
110
|
+
}
|
|
111
|
+
function keepShiftSelectionNative(e) {
|
|
112
|
+
if (e.target !== inputRef.value?.$el) return;
|
|
113
|
+
if (e.shiftKey && (e.key === "Home" || e.key === "End")) e.stopPropagation();
|
|
114
|
+
}
|
|
115
|
+
function onEnterKey(e) {
|
|
116
|
+
if (isComposing.value) {
|
|
117
|
+
e.preventDefault();
|
|
118
|
+
e.stopPropagation();
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
watch(() => __props.suggestions, async (items) => {
|
|
122
|
+
isOpen.value = items.length > 0 && (__props.openOnFocus || !!modelValue.value);
|
|
123
|
+
if (isOpen.value) {
|
|
124
|
+
await nextTick();
|
|
125
|
+
comboboxRef.value?.highlightFirstItem?.();
|
|
126
|
+
}
|
|
127
|
+
});
|
|
128
|
+
return (_ctx, _cache) => {
|
|
129
|
+
return openBlock(), createBlock(unref(ComboboxRoot), {
|
|
130
|
+
ref_key: "comboboxRef",
|
|
131
|
+
ref: comboboxRef,
|
|
132
|
+
open: isOpen.value,
|
|
133
|
+
"onUpdate:open": _cache[3] || (_cache[3] = ($event) => isOpen.value = $event),
|
|
134
|
+
"ignore-filter": "",
|
|
135
|
+
"reset-search-term-on-blur": false,
|
|
136
|
+
"reset-search-term-on-select": false,
|
|
137
|
+
disabled: __props.disabled,
|
|
138
|
+
"open-on-focus": __props.openOnFocus,
|
|
139
|
+
"open-on-click": __props.openOnFocus,
|
|
140
|
+
class: normalizeClass(__props.class),
|
|
141
|
+
onHighlight
|
|
142
|
+
}, {
|
|
143
|
+
default: withCtx(() => [createVNode(unref(ComboboxAnchor), {
|
|
144
|
+
class: normalizeClass(unref(cn)(unref(searchInputVariants)({ size: __props.size }), __props.disabled && "pointer-events-none opacity-50", __props.anchorClass)),
|
|
145
|
+
onClick: focus,
|
|
146
|
+
onKeydownCapture: keepShiftSelectionNative
|
|
147
|
+
}, {
|
|
148
|
+
default: withCtx(() => [
|
|
149
|
+
renderSlot(_ctx.$slots, "leading"),
|
|
150
|
+
modelValue.value ? (openBlock(), createBlock(unref(Button_default), {
|
|
151
|
+
key: 0,
|
|
152
|
+
class: normalizeClass(unref(cn)("absolute", sizeConfig.value.clearPos)),
|
|
153
|
+
variant: "textonly",
|
|
154
|
+
size: "icon-sm",
|
|
155
|
+
"aria-label": __props.clearLabel,
|
|
156
|
+
onClick: withModifiers(clearSearch, ["stop"])
|
|
157
|
+
}, {
|
|
158
|
+
default: withCtx(() => [createElementVNode("i", { class: normalizeClass(unref(cn)("icon-[lucide--x]", sizeConfig.value.icon)) }, null, 2)]),
|
|
159
|
+
_: 1
|
|
160
|
+
}, 8, ["class", "aria-label"])) : __props.loading ? (openBlock(), createElementBlock("i", {
|
|
161
|
+
key: 1,
|
|
162
|
+
class: normalizeClass(unref(cn)("pointer-events-none absolute icon-[lucide--loader-circle] animate-spin", sizeConfig.value.iconPos, sizeConfig.value.icon))
|
|
163
|
+
}, null, 2)) : (openBlock(), createElementBlock("i", {
|
|
164
|
+
key: 2,
|
|
165
|
+
class: normalizeClass(unref(cn)("pointer-events-none absolute", sizeConfig.value.iconPos, sizeConfig.value.icon, __props.icon))
|
|
166
|
+
}, null, 2)),
|
|
167
|
+
createVNode(unref(ComboboxInput), {
|
|
168
|
+
id: __props.inputId,
|
|
169
|
+
ref_key: "inputRef",
|
|
170
|
+
ref: inputRef,
|
|
171
|
+
modelValue: modelValue.value,
|
|
172
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => modelValue.value = $event),
|
|
173
|
+
class: normalizeClass(unref(cn)("h-full min-w-0 flex-1 border-none bg-transparent outline-none", sizeConfig.value.inputPl, sizeConfig.value.inputText)),
|
|
174
|
+
placeholder: __props.placeholder,
|
|
175
|
+
"aria-label": __props.accessibleLabel,
|
|
176
|
+
"auto-focus": __props.autofocus,
|
|
177
|
+
onCompositionstart: _cache[1] || (_cache[1] = ($event) => isComposing.value = true),
|
|
178
|
+
onCompositionend: _cache[2] || (_cache[2] = ($event) => isComposing.value = false),
|
|
179
|
+
onKeydown: withKeys(onEnterKey, ["enter"])
|
|
180
|
+
}, null, 8, [
|
|
181
|
+
"id",
|
|
182
|
+
"modelValue",
|
|
183
|
+
"class",
|
|
184
|
+
"placeholder",
|
|
185
|
+
"aria-label",
|
|
186
|
+
"auto-focus"
|
|
187
|
+
])
|
|
188
|
+
]),
|
|
189
|
+
_: 3
|
|
190
|
+
}, 8, ["class"]), (openBlock(), createBlock(unref(ComboboxPortal), { key: Number(isOpen.value) }, {
|
|
191
|
+
default: withCtx(() => [__props.suggestions.length > 0 ? (openBlock(), createBlock(unref(ComboboxContent), {
|
|
192
|
+
key: 0,
|
|
193
|
+
position: "popper",
|
|
194
|
+
"side-offset": 4,
|
|
195
|
+
style: normalizeStyle(__props.contentStyle),
|
|
196
|
+
class: normalizeClass(unref(cn)("z-overlay max-h-60 w-(--reka-combobox-trigger-width) overflow-y-auto", "rounded-lg border bg-background p-1 shadow-lg"))
|
|
197
|
+
}, {
|
|
198
|
+
default: withCtx(() => [(openBlock(true), createElementBlock(Fragment, null, renderList(__props.suggestions, (suggestion, index) => {
|
|
199
|
+
return openBlock(), createBlock(unref(ComboboxItem), {
|
|
200
|
+
key: suggestionKey(suggestion, index),
|
|
201
|
+
value: suggestionValue(suggestion),
|
|
202
|
+
"data-suggestion-index": index,
|
|
203
|
+
"aria-label": suggestionLabel(suggestion),
|
|
204
|
+
class: normalizeClass(unref(cn)("cursor-pointer rounded-sm px-3 py-2 text-sm outline-none", "data-highlighted:bg-accent")),
|
|
205
|
+
onSelect: withModifiers(($event) => onSelectSuggestion(suggestion), ["prevent"])
|
|
206
|
+
}, {
|
|
207
|
+
default: withCtx(() => [renderSlot(_ctx.$slots, "suggestion", { suggestion }, () => [createTextVNode(toDisplayString(suggestionLabel(suggestion)), 1)])]),
|
|
208
|
+
_: 2
|
|
209
|
+
}, 1032, [
|
|
210
|
+
"value",
|
|
211
|
+
"data-suggestion-index",
|
|
212
|
+
"aria-label",
|
|
213
|
+
"class",
|
|
214
|
+
"onSelect"
|
|
215
|
+
]);
|
|
216
|
+
}), 128))]),
|
|
217
|
+
_: 3
|
|
218
|
+
}, 8, ["style", "class"])) : createCommentVNode("", true)]),
|
|
219
|
+
_: 3
|
|
220
|
+
}))]),
|
|
221
|
+
_: 3
|
|
222
|
+
}, 8, [
|
|
223
|
+
"open",
|
|
224
|
+
"disabled",
|
|
225
|
+
"open-on-focus",
|
|
226
|
+
"open-on-click",
|
|
227
|
+
"class"
|
|
228
|
+
]);
|
|
229
|
+
};
|
|
230
|
+
}
|
|
231
|
+
});
|
|
232
|
+
export { SearchAutocomplete_default as default };
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { HTMLAttributes } from 'vue';
|
|
2
|
+
import { SearchInputVariants } from './searchInput.variants';
|
|
3
|
+
type __VLS_Props = {
|
|
4
|
+
placeholder?: string;
|
|
5
|
+
accessibleLabel: string;
|
|
6
|
+
clearLabel: string;
|
|
7
|
+
icon?: string;
|
|
8
|
+
debounceTime?: number;
|
|
9
|
+
autofocus?: boolean;
|
|
10
|
+
loading?: boolean;
|
|
11
|
+
invalid?: boolean;
|
|
12
|
+
disabled?: boolean;
|
|
13
|
+
size?: SearchInputVariants['size'];
|
|
14
|
+
class?: HTMLAttributes['class'];
|
|
15
|
+
};
|
|
16
|
+
declare function focus(): void;
|
|
17
|
+
type __VLS_ModelProps = {
|
|
18
|
+
modelValue: string;
|
|
19
|
+
};
|
|
20
|
+
type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
|
|
21
|
+
declare var __VLS_16: {
|
|
22
|
+
iconClass: "size-3" | "size-4";
|
|
23
|
+
positionClass: "left-2" | "left-3" | "left-2.5";
|
|
24
|
+
};
|
|
25
|
+
type __VLS_Slots = {} & {
|
|
26
|
+
trailing?: (props: typeof __VLS_16) => any;
|
|
27
|
+
};
|
|
28
|
+
declare const __VLS_base: import('vue').DefineComponent<__VLS_PublicProps, {
|
|
29
|
+
focus: typeof focus;
|
|
30
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
31
|
+
blur: () => any;
|
|
32
|
+
search: (value: string) => any;
|
|
33
|
+
"update:modelValue": (value: string) => any;
|
|
34
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
35
|
+
onBlur?: (() => any) | undefined;
|
|
36
|
+
onSearch?: ((value: string) => any) | undefined;
|
|
37
|
+
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
38
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
39
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
40
|
+
declare const _default: typeof __VLS_export;
|
|
41
|
+
export default _default;
|
|
42
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
43
|
+
new (): {
|
|
44
|
+
$slots: S;
|
|
45
|
+
};
|
|
46
|
+
};
|