@timbal-ai/timbal-react 1.2.0 → 1.4.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/CHANGELOG.md +38 -0
- package/LICENSE +201 -0
- package/README.md +17 -4
- package/dist/app.cjs +1299 -1137
- package/dist/app.d.cts +21 -5
- package/dist/app.d.ts +21 -5
- package/dist/app.esm.js +17 -7
- package/dist/{chart-artifact-E58ve76I.d.cts → chart-artifact-C8-Py6lc.d.cts} +97 -27
- package/dist/{chart-artifact-_PEJgCpQ.d.ts → chart-artifact-CMnDys2t.d.ts} +97 -27
- package/dist/chat.esm.js +3 -3
- package/dist/{chunk-UY7AKWJL.esm.js → chunk-GQBYZRD7.esm.js} +1 -1
- package/dist/{chunk-AGJKK6R7.esm.js → chunk-OFWC4MIY.esm.js} +2 -2
- package/dist/{chunk-4VULP3CJ.esm.js → chunk-OH23AX2V.esm.js} +757 -56
- package/dist/{chunk-BMXFXLVV.esm.js → chunk-QU7ET55D.esm.js} +0 -1
- package/dist/{chunk-MTYXREHK.esm.js → chunk-THBA27QY.esm.js} +4 -4
- package/dist/{chunk-FEYZUVBM.esm.js → chunk-UCGVL7ZY.esm.js} +1 -1
- package/dist/{chunk-XDIY2WSL.esm.js → chunk-VOWNCS3F.esm.js} +649 -494
- package/dist/{chunk-NAMKO2MU.esm.js → chunk-VXMM2HX7.esm.js} +1 -1
- package/dist/{pill-segmented-tabs-BsIOW1Lo.d.ts → circular-progress-Ci8L-Hfa.d.cts} +199 -3
- package/dist/{pill-segmented-tabs-BsIOW1Lo.d.cts → circular-progress-Ci8L-Hfa.d.ts} +199 -3
- package/dist/index.cjs +1797 -938
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.esm.js +28 -10
- package/dist/studio.esm.js +5 -5
- package/dist/ui.cjs +758 -49
- package/dist/ui.d.cts +1 -1
- package/dist/ui.d.ts +1 -1
- package/dist/ui.esm.js +24 -4
- package/package.json +1 -1
package/dist/app.d.cts
CHANGED
|
@@ -1,18 +1,34 @@
|
|
|
1
|
-
|
|
1
|
+
import { A as AppDensity, a as AppDensityClassKey } from './chart-artifact-C8-Py6lc.cjs';
|
|
2
|
+
export { b as APP_DENSITY_CHART_HEIGHT, c as APP_DENSITY_CLASSES, d as APP_KIT_AGENT_INSTRUCTIONS, e as AppChatPanel, f as AppChatPanelProps, g as AppConfirmDialog, h as AppConfirmDialogProps, i as AppCopilotContextValue, j as AppCopilotProvider, k as AppCopilotProviderProps, l as AppShell, m as AppShellChatControls, n as AppShellChatTrigger, o as AppShellChatTriggerProps, p as AppShellNavControls, q as AppShellProps, r as AppShellSidebarTrigger, s as AppShellSidebarTriggerProps, t as AppShellTopbar, u as AppShellTopbarProps, B as BreadcrumbEntry, v as BreadcrumbItem, w as Breadcrumbs, x as BreadcrumbsProps, C as CHART_PALETTE, y as COLOR_UTILITY_PREFIXES, z as ChartArtifactView, D as ChartLayout, E as ChartMargin, F as ChartPanel, G as ChartPanelProps, H as ChartSeries, I as ChartTooltipIndicator, J as ChartVariant, K as ConnectionRow, L as ConnectionRowList, M as ConnectionRowListProps, N as ConnectionRowProps, O as DangerZone, P as DangerZoneAction, Q as DangerZoneActionProps, R as DangerZoneProps, S as DataTable, T as DataTableColumn, U as DataTableProps, V as DataTableSort, W as DataTableSortDirection, X as DescriptionItem, Y as DescriptionList, Z as DescriptionListProps, _ as EmptyState, $ as EmptyStateProps, a0 as ExpandableSection, a1 as ExpandableSectionProps, a2 as Field, a3 as FieldInput, a4 as FieldInputProps, a5 as FieldProps, a6 as FieldRow, a7 as FieldRowProps, a8 as FieldSelect, a9 as FieldSelectProps, aa as FieldSwitch, ab as FieldSwitchProps, ac as FieldTextarea, ad as FieldTextareaProps, ae as FilterBar, af as FilterBarProps, ag as FilterField, ah as FilterFieldProps, ai as FloatingUnsavedChangesBar, aj as FloatingUnsavedChangesBarProps, ak as FormSection, al as FormSectionProps, am as HOUSE_RULES, an as HouseRule, ao as INTEGRATION_CATALOG_CARD_HEIGHT_CLASS, ap as InfoCard, aq as InfoCardProps, ar as InfoCardTone, as as IntegrationCard, at as IntegrationCardProps, au as IntegrationCardStatus, av as IntegrationsEmptyState, aw as IntegrationsEmptyStateProps, ax as LineAreaChart, ay as LineAreaChartProps, az as LintFinding, aA as LintOptions, aB as LintResult, aC as LintSeverity, aD as MetricChartCard, aE as MetricChartCardProps, aF as MetricChartMetric, aG as MetricRow, aH as MetricRowItem, aI as MetricRowProps, aJ as MetricTile, aK as MetricTileProps, aL as Page, aM as PageHeader, aN as PageHeaderProps, aO as PageProps, aP as PieChart, aQ as PieChartProps, aR as PlanBadge, aS as PlanBadgeProps, aT as PlanBadgeTone, aU as RESERVED_GRADIENT_TOKENS, aV as RadarChart, aW as RadarChartProps, aX as RadialChart, aY as RadialChartProps, aZ as ResourceCard, a_ as ResourceCardProps, a$ as ReviewResult, b0 as SEMANTIC_COLOR_TOKENS, b1 as SLOP_BUDGETS, b2 as SearchInput, b3 as SearchInputProps, b4 as Section, b5 as SectionProps, b6 as SemanticColorToken, b7 as SettingsSection, b8 as SettingsSectionHeader, b9 as SettingsSectionHeaderProps, ba as SettingsSectionProps, bb as Sparkline, bc as SparklineProps, bd as StatTile, be as StatTileProps, bf as StatusBadge, bg as StatusBadgeProps, bh as StatusBadgeTone, bi as StatusDot, bj as StatusDotProps, bk as StatusDotTone, bl as SubNav, bm as SubNavItem, bn as SubNavProps, bo as SurfaceCard, bp as SurfaceCardProps, bq as TAILWIND_PALETTE_COLORS, br as THEME_AGENT_INSTRUCTIONS, bs as TIMBAL_THEME_PRESETS, bt as ThemeShadow, bu as ThemeToCssOptions, bv as ThemeTokenMap, bw as TimbalThemeIntent, bx as TimbalThemePreset, by as TimbalThemePresetId, bz as TimbalThemeStyle, bA as TimbalThemeStyleProps, bB as TimbalThemeTokens, bC as TimbalThemeTypography, bD as UI_REVIEW_AGENT_INSTRUCTIONS, bE as UseLiveQueryOptions, bF as UseLiveQueryResult, bG as appDensityClass, bH as applyThemePreset, bI as applyTimbalTheme, bJ as clearTimbalTheme, bK as connectionRowListClass, bL as createTimbalTheme, bM as ensureThemeFontLink, bN as flushBarCategoryGap, bO as flushLineAreaEdgeToEdge, bP as formatLintReport, bQ as getStoredThemePreset, bR as getThemePreset, bS as lintGeneratedUi, bT as resolveChartMargin, bU as resolveTooltipCategory, bV as reviewGeneratedUi, bW as themeToCss, bX as useAppCopilotContext, bY as useAppShellChat, bZ as useAppShellNav, b_ as useInterval, b$ as useLiveQuery } from './chart-artifact-C8-Py6lc.cjs';
|
|
3
|
+
import { FC, ReactNode } from 'react';
|
|
2
4
|
export { B as Button } from './button-BoyX5pM_.cjs';
|
|
3
5
|
export { C as ChartArtifact, a as ChartSeriesConfig, T as ThreadVariant, b as TimbalChat, c as TimbalChatProps } from './chat-ClmzWzCX.cjs';
|
|
4
|
-
import 'react';
|
|
5
6
|
import 'react/jsx-runtime';
|
|
6
7
|
import 'class-variance-authority/types';
|
|
7
8
|
import 'class-variance-authority';
|
|
8
9
|
import '@assistant-ui/react';
|
|
9
10
|
|
|
11
|
+
interface AppDensityProviderProps {
|
|
12
|
+
density?: AppDensity;
|
|
13
|
+
children: ReactNode;
|
|
14
|
+
}
|
|
15
|
+
/** Sets layout density for descendant app-kit blocks (`Page`, `Section`, cards, metrics). */
|
|
16
|
+
declare const AppDensityProvider: FC<AppDensityProviderProps>;
|
|
17
|
+
/** Active layout density — `"default"` outside a provider. */
|
|
18
|
+
declare function useAppDensity(): AppDensity;
|
|
19
|
+
/** Resolved layout class for the active density (or an explicit override). */
|
|
20
|
+
declare function useAppDensityClass(key: AppDensityClassKey, override?: AppDensity): string;
|
|
21
|
+
|
|
10
22
|
/**
|
|
11
23
|
* Class composites for the `app` kit (dashboards, settings, data views).
|
|
12
24
|
* Colours via semantic tokens in styles.css — no hardcoded palette literals.
|
|
13
25
|
*/
|
|
14
|
-
/**
|
|
15
|
-
|
|
26
|
+
/**
|
|
27
|
+
* App page column — centered within the shell content area (right of the
|
|
28
|
+
* sidebar inset). Wide cap so dashboards use the available width instead of
|
|
29
|
+
* leaving large side gutters; the cap only kicks in on ultra-wide displays.
|
|
30
|
+
*/
|
|
31
|
+
declare const appPageColumnClass = "mx-auto w-full max-w-[100rem] px-4 md:px-6 lg:px-8";
|
|
16
32
|
/**
|
|
17
33
|
* Topbar horizontal inset — full content width (no `max-w-6xl`), same side
|
|
18
34
|
* padding as the page column so controls sit closer to the viewport edges.
|
|
@@ -34,4 +50,4 @@ declare const appFilterBarClass = "flex flex-wrap items-end gap-2";
|
|
|
34
50
|
* search field and a dropdown placed side by side match exactly. */
|
|
35
51
|
declare const appSearchInputClass: string;
|
|
36
52
|
|
|
37
|
-
export { appFilterBarClass, appPageColumnClass, appSearchInputClass, appShellInsetTopClass, appShellTopbarInsetClass, appStatTileClass, appSurfaceCardClass };
|
|
53
|
+
export { AppDensity, AppDensityClassKey, AppDensityProvider, type AppDensityProviderProps, appFilterBarClass, appPageColumnClass, appSearchInputClass, appShellInsetTopClass, appShellTopbarInsetClass, appStatTileClass, appSurfaceCardClass, useAppDensity, useAppDensityClass };
|
package/dist/app.d.ts
CHANGED
|
@@ -1,18 +1,34 @@
|
|
|
1
|
-
|
|
1
|
+
import { A as AppDensity, a as AppDensityClassKey } from './chart-artifact-CMnDys2t.js';
|
|
2
|
+
export { b as APP_DENSITY_CHART_HEIGHT, c as APP_DENSITY_CLASSES, d as APP_KIT_AGENT_INSTRUCTIONS, e as AppChatPanel, f as AppChatPanelProps, g as AppConfirmDialog, h as AppConfirmDialogProps, i as AppCopilotContextValue, j as AppCopilotProvider, k as AppCopilotProviderProps, l as AppShell, m as AppShellChatControls, n as AppShellChatTrigger, o as AppShellChatTriggerProps, p as AppShellNavControls, q as AppShellProps, r as AppShellSidebarTrigger, s as AppShellSidebarTriggerProps, t as AppShellTopbar, u as AppShellTopbarProps, B as BreadcrumbEntry, v as BreadcrumbItem, w as Breadcrumbs, x as BreadcrumbsProps, C as CHART_PALETTE, y as COLOR_UTILITY_PREFIXES, z as ChartArtifactView, D as ChartLayout, E as ChartMargin, F as ChartPanel, G as ChartPanelProps, H as ChartSeries, I as ChartTooltipIndicator, J as ChartVariant, K as ConnectionRow, L as ConnectionRowList, M as ConnectionRowListProps, N as ConnectionRowProps, O as DangerZone, P as DangerZoneAction, Q as DangerZoneActionProps, R as DangerZoneProps, S as DataTable, T as DataTableColumn, U as DataTableProps, V as DataTableSort, W as DataTableSortDirection, X as DescriptionItem, Y as DescriptionList, Z as DescriptionListProps, _ as EmptyState, $ as EmptyStateProps, a0 as ExpandableSection, a1 as ExpandableSectionProps, a2 as Field, a3 as FieldInput, a4 as FieldInputProps, a5 as FieldProps, a6 as FieldRow, a7 as FieldRowProps, a8 as FieldSelect, a9 as FieldSelectProps, aa as FieldSwitch, ab as FieldSwitchProps, ac as FieldTextarea, ad as FieldTextareaProps, ae as FilterBar, af as FilterBarProps, ag as FilterField, ah as FilterFieldProps, ai as FloatingUnsavedChangesBar, aj as FloatingUnsavedChangesBarProps, ak as FormSection, al as FormSectionProps, am as HOUSE_RULES, an as HouseRule, ao as INTEGRATION_CATALOG_CARD_HEIGHT_CLASS, ap as InfoCard, aq as InfoCardProps, ar as InfoCardTone, as as IntegrationCard, at as IntegrationCardProps, au as IntegrationCardStatus, av as IntegrationsEmptyState, aw as IntegrationsEmptyStateProps, ax as LineAreaChart, ay as LineAreaChartProps, az as LintFinding, aA as LintOptions, aB as LintResult, aC as LintSeverity, aD as MetricChartCard, aE as MetricChartCardProps, aF as MetricChartMetric, aG as MetricRow, aH as MetricRowItem, aI as MetricRowProps, aJ as MetricTile, aK as MetricTileProps, aL as Page, aM as PageHeader, aN as PageHeaderProps, aO as PageProps, aP as PieChart, aQ as PieChartProps, aR as PlanBadge, aS as PlanBadgeProps, aT as PlanBadgeTone, aU as RESERVED_GRADIENT_TOKENS, aV as RadarChart, aW as RadarChartProps, aX as RadialChart, aY as RadialChartProps, aZ as ResourceCard, a_ as ResourceCardProps, a$ as ReviewResult, b0 as SEMANTIC_COLOR_TOKENS, b1 as SLOP_BUDGETS, b2 as SearchInput, b3 as SearchInputProps, b4 as Section, b5 as SectionProps, b6 as SemanticColorToken, b7 as SettingsSection, b8 as SettingsSectionHeader, b9 as SettingsSectionHeaderProps, ba as SettingsSectionProps, bb as Sparkline, bc as SparklineProps, bd as StatTile, be as StatTileProps, bf as StatusBadge, bg as StatusBadgeProps, bh as StatusBadgeTone, bi as StatusDot, bj as StatusDotProps, bk as StatusDotTone, bl as SubNav, bm as SubNavItem, bn as SubNavProps, bo as SurfaceCard, bp as SurfaceCardProps, bq as TAILWIND_PALETTE_COLORS, br as THEME_AGENT_INSTRUCTIONS, bs as TIMBAL_THEME_PRESETS, bt as ThemeShadow, bu as ThemeToCssOptions, bv as ThemeTokenMap, bw as TimbalThemeIntent, bx as TimbalThemePreset, by as TimbalThemePresetId, bz as TimbalThemeStyle, bA as TimbalThemeStyleProps, bB as TimbalThemeTokens, bC as TimbalThemeTypography, bD as UI_REVIEW_AGENT_INSTRUCTIONS, bE as UseLiveQueryOptions, bF as UseLiveQueryResult, bG as appDensityClass, bH as applyThemePreset, bI as applyTimbalTheme, bJ as clearTimbalTheme, bK as connectionRowListClass, bL as createTimbalTheme, bM as ensureThemeFontLink, bN as flushBarCategoryGap, bO as flushLineAreaEdgeToEdge, bP as formatLintReport, bQ as getStoredThemePreset, bR as getThemePreset, bS as lintGeneratedUi, bT as resolveChartMargin, bU as resolveTooltipCategory, bV as reviewGeneratedUi, bW as themeToCss, bX as useAppCopilotContext, bY as useAppShellChat, bZ as useAppShellNav, b_ as useInterval, b$ as useLiveQuery } from './chart-artifact-CMnDys2t.js';
|
|
3
|
+
import { FC, ReactNode } from 'react';
|
|
2
4
|
export { B as Button } from './button-BoyX5pM_.js';
|
|
3
5
|
export { C as ChartArtifact, a as ChartSeriesConfig, T as ThreadVariant, b as TimbalChat, c as TimbalChatProps } from './chat-ClmzWzCX.js';
|
|
4
|
-
import 'react';
|
|
5
6
|
import 'react/jsx-runtime';
|
|
6
7
|
import 'class-variance-authority/types';
|
|
7
8
|
import 'class-variance-authority';
|
|
8
9
|
import '@assistant-ui/react';
|
|
9
10
|
|
|
11
|
+
interface AppDensityProviderProps {
|
|
12
|
+
density?: AppDensity;
|
|
13
|
+
children: ReactNode;
|
|
14
|
+
}
|
|
15
|
+
/** Sets layout density for descendant app-kit blocks (`Page`, `Section`, cards, metrics). */
|
|
16
|
+
declare const AppDensityProvider: FC<AppDensityProviderProps>;
|
|
17
|
+
/** Active layout density — `"default"` outside a provider. */
|
|
18
|
+
declare function useAppDensity(): AppDensity;
|
|
19
|
+
/** Resolved layout class for the active density (or an explicit override). */
|
|
20
|
+
declare function useAppDensityClass(key: AppDensityClassKey, override?: AppDensity): string;
|
|
21
|
+
|
|
10
22
|
/**
|
|
11
23
|
* Class composites for the `app` kit (dashboards, settings, data views).
|
|
12
24
|
* Colours via semantic tokens in styles.css — no hardcoded palette literals.
|
|
13
25
|
*/
|
|
14
|
-
/**
|
|
15
|
-
|
|
26
|
+
/**
|
|
27
|
+
* App page column — centered within the shell content area (right of the
|
|
28
|
+
* sidebar inset). Wide cap so dashboards use the available width instead of
|
|
29
|
+
* leaving large side gutters; the cap only kicks in on ultra-wide displays.
|
|
30
|
+
*/
|
|
31
|
+
declare const appPageColumnClass = "mx-auto w-full max-w-[100rem] px-4 md:px-6 lg:px-8";
|
|
16
32
|
/**
|
|
17
33
|
* Topbar horizontal inset — full content width (no `max-w-6xl`), same side
|
|
18
34
|
* padding as the page column so controls sit closer to the viewport edges.
|
|
@@ -34,4 +50,4 @@ declare const appFilterBarClass = "flex flex-wrap items-end gap-2";
|
|
|
34
50
|
* search field and a dropdown placed side by side match exactly. */
|
|
35
51
|
declare const appSearchInputClass: string;
|
|
36
52
|
|
|
37
|
-
export { appFilterBarClass, appPageColumnClass, appSearchInputClass, appShellInsetTopClass, appShellTopbarInsetClass, appStatTileClass, appSurfaceCardClass };
|
|
53
|
+
export { AppDensity, AppDensityClassKey, AppDensityProvider, type AppDensityProviderProps, appFilterBarClass, appPageColumnClass, appSearchInputClass, appShellInsetTopClass, appShellTopbarInsetClass, appStatTileClass, appSurfaceCardClass, useAppDensity, useAppDensityClass };
|
package/dist/app.esm.js
CHANGED
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
|
+
APP_DENSITY_CHART_HEIGHT,
|
|
3
|
+
APP_DENSITY_CLASSES,
|
|
2
4
|
APP_KIT_AGENT_INSTRUCTIONS,
|
|
3
5
|
AppChatPanel,
|
|
4
6
|
AppConfirmDialog,
|
|
5
7
|
AppCopilotProvider,
|
|
8
|
+
AppDensityProvider,
|
|
6
9
|
AppShell,
|
|
7
10
|
AppShellChatTrigger,
|
|
8
11
|
AppShellSidebarTrigger,
|
|
@@ -56,9 +59,9 @@ import {
|
|
|
56
59
|
TAILWIND_PALETTE_COLORS,
|
|
57
60
|
THEME_AGENT_INSTRUCTIONS,
|
|
58
61
|
TIMBAL_THEME_PRESETS,
|
|
59
|
-
ThemePresetGallery,
|
|
60
62
|
TimbalThemeStyle,
|
|
61
63
|
UI_REVIEW_AGENT_INSTRUCTIONS,
|
|
64
|
+
appDensityClass,
|
|
62
65
|
appFilterBarClass,
|
|
63
66
|
appPageColumnClass,
|
|
64
67
|
appSearchInputClass,
|
|
@@ -79,11 +82,13 @@ import {
|
|
|
79
82
|
reviewGeneratedUi,
|
|
80
83
|
themeToCss,
|
|
81
84
|
useAppCopilotContext,
|
|
85
|
+
useAppDensity,
|
|
86
|
+
useAppDensityClass,
|
|
82
87
|
useAppShellChat,
|
|
83
88
|
useAppShellNav,
|
|
84
89
|
useInterval,
|
|
85
90
|
useLiveQuery
|
|
86
|
-
} from "./chunk-
|
|
91
|
+
} from "./chunk-VOWNCS3F.esm.js";
|
|
87
92
|
import "./chunk-QIABF4KB.esm.js";
|
|
88
93
|
import {
|
|
89
94
|
CHART_PALETTE,
|
|
@@ -97,17 +102,20 @@ import {
|
|
|
97
102
|
flushLineAreaEdgeToEdge,
|
|
98
103
|
resolveChartMargin,
|
|
99
104
|
resolveTooltipCategory
|
|
100
|
-
} from "./chunk-
|
|
101
|
-
import "./chunk-
|
|
102
|
-
import "./chunk-
|
|
105
|
+
} from "./chunk-GQBYZRD7.esm.js";
|
|
106
|
+
import "./chunk-UCGVL7ZY.esm.js";
|
|
107
|
+
import "./chunk-VXMM2HX7.esm.js";
|
|
103
108
|
import {
|
|
104
109
|
Button
|
|
105
|
-
} from "./chunk-
|
|
110
|
+
} from "./chunk-QU7ET55D.esm.js";
|
|
106
111
|
export {
|
|
112
|
+
APP_DENSITY_CHART_HEIGHT,
|
|
113
|
+
APP_DENSITY_CLASSES,
|
|
107
114
|
APP_KIT_AGENT_INSTRUCTIONS,
|
|
108
115
|
AppChatPanel,
|
|
109
116
|
AppConfirmDialog,
|
|
110
117
|
AppCopilotProvider,
|
|
118
|
+
AppDensityProvider,
|
|
111
119
|
AppShell,
|
|
112
120
|
AppShellChatTrigger,
|
|
113
121
|
AppShellSidebarTrigger,
|
|
@@ -168,10 +176,10 @@ export {
|
|
|
168
176
|
TAILWIND_PALETTE_COLORS,
|
|
169
177
|
THEME_AGENT_INSTRUCTIONS,
|
|
170
178
|
TIMBAL_THEME_PRESETS,
|
|
171
|
-
ThemePresetGallery,
|
|
172
179
|
TimbalChat,
|
|
173
180
|
TimbalThemeStyle,
|
|
174
181
|
UI_REVIEW_AGENT_INSTRUCTIONS,
|
|
182
|
+
appDensityClass,
|
|
175
183
|
appFilterBarClass,
|
|
176
184
|
appPageColumnClass,
|
|
177
185
|
appSearchInputClass,
|
|
@@ -196,6 +204,8 @@ export {
|
|
|
196
204
|
reviewGeneratedUi,
|
|
197
205
|
themeToCss,
|
|
198
206
|
useAppCopilotContext,
|
|
207
|
+
useAppDensity,
|
|
208
|
+
useAppDensityClass,
|
|
199
209
|
useAppShellChat,
|
|
200
210
|
useAppShellNav,
|
|
201
211
|
useInterval,
|
|
@@ -384,24 +384,6 @@ interface TimbalThemeStyleProps {
|
|
|
384
384
|
*/
|
|
385
385
|
declare const TimbalThemeStyle: FC<TimbalThemeStyleProps>;
|
|
386
386
|
|
|
387
|
-
interface ThemePresetGalleryProps {
|
|
388
|
-
/** Currently selected preset id (controlled). */
|
|
389
|
-
value?: TimbalThemePresetId;
|
|
390
|
-
/** Called when the user picks a preset. */
|
|
391
|
-
onSelect?: (id: TimbalThemePresetId) => void;
|
|
392
|
-
/** Restrict the catalog to a subset of presets. */
|
|
393
|
-
presets?: readonly TimbalThemePresetId[];
|
|
394
|
-
className?: string;
|
|
395
|
-
}
|
|
396
|
-
/**
|
|
397
|
-
* Preview + pick a brand preset. Each card renders a *real* mini fixture
|
|
398
|
-
* (a primary button + a metric tile + a token strip) scoped via
|
|
399
|
-
* `data-timbal-theme`, so several presets preview side-by-side without
|
|
400
|
-
* changing the live app — the host applies the choice on `onSelect`
|
|
401
|
-
* (e.g. via `applyThemePreset`).
|
|
402
|
-
*/
|
|
403
|
-
declare const ThemePresetGallery: FC<ThemePresetGalleryProps>;
|
|
404
|
-
|
|
405
387
|
interface AppShellProps {
|
|
406
388
|
/** Primary navigation (e.g. StudioSidebar or custom rail). */
|
|
407
389
|
sidebar?: ReactNode;
|
|
@@ -444,6 +426,15 @@ interface AppShellProps {
|
|
|
444
426
|
onNavOpenChange?: (open: boolean) => void;
|
|
445
427
|
className?: string;
|
|
446
428
|
mainClassName?: string;
|
|
429
|
+
/**
|
|
430
|
+
* Make the content region a bounded, non-scrolling flex column instead of the
|
|
431
|
+
* default padded scroll area. Use for full-bleed pages that own their own
|
|
432
|
+
* scroll — a full-page chat (`TimbalChat` / `Thread`), a canvas, a map, an
|
|
433
|
+
* editor — so a `h-full` / `flex-1 min-h-0` child fills exactly and a pinned
|
|
434
|
+
* footer (e.g. the chat composer) stays put instead of riding down on scroll.
|
|
435
|
+
* Do **not** combine with `h-[calc(100dvh-…)]` guesses on the child.
|
|
436
|
+
*/
|
|
437
|
+
contentFill?: boolean;
|
|
447
438
|
}
|
|
448
439
|
/**
|
|
449
440
|
* App-first layout: sidebar + topbar + main, with optional **floating** copilot.
|
|
@@ -517,8 +508,66 @@ interface AppShellSidebarTriggerProps {
|
|
|
517
508
|
*/
|
|
518
509
|
declare const AppShellSidebarTrigger: FC<AppShellSidebarTriggerProps>;
|
|
519
510
|
|
|
511
|
+
/**
|
|
512
|
+
* App kit layout density — shared spacing scale for dashboards.
|
|
513
|
+
* Default matches timbal-platform list pages; compact tightens rhythm for data-heavy views.
|
|
514
|
+
*/
|
|
515
|
+
type AppDensity = "default" | "compact";
|
|
516
|
+
/** Default chart plot height per density (overridable via component `height` prop). */
|
|
517
|
+
declare const APP_DENSITY_CHART_HEIGHT: Record<AppDensity, number>;
|
|
518
|
+
/** Layout class maps keyed by density — consumed via `useAppDensityClass` in app components. */
|
|
519
|
+
declare const APP_DENSITY_CLASSES: {
|
|
520
|
+
readonly pageColumn: {
|
|
521
|
+
readonly default: "mx-auto w-full max-w-[100rem] px-4 md:px-6 lg:px-8";
|
|
522
|
+
readonly compact: "mx-auto w-full max-w-none px-3 md:px-4";
|
|
523
|
+
};
|
|
524
|
+
readonly pageHeader: {
|
|
525
|
+
readonly default: string;
|
|
526
|
+
readonly compact: "flex flex-col gap-2 sm:flex-row sm:items-center sm:justify-between pb-2 pt-1";
|
|
527
|
+
};
|
|
528
|
+
readonly section: {
|
|
529
|
+
readonly default: "flex flex-col gap-4 py-4";
|
|
530
|
+
readonly compact: "flex flex-col gap-2 py-2";
|
|
531
|
+
};
|
|
532
|
+
readonly surfaceCard: {
|
|
533
|
+
readonly default: string;
|
|
534
|
+
readonly compact: string;
|
|
535
|
+
};
|
|
536
|
+
readonly statTile: {
|
|
537
|
+
readonly default: string;
|
|
538
|
+
readonly compact: string;
|
|
539
|
+
};
|
|
540
|
+
readonly emptyState: {
|
|
541
|
+
readonly default: string;
|
|
542
|
+
readonly compact: string;
|
|
543
|
+
};
|
|
544
|
+
readonly metricCardHeader: {
|
|
545
|
+
readonly default: "flex items-start justify-between gap-3 px-4 pb-1 pt-3";
|
|
546
|
+
readonly compact: "flex items-start justify-between gap-2 px-3 pb-0.5 pt-2";
|
|
547
|
+
};
|
|
548
|
+
readonly metricTile: {
|
|
549
|
+
readonly default: "relative flex min-w-0 flex-1 flex-col gap-1 px-4 py-3 text-left font-normal";
|
|
550
|
+
readonly compact: "relative flex min-w-0 flex-1 flex-col gap-1 px-3 py-2 text-left font-normal";
|
|
551
|
+
};
|
|
552
|
+
readonly metricChartRegion: {
|
|
553
|
+
readonly default: "relative min-h-0 w-full overflow-x-hidden border-t border-border/40 pt-2";
|
|
554
|
+
readonly compact: "relative min-h-0 w-full overflow-x-hidden border-t border-border/40 pt-1";
|
|
555
|
+
};
|
|
556
|
+
readonly metricChartPlotRegion: {
|
|
557
|
+
readonly default: "relative min-h-0 w-full overflow-x-hidden border-t border-border/40 px-0 pt-5 pb-3";
|
|
558
|
+
readonly compact: "relative min-h-0 w-full overflow-x-hidden border-t border-border/40 px-0 pt-3 pb-2";
|
|
559
|
+
};
|
|
560
|
+
readonly chartPanelBody: {
|
|
561
|
+
readonly default: "pt-2 pb-3";
|
|
562
|
+
readonly compact: "pt-1 pb-2";
|
|
563
|
+
};
|
|
564
|
+
};
|
|
565
|
+
type AppDensityClassKey = keyof typeof APP_DENSITY_CLASSES;
|
|
566
|
+
declare function appDensityClass(key: AppDensityClassKey, density?: AppDensity): string;
|
|
567
|
+
|
|
520
568
|
interface PageHeaderProps {
|
|
521
|
-
title
|
|
569
|
+
/** Page title. Omit for a headerless page (no `<h1>` rendered). */
|
|
570
|
+
title?: ReactNode;
|
|
522
571
|
description?: ReactNode;
|
|
523
572
|
actions?: ReactNode;
|
|
524
573
|
className?: string;
|
|
@@ -529,6 +578,18 @@ interface PageProps extends PageHeaderProps {
|
|
|
529
578
|
children: ReactNode;
|
|
530
579
|
/** Slot above the title (breadcrumbs). */
|
|
531
580
|
breadcrumbs?: ReactNode;
|
|
581
|
+
/**
|
|
582
|
+
* Layout rhythm for this page and descendant app-kit blocks.
|
|
583
|
+
* `compact` tightens page insets, section gaps, and card padding.
|
|
584
|
+
*/
|
|
585
|
+
density?: AppDensity;
|
|
586
|
+
/**
|
|
587
|
+
* Make the page a bounded, full-height flex column instead of a centered,
|
|
588
|
+
* content-sized column. Pair with `AppShell contentFill` for full-bleed pages
|
|
589
|
+
* (a full-page chat, a canvas, an editor) whose body should fill the viewport
|
|
590
|
+
* and own its own scroll. Give the fill child `min-h-0 flex-1`.
|
|
591
|
+
*/
|
|
592
|
+
fill?: boolean;
|
|
532
593
|
className?: string;
|
|
533
594
|
}
|
|
534
595
|
declare const Page: FC<PageProps>;
|
|
@@ -537,6 +598,8 @@ interface SectionProps {
|
|
|
537
598
|
title?: ReactNode;
|
|
538
599
|
description?: ReactNode;
|
|
539
600
|
children: ReactNode;
|
|
601
|
+
/** Override inherited page density for this section only. */
|
|
602
|
+
density?: AppDensity;
|
|
540
603
|
className?: string;
|
|
541
604
|
}
|
|
542
605
|
declare const Section: FC<SectionProps>;
|
|
@@ -581,18 +644,25 @@ interface EmptyStateProps {
|
|
|
581
644
|
}
|
|
582
645
|
declare const EmptyState: FC<EmptyStateProps>;
|
|
583
646
|
|
|
647
|
+
/**
|
|
648
|
+
* Tone skin — a soft tint, a matching foreground, and an inset hairline ring so
|
|
649
|
+
* the pill reads as a deliberate object rather than faint colored text. The dot
|
|
650
|
+
* (when enabled) uses an opaque version of the same hue.
|
|
651
|
+
*/
|
|
584
652
|
declare const statusBadgeToneClass: {
|
|
585
|
-
readonly default: "bg-muted text-foreground";
|
|
586
|
-
readonly primary: "bg-primary/10 text-primary";
|
|
587
|
-
readonly success: "bg-emerald-500/10 text-emerald-
|
|
588
|
-
readonly warn: "bg-amber-500/10 text-amber-
|
|
589
|
-
readonly danger: "bg-destructive/10 text-destructive";
|
|
590
|
-
readonly muted: "bg-muted/
|
|
653
|
+
readonly default: "bg-muted text-foreground ring-border";
|
|
654
|
+
readonly primary: "bg-primary/10 text-primary ring-primary/20";
|
|
655
|
+
readonly success: "bg-emerald-500/10 text-emerald-700 ring-emerald-500/20 dark:text-emerald-400";
|
|
656
|
+
readonly warn: "bg-amber-500/10 text-amber-700 ring-amber-500/25 dark:text-amber-400";
|
|
657
|
+
readonly danger: "bg-destructive/10 text-destructive ring-destructive/20";
|
|
658
|
+
readonly muted: "bg-muted/70 text-muted-foreground ring-border/60";
|
|
591
659
|
};
|
|
592
660
|
type StatusBadgeTone = keyof typeof statusBadgeToneClass;
|
|
593
661
|
interface StatusBadgeProps {
|
|
594
662
|
children: ReactNode;
|
|
595
663
|
tone?: StatusBadgeTone;
|
|
664
|
+
/** Render a small leading status dot in the tone color. */
|
|
665
|
+
dot?: boolean;
|
|
596
666
|
className?: string;
|
|
597
667
|
}
|
|
598
668
|
declare const StatusBadge: FC<StatusBadgeProps>;
|
|
@@ -1030,7 +1100,7 @@ interface ChartPanelProps {
|
|
|
1030
1100
|
artifact?: ChartArtifact;
|
|
1031
1101
|
children?: ReactNode;
|
|
1032
1102
|
actions?: ReactNode;
|
|
1033
|
-
/** Plot height in px.
|
|
1103
|
+
/** Plot height in px. Defaults to the active page density (300 default, 220 compact). */
|
|
1034
1104
|
height?: number;
|
|
1035
1105
|
/** Render a skeleton at the plot height while data loads. */
|
|
1036
1106
|
loading?: boolean;
|
|
@@ -1408,4 +1478,4 @@ interface ChartArtifactViewProps {
|
|
|
1408
1478
|
*/
|
|
1409
1479
|
declare const ChartArtifactView: FC<ChartArtifactViewProps>;
|
|
1410
1480
|
|
|
1411
|
-
export {
|
|
1481
|
+
export { type EmptyStateProps as $, type AppDensity as A, type BreadcrumbEntry as B, CHART_PALETTE as C, type ChartLayout as D, type ChartMargin as E, ChartPanel as F, type ChartPanelProps as G, type ChartSeries as H, type ChartTooltipIndicator as I, type ChartVariant as J, ConnectionRow as K, ConnectionRowList as L, type ConnectionRowListProps as M, type ConnectionRowProps as N, DangerZone as O, DangerZoneAction as P, type DangerZoneActionProps as Q, type DangerZoneProps as R, DataTable as S, type DataTableColumn as T, type DataTableProps as U, type DataTableSort as V, type DataTableSortDirection as W, type DescriptionItem as X, DescriptionList as Y, type DescriptionListProps as Z, EmptyState as _, type AppDensityClassKey as a, type ReviewResult as a$, ExpandableSection as a0, type ExpandableSectionProps as a1, Field as a2, FieldInput as a3, type FieldInputProps as a4, type FieldProps as a5, FieldRow as a6, type FieldRowProps as a7, FieldSelect as a8, type FieldSelectProps as a9, type LintOptions as aA, type LintResult as aB, type LintSeverity as aC, MetricChartCard as aD, type MetricChartCardProps as aE, type MetricChartMetric as aF, MetricRow as aG, type MetricRowItem as aH, type MetricRowProps as aI, MetricTile as aJ, type MetricTileProps as aK, Page as aL, PageHeader as aM, type PageHeaderProps as aN, type PageProps as aO, PieChart as aP, type PieChartProps as aQ, PlanBadge as aR, type PlanBadgeProps as aS, type PlanBadgeTone as aT, RESERVED_GRADIENT_TOKENS as aU, RadarChart as aV, type RadarChartProps as aW, RadialChart as aX, type RadialChartProps as aY, ResourceCard as aZ, type ResourceCardProps as a_, FieldSwitch as aa, type FieldSwitchProps as ab, FieldTextarea as ac, type FieldTextareaProps as ad, FilterBar as ae, type FilterBarProps as af, FilterField as ag, type FilterFieldProps as ah, FloatingUnsavedChangesBar as ai, type FloatingUnsavedChangesBarProps as aj, FormSection as ak, type FormSectionProps as al, HOUSE_RULES as am, type HouseRule as an, INTEGRATION_CATALOG_CARD_HEIGHT_CLASS as ao, InfoCard as ap, type InfoCardProps as aq, type InfoCardTone as ar, IntegrationCard as as, type IntegrationCardProps as at, type IntegrationCardStatus as au, IntegrationsEmptyState as av, type IntegrationsEmptyStateProps as aw, LineAreaChart as ax, type LineAreaChartProps as ay, type LintFinding as az, APP_DENSITY_CHART_HEIGHT as b, useLiveQuery as b$, SEMANTIC_COLOR_TOKENS as b0, SLOP_BUDGETS as b1, SearchInput as b2, type SearchInputProps as b3, Section as b4, type SectionProps as b5, type SemanticColorToken as b6, SettingsSection as b7, SettingsSectionHeader as b8, type SettingsSectionHeaderProps as b9, type TimbalThemeStyleProps as bA, type TimbalThemeTokens as bB, type TimbalThemeTypography as bC, UI_REVIEW_AGENT_INSTRUCTIONS as bD, type UseLiveQueryOptions as bE, type UseLiveQueryResult as bF, appDensityClass as bG, applyThemePreset as bH, applyTimbalTheme as bI, clearTimbalTheme as bJ, connectionRowListClass as bK, createTimbalTheme as bL, ensureThemeFontLink as bM, flushBarCategoryGap as bN, flushLineAreaEdgeToEdge as bO, formatLintReport as bP, getStoredThemePreset as bQ, getThemePreset as bR, lintGeneratedUi as bS, resolveChartMargin as bT, resolveTooltipCategory as bU, reviewGeneratedUi as bV, themeToCss as bW, useAppCopilotContext as bX, useAppShellChat as bY, useAppShellNav as bZ, useInterval as b_, type SettingsSectionProps as ba, Sparkline as bb, type SparklineProps as bc, StatTile as bd, type StatTileProps as be, StatusBadge as bf, type StatusBadgeProps as bg, type StatusBadgeTone as bh, StatusDot as bi, type StatusDotProps as bj, type StatusDotTone as bk, SubNav as bl, type SubNavItem as bm, type SubNavProps as bn, SurfaceCard as bo, type SurfaceCardProps as bp, TAILWIND_PALETTE_COLORS as bq, THEME_AGENT_INSTRUCTIONS as br, TIMBAL_THEME_PRESETS as bs, type ThemeShadow as bt, type ThemeToCssOptions as bu, type ThemeTokenMap as bv, type TimbalThemeIntent as bw, type TimbalThemePreset as bx, type TimbalThemePresetId as by, TimbalThemeStyle as bz, APP_DENSITY_CLASSES as c, APP_KIT_AGENT_INSTRUCTIONS as d, AppChatPanel as e, type AppChatPanelProps as f, AppConfirmDialog as g, type AppConfirmDialogProps as h, type AppCopilotContextValue as i, AppCopilotProvider as j, type AppCopilotProviderProps as k, AppShell as l, type AppShellChatControls as m, AppShellChatTrigger as n, type AppShellChatTriggerProps as o, type AppShellNavControls as p, type AppShellProps as q, AppShellSidebarTrigger as r, type AppShellSidebarTriggerProps as s, AppShellTopbar as t, type AppShellTopbarProps as u, type BreadcrumbItem as v, Breadcrumbs as w, type BreadcrumbsProps as x, COLOR_UTILITY_PREFIXES as y, ChartArtifactView as z };
|
|
@@ -384,24 +384,6 @@ interface TimbalThemeStyleProps {
|
|
|
384
384
|
*/
|
|
385
385
|
declare const TimbalThemeStyle: FC<TimbalThemeStyleProps>;
|
|
386
386
|
|
|
387
|
-
interface ThemePresetGalleryProps {
|
|
388
|
-
/** Currently selected preset id (controlled). */
|
|
389
|
-
value?: TimbalThemePresetId;
|
|
390
|
-
/** Called when the user picks a preset. */
|
|
391
|
-
onSelect?: (id: TimbalThemePresetId) => void;
|
|
392
|
-
/** Restrict the catalog to a subset of presets. */
|
|
393
|
-
presets?: readonly TimbalThemePresetId[];
|
|
394
|
-
className?: string;
|
|
395
|
-
}
|
|
396
|
-
/**
|
|
397
|
-
* Preview + pick a brand preset. Each card renders a *real* mini fixture
|
|
398
|
-
* (a primary button + a metric tile + a token strip) scoped via
|
|
399
|
-
* `data-timbal-theme`, so several presets preview side-by-side without
|
|
400
|
-
* changing the live app — the host applies the choice on `onSelect`
|
|
401
|
-
* (e.g. via `applyThemePreset`).
|
|
402
|
-
*/
|
|
403
|
-
declare const ThemePresetGallery: FC<ThemePresetGalleryProps>;
|
|
404
|
-
|
|
405
387
|
interface AppShellProps {
|
|
406
388
|
/** Primary navigation (e.g. StudioSidebar or custom rail). */
|
|
407
389
|
sidebar?: ReactNode;
|
|
@@ -444,6 +426,15 @@ interface AppShellProps {
|
|
|
444
426
|
onNavOpenChange?: (open: boolean) => void;
|
|
445
427
|
className?: string;
|
|
446
428
|
mainClassName?: string;
|
|
429
|
+
/**
|
|
430
|
+
* Make the content region a bounded, non-scrolling flex column instead of the
|
|
431
|
+
* default padded scroll area. Use for full-bleed pages that own their own
|
|
432
|
+
* scroll — a full-page chat (`TimbalChat` / `Thread`), a canvas, a map, an
|
|
433
|
+
* editor — so a `h-full` / `flex-1 min-h-0` child fills exactly and a pinned
|
|
434
|
+
* footer (e.g. the chat composer) stays put instead of riding down on scroll.
|
|
435
|
+
* Do **not** combine with `h-[calc(100dvh-…)]` guesses on the child.
|
|
436
|
+
*/
|
|
437
|
+
contentFill?: boolean;
|
|
447
438
|
}
|
|
448
439
|
/**
|
|
449
440
|
* App-first layout: sidebar + topbar + main, with optional **floating** copilot.
|
|
@@ -517,8 +508,66 @@ interface AppShellSidebarTriggerProps {
|
|
|
517
508
|
*/
|
|
518
509
|
declare const AppShellSidebarTrigger: FC<AppShellSidebarTriggerProps>;
|
|
519
510
|
|
|
511
|
+
/**
|
|
512
|
+
* App kit layout density — shared spacing scale for dashboards.
|
|
513
|
+
* Default matches timbal-platform list pages; compact tightens rhythm for data-heavy views.
|
|
514
|
+
*/
|
|
515
|
+
type AppDensity = "default" | "compact";
|
|
516
|
+
/** Default chart plot height per density (overridable via component `height` prop). */
|
|
517
|
+
declare const APP_DENSITY_CHART_HEIGHT: Record<AppDensity, number>;
|
|
518
|
+
/** Layout class maps keyed by density — consumed via `useAppDensityClass` in app components. */
|
|
519
|
+
declare const APP_DENSITY_CLASSES: {
|
|
520
|
+
readonly pageColumn: {
|
|
521
|
+
readonly default: "mx-auto w-full max-w-[100rem] px-4 md:px-6 lg:px-8";
|
|
522
|
+
readonly compact: "mx-auto w-full max-w-none px-3 md:px-4";
|
|
523
|
+
};
|
|
524
|
+
readonly pageHeader: {
|
|
525
|
+
readonly default: string;
|
|
526
|
+
readonly compact: "flex flex-col gap-2 sm:flex-row sm:items-center sm:justify-between pb-2 pt-1";
|
|
527
|
+
};
|
|
528
|
+
readonly section: {
|
|
529
|
+
readonly default: "flex flex-col gap-4 py-4";
|
|
530
|
+
readonly compact: "flex flex-col gap-2 py-2";
|
|
531
|
+
};
|
|
532
|
+
readonly surfaceCard: {
|
|
533
|
+
readonly default: string;
|
|
534
|
+
readonly compact: string;
|
|
535
|
+
};
|
|
536
|
+
readonly statTile: {
|
|
537
|
+
readonly default: string;
|
|
538
|
+
readonly compact: string;
|
|
539
|
+
};
|
|
540
|
+
readonly emptyState: {
|
|
541
|
+
readonly default: string;
|
|
542
|
+
readonly compact: string;
|
|
543
|
+
};
|
|
544
|
+
readonly metricCardHeader: {
|
|
545
|
+
readonly default: "flex items-start justify-between gap-3 px-4 pb-1 pt-3";
|
|
546
|
+
readonly compact: "flex items-start justify-between gap-2 px-3 pb-0.5 pt-2";
|
|
547
|
+
};
|
|
548
|
+
readonly metricTile: {
|
|
549
|
+
readonly default: "relative flex min-w-0 flex-1 flex-col gap-1 px-4 py-3 text-left font-normal";
|
|
550
|
+
readonly compact: "relative flex min-w-0 flex-1 flex-col gap-1 px-3 py-2 text-left font-normal";
|
|
551
|
+
};
|
|
552
|
+
readonly metricChartRegion: {
|
|
553
|
+
readonly default: "relative min-h-0 w-full overflow-x-hidden border-t border-border/40 pt-2";
|
|
554
|
+
readonly compact: "relative min-h-0 w-full overflow-x-hidden border-t border-border/40 pt-1";
|
|
555
|
+
};
|
|
556
|
+
readonly metricChartPlotRegion: {
|
|
557
|
+
readonly default: "relative min-h-0 w-full overflow-x-hidden border-t border-border/40 px-0 pt-5 pb-3";
|
|
558
|
+
readonly compact: "relative min-h-0 w-full overflow-x-hidden border-t border-border/40 px-0 pt-3 pb-2";
|
|
559
|
+
};
|
|
560
|
+
readonly chartPanelBody: {
|
|
561
|
+
readonly default: "pt-2 pb-3";
|
|
562
|
+
readonly compact: "pt-1 pb-2";
|
|
563
|
+
};
|
|
564
|
+
};
|
|
565
|
+
type AppDensityClassKey = keyof typeof APP_DENSITY_CLASSES;
|
|
566
|
+
declare function appDensityClass(key: AppDensityClassKey, density?: AppDensity): string;
|
|
567
|
+
|
|
520
568
|
interface PageHeaderProps {
|
|
521
|
-
title
|
|
569
|
+
/** Page title. Omit for a headerless page (no `<h1>` rendered). */
|
|
570
|
+
title?: ReactNode;
|
|
522
571
|
description?: ReactNode;
|
|
523
572
|
actions?: ReactNode;
|
|
524
573
|
className?: string;
|
|
@@ -529,6 +578,18 @@ interface PageProps extends PageHeaderProps {
|
|
|
529
578
|
children: ReactNode;
|
|
530
579
|
/** Slot above the title (breadcrumbs). */
|
|
531
580
|
breadcrumbs?: ReactNode;
|
|
581
|
+
/**
|
|
582
|
+
* Layout rhythm for this page and descendant app-kit blocks.
|
|
583
|
+
* `compact` tightens page insets, section gaps, and card padding.
|
|
584
|
+
*/
|
|
585
|
+
density?: AppDensity;
|
|
586
|
+
/**
|
|
587
|
+
* Make the page a bounded, full-height flex column instead of a centered,
|
|
588
|
+
* content-sized column. Pair with `AppShell contentFill` for full-bleed pages
|
|
589
|
+
* (a full-page chat, a canvas, an editor) whose body should fill the viewport
|
|
590
|
+
* and own its own scroll. Give the fill child `min-h-0 flex-1`.
|
|
591
|
+
*/
|
|
592
|
+
fill?: boolean;
|
|
532
593
|
className?: string;
|
|
533
594
|
}
|
|
534
595
|
declare const Page: FC<PageProps>;
|
|
@@ -537,6 +598,8 @@ interface SectionProps {
|
|
|
537
598
|
title?: ReactNode;
|
|
538
599
|
description?: ReactNode;
|
|
539
600
|
children: ReactNode;
|
|
601
|
+
/** Override inherited page density for this section only. */
|
|
602
|
+
density?: AppDensity;
|
|
540
603
|
className?: string;
|
|
541
604
|
}
|
|
542
605
|
declare const Section: FC<SectionProps>;
|
|
@@ -581,18 +644,25 @@ interface EmptyStateProps {
|
|
|
581
644
|
}
|
|
582
645
|
declare const EmptyState: FC<EmptyStateProps>;
|
|
583
646
|
|
|
647
|
+
/**
|
|
648
|
+
* Tone skin — a soft tint, a matching foreground, and an inset hairline ring so
|
|
649
|
+
* the pill reads as a deliberate object rather than faint colored text. The dot
|
|
650
|
+
* (when enabled) uses an opaque version of the same hue.
|
|
651
|
+
*/
|
|
584
652
|
declare const statusBadgeToneClass: {
|
|
585
|
-
readonly default: "bg-muted text-foreground";
|
|
586
|
-
readonly primary: "bg-primary/10 text-primary";
|
|
587
|
-
readonly success: "bg-emerald-500/10 text-emerald-
|
|
588
|
-
readonly warn: "bg-amber-500/10 text-amber-
|
|
589
|
-
readonly danger: "bg-destructive/10 text-destructive";
|
|
590
|
-
readonly muted: "bg-muted/
|
|
653
|
+
readonly default: "bg-muted text-foreground ring-border";
|
|
654
|
+
readonly primary: "bg-primary/10 text-primary ring-primary/20";
|
|
655
|
+
readonly success: "bg-emerald-500/10 text-emerald-700 ring-emerald-500/20 dark:text-emerald-400";
|
|
656
|
+
readonly warn: "bg-amber-500/10 text-amber-700 ring-amber-500/25 dark:text-amber-400";
|
|
657
|
+
readonly danger: "bg-destructive/10 text-destructive ring-destructive/20";
|
|
658
|
+
readonly muted: "bg-muted/70 text-muted-foreground ring-border/60";
|
|
591
659
|
};
|
|
592
660
|
type StatusBadgeTone = keyof typeof statusBadgeToneClass;
|
|
593
661
|
interface StatusBadgeProps {
|
|
594
662
|
children: ReactNode;
|
|
595
663
|
tone?: StatusBadgeTone;
|
|
664
|
+
/** Render a small leading status dot in the tone color. */
|
|
665
|
+
dot?: boolean;
|
|
596
666
|
className?: string;
|
|
597
667
|
}
|
|
598
668
|
declare const StatusBadge: FC<StatusBadgeProps>;
|
|
@@ -1030,7 +1100,7 @@ interface ChartPanelProps {
|
|
|
1030
1100
|
artifact?: ChartArtifact;
|
|
1031
1101
|
children?: ReactNode;
|
|
1032
1102
|
actions?: ReactNode;
|
|
1033
|
-
/** Plot height in px.
|
|
1103
|
+
/** Plot height in px. Defaults to the active page density (300 default, 220 compact). */
|
|
1034
1104
|
height?: number;
|
|
1035
1105
|
/** Render a skeleton at the plot height while data loads. */
|
|
1036
1106
|
loading?: boolean;
|
|
@@ -1408,4 +1478,4 @@ interface ChartArtifactViewProps {
|
|
|
1408
1478
|
*/
|
|
1409
1479
|
declare const ChartArtifactView: FC<ChartArtifactViewProps>;
|
|
1410
1480
|
|
|
1411
|
-
export {
|
|
1481
|
+
export { type EmptyStateProps as $, type AppDensity as A, type BreadcrumbEntry as B, CHART_PALETTE as C, type ChartLayout as D, type ChartMargin as E, ChartPanel as F, type ChartPanelProps as G, type ChartSeries as H, type ChartTooltipIndicator as I, type ChartVariant as J, ConnectionRow as K, ConnectionRowList as L, type ConnectionRowListProps as M, type ConnectionRowProps as N, DangerZone as O, DangerZoneAction as P, type DangerZoneActionProps as Q, type DangerZoneProps as R, DataTable as S, type DataTableColumn as T, type DataTableProps as U, type DataTableSort as V, type DataTableSortDirection as W, type DescriptionItem as X, DescriptionList as Y, type DescriptionListProps as Z, EmptyState as _, type AppDensityClassKey as a, type ReviewResult as a$, ExpandableSection as a0, type ExpandableSectionProps as a1, Field as a2, FieldInput as a3, type FieldInputProps as a4, type FieldProps as a5, FieldRow as a6, type FieldRowProps as a7, FieldSelect as a8, type FieldSelectProps as a9, type LintOptions as aA, type LintResult as aB, type LintSeverity as aC, MetricChartCard as aD, type MetricChartCardProps as aE, type MetricChartMetric as aF, MetricRow as aG, type MetricRowItem as aH, type MetricRowProps as aI, MetricTile as aJ, type MetricTileProps as aK, Page as aL, PageHeader as aM, type PageHeaderProps as aN, type PageProps as aO, PieChart as aP, type PieChartProps as aQ, PlanBadge as aR, type PlanBadgeProps as aS, type PlanBadgeTone as aT, RESERVED_GRADIENT_TOKENS as aU, RadarChart as aV, type RadarChartProps as aW, RadialChart as aX, type RadialChartProps as aY, ResourceCard as aZ, type ResourceCardProps as a_, FieldSwitch as aa, type FieldSwitchProps as ab, FieldTextarea as ac, type FieldTextareaProps as ad, FilterBar as ae, type FilterBarProps as af, FilterField as ag, type FilterFieldProps as ah, FloatingUnsavedChangesBar as ai, type FloatingUnsavedChangesBarProps as aj, FormSection as ak, type FormSectionProps as al, HOUSE_RULES as am, type HouseRule as an, INTEGRATION_CATALOG_CARD_HEIGHT_CLASS as ao, InfoCard as ap, type InfoCardProps as aq, type InfoCardTone as ar, IntegrationCard as as, type IntegrationCardProps as at, type IntegrationCardStatus as au, IntegrationsEmptyState as av, type IntegrationsEmptyStateProps as aw, LineAreaChart as ax, type LineAreaChartProps as ay, type LintFinding as az, APP_DENSITY_CHART_HEIGHT as b, useLiveQuery as b$, SEMANTIC_COLOR_TOKENS as b0, SLOP_BUDGETS as b1, SearchInput as b2, type SearchInputProps as b3, Section as b4, type SectionProps as b5, type SemanticColorToken as b6, SettingsSection as b7, SettingsSectionHeader as b8, type SettingsSectionHeaderProps as b9, type TimbalThemeStyleProps as bA, type TimbalThemeTokens as bB, type TimbalThemeTypography as bC, UI_REVIEW_AGENT_INSTRUCTIONS as bD, type UseLiveQueryOptions as bE, type UseLiveQueryResult as bF, appDensityClass as bG, applyThemePreset as bH, applyTimbalTheme as bI, clearTimbalTheme as bJ, connectionRowListClass as bK, createTimbalTheme as bL, ensureThemeFontLink as bM, flushBarCategoryGap as bN, flushLineAreaEdgeToEdge as bO, formatLintReport as bP, getStoredThemePreset as bQ, getThemePreset as bR, lintGeneratedUi as bS, resolveChartMargin as bT, resolveTooltipCategory as bU, reviewGeneratedUi as bV, themeToCss as bW, useAppCopilotContext as bX, useAppShellChat as bY, useAppShellNav as bZ, useInterval as b_, type SettingsSectionProps as ba, Sparkline as bb, type SparklineProps as bc, StatTile as bd, type StatTileProps as be, StatusBadge as bf, type StatusBadgeProps as bg, type StatusBadgeTone as bh, StatusDot as bi, type StatusDotProps as bj, type StatusDotTone as bk, SubNav as bl, type SubNavItem as bm, type SubNavProps as bn, SurfaceCard as bo, type SurfaceCardProps as bp, TAILWIND_PALETTE_COLORS as bq, THEME_AGENT_INSTRUCTIONS as br, TIMBAL_THEME_PRESETS as bs, type ThemeShadow as bt, type ThemeToCssOptions as bu, type ThemeTokenMap as bv, type TimbalThemeIntent as bw, type TimbalThemePreset as bx, type TimbalThemePresetId as by, TimbalThemeStyle as bz, APP_DENSITY_CLASSES as c, APP_KIT_AGENT_INSTRUCTIONS as d, AppChatPanel as e, type AppChatPanelProps as f, AppConfirmDialog as g, type AppConfirmDialogProps as h, type AppCopilotContextValue as i, AppCopilotProvider as j, type AppCopilotProviderProps as k, AppShell as l, type AppShellChatControls as m, AppShellChatTrigger as n, type AppShellChatTriggerProps as o, type AppShellNavControls as p, type AppShellProps as q, AppShellSidebarTrigger as r, type AppShellSidebarTriggerProps as s, AppShellTopbar as t, type AppShellTopbarProps as u, type BreadcrumbItem as v, Breadcrumbs as w, type BreadcrumbsProps as x, COLOR_UTILITY_PREFIXES as y, ChartArtifactView as z };
|
package/dist/chat.esm.js
CHANGED
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
} from "./chunk-KC5QLVUG.esm.js";
|
|
8
8
|
import {
|
|
9
9
|
WorkforceSelector
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-OFWC4MIY.esm.js";
|
|
11
11
|
import {
|
|
12
12
|
Composer,
|
|
13
13
|
ComposerAddAttachment,
|
|
@@ -24,8 +24,8 @@ import {
|
|
|
24
24
|
useTimbalRuntime,
|
|
25
25
|
useTimbalStream,
|
|
26
26
|
useToolRunning
|
|
27
|
-
} from "./chunk-
|
|
28
|
-
import "./chunk-
|
|
27
|
+
} from "./chunk-GQBYZRD7.esm.js";
|
|
28
|
+
import "./chunk-QU7ET55D.esm.js";
|
|
29
29
|
export {
|
|
30
30
|
Composer,
|
|
31
31
|
ComposerAddAttachment,
|