@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,182 @@
|
|
|
1
|
+
import { t as cn } from "./src-DTwuqov4.js";
|
|
2
|
+
import { a as selectItemVariants, i as selectEmptyMessageClass, o as selectTriggerVariants, r as selectDropdownClass, s as stopEscapeToDocument, t as selectContentClass } from "./select.variants-cRXaATWS.js";
|
|
3
|
+
import { useSelectSearch } from "../select/useSelectSearch.js";
|
|
4
|
+
import { useAttrsClass } from "../composables/useAttrsClass.js";
|
|
5
|
+
import { usePopoverSizing } from "../composables/usePopoverSizing.js";
|
|
6
|
+
import { Fragment, computed, createBlock, createElementBlock, createElementVNode, createTextVNode, createVNode, defineComponent, mergeModels, mergeProps, normalizeClass, normalizeStyle, openBlock, ref, renderList, renderSlot, toDisplayString, unref, useModel, useTemplateRef, watch, withCtx, withModifiers } from "vue";
|
|
7
|
+
import { ComboboxAnchor, ComboboxContent, ComboboxEmpty, ComboboxInput, ComboboxItem, ComboboxItemIndicator, ComboboxPortal, ComboboxRoot, ComboboxTrigger, ComboboxViewport, FocusScope } from "reka-ui";
|
|
8
|
+
import { unrefElement } from "@vueuse/core";
|
|
9
|
+
// src/components/single-select/SearchableSingleSelect.vue?vue&type=script&setup=true&lang.ts
|
|
10
|
+
var _hoisted_1 = {
|
|
11
|
+
key: 0,
|
|
12
|
+
class: "icon-[lucide--loader-circle] animate-spin text-muted-foreground"
|
|
13
|
+
};
|
|
14
|
+
var _hoisted_2 = { class: "truncate" };
|
|
15
|
+
var _hoisted_3 = { class: "px-2 pt-2" };
|
|
16
|
+
var _hoisted_4 = { class: "flex items-center gap-2 rounded-lg border px-3 py-1.5" };
|
|
17
|
+
var _hoisted_5 = { class: "truncate" };
|
|
18
|
+
// src/components/single-select/SearchableSingleSelect.vue
|
|
19
|
+
var SearchableSingleSelect_default = /* @__PURE__ */ defineComponent({
|
|
20
|
+
inheritAttrs: false,
|
|
21
|
+
__name: "SearchableSingleSelect",
|
|
22
|
+
props: /*@__PURE__*/ mergeModels({
|
|
23
|
+
label: {},
|
|
24
|
+
accessibleLabel: {},
|
|
25
|
+
searchLabel: {},
|
|
26
|
+
emptyText: {},
|
|
27
|
+
options: { default: () => [] },
|
|
28
|
+
size: { default: "lg" },
|
|
29
|
+
invalid: {
|
|
30
|
+
type: Boolean,
|
|
31
|
+
default: false
|
|
32
|
+
},
|
|
33
|
+
loading: {
|
|
34
|
+
type: Boolean,
|
|
35
|
+
default: false
|
|
36
|
+
},
|
|
37
|
+
disabled: {
|
|
38
|
+
type: Boolean,
|
|
39
|
+
default: false
|
|
40
|
+
},
|
|
41
|
+
searchPlaceholder: {},
|
|
42
|
+
listMaxHeight: { default: "28rem" },
|
|
43
|
+
popoverMinWidth: {},
|
|
44
|
+
popoverMaxWidth: {},
|
|
45
|
+
contentStyle: { type: [
|
|
46
|
+
Boolean,
|
|
47
|
+
null,
|
|
48
|
+
String,
|
|
49
|
+
Object,
|
|
50
|
+
Array
|
|
51
|
+
] }
|
|
52
|
+
}, {
|
|
53
|
+
"modelValue": { required: true },
|
|
54
|
+
"modelModifiers": {}
|
|
55
|
+
}),
|
|
56
|
+
emits: ["update:modelValue"],
|
|
57
|
+
setup(__props) {
|
|
58
|
+
const { attrsClass, attrsWithoutClass } = useAttrsClass();
|
|
59
|
+
const selectedItem = useModel(__props, "modelValue");
|
|
60
|
+
const triggerRef = useTemplateRef("trigger");
|
|
61
|
+
const isOpen = ref(false);
|
|
62
|
+
const searchQuery = ref("");
|
|
63
|
+
const filteredOptions = useSelectSearch(searchQuery, () => __props.options);
|
|
64
|
+
const selectedOption = computed({
|
|
65
|
+
get: () => __props.options.find(({ value }) => value === selectedItem.value),
|
|
66
|
+
set: (option) => {
|
|
67
|
+
selectedItem.value = option?.value;
|
|
68
|
+
}
|
|
69
|
+
});
|
|
70
|
+
watch(isOpen, (open) => {
|
|
71
|
+
if (!open) searchQuery.value = "";
|
|
72
|
+
});
|
|
73
|
+
function onContentKeydown(event) {
|
|
74
|
+
if (event.key === "Tab") {
|
|
75
|
+
unrefElement(triggerRef)?.focus();
|
|
76
|
+
isOpen.value = false;
|
|
77
|
+
return;
|
|
78
|
+
}
|
|
79
|
+
if (event.key === "Escape") {
|
|
80
|
+
stopEscapeToDocument(event);
|
|
81
|
+
isOpen.value = false;
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
const optionStyle = usePopoverSizing({
|
|
85
|
+
minWidth: __props.popoverMinWidth,
|
|
86
|
+
maxWidth: __props.popoverMaxWidth
|
|
87
|
+
});
|
|
88
|
+
return (_ctx, _cache) => {
|
|
89
|
+
return openBlock(), createBlock(unref(ComboboxRoot), {
|
|
90
|
+
modelValue: selectedOption.value,
|
|
91
|
+
"onUpdate:modelValue": _cache[3] || (_cache[3] = ($event) => selectedOption.value = $event),
|
|
92
|
+
open: isOpen.value,
|
|
93
|
+
"onUpdate:open": _cache[4] || (_cache[4] = ($event) => isOpen.value = $event),
|
|
94
|
+
by: "value",
|
|
95
|
+
disabled: __props.disabled,
|
|
96
|
+
"ignore-filter": ""
|
|
97
|
+
}, {
|
|
98
|
+
default: withCtx(() => [createVNode(unref(ComboboxAnchor), { "as-child": "" }, {
|
|
99
|
+
default: withCtx(() => [createVNode(unref(ComboboxTrigger), mergeProps({ ref: "trigger" }, unref(attrsWithoutClass), {
|
|
100
|
+
tabindex: "0",
|
|
101
|
+
"aria-label": __props.accessibleLabel,
|
|
102
|
+
"aria-busy": __props.loading || void 0,
|
|
103
|
+
"aria-invalid": __props.invalid || void 0,
|
|
104
|
+
class: unref(cn)(unref(selectTriggerVariants)({
|
|
105
|
+
size: __props.size,
|
|
106
|
+
border: __props.invalid ? "invalid" : "none"
|
|
107
|
+
}), unref(attrsClass))
|
|
108
|
+
}), {
|
|
109
|
+
default: withCtx(() => [createElementVNode("div", { class: normalizeClass(unref(cn)("flex flex-1 items-center gap-2 overflow-hidden py-2 pl-2", __props.size === "md" ? "text-xs" : "text-sm")) }, [__props.loading ? (openBlock(), createElementBlock("i", _hoisted_1)) : renderSlot(_ctx.$slots, "icon", {}, void 0, void 0, 1), createElementVNode("span", _hoisted_2, toDisplayString(selectedOption.value?.name ?? __props.label), 1)], 2), createElementVNode("div", { class: normalizeClass(unref(selectDropdownClass)) }, [..._cache[5] || (_cache[5] = [createElementVNode("i", { class: "icon-[lucide--chevron-down] text-muted-foreground" }, null, -1)])], 2)]),
|
|
110
|
+
_: 3
|
|
111
|
+
}, 16, [
|
|
112
|
+
"aria-label",
|
|
113
|
+
"aria-busy",
|
|
114
|
+
"aria-invalid",
|
|
115
|
+
"class"
|
|
116
|
+
])]),
|
|
117
|
+
_: 3
|
|
118
|
+
}), (openBlock(), createBlock(unref(ComboboxPortal), { key: Number(isOpen.value) }, {
|
|
119
|
+
default: withCtx(() => [createVNode(unref(ComboboxContent), {
|
|
120
|
+
position: "popper",
|
|
121
|
+
"side-offset": 8,
|
|
122
|
+
align: "start",
|
|
123
|
+
style: normalizeStyle([unref(optionStyle), __props.contentStyle]),
|
|
124
|
+
class: normalizeClass(unref(cn)(unref(selectContentClass), "min-w-(--reka-combobox-trigger-width)")),
|
|
125
|
+
onKeydown: onContentKeydown
|
|
126
|
+
}, {
|
|
127
|
+
default: withCtx(() => [createVNode(unref(FocusScope), {
|
|
128
|
+
class: "contents",
|
|
129
|
+
onMountAutoFocus: _cache[1] || (_cache[1] = withModifiers(() => {}, ["prevent"])),
|
|
130
|
+
onUnmountAutoFocus: _cache[2] || (_cache[2] = withModifiers(() => {}, ["prevent"]))
|
|
131
|
+
}, {
|
|
132
|
+
default: withCtx(() => [createElementVNode("div", _hoisted_3, [createElementVNode("div", _hoisted_4, [_cache[6] || (_cache[6] = createElementVNode("i", { class: "icon-[lucide--search] text-muted-foreground" }, null, -1)), createVNode(unref(ComboboxInput), {
|
|
133
|
+
modelValue: searchQuery.value,
|
|
134
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => searchQuery.value = $event),
|
|
135
|
+
"aria-label": __props.searchLabel,
|
|
136
|
+
placeholder: __props.searchPlaceholder,
|
|
137
|
+
class: "w-full border-none bg-transparent text-sm outline-none"
|
|
138
|
+
}, null, 8, [
|
|
139
|
+
"modelValue",
|
|
140
|
+
"aria-label",
|
|
141
|
+
"placeholder"
|
|
142
|
+
])])]), createVNode(unref(ComboboxViewport), {
|
|
143
|
+
style: normalizeStyle({ maxHeight: `min(${__props.listMaxHeight}, 50vh)` }),
|
|
144
|
+
class: "scrollbar-custom w-full"
|
|
145
|
+
}, {
|
|
146
|
+
default: withCtx(() => [(openBlock(true), createElementBlock(Fragment, null, renderList(unref(filteredOptions), (opt) => {
|
|
147
|
+
return openBlock(), createBlock(unref(ComboboxItem), {
|
|
148
|
+
key: opt.value,
|
|
149
|
+
value: opt,
|
|
150
|
+
class: normalizeClass(unref(selectItemVariants)({ layout: "single" }))
|
|
151
|
+
}, {
|
|
152
|
+
default: withCtx(() => [createElementVNode("span", _hoisted_5, toDisplayString(opt.name), 1), createVNode(unref(ComboboxItemIndicator), { class: "flex shrink-0 items-center justify-center" }, {
|
|
153
|
+
default: withCtx(() => [..._cache[7] || (_cache[7] = [createElementVNode("i", {
|
|
154
|
+
class: "icon-[lucide--check] text-foreground",
|
|
155
|
+
"aria-hidden": "true"
|
|
156
|
+
}, null, -1)])]),
|
|
157
|
+
_: 1
|
|
158
|
+
})]),
|
|
159
|
+
_: 2
|
|
160
|
+
}, 1032, ["value", "class"]);
|
|
161
|
+
}), 128)), createVNode(unref(ComboboxEmpty), { class: normalizeClass(unref(selectEmptyMessageClass)) }, {
|
|
162
|
+
default: withCtx(() => [createTextVNode(toDisplayString(__props.emptyText), 1)]),
|
|
163
|
+
_: 1
|
|
164
|
+
}, 8, ["class"])]),
|
|
165
|
+
_: 1
|
|
166
|
+
}, 8, ["style"])]),
|
|
167
|
+
_: 1
|
|
168
|
+
})]),
|
|
169
|
+
_: 1
|
|
170
|
+
}, 8, ["style", "class"])]),
|
|
171
|
+
_: 1
|
|
172
|
+
}))]),
|
|
173
|
+
_: 3
|
|
174
|
+
}, 8, [
|
|
175
|
+
"modelValue",
|
|
176
|
+
"open",
|
|
177
|
+
"disabled"
|
|
178
|
+
]);
|
|
179
|
+
};
|
|
180
|
+
}
|
|
181
|
+
});
|
|
182
|
+
export { SearchableSingleSelect_default as t };
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { createBlock, defineComponent, guardReactiveProps, normalizeProps, openBlock, renderSlot, unref, withCtx } from "vue";
|
|
2
|
+
import { SelectRoot, useForwardPropsEmits } from "reka-ui";
|
|
3
|
+
// src/components/select/Select.vue
|
|
4
|
+
var Select_default = /* @__PURE__ */ defineComponent({
|
|
5
|
+
__name: "Select",
|
|
6
|
+
props: {
|
|
7
|
+
open: { type: Boolean },
|
|
8
|
+
defaultOpen: { type: Boolean },
|
|
9
|
+
defaultValue: {},
|
|
10
|
+
modelValue: {},
|
|
11
|
+
nullableValue: {},
|
|
12
|
+
by: { type: [String, Function] },
|
|
13
|
+
dir: {},
|
|
14
|
+
multiple: { type: Boolean },
|
|
15
|
+
autocomplete: {},
|
|
16
|
+
disabled: { type: Boolean },
|
|
17
|
+
name: {},
|
|
18
|
+
required: { type: Boolean }
|
|
19
|
+
},
|
|
20
|
+
emits: ["update:modelValue", "update:open"],
|
|
21
|
+
setup(__props, { emit: __emit }) {
|
|
22
|
+
const forwarded = useForwardPropsEmits(__props, __emit);
|
|
23
|
+
return (_ctx, _cache) => {
|
|
24
|
+
return openBlock(), createBlock(unref(SelectRoot), normalizeProps(guardReactiveProps(unref(forwarded))), {
|
|
25
|
+
default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
|
|
26
|
+
_: 3
|
|
27
|
+
}, 16);
|
|
28
|
+
};
|
|
29
|
+
}
|
|
30
|
+
});
|
|
31
|
+
export { Select_default as t };
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
import { t as cn } from "./src-DTwuqov4.js";
|
|
2
|
+
import { t as SelectScrollDownButton_default } from "./SelectScrollDownButton-DYmxtida.js";
|
|
3
|
+
import { t as SelectScrollUpButton_default } from "./SelectScrollUpButton-DiyvSb9O.js";
|
|
4
|
+
import { computed, createBlock, createPropsRestProxy, createVNode, defineComponent, mergeProps, normalizeClass, openBlock, renderSlot, unref, withCtx } from "vue";
|
|
5
|
+
import { SelectContent, SelectPortal, SelectViewport, useForwardPropsEmits } from "reka-ui";
|
|
6
|
+
// src/components/select/SelectContent.vue
|
|
7
|
+
var SelectContent_default = /* @__PURE__ */ defineComponent({
|
|
8
|
+
inheritAttrs: false,
|
|
9
|
+
__name: "SelectContent",
|
|
10
|
+
props: {
|
|
11
|
+
forceMount: { type: Boolean },
|
|
12
|
+
position: { default: "popper" },
|
|
13
|
+
bodyLock: { type: Boolean },
|
|
14
|
+
loop: { type: Boolean },
|
|
15
|
+
memoDependencies: {},
|
|
16
|
+
side: {},
|
|
17
|
+
sideOffset: {},
|
|
18
|
+
sideFlip: { type: Boolean },
|
|
19
|
+
align: {},
|
|
20
|
+
alignOffset: {},
|
|
21
|
+
alignFlip: { type: Boolean },
|
|
22
|
+
avoidCollisions: { type: Boolean },
|
|
23
|
+
collisionBoundary: {},
|
|
24
|
+
collisionPadding: {},
|
|
25
|
+
arrowPadding: {},
|
|
26
|
+
hideShiftedArrow: { type: Boolean },
|
|
27
|
+
sticky: {},
|
|
28
|
+
hideWhenDetached: { type: Boolean },
|
|
29
|
+
positionStrategy: {},
|
|
30
|
+
updatePositionStrategy: {},
|
|
31
|
+
disableUpdateOnLayoutShift: { type: Boolean },
|
|
32
|
+
prioritizePosition: { type: Boolean },
|
|
33
|
+
reference: {},
|
|
34
|
+
dir: {},
|
|
35
|
+
asChild: { type: Boolean },
|
|
36
|
+
as: {},
|
|
37
|
+
disableOutsidePointerEvents: { type: Boolean },
|
|
38
|
+
class: { type: [
|
|
39
|
+
Boolean,
|
|
40
|
+
null,
|
|
41
|
+
String,
|
|
42
|
+
Object,
|
|
43
|
+
Array
|
|
44
|
+
] },
|
|
45
|
+
disablePortal: {
|
|
46
|
+
type: Boolean,
|
|
47
|
+
default: false
|
|
48
|
+
}
|
|
49
|
+
},
|
|
50
|
+
emits: [
|
|
51
|
+
"closeAutoFocus",
|
|
52
|
+
"escapeKeyDown",
|
|
53
|
+
"pointerDownOutside"
|
|
54
|
+
],
|
|
55
|
+
setup(__props, { emit: __emit }) {
|
|
56
|
+
const restProps = createPropsRestProxy(__props, [
|
|
57
|
+
"position",
|
|
58
|
+
"disablePortal",
|
|
59
|
+
"class"
|
|
60
|
+
]);
|
|
61
|
+
const emits = __emit;
|
|
62
|
+
const delegatedProps = computed(() => ({
|
|
63
|
+
position: __props.position,
|
|
64
|
+
...restProps
|
|
65
|
+
}));
|
|
66
|
+
const forwarded = useForwardPropsEmits(delegatedProps, emits);
|
|
67
|
+
return (_ctx, _cache) => {
|
|
68
|
+
return openBlock(), createBlock(unref(SelectPortal), { disabled: __props.disablePortal }, {
|
|
69
|
+
default: withCtx(() => [createVNode(unref(SelectContent), mergeProps({
|
|
70
|
+
...unref(forwarded),
|
|
71
|
+
..._ctx.$attrs
|
|
72
|
+
}, { class: unref(cn)("relative z-overlay max-h-96 min-w-32 overflow-hidden", "mt-2 rounded-lg p-2", "bg-background text-foreground", "border border-solid", "shadow-md", "data-[state=closed]:animate-out data-[state=open]:animate-in", "data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0", "data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95", "data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2", "data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2", __props.position === "popper" && "data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1", __props.class) }), {
|
|
73
|
+
default: withCtx(() => [
|
|
74
|
+
renderSlot(_ctx.$slots, "prepend"),
|
|
75
|
+
createVNode(SelectScrollUpButton_default),
|
|
76
|
+
createVNode(unref(SelectViewport), { class: normalizeClass(unref(cn)("flex scrollbar-custom flex-col gap-0", __props.position === "popper" && "h-(--reka-select-trigger-height) w-full min-w-(--reka-select-trigger-width)")) }, {
|
|
77
|
+
default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
|
|
78
|
+
_: 3
|
|
79
|
+
}, 8, ["class"]),
|
|
80
|
+
createVNode(SelectScrollDownButton_default)
|
|
81
|
+
]),
|
|
82
|
+
_: 3
|
|
83
|
+
}, 16, ["class"])]),
|
|
84
|
+
_: 3
|
|
85
|
+
}, 8, ["disabled"]);
|
|
86
|
+
};
|
|
87
|
+
}
|
|
88
|
+
});
|
|
89
|
+
export { SelectContent_default as t };
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { t as cn } from "./src-DTwuqov4.js";
|
|
2
|
+
import { createBlock, createElementVNode, createPropsRestProxy, createVNode, defineComponent, mergeProps, normalizeClass, openBlock, renderSlot, unref, withCtx } from "vue";
|
|
3
|
+
import { SelectItem, SelectItemIndicator, SelectItemText } from "reka-ui";
|
|
4
|
+
// src/components/select/SelectItem.vue
|
|
5
|
+
var SelectItem_default = /* @__PURE__ */ defineComponent({
|
|
6
|
+
__name: "SelectItem",
|
|
7
|
+
props: {
|
|
8
|
+
value: {},
|
|
9
|
+
disabled: { type: Boolean },
|
|
10
|
+
textValue: {},
|
|
11
|
+
asChild: { type: Boolean },
|
|
12
|
+
as: {},
|
|
13
|
+
class: { type: [
|
|
14
|
+
Boolean,
|
|
15
|
+
null,
|
|
16
|
+
String,
|
|
17
|
+
Object,
|
|
18
|
+
Array
|
|
19
|
+
] },
|
|
20
|
+
textClass: { type: [
|
|
21
|
+
Boolean,
|
|
22
|
+
null,
|
|
23
|
+
String,
|
|
24
|
+
Object,
|
|
25
|
+
Array
|
|
26
|
+
] },
|
|
27
|
+
reserveIndicator: {
|
|
28
|
+
type: Boolean,
|
|
29
|
+
default: false
|
|
30
|
+
}
|
|
31
|
+
},
|
|
32
|
+
setup(__props) {
|
|
33
|
+
const restProps = createPropsRestProxy(__props, [
|
|
34
|
+
"class",
|
|
35
|
+
"textClass",
|
|
36
|
+
"reserveIndicator"
|
|
37
|
+
]);
|
|
38
|
+
return (_ctx, _cache) => {
|
|
39
|
+
return openBlock(), createBlock(unref(SelectItem), mergeProps(restProps, { class: unref(cn)("relative flex w-full cursor-pointer items-center justify-between select-none", "gap-3 rounded-sm px-2 py-3 text-sm outline-none", "hover:bg-accent", "focus:bg-accent", "data-[state=checked]:bg-muted", "data-[state=checked]:hover:bg-muted", "data-disabled:pointer-events-none data-disabled:opacity-50", __props.class) }), {
|
|
40
|
+
default: withCtx(() => [createVNode(unref(SelectItemText), { class: normalizeClass(unref(cn)("truncate", __props.textClass)) }, {
|
|
41
|
+
default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
|
|
42
|
+
_: 3
|
|
43
|
+
}, 8, ["class"]), createElementVNode("span", { class: normalizeClass(unref(cn)("flex shrink-0 items-center justify-center", __props.reserveIndicator ? "w-4" : "empty:hidden")) }, [createVNode(unref(SelectItemIndicator), { class: "flex items-center justify-center" }, {
|
|
44
|
+
default: withCtx(() => [..._cache[0] || (_cache[0] = [createElementVNode("i", {
|
|
45
|
+
class: "icon-[lucide--check] text-foreground",
|
|
46
|
+
"aria-hidden": "true"
|
|
47
|
+
}, null, -1)])]),
|
|
48
|
+
_: 1
|
|
49
|
+
})], 2)]),
|
|
50
|
+
_: 3
|
|
51
|
+
}, 16, ["class"]);
|
|
52
|
+
};
|
|
53
|
+
}
|
|
54
|
+
});
|
|
55
|
+
export { SelectItem_default as t };
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { t as cn } from "./src-DTwuqov4.js";
|
|
2
|
+
import { createBlock, createElementVNode, createPropsRestProxy, defineComponent, mergeProps, openBlock, renderSlot, unref, withCtx } from "vue";
|
|
3
|
+
import { SelectScrollDownButton } from "reka-ui";
|
|
4
|
+
// src/components/select/SelectScrollDownButton.vue
|
|
5
|
+
var SelectScrollDownButton_default = /* @__PURE__ */ defineComponent({
|
|
6
|
+
__name: "SelectScrollDownButton",
|
|
7
|
+
props: {
|
|
8
|
+
asChild: { type: Boolean },
|
|
9
|
+
as: {},
|
|
10
|
+
class: { type: [
|
|
11
|
+
Boolean,
|
|
12
|
+
null,
|
|
13
|
+
String,
|
|
14
|
+
Object,
|
|
15
|
+
Array
|
|
16
|
+
] }
|
|
17
|
+
},
|
|
18
|
+
setup(__props) {
|
|
19
|
+
const restProps = createPropsRestProxy(__props, ["class"]);
|
|
20
|
+
return (_ctx, _cache) => {
|
|
21
|
+
return openBlock(), createBlock(unref(SelectScrollDownButton), mergeProps(restProps, { class: unref(cn)("flex cursor-default items-center justify-center py-1 text-muted-foreground", __props.class) }), {
|
|
22
|
+
default: withCtx(() => [renderSlot(_ctx.$slots, "default", {}, () => [_cache[0] || (_cache[0] = createElementVNode("i", { class: "icon-[lucide--chevron-down]" }, null, -1))])]),
|
|
23
|
+
_: 3
|
|
24
|
+
}, 16, ["class"]);
|
|
25
|
+
};
|
|
26
|
+
}
|
|
27
|
+
});
|
|
28
|
+
export { SelectScrollDownButton_default as t };
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { t as cn } from "./src-DTwuqov4.js";
|
|
2
|
+
import { createBlock, createElementVNode, createPropsRestProxy, defineComponent, mergeProps, openBlock, renderSlot, unref, withCtx } from "vue";
|
|
3
|
+
import { SelectScrollUpButton } from "reka-ui";
|
|
4
|
+
// src/components/select/SelectScrollUpButton.vue
|
|
5
|
+
var SelectScrollUpButton_default = /* @__PURE__ */ defineComponent({
|
|
6
|
+
__name: "SelectScrollUpButton",
|
|
7
|
+
props: {
|
|
8
|
+
asChild: { type: Boolean },
|
|
9
|
+
as: {},
|
|
10
|
+
class: { type: [
|
|
11
|
+
Boolean,
|
|
12
|
+
null,
|
|
13
|
+
String,
|
|
14
|
+
Object,
|
|
15
|
+
Array
|
|
16
|
+
] }
|
|
17
|
+
},
|
|
18
|
+
setup(__props) {
|
|
19
|
+
const restProps = createPropsRestProxy(__props, ["class"]);
|
|
20
|
+
return (_ctx, _cache) => {
|
|
21
|
+
return openBlock(), createBlock(unref(SelectScrollUpButton), mergeProps(restProps, { class: unref(cn)("flex cursor-default items-center justify-center py-1 text-muted-foreground", __props.class) }), {
|
|
22
|
+
default: withCtx(() => [renderSlot(_ctx.$slots, "default", {}, () => [_cache[0] || (_cache[0] = createElementVNode("i", { class: "icon-[lucide--chevron-up]" }, null, -1))])]),
|
|
23
|
+
_: 3
|
|
24
|
+
}, 16, ["class"]);
|
|
25
|
+
};
|
|
26
|
+
}
|
|
27
|
+
});
|
|
28
|
+
export { SelectScrollUpButton_default as t };
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { t as cn } from "./src-DTwuqov4.js";
|
|
2
|
+
import { createBlock, createElementVNode, createPropsRestProxy, createVNode, defineComponent, mergeProps, openBlock, renderSlot, unref, withCtx } from "vue";
|
|
3
|
+
import { SelectIcon, SelectTrigger } from "reka-ui";
|
|
4
|
+
// src/components/select/SelectTrigger.vue
|
|
5
|
+
var SelectTrigger_default = /* @__PURE__ */ defineComponent({
|
|
6
|
+
__name: "SelectTrigger",
|
|
7
|
+
props: {
|
|
8
|
+
disabled: { type: Boolean },
|
|
9
|
+
reference: {},
|
|
10
|
+
asChild: { type: Boolean },
|
|
11
|
+
as: {},
|
|
12
|
+
class: { type: [
|
|
13
|
+
Boolean,
|
|
14
|
+
null,
|
|
15
|
+
String,
|
|
16
|
+
Object,
|
|
17
|
+
Array
|
|
18
|
+
] },
|
|
19
|
+
size: { default: "lg" },
|
|
20
|
+
invalid: {
|
|
21
|
+
type: Boolean,
|
|
22
|
+
default: false
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
setup(__props) {
|
|
26
|
+
const restProps = createPropsRestProxy(__props, [
|
|
27
|
+
"class",
|
|
28
|
+
"size",
|
|
29
|
+
"invalid"
|
|
30
|
+
]);
|
|
31
|
+
return (_ctx, _cache) => {
|
|
32
|
+
return openBlock(), createBlock(unref(SelectTrigger), mergeProps(restProps, {
|
|
33
|
+
"aria-invalid": __props.invalid || void 0,
|
|
34
|
+
class: unref(cn)("flex w-full cursor-pointer items-center justify-between select-none", __props.size === "md" ? "h-8 px-3 py-1 text-xs" : "h-10 px-4 py-2 text-sm", "rounded-lg", "bg-secondary text-foreground", "transition-all duration-200 ease-in-out", "hover:bg-accent", "border-[2.5px] border-solid", __props.invalid ? "border-destructive" : "border-transparent focus:border-border", "focus:outline-none", "data-placeholder:text-muted-foreground", "disabled:cursor-not-allowed disabled:opacity-30 disabled:hover:bg-secondary", "[&>span]:truncate", __props.class)
|
|
35
|
+
}), {
|
|
36
|
+
default: withCtx(() => [renderSlot(_ctx.$slots, "default"), createVNode(unref(SelectIcon), { "as-child": "" }, {
|
|
37
|
+
default: withCtx(() => [..._cache[0] || (_cache[0] = [createElementVNode("i", { class: "icon-[lucide--chevron-down] text-muted-foreground" }, null, -1)])]),
|
|
38
|
+
_: 1
|
|
39
|
+
})]),
|
|
40
|
+
_: 3
|
|
41
|
+
}, 16, ["aria-invalid", "class"]);
|
|
42
|
+
};
|
|
43
|
+
}
|
|
44
|
+
});
|
|
45
|
+
export { SelectTrigger_default as t };
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { createBlock, defineComponent, guardReactiveProps, normalizeProps, openBlock, renderSlot, unref, withCtx } from "vue";
|
|
2
|
+
import { SelectValue } from "reka-ui";
|
|
3
|
+
// src/components/select/SelectValue.vue
|
|
4
|
+
var SelectValue_default = /* @__PURE__ */ defineComponent({
|
|
5
|
+
__name: "SelectValue",
|
|
6
|
+
props: {
|
|
7
|
+
placeholder: {},
|
|
8
|
+
asChild: { type: Boolean },
|
|
9
|
+
as: {}
|
|
10
|
+
},
|
|
11
|
+
setup(__props) {
|
|
12
|
+
const props = __props;
|
|
13
|
+
return (_ctx, _cache) => {
|
|
14
|
+
return openBlock(), createBlock(unref(SelectValue), normalizeProps(guardReactiveProps(props)), {
|
|
15
|
+
default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
|
|
16
|
+
_: 3
|
|
17
|
+
}, 16);
|
|
18
|
+
};
|
|
19
|
+
}
|
|
20
|
+
});
|
|
21
|
+
export { SelectValue_default as t };
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import { t as cn } from "./src-DTwuqov4.js";
|
|
2
|
+
import { createBlock, createElementVNode, createVNode, defineComponent, mergeModels, normalizeClass, openBlock, unref, useModel, withCtx } from "vue";
|
|
3
|
+
import { SwitchRoot, SwitchThumb } from "reka-ui";
|
|
4
|
+
// src/components/switch/Switch.vue?vue&type=script&setup=true&lang.ts
|
|
5
|
+
var _hoisted_1 = { class: "pointer-events-none inline-flex h-5 w-9 items-center rounded-full border border-transparent bg-border px-0.5 transition-colors group-data-[state=checked]:bg-primary" };
|
|
6
|
+
// src/components/switch/Switch.vue
|
|
7
|
+
var Switch_default = /* @__PURE__ */ defineComponent({
|
|
8
|
+
__name: "Switch",
|
|
9
|
+
props: /*@__PURE__*/ mergeModels({
|
|
10
|
+
class: {
|
|
11
|
+
type: [
|
|
12
|
+
Boolean,
|
|
13
|
+
null,
|
|
14
|
+
String,
|
|
15
|
+
Object,
|
|
16
|
+
Array
|
|
17
|
+
],
|
|
18
|
+
default: ""
|
|
19
|
+
},
|
|
20
|
+
disabled: {
|
|
21
|
+
type: Boolean,
|
|
22
|
+
default: false
|
|
23
|
+
},
|
|
24
|
+
readonly: {
|
|
25
|
+
type: Boolean,
|
|
26
|
+
default: false
|
|
27
|
+
}
|
|
28
|
+
}, {
|
|
29
|
+
"modelValue": {
|
|
30
|
+
type: Boolean,
|
|
31
|
+
default: false
|
|
32
|
+
},
|
|
33
|
+
"modelModifiers": {}
|
|
34
|
+
}),
|
|
35
|
+
emits: ["update:modelValue"],
|
|
36
|
+
setup(__props) {
|
|
37
|
+
const modelValue = useModel(__props, "modelValue");
|
|
38
|
+
function updateModelValue(value) {
|
|
39
|
+
if (__props.readonly) return;
|
|
40
|
+
modelValue.value = value;
|
|
41
|
+
}
|
|
42
|
+
return (_ctx, _cache) => {
|
|
43
|
+
return openBlock(), createBlock(unref(SwitchRoot), {
|
|
44
|
+
"model-value": modelValue.value,
|
|
45
|
+
disabled: __props.disabled,
|
|
46
|
+
"aria-readonly": __props.readonly || void 0,
|
|
47
|
+
class: normalizeClass(unref(cn)("group inline-flex h-6 w-10 shrink-0 cursor-pointer touch-manipulation items-center justify-center rounded-full border-0 bg-transparent p-0 transition-shadow outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 aria-readonly:cursor-default", __props.class)),
|
|
48
|
+
"onUpdate:modelValue": updateModelValue
|
|
49
|
+
}, {
|
|
50
|
+
default: withCtx(() => [createElementVNode("span", _hoisted_1, [createVNode(unref(SwitchThumb), { class: "pointer-events-none block size-4 rounded-full bg-background shadow-sm transition-transform data-[state=checked]:translate-x-3.5 data-[state=unchecked]:translate-x-0" })])]),
|
|
51
|
+
_: 1
|
|
52
|
+
}, 8, [
|
|
53
|
+
"model-value",
|
|
54
|
+
"disabled",
|
|
55
|
+
"aria-readonly",
|
|
56
|
+
"class"
|
|
57
|
+
]);
|
|
58
|
+
};
|
|
59
|
+
}
|
|
60
|
+
});
|
|
61
|
+
export { Switch_default as t };
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { t as cn } from "./src-DTwuqov4.js";
|
|
2
|
+
import { createElementBlock, defineComponent, normalizeClass, openBlock, renderSlot, unref } from "vue";
|
|
3
|
+
// src/components/table/TableHead.vue
|
|
4
|
+
var TableHead_default = /* @__PURE__ */ defineComponent({
|
|
5
|
+
__name: "TableHead",
|
|
6
|
+
props: { class: { type: [
|
|
7
|
+
Boolean,
|
|
8
|
+
null,
|
|
9
|
+
String,
|
|
10
|
+
Object,
|
|
11
|
+
Array
|
|
12
|
+
] } },
|
|
13
|
+
setup(__props) {
|
|
14
|
+
return (_ctx, _cache) => {
|
|
15
|
+
return openBlock(), createElementBlock("th", {
|
|
16
|
+
scope: "col",
|
|
17
|
+
class: normalizeClass(unref(cn)("h-10 px-2 text-left align-middle font-normal whitespace-nowrap text-muted-foreground", __props.class))
|
|
18
|
+
}, [renderSlot(_ctx.$slots, "default")], 2);
|
|
19
|
+
};
|
|
20
|
+
}
|
|
21
|
+
});
|
|
22
|
+
export { TableHead_default as t };
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { t as Button_default } from "./Button-Dj_H5v3V.js";
|
|
2
|
+
import { t as cn } from "./src-DTwuqov4.js";
|
|
3
|
+
import { t as tagRemoveButtonVariants } from "./tag.variants-BEXRRbPc.js";
|
|
4
|
+
import { createBlock, createElementVNode, defineComponent, normalizeClass, openBlock, renderSlot, unref, withCtx } from "vue";
|
|
5
|
+
// src/components/chip/TagRemoveButton.vue
|
|
6
|
+
var TagRemoveButton_default = /* @__PURE__ */ defineComponent({
|
|
7
|
+
__name: "TagRemoveButton",
|
|
8
|
+
props: {
|
|
9
|
+
tooltip: {},
|
|
10
|
+
class: { type: [
|
|
11
|
+
Boolean,
|
|
12
|
+
null,
|
|
13
|
+
String,
|
|
14
|
+
Object,
|
|
15
|
+
Array
|
|
16
|
+
] }
|
|
17
|
+
},
|
|
18
|
+
setup(__props) {
|
|
19
|
+
return (_ctx, _cache) => {
|
|
20
|
+
return openBlock(), createBlock(unref(Button_default), {
|
|
21
|
+
tooltip: __props.tooltip,
|
|
22
|
+
type: "button",
|
|
23
|
+
variant: "textonly",
|
|
24
|
+
size: "icon-sm",
|
|
25
|
+
class: normalizeClass(unref(cn)(unref(tagRemoveButtonVariants)(), "opacity-60", __props.class))
|
|
26
|
+
}, {
|
|
27
|
+
default: withCtx(() => [renderSlot(_ctx.$slots, "default", {}, () => [_cache[0] || (_cache[0] = createElementVNode("i", {
|
|
28
|
+
class: "icon-[lucide--x]",
|
|
29
|
+
"aria-hidden": "true"
|
|
30
|
+
}, null, -1))])]),
|
|
31
|
+
_: 3
|
|
32
|
+
}, 8, ["tooltip", "class"]);
|
|
33
|
+
};
|
|
34
|
+
}
|
|
35
|
+
});
|
|
36
|
+
export { TagRemoveButton_default as t };
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { t as Tooltip_default } from "./Tooltip-4rCebVao.js";
|
|
2
|
+
import { t as TooltipContent_default } from "./TooltipContent-0GR7hBNu.js";
|
|
3
|
+
import { t as TooltipTrigger_default } from "./TooltipTrigger-64EIE5f2.js";
|
|
4
|
+
import { createBlock, createTextVNode, createVNode, defineComponent, openBlock, renderSlot, toDisplayString, withCtx } from "vue";
|
|
5
|
+
// src/components/tooltip/TextTooltip.vue
|
|
6
|
+
var TextTooltip_default = /* @__PURE__ */ defineComponent({
|
|
7
|
+
__name: "TextTooltip",
|
|
8
|
+
props: {
|
|
9
|
+
text: {},
|
|
10
|
+
side: {}
|
|
11
|
+
},
|
|
12
|
+
setup(__props) {
|
|
13
|
+
return (_ctx, _cache) => {
|
|
14
|
+
return openBlock(), createBlock(Tooltip_default, { disabled: !__props.text }, {
|
|
15
|
+
default: withCtx(() => [createVNode(TooltipTrigger_default, { "as-child": "" }, {
|
|
16
|
+
default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
|
|
17
|
+
_: 3
|
|
18
|
+
}), createVNode(TooltipContent_default, { side: __props.side }, {
|
|
19
|
+
default: withCtx(() => [renderSlot(_ctx.$slots, "content", {}, () => [createTextVNode(toDisplayString(__props.text), 1)])]),
|
|
20
|
+
_: 3
|
|
21
|
+
}, 8, ["side"])]),
|
|
22
|
+
_: 3
|
|
23
|
+
}, 8, ["disabled"]);
|
|
24
|
+
};
|
|
25
|
+
}
|
|
26
|
+
});
|
|
27
|
+
export { TextTooltip_default as t };
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { t as tooltipOpenOnClickKey } from "./tooltipContext-arEyjGQC.js";
|
|
2
|
+
import { createBlock, createPropsRestProxy, defineComponent, guardReactiveProps, mergeProps, normalizeProps, openBlock, provide, renderSlot, unref, withCtx } from "vue";
|
|
3
|
+
import { TooltipRoot, useForwardPropsEmits } from "reka-ui";
|
|
4
|
+
// src/components/tooltip/Tooltip.vue
|
|
5
|
+
var Tooltip_default = /* @__PURE__ */ defineComponent({
|
|
6
|
+
__name: "Tooltip",
|
|
7
|
+
props: {
|
|
8
|
+
defaultOpen: { type: Boolean },
|
|
9
|
+
open: { type: Boolean },
|
|
10
|
+
delayDuration: {},
|
|
11
|
+
disableClosingTrigger: { type: Boolean },
|
|
12
|
+
disabled: { type: Boolean },
|
|
13
|
+
ignoreNonKeyboardFocus: { type: Boolean },
|
|
14
|
+
openOnClick: {
|
|
15
|
+
type: Boolean,
|
|
16
|
+
default: false
|
|
17
|
+
}
|
|
18
|
+
},
|
|
19
|
+
emits: ["update:open"],
|
|
20
|
+
setup(__props, { emit: __emit }) {
|
|
21
|
+
const props = createPropsRestProxy(__props, ["disableClosingTrigger", "openOnClick"]);
|
|
22
|
+
const forwarded = useForwardPropsEmits(props, __emit);
|
|
23
|
+
provide(tooltipOpenOnClickKey, () => __props.openOnClick);
|
|
24
|
+
return (_ctx, _cache) => {
|
|
25
|
+
return openBlock(), createBlock(unref(TooltipRoot), mergeProps(unref(forwarded), { "disable-closing-trigger": __props.openOnClick || __props.disableClosingTrigger || void 0 }), {
|
|
26
|
+
default: withCtx((slotProps) => [renderSlot(_ctx.$slots, "default", normalizeProps(guardReactiveProps(slotProps)))]),
|
|
27
|
+
_: 3
|
|
28
|
+
}, 16, ["disable-closing-trigger"]);
|
|
29
|
+
};
|
|
30
|
+
}
|
|
31
|
+
});
|
|
32
|
+
export { Tooltip_default as t };
|