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.
Files changed (133) hide show
  1. package/README.md +227 -12
  2. package/dist/examples/nextjs-prisma-nodemailer-pug-temporal/next.config.d.ts +1 -1
  3. package/dist/examples/nextjs-prisma-nodemailer-pug-temporal/next.config.js +9 -4
  4. package/dist/examples/nextjs-prisma-nodemailer-pug-temporal/src/app/api/auth/forgot-password/forgot-password-notification-context.d.ts +6 -6
  5. package/dist/examples/nextjs-prisma-nodemailer-pug-temporal/src/app/api/auth/forgot-password/forgot-password-notification-context.js +16 -17
  6. package/dist/examples/nextjs-prisma-nodemailer-pug-temporal/src/app/api/auth/forgot-password/route.d.ts +7 -5
  7. package/dist/examples/nextjs-prisma-nodemailer-pug-temporal/src/app/api/auth/forgot-password/route.js +105 -79
  8. package/dist/examples/nextjs-prisma-nodemailer-pug-temporal/src/app/api/auth/login/route.d.ts +4 -5
  9. package/dist/examples/nextjs-prisma-nodemailer-pug-temporal/src/app/api/auth/login/route.js +96 -66
  10. package/dist/examples/nextjs-prisma-nodemailer-pug-temporal/src/app/api/auth/reset-password/route.d.ts +7 -5
  11. package/dist/examples/nextjs-prisma-nodemailer-pug-temporal/src/app/api/auth/reset-password/route.js +95 -71
  12. package/dist/examples/nextjs-prisma-nodemailer-pug-temporal/src/app/api/auth/signup/email-verification-notification-context.d.ts +6 -6
  13. package/dist/examples/nextjs-prisma-nodemailer-pug-temporal/src/app/api/auth/signup/email-verification-notification-context.js +18 -18
  14. package/dist/examples/nextjs-prisma-nodemailer-pug-temporal/src/app/api/auth/signup/route.d.ts +4 -5
  15. package/dist/examples/nextjs-prisma-nodemailer-pug-temporal/src/app/api/auth/signup/route.js +124 -96
  16. package/dist/examples/nextjs-prisma-nodemailer-pug-temporal/src/app/api/auth/verify-email/route.d.ts +7 -5
  17. package/dist/examples/nextjs-prisma-nodemailer-pug-temporal/src/app/api/auth/verify-email/route.js +94 -70
  18. package/dist/examples/nextjs-prisma-nodemailer-pug-temporal/src/app/auth/login/page.d.ts +1 -1
  19. package/dist/examples/nextjs-prisma-nodemailer-pug-temporal/src/app/auth/login/page.js +67 -55
  20. package/dist/examples/nextjs-prisma-nodemailer-pug-temporal/src/app/auth/reset-password/[token]/page.d.ts +1 -1
  21. package/dist/examples/nextjs-prisma-nodemailer-pug-temporal/src/app/auth/reset-password/[token]/page.js +76 -63
  22. package/dist/examples/nextjs-prisma-nodemailer-pug-temporal/src/app/auth/signup/page.d.ts +1 -1
  23. package/dist/examples/nextjs-prisma-nodemailer-pug-temporal/src/app/auth/signup/page.js +87 -63
  24. package/dist/examples/nextjs-prisma-nodemailer-pug-temporal/src/app/auth/verify-email/[token]/page.d.ts +1 -1
  25. package/dist/examples/nextjs-prisma-nodemailer-pug-temporal/src/app/auth/verify-email/[token]/page.js +50 -35
  26. package/dist/examples/nextjs-prisma-nodemailer-pug-temporal/src/app/auth/verify-email-sent/page.d.ts +1 -1
  27. package/dist/examples/nextjs-prisma-nodemailer-pug-temporal/src/app/auth/verify-email-sent/page.js +12 -12
  28. package/dist/examples/nextjs-prisma-nodemailer-pug-temporal/src/app/layout.d.ts +7 -5
  29. package/dist/examples/nextjs-prisma-nodemailer-pug-temporal/src/app/layout.js +15 -16
  30. package/dist/examples/nextjs-prisma-nodemailer-pug-temporal/src/app/page.d.ts +1 -1
  31. package/dist/examples/nextjs-prisma-nodemailer-pug-temporal/src/app/page.js +65 -21
  32. package/dist/examples/nextjs-prisma-nodemailer-pug-temporal/src/components/AuthLayout.d.ts +7 -4
  33. package/dist/examples/nextjs-prisma-nodemailer-pug-temporal/src/components/AuthLayout.js +7 -8
  34. package/dist/examples/nextjs-prisma-nodemailer-pug-temporal/src/components/ui/accordion.d.ts +18 -6
  35. package/dist/examples/nextjs-prisma-nodemailer-pug-temporal/src/components/ui/accordion.js +86 -48
  36. package/dist/examples/nextjs-prisma-nodemailer-pug-temporal/src/components/ui/alert-dialog.d.ts +58 -14
  37. package/dist/examples/nextjs-prisma-nodemailer-pug-temporal/src/components/ui/alert-dialog.js +135 -53
  38. package/dist/examples/nextjs-prisma-nodemailer-pug-temporal/src/components/ui/alert.d.ts +21 -7
  39. package/dist/examples/nextjs-prisma-nodemailer-pug-temporal/src/components/ui/alert.js +85 -49
  40. package/dist/examples/nextjs-prisma-nodemailer-pug-temporal/src/components/ui/avatar.d.ts +14 -5
  41. package/dist/examples/nextjs-prisma-nodemailer-pug-temporal/src/components/ui/avatar.js +77 -40
  42. package/dist/examples/nextjs-prisma-nodemailer-pug-temporal/src/components/ui/button.d.ts +25 -9
  43. package/dist/examples/nextjs-prisma-nodemailer-pug-temporal/src/components/ui/button.js +80 -58
  44. package/dist/examples/nextjs-prisma-nodemailer-pug-temporal/src/components/ui/card.d.ts +19 -7
  45. package/dist/examples/nextjs-prisma-nodemailer-pug-temporal/src/components/ui/card.js +98 -48
  46. package/dist/examples/nextjs-prisma-nodemailer-pug-temporal/src/components/ui/checkbox.d.ts +6 -3
  47. package/dist/examples/nextjs-prisma-nodemailer-pug-temporal/src/components/ui/checkbox.js +66 -42
  48. package/dist/examples/nextjs-prisma-nodemailer-pug-temporal/src/components/ui/collapsible.d.ts +10 -4
  49. package/dist/examples/nextjs-prisma-nodemailer-pug-temporal/src/components/ui/collapsible.js +48 -35
  50. package/dist/examples/nextjs-prisma-nodemailer-pug-temporal/src/components/ui/dialog.d.ts +40 -13
  51. package/dist/examples/nextjs-prisma-nodemailer-pug-temporal/src/components/ui/dialog.js +116 -50
  52. package/dist/examples/nextjs-prisma-nodemailer-pug-temporal/src/components/ui/dropdown-menu.d.ts +83 -19
  53. package/dist/examples/nextjs-prisma-nodemailer-pug-temporal/src/components/ui/dropdown-menu.js +170 -68
  54. package/dist/examples/nextjs-prisma-nodemailer-pug-temporal/src/components/ui/form.d.ts +53 -21
  55. package/dist/examples/nextjs-prisma-nodemailer-pug-temporal/src/components/ui/form.js +137 -83
  56. package/dist/examples/nextjs-prisma-nodemailer-pug-temporal/src/components/ui/input.d.ts +8 -2
  57. package/dist/examples/nextjs-prisma-nodemailer-pug-temporal/src/components/ui/input.js +60 -37
  58. package/dist/examples/nextjs-prisma-nodemailer-pug-temporal/src/components/ui/label.d.ts +10 -4
  59. package/dist/examples/nextjs-prisma-nodemailer-pug-temporal/src/components/ui/label.js +61 -40
  60. package/dist/examples/nextjs-prisma-nodemailer-pug-temporal/src/components/ui/menubar.d.ts +77 -23
  61. package/dist/examples/nextjs-prisma-nodemailer-pug-temporal/src/components/ui/menubar.js +188 -64
  62. package/dist/examples/nextjs-prisma-nodemailer-pug-temporal/src/components/ui/select.d.ts +48 -12
  63. package/dist/examples/nextjs-prisma-nodemailer-pug-temporal/src/components/ui/select.js +148 -66
  64. package/dist/examples/nextjs-prisma-nodemailer-pug-temporal/src/components/ui/textarea.d.ts +8 -2
  65. package/dist/examples/nextjs-prisma-nodemailer-pug-temporal/src/components/ui/textarea.js +59 -37
  66. package/dist/examples/nextjs-prisma-nodemailer-pug-temporal/src/lib/api-clients/auth.d.ts +10 -10
  67. package/dist/examples/nextjs-prisma-nodemailer-pug-temporal/src/lib/api-clients/auth.js +54 -55
  68. package/dist/examples/nextjs-prisma-nodemailer-pug-temporal/src/lib/api-clients/core.d.ts +14 -11
  69. package/dist/examples/nextjs-prisma-nodemailer-pug-temporal/src/lib/api-clients/core.js +1 -2
  70. package/dist/examples/nextjs-prisma-nodemailer-pug-temporal/src/lib/email.js +0 -1
  71. package/dist/examples/nextjs-prisma-nodemailer-pug-temporal/src/lib/logger.d.ts +3 -3
  72. package/dist/examples/nextjs-prisma-nodemailer-pug-temporal/src/lib/logger.js +9 -10
  73. package/dist/examples/nextjs-prisma-nodemailer-pug-temporal/src/lib/schemas/auth.d.ts +66 -32
  74. package/dist/examples/nextjs-prisma-nodemailer-pug-temporal/src/lib/schemas/auth.js +74 -54
  75. package/dist/examples/nextjs-prisma-nodemailer-pug-temporal/src/lib/services/auth.js +7 -8
  76. package/dist/examples/nextjs-prisma-nodemailer-pug-temporal/src/lib/services/notifications-with-queue.d.ts +14 -4
  77. package/dist/examples/nextjs-prisma-nodemailer-pug-temporal/src/lib/services/notifications-with-queue.js +14 -10
  78. package/dist/examples/nextjs-prisma-nodemailer-pug-temporal/src/lib/services/notifications.d.ts +11 -7
  79. package/dist/examples/nextjs-prisma-nodemailer-pug-temporal/src/lib/services/notifications.js +39 -26
  80. package/dist/examples/nextjs-prisma-nodemailer-pug-temporal/src/lib/services/temporal-queue-service.d.ts +11 -8
  81. package/dist/examples/nextjs-prisma-nodemailer-pug-temporal/src/lib/services/temporal-queue-service.js +14 -15
  82. package/dist/examples/nextjs-prisma-nodemailer-pug-temporal/src/lib/temporal.d.ts +1 -1
  83. package/dist/examples/nextjs-prisma-nodemailer-pug-temporal/src/lib/temporal.js +9 -10
  84. package/dist/examples/nextjs-prisma-nodemailer-pug-temporal/src/lib/utils.d.ts +1 -1
  85. package/dist/examples/nextjs-prisma-nodemailer-pug-temporal/src/lib/utils.js +4 -5
  86. package/dist/examples/nextjs-prisma-nodemailer-pug-temporal/src/workers/notifications/activities.d.ts +6 -5
  87. package/dist/examples/nextjs-prisma-nodemailer-pug-temporal/src/workers/notifications/activities.js +14 -14
  88. package/dist/examples/nextjs-prisma-nodemailer-pug-temporal/src/workers/notifications/config.d.ts +1 -1
  89. package/dist/examples/nextjs-prisma-nodemailer-pug-temporal/src/workers/notifications/config.js +2 -3
  90. package/dist/examples/nextjs-prisma-nodemailer-pug-temporal/src/workers/notifications/constants.d.ts +1 -1
  91. package/dist/examples/nextjs-prisma-nodemailer-pug-temporal/src/workers/notifications/constants.js +1 -2
  92. package/dist/examples/nextjs-prisma-nodemailer-pug-temporal/src/workers/notifications/worker.js +20 -22
  93. package/dist/examples/nextjs-prisma-nodemailer-pug-temporal/src/workers/notifications/workflows.d.ts +3 -2
  94. package/dist/examples/nextjs-prisma-nodemailer-pug-temporal/src/workers/notifications/workflows.js +10 -9
  95. package/dist/examples/nextjs-prisma-nodemailer-pug-temporal/tailwind.config.d.ts +74 -74
  96. package/dist/examples/nextjs-prisma-nodemailer-pug-temporal/tailwind.config.js +80 -81
  97. package/dist/implementations/vintasend-nodemailer/src/index.js +6 -4
  98. package/dist/implementations/vintasend-nodemailer/src/nodemailer-notification-adapter.d.ts +36 -14
  99. package/dist/implementations/vintasend-nodemailer/src/nodemailer-notification-adapter.js +26 -28
  100. package/dist/implementations/vintasend-prisma/src/index.js +6 -4
  101. package/dist/implementations/vintasend-prisma/src/prisma-notification-backend.d.ts +232 -138
  102. package/dist/implementations/vintasend-prisma/src/prisma-notification-backend.js +275 -262
  103. package/dist/implementations/vintasend-pug/src/index.js +6 -4
  104. package/dist/implementations/vintasend-pug/src/pug-email-template-renderer.d.ts +18 -7
  105. package/dist/implementations/vintasend-pug/src/pug-email-template-renderer.js +19 -21
  106. package/dist/implementations/vintasend-winston/src/index.js +6 -4
  107. package/dist/implementations/vintasend-winston/src/winston-logger.d.ts +6 -6
  108. package/dist/implementations/vintasend-winston/src/winston-logger.js +65 -50
  109. package/dist/index.d.ts +13 -5
  110. package/dist/index.js +13 -1
  111. package/dist/services/attachment-manager/base-attachment-manager.d.ts +42 -0
  112. package/dist/services/attachment-manager/base-attachment-manager.js +115 -0
  113. package/dist/services/attachment-manager/local-file-attachment-manager.d.ts +58 -0
  114. package/dist/services/attachment-manager/local-file-attachment-manager.js +192 -0
  115. package/dist/services/notification-adapters/base-notification-adapter.d.ts +36 -4
  116. package/dist/services/notification-adapters/base-notification-adapter.js +73 -4
  117. package/dist/services/notification-backends/base-notification-backend.d.ts +54 -11
  118. package/dist/services/notification-backends/base-notification-backend.js +12 -0
  119. package/dist/services/notification-context-generators-map.d.ts +1 -1
  120. package/dist/services/notification-context-registry.d.ts +14 -9
  121. package/dist/services/notification-context-registry.js +30 -31
  122. package/dist/services/notification-queue-service/base-notification-queue-service.d.ts +1 -1
  123. package/dist/services/notification-service.d.ts +73 -13
  124. package/dist/services/notification-service.js +125 -8
  125. package/dist/services/notification-template-renderers/base-email-template-renderer.d.ts +3 -3
  126. package/dist/services/notification-template-renderers/base-notification-template-renderer.d.ts +2 -2
  127. package/dist/types/attachment.d.ts +42 -0
  128. package/dist/types/attachment.js +7 -0
  129. package/dist/types/notification-type-config.d.ts +2 -2
  130. package/dist/types/notification.d.ts +21 -0
  131. package/dist/types/one-off-notification.d.ts +72 -0
  132. package/dist/types/one-off-notification.js +2 -0
  133. package/package.json +13 -11
