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,98 @@
|
|
|
1
|
+
import { Button } from "./ui/button.js";
|
|
2
|
+
import { cn } from "tailwind-variants";
|
|
3
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
4
|
+
import { AlertDialog } from "@base-ui/react/alert-dialog";
|
|
5
|
+
|
|
6
|
+
//#region src/components/alert-dialog/alert-dialog-action.tsx
|
|
7
|
+
const AlertDialogAction = ({ className, ...props }) => /* @__PURE__ */ jsx(Button, {
|
|
8
|
+
className: cn(className),
|
|
9
|
+
"data-slot": "alert-dialog-action",
|
|
10
|
+
...props
|
|
11
|
+
});
|
|
12
|
+
|
|
13
|
+
//#endregion
|
|
14
|
+
//#region src/components/alert-dialog/alert-dialog-cancel.tsx
|
|
15
|
+
const AlertDialogCancel = ({ className, variant = "outline", size = "default", ...props }) => /* @__PURE__ */ jsx(AlertDialog.Close, {
|
|
16
|
+
className: cn(className),
|
|
17
|
+
"data-slot": "alert-dialog-cancel",
|
|
18
|
+
render: /* @__PURE__ */ jsx(Button, {
|
|
19
|
+
size,
|
|
20
|
+
variant
|
|
21
|
+
}),
|
|
22
|
+
...props
|
|
23
|
+
});
|
|
24
|
+
|
|
25
|
+
//#endregion
|
|
26
|
+
//#region src/components/alert-dialog/alert-dialog-overlay.tsx
|
|
27
|
+
const AlertDialogOverlay = ({ className, ...props }) => /* @__PURE__ */ jsx(AlertDialog.Backdrop, {
|
|
28
|
+
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),
|
|
29
|
+
"data-slot": "alert-dialog-overlay",
|
|
30
|
+
...props
|
|
31
|
+
});
|
|
32
|
+
|
|
33
|
+
//#endregion
|
|
34
|
+
//#region src/components/alert-dialog/alert-dialog-portal.tsx
|
|
35
|
+
const AlertDialogPortal = ({ ...props }) => /* @__PURE__ */ jsx(AlertDialog.Portal, {
|
|
36
|
+
"data-slot": "alert-dialog-portal",
|
|
37
|
+
...props
|
|
38
|
+
});
|
|
39
|
+
|
|
40
|
+
//#endregion
|
|
41
|
+
//#region src/components/alert-dialog/alert-dialog-content.tsx
|
|
42
|
+
const AlertDialogContent = ({ className, size = "default", ...props }) => /* @__PURE__ */ jsxs(AlertDialogPortal, { children: [/* @__PURE__ */ jsx(AlertDialogOverlay, {}), /* @__PURE__ */ jsx(AlertDialog.Popup, {
|
|
43
|
+
className: cn("data-closed:fade-out-0 data-open:fade-in-0 data-closed:zoom-out-95 data-open:zoom-in-95 group/alert-dialog-content fixed top-1/2 left-1/2 z-50 grid w-full -translate-x-1/2 -translate-y-1/2 gap-6 rounded-xl bg-background p-6 outline-none ring-1 ring-foreground/10 duration-100 data-[size=default]:max-w-xs data-[size=sm]:max-w-xs data-closed:animate-out data-open:animate-in data-[size=default]:sm:max-w-lg", className),
|
|
44
|
+
"data-size": size,
|
|
45
|
+
"data-slot": "alert-dialog-content",
|
|
46
|
+
...props
|
|
47
|
+
})] });
|
|
48
|
+
|
|
49
|
+
//#endregion
|
|
50
|
+
//#region src/components/alert-dialog/alert-dialog-description.tsx
|
|
51
|
+
const AlertDialogDescription = ({ className, ...props }) => /* @__PURE__ */ jsx(AlertDialog.Description, {
|
|
52
|
+
className: cn("text-balance text-muted-foreground text-sm md:text-pretty *:[a]:underline *:[a]:underline-offset-3 *:[a]:hover:text-foreground", className),
|
|
53
|
+
"data-slot": "alert-dialog-description",
|
|
54
|
+
...props
|
|
55
|
+
});
|
|
56
|
+
|
|
57
|
+
//#endregion
|
|
58
|
+
//#region src/components/alert-dialog/alert-dialog-footer.tsx
|
|
59
|
+
const AlertDialogFooter = ({ className, ...props }) => /* @__PURE__ */ jsx("div", {
|
|
60
|
+
className: cn("-mx-4 -mb-4 flex flex-col-reverse gap-2 rounded-b-xl p-4 group-data-[size=sm]/alert-dialog-content:grid group-data-[size=sm]/alert-dialog-content:grid-cols-2 sm:flex-row sm:justify-end", className),
|
|
61
|
+
"data-slot": "alert-dialog-footer",
|
|
62
|
+
...props
|
|
63
|
+
});
|
|
64
|
+
|
|
65
|
+
//#endregion
|
|
66
|
+
//#region src/components/alert-dialog/alert-dialog-header.tsx
|
|
67
|
+
const AlertDialogHeader = ({ className, ...props }) => /* @__PURE__ */ jsx("div", {
|
|
68
|
+
className: cn("grid grid-rows-[auto_1fr] place-items-center gap-1.5 text-center has-data-[slot=alert-dialog-media]:grid-rows-[auto_auto_1fr] has-data-[slot=alert-dialog-media]:gap-x-6 sm:group-data-[size=default]/alert-dialog-content:place-items-start sm:group-data-[size=default]/alert-dialog-content:text-left sm:group-data-[size=default]/alert-dialog-content:has-data-[slot=alert-dialog-media]:grid-rows-[auto_1fr]", className),
|
|
69
|
+
"data-slot": "alert-dialog-header",
|
|
70
|
+
...props
|
|
71
|
+
});
|
|
72
|
+
|
|
73
|
+
//#endregion
|
|
74
|
+
//#region src/components/alert-dialog/alert-dialog-media.tsx
|
|
75
|
+
const AlertDialogMedia = ({ className, ...props }) => /* @__PURE__ */ jsx("div", {
|
|
76
|
+
className: cn("mb-2 inline-flex size-10 items-center justify-center rounded-md bg-muted sm:group-data-[size=default]/alert-dialog-content:row-span-2 *:[svg:not([class*='size-'])]:size-6", className),
|
|
77
|
+
"data-slot": "alert-dialog-media",
|
|
78
|
+
...props
|
|
79
|
+
});
|
|
80
|
+
|
|
81
|
+
//#endregion
|
|
82
|
+
//#region src/components/alert-dialog/alert-dialog-title.tsx
|
|
83
|
+
const AlertDialogTitle = ({ className, ...props }) => /* @__PURE__ */ jsx(AlertDialog.Title, {
|
|
84
|
+
className: cn("font-medium text-sm sm:group-data-[size=default]/alert-dialog-content:group-has-data-[slot=alert-dialog-media]/alert-dialog-content:col-start-2", className),
|
|
85
|
+
"data-slot": "alert-dialog-title",
|
|
86
|
+
...props
|
|
87
|
+
});
|
|
88
|
+
|
|
89
|
+
//#endregion
|
|
90
|
+
//#region src/components/alert-dialog/alert-dialog-trigger.tsx
|
|
91
|
+
const AlertDialogTrigger = ({ className, ...props }) => /* @__PURE__ */ jsx(AlertDialog.Trigger, {
|
|
92
|
+
className: cn("cursor-pointer", className),
|
|
93
|
+
"data-slot": "alert-dialog-trigger",
|
|
94
|
+
...props
|
|
95
|
+
});
|
|
96
|
+
|
|
97
|
+
//#endregion
|
|
98
|
+
export { AlertDialogFooter as a, AlertDialogPortal as c, AlertDialogAction as d, AlertDialogHeader as i, AlertDialogOverlay as l, AlertDialogTitle as n, AlertDialogDescription as o, AlertDialogMedia as r, AlertDialogContent as s, AlertDialogTrigger as t, AlertDialogCancel as u };
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { cn } from "tailwind-variants";
|
|
2
|
+
import { jsx } from "react/jsx-runtime";
|
|
3
|
+
|
|
4
|
+
//#region src/components/alert/alert-action.tsx
|
|
5
|
+
const AlertAction = ({ className, ...props }) => /* @__PURE__ */ jsx("div", {
|
|
6
|
+
className: cn("absolute top-2 right-2", className),
|
|
7
|
+
"data-slot": "alert-action",
|
|
8
|
+
...props
|
|
9
|
+
});
|
|
10
|
+
|
|
11
|
+
//#endregion
|
|
12
|
+
//#region src/components/alert/alert-description.tsx
|
|
13
|
+
const AlertDescription = ({ className, ...props }) => /* @__PURE__ */ jsx("div", {
|
|
14
|
+
className: cn("text-balance text-muted-foreground text-sm md:text-pretty [&_a]:underline [&_a]:underline-offset-3 [&_a]:hover:text-foreground [&_p:not(:last-child)]:mb-4", className),
|
|
15
|
+
"data-slot": "alert-description",
|
|
16
|
+
...props
|
|
17
|
+
});
|
|
18
|
+
|
|
19
|
+
//#endregion
|
|
20
|
+
//#region src/components/alert/alert-title.tsx
|
|
21
|
+
const AlertTitle = ({ className, ...props }) => /* @__PURE__ */ jsx("div", {
|
|
22
|
+
className: cn("font-medium group-has-[>svg]/alert:col-start-2 [&_a]:underline [&_a]:underline-offset-3 [&_a]:hover:text-foreground", className),
|
|
23
|
+
"data-slot": "alert-title",
|
|
24
|
+
...props
|
|
25
|
+
});
|
|
26
|
+
|
|
27
|
+
//#endregion
|
|
28
|
+
export { AlertDescription as n, AlertAction as r, AlertTitle as t };
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import * as react_jsx_runtime0 from "react/jsx-runtime";
|
|
2
|
+
import { ComponentProps } from "react";
|
|
3
|
+
|
|
4
|
+
//#region src/components/alert/alert-action.d.ts
|
|
5
|
+
declare const AlertAction: ({
|
|
6
|
+
className,
|
|
7
|
+
...props
|
|
8
|
+
}: ComponentProps<"div">) => react_jsx_runtime0.JSX.Element;
|
|
9
|
+
//#endregion
|
|
10
|
+
//#region src/components/alert/alert-description.d.ts
|
|
11
|
+
declare const AlertDescription: ({
|
|
12
|
+
className,
|
|
13
|
+
...props
|
|
14
|
+
}: ComponentProps<"div">) => react_jsx_runtime0.JSX.Element;
|
|
15
|
+
//#endregion
|
|
16
|
+
//#region src/components/alert/alert-title.d.ts
|
|
17
|
+
declare const AlertTitle: ({
|
|
18
|
+
className,
|
|
19
|
+
...props
|
|
20
|
+
}: ComponentProps<"div">) => react_jsx_runtime0.JSX.Element;
|
|
21
|
+
//#endregion
|
|
22
|
+
export { AlertDescription as n, AlertAction as r, AlertTitle as t };
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import * as react_jsx_runtime0 from "react/jsx-runtime";
|
|
2
|
+
import { HTMLAttributes } from "react";
|
|
3
|
+
|
|
4
|
+
//#region src/components/announcement/announcement-tag.d.ts
|
|
5
|
+
type AnnouncementTagProps = HTMLAttributes<HTMLDivElement>;
|
|
6
|
+
declare const AnnouncementTag: ({
|
|
7
|
+
className,
|
|
8
|
+
...props
|
|
9
|
+
}: AnnouncementTagProps) => react_jsx_runtime0.JSX.Element;
|
|
10
|
+
//#endregion
|
|
11
|
+
//#region src/components/announcement/announcement-title.d.ts
|
|
12
|
+
type AnnouncementTitleProps = HTMLAttributes<HTMLDivElement>;
|
|
13
|
+
declare const AnnouncementTitle: ({
|
|
14
|
+
className,
|
|
15
|
+
...props
|
|
16
|
+
}: AnnouncementTitleProps) => react_jsx_runtime0.JSX.Element;
|
|
17
|
+
//#endregion
|
|
18
|
+
export { AnnouncementTagProps as i, AnnouncementTitleProps as n, AnnouncementTag as r, AnnouncementTitle as t };
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { cn } from "tailwind-variants";
|
|
2
|
+
import { jsx } from "react/jsx-runtime";
|
|
3
|
+
|
|
4
|
+
//#region src/components/announcement/announcement-tag.tsx
|
|
5
|
+
const AnnouncementTag = ({ className, ...props }) => /* @__PURE__ */ jsx("div", {
|
|
6
|
+
className: cn("-ml-2.5 shrink-0 truncate rounded-full bg-foreground/5 px-2.5 py-1 text-xs", "group-[.announcement-themed]:bg-background/60", className),
|
|
7
|
+
...props
|
|
8
|
+
});
|
|
9
|
+
|
|
10
|
+
//#endregion
|
|
11
|
+
//#region src/components/announcement/announcement-title.tsx
|
|
12
|
+
const AnnouncementTitle = ({ className, ...props }) => /* @__PURE__ */ jsx("div", {
|
|
13
|
+
className: cn("flex items-center gap-1 truncate py-1", className),
|
|
14
|
+
...props
|
|
15
|
+
});
|
|
16
|
+
|
|
17
|
+
//#endregion
|
|
18
|
+
export { AnnouncementTag as n, AnnouncementTitle as t };
|
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
import * as react_jsx_runtime0 from "react/jsx-runtime";
|
|
2
|
+
import { ComponentProps } from "react";
|
|
3
|
+
import { Autocomplete } from "@base-ui/react/autocomplete";
|
|
4
|
+
|
|
5
|
+
//#region src/components/autocomplete/autocomplete-clear.d.ts
|
|
6
|
+
type AutocompleteClearProps = ComponentProps<typeof Autocomplete.Clear>;
|
|
7
|
+
declare const AutocompleteClear: ({
|
|
8
|
+
className,
|
|
9
|
+
...props
|
|
10
|
+
}: AutocompleteClearProps) => react_jsx_runtime0.JSX.Element;
|
|
11
|
+
//#endregion
|
|
12
|
+
//#region src/components/autocomplete/autocomplete-collection.d.ts
|
|
13
|
+
type AutocompleteCollectionProps = ComponentProps<typeof Autocomplete.Collection>;
|
|
14
|
+
declare const AutocompleteCollection: (props: AutocompleteCollectionProps) => react_jsx_runtime0.JSX.Element;
|
|
15
|
+
//#endregion
|
|
16
|
+
//#region src/components/autocomplete/autocomplete-content.d.ts
|
|
17
|
+
type AutocompleteContentProps = ComponentProps<typeof Autocomplete.Popup> & {
|
|
18
|
+
sideOffset?: Autocomplete.Positioner.Props["sideOffset"];
|
|
19
|
+
};
|
|
20
|
+
declare const AutocompleteContent: ({
|
|
21
|
+
className,
|
|
22
|
+
children,
|
|
23
|
+
sideOffset,
|
|
24
|
+
...props
|
|
25
|
+
}: AutocompleteContentProps) => react_jsx_runtime0.JSX.Element;
|
|
26
|
+
//#endregion
|
|
27
|
+
//#region src/components/autocomplete/autocomplete-empty.d.ts
|
|
28
|
+
type AutocompleteEmptyProps = ComponentProps<typeof Autocomplete.Empty>;
|
|
29
|
+
declare const AutocompleteEmpty: ({
|
|
30
|
+
className,
|
|
31
|
+
...props
|
|
32
|
+
}: AutocompleteEmptyProps) => react_jsx_runtime0.JSX.Element;
|
|
33
|
+
//#endregion
|
|
34
|
+
//#region src/components/autocomplete/autocomplete-group.d.ts
|
|
35
|
+
type AutocompleteGroupProps = ComponentProps<typeof Autocomplete.Group>;
|
|
36
|
+
declare const AutocompleteGroup: (props: AutocompleteGroupProps) => react_jsx_runtime0.JSX.Element;
|
|
37
|
+
//#endregion
|
|
38
|
+
//#region src/components/autocomplete/autocomplete-group-label.d.ts
|
|
39
|
+
type AutocompleteGroupLabelProps = ComponentProps<typeof Autocomplete.GroupLabel>;
|
|
40
|
+
declare const AutocompleteGroupLabel: ({
|
|
41
|
+
className,
|
|
42
|
+
...props
|
|
43
|
+
}: AutocompleteGroupLabelProps) => react_jsx_runtime0.JSX.Element;
|
|
44
|
+
//#endregion
|
|
45
|
+
//#region src/components/autocomplete/autocomplete-icon.d.ts
|
|
46
|
+
type AutocompleteIconProps = ComponentProps<typeof Autocomplete.Icon>;
|
|
47
|
+
declare const AutocompleteIcon: (props: AutocompleteIconProps) => react_jsx_runtime0.JSX.Element;
|
|
48
|
+
//#endregion
|
|
49
|
+
//#region src/components/autocomplete/autocomplete-input.d.ts
|
|
50
|
+
type AutocompleteInputProps = ComponentProps<typeof Autocomplete.Input>;
|
|
51
|
+
declare const AutocompleteInput: ({
|
|
52
|
+
className,
|
|
53
|
+
...props
|
|
54
|
+
}: AutocompleteInputProps) => react_jsx_runtime0.JSX.Element;
|
|
55
|
+
//#endregion
|
|
56
|
+
//#region src/components/autocomplete/autocomplete-item.d.ts
|
|
57
|
+
type AutocompleteItemProps = ComponentProps<typeof Autocomplete.Item>;
|
|
58
|
+
declare const AutocompleteItem: ({
|
|
59
|
+
className,
|
|
60
|
+
children,
|
|
61
|
+
...props
|
|
62
|
+
}: AutocompleteItemProps) => react_jsx_runtime0.JSX.Element;
|
|
63
|
+
//#endregion
|
|
64
|
+
//#region src/components/autocomplete/autocomplete-list.d.ts
|
|
65
|
+
type AutocompleteListProps = ComponentProps<typeof Autocomplete.List>;
|
|
66
|
+
declare const AutocompleteList: (props: AutocompleteListProps) => react_jsx_runtime0.JSX.Element;
|
|
67
|
+
//#endregion
|
|
68
|
+
//#region src/components/autocomplete/autocomplete-portal.d.ts
|
|
69
|
+
type AutocompletePortalProps = ComponentProps<typeof Autocomplete.Portal>;
|
|
70
|
+
declare const AutocompletePortal: (props: AutocompletePortalProps) => react_jsx_runtime0.JSX.Element;
|
|
71
|
+
//#endregion
|
|
72
|
+
//#region src/components/autocomplete/autocomplete-positioner.d.ts
|
|
73
|
+
type AutocompletePositionerProps = ComponentProps<typeof Autocomplete.Positioner>;
|
|
74
|
+
declare const AutocompletePositioner: ({
|
|
75
|
+
className,
|
|
76
|
+
...props
|
|
77
|
+
}: AutocompletePositionerProps) => react_jsx_runtime0.JSX.Element;
|
|
78
|
+
//#endregion
|
|
79
|
+
//#region src/components/autocomplete/autocomplete-row.d.ts
|
|
80
|
+
type AutocompleteRowProps = ComponentProps<typeof Autocomplete.Row>;
|
|
81
|
+
declare const AutocompleteRow: ({
|
|
82
|
+
className,
|
|
83
|
+
...props
|
|
84
|
+
}: AutocompleteRowProps) => react_jsx_runtime0.JSX.Element;
|
|
85
|
+
//#endregion
|
|
86
|
+
//#region src/components/autocomplete/autocomplete-separator.d.ts
|
|
87
|
+
type AutocompleteSeparatorProps = ComponentProps<typeof Autocomplete.Separator>;
|
|
88
|
+
declare const AutocompleteSeparator: ({
|
|
89
|
+
className,
|
|
90
|
+
...props
|
|
91
|
+
}: AutocompleteSeparatorProps) => react_jsx_runtime0.JSX.Element;
|
|
92
|
+
//#endregion
|
|
93
|
+
//#region src/components/autocomplete/autocomplete-status.d.ts
|
|
94
|
+
type AutocompleteStatusProps = ComponentProps<typeof Autocomplete.Status>;
|
|
95
|
+
declare const AutocompleteStatus: ({
|
|
96
|
+
className,
|
|
97
|
+
...props
|
|
98
|
+
}: AutocompleteStatusProps) => react_jsx_runtime0.JSX.Element;
|
|
99
|
+
//#endregion
|
|
100
|
+
//#region src/components/autocomplete/autocomplete-trigger.d.ts
|
|
101
|
+
type AutocompleteTriggerProps = ComponentProps<typeof Autocomplete.Trigger>;
|
|
102
|
+
declare const AutocompleteTrigger: ({
|
|
103
|
+
className,
|
|
104
|
+
...props
|
|
105
|
+
}: AutocompleteTriggerProps) => react_jsx_runtime0.JSX.Element;
|
|
106
|
+
//#endregion
|
|
107
|
+
//#region src/components/autocomplete/autocomplete-value.d.ts
|
|
108
|
+
type AutocompleteValueProps = ComponentProps<typeof Autocomplete.Value>;
|
|
109
|
+
declare const AutocompleteValue: (props: AutocompleteValueProps) => react_jsx_runtime0.JSX.Element;
|
|
110
|
+
//#endregion
|
|
111
|
+
export { AutocompleteContentProps as A, AutocompleteGroupLabel as C, AutocompleteEmpty as D, AutocompleteGroupProps as E, AutocompleteCollectionProps as M, AutocompleteClear as N, AutocompleteEmptyProps as O, AutocompleteClearProps as P, AutocompleteIconProps as S, AutocompleteGroup as T, AutocompleteItem as _, AutocompleteStatus as a, AutocompleteInputProps as b, AutocompleteSeparatorProps as c, AutocompletePositioner as d, AutocompletePositionerProps as f, AutocompleteListProps as g, AutocompleteList as h, AutocompleteTriggerProps as i, AutocompleteCollection as j, AutocompleteContent as k, AutocompleteRow as l, AutocompletePortalProps as m, AutocompleteValueProps as n, AutocompleteStatusProps as o, AutocompletePortal as p, AutocompleteTrigger as r, AutocompleteSeparator as s, AutocompleteValue as t, AutocompleteRowProps as u, AutocompleteItemProps as v, AutocompleteGroupLabelProps as w, AutocompleteIcon as x, AutocompleteInput as y };
|
|
@@ -0,0 +1,141 @@
|
|
|
1
|
+
import { cn } from "tailwind-variants";
|
|
2
|
+
import { jsx } from "react/jsx-runtime";
|
|
3
|
+
import { Autocomplete } from "@base-ui/react/autocomplete";
|
|
4
|
+
|
|
5
|
+
//#region src/components/autocomplete/autocomplete-clear.tsx
|
|
6
|
+
const AutocompleteClear = ({ className, ...props }) => /* @__PURE__ */ jsx(Autocomplete.Clear, {
|
|
7
|
+
className: cn("cursor-pointer", className),
|
|
8
|
+
"data-slot": "autocomplete-clear",
|
|
9
|
+
...props
|
|
10
|
+
});
|
|
11
|
+
|
|
12
|
+
//#endregion
|
|
13
|
+
//#region src/components/autocomplete/autocomplete-collection.tsx
|
|
14
|
+
const AutocompleteCollection = (props) => /* @__PURE__ */ jsx(Autocomplete.Collection, {
|
|
15
|
+
"data-slot": "autocomplete-collection",
|
|
16
|
+
...props
|
|
17
|
+
});
|
|
18
|
+
|
|
19
|
+
//#endregion
|
|
20
|
+
//#region src/components/autocomplete/autocomplete-portal.tsx
|
|
21
|
+
const AutocompletePortal = (props) => /* @__PURE__ */ jsx(Autocomplete.Portal, {
|
|
22
|
+
"data-slot": "autocomplete-portal",
|
|
23
|
+
...props
|
|
24
|
+
});
|
|
25
|
+
|
|
26
|
+
//#endregion
|
|
27
|
+
//#region src/components/autocomplete/autocomplete-positioner.tsx
|
|
28
|
+
const AutocompletePositioner = ({ className, ...props }) => /* @__PURE__ */ jsx(Autocomplete.Positioner, {
|
|
29
|
+
className: cn("z-50", className),
|
|
30
|
+
"data-slot": "autocomplete-positioner",
|
|
31
|
+
...props
|
|
32
|
+
});
|
|
33
|
+
|
|
34
|
+
//#endregion
|
|
35
|
+
//#region src/components/autocomplete/autocomplete-content.tsx
|
|
36
|
+
const AutocompleteContent = ({ className, children, sideOffset = 4, ...props }) => /* @__PURE__ */ jsx(AutocompletePortal, { children: /* @__PURE__ */ jsx(AutocompletePositioner, {
|
|
37
|
+
className: "outline-none",
|
|
38
|
+
sideOffset,
|
|
39
|
+
children: /* @__PURE__ */ jsx(Autocomplete.Popup, {
|
|
40
|
+
className: cn("relative z-50 max-h-[min(var(--available-height),20rem)] min-w-(--anchor-width) origin-(--transform-origin) overflow-y-auto overflow-x-hidden overscroll-contain rounded-md border bg-popover p-1 text-popover-foreground shadow-md", className),
|
|
41
|
+
"data-slot": "autocomplete-content",
|
|
42
|
+
...props,
|
|
43
|
+
children
|
|
44
|
+
})
|
|
45
|
+
}) });
|
|
46
|
+
|
|
47
|
+
//#endregion
|
|
48
|
+
//#region src/components/autocomplete/autocomplete-empty.tsx
|
|
49
|
+
const AutocompleteEmpty = ({ className, ...props }) => /* @__PURE__ */ jsx(Autocomplete.Empty, {
|
|
50
|
+
className: cn("py-6 text-center text-sm empty:m-0 empty:p-0", className),
|
|
51
|
+
"data-slot": "autocomplete-empty",
|
|
52
|
+
...props
|
|
53
|
+
});
|
|
54
|
+
|
|
55
|
+
//#endregion
|
|
56
|
+
//#region src/components/autocomplete/autocomplete-group.tsx
|
|
57
|
+
const AutocompleteGroup = (props) => /* @__PURE__ */ jsx(Autocomplete.Group, {
|
|
58
|
+
"data-slot": "autocomplete-group",
|
|
59
|
+
...props
|
|
60
|
+
});
|
|
61
|
+
|
|
62
|
+
//#endregion
|
|
63
|
+
//#region src/components/autocomplete/autocomplete-group-label.tsx
|
|
64
|
+
const AutocompleteGroupLabel = ({ className, ...props }) => /* @__PURE__ */ jsx(Autocomplete.GroupLabel, {
|
|
65
|
+
className: cn("px-2 py-1.5 font-medium text-muted-foreground text-xs", className),
|
|
66
|
+
"data-slot": "autocomplete-group-label",
|
|
67
|
+
...props
|
|
68
|
+
});
|
|
69
|
+
|
|
70
|
+
//#endregion
|
|
71
|
+
//#region src/components/autocomplete/autocomplete-icon.tsx
|
|
72
|
+
const AutocompleteIcon = (props) => /* @__PURE__ */ jsx(Autocomplete.Icon, {
|
|
73
|
+
"data-slot": "autocomplete-icon",
|
|
74
|
+
...props
|
|
75
|
+
});
|
|
76
|
+
|
|
77
|
+
//#endregion
|
|
78
|
+
//#region src/components/autocomplete/autocomplete-input.tsx
|
|
79
|
+
const AutocompleteInput = ({ className, ...props }) => /* @__PURE__ */ jsx(Autocomplete.Input, {
|
|
80
|
+
className: cn("flex h-9 w-full min-w-0 rounded-md border bg-input px-3 py-1 text-base shadow-xs outline-none transition-[color,box-shadow,border-color] selection:bg-primary selection:text-primary-foreground placeholder:text-muted-foreground disabled:pointer-events-none disabled:opacity-50 group-hover:border-ring/70 md:text-sm", "focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50", "aria-invalid:border-destructive aria-invalid:ring-destructive/50", className),
|
|
81
|
+
"data-slot": "autocomplete-input",
|
|
82
|
+
...props
|
|
83
|
+
});
|
|
84
|
+
|
|
85
|
+
//#endregion
|
|
86
|
+
//#region src/components/autocomplete/autocomplete-item.tsx
|
|
87
|
+
const AutocompleteItem = ({ className, children, ...props }) => /* @__PURE__ */ jsx(Autocomplete.Item, {
|
|
88
|
+
className: cn("relative flex w-full cursor-pointer select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden data-disabled:pointer-events-none data-disabled:cursor-not-allowed data-highlighted:bg-accent data-highlighted:text-accent-foreground data-disabled:opacity-50 [&_svg:not([class*='size-'])]:size-4 [&_svg:not([class*='text-'])]:text-muted-foreground [&_svg]:pointer-events-none [&_svg]:shrink-0", className),
|
|
89
|
+
"data-slot": "autocomplete-item",
|
|
90
|
+
...props,
|
|
91
|
+
children
|
|
92
|
+
});
|
|
93
|
+
|
|
94
|
+
//#endregion
|
|
95
|
+
//#region src/components/autocomplete/autocomplete-list.tsx
|
|
96
|
+
const AutocompleteList = (props) => /* @__PURE__ */ jsx(Autocomplete.List, {
|
|
97
|
+
"data-slot": "autocomplete-list",
|
|
98
|
+
...props
|
|
99
|
+
});
|
|
100
|
+
|
|
101
|
+
//#endregion
|
|
102
|
+
//#region src/components/autocomplete/autocomplete-row.tsx
|
|
103
|
+
const AutocompleteRow = ({ className, ...props }) => /* @__PURE__ */ jsx(Autocomplete.Row, {
|
|
104
|
+
className: cn("grid w-full scroll-my-1.5", className),
|
|
105
|
+
"data-slot": "autocomplete-row",
|
|
106
|
+
...props
|
|
107
|
+
});
|
|
108
|
+
|
|
109
|
+
//#endregion
|
|
110
|
+
//#region src/components/autocomplete/autocomplete-separator.tsx
|
|
111
|
+
const AutocompleteSeparator = ({ className, ...props }) => /* @__PURE__ */ jsx(Autocomplete.Separator, {
|
|
112
|
+
className: cn("pointer-events-none -mx-1 my-1 h-px bg-border", className),
|
|
113
|
+
"data-slot": "autocomplete-separator",
|
|
114
|
+
...props
|
|
115
|
+
});
|
|
116
|
+
|
|
117
|
+
//#endregion
|
|
118
|
+
//#region src/components/autocomplete/autocomplete-status.tsx
|
|
119
|
+
const AutocompleteStatus = ({ className, ...props }) => /* @__PURE__ */ jsx(Autocomplete.Status, {
|
|
120
|
+
className: cn("flex items-center gap-2 px-2 py-1.5 text-muted-foreground text-sm", className),
|
|
121
|
+
"data-slot": "autocomplete-status",
|
|
122
|
+
...props
|
|
123
|
+
});
|
|
124
|
+
|
|
125
|
+
//#endregion
|
|
126
|
+
//#region src/components/autocomplete/autocomplete-trigger.tsx
|
|
127
|
+
const AutocompleteTrigger = ({ className, ...props }) => /* @__PURE__ */ jsx(Autocomplete.Trigger, {
|
|
128
|
+
className: cn("cursor-pointer", className),
|
|
129
|
+
"data-slot": "autocomplete-trigger",
|
|
130
|
+
...props
|
|
131
|
+
});
|
|
132
|
+
|
|
133
|
+
//#endregion
|
|
134
|
+
//#region src/components/autocomplete/autocomplete-value.tsx
|
|
135
|
+
const AutocompleteValue = (props) => /* @__PURE__ */ jsx(Autocomplete.Value, {
|
|
136
|
+
"data-slot": "autocomplete-value",
|
|
137
|
+
...props
|
|
138
|
+
});
|
|
139
|
+
|
|
140
|
+
//#endregion
|
|
141
|
+
export { AutocompleteClear as _, AutocompleteRow as a, AutocompleteInput as c, AutocompleteGroup as d, AutocompleteEmpty as f, AutocompleteCollection as g, AutocompletePortal as h, AutocompleteSeparator as i, AutocompleteIcon as l, AutocompletePositioner as m, AutocompleteTrigger as n, AutocompleteList as o, AutocompleteContent as p, AutocompleteStatus as r, AutocompleteItem as s, AutocompleteValue as t, AutocompleteGroupLabel as u };
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import * as react_jsx_runtime0 from "react/jsx-runtime";
|
|
2
|
+
import { ComponentProps } from "react";
|
|
3
|
+
import { Avatar } from "@base-ui/react/avatar";
|
|
4
|
+
|
|
5
|
+
//#region src/components/avatar/avatar-badge.d.ts
|
|
6
|
+
declare const AvatarBadge: ({
|
|
7
|
+
className,
|
|
8
|
+
...props
|
|
9
|
+
}: ComponentProps<"span">) => react_jsx_runtime0.JSX.Element;
|
|
10
|
+
//#endregion
|
|
11
|
+
//#region src/components/avatar/avatar-fallback.d.ts
|
|
12
|
+
declare const AvatarFallback: ({
|
|
13
|
+
className,
|
|
14
|
+
...props
|
|
15
|
+
}: Avatar.Fallback.Props) => react_jsx_runtime0.JSX.Element;
|
|
16
|
+
//#endregion
|
|
17
|
+
//#region src/components/avatar/avatar-group.d.ts
|
|
18
|
+
declare const AvatarGroup: ({
|
|
19
|
+
className,
|
|
20
|
+
...props
|
|
21
|
+
}: ComponentProps<"div">) => react_jsx_runtime0.JSX.Element;
|
|
22
|
+
//#endregion
|
|
23
|
+
//#region src/components/avatar/avatar-group-count.d.ts
|
|
24
|
+
declare const AvatarGroupCount: ({
|
|
25
|
+
className,
|
|
26
|
+
...props
|
|
27
|
+
}: ComponentProps<"div">) => react_jsx_runtime0.JSX.Element;
|
|
28
|
+
//#endregion
|
|
29
|
+
//#region src/components/avatar/avatar-image.d.ts
|
|
30
|
+
declare const AvatarImage: ({
|
|
31
|
+
className,
|
|
32
|
+
...props
|
|
33
|
+
}: Avatar.Image.Props) => react_jsx_runtime0.JSX.Element;
|
|
34
|
+
//#endregion
|
|
35
|
+
export { AvatarBadge as a, AvatarFallback as i, AvatarGroupCount as n, AvatarGroup as r, AvatarImage as t };
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { cn } from "tailwind-variants";
|
|
2
|
+
import { jsx } from "react/jsx-runtime";
|
|
3
|
+
import { Avatar } from "@base-ui/react/avatar";
|
|
4
|
+
|
|
5
|
+
//#region src/components/avatar/avatar-badge.tsx
|
|
6
|
+
const AvatarBadge = ({ className, ...props }) => /* @__PURE__ */ jsx("span", {
|
|
7
|
+
className: cn("absolute right-0 bottom-0 z-10 inline-flex select-none items-center justify-center rounded-full bg-primary text-primary-foreground bg-blend-color ring-2 ring-background", "group-data-[size=sm]/avatar:size-2 group-data-[size=sm]/avatar:[&>svg]:hidden", "group-data-[size=default]/avatar:size-2.5 group-data-[size=default]/avatar:[&>svg]:size-2", "group-data-[size=lg]/avatar:size-3 group-data-[size=lg]/avatar:[&>svg]:size-2", className),
|
|
8
|
+
"data-slot": "avatar-badge",
|
|
9
|
+
...props
|
|
10
|
+
});
|
|
11
|
+
|
|
12
|
+
//#endregion
|
|
13
|
+
//#region src/components/avatar/avatar-fallback.tsx
|
|
14
|
+
const AvatarFallback = ({ className, ...props }) => /* @__PURE__ */ jsx(Avatar.Fallback, {
|
|
15
|
+
className: cn("flex size-full items-center justify-center rounded-full bg-muted text-muted-foreground text-sm group-data-[size=sm]/avatar:text-xs", className),
|
|
16
|
+
"data-slot": "avatar-fallback",
|
|
17
|
+
...props
|
|
18
|
+
});
|
|
19
|
+
|
|
20
|
+
//#endregion
|
|
21
|
+
//#region src/components/avatar/avatar-group.tsx
|
|
22
|
+
const AvatarGroup = ({ className, ...props }) => /* @__PURE__ */ jsx("div", {
|
|
23
|
+
className: cn("group/avatar-group flex -space-x-2 *:data-[slot=avatar]:ring-2 *:data-[slot=avatar]:ring-background", className),
|
|
24
|
+
"data-slot": "avatar-group",
|
|
25
|
+
...props
|
|
26
|
+
});
|
|
27
|
+
|
|
28
|
+
//#endregion
|
|
29
|
+
//#region src/components/avatar/avatar-group-count.tsx
|
|
30
|
+
const AvatarGroupCount = ({ className, ...props }) => /* @__PURE__ */ jsx("div", {
|
|
31
|
+
className: cn("relative flex size-8 shrink-0 items-center justify-center rounded-full bg-muted text-muted-foreground text-sm ring-2 ring-background group-has-data-[size=lg]/avatar-group:size-10 group-has-data-[size=sm]/avatar-group:size-6 [&>svg]:size-4 group-has-data-[size=lg]/avatar-group:[&>svg]:size-5 group-has-data-[size=sm]/avatar-group:[&>svg]:size-3", className),
|
|
32
|
+
"data-slot": "avatar-group-count",
|
|
33
|
+
...props
|
|
34
|
+
});
|
|
35
|
+
|
|
36
|
+
//#endregion
|
|
37
|
+
//#region src/components/avatar/avatar-image.tsx
|
|
38
|
+
const AvatarImage = ({ className, ...props }) => /* @__PURE__ */ jsx(Avatar.Image, {
|
|
39
|
+
className: cn("aspect-square size-full rounded-full object-cover", className),
|
|
40
|
+
"data-slot": "avatar-image",
|
|
41
|
+
...props
|
|
42
|
+
});
|
|
43
|
+
|
|
44
|
+
//#endregion
|
|
45
|
+
export { AvatarBadge as a, AvatarFallback as i, AvatarGroupCount as n, AvatarGroup as r, AvatarImage as t };
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import * as react_jsx_runtime0 from "react/jsx-runtime";
|
|
2
|
+
import { useRender } from "@base-ui/react/use-render";
|
|
3
|
+
import * as react from "react";
|
|
4
|
+
import { ComponentProps } from "react";
|
|
5
|
+
|
|
6
|
+
//#region src/components/breadcrumb/breadcrumb-ellipsis.d.ts
|
|
7
|
+
declare const BreadcrumbEllipsis: ({
|
|
8
|
+
className,
|
|
9
|
+
...props
|
|
10
|
+
}: ComponentProps<"span">) => react_jsx_runtime0.JSX.Element;
|
|
11
|
+
//#endregion
|
|
12
|
+
//#region src/components/breadcrumb/breadcrumb-item.d.ts
|
|
13
|
+
declare const BreadcrumbItem: ({
|
|
14
|
+
className,
|
|
15
|
+
...props
|
|
16
|
+
}: ComponentProps<"li">) => react_jsx_runtime0.JSX.Element;
|
|
17
|
+
//#endregion
|
|
18
|
+
//#region src/components/breadcrumb/breadcrumb-link.d.ts
|
|
19
|
+
declare const BreadcrumbLink: ({
|
|
20
|
+
className,
|
|
21
|
+
render,
|
|
22
|
+
...props
|
|
23
|
+
}: useRender.ComponentProps<"a">) => react.ReactElement<unknown, string | react.JSXElementConstructor<any>>;
|
|
24
|
+
//#endregion
|
|
25
|
+
//#region src/components/breadcrumb/breadcrumb-list.d.ts
|
|
26
|
+
declare const BreadcrumbList: ({
|
|
27
|
+
className,
|
|
28
|
+
...props
|
|
29
|
+
}: ComponentProps<"ol">) => react_jsx_runtime0.JSX.Element;
|
|
30
|
+
//#endregion
|
|
31
|
+
//#region src/components/breadcrumb/breadcrumb-page.d.ts
|
|
32
|
+
declare const BreadcrumbPage: ({
|
|
33
|
+
className,
|
|
34
|
+
...props
|
|
35
|
+
}: ComponentProps<"span">) => react_jsx_runtime0.JSX.Element;
|
|
36
|
+
//#endregion
|
|
37
|
+
//#region src/components/breadcrumb/breadcrumb-separator.d.ts
|
|
38
|
+
declare const BreadcrumbSeparator: ({
|
|
39
|
+
children,
|
|
40
|
+
className,
|
|
41
|
+
...props
|
|
42
|
+
}: ComponentProps<"li">) => react_jsx_runtime0.JSX.Element;
|
|
43
|
+
//#endregion
|
|
44
|
+
export { BreadcrumbItem as a, BreadcrumbLink as i, BreadcrumbPage as n, BreadcrumbEllipsis as o, BreadcrumbList as r, BreadcrumbSeparator as t };
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import { cn } from "tailwind-variants";
|
|
2
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
3
|
+
import { ArrowRight01Icon, MoreHorizontalCircle01Icon } from "@hugeicons/core-free-icons";
|
|
4
|
+
import { HugeiconsIcon } from "@hugeicons/react";
|
|
5
|
+
import { mergeProps } from "@base-ui/react/merge-props";
|
|
6
|
+
import { useRender } from "@base-ui/react/use-render";
|
|
7
|
+
|
|
8
|
+
//#region src/components/breadcrumb/breadcrumb-ellipsis.tsx
|
|
9
|
+
const BreadcrumbEllipsis = ({ className, ...props }) => /* @__PURE__ */ jsxs("span", {
|
|
10
|
+
"aria-hidden": "true",
|
|
11
|
+
className: cn("flex size-5 items-center justify-center [&>svg]:size-4", className),
|
|
12
|
+
"data-slot": "breadcrumb-ellipsis",
|
|
13
|
+
role: "presentation",
|
|
14
|
+
...props,
|
|
15
|
+
children: [/* @__PURE__ */ jsx(HugeiconsIcon, {
|
|
16
|
+
icon: MoreHorizontalCircle01Icon,
|
|
17
|
+
strokeWidth: 2
|
|
18
|
+
}), /* @__PURE__ */ jsx("span", {
|
|
19
|
+
className: "sr-only",
|
|
20
|
+
children: "More"
|
|
21
|
+
})]
|
|
22
|
+
});
|
|
23
|
+
|
|
24
|
+
//#endregion
|
|
25
|
+
//#region src/components/breadcrumb/breadcrumb-item.tsx
|
|
26
|
+
const BreadcrumbItem = ({ className, ...props }) => /* @__PURE__ */ jsx("li", {
|
|
27
|
+
className: cn("inline-flex items-center gap-1", className),
|
|
28
|
+
"data-slot": "breadcrumb-item",
|
|
29
|
+
...props
|
|
30
|
+
});
|
|
31
|
+
|
|
32
|
+
//#endregion
|
|
33
|
+
//#region src/components/breadcrumb/breadcrumb-link.tsx
|
|
34
|
+
const BreadcrumbLink = ({ className, render, ...props }) => useRender({
|
|
35
|
+
defaultTagName: "a",
|
|
36
|
+
props: mergeProps({ className: cn("cursor-pointer transition-colors hover:text-foreground", className) }, props),
|
|
37
|
+
render,
|
|
38
|
+
state: { slot: "breadcrumb-link" }
|
|
39
|
+
});
|
|
40
|
+
|
|
41
|
+
//#endregion
|
|
42
|
+
//#region src/components/breadcrumb/breadcrumb-list.tsx
|
|
43
|
+
const BreadcrumbList = ({ className, ...props }) => /* @__PURE__ */ jsx("ol", {
|
|
44
|
+
className: cn("flex flex-wrap items-center gap-1.5 break-words text-muted-foreground text-sm sm:gap-2.5", className),
|
|
45
|
+
"data-slot": "breadcrumb-list",
|
|
46
|
+
...props
|
|
47
|
+
});
|
|
48
|
+
|
|
49
|
+
//#endregion
|
|
50
|
+
//#region src/components/breadcrumb/breadcrumb-page.tsx
|
|
51
|
+
const BreadcrumbPage = ({ className, ...props }) => /* @__PURE__ */ jsx("span", {
|
|
52
|
+
"aria-current": "page",
|
|
53
|
+
"aria-disabled": "true",
|
|
54
|
+
className: cn("font-normal text-foreground", className),
|
|
55
|
+
"data-slot": "breadcrumb-page",
|
|
56
|
+
...props
|
|
57
|
+
});
|
|
58
|
+
|
|
59
|
+
//#endregion
|
|
60
|
+
//#region src/components/breadcrumb/breadcrumb-separator.tsx
|
|
61
|
+
const BreadcrumbSeparator = ({ children, className, ...props }) => /* @__PURE__ */ jsx("li", {
|
|
62
|
+
"aria-hidden": "true",
|
|
63
|
+
className: cn("[&>svg]:size-3.5", className),
|
|
64
|
+
"data-slot": "breadcrumb-separator",
|
|
65
|
+
role: "presentation",
|
|
66
|
+
...props,
|
|
67
|
+
children: children ?? /* @__PURE__ */ jsx(HugeiconsIcon, {
|
|
68
|
+
icon: ArrowRight01Icon,
|
|
69
|
+
strokeWidth: 2
|
|
70
|
+
})
|
|
71
|
+
});
|
|
72
|
+
|
|
73
|
+
//#endregion
|
|
74
|
+
export { BreadcrumbItem as a, BreadcrumbLink as i, BreadcrumbPage as n, BreadcrumbEllipsis as o, BreadcrumbList as r, BreadcrumbSeparator as t };
|