@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.
Files changed (78) hide show
  1. package/dist/lib/charts.index.cjs +1 -1
  2. package/dist/lib/charts.index.js +11 -8
  3. package/dist/lib/charts.index.js.map +1 -1
  4. package/dist/lib/embedded-styles.js +2 -2
  5. package/dist/lib/lib.index.cjs +1 -1
  6. package/dist/lib/lib.index.js +657 -657
  7. package/dist/lib/lib.index.js.map +1 -1
  8. package/dist/lib/style.css +1 -1
  9. package/dist/lib/ui/components/DataTable/DataTable.cjs +1 -1
  10. package/dist/lib/ui/components/DataTable/DataTable.cjs.map +1 -1
  11. package/dist/lib/ui/components/DataTable/DataTable.js +217 -3
  12. package/dist/lib/ui/components/DataTable/DataTable.js.map +1 -1
  13. package/dist/lib/ui/components/charts/BarChart/bar-chart-option.cjs +1 -1
  14. package/dist/lib/ui/components/charts/BarChart/bar-chart-option.cjs.map +1 -1
  15. package/dist/lib/ui/components/charts/BarChart/bar-chart-option.js +75 -104
  16. package/dist/lib/ui/components/charts/BarChart/bar-chart-option.js.map +1 -1
  17. package/dist/lib/ui/components/charts/ChartLegend/ChartLegend.cjs +1 -1
  18. package/dist/lib/ui/components/charts/ChartLegend/ChartLegend.cjs.map +1 -1
  19. package/dist/lib/ui/components/charts/ChartLegend/ChartLegend.js +27 -26
  20. package/dist/lib/ui/components/charts/ChartLegend/ChartLegend.js.map +1 -1
  21. package/dist/lib/ui/components/charts/PieChart/PieChart.cjs +2 -0
  22. package/dist/lib/ui/components/charts/PieChart/PieChart.cjs.map +1 -0
  23. package/dist/lib/ui/components/charts/PieChart/PieChart.js +177 -0
  24. package/dist/lib/ui/components/charts/PieChart/PieChart.js.map +1 -0
  25. package/dist/lib/ui/components/charts/PieChart/pie-chart-option.cjs +2 -0
  26. package/dist/lib/ui/components/charts/PieChart/pie-chart-option.cjs.map +1 -0
  27. package/dist/lib/ui/components/charts/PieChart/pie-chart-option.js +124 -0
  28. package/dist/lib/ui/components/charts/PieChart/pie-chart-option.js.map +1 -0
  29. package/dist/lib/ui/components/charts/PieChart/pie-chart-slices.cjs +2 -0
  30. package/dist/lib/ui/components/charts/PieChart/pie-chart-slices.cjs.map +1 -0
  31. package/dist/lib/ui/components/charts/PieChart/pie-chart-slices.js +65 -0
  32. package/dist/lib/ui/components/charts/PieChart/pie-chart-slices.js.map +1 -0
  33. package/dist/lib/ui/components/charts/chart-color-tone.cjs +2 -0
  34. package/dist/lib/ui/components/charts/chart-color-tone.cjs.map +1 -0
  35. package/dist/lib/ui/components/charts/chart-color-tone.js +14 -0
  36. package/dist/lib/ui/components/charts/chart-color-tone.js.map +1 -0
  37. package/dist/lib/ui/components/charts/chart-label-color.cjs +2 -0
  38. package/dist/lib/ui/components/charts/chart-label-color.cjs.map +1 -0
  39. package/dist/lib/ui/components/charts/chart-label-color.js +35 -0
  40. package/dist/lib/ui/components/charts/chart-label-color.js.map +1 -0
  41. package/dist/lib/ui/components/charts/chart-palette.cjs +1 -1
  42. package/dist/lib/ui/components/charts/chart-palette.cjs.map +1 -1
  43. package/dist/lib/ui/components/charts/chart-palette.js +2 -1
  44. package/dist/lib/ui/components/charts/chart-palette.js.map +1 -1
  45. package/dist/lib/ui/components/charts/chart-theme.cjs +1 -1
  46. package/dist/lib/ui/components/charts/chart-theme.cjs.map +1 -1
  47. package/dist/lib/ui/components/charts/chart-theme.js +4 -3
  48. package/dist/lib/ui/components/charts/chart-theme.js.map +1 -1
  49. package/dist/lib/ui/components/charts/echarts-modules.cjs +1 -1
  50. package/dist/lib/ui/components/charts/echarts-modules.cjs.map +1 -1
  51. package/dist/lib/ui/components/charts/echarts-modules.js +11 -9
  52. package/dist/lib/ui/components/charts/echarts-modules.js.map +1 -1
  53. package/dist/lib/ui/primitives/Table/Table.cjs +1 -1
  54. package/dist/lib/ui/primitives/Table/Table.cjs.map +1 -1
  55. package/dist/lib/ui/primitives/Table/Table.js +123 -12
  56. package/dist/lib/ui/primitives/Table/Table.js.map +1 -1
  57. package/dist/types/charts.index.d.ts +1 -0
  58. package/dist/types/ui/components/DataTable/DataTable.d.ts +79 -11
  59. package/dist/types/ui/components/charts/ChartLegend/ChartLegend.d.ts +1 -0
  60. package/dist/types/ui/components/charts/PieChart/PieChart.d.ts +32 -0
  61. package/dist/types/ui/components/charts/PieChart/pie-chart-option.d.ts +13 -0
  62. package/dist/types/ui/components/charts/PieChart/pie-chart-slices.d.ts +30 -0
  63. package/dist/types/ui/components/charts/chart-color-tone.d.ts +1 -0
  64. package/dist/types/ui/components/charts/chart-label-color.d.ts +2 -0
  65. package/dist/types/ui/components/charts/chart-palette.d.ts +1 -0
  66. package/dist/types/ui/components/charts/chart-theme.d.ts +1 -0
  67. package/dist/types/ui/primitives/Table/Table.d.ts +32 -22
  68. package/package.json +1 -1
  69. package/dist/lib/ui/primitives/Table/DataDrivenTable.cjs +0 -2
  70. package/dist/lib/ui/primitives/Table/DataDrivenTable.cjs.map +0 -1
  71. package/dist/lib/ui/primitives/Table/DataDrivenTable.js +0 -196
  72. package/dist/lib/ui/primitives/Table/DataDrivenTable.js.map +0 -1
  73. package/dist/lib/ui/primitives/Table/TableBase.cjs +0 -2
  74. package/dist/lib/ui/primitives/Table/TableBase.cjs.map +0 -1
  75. package/dist/lib/ui/primitives/Table/TableBase.js +0 -127
  76. package/dist/lib/ui/primitives/Table/TableBase.js.map +0 -1
  77. package/dist/types/ui/primitives/Table/DataDrivenTable.d.ts +0 -68
  78. 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 {};