@schemavaults/ui 0.59.1 → 0.60.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/components/ui/alert-dialog/alert-dialog.d.ts +87 -0
- package/dist/components/ui/alert-dialog/alert-dialog.js +115 -0
- package/dist/components/ui/alert-dialog/alert-dialog.js.map +1 -0
- package/dist/components/ui/alert-dialog/index.d.ts +3 -0
- package/dist/components/ui/alert-dialog/index.js +3 -0
- package/dist/components/ui/alert-dialog/index.js.map +1 -0
- package/dist/components/ui/index.d.ts +2 -0
- package/dist/components/ui/index.js +1 -0
- package/dist/components/ui/index.js.map +1 -1
- package/dist/components/ui/number-ticker/number-ticker.d.ts +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
import { type ComponentPropsWithoutRef, type HTMLAttributes, type ReactElement, type ReactNode } from "react";
|
|
2
|
+
import * as DialogPrimitive from "@radix-ui/react-dialog";
|
|
3
|
+
import { type VariantProps } from "class-variance-authority";
|
|
4
|
+
/**
|
|
5
|
+
* Tone drives the accent styling of the optional leading icon and the default
|
|
6
|
+
* styling of {@link AlertDialogAction}. Destructive confirmations (e.g. delete)
|
|
7
|
+
* should use the `destructive` tone so the confirm button is unmistakably risky.
|
|
8
|
+
*/
|
|
9
|
+
export declare const alertDialogToneIds: readonly ["default", "destructive", "warning", "success", "info"];
|
|
10
|
+
export type AlertDialogToneId = (typeof alertDialogToneIds)[number];
|
|
11
|
+
/**
|
|
12
|
+
* Root of the alert dialog. A modal, focus-trapped dialog that interrupts the
|
|
13
|
+
* user to confirm a consequential action. Unlike {@link Dialog}, it renders
|
|
14
|
+
* with `role="alertdialog"`, omits the corner close button, and does not
|
|
15
|
+
* dismiss on an outside click — the user must pick an explicit action.
|
|
16
|
+
*/
|
|
17
|
+
declare const AlertDialog: import("react").FC<DialogPrimitive.DialogProps>;
|
|
18
|
+
declare const AlertDialogTrigger: import("react").ForwardRefExoticComponent<DialogPrimitive.DialogTriggerProps & import("react").RefAttributes<HTMLButtonElement>>;
|
|
19
|
+
declare const AlertDialogPortal: import("react").FC<DialogPrimitive.DialogPortalProps>;
|
|
20
|
+
declare const AlertDialogOverlay: {
|
|
21
|
+
({ className, ...props }: ComponentPropsWithoutRef<typeof DialogPrimitive.Overlay>): ReactElement;
|
|
22
|
+
displayName: string;
|
|
23
|
+
};
|
|
24
|
+
export interface AlertDialogContentProps extends ComponentPropsWithoutRef<typeof DialogPrimitive.Content> {
|
|
25
|
+
/** Accent tone shared with the icon and default action button. */
|
|
26
|
+
tone?: AlertDialogToneId;
|
|
27
|
+
}
|
|
28
|
+
declare const AlertDialogContent: {
|
|
29
|
+
({ className, children, tone, onInteractOutside, ...props }: AlertDialogContentProps): ReactElement;
|
|
30
|
+
displayName: string;
|
|
31
|
+
};
|
|
32
|
+
declare const AlertDialogHeader: {
|
|
33
|
+
({ className, ...props }: HTMLAttributes<HTMLDivElement>): ReactElement;
|
|
34
|
+
displayName: string;
|
|
35
|
+
};
|
|
36
|
+
declare const AlertDialogFooter: {
|
|
37
|
+
({ className, ...props }: HTMLAttributes<HTMLDivElement>): ReactElement;
|
|
38
|
+
displayName: string;
|
|
39
|
+
};
|
|
40
|
+
declare const AlertDialogTitle: {
|
|
41
|
+
({ className, ...props }: ComponentPropsWithoutRef<typeof DialogPrimitive.Title>): ReactElement;
|
|
42
|
+
displayName: string;
|
|
43
|
+
};
|
|
44
|
+
declare const AlertDialogDescription: {
|
|
45
|
+
({ className, ...props }: ComponentPropsWithoutRef<typeof DialogPrimitive.Description>): ReactElement;
|
|
46
|
+
displayName: string;
|
|
47
|
+
};
|
|
48
|
+
declare const alertDialogIconVariants: (props?: ({
|
|
49
|
+
tone?: "default" | "info" | "warning" | "destructive" | "success" | null | undefined;
|
|
50
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
51
|
+
export interface AlertDialogIconProps extends Omit<HTMLAttributes<HTMLSpanElement>, "children">, VariantProps<typeof alertDialogIconVariants> {
|
|
52
|
+
/** Override the auto-selected tone icon with a custom node. */
|
|
53
|
+
children?: ReactNode;
|
|
54
|
+
}
|
|
55
|
+
/**
|
|
56
|
+
* Optional themed icon for the header. When no `children` are provided, a
|
|
57
|
+
* sensible icon is chosen from the surrounding {@link AlertDialogContent} tone.
|
|
58
|
+
*/
|
|
59
|
+
declare const AlertDialogIcon: {
|
|
60
|
+
({ className, tone: toneProp, children, ...props }: AlertDialogIconProps): ReactElement;
|
|
61
|
+
displayName: string;
|
|
62
|
+
};
|
|
63
|
+
declare const alertDialogActionVariants: (props?: ({
|
|
64
|
+
tone?: "default" | "info" | "warning" | "destructive" | "success" | null | undefined;
|
|
65
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
66
|
+
export interface AlertDialogActionProps extends ComponentPropsWithoutRef<typeof DialogPrimitive.Close> {
|
|
67
|
+
}
|
|
68
|
+
/**
|
|
69
|
+
* The confirm button. Clicking it runs the supplied `onClick` and then closes
|
|
70
|
+
* the dialog. By default it inherits the surrounding tone (e.g. a `destructive`
|
|
71
|
+
* tone yields a red confirm button); pass your own `className` to override.
|
|
72
|
+
*/
|
|
73
|
+
declare const AlertDialogAction: {
|
|
74
|
+
({ className, ...props }: AlertDialogActionProps): ReactElement;
|
|
75
|
+
displayName: string;
|
|
76
|
+
};
|
|
77
|
+
export interface AlertDialogCancelProps extends ComponentPropsWithoutRef<typeof DialogPrimitive.Close> {
|
|
78
|
+
}
|
|
79
|
+
/**
|
|
80
|
+
* The dismiss button. Closes the dialog without performing the action and is
|
|
81
|
+
* the focused element when the dialog opens, so pressing Enter is always safe.
|
|
82
|
+
*/
|
|
83
|
+
declare const AlertDialogCancel: {
|
|
84
|
+
({ className, ...props }: AlertDialogCancelProps): ReactElement;
|
|
85
|
+
displayName: string;
|
|
86
|
+
};
|
|
87
|
+
export { AlertDialog, AlertDialogPortal, AlertDialogOverlay, AlertDialogTrigger, AlertDialogContent, AlertDialogHeader, AlertDialogFooter, AlertDialogTitle, AlertDialogDescription, AlertDialogIcon, AlertDialogAction, AlertDialogCancel, alertDialogIconVariants, alertDialogActionVariants, };
|
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
|
+
import { createContext, useContext, } from "react";
|
|
4
|
+
import * as DialogPrimitive from "@radix-ui/react-dialog";
|
|
5
|
+
import { cva } from "class-variance-authority";
|
|
6
|
+
import { AlertTriangle, CheckCircle2, Info, TriangleAlert, } from "lucide-react";
|
|
7
|
+
import { cn } from "../../../lib/utils";
|
|
8
|
+
import { buttonVariants } from "../button";
|
|
9
|
+
/**
|
|
10
|
+
* Tone drives the accent styling of the optional leading icon and the default
|
|
11
|
+
* styling of {@link AlertDialogAction}. Destructive confirmations (e.g. delete)
|
|
12
|
+
* should use the `destructive` tone so the confirm button is unmistakably risky.
|
|
13
|
+
*/
|
|
14
|
+
export const alertDialogToneIds = [
|
|
15
|
+
"default",
|
|
16
|
+
"destructive",
|
|
17
|
+
"warning",
|
|
18
|
+
"success",
|
|
19
|
+
"info",
|
|
20
|
+
];
|
|
21
|
+
const AlertDialogContext = createContext({
|
|
22
|
+
tone: "default",
|
|
23
|
+
});
|
|
24
|
+
function useAlertDialogTone() {
|
|
25
|
+
return useContext(AlertDialogContext).tone;
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* Root of the alert dialog. A modal, focus-trapped dialog that interrupts the
|
|
29
|
+
* user to confirm a consequential action. Unlike {@link Dialog}, it renders
|
|
30
|
+
* with `role="alertdialog"`, omits the corner close button, and does not
|
|
31
|
+
* dismiss on an outside click — the user must pick an explicit action.
|
|
32
|
+
*/
|
|
33
|
+
const AlertDialog = DialogPrimitive.Root;
|
|
34
|
+
const AlertDialogTrigger = DialogPrimitive.Trigger;
|
|
35
|
+
const AlertDialogPortal = DialogPrimitive.Portal;
|
|
36
|
+
const AlertDialogOverlay = ({ className, ...props }) => (_jsx(DialogPrimitive.Overlay, { className: cn("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0", className), ...props }));
|
|
37
|
+
AlertDialogOverlay.displayName = "AlertDialogOverlay";
|
|
38
|
+
const AlertDialogContent = ({ className, children, tone = "default", onInteractOutside, ...props }) => (_jsx(AlertDialogContext.Provider, { value: { tone }, children: _jsxs(AlertDialogPortal, { children: [_jsx(AlertDialogOverlay, {}), _jsx(DialogPrimitive.Content, { role: "alertdialog", onInteractOutside: (event) => {
|
|
39
|
+
// Require an explicit choice — never dismiss on outside click.
|
|
40
|
+
event.preventDefault();
|
|
41
|
+
onInteractOutside?.(event);
|
|
42
|
+
}, className: cn("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg", className), ...props, children: children })] }) }));
|
|
43
|
+
AlertDialogContent.displayName = "AlertDialogContent";
|
|
44
|
+
const AlertDialogHeader = ({ className, ...props }) => (_jsx("div", { className: cn("flex flex-col space-y-2 text-center sm:text-left", className), ...props }));
|
|
45
|
+
AlertDialogHeader.displayName = "AlertDialogHeader";
|
|
46
|
+
const AlertDialogFooter = ({ className, ...props }) => (_jsx("div", { className: cn("flex flex-col-reverse gap-2 sm:flex-row sm:justify-end sm:gap-2", className), ...props }));
|
|
47
|
+
AlertDialogFooter.displayName = "AlertDialogFooter";
|
|
48
|
+
const AlertDialogTitle = ({ className, ...props }) => (_jsx(DialogPrimitive.Title, { className: cn("text-lg font-semibold leading-none tracking-tight", className), ...props }));
|
|
49
|
+
AlertDialogTitle.displayName = "AlertDialogTitle";
|
|
50
|
+
const AlertDialogDescription = ({ className, ...props }) => (_jsx(DialogPrimitive.Description, { className: cn("text-sm text-muted-foreground", className), ...props }));
|
|
51
|
+
AlertDialogDescription.displayName = "AlertDialogDescription";
|
|
52
|
+
const alertDialogIconVariants = cva("mx-auto flex size-11 shrink-0 items-center justify-center rounded-full sm:mx-0 [&>svg]:size-5", {
|
|
53
|
+
variants: {
|
|
54
|
+
tone: {
|
|
55
|
+
default: "bg-muted text-foreground",
|
|
56
|
+
destructive: "bg-destructive/15 text-destructive",
|
|
57
|
+
warning: "bg-warning/20 text-warning-foreground",
|
|
58
|
+
success: "bg-emerald-500/15 text-emerald-600 dark:text-emerald-400",
|
|
59
|
+
info: "bg-schemavaults-brand-blue/15 text-schemavaults-brand-blue",
|
|
60
|
+
},
|
|
61
|
+
},
|
|
62
|
+
defaultVariants: {
|
|
63
|
+
tone: "default",
|
|
64
|
+
},
|
|
65
|
+
});
|
|
66
|
+
const toneIcons = {
|
|
67
|
+
default: Info,
|
|
68
|
+
destructive: TriangleAlert,
|
|
69
|
+
warning: AlertTriangle,
|
|
70
|
+
success: CheckCircle2,
|
|
71
|
+
info: Info,
|
|
72
|
+
};
|
|
73
|
+
/**
|
|
74
|
+
* Optional themed icon for the header. When no `children` are provided, a
|
|
75
|
+
* sensible icon is chosen from the surrounding {@link AlertDialogContent} tone.
|
|
76
|
+
*/
|
|
77
|
+
const AlertDialogIcon = ({ className, tone: toneProp, children, ...props }) => {
|
|
78
|
+
const contextTone = useAlertDialogTone();
|
|
79
|
+
const tone = toneProp ?? contextTone;
|
|
80
|
+
const FallbackIcon = toneIcons[tone];
|
|
81
|
+
return (_jsx("span", { "aria-hidden": "true", "data-slot": "alert-dialog-icon", className: cn(alertDialogIconVariants({ tone }), className), ...props, children: children ?? _jsx(FallbackIcon, {}) }));
|
|
82
|
+
};
|
|
83
|
+
AlertDialogIcon.displayName = "AlertDialogIcon";
|
|
84
|
+
const alertDialogActionVariants = cva("", {
|
|
85
|
+
variants: {
|
|
86
|
+
tone: {
|
|
87
|
+
default: "",
|
|
88
|
+
destructive: "bg-destructive text-destructive-foreground hover:bg-destructive/90",
|
|
89
|
+
warning: "bg-warning text-warning-foreground hover:bg-warning/90",
|
|
90
|
+
success: "bg-emerald-600 text-white hover:bg-emerald-600/90 dark:bg-emerald-500 dark:hover:bg-emerald-500/90",
|
|
91
|
+
info: "bg-schemavaults-brand-blue text-primary-foreground hover:bg-schemavaults-brand-blue/90",
|
|
92
|
+
},
|
|
93
|
+
},
|
|
94
|
+
defaultVariants: {
|
|
95
|
+
tone: "default",
|
|
96
|
+
},
|
|
97
|
+
});
|
|
98
|
+
/**
|
|
99
|
+
* The confirm button. Clicking it runs the supplied `onClick` and then closes
|
|
100
|
+
* the dialog. By default it inherits the surrounding tone (e.g. a `destructive`
|
|
101
|
+
* tone yields a red confirm button); pass your own `className` to override.
|
|
102
|
+
*/
|
|
103
|
+
const AlertDialogAction = ({ className, ...props }) => {
|
|
104
|
+
const tone = useAlertDialogTone();
|
|
105
|
+
return (_jsx(DialogPrimitive.Close, { "data-slot": "alert-dialog-action", className: cn(buttonVariants({ variant: "default" }), alertDialogActionVariants({ tone }), className), ...props }));
|
|
106
|
+
};
|
|
107
|
+
AlertDialogAction.displayName = "AlertDialogAction";
|
|
108
|
+
/**
|
|
109
|
+
* The dismiss button. Closes the dialog without performing the action and is
|
|
110
|
+
* the focused element when the dialog opens, so pressing Enter is always safe.
|
|
111
|
+
*/
|
|
112
|
+
const AlertDialogCancel = ({ className, ...props }) => (_jsx(DialogPrimitive.Close, { "data-slot": "alert-dialog-cancel", className: cn(buttonVariants({ variant: "outline" }), "mt-2 sm:mt-0", className), ...props }));
|
|
113
|
+
AlertDialogCancel.displayName = "AlertDialogCancel";
|
|
114
|
+
export { AlertDialog, AlertDialogPortal, AlertDialogOverlay, AlertDialogTrigger, AlertDialogContent, AlertDialogHeader, AlertDialogFooter, AlertDialogTitle, AlertDialogDescription, AlertDialogIcon, AlertDialogAction, AlertDialogCancel, alertDialogIconVariants, alertDialogActionVariants, };
|
|
115
|
+
//# sourceMappingURL=alert-dialog.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"alert-dialog.js","sourceRoot":"","sources":["../../../../src/components/ui/alert-dialog/alert-dialog.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AAEb,OAAO,EACL,aAAa,EACb,UAAU,GAKX,MAAM,OAAO,CAAC;AACf,OAAO,KAAK,eAAe,MAAM,wBAAwB,CAAC;AAC1D,OAAO,EAAE,GAAG,EAAqB,MAAM,0BAA0B,CAAC;AAClE,OAAO,EACL,aAAa,EACb,YAAY,EACZ,IAAI,EACJ,aAAa,GACd,MAAM,cAAc,CAAC;AAEtB,OAAO,EAAE,EAAE,EAAE,MAAM,aAAa,CAAC;AACjC,OAAO,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AAE3C;;;;GAIG;AACH,MAAM,CAAC,MAAM,kBAAkB,GAAG;IAChC,SAAS;IACT,aAAa;IACb,SAAS;IACT,SAAS;IACT,MAAM;CAC8B,CAAC;AAOvC,MAAM,kBAAkB,GAAG,aAAa,CAA0B;IAChE,IAAI,EAAE,SAAS;CAChB,CAAC,CAAC;AAEH,SAAS,kBAAkB;IACzB,OAAO,UAAU,CAAC,kBAAkB,CAAC,CAAC,IAAI,CAAC;AAC7C,CAAC;AAED;;;;;GAKG;AACH,MAAM,WAAW,GAAG,eAAe,CAAC,IAAI,CAAC;AAEzC,MAAM,kBAAkB,GAAG,eAAe,CAAC,OAAO,CAAC;AAEnD,MAAM,iBAAiB,GAAG,eAAe,CAAC,MAAM,CAAC;AAEjD,MAAM,kBAAkB,GAAG,CAAC,EAC1B,SAAS,EACT,GAAG,KAAK,EACiD,EAAgB,EAAE,CAAC,CAC5E,KAAC,eAAe,CAAC,OAAO,IACtB,SAAS,EAAE,EAAE,CACX,wJAAwJ,EACxJ,SAAS,CACV,KAC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AkB,EAClB,kBAAkB,EAClB,kBAAkB,EAClB,iBAAiB,EACjB,iBAAiB,EACjB,gBAAgB,EAChB,sBAAsB,EACtB,eAAe,EACf,iBAAiB,EACjB,iBAAiB,EACjB,uBAAuB,EACvB,yBAAyB,GAC1B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/ui/alert-dialog/index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAC;AAG/B,OAAO,EAAE,WAAW,IAAI,OAAO,EAAE,MAAM,gBAAgB,CAAC"}
|
|
@@ -48,6 +48,8 @@ export * from "./navigation-menu";
|
|
|
48
48
|
export type * from "./navigation-menu";
|
|
49
49
|
export * from "./dialog";
|
|
50
50
|
export type * from "./dialog";
|
|
51
|
+
export * from "./alert-dialog";
|
|
52
|
+
export type * from "./alert-dialog";
|
|
51
53
|
export * from "./popover";
|
|
52
54
|
export type * from "./popover";
|
|
53
55
|
export * from "./command";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/ui/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC;AAGzB,cAAc,uBAAuB,CAAC;AAGtC,cAAc,aAAa,CAAC;AAG5B,cAAc,SAAS,CAAC;AAGxB,cAAc,WAAW,CAAC;AAG1B,cAAc,SAAS,CAAC;AAGxB,cAAc,mBAAmB,CAAC;AAGlC,cAAc,0BAA0B,CAAC;AAGzC,cAAc,UAAU,CAAC;AAGzB,cAAc,SAAS,CAAC;AAGxB,cAAc,kBAAkB,CAAC;AAGjC,cAAc,aAAa,CAAC;AAG5B,cAAc,kCAAkC,CAAC;AAGjD,cAAc,cAAc,CAAC;AAG7B,cAAc,SAAS,CAAC;AAGxB,cAAc,SAAS,CAAC;AAExB,cAAc,WAAW,CAAC;AAG1B,cAAc,YAAY,CAAC;AAG3B,cAAc,QAAQ,CAAC;AAGvB,cAAc,QAAQ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AqB,CAAC;AAGpC,cAAc,WAAW,CAAC;AAG1B,cAAc,UAAU,CAAC;AAGzB,cAAc,QAAQ,CAAC;AAGvB,cAAc,cAAc,CAAC;AAG7B,cAAc,iBAAiB,CAAC;AAGhC,cAAc,aAAa,CAAC;AAG5B,cAAc,gBAAgB,CAAC;AAG/B,cAAc,gBAAgB,CAAC;AAG/B,cAAc,oBAAoB,CAAC;AAGnC,cAAc,aAAa,CAAC;AAG5B,cAAc,aAAa,CAAC;AAG5B,cAAc,qBAAqB,CAAC;AAGpC,cAAc,kBAAkB,CAAC;AAGjC,cAAc,aAAa,CAAC;AAG5B,cAAc,YAAY,CAAC;AAG3B,cAAc,aAAa,CAAC;AAG5B,cAAc,0BAA0B,CAAC;AAGzC,cAAc,qBAAqB,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { type VariantProps } from "class-variance-authority";
|
|
2
2
|
import { type ComponentProps, type ReactElement, type Ref } from "react";
|
|
3
3
|
declare const numberTickerVariants: (props?: ({
|
|
4
|
-
variant?: "default" | "warning" | "destructive" | "primary" | "
|
|
4
|
+
variant?: "default" | "warning" | "destructive" | "primary" | "success" | "muted" | null | undefined;
|
|
5
5
|
size?: "sm" | "default" | "lg" | "xl" | "2xl" | "3xl" | null | undefined;
|
|
6
6
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
7
7
|
export type NumberTickerEase = "linear" | "easeIn" | "easeOut" | "easeInOut" | "circIn" | "circOut" | "circInOut" | "backIn" | "backOut" | "backInOut" | "anticipate";
|