kuzenbo 0.0.1
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 +185 -0
- package/dist/accordion-trigger-D5XnBMS6.d.ts +24 -0
- package/dist/accordion-trigger-TjAe8JHy.js +53 -0
- package/dist/alert-dialog-trigger-BV0BsaVU.d.ts +638 -0
- package/dist/alert-dialog-trigger-D5BRoizR.js +98 -0
- package/dist/alert-title-CISzcj0X.js +28 -0
- package/dist/alert-title-CVC9G-Xf.d.ts +22 -0
- package/dist/announcement-title-CCZuGB1O.d.ts +18 -0
- package/dist/announcement-title-CIwzt9Wl.js +18 -0
- package/dist/autocomplete-value-BhyszIrf.d.ts +111 -0
- package/dist/autocomplete-value-DNJ3sAIH.js +141 -0
- package/dist/avatar-image-BKgKyzVw.d.ts +35 -0
- package/dist/avatar-image-Bw3G-Bl6.js +45 -0
- package/dist/breadcrumb-separator-D66-B1DA.d.ts +44 -0
- package/dist/breadcrumb-separator-Do-19Uow.js +74 -0
- package/dist/button-group-text-D98w78rH.js +25 -0
- package/dist/calendar-week-number-6AXvZ4Ij.js +72 -0
- package/dist/calendar-week-number-in2gpvA_.d.ts +36 -0
- package/dist/card-title-CbRPAh3M.js +52 -0
- package/dist/card-title-DSDluDoy.d.ts +40 -0
- package/dist/carousel-previous-B_jysGv_.js +89 -0
- package/dist/chart-tooltip-content-h5oLtil-.js +144 -0
- package/dist/collapsible-trigger-DcQWODN-.js +20 -0
- package/dist/collapsible-trigger-aZF7_mPR.d.ts +15 -0
- package/dist/command-shortcut-DoWM7Mnm.js +97 -0
- package/dist/context-menu-trigger-CYBhdcpg.js +147 -0
- package/dist/context-menu-trigger-Du2vcTco.d.ts +103 -0
- package/dist/dialog-trigger-CR23tYql.js +97 -0
- package/dist/dialog-trigger-xeE4e96-.d.ts +74 -0
- package/dist/drawer-trigger-7jI4Zmqs.js +79 -0
- package/dist/drawer-trigger-H_Wv5R00.d.ts +67 -0
- package/dist/dropdown-menu-trigger-CFdruqOk.d.ts +108 -0
- package/dist/dropdown-menu-trigger-IKeAoU_a.js +152 -0
- package/dist/dropzone-context-BRX1K7nw.d.ts +45 -0
- package/dist/dropzone-status-CW-3AXuh.js +33 -0
- package/dist/emoji-picker-skin-tone-selector-Cmv-1vDO.js +117 -0
- package/dist/emoji-picker-skin-tone-selector-yMYxt4oJ.d.ts +67 -0
- package/dist/empty-title-CH3DhcfT.d.ts +53 -0
- package/dist/empty-title-CHNBH7WJ.js +53 -0
- package/dist/form-field-title-CNrq8v88.js +101 -0
- package/dist/hooks/use-isomorphic-effect.d.ts +7 -0
- package/dist/hooks/use-isomorphic-effect.js +7 -0
- package/dist/hooks/use-mobile.d.ts +4 -0
- package/dist/hooks/use-mobile.js +20 -0
- package/dist/hover-card-trigger-B9jf3FEB.js +31 -0
- package/dist/hover-card-trigger-BqVoZ7h4.d.ts +20 -0
- package/dist/index.d.ts +122 -0
- package/dist/index.js +130 -0
- package/dist/input-group-textarea-voYOV11-.js +79 -0
- package/dist/input-otp-slot-DWbXhUmU.js +45 -0
- package/dist/input-otp-slot-eVdOjx8C.d.ts +24 -0
- package/dist/item-title-BYrYJZpa.js +89 -0
- package/dist/kbd-group-CT-Xtgug.js +12 -0
- package/dist/kbd-group-D3yVrb2D.d.ts +10 -0
- package/dist/marquee-item-BGJ5NSiz.js +29 -0
- package/dist/marquee-item-DD6JuLJ4.d.ts +32 -0
- package/dist/menubar-trigger-BLg3XdRv.d.ts +104 -0
- package/dist/menubar-trigger-aKMWAxdz.js +146 -0
- package/dist/meter-value-BmxUICOA.js +37 -0
- package/dist/meter-value-DYkZLCtx.d.ts +30 -0
- package/dist/navigation-menu-trigger-Bf60DnIz.d.ts +53 -0
- package/dist/navigation-menu-trigger-D80wiliM.js +82 -0
- package/dist/number-field-scrub-area-CXSyafBE.js +80 -0
- package/dist/optional-portal-C7TpYnOc.js +15 -0
- package/dist/pagination-previous-DPZrRgiD.js +88 -0
- package/dist/pagination-previous-qJeZZTou.d.ts +45 -0
- package/dist/pill-status-CD9XXuE7.js +74 -0
- package/dist/pill-status-rg-3AMSI.d.ts +77 -0
- package/dist/popover-trigger-B9PVErig.d.ts +39 -0
- package/dist/popover-trigger-C8dP_u7N.js +52 -0
- package/dist/progress-value-CFlgP0nv.d.ts +28 -0
- package/dist/progress-value-CfCodKnX.js +37 -0
- package/dist/radio-group-item-09fw05Va.d.ts +10 -0
- package/dist/radio-group-item-CQjCazjw.js +24 -0
- package/dist/rating-star-6ov3lbpn.d.ts +57 -0
- package/dist/rating-star-BuLQfAnZ.js +110 -0
- package/dist/resizable-panel-B4lAr8Vb.d.ts +19 -0
- package/dist/resizable-panel-BO97wcPj.js +21 -0
- package/dist/scroll-bar-BQzpb5hF.js +19 -0
- package/dist/scroll-bar-vYvxEOph.d.ts +11 -0
- package/dist/select-value-BUnWentK.js +117 -0
- package/dist/select-value-DG31IHy3.d.ts +70 -0
- package/dist/sheet-trigger-CLgKANrf.d.ts +64 -0
- package/dist/sheet-trigger-CUU7xwUn.js +95 -0
- package/dist/sidebar-trigger-BCjVuIqi.js +366 -0
- package/dist/styles.css +145 -0
- package/dist/table-row-BxhKJPfE.d.ts +46 -0
- package/dist/table-row-D63xalkM.js +60 -0
- package/dist/tabs-trigger-B2mBxFgq.js +38 -0
- package/dist/tabs-trigger-BGo2XGvh.d.ts +41 -0
- package/dist/timeline-title-BH8JxX2n.js +389 -0
- package/dist/toggle-group-item-Bz_ohmnY.d.ts +53 -0
- package/dist/toggle-group-item-aggwtgam.js +34 -0
- package/dist/toolbar-separator-7CgKz2aX.d.ts +40 -0
- package/dist/toolbar-separator-Bre5OtBI.js +41 -0
- package/dist/tooltip-trigger-CrAGfaqr.d.ts +27 -0
- package/dist/tooltip-trigger-Z-aPDRog.js +37 -0
- package/dist/ui/accordion.d.ts +27 -0
- package/dist/ui/accordion.js +17 -0
- package/dist/ui/affix.d.ts +49 -0
- package/dist/ui/affix.js +57 -0
- package/dist/ui/alert-dialog.d.ts +123 -0
- package/dist/ui/alert-dialog.js +23 -0
- package/dist/ui/alert.d.ts +58 -0
- package/dist/ui/alert.js +59 -0
- package/dist/ui/announcement.d.ts +27 -0
- package/dist/ui/announcement.js +16 -0
- package/dist/ui/aspect-ratio.d.ts +13 -0
- package/dist/ui/aspect-ratio.js +13 -0
- package/dist/ui/autocomplete.d.ts +67 -0
- package/dist/ui/autocomplete.js +30 -0
- package/dist/ui/avatar.d.ts +37 -0
- package/dist/ui/avatar.js +22 -0
- package/dist/ui/badge.d.ts +54 -0
- package/dist/ui/badge.js +33 -0
- package/dist/ui/breadcrumb.d.ts +41 -0
- package/dist/ui/breadcrumb.js +20 -0
- package/dist/ui/button-group.d.ts +94 -0
- package/dist/ui/button-group.js +24 -0
- package/dist/ui/button.d.ts +91 -0
- package/dist/ui/button.js +64 -0
- package/dist/ui/calendar.d.ts +52 -0
- package/dist/ui/calendar.js +64 -0
- package/dist/ui/card.d.ts +40 -0
- package/dist/ui/card.js +20 -0
- package/dist/ui/carousel.d.ts +100 -0
- package/dist/ui/carousel.js +76 -0
- package/dist/ui/chart.d.ts +61 -0
- package/dist/ui/chart.js +34 -0
- package/dist/ui/checkbox-group.d.ts +12 -0
- package/dist/ui/checkbox-group.js +13 -0
- package/dist/ui/checkbox.d.ts +12 -0
- package/dist/ui/checkbox.js +27 -0
- package/dist/ui/collapsible.d.ts +19 -0
- package/dist/ui/collapsible.js +16 -0
- package/dist/ui/combobox.d.ts +95 -0
- package/dist/ui/combobox.js +31 -0
- package/dist/ui/command.d.ts +146 -0
- package/dist/ui/command.js +24 -0
- package/dist/ui/context-menu.d.ts +83 -0
- package/dist/ui/context-menu.js +26 -0
- package/dist/ui/country-flag.d.ts +18 -0
- package/dist/ui/country-flag.js +36 -0
- package/dist/ui/dialog.d.ts +53 -0
- package/dist/ui/dialog.js +23 -0
- package/dist/ui/drawer.d.ts +52 -0
- package/dist/ui/drawer.js +24 -0
- package/dist/ui/dropdown-menu.d.ts +88 -0
- package/dist/ui/dropdown-menu.js +26 -0
- package/dist/ui/dropzone.d.ts +233 -0
- package/dist/ui/dropzone.js +180 -0
- package/dist/ui/emoji-picker.d.ts +46 -0
- package/dist/ui/emoji-picker.js +23 -0
- package/dist/ui/empty.d.ts +50 -0
- package/dist/ui/empty.js +18 -0
- package/dist/ui/form-field.d.ts +134 -0
- package/dist/ui/form-field.js +33 -0
- package/dist/ui/google-logo.d.ts +13 -0
- package/dist/ui/google-logo.js +36 -0
- package/dist/ui/hover-card.d.ts +24 -0
- package/dist/ui/hover-card.js +16 -0
- package/dist/ui/input-group.d.ts +141 -0
- package/dist/ui/input-group.js +21 -0
- package/dist/ui/input-otp.d.ts +31 -0
- package/dist/ui/input-otp.js +19 -0
- package/dist/ui/input.d.ts +12 -0
- package/dist/ui/input.js +14 -0
- package/dist/ui/item.d.ts +158 -0
- package/dist/ui/item.js +50 -0
- package/dist/ui/kbd.d.ts +18 -0
- package/dist/ui/kbd.js +14 -0
- package/dist/ui/label.d.ts +12 -0
- package/dist/ui/label.js +15 -0
- package/dist/ui/marquee.d.ts +30 -0
- package/dist/ui/marquee.js +17 -0
- package/dist/ui/menubar.d.ts +228 -0
- package/dist/ui/menubar.js +29 -0
- package/dist/ui/meter.d.ts +29 -0
- package/dist/ui/meter.js +19 -0
- package/dist/ui/navigation-menu.d.ts +12 -0
- package/dist/ui/navigation-menu.js +15 -0
- package/dist/ui/number-field.d.ts +41 -0
- package/dist/ui/number-field.js +33 -0
- package/dist/ui/pagination.d.ts +38 -0
- package/dist/ui/pagination.js +20 -0
- package/dist/ui/pill.d.ts +49 -0
- package/dist/ui/pill.js +21 -0
- package/dist/ui/popover.d.ts +37 -0
- package/dist/ui/popover.js +19 -0
- package/dist/ui/portal.d.ts +29 -0
- package/dist/ui/portal.js +52 -0
- package/dist/ui/progress.d.ts +31 -0
- package/dist/ui/progress.js +22 -0
- package/dist/ui/qr-code.d.ts +20 -0
- package/dist/ui/qr-code.js +78 -0
- package/dist/ui/radio-group.d.ts +18 -0
- package/dist/ui/radio-group.js +15 -0
- package/dist/ui/rating.d.ts +80 -0
- package/dist/ui/rating.js +59 -0
- package/dist/ui/resizable.d.ts +25 -0
- package/dist/ui/resizable.js +18 -0
- package/dist/ui/scroll-area.d.ts +19 -0
- package/dist/ui/scroll-area.js +24 -0
- package/dist/ui/select.d.ts +65 -0
- package/dist/ui/select.js +23 -0
- package/dist/ui/separator.d.ts +12 -0
- package/dist/ui/separator.js +14 -0
- package/dist/ui/sheet.d.ts +54 -0
- package/dist/ui/sheet.js +23 -0
- package/dist/ui/sidebar.d.ts +247 -0
- package/dist/ui/sidebar.js +83 -0
- package/dist/ui/skeleton.d.ts +11 -0
- package/dist/ui/skeleton.js +12 -0
- package/dist/ui/slider.d.ts +15 -0
- package/dist/ui/slider.js +47 -0
- package/dist/ui/spacer.d.ts +18 -0
- package/dist/ui/spacer.js +25 -0
- package/dist/ui/spinner.d.ts +12 -0
- package/dist/ui/spinner.js +17 -0
- package/dist/ui/surface.d.ts +41 -0
- package/dist/ui/surface.js +31 -0
- package/dist/ui/switch.d.ts +14 -0
- package/dist/ui/switch.js +20 -0
- package/dist/ui/table.d.ts +41 -0
- package/dist/ui/table.js +34 -0
- package/dist/ui/tabs.d.ts +43 -0
- package/dist/ui/tabs.js +20 -0
- package/dist/ui/textarea.d.ts +13 -0
- package/dist/ui/textarea.js +14 -0
- package/dist/ui/theme-icon.d.ts +77 -0
- package/dist/ui/theme-icon.js +56 -0
- package/dist/ui/timeline.d.ts +96 -0
- package/dist/ui/timeline.js +88 -0
- package/dist/ui/toast.d.ts +50 -0
- package/dist/ui/toast.js +23 -0
- package/dist/ui/toggle-group.d.ts +31 -0
- package/dist/ui/toggle-group.js +31 -0
- package/dist/ui/toggle.d.ts +46 -0
- package/dist/ui/toggle.js +34 -0
- package/dist/ui/toolbar.d.ts +33 -0
- package/dist/ui/toolbar.js +19 -0
- package/dist/ui/tooltip.d.ts +29 -0
- package/dist/ui/tooltip.js +17 -0
- package/dist/ui/video-player.d.ts +48 -0
- package/dist/ui/video-player.js +37 -0
- package/dist/use-chart-BRpzPrMJ.d.ts +77 -0
- package/dist/use-combobox-anchor-2KUf_cBk.js +198 -0
- package/dist/use-combobox-anchor-ByuqnpKH.d.ts +120 -0
- package/dist/use-number-field-Dzl9JLNK.d.ts +55 -0
- package/dist/use-timeline-BRlmxoQ7.d.ts +81 -0
- package/dist/use-toast-BGG4leSx.d.ts +118 -0
- package/dist/use-toast-DjRKuQG6.js +129 -0
- package/dist/video-player-volume-range-D971L6mz.d.ts +65 -0
- package/dist/video-player-volume-range-V7x0b1-r.js +66 -0
- package/package.json +128 -0
|
@@ -0,0 +1,147 @@
|
|
|
1
|
+
import { cn } from "tailwind-variants";
|
|
2
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
3
|
+
import { ArrowRight01Icon, Tick02Icon } from "@hugeicons/core-free-icons";
|
|
4
|
+
import { HugeiconsIcon } from "@hugeicons/react";
|
|
5
|
+
import { ContextMenu } from "@base-ui/react/context-menu";
|
|
6
|
+
|
|
7
|
+
//#region src/components/context-menu/context-menu-checkbox-item.tsx
|
|
8
|
+
const ContextMenuCheckboxItem = ({ className, children, checked, ...props }) => /* @__PURE__ */ jsxs(ContextMenu.CheckboxItem, {
|
|
9
|
+
checked,
|
|
10
|
+
className: cn("relative flex cursor-pointer select-none items-center gap-1.5 rounded-md py-1 pr-8 pl-1.5 text-sm outline-hidden focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:cursor-not-allowed data-[disabled]:opacity-50 [&_svg:not([class*='size-'])]:size-4 [&_svg]:pointer-events-none [&_svg]:shrink-0", className),
|
|
11
|
+
"data-slot": "context-menu-checkbox-item",
|
|
12
|
+
...props,
|
|
13
|
+
children: [/* @__PURE__ */ jsx("span", {
|
|
14
|
+
className: "pointer-events-none absolute right-2",
|
|
15
|
+
children: /* @__PURE__ */ jsx(ContextMenu.CheckboxItemIndicator, { children: /* @__PURE__ */ jsx(HugeiconsIcon, {
|
|
16
|
+
icon: Tick02Icon,
|
|
17
|
+
strokeWidth: 2
|
|
18
|
+
}) })
|
|
19
|
+
}), children]
|
|
20
|
+
});
|
|
21
|
+
|
|
22
|
+
//#endregion
|
|
23
|
+
//#region src/components/context-menu/context-menu-content.tsx
|
|
24
|
+
const ContextMenuContent = ({ className, align = "start", alignOffset = 4, side = "right", sideOffset = 0, ...props }) => /* @__PURE__ */ jsx(ContextMenu.Portal, { children: /* @__PURE__ */ jsx(ContextMenu.Positioner, {
|
|
25
|
+
align,
|
|
26
|
+
alignOffset,
|
|
27
|
+
className: "isolate z-50 outline-none",
|
|
28
|
+
side,
|
|
29
|
+
sideOffset,
|
|
30
|
+
children: /* @__PURE__ */ jsx(ContextMenu.Popup, {
|
|
31
|
+
className: cn("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 z-50 max-h-(--available-height) min-w-36 origin-(--transform-origin) overflow-y-auto overflow-x-hidden rounded-md bg-popover p-1 text-popover-foreground shadow-md outline-none ring-1 ring-foreground/10 duration-100 data-closed:animate-out data-open:animate-in", className),
|
|
32
|
+
"data-slot": "context-menu-content",
|
|
33
|
+
...props
|
|
34
|
+
})
|
|
35
|
+
}) });
|
|
36
|
+
|
|
37
|
+
//#endregion
|
|
38
|
+
//#region src/components/context-menu/context-menu-group.tsx
|
|
39
|
+
const ContextMenuGroup = ({ ...props }) => /* @__PURE__ */ jsx(ContextMenu.Group, {
|
|
40
|
+
"data-slot": "context-menu-group",
|
|
41
|
+
...props
|
|
42
|
+
});
|
|
43
|
+
|
|
44
|
+
//#endregion
|
|
45
|
+
//#region src/components/context-menu/context-menu-item.tsx
|
|
46
|
+
const ContextMenuItem = ({ className, inset, variant = "default", ...props }) => /* @__PURE__ */ jsx(ContextMenu.Item, {
|
|
47
|
+
className: cn("group/context-menu-item relative flex cursor-pointer select-none items-center gap-1.5 rounded-md px-1.5 py-1 text-sm outline-hidden focus:bg-accent focus:text-accent-foreground data-disabled:pointer-events-none data-disabled:cursor-not-allowed data-[inset]:pl-8 data-[variant=destructive]:text-destructive data-disabled:opacity-50 data-[variant=destructive]:focus:bg-destructive/10 data-[variant=destructive]:focus:text-destructive dark:data-[variant=destructive]:focus:bg-destructive/20 [&_svg:not([class*='size-'])]:size-4 [&_svg]:pointer-events-none [&_svg]:shrink-0 focus:*:[svg]:text-accent-foreground data-[variant=destructive]:*:[svg]:text-destructive", className),
|
|
48
|
+
"data-inset": inset,
|
|
49
|
+
"data-slot": "context-menu-item",
|
|
50
|
+
"data-variant": variant,
|
|
51
|
+
...props
|
|
52
|
+
});
|
|
53
|
+
|
|
54
|
+
//#endregion
|
|
55
|
+
//#region src/components/context-menu/context-menu-label.tsx
|
|
56
|
+
const ContextMenuLabel = ({ className, inset, ...props }) => /* @__PURE__ */ jsx(ContextMenu.GroupLabel, {
|
|
57
|
+
className: cn("px-1.5 py-1 font-medium text-muted-foreground text-xs data-[inset]:pl-8", className),
|
|
58
|
+
"data-inset": inset,
|
|
59
|
+
"data-slot": "context-menu-label",
|
|
60
|
+
...props
|
|
61
|
+
});
|
|
62
|
+
|
|
63
|
+
//#endregion
|
|
64
|
+
//#region src/components/context-menu/context-menu-portal.tsx
|
|
65
|
+
const ContextMenuPortal = ({ ...props }) => /* @__PURE__ */ jsx(ContextMenu.Portal, {
|
|
66
|
+
"data-slot": "context-menu-portal",
|
|
67
|
+
...props
|
|
68
|
+
});
|
|
69
|
+
|
|
70
|
+
//#endregion
|
|
71
|
+
//#region src/components/context-menu/context-menu-radio-group.tsx
|
|
72
|
+
const ContextMenuRadioGroup = ({ ...props }) => /* @__PURE__ */ jsx(ContextMenu.RadioGroup, {
|
|
73
|
+
"data-slot": "context-menu-radio-group",
|
|
74
|
+
...props
|
|
75
|
+
});
|
|
76
|
+
|
|
77
|
+
//#endregion
|
|
78
|
+
//#region src/components/context-menu/context-menu-radio-item.tsx
|
|
79
|
+
const ContextMenuRadioItem = ({ className, children, ...props }) => /* @__PURE__ */ jsxs(ContextMenu.RadioItem, {
|
|
80
|
+
className: cn("relative flex cursor-pointer select-none items-center gap-1.5 rounded-md py-1 pr-8 pl-1.5 text-sm outline-hidden focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:cursor-not-allowed data-[disabled]:opacity-50 [&_svg:not([class*='size-'])]:size-4 [&_svg]:pointer-events-none [&_svg]:shrink-0", className),
|
|
81
|
+
"data-slot": "context-menu-radio-item",
|
|
82
|
+
...props,
|
|
83
|
+
children: [/* @__PURE__ */ jsx("span", {
|
|
84
|
+
className: "pointer-events-none absolute right-2",
|
|
85
|
+
children: /* @__PURE__ */ jsx(ContextMenu.RadioItemIndicator, { children: /* @__PURE__ */ jsx(HugeiconsIcon, {
|
|
86
|
+
icon: Tick02Icon,
|
|
87
|
+
strokeWidth: 2
|
|
88
|
+
}) })
|
|
89
|
+
}), children]
|
|
90
|
+
});
|
|
91
|
+
|
|
92
|
+
//#endregion
|
|
93
|
+
//#region src/components/context-menu/context-menu-separator.tsx
|
|
94
|
+
const ContextMenuSeparator = ({ className, ...props }) => /* @__PURE__ */ jsx(ContextMenu.Separator, {
|
|
95
|
+
className: cn("-mx-1 my-1 h-px bg-border", className),
|
|
96
|
+
"data-slot": "context-menu-separator",
|
|
97
|
+
...props
|
|
98
|
+
});
|
|
99
|
+
|
|
100
|
+
//#endregion
|
|
101
|
+
//#region src/components/context-menu/context-menu-shortcut.tsx
|
|
102
|
+
const ContextMenuShortcut = ({ className, ...props }) => /* @__PURE__ */ jsx("span", {
|
|
103
|
+
className: cn("ml-auto text-muted-foreground text-xs tracking-widest group-focus/context-menu-item:text-accent-foreground", className),
|
|
104
|
+
"data-slot": "context-menu-shortcut",
|
|
105
|
+
...props
|
|
106
|
+
});
|
|
107
|
+
|
|
108
|
+
//#endregion
|
|
109
|
+
//#region src/components/context-menu/context-menu-sub.tsx
|
|
110
|
+
const ContextMenuSub = ({ ...props }) => /* @__PURE__ */ jsx(ContextMenu.SubmenuRoot, {
|
|
111
|
+
"data-slot": "context-menu-sub",
|
|
112
|
+
...props
|
|
113
|
+
});
|
|
114
|
+
|
|
115
|
+
//#endregion
|
|
116
|
+
//#region src/components/context-menu/context-menu-sub-content.tsx
|
|
117
|
+
const ContextMenuSubContent = ({ ...props }) => /* @__PURE__ */ jsx(ContextMenuContent, {
|
|
118
|
+
className: "shadow-lg",
|
|
119
|
+
"data-slot": "context-menu-sub-content",
|
|
120
|
+
side: "right",
|
|
121
|
+
...props
|
|
122
|
+
});
|
|
123
|
+
|
|
124
|
+
//#endregion
|
|
125
|
+
//#region src/components/context-menu/context-menu-sub-trigger.tsx
|
|
126
|
+
const ContextMenuSubTrigger = ({ className, inset, children, ...props }) => /* @__PURE__ */ jsxs(ContextMenu.SubmenuTrigger, {
|
|
127
|
+
className: cn("flex cursor-pointer select-none items-center gap-1.5 rounded-md px-1.5 py-1 text-sm outline-hidden focus:bg-accent focus:text-accent-foreground data-disabled:cursor-not-allowed data-open:bg-accent data-[inset]:pl-8 data-open:text-accent-foreground [&_svg:not([class*='size-'])]:size-4 [&_svg]:pointer-events-none [&_svg]:shrink-0", className),
|
|
128
|
+
"data-inset": inset,
|
|
129
|
+
"data-slot": "context-menu-sub-trigger",
|
|
130
|
+
...props,
|
|
131
|
+
children: [children, /* @__PURE__ */ jsx(HugeiconsIcon, {
|
|
132
|
+
className: "ml-auto",
|
|
133
|
+
icon: ArrowRight01Icon,
|
|
134
|
+
strokeWidth: 2
|
|
135
|
+
})]
|
|
136
|
+
});
|
|
137
|
+
|
|
138
|
+
//#endregion
|
|
139
|
+
//#region src/components/context-menu/context-menu-trigger.tsx
|
|
140
|
+
const ContextMenuTrigger = ({ className, ...props }) => /* @__PURE__ */ jsx(ContextMenu.Trigger, {
|
|
141
|
+
className: cn("cursor-pointer select-none", className),
|
|
142
|
+
"data-slot": "context-menu-trigger",
|
|
143
|
+
...props
|
|
144
|
+
});
|
|
145
|
+
|
|
146
|
+
//#endregion
|
|
147
|
+
export { ContextMenuShortcut as a, ContextMenuRadioGroup as c, ContextMenuItem as d, ContextMenuGroup as f, ContextMenuSub as i, ContextMenuPortal as l, ContextMenuCheckboxItem as m, ContextMenuSubTrigger as n, ContextMenuSeparator as o, ContextMenuContent as p, ContextMenuSubContent as r, ContextMenuRadioItem as s, ContextMenuTrigger as t, ContextMenuLabel as u };
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
import * as react_jsx_runtime0 from "react/jsx-runtime";
|
|
2
|
+
import { ComponentProps } from "react";
|
|
3
|
+
import { ContextMenu } from "@base-ui/react/context-menu";
|
|
4
|
+
|
|
5
|
+
//#region src/components/context-menu/context-menu-checkbox-item.d.ts
|
|
6
|
+
declare const ContextMenuCheckboxItem: ({
|
|
7
|
+
className,
|
|
8
|
+
children,
|
|
9
|
+
checked,
|
|
10
|
+
...props
|
|
11
|
+
}: ContextMenu.CheckboxItem.Props) => react_jsx_runtime0.JSX.Element;
|
|
12
|
+
//#endregion
|
|
13
|
+
//#region src/components/context-menu/context-menu-content.d.ts
|
|
14
|
+
declare const ContextMenuContent: ({
|
|
15
|
+
className,
|
|
16
|
+
align,
|
|
17
|
+
alignOffset,
|
|
18
|
+
side,
|
|
19
|
+
sideOffset,
|
|
20
|
+
...props
|
|
21
|
+
}: ContextMenu.Popup.Props & Pick<ContextMenu.Positioner.Props, "align" | "alignOffset" | "side" | "sideOffset">) => react_jsx_runtime0.JSX.Element;
|
|
22
|
+
//#endregion
|
|
23
|
+
//#region src/components/context-menu/context-menu-group.d.ts
|
|
24
|
+
declare const ContextMenuGroup: ({
|
|
25
|
+
...props
|
|
26
|
+
}: ContextMenu.Group.Props) => react_jsx_runtime0.JSX.Element;
|
|
27
|
+
//#endregion
|
|
28
|
+
//#region src/components/context-menu/context-menu-item.d.ts
|
|
29
|
+
declare const ContextMenuItem: ({
|
|
30
|
+
className,
|
|
31
|
+
inset,
|
|
32
|
+
variant,
|
|
33
|
+
...props
|
|
34
|
+
}: ContextMenu.Item.Props & {
|
|
35
|
+
inset?: boolean;
|
|
36
|
+
variant?: "default" | "destructive";
|
|
37
|
+
}) => react_jsx_runtime0.JSX.Element;
|
|
38
|
+
//#endregion
|
|
39
|
+
//#region src/components/context-menu/context-menu-label.d.ts
|
|
40
|
+
declare const ContextMenuLabel: ({
|
|
41
|
+
className,
|
|
42
|
+
inset,
|
|
43
|
+
...props
|
|
44
|
+
}: ContextMenu.GroupLabel.Props & {
|
|
45
|
+
inset?: boolean;
|
|
46
|
+
}) => react_jsx_runtime0.JSX.Element;
|
|
47
|
+
//#endregion
|
|
48
|
+
//#region src/components/context-menu/context-menu-portal.d.ts
|
|
49
|
+
declare const ContextMenuPortal: ({
|
|
50
|
+
...props
|
|
51
|
+
}: ContextMenu.Portal.Props) => react_jsx_runtime0.JSX.Element;
|
|
52
|
+
//#endregion
|
|
53
|
+
//#region src/components/context-menu/context-menu-radio-group.d.ts
|
|
54
|
+
declare const ContextMenuRadioGroup: ({
|
|
55
|
+
...props
|
|
56
|
+
}: ContextMenu.RadioGroup.Props) => react_jsx_runtime0.JSX.Element;
|
|
57
|
+
//#endregion
|
|
58
|
+
//#region src/components/context-menu/context-menu-radio-item.d.ts
|
|
59
|
+
declare const ContextMenuRadioItem: ({
|
|
60
|
+
className,
|
|
61
|
+
children,
|
|
62
|
+
...props
|
|
63
|
+
}: ContextMenu.RadioItem.Props) => react_jsx_runtime0.JSX.Element;
|
|
64
|
+
//#endregion
|
|
65
|
+
//#region src/components/context-menu/context-menu-separator.d.ts
|
|
66
|
+
declare const ContextMenuSeparator: ({
|
|
67
|
+
className,
|
|
68
|
+
...props
|
|
69
|
+
}: ContextMenu.Separator.Props) => react_jsx_runtime0.JSX.Element;
|
|
70
|
+
//#endregion
|
|
71
|
+
//#region src/components/context-menu/context-menu-shortcut.d.ts
|
|
72
|
+
declare const ContextMenuShortcut: ({
|
|
73
|
+
className,
|
|
74
|
+
...props
|
|
75
|
+
}: ComponentProps<"span">) => react_jsx_runtime0.JSX.Element;
|
|
76
|
+
//#endregion
|
|
77
|
+
//#region src/components/context-menu/context-menu-sub.d.ts
|
|
78
|
+
declare const ContextMenuSub: ({
|
|
79
|
+
...props
|
|
80
|
+
}: ContextMenu.SubmenuRoot.Props) => react_jsx_runtime0.JSX.Element;
|
|
81
|
+
//#endregion
|
|
82
|
+
//#region src/components/context-menu/context-menu-sub-content.d.ts
|
|
83
|
+
declare const ContextMenuSubContent: ({
|
|
84
|
+
...props
|
|
85
|
+
}: ComponentProps<typeof ContextMenuContent>) => react_jsx_runtime0.JSX.Element;
|
|
86
|
+
//#endregion
|
|
87
|
+
//#region src/components/context-menu/context-menu-sub-trigger.d.ts
|
|
88
|
+
declare const ContextMenuSubTrigger: ({
|
|
89
|
+
className,
|
|
90
|
+
inset,
|
|
91
|
+
children,
|
|
92
|
+
...props
|
|
93
|
+
}: ContextMenu.SubmenuTrigger.Props & {
|
|
94
|
+
inset?: boolean;
|
|
95
|
+
}) => react_jsx_runtime0.JSX.Element;
|
|
96
|
+
//#endregion
|
|
97
|
+
//#region src/components/context-menu/context-menu-trigger.d.ts
|
|
98
|
+
declare const ContextMenuTrigger: ({
|
|
99
|
+
className,
|
|
100
|
+
...props
|
|
101
|
+
}: ContextMenu.Trigger.Props) => react_jsx_runtime0.JSX.Element;
|
|
102
|
+
//#endregion
|
|
103
|
+
export { ContextMenuShortcut as a, ContextMenuRadioGroup as c, ContextMenuItem as d, ContextMenuGroup as f, ContextMenuSub as i, ContextMenuPortal as l, ContextMenuCheckboxItem as m, ContextMenuSubTrigger as n, ContextMenuSeparator as o, ContextMenuContent as p, ContextMenuSubContent as r, ContextMenuRadioItem as s, ContextMenuTrigger as t, ContextMenuLabel as u };
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
import { Button } from "./ui/button.js";
|
|
2
|
+
import { cn } from "tailwind-variants";
|
|
3
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
4
|
+
import { Cancel01Icon } from "@hugeicons/core-free-icons";
|
|
5
|
+
import { HugeiconsIcon } from "@hugeicons/react";
|
|
6
|
+
import { Dialog } from "@base-ui/react/dialog";
|
|
7
|
+
|
|
8
|
+
//#region src/components/dialog/dialog-close.tsx
|
|
9
|
+
const DialogClose = ({ ...props }) => /* @__PURE__ */ jsx(Dialog.Close, {
|
|
10
|
+
"data-slot": "dialog-close",
|
|
11
|
+
...props
|
|
12
|
+
});
|
|
13
|
+
|
|
14
|
+
//#endregion
|
|
15
|
+
//#region src/components/dialog/dialog-overlay.tsx
|
|
16
|
+
const DialogOverlay = ({ className, ...props }) => /* @__PURE__ */ jsx(Dialog.Backdrop, {
|
|
17
|
+
className: cn("data-closed:fade-out-0 data-open:fade-in-0 fixed inset-0 isolate z-50 bg-black/10 duration-100 data-closed:animate-out data-open:animate-in supports-backdrop-filter:backdrop-blur-xs", className),
|
|
18
|
+
"data-slot": "dialog-overlay",
|
|
19
|
+
...props
|
|
20
|
+
});
|
|
21
|
+
|
|
22
|
+
//#endregion
|
|
23
|
+
//#region src/components/dialog/dialog-portal.tsx
|
|
24
|
+
const DialogPortal = ({ ...props }) => /* @__PURE__ */ jsx(Dialog.Portal, {
|
|
25
|
+
"data-slot": "dialog-portal",
|
|
26
|
+
...props
|
|
27
|
+
});
|
|
28
|
+
|
|
29
|
+
//#endregion
|
|
30
|
+
//#region src/components/dialog/dialog-content.tsx
|
|
31
|
+
const DialogContent = ({ className, children, showCloseButton = true, ...props }) => /* @__PURE__ */ jsxs(DialogPortal, { children: [/* @__PURE__ */ jsx(DialogOverlay, {}), /* @__PURE__ */ jsxs(Dialog.Popup, {
|
|
32
|
+
className: cn("data-closed:fade-out-0 data-open:fade-in-0 data-closed:zoom-out-95 data-open:zoom-in-95 fixed top-1/2 left-1/2 z-50 grid w-full max-w-[calc(100%-2rem)] -translate-x-1/2 -translate-y-1/2 gap-6 rounded-xl bg-background p-6 text-sm outline-none ring-1 ring-foreground/10 duration-100 data-closed:animate-out data-open:animate-in sm:max-w-md", className),
|
|
33
|
+
"data-slot": "dialog-content",
|
|
34
|
+
...props,
|
|
35
|
+
children: [children, showCloseButton && /* @__PURE__ */ jsxs(DialogClose, {
|
|
36
|
+
"data-slot": "dialog-close",
|
|
37
|
+
render: /* @__PURE__ */ jsx(Button, {
|
|
38
|
+
className: "absolute top-4 right-4",
|
|
39
|
+
size: "icon-sm",
|
|
40
|
+
variant: "ghost"
|
|
41
|
+
}),
|
|
42
|
+
children: [/* @__PURE__ */ jsx(HugeiconsIcon, {
|
|
43
|
+
icon: Cancel01Icon,
|
|
44
|
+
strokeWidth: 2
|
|
45
|
+
}), /* @__PURE__ */ jsx("span", {
|
|
46
|
+
className: "sr-only",
|
|
47
|
+
children: "Close"
|
|
48
|
+
})]
|
|
49
|
+
})]
|
|
50
|
+
})] });
|
|
51
|
+
|
|
52
|
+
//#endregion
|
|
53
|
+
//#region src/components/dialog/dialog-description.tsx
|
|
54
|
+
const DialogDescription = ({ className, ...props }) => /* @__PURE__ */ jsx(Dialog.Description, {
|
|
55
|
+
className: cn("text-muted-foreground text-sm *:[a]:underline *:[a]:underline-offset-3 *:[a]:hover:text-foreground", className),
|
|
56
|
+
"data-slot": "dialog-description",
|
|
57
|
+
...props
|
|
58
|
+
});
|
|
59
|
+
|
|
60
|
+
//#endregion
|
|
61
|
+
//#region src/components/dialog/dialog-footer.tsx
|
|
62
|
+
const DialogFooter = ({ className, showCloseButton = false, children, ...props }) => /* @__PURE__ */ jsxs("div", {
|
|
63
|
+
className: cn("-mx-4 mt-4 -mb-4 flex flex-col-reverse gap-2 rounded-b-xl p-4 sm:flex-row sm:justify-end", className),
|
|
64
|
+
"data-slot": "dialog-footer",
|
|
65
|
+
...props,
|
|
66
|
+
children: [children, showCloseButton && /* @__PURE__ */ jsx(DialogClose, {
|
|
67
|
+
render: /* @__PURE__ */ jsx(Button, { variant: "outline" }),
|
|
68
|
+
children: "Close"
|
|
69
|
+
})]
|
|
70
|
+
});
|
|
71
|
+
|
|
72
|
+
//#endregion
|
|
73
|
+
//#region src/components/dialog/dialog-header.tsx
|
|
74
|
+
const DialogHeader = ({ className, ...props }) => /* @__PURE__ */ jsx("div", {
|
|
75
|
+
className: cn("flex flex-col gap-2", className),
|
|
76
|
+
"data-slot": "dialog-header",
|
|
77
|
+
...props
|
|
78
|
+
});
|
|
79
|
+
|
|
80
|
+
//#endregion
|
|
81
|
+
//#region src/components/dialog/dialog-title.tsx
|
|
82
|
+
const DialogTitle = ({ className, ...props }) => /* @__PURE__ */ jsx(Dialog.Title, {
|
|
83
|
+
className: cn("font-medium text-sm leading-none", className),
|
|
84
|
+
"data-slot": "dialog-title",
|
|
85
|
+
...props
|
|
86
|
+
});
|
|
87
|
+
|
|
88
|
+
//#endregion
|
|
89
|
+
//#region src/components/dialog/dialog-trigger.tsx
|
|
90
|
+
const DialogTrigger = ({ className, ...props }) => /* @__PURE__ */ jsx(Dialog.Trigger, {
|
|
91
|
+
className: cn("cursor-pointer", className),
|
|
92
|
+
"data-slot": "dialog-trigger",
|
|
93
|
+
...props
|
|
94
|
+
});
|
|
95
|
+
|
|
96
|
+
//#endregion
|
|
97
|
+
export { DialogDescription as a, DialogOverlay as c, DialogFooter as i, DialogClose as l, DialogTitle as n, DialogContent as o, DialogHeader as r, DialogPortal as s, DialogTrigger as t };
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import * as react_jsx_runtime0 from "react/jsx-runtime";
|
|
2
|
+
import { ComponentProps } from "react";
|
|
3
|
+
import { Dialog } from "@base-ui/react/dialog";
|
|
4
|
+
|
|
5
|
+
//#region src/components/dialog/dialog-close.d.ts
|
|
6
|
+
type DialogCloseProps = Dialog.Close.Props;
|
|
7
|
+
declare const DialogClose: ({
|
|
8
|
+
...props
|
|
9
|
+
}: DialogCloseProps) => react_jsx_runtime0.JSX.Element;
|
|
10
|
+
//#endregion
|
|
11
|
+
//#region src/components/dialog/dialog-content.d.ts
|
|
12
|
+
interface DialogContentProps extends Dialog.Popup.Props {
|
|
13
|
+
showCloseButton?: boolean;
|
|
14
|
+
}
|
|
15
|
+
declare const DialogContent: ({
|
|
16
|
+
className,
|
|
17
|
+
children,
|
|
18
|
+
showCloseButton,
|
|
19
|
+
...props
|
|
20
|
+
}: DialogContentProps) => react_jsx_runtime0.JSX.Element;
|
|
21
|
+
//#endregion
|
|
22
|
+
//#region src/components/dialog/dialog-description.d.ts
|
|
23
|
+
type DialogDescriptionProps = Dialog.Description.Props;
|
|
24
|
+
declare const DialogDescription: ({
|
|
25
|
+
className,
|
|
26
|
+
...props
|
|
27
|
+
}: DialogDescriptionProps) => react_jsx_runtime0.JSX.Element;
|
|
28
|
+
//#endregion
|
|
29
|
+
//#region src/components/dialog/dialog-footer.d.ts
|
|
30
|
+
interface DialogFooterProps extends ComponentProps<"div"> {
|
|
31
|
+
showCloseButton?: boolean;
|
|
32
|
+
}
|
|
33
|
+
declare const DialogFooter: ({
|
|
34
|
+
className,
|
|
35
|
+
showCloseButton,
|
|
36
|
+
children,
|
|
37
|
+
...props
|
|
38
|
+
}: DialogFooterProps) => react_jsx_runtime0.JSX.Element;
|
|
39
|
+
//#endregion
|
|
40
|
+
//#region src/components/dialog/dialog-header.d.ts
|
|
41
|
+
type DialogHeaderProps = ComponentProps<"div">;
|
|
42
|
+
declare const DialogHeader: ({
|
|
43
|
+
className,
|
|
44
|
+
...props
|
|
45
|
+
}: DialogHeaderProps) => react_jsx_runtime0.JSX.Element;
|
|
46
|
+
//#endregion
|
|
47
|
+
//#region src/components/dialog/dialog-overlay.d.ts
|
|
48
|
+
type DialogOverlayProps = Dialog.Backdrop.Props;
|
|
49
|
+
declare const DialogOverlay: ({
|
|
50
|
+
className,
|
|
51
|
+
...props
|
|
52
|
+
}: DialogOverlayProps) => react_jsx_runtime0.JSX.Element;
|
|
53
|
+
//#endregion
|
|
54
|
+
//#region src/components/dialog/dialog-portal.d.ts
|
|
55
|
+
type DialogPortalProps = Dialog.Portal.Props;
|
|
56
|
+
declare const DialogPortal: ({
|
|
57
|
+
...props
|
|
58
|
+
}: DialogPortalProps) => react_jsx_runtime0.JSX.Element;
|
|
59
|
+
//#endregion
|
|
60
|
+
//#region src/components/dialog/dialog-title.d.ts
|
|
61
|
+
type DialogTitleProps = Dialog.Title.Props;
|
|
62
|
+
declare const DialogTitle: ({
|
|
63
|
+
className,
|
|
64
|
+
...props
|
|
65
|
+
}: DialogTitleProps) => react_jsx_runtime0.JSX.Element;
|
|
66
|
+
//#endregion
|
|
67
|
+
//#region src/components/dialog/dialog-trigger.d.ts
|
|
68
|
+
type DialogTriggerProps = Dialog.Trigger.Props;
|
|
69
|
+
declare const DialogTrigger: ({
|
|
70
|
+
className,
|
|
71
|
+
...props
|
|
72
|
+
}: DialogTriggerProps) => react_jsx_runtime0.JSX.Element;
|
|
73
|
+
//#endregion
|
|
74
|
+
export { DialogClose as _, DialogPortal as a, DialogOverlayProps as c, DialogFooter as d, DialogFooterProps as f, DialogContentProps as g, DialogContent as h, DialogTitleProps as i, DialogHeader as l, DialogDescriptionProps as m, DialogTriggerProps as n, DialogPortalProps as o, DialogDescription as p, DialogTitle as r, DialogOverlay as s, DialogTrigger as t, DialogHeaderProps as u, DialogCloseProps as v };
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
import { cn } from "tailwind-variants";
|
|
2
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
3
|
+
import { Drawer } from "vaul";
|
|
4
|
+
|
|
5
|
+
//#region src/components/drawer/drawer-close.tsx
|
|
6
|
+
const DrawerClose = ({ ...props }) => /* @__PURE__ */ jsx(Drawer.Close, {
|
|
7
|
+
"data-slot": "drawer-close",
|
|
8
|
+
...props
|
|
9
|
+
});
|
|
10
|
+
|
|
11
|
+
//#endregion
|
|
12
|
+
//#region src/components/drawer/drawer-overlay.tsx
|
|
13
|
+
const DrawerOverlay = ({ className, ...props }) => /* @__PURE__ */ jsx(Drawer.Overlay, {
|
|
14
|
+
className: cn("data-closed:fade-out-0 data-open:fade-in-0 fixed inset-0 z-50 bg-black/10 data-closed:animate-out data-open:animate-in supports-backdrop-filter:backdrop-blur-xs", className),
|
|
15
|
+
"data-slot": "drawer-overlay",
|
|
16
|
+
...props
|
|
17
|
+
});
|
|
18
|
+
|
|
19
|
+
//#endregion
|
|
20
|
+
//#region src/components/drawer/drawer-portal.tsx
|
|
21
|
+
const DrawerPortal = ({ ...props }) => /* @__PURE__ */ jsx(Drawer.Portal, {
|
|
22
|
+
"data-slot": "drawer-portal",
|
|
23
|
+
...props
|
|
24
|
+
});
|
|
25
|
+
|
|
26
|
+
//#endregion
|
|
27
|
+
//#region src/components/drawer/drawer-content.tsx
|
|
28
|
+
const DrawerContent = ({ className, children, ...props }) => /* @__PURE__ */ jsxs(DrawerPortal, {
|
|
29
|
+
"data-slot": "drawer-portal",
|
|
30
|
+
children: [/* @__PURE__ */ jsx(DrawerOverlay, {}), /* @__PURE__ */ jsxs(Drawer.Content, {
|
|
31
|
+
className: cn("group/drawer-content fixed z-50 flex h-auto flex-col bg-background text-sm data-[vaul-drawer-direction=bottom]:inset-x-0 data-[vaul-drawer-direction=top]:inset-x-0 data-[vaul-drawer-direction=left]:inset-y-0 data-[vaul-drawer-direction=right]:inset-y-0 data-[vaul-drawer-direction=top]:top-0 data-[vaul-drawer-direction=right]:right-0 data-[vaul-drawer-direction=bottom]:bottom-0 data-[vaul-drawer-direction=left]:left-0 data-[vaul-drawer-direction=bottom]:mt-24 data-[vaul-drawer-direction=top]:mb-24 data-[vaul-drawer-direction=bottom]:max-h-[80vh] data-[vaul-drawer-direction=top]:max-h-[80vh] data-[vaul-drawer-direction=left]:w-3/4 data-[vaul-drawer-direction=right]:w-3/4 data-[vaul-drawer-direction=bottom]:rounded-t-xl data-[vaul-drawer-direction=left]:rounded-r-xl data-[vaul-drawer-direction=top]:rounded-b-xl data-[vaul-drawer-direction=right]:rounded-l-xl data-[vaul-drawer-direction=bottom]:border-t data-[vaul-drawer-direction=left]:border-r data-[vaul-drawer-direction=top]:border-b data-[vaul-drawer-direction=right]:border-l data-[vaul-drawer-direction=left]:sm:max-w-sm data-[vaul-drawer-direction=right]:sm:max-w-sm", className),
|
|
32
|
+
"data-slot": "drawer-content",
|
|
33
|
+
...props,
|
|
34
|
+
children: [/* @__PURE__ */ jsx("div", { className: "mx-auto mx-auto mt-4 hidden hidden h-1.5 w-[100px] shrink-0 shrink-0 rounded-full bg-muted bg-muted group-data-[vaul-drawer-direction=bottom]/drawer-content:block group-data-[vaul-drawer-direction=bottom]/drawer-content:block" }), children]
|
|
35
|
+
})]
|
|
36
|
+
});
|
|
37
|
+
|
|
38
|
+
//#endregion
|
|
39
|
+
//#region src/components/drawer/drawer-description.tsx
|
|
40
|
+
const DrawerDescription = ({ className, ...props }) => /* @__PURE__ */ jsx(Drawer.Description, {
|
|
41
|
+
className: cn("text-muted-foreground text-sm", className),
|
|
42
|
+
"data-slot": "drawer-description",
|
|
43
|
+
...props
|
|
44
|
+
});
|
|
45
|
+
|
|
46
|
+
//#endregion
|
|
47
|
+
//#region src/components/drawer/drawer-footer.tsx
|
|
48
|
+
const DrawerFooter = ({ className, ...props }) => /* @__PURE__ */ jsx("div", {
|
|
49
|
+
className: cn("mt-auto flex flex-col gap-2 p-4", className),
|
|
50
|
+
"data-slot": "drawer-footer",
|
|
51
|
+
...props
|
|
52
|
+
});
|
|
53
|
+
|
|
54
|
+
//#endregion
|
|
55
|
+
//#region src/components/drawer/drawer-header.tsx
|
|
56
|
+
const DrawerHeader = ({ className, ...props }) => /* @__PURE__ */ jsx("div", {
|
|
57
|
+
className: cn("flex flex-col 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-1.5 md:text-left", className),
|
|
58
|
+
"data-slot": "drawer-header",
|
|
59
|
+
...props
|
|
60
|
+
});
|
|
61
|
+
|
|
62
|
+
//#endregion
|
|
63
|
+
//#region src/components/drawer/drawer-title.tsx
|
|
64
|
+
const DrawerTitle = ({ className, ...props }) => /* @__PURE__ */ jsx(Drawer.Title, {
|
|
65
|
+
className: cn("font-medium text-base text-foreground", className),
|
|
66
|
+
"data-slot": "drawer-title",
|
|
67
|
+
...props
|
|
68
|
+
});
|
|
69
|
+
|
|
70
|
+
//#endregion
|
|
71
|
+
//#region src/components/drawer/drawer-trigger.tsx
|
|
72
|
+
const DrawerTrigger = ({ className, ...props }) => /* @__PURE__ */ jsx(Drawer.Trigger, {
|
|
73
|
+
className: cn("cursor-pointer", className),
|
|
74
|
+
"data-slot": "drawer-trigger",
|
|
75
|
+
...props
|
|
76
|
+
});
|
|
77
|
+
|
|
78
|
+
//#endregion
|
|
79
|
+
export { DrawerDescription as a, DrawerOverlay as c, DrawerFooter as i, DrawerClose as l, DrawerTitle as n, DrawerContent as o, DrawerHeader as r, DrawerPortal as s, DrawerTrigger as t };
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import * as react_jsx_runtime0 from "react/jsx-runtime";
|
|
2
|
+
import { ComponentProps } from "react";
|
|
3
|
+
import { Drawer } from "vaul";
|
|
4
|
+
|
|
5
|
+
//#region src/components/drawer/drawer-close.d.ts
|
|
6
|
+
type DrawerCloseProps = ComponentProps<typeof Drawer.Close>;
|
|
7
|
+
declare const DrawerClose: ({
|
|
8
|
+
...props
|
|
9
|
+
}: DrawerCloseProps) => react_jsx_runtime0.JSX.Element;
|
|
10
|
+
//#endregion
|
|
11
|
+
//#region src/components/drawer/drawer-content.d.ts
|
|
12
|
+
type DrawerContentProps = ComponentProps<typeof Drawer.Content>;
|
|
13
|
+
declare const DrawerContent: ({
|
|
14
|
+
className,
|
|
15
|
+
children,
|
|
16
|
+
...props
|
|
17
|
+
}: DrawerContentProps) => react_jsx_runtime0.JSX.Element;
|
|
18
|
+
//#endregion
|
|
19
|
+
//#region src/components/drawer/drawer-description.d.ts
|
|
20
|
+
type DrawerDescriptionProps = ComponentProps<typeof Drawer.Description>;
|
|
21
|
+
declare const DrawerDescription: ({
|
|
22
|
+
className,
|
|
23
|
+
...props
|
|
24
|
+
}: DrawerDescriptionProps) => react_jsx_runtime0.JSX.Element;
|
|
25
|
+
//#endregion
|
|
26
|
+
//#region src/components/drawer/drawer-footer.d.ts
|
|
27
|
+
type DrawerFooterProps = ComponentProps<"div">;
|
|
28
|
+
declare const DrawerFooter: ({
|
|
29
|
+
className,
|
|
30
|
+
...props
|
|
31
|
+
}: DrawerFooterProps) => react_jsx_runtime0.JSX.Element;
|
|
32
|
+
//#endregion
|
|
33
|
+
//#region src/components/drawer/drawer-header.d.ts
|
|
34
|
+
type DrawerHeaderProps = ComponentProps<"div">;
|
|
35
|
+
declare const DrawerHeader: ({
|
|
36
|
+
className,
|
|
37
|
+
...props
|
|
38
|
+
}: DrawerHeaderProps) => react_jsx_runtime0.JSX.Element;
|
|
39
|
+
//#endregion
|
|
40
|
+
//#region src/components/drawer/drawer-overlay.d.ts
|
|
41
|
+
type DrawerOverlayProps = ComponentProps<typeof Drawer.Overlay>;
|
|
42
|
+
declare const DrawerOverlay: ({
|
|
43
|
+
className,
|
|
44
|
+
...props
|
|
45
|
+
}: DrawerOverlayProps) => react_jsx_runtime0.JSX.Element;
|
|
46
|
+
//#endregion
|
|
47
|
+
//#region src/components/drawer/drawer-portal.d.ts
|
|
48
|
+
type DrawerPortalProps = ComponentProps<typeof Drawer.Portal>;
|
|
49
|
+
declare const DrawerPortal: ({
|
|
50
|
+
...props
|
|
51
|
+
}: DrawerPortalProps) => react_jsx_runtime0.JSX.Element;
|
|
52
|
+
//#endregion
|
|
53
|
+
//#region src/components/drawer/drawer-title.d.ts
|
|
54
|
+
type DrawerTitleProps = ComponentProps<typeof Drawer.Title>;
|
|
55
|
+
declare const DrawerTitle: ({
|
|
56
|
+
className,
|
|
57
|
+
...props
|
|
58
|
+
}: DrawerTitleProps) => react_jsx_runtime0.JSX.Element;
|
|
59
|
+
//#endregion
|
|
60
|
+
//#region src/components/drawer/drawer-trigger.d.ts
|
|
61
|
+
type DrawerTriggerProps = ComponentProps<typeof Drawer.Trigger>;
|
|
62
|
+
declare const DrawerTrigger: ({
|
|
63
|
+
className,
|
|
64
|
+
...props
|
|
65
|
+
}: DrawerTriggerProps) => react_jsx_runtime0.JSX.Element;
|
|
66
|
+
//#endregion
|
|
67
|
+
export { DrawerClose as _, DrawerPortal as a, DrawerOverlayProps as c, DrawerFooter as d, DrawerFooterProps as f, DrawerContentProps as g, DrawerContent as h, DrawerTitleProps as i, DrawerHeader as l, DrawerDescriptionProps as m, DrawerTriggerProps as n, DrawerPortalProps as o, DrawerDescription as p, DrawerTitle as r, DrawerOverlay as s, DrawerTrigger as t, DrawerHeaderProps as u, DrawerCloseProps as v };
|