@calliopelabs/ui 0.13.0 → 0.16.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/README.md +192 -4
- package/dist/agent/AgentChat.d.ts +63 -0
- package/dist/agent/AgentChat.js +117 -0
- package/dist/agent/AgentLauncher.d.ts +25 -0
- package/dist/agent/AgentLauncher.js +25 -0
- package/dist/agent/AgentProvider.d.ts +82 -0
- package/dist/agent/AgentProvider.js +176 -0
- package/dist/agent/CalliopeAgent.d.ts +43 -0
- package/dist/agent/CalliopeAgent.js +111 -0
- package/dist/agent/WorkflowRenderers.d.ts +61 -0
- package/dist/agent/WorkflowRenderers.js +102 -0
- package/dist/agent/controller.d.ts +167 -0
- package/dist/agent/controller.js +496 -0
- package/dist/agent/copilotkit/CopilotKitAgentProvider.d.ts +41 -0
- package/dist/agent/copilotkit/CopilotKitAgentProvider.js +145 -0
- package/dist/agent/copilotkit/index.d.ts +6 -0
- package/dist/agent/copilotkit/index.js +6 -0
- package/dist/agent/engine.d.ts +41 -0
- package/dist/agent/engine.js +93 -0
- package/dist/agent/index.d.ts +17 -0
- package/dist/agent/index.js +17 -0
- package/dist/agent/mock.d.ts +56 -0
- package/dist/agent/mock.js +143 -0
- package/dist/agent/renderers.d.ts +49 -0
- package/dist/agent/renderers.js +27 -0
- package/dist/agent/surface.d.ts +30 -0
- package/dist/agent/surface.js +90 -0
- package/dist/agent/tool.d.ts +98 -0
- package/dist/agent/tool.js +81 -0
- package/dist/appearance/brands.d.ts +31 -12
- package/dist/appearance/brands.js +32 -51
- package/dist/chat/AgentProgress.d.ts +19 -0
- package/dist/chat/AgentProgress.js +34 -0
- package/dist/chat/Composer.d.ts +31 -0
- package/dist/chat/Composer.js +44 -0
- package/dist/chat/MessageBubble.d.ts +23 -0
- package/dist/chat/MessageBubble.js +26 -0
- package/dist/chat/MessageList.d.ts +43 -0
- package/dist/chat/MessageList.js +71 -0
- package/dist/chat/ModelPicker.d.ts +17 -0
- package/dist/chat/ModelPicker.js +13 -0
- package/dist/chat/ToolCallCard.d.ts +27 -0
- package/dist/chat/ToolCallCard.js +52 -0
- package/dist/chat/model.d.ts +123 -0
- package/dist/chat/model.js +337 -0
- package/dist/chat/patch.d.ts +12 -0
- package/dist/chat/patch.js +149 -0
- package/dist/chat/useAgUiRun.d.ts +52 -0
- package/dist/chat/useAgUiRun.js +137 -0
- package/dist/css/appearance.js +1 -1
- package/dist/css/calliope.css +5 -0
- package/dist/css/tokens.css +5 -0
- package/dist/index.d.ts +15 -1
- package/dist/index.js +16 -1
- package/dist/primitives/Badge.d.ts +14 -0
- package/dist/primitives/Badge.js +25 -0
- package/dist/primitives/Button.d.ts +1 -1
- package/dist/primitives/ContextMenu.d.ts +18 -0
- package/dist/primitives/ContextMenu.js +34 -0
- package/dist/primitives/ScrollArea.d.ts +16 -0
- package/dist/primitives/ScrollArea.js +11 -0
- package/dist/primitives/Toast.d.ts +37 -0
- package/dist/primitives/Toast.js +43 -0
- package/dist/primitives/Tooltip.d.ts +16 -0
- package/dist/primitives/Tooltip.js +26 -0
- package/dist/provider/messages.d.ts +135 -0
- package/dist/provider/messages.js +131 -0
- package/dist/theme/css-layer.js +2 -1
- package/dist/theme/mappings/palette.d.ts +52 -0
- package/dist/theme/mappings/palette.js +208 -0
- package/dist/theme/mappings/render.d.ts +9 -0
- package/dist/theme/mappings/render.js +520 -0
- package/dist/theme/mappings/targets.d.ts +43 -0
- package/dist/theme/mappings/targets.js +222 -0
- package/dist/theme/tokens.d.ts +10 -9
- package/dist/theme/tokens.generated.d.ts +356 -0
- package/dist/theme/tokens.generated.js +360 -0
- package/dist/theme/tokens.js +20 -264
- package/dist/tokens/README.jupyterlab.md +125 -0
- package/dist/tokens/README.md +15 -0
- package/dist/tokens/README.native.md +29 -0
- package/dist/tokens/README.plain.md +84 -0
- package/dist/tokens/README.python.md +33 -0
- package/dist/tokens/README.vscode.md +114 -0
- package/dist/tokens/jupyterlab.css +1710 -0
- package/dist/tokens/plain.css +930 -0
- package/dist/tokens/tokens.native.d.ts +85 -0
- package/dist/tokens/tokens.native.js +773 -0
- package/dist/tokens/tokens.py +1043 -0
- package/dist/tokens/vscode.css +1138 -0
- package/dist/workbench/FileBrowser.d.ts +62 -0
- package/dist/workbench/FileBrowser.js +117 -0
- package/dist/workbench/FileGrid.d.ts +13 -0
- package/dist/workbench/FileGrid.js +114 -0
- package/dist/workbench/FileIcon.d.ts +10 -0
- package/dist/workbench/FileIcon.js +24 -0
- package/dist/workbench/FileList.d.ts +35 -0
- package/dist/workbench/FileList.js +160 -0
- package/dist/workbench/FilePreview.d.ts +66 -0
- package/dist/workbench/FilePreview.js +108 -0
- package/dist/workbench/FileTree.d.ts +37 -0
- package/dist/workbench/FileTree.js +218 -0
- package/dist/workbench/UploadDropzone.d.ts +52 -0
- package/dist/workbench/UploadDropzone.js +115 -0
- package/dist/workbench/dnd.d.ts +17 -0
- package/dist/workbench/dnd.js +77 -0
- package/dist/workbench/index.d.ts +16 -0
- package/dist/workbench/index.js +16 -0
- package/dist/workbench/model.d.ts +72 -0
- package/dist/workbench/model.js +214 -0
- package/dist/workbench/selection.d.ts +16 -0
- package/dist/workbench/selection.js +46 -0
- package/dist/workbench/typeahead.d.ts +15 -0
- package/dist/workbench/typeahead.js +22 -0
- package/package.json +39 -2
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* @calliopelabs/ui tokens for React Native: types.
|
|
3
|
+
* Generated by `npm run theme` from the design tokens (tokens/*.json). Do not edit by hand.
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
export type Ground = "black" | "charcoal" | "graphite" | "emerald" | "navy" | "paper" | "mist";
|
|
7
|
+
export type Accent = "green" | "copper" | "ice" | "periwinkle" | "amber";
|
|
8
|
+
export type Mode = "dark" | "light";
|
|
9
|
+
|
|
10
|
+
/** Every colour token of one ground and accent, as #rrggbb or rgba(). */
|
|
11
|
+
export interface Palette {
|
|
12
|
+
readonly background: string;
|
|
13
|
+
readonly foreground: string;
|
|
14
|
+
readonly card: string;
|
|
15
|
+
readonly cardForeground: string;
|
|
16
|
+
readonly popover: string;
|
|
17
|
+
readonly popoverForeground: string;
|
|
18
|
+
readonly primary: string;
|
|
19
|
+
readonly primaryForeground: string;
|
|
20
|
+
readonly secondary: string;
|
|
21
|
+
readonly secondaryForeground: string;
|
|
22
|
+
readonly muted: string;
|
|
23
|
+
readonly mutedForeground: string;
|
|
24
|
+
readonly accent: string;
|
|
25
|
+
readonly accentForeground: string;
|
|
26
|
+
readonly destructive: string;
|
|
27
|
+
readonly border: string;
|
|
28
|
+
readonly input: string;
|
|
29
|
+
readonly ring: string;
|
|
30
|
+
readonly chart1: string;
|
|
31
|
+
readonly chart2: string;
|
|
32
|
+
readonly chart3: string;
|
|
33
|
+
readonly chart4: string;
|
|
34
|
+
readonly chart5: string;
|
|
35
|
+
readonly sidebar: string;
|
|
36
|
+
readonly sidebarForeground: string;
|
|
37
|
+
readonly sidebarPrimary: string;
|
|
38
|
+
readonly sidebarPrimaryForeground: string;
|
|
39
|
+
readonly sidebarAccent: string;
|
|
40
|
+
readonly sidebarAccentForeground: string;
|
|
41
|
+
readonly sidebarBorder: string;
|
|
42
|
+
readonly sidebarRing: string;
|
|
43
|
+
readonly sidebarMutedForeground: string;
|
|
44
|
+
readonly surface0: string;
|
|
45
|
+
readonly surface1: string;
|
|
46
|
+
readonly surface2: string;
|
|
47
|
+
readonly success: string;
|
|
48
|
+
readonly successFg: string;
|
|
49
|
+
readonly successBg: string;
|
|
50
|
+
readonly successBorder: string;
|
|
51
|
+
readonly warning: string;
|
|
52
|
+
readonly warningFg: string;
|
|
53
|
+
readonly warningBg: string;
|
|
54
|
+
readonly warningBorder: string;
|
|
55
|
+
readonly info: string;
|
|
56
|
+
readonly infoFg: string;
|
|
57
|
+
readonly infoBg: string;
|
|
58
|
+
readonly infoBorder: string;
|
|
59
|
+
readonly danger: string;
|
|
60
|
+
readonly dangerFg: string;
|
|
61
|
+
readonly dangerBg: string;
|
|
62
|
+
readonly dangerBorder: string;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
export declare const GROUNDS: Readonly<Record<Ground, { readonly label: string; readonly mode: Mode }>>;
|
|
66
|
+
export declare const ACCENTS: readonly Accent[];
|
|
67
|
+
export declare const DEFAULT_GROUND: "black";
|
|
68
|
+
export declare const DEFAULT_ACCENT: "green";
|
|
69
|
+
|
|
70
|
+
/** The corners setting, in points. */
|
|
71
|
+
export declare const radius: number;
|
|
72
|
+
/** Motion durations, in milliseconds. */
|
|
73
|
+
export declare const motion: Readonly<{ fast: number; base: number; slow: number }>;
|
|
74
|
+
/** Font family names; the app loads the fonts. */
|
|
75
|
+
export declare const fonts: Readonly<{ sans: string; mono: string; head: string }>;
|
|
76
|
+
|
|
77
|
+
export declare function palette(ground?: Ground, accent?: Accent): Palette;
|
|
78
|
+
|
|
79
|
+
export declare const black: Palette;
|
|
80
|
+
export declare const charcoal: Palette;
|
|
81
|
+
export declare const graphite: Palette;
|
|
82
|
+
export declare const emerald: Palette;
|
|
83
|
+
export declare const navy: Palette;
|
|
84
|
+
export declare const paper: Palette;
|
|
85
|
+
export declare const mist: Palette;
|