@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/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Mauro Brambilla
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
# @brumaombra/ui-vintage
|
|
2
|
+
|
|
3
|
+
A reusable Nuxt component library scaffold aligned with the Bitcoin Ticker web UI.
|
|
4
|
+
|
|
5
|
+
## What This Is
|
|
6
|
+
|
|
7
|
+
- A publishable package for shared UI components.
|
|
8
|
+
- A single root barrel file at `src/index.ts`.
|
|
9
|
+
- The same base CSS tokens and Tailwind setup used by Bitcoin Ticker.
|
|
10
|
+
- A folder layout that stays compatible with `shadcn-vue` additions.
|
|
11
|
+
|
|
12
|
+
## Development
|
|
13
|
+
|
|
14
|
+
```bash
|
|
15
|
+
npm install
|
|
16
|
+
npm run build
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
## Local Showcase
|
|
20
|
+
|
|
21
|
+
The repository includes a minimal Nuxt demo app in `demo-app/` that hosts a local showcase page built from the library components.
|
|
22
|
+
|
|
23
|
+
```bash
|
|
24
|
+
npm install
|
|
25
|
+
npm --prefix demo-app install
|
|
26
|
+
npm run demo:dev
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
Other useful commands:
|
|
30
|
+
|
|
31
|
+
```bash
|
|
32
|
+
npm run demo:build
|
|
33
|
+
npm run demo:preview
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
## Usage
|
|
37
|
+
|
|
38
|
+
```ts
|
|
39
|
+
import { Busy } from "@brumaombra/ui-vintage"
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
If you prefer explicit CSS loading, you can also import:
|
|
43
|
+
|
|
44
|
+
```ts
|
|
45
|
+
import "@brumaombra/ui-vintage/style.css"
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
## Adding Components
|
|
49
|
+
|
|
50
|
+
- Keep shared components under `src/components/`.
|
|
51
|
+
- Export every public component from `src/index.ts`.
|
|
52
|
+
- Keep `src/lib/utils.ts` as the shared utility entry used by shadcn components.
|
|
53
|
+
- Use `components.json` with `shadcn-vue` to scaffold new primitives into this package.
|
|
54
|
+
|
|
55
|
+
Example:
|
|
56
|
+
|
|
57
|
+
```bash
|
|
58
|
+
npx shadcn-vue@latest add button
|
|
59
|
+
```
|
|
60
|
+
|
|
61
|
+
## Adding Shadcn Vue Components
|
|
62
|
+
|
|
63
|
+
This repo is already configured for the shadcn-vue CLI through [components.json](components.json). New components generated by the CLI will be added under [src/components/ui](src/components/ui).
|
|
64
|
+
|
|
65
|
+
Use the CLI directly:
|
|
66
|
+
|
|
67
|
+
```bash
|
|
68
|
+
npx shadcn-vue@latest add button
|
|
69
|
+
npx shadcn-vue@latest add accordion
|
|
70
|
+
```
|
|
71
|
+
|
|
72
|
+
If you ever need to re-run the interactive setup:
|
|
73
|
+
|
|
74
|
+
```bash
|
|
75
|
+
npx shadcn-vue@latest init
|
|
76
|
+
```
|
|
77
|
+
|
|
78
|
+
The current aliases map `ui` to `@/components/ui`, so generated imports and files stay inside the library source tree.
|
|
@@ -0,0 +1,360 @@
|
|
|
1
|
+
import { defineComponent, ref, openBlock, createBlock, unref, mergeProps, nextTick, withModifiers, withCtx, renderSlot, normalizeProps, guardReactiveProps, createVNode, createElementBlock, normalizeClass } from "vue";
|
|
2
|
+
import { b as useEmitAsProps, c as createContext, u as useForwardPropsEmits } from "./useForwardPropsEmits-DmumnZO5.js";
|
|
3
|
+
import { u as useForwardExpose } from "./useForwardExpose-CNVHwdF2.js";
|
|
4
|
+
import { a as DialogContent_default, c as DialogDescription_default, D as DialogOverlay_default, b as DialogRoot_default, d as DialogTitle_default } from "./DialogTitle-DXj0nkXn.js";
|
|
5
|
+
import { T as Teleport_default } from "./Teleport-CuUn4UkG.js";
|
|
6
|
+
import { c as cn } from "./utils-Bz4m9VPB.js";
|
|
7
|
+
import { r as reactiveOmit } from "./index-Dfi5ESP2.js";
|
|
8
|
+
const [injectAlertDialogContentContext, provideAlertDialogContentContext] = createContext("AlertDialogContent");
|
|
9
|
+
var AlertDialogContent_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineComponent({
|
|
10
|
+
__name: "AlertDialogContent",
|
|
11
|
+
props: {
|
|
12
|
+
forceMount: {
|
|
13
|
+
type: Boolean,
|
|
14
|
+
required: false
|
|
15
|
+
},
|
|
16
|
+
disableOutsidePointerEvents: {
|
|
17
|
+
type: Boolean,
|
|
18
|
+
required: false
|
|
19
|
+
},
|
|
20
|
+
asChild: {
|
|
21
|
+
type: Boolean,
|
|
22
|
+
required: false
|
|
23
|
+
},
|
|
24
|
+
as: {
|
|
25
|
+
type: null,
|
|
26
|
+
required: false
|
|
27
|
+
}
|
|
28
|
+
},
|
|
29
|
+
emits: [
|
|
30
|
+
"escapeKeyDown",
|
|
31
|
+
"pointerDownOutside",
|
|
32
|
+
"focusOutside",
|
|
33
|
+
"interactOutside",
|
|
34
|
+
"openAutoFocus",
|
|
35
|
+
"closeAutoFocus"
|
|
36
|
+
],
|
|
37
|
+
setup(__props, { emit: __emit }) {
|
|
38
|
+
const props = __props;
|
|
39
|
+
const emits = __emit;
|
|
40
|
+
const emitsAsProps = useEmitAsProps(emits);
|
|
41
|
+
useForwardExpose();
|
|
42
|
+
const cancelElement = ref();
|
|
43
|
+
provideAlertDialogContentContext({ onCancelElementChange: (el) => {
|
|
44
|
+
cancelElement.value = el;
|
|
45
|
+
} });
|
|
46
|
+
return (_ctx, _cache) => {
|
|
47
|
+
return openBlock(), createBlock(unref(DialogContent_default), mergeProps({
|
|
48
|
+
...props,
|
|
49
|
+
...unref(emitsAsProps)
|
|
50
|
+
}, {
|
|
51
|
+
role: "alertdialog",
|
|
52
|
+
onPointerDownOutside: _cache[0] || (_cache[0] = withModifiers(() => {
|
|
53
|
+
}, ["prevent"])),
|
|
54
|
+
onInteractOutside: _cache[1] || (_cache[1] = withModifiers(() => {
|
|
55
|
+
}, ["prevent"])),
|
|
56
|
+
onOpenAutoFocus: _cache[2] || (_cache[2] = () => {
|
|
57
|
+
nextTick(() => {
|
|
58
|
+
var _a;
|
|
59
|
+
(_a = cancelElement.value) == null ? void 0 : _a.focus({ preventScroll: true });
|
|
60
|
+
});
|
|
61
|
+
})
|
|
62
|
+
}), {
|
|
63
|
+
default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
|
|
64
|
+
_: 3
|
|
65
|
+
}, 16);
|
|
66
|
+
};
|
|
67
|
+
}
|
|
68
|
+
});
|
|
69
|
+
var AlertDialogContent_default = AlertDialogContent_vue_vue_type_script_setup_true_lang_default;
|
|
70
|
+
var AlertDialogDescription_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineComponent({
|
|
71
|
+
__name: "AlertDialogDescription",
|
|
72
|
+
props: {
|
|
73
|
+
asChild: {
|
|
74
|
+
type: Boolean,
|
|
75
|
+
required: false
|
|
76
|
+
},
|
|
77
|
+
as: {
|
|
78
|
+
type: null,
|
|
79
|
+
required: false,
|
|
80
|
+
default: "p"
|
|
81
|
+
}
|
|
82
|
+
},
|
|
83
|
+
setup(__props) {
|
|
84
|
+
const props = __props;
|
|
85
|
+
useForwardExpose();
|
|
86
|
+
return (_ctx, _cache) => {
|
|
87
|
+
return openBlock(), createBlock(unref(DialogDescription_default), normalizeProps(guardReactiveProps(props)), {
|
|
88
|
+
default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
|
|
89
|
+
_: 3
|
|
90
|
+
}, 16);
|
|
91
|
+
};
|
|
92
|
+
}
|
|
93
|
+
});
|
|
94
|
+
var AlertDialogDescription_default = AlertDialogDescription_vue_vue_type_script_setup_true_lang_default;
|
|
95
|
+
var AlertDialogOverlay_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineComponent({
|
|
96
|
+
__name: "AlertDialogOverlay",
|
|
97
|
+
props: {
|
|
98
|
+
forceMount: {
|
|
99
|
+
type: Boolean,
|
|
100
|
+
required: false
|
|
101
|
+
},
|
|
102
|
+
asChild: {
|
|
103
|
+
type: Boolean,
|
|
104
|
+
required: false
|
|
105
|
+
},
|
|
106
|
+
as: {
|
|
107
|
+
type: null,
|
|
108
|
+
required: false
|
|
109
|
+
}
|
|
110
|
+
},
|
|
111
|
+
setup(__props) {
|
|
112
|
+
const props = __props;
|
|
113
|
+
useForwardExpose();
|
|
114
|
+
return (_ctx, _cache) => {
|
|
115
|
+
return openBlock(), createBlock(unref(DialogOverlay_default), normalizeProps(guardReactiveProps(props)), {
|
|
116
|
+
default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
|
|
117
|
+
_: 3
|
|
118
|
+
}, 16);
|
|
119
|
+
};
|
|
120
|
+
}
|
|
121
|
+
});
|
|
122
|
+
var AlertDialogOverlay_default = AlertDialogOverlay_vue_vue_type_script_setup_true_lang_default;
|
|
123
|
+
var AlertDialogPortal_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineComponent({
|
|
124
|
+
__name: "AlertDialogPortal",
|
|
125
|
+
props: {
|
|
126
|
+
to: {
|
|
127
|
+
type: null,
|
|
128
|
+
required: false
|
|
129
|
+
},
|
|
130
|
+
disabled: {
|
|
131
|
+
type: Boolean,
|
|
132
|
+
required: false
|
|
133
|
+
},
|
|
134
|
+
defer: {
|
|
135
|
+
type: Boolean,
|
|
136
|
+
required: false
|
|
137
|
+
},
|
|
138
|
+
forceMount: {
|
|
139
|
+
type: Boolean,
|
|
140
|
+
required: false
|
|
141
|
+
}
|
|
142
|
+
},
|
|
143
|
+
setup(__props) {
|
|
144
|
+
const props = __props;
|
|
145
|
+
return (_ctx, _cache) => {
|
|
146
|
+
return openBlock(), createBlock(unref(Teleport_default), normalizeProps(guardReactiveProps(props)), {
|
|
147
|
+
default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
|
|
148
|
+
_: 3
|
|
149
|
+
}, 16);
|
|
150
|
+
};
|
|
151
|
+
}
|
|
152
|
+
});
|
|
153
|
+
var AlertDialogPortal_default = AlertDialogPortal_vue_vue_type_script_setup_true_lang_default;
|
|
154
|
+
var AlertDialogRoot_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineComponent({
|
|
155
|
+
__name: "AlertDialogRoot",
|
|
156
|
+
props: {
|
|
157
|
+
open: {
|
|
158
|
+
type: Boolean,
|
|
159
|
+
required: false
|
|
160
|
+
},
|
|
161
|
+
defaultOpen: {
|
|
162
|
+
type: Boolean,
|
|
163
|
+
required: false
|
|
164
|
+
}
|
|
165
|
+
},
|
|
166
|
+
emits: ["update:open"],
|
|
167
|
+
setup(__props, { emit: __emit }) {
|
|
168
|
+
const props = __props;
|
|
169
|
+
const emits = __emit;
|
|
170
|
+
const forwarded = useForwardPropsEmits(props, emits);
|
|
171
|
+
useForwardExpose();
|
|
172
|
+
return (_ctx, _cache) => {
|
|
173
|
+
return openBlock(), createBlock(unref(DialogRoot_default), mergeProps(unref(forwarded), { modal: true }), {
|
|
174
|
+
default: withCtx((slotProps) => [renderSlot(_ctx.$slots, "default", normalizeProps(guardReactiveProps(slotProps)))]),
|
|
175
|
+
_: 3
|
|
176
|
+
}, 16);
|
|
177
|
+
};
|
|
178
|
+
}
|
|
179
|
+
});
|
|
180
|
+
var AlertDialogRoot_default = AlertDialogRoot_vue_vue_type_script_setup_true_lang_default;
|
|
181
|
+
var AlertDialogTitle_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineComponent({
|
|
182
|
+
__name: "AlertDialogTitle",
|
|
183
|
+
props: {
|
|
184
|
+
asChild: {
|
|
185
|
+
type: Boolean,
|
|
186
|
+
required: false
|
|
187
|
+
},
|
|
188
|
+
as: {
|
|
189
|
+
type: null,
|
|
190
|
+
required: false,
|
|
191
|
+
default: "h2"
|
|
192
|
+
}
|
|
193
|
+
},
|
|
194
|
+
setup(__props) {
|
|
195
|
+
const props = __props;
|
|
196
|
+
useForwardExpose();
|
|
197
|
+
return (_ctx, _cache) => {
|
|
198
|
+
return openBlock(), createBlock(unref(DialogTitle_default), normalizeProps(guardReactiveProps(props)), {
|
|
199
|
+
default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
|
|
200
|
+
_: 3
|
|
201
|
+
}, 16);
|
|
202
|
+
};
|
|
203
|
+
}
|
|
204
|
+
});
|
|
205
|
+
var AlertDialogTitle_default = AlertDialogTitle_vue_vue_type_script_setup_true_lang_default;
|
|
206
|
+
const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
207
|
+
__name: "AlertDialog",
|
|
208
|
+
props: {
|
|
209
|
+
open: { type: Boolean },
|
|
210
|
+
defaultOpen: { type: Boolean }
|
|
211
|
+
},
|
|
212
|
+
emits: ["update:open"],
|
|
213
|
+
setup(__props, { emit: __emit }) {
|
|
214
|
+
const props = __props;
|
|
215
|
+
const emits = __emit;
|
|
216
|
+
const forwarded = useForwardPropsEmits(props, emits);
|
|
217
|
+
return (_ctx, _cache) => {
|
|
218
|
+
return openBlock(), createBlock(unref(AlertDialogRoot_default), mergeProps({ "data-slot": "alert-dialog" }, unref(forwarded)), {
|
|
219
|
+
default: withCtx((slotProps) => [
|
|
220
|
+
renderSlot(_ctx.$slots, "default", normalizeProps(guardReactiveProps(slotProps)))
|
|
221
|
+
]),
|
|
222
|
+
_: 3
|
|
223
|
+
}, 16);
|
|
224
|
+
};
|
|
225
|
+
}
|
|
226
|
+
});
|
|
227
|
+
const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
228
|
+
...{
|
|
229
|
+
inheritAttrs: false
|
|
230
|
+
},
|
|
231
|
+
__name: "AlertDialogContent",
|
|
232
|
+
props: {
|
|
233
|
+
forceMount: { type: Boolean },
|
|
234
|
+
disableOutsidePointerEvents: { type: Boolean },
|
|
235
|
+
asChild: { type: Boolean },
|
|
236
|
+
as: {},
|
|
237
|
+
class: {}
|
|
238
|
+
},
|
|
239
|
+
emits: ["escapeKeyDown", "pointerDownOutside", "focusOutside", "interactOutside", "openAutoFocus", "closeAutoFocus"],
|
|
240
|
+
setup(__props, { emit: __emit }) {
|
|
241
|
+
const props = __props;
|
|
242
|
+
const emits = __emit;
|
|
243
|
+
const delegatedProps = reactiveOmit(props, "class");
|
|
244
|
+
const forwarded = useForwardPropsEmits(delegatedProps, emits);
|
|
245
|
+
return (_ctx, _cache) => {
|
|
246
|
+
return openBlock(), createBlock(unref(AlertDialogPortal_default), null, {
|
|
247
|
+
default: withCtx(() => [
|
|
248
|
+
createVNode(unref(AlertDialogOverlay_default), {
|
|
249
|
+
"data-slot": "alert-dialog-overlay",
|
|
250
|
+
class: "fixed inset-0 z-50 bg-black/45 backdrop-blur-[2px] transition-[opacity,backdrop-filter] ease-out data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:duration-300 data-[state=open]:duration-500 data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0"
|
|
251
|
+
}),
|
|
252
|
+
createVNode(unref(AlertDialogContent_default), mergeProps({ "data-slot": "alert-dialog-content" }, { ..._ctx.$attrs, ...unref(forwarded) }, {
|
|
253
|
+
class: unref(cn)(
|
|
254
|
+
"bg-card text-card-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 fixed top-[50%] left-[50%] z-50 grid w-[95%] max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-0 overflow-hidden rounded border border-border shadow-2xl duration-200 sm:max-w-lg",
|
|
255
|
+
props.class
|
|
256
|
+
)
|
|
257
|
+
}), {
|
|
258
|
+
default: withCtx(() => [
|
|
259
|
+
renderSlot(_ctx.$slots, "default")
|
|
260
|
+
]),
|
|
261
|
+
_: 3
|
|
262
|
+
}, 16, ["class"])
|
|
263
|
+
]),
|
|
264
|
+
_: 3
|
|
265
|
+
});
|
|
266
|
+
};
|
|
267
|
+
}
|
|
268
|
+
});
|
|
269
|
+
const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
270
|
+
__name: "AlertDialogDescription",
|
|
271
|
+
props: {
|
|
272
|
+
asChild: { type: Boolean },
|
|
273
|
+
as: {},
|
|
274
|
+
class: {}
|
|
275
|
+
},
|
|
276
|
+
setup(__props) {
|
|
277
|
+
const props = __props;
|
|
278
|
+
const delegatedProps = reactiveOmit(props, "class");
|
|
279
|
+
return (_ctx, _cache) => {
|
|
280
|
+
return openBlock(), createBlock(unref(AlertDialogDescription_default), mergeProps({ "data-slot": "alert-dialog-description" }, unref(delegatedProps), {
|
|
281
|
+
class: unref(cn)("text-xs leading-6 text-muted-foreground sm:text-sm", props.class)
|
|
282
|
+
}), {
|
|
283
|
+
default: withCtx(() => [
|
|
284
|
+
renderSlot(_ctx.$slots, "default")
|
|
285
|
+
]),
|
|
286
|
+
_: 3
|
|
287
|
+
}, 16, ["class"]);
|
|
288
|
+
};
|
|
289
|
+
}
|
|
290
|
+
});
|
|
291
|
+
const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
292
|
+
__name: "AlertDialogFooter",
|
|
293
|
+
props: {
|
|
294
|
+
class: {}
|
|
295
|
+
},
|
|
296
|
+
setup(__props) {
|
|
297
|
+
const props = __props;
|
|
298
|
+
return (_ctx, _cache) => {
|
|
299
|
+
return openBlock(), createElementBlock("div", {
|
|
300
|
+
"data-slot": "alert-dialog-footer",
|
|
301
|
+
class: normalizeClass(
|
|
302
|
+
unref(cn)(
|
|
303
|
+
"flex flex-col-reverse gap-3 border-t border-border px-5 py-4 sm:flex-row-reverse sm:px-6",
|
|
304
|
+
props.class
|
|
305
|
+
)
|
|
306
|
+
)
|
|
307
|
+
}, [
|
|
308
|
+
renderSlot(_ctx.$slots, "default")
|
|
309
|
+
], 2);
|
|
310
|
+
};
|
|
311
|
+
}
|
|
312
|
+
});
|
|
313
|
+
const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
314
|
+
__name: "AlertDialogHeader",
|
|
315
|
+
props: {
|
|
316
|
+
class: {}
|
|
317
|
+
},
|
|
318
|
+
setup(__props) {
|
|
319
|
+
const props = __props;
|
|
320
|
+
return (_ctx, _cache) => {
|
|
321
|
+
return openBlock(), createElementBlock("div", {
|
|
322
|
+
"data-slot": "alert-dialog-header",
|
|
323
|
+
class: normalizeClass(unref(cn)("flex flex-col gap-1.5 text-center sm:text-left", props.class))
|
|
324
|
+
}, [
|
|
325
|
+
renderSlot(_ctx.$slots, "default")
|
|
326
|
+
], 2);
|
|
327
|
+
};
|
|
328
|
+
}
|
|
329
|
+
});
|
|
330
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
331
|
+
__name: "AlertDialogTitle",
|
|
332
|
+
props: {
|
|
333
|
+
asChild: { type: Boolean },
|
|
334
|
+
as: {},
|
|
335
|
+
class: {}
|
|
336
|
+
},
|
|
337
|
+
setup(__props) {
|
|
338
|
+
const props = __props;
|
|
339
|
+
const delegatedProps = reactiveOmit(props, "class");
|
|
340
|
+
return (_ctx, _cache) => {
|
|
341
|
+
return openBlock(), createBlock(unref(AlertDialogTitle_default), mergeProps({ "data-slot": "alert-dialog-title" }, unref(delegatedProps), {
|
|
342
|
+
class: unref(cn)("text-base font-semibold", props.class)
|
|
343
|
+
}), {
|
|
344
|
+
default: withCtx(() => [
|
|
345
|
+
renderSlot(_ctx.$slots, "default")
|
|
346
|
+
]),
|
|
347
|
+
_: 3
|
|
348
|
+
}, 16, ["class"]);
|
|
349
|
+
};
|
|
350
|
+
}
|
|
351
|
+
});
|
|
352
|
+
export {
|
|
353
|
+
_sfc_main$5 as _,
|
|
354
|
+
_sfc_main$4 as a,
|
|
355
|
+
_sfc_main$3 as b,
|
|
356
|
+
_sfc_main$2 as c,
|
|
357
|
+
_sfc_main$1 as d,
|
|
358
|
+
_sfc_main as e,
|
|
359
|
+
injectAlertDialogContentContext as i
|
|
360
|
+
};
|
|
@@ -0,0 +1,158 @@
|
|
|
1
|
+
import { defineComponent, openBlock, createBlock, unref, normalizeProps, guardReactiveProps, withCtx, renderSlot, onMounted, mergeProps } from "vue";
|
|
2
|
+
import { u as useForwardExpose } from "./useForwardExpose-CNVHwdF2.js";
|
|
3
|
+
import { D as DialogClose_default } from "./DialogClose-BNlqG4G2.js";
|
|
4
|
+
import { c as cn } from "./utils-Bz4m9VPB.js";
|
|
5
|
+
import { buttonVariants } from "./button.js";
|
|
6
|
+
import { r as reactiveOmit } from "./index-Dfi5ESP2.js";
|
|
7
|
+
import { i as injectAlertDialogContentContext } from "./AlertDialogTitle.vue_vue_type_script_setup_true_lang-CWCr2erD.js";
|
|
8
|
+
import { D as DialogTrigger_default } from "./DialogTrigger-CpyKnu11.js";
|
|
9
|
+
var AlertDialogAction_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineComponent({
|
|
10
|
+
__name: "AlertDialogAction",
|
|
11
|
+
props: {
|
|
12
|
+
asChild: {
|
|
13
|
+
type: Boolean,
|
|
14
|
+
required: false
|
|
15
|
+
},
|
|
16
|
+
as: {
|
|
17
|
+
type: null,
|
|
18
|
+
required: false,
|
|
19
|
+
default: "button"
|
|
20
|
+
}
|
|
21
|
+
},
|
|
22
|
+
setup(__props) {
|
|
23
|
+
const props = __props;
|
|
24
|
+
useForwardExpose();
|
|
25
|
+
return (_ctx, _cache) => {
|
|
26
|
+
return openBlock(), createBlock(unref(DialogClose_default), normalizeProps(guardReactiveProps(props)), {
|
|
27
|
+
default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
|
|
28
|
+
_: 3
|
|
29
|
+
}, 16);
|
|
30
|
+
};
|
|
31
|
+
}
|
|
32
|
+
});
|
|
33
|
+
var AlertDialogAction_default = AlertDialogAction_vue_vue_type_script_setup_true_lang_default;
|
|
34
|
+
var AlertDialogCancel_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineComponent({
|
|
35
|
+
__name: "AlertDialogCancel",
|
|
36
|
+
props: {
|
|
37
|
+
asChild: {
|
|
38
|
+
type: Boolean,
|
|
39
|
+
required: false
|
|
40
|
+
},
|
|
41
|
+
as: {
|
|
42
|
+
type: null,
|
|
43
|
+
required: false,
|
|
44
|
+
default: "button"
|
|
45
|
+
}
|
|
46
|
+
},
|
|
47
|
+
setup(__props) {
|
|
48
|
+
const props = __props;
|
|
49
|
+
const contentContext = injectAlertDialogContentContext();
|
|
50
|
+
const { forwardRef, currentElement } = useForwardExpose();
|
|
51
|
+
onMounted(() => {
|
|
52
|
+
contentContext.onCancelElementChange(currentElement.value);
|
|
53
|
+
});
|
|
54
|
+
return (_ctx, _cache) => {
|
|
55
|
+
return openBlock(), createBlock(unref(DialogClose_default), mergeProps(props, { ref: unref(forwardRef) }), {
|
|
56
|
+
default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
|
|
57
|
+
_: 3
|
|
58
|
+
}, 16);
|
|
59
|
+
};
|
|
60
|
+
}
|
|
61
|
+
});
|
|
62
|
+
var AlertDialogCancel_default = AlertDialogCancel_vue_vue_type_script_setup_true_lang_default;
|
|
63
|
+
var AlertDialogTrigger_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineComponent({
|
|
64
|
+
__name: "AlertDialogTrigger",
|
|
65
|
+
props: {
|
|
66
|
+
asChild: {
|
|
67
|
+
type: Boolean,
|
|
68
|
+
required: false
|
|
69
|
+
},
|
|
70
|
+
as: {
|
|
71
|
+
type: null,
|
|
72
|
+
required: false,
|
|
73
|
+
default: "button"
|
|
74
|
+
}
|
|
75
|
+
},
|
|
76
|
+
setup(__props) {
|
|
77
|
+
const props = __props;
|
|
78
|
+
useForwardExpose();
|
|
79
|
+
return (_ctx, _cache) => {
|
|
80
|
+
return openBlock(), createBlock(unref(DialogTrigger_default), normalizeProps(guardReactiveProps(props)), {
|
|
81
|
+
default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
|
|
82
|
+
_: 3
|
|
83
|
+
}, 16);
|
|
84
|
+
};
|
|
85
|
+
}
|
|
86
|
+
});
|
|
87
|
+
var AlertDialogTrigger_default = AlertDialogTrigger_vue_vue_type_script_setup_true_lang_default;
|
|
88
|
+
const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
89
|
+
__name: "AlertDialogAction",
|
|
90
|
+
props: {
|
|
91
|
+
asChild: { type: Boolean },
|
|
92
|
+
as: {},
|
|
93
|
+
class: {}
|
|
94
|
+
},
|
|
95
|
+
setup(__props) {
|
|
96
|
+
const props = __props;
|
|
97
|
+
const delegatedProps = reactiveOmit(props, "class");
|
|
98
|
+
return (_ctx, _cache) => {
|
|
99
|
+
return openBlock(), createBlock(unref(AlertDialogAction_default), mergeProps(unref(delegatedProps), {
|
|
100
|
+
class: unref(cn)(unref(buttonVariants)(), props.class)
|
|
101
|
+
}), {
|
|
102
|
+
default: withCtx(() => [
|
|
103
|
+
renderSlot(_ctx.$slots, "default")
|
|
104
|
+
]),
|
|
105
|
+
_: 3
|
|
106
|
+
}, 16, ["class"]);
|
|
107
|
+
};
|
|
108
|
+
}
|
|
109
|
+
});
|
|
110
|
+
const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
111
|
+
__name: "AlertDialogCancel",
|
|
112
|
+
props: {
|
|
113
|
+
asChild: { type: Boolean },
|
|
114
|
+
as: {},
|
|
115
|
+
class: {}
|
|
116
|
+
},
|
|
117
|
+
setup(__props) {
|
|
118
|
+
const props = __props;
|
|
119
|
+
const delegatedProps = reactiveOmit(props, "class");
|
|
120
|
+
return (_ctx, _cache) => {
|
|
121
|
+
return openBlock(), createBlock(unref(AlertDialogCancel_default), mergeProps(unref(delegatedProps), {
|
|
122
|
+
class: unref(cn)(
|
|
123
|
+
unref(buttonVariants)({ variant: "outline" }),
|
|
124
|
+
"mt-2 sm:mt-0",
|
|
125
|
+
props.class
|
|
126
|
+
)
|
|
127
|
+
}), {
|
|
128
|
+
default: withCtx(() => [
|
|
129
|
+
renderSlot(_ctx.$slots, "default")
|
|
130
|
+
]),
|
|
131
|
+
_: 3
|
|
132
|
+
}, 16, ["class"]);
|
|
133
|
+
};
|
|
134
|
+
}
|
|
135
|
+
});
|
|
136
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
137
|
+
__name: "AlertDialogTrigger",
|
|
138
|
+
props: {
|
|
139
|
+
asChild: { type: Boolean },
|
|
140
|
+
as: {}
|
|
141
|
+
},
|
|
142
|
+
setup(__props) {
|
|
143
|
+
const props = __props;
|
|
144
|
+
return (_ctx, _cache) => {
|
|
145
|
+
return openBlock(), createBlock(unref(AlertDialogTrigger_default), mergeProps({ "data-slot": "alert-dialog-trigger" }, props), {
|
|
146
|
+
default: withCtx(() => [
|
|
147
|
+
renderSlot(_ctx.$slots, "default")
|
|
148
|
+
]),
|
|
149
|
+
_: 3
|
|
150
|
+
}, 16);
|
|
151
|
+
};
|
|
152
|
+
}
|
|
153
|
+
});
|
|
154
|
+
export {
|
|
155
|
+
_sfc_main$2 as _,
|
|
156
|
+
_sfc_main$1 as a,
|
|
157
|
+
_sfc_main as b
|
|
158
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { openBlock, createElementBlock, createElementVNode } from "vue";
|
|
2
|
+
import { _ as _export_sfc } from "./_plugin-vue_export-helper-1tPrXgE0.js";
|
|
3
|
+
const _sfc_main = {};
|
|
4
|
+
const _hoisted_1 = { class: "pointer-events-none absolute inset-0 z-0 overflow-hidden" };
|
|
5
|
+
function _sfc_render(_ctx, _cache) {
|
|
6
|
+
return openBlock(), createElementBlock("div", _hoisted_1, _cache[0] || (_cache[0] = [
|
|
7
|
+
createElementVNode("div", { class: "absolute inset-0 bg-[linear-gradient(to_right,#80808012_1px,transparent_1px),linear-gradient(to_bottom,#80808012_1px,transparent_1px)] bg-[size:18px_18px] dark:bg-[linear-gradient(to_right,#ffffff0d_1px,transparent_1px),linear-gradient(to_bottom,#ffffff0d_1px,transparent_1px)]" }, null, -1)
|
|
8
|
+
]));
|
|
9
|
+
}
|
|
10
|
+
const BackgroundGrid = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
|
|
11
|
+
export {
|
|
12
|
+
BackgroundGrid as B
|
|
13
|
+
};
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import { defineComponent, openBlock, createBlock, Transition, withCtx, createElementBlock, normalizeClass, unref, createElementVNode, renderSlot, createVNode, toDisplayString, createCommentVNode } from "vue";
|
|
2
|
+
import { c as cn } from "./utils-Bz4m9VPB.js";
|
|
3
|
+
import { c as createLucideIcon } from "./createLucideIcon-CCMB2vDW.js";
|
|
4
|
+
import { _ as _export_sfc } from "./_plugin-vue_export-helper-1tPrXgE0.js";
|
|
5
|
+
/**
|
|
6
|
+
* @license lucide-vue-next v1.0.0 - ISC
|
|
7
|
+
*
|
|
8
|
+
* This source code is licensed under the ISC license.
|
|
9
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
10
|
+
*/
|
|
11
|
+
const LoaderCircle = createLucideIcon("loader-circle", [
|
|
12
|
+
["path", { d: "M21 12a9 9 0 1 1-6.219-8.56", key: "13zald" }]
|
|
13
|
+
]);
|
|
14
|
+
const _hoisted_1 = {
|
|
15
|
+
key: 0,
|
|
16
|
+
"data-slot": "busy-label",
|
|
17
|
+
class: "text-xs font-medium text-foreground sm:text-sm"
|
|
18
|
+
};
|
|
19
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
20
|
+
__name: "Busy",
|
|
21
|
+
props: {
|
|
22
|
+
show: { type: Boolean, default: false },
|
|
23
|
+
label: { default: "Loading..." },
|
|
24
|
+
class: {},
|
|
25
|
+
overlayClass: {}
|
|
26
|
+
},
|
|
27
|
+
setup(__props) {
|
|
28
|
+
const props = __props;
|
|
29
|
+
return (_ctx, _cache) => {
|
|
30
|
+
return openBlock(), createBlock(Transition, { name: "busy-fade" }, {
|
|
31
|
+
default: withCtx(() => [
|
|
32
|
+
props.show ? (openBlock(), createElementBlock("div", {
|
|
33
|
+
key: 0,
|
|
34
|
+
"data-slot": "busy-overlay",
|
|
35
|
+
class: normalizeClass(unref(cn)("fixed inset-0 z-50 flex items-center justify-center bg-black/45 backdrop-blur-[2px] transition-[opacity,backdrop-filter] duration-300 ease-out", props.overlayClass))
|
|
36
|
+
}, [
|
|
37
|
+
createElementVNode("div", {
|
|
38
|
+
"data-slot": "busy-content",
|
|
39
|
+
role: "status",
|
|
40
|
+
"aria-live": "polite",
|
|
41
|
+
"aria-busy": "true",
|
|
42
|
+
class: normalizeClass(unref(cn)("bg-card text-card-foreground flex w-72 flex-col items-center justify-center gap-4 rounded border border-border px-8 py-7 text-center shadow-2xl", props.class))
|
|
43
|
+
}, [
|
|
44
|
+
renderSlot(_ctx.$slots, "default", {}, () => [
|
|
45
|
+
createVNode(unref(LoaderCircle), {
|
|
46
|
+
"data-slot": "busy-spinner",
|
|
47
|
+
class: "size-10 animate-spin text-primary"
|
|
48
|
+
}),
|
|
49
|
+
props.label ? (openBlock(), createElementBlock("span", _hoisted_1, toDisplayString(props.label), 1)) : createCommentVNode("", true)
|
|
50
|
+
], true)
|
|
51
|
+
], 2)
|
|
52
|
+
], 2)) : createCommentVNode("", true)
|
|
53
|
+
]),
|
|
54
|
+
_: 3
|
|
55
|
+
});
|
|
56
|
+
};
|
|
57
|
+
}
|
|
58
|
+
});
|
|
59
|
+
const Busy = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-b43114a4"]]);
|
|
60
|
+
export {
|
|
61
|
+
Busy as B
|
|
62
|
+
};
|