@web-my-money/primitives 1.0.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/dist/accordion/index.d.mts +9 -0
- package/dist/accordion/index.d.ts +9 -0
- package/dist/accordion/index.js +99 -0
- package/dist/accordion/index.mjs +14 -0
- package/dist/alert-dialog/index.d.mts +22 -0
- package/dist/alert-dialog/index.d.ts +22 -0
- package/dist/alert-dialog/index.js +206 -0
- package/dist/alert-dialog/index.mjs +29 -0
- package/dist/avatar/index.d.mts +23 -0
- package/dist/avatar/index.d.ts +23 -0
- package/dist/avatar/index.js +133 -0
- package/dist/avatar/index.mjs +10 -0
- package/dist/badge/index.d.mts +15 -0
- package/dist/badge/index.d.ts +15 -0
- package/dist/badge/index.js +96 -0
- package/dist/badge/index.mjs +10 -0
- package/dist/breadcrumb/index.d.mts +20 -0
- package/dist/breadcrumb/index.d.ts +20 -0
- package/dist/breadcrumb/index.js +126 -0
- package/dist/breadcrumb/index.mjs +20 -0
- package/dist/button/index.d.mts +12 -0
- package/dist/button/index.d.ts +12 -0
- package/dist/button/index.js +88 -0
- package/dist/button/index.mjs +10 -0
- package/dist/calendar/index.d.mts +29 -0
- package/dist/calendar/index.d.ts +29 -0
- package/dist/calendar/index.js +191 -0
- package/dist/calendar/index.mjs +9 -0
- package/dist/card/index.d.mts +13 -0
- package/dist/card/index.d.ts +13 -0
- package/dist/card/index.js +141 -0
- package/dist/card/index.mjs +19 -0
- package/dist/carousel/index.d.mts +20 -0
- package/dist/carousel/index.d.ts +20 -0
- package/dist/carousel/index.js +236 -0
- package/dist/carousel/index.mjs +19 -0
- package/dist/checkbox/index.d.mts +6 -0
- package/dist/checkbox/index.d.ts +6 -0
- package/dist/checkbox/index.js +63 -0
- package/dist/checkbox/index.mjs +8 -0
- package/dist/chunk-32LEHNCH.mjs +155 -0
- package/dist/chunk-3ZJ4L43B.mjs +92 -0
- package/dist/chunk-4KQNZMKT.mjs +47 -0
- package/dist/chunk-4W6U222X.mjs +113 -0
- package/dist/chunk-556SM2PJ.mjs +40 -0
- package/dist/chunk-5LYTCNI6.mjs +127 -0
- package/dist/chunk-5N7LGYZK.mjs +137 -0
- package/dist/chunk-6OG237U6.mjs +54 -0
- package/dist/chunk-7TMIJ7HZ.mjs +149 -0
- package/dist/chunk-DTENOVQN.mjs +44 -0
- package/dist/chunk-DUGW62XX.mjs +143 -0
- package/dist/chunk-DWLKKYIU.mjs +156 -0
- package/dist/chunk-DYCSGLM5.mjs +32 -0
- package/dist/chunk-DZPJV6MN.mjs +66 -0
- package/dist/chunk-FT72MNAV.mjs +25 -0
- package/dist/chunk-FV6JTZAK.mjs +30 -0
- package/dist/chunk-GLD4KQD3.mjs +90 -0
- package/dist/chunk-GWVW5OI6.mjs +106 -0
- package/dist/chunk-JWCA4M7E.mjs +160 -0
- package/dist/chunk-K4UYYX45.mjs +199 -0
- package/dist/chunk-KVQKOJNU.mjs +52 -0
- package/dist/chunk-LPMRBQLR.mjs +120 -0
- package/dist/chunk-M6HSM6GV.mjs +68 -0
- package/dist/chunk-NE5LEVMC.mjs +201 -0
- package/dist/chunk-NGWDLZ6E.mjs +33 -0
- package/dist/chunk-NH5ZVHAV.mjs +36 -0
- package/dist/chunk-PFXSPRVI.mjs +65 -0
- package/dist/chunk-PJO7WJ4G.mjs +10 -0
- package/dist/chunk-PTXZWR7Y.mjs +76 -0
- package/dist/chunk-SG747CBC.mjs +34 -0
- package/dist/chunk-UDQDW22Y.mjs +71 -0
- package/dist/chunk-UGOA6M4S.mjs +120 -0
- package/dist/chunk-UXU54FBX.mjs +63 -0
- package/dist/chunk-WYBX5VJ4.mjs +49 -0
- package/dist/chunk-Y7DNVOKO.mjs +57 -0
- package/dist/chunk-YNOS3JA2.mjs +29 -0
- package/dist/chunk-YPTARV3T.mjs +57 -0
- package/dist/chunk-YYFQVSPV.mjs +17 -0
- package/dist/chunk-ZR3J34NX.mjs +85 -0
- package/dist/collapsible/index.d.mts +8 -0
- package/dist/collapsible/index.d.ts +8 -0
- package/dist/collapsible/index.js +64 -0
- package/dist/collapsible/index.mjs +12 -0
- package/dist/combobox/index.d.mts +18 -0
- package/dist/combobox/index.d.ts +18 -0
- package/dist/combobox/index.js +198 -0
- package/dist/combobox/index.mjs +32 -0
- package/dist/context-menu/index.d.mts +16 -0
- package/dist/context-menu/index.d.ts +16 -0
- package/dist/context-menu/index.js +177 -0
- package/dist/context-menu/index.mjs +28 -0
- package/dist/date-range-input/index.d.mts +17 -0
- package/dist/date-range-input/index.d.ts +17 -0
- package/dist/date-range-input/index.js +284 -0
- package/dist/date-range-input/index.mjs +11 -0
- package/dist/dialog/index.d.mts +19 -0
- package/dist/dialog/index.d.ts +19 -0
- package/dist/dialog/index.js +240 -0
- package/dist/dialog/index.mjs +27 -0
- package/dist/dropdown-menu/index.d.mts +16 -0
- package/dist/dropdown-menu/index.d.ts +16 -0
- package/dist/dropdown-menu/index.js +189 -0
- package/dist/dropdown-menu/index.mjs +28 -0
- package/dist/field/index.d.mts +24 -0
- package/dist/field/index.d.ts +24 -0
- package/dist/field/index.js +88 -0
- package/dist/field/index.mjs +16 -0
- package/dist/hover-card/index.d.mts +8 -0
- package/dist/hover-card/index.d.ts +8 -0
- package/dist/hover-card/index.js +79 -0
- package/dist/hover-card/index.mjs +12 -0
- package/dist/index.d.mts +73 -0
- package/dist/index.d.ts +73 -0
- package/dist/index.js +3167 -0
- package/dist/index.mjs +452 -0
- package/dist/input/index.d.mts +5 -0
- package/dist/input/index.d.ts +5 -0
- package/dist/input/index.js +54 -0
- package/dist/input/index.mjs +7 -0
- package/dist/kbd/index.d.mts +8 -0
- package/dist/kbd/index.d.ts +8 -0
- package/dist/kbd/index.js +64 -0
- package/dist/kbd/index.mjs +9 -0
- package/dist/lightbox/index.d.mts +17 -0
- package/dist/lightbox/index.d.ts +17 -0
- package/dist/lightbox/index.js +151 -0
- package/dist/lightbox/index.mjs +24 -0
- package/dist/pagination/index.d.mts +33 -0
- package/dist/pagination/index.d.ts +33 -0
- package/dist/pagination/index.js +212 -0
- package/dist/pagination/index.mjs +25 -0
- package/dist/popover/index.d.mts +11 -0
- package/dist/popover/index.d.ts +11 -0
- package/dist/popover/index.js +120 -0
- package/dist/popover/index.mjs +18 -0
- package/dist/progress/index.d.mts +6 -0
- package/dist/progress/index.d.ts +6 -0
- package/dist/progress/index.js +60 -0
- package/dist/progress/index.mjs +8 -0
- package/dist/radio-group/index.d.mts +8 -0
- package/dist/radio-group/index.d.ts +8 -0
- package/dist/radio-group/index.js +71 -0
- package/dist/radio-group/index.mjs +10 -0
- package/dist/resizable/index.d.mts +10 -0
- package/dist/resizable/index.d.ts +10 -0
- package/dist/resizable/index.js +80 -0
- package/dist/resizable/index.mjs +12 -0
- package/dist/scroll-area/index.d.mts +6 -0
- package/dist/scroll-area/index.d.ts +6 -0
- package/dist/scroll-area/index.js +74 -0
- package/dist/scroll-area/index.mjs +8 -0
- package/dist/select/index.d.mts +17 -0
- package/dist/select/index.d.ts +17 -0
- package/dist/select/index.js +238 -0
- package/dist/select/index.mjs +26 -0
- package/dist/separator/index.d.mts +6 -0
- package/dist/separator/index.d.ts +6 -0
- package/dist/separator/index.js +59 -0
- package/dist/separator/index.mjs +8 -0
- package/dist/sheet/index.d.mts +38 -0
- package/dist/sheet/index.d.ts +38 -0
- package/dist/sheet/index.js +212 -0
- package/dist/sheet/index.mjs +27 -0
- package/dist/skeleton/index.d.mts +17 -0
- package/dist/skeleton/index.d.ts +17 -0
- package/dist/skeleton/index.js +80 -0
- package/dist/skeleton/index.mjs +11 -0
- package/dist/slide-over/index.d.mts +92 -0
- package/dist/slide-over/index.d.ts +92 -0
- package/dist/slide-over/index.js +298 -0
- package/dist/slide-over/index.mjs +31 -0
- package/dist/slider/index.d.mts +6 -0
- package/dist/slider/index.d.ts +6 -0
- package/dist/slider/index.js +47 -0
- package/dist/slider/index.mjs +8 -0
- package/dist/switch/index.d.mts +8 -0
- package/dist/switch/index.d.ts +8 -0
- package/dist/switch/index.js +66 -0
- package/dist/switch/index.mjs +8 -0
- package/dist/tabs/index.d.mts +9 -0
- package/dist/tabs/index.d.ts +9 -0
- package/dist/tabs/index.js +96 -0
- package/dist/tabs/index.mjs +14 -0
- package/dist/toast/index.d.mts +19 -0
- package/dist/toast/index.d.ts +19 -0
- package/dist/toast/index.js +107 -0
- package/dist/toast/index.mjs +10 -0
- package/dist/toggle/index.d.mts +14 -0
- package/dist/toggle/index.d.ts +14 -0
- package/dist/toggle/index.js +89 -0
- package/dist/toggle/index.mjs +12 -0
- package/dist/tooltip/index.d.mts +9 -0
- package/dist/tooltip/index.d.ts +9 -0
- package/dist/tooltip/index.js +101 -0
- package/dist/tooltip/index.mjs +14 -0
- package/package.json +235 -0
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import * as React$1 from 'react';
|
|
2
|
+
import { Accordion as Accordion$1 } from '@base-ui/react/accordion';
|
|
3
|
+
|
|
4
|
+
declare const Accordion: <Value = any>(props: Accordion$1.Root.Props<Value>) => React.JSX.Element;
|
|
5
|
+
declare const AccordionItem: ({ className, ...props }: React.ComponentPropsWithoutRef<typeof Accordion$1.Item>) => React$1.JSX.Element;
|
|
6
|
+
declare const AccordionTrigger: ({ className, children, ...props }: React.ComponentPropsWithoutRef<typeof Accordion$1.Header>) => React$1.JSX.Element;
|
|
7
|
+
declare const AccordionContent: ({ className, children, ...props }: React.ComponentPropsWithoutRef<typeof Accordion$1.Panel>) => React$1.JSX.Element;
|
|
8
|
+
|
|
9
|
+
export { Accordion, AccordionContent, AccordionItem, AccordionTrigger };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import * as React$1 from 'react';
|
|
2
|
+
import { Accordion as Accordion$1 } from '@base-ui/react/accordion';
|
|
3
|
+
|
|
4
|
+
declare const Accordion: <Value = any>(props: Accordion$1.Root.Props<Value>) => React.JSX.Element;
|
|
5
|
+
declare const AccordionItem: ({ className, ...props }: React.ComponentPropsWithoutRef<typeof Accordion$1.Item>) => React$1.JSX.Element;
|
|
6
|
+
declare const AccordionTrigger: ({ className, children, ...props }: React.ComponentPropsWithoutRef<typeof Accordion$1.Header>) => React$1.JSX.Element;
|
|
7
|
+
declare const AccordionContent: ({ className, children, ...props }: React.ComponentPropsWithoutRef<typeof Accordion$1.Panel>) => React$1.JSX.Element;
|
|
8
|
+
|
|
9
|
+
export { Accordion, AccordionContent, AccordionItem, AccordionTrigger };
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
"use client";
|
|
3
|
+
var __defProp = Object.defineProperty;
|
|
4
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
+
var __export = (target, all) => {
|
|
8
|
+
for (var name in all)
|
|
9
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
10
|
+
};
|
|
11
|
+
var __copyProps = (to, from, except, desc) => {
|
|
12
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
|
+
for (let key of __getOwnPropNames(from))
|
|
14
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
15
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
16
|
+
}
|
|
17
|
+
return to;
|
|
18
|
+
};
|
|
19
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
20
|
+
|
|
21
|
+
// src/accordion/index.tsx
|
|
22
|
+
var accordion_exports = {};
|
|
23
|
+
__export(accordion_exports, {
|
|
24
|
+
Accordion: () => Accordion,
|
|
25
|
+
AccordionContent: () => AccordionContent,
|
|
26
|
+
AccordionItem: () => AccordionItem,
|
|
27
|
+
AccordionTrigger: () => AccordionTrigger
|
|
28
|
+
});
|
|
29
|
+
module.exports = __toCommonJS(accordion_exports);
|
|
30
|
+
var import_accordion = require("@base-ui/react/accordion");
|
|
31
|
+
var import_lucide_react = require("lucide-react");
|
|
32
|
+
|
|
33
|
+
// src/utils.ts
|
|
34
|
+
var import_clsx = require("clsx");
|
|
35
|
+
var import_tailwind_merge = require("tailwind-merge");
|
|
36
|
+
function cn(...inputs) {
|
|
37
|
+
return (0, import_tailwind_merge.twMerge)((0, import_clsx.clsx)(inputs));
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
// src/accordion/index.tsx
|
|
41
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
|
42
|
+
var Accordion = import_accordion.Accordion.Root;
|
|
43
|
+
var AccordionItem = ({
|
|
44
|
+
className,
|
|
45
|
+
...props
|
|
46
|
+
}) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
47
|
+
import_accordion.Accordion.Item,
|
|
48
|
+
{
|
|
49
|
+
className: cn("border-b border-border last:border-0", className),
|
|
50
|
+
...props
|
|
51
|
+
}
|
|
52
|
+
);
|
|
53
|
+
var AccordionTrigger = ({
|
|
54
|
+
className,
|
|
55
|
+
children,
|
|
56
|
+
...props
|
|
57
|
+
}) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_accordion.Accordion.Header, { className: "flex", children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
|
|
58
|
+
import_accordion.Accordion.Trigger,
|
|
59
|
+
{
|
|
60
|
+
className: cn(
|
|
61
|
+
"flex flex-1 cursor-pointer items-center justify-between py-4 text-sm font-medium",
|
|
62
|
+
"transition-all outline-none select-none",
|
|
63
|
+
"hover:underline hover:text-foreground",
|
|
64
|
+
"focus-visible:ring-2 focus-visible:ring-ring rounded-sm",
|
|
65
|
+
"[&[data-panel-open]>svg]:rotate-180",
|
|
66
|
+
className
|
|
67
|
+
),
|
|
68
|
+
...props,
|
|
69
|
+
children: [
|
|
70
|
+
children,
|
|
71
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
72
|
+
import_lucide_react.ChevronDown,
|
|
73
|
+
{
|
|
74
|
+
className: "size-4 shrink-0 text-muted-foreground transition-transform duration-200",
|
|
75
|
+
"aria-hidden": true
|
|
76
|
+
}
|
|
77
|
+
)
|
|
78
|
+
]
|
|
79
|
+
}
|
|
80
|
+
) });
|
|
81
|
+
var AccordionContent = ({
|
|
82
|
+
className,
|
|
83
|
+
children,
|
|
84
|
+
...props
|
|
85
|
+
}) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
86
|
+
import_accordion.Accordion.Panel,
|
|
87
|
+
{
|
|
88
|
+
className: "wmm-accordion-panel text-sm",
|
|
89
|
+
...props,
|
|
90
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: cn("pb-4 pt-0 text-muted-foreground", className), children })
|
|
91
|
+
}
|
|
92
|
+
);
|
|
93
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
94
|
+
0 && (module.exports = {
|
|
95
|
+
Accordion,
|
|
96
|
+
AccordionContent,
|
|
97
|
+
AccordionItem,
|
|
98
|
+
AccordionTrigger
|
|
99
|
+
});
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { AlertDialog as AlertDialog$1 } from '@base-ui/react/alert-dialog';
|
|
3
|
+
import { VariantProps } from 'class-variance-authority';
|
|
4
|
+
import { buttonVariants } from '../button/index.mjs';
|
|
5
|
+
import 'class-variance-authority/types';
|
|
6
|
+
import '@base-ui/react/button';
|
|
7
|
+
|
|
8
|
+
declare function AlertDialog({ ...props }: AlertDialog$1.Root.Props): React.JSX.Element;
|
|
9
|
+
declare function AlertDialogTrigger({ ...props }: AlertDialog$1.Trigger.Props): React.JSX.Element;
|
|
10
|
+
declare function AlertDialogPortal({ ...props }: AlertDialog$1.Portal.Props): React.JSX.Element;
|
|
11
|
+
declare function AlertDialogOverlay({ className, ...props }: AlertDialog$1.Backdrop.Props): React.JSX.Element;
|
|
12
|
+
declare function AlertDialogContent({ className, children, ...props }: AlertDialog$1.Popup.Props): React.JSX.Element;
|
|
13
|
+
declare function AlertDialogHeader({ className, ...props }: React.ComponentProps<"div">): React.JSX.Element;
|
|
14
|
+
declare function AlertDialogFooter({ className, ...props }: React.ComponentProps<"div">): React.JSX.Element;
|
|
15
|
+
declare function AlertDialogTitle({ className, ...props }: AlertDialog$1.Title.Props): React.JSX.Element;
|
|
16
|
+
declare function AlertDialogDescription({ className, ...props }: AlertDialog$1.Description.Props): React.JSX.Element;
|
|
17
|
+
declare function AlertDialogAction({ className, variant, ...props }: AlertDialog$1.Close.Props & {
|
|
18
|
+
variant?: VariantProps<typeof buttonVariants>["variant"];
|
|
19
|
+
}): React.JSX.Element;
|
|
20
|
+
declare function AlertDialogCancel({ className, ...props }: AlertDialog$1.Close.Props): React.JSX.Element;
|
|
21
|
+
|
|
22
|
+
export { AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger };
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { AlertDialog as AlertDialog$1 } from '@base-ui/react/alert-dialog';
|
|
3
|
+
import { VariantProps } from 'class-variance-authority';
|
|
4
|
+
import { buttonVariants } from '../button/index.js';
|
|
5
|
+
import 'class-variance-authority/types';
|
|
6
|
+
import '@base-ui/react/button';
|
|
7
|
+
|
|
8
|
+
declare function AlertDialog({ ...props }: AlertDialog$1.Root.Props): React.JSX.Element;
|
|
9
|
+
declare function AlertDialogTrigger({ ...props }: AlertDialog$1.Trigger.Props): React.JSX.Element;
|
|
10
|
+
declare function AlertDialogPortal({ ...props }: AlertDialog$1.Portal.Props): React.JSX.Element;
|
|
11
|
+
declare function AlertDialogOverlay({ className, ...props }: AlertDialog$1.Backdrop.Props): React.JSX.Element;
|
|
12
|
+
declare function AlertDialogContent({ className, children, ...props }: AlertDialog$1.Popup.Props): React.JSX.Element;
|
|
13
|
+
declare function AlertDialogHeader({ className, ...props }: React.ComponentProps<"div">): React.JSX.Element;
|
|
14
|
+
declare function AlertDialogFooter({ className, ...props }: React.ComponentProps<"div">): React.JSX.Element;
|
|
15
|
+
declare function AlertDialogTitle({ className, ...props }: AlertDialog$1.Title.Props): React.JSX.Element;
|
|
16
|
+
declare function AlertDialogDescription({ className, ...props }: AlertDialog$1.Description.Props): React.JSX.Element;
|
|
17
|
+
declare function AlertDialogAction({ className, variant, ...props }: AlertDialog$1.Close.Props & {
|
|
18
|
+
variant?: VariantProps<typeof buttonVariants>["variant"];
|
|
19
|
+
}): React.JSX.Element;
|
|
20
|
+
declare function AlertDialogCancel({ className, ...props }: AlertDialog$1.Close.Props): React.JSX.Element;
|
|
21
|
+
|
|
22
|
+
export { AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger };
|
|
@@ -0,0 +1,206 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
"use client";
|
|
3
|
+
var __defProp = Object.defineProperty;
|
|
4
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
+
var __export = (target, all) => {
|
|
8
|
+
for (var name in all)
|
|
9
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
10
|
+
};
|
|
11
|
+
var __copyProps = (to, from, except, desc) => {
|
|
12
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
|
+
for (let key of __getOwnPropNames(from))
|
|
14
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
15
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
16
|
+
}
|
|
17
|
+
return to;
|
|
18
|
+
};
|
|
19
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
20
|
+
|
|
21
|
+
// src/alert-dialog/index.tsx
|
|
22
|
+
var alert_dialog_exports = {};
|
|
23
|
+
__export(alert_dialog_exports, {
|
|
24
|
+
AlertDialog: () => AlertDialog,
|
|
25
|
+
AlertDialogAction: () => AlertDialogAction,
|
|
26
|
+
AlertDialogCancel: () => AlertDialogCancel,
|
|
27
|
+
AlertDialogContent: () => AlertDialogContent,
|
|
28
|
+
AlertDialogDescription: () => AlertDialogDescription,
|
|
29
|
+
AlertDialogFooter: () => AlertDialogFooter,
|
|
30
|
+
AlertDialogHeader: () => AlertDialogHeader,
|
|
31
|
+
AlertDialogOverlay: () => AlertDialogOverlay,
|
|
32
|
+
AlertDialogPortal: () => AlertDialogPortal,
|
|
33
|
+
AlertDialogTitle: () => AlertDialogTitle,
|
|
34
|
+
AlertDialogTrigger: () => AlertDialogTrigger
|
|
35
|
+
});
|
|
36
|
+
module.exports = __toCommonJS(alert_dialog_exports);
|
|
37
|
+
var import_alert_dialog = require("@base-ui/react/alert-dialog");
|
|
38
|
+
|
|
39
|
+
// src/utils.ts
|
|
40
|
+
var import_clsx = require("clsx");
|
|
41
|
+
var import_tailwind_merge = require("tailwind-merge");
|
|
42
|
+
function cn(...inputs) {
|
|
43
|
+
return (0, import_tailwind_merge.twMerge)((0, import_clsx.clsx)(inputs));
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
// src/button/index.tsx
|
|
47
|
+
var import_button = require("@base-ui/react/button");
|
|
48
|
+
var import_class_variance_authority = require("class-variance-authority");
|
|
49
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
|
50
|
+
var buttonVariants = (0, import_class_variance_authority.cva)(
|
|
51
|
+
"group/button inline-flex shrink-0 items-center justify-center rounded-lg border border-transparent bg-clip-padding text-sm font-medium whitespace-nowrap transition-all outline-none select-none focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 active:not-aria-[haspopup]:translate-y-px disabled:pointer-events-none disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
|
|
52
|
+
{
|
|
53
|
+
variants: {
|
|
54
|
+
variant: {
|
|
55
|
+
default: "bg-primary text-primary-foreground [a]:hover:bg-primary/80",
|
|
56
|
+
outline: "border-border bg-background hover:bg-muted hover:text-foreground aria-expanded:bg-muted aria-expanded:text-foreground dark:border-input dark:bg-input/30 dark:hover:bg-input/50",
|
|
57
|
+
secondary: "bg-secondary text-secondary-foreground hover:bg-secondary/80 aria-expanded:bg-secondary aria-expanded:text-secondary-foreground",
|
|
58
|
+
ghost: "hover:bg-muted hover:text-foreground aria-expanded:bg-muted aria-expanded:text-foreground dark:hover:bg-muted/50",
|
|
59
|
+
destructive: "bg-destructive/10 text-destructive hover:bg-destructive/20 focus-visible:border-destructive/40 focus-visible:ring-destructive/20 dark:bg-destructive/20 dark:hover:bg-destructive/30 dark:focus-visible:ring-destructive/40",
|
|
60
|
+
link: "text-primary underline-offset-4 hover:underline"
|
|
61
|
+
},
|
|
62
|
+
size: {
|
|
63
|
+
default: "h-8 gap-1.5 px-2.5 has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2",
|
|
64
|
+
xs: "h-6 gap-1 rounded-[min(var(--radius-md),10px)] px-2 text-xs in-data-[slot=button-group]:rounded-lg has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&_svg:not([class*='size-'])]:size-3",
|
|
65
|
+
sm: "h-7 gap-1 rounded-[min(var(--radius-md),12px)] px-2.5 text-[0.8rem] in-data-[slot=button-group]:rounded-lg has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&_svg:not([class*='size-'])]:size-3.5",
|
|
66
|
+
lg: "h-9 gap-1.5 px-2.5 has-data-[icon=inline-end]:pr-3 has-data-[icon=inline-start]:pl-3",
|
|
67
|
+
icon: "size-8",
|
|
68
|
+
"icon-xs": "size-6 rounded-[min(var(--radius-md),10px)] in-data-[slot=button-group]:rounded-lg [&_svg:not([class*='size-'])]:size-3",
|
|
69
|
+
"icon-sm": "size-7 rounded-[min(var(--radius-md),12px)] in-data-[slot=button-group]:rounded-lg",
|
|
70
|
+
"icon-lg": "size-9"
|
|
71
|
+
}
|
|
72
|
+
},
|
|
73
|
+
defaultVariants: {
|
|
74
|
+
variant: "default",
|
|
75
|
+
size: "default"
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
);
|
|
79
|
+
function Button({
|
|
80
|
+
className,
|
|
81
|
+
variant = "default",
|
|
82
|
+
size = "default",
|
|
83
|
+
...props
|
|
84
|
+
}) {
|
|
85
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
86
|
+
import_button.Button,
|
|
87
|
+
{
|
|
88
|
+
"data-slot": "button",
|
|
89
|
+
className: cn(buttonVariants({ variant, size, className })),
|
|
90
|
+
...props
|
|
91
|
+
}
|
|
92
|
+
);
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
// src/alert-dialog/index.tsx
|
|
96
|
+
var import_jsx_runtime2 = require("react/jsx-runtime");
|
|
97
|
+
function AlertDialog({ ...props }) {
|
|
98
|
+
return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(import_alert_dialog.AlertDialog.Root, { "data-slot": "alert-dialog", ...props });
|
|
99
|
+
}
|
|
100
|
+
function AlertDialogTrigger({ ...props }) {
|
|
101
|
+
return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(import_alert_dialog.AlertDialog.Trigger, { "data-slot": "alert-dialog-trigger", ...props });
|
|
102
|
+
}
|
|
103
|
+
function AlertDialogPortal({ ...props }) {
|
|
104
|
+
return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(import_alert_dialog.AlertDialog.Portal, { "data-slot": "alert-dialog-portal", ...props });
|
|
105
|
+
}
|
|
106
|
+
function AlertDialogOverlay({ className, ...props }) {
|
|
107
|
+
return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
|
|
108
|
+
import_alert_dialog.AlertDialog.Backdrop,
|
|
109
|
+
{
|
|
110
|
+
"data-slot": "dialog-overlay",
|
|
111
|
+
className: cn(
|
|
112
|
+
"fixed inset-0 isolate z-50 bg-black/10 duration-100 supports-backdrop-filter:backdrop-blur-xs",
|
|
113
|
+
className
|
|
114
|
+
),
|
|
115
|
+
...props
|
|
116
|
+
}
|
|
117
|
+
);
|
|
118
|
+
}
|
|
119
|
+
function AlertDialogContent({ className, children, ...props }) {
|
|
120
|
+
return /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(AlertDialogPortal, { children: [
|
|
121
|
+
/* @__PURE__ */ (0, import_jsx_runtime2.jsx)(AlertDialogOverlay, {}),
|
|
122
|
+
/* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
|
|
123
|
+
import_alert_dialog.AlertDialog.Popup,
|
|
124
|
+
{
|
|
125
|
+
"data-slot": "dialog-content",
|
|
126
|
+
className: cn(
|
|
127
|
+
"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-4 rounded-xl bg-popover p-4 text-sm text-popover-foreground ring-1 ring-foreground/10 duration-100 outline-none sm:max-w-sm",
|
|
128
|
+
className
|
|
129
|
+
),
|
|
130
|
+
...props,
|
|
131
|
+
children
|
|
132
|
+
}
|
|
133
|
+
)
|
|
134
|
+
] });
|
|
135
|
+
}
|
|
136
|
+
function AlertDialogHeader({ className, ...props }) {
|
|
137
|
+
return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("div", { "data-slot": "alert-dialog-header", className: cn("flex flex-col gap-2", className), ...props });
|
|
138
|
+
}
|
|
139
|
+
function AlertDialogFooter({ className, ...props }) {
|
|
140
|
+
return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
|
|
141
|
+
"div",
|
|
142
|
+
{
|
|
143
|
+
"data-slot": "alert-dialog-footer",
|
|
144
|
+
className: cn("flex flex-col-reverse gap-2 sm:flex-row sm:justify-end", className),
|
|
145
|
+
...props
|
|
146
|
+
}
|
|
147
|
+
);
|
|
148
|
+
}
|
|
149
|
+
function AlertDialogTitle({ className, ...props }) {
|
|
150
|
+
return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
|
|
151
|
+
import_alert_dialog.AlertDialog.Title,
|
|
152
|
+
{
|
|
153
|
+
"data-slot": "alert-dialog-title",
|
|
154
|
+
className: cn("font-heading text-base leading-none font-medium", className),
|
|
155
|
+
...props
|
|
156
|
+
}
|
|
157
|
+
);
|
|
158
|
+
}
|
|
159
|
+
function AlertDialogDescription({ className, ...props }) {
|
|
160
|
+
return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
|
|
161
|
+
import_alert_dialog.AlertDialog.Description,
|
|
162
|
+
{
|
|
163
|
+
"data-slot": "alert-dialog-description",
|
|
164
|
+
className: cn("text-sm text-muted-foreground", className),
|
|
165
|
+
...props
|
|
166
|
+
}
|
|
167
|
+
);
|
|
168
|
+
}
|
|
169
|
+
function AlertDialogAction({
|
|
170
|
+
className,
|
|
171
|
+
variant = "default",
|
|
172
|
+
...props
|
|
173
|
+
}) {
|
|
174
|
+
return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
|
|
175
|
+
import_alert_dialog.AlertDialog.Close,
|
|
176
|
+
{
|
|
177
|
+
"data-slot": "alert-dialog-action",
|
|
178
|
+
render: /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(Button, { variant, className }),
|
|
179
|
+
...props
|
|
180
|
+
}
|
|
181
|
+
);
|
|
182
|
+
}
|
|
183
|
+
function AlertDialogCancel({ className, ...props }) {
|
|
184
|
+
return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
|
|
185
|
+
import_alert_dialog.AlertDialog.Close,
|
|
186
|
+
{
|
|
187
|
+
"data-slot": "alert-dialog-cancel",
|
|
188
|
+
render: /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(Button, { variant: "outline", className }),
|
|
189
|
+
...props
|
|
190
|
+
}
|
|
191
|
+
);
|
|
192
|
+
}
|
|
193
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
194
|
+
0 && (module.exports = {
|
|
195
|
+
AlertDialog,
|
|
196
|
+
AlertDialogAction,
|
|
197
|
+
AlertDialogCancel,
|
|
198
|
+
AlertDialogContent,
|
|
199
|
+
AlertDialogDescription,
|
|
200
|
+
AlertDialogFooter,
|
|
201
|
+
AlertDialogHeader,
|
|
202
|
+
AlertDialogOverlay,
|
|
203
|
+
AlertDialogPortal,
|
|
204
|
+
AlertDialogTitle,
|
|
205
|
+
AlertDialogTrigger
|
|
206
|
+
});
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import {
|
|
3
|
+
AlertDialog,
|
|
4
|
+
AlertDialogAction,
|
|
5
|
+
AlertDialogCancel,
|
|
6
|
+
AlertDialogContent,
|
|
7
|
+
AlertDialogDescription,
|
|
8
|
+
AlertDialogFooter,
|
|
9
|
+
AlertDialogHeader,
|
|
10
|
+
AlertDialogOverlay,
|
|
11
|
+
AlertDialogPortal,
|
|
12
|
+
AlertDialogTitle,
|
|
13
|
+
AlertDialogTrigger
|
|
14
|
+
} from "../chunk-LPMRBQLR.mjs";
|
|
15
|
+
import "../chunk-YPTARV3T.mjs";
|
|
16
|
+
import "../chunk-PJO7WJ4G.mjs";
|
|
17
|
+
export {
|
|
18
|
+
AlertDialog,
|
|
19
|
+
AlertDialogAction,
|
|
20
|
+
AlertDialogCancel,
|
|
21
|
+
AlertDialogContent,
|
|
22
|
+
AlertDialogDescription,
|
|
23
|
+
AlertDialogFooter,
|
|
24
|
+
AlertDialogHeader,
|
|
25
|
+
AlertDialogOverlay,
|
|
26
|
+
AlertDialogPortal,
|
|
27
|
+
AlertDialogTitle,
|
|
28
|
+
AlertDialogTrigger
|
|
29
|
+
};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import * as class_variance_authority_types from 'class-variance-authority/types';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
import { VariantProps } from 'class-variance-authority';
|
|
4
|
+
|
|
5
|
+
declare const avatarVariants: (props?: ({
|
|
6
|
+
size?: "default" | "sm" | "lg" | "xs" | "xl" | null | undefined;
|
|
7
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
8
|
+
interface AvatarProps extends React.HTMLAttributes<HTMLSpanElement>, VariantProps<typeof avatarVariants> {
|
|
9
|
+
src?: string;
|
|
10
|
+
alt?: string;
|
|
11
|
+
/** Fallback text — initials derived automatically from alt if not provided */
|
|
12
|
+
initials?: string;
|
|
13
|
+
}
|
|
14
|
+
declare function Avatar({ className, size, src, alt, initials, ...props }: AvatarProps): React.JSX.Element;
|
|
15
|
+
interface AvatarGroupProps {
|
|
16
|
+
avatars: AvatarProps[];
|
|
17
|
+
max?: number;
|
|
18
|
+
size?: AvatarProps["size"];
|
|
19
|
+
className?: string;
|
|
20
|
+
}
|
|
21
|
+
declare function AvatarGroup({ avatars, max, size, className }: AvatarGroupProps): React.JSX.Element;
|
|
22
|
+
|
|
23
|
+
export { Avatar, AvatarGroup, type AvatarGroupProps, type AvatarProps };
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import * as class_variance_authority_types from 'class-variance-authority/types';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
import { VariantProps } from 'class-variance-authority';
|
|
4
|
+
|
|
5
|
+
declare const avatarVariants: (props?: ({
|
|
6
|
+
size?: "default" | "sm" | "lg" | "xs" | "xl" | null | undefined;
|
|
7
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
8
|
+
interface AvatarProps extends React.HTMLAttributes<HTMLSpanElement>, VariantProps<typeof avatarVariants> {
|
|
9
|
+
src?: string;
|
|
10
|
+
alt?: string;
|
|
11
|
+
/** Fallback text — initials derived automatically from alt if not provided */
|
|
12
|
+
initials?: string;
|
|
13
|
+
}
|
|
14
|
+
declare function Avatar({ className, size, src, alt, initials, ...props }: AvatarProps): React.JSX.Element;
|
|
15
|
+
interface AvatarGroupProps {
|
|
16
|
+
avatars: AvatarProps[];
|
|
17
|
+
max?: number;
|
|
18
|
+
size?: AvatarProps["size"];
|
|
19
|
+
className?: string;
|
|
20
|
+
}
|
|
21
|
+
declare function AvatarGroup({ avatars, max, size, className }: AvatarGroupProps): React.JSX.Element;
|
|
22
|
+
|
|
23
|
+
export { Avatar, AvatarGroup, type AvatarGroupProps, type AvatarProps };
|
|
@@ -0,0 +1,133 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
"use client";
|
|
3
|
+
var __create = Object.create;
|
|
4
|
+
var __defProp = Object.defineProperty;
|
|
5
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
6
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
7
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
8
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
9
|
+
var __export = (target, all) => {
|
|
10
|
+
for (var name in all)
|
|
11
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
12
|
+
};
|
|
13
|
+
var __copyProps = (to, from, except, desc) => {
|
|
14
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
15
|
+
for (let key of __getOwnPropNames(from))
|
|
16
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
17
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
18
|
+
}
|
|
19
|
+
return to;
|
|
20
|
+
};
|
|
21
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
22
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
23
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
24
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
25
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
26
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
27
|
+
mod
|
|
28
|
+
));
|
|
29
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
30
|
+
|
|
31
|
+
// src/avatar/index.tsx
|
|
32
|
+
var avatar_exports = {};
|
|
33
|
+
__export(avatar_exports, {
|
|
34
|
+
Avatar: () => Avatar,
|
|
35
|
+
AvatarGroup: () => AvatarGroup
|
|
36
|
+
});
|
|
37
|
+
module.exports = __toCommonJS(avatar_exports);
|
|
38
|
+
var React = __toESM(require("react"));
|
|
39
|
+
var import_class_variance_authority = require("class-variance-authority");
|
|
40
|
+
|
|
41
|
+
// src/utils.ts
|
|
42
|
+
var import_clsx = require("clsx");
|
|
43
|
+
var import_tailwind_merge = require("tailwind-merge");
|
|
44
|
+
function cn(...inputs) {
|
|
45
|
+
return (0, import_tailwind_merge.twMerge)((0, import_clsx.clsx)(inputs));
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
// src/avatar/index.tsx
|
|
49
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
|
50
|
+
var avatarVariants = (0, import_class_variance_authority.cva)(
|
|
51
|
+
"relative inline-flex shrink-0 items-center justify-center overflow-hidden rounded-full bg-muted font-medium select-none",
|
|
52
|
+
{
|
|
53
|
+
variants: {
|
|
54
|
+
size: {
|
|
55
|
+
xs: "size-6 text-[10px]",
|
|
56
|
+
sm: "size-8 text-xs",
|
|
57
|
+
default: "size-10 text-sm",
|
|
58
|
+
lg: "size-12 text-base",
|
|
59
|
+
xl: "size-16 text-lg"
|
|
60
|
+
}
|
|
61
|
+
},
|
|
62
|
+
defaultVariants: { size: "default" }
|
|
63
|
+
}
|
|
64
|
+
);
|
|
65
|
+
function getInitials(text) {
|
|
66
|
+
if (!text) return "?";
|
|
67
|
+
const words = text.trim().split(/\s+/);
|
|
68
|
+
if (words.length === 1) return words[0].slice(0, 2).toUpperCase();
|
|
69
|
+
return (words[0][0] + words[words.length - 1][0]).toUpperCase();
|
|
70
|
+
}
|
|
71
|
+
function Avatar({
|
|
72
|
+
className,
|
|
73
|
+
size,
|
|
74
|
+
src,
|
|
75
|
+
alt,
|
|
76
|
+
initials,
|
|
77
|
+
...props
|
|
78
|
+
}) {
|
|
79
|
+
const [imgError, setImgError] = React.useState(false);
|
|
80
|
+
const showImg = src && !imgError;
|
|
81
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { className: cn(avatarVariants({ size }), className), ...props, children: showImg ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
82
|
+
"img",
|
|
83
|
+
{
|
|
84
|
+
src,
|
|
85
|
+
alt: alt ?? "",
|
|
86
|
+
className: "absolute inset-0 size-full object-cover",
|
|
87
|
+
onError: () => setImgError(true)
|
|
88
|
+
}
|
|
89
|
+
) : /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
90
|
+
"span",
|
|
91
|
+
{
|
|
92
|
+
"aria-label": alt,
|
|
93
|
+
className: "text-muted-foreground",
|
|
94
|
+
style: { lineHeight: 1 },
|
|
95
|
+
children: initials ?? getInitials(alt)
|
|
96
|
+
}
|
|
97
|
+
) });
|
|
98
|
+
}
|
|
99
|
+
function AvatarGroup({ avatars, max = 5, size = "sm", className }) {
|
|
100
|
+
const shown = avatars.slice(0, max);
|
|
101
|
+
const overflow = avatars.length - max;
|
|
102
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: cn("flex items-center", className), children: [
|
|
103
|
+
shown.map((a, i) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
104
|
+
"span",
|
|
105
|
+
{
|
|
106
|
+
className: "ring-2 ring-background rounded-full",
|
|
107
|
+
style: { marginLeft: i === 0 ? 0 : "-0.5rem" },
|
|
108
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Avatar, { ...a, size })
|
|
109
|
+
},
|
|
110
|
+
i
|
|
111
|
+
)),
|
|
112
|
+
overflow > 0 && /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
|
|
113
|
+
"span",
|
|
114
|
+
{
|
|
115
|
+
className: cn(
|
|
116
|
+
avatarVariants({ size }),
|
|
117
|
+
"ring-2 ring-background text-muted-foreground bg-muted"
|
|
118
|
+
),
|
|
119
|
+
style: { marginLeft: "-0.5rem" },
|
|
120
|
+
"aria-label": `${overflow} more`,
|
|
121
|
+
children: [
|
|
122
|
+
"+",
|
|
123
|
+
overflow
|
|
124
|
+
]
|
|
125
|
+
}
|
|
126
|
+
)
|
|
127
|
+
] });
|
|
128
|
+
}
|
|
129
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
130
|
+
0 && (module.exports = {
|
|
131
|
+
Avatar,
|
|
132
|
+
AvatarGroup
|
|
133
|
+
});
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import * as React$1 from 'react';
|
|
2
|
+
import * as class_variance_authority_types from 'class-variance-authority/types';
|
|
3
|
+
import { VariantProps } from 'class-variance-authority';
|
|
4
|
+
|
|
5
|
+
declare const badgeVariants: (props?: ({
|
|
6
|
+
variant?: "default" | "secondary" | "outline" | "success" | "warning" | "destructive" | "info" | null | undefined;
|
|
7
|
+
size?: "default" | "sm" | "lg" | null | undefined;
|
|
8
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
9
|
+
type BadgeVariant = NonNullable<VariantProps<typeof badgeVariants>["variant"]>;
|
|
10
|
+
interface BadgeProps extends React.HTMLAttributes<HTMLSpanElement>, VariantProps<typeof badgeVariants> {
|
|
11
|
+
dot?: boolean;
|
|
12
|
+
}
|
|
13
|
+
declare function Badge({ className, variant, size, dot, children, ...props }: BadgeProps): React$1.JSX.Element;
|
|
14
|
+
|
|
15
|
+
export { Badge, type BadgeProps, type BadgeVariant, badgeVariants };
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import * as React$1 from 'react';
|
|
2
|
+
import * as class_variance_authority_types from 'class-variance-authority/types';
|
|
3
|
+
import { VariantProps } from 'class-variance-authority';
|
|
4
|
+
|
|
5
|
+
declare const badgeVariants: (props?: ({
|
|
6
|
+
variant?: "default" | "secondary" | "outline" | "success" | "warning" | "destructive" | "info" | null | undefined;
|
|
7
|
+
size?: "default" | "sm" | "lg" | null | undefined;
|
|
8
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
9
|
+
type BadgeVariant = NonNullable<VariantProps<typeof badgeVariants>["variant"]>;
|
|
10
|
+
interface BadgeProps extends React.HTMLAttributes<HTMLSpanElement>, VariantProps<typeof badgeVariants> {
|
|
11
|
+
dot?: boolean;
|
|
12
|
+
}
|
|
13
|
+
declare function Badge({ className, variant, size, dot, children, ...props }: BadgeProps): React$1.JSX.Element;
|
|
14
|
+
|
|
15
|
+
export { Badge, type BadgeProps, type BadgeVariant, badgeVariants };
|