@resq-sw/ui 0.2.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.md +20 -0
- package/README.md +61 -0
- package/lib/components/accordion/accordion.d.ts +27 -0
- package/lib/components/accordion/accordion.d.ts.map +1 -0
- package/lib/components/accordion/accordion.js +71 -0
- package/lib/components/accordion/accordion.js.map +1 -0
- package/lib/components/accordion/index.d.ts +2 -0
- package/lib/components/accordion/index.js +2 -0
- package/lib/components/alert/alert.d.ts +30 -0
- package/lib/components/alert/alert.d.ts.map +1 -0
- package/lib/components/alert/alert.js +59 -0
- package/lib/components/alert/alert.js.map +1 -0
- package/lib/components/alert/index.d.ts +2 -0
- package/lib/components/alert/index.js +2 -0
- package/lib/components/alert-dialog/alert-dialog.d.ts +61 -0
- package/lib/components/alert-dialog/alert-dialog.d.ts.map +1 -0
- package/lib/components/alert-dialog/alert-dialog.js +102 -0
- package/lib/components/alert-dialog/alert-dialog.js.map +1 -0
- package/lib/components/alert-dialog/index.d.ts +2 -0
- package/lib/components/alert-dialog/index.js +2 -0
- package/lib/components/aspect-ratio/aspect-ratio.d.ts +11 -0
- package/lib/components/aspect-ratio/aspect-ratio.d.ts.map +1 -0
- package/lib/components/aspect-ratio/aspect-ratio.js +29 -0
- package/lib/components/aspect-ratio/aspect-ratio.js.map +1 -0
- package/lib/components/aspect-ratio/index.d.ts +2 -0
- package/lib/components/aspect-ratio/index.js +2 -0
- package/lib/components/avatar/avatar.d.ts +36 -0
- package/lib/components/avatar/avatar.d.ts.map +1 -0
- package/lib/components/avatar/avatar.js +67 -0
- package/lib/components/avatar/avatar.js.map +1 -0
- package/lib/components/avatar/index.d.ts +2 -0
- package/lib/components/avatar/index.js +2 -0
- package/lib/components/badge/badge.d.ts +21 -0
- package/lib/components/badge/badge.d.ts.map +1 -0
- package/lib/components/badge/badge.js +43 -0
- package/lib/components/badge/badge.js.map +1 -0
- package/lib/components/badge/index.d.ts +2 -0
- package/lib/components/badge/index.js +2 -0
- package/lib/components/breadcrumb/breadcrumb.d.ts +40 -0
- package/lib/components/breadcrumb/breadcrumb.d.ts.map +1 -0
- package/lib/components/breadcrumb/breadcrumb.js +86 -0
- package/lib/components/breadcrumb/breadcrumb.js.map +1 -0
- package/lib/components/breadcrumb/index.d.ts +2 -0
- package/lib/components/breadcrumb/index.js +2 -0
- package/lib/components/button/button.d.ts +23 -0
- package/lib/components/button/button.d.ts.map +1 -0
- package/lib/components/button/button.js +63 -0
- package/lib/components/button/button.js.map +1 -0
- package/lib/components/button/index.d.ts +2 -0
- package/lib/components/button/index.js +2 -0
- package/lib/components/button-group/button-group.d.ts +30 -0
- package/lib/components/button-group/button-group.d.ts.map +1 -0
- package/lib/components/button-group/button-group.js +55 -0
- package/lib/components/button-group/button-group.js.map +1 -0
- package/lib/components/button-group/index.d.ts +2 -0
- package/lib/components/button-group/index.js +2 -0
- package/lib/components/calendar/calendar.d.ts +32 -0
- package/lib/components/calendar/calendar.d.ts.map +1 -0
- package/lib/components/calendar/calendar.js +126 -0
- package/lib/components/calendar/calendar.js.map +1 -0
- package/lib/components/calendar/index.d.ts +2 -0
- package/lib/components/calendar/index.js +2 -0
- package/lib/components/card/card.d.ts +39 -0
- package/lib/components/card/card.d.ts.map +1 -0
- package/lib/components/card/card.js +57 -0
- package/lib/components/card/card.js.map +1 -0
- package/lib/components/card/index.d.ts +2 -0
- package/lib/components/card/index.js +2 -0
- package/lib/components/carousel/carousel.d.ts +58 -0
- package/lib/components/carousel/carousel.d.ts.map +1 -0
- package/lib/components/carousel/carousel.js +150 -0
- package/lib/components/carousel/carousel.js.map +1 -0
- package/lib/components/carousel/index.d.ts +2 -0
- package/lib/components/carousel/index.js +2 -0
- package/lib/components/chart/chart.d.ts +70 -0
- package/lib/components/chart/chart.d.ts.map +1 -0
- package/lib/components/chart/chart.js +164 -0
- package/lib/components/chart/chart.js.map +1 -0
- package/lib/components/chart/index.d.ts +2 -0
- package/lib/components/chart/index.js +2 -0
- package/lib/components/checkbox/checkbox.d.ts +13 -0
- package/lib/components/checkbox/checkbox.d.ts.map +1 -0
- package/lib/components/checkbox/checkbox.js +37 -0
- package/lib/components/checkbox/checkbox.js.map +1 -0
- package/lib/components/checkbox/index.d.ts +2 -0
- package/lib/components/checkbox/index.js +2 -0
- package/lib/components/collapsible/collapsible.d.ts +17 -0
- package/lib/components/collapsible/collapsible.d.ts.map +1 -0
- package/lib/components/collapsible/collapsible.js +41 -0
- package/lib/components/collapsible/collapsible.js.map +1 -0
- package/lib/components/collapsible/index.d.ts +2 -0
- package/lib/components/collapsible/index.js +2 -0
- package/lib/components/combobox/combobox.d.ts +83 -0
- package/lib/components/combobox/combobox.d.ts.map +1 -0
- package/lib/components/combobox/combobox.js +180 -0
- package/lib/components/combobox/combobox.js.map +1 -0
- package/lib/components/combobox/index.d.ts +2 -0
- package/lib/components/combobox/index.js +2 -0
- package/lib/components/command/command.d.ts +56 -0
- package/lib/components/command/command.d.ts.map +1 -0
- package/lib/components/command/command.js +104 -0
- package/lib/components/command/command.js.map +1 -0
- package/lib/components/command/index.d.ts +2 -0
- package/lib/components/command/index.js +2 -0
- package/lib/components/context-menu/context-menu.d.ts +81 -0
- package/lib/components/context-menu/context-menu.d.ts.map +1 -0
- package/lib/components/context-menu/context-menu.js +139 -0
- package/lib/components/context-menu/context-menu.js.map +1 -0
- package/lib/components/context-menu/index.d.ts +2 -0
- package/lib/components/context-menu/index.js +2 -0
- package/lib/components/dialog/dialog.d.ts +52 -0
- package/lib/components/dialog/dialog.d.ts.map +1 -0
- package/lib/components/dialog/dialog.js +97 -0
- package/lib/components/dialog/dialog.js.map +1 -0
- package/lib/components/dialog/index.d.ts +2 -0
- package/lib/components/dialog/index.js +2 -0
- package/lib/components/direction/direction.d.ts +17 -0
- package/lib/components/direction/direction.d.ts.map +1 -0
- package/lib/components/direction/direction.js +30 -0
- package/lib/components/direction/direction.js.map +1 -0
- package/lib/components/direction/index.d.ts +2 -0
- package/lib/components/direction/index.js +2 -0
- package/lib/components/drawer/drawer.d.ts +46 -0
- package/lib/components/drawer/drawer.d.ts.map +1 -0
- package/lib/components/drawer/drawer.js +94 -0
- package/lib/components/drawer/drawer.js.map +1 -0
- package/lib/components/drawer/index.d.ts +2 -0
- package/lib/components/drawer/index.js +2 -0
- package/lib/components/dropdown-menu/dropdown-menu.d.ts +80 -0
- package/lib/components/dropdown-menu/dropdown-menu.d.ts.map +1 -0
- package/lib/components/dropdown-menu/dropdown-menu.js +142 -0
- package/lib/components/dropdown-menu/dropdown-menu.js.map +1 -0
- package/lib/components/dropdown-menu/index.d.ts +2 -0
- package/lib/components/dropdown-menu/index.js +2 -0
- package/lib/components/empty/empty.d.ts +37 -0
- package/lib/components/empty/empty.d.ts.map +1 -0
- package/lib/components/empty/empty.js +76 -0
- package/lib/components/empty/empty.js.map +1 -0
- package/lib/components/empty/index.d.ts +2 -0
- package/lib/components/empty/index.js +2 -0
- package/lib/components/field/field.d.ts +66 -0
- package/lib/components/field/field.d.ts.map +1 -0
- package/lib/components/field/field.js +127 -0
- package/lib/components/field/field.js.map +1 -0
- package/lib/components/field/index.d.ts +2 -0
- package/lib/components/field/index.js +2 -0
- package/lib/components/hover-card/hover-card.d.ts +21 -0
- package/lib/components/hover-card/hover-card.d.ts.map +1 -0
- package/lib/components/hover-card/hover-card.js +48 -0
- package/lib/components/hover-card/hover-card.js.map +1 -0
- package/lib/components/hover-card/index.d.ts +2 -0
- package/lib/components/hover-card/index.js +2 -0
- package/lib/components/input/index.d.ts +2 -0
- package/lib/components/input/index.js +2 -0
- package/lib/components/input/input.d.ts +13 -0
- package/lib/components/input/input.d.ts.map +1 -0
- package/lib/components/input/input.js +15 -0
- package/lib/components/input/input.js.map +1 -0
- package/lib/components/input-group/index.d.ts +2 -0
- package/lib/components/input-group/index.js +2 -0
- package/lib/components/input-group/input-group.d.ts +45 -0
- package/lib/components/input-group/input-group.d.ts.map +1 -0
- package/lib/components/input-group/input-group.js +95 -0
- package/lib/components/input-group/input-group.js.map +1 -0
- package/lib/components/input-otp/index.d.ts +2 -0
- package/lib/components/input-otp/index.js +2 -0
- package/lib/components/input-otp/input-otp.d.ts +30 -0
- package/lib/components/input-otp/input-otp.d.ts.map +1 -0
- package/lib/components/input-otp/input-otp.js +64 -0
- package/lib/components/input-otp/input-otp.js.map +1 -0
- package/lib/components/item/index.d.ts +2 -0
- package/lib/components/item/index.js +2 -0
- package/lib/components/item/item.d.ts +64 -0
- package/lib/components/item/item.d.ts.map +1 -0
- package/lib/components/item/item.js +133 -0
- package/lib/components/item/item.js.map +1 -0
- package/lib/components/kbd/index.d.ts +2 -0
- package/lib/components/kbd/index.js +2 -0
- package/lib/components/kbd/kbd.d.ts +30 -0
- package/lib/components/kbd/kbd.d.ts.map +1 -0
- package/lib/components/kbd/kbd.js +36 -0
- package/lib/components/kbd/kbd.js.map +1 -0
- package/lib/components/label/index.d.ts +2 -0
- package/lib/components/label/index.js +2 -0
- package/lib/components/label/label.d.ts +13 -0
- package/lib/components/label/label.d.ts.map +1 -0
- package/lib/components/label/label.js +31 -0
- package/lib/components/label/label.js.map +1 -0
- package/lib/components/menubar/index.d.ts +2 -0
- package/lib/components/menubar/index.js +2 -0
- package/lib/components/menubar/menubar.d.ts +86 -0
- package/lib/components/menubar/menubar.d.ts.map +1 -0
- package/lib/components/menubar/menubar.js +149 -0
- package/lib/components/menubar/menubar.js.map +1 -0
- package/lib/components/native-select/index.d.ts +2 -0
- package/lib/components/native-select/index.js +2 -0
- package/lib/components/native-select/native-select.d.ts +23 -0
- package/lib/components/native-select/native-select.d.ts.map +1 -0
- package/lib/components/native-select/native-select.js +53 -0
- package/lib/components/native-select/native-select.js.map +1 -0
- package/lib/components/navigation-menu/index.d.ts +2 -0
- package/lib/components/navigation-menu/index.js +2 -0
- package/lib/components/navigation-menu/navigation-menu.d.ts +48 -0
- package/lib/components/navigation-menu/navigation-menu.d.ts.map +1 -0
- package/lib/components/navigation-menu/navigation-menu.js +96 -0
- package/lib/components/navigation-menu/navigation-menu.js.map +1 -0
- package/lib/components/pagination/index.d.ts +2 -0
- package/lib/components/pagination/index.js +2 -0
- package/lib/components/pagination/pagination.d.ts +47 -0
- package/lib/components/pagination/pagination.d.ts.map +1 -0
- package/lib/components/pagination/pagination.js +95 -0
- package/lib/components/pagination/pagination.js.map +1 -0
- package/lib/components/popover/index.d.ts +2 -0
- package/lib/components/popover/index.js +2 -0
- package/lib/components/popover/popover.d.ts +36 -0
- package/lib/components/popover/popover.d.ts.map +1 -0
- package/lib/components/popover/popover.js +72 -0
- package/lib/components/popover/popover.js.map +1 -0
- package/lib/components/progress/index.d.ts +2 -0
- package/lib/components/progress/index.js +2 -0
- package/lib/components/progress/progress.d.ts +14 -0
- package/lib/components/progress/progress.d.ts.map +1 -0
- package/lib/components/progress/progress.js +36 -0
- package/lib/components/progress/progress.js.map +1 -0
- package/lib/components/radio-group/index.d.ts +2 -0
- package/lib/components/radio-group/index.js +2 -0
- package/lib/components/radio-group/radio-group.d.ts +17 -0
- package/lib/components/radio-group/radio-group.d.ts.map +1 -0
- package/lib/components/radio-group/radio-group.js +44 -0
- package/lib/components/radio-group/radio-group.js.map +1 -0
- package/lib/components/resizable/index.d.ts +2 -0
- package/lib/components/resizable/index.js +2 -0
- package/lib/components/resizable/resizable.d.ts +23 -0
- package/lib/components/resizable/resizable.d.ts.map +1 -0
- package/lib/components/resizable/resizable.js +45 -0
- package/lib/components/resizable/resizable.js.map +1 -0
- package/lib/components/scroll-area/index.d.ts +2 -0
- package/lib/components/scroll-area/index.js +2 -0
- package/lib/components/scroll-area/scroll-area.d.ts +19 -0
- package/lib/components/scroll-area/scroll-area.d.ts.map +1 -0
- package/lib/components/scroll-area/scroll-area.js +53 -0
- package/lib/components/scroll-area/scroll-area.js.map +1 -0
- package/lib/components/select/index.d.ts +2 -0
- package/lib/components/select/index.js +2 -0
- package/lib/components/select/select.d.ts +55 -0
- package/lib/components/select/select.d.ts.map +1 -0
- package/lib/components/select/select.js +116 -0
- package/lib/components/select/select.js.map +1 -0
- package/lib/components/separator/index.d.ts +2 -0
- package/lib/components/separator/index.js +2 -0
- package/lib/components/separator/separator.d.ts +15 -0
- package/lib/components/separator/separator.d.ts.map +1 -0
- package/lib/components/separator/separator.js +33 -0
- package/lib/components/separator/separator.js.map +1 -0
- package/lib/components/sheet/index.d.ts +2 -0
- package/lib/components/sheet/index.js +2 -0
- package/lib/components/sheet/sheet.d.ts +44 -0
- package/lib/components/sheet/sheet.d.ts.map +1 -0
- package/lib/components/sheet/sheet.js +106 -0
- package/lib/components/sheet/sheet.js.map +1 -0
- package/lib/components/sidebar/index.d.ts +2 -0
- package/lib/components/sidebar/index.js +2 -0
- package/lib/components/sidebar/sidebar.d.ts +169 -0
- package/lib/components/sidebar/sidebar.d.ts.map +1 -0
- package/lib/components/sidebar/sidebar.js +388 -0
- package/lib/components/sidebar/sidebar.js.map +1 -0
- package/lib/components/skeleton/index.d.ts +2 -0
- package/lib/components/skeleton/index.js +2 -0
- package/lib/components/skeleton/skeleton.d.ts +26 -0
- package/lib/components/skeleton/skeleton.d.ts.map +1 -0
- package/lib/components/skeleton/skeleton.js +29 -0
- package/lib/components/skeleton/skeleton.js.map +1 -0
- package/lib/components/slider/index.d.ts +2 -0
- package/lib/components/slider/index.js +2 -0
- package/lib/components/slider/slider.d.ts +17 -0
- package/lib/components/slider/slider.d.ts.map +1 -0
- package/lib/components/slider/slider.js +53 -0
- package/lib/components/slider/slider.js.map +1 -0
- package/lib/components/sonner/index.d.ts +2 -0
- package/lib/components/sonner/index.js +2 -0
- package/lib/components/sonner/sonner.d.ts +11 -0
- package/lib/components/sonner/sonner.d.ts.map +1 -0
- package/lib/components/sonner/sonner.js +47 -0
- package/lib/components/sonner/sonner.js.map +1 -0
- package/lib/components/spinner/index.d.ts +2 -0
- package/lib/components/spinner/index.js +2 -0
- package/lib/components/spinner/spinner.d.ts +26 -0
- package/lib/components/spinner/spinner.d.ts.map +1 -0
- package/lib/components/spinner/spinner.js +31 -0
- package/lib/components/spinner/spinner.js.map +1 -0
- package/lib/components/switch/index.d.ts +2 -0
- package/lib/components/switch/index.js +2 -0
- package/lib/components/switch/switch.d.ts +16 -0
- package/lib/components/switch/switch.d.ts.map +1 -0
- package/lib/components/switch/switch.js +36 -0
- package/lib/components/switch/switch.js.map +1 -0
- package/lib/components/table/index.d.ts +2 -0
- package/lib/components/table/index.js +2 -0
- package/lib/components/table/table.d.ts +40 -0
- package/lib/components/table/table.d.ts.map +1 -0
- package/lib/components/table/table.js +83 -0
- package/lib/components/table/table.js.map +1 -0
- package/lib/components/tabs/index.d.ts +2 -0
- package/lib/components/tabs/index.js +2 -0
- package/lib/components/tabs/tabs.d.ts +32 -0
- package/lib/components/tabs/tabs.d.ts.map +1 -0
- package/lib/components/tabs/tabs.js +62 -0
- package/lib/components/tabs/tabs.js.map +1 -0
- package/lib/components/textarea/index.d.ts +2 -0
- package/lib/components/textarea/index.js +2 -0
- package/lib/components/textarea/textarea.d.ts +12 -0
- package/lib/components/textarea/textarea.d.ts.map +1 -0
- package/lib/components/textarea/textarea.js +14 -0
- package/lib/components/textarea/textarea.js.map +1 -0
- package/lib/components/toggle/index.d.ts +2 -0
- package/lib/components/toggle/index.js +2 -0
- package/lib/components/toggle/toggle.d.ts +21 -0
- package/lib/components/toggle/toggle.d.ts.map +1 -0
- package/lib/components/toggle/toggle.js +53 -0
- package/lib/components/toggle/toggle.js.map +1 -0
- package/lib/components/toggle-group/index.d.ts +2 -0
- package/lib/components/toggle-group/index.js +2 -0
- package/lib/components/toggle-group/toggle-group.d.ts +30 -0
- package/lib/components/toggle-group/toggle-group.d.ts.map +1 -0
- package/lib/components/toggle-group/toggle-group.js +68 -0
- package/lib/components/toggle-group/toggle-group.js.map +1 -0
- package/lib/components/tooltip/index.d.ts +2 -0
- package/lib/components/tooltip/index.js +2 -0
- package/lib/components/tooltip/tooltip.d.ts +25 -0
- package/lib/components/tooltip/tooltip.d.ts.map +1 -0
- package/lib/components/tooltip/tooltip.js +52 -0
- package/lib/components/tooltip/tooltip.js.map +1 -0
- package/lib/hooks/use-mobile.d.ts +20 -0
- package/lib/hooks/use-mobile.d.ts.map +1 -0
- package/lib/hooks/use-mobile.js +37 -0
- package/lib/hooks/use-mobile.js.map +1 -0
- package/lib/index.d.ts +58 -0
- package/lib/index.js +113 -0
- package/lib/lib/utils.d.ts +7 -0
- package/lib/lib/utils.d.ts.map +1 -0
- package/lib/lib/utils.js +10 -0
- package/lib/lib/utils.js.map +1 -0
- package/package.json +395 -0
- package/src/styles/globals.css +140 -0
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { cn } from "../../lib/utils.js";
|
|
3
|
+
import { Button } from "../button/button.js";
|
|
4
|
+
import { XIcon } from "lucide-react";
|
|
5
|
+
import { Dialog as Dialog$1 } from "radix-ui";
|
|
6
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
7
|
+
//#region src/components/dialog/dialog.tsx
|
|
8
|
+
function Dialog({ ...props }) {
|
|
9
|
+
return /* @__PURE__ */ jsx(Dialog$1.Root, {
|
|
10
|
+
"data-slot": "dialog",
|
|
11
|
+
...props
|
|
12
|
+
});
|
|
13
|
+
}
|
|
14
|
+
function DialogClose({ ...props }) {
|
|
15
|
+
return /* @__PURE__ */ jsx(Dialog$1.Close, {
|
|
16
|
+
"data-slot": "dialog-close",
|
|
17
|
+
...props
|
|
18
|
+
});
|
|
19
|
+
}
|
|
20
|
+
function DialogContent({ children, className, showCloseButton = true, ...props }) {
|
|
21
|
+
return /* @__PURE__ */ jsxs(DialogPortal, { children: [/* @__PURE__ */ jsx(DialogOverlay, {}), /* @__PURE__ */ jsxs(Dialog$1.Content, {
|
|
22
|
+
className: cn("bg-background data-open:animate-in data-closed:animate-out data-closed:fade-out-0 data-open:fade-in-0 data-closed:zoom-out-95 data-open:zoom-in-95 ring-foreground/10 grid max-w-[calc(100%-2rem)] gap-4 rounded-xl p-4 text-sm ring-1 duration-100 sm:max-w-sm fixed top-1/2 left-1/2 z-50 w-full -translate-x-1/2 -translate-y-1/2 outline-none", className),
|
|
23
|
+
"data-slot": "dialog-content",
|
|
24
|
+
...props,
|
|
25
|
+
children: [children, showCloseButton && /* @__PURE__ */ jsx(Dialog$1.Close, {
|
|
26
|
+
asChild: true,
|
|
27
|
+
"data-slot": "dialog-close",
|
|
28
|
+
children: /* @__PURE__ */ jsxs(Button, {
|
|
29
|
+
className: "absolute top-2 right-2",
|
|
30
|
+
size: "icon-sm",
|
|
31
|
+
variant: "ghost",
|
|
32
|
+
children: [/* @__PURE__ */ jsx(XIcon, {}), /* @__PURE__ */ jsx("span", {
|
|
33
|
+
className: "sr-only",
|
|
34
|
+
children: "Close"
|
|
35
|
+
})]
|
|
36
|
+
})
|
|
37
|
+
})]
|
|
38
|
+
})] });
|
|
39
|
+
}
|
|
40
|
+
function DialogDescription({ className, ...props }) {
|
|
41
|
+
return /* @__PURE__ */ jsx(Dialog$1.Description, {
|
|
42
|
+
className: cn("text-muted-foreground *:[a]:hover:text-foreground text-sm *:[a]:underline *:[a]:underline-offset-3", className),
|
|
43
|
+
"data-slot": "dialog-description",
|
|
44
|
+
...props
|
|
45
|
+
});
|
|
46
|
+
}
|
|
47
|
+
function DialogFooter({ children, className, showCloseButton = false, ...props }) {
|
|
48
|
+
return /* @__PURE__ */ jsxs("div", {
|
|
49
|
+
className: cn("bg-muted/50 -mx-4 -mb-4 rounded-b-xl border-t p-4 flex flex-col-reverse gap-2 sm:flex-row sm:justify-end", className),
|
|
50
|
+
"data-slot": "dialog-footer",
|
|
51
|
+
...props,
|
|
52
|
+
children: [children, showCloseButton && /* @__PURE__ */ jsx(Dialog$1.Close, {
|
|
53
|
+
asChild: true,
|
|
54
|
+
children: /* @__PURE__ */ jsx(Button, {
|
|
55
|
+
variant: "outline",
|
|
56
|
+
children: "Close"
|
|
57
|
+
})
|
|
58
|
+
})]
|
|
59
|
+
});
|
|
60
|
+
}
|
|
61
|
+
function DialogHeader({ className, ...props }) {
|
|
62
|
+
return /* @__PURE__ */ jsx("div", {
|
|
63
|
+
className: cn("gap-2 flex flex-col", className),
|
|
64
|
+
"data-slot": "dialog-header",
|
|
65
|
+
...props
|
|
66
|
+
});
|
|
67
|
+
}
|
|
68
|
+
function DialogOverlay({ className, ...props }) {
|
|
69
|
+
return /* @__PURE__ */ jsx(Dialog$1.Overlay, {
|
|
70
|
+
className: cn("data-open:animate-in data-closed:animate-out data-closed:fade-out-0 data-open:fade-in-0 bg-black/10 duration-100 supports-backdrop-filter:backdrop-blur-xs fixed inset-0 isolate z-50", className),
|
|
71
|
+
"data-slot": "dialog-overlay",
|
|
72
|
+
...props
|
|
73
|
+
});
|
|
74
|
+
}
|
|
75
|
+
function DialogPortal({ ...props }) {
|
|
76
|
+
return /* @__PURE__ */ jsx(Dialog$1.Portal, {
|
|
77
|
+
"data-slot": "dialog-portal",
|
|
78
|
+
...props
|
|
79
|
+
});
|
|
80
|
+
}
|
|
81
|
+
function DialogTitle({ className, ...props }) {
|
|
82
|
+
return /* @__PURE__ */ jsx(Dialog$1.Title, {
|
|
83
|
+
className: cn("text-base leading-none font-medium", className),
|
|
84
|
+
"data-slot": "dialog-title",
|
|
85
|
+
...props
|
|
86
|
+
});
|
|
87
|
+
}
|
|
88
|
+
function DialogTrigger({ ...props }) {
|
|
89
|
+
return /* @__PURE__ */ jsx(Dialog$1.Trigger, {
|
|
90
|
+
"data-slot": "dialog-trigger",
|
|
91
|
+
...props
|
|
92
|
+
});
|
|
93
|
+
}
|
|
94
|
+
//#endregion
|
|
95
|
+
export { Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger };
|
|
96
|
+
|
|
97
|
+
//# sourceMappingURL=dialog.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dialog.js","names":["DialogPrimitive"],"sources":["../../../src/components/dialog/dialog.tsx"],"sourcesContent":["/*\n * Copyright 2026 ResQ\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n\"use client\";\n\nimport { XIcon } from \"lucide-react\";\nimport { Dialog as DialogPrimitive } from \"radix-ui\";\nimport type * as React from \"react\";\n\nimport { cn } from \"../../lib/utils.js\";\nimport { Button } from \"../button/button.js\";\n\nfunction Dialog({ ...props }: React.ComponentProps<typeof DialogPrimitive.Root>) {\n\treturn <DialogPrimitive.Root data-slot=\"dialog\" {...props} />;\n}\n\nfunction DialogClose({ ...props }: React.ComponentProps<typeof DialogPrimitive.Close>) {\n\treturn <DialogPrimitive.Close data-slot=\"dialog-close\" {...props} />;\n}\n\nfunction DialogContent({\n\tchildren,\n\tclassName,\n\tshowCloseButton = true,\n\t...props\n}: React.ComponentProps<typeof DialogPrimitive.Content> & {\n\tshowCloseButton?: boolean;\n}) {\n\treturn (\n\t\t<DialogPortal>\n\t\t\t<DialogOverlay />\n\t\t\t<DialogPrimitive.Content\n\t\t\t\tclassName={cn(\n\t\t\t\t\t\"bg-background data-open:animate-in data-closed:animate-out data-closed:fade-out-0 data-open:fade-in-0 data-closed:zoom-out-95 data-open:zoom-in-95 ring-foreground/10 grid max-w-[calc(100%-2rem)] gap-4 rounded-xl p-4 text-sm ring-1 duration-100 sm:max-w-sm fixed top-1/2 left-1/2 z-50 w-full -translate-x-1/2 -translate-y-1/2 outline-none\",\n\t\t\t\t\tclassName,\n\t\t\t\t)}\n\t\t\t\tdata-slot=\"dialog-content\"\n\t\t\t\t{...props}\n\t\t\t>\n\t\t\t\t{children}\n\t\t\t\t{showCloseButton && (\n\t\t\t\t\t<DialogPrimitive.Close asChild data-slot=\"dialog-close\">\n\t\t\t\t\t\t<Button className=\"absolute top-2 right-2\" size=\"icon-sm\" variant=\"ghost\">\n\t\t\t\t\t\t\t<XIcon />\n\t\t\t\t\t\t\t<span className=\"sr-only\">Close</span>\n\t\t\t\t\t\t</Button>\n\t\t\t\t\t</DialogPrimitive.Close>\n\t\t\t\t)}\n\t\t\t</DialogPrimitive.Content>\n\t\t</DialogPortal>\n\t);\n}\n\nfunction DialogDescription({\n\tclassName,\n\t...props\n}: React.ComponentProps<typeof DialogPrimitive.Description>) {\n\treturn (\n\t\t<DialogPrimitive.Description\n\t\t\tclassName={cn(\n\t\t\t\t\"text-muted-foreground *:[a]:hover:text-foreground text-sm *:[a]:underline *:[a]:underline-offset-3\",\n\t\t\t\tclassName,\n\t\t\t)}\n\t\t\tdata-slot=\"dialog-description\"\n\t\t\t{...props}\n\t\t/>\n\t);\n}\n\nfunction DialogFooter({\n\tchildren,\n\tclassName,\n\tshowCloseButton = false,\n\t...props\n}: React.ComponentProps<\"div\"> & {\n\tshowCloseButton?: boolean;\n}) {\n\treturn (\n\t\t<div\n\t\t\tclassName={cn(\n\t\t\t\t\"bg-muted/50 -mx-4 -mb-4 rounded-b-xl border-t p-4 flex flex-col-reverse gap-2 sm:flex-row sm:justify-end\",\n\t\t\t\tclassName,\n\t\t\t)}\n\t\t\tdata-slot=\"dialog-footer\"\n\t\t\t{...props}\n\t\t>\n\t\t\t{children}\n\t\t\t{showCloseButton && (\n\t\t\t\t<DialogPrimitive.Close asChild>\n\t\t\t\t\t<Button variant=\"outline\">Close</Button>\n\t\t\t\t</DialogPrimitive.Close>\n\t\t\t)}\n\t\t</div>\n\t);\n}\n\nfunction DialogHeader({ className, ...props }: React.ComponentProps<\"div\">) {\n\treturn (\n\t\t<div className={cn(\"gap-2 flex flex-col\", className)} data-slot=\"dialog-header\" {...props} />\n\t);\n}\n\nfunction DialogOverlay({\n\tclassName,\n\t...props\n}: React.ComponentProps<typeof DialogPrimitive.Overlay>) {\n\treturn (\n\t\t<DialogPrimitive.Overlay\n\t\t\tclassName={cn(\n\t\t\t\t\"data-open:animate-in data-closed:animate-out data-closed:fade-out-0 data-open:fade-in-0 bg-black/10 duration-100 supports-backdrop-filter:backdrop-blur-xs fixed inset-0 isolate z-50\",\n\t\t\t\tclassName,\n\t\t\t)}\n\t\t\tdata-slot=\"dialog-overlay\"\n\t\t\t{...props}\n\t\t/>\n\t);\n}\n\nfunction DialogPortal({ ...props }: React.ComponentProps<typeof DialogPrimitive.Portal>) {\n\treturn <DialogPrimitive.Portal data-slot=\"dialog-portal\" {...props} />;\n}\n\nfunction DialogTitle({ className, ...props }: React.ComponentProps<typeof DialogPrimitive.Title>) {\n\treturn (\n\t\t<DialogPrimitive.Title\n\t\t\tclassName={cn(\"text-base leading-none font-medium\", className)}\n\t\t\tdata-slot=\"dialog-title\"\n\t\t\t{...props}\n\t\t/>\n\t);\n}\n\nfunction DialogTrigger({ ...props }: React.ComponentProps<typeof DialogPrimitive.Trigger>) {\n\treturn <DialogPrimitive.Trigger data-slot=\"dialog-trigger\" {...props} />;\n}\n\nexport {\n\tDialog,\n\tDialogClose,\n\tDialogContent,\n\tDialogDescription,\n\tDialogFooter,\n\tDialogHeader,\n\tDialogOverlay,\n\tDialogPortal,\n\tDialogTitle,\n\tDialogTrigger,\n};\n"],"mappings":";;;;;;;AAyBA,SAAS,OAAO,EAAE,GAAG,SAA4D;AAChF,QAAO,oBAACA,SAAgB,MAAjB;EAAsB,aAAU;EAAS,GAAI;EAAS,CAAA;;AAG9D,SAAS,YAAY,EAAE,GAAG,SAA6D;AACtF,QAAO,oBAACA,SAAgB,OAAjB;EAAuB,aAAU;EAAe,GAAI;EAAS,CAAA;;AAGrE,SAAS,cAAc,EACtB,UACA,WACA,kBAAkB,MAClB,GAAG,SAGD;AACF,QACC,qBAAC,cAAD,EAAA,UAAA,CACC,oBAAC,eAAD,EAAiB,CAAA,EACjB,qBAACA,SAAgB,SAAjB;EACC,WAAW,GACV,qVACA,UACA;EACD,aAAU;EACV,GAAI;YANL,CAQE,UAC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AACA,SAAgB,SAAjB;EAAyB,aAAU;EAAiB,GAAI;EAAS,CAAA"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import { Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger } from "./dialog.js";
|
|
2
|
+
export { Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger };
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import { Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger } from "./dialog.js";
|
|
2
|
+
export { Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger };
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { Direction } from "radix-ui";
|
|
2
|
+
import * as react_jsx_runtime108 from "react/jsx-runtime";
|
|
3
|
+
import * as React from "react";
|
|
4
|
+
|
|
5
|
+
//#region src/components/direction/direction.d.ts
|
|
6
|
+
|
|
7
|
+
declare function DirectionProvider({
|
|
8
|
+
children,
|
|
9
|
+
dir,
|
|
10
|
+
direction
|
|
11
|
+
}: React.ComponentProps<typeof Direction.DirectionProvider> & {
|
|
12
|
+
direction?: React.ComponentProps<typeof Direction.DirectionProvider>["dir"];
|
|
13
|
+
}): react_jsx_runtime108.JSX.Element;
|
|
14
|
+
declare const useDirection: typeof Direction.useDirection;
|
|
15
|
+
//#endregion
|
|
16
|
+
export { DirectionProvider, useDirection };
|
|
17
|
+
//# sourceMappingURL=direction.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"direction.d.ts","names":[],"sources":["../../../src/components/direction/direction.tsx"],"sourcesContent":[],"mappings":";;;;;;iBAqBS,iBAAA;;;;GAIN,KAAA,CAAM,sBAAsB,SAAA,CAAU;cAC5B,KAAA,CAAM,sBAAsB,SAAA,CAAU;IAClD,oBAAA,CAAA,GAAA,CAAA;cAMK,qBAAY,SAAA,CAAA"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { Direction } from "radix-ui";
|
|
3
|
+
import { jsx } from "react/jsx-runtime";
|
|
4
|
+
//#region src/components/direction/direction.tsx
|
|
5
|
+
/**
|
|
6
|
+
* Copyright 2026 ResQ
|
|
7
|
+
*
|
|
8
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
9
|
+
* you may not use this file except in compliance with the License.
|
|
10
|
+
* You may obtain a copy of the License at
|
|
11
|
+
*
|
|
12
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
13
|
+
*
|
|
14
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
15
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
16
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
17
|
+
* See the License for the specific language governing permissions and
|
|
18
|
+
* limitations under the License.
|
|
19
|
+
*/
|
|
20
|
+
function DirectionProvider({ children, dir, direction }) {
|
|
21
|
+
return /* @__PURE__ */ jsx(Direction.DirectionProvider, {
|
|
22
|
+
dir: direction ?? dir,
|
|
23
|
+
children
|
|
24
|
+
});
|
|
25
|
+
}
|
|
26
|
+
const useDirection = Direction.useDirection;
|
|
27
|
+
//#endregion
|
|
28
|
+
export { DirectionProvider, useDirection };
|
|
29
|
+
|
|
30
|
+
//# sourceMappingURL=direction.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"direction.js","names":[],"sources":["../../../src/components/direction/direction.tsx"],"sourcesContent":["/**\n * Copyright 2026 ResQ\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n\"use client\";\n\nimport { Direction } from \"radix-ui\";\nimport type * as React from \"react\";\n\nfunction DirectionProvider({\n\tchildren,\n\tdir,\n\tdirection,\n}: React.ComponentProps<typeof Direction.DirectionProvider> & {\n\tdirection?: React.ComponentProps<typeof Direction.DirectionProvider>[\"dir\"];\n}) {\n\treturn (\n\t\t<Direction.DirectionProvider dir={direction ?? dir}>{children}</Direction.DirectionProvider>\n\t);\n}\n\nconst useDirection = Direction.useDirection;\n\nexport { DirectionProvider, useDirection };\n"],"mappings":";;;;;;;;;;;;;;;;;;;AAqBA,SAAS,kBAAkB,EAC1B,UACA,KACA,aAGE;AACF,QACC,oBAAC,UAAU,mBAAX;EAA6B,KAAK,aAAa;EAAM;EAAuC,CAAA;;AAI9F,MAAM,eAAe,UAAU"}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import * as react_jsx_runtime109 from "react/jsx-runtime";
|
|
2
|
+
import * as React from "react";
|
|
3
|
+
import { Drawer as Drawer$1 } from "vaul";
|
|
4
|
+
|
|
5
|
+
//#region src/components/drawer/drawer.d.ts
|
|
6
|
+
|
|
7
|
+
declare function Drawer({
|
|
8
|
+
...props
|
|
9
|
+
}: React.ComponentProps<typeof Drawer$1.Root>): react_jsx_runtime109.JSX.Element;
|
|
10
|
+
declare function DrawerClose({
|
|
11
|
+
...props
|
|
12
|
+
}: React.ComponentProps<typeof Drawer$1.Close>): react_jsx_runtime109.JSX.Element;
|
|
13
|
+
declare function DrawerContent({
|
|
14
|
+
children,
|
|
15
|
+
className,
|
|
16
|
+
...props
|
|
17
|
+
}: React.ComponentProps<typeof Drawer$1.Content>): react_jsx_runtime109.JSX.Element;
|
|
18
|
+
declare function DrawerDescription({
|
|
19
|
+
className,
|
|
20
|
+
...props
|
|
21
|
+
}: React.ComponentProps<typeof Drawer$1.Description>): react_jsx_runtime109.JSX.Element;
|
|
22
|
+
declare function DrawerFooter({
|
|
23
|
+
className,
|
|
24
|
+
...props
|
|
25
|
+
}: React.ComponentProps<"div">): react_jsx_runtime109.JSX.Element;
|
|
26
|
+
declare function DrawerHeader({
|
|
27
|
+
className,
|
|
28
|
+
...props
|
|
29
|
+
}: React.ComponentProps<"div">): react_jsx_runtime109.JSX.Element;
|
|
30
|
+
declare function DrawerOverlay({
|
|
31
|
+
className,
|
|
32
|
+
...props
|
|
33
|
+
}: React.ComponentProps<typeof Drawer$1.Overlay>): react_jsx_runtime109.JSX.Element;
|
|
34
|
+
declare function DrawerPortal({
|
|
35
|
+
...props
|
|
36
|
+
}: React.ComponentProps<typeof Drawer$1.Portal>): react_jsx_runtime109.JSX.Element;
|
|
37
|
+
declare function DrawerTitle({
|
|
38
|
+
className,
|
|
39
|
+
...props
|
|
40
|
+
}: React.ComponentProps<typeof Drawer$1.Title>): react_jsx_runtime109.JSX.Element;
|
|
41
|
+
declare function DrawerTrigger({
|
|
42
|
+
...props
|
|
43
|
+
}: React.ComponentProps<typeof Drawer$1.Trigger>): react_jsx_runtime109.JSX.Element;
|
|
44
|
+
//#endregion
|
|
45
|
+
export { Drawer, DrawerClose, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerOverlay, DrawerPortal, DrawerTitle, DrawerTrigger };
|
|
46
|
+
//# sourceMappingURL=drawer.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"drawer.d.ts","names":[],"sources":["../../../src/components/drawer/drawer.tsx"],"sourcesContent":[],"mappings":";;;;;;iBAuBS,MAAA,CAUR;EAAA,GAAA;AAAA,CAAA,EAV6B,KAAA,CAAM,cAUnC,CAAA,OAVyD,QAAA,CAAgB,IAUzE,CAAA,CAAA,EAV8E,oBAAA,CAAA,GAAA,CAAA,OAU9E;iBANQ,WAAA,CAQsC;EAAA,GAAA;AAAA,CAAA,EARZ,KAAA,CAAM,cAQM,CAAA,OARgB,QAAA,CAA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CAAA,OArDvF;iBA+DA,aAAA,CA/DkD;EAAA,GAAA;AAAA,CAAA,EA+DtB,KAAA,CAAM,cA/DgB,CAAA,OA+DM,QAAA,CAAgB,OA/DtB,CAAA,CAAA,EA+D8B,oBAAA,CAAA,GAAA,CAAA,OA/D9B"}
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { cn } from "../../lib/utils.js";
|
|
3
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
4
|
+
import { Drawer as Drawer$1 } from "vaul";
|
|
5
|
+
//#region src/components/drawer/drawer.tsx
|
|
6
|
+
/**
|
|
7
|
+
* Copyright 2026 ResQ
|
|
8
|
+
*
|
|
9
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
10
|
+
* you may not use this file except in compliance with the License.
|
|
11
|
+
* You may obtain a copy of the License at
|
|
12
|
+
*
|
|
13
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
14
|
+
*
|
|
15
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
16
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
17
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
18
|
+
* See the License for the specific language governing permissions and
|
|
19
|
+
* limitations under the License.
|
|
20
|
+
*/
|
|
21
|
+
function Drawer({ ...props }) {
|
|
22
|
+
return /* @__PURE__ */ jsx(Drawer$1.Root, {
|
|
23
|
+
"data-slot": "drawer",
|
|
24
|
+
...props
|
|
25
|
+
});
|
|
26
|
+
}
|
|
27
|
+
function DrawerClose({ ...props }) {
|
|
28
|
+
return /* @__PURE__ */ jsx(Drawer$1.Close, {
|
|
29
|
+
"data-slot": "drawer-close",
|
|
30
|
+
...props
|
|
31
|
+
});
|
|
32
|
+
}
|
|
33
|
+
function DrawerContent({ children, className, ...props }) {
|
|
34
|
+
return /* @__PURE__ */ jsxs(DrawerPortal, {
|
|
35
|
+
"data-slot": "drawer-portal",
|
|
36
|
+
children: [/* @__PURE__ */ jsx(DrawerOverlay, {}), /* @__PURE__ */ jsxs(Drawer$1.Content, {
|
|
37
|
+
className: cn("bg-background flex h-auto flex-col text-sm data-[vaul-drawer-direction=bottom]:inset-x-0 data-[vaul-drawer-direction=bottom]:bottom-0 data-[vaul-drawer-direction=bottom]:mt-24 data-[vaul-drawer-direction=bottom]:max-h-[80vh] data-[vaul-drawer-direction=bottom]:rounded-t-xl data-[vaul-drawer-direction=bottom]:border-t data-[vaul-drawer-direction=left]:inset-y-0 data-[vaul-drawer-direction=left]:left-0 data-[vaul-drawer-direction=left]:w-3/4 data-[vaul-drawer-direction=left]:rounded-r-xl data-[vaul-drawer-direction=left]:border-r data-[vaul-drawer-direction=right]:inset-y-0 data-[vaul-drawer-direction=right]:right-0 data-[vaul-drawer-direction=right]:w-3/4 data-[vaul-drawer-direction=right]:rounded-l-xl data-[vaul-drawer-direction=right]:border-l data-[vaul-drawer-direction=top]:inset-x-0 data-[vaul-drawer-direction=top]:top-0 data-[vaul-drawer-direction=top]:mb-24 data-[vaul-drawer-direction=top]:max-h-[80vh] data-[vaul-drawer-direction=top]:rounded-b-xl data-[vaul-drawer-direction=top]:border-b data-[vaul-drawer-direction=left]:sm:max-w-sm data-[vaul-drawer-direction=right]:sm:max-w-sm group/drawer-content fixed z-50", className),
|
|
38
|
+
"data-slot": "drawer-content",
|
|
39
|
+
...props,
|
|
40
|
+
children: [/* @__PURE__ */ jsx("div", { className: "bg-muted mx-auto mt-4 hidden h-1 w-[100px] shrink-0 rounded-full group-data-[vaul-drawer-direction=bottom]/drawer-content:block" }), children]
|
|
41
|
+
})]
|
|
42
|
+
});
|
|
43
|
+
}
|
|
44
|
+
function DrawerDescription({ className, ...props }) {
|
|
45
|
+
return /* @__PURE__ */ jsx(Drawer$1.Description, {
|
|
46
|
+
className: cn("text-muted-foreground text-sm", className),
|
|
47
|
+
"data-slot": "drawer-description",
|
|
48
|
+
...props
|
|
49
|
+
});
|
|
50
|
+
}
|
|
51
|
+
function DrawerFooter({ className, ...props }) {
|
|
52
|
+
return /* @__PURE__ */ jsx("div", {
|
|
53
|
+
className: cn("gap-2 p-4 mt-auto flex flex-col", className),
|
|
54
|
+
"data-slot": "drawer-footer",
|
|
55
|
+
...props
|
|
56
|
+
});
|
|
57
|
+
}
|
|
58
|
+
function DrawerHeader({ className, ...props }) {
|
|
59
|
+
return /* @__PURE__ */ jsx("div", {
|
|
60
|
+
className: cn("gap-0.5 p-4 group-data-[vaul-drawer-direction=bottom]/drawer-content:text-center group-data-[vaul-drawer-direction=top]/drawer-content:text-center md:gap-0.5 md:text-left flex flex-col", className),
|
|
61
|
+
"data-slot": "drawer-header",
|
|
62
|
+
...props
|
|
63
|
+
});
|
|
64
|
+
}
|
|
65
|
+
function DrawerOverlay({ className, ...props }) {
|
|
66
|
+
return /* @__PURE__ */ jsx(Drawer$1.Overlay, {
|
|
67
|
+
className: cn("data-open:animate-in data-closed:animate-out data-closed:fade-out-0 data-open:fade-in-0 bg-black/10 supports-backdrop-filter:backdrop-blur-xs fixed inset-0 z-50", className),
|
|
68
|
+
"data-slot": "drawer-overlay",
|
|
69
|
+
...props
|
|
70
|
+
});
|
|
71
|
+
}
|
|
72
|
+
function DrawerPortal({ ...props }) {
|
|
73
|
+
return /* @__PURE__ */ jsx(Drawer$1.Portal, {
|
|
74
|
+
"data-slot": "drawer-portal",
|
|
75
|
+
...props
|
|
76
|
+
});
|
|
77
|
+
}
|
|
78
|
+
function DrawerTitle({ className, ...props }) {
|
|
79
|
+
return /* @__PURE__ */ jsx(Drawer$1.Title, {
|
|
80
|
+
className: cn("text-foreground text-base font-medium", className),
|
|
81
|
+
"data-slot": "drawer-title",
|
|
82
|
+
...props
|
|
83
|
+
});
|
|
84
|
+
}
|
|
85
|
+
function DrawerTrigger({ ...props }) {
|
|
86
|
+
return /* @__PURE__ */ jsx(Drawer$1.Trigger, {
|
|
87
|
+
"data-slot": "drawer-trigger",
|
|
88
|
+
...props
|
|
89
|
+
});
|
|
90
|
+
}
|
|
91
|
+
//#endregion
|
|
92
|
+
export { Drawer, DrawerClose, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerOverlay, DrawerPortal, DrawerTitle, DrawerTrigger };
|
|
93
|
+
|
|
94
|
+
//# sourceMappingURL=drawer.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"drawer.js","names":["DrawerPrimitive"],"sources":["../../../src/components/drawer/drawer.tsx"],"sourcesContent":["/**\n * Copyright 2026 ResQ\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n\"use client\";\n\nimport type * as React from \"react\";\nimport { Drawer as DrawerPrimitive } from \"vaul\";\n\nimport { cn } from \"../../lib/utils.js\";\n\nfunction Drawer({ ...props }: React.ComponentProps<typeof DrawerPrimitive.Root>) {\n\treturn <DrawerPrimitive.Root data-slot=\"drawer\" {...props} />;\n}\n\nfunction DrawerClose({ ...props }: React.ComponentProps<typeof DrawerPrimitive.Close>) {\n\treturn <DrawerPrimitive.Close data-slot=\"drawer-close\" {...props} />;\n}\n\nfunction DrawerContent({\n\tchildren,\n\tclassName,\n\t...props\n}: React.ComponentProps<typeof DrawerPrimitive.Content>) {\n\treturn (\n\t\t<DrawerPortal data-slot=\"drawer-portal\">\n\t\t\t<DrawerOverlay />\n\t\t\t<DrawerPrimitive.Content\n\t\t\t\tclassName={cn(\n\t\t\t\t\t\"bg-background flex h-auto flex-col text-sm data-[vaul-drawer-direction=bottom]:inset-x-0 data-[vaul-drawer-direction=bottom]:bottom-0 data-[vaul-drawer-direction=bottom]:mt-24 data-[vaul-drawer-direction=bottom]:max-h-[80vh] data-[vaul-drawer-direction=bottom]:rounded-t-xl data-[vaul-drawer-direction=bottom]:border-t data-[vaul-drawer-direction=left]:inset-y-0 data-[vaul-drawer-direction=left]:left-0 data-[vaul-drawer-direction=left]:w-3/4 data-[vaul-drawer-direction=left]:rounded-r-xl data-[vaul-drawer-direction=left]:border-r data-[vaul-drawer-direction=right]:inset-y-0 data-[vaul-drawer-direction=right]:right-0 data-[vaul-drawer-direction=right]:w-3/4 data-[vaul-drawer-direction=right]:rounded-l-xl data-[vaul-drawer-direction=right]:border-l data-[vaul-drawer-direction=top]:inset-x-0 data-[vaul-drawer-direction=top]:top-0 data-[vaul-drawer-direction=top]:mb-24 data-[vaul-drawer-direction=top]:max-h-[80vh] data-[vaul-drawer-direction=top]:rounded-b-xl data-[vaul-drawer-direction=top]:border-b data-[vaul-drawer-direction=left]:sm:max-w-sm data-[vaul-drawer-direction=right]:sm:max-w-sm group/drawer-content fixed z-50\",\n\t\t\t\t\tclassName,\n\t\t\t\t)}\n\t\t\t\tdata-slot=\"drawer-content\"\n\t\t\t\t{...props}\n\t\t\t>\n\t\t\t\t<div className=\"bg-muted mx-auto mt-4 hidden h-1 w-[100px] shrink-0 rounded-full group-data-[vaul-drawer-direction=bottom]/drawer-content:block\" />\n\t\t\t\t{children}\n\t\t\t</DrawerPrimitive.Content>\n\t\t</DrawerPortal>\n\t);\n}\n\nfunction DrawerDescription({\n\tclassName,\n\t...props\n}: React.ComponentProps<typeof DrawerPrimitive.Description>) {\n\treturn (\n\t\t<DrawerPrimitive.Description\n\t\t\tclassName={cn(\"text-muted-foreground text-sm\", className)}\n\t\t\tdata-slot=\"drawer-description\"\n\t\t\t{...props}\n\t\t/>\n\t);\n}\n\nfunction DrawerFooter({ className, ...props }: React.ComponentProps<\"div\">) {\n\treturn (\n\t\t<div\n\t\t\tclassName={cn(\"gap-2 p-4 mt-auto flex flex-col\", className)}\n\t\t\tdata-slot=\"drawer-footer\"\n\t\t\t{...props}\n\t\t/>\n\t);\n}\n\nfunction DrawerHeader({ className, ...props }: React.ComponentProps<\"div\">) {\n\treturn (\n\t\t<div\n\t\t\tclassName={cn(\n\t\t\t\t\"gap-0.5 p-4 group-data-[vaul-drawer-direction=bottom]/drawer-content:text-center group-data-[vaul-drawer-direction=top]/drawer-content:text-center md:gap-0.5 md:text-left flex flex-col\",\n\t\t\t\tclassName,\n\t\t\t)}\n\t\t\tdata-slot=\"drawer-header\"\n\t\t\t{...props}\n\t\t/>\n\t);\n}\n\nfunction DrawerOverlay({\n\tclassName,\n\t...props\n}: React.ComponentProps<typeof DrawerPrimitive.Overlay>) {\n\treturn (\n\t\t<DrawerPrimitive.Overlay\n\t\t\tclassName={cn(\n\t\t\t\t\"data-open:animate-in data-closed:animate-out data-closed:fade-out-0 data-open:fade-in-0 bg-black/10 supports-backdrop-filter:backdrop-blur-xs fixed inset-0 z-50\",\n\t\t\t\tclassName,\n\t\t\t)}\n\t\t\tdata-slot=\"drawer-overlay\"\n\t\t\t{...props}\n\t\t/>\n\t);\n}\n\nfunction DrawerPortal({ ...props }: React.ComponentProps<typeof DrawerPrimitive.Portal>) {\n\treturn <DrawerPrimitive.Portal data-slot=\"drawer-portal\" {...props} />;\n}\n\nfunction DrawerTitle({ className, ...props }: React.ComponentProps<typeof DrawerPrimitive.Title>) {\n\treturn (\n\t\t<DrawerPrimitive.Title\n\t\t\tclassName={cn(\"text-foreground text-base font-medium\", className)}\n\t\t\tdata-slot=\"drawer-title\"\n\t\t\t{...props}\n\t\t/>\n\t);\n}\n\nfunction DrawerTrigger({ ...props }: React.ComponentProps<typeof DrawerPrimitive.Trigger>) {\n\treturn <DrawerPrimitive.Trigger data-slot=\"drawer-trigger\" {...props} />;\n}\n\nexport {\n\tDrawer,\n\tDrawerClose,\n\tDrawerContent,\n\tDrawerDescription,\n\tDrawerFooter,\n\tDrawerHeader,\n\tDrawerOverlay,\n\tDrawerPortal,\n\tDrawerTitle,\n\tDrawerTrigger,\n};\n"],"mappings":";;;;;;;;;;;;;;;;;;;;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WAAW,GAAG,yCAAyC,UAAU;EACjE,aAAU;EACV,GAAI;EACH,CAAA;;AAIJ,SAAS,cAAc,EAAE,GAAG,SAA+D;AAC1F,QAAO,oBAACA,SAAgB,SAAjB;EAAyB,aAAU;EAAiB,GAAI;EAAS,CAAA"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import { Drawer, DrawerClose, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerOverlay, DrawerPortal, DrawerTitle, DrawerTrigger } from "./drawer.js";
|
|
2
|
+
export { Drawer, DrawerClose, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerOverlay, DrawerPortal, DrawerTitle, DrawerTrigger };
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import { Drawer, DrawerClose, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerOverlay, DrawerPortal, DrawerTitle, DrawerTrigger } from "./drawer.js";
|
|
2
|
+
export { Drawer, DrawerClose, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerOverlay, DrawerPortal, DrawerTitle, DrawerTrigger };
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
import { DropdownMenu as DropdownMenu$1 } from "radix-ui";
|
|
2
|
+
import * as react_jsx_runtime120 from "react/jsx-runtime";
|
|
3
|
+
import * as React from "react";
|
|
4
|
+
|
|
5
|
+
//#region src/components/dropdown-menu/dropdown-menu.d.ts
|
|
6
|
+
|
|
7
|
+
declare function DropdownMenu({
|
|
8
|
+
...props
|
|
9
|
+
}: React.ComponentProps<typeof DropdownMenu$1.Root>): react_jsx_runtime120.JSX.Element;
|
|
10
|
+
declare function DropdownMenuCheckboxItem({
|
|
11
|
+
checked,
|
|
12
|
+
children,
|
|
13
|
+
className,
|
|
14
|
+
...props
|
|
15
|
+
}: React.ComponentProps<typeof DropdownMenu$1.CheckboxItem>): react_jsx_runtime120.JSX.Element;
|
|
16
|
+
declare function DropdownMenuContent({
|
|
17
|
+
align,
|
|
18
|
+
className,
|
|
19
|
+
sideOffset,
|
|
20
|
+
...props
|
|
21
|
+
}: React.ComponentProps<typeof DropdownMenu$1.Content>): react_jsx_runtime120.JSX.Element;
|
|
22
|
+
declare function DropdownMenuGroup({
|
|
23
|
+
...props
|
|
24
|
+
}: React.ComponentProps<typeof DropdownMenu$1.Group>): react_jsx_runtime120.JSX.Element;
|
|
25
|
+
declare function DropdownMenuItem({
|
|
26
|
+
className,
|
|
27
|
+
inset,
|
|
28
|
+
variant,
|
|
29
|
+
...props
|
|
30
|
+
}: React.ComponentProps<typeof DropdownMenu$1.Item> & {
|
|
31
|
+
inset?: boolean;
|
|
32
|
+
variant?: "default" | "destructive";
|
|
33
|
+
}): react_jsx_runtime120.JSX.Element;
|
|
34
|
+
declare function DropdownMenuLabel({
|
|
35
|
+
className,
|
|
36
|
+
inset,
|
|
37
|
+
...props
|
|
38
|
+
}: React.ComponentProps<typeof DropdownMenu$1.Label> & {
|
|
39
|
+
inset?: boolean;
|
|
40
|
+
}): react_jsx_runtime120.JSX.Element;
|
|
41
|
+
declare function DropdownMenuPortal({
|
|
42
|
+
...props
|
|
43
|
+
}: React.ComponentProps<typeof DropdownMenu$1.Portal>): react_jsx_runtime120.JSX.Element;
|
|
44
|
+
declare function DropdownMenuRadioGroup({
|
|
45
|
+
...props
|
|
46
|
+
}: React.ComponentProps<typeof DropdownMenu$1.RadioGroup>): react_jsx_runtime120.JSX.Element;
|
|
47
|
+
declare function DropdownMenuRadioItem({
|
|
48
|
+
children,
|
|
49
|
+
className,
|
|
50
|
+
...props
|
|
51
|
+
}: React.ComponentProps<typeof DropdownMenu$1.RadioItem>): react_jsx_runtime120.JSX.Element;
|
|
52
|
+
declare function DropdownMenuSeparator({
|
|
53
|
+
className,
|
|
54
|
+
...props
|
|
55
|
+
}: React.ComponentProps<typeof DropdownMenu$1.Separator>): react_jsx_runtime120.JSX.Element;
|
|
56
|
+
declare function DropdownMenuShortcut({
|
|
57
|
+
className,
|
|
58
|
+
...props
|
|
59
|
+
}: React.ComponentProps<"span">): react_jsx_runtime120.JSX.Element;
|
|
60
|
+
declare function DropdownMenuSub({
|
|
61
|
+
...props
|
|
62
|
+
}: React.ComponentProps<typeof DropdownMenu$1.Sub>): react_jsx_runtime120.JSX.Element;
|
|
63
|
+
declare function DropdownMenuSubContent({
|
|
64
|
+
className,
|
|
65
|
+
...props
|
|
66
|
+
}: React.ComponentProps<typeof DropdownMenu$1.SubContent>): react_jsx_runtime120.JSX.Element;
|
|
67
|
+
declare function DropdownMenuSubTrigger({
|
|
68
|
+
children,
|
|
69
|
+
className,
|
|
70
|
+
inset,
|
|
71
|
+
...props
|
|
72
|
+
}: React.ComponentProps<typeof DropdownMenu$1.SubTrigger> & {
|
|
73
|
+
inset?: boolean;
|
|
74
|
+
}): react_jsx_runtime120.JSX.Element;
|
|
75
|
+
declare function DropdownMenuTrigger({
|
|
76
|
+
...props
|
|
77
|
+
}: React.ComponentProps<typeof DropdownMenu$1.Trigger>): react_jsx_runtime120.JSX.Element;
|
|
78
|
+
//#endregion
|
|
79
|
+
export { DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger };
|
|
80
|
+
//# sourceMappingURL=dropdown-menu.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dropdown-menu.d.ts","names":[],"sources":["../../../src/components/dropdown-menu/dropdown-menu.tsx"],"sourcesContent":[],"mappings":";;;;;;iBAwBS,YAAA,CASyD;EAAA,GAAA;AAAA,CAAA,EAT9B,KAAA,CAAM,cASwB,CAAA,OATF,cAAA,CAAsB,IASpB,CAAA,CAAA,EATyB,oBAAA,CAAA,GAAA,CAAA,OASzB;AAAA,iBALzD,wBAAA,CA6BmB;EAAA,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GAAA,CAAA,OA/HA;iBAgJQ,mBAAA,CAhJR;EAAA,GAAA;AAAA,CAAA,EAkJE,KAAA,CAAM,cAlJR,CAAA,OAkJ8B,cAAA,CAAsB,OAlJpD,CAAA,CAAA,EAkJ4D,oBAAA,CAAA,GAAA,CAAA,OAlJ5D"}
|
|
@@ -0,0 +1,142 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { cn } from "../../lib/utils.js";
|
|
3
|
+
import { CheckIcon, ChevronRightIcon } from "lucide-react";
|
|
4
|
+
import { DropdownMenu as DropdownMenu$1 } from "radix-ui";
|
|
5
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
6
|
+
//#region src/components/dropdown-menu/dropdown-menu.tsx
|
|
7
|
+
/**
|
|
8
|
+
* Copyright 2026 ResQ
|
|
9
|
+
*
|
|
10
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
11
|
+
* you may not use this file except in compliance with the License.
|
|
12
|
+
* You may obtain a copy of the License at
|
|
13
|
+
*
|
|
14
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
15
|
+
*
|
|
16
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
17
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
18
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
19
|
+
* See the License for the specific language governing permissions and
|
|
20
|
+
* limitations under the License.
|
|
21
|
+
*/
|
|
22
|
+
function DropdownMenu({ ...props }) {
|
|
23
|
+
return /* @__PURE__ */ jsx(DropdownMenu$1.Root, {
|
|
24
|
+
"data-slot": "dropdown-menu",
|
|
25
|
+
...props
|
|
26
|
+
});
|
|
27
|
+
}
|
|
28
|
+
function DropdownMenuCheckboxItem({ checked, children, className, ...props }) {
|
|
29
|
+
return /* @__PURE__ */ jsxs(DropdownMenu$1.CheckboxItem, {
|
|
30
|
+
checked,
|
|
31
|
+
className: cn("focus:bg-accent focus:text-accent-foreground focus:**:text-accent-foreground gap-1.5 rounded-md py-1 pr-8 pl-1.5 text-sm [&_svg:not([class*='size-'])]:size-4 relative flex cursor-default items-center outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0", className),
|
|
32
|
+
"data-slot": "dropdown-menu-checkbox-item",
|
|
33
|
+
...props,
|
|
34
|
+
children: [/* @__PURE__ */ jsx("span", {
|
|
35
|
+
className: "pointer-events-none absolute right-2 flex items-center justify-center",
|
|
36
|
+
"data-slot": "dropdown-menu-checkbox-item-indicator",
|
|
37
|
+
children: /* @__PURE__ */ jsx(DropdownMenu$1.ItemIndicator, { children: /* @__PURE__ */ jsx(CheckIcon, {}) })
|
|
38
|
+
}), children]
|
|
39
|
+
});
|
|
40
|
+
}
|
|
41
|
+
function DropdownMenuContent({ align = "start", className, sideOffset = 4, ...props }) {
|
|
42
|
+
return /* @__PURE__ */ jsx(DropdownMenu$1.Portal, { children: /* @__PURE__ */ jsx(DropdownMenu$1.Content, {
|
|
43
|
+
align,
|
|
44
|
+
className: cn("data-open:animate-in data-closed:animate-out data-closed:fade-out-0 data-open:fade-in-0 data-closed:zoom-out-95 data-open:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 ring-foreground/10 bg-popover text-popover-foreground min-w-32 rounded-lg p-1 shadow-md ring-1 duration-100 z-50 max-h-(--radix-dropdown-menu-content-available-height) w-(--radix-dropdown-menu-trigger-width) origin-(--radix-dropdown-menu-content-transform-origin) overflow-x-hidden overflow-y-auto data-[state=closed]:overflow-hidden", className),
|
|
45
|
+
"data-slot": "dropdown-menu-content",
|
|
46
|
+
sideOffset,
|
|
47
|
+
...props
|
|
48
|
+
}) });
|
|
49
|
+
}
|
|
50
|
+
function DropdownMenuGroup({ ...props }) {
|
|
51
|
+
return /* @__PURE__ */ jsx(DropdownMenu$1.Group, {
|
|
52
|
+
"data-slot": "dropdown-menu-group",
|
|
53
|
+
...props
|
|
54
|
+
});
|
|
55
|
+
}
|
|
56
|
+
function DropdownMenuItem({ className, inset, variant = "default", ...props }) {
|
|
57
|
+
return /* @__PURE__ */ jsx(DropdownMenu$1.Item, {
|
|
58
|
+
className: cn("focus:bg-accent focus:text-accent-foreground data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 dark:data-[variant=destructive]:focus:bg-destructive/20 data-[variant=destructive]:focus:text-destructive data-[variant=destructive]:*:[svg]:text-destructive not-data-[variant=destructive]:focus:**:text-accent-foreground gap-1.5 rounded-md px-1.5 py-1 text-sm [&_svg:not([class*='size-'])]:size-4 group/dropdown-menu-item relative flex cursor-default items-center outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 data-[inset]:pl-8 [&_svg]:pointer-events-none [&_svg]:shrink-0", className),
|
|
59
|
+
"data-inset": inset,
|
|
60
|
+
"data-slot": "dropdown-menu-item",
|
|
61
|
+
"data-variant": variant,
|
|
62
|
+
...props
|
|
63
|
+
});
|
|
64
|
+
}
|
|
65
|
+
function DropdownMenuLabel({ className, inset, ...props }) {
|
|
66
|
+
return /* @__PURE__ */ jsx(DropdownMenu$1.Label, {
|
|
67
|
+
className: cn("text-muted-foreground px-1.5 py-1 text-xs font-medium data-[inset]:pl-8", className),
|
|
68
|
+
"data-inset": inset,
|
|
69
|
+
"data-slot": "dropdown-menu-label",
|
|
70
|
+
...props
|
|
71
|
+
});
|
|
72
|
+
}
|
|
73
|
+
function DropdownMenuPortal({ ...props }) {
|
|
74
|
+
return /* @__PURE__ */ jsx(DropdownMenu$1.Portal, {
|
|
75
|
+
"data-slot": "dropdown-menu-portal",
|
|
76
|
+
...props
|
|
77
|
+
});
|
|
78
|
+
}
|
|
79
|
+
function DropdownMenuRadioGroup({ ...props }) {
|
|
80
|
+
return /* @__PURE__ */ jsx(DropdownMenu$1.RadioGroup, {
|
|
81
|
+
"data-slot": "dropdown-menu-radio-group",
|
|
82
|
+
...props
|
|
83
|
+
});
|
|
84
|
+
}
|
|
85
|
+
function DropdownMenuRadioItem({ children, className, ...props }) {
|
|
86
|
+
return /* @__PURE__ */ jsxs(DropdownMenu$1.RadioItem, {
|
|
87
|
+
className: cn("focus:bg-accent focus:text-accent-foreground focus:**:text-accent-foreground gap-1.5 rounded-md py-1 pr-8 pl-1.5 text-sm [&_svg:not([class*='size-'])]:size-4 relative flex cursor-default items-center outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0", className),
|
|
88
|
+
"data-slot": "dropdown-menu-radio-item",
|
|
89
|
+
...props,
|
|
90
|
+
children: [/* @__PURE__ */ jsx("span", {
|
|
91
|
+
className: "pointer-events-none absolute right-2 flex items-center justify-center",
|
|
92
|
+
"data-slot": "dropdown-menu-radio-item-indicator",
|
|
93
|
+
children: /* @__PURE__ */ jsx(DropdownMenu$1.ItemIndicator, { children: /* @__PURE__ */ jsx(CheckIcon, {}) })
|
|
94
|
+
}), children]
|
|
95
|
+
});
|
|
96
|
+
}
|
|
97
|
+
function DropdownMenuSeparator({ className, ...props }) {
|
|
98
|
+
return /* @__PURE__ */ jsx(DropdownMenu$1.Separator, {
|
|
99
|
+
className: cn("bg-border -mx-1 my-1 h-px", className),
|
|
100
|
+
"data-slot": "dropdown-menu-separator",
|
|
101
|
+
...props
|
|
102
|
+
});
|
|
103
|
+
}
|
|
104
|
+
function DropdownMenuShortcut({ className, ...props }) {
|
|
105
|
+
return /* @__PURE__ */ jsx("span", {
|
|
106
|
+
className: cn("text-muted-foreground group-focus/dropdown-menu-item:text-accent-foreground ml-auto text-xs tracking-widest", className),
|
|
107
|
+
"data-slot": "dropdown-menu-shortcut",
|
|
108
|
+
...props
|
|
109
|
+
});
|
|
110
|
+
}
|
|
111
|
+
function DropdownMenuSub({ ...props }) {
|
|
112
|
+
return /* @__PURE__ */ jsx(DropdownMenu$1.Sub, {
|
|
113
|
+
"data-slot": "dropdown-menu-sub",
|
|
114
|
+
...props
|
|
115
|
+
});
|
|
116
|
+
}
|
|
117
|
+
function DropdownMenuSubContent({ className, ...props }) {
|
|
118
|
+
return /* @__PURE__ */ jsx(DropdownMenu$1.SubContent, {
|
|
119
|
+
className: cn("data-open:animate-in data-closed:animate-out data-closed:fade-out-0 data-open:fade-in-0 data-closed:zoom-out-95 data-open:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 ring-foreground/10 bg-popover text-popover-foreground min-w-[96px] rounded-md p-1 shadow-lg ring-1 duration-100 z-50 origin-(--radix-dropdown-menu-content-transform-origin) overflow-hidden", className),
|
|
120
|
+
"data-slot": "dropdown-menu-sub-content",
|
|
121
|
+
...props
|
|
122
|
+
});
|
|
123
|
+
}
|
|
124
|
+
function DropdownMenuSubTrigger({ children, className, inset, ...props }) {
|
|
125
|
+
return /* @__PURE__ */ jsxs(DropdownMenu$1.SubTrigger, {
|
|
126
|
+
className: cn("focus:bg-accent focus:text-accent-foreground data-open:bg-accent data-open:text-accent-foreground not-data-[variant=destructive]:focus:**:text-accent-foreground gap-1.5 rounded-md px-1.5 py-1 text-sm [&_svg:not([class*='size-'])]:size-4 flex cursor-default items-center outline-hidden select-none data-[inset]:pl-8 [&_svg]:pointer-events-none [&_svg]:shrink-0", className),
|
|
127
|
+
"data-inset": inset,
|
|
128
|
+
"data-slot": "dropdown-menu-sub-trigger",
|
|
129
|
+
...props,
|
|
130
|
+
children: [children, /* @__PURE__ */ jsx(ChevronRightIcon, { className: "ml-auto" })]
|
|
131
|
+
});
|
|
132
|
+
}
|
|
133
|
+
function DropdownMenuTrigger({ ...props }) {
|
|
134
|
+
return /* @__PURE__ */ jsx(DropdownMenu$1.Trigger, {
|
|
135
|
+
"data-slot": "dropdown-menu-trigger",
|
|
136
|
+
...props
|
|
137
|
+
});
|
|
138
|
+
}
|
|
139
|
+
//#endregion
|
|
140
|
+
export { DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger };
|
|
141
|
+
|
|
142
|
+
//# sourceMappingURL=dropdown-menu.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dropdown-menu.js","names":["DropdownMenuPrimitive"],"sources":["../../../src/components/dropdown-menu/dropdown-menu.tsx"],"sourcesContent":["/**\n * Copyright 2026 ResQ\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n\"use client\";\n\nimport { CheckIcon, ChevronRightIcon } from \"lucide-react\";\nimport { DropdownMenu as DropdownMenuPrimitive } from \"radix-ui\";\nimport type * as React from \"react\";\n\nimport { cn } from \"../../lib/utils.js\";\n\nfunction DropdownMenu({ ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.Root>) {\n\treturn <DropdownMenuPrimitive.Root data-slot=\"dropdown-menu\" {...props} />;\n}\n\nfunction DropdownMenuCheckboxItem({\n\tchecked,\n\tchildren,\n\tclassName,\n\t...props\n}: React.ComponentProps<typeof DropdownMenuPrimitive.CheckboxItem>) {\n\treturn (\n\t\t<DropdownMenuPrimitive.CheckboxItem\n\t\t\tchecked={checked}\n\t\t\tclassName={cn(\n\t\t\t\t\"focus:bg-accent focus:text-accent-foreground focus:**:text-accent-foreground gap-1.5 rounded-md py-1 pr-8 pl-1.5 text-sm [&_svg:not([class*='size-'])]:size-4 relative flex cursor-default items-center outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0\",\n\t\t\t\tclassName,\n\t\t\t)}\n\t\t\tdata-slot=\"dropdown-menu-checkbox-item\"\n\t\t\t{...props}\n\t\t>\n\t\t\t<span\n\t\t\t\tclassName=\"pointer-events-none absolute right-2 flex items-center justify-center\"\n\t\t\t\tdata-slot=\"dropdown-menu-checkbox-item-indicator\"\n\t\t\t>\n\t\t\t\t<DropdownMenuPrimitive.ItemIndicator>\n\t\t\t\t\t<CheckIcon />\n\t\t\t\t</DropdownMenuPrimitive.ItemIndicator>\n\t\t\t</span>\n\t\t\t{children}\n\t\t</DropdownMenuPrimitive.CheckboxItem>\n\t);\n}\n\nfunction DropdownMenuContent({\n\talign = \"start\",\n\tclassName,\n\tsideOffset = 4,\n\t...props\n}: React.ComponentProps<typeof DropdownMenuPrimitive.Content>) {\n\treturn (\n\t\t<DropdownMenuPrimitive.Portal>\n\t\t\t<DropdownMenuPrimitive.Content\n\t\t\t\talign={align}\n\t\t\t\tclassName={cn(\n\t\t\t\t\t\"data-open:animate-in data-closed:animate-out data-closed:fade-out-0 data-open:fade-in-0 data-closed:zoom-out-95 data-open:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 ring-foreground/10 bg-popover text-popover-foreground min-w-32 rounded-lg p-1 shadow-md ring-1 duration-100 z-50 max-h-(--radix-dropdown-menu-content-available-height) w-(--radix-dropdown-menu-trigger-width) origin-(--radix-dropdown-menu-content-transform-origin) overflow-x-hidden overflow-y-auto data-[state=closed]:overflow-hidden\",\n\t\t\t\t\tclassName,\n\t\t\t\t)}\n\t\t\t\tdata-slot=\"dropdown-menu-content\"\n\t\t\t\tsideOffset={sideOffset}\n\t\t\t\t{...props}\n\t\t\t/>\n\t\t</DropdownMenuPrimitive.Portal>\n\t);\n}\n\nfunction DropdownMenuGroup({ ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.Group>) {\n\treturn <DropdownMenuPrimitive.Group data-slot=\"dropdown-menu-group\" {...props} />;\n}\n\nfunction DropdownMenuItem({\n\tclassName,\n\tinset,\n\tvariant = \"default\",\n\t...props\n}: React.ComponentProps<typeof DropdownMenuPrimitive.Item> & {\n\tinset?: boolean;\n\tvariant?: \"default\" | \"destructive\";\n}) {\n\treturn (\n\t\t<DropdownMenuPrimitive.Item\n\t\t\tclassName={cn(\n\t\t\t\t\"focus:bg-accent focus:text-accent-foreground data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 dark:data-[variant=destructive]:focus:bg-destructive/20 data-[variant=destructive]:focus:text-destructive data-[variant=destructive]:*:[svg]:text-destructive not-data-[variant=destructive]:focus:**:text-accent-foreground gap-1.5 rounded-md px-1.5 py-1 text-sm [&_svg:not([class*='size-'])]:size-4 group/dropdown-menu-item relative flex cursor-default items-center outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 data-[inset]:pl-8 [&_svg]:pointer-events-none [&_svg]:shrink-0\",\n\t\t\t\tclassName,\n\t\t\t)}\n\t\t\tdata-inset={inset}\n\t\t\tdata-slot=\"dropdown-menu-item\"\n\t\t\tdata-variant={variant}\n\t\t\t{...props}\n\t\t/>\n\t);\n}\n\nfunction DropdownMenuLabel({\n\tclassName,\n\tinset,\n\t...props\n}: React.ComponentProps<typeof DropdownMenuPrimitive.Label> & {\n\tinset?: boolean;\n}) {\n\treturn (\n\t\t<DropdownMenuPrimitive.Label\n\t\t\tclassName={cn(\n\t\t\t\t\"text-muted-foreground px-1.5 py-1 text-xs font-medium data-[inset]:pl-8\",\n\t\t\t\tclassName,\n\t\t\t)}\n\t\t\tdata-inset={inset}\n\t\t\tdata-slot=\"dropdown-menu-label\"\n\t\t\t{...props}\n\t\t/>\n\t);\n}\n\nfunction DropdownMenuPortal({\n\t...props\n}: React.ComponentProps<typeof DropdownMenuPrimitive.Portal>) {\n\treturn <DropdownMenuPrimitive.Portal data-slot=\"dropdown-menu-portal\" {...props} />;\n}\n\nfunction DropdownMenuRadioGroup({\n\t...props\n}: React.ComponentProps<typeof DropdownMenuPrimitive.RadioGroup>) {\n\treturn <DropdownMenuPrimitive.RadioGroup data-slot=\"dropdown-menu-radio-group\" {...props} />;\n}\n\nfunction DropdownMenuRadioItem({\n\tchildren,\n\tclassName,\n\t...props\n}: React.ComponentProps<typeof DropdownMenuPrimitive.RadioItem>) {\n\treturn (\n\t\t<DropdownMenuPrimitive.RadioItem\n\t\t\tclassName={cn(\n\t\t\t\t\"focus:bg-accent focus:text-accent-foreground focus:**:text-accent-foreground gap-1.5 rounded-md py-1 pr-8 pl-1.5 text-sm [&_svg:not([class*='size-'])]:size-4 relative flex cursor-default items-center outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0\",\n\t\t\t\tclassName,\n\t\t\t)}\n\t\t\tdata-slot=\"dropdown-menu-radio-item\"\n\t\t\t{...props}\n\t\t>\n\t\t\t<span\n\t\t\t\tclassName=\"pointer-events-none absolute right-2 flex items-center justify-center\"\n\t\t\t\tdata-slot=\"dropdown-menu-radio-item-indicator\"\n\t\t\t>\n\t\t\t\t<DropdownMenuPrimitive.ItemIndicator>\n\t\t\t\t\t<CheckIcon />\n\t\t\t\t</DropdownMenuPrimitive.ItemIndicator>\n\t\t\t</span>\n\t\t\t{children}\n\t\t</DropdownMenuPrimitive.RadioItem>\n\t);\n}\n\nfunction DropdownMenuSeparator({\n\tclassName,\n\t...props\n}: React.ComponentProps<typeof DropdownMenuPrimitive.Separator>) {\n\treturn (\n\t\t<DropdownMenuPrimitive.Separator\n\t\t\tclassName={cn(\"bg-border -mx-1 my-1 h-px\", className)}\n\t\t\tdata-slot=\"dropdown-menu-separator\"\n\t\t\t{...props}\n\t\t/>\n\t);\n}\n\nfunction DropdownMenuShortcut({ className, ...props }: React.ComponentProps<\"span\">) {\n\treturn (\n\t\t<span\n\t\t\tclassName={cn(\n\t\t\t\t\"text-muted-foreground group-focus/dropdown-menu-item:text-accent-foreground ml-auto text-xs tracking-widest\",\n\t\t\t\tclassName,\n\t\t\t)}\n\t\t\tdata-slot=\"dropdown-menu-shortcut\"\n\t\t\t{...props}\n\t\t/>\n\t);\n}\n\nfunction DropdownMenuSub({ ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.Sub>) {\n\treturn <DropdownMenuPrimitive.Sub data-slot=\"dropdown-menu-sub\" {...props} />;\n}\n\nfunction DropdownMenuSubContent({\n\tclassName,\n\t...props\n}: React.ComponentProps<typeof DropdownMenuPrimitive.SubContent>) {\n\treturn (\n\t\t<DropdownMenuPrimitive.SubContent\n\t\t\tclassName={cn(\n\t\t\t\t\"data-open:animate-in data-closed:animate-out data-closed:fade-out-0 data-open:fade-in-0 data-closed:zoom-out-95 data-open:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 ring-foreground/10 bg-popover text-popover-foreground min-w-[96px] rounded-md p-1 shadow-lg ring-1 duration-100 z-50 origin-(--radix-dropdown-menu-content-transform-origin) overflow-hidden\",\n\t\t\t\tclassName,\n\t\t\t)}\n\t\t\tdata-slot=\"dropdown-menu-sub-content\"\n\t\t\t{...props}\n\t\t/>\n\t);\n}\n\nfunction DropdownMenuSubTrigger({\n\tchildren,\n\tclassName,\n\tinset,\n\t...props\n}: React.ComponentProps<typeof DropdownMenuPrimitive.SubTrigger> & {\n\tinset?: boolean;\n}) {\n\treturn (\n\t\t<DropdownMenuPrimitive.SubTrigger\n\t\t\tclassName={cn(\n\t\t\t\t\"focus:bg-accent focus:text-accent-foreground data-open:bg-accent data-open:text-accent-foreground not-data-[variant=destructive]:focus:**:text-accent-foreground gap-1.5 rounded-md px-1.5 py-1 text-sm [&_svg:not([class*='size-'])]:size-4 flex cursor-default items-center outline-hidden select-none data-[inset]:pl-8 [&_svg]:pointer-events-none [&_svg]:shrink-0\",\n\t\t\t\tclassName,\n\t\t\t)}\n\t\t\tdata-inset={inset}\n\t\t\tdata-slot=\"dropdown-menu-sub-trigger\"\n\t\t\t{...props}\n\t\t>\n\t\t\t{children}\n\t\t\t<ChevronRightIcon className=\"ml-auto\" />\n\t\t</DropdownMenuPrimitive.SubTrigger>\n\t);\n}\n\nfunction DropdownMenuTrigger({\n\t...props\n}: React.ComponentProps<typeof DropdownMenuPrimitive.Trigger>) {\n\treturn <DropdownMenuPrimitive.Trigger data-slot=\"dropdown-menu-trigger\" {...props} />;\n}\n\nexport {\n\tDropdownMenu,\n\tDropdownMenuCheckboxItem,\n\tDropdownMenuContent,\n\tDropdownMenuGroup,\n\tDropdownMenuItem,\n\tDropdownMenuLabel,\n\tDropdownMenuPortal,\n\tDropdownMenuRadioGroup,\n\tDropdownMenuRadioItem,\n\tDropdownMenuSeparator,\n\tDropdownMenuShortcut,\n\tDropdownMenuSub,\n\tDropdownMenuSubContent,\n\tDropdownMenuSubTrigger,\n\tDropdownMenuTrigger,\n};\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;AAwBA,SAAS,aAAa,EAAE,GAAG,SAAkE;AAC5F,QAAO,oBAACA,eAAsB,MAAvB;EAA4B,aAAU;EAAgB,GAAI;EAAS,CAAA;;AAG3E,SAAS,yBAAyB,EACjC,SACA,UACA,WACA,GAAG,SACgE;AACnE,QACC,qBAACA,eAAsB,cAAvB;EACU;EACT,WAAW,GACV,kVACA,UACA;EACD,aAAU;EACV,GAAI;YAPL,CASC,oBAAC,QAAD;GACC,WAAU;GACV,aAAU;aAEV,oBAACA,eAAsB,eAAvB,EAAA,UACC,oBAAC,WAAD,EAAa,CAAA,EACwB,CAAA;GAChC,CAAA,EACN,SACmC;;;AAIvC,SAAS,oBAAoB,EAC5B,QAAQ,SACR,WACA,aAAa,GACb,GAAG,SAC2D;AAC9D,QACC,oBAACA,eAAsB,QAAvB,EAAA,UACC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AE,WAAW,GAAG,SAAuC;AACpF,QACC,oBAAC,QAAD;EACC,WAAW,GACV,+GACA,UACA;EACD,aAAU;EACV,GAAI;EACH,CAAA;;AAIJ,SAAS,gBAAgB,EAAE,GAAG,SAAiE;AAC9F,QAAO,oBAACA,eAAsB,KAAvB;EAA2B,aAAU;EAAoB,GAAI;EAAS,CAAA;;AAG9E,SAAS,uBAAuB,EAC/B,WACA,GAAG,SAC8D;AACjE,QACC,oBAACA,eAAsB,YAAvB;EACC,WAAW,GACV,ieACA,UACA;EACD,aAAU;EACV,GAAI;EACH,CAAA;;AAIJ,SAAS,uBAAuB,EAC/B,UACA,WACA,OACA,GAAG,SAGD;AACF,QACC,qBAACA,eAAsB,YAAvB;EACC,WAAW,GACV,2WACA,UACA;EACD,cAAY;EACZ,aAAU;EACV,GAAI;YAPL,CASE,UACD,oBAAC,kBAAD,EAAkB,WAAU,WAAY,CAAA,CACN;;;AAIrC,SAAS,oBAAoB,EAC5B,GAAG,SAC2D;AAC9D,QAAO,oBAACA,eAAsB,SAAvB;EAA+B,aAAU;EAAwB,GAAI;EAAS,CAAA"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import { DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger } from "./dropdown-menu.js";
|
|
2
|
+
export { DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger };
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import { DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger } from "./dropdown-menu.js";
|
|
2
|
+
export { DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger };
|