@viliha/vui-ui 1.1.8 → 1.3.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 (138) hide show
  1. package/AGENT.md +79 -9
  2. package/README.md +60 -0
  3. package/bin/vui.mjs +211 -0
  4. package/package.json +10 -2
  5. package/src/record-view.tsx +59 -17
  6. package/template/.env.example +20 -0
  7. package/template/app/(app)/branches/branches-table.tsx +69 -0
  8. package/template/app/(app)/branches/page.tsx +13 -0
  9. package/template/app/(app)/businesses/businesses-table.tsx +39 -0
  10. package/template/app/(app)/businesses/page.tsx +13 -0
  11. package/template/app/(app)/calendar/page.tsx +725 -0
  12. package/template/app/(app)/charts/charts-content.tsx +190 -0
  13. package/template/app/(app)/charts/layout.tsx +8 -0
  14. package/template/app/(app)/charts/page.tsx +44 -0
  15. package/template/app/(app)/chat/layout.tsx +14 -0
  16. package/template/app/(app)/chat/page.tsx +311 -0
  17. package/template/app/(app)/components/layout.tsx +8 -0
  18. package/template/app/(app)/components/page.tsx +464 -0
  19. package/template/app/(app)/crm/companies/companies-table.tsx +56 -0
  20. package/template/app/(app)/crm/companies/page.tsx +13 -0
  21. package/template/app/(app)/crm/opportunities/opportunities-board.tsx +359 -0
  22. package/template/app/(app)/crm/opportunities/page.tsx +13 -0
  23. package/template/app/(app)/crm/people/page.tsx +13 -0
  24. package/template/app/(app)/crm/people/people-table.tsx +50 -0
  25. package/template/app/(app)/dashboard/layout.tsx +8 -0
  26. package/template/app/(app)/dashboard/page.tsx +239 -0
  27. package/template/app/(app)/departments/departments-table.tsx +55 -0
  28. package/template/app/(app)/departments/page.tsx +13 -0
  29. package/template/app/(app)/employees/employees-table.tsx +64 -0
  30. package/template/app/(app)/employees/page.tsx +13 -0
  31. package/template/app/(app)/forms/layout.tsx +8 -0
  32. package/template/app/(app)/forms/page.tsx +388 -0
  33. package/template/app/(app)/layout.tsx +74 -0
  34. package/template/app/(app)/markets/markets-table.tsx +76 -0
  35. package/template/app/(app)/markets/page.tsx +13 -0
  36. package/template/app/(app)/organizations/edit/page.tsx +72 -0
  37. package/template/app/(app)/organizations/new/page.tsx +46 -0
  38. package/template/app/(app)/organizations/organizations-config.tsx +97 -0
  39. package/template/app/(app)/organizations/organizations-table.tsx +42 -0
  40. package/template/app/(app)/organizations/page.tsx +13 -0
  41. package/template/app/(app)/settings/layout.tsx +8 -0
  42. package/template/app/(app)/settings/page.tsx +255 -0
  43. package/template/app/(app)/steps/page.tsx +263 -0
  44. package/template/app/(app)/support/layout.tsx +14 -0
  45. package/template/app/(app)/support/page.tsx +345 -0
  46. package/template/app/(app)/system/cities/cities-table.tsx +34 -0
  47. package/template/app/(app)/system/cities/page.tsx +13 -0
  48. package/template/app/(app)/system/countries/countries-table.tsx +34 -0
  49. package/template/app/(app)/system/countries/page.tsx +13 -0
  50. package/template/app/(app)/system/currencies/currencies-table.tsx +34 -0
  51. package/template/app/(app)/system/currencies/page.tsx +13 -0
  52. package/template/app/(app)/system/languages/languages-table.tsx +32 -0
  53. package/template/app/(app)/system/languages/page.tsx +13 -0
  54. package/template/app/(app)/system/regions/page.tsx +13 -0
  55. package/template/app/(app)/system/regions/regions-table.tsx +32 -0
  56. package/template/app/(app)/users/page.tsx +13 -0
  57. package/template/app/(app)/users/users-table.tsx +97 -0
  58. package/template/app/_components/app-sidebar.tsx +565 -0
  59. package/template/app/_components/auth.tsx +184 -0
  60. package/template/app/_components/breadcrumbs.tsx +26 -0
  61. package/template/app/_components/global-search.tsx +209 -0
  62. package/template/app/_components/logo.tsx +49 -0
  63. package/template/app/_components/nav-config.ts +138 -0
  64. package/template/app/_components/open-tabs.tsx +530 -0
  65. package/template/app/_components/quick-actions.tsx +140 -0
  66. package/template/app/_components/route-meta.ts +137 -0
  67. package/template/app/_components/set-page-title.tsx +15 -0
  68. package/template/app/_components/showcase.tsx +29 -0
  69. package/template/app/_components/stat-card.tsx +56 -0
  70. package/template/app/_components/theme-toggle.tsx +46 -0
  71. package/template/app/_components/top-bar.tsx +109 -0
  72. package/template/app/_components/user-menu.tsx +109 -0
  73. package/template/app/_components/wordmark.tsx +45 -0
  74. package/template/app/apple-icon.png +0 -0
  75. package/template/app/auth/forgot-password/page.tsx +102 -0
  76. package/template/app/auth/layout.tsx +43 -0
  77. package/template/app/auth/page.tsx +13 -0
  78. package/template/app/auth/reset-password/page.tsx +108 -0
  79. package/template/app/auth/signin/page.tsx +238 -0
  80. package/template/app/auth/signup/page.tsx +159 -0
  81. package/template/app/auth/verify/page.tsx +86 -0
  82. package/template/app/error.tsx +56 -0
  83. package/template/app/globals.css +6 -0
  84. package/template/app/icon.png +0 -0
  85. package/template/app/icon.svg +4 -0
  86. package/template/app/layout.tsx +103 -0
  87. package/template/app/not-found.tsx +29 -0
  88. package/template/app/onboarding/layout.tsx +31 -0
  89. package/template/app/onboarding/page.tsx +399 -0
  90. package/template/app/page.tsx +13 -0
  91. package/template/app/register-business/layout.tsx +30 -0
  92. package/template/app/register-business/page.tsx +234 -0
  93. package/template/components/ui/accordion.tsx +66 -0
  94. package/template/components/ui/alert-dialog.tsx +196 -0
  95. package/template/components/ui/alert.tsx +66 -0
  96. package/template/components/ui/aspect-ratio.tsx +11 -0
  97. package/template/components/ui/avatar.tsx +109 -0
  98. package/template/components/ui/badge.tsx +48 -0
  99. package/template/components/ui/breadcrumb.tsx +109 -0
  100. package/template/components/ui/button.tsx +64 -0
  101. package/template/components/ui/calendar.tsx +220 -0
  102. package/template/components/ui/card.tsx +92 -0
  103. package/template/components/ui/checkbox.tsx +32 -0
  104. package/template/components/ui/collapsible.tsx +33 -0
  105. package/template/components/ui/command.tsx +184 -0
  106. package/template/components/ui/dialog.tsx +158 -0
  107. package/template/components/ui/dropdown-menu.tsx +257 -0
  108. package/template/components/ui/form.tsx +167 -0
  109. package/template/components/ui/hover-card.tsx +44 -0
  110. package/template/components/ui/input-otp.tsx +77 -0
  111. package/template/components/ui/input.tsx +21 -0
  112. package/template/components/ui/label.tsx +24 -0
  113. package/template/components/ui/popover.tsx +89 -0
  114. package/template/components/ui/progress.tsx +31 -0
  115. package/template/components/ui/radio-group.tsx +45 -0
  116. package/template/components/ui/scroll-area.tsx +58 -0
  117. package/template/components/ui/select.tsx +190 -0
  118. package/template/components/ui/separator.tsx +28 -0
  119. package/template/components/ui/sheet.tsx +143 -0
  120. package/template/components/ui/skeleton.tsx +13 -0
  121. package/template/components/ui/slider.tsx +63 -0
  122. package/template/components/ui/sonner.tsx +40 -0
  123. package/template/components/ui/switch.tsx +35 -0
  124. package/template/components/ui/table.tsx +116 -0
  125. package/template/components/ui/tabs.tsx +91 -0
  126. package/template/components/ui/textarea.tsx +18 -0
  127. package/template/components/ui/toggle-group.tsx +83 -0
  128. package/template/components/ui/toggle.tsx +47 -0
  129. package/template/components/ui/tooltip.tsx +57 -0
  130. package/template/lib/auth-demo.ts +94 -0
  131. package/template/lib/crm-data.ts +80 -0
  132. package/template/lib/demo-data.ts +267 -0
  133. package/template/lib/mock-data.ts +169 -0
  134. package/template/lib/org-store.ts +50 -0
  135. package/template/lib/seo.ts +188 -0
  136. package/template/lib/utils.ts +3 -0
  137. package/template/next.config.mjs +13 -0
  138. package/template/postcss.config.mjs +7 -0
