@agent-factory-platform/ui-kit 0.7.0 → 0.7.1
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 +25 -0
- package/dist/charts/adapter.d.ts +165 -0
- package/dist/charts/chart-tooltip.d.ts +1 -1
- package/dist/charts/event-markers-primitive.d.ts +40 -0
- package/dist/charts/index.d.ts +4 -0
- package/dist/charts/ohlc.d.ts +36 -0
- package/dist/charts/series.d.ts +181 -0
- package/dist/charts/theme.d.ts +1 -0
- package/dist/charts/time-combo.d.ts +22 -0
- package/dist/component-api.js +1 -1
- package/dist/components/calendar-period-navigator.d.ts +29 -0
- package/dist/components/data-table.d.ts +10 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.js +3421 -2361
- package/dist/manifest.js +4 -4
- package/package.json +2 -1
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import type { ReactNode } from "react";
|
|
2
|
+
import { type DatePickerProps } from "./date-time";
|
|
3
|
+
export interface CalendarPeriodNavigatorLabels {
|
|
4
|
+
previousPeriod: string;
|
|
5
|
+
nextPeriod: string;
|
|
6
|
+
today: string;
|
|
7
|
+
}
|
|
8
|
+
export interface CalendarPeriodNavigatorProps<T extends string> {
|
|
9
|
+
value: string;
|
|
10
|
+
onValueChange: (value: string) => void;
|
|
11
|
+
onPrevious: () => void;
|
|
12
|
+
onNext: () => void;
|
|
13
|
+
onToday: () => void;
|
|
14
|
+
period: T;
|
|
15
|
+
onPeriodChange: (period: T) => void;
|
|
16
|
+
periods: Array<{
|
|
17
|
+
key: T;
|
|
18
|
+
label: string;
|
|
19
|
+
}>;
|
|
20
|
+
labels: CalendarPeriodNavigatorLabels;
|
|
21
|
+
datePicker: Omit<DatePickerProps, "value" | "onValueChange">;
|
|
22
|
+
className?: string;
|
|
23
|
+
trailing?: ReactNode;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Domain-neutral calendar toolbar for day/week/month-style products. The
|
|
27
|
+
* caller owns date arithmetic, URL state, filters, and calendar contents.
|
|
28
|
+
*/
|
|
29
|
+
export declare function CalendarPeriodNavigator<T extends string>({ value, onValueChange, onPrevious, onNext, onToday, period, onPeriodChange, periods, labels, datePicker, className, trailing, }: CalendarPeriodNavigatorProps<T>): import("react").JSX.Element;
|
|
@@ -6,11 +6,20 @@ export interface DataTableColumn<T> {
|
|
|
6
6
|
sortValue?: (row: T) => string | number;
|
|
7
7
|
align?: "left" | "right";
|
|
8
8
|
resizeLabel?: string;
|
|
9
|
+
/** Relative initial column width. */
|
|
10
|
+
width?: number;
|
|
11
|
+
/** Pins the leading identity column during horizontal scrolling. */
|
|
12
|
+
pinned?: boolean;
|
|
9
13
|
}
|
|
10
|
-
export declare function DataTable<T>({ label, columns, rows, rowKey, emptyText, }: {
|
|
14
|
+
export declare function DataTable<T>({ label, columns, rows, rowKey, emptyText, density, className, selectedRowKey, onRowActivate, rowAriaLabel, }: {
|
|
11
15
|
label: string;
|
|
12
16
|
columns: readonly DataTableColumn<T>[];
|
|
13
17
|
rows: readonly T[];
|
|
14
18
|
rowKey: (row: T) => string;
|
|
15
19
|
emptyText: string;
|
|
20
|
+
density?: "compact" | "default";
|
|
21
|
+
className?: string;
|
|
22
|
+
selectedRowKey?: string | null;
|
|
23
|
+
onRowActivate?: (row: T) => void;
|
|
24
|
+
rowAriaLabel?: (row: T) => string;
|
|
16
25
|
}): import("react").JSX.Element;
|
package/dist/index.d.ts
CHANGED
|
@@ -64,3 +64,4 @@ export type { UiKitCategory, UiKitComponentManifestEntry } from "./manifest";
|
|
|
64
64
|
export { UI_KIT_COMPONENT_API } from "./component-api";
|
|
65
65
|
export type { UiKitComponentApi, UiKitComponentApiEntry, UiKitComponentApiProp } from "./component-api";
|
|
66
66
|
export { ThemeProvider, UI_THEME_ACCENTS, UI_THEME_BRANDS, UI_THEME_DEFAULTS, UI_THEME_NEUTRALS, UI_THEME_SEMANTICS, applyUiThemeSettings, normalizeUiThemeSettings, uiThemeStyle, useUiTheme, type UiThemeMode, type UiThemeDataStyle, type UiThemeEffect, type UiThemeMotion, type UiThemeShape, type UiThemeSettings, type UiThemeSolidStyle, type UiThemeSurface, } from "./theme";
|
|
67
|
+
export { CalendarPeriodNavigator, type CalendarPeriodNavigatorProps, type CalendarPeriodNavigatorLabels } from "./components/calendar-period-navigator";
|