@@ -1,44 +1,67 @@
1
- "use strict";
2
- "use client";
3
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
4
- if (k2 === undefined) k2 = k;
5
- var desc = Object.getOwnPropertyDescriptor(m, k);
6
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
7
- desc = { enumerable: true, get: function() { return m[k]; } };
8
- }
9
- Object.defineProperty(o, k2, desc);
10
- }) : (function(o, m, k, k2) {
11
- if (k2 === undefined) k2 = k;
12
- o[k2] = m[k];
13
- }));
14
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
15
- Object.defineProperty(o, "default", { enumerable: true, value: v });
16
- }) : function(o, v) {
17
- o["default"] = v;
18
- });
19
- var __importStar = (this && this.__importStar) || (function () {
20
- var ownKeys = function(o) {
21
- ownKeys = Object.getOwnPropertyNames || function (o) {
22
- var ar = [];
23
- for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
24
- return ar;
25
- };
26
- return ownKeys(o);
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 function (mod) {
29
- if (mod && mod.__esModule) return mod;
30
- var result = {};
31
- if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
32
- __setModuleDefault(result, mod);
33
- return result;
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, "__esModule", { value: true });
37
- exports.DialogDescription = exports.DialogTitle = exports.DialogFooter = exports.DialogHeader = exports.DialogContent = exports.DialogTrigger = exports.DialogClose = exports.DialogOverlay = exports.DialogPortal = exports.Dialog = void 0;
38
- const React = __importStar(require("react"));
39
- const DialogPrimitive = __importStar(require("@radix-ui/react-dialog"));
40
- const lucide_react_1 = require("lucide-react");
41
- const utils_1 = require("../../lib/utils");
48
+ })();
49
+ Object.defineProperty(exports, '__esModule', { value: true });
50
+ exports.DialogDescription =
51
+ exports.DialogTitle =
52
+ exports.DialogFooter =
53
+ exports.DialogHeader =
54
+ exports.DialogContent =
55
+ exports.DialogTrigger =
56
+ exports.DialogClose =
57
+ exports.DialogOverlay =
58
+ exports.DialogPortal =
59
+ exports.Dialog =
60
+ void 0;
61
+ const React = __importStar(require('react'));
62
+ const DialogPrimitive = __importStar(require('@radix-ui/react-dialog'));
63
+ const lucide_react_1 = require('lucide-react');
64
+ const utils_1 = require('../../lib/utils');
42
65
  const Dialog = DialogPrimitive.Root;
43
66
  exports.Dialog = Dialog;
44
67
  const DialogTrigger = DialogPrimitive.Trigger;
@@ -47,30 +70,73 @@ const DialogPortal = DialogPrimitive.Portal;
47
70
  exports.DialogPortal = DialogPortal;
48
71
  const DialogClose = DialogPrimitive.Close;
49
72
  exports.DialogClose = DialogClose;
50
- const DialogOverlay = React.forwardRef(({ className, ...props }, ref) => (<DialogPrimitive.Overlay ref={ref} className={(0, utils_1.cn)("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0", className)} {...props}/>));
73
+ const DialogOverlay = React.forwardRef(({ className, ...props }, ref) => (
74
+ <DialogPrimitive.Overlay
75
+ ref={ref}
76
+ className={(0, utils_1.cn)(
77
+ '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',
78
+ className,
79
+ )}
80
+ {...props}
81
+ />
82
+ ));
51
83
  exports.DialogOverlay = DialogOverlay;
52
84
  DialogOverlay.displayName = DialogPrimitive.Overlay.displayName;
53
- const DialogContent = React.forwardRef(({ className, children, ...props }, ref) => (<DialogPortal>
85
+ const DialogContent = React.forwardRef(({ className, children, ...props }, ref) => (
86
+ <DialogPortal>
54
87
  <DialogOverlay />
55
- <DialogPrimitive.Content ref={ref} className={(0, utils_1.cn)("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg", className)} {...props}>
88
+ <DialogPrimitive.Content
89
+ ref={ref}
90
+ className={(0, utils_1.cn)(
91
+ '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',
92
+ className,
93
+ )}
94
+ {...props}
95
+ >
56
96
  {children}
57
97
  <DialogPrimitive.Close className="absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground">
58
- <lucide_react_1.X className="h-4 w-4"/>
98
+ <lucide_react_1.X className="h-4 w-4" />
59
99
  <span className="sr-only">Close</span>
60
100
  </DialogPrimitive.Close>
61
101
  </DialogPrimitive.Content>
62
- </DialogPortal>));
102
+ </DialogPortal>
103
+ ));
63
104
  exports.DialogContent = DialogContent;
64
105
  DialogContent.displayName = DialogPrimitive.Content.displayName;
65
- const DialogHeader = ({ className, ...props }) => (<div className={(0, utils_1.cn)("flex flex-col space-y-1.5 text-center sm:text-left", className)} {...props}/>);
106
+ const DialogHeader = ({ className, ...props }) => (
107
+ <div
108
+ className={(0, utils_1.cn)('flex flex-col space-y-1.5 text-center sm:text-left', className)}
109
+ {...props}
110
+ />
111
+ );
66
112
  exports.DialogHeader = DialogHeader;
67
- DialogHeader.displayName = "DialogHeader";
68
- const DialogFooter = ({ className, ...props }) => (<div className={(0, utils_1.cn)("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2", className)} {...props}/>);
113
+ DialogHeader.displayName = 'DialogHeader';
114
+ const DialogFooter = ({ className, ...props }) => (
115
+ <div
116
+ className={(0, utils_1.cn)(
117
+ 'flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2',
118
+ className,
119
+ )}
120
+ {...props}
121
+ />
122
+ );
69
123
  exports.DialogFooter = DialogFooter;
70
- DialogFooter.displayName = "DialogFooter";
71
- const DialogTitle = React.forwardRef(({ className, ...props }, ref) => (<DialogPrimitive.Title ref={ref} className={(0, utils_1.cn)("text-lg font-semibold leading-none tracking-tight", className)} {...props}/>));
124
+ DialogFooter.displayName = 'DialogFooter';
125
+ const DialogTitle = React.forwardRef(({ className, ...props }, ref) => (
126
+ <DialogPrimitive.Title
127
+ ref={ref}
128
+ className={(0, utils_1.cn)('text-lg font-semibold leading-none tracking-tight', className)}
129
+ {...props}
130
+ />
131
+ ));
72
132
  exports.DialogTitle = DialogTitle;
73
133
  DialogTitle.displayName = DialogPrimitive.Title.displayName;
74
- const DialogDescription = React.forwardRef(({ className, ...props }, ref) => (<DialogPrimitive.Description ref={ref} className={(0, utils_1.cn)("text-sm text-muted-foreground", className)} {...props}/>));
134
+ const DialogDescription = React.forwardRef(({ className, ...props }, ref) => (
135
+ <DialogPrimitive.Description
136
+ ref={ref}
137
+ className={(0, utils_1.cn)('text-sm text-muted-foreground', className)}
138
+ {...props}
139
+ />
140
+ ));
75
141
  exports.DialogDescription = DialogDescription;
76
142
  DialogDescription.displayName = DialogPrimitive.Description.displayName;
@@ -1,27 +1,91 @@
1
- import * as React from "react";
2
- import * as DropdownMenuPrimitive from "@radix-ui/react-dropdown-menu";
1
+ import type * as DropdownMenuPrimitive from '@radix-ui/react-dropdown-menu';
2
+ import type * as React from 'react';
3
3
  declare const DropdownMenu: React.FC<DropdownMenuPrimitive.DropdownMenuProps>;
4
- declare const DropdownMenuTrigger: React.ForwardRefExoticComponent<DropdownMenuPrimitive.DropdownMenuTriggerProps & React.RefAttributes<HTMLButtonElement>>;
5
- declare const DropdownMenuGroup: React.ForwardRefExoticComponent<DropdownMenuPrimitive.DropdownMenuGroupProps & React.RefAttributes<HTMLDivElement>>;
4
+ declare const DropdownMenuTrigger: React.ForwardRefExoticComponent<
5
+ DropdownMenuPrimitive.DropdownMenuTriggerProps & React.RefAttributes<HTMLButtonElement>
6
+ >;
7
+ declare const DropdownMenuGroup: React.ForwardRefExoticComponent<
8
+ DropdownMenuPrimitive.DropdownMenuGroupProps & React.RefAttributes<HTMLDivElement>
9
+ >;
6
10
  declare const DropdownMenuPortal: React.FC<DropdownMenuPrimitive.DropdownMenuPortalProps>;
7
11
  declare const DropdownMenuSub: React.FC<DropdownMenuPrimitive.DropdownMenuSubProps>;
8
- declare const DropdownMenuRadioGroup: React.ForwardRefExoticComponent<DropdownMenuPrimitive.DropdownMenuRadioGroupProps & React.RefAttributes<HTMLDivElement>>;
9
- declare const DropdownMenuSubTrigger: React.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuSubTriggerProps & React.RefAttributes<HTMLDivElement>, "ref"> & {
12
+ declare const DropdownMenuRadioGroup: React.ForwardRefExoticComponent<
13
+ DropdownMenuPrimitive.DropdownMenuRadioGroupProps & React.RefAttributes<HTMLDivElement>
14
+ >;
15
+ declare const DropdownMenuSubTrigger: React.ForwardRefExoticComponent<
16
+ Omit<
17
+ DropdownMenuPrimitive.DropdownMenuSubTriggerProps & React.RefAttributes<HTMLDivElement>,
18
+ 'ref'
19
+ > & {
10
20
  inset?: boolean;
11
- } & React.RefAttributes<HTMLDivElement>>;
12
- declare const DropdownMenuSubContent: React.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuSubContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
13
- declare const DropdownMenuContent: React.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
14
- declare const DropdownMenuItem: React.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuItemProps & React.RefAttributes<HTMLDivElement>, "ref"> & {
21
+ } & React.RefAttributes<HTMLDivElement>
22
+ >;
23
+ declare const DropdownMenuSubContent: React.ForwardRefExoticComponent<
24
+ Omit<
25
+ DropdownMenuPrimitive.DropdownMenuSubContentProps & React.RefAttributes<HTMLDivElement>,
26
+ 'ref'
27
+ > &
28
+ React.RefAttributes<HTMLDivElement>
29
+ >;
30
+ declare const DropdownMenuContent: React.ForwardRefExoticComponent<
31
+ Omit<
32
+ DropdownMenuPrimitive.DropdownMenuContentProps & React.RefAttributes<HTMLDivElement>,
33
+ 'ref'
34
+ > &
35
+ React.RefAttributes<HTMLDivElement>
36
+ >;
37
+ declare const DropdownMenuItem: React.ForwardRefExoticComponent<
38
+ Omit<DropdownMenuPrimitive.DropdownMenuItemProps & React.RefAttributes<HTMLDivElement>, 'ref'> & {
15
39
  inset?: boolean;
16
- } & React.RefAttributes<HTMLDivElement>>;
17
- declare const DropdownMenuCheckboxItem: React.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuCheckboxItemProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
18
- declare const DropdownMenuRadioItem: React.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuRadioItemProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
19
- declare const DropdownMenuLabel: React.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuLabelProps & React.RefAttributes<HTMLDivElement>, "ref"> & {
40
+ } & React.RefAttributes<HTMLDivElement>
41
+ >;
42
+ declare const DropdownMenuCheckboxItem: React.ForwardRefExoticComponent<
43
+ Omit<
44
+ DropdownMenuPrimitive.DropdownMenuCheckboxItemProps & React.RefAttributes<HTMLDivElement>,
45
+ 'ref'
46
+ > &
47
+ React.RefAttributes<HTMLDivElement>
48
+ >;
49
+ declare const DropdownMenuRadioItem: React.ForwardRefExoticComponent<
50
+ Omit<
51
+ DropdownMenuPrimitive.DropdownMenuRadioItemProps & React.RefAttributes<HTMLDivElement>,
52
+ 'ref'
53
+ > &
54
+ React.RefAttributes<HTMLDivElement>
55
+ >;
56
+ declare const DropdownMenuLabel: React.ForwardRefExoticComponent<
57
+ Omit<
58
+ DropdownMenuPrimitive.DropdownMenuLabelProps & React.RefAttributes<HTMLDivElement>,
59
+ 'ref'
60
+ > & {
20
61
  inset?: boolean;
21
- } & React.RefAttributes<HTMLDivElement>>;
22
- declare const DropdownMenuSeparator: React.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuSeparatorProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
62
+ } & React.RefAttributes<HTMLDivElement>
63
+ >;
64
+ declare const DropdownMenuSeparator: React.ForwardRefExoticComponent<
65
+ Omit<
66
+ DropdownMenuPrimitive.DropdownMenuSeparatorProps & React.RefAttributes<HTMLDivElement>,
67
+ 'ref'
68
+ > &
69
+ React.RefAttributes<HTMLDivElement>
70
+ >;
23
71
  declare const DropdownMenuShortcut: {
24
- ({ className, ...props }: React.HTMLAttributes<HTMLSpanElement>): React.JSX.Element;
25
- displayName: string;
72
+ ({ className, ...props }: React.HTMLAttributes<HTMLSpanElement>): React.JSX.Element;
73
+ displayName: string;
74
+ };
75
+ export {
76
+ DropdownMenu,
77
+ DropdownMenuTrigger,
78
+ DropdownMenuContent,
79
+ DropdownMenuItem,
80
+ DropdownMenuCheckboxItem,
81
+ DropdownMenuRadioItem,
82
+ DropdownMenuLabel,
83
+ DropdownMenuSeparator,
84
+ DropdownMenuShortcut,
85
+ DropdownMenuGroup,
86
+ DropdownMenuPortal,
87
+ DropdownMenuSub,
88
+ DropdownMenuSubContent,
89
+ DropdownMenuSubTrigger,
90
+ DropdownMenuRadioGroup,
26
91
  };
27
- export { DropdownMenu, DropdownMenuTrigger, DropdownMenuContent, DropdownMenuItem, DropdownMenuCheckboxItem, DropdownMenuRadioItem, DropdownMenuLabel, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuGroup, DropdownMenuPortal, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuRadioGroup, };
@@ -1,44 +1,72 @@
1
- "use strict";
2
- "use client";
3
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
4
- if (k2 === undefined) k2 = k;
5
- var desc = Object.getOwnPropertyDescriptor(m, k);
6
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
7
- desc = { enumerable: true, get: function() { return m[k]; } };
8
- }
9
- Object.defineProperty(o, k2, desc);
10
- }) : (function(o, m, k, k2) {
11
- if (k2 === undefined) k2 = k;
12
- o[k2] = m[k];
13
- }));
14
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
15
- Object.defineProperty(o, "default", { enumerable: true, value: v });
16
- }) : function(o, v) {
17
- o["default"] = v;
18
- });
19
- var __importStar = (this && this.__importStar) || (function () {
20
- var ownKeys = function(o) {
21
- ownKeys = Object.getOwnPropertyNames || function (o) {
22
- var ar = [];
23
- for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
24
- return ar;
25
- };
26
- return ownKeys(o);
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 function (mod) {
29
- if (mod && mod.__esModule) return mod;
30
- var result = {};
31
- if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
32
- __setModuleDefault(result, mod);
33
- return result;
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, "__esModule", { value: true });
37
- exports.DropdownMenuRadioGroup = exports.DropdownMenuSubTrigger = exports.DropdownMenuSubContent = exports.DropdownMenuSub = exports.DropdownMenuPortal = exports.DropdownMenuGroup = exports.DropdownMenuShortcut = exports.DropdownMenuSeparator = exports.DropdownMenuLabel = exports.DropdownMenuRadioItem = exports.DropdownMenuCheckboxItem = exports.DropdownMenuItem = exports.DropdownMenuContent = exports.DropdownMenuTrigger = exports.DropdownMenu = void 0;
38
- const React = __importStar(require("react"));
39
- const DropdownMenuPrimitive = __importStar(require("@radix-ui/react-dropdown-menu"));
40
- const lucide_react_1 = require("lucide-react");
41
- const utils_1 = require("../../lib/utils");
48
+ })();
49
+ Object.defineProperty(exports, '__esModule', { value: true });
50
+ exports.DropdownMenuRadioGroup =
51
+ exports.DropdownMenuSubTrigger =
52
+ exports.DropdownMenuSubContent =
53
+ exports.DropdownMenuSub =
54
+ exports.DropdownMenuPortal =
55
+ exports.DropdownMenuGroup =
56
+ exports.DropdownMenuShortcut =
57
+ exports.DropdownMenuSeparator =
58
+ exports.DropdownMenuLabel =
59
+ exports.DropdownMenuRadioItem =
60
+ exports.DropdownMenuCheckboxItem =
61
+ exports.DropdownMenuItem =
62
+ exports.DropdownMenuContent =
63
+ exports.DropdownMenuTrigger =
64
+ exports.DropdownMenu =
65
+ void 0;
66
+ const React = __importStar(require('react'));
67
+ const DropdownMenuPrimitive = __importStar(require('@radix-ui/react-dropdown-menu'));
68
+ const lucide_react_1 = require('lucide-react');
69
+ const utils_1 = require('../../lib/utils');
42
70
  const DropdownMenu = DropdownMenuPrimitive.Root;
43
71
  exports.DropdownMenu = DropdownMenu;
44
72
  const DropdownMenuTrigger = DropdownMenuPrimitive.Trigger;
@@ -51,54 +79,128 @@ const DropdownMenuSub = DropdownMenuPrimitive.Sub;
51
79
  exports.DropdownMenuSub = DropdownMenuSub;
52
80
  const DropdownMenuRadioGroup = DropdownMenuPrimitive.RadioGroup;
53
81
  exports.DropdownMenuRadioGroup = DropdownMenuRadioGroup;
54
- const DropdownMenuSubTrigger = React.forwardRef(({ className, inset, children, ...props }, ref) => (<DropdownMenuPrimitive.SubTrigger ref={ref} className={(0, utils_1.cn)("flex cursor-default gap-2 select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent data-[state=open]:bg-accent [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0", inset && "pl-8", className)} {...props}>
82
+ const DropdownMenuSubTrigger = React.forwardRef(({ className, inset, children, ...props }, ref) => (
83
+ <DropdownMenuPrimitive.SubTrigger
84
+ ref={ref}
85
+ className={(0, utils_1.cn)(
86
+ 'flex cursor-default gap-2 select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent data-[state=open]:bg-accent [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0',
87
+ inset && 'pl-8',
88
+ className,
89
+ )}
90
+ {...props}
91
+ >
55
92
  {children}
56
- <lucide_react_1.ChevronRight className="ml-auto"/>
57
- </DropdownMenuPrimitive.SubTrigger>));
93
+ <lucide_react_1.ChevronRight className="ml-auto" />
94
+ </DropdownMenuPrimitive.SubTrigger>
95
+ ));
58
96
  exports.DropdownMenuSubTrigger = DropdownMenuSubTrigger;
59
- DropdownMenuSubTrigger.displayName =
60
- DropdownMenuPrimitive.SubTrigger.displayName;
61
- const DropdownMenuSubContent = React.forwardRef(({ className, ...props }, ref) => (<DropdownMenuPrimitive.SubContent ref={ref} className={(0, utils_1.cn)("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg 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", className)} {...props}/>));
97
+ DropdownMenuSubTrigger.displayName = DropdownMenuPrimitive.SubTrigger.displayName;
98
+ const DropdownMenuSubContent = React.forwardRef(({ className, ...props }, ref) => (
99
+ <DropdownMenuPrimitive.SubContent
100
+ ref={ref}
101
+ className={(0, utils_1.cn)(
102
+ 'z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg 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',
103
+ className,
104
+ )}
105
+ {...props}
106
+ />
107
+ ));
62
108
  exports.DropdownMenuSubContent = DropdownMenuSubContent;
63
- DropdownMenuSubContent.displayName =
64
- DropdownMenuPrimitive.SubContent.displayName;
65
- const DropdownMenuContent = React.forwardRef(({ className, sideOffset = 4, ...props }, ref) => (<DropdownMenuPrimitive.Portal>
66
- <DropdownMenuPrimitive.Content ref={ref} sideOffset={sideOffset} className={(0, utils_1.cn)("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md 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", className)} {...props}/>
67
- </DropdownMenuPrimitive.Portal>));
109
+ DropdownMenuSubContent.displayName = DropdownMenuPrimitive.SubContent.displayName;
110
+ const DropdownMenuContent = React.forwardRef(({ className, sideOffset = 4, ...props }, ref) => (
111
+ <DropdownMenuPrimitive.Portal>
112
+ <DropdownMenuPrimitive.Content
113
+ ref={ref}
114
+ sideOffset={sideOffset}
115
+ className={(0, utils_1.cn)(
116
+ 'z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md 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',
117
+ className,
118
+ )}
119
+ {...props}
120
+ />
121
+ </DropdownMenuPrimitive.Portal>
122
+ ));
68
123
  exports.DropdownMenuContent = DropdownMenuContent;
69
124
  DropdownMenuContent.displayName = DropdownMenuPrimitive.Content.displayName;
70
- const DropdownMenuItem = React.forwardRef(({ className, inset, ...props }, ref) => (<DropdownMenuPrimitive.Item ref={ref} className={(0, utils_1.cn)("relative flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0", inset && "pl-8", className)} {...props}/>));
125
+ const DropdownMenuItem = React.forwardRef(({ className, inset, ...props }, ref) => (
126
+ <DropdownMenuPrimitive.Item
127
+ ref={ref}
128
+ className={(0, utils_1.cn)(
129
+ 'relative flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0',
130
+ inset && 'pl-8',
131
+ className,
132
+ )}
133
+ {...props}
134
+ />
135
+ ));
71
136
  exports.DropdownMenuItem = DropdownMenuItem;
72
137
  DropdownMenuItem.displayName = DropdownMenuPrimitive.Item.displayName;
73
- const DropdownMenuCheckboxItem = React.forwardRef(({ className, children, checked, ...props }, ref) => (<DropdownMenuPrimitive.CheckboxItem ref={ref} className={(0, utils_1.cn)("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50", className)} checked={checked} {...props}>
74
- <span className="absolute left-2 flex h-3.5 w-3.5 items-center justify-center">
75
- <DropdownMenuPrimitive.ItemIndicator>
76
- <lucide_react_1.Check className="h-4 w-4"/>
77
- </DropdownMenuPrimitive.ItemIndicator>
78
- </span>
79
- {children}
80
- </DropdownMenuPrimitive.CheckboxItem>));
138
+ const DropdownMenuCheckboxItem = React.forwardRef(
139
+ ({ className, children, checked, ...props }, ref) => (
140
+ <DropdownMenuPrimitive.CheckboxItem
141
+ ref={ref}
142
+ className={(0, utils_1.cn)(
143
+ 'relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50',
144
+ className,
145
+ )}
146
+ checked={checked}
147
+ {...props}
148
+ >
149
+ <span className="absolute left-2 flex h-3.5 w-3.5 items-center justify-center">
150
+ <DropdownMenuPrimitive.ItemIndicator>
151
+ <lucide_react_1.Check className="h-4 w-4" />
152
+ </DropdownMenuPrimitive.ItemIndicator>
153
+ </span>
154
+ {children}
155
+ </DropdownMenuPrimitive.CheckboxItem>
156
+ ),
157
+ );
81
158
  exports.DropdownMenuCheckboxItem = DropdownMenuCheckboxItem;
82
- DropdownMenuCheckboxItem.displayName =
83
- DropdownMenuPrimitive.CheckboxItem.displayName;
84
- const DropdownMenuRadioItem = React.forwardRef(({ className, children, ...props }, ref) => (<DropdownMenuPrimitive.RadioItem ref={ref} className={(0, utils_1.cn)("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50", className)} {...props}>
159
+ DropdownMenuCheckboxItem.displayName = DropdownMenuPrimitive.CheckboxItem.displayName;
160
+ const DropdownMenuRadioItem = React.forwardRef(({ className, children, ...props }, ref) => (
161
+ <DropdownMenuPrimitive.RadioItem
162
+ ref={ref}
163
+ className={(0, utils_1.cn)(
164
+ 'relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50',
165
+ className,
166
+ )}
167
+ {...props}
168
+ >
85
169
  <span className="absolute left-2 flex h-3.5 w-3.5 items-center justify-center">
86
170
  <DropdownMenuPrimitive.ItemIndicator>
87
- <lucide_react_1.Circle className="h-2 w-2 fill-current"/>
171
+ <lucide_react_1.Circle className="h-2 w-2 fill-current" />
88
172
  </DropdownMenuPrimitive.ItemIndicator>
89
173
  </span>
90
174
  {children}
91
- </DropdownMenuPrimitive.RadioItem>));
175
+ </DropdownMenuPrimitive.RadioItem>
176
+ ));
92
177
  exports.DropdownMenuRadioItem = DropdownMenuRadioItem;
93
178
  DropdownMenuRadioItem.displayName = DropdownMenuPrimitive.RadioItem.displayName;
94
- const DropdownMenuLabel = React.forwardRef(({ className, inset, ...props }, ref) => (<DropdownMenuPrimitive.Label ref={ref} className={(0, utils_1.cn)("px-2 py-1.5 text-sm font-semibold", inset && "pl-8", className)} {...props}/>));
179
+ const DropdownMenuLabel = React.forwardRef(({ className, inset, ...props }, ref) => (
180
+ <DropdownMenuPrimitive.Label
181
+ ref={ref}
182
+ className={(0, utils_1.cn)('px-2 py-1.5 text-sm font-semibold', inset && 'pl-8', className)}
183
+ {...props}
184
+ />
185
+ ));
95
186
  exports.DropdownMenuLabel = DropdownMenuLabel;
96
187
  DropdownMenuLabel.displayName = DropdownMenuPrimitive.Label.displayName;
97
- const DropdownMenuSeparator = React.forwardRef(({ className, ...props }, ref) => (<DropdownMenuPrimitive.Separator ref={ref} className={(0, utils_1.cn)("-mx-1 my-1 h-px bg-muted", className)} {...props}/>));
188
+ const DropdownMenuSeparator = React.forwardRef(({ className, ...props }, ref) => (
189
+ <DropdownMenuPrimitive.Separator
190
+ ref={ref}
191
+ className={(0, utils_1.cn)('-mx-1 my-1 h-px bg-muted', className)}
192
+ {...props}
193
+ />
194
+ ));
98
195
  exports.DropdownMenuSeparator = DropdownMenuSeparator;
99
196
  DropdownMenuSeparator.displayName = DropdownMenuPrimitive.Separator.displayName;
100
197
  const DropdownMenuShortcut = ({ className, ...props }) => {
101
- return (<span className={(0, utils_1.cn)("ml-auto text-xs tracking-widest opacity-60", className)} {...props}/>);
198
+ return (
199
+ <span
200
+ className={(0, utils_1.cn)('ml-auto text-xs tracking-widest opacity-60', className)}
201
+ {...props}
202
+ />
203
+ );
102
204
  };
103
205
  exports.DropdownMenuShortcut = DropdownMenuShortcut;
104
- DropdownMenuShortcut.displayName = "DropdownMenuShortcut";
206
+ DropdownMenuShortcut.displayName = 'DropdownMenuShortcut';