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.
@@ -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
  };
@@ -17,4 +17,12 @@ export interface TableProps {
17
17
  * Id to table
18
18
  */
19
19
  id?: string;
20
+ /**
21
+ * Function onSelectAll rows
22
+ */
23
+ onSelectAllRows?: (isChecked: boolean) => void;
24
+ /**
25
+ * are all rows selected?
26
+ */
27
+ areAllRowsSelected?: boolean;
20
28
  }
@@ -5,8 +5,8 @@ export interface TileProps {
5
5
  media: IconName;
6
6
  rightMedia?: React.ReactNode;
7
7
  mediaSize?: 'small' | 'medium' | 'large';
8
- title: string;
9
- subtitle?: string;
8
+ title: React.ReactNode;
9
+ subtitle?: React.ReactNode;
10
10
  value?: string;
11
11
  onClick?: (value: string) => void;
12
12
  tags?: string[];