@bcgov-sso/common-react-components 1.31.0 → 1.31.1

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,4 +1,4 @@
1
- /// <reference types="react" />
1
+ import React from 'react';
2
2
  export declare const TABLE_BACKGROUND_COLOR = "#ededed";
3
3
  export declare const TABLE_ROW_ACTIVE_COLOR = "#4950FA";
4
4
  export declare const TABLE_ROW_HOVER_COLOR = "#fdb913";
@@ -31,8 +31,10 @@ export interface TableProps {
31
31
  defaultPageSize?: number;
32
32
  enableGlobalSearch?: boolean;
33
33
  globalSearchPlaceholder?: string;
34
+ globalSearchStyle?: React.CSSProperties;
34
35
  enablePagination?: boolean;
35
36
  pageSizeOptions?: number[];
37
+ noDataFoundText?: string;
36
38
  }
37
- declare const Table: ({ variant, columns, data, readOnly, onRowSelect, defaultPageSize, enableGlobalSearch, globalSearchPlaceholder, enablePagination, pageSizeOptions, }: TableProps) => JSX.Element;
39
+ declare const Table: ({ variant, columns, data, readOnly, onRowSelect, defaultPageSize, enableGlobalSearch, globalSearchPlaceholder, globalSearchStyle, enablePagination, pageSizeOptions, noDataFoundText, }: TableProps) => JSX.Element;
38
40
  export default Table;
package/dist/index.d.ts CHANGED
@@ -1,9 +1,9 @@
1
1
  /// <reference types="react" />
2
2
  import * as _button_inc_component_library_Button from '@button-inc/component-library/Button';
3
+ import React from 'react';
3
4
  import * as styled_components from 'styled-components';
4
5
  import * as rc_tabs_lib_Tabs from 'rc-tabs/lib/Tabs';
5
6
  import { TabPane } from 'rc-tabs';
6
- import React from 'react';
7
7
 
8
8
  declare function AccordionPanel({ title, hash, allOpen, setAllOpen, children }: any): JSX.Element;
9
9
  interface Props$6 {
@@ -50,10 +50,12 @@ interface TableProps {
50
50
  defaultPageSize?: number;
51
51
  enableGlobalSearch?: boolean;
52
52
  globalSearchPlaceholder?: string;
53
+ globalSearchStyle?: React.CSSProperties;
53
54
  enablePagination?: boolean;
54
55
  pageSizeOptions?: number[];
56
+ noDataFoundText?: string;
55
57
  }
56
- declare const Table: ({ variant, columns, data, readOnly, onRowSelect, defaultPageSize, enableGlobalSearch, globalSearchPlaceholder, enablePagination, pageSizeOptions, }: TableProps) => JSX.Element;
58
+ declare const Table: ({ variant, columns, data, readOnly, onRowSelect, defaultPageSize, enableGlobalSearch, globalSearchPlaceholder, globalSearchStyle, enablePagination, pageSizeOptions, noDataFoundText, }: TableProps) => JSX.Element;
57
59
 
58
60
  declare const StyledTabs: styled_components.StyledComponent<rc_tabs_lib_Tabs.ForwardTabsType, any, {}, never>;
59
61
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bcgov-sso/common-react-components",
3
- "version": "1.31.0",
3
+ "version": "1.31.1",
4
4
  "description": "common react components",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/esm/index.js",