@arcadeai/design-system 3.33.2 → 3.34.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.
- package/dist/components/index.js +595 -567
- package/dist/components/ui/atoms/avatar-notification-badge.d.ts +34 -0
- package/dist/components/ui/atoms/avatar-notification-badge.d.ts.map +1 -0
- package/dist/components/ui/atoms/avatar-notification-badge.js +78 -0
- package/dist/components/ui/atoms/index.d.ts +3 -0
- package/dist/components/ui/atoms/index.d.ts.map +1 -1
- package/dist/components/ui/atoms/index.js +512 -504
- package/dist/components/ui/atoms/json-highlight.d.ts +60 -0
- package/dist/components/ui/atoms/json-highlight.d.ts.map +1 -0
- package/dist/components/ui/atoms/json-highlight.js +77 -0
- package/dist/components/ui/atoms/scroll-button.js +8 -8
- package/dist/components/ui/atoms/view-tools-control.d.ts +1 -1
- package/dist/components/ui/atoms/view-tools-control.d.ts.map +1 -1
- package/dist/components/ui/atoms/view-tools-control.js +20 -19
- package/dist/components/ui/index.js +595 -567
- package/dist/components/ui/molecules/chat-message-list.d.ts +5 -2
- package/dist/components/ui/molecules/chat-message-list.d.ts.map +1 -1
- package/dist/components/ui/molecules/chat-message-list.js +2 -2
- package/dist/components/ui/molecules/index.d.ts +8 -0
- package/dist/components/ui/molecules/index.d.ts.map +1 -1
- package/dist/components/ui/molecules/index.js +48 -28
- package/dist/components/ui/molecules/prompt-input.js +20 -20
- package/dist/components/ui/molecules/requirement-badges.js +8 -4
- package/dist/components/ui/molecules/switcher.d.ts +83 -0
- package/dist/components/ui/molecules/switcher.d.ts.map +1 -0
- package/dist/components/ui/molecules/switcher.js +164 -0
- package/dist/components/ui/molecules/tool-authorization.d.ts +56 -0
- package/dist/components/ui/molecules/tool-authorization.d.ts.map +1 -0
- package/dist/components/ui/molecules/tool-authorization.js +160 -0
- package/dist/components/ui/molecules/tool-call-accordion.d.ts +36 -0
- package/dist/components/ui/molecules/tool-call-accordion.d.ts.map +1 -0
- package/dist/components/ui/molecules/tool-call-accordion.js +301 -0
- package/dist/components/ui/molecules/toolkit-card.js +1 -1
- package/dist/components/ui/molecules/user-nav.d.ts +65 -0
- package/dist/components/ui/molecules/user-nav.d.ts.map +1 -0
- package/dist/components/ui/molecules/user-nav.js +154 -0
- package/dist/components/ui/pages/chat-page.d.ts +18 -10
- package/dist/components/ui/pages/chat-page.d.ts.map +1 -1
- package/dist/components/ui/pages/chat-page.js +328 -243
- package/dist/components/ui/templates/chat-template.d.ts +1 -1
- package/dist/components/ui/templates/chat-template.d.ts.map +1 -1
- package/dist/components/ui/templates/chat-template.js +11 -11
- package/dist/main.js +621 -593
- package/dist/{toolkit-card-k8jio69G.js → toolkit-card-DAgQXF93.js} +13 -10
- package/package.json +1 -1
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { ClassProp } from 'class-variance-authority/types';
|
|
2
|
+
export type AvatarNotificationBadgeVariant = "warning" | "success" | "error" | "info" | "neutral";
|
|
3
|
+
export type AvatarNotificationBadgePosition = "top-right" | "top-left" | "bottom-right" | "bottom-left";
|
|
4
|
+
export type AvatarNotificationBadgeSize = "sm" | "lg";
|
|
5
|
+
export type AvatarNotificationBadgeProps = {
|
|
6
|
+
/** Color variant. @default "warning" */
|
|
7
|
+
variant?: AvatarNotificationBadgeVariant;
|
|
8
|
+
/** Dot size — matches avatar size. @default "sm" */
|
|
9
|
+
size?: AvatarNotificationBadgeSize;
|
|
10
|
+
/** Corner to anchor the dot. @default "top-right" */
|
|
11
|
+
position?: AvatarNotificationBadgePosition;
|
|
12
|
+
/** Accessible label for meaningful status badges. Ignored when decorative. */
|
|
13
|
+
ariaLabel?: string;
|
|
14
|
+
/** Decorative badges should not be announced by assistive technology. @default true */
|
|
15
|
+
decorative?: boolean;
|
|
16
|
+
className?: string;
|
|
17
|
+
};
|
|
18
|
+
export declare const avatarBadgeVariants: (props?: ({
|
|
19
|
+
variant?: "warning" | "success" | "error" | "info" | "neutral" | null | undefined;
|
|
20
|
+
size?: "sm" | "lg" | null | undefined;
|
|
21
|
+
position?: "top-right" | "top-left" | "bottom-right" | "bottom-left" | null | undefined;
|
|
22
|
+
} & ClassProp) | undefined) => string;
|
|
23
|
+
/**
|
|
24
|
+
* Status/notification dot positioned over an avatar.
|
|
25
|
+
* Sized and colored via variants. Rendering is unconditional — the caller controls visibility.
|
|
26
|
+
*
|
|
27
|
+
* @example
|
|
28
|
+
* ```tsx
|
|
29
|
+
* // Show only when there are unread notifications
|
|
30
|
+
* {count > 0 && <AvatarNotificationBadge size="lg" variant="warning" />}
|
|
31
|
+
* ```
|
|
32
|
+
*/
|
|
33
|
+
export declare function AvatarNotificationBadge({ variant, size, position, ariaLabel, decorative, className, }: AvatarNotificationBadgeProps): import("react/jsx-runtime").JSX.Element;
|
|
34
|
+
//# sourceMappingURL=avatar-notification-badge.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"avatar-notification-badge.d.ts","sourceRoot":"","sources":["../../../../lib/components/ui/atoms/avatar-notification-badge.tsx"],"names":[],"mappings":";AAKA,MAAM,MAAM,8BAA8B,GACtC,SAAS,GACT,SAAS,GACT,OAAO,GACP,MAAM,GACN,SAAS,CAAC;AAEd,MAAM,MAAM,+BAA+B,GACvC,WAAW,GACX,UAAU,GACV,cAAc,GACd,aAAa,CAAC;AAElB,MAAM,MAAM,2BAA2B,GAAG,IAAI,GAAG,IAAI,CAAC;AAEtD,MAAM,MAAM,4BAA4B,GAAG;IACzC,wCAAwC;IACxC,OAAO,CAAC,EAAE,8BAA8B,CAAC;IACzC,oDAAoD;IACpD,IAAI,CAAC,EAAE,2BAA2B,CAAC;IACnC,qDAAqD;IACrD,QAAQ,CAAC,EAAE,+BAA+B,CAAC;IAC3C,8EAA8E;IAC9E,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,uFAAuF;IACvF,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC;AAIF,eAAO,MAAM,mBAAmB;;;;8EA0C/B,CAAC;AAYF;;;;;;;;;GASG;AACH,wBAAgB,uBAAuB,CAAC,EACtC,OAAmB,EACnB,IAAI,EACJ,QAAQ,EACR,SAAS,EACT,UAAiB,EACjB,SAAS,GACV,EAAE,4BAA4B,2CAe9B"}
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
import { jsx as i } from "react/jsx-runtime";
|
|
2
|
+
import { c as g } from "../../../index-UgeK3A8s.js";
|
|
3
|
+
import { cn as l } from "../../../lib/utils.js";
|
|
4
|
+
const c = g(
|
|
5
|
+
"absolute rounded-full ring-background",
|
|
6
|
+
{
|
|
7
|
+
variants: {
|
|
8
|
+
variant: {
|
|
9
|
+
warning: "bg-warning",
|
|
10
|
+
success: "bg-success",
|
|
11
|
+
error: "bg-destructive",
|
|
12
|
+
info: "bg-primary",
|
|
13
|
+
neutral: "bg-muted-foreground"
|
|
14
|
+
},
|
|
15
|
+
size: {
|
|
16
|
+
sm: "size-2 ring-1",
|
|
17
|
+
lg: "size-2.5 ring-2"
|
|
18
|
+
},
|
|
19
|
+
position: {
|
|
20
|
+
"top-right": "top-0 right-0",
|
|
21
|
+
"top-left": "top-0 left-0",
|
|
22
|
+
"bottom-right": "right-0 bottom-0",
|
|
23
|
+
"bottom-left": "bottom-0 left-0"
|
|
24
|
+
}
|
|
25
|
+
},
|
|
26
|
+
compoundVariants: [
|
|
27
|
+
{ size: "lg", position: "top-right", className: "-top-0.5 -right-0.5" },
|
|
28
|
+
{ size: "lg", position: "top-left", className: "-top-0.5 -left-0.5" },
|
|
29
|
+
{
|
|
30
|
+
size: "lg",
|
|
31
|
+
position: "bottom-right",
|
|
32
|
+
className: "-right-0.5 -bottom-0.5"
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
size: "lg",
|
|
36
|
+
position: "bottom-left",
|
|
37
|
+
className: "-bottom-0.5 -left-0.5"
|
|
38
|
+
}
|
|
39
|
+
],
|
|
40
|
+
defaultVariants: {
|
|
41
|
+
variant: "warning",
|
|
42
|
+
size: "sm",
|
|
43
|
+
position: "top-right"
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
), m = {
|
|
47
|
+
warning: "Warning notification",
|
|
48
|
+
success: "Success notification",
|
|
49
|
+
error: "Error notification",
|
|
50
|
+
info: "Info notification",
|
|
51
|
+
neutral: "Notification"
|
|
52
|
+
};
|
|
53
|
+
function b({
|
|
54
|
+
variant: o = "warning",
|
|
55
|
+
size: n,
|
|
56
|
+
position: r,
|
|
57
|
+
ariaLabel: a,
|
|
58
|
+
decorative: t = !0,
|
|
59
|
+
className: s
|
|
60
|
+
}) {
|
|
61
|
+
const e = a ?? m[o];
|
|
62
|
+
return /* @__PURE__ */ i(
|
|
63
|
+
"span",
|
|
64
|
+
{
|
|
65
|
+
"aria-hidden": t,
|
|
66
|
+
className: l(
|
|
67
|
+
c({ variant: o, size: n, position: r }),
|
|
68
|
+
s
|
|
69
|
+
),
|
|
70
|
+
role: t ? void 0 : "status",
|
|
71
|
+
children: !t && /* @__PURE__ */ i("span", { className: "sr-only", children: e })
|
|
72
|
+
}
|
|
73
|
+
);
|
|
74
|
+
}
|
|
75
|
+
export {
|
|
76
|
+
b as AvatarNotificationBadge,
|
|
77
|
+
c as avatarBadgeVariants
|
|
78
|
+
};
|
|
@@ -3,6 +3,7 @@ export * from './accordion';
|
|
|
3
3
|
export * from './alert';
|
|
4
4
|
export * from './alert-dialog';
|
|
5
5
|
export * from './avatar';
|
|
6
|
+
export * from './avatar-notification-badge';
|
|
6
7
|
export * from './badge';
|
|
7
8
|
export * from './breadcrumb';
|
|
8
9
|
export * from './button';
|
|
@@ -21,6 +22,7 @@ export * from './dropdown-menu';
|
|
|
21
22
|
export * from './hover-card';
|
|
22
23
|
export * from './icons';
|
|
23
24
|
export * from './input';
|
|
25
|
+
export * from './json-highlight';
|
|
24
26
|
export * from './label';
|
|
25
27
|
export * from './loader';
|
|
26
28
|
export * from './markdown';
|
|
@@ -45,5 +47,6 @@ export * from './tabs';
|
|
|
45
47
|
export * from './textarea';
|
|
46
48
|
export * from './toggle';
|
|
47
49
|
export * from './tooltip';
|
|
50
|
+
export * from './view-tools-control';
|
|
48
51
|
export * from './virtualized-grid';
|
|
49
52
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../lib/components/ui/atoms/index.ts"],"names":[],"mappings":"AAAA,+GAA+G;AAE/G,cAAc,aAAa,CAAC;AAC5B,cAAc,SAAS,CAAC;AACxB,cAAc,gBAAgB,CAAC;AAC/B,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,cAAc,CAAC;AAC7B,cAAc,UAAU,CAAC;AACzB,cAAc,cAAc,CAAC;AAC7B,cAAc,YAAY,CAAC;AAC3B,cAAc,QAAQ,CAAC;AACvB,cAAc,SAAS,CAAC;AACxB,cAAc,kBAAkB,CAAC;AACjC,cAAc,YAAY,CAAC;AAC3B,cAAc,cAAc,CAAC;AAC7B,cAAc,eAAe,CAAC;AAC9B,cAAc,WAAW,CAAC;AAC1B,cAAc,eAAe,CAAC;AAC9B,cAAc,UAAU,CAAC;AACzB,cAAc,iBAAiB,CAAC;AAChC,cAAc,cAAc,CAAC;AAC7B,cAAc,SAAS,CAAC;AACxB,cAAc,SAAS,CAAC;AACxB,cAAc,SAAS,CAAC;AACxB,cAAc,UAAU,CAAC;AACzB,cAAc,YAAY,CAAC;AAE3B,cAAc,kBAAkB,CAAC;AACjC,cAAc,WAAW,CAAC;AAC1B,cAAc,aAAa,CAAC;AAC5B,cAAc,YAAY,CAAC;AAE3B,cAAc,eAAe,CAAC;AAC9B,cAAc,aAAa,CAAC;AAC5B,cAAc,eAAe,CAAC;AAC9B,cAAc,iBAAiB,CAAC;AAChC,cAAc,UAAU,CAAC;AACzB,cAAc,aAAa,CAAC;AAC5B,cAAc,SAAS,CAAC;AACxB,cAAc,WAAW,CAAC;AAC1B,cAAc,YAAY,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