@@ -0,0 +1,91 @@
1
+ "use client"
2
+
3
+ import * as React from "react"
4
+ import { cva, type VariantProps } from "class-variance-authority"
5
+ import { Tabs as TabsPrimitive } from "radix-ui"
6
+
7
+ import { cn } from "@/lib/utils"
8
+
9
+ function Tabs({
10
+ className,
11
+ orientation = "horizontal",
12
+ ...props
13
+ }: React.ComponentProps<typeof TabsPrimitive.Root>) {
14
+ return (
15
+ <TabsPrimitive.Root
16
+ data-slot="tabs"
17
+ data-orientation={orientation}
18
+ orientation={orientation}
19
+ className={cn(
20
+ "group/tabs flex gap-2 data-[orientation=horizontal]:flex-col",
21
+ className
22
+ )}
23
+ {...props}
24
+ />
25
+ )
26
+ }
27
+
28
+ const tabsListVariants = cva(
29
+ "group/tabs-list inline-flex w-fit items-center justify-center rounded-lg p-[3px] text-muted-foreground group-data-[orientation=horizontal]/tabs:h-9 group-data-[orientation=vertical]/tabs:h-fit group-data-[orientation=vertical]/tabs:flex-col data-[variant=line]:rounded-none",
30
+ {
31
+ variants: {
32
+ variant: {
33
+ default: "bg-muted",
34
+ line: "gap-1 bg-transparent",
35
+ },
36
+ },
37
+ defaultVariants: {
38
+ variant: "default",
39
+ },
40
+ }
41
+ )
42
+
43
+ function TabsList({
44
+ className,
45
+ variant = "default",
46
+ ...props
47
+ }: React.ComponentProps<typeof TabsPrimitive.List> &
48
+ VariantProps<typeof tabsListVariants>) {
49
+ return (
50
+ <TabsPrimitive.List
51
+ data-slot="tabs-list"
52
+ data-variant={variant}
53
+ className={cn(tabsListVariants({ variant }), className)}
54
+ {...props}
55
+ />
56
+ )
57
+ }
58
+
59
+ function TabsTrigger({
60
+ className,
61
+ ...props
62
+ }: React.ComponentProps<typeof TabsPrimitive.Trigger>) {
63
+ return (
64
+ <TabsPrimitive.Trigger
65
+ data-slot="tabs-trigger"
66
+ className={cn(
67
+ "relative inline-flex h-[calc(100%-1px)] flex-1 items-center justify-center gap-1.5 rounded-md border border-transparent px-2 py-1 text-sm font-medium whitespace-nowrap text-foreground/60 transition-all group-data-[orientation=vertical]/tabs:w-full group-data-[orientation=vertical]/tabs:justify-start hover:text-foreground focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 focus-visible:outline-1 focus-visible:outline-ring disabled:pointer-events-none disabled:opacity-50 group-data-[variant=default]/tabs-list:data-[state=active]:shadow-sm group-data-[variant=line]/tabs-list:data-[state=active]:shadow-none dark:text-muted-foreground dark:hover:text-foreground [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
68
+ "group-data-[variant=line]/tabs-list:bg-transparent group-data-[variant=line]/tabs-list:data-[state=active]:bg-transparent dark:group-data-[variant=line]/tabs-list:data-[state=active]:border-transparent dark:group-data-[variant=line]/tabs-list:data-[state=active]:bg-transparent",
69
+ "data-[state=active]:bg-background data-[state=active]:text-foreground dark:data-[state=active]:border-input dark:data-[state=active]:bg-input/30 dark:data-[state=active]:text-foreground",
70
+ "after:absolute after:bg-foreground after:opacity-0 after:transition-opacity group-data-[orientation=horizontal]/tabs:after:inset-x-0 group-data-[orientation=horizontal]/tabs:after:bottom-[-5px] group-data-[orientation=horizontal]/tabs:after:h-0.5 group-data-[orientation=vertical]/tabs:after:inset-y-0 group-data-[orientation=vertical]/tabs:after:-right-1 group-data-[orientation=vertical]/tabs:after:w-0.5 group-data-[variant=line]/tabs-list:data-[state=active]:after:opacity-100",
71
+ className
72
+ )}
73
+ {...props}
74
+ />
75
+ )
76
+ }
77
+
78
+ function TabsContent({
79
+ className,
80
+ ...props
81
+ }: React.ComponentProps<typeof TabsPrimitive.Content>) {
82
+ return (
83
+ <TabsPrimitive.Content
84
+ data-slot="tabs-content"
85
+ className={cn("flex-1 outline-none", className)}
86
+ {...props}
87
+ />
88
+ )
89
+ }
90
+
91
+ export { Tabs, TabsList, TabsTrigger, TabsContent, tabsListVariants }
@@ -0,0 +1,18 @@
1
+ import * as React from "react"
2
+
3
+ import { cn } from "@/lib/utils"
4
+
5
+ function Textarea({ className, ...props }: React.ComponentProps<"textarea">) {
6
+ return (
7
+ <textarea
8
+ data-slot="textarea"
9
+ className={cn(
10
+ "flex field-sizing-content min-h-16 w-full rounded-md border border-input bg-transparent px-3 py-2 text-base shadow-xs transition-[color,box-shadow] outline-none placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 md:text-sm dark:bg-input/30 dark:aria-invalid:ring-destructive/40",
11
+ className
12
+ )}
13
+ {...props}
14
+ />
15
+ )
16
+ }
17
+
18
+ export { Textarea }
@@ -0,0 +1,83 @@
1
+ "use client"
2
+
3
+ import * as React from "react"
4
+ import { type VariantProps } from "class-variance-authority"
5
+ import { ToggleGroup as ToggleGroupPrimitive } from "radix-ui"
6
+
7
+ import { cn } from "@/lib/utils"
8
+ import { toggleVariants } from "@/components/ui/toggle"
9
+
10
+ const ToggleGroupContext = React.createContext<
11
+ VariantProps<typeof toggleVariants> & {
12
+ spacing?: number
13
+ }
14
+ >({
15
+ size: "default",
16
+ variant: "default",
17
+ spacing: 0,
18
+ })
19
+
20
+ function ToggleGroup({
21
+ className,
22
+ variant,
23
+ size,
24
+ spacing = 0,
25
+ children,
26
+ ...props
27
+ }: React.ComponentProps<typeof ToggleGroupPrimitive.Root> &
28
+ VariantProps<typeof toggleVariants> & {
29
+ spacing?: number
30
+ }) {
31
+ return (
32
+ <ToggleGroupPrimitive.Root
33
+ data-slot="toggle-group"
34
+ data-variant={variant}
35
+ data-size={size}
36
+ data-spacing={spacing}
37
+ style={{ "--gap": spacing } as React.CSSProperties}
38
+ className={cn(
39
+ "group/toggle-group flex w-fit items-center gap-[--spacing(var(--gap))] rounded-md data-[spacing=default]:data-[variant=outline]:shadow-xs",
40
+ className
41
+ )}
42
+ {...props}
43
+ >
44
+ <ToggleGroupContext.Provider value={{ variant, size, spacing }}>
45
+ {children}
46
+ </ToggleGroupContext.Provider>
47
+ </ToggleGroupPrimitive.Root>
48
+ )
49
+ }
50
+
51
+ function ToggleGroupItem({
52
+ className,
53
+ children,
54
+ variant,
55
+ size,
56
+ ...props
57
+ }: React.ComponentProps<typeof ToggleGroupPrimitive.Item> &
58
+ VariantProps<typeof toggleVariants>) {
59
+ const context = React.useContext(ToggleGroupContext)
60
+
61
+ return (
62
+ <ToggleGroupPrimitive.Item
63
+ data-slot="toggle-group-item"
64
+ data-variant={context.variant || variant}
65
+ data-size={context.size || size}
66
+ data-spacing={context.spacing}
67
+ className={cn(
68
+ toggleVariants({
69
+ variant: context.variant || variant,
70
+ size: context.size || size,
71
+ }),
72
+ "w-auto min-w-0 shrink-0 px-3 focus:z-10 focus-visible:z-10",
73
+ "data-[spacing=0]:rounded-none data-[spacing=0]:shadow-none data-[spacing=0]:first:rounded-l-md data-[spacing=0]:last:rounded-r-md data-[spacing=0]:data-[variant=outline]:border-l-0 data-[spacing=0]:data-[variant=outline]:first:border-l",
74
+ className
75
+ )}
76
+ {...props}
77
+ >
78
+ {children}
79
+ </ToggleGroupPrimitive.Item>
80
+ )
81
+ }
82
+
83
+ export { ToggleGroup, ToggleGroupItem }
@@ -0,0 +1,47 @@
1
+ "use client"
2
+
3
+ import * as React from "react"
4
+ import { cva, type VariantProps } from "class-variance-authority"
5
+ import { Toggle as TogglePrimitive } from "radix-ui"
6
+
7
+ import { cn } from "@/lib/utils"
8
+
9
+ const toggleVariants = cva(
10
+ "inline-flex items-center justify-center gap-2 rounded-md text-sm font-medium whitespace-nowrap transition-[color,box-shadow] outline-none hover:bg-muted hover:text-muted-foreground focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:pointer-events-none disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 data-[state=on]:bg-accent data-[state=on]:text-accent-foreground dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
11
+ {
12
+ variants: {
13
+ variant: {
14
+ default: "bg-transparent",
15
+ outline:
16
+ "border border-input bg-transparent shadow-xs hover:bg-accent hover:text-accent-foreground",
17
+ },
18
+ size: {
19
+ default: "h-9 min-w-9 px-2",
20
+ sm: "h-8 min-w-8 px-1.5",
21
+ lg: "h-10 min-w-10 px-2.5",
22
+ },
23
+ },
24
+ defaultVariants: {
25
+ variant: "default",
26
+ size: "default",
27
+ },
28
+ }
29
+ )
30
+
31
+ function Toggle({
32
+ className,
33
+ variant,
34
+ size,
35
+ ...props
36
+ }: React.ComponentProps<typeof TogglePrimitive.Root> &
37
+ VariantProps<typeof toggleVariants>) {
38
+ return (
39
+ <TogglePrimitive.Root
40
+ data-slot="toggle"
41
+ className={cn(toggleVariants({ variant, size, className }))}
42
+ {...props}
43
+ />
44
+ )
45
+ }
46
+
47
+ export { Toggle, toggleVariants }
@@ -0,0 +1,57 @@
1
+ "use client"
2
+
3
+ import * as React from "react"
4
+ import { Tooltip as TooltipPrimitive } from "radix-ui"
5
+
6
+ import { cn } from "@/lib/utils"
7
+
8
+ function TooltipProvider({
9
+ delayDuration = 0,
10
+ ...props
11
+ }: React.ComponentProps<typeof TooltipPrimitive.Provider>) {
12
+ return (
13
+ <TooltipPrimitive.Provider
14
+ data-slot="tooltip-provider"
15
+ delayDuration={delayDuration}
16
+ {...props}
17
+ />
18
+ )
19
+ }
20
+
21
+ function Tooltip({
22
+ ...props
23
+ }: React.ComponentProps<typeof TooltipPrimitive.Root>) {
24
+ return <TooltipPrimitive.Root data-slot="tooltip" {...props} />
25
+ }
26
+
27
+ function TooltipTrigger({
28
+ ...props
29
+ }: React.ComponentProps<typeof TooltipPrimitive.Trigger>) {
30
+ return <TooltipPrimitive.Trigger data-slot="tooltip-trigger" {...props} />
31
+ }
32
+
33
+ function TooltipContent({
34
+ className,
35
+ sideOffset = 0,
36
+ children,
37
+ ...props
38
+ }: React.ComponentProps<typeof TooltipPrimitive.Content>) {
39
+ return (
40
+ <TooltipPrimitive.Portal>
41
+ <TooltipPrimitive.Content
42
+ data-slot="tooltip-content"
43
+ sideOffset={sideOffset}
44
+ className={cn(
45
+ "z-50 w-fit origin-(--radix-tooltip-content-transform-origin) animate-in rounded-md bg-foreground px-3 py-1.5 text-xs text-balance text-background fade-in-0 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 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95",
46
+ className
47
+ )}
48
+ {...props}
49
+ >
50
+ {children}
51
+ <TooltipPrimitive.Arrow className="z-50 size-2.5 translate-y-[calc(-50%_-_2px)] rotate-45 rounded-[2px] bg-foreground fill-foreground" />
52
+ </TooltipPrimitive.Content>
53
+ </TooltipPrimitive.Portal>
54
+ )
55
+ }
56
+
57
+ export { Tooltip, TooltipTrigger, TooltipContent, TooltipProvider }
@@ -0,0 +1,94 @@
1
+ /**
2
+ * Mock constants + helpers for the sign-in / sign-up / onboarding demo.
3
+ * No network, no real auth — everything is in-memory to showcase the flow.
4
+ */
5
+
6
+ /** Personal/consumer email providers that are blocked at sign-up (business only). */
7
+ export const PUBLIC_EMAIL_DOMAINS = [
8
+ "gmail.com",
9
+ "googlemail.com",
10
+ "yahoo.com",
11
+ "ymail.com",
12
+ "outlook.com",
13
+ "hotmail.com",
14
+ "live.com",
15
+ "msn.com",
16
+ "icloud.com",
17
+ "me.com",
18
+ "aol.com",
19
+ "proton.me",
20
+ "protonmail.com",
21
+ "gmx.com",
22
+ "mail.com",
23
+ "zoho.com",
24
+ ];
25
+
26
+ const EMAIL_RE = /^[^\s@]+@([^\s@]+\.[^\s@]+)$/;
27
+
28
+ export type EmailCheck =
29
+ | { ok: true; domain: string }
30
+ | { ok: false; reason: "format" | "public" };
31
+
32
+ /** Validate an email and reject personal/public domains (business email only). */
33
+ export function checkBusinessEmail(email: string): EmailCheck {
34
+ const match = email.trim().toLowerCase().match(EMAIL_RE);
35
+ const domain = match?.[1];
36
+ if (!domain) return { ok: false, reason: "format" };
37
+ if (PUBLIC_EMAIL_DOMAINS.includes(domain)) {
38
+ return { ok: false, reason: "public" };
39
+ }
40
+ return { ok: true, domain };
41
+ }
42
+
43
+ export const TIMEZONES = [
44
+ "UTC",
45
+ "America/Los_Angeles",
46
+ "America/New_York",
47
+ "Europe/London",
48
+ "Europe/Paris",
49
+ "Asia/Singapore",
50
+ "Asia/Ho_Chi_Minh",
51
+ "Asia/Tokyo",
52
+ "Australia/Sydney",
53
+ ];
54
+
55
+ export type Plan = {
56
+ id: string;
57
+ name: string;
58
+ price: string;
59
+ cadence: string;
60
+ tagline: string;
61
+ features: string[];
62
+ popular?: boolean;
63
+ };
64
+
65
+ export const PLANS: Plan[] = [
66
+ {
67
+ id: "free",
68
+ name: "Free",
69
+ price: "$0",
70
+ cadence: "forever",
71
+ tagline: "Get started, no credit card required.",
72
+ features: ["10k API calls / mo", "1 project", "Community support"],
73
+ },
74
+ {
75
+ id: "growth",
76
+ name: "Growth",
77
+ price: "$0",
78
+ cadence: "during beta",
79
+ tagline: "Most teams start here.",
80
+ features: ["1M API calls / mo", "Unlimited projects", "Email support", "Webhooks"],
81
+ popular: true,
82
+ },
83
+ {
84
+ id: "enterprise",
85
+ name: "Enterprise",
86
+ price: "Custom",
87
+ cadence: "contact us",
88
+ tagline: "SAML SSO, SLAs, and audit logs.",
89
+ features: ["Unlimited calls", "SAML / SSO", "Audit log export", "Dedicated support"],
90
+ },
91
+ ];
92
+
93
+ export const TEAM_ROLES = ["Admin", "Member", "Billing", "Read-only"] as const;
94
+ export type TeamRole = (typeof TEAM_ROLES)[number];
@@ -0,0 +1,80 @@
1
+ /**
2
+ * In-memory CRM mock data (companies, people, opportunities) with light
3
+ * relations (people belong to a company; opportunities link a company).
4
+ * Swap this for a real data/API layer when you wire up a backend.
5
+ */
6
+
7
+ export interface Company {
8
+ id: number;
9
+ name: string;
10
+ domain: string;
11
+ industry: string;
12
+ employees: number;
13
+ city: string;
14
+ country: string;
15
+ }
16
+
17
+ export const companies: Company[] = [
18
+ { id: 1, name: "Northwind Retail", domain: "northwind.example.com", industry: "Retail", employees: 340, city: "Seattle", country: "United States" },
19
+ { id: 2, name: "Sakura Foods", domain: "sakura.example.jp", industry: "Food & Beverage", employees: 210, city: "Osaka", country: "Japan" },
20
+ { id: 3, name: "Alpine Logistics", domain: "alpine.example.ch", industry: "Logistics", employees: 96, city: "Zürich", country: "Switzerland" },
21
+ { id: 4, name: "Lagos Digital", domain: "lagosdigital.example.ng", industry: "Technology", employees: 54, city: "Lagos", country: "Nigeria" },
22
+ { id: 5, name: "Meridian Media", domain: "meridian.example.uk", industry: "Media", employees: 178, city: "London", country: "United Kingdom" },
23
+ { id: 6, name: "Nordic Wear", domain: "nordicwear.example.se", industry: "Retail", employees: 133, city: "Stockholm", country: "Sweden" },
24
+ { id: 7, name: "Coral Bay Resorts", domain: "coralbay.example.au", industry: "Hospitality", employees: 264, city: "Cairns", country: "Australia" },
25
+ { id: 8, name: "Pampas Commerce", domain: "pampas.example.ar", industry: "Retail", employees: 71, city: "Buenos Aires", country: "Argentina" },
26
+ ];
27
+
28
+ export interface Person {
29
+ id: number;
30
+ firstName: string;
31
+ lastName: string;
32
+ email: string;
33
+ phone: string;
34
+ jobTitle: string;
35
+ company: string;
36
+ city: string;
37
+ }
38
+
39
+ export const people: Person[] = [
40
+ { id: 1, firstName: "Ava", lastName: "Bennett", email: "ava.bennett@northwind.example.com", phone: "+1 206 555 0110", jobTitle: "Head of Ops", company: "Northwind Retail", city: "Seattle" },
41
+ { id: 2, firstName: "Haruto", lastName: "Tanaka", email: "haruto.tanaka@sakura.example.jp", phone: "+81 6 6555 0177", jobTitle: "Supply Lead", company: "Sakura Foods", city: "Osaka" },
42
+ { id: 3, firstName: "Lena", lastName: "Fischer", email: "lena.fischer@alpine.example.ch", phone: "+41 44 555 0143", jobTitle: "Fleet Manager", company: "Alpine Logistics", city: "Zürich" },
43
+ { id: 4, firstName: "Chidi", lastName: "Okafor", email: "chidi.okafor@lagosdigital.example.ng", phone: "+234 1 555 0122", jobTitle: "CTO", company: "Lagos Digital", city: "Lagos" },
44
+ { id: 5, firstName: "Mia", lastName: "Nguyen", email: "mia.nguyen@coralbay.example.au", phone: "+61 7 5555 0166", jobTitle: "Guest Director", company: "Coral Bay Resorts", city: "Cairns" },
45
+ { id: 6, firstName: "Erik", lastName: "Lindqvist", email: "erik.lindqvist@nordicwear.example.se", phone: "+46 8 555 0199", jobTitle: "Retail Lead", company: "Nordic Wear", city: "Stockholm" },
46
+ { id: 7, firstName: "Sofia", lastName: "Rossi", email: "sofia.rossi@meridian.example.uk", phone: "+44 20 5555 0188", jobTitle: "Editor", company: "Meridian Media", city: "London" },
47
+ { id: 8, firstName: "Diego", lastName: "Alvarez", email: "diego.alvarez@pampas.example.ar", phone: "+54 11 5555 0133", jobTitle: "Sales Manager", company: "Pampas Commerce", city: "Buenos Aires" },
48
+ ];
49
+
50
+ export const OPPORTUNITY_STAGES = [
51
+ "Lead",
52
+ "Qualified",
53
+ "Proposal",
54
+ "Negotiation",
55
+ "Won",
56
+ ] as const;
57
+
58
+ export type OpportunityStage = (typeof OPPORTUNITY_STAGES)[number];
59
+
60
+ export interface Opportunity {
61
+ id: number;
62
+ name: string;
63
+ company: string;
64
+ amount: number;
65
+ stage: OpportunityStage;
66
+ owner: string;
67
+ closeDate: string;
68
+ }
69
+
70
+ export const opportunities: Opportunity[] = [
71
+ { id: 1, name: "Enterprise plan", company: "Northwind Retail", amount: 48000, stage: "Negotiation", owner: "Ava Bennett", closeDate: "2026-08-15" },
72
+ { id: 2, name: "Signals add-on", company: "Sakura Foods", amount: 12000, stage: "Proposal", owner: "Haruto Tanaka", closeDate: "2026-07-30" },
73
+ { id: 3, name: "Pilot expansion", company: "Alpine Logistics", amount: 8000, stage: "Qualified", owner: "Lena Fischer", closeDate: "2026-09-01" },
74
+ { id: 4, name: "Platform migration", company: "Lagos Digital", amount: 26000, stage: "Lead", owner: "Chidi Okafor", closeDate: "2026-09-20" },
75
+ { id: 5, name: "Seasonal campaign", company: "Coral Bay Resorts", amount: 15500, stage: "Won", owner: "Mia Nguyen", closeDate: "2026-06-28" },
76
+ { id: 6, name: "Retail rollout", company: "Nordic Wear", amount: 21000, stage: "Proposal", owner: "Erik Lindqvist", closeDate: "2026-08-05" },
77
+ { id: 7, name: "Content personalization", company: "Meridian Media", amount: 33000, stage: "Qualified", owner: "Sofia Rossi", closeDate: "2026-08-22" },
78
+ { id: 8, name: "Growth tier", company: "Pampas Commerce", amount: 9500, stage: "Lead", owner: "Diego Alvarez", closeDate: "2026-09-10" },
79
+ { id: 9, name: "Renewal + upsell", company: "Northwind Retail", amount: 18000, stage: "Won", owner: "Ava Bennett", closeDate: "2026-06-15" },
80
+ ];