kiban-design-system 1.1.2-hotfix.0 → 1.1.4-hotfix.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/Filters/Filters.d.ts +1 -1
- package/dist/components/Filters/Filters.props.d.ts +9 -0
- package/dist/components/Table/Table.d.ts +3 -1
- package/dist/components/Table/Table.props.d.ts +8 -0
- package/dist/components/Tile/Tile.props.d.ts +2 -2
- package/dist/index.css.map +1 -1
- package/dist/index.js +18 -7
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import type { FiltersProps } from './Filters.props';
|
|
3
3
|
import './Filters.styles.scss';
|
|
4
|
-
declare const Filters: ({ filters, onApplyFilters, onRemoveFilter, appliedFilters, onCleanFilters, onAddFilter, addFilterButtonIcon, addFilterButtonLabel, clearButtonLabel, searchButtonLabel, selectedFilters, }: FiltersProps) => JSX.Element;
|
|
4
|
+
declare const Filters: ({ filters, onApplyFilters, onRemoveFilter, appliedFilters, onCleanFilters, onAddFilter, addFilterButtonIcon, addFilterButtonLabel, clearButtonLabel, searchButtonLabel, extraActions, selectedFilters, }: FiltersProps) => JSX.Element;
|
|
5
5
|
export default Filters;
|
|
@@ -6,6 +6,14 @@ export declare type TFilter = {
|
|
|
6
6
|
filter: React.ReactNode;
|
|
7
7
|
isRequired?: boolean;
|
|
8
8
|
};
|
|
9
|
+
export declare type TExtraAction = {
|
|
10
|
+
label: string;
|
|
11
|
+
isPrimary?: boolean;
|
|
12
|
+
isTertiary?: boolean;
|
|
13
|
+
isDanger?: boolean;
|
|
14
|
+
onClick?: () => void;
|
|
15
|
+
isDisabled?: boolean;
|
|
16
|
+
};
|
|
9
17
|
export interface FiltersProps {
|
|
10
18
|
filters: TFilter[];
|
|
11
19
|
onApplyFilters?: () => void;
|
|
@@ -18,4 +26,5 @@ export interface FiltersProps {
|
|
|
18
26
|
searchButtonLabel?: string;
|
|
19
27
|
clearButtonLabel?: string;
|
|
20
28
|
selectedFilters?: string[];
|
|
29
|
+
extraActions?: TExtraAction[];
|
|
21
30
|
}
|
|
@@ -9,13 +9,15 @@ import './Table.styles.scss';
|
|
|
9
9
|
* @param {string} TableProps.id - Id to table
|
|
10
10
|
* @param {Array} TableProps.headings - Headings of the table
|
|
11
11
|
* @param {Array} TableProps.headingsTypes - Determines the positioning of the text
|
|
12
|
+
* @param {function} TableProps.onSelectAllRows - Function to select all rows
|
|
13
|
+
* @param {Boolean} TableProps.areAllRowsSelected - Determines if all rows are selected
|
|
12
14
|
* in the columns, respects the order of the array, It only
|
|
13
15
|
* accepts text or numeric, if it is numeric the text is aligned
|
|
14
16
|
* to the right, if not it is aligned to the left
|
|
15
17
|
* @returns {symbol} - Element Table
|
|
16
18
|
*/
|
|
17
19
|
declare const Table: {
|
|
18
|
-
({ headings, headingsTypes, children, id }: TableProps): JSX.Element;
|
|
20
|
+
({ headings, headingsTypes, children, id, onSelectAllRows, areAllRowsSelected, }: TableProps): JSX.Element;
|
|
19
21
|
Row: ({ onClick, children, id }: import("./components/Row").RowProps) => JSX.Element;
|
|
20
22
|
Cell: ({ children }: import("./components/Cell").CellProps) => JSX.Element;
|
|
21
23
|
};
|
|
@@ -5,8 +5,8 @@ export interface TileProps {
|
|
|
5
5
|
media: IconName;
|
|
6
6
|
rightMedia?: React.ReactNode;
|
|
7
7
|
mediaSize?: 'small' | 'medium' | 'large';
|
|
8
|
-
title:
|
|
9
|
-
subtitle?:
|
|
8
|
+
title: React.ReactNode;
|
|
9
|
+
subtitle?: React.ReactNode;
|
|
10
10
|
value?: string;
|
|
11
11
|
onClick?: (value: string) => void;
|
|
12
12
|
tags?: string[];
|