@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,92 @@
|
|
|
1
|
+
import { defineComponent, ref, computed, openBlock, createBlock, unref, withCtx, createVNode, normalizeClass, createTextVNode, toDisplayString } from "vue";
|
|
2
|
+
import { $ as $14e0f24ef4ac5c92$export$d0bdf45af03a6ea3, l as $14e0f24ef4ac5c92$export$aa8b41735afcabd2, m as $fb18d541ea1ad717$export$ad991b66133851cf, _ as _sfc_main$5 } from "./CalendarPrevButton.vue_vue_type_script_setup_true_lang-C-WnFnvj.js";
|
|
3
|
+
import { c as cn } from "./utils-Bz4m9VPB.js";
|
|
4
|
+
import { Button as _sfc_main$3 } from "./button.js";
|
|
5
|
+
import { _ as _sfc_main$1, b as _sfc_main$2, a as _sfc_main$4 } from "./PopoverTrigger.vue_vue_type_script_setup_true_lang-KTcg6Jnl.js";
|
|
6
|
+
import { c as createLucideIcon } from "./createLucideIcon-CCMB2vDW.js";
|
|
7
|
+
/**
|
|
8
|
+
* @license lucide-vue-next v1.0.0 - ISC
|
|
9
|
+
*
|
|
10
|
+
* This source code is licensed under the ISC license.
|
|
11
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
12
|
+
*/
|
|
13
|
+
const Calendar = createLucideIcon("calendar", [
|
|
14
|
+
["path", { d: "M8 2v4", key: "1cmpym" }],
|
|
15
|
+
["path", { d: "M16 2v4", key: "4m81vk" }],
|
|
16
|
+
["rect", { width: "18", height: "18", x: "3", y: "4", rx: "2", key: "1hopcy" }],
|
|
17
|
+
["path", { d: "M3 10h18", key: "8toen8" }]
|
|
18
|
+
]);
|
|
19
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
20
|
+
__name: "DatePicker",
|
|
21
|
+
props: {
|
|
22
|
+
defaultValue: {},
|
|
23
|
+
modelValue: {},
|
|
24
|
+
placeholder: { default: "Pick a date" },
|
|
25
|
+
disabled: { type: Boolean, default: false },
|
|
26
|
+
class: {},
|
|
27
|
+
contentClass: {}
|
|
28
|
+
},
|
|
29
|
+
emits: ["update:modelValue"],
|
|
30
|
+
setup(__props, { emit: __emit }) {
|
|
31
|
+
const props = __props;
|
|
32
|
+
const emits = __emit;
|
|
33
|
+
const internalDate = ref(props.defaultValue);
|
|
34
|
+
const isControlled = computed(() => props.modelValue !== void 0);
|
|
35
|
+
const date = computed({
|
|
36
|
+
get: () => isControlled.value ? props.modelValue : internalDate.value,
|
|
37
|
+
set: (value) => {
|
|
38
|
+
if (!isControlled.value)
|
|
39
|
+
internalDate.value = value;
|
|
40
|
+
emits("update:modelValue", value);
|
|
41
|
+
}
|
|
42
|
+
});
|
|
43
|
+
const defaultPlaceholder = computed(() => date.value ?? $14e0f24ef4ac5c92$export$d0bdf45af03a6ea3($14e0f24ef4ac5c92$export$aa8b41735afcabd2()));
|
|
44
|
+
const formatter = new $fb18d541ea1ad717$export$ad991b66133851cf("en-US", {
|
|
45
|
+
dateStyle: "long"
|
|
46
|
+
});
|
|
47
|
+
return (_ctx, _cache) => {
|
|
48
|
+
return openBlock(), createBlock(unref(_sfc_main$1), null, {
|
|
49
|
+
default: withCtx(({ close }) => [
|
|
50
|
+
createVNode(unref(_sfc_main$2), { "as-child": "" }, {
|
|
51
|
+
default: withCtx(() => [
|
|
52
|
+
createVNode(unref(_sfc_main$3), {
|
|
53
|
+
variant: "outline",
|
|
54
|
+
disabled: _ctx.disabled,
|
|
55
|
+
class: normalizeClass(unref(cn)("w-[240px] justify-start text-left font-normal", !date.value && "text-muted-foreground", props.class))
|
|
56
|
+
}, {
|
|
57
|
+
default: withCtx(() => [
|
|
58
|
+
createVNode(unref(Calendar), { class: "size-4" }),
|
|
59
|
+
createTextVNode(" " + toDisplayString(date.value ? unref(formatter).format(date.value.toDate(unref($14e0f24ef4ac5c92$export$aa8b41735afcabd2)())) : _ctx.placeholder), 1)
|
|
60
|
+
]),
|
|
61
|
+
_: 1
|
|
62
|
+
}, 8, ["disabled", "class"])
|
|
63
|
+
]),
|
|
64
|
+
_: 1
|
|
65
|
+
}),
|
|
66
|
+
createVNode(unref(_sfc_main$4), {
|
|
67
|
+
class: normalizeClass(unref(cn)("w-auto p-0", props.contentClass)),
|
|
68
|
+
align: "start"
|
|
69
|
+
}, {
|
|
70
|
+
default: withCtx(() => [
|
|
71
|
+
createVNode(unref(_sfc_main$5), {
|
|
72
|
+
modelValue: date.value,
|
|
73
|
+
"onUpdate:modelValue": [
|
|
74
|
+
_cache[0] || (_cache[0] = ($event) => date.value = $event),
|
|
75
|
+
close
|
|
76
|
+
],
|
|
77
|
+
"default-placeholder": defaultPlaceholder.value,
|
|
78
|
+
layout: "month-and-year",
|
|
79
|
+
"initial-focus": ""
|
|
80
|
+
}, null, 8, ["modelValue", "default-placeholder", "onUpdate:modelValue"])
|
|
81
|
+
]),
|
|
82
|
+
_: 2
|
|
83
|
+
}, 1032, ["class"])
|
|
84
|
+
]),
|
|
85
|
+
_: 1
|
|
86
|
+
});
|
|
87
|
+
};
|
|
88
|
+
}
|
|
89
|
+
});
|
|
90
|
+
export {
|
|
91
|
+
_sfc_main as _
|
|
92
|
+
};
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { u as useForwardExpose } from "./useForwardExpose-CNVHwdF2.js";
|
|
2
|
+
import { P as Primitive } from "./Primitive-D3IcFg81.js";
|
|
3
|
+
import { i as injectDialogRootContext } from "./DialogTitle-DXj0nkXn.js";
|
|
4
|
+
import { defineComponent, openBlock, createBlock, unref, mergeProps, withCtx, renderSlot } from "vue";
|
|
5
|
+
var DialogClose_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineComponent({
|
|
6
|
+
__name: "DialogClose",
|
|
7
|
+
props: {
|
|
8
|
+
asChild: {
|
|
9
|
+
type: Boolean,
|
|
10
|
+
required: false
|
|
11
|
+
},
|
|
12
|
+
as: {
|
|
13
|
+
type: null,
|
|
14
|
+
required: false,
|
|
15
|
+
default: "button"
|
|
16
|
+
}
|
|
17
|
+
},
|
|
18
|
+
setup(__props) {
|
|
19
|
+
const props = __props;
|
|
20
|
+
useForwardExpose();
|
|
21
|
+
const rootContext = injectDialogRootContext();
|
|
22
|
+
return (_ctx, _cache) => {
|
|
23
|
+
return openBlock(), createBlock(unref(Primitive), mergeProps(props, {
|
|
24
|
+
type: _ctx.as === "button" ? "button" : void 0,
|
|
25
|
+
onClick: _cache[0] || (_cache[0] = ($event) => unref(rootContext).onOpenChange(false))
|
|
26
|
+
}), {
|
|
27
|
+
default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
|
|
28
|
+
_: 3
|
|
29
|
+
}, 16, ["type"]);
|
|
30
|
+
};
|
|
31
|
+
}
|
|
32
|
+
});
|
|
33
|
+
var DialogClose_default = DialogClose_vue_vue_type_script_setup_true_lang_default;
|
|
34
|
+
export {
|
|
35
|
+
DialogClose_default as D
|
|
36
|
+
};
|
|
@@ -0,0 +1,522 @@
|
|
|
1
|
+
import { c as createContext, b as useEmitAsProps } from "./useForwardPropsEmits-DmumnZO5.js";
|
|
2
|
+
import { u as useForwardExpose } from "./useForwardExpose-CNVHwdF2.js";
|
|
3
|
+
import { u as useId, D as DismissableLayer_default, P as Presence_default } from "./Teleport-CuUn4UkG.js";
|
|
4
|
+
import { g as getActiveElement, F as FocusScope_default, a as useHideOthers, u as useBodyScrollLock } from "./FocusScope-C3mcVwsf.js";
|
|
5
|
+
import { g as getOpenState } from "./utils-RRmyeqLm.js";
|
|
6
|
+
import { defineComponent, ref, toRefs, renderSlot, unref, onMounted, openBlock, createBlock, withCtx, createVNode, mergeProps, createCommentVNode } from "vue";
|
|
7
|
+
import { P as Primitive } from "./Primitive-D3IcFg81.js";
|
|
8
|
+
import { u as useVModel } from "./index-C1_fxYhb.js";
|
|
9
|
+
const [injectDialogRootContext, provideDialogRootContext] = createContext("DialogRoot");
|
|
10
|
+
var DialogRoot_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineComponent({
|
|
11
|
+
inheritAttrs: false,
|
|
12
|
+
__name: "DialogRoot",
|
|
13
|
+
props: {
|
|
14
|
+
open: {
|
|
15
|
+
type: Boolean,
|
|
16
|
+
required: false,
|
|
17
|
+
default: void 0
|
|
18
|
+
},
|
|
19
|
+
defaultOpen: {
|
|
20
|
+
type: Boolean,
|
|
21
|
+
required: false,
|
|
22
|
+
default: false
|
|
23
|
+
},
|
|
24
|
+
modal: {
|
|
25
|
+
type: Boolean,
|
|
26
|
+
required: false,
|
|
27
|
+
default: true
|
|
28
|
+
}
|
|
29
|
+
},
|
|
30
|
+
emits: ["update:open"],
|
|
31
|
+
setup(__props, { emit: __emit }) {
|
|
32
|
+
const props = __props;
|
|
33
|
+
const emit = __emit;
|
|
34
|
+
const open = useVModel(props, "open", emit, {
|
|
35
|
+
defaultValue: props.defaultOpen,
|
|
36
|
+
passive: props.open === void 0
|
|
37
|
+
});
|
|
38
|
+
const triggerElement = ref();
|
|
39
|
+
const contentElement = ref();
|
|
40
|
+
const { modal } = toRefs(props);
|
|
41
|
+
provideDialogRootContext({
|
|
42
|
+
open,
|
|
43
|
+
modal,
|
|
44
|
+
openModal: () => {
|
|
45
|
+
open.value = true;
|
|
46
|
+
},
|
|
47
|
+
onOpenChange: (value) => {
|
|
48
|
+
open.value = value;
|
|
49
|
+
},
|
|
50
|
+
onOpenToggle: () => {
|
|
51
|
+
open.value = !open.value;
|
|
52
|
+
},
|
|
53
|
+
contentId: "",
|
|
54
|
+
titleId: "",
|
|
55
|
+
descriptionId: "",
|
|
56
|
+
triggerElement,
|
|
57
|
+
contentElement
|
|
58
|
+
});
|
|
59
|
+
return (_ctx, _cache) => {
|
|
60
|
+
return renderSlot(_ctx.$slots, "default", {
|
|
61
|
+
open: unref(open),
|
|
62
|
+
close: () => open.value = false
|
|
63
|
+
});
|
|
64
|
+
};
|
|
65
|
+
}
|
|
66
|
+
});
|
|
67
|
+
var DialogRoot_default = DialogRoot_vue_vue_type_script_setup_true_lang_default;
|
|
68
|
+
const DEFAULT_TITLE_NAME = "DialogTitle";
|
|
69
|
+
const DEFAULT_CONTENT_NAME = "DialogContent";
|
|
70
|
+
function useWarning({ titleName = DEFAULT_TITLE_NAME, contentName = DEFAULT_CONTENT_NAME, componentLink = "dialog.html#title", titleId, descriptionId, contentElement }) {
|
|
71
|
+
const TITLE_MESSAGE = `Warning: \`${contentName}\` requires a \`${titleName}\` for the component to be accessible for screen reader users.
|
|
72
|
+
|
|
73
|
+
If you want to hide the \`${titleName}\`, you can wrap it with our VisuallyHidden component.
|
|
74
|
+
|
|
75
|
+
For more information, see https://www.reka-ui.com/docs/components/${componentLink}`;
|
|
76
|
+
const DESCRIPTION_MESSAGE = `Warning: Missing \`Description\` or \`aria-describedby="undefined"\` for ${contentName}.`;
|
|
77
|
+
onMounted(() => {
|
|
78
|
+
var _a;
|
|
79
|
+
const hasTitle = document.getElementById(titleId);
|
|
80
|
+
if (!hasTitle) console.warn(TITLE_MESSAGE);
|
|
81
|
+
const describedById = (_a = contentElement.value) == null ? void 0 : _a.getAttribute("aria-describedby");
|
|
82
|
+
if (descriptionId && describedById) {
|
|
83
|
+
const hasDescription = document.getElementById(descriptionId);
|
|
84
|
+
if (!hasDescription) console.warn(DESCRIPTION_MESSAGE);
|
|
85
|
+
}
|
|
86
|
+
});
|
|
87
|
+
}
|
|
88
|
+
var DialogContentImpl_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineComponent({
|
|
89
|
+
__name: "DialogContentImpl",
|
|
90
|
+
props: {
|
|
91
|
+
forceMount: {
|
|
92
|
+
type: Boolean,
|
|
93
|
+
required: false
|
|
94
|
+
},
|
|
95
|
+
trapFocus: {
|
|
96
|
+
type: Boolean,
|
|
97
|
+
required: false
|
|
98
|
+
},
|
|
99
|
+
disableOutsidePointerEvents: {
|
|
100
|
+
type: Boolean,
|
|
101
|
+
required: false
|
|
102
|
+
},
|
|
103
|
+
asChild: {
|
|
104
|
+
type: Boolean,
|
|
105
|
+
required: false
|
|
106
|
+
},
|
|
107
|
+
as: {
|
|
108
|
+
type: null,
|
|
109
|
+
required: false
|
|
110
|
+
}
|
|
111
|
+
},
|
|
112
|
+
emits: [
|
|
113
|
+
"escapeKeyDown",
|
|
114
|
+
"pointerDownOutside",
|
|
115
|
+
"focusOutside",
|
|
116
|
+
"interactOutside",
|
|
117
|
+
"openAutoFocus",
|
|
118
|
+
"closeAutoFocus"
|
|
119
|
+
],
|
|
120
|
+
setup(__props, { emit: __emit }) {
|
|
121
|
+
const props = __props;
|
|
122
|
+
const emits = __emit;
|
|
123
|
+
const rootContext = injectDialogRootContext();
|
|
124
|
+
const { forwardRef, currentElement: contentElement } = useForwardExpose();
|
|
125
|
+
rootContext.titleId || (rootContext.titleId = useId(void 0, "reka-dialog-title"));
|
|
126
|
+
rootContext.descriptionId || (rootContext.descriptionId = useId(void 0, "reka-dialog-description"));
|
|
127
|
+
onMounted(() => {
|
|
128
|
+
rootContext.contentElement = contentElement;
|
|
129
|
+
if (getActiveElement() !== document.body) rootContext.triggerElement.value = getActiveElement();
|
|
130
|
+
});
|
|
131
|
+
if (process.env.NODE_ENV !== "production") useWarning({
|
|
132
|
+
titleName: "DialogTitle",
|
|
133
|
+
contentName: "DialogContent",
|
|
134
|
+
componentLink: "dialog.html#title",
|
|
135
|
+
titleId: rootContext.titleId,
|
|
136
|
+
descriptionId: rootContext.descriptionId,
|
|
137
|
+
contentElement
|
|
138
|
+
});
|
|
139
|
+
return (_ctx, _cache) => {
|
|
140
|
+
return openBlock(), createBlock(unref(FocusScope_default), {
|
|
141
|
+
"as-child": "",
|
|
142
|
+
loop: "",
|
|
143
|
+
trapped: props.trapFocus,
|
|
144
|
+
onMountAutoFocus: _cache[5] || (_cache[5] = ($event) => emits("openAutoFocus", $event)),
|
|
145
|
+
onUnmountAutoFocus: _cache[6] || (_cache[6] = ($event) => emits("closeAutoFocus", $event))
|
|
146
|
+
}, {
|
|
147
|
+
default: withCtx(() => [createVNode(unref(DismissableLayer_default), mergeProps({
|
|
148
|
+
id: unref(rootContext).contentId,
|
|
149
|
+
ref: unref(forwardRef),
|
|
150
|
+
as: _ctx.as,
|
|
151
|
+
"as-child": _ctx.asChild,
|
|
152
|
+
"disable-outside-pointer-events": _ctx.disableOutsidePointerEvents,
|
|
153
|
+
role: "dialog",
|
|
154
|
+
"aria-describedby": unref(rootContext).descriptionId,
|
|
155
|
+
"aria-labelledby": unref(rootContext).titleId,
|
|
156
|
+
"data-state": unref(getOpenState)(unref(rootContext).open.value)
|
|
157
|
+
}, _ctx.$attrs, {
|
|
158
|
+
onDismiss: _cache[0] || (_cache[0] = ($event) => unref(rootContext).onOpenChange(false)),
|
|
159
|
+
onEscapeKeyDown: _cache[1] || (_cache[1] = ($event) => emits("escapeKeyDown", $event)),
|
|
160
|
+
onFocusOutside: _cache[2] || (_cache[2] = ($event) => emits("focusOutside", $event)),
|
|
161
|
+
onInteractOutside: _cache[3] || (_cache[3] = ($event) => emits("interactOutside", $event)),
|
|
162
|
+
onPointerDownOutside: _cache[4] || (_cache[4] = ($event) => emits("pointerDownOutside", $event))
|
|
163
|
+
}), {
|
|
164
|
+
default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
|
|
165
|
+
_: 3
|
|
166
|
+
}, 16, [
|
|
167
|
+
"id",
|
|
168
|
+
"as",
|
|
169
|
+
"as-child",
|
|
170
|
+
"disable-outside-pointer-events",
|
|
171
|
+
"aria-describedby",
|
|
172
|
+
"aria-labelledby",
|
|
173
|
+
"data-state"
|
|
174
|
+
])]),
|
|
175
|
+
_: 3
|
|
176
|
+
}, 8, ["trapped"]);
|
|
177
|
+
};
|
|
178
|
+
}
|
|
179
|
+
});
|
|
180
|
+
var DialogContentImpl_default = DialogContentImpl_vue_vue_type_script_setup_true_lang_default;
|
|
181
|
+
var DialogContentModal_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineComponent({
|
|
182
|
+
__name: "DialogContentModal",
|
|
183
|
+
props: {
|
|
184
|
+
forceMount: {
|
|
185
|
+
type: Boolean,
|
|
186
|
+
required: false
|
|
187
|
+
},
|
|
188
|
+
trapFocus: {
|
|
189
|
+
type: Boolean,
|
|
190
|
+
required: false
|
|
191
|
+
},
|
|
192
|
+
disableOutsidePointerEvents: {
|
|
193
|
+
type: Boolean,
|
|
194
|
+
required: false
|
|
195
|
+
},
|
|
196
|
+
asChild: {
|
|
197
|
+
type: Boolean,
|
|
198
|
+
required: false
|
|
199
|
+
},
|
|
200
|
+
as: {
|
|
201
|
+
type: null,
|
|
202
|
+
required: false
|
|
203
|
+
}
|
|
204
|
+
},
|
|
205
|
+
emits: [
|
|
206
|
+
"escapeKeyDown",
|
|
207
|
+
"pointerDownOutside",
|
|
208
|
+
"focusOutside",
|
|
209
|
+
"interactOutside",
|
|
210
|
+
"openAutoFocus",
|
|
211
|
+
"closeAutoFocus"
|
|
212
|
+
],
|
|
213
|
+
setup(__props, { emit: __emit }) {
|
|
214
|
+
const props = __props;
|
|
215
|
+
const emits = __emit;
|
|
216
|
+
const rootContext = injectDialogRootContext();
|
|
217
|
+
const emitsAsProps = useEmitAsProps(emits);
|
|
218
|
+
const { forwardRef, currentElement } = useForwardExpose();
|
|
219
|
+
useHideOthers(currentElement);
|
|
220
|
+
return (_ctx, _cache) => {
|
|
221
|
+
return openBlock(), createBlock(DialogContentImpl_default, mergeProps({
|
|
222
|
+
...props,
|
|
223
|
+
...unref(emitsAsProps)
|
|
224
|
+
}, {
|
|
225
|
+
ref: unref(forwardRef),
|
|
226
|
+
"trap-focus": unref(rootContext).open.value,
|
|
227
|
+
"disable-outside-pointer-events": true,
|
|
228
|
+
onCloseAutoFocus: _cache[0] || (_cache[0] = (event) => {
|
|
229
|
+
var _a;
|
|
230
|
+
if (!event.defaultPrevented) {
|
|
231
|
+
event.preventDefault();
|
|
232
|
+
(_a = unref(rootContext).triggerElement.value) == null ? void 0 : _a.focus();
|
|
233
|
+
}
|
|
234
|
+
}),
|
|
235
|
+
onPointerDownOutside: _cache[1] || (_cache[1] = (event) => {
|
|
236
|
+
const originalEvent = event.detail.originalEvent;
|
|
237
|
+
const ctrlLeftClick = originalEvent.button === 0 && originalEvent.ctrlKey === true;
|
|
238
|
+
const isRightClick = originalEvent.button === 2 || ctrlLeftClick;
|
|
239
|
+
if (isRightClick) event.preventDefault();
|
|
240
|
+
}),
|
|
241
|
+
onFocusOutside: _cache[2] || (_cache[2] = (event) => {
|
|
242
|
+
event.preventDefault();
|
|
243
|
+
})
|
|
244
|
+
}), {
|
|
245
|
+
default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
|
|
246
|
+
_: 3
|
|
247
|
+
}, 16, ["trap-focus"]);
|
|
248
|
+
};
|
|
249
|
+
}
|
|
250
|
+
});
|
|
251
|
+
var DialogContentModal_default = DialogContentModal_vue_vue_type_script_setup_true_lang_default;
|
|
252
|
+
var DialogContentNonModal_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineComponent({
|
|
253
|
+
__name: "DialogContentNonModal",
|
|
254
|
+
props: {
|
|
255
|
+
forceMount: {
|
|
256
|
+
type: Boolean,
|
|
257
|
+
required: false
|
|
258
|
+
},
|
|
259
|
+
trapFocus: {
|
|
260
|
+
type: Boolean,
|
|
261
|
+
required: false
|
|
262
|
+
},
|
|
263
|
+
disableOutsidePointerEvents: {
|
|
264
|
+
type: Boolean,
|
|
265
|
+
required: false
|
|
266
|
+
},
|
|
267
|
+
asChild: {
|
|
268
|
+
type: Boolean,
|
|
269
|
+
required: false
|
|
270
|
+
},
|
|
271
|
+
as: {
|
|
272
|
+
type: null,
|
|
273
|
+
required: false
|
|
274
|
+
}
|
|
275
|
+
},
|
|
276
|
+
emits: [
|
|
277
|
+
"escapeKeyDown",
|
|
278
|
+
"pointerDownOutside",
|
|
279
|
+
"focusOutside",
|
|
280
|
+
"interactOutside",
|
|
281
|
+
"openAutoFocus",
|
|
282
|
+
"closeAutoFocus"
|
|
283
|
+
],
|
|
284
|
+
setup(__props, { emit: __emit }) {
|
|
285
|
+
const props = __props;
|
|
286
|
+
const emits = __emit;
|
|
287
|
+
const emitsAsProps = useEmitAsProps(emits);
|
|
288
|
+
useForwardExpose();
|
|
289
|
+
const rootContext = injectDialogRootContext();
|
|
290
|
+
const hasInteractedOutsideRef = ref(false);
|
|
291
|
+
const hasPointerDownOutsideRef = ref(false);
|
|
292
|
+
return (_ctx, _cache) => {
|
|
293
|
+
return openBlock(), createBlock(DialogContentImpl_default, mergeProps({
|
|
294
|
+
...props,
|
|
295
|
+
...unref(emitsAsProps)
|
|
296
|
+
}, {
|
|
297
|
+
"trap-focus": false,
|
|
298
|
+
"disable-outside-pointer-events": false,
|
|
299
|
+
onCloseAutoFocus: _cache[0] || (_cache[0] = (event) => {
|
|
300
|
+
var _a;
|
|
301
|
+
if (!event.defaultPrevented) {
|
|
302
|
+
if (!hasInteractedOutsideRef.value) (_a = unref(rootContext).triggerElement.value) == null ? void 0 : _a.focus();
|
|
303
|
+
event.preventDefault();
|
|
304
|
+
}
|
|
305
|
+
hasInteractedOutsideRef.value = false;
|
|
306
|
+
hasPointerDownOutsideRef.value = false;
|
|
307
|
+
}),
|
|
308
|
+
onInteractOutside: _cache[1] || (_cache[1] = (event) => {
|
|
309
|
+
var _a;
|
|
310
|
+
if (!event.defaultPrevented) {
|
|
311
|
+
hasInteractedOutsideRef.value = true;
|
|
312
|
+
if (event.detail.originalEvent.type === "pointerdown") hasPointerDownOutsideRef.value = true;
|
|
313
|
+
}
|
|
314
|
+
const target = event.target;
|
|
315
|
+
const targetIsTrigger = (_a = unref(rootContext).triggerElement.value) == null ? void 0 : _a.contains(target);
|
|
316
|
+
if (targetIsTrigger) event.preventDefault();
|
|
317
|
+
if (event.detail.originalEvent.type === "focusin" && hasPointerDownOutsideRef.value) event.preventDefault();
|
|
318
|
+
})
|
|
319
|
+
}), {
|
|
320
|
+
default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
|
|
321
|
+
_: 3
|
|
322
|
+
}, 16);
|
|
323
|
+
};
|
|
324
|
+
}
|
|
325
|
+
});
|
|
326
|
+
var DialogContentNonModal_default = DialogContentNonModal_vue_vue_type_script_setup_true_lang_default;
|
|
327
|
+
var DialogContent_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineComponent({
|
|
328
|
+
__name: "DialogContent",
|
|
329
|
+
props: {
|
|
330
|
+
forceMount: {
|
|
331
|
+
type: Boolean,
|
|
332
|
+
required: false
|
|
333
|
+
},
|
|
334
|
+
disableOutsidePointerEvents: {
|
|
335
|
+
type: Boolean,
|
|
336
|
+
required: false
|
|
337
|
+
},
|
|
338
|
+
asChild: {
|
|
339
|
+
type: Boolean,
|
|
340
|
+
required: false
|
|
341
|
+
},
|
|
342
|
+
as: {
|
|
343
|
+
type: null,
|
|
344
|
+
required: false
|
|
345
|
+
}
|
|
346
|
+
},
|
|
347
|
+
emits: [
|
|
348
|
+
"escapeKeyDown",
|
|
349
|
+
"pointerDownOutside",
|
|
350
|
+
"focusOutside",
|
|
351
|
+
"interactOutside",
|
|
352
|
+
"openAutoFocus",
|
|
353
|
+
"closeAutoFocus"
|
|
354
|
+
],
|
|
355
|
+
setup(__props, { emit: __emit }) {
|
|
356
|
+
const props = __props;
|
|
357
|
+
const emits = __emit;
|
|
358
|
+
const rootContext = injectDialogRootContext();
|
|
359
|
+
const emitsAsProps = useEmitAsProps(emits);
|
|
360
|
+
const { forwardRef } = useForwardExpose();
|
|
361
|
+
return (_ctx, _cache) => {
|
|
362
|
+
return openBlock(), createBlock(unref(Presence_default), { present: _ctx.forceMount || unref(rootContext).open.value }, {
|
|
363
|
+
default: withCtx(() => [unref(rootContext).modal.value ? (openBlock(), createBlock(DialogContentModal_default, mergeProps({
|
|
364
|
+
key: 0,
|
|
365
|
+
ref: unref(forwardRef)
|
|
366
|
+
}, {
|
|
367
|
+
...props,
|
|
368
|
+
...unref(emitsAsProps),
|
|
369
|
+
..._ctx.$attrs
|
|
370
|
+
}), {
|
|
371
|
+
default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
|
|
372
|
+
_: 3
|
|
373
|
+
}, 16)) : (openBlock(), createBlock(DialogContentNonModal_default, mergeProps({
|
|
374
|
+
key: 1,
|
|
375
|
+
ref: unref(forwardRef)
|
|
376
|
+
}, {
|
|
377
|
+
...props,
|
|
378
|
+
...unref(emitsAsProps),
|
|
379
|
+
..._ctx.$attrs
|
|
380
|
+
}), {
|
|
381
|
+
default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
|
|
382
|
+
_: 3
|
|
383
|
+
}, 16))]),
|
|
384
|
+
_: 3
|
|
385
|
+
}, 8, ["present"]);
|
|
386
|
+
};
|
|
387
|
+
}
|
|
388
|
+
});
|
|
389
|
+
var DialogContent_default = DialogContent_vue_vue_type_script_setup_true_lang_default;
|
|
390
|
+
var DialogDescription_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineComponent({
|
|
391
|
+
__name: "DialogDescription",
|
|
392
|
+
props: {
|
|
393
|
+
asChild: {
|
|
394
|
+
type: Boolean,
|
|
395
|
+
required: false
|
|
396
|
+
},
|
|
397
|
+
as: {
|
|
398
|
+
type: null,
|
|
399
|
+
required: false,
|
|
400
|
+
default: "p"
|
|
401
|
+
}
|
|
402
|
+
},
|
|
403
|
+
setup(__props) {
|
|
404
|
+
const props = __props;
|
|
405
|
+
useForwardExpose();
|
|
406
|
+
const rootContext = injectDialogRootContext();
|
|
407
|
+
return (_ctx, _cache) => {
|
|
408
|
+
return openBlock(), createBlock(unref(Primitive), mergeProps(props, { id: unref(rootContext).descriptionId }), {
|
|
409
|
+
default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
|
|
410
|
+
_: 3
|
|
411
|
+
}, 16, ["id"]);
|
|
412
|
+
};
|
|
413
|
+
}
|
|
414
|
+
});
|
|
415
|
+
var DialogDescription_default = DialogDescription_vue_vue_type_script_setup_true_lang_default;
|
|
416
|
+
var DialogOverlayImpl_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineComponent({
|
|
417
|
+
__name: "DialogOverlayImpl",
|
|
418
|
+
props: {
|
|
419
|
+
asChild: {
|
|
420
|
+
type: Boolean,
|
|
421
|
+
required: false
|
|
422
|
+
},
|
|
423
|
+
as: {
|
|
424
|
+
type: null,
|
|
425
|
+
required: false
|
|
426
|
+
}
|
|
427
|
+
},
|
|
428
|
+
setup(__props) {
|
|
429
|
+
const rootContext = injectDialogRootContext();
|
|
430
|
+
useBodyScrollLock(true);
|
|
431
|
+
useForwardExpose();
|
|
432
|
+
return (_ctx, _cache) => {
|
|
433
|
+
return openBlock(), createBlock(unref(Primitive), {
|
|
434
|
+
as: _ctx.as,
|
|
435
|
+
"as-child": _ctx.asChild,
|
|
436
|
+
"data-state": unref(rootContext).open.value ? "open" : "closed",
|
|
437
|
+
style: { "pointer-events": "auto" }
|
|
438
|
+
}, {
|
|
439
|
+
default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
|
|
440
|
+
_: 3
|
|
441
|
+
}, 8, [
|
|
442
|
+
"as",
|
|
443
|
+
"as-child",
|
|
444
|
+
"data-state"
|
|
445
|
+
]);
|
|
446
|
+
};
|
|
447
|
+
}
|
|
448
|
+
});
|
|
449
|
+
var DialogOverlayImpl_default = DialogOverlayImpl_vue_vue_type_script_setup_true_lang_default;
|
|
450
|
+
var DialogOverlay_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineComponent({
|
|
451
|
+
__name: "DialogOverlay",
|
|
452
|
+
props: {
|
|
453
|
+
forceMount: {
|
|
454
|
+
type: Boolean,
|
|
455
|
+
required: false
|
|
456
|
+
},
|
|
457
|
+
asChild: {
|
|
458
|
+
type: Boolean,
|
|
459
|
+
required: false
|
|
460
|
+
},
|
|
461
|
+
as: {
|
|
462
|
+
type: null,
|
|
463
|
+
required: false
|
|
464
|
+
}
|
|
465
|
+
},
|
|
466
|
+
setup(__props) {
|
|
467
|
+
const rootContext = injectDialogRootContext();
|
|
468
|
+
const { forwardRef } = useForwardExpose();
|
|
469
|
+
return (_ctx, _cache) => {
|
|
470
|
+
var _a;
|
|
471
|
+
return ((_a = unref(rootContext)) == null ? void 0 : _a.modal.value) ? (openBlock(), createBlock(unref(Presence_default), {
|
|
472
|
+
key: 0,
|
|
473
|
+
present: _ctx.forceMount || unref(rootContext).open.value
|
|
474
|
+
}, {
|
|
475
|
+
default: withCtx(() => [createVNode(DialogOverlayImpl_default, mergeProps(_ctx.$attrs, {
|
|
476
|
+
ref: unref(forwardRef),
|
|
477
|
+
as: _ctx.as,
|
|
478
|
+
"as-child": _ctx.asChild
|
|
479
|
+
}), {
|
|
480
|
+
default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
|
|
481
|
+
_: 3
|
|
482
|
+
}, 16, ["as", "as-child"])]),
|
|
483
|
+
_: 3
|
|
484
|
+
}, 8, ["present"])) : createCommentVNode("v-if", true);
|
|
485
|
+
};
|
|
486
|
+
}
|
|
487
|
+
});
|
|
488
|
+
var DialogOverlay_default = DialogOverlay_vue_vue_type_script_setup_true_lang_default;
|
|
489
|
+
var DialogTitle_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineComponent({
|
|
490
|
+
__name: "DialogTitle",
|
|
491
|
+
props: {
|
|
492
|
+
asChild: {
|
|
493
|
+
type: Boolean,
|
|
494
|
+
required: false
|
|
495
|
+
},
|
|
496
|
+
as: {
|
|
497
|
+
type: null,
|
|
498
|
+
required: false,
|
|
499
|
+
default: "h2"
|
|
500
|
+
}
|
|
501
|
+
},
|
|
502
|
+
setup(__props) {
|
|
503
|
+
const props = __props;
|
|
504
|
+
const rootContext = injectDialogRootContext();
|
|
505
|
+
useForwardExpose();
|
|
506
|
+
return (_ctx, _cache) => {
|
|
507
|
+
return openBlock(), createBlock(unref(Primitive), mergeProps(props, { id: unref(rootContext).titleId }), {
|
|
508
|
+
default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
|
|
509
|
+
_: 3
|
|
510
|
+
}, 16, ["id"]);
|
|
511
|
+
};
|
|
512
|
+
}
|
|
513
|
+
});
|
|
514
|
+
var DialogTitle_default = DialogTitle_vue_vue_type_script_setup_true_lang_default;
|
|
515
|
+
export {
|
|
516
|
+
DialogOverlay_default as D,
|
|
517
|
+
DialogContent_default as a,
|
|
518
|
+
DialogRoot_default as b,
|
|
519
|
+
DialogDescription_default as c,
|
|
520
|
+
DialogTitle_default as d,
|
|
521
|
+
injectDialogRootContext as i
|
|
522
|
+
};
|