@vadimcomanescu/nadicode-design-system 2.0.6 → 2.0.7
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/.agents/skills/seed/contract.md +1 -0
- package/.agents/skills/seed/recipes/marketing-shell.md +10 -19
- package/.agents/skills/seed/recipes/navigation-shell.md +5 -5
- package/.agents/skills/seed/recipes/service-detail.md +1 -1
- package/.agents/skills/seed/references/blocks.md +25 -24
- package/.agents/skills/seed/references/brand-override.md +3 -1
- package/css/tokens.css +300 -122
- package/dist/catalog.json +1926 -125
- package/dist/chunk-2BADJLMV.js +117 -0
- package/dist/chunk-35EX5FP5.js +106 -0
- package/dist/chunk-5PORR6LE.js +60 -0
- package/dist/chunk-5PZ4VR2D.js +142 -0
- package/dist/chunk-5UESKK6S.js +76 -0
- package/dist/chunk-6N6CSJVE.js +269 -0
- package/dist/chunk-AURJQZC4.js +110 -0
- package/dist/{chunk-DF47R6LN.js → chunk-AWIG4QN6.js} +9 -9
- package/dist/chunk-AYWL4IYM.js +67 -0
- package/dist/{chunk-SV3KZ6CB.js → chunk-DSMGCFMJ.js} +7 -2
- package/dist/chunk-E4L6LR6P.js +33 -0
- package/dist/chunk-EJNF6JLL.js +105 -0
- package/dist/chunk-FX23F33E.js +57 -0
- package/dist/chunk-GJPTPLCQ.js +52 -0
- package/dist/chunk-GV4PKHG4.js +147 -0
- package/dist/chunk-HJ3A2YNO.js +163 -0
- package/dist/chunk-HJZRSPWB.js +38 -0
- package/dist/chunk-IDKZEPWK.js +133 -0
- package/dist/chunk-K7NQ6ZAW.js +84 -0
- package/dist/chunk-LCKLZ4XK.js +60 -0
- package/dist/chunk-MX5FUFQR.js +205 -0
- package/dist/chunk-NEHCPO53.js +44 -0
- package/dist/chunk-OHOOQUVJ.js +113 -0
- package/dist/chunk-QIHA7S3A.js +36 -0
- package/dist/chunk-RKQPU75I.js +126 -0
- package/dist/chunk-RMLS2QUC.js +77 -0
- package/dist/chunk-TS2JSPQR.js +120 -0
- package/dist/chunk-TUKZKU72.js +110 -0
- package/dist/chunk-TZXZFSD2.js +33 -0
- package/dist/chunk-UGV45DH3.js +18 -0
- package/dist/chunk-VBZQ4DBE.js +52 -0
- package/dist/{chunk-LQLFA2EL.js → chunk-VDONTZZX.js} +2 -2
- package/dist/{chunk-RWNJ54CI.js → chunk-VN475YZS.js} +1 -1
- package/dist/chunk-VZCB4APK.js +94 -0
- package/dist/chunk-W7FXDRQJ.js +94 -0
- package/dist/chunk-WAVU744B.js +183 -0
- package/dist/{chunk-5I3FWRC5.js → chunk-WOYBVPXK.js} +10 -10
- package/dist/chunk-WST5NLLC.js +73 -0
- package/dist/chunk-X6VXWEDO.js +125 -0
- package/dist/chunk-ZM2NODUK.js +39 -0
- package/dist/components/blocks/AccountLockedBlock.js +7 -57
- package/dist/components/blocks/ActivityFeedBlock.js +6 -39
- package/dist/components/blocks/AgentConversationBlock.js +5 -33
- package/dist/components/blocks/AudioVisualizerBlock.d.ts +1 -1
- package/dist/components/blocks/AudioVisualizerBlock.js +2 -2
- package/dist/components/blocks/AuthSuccessBlock.js +5 -60
- package/dist/components/blocks/BarChartBlock.d.ts +1 -1
- package/dist/components/blocks/BarChartBlock.js +2 -2
- package/dist/components/blocks/CallToActionBlock.d.ts +1 -1
- package/dist/components/blocks/CallToActionBlock.js +6 -52
- package/dist/components/blocks/ChangelogBlock.js +8 -105
- package/dist/components/blocks/ChartCollectionBlock.js +2 -2
- package/dist/components/blocks/CodeBlock.js +7 -60
- package/dist/components/blocks/ComparisonBlock.js +9 -94
- package/dist/components/blocks/ContactBlock.js +11 -120
- package/dist/components/blocks/FAQBlock.js +6 -44
- package/dist/components/blocks/FeatureBlock.d.ts +10 -14
- package/dist/components/blocks/FeatureBlock.js +17 -159
- package/dist/components/blocks/FeatureGridBlock.d.ts +1 -1
- package/dist/components/blocks/FeatureGridBlock.js +2 -2
- package/dist/components/blocks/FooterBlock.d.ts +2 -2
- package/dist/components/blocks/FooterBlock.js +11 -67
- package/dist/components/blocks/HeaderBlock.d.ts +2 -2
- package/dist/components/blocks/HeaderBlock.js +1 -1
- package/dist/components/blocks/HeatmapChartBlock.d.ts +1 -1
- package/dist/components/blocks/HeatmapChartBlock.js +1 -1
- package/dist/components/blocks/HeroBlock.d.ts +6 -3
- package/dist/components/blocks/HeroBlock.js +16 -199
- package/dist/components/blocks/HeroSectionBlock.d.ts +1 -1
- package/dist/components/blocks/HeroSectionBlock.js +4 -4
- package/dist/components/blocks/IntegrationsBlock.d.ts +1 -1
- package/dist/components/blocks/IntegrationsBlock.js +4 -4
- package/dist/components/blocks/InteractiveAreaChartBlock.d.ts +1 -1
- package/dist/components/blocks/InteractiveAreaChartBlock.js +2 -2
- package/dist/components/blocks/NewsletterBlock.js +11 -84
- package/dist/components/blocks/PasswordRecoveryBlock.js +14 -142
- package/dist/components/blocks/PricingBlock.d.ts +1 -1
- package/dist/components/blocks/PricingBlock.js +11 -110
- package/dist/components/blocks/ProcessFlowBlock.js +10 -77
- package/dist/components/blocks/ResetPasswordBlock.js +11 -125
- package/dist/components/blocks/SignUpBlock.d.ts +1 -1
- package/dist/components/blocks/SignUpBlock.js +2 -2
- package/dist/components/blocks/SocialProofBlock.d.ts +7 -11
- package/dist/components/blocks/SocialProofBlock.js +8 -107
- package/dist/components/blocks/StatsBlock.d.ts +1 -1
- package/dist/components/blocks/StatsBlock.js +2 -2
- package/dist/components/blocks/StatsMarketingBlock.d.ts +1 -1
- package/dist/components/blocks/StatsMarketingBlock.js +5 -36
- package/dist/components/blocks/TeamBlock.d.ts +1 -1
- package/dist/components/blocks/TeamBlock.js +4 -52
- package/dist/components/blocks/TestimonialsBlock.d.ts +1 -1
- package/dist/components/blocks/TestimonialsBlock.js +4 -133
- package/dist/components/blocks/TwoFactorChallengeBlock.js +9 -94
- package/dist/components/blocks/TwoFactorSetupBlock.js +16 -183
- package/dist/components/blocks/UsageDonutBlock.d.ts +1 -1
- package/dist/components/blocks/UsageDonutBlock.js +2 -2
- package/dist/components/logos/index.js +2 -2
- package/dist/components/page-kits/AccountLockedPageKit.d.ts +10 -0
- package/dist/components/page-kits/AccountLockedPageKit.js +48 -0
- package/dist/components/page-kits/AgentsChatPageKit.d.ts +46 -0
- package/dist/components/page-kits/AgentsChatPageKit.js +289 -0
- package/dist/components/page-kits/AnalyticsPageKit.d.ts +49 -0
- package/dist/components/page-kits/AnalyticsPageKit.js +277 -0
- package/dist/components/page-kits/BlogContentPageKit.d.ts +64 -0
- package/dist/components/page-kits/BlogContentPageKit.js +296 -0
- package/dist/components/page-kits/CheckoutPageKit.d.ts +36 -0
- package/dist/components/page-kits/CheckoutPageKit.js +209 -0
- package/dist/components/page-kits/CompanySuitePageKit.d.ts +25 -0
- package/dist/components/page-kits/CompanySuitePageKit.js +240 -0
- package/dist/components/page-kits/CrudFormPageKit.d.ts +54 -0
- package/dist/components/page-kits/CrudFormPageKit.js +138 -0
- package/dist/components/page-kits/CrudListDetailPageKit.d.ts +70 -0
- package/dist/components/page-kits/CrudListDetailPageKit.js +138 -0
- package/dist/components/page-kits/DashboardPageKit.d.ts +39 -0
- package/dist/components/page-kits/DashboardPageKit.js +284 -0
- package/dist/components/page-kits/ErrorPageKit.d.ts +22 -0
- package/dist/components/page-kits/ErrorPageKit.js +55 -0
- package/dist/components/page-kits/KanbanBoardPageKit.d.ts +31 -0
- package/dist/components/page-kits/KanbanBoardPageKit.js +305 -0
- package/dist/components/page-kits/LandingPageKit.d.ts +29 -0
- package/dist/components/page-kits/LandingPageKit.js +221 -0
- package/dist/components/page-kits/LoginPageKit.d.ts +16 -0
- package/dist/components/page-kits/LoginPageKit.js +43 -0
- package/dist/components/page-kits/MarketingShellPageKit.d.ts +21 -0
- package/dist/components/page-kits/MarketingShellPageKit.js +131 -0
- package/dist/components/page-kits/NavigationShellPageKit.d.ts +41 -0
- package/dist/components/page-kits/NavigationShellPageKit.js +132 -0
- package/dist/components/page-kits/OnboardingPageKit.d.ts +26 -0
- package/dist/components/page-kits/OnboardingPageKit.js +248 -0
- package/dist/components/page-kits/PricingPageKit.d.ts +41 -0
- package/dist/components/page-kits/PricingPageKit.js +279 -0
- package/dist/components/page-kits/ProfileSettingsPageKit.d.ts +50 -0
- package/dist/components/page-kits/ProfileSettingsPageKit.js +171 -0
- package/dist/components/page-kits/RecoveryPageKit.d.ts +17 -0
- package/dist/components/page-kits/RecoveryPageKit.js +58 -0
- package/dist/components/page-kits/ResetPageKit.d.ts +14 -0
- package/dist/components/page-kits/ResetPageKit.js +52 -0
- package/dist/components/page-kits/ServiceSuitePageKit.d.ts +25 -0
- package/dist/components/page-kits/ServiceSuitePageKit.js +320 -0
- package/dist/components/page-kits/SettingsPageKit.d.ts +27 -0
- package/dist/components/page-kits/SettingsPageKit.js +11 -0
- package/dist/components/page-kits/SignupPageKit.d.ts +15 -0
- package/dist/components/page-kits/SignupPageKit.js +41 -0
- package/dist/components/page-kits/SuccessPageKit.d.ts +15 -0
- package/dist/components/page-kits/SuccessPageKit.js +146 -0
- package/dist/components/page-kits/TeamSettingsPageKit.d.ts +50 -0
- package/dist/components/page-kits/TeamSettingsPageKit.js +297 -0
- package/dist/components/page-kits/TwoFactorPageKit.d.ts +16 -0
- package/dist/components/page-kits/TwoFactorPageKit.js +156 -0
- package/dist/components/page-kits/VerifyEmailPageKit.d.ts +15 -0
- package/dist/components/page-kits/VerifyEmailPageKit.js +146 -0
- package/dist/components/page-kits/VoiceAgentsPageKit.d.ts +35 -0
- package/dist/components/page-kits/VoiceAgentsPageKit.js +246 -0
- package/dist/components/ui/AudioWaveform.js +2 -76
- package/dist/components/ui/AvatarUpload.js +1 -1
- package/dist/components/ui/Breadcrumb.js +4 -106
- package/dist/components/ui/ChartCard.js +5 -38
- package/dist/components/ui/CheckoutFormDemo.js +5 -6
- package/dist/components/ui/DataFreshness.js +2 -73
- package/dist/components/ui/MouseEffect.js +1 -1
- package/dist/components/ui/NativeSelect.js +2 -18
- package/dist/components/ui/Pagination.js +6 -117
- package/dist/components/ui/ShaderBackground.js +2 -2
- package/dist/hooks/use-shader-preset.js +2 -2
- package/dist/lib/shader-presets.js +1 -1
- package/dist/lib/tokens.config.d.ts +19 -0
- package/package.json +792 -680
- package/scripts/ds-check.mjs +8 -0
- package/src/lib/tokens.config.js +63 -41
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { AccountLockedBlock } from "../blocks/AccountLockedBlock";
|
|
3
|
+
type AccountLockedBlockProps = React.ComponentProps<typeof AccountLockedBlock>;
|
|
4
|
+
export interface AccountLockedPageKitProps extends Omit<AccountLockedBlockProps, "className"> {
|
|
5
|
+
errorMessage?: React.ReactNode;
|
|
6
|
+
className?: string;
|
|
7
|
+
cardClassName?: string;
|
|
8
|
+
}
|
|
9
|
+
export declare function AccountLockedPageKit({ reason, unlockMinutes, onContactSupport, onBackToLogin, title, description, errorMessage, className, cardClassName, }: AccountLockedPageKitProps): import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { AccountLockedBlock } from '../../chunk-FX23F33E.js';
|
|
2
|
+
import '../../chunk-AH6YSYYT.js';
|
|
3
|
+
import '../../chunk-GJUR6HT3.js';
|
|
4
|
+
import '../../chunk-7KIDDF3I.js';
|
|
5
|
+
import '../../chunk-PD2YEH3H.js';
|
|
6
|
+
import '../../chunk-CRY67BIF.js';
|
|
7
|
+
import '../../chunk-HJC6U46F.js';
|
|
8
|
+
import '../../chunk-RYOTIXZO.js';
|
|
9
|
+
import '../../chunk-ASKFAYYR.js';
|
|
10
|
+
import { cn } from '../../chunk-QYZT24TS.js';
|
|
11
|
+
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
12
|
+
|
|
13
|
+
function AccountLockedPageKit({
|
|
14
|
+
reason = "too_many_attempts",
|
|
15
|
+
unlockMinutes,
|
|
16
|
+
onContactSupport,
|
|
17
|
+
onBackToLogin,
|
|
18
|
+
title,
|
|
19
|
+
description,
|
|
20
|
+
errorMessage,
|
|
21
|
+
className,
|
|
22
|
+
cardClassName
|
|
23
|
+
}) {
|
|
24
|
+
return /* @__PURE__ */ jsx("section", { className: cn("min-h-dvh w-full bg-background px-4 py-12 md:px-8 md:py-20", className), children: /* @__PURE__ */ jsxs("div", { className: "mx-auto flex w-full max-w-5xl flex-col items-center justify-center gap-4", children: [
|
|
25
|
+
errorMessage ? /* @__PURE__ */ jsx(
|
|
26
|
+
"div",
|
|
27
|
+
{
|
|
28
|
+
role: "alert",
|
|
29
|
+
className: "w-full max-w-sm rounded-md border border-destructive/40 bg-destructive/10 px-4 py-3 text-sm text-destructive",
|
|
30
|
+
children: errorMessage
|
|
31
|
+
}
|
|
32
|
+
) : null,
|
|
33
|
+
/* @__PURE__ */ jsx(
|
|
34
|
+
AccountLockedBlock,
|
|
35
|
+
{
|
|
36
|
+
className: cn("w-full", cardClassName),
|
|
37
|
+
reason,
|
|
38
|
+
unlockMinutes,
|
|
39
|
+
onContactSupport,
|
|
40
|
+
onBackToLogin,
|
|
41
|
+
title,
|
|
42
|
+
description
|
|
43
|
+
}
|
|
44
|
+
)
|
|
45
|
+
] }) });
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
export { AccountLockedPageKit };
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { type ConversationMessage } from "../blocks/AgentConversationBlock";
|
|
2
|
+
import { type NavigationShellPageKitProps } from "./NavigationShellPageKit";
|
|
3
|
+
export type AgentsChatPageKitState = "empty" | "loading" | "thinking" | "blocked-approval" | "failed" | "running" | "complete";
|
|
4
|
+
export interface AgentsChatPageKitToolCall {
|
|
5
|
+
id: string;
|
|
6
|
+
toolName: string;
|
|
7
|
+
status: "pending" | "running" | "complete" | "error";
|
|
8
|
+
result?: string;
|
|
9
|
+
durationMs?: number;
|
|
10
|
+
}
|
|
11
|
+
export interface AgentsChatPageKitArtifact {
|
|
12
|
+
id: string;
|
|
13
|
+
title: string;
|
|
14
|
+
kind: "diff" | "file" | "log" | "report";
|
|
15
|
+
summary: string;
|
|
16
|
+
}
|
|
17
|
+
export interface AgentsChatPageKitTraceEvent {
|
|
18
|
+
id: string;
|
|
19
|
+
label: string;
|
|
20
|
+
detail: string;
|
|
21
|
+
}
|
|
22
|
+
export interface AgentsChatPageKitApproval {
|
|
23
|
+
pendingReason: string;
|
|
24
|
+
onApprove: () => void;
|
|
25
|
+
onReject: () => void;
|
|
26
|
+
}
|
|
27
|
+
export interface AgentsChatPageKitComposer {
|
|
28
|
+
value?: string;
|
|
29
|
+
placeholder?: string;
|
|
30
|
+
disabled?: boolean;
|
|
31
|
+
onChange?: (value: string) => void;
|
|
32
|
+
onSend?: (value: string) => void;
|
|
33
|
+
}
|
|
34
|
+
export interface AgentsChatPageKitProps {
|
|
35
|
+
shell: Omit<NavigationShellPageKitProps, "children">;
|
|
36
|
+
state?: AgentsChatPageKitState;
|
|
37
|
+
messages?: ConversationMessage[];
|
|
38
|
+
toolCalls?: AgentsChatPageKitToolCall[];
|
|
39
|
+
artifacts?: AgentsChatPageKitArtifact[];
|
|
40
|
+
traceEvents?: AgentsChatPageKitTraceEvent[];
|
|
41
|
+
approval?: AgentsChatPageKitApproval;
|
|
42
|
+
composer?: AgentsChatPageKitComposer;
|
|
43
|
+
errorMessage?: string;
|
|
44
|
+
className?: string;
|
|
45
|
+
}
|
|
46
|
+
export declare function AgentsChatPageKit({ shell, state, messages, toolCalls, artifacts, traceEvents, approval, composer, errorMessage, className, }: AgentsChatPageKitProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,289 @@
|
|
|
1
|
+
import { NavigationShellPageKit } from '../../chunk-TUKZKU72.js';
|
|
2
|
+
import { AgentConversationBlock } from '../../chunk-TZXZFSD2.js';
|
|
3
|
+
import '../../chunk-MLUSJTS2.js';
|
|
4
|
+
import { Typography } from '../../chunk-N53OMWW2.js';
|
|
5
|
+
import { Textarea } from '../../chunk-4OBE2FS2.js';
|
|
6
|
+
import '../../chunk-ZHTQF2KI.js';
|
|
7
|
+
import '../../chunk-4HRVRW2X.js';
|
|
8
|
+
import '../../chunk-C4SNHMYC.js';
|
|
9
|
+
import '../../chunk-MJ4CB6ZL.js';
|
|
10
|
+
import '../../chunk-B5QL76GA.js';
|
|
11
|
+
import '../../chunk-HOWTYZL5.js';
|
|
12
|
+
import { Heading } from '../../chunk-WI547C47.js';
|
|
13
|
+
import '../../chunk-RASEB2XI.js';
|
|
14
|
+
import '../../chunk-CUZJIDU7.js';
|
|
15
|
+
import '../../chunk-AP3XXYAY.js';
|
|
16
|
+
import '../../chunk-LIBXYD5Q.js';
|
|
17
|
+
import '../../chunk-35EX5FP5.js';
|
|
18
|
+
import { Card, CardHeader, CardTitle, CardContent } from '../../chunk-AH6YSYYT.js';
|
|
19
|
+
import '../../chunk-NAAU5IWU.js';
|
|
20
|
+
import { Button } from '../../chunk-7KIDDF3I.js';
|
|
21
|
+
import '../../chunk-6FOHUNXR.js';
|
|
22
|
+
import '../../chunk-PD2YEH3H.js';
|
|
23
|
+
import '../../chunk-CRY67BIF.js';
|
|
24
|
+
import '../../chunk-HJC6U46F.js';
|
|
25
|
+
import '../../chunk-AUSYEAIJ.js';
|
|
26
|
+
import '../../chunk-GO35FTNJ.js';
|
|
27
|
+
import '../../chunk-PSVQ7ZNX.js';
|
|
28
|
+
import '../../chunk-FLF5AMNO.js';
|
|
29
|
+
import '../../chunk-WFJQ43SM.js';
|
|
30
|
+
import '../../chunk-S4GKGKON.js';
|
|
31
|
+
import '../../chunk-LCDDAE7J.js';
|
|
32
|
+
import '../../chunk-R674XI7C.js';
|
|
33
|
+
import '../../chunk-WUO7OONN.js';
|
|
34
|
+
import '../../chunk-BPCCTJSK.js';
|
|
35
|
+
import '../../chunk-CGUCH322.js';
|
|
36
|
+
import '../../chunk-ELKIUARM.js';
|
|
37
|
+
import '../../chunk-ZU2GYVAP.js';
|
|
38
|
+
import '../../chunk-KSHJQ2VT.js';
|
|
39
|
+
import '../../chunk-3CLXYQKB.js';
|
|
40
|
+
import '../../chunk-JHQ5NMLZ.js';
|
|
41
|
+
import '../../chunk-CRZ2JE24.js';
|
|
42
|
+
import '../../chunk-TXGANOAX.js';
|
|
43
|
+
import '../../chunk-OITJWGFV.js';
|
|
44
|
+
import '../../chunk-Z74D6D2W.js';
|
|
45
|
+
import '../../chunk-HNY45VUQ.js';
|
|
46
|
+
import '../../chunk-IJJI4RQU.js';
|
|
47
|
+
import '../../chunk-E7RBK6ML.js';
|
|
48
|
+
import '../../chunk-UBIGDGOP.js';
|
|
49
|
+
import '../../chunk-Q7LVUGFL.js';
|
|
50
|
+
import '../../chunk-ALMGJVMT.js';
|
|
51
|
+
import '../../chunk-QPXTBZWN.js';
|
|
52
|
+
import '../../chunk-GAKU7DFY.js';
|
|
53
|
+
import '../../chunk-T6BRD7TS.js';
|
|
54
|
+
import '../../chunk-R5XP45PD.js';
|
|
55
|
+
import '../../chunk-G5EO5FWC.js';
|
|
56
|
+
import '../../chunk-NCULQXJE.js';
|
|
57
|
+
import '../../chunk-VDYPDMYR.js';
|
|
58
|
+
import '../../chunk-WDGIQDQG.js';
|
|
59
|
+
import '../../chunk-WKRIKCJC.js';
|
|
60
|
+
import '../../chunk-7WDT2PRI.js';
|
|
61
|
+
import '../../chunk-AP5Y5M3R.js';
|
|
62
|
+
import '../../chunk-JZ4G2SJH.js';
|
|
63
|
+
import '../../chunk-KYGKJ553.js';
|
|
64
|
+
import '../../chunk-M7YSMMAC.js';
|
|
65
|
+
import '../../chunk-XQ2UDMPO.js';
|
|
66
|
+
import '../../chunk-JMCSAGZ3.js';
|
|
67
|
+
import '../../chunk-QUKDUSHD.js';
|
|
68
|
+
import '../../chunk-4NXZIMYZ.js';
|
|
69
|
+
import '../../chunk-TBKJ34BB.js';
|
|
70
|
+
import '../../chunk-2IZC7HSV.js';
|
|
71
|
+
import '../../chunk-2SDZMTB2.js';
|
|
72
|
+
import '../../chunk-R3AO6AZM.js';
|
|
73
|
+
import '../../chunk-RYOTIXZO.js';
|
|
74
|
+
import '../../chunk-W3B3UOEG.js';
|
|
75
|
+
import '../../chunk-ACRVOD7W.js';
|
|
76
|
+
import '../../chunk-QSU23VYZ.js';
|
|
77
|
+
import '../../chunk-BJYCQ2NV.js';
|
|
78
|
+
import '../../chunk-VM462WZC.js';
|
|
79
|
+
import '../../chunk-O74AEVHW.js';
|
|
80
|
+
import '../../chunk-ZUHIWALK.js';
|
|
81
|
+
import '../../chunk-5UZDOF6V.js';
|
|
82
|
+
import '../../chunk-PKVTEDKO.js';
|
|
83
|
+
import '../../chunk-I3TH7PIB.js';
|
|
84
|
+
import '../../chunk-WGPK3FQ7.js';
|
|
85
|
+
import '../../chunk-JL4MVVFH.js';
|
|
86
|
+
import '../../chunk-IQEBXXB5.js';
|
|
87
|
+
import '../../chunk-AZUJNRQU.js';
|
|
88
|
+
import '../../chunk-WA45EC4Y.js';
|
|
89
|
+
import '../../chunk-2MOEOEOI.js';
|
|
90
|
+
import '../../chunk-5LCXASRW.js';
|
|
91
|
+
import '../../chunk-2ZJVU7NV.js';
|
|
92
|
+
import '../../chunk-5ESF6N36.js';
|
|
93
|
+
import '../../chunk-RBPLOM3A.js';
|
|
94
|
+
import '../../chunk-GCUTJI7M.js';
|
|
95
|
+
import '../../chunk-2NT57K4U.js';
|
|
96
|
+
import '../../chunk-6G3RRWJT.js';
|
|
97
|
+
import '../../chunk-JRJGSNI4.js';
|
|
98
|
+
import '../../chunk-RF6ECFS5.js';
|
|
99
|
+
import '../../chunk-TV4RSQH4.js';
|
|
100
|
+
import '../../chunk-4FEAWXJD.js';
|
|
101
|
+
import '../../chunk-JHQTKMKG.js';
|
|
102
|
+
import '../../chunk-CI7GPGCJ.js';
|
|
103
|
+
import '../../chunk-226EBOTK.js';
|
|
104
|
+
import '../../chunk-G5YLGJXR.js';
|
|
105
|
+
import '../../chunk-G24VV5NO.js';
|
|
106
|
+
import '../../chunk-6BAV4TZ5.js';
|
|
107
|
+
import '../../chunk-SW6QPJM4.js';
|
|
108
|
+
import '../../chunk-V6WNRZT3.js';
|
|
109
|
+
import '../../chunk-JBK2LA6U.js';
|
|
110
|
+
import '../../chunk-55U27XY4.js';
|
|
111
|
+
import '../../chunk-LSPO6OBI.js';
|
|
112
|
+
import '../../chunk-Y56WBNCY.js';
|
|
113
|
+
import '../../chunk-KYZT3RNW.js';
|
|
114
|
+
import '../../chunk-UEG2LI7Z.js';
|
|
115
|
+
import '../../chunk-JJTQOH7J.js';
|
|
116
|
+
import '../../chunk-72X6SXOX.js';
|
|
117
|
+
import '../../chunk-SR5U52V3.js';
|
|
118
|
+
import '../../chunk-74RKVIBV.js';
|
|
119
|
+
import '../../chunk-AWIJHDNK.js';
|
|
120
|
+
import '../../chunk-BRP6D56U.js';
|
|
121
|
+
import '../../chunk-S733NAYS.js';
|
|
122
|
+
import '../../chunk-MAUTIHQG.js';
|
|
123
|
+
import '../../chunk-666N6OTL.js';
|
|
124
|
+
import '../../chunk-FMH55OKV.js';
|
|
125
|
+
import '../../chunk-WXVNTJIB.js';
|
|
126
|
+
import '../../chunk-CXACRCZ4.js';
|
|
127
|
+
import '../../chunk-T7H53CK2.js';
|
|
128
|
+
import '../../chunk-BFLN54VR.js';
|
|
129
|
+
import '../../chunk-P6IRHPFM.js';
|
|
130
|
+
import '../../chunk-SXHYB7JB.js';
|
|
131
|
+
import '../../chunk-ONGJ7AC2.js';
|
|
132
|
+
import '../../chunk-UHXGBV5N.js';
|
|
133
|
+
import '../../chunk-UIUMTURU.js';
|
|
134
|
+
import '../../chunk-PRUXIDBD.js';
|
|
135
|
+
import '../../chunk-NURPUVUV.js';
|
|
136
|
+
import { Badge } from '../../chunk-S4JAHKOP.js';
|
|
137
|
+
import '../../chunk-HJBXUXTD.js';
|
|
138
|
+
import '../../chunk-ASKFAYYR.js';
|
|
139
|
+
import { cn } from '../../chunk-QYZT24TS.js';
|
|
140
|
+
import React from 'react';
|
|
141
|
+
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
142
|
+
|
|
143
|
+
var EMPTY_MESSAGES = [];
|
|
144
|
+
var EMPTY_TOOL_CALLS = [];
|
|
145
|
+
var EMPTY_ARTIFACTS = [];
|
|
146
|
+
var EMPTY_TRACE_EVENTS = [];
|
|
147
|
+
function stateLabel(state) {
|
|
148
|
+
switch (state) {
|
|
149
|
+
case "empty":
|
|
150
|
+
return "Empty";
|
|
151
|
+
case "loading":
|
|
152
|
+
return "Loading";
|
|
153
|
+
case "thinking":
|
|
154
|
+
return "Thinking";
|
|
155
|
+
case "blocked-approval":
|
|
156
|
+
return "Blocked on approval";
|
|
157
|
+
case "failed":
|
|
158
|
+
return "Failed";
|
|
159
|
+
case "running":
|
|
160
|
+
return "Running";
|
|
161
|
+
case "complete":
|
|
162
|
+
return "Complete";
|
|
163
|
+
default:
|
|
164
|
+
return "Running";
|
|
165
|
+
}
|
|
166
|
+
}
|
|
167
|
+
function placeholderContent(state) {
|
|
168
|
+
switch (state) {
|
|
169
|
+
case "empty":
|
|
170
|
+
return "No messages yet. Start the run from the composer.";
|
|
171
|
+
case "loading":
|
|
172
|
+
return "Loading run context...";
|
|
173
|
+
case "thinking":
|
|
174
|
+
return "Agent is thinking through the next step.";
|
|
175
|
+
default:
|
|
176
|
+
return "Waiting for conversation updates.";
|
|
177
|
+
}
|
|
178
|
+
}
|
|
179
|
+
function AgentsChatPageKit({
|
|
180
|
+
shell,
|
|
181
|
+
state = "running",
|
|
182
|
+
messages = EMPTY_MESSAGES,
|
|
183
|
+
toolCalls = EMPTY_TOOL_CALLS,
|
|
184
|
+
artifacts = EMPTY_ARTIFACTS,
|
|
185
|
+
traceEvents = EMPTY_TRACE_EVENTS,
|
|
186
|
+
approval,
|
|
187
|
+
composer,
|
|
188
|
+
errorMessage,
|
|
189
|
+
className
|
|
190
|
+
}) {
|
|
191
|
+
const [draft, setDraft] = React.useState(() => composer?.value ?? "");
|
|
192
|
+
const composerValue = composer?.value ?? draft;
|
|
193
|
+
const composerPlaceholder = composer?.placeholder ?? "Type a message to the active run...";
|
|
194
|
+
const composerDisabled = composer?.disabled ?? false;
|
|
195
|
+
function handleComposerChange(value) {
|
|
196
|
+
if (composer?.value == null) {
|
|
197
|
+
setDraft(value);
|
|
198
|
+
}
|
|
199
|
+
composer?.onChange?.(value);
|
|
200
|
+
}
|
|
201
|
+
function handleComposerSend() {
|
|
202
|
+
const payload = composerValue.trim();
|
|
203
|
+
if (!payload || composerDisabled) {
|
|
204
|
+
return;
|
|
205
|
+
}
|
|
206
|
+
composer?.onSend?.(payload);
|
|
207
|
+
if (composer?.value == null) {
|
|
208
|
+
setDraft("");
|
|
209
|
+
}
|
|
210
|
+
}
|
|
211
|
+
const conversationMessages = messages.length > 0 ? messages : [{
|
|
212
|
+
id: "state-placeholder",
|
|
213
|
+
role: "system",
|
|
214
|
+
content: placeholderContent(state)
|
|
215
|
+
}];
|
|
216
|
+
return /* @__PURE__ */ jsx(NavigationShellPageKit, { ...shell, children: /* @__PURE__ */ jsxs("section", { className: cn("space-y-6", className), children: [
|
|
217
|
+
/* @__PURE__ */ jsxs("header", { className: "space-y-2", children: [
|
|
218
|
+
/* @__PURE__ */ jsx(Heading, { level: 3, children: "Agents chat" }),
|
|
219
|
+
/* @__PURE__ */ jsx(Typography, { variant: "muted", children: "Conversation-driven agent workflow surface with explicit tooling and traceability layers." }),
|
|
220
|
+
/* @__PURE__ */ jsx("div", { className: "flex flex-wrap items-center gap-2", children: /* @__PURE__ */ jsx(Badge, { variant: state === "failed" ? "destructive" : "outline", children: stateLabel(state) }) })
|
|
221
|
+
] }),
|
|
222
|
+
state === "failed" ? /* @__PURE__ */ jsx("div", { role: "alert", className: "rounded-md border border-destructive/40 bg-destructive/10 px-4 py-3 text-sm text-destructive", children: errorMessage ?? "The run failed. Inspect tooling and traceability details before retrying." }) : null,
|
|
223
|
+
state === "blocked-approval" && approval ? /* @__PURE__ */ jsxs(Card, { children: [
|
|
224
|
+
/* @__PURE__ */ jsx(CardHeader, { children: /* @__PURE__ */ jsx(CardTitle, { children: "Approval required" }) }),
|
|
225
|
+
/* @__PURE__ */ jsxs(CardContent, { className: "space-y-3", children: [
|
|
226
|
+
/* @__PURE__ */ jsx(Typography, { variant: "small", children: approval.pendingReason }),
|
|
227
|
+
/* @__PURE__ */ jsxs("div", { className: "flex flex-wrap gap-2", children: [
|
|
228
|
+
/* @__PURE__ */ jsx(Button, { type: "button", onClick: approval.onApprove, children: "Approve run" }),
|
|
229
|
+
/* @__PURE__ */ jsx(Button, { type: "button", variant: "outline", onClick: approval.onReject, children: "Reject run" })
|
|
230
|
+
] })
|
|
231
|
+
] })
|
|
232
|
+
] }) : null,
|
|
233
|
+
/* @__PURE__ */ jsxs("div", { className: "grid gap-4 xl:grid-cols-[minmax(0,1.4fr)_minmax(0,1fr)]", children: [
|
|
234
|
+
/* @__PURE__ */ jsxs(Card, { children: [
|
|
235
|
+
/* @__PURE__ */ jsx(CardHeader, { children: /* @__PURE__ */ jsx(CardTitle, { children: "Conversation" }) }),
|
|
236
|
+
/* @__PURE__ */ jsxs(CardContent, { className: "space-y-4", children: [
|
|
237
|
+
/* @__PURE__ */ jsx(AgentConversationBlock, { messages: conversationMessages }),
|
|
238
|
+
/* @__PURE__ */ jsxs("div", { className: "space-y-2", children: [
|
|
239
|
+
/* @__PURE__ */ jsx("label", { htmlFor: "agents-chat-composer", className: "text-sm font-medium text-text-primary", children: "Message composer" }),
|
|
240
|
+
/* @__PURE__ */ jsx(
|
|
241
|
+
Textarea,
|
|
242
|
+
{
|
|
243
|
+
id: "agents-chat-composer",
|
|
244
|
+
value: composerValue,
|
|
245
|
+
disabled: composerDisabled,
|
|
246
|
+
placeholder: composerPlaceholder,
|
|
247
|
+
onChange: (event) => handleComposerChange(event.target.value)
|
|
248
|
+
}
|
|
249
|
+
),
|
|
250
|
+
/* @__PURE__ */ jsx("div", { className: "flex justify-end", children: /* @__PURE__ */ jsx(Button, { type: "button", onClick: handleComposerSend, disabled: composerDisabled || composerValue.trim().length === 0, children: "Send message" }) })
|
|
251
|
+
] })
|
|
252
|
+
] })
|
|
253
|
+
] }),
|
|
254
|
+
/* @__PURE__ */ jsxs("div", { className: "space-y-4", children: [
|
|
255
|
+
/* @__PURE__ */ jsxs(Card, { children: [
|
|
256
|
+
/* @__PURE__ */ jsx(CardHeader, { children: /* @__PURE__ */ jsx(CardTitle, { children: "Tooling" }) }),
|
|
257
|
+
/* @__PURE__ */ jsx(CardContent, { className: "space-y-3", children: toolCalls.length === 0 ? /* @__PURE__ */ jsx(Typography, { variant: "small", className: "text-text-secondary", children: "No tool calls yet." }) : toolCalls.map((toolCall) => /* @__PURE__ */ jsxs("div", { className: "rounded-md border border-border/70 p-3", children: [
|
|
258
|
+
/* @__PURE__ */ jsxs("div", { className: "flex items-center justify-between gap-2", children: [
|
|
259
|
+
/* @__PURE__ */ jsx(Typography, { variant: "small", className: "font-medium text-text-primary", children: toolCall.toolName }),
|
|
260
|
+
/* @__PURE__ */ jsx(Badge, { variant: toolCall.status === "error" ? "destructive" : "outline", children: toolCall.status })
|
|
261
|
+
] }),
|
|
262
|
+
toolCall.result ? /* @__PURE__ */ jsx(Typography, { variant: "small", className: "mt-1 text-text-secondary", children: toolCall.result }) : null,
|
|
263
|
+
typeof toolCall.durationMs === "number" ? /* @__PURE__ */ jsxs(Typography, { variant: "small", className: "mt-1 text-text-tertiary", children: [
|
|
264
|
+
toolCall.durationMs,
|
|
265
|
+
"ms"
|
|
266
|
+
] }) : null
|
|
267
|
+
] }, toolCall.id)) })
|
|
268
|
+
] }),
|
|
269
|
+
/* @__PURE__ */ jsxs(Card, { children: [
|
|
270
|
+
/* @__PURE__ */ jsx(CardHeader, { children: /* @__PURE__ */ jsx(CardTitle, { children: "Traceability" }) }),
|
|
271
|
+
/* @__PURE__ */ jsxs(CardContent, { className: "space-y-3", children: [
|
|
272
|
+
artifacts.length === 0 && traceEvents.length === 0 ? /* @__PURE__ */ jsx(Typography, { variant: "small", className: "text-text-secondary", children: "No artifacts or trace events recorded yet." }) : null,
|
|
273
|
+
artifacts.map((artifact) => /* @__PURE__ */ jsxs("div", { className: "rounded-md border border-border/70 p-3", children: [
|
|
274
|
+
/* @__PURE__ */ jsx(Typography, { variant: "small", className: "font-medium text-text-primary", children: artifact.title }),
|
|
275
|
+
/* @__PURE__ */ jsx(Typography, { variant: "small", className: "text-text-tertiary uppercase tracking-wide", children: artifact.kind }),
|
|
276
|
+
/* @__PURE__ */ jsx(Typography, { variant: "small", className: "mt-1 text-text-secondary", children: artifact.summary })
|
|
277
|
+
] }, artifact.id)),
|
|
278
|
+
traceEvents.map((event) => /* @__PURE__ */ jsxs("div", { className: "rounded-md border border-border/70 p-3", children: [
|
|
279
|
+
/* @__PURE__ */ jsx(Typography, { variant: "small", className: "font-medium text-text-primary", children: event.label }),
|
|
280
|
+
/* @__PURE__ */ jsx(Typography, { variant: "small", className: "mt-1 text-text-secondary", children: event.detail })
|
|
281
|
+
] }, event.id))
|
|
282
|
+
] })
|
|
283
|
+
] })
|
|
284
|
+
] })
|
|
285
|
+
] })
|
|
286
|
+
] }) });
|
|
287
|
+
}
|
|
288
|
+
|
|
289
|
+
export { AgentsChatPageKit };
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { type NavigationShellPageKitProps } from "./NavigationShellPageKit";
|
|
3
|
+
export type AnalyticsPageKitRegionState = "loading" | "empty" | "error" | "filtered" | "has-data" | "partial-data";
|
|
4
|
+
export interface AnalyticsPageKitFilterOption {
|
|
5
|
+
value: string;
|
|
6
|
+
label: string;
|
|
7
|
+
}
|
|
8
|
+
export interface AnalyticsPageKitFilter {
|
|
9
|
+
id: string;
|
|
10
|
+
label: string;
|
|
11
|
+
value: string;
|
|
12
|
+
options: AnalyticsPageKitFilterOption[];
|
|
13
|
+
onChange?: (value: string) => void;
|
|
14
|
+
}
|
|
15
|
+
export interface AnalyticsPageKitChartRegion {
|
|
16
|
+
id: string;
|
|
17
|
+
title: string;
|
|
18
|
+
description?: string;
|
|
19
|
+
data: unknown[];
|
|
20
|
+
chart: React.ReactNode;
|
|
21
|
+
state?: AnalyticsPageKitRegionState;
|
|
22
|
+
emptyTitle?: string;
|
|
23
|
+
emptyDescription?: string;
|
|
24
|
+
errorMessage?: string;
|
|
25
|
+
className?: string;
|
|
26
|
+
}
|
|
27
|
+
export interface AnalyticsPageKitGridRegion {
|
|
28
|
+
id: string;
|
|
29
|
+
title: string;
|
|
30
|
+
description?: string;
|
|
31
|
+
columns: string[];
|
|
32
|
+
rows: Array<Record<string, React.ReactNode>>;
|
|
33
|
+
state?: AnalyticsPageKitRegionState;
|
|
34
|
+
emptyTitle?: string;
|
|
35
|
+
emptyDescription?: string;
|
|
36
|
+
errorMessage?: string;
|
|
37
|
+
}
|
|
38
|
+
export interface AnalyticsPageKitProps {
|
|
39
|
+
shell: Omit<NavigationShellPageKitProps, "children">;
|
|
40
|
+
title?: string;
|
|
41
|
+
description?: string;
|
|
42
|
+
filters: AnalyticsPageKitFilter[];
|
|
43
|
+
chartRegions: AnalyticsPageKitChartRegion[];
|
|
44
|
+
gridRegions: AnalyticsPageKitGridRegion[];
|
|
45
|
+
comparisonLabel?: string;
|
|
46
|
+
onResetFilters?: () => void;
|
|
47
|
+
className?: string;
|
|
48
|
+
}
|
|
49
|
+
export declare function AnalyticsPageKit({ shell, title, description, filters, chartRegions, gridRegions, comparisonLabel, onResetFilters, className, }: AnalyticsPageKitProps): import("react/jsx-runtime").JSX.Element;
|