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,28 +1,82 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import * as
|
|
3
|
-
declare function MenubarMenu({
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
declare function
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
declare
|
|
10
|
-
|
|
1
|
+
import type * as MenubarPrimitive from '@radix-ui/react-menubar';
|
|
2
|
+
import type * as React from 'react';
|
|
3
|
+
declare function MenubarMenu({
|
|
4
|
+
...props
|
|
5
|
+
}: React.ComponentProps<typeof MenubarPrimitive.Menu>): React.JSX.Element;
|
|
6
|
+
declare function MenubarGroup({
|
|
7
|
+
...props
|
|
8
|
+
}: React.ComponentProps<typeof MenubarPrimitive.Group>): React.JSX.Element;
|
|
9
|
+
declare function MenubarPortal({
|
|
10
|
+
...props
|
|
11
|
+
}: React.ComponentProps<typeof MenubarPrimitive.Portal>): React.JSX.Element;
|
|
12
|
+
declare function MenubarRadioGroup({
|
|
13
|
+
...props
|
|
14
|
+
}: React.ComponentProps<typeof MenubarPrimitive.RadioGroup>): React.JSX.Element;
|
|
15
|
+
declare function MenubarSub({
|
|
16
|
+
...props
|
|
17
|
+
}: React.ComponentProps<typeof MenubarPrimitive.Sub>): React.JSX.Element;
|
|
18
|
+
declare const Menubar: React.ForwardRefExoticComponent<
|
|
19
|
+
Omit<MenubarPrimitive.MenubarProps & React.RefAttributes<HTMLDivElement>, 'ref'> &
|
|
20
|
+
React.RefAttributes<HTMLDivElement>
|
|
21
|
+
>;
|
|
22
|
+
declare const MenubarTrigger: React.ForwardRefExoticComponent<
|
|
23
|
+
Omit<MenubarPrimitive.MenubarTriggerProps & React.RefAttributes<HTMLButtonElement>, 'ref'> &
|
|
24
|
+
React.RefAttributes<HTMLButtonElement>
|
|
25
|
+
>;
|
|
26
|
+
declare const MenubarSubTrigger: React.ForwardRefExoticComponent<
|
|
27
|
+
Omit<MenubarPrimitive.MenubarSubTriggerProps & React.RefAttributes<HTMLDivElement>, 'ref'> & {
|
|
11
28
|
inset?: boolean;
|
|
12
|
-
} & React.RefAttributes<HTMLDivElement
|
|
13
|
-
|
|
14
|
-
declare const
|
|
15
|
-
|
|
29
|
+
} & React.RefAttributes<HTMLDivElement>
|
|
30
|
+
>;
|
|
31
|
+
declare const MenubarSubContent: React.ForwardRefExoticComponent<
|
|
32
|
+
Omit<MenubarPrimitive.MenubarSubContentProps & React.RefAttributes<HTMLDivElement>, 'ref'> &
|
|
33
|
+
React.RefAttributes<HTMLDivElement>
|
|
34
|
+
>;
|
|
35
|
+
declare const MenubarContent: React.ForwardRefExoticComponent<
|
|
36
|
+
Omit<MenubarPrimitive.MenubarContentProps & React.RefAttributes<HTMLDivElement>, 'ref'> &
|
|
37
|
+
React.RefAttributes<HTMLDivElement>
|
|
38
|
+
>;
|
|
39
|
+
declare const MenubarItem: React.ForwardRefExoticComponent<
|
|
40
|
+
Omit<MenubarPrimitive.MenubarItemProps & React.RefAttributes<HTMLDivElement>, 'ref'> & {
|
|
16
41
|
inset?: boolean;
|
|
17
|
-
} & React.RefAttributes<HTMLDivElement
|
|
18
|
-
|
|
19
|
-
declare const
|
|
20
|
-
|
|
42
|
+
} & React.RefAttributes<HTMLDivElement>
|
|
43
|
+
>;
|
|
44
|
+
declare const MenubarCheckboxItem: React.ForwardRefExoticComponent<
|
|
45
|
+
Omit<MenubarPrimitive.MenubarCheckboxItemProps & React.RefAttributes<HTMLDivElement>, 'ref'> &
|
|
46
|
+
React.RefAttributes<HTMLDivElement>
|
|
47
|
+
>;
|
|
48
|
+
declare const MenubarRadioItem: React.ForwardRefExoticComponent<
|
|
49
|
+
Omit<MenubarPrimitive.MenubarRadioItemProps & React.RefAttributes<HTMLDivElement>, 'ref'> &
|
|
50
|
+
React.RefAttributes<HTMLDivElement>
|
|
51
|
+
>;
|
|
52
|
+
declare const MenubarLabel: React.ForwardRefExoticComponent<
|
|
53
|
+
Omit<MenubarPrimitive.MenubarLabelProps & React.RefAttributes<HTMLDivElement>, 'ref'> & {
|
|
21
54
|
inset?: boolean;
|
|
22
|
-
} & React.RefAttributes<HTMLDivElement
|
|
23
|
-
|
|
55
|
+
} & React.RefAttributes<HTMLDivElement>
|
|
56
|
+
>;
|
|
57
|
+
declare const MenubarSeparator: React.ForwardRefExoticComponent<
|
|
58
|
+
Omit<MenubarPrimitive.MenubarSeparatorProps & React.RefAttributes<HTMLDivElement>, 'ref'> &
|
|
59
|
+
React.RefAttributes<HTMLDivElement>
|
|
60
|
+
>;
|
|
24
61
|
declare const MenubarShortcut: {
|
|
25
|
-
|
|
26
|
-
|
|
62
|
+
({ className, ...props }: React.HTMLAttributes<HTMLSpanElement>): React.JSX.Element;
|
|
63
|
+
displayname: string;
|
|
64
|
+
};
|
|
65
|
+
export {
|
|
66
|
+
Menubar,
|
|
67
|
+
MenubarMenu,
|
|
68
|
+
MenubarTrigger,
|
|
69
|
+
MenubarContent,
|
|
70
|
+
MenubarItem,
|
|
71
|
+
MenubarSeparator,
|
|
72
|
+
MenubarLabel,
|
|
73
|
+
MenubarCheckboxItem,
|
|
74
|
+
MenubarRadioGroup,
|
|
75
|
+
MenubarRadioItem,
|
|
76
|
+
MenubarPortal,
|
|
77
|
+
MenubarSubContent,
|
|
78
|
+
MenubarSubTrigger,
|
|
79
|
+
MenubarGroup,
|
|
80
|
+
MenubarSub,
|
|
81
|
+
MenubarShortcut,
|
|
27
82
|
};
|
|
28
|
-
export { Menubar, MenubarMenu, MenubarTrigger, MenubarContent, MenubarItem, MenubarSeparator, MenubarLabel, MenubarCheckboxItem, MenubarRadioGroup, MenubarRadioItem, MenubarPortal, MenubarSubContent, MenubarSubTrigger, MenubarGroup, MenubarSub, MenubarShortcut, };
|
|
@@ -1,115 +1,239 @@
|
|
|
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.MenubarShortcut =
|
|
48
|
+
})();
|
|
49
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
50
|
+
exports.MenubarShortcut =
|
|
51
|
+
exports.MenubarSubTrigger =
|
|
52
|
+
exports.MenubarSubContent =
|
|
53
|
+
exports.MenubarRadioItem =
|
|
54
|
+
exports.MenubarCheckboxItem =
|
|
55
|
+
exports.MenubarLabel =
|
|
56
|
+
exports.MenubarSeparator =
|
|
57
|
+
exports.MenubarItem =
|
|
58
|
+
exports.MenubarContent =
|
|
59
|
+
exports.MenubarTrigger =
|
|
60
|
+
exports.Menubar =
|
|
61
|
+
void 0;
|
|
38
62
|
exports.MenubarMenu = MenubarMenu;
|
|
39
63
|
exports.MenubarRadioGroup = MenubarRadioGroup;
|
|
40
64
|
exports.MenubarPortal = MenubarPortal;
|
|
41
65
|
exports.MenubarGroup = MenubarGroup;
|
|
42
66
|
exports.MenubarSub = MenubarSub;
|
|
43
|
-
const React = __importStar(require(
|
|
44
|
-
const MenubarPrimitive = __importStar(require(
|
|
45
|
-
const lucide_react_1 = require(
|
|
46
|
-
const utils_1 = require(
|
|
67
|
+
const React = __importStar(require('react'));
|
|
68
|
+
const MenubarPrimitive = __importStar(require('@radix-ui/react-menubar'));
|
|
69
|
+
const lucide_react_1 = require('lucide-react');
|
|
70
|
+
const utils_1 = require('../../lib/utils');
|
|
47
71
|
function MenubarMenu({ ...props }) {
|
|
48
|
-
|
|
72
|
+
return <MenubarPrimitive.Menu {...props} />;
|
|
49
73
|
}
|
|
50
74
|
function MenubarGroup({ ...props }) {
|
|
51
|
-
|
|
75
|
+
return <MenubarPrimitive.Group {...props} />;
|
|
52
76
|
}
|
|
53
77
|
function MenubarPortal({ ...props }) {
|
|
54
|
-
|
|
78
|
+
return <MenubarPrimitive.Portal {...props} />;
|
|
55
79
|
}
|
|
56
80
|
function MenubarRadioGroup({ ...props }) {
|
|
57
|
-
|
|
81
|
+
return <MenubarPrimitive.RadioGroup {...props} />;
|
|
58
82
|
}
|
|
59
83
|
function MenubarSub({ ...props }) {
|
|
60
|
-
|
|
84
|
+
return <MenubarPrimitive.Sub data-slot="menubar-sub" {...props} />;
|
|
61
85
|
}
|
|
62
|
-
const Menubar = React.forwardRef(({ className, ...props }, ref) => (
|
|
86
|
+
const Menubar = React.forwardRef(({ className, ...props }, ref) => (
|
|
87
|
+
<MenubarPrimitive.Root
|
|
88
|
+
ref={ref}
|
|
89
|
+
className={(0, utils_1.cn)(
|
|
90
|
+
'flex h-10 items-center space-x-1 rounded-md border bg-background p-1',
|
|
91
|
+
className,
|
|
92
|
+
)}
|
|
93
|
+
{...props}
|
|
94
|
+
/>
|
|
95
|
+
));
|
|
63
96
|
exports.Menubar = Menubar;
|
|
64
97
|
Menubar.displayName = MenubarPrimitive.Root.displayName;
|
|
65
|
-
const MenubarTrigger = React.forwardRef(({ className, ...props }, ref) => (
|
|
98
|
+
const MenubarTrigger = React.forwardRef(({ className, ...props }, ref) => (
|
|
99
|
+
<MenubarPrimitive.Trigger
|
|
100
|
+
ref={ref}
|
|
101
|
+
className={(0, utils_1.cn)(
|
|
102
|
+
'flex cursor-default select-none items-center rounded-sm px-3 py-1.5 text-sm font-medium outline-none focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground',
|
|
103
|
+
className,
|
|
104
|
+
)}
|
|
105
|
+
{...props}
|
|
106
|
+
/>
|
|
107
|
+
));
|
|
66
108
|
exports.MenubarTrigger = MenubarTrigger;
|
|
67
109
|
MenubarTrigger.displayName = MenubarPrimitive.Trigger.displayName;
|
|
68
|
-
const MenubarSubTrigger = React.forwardRef(({ className, inset, children, ...props }, ref) => (
|
|
110
|
+
const MenubarSubTrigger = React.forwardRef(({ className, inset, children, ...props }, ref) => (
|
|
111
|
+
<MenubarPrimitive.SubTrigger
|
|
112
|
+
ref={ref}
|
|
113
|
+
className={(0, utils_1.cn)(
|
|
114
|
+
'flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground',
|
|
115
|
+
inset && 'pl-8',
|
|
116
|
+
className,
|
|
117
|
+
)}
|
|
118
|
+
{...props}
|
|
119
|
+
>
|
|
69
120
|
{children}
|
|
70
|
-
<lucide_react_1.ChevronRight className="ml-auto h-4 w-4"/>
|
|
71
|
-
</MenubarPrimitive.SubTrigger>
|
|
121
|
+
<lucide_react_1.ChevronRight className="ml-auto h-4 w-4" />
|
|
122
|
+
</MenubarPrimitive.SubTrigger>
|
|
123
|
+
));
|
|
72
124
|
exports.MenubarSubTrigger = MenubarSubTrigger;
|
|
73
125
|
MenubarSubTrigger.displayName = MenubarPrimitive.SubTrigger.displayName;
|
|
74
|
-
const MenubarSubContent = React.forwardRef(({ className, ...props }, ref) => (
|
|
126
|
+
const MenubarSubContent = React.forwardRef(({ className, ...props }, ref) => (
|
|
127
|
+
<MenubarPrimitive.SubContent
|
|
128
|
+
ref={ref}
|
|
129
|
+
className={(0, utils_1.cn)(
|
|
130
|
+
'z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground 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-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2',
|
|
131
|
+
className,
|
|
132
|
+
)}
|
|
133
|
+
{...props}
|
|
134
|
+
/>
|
|
135
|
+
));
|
|
75
136
|
exports.MenubarSubContent = MenubarSubContent;
|
|
76
137
|
MenubarSubContent.displayName = MenubarPrimitive.SubContent.displayName;
|
|
77
|
-
const MenubarContent = React.forwardRef(
|
|
78
|
-
|
|
79
|
-
|
|
138
|
+
const MenubarContent = React.forwardRef(
|
|
139
|
+
({ className, align = 'start', alignOffset = -4, sideOffset = 8, ...props }, ref) => (
|
|
140
|
+
<MenubarPrimitive.Portal>
|
|
141
|
+
<MenubarPrimitive.Content
|
|
142
|
+
ref={ref}
|
|
143
|
+
align={align}
|
|
144
|
+
alignOffset={alignOffset}
|
|
145
|
+
sideOffset={sideOffset}
|
|
146
|
+
className={(0, utils_1.cn)(
|
|
147
|
+
'z-50 min-w-[12rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md data-[state=open]:animate-in 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-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2',
|
|
148
|
+
className,
|
|
149
|
+
)}
|
|
150
|
+
{...props}
|
|
151
|
+
/>
|
|
152
|
+
</MenubarPrimitive.Portal>
|
|
153
|
+
),
|
|
154
|
+
);
|
|
80
155
|
exports.MenubarContent = MenubarContent;
|
|
81
156
|
MenubarContent.displayName = MenubarPrimitive.Content.displayName;
|
|
82
|
-
const MenubarItem = React.forwardRef(({ className, inset, ...props }, ref) => (
|
|
157
|
+
const MenubarItem = React.forwardRef(({ className, inset, ...props }, ref) => (
|
|
158
|
+
<MenubarPrimitive.Item
|
|
159
|
+
ref={ref}
|
|
160
|
+
className={(0, utils_1.cn)(
|
|
161
|
+
'relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50',
|
|
162
|
+
inset && 'pl-8',
|
|
163
|
+
className,
|
|
164
|
+
)}
|
|
165
|
+
{...props}
|
|
166
|
+
/>
|
|
167
|
+
));
|
|
83
168
|
exports.MenubarItem = MenubarItem;
|
|
84
169
|
MenubarItem.displayName = MenubarPrimitive.Item.displayName;
|
|
85
|
-
const MenubarCheckboxItem = React.forwardRef(({ className, children, checked, ...props }, ref) => (
|
|
170
|
+
const MenubarCheckboxItem = React.forwardRef(({ className, children, checked, ...props }, ref) => (
|
|
171
|
+
<MenubarPrimitive.CheckboxItem
|
|
172
|
+
ref={ref}
|
|
173
|
+
className={(0, utils_1.cn)(
|
|
174
|
+
'relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50',
|
|
175
|
+
className,
|
|
176
|
+
)}
|
|
177
|
+
checked={checked}
|
|
178
|
+
{...props}
|
|
179
|
+
>
|
|
86
180
|
<span className="absolute left-2 flex h-3.5 w-3.5 items-center justify-center">
|
|
87
181
|
<MenubarPrimitive.ItemIndicator>
|
|
88
|
-
<lucide_react_1.Check className="h-4 w-4"/>
|
|
182
|
+
<lucide_react_1.Check className="h-4 w-4" />
|
|
89
183
|
</MenubarPrimitive.ItemIndicator>
|
|
90
184
|
</span>
|
|
91
185
|
{children}
|
|
92
|
-
</MenubarPrimitive.CheckboxItem>
|
|
186
|
+
</MenubarPrimitive.CheckboxItem>
|
|
187
|
+
));
|
|
93
188
|
exports.MenubarCheckboxItem = MenubarCheckboxItem;
|
|
94
189
|
MenubarCheckboxItem.displayName = MenubarPrimitive.CheckboxItem.displayName;
|
|
95
|
-
const MenubarRadioItem = React.forwardRef(({ className, children, ...props }, ref) => (
|
|
190
|
+
const MenubarRadioItem = React.forwardRef(({ className, children, ...props }, ref) => (
|
|
191
|
+
<MenubarPrimitive.RadioItem
|
|
192
|
+
ref={ref}
|
|
193
|
+
className={(0, utils_1.cn)(
|
|
194
|
+
'relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50',
|
|
195
|
+
className,
|
|
196
|
+
)}
|
|
197
|
+
{...props}
|
|
198
|
+
>
|
|
96
199
|
<span className="absolute left-2 flex h-3.5 w-3.5 items-center justify-center">
|
|
97
200
|
<MenubarPrimitive.ItemIndicator>
|
|
98
|
-
<lucide_react_1.Circle className="h-2 w-2 fill-current"/>
|
|
201
|
+
<lucide_react_1.Circle className="h-2 w-2 fill-current" />
|
|
99
202
|
</MenubarPrimitive.ItemIndicator>
|
|
100
203
|
</span>
|
|
101
204
|
{children}
|
|
102
|
-
</MenubarPrimitive.RadioItem>
|
|
205
|
+
</MenubarPrimitive.RadioItem>
|
|
206
|
+
));
|
|
103
207
|
exports.MenubarRadioItem = MenubarRadioItem;
|
|
104
208
|
MenubarRadioItem.displayName = MenubarPrimitive.RadioItem.displayName;
|
|
105
|
-
const MenubarLabel = React.forwardRef(({ className, inset, ...props }, ref) => (
|
|
209
|
+
const MenubarLabel = React.forwardRef(({ className, inset, ...props }, ref) => (
|
|
210
|
+
<MenubarPrimitive.Label
|
|
211
|
+
ref={ref}
|
|
212
|
+
className={(0, utils_1.cn)('px-2 py-1.5 text-sm font-semibold', inset && 'pl-8', className)}
|
|
213
|
+
{...props}
|
|
214
|
+
/>
|
|
215
|
+
));
|
|
106
216
|
exports.MenubarLabel = MenubarLabel;
|
|
107
217
|
MenubarLabel.displayName = MenubarPrimitive.Label.displayName;
|
|
108
|
-
const MenubarSeparator = React.forwardRef(({ className, ...props }, ref) => (
|
|
218
|
+
const MenubarSeparator = React.forwardRef(({ className, ...props }, ref) => (
|
|
219
|
+
<MenubarPrimitive.Separator
|
|
220
|
+
ref={ref}
|
|
221
|
+
className={(0, utils_1.cn)('-mx-1 my-1 h-px bg-muted', className)}
|
|
222
|
+
{...props}
|
|
223
|
+
/>
|
|
224
|
+
));
|
|
109
225
|
exports.MenubarSeparator = MenubarSeparator;
|
|
110
226
|
MenubarSeparator.displayName = MenubarPrimitive.Separator.displayName;
|
|
111
227
|
const MenubarShortcut = ({ className, ...props }) => {
|
|
112
|
-
|
|
228
|
+
return (
|
|
229
|
+
<span
|
|
230
|
+
className={(0, utils_1.cn)(
|
|
231
|
+
'ml-auto text-xs tracking-widest text-muted-foreground',
|
|
232
|
+
className,
|
|
233
|
+
)}
|
|
234
|
+
{...props}
|
|
235
|
+
/>
|
|
236
|
+
);
|
|
113
237
|
};
|
|
114
238
|
exports.MenubarShortcut = MenubarShortcut;
|
|
115
|
-
MenubarShortcut.displayname =
|
|
239
|
+
MenubarShortcut.displayname = 'MenubarShortcut';
|
|
@@ -1,13 +1,49 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import * as
|
|
1
|
+
import type * as SelectPrimitive from '@radix-ui/react-select';
|
|
2
|
+
import type * as React from 'react';
|
|
3
3
|
declare const Select: React.FC<SelectPrimitive.SelectProps>;
|
|
4
|
-
declare const SelectGroup: React.ForwardRefExoticComponent<
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
declare const
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
declare const
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
4
|
+
declare const SelectGroup: React.ForwardRefExoticComponent<
|
|
5
|
+
SelectPrimitive.SelectGroupProps & React.RefAttributes<HTMLDivElement>
|
|
6
|
+
>;
|
|
7
|
+
declare const SelectValue: React.ForwardRefExoticComponent<
|
|
8
|
+
SelectPrimitive.SelectValueProps & React.RefAttributes<HTMLSpanElement>
|
|
9
|
+
>;
|
|
10
|
+
declare const SelectTrigger: React.ForwardRefExoticComponent<
|
|
11
|
+
Omit<SelectPrimitive.SelectTriggerProps & React.RefAttributes<HTMLButtonElement>, 'ref'> &
|
|
12
|
+
React.RefAttributes<HTMLButtonElement>
|
|
13
|
+
>;
|
|
14
|
+
declare const SelectScrollUpButton: React.ForwardRefExoticComponent<
|
|
15
|
+
Omit<SelectPrimitive.SelectScrollUpButtonProps & React.RefAttributes<HTMLDivElement>, 'ref'> &
|
|
16
|
+
React.RefAttributes<HTMLDivElement>
|
|
17
|
+
>;
|
|
18
|
+
declare const SelectScrollDownButton: React.ForwardRefExoticComponent<
|
|
19
|
+
Omit<SelectPrimitive.SelectScrollDownButtonProps & React.RefAttributes<HTMLDivElement>, 'ref'> &
|
|
20
|
+
React.RefAttributes<HTMLDivElement>
|
|
21
|
+
>;
|
|
22
|
+
declare const SelectContent: React.ForwardRefExoticComponent<
|
|
23
|
+
Omit<SelectPrimitive.SelectContentProps & React.RefAttributes<HTMLDivElement>, 'ref'> &
|
|
24
|
+
React.RefAttributes<HTMLDivElement>
|
|
25
|
+
>;
|
|
26
|
+
declare const SelectLabel: React.ForwardRefExoticComponent<
|
|
27
|
+
Omit<SelectPrimitive.SelectLabelProps & React.RefAttributes<HTMLDivElement>, 'ref'> &
|
|
28
|
+
React.RefAttributes<HTMLDivElement>
|
|
29
|
+
>;
|
|
30
|
+
declare const SelectItem: React.ForwardRefExoticComponent<
|
|
31
|
+
Omit<SelectPrimitive.SelectItemProps & React.RefAttributes<HTMLDivElement>, 'ref'> &
|
|
32
|
+
React.RefAttributes<HTMLDivElement>
|
|
33
|
+
>;
|
|
34
|
+
declare const SelectSeparator: React.ForwardRefExoticComponent<
|
|
35
|
+
Omit<SelectPrimitive.SelectSeparatorProps & React.RefAttributes<HTMLDivElement>, 'ref'> &
|
|
36
|
+
React.RefAttributes<HTMLDivElement>
|
|
37
|
+
>;
|
|
38
|
+
export {
|
|
39
|
+
Select,
|
|
40
|
+
SelectGroup,
|
|
41
|
+
SelectValue,
|
|
42
|
+
SelectTrigger,
|
|
43
|
+
SelectContent,
|
|
44
|
+
SelectLabel,
|
|
45
|
+
SelectItem,
|
|
46
|
+
SelectSeparator,
|
|
47
|
+
SelectScrollUpButton,
|
|
48
|
+
SelectScrollDownButton,
|
|
49
|
+
};
|