formica-ui-lib 1.0.246 → 1.0.247
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/componentProps/atoms/buttons/iconbutton/IconButtonProps.d.ts +2 -0
- package/dist/componentProps/molecules/searchcombobox/SearchComboboxProps.d.ts +36 -0
- package/dist/componentProps/organisms/collections/datareportcollection/DataReportCollectionProps.d.ts +30 -0
- package/dist/index.cjs +2 -2
- package/dist/index.d.ts +4 -0
- package/dist/index.js +1029 -748
- package/dist/stories/atoms/buttons/iconbutton/IconButton.d.ts +4 -0
- package/dist/stories/molecules/inputs/searchcombobox/SearchCombobox.d.ts +4 -0
- package/dist/stories/organisms/collections/datareportcollection/DataReportCollection.d.ts +4 -0
- package/dist/tailwind.css +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
export interface SearchComboboxOption {
|
|
2
|
+
id: string;
|
|
3
|
+
label: string;
|
|
4
|
+
value: string;
|
|
5
|
+
description?: string;
|
|
6
|
+
}
|
|
7
|
+
export interface SearchComboboxQueryChangePayload {
|
|
8
|
+
value: string;
|
|
9
|
+
}
|
|
10
|
+
export interface SearchComboboxSelectPayload {
|
|
11
|
+
option: SearchComboboxOption;
|
|
12
|
+
query: string;
|
|
13
|
+
}
|
|
14
|
+
export interface SearchComboboxSubmitPayload {
|
|
15
|
+
value: string;
|
|
16
|
+
}
|
|
17
|
+
export interface SearchComboboxClearPayload {
|
|
18
|
+
value: string;
|
|
19
|
+
}
|
|
20
|
+
export interface SearchComboboxProps {
|
|
21
|
+
id?: string;
|
|
22
|
+
name?: string;
|
|
23
|
+
ariaLabel?: string;
|
|
24
|
+
placeholder?: string;
|
|
25
|
+
value?: string;
|
|
26
|
+
options: SearchComboboxOption[];
|
|
27
|
+
emptyMessage?: string;
|
|
28
|
+
minQueryLength?: number;
|
|
29
|
+
disabled?: boolean;
|
|
30
|
+
readOnly?: boolean;
|
|
31
|
+
clearLabel?: string;
|
|
32
|
+
onQueryChange?: (payload: SearchComboboxQueryChangePayload) => void;
|
|
33
|
+
onOptionSelect?: (payload: SearchComboboxSelectPayload) => void;
|
|
34
|
+
onSearchSubmit?: (payload: SearchComboboxSubmitPayload) => void;
|
|
35
|
+
onClear?: (payload: SearchComboboxClearPayload) => void;
|
|
36
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
export type DataReportCellValue = string | number | null | undefined;
|
|
2
|
+
export type DataReportColumnAlignment = "left" | "center" | "right";
|
|
3
|
+
export type DataReportColumnWidth = "xs" | "sm" | "md" | "lg" | "xl";
|
|
4
|
+
export interface DataReportColumn {
|
|
5
|
+
id: string;
|
|
6
|
+
label: string;
|
|
7
|
+
alignment?: DataReportColumnAlignment;
|
|
8
|
+
editable?: boolean;
|
|
9
|
+
width?: DataReportColumnWidth;
|
|
10
|
+
maxLength?: number;
|
|
11
|
+
}
|
|
12
|
+
export interface DataReportRow {
|
|
13
|
+
id: string;
|
|
14
|
+
values: Record<string, DataReportCellValue>;
|
|
15
|
+
}
|
|
16
|
+
export interface DataReportRowUpdatePayload {
|
|
17
|
+
row: DataReportRow;
|
|
18
|
+
originalRow: DataReportRow;
|
|
19
|
+
}
|
|
20
|
+
export interface DataReportCollectionProps {
|
|
21
|
+
title: string;
|
|
22
|
+
description?: string;
|
|
23
|
+
columns: DataReportColumn[];
|
|
24
|
+
rows: DataReportRow[];
|
|
25
|
+
rowCountLabel?: string;
|
|
26
|
+
updateLabel?: string;
|
|
27
|
+
emptyMessage?: string;
|
|
28
|
+
ariaLabel?: string;
|
|
29
|
+
onRowUpdate?: (payload: DataReportRowUpdatePayload) => void;
|
|
30
|
+
}
|