@apipass/design-system 5.9.0 → 6.1.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/lib/charts.index.cjs +1 -1
- package/dist/lib/charts.index.js +11 -8
- package/dist/lib/charts.index.js.map +1 -1
- package/dist/lib/embedded-styles.js +2 -2
- package/dist/lib/lib.index.cjs +1 -1
- package/dist/lib/lib.index.js +657 -657
- package/dist/lib/lib.index.js.map +1 -1
- package/dist/lib/style.css +1 -1
- package/dist/lib/ui/components/DataTable/DataTable.cjs +1 -1
- package/dist/lib/ui/components/DataTable/DataTable.cjs.map +1 -1
- package/dist/lib/ui/components/DataTable/DataTable.js +217 -3
- package/dist/lib/ui/components/DataTable/DataTable.js.map +1 -1
- package/dist/lib/ui/components/charts/BarChart/bar-chart-option.cjs +1 -1
- package/dist/lib/ui/components/charts/BarChart/bar-chart-option.cjs.map +1 -1
- package/dist/lib/ui/components/charts/BarChart/bar-chart-option.js +75 -104
- package/dist/lib/ui/components/charts/BarChart/bar-chart-option.js.map +1 -1
- package/dist/lib/ui/components/charts/ChartLegend/ChartLegend.cjs +1 -1
- package/dist/lib/ui/components/charts/ChartLegend/ChartLegend.cjs.map +1 -1
- package/dist/lib/ui/components/charts/ChartLegend/ChartLegend.js +27 -26
- package/dist/lib/ui/components/charts/ChartLegend/ChartLegend.js.map +1 -1
- package/dist/lib/ui/components/charts/PieChart/PieChart.cjs +2 -0
- package/dist/lib/ui/components/charts/PieChart/PieChart.cjs.map +1 -0
- package/dist/lib/ui/components/charts/PieChart/PieChart.js +177 -0
- package/dist/lib/ui/components/charts/PieChart/PieChart.js.map +1 -0
- package/dist/lib/ui/components/charts/PieChart/pie-chart-option.cjs +2 -0
- package/dist/lib/ui/components/charts/PieChart/pie-chart-option.cjs.map +1 -0
- package/dist/lib/ui/components/charts/PieChart/pie-chart-option.js +124 -0
- package/dist/lib/ui/components/charts/PieChart/pie-chart-option.js.map +1 -0
- package/dist/lib/ui/components/charts/PieChart/pie-chart-slices.cjs +2 -0
- package/dist/lib/ui/components/charts/PieChart/pie-chart-slices.cjs.map +1 -0
- package/dist/lib/ui/components/charts/PieChart/pie-chart-slices.js +65 -0
- package/dist/lib/ui/components/charts/PieChart/pie-chart-slices.js.map +1 -0
- package/dist/lib/ui/components/charts/chart-color-tone.cjs +2 -0
- package/dist/lib/ui/components/charts/chart-color-tone.cjs.map +1 -0
- package/dist/lib/ui/components/charts/chart-color-tone.js +14 -0
- package/dist/lib/ui/components/charts/chart-color-tone.js.map +1 -0
- package/dist/lib/ui/components/charts/chart-label-color.cjs +2 -0
- package/dist/lib/ui/components/charts/chart-label-color.cjs.map +1 -0
- package/dist/lib/ui/components/charts/chart-label-color.js +35 -0
- package/dist/lib/ui/components/charts/chart-label-color.js.map +1 -0
- package/dist/lib/ui/components/charts/chart-palette.cjs +1 -1
- package/dist/lib/ui/components/charts/chart-palette.cjs.map +1 -1
- package/dist/lib/ui/components/charts/chart-palette.js +2 -1
- package/dist/lib/ui/components/charts/chart-palette.js.map +1 -1
- package/dist/lib/ui/components/charts/chart-theme.cjs +1 -1
- package/dist/lib/ui/components/charts/chart-theme.cjs.map +1 -1
- package/dist/lib/ui/components/charts/chart-theme.js +4 -3
- package/dist/lib/ui/components/charts/chart-theme.js.map +1 -1
- package/dist/lib/ui/components/charts/echarts-modules.cjs +1 -1
- package/dist/lib/ui/components/charts/echarts-modules.cjs.map +1 -1
- package/dist/lib/ui/components/charts/echarts-modules.js +11 -9
- package/dist/lib/ui/components/charts/echarts-modules.js.map +1 -1
- package/dist/lib/ui/primitives/Table/Table.cjs +1 -1
- package/dist/lib/ui/primitives/Table/Table.cjs.map +1 -1
- package/dist/lib/ui/primitives/Table/Table.js +123 -12
- package/dist/lib/ui/primitives/Table/Table.js.map +1 -1
- package/dist/types/charts.index.d.ts +1 -0
- package/dist/types/ui/components/DataTable/DataTable.d.ts +79 -11
- package/dist/types/ui/components/charts/ChartLegend/ChartLegend.d.ts +1 -0
- package/dist/types/ui/components/charts/PieChart/PieChart.d.ts +32 -0
- package/dist/types/ui/components/charts/PieChart/pie-chart-option.d.ts +13 -0
- package/dist/types/ui/components/charts/PieChart/pie-chart-slices.d.ts +30 -0
- package/dist/types/ui/components/charts/chart-color-tone.d.ts +1 -0
- package/dist/types/ui/components/charts/chart-label-color.d.ts +2 -0
- package/dist/types/ui/components/charts/chart-palette.d.ts +1 -0
- package/dist/types/ui/components/charts/chart-theme.d.ts +1 -0
- package/dist/types/ui/primitives/Table/Table.d.ts +32 -22
- package/package.json +1 -1
- package/dist/lib/ui/primitives/Table/DataDrivenTable.cjs +0 -2
- package/dist/lib/ui/primitives/Table/DataDrivenTable.cjs.map +0 -1
- package/dist/lib/ui/primitives/Table/DataDrivenTable.js +0 -196
- package/dist/lib/ui/primitives/Table/DataDrivenTable.js.map +0 -1
- package/dist/lib/ui/primitives/Table/TableBase.cjs +0 -2
- package/dist/lib/ui/primitives/Table/TableBase.cjs.map +0 -1
- package/dist/lib/ui/primitives/Table/TableBase.js +0 -127
- package/dist/lib/ui/primitives/Table/TableBase.js.map +0 -1
- package/dist/types/ui/primitives/Table/DataDrivenTable.d.ts +0 -68
- package/dist/types/ui/primitives/Table/TableBase.d.ts +0 -35
|
@@ -1,68 +0,0 @@
|
|
|
1
|
-
import type { ReactNode } from "react";
|
|
2
|
-
import type { Selection } from "react-aria-components";
|
|
3
|
-
export interface Column<T> {
|
|
4
|
-
key: keyof T | string;
|
|
5
|
-
label: string;
|
|
6
|
-
align?: "start" | "center" | "right";
|
|
7
|
-
render?: (item: T) => ReactNode;
|
|
8
|
-
}
|
|
9
|
-
export interface RowActionDef<T> {
|
|
10
|
-
/** Unique key for this action. */
|
|
11
|
-
key: string;
|
|
12
|
-
/** aria-label for the button. */
|
|
13
|
-
label: string;
|
|
14
|
-
/** Icon element rendered inside the button. */
|
|
15
|
-
icon: ReactNode;
|
|
16
|
-
/** When false, button is disabled and a tooltip with `noAccessLabel` is shown. Default: true. */
|
|
17
|
-
isAllowed?: boolean;
|
|
18
|
-
/** Tooltip text shown when `isAllowed` is false. */
|
|
19
|
-
noAccessLabel?: string;
|
|
20
|
-
/** Called with the row item when the button is pressed. */
|
|
21
|
-
onPress: (item: T) => void;
|
|
22
|
-
}
|
|
23
|
-
export interface DataDrivenTableProps<T extends {
|
|
24
|
-
id: string;
|
|
25
|
-
}> {
|
|
26
|
-
columns: Column<T>[];
|
|
27
|
-
data: T[];
|
|
28
|
-
actions?: ReactNode;
|
|
29
|
-
/** Per-row action buttons rendered in a dedicated last column. */
|
|
30
|
-
rowActions?: RowActionDef<T>[] | ((item: T) => RowActionDef<T>[]);
|
|
31
|
-
/** Label for the row actions column header. Defaults to empty string. */
|
|
32
|
-
rowActionsLabel?: string;
|
|
33
|
-
/**
|
|
34
|
-
* When true, renders a selection column before the first data column — a per-row control on
|
|
35
|
-
* every row (see `selectionType`), plus a "select all" checkbox in the header when
|
|
36
|
-
* `selectionType` is "checkbox". Off by default.
|
|
37
|
-
*/
|
|
38
|
-
selectable?: boolean;
|
|
39
|
-
/**
|
|
40
|
-
* Visual style of the built-in selection control. "checkbox" (default) allows selecting
|
|
41
|
-
* multiple rows and shows a "select all" in the header. "radio" restricts selection to a
|
|
42
|
-
* single row (no "select all" — there is nothing to select all *to* with one choice) and
|
|
43
|
-
* renders a round control instead of a checkbox.
|
|
44
|
-
*/
|
|
45
|
-
selectionType?: "checkbox" | "radio";
|
|
46
|
-
/** Controlled selection state. Omit to let the table manage its own selection internally. */
|
|
47
|
-
selectedKeys?: Selection;
|
|
48
|
-
onSelectionChange?: (keys: Selection) => void;
|
|
49
|
-
searchPlaceholder?: string;
|
|
50
|
-
searchKeys?: (keyof T)[];
|
|
51
|
-
isLoading?: boolean;
|
|
52
|
-
loadingMessage?: string;
|
|
53
|
-
emptyMessage?: string;
|
|
54
|
-
previousLabel?: string;
|
|
55
|
-
nextLabel?: string;
|
|
56
|
-
pageSize?: number;
|
|
57
|
-
nestedColumns?: Column<any>[];
|
|
58
|
-
getNestedData?: (item: T) => any[] | Promise<any[]>;
|
|
59
|
-
nestedLoadingMessage?: string;
|
|
60
|
-
nestedEmptyMessage?: string;
|
|
61
|
-
nestedSearchKeys?: (keyof any)[];
|
|
62
|
-
nestedSearchPlaceholder?: string;
|
|
63
|
-
nestedActions?: (item: T) => ReactNode;
|
|
64
|
-
nestedPageSize?: number;
|
|
65
|
-
}
|
|
66
|
-
export declare function DataDrivenTable<T extends {
|
|
67
|
-
id: string;
|
|
68
|
-
}>({ columns, data, actions, rowActions, rowActionsLabel, selectable, selectionType, selectedKeys, onSelectionChange, searchPlaceholder, searchKeys, isLoading, loadingMessage, emptyMessage, previousLabel, nextLabel, pageSize, nestedColumns, getNestedData, nestedLoadingMessage, nestedEmptyMessage, nestedSearchKeys, nestedSearchPlaceholder, nestedActions, nestedPageSize, }: DataDrivenTableProps<T>): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import { type CellProps as RACCellProps, type ColumnProps as RACColumnProps, type RowProps as RACRowProps, type TableBodyProps as RACTableBodyProps, type TableHeaderProps as RACTableHeaderProps, type TableProps as RACTableProps } from "react-aria-components";
|
|
2
|
-
import "./table.css";
|
|
3
|
-
type TableAlign = "start" | "center" | "right";
|
|
4
|
-
/**
|
|
5
|
-
* Visual style of the built-in selection control rendered in the selection
|
|
6
|
-
* column (header "select all" + per-row toggle). "radio" is for
|
|
7
|
-
* `selectionMode="single"` tables where a round, single-choice control reads
|
|
8
|
-
* better than a checkbox — the header never renders a control either way
|
|
9
|
-
* (there is no "select all" for a single choice).
|
|
10
|
-
*/
|
|
11
|
-
type SelectionType = "checkbox" | "radio";
|
|
12
|
-
export type TableBaseProps = RACTableProps & {
|
|
13
|
-
bleed?: boolean;
|
|
14
|
-
dense?: boolean;
|
|
15
|
-
grid?: boolean;
|
|
16
|
-
striped?: boolean;
|
|
17
|
-
selectionType?: SelectionType;
|
|
18
|
-
maxHeight?: number | string;
|
|
19
|
-
};
|
|
20
|
-
export declare function TableBase({ bleed, dense, grid, striped, selectionType, maxHeight, className, ...props }: TableBaseProps): import("react/jsx-runtime").JSX.Element;
|
|
21
|
-
export type TableColumnProps = RACColumnProps & {
|
|
22
|
-
align?: TableAlign;
|
|
23
|
-
};
|
|
24
|
-
export declare function TableColumn({ align, className, ...props }: TableColumnProps): import("react/jsx-runtime").JSX.Element;
|
|
25
|
-
export type TableBodyProps<T> = RACTableBodyProps<T>;
|
|
26
|
-
export declare function TableBody<T extends object>({ className, ...props }: TableBodyProps<T>): import("react/jsx-runtime").JSX.Element;
|
|
27
|
-
export type TableHeadProps<T> = RACTableHeaderProps<T>;
|
|
28
|
-
export declare function TableHead<T extends object>({ className, columns, children, ...props }: TableHeadProps<T>): import("react/jsx-runtime").JSX.Element;
|
|
29
|
-
export type TableRowProps<T> = RACRowProps<T>;
|
|
30
|
-
export declare function TableRow<T extends object>({ id, columns, children, className, ...otherProps }: TableRowProps<T>): import("react/jsx-runtime").JSX.Element;
|
|
31
|
-
export type TableCellProps = RACCellProps & {
|
|
32
|
-
align?: TableAlign;
|
|
33
|
-
};
|
|
34
|
-
export declare function TableCell({ align, className, ...props }: TableCellProps): import("react/jsx-runtime").JSX.Element;
|
|
35
|
-
export {};
|