@loadsmart/loadsmart-ui 6.3.0 → 7.0.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/components/Table/Table.d.ts +4 -12
- package/dist/components/Table/Table.types.d.ts +0 -4
- package/dist/index.js +71 -96
- package/dist/index.js.map +1 -1
- package/dist/{miranda-compatibility.theme-22a9ce26.js → miranda-compatibility.theme-bb671a80.js} +2 -2
- package/dist/{miranda-compatibility.theme-22a9ce26.js.map → miranda-compatibility.theme-bb671a80.js.map} +1 -1
- package/dist/prop-e569d46a.js +2 -0
- package/dist/{prop-201ffe28.js.map → prop-e569d46a.js.map} +1 -1
- package/dist/testing/SelectEvent/SelectEvent.d.ts +2 -2
- package/dist/testing/index.js +1 -1
- package/dist/testing/index.js.map +1 -1
- package/dist/theming/index.js +1 -1
- package/dist/tools/index.js +1 -1
- package/package.json +1 -1
- package/src/components/Table/Table.stories.tsx +27 -27
- package/src/components/Table/Table.test.tsx +10 -10
- package/src/components/Table/Table.tsx +35 -90
- package/src/components/Table/Table.types.ts +0 -5
- package/src/testing/SelectEvent/SelectEvent.test.tsx +15 -0
- package/src/testing/SelectEvent/SelectEvent.ts +2 -2
- package/src/theming/themes/miranda-compatibility.theme.ts +1 -1
- package/dist/prop-201ffe28.js +0 -2
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { useSelection } from './Selection';
|
|
2
2
|
import TableSortHandle from './TableSortHandle';
|
|
3
|
-
import type { TableProps, TableSectionProps, TableRowProps, TableCellProps, TableCaptionProps, TableSelectionProps, SelectionCellProps, TablePickerItemProps, TablePickerProps, ExpandableTableRowProps
|
|
4
|
-
declare function Table<T>({ children, selection, scale,
|
|
3
|
+
import type { TableProps, TableSectionProps, TableRowProps, TableCellProps, TableCaptionProps, TableSelectionProps, SelectionCellProps, TablePickerItemProps, TablePickerProps, ExpandableTableRowProps } from './Table.types';
|
|
4
|
+
declare function Table<T>({ children, selection, scale, ...others }: TableProps<T>): JSX.Element;
|
|
5
5
|
declare namespace Table {
|
|
6
6
|
var Head: typeof TableHead;
|
|
7
7
|
var Body: typeof TableBody;
|
|
@@ -15,27 +15,19 @@ declare namespace Table {
|
|
|
15
15
|
Cell: typeof SelectionCell;
|
|
16
16
|
HeadCell: typeof SelectionHeadCell;
|
|
17
17
|
};
|
|
18
|
-
var
|
|
19
|
-
Head: typeof ExpandableTableHead;
|
|
20
|
-
HeadCell: typeof ExpandableHeadCell;
|
|
21
|
-
Cell: typeof ExpandableCell;
|
|
22
|
-
Row: typeof ExpandableTableRow;
|
|
23
|
-
};
|
|
18
|
+
var ExpandableRow: typeof ExpandableTableRow;
|
|
24
19
|
var SortHandle: typeof TableSortHandle;
|
|
25
20
|
var Picker: typeof TablePicker;
|
|
26
21
|
}
|
|
27
22
|
declare function TableCaption({ children, position, height }: TableCaptionProps): JSX.Element;
|
|
28
23
|
declare function TableHead({ children, ...others }: TableSectionProps): JSX.Element;
|
|
29
|
-
declare function ExpandableTableHead({ children, ...others }: TableSectionProps): JSX.Element;
|
|
30
24
|
declare function TableBody({ children, ...others }: TableSectionProps): JSX.Element;
|
|
31
25
|
declare function TableCell({ children, alignment, format, ...others }: TableCellProps): JSX.Element;
|
|
32
26
|
declare function SelectionCell<T>({ value, ...props }: SelectionCellProps<T>): JSX.Element;
|
|
33
27
|
declare function SelectionHeadCell<T>(props: SelectionCellProps<T>): JSX.Element;
|
|
34
|
-
declare function ExpandableHeadCell(props: TableHeadCellProps): JSX.Element;
|
|
35
|
-
declare function ExpandableCell(props: TableCellProps): JSX.Element;
|
|
36
28
|
declare function TableRow({ children, ...others }: TableRowProps): JSX.Element;
|
|
37
29
|
declare function ExpandableTableRow({ expandableContent, expanded, leading: propsLeading, children, onExpandedChange, initialExpanded, ...others }: ExpandableTableRowProps): JSX.Element;
|
|
38
|
-
declare function TableHeadCell({ alignment, children, onClick,
|
|
30
|
+
declare function TableHeadCell({ alignment, children, onClick, ...others }: TableCellProps): JSX.Element;
|
|
39
31
|
declare function TableSelectionActions({ buttons, children, ...others }: TableSelectionProps): JSX.Element;
|
|
40
32
|
declare function TablePickerItem<T>({ option, checked, children, ...props }: TablePickerItemProps<T>): JSX.Element;
|
|
41
33
|
declare function TablePicker<T>({ value, onChange, options, align, children, trigger: propsTrigger, ...props }: TablePickerProps<T>): JSX.Element;
|
|
@@ -7,7 +7,6 @@ declare type Scale = 'default' | 'small' | 'large';
|
|
|
7
7
|
export interface TableProps<T extends Selectable = TableSelectableRow> extends HTMLAttributes<HTMLTableElement> {
|
|
8
8
|
scale?: Scale;
|
|
9
9
|
selection?: TableSelectionConfig<T>;
|
|
10
|
-
withExpandableRows?: boolean;
|
|
11
10
|
}
|
|
12
11
|
export interface TableCaptionProps extends HTMLAttributes<HTMLTableCaptionElement> {
|
|
13
12
|
position?: 'top' | 'bottom';
|
|
@@ -43,9 +42,6 @@ export interface TableCellProps extends HTMLAttributes<HTMLTableCellElement> {
|
|
|
43
42
|
scale?: Scale;
|
|
44
43
|
selected?: boolean;
|
|
45
44
|
}
|
|
46
|
-
export interface TableHeadCellProps extends TableCellProps {
|
|
47
|
-
capitalized?: boolean;
|
|
48
|
-
}
|
|
49
45
|
export declare type TableColumn<T = Record<string, unknown>> = {
|
|
50
46
|
/**
|
|
51
47
|
* The accessor of you entry interface
|