@nocobase/portal-template-default 1.0.0 → 1.0.2
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 +90 -1
- package/components.json +3 -1
- package/package.json +21 -5
- package/registry/nocobase-acl/README.md +19 -0
- package/registry/nocobase-acl/components/acl-boundary.tsx +106 -0
- package/registry/nocobase-acl/components/index.ts +3 -0
- package/registry/nocobase-acl/components/role-options.ts +36 -0
- package/registry/nocobase-acl/components/role-switcher.tsx +135 -0
- package/registry/nocobase-acl/demo/boundary-api.tsx +186 -0
- package/registry/nocobase-acl/demo/components.tsx +231 -0
- package/registry/nocobase-acl/demo/index.tsx +505 -0
- package/registry/nocobase-acl/demo/lazy-route.tsx +10 -0
- package/registry/nocobase-acl/demo/prompt-generator.tsx +134 -0
- package/registry/nocobase-acl/demo/role-switcher-prompt-generator.tsx +198 -0
- package/registry/nocobase-acl/demo/scenario-section.tsx +37 -0
- package/registry/nocobase-acl/extension.tsx +71 -0
- package/registry/nocobase-acl/index.ts +1 -0
- package/registry/nocobase-acl/tests/acl-regression.mjs +314 -0
- package/registry/nocobase-ai/README.md +70 -0
- package/registry/nocobase-ai/adapters/react-hook-form.ts +20 -0
- package/registry/nocobase-ai/assets/nocobase-ai-chat.svg +50 -0
- package/registry/nocobase-ai/components/ai-root-provider.tsx +32 -0
- package/registry/nocobase-ai/components/chat/ai-employee-avatar.tsx +31 -0
- package/registry/nocobase-ai/components/chat/chat-attachment.tsx +92 -0
- package/registry/nocobase-ai/components/chat/chat-compact.tsx +90 -0
- package/registry/nocobase-ai/components/chat/chat-composer.tsx +429 -0
- package/registry/nocobase-ai/components/chat/chat-empty-state.tsx +51 -0
- package/registry/nocobase-ai/components/chat/chat-header.tsx +88 -0
- package/registry/nocobase-ai/components/chat/chat-history-dialog.tsx +77 -0
- package/registry/nocobase-ai/components/chat/chat-message.tsx +252 -0
- package/registry/nocobase-ai/components/chat/chat-messages.tsx +173 -0
- package/registry/nocobase-ai/components/chat/chat-window.tsx +118 -0
- package/registry/nocobase-ai/components/chat/conversation-list.tsx +343 -0
- package/registry/nocobase-ai/components/chat/markdown-message.tsx +165 -0
- package/registry/nocobase-ai/components/chat/model-select-options.tsx +30 -0
- package/registry/nocobase-ai/components/chat/reasoning-panel.tsx +29 -0
- package/registry/nocobase-ai/components/chat/sub-agent-conversation.tsx +142 -0
- package/registry/nocobase-ai/components/chat/tool-call-card.tsx +316 -0
- package/registry/nocobase-ai/components/chat/user-prompt-editor.tsx +99 -0
- package/registry/nocobase-ai/components/chat/work-context-chip.tsx +114 -0
- package/registry/nocobase-ai/components/index.ts +59 -0
- package/registry/nocobase-ai/components/page-elements/ai-form.tsx +44 -0
- package/registry/nocobase-ai/components/page-elements/page-element-provider.tsx +469 -0
- package/registry/nocobase-ai/components/surfaces/chat-dialog.tsx +31 -0
- package/registry/nocobase-ai/components/surfaces/chat-inline.tsx +18 -0
- package/registry/nocobase-ai/components/surfaces/chat-page.tsx +18 -0
- package/registry/nocobase-ai/components/surfaces/chat-side-panel-layout.tsx +54 -0
- package/registry/nocobase-ai/components/surfaces/chat-side-panel.tsx +74 -0
- package/registry/nocobase-ai/components/surfaces/chat-surface-actions.tsx +54 -0
- package/registry/nocobase-ai/components/tools/builtin-tool-renderers.tsx +31 -0
- package/registry/nocobase-ai/components/tools/business-report-dialog.tsx +364 -0
- package/registry/nocobase-ai/components/tools/business-report-renderer.tsx +122 -0
- package/registry/nocobase-ai/components/tools/business-report-utils.tsx +282 -0
- package/registry/nocobase-ai/components/tools/chart-renderer.tsx +99 -0
- package/registry/nocobase-ai/components/tools/echarts-preview.tsx +59 -0
- package/registry/nocobase-ai/components/tools/echarts-runtime-advanced.ts +18 -0
- package/registry/nocobase-ai/components/tools/echarts-runtime-common.ts +20 -0
- package/registry/nocobase-ai/components/tools/echarts-runtime-components.ts +34 -0
- package/registry/nocobase-ai/components/tools/echarts-runtime-hierarchy.ts +24 -0
- package/registry/nocobase-ai/components/tools/echarts-runtime.ts +138 -0
- package/registry/nocobase-ai/components/tools/sub-agent-renderer.tsx +67 -0
- package/registry/nocobase-ai/components/tools/suggestions-renderer.tsx +59 -0
- package/registry/nocobase-ai/components/tools/tool-renderer-provider.tsx +55 -0
- package/registry/nocobase-ai/components/tools/tool-renderer-utils.ts +18 -0
- package/registry/nocobase-ai/components/tools/workflow-renderer.tsx +108 -0
- package/registry/nocobase-ai/components/triggers/ai-chat-floating-trigger.tsx +73 -0
- package/registry/nocobase-ai/components/triggers/ai-employee-shortcut.tsx +149 -0
- package/registry/nocobase-ai/demo/configuration-gate.tsx +49 -0
- package/registry/nocobase-ai/demo/container-showcase.tsx +210 -0
- package/registry/nocobase-ai/demo/floating.tsx +134 -0
- package/registry/nocobase-ai/demo/index.tsx +346 -0
- package/registry/nocobase-ai/demo/interaction-showcase.tsx +151 -0
- package/registry/nocobase-ai/demo/page-context-prompt-generator.tsx +355 -0
- package/registry/nocobase-ai/demo/page-context.tsx +884 -0
- package/registry/nocobase-ai/demo/page-element-showcase.tsx +197 -0
- package/registry/nocobase-ai/demo/prompt-card.tsx +41 -0
- package/registry/nocobase-ai/demo/prompt-generator.tsx +452 -0
- package/registry/nocobase-ai/demo/shortcut.tsx +1207 -0
- package/registry/nocobase-ai/demo/tool-cards.tsx +530 -0
- package/registry/nocobase-ai/extension.tsx +158 -0
- package/registry/nocobase-ai/global-ai-chat.tsx +213 -0
- package/registry/nocobase-ai/index.ts +3 -0
- package/registry/nocobase-ai/providers/ai-provider.tsx +323 -0
- package/registry/nocobase-ai/providers/avatars.ts +817 -0
- package/registry/nocobase-ai/providers/chat-context.tsx +109 -0
- package/registry/nocobase-ai/providers/chat-controller.ts +84 -0
- package/registry/nocobase-ai/providers/chat-message-utils.ts +198 -0
- package/registry/nocobase-ai/providers/chat-provider.tsx +871 -0
- package/registry/nocobase-ai/providers/chat-reducer.ts +147 -0
- package/registry/nocobase-ai/providers/chat-task-utils.ts +105 -0
- package/registry/nocobase-ai/providers/chat-transport.ts +184 -0
- package/registry/nocobase-ai/providers/form-registry.tsx +271 -0
- package/registry/nocobase-ai/providers/frontend-tool-registry.tsx +231 -0
- package/registry/nocobase-ai/providers/index.ts +61 -0
- package/registry/nocobase-ai/providers/model.ts +32 -0
- package/registry/nocobase-ai/providers/page-context.tsx +136 -0
- package/registry/nocobase-ai/providers/stream-coalescer.ts +60 -0
- package/registry/nocobase-ai/providers/stream-event-utils.ts +82 -0
- package/registry/nocobase-ai/providers/stream-parser.ts +61 -0
- package/registry/nocobase-ai/providers/sub-agent-stream.ts +316 -0
- package/registry/nocobase-ai/providers/types.ts +183 -0
- package/registry/nocobase-ai/providers/ui-message-stream.ts +463 -0
- package/registry/nocobase-ai/providers/use-automatic-tool-approval.ts +94 -0
- package/registry/nocobase-ai/providers/use-chat-attachments.ts +206 -0
- package/registry/nocobase-ai/providers/use-chat-message-actions.ts +554 -0
- package/registry/nocobase-ai/providers/use-chat-runtime.ts +210 -0
- package/registry/nocobase-ai/providers/use-chat-work-context.ts +93 -0
- package/registry/nocobase-ai/providers/use-conversation-catalog.ts +108 -0
- package/registry/nocobase-ai/providers/use-conversation-history.ts +178 -0
- package/registry/nocobase-ai/services/index.ts +7 -0
- package/registry/nocobase-ai/services/nocobase-ai-service.ts +454 -0
- package/registry/nocobase-ai/services/types.ts +82 -0
- package/registry/nocobase-ai/tests/business-report-regression.mjs +70 -0
- package/registry/nocobase-ai/tests/form-filler-regression.mjs +129 -0
- package/registry/nocobase-ai/tests/frontend-tool-regression.mjs +128 -0
- package/registry/nocobase-ai/tests/page-context-regression.mjs +48 -0
- package/registry/nocobase-ai/tests/stream-regression.mjs +207 -0
- package/registry/nocobase-i18n/README.md +53 -0
- package/registry/nocobase-i18n/components/index.ts +1 -0
- package/registry/nocobase-i18n/components/language-switcher.tsx +138 -0
- package/registry/nocobase-i18n/demo/index.tsx +209 -0
- package/registry/nocobase-i18n/demo/prompt-generator.tsx +155 -0
- package/registry/nocobase-i18n/extension.tsx +46 -0
- package/registry/nocobase-i18n/i18n-provider.ts +9 -0
- package/registry/nocobase-i18n/index.ts +6 -0
- package/registry/nocobase-i18n/locale-store.ts +134 -0
- package/registry/nocobase-i18n/locales/en-US.ts +89 -0
- package/registry/nocobase-i18n/locales/zh-CN.ts +85 -0
- package/registry/nocobase-i18n/provider.tsx +32 -0
- package/registry/nocobase-i18n/runtime.ts +118 -0
- package/registry/nocobase-i18n/server-resources.ts +184 -0
- package/registry/nocobase-i18n/tests/i18n-regression.mjs +42 -0
- package/registry.config.json +163 -0
- package/scripts/registry.mjs +164 -0
- package/src/App.css +95 -0
- package/src/App.tsx +87 -69
- package/src/app/extension.ts +11 -0
- package/src/app/extensions.tsx +49 -0
- package/src/components/access-control/access-denied.tsx +30 -0
- package/src/components/access-control/acl-bootstrap.tsx +9 -0
- package/src/components/access-control/acl-gate.tsx +36 -0
- package/src/components/access-control/navigate-to-accessible-resource.tsx +17 -0
- package/src/components/access-control/resource-access-guard.tsx +21 -0
- package/src/components/access-control/use-acl-runtime.ts +28 -0
- package/src/components/app-shell/breadcrumb.tsx +39 -3
- package/src/components/app-shell/document-title-handler.tsx +11 -20
- package/src/components/app-shell/header.tsx +22 -4
- package/src/components/app-shell/loading-overlay.tsx +2 -4
- package/src/components/app-shell/loading-state.tsx +15 -0
- package/src/components/app-shell/sidebar.tsx +103 -45
- package/src/components/data-table/data-table-pagination.tsx +27 -7
- package/src/components/data-table/data-table-styles.ts +57 -0
- package/src/components/data-table/data-table.tsx +14 -59
- package/src/components/resources/resource-label.ts +101 -0
- package/src/components/resources/views/create-view.tsx +17 -14
- package/src/components/resources/views/edit-view.tsx +17 -15
- package/src/components/resources/views/list-view.tsx +20 -10
- package/src/components/resources/views/show-view.tsx +20 -18
- package/src/index.tsx +2 -3
- package/src/lib/i18n.ts +161 -0
- package/src/lib/nocobase/acl/action.ts +147 -0
- package/src/lib/nocobase/acl/data-source.ts +24 -0
- package/src/lib/nocobase/acl/index.ts +6 -0
- package/src/lib/nocobase/acl/menu.ts +41 -0
- package/src/lib/nocobase/acl/record-permissions.ts +111 -0
- package/src/lib/nocobase/acl/store.ts +182 -0
- package/src/lib/nocobase/acl/types.ts +96 -0
- package/src/lib/nocobase/client.ts +279 -0
- package/src/lib/nocobase/error.ts +32 -0
- package/src/locales/en-US.ts +82 -0
- package/src/locales/index.ts +13 -0
- package/src/locales/zh-CN.ts +79 -0
- package/src/pages/users/create.tsx +98 -0
- package/src/pages/users/edit.tsx +92 -0
- package/src/pages/users/form-context.ts +57 -0
- package/src/pages/users/form-fields.tsx +211 -0
- package/src/pages/users/list.tsx +205 -0
- package/src/pages/users/show.tsx +187 -0
- package/src/pages/users/types.ts +20 -0
- package/src/providers/access-control.ts +34 -0
- package/src/providers/auth.ts +74 -60
- package/src/providers/constants.ts +3 -37
- package/src/providers/data.ts +242 -85
- package/vite.config.ts +17 -0
- package/src/pages/blog-posts/create.tsx +0 -177
- package/src/pages/blog-posts/edit.tsx +0 -197
- package/src/pages/blog-posts/list.tsx +0 -131
- package/src/pages/blog-posts/show.tsx +0 -81
- package/src/pages/categories/create.tsx +0 -73
- package/src/pages/categories/edit.tsx +0 -73
- package/src/pages/categories/index.ts +0 -4
- package/src/pages/categories/list.tsx +0 -86
- package/src/pages/categories/show.tsx +0 -37
- /package/src/pages/{blog-posts → users}/index.ts +0 -0
|
@@ -0,0 +1,231 @@
|
|
|
1
|
+
import { ShieldCheck } from "lucide-react";
|
|
2
|
+
|
|
3
|
+
import { Badge } from "@/components/ui/badge";
|
|
4
|
+
import {
|
|
5
|
+
Card,
|
|
6
|
+
CardContent,
|
|
7
|
+
CardDescription,
|
|
8
|
+
CardHeader,
|
|
9
|
+
CardTitle,
|
|
10
|
+
} from "@/components/ui/card";
|
|
11
|
+
import {
|
|
12
|
+
Table,
|
|
13
|
+
TableBody,
|
|
14
|
+
TableCell,
|
|
15
|
+
TableHead,
|
|
16
|
+
TableHeader,
|
|
17
|
+
TableRow,
|
|
18
|
+
} from "@/components/ui/table";
|
|
19
|
+
import { RoleSwitcher } from "../components";
|
|
20
|
+
import { RoleSwitcherPromptGenerator } from "./role-switcher-prompt-generator";
|
|
21
|
+
|
|
22
|
+
type PropRow = [
|
|
23
|
+
name: string,
|
|
24
|
+
type: string,
|
|
25
|
+
defaultValue: string,
|
|
26
|
+
description: string
|
|
27
|
+
];
|
|
28
|
+
|
|
29
|
+
const roleSwitcherProps: PropRow[] = [
|
|
30
|
+
[
|
|
31
|
+
"className",
|
|
32
|
+
"string",
|
|
33
|
+
"undefined",
|
|
34
|
+
"Styles the component wrapper so it can fit a toolbar, menu, or settings layout.",
|
|
35
|
+
],
|
|
36
|
+
[
|
|
37
|
+
"triggerClassName",
|
|
38
|
+
"string",
|
|
39
|
+
"undefined",
|
|
40
|
+
"Styles only the Select trigger without changing the wrapper.",
|
|
41
|
+
],
|
|
42
|
+
[
|
|
43
|
+
"label",
|
|
44
|
+
"ReactNode | false",
|
|
45
|
+
'"Switch role"',
|
|
46
|
+
"Replaces the field label. Pass false for a compact control without a label.",
|
|
47
|
+
],
|
|
48
|
+
[
|
|
49
|
+
"showWhenUnavailable",
|
|
50
|
+
"boolean",
|
|
51
|
+
"false",
|
|
52
|
+
"Shows the current role as a non-interactive badge when the user cannot switch roles.",
|
|
53
|
+
],
|
|
54
|
+
];
|
|
55
|
+
|
|
56
|
+
const roleBehaviors = [
|
|
57
|
+
[
|
|
58
|
+
"Multiple assigned roles",
|
|
59
|
+
"Renders a Select using roles from the signed-in identity.",
|
|
60
|
+
],
|
|
61
|
+
["allow-use-union", "Prepends Full permissions using the __union__ role."],
|
|
62
|
+
[
|
|
63
|
+
"only-use-union",
|
|
64
|
+
"Shows Full permissions as the current non-interactive role.",
|
|
65
|
+
],
|
|
66
|
+
["allowAnonymous", "Appends Anonymous to the available role options."],
|
|
67
|
+
[
|
|
68
|
+
"One available role",
|
|
69
|
+
"Returns null, or shows the current-role badge when showWhenUnavailable is true.",
|
|
70
|
+
],
|
|
71
|
+
];
|
|
72
|
+
|
|
73
|
+
export function AclComponentsPage() {
|
|
74
|
+
return (
|
|
75
|
+
<div className="space-y-12 pb-12">
|
|
76
|
+
<header className="space-y-2">
|
|
77
|
+
<h1 className="text-2xl font-semibold tracking-[-0.025em] sm:text-3xl">
|
|
78
|
+
Role switcher
|
|
79
|
+
</h1>
|
|
80
|
+
<p className="max-w-3xl text-sm leading-6 text-muted-foreground">
|
|
81
|
+
A reusable role selector backed by the Starter's NocoBase ACL
|
|
82
|
+
store and signed-in identity.
|
|
83
|
+
</p>
|
|
84
|
+
</header>
|
|
85
|
+
|
|
86
|
+
<section className="space-y-5 border-t pt-8">
|
|
87
|
+
<SectionTitle
|
|
88
|
+
eyebrow="Role selection"
|
|
89
|
+
title="RoleSwitcher"
|
|
90
|
+
description="The component resolves the signed-in user's roles and NocoBase role mode automatically. Business pages only decide its placement and presentation."
|
|
91
|
+
/>
|
|
92
|
+
<div className="grid items-start gap-5 xl:grid-cols-2">
|
|
93
|
+
<Card>
|
|
94
|
+
<CardHeader>
|
|
95
|
+
<CardTitle>Live component</CardTitle>
|
|
96
|
+
<CardDescription>
|
|
97
|
+
Uses the current identity and active NocoBase ACL response.
|
|
98
|
+
</CardDescription>
|
|
99
|
+
</CardHeader>
|
|
100
|
+
<CardContent>
|
|
101
|
+
<RoleSwitcher
|
|
102
|
+
showWhenUnavailable
|
|
103
|
+
className="w-full max-w-sm"
|
|
104
|
+
label="Working as"
|
|
105
|
+
/>
|
|
106
|
+
</CardContent>
|
|
107
|
+
</Card>
|
|
108
|
+
<Card>
|
|
109
|
+
<CardHeader>
|
|
110
|
+
<CardTitle>Unavailable state</CardTitle>
|
|
111
|
+
<CardDescription>
|
|
112
|
+
With one usable role, showWhenUnavailable keeps identity visible
|
|
113
|
+
without presenting a disabled Select.
|
|
114
|
+
</CardDescription>
|
|
115
|
+
</CardHeader>
|
|
116
|
+
<CardContent>
|
|
117
|
+
<div className="flex min-h-9 items-center gap-2 text-sm">
|
|
118
|
+
<ShieldCheck className="size-4 text-muted-foreground" />
|
|
119
|
+
<span className="text-muted-foreground">Current role</span>
|
|
120
|
+
<Badge variant="secondary">Member</Badge>
|
|
121
|
+
</div>
|
|
122
|
+
</CardContent>
|
|
123
|
+
</Card>
|
|
124
|
+
</div>
|
|
125
|
+
</section>
|
|
126
|
+
|
|
127
|
+
<section className="space-y-5 border-t pt-8">
|
|
128
|
+
<SectionTitle
|
|
129
|
+
eyebrow="Prompt generator"
|
|
130
|
+
title="Place the role switcher in an existing application surface"
|
|
131
|
+
description="Describe the target placement and presentation. The generated prompt integrates the exported component without rebuilding its role-loading or switching behavior."
|
|
132
|
+
/>
|
|
133
|
+
<RoleSwitcherPromptGenerator />
|
|
134
|
+
</section>
|
|
135
|
+
|
|
136
|
+
<section className="space-y-5 border-t pt-8">
|
|
137
|
+
<SectionTitle
|
|
138
|
+
eyebrow="Component API"
|
|
139
|
+
title="Role switcher props"
|
|
140
|
+
description="Role data, union mode, Anonymous, persistence, and reload behavior are built in rather than exposed as duplicated application props."
|
|
141
|
+
/>
|
|
142
|
+
<PropsTable rows={roleSwitcherProps} />
|
|
143
|
+
</section>
|
|
144
|
+
|
|
145
|
+
<section className="space-y-5 border-t pt-8">
|
|
146
|
+
<SectionTitle
|
|
147
|
+
eyebrow="Automatic behavior"
|
|
148
|
+
title="Role options follow NocoBase configuration"
|
|
149
|
+
description="These states are derived from the identity and roles:check response, so applications do not maintain a second role list."
|
|
150
|
+
/>
|
|
151
|
+
<Card className="gap-0 overflow-hidden py-0">
|
|
152
|
+
<Table>
|
|
153
|
+
<TableHeader>
|
|
154
|
+
<TableRow>
|
|
155
|
+
<TableHead>Condition</TableHead>
|
|
156
|
+
<TableHead>Rendered behavior</TableHead>
|
|
157
|
+
</TableRow>
|
|
158
|
+
</TableHeader>
|
|
159
|
+
<TableBody>
|
|
160
|
+
{roleBehaviors.map(([condition, behavior]) => (
|
|
161
|
+
<TableRow key={condition}>
|
|
162
|
+
<TableCell className="font-medium">{condition}</TableCell>
|
|
163
|
+
<TableCell className="text-muted-foreground">
|
|
164
|
+
{behavior}
|
|
165
|
+
</TableCell>
|
|
166
|
+
</TableRow>
|
|
167
|
+
))}
|
|
168
|
+
</TableBody>
|
|
169
|
+
</Table>
|
|
170
|
+
</Card>
|
|
171
|
+
</section>
|
|
172
|
+
</div>
|
|
173
|
+
);
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
function PropsTable({ rows }: { rows: PropRow[] }) {
|
|
177
|
+
return (
|
|
178
|
+
<Card className="gap-0 overflow-hidden py-0">
|
|
179
|
+
<Table>
|
|
180
|
+
<TableHeader>
|
|
181
|
+
<TableRow>
|
|
182
|
+
<TableHead>Prop</TableHead>
|
|
183
|
+
<TableHead>Type</TableHead>
|
|
184
|
+
<TableHead>Default</TableHead>
|
|
185
|
+
<TableHead>Description</TableHead>
|
|
186
|
+
</TableRow>
|
|
187
|
+
</TableHeader>
|
|
188
|
+
<TableBody>
|
|
189
|
+
{rows.map(([name, type, defaultValue, description]) => (
|
|
190
|
+
<TableRow key={name}>
|
|
191
|
+
<TableCell className="font-mono text-xs font-medium">
|
|
192
|
+
{name}
|
|
193
|
+
</TableCell>
|
|
194
|
+
<TableCell className="font-mono text-xs text-muted-foreground">
|
|
195
|
+
{type}
|
|
196
|
+
</TableCell>
|
|
197
|
+
<TableCell className="font-mono text-xs text-muted-foreground">
|
|
198
|
+
{defaultValue}
|
|
199
|
+
</TableCell>
|
|
200
|
+
<TableCell className="min-w-72 whitespace-normal text-muted-foreground">
|
|
201
|
+
{description}
|
|
202
|
+
</TableCell>
|
|
203
|
+
</TableRow>
|
|
204
|
+
))}
|
|
205
|
+
</TableBody>
|
|
206
|
+
</Table>
|
|
207
|
+
</Card>
|
|
208
|
+
);
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
function SectionTitle({
|
|
212
|
+
eyebrow,
|
|
213
|
+
title,
|
|
214
|
+
description,
|
|
215
|
+
}: {
|
|
216
|
+
eyebrow: string;
|
|
217
|
+
title: string;
|
|
218
|
+
description: string;
|
|
219
|
+
}) {
|
|
220
|
+
return (
|
|
221
|
+
<div>
|
|
222
|
+
<p className="text-xs font-semibold uppercase tracking-[0.16em] text-muted-foreground">
|
|
223
|
+
{eyebrow}
|
|
224
|
+
</p>
|
|
225
|
+
<h2 className="mt-2 text-xl font-semibold tracking-tight">{title}</h2>
|
|
226
|
+
<p className="mt-1.5 max-w-3xl text-sm leading-6 text-muted-foreground">
|
|
227
|
+
{description}
|
|
228
|
+
</p>
|
|
229
|
+
</div>
|
|
230
|
+
);
|
|
231
|
+
}
|