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,8 +1,22 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
declare const Alert: React.ForwardRefExoticComponent<
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
1
|
+
import type { VariantProps } from 'class-variance-authority';
|
|
2
|
+
import type * as React from 'react';
|
|
3
|
+
declare const Alert: React.ForwardRefExoticComponent<
|
|
4
|
+
React.HTMLAttributes<HTMLDivElement> &
|
|
5
|
+
VariantProps<
|
|
6
|
+
(
|
|
7
|
+
props?:
|
|
8
|
+
| ({
|
|
9
|
+
variant?: 'default' | 'destructive' | null | undefined;
|
|
10
|
+
} & import('class-variance-authority/dist/types').ClassProp)
|
|
11
|
+
| undefined,
|
|
12
|
+
) => string
|
|
13
|
+
> &
|
|
14
|
+
React.RefAttributes<HTMLDivElement>
|
|
15
|
+
>;
|
|
16
|
+
declare const AlertTitle: React.ForwardRefExoticComponent<
|
|
17
|
+
React.HTMLAttributes<HTMLHeadingElement> & React.RefAttributes<HTMLParagraphElement>
|
|
18
|
+
>;
|
|
19
|
+
declare const AlertDescription: React.ForwardRefExoticComponent<
|
|
20
|
+
React.HTMLAttributes<HTMLParagraphElement> & React.RefAttributes<HTMLParagraphElement>
|
|
21
|
+
>;
|
|
8
22
|
export { Alert, AlertTitle, AlertDescription };
|
|
@@ -1,59 +1,95 @@
|
|
|
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
|
-
|
|
1
|
+
var __createBinding =
|
|
2
|
+
(this && this.__createBinding) ||
|
|
3
|
+
(Object.create
|
|
4
|
+
? (o, m, k, k2) => {
|
|
5
|
+
if (k2 === undefined) k2 = k;
|
|
6
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
7
|
+
if (!desc || ('get' in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
8
|
+
desc = { enumerable: true, get: () => m[k] };
|
|
9
|
+
}
|
|
10
|
+
Object.defineProperty(o, k2, desc);
|
|
11
|
+
}
|
|
12
|
+
: (o, m, k, k2) => {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
});
|
|
16
|
+
var __setModuleDefault =
|
|
17
|
+
(this && this.__setModuleDefault) ||
|
|
18
|
+
(Object.create
|
|
19
|
+
? (o, v) => {
|
|
20
|
+
Object.defineProperty(o, 'default', { enumerable: true, value: v });
|
|
21
|
+
}
|
|
22
|
+
: (o, v) => {
|
|
23
|
+
o['default'] = v;
|
|
24
|
+
});
|
|
25
|
+
var __importStar =
|
|
26
|
+
(this && this.__importStar) ||
|
|
27
|
+
(() => {
|
|
28
|
+
var ownKeys = (o) => {
|
|
29
|
+
ownKeys =
|
|
30
|
+
Object.getOwnPropertyNames ||
|
|
31
|
+
((o) => {
|
|
32
|
+
var ar = [];
|
|
33
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
34
|
+
return ar;
|
|
35
|
+
});
|
|
36
|
+
return ownKeys(o);
|
|
26
37
|
};
|
|
27
|
-
return
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
38
|
+
return (mod) => {
|
|
39
|
+
if (mod && mod.__esModule) return mod;
|
|
40
|
+
var result = {};
|
|
41
|
+
if (mod != null)
|
|
42
|
+
for (var k = ownKeys(mod), i = 0; i < k.length; i++)
|
|
43
|
+
if (k[i] !== 'default') __createBinding(result, mod, k[i]);
|
|
44
|
+
__setModuleDefault(result, mod);
|
|
45
|
+
return result;
|
|
33
46
|
};
|
|
34
|
-
})();
|
|
35
|
-
Object.defineProperty(exports,
|
|
47
|
+
})();
|
|
48
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
36
49
|
exports.AlertDescription = exports.AlertTitle = exports.Alert = void 0;
|
|
37
|
-
const React = __importStar(require(
|
|
38
|
-
const class_variance_authority_1 = require(
|
|
39
|
-
const utils_1 = require(
|
|
40
|
-
const alertVariants = (0, class_variance_authority_1.cva)(
|
|
50
|
+
const React = __importStar(require('react'));
|
|
51
|
+
const class_variance_authority_1 = require('class-variance-authority');
|
|
52
|
+
const utils_1 = require('../../lib/utils');
|
|
53
|
+
const alertVariants = (0, class_variance_authority_1.cva)(
|
|
54
|
+
'relative w-full rounded-lg border p-4 [&>svg~*]:pl-7 [&>svg+div]:translate-y-[-3px] [&>svg]:absolute [&>svg]:left-4 [&>svg]:top-4 [&>svg]:text-foreground',
|
|
55
|
+
{
|
|
41
56
|
variants: {
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
57
|
+
variant: {
|
|
58
|
+
default: 'bg-background text-foreground',
|
|
59
|
+
destructive:
|
|
60
|
+
'border-destructive/50 text-destructive dark:border-destructive [&>svg]:text-destructive',
|
|
61
|
+
},
|
|
46
62
|
},
|
|
47
63
|
defaultVariants: {
|
|
48
|
-
|
|
64
|
+
variant: 'default',
|
|
49
65
|
},
|
|
50
|
-
}
|
|
51
|
-
|
|
66
|
+
},
|
|
67
|
+
);
|
|
68
|
+
const Alert = React.forwardRef(({ className, variant, ...props }, ref) => (
|
|
69
|
+
<div
|
|
70
|
+
ref={ref}
|
|
71
|
+
role="alert"
|
|
72
|
+
className={(0, utils_1.cn)(alertVariants({ variant }), className)}
|
|
73
|
+
{...props}
|
|
74
|
+
/>
|
|
75
|
+
));
|
|
52
76
|
exports.Alert = Alert;
|
|
53
|
-
Alert.displayName =
|
|
54
|
-
const AlertTitle = React.forwardRef(({ className, ...props }, ref) => (
|
|
77
|
+
Alert.displayName = 'Alert';
|
|
78
|
+
const AlertTitle = React.forwardRef(({ className, ...props }, ref) => (
|
|
79
|
+
<h5
|
|
80
|
+
ref={ref}
|
|
81
|
+
className={(0, utils_1.cn)('mb-1 font-medium leading-none tracking-tight', className)}
|
|
82
|
+
{...props}
|
|
83
|
+
/>
|
|
84
|
+
));
|
|
55
85
|
exports.AlertTitle = AlertTitle;
|
|
56
|
-
AlertTitle.displayName =
|
|
57
|
-
const AlertDescription = React.forwardRef(({ className, ...props }, ref) => (
|
|
86
|
+
AlertTitle.displayName = 'AlertTitle';
|
|
87
|
+
const AlertDescription = React.forwardRef(({ className, ...props }, ref) => (
|
|
88
|
+
<div
|
|
89
|
+
ref={ref}
|
|
90
|
+
className={(0, utils_1.cn)('text-sm [&_p]:leading-relaxed', className)}
|
|
91
|
+
{...props}
|
|
92
|
+
/>
|
|
93
|
+
));
|
|
58
94
|
exports.AlertDescription = AlertDescription;
|
|
59
|
-
AlertDescription.displayName =
|
|
95
|
+
AlertDescription.displayName = 'AlertDescription';
|
|
@@ -1,6 +1,15 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import * as
|
|
3
|
-
declare const Avatar: React.ForwardRefExoticComponent<
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
import type * as AvatarPrimitive from '@radix-ui/react-avatar';
|
|
2
|
+
import type * as React from 'react';
|
|
3
|
+
declare const Avatar: React.ForwardRefExoticComponent<
|
|
4
|
+
Omit<AvatarPrimitive.AvatarProps & React.RefAttributes<HTMLSpanElement>, 'ref'> &
|
|
5
|
+
React.RefAttributes<HTMLSpanElement>
|
|
6
|
+
>;
|
|
7
|
+
declare const AvatarImage: React.ForwardRefExoticComponent<
|
|
8
|
+
Omit<AvatarPrimitive.AvatarImageProps & React.RefAttributes<HTMLImageElement>, 'ref'> &
|
|
9
|
+
React.RefAttributes<HTMLImageElement>
|
|
10
|
+
>;
|
|
11
|
+
declare const AvatarFallback: React.ForwardRefExoticComponent<
|
|
12
|
+
Omit<AvatarPrimitive.AvatarFallbackProps & React.RefAttributes<HTMLSpanElement>, 'ref'> &
|
|
13
|
+
React.RefAttributes<HTMLSpanElement>
|
|
14
|
+
>;
|
|
6
15
|
export { Avatar, AvatarImage, AvatarFallback };
|
|
@@ -1,49 +1,86 @@
|
|
|
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,
|
|
48
|
+
})();
|
|
49
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
37
50
|
exports.AvatarFallback = exports.AvatarImage = exports.Avatar = void 0;
|
|
38
|
-
const React = __importStar(require(
|
|
39
|
-
const AvatarPrimitive = __importStar(require(
|
|
40
|
-
const utils_1 = require(
|
|
41
|
-
const Avatar = React.forwardRef(({ className, ...props }, ref) => (
|
|
51
|
+
const React = __importStar(require('react'));
|
|
52
|
+
const AvatarPrimitive = __importStar(require('@radix-ui/react-avatar'));
|
|
53
|
+
const utils_1 = require('../../lib/utils');
|
|
54
|
+
const Avatar = React.forwardRef(({ className, ...props }, ref) => (
|
|
55
|
+
<AvatarPrimitive.Root
|
|
56
|
+
ref={ref}
|
|
57
|
+
className={(0, utils_1.cn)(
|
|
58
|
+
'relative flex h-10 w-10 shrink-0 overflow-hidden rounded-full',
|
|
59
|
+
className,
|
|
60
|
+
)}
|
|
61
|
+
{...props}
|
|
62
|
+
/>
|
|
63
|
+
));
|
|
42
64
|
exports.Avatar = Avatar;
|
|
43
65
|
Avatar.displayName = AvatarPrimitive.Root.displayName;
|
|
44
|
-
const AvatarImage = React.forwardRef(({ className, ...props }, ref) => (
|
|
66
|
+
const AvatarImage = React.forwardRef(({ className, ...props }, ref) => (
|
|
67
|
+
<AvatarPrimitive.Image
|
|
68
|
+
ref={ref}
|
|
69
|
+
className={(0, utils_1.cn)('aspect-square h-full w-full', className)}
|
|
70
|
+
{...props}
|
|
71
|
+
/>
|
|
72
|
+
));
|
|
45
73
|
exports.AvatarImage = AvatarImage;
|
|
46
74
|
AvatarImage.displayName = AvatarPrimitive.Image.displayName;
|
|
47
|
-
const AvatarFallback = React.forwardRef(({ className, ...props }, ref) => (
|
|
75
|
+
const AvatarFallback = React.forwardRef(({ className, ...props }, ref) => (
|
|
76
|
+
<AvatarPrimitive.Fallback
|
|
77
|
+
ref={ref}
|
|
78
|
+
className={(0, utils_1.cn)(
|
|
79
|
+
'flex h-full w-full items-center justify-center rounded-full bg-muted',
|
|
80
|
+
className,
|
|
81
|
+
)}
|
|
82
|
+
{...props}
|
|
83
|
+
/>
|
|
84
|
+
));
|
|
48
85
|
exports.AvatarFallback = AvatarFallback;
|
|
49
86
|
AvatarFallback.displayName = AvatarPrimitive.Fallback.displayName;
|
|
@@ -1,11 +1,27 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
declare const buttonVariants: (
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
1
|
+
import type { VariantProps } from 'class-variance-authority';
|
|
2
|
+
import type * as React from 'react';
|
|
3
|
+
declare const buttonVariants: (
|
|
4
|
+
props?:
|
|
5
|
+
| ({
|
|
6
|
+
variant?:
|
|
7
|
+
| 'link'
|
|
8
|
+
| 'default'
|
|
9
|
+
| 'outline'
|
|
10
|
+
| 'secondary'
|
|
11
|
+
| 'destructive'
|
|
12
|
+
| 'ghost'
|
|
13
|
+
| null
|
|
14
|
+
| undefined;
|
|
15
|
+
size?: 'default' | 'icon' | 'lg' | 'sm' | null | undefined;
|
|
16
|
+
} & import('class-variance-authority/dist/types').ClassProp)
|
|
17
|
+
| undefined,
|
|
18
|
+
) => string;
|
|
19
|
+
export interface ButtonProps
|
|
20
|
+
extends React.ButtonHTMLAttributes<HTMLButtonElement>,
|
|
21
|
+
VariantProps<typeof buttonVariants> {
|
|
22
|
+
asChild?: boolean;
|
|
9
23
|
}
|
|
10
|
-
declare const Button: React.ForwardRefExoticComponent<
|
|
24
|
+
declare const Button: React.ForwardRefExoticComponent<
|
|
25
|
+
ButtonProps & React.RefAttributes<HTMLButtonElement>
|
|
26
|
+
>;
|
|
11
27
|
export { Button, buttonVariants };
|
|
@@ -1,69 +1,91 @@
|
|
|
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
|
-
|
|
1
|
+
var __createBinding =
|
|
2
|
+
(this && this.__createBinding) ||
|
|
3
|
+
(Object.create
|
|
4
|
+
? (o, m, k, k2) => {
|
|
5
|
+
if (k2 === undefined) k2 = k;
|
|
6
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
7
|
+
if (!desc || ('get' in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
8
|
+
desc = { enumerable: true, get: () => m[k] };
|
|
9
|
+
}
|
|
10
|
+
Object.defineProperty(o, k2, desc);
|
|
11
|
+
}
|
|
12
|
+
: (o, m, k, k2) => {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
});
|
|
16
|
+
var __setModuleDefault =
|
|
17
|
+
(this && this.__setModuleDefault) ||
|
|
18
|
+
(Object.create
|
|
19
|
+
? (o, v) => {
|
|
20
|
+
Object.defineProperty(o, 'default', { enumerable: true, value: v });
|
|
21
|
+
}
|
|
22
|
+
: (o, v) => {
|
|
23
|
+
o['default'] = v;
|
|
24
|
+
});
|
|
25
|
+
var __importStar =
|
|
26
|
+
(this && this.__importStar) ||
|
|
27
|
+
(() => {
|
|
28
|
+
var ownKeys = (o) => {
|
|
29
|
+
ownKeys =
|
|
30
|
+
Object.getOwnPropertyNames ||
|
|
31
|
+
((o) => {
|
|
32
|
+
var ar = [];
|
|
33
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
34
|
+
return ar;
|
|
35
|
+
});
|
|
36
|
+
return ownKeys(o);
|
|
26
37
|
};
|
|
27
|
-
return
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
38
|
+
return (mod) => {
|
|
39
|
+
if (mod && mod.__esModule) return mod;
|
|
40
|
+
var result = {};
|
|
41
|
+
if (mod != null)
|
|
42
|
+
for (var k = ownKeys(mod), i = 0; i < k.length; i++)
|
|
43
|
+
if (k[i] !== 'default') __createBinding(result, mod, k[i]);
|
|
44
|
+
__setModuleDefault(result, mod);
|
|
45
|
+
return result;
|
|
33
46
|
};
|
|
34
|
-
})();
|
|
35
|
-
Object.defineProperty(exports,
|
|
47
|
+
})();
|
|
48
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
36
49
|
exports.buttonVariants = exports.Button = void 0;
|
|
37
|
-
const React = __importStar(require(
|
|
38
|
-
const react_slot_1 = require(
|
|
39
|
-
const class_variance_authority_1 = require(
|
|
40
|
-
const utils_1 = require(
|
|
41
|
-
const buttonVariants = (0, class_variance_authority_1.cva)(
|
|
50
|
+
const React = __importStar(require('react'));
|
|
51
|
+
const react_slot_1 = require('@radix-ui/react-slot');
|
|
52
|
+
const class_variance_authority_1 = require('class-variance-authority');
|
|
53
|
+
const utils_1 = require('../../lib/utils');
|
|
54
|
+
const buttonVariants = (0, class_variance_authority_1.cva)(
|
|
55
|
+
'inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0',
|
|
56
|
+
{
|
|
42
57
|
variants: {
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
58
|
+
variant: {
|
|
59
|
+
default: 'bg-primary text-primary-foreground hover:bg-primary/90',
|
|
60
|
+
destructive: 'bg-destructive text-destructive-foreground hover:bg-destructive/90',
|
|
61
|
+
outline: 'border border-input bg-background hover:bg-accent hover:text-accent-foreground',
|
|
62
|
+
secondary: 'bg-secondary text-secondary-foreground hover:bg-secondary/80',
|
|
63
|
+
ghost: 'hover:bg-accent hover:text-accent-foreground',
|
|
64
|
+
link: 'text-primary underline-offset-4 hover:underline',
|
|
65
|
+
},
|
|
66
|
+
size: {
|
|
67
|
+
default: 'h-10 px-4 py-2',
|
|
68
|
+
sm: 'h-9 rounded-md px-3',
|
|
69
|
+
lg: 'h-11 rounded-md px-8',
|
|
70
|
+
icon: 'h-10 w-10',
|
|
71
|
+
},
|
|
57
72
|
},
|
|
58
73
|
defaultVariants: {
|
|
59
|
-
|
|
60
|
-
|
|
74
|
+
variant: 'default',
|
|
75
|
+
size: 'default',
|
|
61
76
|
},
|
|
62
|
-
}
|
|
77
|
+
},
|
|
78
|
+
);
|
|
63
79
|
exports.buttonVariants = buttonVariants;
|
|
64
80
|
const Button = React.forwardRef(({ className, variant, size, asChild = false, ...props }, ref) => {
|
|
65
|
-
|
|
66
|
-
|
|
81
|
+
const Comp = asChild ? react_slot_1.Slot : 'button';
|
|
82
|
+
return (
|
|
83
|
+
<Comp
|
|
84
|
+
className={(0, utils_1.cn)(buttonVariants({ variant, size, className }))}
|
|
85
|
+
ref={ref}
|
|
86
|
+
{...props}
|
|
87
|
+
/>
|
|
88
|
+
);
|
|
67
89
|
});
|
|
68
90
|
exports.Button = Button;
|
|
69
|
-
Button.displayName =
|
|
91
|
+
Button.displayName = 'Button';
|
|
@@ -1,8 +1,20 @@
|
|
|
1
|
-
import * as React from
|
|
2
|
-
declare const Card: React.ForwardRefExoticComponent<
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
declare const
|
|
6
|
-
|
|
7
|
-
|
|
1
|
+
import type * as React from 'react';
|
|
2
|
+
declare const Card: React.ForwardRefExoticComponent<
|
|
3
|
+
React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>
|
|
4
|
+
>;
|
|
5
|
+
declare const CardHeader: React.ForwardRefExoticComponent<
|
|
6
|
+
React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>
|
|
7
|
+
>;
|
|
8
|
+
declare const CardTitle: React.ForwardRefExoticComponent<
|
|
9
|
+
React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>
|
|
10
|
+
>;
|
|
11
|
+
declare const CardDescription: React.ForwardRefExoticComponent<
|
|
12
|
+
React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>
|
|
13
|
+
>;
|
|
14
|
+
declare const CardContent: React.ForwardRefExoticComponent<
|
|
15
|
+
React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>
|
|
16
|
+
>;
|
|
17
|
+
declare const CardFooter: React.ForwardRefExoticComponent<
|
|
18
|
+
React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>
|
|
19
|
+
>;
|
|
8
20
|
export { Card, CardHeader, CardFooter, CardTitle, CardDescription, CardContent };
|