@dilipod/ui 0.4.28 → 0.4.29

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.mjs CHANGED
@@ -492,16 +492,20 @@ __export(index_exports, {
492
492
  WorkflowViewer: () => WorkflowViewer,
493
493
  alertVariants: () => alertVariants,
494
494
  badgeVariants: () => badgeVariants,
495
+ buttonHtml: () => buttonHtml,
495
496
  buttonVariants: () => buttonVariants,
496
497
  cn: () => cn,
498
+ emailTemplate: () => emailTemplate,
497
499
  formatCentsToEuros: () => formatCentsToEuros,
498
500
  formatDuration: () => formatDuration,
499
501
  formatEuros: () => formatEuros,
500
502
  formatRelativeTime: () => formatRelativeTime,
501
503
  getDateRangeFromPreset: () => getDateRangeFromPreset,
502
504
  iconBoxVariants: () => iconBoxVariants,
505
+ infoBoxHtml: () => infoBoxHtml,
503
506
  metricCardVariants: () => metricCardVariants,
504
507
  navigationMenuTriggerStyle: () => navigationMenuTriggerStyle,
508
+ noteBoxHtml: () => noteBoxHtml,
505
509
  progressVariants: () => progressVariants,
506
510
  statVariants: () => statVariants,
507
511
  tagVariants: () => tagVariants,
@@ -6852,9 +6856,110 @@ function formatRelativeTime(date) {
6852
6856
  return formatDistanceToNow(d, { addSuffix: false });
6853
6857
  }
6854
6858
 
6859
+ // src/lib/email.ts
6860
+ function emailTemplate({ body, preheader }) {
6861
+ const preheaderHtml = preheader ? `<div style="display:none;font-size:1px;color:#ffffff;line-height:1px;max-height:0;max-width:0;opacity:0;overflow:hidden;">${preheader}</div>` : "";
6862
+ return `<!DOCTYPE html>
6863
+ <html lang="en">
6864
+ <head>
6865
+ <meta charset="utf-8" />
6866
+ <meta name="viewport" content="width=device-width, initial-scale=1.0" />
6867
+ <meta name="color-scheme" content="light" />
6868
+ <meta name="supported-color-schemes" content="light" />
6869
+ <title>Dilipod</title>
6870
+ </head>
6871
+ <body style="margin: 0; padding: 0; background-color: #f0f0f0; -webkit-font-smoothing: antialiased;">
6872
+ ${preheaderHtml}
6873
+ <table role="presentation" width="100%" cellpadding="0" cellspacing="0" style="background-color: #f0f0f0;">
6874
+ <tr>
6875
+ <td align="center" style="padding: 40px 16px;">
6876
+ <!-- Main card -->
6877
+ <table role="presentation" width="100%" cellpadding="0" cellspacing="0" style="max-width: 560px;">
6878
+ <!-- Logo header -->
6879
+ <tr>
6880
+ <td style="padding: 0 0 24px 0;">
6881
+ <table role="presentation" cellpadding="0" cellspacing="0">
6882
+ <tr>
6883
+ <td style="width: 32px; height: 32px; background-color: #00e5cc; border-radius: 6px; text-align: center; vertical-align: middle; font-size: 16px; font-weight: 700; color: #111111; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;">
6884
+ D
6885
+ </td>
6886
+ <td style="padding-left: 10px; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; font-size: 17px; font-weight: 600; color: #111111; letter-spacing: -0.2px;">
6887
+ Dilipod
6888
+ </td>
6889
+ </tr>
6890
+ </table>
6891
+ </td>
6892
+ </tr>
6893
+ <!-- Content card -->
6894
+ <tr>
6895
+ <td>
6896
+ <table role="presentation" width="100%" cellpadding="0" cellspacing="0" style="background-color: #ffffff; border-radius: 6px; overflow: hidden; border: 1px solid #e2e2e2;">
6897
+ <!-- Accent bar -->
6898
+ <tr>
6899
+ <td style="height: 3px; background: linear-gradient(90deg, #00e5cc 0%, #00c8b5 100%); font-size: 0; line-height: 0;">&nbsp;</td>
6900
+ </tr>
6901
+ <!-- Body content -->
6902
+ <tr>
6903
+ <td style="padding: 36px 40px 40px 40px; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; font-size: 15px; line-height: 1.7; color: #374151;">
6904
+ ${body}
6905
+ </td>
6906
+ </tr>
6907
+ </table>
6908
+ </td>
6909
+ </tr>
6910
+ <!-- Footer -->
6911
+ <tr>
6912
+ <td style="padding: 24px 4px 0 4px;">
6913
+ <table role="presentation" width="100%" cellpadding="0" cellspacing="0">
6914
+ <tr>
6915
+ <td style="font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; font-size: 12px; color: #9ca3af;">
6916
+ &copy; ${(/* @__PURE__ */ new Date()).getFullYear()} Dilipod &mdash; Your Digital Workforce
6917
+ </td>
6918
+ <td align="right" style="font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; font-size: 12px;">
6919
+ <a href="https://dilipod.com" style="color: #9ca3af; text-decoration: none;">dilipod.com</a>
6920
+ </td>
6921
+ </tr>
6922
+ </table>
6923
+ </td>
6924
+ </tr>
6925
+ </table>
6926
+ </td>
6927
+ </tr>
6928
+ </table>
6929
+ </body>
6930
+ </html>`;
6931
+ }
6932
+ function buttonHtml({
6933
+ text,
6934
+ href,
6935
+ variant = "primary"
6936
+ }) {
6937
+ const bg = variant === "danger" ? "#dc2626" : "#111111";
6938
+ const color = "#ffffff";
6939
+ return `<table role="presentation" cellpadding="0" cellspacing="0" style="margin-top: 24px;">
6940
+ <tr>
6941
+ <td style="background-color: ${bg}; border-radius: 6px;">
6942
+ <a href="${href}" style="display: inline-block; padding: 12px 32px; color: ${color}; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; font-size: 14px; font-weight: 600; text-decoration: none;">
6943
+ ${text} &rarr;
6944
+ </a>
6945
+ </td>
6946
+ </tr>
6947
+ </table>`;
6948
+ }
6949
+ function infoBoxHtml(innerHtml) {
6950
+ return `<div style="background-color: #f8fafb; padding: 16px 20px; border-radius: 6px; border: 1px solid #e5e7eb; margin: 20px 0; border-left: 3px solid #00e5cc;">
6951
+ ${innerHtml}
6952
+ </div>`;
6953
+ }
6954
+ function noteBoxHtml(text) {
6955
+ return `<div style="background-color: #fffbeb; padding: 14px 18px; border-radius: 6px; border: 1px solid #fde68a; margin: 20px 0; font-size: 13px; color: #92400e; border-left: 3px solid #f59e0b;">
6956
+ ${text}
6957
+ </div>`;
6958
+ }
6959
+
6855
6960
  // src/index.ts
6856
6961
  __reExport(index_exports, icons_exports);
6857
6962
 
6858
- export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, ActivityTimeline, Alert, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, Avatar, AvatarFallback, AvatarImage, Badge, BreadcrumbLink, Breadcrumbs, Button, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Checkbox, CodeBlock, ConfirmDialog, DateRangePicker, DateRangeSelect, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, Divider, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, EmptyState, ErrorState, ExpandableSection, FilePreview, FlowchartDiagram, FormField, IconBox, ImpactMetricsForm, Input, Label2 as Label, LabeledSlider, LabeledSwitch, Logo, Metric, MetricCard, MetricLabel, MetricSubtext, MetricValue, NavigationMenu, NavigationMenuContent, NavigationMenuIndicator, NavigationMenuItem, NavigationMenuLink, NavigationMenuList, NavigationMenuTrigger, NavigationMenuViewport, Pagination, Popover, PopoverAnchor, PopoverArrow, PopoverClose, PopoverContent, PopoverTrigger, Progress, RadioGroup, RadioGroupCard, RadioGroupItem, RadioGroupOption, ScenariosManager, Select, Separator2 as Separator, SettingsNav, SettingsNavLink, Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetOverlay, SheetPortal, SheetTitle, SheetTrigger, Sidebar, SimplePagination, SimpleTooltip, Skeleton, SkeletonCard, SkeletonText, Slider, Stat, StepDots, StepProgress, SupportChat, Switch, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, Tabs, TabsContent, TabsList, TabsListUnderline, TabsTrigger, TabsTriggerUnderline, Tag, Textarea, Toast, ToastAction, ToastClose, ToastDescription, ToastIcon, ToastProvider, ToastTitle, ToastViewport, Toaster, Tooltip, TooltipArrow, TooltipContent, TooltipProvider, TooltipTrigger, UsageBar, UsageChart, WorkerSpec, WorkflowFlow, WorkflowViewer, alertVariants, badgeVariants, buttonVariants, cn, formatCentsToEuros, formatDuration, formatEuros, formatRelativeTime, getDateRangeFromPreset, iconBoxVariants, metricCardVariants, navigationMenuTriggerStyle, progressVariants, statVariants, tagVariants, toast, usageBarVariants, useExpandedSections, useServiceWorker, useToast, valueVariants };
6963
+ export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, ActivityTimeline, Alert, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, Avatar, AvatarFallback, AvatarImage, Badge, BreadcrumbLink, Breadcrumbs, Button, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Checkbox, CodeBlock, ConfirmDialog, DateRangePicker, DateRangeSelect, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, Divider, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, EmptyState, ErrorState, ExpandableSection, FilePreview, FlowchartDiagram, FormField, IconBox, ImpactMetricsForm, Input, Label2 as Label, LabeledSlider, LabeledSwitch, Logo, Metric, MetricCard, MetricLabel, MetricSubtext, MetricValue, NavigationMenu, NavigationMenuContent, NavigationMenuIndicator, NavigationMenuItem, NavigationMenuLink, NavigationMenuList, NavigationMenuTrigger, NavigationMenuViewport, Pagination, Popover, PopoverAnchor, PopoverArrow, PopoverClose, PopoverContent, PopoverTrigger, Progress, RadioGroup, RadioGroupCard, RadioGroupItem, RadioGroupOption, ScenariosManager, Select, Separator2 as Separator, SettingsNav, SettingsNavLink, Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetOverlay, SheetPortal, SheetTitle, SheetTrigger, Sidebar, SimplePagination, SimpleTooltip, Skeleton, SkeletonCard, SkeletonText, Slider, Stat, StepDots, StepProgress, SupportChat, Switch, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, Tabs, TabsContent, TabsList, TabsListUnderline, TabsTrigger, TabsTriggerUnderline, Tag, Textarea, Toast, ToastAction, ToastClose, ToastDescription, ToastIcon, ToastProvider, ToastTitle, ToastViewport, Toaster, Tooltip, TooltipArrow, TooltipContent, TooltipProvider, TooltipTrigger, UsageBar, UsageChart, WorkerSpec, WorkflowFlow, WorkflowViewer, alertVariants, badgeVariants, buttonHtml, buttonVariants, cn, emailTemplate, formatCentsToEuros, formatDuration, formatEuros, formatRelativeTime, getDateRangeFromPreset, iconBoxVariants, infoBoxHtml, metricCardVariants, navigationMenuTriggerStyle, noteBoxHtml, progressVariants, statVariants, tagVariants, toast, usageBarVariants, useExpandedSections, useServiceWorker, useToast, valueVariants };
6859
6964
  //# sourceMappingURL=index.mjs.map
6860
6965
  //# sourceMappingURL=index.mjs.map