@brumaombra/ui-vintage 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +78 -0
- package/dist/AlertDialogTitle.vue_vue_type_script_setup_true_lang-CWCr2erD.js +360 -0
- package/dist/AlertDialogTrigger.vue_vue_type_script_setup_true_lang-vNwxOYhM.js +158 -0
- package/dist/BackgroundGrid-Cxvbtefm.js +13 -0
- package/dist/Busy-B65Nd9ec.js +62 -0
- package/dist/BusyIndicator-CnWzSMDb.js +4 -0
- package/dist/BusyIndicator.vue_vue_type_script_setup_true_lang-CYeXMI_V.js +66 -0
- package/dist/CalendarPrevButton.vue_vue_type_script_setup_true_lang-C-WnFnvj.js +3805 -0
- package/dist/Card.vue_vue_type_script_setup_true_lang-6ol3rxy1.js +27 -0
- package/dist/CardTitle.vue_vue_type_script_setup_true_lang-DVAd7AWF.js +112 -0
- package/dist/Collection-CmOoLBo7.js +76 -0
- package/dist/ConfigProvider-D2O0Jles.js +6 -0
- package/dist/ConfirmDialog-DEsvF0b_.js +4 -0
- package/dist/ConfirmDialog.vue_vue_type_script_setup_true_lang-BAd1l1zF.js +230 -0
- package/dist/DashboardShell.vue_vue_type_script_setup_true_lang-CT2SQBXv.js +171 -0
- package/dist/DatePicker.vue_vue_type_script_setup_true_lang-D8mev2ha.js +92 -0
- package/dist/DialogClose-BNlqG4G2.js +36 -0
- package/dist/DialogTitle-DXj0nkXn.js +522 -0
- package/dist/DialogTitle.vue_vue_type_script_setup_true_lang-Bw40D4AK.js +174 -0
- package/dist/DialogTrigger-CpyKnu11.js +52 -0
- package/dist/DialogTrigger.vue_vue_type_script_setup_true_lang-DLrFiCsw.js +141 -0
- package/dist/FocusScope-C3mcVwsf.js +454 -0
- package/dist/Input.vue_vue_type_script_setup_true_lang-U778IWa0.js +37 -0
- package/dist/Label.vue_vue_type_script_setup_true_lang-B_fwvfJ-.js +65 -0
- package/dist/MessageDialog-BrowppID.js +4 -0
- package/dist/MessageDialog.vue_vue_type_script_setup_true_lang-Ddih5Isd.js +242 -0
- package/dist/NativeSelectOption.vue_vue_type_script_setup_true_lang-DS87OTLT.js +73 -0
- package/dist/PopoverAnchor.vue_vue_type_script_setup_true_lang-CsfybvZp.js +61 -0
- package/dist/PopoverTrigger.vue_vue_type_script_setup_true_lang-KTcg6Jnl.js +798 -0
- package/dist/PopperContent-BiM0YLO3.js +2144 -0
- package/dist/Primitive-D3IcFg81.js +61 -0
- package/dist/SelectValue.vue_vue_type_script_setup_true_lang-DGAI4hw5.js +2124 -0
- package/dist/Separator-CFm_M4pb.js +87 -0
- package/dist/Separator.vue_vue_type_script_setup_true_lang-COrZ60NR.js +29 -0
- package/dist/SheetTitle.vue_vue_type_script_setup_true_lang-DLoXGMbx.js +175 -0
- package/dist/SheetTrigger.vue_vue_type_script_setup_true_lang-CE2XJNHy.js +62 -0
- package/dist/Skeleton.vue_vue_type_script_setup_true_lang-BSbVyZz7.js +20 -0
- package/dist/Slider.vue_vue_type_script_setup_true_lang-D-cAN-4Q.js +802 -0
- package/dist/SliderFormComponent.vue_vue_type_script_setup_true_lang-KPzC_Lmr.js +59 -0
- package/dist/Switch.vue_vue_type_script_setup_true_lang-BWKCycMm.js +226 -0
- package/dist/SwitchFormComponent.vue_vue_type_script_setup_true_lang-XOBEs3pa.js +39 -0
- package/dist/Teleport-CuUn4UkG.js +493 -0
- package/dist/TooltipProvider.vue_vue_type_script_setup_true_lang-DwIfCQjY.js +28 -0
- package/dist/TooltipTrigger.vue_vue_type_script_setup_true_lang-BRyHTWgw.js +1117 -0
- package/dist/VisuallyHidden-udQT2Fmo.js +60 -0
- package/dist/VisuallyHiddenInput-DLAsRwUw.js +142 -0
- package/dist/_plugin-vue_export-helper-1tPrXgE0.js +10 -0
- package/dist/alert-dialog.d.ts +2 -0
- package/dist/alert-dialog.js +13 -0
- package/dist/alert.d.ts +2 -0
- package/dist/alert.js +76 -0
- package/dist/background-grid.d.ts +6 -0
- package/dist/background-grid.js +5 -0
- package/dist/busy-indicator.d.ts +2 -0
- package/dist/busy-indicator.js +6 -0
- package/dist/busy.d.ts +2 -0
- package/dist/busy.js +4 -0
- package/dist/button.d.ts +2 -0
- package/dist/button.js +63 -0
- package/dist/calendar.d.ts +2 -0
- package/dist/calendar.js +15 -0
- package/dist/card.d.ts +2 -0
- package/dist/card.js +11 -0
- package/dist/check-iejznCzf.js +11 -0
- package/dist/chevron-down-DP-oz-sL.js +13 -0
- package/dist/clamp-D5Ye0kJT.js +6 -0
- package/dist/command.d.ts +2 -0
- package/dist/command.js +1122 -0
- package/dist/components/background-grid/BackgroundGrid.vue.d.ts +2 -0
- package/dist/components/background-grid/index.d.ts +2 -0
- package/dist/components/busy-indicator/BusyIndicator.vue.d.ts +2 -0
- package/dist/components/busy-indicator/busy-indicator-state.d.ts +15 -0
- package/dist/components/busy-indicator/index.d.ts +3 -0
- package/dist/components/confirm-dialog/ConfirmDialog.vue.d.ts +2 -0
- package/dist/components/confirm-dialog/confirm-dialog-state.d.ts +37 -0
- package/dist/components/confirm-dialog/index.d.ts +3 -0
- package/dist/components/dashboard-shell/DashboardShell.vue.d.ts +54 -0
- package/dist/components/dashboard-shell/index.d.ts +2 -0
- package/dist/components/message-dialog/MessageDialog.vue.d.ts +2 -0
- package/dist/components/message-dialog/index.d.ts +3 -0
- package/dist/components/message-dialog/message-dialog-state.d.ts +28 -0
- package/dist/components/slider-form-component/SliderFormComponent.vue.d.ts +23 -0
- package/dist/components/slider-form-component/index.d.ts +2 -0
- package/dist/components/switch-form-component/SwitchFormComponent.vue.d.ts +12 -0
- package/dist/components/switch-form-component/index.d.ts +2 -0
- package/dist/components/ui/alert/Alert.vue.d.ts +23 -0
- package/dist/components/ui/alert/AlertDescription.vue.d.ts +21 -0
- package/dist/components/ui/alert/AlertTitle.vue.d.ts +21 -0
- package/dist/components/ui/alert/index.d.ts +8 -0
- package/dist/components/ui/alert-dialog/AlertDialog.vue.d.ts +25 -0
- package/dist/components/ui/alert-dialog/AlertDialogAction.vue.d.ts +22 -0
- package/dist/components/ui/alert-dialog/AlertDialogCancel.vue.d.ts +22 -0
- package/dist/components/ui/alert-dialog/AlertDialogContent.vue.d.ts +36 -0
- package/dist/components/ui/alert-dialog/AlertDialogDescription.vue.d.ts +22 -0
- package/dist/components/ui/alert-dialog/AlertDialogFooter.vue.d.ts +21 -0
- package/dist/components/ui/alert-dialog/AlertDialogHeader.vue.d.ts +21 -0
- package/dist/components/ui/alert-dialog/AlertDialogTitle.vue.d.ts +22 -0
- package/dist/components/ui/alert-dialog/AlertDialogTrigger.vue.d.ts +18 -0
- package/dist/components/ui/alert-dialog/index.d.ts +9 -0
- package/dist/components/ui/busy/Busy.vue.d.ts +27 -0
- package/dist/components/ui/busy/index.d.ts +1 -0
- package/dist/components/ui/button/Button.vue.d.ts +27 -0
- package/dist/components/ui/button/index.d.ts +7 -0
- package/dist/components/ui/calendar/Calendar.vue.d.ts +44 -0
- package/dist/components/ui/calendar/CalendarCell.vue.d.ts +22 -0
- package/dist/components/ui/calendar/CalendarCellTrigger.vue.d.ts +24 -0
- package/dist/components/ui/calendar/CalendarGrid.vue.d.ts +22 -0
- package/dist/components/ui/calendar/CalendarGridBody.vue.d.ts +18 -0
- package/dist/components/ui/calendar/CalendarGridHead.vue.d.ts +22 -0
- package/dist/components/ui/calendar/CalendarGridRow.vue.d.ts +22 -0
- package/dist/components/ui/calendar/CalendarHeadCell.vue.d.ts +22 -0
- package/dist/components/ui/calendar/CalendarHeader.vue.d.ts +22 -0
- package/dist/components/ui/calendar/CalendarHeading.vue.d.ts +28 -0
- package/dist/components/ui/calendar/CalendarNextButton.vue.d.ts +22 -0
- package/dist/components/ui/calendar/CalendarPrevButton.vue.d.ts +22 -0
- package/dist/components/ui/calendar/index.d.ts +13 -0
- package/dist/components/ui/card/Card.vue.d.ts +21 -0
- package/dist/components/ui/card/CardAction.vue.d.ts +21 -0
- package/dist/components/ui/card/CardContent.vue.d.ts +21 -0
- package/dist/components/ui/card/CardDescription.vue.d.ts +21 -0
- package/dist/components/ui/card/CardFooter.vue.d.ts +21 -0
- package/dist/components/ui/card/CardHeader.vue.d.ts +21 -0
- package/dist/components/ui/card/CardTitle.vue.d.ts +21 -0
- package/dist/components/ui/card/index.d.ts +7 -0
- package/dist/components/ui/command/Command.vue.d.ts +40 -0
- package/dist/components/ui/command/CommandDialog.vue.d.ts +32 -0
- package/dist/components/ui/command/CommandEmpty.vue.d.ts +22 -0
- package/dist/components/ui/command/CommandGroup.vue.d.ts +23 -0
- package/dist/components/ui/command/CommandInput.vue.d.ts +7 -0
- package/dist/components/ui/command/CommandItem.vue.d.ts +30 -0
- package/dist/components/ui/command/CommandList.vue.d.ts +22 -0
- package/dist/components/ui/command/CommandSeparator.vue.d.ts +22 -0
- package/dist/components/ui/command/CommandShortcut.vue.d.ts +21 -0
- package/dist/components/ui/command/index.d.ts +90 -0
- package/dist/components/ui/date-picker/DatePicker.vue.d.ts +19 -0
- package/dist/components/ui/date-picker/index.d.ts +2 -0
- package/dist/components/ui/dialog/Dialog.vue.d.ts +25 -0
- package/dist/components/ui/dialog/DialogClose.vue.d.ts +18 -0
- package/dist/components/ui/dialog/DialogContent.vue.d.ts +39 -0
- package/dist/components/ui/dialog/DialogDescription.vue.d.ts +22 -0
- package/dist/components/ui/dialog/DialogFooter.vue.d.ts +24 -0
- package/dist/components/ui/dialog/DialogHeader.vue.d.ts +21 -0
- package/dist/components/ui/dialog/DialogOverlay.vue.d.ts +22 -0
- package/dist/components/ui/dialog/DialogScrollContent.vue.d.ts +36 -0
- package/dist/components/ui/dialog/DialogTitle.vue.d.ts +22 -0
- package/dist/components/ui/dialog/DialogTrigger.vue.d.ts +18 -0
- package/dist/components/ui/dialog/index.d.ts +10 -0
- package/dist/components/ui/field/Field.vue.d.ts +23 -0
- package/dist/components/ui/field/FieldContent.vue.d.ts +21 -0
- package/dist/components/ui/field/FieldDescription.vue.d.ts +21 -0
- package/dist/components/ui/field/FieldError.vue.d.ts +24 -0
- package/dist/components/ui/field/FieldGroup.vue.d.ts +21 -0
- package/dist/components/ui/field/FieldLabel.vue.d.ts +21 -0
- package/dist/components/ui/field/FieldLegend.vue.d.ts +22 -0
- package/dist/components/ui/field/FieldSeparator.vue.d.ts +21 -0
- package/dist/components/ui/field/FieldSet.vue.d.ts +21 -0
- package/dist/components/ui/field/FieldTitle.vue.d.ts +21 -0
- package/dist/components/ui/field/index.d.ts +15 -0
- package/dist/components/ui/input/Input.vue.d.ts +12 -0
- package/dist/components/ui/input/index.d.ts +1 -0
- package/dist/components/ui/label/Label.vue.d.ts +22 -0
- package/dist/components/ui/label/index.d.ts +1 -0
- package/dist/components/ui/native-select/NativeSelect.vue.d.ts +27 -0
- package/dist/components/ui/native-select/NativeSelectOptGroup.vue.d.ts +21 -0
- package/dist/components/ui/native-select/NativeSelectOption.vue.d.ts +21 -0
- package/dist/components/ui/native-select/index.d.ts +3 -0
- package/dist/components/ui/popover/Popover.vue.d.ts +25 -0
- package/dist/components/ui/popover/PopoverAnchor.vue.d.ts +18 -0
- package/dist/components/ui/popover/PopoverContent.vue.d.ts +39 -0
- package/dist/components/ui/popover/PopoverTrigger.vue.d.ts +18 -0
- package/dist/components/ui/popover/index.d.ts +4 -0
- package/dist/components/ui/select/Select.vue.d.ts +28 -0
- package/dist/components/ui/select/SelectContent.vue.d.ts +32 -0
- package/dist/components/ui/select/SelectGroup.vue.d.ts +18 -0
- package/dist/components/ui/select/SelectItem.vue.d.ts +24 -0
- package/dist/components/ui/select/SelectItemText.vue.d.ts +18 -0
- package/dist/components/ui/select/SelectLabel.vue.d.ts +22 -0
- package/dist/components/ui/select/SelectScrollDownButton.vue.d.ts +22 -0
- package/dist/components/ui/select/SelectScrollUpButton.vue.d.ts +22 -0
- package/dist/components/ui/select/SelectSeparator.vue.d.ts +7 -0
- package/dist/components/ui/select/SelectTrigger.vue.d.ts +25 -0
- package/dist/components/ui/select/SelectValue.vue.d.ts +18 -0
- package/dist/components/ui/select/index.d.ts +11 -0
- package/dist/components/ui/separator/Separator.vue.d.ts +10 -0
- package/dist/components/ui/separator/index.d.ts +1 -0
- package/dist/components/ui/sheet/Sheet.vue.d.ts +25 -0
- package/dist/components/ui/sheet/SheetClose.vue.d.ts +18 -0
- package/dist/components/ui/sheet/SheetContent.vue.d.ts +39 -0
- package/dist/components/ui/sheet/SheetDescription.vue.d.ts +22 -0
- package/dist/components/ui/sheet/SheetFooter.vue.d.ts +21 -0
- package/dist/components/ui/sheet/SheetHeader.vue.d.ts +21 -0
- package/dist/components/ui/sheet/SheetOverlay.vue.d.ts +22 -0
- package/dist/components/ui/sheet/SheetTitle.vue.d.ts +22 -0
- package/dist/components/ui/sheet/SheetTrigger.vue.d.ts +18 -0
- package/dist/components/ui/sheet/index.d.ts +8 -0
- package/dist/components/ui/sidebar/Sidebar.vue.d.ts +24 -0
- package/dist/components/ui/sidebar/SidebarContent.vue.d.ts +21 -0
- package/dist/components/ui/sidebar/SidebarFooter.vue.d.ts +21 -0
- package/dist/components/ui/sidebar/SidebarGroup.vue.d.ts +21 -0
- package/dist/components/ui/sidebar/SidebarGroupAction.vue.d.ts +22 -0
- package/dist/components/ui/sidebar/SidebarGroupContent.vue.d.ts +21 -0
- package/dist/components/ui/sidebar/SidebarGroupLabel.vue.d.ts +22 -0
- package/dist/components/ui/sidebar/SidebarHeader.vue.d.ts +21 -0
- package/dist/components/ui/sidebar/SidebarInput.vue.d.ts +21 -0
- package/dist/components/ui/sidebar/SidebarInset.vue.d.ts +21 -0
- package/dist/components/ui/sidebar/SidebarMenu.vue.d.ts +21 -0
- package/dist/components/ui/sidebar/SidebarMenuAction.vue.d.ts +25 -0
- package/dist/components/ui/sidebar/SidebarMenuBadge.vue.d.ts +21 -0
- package/dist/components/ui/sidebar/SidebarMenuButton.vue.d.ts +27 -0
- package/dist/components/ui/sidebar/SidebarMenuButtonChild.vue.d.ts +30 -0
- package/dist/components/ui/sidebar/SidebarMenuItem.vue.d.ts +21 -0
- package/dist/components/ui/sidebar/SidebarMenuSkeleton.vue.d.ts +7 -0
- package/dist/components/ui/sidebar/SidebarMenuSub.vue.d.ts +21 -0
- package/dist/components/ui/sidebar/SidebarMenuSubButton.vue.d.ts +27 -0
- package/dist/components/ui/sidebar/SidebarMenuSubItem.vue.d.ts +21 -0
- package/dist/components/ui/sidebar/SidebarProvider.vue.d.ts +30 -0
- package/dist/components/ui/sidebar/SidebarRail.vue.d.ts +21 -0
- package/dist/components/ui/sidebar/SidebarSeparator.vue.d.ts +21 -0
- package/dist/components/ui/sidebar/SidebarTrigger.vue.d.ts +6 -0
- package/dist/components/ui/sidebar/index.d.ts +37 -0
- package/dist/components/ui/sidebar/utils.d.ts +56 -0
- package/dist/components/ui/skeleton/Skeleton.vue.d.ts +6 -0
- package/dist/components/ui/skeleton/index.d.ts +1 -0
- package/dist/components/ui/slider/Slider.vue.d.ts +13 -0
- package/dist/components/ui/slider/index.d.ts +1 -0
- package/dist/components/ui/switch/Switch.vue.d.ts +29 -0
- package/dist/components/ui/switch/index.d.ts +1 -0
- package/dist/components/ui/tooltip/Tooltip.vue.d.ts +24 -0
- package/dist/components/ui/tooltip/TooltipContent.vue.d.ts +30 -0
- package/dist/components/ui/tooltip/TooltipProvider.vue.d.ts +20 -0
- package/dist/components/ui/tooltip/TooltipTrigger.vue.d.ts +18 -0
- package/dist/components/ui/tooltip/index.d.ts +4 -0
- package/dist/confirm-dialog.d.ts +2 -0
- package/dist/confirm-dialog.js +9 -0
- package/dist/createLucideIcon-CCMB2vDW.js +130 -0
- package/dist/dashboard-shell.d.ts +6 -0
- package/dist/dashboard-shell.js +5 -0
- package/dist/date-picker.d.ts +6 -0
- package/dist/date-picker.js +5 -0
- package/dist/dialog.d.ts +2 -0
- package/dist/dialog.js +14 -0
- package/dist/field.d.ts +2 -0
- package/dist/field.js +294 -0
- package/dist/index-C1_fxYhb.js +251 -0
- package/dist/index-Dfi5ESP2.js +299 -0
- package/dist/index-FpH8cK6B.js +44 -0
- package/dist/index.d.ts +28 -0
- package/dist/index.js +171 -0
- package/dist/info-DZrSmi42.js +15 -0
- package/dist/input.d.ts +2 -0
- package/dist/input.js +4 -0
- package/dist/label.d.ts +2 -0
- package/dist/label.js +4 -0
- package/dist/lib/utils.d.ts +2 -0
- package/dist/message-dialog.d.ts +2 -0
- package/dist/message-dialog.js +8 -0
- package/dist/native-select.d.ts +2 -0
- package/dist/native-select.js +25 -0
- package/dist/popover.d.ts +2 -0
- package/dist/popover.js +8 -0
- package/dist/select.d.ts +2 -0
- package/dist/select.js +14 -0
- package/dist/separator.d.ts +2 -0
- package/dist/separator.js +4 -0
- package/dist/sheet.d.ts +2 -0
- package/dist/sheet.js +12 -0
- package/dist/sidebar.d.ts +2 -0
- package/dist/sidebar.js +813 -0
- package/dist/skeleton.d.ts +2 -0
- package/dist/skeleton.js +4 -0
- package/dist/slider-form-component.d.ts +6 -0
- package/dist/slider-form-component.js +5 -0
- package/dist/slider.d.ts +2 -0
- package/dist/slider.js +4 -0
- package/dist/style.css +4021 -0
- package/dist/switch-form-component.d.ts +6 -0
- package/dist/switch-form-component.js +5 -0
- package/dist/switch.d.ts +2 -0
- package/dist/switch.js +4 -0
- package/dist/tooltip.d.ts +2 -0
- package/dist/tooltip.js +8 -0
- package/dist/useDirection-SIyEYNxv.js +12 -0
- package/dist/useFocusGuards-tgErlvMF.js +29 -0
- package/dist/useFormControl-7ytzz-r7.js +11 -0
- package/dist/useForwardExpose-CNVHwdF2.js +58 -0
- package/dist/useForwardPropsEmits-DmumnZO5.js +63 -0
- package/dist/useKbd-JjFOu4f7.js +41 -0
- package/dist/usePrimitiveElement-CijaRBgF.js +16 -0
- package/dist/useSize-DO9Z3wC4.js +51 -0
- package/dist/useTypeahead-Dqe1QXq1.js +159 -0
- package/dist/utils-Bz4m9VPB.js +3192 -0
- package/dist/utils-RRmyeqLm.js +16 -0
- package/dist/utils.d.ts +2 -0
- package/dist/utils.js +4 -0
- package/dist/x-2_VzbDS9.js +48 -0
- package/package.json +186 -0
|
@@ -0,0 +1,493 @@
|
|
|
1
|
+
import { i as injectConfigProviderContext } from "./ConfigProvider-D2O0Jles.js";
|
|
2
|
+
import * as vue from "vue";
|
|
3
|
+
import { ref, watch, nextTick, onUnmounted, computed, defineComponent, toRefs, getCurrentInstance, h, watchEffect, toValue, openBlock, createBlock, unref, normalizeStyle, withCtx, renderSlot, reactive, Teleport, createCommentVNode } from "vue";
|
|
4
|
+
import { r as renderSlotFragments, P as Primitive } from "./Primitive-D3IcFg81.js";
|
|
5
|
+
import { d as defaultWindow, a as unrefElement, o as onKeyStroke, c as useMounted } from "./index-C1_fxYhb.js";
|
|
6
|
+
import { i as isClient } from "./index-Dfi5ESP2.js";
|
|
7
|
+
import { u as useForwardExpose } from "./useForwardExpose-CNVHwdF2.js";
|
|
8
|
+
function handleAndDispatchCustomEvent(name, handler, detail) {
|
|
9
|
+
const target = detail.originalEvent.target;
|
|
10
|
+
const event = new CustomEvent(name, {
|
|
11
|
+
bubbles: false,
|
|
12
|
+
cancelable: true,
|
|
13
|
+
detail
|
|
14
|
+
});
|
|
15
|
+
if (handler) target.addEventListener(name, handler, { once: true });
|
|
16
|
+
target.dispatchEvent(event);
|
|
17
|
+
}
|
|
18
|
+
function isNullish(value) {
|
|
19
|
+
return value === null || value === void 0;
|
|
20
|
+
}
|
|
21
|
+
function isPlainObject(value) {
|
|
22
|
+
if (value === null || typeof value !== "object") {
|
|
23
|
+
return false;
|
|
24
|
+
}
|
|
25
|
+
const prototype = Object.getPrototypeOf(value);
|
|
26
|
+
if (prototype !== null && prototype !== Object.prototype && Object.getPrototypeOf(prototype) !== null) {
|
|
27
|
+
return false;
|
|
28
|
+
}
|
|
29
|
+
if (Symbol.iterator in value) {
|
|
30
|
+
return false;
|
|
31
|
+
}
|
|
32
|
+
if (Symbol.toStringTag in value) {
|
|
33
|
+
return Object.prototype.toString.call(value) === "[object Module]";
|
|
34
|
+
}
|
|
35
|
+
return true;
|
|
36
|
+
}
|
|
37
|
+
function _defu(baseObject, defaults, namespace = ".", merger) {
|
|
38
|
+
if (!isPlainObject(defaults)) {
|
|
39
|
+
return _defu(baseObject, {}, namespace, merger);
|
|
40
|
+
}
|
|
41
|
+
const object = { ...defaults };
|
|
42
|
+
for (const key of Object.keys(baseObject)) {
|
|
43
|
+
if (key === "__proto__" || key === "constructor") {
|
|
44
|
+
continue;
|
|
45
|
+
}
|
|
46
|
+
const value = baseObject[key];
|
|
47
|
+
if (value === null || value === void 0) {
|
|
48
|
+
continue;
|
|
49
|
+
}
|
|
50
|
+
if (merger && merger(object, key, value, namespace)) {
|
|
51
|
+
continue;
|
|
52
|
+
}
|
|
53
|
+
if (Array.isArray(value) && Array.isArray(object[key])) {
|
|
54
|
+
object[key] = [...value, ...object[key]];
|
|
55
|
+
} else if (isPlainObject(value) && isPlainObject(object[key])) {
|
|
56
|
+
object[key] = _defu(
|
|
57
|
+
value,
|
|
58
|
+
object[key],
|
|
59
|
+
(namespace ? `${namespace}.` : "") + key.toString(),
|
|
60
|
+
merger
|
|
61
|
+
);
|
|
62
|
+
} else {
|
|
63
|
+
object[key] = value;
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
return object;
|
|
67
|
+
}
|
|
68
|
+
function createDefu(merger) {
|
|
69
|
+
return (...arguments_) => (
|
|
70
|
+
// eslint-disable-next-line unicorn/no-array-reduce
|
|
71
|
+
arguments_.reduce((p, c) => _defu(p, c, "", merger), {})
|
|
72
|
+
);
|
|
73
|
+
}
|
|
74
|
+
const defu = createDefu();
|
|
75
|
+
let count = 0;
|
|
76
|
+
function useId(deterministicId, prefix = "reka") {
|
|
77
|
+
var _a, _b;
|
|
78
|
+
let id;
|
|
79
|
+
if ("useId" in vue) id = (_a = vue.useId) == null ? void 0 : _a.call(vue);
|
|
80
|
+
else {
|
|
81
|
+
const configProviderContext = injectConfigProviderContext({ useId: void 0 });
|
|
82
|
+
id = ((_b = configProviderContext.useId) == null ? void 0 : _b.call(configProviderContext)) ?? `${++count}`;
|
|
83
|
+
}
|
|
84
|
+
return prefix ? `${prefix}-${id}` : id;
|
|
85
|
+
}
|
|
86
|
+
function useStateMachine(initialState, machine) {
|
|
87
|
+
const state = ref(initialState);
|
|
88
|
+
function reducer(event) {
|
|
89
|
+
const nextState = machine[state.value][event];
|
|
90
|
+
return nextState ?? state.value;
|
|
91
|
+
}
|
|
92
|
+
const dispatch = (event) => {
|
|
93
|
+
state.value = reducer(event);
|
|
94
|
+
};
|
|
95
|
+
return {
|
|
96
|
+
state,
|
|
97
|
+
dispatch
|
|
98
|
+
};
|
|
99
|
+
}
|
|
100
|
+
function usePresence(present, node) {
|
|
101
|
+
var _a;
|
|
102
|
+
const stylesRef = ref({});
|
|
103
|
+
const prevAnimationNameRef = ref("none");
|
|
104
|
+
const prevPresentRef = ref(present);
|
|
105
|
+
const initialState = present.value ? "mounted" : "unmounted";
|
|
106
|
+
let timeoutId;
|
|
107
|
+
const ownerWindow = ((_a = node.value) == null ? void 0 : _a.ownerDocument.defaultView) ?? defaultWindow;
|
|
108
|
+
const { state, dispatch } = useStateMachine(initialState, {
|
|
109
|
+
mounted: {
|
|
110
|
+
UNMOUNT: "unmounted",
|
|
111
|
+
ANIMATION_OUT: "unmountSuspended"
|
|
112
|
+
},
|
|
113
|
+
unmountSuspended: {
|
|
114
|
+
MOUNT: "mounted",
|
|
115
|
+
ANIMATION_END: "unmounted"
|
|
116
|
+
},
|
|
117
|
+
unmounted: { MOUNT: "mounted" }
|
|
118
|
+
});
|
|
119
|
+
const dispatchCustomEvent = (name) => {
|
|
120
|
+
var _a2;
|
|
121
|
+
if (isClient) {
|
|
122
|
+
const customEvent = new CustomEvent(name, {
|
|
123
|
+
bubbles: false,
|
|
124
|
+
cancelable: false
|
|
125
|
+
});
|
|
126
|
+
(_a2 = node.value) == null ? void 0 : _a2.dispatchEvent(customEvent);
|
|
127
|
+
}
|
|
128
|
+
};
|
|
129
|
+
watch(present, async (currentPresent, prevPresent) => {
|
|
130
|
+
var _a2;
|
|
131
|
+
const hasPresentChanged = prevPresent !== currentPresent;
|
|
132
|
+
await nextTick();
|
|
133
|
+
if (hasPresentChanged) {
|
|
134
|
+
const prevAnimationName = prevAnimationNameRef.value;
|
|
135
|
+
const currentAnimationName = getAnimationName(node.value);
|
|
136
|
+
if (currentPresent) {
|
|
137
|
+
dispatch("MOUNT");
|
|
138
|
+
dispatchCustomEvent("enter");
|
|
139
|
+
if (currentAnimationName === "none") dispatchCustomEvent("after-enter");
|
|
140
|
+
} else if (currentAnimationName === "none" || currentAnimationName === "undefined" || ((_a2 = stylesRef.value) == null ? void 0 : _a2.display) === "none") {
|
|
141
|
+
dispatch("UNMOUNT");
|
|
142
|
+
dispatchCustomEvent("leave");
|
|
143
|
+
dispatchCustomEvent("after-leave");
|
|
144
|
+
} else {
|
|
145
|
+
const isAnimating = prevAnimationName !== currentAnimationName;
|
|
146
|
+
if (prevPresent && isAnimating) {
|
|
147
|
+
dispatch("ANIMATION_OUT");
|
|
148
|
+
dispatchCustomEvent("leave");
|
|
149
|
+
} else {
|
|
150
|
+
dispatch("UNMOUNT");
|
|
151
|
+
dispatchCustomEvent("after-leave");
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
}, { immediate: true });
|
|
156
|
+
const handleAnimationEnd = (event) => {
|
|
157
|
+
const currentAnimationName = getAnimationName(node.value);
|
|
158
|
+
const isCurrentAnimation = currentAnimationName.includes(CSS.escape(event.animationName));
|
|
159
|
+
const directionName = state.value === "mounted" ? "enter" : "leave";
|
|
160
|
+
if (event.target === node.value && isCurrentAnimation) {
|
|
161
|
+
dispatchCustomEvent(`after-${directionName}`);
|
|
162
|
+
dispatch("ANIMATION_END");
|
|
163
|
+
if (!prevPresentRef.value) {
|
|
164
|
+
const currentFillMode = node.value.style.animationFillMode;
|
|
165
|
+
node.value.style.animationFillMode = "forwards";
|
|
166
|
+
timeoutId = ownerWindow == null ? void 0 : ownerWindow.setTimeout(() => {
|
|
167
|
+
var _a2;
|
|
168
|
+
if (((_a2 = node.value) == null ? void 0 : _a2.style.animationFillMode) === "forwards") node.value.style.animationFillMode = currentFillMode;
|
|
169
|
+
});
|
|
170
|
+
}
|
|
171
|
+
}
|
|
172
|
+
if (event.target === node.value && currentAnimationName === "none") dispatch("ANIMATION_END");
|
|
173
|
+
};
|
|
174
|
+
const handleAnimationStart = (event) => {
|
|
175
|
+
if (event.target === node.value) prevAnimationNameRef.value = getAnimationName(node.value);
|
|
176
|
+
};
|
|
177
|
+
const watcher = watch(node, (newNode, oldNode) => {
|
|
178
|
+
if (newNode) {
|
|
179
|
+
stylesRef.value = getComputedStyle(newNode);
|
|
180
|
+
newNode.addEventListener("animationstart", handleAnimationStart);
|
|
181
|
+
newNode.addEventListener("animationcancel", handleAnimationEnd);
|
|
182
|
+
newNode.addEventListener("animationend", handleAnimationEnd);
|
|
183
|
+
} else {
|
|
184
|
+
dispatch("ANIMATION_END");
|
|
185
|
+
if (timeoutId !== void 0) ownerWindow == null ? void 0 : ownerWindow.clearTimeout(timeoutId);
|
|
186
|
+
oldNode == null ? void 0 : oldNode.removeEventListener("animationstart", handleAnimationStart);
|
|
187
|
+
oldNode == null ? void 0 : oldNode.removeEventListener("animationcancel", handleAnimationEnd);
|
|
188
|
+
oldNode == null ? void 0 : oldNode.removeEventListener("animationend", handleAnimationEnd);
|
|
189
|
+
}
|
|
190
|
+
}, { immediate: true });
|
|
191
|
+
const stateWatcher = watch(state, () => {
|
|
192
|
+
const currentAnimationName = getAnimationName(node.value);
|
|
193
|
+
prevAnimationNameRef.value = state.value === "mounted" ? currentAnimationName : "none";
|
|
194
|
+
});
|
|
195
|
+
onUnmounted(() => {
|
|
196
|
+
watcher();
|
|
197
|
+
stateWatcher();
|
|
198
|
+
});
|
|
199
|
+
const isPresent = computed(() => ["mounted", "unmountSuspended"].includes(state.value));
|
|
200
|
+
return { isPresent };
|
|
201
|
+
}
|
|
202
|
+
function getAnimationName(node) {
|
|
203
|
+
return node ? getComputedStyle(node).animationName || "none" : "none";
|
|
204
|
+
}
|
|
205
|
+
var Presence_default = defineComponent({
|
|
206
|
+
name: "Presence",
|
|
207
|
+
props: {
|
|
208
|
+
present: {
|
|
209
|
+
type: Boolean,
|
|
210
|
+
required: true
|
|
211
|
+
},
|
|
212
|
+
forceMount: { type: Boolean }
|
|
213
|
+
},
|
|
214
|
+
slots: {},
|
|
215
|
+
setup(props, { slots, expose }) {
|
|
216
|
+
var _a;
|
|
217
|
+
const { present, forceMount } = toRefs(props);
|
|
218
|
+
const node = ref();
|
|
219
|
+
const { isPresent } = usePresence(present, node);
|
|
220
|
+
expose({ present: isPresent });
|
|
221
|
+
let children = slots.default({ present: isPresent.value });
|
|
222
|
+
children = renderSlotFragments(children || []);
|
|
223
|
+
const instance = getCurrentInstance();
|
|
224
|
+
if (children && (children == null ? void 0 : children.length) > 1) {
|
|
225
|
+
const componentName = ((_a = instance == null ? void 0 : instance.parent) == null ? void 0 : _a.type.name) ? `<${instance.parent.type.name} />` : "component";
|
|
226
|
+
throw new Error([
|
|
227
|
+
`Detected an invalid children for \`${componentName}\` for \`Presence\` component.`,
|
|
228
|
+
"",
|
|
229
|
+
"Note: Presence works similarly to `v-if` directly, but it waits for animation/transition to finished before unmounting. So it expect only one direct child of valid VNode type.",
|
|
230
|
+
"You can apply a few solutions:",
|
|
231
|
+
["Provide a single child element so that `presence` directive attach correctly.", "Ensure the first child is an actual element instead of a raw text node or comment node."].map((line) => ` - ${line}`).join("\n")
|
|
232
|
+
].join("\n"));
|
|
233
|
+
}
|
|
234
|
+
return () => {
|
|
235
|
+
if (forceMount.value || present.value || isPresent.value) return h(slots.default({ present: isPresent.value })[0], { ref: (v) => {
|
|
236
|
+
const el = unrefElement(v);
|
|
237
|
+
if (typeof (el == null ? void 0 : el.hasAttribute) === "undefined") return el;
|
|
238
|
+
if (el == null ? void 0 : el.hasAttribute("data-reka-popper-content-wrapper")) node.value = el.firstElementChild;
|
|
239
|
+
else node.value = el;
|
|
240
|
+
return el;
|
|
241
|
+
} });
|
|
242
|
+
else return null;
|
|
243
|
+
};
|
|
244
|
+
}
|
|
245
|
+
});
|
|
246
|
+
const POINTER_DOWN_OUTSIDE = "dismissableLayer.pointerDownOutside";
|
|
247
|
+
const FOCUS_OUTSIDE = "dismissableLayer.focusOutside";
|
|
248
|
+
function isLayerExist(layerElement, targetElement) {
|
|
249
|
+
if (!(targetElement instanceof Element)) return false;
|
|
250
|
+
const targetLayer = targetElement.closest("[data-dismissable-layer]");
|
|
251
|
+
const mainLayer = layerElement.dataset.dismissableLayer === "" ? layerElement : layerElement.querySelector("[data-dismissable-layer]");
|
|
252
|
+
const nodeList = Array.from(layerElement.ownerDocument.querySelectorAll("[data-dismissable-layer]"));
|
|
253
|
+
if (targetLayer && (mainLayer === targetLayer || nodeList.indexOf(mainLayer) < nodeList.indexOf(targetLayer))) return true;
|
|
254
|
+
else return false;
|
|
255
|
+
}
|
|
256
|
+
function usePointerDownOutside(onPointerDownOutside, element, enabled = true) {
|
|
257
|
+
var _a;
|
|
258
|
+
const ownerDocument = ((_a = element == null ? void 0 : element.value) == null ? void 0 : _a.ownerDocument) ?? (globalThis == null ? void 0 : globalThis.document);
|
|
259
|
+
const isPointerInsideDOMTree = ref(false);
|
|
260
|
+
const handleClickRef = ref(() => {
|
|
261
|
+
});
|
|
262
|
+
watchEffect((cleanupFn) => {
|
|
263
|
+
if (!isClient || !toValue(enabled)) return;
|
|
264
|
+
const handlePointerDown = async (event) => {
|
|
265
|
+
const target = event.target;
|
|
266
|
+
if (!(element == null ? void 0 : element.value) || !target) return;
|
|
267
|
+
if (isLayerExist(element.value, target)) {
|
|
268
|
+
isPointerInsideDOMTree.value = false;
|
|
269
|
+
return;
|
|
270
|
+
}
|
|
271
|
+
if (event.target && !isPointerInsideDOMTree.value) {
|
|
272
|
+
let handleAndDispatchPointerDownOutsideEvent = function() {
|
|
273
|
+
handleAndDispatchCustomEvent(POINTER_DOWN_OUTSIDE, onPointerDownOutside, eventDetail);
|
|
274
|
+
};
|
|
275
|
+
const eventDetail = { originalEvent: event };
|
|
276
|
+
if (event.pointerType === "touch") {
|
|
277
|
+
ownerDocument.removeEventListener("click", handleClickRef.value);
|
|
278
|
+
handleClickRef.value = handleAndDispatchPointerDownOutsideEvent;
|
|
279
|
+
ownerDocument.addEventListener("click", handleClickRef.value, { once: true });
|
|
280
|
+
} else handleAndDispatchPointerDownOutsideEvent();
|
|
281
|
+
} else ownerDocument.removeEventListener("click", handleClickRef.value);
|
|
282
|
+
isPointerInsideDOMTree.value = false;
|
|
283
|
+
};
|
|
284
|
+
const timerId = window.setTimeout(() => {
|
|
285
|
+
ownerDocument.addEventListener("pointerdown", handlePointerDown);
|
|
286
|
+
}, 0);
|
|
287
|
+
cleanupFn(() => {
|
|
288
|
+
window.clearTimeout(timerId);
|
|
289
|
+
ownerDocument.removeEventListener("pointerdown", handlePointerDown);
|
|
290
|
+
ownerDocument.removeEventListener("click", handleClickRef.value);
|
|
291
|
+
});
|
|
292
|
+
});
|
|
293
|
+
return { onPointerDownCapture: () => {
|
|
294
|
+
if (!toValue(enabled)) return;
|
|
295
|
+
isPointerInsideDOMTree.value = true;
|
|
296
|
+
} };
|
|
297
|
+
}
|
|
298
|
+
function useFocusOutside(onFocusOutside, element, enabled = true) {
|
|
299
|
+
var _a;
|
|
300
|
+
const ownerDocument = ((_a = element == null ? void 0 : element.value) == null ? void 0 : _a.ownerDocument) ?? (globalThis == null ? void 0 : globalThis.document);
|
|
301
|
+
const isFocusInsideDOMTree = ref(false);
|
|
302
|
+
watchEffect((cleanupFn) => {
|
|
303
|
+
if (!isClient || !toValue(enabled)) return;
|
|
304
|
+
const handleFocus = async (event) => {
|
|
305
|
+
if (!(element == null ? void 0 : element.value)) return;
|
|
306
|
+
await nextTick();
|
|
307
|
+
await nextTick();
|
|
308
|
+
const target = event.target;
|
|
309
|
+
if (!element.value || !target || isLayerExist(element.value, target)) return;
|
|
310
|
+
if (event.target && !isFocusInsideDOMTree.value) {
|
|
311
|
+
const eventDetail = { originalEvent: event };
|
|
312
|
+
handleAndDispatchCustomEvent(FOCUS_OUTSIDE, onFocusOutside, eventDetail);
|
|
313
|
+
}
|
|
314
|
+
};
|
|
315
|
+
ownerDocument.addEventListener("focusin", handleFocus);
|
|
316
|
+
cleanupFn(() => ownerDocument.removeEventListener("focusin", handleFocus));
|
|
317
|
+
});
|
|
318
|
+
return {
|
|
319
|
+
onFocusCapture: () => {
|
|
320
|
+
if (!toValue(enabled)) return;
|
|
321
|
+
isFocusInsideDOMTree.value = true;
|
|
322
|
+
},
|
|
323
|
+
onBlurCapture: () => {
|
|
324
|
+
if (!toValue(enabled)) return;
|
|
325
|
+
isFocusInsideDOMTree.value = false;
|
|
326
|
+
}
|
|
327
|
+
};
|
|
328
|
+
}
|
|
329
|
+
const context = reactive({
|
|
330
|
+
layersRoot: /* @__PURE__ */ new Set(),
|
|
331
|
+
layersWithOutsidePointerEventsDisabled: /* @__PURE__ */ new Set(),
|
|
332
|
+
originalBodyPointerEvents: void 0,
|
|
333
|
+
branches: /* @__PURE__ */ new Set()
|
|
334
|
+
});
|
|
335
|
+
var DismissableLayer_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineComponent({
|
|
336
|
+
__name: "DismissableLayer",
|
|
337
|
+
props: {
|
|
338
|
+
disableOutsidePointerEvents: {
|
|
339
|
+
type: Boolean,
|
|
340
|
+
required: false,
|
|
341
|
+
default: false
|
|
342
|
+
},
|
|
343
|
+
asChild: {
|
|
344
|
+
type: Boolean,
|
|
345
|
+
required: false
|
|
346
|
+
},
|
|
347
|
+
as: {
|
|
348
|
+
type: null,
|
|
349
|
+
required: false
|
|
350
|
+
}
|
|
351
|
+
},
|
|
352
|
+
emits: [
|
|
353
|
+
"escapeKeyDown",
|
|
354
|
+
"pointerDownOutside",
|
|
355
|
+
"focusOutside",
|
|
356
|
+
"interactOutside",
|
|
357
|
+
"dismiss"
|
|
358
|
+
],
|
|
359
|
+
setup(__props, { emit: __emit }) {
|
|
360
|
+
const props = __props;
|
|
361
|
+
const emits = __emit;
|
|
362
|
+
const { forwardRef, currentElement: layerElement } = useForwardExpose();
|
|
363
|
+
const ownerDocument = computed(() => {
|
|
364
|
+
var _a;
|
|
365
|
+
return ((_a = layerElement.value) == null ? void 0 : _a.ownerDocument) ?? globalThis.document;
|
|
366
|
+
});
|
|
367
|
+
const layers = computed(() => context.layersRoot);
|
|
368
|
+
const index = computed(() => {
|
|
369
|
+
return layerElement.value ? Array.from(layers.value).indexOf(layerElement.value) : -1;
|
|
370
|
+
});
|
|
371
|
+
const isBodyPointerEventsDisabled = computed(() => {
|
|
372
|
+
return context.layersWithOutsidePointerEventsDisabled.size > 0;
|
|
373
|
+
});
|
|
374
|
+
const isPointerEventsEnabled = computed(() => {
|
|
375
|
+
const localLayers = Array.from(layers.value);
|
|
376
|
+
const [highestLayerWithOutsidePointerEventsDisabled] = [...context.layersWithOutsidePointerEventsDisabled].slice(-1);
|
|
377
|
+
const highestLayerWithOutsidePointerEventsDisabledIndex = localLayers.indexOf(highestLayerWithOutsidePointerEventsDisabled);
|
|
378
|
+
return index.value >= highestLayerWithOutsidePointerEventsDisabledIndex;
|
|
379
|
+
});
|
|
380
|
+
const pointerDownOutside = usePointerDownOutside(async (event) => {
|
|
381
|
+
const isPointerDownOnBranch = [...context.branches].some((branch) => branch == null ? void 0 : branch.contains(event.target));
|
|
382
|
+
if (!isPointerEventsEnabled.value || isPointerDownOnBranch) return;
|
|
383
|
+
emits("pointerDownOutside", event);
|
|
384
|
+
emits("interactOutside", event);
|
|
385
|
+
await nextTick();
|
|
386
|
+
if (!event.defaultPrevented) emits("dismiss");
|
|
387
|
+
}, layerElement);
|
|
388
|
+
const focusOutside = useFocusOutside((event) => {
|
|
389
|
+
const isFocusInBranch = [...context.branches].some((branch) => branch == null ? void 0 : branch.contains(event.target));
|
|
390
|
+
if (isFocusInBranch) return;
|
|
391
|
+
emits("focusOutside", event);
|
|
392
|
+
emits("interactOutside", event);
|
|
393
|
+
if (!event.defaultPrevented) emits("dismiss");
|
|
394
|
+
}, layerElement);
|
|
395
|
+
onKeyStroke("Escape", (event) => {
|
|
396
|
+
const isHighestLayer = index.value === layers.value.size - 1;
|
|
397
|
+
if (!isHighestLayer) return;
|
|
398
|
+
emits("escapeKeyDown", event);
|
|
399
|
+
if (!event.defaultPrevented) emits("dismiss");
|
|
400
|
+
});
|
|
401
|
+
watchEffect((cleanupFn) => {
|
|
402
|
+
if (!layerElement.value) return;
|
|
403
|
+
if (props.disableOutsidePointerEvents) {
|
|
404
|
+
if (context.layersWithOutsidePointerEventsDisabled.size === 0) {
|
|
405
|
+
context.originalBodyPointerEvents = ownerDocument.value.body.style.pointerEvents;
|
|
406
|
+
ownerDocument.value.body.style.pointerEvents = "none";
|
|
407
|
+
}
|
|
408
|
+
context.layersWithOutsidePointerEventsDisabled.add(layerElement.value);
|
|
409
|
+
}
|
|
410
|
+
layers.value.add(layerElement.value);
|
|
411
|
+
cleanupFn(() => {
|
|
412
|
+
if (props.disableOutsidePointerEvents && context.layersWithOutsidePointerEventsDisabled.size === 1 && !isNullish(context.originalBodyPointerEvents)) ownerDocument.value.body.style.pointerEvents = context.originalBodyPointerEvents;
|
|
413
|
+
});
|
|
414
|
+
});
|
|
415
|
+
watchEffect((cleanupFn) => {
|
|
416
|
+
cleanupFn(() => {
|
|
417
|
+
if (!layerElement.value) return;
|
|
418
|
+
layers.value.delete(layerElement.value);
|
|
419
|
+
context.layersWithOutsidePointerEventsDisabled.delete(layerElement.value);
|
|
420
|
+
});
|
|
421
|
+
});
|
|
422
|
+
return (_ctx, _cache) => {
|
|
423
|
+
return openBlock(), createBlock(unref(Primitive), {
|
|
424
|
+
ref: unref(forwardRef),
|
|
425
|
+
"as-child": _ctx.asChild,
|
|
426
|
+
as: _ctx.as,
|
|
427
|
+
"data-dismissable-layer": "",
|
|
428
|
+
style: normalizeStyle({ pointerEvents: isBodyPointerEventsDisabled.value ? isPointerEventsEnabled.value ? "auto" : "none" : void 0 }),
|
|
429
|
+
onFocusCapture: unref(focusOutside).onFocusCapture,
|
|
430
|
+
onBlurCapture: unref(focusOutside).onBlurCapture,
|
|
431
|
+
onPointerdownCapture: unref(pointerDownOutside).onPointerDownCapture
|
|
432
|
+
}, {
|
|
433
|
+
default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
|
|
434
|
+
_: 3
|
|
435
|
+
}, 8, [
|
|
436
|
+
"as-child",
|
|
437
|
+
"as",
|
|
438
|
+
"style",
|
|
439
|
+
"onFocusCapture",
|
|
440
|
+
"onBlurCapture",
|
|
441
|
+
"onPointerdownCapture"
|
|
442
|
+
]);
|
|
443
|
+
};
|
|
444
|
+
}
|
|
445
|
+
});
|
|
446
|
+
var DismissableLayer_default = DismissableLayer_vue_vue_type_script_setup_true_lang_default;
|
|
447
|
+
var Teleport_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineComponent({
|
|
448
|
+
__name: "Teleport",
|
|
449
|
+
props: {
|
|
450
|
+
to: {
|
|
451
|
+
type: null,
|
|
452
|
+
required: false,
|
|
453
|
+
default: "body"
|
|
454
|
+
},
|
|
455
|
+
disabled: {
|
|
456
|
+
type: Boolean,
|
|
457
|
+
required: false
|
|
458
|
+
},
|
|
459
|
+
defer: {
|
|
460
|
+
type: Boolean,
|
|
461
|
+
required: false
|
|
462
|
+
},
|
|
463
|
+
forceMount: {
|
|
464
|
+
type: Boolean,
|
|
465
|
+
required: false
|
|
466
|
+
}
|
|
467
|
+
},
|
|
468
|
+
setup(__props) {
|
|
469
|
+
const isMounted = useMounted();
|
|
470
|
+
return (_ctx, _cache) => {
|
|
471
|
+
return unref(isMounted) || _ctx.forceMount ? (openBlock(), createBlock(Teleport, {
|
|
472
|
+
key: 0,
|
|
473
|
+
to: _ctx.to,
|
|
474
|
+
disabled: _ctx.disabled,
|
|
475
|
+
defer: _ctx.defer
|
|
476
|
+
}, [renderSlot(_ctx.$slots, "default")], 8, [
|
|
477
|
+
"to",
|
|
478
|
+
"disabled",
|
|
479
|
+
"defer"
|
|
480
|
+
])) : createCommentVNode("v-if", true);
|
|
481
|
+
};
|
|
482
|
+
}
|
|
483
|
+
});
|
|
484
|
+
var Teleport_default = Teleport_vue_vue_type_script_setup_true_lang_default;
|
|
485
|
+
export {
|
|
486
|
+
DismissableLayer_default as D,
|
|
487
|
+
Presence_default as P,
|
|
488
|
+
Teleport_default as T,
|
|
489
|
+
defu as d,
|
|
490
|
+
handleAndDispatchCustomEvent as h,
|
|
491
|
+
isNullish as i,
|
|
492
|
+
useId as u
|
|
493
|
+
};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { defineComponent, openBlock, createBlock, unref, normalizeProps, guardReactiveProps, withCtx, renderSlot } from "vue";
|
|
2
|
+
import { T as TooltipProvider_default } from "./TooltipTrigger.vue_vue_type_script_setup_true_lang-BRyHTWgw.js";
|
|
3
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
4
|
+
__name: "TooltipProvider",
|
|
5
|
+
props: {
|
|
6
|
+
delayDuration: { default: 0 },
|
|
7
|
+
skipDelayDuration: {},
|
|
8
|
+
disableHoverableContent: { type: Boolean },
|
|
9
|
+
disableClosingTrigger: { type: Boolean },
|
|
10
|
+
disabled: { type: Boolean },
|
|
11
|
+
ignoreNonKeyboardFocus: { type: Boolean },
|
|
12
|
+
content: {}
|
|
13
|
+
},
|
|
14
|
+
setup(__props) {
|
|
15
|
+
const props = __props;
|
|
16
|
+
return (_ctx, _cache) => {
|
|
17
|
+
return openBlock(), createBlock(unref(TooltipProvider_default), normalizeProps(guardReactiveProps(props)), {
|
|
18
|
+
default: withCtx(() => [
|
|
19
|
+
renderSlot(_ctx.$slots, "default")
|
|
20
|
+
]),
|
|
21
|
+
_: 3
|
|
22
|
+
}, 16);
|
|
23
|
+
};
|
|
24
|
+
}
|
|
25
|
+
});
|
|
26
|
+
export {
|
|
27
|
+
_sfc_main as _
|
|
28
|
+
};
|