@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,798 @@
|
|
|
1
|
+
import { defineComponent, toRefs, ref, openBlock, createBlock, unref, withCtx, renderSlot, createVNode, mergeProps, withModifiers, normalizeProps, guardReactiveProps, onMounted, resolveDynamicComponent } from "vue";
|
|
2
|
+
import { c as createContext, a as useForwardProps, u as useForwardPropsEmits } from "./useForwardPropsEmits-DmumnZO5.js";
|
|
3
|
+
import { u as useForwardExpose } from "./useForwardExpose-CNVHwdF2.js";
|
|
4
|
+
import { D as DismissableLayer_default, u as useId, P as Presence_default, T as Teleport_default } from "./Teleport-CuUn4UkG.js";
|
|
5
|
+
import { F as FocusScope_default, u as useBodyScrollLock, a as useHideOthers } from "./FocusScope-C3mcVwsf.js";
|
|
6
|
+
import { u as useFocusGuards } from "./useFocusGuards-tgErlvMF.js";
|
|
7
|
+
import { a as PopperRoot_default, b as PopperContent_default, P as PopperAnchor_default } from "./PopperContent-BiM0YLO3.js";
|
|
8
|
+
import { r as reactiveOmit } from "./index-Dfi5ESP2.js";
|
|
9
|
+
import { c as cn } from "./utils-Bz4m9VPB.js";
|
|
10
|
+
import { P as Primitive } from "./Primitive-D3IcFg81.js";
|
|
11
|
+
import { u as useVModel } from "./index-C1_fxYhb.js";
|
|
12
|
+
const [injectPopoverRootContext, providePopoverRootContext] = createContext("PopoverRoot");
|
|
13
|
+
var PopoverRoot_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineComponent({
|
|
14
|
+
__name: "PopoverRoot",
|
|
15
|
+
props: {
|
|
16
|
+
defaultOpen: {
|
|
17
|
+
type: Boolean,
|
|
18
|
+
required: false,
|
|
19
|
+
default: false
|
|
20
|
+
},
|
|
21
|
+
open: {
|
|
22
|
+
type: Boolean,
|
|
23
|
+
required: false,
|
|
24
|
+
default: void 0
|
|
25
|
+
},
|
|
26
|
+
modal: {
|
|
27
|
+
type: Boolean,
|
|
28
|
+
required: false,
|
|
29
|
+
default: false
|
|
30
|
+
}
|
|
31
|
+
},
|
|
32
|
+
emits: ["update:open"],
|
|
33
|
+
setup(__props, { emit: __emit }) {
|
|
34
|
+
const props = __props;
|
|
35
|
+
const emit = __emit;
|
|
36
|
+
const { modal } = toRefs(props);
|
|
37
|
+
const open = useVModel(props, "open", emit, {
|
|
38
|
+
defaultValue: props.defaultOpen,
|
|
39
|
+
passive: props.open === void 0
|
|
40
|
+
});
|
|
41
|
+
const triggerElement = ref();
|
|
42
|
+
const hasCustomAnchor = ref(false);
|
|
43
|
+
providePopoverRootContext({
|
|
44
|
+
contentId: "",
|
|
45
|
+
triggerId: "",
|
|
46
|
+
modal,
|
|
47
|
+
open,
|
|
48
|
+
onOpenChange: (value) => {
|
|
49
|
+
open.value = value;
|
|
50
|
+
},
|
|
51
|
+
onOpenToggle: () => {
|
|
52
|
+
open.value = !open.value;
|
|
53
|
+
},
|
|
54
|
+
triggerElement,
|
|
55
|
+
hasCustomAnchor
|
|
56
|
+
});
|
|
57
|
+
return (_ctx, _cache) => {
|
|
58
|
+
return openBlock(), createBlock(unref(PopperRoot_default), null, {
|
|
59
|
+
default: withCtx(() => [renderSlot(_ctx.$slots, "default", {
|
|
60
|
+
open: unref(open),
|
|
61
|
+
close: () => open.value = false
|
|
62
|
+
})]),
|
|
63
|
+
_: 3
|
|
64
|
+
});
|
|
65
|
+
};
|
|
66
|
+
}
|
|
67
|
+
});
|
|
68
|
+
var PopoverRoot_default = PopoverRoot_vue_vue_type_script_setup_true_lang_default;
|
|
69
|
+
var PopoverContentImpl_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineComponent({
|
|
70
|
+
__name: "PopoverContentImpl",
|
|
71
|
+
props: {
|
|
72
|
+
trapFocus: {
|
|
73
|
+
type: Boolean,
|
|
74
|
+
required: false
|
|
75
|
+
},
|
|
76
|
+
side: {
|
|
77
|
+
type: null,
|
|
78
|
+
required: false
|
|
79
|
+
},
|
|
80
|
+
sideOffset: {
|
|
81
|
+
type: Number,
|
|
82
|
+
required: false
|
|
83
|
+
},
|
|
84
|
+
sideFlip: {
|
|
85
|
+
type: Boolean,
|
|
86
|
+
required: false
|
|
87
|
+
},
|
|
88
|
+
align: {
|
|
89
|
+
type: null,
|
|
90
|
+
required: false
|
|
91
|
+
},
|
|
92
|
+
alignOffset: {
|
|
93
|
+
type: Number,
|
|
94
|
+
required: false
|
|
95
|
+
},
|
|
96
|
+
alignFlip: {
|
|
97
|
+
type: Boolean,
|
|
98
|
+
required: false
|
|
99
|
+
},
|
|
100
|
+
avoidCollisions: {
|
|
101
|
+
type: Boolean,
|
|
102
|
+
required: false
|
|
103
|
+
},
|
|
104
|
+
collisionBoundary: {
|
|
105
|
+
type: null,
|
|
106
|
+
required: false
|
|
107
|
+
},
|
|
108
|
+
collisionPadding: {
|
|
109
|
+
type: [Number, Object],
|
|
110
|
+
required: false
|
|
111
|
+
},
|
|
112
|
+
arrowPadding: {
|
|
113
|
+
type: Number,
|
|
114
|
+
required: false
|
|
115
|
+
},
|
|
116
|
+
hideShiftedArrow: {
|
|
117
|
+
type: Boolean,
|
|
118
|
+
required: false
|
|
119
|
+
},
|
|
120
|
+
sticky: {
|
|
121
|
+
type: String,
|
|
122
|
+
required: false
|
|
123
|
+
},
|
|
124
|
+
hideWhenDetached: {
|
|
125
|
+
type: Boolean,
|
|
126
|
+
required: false
|
|
127
|
+
},
|
|
128
|
+
positionStrategy: {
|
|
129
|
+
type: String,
|
|
130
|
+
required: false
|
|
131
|
+
},
|
|
132
|
+
updatePositionStrategy: {
|
|
133
|
+
type: String,
|
|
134
|
+
required: false
|
|
135
|
+
},
|
|
136
|
+
disableUpdateOnLayoutShift: {
|
|
137
|
+
type: Boolean,
|
|
138
|
+
required: false
|
|
139
|
+
},
|
|
140
|
+
prioritizePosition: {
|
|
141
|
+
type: Boolean,
|
|
142
|
+
required: false
|
|
143
|
+
},
|
|
144
|
+
reference: {
|
|
145
|
+
type: null,
|
|
146
|
+
required: false
|
|
147
|
+
},
|
|
148
|
+
asChild: {
|
|
149
|
+
type: Boolean,
|
|
150
|
+
required: false
|
|
151
|
+
},
|
|
152
|
+
as: {
|
|
153
|
+
type: null,
|
|
154
|
+
required: false
|
|
155
|
+
},
|
|
156
|
+
disableOutsidePointerEvents: {
|
|
157
|
+
type: Boolean,
|
|
158
|
+
required: false
|
|
159
|
+
}
|
|
160
|
+
},
|
|
161
|
+
emits: [
|
|
162
|
+
"escapeKeyDown",
|
|
163
|
+
"pointerDownOutside",
|
|
164
|
+
"focusOutside",
|
|
165
|
+
"interactOutside",
|
|
166
|
+
"openAutoFocus",
|
|
167
|
+
"closeAutoFocus"
|
|
168
|
+
],
|
|
169
|
+
setup(__props, { emit: __emit }) {
|
|
170
|
+
const props = __props;
|
|
171
|
+
const emits = __emit;
|
|
172
|
+
const forwarded = useForwardProps(reactiveOmit(props, "trapFocus", "disableOutsidePointerEvents"));
|
|
173
|
+
const { forwardRef } = useForwardExpose();
|
|
174
|
+
const rootContext = injectPopoverRootContext();
|
|
175
|
+
useFocusGuards();
|
|
176
|
+
return (_ctx, _cache) => {
|
|
177
|
+
return openBlock(), createBlock(unref(FocusScope_default), {
|
|
178
|
+
"as-child": "",
|
|
179
|
+
loop: "",
|
|
180
|
+
trapped: _ctx.trapFocus,
|
|
181
|
+
onMountAutoFocus: _cache[5] || (_cache[5] = ($event) => emits("openAutoFocus", $event)),
|
|
182
|
+
onUnmountAutoFocus: _cache[6] || (_cache[6] = ($event) => emits("closeAutoFocus", $event))
|
|
183
|
+
}, {
|
|
184
|
+
default: withCtx(() => [createVNode(unref(DismissableLayer_default), {
|
|
185
|
+
"as-child": "",
|
|
186
|
+
"disable-outside-pointer-events": _ctx.disableOutsidePointerEvents,
|
|
187
|
+
onPointerDownOutside: _cache[0] || (_cache[0] = ($event) => emits("pointerDownOutside", $event)),
|
|
188
|
+
onInteractOutside: _cache[1] || (_cache[1] = ($event) => emits("interactOutside", $event)),
|
|
189
|
+
onEscapeKeyDown: _cache[2] || (_cache[2] = ($event) => emits("escapeKeyDown", $event)),
|
|
190
|
+
onFocusOutside: _cache[3] || (_cache[3] = ($event) => emits("focusOutside", $event)),
|
|
191
|
+
onDismiss: _cache[4] || (_cache[4] = ($event) => unref(rootContext).onOpenChange(false))
|
|
192
|
+
}, {
|
|
193
|
+
default: withCtx(() => [createVNode(unref(PopperContent_default), mergeProps(unref(forwarded), {
|
|
194
|
+
id: unref(rootContext).contentId,
|
|
195
|
+
ref: unref(forwardRef),
|
|
196
|
+
"data-state": unref(rootContext).open.value ? "open" : "closed",
|
|
197
|
+
"aria-labelledby": unref(rootContext).triggerId,
|
|
198
|
+
style: {
|
|
199
|
+
"--reka-popover-content-transform-origin": "var(--reka-popper-transform-origin)",
|
|
200
|
+
"--reka-popover-content-available-width": "var(--reka-popper-available-width)",
|
|
201
|
+
"--reka-popover-content-available-height": "var(--reka-popper-available-height)",
|
|
202
|
+
"--reka-popover-trigger-width": "var(--reka-popper-anchor-width)",
|
|
203
|
+
"--reka-popover-trigger-height": "var(--reka-popper-anchor-height)"
|
|
204
|
+
},
|
|
205
|
+
role: "dialog"
|
|
206
|
+
}), {
|
|
207
|
+
default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
|
|
208
|
+
_: 3
|
|
209
|
+
}, 16, [
|
|
210
|
+
"id",
|
|
211
|
+
"data-state",
|
|
212
|
+
"aria-labelledby"
|
|
213
|
+
])]),
|
|
214
|
+
_: 3
|
|
215
|
+
}, 8, ["disable-outside-pointer-events"])]),
|
|
216
|
+
_: 3
|
|
217
|
+
}, 8, ["trapped"]);
|
|
218
|
+
};
|
|
219
|
+
}
|
|
220
|
+
});
|
|
221
|
+
var PopoverContentImpl_default = PopoverContentImpl_vue_vue_type_script_setup_true_lang_default;
|
|
222
|
+
var PopoverContentModal_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineComponent({
|
|
223
|
+
__name: "PopoverContentModal",
|
|
224
|
+
props: {
|
|
225
|
+
side: {
|
|
226
|
+
type: null,
|
|
227
|
+
required: false
|
|
228
|
+
},
|
|
229
|
+
sideOffset: {
|
|
230
|
+
type: Number,
|
|
231
|
+
required: false
|
|
232
|
+
},
|
|
233
|
+
sideFlip: {
|
|
234
|
+
type: Boolean,
|
|
235
|
+
required: false
|
|
236
|
+
},
|
|
237
|
+
align: {
|
|
238
|
+
type: null,
|
|
239
|
+
required: false
|
|
240
|
+
},
|
|
241
|
+
alignOffset: {
|
|
242
|
+
type: Number,
|
|
243
|
+
required: false
|
|
244
|
+
},
|
|
245
|
+
alignFlip: {
|
|
246
|
+
type: Boolean,
|
|
247
|
+
required: false
|
|
248
|
+
},
|
|
249
|
+
avoidCollisions: {
|
|
250
|
+
type: Boolean,
|
|
251
|
+
required: false
|
|
252
|
+
},
|
|
253
|
+
collisionBoundary: {
|
|
254
|
+
type: null,
|
|
255
|
+
required: false
|
|
256
|
+
},
|
|
257
|
+
collisionPadding: {
|
|
258
|
+
type: [Number, Object],
|
|
259
|
+
required: false
|
|
260
|
+
},
|
|
261
|
+
arrowPadding: {
|
|
262
|
+
type: Number,
|
|
263
|
+
required: false
|
|
264
|
+
},
|
|
265
|
+
hideShiftedArrow: {
|
|
266
|
+
type: Boolean,
|
|
267
|
+
required: false
|
|
268
|
+
},
|
|
269
|
+
sticky: {
|
|
270
|
+
type: String,
|
|
271
|
+
required: false
|
|
272
|
+
},
|
|
273
|
+
hideWhenDetached: {
|
|
274
|
+
type: Boolean,
|
|
275
|
+
required: false
|
|
276
|
+
},
|
|
277
|
+
positionStrategy: {
|
|
278
|
+
type: String,
|
|
279
|
+
required: false
|
|
280
|
+
},
|
|
281
|
+
updatePositionStrategy: {
|
|
282
|
+
type: String,
|
|
283
|
+
required: false
|
|
284
|
+
},
|
|
285
|
+
disableUpdateOnLayoutShift: {
|
|
286
|
+
type: Boolean,
|
|
287
|
+
required: false
|
|
288
|
+
},
|
|
289
|
+
prioritizePosition: {
|
|
290
|
+
type: Boolean,
|
|
291
|
+
required: false
|
|
292
|
+
},
|
|
293
|
+
reference: {
|
|
294
|
+
type: null,
|
|
295
|
+
required: false
|
|
296
|
+
},
|
|
297
|
+
asChild: {
|
|
298
|
+
type: Boolean,
|
|
299
|
+
required: false
|
|
300
|
+
},
|
|
301
|
+
as: {
|
|
302
|
+
type: null,
|
|
303
|
+
required: false
|
|
304
|
+
},
|
|
305
|
+
disableOutsidePointerEvents: {
|
|
306
|
+
type: Boolean,
|
|
307
|
+
required: false
|
|
308
|
+
}
|
|
309
|
+
},
|
|
310
|
+
emits: [
|
|
311
|
+
"escapeKeyDown",
|
|
312
|
+
"pointerDownOutside",
|
|
313
|
+
"focusOutside",
|
|
314
|
+
"interactOutside",
|
|
315
|
+
"openAutoFocus",
|
|
316
|
+
"closeAutoFocus"
|
|
317
|
+
],
|
|
318
|
+
setup(__props, { emit: __emit }) {
|
|
319
|
+
const props = __props;
|
|
320
|
+
const emits = __emit;
|
|
321
|
+
const rootContext = injectPopoverRootContext();
|
|
322
|
+
const isRightClickOutsideRef = ref(false);
|
|
323
|
+
useBodyScrollLock(true);
|
|
324
|
+
const forwarded = useForwardPropsEmits(props, emits);
|
|
325
|
+
const { forwardRef, currentElement } = useForwardExpose();
|
|
326
|
+
useHideOthers(currentElement);
|
|
327
|
+
return (_ctx, _cache) => {
|
|
328
|
+
return openBlock(), createBlock(PopoverContentImpl_default, mergeProps(unref(forwarded), {
|
|
329
|
+
ref: unref(forwardRef),
|
|
330
|
+
"trap-focus": unref(rootContext).open.value,
|
|
331
|
+
"disable-outside-pointer-events": "",
|
|
332
|
+
onCloseAutoFocus: _cache[0] || (_cache[0] = withModifiers((event) => {
|
|
333
|
+
var _a;
|
|
334
|
+
emits("closeAutoFocus", event);
|
|
335
|
+
if (!isRightClickOutsideRef.value) (_a = unref(rootContext).triggerElement.value) == null ? void 0 : _a.focus();
|
|
336
|
+
}, ["prevent"])),
|
|
337
|
+
onPointerDownOutside: _cache[1] || (_cache[1] = (event) => {
|
|
338
|
+
emits("pointerDownOutside", event);
|
|
339
|
+
const originalEvent = event.detail.originalEvent;
|
|
340
|
+
const ctrlLeftClick = originalEvent.button === 0 && originalEvent.ctrlKey === true;
|
|
341
|
+
const isRightClick = originalEvent.button === 2 || ctrlLeftClick;
|
|
342
|
+
isRightClickOutsideRef.value = isRightClick;
|
|
343
|
+
}),
|
|
344
|
+
onFocusOutside: _cache[2] || (_cache[2] = withModifiers(() => {
|
|
345
|
+
}, ["prevent"]))
|
|
346
|
+
}), {
|
|
347
|
+
default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
|
|
348
|
+
_: 3
|
|
349
|
+
}, 16, ["trap-focus"]);
|
|
350
|
+
};
|
|
351
|
+
}
|
|
352
|
+
});
|
|
353
|
+
var PopoverContentModal_default = PopoverContentModal_vue_vue_type_script_setup_true_lang_default;
|
|
354
|
+
var PopoverContentNonModal_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineComponent({
|
|
355
|
+
__name: "PopoverContentNonModal",
|
|
356
|
+
props: {
|
|
357
|
+
side: {
|
|
358
|
+
type: null,
|
|
359
|
+
required: false
|
|
360
|
+
},
|
|
361
|
+
sideOffset: {
|
|
362
|
+
type: Number,
|
|
363
|
+
required: false
|
|
364
|
+
},
|
|
365
|
+
sideFlip: {
|
|
366
|
+
type: Boolean,
|
|
367
|
+
required: false
|
|
368
|
+
},
|
|
369
|
+
align: {
|
|
370
|
+
type: null,
|
|
371
|
+
required: false
|
|
372
|
+
},
|
|
373
|
+
alignOffset: {
|
|
374
|
+
type: Number,
|
|
375
|
+
required: false
|
|
376
|
+
},
|
|
377
|
+
alignFlip: {
|
|
378
|
+
type: Boolean,
|
|
379
|
+
required: false
|
|
380
|
+
},
|
|
381
|
+
avoidCollisions: {
|
|
382
|
+
type: Boolean,
|
|
383
|
+
required: false
|
|
384
|
+
},
|
|
385
|
+
collisionBoundary: {
|
|
386
|
+
type: null,
|
|
387
|
+
required: false
|
|
388
|
+
},
|
|
389
|
+
collisionPadding: {
|
|
390
|
+
type: [Number, Object],
|
|
391
|
+
required: false
|
|
392
|
+
},
|
|
393
|
+
arrowPadding: {
|
|
394
|
+
type: Number,
|
|
395
|
+
required: false
|
|
396
|
+
},
|
|
397
|
+
hideShiftedArrow: {
|
|
398
|
+
type: Boolean,
|
|
399
|
+
required: false
|
|
400
|
+
},
|
|
401
|
+
sticky: {
|
|
402
|
+
type: String,
|
|
403
|
+
required: false
|
|
404
|
+
},
|
|
405
|
+
hideWhenDetached: {
|
|
406
|
+
type: Boolean,
|
|
407
|
+
required: false
|
|
408
|
+
},
|
|
409
|
+
positionStrategy: {
|
|
410
|
+
type: String,
|
|
411
|
+
required: false
|
|
412
|
+
},
|
|
413
|
+
updatePositionStrategy: {
|
|
414
|
+
type: String,
|
|
415
|
+
required: false
|
|
416
|
+
},
|
|
417
|
+
disableUpdateOnLayoutShift: {
|
|
418
|
+
type: Boolean,
|
|
419
|
+
required: false
|
|
420
|
+
},
|
|
421
|
+
prioritizePosition: {
|
|
422
|
+
type: Boolean,
|
|
423
|
+
required: false
|
|
424
|
+
},
|
|
425
|
+
reference: {
|
|
426
|
+
type: null,
|
|
427
|
+
required: false
|
|
428
|
+
},
|
|
429
|
+
asChild: {
|
|
430
|
+
type: Boolean,
|
|
431
|
+
required: false
|
|
432
|
+
},
|
|
433
|
+
as: {
|
|
434
|
+
type: null,
|
|
435
|
+
required: false
|
|
436
|
+
},
|
|
437
|
+
disableOutsidePointerEvents: {
|
|
438
|
+
type: Boolean,
|
|
439
|
+
required: false
|
|
440
|
+
}
|
|
441
|
+
},
|
|
442
|
+
emits: [
|
|
443
|
+
"escapeKeyDown",
|
|
444
|
+
"pointerDownOutside",
|
|
445
|
+
"focusOutside",
|
|
446
|
+
"interactOutside",
|
|
447
|
+
"openAutoFocus",
|
|
448
|
+
"closeAutoFocus"
|
|
449
|
+
],
|
|
450
|
+
setup(__props, { emit: __emit }) {
|
|
451
|
+
const props = __props;
|
|
452
|
+
const emits = __emit;
|
|
453
|
+
const rootContext = injectPopoverRootContext();
|
|
454
|
+
const hasInteractedOutsideRef = ref(false);
|
|
455
|
+
const hasPointerDownOutsideRef = ref(false);
|
|
456
|
+
const forwarded = useForwardPropsEmits(props, emits);
|
|
457
|
+
return (_ctx, _cache) => {
|
|
458
|
+
return openBlock(), createBlock(PopoverContentImpl_default, mergeProps(unref(forwarded), {
|
|
459
|
+
"trap-focus": false,
|
|
460
|
+
"disable-outside-pointer-events": false,
|
|
461
|
+
onCloseAutoFocus: _cache[0] || (_cache[0] = (event) => {
|
|
462
|
+
var _a;
|
|
463
|
+
emits("closeAutoFocus", event);
|
|
464
|
+
if (!event.defaultPrevented) {
|
|
465
|
+
if (!hasInteractedOutsideRef.value) (_a = unref(rootContext).triggerElement.value) == null ? void 0 : _a.focus();
|
|
466
|
+
event.preventDefault();
|
|
467
|
+
}
|
|
468
|
+
hasInteractedOutsideRef.value = false;
|
|
469
|
+
hasPointerDownOutsideRef.value = false;
|
|
470
|
+
}),
|
|
471
|
+
onInteractOutside: _cache[1] || (_cache[1] = async (event) => {
|
|
472
|
+
var _a;
|
|
473
|
+
emits("interactOutside", event);
|
|
474
|
+
if (!event.defaultPrevented) {
|
|
475
|
+
hasInteractedOutsideRef.value = true;
|
|
476
|
+
if (event.detail.originalEvent.type === "pointerdown") hasPointerDownOutsideRef.value = true;
|
|
477
|
+
}
|
|
478
|
+
const target = event.target;
|
|
479
|
+
const targetIsTrigger = (_a = unref(rootContext).triggerElement.value) == null ? void 0 : _a.contains(target);
|
|
480
|
+
if (targetIsTrigger) event.preventDefault();
|
|
481
|
+
if (event.detail.originalEvent.type === "focusin" && hasPointerDownOutsideRef.value) event.preventDefault();
|
|
482
|
+
})
|
|
483
|
+
}), {
|
|
484
|
+
default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
|
|
485
|
+
_: 3
|
|
486
|
+
}, 16);
|
|
487
|
+
};
|
|
488
|
+
}
|
|
489
|
+
});
|
|
490
|
+
var PopoverContentNonModal_default = PopoverContentNonModal_vue_vue_type_script_setup_true_lang_default;
|
|
491
|
+
var PopoverContent_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineComponent({
|
|
492
|
+
__name: "PopoverContent",
|
|
493
|
+
props: {
|
|
494
|
+
forceMount: {
|
|
495
|
+
type: Boolean,
|
|
496
|
+
required: false
|
|
497
|
+
},
|
|
498
|
+
side: {
|
|
499
|
+
type: null,
|
|
500
|
+
required: false
|
|
501
|
+
},
|
|
502
|
+
sideOffset: {
|
|
503
|
+
type: Number,
|
|
504
|
+
required: false
|
|
505
|
+
},
|
|
506
|
+
sideFlip: {
|
|
507
|
+
type: Boolean,
|
|
508
|
+
required: false
|
|
509
|
+
},
|
|
510
|
+
align: {
|
|
511
|
+
type: null,
|
|
512
|
+
required: false
|
|
513
|
+
},
|
|
514
|
+
alignOffset: {
|
|
515
|
+
type: Number,
|
|
516
|
+
required: false
|
|
517
|
+
},
|
|
518
|
+
alignFlip: {
|
|
519
|
+
type: Boolean,
|
|
520
|
+
required: false
|
|
521
|
+
},
|
|
522
|
+
avoidCollisions: {
|
|
523
|
+
type: Boolean,
|
|
524
|
+
required: false
|
|
525
|
+
},
|
|
526
|
+
collisionBoundary: {
|
|
527
|
+
type: null,
|
|
528
|
+
required: false
|
|
529
|
+
},
|
|
530
|
+
collisionPadding: {
|
|
531
|
+
type: [Number, Object],
|
|
532
|
+
required: false
|
|
533
|
+
},
|
|
534
|
+
arrowPadding: {
|
|
535
|
+
type: Number,
|
|
536
|
+
required: false
|
|
537
|
+
},
|
|
538
|
+
hideShiftedArrow: {
|
|
539
|
+
type: Boolean,
|
|
540
|
+
required: false
|
|
541
|
+
},
|
|
542
|
+
sticky: {
|
|
543
|
+
type: String,
|
|
544
|
+
required: false
|
|
545
|
+
},
|
|
546
|
+
hideWhenDetached: {
|
|
547
|
+
type: Boolean,
|
|
548
|
+
required: false
|
|
549
|
+
},
|
|
550
|
+
positionStrategy: {
|
|
551
|
+
type: String,
|
|
552
|
+
required: false
|
|
553
|
+
},
|
|
554
|
+
updatePositionStrategy: {
|
|
555
|
+
type: String,
|
|
556
|
+
required: false
|
|
557
|
+
},
|
|
558
|
+
disableUpdateOnLayoutShift: {
|
|
559
|
+
type: Boolean,
|
|
560
|
+
required: false
|
|
561
|
+
},
|
|
562
|
+
prioritizePosition: {
|
|
563
|
+
type: Boolean,
|
|
564
|
+
required: false
|
|
565
|
+
},
|
|
566
|
+
reference: {
|
|
567
|
+
type: null,
|
|
568
|
+
required: false
|
|
569
|
+
},
|
|
570
|
+
asChild: {
|
|
571
|
+
type: Boolean,
|
|
572
|
+
required: false
|
|
573
|
+
},
|
|
574
|
+
as: {
|
|
575
|
+
type: null,
|
|
576
|
+
required: false
|
|
577
|
+
},
|
|
578
|
+
disableOutsidePointerEvents: {
|
|
579
|
+
type: Boolean,
|
|
580
|
+
required: false
|
|
581
|
+
}
|
|
582
|
+
},
|
|
583
|
+
emits: [
|
|
584
|
+
"escapeKeyDown",
|
|
585
|
+
"pointerDownOutside",
|
|
586
|
+
"focusOutside",
|
|
587
|
+
"interactOutside",
|
|
588
|
+
"openAutoFocus",
|
|
589
|
+
"closeAutoFocus"
|
|
590
|
+
],
|
|
591
|
+
setup(__props, { emit: __emit }) {
|
|
592
|
+
const props = __props;
|
|
593
|
+
const emits = __emit;
|
|
594
|
+
const rootContext = injectPopoverRootContext();
|
|
595
|
+
const forwarded = useForwardPropsEmits(props, emits);
|
|
596
|
+
const { forwardRef } = useForwardExpose();
|
|
597
|
+
rootContext.contentId || (rootContext.contentId = useId(void 0, "reka-popover-content"));
|
|
598
|
+
return (_ctx, _cache) => {
|
|
599
|
+
return openBlock(), createBlock(unref(Presence_default), { present: _ctx.forceMount || unref(rootContext).open.value }, {
|
|
600
|
+
default: withCtx(() => [unref(rootContext).modal.value ? (openBlock(), createBlock(PopoverContentModal_default, mergeProps({ key: 0 }, unref(forwarded), { ref: unref(forwardRef) }), {
|
|
601
|
+
default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
|
|
602
|
+
_: 3
|
|
603
|
+
}, 16)) : (openBlock(), createBlock(PopoverContentNonModal_default, mergeProps({ key: 1 }, unref(forwarded), { ref: unref(forwardRef) }), {
|
|
604
|
+
default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
|
|
605
|
+
_: 3
|
|
606
|
+
}, 16))]),
|
|
607
|
+
_: 3
|
|
608
|
+
}, 8, ["present"]);
|
|
609
|
+
};
|
|
610
|
+
}
|
|
611
|
+
});
|
|
612
|
+
var PopoverContent_default = PopoverContent_vue_vue_type_script_setup_true_lang_default;
|
|
613
|
+
var PopoverPortal_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineComponent({
|
|
614
|
+
__name: "PopoverPortal",
|
|
615
|
+
props: {
|
|
616
|
+
to: {
|
|
617
|
+
type: null,
|
|
618
|
+
required: false
|
|
619
|
+
},
|
|
620
|
+
disabled: {
|
|
621
|
+
type: Boolean,
|
|
622
|
+
required: false
|
|
623
|
+
},
|
|
624
|
+
defer: {
|
|
625
|
+
type: Boolean,
|
|
626
|
+
required: false
|
|
627
|
+
},
|
|
628
|
+
forceMount: {
|
|
629
|
+
type: Boolean,
|
|
630
|
+
required: false
|
|
631
|
+
}
|
|
632
|
+
},
|
|
633
|
+
setup(__props) {
|
|
634
|
+
const props = __props;
|
|
635
|
+
return (_ctx, _cache) => {
|
|
636
|
+
return openBlock(), createBlock(unref(Teleport_default), normalizeProps(guardReactiveProps(props)), {
|
|
637
|
+
default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
|
|
638
|
+
_: 3
|
|
639
|
+
}, 16);
|
|
640
|
+
};
|
|
641
|
+
}
|
|
642
|
+
});
|
|
643
|
+
var PopoverPortal_default = PopoverPortal_vue_vue_type_script_setup_true_lang_default;
|
|
644
|
+
var PopoverTrigger_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineComponent({
|
|
645
|
+
__name: "PopoverTrigger",
|
|
646
|
+
props: {
|
|
647
|
+
asChild: {
|
|
648
|
+
type: Boolean,
|
|
649
|
+
required: false
|
|
650
|
+
},
|
|
651
|
+
as: {
|
|
652
|
+
type: null,
|
|
653
|
+
required: false,
|
|
654
|
+
default: "button"
|
|
655
|
+
}
|
|
656
|
+
},
|
|
657
|
+
setup(__props) {
|
|
658
|
+
const props = __props;
|
|
659
|
+
const rootContext = injectPopoverRootContext();
|
|
660
|
+
const { forwardRef, currentElement: triggerElement } = useForwardExpose();
|
|
661
|
+
rootContext.triggerId || (rootContext.triggerId = useId(void 0, "reka-popover-trigger"));
|
|
662
|
+
onMounted(() => {
|
|
663
|
+
rootContext.triggerElement.value = triggerElement.value;
|
|
664
|
+
});
|
|
665
|
+
return (_ctx, _cache) => {
|
|
666
|
+
return openBlock(), createBlock(resolveDynamicComponent(unref(rootContext).hasCustomAnchor.value ? unref(Primitive) : unref(PopperAnchor_default)), { "as-child": "" }, {
|
|
667
|
+
default: withCtx(() => [createVNode(unref(Primitive), {
|
|
668
|
+
id: unref(rootContext).triggerId,
|
|
669
|
+
ref: unref(forwardRef),
|
|
670
|
+
type: _ctx.as === "button" ? "button" : void 0,
|
|
671
|
+
"aria-haspopup": "dialog",
|
|
672
|
+
"aria-expanded": unref(rootContext).open.value,
|
|
673
|
+
"aria-controls": unref(rootContext).contentId,
|
|
674
|
+
"data-state": unref(rootContext).open.value ? "open" : "closed",
|
|
675
|
+
as: _ctx.as,
|
|
676
|
+
"as-child": props.asChild,
|
|
677
|
+
onClick: unref(rootContext).onOpenToggle
|
|
678
|
+
}, {
|
|
679
|
+
default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
|
|
680
|
+
_: 3
|
|
681
|
+
}, 8, [
|
|
682
|
+
"id",
|
|
683
|
+
"type",
|
|
684
|
+
"aria-expanded",
|
|
685
|
+
"aria-controls",
|
|
686
|
+
"data-state",
|
|
687
|
+
"as",
|
|
688
|
+
"as-child",
|
|
689
|
+
"onClick"
|
|
690
|
+
])]),
|
|
691
|
+
_: 3
|
|
692
|
+
});
|
|
693
|
+
};
|
|
694
|
+
}
|
|
695
|
+
});
|
|
696
|
+
var PopoverTrigger_default = PopoverTrigger_vue_vue_type_script_setup_true_lang_default;
|
|
697
|
+
const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
698
|
+
__name: "Popover",
|
|
699
|
+
props: {
|
|
700
|
+
defaultOpen: { type: Boolean },
|
|
701
|
+
open: { type: Boolean },
|
|
702
|
+
modal: { type: Boolean }
|
|
703
|
+
},
|
|
704
|
+
emits: ["update:open"],
|
|
705
|
+
setup(__props, { emit: __emit }) {
|
|
706
|
+
const props = __props;
|
|
707
|
+
const emits = __emit;
|
|
708
|
+
const forwarded = useForwardPropsEmits(props, emits);
|
|
709
|
+
return (_ctx, _cache) => {
|
|
710
|
+
return openBlock(), createBlock(unref(PopoverRoot_default), mergeProps({ "data-slot": "popover" }, unref(forwarded)), {
|
|
711
|
+
default: withCtx((slotProps) => [
|
|
712
|
+
renderSlot(_ctx.$slots, "default", normalizeProps(guardReactiveProps(slotProps)))
|
|
713
|
+
]),
|
|
714
|
+
_: 3
|
|
715
|
+
}, 16);
|
|
716
|
+
};
|
|
717
|
+
}
|
|
718
|
+
});
|
|
719
|
+
const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
720
|
+
...{
|
|
721
|
+
inheritAttrs: false
|
|
722
|
+
},
|
|
723
|
+
__name: "PopoverContent",
|
|
724
|
+
props: {
|
|
725
|
+
forceMount: { type: Boolean },
|
|
726
|
+
side: {},
|
|
727
|
+
sideOffset: { default: 4 },
|
|
728
|
+
sideFlip: { type: Boolean },
|
|
729
|
+
align: { default: "center" },
|
|
730
|
+
alignOffset: {},
|
|
731
|
+
alignFlip: { type: Boolean },
|
|
732
|
+
avoidCollisions: { type: Boolean },
|
|
733
|
+
collisionBoundary: {},
|
|
734
|
+
collisionPadding: {},
|
|
735
|
+
arrowPadding: {},
|
|
736
|
+
hideShiftedArrow: { type: Boolean },
|
|
737
|
+
sticky: {},
|
|
738
|
+
hideWhenDetached: { type: Boolean },
|
|
739
|
+
positionStrategy: {},
|
|
740
|
+
updatePositionStrategy: {},
|
|
741
|
+
disableUpdateOnLayoutShift: { type: Boolean },
|
|
742
|
+
prioritizePosition: { type: Boolean },
|
|
743
|
+
reference: {},
|
|
744
|
+
asChild: { type: Boolean },
|
|
745
|
+
as: {},
|
|
746
|
+
disableOutsidePointerEvents: { type: Boolean },
|
|
747
|
+
class: {}
|
|
748
|
+
},
|
|
749
|
+
emits: ["escapeKeyDown", "pointerDownOutside", "focusOutside", "interactOutside", "openAutoFocus", "closeAutoFocus"],
|
|
750
|
+
setup(__props, { emit: __emit }) {
|
|
751
|
+
const props = __props;
|
|
752
|
+
const emits = __emit;
|
|
753
|
+
const delegatedProps = reactiveOmit(props, "class");
|
|
754
|
+
const forwarded = useForwardPropsEmits(delegatedProps, emits);
|
|
755
|
+
return (_ctx, _cache) => {
|
|
756
|
+
return openBlock(), createBlock(unref(PopoverPortal_default), null, {
|
|
757
|
+
default: withCtx(() => [
|
|
758
|
+
createVNode(unref(PopoverContent_default), mergeProps({ "data-slot": "popover-content" }, { ..._ctx.$attrs, ...unref(forwarded) }, {
|
|
759
|
+
class: unref(cn)(
|
|
760
|
+
"bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out 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 z-50 w-72 rounded border border-border p-4 transition-colors duration-300 ease-in-out origin-(--reka-popover-content-transform-origin) outline-hidden",
|
|
761
|
+
props.class
|
|
762
|
+
)
|
|
763
|
+
}), {
|
|
764
|
+
default: withCtx(() => [
|
|
765
|
+
renderSlot(_ctx.$slots, "default")
|
|
766
|
+
]),
|
|
767
|
+
_: 3
|
|
768
|
+
}, 16, ["class"])
|
|
769
|
+
]),
|
|
770
|
+
_: 3
|
|
771
|
+
});
|
|
772
|
+
};
|
|
773
|
+
}
|
|
774
|
+
});
|
|
775
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
776
|
+
__name: "PopoverTrigger",
|
|
777
|
+
props: {
|
|
778
|
+
asChild: { type: Boolean },
|
|
779
|
+
as: {}
|
|
780
|
+
},
|
|
781
|
+
setup(__props) {
|
|
782
|
+
const props = __props;
|
|
783
|
+
return (_ctx, _cache) => {
|
|
784
|
+
return openBlock(), createBlock(unref(PopoverTrigger_default), mergeProps({ "data-slot": "popover-trigger" }, props), {
|
|
785
|
+
default: withCtx(() => [
|
|
786
|
+
renderSlot(_ctx.$slots, "default")
|
|
787
|
+
]),
|
|
788
|
+
_: 3
|
|
789
|
+
}, 16);
|
|
790
|
+
};
|
|
791
|
+
}
|
|
792
|
+
});
|
|
793
|
+
export {
|
|
794
|
+
_sfc_main$2 as _,
|
|
795
|
+
_sfc_main$1 as a,
|
|
796
|
+
_sfc_main as b,
|
|
797
|
+
injectPopoverRootContext as i
|
|
798
|
+
};
|