vintasend 0.2.3 → 0.4.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/README.md +227 -12
- package/dist/examples/nextjs-prisma-nodemailer-pug-temporal/next.config.d.ts +1 -1
- package/dist/examples/nextjs-prisma-nodemailer-pug-temporal/next.config.js +9 -4
- package/dist/examples/nextjs-prisma-nodemailer-pug-temporal/src/app/api/auth/forgot-password/forgot-password-notification-context.d.ts +6 -6
- package/dist/examples/nextjs-prisma-nodemailer-pug-temporal/src/app/api/auth/forgot-password/forgot-password-notification-context.js +16 -17
- package/dist/examples/nextjs-prisma-nodemailer-pug-temporal/src/app/api/auth/forgot-password/route.d.ts +7 -5
- package/dist/examples/nextjs-prisma-nodemailer-pug-temporal/src/app/api/auth/forgot-password/route.js +105 -79
- package/dist/examples/nextjs-prisma-nodemailer-pug-temporal/src/app/api/auth/login/route.d.ts +4 -5
- package/dist/examples/nextjs-prisma-nodemailer-pug-temporal/src/app/api/auth/login/route.js +96 -66
- package/dist/examples/nextjs-prisma-nodemailer-pug-temporal/src/app/api/auth/reset-password/route.d.ts +7 -5
- package/dist/examples/nextjs-prisma-nodemailer-pug-temporal/src/app/api/auth/reset-password/route.js +95 -71
- package/dist/examples/nextjs-prisma-nodemailer-pug-temporal/src/app/api/auth/signup/email-verification-notification-context.d.ts +6 -6
- package/dist/examples/nextjs-prisma-nodemailer-pug-temporal/src/app/api/auth/signup/email-verification-notification-context.js +18 -18
- package/dist/examples/nextjs-prisma-nodemailer-pug-temporal/src/app/api/auth/signup/route.d.ts +4 -5
- package/dist/examples/nextjs-prisma-nodemailer-pug-temporal/src/app/api/auth/signup/route.js +124 -96
- package/dist/examples/nextjs-prisma-nodemailer-pug-temporal/src/app/api/auth/verify-email/route.d.ts +7 -5
- package/dist/examples/nextjs-prisma-nodemailer-pug-temporal/src/app/api/auth/verify-email/route.js +94 -70
- package/dist/examples/nextjs-prisma-nodemailer-pug-temporal/src/app/auth/login/page.d.ts +1 -1
- package/dist/examples/nextjs-prisma-nodemailer-pug-temporal/src/app/auth/login/page.js +67 -55
- package/dist/examples/nextjs-prisma-nodemailer-pug-temporal/src/app/auth/reset-password/[token]/page.d.ts +1 -1
- package/dist/examples/nextjs-prisma-nodemailer-pug-temporal/src/app/auth/reset-password/[token]/page.js +76 -63
- package/dist/examples/nextjs-prisma-nodemailer-pug-temporal/src/app/auth/signup/page.d.ts +1 -1
- package/dist/examples/nextjs-prisma-nodemailer-pug-temporal/src/app/auth/signup/page.js +87 -63
- package/dist/examples/nextjs-prisma-nodemailer-pug-temporal/src/app/auth/verify-email/[token]/page.d.ts +1 -1
- package/dist/examples/nextjs-prisma-nodemailer-pug-temporal/src/app/auth/verify-email/[token]/page.js +50 -35
- package/dist/examples/nextjs-prisma-nodemailer-pug-temporal/src/app/auth/verify-email-sent/page.d.ts +1 -1
- package/dist/examples/nextjs-prisma-nodemailer-pug-temporal/src/app/auth/verify-email-sent/page.js +12 -12
- package/dist/examples/nextjs-prisma-nodemailer-pug-temporal/src/app/layout.d.ts +7 -5
- package/dist/examples/nextjs-prisma-nodemailer-pug-temporal/src/app/layout.js +15 -16
- package/dist/examples/nextjs-prisma-nodemailer-pug-temporal/src/app/page.d.ts +1 -1
- package/dist/examples/nextjs-prisma-nodemailer-pug-temporal/src/app/page.js +65 -21
- package/dist/examples/nextjs-prisma-nodemailer-pug-temporal/src/components/AuthLayout.d.ts +7 -4
- package/dist/examples/nextjs-prisma-nodemailer-pug-temporal/src/components/AuthLayout.js +7 -8
- package/dist/examples/nextjs-prisma-nodemailer-pug-temporal/src/components/ui/accordion.d.ts +18 -6
- package/dist/examples/nextjs-prisma-nodemailer-pug-temporal/src/components/ui/accordion.js +86 -48
- package/dist/examples/nextjs-prisma-nodemailer-pug-temporal/src/components/ui/alert-dialog.d.ts +58 -14
- package/dist/examples/nextjs-prisma-nodemailer-pug-temporal/src/components/ui/alert-dialog.js +135 -53
- package/dist/examples/nextjs-prisma-nodemailer-pug-temporal/src/components/ui/alert.d.ts +21 -7
- package/dist/examples/nextjs-prisma-nodemailer-pug-temporal/src/components/ui/alert.js +85 -49
- package/dist/examples/nextjs-prisma-nodemailer-pug-temporal/src/components/ui/avatar.d.ts +14 -5
- package/dist/examples/nextjs-prisma-nodemailer-pug-temporal/src/components/ui/avatar.js +77 -40
- package/dist/examples/nextjs-prisma-nodemailer-pug-temporal/src/components/ui/button.d.ts +25 -9
- package/dist/examples/nextjs-prisma-nodemailer-pug-temporal/src/components/ui/button.js +80 -58
- package/dist/examples/nextjs-prisma-nodemailer-pug-temporal/src/components/ui/card.d.ts +19 -7
- package/dist/examples/nextjs-prisma-nodemailer-pug-temporal/src/components/ui/card.js +98 -48
- package/dist/examples/nextjs-prisma-nodemailer-pug-temporal/src/components/ui/checkbox.d.ts +6 -3
- package/dist/examples/nextjs-prisma-nodemailer-pug-temporal/src/components/ui/checkbox.js +66 -42
- package/dist/examples/nextjs-prisma-nodemailer-pug-temporal/src/components/ui/collapsible.d.ts +10 -4
- package/dist/examples/nextjs-prisma-nodemailer-pug-temporal/src/components/ui/collapsible.js +48 -35
- package/dist/examples/nextjs-prisma-nodemailer-pug-temporal/src/components/ui/dialog.d.ts +40 -13
- package/dist/examples/nextjs-prisma-nodemailer-pug-temporal/src/components/ui/dialog.js +116 -50
- package/dist/examples/nextjs-prisma-nodemailer-pug-temporal/src/components/ui/dropdown-menu.d.ts +83 -19
- package/dist/examples/nextjs-prisma-nodemailer-pug-temporal/src/components/ui/dropdown-menu.js +170 -68
- package/dist/examples/nextjs-prisma-nodemailer-pug-temporal/src/components/ui/form.d.ts +53 -21
- package/dist/examples/nextjs-prisma-nodemailer-pug-temporal/src/components/ui/form.js +137 -83
- package/dist/examples/nextjs-prisma-nodemailer-pug-temporal/src/components/ui/input.d.ts +8 -2
- package/dist/examples/nextjs-prisma-nodemailer-pug-temporal/src/components/ui/input.js +60 -37
- package/dist/examples/nextjs-prisma-nodemailer-pug-temporal/src/components/ui/label.d.ts +10 -4
- package/dist/examples/nextjs-prisma-nodemailer-pug-temporal/src/components/ui/label.js +61 -40
- package/dist/examples/nextjs-prisma-nodemailer-pug-temporal/src/components/ui/menubar.d.ts +77 -23
- package/dist/examples/nextjs-prisma-nodemailer-pug-temporal/src/components/ui/menubar.js +188 -64
- package/dist/examples/nextjs-prisma-nodemailer-pug-temporal/src/components/ui/select.d.ts +48 -12
- package/dist/examples/nextjs-prisma-nodemailer-pug-temporal/src/components/ui/select.js +148 -66
- package/dist/examples/nextjs-prisma-nodemailer-pug-temporal/src/components/ui/textarea.d.ts +8 -2
- package/dist/examples/nextjs-prisma-nodemailer-pug-temporal/src/components/ui/textarea.js +59 -37
- package/dist/examples/nextjs-prisma-nodemailer-pug-temporal/src/lib/api-clients/auth.d.ts +10 -10
- package/dist/examples/nextjs-prisma-nodemailer-pug-temporal/src/lib/api-clients/auth.js +54 -55
- package/dist/examples/nextjs-prisma-nodemailer-pug-temporal/src/lib/api-clients/core.d.ts +14 -11
- package/dist/examples/nextjs-prisma-nodemailer-pug-temporal/src/lib/api-clients/core.js +1 -2
- package/dist/examples/nextjs-prisma-nodemailer-pug-temporal/src/lib/email.js +0 -1
- package/dist/examples/nextjs-prisma-nodemailer-pug-temporal/src/lib/logger.d.ts +3 -3
- package/dist/examples/nextjs-prisma-nodemailer-pug-temporal/src/lib/logger.js +9 -10
- package/dist/examples/nextjs-prisma-nodemailer-pug-temporal/src/lib/schemas/auth.d.ts +66 -32
- package/dist/examples/nextjs-prisma-nodemailer-pug-temporal/src/lib/schemas/auth.js +74 -54
- package/dist/examples/nextjs-prisma-nodemailer-pug-temporal/src/lib/services/auth.js +7 -8
- package/dist/examples/nextjs-prisma-nodemailer-pug-temporal/src/lib/services/notifications-with-queue.d.ts +14 -4
- package/dist/examples/nextjs-prisma-nodemailer-pug-temporal/src/lib/services/notifications-with-queue.js +14 -10
- package/dist/examples/nextjs-prisma-nodemailer-pug-temporal/src/lib/services/notifications.d.ts +11 -7
- package/dist/examples/nextjs-prisma-nodemailer-pug-temporal/src/lib/services/notifications.js +39 -26
- package/dist/examples/nextjs-prisma-nodemailer-pug-temporal/src/lib/services/temporal-queue-service.d.ts +11 -8
- package/dist/examples/nextjs-prisma-nodemailer-pug-temporal/src/lib/services/temporal-queue-service.js +14 -15
- package/dist/examples/nextjs-prisma-nodemailer-pug-temporal/src/lib/temporal.d.ts +1 -1
- package/dist/examples/nextjs-prisma-nodemailer-pug-temporal/src/lib/temporal.js +9 -10
- package/dist/examples/nextjs-prisma-nodemailer-pug-temporal/src/lib/utils.d.ts +1 -1
- package/dist/examples/nextjs-prisma-nodemailer-pug-temporal/src/lib/utils.js +4 -5
- package/dist/examples/nextjs-prisma-nodemailer-pug-temporal/src/workers/notifications/activities.d.ts +6 -5
- package/dist/examples/nextjs-prisma-nodemailer-pug-temporal/src/workers/notifications/activities.js +14 -14
- package/dist/examples/nextjs-prisma-nodemailer-pug-temporal/src/workers/notifications/config.d.ts +1 -1
- package/dist/examples/nextjs-prisma-nodemailer-pug-temporal/src/workers/notifications/config.js +2 -3
- package/dist/examples/nextjs-prisma-nodemailer-pug-temporal/src/workers/notifications/constants.d.ts +1 -1
- package/dist/examples/nextjs-prisma-nodemailer-pug-temporal/src/workers/notifications/constants.js +1 -2
- package/dist/examples/nextjs-prisma-nodemailer-pug-temporal/src/workers/notifications/worker.js +20 -22
- package/dist/examples/nextjs-prisma-nodemailer-pug-temporal/src/workers/notifications/workflows.d.ts +3 -2
- package/dist/examples/nextjs-prisma-nodemailer-pug-temporal/src/workers/notifications/workflows.js +10 -9
- package/dist/examples/nextjs-prisma-nodemailer-pug-temporal/tailwind.config.d.ts +74 -74
- package/dist/examples/nextjs-prisma-nodemailer-pug-temporal/tailwind.config.js +80 -81
- package/dist/implementations/vintasend-nodemailer/src/index.js +6 -4
- package/dist/implementations/vintasend-nodemailer/src/nodemailer-notification-adapter.d.ts +36 -14
- package/dist/implementations/vintasend-nodemailer/src/nodemailer-notification-adapter.js +26 -28
- package/dist/implementations/vintasend-prisma/src/index.js +6 -4
- package/dist/implementations/vintasend-prisma/src/prisma-notification-backend.d.ts +232 -138
- package/dist/implementations/vintasend-prisma/src/prisma-notification-backend.js +275 -262
- package/dist/implementations/vintasend-pug/src/index.js +6 -4
- package/dist/implementations/vintasend-pug/src/pug-email-template-renderer.d.ts +18 -7
- package/dist/implementations/vintasend-pug/src/pug-email-template-renderer.js +19 -21
- package/dist/implementations/vintasend-winston/src/index.js +6 -4
- package/dist/implementations/vintasend-winston/src/winston-logger.d.ts +6 -6
- package/dist/implementations/vintasend-winston/src/winston-logger.js +65 -50
- package/dist/index.d.ts +13 -5
- package/dist/index.js +13 -1
- package/dist/services/attachment-manager/base-attachment-manager.d.ts +42 -0
- package/dist/services/attachment-manager/base-attachment-manager.js +115 -0
- package/dist/services/attachment-manager/local-file-attachment-manager.d.ts +58 -0
- package/dist/services/attachment-manager/local-file-attachment-manager.js +192 -0
- package/dist/services/notification-adapters/base-notification-adapter.d.ts +36 -4
- package/dist/services/notification-adapters/base-notification-adapter.js +73 -4
- package/dist/services/notification-backends/base-notification-backend.d.ts +54 -11
- package/dist/services/notification-backends/base-notification-backend.js +12 -0
- package/dist/services/notification-context-generators-map.d.ts +1 -1
- package/dist/services/notification-context-registry.d.ts +14 -9
- package/dist/services/notification-context-registry.js +30 -31
- package/dist/services/notification-queue-service/base-notification-queue-service.d.ts +1 -1
- package/dist/services/notification-service.d.ts +73 -13
- package/dist/services/notification-service.js +125 -8
- package/dist/services/notification-template-renderers/base-email-template-renderer.d.ts +3 -3
- package/dist/services/notification-template-renderers/base-notification-template-renderer.d.ts +2 -2
- package/dist/types/attachment.d.ts +42 -0
- package/dist/types/attachment.js +7 -0
- package/dist/types/notification-type-config.d.ts +2 -2
- package/dist/types/notification.d.ts +21 -0
- package/dist/types/one-off-notification.d.ts +72 -0
- package/dist/types/one-off-notification.js +2 -0
- package/package.json +13 -11
|
@@ -1,17 +1,23 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1
|
+
var __importDefault =
|
|
2
|
+
(this && this.__importDefault) || ((mod) => (mod && mod.__esModule ? mod : { default: mod }));
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
6
4
|
exports.default = Home;
|
|
7
|
-
const image_1 = __importDefault(require(
|
|
5
|
+
const image_1 = __importDefault(require('next/image'));
|
|
8
6
|
function Home() {
|
|
9
|
-
|
|
7
|
+
return (
|
|
8
|
+
<div className="grid grid-rows-[20px_1fr_20px] items-center justify-items-center min-h-screen p-8 pb-20 gap-16 sm:p-20 font-[family-name:var(--font-geist-sans)]">
|
|
10
9
|
<main className="flex flex-col gap-8 row-start-2 items-center sm:items-start">
|
|
11
|
-
<image_1.default
|
|
10
|
+
<image_1.default
|
|
11
|
+
className="dark:invert"
|
|
12
|
+
src="/next.svg"
|
|
13
|
+
alt="Next.js logo"
|
|
14
|
+
width={180}
|
|
15
|
+
height={38}
|
|
16
|
+
priority
|
|
17
|
+
/>
|
|
12
18
|
<ol className="list-inside list-decimal text-sm text-center sm:text-left font-[family-name:var(--font-geist-mono)]">
|
|
13
19
|
<li className="mb-2">
|
|
14
|
-
Get started by editing{
|
|
20
|
+
Get started by editing{' '}
|
|
15
21
|
<code className="bg-black/[.05] dark:bg-white/[.06] px-1 py-0.5 rounded font-semibold">
|
|
16
22
|
src/app/page.tsx
|
|
17
23
|
</code>
|
|
@@ -21,34 +27,72 @@ function Home() {
|
|
|
21
27
|
</ol>
|
|
22
28
|
|
|
23
29
|
<div className="flex gap-4 items-center flex-col sm:flex-row flex-wrap">
|
|
24
|
-
<a
|
|
30
|
+
<a
|
|
31
|
+
className="rounded-full border border-solid border-transparent transition-colors flex items-center justify-center bg-foreground text-background gap-2 hover:bg-[#383838] dark:hover:bg-[#ccc] text-sm sm:text-base h-10 sm:h-12 px-4 sm:px-5"
|
|
32
|
+
href="/auth/login"
|
|
33
|
+
>
|
|
25
34
|
Log in
|
|
26
35
|
</a>
|
|
27
|
-
<a
|
|
36
|
+
<a
|
|
37
|
+
className="rounded-full border border-solid border-black/[.08] dark:border-white/[.145] transition-colors flex items-center justify-center hover:bg-[#f2f2f2] dark:hover:bg-[#1a1a1a] hover:border-transparent text-sm sm:text-base h-10 sm:h-12 px-4 sm:px-5"
|
|
38
|
+
href="/auth/signup"
|
|
39
|
+
>
|
|
28
40
|
Sign up
|
|
29
41
|
</a>
|
|
30
|
-
<a
|
|
31
|
-
|
|
42
|
+
<a
|
|
43
|
+
className="rounded-full border border-solid border-transparent transition-colors flex items-center justify-center bg-foreground text-background gap-2 hover:bg-[#383838] dark:hover:bg-[#ccc] text-sm sm:text-base h-10 sm:h-12 px-4 sm:px-5"
|
|
44
|
+
href="https://vercel.com/new?utm_source=create-next-app&utm_medium=appdir-template-tw&utm_campaign=create-next-app"
|
|
45
|
+
target="_blank"
|
|
46
|
+
rel="noopener noreferrer"
|
|
47
|
+
>
|
|
48
|
+
<image_1.default
|
|
49
|
+
className="dark:invert"
|
|
50
|
+
src="/vercel.svg"
|
|
51
|
+
alt="Vercel logomark"
|
|
52
|
+
width={20}
|
|
53
|
+
height={20}
|
|
54
|
+
/>
|
|
32
55
|
Deploy now
|
|
33
56
|
</a>
|
|
34
|
-
<a
|
|
57
|
+
<a
|
|
58
|
+
className="rounded-full border border-solid border-black/[.08] dark:border-white/[.145] transition-colors flex items-center justify-center hover:bg-[#f2f2f2] dark:hover:bg-[#1a1a1a] hover:border-transparent text-sm sm:text-base h-10 sm:h-12 px-4 sm:px-5 sm:min-w-44"
|
|
59
|
+
href="https://nextjs.org/docs?utm_source=create-next-app&utm_medium=appdir-template-tw&utm_campaign=create-next-app"
|
|
60
|
+
target="_blank"
|
|
61
|
+
rel="noopener noreferrer"
|
|
62
|
+
>
|
|
35
63
|
Read our docs
|
|
36
64
|
</a>
|
|
37
65
|
</div>
|
|
38
66
|
</main>
|
|
39
67
|
<footer className="row-start-3 flex gap-6 flex-wrap items-center justify-center">
|
|
40
|
-
<a
|
|
41
|
-
|
|
68
|
+
<a
|
|
69
|
+
className="flex items-center gap-2 hover:underline hover:underline-offset-4"
|
|
70
|
+
href="https://nextjs.org/learn?utm_source=create-next-app&utm_medium=appdir-template-tw&utm_campaign=create-next-app"
|
|
71
|
+
target="_blank"
|
|
72
|
+
rel="noopener noreferrer"
|
|
73
|
+
>
|
|
74
|
+
<image_1.default aria-hidden src="/file.svg" alt="File icon" width={16} height={16} />
|
|
42
75
|
Learn
|
|
43
76
|
</a>
|
|
44
|
-
<a
|
|
45
|
-
|
|
77
|
+
<a
|
|
78
|
+
className="flex items-center gap-2 hover:underline hover:underline-offset-4"
|
|
79
|
+
href="https://vercel.com/templates?framework=next.js&utm_source=create-next-app&utm_medium=appdir-template-tw&utm_campaign=create-next-app"
|
|
80
|
+
target="_blank"
|
|
81
|
+
rel="noopener noreferrer"
|
|
82
|
+
>
|
|
83
|
+
<image_1.default aria-hidden src="/window.svg" alt="Window icon" width={16} height={16} />
|
|
46
84
|
Examples
|
|
47
85
|
</a>
|
|
48
|
-
<a
|
|
49
|
-
|
|
86
|
+
<a
|
|
87
|
+
className="flex items-center gap-2 hover:underline hover:underline-offset-4"
|
|
88
|
+
href="https://nextjs.org?utm_source=create-next-app&utm_medium=appdir-template-tw&utm_campaign=create-next-app"
|
|
89
|
+
target="_blank"
|
|
90
|
+
rel="noopener noreferrer"
|
|
91
|
+
>
|
|
92
|
+
<image_1.default aria-hidden src="/globe.svg" alt="Globe icon" width={16} height={16} />
|
|
50
93
|
Go to nextjs.org →
|
|
51
94
|
</a>
|
|
52
95
|
</footer>
|
|
53
|
-
</div>
|
|
96
|
+
</div>
|
|
97
|
+
);
|
|
54
98
|
}
|
|
@@ -1,4 +1,7 @@
|
|
|
1
|
-
export declare function AuthLayout({
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
}
|
|
1
|
+
export declare function AuthLayout({
|
|
2
|
+
children,
|
|
3
|
+
title,
|
|
4
|
+
}: {
|
|
5
|
+
children: React.ReactNode;
|
|
6
|
+
title: string;
|
|
7
|
+
}): import('react').JSX.Element;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
3
2
|
exports.AuthLayout = AuthLayout;
|
|
4
|
-
const card_1 = require(
|
|
3
|
+
const card_1 = require('./ui/card');
|
|
5
4
|
function AuthLayout({ children, title }) {
|
|
6
|
-
|
|
5
|
+
return (
|
|
6
|
+
<div className="container relative min-h-screen flex-col items-center justify-center grid lg:max-w-none lg:grid-cols-1 lg:px-0">
|
|
7
7
|
<div className="mx-auto flex w-full flex-col justify-center space-y-6 sm:w-[350px]">
|
|
8
8
|
<card_1.Card>
|
|
9
9
|
<card_1.CardHeader>
|
|
@@ -11,10 +11,9 @@ function AuthLayout({ children, title }) {
|
|
|
11
11
|
{title}
|
|
12
12
|
</card_1.CardTitle>
|
|
13
13
|
</card_1.CardHeader>
|
|
14
|
-
<card_1.CardContent>
|
|
15
|
-
{children}
|
|
16
|
-
</card_1.CardContent>
|
|
14
|
+
<card_1.CardContent>{children}</card_1.CardContent>
|
|
17
15
|
</card_1.Card>
|
|
18
16
|
</div>
|
|
19
|
-
</div>
|
|
17
|
+
</div>
|
|
18
|
+
);
|
|
20
19
|
}
|
package/dist/examples/nextjs-prisma-nodemailer-pug-temporal/src/components/ui/accordion.d.ts
CHANGED
|
@@ -1,7 +1,19 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import * as
|
|
3
|
-
declare const Accordion: React.ForwardRefExoticComponent<
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
1
|
+
import type * as AccordionPrimitive from '@radix-ui/react-accordion';
|
|
2
|
+
import type * as React from 'react';
|
|
3
|
+
declare const Accordion: React.ForwardRefExoticComponent<
|
|
4
|
+
(AccordionPrimitive.AccordionSingleProps | AccordionPrimitive.AccordionMultipleProps) &
|
|
5
|
+
React.RefAttributes<HTMLDivElement>
|
|
6
|
+
>;
|
|
7
|
+
declare const AccordionItem: React.ForwardRefExoticComponent<
|
|
8
|
+
Omit<AccordionPrimitive.AccordionItemProps & React.RefAttributes<HTMLDivElement>, 'ref'> &
|
|
9
|
+
React.RefAttributes<HTMLDivElement>
|
|
10
|
+
>;
|
|
11
|
+
declare const AccordionTrigger: React.ForwardRefExoticComponent<
|
|
12
|
+
Omit<AccordionPrimitive.AccordionTriggerProps & React.RefAttributes<HTMLButtonElement>, 'ref'> &
|
|
13
|
+
React.RefAttributes<HTMLButtonElement>
|
|
14
|
+
>;
|
|
15
|
+
declare const AccordionContent: React.ForwardRefExoticComponent<
|
|
16
|
+
Omit<AccordionPrimitive.AccordionContentProps & React.RefAttributes<HTMLDivElement>, 'ref'> &
|
|
17
|
+
React.RefAttributes<HTMLDivElement>
|
|
18
|
+
>;
|
|
7
19
|
export { Accordion, AccordionItem, AccordionTrigger, AccordionContent };
|
|
@@ -1,59 +1,97 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
})
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
1
|
+
'use client';
|
|
2
|
+
var __createBinding =
|
|
3
|
+
(this && this.__createBinding) ||
|
|
4
|
+
(Object.create
|
|
5
|
+
? (o, m, k, k2) => {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ('get' in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: () => m[k] };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}
|
|
13
|
+
: (o, m, k, k2) => {
|
|
14
|
+
if (k2 === undefined) k2 = k;
|
|
15
|
+
o[k2] = m[k];
|
|
16
|
+
});
|
|
17
|
+
var __setModuleDefault =
|
|
18
|
+
(this && this.__setModuleDefault) ||
|
|
19
|
+
(Object.create
|
|
20
|
+
? (o, v) => {
|
|
21
|
+
Object.defineProperty(o, 'default', { enumerable: true, value: v });
|
|
22
|
+
}
|
|
23
|
+
: (o, v) => {
|
|
24
|
+
o['default'] = v;
|
|
25
|
+
});
|
|
26
|
+
var __importStar =
|
|
27
|
+
(this && this.__importStar) ||
|
|
28
|
+
(() => {
|
|
29
|
+
var ownKeys = (o) => {
|
|
30
|
+
ownKeys =
|
|
31
|
+
Object.getOwnPropertyNames ||
|
|
32
|
+
((o) => {
|
|
33
|
+
var ar = [];
|
|
34
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
35
|
+
return ar;
|
|
36
|
+
});
|
|
37
|
+
return ownKeys(o);
|
|
27
38
|
};
|
|
28
|
-
return
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
39
|
+
return (mod) => {
|
|
40
|
+
if (mod && mod.__esModule) return mod;
|
|
41
|
+
var result = {};
|
|
42
|
+
if (mod != null)
|
|
43
|
+
for (var k = ownKeys(mod), i = 0; i < k.length; i++)
|
|
44
|
+
if (k[i] !== 'default') __createBinding(result, mod, k[i]);
|
|
45
|
+
__setModuleDefault(result, mod);
|
|
46
|
+
return result;
|
|
34
47
|
};
|
|
35
|
-
})();
|
|
36
|
-
Object.defineProperty(exports,
|
|
37
|
-
exports.AccordionContent =
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
48
|
+
})();
|
|
49
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
50
|
+
exports.AccordionContent =
|
|
51
|
+
exports.AccordionTrigger =
|
|
52
|
+
exports.AccordionItem =
|
|
53
|
+
exports.Accordion =
|
|
54
|
+
void 0;
|
|
55
|
+
const React = __importStar(require('react'));
|
|
56
|
+
const AccordionPrimitive = __importStar(require('@radix-ui/react-accordion'));
|
|
57
|
+
const lucide_react_1 = require('lucide-react');
|
|
58
|
+
const utils_1 = require('../../lib/utils');
|
|
42
59
|
const Accordion = AccordionPrimitive.Root;
|
|
43
60
|
exports.Accordion = Accordion;
|
|
44
|
-
const AccordionItem = React.forwardRef(({ className, ...props }, ref) => (
|
|
61
|
+
const AccordionItem = React.forwardRef(({ className, ...props }, ref) => (
|
|
62
|
+
<AccordionPrimitive.Item
|
|
63
|
+
ref={ref}
|
|
64
|
+
className={(0, utils_1.cn)('border-b', className)}
|
|
65
|
+
{...props}
|
|
66
|
+
/>
|
|
67
|
+
));
|
|
45
68
|
exports.AccordionItem = AccordionItem;
|
|
46
|
-
AccordionItem.displayName =
|
|
47
|
-
const AccordionTrigger = React.forwardRef(({ className, children, ...props }, ref) => (
|
|
48
|
-
|
|
69
|
+
AccordionItem.displayName = 'AccordionItem';
|
|
70
|
+
const AccordionTrigger = React.forwardRef(({ className, children, ...props }, ref) => (
|
|
71
|
+
<AccordionPrimitive.Header className="flex">
|
|
72
|
+
<AccordionPrimitive.Trigger
|
|
73
|
+
ref={ref}
|
|
74
|
+
className={(0, utils_1.cn)(
|
|
75
|
+
'flex flex-1 items-center justify-between py-4 font-medium transition-all hover:underline [&[data-state=open]>svg]:rotate-180',
|
|
76
|
+
className,
|
|
77
|
+
)}
|
|
78
|
+
{...props}
|
|
79
|
+
>
|
|
49
80
|
{children}
|
|
50
|
-
<lucide_react_1.ChevronDown className="h-4 w-4 shrink-0 transition-transform duration-200"/>
|
|
81
|
+
<lucide_react_1.ChevronDown className="h-4 w-4 shrink-0 transition-transform duration-200" />
|
|
51
82
|
</AccordionPrimitive.Trigger>
|
|
52
|
-
</AccordionPrimitive.Header>
|
|
83
|
+
</AccordionPrimitive.Header>
|
|
84
|
+
));
|
|
53
85
|
exports.AccordionTrigger = AccordionTrigger;
|
|
54
86
|
AccordionTrigger.displayName = AccordionPrimitive.Trigger.displayName;
|
|
55
|
-
const AccordionContent = React.forwardRef(({ className, children, ...props }, ref) => (
|
|
56
|
-
|
|
57
|
-
|
|
87
|
+
const AccordionContent = React.forwardRef(({ className, children, ...props }, ref) => (
|
|
88
|
+
<AccordionPrimitive.Content
|
|
89
|
+
ref={ref}
|
|
90
|
+
className="overflow-hidden text-sm transition-all data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down"
|
|
91
|
+
{...props}
|
|
92
|
+
>
|
|
93
|
+
<div className={(0, utils_1.cn)('pb-4 pt-0', className)}>{children}</div>
|
|
94
|
+
</AccordionPrimitive.Content>
|
|
95
|
+
));
|
|
58
96
|
exports.AccordionContent = AccordionContent;
|
|
59
97
|
AccordionContent.displayName = AccordionPrimitive.Content.displayName;
|
package/dist/examples/nextjs-prisma-nodemailer-pug-temporal/src/components/ui/alert-dialog.d.ts
CHANGED
|
@@ -1,20 +1,64 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import * as
|
|
1
|
+
import type * as AlertDialogPrimitive from '@radix-ui/react-alert-dialog';
|
|
2
|
+
import type * as React from 'react';
|
|
3
3
|
declare const AlertDialog: React.FC<AlertDialogPrimitive.AlertDialogProps>;
|
|
4
|
-
declare const AlertDialogTrigger: React.ForwardRefExoticComponent<
|
|
4
|
+
declare const AlertDialogTrigger: React.ForwardRefExoticComponent<
|
|
5
|
+
AlertDialogPrimitive.AlertDialogTriggerProps & React.RefAttributes<HTMLButtonElement>
|
|
6
|
+
>;
|
|
5
7
|
declare const AlertDialogPortal: React.FC<AlertDialogPrimitive.AlertDialogPortalProps>;
|
|
6
|
-
declare const AlertDialogOverlay: React.ForwardRefExoticComponent<
|
|
7
|
-
|
|
8
|
+
declare const AlertDialogOverlay: React.ForwardRefExoticComponent<
|
|
9
|
+
Omit<AlertDialogPrimitive.AlertDialogOverlayProps & React.RefAttributes<HTMLDivElement>, 'ref'> &
|
|
10
|
+
React.RefAttributes<HTMLDivElement>
|
|
11
|
+
>;
|
|
12
|
+
declare const AlertDialogContent: React.ForwardRefExoticComponent<
|
|
13
|
+
Omit<AlertDialogPrimitive.AlertDialogContentProps & React.RefAttributes<HTMLDivElement>, 'ref'> &
|
|
14
|
+
React.RefAttributes<HTMLDivElement>
|
|
15
|
+
>;
|
|
8
16
|
declare const AlertDialogHeader: {
|
|
9
|
-
|
|
10
|
-
|
|
17
|
+
({ className, ...props }: React.HTMLAttributes<HTMLDivElement>): React.JSX.Element;
|
|
18
|
+
displayName: string;
|
|
11
19
|
};
|
|
12
20
|
declare const AlertDialogFooter: {
|
|
13
|
-
|
|
14
|
-
|
|
21
|
+
({ className, ...props }: React.HTMLAttributes<HTMLDivElement>): React.JSX.Element;
|
|
22
|
+
displayName: string;
|
|
23
|
+
};
|
|
24
|
+
declare const AlertDialogTitle: React.ForwardRefExoticComponent<
|
|
25
|
+
Omit<
|
|
26
|
+
AlertDialogPrimitive.AlertDialogTitleProps & React.RefAttributes<HTMLHeadingElement>,
|
|
27
|
+
'ref'
|
|
28
|
+
> &
|
|
29
|
+
React.RefAttributes<HTMLHeadingElement>
|
|
30
|
+
>;
|
|
31
|
+
declare const AlertDialogDescription: React.ForwardRefExoticComponent<
|
|
32
|
+
Omit<
|
|
33
|
+
AlertDialogPrimitive.AlertDialogDescriptionProps & React.RefAttributes<HTMLParagraphElement>,
|
|
34
|
+
'ref'
|
|
35
|
+
> &
|
|
36
|
+
React.RefAttributes<HTMLParagraphElement>
|
|
37
|
+
>;
|
|
38
|
+
declare const AlertDialogAction: React.ForwardRefExoticComponent<
|
|
39
|
+
Omit<
|
|
40
|
+
AlertDialogPrimitive.AlertDialogActionProps & React.RefAttributes<HTMLButtonElement>,
|
|
41
|
+
'ref'
|
|
42
|
+
> &
|
|
43
|
+
React.RefAttributes<HTMLButtonElement>
|
|
44
|
+
>;
|
|
45
|
+
declare const AlertDialogCancel: React.ForwardRefExoticComponent<
|
|
46
|
+
Omit<
|
|
47
|
+
AlertDialogPrimitive.AlertDialogCancelProps & React.RefAttributes<HTMLButtonElement>,
|
|
48
|
+
'ref'
|
|
49
|
+
> &
|
|
50
|
+
React.RefAttributes<HTMLButtonElement>
|
|
51
|
+
>;
|
|
52
|
+
export {
|
|
53
|
+
AlertDialog,
|
|
54
|
+
AlertDialogPortal,
|
|
55
|
+
AlertDialogOverlay,
|
|
56
|
+
AlertDialogTrigger,
|
|
57
|
+
AlertDialogContent,
|
|
58
|
+
AlertDialogHeader,
|
|
59
|
+
AlertDialogFooter,
|
|
60
|
+
AlertDialogTitle,
|
|
61
|
+
AlertDialogDescription,
|
|
62
|
+
AlertDialogAction,
|
|
63
|
+
AlertDialogCancel,
|
|
15
64
|
};
|
|
16
|
-
declare const AlertDialogTitle: React.ForwardRefExoticComponent<Omit<AlertDialogPrimitive.AlertDialogTitleProps & React.RefAttributes<HTMLHeadingElement>, "ref"> & React.RefAttributes<HTMLHeadingElement>>;
|
|
17
|
-
declare const AlertDialogDescription: React.ForwardRefExoticComponent<Omit<AlertDialogPrimitive.AlertDialogDescriptionProps & React.RefAttributes<HTMLParagraphElement>, "ref"> & React.RefAttributes<HTMLParagraphElement>>;
|
|
18
|
-
declare const AlertDialogAction: React.ForwardRefExoticComponent<Omit<AlertDialogPrimitive.AlertDialogActionProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
19
|
-
declare const AlertDialogCancel: React.ForwardRefExoticComponent<Omit<AlertDialogPrimitive.AlertDialogCancelProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
20
|
-
export { AlertDialog, AlertDialogPortal, AlertDialogOverlay, AlertDialogTrigger, AlertDialogContent, AlertDialogHeader, AlertDialogFooter, AlertDialogTitle, AlertDialogDescription, AlertDialogAction, AlertDialogCancel, };
|
package/dist/examples/nextjs-prisma-nodemailer-pug-temporal/src/components/ui/alert-dialog.js
CHANGED
|
@@ -1,75 +1,157 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
})
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
1
|
+
'use client';
|
|
2
|
+
var __createBinding =
|
|
3
|
+
(this && this.__createBinding) ||
|
|
4
|
+
(Object.create
|
|
5
|
+
? (o, m, k, k2) => {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ('get' in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: () => m[k] };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}
|
|
13
|
+
: (o, m, k, k2) => {
|
|
14
|
+
if (k2 === undefined) k2 = k;
|
|
15
|
+
o[k2] = m[k];
|
|
16
|
+
});
|
|
17
|
+
var __setModuleDefault =
|
|
18
|
+
(this && this.__setModuleDefault) ||
|
|
19
|
+
(Object.create
|
|
20
|
+
? (o, v) => {
|
|
21
|
+
Object.defineProperty(o, 'default', { enumerable: true, value: v });
|
|
22
|
+
}
|
|
23
|
+
: (o, v) => {
|
|
24
|
+
o['default'] = v;
|
|
25
|
+
});
|
|
26
|
+
var __importStar =
|
|
27
|
+
(this && this.__importStar) ||
|
|
28
|
+
(() => {
|
|
29
|
+
var ownKeys = (o) => {
|
|
30
|
+
ownKeys =
|
|
31
|
+
Object.getOwnPropertyNames ||
|
|
32
|
+
((o) => {
|
|
33
|
+
var ar = [];
|
|
34
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
35
|
+
return ar;
|
|
36
|
+
});
|
|
37
|
+
return ownKeys(o);
|
|
27
38
|
};
|
|
28
|
-
return
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
39
|
+
return (mod) => {
|
|
40
|
+
if (mod && mod.__esModule) return mod;
|
|
41
|
+
var result = {};
|
|
42
|
+
if (mod != null)
|
|
43
|
+
for (var k = ownKeys(mod), i = 0; i < k.length; i++)
|
|
44
|
+
if (k[i] !== 'default') __createBinding(result, mod, k[i]);
|
|
45
|
+
__setModuleDefault(result, mod);
|
|
46
|
+
return result;
|
|
34
47
|
};
|
|
35
|
-
})();
|
|
36
|
-
Object.defineProperty(exports,
|
|
37
|
-
exports.AlertDialogCancel =
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
48
|
+
})();
|
|
49
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
50
|
+
exports.AlertDialogCancel =
|
|
51
|
+
exports.AlertDialogAction =
|
|
52
|
+
exports.AlertDialogDescription =
|
|
53
|
+
exports.AlertDialogTitle =
|
|
54
|
+
exports.AlertDialogFooter =
|
|
55
|
+
exports.AlertDialogHeader =
|
|
56
|
+
exports.AlertDialogContent =
|
|
57
|
+
exports.AlertDialogTrigger =
|
|
58
|
+
exports.AlertDialogOverlay =
|
|
59
|
+
exports.AlertDialogPortal =
|
|
60
|
+
exports.AlertDialog =
|
|
61
|
+
void 0;
|
|
62
|
+
const React = __importStar(require('react'));
|
|
63
|
+
const AlertDialogPrimitive = __importStar(require('@radix-ui/react-alert-dialog'));
|
|
64
|
+
const utils_1 = require('../../lib/utils');
|
|
65
|
+
const button_1 = require('../../components/ui/button');
|
|
42
66
|
const AlertDialog = AlertDialogPrimitive.Root;
|
|
43
67
|
exports.AlertDialog = AlertDialog;
|
|
44
68
|
const AlertDialogTrigger = AlertDialogPrimitive.Trigger;
|
|
45
69
|
exports.AlertDialogTrigger = AlertDialogTrigger;
|
|
46
70
|
const AlertDialogPortal = AlertDialogPrimitive.Portal;
|
|
47
71
|
exports.AlertDialogPortal = AlertDialogPortal;
|
|
48
|
-
const AlertDialogOverlay = React.forwardRef(({ className, ...props }, ref) => (
|
|
72
|
+
const AlertDialogOverlay = React.forwardRef(({ className, ...props }, ref) => (
|
|
73
|
+
<AlertDialogPrimitive.Overlay
|
|
74
|
+
className={(0, utils_1.cn)(
|
|
75
|
+
'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',
|
|
76
|
+
className,
|
|
77
|
+
)}
|
|
78
|
+
{...props}
|
|
79
|
+
ref={ref}
|
|
80
|
+
/>
|
|
81
|
+
));
|
|
49
82
|
exports.AlertDialogOverlay = AlertDialogOverlay;
|
|
50
83
|
AlertDialogOverlay.displayName = AlertDialogPrimitive.Overlay.displayName;
|
|
51
|
-
const AlertDialogContent = React.forwardRef(({ className, ...props }, ref) => (
|
|
84
|
+
const AlertDialogContent = React.forwardRef(({ className, ...props }, ref) => (
|
|
85
|
+
<AlertDialogPortal>
|
|
52
86
|
<AlertDialogOverlay />
|
|
53
|
-
<AlertDialogPrimitive.Content
|
|
54
|
-
|
|
87
|
+
<AlertDialogPrimitive.Content
|
|
88
|
+
ref={ref}
|
|
89
|
+
className={(0, utils_1.cn)(
|
|
90
|
+
'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',
|
|
91
|
+
className,
|
|
92
|
+
)}
|
|
93
|
+
{...props}
|
|
94
|
+
/>
|
|
95
|
+
</AlertDialogPortal>
|
|
96
|
+
));
|
|
55
97
|
exports.AlertDialogContent = AlertDialogContent;
|
|
56
98
|
AlertDialogContent.displayName = AlertDialogPrimitive.Content.displayName;
|
|
57
|
-
const AlertDialogHeader = ({ className, ...props }) => (
|
|
99
|
+
const AlertDialogHeader = ({ className, ...props }) => (
|
|
100
|
+
<div
|
|
101
|
+
className={(0, utils_1.cn)('flex flex-col space-y-2 text-center sm:text-left', className)}
|
|
102
|
+
{...props}
|
|
103
|
+
/>
|
|
104
|
+
);
|
|
58
105
|
exports.AlertDialogHeader = AlertDialogHeader;
|
|
59
|
-
AlertDialogHeader.displayName =
|
|
60
|
-
const AlertDialogFooter = ({ className, ...props }) => (
|
|
106
|
+
AlertDialogHeader.displayName = 'AlertDialogHeader';
|
|
107
|
+
const AlertDialogFooter = ({ className, ...props }) => (
|
|
108
|
+
<div
|
|
109
|
+
className={(0, utils_1.cn)(
|
|
110
|
+
'flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2',
|
|
111
|
+
className,
|
|
112
|
+
)}
|
|
113
|
+
{...props}
|
|
114
|
+
/>
|
|
115
|
+
);
|
|
61
116
|
exports.AlertDialogFooter = AlertDialogFooter;
|
|
62
|
-
AlertDialogFooter.displayName =
|
|
63
|
-
const AlertDialogTitle = React.forwardRef(({ className, ...props }, ref) => (
|
|
117
|
+
AlertDialogFooter.displayName = 'AlertDialogFooter';
|
|
118
|
+
const AlertDialogTitle = React.forwardRef(({ className, ...props }, ref) => (
|
|
119
|
+
<AlertDialogPrimitive.Title
|
|
120
|
+
ref={ref}
|
|
121
|
+
className={(0, utils_1.cn)('text-lg font-semibold', className)}
|
|
122
|
+
{...props}
|
|
123
|
+
/>
|
|
124
|
+
));
|
|
64
125
|
exports.AlertDialogTitle = AlertDialogTitle;
|
|
65
126
|
AlertDialogTitle.displayName = AlertDialogPrimitive.Title.displayName;
|
|
66
|
-
const AlertDialogDescription = React.forwardRef(({ className, ...props }, ref) => (
|
|
127
|
+
const AlertDialogDescription = React.forwardRef(({ className, ...props }, ref) => (
|
|
128
|
+
<AlertDialogPrimitive.Description
|
|
129
|
+
ref={ref}
|
|
130
|
+
className={(0, utils_1.cn)('text-sm text-muted-foreground', className)}
|
|
131
|
+
{...props}
|
|
132
|
+
/>
|
|
133
|
+
));
|
|
67
134
|
exports.AlertDialogDescription = AlertDialogDescription;
|
|
68
|
-
AlertDialogDescription.displayName =
|
|
69
|
-
|
|
70
|
-
|
|
135
|
+
AlertDialogDescription.displayName = AlertDialogPrimitive.Description.displayName;
|
|
136
|
+
const AlertDialogAction = React.forwardRef(({ className, ...props }, ref) => (
|
|
137
|
+
<AlertDialogPrimitive.Action
|
|
138
|
+
ref={ref}
|
|
139
|
+
className={(0, utils_1.cn)((0, button_1.buttonVariants)(), className)}
|
|
140
|
+
{...props}
|
|
141
|
+
/>
|
|
142
|
+
));
|
|
71
143
|
exports.AlertDialogAction = AlertDialogAction;
|
|
72
144
|
AlertDialogAction.displayName = AlertDialogPrimitive.Action.displayName;
|
|
73
|
-
const AlertDialogCancel = React.forwardRef(({ className, ...props }, ref) => (
|
|
145
|
+
const AlertDialogCancel = React.forwardRef(({ className, ...props }, ref) => (
|
|
146
|
+
<AlertDialogPrimitive.Cancel
|
|
147
|
+
ref={ref}
|
|
148
|
+
className={(0, utils_1.cn)(
|
|
149
|
+
(0, button_1.buttonVariants)({ variant: 'outline' }),
|
|
150
|
+
'mt-2 sm:mt-0',
|
|
151
|
+
className,
|
|
152
|
+
)}
|
|
153
|
+
{...props}
|
|
154
|
+
/>
|
|
155
|
+
));
|
|
74
156
|
exports.AlertDialogCancel = AlertDialogCancel;
|
|
75
157
|
AlertDialogCancel.displayName = AlertDialogPrimitive.Cancel.displayName;
|