@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
package/dist/switch.d.ts
ADDED
package/dist/switch.js
ADDED
package/dist/tooltip.js
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { _, a, b } from "./TooltipTrigger.vue_vue_type_script_setup_true_lang-BRyHTWgw.js";
|
|
2
|
+
import { _ as _2 } from "./TooltipProvider.vue_vue_type_script_setup_true_lang-DwIfCQjY.js";
|
|
3
|
+
export {
|
|
4
|
+
_ as Tooltip,
|
|
5
|
+
a as TooltipContent,
|
|
6
|
+
_2 as TooltipProvider,
|
|
7
|
+
b as TooltipTrigger
|
|
8
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { i as injectConfigProviderContext } from "./ConfigProvider-D2O0Jles.js";
|
|
2
|
+
import { ref, computed } from "vue";
|
|
3
|
+
function useDirection(dir) {
|
|
4
|
+
const context = injectConfigProviderContext({ dir: ref("ltr") });
|
|
5
|
+
return computed(() => {
|
|
6
|
+
var _a;
|
|
7
|
+
return (dir == null ? void 0 : dir.value) || ((_a = context.dir) == null ? void 0 : _a.value) || "ltr";
|
|
8
|
+
});
|
|
9
|
+
}
|
|
10
|
+
export {
|
|
11
|
+
useDirection as u
|
|
12
|
+
};
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { watchEffect } from "vue";
|
|
2
|
+
import { i as isClient } from "./index-Dfi5ESP2.js";
|
|
3
|
+
let count = 0;
|
|
4
|
+
function useFocusGuards() {
|
|
5
|
+
watchEffect((cleanupFn) => {
|
|
6
|
+
if (!isClient) return;
|
|
7
|
+
const edgeGuards = document.querySelectorAll("[data-reka-focus-guard]");
|
|
8
|
+
document.body.insertAdjacentElement("afterbegin", edgeGuards[0] ?? createFocusGuard());
|
|
9
|
+
document.body.insertAdjacentElement("beforeend", edgeGuards[1] ?? createFocusGuard());
|
|
10
|
+
count++;
|
|
11
|
+
cleanupFn(() => {
|
|
12
|
+
if (count === 1) document.querySelectorAll("[data-reka-focus-guard]").forEach((node) => node.remove());
|
|
13
|
+
count--;
|
|
14
|
+
});
|
|
15
|
+
});
|
|
16
|
+
}
|
|
17
|
+
function createFocusGuard() {
|
|
18
|
+
const element = document.createElement("span");
|
|
19
|
+
element.setAttribute("data-reka-focus-guard", "");
|
|
20
|
+
element.tabIndex = 0;
|
|
21
|
+
element.style.outline = "none";
|
|
22
|
+
element.style.opacity = "0";
|
|
23
|
+
element.style.position = "fixed";
|
|
24
|
+
element.style.pointerEvents = "none";
|
|
25
|
+
return element;
|
|
26
|
+
}
|
|
27
|
+
export {
|
|
28
|
+
useFocusGuards as u
|
|
29
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { computed, toValue } from "vue";
|
|
2
|
+
import { a as unrefElement } from "./index-C1_fxYhb.js";
|
|
3
|
+
function useFormControl(el) {
|
|
4
|
+
return computed(() => {
|
|
5
|
+
var _a;
|
|
6
|
+
return toValue(el) ? Boolean((_a = unrefElement(el)) == null ? void 0 : _a.closest("form")) : true;
|
|
7
|
+
});
|
|
8
|
+
}
|
|
9
|
+
export {
|
|
10
|
+
useFormControl as u
|
|
11
|
+
};
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { getCurrentInstance, ref, computed, onUpdated, triggerRef } from "vue";
|
|
2
|
+
import { a as unrefElement } from "./index-C1_fxYhb.js";
|
|
3
|
+
function useForwardExpose() {
|
|
4
|
+
const instance = getCurrentInstance();
|
|
5
|
+
const currentRef = ref();
|
|
6
|
+
const currentElement = computed(() => resolveCurrentElement());
|
|
7
|
+
onUpdated(() => {
|
|
8
|
+
if (currentElement.value !== resolveCurrentElement()) triggerRef(currentRef);
|
|
9
|
+
});
|
|
10
|
+
function resolveCurrentElement() {
|
|
11
|
+
return currentRef.value && "$el" in currentRef.value && ["#text", "#comment"].includes(currentRef.value.$el.nodeName) ? currentRef.value.$el.nextElementSibling : unrefElement(currentRef);
|
|
12
|
+
}
|
|
13
|
+
const localExpose = Object.assign({}, instance.exposed);
|
|
14
|
+
const ret = {};
|
|
15
|
+
for (const key in instance.props) Object.defineProperty(ret, key, {
|
|
16
|
+
enumerable: true,
|
|
17
|
+
configurable: true,
|
|
18
|
+
get: () => instance.props[key]
|
|
19
|
+
});
|
|
20
|
+
if (Object.keys(localExpose).length > 0) for (const key in localExpose) Object.defineProperty(ret, key, {
|
|
21
|
+
enumerable: true,
|
|
22
|
+
configurable: true,
|
|
23
|
+
get: () => localExpose[key]
|
|
24
|
+
});
|
|
25
|
+
Object.defineProperty(ret, "$el", {
|
|
26
|
+
enumerable: true,
|
|
27
|
+
configurable: true,
|
|
28
|
+
get: () => instance.vnode.el
|
|
29
|
+
});
|
|
30
|
+
instance.exposed = ret;
|
|
31
|
+
function forwardRef(ref$1) {
|
|
32
|
+
currentRef.value = ref$1;
|
|
33
|
+
if (!ref$1) return;
|
|
34
|
+
Object.defineProperty(ret, "$el", {
|
|
35
|
+
enumerable: true,
|
|
36
|
+
configurable: true,
|
|
37
|
+
get: () => ref$1 instanceof Element ? ref$1 : ref$1.$el
|
|
38
|
+
});
|
|
39
|
+
if (!(ref$1 instanceof Element) && !Object.prototype.hasOwnProperty.call(ref$1, "$el")) {
|
|
40
|
+
const childExposed = ref$1.$.exposed;
|
|
41
|
+
const merged = Object.assign({}, ret);
|
|
42
|
+
for (const key in childExposed) Object.defineProperty(merged, key, {
|
|
43
|
+
enumerable: true,
|
|
44
|
+
configurable: true,
|
|
45
|
+
get: () => childExposed[key]
|
|
46
|
+
});
|
|
47
|
+
instance.exposed = merged;
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
return {
|
|
51
|
+
forwardRef,
|
|
52
|
+
currentRef,
|
|
53
|
+
currentElement
|
|
54
|
+
};
|
|
55
|
+
}
|
|
56
|
+
export {
|
|
57
|
+
useForwardExpose as u
|
|
58
|
+
};
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import { inject, provide, getCurrentInstance, toHandlerKey, camelize, toRef, computed } from "vue";
|
|
2
|
+
function createContext(providerComponentName, contextName) {
|
|
3
|
+
const symbolDescription = typeof providerComponentName === "string" && !contextName ? `${providerComponentName}Context` : contextName;
|
|
4
|
+
const injectionKey = Symbol(symbolDescription);
|
|
5
|
+
const injectContext = (fallback) => {
|
|
6
|
+
const context = inject(injectionKey, fallback);
|
|
7
|
+
if (context) return context;
|
|
8
|
+
if (context === null) return context;
|
|
9
|
+
throw new Error(`Injection \`${injectionKey.toString()}\` not found. Component must be used within ${Array.isArray(providerComponentName) ? `one of the following components: ${providerComponentName.join(", ")}` : `\`${providerComponentName}\``}`);
|
|
10
|
+
};
|
|
11
|
+
const provideContext = (contextValue) => {
|
|
12
|
+
provide(injectionKey, contextValue);
|
|
13
|
+
return contextValue;
|
|
14
|
+
};
|
|
15
|
+
return [injectContext, provideContext];
|
|
16
|
+
}
|
|
17
|
+
function useEmitAsProps(emit) {
|
|
18
|
+
const vm = getCurrentInstance();
|
|
19
|
+
const events = vm == null ? void 0 : vm.type.emits;
|
|
20
|
+
const result = {};
|
|
21
|
+
if (!(events == null ? void 0 : events.length)) console.warn(`No emitted event found. Please check component: ${vm == null ? void 0 : vm.type.__name}`);
|
|
22
|
+
events == null ? void 0 : events.forEach((ev) => {
|
|
23
|
+
result[toHandlerKey(camelize(ev))] = (...arg) => emit(ev, ...arg);
|
|
24
|
+
});
|
|
25
|
+
return result;
|
|
26
|
+
}
|
|
27
|
+
function useForwardProps(props) {
|
|
28
|
+
const vm = getCurrentInstance();
|
|
29
|
+
const defaultProps = Object.keys((vm == null ? void 0 : vm.type.props) ?? {}).reduce((prev, curr) => {
|
|
30
|
+
const defaultValue = (vm == null ? void 0 : vm.type.props[curr]).default;
|
|
31
|
+
if (defaultValue !== void 0) prev[curr] = defaultValue;
|
|
32
|
+
return prev;
|
|
33
|
+
}, {});
|
|
34
|
+
const refProps = toRef(props);
|
|
35
|
+
return computed(() => {
|
|
36
|
+
const preservedProps = {};
|
|
37
|
+
const assignedProps = (vm == null ? void 0 : vm.vnode.props) ?? {};
|
|
38
|
+
Object.keys(assignedProps).forEach((key) => {
|
|
39
|
+
preservedProps[camelize(key)] = assignedProps[key];
|
|
40
|
+
});
|
|
41
|
+
return Object.keys({
|
|
42
|
+
...defaultProps,
|
|
43
|
+
...preservedProps
|
|
44
|
+
}).reduce((prev, curr) => {
|
|
45
|
+
if (refProps.value[curr] !== void 0) prev[curr] = refProps.value[curr];
|
|
46
|
+
return prev;
|
|
47
|
+
}, {});
|
|
48
|
+
});
|
|
49
|
+
}
|
|
50
|
+
function useForwardPropsEmits(props, emit) {
|
|
51
|
+
const parsedProps = useForwardProps(props);
|
|
52
|
+
const emitsAsProps = emit ? useEmitAsProps(emit) : {};
|
|
53
|
+
return computed(() => ({
|
|
54
|
+
...parsedProps.value,
|
|
55
|
+
...emitsAsProps
|
|
56
|
+
}));
|
|
57
|
+
}
|
|
58
|
+
export {
|
|
59
|
+
useForwardProps as a,
|
|
60
|
+
useEmitAsProps as b,
|
|
61
|
+
createContext as c,
|
|
62
|
+
useForwardPropsEmits as u
|
|
63
|
+
};
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
function useKbd() {
|
|
2
|
+
return {
|
|
3
|
+
ALT: "Alt",
|
|
4
|
+
ARROW_DOWN: "ArrowDown",
|
|
5
|
+
ARROW_LEFT: "ArrowLeft",
|
|
6
|
+
ARROW_RIGHT: "ArrowRight",
|
|
7
|
+
ARROW_UP: "ArrowUp",
|
|
8
|
+
BACKSPACE: "Backspace",
|
|
9
|
+
CAPS_LOCK: "CapsLock",
|
|
10
|
+
CONTROL: "Control",
|
|
11
|
+
DELETE: "Delete",
|
|
12
|
+
END: "End",
|
|
13
|
+
ENTER: "Enter",
|
|
14
|
+
ESCAPE: "Escape",
|
|
15
|
+
F1: "F1",
|
|
16
|
+
F10: "F10",
|
|
17
|
+
F11: "F11",
|
|
18
|
+
F12: "F12",
|
|
19
|
+
F2: "F2",
|
|
20
|
+
F3: "F3",
|
|
21
|
+
F4: "F4",
|
|
22
|
+
F5: "F5",
|
|
23
|
+
F6: "F6",
|
|
24
|
+
F7: "F7",
|
|
25
|
+
F8: "F8",
|
|
26
|
+
F9: "F9",
|
|
27
|
+
HOME: "Home",
|
|
28
|
+
META: "Meta",
|
|
29
|
+
PAGE_DOWN: "PageDown",
|
|
30
|
+
PAGE_UP: "PageUp",
|
|
31
|
+
SHIFT: "Shift",
|
|
32
|
+
SPACE: " ",
|
|
33
|
+
TAB: "Tab",
|
|
34
|
+
CTRL: "Control",
|
|
35
|
+
ASTERISK: "*",
|
|
36
|
+
SPACE_CODE: "Space"
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
export {
|
|
40
|
+
useKbd as u
|
|
41
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { ref, computed } from "vue";
|
|
2
|
+
import { a as unrefElement } from "./index-C1_fxYhb.js";
|
|
3
|
+
function usePrimitiveElement() {
|
|
4
|
+
const primitiveElement = ref();
|
|
5
|
+
const currentElement = computed(() => {
|
|
6
|
+
var _a, _b;
|
|
7
|
+
return ["#text", "#comment"].includes((_a = primitiveElement.value) == null ? void 0 : _a.$el.nodeName) ? (_b = primitiveElement.value) == null ? void 0 : _b.$el.nextElementSibling : unrefElement(primitiveElement);
|
|
8
|
+
});
|
|
9
|
+
return {
|
|
10
|
+
primitiveElement,
|
|
11
|
+
currentElement
|
|
12
|
+
};
|
|
13
|
+
}
|
|
14
|
+
export {
|
|
15
|
+
usePrimitiveElement as u
|
|
16
|
+
};
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { ref, computed, onMounted } from "vue";
|
|
2
|
+
import { a as unrefElement } from "./index-C1_fxYhb.js";
|
|
3
|
+
function useSize(element) {
|
|
4
|
+
const size = ref();
|
|
5
|
+
const width = computed(() => {
|
|
6
|
+
var _a;
|
|
7
|
+
return ((_a = size.value) == null ? void 0 : _a.width) ?? 0;
|
|
8
|
+
});
|
|
9
|
+
const height = computed(() => {
|
|
10
|
+
var _a;
|
|
11
|
+
return ((_a = size.value) == null ? void 0 : _a.height) ?? 0;
|
|
12
|
+
});
|
|
13
|
+
onMounted(() => {
|
|
14
|
+
const el = unrefElement(element);
|
|
15
|
+
if (el) {
|
|
16
|
+
size.value = {
|
|
17
|
+
width: el.offsetWidth,
|
|
18
|
+
height: el.offsetHeight
|
|
19
|
+
};
|
|
20
|
+
const resizeObserver = new ResizeObserver((entries) => {
|
|
21
|
+
if (!Array.isArray(entries)) return;
|
|
22
|
+
if (!entries.length) return;
|
|
23
|
+
const entry = entries[0];
|
|
24
|
+
let width$1;
|
|
25
|
+
let height$1;
|
|
26
|
+
if ("borderBoxSize" in entry) {
|
|
27
|
+
const borderSizeEntry = entry.borderBoxSize;
|
|
28
|
+
const borderSize = Array.isArray(borderSizeEntry) ? borderSizeEntry[0] : borderSizeEntry;
|
|
29
|
+
width$1 = borderSize.inlineSize;
|
|
30
|
+
height$1 = borderSize.blockSize;
|
|
31
|
+
} else {
|
|
32
|
+
width$1 = el.offsetWidth;
|
|
33
|
+
height$1 = el.offsetHeight;
|
|
34
|
+
}
|
|
35
|
+
size.value = {
|
|
36
|
+
width: width$1,
|
|
37
|
+
height: height$1
|
|
38
|
+
};
|
|
39
|
+
});
|
|
40
|
+
resizeObserver.observe(el, { box: "border-box" });
|
|
41
|
+
return () => resizeObserver.unobserve(el);
|
|
42
|
+
} else size.value = void 0;
|
|
43
|
+
});
|
|
44
|
+
return {
|
|
45
|
+
width,
|
|
46
|
+
height
|
|
47
|
+
};
|
|
48
|
+
}
|
|
49
|
+
export {
|
|
50
|
+
useSize as u
|
|
51
|
+
};
|
|
@@ -0,0 +1,159 @@
|
|
|
1
|
+
var __typeError = (msg) => {
|
|
2
|
+
throw TypeError(msg);
|
|
3
|
+
};
|
|
4
|
+
var __accessCheck = (obj, member, msg) => member.has(obj) || __typeError("Cannot " + msg);
|
|
5
|
+
var __privateGet = (obj, member, getter) => (__accessCheck(obj, member, "read from private field"), getter ? getter.call(obj) : member.get(obj));
|
|
6
|
+
var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot add the same private member more than once") : member instanceof WeakSet ? member.add(obj) : member.set(obj, value);
|
|
7
|
+
import { g as getActiveElement } from "./FocusScope-C3mcVwsf.js";
|
|
8
|
+
import { g as refAutoReset } from "./index-Dfi5ESP2.js";
|
|
9
|
+
function serialize(o) {
|
|
10
|
+
return typeof o == "string" ? `'${o}'` : new c().serialize(o);
|
|
11
|
+
}
|
|
12
|
+
const c = /* @__PURE__ */ function() {
|
|
13
|
+
var _t;
|
|
14
|
+
class o {
|
|
15
|
+
constructor() {
|
|
16
|
+
__privateAdd(this, _t, /* @__PURE__ */ new Map());
|
|
17
|
+
}
|
|
18
|
+
compare(t, r) {
|
|
19
|
+
const e = typeof t, n = typeof r;
|
|
20
|
+
return e === "string" && n === "string" ? t.localeCompare(r) : e === "number" && n === "number" ? t - r : String.prototype.localeCompare.call(this.serialize(t, true), this.serialize(r, true));
|
|
21
|
+
}
|
|
22
|
+
serialize(t, r) {
|
|
23
|
+
if (t === null) return "null";
|
|
24
|
+
switch (typeof t) {
|
|
25
|
+
case "string":
|
|
26
|
+
return r ? t : `'${t}'`;
|
|
27
|
+
case "bigint":
|
|
28
|
+
return `${t}n`;
|
|
29
|
+
case "object":
|
|
30
|
+
return this.$object(t);
|
|
31
|
+
case "function":
|
|
32
|
+
return this.$function(t);
|
|
33
|
+
}
|
|
34
|
+
return String(t);
|
|
35
|
+
}
|
|
36
|
+
serializeObject(t) {
|
|
37
|
+
const r = Object.prototype.toString.call(t);
|
|
38
|
+
if (r !== "[object Object]") return this.serializeBuiltInType(r.length < 10 ? `unknown:${r}` : r.slice(8, -1), t);
|
|
39
|
+
const e = t.constructor, n = e === Object || e === void 0 ? "" : e.name;
|
|
40
|
+
if (n !== "" && globalThis[n] === e) return this.serializeBuiltInType(n, t);
|
|
41
|
+
if (typeof t.toJSON == "function") {
|
|
42
|
+
const i = t.toJSON();
|
|
43
|
+
return n + (i !== null && typeof i == "object" ? this.$object(i) : `(${this.serialize(i)})`);
|
|
44
|
+
}
|
|
45
|
+
return this.serializeObjectEntries(n, Object.entries(t));
|
|
46
|
+
}
|
|
47
|
+
serializeBuiltInType(t, r) {
|
|
48
|
+
const e = this["$" + t];
|
|
49
|
+
if (e) return e.call(this, r);
|
|
50
|
+
if (typeof (r == null ? void 0 : r.entries) == "function") return this.serializeObjectEntries(t, r.entries());
|
|
51
|
+
throw new Error(`Cannot serialize ${t}`);
|
|
52
|
+
}
|
|
53
|
+
serializeObjectEntries(t, r) {
|
|
54
|
+
const e = Array.from(r).sort((i, a) => this.compare(i[0], a[0]));
|
|
55
|
+
let n = `${t}{`;
|
|
56
|
+
for (let i = 0; i < e.length; i++) {
|
|
57
|
+
const [a, l] = e[i];
|
|
58
|
+
n += `${this.serialize(a, true)}:${this.serialize(l)}`, i < e.length - 1 && (n += ",");
|
|
59
|
+
}
|
|
60
|
+
return n + "}";
|
|
61
|
+
}
|
|
62
|
+
$object(t) {
|
|
63
|
+
let r = __privateGet(this, _t).get(t);
|
|
64
|
+
return r === void 0 && (__privateGet(this, _t).set(t, `#${__privateGet(this, _t).size}`), r = this.serializeObject(t), __privateGet(this, _t).set(t, r)), r;
|
|
65
|
+
}
|
|
66
|
+
$function(t) {
|
|
67
|
+
const r = Function.prototype.toString.call(t);
|
|
68
|
+
return r.slice(-15) === "[native code] }" ? `${t.name || ""}()[native]` : `${t.name}(${t.length})${r.replace(/\s*\n\s*/g, "")}`;
|
|
69
|
+
}
|
|
70
|
+
$Array(t) {
|
|
71
|
+
let r = "[";
|
|
72
|
+
for (let e = 0; e < t.length; e++) r += this.serialize(t[e]), e < t.length - 1 && (r += ",");
|
|
73
|
+
return r + "]";
|
|
74
|
+
}
|
|
75
|
+
$Date(t) {
|
|
76
|
+
try {
|
|
77
|
+
return `Date(${t.toISOString()})`;
|
|
78
|
+
} catch {
|
|
79
|
+
return "Date(null)";
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
$ArrayBuffer(t) {
|
|
83
|
+
return `ArrayBuffer[${new Uint8Array(t).join(",")}]`;
|
|
84
|
+
}
|
|
85
|
+
$Set(t) {
|
|
86
|
+
return `Set${this.$Array(Array.from(t).sort((r, e) => this.compare(r, e)))}`;
|
|
87
|
+
}
|
|
88
|
+
$Map(t) {
|
|
89
|
+
return this.serializeObjectEntries("Map", t.entries());
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
_t = new WeakMap();
|
|
93
|
+
for (const s of ["Error", "RegExp", "URL"]) o.prototype["$" + s] = function(t) {
|
|
94
|
+
return `${s}(${t})`;
|
|
95
|
+
};
|
|
96
|
+
for (const s of ["Int8Array", "Uint8Array", "Uint8ClampedArray", "Int16Array", "Uint16Array", "Int32Array", "Uint32Array", "Float32Array", "Float64Array"]) o.prototype["$" + s] = function(t) {
|
|
97
|
+
return `${s}[${t.join(",")}]`;
|
|
98
|
+
};
|
|
99
|
+
for (const s of ["BigInt64Array", "BigUint64Array"]) o.prototype["$" + s] = function(t) {
|
|
100
|
+
return `${s}[${t.join("n,")}${t.length > 0 ? "n" : ""}]`;
|
|
101
|
+
};
|
|
102
|
+
return o;
|
|
103
|
+
}();
|
|
104
|
+
function isEqual(object1, object2) {
|
|
105
|
+
if (object1 === object2) {
|
|
106
|
+
return true;
|
|
107
|
+
}
|
|
108
|
+
if (serialize(object1) === serialize(object2)) {
|
|
109
|
+
return true;
|
|
110
|
+
}
|
|
111
|
+
return false;
|
|
112
|
+
}
|
|
113
|
+
function useTypeahead(callback) {
|
|
114
|
+
const search = refAutoReset("", 1e3);
|
|
115
|
+
const handleTypeaheadSearch = (key, items) => {
|
|
116
|
+
search.value = search.value + key;
|
|
117
|
+
{
|
|
118
|
+
const currentItem = getActiveElement();
|
|
119
|
+
const itemsWithTextValue = items.map((item) => {
|
|
120
|
+
var _a, _b;
|
|
121
|
+
return {
|
|
122
|
+
...item,
|
|
123
|
+
textValue: ((_a = item.value) == null ? void 0 : _a.textValue) ?? ((_b = item.ref.textContent) == null ? void 0 : _b.trim()) ?? ""
|
|
124
|
+
};
|
|
125
|
+
});
|
|
126
|
+
const currentMatch = itemsWithTextValue.find((item) => item.ref === currentItem);
|
|
127
|
+
const values = itemsWithTextValue.map((item) => item.textValue);
|
|
128
|
+
const nextMatch = getNextMatch(values, search.value, currentMatch == null ? void 0 : currentMatch.textValue);
|
|
129
|
+
const newItem = itemsWithTextValue.find((item) => item.textValue === nextMatch);
|
|
130
|
+
if (newItem) newItem.ref.focus();
|
|
131
|
+
return newItem == null ? void 0 : newItem.ref;
|
|
132
|
+
}
|
|
133
|
+
};
|
|
134
|
+
const resetTypeahead = () => {
|
|
135
|
+
search.value = "";
|
|
136
|
+
};
|
|
137
|
+
return {
|
|
138
|
+
search,
|
|
139
|
+
handleTypeaheadSearch,
|
|
140
|
+
resetTypeahead
|
|
141
|
+
};
|
|
142
|
+
}
|
|
143
|
+
function wrapArray(array, startIndex) {
|
|
144
|
+
return array.map((_, index) => array[(startIndex + index) % array.length]);
|
|
145
|
+
}
|
|
146
|
+
function getNextMatch(values, search, currentMatch) {
|
|
147
|
+
const isRepeated = search.length > 1 && Array.from(search).every((char) => char === search[0]);
|
|
148
|
+
const normalizedSearch = isRepeated ? search[0] : search;
|
|
149
|
+
const currentMatchIndex = currentMatch ? values.indexOf(currentMatch) : -1;
|
|
150
|
+
let wrappedValues = wrapArray(values, Math.max(currentMatchIndex, 0));
|
|
151
|
+
const excludeCurrentMatch = normalizedSearch.length === 1;
|
|
152
|
+
if (excludeCurrentMatch) wrappedValues = wrappedValues.filter((v) => v !== currentMatch);
|
|
153
|
+
const nextMatch = wrappedValues.find((value) => value.toLowerCase().startsWith(normalizedSearch.toLowerCase()));
|
|
154
|
+
return nextMatch !== currentMatch ? nextMatch : void 0;
|
|
155
|
+
}
|
|
156
|
+
export {
|
|
157
|
+
isEqual as i,
|
|
158
|
+
useTypeahead as u
|
|
159
|
+
};
|