@peripheries/core 0.9.0 → 0.10.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/package.json
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function fillHrefTemplate(template: unknown, values: Readonly<Record<string, string | number | undefined | null>>): string | undefined;
|
|
@@ -21,6 +21,7 @@ export interface DataTableCell {
|
|
|
21
21
|
}
|
|
22
22
|
export type DataTableCellInput = DataTableCell | FormattableValue | ReactNode;
|
|
23
23
|
export interface DataTableRow {
|
|
24
|
+
id?: string | number;
|
|
24
25
|
cells: ReadonlyArray<DataTableCellInput> | Readonly<Record<string, DataTableCellInput>>;
|
|
25
26
|
highlighted?: boolean;
|
|
26
27
|
total?: boolean;
|
|
@@ -35,10 +36,11 @@ export interface DataTableProps {
|
|
|
35
36
|
columns: ReadonlyArray<DataTableColumn>;
|
|
36
37
|
rows: ReadonlyArray<DataTableRow>;
|
|
37
38
|
baseProps?: unknown;
|
|
39
|
+
hrefTemplate?: string;
|
|
38
40
|
rowHeadingLevel?: number;
|
|
39
41
|
actionsWidth?: number;
|
|
40
42
|
className?: string;
|
|
41
43
|
style?: CSSProperties;
|
|
42
44
|
}
|
|
43
45
|
export declare function asWords(value: string): string;
|
|
44
|
-
export declare function DataTable({ title, subtitle, columns, rows, baseProps, rowHeadingLevel, actionsWidth, className, style }: DataTableProps): ReactElement;
|
|
46
|
+
export declare function DataTable({ title, subtitle, columns, rows, baseProps, hrefTemplate, rowHeadingLevel, actionsWidth, className, style }: DataTableProps): ReactElement;
|
|
@@ -16,3 +16,8 @@ export declare function useIntent<A extends string>(handler: IntentHandler<A> |
|
|
|
16
16
|
available: boolean;
|
|
17
17
|
clearMessage: () => void;
|
|
18
18
|
};
|
|
19
|
+
export declare function useConfirmation<V>(): {
|
|
20
|
+
held: V | null;
|
|
21
|
+
ask: (value: V) => void;
|
|
22
|
+
clear: () => void;
|
|
23
|
+
};
|